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