strapi-plugin-comments 3.0.7 → 3.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +21 -3
  2. package/dist/_chunks/{en-DCsHR-ue.mjs → en-BtJqEJGe.mjs} +2 -0
  3. package/dist/_chunks/en-CNvRvaLL.js +1 -0
  4. package/dist/_chunks/fr-BIrOYxvf.js +1 -0
  5. package/dist/_chunks/{fr-DC9DGoT1.mjs → fr-Dx7zbWW0.mjs} +2 -0
  6. package/dist/_chunks/index-B8Jogmi4.mjs +2026 -0
  7. package/dist/_chunks/index-BNZz69rC.js +2175 -0
  8. package/dist/_chunks/{index-DGKkpdmq.mjs → index-BbHOeszY.mjs} +6261 -6181
  9. package/dist/_chunks/index-Bfn0RC18.js +18 -0
  10. package/dist/_chunks/{index-CF4vndXw.mjs → index-Bi2NddA5.mjs} +14045 -14195
  11. package/dist/_chunks/{index-CwHmRIcs.mjs → index-D56DrIq3.mjs} +70 -68
  12. package/dist/_chunks/index-DiQHdq_2.js +1 -0
  13. package/dist/_chunks/{index-YPqaQ-iX.js → index-gJOowHIB.js} +30 -30
  14. package/dist/_chunks/pl-DoXe0BV9.js +1 -0
  15. package/dist/_chunks/{pl-DZiVsGIg.mjs → pl-_wkGtdQj.mjs} +2 -0
  16. package/dist/_chunks/{pt-BR-CW4ugNZj.mjs → pt-BR-Bx1qSZ0Z.mjs} +2 -0
  17. package/dist/_chunks/pt-BR-CLvbSGaH.js +1 -0
  18. package/dist/_chunks/{ru-CfKjYq3M.mjs → ru-BuUj7OWH.mjs} +2 -0
  19. package/dist/_chunks/ru-eLIDfsd3.js +1 -0
  20. package/dist/_chunks/tr-BX-_IBUR.js +1 -0
  21. package/dist/_chunks/{tr-BQR2hK7S.mjs → tr-CloK8CbW.mjs} +2 -0
  22. package/dist/_chunks/zh-Hans-DusBjCtd.js +1 -0
  23. package/dist/_chunks/{zh-Hans-lNqOn5JS.mjs → zh-Hans-Isi-yCnI.mjs} +2 -0
  24. package/dist/admin/index.js +1 -1
  25. package/dist/admin/index.mjs +1 -1
  26. package/dist/admin/src/api/schemas.d.ts +5 -5
  27. package/dist/admin/src/components/CommentStatusFilters/index.d.ts +6 -0
  28. package/dist/admin/src/hooks/useCommentsAll.d.ts +2 -2
  29. package/dist/admin/src/translations/en.d.ts +2 -0
  30. package/dist/admin/src/translations/fr.d.ts +2 -0
  31. package/dist/admin/src/translations/pl.d.ts +2 -0
  32. package/dist/admin/src/translations/pt-BR.d.ts +2 -0
  33. package/dist/admin/src/translations/ru.d.ts +2 -0
  34. package/dist/admin/src/translations/tr.d.ts +2 -0
  35. package/dist/admin/src/translations/zh-Hans.d.ts +2 -0
  36. package/dist/server/index.js +28 -28
  37. package/dist/server/index.mjs +1591 -1560
  38. package/dist/server/src/@types/controllers.d.ts +1 -0
  39. package/dist/server/src/controllers/index.d.ts +66 -0
  40. package/dist/server/src/graphql/getResolversConfig.d.ts +4 -4
  41. package/dist/server/src/index.d.ts +572 -1
  42. package/dist/server/src/services/admin/admin.service.d.ts +68 -1
  43. package/dist/server/src/services/admin/utils.d.ts +1 -8
  44. package/dist/server/src/services/client.service.d.ts +67 -0
  45. package/dist/server/src/services/common.service.d.ts +1 -0
  46. package/dist/server/src/services/index.d.ts +506 -1
  47. package/dist/server/src/validators/api/controllers/admin.controller.validator.d.ts +1503 -1
  48. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +66 -0
  49. package/dist/server/src/validators/utils.d.ts +1235 -1
  50. package/package.json +10 -10
  51. package/dist/_chunks/en-CgUbWvmQ.js +0 -1
  52. package/dist/_chunks/fr-BXfxIXq1.js +0 -1
  53. package/dist/_chunks/index-Bpnqk6JP.js +0 -1
  54. package/dist/_chunks/index-CFIjHfkZ.js +0 -2153
  55. package/dist/_chunks/index-CHDv123w.js +0 -44
  56. package/dist/_chunks/index-pLgOJz-6.mjs +0 -5718
  57. package/dist/_chunks/pl-Bl4yP3sZ.js +0 -1
  58. package/dist/_chunks/pt-BR-D9T5g0JT.js +0 -1
  59. package/dist/_chunks/ru-DIZ4pV4l.js +0 -1
  60. package/dist/_chunks/tr-Dl2hdLCx.js +0 -1
  61. package/dist/_chunks/zh-Hans-BZhnqfei.js +0 -1
