@verdnatura/vn-front-lib 0.1.1 → 0.1.3
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/components-CrAKAINn.js +9547 -0
- package/dist/components-Db6HFd9F.cjs +15 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/composables-C8hw-mbt.js +8088 -0
- package/dist/composables-yeEr4YMb.cjs +62 -0
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +1 -1
- package/dist/vn-front-lib.cjs +1 -1
- package/dist/vn-front-lib.js +2 -2
- package/package.json +1 -1
- package/dist/components-BAAsDbKC.js +0 -8587
- package/dist/components-zdOTH0ZE.cjs +0 -9
- package/dist/composables-BTDp8DJ1.cjs +0 -56
- package/dist/composables-CAAnziP1.js +0 -3595
|
@@ -1,3595 +0,0 @@
|
|
|
1
|
-
import { useArrayDataStore as e, useValidationsStore as t } from "./stores.js";
|
|
2
|
-
import { buildFilter as n, isDialogOpened as r } from "./filters.js";
|
|
3
|
-
import { advancedFilters as i, trackAnalyticEvent as a } from "./utils.js";
|
|
4
|
-
import { computed as o, inject as s, markRaw as c, onMounted as l, ref as u } from "vue";
|
|
5
|
-
import * as d from "quasar";
|
|
6
|
-
import { useI18n as f } from "vue-i18n";
|
|
7
|
-
import p from "validator";
|
|
8
|
-
import m from "axios";
|
|
9
|
-
import { useRoute as h, useRouter as g } from "vue-router";
|
|
10
|
-
//#region \0rolldown/runtime.js
|
|
11
|
-
var _ = Object.create, v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, b = Object.getOwnPropertyNames, x = Object.getPrototypeOf, S = Object.prototype.hasOwnProperty, C = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), w = (e, t) => {
|
|
12
|
-
let n = {};
|
|
13
|
-
for (var r in e) v(n, r, {
|
|
14
|
-
get: e[r],
|
|
15
|
-
enumerable: !0
|
|
16
|
-
});
|
|
17
|
-
return t || v(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
18
|
-
}, T = (e, t, n, r) => {
|
|
19
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i = b(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !S.call(e, s) && s !== n && v(e, s, {
|
|
20
|
-
get: ((e) => t[e]).bind(null, s),
|
|
21
|
-
enumerable: !(r = y(t, s)) || r.enumerable
|
|
22
|
-
});
|
|
23
|
-
return e;
|
|
24
|
-
}, E = (e, t, n) => (n = e == null ? {} : _(x(e)), T(t || !e || !e.__esModule || !S.call(e, "default") ? v(n, "default", {
|
|
25
|
-
value: e,
|
|
26
|
-
enumerable: !0
|
|
27
|
-
}) : n, e)), D = "_q_fo_";
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region lib/composables/useValidator.js
|
|
30
|
-
function O() {
|
|
31
|
-
let e = t().validations;
|
|
32
|
-
function n(t) {
|
|
33
|
-
let n = e;
|
|
34
|
-
if (!n || !t) return;
|
|
35
|
-
let r = t.split("."), a = r[0], o = r[1], s = a.charAt(0).toUpperCase() + a.slice(1);
|
|
36
|
-
if (!n[s]) return;
|
|
37
|
-
let c = n[s].validations;
|
|
38
|
-
if (c[o]) return c[o].map((e) => i(e)[e.validation]);
|
|
39
|
-
}
|
|
40
|
-
let { t: r } = f({ useScope: "global" }), i = function(e = {}) {
|
|
41
|
-
return {
|
|
42
|
-
format: (t) => {
|
|
43
|
-
let { allowNull: n, with: i, allowBlank: a } = e, o = r(e.message) || e.message;
|
|
44
|
-
if (!a && t === "" || !n && t === null || !new RegExp(i).test(t)) return o;
|
|
45
|
-
},
|
|
46
|
-
presence: (t) => {
|
|
47
|
-
let n = r("globals.valueCantBeEmpty");
|
|
48
|
-
return e.message && (n = r(e.message) || e.message), !p.isEmpty(t ? String(t) : "") || n;
|
|
49
|
-
},
|
|
50
|
-
required: (e, t) => e ? t === 0 || !!t || r("globals.fieldRequired") : null,
|
|
51
|
-
length: (t) => {
|
|
52
|
-
let n = {
|
|
53
|
-
min: e.min || e.is,
|
|
54
|
-
max: e.max || e.is
|
|
55
|
-
};
|
|
56
|
-
t = String(t), t ||= "";
|
|
57
|
-
let r = `Value should have at most ${n.max} characters`;
|
|
58
|
-
return e.is && (r = `Value should be ${e.is} characters long`), e.min && (r = `Value should have at least ${e.min} characters`), e.min && e.max && (r = `Value should have a length between ${e.min} and ${e.max}`), p.isLength(t, n) || r;
|
|
59
|
-
},
|
|
60
|
-
numericality: (t) => e.int ? p.isInt(t) || "Value should be integer" : p.isNumeric(t) || "Value should be a number",
|
|
61
|
-
min: (e, t) => {
|
|
62
|
-
if (t >= 0 && Math.floor(e) < t) return r("inputMin", { value: t });
|
|
63
|
-
},
|
|
64
|
-
custom: (t) => Function(`return (${e.bindedFunction})`)()(t) || "Invalid value"
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
return {
|
|
68
|
-
validate: n,
|
|
69
|
-
validations: i,
|
|
70
|
-
models: e
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
//#endregion
|
|
74
|
-
//#region lib/composables/useRequired.js
|
|
75
|
-
function k(e) {
|
|
76
|
-
let { validations: t } = O(), n = typeof e.required == "boolean" ? e.required : Object.keys(e).includes("required");
|
|
77
|
-
return {
|
|
78
|
-
isRequired: n,
|
|
79
|
-
requiredFieldRule: (e) => t().required(n, e)
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region ../lilium/node_modules/.pnpm/quasar@2.23.3/node_modules/quasar/src/composables/use-quasar/use-quasar.js
|
|
84
|
-
function A() {
|
|
85
|
-
return s("_q_");
|
|
86
|
-
}
|
|
87
|
-
//#endregion
|
|
88
|
-
//#region lib/composables/tMobile.js
|
|
89
|
-
function j(...e) {
|
|
90
|
-
let t = A(), { t: n } = f();
|
|
91
|
-
if (!t.screen.xs) return n(...e);
|
|
92
|
-
}
|
|
93
|
-
//#endregion
|
|
94
|
-
//#region lib/composables/useArrayData.js
|
|
95
|
-
function M(t, a) {
|
|
96
|
-
if (t ??= h().meta.moduleName, !t) throw Error("ArrayData: A key is required to use this composable");
|
|
97
|
-
let s = e();
|
|
98
|
-
s.get(t) || s.set(t);
|
|
99
|
-
let d = s.get(t);
|
|
100
|
-
d.dataKey = t;
|
|
101
|
-
let f = h(), p = g(), m = null;
|
|
102
|
-
l(() => {
|
|
103
|
-
_(a ?? {}), x(["skip"]);
|
|
104
|
-
let e = f.query, t = d.searchUrl;
|
|
105
|
-
if (e[t]) {
|
|
106
|
-
let n = JSON.parse(e[t]), r = n?.filter && typeof n?.filter == "object" ? n?.filter : JSON.parse(n?.filter ?? "{}");
|
|
107
|
-
delete n.filter, d.userParams = {
|
|
108
|
-
...j(te(n)),
|
|
109
|
-
...ne()
|
|
110
|
-
}, d.filter = {
|
|
111
|
-
...r,
|
|
112
|
-
...d.userFilter
|
|
113
|
-
}, r?.order && (d.order = r.order);
|
|
114
|
-
}
|
|
115
|
-
e.stackedParams && (d.stackedParams = JSON.parse(e.stackedParams)), L();
|
|
116
|
-
}), a && _(a);
|
|
117
|
-
function _(e) {
|
|
118
|
-
if (!e) return;
|
|
119
|
-
let t = [
|
|
120
|
-
"url",
|
|
121
|
-
"filter",
|
|
122
|
-
"where",
|
|
123
|
-
"order",
|
|
124
|
-
"limit",
|
|
125
|
-
"skip",
|
|
126
|
-
"userParams",
|
|
127
|
-
"userFilter",
|
|
128
|
-
"exprBuilder",
|
|
129
|
-
"dynamicExprBuilder",
|
|
130
|
-
"searchUrl",
|
|
131
|
-
"navigate",
|
|
132
|
-
"mapKey",
|
|
133
|
-
"oneRecord",
|
|
134
|
-
"hasChanges",
|
|
135
|
-
"isLocal",
|
|
136
|
-
"customFilterFn",
|
|
137
|
-
"remoteParamsArray",
|
|
138
|
-
"keyData",
|
|
139
|
-
"isStackableParams",
|
|
140
|
-
"nonStackableParams",
|
|
141
|
-
"stackedParams",
|
|
142
|
-
"dataAnalyticsFilter",
|
|
143
|
-
"ignoreUrlParams"
|
|
144
|
-
];
|
|
145
|
-
if (typeof e == "object") {
|
|
146
|
-
for (let n in e) if (!(e[n] == null || e[n] === "" || !t.includes(n)) && Object.hasOwn(d, n)) {
|
|
147
|
-
let t = e[n];
|
|
148
|
-
d[n] = e.keepOpts?.includes(n) ? Object.assign(t, d[n]) : t, n === "userParams" && (d.defaultParams = d[n]);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
async function v({ append: e = !1, updateRouter: t = !0 }) {
|
|
153
|
-
C(), m = new AbortController();
|
|
154
|
-
let { params: i, limit: a } = L(), o;
|
|
155
|
-
(d?.exprBuilder || Object.keys(d.dynamicWhereBuilder).length) && (o = n(i, (e, t) => {
|
|
156
|
-
if (e == "filter") return;
|
|
157
|
-
let n = d.exprBuilder?.(e, t);
|
|
158
|
-
return d.dynamicWhereBuilder[e] && (n = { [e]: t }), n && delete i[e], n;
|
|
159
|
-
})), (i.filter.where || o) && (i.filter.where = {
|
|
160
|
-
...i.filter.where,
|
|
161
|
-
...o
|
|
162
|
-
}), i?.filter?.order?.length || delete i?.filter?.order, Object.keys(i?.filter?.where ?? {})?.length || delete i?.filter?.where, d.isLoading = !0;
|
|
163
|
-
let s;
|
|
164
|
-
try {
|
|
165
|
-
s = await Ii(i, m, d);
|
|
166
|
-
} finally {
|
|
167
|
-
d.isLoading = !1, m = null;
|
|
168
|
-
}
|
|
169
|
-
if (d.hasMoreData = a && s.data.length >= a, !(!e && !r() && t && F()?.redirect)) return R(s.data, {
|
|
170
|
-
map: !!d.mapKey,
|
|
171
|
-
append: e,
|
|
172
|
-
oneRecord: d.oneRecord
|
|
173
|
-
}), s;
|
|
174
|
-
}
|
|
175
|
-
function y() {
|
|
176
|
-
s.get(t) && s.clear(t);
|
|
177
|
-
}
|
|
178
|
-
function b(e) {
|
|
179
|
-
delete d[e];
|
|
180
|
-
}
|
|
181
|
-
function x(e = []) {
|
|
182
|
-
s.get(t) && s.reset(t, e);
|
|
183
|
-
}
|
|
184
|
-
function S() {
|
|
185
|
-
s.get(t) && s.resetPagination(t);
|
|
186
|
-
}
|
|
187
|
-
function C() {
|
|
188
|
-
m &&= (m.abort(), null);
|
|
189
|
-
}
|
|
190
|
-
async function w({ filter: e, params: t }, n = {}) {
|
|
191
|
-
return e && (d.filter = e), t && (d.userParams = { ...t }), await v(n);
|
|
192
|
-
}
|
|
193
|
-
async function T({ filter: e, params: t }) {
|
|
194
|
-
e && (d.filter = e);
|
|
195
|
-
let n = {
|
|
196
|
-
...d.userParams,
|
|
197
|
-
...t
|
|
198
|
-
};
|
|
199
|
-
return n = j(n), d.userParams = n, S(), {
|
|
200
|
-
response: await v({}),
|
|
201
|
-
filter: e,
|
|
202
|
-
params: t
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
async function E(e) {
|
|
206
|
-
let t = { ...d.filter };
|
|
207
|
-
t?.where || (t.where = {}), e = {
|
|
208
|
-
...t.where,
|
|
209
|
-
...e
|
|
210
|
-
}, await T({ filter: { where: e } });
|
|
211
|
-
}
|
|
212
|
-
async function D(e, t = "ASC") {
|
|
213
|
-
let n = `${e} ${t}`, r = N(d.order), i = ee(r, e);
|
|
214
|
-
return i > -1 ? r[i] = n : (i = r.length, r.push(n)), d.order = r, S(), await v({}), i++, {
|
|
215
|
-
index: i,
|
|
216
|
-
order: r
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
async function O(e, t = "ASC") {
|
|
220
|
-
let n = `${e} ${t}`;
|
|
221
|
-
return d.order = [n], S(), await v({}), {
|
|
222
|
-
index: 1,
|
|
223
|
-
order: [n]
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
async function k(e, t = !0) {
|
|
227
|
-
d.order = e, S(), t && await v({});
|
|
228
|
-
}
|
|
229
|
-
async function A(e) {
|
|
230
|
-
let t = N(d.order), n = ee(t, e);
|
|
231
|
-
n > -1 && t.splice(n, 1), d.order = t, v({});
|
|
232
|
-
}
|
|
233
|
-
function j(e) {
|
|
234
|
-
for (let t in e) {
|
|
235
|
-
if (e[t] && typeof e[t] == "object") {
|
|
236
|
-
let n = Object.keys(e[t])[0];
|
|
237
|
-
if (Object.values(e[t])[0] === null && (n = n == "eq" ? "null" : "notNull"), i[n]) {
|
|
238
|
-
d.dynamicExprBuilder[t] = n;
|
|
239
|
-
let r = Object.values(e[t])[0];
|
|
240
|
-
d.userParams[t] = r, e[t] = r;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
if (B(e[t], t) && (delete d.userParams[t], delete e[t], d.filter?.where)) {
|
|
244
|
-
let e = t;
|
|
245
|
-
if (d?.exprBuilder) {
|
|
246
|
-
let e = d.exprBuilder(t);
|
|
247
|
-
if (!e || !Object.values(e).every((e) => B(e, t))) continue;
|
|
248
|
-
}
|
|
249
|
-
delete d.filter.where[e], delete d.dynamicExprBuilder[e], Object.keys(d.filter.where).length || delete d.filter.where;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
return e;
|
|
253
|
-
}
|
|
254
|
-
async function M() {
|
|
255
|
-
d.hasMoreData && (d.skip = (d?.filter?.limit ?? d.limit) * d.page, d.page += 1, await v({ append: !0 }));
|
|
256
|
-
}
|
|
257
|
-
async function P() {
|
|
258
|
-
Object.values(d.userParams).length && await v({});
|
|
259
|
-
}
|
|
260
|
-
function F() {
|
|
261
|
-
if (!f?.path) return;
|
|
262
|
-
let e = {
|
|
263
|
-
path: f.path,
|
|
264
|
-
query: { ...f.query ?? {} }
|
|
265
|
-
};
|
|
266
|
-
d?.searchUrl && (e.query[d.searchUrl] = JSON.stringify(te(d.currentFilter)), d.stackedParams?.length ? e.query.stackedParams = JSON.stringify(d.stackedParams) : delete e.query.stackedParams), p.replace(e);
|
|
267
|
-
}
|
|
268
|
-
function I() {
|
|
269
|
-
Object.keys(d?.userParams ?? {}).length || (d.userParams = d.defaultParams ?? {});
|
|
270
|
-
let e = {
|
|
271
|
-
limit: d.limit,
|
|
272
|
-
...d.userFilter
|
|
273
|
-
}, t;
|
|
274
|
-
(e?.where || d.filter?.where) && (t = Object.assign(e?.where ?? {}, d.filter?.where ?? {})), Object.assign(e, d.filter), e.where = t;
|
|
275
|
-
let n = { filter: e };
|
|
276
|
-
Object.assign(n, d.userParams), n.filter && (n.filter.skip = d.skip), d.order ? n.filter.order = N(d.order) : delete n.filter.order;
|
|
277
|
-
for (let [e, t] of Object.entries(n)) {
|
|
278
|
-
if (B(t, e) || t && typeof t == "object" && !Array.isArray(t)) continue;
|
|
279
|
-
let r = z(e)?.expr?.(t);
|
|
280
|
-
r && (n[e] = r);
|
|
281
|
-
}
|
|
282
|
-
return {
|
|
283
|
-
filter: e,
|
|
284
|
-
params: n,
|
|
285
|
-
limit: e.limit
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
function L() {
|
|
289
|
-
let { filter: e, params: t, limit: n } = I(), r = JSON.parse(JSON.stringify(t));
|
|
290
|
-
return delete r.filter.include, delete r.filter.fields, delete r.filter.limit, delete r.filter.skip, r.filter = JSON.stringify(r.filter), d.currentFilter = c(r), {
|
|
291
|
-
filter: e,
|
|
292
|
-
params: t,
|
|
293
|
-
limit: n
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
function R(e, { map: t = !0, append: n = !0, oneRecord: r = !1 }) {
|
|
297
|
-
if (d.append = n, r) {
|
|
298
|
-
d.data = Array.isArray(e) ? e[0] : e;
|
|
299
|
-
return;
|
|
300
|
-
}
|
|
301
|
-
if (n || (d.data = [], d.map = /* @__PURE__ */ new Map()), !Array.isArray(e)) d.data = e;
|
|
302
|
-
else if (!t && n) for (let t of e) d.data.push(t);
|
|
303
|
-
else for (let t of e) {
|
|
304
|
-
let e = t[d.mapKey];
|
|
305
|
-
t.key = e;
|
|
306
|
-
let n = d.map.get(e);
|
|
307
|
-
if (e && n) {
|
|
308
|
-
let { position: r } = n;
|
|
309
|
-
t.position = r, d.map.set(e, t), d.data[r] = t;
|
|
310
|
-
} else t.position = d.map.size, d.map.set(e, t), d.data.push(t);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
function z(e) {
|
|
314
|
-
let t = d.dynamicExprBuilder[e];
|
|
315
|
-
if (t) return i[t];
|
|
316
|
-
}
|
|
317
|
-
function B(e, t) {
|
|
318
|
-
return e === "" || e === void 0 || e === null && !z(t)?.isNullable;
|
|
319
|
-
}
|
|
320
|
-
function te(e) {
|
|
321
|
-
let t = { ...e };
|
|
322
|
-
if (d.ignoreUrlParams.length && Object.keys(t).length) for (let e of d.ignoreUrlParams) delete t[e];
|
|
323
|
-
return t;
|
|
324
|
-
}
|
|
325
|
-
function ne() {
|
|
326
|
-
let e = {};
|
|
327
|
-
if (d.ignoreUrlParams.length && Object.keys(d.userParams).length) for (let t of d.ignoreUrlParams) e[t] = d.userParams[t];
|
|
328
|
-
return e;
|
|
329
|
-
}
|
|
330
|
-
return {
|
|
331
|
-
fetch: v,
|
|
332
|
-
applyFilter: w,
|
|
333
|
-
addFilter: T,
|
|
334
|
-
getCurrentFilter: I,
|
|
335
|
-
setCurrentFilter: L,
|
|
336
|
-
addFilterWhere: E,
|
|
337
|
-
addOrder: D,
|
|
338
|
-
applyOrder: O,
|
|
339
|
-
applyOrders: k,
|
|
340
|
-
deleteOrder: A,
|
|
341
|
-
refresh: P,
|
|
342
|
-
destroy: y,
|
|
343
|
-
loadMore: M,
|
|
344
|
-
store: d,
|
|
345
|
-
totalRows: o(() => d.data && d.data.length || 0),
|
|
346
|
-
updateStateParams: F,
|
|
347
|
-
isLoading: u(d.isLoading || !1),
|
|
348
|
-
deleteOption: b,
|
|
349
|
-
reset: x,
|
|
350
|
-
resetPagination: S,
|
|
351
|
-
setOptions: _,
|
|
352
|
-
sanitizerParams: j,
|
|
353
|
-
processData: R,
|
|
354
|
-
dataKey: t
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
function ee(e, t) {
|
|
358
|
-
return e.findIndex((e) => e.split(" ")[0] === t);
|
|
359
|
-
}
|
|
360
|
-
function N(e = []) {
|
|
361
|
-
if (!e) return [];
|
|
362
|
-
if (Array.isArray(e)) return e;
|
|
363
|
-
if (typeof e == "string") return e.split(",").map((e) => e.trim());
|
|
364
|
-
}
|
|
365
|
-
//#endregion
|
|
366
|
-
//#region lib/composables/useForm.js
|
|
367
|
-
function P(e) {
|
|
368
|
-
if (!e || e.hasAttribute("data-no-focus")) return;
|
|
369
|
-
let t = e.querySelectorAll("textarea:not([disabled]), [contenteditable]:not([disabled])"), [n] = e.querySelectorAll("input:not([disabled]):not([type=\"checkbox\"])"), r = t.length, i = r ? t[r - 1] : n;
|
|
370
|
-
i !== document.activeElement && i?.focus();
|
|
371
|
-
}
|
|
372
|
-
//#endregion
|
|
373
|
-
//#region lib/i18n/locale/en.yml?raw
|
|
374
|
-
var F = "globals:\n fieldRequired: Field required\n valueCantBeEmpty: Value cannot be empty\n cancel: Cancel\n confirm: Confirm\n pleaseWait: Please wait...\n saveAndContinue: Save and go to\n unsavedPopup:\n title: Unsaved changes will be lost\n subtitle: Are you sure exit without saving?\n pageTitles:\n basicData: Basic data\ninputMin: Must be more than {value}\ninputMax: Must be less than {value}\nmaxLength: Must not exceed {value} characters\nConfirm: Confirm\nAre you sure you want to continue?: Are you sure you want to continue?\nRemove: Remove\nConvert to uppercase: Convert to uppercase\n", I = "globals:\n fieldRequired: Campo requerido\n valueCantBeEmpty: El valor no puede estar vacío\n cancel: Cancelar\n confirm: Confirmar\n pleaseWait: Por favor espera...\n saveAndContinue: Guardar e ir a\n unsavedPopup:\n title: Los cambios que no haya guardado se perderán\n subtitle: ¿Seguro que quiere salir sin guardar?\n pageTitles:\n basicData: Datos básicos\ninputMin: Debe ser mayor a {value}\ninputMax: Debe ser menor a {value}\nmaxLength: No debe superar los {value} caracteres\nConfirm: Confirmar\nAre you sure you want to continue?: ¿Seguro que quieres continuar?\nRemove: Eliminar\nConvert to uppercase: Convertir a mayúsculas\n", L = Symbol("NOT_RESOLVED");
|
|
375
|
-
function R(e, t) {
|
|
376
|
-
return {
|
|
377
|
-
tagName: e,
|
|
378
|
-
nodeKind: "scalar",
|
|
379
|
-
implicit: t.implicit ?? !1,
|
|
380
|
-
matchByTagPrefix: t.matchByTagPrefix ?? !1,
|
|
381
|
-
implicitFirstChars: t.implicitFirstChars ?? null,
|
|
382
|
-
resolve: t.resolve,
|
|
383
|
-
identify: t.identify,
|
|
384
|
-
represent: t.represent ?? ((e) => String(e)),
|
|
385
|
-
representTagName: t.representTagName ?? (() => e)
|
|
386
|
-
};
|
|
387
|
-
}
|
|
388
|
-
function z(e, t) {
|
|
389
|
-
let n = t.finalize === void 0;
|
|
390
|
-
return {
|
|
391
|
-
tagName: e,
|
|
392
|
-
nodeKind: "sequence",
|
|
393
|
-
implicit: !1,
|
|
394
|
-
matchByTagPrefix: t.matchByTagPrefix ?? !1,
|
|
395
|
-
create: t.create,
|
|
396
|
-
addItem: t.addItem,
|
|
397
|
-
finalize: t.finalize ?? ((e) => e),
|
|
398
|
-
carrierIsResult: n,
|
|
399
|
-
identify: t.identify,
|
|
400
|
-
represent: t.represent ?? ((e) => e),
|
|
401
|
-
representTagName: t.representTagName ?? (() => e)
|
|
402
|
-
};
|
|
403
|
-
}
|
|
404
|
-
function B(e, t) {
|
|
405
|
-
let n = t.finalize === void 0;
|
|
406
|
-
return {
|
|
407
|
-
tagName: e,
|
|
408
|
-
nodeKind: "mapping",
|
|
409
|
-
implicit: !1,
|
|
410
|
-
matchByTagPrefix: t.matchByTagPrefix ?? !1,
|
|
411
|
-
create: t.create,
|
|
412
|
-
addPair: t.addPair,
|
|
413
|
-
has: t.has,
|
|
414
|
-
keys: t.keys,
|
|
415
|
-
get: t.get,
|
|
416
|
-
finalize: t.finalize ?? ((e) => e),
|
|
417
|
-
carrierIsResult: n,
|
|
418
|
-
identify: t.identify,
|
|
419
|
-
represent: t.represent ?? ((e) => e),
|
|
420
|
-
representTagName: t.representTagName ?? (() => e)
|
|
421
|
-
};
|
|
422
|
-
}
|
|
423
|
-
var te = R("tag:yaml.org,2002:str", {
|
|
424
|
-
resolve: (e) => e,
|
|
425
|
-
identify: (e) => typeof e == "string"
|
|
426
|
-
}), ne = [
|
|
427
|
-
"",
|
|
428
|
-
"~",
|
|
429
|
-
"null",
|
|
430
|
-
"Null",
|
|
431
|
-
"NULL"
|
|
432
|
-
], re = R("tag:yaml.org,2002:null", {
|
|
433
|
-
implicit: !0,
|
|
434
|
-
implicitFirstChars: [
|
|
435
|
-
"",
|
|
436
|
-
"~",
|
|
437
|
-
"n",
|
|
438
|
-
"N"
|
|
439
|
-
],
|
|
440
|
-
resolve: (e) => ne.indexOf(e) === -1 ? L : null,
|
|
441
|
-
identify: (e) => e === null,
|
|
442
|
-
represent: () => "null"
|
|
443
|
-
}), ie = R("tag:yaml.org,2002:null", {
|
|
444
|
-
implicit: !0,
|
|
445
|
-
implicitFirstChars: ["n"],
|
|
446
|
-
resolve: (e, t) => e === "null" || t && e === "" ? null : L,
|
|
447
|
-
identify: (e) => e === null,
|
|
448
|
-
represent: () => "null"
|
|
449
|
-
}), ae = [
|
|
450
|
-
"",
|
|
451
|
-
"~",
|
|
452
|
-
"null",
|
|
453
|
-
"Null",
|
|
454
|
-
"NULL"
|
|
455
|
-
], oe = R("tag:yaml.org,2002:null", {
|
|
456
|
-
implicit: !0,
|
|
457
|
-
implicitFirstChars: [
|
|
458
|
-
"",
|
|
459
|
-
"~",
|
|
460
|
-
"n",
|
|
461
|
-
"N"
|
|
462
|
-
],
|
|
463
|
-
resolve: (e) => ae.indexOf(e) === -1 ? L : null,
|
|
464
|
-
identify: (e) => e === null,
|
|
465
|
-
represent: () => "null"
|
|
466
|
-
}), se = [
|
|
467
|
-
"true",
|
|
468
|
-
"True",
|
|
469
|
-
"TRUE"
|
|
470
|
-
], ce = [
|
|
471
|
-
"false",
|
|
472
|
-
"False",
|
|
473
|
-
"FALSE"
|
|
474
|
-
], le = R("tag:yaml.org,2002:bool", {
|
|
475
|
-
implicit: !0,
|
|
476
|
-
implicitFirstChars: [
|
|
477
|
-
"t",
|
|
478
|
-
"T",
|
|
479
|
-
"f",
|
|
480
|
-
"F"
|
|
481
|
-
],
|
|
482
|
-
resolve: (e) => se.indexOf(e) !== -1 || ce.indexOf(e) === -1 && L,
|
|
483
|
-
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
484
|
-
represent: (e) => e ? "true" : "false"
|
|
485
|
-
}), ue = ["true"], V = ["false"], H = R("tag:yaml.org,2002:bool", {
|
|
486
|
-
implicit: !0,
|
|
487
|
-
implicitFirstChars: ["t", "f"],
|
|
488
|
-
resolve: (e) => ue.indexOf(e) !== -1 || V.indexOf(e) === -1 && L,
|
|
489
|
-
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
490
|
-
represent: (e) => e ? "true" : "false"
|
|
491
|
-
}), de = [
|
|
492
|
-
"true",
|
|
493
|
-
"True",
|
|
494
|
-
"TRUE",
|
|
495
|
-
"y",
|
|
496
|
-
"Y",
|
|
497
|
-
"yes",
|
|
498
|
-
"Yes",
|
|
499
|
-
"YES",
|
|
500
|
-
"on",
|
|
501
|
-
"On",
|
|
502
|
-
"ON"
|
|
503
|
-
], fe = [
|
|
504
|
-
"false",
|
|
505
|
-
"False",
|
|
506
|
-
"FALSE",
|
|
507
|
-
"n",
|
|
508
|
-
"N",
|
|
509
|
-
"no",
|
|
510
|
-
"No",
|
|
511
|
-
"NO",
|
|
512
|
-
"off",
|
|
513
|
-
"Off",
|
|
514
|
-
"OFF"
|
|
515
|
-
], pe = R("tag:yaml.org,2002:bool", {
|
|
516
|
-
implicit: !0,
|
|
517
|
-
implicitFirstChars: [
|
|
518
|
-
"y",
|
|
519
|
-
"Y",
|
|
520
|
-
"n",
|
|
521
|
-
"N",
|
|
522
|
-
"t",
|
|
523
|
-
"T",
|
|
524
|
-
"f",
|
|
525
|
-
"F",
|
|
526
|
-
"o",
|
|
527
|
-
"O"
|
|
528
|
-
],
|
|
529
|
-
resolve: (e) => de.indexOf(e) !== -1 || fe.indexOf(e) === -1 && L,
|
|
530
|
-
identify: (e) => Object.prototype.toString.call(e) === "[object Boolean]",
|
|
531
|
-
represent: (e) => e ? "true" : "false"
|
|
532
|
-
}), me = /* @__PURE__ */ RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"), he = /* @__PURE__ */ RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
|
|
533
|
-
function ge(e) {
|
|
534
|
-
let t = e, n = 1;
|
|
535
|
-
return (t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b") ? n * parseInt(t.slice(2), 2) : t.startsWith("0o") ? n * parseInt(t.slice(2), 8) : t.startsWith("0x") ? n * parseInt(t.slice(2), 16) : n * parseInt(t, 10);
|
|
536
|
-
}
|
|
537
|
-
function _e(e, t) {
|
|
538
|
-
if (t) {
|
|
539
|
-
if (!he.test(e)) return L;
|
|
540
|
-
} else if (!me.test(e)) return L;
|
|
541
|
-
let n = ge(e);
|
|
542
|
-
return Number.isFinite(n) ? n : L;
|
|
543
|
-
}
|
|
544
|
-
var ve = R("tag:yaml.org,2002:int", {
|
|
545
|
-
implicit: !0,
|
|
546
|
-
implicitFirstChars: [
|
|
547
|
-
"-",
|
|
548
|
-
"+",
|
|
549
|
-
..."0123456789"
|
|
550
|
-
],
|
|
551
|
-
resolve: _e,
|
|
552
|
-
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
553
|
-
represent: (e) => e.toString(10)
|
|
554
|
-
}), ye = /* @__PURE__ */ RegExp("^-?(?:0|[1-9][0-9]*)$"), be = /* @__PURE__ */ RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");
|
|
555
|
-
function xe(e) {
|
|
556
|
-
let t = e, n = 1;
|
|
557
|
-
return (t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b") ? n * parseInt(t.slice(2), 2) : t.startsWith("0o") ? n * parseInt(t.slice(2), 8) : t.startsWith("0x") ? n * parseInt(t.slice(2), 16) : n * parseInt(t, 10);
|
|
558
|
-
}
|
|
559
|
-
function Se(e, t) {
|
|
560
|
-
if (t) {
|
|
561
|
-
if (!be.test(e)) return L;
|
|
562
|
-
} else if (!ye.test(e)) return L;
|
|
563
|
-
let n = xe(e);
|
|
564
|
-
return Number.isFinite(n) ? n : L;
|
|
565
|
-
}
|
|
566
|
-
var Ce = R("tag:yaml.org,2002:int", {
|
|
567
|
-
implicit: !0,
|
|
568
|
-
implicitFirstChars: ["-", ..."0123456789"],
|
|
569
|
-
resolve: Se,
|
|
570
|
-
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
571
|
-
represent: (e) => e.toString(10)
|
|
572
|
-
}), we = /* @__PURE__ */ RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");
|
|
573
|
-
function Te(e) {
|
|
574
|
-
let t = e.replace(/_/g, ""), n = 1;
|
|
575
|
-
if ((t[0] === "-" || t[0] === "+") && (t[0] === "-" && (n = -1), t = t.slice(1)), t.startsWith("0b")) return n * parseInt(t.slice(2), 2);
|
|
576
|
-
if (t.startsWith("0x")) return n * parseInt(t.slice(2), 16);
|
|
577
|
-
if (t.includes(":")) {
|
|
578
|
-
let e = 0;
|
|
579
|
-
for (let n of t.split(":")) e = e * 60 + Number(n);
|
|
580
|
-
return n * e;
|
|
581
|
-
}
|
|
582
|
-
return t !== "0" && t[0] === "0" ? n * parseInt(t, 8) : n * parseInt(t, 10);
|
|
583
|
-
}
|
|
584
|
-
function Ee(e) {
|
|
585
|
-
if (!we.test(e)) return L;
|
|
586
|
-
let t = Te(e);
|
|
587
|
-
return Number.isFinite(t) ? t : L;
|
|
588
|
-
}
|
|
589
|
-
var De = R("tag:yaml.org,2002:int", {
|
|
590
|
-
implicit: !0,
|
|
591
|
-
implicitFirstChars: [
|
|
592
|
-
"-",
|
|
593
|
-
"+",
|
|
594
|
-
..."0123456789"
|
|
595
|
-
],
|
|
596
|
-
resolve: Ee,
|
|
597
|
-
identify: (e) => Number.isInteger(e) && !Object.is(e, -0) && e.toString(10).indexOf("e") < 0,
|
|
598
|
-
represent: (e) => e.toString(10)
|
|
599
|
-
}), Oe = /* @__PURE__ */ RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), ke = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
600
|
-
function Ae(e) {
|
|
601
|
-
if (!Oe.test(e)) return L;
|
|
602
|
-
let t = e.toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
603
|
-
if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Infinity : -Infinity;
|
|
604
|
-
if (t === ".nan") return NaN;
|
|
605
|
-
let r = n * parseFloat(t);
|
|
606
|
-
return Number.isFinite(r) || ke.test(e) ? r : L;
|
|
607
|
-
}
|
|
608
|
-
function je(e) {
|
|
609
|
-
if (isNaN(e)) return ".nan";
|
|
610
|
-
if (e === Infinity) return ".inf";
|
|
611
|
-
if (e === -Infinity) return "-.inf";
|
|
612
|
-
if (Object.is(e, -0)) return "-0.0";
|
|
613
|
-
let t = e.toString(10);
|
|
614
|
-
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
615
|
-
}
|
|
616
|
-
var Me = R("tag:yaml.org,2002:float", {
|
|
617
|
-
implicit: !0,
|
|
618
|
-
implicitFirstChars: [
|
|
619
|
-
"-",
|
|
620
|
-
"+",
|
|
621
|
-
".",
|
|
622
|
-
..."0123456789"
|
|
623
|
-
],
|
|
624
|
-
resolve: Ae,
|
|
625
|
-
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
626
|
-
represent: je
|
|
627
|
-
}), Ne = /* @__PURE__ */ RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"), Pe = /* @__PURE__ */ RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
628
|
-
function Fe(e, t) {
|
|
629
|
-
if (t) {
|
|
630
|
-
if (!Pe.test(e)) return L;
|
|
631
|
-
let t = e.toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
632
|
-
if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Infinity : -Infinity;
|
|
633
|
-
if (t === ".nan") return NaN;
|
|
634
|
-
let r = n * parseFloat(t);
|
|
635
|
-
return Number.isFinite(r) ? r : L;
|
|
636
|
-
}
|
|
637
|
-
if (!Ne.test(e)) return L;
|
|
638
|
-
let n = Number(e);
|
|
639
|
-
return Number.isFinite(n) ? n : L;
|
|
640
|
-
}
|
|
641
|
-
function Ie(e) {
|
|
642
|
-
if (isNaN(e)) return ".nan";
|
|
643
|
-
if (e === Infinity) return ".inf";
|
|
644
|
-
if (e === -Infinity) return "-.inf";
|
|
645
|
-
if (Object.is(e, -0)) return "-0.0";
|
|
646
|
-
let t = e.toString(10);
|
|
647
|
-
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
648
|
-
}
|
|
649
|
-
var Le = R("tag:yaml.org,2002:float", {
|
|
650
|
-
implicit: !0,
|
|
651
|
-
implicitFirstChars: ["-", ..."0123456789"],
|
|
652
|
-
resolve: Fe,
|
|
653
|
-
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
654
|
-
represent: Ie
|
|
655
|
-
}), Re = /* @__PURE__ */ RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), ze = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
656
|
-
function Be(e) {
|
|
657
|
-
if (!Re.test(e)) return L;
|
|
658
|
-
let t = e.toLowerCase().replace(/_/g, ""), n = t[0] === "-" ? -1 : 1;
|
|
659
|
-
if ("+-".includes(t[0]) && (t = t.slice(1)), t === ".inf") return n === 1 ? Infinity : -Infinity;
|
|
660
|
-
if (t === ".nan") return NaN;
|
|
661
|
-
let r = 0;
|
|
662
|
-
if (t.includes(":")) {
|
|
663
|
-
for (let e of t.split(":")) r = r * 60 + Number(e);
|
|
664
|
-
r *= n;
|
|
665
|
-
} else r = n * parseFloat(t);
|
|
666
|
-
return Number.isFinite(r) || ze.test(e) ? r : L;
|
|
667
|
-
}
|
|
668
|
-
function Ve(e) {
|
|
669
|
-
if (isNaN(e)) return ".nan";
|
|
670
|
-
if (e === Infinity) return ".inf";
|
|
671
|
-
if (e === -Infinity) return "-.inf";
|
|
672
|
-
if (Object.is(e, -0)) return "-0.0";
|
|
673
|
-
let t = e.toString(10);
|
|
674
|
-
return /^[-+]?[0-9]+e/.test(t) ? t.replace("e", ".e") : t;
|
|
675
|
-
}
|
|
676
|
-
var He = R("tag:yaml.org,2002:float", {
|
|
677
|
-
implicit: !0,
|
|
678
|
-
implicitFirstChars: [
|
|
679
|
-
"-",
|
|
680
|
-
"+",
|
|
681
|
-
".",
|
|
682
|
-
..."0123456789"
|
|
683
|
-
],
|
|
684
|
-
resolve: Be,
|
|
685
|
-
identify: (e) => typeof e == "number" && (!Number.isInteger(e) || Object.is(e, -0) || e.toString(10).indexOf("e") >= 0),
|
|
686
|
-
represent: Ve
|
|
687
|
-
}), Ue = R("tag:yaml.org,2002:merge", {
|
|
688
|
-
implicit: !0,
|
|
689
|
-
implicitFirstChars: ["<"],
|
|
690
|
-
resolve: (e, t) => e === "<<" || t && e === "" ? "<<" : L,
|
|
691
|
-
identify: () => !1
|
|
692
|
-
}), We = /^[A-Za-z0-9+/]*={0,2}$/;
|
|
693
|
-
function Ge(e) {
|
|
694
|
-
let t = e.replace(/\s/g, "");
|
|
695
|
-
if (t.length % 4 != 0 || !We.test(t)) return L;
|
|
696
|
-
let n = atob(t), r = new Uint8Array(n.length);
|
|
697
|
-
for (let e = 0; e < n.length; e++) r[e] = n.charCodeAt(e);
|
|
698
|
-
return r;
|
|
699
|
-
}
|
|
700
|
-
function Ke(e) {
|
|
701
|
-
let t = "";
|
|
702
|
-
for (let n = 0; n < e.length; n++) t += String.fromCharCode(e[n]);
|
|
703
|
-
return btoa(t);
|
|
704
|
-
}
|
|
705
|
-
var qe = R("tag:yaml.org,2002:binary", {
|
|
706
|
-
resolve: Ge,
|
|
707
|
-
identify: (e) => Object.prototype.toString.call(e) === "[object Uint8Array]",
|
|
708
|
-
represent: Ke
|
|
709
|
-
}), Je = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), Ye = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
710
|
-
function Xe(e, t, n, r = 0, i = 0, a = 0, o = 0) {
|
|
711
|
-
let s = new Date(Date.UTC(e, t, n, r, i, a, o));
|
|
712
|
-
return s.setUTCFullYear(e, t, n), s;
|
|
713
|
-
}
|
|
714
|
-
function Ze(e) {
|
|
715
|
-
let t = Je.exec(e);
|
|
716
|
-
if (t === null && (t = Ye.exec(e)), t === null) return L;
|
|
717
|
-
let n = +t[1], r = t[2] - 1, i = +t[3];
|
|
718
|
-
if (!t[4]) {
|
|
719
|
-
let e = Xe(n, r, i);
|
|
720
|
-
return e.getUTCFullYear() !== n || e.getUTCMonth() !== r || e.getUTCDate() !== i ? L : e;
|
|
721
|
-
}
|
|
722
|
-
let a = +t[4], o = +t[5], s = +t[6], c = 0;
|
|
723
|
-
if (a > 23 || o > 59 || s > 59) return L;
|
|
724
|
-
if (t[7]) {
|
|
725
|
-
let e = t[7].slice(0, 3);
|
|
726
|
-
for (; e.length < 3;) e += "0";
|
|
727
|
-
c = +e;
|
|
728
|
-
}
|
|
729
|
-
let l = Xe(n, r, i, a, o, s, c);
|
|
730
|
-
if (l.getUTCFullYear() !== n || l.getUTCMonth() !== r || l.getUTCDate() !== i) return L;
|
|
731
|
-
if (t[9]) {
|
|
732
|
-
let e = +t[10], n = +(t[11] || 0);
|
|
733
|
-
if (e > 23 || n > 59) return L;
|
|
734
|
-
let r = (e * 60 + n) * 6e4;
|
|
735
|
-
l.setTime(l.getTime() - (t[9] === "-" ? -r : r));
|
|
736
|
-
}
|
|
737
|
-
return l;
|
|
738
|
-
}
|
|
739
|
-
var Qe = R("tag:yaml.org,2002:timestamp", {
|
|
740
|
-
implicit: !0,
|
|
741
|
-
implicitFirstChars: [..."0123456789"],
|
|
742
|
-
resolve: Ze,
|
|
743
|
-
identify: (e) => e instanceof Date,
|
|
744
|
-
represent: (e) => e.toISOString()
|
|
745
|
-
}), $e = z("tag:yaml.org,2002:seq", {
|
|
746
|
-
create: () => [],
|
|
747
|
-
addItem: (e, t) => {
|
|
748
|
-
e.push(t);
|
|
749
|
-
},
|
|
750
|
-
identify: Array.isArray
|
|
751
|
-
});
|
|
752
|
-
function et(e) {
|
|
753
|
-
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
754
|
-
let t = Object.getPrototypeOf(e);
|
|
755
|
-
return t === null || t === Object.prototype;
|
|
756
|
-
}
|
|
757
|
-
function tt(e, t) {
|
|
758
|
-
let n = {};
|
|
759
|
-
for (let r of t) e[r] !== void 0 && (n[r] = e[r]);
|
|
760
|
-
return n;
|
|
761
|
-
}
|
|
762
|
-
var nt = z("tag:yaml.org,2002:omap", {
|
|
763
|
-
create: () => ({
|
|
764
|
-
list: [],
|
|
765
|
-
seen: /* @__PURE__ */ new Set()
|
|
766
|
-
}),
|
|
767
|
-
addItem: (e, t) => {
|
|
768
|
-
let n;
|
|
769
|
-
if (t instanceof Map) {
|
|
770
|
-
if (t.size !== 1) return "cannot resolve an ordered map item";
|
|
771
|
-
n = t.keys().next().value;
|
|
772
|
-
} else if (et(t)) {
|
|
773
|
-
let e = Object.keys(t);
|
|
774
|
-
if (e.length !== 1) return "cannot resolve an ordered map item";
|
|
775
|
-
n = e[0];
|
|
776
|
-
} else return "cannot resolve an ordered map item";
|
|
777
|
-
return e.seen.has(n) ? "duplicate key in ordered map" : (e.seen.add(n), e.list.push(t), "");
|
|
778
|
-
},
|
|
779
|
-
finalize: (e) => e.list,
|
|
780
|
-
identify: () => !1
|
|
781
|
-
}), rt = z("tag:yaml.org,2002:pairs", {
|
|
782
|
-
create: () => [],
|
|
783
|
-
addItem: (e, t) => {
|
|
784
|
-
if (t instanceof Map) return t.size === 1 ? (e.push(t.entries().next().value), "") : "cannot resolve a pairs item";
|
|
785
|
-
if (Object.prototype.toString.call(t) !== "[object Object]") return "cannot resolve a pairs item";
|
|
786
|
-
let n = t, r = Object.keys(n);
|
|
787
|
-
return r.length === 1 ? (e.push([r[0], n[r[0]]]), "") : "cannot resolve a pairs item";
|
|
788
|
-
},
|
|
789
|
-
identify: () => !1
|
|
790
|
-
}), it = B("tag:yaml.org,2002:map", {
|
|
791
|
-
create: () => ({}),
|
|
792
|
-
identify: et,
|
|
793
|
-
represent: (e) => {
|
|
794
|
-
let t = /* @__PURE__ */ new Map();
|
|
795
|
-
for (let n of Object.keys(e)) t.set(n, e[n]);
|
|
796
|
-
return t;
|
|
797
|
-
},
|
|
798
|
-
addPair: (e, t, n) => {
|
|
799
|
-
if (typeof t == "object" && t) return "object-based map does not support complex keys";
|
|
800
|
-
let r = String(t);
|
|
801
|
-
return r === "__proto__" ? Object.defineProperty(e, r, {
|
|
802
|
-
value: n,
|
|
803
|
-
enumerable: !0,
|
|
804
|
-
configurable: !0,
|
|
805
|
-
writable: !0
|
|
806
|
-
}) : e[r] = n, "";
|
|
807
|
-
},
|
|
808
|
-
has: (e, t) => typeof t == "object" && t ? !1 : Object.prototype.hasOwnProperty.call(e, String(t)),
|
|
809
|
-
keys: (e) => Object.keys(e),
|
|
810
|
-
get: (e, t) => {
|
|
811
|
-
let n = String(t);
|
|
812
|
-
return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
|
|
813
|
-
}
|
|
814
|
-
}), at = B("tag:yaml.org,2002:set", {
|
|
815
|
-
create: () => /* @__PURE__ */ new Set(),
|
|
816
|
-
identify: (e) => e instanceof Set,
|
|
817
|
-
represent: (e) => {
|
|
818
|
-
let t = /* @__PURE__ */ new Map();
|
|
819
|
-
for (let n of e) t.set(n, null);
|
|
820
|
-
return t;
|
|
821
|
-
},
|
|
822
|
-
addPair: (e, t, n) => n === null ? (e.add(t), "") : "cannot resolve a set item",
|
|
823
|
-
has: (e, t) => e.has(t),
|
|
824
|
-
keys: (e) => e.keys(),
|
|
825
|
-
get: () => null
|
|
826
|
-
});
|
|
827
|
-
function ot() {
|
|
828
|
-
return {
|
|
829
|
-
scalar: Object.create(null),
|
|
830
|
-
sequence: Object.create(null),
|
|
831
|
-
mapping: Object.create(null)
|
|
832
|
-
};
|
|
833
|
-
}
|
|
834
|
-
function st() {
|
|
835
|
-
return {
|
|
836
|
-
scalar: [],
|
|
837
|
-
sequence: [],
|
|
838
|
-
mapping: []
|
|
839
|
-
};
|
|
840
|
-
}
|
|
841
|
-
function ct(e) {
|
|
842
|
-
let t = [];
|
|
843
|
-
for (let n of e) {
|
|
844
|
-
let e = t.length;
|
|
845
|
-
for (let r = 0; r < t.length; r++) {
|
|
846
|
-
let i = t[r];
|
|
847
|
-
if (i.nodeKind === n.nodeKind && i.tagName === n.tagName && i.matchByTagPrefix === n.matchByTagPrefix) {
|
|
848
|
-
e = r;
|
|
849
|
-
break;
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
t[e] = n;
|
|
853
|
-
}
|
|
854
|
-
return t;
|
|
855
|
-
}
|
|
856
|
-
var lt = class e {
|
|
857
|
-
tags;
|
|
858
|
-
implicitScalarTags;
|
|
859
|
-
implicitScalarByFirstChar;
|
|
860
|
-
implicitScalarAnyFirstChar;
|
|
861
|
-
defaultScalarTag;
|
|
862
|
-
defaultSequenceTag;
|
|
863
|
-
defaultMappingTag;
|
|
864
|
-
exact;
|
|
865
|
-
prefix;
|
|
866
|
-
constructor(e) {
|
|
867
|
-
let t = ct(e), n = [], r = ot(), i = st();
|
|
868
|
-
for (let e of t) {
|
|
869
|
-
if (e.nodeKind === "scalar" && e.implicit) {
|
|
870
|
-
if (e.matchByTagPrefix) throw Error("Implicit scalar tags cannot match by tag prefix");
|
|
871
|
-
n.push(e);
|
|
872
|
-
}
|
|
873
|
-
switch (e.nodeKind) {
|
|
874
|
-
case "scalar":
|
|
875
|
-
e.matchByTagPrefix ? i.scalar.push(e) : r.scalar[e.tagName] = e;
|
|
876
|
-
break;
|
|
877
|
-
case "sequence":
|
|
878
|
-
e.matchByTagPrefix ? i.sequence.push(e) : r.sequence[e.tagName] = e;
|
|
879
|
-
break;
|
|
880
|
-
case "mapping": e.matchByTagPrefix ? i.mapping.push(e) : r.mapping[e.tagName] = e;
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
let a = n.filter((e) => e.implicitFirstChars === null), o = /* @__PURE__ */ new Set();
|
|
884
|
-
for (let e of n) if (e.implicitFirstChars !== null) for (let t of e.implicitFirstChars) o.add(t);
|
|
885
|
-
let s = /* @__PURE__ */ new Map();
|
|
886
|
-
for (let e of o) s.set(e, n.filter((t) => t.implicitFirstChars === null || t.implicitFirstChars.indexOf(e) !== -1));
|
|
887
|
-
let c = r.scalar["tag:yaml.org,2002:str"];
|
|
888
|
-
if (!c) throw Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");
|
|
889
|
-
this.tags = t, this.implicitScalarTags = n, this.implicitScalarByFirstChar = s, this.implicitScalarAnyFirstChar = a, this.defaultScalarTag = c, this.defaultSequenceTag = r.sequence["tag:yaml.org,2002:seq"], this.defaultMappingTag = r.mapping["tag:yaml.org,2002:map"], this.exact = r, this.prefix = i;
|
|
890
|
-
}
|
|
891
|
-
lookupScalarTag(e) {
|
|
892
|
-
let t = this.exact.scalar[e];
|
|
893
|
-
if (t) return t;
|
|
894
|
-
for (let t of this.prefix.scalar) if (e.startsWith(t.tagName)) return t;
|
|
895
|
-
}
|
|
896
|
-
lookupSequenceTag(e) {
|
|
897
|
-
let t = this.exact.sequence[e];
|
|
898
|
-
if (t) return t;
|
|
899
|
-
for (let t of this.prefix.sequence) if (e.startsWith(t.tagName)) return t;
|
|
900
|
-
}
|
|
901
|
-
lookupMappingTag(e) {
|
|
902
|
-
let t = this.exact.mapping[e];
|
|
903
|
-
if (t) return t;
|
|
904
|
-
for (let t of this.prefix.mapping) if (e.startsWith(t.tagName)) return t;
|
|
905
|
-
}
|
|
906
|
-
resolveImplicitScalarTag(e) {
|
|
907
|
-
let t = this.implicitScalarByFirstChar.get(e.charAt(0)) ?? this.implicitScalarAnyFirstChar;
|
|
908
|
-
for (let n of t) {
|
|
909
|
-
let t = n.resolve(e, !1, n.tagName);
|
|
910
|
-
if (t !== L) return {
|
|
911
|
-
value: t,
|
|
912
|
-
tag: n
|
|
913
|
-
};
|
|
914
|
-
}
|
|
915
|
-
let n = this.defaultScalarTag;
|
|
916
|
-
return {
|
|
917
|
-
value: n.resolve(e, !1, n.tagName),
|
|
918
|
-
tag: n
|
|
919
|
-
};
|
|
920
|
-
}
|
|
921
|
-
withTags(...t) {
|
|
922
|
-
let n = [];
|
|
923
|
-
for (let e of t) n = n.concat(e);
|
|
924
|
-
return new e([...this.tags, ...n]);
|
|
925
|
-
}
|
|
926
|
-
}, ut = new lt([
|
|
927
|
-
te,
|
|
928
|
-
$e,
|
|
929
|
-
it
|
|
930
|
-
]);
|
|
931
|
-
new lt([
|
|
932
|
-
...ut.tags,
|
|
933
|
-
ie,
|
|
934
|
-
H,
|
|
935
|
-
Ce,
|
|
936
|
-
Le
|
|
937
|
-
]);
|
|
938
|
-
var dt = new lt([
|
|
939
|
-
...ut.tags,
|
|
940
|
-
re,
|
|
941
|
-
le,
|
|
942
|
-
ve,
|
|
943
|
-
Me
|
|
944
|
-
]);
|
|
945
|
-
new lt([
|
|
946
|
-
...ut.tags,
|
|
947
|
-
oe,
|
|
948
|
-
pe,
|
|
949
|
-
De,
|
|
950
|
-
He,
|
|
951
|
-
Qe,
|
|
952
|
-
Ue,
|
|
953
|
-
qe,
|
|
954
|
-
nt,
|
|
955
|
-
rt,
|
|
956
|
-
at
|
|
957
|
-
]).withTags({
|
|
958
|
-
...De,
|
|
959
|
-
resolve: (e, t, n) => {
|
|
960
|
-
let r = De.resolve(e, t, n);
|
|
961
|
-
return r === L ? ve.resolve(e, t, n) : r;
|
|
962
|
-
}
|
|
963
|
-
}, {
|
|
964
|
-
...He,
|
|
965
|
-
resolve: (e, t, n) => {
|
|
966
|
-
let r = He.resolve(e, t, n);
|
|
967
|
-
return r === L ? Me.resolve(e, t, n) : r;
|
|
968
|
-
}
|
|
969
|
-
}), B("tag:yaml.org,2002:map", {
|
|
970
|
-
create: () => /* @__PURE__ */ new Map(),
|
|
971
|
-
addPair: (e, t, n) => (e.set(t, n), ""),
|
|
972
|
-
has: (e, t) => e.has(t),
|
|
973
|
-
keys: (e) => e.keys(),
|
|
974
|
-
get: (e, t) => e.get(t),
|
|
975
|
-
identify: (e) => e instanceof Map || et(e),
|
|
976
|
-
represent: (e) => {
|
|
977
|
-
if (e instanceof Map) return e;
|
|
978
|
-
let t = /* @__PURE__ */ new Map(), n = e;
|
|
979
|
-
for (let e of Object.keys(n)) t.set(e, n[e]);
|
|
980
|
-
return t;
|
|
981
|
-
}
|
|
982
|
-
});
|
|
983
|
-
function ft(e) {
|
|
984
|
-
if (Array.isArray(e)) {
|
|
985
|
-
let t = Array.prototype.slice.call(e);
|
|
986
|
-
for (let e = 0; e < t.length; e++) {
|
|
987
|
-
if (Array.isArray(t[e])) return null;
|
|
988
|
-
typeof t[e] == "object" && Object.prototype.toString.call(t[e]) === "[object Object]" && (t[e] = "[object Object]");
|
|
989
|
-
}
|
|
990
|
-
return String(t);
|
|
991
|
-
}
|
|
992
|
-
return typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" ? "[object Object]" : String(e);
|
|
993
|
-
}
|
|
994
|
-
B("tag:yaml.org,2002:map", {
|
|
995
|
-
create: () => ({}),
|
|
996
|
-
identify: et,
|
|
997
|
-
represent: (e) => {
|
|
998
|
-
let t = /* @__PURE__ */ new Map();
|
|
999
|
-
for (let n of Object.keys(e)) t.set(n, e[n]);
|
|
1000
|
-
return t;
|
|
1001
|
-
},
|
|
1002
|
-
addPair: (e, t, n) => {
|
|
1003
|
-
let r = ft(t);
|
|
1004
|
-
return r === null ? "nested arrays are not supported inside keys" : (r === "__proto__" ? Object.defineProperty(e, r, {
|
|
1005
|
-
value: n,
|
|
1006
|
-
enumerable: !0,
|
|
1007
|
-
configurable: !0,
|
|
1008
|
-
writable: !0
|
|
1009
|
-
}) : e[r] = n, "");
|
|
1010
|
-
},
|
|
1011
|
-
has: (e, t) => {
|
|
1012
|
-
let n = ft(t);
|
|
1013
|
-
return n !== null && Object.prototype.hasOwnProperty.call(e, n);
|
|
1014
|
-
},
|
|
1015
|
-
keys: (e) => Object.keys(e),
|
|
1016
|
-
get: (e, t) => {
|
|
1017
|
-
let n = String(t);
|
|
1018
|
-
return Object.prototype.hasOwnProperty.call(e, n) ? e[n] : null;
|
|
1019
|
-
}
|
|
1020
|
-
});
|
|
1021
|
-
var pt = {
|
|
1022
|
-
maxLength: 79,
|
|
1023
|
-
indent: 1,
|
|
1024
|
-
linesBefore: 3,
|
|
1025
|
-
linesAfter: 2
|
|
1026
|
-
};
|
|
1027
|
-
function mt(e, t, n, r, i) {
|
|
1028
|
-
let a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
1029
|
-
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
1030
|
-
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
1031
|
-
pos: r - t + a.length
|
|
1032
|
-
};
|
|
1033
|
-
}
|
|
1034
|
-
function ht(e, t) {
|
|
1035
|
-
return " ".repeat(Math.max(t - e.length, 0)) + e;
|
|
1036
|
-
}
|
|
1037
|
-
function gt(e, t) {
|
|
1038
|
-
if (!e.buffer) return null;
|
|
1039
|
-
let n = {
|
|
1040
|
-
...pt,
|
|
1041
|
-
...t
|
|
1042
|
-
}, r = /\r?\n|\r|\0/g, i = [0], a = [], o, s = -1;
|
|
1043
|
-
for (; o = r.exec(e.buffer);) a.push(o.index), i.push(o.index + o[0].length), e.position <= o.index && s < 0 && (s = i.length - 2);
|
|
1044
|
-
s < 0 && (s = i.length - 1);
|
|
1045
|
-
let c = "", l = Math.min(e.line + n.linesAfter, a.length).toString().length, u = n.maxLength - (n.indent + l + 3);
|
|
1046
|
-
for (let t = 1; t <= n.linesBefore && !(s - t < 0); t++) {
|
|
1047
|
-
let r = mt(e.buffer, i[s - t], a[s - t], e.position - (i[s] - i[s - t]), u);
|
|
1048
|
-
c = `${" ".repeat(n.indent)}${ht((e.line - t + 1).toString(), l)} | ${r.str}\n${c}`;
|
|
1049
|
-
}
|
|
1050
|
-
let d = mt(e.buffer, i[s], a[s], e.position, u);
|
|
1051
|
-
c += `${" ".repeat(n.indent)}${ht((e.line + 1).toString(), l)} | ${d.str}\n`, c += `${"-".repeat(n.indent + l + 3 + d.pos)}^\n`;
|
|
1052
|
-
for (let t = 1; t <= n.linesAfter && !(s + t >= a.length); t++) {
|
|
1053
|
-
let r = mt(e.buffer, i[s + t], a[s + t], e.position - (i[s] - i[s + t]), u);
|
|
1054
|
-
c += `${" ".repeat(n.indent)}${ht((e.line + t + 1).toString(), l)} | ${r.str}\n`;
|
|
1055
|
-
}
|
|
1056
|
-
return c.replace(/\n$/, "");
|
|
1057
|
-
}
|
|
1058
|
-
function _t(e, t) {
|
|
1059
|
-
let n = "";
|
|
1060
|
-
return e.mark ? (e.mark.name && (n += `in "${e.mark.name}" `), n += `(${e.mark.line + 1}:${e.mark.column + 1})`, !t && e.mark.snippet && (n += `\n\n${e.mark.snippet}`), `${e.reason} ${n}`) : e.reason;
|
|
1061
|
-
}
|
|
1062
|
-
var vt = class e extends Error {
|
|
1063
|
-
reason;
|
|
1064
|
-
mark;
|
|
1065
|
-
constructor(e, t) {
|
|
1066
|
-
super(), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = _t(this, !1), Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
1067
|
-
}
|
|
1068
|
-
toString(e) {
|
|
1069
|
-
return `${this.name}: ${_t(this, e)}`;
|
|
1070
|
-
}
|
|
1071
|
-
static throwAt(t, n, r, i = "") {
|
|
1072
|
-
let a = 0, o = 0;
|
|
1073
|
-
for (let e = 0; e < n; e++) {
|
|
1074
|
-
let n = t.charCodeAt(e);
|
|
1075
|
-
n === 10 ? (a++, o = e + 1) : n === 13 && (a++, t.charCodeAt(e + 1) === 10 && e++, o = e + 1);
|
|
1076
|
-
}
|
|
1077
|
-
let s = {
|
|
1078
|
-
name: i,
|
|
1079
|
-
buffer: t,
|
|
1080
|
-
position: n,
|
|
1081
|
-
line: a,
|
|
1082
|
-
column: n - o
|
|
1083
|
-
};
|
|
1084
|
-
throw s.snippet = gt(s), new e(r, s);
|
|
1085
|
-
}
|
|
1086
|
-
}, U = {
|
|
1087
|
-
DOCUMENT: 1,
|
|
1088
|
-
SEQUENCE: 2,
|
|
1089
|
-
MAPPING: 3,
|
|
1090
|
-
SCALAR: 4,
|
|
1091
|
-
ALIAS: 5,
|
|
1092
|
-
POP: 6
|
|
1093
|
-
}, W = {
|
|
1094
|
-
PLAIN: 1,
|
|
1095
|
-
SINGLE_QUOTED: 2,
|
|
1096
|
-
DOUBLE_QUOTED: 3,
|
|
1097
|
-
LITERAL_BLOCK: 4,
|
|
1098
|
-
FOLDED_BLOCK: 5
|
|
1099
|
-
}, yt = {
|
|
1100
|
-
BLOCK: 1,
|
|
1101
|
-
FLOW: 2
|
|
1102
|
-
}, G = {
|
|
1103
|
-
CLIP: 1,
|
|
1104
|
-
STRIP: 2,
|
|
1105
|
-
KEEP: 3
|
|
1106
|
-
}, bt = -1;
|
|
1107
|
-
function xt(e) {
|
|
1108
|
-
switch (e) {
|
|
1109
|
-
case 48: return "\0";
|
|
1110
|
-
case 97: return "\x07";
|
|
1111
|
-
case 98: return "\b";
|
|
1112
|
-
case 116: return " ";
|
|
1113
|
-
case 9: return " ";
|
|
1114
|
-
case 110: return "\n";
|
|
1115
|
-
case 118: return "\v";
|
|
1116
|
-
case 102: return "\f";
|
|
1117
|
-
case 114: return "\r";
|
|
1118
|
-
case 101: return "\x1B";
|
|
1119
|
-
case 32: return " ";
|
|
1120
|
-
case 34: return "\"";
|
|
1121
|
-
case 47: return "/";
|
|
1122
|
-
case 92: return "\\";
|
|
1123
|
-
case 78: return "
";
|
|
1124
|
-
case 95: return "\xA0";
|
|
1125
|
-
case 76: return "\u2028";
|
|
1126
|
-
case 80: return "\u2029";
|
|
1127
|
-
default: return "";
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
var St = Array(256), Ct = Array(256);
|
|
1131
|
-
for (let e = 0; e < 256; e++) St[e] = +!!xt(e), Ct[e] = xt(e);
|
|
1132
|
-
function wt(e) {
|
|
1133
|
-
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
1134
|
-
}
|
|
1135
|
-
function Tt(e) {
|
|
1136
|
-
return e >= 48 && e <= 57 ? e - 48 : (e | 32) - 97 + 10;
|
|
1137
|
-
}
|
|
1138
|
-
function Et(e) {
|
|
1139
|
-
return e === 120 ? 2 : e === 117 ? 4 : 8;
|
|
1140
|
-
}
|
|
1141
|
-
function Dt(e, t, n) {
|
|
1142
|
-
let r = 0;
|
|
1143
|
-
for (; t < n;) {
|
|
1144
|
-
let n = e.charCodeAt(t);
|
|
1145
|
-
if (n === 10) r++, t++;
|
|
1146
|
-
else if (n === 13) r++, t++, e.charCodeAt(t) === 10 && t++;
|
|
1147
|
-
else if (n === 32 || n === 9) t++;
|
|
1148
|
-
else break;
|
|
1149
|
-
}
|
|
1150
|
-
return {
|
|
1151
|
-
position: t,
|
|
1152
|
-
breaks: r
|
|
1153
|
-
};
|
|
1154
|
-
}
|
|
1155
|
-
function Ot(e) {
|
|
1156
|
-
return e === 1 ? " " : "\n".repeat(e - 1);
|
|
1157
|
-
}
|
|
1158
|
-
function kt(e, t, n) {
|
|
1159
|
-
let r = "", i = t, a = t, o = t;
|
|
1160
|
-
for (; i < n;) {
|
|
1161
|
-
let t = e.charCodeAt(i);
|
|
1162
|
-
if (t === 10 || t === 13) {
|
|
1163
|
-
r += e.slice(a, o);
|
|
1164
|
-
let t = Dt(e, i, n);
|
|
1165
|
-
r += Ot(t.breaks), i = a = o = t.position;
|
|
1166
|
-
} else i++, t !== 32 && t !== 9 && (o = i);
|
|
1167
|
-
}
|
|
1168
|
-
return r + e.slice(a, o);
|
|
1169
|
-
}
|
|
1170
|
-
function At(e, t, n) {
|
|
1171
|
-
let r = "", i = t, a = t, o = t;
|
|
1172
|
-
for (; i < n;) {
|
|
1173
|
-
let t = e.charCodeAt(i);
|
|
1174
|
-
if (t === 39) r += e.slice(a, i) + "'", i += 2, a = o = i;
|
|
1175
|
-
else if (t === 10 || t === 13) {
|
|
1176
|
-
r += e.slice(a, o);
|
|
1177
|
-
let t = Dt(e, i, n);
|
|
1178
|
-
r += Ot(t.breaks), i = a = o = t.position;
|
|
1179
|
-
} else i++, t !== 32 && t !== 9 && (o = i);
|
|
1180
|
-
}
|
|
1181
|
-
return r + e.slice(a, n);
|
|
1182
|
-
}
|
|
1183
|
-
function jt(e, t, n) {
|
|
1184
|
-
let r = "", i = t, a = t, o = t;
|
|
1185
|
-
for (; i < n;) {
|
|
1186
|
-
let t = e.charCodeAt(i);
|
|
1187
|
-
if (t === 92) {
|
|
1188
|
-
r += e.slice(a, i), i++;
|
|
1189
|
-
let t = e.charCodeAt(i);
|
|
1190
|
-
if (t === 10 || t === 13) i = Dt(e, i, n).position;
|
|
1191
|
-
else if (t < 256 && St[t]) r += Ct[t], i++;
|
|
1192
|
-
else {
|
|
1193
|
-
let n = Et(t), a = 0;
|
|
1194
|
-
for (; n > 0; n--) {
|
|
1195
|
-
i++;
|
|
1196
|
-
let t = Tt(e.charCodeAt(i));
|
|
1197
|
-
a = (a << 4) + t;
|
|
1198
|
-
}
|
|
1199
|
-
r += wt(a), i++;
|
|
1200
|
-
}
|
|
1201
|
-
a = o = i;
|
|
1202
|
-
} else if (t === 10 || t === 13) {
|
|
1203
|
-
r += e.slice(a, o);
|
|
1204
|
-
let t = Dt(e, i, n);
|
|
1205
|
-
r += Ot(t.breaks), i = a = o = t.position;
|
|
1206
|
-
} else i++, t !== 32 && t !== 9 && (o = i);
|
|
1207
|
-
}
|
|
1208
|
-
return r + e.slice(a, n);
|
|
1209
|
-
}
|
|
1210
|
-
function Mt(e, t, n, r, i, a) {
|
|
1211
|
-
let o = r < 0 ? 0 : r, s = e.slice(t, n).replace(/\r\n?/g, "\n"), c = s === "" ? [] : (s.endsWith("\n") ? s.slice(0, -1) : s).split("\n"), l = "", u = !1, d = 0, f = !1;
|
|
1212
|
-
for (let e of c) {
|
|
1213
|
-
let t = 0;
|
|
1214
|
-
for (; t < o && e.charCodeAt(t) === 32;) t++;
|
|
1215
|
-
if (r < 0 || t >= e.length) {
|
|
1216
|
-
d++;
|
|
1217
|
-
continue;
|
|
1218
|
-
}
|
|
1219
|
-
let n = e.slice(o), i = n.charCodeAt(0);
|
|
1220
|
-
a ? i === 32 || i === 9 ? (f = !0, l += "\n".repeat(u ? 1 + d : d)) : f ? (f = !1, l += "\n".repeat(d + 1)) : d === 0 ? u && (l += " ") : l += "\n".repeat(d) : l += "\n".repeat(u ? 1 + d : d), l += n, u = !0, d = 0;
|
|
1221
|
-
}
|
|
1222
|
-
return i === G.KEEP ? l += "\n".repeat(u ? 1 + d : d) : i !== G.STRIP && u && (l += "\n"), l;
|
|
1223
|
-
}
|
|
1224
|
-
function Nt(e, t) {
|
|
1225
|
-
if (t.valueStart === bt) return "";
|
|
1226
|
-
let { valueStart: n, valueEnd: r } = t;
|
|
1227
|
-
if (t.fast) return e.slice(n, r);
|
|
1228
|
-
switch (t.style) {
|
|
1229
|
-
case W.SINGLE_QUOTED: return At(e, n, r);
|
|
1230
|
-
case W.DOUBLE_QUOTED: return jt(e, n, r);
|
|
1231
|
-
case W.LITERAL_BLOCK: return Mt(e, n, r, t.indent, t.chomping, !1);
|
|
1232
|
-
case W.FOLDED_BLOCK: return Mt(e, n, r, t.indent, t.chomping, !0);
|
|
1233
|
-
default: return kt(e, n, r);
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
var Pt = Object.assign(Object.create(null), {
|
|
1237
|
-
"!": "!",
|
|
1238
|
-
"!!": "tag:yaml.org,2002:"
|
|
1239
|
-
});
|
|
1240
|
-
function Ft(e, t) {
|
|
1241
|
-
if (e.startsWith("!<") && e.endsWith(">")) return decodeURIComponent(e.slice(2, -1));
|
|
1242
|
-
let n = e.indexOf("!", 1), r = n === -1 ? "!" : e.slice(0, n + 1), i = t?.[r] ?? Pt[r] ?? r;
|
|
1243
|
-
return decodeURIComponent(i) + decodeURIComponent(e.slice(r.length));
|
|
1244
|
-
}
|
|
1245
|
-
var It = -1, Lt = "tag:yaml.org,2002:merge", Rt = {
|
|
1246
|
-
filename: "",
|
|
1247
|
-
schema: dt,
|
|
1248
|
-
json: !1,
|
|
1249
|
-
maxTotalMergeKeys: 1e4,
|
|
1250
|
-
maxAliases: -1
|
|
1251
|
-
};
|
|
1252
|
-
function zt(e) {
|
|
1253
|
-
return "tagStart" in e && e.tagStart !== It ? e.tagStart : "anchorStart" in e && e.anchorStart !== It ? e.anchorStart : "valueStart" in e && e.valueStart !== It ? e.valueStart : "start" in e ? e.start : 0;
|
|
1254
|
-
}
|
|
1255
|
-
function K(e, t) {
|
|
1256
|
-
vt.throwAt(e.source, e.position, t, e.filename);
|
|
1257
|
-
}
|
|
1258
|
-
function Bt(e, t, n, r) {
|
|
1259
|
-
try {
|
|
1260
|
-
return n.finalize(r);
|
|
1261
|
-
} catch (n) {
|
|
1262
|
-
if (n instanceof vt) throw n;
|
|
1263
|
-
vt.throwAt(e.source, t, n instanceof Error ? n.message : String(n), e.filename);
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1266
|
-
function Vt(e, t) {
|
|
1267
|
-
let n = Nt(e.source, t), r = t.tagStart === It ? "" : e.source.slice(t.tagStart, t.tagEnd), i = e.schema.defaultScalarTag;
|
|
1268
|
-
if (r !== "") {
|
|
1269
|
-
if (r === "!") return {
|
|
1270
|
-
value: n,
|
|
1271
|
-
tag: i
|
|
1272
|
-
};
|
|
1273
|
-
let t = Ft(r, e.tagHandlers), a = e.schema.lookupScalarTag(t);
|
|
1274
|
-
if (a) {
|
|
1275
|
-
let r = a.resolve(n, !0, t);
|
|
1276
|
-
return r === L && K(e, `cannot resolve a node with !<${t}> explicit tag`), {
|
|
1277
|
-
value: r,
|
|
1278
|
-
tag: a
|
|
1279
|
-
};
|
|
1280
|
-
}
|
|
1281
|
-
let o = e.schema.lookupMappingTag(t) ?? e.schema.lookupSequenceTag(t);
|
|
1282
|
-
if (o) {
|
|
1283
|
-
n !== "" && K(e, `cannot resolve a node with !<${t}> explicit tag`);
|
|
1284
|
-
let r = o.create(t);
|
|
1285
|
-
return {
|
|
1286
|
-
value: o.carrierIsResult ? r : Bt(e, e.position, o, r),
|
|
1287
|
-
tag: o
|
|
1288
|
-
};
|
|
1289
|
-
}
|
|
1290
|
-
K(e, `unknown scalar tag !<${t}>`);
|
|
1291
|
-
}
|
|
1292
|
-
return t.style === W.PLAIN ? e.schema.resolveImplicitScalarTag(n) : {
|
|
1293
|
-
value: i.resolve(n, !1, i.tagName),
|
|
1294
|
-
tag: i
|
|
1295
|
-
};
|
|
1296
|
-
}
|
|
1297
|
-
function Ht(e, t, n) {
|
|
1298
|
-
let r = t.tagStart === It ? "" : e.source.slice(t.tagStart, t.tagEnd);
|
|
1299
|
-
return r === "" || r === "!" ? n : Ft(r, e.tagHandlers);
|
|
1300
|
-
}
|
|
1301
|
-
function Ut(e) {
|
|
1302
|
-
return e.nodeKind === "mapping";
|
|
1303
|
-
}
|
|
1304
|
-
function Wt(e) {
|
|
1305
|
-
e.totalMergeKeys++, e.maxTotalMergeKeys !== -1 && e.totalMergeKeys > e.maxTotalMergeKeys && K(e, `merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`);
|
|
1306
|
-
}
|
|
1307
|
-
function Gt(e, t, n, r) {
|
|
1308
|
-
Wt(e);
|
|
1309
|
-
for (let i of r.keys(n)) {
|
|
1310
|
-
if (Wt(e), t.tag.has(t.value, i)) continue;
|
|
1311
|
-
let a = t.tag.addPair(t.value, i, r.get(n, i));
|
|
1312
|
-
a && K(e, a), t.overridable ??= /* @__PURE__ */ new Set(), t.overridable.add(i);
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
function Kt(e, t, n, r) {
|
|
1316
|
-
if (e.position = t.keyPosition, Ut(r)) Gt(e, t, n, r);
|
|
1317
|
-
else if (r.nodeKind === "sequence" && Array.isArray(n)) {
|
|
1318
|
-
n.length > 100 && K(e, "abnormal merge sequence size");
|
|
1319
|
-
for (let r of n) {
|
|
1320
|
-
let n = e.nodeTags.get(r);
|
|
1321
|
-
n || K(e, "cannot merge mappings; the provided source object is unacceptable"), Gt(e, t, r, n);
|
|
1322
|
-
}
|
|
1323
|
-
} else K(e, "cannot merge mappings; the provided source object is unacceptable");
|
|
1324
|
-
}
|
|
1325
|
-
function qt(e, t, n, r, i) {
|
|
1326
|
-
if (e.position = t.keyPosition, t.keyIsMerge) {
|
|
1327
|
-
Kt(e, t, r, i);
|
|
1328
|
-
return;
|
|
1329
|
-
}
|
|
1330
|
-
!e.json && t.tag.has(t.value, n) && !t.overridable?.has(n) && K(e, "duplicated mapping key");
|
|
1331
|
-
let a = t.tag.addPair(t.value, n, r);
|
|
1332
|
-
a && K(e, a), t.overridable?.delete(n);
|
|
1333
|
-
}
|
|
1334
|
-
function Jt(e, t, n) {
|
|
1335
|
-
let r = e.frames[e.frames.length - 1];
|
|
1336
|
-
if (r.kind === "document") r.value = t, r.hasValue = !0;
|
|
1337
|
-
else if (r.kind === "sequence") {
|
|
1338
|
-
Ut(n) && e.nodeTags.set(t, n);
|
|
1339
|
-
let i = r.tag.addItem(r.value, t, r.index++);
|
|
1340
|
-
i && K(e, i);
|
|
1341
|
-
} else if (r.hasKey) {
|
|
1342
|
-
let i = r.key;
|
|
1343
|
-
r.key = void 0, r.hasKey = !1, qt(e, r, i, t, n);
|
|
1344
|
-
} else r.key = t, r.keyPosition = e.position, r.hasKey = !0, r.keyIsMerge = n.tagName === Lt;
|
|
1345
|
-
}
|
|
1346
|
-
function Yt(e, t, n, r, i) {
|
|
1347
|
-
if (t.anchorStart !== It) {
|
|
1348
|
-
let a = {
|
|
1349
|
-
value: n,
|
|
1350
|
-
tag: r,
|
|
1351
|
-
isValueFinal: i
|
|
1352
|
-
};
|
|
1353
|
-
return e.anchors.set(e.source.slice(t.anchorStart, t.anchorEnd), a), a;
|
|
1354
|
-
}
|
|
1355
|
-
return null;
|
|
1356
|
-
}
|
|
1357
|
-
function Xt(e, t) {
|
|
1358
|
-
let n = {
|
|
1359
|
-
...Rt,
|
|
1360
|
-
...t,
|
|
1361
|
-
events: e,
|
|
1362
|
-
documents: [],
|
|
1363
|
-
eventIndex: 0,
|
|
1364
|
-
position: 0,
|
|
1365
|
-
frames: [],
|
|
1366
|
-
anchors: /* @__PURE__ */ new Map(),
|
|
1367
|
-
nodeTags: /* @__PURE__ */ new Map(),
|
|
1368
|
-
tagHandlers: Object.create(null),
|
|
1369
|
-
totalMergeKeys: 0,
|
|
1370
|
-
aliasCount: 0
|
|
1371
|
-
};
|
|
1372
|
-
for (; n.eventIndex < n.events.length;) {
|
|
1373
|
-
let e = n.events[n.eventIndex++];
|
|
1374
|
-
switch (n.position = zt(e), e.type) {
|
|
1375
|
-
case U.DOCUMENT:
|
|
1376
|
-
n.anchors = /* @__PURE__ */ new Map(), n.nodeTags = /* @__PURE__ */ new Map(), n.aliasCount = 0, n.tagHandlers = Object.create(null);
|
|
1377
|
-
for (let t of e.directives) t.kind === "tag" && (n.tagHandlers[t.handle] = t.prefix);
|
|
1378
|
-
n.frames.push({
|
|
1379
|
-
kind: "document",
|
|
1380
|
-
position: n.position,
|
|
1381
|
-
value: void 0,
|
|
1382
|
-
hasValue: !1
|
|
1383
|
-
});
|
|
1384
|
-
break;
|
|
1385
|
-
case U.SCALAR: {
|
|
1386
|
-
let { value: t, tag: r } = Vt(n, e);
|
|
1387
|
-
Yt(n, e, t, r, !0), Jt(n, t, r);
|
|
1388
|
-
break;
|
|
1389
|
-
}
|
|
1390
|
-
case U.SEQUENCE: {
|
|
1391
|
-
let t = Ht(n, e, "tag:yaml.org,2002:seq"), r = n.schema.lookupSequenceTag(t);
|
|
1392
|
-
r || K(n, `unknown sequence tag !<${t}>`);
|
|
1393
|
-
let i = r.create(t), a = Yt(n, e, i, r, r.carrierIsResult);
|
|
1394
|
-
n.frames.push({
|
|
1395
|
-
kind: "sequence",
|
|
1396
|
-
position: n.position,
|
|
1397
|
-
value: i,
|
|
1398
|
-
tag: r,
|
|
1399
|
-
anchor: a,
|
|
1400
|
-
index: 0
|
|
1401
|
-
});
|
|
1402
|
-
break;
|
|
1403
|
-
}
|
|
1404
|
-
case U.MAPPING: {
|
|
1405
|
-
let t = Ht(n, e, "tag:yaml.org,2002:map"), r = n.schema.lookupMappingTag(t);
|
|
1406
|
-
r || K(n, `unknown mapping tag !<${t}>`);
|
|
1407
|
-
let i = r.create(t), a = Yt(n, e, i, r, r.carrierIsResult);
|
|
1408
|
-
n.frames.push({
|
|
1409
|
-
kind: "mapping",
|
|
1410
|
-
position: n.position,
|
|
1411
|
-
value: i,
|
|
1412
|
-
tag: r,
|
|
1413
|
-
anchor: a,
|
|
1414
|
-
key: void 0,
|
|
1415
|
-
keyPosition: n.position,
|
|
1416
|
-
hasKey: !1,
|
|
1417
|
-
keyIsMerge: !1,
|
|
1418
|
-
overridable: null
|
|
1419
|
-
});
|
|
1420
|
-
break;
|
|
1421
|
-
}
|
|
1422
|
-
case U.ALIAS: {
|
|
1423
|
-
n.maxAliases !== -1 && ++n.aliasCount > n.maxAliases && K(n, `aliases exceeded maxAliases (${n.maxAliases})`);
|
|
1424
|
-
let t = n.source.slice(e.anchorStart, e.anchorEnd), r = n.anchors.get(t);
|
|
1425
|
-
r || K(n, `unidentified alias "${t}"`), r.isValueFinal || K(n, `recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`), Jt(n, r.value, r.tag);
|
|
1426
|
-
break;
|
|
1427
|
-
}
|
|
1428
|
-
case U.POP: {
|
|
1429
|
-
let e = n.frames.pop();
|
|
1430
|
-
if (e.kind === "mapping" && e.hasKey && (n.position = e.keyPosition, K(n, "incomplete mapping pair in event stream")), e.kind === "document") n.documents.push(e.value);
|
|
1431
|
-
else {
|
|
1432
|
-
let t = e.tag.carrierIsResult ? e.value : Bt(n, e.position, e.tag, e.value);
|
|
1433
|
-
e.anchor && (e.anchor.value = t, e.anchor.isValueFinal = !0), Jt(n, t, e.tag);
|
|
1434
|
-
}
|
|
1435
|
-
break;
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
return n.documents;
|
|
1440
|
-
}
|
|
1441
|
-
var q = -1, Zt = Object.prototype.hasOwnProperty, Qt = 1, $t = 2, en = 3, tn = 4, nn = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, rn = /[,\[\]{}]/, an = /^(?:!|!!|![0-9A-Za-z-]+!)$/, on = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`, sn = String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`, cn = RegExp(`^(?:${on})*$`), ln = RegExp(`^(?:${sn})+$`), un = RegExp(`^(?:!(?:${on})*|${sn}(?:${on})*)$`), dn = {
|
|
1442
|
-
filename: "",
|
|
1443
|
-
maxDepth: 100
|
|
1444
|
-
};
|
|
1445
|
-
function fn(e, t, n) {
|
|
1446
|
-
e.events.push({
|
|
1447
|
-
type: U.DOCUMENT,
|
|
1448
|
-
explicitStart: t,
|
|
1449
|
-
explicitEnd: n,
|
|
1450
|
-
directives: e.directives
|
|
1451
|
-
});
|
|
1452
|
-
}
|
|
1453
|
-
function pn(e, t, n, r, i, a, o) {
|
|
1454
|
-
e.events.push({
|
|
1455
|
-
type: U.SEQUENCE,
|
|
1456
|
-
start: t,
|
|
1457
|
-
anchorStart: n,
|
|
1458
|
-
anchorEnd: r,
|
|
1459
|
-
tagStart: i,
|
|
1460
|
-
tagEnd: a,
|
|
1461
|
-
style: o
|
|
1462
|
-
});
|
|
1463
|
-
}
|
|
1464
|
-
function mn(e, t, n, r, i, a, o) {
|
|
1465
|
-
e.events.push({
|
|
1466
|
-
type: U.MAPPING,
|
|
1467
|
-
start: t,
|
|
1468
|
-
anchorStart: n,
|
|
1469
|
-
anchorEnd: r,
|
|
1470
|
-
tagStart: i,
|
|
1471
|
-
tagEnd: a,
|
|
1472
|
-
style: o
|
|
1473
|
-
});
|
|
1474
|
-
}
|
|
1475
|
-
function hn(e, t) {
|
|
1476
|
-
e.events.splice(t.eventsLength, 0, {
|
|
1477
|
-
type: U.MAPPING,
|
|
1478
|
-
start: t.position,
|
|
1479
|
-
anchorStart: q,
|
|
1480
|
-
anchorEnd: q,
|
|
1481
|
-
tagStart: q,
|
|
1482
|
-
tagEnd: q,
|
|
1483
|
-
style: yt.FLOW
|
|
1484
|
-
});
|
|
1485
|
-
}
|
|
1486
|
-
function gn(e, t, n, r, i, a, o, s, c = G.CLIP, l = -1, u = !1) {
|
|
1487
|
-
e.events.push({
|
|
1488
|
-
type: U.SCALAR,
|
|
1489
|
-
valueStart: t,
|
|
1490
|
-
valueEnd: n,
|
|
1491
|
-
anchorStart: r,
|
|
1492
|
-
anchorEnd: i,
|
|
1493
|
-
tagStart: a,
|
|
1494
|
-
tagEnd: o,
|
|
1495
|
-
style: s,
|
|
1496
|
-
chomping: c,
|
|
1497
|
-
indent: l,
|
|
1498
|
-
fast: u
|
|
1499
|
-
});
|
|
1500
|
-
}
|
|
1501
|
-
function _n(e, t, n) {
|
|
1502
|
-
e.events.push({
|
|
1503
|
-
type: U.ALIAS,
|
|
1504
|
-
anchorStart: t,
|
|
1505
|
-
anchorEnd: n
|
|
1506
|
-
});
|
|
1507
|
-
}
|
|
1508
|
-
function vn(e) {
|
|
1509
|
-
e.events.push({ type: U.POP });
|
|
1510
|
-
}
|
|
1511
|
-
function J(e) {
|
|
1512
|
-
gn(e, q, q, q, q, q, q, W.PLAIN);
|
|
1513
|
-
}
|
|
1514
|
-
function yn() {
|
|
1515
|
-
return {
|
|
1516
|
-
anchorStart: q,
|
|
1517
|
-
anchorEnd: q,
|
|
1518
|
-
tagStart: q,
|
|
1519
|
-
tagEnd: q
|
|
1520
|
-
};
|
|
1521
|
-
}
|
|
1522
|
-
function bn(e) {
|
|
1523
|
-
return {
|
|
1524
|
-
position: e.position,
|
|
1525
|
-
line: e.line,
|
|
1526
|
-
lineStart: e.lineStart,
|
|
1527
|
-
lineIndent: e.lineIndent,
|
|
1528
|
-
firstTabInLine: e.firstTabInLine,
|
|
1529
|
-
eventsLength: e.events.length
|
|
1530
|
-
};
|
|
1531
|
-
}
|
|
1532
|
-
function xn(e, t) {
|
|
1533
|
-
e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.events.length = t.eventsLength;
|
|
1534
|
-
}
|
|
1535
|
-
function Y(e, t) {
|
|
1536
|
-
vt.throwAt(e.input.slice(0, e.length), e.position, t, e.filename);
|
|
1537
|
-
}
|
|
1538
|
-
function X(e) {
|
|
1539
|
-
return e === 10 || e === 13;
|
|
1540
|
-
}
|
|
1541
|
-
function Sn(e) {
|
|
1542
|
-
return e === 9 || e === 32;
|
|
1543
|
-
}
|
|
1544
|
-
function Z(e) {
|
|
1545
|
-
return Sn(e) || X(e);
|
|
1546
|
-
}
|
|
1547
|
-
function Q(e) {
|
|
1548
|
-
return e === 0 || Z(e);
|
|
1549
|
-
}
|
|
1550
|
-
function Cn(e) {
|
|
1551
|
-
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1552
|
-
}
|
|
1553
|
-
function wn(e) {
|
|
1554
|
-
return e >= 48 && e <= 57 ? e - 48 : -1;
|
|
1555
|
-
}
|
|
1556
|
-
function Tn(e) {
|
|
1557
|
-
if (e >= 48 && e <= 57) return e - 48;
|
|
1558
|
-
let t = e | 32;
|
|
1559
|
-
return t >= 97 && t <= 102 ? t - 97 + 10 : -1;
|
|
1560
|
-
}
|
|
1561
|
-
function En(e) {
|
|
1562
|
-
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1563
|
-
}
|
|
1564
|
-
function Dn(e) {
|
|
1565
|
-
return e === 48 || e === 97 || e === 98 || e === 116 || e === 9 || e === 110 || e === 118 || e === 102 || e === 114 || e === 101 || e === 32 || e === 34 || e === 47 || e === 92 || e === 78 || e === 95 || e === 76 || e === 80;
|
|
1566
|
-
}
|
|
1567
|
-
function On(e) {
|
|
1568
|
-
e.input.charCodeAt(e.position) === 10 ? e.position++ : (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++), e.line++, e.lineStart = e.position, e.lineIndent = 0, e.firstTabInLine = -1;
|
|
1569
|
-
}
|
|
1570
|
-
function $(e, t) {
|
|
1571
|
-
let n = 0, r = e.input.charCodeAt(e.position), i = e.position === e.lineStart || Z(e.input.charCodeAt(e.position - 1));
|
|
1572
|
-
for (; r !== 0;) {
|
|
1573
|
-
for (; Sn(r);) i = !0, r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
1574
|
-
if (t && i && r === 35) do
|
|
1575
|
-
r = e.input.charCodeAt(++e.position);
|
|
1576
|
-
while (!X(r) && r !== 0);
|
|
1577
|
-
if (!X(r)) break;
|
|
1578
|
-
for (On(e), n++, i = !0, r = e.input.charCodeAt(e.position); r === 32;) e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
1579
|
-
}
|
|
1580
|
-
return n;
|
|
1581
|
-
}
|
|
1582
|
-
function kn(e, t = e.position) {
|
|
1583
|
-
let n = e.input.charCodeAt(t);
|
|
1584
|
-
if ((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2)) {
|
|
1585
|
-
let n = e.input.charCodeAt(t + 3);
|
|
1586
|
-
return n === 0 || Z(n);
|
|
1587
|
-
}
|
|
1588
|
-
return !1;
|
|
1589
|
-
}
|
|
1590
|
-
function An(e) {
|
|
1591
|
-
e.position === e.lineStart && e.input.charCodeAt(e.position) === 65279 && (e.position++, e.lineStart = e.position);
|
|
1592
|
-
}
|
|
1593
|
-
function jn(e) {
|
|
1594
|
-
if (e.position !== e.lineStart) return !1;
|
|
1595
|
-
if (kn(e)) return !0;
|
|
1596
|
-
if (e.input.charCodeAt(e.position) !== 65279) return !1;
|
|
1597
|
-
let t = bn(e);
|
|
1598
|
-
An(e), $(e, !0);
|
|
1599
|
-
let n = e.input.charCodeAt(e.position), r = e.position === e.lineStart && (n === 37 || n === 45 && kn(e));
|
|
1600
|
-
return xn(e, t), r;
|
|
1601
|
-
}
|
|
1602
|
-
function Mn(e) {
|
|
1603
|
-
let t = e.input.charCodeAt(e.position);
|
|
1604
|
-
for (; t !== 0 && !X(t);) t = e.input.charCodeAt(++e.position);
|
|
1605
|
-
}
|
|
1606
|
-
function Nn(e, t, n) {
|
|
1607
|
-
nn.test(e.input.slice(t, n)) && Y(e, "the stream contains non-printable characters");
|
|
1608
|
-
}
|
|
1609
|
-
function Pn(e, t, n) {
|
|
1610
|
-
if (e.input.charCodeAt(e.position) !== 33) return !1;
|
|
1611
|
-
t.tagStart !== q && Y(e, "duplication of a tag property");
|
|
1612
|
-
let r = e.position, i = !1, a = !1, o = "!", s = e.input.charCodeAt(++e.position);
|
|
1613
|
-
s === 60 ? (i = !0, s = e.input.charCodeAt(++e.position)) : s === 33 && (a = !0, o = "!!", s = e.input.charCodeAt(++e.position));
|
|
1614
|
-
let c = e.position, l;
|
|
1615
|
-
if (i) {
|
|
1616
|
-
for (; s !== 0 && s !== 62;) s = e.input.charCodeAt(++e.position);
|
|
1617
|
-
s !== 62 && Y(e, "unexpected end of the stream within a verbatim tag"), l = e.input.slice(c, e.position), e.position++;
|
|
1618
|
-
} else {
|
|
1619
|
-
for (; s !== 0 && !Z(s) && !(n && Cn(s));) s === 33 && (a ? Y(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(c - 1, e.position + 1), an.test(o) || Y(e, "named tag handle cannot contain such characters"), a = !0, c = e.position + 1)), s = e.input.charCodeAt(++e.position);
|
|
1620
|
-
l = e.input.slice(c, e.position), rn.test(l) && Y(e, "tag suffix cannot contain flow indicator characters");
|
|
1621
|
-
}
|
|
1622
|
-
return l && !(i ? cn.test(l) : ln.test(l)) && Y(e, `tag name cannot contain such characters: ${l}`), !i && o !== "!" && o !== "!!" && !Zt.call(e.tagHandlers, o) && Y(e, `undeclared tag handle "${o}"`), t.tagStart = r, t.tagEnd = e.position, !0;
|
|
1623
|
-
}
|
|
1624
|
-
function Fn(e, t) {
|
|
1625
|
-
if (e.input.charCodeAt(e.position) !== 38) return !1;
|
|
1626
|
-
t.anchorStart !== q && Y(e, "duplication of an anchor property"), e.position++;
|
|
1627
|
-
let n = e.position;
|
|
1628
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !Z(e.input.charCodeAt(e.position)) && !Cn(e.input.charCodeAt(e.position));) e.position++;
|
|
1629
|
-
return e.position === n && Y(e, "name of an anchor node must contain at least one character"), t.anchorStart = n, t.anchorEnd = e.position, !0;
|
|
1630
|
-
}
|
|
1631
|
-
function In(e, t) {
|
|
1632
|
-
if (e.input.charCodeAt(e.position) !== 42) return !1;
|
|
1633
|
-
(t.anchorStart !== q || t.tagStart !== q) && Y(e, "alias node should not have any properties"), e.position++;
|
|
1634
|
-
let n = e.position;
|
|
1635
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !Z(e.input.charCodeAt(e.position)) && !Cn(e.input.charCodeAt(e.position));) e.position++;
|
|
1636
|
-
return e.position === n && Y(e, "name of an alias node must contain at least one character"), _n(e, n, e.position), !0;
|
|
1637
|
-
}
|
|
1638
|
-
function Ln(e, t) {
|
|
1639
|
-
$(e, !1), e.lineIndent < t && Y(e, "deficient indentation");
|
|
1640
|
-
}
|
|
1641
|
-
function Rn(e, t, n) {
|
|
1642
|
-
if (e.input.charCodeAt(e.position) !== 39) return !1;
|
|
1643
|
-
e.position++;
|
|
1644
|
-
let r = e.position, i = !0;
|
|
1645
|
-
for (; e.input.charCodeAt(e.position) !== 0;) {
|
|
1646
|
-
let a = e.input.charCodeAt(e.position);
|
|
1647
|
-
if (a === 39) {
|
|
1648
|
-
if (e.input.charCodeAt(e.position + 1) === 39) {
|
|
1649
|
-
i = !1, e.position += 2;
|
|
1650
|
-
continue;
|
|
1651
|
-
}
|
|
1652
|
-
let t = e.position;
|
|
1653
|
-
return e.position++, gn(e, r, t, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, W.SINGLE_QUOTED, G.CLIP, -1, i), !0;
|
|
1654
|
-
}
|
|
1655
|
-
X(a) ? (i = !1, Ln(e, t)) : e.position === e.lineStart && kn(e) ? Y(e, "unexpected end of the document within a single quoted scalar") : a !== 9 && a < 32 ? Y(e, "expected valid JSON character") : e.position++;
|
|
1656
|
-
}
|
|
1657
|
-
Y(e, "unexpected end of the stream within a single quoted scalar");
|
|
1658
|
-
}
|
|
1659
|
-
function zn(e, t, n) {
|
|
1660
|
-
if (e.input.charCodeAt(e.position) !== 34) return !1;
|
|
1661
|
-
e.position++;
|
|
1662
|
-
let r = e.position, i = !0;
|
|
1663
|
-
for (; e.input.charCodeAt(e.position) !== 0;) {
|
|
1664
|
-
let a = e.input.charCodeAt(e.position);
|
|
1665
|
-
if (a === 34) {
|
|
1666
|
-
let t = e.position;
|
|
1667
|
-
return e.position++, gn(e, r, t, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, W.DOUBLE_QUOTED, G.CLIP, -1, i), !0;
|
|
1668
|
-
}
|
|
1669
|
-
if (a === 92) {
|
|
1670
|
-
i = !1;
|
|
1671
|
-
let n = e.input.charCodeAt(++e.position);
|
|
1672
|
-
if (X(n)) Ln(e, t);
|
|
1673
|
-
else if (Dn(n)) e.position++;
|
|
1674
|
-
else {
|
|
1675
|
-
let t = En(n);
|
|
1676
|
-
for (t === 0 && Y(e, "unknown escape sequence"); t-- > 0;) e.position++, Tn(e.input.charCodeAt(e.position)) < 0 && Y(e, "expected hexadecimal character");
|
|
1677
|
-
e.position++;
|
|
1678
|
-
}
|
|
1679
|
-
} else X(a) ? (i = !1, Ln(e, t)) : e.position === e.lineStart && kn(e) ? Y(e, "unexpected end of the document within a double quoted scalar") : a !== 9 && a < 32 ? Y(e, "expected valid JSON character") : e.position++;
|
|
1680
|
-
}
|
|
1681
|
-
Y(e, "unexpected end of the stream within a double quoted scalar");
|
|
1682
|
-
}
|
|
1683
|
-
function Bn(e, t, n) {
|
|
1684
|
-
let r = e.input.charCodeAt(e.position), i = G.CLIP, a = -1, o = !1;
|
|
1685
|
-
if (r !== 124 && r !== 62) return !1;
|
|
1686
|
-
let s = r === 124 ? W.LITERAL_BLOCK : W.FOLDED_BLOCK;
|
|
1687
|
-
for (e.position++; e.input.charCodeAt(e.position) !== 0;) {
|
|
1688
|
-
let n = e.input.charCodeAt(e.position), r = wn(n);
|
|
1689
|
-
if (n === 43 || n === 45) i !== G.CLIP && Y(e, "repeat of a chomping mode identifier"), i = n === 43 ? G.KEEP : G.STRIP, e.position++;
|
|
1690
|
-
else if (r >= 0) r === 0 && Y(e, "bad explicit indentation width of a block scalar; it cannot be less than one"), o && Y(e, "repeat of an indentation width identifier"), a = t + r - 1, o = !0, e.position++;
|
|
1691
|
-
else break;
|
|
1692
|
-
}
|
|
1693
|
-
let c = !1;
|
|
1694
|
-
for (; Sn(e.input.charCodeAt(e.position));) c = !0, e.position++;
|
|
1695
|
-
c && e.input.charCodeAt(e.position) === 35 && Mn(e), X(e.input.charCodeAt(e.position)) ? On(e) : e.input.charCodeAt(e.position) !== 0 && Y(e, "a line break is expected");
|
|
1696
|
-
let l = o ? a : -1, u = 0, d = e.position, f = e.position;
|
|
1697
|
-
for (; e.input.charCodeAt(e.position) !== 0;) {
|
|
1698
|
-
let n = e.position, r = 0;
|
|
1699
|
-
for (; e.input.charCodeAt(n + r) === 32;) r++;
|
|
1700
|
-
let i = e.input.charCodeAt(n + r);
|
|
1701
|
-
if (i === 0) {
|
|
1702
|
-
l >= 0 ? r > l && (f = n + r) : r > 0 && (f = n + r);
|
|
1703
|
-
break;
|
|
1704
|
-
}
|
|
1705
|
-
if (jn(e)) break;
|
|
1706
|
-
if (!o && l === -1 && X(i) && (u = Math.max(u, r)), !o && l === -1 && !X(i) && (i === 9 && r < t && (e.position = n + r, Y(e, "tab characters must not be used in indentation")), r < u && (e.position = n + r, Y(e, "bad indentation of a mapping entry"))), l === -1 && i !== 0 && !X(i) && r < t) {
|
|
1707
|
-
e.lineIndent = r, e.position = n + r;
|
|
1708
|
-
break;
|
|
1709
|
-
}
|
|
1710
|
-
!o && i !== 0 && !X(i) && l === -1 && (l = r);
|
|
1711
|
-
let a = l === -1 ? t + 1 : l;
|
|
1712
|
-
if (i !== 0 && !X(i) && r < a) {
|
|
1713
|
-
e.lineIndent = r, e.position = n + r;
|
|
1714
|
-
break;
|
|
1715
|
-
}
|
|
1716
|
-
Mn(e), f = e.position, X(e.input.charCodeAt(e.position)) && (On(e), f = e.position);
|
|
1717
|
-
}
|
|
1718
|
-
return Nn(e, d, f), gn(e, d, f, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, s, i, l), !0;
|
|
1719
|
-
}
|
|
1720
|
-
function Vn(e, t) {
|
|
1721
|
-
let n = e.input.charCodeAt(e.position), r = t === Qt;
|
|
1722
|
-
if (n === 0 || Z(n) || n === 35 || n === 38 || n === 42 || n === 33 || n === 124 || n === 62 || n === 39 || n === 34 || n === 37 || n === 64 || n === 96 || r && Cn(n)) return !1;
|
|
1723
|
-
if (n === 63 || n === 45) {
|
|
1724
|
-
let t = e.input.charCodeAt(e.position + 1);
|
|
1725
|
-
if (Q(t) || r && Cn(t)) return !1;
|
|
1726
|
-
}
|
|
1727
|
-
return !0;
|
|
1728
|
-
}
|
|
1729
|
-
function Hn(e, t, n, r) {
|
|
1730
|
-
if (!Vn(e, n)) return !1;
|
|
1731
|
-
let i = e.position, a = e.position, o = e.input.charCodeAt(e.position), s = n === Qt, c = !1;
|
|
1732
|
-
for (; o !== 0 && !jn(e);) {
|
|
1733
|
-
if (o === 58) {
|
|
1734
|
-
let t = e.input.charCodeAt(e.position + 1);
|
|
1735
|
-
if (Q(t) || s && Cn(t)) break;
|
|
1736
|
-
} else if (o === 35) {
|
|
1737
|
-
if (Z(e.input.charCodeAt(e.position - 1))) break;
|
|
1738
|
-
} else if (s && Cn(o)) break;
|
|
1739
|
-
else if (X(o)) {
|
|
1740
|
-
let n = e.position, r = e.line, i = e.lineStart, a = e.lineIndent;
|
|
1741
|
-
if ($(e, !1), e.lineIndent >= t) {
|
|
1742
|
-
c = !0, o = e.input.charCodeAt(e.position);
|
|
1743
|
-
continue;
|
|
1744
|
-
}
|
|
1745
|
-
e.position = n, e.line = r, e.lineStart = i, e.lineIndent = a;
|
|
1746
|
-
break;
|
|
1747
|
-
}
|
|
1748
|
-
Sn(o) || (a = e.position + 1), o = e.input.charCodeAt(++e.position);
|
|
1749
|
-
}
|
|
1750
|
-
return a !== i && (Nn(e, i, a), gn(e, i, a, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, W.PLAIN, G.CLIP, -1, !c), !0);
|
|
1751
|
-
}
|
|
1752
|
-
function Un(e, t) {
|
|
1753
|
-
let n = e.line;
|
|
1754
|
-
$(e, !0), (e.line > n && e.lineIndent < t || e.firstTabInLine !== -1 && e.lineIndent < t) && Y(e, "deficient indentation");
|
|
1755
|
-
}
|
|
1756
|
-
function Wn(e, t, n) {
|
|
1757
|
-
let r = e.input.charCodeAt(e.position), i = r === 123, a = e.position, o = !0;
|
|
1758
|
-
if (r !== 91 && r !== 123) return !1;
|
|
1759
|
-
let s = i ? 125 : 93;
|
|
1760
|
-
for (i ? mn(e, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, yt.FLOW) : pn(e, a, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, yt.FLOW), e.position++; e.input.charCodeAt(e.position) !== 0;) {
|
|
1761
|
-
Un(e, t);
|
|
1762
|
-
let n = e.input.charCodeAt(e.position);
|
|
1763
|
-
if (n === s) return e.position++, vn(e), !0;
|
|
1764
|
-
o ? n === 44 && Y(e, "expected the node content, but found ','") : Y(e, "missed comma between flow collection entries");
|
|
1765
|
-
let r = !1, a = !1;
|
|
1766
|
-
n === 63 && Z(e.input.charCodeAt(e.position + 1)) && (r = a = !0, e.position += 1, Un(e, t));
|
|
1767
|
-
let c = e.line, l = bn(e), u = qn(e, t, Qt, !1, !0);
|
|
1768
|
-
Un(e, t), n = e.input.charCodeAt(e.position), (i || a || e.line === c) && n === 58 ? (r = !0, e.position++, Un(e, t), i || hn(e, l), u || J(e), qn(e, t, Qt, !1, !0) || J(e), Un(e, t), i || vn(e)) : i && r ? (u || J(e), J(e)) : i ? J(e) : r && (hn(e, l), u || J(e), J(e), vn(e)), n = e.input.charCodeAt(e.position), n === 44 ? (o = !0, e.position++) : o = !1;
|
|
1769
|
-
}
|
|
1770
|
-
Y(e, "unexpected end of the stream within a flow collection");
|
|
1771
|
-
}
|
|
1772
|
-
function Gn(e, t, n) {
|
|
1773
|
-
if (e.firstTabInLine !== -1 || e.input.charCodeAt(e.position) !== 45 || !Q(e.input.charCodeAt(e.position + 1))) return !1;
|
|
1774
|
-
for (pn(e, e.position, n.anchorStart, n.anchorEnd, n.tagStart, n.tagEnd, yt.BLOCK); e.input.charCodeAt(e.position) === 45 && Q(e.input.charCodeAt(e.position + 1));) {
|
|
1775
|
-
e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, Y(e, "tab characters must not be used in indentation"));
|
|
1776
|
-
let n = e.line;
|
|
1777
|
-
e.position++;
|
|
1778
|
-
let r = $(e, !0) > 0;
|
|
1779
|
-
if (e.firstTabInLine !== -1 && e.input.charCodeAt(e.position) === 45 && Q(e.input.charCodeAt(e.position + 1)) && Y(e, "bad indentation of a sequence entry"), r && e.lineIndent <= t ? J(e) : qn(e, t, en, !1, !0), $(e, !0), e.lineIndent < t || e.position >= e.length) break;
|
|
1780
|
-
e.lineIndent > t && Y(e, "bad indentation of a sequence entry"), e.line === n && e.input.charCodeAt(e.position) === 45 && Q(e.input.charCodeAt(e.position + 1)) && Y(e, "bad indentation of a sequence entry");
|
|
1781
|
-
}
|
|
1782
|
-
return vn(e), !0;
|
|
1783
|
-
}
|
|
1784
|
-
function Kn(e, t, n, r) {
|
|
1785
|
-
let i = !1, a = !1, o = !1, s = !1;
|
|
1786
|
-
if (e.firstTabInLine !== -1) return !1;
|
|
1787
|
-
let c = e.input.charCodeAt(e.position);
|
|
1788
|
-
for (; c !== 0;) {
|
|
1789
|
-
!i && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, Y(e, "tab characters must not be used in indentation"));
|
|
1790
|
-
let l = e.input.charCodeAt(e.position + 1), u = e.line;
|
|
1791
|
-
if ((c === 63 || c === 58) && Q(l)) o ||= (mn(e, e.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, yt.BLOCK), !0), c === 63 ? (i && J(e), a = !0, i = !0) : i ? i = !1 : (J(e), a = !0, i = !1), e.position += 1, s = !0;
|
|
1792
|
-
else {
|
|
1793
|
-
i &&= (J(e), !1);
|
|
1794
|
-
let t = bn(e);
|
|
1795
|
-
if (!qn(e, n, $t, !1, !0)) break;
|
|
1796
|
-
if (e.line === u) {
|
|
1797
|
-
for (c = e.input.charCodeAt(e.position); Sn(c);) c = e.input.charCodeAt(++e.position);
|
|
1798
|
-
if (c === 58) {
|
|
1799
|
-
if (c = e.input.charCodeAt(++e.position), Q(c) || Y(e, "a whitespace character is expected after the key-value separator within a block mapping"), !o) {
|
|
1800
|
-
for (xn(e, t), mn(e, t.position, r.anchorStart, r.anchorEnd, r.tagStart, r.tagEnd, yt.BLOCK), o = !0, qn(e, n, $t, !1, !0), c = e.input.charCodeAt(e.position); Sn(c);) c = e.input.charCodeAt(++e.position);
|
|
1801
|
-
e.position++;
|
|
1802
|
-
}
|
|
1803
|
-
a = !0, i = !1, s = !1;
|
|
1804
|
-
} else if (a) Y(e, "expected ':' after a mapping key");
|
|
1805
|
-
else return r.anchorStart !== q || r.tagStart !== q ? (xn(e, t), !1) : !0;
|
|
1806
|
-
} else if (a) Y(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1807
|
-
else return r.anchorStart !== q || r.tagStart !== q ? (xn(e, t), !1) : !0;
|
|
1808
|
-
}
|
|
1809
|
-
if (qn(e, t, tn, !0, s) && (s = !1), i || (s &&= (J(e), !1)), $(e, !0), c = e.input.charCodeAt(e.position), (e.line === u || e.lineIndent > t) && c !== 0) Y(e, "bad indentation of a mapping entry");
|
|
1810
|
-
else if (e.lineIndent < t) break;
|
|
1811
|
-
}
|
|
1812
|
-
return a ? (i && J(e), o && vn(e), !0) : !1;
|
|
1813
|
-
}
|
|
1814
|
-
function qn(e, t, n, r, i, a = !0) {
|
|
1815
|
-
e.depth >= e.maxDepth && Y(e, `nesting exceeded maxDepth (${e.maxDepth})`), e.depth++;
|
|
1816
|
-
let o = 1, s = !1, c = !1, l = null, u = yn(), d = n === tn || n === en, f = d, p = d;
|
|
1817
|
-
if (r && $(e, !0) && (s = !0, o = e.lineIndent > t ? 1 : e.lineIndent === t ? 0 : -1), o === 1) for (;;) {
|
|
1818
|
-
let r = e.input.charCodeAt(e.position), i = bn(e);
|
|
1819
|
-
if (s && o !== 1 && (r === 33 || r === 38)) break;
|
|
1820
|
-
if (s && p && (u.tagStart !== q || u.anchorStart !== q) && (r === 33 || r === 38)) {
|
|
1821
|
-
let n = bn(e), r = t + 1;
|
|
1822
|
-
if (Kn(e, e.position - e.lineStart, r, u) && e.events[n.eventsLength]?.type === U.MAPPING) return e.depth--, !0;
|
|
1823
|
-
xn(e, n);
|
|
1824
|
-
}
|
|
1825
|
-
if (s && (r === 33 && u.tagStart !== q || r === 38 && u.anchorStart !== q) || !Pn(e, u, n === Qt) && !Fn(e, u)) break;
|
|
1826
|
-
l === null && (l = i), $(e, !0) ? (s = !0, f = p, o = e.lineIndent > t ? 1 : e.lineIndent === t ? 0 : -1) : f = !1;
|
|
1827
|
-
}
|
|
1828
|
-
if (f &&= s || i, o === 1 || n === tn) {
|
|
1829
|
-
let r = n === Qt || n === $t ? t : t + 1, i = e.position - e.lineStart;
|
|
1830
|
-
if (o === 1) {
|
|
1831
|
-
if (f && (Gn(e, i, u) || Kn(e, i, r, u)) || Wn(e, r, u)) c = !0;
|
|
1832
|
-
else {
|
|
1833
|
-
let t = e.input.charCodeAt(e.position);
|
|
1834
|
-
if (l !== null && a && p && !f && t !== 124 && t !== 62) {
|
|
1835
|
-
let t = bn(e), n = l.position - l.lineStart;
|
|
1836
|
-
xn(e, l), Kn(e, n, r, yn()) && e.events[t.eventsLength]?.type === U.MAPPING ? c = !0 : xn(e, t);
|
|
1837
|
-
}
|
|
1838
|
-
!c && (d && Bn(e, r, u) || Rn(e, r, u) || zn(e, r, u) || In(e, u) || Hn(e, r, n, u)) && (c = !0);
|
|
1839
|
-
}
|
|
1840
|
-
} else o === 0 && (c = f && Gn(e, i, u));
|
|
1841
|
-
}
|
|
1842
|
-
return d &&= !c, !c && (u.anchorStart !== q || u.tagStart !== q || d) && (gn(e, q, q, u.anchorStart, u.anchorEnd, u.tagStart, u.tagEnd, W.PLAIN), c = !0), e.depth--, c || u.anchorStart !== q || u.tagStart !== q;
|
|
1843
|
-
}
|
|
1844
|
-
function Jn(e) {
|
|
1845
|
-
if (e.lineIndent > 0 || e.input.charCodeAt(e.position) !== 37) return !1;
|
|
1846
|
-
e.position++;
|
|
1847
|
-
let t = e.position;
|
|
1848
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !Z(e.input.charCodeAt(e.position));) e.position++;
|
|
1849
|
-
let n = e.input.slice(t, e.position), r = [];
|
|
1850
|
-
for (n.length === 0 && Y(e, "directive name must not be less than one character in length"); e.input.charCodeAt(e.position) !== 0 && !X(e.input.charCodeAt(e.position));) {
|
|
1851
|
-
for (; Sn(e.input.charCodeAt(e.position));) e.position++;
|
|
1852
|
-
if (e.input.charCodeAt(e.position) === 35 || X(e.input.charCodeAt(e.position)) || e.input.charCodeAt(e.position) === 0) break;
|
|
1853
|
-
let t = e.position;
|
|
1854
|
-
for (; e.input.charCodeAt(e.position) !== 0 && !Z(e.input.charCodeAt(e.position));) e.position++;
|
|
1855
|
-
r.push(e.input.slice(t, e.position));
|
|
1856
|
-
}
|
|
1857
|
-
if (X(e.input.charCodeAt(e.position)) && On(e), n === "YAML") {
|
|
1858
|
-
e.directives.some((e) => e.kind === "yaml") && Y(e, "duplication of %YAML directive"), r.length !== 1 && Y(e, "YAML directive accepts exactly one argument");
|
|
1859
|
-
let t = /^([0-9]+)\.([0-9]+)$/.exec(r[0]);
|
|
1860
|
-
t === null && Y(e, "ill-formed argument of the YAML directive"), parseInt(t[1], 10) !== 1 && Y(e, "unacceptable YAML version of the document"), e.directives.push({
|
|
1861
|
-
kind: "yaml",
|
|
1862
|
-
version: r[0]
|
|
1863
|
-
});
|
|
1864
|
-
} else if (n === "TAG") {
|
|
1865
|
-
r.length !== 2 && Y(e, "TAG directive accepts exactly two arguments");
|
|
1866
|
-
let [t, n] = r;
|
|
1867
|
-
an.test(t) || Y(e, "ill-formed tag handle (first argument) of the TAG directive"), Zt.call(e.tagHandlers, t) && Y(e, `there is a previously declared suffix for "${t}" tag handle`), un.test(n) || Y(e, "ill-formed tag prefix (second argument) of the TAG directive"), e.tagHandlers[t] = n, e.directives.push({
|
|
1868
|
-
kind: "tag",
|
|
1869
|
-
handle: t,
|
|
1870
|
-
prefix: n
|
|
1871
|
-
});
|
|
1872
|
-
}
|
|
1873
|
-
return !0;
|
|
1874
|
-
}
|
|
1875
|
-
function Yn(e) {
|
|
1876
|
-
e.directives = [], e.tagHandlers = Object.create(null);
|
|
1877
|
-
let t = !1;
|
|
1878
|
-
for ($(e, !0); Jn(e);) t = !0, $(e, !0);
|
|
1879
|
-
let n = !1, r = !1, i = !0;
|
|
1880
|
-
if (e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 && Q(e.input.charCodeAt(e.position + 3))) {
|
|
1881
|
-
n = !0;
|
|
1882
|
-
let t = e.line;
|
|
1883
|
-
e.position += 3, $(e, !0), i = e.line > t;
|
|
1884
|
-
} else t && Y(e, "directives end mark is expected");
|
|
1885
|
-
let a = e.events.length;
|
|
1886
|
-
if (!n && e.position === e.lineStart && e.input.charCodeAt(e.position) === 46 && kn(e)) {
|
|
1887
|
-
e.position += 3, $(e, !0);
|
|
1888
|
-
return;
|
|
1889
|
-
}
|
|
1890
|
-
if (fn(e, n, !1), qn(e, e.lineIndent - 1, tn, !1, i, i) || J(e), $(e, !0), e.position === e.lineStart && kn(e) && (r = e.input.charCodeAt(e.position) === 46, r)) {
|
|
1891
|
-
let t = e.line;
|
|
1892
|
-
e.position += 3, $(e, !0), e.line === t && e.position < e.length && Y(e, "end of the stream or a document separator is expected");
|
|
1893
|
-
}
|
|
1894
|
-
let o = e.events[a];
|
|
1895
|
-
o?.type === U.DOCUMENT && (o.explicitEnd = r), vn(e), !r && e.position < e.length && !jn(e) && Y(e, "end of the stream or a document separator is expected");
|
|
1896
|
-
}
|
|
1897
|
-
function Xn(e, t) {
|
|
1898
|
-
let n = e.length, r = {
|
|
1899
|
-
...dn,
|
|
1900
|
-
...t,
|
|
1901
|
-
input: `${e}\0`,
|
|
1902
|
-
length: n,
|
|
1903
|
-
position: 0,
|
|
1904
|
-
line: 0,
|
|
1905
|
-
lineStart: 0,
|
|
1906
|
-
lineIndent: 0,
|
|
1907
|
-
firstTabInLine: -1,
|
|
1908
|
-
depth: 0,
|
|
1909
|
-
directives: [],
|
|
1910
|
-
tagHandlers: Object.create(null),
|
|
1911
|
-
events: []
|
|
1912
|
-
}, i = e.indexOf("\0");
|
|
1913
|
-
for (i !== -1 && vt.throwAt(e, i, "null byte is not allowed in input", r.filename); r.position < r.length && (An(r), $(r, !0), !(r.position >= r.length));) {
|
|
1914
|
-
let e = r.position;
|
|
1915
|
-
Yn(r), r.position === e &&
|
|
1916
|
-
/* c8 ignore next */
|
|
1917
|
-
Y(r, "can not read a document");
|
|
1918
|
-
}
|
|
1919
|
-
return r.events;
|
|
1920
|
-
}
|
|
1921
|
-
var Zn = {
|
|
1922
|
-
...dn,
|
|
1923
|
-
...Rt
|
|
1924
|
-
};
|
|
1925
|
-
function Qn(e, t = {}) {
|
|
1926
|
-
let n = {
|
|
1927
|
-
...Zn,
|
|
1928
|
-
...t
|
|
1929
|
-
}, r = String(e), i = Object.keys(dn), a = Object.keys(Rt);
|
|
1930
|
-
return Xt(Xn(r, tt(n, i)), {
|
|
1931
|
-
...tt(n, a),
|
|
1932
|
-
source: r
|
|
1933
|
-
});
|
|
1934
|
-
}
|
|
1935
|
-
function $n(e, t) {
|
|
1936
|
-
let n = Qn(e, t);
|
|
1937
|
-
if (n.length === 0) throw new vt("expected a document, but the input is empty");
|
|
1938
|
-
if (n.length === 1) return n[0];
|
|
1939
|
-
throw new vt("expected a single document in the stream, but found more");
|
|
1940
|
-
}
|
|
1941
|
-
function er(e, t) {
|
|
1942
|
-
return !!(e & 1 << t);
|
|
1943
|
-
}
|
|
1944
|
-
var tr = {
|
|
1945
|
-
applyQuoteFlowKeysOption: rr,
|
|
1946
|
-
doubleQuoteForInvisibles: ir,
|
|
1947
|
-
doubleQuoteWhitespaceOnly: ar,
|
|
1948
|
-
applyForceQuotesOption: or,
|
|
1949
|
-
tryLongOrMultilineAsBlock: sr,
|
|
1950
|
-
quoteInvalidPlain: cr,
|
|
1951
|
-
fallbackToDoubleQuoted: lr
|
|
1952
|
-
};
|
|
1953
|
-
function nr(e) {
|
|
1954
|
-
return e.presenterOptions.quoteStyle === "single" && er(e.allowedStylesMask, W.SINGLE_QUOTED) ? W.SINGLE_QUOTED : W.DOUBLE_QUOTED;
|
|
1955
|
-
}
|
|
1956
|
-
function rr(e) {
|
|
1957
|
-
e.presenterOptions.quoteFlowKeys && (!e.isKey || !e.flowOnly || e.style !== W.PLAIN || (e.style = W.DOUBLE_QUOTED));
|
|
1958
|
-
}
|
|
1959
|
-
function ir(e) {
|
|
1960
|
-
e.style === W.PLAIN && /[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value) && (e.style = W.DOUBLE_QUOTED);
|
|
1961
|
-
}
|
|
1962
|
-
function ar(e) {
|
|
1963
|
-
e.style === W.PLAIN && /^\s+$/.test(e.node.value) && (e.style = W.DOUBLE_QUOTED);
|
|
1964
|
-
}
|
|
1965
|
-
function or(e) {
|
|
1966
|
-
e.presenterOptions.forceQuotes && (e.isKey || e.style !== W.PLAIN || e.node.tag === e.presenterOptions.schema.defaultScalarTag.tagName && (e.style = e.node.value.includes("\n") ? W.DOUBLE_QUOTED : nr(e)));
|
|
1967
|
-
}
|
|
1968
|
-
function sr(e) {
|
|
1969
|
-
if (e.style !== W.PLAIN || e.isKey) return;
|
|
1970
|
-
let t = e.node.value, n = t.indexOf("\n") !== -1;
|
|
1971
|
-
if (!er(e.allowedStylesMask, W.LITERAL_BLOCK)) {
|
|
1972
|
-
n && (e.style = W.DOUBLE_QUOTED);
|
|
1973
|
-
return;
|
|
1974
|
-
}
|
|
1975
|
-
let r = e.presenterOptions.lineWidth;
|
|
1976
|
-
if (r === -1) {
|
|
1977
|
-
n && (e.style = W.LITERAL_BLOCK);
|
|
1978
|
-
return;
|
|
1979
|
-
}
|
|
1980
|
-
let i = Math.max(Math.min(r, 40), r - e.shiftOfContent), a = 0, o = !1;
|
|
1981
|
-
for (; a <= t.length;) {
|
|
1982
|
-
let e = t.length, n = t.indexOf("\n", a);
|
|
1983
|
-
n !== -1 && (e = n);
|
|
1984
|
-
let r = t.slice(a, e);
|
|
1985
|
-
if (r.length > i && r[0] !== " " && / [^ \t]/.test(r) && (o = !0), n === -1) break;
|
|
1986
|
-
a = n + 1;
|
|
1987
|
-
}
|
|
1988
|
-
o ? e.style = W.FOLDED_BLOCK : n && (e.style = W.LITERAL_BLOCK);
|
|
1989
|
-
}
|
|
1990
|
-
function cr(e) {
|
|
1991
|
-
e.style === W.PLAIN && !er(e.allowedStylesMask, W.PLAIN) && (e.style = nr(e));
|
|
1992
|
-
}
|
|
1993
|
-
function lr(e) {
|
|
1994
|
-
er(e.allowedStylesMask, e.style) || (e.style = W.DOUBLE_QUOTED);
|
|
1995
|
-
}
|
|
1996
|
-
var ur = "[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]", dr = "[\\n\\r]", fr = "\\uFEFF", pr = "[ \\t]", mr = `(?:(?!(?:${dr}|${fr}))${ur})`, hr = `(?:(?!${pr})${mr})`, gr = "[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]", _r = "[-?:,\\[\\]{}#&*!|>'\"%@`]", vr = "[,\\[\\]{}]", yr = hr, br = `(?:(?!${vr})${hr})`, xr = `(?:(?:(?!${_r})${hr})|[?:-](?=${yr}))`, Sr = `(?:(?:(?!${_r})${hr})|[?:-](?=${br}))`, Cr = `(?:(?:(?![:#])${yr})|:(?=${yr}))#*`, wr = `(?:(?:(?![:#])${br})|:(?=${br}))#*`, Tr = `(?:${pr}*${Cr})*`, Er = `(?:${pr}*${wr})*`, Dr = `${xr}#*${Tr}`, Or = `${Sr}#*${Er}`, kr = Dr, Ar = Or, jr = `\\n+${Cr}${Tr}`, Mr = `\\n+${wr}${Er}`, Nr = `${Dr}(?:${jr})*`, Pr = `${Or}(?:${Mr})*`;
|
|
1997
|
-
RegExp(`^(?:${Nr})$`, "u"), RegExp(`^(?:${Pr})$`, "u"), RegExp(`^(?:${kr})$`, "u"), RegExp(`^(?:${Ar})$`, "u"), RegExp(`^(?:${gr})*$`, "u"), RegExp(`^(?:${gr}|\\n)*$`, "u"), RegExp(`^(?:${mr}|\\n)*$`, "u"), Object.keys(tr).map((e) => Reflect.get(tr, e)), U.DOCUMENT, U.SEQUENCE, U.MAPPING, U.SCALAR, U.ALIAS, U.POP, W.PLAIN, W.SINGLE_QUOTED, W.DOUBLE_QUOTED, W.LITERAL_BLOCK, W.FOLDED_BLOCK, yt.BLOCK, yt.FLOW, G.CLIP, G.STRIP, G.KEEP;
|
|
1998
|
-
//#endregion
|
|
1999
|
-
//#region lib/composables/useGlobalMessages.js
|
|
2000
|
-
var Fr;
|
|
2001
|
-
function Ir(e) {
|
|
2002
|
-
Fr = e;
|
|
2003
|
-
let t = /* #__PURE__ */ Object.assign({
|
|
2004
|
-
"../i18n/locale/en.yml": F,
|
|
2005
|
-
"../i18n/locale/es.yml": I
|
|
2006
|
-
});
|
|
2007
|
-
for (let [e, n] of Object.entries(t)) {
|
|
2008
|
-
let t = e.split("/").pop().split(".")[0];
|
|
2009
|
-
Fr.global.mergeLocaleMessage(t, $n(n));
|
|
2010
|
-
}
|
|
2011
|
-
}
|
|
2012
|
-
//#endregion
|
|
2013
|
-
//#region lib/composables/useNotify.js
|
|
2014
|
-
function Lr() {
|
|
2015
|
-
return { notify: (e, t = "positive", n, r = {}) => {
|
|
2016
|
-
let i = {
|
|
2017
|
-
message: Fr.global.t(e, r.translationParams || {}),
|
|
2018
|
-
type: t,
|
|
2019
|
-
icon: n || {
|
|
2020
|
-
warning: "warning",
|
|
2021
|
-
negative: "error",
|
|
2022
|
-
positive: "check"
|
|
2023
|
-
}[t],
|
|
2024
|
-
...r
|
|
2025
|
-
};
|
|
2026
|
-
d.Notify.create(i);
|
|
2027
|
-
} };
|
|
2028
|
-
}
|
|
2029
|
-
//#endregion
|
|
2030
|
-
//#region lib/composables/useObjectComparison.js
|
|
2031
|
-
function Rr(e, t) {
|
|
2032
|
-
if (!e || typeof e != "object" || !Array.isArray(t) || !t.length) return {};
|
|
2033
|
-
let n = {};
|
|
2034
|
-
for (let r of t) Object.hasOwn(e, r) && (n[r] = e[r]);
|
|
2035
|
-
return n;
|
|
2036
|
-
}
|
|
2037
|
-
function zr(e, t) {
|
|
2038
|
-
let n = Br(e) ? e : {}, r = Br(t) ? t : {}, i = {}, a = /* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(r)]);
|
|
2039
|
-
for (let e of a) {
|
|
2040
|
-
let t = n[e], a = r[e];
|
|
2041
|
-
if (Br(t) && Br(a)) {
|
|
2042
|
-
let n = zr(t, a);
|
|
2043
|
-
Object.keys(n).length && (i[e] = n);
|
|
2044
|
-
continue;
|
|
2045
|
-
}
|
|
2046
|
-
Vr(t, a) || (i[e] = {
|
|
2047
|
-
expected: t,
|
|
2048
|
-
actual: a
|
|
2049
|
-
});
|
|
2050
|
-
}
|
|
2051
|
-
return i;
|
|
2052
|
-
}
|
|
2053
|
-
function Br(e) {
|
|
2054
|
-
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
2055
|
-
}
|
|
2056
|
-
function Vr(e, t) {
|
|
2057
|
-
if (Array.isArray(e) && Array.isArray(t)) {
|
|
2058
|
-
if (e.length !== t.length) return !1;
|
|
2059
|
-
for (let n = 0; n < e.length; n++) if (!Vr(e[n], t[n])) return !1;
|
|
2060
|
-
return !0;
|
|
2061
|
-
}
|
|
2062
|
-
if (Br(e) && Br(t)) {
|
|
2063
|
-
let n = zr(e, t);
|
|
2064
|
-
return !Object.keys(n).length;
|
|
2065
|
-
}
|
|
2066
|
-
return Object.is(e, t);
|
|
2067
|
-
}
|
|
2068
|
-
function Hr() {
|
|
2069
|
-
return {
|
|
2070
|
-
getObjectByKeys: Rr,
|
|
2071
|
-
getObjectDifferences: zr,
|
|
2072
|
-
isComparableObject: Br,
|
|
2073
|
-
isSameValue: Vr
|
|
2074
|
-
};
|
|
2075
|
-
}
|
|
2076
|
-
//#endregion
|
|
2077
|
-
//#region ../lilium/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js
|
|
2078
|
-
var Ur = /* @__PURE__ */ C(((e, t) => {
|
|
2079
|
-
t.exports = TypeError;
|
|
2080
|
-
})), Wr = /* @__PURE__ */ C(((e, t) => {
|
|
2081
|
-
t.exports = {};
|
|
2082
|
-
})), Gr = /* @__PURE__ */ C(((e, t) => {
|
|
2083
|
-
var n = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && n ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, i = n && r && typeof r.get == "function" ? r.get : null, a = n && Map.prototype.forEach, o = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, c = o && s && typeof s.get == "function" ? s.get : null, l = o && Set.prototype.forEach, u = typeof WeakMap == "function" && WeakMap.prototype ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype ? WeakSet.prototype.has : null, f = typeof WeakRef == "function" && WeakRef.prototype ? WeakRef.prototype.deref : null, p = Boolean.prototype.valueOf, m = Object.prototype.toString, h = Function.prototype.toString, g = String.prototype.match, _ = String.prototype.slice, v = String.prototype.replace, y = String.prototype.toUpperCase, b = String.prototype.toLowerCase, x = RegExp.prototype.test, S = Array.prototype.concat, C = Array.prototype.join, w = Array.prototype.slice, T = Math.floor, E = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, D = Object.getOwnPropertySymbols, O = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, k = typeof Symbol == "function" && typeof Symbol.iterator == "object", A = typeof Symbol == "function" && Symbol.toStringTag ? Symbol.toStringTag : null, j = Object.prototype.propertyIsEnumerable, M = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
2084
|
-
return e.__proto__;
|
|
2085
|
-
} : null);
|
|
2086
|
-
function ee(e, t) {
|
|
2087
|
-
if (e === Infinity || e === -Infinity || e !== e || e && e > -1e3 && e < 1e3 || x.call(/e/, t)) return t;
|
|
2088
|
-
var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
2089
|
-
if (typeof e == "number") {
|
|
2090
|
-
var r = e < 0 ? -T(-e) : T(e);
|
|
2091
|
-
if (r !== e) {
|
|
2092
|
-
var i = String(r), a = _.call(t, i.length + 1);
|
|
2093
|
-
return v.call(i, n, "$&_") + "." + v.call(v.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
2094
|
-
}
|
|
2095
|
-
}
|
|
2096
|
-
return v.call(t, n, "$&_");
|
|
2097
|
-
}
|
|
2098
|
-
var N = Wr(), P = N.custom, F = ce(P) ? P : null, I = {
|
|
2099
|
-
__proto__: null,
|
|
2100
|
-
double: "\"",
|
|
2101
|
-
single: "'"
|
|
2102
|
-
}, L = {
|
|
2103
|
-
__proto__: null,
|
|
2104
|
-
double: /(["\\])/g,
|
|
2105
|
-
single: /(['\\])/g
|
|
2106
|
-
};
|
|
2107
|
-
t.exports = function e(t, n, r, o) {
|
|
2108
|
-
var s = n || {};
|
|
2109
|
-
if (V(s, "quoteStyle") && !V(I, s.quoteStyle)) throw TypeError("option \"quoteStyle\" must be \"single\" or \"double\"");
|
|
2110
|
-
if (V(s, "maxStringLength") && (typeof s.maxStringLength == "number" ? s.maxStringLength < 0 && s.maxStringLength !== Infinity : s.maxStringLength !== null)) throw TypeError("option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`");
|
|
2111
|
-
var u = !V(s, "customInspect") || s.customInspect;
|
|
2112
|
-
if (typeof u != "boolean" && u !== "symbol") throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
2113
|
-
if (V(s, "indent") && s.indent !== null && s.indent !== " " && !(parseInt(s.indent, 10) === s.indent && s.indent > 0)) throw TypeError("option \"indent\" must be \"\\t\", an integer > 0, or `null`");
|
|
2114
|
-
if (V(s, "numericSeparator") && typeof s.numericSeparator != "boolean") throw TypeError("option \"numericSeparator\", if provided, must be `true` or `false`");
|
|
2115
|
-
var d = s.numericSeparator;
|
|
2116
|
-
if (t === void 0) return "undefined";
|
|
2117
|
-
if (t === null) return "null";
|
|
2118
|
-
if (typeof t == "boolean") return t ? "true" : "false";
|
|
2119
|
-
if (typeof t == "string") return ye(t, s);
|
|
2120
|
-
if (typeof t == "number") {
|
|
2121
|
-
if (t === 0) return Infinity / t > 0 ? "0" : "-0";
|
|
2122
|
-
var f = String(t);
|
|
2123
|
-
return d ? ee(t, f) : f;
|
|
2124
|
-
}
|
|
2125
|
-
if (typeof t == "bigint") {
|
|
2126
|
-
var m = String(t) + "n";
|
|
2127
|
-
return d ? ee(t, m) : m;
|
|
2128
|
-
}
|
|
2129
|
-
var h = s.depth === void 0 ? 5 : s.depth;
|
|
2130
|
-
if (r === void 0 && (r = 0), r >= h && h > 0 && typeof t == "object") return te(t) ? "[Array]" : "[Object]";
|
|
2131
|
-
var g = Te(s, r);
|
|
2132
|
-
if (o === void 0) o = [];
|
|
2133
|
-
else if (fe(o, t) >= 0) return "[Circular]";
|
|
2134
|
-
function y(t, n, i) {
|
|
2135
|
-
if (n && (o = w.call(o), o.push(n)), i) {
|
|
2136
|
-
var a = { depth: s.depth };
|
|
2137
|
-
return V(s, "quoteStyle") && (a.quoteStyle = s.quoteStyle), e(t, a, r + 1, o);
|
|
2138
|
-
}
|
|
2139
|
-
return e(t, s, r + 1, o);
|
|
2140
|
-
}
|
|
2141
|
-
if (typeof t == "function" && !re(t)) {
|
|
2142
|
-
var x = de(t), T = De(t, y);
|
|
2143
|
-
return "[Function" + (x ? ": " + x : " (anonymous)") + "]" + (T.length > 0 ? " { " + C.call(T, ", ") + " }" : "");
|
|
2144
|
-
}
|
|
2145
|
-
if (ce(t)) {
|
|
2146
|
-
var D = k ? v.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : O.call(t);
|
|
2147
|
-
return typeof t == "object" && !k ? xe(D) : D;
|
|
2148
|
-
}
|
|
2149
|
-
if (ve(t)) {
|
|
2150
|
-
for (var P = "<" + b.call(String(t.nodeName)), L = t.attributes || [], B = 0; B < L.length; B++) P += " " + L[B].name + "=" + R(z(L[B].value), "double", s);
|
|
2151
|
-
return P += ">", t.childNodes && t.childNodes.length && (P += "..."), P += "</" + b.call(String(t.nodeName)) + ">", P;
|
|
2152
|
-
}
|
|
2153
|
-
if (te(t)) {
|
|
2154
|
-
if (t.length === 0) return "[]";
|
|
2155
|
-
var ue = De(t, y);
|
|
2156
|
-
return g && !we(ue) ? "[" + Ee(ue, g) + "]" : "[ " + C.call(ue, ", ") + " ]";
|
|
2157
|
-
}
|
|
2158
|
-
if (ie(t)) {
|
|
2159
|
-
var be = De(t, y);
|
|
2160
|
-
return !("cause" in Error.prototype) && "cause" in t && !j.call(t, "cause") ? "{ [" + String(t) + "] " + C.call(S.call("[cause]: " + y(t.cause), be), ", ") + " }" : be.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + C.call(be, ", ") + " }";
|
|
2161
|
-
}
|
|
2162
|
-
if (typeof t == "object" && u) {
|
|
2163
|
-
if (F && typeof t[F] == "function" && N) return N(t, { depth: h - r });
|
|
2164
|
-
if (u !== "symbol" && typeof t.inspect == "function") return t.inspect();
|
|
2165
|
-
}
|
|
2166
|
-
if (pe(t)) {
|
|
2167
|
-
var Oe = [];
|
|
2168
|
-
return a && a.call(t, function(e, n) {
|
|
2169
|
-
Oe.push(y(n, t, !0) + " => " + y(e, t));
|
|
2170
|
-
}), Ce("Map", i.call(t), Oe, g);
|
|
2171
|
-
}
|
|
2172
|
-
if (ge(t)) {
|
|
2173
|
-
var ke = [];
|
|
2174
|
-
return l && l.call(t, function(e) {
|
|
2175
|
-
ke.push(y(e, t));
|
|
2176
|
-
}), Ce("Set", c.call(t), ke, g);
|
|
2177
|
-
}
|
|
2178
|
-
if (me(t)) return Se("WeakMap");
|
|
2179
|
-
if (_e(t)) return Se("WeakSet");
|
|
2180
|
-
if (he(t)) return Se("WeakRef");
|
|
2181
|
-
if (oe(t)) return xe(y(Number(t)));
|
|
2182
|
-
if (le(t)) return xe(y(E.call(t)));
|
|
2183
|
-
if (se(t)) return xe(p.call(t));
|
|
2184
|
-
if (ae(t)) return xe(y(String(t)));
|
|
2185
|
-
if (typeof window < "u" && t === window) return "{ [object Window] }";
|
|
2186
|
-
if (typeof globalThis < "u" && t === globalThis || typeof global < "u" && t === global) return "{ [object globalThis] }";
|
|
2187
|
-
if (!ne(t) && !re(t)) {
|
|
2188
|
-
var Ae = De(t, y), je = M ? M(t) === Object.prototype : t instanceof Object || t.constructor === Object, Me = t instanceof Object ? "" : "null prototype", Ne = !je && A && Object(t) === t && A in t ? _.call(H(t), 8, -1) : Me ? "Object" : "", Pe = (je || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "") + (Ne || Me ? "[" + C.call(S.call([], Ne || [], Me || []), ": ") + "] " : "");
|
|
2189
|
-
return Ae.length === 0 ? Pe + "{}" : g ? Pe + "{" + Ee(Ae, g) + "}" : Pe + "{ " + C.call(Ae, ", ") + " }";
|
|
2190
|
-
}
|
|
2191
|
-
return String(t);
|
|
2192
|
-
};
|
|
2193
|
-
function R(e, t, n) {
|
|
2194
|
-
var r = I[n.quoteStyle || t];
|
|
2195
|
-
return r + e + r;
|
|
2196
|
-
}
|
|
2197
|
-
function z(e) {
|
|
2198
|
-
return v.call(String(e), /"/g, """);
|
|
2199
|
-
}
|
|
2200
|
-
function B(e) {
|
|
2201
|
-
return !A || !(typeof e == "object" && (A in e || e[A] !== void 0));
|
|
2202
|
-
}
|
|
2203
|
-
function te(e) {
|
|
2204
|
-
return H(e) === "[object Array]" && B(e);
|
|
2205
|
-
}
|
|
2206
|
-
function ne(e) {
|
|
2207
|
-
return H(e) === "[object Date]" && B(e);
|
|
2208
|
-
}
|
|
2209
|
-
function re(e) {
|
|
2210
|
-
return H(e) === "[object RegExp]" && B(e);
|
|
2211
|
-
}
|
|
2212
|
-
function ie(e) {
|
|
2213
|
-
return H(e) === "[object Error]" && B(e);
|
|
2214
|
-
}
|
|
2215
|
-
function ae(e) {
|
|
2216
|
-
return H(e) === "[object String]" && B(e);
|
|
2217
|
-
}
|
|
2218
|
-
function oe(e) {
|
|
2219
|
-
return H(e) === "[object Number]" && B(e);
|
|
2220
|
-
}
|
|
2221
|
-
function se(e) {
|
|
2222
|
-
return H(e) === "[object Boolean]" && B(e);
|
|
2223
|
-
}
|
|
2224
|
-
function ce(e) {
|
|
2225
|
-
if (k) return e && typeof e == "object" && e instanceof Symbol;
|
|
2226
|
-
if (typeof e == "symbol") return !0;
|
|
2227
|
-
if (!e || typeof e != "object" || !O) return !1;
|
|
2228
|
-
try {
|
|
2229
|
-
return O.call(e), !0;
|
|
2230
|
-
} catch {}
|
|
2231
|
-
return !1;
|
|
2232
|
-
}
|
|
2233
|
-
function le(e) {
|
|
2234
|
-
if (!e || typeof e != "object" || !E) return !1;
|
|
2235
|
-
try {
|
|
2236
|
-
return E.call(e), !0;
|
|
2237
|
-
} catch {}
|
|
2238
|
-
return !1;
|
|
2239
|
-
}
|
|
2240
|
-
var ue = Object.prototype.hasOwnProperty || function(e) {
|
|
2241
|
-
return e in this;
|
|
2242
|
-
};
|
|
2243
|
-
function V(e, t) {
|
|
2244
|
-
return ue.call(e, t);
|
|
2245
|
-
}
|
|
2246
|
-
function H(e) {
|
|
2247
|
-
return m.call(e);
|
|
2248
|
-
}
|
|
2249
|
-
function de(e) {
|
|
2250
|
-
if (e.name) return e.name;
|
|
2251
|
-
var t = g.call(h.call(e), /^function\s*([\w$]+)/);
|
|
2252
|
-
return t ? t[1] : null;
|
|
2253
|
-
}
|
|
2254
|
-
function fe(e, t) {
|
|
2255
|
-
if (e.indexOf) return e.indexOf(t);
|
|
2256
|
-
for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
|
|
2257
|
-
return -1;
|
|
2258
|
-
}
|
|
2259
|
-
function pe(e) {
|
|
2260
|
-
if (!i || !e || typeof e != "object") return !1;
|
|
2261
|
-
try {
|
|
2262
|
-
i.call(e);
|
|
2263
|
-
try {
|
|
2264
|
-
c.call(e);
|
|
2265
|
-
} catch {
|
|
2266
|
-
return !0;
|
|
2267
|
-
}
|
|
2268
|
-
return e instanceof Map;
|
|
2269
|
-
} catch {}
|
|
2270
|
-
return !1;
|
|
2271
|
-
}
|
|
2272
|
-
function me(e) {
|
|
2273
|
-
if (!u || !e || typeof e != "object") return !1;
|
|
2274
|
-
try {
|
|
2275
|
-
u.call(e, u);
|
|
2276
|
-
try {
|
|
2277
|
-
d.call(e, d);
|
|
2278
|
-
} catch {
|
|
2279
|
-
return !0;
|
|
2280
|
-
}
|
|
2281
|
-
return e instanceof WeakMap;
|
|
2282
|
-
} catch {}
|
|
2283
|
-
return !1;
|
|
2284
|
-
}
|
|
2285
|
-
function he(e) {
|
|
2286
|
-
if (!f || !e || typeof e != "object") return !1;
|
|
2287
|
-
try {
|
|
2288
|
-
return f.call(e), !0;
|
|
2289
|
-
} catch {}
|
|
2290
|
-
return !1;
|
|
2291
|
-
}
|
|
2292
|
-
function ge(e) {
|
|
2293
|
-
if (!c || !e || typeof e != "object") return !1;
|
|
2294
|
-
try {
|
|
2295
|
-
c.call(e);
|
|
2296
|
-
try {
|
|
2297
|
-
i.call(e);
|
|
2298
|
-
} catch {
|
|
2299
|
-
return !0;
|
|
2300
|
-
}
|
|
2301
|
-
return e instanceof Set;
|
|
2302
|
-
} catch {}
|
|
2303
|
-
return !1;
|
|
2304
|
-
}
|
|
2305
|
-
function _e(e) {
|
|
2306
|
-
if (!d || !e || typeof e != "object") return !1;
|
|
2307
|
-
try {
|
|
2308
|
-
d.call(e, d);
|
|
2309
|
-
try {
|
|
2310
|
-
u.call(e, u);
|
|
2311
|
-
} catch {
|
|
2312
|
-
return !0;
|
|
2313
|
-
}
|
|
2314
|
-
return e instanceof WeakSet;
|
|
2315
|
-
} catch {}
|
|
2316
|
-
return !1;
|
|
2317
|
-
}
|
|
2318
|
-
function ve(e) {
|
|
2319
|
-
return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement || typeof e.nodeName == "string" && typeof e.getAttribute == "function";
|
|
2320
|
-
}
|
|
2321
|
-
function ye(e, t) {
|
|
2322
|
-
if (e.length > t.maxStringLength) {
|
|
2323
|
-
var n = e.length - t.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
2324
|
-
return ye(_.call(e, 0, t.maxStringLength), t) + r;
|
|
2325
|
-
}
|
|
2326
|
-
var i = L[t.quoteStyle || "single"];
|
|
2327
|
-
return i.lastIndex = 0, R(v.call(v.call(e, i, "\\$1"), /[\x00-\x1f]/g, be), "single", t);
|
|
2328
|
-
}
|
|
2329
|
-
function be(e) {
|
|
2330
|
-
var t = e.charCodeAt(0), n = {
|
|
2331
|
-
8: "b",
|
|
2332
|
-
9: "t",
|
|
2333
|
-
10: "n",
|
|
2334
|
-
12: "f",
|
|
2335
|
-
13: "r"
|
|
2336
|
-
}[t];
|
|
2337
|
-
return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") + y.call(t.toString(16));
|
|
2338
|
-
}
|
|
2339
|
-
function xe(e) {
|
|
2340
|
-
return "Object(" + e + ")";
|
|
2341
|
-
}
|
|
2342
|
-
function Se(e) {
|
|
2343
|
-
return e + " { ? }";
|
|
2344
|
-
}
|
|
2345
|
-
function Ce(e, t, n, r) {
|
|
2346
|
-
var i = r ? Ee(n, r) : C.call(n, ", ");
|
|
2347
|
-
return e + " (" + t + ") {" + i + "}";
|
|
2348
|
-
}
|
|
2349
|
-
function we(e) {
|
|
2350
|
-
for (var t = 0; t < e.length; t++) if (fe(e[t], "\n") >= 0) return !1;
|
|
2351
|
-
return !0;
|
|
2352
|
-
}
|
|
2353
|
-
function Te(e, t) {
|
|
2354
|
-
var n;
|
|
2355
|
-
if (e.indent === " ") n = " ";
|
|
2356
|
-
else if (typeof e.indent == "number" && e.indent > 0) n = C.call(Array(e.indent + 1), " ");
|
|
2357
|
-
else return null;
|
|
2358
|
-
return {
|
|
2359
|
-
base: n,
|
|
2360
|
-
prev: C.call(Array(t + 1), n)
|
|
2361
|
-
};
|
|
2362
|
-
}
|
|
2363
|
-
function Ee(e, t) {
|
|
2364
|
-
if (e.length === 0) return "";
|
|
2365
|
-
var n = "\n" + t.prev + t.base;
|
|
2366
|
-
return n + C.call(e, "," + n) + "\n" + t.prev;
|
|
2367
|
-
}
|
|
2368
|
-
function De(e, t) {
|
|
2369
|
-
var n = te(e), r = [];
|
|
2370
|
-
if (n) {
|
|
2371
|
-
r.length = e.length;
|
|
2372
|
-
for (var i = 0; i < e.length; i++) r[i] = V(e, i) ? t(e[i], e) : "";
|
|
2373
|
-
}
|
|
2374
|
-
var a = typeof D == "function" ? D(e) : [], o;
|
|
2375
|
-
if (k) {
|
|
2376
|
-
o = {};
|
|
2377
|
-
for (var s = 0; s < a.length; s++) o["$" + a[s]] = a[s];
|
|
2378
|
-
}
|
|
2379
|
-
for (var c in e) V(e, c) && (n && String(Number(c)) === c && c < e.length || k && o["$" + c] instanceof Symbol || (x.call(/[^\w$]/, c) ? r.push(t(c, e) + ": " + t(e[c], e)) : r.push(c + ": " + t(e[c], e))));
|
|
2380
|
-
if (typeof D == "function") for (var l = 0; l < a.length; l++) j.call(e, a[l]) && r.push("[" + t(a[l]) + "]: " + t(e[a[l]], e));
|
|
2381
|
-
return r;
|
|
2382
|
-
}
|
|
2383
|
-
})), Kr = /* @__PURE__ */ C(((e, t) => {
|
|
2384
|
-
var n = Gr(), r = Ur(), i = function(e, t, n) {
|
|
2385
|
-
for (var r = e, i; (i = r.next) != null; r = i) if (i.key === t) return r.next = i.next, n || (i.next = e.next, e.next = i), i;
|
|
2386
|
-
}, a = function(e, t) {
|
|
2387
|
-
if (e) {
|
|
2388
|
-
var n = i(e, t);
|
|
2389
|
-
return n && n.value;
|
|
2390
|
-
}
|
|
2391
|
-
}, o = function(e, t, n) {
|
|
2392
|
-
var r = i(e, t);
|
|
2393
|
-
r ? r.value = n : e.next = {
|
|
2394
|
-
key: t,
|
|
2395
|
-
next: e.next,
|
|
2396
|
-
value: n
|
|
2397
|
-
};
|
|
2398
|
-
}, s = function(e, t) {
|
|
2399
|
-
return e ? !!i(e, t) : !1;
|
|
2400
|
-
}, c = function(e, t) {
|
|
2401
|
-
if (e) return i(e, t, !0);
|
|
2402
|
-
};
|
|
2403
|
-
t.exports = function() {
|
|
2404
|
-
var e, t = {
|
|
2405
|
-
assert: function(e) {
|
|
2406
|
-
if (!t.has(e)) throw new r("Side channel does not contain " + n(e));
|
|
2407
|
-
},
|
|
2408
|
-
delete: function(t) {
|
|
2409
|
-
var n = c(e, t);
|
|
2410
|
-
return n && e && !e.next && (e = void 0), !!n;
|
|
2411
|
-
},
|
|
2412
|
-
get: function(t) {
|
|
2413
|
-
return a(e, t);
|
|
2414
|
-
},
|
|
2415
|
-
has: function(t) {
|
|
2416
|
-
return s(e, t);
|
|
2417
|
-
},
|
|
2418
|
-
set: function(t, n) {
|
|
2419
|
-
e ||= { next: void 0 }, o(e, t, n);
|
|
2420
|
-
}
|
|
2421
|
-
};
|
|
2422
|
-
return t;
|
|
2423
|
-
};
|
|
2424
|
-
})), qr = /* @__PURE__ */ C(((e, t) => {
|
|
2425
|
-
t.exports = Object;
|
|
2426
|
-
})), Jr = /* @__PURE__ */ C(((e, t) => {
|
|
2427
|
-
t.exports = Error;
|
|
2428
|
-
})), Yr = /* @__PURE__ */ C(((e, t) => {
|
|
2429
|
-
t.exports = EvalError;
|
|
2430
|
-
})), Xr = /* @__PURE__ */ C(((e, t) => {
|
|
2431
|
-
t.exports = RangeError;
|
|
2432
|
-
})), Zr = /* @__PURE__ */ C(((e, t) => {
|
|
2433
|
-
t.exports = ReferenceError;
|
|
2434
|
-
})), Qr = /* @__PURE__ */ C(((e, t) => {
|
|
2435
|
-
t.exports = SyntaxError;
|
|
2436
|
-
})), $r = /* @__PURE__ */ C(((e, t) => {
|
|
2437
|
-
t.exports = URIError;
|
|
2438
|
-
})), ei = /* @__PURE__ */ C(((e, t) => {
|
|
2439
|
-
t.exports = Math.abs;
|
|
2440
|
-
})), ti = /* @__PURE__ */ C(((e, t) => {
|
|
2441
|
-
t.exports = Math.floor;
|
|
2442
|
-
})), ni = /* @__PURE__ */ C(((e, t) => {
|
|
2443
|
-
t.exports = Math.max;
|
|
2444
|
-
})), ri = /* @__PURE__ */ C(((e, t) => {
|
|
2445
|
-
t.exports = Math.min;
|
|
2446
|
-
})), ii = /* @__PURE__ */ C(((e, t) => {
|
|
2447
|
-
t.exports = Math.pow;
|
|
2448
|
-
})), ai = /* @__PURE__ */ C(((e, t) => {
|
|
2449
|
-
t.exports = Math.round;
|
|
2450
|
-
})), oi = /* @__PURE__ */ C(((e, t) => {
|
|
2451
|
-
t.exports = Number.isNaN || function(e) {
|
|
2452
|
-
return e !== e;
|
|
2453
|
-
};
|
|
2454
|
-
})), si = /* @__PURE__ */ C(((e, t) => {
|
|
2455
|
-
var n = oi();
|
|
2456
|
-
t.exports = function(e) {
|
|
2457
|
-
return n(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
2458
|
-
};
|
|
2459
|
-
})), ci = /* @__PURE__ */ C(((e, t) => {
|
|
2460
|
-
t.exports = Object.getOwnPropertyDescriptor;
|
|
2461
|
-
})), li = /* @__PURE__ */ C(((e, t) => {
|
|
2462
|
-
var n = ci();
|
|
2463
|
-
if (n) try {
|
|
2464
|
-
n([], "length");
|
|
2465
|
-
} catch {
|
|
2466
|
-
n = null;
|
|
2467
|
-
}
|
|
2468
|
-
t.exports = n;
|
|
2469
|
-
})), ui = /* @__PURE__ */ C(((e, t) => {
|
|
2470
|
-
var n = Object.defineProperty || !1;
|
|
2471
|
-
if (n) try {
|
|
2472
|
-
n({}, "a", { value: 1 });
|
|
2473
|
-
} catch {
|
|
2474
|
-
n = !1;
|
|
2475
|
-
}
|
|
2476
|
-
t.exports = n;
|
|
2477
|
-
})), di = /* @__PURE__ */ C(((e, t) => {
|
|
2478
|
-
t.exports = function() {
|
|
2479
|
-
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1;
|
|
2480
|
-
if (typeof Symbol.iterator == "symbol") return !0;
|
|
2481
|
-
var e = {}, t = Symbol("test"), n = Object(t);
|
|
2482
|
-
if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]") return !1;
|
|
2483
|
-
var r = 42;
|
|
2484
|
-
for (var i in e[t] = r, e) return !1;
|
|
2485
|
-
if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0) return !1;
|
|
2486
|
-
var a = Object.getOwnPropertySymbols(e);
|
|
2487
|
-
if (a.length !== 1 || a[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t)) return !1;
|
|
2488
|
-
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
2489
|
-
var o = Object.getOwnPropertyDescriptor(e, t);
|
|
2490
|
-
if (o.value !== r || o.enumerable !== !0) return !1;
|
|
2491
|
-
}
|
|
2492
|
-
return !0;
|
|
2493
|
-
};
|
|
2494
|
-
})), fi = /* @__PURE__ */ C(((e, t) => {
|
|
2495
|
-
var n = typeof Symbol < "u" && Symbol, r = di();
|
|
2496
|
-
t.exports = function() {
|
|
2497
|
-
return typeof n != "function" || typeof Symbol != "function" || typeof n("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : r();
|
|
2498
|
-
};
|
|
2499
|
-
})), pi = /* @__PURE__ */ C(((e, t) => {
|
|
2500
|
-
t.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
|
|
2501
|
-
})), mi = /* @__PURE__ */ C(((e, t) => {
|
|
2502
|
-
t.exports = qr().getPrototypeOf || null;
|
|
2503
|
-
})), hi = /* @__PURE__ */ C(((e, t) => {
|
|
2504
|
-
var n = Object.prototype.toString, r = Math.max, i = "[object Function]", a = function(e, t) {
|
|
2505
|
-
for (var n = [], r = 0; r < e.length; r += 1) n[r] = e[r];
|
|
2506
|
-
for (var i = 0; i < t.length; i += 1) n[i + e.length] = t[i];
|
|
2507
|
-
return n;
|
|
2508
|
-
}, o = function(e, t) {
|
|
2509
|
-
for (var n = [], r = t || 0, i = 0; r < e.length; r += 1, i += 1) n[i] = e[r];
|
|
2510
|
-
return n;
|
|
2511
|
-
}, s = function(e, t) {
|
|
2512
|
-
for (var n = "", r = 0; r < e.length; r += 1) n += e[r], r + 1 < e.length && (n += t);
|
|
2513
|
-
return n;
|
|
2514
|
-
};
|
|
2515
|
-
t.exports = function(e) {
|
|
2516
|
-
var t = this;
|
|
2517
|
-
if (typeof t != "function" || n.apply(t) !== i) throw TypeError("Function.prototype.bind called on incompatible " + t);
|
|
2518
|
-
for (var c = o(arguments, 1), l, u = function() {
|
|
2519
|
-
if (this instanceof l) {
|
|
2520
|
-
var n = t.apply(this, a(c, arguments));
|
|
2521
|
-
return Object(n) === n ? n : this;
|
|
2522
|
-
}
|
|
2523
|
-
return t.apply(e, a(c, arguments));
|
|
2524
|
-
}, d = r(0, t.length - c.length), f = [], p = 0; p < d; p++) f[p] = "$" + p;
|
|
2525
|
-
if (l = Function("binder", "return function (" + s(f, ",") + "){ return binder.apply(this,arguments); }")(u), t.prototype) {
|
|
2526
|
-
var m = function() {};
|
|
2527
|
-
m.prototype = t.prototype, l.prototype = new m(), m.prototype = null;
|
|
2528
|
-
}
|
|
2529
|
-
return l;
|
|
2530
|
-
};
|
|
2531
|
-
})), gi = /* @__PURE__ */ C(((e, t) => {
|
|
2532
|
-
var n = hi();
|
|
2533
|
-
t.exports = Function.prototype.bind || n;
|
|
2534
|
-
})), _i = /* @__PURE__ */ C(((e, t) => {
|
|
2535
|
-
t.exports = Function.prototype.call;
|
|
2536
|
-
})), vi = /* @__PURE__ */ C(((e, t) => {
|
|
2537
|
-
t.exports = Function.prototype.apply;
|
|
2538
|
-
})), yi = /* @__PURE__ */ C(((e, t) => {
|
|
2539
|
-
t.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
|
|
2540
|
-
})), bi = /* @__PURE__ */ C(((e, t) => {
|
|
2541
|
-
var n = gi(), r = vi(), i = _i();
|
|
2542
|
-
t.exports = yi() || n.call(i, r);
|
|
2543
|
-
})), xi = /* @__PURE__ */ C(((e, t) => {
|
|
2544
|
-
var n = gi(), r = Ur(), i = _i(), a = bi();
|
|
2545
|
-
t.exports = function(e) {
|
|
2546
|
-
if (e.length < 1 || typeof e[0] != "function") throw new r("a function is required");
|
|
2547
|
-
return a(n, i, e);
|
|
2548
|
-
};
|
|
2549
|
-
})), Si = /* @__PURE__ */ C(((e, t) => {
|
|
2550
|
-
var n = xi(), r = li(), i;
|
|
2551
|
-
try {
|
|
2552
|
-
i = [].__proto__ === Array.prototype;
|
|
2553
|
-
} catch (e) {
|
|
2554
|
-
if (!e || typeof e != "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") throw e;
|
|
2555
|
-
}
|
|
2556
|
-
var a = !!i && r && r(Object.prototype, "__proto__"), o = Object, s = o.getPrototypeOf;
|
|
2557
|
-
t.exports = a && typeof a.get == "function" ? n([a.get]) : typeof s == "function" && function(e) {
|
|
2558
|
-
return s(e == null ? e : o(e));
|
|
2559
|
-
};
|
|
2560
|
-
})), Ci = /* @__PURE__ */ C(((e, t) => {
|
|
2561
|
-
var n = pi(), r = mi(), i = Si();
|
|
2562
|
-
t.exports = n ? function(e) {
|
|
2563
|
-
return n(e);
|
|
2564
|
-
} : r ? function(e) {
|
|
2565
|
-
if (!e || typeof e != "object" && typeof e != "function") throw TypeError("getProto: not an object");
|
|
2566
|
-
return r(e);
|
|
2567
|
-
} : i ? function(e) {
|
|
2568
|
-
return i(e);
|
|
2569
|
-
} : null;
|
|
2570
|
-
})), wi = /* @__PURE__ */ C(((e, t) => {
|
|
2571
|
-
var n = Function.prototype.call, r = Object.prototype.hasOwnProperty;
|
|
2572
|
-
t.exports = gi().call(n, r);
|
|
2573
|
-
})), Ti = /* @__PURE__ */ C(((e, t) => {
|
|
2574
|
-
var n, r = qr(), i = Jr(), a = Yr(), o = Xr(), s = Zr(), c = Qr(), l = Ur(), u = $r(), d = ei(), f = ti(), p = ni(), m = ri(), h = ii(), g = ai(), _ = si(), v = Function, y = function(e) {
|
|
2575
|
-
try {
|
|
2576
|
-
return v("\"use strict\"; return (" + e + ").constructor;")();
|
|
2577
|
-
} catch {}
|
|
2578
|
-
}, b = li(), x = ui(), S = function() {
|
|
2579
|
-
throw new l();
|
|
2580
|
-
}, C = b ? function() {
|
|
2581
|
-
try {
|
|
2582
|
-
return arguments.callee, S;
|
|
2583
|
-
} catch {
|
|
2584
|
-
try {
|
|
2585
|
-
return b(arguments, "callee").get;
|
|
2586
|
-
} catch {
|
|
2587
|
-
return S;
|
|
2588
|
-
}
|
|
2589
|
-
}
|
|
2590
|
-
}() : S, w = fi()(), T = Ci(), E = mi(), D = pi(), O = vi(), k = _i(), A = {}, j = typeof Uint8Array > "u" || !T ? n : T(Uint8Array), M = {
|
|
2591
|
-
__proto__: null,
|
|
2592
|
-
"%AggregateError%": typeof AggregateError > "u" ? n : AggregateError,
|
|
2593
|
-
"%Array%": Array,
|
|
2594
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? n : ArrayBuffer,
|
|
2595
|
-
"%ArrayIteratorPrototype%": w && T ? T([][Symbol.iterator]()) : n,
|
|
2596
|
-
"%AsyncFromSyncIteratorPrototype%": n,
|
|
2597
|
-
"%AsyncFunction%": A,
|
|
2598
|
-
"%AsyncGenerator%": A,
|
|
2599
|
-
"%AsyncGeneratorFunction%": A,
|
|
2600
|
-
"%AsyncIteratorPrototype%": A,
|
|
2601
|
-
"%Atomics%": typeof Atomics > "u" ? n : Atomics,
|
|
2602
|
-
"%BigInt%": typeof BigInt > "u" ? n : BigInt,
|
|
2603
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ? n : BigInt64Array,
|
|
2604
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ? n : BigUint64Array,
|
|
2605
|
-
"%Boolean%": Boolean,
|
|
2606
|
-
"%DataView%": typeof DataView > "u" ? n : DataView,
|
|
2607
|
-
"%Date%": Date,
|
|
2608
|
-
"%decodeURI%": decodeURI,
|
|
2609
|
-
"%decodeURIComponent%": decodeURIComponent,
|
|
2610
|
-
"%encodeURI%": encodeURI,
|
|
2611
|
-
"%encodeURIComponent%": encodeURIComponent,
|
|
2612
|
-
"%Error%": i,
|
|
2613
|
-
"%eval%": eval,
|
|
2614
|
-
"%EvalError%": a,
|
|
2615
|
-
"%Float16Array%": typeof Float16Array > "u" ? n : Float16Array,
|
|
2616
|
-
"%Float32Array%": typeof Float32Array > "u" ? n : Float32Array,
|
|
2617
|
-
"%Float64Array%": typeof Float64Array > "u" ? n : Float64Array,
|
|
2618
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? n : FinalizationRegistry,
|
|
2619
|
-
"%Function%": v,
|
|
2620
|
-
"%GeneratorFunction%": A,
|
|
2621
|
-
"%Int8Array%": typeof Int8Array > "u" ? n : Int8Array,
|
|
2622
|
-
"%Int16Array%": typeof Int16Array > "u" ? n : Int16Array,
|
|
2623
|
-
"%Int32Array%": typeof Int32Array > "u" ? n : Int32Array,
|
|
2624
|
-
"%isFinite%": isFinite,
|
|
2625
|
-
"%isNaN%": isNaN,
|
|
2626
|
-
"%IteratorPrototype%": w && T ? T(T([][Symbol.iterator]())) : n,
|
|
2627
|
-
"%JSON%": typeof JSON == "object" ? JSON : n,
|
|
2628
|
-
"%Map%": typeof Map > "u" ? n : Map,
|
|
2629
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !w || !T ? n : T((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2630
|
-
"%Math%": Math,
|
|
2631
|
-
"%Number%": Number,
|
|
2632
|
-
"%Object%": r,
|
|
2633
|
-
"%Object.getOwnPropertyDescriptor%": b,
|
|
2634
|
-
"%parseFloat%": parseFloat,
|
|
2635
|
-
"%parseInt%": parseInt,
|
|
2636
|
-
"%Promise%": typeof Promise > "u" ? n : Promise,
|
|
2637
|
-
"%Proxy%": typeof Proxy > "u" ? n : Proxy,
|
|
2638
|
-
"%RangeError%": o,
|
|
2639
|
-
"%ReferenceError%": s,
|
|
2640
|
-
"%Reflect%": typeof Reflect > "u" ? n : Reflect,
|
|
2641
|
-
"%RegExp%": RegExp,
|
|
2642
|
-
"%Set%": typeof Set > "u" ? n : Set,
|
|
2643
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !w || !T ? n : T((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2644
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? n : SharedArrayBuffer,
|
|
2645
|
-
"%String%": String,
|
|
2646
|
-
"%StringIteratorPrototype%": w && T ? T(""[Symbol.iterator]()) : n,
|
|
2647
|
-
"%Symbol%": w ? Symbol : n,
|
|
2648
|
-
"%SyntaxError%": c,
|
|
2649
|
-
"%ThrowTypeError%": C,
|
|
2650
|
-
"%TypedArray%": j,
|
|
2651
|
-
"%TypeError%": l,
|
|
2652
|
-
"%Uint8Array%": typeof Uint8Array > "u" ? n : Uint8Array,
|
|
2653
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? n : Uint8ClampedArray,
|
|
2654
|
-
"%Uint16Array%": typeof Uint16Array > "u" ? n : Uint16Array,
|
|
2655
|
-
"%Uint32Array%": typeof Uint32Array > "u" ? n : Uint32Array,
|
|
2656
|
-
"%URIError%": u,
|
|
2657
|
-
"%WeakMap%": typeof WeakMap > "u" ? n : WeakMap,
|
|
2658
|
-
"%WeakRef%": typeof WeakRef > "u" ? n : WeakRef,
|
|
2659
|
-
"%WeakSet%": typeof WeakSet > "u" ? n : WeakSet,
|
|
2660
|
-
"%Function.prototype.call%": k,
|
|
2661
|
-
"%Function.prototype.apply%": O,
|
|
2662
|
-
"%Object.defineProperty%": x,
|
|
2663
|
-
"%Object.getPrototypeOf%": E,
|
|
2664
|
-
"%Math.abs%": d,
|
|
2665
|
-
"%Math.floor%": f,
|
|
2666
|
-
"%Math.max%": p,
|
|
2667
|
-
"%Math.min%": m,
|
|
2668
|
-
"%Math.pow%": h,
|
|
2669
|
-
"%Math.round%": g,
|
|
2670
|
-
"%Math.sign%": _,
|
|
2671
|
-
"%Reflect.getPrototypeOf%": D
|
|
2672
|
-
};
|
|
2673
|
-
if (T) try {
|
|
2674
|
-
null.error;
|
|
2675
|
-
} catch (e) {
|
|
2676
|
-
M["%Error.prototype%"] = T(T(e));
|
|
2677
|
-
}
|
|
2678
|
-
var ee = function e(t) {
|
|
2679
|
-
var n;
|
|
2680
|
-
if (t === "%AsyncFunction%") n = y("async function () {}");
|
|
2681
|
-
else if (t === "%GeneratorFunction%") n = y("function* () {}");
|
|
2682
|
-
else if (t === "%AsyncGeneratorFunction%") n = y("async function* () {}");
|
|
2683
|
-
else if (t === "%AsyncGenerator%") {
|
|
2684
|
-
var r = e("%AsyncGeneratorFunction%");
|
|
2685
|
-
r && (n = r.prototype);
|
|
2686
|
-
} else if (t === "%AsyncIteratorPrototype%") {
|
|
2687
|
-
var i = e("%AsyncGenerator%");
|
|
2688
|
-
i && T && (n = T(i.prototype));
|
|
2689
|
-
}
|
|
2690
|
-
return M[t] = n, n;
|
|
2691
|
-
}, N = {
|
|
2692
|
-
__proto__: null,
|
|
2693
|
-
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
2694
|
-
"%ArrayPrototype%": ["Array", "prototype"],
|
|
2695
|
-
"%ArrayProto_entries%": [
|
|
2696
|
-
"Array",
|
|
2697
|
-
"prototype",
|
|
2698
|
-
"entries"
|
|
2699
|
-
],
|
|
2700
|
-
"%ArrayProto_forEach%": [
|
|
2701
|
-
"Array",
|
|
2702
|
-
"prototype",
|
|
2703
|
-
"forEach"
|
|
2704
|
-
],
|
|
2705
|
-
"%ArrayProto_keys%": [
|
|
2706
|
-
"Array",
|
|
2707
|
-
"prototype",
|
|
2708
|
-
"keys"
|
|
2709
|
-
],
|
|
2710
|
-
"%ArrayProto_values%": [
|
|
2711
|
-
"Array",
|
|
2712
|
-
"prototype",
|
|
2713
|
-
"values"
|
|
2714
|
-
],
|
|
2715
|
-
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
2716
|
-
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
2717
|
-
"%AsyncGeneratorPrototype%": [
|
|
2718
|
-
"AsyncGeneratorFunction",
|
|
2719
|
-
"prototype",
|
|
2720
|
-
"prototype"
|
|
2721
|
-
],
|
|
2722
|
-
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
2723
|
-
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
2724
|
-
"%DatePrototype%": ["Date", "prototype"],
|
|
2725
|
-
"%ErrorPrototype%": ["Error", "prototype"],
|
|
2726
|
-
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
2727
|
-
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
2728
|
-
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
2729
|
-
"%FunctionPrototype%": ["Function", "prototype"],
|
|
2730
|
-
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
2731
|
-
"%GeneratorPrototype%": [
|
|
2732
|
-
"GeneratorFunction",
|
|
2733
|
-
"prototype",
|
|
2734
|
-
"prototype"
|
|
2735
|
-
],
|
|
2736
|
-
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
2737
|
-
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
2738
|
-
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
2739
|
-
"%JSONParse%": ["JSON", "parse"],
|
|
2740
|
-
"%JSONStringify%": ["JSON", "stringify"],
|
|
2741
|
-
"%MapPrototype%": ["Map", "prototype"],
|
|
2742
|
-
"%NumberPrototype%": ["Number", "prototype"],
|
|
2743
|
-
"%ObjectPrototype%": ["Object", "prototype"],
|
|
2744
|
-
"%ObjProto_toString%": [
|
|
2745
|
-
"Object",
|
|
2746
|
-
"prototype",
|
|
2747
|
-
"toString"
|
|
2748
|
-
],
|
|
2749
|
-
"%ObjProto_valueOf%": [
|
|
2750
|
-
"Object",
|
|
2751
|
-
"prototype",
|
|
2752
|
-
"valueOf"
|
|
2753
|
-
],
|
|
2754
|
-
"%PromisePrototype%": ["Promise", "prototype"],
|
|
2755
|
-
"%PromiseProto_then%": [
|
|
2756
|
-
"Promise",
|
|
2757
|
-
"prototype",
|
|
2758
|
-
"then"
|
|
2759
|
-
],
|
|
2760
|
-
"%Promise_all%": ["Promise", "all"],
|
|
2761
|
-
"%Promise_reject%": ["Promise", "reject"],
|
|
2762
|
-
"%Promise_resolve%": ["Promise", "resolve"],
|
|
2763
|
-
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
2764
|
-
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
2765
|
-
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
2766
|
-
"%SetPrototype%": ["Set", "prototype"],
|
|
2767
|
-
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
2768
|
-
"%StringPrototype%": ["String", "prototype"],
|
|
2769
|
-
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
2770
|
-
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
2771
|
-
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
2772
|
-
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
2773
|
-
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
2774
|
-
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
2775
|
-
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
2776
|
-
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
2777
|
-
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2778
|
-
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2779
|
-
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2780
|
-
}, P = gi(), F = wi(), I = P.call(k, Array.prototype.concat), L = P.call(O, Array.prototype.splice), R = P.call(k, String.prototype.replace), z = P.call(k, String.prototype.slice), B = P.call(k, RegExp.prototype.exec), te = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ne = /\\(\\)?/g, re = function(e) {
|
|
2781
|
-
var t = z(e, 0, 1), n = z(e, -1);
|
|
2782
|
-
if (t === "%" && n !== "%") throw new c("invalid intrinsic syntax, expected closing `%`");
|
|
2783
|
-
if (n === "%" && t !== "%") throw new c("invalid intrinsic syntax, expected opening `%`");
|
|
2784
|
-
var r = [];
|
|
2785
|
-
return R(e, te, function(e, t, n, i) {
|
|
2786
|
-
r[r.length] = n ? R(i, ne, "$1") : t || e;
|
|
2787
|
-
}), r;
|
|
2788
|
-
}, ie = function(e, t) {
|
|
2789
|
-
var n = e, r;
|
|
2790
|
-
if (F(N, n) && (r = N[n], n = "%" + r[0] + "%"), F(M, n)) {
|
|
2791
|
-
var i = M[n];
|
|
2792
|
-
if (i === A && (i = ee(n)), i === void 0 && !t) throw new l("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
2793
|
-
return {
|
|
2794
|
-
alias: r,
|
|
2795
|
-
name: n,
|
|
2796
|
-
value: i
|
|
2797
|
-
};
|
|
2798
|
-
}
|
|
2799
|
-
throw new c("intrinsic " + e + " does not exist!");
|
|
2800
|
-
};
|
|
2801
|
-
t.exports = function(e, t) {
|
|
2802
|
-
if (typeof e != "string" || e.length === 0) throw new l("intrinsic name must be a non-empty string");
|
|
2803
|
-
if (arguments.length > 1 && typeof t != "boolean") throw new l("\"allowMissing\" argument must be a boolean");
|
|
2804
|
-
if (B(/^%?[^%]*%?$/, e) === null) throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2805
|
-
var n = re(e), r = n.length > 0 ? n[0] : "", i = ie("%" + r + "%", t), a = i.name, o = i.value, s = !1, u = i.alias;
|
|
2806
|
-
u && (r = u[0], L(n, I([0, 1], u)));
|
|
2807
|
-
for (var d = 1, f = !0; d < n.length; d += 1) {
|
|
2808
|
-
var p = n[d], m = z(p, 0, 1), h = z(p, -1);
|
|
2809
|
-
if ((m === "\"" || m === "'" || m === "`" || h === "\"" || h === "'" || h === "`") && m !== h) throw new c("property names with quotes must have matching quotes");
|
|
2810
|
-
if ((p === "constructor" || !f) && (s = !0), r += "." + p, a = "%" + r + "%", F(M, a)) o = M[a];
|
|
2811
|
-
else if (o != null) {
|
|
2812
|
-
if (!(p in o)) {
|
|
2813
|
-
if (!t) throw new l("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2814
|
-
return;
|
|
2815
|
-
}
|
|
2816
|
-
if (b && d + 1 >= n.length) {
|
|
2817
|
-
var g = b(o, p);
|
|
2818
|
-
f = !!g, o = f && "get" in g && !("originalValue" in g.get) ? g.get : o[p];
|
|
2819
|
-
} else f = F(o, p), o = o[p];
|
|
2820
|
-
f && !s && (M[a] = o);
|
|
2821
|
-
}
|
|
2822
|
-
}
|
|
2823
|
-
return o;
|
|
2824
|
-
};
|
|
2825
|
-
})), Ei = /* @__PURE__ */ C(((e, t) => {
|
|
2826
|
-
var n = Ti(), r = xi(), i = r([n("%String.prototype.indexOf%")]);
|
|
2827
|
-
t.exports = function(e, t) {
|
|
2828
|
-
var a = n(e, !!t);
|
|
2829
|
-
return typeof a == "function" && i(e, ".prototype.") > -1 ? r([a]) : a;
|
|
2830
|
-
};
|
|
2831
|
-
})), Di = /* @__PURE__ */ C(((e, t) => {
|
|
2832
|
-
var n = Ti(), r = Ei(), i = Gr(), a = Ur(), o = n("%Map%", !0), s = r("Map.prototype.get", !0), c = r("Map.prototype.set", !0), l = r("Map.prototype.has", !0), u = r("Map.prototype.delete", !0), d = r("Map.prototype.size", !0);
|
|
2833
|
-
t.exports = !!o && function() {
|
|
2834
|
-
var e, t = {
|
|
2835
|
-
assert: function(e) {
|
|
2836
|
-
if (!t.has(e)) throw new a("Side channel does not contain " + i(e));
|
|
2837
|
-
},
|
|
2838
|
-
delete: function(t) {
|
|
2839
|
-
if (e) {
|
|
2840
|
-
var n = u(e, t);
|
|
2841
|
-
return d(e) === 0 && (e = void 0), n;
|
|
2842
|
-
}
|
|
2843
|
-
return !1;
|
|
2844
|
-
},
|
|
2845
|
-
get: function(t) {
|
|
2846
|
-
if (e) return s(e, t);
|
|
2847
|
-
},
|
|
2848
|
-
has: function(t) {
|
|
2849
|
-
return e ? l(e, t) : !1;
|
|
2850
|
-
},
|
|
2851
|
-
set: function(t, n) {
|
|
2852
|
-
e ||= new o(), c(e, t, n);
|
|
2853
|
-
}
|
|
2854
|
-
};
|
|
2855
|
-
return t;
|
|
2856
|
-
};
|
|
2857
|
-
})), Oi = /* @__PURE__ */ C(((e, t) => {
|
|
2858
|
-
var n = Ti(), r = Ei(), i = Gr(), a = Di(), o = Ur(), s = n("%WeakMap%", !0), c = r("WeakMap.prototype.get", !0), l = r("WeakMap.prototype.set", !0), u = r("WeakMap.prototype.has", !0), d = r("WeakMap.prototype.delete", !0);
|
|
2859
|
-
t.exports = s ? function() {
|
|
2860
|
-
var e, t, n = {
|
|
2861
|
-
assert: function(e) {
|
|
2862
|
-
if (!n.has(e)) throw new o("Side channel does not contain " + i(e));
|
|
2863
|
-
},
|
|
2864
|
-
delete: function(n) {
|
|
2865
|
-
if (s && n && (typeof n == "object" || typeof n == "function")) {
|
|
2866
|
-
if (e) return d(e, n);
|
|
2867
|
-
} else if (a && t) return t.delete(n);
|
|
2868
|
-
return !1;
|
|
2869
|
-
},
|
|
2870
|
-
get: function(n) {
|
|
2871
|
-
return s && n && (typeof n == "object" || typeof n == "function") && e ? c(e, n) : t && t.get(n);
|
|
2872
|
-
},
|
|
2873
|
-
has: function(n) {
|
|
2874
|
-
return s && n && (typeof n == "object" || typeof n == "function") && e ? u(e, n) : !!t && t.has(n);
|
|
2875
|
-
},
|
|
2876
|
-
set: function(n, r) {
|
|
2877
|
-
s && n && (typeof n == "object" || typeof n == "function") ? (e ||= new s(), l(e, n, r)) : a && (t ||= a(), t.set(n, r));
|
|
2878
|
-
}
|
|
2879
|
-
};
|
|
2880
|
-
return n;
|
|
2881
|
-
} : a;
|
|
2882
|
-
})), ki = /* @__PURE__ */ C(((e, t) => {
|
|
2883
|
-
var n = Ur(), r = Gr(), i = Kr(), a = Di(), o = Oi() || a || i;
|
|
2884
|
-
t.exports = function() {
|
|
2885
|
-
var e, t = {
|
|
2886
|
-
assert: function(e) {
|
|
2887
|
-
if (!t.has(e)) throw new n("Side channel does not contain " + (e && Object(e) === e ? "the given object key" : r(e)));
|
|
2888
|
-
},
|
|
2889
|
-
delete: function(t) {
|
|
2890
|
-
return !!e && e.delete(t);
|
|
2891
|
-
},
|
|
2892
|
-
get: function(t) {
|
|
2893
|
-
return e && e.get(t);
|
|
2894
|
-
},
|
|
2895
|
-
has: function(t) {
|
|
2896
|
-
return !!e && e.has(t);
|
|
2897
|
-
},
|
|
2898
|
-
set: function(t, n) {
|
|
2899
|
-
e ||= o(), e.set(t, n);
|
|
2900
|
-
}
|
|
2901
|
-
};
|
|
2902
|
-
return t;
|
|
2903
|
-
};
|
|
2904
|
-
})), Ai = /* @__PURE__ */ C(((e, t) => {
|
|
2905
|
-
var n = String.prototype.replace, r = /%20/g, i = {
|
|
2906
|
-
RFC1738: "RFC1738",
|
|
2907
|
-
RFC3986: "RFC3986"
|
|
2908
|
-
};
|
|
2909
|
-
t.exports = {
|
|
2910
|
-
default: i.RFC3986,
|
|
2911
|
-
formatters: {
|
|
2912
|
-
RFC1738: function(e) {
|
|
2913
|
-
return n.call(e, r, "+");
|
|
2914
|
-
},
|
|
2915
|
-
RFC3986: function(e) {
|
|
2916
|
-
return String(e);
|
|
2917
|
-
}
|
|
2918
|
-
},
|
|
2919
|
-
RFC1738: i.RFC1738,
|
|
2920
|
-
RFC3986: i.RFC3986
|
|
2921
|
-
};
|
|
2922
|
-
})), ji = /* @__PURE__ */ C(((e, t) => {
|
|
2923
|
-
var n = Ai(), r = ki(), i = ui(), a = Object.prototype.hasOwnProperty, o = Array.isArray, s = r(), c = function(e, t) {
|
|
2924
|
-
return s.set(e, t), e;
|
|
2925
|
-
}, l = function(e) {
|
|
2926
|
-
return s.has(e);
|
|
2927
|
-
}, u = function(e) {
|
|
2928
|
-
return s.get(e);
|
|
2929
|
-
}, d = function(e, t) {
|
|
2930
|
-
s.set(e, t);
|
|
2931
|
-
}, f = function() {
|
|
2932
|
-
for (var e = [], t = 0; t < 256; ++t) e[e.length] = "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase();
|
|
2933
|
-
return e;
|
|
2934
|
-
}(), p = function(e) {
|
|
2935
|
-
for (; e.length > 1;) {
|
|
2936
|
-
var t = e.pop(), n = t.obj[t.prop];
|
|
2937
|
-
if (o(n)) {
|
|
2938
|
-
for (var r = [], i = 0; i < n.length; ++i) n[i] !== void 0 && (r[r.length] = n[i]);
|
|
2939
|
-
t.obj[t.prop] = r;
|
|
2940
|
-
}
|
|
2941
|
-
}
|
|
2942
|
-
}, m = function(e, t) {
|
|
2943
|
-
for (var n = t && t.plainObjects ? { __proto__: null } : {}, r = 0; r < e.length; ++r) e[r] !== void 0 && (n[r] = e[r]);
|
|
2944
|
-
return n;
|
|
2945
|
-
}, h = function(e, t, n) {
|
|
2946
|
-
t === "__proto__" && i ? i(e, t, {
|
|
2947
|
-
configurable: !0,
|
|
2948
|
-
enumerable: !0,
|
|
2949
|
-
value: n,
|
|
2950
|
-
writable: !0
|
|
2951
|
-
}) : e[t] = n;
|
|
2952
|
-
}, g = function e(t, n, r) {
|
|
2953
|
-
if (!n) return t;
|
|
2954
|
-
if (typeof n != "object" && typeof n != "function") {
|
|
2955
|
-
if (o(t)) {
|
|
2956
|
-
var i = t.length;
|
|
2957
|
-
if (r && typeof r.arrayLimit == "number" && i >= r.arrayLimit) {
|
|
2958
|
-
if (r.throwOnLimitExceeded) throw RangeError("Array limit exceeded. Only " + r.arrayLimit + " element" + (r.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
2959
|
-
return c(m(t.concat(n), r), i);
|
|
2960
|
-
}
|
|
2961
|
-
t[i] = n;
|
|
2962
|
-
} else if (t && typeof t == "object") {
|
|
2963
|
-
if (l(t)) {
|
|
2964
|
-
var s = u(t) + 1;
|
|
2965
|
-
t[s] = n, d(t, s);
|
|
2966
|
-
} else if (r && r.strictMerge) return [t, n];
|
|
2967
|
-
else (r && (r.plainObjects || r.allowPrototypes) || !a.call(Object.prototype, n)) && (t[n] = !0);
|
|
2968
|
-
} else return [t, n];
|
|
2969
|
-
return t;
|
|
2970
|
-
}
|
|
2971
|
-
if (!t || typeof t != "object") {
|
|
2972
|
-
if (l(n)) {
|
|
2973
|
-
for (var f = Object.keys(n), p = r && r.plainObjects ? {
|
|
2974
|
-
__proto__: null,
|
|
2975
|
-
0: t
|
|
2976
|
-
} : { 0: t }, g = 0; g < f.length; g++) {
|
|
2977
|
-
var _ = parseInt(f[g], 10);
|
|
2978
|
-
p[_ + 1] = n[f[g]];
|
|
2979
|
-
}
|
|
2980
|
-
return c(p, u(n) + 1);
|
|
2981
|
-
}
|
|
2982
|
-
var v = [t].concat(n);
|
|
2983
|
-
if (r && typeof r.arrayLimit == "number" && v.length > r.arrayLimit) {
|
|
2984
|
-
if (r.throwOnLimitExceeded) throw RangeError("Array limit exceeded. Only " + r.arrayLimit + " element" + (r.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
2985
|
-
return c(m(v, r), v.length - 1);
|
|
2986
|
-
}
|
|
2987
|
-
return v;
|
|
2988
|
-
}
|
|
2989
|
-
var y = t;
|
|
2990
|
-
if (o(t) && !o(n) && (y = m(t, r)), o(t) && o(n)) {
|
|
2991
|
-
if (n.forEach(function(n, i) {
|
|
2992
|
-
if (a.call(t, i)) {
|
|
2993
|
-
var o = t[i];
|
|
2994
|
-
o && typeof o == "object" && n && typeof n == "object" ? t[i] = e(o, n, r) : t[t.length] = n;
|
|
2995
|
-
} else t[i] = n;
|
|
2996
|
-
}), r && typeof r.arrayLimit == "number" && t.length > r.arrayLimit) {
|
|
2997
|
-
if (r.throwOnLimitExceeded) throw RangeError("Array limit exceeded. Only " + r.arrayLimit + " element" + (r.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
2998
|
-
return c(m(t, r), t.length - 1);
|
|
2999
|
-
}
|
|
3000
|
-
return t;
|
|
3001
|
-
}
|
|
3002
|
-
return Object.keys(n).reduce(function(t, i) {
|
|
3003
|
-
var o = n[i];
|
|
3004
|
-
if (a.call(t, i) ? h(t, i, e(t[i], o, r)) : h(t, i, o), l(n) && !l(t) && c(t, u(n)), l(t)) {
|
|
3005
|
-
var s = parseInt(i, 10);
|
|
3006
|
-
String(s) === i && s >= 0 && s > u(t) && d(t, s);
|
|
3007
|
-
}
|
|
3008
|
-
return t;
|
|
3009
|
-
}, y);
|
|
3010
|
-
}, _ = function(e, t) {
|
|
3011
|
-
return Object.keys(t).reduce(function(e, n) {
|
|
3012
|
-
return h(e, n, t[n]), e;
|
|
3013
|
-
}, e);
|
|
3014
|
-
}, v = function(e, t, n) {
|
|
3015
|
-
var r = e.replace(/\+/g, " ");
|
|
3016
|
-
if (n === "iso-8859-1") return r.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
3017
|
-
try {
|
|
3018
|
-
return decodeURIComponent(r);
|
|
3019
|
-
} catch {
|
|
3020
|
-
return r;
|
|
3021
|
-
}
|
|
3022
|
-
}, y = 1024;
|
|
3023
|
-
t.exports = {
|
|
3024
|
-
arrayToObject: m,
|
|
3025
|
-
assign: _,
|
|
3026
|
-
combine: function(e, t, n, r, i) {
|
|
3027
|
-
if (l(e)) {
|
|
3028
|
-
if (i) throw RangeError("Array limit exceeded. Only " + n + " element" + (n === 1 ? "" : "s") + " allowed in an array.");
|
|
3029
|
-
var a = u(e) + 1;
|
|
3030
|
-
return e[a] = t, d(e, a), e;
|
|
3031
|
-
}
|
|
3032
|
-
var o = [].concat(e, t);
|
|
3033
|
-
if (o.length > n) {
|
|
3034
|
-
if (i) throw RangeError("Array limit exceeded. Only " + n + " element" + (n === 1 ? "" : "s") + " allowed in an array.");
|
|
3035
|
-
return c(m(o, { plainObjects: r }), o.length - 1);
|
|
3036
|
-
}
|
|
3037
|
-
return o;
|
|
3038
|
-
},
|
|
3039
|
-
compact: function(e) {
|
|
3040
|
-
for (var t = [{
|
|
3041
|
-
obj: { o: e },
|
|
3042
|
-
prop: "o"
|
|
3043
|
-
}], n = r(), i = 0; i < t.length; ++i) for (var a = t[i], o = a.obj[a.prop], s = Object.keys(o), c = 0; c < s.length; ++c) {
|
|
3044
|
-
var l = s[c], u = o[l];
|
|
3045
|
-
typeof u == "object" && u && !n.has(u) && (t[t.length] = {
|
|
3046
|
-
obj: o,
|
|
3047
|
-
prop: l
|
|
3048
|
-
}, n.set(u, !0));
|
|
3049
|
-
}
|
|
3050
|
-
return p(t), e;
|
|
3051
|
-
},
|
|
3052
|
-
decode: v,
|
|
3053
|
-
encode: function(e, t, r, i, a) {
|
|
3054
|
-
if (e.length === 0) return e;
|
|
3055
|
-
var o = e;
|
|
3056
|
-
if (typeof e == "symbol" ? o = Symbol.prototype.toString.call(e) : typeof e != "string" && (o = String(e)), r === "iso-8859-1") return escape(o).replace(/%u[0-9a-f]{4}/gi, function(e) {
|
|
3057
|
-
return "%26%23" + parseInt(e.slice(2), 16) + "%3B";
|
|
3058
|
-
});
|
|
3059
|
-
for (var s = "", c = 0; c < o.length; c += y) {
|
|
3060
|
-
var l = o.length >= y ? o.slice(c, c + y) : o;
|
|
3061
|
-
if (c + y < o.length) {
|
|
3062
|
-
var u = l.charCodeAt(l.length - 1);
|
|
3063
|
-
u >= 55296 && u <= 56319 && (l = l.slice(0, -1), --c);
|
|
3064
|
-
}
|
|
3065
|
-
for (var d = [], p = 0; p < l.length; ++p) {
|
|
3066
|
-
var m = l.charCodeAt(p);
|
|
3067
|
-
if (m === 45 || m === 46 || m === 95 || m === 126 || m >= 48 && m <= 57 || m >= 65 && m <= 90 || m >= 97 && m <= 122 || a === n.RFC1738 && (m === 40 || m === 41)) {
|
|
3068
|
-
d[d.length] = l.charAt(p);
|
|
3069
|
-
continue;
|
|
3070
|
-
}
|
|
3071
|
-
if (m < 128) {
|
|
3072
|
-
d[d.length] = f[m];
|
|
3073
|
-
continue;
|
|
3074
|
-
}
|
|
3075
|
-
if (m < 2048) {
|
|
3076
|
-
d[d.length] = f[192 | m >> 6] + f[128 | m & 63];
|
|
3077
|
-
continue;
|
|
3078
|
-
}
|
|
3079
|
-
if (m < 55296 || m >= 57344) {
|
|
3080
|
-
d[d.length] = f[224 | m >> 12] + f[128 | m >> 6 & 63] + f[128 | m & 63];
|
|
3081
|
-
continue;
|
|
3082
|
-
}
|
|
3083
|
-
p += 1, m = 65536 + ((m & 1023) << 10 | l.charCodeAt(p) & 1023), d[d.length] = f[240 | m >> 18] + f[128 | m >> 12 & 63] + f[128 | m >> 6 & 63] + f[128 | m & 63];
|
|
3084
|
-
}
|
|
3085
|
-
s += d.join("");
|
|
3086
|
-
}
|
|
3087
|
-
return s;
|
|
3088
|
-
},
|
|
3089
|
-
isBuffer: function(e) {
|
|
3090
|
-
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
3091
|
-
},
|
|
3092
|
-
isOverflow: l,
|
|
3093
|
-
isRegExp: function(e) {
|
|
3094
|
-
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
3095
|
-
},
|
|
3096
|
-
markOverflow: c,
|
|
3097
|
-
maybeMap: function(e, t) {
|
|
3098
|
-
if (o(e)) {
|
|
3099
|
-
for (var n = [], r = 0; r < e.length; r += 1) n[n.length] = t(e[r]);
|
|
3100
|
-
return n;
|
|
3101
|
-
}
|
|
3102
|
-
return t(e);
|
|
3103
|
-
},
|
|
3104
|
-
merge: g
|
|
3105
|
-
};
|
|
3106
|
-
})), Mi = /* @__PURE__ */ C(((e, t) => {
|
|
3107
|
-
var n = ki(), r = ji(), i = Ai(), a = Object.prototype.hasOwnProperty, o = {
|
|
3108
|
-
brackets: function(e) {
|
|
3109
|
-
return e + "[]";
|
|
3110
|
-
},
|
|
3111
|
-
comma: "comma",
|
|
3112
|
-
indices: function(e, t) {
|
|
3113
|
-
return e + "[" + t + "]";
|
|
3114
|
-
},
|
|
3115
|
-
repeat: function(e) {
|
|
3116
|
-
return e;
|
|
3117
|
-
}
|
|
3118
|
-
}, s = Array.isArray, c = Array.prototype.push, l = function(e, t) {
|
|
3119
|
-
c.apply(e, s(t) ? t : [t]);
|
|
3120
|
-
}, u = Date.prototype.toISOString, d = i.default, f = {
|
|
3121
|
-
addQueryPrefix: !1,
|
|
3122
|
-
allowDots: !1,
|
|
3123
|
-
allowEmptyArrays: !1,
|
|
3124
|
-
arrayFormat: "indices",
|
|
3125
|
-
charset: "utf-8",
|
|
3126
|
-
charsetSentinel: !1,
|
|
3127
|
-
commaRoundTrip: !1,
|
|
3128
|
-
delimiter: "&",
|
|
3129
|
-
encode: !0,
|
|
3130
|
-
encodeDotInKeys: !1,
|
|
3131
|
-
encoder: r.encode,
|
|
3132
|
-
encodeValuesOnly: !1,
|
|
3133
|
-
filter: void 0,
|
|
3134
|
-
format: d,
|
|
3135
|
-
formatter: i.formatters[d],
|
|
3136
|
-
indices: !1,
|
|
3137
|
-
serializeDate: function(e) {
|
|
3138
|
-
return u.call(e);
|
|
3139
|
-
},
|
|
3140
|
-
skipNulls: !1,
|
|
3141
|
-
strictNullHandling: !1
|
|
3142
|
-
}, p = function(e) {
|
|
3143
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
3144
|
-
}, m = {}, h = function e(t, i, a, o, c, u, d, h, g, _, v, y, b, x, S, C, w, T) {
|
|
3145
|
-
for (var E = t, D = T, O = 0, k = !1; (D = D.get(m)) !== void 0 && !k;) {
|
|
3146
|
-
var A = D.get(t);
|
|
3147
|
-
if (O += 1, A !== void 0) {
|
|
3148
|
-
if (A === O) throw RangeError("Cyclic object value");
|
|
3149
|
-
k = !0;
|
|
3150
|
-
}
|
|
3151
|
-
D.get(m) === void 0 && (O = 0);
|
|
3152
|
-
}
|
|
3153
|
-
if (typeof _ == "function" ? E = _(i, E) : E instanceof Date ? E = b(E) : a === "comma" && s(E) && (E = r.maybeMap(E, function(e) {
|
|
3154
|
-
return e instanceof Date ? b(e) : e;
|
|
3155
|
-
})), E === null) {
|
|
3156
|
-
if (u) return S(g && !C ? g(i, f.encoder, w, "key", x) : i);
|
|
3157
|
-
E = "";
|
|
3158
|
-
}
|
|
3159
|
-
if (p(E) || r.isBuffer(E)) return g ? [S(C ? i : g(i, f.encoder, w, "key", x)) + "=" + S(g(E, f.encoder, w, "value", x))] : [S(i) + "=" + S(String(E))];
|
|
3160
|
-
var j = [];
|
|
3161
|
-
if (E === void 0) return j;
|
|
3162
|
-
var M;
|
|
3163
|
-
if (a === "comma" && s(E)) C && g && (E = r.maybeMap(E, function(e) {
|
|
3164
|
-
return e == null ? e : g(e);
|
|
3165
|
-
})), M = [{ value: E.length > 0 ? E.join(",") || null : void 0 }];
|
|
3166
|
-
else if (s(_)) M = _;
|
|
3167
|
-
else {
|
|
3168
|
-
var ee = Object.keys(E);
|
|
3169
|
-
M = v ? ee.sort(v) : ee;
|
|
3170
|
-
}
|
|
3171
|
-
var N = h ? String(i).replace(/\./g, "%2E") : String(i), P = o && s(E) && E.length === 1 ? N + "[]" : N;
|
|
3172
|
-
if (c && s(E) && E.length === 0) return P + "[]";
|
|
3173
|
-
for (var F = 0; F < M.length; ++F) {
|
|
3174
|
-
var I = M[F], L = typeof I == "object" && I && I.value !== void 0 ? I.value : E[I];
|
|
3175
|
-
if (!(d && L === null)) {
|
|
3176
|
-
var R = y && h ? String(I).replace(/\./g, "%2E") : String(I), z = s(E) ? typeof a == "function" ? a(P, R) : P : P + (y ? "." + R : "[" + R + "]");
|
|
3177
|
-
T.set(t, O);
|
|
3178
|
-
var B = n();
|
|
3179
|
-
B.set(m, T), l(j, e(L, z, a, o, c, u, d, h, a === "comma" && C && s(E) ? null : g, _, v, y, b, x, S, C, w, B));
|
|
3180
|
-
}
|
|
3181
|
-
}
|
|
3182
|
-
return j;
|
|
3183
|
-
}, g = function(e) {
|
|
3184
|
-
if (!e) return f;
|
|
3185
|
-
if (e.allowEmptyArrays !== void 0 && typeof e.allowEmptyArrays != "boolean") throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
3186
|
-
if (e.encodeDotInKeys !== void 0 && typeof e.encodeDotInKeys != "boolean") throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
3187
|
-
if (e.encoder !== null && e.encoder !== void 0 && typeof e.encoder != "function") throw TypeError("Encoder has to be a function.");
|
|
3188
|
-
var t = e.charset || f.charset;
|
|
3189
|
-
if (e.charset !== void 0 && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3190
|
-
var n = i.default;
|
|
3191
|
-
if (e.format !== void 0) {
|
|
3192
|
-
if (!a.call(i.formatters, e.format)) throw TypeError("Unknown format option provided.");
|
|
3193
|
-
n = e.format;
|
|
3194
|
-
}
|
|
3195
|
-
var r = i.formatters[n], c = f.filter;
|
|
3196
|
-
(typeof e.filter == "function" || s(e.filter)) && (c = e.filter);
|
|
3197
|
-
var l = e.arrayFormat in o ? e.arrayFormat : "indices" in e ? e.indices ? "indices" : "repeat" : f.arrayFormat;
|
|
3198
|
-
if ("commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean") throw TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
3199
|
-
var u = e.allowDots === void 0 ? e.encodeDotInKeys === !0 || f.allowDots : !!e.allowDots;
|
|
3200
|
-
return {
|
|
3201
|
-
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : f.addQueryPrefix,
|
|
3202
|
-
allowDots: u,
|
|
3203
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : f.allowEmptyArrays,
|
|
3204
|
-
arrayFormat: l,
|
|
3205
|
-
charset: t,
|
|
3206
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : f.charsetSentinel,
|
|
3207
|
-
commaRoundTrip: !!e.commaRoundTrip,
|
|
3208
|
-
delimiter: e.delimiter === void 0 ? f.delimiter : e.delimiter,
|
|
3209
|
-
encode: typeof e.encode == "boolean" ? e.encode : f.encode,
|
|
3210
|
-
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : f.encodeDotInKeys,
|
|
3211
|
-
encoder: typeof e.encoder == "function" ? e.encoder : f.encoder,
|
|
3212
|
-
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : f.encodeValuesOnly,
|
|
3213
|
-
filter: c,
|
|
3214
|
-
format: n,
|
|
3215
|
-
formatter: r,
|
|
3216
|
-
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : f.serializeDate,
|
|
3217
|
-
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : f.skipNulls,
|
|
3218
|
-
sort: typeof e.sort == "function" ? e.sort : null,
|
|
3219
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : f.strictNullHandling
|
|
3220
|
-
};
|
|
3221
|
-
};
|
|
3222
|
-
t.exports = function(e, t) {
|
|
3223
|
-
var r = e, i = g(t), a, c;
|
|
3224
|
-
typeof i.filter == "function" ? (c = i.filter, r = c("", r)) : s(i.filter) && (c = i.filter, a = c);
|
|
3225
|
-
var u = [];
|
|
3226
|
-
if (typeof r != "object" || !r) return "";
|
|
3227
|
-
var d = o[i.arrayFormat], f = d === "comma" && i.commaRoundTrip;
|
|
3228
|
-
a ||= Object.keys(r), i.sort && a.sort(i.sort);
|
|
3229
|
-
for (var p = n(), m = 0; m < a.length; ++m) {
|
|
3230
|
-
var _ = a[m];
|
|
3231
|
-
if (_ != null) {
|
|
3232
|
-
var v = r[_];
|
|
3233
|
-
i.skipNulls && v === null || l(u, h(v, _, d, f, i.allowEmptyArrays, i.strictNullHandling, i.skipNulls, i.encodeDotInKeys, i.encode ? i.encoder : null, i.filter, i.sort, i.allowDots, i.serializeDate, i.format, i.formatter, i.encodeValuesOnly, i.charset, p));
|
|
3234
|
-
}
|
|
3235
|
-
}
|
|
3236
|
-
var y = u.join(i.delimiter), b = i.addQueryPrefix === !0 ? "?" : "";
|
|
3237
|
-
return i.charsetSentinel && (i.charset === "iso-8859-1" ? b += "utf8=%26%2310003%3B" + i.delimiter : b += "utf8=%E2%9C%93" + i.delimiter), y.length > 0 ? b + y : "";
|
|
3238
|
-
};
|
|
3239
|
-
})), Ni = /* @__PURE__ */ C(((e, t) => {
|
|
3240
|
-
var n = ji(), r = Object.prototype.hasOwnProperty, i = Array.isArray, a = {
|
|
3241
|
-
allowDots: !1,
|
|
3242
|
-
allowEmptyArrays: !1,
|
|
3243
|
-
allowPrototypes: !1,
|
|
3244
|
-
allowSparse: !1,
|
|
3245
|
-
arrayLimit: 20,
|
|
3246
|
-
charset: "utf-8",
|
|
3247
|
-
charsetSentinel: !1,
|
|
3248
|
-
comma: !1,
|
|
3249
|
-
decodeDotInKeys: !1,
|
|
3250
|
-
decoder: n.decode,
|
|
3251
|
-
delimiter: "&",
|
|
3252
|
-
depth: 5,
|
|
3253
|
-
duplicates: "combine",
|
|
3254
|
-
ignoreQueryPrefix: !1,
|
|
3255
|
-
interpretNumericEntities: !1,
|
|
3256
|
-
parameterLimit: 1e3,
|
|
3257
|
-
parseArrays: !0,
|
|
3258
|
-
plainObjects: !1,
|
|
3259
|
-
strictDepth: !1,
|
|
3260
|
-
strictMerge: !0,
|
|
3261
|
-
strictNullHandling: !1,
|
|
3262
|
-
throwOnLimitExceeded: !1
|
|
3263
|
-
}, o = function(e) {
|
|
3264
|
-
return e.replace(/&#(\d+);/g, function(e, t) {
|
|
3265
|
-
return String.fromCharCode(parseInt(t, 10));
|
|
3266
|
-
});
|
|
3267
|
-
}, s = function(e, t, n, r) {
|
|
3268
|
-
if (e && typeof e == "string" && t.comma && e.indexOf(",") > -1) {
|
|
3269
|
-
if (r && t.throwOnLimitExceeded) for (var i = 0, a = e.indexOf(","); a > -1;) {
|
|
3270
|
-
if (i += 1, i >= t.arrayLimit) throw RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
3271
|
-
a = e.indexOf(",", a + 1);
|
|
3272
|
-
}
|
|
3273
|
-
return e.split(",");
|
|
3274
|
-
}
|
|
3275
|
-
if (t.throwOnLimitExceeded && n >= t.arrayLimit) throw RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
3276
|
-
return e;
|
|
3277
|
-
}, c = "utf8=%26%2310003%3B", l = "utf8=%E2%9C%93", u = function(e, t) {
|
|
3278
|
-
var u = { __proto__: null }, d = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
3279
|
-
d = d.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3280
|
-
var f = t.parameterLimit === Infinity ? void 0 : t.parameterLimit, p = d.split(t.delimiter, t.throwOnLimitExceeded && f !== void 0 ? f + 1 : f);
|
|
3281
|
-
if (t.throwOnLimitExceeded && f !== void 0 && p.length > f) throw RangeError("Parameter limit exceeded. Only " + f + " parameter" + (f === 1 ? "" : "s") + " allowed.");
|
|
3282
|
-
var m = -1, h, g = t.charset;
|
|
3283
|
-
if (t.charsetSentinel) for (h = 0; h < p.length; ++h) p[h].indexOf("utf8=") === 0 && (p[h] === l ? g = "utf-8" : p[h] === c && (g = "iso-8859-1"), m = h, h = p.length);
|
|
3284
|
-
for (h = 0; h < p.length; ++h) if (h !== m) {
|
|
3285
|
-
var _ = p[h], v = _.indexOf("]="), y = v === -1 ? _.indexOf("=") : v + 1, b, x;
|
|
3286
|
-
if (y === -1 ? (b = t.decoder(_, a.decoder, g, "key"), x = t.strictNullHandling ? null : "") : (b = t.decoder(_.slice(0, y), a.decoder, g, "key"), b !== null && (x = n.maybeMap(s(_.slice(y + 1), t, i(u[b]) ? u[b].length : 0, _.indexOf("[]=") === -1), function(e) {
|
|
3287
|
-
return t.decoder(e, a.decoder, g, "value");
|
|
3288
|
-
}))), x && t.interpretNumericEntities && g === "iso-8859-1" && (x = o(String(x))), _.indexOf("[]=") > -1 && (x = i(x) ? [x] : x), t.comma && i(x) && x.length > t.arrayLimit && (x = n.combine([], x, t.arrayLimit, t.plainObjects, t.throwOnLimitExceeded)), b !== null) {
|
|
3289
|
-
var S = r.call(u, b);
|
|
3290
|
-
S && (t.duplicates === "combine" || _.indexOf("[]=") > -1) ? u[b] = n.combine(u[b], x, t.arrayLimit, t.plainObjects, t.throwOnLimitExceeded) : (!S || t.duplicates === "last") && (u[b] = x);
|
|
3291
|
-
}
|
|
3292
|
-
}
|
|
3293
|
-
return u;
|
|
3294
|
-
}, d = function(e, t, r, i) {
|
|
3295
|
-
var a = 0;
|
|
3296
|
-
if (e.length > 0 && e[e.length - 1] === "[]") {
|
|
3297
|
-
var o = e.slice(0, -1).join("");
|
|
3298
|
-
a = Array.isArray(t) && t[o] ? t[o].length : 0;
|
|
3299
|
-
}
|
|
3300
|
-
for (var c = i ? t : s(t, r, a), l = e.length - 1; l >= 0; --l) {
|
|
3301
|
-
var u, d = e[l];
|
|
3302
|
-
if (d === "[]" && r.parseArrays) u = n.isOverflow(c) ? c : r.allowEmptyArrays && (c === "" || r.strictNullHandling && c === null) ? [] : n.combine([], c, r.arrayLimit, r.plainObjects, r.throwOnLimitExceeded);
|
|
3303
|
-
else {
|
|
3304
|
-
u = r.plainObjects ? { __proto__: null } : {};
|
|
3305
|
-
var f = d.charAt(0) === "[" && d.charAt(d.length - 1) === "]" ? d.slice(1, -1) : d, p = r.decodeDotInKeys ? f.replace(/%2E/g, ".") : f, m = parseInt(p, 10), h = !isNaN(m) && d !== p && String(m) === p && m >= 0 && r.parseArrays;
|
|
3306
|
-
if (!r.parseArrays && p === "") u = { 0: c };
|
|
3307
|
-
else if (h && m < r.arrayLimit) u = [], u[m] = c;
|
|
3308
|
-
else if (h && r.throwOnLimitExceeded) throw RangeError("Array limit exceeded. Only " + r.arrayLimit + " element" + (r.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
3309
|
-
else h ? (u[m] = c, n.markOverflow(u, m)) : p !== "__proto__" && (u[p] = c);
|
|
3310
|
-
}
|
|
3311
|
-
c = u;
|
|
3312
|
-
}
|
|
3313
|
-
return c;
|
|
3314
|
-
}, f = function(e, t) {
|
|
3315
|
-
var n = t.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e;
|
|
3316
|
-
if (t.depth <= 0) return !t.plainObjects && r.call(Object.prototype, n) && !t.allowPrototypes ? void 0 : [n];
|
|
3317
|
-
var i = [], a = n.indexOf("["), o = a >= 0 ? n.slice(0, a) : n;
|
|
3318
|
-
if (o) {
|
|
3319
|
-
if (!t.plainObjects && r.call(Object.prototype, o) && !t.allowPrototypes) return;
|
|
3320
|
-
i[i.length] = o;
|
|
3321
|
-
}
|
|
3322
|
-
for (var s = n.length, c = a, l = 0; c >= 0 && l < t.depth;) {
|
|
3323
|
-
for (var u = 1, d = c + 1, f = -1; d < s && f < 0;) {
|
|
3324
|
-
var p = n.charCodeAt(d);
|
|
3325
|
-
p === 91 ? u += 1 : p === 93 && (--u, u === 0 && (f = d)), d += 1;
|
|
3326
|
-
}
|
|
3327
|
-
if (f < 0) return i[i.length] = "[" + n.slice(c) + "]", i;
|
|
3328
|
-
var m = n.slice(c, f + 1), h = m.slice(1, -1);
|
|
3329
|
-
if (!t.plainObjects && r.call(Object.prototype, h) && !t.allowPrototypes) return;
|
|
3330
|
-
i[i.length] = m, l += 1, c = n.indexOf("[", f + 1);
|
|
3331
|
-
}
|
|
3332
|
-
if (c >= 0) {
|
|
3333
|
-
if (t.strictDepth === !0) throw RangeError("Input depth exceeded depth option of " + t.depth + " and strictDepth is true");
|
|
3334
|
-
i[i.length] = "[" + n.slice(c) + "]";
|
|
3335
|
-
}
|
|
3336
|
-
return i;
|
|
3337
|
-
}, p = function(e, t, n, r) {
|
|
3338
|
-
if (e) {
|
|
3339
|
-
var i = f(e, n);
|
|
3340
|
-
if (i) return d(i, t, n, r);
|
|
3341
|
-
}
|
|
3342
|
-
}, m = function(e) {
|
|
3343
|
-
if (!e) return a;
|
|
3344
|
-
if (e.allowEmptyArrays !== void 0 && typeof e.allowEmptyArrays != "boolean") throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
3345
|
-
if (e.decodeDotInKeys !== void 0 && typeof e.decodeDotInKeys != "boolean") throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
3346
|
-
if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function") throw TypeError("Decoder has to be a function.");
|
|
3347
|
-
if (e.charset !== void 0 && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
3348
|
-
if (e.throwOnLimitExceeded !== void 0 && typeof e.throwOnLimitExceeded != "boolean") throw TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
3349
|
-
var t = e.charset === void 0 ? a.charset : e.charset, r = e.duplicates === void 0 ? a.duplicates : e.duplicates;
|
|
3350
|
-
if (r !== "combine" && r !== "first" && r !== "last") throw TypeError("The duplicates option must be either combine, first, or last");
|
|
3351
|
-
return {
|
|
3352
|
-
allowDots: e.allowDots === void 0 ? e.decodeDotInKeys === !0 || a.allowDots : !!e.allowDots,
|
|
3353
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : a.allowEmptyArrays,
|
|
3354
|
-
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : a.allowPrototypes,
|
|
3355
|
-
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : a.allowSparse,
|
|
3356
|
-
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : a.arrayLimit,
|
|
3357
|
-
charset: t,
|
|
3358
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : a.charsetSentinel,
|
|
3359
|
-
comma: typeof e.comma == "boolean" ? e.comma : a.comma,
|
|
3360
|
-
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : a.decodeDotInKeys,
|
|
3361
|
-
decoder: typeof e.decoder == "function" ? e.decoder : a.decoder,
|
|
3362
|
-
delimiter: typeof e.delimiter == "string" || n.isRegExp(e.delimiter) ? e.delimiter : a.delimiter,
|
|
3363
|
-
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : a.depth,
|
|
3364
|
-
duplicates: r,
|
|
3365
|
-
ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
|
|
3366
|
-
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : a.interpretNumericEntities,
|
|
3367
|
-
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : a.parameterLimit,
|
|
3368
|
-
parseArrays: e.parseArrays !== !1,
|
|
3369
|
-
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : a.plainObjects,
|
|
3370
|
-
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : a.strictDepth,
|
|
3371
|
-
strictMerge: typeof e.strictMerge == "boolean" ? !!e.strictMerge : a.strictMerge,
|
|
3372
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : a.strictNullHandling,
|
|
3373
|
-
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" && e.throwOnLimitExceeded
|
|
3374
|
-
};
|
|
3375
|
-
};
|
|
3376
|
-
t.exports = function(e, t) {
|
|
3377
|
-
var r = m(t);
|
|
3378
|
-
if (e === "" || e == null) return r.plainObjects ? { __proto__: null } : {};
|
|
3379
|
-
for (var i = typeof e == "string" ? u(e, r) : e, a = r.plainObjects ? { __proto__: null } : {}, o = Object.keys(i), s = 0; s < o.length; ++s) {
|
|
3380
|
-
var c = o[s], l = p(c, i[c], r, typeof e == "string");
|
|
3381
|
-
a = n.merge(a, l, r);
|
|
3382
|
-
}
|
|
3383
|
-
return r.allowSparse === !0 ? a : n.compact(a);
|
|
3384
|
-
};
|
|
3385
|
-
})), Pi = /* @__PURE__ */ E((/* @__PURE__ */ C(((e, t) => {
|
|
3386
|
-
var n = Mi(), r = Ni();
|
|
3387
|
-
t.exports = {
|
|
3388
|
-
formats: Ai(),
|
|
3389
|
-
parse: r,
|
|
3390
|
-
stringify: n
|
|
3391
|
-
};
|
|
3392
|
-
})))(), 1), Fi = "eq";
|
|
3393
|
-
async function Ii(e, t, n) {
|
|
3394
|
-
let { isLocal: r, remoteParamsArray: i, customFilterFn: o, keyData: s, url: c } = n;
|
|
3395
|
-
if (n?.dataAnalyticsFilter) {
|
|
3396
|
-
let e = window.location.hash.slice(1).split("?")[0];
|
|
3397
|
-
a(n.dataAnalyticsFilter, e);
|
|
3398
|
-
}
|
|
3399
|
-
if (!r) return v(e);
|
|
3400
|
-
let l, { remote: u, local: d } = Li(e, i), { remote: f, local: p } = Li(n.appliedParams, i), h = !n.appliedParams || !Vr(u, f), g = !n.appliedParams || !Vr(d, p), _ = g ? d : p;
|
|
3401
|
-
return (!h && !g || !n?.rawResponse || h) && c && (l = await v(u)), l = Ri(n.rawResponse, _, o, s, n), n.appliedParams = JSON.parse(JSON.stringify(e)), l;
|
|
3402
|
-
async function v(r) {
|
|
3403
|
-
let i = {
|
|
3404
|
-
...r,
|
|
3405
|
-
filter: JSON.stringify(r.filter)
|
|
3406
|
-
}, a = await m.get(n.url, {
|
|
3407
|
-
signal: t.signal,
|
|
3408
|
-
params: i,
|
|
3409
|
-
paramsSerializer: (e) => Pi.default.stringify(e, { skipNulls: !1 })
|
|
3410
|
-
});
|
|
3411
|
-
return n.appliedParams = JSON.parse(JSON.stringify(e)), n.rawResponse = structuredClone(a.data), a;
|
|
3412
|
-
}
|
|
3413
|
-
}
|
|
3414
|
-
function Li(e, t = []) {
|
|
3415
|
-
let n = (e) => e && typeof e == "object" && !Array.isArray(e), r = n(e) ? e : {}, i = Array.isArray(t) ? t.filter((e) => typeof e == "string") : [], a = new Set(i), o = Rr(r, i), s = Object.fromEntries(Object.entries(r).filter(([e]) => e !== "filter" && !a.has(e))), c = n(r.filter) ? r.filter : null;
|
|
3416
|
-
if (!c) return {
|
|
3417
|
-
remote: o,
|
|
3418
|
-
local: s
|
|
3419
|
-
};
|
|
3420
|
-
let l = {}, u = {};
|
|
3421
|
-
if (n(c.where)) {
|
|
3422
|
-
let e = Rr(c.where, i), t = Object.fromEntries(Object.entries(c.where).filter(([e]) => !a.has(e)));
|
|
3423
|
-
Object.keys(t).length && (l.where = t), Object.keys(e).length && (u.where = e);
|
|
3424
|
-
}
|
|
3425
|
-
if (Array.isArray(c.order)) {
|
|
3426
|
-
let e = (e) => {
|
|
3427
|
-
if (typeof e != "string") return !1;
|
|
3428
|
-
let t = e.toLowerCase();
|
|
3429
|
-
return i.some((e) => {
|
|
3430
|
-
let n = e.toLowerCase();
|
|
3431
|
-
return t === n || t.startsWith(`${n} `) || t.includes(`.${n} `);
|
|
3432
|
-
});
|
|
3433
|
-
}, t = c.order.filter(e), n = c.order.filter((t) => !e(t));
|
|
3434
|
-
n.length && (l.order = n), t.length && (u.order = t);
|
|
3435
|
-
}
|
|
3436
|
-
return Object.assign(u, Object.fromEntries(Object.entries(c).filter(([e]) => e !== "where" && e !== "order"))), Object.keys(l).length && (s.filter = l), Object.keys(u).length && (o.filter = u), {
|
|
3437
|
-
remote: o,
|
|
3438
|
-
local: s
|
|
3439
|
-
};
|
|
3440
|
-
}
|
|
3441
|
-
function Ri(e, t, n, r, a) {
|
|
3442
|
-
let { isStackableParams: o, nonStackableParams: s, stackedParams: c } = a, l = r ? e[r] : e ?? a.data, u = JSON.parse(JSON.stringify(t)), d = u?.filter, f = d?.order, p = d?.where, m = JSON.parse(JSON.stringify(u));
|
|
3443
|
-
delete m.filter;
|
|
3444
|
-
let h = Object.keys(p ?? {}).length, g = Object.keys(m ?? {}).length, _ = o && c.length;
|
|
3445
|
-
if (h || g || _) {
|
|
3446
|
-
let e = [];
|
|
3447
|
-
p && r(p, e), m && r(m, e), o && t(a, e);
|
|
3448
|
-
function t(e, t) {
|
|
3449
|
-
t.push(...e.stackedParams.filter((e) => !t.find((t) => t.column === e.column && t.operator === e.operator && !Array.isArray(e.value) && Vr(t.value, e.value)))), o && (e.stackedParams = t.filter((e) => !s?.includes(e.column)));
|
|
3450
|
-
}
|
|
3451
|
-
function r(e, t) {
|
|
3452
|
-
for (let n in e) {
|
|
3453
|
-
let r = e[n] && typeof e[n] == "object" && !Array.isArray(e[n]), i = r ? Object.keys(e[n])[0] : Fi, a = r ? e[n][i] : e[n];
|
|
3454
|
-
t.push({
|
|
3455
|
-
column: n,
|
|
3456
|
-
operator: i,
|
|
3457
|
-
value: a
|
|
3458
|
-
});
|
|
3459
|
-
}
|
|
3460
|
-
}
|
|
3461
|
-
function c(e, t) {
|
|
3462
|
-
let n;
|
|
3463
|
-
for (let r of t) {
|
|
3464
|
-
try {
|
|
3465
|
-
let t = i?.[r.operator]?.localEval;
|
|
3466
|
-
n = t ? t(e[r.column], r.value) : !1;
|
|
3467
|
-
} catch (n) {
|
|
3468
|
-
return console.error("fetchLocalData filter comparison error", {
|
|
3469
|
-
row: e,
|
|
3470
|
-
filter: r,
|
|
3471
|
-
filters: t,
|
|
3472
|
-
error: n
|
|
3473
|
-
}), !1;
|
|
3474
|
-
}
|
|
3475
|
-
if (!n) break;
|
|
3476
|
-
}
|
|
3477
|
-
return n;
|
|
3478
|
-
}
|
|
3479
|
-
let u = n ? (t) => n(t, e, c) : (t) => c(t, e);
|
|
3480
|
-
l = l.filter(u);
|
|
3481
|
-
}
|
|
3482
|
-
if (f) {
|
|
3483
|
-
let e = zi(f);
|
|
3484
|
-
l = Ui(l, e);
|
|
3485
|
-
}
|
|
3486
|
-
let v;
|
|
3487
|
-
return v = r ? {
|
|
3488
|
-
...e,
|
|
3489
|
-
[r]: l
|
|
3490
|
-
} : { data: l }, v;
|
|
3491
|
-
}
|
|
3492
|
-
function zi(e) {
|
|
3493
|
-
return typeof e == "string" && (e = e.split(",")), e.map((e) => {
|
|
3494
|
-
let [t, n = "asc"] = e.trim().split(/\s+/);
|
|
3495
|
-
return {
|
|
3496
|
-
key: t,
|
|
3497
|
-
order: n.toLowerCase() === "desc" ? "desc" : "asc"
|
|
3498
|
-
};
|
|
3499
|
-
});
|
|
3500
|
-
}
|
|
3501
|
-
function Bi(e) {
|
|
3502
|
-
if (e == null) return null;
|
|
3503
|
-
if (e instanceof Date) return e.getTime();
|
|
3504
|
-
if (typeof e == "boolean") return +!!e;
|
|
3505
|
-
if (typeof e == "number") return e;
|
|
3506
|
-
if (typeof e == "string") {
|
|
3507
|
-
let t = Number(e);
|
|
3508
|
-
if (!isNaN(t) && e.trim() !== "") return t;
|
|
3509
|
-
if (Vi(e)) {
|
|
3510
|
-
let t = new Date(e);
|
|
3511
|
-
if (!isNaN(t.getTime())) return t.getTime();
|
|
3512
|
-
}
|
|
3513
|
-
return e.toLowerCase();
|
|
3514
|
-
}
|
|
3515
|
-
return e;
|
|
3516
|
-
}
|
|
3517
|
-
function Vi(e) {
|
|
3518
|
-
return /^(\d{4}-\d{2}-\d{2})([T ][\d:.+-]+(?:Z)?)?$/.test(e.trim());
|
|
3519
|
-
}
|
|
3520
|
-
function Hi(e, t, n) {
|
|
3521
|
-
let r = n === "asc" ? 1 : -1, i = Bi(e), a = Bi(t);
|
|
3522
|
-
return i == null && a == null ? 0 : i == null ? 1 : a == null ? -1 : typeof i == "string" && typeof a == "string" ? r * i.localeCompare(a) : i > a ? r : i < a ? -r : 0;
|
|
3523
|
-
}
|
|
3524
|
-
function Ui(e, t) {
|
|
3525
|
-
return [...e].sort((e, n) => {
|
|
3526
|
-
for (let { key: r, order: i } of t) {
|
|
3527
|
-
let t = Hi(e[r], n[r], i);
|
|
3528
|
-
if (t !== 0) return t;
|
|
3529
|
-
}
|
|
3530
|
-
return 0;
|
|
3531
|
-
});
|
|
3532
|
-
}
|
|
3533
|
-
//#endregion
|
|
3534
|
-
//#region lib/composables/useState.js
|
|
3535
|
-
var Wi = u({}), Gi = u({
|
|
3536
|
-
id: 0,
|
|
3537
|
-
name: "",
|
|
3538
|
-
nickname: "",
|
|
3539
|
-
lang: "",
|
|
3540
|
-
darkMode: null,
|
|
3541
|
-
companyFk: null,
|
|
3542
|
-
warehouseFk: null,
|
|
3543
|
-
centralWeekPlacement: null,
|
|
3544
|
-
yearScope: null
|
|
3545
|
-
});
|
|
3546
|
-
sessionStorage.getItem("user") && (Gi.value = JSON.parse(sessionStorage.getItem("user")));
|
|
3547
|
-
var Ki = u([]), qi = u([]), Ji = u(!0), Yi = u(!1);
|
|
3548
|
-
function Xi() {
|
|
3549
|
-
function e() {
|
|
3550
|
-
return o(() => Gi.value);
|
|
3551
|
-
}
|
|
3552
|
-
function t(e) {
|
|
3553
|
-
let t = {
|
|
3554
|
-
...JSON.parse(sessionStorage.getItem("user")),
|
|
3555
|
-
...e
|
|
3556
|
-
};
|
|
3557
|
-
return sessionStorage.setItem("user", JSON.stringify(t)), Gi.value = t, t;
|
|
3558
|
-
}
|
|
3559
|
-
function n() {
|
|
3560
|
-
return o(() => Ki.value);
|
|
3561
|
-
}
|
|
3562
|
-
function r(e) {
|
|
3563
|
-
Ki.value = e;
|
|
3564
|
-
}
|
|
3565
|
-
function i() {
|
|
3566
|
-
return o(() => qi.value);
|
|
3567
|
-
}
|
|
3568
|
-
function a(e) {
|
|
3569
|
-
qi.value = e;
|
|
3570
|
-
}
|
|
3571
|
-
function s(e, t) {
|
|
3572
|
-
Wi.value[e] = u(t);
|
|
3573
|
-
}
|
|
3574
|
-
function c(e) {
|
|
3575
|
-
return Wi.value[e];
|
|
3576
|
-
}
|
|
3577
|
-
function l(e) {
|
|
3578
|
-
delete Wi.value[e];
|
|
3579
|
-
}
|
|
3580
|
-
return {
|
|
3581
|
-
getUser: e,
|
|
3582
|
-
setUser: t,
|
|
3583
|
-
getRoles: n,
|
|
3584
|
-
setRoles: r,
|
|
3585
|
-
getAcls: i,
|
|
3586
|
-
setAcls: a,
|
|
3587
|
-
set: s,
|
|
3588
|
-
get: c,
|
|
3589
|
-
unset: l,
|
|
3590
|
-
drawer: Ji,
|
|
3591
|
-
headerMounted: Yi
|
|
3592
|
-
};
|
|
3593
|
-
}
|
|
3594
|
-
//#endregion
|
|
3595
|
-
export { O as _, Rr as a, Vr as c, Fr as d, Ir as f, k as g, j as h, Ii as i, Hr as l, M as m, Ri as n, zr as o, P as p, Li as r, Br as s, Xi as t, Lr as u, D as v, w as y };
|