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