lr-chatbot 0.40.2 → 0.40.23

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,1683 @@
1
+ function Jt(a, c) {
2
+ for (var y = 0; y < c.length; y++) {
3
+ const u = c[y];
4
+ if (typeof u != "string" && !Array.isArray(u)) {
5
+ for (const m in u)
6
+ if (m !== "default" && !(m in a)) {
7
+ const O = Object.getOwnPropertyDescriptor(u, m);
8
+ O && Object.defineProperty(a, m, O.get ? O : {
9
+ enumerable: !0,
10
+ get: () => u[m]
11
+ });
12
+ }
13
+ }
14
+ }
15
+ return Object.freeze(Object.defineProperty(a, Symbol.toStringTag, { value: "Module" }));
16
+ }
17
+ var Wr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
18
+ function Yt(a) {
19
+ if (Object.prototype.hasOwnProperty.call(a, "__esModule")) return a;
20
+ var c = a.default;
21
+ if (typeof c == "function") {
22
+ var y = function u() {
23
+ var m = !1;
24
+ try {
25
+ m = this instanceof u;
26
+ } catch {
27
+ }
28
+ return m ? Reflect.construct(c, arguments, this.constructor) : c.apply(this, arguments);
29
+ };
30
+ y.prototype = c.prototype;
31
+ } else y = {};
32
+ return Object.defineProperty(y, "__esModule", { value: !0 }), Object.keys(a).forEach(function(u) {
33
+ var m = Object.getOwnPropertyDescriptor(a, u);
34
+ Object.defineProperty(y, u, m.get ? m : {
35
+ enumerable: !0,
36
+ get: function() {
37
+ return a[u];
38
+ }
39
+ });
40
+ }), y;
41
+ }
42
+ var Ce, Gr;
43
+ function we() {
44
+ return Gr || (Gr = 1, Ce = TypeError), Ce;
45
+ }
46
+ const Xt = {}, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
47
+ __proto__: null,
48
+ default: Xt
49
+ }, Symbol.toStringTag, { value: "Module" })), en = /* @__PURE__ */ Yt(Zt);
50
+ var Le, kr;
51
+ function Re() {
52
+ if (kr) return Le;
53
+ kr = 1;
54
+ var a = typeof Map == "function" && Map.prototype, c = Object.getOwnPropertyDescriptor && a ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, y = a && c && typeof c.get == "function" ? c.get : null, u = a && Map.prototype.forEach, m = typeof Set == "function" && Set.prototype, O = Object.getOwnPropertyDescriptor && m ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, x = m && O && typeof O.get == "function" ? O.get : null, v = m && Set.prototype.forEach, P = typeof WeakMap == "function" && WeakMap.prototype, s = P ? WeakMap.prototype.has : null, g = typeof WeakSet == "function" && WeakSet.prototype, h = g ? WeakSet.prototype.has : null, F = typeof WeakRef == "function" && WeakRef.prototype, E = F ? WeakRef.prototype.deref : null, n = Boolean.prototype.valueOf, i = Object.prototype.toString, o = Function.prototype.toString, R = String.prototype.match, d = String.prototype.slice, S = String.prototype.replace, D = String.prototype.toUpperCase, A = String.prototype.toLowerCase, w = RegExp.prototype.test, t = Array.prototype.concat, f = Array.prototype.join, p = Array.prototype.slice, b = Math.floor, _ = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, I = Object.getOwnPropertySymbols, U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, M = typeof Symbol == "function" && typeof Symbol.iterator == "object", G = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === M || !0) ? Symbol.toStringTag : null, N = Object.prototype.propertyIsEnumerable, H = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
55
+ return e.__proto__;
56
+ } : null);
57
+ function l(e, r) {
58
+ if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 || w.call(/e/, r))
59
+ return r;
60
+ var T = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
61
+ if (typeof e == "number") {
62
+ var B = e < 0 ? -b(-e) : b(e);
63
+ if (B !== e) {
64
+ var W = String(B), q = d.call(r, W.length + 1);
65
+ return S.call(W, T, "$&_") + "." + S.call(S.call(q, /([0-9]{3})/g, "$&_"), /_$/, "");
66
+ }
67
+ }
68
+ return S.call(r, T, "$&_");
69
+ }
70
+ var C = en, K = C.custom, X = Q(K) ? K : null, oe = {
71
+ __proto__: null,
72
+ double: '"',
73
+ single: "'"
74
+ }, ie = {
75
+ __proto__: null,
76
+ double: /(["\\])/g,
77
+ single: /(['\\])/g
78
+ };
79
+ Le = function e(r, T, B, W) {
80
+ var q = T || {};
81
+ if (J(q, "quoteStyle") && !J(oe, q.quoteStyle))
82
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
83
+ if (J(q, "maxStringLength") && (typeof q.maxStringLength == "number" ? q.maxStringLength < 0 && q.maxStringLength !== 1 / 0 : q.maxStringLength !== null))
84
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
85
+ var ye = J(q, "customInspect") ? q.customInspect : !0;
86
+ if (typeof ye != "boolean" && ye !== "symbol")
87
+ throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
88
+ if (J(q, "indent") && q.indent !== null && q.indent !== " " && !(parseInt(q.indent, 10) === q.indent && q.indent > 0))
89
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
90
+ if (J(q, "numericSeparator") && typeof q.numericSeparator != "boolean")
91
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
92
+ var se = q.numericSeparator;
93
+ if (typeof r > "u")
94
+ return "undefined";
95
+ if (r === null)
96
+ return "null";
97
+ if (typeof r == "boolean")
98
+ return r ? "true" : "false";
99
+ if (typeof r == "string")
100
+ return Fr(r, q);
101
+ if (typeof r == "number") {
102
+ if (r === 0)
103
+ return 1 / 0 / r > 0 ? "0" : "-0";
104
+ var Y = String(r);
105
+ return se ? l(r, Y) : Y;
106
+ }
107
+ if (typeof r == "bigint") {
108
+ var pe = String(r) + "n";
109
+ return se ? l(r, pe) : pe;
110
+ }
111
+ var qe = typeof q.depth > "u" ? 5 : q.depth;
112
+ if (typeof B > "u" && (B = 0), B >= qe && qe > 0 && typeof r == "object")
113
+ return le(r) ? "[Array]" : "[Object]";
114
+ var me = Kt(q, B);
115
+ if (typeof W > "u")
116
+ W = [];
117
+ else if (ce(W, r) >= 0)
118
+ return "[Circular]";
119
+ function ne(Se, Pe, Vt) {
120
+ if (Pe && (W = p.call(W), W.push(Pe)), Vt) {
121
+ var Ur = {
122
+ depth: q.depth
123
+ };
124
+ return J(q, "quoteStyle") && (Ur.quoteStyle = q.quoteStyle), e(Se, Ur, B + 1, W);
125
+ }
126
+ return e(Se, q, B + 1, W);
127
+ }
128
+ if (typeof r == "function" && !j(r)) {
129
+ var Dr = de(r), $r = Ae(r, ne);
130
+ return "[Function" + (Dr ? ": " + Dr : " (anonymous)") + "]" + ($r.length > 0 ? " { " + f.call($r, ", ") + " }" : "");
131
+ }
132
+ if (Q(r)) {
133
+ var Nr = M ? S.call(String(r), /^(Symbol\(.*\))_[^)]*$/, "$1") : U.call(r);
134
+ return typeof r == "object" && !M ? be(Nr) : Nr;
135
+ }
136
+ if (Ht(r)) {
137
+ for (var Oe = "<" + A.call(String(r.nodeName)), Fe = r.attributes || [], Ee = 0; Ee < Fe.length; Ee++)
138
+ Oe += " " + Fe[Ee].name + "=" + fe(ae(Fe[Ee].value), "double", q);
139
+ return Oe += ">", r.childNodes && r.childNodes.length && (Oe += "..."), Oe += "</" + A.call(String(r.nodeName)) + ">", Oe;
140
+ }
141
+ if (le(r)) {
142
+ if (r.length === 0)
143
+ return "[]";
144
+ var Me = Ae(r, ne);
145
+ return me && !jt(Me) ? "[" + Ie(Me, me) + "]" : "[ " + f.call(Me, ", ") + " ]";
146
+ }
147
+ if ($(r)) {
148
+ var De = Ae(r, ne);
149
+ return !("cause" in Error.prototype) && "cause" in r && !N.call(r, "cause") ? "{ [" + String(r) + "] " + f.call(t.call("[cause]: " + ne(r.cause), De), ", ") + " }" : De.length === 0 ? "[" + String(r) + "]" : "{ [" + String(r) + "] " + f.call(De, ", ") + " }";
150
+ }
151
+ if (typeof r == "object" && ye) {
152
+ if (X && typeof r[X] == "function" && C)
153
+ return C(r, { depth: qe - B });
154
+ if (ye !== "symbol" && typeof r.inspect == "function")
155
+ return r.inspect();
156
+ }
157
+ if (te(r)) {
158
+ var Tr = [];
159
+ return u && u.call(r, function(Se, Pe) {
160
+ Tr.push(ne(Pe, r, !0) + " => " + ne(Se, r));
161
+ }), Mr("Map", y.call(r), Tr, me);
162
+ }
163
+ if (ge(r)) {
164
+ var Cr = [];
165
+ return v && v.call(r, function(Se) {
166
+ Cr.push(ne(Se, r));
167
+ }), Mr("Set", x.call(r), Cr, me);
168
+ }
169
+ if (ve(r))
170
+ return xe("WeakMap");
171
+ if (kt(r))
172
+ return xe("WeakSet");
173
+ if (he(r))
174
+ return xe("WeakRef");
175
+ if (L(r))
176
+ return be(ne(Number(r)));
177
+ if (ee(r))
178
+ return be(ne(_.call(r)));
179
+ if (z(r))
180
+ return be(n.call(r));
181
+ if (k(r))
182
+ return be(ne(String(r)));
183
+ if (typeof window < "u" && r === window)
184
+ return "{ [object Window] }";
185
+ if (typeof globalThis < "u" && r === globalThis || typeof Wr < "u" && r === Wr)
186
+ return "{ [object globalThis] }";
187
+ if (!ue(r) && !j(r)) {
188
+ var $e = Ae(r, ne), Lr = H ? H(r) === Object.prototype : r instanceof Object || r.constructor === Object, Ne = r instanceof Object ? "" : "null prototype", Br = !Lr && G && Object(r) === r && G in r ? d.call(re(r), 8, -1) : Ne ? "Object" : "", Qt = Lr || typeof r.constructor != "function" ? "" : r.constructor.name ? r.constructor.name + " " : "", Te = Qt + (Br || Ne ? "[" + f.call(t.call([], Br || [], Ne || []), ": ") + "] " : "");
189
+ return $e.length === 0 ? Te + "{}" : me ? Te + "{" + Ie($e, me) + "}" : Te + "{ " + f.call($e, ", ") + " }";
190
+ }
191
+ return String(r);
192
+ };
193
+ function fe(e, r, T) {
194
+ var B = T.quoteStyle || r, W = oe[B];
195
+ return W + e + W;
196
+ }
197
+ function ae(e) {
198
+ return S.call(String(e), /"/g, "&quot;");
199
+ }
200
+ function Z(e) {
201
+ return !G || !(typeof e == "object" && (G in e || typeof e[G] < "u"));
202
+ }
203
+ function le(e) {
204
+ return re(e) === "[object Array]" && Z(e);
205
+ }
206
+ function ue(e) {
207
+ return re(e) === "[object Date]" && Z(e);
208
+ }
209
+ function j(e) {
210
+ return re(e) === "[object RegExp]" && Z(e);
211
+ }
212
+ function $(e) {
213
+ return re(e) === "[object Error]" && Z(e);
214
+ }
215
+ function k(e) {
216
+ return re(e) === "[object String]" && Z(e);
217
+ }
218
+ function L(e) {
219
+ return re(e) === "[object Number]" && Z(e);
220
+ }
221
+ function z(e) {
222
+ return re(e) === "[object Boolean]" && Z(e);
223
+ }
224
+ function Q(e) {
225
+ if (M)
226
+ return e && typeof e == "object" && e instanceof Symbol;
227
+ if (typeof e == "symbol")
228
+ return !0;
229
+ if (!e || typeof e != "object" || !U)
230
+ return !1;
231
+ try {
232
+ return U.call(e), !0;
233
+ } catch {
234
+ }
235
+ return !1;
236
+ }
237
+ function ee(e) {
238
+ if (!e || typeof e != "object" || !_)
239
+ return !1;
240
+ try {
241
+ return _.call(e), !0;
242
+ } catch {
243
+ }
244
+ return !1;
245
+ }
246
+ var V = Object.prototype.hasOwnProperty || function(e) {
247
+ return e in this;
248
+ };
249
+ function J(e, r) {
250
+ return V.call(e, r);
251
+ }
252
+ function re(e) {
253
+ return i.call(e);
254
+ }
255
+ function de(e) {
256
+ if (e.name)
257
+ return e.name;
258
+ var r = R.call(o.call(e), /^function\s*([\w$]+)/);
259
+ return r ? r[1] : null;
260
+ }
261
+ function ce(e, r) {
262
+ if (e.indexOf)
263
+ return e.indexOf(r);
264
+ for (var T = 0, B = e.length; T < B; T++)
265
+ if (e[T] === r)
266
+ return T;
267
+ return -1;
268
+ }
269
+ function te(e) {
270
+ if (!y || !e || typeof e != "object")
271
+ return !1;
272
+ try {
273
+ y.call(e);
274
+ try {
275
+ x.call(e);
276
+ } catch {
277
+ return !0;
278
+ }
279
+ return e instanceof Map;
280
+ } catch {
281
+ }
282
+ return !1;
283
+ }
284
+ function ve(e) {
285
+ if (!s || !e || typeof e != "object")
286
+ return !1;
287
+ try {
288
+ s.call(e, s);
289
+ try {
290
+ h.call(e, h);
291
+ } catch {
292
+ return !0;
293
+ }
294
+ return e instanceof WeakMap;
295
+ } catch {
296
+ }
297
+ return !1;
298
+ }
299
+ function he(e) {
300
+ if (!E || !e || typeof e != "object")
301
+ return !1;
302
+ try {
303
+ return E.call(e), !0;
304
+ } catch {
305
+ }
306
+ return !1;
307
+ }
308
+ function ge(e) {
309
+ if (!x || !e || typeof e != "object")
310
+ return !1;
311
+ try {
312
+ x.call(e);
313
+ try {
314
+ y.call(e);
315
+ } catch {
316
+ return !0;
317
+ }
318
+ return e instanceof Set;
319
+ } catch {
320
+ }
321
+ return !1;
322
+ }
323
+ function kt(e) {
324
+ if (!h || !e || typeof e != "object")
325
+ return !1;
326
+ try {
327
+ h.call(e, h);
328
+ try {
329
+ s.call(e, s);
330
+ } catch {
331
+ return !0;
332
+ }
333
+ return e instanceof WeakSet;
334
+ } catch {
335
+ }
336
+ return !1;
337
+ }
338
+ function Ht(e) {
339
+ return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
340
+ }
341
+ function Fr(e, r) {
342
+ if (e.length > r.maxStringLength) {
343
+ var T = e.length - r.maxStringLength, B = "... " + T + " more character" + (T > 1 ? "s" : "");
344
+ return Fr(d.call(e, 0, r.maxStringLength), r) + B;
345
+ }
346
+ var W = ie[r.quoteStyle || "single"];
347
+ W.lastIndex = 0;
348
+ var q = S.call(S.call(e, W, "\\$1"), /[\x00-\x1f]/g, zt);
349
+ return fe(q, "single", r);
350
+ }
351
+ function zt(e) {
352
+ var r = e.charCodeAt(0), T = {
353
+ 8: "b",
354
+ 9: "t",
355
+ 10: "n",
356
+ 12: "f",
357
+ 13: "r"
358
+ }[r];
359
+ return T ? "\\" + T : "\\x" + (r < 16 ? "0" : "") + D.call(r.toString(16));
360
+ }
361
+ function be(e) {
362
+ return "Object(" + e + ")";
363
+ }
364
+ function xe(e) {
365
+ return e + " { ? }";
366
+ }
367
+ function Mr(e, r, T, B) {
368
+ var W = B ? Ie(T, B) : f.call(T, ", ");
369
+ return e + " (" + r + ") {" + W + "}";
370
+ }
371
+ function jt(e) {
372
+ for (var r = 0; r < e.length; r++)
373
+ if (ce(e[r], `
374
+ `) >= 0)
375
+ return !1;
376
+ return !0;
377
+ }
378
+ function Kt(e, r) {
379
+ var T;
380
+ if (e.indent === " ")
381
+ T = " ";
382
+ else if (typeof e.indent == "number" && e.indent > 0)
383
+ T = f.call(Array(e.indent + 1), " ");
384
+ else
385
+ return null;
386
+ return {
387
+ base: T,
388
+ prev: f.call(Array(r + 1), T)
389
+ };
390
+ }
391
+ function Ie(e, r) {
392
+ if (e.length === 0)
393
+ return "";
394
+ var T = `
395
+ ` + r.prev + r.base;
396
+ return T + f.call(e, "," + T) + `
397
+ ` + r.prev;
398
+ }
399
+ function Ae(e, r) {
400
+ var T = le(e), B = [];
401
+ if (T) {
402
+ B.length = e.length;
403
+ for (var W = 0; W < e.length; W++)
404
+ B[W] = J(e, W) ? r(e[W], e) : "";
405
+ }
406
+ var q = typeof I == "function" ? I(e) : [], ye;
407
+ if (M) {
408
+ ye = {};
409
+ for (var se = 0; se < q.length; se++)
410
+ ye["$" + q[se]] = q[se];
411
+ }
412
+ for (var Y in e)
413
+ J(e, Y) && (T && String(Number(Y)) === Y && Y < e.length || M && ye["$" + Y] instanceof Symbol || (w.call(/[^\w$]/, Y) ? B.push(r(Y, e) + ": " + r(e[Y], e)) : B.push(Y + ": " + r(e[Y], e))));
414
+ if (typeof I == "function")
415
+ for (var pe = 0; pe < q.length; pe++)
416
+ N.call(e, q[pe]) && B.push("[" + r(q[pe]) + "]: " + r(e[q[pe]], e));
417
+ return B;
418
+ }
419
+ return Le;
420
+ }
421
+ var Be, Hr;
422
+ function rn() {
423
+ if (Hr) return Be;
424
+ Hr = 1;
425
+ var a = /* @__PURE__ */ Re(), c = /* @__PURE__ */ we(), y = function(v, P, s) {
426
+ for (var g = v, h; (h = g.next) != null; g = h)
427
+ if (h.key === P)
428
+ return g.next = h.next, s || (h.next = /** @type {NonNullable<typeof list.next>} */
429
+ v.next, v.next = h), h;
430
+ }, u = function(v, P) {
431
+ if (v) {
432
+ var s = y(v, P);
433
+ return s && s.value;
434
+ }
435
+ }, m = function(v, P, s) {
436
+ var g = y(v, P);
437
+ g ? g.value = s : v.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
438
+ {
439
+ // eslint-disable-line no-param-reassign, no-extra-parens
440
+ key: P,
441
+ next: v.next,
442
+ value: s
443
+ };
444
+ }, O = function(v, P) {
445
+ return v ? !!y(v, P) : !1;
446
+ }, x = function(v, P) {
447
+ if (v)
448
+ return y(v, P, !0);
449
+ };
450
+ return Be = function() {
451
+ var P, s = {
452
+ assert: function(g) {
453
+ if (!s.has(g))
454
+ throw new c("Side channel does not contain " + a(g));
455
+ },
456
+ delete: function(g) {
457
+ var h = P && P.next, F = x(P, g);
458
+ return F && h && h === F && (P = void 0), !!F;
459
+ },
460
+ get: function(g) {
461
+ return u(P, g);
462
+ },
463
+ has: function(g) {
464
+ return O(P, g);
465
+ },
466
+ set: function(g, h) {
467
+ P || (P = {
468
+ next: void 0
469
+ }), m(
470
+ /** @type {NonNullable<typeof $o>} */
471
+ P,
472
+ g,
473
+ h
474
+ );
475
+ }
476
+ };
477
+ return s;
478
+ }, Be;
479
+ }
480
+ var Ue, zr;
481
+ function Dt() {
482
+ return zr || (zr = 1, Ue = Object), Ue;
483
+ }
484
+ var We, jr;
485
+ function tn() {
486
+ return jr || (jr = 1, We = Error), We;
487
+ }
488
+ var Ge, Kr;
489
+ function nn() {
490
+ return Kr || (Kr = 1, Ge = EvalError), Ge;
491
+ }
492
+ var ke, Qr;
493
+ function an() {
494
+ return Qr || (Qr = 1, ke = RangeError), ke;
495
+ }
496
+ var He, Vr;
497
+ function on() {
498
+ return Vr || (Vr = 1, He = ReferenceError), He;
499
+ }
500
+ var ze, Jr;
501
+ function fn() {
502
+ return Jr || (Jr = 1, ze = SyntaxError), ze;
503
+ }
504
+ var je, Yr;
505
+ function ln() {
506
+ return Yr || (Yr = 1, je = URIError), je;
507
+ }
508
+ var Ke, Xr;
509
+ function un() {
510
+ return Xr || (Xr = 1, Ke = Math.abs), Ke;
511
+ }
512
+ var Qe, Zr;
513
+ function cn() {
514
+ return Zr || (Zr = 1, Qe = Math.floor), Qe;
515
+ }
516
+ var Ve, et;
517
+ function yn() {
518
+ return et || (et = 1, Ve = Math.max), Ve;
519
+ }
520
+ var Je, rt;
521
+ function pn() {
522
+ return rt || (rt = 1, Je = Math.min), Je;
523
+ }
524
+ var Ye, tt;
525
+ function sn() {
526
+ return tt || (tt = 1, Ye = Math.pow), Ye;
527
+ }
528
+ var Xe, nt;
529
+ function dn() {
530
+ return nt || (nt = 1, Xe = Math.round), Xe;
531
+ }
532
+ var Ze, at;
533
+ function vn() {
534
+ return at || (at = 1, Ze = Number.isNaN || function(c) {
535
+ return c !== c;
536
+ }), Ze;
537
+ }
538
+ var er, ot;
539
+ function hn() {
540
+ if (ot) return er;
541
+ ot = 1;
542
+ var a = /* @__PURE__ */ vn();
543
+ return er = function(y) {
544
+ return a(y) || y === 0 ? y : y < 0 ? -1 : 1;
545
+ }, er;
546
+ }
547
+ var rr, it;
548
+ function gn() {
549
+ return it || (it = 1, rr = Object.getOwnPropertyDescriptor), rr;
550
+ }
551
+ var tr, ft;
552
+ function $t() {
553
+ if (ft) return tr;
554
+ ft = 1;
555
+ var a = /* @__PURE__ */ gn();
556
+ if (a)
557
+ try {
558
+ a([], "length");
559
+ } catch {
560
+ a = null;
561
+ }
562
+ return tr = a, tr;
563
+ }
564
+ var nr, lt;
565
+ function mn() {
566
+ if (lt) return nr;
567
+ lt = 1;
568
+ var a = Object.defineProperty || !1;
569
+ if (a)
570
+ try {
571
+ a({}, "a", { value: 1 });
572
+ } catch {
573
+ a = !1;
574
+ }
575
+ return nr = a, nr;
576
+ }
577
+ var ar, ut;
578
+ function Sn() {
579
+ return ut || (ut = 1, ar = function() {
580
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
581
+ return !1;
582
+ if (typeof Symbol.iterator == "symbol")
583
+ return !0;
584
+ var c = {}, y = Symbol("test"), u = Object(y);
585
+ if (typeof y == "string" || Object.prototype.toString.call(y) !== "[object Symbol]" || Object.prototype.toString.call(u) !== "[object Symbol]")
586
+ return !1;
587
+ var m = 42;
588
+ c[y] = m;
589
+ for (var O in c)
590
+ return !1;
591
+ if (typeof Object.keys == "function" && Object.keys(c).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(c).length !== 0)
592
+ return !1;
593
+ var x = Object.getOwnPropertySymbols(c);
594
+ if (x.length !== 1 || x[0] !== y || !Object.prototype.propertyIsEnumerable.call(c, y))
595
+ return !1;
596
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
597
+ var v = (
598
+ /** @type {PropertyDescriptor} */
599
+ Object.getOwnPropertyDescriptor(c, y)
600
+ );
601
+ if (v.value !== m || v.enumerable !== !0)
602
+ return !1;
603
+ }
604
+ return !0;
605
+ }), ar;
606
+ }
607
+ var or, ct;
608
+ function wn() {
609
+ if (ct) return or;
610
+ ct = 1;
611
+ var a = typeof Symbol < "u" && Symbol, c = Sn();
612
+ return or = function() {
613
+ return typeof a != "function" || typeof Symbol != "function" || typeof a("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : c();
614
+ }, or;
615
+ }
616
+ var ir, yt;
617
+ function Nt() {
618
+ return yt || (yt = 1, ir = typeof Reflect < "u" && Reflect.getPrototypeOf || null), ir;
619
+ }
620
+ var fr, pt;
621
+ function Tt() {
622
+ if (pt) return fr;
623
+ pt = 1;
624
+ var a = /* @__PURE__ */ Dt();
625
+ return fr = a.getPrototypeOf || null, fr;
626
+ }
627
+ var lr, st;
628
+ function bn() {
629
+ if (st) return lr;
630
+ st = 1;
631
+ var a = "Function.prototype.bind called on incompatible ", c = Object.prototype.toString, y = Math.max, u = "[object Function]", m = function(P, s) {
632
+ for (var g = [], h = 0; h < P.length; h += 1)
633
+ g[h] = P[h];
634
+ for (var F = 0; F < s.length; F += 1)
635
+ g[F + P.length] = s[F];
636
+ return g;
637
+ }, O = function(P, s) {
638
+ for (var g = [], h = s, F = 0; h < P.length; h += 1, F += 1)
639
+ g[F] = P[h];
640
+ return g;
641
+ }, x = function(v, P) {
642
+ for (var s = "", g = 0; g < v.length; g += 1)
643
+ s += v[g], g + 1 < v.length && (s += P);
644
+ return s;
645
+ };
646
+ return lr = function(P) {
647
+ var s = this;
648
+ if (typeof s != "function" || c.apply(s) !== u)
649
+ throw new TypeError(a + s);
650
+ for (var g = O(arguments, 1), h, F = function() {
651
+ if (this instanceof h) {
652
+ var R = s.apply(
653
+ this,
654
+ m(g, arguments)
655
+ );
656
+ return Object(R) === R ? R : this;
657
+ }
658
+ return s.apply(
659
+ P,
660
+ m(g, arguments)
661
+ );
662
+ }, E = y(0, s.length - g.length), n = [], i = 0; i < E; i++)
663
+ n[i] = "$" + i;
664
+ if (h = Function("binder", "return function (" + x(n, ",") + "){ return binder.apply(this,arguments); }")(F), s.prototype) {
665
+ var o = function() {
666
+ };
667
+ o.prototype = s.prototype, h.prototype = new o(), o.prototype = null;
668
+ }
669
+ return h;
670
+ }, lr;
671
+ }
672
+ var ur, dt;
673
+ function _e() {
674
+ if (dt) return ur;
675
+ dt = 1;
676
+ var a = bn();
677
+ return ur = Function.prototype.bind || a, ur;
678
+ }
679
+ var cr, vt;
680
+ function xr() {
681
+ return vt || (vt = 1, cr = Function.prototype.call), cr;
682
+ }
683
+ var yr, ht;
684
+ function Ct() {
685
+ return ht || (ht = 1, yr = Function.prototype.apply), yr;
686
+ }
687
+ var pr, gt;
688
+ function On() {
689
+ return gt || (gt = 1, pr = typeof Reflect < "u" && Reflect && Reflect.apply), pr;
690
+ }
691
+ var sr, mt;
692
+ function An() {
693
+ if (mt) return sr;
694
+ mt = 1;
695
+ var a = _e(), c = Ct(), y = xr(), u = On();
696
+ return sr = u || a.call(y, c), sr;
697
+ }
698
+ var dr, St;
699
+ function Lt() {
700
+ if (St) return dr;
701
+ St = 1;
702
+ var a = _e(), c = /* @__PURE__ */ we(), y = xr(), u = An();
703
+ return dr = function(O) {
704
+ if (O.length < 1 || typeof O[0] != "function")
705
+ throw new c("a function is required");
706
+ return u(a, y, O);
707
+ }, dr;
708
+ }
709
+ var vr, wt;
710
+ function En() {
711
+ if (wt) return vr;
712
+ wt = 1;
713
+ var a = Lt(), c = /* @__PURE__ */ $t(), y;
714
+ try {
715
+ y = /** @type {{ __proto__?: typeof Array.prototype }} */
716
+ [].__proto__ === Array.prototype;
717
+ } catch (x) {
718
+ if (!x || typeof x != "object" || !("code" in x) || x.code !== "ERR_PROTO_ACCESS")
719
+ throw x;
720
+ }
721
+ var u = !!y && c && c(
722
+ Object.prototype,
723
+ /** @type {keyof typeof Object.prototype} */
724
+ "__proto__"
725
+ ), m = Object, O = m.getPrototypeOf;
726
+ return vr = u && typeof u.get == "function" ? a([u.get]) : typeof O == "function" ? (
727
+ /** @type {import('./get')} */
728
+ function(v) {
729
+ return O(v == null ? v : m(v));
730
+ }
731
+ ) : !1, vr;
732
+ }
733
+ var hr, bt;
734
+ function Pn() {
735
+ if (bt) return hr;
736
+ bt = 1;
737
+ var a = Nt(), c = Tt(), y = /* @__PURE__ */ En();
738
+ return hr = a ? function(m) {
739
+ return a(m);
740
+ } : c ? function(m) {
741
+ if (!m || typeof m != "object" && typeof m != "function")
742
+ throw new TypeError("getProto: not an object");
743
+ return c(m);
744
+ } : y ? function(m) {
745
+ return y(m);
746
+ } : null, hr;
747
+ }
748
+ var gr, Ot;
749
+ function Rn() {
750
+ if (Ot) return gr;
751
+ Ot = 1;
752
+ var a = Function.prototype.call, c = Object.prototype.hasOwnProperty, y = _e();
753
+ return gr = y.call(a, c), gr;
754
+ }
755
+ var mr, At;
756
+ function Ir() {
757
+ if (At) return mr;
758
+ At = 1;
759
+ var a, c = /* @__PURE__ */ Dt(), y = /* @__PURE__ */ tn(), u = /* @__PURE__ */ nn(), m = /* @__PURE__ */ an(), O = /* @__PURE__ */ on(), x = /* @__PURE__ */ fn(), v = /* @__PURE__ */ we(), P = /* @__PURE__ */ ln(), s = /* @__PURE__ */ un(), g = /* @__PURE__ */ cn(), h = /* @__PURE__ */ yn(), F = /* @__PURE__ */ pn(), E = /* @__PURE__ */ sn(), n = /* @__PURE__ */ dn(), i = /* @__PURE__ */ hn(), o = Function, R = function(j) {
760
+ try {
761
+ return o('"use strict"; return (' + j + ").constructor;")();
762
+ } catch {
763
+ }
764
+ }, d = /* @__PURE__ */ $t(), S = /* @__PURE__ */ mn(), D = function() {
765
+ throw new v();
766
+ }, A = d ? (function() {
767
+ try {
768
+ return arguments.callee, D;
769
+ } catch {
770
+ try {
771
+ return d(arguments, "callee").get;
772
+ } catch {
773
+ return D;
774
+ }
775
+ }
776
+ })() : D, w = wn()(), t = Pn(), f = Tt(), p = Nt(), b = Ct(), _ = xr(), I = {}, U = typeof Uint8Array > "u" || !t ? a : t(Uint8Array), M = {
777
+ __proto__: null,
778
+ "%AggregateError%": typeof AggregateError > "u" ? a : AggregateError,
779
+ "%Array%": Array,
780
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? a : ArrayBuffer,
781
+ "%ArrayIteratorPrototype%": w && t ? t([][Symbol.iterator]()) : a,
782
+ "%AsyncFromSyncIteratorPrototype%": a,
783
+ "%AsyncFunction%": I,
784
+ "%AsyncGenerator%": I,
785
+ "%AsyncGeneratorFunction%": I,
786
+ "%AsyncIteratorPrototype%": I,
787
+ "%Atomics%": typeof Atomics > "u" ? a : Atomics,
788
+ "%BigInt%": typeof BigInt > "u" ? a : BigInt,
789
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? a : BigInt64Array,
790
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? a : BigUint64Array,
791
+ "%Boolean%": Boolean,
792
+ "%DataView%": typeof DataView > "u" ? a : DataView,
793
+ "%Date%": Date,
794
+ "%decodeURI%": decodeURI,
795
+ "%decodeURIComponent%": decodeURIComponent,
796
+ "%encodeURI%": encodeURI,
797
+ "%encodeURIComponent%": encodeURIComponent,
798
+ "%Error%": y,
799
+ "%eval%": eval,
800
+ // eslint-disable-line no-eval
801
+ "%EvalError%": u,
802
+ "%Float16Array%": typeof Float16Array > "u" ? a : Float16Array,
803
+ "%Float32Array%": typeof Float32Array > "u" ? a : Float32Array,
804
+ "%Float64Array%": typeof Float64Array > "u" ? a : Float64Array,
805
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? a : FinalizationRegistry,
806
+ "%Function%": o,
807
+ "%GeneratorFunction%": I,
808
+ "%Int8Array%": typeof Int8Array > "u" ? a : Int8Array,
809
+ "%Int16Array%": typeof Int16Array > "u" ? a : Int16Array,
810
+ "%Int32Array%": typeof Int32Array > "u" ? a : Int32Array,
811
+ "%isFinite%": isFinite,
812
+ "%isNaN%": isNaN,
813
+ "%IteratorPrototype%": w && t ? t(t([][Symbol.iterator]())) : a,
814
+ "%JSON%": typeof JSON == "object" ? JSON : a,
815
+ "%Map%": typeof Map > "u" ? a : Map,
816
+ "%MapIteratorPrototype%": typeof Map > "u" || !w || !t ? a : t((/* @__PURE__ */ new Map())[Symbol.iterator]()),
817
+ "%Math%": Math,
818
+ "%Number%": Number,
819
+ "%Object%": c,
820
+ "%Object.getOwnPropertyDescriptor%": d,
821
+ "%parseFloat%": parseFloat,
822
+ "%parseInt%": parseInt,
823
+ "%Promise%": typeof Promise > "u" ? a : Promise,
824
+ "%Proxy%": typeof Proxy > "u" ? a : Proxy,
825
+ "%RangeError%": m,
826
+ "%ReferenceError%": O,
827
+ "%Reflect%": typeof Reflect > "u" ? a : Reflect,
828
+ "%RegExp%": RegExp,
829
+ "%Set%": typeof Set > "u" ? a : Set,
830
+ "%SetIteratorPrototype%": typeof Set > "u" || !w || !t ? a : t((/* @__PURE__ */ new Set())[Symbol.iterator]()),
831
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? a : SharedArrayBuffer,
832
+ "%String%": String,
833
+ "%StringIteratorPrototype%": w && t ? t(""[Symbol.iterator]()) : a,
834
+ "%Symbol%": w ? Symbol : a,
835
+ "%SyntaxError%": x,
836
+ "%ThrowTypeError%": A,
837
+ "%TypedArray%": U,
838
+ "%TypeError%": v,
839
+ "%Uint8Array%": typeof Uint8Array > "u" ? a : Uint8Array,
840
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? a : Uint8ClampedArray,
841
+ "%Uint16Array%": typeof Uint16Array > "u" ? a : Uint16Array,
842
+ "%Uint32Array%": typeof Uint32Array > "u" ? a : Uint32Array,
843
+ "%URIError%": P,
844
+ "%WeakMap%": typeof WeakMap > "u" ? a : WeakMap,
845
+ "%WeakRef%": typeof WeakRef > "u" ? a : WeakRef,
846
+ "%WeakSet%": typeof WeakSet > "u" ? a : WeakSet,
847
+ "%Function.prototype.call%": _,
848
+ "%Function.prototype.apply%": b,
849
+ "%Object.defineProperty%": S,
850
+ "%Object.getPrototypeOf%": f,
851
+ "%Math.abs%": s,
852
+ "%Math.floor%": g,
853
+ "%Math.max%": h,
854
+ "%Math.min%": F,
855
+ "%Math.pow%": E,
856
+ "%Math.round%": n,
857
+ "%Math.sign%": i,
858
+ "%Reflect.getPrototypeOf%": p
859
+ };
860
+ if (t)
861
+ try {
862
+ null.error;
863
+ } catch (j) {
864
+ var G = t(t(j));
865
+ M["%Error.prototype%"] = G;
866
+ }
867
+ var N = function j($) {
868
+ var k;
869
+ if ($ === "%AsyncFunction%")
870
+ k = R("async function () {}");
871
+ else if ($ === "%GeneratorFunction%")
872
+ k = R("function* () {}");
873
+ else if ($ === "%AsyncGeneratorFunction%")
874
+ k = R("async function* () {}");
875
+ else if ($ === "%AsyncGenerator%") {
876
+ var L = j("%AsyncGeneratorFunction%");
877
+ L && (k = L.prototype);
878
+ } else if ($ === "%AsyncIteratorPrototype%") {
879
+ var z = j("%AsyncGenerator%");
880
+ z && t && (k = t(z.prototype));
881
+ }
882
+ return M[$] = k, k;
883
+ }, H = {
884
+ __proto__: null,
885
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
886
+ "%ArrayPrototype%": ["Array", "prototype"],
887
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
888
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
889
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
890
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
891
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
892
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
893
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
894
+ "%BooleanPrototype%": ["Boolean", "prototype"],
895
+ "%DataViewPrototype%": ["DataView", "prototype"],
896
+ "%DatePrototype%": ["Date", "prototype"],
897
+ "%ErrorPrototype%": ["Error", "prototype"],
898
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
899
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
900
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
901
+ "%FunctionPrototype%": ["Function", "prototype"],
902
+ "%Generator%": ["GeneratorFunction", "prototype"],
903
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
904
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
905
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
906
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
907
+ "%JSONParse%": ["JSON", "parse"],
908
+ "%JSONStringify%": ["JSON", "stringify"],
909
+ "%MapPrototype%": ["Map", "prototype"],
910
+ "%NumberPrototype%": ["Number", "prototype"],
911
+ "%ObjectPrototype%": ["Object", "prototype"],
912
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
913
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
914
+ "%PromisePrototype%": ["Promise", "prototype"],
915
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
916
+ "%Promise_all%": ["Promise", "all"],
917
+ "%Promise_reject%": ["Promise", "reject"],
918
+ "%Promise_resolve%": ["Promise", "resolve"],
919
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
920
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
921
+ "%RegExpPrototype%": ["RegExp", "prototype"],
922
+ "%SetPrototype%": ["Set", "prototype"],
923
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
924
+ "%StringPrototype%": ["String", "prototype"],
925
+ "%SymbolPrototype%": ["Symbol", "prototype"],
926
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
927
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
928
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
929
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
930
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
931
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
932
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
933
+ "%URIErrorPrototype%": ["URIError", "prototype"],
934
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
935
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
936
+ }, l = _e(), C = /* @__PURE__ */ Rn(), K = l.call(_, Array.prototype.concat), X = l.call(b, Array.prototype.splice), oe = l.call(_, String.prototype.replace), ie = l.call(_, String.prototype.slice), fe = l.call(_, RegExp.prototype.exec), ae = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Z = /\\(\\)?/g, le = function($) {
937
+ var k = ie($, 0, 1), L = ie($, -1);
938
+ if (k === "%" && L !== "%")
939
+ throw new x("invalid intrinsic syntax, expected closing `%`");
940
+ if (L === "%" && k !== "%")
941
+ throw new x("invalid intrinsic syntax, expected opening `%`");
942
+ var z = [];
943
+ return oe($, ae, function(Q, ee, V, J) {
944
+ z[z.length] = V ? oe(J, Z, "$1") : ee || Q;
945
+ }), z;
946
+ }, ue = function($, k) {
947
+ var L = $, z;
948
+ if (C(H, L) && (z = H[L], L = "%" + z[0] + "%"), C(M, L)) {
949
+ var Q = M[L];
950
+ if (Q === I && (Q = N(L)), typeof Q > "u" && !k)
951
+ throw new v("intrinsic " + $ + " exists, but is not available. Please file an issue!");
952
+ return {
953
+ alias: z,
954
+ name: L,
955
+ value: Q
956
+ };
957
+ }
958
+ throw new x("intrinsic " + $ + " does not exist!");
959
+ };
960
+ return mr = function($, k) {
961
+ if (typeof $ != "string" || $.length === 0)
962
+ throw new v("intrinsic name must be a non-empty string");
963
+ if (arguments.length > 1 && typeof k != "boolean")
964
+ throw new v('"allowMissing" argument must be a boolean');
965
+ if (fe(/^%?[^%]*%?$/, $) === null)
966
+ throw new x("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
967
+ var L = le($), z = L.length > 0 ? L[0] : "", Q = ue("%" + z + "%", k), ee = Q.name, V = Q.value, J = !1, re = Q.alias;
968
+ re && (z = re[0], X(L, K([0, 1], re)));
969
+ for (var de = 1, ce = !0; de < L.length; de += 1) {
970
+ var te = L[de], ve = ie(te, 0, 1), he = ie(te, -1);
971
+ if ((ve === '"' || ve === "'" || ve === "`" || he === '"' || he === "'" || he === "`") && ve !== he)
972
+ throw new x("property names with quotes must have matching quotes");
973
+ if ((te === "constructor" || !ce) && (J = !0), z += "." + te, ee = "%" + z + "%", C(M, ee))
974
+ V = M[ee];
975
+ else if (V != null) {
976
+ if (!(te in V)) {
977
+ if (!k)
978
+ throw new v("base intrinsic for " + $ + " exists, but the property is not available.");
979
+ return;
980
+ }
981
+ if (d && de + 1 >= L.length) {
982
+ var ge = d(V, te);
983
+ ce = !!ge, ce && "get" in ge && !("originalValue" in ge.get) ? V = ge.get : V = V[te];
984
+ } else
985
+ ce = C(V, te), V = V[te];
986
+ ce && !J && (M[ee] = V);
987
+ }
988
+ }
989
+ return V;
990
+ }, mr;
991
+ }
992
+ var Sr, Et;
993
+ function Bt() {
994
+ if (Et) return Sr;
995
+ Et = 1;
996
+ var a = /* @__PURE__ */ Ir(), c = Lt(), y = c([a("%String.prototype.indexOf%")]);
997
+ return Sr = function(m, O) {
998
+ var x = (
999
+ /** @type {(this: unknown, ...args: unknown[]) => unknown} */
1000
+ a(m, !!O)
1001
+ );
1002
+ return typeof x == "function" && y(m, ".prototype.") > -1 ? c(
1003
+ /** @type {const} */
1004
+ [x]
1005
+ ) : x;
1006
+ }, Sr;
1007
+ }
1008
+ var wr, Pt;
1009
+ function Ut() {
1010
+ if (Pt) return wr;
1011
+ Pt = 1;
1012
+ var a = /* @__PURE__ */ Ir(), c = /* @__PURE__ */ Bt(), y = /* @__PURE__ */ Re(), u = /* @__PURE__ */ we(), m = a("%Map%", !0), O = c("Map.prototype.get", !0), x = c("Map.prototype.set", !0), v = c("Map.prototype.has", !0), P = c("Map.prototype.delete", !0), s = c("Map.prototype.size", !0);
1013
+ return wr = !!m && /** @type {Exclude<import('.'), false>} */
1014
+ function() {
1015
+ var h, F = {
1016
+ assert: function(E) {
1017
+ if (!F.has(E))
1018
+ throw new u("Side channel does not contain " + y(E));
1019
+ },
1020
+ delete: function(E) {
1021
+ if (h) {
1022
+ var n = P(h, E);
1023
+ return s(h) === 0 && (h = void 0), n;
1024
+ }
1025
+ return !1;
1026
+ },
1027
+ get: function(E) {
1028
+ if (h)
1029
+ return O(h, E);
1030
+ },
1031
+ has: function(E) {
1032
+ return h ? v(h, E) : !1;
1033
+ },
1034
+ set: function(E, n) {
1035
+ h || (h = new m()), x(h, E, n);
1036
+ }
1037
+ };
1038
+ return F;
1039
+ }, wr;
1040
+ }
1041
+ var br, Rt;
1042
+ function _n() {
1043
+ if (Rt) return br;
1044
+ Rt = 1;
1045
+ var a = /* @__PURE__ */ Ir(), c = /* @__PURE__ */ Bt(), y = /* @__PURE__ */ Re(), u = Ut(), m = /* @__PURE__ */ we(), O = a("%WeakMap%", !0), x = c("WeakMap.prototype.get", !0), v = c("WeakMap.prototype.set", !0), P = c("WeakMap.prototype.has", !0), s = c("WeakMap.prototype.delete", !0);
1046
+ return br = O ? (
1047
+ /** @type {Exclude<import('.'), false>} */
1048
+ function() {
1049
+ var h, F, E = {
1050
+ assert: function(n) {
1051
+ if (!E.has(n))
1052
+ throw new m("Side channel does not contain " + y(n));
1053
+ },
1054
+ delete: function(n) {
1055
+ if (O && n && (typeof n == "object" || typeof n == "function")) {
1056
+ if (h)
1057
+ return s(h, n);
1058
+ } else if (u && F)
1059
+ return F.delete(n);
1060
+ return !1;
1061
+ },
1062
+ get: function(n) {
1063
+ return O && n && (typeof n == "object" || typeof n == "function") && h ? x(h, n) : F && F.get(n);
1064
+ },
1065
+ has: function(n) {
1066
+ return O && n && (typeof n == "object" || typeof n == "function") && h ? P(h, n) : !!F && F.has(n);
1067
+ },
1068
+ set: function(n, i) {
1069
+ O && n && (typeof n == "object" || typeof n == "function") ? (h || (h = new O()), v(h, n, i)) : u && (F || (F = u()), F.set(n, i));
1070
+ }
1071
+ };
1072
+ return E;
1073
+ }
1074
+ ) : u, br;
1075
+ }
1076
+ var Or, _t;
1077
+ function Wt() {
1078
+ if (_t) return Or;
1079
+ _t = 1;
1080
+ var a = /* @__PURE__ */ we(), c = /* @__PURE__ */ Re(), y = rn(), u = Ut(), m = _n(), O = m || u || y;
1081
+ return Or = function() {
1082
+ var v, P = {
1083
+ assert: function(s) {
1084
+ if (!P.has(s))
1085
+ throw new a("Side channel does not contain " + c(s));
1086
+ },
1087
+ delete: function(s) {
1088
+ return !!v && v.delete(s);
1089
+ },
1090
+ get: function(s) {
1091
+ return v && v.get(s);
1092
+ },
1093
+ has: function(s) {
1094
+ return !!v && v.has(s);
1095
+ },
1096
+ set: function(s, g) {
1097
+ v || (v = O()), v.set(s, g);
1098
+ }
1099
+ };
1100
+ return P;
1101
+ }, Or;
1102
+ }
1103
+ var Ar, xt;
1104
+ function qr() {
1105
+ if (xt) return Ar;
1106
+ xt = 1;
1107
+ var a = String.prototype.replace, c = /%20/g, y = {
1108
+ RFC1738: "RFC1738",
1109
+ RFC3986: "RFC3986"
1110
+ };
1111
+ return Ar = {
1112
+ default: y.RFC3986,
1113
+ formatters: {
1114
+ RFC1738: function(u) {
1115
+ return a.call(u, c, "+");
1116
+ },
1117
+ RFC3986: function(u) {
1118
+ return String(u);
1119
+ }
1120
+ },
1121
+ RFC1738: y.RFC1738,
1122
+ RFC3986: y.RFC3986
1123
+ }, Ar;
1124
+ }
1125
+ var Er, It;
1126
+ function Gt() {
1127
+ if (It) return Er;
1128
+ It = 1;
1129
+ var a = /* @__PURE__ */ qr(), c = Wt(), y = Object.prototype.hasOwnProperty, u = Array.isArray, m = c(), O = function(t, f) {
1130
+ return m.set(t, f), t;
1131
+ }, x = function(t) {
1132
+ return m.has(t);
1133
+ }, v = function(t) {
1134
+ return m.get(t);
1135
+ }, P = function(t, f) {
1136
+ m.set(t, f);
1137
+ }, s = (function() {
1138
+ for (var w = [], t = 0; t < 256; ++t)
1139
+ w[w.length] = "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase();
1140
+ return w;
1141
+ })(), g = function(t) {
1142
+ for (; t.length > 1; ) {
1143
+ var f = t.pop(), p = f.obj[f.prop];
1144
+ if (u(p)) {
1145
+ for (var b = [], _ = 0; _ < p.length; ++_)
1146
+ typeof p[_] < "u" && (b[b.length] = p[_]);
1147
+ f.obj[f.prop] = b;
1148
+ }
1149
+ }
1150
+ }, h = function(t, f) {
1151
+ for (var p = f && f.plainObjects ? { __proto__: null } : {}, b = 0; b < t.length; ++b)
1152
+ typeof t[b] < "u" && (p[b] = t[b]);
1153
+ return p;
1154
+ }, F = function w(t, f, p) {
1155
+ if (!f)
1156
+ return t;
1157
+ if (typeof f != "object" && typeof f != "function") {
1158
+ if (u(t)) {
1159
+ var b = t.length;
1160
+ if (p && typeof p.arrayLimit == "number" && b > p.arrayLimit)
1161
+ return O(h(t.concat(f), p), b);
1162
+ t[b] = f;
1163
+ } else if (t && typeof t == "object")
1164
+ if (x(t)) {
1165
+ var _ = v(t) + 1;
1166
+ t[_] = f, P(t, _);
1167
+ } else (p && (p.plainObjects || p.allowPrototypes) || !y.call(Object.prototype, f)) && (t[f] = !0);
1168
+ else
1169
+ return [t, f];
1170
+ return t;
1171
+ }
1172
+ if (!t || typeof t != "object") {
1173
+ if (x(f)) {
1174
+ for (var I = Object.keys(f), U = p && p.plainObjects ? { __proto__: null, 0: t } : { 0: t }, M = 0; M < I.length; M++) {
1175
+ var G = parseInt(I[M], 10);
1176
+ U[G + 1] = f[I[M]];
1177
+ }
1178
+ return O(U, v(f) + 1);
1179
+ }
1180
+ var N = [t].concat(f);
1181
+ return p && typeof p.arrayLimit == "number" && N.length > p.arrayLimit ? O(h(N, p), N.length - 1) : N;
1182
+ }
1183
+ var H = t;
1184
+ return u(t) && !u(f) && (H = h(t, p)), u(t) && u(f) ? (f.forEach(function(l, C) {
1185
+ if (y.call(t, C)) {
1186
+ var K = t[C];
1187
+ K && typeof K == "object" && l && typeof l == "object" ? t[C] = w(K, l, p) : t[t.length] = l;
1188
+ } else
1189
+ t[C] = l;
1190
+ }), t) : Object.keys(f).reduce(function(l, C) {
1191
+ var K = f[C];
1192
+ if (y.call(l, C) ? l[C] = w(l[C], K, p) : l[C] = K, x(f) && !x(l) && O(l, v(f)), x(l)) {
1193
+ var X = parseInt(C, 10);
1194
+ String(X) === C && X >= 0 && X > v(l) && P(l, X);
1195
+ }
1196
+ return l;
1197
+ }, H);
1198
+ }, E = function(t, f) {
1199
+ return Object.keys(f).reduce(function(p, b) {
1200
+ return p[b] = f[b], p;
1201
+ }, t);
1202
+ }, n = function(w, t, f) {
1203
+ var p = w.replace(/\+/g, " ");
1204
+ if (f === "iso-8859-1")
1205
+ return p.replace(/%[0-9a-f]{2}/gi, unescape);
1206
+ try {
1207
+ return decodeURIComponent(p);
1208
+ } catch {
1209
+ return p;
1210
+ }
1211
+ }, i = 1024, o = function(t, f, p, b, _) {
1212
+ if (t.length === 0)
1213
+ return t;
1214
+ var I = t;
1215
+ if (typeof t == "symbol" ? I = Symbol.prototype.toString.call(t) : typeof t != "string" && (I = String(t)), p === "iso-8859-1")
1216
+ return escape(I).replace(/%u[0-9a-f]{4}/gi, function(C) {
1217
+ return "%26%23" + parseInt(C.slice(2), 16) + "%3B";
1218
+ });
1219
+ for (var U = "", M = 0; M < I.length; M += i) {
1220
+ for (var G = I.length >= i ? I.slice(M, M + i) : I, N = [], H = 0; H < G.length; ++H) {
1221
+ var l = G.charCodeAt(H);
1222
+ if (l === 45 || l === 46 || l === 95 || l === 126 || l >= 48 && l <= 57 || l >= 65 && l <= 90 || l >= 97 && l <= 122 || _ === a.RFC1738 && (l === 40 || l === 41)) {
1223
+ N[N.length] = G.charAt(H);
1224
+ continue;
1225
+ }
1226
+ if (l < 128) {
1227
+ N[N.length] = s[l];
1228
+ continue;
1229
+ }
1230
+ if (l < 2048) {
1231
+ N[N.length] = s[192 | l >> 6] + s[128 | l & 63];
1232
+ continue;
1233
+ }
1234
+ if (l < 55296 || l >= 57344) {
1235
+ N[N.length] = s[224 | l >> 12] + s[128 | l >> 6 & 63] + s[128 | l & 63];
1236
+ continue;
1237
+ }
1238
+ H += 1, l = 65536 + ((l & 1023) << 10 | G.charCodeAt(H) & 1023), N[N.length] = s[240 | l >> 18] + s[128 | l >> 12 & 63] + s[128 | l >> 6 & 63] + s[128 | l & 63];
1239
+ }
1240
+ U += N.join("");
1241
+ }
1242
+ return U;
1243
+ }, R = function(t) {
1244
+ for (var f = [{ obj: { o: t }, prop: "o" }], p = [], b = 0; b < f.length; ++b)
1245
+ for (var _ = f[b], I = _.obj[_.prop], U = Object.keys(I), M = 0; M < U.length; ++M) {
1246
+ var G = U[M], N = I[G];
1247
+ typeof N == "object" && N !== null && p.indexOf(N) === -1 && (f[f.length] = { obj: I, prop: G }, p[p.length] = N);
1248
+ }
1249
+ return g(f), t;
1250
+ }, d = function(t) {
1251
+ return Object.prototype.toString.call(t) === "[object RegExp]";
1252
+ }, S = function(t) {
1253
+ return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
1254
+ }, D = function(t, f, p, b) {
1255
+ if (x(t)) {
1256
+ var _ = v(t) + 1;
1257
+ return t[_] = f, P(t, _), t;
1258
+ }
1259
+ var I = [].concat(t, f);
1260
+ return I.length > p ? O(h(I, { plainObjects: b }), I.length - 1) : I;
1261
+ }, A = function(t, f) {
1262
+ if (u(t)) {
1263
+ for (var p = [], b = 0; b < t.length; b += 1)
1264
+ p[p.length] = f(t[b]);
1265
+ return p;
1266
+ }
1267
+ return f(t);
1268
+ };
1269
+ return Er = {
1270
+ arrayToObject: h,
1271
+ assign: E,
1272
+ combine: D,
1273
+ compact: R,
1274
+ decode: n,
1275
+ encode: o,
1276
+ isBuffer: S,
1277
+ isOverflow: x,
1278
+ isRegExp: d,
1279
+ markOverflow: O,
1280
+ maybeMap: A,
1281
+ merge: F
1282
+ }, Er;
1283
+ }
1284
+ var Pr, qt;
1285
+ function xn() {
1286
+ if (qt) return Pr;
1287
+ qt = 1;
1288
+ var a = Wt(), c = /* @__PURE__ */ Gt(), y = /* @__PURE__ */ qr(), u = Object.prototype.hasOwnProperty, m = {
1289
+ brackets: function(o) {
1290
+ return o + "[]";
1291
+ },
1292
+ comma: "comma",
1293
+ indices: function(o, R) {
1294
+ return o + "[" + R + "]";
1295
+ },
1296
+ repeat: function(o) {
1297
+ return o;
1298
+ }
1299
+ }, O = Array.isArray, x = Array.prototype.push, v = function(i, o) {
1300
+ x.apply(i, O(o) ? o : [o]);
1301
+ }, P = Date.prototype.toISOString, s = y.default, g = {
1302
+ addQueryPrefix: !1,
1303
+ allowDots: !1,
1304
+ allowEmptyArrays: !1,
1305
+ arrayFormat: "indices",
1306
+ charset: "utf-8",
1307
+ charsetSentinel: !1,
1308
+ commaRoundTrip: !1,
1309
+ delimiter: "&",
1310
+ encode: !0,
1311
+ encodeDotInKeys: !1,
1312
+ encoder: c.encode,
1313
+ encodeValuesOnly: !1,
1314
+ filter: void 0,
1315
+ format: s,
1316
+ formatter: y.formatters[s],
1317
+ // deprecated
1318
+ indices: !1,
1319
+ serializeDate: function(o) {
1320
+ return P.call(o);
1321
+ },
1322
+ skipNulls: !1,
1323
+ strictNullHandling: !1
1324
+ }, h = function(o) {
1325
+ return typeof o == "string" || typeof o == "number" || typeof o == "boolean" || typeof o == "symbol" || typeof o == "bigint";
1326
+ }, F = {}, E = function i(o, R, d, S, D, A, w, t, f, p, b, _, I, U, M, G, N, H) {
1327
+ for (var l = o, C = H, K = 0, X = !1; (C = C.get(F)) !== void 0 && !X; ) {
1328
+ var oe = C.get(o);
1329
+ if (K += 1, typeof oe < "u") {
1330
+ if (oe === K)
1331
+ throw new RangeError("Cyclic object value");
1332
+ X = !0;
1333
+ }
1334
+ typeof C.get(F) > "u" && (K = 0);
1335
+ }
1336
+ if (typeof p == "function" ? l = p(R, l) : l instanceof Date ? l = I(l) : d === "comma" && O(l) && (l = c.maybeMap(l, function(ee) {
1337
+ return ee instanceof Date ? I(ee) : ee;
1338
+ })), l === null) {
1339
+ if (A)
1340
+ return f && !G ? f(R, g.encoder, N, "key", U) : R;
1341
+ l = "";
1342
+ }
1343
+ if (h(l) || c.isBuffer(l)) {
1344
+ if (f) {
1345
+ var ie = G ? R : f(R, g.encoder, N, "key", U);
1346
+ return [M(ie) + "=" + M(f(l, g.encoder, N, "value", U))];
1347
+ }
1348
+ return [M(R) + "=" + M(String(l))];
1349
+ }
1350
+ var fe = [];
1351
+ if (typeof l > "u")
1352
+ return fe;
1353
+ var ae;
1354
+ if (d === "comma" && O(l))
1355
+ G && f && (l = c.maybeMap(l, f)), ae = [{ value: l.length > 0 ? l.join(",") || null : void 0 }];
1356
+ else if (O(p))
1357
+ ae = p;
1358
+ else {
1359
+ var Z = Object.keys(l);
1360
+ ae = b ? Z.sort(b) : Z;
1361
+ }
1362
+ var le = t ? String(R).replace(/\./g, "%2E") : String(R), ue = S && O(l) && l.length === 1 ? le + "[]" : le;
1363
+ if (D && O(l) && l.length === 0)
1364
+ return ue + "[]";
1365
+ for (var j = 0; j < ae.length; ++j) {
1366
+ var $ = ae[j], k = typeof $ == "object" && $ && typeof $.value < "u" ? $.value : l[$];
1367
+ if (!(w && k === null)) {
1368
+ var L = _ && t ? String($).replace(/\./g, "%2E") : String($), z = O(l) ? typeof d == "function" ? d(ue, L) : ue : ue + (_ ? "." + L : "[" + L + "]");
1369
+ H.set(o, K);
1370
+ var Q = a();
1371
+ Q.set(F, H), v(fe, i(
1372
+ k,
1373
+ z,
1374
+ d,
1375
+ S,
1376
+ D,
1377
+ A,
1378
+ w,
1379
+ t,
1380
+ d === "comma" && G && O(l) ? null : f,
1381
+ p,
1382
+ b,
1383
+ _,
1384
+ I,
1385
+ U,
1386
+ M,
1387
+ G,
1388
+ N,
1389
+ Q
1390
+ ));
1391
+ }
1392
+ }
1393
+ return fe;
1394
+ }, n = function(o) {
1395
+ if (!o)
1396
+ return g;
1397
+ if (typeof o.allowEmptyArrays < "u" && typeof o.allowEmptyArrays != "boolean")
1398
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1399
+ if (typeof o.encodeDotInKeys < "u" && typeof o.encodeDotInKeys != "boolean")
1400
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
1401
+ if (o.encoder !== null && typeof o.encoder < "u" && typeof o.encoder != "function")
1402
+ throw new TypeError("Encoder has to be a function.");
1403
+ var R = o.charset || g.charset;
1404
+ if (typeof o.charset < "u" && o.charset !== "utf-8" && o.charset !== "iso-8859-1")
1405
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1406
+ var d = y.default;
1407
+ if (typeof o.format < "u") {
1408
+ if (!u.call(y.formatters, o.format))
1409
+ throw new TypeError("Unknown format option provided.");
1410
+ d = o.format;
1411
+ }
1412
+ var S = y.formatters[d], D = g.filter;
1413
+ (typeof o.filter == "function" || O(o.filter)) && (D = o.filter);
1414
+ var A;
1415
+ if (o.arrayFormat in m ? A = o.arrayFormat : "indices" in o ? A = o.indices ? "indices" : "repeat" : A = g.arrayFormat, "commaRoundTrip" in o && typeof o.commaRoundTrip != "boolean")
1416
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1417
+ var w = typeof o.allowDots > "u" ? o.encodeDotInKeys === !0 ? !0 : g.allowDots : !!o.allowDots;
1418
+ return {
1419
+ addQueryPrefix: typeof o.addQueryPrefix == "boolean" ? o.addQueryPrefix : g.addQueryPrefix,
1420
+ allowDots: w,
1421
+ allowEmptyArrays: typeof o.allowEmptyArrays == "boolean" ? !!o.allowEmptyArrays : g.allowEmptyArrays,
1422
+ arrayFormat: A,
1423
+ charset: R,
1424
+ charsetSentinel: typeof o.charsetSentinel == "boolean" ? o.charsetSentinel : g.charsetSentinel,
1425
+ commaRoundTrip: !!o.commaRoundTrip,
1426
+ delimiter: typeof o.delimiter > "u" ? g.delimiter : o.delimiter,
1427
+ encode: typeof o.encode == "boolean" ? o.encode : g.encode,
1428
+ encodeDotInKeys: typeof o.encodeDotInKeys == "boolean" ? o.encodeDotInKeys : g.encodeDotInKeys,
1429
+ encoder: typeof o.encoder == "function" ? o.encoder : g.encoder,
1430
+ encodeValuesOnly: typeof o.encodeValuesOnly == "boolean" ? o.encodeValuesOnly : g.encodeValuesOnly,
1431
+ filter: D,
1432
+ format: d,
1433
+ formatter: S,
1434
+ serializeDate: typeof o.serializeDate == "function" ? o.serializeDate : g.serializeDate,
1435
+ skipNulls: typeof o.skipNulls == "boolean" ? o.skipNulls : g.skipNulls,
1436
+ sort: typeof o.sort == "function" ? o.sort : null,
1437
+ strictNullHandling: typeof o.strictNullHandling == "boolean" ? o.strictNullHandling : g.strictNullHandling
1438
+ };
1439
+ };
1440
+ return Pr = function(i, o) {
1441
+ var R = i, d = n(o), S, D;
1442
+ typeof d.filter == "function" ? (D = d.filter, R = D("", R)) : O(d.filter) && (D = d.filter, S = D);
1443
+ var A = [];
1444
+ if (typeof R != "object" || R === null)
1445
+ return "";
1446
+ var w = m[d.arrayFormat], t = w === "comma" && d.commaRoundTrip;
1447
+ S || (S = Object.keys(R)), d.sort && S.sort(d.sort);
1448
+ for (var f = a(), p = 0; p < S.length; ++p) {
1449
+ var b = S[p], _ = R[b];
1450
+ d.skipNulls && _ === null || v(A, E(
1451
+ _,
1452
+ b,
1453
+ w,
1454
+ t,
1455
+ d.allowEmptyArrays,
1456
+ d.strictNullHandling,
1457
+ d.skipNulls,
1458
+ d.encodeDotInKeys,
1459
+ d.encode ? d.encoder : null,
1460
+ d.filter,
1461
+ d.sort,
1462
+ d.allowDots,
1463
+ d.serializeDate,
1464
+ d.format,
1465
+ d.formatter,
1466
+ d.encodeValuesOnly,
1467
+ d.charset,
1468
+ f
1469
+ ));
1470
+ }
1471
+ var I = A.join(d.delimiter), U = d.addQueryPrefix === !0 ? "?" : "";
1472
+ return d.charsetSentinel && (d.charset === "iso-8859-1" ? U += "utf8=%26%2310003%3B&" : U += "utf8=%E2%9C%93&"), I.length > 0 ? U + I : "";
1473
+ }, Pr;
1474
+ }
1475
+ var Rr, Ft;
1476
+ function In() {
1477
+ if (Ft) return Rr;
1478
+ Ft = 1;
1479
+ var a = /* @__PURE__ */ Gt(), c = Object.prototype.hasOwnProperty, y = Array.isArray, u = {
1480
+ allowDots: !1,
1481
+ allowEmptyArrays: !1,
1482
+ allowPrototypes: !1,
1483
+ allowSparse: !1,
1484
+ arrayLimit: 20,
1485
+ charset: "utf-8",
1486
+ charsetSentinel: !1,
1487
+ comma: !1,
1488
+ decodeDotInKeys: !1,
1489
+ decoder: a.decode,
1490
+ delimiter: "&",
1491
+ depth: 5,
1492
+ duplicates: "combine",
1493
+ ignoreQueryPrefix: !1,
1494
+ interpretNumericEntities: !1,
1495
+ parameterLimit: 1e3,
1496
+ parseArrays: !0,
1497
+ plainObjects: !1,
1498
+ strictDepth: !1,
1499
+ strictNullHandling: !1,
1500
+ throwOnLimitExceeded: !1
1501
+ }, m = function(E) {
1502
+ return E.replace(/&#(\d+);/g, function(n, i) {
1503
+ return String.fromCharCode(parseInt(i, 10));
1504
+ });
1505
+ }, O = function(E, n, i) {
1506
+ if (E && typeof E == "string" && n.comma && E.indexOf(",") > -1)
1507
+ return E.split(",");
1508
+ if (n.throwOnLimitExceeded && i >= n.arrayLimit)
1509
+ throw new RangeError("Array limit exceeded. Only " + n.arrayLimit + " element" + (n.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1510
+ return E;
1511
+ }, x = "utf8=%26%2310003%3B", v = "utf8=%E2%9C%93", P = function(n, i) {
1512
+ var o = { __proto__: null }, R = i.ignoreQueryPrefix ? n.replace(/^\?/, "") : n;
1513
+ R = R.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1514
+ var d = i.parameterLimit === 1 / 0 ? void 0 : i.parameterLimit, S = R.split(
1515
+ i.delimiter,
1516
+ i.throwOnLimitExceeded ? d + 1 : d
1517
+ );
1518
+ if (i.throwOnLimitExceeded && S.length > d)
1519
+ throw new RangeError("Parameter limit exceeded. Only " + d + " parameter" + (d === 1 ? "" : "s") + " allowed.");
1520
+ var D = -1, A, w = i.charset;
1521
+ if (i.charsetSentinel)
1522
+ for (A = 0; A < S.length; ++A)
1523
+ S[A].indexOf("utf8=") === 0 && (S[A] === v ? w = "utf-8" : S[A] === x && (w = "iso-8859-1"), D = A, A = S.length);
1524
+ for (A = 0; A < S.length; ++A)
1525
+ if (A !== D) {
1526
+ var t = S[A], f = t.indexOf("]="), p = f === -1 ? t.indexOf("=") : f + 1, b, _;
1527
+ if (p === -1 ? (b = i.decoder(t, u.decoder, w, "key"), _ = i.strictNullHandling ? null : "") : (b = i.decoder(t.slice(0, p), u.decoder, w, "key"), b !== null && (_ = a.maybeMap(
1528
+ O(
1529
+ t.slice(p + 1),
1530
+ i,
1531
+ y(o[b]) ? o[b].length : 0
1532
+ ),
1533
+ function(U) {
1534
+ return i.decoder(U, u.decoder, w, "value");
1535
+ }
1536
+ ))), _ && i.interpretNumericEntities && w === "iso-8859-1" && (_ = m(String(_))), t.indexOf("[]=") > -1 && (_ = y(_) ? [_] : _), i.comma && y(_) && _.length > i.arrayLimit) {
1537
+ if (i.throwOnLimitExceeded)
1538
+ throw new RangeError("Array limit exceeded. Only " + i.arrayLimit + " element" + (i.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1539
+ _ = a.combine([], _, i.arrayLimit, i.plainObjects);
1540
+ }
1541
+ if (b !== null) {
1542
+ var I = c.call(o, b);
1543
+ I && i.duplicates === "combine" ? o[b] = a.combine(
1544
+ o[b],
1545
+ _,
1546
+ i.arrayLimit,
1547
+ i.plainObjects
1548
+ ) : (!I || i.duplicates === "last") && (o[b] = _);
1549
+ }
1550
+ }
1551
+ return o;
1552
+ }, s = function(E, n, i, o) {
1553
+ var R = 0;
1554
+ if (E.length > 0 && E[E.length - 1] === "[]") {
1555
+ var d = E.slice(0, -1).join("");
1556
+ R = Array.isArray(n) && n[d] ? n[d].length : 0;
1557
+ }
1558
+ for (var S = o ? n : O(n, i, R), D = E.length - 1; D >= 0; --D) {
1559
+ var A, w = E[D];
1560
+ if (w === "[]" && i.parseArrays)
1561
+ a.isOverflow(S) ? A = S : A = i.allowEmptyArrays && (S === "" || i.strictNullHandling && S === null) ? [] : a.combine(
1562
+ [],
1563
+ S,
1564
+ i.arrayLimit,
1565
+ i.plainObjects
1566
+ );
1567
+ else {
1568
+ A = i.plainObjects ? { __proto__: null } : {};
1569
+ var t = w.charAt(0) === "[" && w.charAt(w.length - 1) === "]" ? w.slice(1, -1) : w, f = i.decodeDotInKeys ? t.replace(/%2E/g, ".") : t, p = parseInt(f, 10), b = !isNaN(p) && w !== f && String(p) === f && p >= 0 && i.parseArrays;
1570
+ if (!i.parseArrays && f === "")
1571
+ A = { 0: S };
1572
+ else if (b && p < i.arrayLimit)
1573
+ A = [], A[p] = S;
1574
+ else {
1575
+ if (b && i.throwOnLimitExceeded)
1576
+ throw new RangeError("Array limit exceeded. Only " + i.arrayLimit + " element" + (i.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1577
+ b ? (A[p] = S, a.markOverflow(A, p)) : f !== "__proto__" && (A[f] = S);
1578
+ }
1579
+ }
1580
+ S = A;
1581
+ }
1582
+ return S;
1583
+ }, g = function(n, i) {
1584
+ var o = i.allowDots ? n.replace(/\.([^.[]+)/g, "[$1]") : n;
1585
+ if (i.depth <= 0)
1586
+ return !i.plainObjects && c.call(Object.prototype, o) && !i.allowPrototypes ? void 0 : [o];
1587
+ var R = /(\[[^[\]]*])/, d = /(\[[^[\]]*])/g, S = R.exec(o), D = S ? o.slice(0, S.index) : o, A = [];
1588
+ if (D) {
1589
+ if (!i.plainObjects && c.call(Object.prototype, D) && !i.allowPrototypes)
1590
+ return;
1591
+ A[A.length] = D;
1592
+ }
1593
+ for (var w = 0; (S = d.exec(o)) !== null && w < i.depth; ) {
1594
+ w += 1;
1595
+ var t = S[1].slice(1, -1);
1596
+ if (!i.plainObjects && c.call(Object.prototype, t) && !i.allowPrototypes)
1597
+ return;
1598
+ A[A.length] = S[1];
1599
+ }
1600
+ if (S) {
1601
+ if (i.strictDepth === !0)
1602
+ throw new RangeError("Input depth exceeded depth option of " + i.depth + " and strictDepth is true");
1603
+ A[A.length] = "[" + o.slice(S.index) + "]";
1604
+ }
1605
+ return A;
1606
+ }, h = function(n, i, o, R) {
1607
+ if (n) {
1608
+ var d = g(n, o);
1609
+ if (d)
1610
+ return s(d, i, o, R);
1611
+ }
1612
+ }, F = function(n) {
1613
+ if (!n)
1614
+ return u;
1615
+ if (typeof n.allowEmptyArrays < "u" && typeof n.allowEmptyArrays != "boolean")
1616
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
1617
+ if (typeof n.decodeDotInKeys < "u" && typeof n.decodeDotInKeys != "boolean")
1618
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
1619
+ if (n.decoder !== null && typeof n.decoder < "u" && typeof n.decoder != "function")
1620
+ throw new TypeError("Decoder has to be a function.");
1621
+ if (typeof n.charset < "u" && n.charset !== "utf-8" && n.charset !== "iso-8859-1")
1622
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1623
+ if (typeof n.throwOnLimitExceeded < "u" && typeof n.throwOnLimitExceeded != "boolean")
1624
+ throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
1625
+ var i = typeof n.charset > "u" ? u.charset : n.charset, o = typeof n.duplicates > "u" ? u.duplicates : n.duplicates;
1626
+ if (o !== "combine" && o !== "first" && o !== "last")
1627
+ throw new TypeError("The duplicates option must be either combine, first, or last");
1628
+ var R = typeof n.allowDots > "u" ? n.decodeDotInKeys === !0 ? !0 : u.allowDots : !!n.allowDots;
1629
+ return {
1630
+ allowDots: R,
1631
+ allowEmptyArrays: typeof n.allowEmptyArrays == "boolean" ? !!n.allowEmptyArrays : u.allowEmptyArrays,
1632
+ allowPrototypes: typeof n.allowPrototypes == "boolean" ? n.allowPrototypes : u.allowPrototypes,
1633
+ allowSparse: typeof n.allowSparse == "boolean" ? n.allowSparse : u.allowSparse,
1634
+ arrayLimit: typeof n.arrayLimit == "number" ? n.arrayLimit : u.arrayLimit,
1635
+ charset: i,
1636
+ charsetSentinel: typeof n.charsetSentinel == "boolean" ? n.charsetSentinel : u.charsetSentinel,
1637
+ comma: typeof n.comma == "boolean" ? n.comma : u.comma,
1638
+ decodeDotInKeys: typeof n.decodeDotInKeys == "boolean" ? n.decodeDotInKeys : u.decodeDotInKeys,
1639
+ decoder: typeof n.decoder == "function" ? n.decoder : u.decoder,
1640
+ delimiter: typeof n.delimiter == "string" || a.isRegExp(n.delimiter) ? n.delimiter : u.delimiter,
1641
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
1642
+ depth: typeof n.depth == "number" || n.depth === !1 ? +n.depth : u.depth,
1643
+ duplicates: o,
1644
+ ignoreQueryPrefix: n.ignoreQueryPrefix === !0,
1645
+ interpretNumericEntities: typeof n.interpretNumericEntities == "boolean" ? n.interpretNumericEntities : u.interpretNumericEntities,
1646
+ parameterLimit: typeof n.parameterLimit == "number" ? n.parameterLimit : u.parameterLimit,
1647
+ parseArrays: n.parseArrays !== !1,
1648
+ plainObjects: typeof n.plainObjects == "boolean" ? n.plainObjects : u.plainObjects,
1649
+ strictDepth: typeof n.strictDepth == "boolean" ? !!n.strictDepth : u.strictDepth,
1650
+ strictNullHandling: typeof n.strictNullHandling == "boolean" ? n.strictNullHandling : u.strictNullHandling,
1651
+ throwOnLimitExceeded: typeof n.throwOnLimitExceeded == "boolean" ? n.throwOnLimitExceeded : !1
1652
+ };
1653
+ };
1654
+ return Rr = function(E, n) {
1655
+ var i = F(n);
1656
+ if (E === "" || E === null || typeof E > "u")
1657
+ return i.plainObjects ? { __proto__: null } : {};
1658
+ for (var o = typeof E == "string" ? P(E, i) : E, R = i.plainObjects ? { __proto__: null } : {}, d = Object.keys(o), S = 0; S < d.length; ++S) {
1659
+ var D = d[S], A = h(D, o[D], i, typeof E == "string");
1660
+ R = a.merge(R, A, i);
1661
+ }
1662
+ return i.allowSparse === !0 ? R : a.compact(R);
1663
+ }, Rr;
1664
+ }
1665
+ var _r, Mt;
1666
+ function qn() {
1667
+ if (Mt) return _r;
1668
+ Mt = 1;
1669
+ var a = /* @__PURE__ */ xn(), c = /* @__PURE__ */ In(), y = /* @__PURE__ */ qr();
1670
+ return _r = {
1671
+ formats: y,
1672
+ parse: c,
1673
+ stringify: a
1674
+ }, _r;
1675
+ }
1676
+ var Fn = /* @__PURE__ */ qn();
1677
+ const Mn = /* @__PURE__ */ Jt({
1678
+ __proto__: null
1679
+ }, [Fn]);
1680
+ export {
1681
+ Mn as i
1682
+ };
1683
+ //# sourceMappingURL=index-CSck96RZ.js.map