@billgangcom/theme-lib 1.4.0 → 1.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.
@@ -0,0 +1,3939 @@
1
+ import I, { useState as fr } from "react";
2
+ function pr(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ var it = { exports: {} }, ye = {};
6
+ /**
7
+ * @license React
8
+ * react-jsx-runtime.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+ var zt;
16
+ function hr() {
17
+ if (zt) return ye;
18
+ zt = 1;
19
+ var e = I, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
20
+ function i(c, f, l) {
21
+ var u, h = {}, w = null, x = null;
22
+ l !== void 0 && (w = "" + l), f.key !== void 0 && (w = "" + f.key), f.ref !== void 0 && (x = f.ref);
23
+ for (u in f) r.call(f, u) && !o.hasOwnProperty(u) && (h[u] = f[u]);
24
+ if (c && c.defaultProps) for (u in f = c.defaultProps, f) h[u] === void 0 && (h[u] = f[u]);
25
+ return { $$typeof: t, type: c, key: w, ref: x, props: h, _owner: s.current };
26
+ }
27
+ return ye.Fragment = n, ye.jsx = i, ye.jsxs = i, ye;
28
+ }
29
+ var _e = {};
30
+ /**
31
+ * @license React
32
+ * react-jsx-runtime.development.js
33
+ *
34
+ * Copyright (c) Facebook, Inc. and its affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */
39
+ var Vt;
40
+ function mr() {
41
+ return Vt || (Vt = 1, process.env.NODE_ENV !== "production" && function() {
42
+ var e = I, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), b = Symbol.iterator, g = "@@iterator";
43
+ function v(a) {
44
+ if (a === null || typeof a != "object")
45
+ return null;
46
+ var p = b && a[b] || a[g];
47
+ return typeof p == "function" ? p : null;
48
+ }
49
+ var S = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
+ function _(a) {
51
+ {
52
+ for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), E = 1; E < p; E++)
53
+ y[E - 1] = arguments[E];
54
+ C("error", a, y);
55
+ }
56
+ }
57
+ function C(a, p, y) {
58
+ {
59
+ var E = S.ReactDebugCurrentFrame, T = E.getStackAddendum();
60
+ T !== "" && (p += "%s", y = y.concat([T]));
61
+ var j = y.map(function(O) {
62
+ return String(O);
63
+ });
64
+ j.unshift("Warning: " + p), Function.prototype.apply.call(console[a], console, j);
65
+ }
66
+ }
67
+ var D = !1, B = !1, q = !1, K = !1, ee = !1, se;
68
+ se = Symbol.for("react.module.reference");
69
+ function G(a) {
70
+ return !!(typeof a == "string" || typeof a == "function" || a === r || a === o || ee || a === s || a === l || a === u || K || a === x || D || B || q || typeof a == "object" && a !== null && (a.$$typeof === w || a.$$typeof === h || a.$$typeof === i || a.$$typeof === c || a.$$typeof === f || // This needs to include all possible module reference object
71
+ // types supported by any Flight configuration anywhere since
72
+ // we don't know which Flight build this will end up being used
73
+ // with.
74
+ a.$$typeof === se || a.getModuleId !== void 0));
75
+ }
76
+ function X(a, p, y) {
77
+ var E = a.displayName;
78
+ if (E)
79
+ return E;
80
+ var T = p.displayName || p.name || "";
81
+ return T !== "" ? y + "(" + T + ")" : y;
82
+ }
83
+ function ze(a) {
84
+ return a.displayName || "Context";
85
+ }
86
+ function Z(a) {
87
+ if (a == null)
88
+ return null;
89
+ if (typeof a.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
90
+ return a.displayName || a.name || null;
91
+ if (typeof a == "string")
92
+ return a;
93
+ switch (a) {
94
+ case r:
95
+ return "Fragment";
96
+ case n:
97
+ return "Portal";
98
+ case o:
99
+ return "Profiler";
100
+ case s:
101
+ return "StrictMode";
102
+ case l:
103
+ return "Suspense";
104
+ case u:
105
+ return "SuspenseList";
106
+ }
107
+ if (typeof a == "object")
108
+ switch (a.$$typeof) {
109
+ case c:
110
+ var p = a;
111
+ return ze(p) + ".Consumer";
112
+ case i:
113
+ var y = a;
114
+ return ze(y._context) + ".Provider";
115
+ case f:
116
+ return X(a, a.render, "ForwardRef");
117
+ case h:
118
+ var E = a.displayName || null;
119
+ return E !== null ? E : Z(a.type) || "Memo";
120
+ case w: {
121
+ var T = a, j = T._payload, O = T._init;
122
+ try {
123
+ return Z(O(j));
124
+ } catch {
125
+ return null;
126
+ }
127
+ }
128
+ }
129
+ return null;
130
+ }
131
+ var oe = Object.assign, ge = 0, St, xt, Et, Rt, kt, Ct, Ot;
132
+ function Tt() {
133
+ }
134
+ Tt.__reactDisabledLog = !0;
135
+ function Un() {
136
+ {
137
+ if (ge === 0) {
138
+ St = console.log, xt = console.info, Et = console.warn, Rt = console.error, kt = console.group, Ct = console.groupCollapsed, Ot = console.groupEnd;
139
+ var a = {
140
+ configurable: !0,
141
+ enumerable: !0,
142
+ value: Tt,
143
+ writable: !0
144
+ };
145
+ Object.defineProperties(console, {
146
+ info: a,
147
+ log: a,
148
+ warn: a,
149
+ error: a,
150
+ group: a,
151
+ groupCollapsed: a,
152
+ groupEnd: a
153
+ });
154
+ }
155
+ ge++;
156
+ }
157
+ }
158
+ function qn() {
159
+ {
160
+ if (ge--, ge === 0) {
161
+ var a = {
162
+ configurable: !0,
163
+ enumerable: !0,
164
+ writable: !0
165
+ };
166
+ Object.defineProperties(console, {
167
+ log: oe({}, a, {
168
+ value: St
169
+ }),
170
+ info: oe({}, a, {
171
+ value: xt
172
+ }),
173
+ warn: oe({}, a, {
174
+ value: Et
175
+ }),
176
+ error: oe({}, a, {
177
+ value: Rt
178
+ }),
179
+ group: oe({}, a, {
180
+ value: kt
181
+ }),
182
+ groupCollapsed: oe({}, a, {
183
+ value: Ct
184
+ }),
185
+ groupEnd: oe({}, a, {
186
+ value: Ot
187
+ })
188
+ });
189
+ }
190
+ ge < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ }
192
+ }
193
+ var Ve = S.ReactCurrentDispatcher, We;
194
+ function Ce(a, p, y) {
195
+ {
196
+ if (We === void 0)
197
+ try {
198
+ throw Error();
199
+ } catch (T) {
200
+ var E = T.stack.trim().match(/\n( *(at )?)/);
201
+ We = E && E[1] || "";
202
+ }
203
+ return `
204
+ ` + We + a;
205
+ }
206
+ }
207
+ var Je = !1, Oe;
208
+ {
209
+ var Mn = typeof WeakMap == "function" ? WeakMap : Map;
210
+ Oe = new Mn();
211
+ }
212
+ function jt(a, p) {
213
+ if (!a || Je)
214
+ return "";
215
+ {
216
+ var y = Oe.get(a);
217
+ if (y !== void 0)
218
+ return y;
219
+ }
220
+ var E;
221
+ Je = !0;
222
+ var T = Error.prepareStackTrace;
223
+ Error.prepareStackTrace = void 0;
224
+ var j;
225
+ j = Ve.current, Ve.current = null, Un();
226
+ try {
227
+ if (p) {
228
+ var O = function() {
229
+ throw Error();
230
+ };
231
+ if (Object.defineProperty(O.prototype, "props", {
232
+ set: function() {
233
+ throw Error();
234
+ }
235
+ }), typeof Reflect == "object" && Reflect.construct) {
236
+ try {
237
+ Reflect.construct(O, []);
238
+ } catch (M) {
239
+ E = M;
240
+ }
241
+ Reflect.construct(a, [], O);
242
+ } else {
243
+ try {
244
+ O.call();
245
+ } catch (M) {
246
+ E = M;
247
+ }
248
+ a.call(O.prototype);
249
+ }
250
+ } else {
251
+ try {
252
+ throw Error();
253
+ } catch (M) {
254
+ E = M;
255
+ }
256
+ a();
257
+ }
258
+ } catch (M) {
259
+ if (M && E && typeof M.stack == "string") {
260
+ for (var k = M.stack.split(`
261
+ `), U = E.stack.split(`
262
+ `), N = k.length - 1, F = U.length - 1; N >= 1 && F >= 0 && k[N] !== U[F]; )
263
+ F--;
264
+ for (; N >= 1 && F >= 0; N--, F--)
265
+ if (k[N] !== U[F]) {
266
+ if (N !== 1 || F !== 1)
267
+ do
268
+ if (N--, F--, F < 0 || k[N] !== U[F]) {
269
+ var W = `
270
+ ` + k[N].replace(" at new ", " at ");
271
+ return a.displayName && W.includes("<anonymous>") && (W = W.replace("<anonymous>", a.displayName)), typeof a == "function" && Oe.set(a, W), W;
272
+ }
273
+ while (N >= 1 && F >= 0);
274
+ break;
275
+ }
276
+ }
277
+ } finally {
278
+ Je = !1, Ve.current = j, qn(), Error.prepareStackTrace = T;
279
+ }
280
+ var fe = a ? a.displayName || a.name : "", ie = fe ? Ce(fe) : "";
281
+ return typeof a == "function" && Oe.set(a, ie), ie;
282
+ }
283
+ function $n(a, p, y) {
284
+ return jt(a, !1);
285
+ }
286
+ function Hn(a) {
287
+ var p = a.prototype;
288
+ return !!(p && p.isReactComponent);
289
+ }
290
+ function Te(a, p, y) {
291
+ if (a == null)
292
+ return "";
293
+ if (typeof a == "function")
294
+ return jt(a, Hn(a));
295
+ if (typeof a == "string")
296
+ return Ce(a);
297
+ switch (a) {
298
+ case l:
299
+ return Ce("Suspense");
300
+ case u:
301
+ return Ce("SuspenseList");
302
+ }
303
+ if (typeof a == "object")
304
+ switch (a.$$typeof) {
305
+ case f:
306
+ return $n(a.render);
307
+ case h:
308
+ return Te(a.type, p, y);
309
+ case w: {
310
+ var E = a, T = E._payload, j = E._init;
311
+ try {
312
+ return Te(j(T), p, y);
313
+ } catch {
314
+ }
315
+ }
316
+ }
317
+ return "";
318
+ }
319
+ var be = Object.prototype.hasOwnProperty, Pt = {}, At = S.ReactDebugCurrentFrame;
320
+ function je(a) {
321
+ if (a) {
322
+ var p = a._owner, y = Te(a.type, a._source, p ? p.type : null);
323
+ At.setExtraStackFrame(y);
324
+ } else
325
+ At.setExtraStackFrame(null);
326
+ }
327
+ function zn(a, p, y, E, T) {
328
+ {
329
+ var j = Function.call.bind(be);
330
+ for (var O in a)
331
+ if (j(a, O)) {
332
+ var k = void 0;
333
+ try {
334
+ if (typeof a[O] != "function") {
335
+ var U = Error((E || "React class") + ": " + y + " type `" + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[O] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
336
+ throw U.name = "Invariant Violation", U;
337
+ }
338
+ k = a[O](p, O, E, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ } catch (N) {
340
+ k = N;
341
+ }
342
+ k && !(k instanceof Error) && (je(T), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", y, O, typeof k), je(null)), k instanceof Error && !(k.message in Pt) && (Pt[k.message] = !0, je(T), _("Failed %s type: %s", y, k.message), je(null));
343
+ }
344
+ }
345
+ }
346
+ var Vn = Array.isArray;
347
+ function Ke(a) {
348
+ return Vn(a);
349
+ }
350
+ function Wn(a) {
351
+ {
352
+ var p = typeof Symbol == "function" && Symbol.toStringTag, y = p && a[Symbol.toStringTag] || a.constructor.name || "Object";
353
+ return y;
354
+ }
355
+ }
356
+ function Jn(a) {
357
+ try {
358
+ return Nt(a), !1;
359
+ } catch {
360
+ return !0;
361
+ }
362
+ }
363
+ function Nt(a) {
364
+ return "" + a;
365
+ }
366
+ function Bt(a) {
367
+ if (Jn(a))
368
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Wn(a)), Nt(a);
369
+ }
370
+ var ve = S.ReactCurrentOwner, Kn = {
371
+ key: !0,
372
+ ref: !0,
373
+ __self: !0,
374
+ __source: !0
375
+ }, Ft, It, Ye;
376
+ Ye = {};
377
+ function Yn(a) {
378
+ if (be.call(a, "ref")) {
379
+ var p = Object.getOwnPropertyDescriptor(a, "ref").get;
380
+ if (p && p.isReactWarning)
381
+ return !1;
382
+ }
383
+ return a.ref !== void 0;
384
+ }
385
+ function Gn(a) {
386
+ if (be.call(a, "key")) {
387
+ var p = Object.getOwnPropertyDescriptor(a, "key").get;
388
+ if (p && p.isReactWarning)
389
+ return !1;
390
+ }
391
+ return a.key !== void 0;
392
+ }
393
+ function Xn(a, p) {
394
+ if (typeof a.ref == "string" && ve.current && p && ve.current.stateNode !== p) {
395
+ var y = Z(ve.current.type);
396
+ Ye[y] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(ve.current.type), a.ref), Ye[y] = !0);
397
+ }
398
+ }
399
+ function Zn(a, p) {
400
+ {
401
+ var y = function() {
402
+ Ft || (Ft = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
403
+ };
404
+ y.isReactWarning = !0, Object.defineProperty(a, "key", {
405
+ get: y,
406
+ configurable: !0
407
+ });
408
+ }
409
+ }
410
+ function Qn(a, p) {
411
+ {
412
+ var y = function() {
413
+ It || (It = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
414
+ };
415
+ y.isReactWarning = !0, Object.defineProperty(a, "ref", {
416
+ get: y,
417
+ configurable: !0
418
+ });
419
+ }
420
+ }
421
+ var er = function(a, p, y, E, T, j, O) {
422
+ var k = {
423
+ // This tag allows us to uniquely identify this as a React Element
424
+ $$typeof: t,
425
+ // Built-in properties that belong on the element
426
+ type: a,
427
+ key: p,
428
+ ref: y,
429
+ props: O,
430
+ // Record the component responsible for creating this element.
431
+ _owner: j
432
+ };
433
+ return k._store = {}, Object.defineProperty(k._store, "validated", {
434
+ configurable: !1,
435
+ enumerable: !1,
436
+ writable: !0,
437
+ value: !1
438
+ }), Object.defineProperty(k, "_self", {
439
+ configurable: !1,
440
+ enumerable: !1,
441
+ writable: !1,
442
+ value: E
443
+ }), Object.defineProperty(k, "_source", {
444
+ configurable: !1,
445
+ enumerable: !1,
446
+ writable: !1,
447
+ value: T
448
+ }), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
449
+ };
450
+ function tr(a, p, y, E, T) {
451
+ {
452
+ var j, O = {}, k = null, U = null;
453
+ y !== void 0 && (Bt(y), k = "" + y), Gn(p) && (Bt(p.key), k = "" + p.key), Yn(p) && (U = p.ref, Xn(p, T));
454
+ for (j in p)
455
+ be.call(p, j) && !Kn.hasOwnProperty(j) && (O[j] = p[j]);
456
+ if (a && a.defaultProps) {
457
+ var N = a.defaultProps;
458
+ for (j in N)
459
+ O[j] === void 0 && (O[j] = N[j]);
460
+ }
461
+ if (k || U) {
462
+ var F = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
463
+ k && Zn(O, F), U && Qn(O, F);
464
+ }
465
+ return er(a, k, U, T, E, ve.current, O);
466
+ }
467
+ }
468
+ var Ge = S.ReactCurrentOwner, Dt = S.ReactDebugCurrentFrame;
469
+ function de(a) {
470
+ if (a) {
471
+ var p = a._owner, y = Te(a.type, a._source, p ? p.type : null);
472
+ Dt.setExtraStackFrame(y);
473
+ } else
474
+ Dt.setExtraStackFrame(null);
475
+ }
476
+ var Xe;
477
+ Xe = !1;
478
+ function Ze(a) {
479
+ return typeof a == "object" && a !== null && a.$$typeof === t;
480
+ }
481
+ function Lt() {
482
+ {
483
+ if (Ge.current) {
484
+ var a = Z(Ge.current.type);
485
+ if (a)
486
+ return `
487
+
488
+ Check the render method of \`` + a + "`.";
489
+ }
490
+ return "";
491
+ }
492
+ }
493
+ function nr(a) {
494
+ return "";
495
+ }
496
+ var Ut = {};
497
+ function rr(a) {
498
+ {
499
+ var p = Lt();
500
+ if (!p) {
501
+ var y = typeof a == "string" ? a : a.displayName || a.name;
502
+ y && (p = `
503
+
504
+ Check the top-level render call using <` + y + ">.");
505
+ }
506
+ return p;
507
+ }
508
+ }
509
+ function qt(a, p) {
510
+ {
511
+ if (!a._store || a._store.validated || a.key != null)
512
+ return;
513
+ a._store.validated = !0;
514
+ var y = rr(p);
515
+ if (Ut[y])
516
+ return;
517
+ Ut[y] = !0;
518
+ var E = "";
519
+ a && a._owner && a._owner !== Ge.current && (E = " It was passed a child from " + Z(a._owner.type) + "."), de(a), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, E), de(null);
520
+ }
521
+ }
522
+ function Mt(a, p) {
523
+ {
524
+ if (typeof a != "object")
525
+ return;
526
+ if (Ke(a))
527
+ for (var y = 0; y < a.length; y++) {
528
+ var E = a[y];
529
+ Ze(E) && qt(E, p);
530
+ }
531
+ else if (Ze(a))
532
+ a._store && (a._store.validated = !0);
533
+ else if (a) {
534
+ var T = v(a);
535
+ if (typeof T == "function" && T !== a.entries)
536
+ for (var j = T.call(a), O; !(O = j.next()).done; )
537
+ Ze(O.value) && qt(O.value, p);
538
+ }
539
+ }
540
+ }
541
+ function sr(a) {
542
+ {
543
+ var p = a.type;
544
+ if (p == null || typeof p == "string")
545
+ return;
546
+ var y;
547
+ if (typeof p == "function")
548
+ y = p.propTypes;
549
+ else if (typeof p == "object" && (p.$$typeof === f || // Note: Memo only checks outer props here.
550
+ // Inner props are checked in the reconciler.
551
+ p.$$typeof === h))
552
+ y = p.propTypes;
553
+ else
554
+ return;
555
+ if (y) {
556
+ var E = Z(p);
557
+ zn(y, a.props, "prop", E, a);
558
+ } else if (p.PropTypes !== void 0 && !Xe) {
559
+ Xe = !0;
560
+ var T = Z(p);
561
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
562
+ }
563
+ typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
564
+ }
565
+ }
566
+ function or(a) {
567
+ {
568
+ for (var p = Object.keys(a.props), y = 0; y < p.length; y++) {
569
+ var E = p[y];
570
+ if (E !== "children" && E !== "key") {
571
+ de(a), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), de(null);
572
+ break;
573
+ }
574
+ }
575
+ a.ref !== null && (de(a), _("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
576
+ }
577
+ }
578
+ var $t = {};
579
+ function Ht(a, p, y, E, T, j) {
580
+ {
581
+ var O = G(a);
582
+ if (!O) {
583
+ var k = "";
584
+ (a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
585
+ var U = nr();
586
+ U ? k += U : k += Lt();
587
+ var N;
588
+ a === null ? N = "null" : Ke(a) ? N = "array" : a !== void 0 && a.$$typeof === t ? (N = "<" + (Z(a.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : N = typeof a, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, k);
589
+ }
590
+ var F = tr(a, p, y, T, j);
591
+ if (F == null)
592
+ return F;
593
+ if (O) {
594
+ var W = p.children;
595
+ if (W !== void 0)
596
+ if (E)
597
+ if (Ke(W)) {
598
+ for (var fe = 0; fe < W.length; fe++)
599
+ Mt(W[fe], a);
600
+ Object.freeze && Object.freeze(W);
601
+ } else
602
+ _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
603
+ else
604
+ Mt(W, a);
605
+ }
606
+ if (be.call(p, "key")) {
607
+ var ie = Z(a), M = Object.keys(p).filter(function(dr) {
608
+ return dr !== "key";
609
+ }), Qe = M.length > 0 ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}";
610
+ if (!$t[ie + Qe]) {
611
+ var ur = M.length > 0 ? "{" + M.join(": ..., ") + ": ...}" : "{}";
612
+ _(`A props object containing a "key" prop is being spread into JSX:
613
+ let props = %s;
614
+ <%s {...props} />
615
+ React keys must be passed directly to JSX without using spread:
616
+ let props = %s;
617
+ <%s key={someKey} {...props} />`, Qe, ie, ur, ie), $t[ie + Qe] = !0;
618
+ }
619
+ }
620
+ return a === r ? or(F) : sr(F), F;
621
+ }
622
+ }
623
+ function ir(a, p, y) {
624
+ return Ht(a, p, y, !0);
625
+ }
626
+ function ar(a, p, y) {
627
+ return Ht(a, p, y, !1);
628
+ }
629
+ var cr = ar, lr = ir;
630
+ _e.Fragment = r, _e.jsx = cr, _e.jsxs = lr;
631
+ }()), _e;
632
+ }
633
+ process.env.NODE_ENV === "production" ? it.exports = hr() : it.exports = mr();
634
+ var m = it.exports;
635
+ const Wt = (e) => {
636
+ let t;
637
+ const n = /* @__PURE__ */ new Set(), r = (l, u) => {
638
+ const h = typeof l == "function" ? l(t) : l;
639
+ if (!Object.is(h, t)) {
640
+ const w = t;
641
+ t = u ?? (typeof h != "object" || h === null) ? h : Object.assign({}, t, h), n.forEach((x) => x(t, w));
642
+ }
643
+ }, s = () => t, c = { setState: r, getState: s, getInitialState: () => f, subscribe: (l) => (n.add(l), () => n.delete(l)) }, f = t = e(r, s, c);
644
+ return c;
645
+ }, gr = (e) => e ? Wt(e) : Wt, br = (e) => e;
646
+ function vr(e, t = br) {
647
+ const n = I.useSyncExternalStore(
648
+ e.subscribe,
649
+ () => t(e.getState()),
650
+ () => t(e.getInitialState())
651
+ );
652
+ return I.useDebugValue(n), n;
653
+ }
654
+ const Jt = (e) => {
655
+ const t = gr(e), n = (r) => vr(t, r);
656
+ return Object.assign(n, t), n;
657
+ }, V = (e) => e ? Jt(e) : Jt, $i = V((e) => ({
658
+ blocks: {},
659
+ setBlocks: (t) => e(() => ({ blocks: t })),
660
+ activeBlock: null,
661
+ setActiveBlock: (t) => e(() => ({ activeBlock: t })),
662
+ sourceBlocks: {},
663
+ setSourceBlocks: (t) => e(() => ({ sourceBlocks: t }))
664
+ })), Hi = V((e) => ({
665
+ currentDevice: "desktop",
666
+ setCurrentDevice: (t) => e(() => ({ currentDevice: t }))
667
+ }));
668
+ V((e) => ({
669
+ pageData: null,
670
+ setPageData: (t) => e(() => ({ pageData: t }))
671
+ }));
672
+ const yr = [
673
+ {
674
+ icon: "layers",
675
+ name: "Layers"
676
+ },
677
+ {
678
+ icon: "plus",
679
+ name: "Add"
680
+ },
681
+ {
682
+ icon: "palette",
683
+ name: "Theme"
684
+ },
685
+ {
686
+ icon: "settings",
687
+ name: "Settings"
688
+ }
689
+ ], zi = Array.from({ length: 122 / 2 + 1 }, (e, t) => String(6 + t * 2)), Vi = [
690
+ "100",
691
+ "200",
692
+ "300",
693
+ "400",
694
+ "500",
695
+ "600",
696
+ "700",
697
+ "800",
698
+ "900"
699
+ ], Wi = [
700
+ "home",
701
+ "reviews",
702
+ "faqs",
703
+ "contact",
704
+ "product",
705
+ "ticket",
706
+ "login"
707
+ ], _r = {
708
+ home: {
709
+ path: "/",
710
+ name: "home",
711
+ icon: "house",
712
+ seo: {
713
+ description: "",
714
+ title: ""
715
+ },
716
+ visibility: "public"
717
+ },
718
+ product: {
719
+ path: "/product",
720
+ name: "product",
721
+ icon: "squares",
722
+ seo: {
723
+ description: "",
724
+ title: ""
725
+ },
726
+ visibility: "public"
727
+ },
728
+ faqs: {
729
+ path: "/faqs",
730
+ name: "faqs",
731
+ icon: "faqs",
732
+ seo: {
733
+ description: "",
734
+ title: ""
735
+ },
736
+ visibility: "public"
737
+ },
738
+ reviews: {
739
+ path: "/reviews",
740
+ name: "reviews",
741
+ icon: "star",
742
+ seo: {
743
+ description: "",
744
+ title: ""
745
+ },
746
+ visibility: "public"
747
+ },
748
+ contact: {
749
+ path: "/contact",
750
+ name: "contact",
751
+ icon: "chat",
752
+ seo: {
753
+ description: "",
754
+ title: ""
755
+ },
756
+ visibility: "public"
757
+ },
758
+ ticket: {
759
+ path: "/ticket",
760
+ name: "ticket",
761
+ icon: "ticket",
762
+ seo: {
763
+ description: "",
764
+ title: ""
765
+ },
766
+ visibility: "public"
767
+ },
768
+ login: {
769
+ path: "/login",
770
+ name: "login",
771
+ icon: "user-circle-gear",
772
+ seo: {
773
+ description: "",
774
+ title: ""
775
+ },
776
+ visibility: "public"
777
+ }
778
+ }, Ji = V((e) => ({
779
+ activeBlock: yr[0],
780
+ setActiveBlock: (t) => e(() => ({ activeBlock: t }))
781
+ }));
782
+ function wr(e, t) {
783
+ let n;
784
+ try {
785
+ n = e();
786
+ } catch {
787
+ return;
788
+ }
789
+ return {
790
+ getItem: (s) => {
791
+ var o;
792
+ const i = (f) => f === null ? null : JSON.parse(f, void 0), c = (o = n.getItem(s)) != null ? o : null;
793
+ return c instanceof Promise ? c.then(i) : i(c);
794
+ },
795
+ setItem: (s, o) => n.setItem(
796
+ s,
797
+ JSON.stringify(o, void 0)
798
+ ),
799
+ removeItem: (s) => n.removeItem(s)
800
+ };
801
+ }
802
+ const at = (e) => (t) => {
803
+ try {
804
+ const n = e(t);
805
+ return n instanceof Promise ? n : {
806
+ then(r) {
807
+ return at(r)(n);
808
+ },
809
+ catch(r) {
810
+ return this;
811
+ }
812
+ };
813
+ } catch (n) {
814
+ return {
815
+ then(r) {
816
+ return this;
817
+ },
818
+ catch(r) {
819
+ return at(r)(n);
820
+ }
821
+ };
822
+ }
823
+ }, Sr = (e, t) => (n, r, s) => {
824
+ let o = {
825
+ storage: wr(() => localStorage),
826
+ partialize: (g) => g,
827
+ version: 0,
828
+ merge: (g, v) => ({
829
+ ...v,
830
+ ...g
831
+ }),
832
+ ...t
833
+ }, i = !1;
834
+ const c = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set();
835
+ let l = o.storage;
836
+ if (!l)
837
+ return e(
838
+ (...g) => {
839
+ console.warn(
840
+ `[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`
841
+ ), n(...g);
842
+ },
843
+ r,
844
+ s
845
+ );
846
+ const u = () => {
847
+ const g = o.partialize({ ...r() });
848
+ return l.setItem(o.name, {
849
+ state: g,
850
+ version: o.version
851
+ });
852
+ }, h = s.setState;
853
+ s.setState = (g, v) => {
854
+ h(g, v), u();
855
+ };
856
+ const w = e(
857
+ (...g) => {
858
+ n(...g), u();
859
+ },
860
+ r,
861
+ s
862
+ );
863
+ s.getInitialState = () => w;
864
+ let x;
865
+ const b = () => {
866
+ var g, v;
867
+ if (!l) return;
868
+ i = !1, c.forEach((_) => {
869
+ var C;
870
+ return _((C = r()) != null ? C : w);
871
+ });
872
+ const S = ((v = o.onRehydrateStorage) == null ? void 0 : v.call(o, (g = r()) != null ? g : w)) || void 0;
873
+ return at(l.getItem.bind(l))(o.name).then((_) => {
874
+ if (_)
875
+ if (typeof _.version == "number" && _.version !== o.version) {
876
+ if (o.migrate)
877
+ return [
878
+ !0,
879
+ o.migrate(
880
+ _.state,
881
+ _.version
882
+ )
883
+ ];
884
+ console.error(
885
+ "State loaded from storage couldn't be migrated since no migrate function was provided"
886
+ );
887
+ } else
888
+ return [!1, _.state];
889
+ return [!1, void 0];
890
+ }).then((_) => {
891
+ var C;
892
+ const [D, B] = _;
893
+ if (x = o.merge(
894
+ B,
895
+ (C = r()) != null ? C : w
896
+ ), n(x, !0), D)
897
+ return u();
898
+ }).then(() => {
899
+ S == null || S(x, void 0), x = r(), i = !0, f.forEach((_) => _(x));
900
+ }).catch((_) => {
901
+ S == null || S(void 0, _);
902
+ });
903
+ };
904
+ return s.persist = {
905
+ setOptions: (g) => {
906
+ o = {
907
+ ...o,
908
+ ...g
909
+ }, g.storage && (l = g.storage);
910
+ },
911
+ clearStorage: () => {
912
+ l == null || l.removeItem(o.name);
913
+ },
914
+ getOptions: () => o,
915
+ rehydrate: () => b(),
916
+ hasHydrated: () => i,
917
+ onHydrate: (g) => (c.add(g), () => {
918
+ c.delete(g);
919
+ }),
920
+ onFinishHydration: (g) => (f.add(g), () => {
921
+ f.delete(g);
922
+ })
923
+ }, o.skipHydration || b(), x || w;
924
+ }, Le = Sr, Ki = V(
925
+ Le(
926
+ (e) => ({
927
+ onPreview: !1,
928
+ setOnPreview: (t) => e(() => ({ onPreview: t })),
929
+ activeBlock: null,
930
+ setActiveBlock: (t) => e(() => ({ activeBlock: t }))
931
+ }),
932
+ {
933
+ name: "preview-storage",
934
+ partialize: (e) => {
935
+ const { onPreview: t } = e;
936
+ return { onPreview: t };
937
+ }
938
+ }
939
+ )
940
+ );
941
+ var L = [];
942
+ for (var et = 0; et < 256; ++et)
943
+ L.push((et + 256).toString(16).slice(1));
944
+ function xr(e, t = 0) {
945
+ return (L[e[t + 0]] + L[e[t + 1]] + L[e[t + 2]] + L[e[t + 3]] + "-" + L[e[t + 4]] + L[e[t + 5]] + "-" + L[e[t + 6]] + L[e[t + 7]] + "-" + L[e[t + 8]] + L[e[t + 9]] + "-" + L[e[t + 10]] + L[e[t + 11]] + L[e[t + 12]] + L[e[t + 13]] + L[e[t + 14]] + L[e[t + 15]]).toLowerCase();
946
+ }
947
+ var Pe, Er = new Uint8Array(16);
948
+ function Rr() {
949
+ if (!Pe && (Pe = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Pe))
950
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
951
+ return Pe(Er);
952
+ }
953
+ var kr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
954
+ const Kt = {
955
+ randomUUID: kr
956
+ };
957
+ function ct(e, t, n) {
958
+ if (Kt.randomUUID && !t && !e)
959
+ return Kt.randomUUID();
960
+ e = e || {};
961
+ var r = e.random || (e.rng || Rr)();
962
+ return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, xr(r);
963
+ }
964
+ const Yi = V(
965
+ Le(
966
+ (e, t) => ({
967
+ header: null,
968
+ blocks: {
969
+ home: {},
970
+ contact: {},
971
+ product: {},
972
+ faqs: {},
973
+ reviews: {},
974
+ ticket: {},
975
+ login: {}
976
+ },
977
+ footer: null,
978
+ currentBlock: null,
979
+ positionBlock: null,
980
+ setHeader: (n) => {
981
+ e({ header: n });
982
+ },
983
+ setFooter: (n) => {
984
+ e({ footer: n });
985
+ },
986
+ createPage: (n) => {
987
+ const r = t().blocks;
988
+ r[n] = {}, e({ blocks: r });
989
+ },
990
+ deletePage: (n) => {
991
+ const r = t().blocks;
992
+ delete r[n], e({ blocks: r });
993
+ },
994
+ updatePage: (n, r) => {
995
+ const s = t().blocks;
996
+ if (s[r]) return;
997
+ const o = s[n];
998
+ delete s[n], s[r] = o, e({ blocks: s });
999
+ },
1000
+ setCurrentBlock: (n) => {
1001
+ e({ currentBlock: n });
1002
+ },
1003
+ setPositionBlock: (n) => {
1004
+ e({ positionBlock: n });
1005
+ },
1006
+ addBlock: (n, r) => {
1007
+ const s = t().blocks, o = s[n] || {}, i = t().positionBlock, c = ct(), f = Object.keys(o);
1008
+ if (i === null || i >= f.length)
1009
+ o[c] = {
1010
+ name: r.name,
1011
+ value: { ...r.value }
1012
+ }, e({
1013
+ blocks: {
1014
+ ...s,
1015
+ [n]: o
1016
+ }
1017
+ });
1018
+ else {
1019
+ const l = {
1020
+ name: r.name,
1021
+ value: { ...r.value }
1022
+ }, u = f.slice(0, i), h = f.slice(i), w = {
1023
+ ...u.reduce((x, b) => (x[b] = o[b], x), {}),
1024
+ [c]: l,
1025
+ ...h.reduce((x, b) => (x[b] = o[b], x), {})
1026
+ };
1027
+ e({
1028
+ blocks: {
1029
+ ...s,
1030
+ [n]: w
1031
+ }
1032
+ });
1033
+ }
1034
+ },
1035
+ editBlock: (n, r, s) => {
1036
+ const o = t().blocks, i = o[n] || {};
1037
+ i[r] = {
1038
+ name: s.name,
1039
+ value: { ...s.value }
1040
+ }, e({
1041
+ blocks: {
1042
+ ...o,
1043
+ [n]: i
1044
+ }
1045
+ });
1046
+ },
1047
+ removeBlock: (n, r) => {
1048
+ const s = t().blocks, o = s[n] || {};
1049
+ delete o[r], e({
1050
+ blocks: {
1051
+ ...s,
1052
+ [n]: o
1053
+ }
1054
+ });
1055
+ },
1056
+ moveBlock: (n, r, s) => e((o) => {
1057
+ const i = { ...o.blocks[n] }, c = Object.keys(i), [f] = c.splice(r, 1);
1058
+ c.splice(s, 0, f);
1059
+ const l = c.reduce(
1060
+ (u, h) => (u[h] = i[h], u),
1061
+ {}
1062
+ );
1063
+ return {
1064
+ blocks: {
1065
+ ...o.blocks,
1066
+ [n]: l
1067
+ }
1068
+ };
1069
+ }),
1070
+ duplicateBlock: (n, r) => {
1071
+ const { blocks: s } = t(), o = s[n], i = o[r], c = ct(), f = {
1072
+ name: i.name,
1073
+ value: { ...i.value }
1074
+ }, l = Object.keys(o), u = l.indexOf(r), h = l.slice(0, u + 1), w = l.slice(u + 1), x = {
1075
+ ...h.reduce((b, g) => (b[g] = o[g], b), {}),
1076
+ [c]: f,
1077
+ ...w.reduce((b, g) => (b[g] = o[g], b), {})
1078
+ };
1079
+ e({
1080
+ blocks: {
1081
+ ...s,
1082
+ [n]: x
1083
+ }
1084
+ });
1085
+ }
1086
+ }),
1087
+ {
1088
+ name: "layers-storage",
1089
+ partialize: (e) => {
1090
+ const { blocks: t, header: n, footer: r } = e;
1091
+ return { blocks: t, header: n, footer: r };
1092
+ }
1093
+ }
1094
+ )
1095
+ ), Cr = V((e, t) => ({
1096
+ isModalVisible: !1,
1097
+ hoverBlockId: null,
1098
+ isMouseOverModal: !1,
1099
+ hideTimeout: null,
1100
+ showModal: (n) => {
1101
+ t().hideTimeout && clearTimeout(t().hideTimeout), e({ isModalVisible: !0, hoverBlockId: n });
1102
+ },
1103
+ hideModal: () => {
1104
+ e({ isModalVisible: !1, hoverBlockId: null });
1105
+ },
1106
+ startHideTimeout: () => {
1107
+ if (!t().isMouseOverModal) {
1108
+ const n = setTimeout(() => {
1109
+ e({ isModalVisible: !1, hoverBlockId: null });
1110
+ }, 500);
1111
+ e({ hideTimeout: n });
1112
+ }
1113
+ },
1114
+ clearHideTimeout: () => {
1115
+ t().hideTimeout && (clearTimeout(t().hideTimeout), e({ hideTimeout: null }));
1116
+ },
1117
+ setMouseOverModal: (n) => {
1118
+ e({ isMouseOverModal: n });
1119
+ },
1120
+ isPreviewVisible: !1,
1121
+ // Изначально превью скрыто
1122
+ showPreview: (n) => {
1123
+ e({ isPreviewVisible: !0, hoverBlockId: n });
1124
+ },
1125
+ hidePreview: () => {
1126
+ e({ isPreviewVisible: !1, hoverBlockId: null });
1127
+ }
1128
+ })), Gi = V((e) => ({
1129
+ activeBlock: null,
1130
+ setActiveBlock: (t) => e(() => ({ activeBlock: t })),
1131
+ activeFont: null,
1132
+ setActiveFont: (t) => e(() => ({ activeFont: t })),
1133
+ themeSettings: {
1134
+ colors: {
1135
+ brand: {
1136
+ primary: "#fefefe",
1137
+ secondary: "#fefefe",
1138
+ toner: "#ffffff"
1139
+ },
1140
+ background: {
1141
+ primary: "#fefefe",
1142
+ secondary: "#000000"
1143
+ },
1144
+ text_icons: {
1145
+ primary: "#000000",
1146
+ secondary: "#fefefe",
1147
+ tertiary: "#fefefe",
1148
+ disabled: "#ffffff"
1149
+ },
1150
+ lines: {
1151
+ divider: "#000000",
1152
+ border: "#fefefe"
1153
+ },
1154
+ others: {
1155
+ link: "#000000"
1156
+ }
1157
+ },
1158
+ fonts: {
1159
+ heading: {
1160
+ h1: {
1161
+ font: "Archivo",
1162
+ weight: "900",
1163
+ size: 48
1164
+ },
1165
+ h2: {
1166
+ font: "Archivo",
1167
+ weight: "700",
1168
+ size: 32
1169
+ },
1170
+ h3: {
1171
+ font: "Archivo",
1172
+ weight: "600",
1173
+ size: 24
1174
+ },
1175
+ h4: {
1176
+ font: "Archivo",
1177
+ weight: "500",
1178
+ size: 16
1179
+ },
1180
+ h5: {
1181
+ font: "Archivo",
1182
+ weight: "400",
1183
+ size: 16
1184
+ },
1185
+ h6: {
1186
+ font: "Archivo",
1187
+ weight: "400",
1188
+ size: 16
1189
+ }
1190
+ },
1191
+ paragraph: {
1192
+ text: {
1193
+ font: "Archivo",
1194
+ size: 48,
1195
+ weight: "400"
1196
+ }
1197
+ }
1198
+ },
1199
+ borders: {
1200
+ radius: 52,
1201
+ thickness: 52
1202
+ },
1203
+ buttons: {
1204
+ size: 26,
1205
+ alignment: "left",
1206
+ radius: 32,
1207
+ height: 40
1208
+ },
1209
+ inputs: {
1210
+ general: {
1211
+ height: 48,
1212
+ name: "Style Name",
1213
+ size: 48,
1214
+ color: "black"
1215
+ },
1216
+ field: {
1217
+ active: !0,
1218
+ color: "black",
1219
+ opacity: 40
1220
+ },
1221
+ border: {
1222
+ active: !0,
1223
+ style: "solid",
1224
+ radius: 0,
1225
+ thickness: 0,
1226
+ color: "black"
1227
+ },
1228
+ label: {
1229
+ height: 48,
1230
+ size: 48,
1231
+ color: "black",
1232
+ alignment: "left"
1233
+ }
1234
+ }
1235
+ },
1236
+ updateColor: (t, n, r) => e((s) => {
1237
+ const o = {
1238
+ ...s.themeSettings.colors,
1239
+ [t]: {
1240
+ ...s.themeSettings.colors[t],
1241
+ [n]: r
1242
+ }
1243
+ };
1244
+ return { themeSettings: { ...s.themeSettings, colors: o } };
1245
+ }),
1246
+ updateFont: (t, n, r, s) => e((o) => {
1247
+ const i = {
1248
+ ...o.themeSettings.fonts,
1249
+ [t]: {
1250
+ ...o.themeSettings.fonts[t],
1251
+ [n]: {
1252
+ ...o.themeSettings.fonts[t][n],
1253
+ [r]: s
1254
+ }
1255
+ }
1256
+ };
1257
+ return { themeSettings: { ...o.themeSettings, fonts: i } };
1258
+ }),
1259
+ updateBorder: (t, n) => e((r) => {
1260
+ const s = {
1261
+ ...r.themeSettings.borders,
1262
+ [t]: n
1263
+ };
1264
+ return { themeSettings: { ...r.themeSettings, borders: s } };
1265
+ }),
1266
+ updateButton: (t, n) => e((r) => {
1267
+ const s = {
1268
+ ...r.themeSettings.buttons,
1269
+ [t]: n
1270
+ };
1271
+ return { themeSettings: { ...r.themeSettings, buttons: s } };
1272
+ }),
1273
+ updateInput: (t, n, r) => e((s) => ({
1274
+ themeSettings: {
1275
+ ...s.themeSettings,
1276
+ inputs: {
1277
+ ...s.themeSettings.inputs,
1278
+ [t]: {
1279
+ ...s.themeSettings.inputs[t],
1280
+ [r]: n
1281
+ }
1282
+ }
1283
+ }
1284
+ }))
1285
+ })), Xi = V(
1286
+ Le(
1287
+ (e) => ({
1288
+ fonts: [],
1289
+ setFonts: (t) => e(() => ({ fonts: t }))
1290
+ }),
1291
+ {
1292
+ name: "fonts-storage"
1293
+ }
1294
+ )
1295
+ ), Zi = V((e) => ({
1296
+ settings: null,
1297
+ setSettings: (t) => e(() => ({ settings: t }))
1298
+ })), Or = V()((e) => ({
1299
+ color: "default",
1300
+ initialColor: "",
1301
+ setInitialColor: (t) => e(() => ({ initialColor: t })),
1302
+ colorChange: () => {
1303
+ },
1304
+ update: () => {
1305
+ },
1306
+ activeLabel: null,
1307
+ modalPosition: {
1308
+ left: 0,
1309
+ top: 0
1310
+ },
1311
+ showModal: !1,
1312
+ dragging: !1,
1313
+ hue: 0,
1314
+ saturation: 100,
1315
+ brightness: 100,
1316
+ setModalPosition: (t) => e(() => ({ modalPosition: t })),
1317
+ setHue: (t) => e(() => ({ hue: t })),
1318
+ setSaturation: (t) => e(() => ({ saturation: t })),
1319
+ setBrightness: (t) => e(() => ({ brightness: t })),
1320
+ setShowModal: (t) => e(() => ({ showModal: t })),
1321
+ setDragging: (t) => e(() => ({ dragging: t })),
1322
+ setActiveLabel: (t) => e(() => ({ activeLabel: t })),
1323
+ setColor: (t) => e(() => ({ color: t })),
1324
+ setUpdate: (t) => e(() => ({ update: t })),
1325
+ setColorChange: (t) => e(() => ({ colorChange: t }))
1326
+ })), Qi = V(
1327
+ Le(
1328
+ (e, t) => ({
1329
+ pages: _r,
1330
+ currentPage: "home",
1331
+ pageContext: {
1332
+ listings: void 0,
1333
+ products: void 0,
1334
+ reviews: void 0,
1335
+ categories: void 0,
1336
+ faqs: void 0,
1337
+ general: void 0
1338
+ },
1339
+ isOpenModal: !1,
1340
+ isOpenSelectModal: !1,
1341
+ isEdit: !1,
1342
+ editedPage: null,
1343
+ setEditedPage: (n) => e(() => ({ editedPage: n })),
1344
+ setCurrentPage: (n) => e(() => ({ currentPage: n })),
1345
+ setPageContext: (n) => e(() => ({ pageContext: n })),
1346
+ setIsOpenModal: (n) => e(() => ({ isOpenModal: n })),
1347
+ setIsOpenSelectModal: (n) => e(() => ({ isOpenSelectModal: n })),
1348
+ setIsEdit: (n) => e(() => ({ isEdit: n })),
1349
+ createPage: (n) => {
1350
+ const r = t().pages, s = ct();
1351
+ r[s] = n, e({ pages: r });
1352
+ },
1353
+ updatePage: (n, r) => {
1354
+ const s = t().pages;
1355
+ s[n] = {
1356
+ ...r
1357
+ }, e({ pages: s });
1358
+ },
1359
+ deletePage: (n) => {
1360
+ const r = t().pages;
1361
+ delete r[n], e({ pages: r });
1362
+ }
1363
+ }),
1364
+ {
1365
+ name: "pages-storage",
1366
+ partialize: (e) => {
1367
+ const { pages: t } = e;
1368
+ return { pages: t };
1369
+ }
1370
+ }
1371
+ )
1372
+ ), pn = V((e) => ({
1373
+ openModal: !1,
1374
+ setOpenModal: (t) => e(() => ({ openModal: t }))
1375
+ })), Tr = (e, t, n) => {
1376
+ const r = e[t];
1377
+ return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((s, o) => {
1378
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
1379
+ o.bind(
1380
+ null,
1381
+ new Error(
1382
+ "Unknown variable dynamic import: " + t + (t.split("/").length !== n ? ". Note that variables only represent file names one level deep." : "")
1383
+ )
1384
+ )
1385
+ );
1386
+ });
1387
+ }, jr = "_icon_21b8w_1", Pr = "_hoverable_21b8w_5", Yt = {
1388
+ icon: jr,
1389
+ hoverable: Pr
1390
+ };
1391
+ var hn = { exports: {} };
1392
+ /*!
1393
+ Copyright (c) 2018 Jed Watson.
1394
+ Licensed under the MIT License (MIT), see
1395
+ http://jedwatson.github.io/classnames
1396
+ */
1397
+ (function(e) {
1398
+ (function() {
1399
+ var t = {}.hasOwnProperty;
1400
+ function n() {
1401
+ for (var o = "", i = 0; i < arguments.length; i++) {
1402
+ var c = arguments[i];
1403
+ c && (o = s(o, r(c)));
1404
+ }
1405
+ return o;
1406
+ }
1407
+ function r(o) {
1408
+ if (typeof o == "string" || typeof o == "number")
1409
+ return o;
1410
+ if (typeof o != "object")
1411
+ return "";
1412
+ if (Array.isArray(o))
1413
+ return n.apply(null, o);
1414
+ if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
1415
+ return o.toString();
1416
+ var i = "";
1417
+ for (var c in o)
1418
+ t.call(o, c) && o[c] && (i = s(i, c));
1419
+ return i;
1420
+ }
1421
+ function s(o, i) {
1422
+ return i ? o ? o + " " + i : o + i : o;
1423
+ }
1424
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
1425
+ })();
1426
+ })(hn);
1427
+ var Ar = hn.exports;
1428
+ const J = /* @__PURE__ */ pr(Ar), re = (e) => {
1429
+ const {
1430
+ name: t,
1431
+ fill: n = "currentColor",
1432
+ hoverable: r = !1,
1433
+ onClick: s,
1434
+ className: o,
1435
+ width: i,
1436
+ height: c
1437
+ } = e, [f, l] = I.useState(null);
1438
+ return I.useEffect(() => {
1439
+ (async () => {
1440
+ try {
1441
+ const { default: h } = await Tr(/* @__PURE__ */ Object.assign({ "../../../assets/icons/align-bottom.svg": () => import("./align-bottom-B6qXcF_P.js"), "../../../assets/icons/align-center.svg": () => import("./align-center-BO84DuTM.js"), "../../../assets/icons/align-left.svg": () => import("./align-left-M0ZgFryb.js"), "../../../assets/icons/align-right.svg": () => import("./align-right-Cgz7UcnI.js"), "../../../assets/icons/align-top.svg": () => import("./align-top-CMearyFH.js"), "../../../assets/icons/arrow-down.svg": () => import("./arrow-down-Be8fhLDw.js"), "../../../assets/icons/arrow-left.svg": () => import("./arrow-left-74wdITOH.js"), "../../../assets/icons/arrow-preview-down.svg": () => import("./arrow-preview-down-DM61uZ0R.js"), "../../../assets/icons/arrow-preview-up.svg": () => import("./arrow-preview-up-tl-dLBGP.js"), "../../../assets/icons/arrow-right.svg": () => import("./arrow-right-Cr3U4dHJ.js"), "../../../assets/icons/arrow-square.svg": () => import("./arrow-square-CYM9usfL.js"), "../../../assets/icons/arrow-up-right.svg": () => import("./arrow-up-right-DjQHCzy_.js"), "../../../assets/icons/border-dashed.svg": () => import("./border-dashed-B0Vn5Ams.js"), "../../../assets/icons/border-solid.svg": () => import("./border-solid-BjJ2NMUc.js"), "../../../assets/icons/cards.svg": () => import("./cards-D_Fs7yzJ.js"), "../../../assets/icons/chat.svg": () => import("./chat-BAur-Hs7.js"), "../../../assets/icons/check.svg": () => import("./check-Dw7aX1Gq.js"), "../../../assets/icons/copy.svg": () => import("./copy-B-BFBPCj.js"), "../../../assets/icons/corners-out.svg": () => import("./corners-out-DoBj8RP9.js"), "../../../assets/icons/desktop.svg": () => import("./desktop-BtX370Ww.js"), "../../../assets/icons/drag.svg": () => import("./drag-BmBJI4g2.js"), "../../../assets/icons/faqs.svg": () => import("./faqs-23Fq6osg.js"), "../../../assets/icons/file.svg": () => import("./file-DyR17xsF.js"), "../../../assets/icons/font.svg": () => import("./font-7p9R-iSH.js"), "../../../assets/icons/globe.svg": () => import("./globe--VWAXBWp.js"), "../../../assets/icons/heading.svg": () => import("./heading-CBG3k-8U.js"), "../../../assets/icons/house.svg": () => import("./house-WXuqDQYP.js"), "../../../assets/icons/image.svg": () => import("./image-CASDWdgb.js"), "../../../assets/icons/info-circle.svg": () => import("./info-circle-eJbOZlg5.js"), "../../../assets/icons/layers.svg": () => import("./layers-Cjkf4Ywz.js"), "../../../assets/icons/lock.svg": () => import("./lock-CjdyZZ0l.js"), "../../../assets/icons/mobile.svg": () => import("./mobile-CmqAt_Mz.js"), "../../../assets/icons/paint.svg": () => import("./paint-BZpZzEUU.js"), "../../../assets/icons/palette.svg": () => import("./palette-C8JiqbcX.js"), "../../../assets/icons/paragraph.svg": () => import("./paragraph-LWVXCR4R.js"), "../../../assets/icons/plus.svg": () => import("./plus-BJbR8W_G.js"), "../../../assets/icons/radius.svg": () => import("./radius-CxeWfnVG.js"), "../../../assets/icons/redo.svg": () => import("./redo-CGWptNGF.js"), "../../../assets/icons/search.svg": () => import("./search-DyJEj9C0.js"), "../../../assets/icons/settings.svg": () => import("./settings-B3DU_KZp.js"), "../../../assets/icons/sign-out.svg": () => import("./sign-out-C7IDLqPn.js"), "../../../assets/icons/sliders.svg": () => import("./sliders-BOds2ujo.js"), "../../../assets/icons/squares.svg": () => import("./squares-D_Q5KrSa.js"), "../../../assets/icons/star.svg": () => import("./star-DmVJ8LCU.js"), "../../../assets/icons/tablet.svg": () => import("./tablet-DjgFAzpj.js"), "../../../assets/icons/text-align-left.svg": () => import("./text-align-left-BBdqQ7N2.js"), "../../../assets/icons/text-bold.svg": () => import("./text-bold-CkfsPLSD.js"), "../../../assets/icons/text-code.svg": () => import("./text-code-Omig8KTZ.js"), "../../../assets/icons/text-italic.svg": () => import("./text-italic-B6DlWITY.js"), "../../../assets/icons/text-strike-through.svg": () => import("./text-strike-through-BPd9vRCE.js"), "../../../assets/icons/text-underline.svg": () => import("./text-underline-BMJdubuO.js"), "../../../assets/icons/textbox.svg": () => import("./textbox-VoZOnoQo.js"), "../../../assets/icons/thickness.svg": () => import("./thickness-8ZhgPpus.js"), "../../../assets/icons/ticket.svg": () => import("./ticket-Cp2gw7LG.js"), "../../../assets/icons/trash.svg": () => import("./trash-C46P9ylt.js"), "../../../assets/icons/undo.svg": () => import("./undo-DQ4HRzFE.js"), "../../../assets/icons/user-circle-gear.svg": () => import("./user-circle-gear-GplwFHx0.js"), "../../../assets/icons/x.svg": () => import("./x-Dwea3dAc.js"), "../../../assets/icons/zoom-minus.svg": () => import("./zoom-minus-DlvFV6xy.js") }), `../../../assets/icons/${t}.svg`, 6);
1442
+ l(() => h);
1443
+ } catch {
1444
+ console.error(`Icon "${t}" not found in assets.`), l(null);
1445
+ }
1446
+ })();
1447
+ }, [t]), f ? /* @__PURE__ */ m.jsx(
1448
+ f,
1449
+ {
1450
+ fill: n,
1451
+ style: {
1452
+ "--icon-fill": n
1453
+ },
1454
+ className: J(Yt.icon, o, {
1455
+ [Yt.hoverable]: r
1456
+ }),
1457
+ onClick: s,
1458
+ width: i || "24",
1459
+ height: c || "24"
1460
+ }
1461
+ ) : null;
1462
+ }, Nr = "_button_rcjso_1", Br = {
1463
+ button: Nr
1464
+ }, Gt = (e) => {
1465
+ const { children: t, onClick: n, style: r, className: s, disabled: o = !1, size: i = "m" } = e;
1466
+ return /* @__PURE__ */ m.jsx(
1467
+ "button",
1468
+ {
1469
+ className: J(Br.button, s),
1470
+ onClick: n,
1471
+ style: {
1472
+ ...r,
1473
+ fontSize: i === "m" ? 14 : i === "s" ? 12 : 16
1474
+ },
1475
+ disabled: o,
1476
+ children: t
1477
+ }
1478
+ );
1479
+ }, Fr = "_wrapper_1y283_1", Ir = "_label_1y283_9", Dr = "_input_1y283_17", Lr = "_required_1y283_36", Ur = "_paddingless_1y283_40", we = {
1480
+ wrapper: Fr,
1481
+ label: Ir,
1482
+ input: Dr,
1483
+ required: Lr,
1484
+ paddingless: Ur
1485
+ }, ea = (e) => {
1486
+ const {
1487
+ onChange: t,
1488
+ label: n,
1489
+ value: r,
1490
+ type: s,
1491
+ min: o,
1492
+ placeholder: i,
1493
+ disabled: c = !1,
1494
+ required: f = !1,
1495
+ regex: l,
1496
+ paddingless: u = !1
1497
+ } = e, [h, w] = I.useState(!1);
1498
+ function x(g) {
1499
+ return Number(g) < 0 ? "0" : g;
1500
+ }
1501
+ function b(g) {
1502
+ return !f || !l ? !0 : new RegExp(l).test(g);
1503
+ }
1504
+ return /* @__PURE__ */ m.jsxs("div", { className: we.wrapper, children: [
1505
+ n && /* @__PURE__ */ m.jsx(
1506
+ "label",
1507
+ {
1508
+ className: we.label,
1509
+ htmlFor: n,
1510
+ children: n
1511
+ }
1512
+ ),
1513
+ /* @__PURE__ */ m.jsx(
1514
+ "input",
1515
+ {
1516
+ id: n,
1517
+ type: s || "text",
1518
+ onChange: (g) => {
1519
+ if (s === "text") t(g.target.value);
1520
+ else {
1521
+ const v = x(g.target.value);
1522
+ t(v);
1523
+ }
1524
+ },
1525
+ value: r,
1526
+ autoComplete: "off",
1527
+ placeholder: i,
1528
+ className: J(we.input, {
1529
+ [we.required]: h && f && !b(r),
1530
+ [we.paddingless]: u
1531
+ }),
1532
+ min: s === "number" ? o : void 0,
1533
+ disabled: c,
1534
+ onFocus: () => w(!0)
1535
+ }
1536
+ )
1537
+ ] });
1538
+ }, qr = "_wrapper_dmzhr_1", Mr = "_label_dmzhr_9", $r = "_select_dmzhr_17", Hr = "_icon_dmzhr_30", zr = "_rotate_dmzhr_34", Vr = "_content_dmzhr_38", Wr = "_options_dmzhr_42", Jr = "_option_dmzhr_42", te = {
1539
+ wrapper: qr,
1540
+ label: Mr,
1541
+ select: $r,
1542
+ icon: Hr,
1543
+ rotate: zr,
1544
+ content: Vr,
1545
+ options: Wr,
1546
+ option: Jr
1547
+ }, ta = (e) => {
1548
+ const { leftAddon: t, onChange: n, label: r, value: s, options: o, style: i } = e, [c, f] = I.useState(!1);
1549
+ function l(u) {
1550
+ n(u), f(!1);
1551
+ }
1552
+ return I.useEffect(() => {
1553
+ const u = () => {
1554
+ f(!1);
1555
+ };
1556
+ return u(), document.body.addEventListener("click", u), () => {
1557
+ document.body.removeEventListener("click", u);
1558
+ };
1559
+ }, []), /* @__PURE__ */ m.jsxs(
1560
+ "div",
1561
+ {
1562
+ className: te.wrapper,
1563
+ style: { ...i },
1564
+ children: [
1565
+ r && /* @__PURE__ */ m.jsx(
1566
+ "label",
1567
+ {
1568
+ className: te.label,
1569
+ htmlFor: r,
1570
+ children: r
1571
+ }
1572
+ ),
1573
+ /* @__PURE__ */ m.jsxs(
1574
+ "div",
1575
+ {
1576
+ className: te.content,
1577
+ onClick: (u) => u.stopPropagation(),
1578
+ children: [
1579
+ /* @__PURE__ */ m.jsxs(
1580
+ "div",
1581
+ {
1582
+ className: te.select,
1583
+ onClick: () => f((u) => !u),
1584
+ children: [
1585
+ t,
1586
+ /* @__PURE__ */ m.jsx("span", { children: s }),
1587
+ /* @__PURE__ */ m.jsx(
1588
+ re,
1589
+ {
1590
+ name: "arrow-down",
1591
+ className: J(te.icon, {
1592
+ [te.rotate]: c
1593
+ })
1594
+ }
1595
+ )
1596
+ ]
1597
+ }
1598
+ ),
1599
+ c && /* @__PURE__ */ m.jsx(
1600
+ "div",
1601
+ {
1602
+ className: te.options,
1603
+ onClick: () => f(!1),
1604
+ children: o.filter((u) => u !== s).map((u) => /* @__PURE__ */ m.jsx(
1605
+ "div",
1606
+ {
1607
+ className: te.option,
1608
+ onClick: () => l(u),
1609
+ children: u
1610
+ },
1611
+ u
1612
+ ))
1613
+ }
1614
+ )
1615
+ ]
1616
+ }
1617
+ )
1618
+ ]
1619
+ }
1620
+ );
1621
+ }, Kr = "_wrapper_3w2ni_1", Yr = "_active_3w2ni_24", Gr = "_toggle_3w2ni_27", Xr = "_background_3w2ni_39", Zr = "_padding_3w2ni_43", Q = {
1622
+ wrapper: Kr,
1623
+ switch: "_switch_3w2ni_13",
1624
+ active: Yr,
1625
+ toggle: Gr,
1626
+ background: Xr,
1627
+ padding: Zr
1628
+ }, na = (e) => {
1629
+ const { onChange: t, style: n, current: r, label: s, hasBackground: o = !1, paddingless: i = !0 } = e, [c, f] = I.useState(r), l = () => {
1630
+ f((u) => !u), t == null || t(!c);
1631
+ };
1632
+ return /* @__PURE__ */ m.jsx(m.Fragment, { children: s ? /* @__PURE__ */ m.jsxs(
1633
+ "div",
1634
+ {
1635
+ className: J(Q.wrapper, {
1636
+ [Q.background]: o,
1637
+ [Q.padding]: !i
1638
+ }),
1639
+ children: [
1640
+ /* @__PURE__ */ m.jsx(
1641
+ "div",
1642
+ {
1643
+ className: J(Q.switch, {
1644
+ [Q.active]: c
1645
+ }),
1646
+ onClick: l,
1647
+ style: n,
1648
+ children: /* @__PURE__ */ m.jsx("div", { className: Q.toggle })
1649
+ }
1650
+ ),
1651
+ /* @__PURE__ */ m.jsx("span", { className: Q.value, children: s })
1652
+ ]
1653
+ }
1654
+ ) : /* @__PURE__ */ m.jsx(
1655
+ "div",
1656
+ {
1657
+ className: J(Q.switch, {
1658
+ [Q.active]: c
1659
+ }),
1660
+ onClick: l,
1661
+ style: n,
1662
+ children: /* @__PURE__ */ m.jsx("div", { className: Q.toggle })
1663
+ }
1664
+ ) });
1665
+ }, Qr = "_wrapper_1inu5_1", es = {
1666
+ wrapper: Qr
1667
+ }, ra = ({ children: e }) => {
1668
+ const { hoverBlockId: t, startHideTimeout: n, clearHideTimeout: r, setMouseOverModal: s } = Cr();
1669
+ return t ? /* @__PURE__ */ m.jsx(
1670
+ "div",
1671
+ {
1672
+ className: es.wrapper,
1673
+ onMouseEnter: () => {
1674
+ r(), s(!0);
1675
+ },
1676
+ onMouseLeave: () => {
1677
+ s(!1), n();
1678
+ },
1679
+ children: e
1680
+ }
1681
+ ) : null;
1682
+ }, ts = "_blocks_1op3c_1", ns = "_block_1op3c_1", rs = "_active_1op3c_18", tt = {
1683
+ blocks: ts,
1684
+ block: ns,
1685
+ active: rs
1686
+ }, sa = (e) => {
1687
+ const { items: t, selectedItem: n, onSelect: r, getIconName: s } = e;
1688
+ return /* @__PURE__ */ m.jsx("div", { className: tt.blocks, children: t.map((o) => /* @__PURE__ */ m.jsx(
1689
+ "div",
1690
+ {
1691
+ className: J(tt.block, { [tt.active]: n === o }),
1692
+ onClick: () => r(o),
1693
+ children: /* @__PURE__ */ m.jsx(
1694
+ re,
1695
+ {
1696
+ name: s(o),
1697
+ fill: n === o ? "#252525" : "#757575"
1698
+ }
1699
+ )
1700
+ },
1701
+ String(o)
1702
+ )) });
1703
+ }, ss = "_applyButton_1cqw4_2", os = "_cancelButton_1cqw4_7", is = "_content_1cqw4_12", as = "_label_1cqw4_18", cs = "_colorValue_1cqw4_30", ls = "_modal_1cqw4_37", us = "_colorMap_1cqw4_56", ds = "_indicator_1cqw4_64", fs = "_hueSlider_1cqw4_73", ps = "_slider_1cqw4_102", hs = "_buttons_1cqw4_107", ms = "_name_1cqw4_113", gs = "_secondary_1cqw4_118", bs = "_input_1cqw4_126", pe = {
1704
+ applyButton: ss,
1705
+ cancelButton: os,
1706
+ content: is,
1707
+ label: as,
1708
+ colorValue: cs,
1709
+ modal: ls,
1710
+ colorMap: us,
1711
+ indicator: ds,
1712
+ hueSlider: fs,
1713
+ slider: ps,
1714
+ buttons: hs,
1715
+ name: ms,
1716
+ secondary: gs,
1717
+ input: bs
1718
+ }, oa = (e) => {
1719
+ const { initialColor: t, onChange: n, title: r, labelStyle: s = "primary" } = e, [o, i] = I.useState(t), {
1720
+ setActiveLabel: c,
1721
+ setModalPosition: f,
1722
+ setInitialColor: l,
1723
+ setShowModal: u,
1724
+ setUpdate: h,
1725
+ setColor: w,
1726
+ setColorChange: x,
1727
+ colorChange: b
1728
+ } = Or();
1729
+ I.useEffect(() => {
1730
+ const v = () => {
1731
+ u(!1), c(null), l(t), h(() => {
1732
+ }), w(t), x(() => {
1733
+ });
1734
+ };
1735
+ return document.body.addEventListener("click", v), () => {
1736
+ document.body.removeEventListener("click", v);
1737
+ };
1738
+ }, []);
1739
+ const g = (v) => {
1740
+ v.stopPropagation(), u(!0), x(i), h(n), l(t), w(o);
1741
+ const S = v.currentTarget.getBoundingClientRect(), _ = 400, C = 288, D = 10, B = 20, q = window.innerHeight - S.bottom, K = S.top, ee = window.innerWidth - S.right, se = S.left;
1742
+ let G, X;
1743
+ G = S.bottom + D + window.scrollY, X = S.left, (q < _ || q < B) && (K >= _ ? G = S.top - _ - D + window.scrollY : G = window.scrollY + (window.innerHeight - _) / 2), ee < C && (se >= C ? X = S.right - C : X = (window.innerWidth - C) / 2), X < S.right && X + C > S.left && G < S.bottom && G + _ > S.top && (ee >= C ? X = S.right + D + 100 : q >= _ ? G = S.bottom + D + window.scrollY : (G = window.scrollY + (window.innerHeight - _) / 2, X = (window.innerWidth - C) / 2)), f({
1744
+ top: G,
1745
+ left: X
1746
+ });
1747
+ };
1748
+ return /* @__PURE__ */ m.jsxs("div", { className: pe.content, children: [
1749
+ /* @__PURE__ */ m.jsx(
1750
+ "span",
1751
+ {
1752
+ className: J(pe.name, {
1753
+ [pe.secondary]: s === "secondary"
1754
+ }),
1755
+ children: r
1756
+ }
1757
+ ),
1758
+ /* @__PURE__ */ m.jsxs(
1759
+ "label",
1760
+ {
1761
+ htmlFor: "color",
1762
+ className: pe.label,
1763
+ children: [
1764
+ /* @__PURE__ */ m.jsx(
1765
+ "div",
1766
+ {
1767
+ className: pe.colorValue,
1768
+ style: {
1769
+ background: o
1770
+ },
1771
+ onClick: g
1772
+ }
1773
+ ),
1774
+ /* @__PURE__ */ m.jsx(
1775
+ "input",
1776
+ {
1777
+ type: "text",
1778
+ defaultValue: o,
1779
+ value: o,
1780
+ onChange: (v) => {
1781
+ const S = v.target.value;
1782
+ n(S), w(S), i(S), b(S);
1783
+ },
1784
+ className: pe.input
1785
+ }
1786
+ )
1787
+ ]
1788
+ }
1789
+ )
1790
+ ] });
1791
+ }, vs = "_modal_1qb2a_1", ys = {
1792
+ modal: vs
1793
+ }, ia = (e) => {
1794
+ const { close: t, children: n } = e;
1795
+ return I.useEffect(() => {
1796
+ const r = () => {
1797
+ t(!1);
1798
+ };
1799
+ return document.body.addEventListener("click", r), () => {
1800
+ document.body.removeEventListener("click", r);
1801
+ };
1802
+ }, []), /* @__PURE__ */ m.jsx("div", { className: ys.modal, children: n });
1803
+ }, _s = "_wrapper_1qvfi_1", ws = "_label_1qvfi_10", Ss = "_textarea_1qvfi_18", xs = "_length_1qvfi_33", Ae = {
1804
+ wrapper: _s,
1805
+ label: ws,
1806
+ textarea: Ss,
1807
+ length: xs
1808
+ }, aa = (e) => {
1809
+ const { onChange: t, label: n, value: r, maxLength: s, placeholder: o } = e, [i, c] = I.useState(r.length);
1810
+ return /* @__PURE__ */ m.jsxs("div", { className: Ae.wrapper, children: [
1811
+ n && /* @__PURE__ */ m.jsx(
1812
+ "label",
1813
+ {
1814
+ className: Ae.label,
1815
+ htmlFor: n,
1816
+ children: n
1817
+ }
1818
+ ),
1819
+ /* @__PURE__ */ m.jsx(
1820
+ "textarea",
1821
+ {
1822
+ id: n,
1823
+ defaultValue: r,
1824
+ onChange: (f) => {
1825
+ c(f.target.value.length), t(f.target.value);
1826
+ },
1827
+ placeholder: o,
1828
+ className: Ae.textarea,
1829
+ maxLength: s
1830
+ }
1831
+ ),
1832
+ s && /* @__PURE__ */ m.jsxs("div", { className: Ae.length, children: [
1833
+ i,
1834
+ "/",
1835
+ s
1836
+ ] })
1837
+ ] });
1838
+ }, Es = "_wrapper_1fcne_2", Rs = "_label_1fcne_10", ks = "_options_1fcne_18", Cs = "_radioLabel_1fcne_23", Os = "_radio_1fcne_23", Ts = "_custom_1fcne_36", js = "_option_1fcne_18", ae = {
1839
+ wrapper: Es,
1840
+ label: Rs,
1841
+ options: ks,
1842
+ radioLabel: Cs,
1843
+ radio: Os,
1844
+ custom: Ts,
1845
+ option: js
1846
+ }, ca = (e) => {
1847
+ const { defaultValue: t, options: n, onChange: r, label: s } = e, [o, i] = I.useState(t), c = (f) => {
1848
+ const l = f.target.value;
1849
+ i(l), r(l);
1850
+ };
1851
+ return /* @__PURE__ */ m.jsxs("div", { className: ae.wrapper, children: [
1852
+ /* @__PURE__ */ m.jsx("span", { className: ae.label, children: s }),
1853
+ /* @__PURE__ */ m.jsx("div", { className: ae.options, children: n.map((f) => /* @__PURE__ */ m.jsxs(
1854
+ "label",
1855
+ {
1856
+ className: ae.radioLabel,
1857
+ children: [
1858
+ /* @__PURE__ */ m.jsx(
1859
+ "input",
1860
+ {
1861
+ type: "radio",
1862
+ value: f.value,
1863
+ checked: o === f.value,
1864
+ onChange: c,
1865
+ className: ae.radio
1866
+ }
1867
+ ),
1868
+ /* @__PURE__ */ m.jsx("span", { className: ae.custom }),
1869
+ /* @__PURE__ */ m.jsx("span", { className: ae.option, children: f.label })
1870
+ ]
1871
+ },
1872
+ f.value
1873
+ )) })
1874
+ ] });
1875
+ }, Ps = "_tip_pl6k0_1", As = "_text_pl6k0_9", Ns = "_warning_pl6k0_15", Bs = "_error_pl6k0_20", Fs = "_hide_pl6k0_25", Se = {
1876
+ tip: Ps,
1877
+ text: As,
1878
+ warning: Ns,
1879
+ error: Bs,
1880
+ hide: Fs
1881
+ }, la = (e) => {
1882
+ const { type: t, message: n, style: r } = e, [s, o] = I.useState(!1);
1883
+ return /* @__PURE__ */ m.jsxs(
1884
+ "div",
1885
+ {
1886
+ className: J(Se.tip, {
1887
+ [Se.warning]: t === "warning",
1888
+ [Se.error]: t === "error",
1889
+ [Se.hide]: s
1890
+ }),
1891
+ style: r,
1892
+ children: [
1893
+ /* @__PURE__ */ m.jsx("div", { children: /* @__PURE__ */ m.jsx(
1894
+ re,
1895
+ {
1896
+ name: "info-circle",
1897
+ fill: t === "warning" ? "#C1972A" : "#FF3F19",
1898
+ width: 20,
1899
+ height: 20
1900
+ }
1901
+ ) }),
1902
+ /* @__PURE__ */ m.jsx("div", { className: Se.text, children: n }),
1903
+ /* @__PURE__ */ m.jsx("div", { children: /* @__PURE__ */ m.jsx(
1904
+ re,
1905
+ {
1906
+ name: "x",
1907
+ fill: t === "warning" ? "#C1972A" : "#FF3F19",
1908
+ width: 20,
1909
+ height: 20,
1910
+ hoverable: !0,
1911
+ onClick: () => o(!0)
1912
+ }
1913
+ ) })
1914
+ ]
1915
+ }
1916
+ );
1917
+ }, Is = "_customCheckbox_1b69m_1", Ds = "_checkboxBox_1b69m_7", Ls = "_checked_1b69m_16", Us = "_icon_1b69m_21", Ne = {
1918
+ customCheckbox: Is,
1919
+ checkboxBox: Ds,
1920
+ checked: Ls,
1921
+ icon: Us
1922
+ }, qs = (e) => {
1923
+ const { value: t, onChange: n } = e, [r, s] = fr(t), o = () => {
1924
+ s(!r), n(!r);
1925
+ };
1926
+ return /* @__PURE__ */ m.jsxs("label", { className: Ne.customCheckbox, children: [
1927
+ /* @__PURE__ */ m.jsx(
1928
+ "input",
1929
+ {
1930
+ type: "checkbox",
1931
+ checked: r,
1932
+ onChange: o,
1933
+ style: { display: "none" }
1934
+ }
1935
+ ),
1936
+ /* @__PURE__ */ m.jsx(
1937
+ "span",
1938
+ {
1939
+ className: J(Ne.checkboxBox, {
1940
+ [Ne.checked]: r
1941
+ })
1942
+ }
1943
+ ),
1944
+ r && /* @__PURE__ */ m.jsx("div", { className: Ne.icon, children: /* @__PURE__ */ m.jsx(
1945
+ re,
1946
+ {
1947
+ name: "check",
1948
+ width: 14,
1949
+ height: 14,
1950
+ fill: "#ff3f19"
1951
+ }
1952
+ ) })
1953
+ ] });
1954
+ };
1955
+ function mn(e, t) {
1956
+ return function() {
1957
+ return e.apply(t, arguments);
1958
+ };
1959
+ }
1960
+ const { toString: Ms } = Object.prototype, { getPrototypeOf: gt } = Object, Ue = /* @__PURE__ */ ((e) => (t) => {
1961
+ const n = Ms.call(t);
1962
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
1963
+ })(/* @__PURE__ */ Object.create(null)), Y = (e) => (e = e.toLowerCase(), (t) => Ue(t) === e), qe = (e) => (t) => typeof t === e, { isArray: he } = Array, Ee = qe("undefined");
1964
+ function $s(e) {
1965
+ return e !== null && !Ee(e) && e.constructor !== null && !Ee(e.constructor) && z(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1966
+ }
1967
+ const gn = Y("ArrayBuffer");
1968
+ function Hs(e) {
1969
+ let t;
1970
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && gn(e.buffer), t;
1971
+ }
1972
+ const zs = qe("string"), z = qe("function"), bn = qe("number"), Me = (e) => e !== null && typeof e == "object", Vs = (e) => e === !0 || e === !1, Be = (e) => {
1973
+ if (Ue(e) !== "object")
1974
+ return !1;
1975
+ const t = gt(e);
1976
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
1977
+ }, Ws = Y("Date"), Js = Y("File"), Ks = Y("Blob"), Ys = Y("FileList"), Gs = (e) => Me(e) && z(e.pipe), Xs = (e) => {
1978
+ let t;
1979
+ return e && (typeof FormData == "function" && e instanceof FormData || z(e.append) && ((t = Ue(e)) === "formdata" || // detect form-data instance
1980
+ t === "object" && z(e.toString) && e.toString() === "[object FormData]"));
1981
+ }, Zs = Y("URLSearchParams"), [Qs, eo, to, no] = ["ReadableStream", "Request", "Response", "Headers"].map(Y), ro = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1982
+ function Re(e, t, { allOwnKeys: n = !1 } = {}) {
1983
+ if (e === null || typeof e > "u")
1984
+ return;
1985
+ let r, s;
1986
+ if (typeof e != "object" && (e = [e]), he(e))
1987
+ for (r = 0, s = e.length; r < s; r++)
1988
+ t.call(null, e[r], r, e);
1989
+ else {
1990
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
1991
+ let c;
1992
+ for (r = 0; r < i; r++)
1993
+ c = o[r], t.call(null, e[c], c, e);
1994
+ }
1995
+ }
1996
+ function vn(e, t) {
1997
+ t = t.toLowerCase();
1998
+ const n = Object.keys(e);
1999
+ let r = n.length, s;
2000
+ for (; r-- > 0; )
2001
+ if (s = n[r], t === s.toLowerCase())
2002
+ return s;
2003
+ return null;
2004
+ }
2005
+ const ce = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, yn = (e) => !Ee(e) && e !== ce;
2006
+ function lt() {
2007
+ const { caseless: e } = yn(this) && this || {}, t = {}, n = (r, s) => {
2008
+ const o = e && vn(t, s) || s;
2009
+ Be(t[o]) && Be(r) ? t[o] = lt(t[o], r) : Be(r) ? t[o] = lt({}, r) : he(r) ? t[o] = r.slice() : t[o] = r;
2010
+ };
2011
+ for (let r = 0, s = arguments.length; r < s; r++)
2012
+ arguments[r] && Re(arguments[r], n);
2013
+ return t;
2014
+ }
2015
+ const so = (e, t, n, { allOwnKeys: r } = {}) => (Re(t, (s, o) => {
2016
+ n && z(s) ? e[o] = mn(s, n) : e[o] = s;
2017
+ }, { allOwnKeys: r }), e), oo = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), io = (e, t, n, r) => {
2018
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
2019
+ value: t.prototype
2020
+ }), n && Object.assign(e.prototype, n);
2021
+ }, ao = (e, t, n, r) => {
2022
+ let s, o, i;
2023
+ const c = {};
2024
+ if (t = t || {}, e == null) return t;
2025
+ do {
2026
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
2027
+ i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
2028
+ e = n !== !1 && gt(e);
2029
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
2030
+ return t;
2031
+ }, co = (e, t, n) => {
2032
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
2033
+ const r = e.indexOf(t, n);
2034
+ return r !== -1 && r === n;
2035
+ }, lo = (e) => {
2036
+ if (!e) return null;
2037
+ if (he(e)) return e;
2038
+ let t = e.length;
2039
+ if (!bn(t)) return null;
2040
+ const n = new Array(t);
2041
+ for (; t-- > 0; )
2042
+ n[t] = e[t];
2043
+ return n;
2044
+ }, uo = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && gt(Uint8Array)), fo = (e, t) => {
2045
+ const r = (e && e[Symbol.iterator]).call(e);
2046
+ let s;
2047
+ for (; (s = r.next()) && !s.done; ) {
2048
+ const o = s.value;
2049
+ t.call(e, o[0], o[1]);
2050
+ }
2051
+ }, po = (e, t) => {
2052
+ let n;
2053
+ const r = [];
2054
+ for (; (n = e.exec(t)) !== null; )
2055
+ r.push(n);
2056
+ return r;
2057
+ }, ho = Y("HTMLFormElement"), mo = (e) => e.toLowerCase().replace(
2058
+ /[-_\s]([a-z\d])(\w*)/g,
2059
+ function(n, r, s) {
2060
+ return r.toUpperCase() + s;
2061
+ }
2062
+ ), Xt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), go = Y("RegExp"), _n = (e, t) => {
2063
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
2064
+ Re(n, (s, o) => {
2065
+ let i;
2066
+ (i = t(s, o, e)) !== !1 && (r[o] = i || s);
2067
+ }), Object.defineProperties(e, r);
2068
+ }, bo = (e) => {
2069
+ _n(e, (t, n) => {
2070
+ if (z(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
2071
+ return !1;
2072
+ const r = e[n];
2073
+ if (z(r)) {
2074
+ if (t.enumerable = !1, "writable" in t) {
2075
+ t.writable = !1;
2076
+ return;
2077
+ }
2078
+ t.set || (t.set = () => {
2079
+ throw Error("Can not rewrite read-only method '" + n + "'");
2080
+ });
2081
+ }
2082
+ });
2083
+ }, vo = (e, t) => {
2084
+ const n = {}, r = (s) => {
2085
+ s.forEach((o) => {
2086
+ n[o] = !0;
2087
+ });
2088
+ };
2089
+ return he(e) ? r(e) : r(String(e).split(t)), n;
2090
+ }, yo = () => {
2091
+ }, _o = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, nt = "abcdefghijklmnopqrstuvwxyz", Zt = "0123456789", wn = {
2092
+ DIGIT: Zt,
2093
+ ALPHA: nt,
2094
+ ALPHA_DIGIT: nt + nt.toUpperCase() + Zt
2095
+ }, wo = (e = 16, t = wn.ALPHA_DIGIT) => {
2096
+ let n = "";
2097
+ const { length: r } = t;
2098
+ for (; e--; )
2099
+ n += t[Math.random() * r | 0];
2100
+ return n;
2101
+ };
2102
+ function So(e) {
2103
+ return !!(e && z(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
2104
+ }
2105
+ const xo = (e) => {
2106
+ const t = new Array(10), n = (r, s) => {
2107
+ if (Me(r)) {
2108
+ if (t.indexOf(r) >= 0)
2109
+ return;
2110
+ if (!("toJSON" in r)) {
2111
+ t[s] = r;
2112
+ const o = he(r) ? [] : {};
2113
+ return Re(r, (i, c) => {
2114
+ const f = n(i, s + 1);
2115
+ !Ee(f) && (o[c] = f);
2116
+ }), t[s] = void 0, o;
2117
+ }
2118
+ }
2119
+ return r;
2120
+ };
2121
+ return n(e, 0);
2122
+ }, Eo = Y("AsyncFunction"), Ro = (e) => e && (Me(e) || z(e)) && z(e.then) && z(e.catch), Sn = ((e, t) => e ? setImmediate : t ? ((n, r) => (ce.addEventListener("message", ({ source: s, data: o }) => {
2123
+ s === ce && o === n && r.length && r.shift()();
2124
+ }, !1), (s) => {
2125
+ r.push(s), ce.postMessage(n, "*");
2126
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
2127
+ typeof setImmediate == "function",
2128
+ z(ce.postMessage)
2129
+ ), ko = typeof queueMicrotask < "u" ? queueMicrotask.bind(ce) : typeof process < "u" && process.nextTick || Sn, d = {
2130
+ isArray: he,
2131
+ isArrayBuffer: gn,
2132
+ isBuffer: $s,
2133
+ isFormData: Xs,
2134
+ isArrayBufferView: Hs,
2135
+ isString: zs,
2136
+ isNumber: bn,
2137
+ isBoolean: Vs,
2138
+ isObject: Me,
2139
+ isPlainObject: Be,
2140
+ isReadableStream: Qs,
2141
+ isRequest: eo,
2142
+ isResponse: to,
2143
+ isHeaders: no,
2144
+ isUndefined: Ee,
2145
+ isDate: Ws,
2146
+ isFile: Js,
2147
+ isBlob: Ks,
2148
+ isRegExp: go,
2149
+ isFunction: z,
2150
+ isStream: Gs,
2151
+ isURLSearchParams: Zs,
2152
+ isTypedArray: uo,
2153
+ isFileList: Ys,
2154
+ forEach: Re,
2155
+ merge: lt,
2156
+ extend: so,
2157
+ trim: ro,
2158
+ stripBOM: oo,
2159
+ inherits: io,
2160
+ toFlatObject: ao,
2161
+ kindOf: Ue,
2162
+ kindOfTest: Y,
2163
+ endsWith: co,
2164
+ toArray: lo,
2165
+ forEachEntry: fo,
2166
+ matchAll: po,
2167
+ isHTMLForm: ho,
2168
+ hasOwnProperty: Xt,
2169
+ hasOwnProp: Xt,
2170
+ // an alias to avoid ESLint no-prototype-builtins detection
2171
+ reduceDescriptors: _n,
2172
+ freezeMethods: bo,
2173
+ toObjectSet: vo,
2174
+ toCamelCase: mo,
2175
+ noop: yo,
2176
+ toFiniteNumber: _o,
2177
+ findKey: vn,
2178
+ global: ce,
2179
+ isContextDefined: yn,
2180
+ ALPHABET: wn,
2181
+ generateString: wo,
2182
+ isSpecCompliantForm: So,
2183
+ toJSONObject: xo,
2184
+ isAsyncFn: Eo,
2185
+ isThenable: Ro,
2186
+ setImmediate: Sn,
2187
+ asap: ko
2188
+ };
2189
+ function R(e, t, n, r, s) {
2190
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
2191
+ }
2192
+ d.inherits(R, Error, {
2193
+ toJSON: function() {
2194
+ return {
2195
+ // Standard
2196
+ message: this.message,
2197
+ name: this.name,
2198
+ // Microsoft
2199
+ description: this.description,
2200
+ number: this.number,
2201
+ // Mozilla
2202
+ fileName: this.fileName,
2203
+ lineNumber: this.lineNumber,
2204
+ columnNumber: this.columnNumber,
2205
+ stack: this.stack,
2206
+ // Axios
2207
+ config: d.toJSONObject(this.config),
2208
+ code: this.code,
2209
+ status: this.status
2210
+ };
2211
+ }
2212
+ });
2213
+ const xn = R.prototype, En = {};
2214
+ [
2215
+ "ERR_BAD_OPTION_VALUE",
2216
+ "ERR_BAD_OPTION",
2217
+ "ECONNABORTED",
2218
+ "ETIMEDOUT",
2219
+ "ERR_NETWORK",
2220
+ "ERR_FR_TOO_MANY_REDIRECTS",
2221
+ "ERR_DEPRECATED",
2222
+ "ERR_BAD_RESPONSE",
2223
+ "ERR_BAD_REQUEST",
2224
+ "ERR_CANCELED",
2225
+ "ERR_NOT_SUPPORT",
2226
+ "ERR_INVALID_URL"
2227
+ // eslint-disable-next-line func-names
2228
+ ].forEach((e) => {
2229
+ En[e] = { value: e };
2230
+ });
2231
+ Object.defineProperties(R, En);
2232
+ Object.defineProperty(xn, "isAxiosError", { value: !0 });
2233
+ R.from = (e, t, n, r, s, o) => {
2234
+ const i = Object.create(xn);
2235
+ return d.toFlatObject(e, i, function(f) {
2236
+ return f !== Error.prototype;
2237
+ }, (c) => c !== "isAxiosError"), R.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
2238
+ };
2239
+ const Co = null;
2240
+ function ut(e) {
2241
+ return d.isPlainObject(e) || d.isArray(e);
2242
+ }
2243
+ function Rn(e) {
2244
+ return d.endsWith(e, "[]") ? e.slice(0, -2) : e;
2245
+ }
2246
+ function Qt(e, t, n) {
2247
+ return e ? e.concat(t).map(function(s, o) {
2248
+ return s = Rn(s), !n && o ? "[" + s + "]" : s;
2249
+ }).join(n ? "." : "") : t;
2250
+ }
2251
+ function Oo(e) {
2252
+ return d.isArray(e) && !e.some(ut);
2253
+ }
2254
+ const To = d.toFlatObject(d, {}, null, function(t) {
2255
+ return /^is[A-Z]/.test(t);
2256
+ });
2257
+ function $e(e, t, n) {
2258
+ if (!d.isObject(e))
2259
+ throw new TypeError("target must be an object");
2260
+ t = t || new FormData(), n = d.toFlatObject(n, {
2261
+ metaTokens: !0,
2262
+ dots: !1,
2263
+ indexes: !1
2264
+ }, !1, function(g, v) {
2265
+ return !d.isUndefined(v[g]);
2266
+ });
2267
+ const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(t);
2268
+ if (!d.isFunction(s))
2269
+ throw new TypeError("visitor must be a function");
2270
+ function l(b) {
2271
+ if (b === null) return "";
2272
+ if (d.isDate(b))
2273
+ return b.toISOString();
2274
+ if (!f && d.isBlob(b))
2275
+ throw new R("Blob is not supported. Use a Buffer instead.");
2276
+ return d.isArrayBuffer(b) || d.isTypedArray(b) ? f && typeof Blob == "function" ? new Blob([b]) : Buffer.from(b) : b;
2277
+ }
2278
+ function u(b, g, v) {
2279
+ let S = b;
2280
+ if (b && !v && typeof b == "object") {
2281
+ if (d.endsWith(g, "{}"))
2282
+ g = r ? g : g.slice(0, -2), b = JSON.stringify(b);
2283
+ else if (d.isArray(b) && Oo(b) || (d.isFileList(b) || d.endsWith(g, "[]")) && (S = d.toArray(b)))
2284
+ return g = Rn(g), S.forEach(function(C, D) {
2285
+ !(d.isUndefined(C) || C === null) && t.append(
2286
+ // eslint-disable-next-line no-nested-ternary
2287
+ i === !0 ? Qt([g], D, o) : i === null ? g : g + "[]",
2288
+ l(C)
2289
+ );
2290
+ }), !1;
2291
+ }
2292
+ return ut(b) ? !0 : (t.append(Qt(v, g, o), l(b)), !1);
2293
+ }
2294
+ const h = [], w = Object.assign(To, {
2295
+ defaultVisitor: u,
2296
+ convertValue: l,
2297
+ isVisitable: ut
2298
+ });
2299
+ function x(b, g) {
2300
+ if (!d.isUndefined(b)) {
2301
+ if (h.indexOf(b) !== -1)
2302
+ throw Error("Circular reference detected in " + g.join("."));
2303
+ h.push(b), d.forEach(b, function(S, _) {
2304
+ (!(d.isUndefined(S) || S === null) && s.call(
2305
+ t,
2306
+ S,
2307
+ d.isString(_) ? _.trim() : _,
2308
+ g,
2309
+ w
2310
+ )) === !0 && x(S, g ? g.concat(_) : [_]);
2311
+ }), h.pop();
2312
+ }
2313
+ }
2314
+ if (!d.isObject(e))
2315
+ throw new TypeError("data must be an object");
2316
+ return x(e), t;
2317
+ }
2318
+ function en(e) {
2319
+ const t = {
2320
+ "!": "%21",
2321
+ "'": "%27",
2322
+ "(": "%28",
2323
+ ")": "%29",
2324
+ "~": "%7E",
2325
+ "%20": "+",
2326
+ "%00": "\0"
2327
+ };
2328
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
2329
+ return t[r];
2330
+ });
2331
+ }
2332
+ function bt(e, t) {
2333
+ this._pairs = [], e && $e(e, this, t);
2334
+ }
2335
+ const kn = bt.prototype;
2336
+ kn.append = function(t, n) {
2337
+ this._pairs.push([t, n]);
2338
+ };
2339
+ kn.toString = function(t) {
2340
+ const n = t ? function(r) {
2341
+ return t.call(this, r, en);
2342
+ } : en;
2343
+ return this._pairs.map(function(s) {
2344
+ return n(s[0]) + "=" + n(s[1]);
2345
+ }, "").join("&");
2346
+ };
2347
+ function jo(e) {
2348
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
2349
+ }
2350
+ function Cn(e, t, n) {
2351
+ if (!t)
2352
+ return e;
2353
+ const r = n && n.encode || jo, s = n && n.serialize;
2354
+ let o;
2355
+ if (s ? o = s(t, n) : o = d.isURLSearchParams(t) ? t.toString() : new bt(t, n).toString(r), o) {
2356
+ const i = e.indexOf("#");
2357
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
2358
+ }
2359
+ return e;
2360
+ }
2361
+ class tn {
2362
+ constructor() {
2363
+ this.handlers = [];
2364
+ }
2365
+ /**
2366
+ * Add a new interceptor to the stack
2367
+ *
2368
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
2369
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
2370
+ *
2371
+ * @return {Number} An ID used to remove interceptor later
2372
+ */
2373
+ use(t, n, r) {
2374
+ return this.handlers.push({
2375
+ fulfilled: t,
2376
+ rejected: n,
2377
+ synchronous: r ? r.synchronous : !1,
2378
+ runWhen: r ? r.runWhen : null
2379
+ }), this.handlers.length - 1;
2380
+ }
2381
+ /**
2382
+ * Remove an interceptor from the stack
2383
+ *
2384
+ * @param {Number} id The ID that was returned by `use`
2385
+ *
2386
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
2387
+ */
2388
+ eject(t) {
2389
+ this.handlers[t] && (this.handlers[t] = null);
2390
+ }
2391
+ /**
2392
+ * Clear all interceptors from the stack
2393
+ *
2394
+ * @returns {void}
2395
+ */
2396
+ clear() {
2397
+ this.handlers && (this.handlers = []);
2398
+ }
2399
+ /**
2400
+ * Iterate over all the registered interceptors
2401
+ *
2402
+ * This method is particularly useful for skipping over any
2403
+ * interceptors that may have become `null` calling `eject`.
2404
+ *
2405
+ * @param {Function} fn The function to call for each interceptor
2406
+ *
2407
+ * @returns {void}
2408
+ */
2409
+ forEach(t) {
2410
+ d.forEach(this.handlers, function(r) {
2411
+ r !== null && t(r);
2412
+ });
2413
+ }
2414
+ }
2415
+ const On = {
2416
+ silentJSONParsing: !0,
2417
+ forcedJSONParsing: !0,
2418
+ clarifyTimeoutError: !1
2419
+ }, Po = typeof URLSearchParams < "u" ? URLSearchParams : bt, Ao = typeof FormData < "u" ? FormData : null, No = typeof Blob < "u" ? Blob : null, Bo = {
2420
+ isBrowser: !0,
2421
+ classes: {
2422
+ URLSearchParams: Po,
2423
+ FormData: Ao,
2424
+ Blob: No
2425
+ },
2426
+ protocols: ["http", "https", "file", "blob", "url", "data"]
2427
+ }, vt = typeof window < "u" && typeof document < "u", dt = typeof navigator == "object" && navigator || void 0, Fo = vt && (!dt || ["ReactNative", "NativeScript", "NS"].indexOf(dt.product) < 0), Io = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
2428
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Do = vt && window.location.href || "http://localhost", Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2429
+ __proto__: null,
2430
+ hasBrowserEnv: vt,
2431
+ hasStandardBrowserEnv: Fo,
2432
+ hasStandardBrowserWebWorkerEnv: Io,
2433
+ navigator: dt,
2434
+ origin: Do
2435
+ }, Symbol.toStringTag, { value: "Module" })), $ = {
2436
+ ...Lo,
2437
+ ...Bo
2438
+ };
2439
+ function Uo(e, t) {
2440
+ return $e(e, new $.classes.URLSearchParams(), Object.assign({
2441
+ visitor: function(n, r, s, o) {
2442
+ return $.isNode && d.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
2443
+ }
2444
+ }, t));
2445
+ }
2446
+ function qo(e) {
2447
+ return d.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
2448
+ }
2449
+ function Mo(e) {
2450
+ const t = {}, n = Object.keys(e);
2451
+ let r;
2452
+ const s = n.length;
2453
+ let o;
2454
+ for (r = 0; r < s; r++)
2455
+ o = n[r], t[o] = e[o];
2456
+ return t;
2457
+ }
2458
+ function Tn(e) {
2459
+ function t(n, r, s, o) {
2460
+ let i = n[o++];
2461
+ if (i === "__proto__") return !0;
2462
+ const c = Number.isFinite(+i), f = o >= n.length;
2463
+ return i = !i && d.isArray(s) ? s.length : i, f ? (d.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !d.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && d.isArray(s[i]) && (s[i] = Mo(s[i])), !c);
2464
+ }
2465
+ if (d.isFormData(e) && d.isFunction(e.entries)) {
2466
+ const n = {};
2467
+ return d.forEachEntry(e, (r, s) => {
2468
+ t(qo(r), s, n, 0);
2469
+ }), n;
2470
+ }
2471
+ return null;
2472
+ }
2473
+ function $o(e, t, n) {
2474
+ if (d.isString(e))
2475
+ try {
2476
+ return (t || JSON.parse)(e), d.trim(e);
2477
+ } catch (r) {
2478
+ if (r.name !== "SyntaxError")
2479
+ throw r;
2480
+ }
2481
+ return (0, JSON.stringify)(e);
2482
+ }
2483
+ const ke = {
2484
+ transitional: On,
2485
+ adapter: ["xhr", "http", "fetch"],
2486
+ transformRequest: [function(t, n) {
2487
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = d.isObject(t);
2488
+ if (o && d.isHTMLForm(t) && (t = new FormData(t)), d.isFormData(t))
2489
+ return s ? JSON.stringify(Tn(t)) : t;
2490
+ if (d.isArrayBuffer(t) || d.isBuffer(t) || d.isStream(t) || d.isFile(t) || d.isBlob(t) || d.isReadableStream(t))
2491
+ return t;
2492
+ if (d.isArrayBufferView(t))
2493
+ return t.buffer;
2494
+ if (d.isURLSearchParams(t))
2495
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
2496
+ let c;
2497
+ if (o) {
2498
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
2499
+ return Uo(t, this.formSerializer).toString();
2500
+ if ((c = d.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
2501
+ const f = this.env && this.env.FormData;
2502
+ return $e(
2503
+ c ? { "files[]": t } : t,
2504
+ f && new f(),
2505
+ this.formSerializer
2506
+ );
2507
+ }
2508
+ }
2509
+ return o || s ? (n.setContentType("application/json", !1), $o(t)) : t;
2510
+ }],
2511
+ transformResponse: [function(t) {
2512
+ const n = this.transitional || ke.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
2513
+ if (d.isResponse(t) || d.isReadableStream(t))
2514
+ return t;
2515
+ if (t && d.isString(t) && (r && !this.responseType || s)) {
2516
+ const i = !(n && n.silentJSONParsing) && s;
2517
+ try {
2518
+ return JSON.parse(t);
2519
+ } catch (c) {
2520
+ if (i)
2521
+ throw c.name === "SyntaxError" ? R.from(c, R.ERR_BAD_RESPONSE, this, null, this.response) : c;
2522
+ }
2523
+ }
2524
+ return t;
2525
+ }],
2526
+ /**
2527
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
2528
+ * timeout is not created.
2529
+ */
2530
+ timeout: 0,
2531
+ xsrfCookieName: "XSRF-TOKEN",
2532
+ xsrfHeaderName: "X-XSRF-TOKEN",
2533
+ maxContentLength: -1,
2534
+ maxBodyLength: -1,
2535
+ env: {
2536
+ FormData: $.classes.FormData,
2537
+ Blob: $.classes.Blob
2538
+ },
2539
+ validateStatus: function(t) {
2540
+ return t >= 200 && t < 300;
2541
+ },
2542
+ headers: {
2543
+ common: {
2544
+ Accept: "application/json, text/plain, */*",
2545
+ "Content-Type": void 0
2546
+ }
2547
+ }
2548
+ };
2549
+ d.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
2550
+ ke.headers[e] = {};
2551
+ });
2552
+ const Ho = d.toObjectSet([
2553
+ "age",
2554
+ "authorization",
2555
+ "content-length",
2556
+ "content-type",
2557
+ "etag",
2558
+ "expires",
2559
+ "from",
2560
+ "host",
2561
+ "if-modified-since",
2562
+ "if-unmodified-since",
2563
+ "last-modified",
2564
+ "location",
2565
+ "max-forwards",
2566
+ "proxy-authorization",
2567
+ "referer",
2568
+ "retry-after",
2569
+ "user-agent"
2570
+ ]), zo = (e) => {
2571
+ const t = {};
2572
+ let n, r, s;
2573
+ return e && e.split(`
2574
+ `).forEach(function(i) {
2575
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Ho[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
2576
+ }), t;
2577
+ }, nn = Symbol("internals");
2578
+ function xe(e) {
2579
+ return e && String(e).trim().toLowerCase();
2580
+ }
2581
+ function Fe(e) {
2582
+ return e === !1 || e == null ? e : d.isArray(e) ? e.map(Fe) : String(e);
2583
+ }
2584
+ function Vo(e) {
2585
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
2586
+ let r;
2587
+ for (; r = n.exec(e); )
2588
+ t[r[1]] = r[2];
2589
+ return t;
2590
+ }
2591
+ const Wo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
2592
+ function rt(e, t, n, r, s) {
2593
+ if (d.isFunction(r))
2594
+ return r.call(this, t, n);
2595
+ if (s && (t = n), !!d.isString(t)) {
2596
+ if (d.isString(r))
2597
+ return t.indexOf(r) !== -1;
2598
+ if (d.isRegExp(r))
2599
+ return r.test(t);
2600
+ }
2601
+ }
2602
+ function Jo(e) {
2603
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
2604
+ }
2605
+ function Ko(e, t) {
2606
+ const n = d.toCamelCase(" " + t);
2607
+ ["get", "set", "has"].forEach((r) => {
2608
+ Object.defineProperty(e, r + n, {
2609
+ value: function(s, o, i) {
2610
+ return this[r].call(this, t, s, o, i);
2611
+ },
2612
+ configurable: !0
2613
+ });
2614
+ });
2615
+ }
2616
+ class H {
2617
+ constructor(t) {
2618
+ t && this.set(t);
2619
+ }
2620
+ set(t, n, r) {
2621
+ const s = this;
2622
+ function o(c, f, l) {
2623
+ const u = xe(f);
2624
+ if (!u)
2625
+ throw new Error("header name must be a non-empty string");
2626
+ const h = d.findKey(s, u);
2627
+ (!h || s[h] === void 0 || l === !0 || l === void 0 && s[h] !== !1) && (s[h || f] = Fe(c));
2628
+ }
2629
+ const i = (c, f) => d.forEach(c, (l, u) => o(l, u, f));
2630
+ if (d.isPlainObject(t) || t instanceof this.constructor)
2631
+ i(t, n);
2632
+ else if (d.isString(t) && (t = t.trim()) && !Wo(t))
2633
+ i(zo(t), n);
2634
+ else if (d.isHeaders(t))
2635
+ for (const [c, f] of t.entries())
2636
+ o(f, c, r);
2637
+ else
2638
+ t != null && o(n, t, r);
2639
+ return this;
2640
+ }
2641
+ get(t, n) {
2642
+ if (t = xe(t), t) {
2643
+ const r = d.findKey(this, t);
2644
+ if (r) {
2645
+ const s = this[r];
2646
+ if (!n)
2647
+ return s;
2648
+ if (n === !0)
2649
+ return Vo(s);
2650
+ if (d.isFunction(n))
2651
+ return n.call(this, s, r);
2652
+ if (d.isRegExp(n))
2653
+ return n.exec(s);
2654
+ throw new TypeError("parser must be boolean|regexp|function");
2655
+ }
2656
+ }
2657
+ }
2658
+ has(t, n) {
2659
+ if (t = xe(t), t) {
2660
+ const r = d.findKey(this, t);
2661
+ return !!(r && this[r] !== void 0 && (!n || rt(this, this[r], r, n)));
2662
+ }
2663
+ return !1;
2664
+ }
2665
+ delete(t, n) {
2666
+ const r = this;
2667
+ let s = !1;
2668
+ function o(i) {
2669
+ if (i = xe(i), i) {
2670
+ const c = d.findKey(r, i);
2671
+ c && (!n || rt(r, r[c], c, n)) && (delete r[c], s = !0);
2672
+ }
2673
+ }
2674
+ return d.isArray(t) ? t.forEach(o) : o(t), s;
2675
+ }
2676
+ clear(t) {
2677
+ const n = Object.keys(this);
2678
+ let r = n.length, s = !1;
2679
+ for (; r--; ) {
2680
+ const o = n[r];
2681
+ (!t || rt(this, this[o], o, t, !0)) && (delete this[o], s = !0);
2682
+ }
2683
+ return s;
2684
+ }
2685
+ normalize(t) {
2686
+ const n = this, r = {};
2687
+ return d.forEach(this, (s, o) => {
2688
+ const i = d.findKey(r, o);
2689
+ if (i) {
2690
+ n[i] = Fe(s), delete n[o];
2691
+ return;
2692
+ }
2693
+ const c = t ? Jo(o) : String(o).trim();
2694
+ c !== o && delete n[o], n[c] = Fe(s), r[c] = !0;
2695
+ }), this;
2696
+ }
2697
+ concat(...t) {
2698
+ return this.constructor.concat(this, ...t);
2699
+ }
2700
+ toJSON(t) {
2701
+ const n = /* @__PURE__ */ Object.create(null);
2702
+ return d.forEach(this, (r, s) => {
2703
+ r != null && r !== !1 && (n[s] = t && d.isArray(r) ? r.join(", ") : r);
2704
+ }), n;
2705
+ }
2706
+ [Symbol.iterator]() {
2707
+ return Object.entries(this.toJSON())[Symbol.iterator]();
2708
+ }
2709
+ toString() {
2710
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
2711
+ `);
2712
+ }
2713
+ get [Symbol.toStringTag]() {
2714
+ return "AxiosHeaders";
2715
+ }
2716
+ static from(t) {
2717
+ return t instanceof this ? t : new this(t);
2718
+ }
2719
+ static concat(t, ...n) {
2720
+ const r = new this(t);
2721
+ return n.forEach((s) => r.set(s)), r;
2722
+ }
2723
+ static accessor(t) {
2724
+ const r = (this[nn] = this[nn] = {
2725
+ accessors: {}
2726
+ }).accessors, s = this.prototype;
2727
+ function o(i) {
2728
+ const c = xe(i);
2729
+ r[c] || (Ko(s, i), r[c] = !0);
2730
+ }
2731
+ return d.isArray(t) ? t.forEach(o) : o(t), this;
2732
+ }
2733
+ }
2734
+ H.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
2735
+ d.reduceDescriptors(H.prototype, ({ value: e }, t) => {
2736
+ let n = t[0].toUpperCase() + t.slice(1);
2737
+ return {
2738
+ get: () => e,
2739
+ set(r) {
2740
+ this[n] = r;
2741
+ }
2742
+ };
2743
+ });
2744
+ d.freezeMethods(H);
2745
+ function st(e, t) {
2746
+ const n = this || ke, r = t || n, s = H.from(r.headers);
2747
+ let o = r.data;
2748
+ return d.forEach(e, function(c) {
2749
+ o = c.call(n, o, s.normalize(), t ? t.status : void 0);
2750
+ }), s.normalize(), o;
2751
+ }
2752
+ function jn(e) {
2753
+ return !!(e && e.__CANCEL__);
2754
+ }
2755
+ function me(e, t, n) {
2756
+ R.call(this, e ?? "canceled", R.ERR_CANCELED, t, n), this.name = "CanceledError";
2757
+ }
2758
+ d.inherits(me, R, {
2759
+ __CANCEL__: !0
2760
+ });
2761
+ function Pn(e, t, n) {
2762
+ const r = n.config.validateStatus;
2763
+ !n.status || !r || r(n.status) ? e(n) : t(new R(
2764
+ "Request failed with status code " + n.status,
2765
+ [R.ERR_BAD_REQUEST, R.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
2766
+ n.config,
2767
+ n.request,
2768
+ n
2769
+ ));
2770
+ }
2771
+ function Yo(e) {
2772
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
2773
+ return t && t[1] || "";
2774
+ }
2775
+ function Go(e, t) {
2776
+ e = e || 10;
2777
+ const n = new Array(e), r = new Array(e);
2778
+ let s = 0, o = 0, i;
2779
+ return t = t !== void 0 ? t : 1e3, function(f) {
2780
+ const l = Date.now(), u = r[o];
2781
+ i || (i = l), n[s] = f, r[s] = l;
2782
+ let h = o, w = 0;
2783
+ for (; h !== s; )
2784
+ w += n[h++], h = h % e;
2785
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t)
2786
+ return;
2787
+ const x = u && l - u;
2788
+ return x ? Math.round(w * 1e3 / x) : void 0;
2789
+ };
2790
+ }
2791
+ function Xo(e, t) {
2792
+ let n = 0, r = 1e3 / t, s, o;
2793
+ const i = (l, u = Date.now()) => {
2794
+ n = u, s = null, o && (clearTimeout(o), o = null), e.apply(null, l);
2795
+ };
2796
+ return [(...l) => {
2797
+ const u = Date.now(), h = u - n;
2798
+ h >= r ? i(l, u) : (s = l, o || (o = setTimeout(() => {
2799
+ o = null, i(s);
2800
+ }, r - h)));
2801
+ }, () => s && i(s)];
2802
+ }
2803
+ const Ie = (e, t, n = 3) => {
2804
+ let r = 0;
2805
+ const s = Go(50, 250);
2806
+ return Xo((o) => {
2807
+ const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, l = s(f), u = i <= c;
2808
+ r = i;
2809
+ const h = {
2810
+ loaded: i,
2811
+ total: c,
2812
+ progress: c ? i / c : void 0,
2813
+ bytes: f,
2814
+ rate: l || void 0,
2815
+ estimated: l && c && u ? (c - i) / l : void 0,
2816
+ event: o,
2817
+ lengthComputable: c != null,
2818
+ [t ? "download" : "upload"]: !0
2819
+ };
2820
+ e(h);
2821
+ }, n);
2822
+ }, rn = (e, t) => {
2823
+ const n = e != null;
2824
+ return [(r) => t[0]({
2825
+ lengthComputable: n,
2826
+ total: e,
2827
+ loaded: r
2828
+ }), t[1]];
2829
+ }, sn = (e) => (...t) => d.asap(() => e(...t)), Zo = $.hasStandardBrowserEnv ? (
2830
+ // Standard browser envs have full support of the APIs needed to test
2831
+ // whether the request URL is of the same origin as current location.
2832
+ function() {
2833
+ const t = $.navigator && /(msie|trident)/i.test($.navigator.userAgent), n = document.createElement("a");
2834
+ let r;
2835
+ function s(o) {
2836
+ let i = o;
2837
+ return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
2838
+ href: n.href,
2839
+ protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
2840
+ host: n.host,
2841
+ search: n.search ? n.search.replace(/^\?/, "") : "",
2842
+ hash: n.hash ? n.hash.replace(/^#/, "") : "",
2843
+ hostname: n.hostname,
2844
+ port: n.port,
2845
+ pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
2846
+ };
2847
+ }
2848
+ return r = s(window.location.href), function(i) {
2849
+ const c = d.isString(i) ? s(i) : i;
2850
+ return c.protocol === r.protocol && c.host === r.host;
2851
+ };
2852
+ }()
2853
+ ) : (
2854
+ // Non standard browser envs (web workers, react-native) lack needed support.
2855
+ /* @__PURE__ */ function() {
2856
+ return function() {
2857
+ return !0;
2858
+ };
2859
+ }()
2860
+ ), Qo = $.hasStandardBrowserEnv ? (
2861
+ // Standard browser envs support document.cookie
2862
+ {
2863
+ write(e, t, n, r, s, o) {
2864
+ const i = [e + "=" + encodeURIComponent(t)];
2865
+ d.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), d.isString(r) && i.push("path=" + r), d.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
2866
+ },
2867
+ read(e) {
2868
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
2869
+ return t ? decodeURIComponent(t[3]) : null;
2870
+ },
2871
+ remove(e) {
2872
+ this.write(e, "", Date.now() - 864e5);
2873
+ }
2874
+ }
2875
+ ) : (
2876
+ // Non-standard browser env (web workers, react-native) lack needed support.
2877
+ {
2878
+ write() {
2879
+ },
2880
+ read() {
2881
+ return null;
2882
+ },
2883
+ remove() {
2884
+ }
2885
+ }
2886
+ );
2887
+ function ei(e) {
2888
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
2889
+ }
2890
+ function ti(e, t) {
2891
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
2892
+ }
2893
+ function An(e, t) {
2894
+ return e && !ei(t) ? ti(e, t) : t;
2895
+ }
2896
+ const on = (e) => e instanceof H ? { ...e } : e;
2897
+ function ue(e, t) {
2898
+ t = t || {};
2899
+ const n = {};
2900
+ function r(l, u, h) {
2901
+ return d.isPlainObject(l) && d.isPlainObject(u) ? d.merge.call({ caseless: h }, l, u) : d.isPlainObject(u) ? d.merge({}, u) : d.isArray(u) ? u.slice() : u;
2902
+ }
2903
+ function s(l, u, h) {
2904
+ if (d.isUndefined(u)) {
2905
+ if (!d.isUndefined(l))
2906
+ return r(void 0, l, h);
2907
+ } else return r(l, u, h);
2908
+ }
2909
+ function o(l, u) {
2910
+ if (!d.isUndefined(u))
2911
+ return r(void 0, u);
2912
+ }
2913
+ function i(l, u) {
2914
+ if (d.isUndefined(u)) {
2915
+ if (!d.isUndefined(l))
2916
+ return r(void 0, l);
2917
+ } else return r(void 0, u);
2918
+ }
2919
+ function c(l, u, h) {
2920
+ if (h in t)
2921
+ return r(l, u);
2922
+ if (h in e)
2923
+ return r(void 0, l);
2924
+ }
2925
+ const f = {
2926
+ url: o,
2927
+ method: o,
2928
+ data: o,
2929
+ baseURL: i,
2930
+ transformRequest: i,
2931
+ transformResponse: i,
2932
+ paramsSerializer: i,
2933
+ timeout: i,
2934
+ timeoutMessage: i,
2935
+ withCredentials: i,
2936
+ withXSRFToken: i,
2937
+ adapter: i,
2938
+ responseType: i,
2939
+ xsrfCookieName: i,
2940
+ xsrfHeaderName: i,
2941
+ onUploadProgress: i,
2942
+ onDownloadProgress: i,
2943
+ decompress: i,
2944
+ maxContentLength: i,
2945
+ maxBodyLength: i,
2946
+ beforeRedirect: i,
2947
+ transport: i,
2948
+ httpAgent: i,
2949
+ httpsAgent: i,
2950
+ cancelToken: i,
2951
+ socketPath: i,
2952
+ responseEncoding: i,
2953
+ validateStatus: c,
2954
+ headers: (l, u) => s(on(l), on(u), !0)
2955
+ };
2956
+ return d.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
2957
+ const h = f[u] || s, w = h(e[u], t[u], u);
2958
+ d.isUndefined(w) && h !== c || (n[u] = w);
2959
+ }), n;
2960
+ }
2961
+ const Nn = (e) => {
2962
+ const t = ue({}, e);
2963
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
2964
+ t.headers = i = H.from(i), t.url = Cn(An(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
2965
+ "Authorization",
2966
+ "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
2967
+ );
2968
+ let f;
2969
+ if (d.isFormData(n)) {
2970
+ if ($.hasStandardBrowserEnv || $.hasStandardBrowserWebWorkerEnv)
2971
+ i.setContentType(void 0);
2972
+ else if ((f = i.getContentType()) !== !1) {
2973
+ const [l, ...u] = f ? f.split(";").map((h) => h.trim()).filter(Boolean) : [];
2974
+ i.setContentType([l || "multipart/form-data", ...u].join("; "));
2975
+ }
2976
+ }
2977
+ if ($.hasStandardBrowserEnv && (r && d.isFunction(r) && (r = r(t)), r || r !== !1 && Zo(t.url))) {
2978
+ const l = s && o && Qo.read(o);
2979
+ l && i.set(s, l);
2980
+ }
2981
+ return t;
2982
+ }, ni = typeof XMLHttpRequest < "u", ri = ni && function(e) {
2983
+ return new Promise(function(n, r) {
2984
+ const s = Nn(e);
2985
+ let o = s.data;
2986
+ const i = H.from(s.headers).normalize();
2987
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, h, w, x, b;
2988
+ function g() {
2989
+ x && x(), b && b(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
2990
+ }
2991
+ let v = new XMLHttpRequest();
2992
+ v.open(s.method.toUpperCase(), s.url, !0), v.timeout = s.timeout;
2993
+ function S() {
2994
+ if (!v)
2995
+ return;
2996
+ const C = H.from(
2997
+ "getAllResponseHeaders" in v && v.getAllResponseHeaders()
2998
+ ), B = {
2999
+ data: !c || c === "text" || c === "json" ? v.responseText : v.response,
3000
+ status: v.status,
3001
+ statusText: v.statusText,
3002
+ headers: C,
3003
+ config: e,
3004
+ request: v
3005
+ };
3006
+ Pn(function(K) {
3007
+ n(K), g();
3008
+ }, function(K) {
3009
+ r(K), g();
3010
+ }, B), v = null;
3011
+ }
3012
+ "onloadend" in v ? v.onloadend = S : v.onreadystatechange = function() {
3013
+ !v || v.readyState !== 4 || v.status === 0 && !(v.responseURL && v.responseURL.indexOf("file:") === 0) || setTimeout(S);
3014
+ }, v.onabort = function() {
3015
+ v && (r(new R("Request aborted", R.ECONNABORTED, e, v)), v = null);
3016
+ }, v.onerror = function() {
3017
+ r(new R("Network Error", R.ERR_NETWORK, e, v)), v = null;
3018
+ }, v.ontimeout = function() {
3019
+ let D = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
3020
+ const B = s.transitional || On;
3021
+ s.timeoutErrorMessage && (D = s.timeoutErrorMessage), r(new R(
3022
+ D,
3023
+ B.clarifyTimeoutError ? R.ETIMEDOUT : R.ECONNABORTED,
3024
+ e,
3025
+ v
3026
+ )), v = null;
3027
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in v && d.forEach(i.toJSON(), function(D, B) {
3028
+ v.setRequestHeader(B, D);
3029
+ }), d.isUndefined(s.withCredentials) || (v.withCredentials = !!s.withCredentials), c && c !== "json" && (v.responseType = s.responseType), l && ([w, b] = Ie(l, !0), v.addEventListener("progress", w)), f && v.upload && ([h, x] = Ie(f), v.upload.addEventListener("progress", h), v.upload.addEventListener("loadend", x)), (s.cancelToken || s.signal) && (u = (C) => {
3030
+ v && (r(!C || C.type ? new me(null, e, v) : C), v.abort(), v = null);
3031
+ }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
3032
+ const _ = Yo(s.url);
3033
+ if (_ && $.protocols.indexOf(_) === -1) {
3034
+ r(new R("Unsupported protocol " + _ + ":", R.ERR_BAD_REQUEST, e));
3035
+ return;
3036
+ }
3037
+ v.send(o || null);
3038
+ });
3039
+ }, si = (e, t) => {
3040
+ const { length: n } = e = e ? e.filter(Boolean) : [];
3041
+ if (t || n) {
3042
+ let r = new AbortController(), s;
3043
+ const o = function(l) {
3044
+ if (!s) {
3045
+ s = !0, c();
3046
+ const u = l instanceof Error ? l : this.reason;
3047
+ r.abort(u instanceof R ? u : new me(u instanceof Error ? u.message : u));
3048
+ }
3049
+ };
3050
+ let i = t && setTimeout(() => {
3051
+ i = null, o(new R(`timeout ${t} of ms exceeded`, R.ETIMEDOUT));
3052
+ }, t);
3053
+ const c = () => {
3054
+ e && (i && clearTimeout(i), i = null, e.forEach((l) => {
3055
+ l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
3056
+ }), e = null);
3057
+ };
3058
+ e.forEach((l) => l.addEventListener("abort", o));
3059
+ const { signal: f } = r;
3060
+ return f.unsubscribe = () => d.asap(c), f;
3061
+ }
3062
+ }, oi = function* (e, t) {
3063
+ let n = e.byteLength;
3064
+ if (n < t) {
3065
+ yield e;
3066
+ return;
3067
+ }
3068
+ let r = 0, s;
3069
+ for (; r < n; )
3070
+ s = r + t, yield e.slice(r, s), r = s;
3071
+ }, ii = async function* (e, t) {
3072
+ for await (const n of ai(e))
3073
+ yield* oi(n, t);
3074
+ }, ai = async function* (e) {
3075
+ if (e[Symbol.asyncIterator]) {
3076
+ yield* e;
3077
+ return;
3078
+ }
3079
+ const t = e.getReader();
3080
+ try {
3081
+ for (; ; ) {
3082
+ const { done: n, value: r } = await t.read();
3083
+ if (n)
3084
+ break;
3085
+ yield r;
3086
+ }
3087
+ } finally {
3088
+ await t.cancel();
3089
+ }
3090
+ }, an = (e, t, n, r) => {
3091
+ const s = ii(e, t);
3092
+ let o = 0, i, c = (f) => {
3093
+ i || (i = !0, r && r(f));
3094
+ };
3095
+ return new ReadableStream({
3096
+ async pull(f) {
3097
+ try {
3098
+ const { done: l, value: u } = await s.next();
3099
+ if (l) {
3100
+ c(), f.close();
3101
+ return;
3102
+ }
3103
+ let h = u.byteLength;
3104
+ if (n) {
3105
+ let w = o += h;
3106
+ n(w);
3107
+ }
3108
+ f.enqueue(new Uint8Array(u));
3109
+ } catch (l) {
3110
+ throw c(l), l;
3111
+ }
3112
+ },
3113
+ cancel(f) {
3114
+ return c(f), s.return();
3115
+ }
3116
+ }, {
3117
+ highWaterMark: 2
3118
+ });
3119
+ }, He = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Bn = He && typeof ReadableStream == "function", ci = He && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Fn = (e, ...t) => {
3120
+ try {
3121
+ return !!e(...t);
3122
+ } catch {
3123
+ return !1;
3124
+ }
3125
+ }, li = Bn && Fn(() => {
3126
+ let e = !1;
3127
+ const t = new Request($.origin, {
3128
+ body: new ReadableStream(),
3129
+ method: "POST",
3130
+ get duplex() {
3131
+ return e = !0, "half";
3132
+ }
3133
+ }).headers.has("Content-Type");
3134
+ return e && !t;
3135
+ }), cn = 64 * 1024, ft = Bn && Fn(() => d.isReadableStream(new Response("").body)), De = {
3136
+ stream: ft && ((e) => e.body)
3137
+ };
3138
+ He && ((e) => {
3139
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
3140
+ !De[t] && (De[t] = d.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
3141
+ throw new R(`Response type '${t}' is not supported`, R.ERR_NOT_SUPPORT, r);
3142
+ });
3143
+ });
3144
+ })(new Response());
3145
+ const ui = async (e) => {
3146
+ if (e == null)
3147
+ return 0;
3148
+ if (d.isBlob(e))
3149
+ return e.size;
3150
+ if (d.isSpecCompliantForm(e))
3151
+ return (await new Request($.origin, {
3152
+ method: "POST",
3153
+ body: e
3154
+ }).arrayBuffer()).byteLength;
3155
+ if (d.isArrayBufferView(e) || d.isArrayBuffer(e))
3156
+ return e.byteLength;
3157
+ if (d.isURLSearchParams(e) && (e = e + ""), d.isString(e))
3158
+ return (await ci(e)).byteLength;
3159
+ }, di = async (e, t) => {
3160
+ const n = d.toFiniteNumber(e.getContentLength());
3161
+ return n ?? ui(t);
3162
+ }, fi = He && (async (e) => {
3163
+ let {
3164
+ url: t,
3165
+ method: n,
3166
+ data: r,
3167
+ signal: s,
3168
+ cancelToken: o,
3169
+ timeout: i,
3170
+ onDownloadProgress: c,
3171
+ onUploadProgress: f,
3172
+ responseType: l,
3173
+ headers: u,
3174
+ withCredentials: h = "same-origin",
3175
+ fetchOptions: w
3176
+ } = Nn(e);
3177
+ l = l ? (l + "").toLowerCase() : "text";
3178
+ let x = si([s, o && o.toAbortSignal()], i), b;
3179
+ const g = x && x.unsubscribe && (() => {
3180
+ x.unsubscribe();
3181
+ });
3182
+ let v;
3183
+ try {
3184
+ if (f && li && n !== "get" && n !== "head" && (v = await di(u, r)) !== 0) {
3185
+ let B = new Request(t, {
3186
+ method: "POST",
3187
+ body: r,
3188
+ duplex: "half"
3189
+ }), q;
3190
+ if (d.isFormData(r) && (q = B.headers.get("content-type")) && u.setContentType(q), B.body) {
3191
+ const [K, ee] = rn(
3192
+ v,
3193
+ Ie(sn(f))
3194
+ );
3195
+ r = an(B.body, cn, K, ee);
3196
+ }
3197
+ }
3198
+ d.isString(h) || (h = h ? "include" : "omit");
3199
+ const S = "credentials" in Request.prototype;
3200
+ b = new Request(t, {
3201
+ ...w,
3202
+ signal: x,
3203
+ method: n.toUpperCase(),
3204
+ headers: u.normalize().toJSON(),
3205
+ body: r,
3206
+ duplex: "half",
3207
+ credentials: S ? h : void 0
3208
+ });
3209
+ let _ = await fetch(b);
3210
+ const C = ft && (l === "stream" || l === "response");
3211
+ if (ft && (c || C && g)) {
3212
+ const B = {};
3213
+ ["status", "statusText", "headers"].forEach((se) => {
3214
+ B[se] = _[se];
3215
+ });
3216
+ const q = d.toFiniteNumber(_.headers.get("content-length")), [K, ee] = c && rn(
3217
+ q,
3218
+ Ie(sn(c), !0)
3219
+ ) || [];
3220
+ _ = new Response(
3221
+ an(_.body, cn, K, () => {
3222
+ ee && ee(), g && g();
3223
+ }),
3224
+ B
3225
+ );
3226
+ }
3227
+ l = l || "text";
3228
+ let D = await De[d.findKey(De, l) || "text"](_, e);
3229
+ return !C && g && g(), await new Promise((B, q) => {
3230
+ Pn(B, q, {
3231
+ data: D,
3232
+ headers: H.from(_.headers),
3233
+ status: _.status,
3234
+ statusText: _.statusText,
3235
+ config: e,
3236
+ request: b
3237
+ });
3238
+ });
3239
+ } catch (S) {
3240
+ throw g && g(), S && S.name === "TypeError" && /fetch/i.test(S.message) ? Object.assign(
3241
+ new R("Network Error", R.ERR_NETWORK, e, b),
3242
+ {
3243
+ cause: S.cause || S
3244
+ }
3245
+ ) : R.from(S, S && S.code, e, b);
3246
+ }
3247
+ }), pt = {
3248
+ http: Co,
3249
+ xhr: ri,
3250
+ fetch: fi
3251
+ };
3252
+ d.forEach(pt, (e, t) => {
3253
+ if (e) {
3254
+ try {
3255
+ Object.defineProperty(e, "name", { value: t });
3256
+ } catch {
3257
+ }
3258
+ Object.defineProperty(e, "adapterName", { value: t });
3259
+ }
3260
+ });
3261
+ const ln = (e) => `- ${e}`, pi = (e) => d.isFunction(e) || e === null || e === !1, In = {
3262
+ getAdapter: (e) => {
3263
+ e = d.isArray(e) ? e : [e];
3264
+ const { length: t } = e;
3265
+ let n, r;
3266
+ const s = {};
3267
+ for (let o = 0; o < t; o++) {
3268
+ n = e[o];
3269
+ let i;
3270
+ if (r = n, !pi(n) && (r = pt[(i = String(n)).toLowerCase()], r === void 0))
3271
+ throw new R(`Unknown adapter '${i}'`);
3272
+ if (r)
3273
+ break;
3274
+ s[i || "#" + o] = r;
3275
+ }
3276
+ if (!r) {
3277
+ const o = Object.entries(s).map(
3278
+ ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
3279
+ );
3280
+ let i = t ? o.length > 1 ? `since :
3281
+ ` + o.map(ln).join(`
3282
+ `) : " " + ln(o[0]) : "as no adapter specified";
3283
+ throw new R(
3284
+ "There is no suitable adapter to dispatch the request " + i,
3285
+ "ERR_NOT_SUPPORT"
3286
+ );
3287
+ }
3288
+ return r;
3289
+ },
3290
+ adapters: pt
3291
+ };
3292
+ function ot(e) {
3293
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
3294
+ throw new me(null, e);
3295
+ }
3296
+ function un(e) {
3297
+ return ot(e), e.headers = H.from(e.headers), e.data = st.call(
3298
+ e,
3299
+ e.transformRequest
3300
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), In.getAdapter(e.adapter || ke.adapter)(e).then(function(r) {
3301
+ return ot(e), r.data = st.call(
3302
+ e,
3303
+ e.transformResponse,
3304
+ r
3305
+ ), r.headers = H.from(r.headers), r;
3306
+ }, function(r) {
3307
+ return jn(r) || (ot(e), r && r.response && (r.response.data = st.call(
3308
+ e,
3309
+ e.transformResponse,
3310
+ r.response
3311
+ ), r.response.headers = H.from(r.response.headers))), Promise.reject(r);
3312
+ });
3313
+ }
3314
+ const Dn = "1.7.7", yt = {};
3315
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
3316
+ yt[e] = function(r) {
3317
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
3318
+ };
3319
+ });
3320
+ const dn = {};
3321
+ yt.transitional = function(t, n, r) {
3322
+ function s(o, i) {
3323
+ return "[Axios v" + Dn + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
3324
+ }
3325
+ return (o, i, c) => {
3326
+ if (t === !1)
3327
+ throw new R(
3328
+ s(i, " has been removed" + (n ? " in " + n : "")),
3329
+ R.ERR_DEPRECATED
3330
+ );
3331
+ return n && !dn[i] && (dn[i] = !0, console.warn(
3332
+ s(
3333
+ i,
3334
+ " has been deprecated since v" + n + " and will be removed in the near future"
3335
+ )
3336
+ )), t ? t(o, i, c) : !0;
3337
+ };
3338
+ };
3339
+ function hi(e, t, n) {
3340
+ if (typeof e != "object")
3341
+ throw new R("options must be an object", R.ERR_BAD_OPTION_VALUE);
3342
+ const r = Object.keys(e);
3343
+ let s = r.length;
3344
+ for (; s-- > 0; ) {
3345
+ const o = r[s], i = t[o];
3346
+ if (i) {
3347
+ const c = e[o], f = c === void 0 || i(c, o, e);
3348
+ if (f !== !0)
3349
+ throw new R("option " + o + " must be " + f, R.ERR_BAD_OPTION_VALUE);
3350
+ continue;
3351
+ }
3352
+ if (n !== !0)
3353
+ throw new R("Unknown option " + o, R.ERR_BAD_OPTION);
3354
+ }
3355
+ }
3356
+ const ht = {
3357
+ assertOptions: hi,
3358
+ validators: yt
3359
+ }, ne = ht.validators;
3360
+ class le {
3361
+ constructor(t) {
3362
+ this.defaults = t, this.interceptors = {
3363
+ request: new tn(),
3364
+ response: new tn()
3365
+ };
3366
+ }
3367
+ /**
3368
+ * Dispatch a request
3369
+ *
3370
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
3371
+ * @param {?Object} config
3372
+ *
3373
+ * @returns {Promise} The Promise to be fulfilled
3374
+ */
3375
+ async request(t, n) {
3376
+ try {
3377
+ return await this._request(t, n);
3378
+ } catch (r) {
3379
+ if (r instanceof Error) {
3380
+ let s;
3381
+ Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
3382
+ const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
3383
+ try {
3384
+ r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
3385
+ ` + o) : r.stack = o;
3386
+ } catch {
3387
+ }
3388
+ }
3389
+ throw r;
3390
+ }
3391
+ }
3392
+ _request(t, n) {
3393
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ue(this.defaults, n);
3394
+ const { transitional: r, paramsSerializer: s, headers: o } = n;
3395
+ r !== void 0 && ht.assertOptions(r, {
3396
+ silentJSONParsing: ne.transitional(ne.boolean),
3397
+ forcedJSONParsing: ne.transitional(ne.boolean),
3398
+ clarifyTimeoutError: ne.transitional(ne.boolean)
3399
+ }, !1), s != null && (d.isFunction(s) ? n.paramsSerializer = {
3400
+ serialize: s
3401
+ } : ht.assertOptions(s, {
3402
+ encode: ne.function,
3403
+ serialize: ne.function
3404
+ }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
3405
+ let i = o && d.merge(
3406
+ o.common,
3407
+ o[n.method]
3408
+ );
3409
+ o && d.forEach(
3410
+ ["delete", "get", "head", "post", "put", "patch", "common"],
3411
+ (b) => {
3412
+ delete o[b];
3413
+ }
3414
+ ), n.headers = H.concat(i, o);
3415
+ const c = [];
3416
+ let f = !0;
3417
+ this.interceptors.request.forEach(function(g) {
3418
+ typeof g.runWhen == "function" && g.runWhen(n) === !1 || (f = f && g.synchronous, c.unshift(g.fulfilled, g.rejected));
3419
+ });
3420
+ const l = [];
3421
+ this.interceptors.response.forEach(function(g) {
3422
+ l.push(g.fulfilled, g.rejected);
3423
+ });
3424
+ let u, h = 0, w;
3425
+ if (!f) {
3426
+ const b = [un.bind(this), void 0];
3427
+ for (b.unshift.apply(b, c), b.push.apply(b, l), w = b.length, u = Promise.resolve(n); h < w; )
3428
+ u = u.then(b[h++], b[h++]);
3429
+ return u;
3430
+ }
3431
+ w = c.length;
3432
+ let x = n;
3433
+ for (h = 0; h < w; ) {
3434
+ const b = c[h++], g = c[h++];
3435
+ try {
3436
+ x = b(x);
3437
+ } catch (v) {
3438
+ g.call(this, v);
3439
+ break;
3440
+ }
3441
+ }
3442
+ try {
3443
+ u = un.call(this, x);
3444
+ } catch (b) {
3445
+ return Promise.reject(b);
3446
+ }
3447
+ for (h = 0, w = l.length; h < w; )
3448
+ u = u.then(l[h++], l[h++]);
3449
+ return u;
3450
+ }
3451
+ getUri(t) {
3452
+ t = ue(this.defaults, t);
3453
+ const n = An(t.baseURL, t.url);
3454
+ return Cn(n, t.params, t.paramsSerializer);
3455
+ }
3456
+ }
3457
+ d.forEach(["delete", "get", "head", "options"], function(t) {
3458
+ le.prototype[t] = function(n, r) {
3459
+ return this.request(ue(r || {}, {
3460
+ method: t,
3461
+ url: n,
3462
+ data: (r || {}).data
3463
+ }));
3464
+ };
3465
+ });
3466
+ d.forEach(["post", "put", "patch"], function(t) {
3467
+ function n(r) {
3468
+ return function(o, i, c) {
3469
+ return this.request(ue(c || {}, {
3470
+ method: t,
3471
+ headers: r ? {
3472
+ "Content-Type": "multipart/form-data"
3473
+ } : {},
3474
+ url: o,
3475
+ data: i
3476
+ }));
3477
+ };
3478
+ }
3479
+ le.prototype[t] = n(), le.prototype[t + "Form"] = n(!0);
3480
+ });
3481
+ class _t {
3482
+ constructor(t) {
3483
+ if (typeof t != "function")
3484
+ throw new TypeError("executor must be a function.");
3485
+ let n;
3486
+ this.promise = new Promise(function(o) {
3487
+ n = o;
3488
+ });
3489
+ const r = this;
3490
+ this.promise.then((s) => {
3491
+ if (!r._listeners) return;
3492
+ let o = r._listeners.length;
3493
+ for (; o-- > 0; )
3494
+ r._listeners[o](s);
3495
+ r._listeners = null;
3496
+ }), this.promise.then = (s) => {
3497
+ let o;
3498
+ const i = new Promise((c) => {
3499
+ r.subscribe(c), o = c;
3500
+ }).then(s);
3501
+ return i.cancel = function() {
3502
+ r.unsubscribe(o);
3503
+ }, i;
3504
+ }, t(function(o, i, c) {
3505
+ r.reason || (r.reason = new me(o, i, c), n(r.reason));
3506
+ });
3507
+ }
3508
+ /**
3509
+ * Throws a `CanceledError` if cancellation has been requested.
3510
+ */
3511
+ throwIfRequested() {
3512
+ if (this.reason)
3513
+ throw this.reason;
3514
+ }
3515
+ /**
3516
+ * Subscribe to the cancel signal
3517
+ */
3518
+ subscribe(t) {
3519
+ if (this.reason) {
3520
+ t(this.reason);
3521
+ return;
3522
+ }
3523
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
3524
+ }
3525
+ /**
3526
+ * Unsubscribe from the cancel signal
3527
+ */
3528
+ unsubscribe(t) {
3529
+ if (!this._listeners)
3530
+ return;
3531
+ const n = this._listeners.indexOf(t);
3532
+ n !== -1 && this._listeners.splice(n, 1);
3533
+ }
3534
+ toAbortSignal() {
3535
+ const t = new AbortController(), n = (r) => {
3536
+ t.abort(r);
3537
+ };
3538
+ return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
3539
+ }
3540
+ /**
3541
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
3542
+ * cancels the `CancelToken`.
3543
+ */
3544
+ static source() {
3545
+ let t;
3546
+ return {
3547
+ token: new _t(function(s) {
3548
+ t = s;
3549
+ }),
3550
+ cancel: t
3551
+ };
3552
+ }
3553
+ }
3554
+ function mi(e) {
3555
+ return function(n) {
3556
+ return e.apply(null, n);
3557
+ };
3558
+ }
3559
+ function gi(e) {
3560
+ return d.isObject(e) && e.isAxiosError === !0;
3561
+ }
3562
+ const mt = {
3563
+ Continue: 100,
3564
+ SwitchingProtocols: 101,
3565
+ Processing: 102,
3566
+ EarlyHints: 103,
3567
+ Ok: 200,
3568
+ Created: 201,
3569
+ Accepted: 202,
3570
+ NonAuthoritativeInformation: 203,
3571
+ NoContent: 204,
3572
+ ResetContent: 205,
3573
+ PartialContent: 206,
3574
+ MultiStatus: 207,
3575
+ AlreadyReported: 208,
3576
+ ImUsed: 226,
3577
+ MultipleChoices: 300,
3578
+ MovedPermanently: 301,
3579
+ Found: 302,
3580
+ SeeOther: 303,
3581
+ NotModified: 304,
3582
+ UseProxy: 305,
3583
+ Unused: 306,
3584
+ TemporaryRedirect: 307,
3585
+ PermanentRedirect: 308,
3586
+ BadRequest: 400,
3587
+ Unauthorized: 401,
3588
+ PaymentRequired: 402,
3589
+ Forbidden: 403,
3590
+ NotFound: 404,
3591
+ MethodNotAllowed: 405,
3592
+ NotAcceptable: 406,
3593
+ ProxyAuthenticationRequired: 407,
3594
+ RequestTimeout: 408,
3595
+ Conflict: 409,
3596
+ Gone: 410,
3597
+ LengthRequired: 411,
3598
+ PreconditionFailed: 412,
3599
+ PayloadTooLarge: 413,
3600
+ UriTooLong: 414,
3601
+ UnsupportedMediaType: 415,
3602
+ RangeNotSatisfiable: 416,
3603
+ ExpectationFailed: 417,
3604
+ ImATeapot: 418,
3605
+ MisdirectedRequest: 421,
3606
+ UnprocessableEntity: 422,
3607
+ Locked: 423,
3608
+ FailedDependency: 424,
3609
+ TooEarly: 425,
3610
+ UpgradeRequired: 426,
3611
+ PreconditionRequired: 428,
3612
+ TooManyRequests: 429,
3613
+ RequestHeaderFieldsTooLarge: 431,
3614
+ UnavailableForLegalReasons: 451,
3615
+ InternalServerError: 500,
3616
+ NotImplemented: 501,
3617
+ BadGateway: 502,
3618
+ ServiceUnavailable: 503,
3619
+ GatewayTimeout: 504,
3620
+ HttpVersionNotSupported: 505,
3621
+ VariantAlsoNegotiates: 506,
3622
+ InsufficientStorage: 507,
3623
+ LoopDetected: 508,
3624
+ NotExtended: 510,
3625
+ NetworkAuthenticationRequired: 511
3626
+ };
3627
+ Object.entries(mt).forEach(([e, t]) => {
3628
+ mt[t] = e;
3629
+ });
3630
+ function Ln(e) {
3631
+ const t = new le(e), n = mn(le.prototype.request, t);
3632
+ return d.extend(n, le.prototype, t, { allOwnKeys: !0 }), d.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
3633
+ return Ln(ue(e, s));
3634
+ }, n;
3635
+ }
3636
+ const A = Ln(ke);
3637
+ A.Axios = le;
3638
+ A.CanceledError = me;
3639
+ A.CancelToken = _t;
3640
+ A.isCancel = jn;
3641
+ A.VERSION = Dn;
3642
+ A.toFormData = $e;
3643
+ A.AxiosError = R;
3644
+ A.Cancel = A.CanceledError;
3645
+ A.all = function(t) {
3646
+ return Promise.all(t);
3647
+ };
3648
+ A.spread = mi;
3649
+ A.isAxiosError = gi;
3650
+ A.mergeConfig = ue;
3651
+ A.AxiosHeaders = H;
3652
+ A.formToJSON = (e) => Tn(d.isHTMLForm(e) ? new FormData(e) : e);
3653
+ A.getAdapter = In.getAdapter;
3654
+ A.HttpStatusCode = mt;
3655
+ A.default = A;
3656
+ const wt = "https://g-api.billgang.com", ua = async (e = "get", t, n) => {
3657
+ const r = localStorage.getItem("shopId") || void 0, s = `${wt}/v2/builder/shops/${r}/${t}`, o = localStorage.getItem("accessToken") || void 0;
3658
+ if (e.toUpperCase() === "GET")
3659
+ return (await A.get(s, {
3660
+ headers: {
3661
+ Authorization: `Bearer ${o}`
3662
+ }
3663
+ })).data;
3664
+ e.toUpperCase() === "POST" && await A.post(
3665
+ s,
3666
+ {
3667
+ ...n
3668
+ },
3669
+ {
3670
+ headers: {
3671
+ Authorization: `Bearer ${o}`
3672
+ }
3673
+ }
3674
+ ), e.toUpperCase() === "PUT" && await A.put(
3675
+ s,
3676
+ {
3677
+ ...n
3678
+ },
3679
+ {
3680
+ headers: {
3681
+ Authorization: `Bearer ${o}`
3682
+ }
3683
+ }
3684
+ );
3685
+ }, bi = async () => {
3686
+ const e = localStorage.getItem("shopId") || void 0, t = `${wt}/v1/dash/shops/${e}/images`, n = localStorage.getItem("accessToken") || void 0;
3687
+ return (await A.get(t, {
3688
+ headers: {
3689
+ Authorization: `Bearer ${n}`
3690
+ }
3691
+ })).data;
3692
+ }, vi = async (e) => {
3693
+ const t = localStorage.getItem("shopId") || void 0, n = `${wt}/v1/dash/shops/${t}/images`, r = localStorage.getItem("accessToken") || void 0;
3694
+ return (await A.post(n, e, {
3695
+ headers: {
3696
+ Authorization: `Bearer ${r}`,
3697
+ "Content-Type": "multipart/form-data"
3698
+ }
3699
+ })).data;
3700
+ }, yi = "_wrapper_arjxm_2", _i = "_label_arjxm_8", wi = "_icon_arjxm_15", Si = "_text_arjxm_25", xi = "_content_arjxm_32", Ei = "_modal_arjxm_42", Ri = "_top_arjxm_50", ki = "_title_arjxm_57", Ci = "_modalContent_arjxm_64", Oi = "_images_arjxm_73", Ti = "_add_arjxm_82", ji = "_description_arjxm_94", Pi = "_bottom_arjxm_104", Ai = "_cancel_arjxm_116", Ni = "_highlight_arjxm_121", Bi = "_accent_arjxm_126", Fi = "_image_arjxm_73", Ii = "_selected_arjxm_140", Di = "_checkbox_arjxm_144", Li = "_loading_arjxm_150", Ui = "_spinner_arjxm_162", qi = "_spin_arjxm_162", P = {
3701
+ wrapper: yi,
3702
+ label: _i,
3703
+ icon: wi,
3704
+ text: Si,
3705
+ content: xi,
3706
+ modal: Ei,
3707
+ top: Ri,
3708
+ title: ki,
3709
+ modalContent: Ci,
3710
+ images: Oi,
3711
+ add: Ti,
3712
+ description: ji,
3713
+ bottom: Pi,
3714
+ cancel: Ai,
3715
+ highlight: Ni,
3716
+ accent: Bi,
3717
+ image: Fi,
3718
+ selected: Ii,
3719
+ checkbox: Di,
3720
+ loading: Li,
3721
+ spinner: Ui,
3722
+ spin: qi
3723
+ }, da = (e) => {
3724
+ const { label: t } = e, { setOpenModal: n } = pn();
3725
+ return /* @__PURE__ */ m.jsx(m.Fragment, { children: /* @__PURE__ */ m.jsxs(
3726
+ "div",
3727
+ {
3728
+ className: P.wrapper,
3729
+ onClick: (r) => r.stopPropagation(),
3730
+ children: [
3731
+ t && /* @__PURE__ */ m.jsx("h4", { className: P.label, children: t }),
3732
+ /* @__PURE__ */ m.jsxs(
3733
+ "div",
3734
+ {
3735
+ onClick: () => {
3736
+ n(!0);
3737
+ },
3738
+ className: P.content,
3739
+ children: [
3740
+ /* @__PURE__ */ m.jsx("div", { className: P.icon, children: /* @__PURE__ */ m.jsx(
3741
+ re,
3742
+ {
3743
+ name: "plus",
3744
+ width: 20,
3745
+ height: 20,
3746
+ fill: "#757575"
3747
+ }
3748
+ ) }),
3749
+ /* @__PURE__ */ m.jsx("span", { className: P.text, children: "Choose image" })
3750
+ ]
3751
+ }
3752
+ )
3753
+ ]
3754
+ }
3755
+ ) });
3756
+ }, fa = () => {
3757
+ const { setOpenModal: e } = pn(), t = () => {
3758
+ var l;
3759
+ (l = n.current) == null || l.click();
3760
+ }, n = I.useRef(null), [r, s] = I.useState([]), [o, i] = I.useState(!1), c = async (l) => {
3761
+ var b;
3762
+ const u = ((b = l.target.files) == null ? void 0 : b[0]) || null;
3763
+ if (!u) return;
3764
+ const h = new FormData();
3765
+ h.append("file", u), i(!0);
3766
+ const { data: w } = await vi(h), x = [...r];
3767
+ x.unshift({
3768
+ ...w,
3769
+ cfId: w.path
3770
+ }), s([...x]), i(!1);
3771
+ }, f = (l) => {
3772
+ const h = [...r].map((w) => w.id === l.id ? {
3773
+ ...l
3774
+ } : w);
3775
+ s([...h]);
3776
+ };
3777
+ return I.useEffect(() => {
3778
+ (async () => {
3779
+ const { data: u } = await bi(), h = u.map((w) => ({
3780
+ ...w,
3781
+ isSelected: !1
3782
+ }));
3783
+ s(h);
3784
+ })();
3785
+ }, []), /* @__PURE__ */ m.jsxs(
3786
+ "div",
3787
+ {
3788
+ onClick: (l) => l.stopPropagation(),
3789
+ className: P.modal,
3790
+ children: [
3791
+ /* @__PURE__ */ m.jsxs("div", { className: P.top, children: [
3792
+ /* @__PURE__ */ m.jsx("h4", { className: P.title, children: "Select Image" }),
3793
+ /* @__PURE__ */ m.jsx(
3794
+ re,
3795
+ {
3796
+ name: "x",
3797
+ width: 20,
3798
+ height: 20,
3799
+ hoverable: !0,
3800
+ onClick: () => e(!1)
3801
+ }
3802
+ )
3803
+ ] }),
3804
+ /* @__PURE__ */ m.jsxs("div", { className: P.modalContent, children: [
3805
+ /* @__PURE__ */ m.jsxs("div", { className: P.top, children: [
3806
+ /* @__PURE__ */ m.jsx("div", { children: "Search" }),
3807
+ /* @__PURE__ */ m.jsxs("div", { children: [
3808
+ "Selected: ",
3809
+ r.filter((l) => l.isSelected).length,
3810
+ " images"
3811
+ ] })
3812
+ ] }),
3813
+ /* @__PURE__ */ m.jsxs("div", { className: P.images, children: [
3814
+ /* @__PURE__ */ m.jsxs("div", { className: P.input, children: [
3815
+ /* @__PURE__ */ m.jsxs(
3816
+ "div",
3817
+ {
3818
+ onClick: t,
3819
+ className: P.add,
3820
+ children: [
3821
+ /* @__PURE__ */ m.jsx("div", { className: P.icon, children: /* @__PURE__ */ m.jsx(
3822
+ re,
3823
+ {
3824
+ name: "plus",
3825
+ width: 20,
3826
+ height: 20,
3827
+ fill: "#757575"
3828
+ }
3829
+ ) }),
3830
+ /* @__PURE__ */ m.jsxs("div", { className: P.description, children: [
3831
+ /* @__PURE__ */ m.jsx("span", { children: "Drag and drop images here, or " }),
3832
+ /* @__PURE__ */ m.jsx("span", { className: P.highlight, children: "click to browse" }),
3833
+ /* @__PURE__ */ m.jsx("br", {}),
3834
+ /* @__PURE__ */ m.jsx("span", { className: P.accent, children: "up to 10MB." })
3835
+ ] })
3836
+ ]
3837
+ }
3838
+ ),
3839
+ /* @__PURE__ */ m.jsx(
3840
+ "input",
3841
+ {
3842
+ type: "file",
3843
+ ref: n,
3844
+ style: { display: "none" },
3845
+ onChange: c
3846
+ }
3847
+ )
3848
+ ] }),
3849
+ o && /* @__PURE__ */ m.jsx(fn, {}),
3850
+ r.map((l) => /* @__PURE__ */ m.jsxs(
3851
+ "div",
3852
+ {
3853
+ className: J(P.image, {
3854
+ [P.selected]: l.isSelected
3855
+ }),
3856
+ children: [
3857
+ /* @__PURE__ */ m.jsx("div", { className: P.checkbox, children: /* @__PURE__ */ m.jsx(
3858
+ qs,
3859
+ {
3860
+ value: l.isSelected,
3861
+ onChange: (u) => {
3862
+ console.log(u), f({
3863
+ ...l,
3864
+ isSelected: u
3865
+ });
3866
+ }
3867
+ }
3868
+ ) }),
3869
+ /* @__PURE__ */ m.jsx(
3870
+ "img",
3871
+ {
3872
+ src: `https://imagedelivery.net/${l.cfId}/w=500`,
3873
+ alt: "image",
3874
+ width: "100%",
3875
+ height: "100%"
3876
+ }
3877
+ )
3878
+ ]
3879
+ },
3880
+ l.id
3881
+ )),
3882
+ r.length === 0 && [...new Array(5)].map(() => /* @__PURE__ */ m.jsx(fn, {}))
3883
+ ] })
3884
+ ] }),
3885
+ /* @__PURE__ */ m.jsxs("div", { className: P.bottom, children: [
3886
+ /* @__PURE__ */ m.jsx(
3887
+ Gt,
3888
+ {
3889
+ className: P.cancel,
3890
+ onClick: () => e(!1),
3891
+ children: "Cancel"
3892
+ }
3893
+ ),
3894
+ /* @__PURE__ */ m.jsx(Gt, { children: "Select" })
3895
+ ] })
3896
+ ]
3897
+ }
3898
+ );
3899
+ }, fn = () => /* @__PURE__ */ m.jsx("div", { className: P.loading, children: /* @__PURE__ */ m.jsx("div", { className: P.spinner }) });
3900
+ export {
3901
+ Xi as A,
3902
+ Gt as B,
3903
+ oa as C,
3904
+ Vi as D,
3905
+ pn as E,
3906
+ A as F,
3907
+ re as I,
3908
+ ia as M,
3909
+ sa as P,
3910
+ ca as R,
3911
+ na as S,
3912
+ aa as T,
3913
+ ea as a,
3914
+ ta as b,
3915
+ J as c,
3916
+ ra as d,
3917
+ la as e,
3918
+ qs as f,
3919
+ da as g,
3920
+ fa as h,
3921
+ Ki as i,
3922
+ m as j,
3923
+ Qi as k,
3924
+ Yi as l,
3925
+ Wi as m,
3926
+ Gi as n,
3927
+ Zi as o,
3928
+ ua as p,
3929
+ Ji as q,
3930
+ $i as r,
3931
+ yr as s,
3932
+ Cr as t,
3933
+ Hi as u,
3934
+ ct as v,
3935
+ Or as w,
3936
+ pe as x,
3937
+ pr as y,
3938
+ zi as z
3939
+ };