jmash-region 0.0.1

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