jmash-region 0.0.3 → 0.0.5

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