@ghentcdh/ui 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/index.css +1 -1
  2. package/index.esm.js +2535 -752
  3. package/index.js +12 -7
  4. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as p, openBlock as s, createElementBlock as a, unref as f, normalizeClass as w, createElementVNode as i, toDisplayString as v, createBlock as g, createCommentVNode as y, Fragment as x, renderList as L, mergeProps as D, computed as k, resolveComponent as oe, withCtx as T, createTextVNode as V, ref as N, watch as G, onMounted as ke, renderSlot as B, resolveDynamicComponent as se, createVNode as P, normalizeStyle as J, getCurrentInstance as $e, toHandlerKey as he, camelize as Ce, mergeDefaults as X, useModel as le, normalizeProps as ae, guardReactiveProps as ie, withDirectives as Q, vModelSelect as _e, mergeModels as q, inject as Le, resolveDirective as ve, vModelText as Me, useSlots as ge } from "vue";
2
- import { RouterLink as Be } from "vue-router";
3
- const _ = (...e) => `<svg
1
+ import { defineComponent as k, openBlock as f, createElementBlock as m, unref as R, normalizeClass as $, createElementVNode as b, toDisplayString as C, createBlock as S, createCommentVNode as A, Fragment as P, renderList as M, mergeProps as z, computed as B, resolveComponent as Be, withCtx as K, createTextVNode as X, ref as G, watch as Te, onMounted as pn, renderSlot as j, resolveDynamicComponent as et, createVNode as F, normalizeStyle as $e, getCurrentInstance as mn, toHandlerKey as vt, camelize as bn, mergeDefaults as Ne, useModel as tt, normalizeProps as nt, guardReactiveProps as st, withDirectives as Le, vModelSelect as gn, mergeModels as ue, resolveDirective as Ft, vModelText as yn, useSlots as It } from "vue";
2
+ import { RouterLink as wn } from "vue-router";
3
+ const D = (...e) => `<svg
4
4
  xmlns="http://www.w3.org/2000/svg"
5
5
  fill="none"
6
6
  viewBox="0 0 24 24"
@@ -15,69 +15,69 @@ const _ = (...e) => `<svg
15
15
  ).join(`
16
16
  `)}
17
17
  </svg>`;