@@ -0,0 +1,2026 @@
1
+ import { jsx as _, jsxs as Ae } from "react/jsx-runtime";
2
+ import { ab as tn, ac as $r, l as wr, ad as nn, ae as it, af as an, ag as ee, ah as Rr, ai as lt, p as on, aj as V, F as ln, ak as un, T as cn, e as Cr } from "./index-Bi2NddA5.mjs";
3
+ import { useQuery as fn, QueryClientProvider as sn, QueryClient as pn } from "@tanstack/react-query";
4
+ import * as oe from "react";
5
+ import { useMemo as ut, createContext as yn, useState as Tr } from "react";
6
+ import { getFetchClient as dn, useRBAC as mn } from "@strapi/strapi/admin";
7
+ import { z as o } from "zod";
8
+ var ce = TypeError;
9
+ const vn = {}, gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10
+ __proto__: null,
11
+ default: vn
12
+ }, Symbol.toStringTag, { value: "Module" })), hn = /* @__PURE__ */ tn(gn);
13
+ var dr = typeof Map == "function" && Map.prototype, Le = Object.getOwnPropertyDescriptor && dr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Re = dr && Le && typeof Le.get == "function" ? Le.get : null, _r = dr && Map.prototype.forEach, mr = typeof Set == "function" && Set.prototype, Be = Object.getOwnPropertyDescriptor && mr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ce = mr && Be && typeof Be.get == "function" ? Be.get : null, Ir = mr && Set.prototype.forEach, Sn = typeof WeakMap == "function" && WeakMap.prototype, se = Sn ? WeakMap.prototype.has : null, bn = typeof WeakSet == "function" && WeakSet.prototype, pe = bn ? WeakSet.prototype.has : null, An = typeof WeakRef == "function" && WeakRef.prototype, Nr = An ? WeakRef.prototype.deref : null, En = Boolean.prototype.valueOf, On = Object.prototype.toString, Pn = Function.prototype.toString, $n = String.prototype.match, vr = String.prototype.slice, H = String.prototype.replace, wn = String.prototype.toUpperCase, xr = String.prototype.toLowerCase, ct = RegExp.prototype.test, Fr = Array.prototype.concat, L = Array.prototype.join, Rn = Array.prototype.slice, Mr = Math.floor, ar = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ue = Object.getOwnPropertySymbols, or = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ie = typeof Symbol == "function" && typeof Symbol.iterator == "object", ye = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ie || !0) ? Symbol.toStringTag : null, ft = Object.prototype.propertyIsEnumerable, Dr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
14
+ return r.__proto__;
15
+ } : null);
16
+ function Lr(r, e) {
17
+ if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || ct.call(/e/, e))
18
+ return e;
19
+ var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
20
+ if (typeof r == "number") {
21
+ var n = r < 0 ? -Mr(-r) : Mr(r);
22
+ if (n !== r) {
23
+ var a = String(n), i = vr.call(e, a.length + 1);
24
+ return H.call(a, t, "$&_") + "." + H.call(H.call(i, /([0-9]{3})/g, "$&_"), /_$/, "");
25
+ }
26
+ }
27
+ return H.call(e, t, "$&_");
28
+ }
29
+ var ir = hn, Br = ir.custom, Ur = yt(Br) ? Br : null, st = {
30
+ __proto__: null,
31
+ double: '"',
32
+ single: "'"
33
+ }, Cn = {
34
+ __proto__: null,
35
+ double: /(["\\])/g,
36
+ single: /(['\\])/g
37
+ }, Ne = function r(e, t, n, a) {
38
+ var i = t || {};
39
+ if (U(i, "quoteStyle") && !U(st, i.quoteStyle))
40
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
41
+ if (U(i, "maxStringLength") && (typeof i.maxStringLength == "number" ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0 : i.maxStringLength !== null))
42
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
43
+ var c = U(i, "customInspect") ? i.customInspect : !0;
44
+ if (typeof c != "boolean" && c !== "symbol")
45
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
46
+ if (U(i, "indent") && i.indent !== null && i.indent !== " " && !(parseInt(i.indent, 10) === i.indent && i.indent > 0))
47
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
48
+ if (U(i, "numericSeparator") && typeof i.numericSeparator != "boolean")
49
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
50
+ var l = i.numericSeparator;
51
+ if (typeof e > "u")
52
+ return "undefined";
53
+ if (e === null)
54
+ return "null";
55
+ if (typeof e == "boolean")
56
+ return e ? "true" : "false";
57
+ if (typeof e == "string")
58
+ return mt(e, i);
59
+ if (typeof e == "number") {
60
+ if (e === 0)
61
+ return 1 / 0 / e > 0 ? "0" : "-0";
62
+ var f = String(e);
63
+ return l ? Lr(e, f) : f;
64
+ }
65
+ if (typeof e == "bigint") {
66
+ var u = String(e) + "n";
67
+ return l ? Lr(e, u) : u;
68
+ }
69
+ var p = typeof i.depth > "u" ? 5 : i.depth;
70
+ if (typeof n > "u" && (n = 0), n >= p && p > 0 && typeof e == "object")
71
+ return lr(e) ? "[Array]" : "[Object]";
72
+ var y = zn(i, n);
73
+ if (typeof a > "u")
74
+ a = [];
75
+ else if (dt(a, e) >= 0)
76
+ return "[Circular]";
77
+ function m(x, G, Z) {
78
+ if (G && (a = Rn.call(a), a.push(G)), Z) {
79
+ var j = {
80
+ depth: i.depth
81
+ };
82
+ return U(i, "quoteStyle") && (j.quoteStyle = i.quoteStyle), r(x, j, n + 1, a);
83
+ }
84
+ return r(x, i, n + 1, a);
85
+ }
86
+ if (typeof e == "function" && !qr(e)) {
87
+ var h = Ln(e), v = Ee(e, m);
88
+ return "[Function" + (h ? ": " + h : " (anonymous)") + "]" + (v.length > 0 ? " { " + L.call(v, ", ") + " }" : "");
89
+ }
90
+ if (yt(e)) {
91
+ var P = ie ? H.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : or.call(e);
92
+ return typeof e == "object" && !ie ? fe(P) : P;
93
+ }
94
+ if (Gn(e)) {
95
+ for (var C = "<" + xr.call(String(e.nodeName)), g = e.attributes || [], I = 0; I < g.length; I++)
96
+ C += " " + g[I].name + "=" + pt(Tn(g[I].value), "double", i);
97
+ return C += ">", e.childNodes && e.childNodes.length && (C += "..."), C += "</" + xr.call(String(e.nodeName)) + ">", C;
98
+ }
99
+ if (lr(e)) {
100
+ if (e.length === 0)
101
+ return "[]";
102
+ var O = Ee(e, m);
103
+ return y && !Vn(O) ? "[" + ur(O, y) + "]" : "[ " + L.call(O, ", ") + " ]";
104
+ }
105
+ if (In(e)) {
106
+ var $ = Ee(e, m);
107
+ return !("cause" in Error.prototype) && "cause" in e && !ft.call(e, "cause") ? "{ [" + String(e) + "] " + L.call(Fr.call("[cause]: " + m(e.cause), $), ", ") + " }" : $.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + L.call($, ", ") + " }";
108
+ }
109
+ if (typeof e == "object" && c) {
110
+ if (Ur && typeof e[Ur] == "function" && ir)
111
+ return ir(e, { depth: p - n });
112
+ if (c !== "symbol" && typeof e.inspect == "function")
113
+ return e.inspect();
114
+ }
115
+ if (Bn(e)) {
116
+ var s = [];
117
+ return _r && _r.call(e, function(x, G) {
118
+ s.push(m(G, e, !0) + " => " + m(x, e));
119
+ }), Wr("Map", Re.call(e), s, y);
120
+ }
121
+ if (Wn(e)) {
122
+ var F = [];
123
+ return Ir && Ir.call(e, function(x) {
124
+ F.push(m(x, e));
125
+ }), Wr("Set", Ce.call(e), F, y);
126
+ }
127
+ if (Un(e))
128
+ return qe("WeakMap");
129
+ if (kn(e))
130
+ return qe("WeakSet");
131
+ if (qn(e))
132
+ return qe("WeakRef");
133
+ if (xn(e))
134
+ return fe(m(Number(e)));
135
+ if (Mn(e))
136
+ return fe(m(ar.call(e)));
137
+ if (Fn(e))
138
+ return fe(En.call(e));
139
+ if (Nn(e))
140
+ return fe(m(String(e)));
141
+ if (typeof window < "u" && e === window)
142
+ return "{ [object Window] }";
143
+ if (typeof globalThis < "u" && e === globalThis || typeof $r < "u" && e === $r)
144
+ return "{ [object globalThis] }";
145
+ if (!_n(e) && !qr(e)) {
146
+ var B = Ee(e, m), M = Dr ? Dr(e) === Object.prototype : e instanceof Object || e.constructor === Object, W = e instanceof Object ? "" : "null prototype", k = !M && ye && Object(e) === e && ye in e ? vr.call(Y(e), 8, -1) : W ? "Object" : "", K = M || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", N = K + (k || W ? "[" + L.call(Fr.call([], k || [], W || []), ": ") + "] " : "");
147
+ return B.length === 0 ? N + "{}" : y ? N + "{" + ur(B, y) + "}" : N + "{ " + L.call(B, ", ") + " }";
148
+ }
149
+ return String(e);
150
+ };
151
+ function pt(r, e, t) {
152
+ var n = t.quoteStyle || e, a = st[n];
153
+ return a + r + a;
154
+ }
155
+ function Tn(r) {
156
+ return H.call(String(r), /"/g, "&quot;");
157
+ }
158
+ function X(r) {
159
+ return !ye || !(typeof r == "object" && (ye in r || typeof r[ye] < "u"));
160
+ }
161
+ function lr(r) {
162
+ return Y(r) === "[object Array]" && X(r);
163
+ }
164
+ function _n(r) {
165
+ return Y(r) === "[object Date]" && X(r);
166
+ }
167
+ function qr(r) {
168
+ return Y(r) === "[object RegExp]" && X(r);
169
+ }
170
+ function In(r) {
171
+ return Y(r) === "[object Error]" && X(r);
172
+ }
173
+ function Nn(r) {
174
+ return Y(r) === "[object String]" && X(r);
175
+ }
176
+ function xn(r) {
177
+ return Y(r) === "[object Number]" && X(r);
178
+ }
179
+ function Fn(r) {
180
+ return Y(r) === "[object Boolean]" && X(r);
181
+ }
182
+ function yt(r) {
183
+ if (ie)
184
+ return r && typeof r == "object" && r instanceof Symbol;
185
+ if (typeof r == "symbol")
186
+ return !0;
187
+ if (!r || typeof r != "object" || !or)
188
+ return !1;
189
+ try {
190
+ return or.call(r), !0;
191
+ } catch {
192
+ }
193
+ return !1;
194
+ }
195
+ function Mn(r) {
196
+ if (!r || typeof r != "object" || !ar)
197
+ return !1;
198
+ try {
199
+ return ar.call(r), !0;
200
+ } catch {
201
+ }
202
+ return !1;
203
+ }
204
+ var Dn = Object.prototype.hasOwnProperty || function(r) {
205
+ return r in this;
206
+ };
207
+ function U(r, e) {
208
+ return Dn.call(r, e);
209
+ }
210
+ function Y(r) {
211
+ return On.call(r);
212
+ }
213
+ function Ln(r) {
214
+ if (r.name)
215
+ return r.name;
216
+ var e = $n.call(Pn.call(r), /^function\s*([\w$]+)/);
217
+ return e ? e[1] : null;
218
+ }
219
+ function dt(r, e) {
220
+ if (r.indexOf)
221
+ return r.indexOf(e);
222
+ for (var t = 0, n = r.length; t < n; t++)
223
+ if (r[t] === e)
224
+ return t;
225
+ return -1;
226
+ }
227
+ function Bn(r) {
228
+ if (!Re || !r || typeof r != "object")
229
+ return !1;
230
+ try {
231
+ Re.call(r);
232
+ try {
233
+ Ce.call(r);
234
+ } catch {
235
+ return !0;
236
+ }
237
+ return r instanceof Map;
238
+ } catch {
239
+ }
240
+ return !1;
241
+ }
242
+ function Un(r) {
243
+ if (!se || !r || typeof r != "object")
244
+ return !1;
245
+ try {
246
+ se.call(r, se);
247
+ try {
248
+ pe.call(r, pe);
249
+ } catch {
250
+ return !0;
251
+ }
252
+ return r instanceof WeakMap;
253
+ } catch {
254
+ }
255
+ return !1;
256
+ }
257
+ function qn(r) {
258
+ if (!Nr || !r || typeof r != "object")
259
+ return !1;
260
+ try {
261
+ return Nr.call(r), !0;
262
+ } catch {
263
+ }
264
+ return !1;
265
+ }
266
+ function Wn(r) {
267
+ if (!Ce || !r || typeof r != "object")
268
+ return !1;
269
+ try {
270
+ Ce.call(r);
271
+ try {
272
+ Re.call(r);
273
+ } catch {
274
+ return !0;
275
+ }
276
+ return r instanceof Set;
277
+ } catch {
278
+ }
279
+ return !1;
280
+ }
281
+ function kn(r) {
282
+ if (!pe || !r || typeof r != "object")
283
+ return !1;
284
+ try {
285
+ pe.call(r, pe);
286
+ try {
287
+ se.call(r, se);
288
+ } catch {
289
+ return !0;
290
+ }
291
+ return r instanceof WeakSet;
292
+ } catch {
293
+ }
294
+ return !1;
295
+ }
296
+ function Gn(r) {
297
+ return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
298
+ }
299
+ function mt(r, e) {
300
+ if (r.length > e.maxStringLength) {
301
+ var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
302
+ return mt(vr.call(r, 0, e.maxStringLength), e) + n;
303
+ }
304
+ var a = Cn[e.quoteStyle || "single"];
305
+ a.lastIndex = 0;
306
+ var i = H.call(H.call(r, a, "\\$1"), /[\x00-\x1f]/g, jn);
307
+ return pt(i, "single", e);
308
+ }
309
+ function jn(r) {
310
+ var e = r.charCodeAt(0), t = {
311
+ 8: "b",
312
+ 9: "t",
313
+ 10: "n",
314
+ 12: "f",
315
+ 13: "r"
316
+ }[e];
317
+ return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + wn.call(e.toString(16));
318
+ }
319
+ function fe(r) {
320
+ return "Object(" + r + ")";
321
+ }
322
+ function qe(r) {
323
+ return r + " { ? }";
324
+ }
325
+ function Wr(r, e, t, n) {
326
+ var a = n ? ur(t, n) : L.call(t, ", ");
327
+ return r + " (" + e + ") {" + a + "}";
328
+ }
329
+ function Vn(r) {
330
+ for (var e = 0; e < r.length; e++)
331
+ if (dt(r[e], `
332
+ `) >= 0)
333
+ return !1;
334
+ return !0;
335
+ }
336
+ function zn(r, e) {
337
+ var t;
338
+ if (r.indent === " ")
339
+ t = " ";
340
+ else if (typeof r.indent == "number" && r.indent > 0)
341
+ t = L.call(Array(r.indent + 1), " ");
342
+ else
343
+ return null;
344
+ return {
345
+ base: t,
346
+ prev: L.call(Array(e + 1), t)
347
+ };
348
+ }
349
+ function ur(r, e) {
350
+ if (r.length === 0)
351
+ return "";
352
+ var t = `
353
+ ` + e.prev + e.base;
354
+ return t + L.call(r, "," + t) + `
355
+ ` + e.prev;
356
+ }
357
+ function Ee(r, e) {
358
+ var t = lr(r), n = [];
359
+ if (t) {
360
+ n.length = r.length;
361
+ for (var a = 0; a < r.length; a++)
362
+ n[a] = U(r, a) ? e(r[a], r) : "";
363
+ }
364
+ var i = typeof Ue == "function" ? Ue(r) : [], c;
365
+ if (ie) {
366
+ c = {};
367
+ for (var l = 0; l < i.length; l++)
368
+ c["$" + i[l]] = i[l];
369
+ }
370
+ for (var f in r)
371
+ U(r, f) && (t && String(Number(f)) === f && f < r.length || ie && c["$" + f] instanceof Symbol || (ct.call(/[^\w$]/, f) ? n.push(e(f, r) + ": " + e(r[f], r)) : n.push(f + ": " + e(r[f], r))));
372
+ if (typeof Ue == "function")
373
+ for (var u = 0; u < i.length; u++)
374
+ ft.call(r, i[u]) && n.push("[" + e(i[u]) + "]: " + e(r[i[u]], r));
375
+ return n;
376
+ }
377
+ var Hn = Ne, Yn = ce, xe = function(r, e, t) {
378
+ for (var n = r, a; (a = n.next) != null; n = a)
379
+ if (a.key === e)
380
+ return n.next = a.next, t || (a.next = /** @type {NonNullable<typeof list.next>} */
381
+ r.next, r.next = a), a;
382
+ }, Kn = function(r, e) {
383
+ if (r) {
384
+ var t = xe(r, e);
385
+ return t && t.value;
386
+ }
387
+ }, Qn = function(r, e, t) {
388
+ var n = xe(r, e);
389
+ n ? n.value = t : r.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
390
+ {
391
+ // eslint-disable-line no-param-reassign, no-extra-parens
392
+ key: e,
393
+ next: r.next,
394
+ value: t
395
+ };
396
+ }, Jn = function(r, e) {
397
+ return r ? !!xe(r, e) : !1;
398
+ }, Xn = function(r, e) {
399
+ if (r)
400
+ return xe(r, e, !0);
401
+ }, Zn = function() {
402
+ var e, t = {
403
+ assert: function(n) {
404
+ if (!t.has(n))
405
+ throw new Yn("Side channel does not contain " + Hn(n));
406
+ },
407
+ delete: function(n) {
408
+ var a = e && e.next, i = Xn(e, n);
409
+ return i && a && a === i && (e = void 0), !!i;
410
+ },
411
+ get: function(n) {
412
+ return Kn(e, n);
413
+ },
414
+ has: function(n) {
415
+ return Jn(e, n);
416
+ },
417
+ set: function(n, a) {
418
+ e || (e = {
419
+ next: void 0
420
+ }), Qn(
421
+ /** @type {NonNullable<typeof $o>} */
422
+ e,
423
+ n,
424
+ a
425
+ );
426
+ }
427
+ };
428
+ return t;
429
+ }, vt = Object, ea = Error, ra = EvalError, ta = RangeError, na = ReferenceError, aa = SyntaxError, oa = URIError, ia = Math.abs, la = Math.floor, ua = Math.max, ca = Math.min, fa = Math.pow, sa = Math.round, pa = Number.isNaN || function(e) {
430
+ return e !== e;
431
+ }, ya = pa, da = function(e) {
432
+ return ya(e) || e === 0 ? e : e < 0 ? -1 : 1;
433
+ }, ma = Object.getOwnPropertyDescriptor, Pe = ma;
434
+ if (Pe)
435
+ try {
436
+ Pe([], "length");
437
+ } catch {
438
+ Pe = null;
439
+ }
440
+ var gt = Pe, $e = Object.defineProperty || !1;
441
+ if ($e)
442
+ try {
443
+ $e({}, "a", { value: 1 });
444
+ } catch {
445
+ $e = !1;
446
+ }
447
+ var va = $e, We, kr;
448
+ function ga() {
449
+ return kr || (kr = 1, We = function() {
450
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
451
+ return !1;
452
+ if (typeof Symbol.iterator == "symbol")
453
+ return !0;
454
+ var e = {}, t = Symbol("test"), n = Object(t);
455
+ if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
456
+ return !1;
457
+ var a = 42;
458
+ e[t] = a;
459
+ for (var i in e)
460
+ return !1;
461
+ if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
462
+ return !1;
463
+ var c = Object.getOwnPropertySymbols(e);
464
+ if (c.length !== 1 || c[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
465
+ return !1;
466
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
467
+ var l = (
468
+ /** @type {PropertyDescriptor} */
469
+ Object.getOwnPropertyDescriptor(e, t)
470
+ );
471
+ if (l.value !== a || l.enumerable !== !0)
472
+ return !1;
473
+ }
474
+ return !0;
475
+ }), We;
476
+ }
477
+ var ke, Gr;
478
+ function ha() {
479
+ if (Gr) return ke;
480
+ Gr = 1;
481
+ var r = typeof Symbol < "u" && Symbol, e = ga();
482
+ return ke = function() {
483
+ return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
484
+ }, ke;
485
+ }
486
+ var Ge, jr;
487
+ function ht() {
488
+ return jr || (jr = 1, Ge = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ge;
489
+ }
490
+ var je, Vr;
491
+ function St() {
492
+ if (Vr) return je;
493
+ Vr = 1;
494
+ var r = vt;
495
+ return je = r.getPrototypeOf || null, je;
496
+ }
497
+ var Ve, zr;
498
+ function Sa() {
499
+ if (zr) return Ve;
500
+ zr = 1;
501
+ var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, n = "[object Function]", a = function(f, u) {
502
+ for (var p = [], y = 0; y < f.length; y += 1)
503
+ p[y] = f[y];
504
+ for (var m = 0; m < u.length; m += 1)
505
+ p[m + f.length] = u[m];
506
+ return p;
507
+ }, i = function(f, u) {
508
+ for (var p = [], y = u, m = 0; y < f.length; y += 1, m += 1)
509
+ p[m] = f[y];
510
+ return p;
511
+ }, c = function(l, f) {
512
+ for (var u = "", p = 0; p < l.length; p += 1)
513
+ u += l[p], p + 1 < l.length && (u += f);
514
+ return u;
515
+ };
516
+ return Ve = function(f) {
517
+ var u = this;
518
+ if (typeof u != "function" || e.apply(u) !== n)
519
+ throw new TypeError(r + u);
520
+ for (var p = i(arguments, 1), y, m = function() {
521
+ if (this instanceof y) {
522
+ var g = u.apply(
523
+ this,
524
+ a(p, arguments)
525
+ );
526
+ return Object(g) === g ? g : this;
527
+ }
528
+ return u.apply(
529
+ f,
530
+ a(p, arguments)
531
+ );
532
+ }, h = t(0, u.length - p.length), v = [], P = 0; P < h; P++)
533
+ v[P] = "$" + P;
534
+ if (y = Function("binder", "return function (" + c(v, ",") + "){ return binder.apply(this,arguments); }")(m), u.prototype) {
535
+ var C = function() {
536
+ };
537
+ C.prototype = u.prototype, y.prototype = new C(), C.prototype = null;
538
+ }
539
+ return y;
540
+ }, Ve;
541
+ }
542
+ var ze, Hr;
543
+ function Fe() {
544
+ if (Hr) return ze;
545
+ Hr = 1;
546
+ var r = Sa();
547
+ return ze = Function.prototype.bind || r, ze;
548
+ }
549
+ var He, Yr;
550
+ function gr() {
551
+ return Yr || (Yr = 1, He = Function.prototype.call), He;
552
+ }
553
+ var Ye, Kr;
554
+ function bt() {
555
+ return Kr || (Kr = 1, Ye = Function.prototype.apply), Ye;
556
+ }
557
+ var ba = typeof Reflect < "u" && Reflect && Reflect.apply, Aa = Fe(), Ea = bt(), Oa = gr(), Pa = ba, $a = Pa || Aa.call(Oa, Ea), wa = Fe(), Ra = ce, Ca = gr(), Ta = $a, At = function(e) {
558
+ if (e.length < 1 || typeof e[0] != "function")
559
+ throw new Ra("a function is required");
560
+ return Ta(wa, Ca, e);
561
+ }, Ke, Qr;
562
+ function _a() {
563
+ if (Qr) return Ke;
564
+ Qr = 1;
565
+ var r = At, e = gt, t;
566
+ try {
567
+ t = /** @type {{ __proto__?: typeof Array.prototype }} */
568
+ [].__proto__ === Array.prototype;
569
+ } catch (c) {
570
+ if (!c || typeof c != "object" || !("code" in c) || c.code !== "ERR_PROTO_ACCESS")
571
+ throw c;
572
+ }
573
+ var n = !!t && e && e(
574
+ Object.prototype,
575
+ /** @type {keyof typeof Object.prototype} */
576
+ "__proto__"
577
+ ), a = Object, i = a.getPrototypeOf;
578
+ return Ke = n && typeof n.get == "function" ? r([n.get]) : typeof i == "function" ? (
579
+ /** @type {import('./get')} */
580
+ function(l) {
581
+ return i(l == null ? l : a(l));
582
+ }
583
+ ) : !1, Ke;
584
+ }
585
+ var Qe, Jr;
586
+ function Ia() {
587
+ if (Jr) return Qe;
588
+ Jr = 1;
589
+ var r = ht(), e = St(), t = _a();
590
+ return Qe = r ? function(a) {
591
+ return r(a);
592
+ } : e ? function(a) {
593
+ if (!a || typeof a != "object" && typeof a != "function")
594
+ throw new TypeError("getProto: not an object");
595
+ return e(a);
596
+ } : t ? function(a) {
597
+ return t(a);
598
+ } : null, Qe;
599
+ }
600
+ var Je, Xr;
601
+ function Na() {
602
+ if (Xr) return Je;
603
+ Xr = 1;
604
+ var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Fe();
605
+ return Je = t.call(r, e), Je;
606
+ }
607
+ var S, xa = vt, Fa = ea, Ma = ra, Da = ta, La = na, le = aa, ae = ce, Ba = oa, Ua = ia, qa = la, Wa = ua, ka = ca, Ga = fa, ja = sa, Va = da, Et = Function, Xe = function(r) {
608
+ try {
609
+ return Et('"use strict"; return (' + r + ").constructor;")();
610
+ } catch {
611
+ }
612
+ }, me = gt, za = va, Ze = function() {
613
+ throw new ae();
614
+ }, Ha = me ? function() {
615
+ try {
616
+ return arguments.callee, Ze;
617
+ } catch {
618
+ try {
619
+ return me(arguments, "callee").get;
620
+ } catch {
621
+ return Ze;
622
+ }
623
+ }
624
+ }() : Ze, re = ha()(), R = Ia(), Ya = St(), Ka = ht(), Ot = bt(), ve = gr(), ne = {}, Qa = typeof Uint8Array > "u" || !R ? S : R(Uint8Array), J = {
625
+ __proto__: null,
626
+ "%AggregateError%": typeof AggregateError > "u" ? S : AggregateError,
627
+ "%Array%": Array,
628
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? S : ArrayBuffer,
629
+ "%ArrayIteratorPrototype%": re && R ? R([][Symbol.iterator]()) : S,
630
+ "%AsyncFromSyncIteratorPrototype%": S,
631
+ "%AsyncFunction%": ne,
632
+ "%AsyncGenerator%": ne,
633
+ "%AsyncGeneratorFunction%": ne,
634
+ "%AsyncIteratorPrototype%": ne,
635
+ "%Atomics%": typeof Atomics > "u" ? S : Atomics,
636
+ "%BigInt%": typeof BigInt > "u" ? S : BigInt,
637
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? S : BigInt64Array,
638
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? S : BigUint64Array,
639
+ "%Boolean%": Boolean,
640
+ "%DataView%": typeof DataView > "u" ? S : DataView,
641
+ "%Date%": Date,
642
+ "%decodeURI%": decodeURI,
643
+ "%decodeURIComponent%": decodeURIComponent,
644
+ "%encodeURI%": encodeURI,
645
+ "%encodeURIComponent%": encodeURIComponent,
646
+ "%Error%": Fa,
647
+ "%eval%": eval,
648
+ // eslint-disable-line no-eval
649
+ "%EvalError%": Ma,
650
+ "%Float16Array%": typeof Float16Array > "u" ? S : Float16Array,
651
+ "%Float32Array%": typeof Float32Array > "u" ? S : Float32Array,
652
+ "%Float64Array%": typeof Float64Array > "u" ? S : Float64Array,
653
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? S : FinalizationRegistry,
654
+ "%Function%": Et,
655
+ "%GeneratorFunction%": ne,
656
+ "%Int8Array%": typeof Int8Array > "u" ? S : Int8Array,
657
+ "%Int16Array%": typeof Int16Array > "u" ? S : Int16Array,
658
+ "%Int32Array%": typeof Int32Array > "u" ? S : Int32Array,
659
+ "%isFinite%": isFinite,
660
+ "%isNaN%": isNaN,
661
+ "%IteratorPrototype%": re && R ? R(R([][Symbol.iterator]())) : S,
662
+ "%JSON%": typeof JSON == "object" ? JSON : S,
663
+ "%Map%": typeof Map > "u" ? S : Map,
664
+ "%MapIteratorPrototype%": typeof Map > "u" || !re || !R ? S : R((/* @__PURE__ */ new Map())[Symbol.iterator]()),
665
+ "%Math%": Math,
666
+ "%Number%": Number,
667
+ "%Object%": xa,
668
+ "%Object.getOwnPropertyDescriptor%": me,
669
+ "%parseFloat%": parseFloat,
670
+ "%parseInt%": parseInt,
671
+ "%Promise%": typeof Promise > "u" ? S : Promise,
672
+ "%Proxy%": typeof Proxy > "u" ? S : Proxy,
673
+ "%RangeError%": Da,
674
+ "%ReferenceError%": La,
675
+ "%Reflect%": typeof Reflect > "u" ? S : Reflect,
676
+ "%RegExp%": RegExp,
677
+ "%Set%": typeof Set > "u" ? S : Set,
678
+ "%SetIteratorPrototype%": typeof Set > "u" || !re || !R ? S : R((/* @__PURE__ */ new Set())[Symbol.iterator]()),
679
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? S : SharedArrayBuffer,
680
+ "%String%": String,
681
+ "%StringIteratorPrototype%": re && R ? R(""[Symbol.iterator]()) : S,
682
+ "%Symbol%": re ? Symbol : S,
683
+ "%SyntaxError%": le,
684
+ "%ThrowTypeError%": Ha,
685
+ "%TypedArray%": Qa,
686
+ "%TypeError%": ae,
687
+ "%Uint8Array%": typeof Uint8Array > "u" ? S : Uint8Array,
688
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? S : Uint8ClampedArray,
689
+ "%Uint16Array%": typeof Uint16Array > "u" ? S : Uint16Array,
690
+ "%Uint32Array%": typeof Uint32Array > "u" ? S : Uint32Array,
691
+ "%URIError%": Ba,
692
+ "%WeakMap%": typeof WeakMap > "u" ? S : WeakMap,
693
+ "%WeakRef%": typeof WeakRef > "u" ? S : WeakRef,
694
+ "%WeakSet%": typeof WeakSet > "u" ? S : WeakSet,
695
+ "%Function.prototype.call%": ve,
696
+ "%Function.prototype.apply%": Ot,
697
+ "%Object.defineProperty%": za,
698
+ "%Object.getPrototypeOf%": Ya,
699
+ "%Math.abs%": Ua,
700
+ "%Math.floor%": qa,
701
+ "%Math.max%": Wa,
702
+ "%Math.min%": ka,
703
+ "%Math.pow%": Ga,
704
+ "%Math.round%": ja,
705
+ "%Math.sign%": Va,
706
+ "%Reflect.getPrototypeOf%": Ka
707
+ };
708
+ if (R)
709
+ try {
710
+ null.error;
711
+ } catch (r) {
712
+ var Ja = R(R(r));
713
+ J["%Error.prototype%"] = Ja;
714
+ }
715
+ var Xa = function r(e) {
716
+ var t;
717
+ if (e === "%AsyncFunction%")
718
+ t = Xe("async function () {}");
719
+ else if (e === "%GeneratorFunction%")
720
+ t = Xe("function* () {}");
721
+ else if (e === "%AsyncGeneratorFunction%")
722
+ t = Xe("async function* () {}");
723
+ else if (e === "%AsyncGenerator%") {
724
+ var n = r("%AsyncGeneratorFunction%");
725
+ n && (t = n.prototype);
726
+ } else if (e === "%AsyncIteratorPrototype%") {
727
+ var a = r("%AsyncGenerator%");
728
+ a && R && (t = R(a.prototype));
729
+ }
730
+ return J[e] = t, t;
731
+ }, Zr = {
732
+ __proto__: null,
733
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
734
+ "%ArrayPrototype%": ["Array", "prototype"],
735
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
736
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
737
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
738
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
739
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
740
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
741
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
742
+ "%BooleanPrototype%": ["Boolean", "prototype"],
743
+ "%DataViewPrototype%": ["DataView", "prototype"],
744
+ "%DatePrototype%": ["Date", "prototype"],
745
+ "%ErrorPrototype%": ["Error", "prototype"],
746
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
747
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
748
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
749
+ "%FunctionPrototype%": ["Function", "prototype"],
750
+ "%Generator%": ["GeneratorFunction", "prototype"],
751
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
752
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
753
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
754
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
755
+ "%JSONParse%": ["JSON", "parse"],
756
+ "%JSONStringify%": ["JSON", "stringify"],
757
+ "%MapPrototype%": ["Map", "prototype"],
758
+ "%NumberPrototype%": ["Number", "prototype"],
759
+ "%ObjectPrototype%": ["Object", "prototype"],
760
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
761
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
762
+ "%PromisePrototype%": ["Promise", "prototype"],
763
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
764
+ "%Promise_all%": ["Promise", "all"],
765
+ "%Promise_reject%": ["Promise", "reject"],
766
+ "%Promise_resolve%": ["Promise", "resolve"],
767
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
768
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
769
+ "%RegExpPrototype%": ["RegExp", "prototype"],
770
+ "%SetPrototype%": ["Set", "prototype"],
771
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
772
+ "%StringPrototype%": ["String", "prototype"],
773
+ "%SymbolPrototype%": ["Symbol", "prototype"],
774
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
775
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
776
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
777
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
778
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
779
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
780
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
781
+ "%URIErrorPrototype%": ["URIError", "prototype"],
782
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
783
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
784
+ }, ge = Fe(), Te = Na(), Za = ge.call(ve, Array.prototype.concat), eo = ge.call(Ot, Array.prototype.splice), et = ge.call(ve, String.prototype.replace), _e = ge.call(ve, String.prototype.slice), ro = ge.call(ve, RegExp.prototype.exec), to = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, no = /\\(\\)?/g, ao = function(e) {
785
+ var t = _e(e, 0, 1), n = _e(e, -1);
786
+ if (t === "%" && n !== "%")
787
+ throw new le("invalid intrinsic syntax, expected closing `%`");
788
+ if (n === "%" && t !== "%")
789
+ throw new le("invalid intrinsic syntax, expected opening `%`");
790
+ var a = [];
791
+ return et(e, to, function(i, c, l, f) {
792
+ a[a.length] = l ? et(f, no, "$1") : c || i;
793
+ }), a;
794
+ }, oo = function(e, t) {
795
+ var n = e, a;
796
+ if (Te(Zr, n) && (a = Zr[n], n = "%" + a[0] + "%"), Te(J, n)) {
797
+ var i = J[n];
798
+ if (i === ne && (i = Xa(n)), typeof i > "u" && !t)
799
+ throw new ae("intrinsic " + e + " exists, but is not available. Please file an issue!");
800
+ return {
801
+ alias: a,
802
+ name: n,
803
+ value: i
804
+ };
805
+ }
806
+ throw new le("intrinsic " + e + " does not exist!");
807
+ }, hr = function(e, t) {
808
+ if (typeof e != "string" || e.length === 0)
809
+ throw new ae("intrinsic name must be a non-empty string");
810
+ if (arguments.length > 1 && typeof t != "boolean")
811
+ throw new ae('"allowMissing" argument must be a boolean');
812
+ if (ro(/^%?[^%]*%?$/, e) === null)
813
+ throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
814
+ var n = ao(e), a = n.length > 0 ? n[0] : "", i = oo("%" + a + "%", t), c = i.name, l = i.value, f = !1, u = i.alias;
815
+ u && (a = u[0], eo(n, Za([0, 1], u)));
816
+ for (var p = 1, y = !0; p < n.length; p += 1) {
817
+ var m = n[p], h = _e(m, 0, 1), v = _e(m, -1);
818
+ if ((h === '"' || h === "'" || h === "`" || v === '"' || v === "'" || v === "`") && h !== v)
819
+ throw new le("property names with quotes must have matching quotes");
820
+ if ((m === "constructor" || !y) && (f = !0), a += "." + m, c = "%" + a + "%", Te(J, c))
821
+ l = J[c];
822
+ else if (l != null) {
823
+ if (!(m in l)) {
824
+ if (!t)
825
+ throw new ae("base intrinsic for " + e + " exists, but the property is not available.");
826
+ return;
827
+ }
828
+ if (me && p + 1 >= n.length) {
829
+ var P = me(l, m);
830
+ y = !!P, y && "get" in P && !("originalValue" in P.get) ? l = P.get : l = l[m];
831
+ } else
832
+ y = Te(l, m), l = l[m];
833
+ y && !f && (J[c] = l);
834
+ }
835
+ }
836
+ return l;
837
+ }, Pt = hr, $t = At, io = $t([Pt("%String.prototype.indexOf%")]), wt = function(e, t) {
838
+ var n = (
839
+ /** @type {(this: unknown, ...args: unknown[]) => unknown} */
840
+ Pt(e, !!t)
841
+ );
842
+ return typeof n == "function" && io(e, ".prototype.") > -1 ? $t(
843
+ /** @type {const} */
844
+ [n]
845
+ ) : n;
846
+ }, lo = hr, he = wt, uo = Ne, co = ce, rt = lo("%Map%", !0), fo = he("Map.prototype.get", !0), so = he("Map.prototype.set", !0), po = he("Map.prototype.has", !0), yo = he("Map.prototype.delete", !0), mo = he("Map.prototype.size", !0), Rt = !!rt && /** @type {Exclude<import('.'), false>} */
847
+ function() {
848
+ var e, t = {
849
+ assert: function(n) {
850
+ if (!t.has(n))
851
+ throw new co("Side channel does not contain " + uo(n));
852
+ },
853
+ delete: function(n) {
854
+ if (e) {
855
+ var a = yo(e, n);
856
+ return mo(e) === 0 && (e = void 0), a;
857
+ }
858
+ return !1;
859
+ },
860
+ get: function(n) {
861
+ if (e)
862
+ return fo(e, n);
863
+ },
864
+ has: function(n) {
865
+ return e ? po(e, n) : !1;
866
+ },
867
+ set: function(n, a) {
868
+ e || (e = new rt()), so(e, n, a);
869
+ }
870
+ };
871
+ return t;
872
+ }, vo = hr, Me = wt, go = Ne, Oe = Rt, ho = ce, te = vo("%WeakMap%", !0), So = Me("WeakMap.prototype.get", !0), bo = Me("WeakMap.prototype.set", !0), Ao = Me("WeakMap.prototype.has", !0), Eo = Me("WeakMap.prototype.delete", !0), Oo = te ? (
873
+ /** @type {Exclude<import('.'), false>} */
874
+ function() {
875
+ var e, t, n = {
876
+ assert: function(a) {
877
+ if (!n.has(a))
878
+ throw new ho("Side channel does not contain " + go(a));
879
+ },
880
+ delete: function(a) {
881
+ if (te && a && (typeof a == "object" || typeof a == "function")) {
882
+ if (e)
883
+ return Eo(e, a);
884
+ } else if (Oe && t)
885
+ return t.delete(a);
886
+ return !1;
887
+ },
888
+ get: function(a) {
889
+ return te && a && (typeof a == "object" || typeof a == "function") && e ? So(e, a) : t && t.get(a);
890
+ },
891
+ has: function(a) {
892
+ return te && a && (typeof a == "object" || typeof a == "function") && e ? Ao(e, a) : !!t && t.has(a);
893
+ },
894
+ set: function(a, i) {
895
+ te && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new te()), bo(e, a, i)) : Oe && (t || (t = Oe()), t.set(a, i));
896
+ }
897
+ };
898
+ return n;
899
+ }
900
+ ) : Oe, Po = ce, $o = Ne, wo = Zn, Ro = Rt, Co = Oo, To = Co || Ro || wo, _o = function() {
901
+ var e, t = {
902
+ assert: function(n) {
903
+ if (!t.has(n))
904
+ throw new Po("Side channel does not contain " + $o(n));
905
+ },
906
+ delete: function(n) {
907
+ return !!e && e.delete(n);
908
+ },
909
+ get: function(n) {
910
+ return e && e.get(n);
911
+ },
912
+ has: function(n) {
913
+ return !!e && e.has(n);
914
+ },
915
+ set: function(n, a) {
916
+ e || (e = To()), e.set(n, a);
917
+ }
918
+ };
919
+ return t;
920
+ }, Io = String.prototype.replace, No = /%20/g, er = {
921
+ RFC1738: "RFC1738",
922
+ RFC3986: "RFC3986"
923
+ }, Sr = {
924
+ default: er.RFC3986,
925
+ formatters: {
926
+ RFC1738: function(r) {
927
+ return Io.call(r, No, "+");
928
+ },
929
+ RFC3986: function(r) {
930
+ return String(r);
931
+ }
932
+ },
933
+ RFC1738: er.RFC1738,
934
+ RFC3986: er.RFC3986
935
+ }, xo = Sr, rr = Object.prototype.hasOwnProperty, Q = Array.isArray, D = function() {
936
+ for (var r = [], e = 0; e < 256; ++e)
937
+ r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
938
+ return r;
939
+ }(), Fo = function(e) {
940
+ for (; e.length > 1; ) {
941
+ var t = e.pop(), n = t.obj[t.prop];
942
+ if (Q(n)) {
943
+ for (var a = [], i = 0; i < n.length; ++i)
944
+ typeof n[i] < "u" && a.push(n[i]);
945
+ t.obj[t.prop] = a;
946
+ }
947
+ }
948
+ }, Ct = function(e, t) {
949
+ for (var n = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = 0; a < e.length; ++a)
950
+ typeof e[a] < "u" && (n[a] = e[a]);
951
+ return n;
952
+ }, Mo = function r(e, t, n) {
953
+ if (!t)
954
+ return e;
955
+ if (typeof t != "object") {
956
+ if (Q(e))
957
+ e.push(t);
958
+ else if (e && typeof e == "object")
959
+ (n && (n.plainObjects || n.allowPrototypes) || !rr.call(Object.prototype, t)) && (e[t] = !0);
960
+ else
961
+ return [e, t];
962
+ return e;
963
+ }
964
+ if (!e || typeof e != "object")
965
+ return [e].concat(t);
966
+ var a = e;
967
+ return Q(e) && !Q(t) && (a = Ct(e, n)), Q(e) && Q(t) ? (t.forEach(function(i, c) {
968
+ if (rr.call(e, c)) {
969
+ var l = e[c];
970
+ l && typeof l == "object" && i && typeof i == "object" ? e[c] = r(l, i, n) : e.push(i);
971
+ } else
972
+ e[c] = i;
973
+ }), e) : Object.keys(t).reduce(function(i, c) {
974
+ var l = t[c];
975
+ return rr.call(i, c) ? i[c] = r(i[c], l, n) : i[c] = l, i;
976
+ }, a);
977
+ }, Do = function(e, t) {
978
+ return Object.keys(t).reduce(function(n, a) {
979
+ return n[a] = t[a], n;
980
+ }, e);
981
+ }, Lo = function(r, e, t) {
982
+ var n = r.replace(/\+/g, " ");
983
+ if (t === "iso-8859-1")
984
+ return n.replace(/%[0-9a-f]{2}/gi, unescape);
985
+ try {
986
+ return decodeURIComponent(n);
987
+ } catch {
988
+ return n;
989
+ }
990
+ }, Bo = function(e, t, n, a, i) {
991
+ if (e.length === 0)
992
+ return e;
993
+ var c = e;
994
+ if (typeof e == "symbol" ? c = Symbol.prototype.toString.call(e) : typeof e != "string" && (c = String(e)), n === "iso-8859-1")
995
+ return escape(c).replace(/%u[0-9a-f]{4}/gi, function(p) {
996
+ return "%26%23" + parseInt(p.slice(2), 16) + "%3B";
997
+ });
998
+ for (var l = "", f = 0; f < c.length; ++f) {
999
+ var u = c.charCodeAt(f);
1000
+ if (u === 45 || u === 46 || u === 95 || u === 126 || u >= 48 && u <= 57 || u >= 65 && u <= 90 || u >= 97 && u <= 122 || i === xo.RFC1738 && (u === 40 || u === 41)) {
1001
+ l += c.charAt(f);
1002
+ continue;
1003
+ }
1004
+ if (u < 128) {
1005
+ l = l + D[u];
1006
+ continue;
1007
+ }
1008
+ if (u < 2048) {
1009
+ l = l + (D[192 | u >> 6] + D[128 | u & 63]);
1010
+ continue;
1011
+ }
1012
+ if (u < 55296 || u >= 57344) {
1013
+ l = l + (D[224 | u >> 12] + D[128 | u >> 6 & 63] + D[128 | u & 63]);
1014
+ continue;
1015
+ }
1016
+ f += 1, u = 65536 + ((u & 1023) << 10 | c.charCodeAt(f) & 1023), l += D[240 | u >> 18] + D[128 | u >> 12 & 63] + D[128 | u >> 6 & 63] + D[128 | u & 63];
1017
+ }
1018
+ return l;
1019
+ }, Uo = function(e) {
1020
+ for (var t = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < t.length; ++a)
1021
+ for (var i = t[a], c = i.obj[i.prop], l = Object.keys(c), f = 0; f < l.length; ++f) {
1022
+ var u = l[f], p = c[u];
1023
+ typeof p == "object" && p !== null && n.indexOf(p) === -1 && (t.push({ obj: c, prop: u }), n.push(p));
1024
+ }
1025
+ return Fo(t), e;
1026
+ }, qo = function(e) {
1027
+ return Object.prototype.toString.call(e) === "[object RegExp]";
1028
+ }, Wo = function(e) {
1029
+ return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
1030
+ }, ko = function(e, t) {
1031
+ return [].concat(e, t);
1032
+ }, Go = function(e, t) {
1033
+ if (Q(e)) {
1034
+ for (var n = [], a = 0; a < e.length; a += 1)
1035
+ n.push(t(e[a]));
1036
+ return n;
1037
+ }
1038
+ return t(e);
1039
+ }, Tt = {
1040
+ arrayToObject: Ct,
1041
+ assign: Do,
1042
+ combine: ko,
1043
+ compact: Uo,
1044
+ decode: Lo,
1045
+ encode: Bo,
1046
+ isBuffer: Wo,
1047
+ isRegExp: qo,
1048
+ maybeMap: Go,
1049
+ merge: Mo
1050
+ }, _t = _o, we = Tt, de = Sr, jo = Object.prototype.hasOwnProperty, tt = {
1051
+ brackets: function(e) {
1052
+ return e + "[]";
1053
+ },
1054
+ comma: "comma",
1055
+ indices: function(e, t) {
1056
+ return e + "[" + t + "]";
1057
+ },
1058
+ repeat: function(e) {
1059
+ return e;
1060
+ }
1061
+ }, q = Array.isArray, Vo = Array.prototype.push, It = function(r, e) {
1062
+ Vo.apply(r, q(e) ? e : [e]);
1063
+ }, zo = Date.prototype.toISOString, nt = de.default, T = {
1064
+ addQueryPrefix: !1,
1065
+ allowDots: !1,
1066
+ charset: "utf-8",
1067
+ charsetSentinel: !1,
1068
+ delimiter: "&",
1069
+ encode: !0,
1070
+ encoder: we.encode,
1071
+ encodeValuesOnly: !1,
1072
+ format: nt,
1073
+ formatter: de.formatters[nt],
1074
+ // deprecated
1075
+ indices: !1,
1076
+ serializeDate: function(e) {
1077
+ return zo.call(e);
1078
+ },
1079
+ skipNulls: !1,
1080
+ strictNullHandling: !1
1081
+ }, Ho = function(e) {
1082
+ return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1083
+ }, tr = {}, Yo = function r(e, t, n, a, i, c, l, f, u, p, y, m, h, v, P, C) {
1084
+ for (var g = e, I = C, O = 0, $ = !1; (I = I.get(tr)) !== void 0 && !$; ) {
1085
+ var s = I.get(e);
1086
+ if (O += 1, typeof s < "u") {
1087
+ if (s === O)
1088
+ throw new RangeError("Cyclic object value");
1089
+ $ = !0;
1090
+ }
1091
+ typeof I.get(tr) > "u" && (O = 0);
1092
+ }
1093
+ if (typeof f == "function" ? g = f(t, g) : g instanceof Date ? g = y(g) : n === "comma" && q(g) && (g = we.maybeMap(g, function(j) {
1094
+ return j instanceof Date ? y(j) : j;
1095
+ })), g === null) {
1096
+ if (i)
1097
+ return l && !v ? l(t, T.encoder, P, "key", m) : t;
1098
+ g = "";
1099
+ }
1100
+ if (Ho(g) || we.isBuffer(g)) {
1101
+ if (l) {
1102
+ var F = v ? t : l(t, T.encoder, P, "key", m);
1103
+ return [h(F) + "=" + h(l(g, T.encoder, P, "value", m))];
1104
+ }
1105
+ return [h(t) + "=" + h(String(g))];
1106
+ }
1107
+ var B = [];
1108
+ if (typeof g > "u")
1109
+ return B;
1110
+ var M;
1111
+ if (n === "comma" && q(g))
1112
+ v && l && (g = we.maybeMap(g, l)), M = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
1113
+ else if (q(f))
1114
+ M = f;
1115
+ else {
1116
+ var W = Object.keys(g);
1117
+ M = u ? W.sort(u) : W;
1118
+ }
1119
+ for (var k = a && q(g) && g.length === 1 ? t + "[]" : t, K = 0; K < M.length; ++K) {
1120
+ var N = M[K], x = typeof N == "object" && typeof N.value < "u" ? N.value : g[N];
1121
+ if (!(c && x === null)) {
1122
+ var G = q(g) ? typeof n == "function" ? n(k, N) : k : k + (p ? "." + N : "[" + N + "]");
1123
+ C.set(e, O);
1124
+ var Z = _t();
1125
+ Z.set(tr, C), It(B, r(
1126
+ x,
1127
+ G,
1128
+ n,
1129
+ a,
1130
+ i,
1131
+ c,
1132
+ n === "comma" && v && q(g) ? null : l,
1133
+ f,
1134
+ u,
1135
+ p,
1136
+ y,
1137
+ m,
1138
+ h,
1139
+ v,
1140
+ P,
1141
+ Z
1142
+ ));
1143
+ }
1144
+ }
1145
+ return B;
1146
+ }, Ko = function(e) {
1147
+ if (!e)
1148
+ return T;
1149
+ if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
1150
+ throw new TypeError("Encoder has to be a function.");
1151
+ var t = e.charset || T.charset;
1152
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1153
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1154
+ var n = de.default;
1155
+ if (typeof e.format < "u") {
1156
+ if (!jo.call(de.formatters, e.format))
1157
+ throw new TypeError("Unknown format option provided.");
1158
+ n = e.format;
1159
+ }
1160
+ var a = de.formatters[n], i = T.filter;
1161
+ return (typeof e.filter == "function" || q(e.filter)) && (i = e.filter), {
1162
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : T.addQueryPrefix,
1163
+ allowDots: typeof e.allowDots > "u" ? T.allowDots : !!e.allowDots,
1164
+ charset: t,
1165
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : T.charsetSentinel,
1166
+ delimiter: typeof e.delimiter > "u" ? T.delimiter : e.delimiter,
1167
+ encode: typeof e.encode == "boolean" ? e.encode : T.encode,
1168
+ encoder: typeof e.encoder == "function" ? e.encoder : T.encoder,
1169
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : T.encodeValuesOnly,
1170
+ filter: i,
1171
+ format: n,
1172
+ formatter: a,
1173
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : T.serializeDate,
1174
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : T.skipNulls,
1175
+ sort: typeof e.sort == "function" ? e.sort : null,
1176
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : T.strictNullHandling
1177
+ };
1178
+ }, Qo = function(r, e) {
1179
+ var t = r, n = Ko(e), a, i;
1180
+ typeof n.filter == "function" ? (i = n.filter, t = i("", t)) : q(n.filter) && (i = n.filter, a = i);
1181
+ var c = [];
1182
+ if (typeof t != "object" || t === null)
1183
+ return "";
1184
+ var l;
1185
+ e && e.arrayFormat in tt ? l = e.arrayFormat : e && "indices" in e ? l = e.indices ? "indices" : "repeat" : l = "indices";
1186
+ var f = tt[l];
1187
+ if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
1188
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1189
+ var u = f === "comma" && e && e.commaRoundTrip;
1190
+ a || (a = Object.keys(t)), n.sort && a.sort(n.sort);
1191
+ for (var p = _t(), y = 0; y < a.length; ++y) {
1192
+ var m = a[y];
1193
+ n.skipNulls && t[m] === null || It(c, Yo(
1194
+ t[m],
1195
+ m,
1196
+ f,
1197
+ u,
1198
+ n.strictNullHandling,
1199
+ n.skipNulls,
1200
+ n.encode ? n.encoder : null,
1201
+ n.filter,
1202
+ n.sort,
1203
+ n.allowDots,
1204
+ n.serializeDate,
1205
+ n.format,
1206
+ n.formatter,
1207
+ n.encodeValuesOnly,
1208
+ n.charset,
1209
+ p
1210
+ ));
1211
+ }
1212
+ var h = c.join(n.delimiter), v = n.addQueryPrefix === !0 ? "?" : "";
1213
+ return n.charsetSentinel && (n.charset === "iso-8859-1" ? v += "utf8=%26%2310003%3B&" : v += "utf8=%E2%9C%93&"), h.length > 0 ? v + h : "";
1214
+ }, ue = Tt, cr = Object.prototype.hasOwnProperty, Jo = Array.isArray, w = {
1215
+ allowDots: !1,
1216
+ allowPrototypes: !1,
1217
+ allowSparse: !1,
1218
+ arrayLimit: 20,
1219
+ charset: "utf-8",
1220
+ charsetSentinel: !1,
1221
+ comma: !1,
1222
+ decoder: ue.decode,
1223
+ delimiter: "&",
1224
+ depth: 5,
1225
+ ignoreQueryPrefix: !1,
1226
+ interpretNumericEntities: !1,
1227
+ parameterLimit: 1e3,
1228
+ parseArrays: !0,
1229
+ plainObjects: !1,
1230
+ strictNullHandling: !1
1231
+ }, Xo = function(r) {
1232
+ return r.replace(/&#(\d+);/g, function(e, t) {
1233
+ return String.fromCharCode(parseInt(t, 10));
1234
+ });
1235
+ }, Nt = function(r, e) {
1236
+ return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
1237
+ }, Zo = "utf8=%26%2310003%3B", ei = "utf8=%E2%9C%93", ri = function(e, t) {
1238
+ var n = {}, a = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, i = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, c = a.split(t.delimiter, i), l = -1, f, u = t.charset;
1239
+ if (t.charsetSentinel)
1240
+ for (f = 0; f < c.length; ++f)
1241
+ c[f].indexOf("utf8=") === 0 && (c[f] === ei ? u = "utf-8" : c[f] === Zo && (u = "iso-8859-1"), l = f, f = c.length);
1242
+ for (f = 0; f < c.length; ++f)
1243
+ if (f !== l) {
1244
+ var p = c[f], y = p.indexOf("]="), m = y === -1 ? p.indexOf("=") : y + 1, h, v;
1245
+ m === -1 ? (h = t.decoder(p, w.decoder, u, "key"), v = t.strictNullHandling ? null : "") : (h = t.decoder(p.slice(0, m), w.decoder, u, "key"), v = ue.maybeMap(
1246
+ Nt(p.slice(m + 1), t),
1247
+ function(P) {
1248
+ return t.decoder(P, w.decoder, u, "value");
1249
+ }
1250
+ )), v && t.interpretNumericEntities && u === "iso-8859-1" && (v = Xo(v)), p.indexOf("[]=") > -1 && (v = Jo(v) ? [v] : v), cr.call(n, h) ? n[h] = ue.combine(n[h], v) : n[h] = v;
1251
+ }
1252
+ return n;
1253
+ }, ti = function(r, e, t, n) {
1254
+ for (var a = n ? e : Nt(e, t), i = r.length - 1; i >= 0; --i) {
1255
+ var c, l = r[i];
1256
+ if (l === "[]" && t.parseArrays)
1257
+ c = [].concat(a);
1258
+ else {
1259
+ c = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1260
+ var f = l.charAt(0) === "[" && l.charAt(l.length - 1) === "]" ? l.slice(1, -1) : l, u = parseInt(f, 10);
1261
+ !t.parseArrays && f === "" ? c = { 0: a } : !isNaN(u) && l !== f && String(u) === f && u >= 0 && t.parseArrays && u <= t.arrayLimit ? (c = [], c[u] = a) : f !== "__proto__" && (c[f] = a);
1262
+ }
1263
+ a = c;
1264
+ }
1265
+ return a;
1266
+ }, ni = function(e, t, n, a) {
1267
+ if (e) {
1268
+ var i = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, c = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, f = n.depth > 0 && c.exec(i), u = f ? i.slice(0, f.index) : i, p = [];
1269
+ if (u) {
1270
+ if (!n.plainObjects && cr.call(Object.prototype, u) && !n.allowPrototypes)
1271
+ return;
1272
+ p.push(u);
1273
+ }
1274
+ for (var y = 0; n.depth > 0 && (f = l.exec(i)) !== null && y < n.depth; ) {
1275
+ if (y += 1, !n.plainObjects && cr.call(Object.prototype, f[1].slice(1, -1)) && !n.allowPrototypes)
1276
+ return;
1277
+ p.push(f[1]);
1278
+ }
1279
+ return f && p.push("[" + i.slice(f.index) + "]"), ti(p, t, n, a);
1280
+ }
1281
+ }, ai = function(e) {
1282
+ if (!e)
1283
+ return w;
1284
+ if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
1285
+ throw new TypeError("Decoder has to be a function.");
1286
+ if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
1287
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1288
+ var t = typeof e.charset > "u" ? w.charset : e.charset;
1289
+ return {
1290
+ allowDots: typeof e.allowDots > "u" ? w.allowDots : !!e.allowDots,
1291
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : w.allowPrototypes,
1292
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : w.allowSparse,
1293
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : w.arrayLimit,
1294
+ charset: t,
1295
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : w.charsetSentinel,
1296
+ comma: typeof e.comma == "boolean" ? e.comma : w.comma,
1297
+ decoder: typeof e.decoder == "function" ? e.decoder : w.decoder,
1298
+ delimiter: typeof e.delimiter == "string" || ue.isRegExp(e.delimiter) ? e.delimiter : w.delimiter,
1299
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1300
+ depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : w.depth,
1301
+ ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
1302
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : w.interpretNumericEntities,
1303
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : w.parameterLimit,
1304
+ parseArrays: e.parseArrays !== !1,
1305
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : w.plainObjects,
1306
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : w.strictNullHandling
1307
+ };
1308
+ }, oi = function(r, e) {
1309
+ var t = ai(e);
1310
+ if (r === "" || r === null || typeof r > "u")
1311
+ return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1312
+ for (var n = typeof r == "string" ? ri(r, t) : r, a = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = Object.keys(n), c = 0; c < i.length; ++c) {
1313
+ var l = i[c], f = ni(l, n[l], t, typeof r == "string");
1314
+ a = ue.merge(a, f, t);
1315
+ }
1316
+ return t.allowSparse === !0 ? a : ue.compact(a);
1317
+ }, ii = Qo, li = oi, ui = Sr, nr = {
1318
+ formats: ui,
1319
+ parse: li,
1320
+ stringify: ii
1321
+ };
1322
+ const xt = {
1323
+ PENDING: "PENDING",
1324
+ APPROVED: "APPROVED",
1325
+ REJECTED: "REJECTED"
1326
+ }, ji = {
1327
+ ...xt,
1328
+ BLOCKED: "BLOCKED",
1329
+ OPEN: "OPEN",
1330
+ RESOLVED: "RESOLVED"
1331
+ };
1332
+ var ci = /* @__PURE__ */ ((r) => (r.BAD_LANGUAGE = "BAD_LANGUAGE", r.DISCRIMINATION = "DISCRIMINATION", r.OTHER = "OTHER", r))(ci || {});
1333
+ const z = {
1334
+ ...xt,
1335
+ BLOCKED: "BLOCKED",
1336
+ OPEN: "OPEN",
1337
+ REMOVED: "REMOVED",
1338
+ TO_REVIEW: "TO_REVIEW",
1339
+ UNKNOWN: "UNKNOWN"
1340
+ }, fi = o.object({
1341
+ entryLabel: o.record(o.array(o.string())),
1342
+ approvalFlow: o.array(o.string()),
1343
+ blockedAuthorProps: o.array(o.string()),
1344
+ reportReasons: o.object({
1345
+ BAD_LANGUAGE: o.literal("BAD_LANGUAGE"),
1346
+ DISCRIMINATION: o.literal("DISCRIMINATION"),
1347
+ OTHER: o.literal("OTHER")
1348
+ }),
1349
+ regex: o.object({
1350
+ uid: o.string(),
1351
+ relatedUid: o.string(),
1352
+ email: o.string(),
1353
+ sorting: o.string()
1354
+ }),
1355
+ enabledCollections: o.array(o.string()),
1356
+ moderatorRoles: o.array(o.string()),
1357
+ isGQLPluginEnabled: o.boolean(),
1358
+ badWords: o.boolean().nullable().optional(),
1359
+ gql: o.object({
1360
+ auth: o.boolean().nullable()
1361
+ }).optional(),
1362
+ client: o.object({
1363
+ url: o.string().nullable(),
1364
+ contactEmail: o.string().nullable()
1365
+ }).default({ url: null, contactEmail: null })
1366
+ }), Ft = o.intersection(
1367
+ o.object({
1368
+ id: o.number(),
1369
+ uid: o.string(),
1370
+ documentId: o.string(),
1371
+ createdAt: o.string(),
1372
+ updatedAt: o.string(),
1373
+ publishedAt: o.string().nullable(),
1374
+ locale: o.string().nullable().optional()
1375
+ }),
1376
+ o.record(o.unknown())
1377
+ ), si = o.object({
1378
+ id: o.union([o.number(), o.string()]),
1379
+ name: o.string().optional().nullable(),
1380
+ email: o.string(),
1381
+ avatar: o.union([
1382
+ o.object({
1383
+ url: o.string()
1384
+ }),
1385
+ o.object({
1386
+ url: o.string(),
1387
+ formats: o.object({
1388
+ thumbnail: o.object({
1389
+ url: o.string()
1390
+ }).nullable()
1391
+ })
1392
+ }),
1393
+ o.string()
1394
+ ]).nullable().optional()
1395
+ }), Mt = o.union([
1396
+ o.literal(z.PENDING),
1397
+ o.literal(z.APPROVED),
1398
+ o.literal(z.REJECTED),
1399
+ o.literal(z.BLOCKED),
1400
+ o.literal(z.OPEN),
1401
+ o.literal(z.REMOVED),
1402
+ o.literal(z.TO_REVIEW),
1403
+ o.literal(z.UNKNOWN)
1404
+ ]), Dt = o.union([
1405
+ o.literal("BAD_LANGUAGE"),
1406
+ o.literal("DISCRIMINATION"),
1407
+ o.literal("OTHER")
1408
+ ]), pi = o.object({
1409
+ id: o.number(),
1410
+ reason: Dt,
1411
+ content: o.string(),
1412
+ resolved: o.boolean(),
1413
+ createdAt: o.string(),
1414
+ updatedAt: o.string().nullable()
1415
+ }), Ie = o.object({
1416
+ id: o.number(),
1417
+ content: o.string(),
1418
+ blocked: o.boolean().nullable(),
1419
+ blockedThread: o.boolean().nullable(),
1420
+ blockReason: o.string().nullable(),
1421
+ isAdminComment: o.boolean().nullable(),
1422
+ removed: o.boolean().nullable(),
1423
+ approvalStatus: Mt.nullable(),
1424
+ createdAt: o.string(),
1425
+ updatedAt: o.string(),
1426
+ reports: o.array(pi).nullable().optional(),
1427
+ author: si,
1428
+ gotThread: o.boolean().nullable().optional(),
1429
+ threadFirstItemId: o.number().nullable().optional()
1430
+ }), Lt = o.object({
1431
+ page: o.number(),
1432
+ pageSize: o.number(),
1433
+ pageCount: o.number(),
1434
+ total: o.number()
1435
+ });
1436
+ function fr() {
1437
+ return Ie.extend({
1438
+ related: Ft.optional(),
1439
+ documentId: o.string(),
1440
+ threadOf: o.lazy(
1441
+ () => Ie.merge(o.object({ related: o.string(), threadOf: Bt.nullable().optional(), documentId: o.string().optional() }))
1442
+ ).nullable().optional()
1443
+ });
1444
+ }
1445
+ const Bt = fr(), yi = o.object({
1446
+ pagination: Lt,
1447
+ result: o.array(Bt)
1448
+ }), di = o.object({
1449
+ entity: Ft,
1450
+ selected: Ie.merge(
1451
+ o.object({
1452
+ related: o.string(),
1453
+ threadOf: fr().omit({ related: !0 }).merge(o.object({ related: o.string() })).nullable().optional()
1454
+ })
1455
+ ).nullable(),
1456
+ level: o.array(fr().omit({ threadOf: !0, related: !0 }))
1457
+ }), Ut = o.object({
1458
+ apiID: o.string(),
1459
+ uid: o.string(),
1460
+ schema: o.object({
1461
+ attributes: o.record(o.object({ type: o.union([o.literal("string"), o.string()]) })),
1462
+ collectionName: o.string(),
1463
+ description: o.string(),
1464
+ displayName: o.string(),
1465
+ draftAndPublish: o.boolean(),
1466
+ kind: o.string(),
1467
+ pluralName: o.string(),
1468
+ singularName: o.string(),
1469
+ visible: o.boolean()
1470
+ })
1471
+ }), mi = o.object({
1472
+ data: Ut
1473
+ }), vi = o.object({
1474
+ data: o.array(Ut)
1475
+ }), gi = o.object({
1476
+ author: o.unknown(),
1477
+ content: o.string(),
1478
+ id: o.number(),
1479
+ approvalStatus: Mt.nullable().optional(),
1480
+ reason: Dt,
1481
+ reports: o.array(o.unknown()),
1482
+ resolved: o.boolean().optional(),
1483
+ updatedAt: o.string().nullable(),
1484
+ createdAt: o.string(),
1485
+ related: Ie
1486
+ }), hi = o.object({
1487
+ pagination: Lt,
1488
+ result: o.array(gi)
1489
+ }), Si = o.object({
1490
+ id: o.number(),
1491
+ documentId: o.string(),
1492
+ name: o.string(),
1493
+ code: o.string(),
1494
+ description: o.string(),
1495
+ createdAt: o.string(),
1496
+ updatedAt: o.string(),
1497
+ publishedAt: o.string(),
1498
+ locale: o.string().nullable(),
1499
+ usersCount: o.number()
1500
+ }), bi = o.object({
1501
+ data: o.array(
1502
+ Si
1503
+ )
1504
+ }), Ai = o.object({
1505
+ data: o.object({
1506
+ id: o.number(),
1507
+ documentId: o.string(),
1508
+ firstname: o.string(),
1509
+ lastname: o.string(),
1510
+ username: o.string().nullable(),
1511
+ email: o.string(),
1512
+ isActive: o.boolean(),
1513
+ blocked: o.boolean(),
1514
+ preferedLanguage: o.string().nullable(),
1515
+ createdAt: o.string(),
1516
+ updatedAt: o.string(),
1517
+ publishedAt: o.string(),
1518
+ locale: o.null(),
1519
+ roles: o.array(
1520
+ o.object({
1521
+ id: o.number(),
1522
+ name: o.string(),
1523
+ description: o.string(),
1524
+ code: o.string()
1525
+ })
1526
+ )
1527
+ })
1528
+ }), E = "comments", Ei = wr.once((r) => ({
1529
+ config: {
1530
+ getKey() {
1531
+ return [E, "config"];
1532
+ },
1533
+ async query() {
1534
+ const e = await r.get(`/${E}/settings/config`);
1535
+ return fi.parseAsync(e.data);
1536
+ }
1537
+ },
1538
+ contentTypeBuilder: {
1539
+ single: {
1540
+ getKey(e, t) {
1541
+ return [E, "moderate", "content-type", t, e];
1542
+ },
1543
+ async query(e) {
1544
+ const t = await r.get(`/content-type-builder/content-types/${e}`);
1545
+ return mi.parseAsync(t.data).then((n) => n.data);
1546
+ }
1547
+ },
1548
+ all: {
1549
+ getKey() {
1550
+ return [E, "moderate", "content-types"];
1551
+ },
1552
+ async query() {
1553
+ const e = await r.get("/content-type-builder/content-types");
1554
+ return vi.parseAsync(e.data).then((t) => t.data);
1555
+ }
1556
+ }
1557
+ },
1558
+ roles: {
1559
+ getKey() {
1560
+ return [E, "moderate", "roles"];
1561
+ },
1562
+ async query() {
1563
+ const e = await r.get("/admin/roles");
1564
+ return bi.parseAsync(e.data).then((t) => t.data);
1565
+ }
1566
+ },
1567
+ user: {
1568
+ getKey() {
1569
+ return [E, "moderate", "user"];
1570
+ },
1571
+ async query() {
1572
+ const e = await r.get("/admin/users/me");
1573
+ return Ai.parseAsync(e.data).then((t) => t.data);
1574
+ }
1575
+ },
1576
+ comments: {
1577
+ findAll: {
1578
+ getKey(e) {
1579
+ return [E, "moderate", "all", e ? JSON.stringify(e) : void 0].filter(Boolean);
1580
+ },
1581
+ async query(e) {
1582
+ const t = await r.get(`/${E}/moderate/all?${nr.stringify(e, { encode: !1 })}`);
1583
+ return yi.parseAsync(t.data);
1584
+ }
1585
+ },
1586
+ findOne: {
1587
+ getKey(e, t) {
1588
+ return [E, "details", e?.toString(), t ? JSON.stringify(t) : void 0].filter(Boolean);
1589
+ },
1590
+ async query(e, t) {
1591
+ const n = wr.isEmpty(t) ? "" : `?${nr.stringify(t, { encode: !1 })}`, a = await r.get(`/${E}/moderate/single/${e}${n}`);
1592
+ return di.parseAsync(a.data);
1593
+ }
1594
+ },
1595
+ approve(e) {
1596
+ return r.put(`/${E}/moderate/single/${e}/approve`);
1597
+ },
1598
+ reject(e) {
1599
+ return r.put(`/${E}/moderate/single/${e}/reject`);
1600
+ },
1601
+ block(e) {
1602
+ return r.put(`/${E}/moderate/single/${e}/block`);
1603
+ },
1604
+ unblock(e) {
1605
+ return r.put(`/${E}/moderate/single/${e}/unblock`);
1606
+ },
1607
+ blockThread(e) {
1608
+ return r.put(`/${E}/moderate/thread/${e}/block`);
1609
+ },
1610
+ unBlockThread(e) {
1611
+ return r.put(`/${E}/moderate/thread/${e}/unblock`);
1612
+ },
1613
+ delete(e) {
1614
+ return r.del(`/${E}/moderate/single/${e}/delete`);
1615
+ },
1616
+ postComment({ id: e, content: t, author: n }) {
1617
+ return r.post(`/${E}/moderate/thread/${e}/postComment`, { content: t, author: n });
1618
+ },
1619
+ updateComment({ id: e, content: t }) {
1620
+ return r.put(`/${E}/moderate/single/${e}/update`, { content: t });
1621
+ }
1622
+ },
1623
+ reports: {
1624
+ findAll: {
1625
+ getKey(e) {
1626
+ return [E, "moderate", "reports", e ? JSON.stringify(e) : void 0].filter(Boolean);
1627
+ },
1628
+ async query(e) {
1629
+ const t = await r.get(`/${E}/moderate/reports${e ? `?${nr.stringify(e, { encode: !1 })}` : ""}`);
1630
+ return hi.parseAsync(t.data);
1631
+ }
1632
+ },
1633
+ resolve({ id: e, reportId: t }) {
1634
+ return r.put(`/${E}/moderate/single/${e}/report/${t}/resolve`);
1635
+ },
1636
+ resolveMultipleReports({ reportIds: e }) {
1637
+ return r.put(`/${E}/moderate/multiple/report/resolve`, { reportIds: e });
1638
+ },
1639
+ resolveCommentMultipleReports({ id: e, reportIds: t }) {
1640
+ return r.put(`/${E}/moderate/single/${e}/report/resolve`, { reportIds: t });
1641
+ },
1642
+ resolveAllAbuseReportsForComment(e) {
1643
+ return r.put(`/${E}/moderate/all/${e}/report/resolve`);
1644
+ },
1645
+ resolveAllAbuseReportsForThread(e) {
1646
+ return r.put(`/${E}/moderate/thread/${e}/report/resolve-thread`);
1647
+ }
1648
+ },
1649
+ settings: {
1650
+ update(e) {
1651
+ return r.put(`/${E}/settings/config`, e);
1652
+ },
1653
+ restore() {
1654
+ return r.del(`/${E}/settings/config`);
1655
+ },
1656
+ restart() {
1657
+ return r.post(`/${E}/settings/restart`);
1658
+ }
1659
+ }
1660
+ })), Oi = () => {
1661
+ const r = dn();
1662
+ return ut(() => Ei(r), [r]);
1663
+ }, Pi = yn(null), $i = ({ children: r }) => {
1664
+ const e = Oi(), { data: t } = fn({
1665
+ queryKey: e.user.getKey(),
1666
+ queryFn: e.user.query
1667
+ });
1668
+ return t ? /* @__PURE__ */ _(Pi.Provider, { value: t, children: r }) : null;
1669
+ };
1670
+ console.log("!!darkTheme", !!it);
1671
+ console.log("!!lightTheme", !!an);
1672
+ const wi = new pn({
1673
+ defaultOptions: {
1674
+ queries: {
1675
+ retry: !1,
1676
+ refetchOnWindowFocus: !1
1677
+ }
1678
+ }
1679
+ }), Vi = ({ children: r }) => /* @__PURE__ */ _(sn, { client: wi, children: /* @__PURE__ */ _(nn, { theme: { theme: it, themeName: "light" }, children: /* @__PURE__ */ _($i, { children: r }) }) }), zi = () => {
1680
+ const r = ut(
1681
+ () => ({
1682
+ access: ee.access,
1683
+ moderate: ee.moderate,
1684
+ accessReports: ee.reports,
1685
+ reviewReports: ee.reportsReview,
1686
+ settings: ee.settings,
1687
+ settingsChange: ee.settingsChange
1688
+ }),
1689
+ []
1690
+ ), {
1691
+ isLoading: e,
1692
+ allowedActions: {
1693
+ canCommentsModerate: t,
1694
+ canCommentsRead: n,
1695
+ canReportsRead: a,
1696
+ canSettingsChange: i,
1697
+ canSettingsRead: c,
1698
+ canReportsReview: l
1699
+ }
1700
+ } = mn(r);
1701
+ return {
1702
+ isLoadingForPermissions: e,
1703
+ canAccess: n || a || c,
1704
+ canModerate: t,
1705
+ canAccessReports: a,
1706
+ canReviewReports: l,
1707
+ canSettings: c,
1708
+ canSettingsChange: i
1709
+ };
1710
+ };
1711
+ var sr = { exports: {} }, b = {};
1712
+ /** @license React v16.13.1
1713
+ * react-is.production.min.js
1714
+ *
1715
+ * Copyright (c) Facebook, Inc. and its affiliates.
1716
+ *
1717
+ * This source code is licensed under the MIT license found in the
1718
+ * LICENSE file in the root directory of this source tree.
1719
+ */
1720
+ var at;
1721
+ function Ri() {
1722
+ if (at) return b;
1723
+ at = 1;
1724
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, a = r ? Symbol.for("react.strict_mode") : 60108, i = r ? Symbol.for("react.profiler") : 60114, c = r ? Symbol.for("react.provider") : 60109, l = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, u = r ? Symbol.for("react.concurrent_mode") : 60111, p = r ? Symbol.for("react.forward_ref") : 60112, y = r ? Symbol.for("react.suspense") : 60113, m = r ? Symbol.for("react.suspense_list") : 60120, h = r ? Symbol.for("react.memo") : 60115, v = r ? Symbol.for("react.lazy") : 60116, P = r ? Symbol.for("react.block") : 60121, C = r ? Symbol.for("react.fundamental") : 60117, g = r ? Symbol.for("react.responder") : 60118, I = r ? Symbol.for("react.scope") : 60119;
1725
+ function O(s) {
1726
+ if (typeof s == "object" && s !== null) {
1727
+ var F = s.$$typeof;
1728
+ switch (F) {
1729
+ case e:
1730
+ switch (s = s.type, s) {
1731
+ case f:
1732
+ case u:
1733
+ case n:
1734
+ case i:
1735
+ case a:
1736
+ case y:
1737
+ return s;
1738
+ default:
1739
+ switch (s = s && s.$$typeof, s) {
1740
+ case l:
1741
+ case p:
1742
+ case v:
1743
+ case h:
1744
+ case c:
1745
+ return s;
1746
+ default:
1747
+ return F;
1748
+ }
1749
+ }
1750
+ case t:
1751
+ return F;
1752
+ }
1753
+ }
1754
+ }
1755
+ function $(s) {
1756
+ return O(s) === u;
1757
+ }
1758
+ return b.AsyncMode = f, b.ConcurrentMode = u, b.ContextConsumer = l, b.ContextProvider = c, b.Element = e, b.ForwardRef = p, b.Fragment = n, b.Lazy = v, b.Memo = h, b.Portal = t, b.Profiler = i, b.StrictMode = a, b.Suspense = y, b.isAsyncMode = function(s) {
1759
+ return $(s) || O(s) === f;
1760
+ }, b.isConcurrentMode = $, b.isContextConsumer = function(s) {
1761
+ return O(s) === l;
1762
+ }, b.isContextProvider = function(s) {
1763
+ return O(s) === c;
1764
+ }, b.isElement = function(s) {
1765
+ return typeof s == "object" && s !== null && s.$$typeof === e;
1766
+ }, b.isForwardRef = function(s) {
1767
+ return O(s) === p;
1768
+ }, b.isFragment = function(s) {
1769
+ return O(s) === n;
1770
+ }, b.isLazy = function(s) {
1771
+ return O(s) === v;
1772
+ }, b.isMemo = function(s) {
1773
+ return O(s) === h;
1774
+ }, b.isPortal = function(s) {
1775
+ return O(s) === t;
1776
+ }, b.isProfiler = function(s) {
1777
+ return O(s) === i;
1778
+ }, b.isStrictMode = function(s) {
1779
+ return O(s) === a;
1780
+ }, b.isSuspense = function(s) {
1781
+ return O(s) === y;
1782
+ }, b.isValidElementType = function(s) {
1783
+ return typeof s == "string" || typeof s == "function" || s === n || s === u || s === i || s === a || s === y || s === m || typeof s == "object" && s !== null && (s.$$typeof === v || s.$$typeof === h || s.$$typeof === c || s.$$typeof === l || s.$$typeof === p || s.$$typeof === C || s.$$typeof === g || s.$$typeof === I || s.$$typeof === P);
1784
+ }, b.typeOf = O, b;
1785
+ }
1786
+ var A = {};
1787
+ /** @license React v16.13.1
1788
+ * react-is.development.js
1789
+ *
1790
+ * Copyright (c) Facebook, Inc. and its affiliates.
1791
+ *
1792
+ * This source code is licensed under the MIT license found in the
1793
+ * LICENSE file in the root directory of this source tree.
1794
+ */
1795
+ var ot;
1796
+ function Ci() {
1797
+ return ot || (ot = 1, process.env.NODE_ENV !== "production" && function() {
1798
+ var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, a = r ? Symbol.for("react.strict_mode") : 60108, i = r ? Symbol.for("react.profiler") : 60114, c = r ? Symbol.for("react.provider") : 60109, l = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, u = r ? Symbol.for("react.concurrent_mode") : 60111, p = r ? Symbol.for("react.forward_ref") : 60112, y = r ? Symbol.for("react.suspense") : 60113, m = r ? Symbol.for("react.suspense_list") : 60120, h = r ? Symbol.for("react.memo") : 60115, v = r ? Symbol.for("react.lazy") : 60116, P = r ? Symbol.for("react.block") : 60121, C = r ? Symbol.for("react.fundamental") : 60117, g = r ? Symbol.for("react.responder") : 60118, I = r ? Symbol.for("react.scope") : 60119;
1799
+ function O(d) {
1800
+ return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1801
+ d === n || d === u || d === i || d === a || d === y || d === m || typeof d == "object" && d !== null && (d.$$typeof === v || d.$$typeof === h || d.$$typeof === c || d.$$typeof === l || d.$$typeof === p || d.$$typeof === C || d.$$typeof === g || d.$$typeof === I || d.$$typeof === P);
1802
+ }
1803
+ function $(d) {
1804
+ if (typeof d == "object" && d !== null) {
1805
+ var De = d.$$typeof;
1806
+ switch (De) {
1807
+ case e:
1808
+ var be = d.type;
1809
+ switch (be) {
1810
+ case f:
1811
+ case u:
1812
+ case n:
1813
+ case i:
1814
+ case a:
1815
+ case y:
1816
+ return be;
1817
+ default:
1818
+ var Pr = be && be.$$typeof;
1819
+ switch (Pr) {
1820
+ case l:
1821
+ case p:
1822
+ case v:
1823
+ case h:
1824
+ case c:
1825
+ return Pr;
1826
+ default:
1827
+ return De;
1828
+ }
1829
+ }
1830
+ case t:
1831
+ return De;
1832
+ }
1833
+ }
1834
+ }
1835
+ var s = f, F = u, B = l, M = c, W = e, k = p, K = n, N = v, x = h, G = t, Z = i, j = a, Gt = y, Er = !1;
1836
+ function jt(d) {
1837
+ return Er || (Er = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Or(d) || $(d) === f;
1838
+ }
1839
+ function Or(d) {
1840
+ return $(d) === u;
1841
+ }
1842
+ function Vt(d) {
1843
+ return $(d) === l;
1844
+ }
1845
+ function zt(d) {
1846
+ return $(d) === c;
1847
+ }
1848
+ function Ht(d) {
1849
+ return typeof d == "object" && d !== null && d.$$typeof === e;
1850
+ }
1851
+ function Yt(d) {
1852
+ return $(d) === p;
1853
+ }
1854
+ function Kt(d) {
1855
+ return $(d) === n;
1856
+ }
1857
+ function Qt(d) {
1858
+ return $(d) === v;
1859
+ }
1860
+ function Jt(d) {
1861
+ return $(d) === h;
1862
+ }
1863
+ function Xt(d) {
1864
+ return $(d) === t;
1865
+ }
1866
+ function Zt(d) {
1867
+ return $(d) === i;
1868
+ }
1869
+ function en(d) {
1870
+ return $(d) === a;
1871
+ }
1872
+ function rn(d) {
1873
+ return $(d) === y;
1874
+ }
1875
+ A.AsyncMode = s, A.ConcurrentMode = F, A.ContextConsumer = B, A.ContextProvider = M, A.Element = W, A.ForwardRef = k, A.Fragment = K, A.Lazy = N, A.Memo = x, A.Portal = G, A.Profiler = Z, A.StrictMode = j, A.Suspense = Gt, A.isAsyncMode = jt, A.isConcurrentMode = Or, A.isContextConsumer = Vt, A.isContextProvider = zt, A.isElement = Ht, A.isForwardRef = Yt, A.isFragment = Kt, A.isLazy = Qt, A.isMemo = Jt, A.isPortal = Xt, A.isProfiler = Zt, A.isStrictMode = en, A.isSuspense = rn, A.isValidElementType = O, A.typeOf = $;
1876
+ }()), A;
1877
+ }
1878
+ process.env.NODE_ENV === "production" ? sr.exports = Ri() : sr.exports = Ci();
1879
+ var Ti = sr.exports, qt = Ti, _i = {
1880
+ $$typeof: !0,
1881
+ render: !0,
1882
+ defaultProps: !0,
1883
+ displayName: !0,
1884
+ propTypes: !0
1885
+ }, Ii = {
1886
+ $$typeof: !0,
1887
+ compare: !0,
1888
+ defaultProps: !0,
1889
+ displayName: !0,
1890
+ propTypes: !0,
1891
+ type: !0
1892
+ }, Wt = {};
1893
+ Wt[qt.ForwardRef] = _i;
1894
+ Wt[qt.Memo] = Ii;
1895
+ function Ni(r, e, t) {
1896
+ if (t === void 0 && (t = Error), !r)
1897
+ throw new t(e);
1898
+ }
1899
+ var xi = function(r) {
1900
+ process.env.NODE_ENV !== "production" && console.error(r);
1901
+ }, Fi = function(r) {
1902
+ process.env.NODE_ENV !== "production" && console.warn(r);
1903
+ }, Mi = {
1904
+ formats: {},
1905
+ messages: {},
1906
+ timeZone: void 0,
1907
+ defaultLocale: "en",
1908
+ defaultFormats: {},
1909
+ fallbackOnEmptyString: !0,
1910
+ onError: xi,
1911
+ onWarn: Fi
1912
+ };
1913
+ function Di(r) {
1914
+ Ni(r, "[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.");
1915
+ }
1916
+ Rr(Rr({}, Mi), { textComponent: oe.Fragment });
1917
+ var br = typeof window < "u" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = oe.createContext(null)) : oe.createContext(null);
1918
+ br.Consumer;
1919
+ br.Provider;
1920
+ var Li = br;
1921
+ function Ar() {
1922
+ var r = oe.useContext(Li);
1923
+ return Di(r), r;
1924
+ }
1925
+ var pr;
1926
+ (function(r) {
1927
+ r.formatDate = "FormattedDate", r.formatTime = "FormattedTime", r.formatNumber = "FormattedNumber", r.formatList = "FormattedList", r.formatDisplayName = "FormattedDisplayName";
1928
+ })(pr || (pr = {}));
1929
+ var yr;
1930
+ (function(r) {
1931
+ r.formatDate = "FormattedDateParts", r.formatTime = "FormattedTimeParts", r.formatNumber = "FormattedNumberParts", r.formatList = "FormattedListParts";
1932
+ })(yr || (yr = {}));
1933
+ function kt(r) {
1934
+ var e = function(t) {
1935
+ var n = Ar(), a = t.value, i = t.children, c = lt(t, ["value", "children"]), l = typeof a == "string" ? new Date(a || 0) : a, f = r === "formatDate" ? n.formatDateToParts(l, c) : n.formatTimeToParts(l, c);
1936
+ return i(f);
1937
+ };
1938
+ return e.displayName = yr[r], e;
1939
+ }
1940
+ function Se(r) {
1941
+ var e = function(t) {
1942
+ var n = Ar(), a = t.value, i = t.children, c = lt(
1943
+ t,
1944
+ ["value", "children"]
1945
+ ), l = n[r](a, c);
1946
+ if (typeof i == "function")
1947
+ return i(l);
1948
+ var f = n.textComponent || oe.Fragment;
1949
+ return oe.createElement(f, null, l);
1950
+ };
1951
+ return e.displayName = pr[r], e;
1952
+ }
1953
+ Se("formatDate");
1954
+ Se("formatTime");
1955
+ Se("formatNumber");
1956
+ Se("formatList");
1957
+ Se("formatDisplayName");
1958
+ kt("formatDate");
1959
+ kt("formatTime");
1960
+ const Hi = (r, e = "", t = !0) => {
1961
+ const { formatMessage: n } = Ar();
1962
+ let a = "";
1963
+ return typeof r == "string" ? a = r : a = r?.id.toString() || a, n(
1964
+ {
1965
+ id: `${t ? on : "app.components"}.${a}`,
1966
+ defaultMessage: e
1967
+ },
1968
+ typeof r == "string" ? void 0 : r?.props
1969
+ );
1970
+ }, Yi = ({
1971
+ title: r,
1972
+ onConfirm: e,
1973
+ Trigger: t,
1974
+ labelConfirm: n,
1975
+ iconConfirm: a,
1976
+ labelCancel: i,
1977
+ children: c
1978
+ }) => {
1979
+ const [l, f] = Tr(!1), [u, p] = Tr(!1), y = () => f((h) => !h), m = async () => {
1980
+ p(!0), await e(), p(!1), y();
1981
+ };
1982
+ return /* @__PURE__ */ Ae(V.Root, { open: l, children: [
1983
+ /* @__PURE__ */ _(V.Trigger, { children: /* @__PURE__ */ _(t, { onClick: y }) }),
1984
+ /* @__PURE__ */ Ae(V.Content, { children: [
1985
+ /* @__PURE__ */ _(V.Header, { children: r }),
1986
+ /* @__PURE__ */ _(V.Body, { children: /* @__PURE__ */ Ae(ln, { justifyContent: "center", direction: "column", children: [
1987
+ /* @__PURE__ */ _(un, { fill: "danger500", stroke: "danger500", height: "24", width: "24" }),
1988
+ /* @__PURE__ */ _(cn, { id: "confirm-description", children: c })
1989
+ ] }) }),
1990
+ /* @__PURE__ */ Ae(V.Footer, { children: [
1991
+ /* @__PURE__ */ _(V.Cancel, { children: /* @__PURE__ */ _(
1992
+ Cr,
1993
+ {
1994
+ onClick: y,
1995
+ disabled: u,
1996
+ variant: "tertiary",
1997
+ children: i || "Cancel"
1998
+ }
1999
+ ) }),
2000
+ /* @__PURE__ */ _(V.Action, { children: /* @__PURE__ */ _(
2001
+ Cr,
2002
+ {
2003
+ onClick: m,
2004
+ variant: "danger-light",
2005
+ loading: u,
2006
+ disabled: u,
2007
+ startIcon: a,
2008
+ children: n
2009
+ }
2010
+ ) })
2011
+ ] })
2012
+ ] })
2013
+ ] });
2014
+ };
2015
+ export {
2016
+ z as C,
2017
+ ji as R,
2018
+ Pi as U,
2019
+ zi as a,
2020
+ Ar as b,
2021
+ ci as c,
2022
+ Yi as d,
2023
+ Vi as e,
2024
+ Hi as g,
2025
+ Oi as u
2026
+ };