18
- var z = /* @__PURE__ */ ((e) => (e.Edit = "Edit", e.Delete = "Delete", e.BarsArrowDown = "BarsArrowDown", e.BarsArrowUp = "BarsArrowUp", e.Funnel = "Funnel", e.Close = "Close", e.Plus = "Plus", e.PaperClip = "PaperClip", e.Hamburger = "Hamburger", e.ChevronRight = "ChevronRight", e.ChevronLeft = "ChevronLeft", e.ChevronDown = "ChevronDown", e.ChevronUp = "ChevronUp", e.DblChevronLeft = "DblChevronLeft", e.DblChevronRight = "DblChevronRight", e.Check = "Check", e.View = "View", e.Text = "Text", e))(z || {});
19
- const Pe = {
20
- Edit: _(
18
+ var Z = /* @__PURE__ */ ((e) => (e.Edit = "Edit", e.Delete = "Delete", e.BarsArrowDown = "BarsArrowDown", e.BarsArrowUp = "BarsArrowUp", e.Funnel = "Funnel", e.Close = "Close", e.Plus = "Plus", e.PaperClip = "PaperClip", e.Hamburger = "Hamburger", e.ChevronRight = "ChevronRight", e.ChevronLeft = "ChevronLeft", e.ChevronDown = "ChevronDown", e.ChevronUp = "ChevronUp", e.DblChevronLeft = "DblChevronLeft", e.DblChevronRight = "DblChevronRight", e.Check = "Check", e.View = "View", e.Text = "Text", e))(Z || {});
19
+ const vn = {
20
+ Edit: D(
21
21
  "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"
22
22
  ),
23
- Delete: _(
23
+ Delete: D(
24
24
  "m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"
25
25
  ),
26
- BarsArrowDown: _(
26
+ BarsArrowDown: D(
27
27
  "M3 4.5h14.25M3 9h9.75M3 13.5h9.75m4.5-4.5v12m0 0-3.75-3.75M17.25 21 21 17.25"
28
28
  ),
29
- BarsArrowUp: _(
29
+ BarsArrowUp: D(
30
30
  "M3 4.5h14.25M3 9h9.75M3 13.5h5.25m5.25-.75L17.25 9m0 0L21 12.75M17.25 9v12"
31
31
  ),
32
- Funnel: _(
32
+ Funnel: D(
33
33
  "M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"
34
34
  ),
35
- Close: _("M6 18 18 6M6 6l12 12"),
36
- Plus: _("M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"),
37
- PaperClip: _(
35
+ Close: D("M6 18 18 6M6 6l12 12"),
36
+ Plus: D("M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"),
37
+ PaperClip: D(
38
38
  "m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"
39
39
  ),
40
- Hamburger: _("M4 6h16M4 12h16M4 18h16"),
41
- ChevronDown: _(
40
+ Hamburger: D("M4 6h16M4 12h16M4 18h16"),
41
+ ChevronDown: D(
42
42
  "M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z"
43
43
  ),
44
- ChevronUp: _(
44
+ ChevronUp: D(
45
45
  "M11.47 7.72a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 0 1-1.06-1.06l7.5-7.5Z"
46
46
  ),
47
- Check: _("m4.5 12.75 6 6 9-13.5"),
48
- View: _(
47
+ Check: D("m4.5 12.75 6 6 9-13.5"),
48
+ View: D(
49
49
  "M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z",
50
50
  "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
51
51
  ),
52
- Text: _(
52
+ Text: D(
53
53
  "M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"
54
54
  ),
55
- DblChevronLeft: _(
55
+ DblChevronLeft: D(
56
56
  "m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"
57
57
  ),
58
- DblChevronRight: _("m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5")
59
- }, De = ["innerHTML"], j = /* @__PURE__ */ p({
58
+ DblChevronRight: D("m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5")
59
+ }, xn = ["innerHTML"], ne = /* @__PURE__ */ k({
60
60
  __name: "icon",
61
61
  props: {
62
62
  icon: {},
63
63
  size: {}
64
64
  },
65
65
  setup(e) {
66
- return (t, n) => (s(), a("div", {
67
- class: w([
66
+ return (t, n) => (f(), m("div", {
67
+ class: $([
68
68
  {
69
69
  "w-full h-full": !e.size,
70
70
  "w-2 h-2": e.size === "xs",
71
71
  "w-4 h-4": e.size === "sm"
72
72
  }
73
73
  ]),
74
- innerHTML: f(Pe)[e.icon]
75
- }, null, 10, De));
74
+ innerHTML: R(vn)[e.icon]
75
+ }, null, 10, xn));
76
76
  }
77
- }), Ae = { class: "dropdown dropdown-end" }, Te = {
77
+ }), Rn = { class: "dropdown dropdown-end" }, Cn = {
78
78
  tabindex: "0",
79
79
  class: "menu dropdown-content bg-white z-1 mt-4 p-2 shadow-sm"
80
- }, Se = { class: "min-w-max flex-no-wrap text-black" }, re = /* @__PURE__ */ p({
80
+ }, En = { class: "min-w-max flex-no-wrap text-black" }, rt = /* @__PURE__ */ k({
81
81
  __name: "sub-menu",
82
82
  props: {
83
83
  label: {},
@@ -88,29 +88,29 @@ const Pe = {
88
88
  disableArrow: { type: Boolean }
89
89
  },
90
90
  setup(e) {
91
- return (t, n) => (s(), a("div", Ae, [
92
- i("div", {
91
+ return (t, n) => (f(), m("div", Rn, [
92
+ b("div", {
93
93
  tabindex: "0",
94
94
  role: "button",
95
- class: w([e.btnClass, "btn btn-ghost text-right flex-nowrap flex"])
95
+ class: $([e.btnClass, "btn btn-ghost text-right flex-nowrap flex"])
96
96
  }, [
97
- i("span", null, v(e.label), 1),
98
- e.disableArrow ? y("", !0) : (s(), g(f(j), {
97
+ b("span", null, C(e.label), 1),
98
+ e.disableArrow ? A("", !0) : (f(), S(R(ne), {
99
99
  key: 0,
100
- icon: f(z).ChevronDown,
100
+ icon: R(Z).ChevronDown,
101
101
  size: "sm"
102
102
  }, null, 8, ["icon"]))
103
103
  ], 2),
104
- i("ul", Te, [
105
- i("li", Se, [
106
- (s(!0), a(x, null, L(e.items, (l) => (s(), g(pe, D({
107
- key: l.label
108
- }, { ref_for: !0 }, l), null, 16))), 128))
104
+ b("ul", Cn, [
105
+ b("li", En, [
106
+ (f(!0), m(P, null, M(e.items, (s) => (f(), S(jt, z({
107
+ key: s.label
108
+ }, { ref_for: !0 }, s), null, 16))), 128))
109
109
  ])
110
110
  ])
111
111
  ]));
112
112
  }
113
- }), W = "btn btn-ghost text-left justify-between min-w-max font-normal", pe = /* @__PURE__ */ p({
113
+ }), Se = "btn btn-ghost text-left justify-between min-w-max font-normal", jt = /* @__PURE__ */ k({
114
114
  __name: "menu-item",
115
115
  props: {
116
116
  label: {},
@@ -119,41 +119,41 @@ const Pe = {
119
119
  disabled: { type: Boolean, default: !1 }
120
120
  },
121
121
  setup(e) {
122
- const t = e, n = k(() => !t.disabled && t.action && "routerLink" in t.action), l = k(() => !t.disabled && t.action), o = k(() => t.items?.length), c = k(() => {
123
- const d = t.action;
124
- return d && "routerLink" in d && "params" in d ? {
125
- name: d.routerLink,
126
- params: d.params
122
+ const t = e, n = B(() => !t.disabled && t.action && "routerLink" in t.action), s = B(() => !t.disabled && t.action), r = B(() => t.items?.length), o = B(() => {
123
+ const a = t.action;
124
+ return a && "routerLink" in a && "params" in a ? {
125
+ name: a.routerLink,
126
+ params: a.params
127
127
  } : "";
128
- }), h = () => {
128
+ }), i = () => {
129
129
  t.action?.();
130
130
  };
131
- return (d, u) => {
132
- const m = oe("RouterLink");
133
- return o.value ? (s(), g(re, D({ key: 0 }, t, { "btn-class": W }), null, 16)) : n.value ? (s(), g(m, {
131
+ return (a, d) => {
132
+ const u = Be("RouterLink");
133
+ return r.value ? (f(), S(rt, z({ key: 0 }, t, { "btn-class": Se }), null, 16)) : n.value ? (f(), S(u, {
134
134
  key: 1,
135
- to: c.value,
136
- class: w(W),
137
- onClick: h
135
+ to: o.value,
136
+ class: $(Se),
137
+ onClick: i
138
138
  }, {
139
- default: T(() => [
140
- V(v(e.label), 1)
139
+ default: K(() => [
140
+ X(C(e.label), 1)
141
141
  ]),
142
142
  _: 1
143
- }, 8, ["to"])) : l.value ? (s(), a("button", {
143
+ }, 8, ["to"])) : s.value ? (f(), m("button", {
144
144
  key: 2,
145
- class: w(W),
146
- onClick: h
147
- }, v(e.label), 1)) : (s(), a("div", {
145
+ class: $(Se),
146
+ onClick: i
147
+ }, C(e.label), 1)) : (f(), m("div", {
148
148
  key: 3,
149
- class: w([W, { "btn-disabled": e.disabled }])
150
- }, v(e.label), 3));
149
+ class: $([Se, { "btn-disabled": e.disabled }])
150
+ }, C(e.label), 3));
151
151
  };
152
152
  }
153
- }), ze = { class: "navbar bg-base-100 shadow-sm" }, Ve = { class: "flex-1" }, Ne = {
153
+ }), Sn = { class: "navbar bg-base-100 shadow-sm" }, kn = { class: "flex-1" }, _n = {
154
154
  key: 0,
155
155
  class: "breadcrumbs text-sm"
156
- }, Re = { class: "flex grow justify-end px-2" }, Ue = { class: "flex items-stretch" }, Cn = /* @__PURE__ */ p({
156
+ }, An = { class: "flex grow justify-end px-2" }, On = { class: "flex items-stretch" }, Ko = /* @__PURE__ */ k({
157
157
  __name: "menu",
158
158
  props: {
159
159
  menu: {},
@@ -161,47 +161,47 @@ const Pe = {
161
161
  },
162
162
  setup(e) {
163
163
  return (t, n) => {
164
- const l = oe("RouterLink");
165
- return s(), a("nav", ze, [
166
- i("div", Ve, [
167
- e.breadcrumbs ? (s(), a("div", Ne, [
168
- i("ul", null, [
169
- (s(!0), a(x, null, L(e.breadcrumbs, (o) => (s(), a("li", {
170
- key: o.label
164
+ const s = Be("RouterLink");
165
+ return f(), m("nav", Sn, [
166
+ b("div", kn, [
167
+ e.breadcrumbs ? (f(), m("div", _n, [
168
+ b("ul", null, [
169
+ (f(!0), m(P, null, M(e.breadcrumbs, (r) => (f(), m("li", {
170
+ key: r.label
171
171
  }, [
172
- o.routerLink ? (s(), g(l, {
172
+ r.routerLink ? (f(), S(s, {
173
173
  key: 0,
174
- to: { name: o.routerLink, params: o.params }
174
+ to: { name: r.routerLink, params: r.params }
175
175
  }, {
176
- default: T(() => [
177
- V(v(o.label), 1)
176
+ default: K(() => [
177
+ X(C(r.label), 1)
178
178
  ]),
179
179
  _: 2
180
- }, 1032, ["to"])) : (s(), a(x, { key: 1 }, [
181
- V(v(o.label), 1)
180
+ }, 1032, ["to"])) : (f(), m(P, { key: 1 }, [
181
+ X(C(r.label), 1)
182
182
  ], 64))
183
183
  ]))), 128))
184
184
  ])
185
- ])) : y("", !0)
185
+ ])) : A("", !0)
186
186
  ]),
187
- i("div", Re, [
188
- i("div", Ue, [
189
- (s(!0), a(x, null, L(e.menu, (o) => (s(), g(pe, D({
190
- key: o.label
191
- }, { ref_for: !0 }, o), null, 16))), 128))
187
+ b("div", An, [
188
+ b("div", On, [
189
+ (f(!0), m(P, null, M(e.menu, (r) => (f(), S(jt, z({
190
+ key: r.label
191
+ }, { ref_for: !0 }, r), null, 16))), 128))
192
192
  ])
193
193
  ])
194
194
  ]);
195
195
  };
196
196
  }
197
- }), _n = /* @__PURE__ */ p({
197
+ }), Wo = /* @__PURE__ */ k({
198
198
  __name: "dropdown",
199
199
  props: {
200
200
  items: {}
201
201
  },
202
202
  setup(e) {
203
- const t = N(!0);
204
- return (n, l) => (s(), g(re, {
203
+ const t = G(!0);
204
+ return (n, s) => (f(), S(rt, {
205
205
  items: e.items,
206
206
  label: "test",
207
207
  open: t.value,
@@ -209,33 +209,33 @@ const Pe = {
209
209
  "disable-arrow": !0
210
210
  }, null, 8, ["items", "open"]));
211
211
  }
212
- }), $ = [];
212
+ }), N = [];
213
213
  for (let e = 0; e < 256; ++e)
214
- $.push((e + 256).toString(16).slice(1));
215
- function Fe(e, t = 0) {
216
- return ($[e[t + 0]] + $[e[t + 1]] + $[e[t + 2]] + $[e[t + 3]] + "-" + $[e[t + 4]] + $[e[t + 5]] + "-" + $[e[t + 6]] + $[e[t + 7]] + "-" + $[e[t + 8]] + $[e[t + 9]] + "-" + $[e[t + 10]] + $[e[t + 11]] + $[e[t + 12]] + $[e[t + 13]] + $[e[t + 14]] + $[e[t + 15]]).toLowerCase();
214
+ N.push((e + 256).toString(16).slice(1));
215
+ function Tn(e, t = 0) {
216
+ return (N[e[t + 0]] + N[e[t + 1]] + N[e[t + 2]] + N[e[t + 3]] + "-" + N[e[t + 4]] + N[e[t + 5]] + "-" + N[e[t + 6]] + N[e[t + 7]] + "-" + N[e[t + 8]] + N[e[t + 9]] + "-" + N[e[t + 10]] + N[e[t + 11]] + N[e[t + 12]] + N[e[t + 13]] + N[e[t + 14]] + N[e[t + 15]]).toLowerCase();
217
217
  }
218
- let ne;
219
- const je = new Uint8Array(16);
220
- function He() {
221
- if (!ne) {
218
+ let Ve;
219
+ const $n = new Uint8Array(16);
220
+ function Ln() {
221
+ if (!Ve) {
222
222
  if (typeof crypto > "u" || !crypto.getRandomValues)
223
223
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
224
- ne = crypto.getRandomValues.bind(crypto);
224
+ Ve = crypto.getRandomValues.bind(crypto);
225
225
  }
226
- return ne(je);
226
+ return Ve($n);
227
227
  }
228
- const Ke = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), be = { randomUUID: Ke };
229
- function Y(e, t, n) {
230
- if (be.randomUUID && !e)
231
- return be.randomUUID();
228
+ const Pn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), xt = { randomUUID: Pn };
229
+ function De(e, t, n) {
230
+ if (xt.randomUUID && !e)
231
+ return xt.randomUUID();
232
232
  e = e || {};
233
- const l = e.random ?? e.rng?.() ?? He();
234
- if (l.length < 16)
233
+ const s = e.random ?? e.rng?.() ?? Ln();
234
+ if (s.length < 16)
235
235
  throw new Error("Random bytes length must be >= 16");
236
- return l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, Fe(l);
236
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Tn(s);
237
237
  }
238
- const Oe = { class: "font-bold" }, Ie = { class: "pt-4" }, qe = { class: "modal-action" }, Ee = /* @__PURE__ */ p({
238
+ const Bn = { class: "font-bold" }, Nn = { class: "pt-4" }, Dn = { class: "modal-action" }, Un = /* @__PURE__ */ k({
239
239
  __name: "modal",
240
240
  props: {
241
241
  modalTitle: {},
@@ -248,110 +248,110 @@ const Oe = { class: "font-bold" }, Ie = { class: "pt-4" }, qe = { class: "modal-
248
248
  },
249
249
  emits: ["closeModal"],
250
250
  setup(e, { expose: t, emit: n }) {
251
- const l = {
251
+ const s = {
252
252
  xs: "max-w-xs w-[50VW]",
253
253
  sm: "max-w-sm w-[50VW]",
254
254
  lg: "max-w-2xl w-[80VW]",
255
255
  xl: "max-w-[80VW] w-[80VW]"
256
- }, o = e, c = `modal_${Y()}`, h = n, d = () => {
257
- document.getElementById(c)?.showModal();
258
- }, u = () => {
259
- document.getElementById(c)?.close(), h("closeModal");
256
+ }, r = e, o = `modal_${De()}`, i = n, a = () => {
257
+ document.getElementById(o)?.showModal();
258
+ }, d = () => {
259
+ document.getElementById(o)?.close(), i("closeModal");
260
260
  };
261
- return t({ closeModal: u, openModal: d }), G(
262
- () => o.open,
263
- (m, r, A) => {
264
- o.open ? d() : u();
261
+ return t({ closeModal: d, openModal: a }), Te(
262
+ () => r.open,
263
+ (u, l, g) => {
264
+ r.open ? a() : d();
265
265
  }
266
- ), ke(() => {
267
- o.open && d();
268
- }), (m, r) => (s(), a("dialog", {
269
- id: c,
266
+ ), pn(() => {
267
+ r.open && a();
268
+ }), (u, l) => (f(), m("dialog", {
269
+ id: o,
270
270
  class: "modal"
271
271
  }, [
272
- i("div", {
273
- class: w(["modal-box bg-white", l[e.width]])
272
+ b("div", {
273
+ class: $(["modal-box bg-white", s[e.width]])
274
274
  }, [
275
- e.disableClose ? y("", !0) : (s(), a("button", {
275
+ e.disableClose ? A("", !0) : (f(), m("button", {
276
276
  key: 0,
277
277
  type: "button",
278
278
  class: "btn btn-sm btn-circle btn-ghost absolute right-2 top-2",
279
- onClick: u
279
+ onClick: d
280
280
  }, " ✕ ")),
281
- i("h3", Oe, v(e.modalTitle), 1),
282
- i("div", Ie, [
283
- B(m.$slots, "content")
281
+ b("h3", Bn, C(e.modalTitle), 1),
282
+ b("div", Nn, [
283
+ j(u.$slots, "content")
284
284
  ]),
285
- i("div", qe, [
286
- B(m.$slots, "actions")
285
+ b("div", Dn, [
286
+ j(u.$slots, "actions")
287
287
  ])
288
288
  ], 2)
289
289
  ]));
290
290
  }
291
291
  });
292
- var ce = /* @__PURE__ */ ((e) => (e.button = "button", e.submit = "submit", e.reset = "reset", e))(ce || {}), ye = /* @__PURE__ */ ((e) => (e.a = "a", e.button = "button", e))(ye || {}), O = /* @__PURE__ */ ((e) => (e.blank = "blank", e.primary = "primary", e.secondary = "secondary", e.error = "error", e))(O || {});
293
- const Ze = {
292
+ var ot = /* @__PURE__ */ ((e) => (e.button = "button", e.submit = "submit", e.reset = "reset", e))(ot || {}), qt = /* @__PURE__ */ ((e) => (e.a = "a", e.button = "button", e))(qt || {}), le = /* @__PURE__ */ ((e) => (e.blank = "blank", e.primary = "primary", e.secondary = "secondary", e.error = "error", e))(le || {});
293
+ const Mn = {
294
294
  blank: "btn-ghost",
295
295
  primary: "btn-primary",
296
296
  secondary: "btn-soft btn-primary",
297
297
  error: "btn-error text-white"
298
- }, We = {
298
+ }, Fn = {
299
299
  blank: "badge-ghost",
300
300
  primary: "badge-primary",
301
301
  secondary: "badge-soft badge-primary",
302
302
  error: "badge-error"
303
- }, Ge = {
303
+ }, In = {
304
304
  xs: "btn-xs",
305
305
  sm: "btn-sm",
306
306
  lg: "btn-sm",
307
307
  xl: "btn"
308
- }, Je = {
308
+ }, jn = {
309
309
  xs: "badge-xs text-xxs",
310
310
  sm: "badge-sm text-xs",
311
311
  lg: "badge-sm text-xs",
312
312
  xl: "badge text-xs"
313
- }, I = /* @__PURE__ */ p({
313
+ }, ce = /* @__PURE__ */ k({
314
314
  __name: "btn",
315
315
  props: {
316
316
  href: {},
317
317
  disabled: { type: Boolean, default: !1 },
318
- as: { default: ye.button },
318
+ as: { default: qt.button },
319
319
  icon: {},
320
- type: { default: ce.button },
320
+ type: { default: ot.button },
321
321
  outline: { type: Boolean, default: !1 },
322
- color: { default: O.primary },
322
+ color: { default: le.primary },
323
323
  size: { default: "sm" },
324
324
  square: { type: Boolean, default: !1 }
325
325
  },
326
326
  emits: ["click"],
327
327
  setup(e, { emit: t }) {
328
- const n = e, l = t;
329
- return (o, c) => (s(), g(se(e.as), D({
328
+ const n = e, s = t;
329
+ return (r, o) => (f(), S(et(e.as), z({
330
330
  class: [
331
331
  "btn p-1 flex justify-center flex-nowrap",
332
- f(Ze)[e.color],
333
- f(Ge)[e.size],
332
+ R(Mn)[e.color],
333
+ R(In)[e.size],
334
334
  { "btn-outline": e.outline, "btn-square": e.square }
335
335
  ]
336
336
  }, n, {
337
- onClick: c[0] || (c[0] = (h) => l("click"))
337
+ onClick: o[0] || (o[0] = (i) => s("click"))
338
338
  }), {
339
- default: T(() => [
340
- e.icon ? (s(), g(f(j), {
339
+ default: K(() => [
340
+ e.icon ? (f(), S(R(ne), {
341
341
  key: 0,
342
342
  icon: e.icon,
343
343
  size: e.size
344
- }, null, 8, ["icon", "size"])) : y("", !0),
345
- B(o.$slots, "default")
344
+ }, null, 8, ["icon", "size"])) : A("", !0),
345
+ j(r.$slots, "default")
346
346
  ]),
347
347
  _: 3
348
348
  }, 16, ["class"]));
349
349
  }
350
- }), Qe = ["type", "disabled"], Ln = /* @__PURE__ */ p({
350
+ }), qn = ["type", "disabled"], Jo = /* @__PURE__ */ k({
351
351
  __name: "btn-badge",
352
352
  props: {
353
353
  icon: { default: void 0 },
354
- type: { default: ce.button },
354
+ type: { default: ot.button },
355
355
  color: { default: void 0 },
356
356
  disabled: { type: Boolean, default: !1 },
357
357
  size: { default: "sm" }
@@ -359,21 +359,21 @@ const Ze = {
359
359
  emits: ["click"],
360
360
  setup(e, { emit: t }) {
361
361
  const n = t;
362
- return (l, o) => (s(), a("button", {
363
- class: w(["badge gap-1", f(Je)[e.size], f(We)[e.color]]),
362
+ return (s, r) => (f(), m("button", {
363
+ class: $(["badge gap-1", R(jn)[e.size], R(Fn)[e.color]]),
364
364
  type: e.type,
365
365
  disabled: e.disabled,
366
- onClick: o[0] || (o[0] = (c) => n("click"))
366
+ onClick: r[0] || (r[0] = (o) => n("click"))
367
367
  }, [
368
- B(l.$slots, "default"),
369
- e.icon ? (s(), g(f(j), {
368
+ j(s.$slots, "default"),
369
+ e.icon ? (f(), S(R(ne), {
370
370
  key: 0,
371
371
  icon: e.icon,
372
372
  size: e.size
373
- }, null, 8, ["icon", "size"])) : y("", !0)
374
- ], 10, Qe));
373
+ }, null, 8, ["icon", "size"])) : A("", !0)
374
+ ], 10, qn));
375
375
  }
376
- }), Xe = /* @__PURE__ */ p({
376
+ }), zn = /* @__PURE__ */ k({
377
377
  __name: "confirmModal",
378
378
  props: {
379
379
  title: {},
@@ -383,33 +383,33 @@ const Ze = {
383
383
  },
384
384
  emits: ["closeModal"],
385
385
  setup(e, { emit: t }) {
386
- const n = t, l = (o) => {
387
- n("closeModal", { confirmed: o });
386
+ const n = t, s = (r) => {
387
+ n("closeModal", { confirmed: r });
388
388
  };
389
- return (o, c) => (s(), g(Ee, {
389
+ return (r, o) => (f(), S(Un, {
390
390
  "modal-title": e.title,
391
391
  open: !0,
392
392
  "disable-close": !0
393
393
  }, {
394
- content: T(() => [
395
- V(v(e.message), 1)
394
+ content: K(() => [
395
+ X(C(e.message), 1)
396
396
  ]),
397
- actions: T(() => [
398
- P(f(I), {
399
- color: f(O).secondary,
397
+ actions: K(() => [
398
+ F(R(ce), {
399
+ color: R(le).secondary,
400
400
  outline: !0,
401
- onClick: c[0] || (c[0] = (h) => l(!1))
401
+ onClick: o[0] || (o[0] = (i) => s(!1))
402
402
  }, {
403
- default: T(() => [
404
- V(v(e.cancelLabel), 1)
403
+ default: K(() => [
404
+ X(C(e.cancelLabel), 1)
405
405
  ]),
406
406
  _: 1
407
407
  }, 8, ["color"]),
408
- P(f(I), {
409
- onClick: c[1] || (c[1] = (h) => l(!0))
408
+ F(R(ce), {
409
+ onClick: o[1] || (o[1] = (i) => s(!0))
410
410
  }, {
411
- default: T(() => [
412
- V(v(e.confirmLabel), 1)
411
+ default: K(() => [
412
+ X(C(e.confirmLabel), 1)
413
413
  ]),
414
414
  _: 1
415
415
  })
@@ -418,22 +418,22 @@ const Ze = {
418
418
  }, 8, ["modal-title"]));
419
419
  }
420
420
  });
421
- class ue {
421
+ class it {
422
422
  constructor() {
423
- this.showModal = N(!1), this.modals = [];
423
+ this.showModal = G(!1), this.modals = [];
424
424
  }
425
425
  openModal(t) {
426
- const n = t.props.onClose, l = Y(), o = t;
427
- t.props.onClose = (c) => {
428
- n(c), this.closeModal(l);
429
- }, o.id = l, this.modals = [...this.modals, o], this.showModal.value = Date.now();
426
+ const n = t.props.onClose, s = De(), r = t;
427
+ t.props.onClose = (o) => {
428
+ n(o), this.closeModal(s);
429
+ }, r.id = s, this.modals = [...this.modals, r], this.showModal.value = Date.now();
430
430
  }
431
431
  closeModal(t) {
432
432
  this.modals = this.modals.filter((n) => n.id !== t), this.showModal.value = Date.now();
433
433
  }
434
434
  static showConfirm(t) {
435
435
  this.getInstance().openModal({
436
- component: Xe,
436
+ component: zn,
437
437
  props: t
438
438
  });
439
439
  }
@@ -441,7 +441,7 @@ class ue {
441
441
  this.getInstance().openModal(t);
442
442
  }
443
443
  static getInstance() {
444
- return this.instance || (this.instance = new ue()), this.instance;
444
+ return this.instance || (this.instance = new it()), this.instance;
445
445
  }
446
446
  static closeAll() {
447
447
  this.instance.closeAll();
@@ -450,19 +450,19 @@ class ue {
450
450
  this.modals = [], this.showModal.value = !1;
451
451
  }
452
452
  }
453
- const Ye = /* @__PURE__ */ p({
453
+ const Hn = /* @__PURE__ */ k({
454
454
  __name: "modalWrapper",
455
455
  setup(e) {
456
- const t = ue.getInstance(), n = k(() => t.showModal.value ? t.modals : []);
457
- return (l, o) => (s(!0), a(x, null, L(n.value, (c) => (s(), g(se(c?.component), D({
458
- key: c.id,
456
+ const t = it.getInstance(), n = B(() => t.showModal.value ? t.modals : []);
457
+ return (s, r) => (f(!0), m(P, null, M(n.value, (o) => (f(), S(et(o?.component), z({
458
+ key: o.id,
459
459
  ref_for: !0
460
- }, c?.props, {
460
+ }, o?.props, {
461
461
  open: !0,
462
- onCloseModal: c?.props?.onClose
462
+ onCloseModal: o?.props?.onClose
463
463
  }), null, 16, ["onCloseModal"]))), 128));
464
464
  }
465
- }), et = /* @__PURE__ */ p({
465
+ }), Vn = /* @__PURE__ */ k({
466
466
  __name: "notification-message",
467
467
  props: {
468
468
  message: {},
@@ -475,24 +475,24 @@ const Ye = /* @__PURE__ */ p({
475
475
  warning: "alert-warning",
476
476
  info: "alert-info"
477
477
  };
478
- return (n, l) => (s(), a("div", {
478
+ return (n, s) => (f(), m("div", {
479
479
  role: "alert",
480
- class: w(`alert ${t[e.type]} `)
480
+ class: $(`alert ${t[e.type]} `)
481
481
  }, [
482
- i("span", null, v(e.message), 1)
482
+ b("span", null, C(e.message), 1)
483
483
  ], 2));
484
484
  }
485
- }), tt = 5e3;
486
- class de {
485
+ }), Kn = 5e3;
486
+ class at {
487
487
  constructor() {
488
- this.notifications = N([]), this.addNotification = (t, n = "info") => {
489
- const l = {
490
- id: Y(),
491
- duration: tt,
488
+ this.notifications = G([]), this.addNotification = (t, n = "info") => {
489
+ const s = {
490
+ id: De(),
491
+ duration: Kn,
492
492
  message: t,
493
493
  type: n
494
494
  };
495
- this.notifications.value.push(l), this.removeNotificationAfterDuration(l);
495
+ this.notifications.value.push(s), this.removeNotificationAfterDuration(s);
496
496
  }, this.removeNotificationAfterDuration = (t) => {
497
497
  setTimeout(() => {
498
498
  this.removeNotification(t.id);
@@ -502,7 +502,7 @@ class de {
502
502
  };
503
503
  }
504
504
  static getInstance() {
505
- return this.instance || (this.instance = new de()), this.instance;
505
+ return this.instance || (this.instance = new at()), this.instance;
506
506
  }
507
507
  static info(t) {
508
508
  this.getInstance().addNotification(t, "info");
@@ -520,17 +520,17 @@ class de {
520
520
  this.getInstance().removeNotification(t);
521
521
  }
522
522
  }
523
- const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__ */ p({
523
+ const Wn = { class: "toast toast-top toast-center z-[999]" }, Jn = /* @__PURE__ */ k({
524
524
  __name: "notifications",
525
525
  setup(e) {
526
- const t = de.getInstance();
527
- return (n, l) => (s(), a("div", nt, [
528
- (s(!0), a(x, null, L(f(t).notifications.value, (o) => (s(), g(et, D({
529
- key: o.id
530
- }, { ref_for: !0 }, o), null, 16))), 128))
526
+ const t = at.getInstance();
527
+ return (n, s) => (f(), m("div", Wn, [
528
+ (f(!0), m(P, null, M(R(t).notifications.value, (r) => (f(), S(Vn, z({
529
+ key: r.id
530
+ }, { ref_for: !0 }, r), null, 16))), 128))
531
531
  ]));
532
532
  }
533
- }), st = { class: "h-screen" }, lt = { class: "navbar bg-primary text-primary-content w-full z-100 sticky" }, at = { class: "navbar-start" }, it = { class: "navbar-center" }, rt = ["href"], ct = { class: "navbar-end" }, ut = { class: "menu h-full flex-col space-between m-0 overflow-y-auto" }, dt = { class: "flex-grow-1" }, mt = { class: "bg-base-200 p-4" }, ht = { class: "h-full" }, fe = 64, Mn = /* @__PURE__ */ p({
533
+ }), Zn = { class: "h-screen" }, Xn = { class: "navbar bg-primary text-primary-content w-full z-100 sticky" }, Gn = { class: "navbar-start" }, Qn = { class: "navbar-center" }, Yn = ["href"], es = { class: "navbar-end" }, ts = { class: "menu h-full flex-col space-between m-0 overflow-y-auto" }, ns = { class: "flex-grow-1" }, ss = { class: "bg-base-200 p-4" }, rs = { class: "h-full" }, Rt = 64, Zo = /* @__PURE__ */ k({
534
534
  __name: "shell.component",
535
535
  props: {
536
536
  title: {},
@@ -541,91 +541,91 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
541
541
  },
542
542
  emits: ["logout"],
543
543
  setup(e, { emit: t }) {
544
- const l = e, o = N(!1), c = () => {
545
- o.value = !o.value;
546
- }, h = t, d = k(() => l.user ? {
547
- label: l.user.name,
544
+ const s = e, r = G(!1), o = () => {
545
+ r.value = !r.value;
546
+ }, i = t, a = B(() => s.user ? {
547
+ label: s.user.name,
548
548
  items: [
549
549
  {
550
550
  label: "Logout",
551
551
  action: () => {
552
- h("logout");
552
+ i("logout");
553
553
  }
554
554
  }
555
555
  ]
556
556
  } : null);
557
- return (u, m) => (s(), a(x, null, [
558
- P(ot),
559
- P(f(Ye)),
560
- i("div", st, [
561
- i("header", null, [
562
- i("nav", lt, [
563
- i("div", at, [
564
- i("button", {
557
+ return (d, u) => (f(), m(P, null, [
558
+ F(Jn),
559
+ F(R(Hn)),
560
+ b("div", Zn, [
561
+ b("header", null, [
562
+ b("nav", Xn, [
563
+ b("div", Gn, [
564
+ b("button", {
565
565
  "aria-label": "open sidebar",
566
566
  class: "btn btn-square btn-ghost p-1",
567
- onClick: c
567
+ onClick: o
568
568
  }, [
569
- P(f(j), {
570
- icon: f(z).Hamburger
569
+ F(R(ne), {
570
+ icon: R(Z).Hamburger
571
571
  }, null, 8, ["icon"])
572
572
  ])
573
573
  ]),
574
- i("div", it, [
575
- i("a", {
574
+ b("div", Qn, [
575
+ b("a", {
576
576
  class: "btn btn-ghost text-xl",
577
- href: f("/")
578
- }, v(e.title), 9, rt)
577
+ href: R("/")
578
+ }, C(e.title), 9, Yn)
579
579
  ]),
580
- i("div", ct, [
581
- d.value ? (s(), g(f(re), D({ key: 0 }, d.value, { "btn-class": "" }), null, 16)) : y("", !0)
580
+ b("div", es, [
581
+ a.value ? (f(), S(R(rt), z({ key: 0 }, a.value, { "btn-class": "" }), null, 16)) : A("", !0)
582
582
  ])
583
583
  ])
584
584
  ]),
585
- o.value ? (s(), a("aside", {
585
+ r.value ? (f(), m("aside", {
586
586
  key: 0,
587
587
  id: "drawer-left",
588
588
  class: "fixed overflow-y-auto z-[1000] min-h-0 min-w-0 relative flex-shrink-0 bg-white shadow-lg transition-all duration-300 ease-in-out border-l border-gray-200 overflow-visible inset-0",
589
- style: J({
589
+ style: $e({
590
590
  width: e.widthSidebar + "px",
591
- top: `${fe}px`
591
+ top: `${Rt}px`
592
592
  })
593
593
  }, [
594
- i("div", ut, [
595
- i("ul", dt, [
596
- (s(!0), a(x, null, L(e.menu, (r) => (s(), a("li", {
597
- key: r.label
594
+ b("div", ts, [
595
+ b("ul", ns, [
596
+ (f(!0), m(P, null, M(e.menu, (l) => (f(), m("li", {
597
+ key: l.label
598
598
  }, [
599
- P(f(Be), {
600
- to: { name: r.routerLink, params: r.params }
599
+ F(R(wn), {
600
+ to: { name: l.routerLink, params: l.params }
601
601
  }, {
602
- default: T(() => [
603
- V(v(r.label), 1)
602
+ default: K(() => [
603
+ X(C(l.label), 1)
604
604
  ]),
605
605
  _: 2
606
606
  }, 1032, ["to"])
607
607
  ]))), 128))
608
608
  ]),
609
- i("div", mt, "version: " + v(e.version), 1)
609
+ b("div", ss, " version: " + C(e.version), 1)
610
610
  ])
611
- ], 4)) : y("", !0),
612
- i("main", {
613
- class: w("overflow-hidden fixed border-red bg-white mx-auto max-h-full shadow-sm "),
614
- style: J({
615
- top: `${fe}px`,
611
+ ], 4)) : A("", !0),
612
+ b("main", {
613
+ class: $("overflow-hidden fixed border-red bg-white mx-auto max-h-full shadow-sm "),
614
+ style: $e({
615
+ top: `${Rt}px`,
616
616
  bottom: "2px",
617
617
  right: "2px",
618
- left: o.value ? e.widthSidebar + "px" : 0
618
+ left: r.value ? e.widthSidebar + "px" : 0
619
619
  })
620
620
  }, [
621
- i("div", ht, [
622
- B(u.$slots, "default")
621
+ b("div", rs, [
622
+ j(d.$slots, "default")
623
623
  ])
624
624
  ], 4)
625
625
  ])
626
626
  ], 64));
627
627
  }
628
- }), E = /* @__PURE__ */ p({
628
+ }), pe = /* @__PURE__ */ k({
629
629
  __name: "pagination-button.component",
630
630
  props: {
631
631
  currentPage: {},
@@ -636,25 +636,25 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
636
636
  },
637
637
  emits: ["updatePage", "updatePageSize"],
638
638
  setup(e, { emit: t }) {
639
- const n = e, l = t, o = k(
639
+ const n = e, s = t, r = B(
640
640
  () => n.neverActive ? !1 : n.page === n.currentPage
641
- ), c = k(() => n.neverActive ? O.blank : o.value ? O.primary : O.secondary), h = () => {
642
- l("updatePage", n.page);
641
+ ), o = B(() => n.neverActive ? le.blank : r.value ? le.primary : le.secondary), i = () => {
642
+ s("updatePage", n.page);
643
643
  };
644
- return (d, u) => (s(), g(f(I), {
644
+ return (a, d) => (f(), S(R(ce), {
645
645
  disabled: e.disabled,
646
646
  square: !0,
647
647
  size: "xs",
648
- color: c.value,
649
- onClick: u[0] || (u[0] = (m) => h())
648
+ color: o.value,
649
+ onClick: d[0] || (d[0] = (u) => i())
650
650
  }, {
651
- default: T(() => [
652
- V(v(e.label), 1)
651
+ default: K(() => [
652
+ X(C(e.label), 1)
653
653
  ]),
654
654
  _: 1
655
655
  }, 8, ["disabled", "color"]));
656
656
  }
657
- }), bt = { class: "flex gap-2" }, ft = { class: "flex flex-1 justify-center items-center" }, vt = { class: "flex gap-1" }, gt = { class: "text-sm" }, Z = 6, pt = /* @__PURE__ */ p({
657
+ }), os = { class: "flex gap-2" }, is = { class: "flex flex-1 justify-center items-center" }, as = { class: "flex gap-1" }, ls = { class: "text-sm" }, me = 6, cs = /* @__PURE__ */ k({
658
658
  __name: "pagination.component",
659
659
  props: {
660
660
  totalItems: { type: Number, default: 0 },
@@ -663,94 +663,94 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
663
663
  },
664
664
  emits: ["updatePage", "updatePageSize"],
665
665
  setup(e, { emit: t }) {
666
- const n = e, l = t, o = k(() => {
667
- let r = Math.ceil(n.totalItems / n.itemsPerPage);
668
- return r < 1 ? 1 : r;
669
- }), c = Z / 2, h = k(() => {
670
- if (o.value <= Z)
666
+ const n = e, s = t, r = B(() => {
667
+ let l = Math.ceil(n.totalItems / n.itemsPerPage);
668
+ return l < 1 ? 1 : l;
669
+ }), o = me / 2, i = B(() => {
670
+ if (r.value <= me)
671
671
  return {
672
672
  min: 1,
673
- max: o.value
673
+ max: r.value
674
674
  };
675
- let r = n.currentPage - c;
676
- r <= 1 ? r = 1 : r + Z > o.value && (r = o.value - Z);
677
- let A = r + Z;
675
+ let l = n.currentPage - o;
676
+ l <= 1 ? l = 1 : l + me > r.value && (l = r.value - me);
677
+ let g = l + me;
678
678
  return {
679
- min: r,
680
- max: A
679
+ min: l,
680
+ max: g
681
681
  };
682
- }), d = (r) => ({
682
+ }), a = (l) => ({
683
683
  label: "...",
684
- currentPage: r,
684
+ currentPage: l,
685
685
  page: -10,
686
686
  disabled: !0,
687
687
  neverActive: !0
688
- }), u = k(() => {
689
- let r = o.value;
690
- r < 1 && (r = 1);
691
- const A = n.currentPage, S = [], { min: R, max: H } = h.value;
692
- return Array.from({ length: r }, (M, U) => {
693
- const b = U + 1;
694
- b !== 1 && b !== r && (b > H || b < R) || (b === r && r > 1 && H < r && S.push(d(A)), S.push({
695
- label: `${b}`,
696
- totalPages: r,
697
- currentPage: A,
698
- page: b
699
- }), b === 1 && r > 1 && R > 1 && S.push(d(A)));
700
- }), S;
701
- }), m = (r) => {
702
- l("updatePage", r);
688
+ }), d = B(() => {
689
+ let l = r.value;
690
+ l < 1 && (l = 1);
691
+ const g = n.currentPage, x = [], { min: _, max: h } = i.value;
692
+ return Array.from({ length: l }, (y, p) => {
693
+ const w = p + 1;
694
+ w !== 1 && w !== l && (w > h || w < _) || (w === l && l > 1 && h < l && x.push(a(g)), x.push({
695
+ label: `${w}`,
696
+ totalPages: l,
697
+ currentPage: g,
698
+ page: w
699
+ }), w === 1 && l > 1 && _ > 1 && x.push(a(g)));
700
+ }), x;
701
+ }), u = (l) => {
702
+ s("updatePage", l);
703
703
  };
704
- return (r, A) => (s(), a("div", bt, [
705
- i("div", ft, [
706
- i("div", vt, [
707
- P(E, D(n, {
704
+ return (l, g) => (f(), m("div", os, [
705
+ b("div", is, [
706
+ b("div", as, [
707
+ F(pe, z(n, {
708
708
  page: 1,
709
709
  label: "<<",
710
710
  "current-page": e.currentPage,
711
711
  "never-active": !0,
712
712
  disabled: e.currentPage === 1,
713
- onUpdatePage: m
713
+ onUpdatePage: u
714
714
  }), null, 16, ["current-page", "disabled"]),
715
- P(E, D(n, {
715
+ F(pe, z(n, {
716
716
  page: e.currentPage - 1,
717
717
  label: "<",
718
718
  "current-page": e.currentPage,
719
719
  "never-active": !0,
720
720
  disabled: e.currentPage === 1,
721
- onUpdatePage: m
721
+ onUpdatePage: u
722
722
  }), null, 16, ["page", "current-page", "disabled"]),
723
- (s(!0), a(x, null, L(u.value, (S) => (s(), g(E, D({
724
- key: S.page,
723
+ (f(!0), m(P, null, M(d.value, (x) => (f(), S(pe, z({
724
+ key: x.page,
725
725
  ref_for: !0
726
- }, S, { onUpdatePage: m }), null, 16))), 128)),
727
- P(E, D(n, {
726
+ }, x, { onUpdatePage: u }), null, 16))), 128)),
727
+ F(pe, z(n, {
728
728
  page: e.currentPage + 1,
729
729
  label: ">",
730
730
  "current-page": e.currentPage,
731
731
  "never-active": !0,
732
- disabled: n.currentPage === o.value,
733
- onUpdatePage: m
732
+ disabled: n.currentPage === r.value,
733
+ onUpdatePage: u
734
734
  }), null, 16, ["page", "current-page", "disabled"]),
735
- P(E, D(n, {
736
- page: o.value,
735
+ F(pe, z(n, {
736
+ page: r.value,
737
737
  label: ">>",
738
738
  "current-page": e.currentPage,
739
739
  "never-active": !0,
740
- disabled: n.currentPage === o.value,
741
- onUpdatePage: m
740
+ disabled: n.currentPage === r.value,
741
+ onUpdatePage: u
742
742
  }), null, 16, ["page", "current-page", "disabled"])
743
743
  ])
744
744
  ]),
745
- i("div", gt, " page " + v(e.currentPage) + " of " + v(o.value), 1)
745
+ b("div", ls, " page " + C(e.currentPage) + " of " + C(r.value), 1)
746
746
  ]));
747
747
  }
748
- }), we = (e, t) => {
748
+ }), zt = (e, t) => {
749
749
  const n = e.__vccOpts || e;
750
- for (const [l, o] of t)
751
- n[l] = o;
750
+ for (const [s, r] of t)
751
+ n[s] = r;
752
752
  return n;
753
- }, yt = () => ({
753
+ }, us = () => ({
754
754
  data: {
755
755
  type: Object,
756
756
  required: !0
@@ -763,10 +763,10 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
763
763
  type: Object,
764
764
  required: !1
765
765
  }
766
- }), wt = p({
766
+ }), ds = k({
767
767
  name: "TextCell",
768
768
  props: {
769
- ...yt()
769
+ ...us()
770
770
  },
771
771
  computed: {
772
772
  value() {
@@ -774,11 +774,11 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
774
774
  return e ? this.column.options?.format === "keyValue" ? e[this.column.options.key] : e : null;
775
775
  }
776
776
  }
777
- }), xt = wt;
778
- function kt(e, t, n, l, o, c) {
779
- return v(e.value);
777
+ }), fs = ds;
778
+ function hs(e, t, n, s, r, o) {
779
+ return C(e.value);
780
780
  }
781
- const Bn = /* @__PURE__ */ we(xt, [["render", kt]]), $t = { class: "flex-grow pr-2" }, Ct = { class: "h-4 w-4" }, _t = /* @__PURE__ */ p({
781
+ const Xo = /* @__PURE__ */ zt(fs, [["render", hs]]), ps = { class: "flex-grow pr-2" }, ms = { class: "h-4 w-4" }, bs = /* @__PURE__ */ k({
782
782
  __name: "sort.header",
783
783
  props: {
784
784
  column: {},
@@ -787,25 +787,25 @@ const Bn = /* @__PURE__ */ we(xt, [["render", kt]]), $t = { class: "flex-grow pr
787
787
  },
788
788
  emits: ["sort"],
789
789
  setup(e, { emit: t }) {
790
- const n = e, l = k(
791
- () => n.sortDirection === "asc" ? z.BarsArrowUp : z.BarsArrowDown
792
- ), o = k(() => n.column.options?.sortId ?? n.column.id), c = () => {
793
- h("sort", o.value);
794
- }, h = t;
795
- return (d, u) => (s(), a("button", {
790
+ const n = e, s = B(
791
+ () => n.sortDirection === "asc" ? Z.BarsArrowUp : Z.BarsArrowDown
792
+ ), r = B(() => n.column.options?.sortId ?? n.column.id), o = () => {
793
+ i("sort", r.value);
794
+ }, i = t;
795
+ return (a, d) => (f(), m("button", {
796
796
  class: "flex items-center",
797
- onClick: c
797
+ onClick: o
798
798
  }, [
799
- i("span", $t, v(e.column.label), 1),
800
- i("div", Ct, [
801
- e.sortColumn === o.value ? (s(), g(f(j), {
799
+ b("span", ps, C(e.column.label), 1),
800
+ b("div", ms, [
801
+ e.sortColumn === r.value ? (f(), S(R(ne), {
802
802
  key: 0,
803
- icon: l.value
804
- }, null, 8, ["icon"])) : y("", !0)
803
+ icon: s.value
804
+ }, null, 8, ["icon"])) : A("", !0)
805
805
  ])
806
806
  ]));
807
807
  }
808
- }), Lt = { class: "table w-full" }, Mt = { key: 0 }, Bt = ["colspan"], Pt = { class: "flex gap-2" }, Pn = /* @__PURE__ */ p({
808
+ }), gs = { class: "table w-full" }, ys = { key: 0 }, ws = ["colspan"], vs = { class: "flex gap-2" }, Go = /* @__PURE__ */ k({
809
809
  __name: "table.component",
810
810
  props: {
811
811
  loading: { type: Boolean },
@@ -817,117 +817,117 @@ const Bn = /* @__PURE__ */ we(xt, [["render", kt]]), $t = { class: "flex-grow pr
817
817
  },
818
818
  emits: ["delete", "edit", "updatePage", "sort"],
819
819
  setup(e, { emit: t }) {
820
- const n = t, l = (d) => {
821
- n("edit", d);
822
- }, o = (d) => {
823
- n("delete", d);
824
- }, c = (d) => {
825
- n("updatePage", d);
826
- }, h = (d) => {
827
- n("sort", d);
820
+ const n = t, s = (a) => {
821
+ n("edit", a);
822
+ }, r = (a) => {
823
+ n("delete", a);
824
+ }, o = (a) => {
825
+ n("updatePage", a);
826
+ }, i = (a) => {
827
+ n("sort", a);
828
828
  };
829
- return (d, u) => (s(), a(x, null, [
830
- i("table", Lt, [
831
- i("thead", null, [
832
- i("tr", null, [
833
- (s(!0), a(x, null, L(e.displayColumns, (m) => (s(), a("th", {
834
- key: m.scope
829
+ return (a, d) => (f(), m(P, null, [
830
+ b("table", gs, [
831
+ b("thead", null, [
832
+ b("tr", null, [
833
+ (f(!0), m(P, null, M(e.displayColumns, (u) => (f(), m("th", {
834
+ key: u.scope
835
835
  }, [
836
- P(_t, D({ column: m }, { ref_for: !0 }, e.sort, { onSort: h }), null, 16, ["column"])
836
+ F(bs, z({ column: u }, { ref_for: !0 }, e.sort, { onSort: i }), null, 16, ["column"])
837
837
  ]))), 128)),
838
- u[0] || (u[0] = i("th", null, null, -1))
838
+ d[0] || (d[0] = b("th", null, null, -1))
839
839
  ])
840
840
  ]),
841
- i("tbody", null, [
842
- e.loading ? (s(), a("tr", Mt, [
843
- i("td", {
841
+ b("tbody", null, [
842
+ e.loading ? (f(), m("tr", ys, [
843
+ b("td", {
844
844
  colspan: e.displayColumns.length + 1,
845
845
  class: "text-center"
846
- }, [...u[1] || (u[1] = [
847
- i("span", { class: "loading loading-bars loading-xs" }, null, -1)
848
- ])], 8, Bt)
849
- ])) : y("", !0),
850
- (s(!0), a(x, null, L(e.data, (m) => (s(), a("tr", {
851
- key: m.id
846
+ }, [...d[1] || (d[1] = [
847
+ b("span", { class: "loading loading-bars loading-xs" }, null, -1)
848
+ ])], 8, ws)
849
+ ])) : A("", !0),
850
+ (f(!0), m(P, null, M(e.data, (u) => (f(), m("tr", {
851
+ key: u.id
852
852
  }, [
853
- (s(!0), a(x, null, L(e.displayColumns, (r) => (s(), a("td", {
854
- key: r.scope
853
+ (f(!0), m(P, null, M(e.displayColumns, (l) => (f(), m("td", {
854
+ key: l.scope
855
855
  }, [
856
- (s(), g(se(r.component), D({ ref_for: !0 }, r, {
857
- data: m,
858
- column: r
856
+ (f(), S(et(l.component), z({ ref_for: !0 }, l, {
857
+ data: u,
858
+ column: l
859
859
  }), null, 16, ["data", "column"]))
860
860
  ]))), 128)),
861
- i("td", null, [
862
- i("span", Pt, [
863
- (s(!0), a(x, null, L(e.actions, (r) => (s(), g(I, {
864
- key: r.label,
865
- icon: r.icon,
861
+ b("td", null, [
862
+ b("span", vs, [
863
+ (f(!0), m(P, null, M(e.actions, (l) => (f(), S(ce, {
864
+ key: l.label,
865
+ icon: l.icon,
866
866
  outline: !0,
867
- onClick: (A) => r.action(m)
867
+ onClick: (g) => l.action(u)
868
868
  }, {
869
- default: T(() => [
870
- V(v(r.label), 1)
869
+ default: K(() => [
870
+ X(C(l.label), 1)
871
871
  ]),
872
872
  _: 2
873
873
  }, 1032, ["icon", "onClick"]))), 128)),
874
- P(I, {
875
- icon: f(z).Edit,
874
+ F(ce, {
875
+ icon: R(Z).Edit,
876
876
  outline: !0,
877
- onClick: (r) => l(m)
877
+ onClick: (l) => s(u)
878
878
  }, null, 8, ["icon", "onClick"]),
879
- P(I, {
880
- icon: f(z).Delete,
879
+ F(ce, {
880
+ icon: R(Z).Delete,
881
881
  outline: !0,
882
- onClick: (r) => o(m)
882
+ onClick: (l) => r(u)
883
883
  }, null, 8, ["icon", "onClick"])
884
884
  ])
885
885
  ])
886
886
  ]))), 128))
887
887
  ])
888
888
  ]),
889
- e.page ? (s(), g(pt, {
889
+ e.page ? (f(), S(cs, {
890
890
  key: 0,
891
891
  class: "border-gray-300 border-t pt-4 border-x-0 border-b-0",
892
892
  "total-items": e.page.count,
893
893
  "items-per-page": e.page.pageSize,
894
894
  "current-page": e.page.page,
895
- onUpdatePage: c
896
- }, null, 8, ["total-items", "items-per-page", "current-page"])) : y("", !0)
895
+ onUpdatePage: o
896
+ }, null, 8, ["total-items", "items-per-page", "current-page"])) : A("", !0)
897
897
  ], 64));
898
898
  }
899
- }), Dt = {}, At = { class: "card bg-base-100 shadow-sm" }, Tt = { class: "card-body" }, St = {
899
+ }), xs = {}, Rs = { class: "card bg-base-100 shadow-sm" }, Cs = { class: "card-body" }, Es = {
900
900
  key: 0,
901
901
  class: "card-title"
902
- }, zt = {
902
+ }, Ss = {
903
903
  key: 1,
904
904
  class: "card-actions justify-end"
905
905
  };
906
- function Vt(e, t) {
907
- return s(), a("div", At, [
908
- i("div", Tt, [
909
- e.$slots.title ? (s(), a("h2", St, [
910
- B(e.$slots, "title")
911
- ])) : y("", !0),
912
- i("p", null, [
913
- B(e.$slots, "default"),
914
- B(e.$slots, "content")
906
+ function ks(e, t) {
907
+ return f(), m("div", Rs, [
908
+ b("div", Cs, [
909
+ e.$slots.title ? (f(), m("h2", Es, [
910
+ j(e.$slots, "title")
911
+ ])) : A("", !0),
912
+ b("p", null, [
913
+ j(e.$slots, "default"),
914
+ j(e.$slots, "content")
915
915
  ]),
916
- e.$slots.actions ? (s(), a("div", zt, [
917
- B(e.$slots, "actions")
918
- ])) : y("", !0)
916
+ e.$slots.actions ? (f(), m("div", Ss, [
917
+ j(e.$slots, "actions")
918
+ ])) : A("", !0)
919
919
  ])
920
920
  ]);
921
921
  }
922
- const Dn = /* @__PURE__ */ we(Dt, [["render", Vt]]), An = (e, t) => {
922
+ const Qo = /* @__PURE__ */ zt(xs, [["render", ks]]), Yo = (e, t) => {
923
923
  if (!e) return null;
924
- const n = (l) => {
925
- e.contains(l.target) || t();
924
+ const n = (s) => {
925
+ e.contains(s.target) || t();
926
926
  };
927
927
  return document.addEventListener("click", n), n;
928
- }, Tn = (e) => {
928
+ }, ei = (e) => {
929
929
  document.removeEventListener("click", e);
930
- }, Sn = {
930
+ }, ti = {
931
931
  beforeMount(e, t) {
932
932
  e.clickOutsideEvent = function(n) {
933
933
  e === n.target || e.contains(n.target) || t.value(n);
@@ -937,15 +937,15 @@ const Dn = /* @__PURE__ */ we(Dt, [["render", Vt]]), An = (e, t) => {
937
937
  document.removeEventListener("click", e.clickOutsideEvent);
938
938
  }
939
939
  };
940
- function zn(e) {
941
- const t = $e();
940
+ function ni(e) {
941
+ const t = mn();
942
942
  if (!t)
943
943
  return !1;
944
944
  const n = t.vnode.props;
945
- return n ? !!(n[he(e)] || // also try camelCase event handler (#2249)
946
- n[he(Ce(e))]) : !1;
945
+ return n ? !!(n[vt(e)] || // also try camelCase event handler (#2249)
946
+ n[vt(bn(e))]) : !1;
947
947
  }
948
- const Nt = {
948
+ const _s = {
949
949
  group: {
950
950
  root: "group",
951
951
  label: "text-primary text-lg font-bold",
@@ -976,23 +976,23 @@ const Nt = {
976
976
  root: "flex flex-row gap-x-2",
977
977
  item: "w-full"
978
978
  }
979
- }, ee = () => ({
980
- id: Y(),
979
+ }, Ue = () => ({
980
+ id: De(),
981
981
  visible: !0,
982
982
  required: !1,
983
983
  enabled: !0,
984
984
  isFocused: !1,
985
985
  isTouched: !1,
986
986
  hideLabel: !1,
987
- styles: Nt
988
- }), Rt = () => ({
989
- ...ee(),
987
+ styles: _s
988
+ }), As = () => ({
989
+ ...Ue(),
990
990
  options: [],
991
991
  valueKey: "value",
992
992
  labelKey: "label"
993
- }), Ut = (e, t, n) => !!(e && n), Ft = (e, t, n, l) => t === void 0 || t !== void 0 && !e || !l && !n, jt = { key: 0 }, me = /* @__PURE__ */ p({
993
+ }), Os = (e, t, n) => !!(e && n), Ts = (e, t, n, s) => t === void 0 || t !== void 0 && !e || !s && !n, $s = { key: 0 }, lt = /* @__PURE__ */ k({
994
994
  __name: "ControlWrapper",
995
- props: /* @__PURE__ */ X({
995
+ props: /* @__PURE__ */ Ne({
996
996
  id: {},
997
997
  description: {},
998
998
  errors: {},
@@ -1004,37 +1004,37 @@ const Nt = {
1004
1004
  isTouched: { type: Boolean },
1005
1005
  hideLabel: { type: Boolean },
1006
1006
  styles: {}
1007
- }, ee()),
1007
+ }, Ue()),
1008
1008
  setup(e) {
1009
- const t = e, n = k(() => !Ft(
1009
+ const t = e, n = B(() => !Ts(
1010
1010
  t.visible,
1011
1011
  t.description,
1012
1012
  t.isFocused,
1013
1013
  !0
1014
- )), l = k(() => t.required), o = k(() => Ut(
1014
+ )), s = B(() => t.required), r = B(() => Os(
1015
1015
  t.isTouched,
1016
1016
  t.isFocused,
1017
1017
  t.errors
1018
1018
  ));
1019
- return (c, h) => (s(), a("fieldset", {
1020
- class: w(e.styles.control.wrapper)
1019
+ return (o, i) => (f(), m("fieldset", {
1020
+ class: $(e.styles.control.wrapper)
1021
1021
  }, [
1022
- e.hideLabel ? y("", !0) : (s(), a("legend", {
1022
+ e.hideLabel ? A("", !0) : (f(), m("legend", {
1023
1023
  key: 0,
1024
- class: w(e.styles.control.label)
1024
+ class: $(e.styles.control.label)
1025
1025
  }, [
1026
- V(v(e.label) + " ", 1),
1027
- l.value ? (s(), a("span", jt, "*")) : y("", !0)
1026
+ X(C(e.label) + " ", 1),
1027
+ s.value ? (f(), m("span", $s, "*")) : A("", !0)
1028
1028
  ], 2)),
1029
- B(c.$slots, "default"),
1030
- i("p", {
1031
- class: w(["fieldset-label h-4", { "text-error": o.value }])
1032
- }, v(o.value ? e.errors : n.value ? e.description : null), 3)
1029
+ j(o.$slots, "default"),
1030
+ b("p", {
1031
+ class: $(["fieldset-label h-4", { "text-error": r.value }])
1032
+ }, C(r.value ? e.errors : n.value ? e.description : null), 3)
1033
1033
  ], 2));
1034
1034
  }
1035
- }), Ht = ["disabled"], Kt = ["value"], Vn = /* @__PURE__ */ p({
1035
+ }), Ls = ["disabled"], Ps = ["value"], si = /* @__PURE__ */ k({
1036
1036
  __name: "SelectComponent",
1037
- props: /* @__PURE__ */ q(/* @__PURE__ */ X({
1037
+ props: /* @__PURE__ */ ue(/* @__PURE__ */ Ne({
1038
1038
  id: {},
1039
1039
  description: {},
1040
1040
  errors: {},
@@ -1050,7 +1050,7 @@ const Nt = {
1050
1050
  valueKey: {},
1051
1051
  labelKey: {}
1052
1052
  }, {
1053
- ...ee(),
1053
+ ...Ue(),
1054
1054
  options: [],
1055
1055
  valueKey: "value",
1056
1056
  labelKey: "label"
@@ -1058,107 +1058,1884 @@ const Nt = {
1058
1058
  modelValue: {},
1059
1059
  modelModifiers: {}
1060
1060
  }),
1061
- emits: /* @__PURE__ */ q(["change", "focus", "blur"], ["update:modelValue"]),
1061
+ emits: /* @__PURE__ */ ue(["change", "focus", "blur"], ["update:modelValue"]),
1062
1062
  setup(e, { emit: t }) {
1063
- const n = e, l = t, o = le(e, "modelValue"), c = (u) => {
1064
- l("change", u);
1065
- }, h = (u) => {
1066
- l("focus", u);
1067
- }, d = (u) => {
1068
- l("blur", u);
1063
+ const n = e, s = t, r = tt(e, "modelValue"), o = (d) => {
1064
+ s("change", d);
1065
+ }, i = (d) => {
1066
+ s("focus", d);
1067
+ }, a = (d) => {
1068
+ s("blur", d);
1069
1069
  };
1070
- return (u, m) => (s(), g(me, ae(ie(n)), {
1071
- default: T(() => [
1072
- Q(i("select", {
1073
- "onUpdate:modelValue": m[0] || (m[0] = (r) => o.value = r),
1070
+ return (d, u) => (f(), S(lt, nt(st(n)), {
1071
+ default: K(() => [
1072
+ Le(b("select", {
1073
+ "onUpdate:modelValue": u[0] || (u[0] = (l) => r.value = l),
1074
1074
  disabled: !e.enabled,
1075
- class: w(["select select-bordered", e.styles.control.select]),
1076
- onChange: c,
1077
- onFocus: h,
1078
- onBlur: d
1075
+ class: $(["select select-bordered", e.styles.control.select]),
1076
+ onChange: o,
1077
+ onFocus: i,
1078
+ onBlur: a
1079
1079
  }, [
1080
- (s(!0), a(x, null, L(e.options, (r) => (s(), a("option", {
1081
- key: r[e.valueKey],
1082
- value: r
1083
- }, v(r[e.labelKey]), 9, Kt))), 128))
1084
- ], 42, Ht), [
1085
- [_e, o.value]
1080
+ (f(!0), m(P, null, M(e.options, (l) => (f(), m("option", {
1081
+ key: l[e.valueKey],
1082
+ value: l
1083
+ }, C(l[e.labelKey]), 9, Ps))), 128))
1084
+ ], 42, Ls), [
1085
+ [gn, r.value]
1086
1086
  ])
1087
1087
  ]),
1088
1088
  _: 1
1089
1089
  }, 16));
1090
1090
  }
1091
- }), Ot = "GHENTCDH_AUTHENTICATION", It = () => {
1092
- const e = Le(Ot);
1093
- e || console.warn("No auth provided, authorized calls may not work");
1094
- const t = async (n, l, o = { contentType: "application/json" }) => {
1095
- const c = o?.skipAuth ?? e?.options.skipAuthentication, h = {
1096
- accept: "application/json",
1097
- ...l.headers ?? {}
1098
- };
1099
- o.contentType && (h["Content-Type"] = o.contentType), c || (await e?.updateToken(), h.Authorization = `Bearer ${e?.token()}`);
1100
- const d = new URL(n, window.location.href);
1101
- if (o?.queryParams)
1102
- for (const [m, r] of Object.entries(o.queryParams))
1103
- d.searchParams.set(m, r);
1104
- const u = await fetch(d.toString(), {
1105
- ...l,
1106
- headers: h
1091
+ });
1092
+ function Bs() {
1093
+ throw new Error(
1094
+ "Runtime config not loaded. Call loadRuntimeConfig() first."
1095
+ );
1096
+ }
1097
+ function Ht(e, t) {
1098
+ return function() {
1099
+ return e.apply(t, arguments);
1100
+ };
1101
+ }
1102
+ const { toString: Ns } = Object.prototype, { getPrototypeOf: ct } = Object, { iterator: Me, toStringTag: Vt } = Symbol, Fe = /* @__PURE__ */ ((e) => (t) => {
1103
+ const n = Ns.call(t);
1104
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
1105
+ })(/* @__PURE__ */ Object.create(null)), Q = (e) => (e = e.toLowerCase(), (t) => Fe(t) === e), Ie = (e) => (t) => typeof t === e, { isArray: fe } = Array, de = Ie("undefined");
1106
+ function ge(e) {
1107
+ return e !== null && !de(e) && e.constructor !== null && !de(e.constructor) && H(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1108
+ }
1109
+ const Kt = Q("ArrayBuffer");
1110
+ function Ds(e) {
1111
+ let t;
1112
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Kt(e.buffer), t;
1113
+ }
1114
+ const Us = Ie("string"), H = Ie("function"), Wt = Ie("number"), ye = (e) => e !== null && typeof e == "object", Ms = (e) => e === !0 || e === !1, _e = (e) => {
1115
+ if (Fe(e) !== "object")
1116
+ return !1;
1117
+ const t = ct(e);
1118
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Vt in e) && !(Me in e);
1119
+ }, Fs = (e) => {
1120
+ if (!ye(e) || ge(e))
1121
+ return !1;
1122
+ try {
1123
+ return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
1124
+ } catch {
1125
+ return !1;
1126
+ }
1127
+ }, Is = Q("Date"), js = Q("File"), qs = Q("Blob"), zs = Q("FileList"), Hs = (e) => ye(e) && H(e.pipe), Vs = (e) => {
1128
+ let t;
1129
+ return e && (typeof FormData == "function" && e instanceof FormData || H(e.append) && ((t = Fe(e)) === "formdata" || // detect form-data instance
1130
+ t === "object" && H(e.toString) && e.toString() === "[object FormData]"));
1131
+ }, Ks = Q("URLSearchParams"), [Ws, Js, Zs, Xs] = [
1132
+ "ReadableStream",
1133
+ "Request",
1134
+ "Response",
1135
+ "Headers"
1136
+ ].map(Q), Gs = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1137
+ function we(e, t, { allOwnKeys: n = !1 } = {}) {
1138
+ if (e === null || typeof e > "u")
1139
+ return;
1140
+ let s, r;
1141
+ if (typeof e != "object" && (e = [e]), fe(e))
1142
+ for (s = 0, r = e.length; s < r; s++)
1143
+ t.call(null, e[s], s, e);
1144
+ else {
1145
+ if (ge(e))
1146
+ return;
1147
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
1148
+ let a;
1149
+ for (s = 0; s < i; s++)
1150
+ a = o[s], t.call(null, e[a], a, e);
1151
+ }
1152
+ }
1153
+ function Jt(e, t) {
1154
+ if (ge(e))
1155
+ return null;
1156
+ t = t.toLowerCase();
1157
+ const n = Object.keys(e);
1158
+ let s = n.length, r;
1159
+ for (; s-- > 0; )
1160
+ if (r = n[s], t === r.toLowerCase())
1161
+ return r;
1162
+ return null;
1163
+ }
1164
+ const re = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Zt = (e) => !de(e) && e !== re;
1165
+ function Xe() {
1166
+ const { caseless: e, skipUndefined: t } = Zt(this) && this || {}, n = {}, s = (r, o) => {
1167
+ if (o === "__proto__" || o === "constructor" || o === "prototype")
1168
+ return;
1169
+ const i = e && Jt(n, o) || o;
1170
+ _e(n[i]) && _e(r) ? n[i] = Xe(n[i], r) : _e(r) ? n[i] = Xe({}, r) : fe(r) ? n[i] = r.slice() : (!t || !de(r)) && (n[i] = r);
1171
+ };
1172
+ for (let r = 0, o = arguments.length; r < o; r++)
1173
+ arguments[r] && we(arguments[r], s);
1174
+ return n;
1175
+ }
1176
+ const Qs = (e, t, n, { allOwnKeys: s } = {}) => (we(
1177
+ t,
1178
+ (r, o) => {
1179
+ n && H(r) ? Object.defineProperty(e, o, {
1180
+ value: Ht(r, n),
1181
+ writable: !0,
1182
+ enumerable: !0,
1183
+ configurable: !0
1184
+ }) : Object.defineProperty(e, o, {
1185
+ value: r,
1186
+ writable: !0,
1187
+ enumerable: !0,
1188
+ configurable: !0
1107
1189
  });
1108
- return u.ok ? u.json() : (o?.skipAuth, Promise.reject({
1109
- content: u.body,
1110
- status: u.status
1111
- }));
1190
+ },
1191
+ { allOwnKeys: s }
1192
+ ), e), Ys = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), er = (e, t, n, s) => {
1193
+ e.prototype = Object.create(
1194
+ t.prototype,
1195
+ s
1196
+ ), Object.defineProperty(e.prototype, "constructor", {
1197
+ value: e,
1198
+ writable: !0,
1199
+ enumerable: !1,
1200
+ configurable: !0
1201
+ }), Object.defineProperty(e, "super", {
1202
+ value: t.prototype
1203
+ }), n && Object.assign(e.prototype, n);
1204
+ }, tr = (e, t, n, s) => {
1205
+ let r, o, i;
1206
+ const a = {};
1207
+ if (t = t || {}, e == null) return t;
1208
+ do {
1209
+ for (r = Object.getOwnPropertyNames(e), o = r.length; o-- > 0; )
1210
+ i = r[o], (!s || s(i, e, t)) && !a[i] && (t[i] = e[i], a[i] = !0);
1211
+ e = n !== !1 && ct(e);
1212
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
1213
+ return t;
1214
+ }, nr = (e, t, n) => {
1215
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
1216
+ const s = e.indexOf(t, n);
1217
+ return s !== -1 && s === n;
1218
+ }, sr = (e) => {
1219
+ if (!e) return null;
1220
+ if (fe(e)) return e;
1221
+ let t = e.length;
1222
+ if (!Wt(t)) return null;
1223
+ const n = new Array(t);
1224
+ for (; t-- > 0; )
1225
+ n[t] = e[t];
1226
+ return n;
1227
+ }, rr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ct(Uint8Array)), or = (e, t) => {
1228
+ const s = (e && e[Me]).call(e);
1229
+ let r;
1230
+ for (; (r = s.next()) && !r.done; ) {
1231
+ const o = r.value;
1232
+ t.call(e, o[0], o[1]);
1233
+ }
1234
+ }, ir = (e, t) => {
1235
+ let n;
1236
+ const s = [];
1237
+ for (; (n = e.exec(t)) !== null; )
1238
+ s.push(n);
1239
+ return s;
1240
+ }, ar = Q("HTMLFormElement"), lr = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, s, r) {
1241
+ return s.toUpperCase() + r;
1242
+ }), Ct = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), cr = Q("RegExp"), Xt = (e, t) => {
1243
+ const n = Object.getOwnPropertyDescriptors(e), s = {};
1244
+ we(n, (r, o) => {
1245
+ let i;
1246
+ (i = t(r, o, e)) !== !1 && (s[o] = i || r);
1247
+ }), Object.defineProperties(e, s);
1248
+ }, ur = (e) => {
1249
+ Xt(e, (t, n) => {
1250
+ if (H(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
1251
+ return !1;
1252
+ const s = e[n];
1253
+ if (H(s)) {
1254
+ if (t.enumerable = !1, "writable" in t) {
1255
+ t.writable = !1;
1256
+ return;
1257
+ }
1258
+ t.set || (t.set = () => {
1259
+ throw Error("Can not rewrite read-only method '" + n + "'");
1260
+ });
1261
+ }
1262
+ });
1263
+ }, dr = (e, t) => {
1264
+ const n = {}, s = (r) => {
1265
+ r.forEach((o) => {
1266
+ n[o] = !0;
1267
+ });
1268
+ };
1269
+ return fe(e) ? s(e) : s(String(e).split(t)), n;
1270
+ }, fr = () => {
1271
+ }, hr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
1272
+ function pr(e) {
1273
+ return !!(e && H(e.append) && e[Vt] === "FormData" && e[Me]);
1274
+ }
1275
+ const mr = (e) => {
1276
+ const t = new Array(10), n = (s, r) => {
1277
+ if (ye(s)) {
1278
+ if (t.indexOf(s) >= 0)
1279
+ return;
1280
+ if (ge(s))
1281
+ return s;
1282
+ if (!("toJSON" in s)) {
1283
+ t[r] = s;
1284
+ const o = fe(s) ? [] : {};
1285
+ return we(s, (i, a) => {
1286
+ const d = n(i, r + 1);
1287
+ !de(d) && (o[a] = d);
1288
+ }), t[r] = void 0, o;
1289
+ }
1290
+ }
1291
+ return s;
1112
1292
  };
1293
+ return n(e, 0);
1294
+ }, br = Q("AsyncFunction"), gr = (e) => e && (ye(e) || H(e)) && H(e.then) && H(e.catch), Gt = ((e, t) => e ? setImmediate : t ? ((n, s) => (re.addEventListener(
1295
+ "message",
1296
+ ({ source: r, data: o }) => {
1297
+ r === re && o === n && s.length && s.shift()();
1298
+ },
1299
+ !1
1300
+ ), (r) => {
1301
+ s.push(r), re.postMessage(n, "*");
1302
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", H(re.postMessage)), yr = typeof queueMicrotask < "u" ? queueMicrotask.bind(re) : typeof process < "u" && process.nextTick || Gt, wr = (e) => e != null && H(e[Me]), c = {
1303
+ isArray: fe,
1304
+ isArrayBuffer: Kt,
1305
+ isBuffer: ge,
1306
+ isFormData: Vs,
1307
+ isArrayBufferView: Ds,
1308
+ isString: Us,
1309
+ isNumber: Wt,
1310
+ isBoolean: Ms,
1311
+ isObject: ye,
1312
+ isPlainObject: _e,
1313
+ isEmptyObject: Fs,
1314
+ isReadableStream: Ws,
1315
+ isRequest: Js,
1316
+ isResponse: Zs,
1317
+ isHeaders: Xs,
1318
+ isUndefined: de,
1319
+ isDate: Is,
1320
+ isFile: js,
1321
+ isBlob: qs,
1322
+ isRegExp: cr,
1323
+ isFunction: H,
1324
+ isStream: Hs,
1325
+ isURLSearchParams: Ks,
1326
+ isTypedArray: rr,
1327
+ isFileList: zs,
1328
+ forEach: we,
1329
+ merge: Xe,
1330
+ extend: Qs,
1331
+ trim: Gs,
1332
+ stripBOM: Ys,
1333
+ inherits: er,
1334
+ toFlatObject: tr,
1335
+ kindOf: Fe,
1336
+ kindOfTest: Q,
1337
+ endsWith: nr,
1338
+ toArray: sr,
1339
+ forEachEntry: or,
1340
+ matchAll: ir,
1341
+ isHTMLForm: ar,
1342
+ hasOwnProperty: Ct,
1343
+ hasOwnProp: Ct,
1344
+ // an alias to avoid ESLint no-prototype-builtins detection
1345
+ reduceDescriptors: Xt,
1346
+ freezeMethods: ur,
1347
+ toObjectSet: dr,
1348
+ toCamelCase: lr,
1349
+ noop: fr,
1350
+ toFiniteNumber: hr,
1351
+ findKey: Jt,
1352
+ global: re,
1353
+ isContextDefined: Zt,
1354
+ isSpecCompliantForm: pr,
1355
+ toJSONObject: mr,
1356
+ isAsyncFn: br,
1357
+ isThenable: gr,
1358
+ setImmediate: Gt,
1359
+ asap: yr,
1360
+ isIterable: wr
1361
+ };
1362
+ let v = class Qt extends Error {
1363
+ static from(t, n, s, r, o, i) {
1364
+ const a = new Qt(t.message, n || t.code, s, r, o);
1365
+ return a.cause = t, a.name = t.name, i && Object.assign(a, i), a;
1366
+ }
1367
+ /**
1368
+ * Create an Error with the specified message, config, error code, request and response.
1369
+ *
1370
+ * @param {string} message The error message.
1371
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
1372
+ * @param {Object} [config] The config.
1373
+ * @param {Object} [request] The request.
1374
+ * @param {Object} [response] The response.
1375
+ *
1376
+ * @returns {Error} The created error.
1377
+ */
1378
+ constructor(t, n, s, r, o) {
1379
+ super(t), this.name = "AxiosError", this.isAxiosError = !0, n && (this.code = n), s && (this.config = s), r && (this.request = r), o && (this.response = o, this.status = o.status);
1380
+ }
1381
+ toJSON() {
1382
+ return {
1383
+ // Standard
1384
+ message: this.message,
1385
+ name: this.name,
1386
+ // Microsoft
1387
+ description: this.description,
1388
+ number: this.number,
1389
+ // Mozilla
1390
+ fileName: this.fileName,
1391
+ lineNumber: this.lineNumber,
1392
+ columnNumber: this.columnNumber,
1393
+ stack: this.stack,
1394
+ // Axios
1395
+ config: c.toJSONObject(this.config),
1396
+ code: this.code,
1397
+ status: this.status
1398
+ };
1399
+ }
1400
+ };
1401
+ v.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
1402
+ v.ERR_BAD_OPTION = "ERR_BAD_OPTION";
1403
+ v.ECONNABORTED = "ECONNABORTED";
1404
+ v.ETIMEDOUT = "ETIMEDOUT";
1405
+ v.ERR_NETWORK = "ERR_NETWORK";
1406
+ v.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
1407
+ v.ERR_DEPRECATED = "ERR_DEPRECATED";
1408
+ v.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
1409
+ v.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
1410
+ v.ERR_CANCELED = "ERR_CANCELED";
1411
+ v.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
1412
+ v.ERR_INVALID_URL = "ERR_INVALID_URL";
1413
+ const vr = null;
1414
+ function Ge(e) {
1415
+ return c.isPlainObject(e) || c.isArray(e);
1416
+ }
1417
+ function Yt(e) {
1418
+ return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
1419
+ }
1420
+ function Et(e, t, n) {
1421
+ return e ? e.concat(t).map(function(r, o) {
1422
+ return r = Yt(r), !n && o ? "[" + r + "]" : r;
1423
+ }).join(n ? "." : "") : t;
1424
+ }
1425
+ function xr(e) {
1426
+ return c.isArray(e) && !e.some(Ge);
1427
+ }
1428
+ const Rr = c.toFlatObject(c, {}, null, function(t) {
1429
+ return /^is[A-Z]/.test(t);
1430
+ });
1431
+ function je(e, t, n) {
1432
+ if (!c.isObject(e))
1433
+ throw new TypeError("target must be an object");
1434
+ t = t || new FormData(), n = c.toFlatObject(n, {
1435
+ metaTokens: !0,
1436
+ dots: !1,
1437
+ indexes: !1
1438
+ }, !1, function(y, p) {
1439
+ return !c.isUndefined(p[y]);
1440
+ });
1441
+ const s = n.metaTokens, r = n.visitor || l, o = n.dots, i = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
1442
+ if (!c.isFunction(r))
1443
+ throw new TypeError("visitor must be a function");
1444
+ function u(h) {
1445
+ if (h === null) return "";
1446
+ if (c.isDate(h))
1447
+ return h.toISOString();
1448
+ if (c.isBoolean(h))
1449
+ return h.toString();
1450
+ if (!d && c.isBlob(h))
1451
+ throw new v("Blob is not supported. Use a Buffer instead.");
1452
+ return c.isArrayBuffer(h) || c.isTypedArray(h) ? d && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
1453
+ }
1454
+ function l(h, y, p) {
1455
+ let w = h;
1456
+ if (h && !p && typeof h == "object") {
1457
+ if (c.endsWith(y, "{}"))
1458
+ y = s ? y : y.slice(0, -2), h = JSON.stringify(h);
1459
+ else if (c.isArray(h) && xr(h) || (c.isFileList(h) || c.endsWith(y, "[]")) && (w = c.toArray(h)))
1460
+ return y = Yt(y), w.forEach(function(O, T) {
1461
+ !(c.isUndefined(O) || O === null) && t.append(
1462
+ // eslint-disable-next-line no-nested-ternary
1463
+ i === !0 ? Et([y], T, o) : i === null ? y : y + "[]",
1464
+ u(O)
1465
+ );
1466
+ }), !1;
1467
+ }
1468
+ return Ge(h) ? !0 : (t.append(Et(p, y, o), u(h)), !1);
1469
+ }
1470
+ const g = [], x = Object.assign(Rr, {
1471
+ defaultVisitor: l,
1472
+ convertValue: u,
1473
+ isVisitable: Ge
1474
+ });
1475
+ function _(h, y) {
1476
+ if (!c.isUndefined(h)) {
1477
+ if (g.indexOf(h) !== -1)
1478
+ throw Error("Circular reference detected in " + y.join("."));
1479
+ g.push(h), c.forEach(h, function(w, E) {
1480
+ (!(c.isUndefined(w) || w === null) && r.call(
1481
+ t,
1482
+ w,
1483
+ c.isString(E) ? E.trim() : E,
1484
+ y,
1485
+ x
1486
+ )) === !0 && _(w, y ? y.concat(E) : [E]);
1487
+ }), g.pop();
1488
+ }
1489
+ }
1490
+ if (!c.isObject(e))
1491
+ throw new TypeError("data must be an object");
1492
+ return _(e), t;
1493
+ }
1494
+ function St(e) {
1495
+ const t = {
1496
+ "!": "%21",
1497
+ "'": "%27",
1498
+ "(": "%28",
1499
+ ")": "%29",
1500
+ "~": "%7E",
1501
+ "%20": "+",
1502
+ "%00": "\0"
1503
+ };
1504
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(s) {
1505
+ return t[s];
1506
+ });
1507
+ }
1508
+ function ut(e, t) {
1509
+ this._pairs = [], e && je(e, this, t);
1510
+ }
1511
+ const en = ut.prototype;
1512
+ en.append = function(t, n) {
1513
+ this._pairs.push([t, n]);
1514
+ };
1515
+ en.toString = function(t) {
1516
+ const n = t ? function(s) {
1517
+ return t.call(this, s, St);
1518
+ } : St;
1519
+ return this._pairs.map(function(r) {
1520
+ return n(r[0]) + "=" + n(r[1]);
1521
+ }, "").join("&");
1522
+ };
1523
+ function Cr(e) {
1524
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
1525
+ }
1526
+ function tn(e, t, n) {
1527
+ if (!t)
1528
+ return e;
1529
+ const s = n && n.encode || Cr, r = c.isFunction(n) ? {
1530
+ serialize: n
1531
+ } : n, o = r && r.serialize;
1532
+ let i;
1533
+ if (o ? i = o(t, r) : i = c.isURLSearchParams(t) ? t.toString() : new ut(t, r).toString(s), i) {
1534
+ const a = e.indexOf("#");
1535
+ a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
1536
+ }
1537
+ return e;
1538
+ }
1539
+ class kt {
1540
+ constructor() {
1541
+ this.handlers = [];
1542
+ }
1543
+ /**
1544
+ * Add a new interceptor to the stack
1545
+ *
1546
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
1547
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
1548
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
1549
+ *
1550
+ * @return {Number} An ID used to remove interceptor later
1551
+ */
1552
+ use(t, n, s) {
1553
+ return this.handlers.push({
1554
+ fulfilled: t,
1555
+ rejected: n,
1556
+ synchronous: s ? s.synchronous : !1,
1557
+ runWhen: s ? s.runWhen : null
1558
+ }), this.handlers.length - 1;
1559
+ }
1560
+ /**
1561
+ * Remove an interceptor from the stack
1562
+ *
1563
+ * @param {Number} id The ID that was returned by `use`
1564
+ *
1565
+ * @returns {void}
1566
+ */
1567
+ eject(t) {
1568
+ this.handlers[t] && (this.handlers[t] = null);
1569
+ }
1570
+ /**
1571
+ * Clear all interceptors from the stack
1572
+ *
1573
+ * @returns {void}
1574
+ */
1575
+ clear() {
1576
+ this.handlers && (this.handlers = []);
1577
+ }
1578
+ /**
1579
+ * Iterate over all the registered interceptors
1580
+ *
1581
+ * This method is particularly useful for skipping over any
1582
+ * interceptors that may have become `null` calling `eject`.
1583
+ *
1584
+ * @param {Function} fn The function to call for each interceptor
1585
+ *
1586
+ * @returns {void}
1587
+ */
1588
+ forEach(t) {
1589
+ c.forEach(this.handlers, function(s) {
1590
+ s !== null && t(s);
1591
+ });
1592
+ }
1593
+ }
1594
+ const dt = {
1595
+ silentJSONParsing: !0,
1596
+ forcedJSONParsing: !0,
1597
+ clarifyTimeoutError: !1,
1598
+ legacyInterceptorReqResOrdering: !0
1599
+ }, Er = typeof URLSearchParams < "u" ? URLSearchParams : ut, Sr = typeof FormData < "u" ? FormData : null, kr = typeof Blob < "u" ? Blob : null, _r = {
1600
+ isBrowser: !0,
1601
+ classes: {
1602
+ URLSearchParams: Er,
1603
+ FormData: Sr,
1604
+ Blob: kr
1605
+ },
1606
+ protocols: ["http", "https", "file", "blob", "url", "data"]
1607
+ }, ft = typeof window < "u" && typeof document < "u", Qe = typeof navigator == "object" && navigator || void 0, Ar = ft && (!Qe || ["ReactNative", "NativeScript", "NS"].indexOf(Qe.product) < 0), Or = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1608
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Tr = ft && window.location.href || "http://localhost", $r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1609
+ __proto__: null,
1610
+ hasBrowserEnv: ft,
1611
+ hasStandardBrowserEnv: Ar,
1612
+ hasStandardBrowserWebWorkerEnv: Or,
1613
+ navigator: Qe,
1614
+ origin: Tr
1615
+ }, Symbol.toStringTag, { value: "Module" })), U = {
1616
+ ...$r,
1617
+ ..._r
1618
+ };
1619
+ function Lr(e, t) {
1620
+ return je(e, new U.classes.URLSearchParams(), {
1621
+ visitor: function(n, s, r, o) {
1622
+ return U.isNode && c.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
1623
+ },
1624
+ ...t
1625
+ });
1626
+ }
1627
+ function Pr(e) {
1628
+ return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
1629
+ }
1630
+ function Br(e) {
1631
+ const t = {}, n = Object.keys(e);
1632
+ let s;
1633
+ const r = n.length;
1634
+ let o;
1635
+ for (s = 0; s < r; s++)
1636
+ o = n[s], t[o] = e[o];
1637
+ return t;
1638
+ }
1639
+ function nn(e) {
1640
+ function t(n, s, r, o) {
1641
+ let i = n[o++];
1642
+ if (i === "__proto__") return !0;
1643
+ const a = Number.isFinite(+i), d = o >= n.length;
1644
+ return i = !i && c.isArray(r) ? r.length : i, d ? (c.hasOwnProp(r, i) ? r[i] = [r[i], s] : r[i] = s, !a) : ((!r[i] || !c.isObject(r[i])) && (r[i] = []), t(n, s, r[i], o) && c.isArray(r[i]) && (r[i] = Br(r[i])), !a);
1645
+ }
1646
+ if (c.isFormData(e) && c.isFunction(e.entries)) {
1647
+ const n = {};
1648
+ return c.forEachEntry(e, (s, r) => {
1649
+ t(Pr(s), r, n, 0);
1650
+ }), n;
1651
+ }
1652
+ return null;
1653
+ }
1654
+ function Nr(e, t, n) {
1655
+ if (c.isString(e))
1656
+ try {
1657
+ return (t || JSON.parse)(e), c.trim(e);
1658
+ } catch (s) {
1659
+ if (s.name !== "SyntaxError")
1660
+ throw s;
1661
+ }
1662
+ return (n || JSON.stringify)(e);
1663
+ }
1664
+ const ve = {
1665
+ transitional: dt,
1666
+ adapter: ["xhr", "http", "fetch"],
1667
+ transformRequest: [function(t, n) {
1668
+ const s = n.getContentType() || "", r = s.indexOf("application/json") > -1, o = c.isObject(t);
1669
+ if (o && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
1670
+ return r ? JSON.stringify(nn(t)) : t;
1671
+ if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
1672
+ return t;
1673
+ if (c.isArrayBufferView(t))
1674
+ return t.buffer;
1675
+ if (c.isURLSearchParams(t))
1676
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
1677
+ let a;
1678
+ if (o) {
1679
+ if (s.indexOf("application/x-www-form-urlencoded") > -1)
1680
+ return Lr(t, this.formSerializer).toString();
1681
+ if ((a = c.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
1682
+ const d = this.env && this.env.FormData;
1683
+ return je(
1684
+ a ? { "files[]": t } : t,
1685
+ d && new d(),
1686
+ this.formSerializer
1687
+ );
1688
+ }
1689
+ }
1690
+ return o || r ? (n.setContentType("application/json", !1), Nr(t)) : t;
1691
+ }],
1692
+ transformResponse: [function(t) {
1693
+ const n = this.transitional || ve.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
1694
+ if (c.isResponse(t) || c.isReadableStream(t))
1695
+ return t;
1696
+ if (t && c.isString(t) && (s && !this.responseType || r)) {
1697
+ const i = !(n && n.silentJSONParsing) && r;
1698
+ try {
1699
+ return JSON.parse(t, this.parseReviver);
1700
+ } catch (a) {
1701
+ if (i)
1702
+ throw a.name === "SyntaxError" ? v.from(a, v.ERR_BAD_RESPONSE, this, null, this.response) : a;
1703
+ }
1704
+ }
1705
+ return t;
1706
+ }],
1707
+ /**
1708
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
1709
+ * timeout is not created.
1710
+ */
1711
+ timeout: 0,
1712
+ xsrfCookieName: "XSRF-TOKEN",
1713
+ xsrfHeaderName: "X-XSRF-TOKEN",
1714
+ maxContentLength: -1,
1715
+ maxBodyLength: -1,
1716
+ env: {
1717
+ FormData: U.classes.FormData,
1718
+ Blob: U.classes.Blob
1719
+ },
1720
+ validateStatus: function(t) {
1721
+ return t >= 200 && t < 300;
1722
+ },
1723
+ headers: {
1724
+ common: {
1725
+ Accept: "application/json, text/plain, */*",
1726
+ "Content-Type": void 0
1727
+ }
1728
+ }
1729
+ };
1730
+ c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
1731
+ ve.headers[e] = {};
1732
+ });
1733
+ const Dr = c.toObjectSet([
1734
+ "age",
1735
+ "authorization",
1736
+ "content-length",
1737
+ "content-type",
1738
+ "etag",
1739
+ "expires",
1740
+ "from",
1741
+ "host",
1742
+ "if-modified-since",
1743
+ "if-unmodified-since",
1744
+ "last-modified",
1745
+ "location",
1746
+ "max-forwards",
1747
+ "proxy-authorization",
1748
+ "referer",
1749
+ "retry-after",
1750
+ "user-agent"
1751
+ ]), Ur = (e) => {
1752
+ const t = {};
1753
+ let n, s, r;
1754
+ return e && e.split(`
1755
+ `).forEach(function(i) {
1756
+ r = i.indexOf(":"), n = i.substring(0, r).trim().toLowerCase(), s = i.substring(r + 1).trim(), !(!n || t[n] && Dr[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
1757
+ }), t;
1758
+ }, _t = /* @__PURE__ */ Symbol("internals");
1759
+ function be(e) {
1760
+ return e && String(e).trim().toLowerCase();
1761
+ }
1762
+ function Ae(e) {
1763
+ return e === !1 || e == null ? e : c.isArray(e) ? e.map(Ae) : String(e);
1764
+ }
1765
+ function Mr(e) {
1766
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1767
+ let s;
1768
+ for (; s = n.exec(e); )
1769
+ t[s[1]] = s[2];
1770
+ return t;
1771
+ }
1772
+ const Fr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1773
+ function Ke(e, t, n, s, r) {
1774
+ if (c.isFunction(s))
1775
+ return s.call(this, t, n);
1776
+ if (r && (t = n), !!c.isString(t)) {
1777
+ if (c.isString(s))
1778
+ return t.indexOf(s) !== -1;
1779
+ if (c.isRegExp(s))
1780
+ return s.test(t);
1781
+ }
1782
+ }
1783
+ function Ir(e) {
1784
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, s) => n.toUpperCase() + s);
1785
+ }
1786
+ function jr(e, t) {
1787
+ const n = c.toCamelCase(" " + t);
1788
+ ["get", "set", "has"].forEach((s) => {
1789
+ Object.defineProperty(e, s + n, {
1790
+ value: function(r, o, i) {
1791
+ return this[s].call(this, t, r, o, i);
1792
+ },
1793
+ configurable: !0
1794
+ });
1795
+ });
1796
+ }
1797
+ let V = class {
1798
+ constructor(t) {
1799
+ t && this.set(t);
1800
+ }
1801
+ set(t, n, s) {
1802
+ const r = this;
1803
+ function o(a, d, u) {
1804
+ const l = be(d);
1805
+ if (!l)
1806
+ throw new Error("header name must be a non-empty string");
1807
+ const g = c.findKey(r, l);
1808
+ (!g || r[g] === void 0 || u === !0 || u === void 0 && r[g] !== !1) && (r[g || d] = Ae(a));
1809
+ }
1810
+ const i = (a, d) => c.forEach(a, (u, l) => o(u, l, d));
1811
+ if (c.isPlainObject(t) || t instanceof this.constructor)
1812
+ i(t, n);
1813
+ else if (c.isString(t) && (t = t.trim()) && !Fr(t))
1814
+ i(Ur(t), n);
1815
+ else if (c.isObject(t) && c.isIterable(t)) {
1816
+ let a = {}, d, u;
1817
+ for (const l of t) {
1818
+ if (!c.isArray(l))
1819
+ throw TypeError("Object iterator must return a key-value pair");
1820
+ a[u = l[0]] = (d = a[u]) ? c.isArray(d) ? [...d, l[1]] : [d, l[1]] : l[1];
1821
+ }
1822
+ i(a, n);
1823
+ } else
1824
+ t != null && o(n, t, s);
1825
+ return this;
1826
+ }
1827
+ get(t, n) {
1828
+ if (t = be(t), t) {
1829
+ const s = c.findKey(this, t);
1830
+ if (s) {
1831
+ const r = this[s];
1832
+ if (!n)
1833
+ return r;
1834
+ if (n === !0)
1835
+ return Mr(r);
1836
+ if (c.isFunction(n))
1837
+ return n.call(this, r, s);
1838
+ if (c.isRegExp(n))
1839
+ return n.exec(r);
1840
+ throw new TypeError("parser must be boolean|regexp|function");
1841
+ }
1842
+ }
1843
+ }
1844
+ has(t, n) {
1845
+ if (t = be(t), t) {
1846
+ const s = c.findKey(this, t);
1847
+ return !!(s && this[s] !== void 0 && (!n || Ke(this, this[s], s, n)));
1848
+ }
1849
+ return !1;
1850
+ }
1851
+ delete(t, n) {
1852
+ const s = this;
1853
+ let r = !1;
1854
+ function o(i) {
1855
+ if (i = be(i), i) {
1856
+ const a = c.findKey(s, i);
1857
+ a && (!n || Ke(s, s[a], a, n)) && (delete s[a], r = !0);
1858
+ }
1859
+ }
1860
+ return c.isArray(t) ? t.forEach(o) : o(t), r;
1861
+ }
1862
+ clear(t) {
1863
+ const n = Object.keys(this);
1864
+ let s = n.length, r = !1;
1865
+ for (; s--; ) {
1866
+ const o = n[s];
1867
+ (!t || Ke(this, this[o], o, t, !0)) && (delete this[o], r = !0);
1868
+ }
1869
+ return r;
1870
+ }
1871
+ normalize(t) {
1872
+ const n = this, s = {};
1873
+ return c.forEach(this, (r, o) => {
1874
+ const i = c.findKey(s, o);
1875
+ if (i) {
1876
+ n[i] = Ae(r), delete n[o];
1877
+ return;
1878
+ }
1879
+ const a = t ? Ir(o) : String(o).trim();
1880
+ a !== o && delete n[o], n[a] = Ae(r), s[a] = !0;
1881
+ }), this;
1882
+ }
1883
+ concat(...t) {
1884
+ return this.constructor.concat(this, ...t);
1885
+ }
1886
+ toJSON(t) {
1887
+ const n = /* @__PURE__ */ Object.create(null);
1888
+ return c.forEach(this, (s, r) => {
1889
+ s != null && s !== !1 && (n[r] = t && c.isArray(s) ? s.join(", ") : s);
1890
+ }), n;
1891
+ }
1892
+ [Symbol.iterator]() {
1893
+ return Object.entries(this.toJSON())[Symbol.iterator]();
1894
+ }
1895
+ toString() {
1896
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
1897
+ `);
1898
+ }
1899
+ getSetCookie() {
1900
+ return this.get("set-cookie") || [];
1901
+ }
1902
+ get [Symbol.toStringTag]() {
1903
+ return "AxiosHeaders";
1904
+ }
1905
+ static from(t) {
1906
+ return t instanceof this ? t : new this(t);
1907
+ }
1908
+ static concat(t, ...n) {
1909
+ const s = new this(t);
1910
+ return n.forEach((r) => s.set(r)), s;
1911
+ }
1912
+ static accessor(t) {
1913
+ const s = (this[_t] = this[_t] = {
1914
+ accessors: {}
1915
+ }).accessors, r = this.prototype;
1916
+ function o(i) {
1917
+ const a = be(i);
1918
+ s[a] || (jr(r, i), s[a] = !0);
1919
+ }
1920
+ return c.isArray(t) ? t.forEach(o) : o(t), this;
1921
+ }
1922
+ };
1923
+ V.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1924
+ c.reduceDescriptors(V.prototype, ({ value: e }, t) => {
1925
+ let n = t[0].toUpperCase() + t.slice(1);
1113
1926
  return {
1114
- get: (n, l) => t(n, { method: "GET" }, l),
1115
- postFile: (n, l, o = {}, c) => {
1116
- const h = new FormData();
1117
- for (const d in o)
1118
- h.append(d, o[d]);
1119
- return h.append("file", l), t(
1120
- n,
1121
- {
1122
- method: "POST",
1123
- body: h
1124
- },
1125
- { ...c, contentType: void 0 }
1126
- );
1927
+ get: () => e,
1928
+ set(s) {
1929
+ this[n] = s;
1930
+ }
1931
+ };
1932
+ });
1933
+ c.freezeMethods(V);
1934
+ function We(e, t) {
1935
+ const n = this || ve, s = t || n, r = V.from(s.headers);
1936
+ let o = s.data;
1937
+ return c.forEach(e, function(a) {
1938
+ o = a.call(n, o, r.normalize(), t ? t.status : void 0);
1939
+ }), r.normalize(), o;
1940
+ }
1941
+ function sn(e) {
1942
+ return !!(e && e.__CANCEL__);
1943
+ }
1944
+ let xe = class extends v {
1945
+ /**
1946
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
1947
+ *
1948
+ * @param {string=} message The message.
1949
+ * @param {Object=} config The config.
1950
+ * @param {Object=} request The request.
1951
+ *
1952
+ * @returns {CanceledError} The created error.
1953
+ */
1954
+ constructor(t, n, s) {
1955
+ super(t ?? "canceled", v.ERR_CANCELED, n, s), this.name = "CanceledError", this.__CANCEL__ = !0;
1956
+ }
1957
+ };
1958
+ function rn(e, t, n) {
1959
+ const s = n.config.validateStatus;
1960
+ !n.status || !s || s(n.status) ? e(n) : t(new v(
1961
+ "Request failed with status code " + n.status,
1962
+ [v.ERR_BAD_REQUEST, v.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1963
+ n.config,
1964
+ n.request,
1965
+ n
1966
+ ));
1967
+ }
1968
+ function qr(e) {
1969
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1970
+ return t && t[1] || "";
1971
+ }
1972
+ function zr(e, t) {
1973
+ e = e || 10;
1974
+ const n = new Array(e), s = new Array(e);
1975
+ let r = 0, o = 0, i;
1976
+ return t = t !== void 0 ? t : 1e3, function(d) {
1977
+ const u = Date.now(), l = s[o];
1978
+ i || (i = u), n[r] = d, s[r] = u;
1979
+ let g = o, x = 0;
1980
+ for (; g !== r; )
1981
+ x += n[g++], g = g % e;
1982
+ if (r = (r + 1) % e, r === o && (o = (o + 1) % e), u - i < t)
1983
+ return;
1984
+ const _ = l && u - l;
1985
+ return _ ? Math.round(x * 1e3 / _) : void 0;
1986
+ };
1987
+ }
1988
+ function Hr(e, t) {
1989
+ let n = 0, s = 1e3 / t, r, o;
1990
+ const i = (u, l = Date.now()) => {
1991
+ n = l, r = null, o && (clearTimeout(o), o = null), e(...u);
1992
+ };
1993
+ return [(...u) => {
1994
+ const l = Date.now(), g = l - n;
1995
+ g >= s ? i(u, l) : (r = u, o || (o = setTimeout(() => {
1996
+ o = null, i(r);
1997
+ }, s - g)));
1998
+ }, () => r && i(r)];
1999
+ }
2000
+ const Pe = (e, t, n = 3) => {
2001
+ let s = 0;
2002
+ const r = zr(50, 250);
2003
+ return Hr((o) => {
2004
+ const i = o.loaded, a = o.lengthComputable ? o.total : void 0, d = i - s, u = r(d), l = i <= a;
2005
+ s = i;
2006
+ const g = {
2007
+ loaded: i,
2008
+ total: a,
2009
+ progress: a ? i / a : void 0,
2010
+ bytes: d,
2011
+ rate: u || void 0,
2012
+ estimated: u && a && l ? (a - i) / u : void 0,
2013
+ event: o,
2014
+ lengthComputable: a != null,
2015
+ [t ? "download" : "upload"]: !0
2016
+ };
2017
+ e(g);
2018
+ }, n);
2019
+ }, At = (e, t) => {
2020
+ const n = e != null;
2021
+ return [(s) => t[0]({
2022
+ lengthComputable: n,
2023
+ total: e,
2024
+ loaded: s
2025
+ }), t[1]];
2026
+ }, Ot = (e) => (...t) => c.asap(() => e(...t)), Vr = U.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, U.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
2027
+ new URL(U.origin),
2028
+ U.navigator && /(msie|trident)/i.test(U.navigator.userAgent)
2029
+ ) : () => !0, Kr = U.hasStandardBrowserEnv ? (
2030
+ // Standard browser envs support document.cookie
2031
+ {
2032
+ write(e, t, n, s, r, o, i) {
2033
+ if (typeof document > "u") return;
2034
+ const a = [`${e}=${encodeURIComponent(t)}`];
2035
+ c.isNumber(n) && a.push(`expires=${new Date(n).toUTCString()}`), c.isString(s) && a.push(`path=${s}`), c.isString(r) && a.push(`domain=${r}`), o === !0 && a.push("secure"), c.isString(i) && a.push(`SameSite=${i}`), document.cookie = a.join("; ");
2036
+ },
2037
+ read(e) {
2038
+ if (typeof document > "u") return null;
2039
+ const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
2040
+ return t ? decodeURIComponent(t[1]) : null;
2041
+ },
2042
+ remove(e) {
2043
+ this.write(e, "", Date.now() - 864e5, "/");
2044
+ }
2045
+ }
2046
+ ) : (
2047
+ // Non-standard browser env (web workers, react-native) lack needed support.
2048
+ {
2049
+ write() {
2050
+ },
2051
+ read() {
2052
+ return null;
2053
+ },
2054
+ remove() {
2055
+ }
2056
+ }
2057
+ );
2058
+ function Wr(e) {
2059
+ return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
2060
+ }
2061
+ function Jr(e, t) {
2062
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
2063
+ }
2064
+ function on(e, t, n) {
2065
+ let s = !Wr(t);
2066
+ return e && (s || n == !1) ? Jr(e, t) : t;
2067
+ }
2068
+ const Tt = (e) => e instanceof V ? { ...e } : e;
2069
+ function ie(e, t) {
2070
+ t = t || {};
2071
+ const n = {};
2072
+ function s(u, l, g, x) {
2073
+ return c.isPlainObject(u) && c.isPlainObject(l) ? c.merge.call({ caseless: x }, u, l) : c.isPlainObject(l) ? c.merge({}, l) : c.isArray(l) ? l.slice() : l;
2074
+ }
2075
+ function r(u, l, g, x) {
2076
+ if (c.isUndefined(l)) {
2077
+ if (!c.isUndefined(u))
2078
+ return s(void 0, u, g, x);
2079
+ } else return s(u, l, g, x);
2080
+ }
2081
+ function o(u, l) {
2082
+ if (!c.isUndefined(l))
2083
+ return s(void 0, l);
2084
+ }
2085
+ function i(u, l) {
2086
+ if (c.isUndefined(l)) {
2087
+ if (!c.isUndefined(u))
2088
+ return s(void 0, u);
2089
+ } else return s(void 0, l);
2090
+ }
2091
+ function a(u, l, g) {
2092
+ if (g in t)
2093
+ return s(u, l);
2094
+ if (g in e)
2095
+ return s(void 0, u);
2096
+ }
2097
+ const d = {
2098
+ url: o,
2099
+ method: o,
2100
+ data: o,
2101
+ baseURL: i,
2102
+ transformRequest: i,
2103
+ transformResponse: i,
2104
+ paramsSerializer: i,
2105
+ timeout: i,
2106
+ timeoutMessage: i,
2107
+ withCredentials: i,
2108
+ withXSRFToken: i,
2109
+ adapter: i,
2110
+ responseType: i,
2111
+ xsrfCookieName: i,
2112
+ xsrfHeaderName: i,
2113
+ onUploadProgress: i,
2114
+ onDownloadProgress: i,
2115
+ decompress: i,
2116
+ maxContentLength: i,
2117
+ maxBodyLength: i,
2118
+ beforeRedirect: i,
2119
+ transport: i,
2120
+ httpAgent: i,
2121
+ httpsAgent: i,
2122
+ cancelToken: i,
2123
+ socketPath: i,
2124
+ responseEncoding: i,
2125
+ validateStatus: a,
2126
+ headers: (u, l, g) => r(Tt(u), Tt(l), g, !0)
2127
+ };
2128
+ return c.forEach(
2129
+ Object.keys({ ...e, ...t }),
2130
+ function(l) {
2131
+ if (l === "__proto__" || l === "constructor" || l === "prototype")
2132
+ return;
2133
+ const g = c.hasOwnProp(d, l) ? d[l] : r, x = g(e[l], t[l], l);
2134
+ c.isUndefined(x) && g !== a || (n[l] = x);
2135
+ }
2136
+ ), n;
2137
+ }
2138
+ const an = (e) => {
2139
+ const t = ie({}, e);
2140
+ let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: o, headers: i, auth: a } = t;
2141
+ if (t.headers = i = V.from(i), t.url = tn(on(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
2142
+ "Authorization",
2143
+ "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
2144
+ ), c.isFormData(n)) {
2145
+ if (U.hasStandardBrowserEnv || U.hasStandardBrowserWebWorkerEnv)
2146
+ i.setContentType(void 0);
2147
+ else if (c.isFunction(n.getHeaders)) {
2148
+ const d = n.getHeaders(), u = ["content-type", "content-length"];
2149
+ Object.entries(d).forEach(([l, g]) => {
2150
+ u.includes(l.toLowerCase()) && i.set(l, g);
2151
+ });
2152
+ }
2153
+ }
2154
+ if (U.hasStandardBrowserEnv && (s && c.isFunction(s) && (s = s(t)), s || s !== !1 && Vr(t.url))) {
2155
+ const d = r && o && Kr.read(o);
2156
+ d && i.set(r, d);
2157
+ }
2158
+ return t;
2159
+ }, Zr = typeof XMLHttpRequest < "u", Xr = Zr && function(e) {
2160
+ return new Promise(function(n, s) {
2161
+ const r = an(e);
2162
+ let o = r.data;
2163
+ const i = V.from(r.headers).normalize();
2164
+ let { responseType: a, onUploadProgress: d, onDownloadProgress: u } = r, l, g, x, _, h;
2165
+ function y() {
2166
+ _ && _(), h && h(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
2167
+ }
2168
+ let p = new XMLHttpRequest();
2169
+ p.open(r.method.toUpperCase(), r.url, !0), p.timeout = r.timeout;
2170
+ function w() {
2171
+ if (!p)
2172
+ return;
2173
+ const O = V.from(
2174
+ "getAllResponseHeaders" in p && p.getAllResponseHeaders()
2175
+ ), I = {
2176
+ data: !a || a === "text" || a === "json" ? p.responseText : p.response,
2177
+ status: p.status,
2178
+ statusText: p.statusText,
2179
+ headers: O,
2180
+ config: e,
2181
+ request: p
2182
+ };
2183
+ rn(function(W) {
2184
+ n(W), y();
2185
+ }, function(W) {
2186
+ s(W), y();
2187
+ }, I), p = null;
2188
+ }
2189
+ "onloadend" in p ? p.onloadend = w : p.onreadystatechange = function() {
2190
+ !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(w);
2191
+ }, p.onabort = function() {
2192
+ p && (s(new v("Request aborted", v.ECONNABORTED, e, p)), p = null);
2193
+ }, p.onerror = function(T) {
2194
+ const I = T && T.message ? T.message : "Network Error", Y = new v(I, v.ERR_NETWORK, e, p);
2195
+ Y.event = T || null, s(Y), p = null;
2196
+ }, p.ontimeout = function() {
2197
+ let T = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
2198
+ const I = r.transitional || dt;
2199
+ r.timeoutErrorMessage && (T = r.timeoutErrorMessage), s(new v(
2200
+ T,
2201
+ I.clarifyTimeoutError ? v.ETIMEDOUT : v.ECONNABORTED,
2202
+ e,
2203
+ p
2204
+ )), p = null;
2205
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in p && c.forEach(i.toJSON(), function(T, I) {
2206
+ p.setRequestHeader(I, T);
2207
+ }), c.isUndefined(r.withCredentials) || (p.withCredentials = !!r.withCredentials), a && a !== "json" && (p.responseType = r.responseType), u && ([x, h] = Pe(u, !0), p.addEventListener("progress", x)), d && p.upload && ([g, _] = Pe(d), p.upload.addEventListener("progress", g), p.upload.addEventListener("loadend", _)), (r.cancelToken || r.signal) && (l = (O) => {
2208
+ p && (s(!O || O.type ? new xe(null, e, p) : O), p.abort(), p = null);
2209
+ }, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
2210
+ const E = qr(r.url);
2211
+ if (E && U.protocols.indexOf(E) === -1) {
2212
+ s(new v("Unsupported protocol " + E + ":", v.ERR_BAD_REQUEST, e));
2213
+ return;
2214
+ }
2215
+ p.send(o || null);
2216
+ });
2217
+ }, Gr = (e, t) => {
2218
+ const { length: n } = e = e ? e.filter(Boolean) : [];
2219
+ if (t || n) {
2220
+ let s = new AbortController(), r;
2221
+ const o = function(u) {
2222
+ if (!r) {
2223
+ r = !0, a();
2224
+ const l = u instanceof Error ? u : this.reason;
2225
+ s.abort(l instanceof v ? l : new xe(l instanceof Error ? l.message : l));
2226
+ }
2227
+ };
2228
+ let i = t && setTimeout(() => {
2229
+ i = null, o(new v(`timeout of ${t}ms exceeded`, v.ETIMEDOUT));
2230
+ }, t);
2231
+ const a = () => {
2232
+ e && (i && clearTimeout(i), i = null, e.forEach((u) => {
2233
+ u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
2234
+ }), e = null);
2235
+ };
2236
+ e.forEach((u) => u.addEventListener("abort", o));
2237
+ const { signal: d } = s;
2238
+ return d.unsubscribe = () => c.asap(a), d;
2239
+ }
2240
+ }, Qr = function* (e, t) {
2241
+ let n = e.byteLength;
2242
+ if (n < t) {
2243
+ yield e;
2244
+ return;
2245
+ }
2246
+ let s = 0, r;
2247
+ for (; s < n; )
2248
+ r = s + t, yield e.slice(s, r), s = r;
2249
+ }, Yr = async function* (e, t) {
2250
+ for await (const n of eo(e))
2251
+ yield* Qr(n, t);
2252
+ }, eo = async function* (e) {
2253
+ if (e[Symbol.asyncIterator]) {
2254
+ yield* e;
2255
+ return;
2256
+ }
2257
+ const t = e.getReader();
2258
+ try {
2259
+ for (; ; ) {
2260
+ const { done: n, value: s } = await t.read();
2261
+ if (n)
2262
+ break;
2263
+ yield s;
2264
+ }
2265
+ } finally {
2266
+ await t.cancel();
2267
+ }
2268
+ }, $t = (e, t, n, s) => {
2269
+ const r = Yr(e, t);
2270
+ let o = 0, i, a = (d) => {
2271
+ i || (i = !0, s && s(d));
2272
+ };
2273
+ return new ReadableStream({
2274
+ async pull(d) {
2275
+ try {
2276
+ const { done: u, value: l } = await r.next();
2277
+ if (u) {
2278
+ a(), d.close();
2279
+ return;
2280
+ }
2281
+ let g = l.byteLength;
2282
+ if (n) {
2283
+ let x = o += g;
2284
+ n(x);
2285
+ }
2286
+ d.enqueue(new Uint8Array(l));
2287
+ } catch (u) {
2288
+ throw a(u), u;
2289
+ }
1127
2290
  },
1128
- post: (n, l, o) => t(
1129
- n,
1130
- {
2291
+ cancel(d) {
2292
+ return a(d), r.return();
2293
+ }
2294
+ }, {
2295
+ highWaterMark: 2
2296
+ });
2297
+ }, Lt = 64 * 1024, { isFunction: ke } = c, to = (({ Request: e, Response: t }) => ({
2298
+ Request: e,
2299
+ Response: t
2300
+ }))(c.global), {
2301
+ ReadableStream: Pt,
2302
+ TextEncoder: Bt
2303
+ } = c.global, Nt = (e, ...t) => {
2304
+ try {
2305
+ return !!e(...t);
2306
+ } catch {
2307
+ return !1;
2308
+ }
2309
+ }, no = (e) => {
2310
+ e = c.merge.call({
2311
+ skipUndefined: !0
2312
+ }, to, e);
2313
+ const { fetch: t, Request: n, Response: s } = e, r = t ? ke(t) : typeof fetch == "function", o = ke(n), i = ke(s);
2314
+ if (!r)
2315
+ return !1;
2316
+ const a = r && ke(Pt), d = r && (typeof Bt == "function" ? /* @__PURE__ */ ((h) => (y) => h.encode(y))(new Bt()) : async (h) => new Uint8Array(await new n(h).arrayBuffer())), u = o && a && Nt(() => {
2317
+ let h = !1;
2318
+ const y = new n(U.origin, {
2319
+ body: new Pt(),
2320
+ method: "POST",
2321
+ get duplex() {
2322
+ return h = !0, "half";
2323
+ }
2324
+ }).headers.has("Content-Type");
2325
+ return h && !y;
2326
+ }), l = i && a && Nt(() => c.isReadableStream(new s("").body)), g = {
2327
+ stream: l && ((h) => h.body)
2328
+ };
2329
+ r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((h) => {
2330
+ !g[h] && (g[h] = (y, p) => {
2331
+ let w = y && y[h];
2332
+ if (w)
2333
+ return w.call(y);
2334
+ throw new v(`Response type '${h}' is not supported`, v.ERR_NOT_SUPPORT, p);
2335
+ });
2336
+ });
2337
+ const x = async (h) => {
2338
+ if (h == null)
2339
+ return 0;
2340
+ if (c.isBlob(h))
2341
+ return h.size;
2342
+ if (c.isSpecCompliantForm(h))
2343
+ return (await new n(U.origin, {
1131
2344
  method: "POST",
1132
- body: JSON.stringify(l)
1133
- },
1134
- o
1135
- ),
1136
- patch: (n, l, o) => t(
1137
- n,
1138
- {
1139
- method: "PATCH",
1140
- body: JSON.stringify(l)
1141
- },
1142
- o
1143
- ),
1144
- delete: (n, l, o) => t(
1145
- n,
1146
- {
1147
- method: "DELETE",
1148
- body: JSON.stringify(l)
1149
- },
1150
- o
1151
- )
2345
+ body: h
2346
+ }).arrayBuffer()).byteLength;
2347
+ if (c.isArrayBufferView(h) || c.isArrayBuffer(h))
2348
+ return h.byteLength;
2349
+ if (c.isURLSearchParams(h) && (h = h + ""), c.isString(h))
2350
+ return (await d(h)).byteLength;
2351
+ }, _ = async (h, y) => {
2352
+ const p = c.toFiniteNumber(h.getContentLength());
2353
+ return p ?? x(y);
2354
+ };
2355
+ return async (h) => {
2356
+ let {
2357
+ url: y,
2358
+ method: p,
2359
+ data: w,
2360
+ signal: E,
2361
+ cancelToken: O,
2362
+ timeout: T,
2363
+ onDownloadProgress: I,
2364
+ onUploadProgress: Y,
2365
+ responseType: W,
2366
+ headers: ze,
2367
+ withCredentials: Re = "same-origin",
2368
+ fetchOptions: pt
2369
+ } = an(h), mt = t || fetch;
2370
+ W = W ? (W + "").toLowerCase() : "text";
2371
+ let Ce = Gr([E, O && O.toAbortSignal()], T), he = null;
2372
+ const se = Ce && Ce.unsubscribe && (() => {
2373
+ Ce.unsubscribe();
2374
+ });
2375
+ let bt;
2376
+ try {
2377
+ if (Y && u && p !== "get" && p !== "head" && (bt = await _(ze, w)) !== 0) {
2378
+ let te = new n(y, {
2379
+ method: "POST",
2380
+ body: w,
2381
+ duplex: "half"
2382
+ }), ae;
2383
+ if (c.isFormData(w) && (ae = te.headers.get("content-type")) && ze.setContentType(ae), te.body) {
2384
+ const [He, Ee] = At(
2385
+ bt,
2386
+ Pe(Ot(Y))
2387
+ );
2388
+ w = $t(te.body, Lt, He, Ee);
2389
+ }
2390
+ }
2391
+ c.isString(Re) || (Re = Re ? "include" : "omit");
2392
+ const q = o && "credentials" in n.prototype, gt = {
2393
+ ...pt,
2394
+ signal: Ce,
2395
+ method: p.toUpperCase(),
2396
+ headers: ze.normalize().toJSON(),
2397
+ body: w,
2398
+ duplex: "half",
2399
+ credentials: q ? Re : void 0
2400
+ };
2401
+ he = o && new n(y, gt);
2402
+ let ee = await (o ? mt(he, pt) : mt(y, gt));
2403
+ const yt = l && (W === "stream" || W === "response");
2404
+ if (l && (I || yt && se)) {
2405
+ const te = {};
2406
+ ["status", "statusText", "headers"].forEach((wt) => {
2407
+ te[wt] = ee[wt];
2408
+ });
2409
+ const ae = c.toFiniteNumber(ee.headers.get("content-length")), [He, Ee] = I && At(
2410
+ ae,
2411
+ Pe(Ot(I), !0)
2412
+ ) || [];
2413
+ ee = new s(
2414
+ $t(ee.body, Lt, He, () => {
2415
+ Ee && Ee(), se && se();
2416
+ }),
2417
+ te
2418
+ );
2419
+ }
2420
+ W = W || "text";
2421
+ let hn = await g[c.findKey(g, W) || "text"](ee, h);
2422
+ return !yt && se && se(), await new Promise((te, ae) => {
2423
+ rn(te, ae, {
2424
+ data: hn,
2425
+ headers: V.from(ee.headers),
2426
+ status: ee.status,
2427
+ statusText: ee.statusText,
2428
+ config: h,
2429
+ request: he
2430
+ });
2431
+ });
2432
+ } catch (q) {
2433
+ throw se && se(), q && q.name === "TypeError" && /Load failed|fetch/i.test(q.message) ? Object.assign(
2434
+ new v("Network Error", v.ERR_NETWORK, h, he, q && q.response),
2435
+ {
2436
+ cause: q.cause || q
2437
+ }
2438
+ ) : v.from(q, q && q.code, h, he, q && q.response);
2439
+ }
2440
+ };
2441
+ }, so = /* @__PURE__ */ new Map(), ln = (e) => {
2442
+ let t = e && e.env || {};
2443
+ const { fetch: n, Request: s, Response: r } = t, o = [
2444
+ s,
2445
+ r,
2446
+ n
2447
+ ];
2448
+ let i = o.length, a = i, d, u, l = so;
2449
+ for (; a--; )
2450
+ d = o[a], u = l.get(d), u === void 0 && l.set(d, u = a ? /* @__PURE__ */ new Map() : no(t)), l = u;
2451
+ return u;
2452
+ };
2453
+ ln();
2454
+ const ht = {
2455
+ http: vr,
2456
+ xhr: Xr,
2457
+ fetch: {
2458
+ get: ln
2459
+ }
2460
+ };
2461
+ c.forEach(ht, (e, t) => {
2462
+ if (e) {
2463
+ try {
2464
+ Object.defineProperty(e, "name", { value: t });
2465
+ } catch {
2466
+ }
2467
+ Object.defineProperty(e, "adapterName", { value: t });
2468
+ }
2469
+ });
2470
+ const Dt = (e) => `- ${e}`, ro = (e) => c.isFunction(e) || e === null || e === !1;
2471
+ function oo(e, t) {
2472
+ e = c.isArray(e) ? e : [e];
2473
+ const { length: n } = e;
2474
+ let s, r;
2475
+ const o = {};
2476
+ for (let i = 0; i < n; i++) {
2477
+ s = e[i];
2478
+ let a;
2479
+ if (r = s, !ro(s) && (r = ht[(a = String(s)).toLowerCase()], r === void 0))
2480
+ throw new v(`Unknown adapter '${a}'`);
2481
+ if (r && (c.isFunction(r) || (r = r.get(t))))
2482
+ break;
2483
+ o[a || "#" + i] = r;
2484
+ }
2485
+ if (!r) {
2486
+ const i = Object.entries(o).map(
2487
+ ([d, u]) => `adapter ${d} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
2488
+ );
2489
+ let a = n ? i.length > 1 ? `since :
2490
+ ` + i.map(Dt).join(`
2491
+ `) : " " + Dt(i[0]) : "as no adapter specified";
2492
+ throw new v(
2493
+ "There is no suitable adapter to dispatch the request " + a,
2494
+ "ERR_NOT_SUPPORT"
2495
+ );
2496
+ }
2497
+ return r;
2498
+ }
2499
+ const cn = {
2500
+ /**
2501
+ * Resolve an adapter from a list of adapter names or functions.
2502
+ * @type {Function}
2503
+ */
2504
+ getAdapter: oo,
2505
+ /**
2506
+ * Exposes all known adapters
2507
+ * @type {Object<string, Function|Object>}
2508
+ */
2509
+ adapters: ht
2510
+ };
2511
+ function Je(e) {
2512
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
2513
+ throw new xe(null, e);
2514
+ }
2515
+ function Ut(e) {
2516
+ return Je(e), e.headers = V.from(e.headers), e.data = We.call(
2517
+ e,
2518
+ e.transformRequest
2519
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), cn.getAdapter(e.adapter || ve.adapter, e)(e).then(function(s) {
2520
+ return Je(e), s.data = We.call(
2521
+ e,
2522
+ e.transformResponse,
2523
+ s
2524
+ ), s.headers = V.from(s.headers), s;
2525
+ }, function(s) {
2526
+ return sn(s) || (Je(e), s && s.response && (s.response.data = We.call(
2527
+ e,
2528
+ e.transformResponse,
2529
+ s.response
2530
+ ), s.response.headers = V.from(s.response.headers))), Promise.reject(s);
2531
+ });
2532
+ }
2533
+ const un = "1.13.5", qe = {};
2534
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
2535
+ qe[e] = function(s) {
2536
+ return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
2537
+ };
2538
+ });
2539
+ const Mt = {};
2540
+ qe.transitional = function(t, n, s) {
2541
+ function r(o, i) {
2542
+ return "[Axios v" + un + "] Transitional option '" + o + "'" + i + (s ? ". " + s : "");
2543
+ }
2544
+ return (o, i, a) => {
2545
+ if (t === !1)
2546
+ throw new v(
2547
+ r(i, " has been removed" + (n ? " in " + n : "")),
2548
+ v.ERR_DEPRECATED
2549
+ );
2550
+ return n && !Mt[i] && (Mt[i] = !0, console.warn(
2551
+ r(
2552
+ i,
2553
+ " has been deprecated since v" + n + " and will be removed in the near future"
2554
+ )
2555
+ )), t ? t(o, i, a) : !0;
2556
+ };
2557
+ };
2558
+ qe.spelling = function(t) {
2559
+ return (n, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
2560
+ };
2561
+ function io(e, t, n) {
2562
+ if (typeof e != "object")
2563
+ throw new v("options must be an object", v.ERR_BAD_OPTION_VALUE);
2564
+ const s = Object.keys(e);
2565
+ let r = s.length;
2566
+ for (; r-- > 0; ) {
2567
+ const o = s[r], i = t[o];
2568
+ if (i) {
2569
+ const a = e[o], d = a === void 0 || i(a, o, e);
2570
+ if (d !== !0)
2571
+ throw new v("option " + o + " must be " + d, v.ERR_BAD_OPTION_VALUE);
2572
+ continue;
2573
+ }
2574
+ if (n !== !0)
2575
+ throw new v("Unknown option " + o, v.ERR_BAD_OPTION);
2576
+ }
2577
+ }
2578
+ const Oe = {
2579
+ assertOptions: io,
2580
+ validators: qe
2581
+ }, J = Oe.validators;
2582
+ let oe = class {
2583
+ constructor(t) {
2584
+ this.defaults = t || {}, this.interceptors = {
2585
+ request: new kt(),
2586
+ response: new kt()
2587
+ };
2588
+ }
2589
+ /**
2590
+ * Dispatch a request
2591
+ *
2592
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
2593
+ * @param {?Object} config
2594
+ *
2595
+ * @returns {Promise} The Promise to be fulfilled
2596
+ */
2597
+ async request(t, n) {
2598
+ try {
2599
+ return await this._request(t, n);
2600
+ } catch (s) {
2601
+ if (s instanceof Error) {
2602
+ let r = {};
2603
+ Error.captureStackTrace ? Error.captureStackTrace(r) : r = new Error();
2604
+ const o = r.stack ? r.stack.replace(/^.+\n/, "") : "";
2605
+ try {
2606
+ s.stack ? o && !String(s.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (s.stack += `
2607
+ ` + o) : s.stack = o;
2608
+ } catch {
2609
+ }
2610
+ }
2611
+ throw s;
2612
+ }
2613
+ }
2614
+ _request(t, n) {
2615
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ie(this.defaults, n);
2616
+ const { transitional: s, paramsSerializer: r, headers: o } = n;
2617
+ s !== void 0 && Oe.assertOptions(s, {
2618
+ silentJSONParsing: J.transitional(J.boolean),
2619
+ forcedJSONParsing: J.transitional(J.boolean),
2620
+ clarifyTimeoutError: J.transitional(J.boolean),
2621
+ legacyInterceptorReqResOrdering: J.transitional(J.boolean)
2622
+ }, !1), r != null && (c.isFunction(r) ? n.paramsSerializer = {
2623
+ serialize: r
2624
+ } : Oe.assertOptions(r, {
2625
+ encode: J.function,
2626
+ serialize: J.function
2627
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Oe.assertOptions(n, {
2628
+ baseUrl: J.spelling("baseURL"),
2629
+ withXsrfToken: J.spelling("withXSRFToken")
2630
+ }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
2631
+ let i = o && c.merge(
2632
+ o.common,
2633
+ o[n.method]
2634
+ );
2635
+ o && c.forEach(
2636
+ ["delete", "get", "head", "post", "put", "patch", "common"],
2637
+ (h) => {
2638
+ delete o[h];
2639
+ }
2640
+ ), n.headers = V.concat(i, o);
2641
+ const a = [];
2642
+ let d = !0;
2643
+ this.interceptors.request.forEach(function(y) {
2644
+ if (typeof y.runWhen == "function" && y.runWhen(n) === !1)
2645
+ return;
2646
+ d = d && y.synchronous;
2647
+ const p = n.transitional || dt;
2648
+ p && p.legacyInterceptorReqResOrdering ? a.unshift(y.fulfilled, y.rejected) : a.push(y.fulfilled, y.rejected);
2649
+ });
2650
+ const u = [];
2651
+ this.interceptors.response.forEach(function(y) {
2652
+ u.push(y.fulfilled, y.rejected);
2653
+ });
2654
+ let l, g = 0, x;
2655
+ if (!d) {
2656
+ const h = [Ut.bind(this), void 0];
2657
+ for (h.unshift(...a), h.push(...u), x = h.length, l = Promise.resolve(n); g < x; )
2658
+ l = l.then(h[g++], h[g++]);
2659
+ return l;
2660
+ }
2661
+ x = a.length;
2662
+ let _ = n;
2663
+ for (; g < x; ) {
2664
+ const h = a[g++], y = a[g++];
2665
+ try {
2666
+ _ = h(_);
2667
+ } catch (p) {
2668
+ y.call(this, p);
2669
+ break;
2670
+ }
2671
+ }
2672
+ try {
2673
+ l = Ut.call(this, _);
2674
+ } catch (h) {
2675
+ return Promise.reject(h);
2676
+ }
2677
+ for (g = 0, x = u.length; g < x; )
2678
+ l = l.then(u[g++], u[g++]);
2679
+ return l;
2680
+ }
2681
+ getUri(t) {
2682
+ t = ie(this.defaults, t);
2683
+ const n = on(t.baseURL, t.url, t.allowAbsoluteUrls);
2684
+ return tn(n, t.params, t.paramsSerializer);
2685
+ }
2686
+ };
2687
+ c.forEach(["delete", "get", "head", "options"], function(t) {
2688
+ oe.prototype[t] = function(n, s) {
2689
+ return this.request(ie(s || {}, {
2690
+ method: t,
2691
+ url: n,
2692
+ data: (s || {}).data
2693
+ }));
2694
+ };
2695
+ });
2696
+ c.forEach(["post", "put", "patch"], function(t) {
2697
+ function n(s) {
2698
+ return function(o, i, a) {
2699
+ return this.request(ie(a || {}, {
2700
+ method: t,
2701
+ headers: s ? {
2702
+ "Content-Type": "multipart/form-data"
2703
+ } : {},
2704
+ url: o,
2705
+ data: i
2706
+ }));
2707
+ };
2708
+ }
2709
+ oe.prototype[t] = n(), oe.prototype[t + "Form"] = n(!0);
2710
+ });
2711
+ let ao = class dn {
2712
+ constructor(t) {
2713
+ if (typeof t != "function")
2714
+ throw new TypeError("executor must be a function.");
2715
+ let n;
2716
+ this.promise = new Promise(function(o) {
2717
+ n = o;
2718
+ });
2719
+ const s = this;
2720
+ this.promise.then((r) => {
2721
+ if (!s._listeners) return;
2722
+ let o = s._listeners.length;
2723
+ for (; o-- > 0; )
2724
+ s._listeners[o](r);
2725
+ s._listeners = null;
2726
+ }), this.promise.then = (r) => {
2727
+ let o;
2728
+ const i = new Promise((a) => {
2729
+ s.subscribe(a), o = a;
2730
+ }).then(r);
2731
+ return i.cancel = function() {
2732
+ s.unsubscribe(o);
2733
+ }, i;
2734
+ }, t(function(o, i, a) {
2735
+ s.reason || (s.reason = new xe(o, i, a), n(s.reason));
2736
+ });
2737
+ }
2738
+ /**
2739
+ * Throws a `CanceledError` if cancellation has been requested.
2740
+ */
2741
+ throwIfRequested() {
2742
+ if (this.reason)
2743
+ throw this.reason;
2744
+ }
2745
+ /**
2746
+ * Subscribe to the cancel signal
2747
+ */
2748
+ subscribe(t) {
2749
+ if (this.reason) {
2750
+ t(this.reason);
2751
+ return;
2752
+ }
2753
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
2754
+ }
2755
+ /**
2756
+ * Unsubscribe from the cancel signal
2757
+ */
2758
+ unsubscribe(t) {
2759
+ if (!this._listeners)
2760
+ return;
2761
+ const n = this._listeners.indexOf(t);
2762
+ n !== -1 && this._listeners.splice(n, 1);
2763
+ }
2764
+ toAbortSignal() {
2765
+ const t = new AbortController(), n = (s) => {
2766
+ t.abort(s);
2767
+ };
2768
+ return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
2769
+ }
2770
+ /**
2771
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
2772
+ * cancels the `CancelToken`.
2773
+ */
2774
+ static source() {
2775
+ let t;
2776
+ return {
2777
+ token: new dn(function(r) {
2778
+ t = r;
2779
+ }),
2780
+ cancel: t
2781
+ };
2782
+ }
2783
+ };
2784
+ function lo(e) {
2785
+ return function(n) {
2786
+ return e.apply(null, n);
1152
2787
  };
1153
- }, qt = ["disabled"], Et = {
2788
+ }
2789
+ function co(e) {
2790
+ return c.isObject(e) && e.isAxiosError === !0;
2791
+ }
2792
+ const Ye = {
2793
+ Continue: 100,
2794
+ SwitchingProtocols: 101,
2795
+ Processing: 102,
2796
+ EarlyHints: 103,
2797
+ Ok: 200,
2798
+ Created: 201,
2799
+ Accepted: 202,
2800
+ NonAuthoritativeInformation: 203,
2801
+ NoContent: 204,
2802
+ ResetContent: 205,
2803
+ PartialContent: 206,
2804
+ MultiStatus: 207,
2805
+ AlreadyReported: 208,
2806
+ ImUsed: 226,
2807
+ MultipleChoices: 300,
2808
+ MovedPermanently: 301,
2809
+ Found: 302,
2810
+ SeeOther: 303,
2811
+ NotModified: 304,
2812
+ UseProxy: 305,
2813
+ Unused: 306,
2814
+ TemporaryRedirect: 307,
2815
+ PermanentRedirect: 308,
2816
+ BadRequest: 400,
2817
+ Unauthorized: 401,
2818
+ PaymentRequired: 402,
2819
+ Forbidden: 403,
2820
+ NotFound: 404,
2821
+ MethodNotAllowed: 405,
2822
+ NotAcceptable: 406,
2823
+ ProxyAuthenticationRequired: 407,
2824
+ RequestTimeout: 408,
2825
+ Conflict: 409,
2826
+ Gone: 410,
2827
+ LengthRequired: 411,
2828
+ PreconditionFailed: 412,
2829
+ PayloadTooLarge: 413,
2830
+ UriTooLong: 414,
2831
+ UnsupportedMediaType: 415,
2832
+ RangeNotSatisfiable: 416,
2833
+ ExpectationFailed: 417,
2834
+ ImATeapot: 418,
2835
+ MisdirectedRequest: 421,
2836
+ UnprocessableEntity: 422,
2837
+ Locked: 423,
2838
+ FailedDependency: 424,
2839
+ TooEarly: 425,
2840
+ UpgradeRequired: 426,
2841
+ PreconditionRequired: 428,
2842
+ TooManyRequests: 429,
2843
+ RequestHeaderFieldsTooLarge: 431,
2844
+ UnavailableForLegalReasons: 451,
2845
+ InternalServerError: 500,
2846
+ NotImplemented: 501,
2847
+ BadGateway: 502,
2848
+ ServiceUnavailable: 503,
2849
+ GatewayTimeout: 504,
2850
+ HttpVersionNotSupported: 505,
2851
+ VariantAlsoNegotiates: 506,
2852
+ InsufficientStorage: 507,
2853
+ LoopDetected: 508,
2854
+ NotExtended: 510,
2855
+ NetworkAuthenticationRequired: 511,
2856
+ WebServerIsDown: 521,
2857
+ ConnectionTimedOut: 522,
2858
+ OriginIsUnreachable: 523,
2859
+ TimeoutOccurred: 524,
2860
+ SslHandshakeFailed: 525,
2861
+ InvalidSslCertificate: 526
2862
+ };
2863
+ Object.entries(Ye).forEach(([e, t]) => {
2864
+ Ye[t] = e;
2865
+ });
2866
+ function fn(e) {
2867
+ const t = new oe(e), n = Ht(oe.prototype.request, t);
2868
+ return c.extend(n, oe.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
2869
+ return fn(ie(e, r));
2870
+ }, n;
2871
+ }
2872
+ const L = fn(ve);
2873
+ L.Axios = oe;
2874
+ L.CanceledError = xe;
2875
+ L.CancelToken = ao;
2876
+ L.isCancel = sn;
2877
+ L.VERSION = un;
2878
+ L.toFormData = je;
2879
+ L.AxiosError = v;
2880
+ L.Cancel = L.CanceledError;
2881
+ L.all = function(t) {
2882
+ return Promise.all(t);
2883
+ };
2884
+ L.spread = lo;
2885
+ L.isAxiosError = co;
2886
+ L.mergeConfig = ie;
2887
+ L.AxiosHeaders = V;
2888
+ L.formToJSON = (e) => nn(c.isHTMLForm(e) ? new FormData(e) : e);
2889
+ L.getAdapter = cn.getAdapter;
2890
+ L.HttpStatusCode = Ye;
2891
+ L.default = L;
2892
+ const {
2893
+ Axios: ai,
2894
+ AxiosError: li,
2895
+ CanceledError: ci,
2896
+ isCancel: ui,
2897
+ CancelToken: di,
2898
+ VERSION: fi,
2899
+ all: hi,
2900
+ Cancel: pi,
2901
+ isAxiosError: mi,
2902
+ spread: bi,
2903
+ toFormData: gi,
2904
+ AxiosHeaders: yi,
2905
+ HttpStatusCode: wi,
2906
+ formToJSON: vi,
2907
+ getAdapter: xi,
2908
+ mergeConfig: Ri
2909
+ } = L, uo = () => {
2910
+ const e = L.create({
2911
+ baseURL: Bs().API_URL,
2912
+ headers: {
2913
+ "Content-Type": "application/json"
2914
+ }
2915
+ });
2916
+ return e.interceptors.request.use((t) => {
2917
+ const n = localStorage.getItem("token");
2918
+ n && (t.headers.Authorization = `Bearer ${n}`);
2919
+ const s = localStorage.getItem("active-invertor-id");
2920
+ return s && (t.headers["X-Inverter-Id"] = s), t;
2921
+ }), e.interceptors.response.use(
2922
+ (t) => t,
2923
+ (t) => (t.response?.status === 401 && (localStorage.removeItem("token"), window.location.href = "/login"), Promise.reject(t))
2924
+ ), e;
2925
+ };
2926
+ let Ze;
2927
+ function fo() {
2928
+ return Ze || (Ze = uo()), Ze;
2929
+ }
2930
+ const ho = ["disabled"], po = {
1154
2931
  key: 0,
1155
- class: /* @__PURE__ */ w([
2932
+ class: /* @__PURE__ */ $([
1156
2933
  `bg-base-100 w-52 shadow -mt-5
1157
2934
  absolute z-50`
1158
2935
  ])
1159
- }, Zt = ["onClick", "onBlur"], Nn = /* @__PURE__ */ p({
2936
+ }, mo = ["onClick", "onBlur"], Ci = /* @__PURE__ */ k({
1160
2937
  __name: "AutoComplete",
1161
- props: /* @__PURE__ */ q(/* @__PURE__ */ X({
2938
+ props: /* @__PURE__ */ ue(/* @__PURE__ */ Ne({
1162
2939
  id: {},
1163
2940
  description: {},
1164
2941
  errors: {},
@@ -1174,90 +2951,90 @@ const Nt = {
1174
2951
  options: {},
1175
2952
  valueKey: {},
1176
2953
  labelKey: {}
1177
- }, Rt()), {
2954
+ }, As()), {
1178
2955
  modelValue: {},
1179
2956
  modelModifiers: {}
1180
2957
  }),
1181
- emits: /* @__PURE__ */ q(["change", "focus", "blur"], ["update:modelValue"]),
2958
+ emits: /* @__PURE__ */ ue(["change", "focus", "blur"], ["update:modelValue"]),
1182
2959
  setup(e, { emit: t }) {
1183
- const n = e, l = t, o = le(e, "modelValue"), c = N(""), h = (b) => {
1184
- l("change", b);
1185
- }, d = (b) => {
1186
- l("focus", b);
1187
- }, u = (b) => {
1188
- l("blur", b);
1189
- }, m = N(!1), r = N([]), A = (b) => {
1190
- m.value = !0, S(b);
1191
- }, S = (b) => {
1192
- o.value = b, h(b);
1193
- }, R = (b) => {
1194
- r.value?.length === b + 1 && (r.value = []);
1195
- }, H = It(), M = (b) => b[n.valueKey], U = (b) => b?.[n.labelKey] ?? "";
1196
- return G(
1197
- () => o.value,
1198
- (b) => {
1199
- b && !M(b) || (m.value = !0, r.value = [], c.value = U(b));
2960
+ const n = e, s = t, r = tt(e, "modelValue"), o = G(""), i = (w) => {
2961
+ s("change", w);
2962
+ }, a = (w) => {
2963
+ s("focus", w);
2964
+ }, d = (w) => {
2965
+ s("blur", w);
2966
+ }, u = G(!1), l = G([]), g = (w) => {
2967
+ u.value = !0, x(w);
2968
+ }, x = (w) => {
2969
+ r.value = w, i(w);
2970
+ }, _ = (w) => {
2971
+ l.value?.length === w + 1 && (l.value = []);
2972
+ }, h = fo(), y = (w) => w[n.valueKey], p = (w) => w?.[n.labelKey] ?? "";
2973
+ return Te(
2974
+ () => r.value,
2975
+ (w) => {
2976
+ w && !y(w) || (u.value = !0, l.value = [], o.value = p(w));
1200
2977
  },
1201
2978
  { immediate: !0 }
1202
- ), G(
1203
- () => c.value,
1204
- (b) => {
1205
- if (m.value) {
1206
- m.value = !1;
2979
+ ), Te(
2980
+ () => o.value,
2981
+ (w) => {
2982
+ if (u.value) {
2983
+ u.value = !1;
1207
2984
  return;
1208
2985
  }
1209
- if (S({ [n.labelKey]: b }), n.config) {
1210
- const { uri: C, skipAuth: K, dataField: F } = n.config;
1211
- H.get(`${C}${b}`, { skipAuth: K }).then((te) => {
1212
- r.value = te[F];
2986
+ if (x({ [n.labelKey]: w }), n.config) {
2987
+ const { uri: E, skipAuth: O, dataField: T } = n.config;
2988
+ h.get(`${E}${w}`, { skipAuth: O }).then((I) => {
2989
+ l.value = I[T];
1213
2990
  });
1214
- } else n.options && (r.value = n.options.filter((C) => U(C).toLowerCase().includes(b)).slice(0, 10));
2991
+ } else n.options && (l.value = n.options.filter((E) => p(E).toLowerCase().includes(w)).slice(0, 10));
1215
2992
  }
1216
- ), (b, C) => {
1217
- const K = ve("click-outside");
1218
- return s(), g(me, ae(ie(n)), {
1219
- default: T(() => [
1220
- Q(i("input", {
1221
- "onUpdate:modelValue": C[0] || (C[0] = (F) => c.value = F),
2993
+ ), (w, E) => {
2994
+ const O = Ft("click-outside");
2995
+ return f(), S(lt, nt(st(n)), {
2996
+ default: K(() => [
2997
+ Le(b("input", {
2998
+ "onUpdate:modelValue": E[0] || (E[0] = (T) => o.value = T),
1222
2999
  autocomplete: "off",
1223
3000
  type: "text",
1224
- class: w([e.styles.control.select]),
3001
+ class: $([e.styles.control.select]),
1225
3002
  disabled: !e.enabled,
1226
- onFocus: d,
1227
- onBlur: u
1228
- }, null, 42, qt), [
1229
- [Me, c.value]
3003
+ onFocus: a,
3004
+ onBlur: d
3005
+ }, null, 42, ho), [
3006
+ [yn, o.value]
1230
3007
  ]),
1231
- Q((s(), a("div", null, [
1232
- r.value?.length ? (s(), a("ul", Et, [
1233
- (s(!0), a(x, null, L(r.value, (F, te) => (s(), a("li", {
1234
- key: F[e.valueKey]
3008
+ Le((f(), m("div", null, [
3009
+ l.value?.length ? (f(), m("ul", po, [
3010
+ (f(!0), m(P, null, M(l.value, (T, I) => (f(), m("li", {
3011
+ key: T[e.valueKey]
1235
3012
  }, [
1236
- i("button", {
3013
+ b("button", {
1237
3014
  class: "w-full h-8 border-b-1 border-gray-200 border-x-0 border-t-0 px-4 py-2 text-left hover:bg-primary-content cursor-pointer",
1238
3015
  type: "button",
1239
- onClick: (xe) => A(F),
1240
- onBlur: (xe) => R(te)
1241
- }, v(U(F)), 41, Zt)
3016
+ onClick: (Y) => g(T),
3017
+ onBlur: (Y) => _(I)
3018
+ }, C(p(T)), 41, mo)
1242
3019
  ]))), 128))
1243
- ])) : y("", !0)
3020
+ ])) : A("", !0)
1244
3021
  ])), [
1245
- [K, () => r.value = []]
3022
+ [O, () => l.value = []]
1246
3023
  ])
1247
3024
  ]),
1248
3025
  _: 1
1249
3026
  }, 16);
1250
3027
  };
1251
3028
  }
1252
- }), Wt = {
3029
+ }), bo = {
1253
3030
  key: 0,
1254
- class: /* @__PURE__ */ w([
3031
+ class: /* @__PURE__ */ $([
1255
3032
  `bg-base-100 w-52 shadow -mt-5
1256
3033
  absolute z-50 p-0`
1257
3034
  ])
1258
- }, Gt = ["onClick"], Jt = { class: "w-4 mr-2" }, Rn = /* @__PURE__ */ p({
3035
+ }, go = ["onClick"], yo = { class: "w-4 mr-2" }, Ei = /* @__PURE__ */ k({
1259
3036
  __name: "MultiSelect",
1260
- props: /* @__PURE__ */ q(/* @__PURE__ */ X({
3037
+ props: /* @__PURE__ */ ue(/* @__PURE__ */ Ne({
1261
3038
  id: {},
1262
3039
  description: {},
1263
3040
  errors: {},
@@ -1273,126 +3050,126 @@ const Nt = {
1273
3050
  valueKey: {},
1274
3051
  labelKey: {}
1275
3052
  }, {
1276
- ...ee(),
3053
+ ...Ue(),
1277
3054
  valueKey: "value",
1278
3055
  labelKey: "label"
1279
3056
  }), {
1280
3057
  modelValue: {},
1281
3058
  modelModifiers: {}
1282
3059
  }),
1283
- emits: /* @__PURE__ */ q(["change", "focus", "blur"], ["update:modelValue"]),
3060
+ emits: /* @__PURE__ */ ue(["change", "focus", "blur"], ["update:modelValue"]),
1284
3061
  setup(e, { emit: t }) {
1285
- const n = e, l = t, o = le(e, "modelValue");
1286
- let c = !1;
1287
- const h = (M) => {
1288
- l("change", M);
1289
- }, d = N(!1), u = () => {
1290
- d.value = !d.value, c = !0;
1291
- }, m = () => {
1292
- c || (d.value = !1), c = !1;
1293
- }, r = k(
1294
- () => o.value?.map((M) => R(M)) ?? []
1295
- ), A = (M) => r.value.includes(M), S = (M, U) => {
1296
- M.preventDefault();
1297
- let b = o.value ?? [];
1298
- const C = R(U);
1299
- A(C) ? b = b.filter((F) => R(F) !== C) : b.push(U), o.value = b, h(b);
1300
- }, R = (M) => M[n.valueKey], H = (M) => M?.[n.labelKey] ?? "";
1301
- return (M, U) => {
1302
- const b = ve("click-outside");
1303
- return s(), g(me, ae(ie(n)), {
1304
- default: T(() => [
1305
- i("button", {
3062
+ const n = e, s = t, r = tt(e, "modelValue");
3063
+ let o = !1;
3064
+ const i = (y) => {
3065
+ s("change", y);
3066
+ }, a = G(!1), d = () => {
3067
+ a.value = !a.value, o = !0;
3068
+ }, u = () => {
3069
+ o || (a.value = !1), o = !1;
3070
+ }, l = B(
3071
+ () => r.value?.map((y) => _(y)) ?? []
3072
+ ), g = (y) => l.value.includes(y), x = (y, p) => {
3073
+ y.preventDefault();
3074
+ let w = r.value ?? [];
3075
+ const E = _(p);
3076
+ g(E) ? w = w.filter((T) => _(T) !== E) : w.push(p), r.value = w, i(w);
3077
+ }, _ = (y) => y[n.valueKey], h = (y) => y?.[n.labelKey] ?? "";
3078
+ return (y, p) => {
3079
+ const w = Ft("click-outside");
3080
+ return f(), S(lt, nt(st(n)), {
3081
+ default: K(() => [
3082
+ b("button", {
1306
3083
  type: "button",
1307
- class: w([e.styles.control.select, "w-full truncate block"]),
1308
- onClick: u
1309
- }, v(o.value?.map?.((C) => H(C)).join(", ") ?? "Select value"), 3),
1310
- Q((s(), a("div", null, [
1311
- d.value ? (s(), a("ul", Wt, [
1312
- (s(!0), a(x, null, L(e.options, (C) => (s(), a("li", {
1313
- key: C[e.valueKey]
3084
+ class: $([e.styles.control.select, "w-full truncate block"]),
3085
+ onClick: d
3086
+ }, C(r.value?.map?.((E) => h(E)).join(", ") ?? "Select value"), 3),
3087
+ Le((f(), m("div", null, [
3088
+ a.value ? (f(), m("ul", bo, [
3089
+ (f(!0), m(P, null, M(e.options, (E) => (f(), m("li", {
3090
+ key: E[e.valueKey]
1314
3091
  }, [
1315
- i("button", {
3092
+ b("button", {
1316
3093
  class: "w-full flex h-8 border-b-1 border-gray-200 border-x-0 border-t-0 p-2 text-left hover:bg-primary-content cursor-pointer",
1317
3094
  type: "button",
1318
- onClick: (K) => S(K, C)
3095
+ onClick: (O) => x(O, E)
1319
3096
  }, [
1320
- i("div", Jt, [
1321
- A(R(C)) ? (s(), g(f(j), {
3097
+ b("div", yo, [
3098
+ g(_(E)) ? (f(), S(R(ne), {
1322
3099
  key: 0,
1323
- icon: f(z).Check,
3100
+ icon: R(Z).Check,
1324
3101
  size: "sm"
1325
- }, null, 8, ["icon"])) : y("", !0)
3102
+ }, null, 8, ["icon"])) : A("", !0)
1326
3103
  ]),
1327
- V(" " + v(H(C)), 1)
1328
- ], 8, Gt)
3104
+ X(" " + C(h(E)), 1)
3105
+ ], 8, go)
1329
3106
  ]))), 128))
1330
- ])) : y("", !0)
3107
+ ])) : A("", !0)
1331
3108
  ])), [
1332
- [b, () => m()]
3109
+ [w, () => u()]
1333
3110
  ])
1334
3111
  ]),
1335
3112
  _: 1
1336
3113
  }, 16);
1337
3114
  };
1338
3115
  }
1339
- }), Qt = { class: "grid grid-cols-[auto_1fr_auto] h-full overflow-hidden" }, Xt = {
3116
+ }), wo = { class: "grid grid-cols-[auto_1fr_auto] h-full overflow-hidden" }, vo = {
1340
3117
  id: "drawer-left",
1341
3118
  class: "min-h-0 min-w-6 relative flex-shrink-0 bg-white shadow-lg transition-all duration-300 ease-in-out border-l border-gray-200 overflow-visible"
1342
- }, Yt = { class: "flex-1 overflow-y-auto bg-white" }, en = { class: "min-h-0 min-w-6 relative flex-shrink-0 bg-white shadow-lg transition-all duration-300 ease-in-out border-l border-gray-200 overflow-visible" }, Un = /* @__PURE__ */ p({
3119
+ }, xo = { class: "flex-1 overflow-y-auto bg-white" }, Ro = { class: "min-h-0 min-w-6 relative flex-shrink-0 bg-white shadow-lg transition-all duration-300 ease-in-out border-l border-gray-200 overflow-visible" }, Si = /* @__PURE__ */ k({
1343
3120
  __name: "drawer",
1344
3121
  props: {
1345
3122
  widthLeft: { default: 200 },
1346
3123
  widthRight: { default: 200 }
1347
3124
  },
1348
3125
  setup(e) {
1349
- const t = N({ left: !0, right: !0 }), n = (l) => {
1350
- t.value[l] = !t.value[l];
3126
+ const t = G({ left: !0, right: !0 }), n = (s) => {
3127
+ t.value[s] = !t.value[s];
1351
3128
  };
1352
- return (l, o) => (s(), a("main", Qt, [
1353
- i("aside", Xt, [
1354
- i("div", {
1355
- class: w(["absolute top-0 z-20", t.value.left ? "-right-0" : "-right-2"])
3129
+ return (s, r) => (f(), m("main", wo, [
3130
+ b("aside", vo, [
3131
+ b("div", {
3132
+ class: $(["absolute top-0 z-20", t.value.left ? "-right-0" : "-right-2"])
1356
3133
  }, [
1357
- i("button", {
3134
+ b("button", {
1358
3135
  class: "btn btn-ghost btn-circle",
1359
- onClick: o[0] || (o[0] = (c) => n("left"))
3136
+ onClick: r[0] || (r[0] = (o) => n("left"))
1360
3137
  }, [
1361
- P(f(j), {
3138
+ F(R(ne), {
1362
3139
  size: "sm",
1363
- icon: t.value.left ? f(z).DblChevronLeft : f(z).DblChevronRight
3140
+ icon: t.value.left ? R(Z).DblChevronLeft : R(Z).DblChevronRight
1364
3141
  }, null, 8, ["icon"])
1365
3142
  ])
1366
3143
  ], 2),
1367
- t.value.left ? (s(), a("div", {
3144
+ t.value.left ? (f(), m("div", {
1368
3145
  key: 0,
1369
- style: J({ width: e.widthLeft + "px" }),
3146
+ style: $e({ width: e.widthLeft + "px" }),
1370
3147
  class: "h-full overflow-y-auto p-4"
1371
3148
  }, [
1372
- B(l.$slots, "left-drawer")
1373
- ], 4)) : y("", !0)
3149
+ j(s.$slots, "left-drawer")
3150
+ ], 4)) : A("", !0)
1374
3151
  ]),
1375
- i("div", Yt, [
1376
- B(l.$slots, "default")
3152
+ b("div", xo, [
3153
+ j(s.$slots, "default")
1377
3154
  ]),
1378
- i("aside", en, [
1379
- t.value.right ? (s(), a("div", {
3155
+ b("aside", Ro, [
3156
+ t.value.right ? (f(), m("div", {
1380
3157
  key: 0,
1381
- style: J({ width: e.widthRight + "px" }),
3158
+ style: $e({ width: e.widthRight + "px" }),
1382
3159
  class: "h-full overflow-y-auto p-4"
1383
3160
  }, [
1384
- B(l.$slots, "right-drawer")
1385
- ], 4)) : y("", !0),
1386
- i("div", {
1387
- class: w(["absolute top-0 z-20", t.value.right ? "-left-0" : "-left-2"])
3161
+ j(s.$slots, "right-drawer")
3162
+ ], 4)) : A("", !0),
3163
+ b("div", {
3164
+ class: $(["absolute top-0 z-20", t.value.right ? "-left-0" : "-left-2"])
1388
3165
  }, [
1389
- i("button", {
3166
+ b("button", {
1390
3167
  class: "btn btn-ghost btn-circle",
1391
- onClick: o[1] || (o[1] = (c) => n("right"))
3168
+ onClick: r[1] || (r[1] = (o) => n("right"))
1392
3169
  }, [
1393
- P(f(j), {
3170
+ F(R(ne), {
1394
3171
  size: "sm",
1395
- icon: t.value.right ? f(z).DblChevronRight : f(z).DblChevronLeft
3172
+ icon: t.value.right ? R(Z).DblChevronRight : R(Z).DblChevronLeft
1396
3173
  }, null, 8, ["icon"])
1397
3174
  ])
1398
3175
  ], 2)
@@ -1400,40 +3177,40 @@ const Nt = {
1400
3177
  ]));
1401
3178
  }
1402
3179
  });
1403
- function tn(e, t) {
1404
- return s(), a("svg", {
3180
+ function Co(e, t) {
3181
+ return f(), m("svg", {
1405
3182
  xmlns: "http://www.w3.org/2000/svg",
1406
3183
  viewBox: "0 0 24 24",
1407
3184
  fill: "currentColor",
1408
3185
  "aria-hidden": "true",
1409
3186
  "data-slot": "icon"
1410
3187
  }, [
1411
- i("path", {
3188
+ b("path", {
1412
3189
  "fill-rule": "evenodd",
1413
3190
  d: "M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",
1414
3191
  "clip-rule": "evenodd"
1415
3192
  })
1416
3193
  ]);
1417
3194
  }
1418
- function nn(e, t) {
1419
- return s(), a("svg", {
3195
+ function Eo(e, t) {
3196
+ return f(), m("svg", {
1420
3197
  xmlns: "http://www.w3.org/2000/svg",
1421
3198
  viewBox: "0 0 24 24",
1422
3199
  fill: "currentColor",
1423
3200
  "aria-hidden": "true",
1424
3201
  "data-slot": "icon"
1425
3202
  }, [
1426
- i("path", {
3203
+ b("path", {
1427
3204
  "fill-rule": "evenodd",
1428
3205
  d: "M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",
1429
3206
  "clip-rule": "evenodd"
1430
3207
  })
1431
3208
  ]);
1432
3209
  }
1433
- const on = { class: "ml-1" }, sn = { class: "truncate flex-1 min-w-0 text-left" }, ln = {
3210
+ const So = { class: "ml-1" }, ko = { class: "truncate flex-1 min-w-0 text-left" }, _o = {
1434
3211
  key: 0,
1435
3212
  class: "badge badge-ghost badge-sm flex-shrink-0"
1436
- }, an = /* @__PURE__ */ p({
3213
+ }, Ao = /* @__PURE__ */ k({
1437
3214
  __name: "TreeItem",
1438
3215
  props: {
1439
3216
  active: {},
@@ -1443,59 +3220,59 @@ const on = { class: "ml-1" }, sn = { class: "truncate flex-1 min-w-0 text-left"
1443
3220
  },
1444
3221
  emits: ["toggle", "select"],
1445
3222
  setup(e, { emit: t }) {
1446
- const n = e, l = t, o = k(() => n.active === n.node.id);
1447
- return (c, h) => {
1448
- const d = oe("TreeItem", !0);
1449
- return s(), a("li", on, [
1450
- i("div", {
1451
- class: w([
3223
+ const n = e, s = t, r = B(() => n.active === n.node.id);
3224
+ return (o, i) => {
3225
+ const a = Be("TreeItem", !0);
3226
+ return f(), m("li", So, [
3227
+ b("div", {
3228
+ class: $([
1452
3229
  `flex items-center gap-1 cursor-pointer rounded-md px-1 py-0.5
1453
3230
  hover:bg-gray-100`,
1454
- o.value ? "text-primary" : ""
3231
+ r.value ? "text-primary" : ""
1455
3232
  ])
1456
3233
  }, [
1457
- e.node.children?.length > 0 ? (s(), a("span", {
3234
+ e.node.children?.length > 0 ? (f(), m("span", {
1458
3235
  key: 0,
1459
3236
  class: "flex items-center justify-center",
1460
- onClick: h[0] || (h[0] = (u) => l("toggle", e.node))
3237
+ onClick: i[0] || (i[0] = (d) => s("toggle", e.node))
1461
3238
  }, [
1462
- e.node.children && e.isExpanded(e.node.id) ? (s(), g(f(tn), {
3239
+ e.node.children && e.isExpanded(e.node.id) ? (f(), S(R(Co), {
1463
3240
  key: 0,
1464
3241
  class: "w-3 h-3"
1465
- })) : (s(), g(f(nn), {
3242
+ })) : (f(), S(R(Eo), {
1466
3243
  key: 1,
1467
3244
  class: "w-3 h-3"
1468
3245
  }))
1469
- ])) : y("", !0),
1470
- i("div", {
3246
+ ])) : A("", !0),
3247
+ b("div", {
1471
3248
  class: "flex items-center gap-2 w-full min-w-0",
1472
- onClick: h[1] || (h[1] = (u) => l("select", e.node))
3249
+ onClick: i[1] || (i[1] = (d) => s("select", e.node))
1473
3250
  }, [
1474
- i("div", sn, v(e.node.label), 1),
1475
- e.node.tag ? (s(), a("div", ln, v(e.node.tag), 1)) : y("", !0)
3251
+ b("div", ko, C(e.node.label), 1),
3252
+ e.node.tag ? (f(), m("div", _o, C(e.node.tag), 1)) : A("", !0)
1476
3253
  ])
1477
3254
  ], 2),
1478
- e.node.children && e.isExpanded(e.node.id) ? (s(), a("ul", {
3255
+ e.node.children && e.isExpanded(e.node.id) ? (f(), m("ul", {
1479
3256
  key: 0,
1480
- class: w([
3257
+ class: $([
1481
3258
  "ml-4 border-l pl-2",
1482
- { "border-gray-200": !o.value, "border-primary": o.value }
3259
+ { "border-gray-200": !r.value, "border-primary": r.value }
1483
3260
  ])
1484
3261
  }, [
1485
- (s(!0), a(x, null, L(e.node.children, (u) => (s(), g(d, {
1486
- key: u.id,
1487
- node: u,
3262
+ (f(!0), m(P, null, M(e.node.children, (d) => (f(), S(a, {
3263
+ key: d.id,
3264
+ node: d,
1488
3265
  expanded: e.expanded,
1489
3266
  active: e.active,
1490
3267
  "is-expanded": e.isExpanded,
1491
- onToggle: h[2] || (h[2] = (m) => l("toggle", m)),
1492
- onSelect: h[3] || (h[3] = (m) => l("select", m))
3268
+ onToggle: i[2] || (i[2] = (u) => s("toggle", u)),
3269
+ onSelect: i[3] || (i[3] = (u) => s("select", u))
1493
3270
  }, null, 8, ["node", "expanded", "active", "is-expanded"]))), 128))
1494
- ], 2)) : y("", !0)
3271
+ ], 2)) : A("", !0)
1495
3272
  ]);
1496
3273
  };
1497
3274
  }
1498
- }), rn = { class: "select-none text-sm" }, Fn = /* @__PURE__ */ p({
3275
+ }), Oo = { class: "select-none text-sm" }, ki = /* @__PURE__ */ k({
1499
3276
  __name: "TreeView",
1500
3277
  props: {
1501
3278
  data: {},
@@ -1503,80 +3280,80 @@ const on = { class: "ml-1" }, sn = { class: "truncate flex-1 min-w-0 text-left"
1503
3280
  },
1504
3281
  emits: ["select"],
1505
3282
  setup(e, { emit: t }) {
1506
- const n = e, l = t, o = N(/* @__PURE__ */ new Set()), c = (u) => {
1507
- const m = u.id;
1508
- if (!u.children || u.children.length === 0) {
1509
- l("select", u);
3283
+ const n = e, s = t, r = G(/* @__PURE__ */ new Set()), o = (d) => {
3284
+ const u = d.id;
3285
+ if (!d.children || d.children.length === 0) {
3286
+ s("select", d);
1510
3287
  return;
1511
3288
  }
1512
- o.value.has(m) ? o.value.delete(m) : o.value.add(m);
1513
- }, h = (u) => {
1514
- l("select", u), o.value.add(u.id);
1515
- }, d = (u) => o.value.has(u);
1516
- return (u, m) => (s(), a("ul", rn, [
1517
- (s(!0), a(x, null, L(n.data, (r) => (s(), g(an, {
1518
- key: r.id,
1519
- node: r,
1520
- expanded: o.value,
3289
+ r.value.has(u) ? r.value.delete(u) : r.value.add(u);
3290
+ }, i = (d) => {
3291
+ s("select", d), r.value.add(d.id);
3292
+ }, a = (d) => r.value.has(d);
3293
+ return (d, u) => (f(), m("ul", Oo, [
3294
+ (f(!0), m(P, null, M(n.data, (l) => (f(), S(Ao, {
3295
+ key: l.id,
3296
+ node: l,
3297
+ expanded: r.value,
1521
3298
  active: e.active,
1522
- "is-expanded": d,
1523
- onToggle: c,
1524
- onSelect: h
3299
+ "is-expanded": a,
3300
+ onToggle: o,
3301
+ onSelect: i
1525
3302
  }, null, 8, ["node", "expanded", "active"]))), 128))
1526
3303
  ]));
1527
3304
  }
1528
- }), cn = {
3305
+ }), To = {
1529
3306
  key: 0,
1530
3307
  class: "flex items-center justify-center h-20"
1531
- }, jn = /* @__PURE__ */ p({
3308
+ }, _i = /* @__PURE__ */ k({
1532
3309
  __name: "loading",
1533
3310
  props: {
1534
3311
  loading: { type: Boolean }
1535
3312
  },
1536
3313
  setup(e) {
1537
- return (t, n) => e.loading ? (s(), a("div", cn, [...n[0] || (n[0] = [
1538
- i("span", { class: "loading loading-bars loading-md text-primary" }, null, -1)
1539
- ])])) : y("", !0);
3314
+ return (t, n) => e.loading ? (f(), m("div", To, [...n[0] || (n[0] = [
3315
+ b("span", { class: "loading loading-bars loading-md text-primary" }, null, -1)
3316
+ ])])) : A("", !0);
1540
3317
  }
1541
- }), un = { class: "collapse collapse-arrow bg-white w-full border border-gray-300" }, dn = ["checked"], mn = { class: "collapse-title text-gray-500 text-xs font-medium" }, hn = {
3318
+ }), $o = { class: "collapse collapse-arrow bg-white w-full border border-gray-300" }, Lo = ["checked"], Po = { class: "collapse-title text-gray-500 text-xs font-medium" }, Bo = {
1542
3319
  key: 0,
1543
3320
  class: "list bg-base-100"
1544
- }, Hn = /* @__PURE__ */ p({
3321
+ }, Ai = /* @__PURE__ */ k({
1545
3322
  __name: "Collapse",
1546
3323
  props: {
1547
3324
  title: {},
1548
3325
  opened: { type: Boolean, default: !0 }
1549
3326
  },
1550
3327
  setup(e) {
1551
- const t = ge(), n = e, l = N(n.opened);
1552
- return G(
3328
+ const t = It(), n = e, s = G(n.opened);
3329
+ return Te(
1553
3330
  () => n.opened,
1554
3331
  () => {
1555
3332
  },
1556
3333
  { immediate: !0 }
1557
- ), (o, c) => (s(), a("div", un, [
1558
- i("input", {
3334
+ ), (r, o) => (f(), m("div", $o, [
3335
+ b("input", {
1559
3336
  type: "checkbox",
1560
- checked: l.value
1561
- }, null, 8, dn),
1562
- i("div", mn, v(e.title), 1),
1563
- i("div", {
1564
- class: w(["collapse-content", f(t).list ? "p-0" : ""])
3337
+ checked: s.value
3338
+ }, null, 8, Lo),
3339
+ b("div", Po, C(e.title), 1),
3340
+ b("div", {
3341
+ class: $(["collapse-content", R(t).list ? "p-0" : ""])
1565
3342
  }, [
1566
- B(o.$slots, "default"),
1567
- f(t).list ? (s(), a("ul", hn, [
1568
- B(o.$slots, "list")
1569
- ])) : y("", !0)
3343
+ j(r.$slots, "default"),
3344
+ R(t).list ? (f(), m("ul", Bo, [
3345
+ j(r.$slots, "list")
3346
+ ])) : A("", !0)
1570
3347
  ], 2)
1571
3348
  ]));
1572
3349
  }
1573
- }), bn = { class: "list-row" }, fn = { class: "list-col-grow" }, vn = {
3350
+ }), No = { class: "list-row" }, Do = { class: "list-col-grow" }, Uo = {
1574
3351
  key: 0,
1575
3352
  class: "text-xs text-gray-600"
1576
- }, gn = ["href"], pn = { key: 1 }, yn = {
3353
+ }, Mo = ["href"], Fo = { key: 1 }, Io = {
1577
3354
  key: 0,
1578
- class: "text-xs text-gray-600"
1579
- }, wn = ["href"], xn = { key: 1 }, Kn = /* @__PURE__ */ p({
3355
+ class: "text-xs text-gray-500"
3356
+ }, jo = ["href"], qo = { key: 1 }, zo = { class: "list-col-wrap text-xs text-gray-500" }, Oi = /* @__PURE__ */ k({
1580
3357
  __name: "CollapseRow",
1581
3358
  props: {
1582
3359
  title: {},
@@ -1586,68 +3363,74 @@ const on = { class: "ml-1" }, sn = { class: "truncate flex-1 min-w-0 text-left"
1586
3363
  descriptionLink: {}
1587
3364
  },
1588
3365
  setup(e) {
1589
- return ge(), (t, n) => (s(), a("li", bn, [
1590
- i("div", fn, [
1591
- i("div", null, v(e.title), 1),
1592
- e.description || e.descriptionLink ? (s(), a("div", vn, [
1593
- e.descriptionLink ? (s(), a("a", {
3366
+ return It(), (t, n) => {
3367
+ const s = Be("ng-content");
3368
+ return f(), m("li", No, [
3369
+ b("div", Do, [
3370
+ b("div", null, C(e.title), 1),
3371
+ e.description || e.descriptionLink ? (f(), m("div", Uo, [
3372
+ e.descriptionLink ? (f(), m("a", {
3373
+ key: 0,
3374
+ href: e.descriptionLink,
3375
+ target: "_blank"
3376
+ }, C(e.description ?? e.descriptionLink), 9, Mo)) : (f(), m("span", Fo, C(e.description), 1))
3377
+ ])) : A("", !0)
3378
+ ]),
3379
+ e.label ? (f(), m("div", Io, [
3380
+ e.labelLink ? (f(), m("a", {
1594
3381
  key: 0,
1595
- href: e.descriptionLink,
3382
+ href: e.labelLink,
1596
3383
  target: "_blank"
1597
- }, v(e.description ?? e.descriptionLink), 9, gn)) : (s(), a("span", pn, v(e.description), 1))
1598
- ])) : y("", !0)
1599
- ]),
1600
- e.label ? (s(), a("div", yn, [
1601
- e.labelLink ? (s(), a("a", {
1602
- key: 0,
1603
- href: e.labelLink,
1604
- target: "_blank"
1605
- }, v(e.label), 9, wn)) : (s(), a("span", xn, v(e.label), 1))
1606
- ])) : y("", !0)
1607
- ]));
3384
+ }, C(e.label), 9, jo)) : (f(), m("span", qo, C(e.label), 1))
3385
+ ])) : A("", !0),
3386
+ b("p", zo, [
3387
+ F(s)
3388
+ ])
3389
+ ]);
3390
+ };
1608
3391
  }
1609
3392
  });
1610
3393
  export {
1611
- Nn as Autocomplete,
1612
- Je as BadgeSize,
1613
- I as Btn,
1614
- Ln as BtnBadge,
1615
- Ge as ButtonSize,
1616
- Dn as Card,
1617
- Sn as ClickOutside,
1618
- Hn as Collapse,
1619
- Kn as CollapseRow,
1620
- O as Color,
1621
- Xe as ConfirmModal,
1622
- me as ControlWrapper,
1623
- Rt as DefaultAutoCompleteProperties,
1624
- ee as DefaultControlProperties,
1625
- Un as Drawer,
1626
- _n as Dropdown,
1627
- j as Icon,
1628
- z as IconEnum,
1629
- Pe as IconMap,
1630
- jn as Loading,
1631
- Cn as Menu,
1632
- Ee as Modal,
1633
- ue as ModalService,
1634
- Ye as ModalWrapper,
1635
- Rn as MultiSelect,
1636
- et as NotificationMessage,
1637
- de as NotificationService,
1638
- ot as Notifications,
1639
- pt as PaginationComponent,
1640
- Vn as SelectComponent,
1641
- Mn as ShellComponent,
1642
- re as SubMenu,
1643
- Pn as Table,
1644
- Pn as TableComponent,
1645
- Bn as TextCell,
1646
- Fn as TreeView,
1647
- An as addClickOutsideEventListener,
1648
- zn as hasCustomEventListener,
1649
- Ft as isDescriptionHidden,
1650
- Nt as myStyles,
1651
- Tn as removeClickOutsideEventListener,
1652
- Ut as showErrors
3394
+ Ci as Autocomplete,
3395
+ jn as BadgeSize,
3396
+ ce as Btn,
3397
+ Jo as BtnBadge,
3398
+ In as ButtonSize,
3399
+ Qo as Card,
3400
+ ti as ClickOutside,
3401
+ Ai as Collapse,
3402
+ Oi as CollapseRow,
3403
+ le as Color,
3404
+ zn as ConfirmModal,
3405
+ lt as ControlWrapper,
3406
+ As as DefaultAutoCompleteProperties,
3407
+ Ue as DefaultControlProperties,
3408
+ Si as Drawer,
3409
+ Wo as Dropdown,
3410
+ ne as Icon,
3411
+ Z as IconEnum,
3412
+ vn as IconMap,
3413
+ _i as Loading,
3414
+ Ko as Menu,
3415
+ Un as Modal,
3416
+ it as ModalService,
3417
+ Hn as ModalWrapper,
3418
+ Ei as MultiSelect,
3419
+ Vn as NotificationMessage,
3420
+ at as NotificationService,
3421
+ Jn as Notifications,
3422
+ cs as PaginationComponent,
3423
+ si as SelectComponent,
3424
+ Zo as ShellComponent,
3425
+ rt as SubMenu,
3426
+ Go as Table,
3427
+ Go as TableComponent,
3428
+ Xo as TextCell,
3429
+ ki as TreeView,
3430
+ Yo as addClickOutsideEventListener,
3431
+ ni as hasCustomEventListener,
3432
+ Ts as isDescriptionHidden,
3433
+ _s as myStyles,
3434
+ ei as removeClickOutsideEventListener,
3435
+ Os as showErrors
1653
3436
  };