@kong-ui-public/entities-plugins 9.247.0 → 9.247.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-plugins.es.js +3236 -3229
- package/dist/entities-plugins.umd.js +86 -86
- package/dist/filler/cypress/index.js +1 -1
- package/dist/filler/{field-walker-BKYEagiA.js → field-walker-B9V32Dwy.js} +913 -906
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/composables/form-context.d.ts.map +1 -1
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/utils.d.ts +19 -0
- package/dist/filler/packages/entities/entities-plugins/src/components/free-form/shared/utils.d.ts.map +1 -1
- package/dist/filler/playwright/index.js +1 -1
- package/dist/freeform/index.js +742 -735
- package/dist/types/components/free-form/shared/composables/form-context.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/utils.d.ts +19 -0
- package/dist/types/components/free-form/shared/utils.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { get as
|
|
1
|
+
import { get as Ds, isEqual as nn, omit as so, cloneDeep as ss, isFunction as is } from "lodash-es";
|
|
2
2
|
const wc = {
|
|
3
3
|
// Common
|
|
4
4
|
field: (t) => `[data-testid="ff-${t}"]`,
|
|
@@ -40,29 +40,29 @@ function io(t) {
|
|
|
40
40
|
for (const n of t.split(",")) e[n] = 1;
|
|
41
41
|
return (n) => n in e;
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const Dt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
44
44
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
45
|
-
const
|
|
45
|
+
const ot = () => {
|
|
46
46
|
}, oo = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
|
|
47
|
-
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), ao = (t) => t.startsWith("onUpdate:"), Ne = Object.assign, lo = Object.prototype.hasOwnProperty,
|
|
47
|
+
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), ao = (t) => t.startsWith("onUpdate:"), Ne = Object.assign, lo = Object.prototype.hasOwnProperty, er = (t, e) => lo.call(t, e), W = Array.isArray, at = (t) => mn(t) === "[object Map]", co = (t) => mn(t) === "[object Set]", Z = (t) => typeof t == "function", Ie = (t) => typeof t == "string", qe = (t) => typeof t == "symbol", ie = (t) => t !== null && typeof t == "object", uo = (t) => (ie(t) || Z(t)) && Z(t.then) && Z(t.catch), fo = Object.prototype.toString, mn = (t) => fo.call(t), Cs = (t) => mn(t).slice(8, -1), po = (t) => mn(t) === "[object Object]", _n = (t) => Ie(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, Ms = (t) => {
|
|
48
48
|
const e = /* @__PURE__ */ Object.create(null);
|
|
49
49
|
return ((n) => e[n] || (e[n] = t(n)));
|
|
50
50
|
}, $s = Ms((t) => t.charAt(0).toUpperCase() + t.slice(1)), ho = Ms(
|
|
51
51
|
(t) => t ? `on${$s(t)}` : ""
|
|
52
|
-
),
|
|
53
|
-
let
|
|
54
|
-
const
|
|
55
|
-
function
|
|
52
|
+
), xe = (t, e) => !Object.is(t, e);
|
|
53
|
+
let os;
|
|
54
|
+
const bn = () => os || (os = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
55
|
+
function fr(t) {
|
|
56
56
|
if (W(t)) {
|
|
57
57
|
const e = {};
|
|
58
58
|
for (let n = 0; n < t.length; n++) {
|
|
59
|
-
const r = t[n], s = Ie(r) ? bo(r) :
|
|
59
|
+
const r = t[n], s = Ie(r) ? bo(r) : fr(r);
|
|
60
60
|
if (s)
|
|
61
61
|
for (const i in s)
|
|
62
62
|
e[i] = s[i];
|
|
63
63
|
}
|
|
64
64
|
return e;
|
|
65
|
-
} else if (Ie(t) ||
|
|
65
|
+
} else if (Ie(t) || ie(t))
|
|
66
66
|
return t;
|
|
67
67
|
}
|
|
68
68
|
const go = /;(?![^(]*\))/g, mo = /:([^]+)/, _o = /\/\*[^]*?\*\//g;
|
|
@@ -75,16 +75,16 @@ function bo(t) {
|
|
|
75
75
|
}
|
|
76
76
|
}), e;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function pr(t) {
|
|
79
79
|
let e = "";
|
|
80
80
|
if (Ie(t))
|
|
81
81
|
e = t;
|
|
82
82
|
else if (W(t))
|
|
83
83
|
for (let n = 0; n < t.length; n++) {
|
|
84
|
-
const r =
|
|
84
|
+
const r = pr(t[n]);
|
|
85
85
|
r && (e += r + " ");
|
|
86
86
|
}
|
|
87
|
-
else if (
|
|
87
|
+
else if (ie(t))
|
|
88
88
|
for (const n in t)
|
|
89
89
|
t[n] && (e += n + " ");
|
|
90
90
|
return e.trim();
|
|
@@ -97,7 +97,7 @@ function Ps() {
|
|
|
97
97
|
return yo;
|
|
98
98
|
}
|
|
99
99
|
let M;
|
|
100
|
-
const
|
|
100
|
+
const Un = /* @__PURE__ */ new WeakSet();
|
|
101
101
|
class wo {
|
|
102
102
|
constructor(e) {
|
|
103
103
|
this.fn = e, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0;
|
|
@@ -106,7 +106,7 @@ class wo {
|
|
|
106
106
|
this.flags |= 64;
|
|
107
107
|
}
|
|
108
108
|
resume() {
|
|
109
|
-
this.flags & 64 && (this.flags &= -65,
|
|
109
|
+
this.flags & 64 && (this.flags &= -65, Un.has(this) && (Un.delete(this), this.trigger()));
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
112
112
|
* @internal
|
|
@@ -117,7 +117,7 @@ class wo {
|
|
|
117
117
|
run() {
|
|
118
118
|
if (!(this.flags & 1))
|
|
119
119
|
return this.fn();
|
|
120
|
-
this.flags |= 2,
|
|
120
|
+
this.flags |= 2, as(this), js(this);
|
|
121
121
|
const e = M, n = be;
|
|
122
122
|
M = this, be = !0;
|
|
123
123
|
try {
|
|
@@ -131,48 +131,48 @@ class wo {
|
|
|
131
131
|
stop() {
|
|
132
132
|
if (this.flags & 1) {
|
|
133
133
|
for (let e = this.deps; e; e = e.nextDep)
|
|
134
|
-
|
|
135
|
-
this.deps = this.depsTail = void 0,
|
|
134
|
+
gr(e);
|
|
135
|
+
this.deps = this.depsTail = void 0, as(this), this.onStop && this.onStop(), this.flags &= -2;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
trigger() {
|
|
139
|
-
this.flags & 64 ?
|
|
139
|
+
this.flags & 64 ? Un.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
142
142
|
* @internal
|
|
143
143
|
*/
|
|
144
144
|
runIfDirty() {
|
|
145
|
-
|
|
145
|
+
tr(this) && this.run();
|
|
146
146
|
}
|
|
147
147
|
get dirty() {
|
|
148
|
-
return
|
|
148
|
+
return tr(this);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
let Ls = 0,
|
|
151
|
+
let Ls = 0, Rt, Ot;
|
|
152
152
|
function zs(t, e = !1) {
|
|
153
153
|
if (t.flags |= 8, e) {
|
|
154
|
-
t.next =
|
|
154
|
+
t.next = Ot, Ot = t;
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
|
-
t.next =
|
|
157
|
+
t.next = Rt, Rt = t;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function hr() {
|
|
160
160
|
Ls++;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function dr() {
|
|
163
163
|
if (--Ls > 0)
|
|
164
164
|
return;
|
|
165
|
-
if (
|
|
166
|
-
let e =
|
|
167
|
-
for (
|
|
165
|
+
if (Ot) {
|
|
166
|
+
let e = Ot;
|
|
167
|
+
for (Ot = void 0; e; ) {
|
|
168
168
|
const n = e.next;
|
|
169
169
|
e.next = void 0, e.flags &= -9, e = n;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
let t;
|
|
173
|
-
for (;
|
|
174
|
-
let e =
|
|
175
|
-
for (
|
|
173
|
+
for (; Rt; ) {
|
|
174
|
+
let e = Rt;
|
|
175
|
+
for (Rt = void 0; e; ) {
|
|
176
176
|
const n = e.next;
|
|
177
177
|
if (e.next = void 0, e.flags &= -9, e.flags & 1)
|
|
178
178
|
try {
|
|
@@ -193,18 +193,18 @@ function Fs(t) {
|
|
|
193
193
|
let e, n = t.depsTail, r = n;
|
|
194
194
|
for (; r; ) {
|
|
195
195
|
const s = r.prevDep;
|
|
196
|
-
r.version === -1 ? (r === n && (n = s),
|
|
196
|
+
r.version === -1 ? (r === n && (n = s), gr(r), Eo(r)) : e = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = s;
|
|
197
197
|
}
|
|
198
198
|
t.deps = e, t.depsTail = n;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function tr(t) {
|
|
201
201
|
for (let e = t.deps; e; e = e.nextDep)
|
|
202
202
|
if (e.dep.version !== e.version || e.dep.computed && (Vs(e.dep.computed) || e.dep.version !== e.version))
|
|
203
203
|
return !0;
|
|
204
204
|
return !!t._dirty;
|
|
205
205
|
}
|
|
206
206
|
function Vs(t) {
|
|
207
|
-
if (t.flags & 4 && !(t.flags & 16) || (t.flags &= -17, t.globalVersion ===
|
|
207
|
+
if (t.flags & 4 && !(t.flags & 16) || (t.flags &= -17, t.globalVersion === Ct) || (t.globalVersion = Ct, !t.isSSR && t.flags & 128 && (!t.deps && !t._dirty || !tr(t))))
|
|
208
208
|
return;
|
|
209
209
|
t.flags |= 2;
|
|
210
210
|
const e = t.dep, n = M, r = be;
|
|
@@ -212,19 +212,19 @@ function Vs(t) {
|
|
|
212
212
|
try {
|
|
213
213
|
js(t);
|
|
214
214
|
const s = t.fn(t._value);
|
|
215
|
-
(e.version === 0 ||
|
|
215
|
+
(e.version === 0 || xe(s, t._value)) && (t.flags |= 128, t._value = s, e.version++);
|
|
216
216
|
} catch (s) {
|
|
217
217
|
throw e.version++, s;
|
|
218
218
|
} finally {
|
|
219
219
|
M = n, be = r, Fs(t), t.flags &= -3;
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function gr(t, e = !1) {
|
|
223
223
|
const { dep: n, prevSub: r, nextSub: s } = t;
|
|
224
224
|
if (r && (r.nextSub = s, t.prevSub = void 0), s && (s.prevSub = r, t.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === t && (n.subsHead = s), n.subs === t && (n.subs = r, !r && n.computed)) {
|
|
225
225
|
n.computed.flags &= -5;
|
|
226
226
|
for (let i = n.computed.deps; i; i = i.nextDep)
|
|
227
|
-
|
|
227
|
+
gr(i, !0);
|
|
228
228
|
}
|
|
229
229
|
!e && !--n.sc && n.map && n.map.delete(n.key);
|
|
230
230
|
}
|
|
@@ -234,14 +234,14 @@ function Eo(t) {
|
|
|
234
234
|
}
|
|
235
235
|
let be = !0;
|
|
236
236
|
const Hs = [];
|
|
237
|
-
function
|
|
237
|
+
function pt() {
|
|
238
238
|
Hs.push(be), be = !1;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function ht() {
|
|
241
241
|
const t = Hs.pop();
|
|
242
242
|
be = t === void 0 ? !0 : t;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function as(t) {
|
|
245
245
|
const { cleanup: e } = t;
|
|
246
246
|
if (t.cleanup = void 0, e) {
|
|
247
247
|
const n = M;
|
|
@@ -253,13 +253,13 @@ function ls(t) {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
|
-
let
|
|
256
|
+
let Ct = 0;
|
|
257
257
|
class To {
|
|
258
258
|
constructor(e, n) {
|
|
259
259
|
this.sub = e, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
class
|
|
262
|
+
class mr {
|
|
263
263
|
// TODO isolatedDeclarations "__v_skip"
|
|
264
264
|
constructor(e) {
|
|
265
265
|
this.computed = e, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
|
|
@@ -284,10 +284,10 @@ class yr {
|
|
|
284
284
|
), n;
|
|
285
285
|
}
|
|
286
286
|
trigger(e) {
|
|
287
|
-
this.version++,
|
|
287
|
+
this.version++, Ct++, this.notify(e);
|
|
288
288
|
}
|
|
289
289
|
notify(e) {
|
|
290
|
-
|
|
290
|
+
hr();
|
|
291
291
|
try {
|
|
292
292
|
if (process.env.NODE_ENV !== "production")
|
|
293
293
|
for (let n = this.subsHead; n; n = n.nextSub)
|
|
@@ -302,7 +302,7 @@ class yr {
|
|
|
302
302
|
for (let n = this.subs; n; n = n.prevSub)
|
|
303
303
|
n.sub.notify() && n.sub.dep.notify();
|
|
304
304
|
} finally {
|
|
305
|
-
|
|
305
|
+
dr();
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}
|
|
@@ -318,29 +318,29 @@ function Us(t) {
|
|
|
318
318
|
n !== t && (t.prevSub = n, n && (n.nextSub = t)), process.env.NODE_ENV !== "production" && t.dep.subsHead === void 0 && (t.dep.subsHead = t), t.dep.subs = t;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
const
|
|
321
|
+
const on = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ Symbol(
|
|
322
322
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
323
|
-
),
|
|
323
|
+
), nr = /* @__PURE__ */ Symbol(
|
|
324
324
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
325
|
-
),
|
|
325
|
+
), Mt = /* @__PURE__ */ Symbol(
|
|
326
326
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
327
327
|
);
|
|
328
328
|
function Q(t, e, n) {
|
|
329
329
|
if (be && M) {
|
|
330
|
-
let r =
|
|
331
|
-
r ||
|
|
330
|
+
let r = on.get(t);
|
|
331
|
+
r || on.set(t, r = /* @__PURE__ */ new Map());
|
|
332
332
|
let s = r.get(n);
|
|
333
|
-
s || (r.set(n, s = new
|
|
333
|
+
s || (r.set(n, s = new mr()), s.map = r, s.key = n), process.env.NODE_ENV !== "production" ? s.track({
|
|
334
334
|
target: t,
|
|
335
335
|
type: e,
|
|
336
336
|
key: n
|
|
337
337
|
}) : s.track();
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
const o =
|
|
340
|
+
function ze(t, e, n, r, s, i) {
|
|
341
|
+
const o = on.get(t);
|
|
342
342
|
if (!o) {
|
|
343
|
-
|
|
343
|
+
Ct++;
|
|
344
344
|
return;
|
|
345
345
|
}
|
|
346
346
|
const l = (c) => {
|
|
@@ -353,56 +353,56 @@ function Fe(t, e, n, r, s, i) {
|
|
|
353
353
|
oldTarget: i
|
|
354
354
|
}) : c.trigger());
|
|
355
355
|
};
|
|
356
|
-
if (
|
|
356
|
+
if (hr(), e === "clear")
|
|
357
357
|
o.forEach(l);
|
|
358
358
|
else {
|
|
359
|
-
const c = W(t), p = c &&
|
|
359
|
+
const c = W(t), p = c && _n(n);
|
|
360
360
|
if (c && n === "length") {
|
|
361
361
|
const h = Number(r);
|
|
362
362
|
o.forEach((u, d) => {
|
|
363
|
-
(d === "length" || d ===
|
|
363
|
+
(d === "length" || d === Mt || !qe(d) && d >= h) && l(u);
|
|
364
364
|
});
|
|
365
365
|
} else
|
|
366
|
-
switch ((n !== void 0 || o.has(void 0)) && l(o.get(n)), p && l(o.get(
|
|
366
|
+
switch ((n !== void 0 || o.has(void 0)) && l(o.get(n)), p && l(o.get(Mt)), e) {
|
|
367
367
|
case "add":
|
|
368
|
-
c ? p && l(o.get("length")) : (l(o.get(
|
|
368
|
+
c ? p && l(o.get("length")) : (l(o.get(We)), at(t) && l(o.get(nr)));
|
|
369
369
|
break;
|
|
370
370
|
case "delete":
|
|
371
|
-
c || (l(o.get(
|
|
371
|
+
c || (l(o.get(We)), at(t) && l(o.get(nr)));
|
|
372
372
|
break;
|
|
373
373
|
case "set":
|
|
374
|
-
|
|
374
|
+
at(t) && l(o.get(We));
|
|
375
375
|
break;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
|
|
378
|
+
dr();
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
const n =
|
|
380
|
+
function ko(t, e) {
|
|
381
|
+
const n = on.get(t);
|
|
382
382
|
return n && n.get(e);
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function tt(t) {
|
|
385
385
|
const e = /* @__PURE__ */ N(t);
|
|
386
|
-
return e === t ? e : (Q(e, "iterate",
|
|
386
|
+
return e === t ? e : (Q(e, "iterate", Mt), /* @__PURE__ */ oe(t) ? e : e.map(De));
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
return Q(t = /* @__PURE__ */ N(t), "iterate",
|
|
388
|
+
function _r(t) {
|
|
389
|
+
return Q(t = /* @__PURE__ */ N(t), "iterate", Mt), t;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
return /* @__PURE__ */ ve(t) ?
|
|
391
|
+
function ke(t, e) {
|
|
392
|
+
return /* @__PURE__ */ ve(t) ? Pt(/* @__PURE__ */ lt(t) ? De(e) : e) : De(e);
|
|
393
393
|
}
|
|
394
|
-
const
|
|
394
|
+
const xo = {
|
|
395
395
|
__proto__: null,
|
|
396
396
|
[Symbol.iterator]() {
|
|
397
|
-
return
|
|
397
|
+
return Bn(this, Symbol.iterator, (t) => ke(this, t));
|
|
398
398
|
},
|
|
399
399
|
concat(...t) {
|
|
400
|
-
return
|
|
401
|
-
...t.map((e) => W(e) ?
|
|
400
|
+
return tt(this).concat(
|
|
401
|
+
...t.map((e) => W(e) ? tt(e) : e)
|
|
402
402
|
);
|
|
403
403
|
},
|
|
404
404
|
entries() {
|
|
405
|
-
return
|
|
405
|
+
return Bn(this, "entries", (t) => (t[1] = ke(this, t[1]), t));
|
|
406
406
|
},
|
|
407
407
|
every(t, e) {
|
|
408
408
|
return Re(this, "every", t, e, void 0, arguments);
|
|
@@ -413,7 +413,7 @@ const ko = {
|
|
|
413
413
|
"filter",
|
|
414
414
|
t,
|
|
415
415
|
e,
|
|
416
|
-
(n) => n.map((r) =>
|
|
416
|
+
(n) => n.map((r) => ke(this, r)),
|
|
417
417
|
arguments
|
|
418
418
|
);
|
|
419
419
|
},
|
|
@@ -423,7 +423,7 @@ const ko = {
|
|
|
423
423
|
"find",
|
|
424
424
|
t,
|
|
425
425
|
e,
|
|
426
|
-
(n) =>
|
|
426
|
+
(n) => ke(this, n),
|
|
427
427
|
arguments
|
|
428
428
|
);
|
|
429
429
|
},
|
|
@@ -436,7 +436,7 @@ const ko = {
|
|
|
436
436
|
"findLast",
|
|
437
437
|
t,
|
|
438
438
|
e,
|
|
439
|
-
(n) =>
|
|
439
|
+
(n) => ke(this, n),
|
|
440
440
|
arguments
|
|
441
441
|
);
|
|
442
442
|
},
|
|
@@ -448,109 +448,109 @@ const ko = {
|
|
|
448
448
|
return Re(this, "forEach", t, e, void 0, arguments);
|
|
449
449
|
},
|
|
450
450
|
includes(...t) {
|
|
451
|
-
return
|
|
451
|
+
return Wn(this, "includes", t);
|
|
452
452
|
},
|
|
453
453
|
indexOf(...t) {
|
|
454
|
-
return
|
|
454
|
+
return Wn(this, "indexOf", t);
|
|
455
455
|
},
|
|
456
456
|
join(t) {
|
|
457
|
-
return
|
|
457
|
+
return tt(this).join(t);
|
|
458
458
|
},
|
|
459
459
|
// keys() iterator only reads `length`, no optimization required
|
|
460
460
|
lastIndexOf(...t) {
|
|
461
|
-
return
|
|
461
|
+
return Wn(this, "lastIndexOf", t);
|
|
462
462
|
},
|
|
463
463
|
map(t, e) {
|
|
464
464
|
return Re(this, "map", t, e, void 0, arguments);
|
|
465
465
|
},
|
|
466
466
|
pop() {
|
|
467
|
-
return
|
|
467
|
+
return Et(this, "pop");
|
|
468
468
|
},
|
|
469
469
|
push(...t) {
|
|
470
|
-
return
|
|
470
|
+
return Et(this, "push", t);
|
|
471
471
|
},
|
|
472
472
|
reduce(t, ...e) {
|
|
473
|
-
return
|
|
473
|
+
return ls(this, "reduce", t, e);
|
|
474
474
|
},
|
|
475
475
|
reduceRight(t, ...e) {
|
|
476
|
-
return
|
|
476
|
+
return ls(this, "reduceRight", t, e);
|
|
477
477
|
},
|
|
478
478
|
shift() {
|
|
479
|
-
return
|
|
479
|
+
return Et(this, "shift");
|
|
480
480
|
},
|
|
481
481
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
482
482
|
some(t, e) {
|
|
483
483
|
return Re(this, "some", t, e, void 0, arguments);
|
|
484
484
|
},
|
|
485
485
|
splice(...t) {
|
|
486
|
-
return
|
|
486
|
+
return Et(this, "splice", t);
|
|
487
487
|
},
|
|
488
488
|
toReversed() {
|
|
489
|
-
return
|
|
489
|
+
return tt(this).toReversed();
|
|
490
490
|
},
|
|
491
491
|
toSorted(t) {
|
|
492
|
-
return
|
|
492
|
+
return tt(this).toSorted(t);
|
|
493
493
|
},
|
|
494
494
|
toSpliced(...t) {
|
|
495
|
-
return
|
|
495
|
+
return tt(this).toSpliced(...t);
|
|
496
496
|
},
|
|
497
497
|
unshift(...t) {
|
|
498
|
-
return
|
|
498
|
+
return Et(this, "unshift", t);
|
|
499
499
|
},
|
|
500
500
|
values() {
|
|
501
|
-
return
|
|
501
|
+
return Bn(this, "values", (t) => ke(this, t));
|
|
502
502
|
}
|
|
503
503
|
};
|
|
504
|
-
function
|
|
505
|
-
const r =
|
|
506
|
-
return r !== t && !/* @__PURE__ */
|
|
504
|
+
function Bn(t, e, n) {
|
|
505
|
+
const r = _r(t), s = r[e]();
|
|
506
|
+
return r !== t && !/* @__PURE__ */ oe(t) && (s._next = s.next, s.next = () => {
|
|
507
507
|
const i = s._next();
|
|
508
508
|
return i.done || (i.value = n(i.value)), i;
|
|
509
509
|
}), s;
|
|
510
510
|
}
|
|
511
511
|
const So = Array.prototype;
|
|
512
512
|
function Re(t, e, n, r, s, i) {
|
|
513
|
-
const o =
|
|
513
|
+
const o = _r(t), l = o !== t && !/* @__PURE__ */ oe(t), c = o[e];
|
|
514
514
|
if (c !== So[e]) {
|
|
515
515
|
const u = c.apply(t, i);
|
|
516
516
|
return l ? De(u) : u;
|
|
517
517
|
}
|
|
518
518
|
let p = n;
|
|
519
519
|
o !== t && (l ? p = function(u, d) {
|
|
520
|
-
return n.call(this,
|
|
520
|
+
return n.call(this, ke(t, u), d, t);
|
|
521
521
|
} : n.length > 2 && (p = function(u, d) {
|
|
522
522
|
return n.call(this, u, d, t);
|
|
523
523
|
}));
|
|
524
524
|
const h = c.call(o, p, r);
|
|
525
525
|
return l && s ? s(h) : h;
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
const s =
|
|
527
|
+
function ls(t, e, n, r) {
|
|
528
|
+
const s = _r(t), i = s !== t && !/* @__PURE__ */ oe(t);
|
|
529
529
|
let o = n, l = !1;
|
|
530
530
|
s !== t && (i ? (l = r.length === 0, o = function(p, h, u) {
|
|
531
|
-
return l && (l = !1, p =
|
|
531
|
+
return l && (l = !1, p = ke(t, p)), n.call(this, p, ke(t, h), u, t);
|
|
532
532
|
}) : n.length > 3 && (o = function(p, h, u) {
|
|
533
533
|
return n.call(this, p, h, u, t);
|
|
534
534
|
}));
|
|
535
535
|
const c = s[e](o, ...r);
|
|
536
|
-
return l ?
|
|
536
|
+
return l ? ke(t, c) : c;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Wn(t, e, n) {
|
|
539
539
|
const r = /* @__PURE__ */ N(t);
|
|
540
|
-
Q(r, "iterate",
|
|
540
|
+
Q(r, "iterate", Mt);
|
|
541
541
|
const s = r[e](...n);
|
|
542
|
-
return (s === -1 || s === !1) && /* @__PURE__ */
|
|
542
|
+
return (s === -1 || s === !1) && /* @__PURE__ */ $t(n[0]) ? (n[0] = /* @__PURE__ */ N(n[0]), r[e](...n)) : s;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
545
|
-
|
|
544
|
+
function Et(t, e, n = []) {
|
|
545
|
+
pt(), hr();
|
|
546
546
|
const r = (/* @__PURE__ */ N(t))[e].apply(t, n);
|
|
547
|
-
return
|
|
547
|
+
return dr(), ht(), r;
|
|
548
548
|
}
|
|
549
549
|
const vo = /* @__PURE__ */ io("__proto__,__v_isRef,__isVue"), Bs = new Set(
|
|
550
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(
|
|
550
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(qe)
|
|
551
551
|
);
|
|
552
552
|
function Ao(t) {
|
|
553
|
-
|
|
553
|
+
qe(t) || (t = String(t));
|
|
554
554
|
const e = /* @__PURE__ */ N(this);
|
|
555
555
|
return Q(e, "has", t), e.hasOwnProperty(t);
|
|
556
556
|
}
|
|
@@ -574,7 +574,7 @@ class Ws {
|
|
|
574
574
|
const o = W(e);
|
|
575
575
|
if (!s) {
|
|
576
576
|
let c;
|
|
577
|
-
if (o && (c =
|
|
577
|
+
if (o && (c = xo[n]))
|
|
578
578
|
return c;
|
|
579
579
|
if (n === "hasOwnProperty")
|
|
580
580
|
return Ao;
|
|
@@ -587,13 +587,13 @@ class Ws {
|
|
|
587
587
|
// its class methods
|
|
588
588
|
/* @__PURE__ */ ee(e) ? e : r
|
|
589
589
|
);
|
|
590
|
-
if ((
|
|
590
|
+
if ((qe(n) ? Bs.has(n) : vo(n)) || (s || Q(e, "get", n), i))
|
|
591
591
|
return l;
|
|
592
592
|
if (/* @__PURE__ */ ee(l)) {
|
|
593
|
-
const c = o &&
|
|
594
|
-
return s &&
|
|
593
|
+
const c = o && _n(n) ? l : l.value;
|
|
594
|
+
return s && ie(c) ? /* @__PURE__ */ an(c) : c;
|
|
595
595
|
}
|
|
596
|
-
return
|
|
596
|
+
return ie(l) ? s ? /* @__PURE__ */ an(l) : /* @__PURE__ */ yn(l) : l;
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
class Ro extends Ws {
|
|
@@ -602,36 +602,36 @@ class Ro extends Ws {
|
|
|
602
602
|
}
|
|
603
603
|
set(e, n, r, s) {
|
|
604
604
|
let i = e[n];
|
|
605
|
-
const o = W(e) &&
|
|
605
|
+
const o = W(e) && _n(n);
|
|
606
606
|
if (!this._isShallow) {
|
|
607
607
|
const p = /* @__PURE__ */ ve(i);
|
|
608
|
-
if (!/* @__PURE__ */
|
|
608
|
+
if (!/* @__PURE__ */ oe(r) && !/* @__PURE__ */ ve(r) && (i = /* @__PURE__ */ N(i), r = /* @__PURE__ */ N(r)), !o && /* @__PURE__ */ ee(i) && !/* @__PURE__ */ ee(r))
|
|
609
609
|
return p ? (process.env.NODE_ENV !== "production" && Se(
|
|
610
610
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
611
611
|
e[n]
|
|
612
612
|
), !0) : (i.value = r, !0);
|
|
613
613
|
}
|
|
614
|
-
const l = o ? Number(n) < e.length :
|
|
614
|
+
const l = o ? Number(n) < e.length : er(e, n), c = Reflect.set(
|
|
615
615
|
e,
|
|
616
616
|
n,
|
|
617
617
|
r,
|
|
618
618
|
/* @__PURE__ */ ee(e) ? e : s
|
|
619
619
|
);
|
|
620
|
-
return e === /* @__PURE__ */ N(s) && (l ?
|
|
620
|
+
return e === /* @__PURE__ */ N(s) && (l ? xe(r, i) && ze(e, "set", n, r, i) : ze(e, "add", n, r)), c;
|
|
621
621
|
}
|
|
622
622
|
deleteProperty(e, n) {
|
|
623
|
-
const r =
|
|
624
|
-
return i && r &&
|
|
623
|
+
const r = er(e, n), s = e[n], i = Reflect.deleteProperty(e, n);
|
|
624
|
+
return i && r && ze(e, "delete", n, void 0, s), i;
|
|
625
625
|
}
|
|
626
626
|
has(e, n) {
|
|
627
627
|
const r = Reflect.has(e, n);
|
|
628
|
-
return (!
|
|
628
|
+
return (!qe(n) || !Bs.has(n)) && Q(e, "has", n), r;
|
|
629
629
|
}
|
|
630
630
|
ownKeys(e) {
|
|
631
631
|
return Q(
|
|
632
632
|
e,
|
|
633
633
|
"iterate",
|
|
634
|
-
W(e) ? "length" :
|
|
634
|
+
W(e) ? "length" : We
|
|
635
635
|
), Reflect.ownKeys(e);
|
|
636
636
|
}
|
|
637
637
|
}
|
|
@@ -652,14 +652,14 @@ class Oo extends Ws {
|
|
|
652
652
|
), !0;
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
|
-
const No = /* @__PURE__ */ new Ro(), Io = /* @__PURE__ */ new Oo(),
|
|
655
|
+
const No = /* @__PURE__ */ new Ro(), Io = /* @__PURE__ */ new Oo(), rr = (t) => t, Zt = (t) => Reflect.getPrototypeOf(t);
|
|
656
656
|
function Do(t, e, n) {
|
|
657
657
|
return function(...r) {
|
|
658
|
-
const s = this.__v_raw, i = /* @__PURE__ */ N(s), o =
|
|
658
|
+
const s = this.__v_raw, i = /* @__PURE__ */ N(s), o = at(i), l = t === "entries" || t === Symbol.iterator && o, c = t === "keys" && o, p = s[t](...r), h = n ? rr : e ? Pt : De;
|
|
659
659
|
return !e && Q(
|
|
660
660
|
i,
|
|
661
661
|
"iterate",
|
|
662
|
-
c ?
|
|
662
|
+
c ? nr : We
|
|
663
663
|
), Ne(
|
|
664
664
|
// inheriting all iterator properties
|
|
665
665
|
Object.create(p),
|
|
@@ -676,7 +676,7 @@ function Do(t, e, n) {
|
|
|
676
676
|
);
|
|
677
677
|
};
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function Xt(t) {
|
|
680
680
|
return function(...e) {
|
|
681
681
|
if (process.env.NODE_ENV !== "production") {
|
|
682
682
|
const n = e[0] ? `on key "${e[0]}" ` : "";
|
|
@@ -692,8 +692,8 @@ function Co(t, e) {
|
|
|
692
692
|
const n = {
|
|
693
693
|
get(s) {
|
|
694
694
|
const i = this.__v_raw, o = /* @__PURE__ */ N(i), l = /* @__PURE__ */ N(s);
|
|
695
|
-
t || (
|
|
696
|
-
const { has: c } =
|
|
695
|
+
t || (xe(s, l) && Q(o, "get", s), Q(o, "get", l));
|
|
696
|
+
const { has: c } = Zt(o), p = e ? rr : t ? Pt : De;
|
|
697
697
|
if (c.call(o, s))
|
|
698
698
|
return p(i.get(s));
|
|
699
699
|
if (c.call(o, l))
|
|
@@ -702,47 +702,47 @@ function Co(t, e) {
|
|
|
702
702
|
},
|
|
703
703
|
get size() {
|
|
704
704
|
const s = this.__v_raw;
|
|
705
|
-
return !t && Q(/* @__PURE__ */ N(s), "iterate",
|
|
705
|
+
return !t && Q(/* @__PURE__ */ N(s), "iterate", We), s.size;
|
|
706
706
|
},
|
|
707
707
|
has(s) {
|
|
708
708
|
const i = this.__v_raw, o = /* @__PURE__ */ N(i), l = /* @__PURE__ */ N(s);
|
|
709
|
-
return t || (
|
|
709
|
+
return t || (xe(s, l) && Q(o, "has", s), Q(o, "has", l)), s === l ? i.has(s) : i.has(s) || i.has(l);
|
|
710
710
|
},
|
|
711
711
|
forEach(s, i) {
|
|
712
|
-
const o = this, l = o.__v_raw, c = /* @__PURE__ */ N(l), p = e ?
|
|
713
|
-
return !t && Q(c, "iterate",
|
|
712
|
+
const o = this, l = o.__v_raw, c = /* @__PURE__ */ N(l), p = e ? rr : t ? Pt : De;
|
|
713
|
+
return !t && Q(c, "iterate", We), l.forEach((h, u) => s.call(i, p(h), p(u), o));
|
|
714
714
|
}
|
|
715
715
|
};
|
|
716
716
|
return Ne(
|
|
717
717
|
n,
|
|
718
718
|
t ? {
|
|
719
|
-
add:
|
|
720
|
-
set:
|
|
721
|
-
delete:
|
|
722
|
-
clear:
|
|
719
|
+
add: Xt("add"),
|
|
720
|
+
set: Xt("set"),
|
|
721
|
+
delete: Xt("delete"),
|
|
722
|
+
clear: Xt("clear")
|
|
723
723
|
} : {
|
|
724
724
|
add(s) {
|
|
725
|
-
const i = /* @__PURE__ */ N(this), o =
|
|
726
|
-
return o.has.call(i, c) ||
|
|
725
|
+
const i = /* @__PURE__ */ N(this), o = Zt(i), l = /* @__PURE__ */ N(s), c = !e && !/* @__PURE__ */ oe(s) && !/* @__PURE__ */ ve(s) ? l : s;
|
|
726
|
+
return o.has.call(i, c) || xe(s, c) && o.has.call(i, s) || xe(l, c) && o.has.call(i, l) || (i.add(c), ze(i, "add", c, c)), this;
|
|
727
727
|
},
|
|
728
728
|
set(s, i) {
|
|
729
|
-
!e && !/* @__PURE__ */
|
|
730
|
-
const o = /* @__PURE__ */ N(this), { has: l, get: c } =
|
|
729
|
+
!e && !/* @__PURE__ */ oe(i) && !/* @__PURE__ */ ve(i) && (i = /* @__PURE__ */ N(i));
|
|
730
|
+
const o = /* @__PURE__ */ N(this), { has: l, get: c } = Zt(o);
|
|
731
731
|
let p = l.call(o, s);
|
|
732
|
-
p ? process.env.NODE_ENV !== "production" &&
|
|
732
|
+
p ? process.env.NODE_ENV !== "production" && cs(o, l, s) : (s = /* @__PURE__ */ N(s), p = l.call(o, s));
|
|
733
733
|
const h = c.call(o, s);
|
|
734
|
-
return o.set(s, i), p ?
|
|
734
|
+
return o.set(s, i), p ? xe(i, h) && ze(o, "set", s, i, h) : ze(o, "add", s, i), this;
|
|
735
735
|
},
|
|
736
736
|
delete(s) {
|
|
737
|
-
const i = /* @__PURE__ */ N(this), { has: o, get: l } =
|
|
737
|
+
const i = /* @__PURE__ */ N(this), { has: o, get: l } = Zt(i);
|
|
738
738
|
let c = o.call(i, s);
|
|
739
|
-
c ? process.env.NODE_ENV !== "production" &&
|
|
739
|
+
c ? process.env.NODE_ENV !== "production" && cs(i, o, s) : (s = /* @__PURE__ */ N(s), c = o.call(i, s));
|
|
740
740
|
const p = l ? l.call(i, s) : void 0, h = i.delete(s);
|
|
741
|
-
return c &&
|
|
741
|
+
return c && ze(i, "delete", s, void 0, p), h;
|
|
742
742
|
},
|
|
743
743
|
clear() {
|
|
744
|
-
const s = /* @__PURE__ */ N(this), i = s.size !== 0, o = process.env.NODE_ENV !== "production" ?
|
|
745
|
-
return i &&
|
|
744
|
+
const s = /* @__PURE__ */ N(this), i = s.size !== 0, o = process.env.NODE_ENV !== "production" ? at(s) ? new Map(s) : new Set(s) : void 0, l = s.clear();
|
|
745
|
+
return i && ze(
|
|
746
746
|
s,
|
|
747
747
|
"clear",
|
|
748
748
|
void 0,
|
|
@@ -763,7 +763,7 @@ function Co(t, e) {
|
|
|
763
763
|
function Gs(t, e) {
|
|
764
764
|
const n = Co(t, e);
|
|
765
765
|
return (r, s, i) => s === "__v_isReactive" ? !t : s === "__v_isReadonly" ? t : s === "__v_raw" ? r : Reflect.get(
|
|
766
|
-
|
|
766
|
+
er(n, s) && s in r ? n : r,
|
|
767
767
|
s,
|
|
768
768
|
i
|
|
769
769
|
);
|
|
@@ -773,7 +773,7 @@ const Mo = {
|
|
|
773
773
|
}, $o = {
|
|
774
774
|
get: /* @__PURE__ */ Gs(!0, !1)
|
|
775
775
|
};
|
|
776
|
-
function
|
|
776
|
+
function cs(t, e, n) {
|
|
777
777
|
const r = /* @__PURE__ */ N(n);
|
|
778
778
|
if (r !== n && e.call(t, r)) {
|
|
779
779
|
const s = Cs(t);
|
|
@@ -798,7 +798,7 @@ function zo(t) {
|
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
800
|
// @__NO_SIDE_EFFECTS__
|
|
801
|
-
function
|
|
801
|
+
function yn(t) {
|
|
802
802
|
return /* @__PURE__ */ ve(t) ? t : Ys(
|
|
803
803
|
t,
|
|
804
804
|
!1,
|
|
@@ -808,7 +808,7 @@ function wn(t) {
|
|
|
808
808
|
);
|
|
809
809
|
}
|
|
810
810
|
// @__NO_SIDE_EFFECTS__
|
|
811
|
-
function
|
|
811
|
+
function an(t) {
|
|
812
812
|
return Ys(
|
|
813
813
|
t,
|
|
814
814
|
!0,
|
|
@@ -818,7 +818,7 @@ function ln(t) {
|
|
|
818
818
|
);
|
|
819
819
|
}
|
|
820
820
|
function Ys(t, e, n, r, s) {
|
|
821
|
-
if (!
|
|
821
|
+
if (!ie(t))
|
|
822
822
|
return process.env.NODE_ENV !== "production" && Se(
|
|
823
823
|
`value cannot be made ${e ? "readonly" : "reactive"}: ${String(
|
|
824
824
|
t
|
|
@@ -839,19 +839,19 @@ function Ys(t, e, n, r, s) {
|
|
|
839
839
|
return s.set(t, l), l;
|
|
840
840
|
}
|
|
841
841
|
// @__NO_SIDE_EFFECTS__
|
|
842
|
-
function
|
|
843
|
-
return /* @__PURE__ */ ve(t) ? /* @__PURE__ */
|
|
842
|
+
function lt(t) {
|
|
843
|
+
return /* @__PURE__ */ ve(t) ? /* @__PURE__ */ lt(t.__v_raw) : !!(t && t.__v_isReactive);
|
|
844
844
|
}
|
|
845
845
|
// @__NO_SIDE_EFFECTS__
|
|
846
846
|
function ve(t) {
|
|
847
847
|
return !!(t && t.__v_isReadonly);
|
|
848
848
|
}
|
|
849
849
|
// @__NO_SIDE_EFFECTS__
|
|
850
|
-
function
|
|
850
|
+
function oe(t) {
|
|
851
851
|
return !!(t && t.__v_isShallow);
|
|
852
852
|
}
|
|
853
853
|
// @__NO_SIDE_EFFECTS__
|
|
854
|
-
function
|
|
854
|
+
function $t(t) {
|
|
855
855
|
return t ? !!t.__v_raw : !1;
|
|
856
856
|
}
|
|
857
857
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -859,13 +859,13 @@ function N(t) {
|
|
|
859
859
|
const e = t && t.__v_raw;
|
|
860
860
|
return e ? /* @__PURE__ */ N(e) : t;
|
|
861
861
|
}
|
|
862
|
-
const De = (t) =>
|
|
862
|
+
const De = (t) => ie(t) ? /* @__PURE__ */ yn(t) : t, Pt = (t) => ie(t) ? /* @__PURE__ */ an(t) : t;
|
|
863
863
|
// @__NO_SIDE_EFFECTS__
|
|
864
864
|
function ee(t) {
|
|
865
865
|
return t ? t.__v_isRef === !0 : !1;
|
|
866
866
|
}
|
|
867
867
|
// @__NO_SIDE_EFFECTS__
|
|
868
|
-
function
|
|
868
|
+
function sr(t) {
|
|
869
869
|
return jo(t, !1);
|
|
870
870
|
}
|
|
871
871
|
function jo(t, e) {
|
|
@@ -873,7 +873,7 @@ function jo(t, e) {
|
|
|
873
873
|
}
|
|
874
874
|
class Fo {
|
|
875
875
|
constructor(e, n) {
|
|
876
|
-
this.dep = new
|
|
876
|
+
this.dep = new mr(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : /* @__PURE__ */ N(e), this._value = n ? e : De(e), this.__v_isShallow = n;
|
|
877
877
|
}
|
|
878
878
|
get value() {
|
|
879
879
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -883,8 +883,8 @@ class Fo {
|
|
|
883
883
|
}) : this.dep.track(), this._value;
|
|
884
884
|
}
|
|
885
885
|
set value(e) {
|
|
886
|
-
const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */
|
|
887
|
-
e = r ? e : /* @__PURE__ */ N(e),
|
|
886
|
+
const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */ oe(e) || /* @__PURE__ */ ve(e);
|
|
887
|
+
e = r ? e : /* @__PURE__ */ N(e), xe(e, n) && (this._rawValue = e, this._value = r ? e : De(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
888
888
|
target: this,
|
|
889
889
|
type: "set",
|
|
890
890
|
key: "value",
|
|
@@ -896,16 +896,16 @@ class Fo {
|
|
|
896
896
|
function Zs(t) {
|
|
897
897
|
return /* @__PURE__ */ ee(t) ? t.value : t;
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function ae(t) {
|
|
900
900
|
return Z(t) ? t() : Zs(t);
|
|
901
901
|
}
|
|
902
902
|
class Vo {
|
|
903
903
|
constructor(e, n, r) {
|
|
904
|
-
this._object = e, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0, this._key =
|
|
904
|
+
this._object = e, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0, this._key = qe(n) ? n : String(n), this._raw = /* @__PURE__ */ N(e);
|
|
905
905
|
let s = !0, i = e;
|
|
906
|
-
if (!W(e) ||
|
|
906
|
+
if (!W(e) || qe(this._key) || !_n(this._key))
|
|
907
907
|
do
|
|
908
|
-
s = !/* @__PURE__ */
|
|
908
|
+
s = !/* @__PURE__ */ $t(i) || /* @__PURE__ */ oe(i);
|
|
909
909
|
while (s && (i = i.__v_raw));
|
|
910
910
|
this._shallow = s;
|
|
911
911
|
}
|
|
@@ -924,7 +924,7 @@ class Vo {
|
|
|
924
924
|
this._object[this._key] = e;
|
|
925
925
|
}
|
|
926
926
|
get dep() {
|
|
927
|
-
return
|
|
927
|
+
return ko(this._raw, this._key);
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
class Ho {
|
|
@@ -937,14 +937,14 @@ class Ho {
|
|
|
937
937
|
}
|
|
938
938
|
// @__NO_SIDE_EFFECTS__
|
|
939
939
|
function Uo(t, e, n) {
|
|
940
|
-
return /* @__PURE__ */ ee(t) ? t : Z(t) ? new Ho(t) :
|
|
940
|
+
return /* @__PURE__ */ ee(t) ? t : Z(t) ? new Ho(t) : ie(t) && arguments.length > 1 ? Bo(t, e, n) : /* @__PURE__ */ sr(t);
|
|
941
941
|
}
|
|
942
942
|
function Bo(t, e, n) {
|
|
943
943
|
return new Vo(t, e, n);
|
|
944
944
|
}
|
|
945
945
|
class Wo {
|
|
946
946
|
constructor(e, n, r) {
|
|
947
|
-
this.fn = e, this.setter = n, this._value = void 0, this.dep = new
|
|
947
|
+
this.fn = e, this.setter = n, this._value = void 0, this.dep = new mr(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Ct - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = r;
|
|
948
948
|
}
|
|
949
949
|
/**
|
|
950
950
|
* @internal
|
|
@@ -974,52 +974,52 @@ function Go(t, e, n = !1) {
|
|
|
974
974
|
const i = new Wo(r, s, n);
|
|
975
975
|
return process.env.NODE_ENV, i;
|
|
976
976
|
}
|
|
977
|
-
const
|
|
978
|
-
let
|
|
979
|
-
function qo(t, e = !1, n =
|
|
977
|
+
const Qt = {}, ln = /* @__PURE__ */ new WeakMap();
|
|
978
|
+
let Be;
|
|
979
|
+
function qo(t, e = !1, n = Be) {
|
|
980
980
|
if (n) {
|
|
981
|
-
let r =
|
|
982
|
-
r ||
|
|
981
|
+
let r = ln.get(n);
|
|
982
|
+
r || ln.set(n, r = []), r.push(t);
|
|
983
983
|
} else process.env.NODE_ENV !== "production" && !e && Se(
|
|
984
984
|
"onWatcherCleanup() was called when there was no active watcher to associate with."
|
|
985
985
|
);
|
|
986
986
|
}
|
|
987
|
-
function Ko(t, e, n =
|
|
987
|
+
function Ko(t, e, n = Dt) {
|
|
988
988
|
const { immediate: r, deep: s, once: i, scheduler: o, augmentJob: l, call: c } = n, p = (w) => {
|
|
989
989
|
(n.onWarn || Se)(
|
|
990
990
|
"Invalid watch source: ",
|
|
991
991
|
w,
|
|
992
992
|
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
993
993
|
);
|
|
994
|
-
}, h = (w) => s ? w : /* @__PURE__ */
|
|
995
|
-
let u, d, g, _, y = !1,
|
|
996
|
-
if (/* @__PURE__ */ ee(t) ? (d = () => t.value, y = /* @__PURE__ */
|
|
994
|
+
}, h = (w) => s ? w : /* @__PURE__ */ oe(w) || s === !1 || s === 0 ? je(w, 1) : je(w);
|
|
995
|
+
let u, d, g, _, y = !1, k = !1;
|
|
996
|
+
if (/* @__PURE__ */ ee(t) ? (d = () => t.value, y = /* @__PURE__ */ oe(t)) : /* @__PURE__ */ lt(t) ? (d = () => h(t), y = !0) : W(t) ? (k = !0, y = t.some((w) => /* @__PURE__ */ lt(w) || /* @__PURE__ */ oe(w)), d = () => t.map((w) => {
|
|
997
997
|
if (/* @__PURE__ */ ee(w))
|
|
998
998
|
return w.value;
|
|
999
|
-
if (/* @__PURE__ */
|
|
999
|
+
if (/* @__PURE__ */ lt(w))
|
|
1000
1000
|
return h(w);
|
|
1001
1001
|
if (Z(w))
|
|
1002
1002
|
return c ? c(w, 2) : w();
|
|
1003
1003
|
process.env.NODE_ENV !== "production" && p(w);
|
|
1004
1004
|
})) : Z(t) ? e ? d = c ? () => c(t, 2) : t : d = () => {
|
|
1005
1005
|
if (g) {
|
|
1006
|
-
|
|
1006
|
+
pt();
|
|
1007
1007
|
try {
|
|
1008
1008
|
g();
|
|
1009
1009
|
} finally {
|
|
1010
|
-
|
|
1010
|
+
ht();
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
const w =
|
|
1014
|
-
|
|
1013
|
+
const w = Be;
|
|
1014
|
+
Be = u;
|
|
1015
1015
|
try {
|
|
1016
1016
|
return c ? c(t, 3, [_]) : t(_);
|
|
1017
1017
|
} finally {
|
|
1018
|
-
|
|
1018
|
+
Be = w;
|
|
1019
1019
|
}
|
|
1020
|
-
} : (d =
|
|
1020
|
+
} : (d = ot, process.env.NODE_ENV !== "production" && p(t)), e && s) {
|
|
1021
1021
|
const w = d, T = s === !0 ? 1 / 0 : s;
|
|
1022
|
-
d = () =>
|
|
1022
|
+
d = () => je(w(), T);
|
|
1023
1023
|
}
|
|
1024
1024
|
const A = () => {
|
|
1025
1025
|
u.stop();
|
|
@@ -1027,24 +1027,24 @@ function Ko(t, e, n = Ct) {
|
|
|
1027
1027
|
if (i && e) {
|
|
1028
1028
|
const w = e;
|
|
1029
1029
|
e = (...T) => {
|
|
1030
|
-
const
|
|
1031
|
-
return A(),
|
|
1030
|
+
const x = w(...T);
|
|
1031
|
+
return A(), x;
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
|
-
let R =
|
|
1034
|
+
let R = k ? new Array(t.length).fill(Qt) : Qt;
|
|
1035
1035
|
const S = (w) => {
|
|
1036
1036
|
if (!(!(u.flags & 1) || !u.dirty && !w))
|
|
1037
1037
|
if (e) {
|
|
1038
1038
|
const T = u.run();
|
|
1039
|
-
if (w || s || y || (
|
|
1039
|
+
if (w || s || y || (k ? T.some((x, v) => xe(x, R[v])) : xe(T, R))) {
|
|
1040
1040
|
g && g();
|
|
1041
|
-
const
|
|
1042
|
-
|
|
1041
|
+
const x = Be;
|
|
1042
|
+
Be = u;
|
|
1043
1043
|
try {
|
|
1044
1044
|
const v = [
|
|
1045
1045
|
T,
|
|
1046
1046
|
// pass undefined as the old value when it's changed for the first time
|
|
1047
|
-
R ===
|
|
1047
|
+
R === Qt ? void 0 : k && R[0] === Qt ? [] : R,
|
|
1048
1048
|
_
|
|
1049
1049
|
];
|
|
1050
1050
|
R = T, c ? c(e, 3, v) : (
|
|
@@ -1052,57 +1052,57 @@ function Ko(t, e, n = Ct) {
|
|
|
1052
1052
|
e(...v)
|
|
1053
1053
|
);
|
|
1054
1054
|
} finally {
|
|
1055
|
-
|
|
1055
|
+
Be = x;
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
1058
1058
|
} else
|
|
1059
1059
|
u.run();
|
|
1060
1060
|
};
|
|
1061
1061
|
return l && l(S), u = new wo(d), u.scheduler = o ? () => o(S, !1) : S, _ = (w) => qo(w, !1, u), g = u.onStop = () => {
|
|
1062
|
-
const w =
|
|
1062
|
+
const w = ln.get(u);
|
|
1063
1063
|
if (w) {
|
|
1064
1064
|
if (c)
|
|
1065
1065
|
c(w, 4);
|
|
1066
1066
|
else
|
|
1067
1067
|
for (const T of w) T();
|
|
1068
|
-
|
|
1068
|
+
ln.delete(u);
|
|
1069
1069
|
}
|
|
1070
1070
|
}, process.env.NODE_ENV !== "production" && (u.onTrack = n.onTrack, u.onTrigger = n.onTrigger), e ? r ? S(!0) : R = u.run() : o ? o(S.bind(null, !0), !0) : u.run(), A.pause = u.pause.bind(u), A.resume = u.resume.bind(u), A.stop = A, A;
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1073
|
-
if (e <= 0 || !
|
|
1072
|
+
function je(t, e = 1 / 0, n) {
|
|
1073
|
+
if (e <= 0 || !ie(t) || t.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(t) || 0) >= e))
|
|
1074
1074
|
return t;
|
|
1075
1075
|
if (n.set(t, e), e--, /* @__PURE__ */ ee(t))
|
|
1076
|
-
|
|
1076
|
+
je(t.value, e, n);
|
|
1077
1077
|
else if (W(t))
|
|
1078
1078
|
for (let r = 0; r < t.length; r++)
|
|
1079
|
-
|
|
1080
|
-
else if (co(t) ||
|
|
1079
|
+
je(t[r], e, n);
|
|
1080
|
+
else if (co(t) || at(t))
|
|
1081
1081
|
t.forEach((r) => {
|
|
1082
|
-
|
|
1082
|
+
je(r, e, n);
|
|
1083
1083
|
});
|
|
1084
1084
|
else if (po(t)) {
|
|
1085
1085
|
for (const r in t)
|
|
1086
|
-
|
|
1086
|
+
je(t[r], e, n);
|
|
1087
1087
|
for (const r of Object.getOwnPropertySymbols(t))
|
|
1088
|
-
Object.prototype.propertyIsEnumerable.call(t, r) &&
|
|
1088
|
+
Object.prototype.propertyIsEnumerable.call(t, r) && je(t[r], e, n);
|
|
1089
1089
|
}
|
|
1090
1090
|
return t;
|
|
1091
1091
|
}
|
|
1092
|
-
const
|
|
1092
|
+
const Ge = [];
|
|
1093
1093
|
function Yo(t) {
|
|
1094
|
-
|
|
1094
|
+
Ge.push(t);
|
|
1095
1095
|
}
|
|
1096
1096
|
function Zo() {
|
|
1097
|
-
|
|
1097
|
+
Ge.pop();
|
|
1098
1098
|
}
|
|
1099
|
-
let
|
|
1099
|
+
let Gn = !1;
|
|
1100
1100
|
function U(t, ...e) {
|
|
1101
|
-
if (
|
|
1102
|
-
|
|
1103
|
-
const n =
|
|
1101
|
+
if (Gn) return;
|
|
1102
|
+
Gn = !0, pt();
|
|
1103
|
+
const n = Ge.length ? Ge[Ge.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = Xo();
|
|
1104
1104
|
if (r)
|
|
1105
|
-
|
|
1105
|
+
wn(
|
|
1106
1106
|
r,
|
|
1107
1107
|
n,
|
|
1108
1108
|
11,
|
|
@@ -1125,10 +1125,10 @@ function U(t, ...e) {
|
|
|
1125
1125
|
s.length && i.push(`
|
|
1126
1126
|
`, ...Qo(s)), console.warn(...i);
|
|
1127
1127
|
}
|
|
1128
|
-
|
|
1128
|
+
ht(), Gn = !1;
|
|
1129
1129
|
}
|
|
1130
1130
|
function Xo() {
|
|
1131
|
-
let t =
|
|
1131
|
+
let t = Ge[Ge.length - 1];
|
|
1132
1132
|
if (!t)
|
|
1133
1133
|
return [];
|
|
1134
1134
|
const e = [];
|
|
@@ -1167,7 +1167,7 @@ function ea(t) {
|
|
|
1167
1167
|
function Xs(t, e, n) {
|
|
1168
1168
|
return Ie(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : /* @__PURE__ */ ee(e) ? (e = Xs(t, /* @__PURE__ */ N(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : Z(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ N(e), n ? e : [`${t}=`, e]);
|
|
1169
1169
|
}
|
|
1170
|
-
const
|
|
1170
|
+
const br = {
|
|
1171
1171
|
sp: "serverPrefetch hook",
|
|
1172
1172
|
bc: "beforeCreate hook",
|
|
1173
1173
|
c: "created hook",
|
|
@@ -1200,34 +1200,34 @@ const Er = {
|
|
|
1200
1200
|
15: "component update",
|
|
1201
1201
|
16: "app unmount cleanup function"
|
|
1202
1202
|
};
|
|
1203
|
-
function
|
|
1203
|
+
function wn(t, e, n, r) {
|
|
1204
1204
|
try {
|
|
1205
1205
|
return r ? t(...r) : t();
|
|
1206
1206
|
} catch (s) {
|
|
1207
|
-
|
|
1207
|
+
wr(s, e, n);
|
|
1208
1208
|
}
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function yr(t, e, n, r) {
|
|
1211
1211
|
if (Z(t)) {
|
|
1212
|
-
const s =
|
|
1212
|
+
const s = wn(t, e, n, r);
|
|
1213
1213
|
return s && uo(s) && s.catch((i) => {
|
|
1214
|
-
|
|
1214
|
+
wr(i, e, n);
|
|
1215
1215
|
}), s;
|
|
1216
1216
|
}
|
|
1217
1217
|
if (W(t)) {
|
|
1218
1218
|
const s = [];
|
|
1219
1219
|
for (let i = 0; i < t.length; i++)
|
|
1220
|
-
s.push(
|
|
1220
|
+
s.push(yr(t[i], e, n, r));
|
|
1221
1221
|
return s;
|
|
1222
1222
|
} else process.env.NODE_ENV !== "production" && U(
|
|
1223
1223
|
`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof t}`
|
|
1224
1224
|
);
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1227
|
-
const s = e ? e.vnode : null, { errorHandler: i, throwUnhandledErrorInProduction: o } = e && e.appContext.config ||
|
|
1226
|
+
function wr(t, e, n, r = !0) {
|
|
1227
|
+
const s = e ? e.vnode : null, { errorHandler: i, throwUnhandledErrorInProduction: o } = e && e.appContext.config || Dt;
|
|
1228
1228
|
if (e) {
|
|
1229
1229
|
let l = e.parent;
|
|
1230
|
-
const c = e.proxy, p = process.env.NODE_ENV !== "production" ?
|
|
1230
|
+
const c = e.proxy, p = process.env.NODE_ENV !== "production" ? br[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
1231
1231
|
for (; l; ) {
|
|
1232
1232
|
const h = l.ec;
|
|
1233
1233
|
if (h) {
|
|
@@ -1238,11 +1238,11 @@ function xr(t, e, n, r = !0) {
|
|
|
1238
1238
|
l = l.parent;
|
|
1239
1239
|
}
|
|
1240
1240
|
if (i) {
|
|
1241
|
-
|
|
1241
|
+
pt(), wn(i, null, 10, [
|
|
1242
1242
|
t,
|
|
1243
1243
|
c,
|
|
1244
1244
|
p
|
|
1245
|
-
]),
|
|
1245
|
+
]), ht();
|
|
1246
1246
|
return;
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
@@ -1250,7 +1250,7 @@ function xr(t, e, n, r = !0) {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
function ta(t, e, n, r = !0, s = !1) {
|
|
1252
1252
|
if (process.env.NODE_ENV !== "production") {
|
|
1253
|
-
const i =
|
|
1253
|
+
const i = br[e];
|
|
1254
1254
|
if (n && Yo(n), U(`Unhandled error${i ? ` during execution of ${i}` : ""}`), n && Zo(), r)
|
|
1255
1255
|
throw t;
|
|
1256
1256
|
console.error(t);
|
|
@@ -1260,61 +1260,61 @@ function ta(t, e, n, r = !0, s = !1) {
|
|
|
1260
1260
|
console.error(t);
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
|
-
const
|
|
1263
|
+
const pe = [];
|
|
1264
1264
|
let Oe = -1;
|
|
1265
|
-
const
|
|
1266
|
-
let
|
|
1265
|
+
const ct = [];
|
|
1266
|
+
let Le = null, rt = 0;
|
|
1267
1267
|
const na = /* @__PURE__ */ Promise.resolve();
|
|
1268
|
-
let
|
|
1268
|
+
let ir = null;
|
|
1269
1269
|
const ra = 100;
|
|
1270
1270
|
function sa(t) {
|
|
1271
|
-
let e = Oe + 1, n =
|
|
1271
|
+
let e = Oe + 1, n = pe.length;
|
|
1272
1272
|
for (; e < n; ) {
|
|
1273
|
-
const r = e + n >>> 1, s =
|
|
1273
|
+
const r = e + n >>> 1, s = pe[r], i = Lt(s);
|
|
1274
1274
|
i < t || i === t && s.flags & 2 ? e = r + 1 : n = r;
|
|
1275
1275
|
}
|
|
1276
1276
|
return e;
|
|
1277
1277
|
}
|
|
1278
1278
|
function Qs(t) {
|
|
1279
1279
|
if (!(t.flags & 1)) {
|
|
1280
|
-
const e =
|
|
1280
|
+
const e = Lt(t), n = pe[pe.length - 1];
|
|
1281
1281
|
!n || // fast path when the job id is larger than the tail
|
|
1282
|
-
!(t.flags & 2) && e >=
|
|
1282
|
+
!(t.flags & 2) && e >= Lt(n) ? pe.push(t) : pe.splice(sa(e), 0, t), t.flags |= 1, Js();
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
1285
1285
|
function Js() {
|
|
1286
|
-
|
|
1286
|
+
ir || (ir = na.then(ti));
|
|
1287
1287
|
}
|
|
1288
1288
|
function ei(t) {
|
|
1289
|
-
W(t) ?
|
|
1289
|
+
W(t) ? ct.push(...t) : Le && t.id === -1 ? Le.splice(rt + 1, 0, t) : t.flags & 1 || (ct.push(t), t.flags |= 1), Js();
|
|
1290
1290
|
}
|
|
1291
1291
|
function ia(t) {
|
|
1292
|
-
if (
|
|
1293
|
-
const e = [...new Set(
|
|
1294
|
-
(n, r) =>
|
|
1292
|
+
if (ct.length) {
|
|
1293
|
+
const e = [...new Set(ct)].sort(
|
|
1294
|
+
(n, r) => Lt(n) - Lt(r)
|
|
1295
1295
|
);
|
|
1296
|
-
if (
|
|
1297
|
-
|
|
1296
|
+
if (ct.length = 0, Le) {
|
|
1297
|
+
Le.push(...e);
|
|
1298
1298
|
return;
|
|
1299
1299
|
}
|
|
1300
|
-
for (
|
|
1301
|
-
const n =
|
|
1300
|
+
for (Le = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), rt = 0; rt < Le.length; rt++) {
|
|
1301
|
+
const n = Le[rt];
|
|
1302
1302
|
process.env.NODE_ENV !== "production" && ni(t, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
1303
1303
|
}
|
|
1304
|
-
|
|
1304
|
+
Le = null, rt = 0;
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
|
-
const
|
|
1307
|
+
const Lt = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
|
|
1308
1308
|
function ti(t) {
|
|
1309
1309
|
process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
|
|
1310
|
-
const e = process.env.NODE_ENV !== "production" ? (n) => ni(t, n) :
|
|
1310
|
+
const e = process.env.NODE_ENV !== "production" ? (n) => ni(t, n) : ot;
|
|
1311
1311
|
try {
|
|
1312
|
-
for (Oe = 0; Oe <
|
|
1313
|
-
const n =
|
|
1312
|
+
for (Oe = 0; Oe < pe.length; Oe++) {
|
|
1313
|
+
const n = pe[Oe];
|
|
1314
1314
|
if (n && !(n.flags & 8)) {
|
|
1315
1315
|
if (process.env.NODE_ENV !== "production" && e(n))
|
|
1316
1316
|
continue;
|
|
1317
|
-
n.flags & 4 && (n.flags &= -2),
|
|
1317
|
+
n.flags & 4 && (n.flags &= -2), wn(
|
|
1318
1318
|
n,
|
|
1319
1319
|
n.i,
|
|
1320
1320
|
n.i ? 15 : 14
|
|
@@ -1322,18 +1322,18 @@ function ti(t) {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
}
|
|
1324
1324
|
} finally {
|
|
1325
|
-
for (; Oe <
|
|
1326
|
-
const n =
|
|
1325
|
+
for (; Oe < pe.length; Oe++) {
|
|
1326
|
+
const n = pe[Oe];
|
|
1327
1327
|
n && (n.flags &= -2);
|
|
1328
1328
|
}
|
|
1329
|
-
Oe = -1,
|
|
1329
|
+
Oe = -1, pe.length = 0, ia(t), ir = null, (pe.length || ct.length) && ti(t);
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
1332
|
function ni(t, e) {
|
|
1333
1333
|
const n = t.get(e) || 0;
|
|
1334
1334
|
if (n > ra) {
|
|
1335
1335
|
const r = e.i, s = r && hi(r.type);
|
|
1336
|
-
return
|
|
1336
|
+
return wr(
|
|
1337
1337
|
`Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
1338
1338
|
null,
|
|
1339
1339
|
10
|
|
@@ -1341,52 +1341,52 @@ function ni(t, e) {
|
|
|
1341
1341
|
}
|
|
1342
1342
|
return t.set(e, n + 1), !1;
|
|
1343
1343
|
}
|
|
1344
|
-
const
|
|
1345
|
-
process.env.NODE_ENV !== "production" && (
|
|
1346
|
-
createRecord:
|
|
1347
|
-
rerender:
|
|
1348
|
-
reload:
|
|
1344
|
+
const qn = /* @__PURE__ */ new Map();
|
|
1345
|
+
process.env.NODE_ENV !== "production" && (bn().__VUE_HMR_RUNTIME__ = {
|
|
1346
|
+
createRecord: Kn(oa),
|
|
1347
|
+
rerender: Kn(aa),
|
|
1348
|
+
reload: Kn(la)
|
|
1349
1349
|
});
|
|
1350
|
-
const
|
|
1350
|
+
const cn = /* @__PURE__ */ new Map();
|
|
1351
1351
|
function oa(t, e) {
|
|
1352
|
-
return
|
|
1353
|
-
initialDef:
|
|
1352
|
+
return cn.has(t) ? !1 : (cn.set(t, {
|
|
1353
|
+
initialDef: un(e),
|
|
1354
1354
|
instances: /* @__PURE__ */ new Set()
|
|
1355
1355
|
}), !0);
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function un(t) {
|
|
1358
1358
|
return gi(t) ? t.__vccOpts : t;
|
|
1359
1359
|
}
|
|
1360
1360
|
function aa(t, e) {
|
|
1361
|
-
const n =
|
|
1361
|
+
const n = cn.get(t);
|
|
1362
1362
|
n && (n.initialDef.render = e, [...n.instances].forEach((r) => {
|
|
1363
|
-
e && (r.render = e,
|
|
1363
|
+
e && (r.render = e, un(r.type).render = e), r.renderCache = [], r.job.flags & 8 || r.update();
|
|
1364
1364
|
}));
|
|
1365
1365
|
}
|
|
1366
1366
|
function la(t, e) {
|
|
1367
|
-
const n =
|
|
1367
|
+
const n = cn.get(t);
|
|
1368
1368
|
if (!n) return;
|
|
1369
|
-
e =
|
|
1369
|
+
e = un(e), us(n.initialDef, e);
|
|
1370
1370
|
const r = [...n.instances];
|
|
1371
1371
|
for (let s = 0; s < r.length; s++) {
|
|
1372
|
-
const i = r[s], o =
|
|
1373
|
-
let l =
|
|
1374
|
-
l || (o !== n.initialDef &&
|
|
1372
|
+
const i = r[s], o = un(i.type);
|
|
1373
|
+
let l = qn.get(o);
|
|
1374
|
+
l || (o !== n.initialDef && us(o, e), qn.set(o, l = /* @__PURE__ */ new Set())), l.add(i), i.appContext.propsCache.delete(i.type), i.appContext.emitsCache.delete(i.type), i.appContext.optionsCache.delete(i.type), i.ceReload ? (l.add(i), i.ceReload(e.styles), l.delete(i)) : i.parent ? Qs(() => {
|
|
1375
1375
|
i.job.flags & 8 || (i.parent.update(), l.delete(i));
|
|
1376
1376
|
}) : i.appContext.reload ? i.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1377
1377
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1378
1378
|
), i.root.ce && i !== i.root && i.root.ce._removeChildStyle(o);
|
|
1379
1379
|
}
|
|
1380
1380
|
ei(() => {
|
|
1381
|
-
|
|
1381
|
+
qn.clear();
|
|
1382
1382
|
});
|
|
1383
1383
|
}
|
|
1384
|
-
function
|
|
1384
|
+
function us(t, e) {
|
|
1385
1385
|
Ne(t, e);
|
|
1386
1386
|
for (const n in t)
|
|
1387
1387
|
n !== "__file" && !(n in e) && delete t[n];
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function Kn(t) {
|
|
1390
1390
|
return (e, n) => {
|
|
1391
1391
|
try {
|
|
1392
1392
|
return t(e, n);
|
|
@@ -1397,28 +1397,28 @@ function Zn(t) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
};
|
|
1399
1399
|
}
|
|
1400
|
-
let
|
|
1400
|
+
let st, Jt = [];
|
|
1401
1401
|
function ri(t, e) {
|
|
1402
1402
|
var n, r;
|
|
1403
|
-
|
|
1403
|
+
st = t, st ? (st.enabled = !0, Jt.forEach(({ event: s, args: i }) => st.emit(s, ...i)), Jt = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
|
|
1404
1404
|
window.HTMLElement && // also exclude jsdom
|
|
1405
1405
|
// eslint-disable-next-line no-restricted-syntax
|
|
1406
1406
|
!((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((i) => {
|
|
1407
1407
|
ri(i, e);
|
|
1408
1408
|
}), setTimeout(() => {
|
|
1409
|
-
|
|
1410
|
-
}, 3e3)) :
|
|
1409
|
+
st || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Jt = []);
|
|
1410
|
+
}, 3e3)) : Jt = [];
|
|
1411
1411
|
}
|
|
1412
|
-
let
|
|
1412
|
+
let zt = null, ca = null;
|
|
1413
1413
|
function si(t, e) {
|
|
1414
|
-
if (process.env.NODE_ENV !== "production" && (!
|
|
1415
|
-
let n =
|
|
1416
|
-
const r =
|
|
1417
|
-
r === n && (n =
|
|
1414
|
+
if (process.env.NODE_ENV !== "production" && (!le || le.isMounted) && U("provide() can only be used inside setup()."), le) {
|
|
1415
|
+
let n = le.provides;
|
|
1416
|
+
const r = le.parent && le.parent.provides;
|
|
1417
|
+
r === n && (n = le.provides = Object.create(r)), n[t] = e;
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
function ii(t, e, n = !1) {
|
|
1421
|
-
const r =
|
|
1421
|
+
const r = dt();
|
|
1422
1422
|
if (r || ai) {
|
|
1423
1423
|
let s = r ? r.parent == null || r.ce ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
|
|
1424
1424
|
if (s && t in s)
|
|
@@ -1429,7 +1429,7 @@ function ii(t, e, n = !1) {
|
|
|
1429
1429
|
} else process.env.NODE_ENV !== "production" && U("inject() can only be used inside setup() or functional components.");
|
|
1430
1430
|
}
|
|
1431
1431
|
function ua() {
|
|
1432
|
-
return !!(
|
|
1432
|
+
return !!(dt() || ai);
|
|
1433
1433
|
}
|
|
1434
1434
|
const fa = /* @__PURE__ */ Symbol.for("v-scx"), pa = () => {
|
|
1435
1435
|
{
|
|
@@ -1439,12 +1439,12 @@ const fa = /* @__PURE__ */ Symbol.for("v-scx"), pa = () => {
|
|
|
1439
1439
|
), t;
|
|
1440
1440
|
}
|
|
1441
1441
|
};
|
|
1442
|
-
function
|
|
1442
|
+
function fn(t, e, n) {
|
|
1443
1443
|
return process.env.NODE_ENV !== "production" && !Z(e) && U(
|
|
1444
1444
|
"`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
|
|
1445
1445
|
), ha(t, e, n);
|
|
1446
1446
|
}
|
|
1447
|
-
function ha(t, e, n =
|
|
1447
|
+
function ha(t, e, n = Dt) {
|
|
1448
1448
|
const { immediate: r, deep: s, flush: i, once: o } = n;
|
|
1449
1449
|
process.env.NODE_ENV !== "production" && !e && (r !== void 0 && U(
|
|
1450
1450
|
'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
|
|
@@ -1457,52 +1457,52 @@ function ha(t, e, n = Ct) {
|
|
|
1457
1457
|
process.env.NODE_ENV !== "production" && (l.onWarn = U);
|
|
1458
1458
|
const c = e && r || !e && i !== "post";
|
|
1459
1459
|
let p;
|
|
1460
|
-
if (
|
|
1460
|
+
if (jt) {
|
|
1461
1461
|
if (i === "sync") {
|
|
1462
1462
|
const g = pa();
|
|
1463
1463
|
p = g.__watcherHandles || (g.__watcherHandles = []);
|
|
1464
1464
|
} else if (!c) {
|
|
1465
1465
|
const g = () => {
|
|
1466
1466
|
};
|
|
1467
|
-
return g.stop =
|
|
1467
|
+
return g.stop = ot, g.resume = ot, g.pause = ot, g;
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
|
-
const h =
|
|
1471
|
-
l.call = (g, _, y) =>
|
|
1470
|
+
const h = le;
|
|
1471
|
+
l.call = (g, _, y) => yr(g, h, _, y);
|
|
1472
1472
|
let u = !1;
|
|
1473
1473
|
i === "post" ? l.scheduler = (g) => {
|
|
1474
|
-
|
|
1474
|
+
ka(g, h && h.suspense);
|
|
1475
1475
|
} : i !== "sync" && (u = !0, l.scheduler = (g, _) => {
|
|
1476
1476
|
_ ? g() : Qs(g);
|
|
1477
1477
|
}), l.augmentJob = (g) => {
|
|
1478
1478
|
e && (g.flags |= 4), u && (g.flags |= 2, h && (g.id = h.uid, g.i = h));
|
|
1479
1479
|
};
|
|
1480
1480
|
const d = Ko(t, e, l);
|
|
1481
|
-
return
|
|
1481
|
+
return jt && (p ? p.push(d) : c && d()), d;
|
|
1482
1482
|
}
|
|
1483
1483
|
const da = (t) => t.__isTeleport;
|
|
1484
1484
|
function oi(t, e) {
|
|
1485
1485
|
t.shapeFlag & 6 && t.component ? (t.transition = e, oi(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
|
|
1486
1486
|
}
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
function ga(t, e, n =
|
|
1487
|
+
bn().requestIdleCallback;
|
|
1488
|
+
bn().cancelIdleCallback;
|
|
1489
|
+
function ga(t, e, n = le, r = !1) {
|
|
1490
1490
|
if (n) {
|
|
1491
1491
|
const s = n[t] || (n[t] = []), i = e.__weh || (e.__weh = (...o) => {
|
|
1492
|
-
|
|
1493
|
-
const l = $a(n), c =
|
|
1494
|
-
return l(),
|
|
1492
|
+
pt();
|
|
1493
|
+
const l = $a(n), c = yr(e, n, t, o);
|
|
1494
|
+
return l(), ht(), c;
|
|
1495
1495
|
});
|
|
1496
1496
|
return r ? s.unshift(i) : s.push(i), i;
|
|
1497
1497
|
} else if (process.env.NODE_ENV !== "production") {
|
|
1498
|
-
const s = ho(
|
|
1498
|
+
const s = ho(br[t].replace(/ hook$/, ""));
|
|
1499
1499
|
U(
|
|
1500
1500
|
`${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
|
|
1501
1501
|
);
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
|
-
const ma = (t) => (e, n =
|
|
1505
|
-
(!
|
|
1504
|
+
const ma = (t) => (e, n = le) => {
|
|
1505
|
+
(!jt || t === "sp") && ga(t, (...r) => e(...r), n);
|
|
1506
1506
|
}, _a = ma(
|
|
1507
1507
|
"bum"
|
|
1508
1508
|
), ba = /* @__PURE__ */ Symbol.for("v-ndc"), ya = {};
|
|
@@ -1513,11 +1513,11 @@ function wa() {
|
|
|
1513
1513
|
return Ea("useSlots").slots;
|
|
1514
1514
|
}
|
|
1515
1515
|
function Ea(t) {
|
|
1516
|
-
const e =
|
|
1516
|
+
const e = dt();
|
|
1517
1517
|
return process.env.NODE_ENV !== "production" && !e && U(`${t}() called without active instance.`), e.setupContext || (e.setupContext = La(e));
|
|
1518
1518
|
}
|
|
1519
1519
|
let ai = null;
|
|
1520
|
-
const Ta = {}, li = (t) => Object.getPrototypeOf(t) === Ta,
|
|
1520
|
+
const Ta = {}, li = (t) => Object.getPrototypeOf(t) === Ta, ka = Sa, xa = (t) => t.__isSuspense;
|
|
1521
1521
|
function Sa(t, e) {
|
|
1522
1522
|
e && e.pendingBranch ? W(t) ? e.effects.push(...t) : e.effects.push(t) : ei(t);
|
|
1523
1523
|
}
|
|
@@ -1527,11 +1527,11 @@ function Ra(t) {
|
|
|
1527
1527
|
}
|
|
1528
1528
|
const Oa = (...t) => fi(
|
|
1529
1529
|
...t
|
|
1530
|
-
), ui = ({ key: t }) => t ?? null,
|
|
1530
|
+
), ui = ({ key: t }) => t ?? null, rn = ({
|
|
1531
1531
|
ref: t,
|
|
1532
1532
|
ref_key: e,
|
|
1533
1533
|
ref_for: n
|
|
1534
|
-
}) => (typeof t == "number" && (t = "" + t), t != null ? Ie(t) || /* @__PURE__ */ ee(t) || Z(t) ? { i:
|
|
1534
|
+
}) => (typeof t == "number" && (t = "" + t), t != null ? Ie(t) || /* @__PURE__ */ ee(t) || Z(t) ? { i: zt, r: t, k: e, f: !!n } : t : null);
|
|
1535
1535
|
function Na(t, e = null, n = null, r = 0, s = null, i = t === ci ? 0 : 1, o = !1, l = !1) {
|
|
1536
1536
|
const c = {
|
|
1537
1537
|
__v_isVNode: !0,
|
|
@@ -1539,7 +1539,7 @@ function Na(t, e = null, n = null, r = 0, s = null, i = t === ci ? 0 : 1, o = !1
|
|
|
1539
1539
|
type: t,
|
|
1540
1540
|
props: e,
|
|
1541
1541
|
key: e && ui(e),
|
|
1542
|
-
ref: e &&
|
|
1542
|
+
ref: e && rn(e),
|
|
1543
1543
|
scopeId: ca,
|
|
1544
1544
|
slotScopeIds: null,
|
|
1545
1545
|
children: n,
|
|
@@ -1560,28 +1560,28 @@ function Na(t, e = null, n = null, r = 0, s = null, i = t === ci ? 0 : 1, o = !1
|
|
|
1560
1560
|
dynamicProps: s,
|
|
1561
1561
|
dynamicChildren: null,
|
|
1562
1562
|
appContext: null,
|
|
1563
|
-
ctx:
|
|
1563
|
+
ctx: zt
|
|
1564
1564
|
};
|
|
1565
|
-
return l ? (
|
|
1565
|
+
return l ? (Er(c, n), i & 128 && t.normalize(c)) : n && (c.shapeFlag |= Ie(n) ? 8 : 16), process.env.NODE_ENV !== "production" && c.key !== c.key && U("VNode created with invalid key (NaN). VNode type:", c.type), c;
|
|
1566
1566
|
}
|
|
1567
1567
|
const Ia = process.env.NODE_ENV !== "production" ? Oa : fi;
|
|
1568
1568
|
function fi(t, e = null, n = null, r = 0, s = null, i = !1) {
|
|
1569
1569
|
if ((!t || t === ba) && (process.env.NODE_ENV !== "production" && !t && U(`Invalid vnode type when creating vnode: ${t}.`), t = Aa), Ra(t)) {
|
|
1570
|
-
const l =
|
|
1570
|
+
const l = pn(
|
|
1571
1571
|
t,
|
|
1572
1572
|
e,
|
|
1573
1573
|
!0
|
|
1574
1574
|
/* mergeRef: true */
|
|
1575
1575
|
);
|
|
1576
|
-
return n &&
|
|
1576
|
+
return n && Er(l, n), l.patchFlag = -2, l;
|
|
1577
1577
|
}
|
|
1578
1578
|
if (gi(t) && (t = t.__vccOpts), e) {
|
|
1579
1579
|
e = Da(e);
|
|
1580
1580
|
let { class: l, style: c } = e;
|
|
1581
|
-
l && !Ie(l) && (e.class =
|
|
1581
|
+
l && !Ie(l) && (e.class = pr(l)), ie(c) && (/* @__PURE__ */ $t(c) && !W(c) && (c = Ne({}, c)), e.style = fr(c));
|
|
1582
1582
|
}
|
|
1583
|
-
const o = Ie(t) ? 1 :
|
|
1584
|
-
return process.env.NODE_ENV !== "production" && o & 4 && /* @__PURE__ */
|
|
1583
|
+
const o = Ie(t) ? 1 : xa(t) ? 128 : da(t) ? 64 : ie(t) ? 4 : Z(t) ? 2 : 0;
|
|
1584
|
+
return process.env.NODE_ENV !== "production" && o & 4 && /* @__PURE__ */ $t(t) && (t = /* @__PURE__ */ N(t), U(
|
|
1585
1585
|
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
1586
1586
|
`
|
|
1587
1587
|
Component that was made reactive: `,
|
|
@@ -1598,9 +1598,9 @@ Component that was made reactive: `,
|
|
|
1598
1598
|
);
|
|
1599
1599
|
}
|
|
1600
1600
|
function Da(t) {
|
|
1601
|
-
return t ? /* @__PURE__ */
|
|
1601
|
+
return t ? /* @__PURE__ */ $t(t) || li(t) ? Ne({}, t) : t : null;
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1603
|
+
function pn(t, e, n = !1, r = !1) {
|
|
1604
1604
|
const { props: s, ref: i, patchFlag: o, children: l, transition: c } = t, p = e ? Ma(s || {}, e) : s, h = {
|
|
1605
1605
|
__v_isVNode: !0,
|
|
1606
1606
|
__v_skip: !0,
|
|
@@ -1611,7 +1611,7 @@ function hn(t, e, n = !1, r = !1) {
|
|
|
1611
1611
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1612
1612
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
1613
1613
|
// the refs so the single vnode can be set on multiple refs
|
|
1614
|
-
n && i ? W(i) ? i.concat(
|
|
1614
|
+
n && i ? W(i) ? i.concat(rn(e)) : [i, rn(e)] : rn(e)
|
|
1615
1615
|
) : i,
|
|
1616
1616
|
scopeId: t.scopeId,
|
|
1617
1617
|
slotScopeIds: t.slotScopeIds,
|
|
@@ -1637,8 +1637,8 @@ function hn(t, e, n = !1, r = !1) {
|
|
|
1637
1637
|
// they will simply be overwritten.
|
|
1638
1638
|
component: t.component,
|
|
1639
1639
|
suspense: t.suspense,
|
|
1640
|
-
ssContent: t.ssContent &&
|
|
1641
|
-
ssFallback: t.ssFallback &&
|
|
1640
|
+
ssContent: t.ssContent && pn(t.ssContent),
|
|
1641
|
+
ssFallback: t.ssFallback && pn(t.ssFallback),
|
|
1642
1642
|
placeholder: t.placeholder,
|
|
1643
1643
|
el: t.el,
|
|
1644
1644
|
anchor: t.anchor,
|
|
@@ -1651,13 +1651,13 @@ function hn(t, e, n = !1, r = !1) {
|
|
|
1651
1651
|
), h;
|
|
1652
1652
|
}
|
|
1653
1653
|
function pi(t) {
|
|
1654
|
-
const e =
|
|
1654
|
+
const e = pn(t);
|
|
1655
1655
|
return W(t.children) && (e.children = t.children.map(pi)), e;
|
|
1656
1656
|
}
|
|
1657
1657
|
function Ca(t = " ", e = 0) {
|
|
1658
1658
|
return Ia(va, null, t, e);
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1660
|
+
function Er(t, e) {
|
|
1661
1661
|
let n = 0;
|
|
1662
1662
|
const { shapeFlag: r } = t;
|
|
1663
1663
|
if (e == null)
|
|
@@ -1667,11 +1667,11 @@ function kr(t, e) {
|
|
|
1667
1667
|
else if (typeof e == "object")
|
|
1668
1668
|
if (r & 65) {
|
|
1669
1669
|
const s = e.default;
|
|
1670
|
-
s && (s._c && (s._d = !1),
|
|
1670
|
+
s && (s._c && (s._d = !1), Er(t, s()), s._c && (s._d = !0));
|
|
1671
1671
|
return;
|
|
1672
1672
|
} else
|
|
1673
|
-
n = 32, !e._ && !li(e) && (e._ctx =
|
|
1674
|
-
else Z(e) ? (e = { default: e, _ctx:
|
|
1673
|
+
n = 32, !e._ && !li(e) && (e._ctx = zt);
|
|
1674
|
+
else Z(e) ? (e = { default: e, _ctx: zt }, n = 32) : (e = String(e), r & 64 ? (n = 16, e = [Ca(e)]) : n = 8);
|
|
1675
1675
|
t.children = e, t.shapeFlag |= n;
|
|
1676
1676
|
}
|
|
1677
1677
|
function Ma(...t) {
|
|
@@ -1680,9 +1680,9 @@ function Ma(...t) {
|
|
|
1680
1680
|
const r = t[n];
|
|
1681
1681
|
for (const s in r)
|
|
1682
1682
|
if (s === "class")
|
|
1683
|
-
e.class !== r.class && (e.class =
|
|
1683
|
+
e.class !== r.class && (e.class = pr([e.class, r.class]));
|
|
1684
1684
|
else if (s === "style")
|
|
1685
|
-
e.style =
|
|
1685
|
+
e.style = fr([e.style, r.style]);
|
|
1686
1686
|
else if (oo(s)) {
|
|
1687
1687
|
const i = e[s], o = r[s];
|
|
1688
1688
|
o && i !== o && !(W(i) && i.includes(o)) ? e[s] = i ? [].concat(i, o) : o : o == null && i == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
@@ -1692,32 +1692,32 @@ function Ma(...t) {
|
|
|
1692
1692
|
}
|
|
1693
1693
|
return e;
|
|
1694
1694
|
}
|
|
1695
|
-
let
|
|
1696
|
-
const
|
|
1697
|
-
let
|
|
1695
|
+
let le = null;
|
|
1696
|
+
const dt = () => le || zt;
|
|
1697
|
+
let or;
|
|
1698
1698
|
{
|
|
1699
|
-
const t =
|
|
1699
|
+
const t = bn(), e = (n, r) => {
|
|
1700
1700
|
let s;
|
|
1701
1701
|
return (s = t[n]) || (s = t[n] = []), s.push(r), (i) => {
|
|
1702
1702
|
s.length > 1 ? s.forEach((o) => o(i)) : s[0](i);
|
|
1703
1703
|
};
|
|
1704
1704
|
};
|
|
1705
|
-
|
|
1705
|
+
or = e(
|
|
1706
1706
|
"__VUE_INSTANCE_SETTERS__",
|
|
1707
|
-
(n) =>
|
|
1707
|
+
(n) => le = n
|
|
1708
1708
|
), e(
|
|
1709
1709
|
"__VUE_SSR_SETTERS__",
|
|
1710
|
-
(n) =>
|
|
1710
|
+
(n) => jt = n
|
|
1711
1711
|
);
|
|
1712
1712
|
}
|
|
1713
1713
|
const $a = (t) => {
|
|
1714
|
-
const e =
|
|
1715
|
-
return
|
|
1716
|
-
t.scope.off(),
|
|
1714
|
+
const e = le;
|
|
1715
|
+
return or(t), t.scope.on(), () => {
|
|
1716
|
+
t.scope.off(), or(e);
|
|
1717
1717
|
};
|
|
1718
1718
|
};
|
|
1719
|
-
let
|
|
1720
|
-
const
|
|
1719
|
+
let jt = !1;
|
|
1720
|
+
const fs = process.env.NODE_ENV !== "production" ? {
|
|
1721
1721
|
get(t, e) {
|
|
1722
1722
|
return Q(t, "get", ""), t[e];
|
|
1723
1723
|
},
|
|
@@ -1753,7 +1753,7 @@ function La(t) {
|
|
|
1753
1753
|
let n, r;
|
|
1754
1754
|
return Object.freeze({
|
|
1755
1755
|
get attrs() {
|
|
1756
|
-
return n || (n = new Proxy(t.attrs,
|
|
1756
|
+
return n || (n = new Proxy(t.attrs, fs));
|
|
1757
1757
|
},
|
|
1758
1758
|
get slots() {
|
|
1759
1759
|
return r || (r = Pa(t));
|
|
@@ -1765,7 +1765,7 @@ function La(t) {
|
|
|
1765
1765
|
});
|
|
1766
1766
|
} else
|
|
1767
1767
|
return {
|
|
1768
|
-
attrs: new Proxy(t.attrs,
|
|
1768
|
+
attrs: new Proxy(t.attrs, fs),
|
|
1769
1769
|
slots: t.slots,
|
|
1770
1770
|
emit: t.emit,
|
|
1771
1771
|
expose: e
|
|
@@ -1796,10 +1796,10 @@ function di(t, e, n = !1) {
|
|
|
1796
1796
|
function gi(t) {
|
|
1797
1797
|
return Z(t) && "__vccOpts" in t;
|
|
1798
1798
|
}
|
|
1799
|
-
const
|
|
1800
|
-
const n = /* @__PURE__ */ Go(t, e,
|
|
1799
|
+
const ar = (t, e) => {
|
|
1800
|
+
const n = /* @__PURE__ */ Go(t, e, jt);
|
|
1801
1801
|
if (process.env.NODE_ENV !== "production") {
|
|
1802
|
-
const r =
|
|
1802
|
+
const r = dt();
|
|
1803
1803
|
r && r.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
|
|
1804
1804
|
}
|
|
1805
1805
|
return n;
|
|
@@ -1810,14 +1810,14 @@ function Fa() {
|
|
|
1810
1810
|
const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, s = {
|
|
1811
1811
|
__vue_custom_formatter: !0,
|
|
1812
1812
|
header(u) {
|
|
1813
|
-
if (!
|
|
1813
|
+
if (!ie(u))
|
|
1814
1814
|
return null;
|
|
1815
1815
|
if (u.__isVue)
|
|
1816
1816
|
return ["div", t, "VueInstance"];
|
|
1817
1817
|
if (/* @__PURE__ */ ee(u)) {
|
|
1818
|
-
|
|
1818
|
+
pt();
|
|
1819
1819
|
const d = u.value;
|
|
1820
|
-
return
|
|
1820
|
+
return ht(), [
|
|
1821
1821
|
"div",
|
|
1822
1822
|
{},
|
|
1823
1823
|
["span", t, h(u)],
|
|
@@ -1826,11 +1826,11 @@ function Fa() {
|
|
|
1826
1826
|
">"
|
|
1827
1827
|
];
|
|
1828
1828
|
} else {
|
|
1829
|
-
if (/* @__PURE__ */
|
|
1829
|
+
if (/* @__PURE__ */ lt(u))
|
|
1830
1830
|
return [
|
|
1831
1831
|
"div",
|
|
1832
1832
|
{},
|
|
1833
|
-
["span", t, /* @__PURE__ */
|
|
1833
|
+
["span", t, /* @__PURE__ */ oe(u) ? "ShallowReactive" : "Reactive"],
|
|
1834
1834
|
"<",
|
|
1835
1835
|
l(u),
|
|
1836
1836
|
`>${/* @__PURE__ */ ve(u) ? " (readonly)" : ""}`
|
|
@@ -1839,7 +1839,7 @@ function Fa() {
|
|
|
1839
1839
|
return [
|
|
1840
1840
|
"div",
|
|
1841
1841
|
{},
|
|
1842
|
-
["span", t, /* @__PURE__ */
|
|
1842
|
+
["span", t, /* @__PURE__ */ oe(u) ? "ShallowReadonly" : "Readonly"],
|
|
1843
1843
|
"<",
|
|
1844
1844
|
l(u),
|
|
1845
1845
|
">"
|
|
@@ -1861,7 +1861,7 @@ function Fa() {
|
|
|
1861
1861
|
};
|
|
1862
1862
|
function i(u) {
|
|
1863
1863
|
const d = [];
|
|
1864
|
-
u.type.props && u.props && d.push(o("props", /* @__PURE__ */ N(u.props))), u.setupState !==
|
|
1864
|
+
u.type.props && u.props && d.push(o("props", /* @__PURE__ */ N(u.props))), u.setupState !== Dt && d.push(o("setup", u.setupState)), u.data !== Dt && d.push(o("data", /* @__PURE__ */ N(u.data)));
|
|
1865
1865
|
const g = c(u, "computed");
|
|
1866
1866
|
g && d.push(o("computed", g));
|
|
1867
1867
|
const _ = c(u, "inject");
|
|
@@ -1904,7 +1904,7 @@ function Fa() {
|
|
|
1904
1904
|
] : ["span", {}];
|
|
1905
1905
|
}
|
|
1906
1906
|
function l(u, d = !0) {
|
|
1907
|
-
return typeof u == "number" ? ["span", e, u] : typeof u == "string" ? ["span", n, JSON.stringify(u)] : typeof u == "boolean" ? ["span", r, u] :
|
|
1907
|
+
return typeof u == "number" ? ["span", e, u] : typeof u == "string" ? ["span", n, JSON.stringify(u)] : typeof u == "boolean" ? ["span", r, u] : ie(u) ? ["object", { object: d ? /* @__PURE__ */ N(u) : u }] : ["span", n, String(u)];
|
|
1908
1908
|
}
|
|
1909
1909
|
function c(u, d) {
|
|
1910
1910
|
const g = u.type;
|
|
@@ -1917,11 +1917,11 @@ function Fa() {
|
|
|
1917
1917
|
}
|
|
1918
1918
|
function p(u, d, g) {
|
|
1919
1919
|
const _ = u[g];
|
|
1920
|
-
if (W(_) && _.includes(d) ||
|
|
1920
|
+
if (W(_) && _.includes(d) || ie(_) && d in _ || u.extends && p(u.extends, d, g) || u.mixins && u.mixins.some((y) => p(y, d, g)))
|
|
1921
1921
|
return !0;
|
|
1922
1922
|
}
|
|
1923
1923
|
function h(u) {
|
|
1924
|
-
return /* @__PURE__ */
|
|
1924
|
+
return /* @__PURE__ */ oe(u) ? "ShallowRef" : u.effect ? "ComputedRef" : "Ref";
|
|
1925
1925
|
}
|
|
1926
1926
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
|
|
1927
1927
|
}
|
|
@@ -1935,18 +1935,26 @@ process.env.NODE_ENV !== "production" && Va();
|
|
|
1935
1935
|
function Ha(t) {
|
|
1936
1936
|
return t.map((e) => ({ value: e, label: `${e}` }));
|
|
1937
1937
|
}
|
|
1938
|
-
const mi = "*",
|
|
1939
|
-
function
|
|
1940
|
-
return t.join(
|
|
1938
|
+
const mi = "*", Tr = "#", ut = "$", En = ".";
|
|
1939
|
+
function z(...t) {
|
|
1940
|
+
return t.join(En);
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1943
|
-
return t.split(
|
|
1942
|
+
function Nt(t) {
|
|
1943
|
+
return t.split(En).filter((e) => e !== "");
|
|
1944
1944
|
}
|
|
1945
1945
|
function Ua(t) {
|
|
1946
|
-
return t.startsWith(
|
|
1946
|
+
return t.startsWith(ut) && (t = z(...Nt(t).slice(1))), t;
|
|
1947
|
+
}
|
|
1948
|
+
function _i(t, e, n, r = "") {
|
|
1949
|
+
if (t == null || typeof t != "object") return;
|
|
1950
|
+
const s = Array.isArray(t) ? t.map((i, o) => String(o)) : Object.keys(t);
|
|
1951
|
+
for (const i of s) {
|
|
1952
|
+
const o = r ? z(r, i) : i;
|
|
1953
|
+
e(o) ? t[i] = n(o) : _i(t[i], e, n, o);
|
|
1954
|
+
}
|
|
1947
1955
|
}
|
|
1948
1956
|
function Ba(t) {
|
|
1949
|
-
const e =
|
|
1957
|
+
const e = ae(t);
|
|
1950
1958
|
return e ? e.type === "set" && e.elements.type === "string" && !e.elements.one_of : !1;
|
|
1951
1959
|
}
|
|
1952
1960
|
function Wa(t) {
|
|
@@ -1956,7 +1964,7 @@ function Ec(t) {
|
|
|
1956
1964
|
return t.type === "set" && "elements" in t && "one_of" in t.elements;
|
|
1957
1965
|
}
|
|
1958
1966
|
const Ga = /* @__PURE__ */ Symbol("free-form-field-renderer-slots"), qa = "free-form-field-renderers-slot";
|
|
1959
|
-
function
|
|
1967
|
+
function kr() {
|
|
1960
1968
|
return {
|
|
1961
1969
|
async: !1,
|
|
1962
1970
|
breaks: !1,
|
|
@@ -1970,23 +1978,23 @@ function vr() {
|
|
|
1970
1978
|
walkTokens: null
|
|
1971
1979
|
};
|
|
1972
1980
|
}
|
|
1973
|
-
let
|
|
1974
|
-
function
|
|
1975
|
-
|
|
1981
|
+
let Ye = kr();
|
|
1982
|
+
function bi(t) {
|
|
1983
|
+
Ye = t;
|
|
1976
1984
|
}
|
|
1977
|
-
const
|
|
1985
|
+
const yi = /[&<>"']/, Ka = new RegExp(yi.source, "g"), wi = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Ya = new RegExp(wi.source, "g"), Za = {
|
|
1978
1986
|
"&": "&",
|
|
1979
1987
|
"<": "<",
|
|
1980
1988
|
">": ">",
|
|
1981
1989
|
'"': """,
|
|
1982
1990
|
"'": "'"
|
|
1983
|
-
},
|
|
1984
|
-
function
|
|
1991
|
+
}, ps = (t) => Za[t];
|
|
1992
|
+
function ce(t, e) {
|
|
1985
1993
|
if (e) {
|
|
1986
|
-
if (
|
|
1987
|
-
return t.replace(Ka,
|
|
1988
|
-
} else if (
|
|
1989
|
-
return t.replace(Ya,
|
|
1994
|
+
if (yi.test(t))
|
|
1995
|
+
return t.replace(Ka, ps);
|
|
1996
|
+
} else if (wi.test(t))
|
|
1997
|
+
return t.replace(Ya, ps);
|
|
1990
1998
|
return t;
|
|
1991
1999
|
}
|
|
1992
2000
|
const Xa = /(^|[^\[])\^/g;
|
|
@@ -2002,7 +2010,7 @@ function P(t, e) {
|
|
|
2002
2010
|
};
|
|
2003
2011
|
return r;
|
|
2004
2012
|
}
|
|
2005
|
-
function
|
|
2013
|
+
function hs(t) {
|
|
2006
2014
|
try {
|
|
2007
2015
|
t = encodeURI(t).replace(/%25/g, "%");
|
|
2008
2016
|
} catch {
|
|
@@ -2010,8 +2018,8 @@ function ds(t) {
|
|
|
2010
2018
|
}
|
|
2011
2019
|
return t;
|
|
2012
2020
|
}
|
|
2013
|
-
const
|
|
2014
|
-
function
|
|
2021
|
+
const It = { exec: () => null };
|
|
2022
|
+
function ds(t, e) {
|
|
2015
2023
|
const n = t.replace(/\|/g, (i, o, l) => {
|
|
2016
2024
|
let c = !1, p = o;
|
|
2017
2025
|
for (; --p >= 0 && l[p] === "\\"; )
|
|
@@ -2029,7 +2037,7 @@ function gs(t, e) {
|
|
|
2029
2037
|
r[s] = r[s].trim().replace(/\\\|/g, "|");
|
|
2030
2038
|
return r;
|
|
2031
2039
|
}
|
|
2032
|
-
function
|
|
2040
|
+
function Tt(t, e, n) {
|
|
2033
2041
|
const r = t.length;
|
|
2034
2042
|
if (r === 0)
|
|
2035
2043
|
return "";
|
|
@@ -2051,8 +2059,8 @@ function Qa(t, e) {
|
|
|
2051
2059
|
return r;
|
|
2052
2060
|
return -1;
|
|
2053
2061
|
}
|
|
2054
|
-
function
|
|
2055
|
-
const s = e.href, i = e.title ?
|
|
2062
|
+
function gs(t, e, n, r) {
|
|
2063
|
+
const s = e.href, i = e.title ? ce(e.title) : null, o = t[1].replace(/\\([\[\]])/g, "$1");
|
|
2056
2064
|
if (t[0].charAt(0) !== "!") {
|
|
2057
2065
|
r.state.inLink = !0;
|
|
2058
2066
|
const l = {
|
|
@@ -2070,7 +2078,7 @@ function ms(t, e, n, r) {
|
|
|
2070
2078
|
raw: n,
|
|
2071
2079
|
href: s,
|
|
2072
2080
|
title: i,
|
|
2073
|
-
text:
|
|
2081
|
+
text: ce(o)
|
|
2074
2082
|
};
|
|
2075
2083
|
}
|
|
2076
2084
|
function Ja(t, e) {
|
|
@@ -2088,14 +2096,14 @@ function Ja(t, e) {
|
|
|
2088
2096
|
}).join(`
|
|
2089
2097
|
`);
|
|
2090
2098
|
}
|
|
2091
|
-
class
|
|
2099
|
+
class hn {
|
|
2092
2100
|
options;
|
|
2093
2101
|
rules;
|
|
2094
2102
|
// set by the lexer
|
|
2095
2103
|
lexer;
|
|
2096
2104
|
// set by the lexer
|
|
2097
2105
|
constructor(e) {
|
|
2098
|
-
this.options = e ||
|
|
2106
|
+
this.options = e || Ye;
|
|
2099
2107
|
}
|
|
2100
2108
|
space(e) {
|
|
2101
2109
|
const n = this.rules.block.newline.exec(e);
|
|
@@ -2113,7 +2121,7 @@ class dn {
|
|
|
2113
2121
|
type: "code",
|
|
2114
2122
|
raw: n[0],
|
|
2115
2123
|
codeBlockStyle: "indented",
|
|
2116
|
-
text: this.options.pedantic ? r :
|
|
2124
|
+
text: this.options.pedantic ? r : Tt(r, `
|
|
2117
2125
|
`)
|
|
2118
2126
|
};
|
|
2119
2127
|
}
|
|
@@ -2135,7 +2143,7 @@ class dn {
|
|
|
2135
2143
|
if (n) {
|
|
2136
2144
|
let r = n[2].trim();
|
|
2137
2145
|
if (/#$/.test(r)) {
|
|
2138
|
-
const s =
|
|
2146
|
+
const s = Tt(r, "#");
|
|
2139
2147
|
(this.options.pedantic || !s || / $/.test(s)) && (r = s.trim());
|
|
2140
2148
|
}
|
|
2141
2149
|
return {
|
|
@@ -2152,14 +2160,14 @@ class dn {
|
|
|
2152
2160
|
if (n)
|
|
2153
2161
|
return {
|
|
2154
2162
|
type: "hr",
|
|
2155
|
-
raw:
|
|
2163
|
+
raw: Tt(n[0], `
|
|
2156
2164
|
`)
|
|
2157
2165
|
};
|
|
2158
2166
|
}
|
|
2159
2167
|
blockquote(e) {
|
|
2160
2168
|
const n = this.rules.block.blockquote.exec(e);
|
|
2161
2169
|
if (n) {
|
|
2162
|
-
let r =
|
|
2170
|
+
let r = Tt(n[0], `
|
|
2163
2171
|
`).split(`
|
|
2164
2172
|
`), s = "", i = "";
|
|
2165
2173
|
const o = [];
|
|
@@ -2190,14 +2198,14 @@ ${u}` : u;
|
|
|
2190
2198
|
if (g?.type === "blockquote") {
|
|
2191
2199
|
const _ = g, y = _.raw + `
|
|
2192
2200
|
` + r.join(`
|
|
2193
|
-
`),
|
|
2194
|
-
o[o.length - 1] =
|
|
2201
|
+
`), k = this.blockquote(y);
|
|
2202
|
+
o[o.length - 1] = k, s = s.substring(0, s.length - _.raw.length) + k.raw, i = i.substring(0, i.length - _.text.length) + k.text;
|
|
2195
2203
|
break;
|
|
2196
2204
|
} else if (g?.type === "list") {
|
|
2197
2205
|
const _ = g, y = _.raw + `
|
|
2198
2206
|
` + r.join(`
|
|
2199
|
-
`),
|
|
2200
|
-
o[o.length - 1] =
|
|
2207
|
+
`), k = this.list(y);
|
|
2208
|
+
o[o.length - 1] = k, s = s.substring(0, s.length - g.raw.length) + k.raw, i = i.substring(0, i.length - _.raw.length) + k.raw, r = y.substring(o[o.length - 1].raw.length).split(`
|
|
2201
2209
|
`);
|
|
2202
2210
|
continue;
|
|
2203
2211
|
}
|
|
@@ -2237,10 +2245,10 @@ ${u}` : u;
|
|
|
2237
2245
|
`, e = e.substring(d.length + 1), c = !0), !c) {
|
|
2238
2246
|
const A = new RegExp(`^ {0,${Math.min(3, _ - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), R = new RegExp(`^ {0,${Math.min(3, _ - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), S = new RegExp(`^ {0,${Math.min(3, _ - 1)}}(?:\`\`\`|~~~)`), w = new RegExp(`^ {0,${Math.min(3, _ - 1)}}#`), T = new RegExp(`^ {0,${Math.min(3, _ - 1)}}<(?:[a-z].*>|!--)`, "i");
|
|
2239
2247
|
for (; e; ) {
|
|
2240
|
-
const
|
|
2248
|
+
const x = e.split(`
|
|
2241
2249
|
`, 1)[0];
|
|
2242
2250
|
let v;
|
|
2243
|
-
if (d =
|
|
2251
|
+
if (d = x, this.options.pedantic ? (d = d.replace(/^ {1,4}(?=( {4})*[^ ])/g, " "), v = d) : v = d.replace(/\t/g, " "), S.test(d) || w.test(d) || T.test(d) || A.test(d) || R.test(d))
|
|
2244
2252
|
break;
|
|
2245
2253
|
if (v.search(/[^ ]/) >= _ || !d.trim())
|
|
2246
2254
|
h += `
|
|
@@ -2251,17 +2259,17 @@ ${u}` : u;
|
|
|
2251
2259
|
h += `
|
|
2252
2260
|
` + d;
|
|
2253
2261
|
}
|
|
2254
|
-
!g && !d.trim() && (g = !0), p +=
|
|
2255
|
-
`, e = e.substring(
|
|
2262
|
+
!g && !d.trim() && (g = !0), p += x + `
|
|
2263
|
+
`, e = e.substring(x.length + 1), u = v.slice(_);
|
|
2256
2264
|
}
|
|
2257
2265
|
}
|
|
2258
2266
|
i.loose || (l ? i.loose = !0 : /\n[ \t]*\n[ \t]*$/.test(p) && (l = !0));
|
|
2259
|
-
let y = null,
|
|
2260
|
-
this.options.gfm && (y = /^\[[ xX]\] /.exec(h), y && (
|
|
2267
|
+
let y = null, k;
|
|
2268
|
+
this.options.gfm && (y = /^\[[ xX]\] /.exec(h), y && (k = y[0] !== "[ ] ", h = h.replace(/^\[[ xX]\] +/, ""))), i.items.push({
|
|
2261
2269
|
type: "list_item",
|
|
2262
2270
|
raw: p,
|
|
2263
2271
|
task: !!y,
|
|
2264
|
-
checked:
|
|
2272
|
+
checked: k,
|
|
2265
2273
|
loose: !1,
|
|
2266
2274
|
text: h,
|
|
2267
2275
|
tokens: []
|
|
@@ -2307,7 +2315,7 @@ ${u}` : u;
|
|
|
2307
2315
|
const n = this.rules.block.table.exec(e);
|
|
2308
2316
|
if (!n || !/[:|]/.test(n[2]))
|
|
2309
2317
|
return;
|
|
2310
|
-
const r =
|
|
2318
|
+
const r = ds(n[1]), s = n[2].replace(/^\||\| *$/g, "").split("|"), i = n[3] && n[3].trim() ? n[3].replace(/\n[ \t]*$/, "").split(`
|
|
2311
2319
|
`) : [], o = {
|
|
2312
2320
|
type: "table",
|
|
2313
2321
|
raw: n[0],
|
|
@@ -2326,7 +2334,7 @@ ${u}` : u;
|
|
|
2326
2334
|
align: o.align[l]
|
|
2327
2335
|
});
|
|
2328
2336
|
for (const l of i)
|
|
2329
|
-
o.rows.push(
|
|
2337
|
+
o.rows.push(ds(l, o.header.length).map((c, p) => ({
|
|
2330
2338
|
text: c,
|
|
2331
2339
|
tokens: this.lexer.inline(c),
|
|
2332
2340
|
header: !1,
|
|
@@ -2375,7 +2383,7 @@ ${u}` : u;
|
|
|
2375
2383
|
return {
|
|
2376
2384
|
type: "escape",
|
|
2377
2385
|
raw: n[0],
|
|
2378
|
-
text:
|
|
2386
|
+
text: ce(n[1])
|
|
2379
2387
|
};
|
|
2380
2388
|
}
|
|
2381
2389
|
tag(e) {
|
|
@@ -2397,7 +2405,7 @@ ${u}` : u;
|
|
|
2397
2405
|
if (!this.options.pedantic && /^</.test(r)) {
|
|
2398
2406
|
if (!/>$/.test(r))
|
|
2399
2407
|
return;
|
|
2400
|
-
const o =
|
|
2408
|
+
const o = Tt(r.slice(0, -1), "\\");
|
|
2401
2409
|
if ((r.length - o.length) % 2 === 0)
|
|
2402
2410
|
return;
|
|
2403
2411
|
} else {
|
|
@@ -2413,7 +2421,7 @@ ${u}` : u;
|
|
|
2413
2421
|
o && (s = o[1], i = o[3]);
|
|
2414
2422
|
} else
|
|
2415
2423
|
i = n[3] ? n[3].slice(1, -1) : "";
|
|
2416
|
-
return s = s.trim(), /^</.test(s) && (this.options.pedantic && !/>$/.test(r) ? s = s.slice(1) : s = s.slice(1, -1)),
|
|
2424
|
+
return s = s.trim(), /^</.test(s) && (this.options.pedantic && !/>$/.test(r) ? s = s.slice(1) : s = s.slice(1, -1)), gs(n, {
|
|
2417
2425
|
href: s && s.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
2418
2426
|
title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
|
|
2419
2427
|
}, n[0], this.lexer);
|
|
@@ -2431,7 +2439,7 @@ ${u}` : u;
|
|
|
2431
2439
|
text: o
|
|
2432
2440
|
};
|
|
2433
2441
|
}
|
|
2434
|
-
return
|
|
2442
|
+
return gs(r, i, r[0], this.lexer);
|
|
2435
2443
|
}
|
|
2436
2444
|
}
|
|
2437
2445
|
emStrong(e, n, r = "") {
|
|
@@ -2480,7 +2488,7 @@ ${u}` : u;
|
|
|
2480
2488
|
if (n) {
|
|
2481
2489
|
let r = n[2].replace(/\n/g, " ");
|
|
2482
2490
|
const s = /[^ ]/.test(r), i = /^ /.test(r) && / $/.test(r);
|
|
2483
|
-
return s && i && (r = r.substring(1, r.length - 1)), r =
|
|
2491
|
+
return s && i && (r = r.substring(1, r.length - 1)), r = ce(r, !0), {
|
|
2484
2492
|
type: "codespan",
|
|
2485
2493
|
raw: n[0],
|
|
2486
2494
|
text: r
|
|
@@ -2509,7 +2517,7 @@ ${u}` : u;
|
|
|
2509
2517
|
const n = this.rules.inline.autolink.exec(e);
|
|
2510
2518
|
if (n) {
|
|
2511
2519
|
let r, s;
|
|
2512
|
-
return n[2] === "@" ? (r =
|
|
2520
|
+
return n[2] === "@" ? (r = ce(n[1]), s = "mailto:" + r) : (r = ce(n[1]), s = r), {
|
|
2513
2521
|
type: "link",
|
|
2514
2522
|
raw: n[0],
|
|
2515
2523
|
text: r,
|
|
@@ -2529,13 +2537,13 @@ ${u}` : u;
|
|
|
2529
2537
|
if (n = this.rules.inline.url.exec(e)) {
|
|
2530
2538
|
let r, s;
|
|
2531
2539
|
if (n[2] === "@")
|
|
2532
|
-
r =
|
|
2540
|
+
r = ce(n[0]), s = "mailto:" + r;
|
|
2533
2541
|
else {
|
|
2534
2542
|
let i;
|
|
2535
2543
|
do
|
|
2536
2544
|
i = n[0], n[0] = this.rules.inline._backpedal.exec(n[0])?.[0] ?? "";
|
|
2537
2545
|
while (i !== n[0]);
|
|
2538
|
-
r =
|
|
2546
|
+
r = ce(n[0]), n[1] === "www." ? s = "http://" + n[0] : s = n[0];
|
|
2539
2547
|
}
|
|
2540
2548
|
return {
|
|
2541
2549
|
type: "link",
|
|
@@ -2556,7 +2564,7 @@ ${u}` : u;
|
|
|
2556
2564
|
const n = this.rules.inline.text.exec(e);
|
|
2557
2565
|
if (n) {
|
|
2558
2566
|
let r;
|
|
2559
|
-
return this.lexer.state.inRawBlock ? r = n[0] : r =
|
|
2567
|
+
return this.lexer.state.inRawBlock ? r = n[0] : r = ce(n[0]), {
|
|
2560
2568
|
type: "text",
|
|
2561
2569
|
raw: n[0],
|
|
2562
2570
|
text: r
|
|
@@ -2564,118 +2572,118 @@ ${u}` : u;
|
|
|
2564
2572
|
}
|
|
2565
2573
|
}
|
|
2566
2574
|
}
|
|
2567
|
-
const el = /^(?:[ \t]*(?:\n|$))+/, tl = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, nl = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,
|
|
2575
|
+
const el = /^(?:[ \t]*(?:\n|$))+/, tl = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, nl = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ft = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, rl = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ei = /(?:[*+-]|\d{1,9}[.)])/, Ti = P(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, Ei).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), xr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, sl = /^[^\n]+/, Sr = /(?!\s*\])(?:\\.|[^\[\]\\])+/, il = P(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Sr).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ol = P(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ei).getRegex(), Tn = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", vr = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, al = P("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", vr).replace("tag", Tn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ki = P(xr).replace("hr", Ft).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Tn).getRegex(), ll = P(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ki).getRegex(), Ar = {
|
|
2568
2576
|
blockquote: ll,
|
|
2569
2577
|
code: tl,
|
|
2570
2578
|
def: il,
|
|
2571
2579
|
fences: nl,
|
|
2572
2580
|
heading: rl,
|
|
2573
|
-
hr:
|
|
2581
|
+
hr: Ft,
|
|
2574
2582
|
html: al,
|
|
2575
|
-
lheading:
|
|
2583
|
+
lheading: Ti,
|
|
2576
2584
|
list: ol,
|
|
2577
2585
|
newline: el,
|
|
2578
|
-
paragraph:
|
|
2579
|
-
table:
|
|
2586
|
+
paragraph: ki,
|
|
2587
|
+
table: It,
|
|
2580
2588
|
text: sl
|
|
2581
|
-
},
|
|
2582
|
-
...
|
|
2583
|
-
table:
|
|
2584
|
-
paragraph: P(
|
|
2589
|
+
}, ms = P("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Ft).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Tn).getRegex(), cl = {
|
|
2590
|
+
...Ar,
|
|
2591
|
+
table: ms,
|
|
2592
|
+
paragraph: P(xr).replace("hr", Ft).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ms).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Tn).getRegex()
|
|
2585
2593
|
}, ul = {
|
|
2586
|
-
...
|
|
2587
|
-
html: P(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",
|
|
2594
|
+
...Ar,
|
|
2595
|
+
html: P(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", vr).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
2588
2596
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
2589
2597
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
2590
|
-
fences:
|
|
2598
|
+
fences: It,
|
|
2591
2599
|
// fences not supported
|
|
2592
2600
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
2593
|
-
paragraph: P(
|
|
2594
|
-
]`).replace("lheading",
|
|
2595
|
-
}, xi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, fl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,
|
|
2596
|
-
_backpedal:
|
|
2601
|
+
paragraph: P(xr).replace("hr", Ft).replace("heading", ` *#{1,6} *[^
|
|
2602
|
+
]`).replace("lheading", Ti).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
2603
|
+
}, xi = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, fl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Si = /^( {2,}|\\)\n(?!\s*$)/, pl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Vt = "\\p{P}\\p{S}", hl = P(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, Vt).getRegex(), dl = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, gl = P(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Vt).getRegex(), ml = P("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Vt).getRegex(), _l = P("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Vt).getRegex(), bl = P(/\\([punct])/, "gu").replace(/punct/g, Vt).getRegex(), yl = P(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), wl = P(vr).replace("(?:-->|$)", "-->").getRegex(), El = P("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", wl).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), dn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Tl = P(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", dn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), vi = P(/^!?\[(label)\]\[(ref)\]/).replace("label", dn).replace("ref", Sr).getRegex(), Ai = P(/^!?\[(ref)\](?:\[\])?/).replace("ref", Sr).getRegex(), kl = P("reflink|nolink(?!\\()", "g").replace("reflink", vi).replace("nolink", Ai).getRegex(), Rr = {
|
|
2604
|
+
_backpedal: It,
|
|
2597
2605
|
// only used for GFM url
|
|
2598
2606
|
anyPunctuation: bl,
|
|
2599
2607
|
autolink: yl,
|
|
2600
2608
|
blockSkip: dl,
|
|
2601
|
-
br:
|
|
2609
|
+
br: Si,
|
|
2602
2610
|
code: fl,
|
|
2603
|
-
del:
|
|
2611
|
+
del: It,
|
|
2604
2612
|
emStrongLDelim: gl,
|
|
2605
2613
|
emStrongRDelimAst: ml,
|
|
2606
2614
|
emStrongRDelimUnd: _l,
|
|
2607
2615
|
escape: xi,
|
|
2608
2616
|
link: Tl,
|
|
2609
|
-
nolink:
|
|
2617
|
+
nolink: Ai,
|
|
2610
2618
|
punctuation: hl,
|
|
2611
|
-
reflink:
|
|
2612
|
-
reflinkSearch:
|
|
2619
|
+
reflink: vi,
|
|
2620
|
+
reflinkSearch: kl,
|
|
2613
2621
|
tag: El,
|
|
2614
2622
|
text: pl,
|
|
2615
|
-
url:
|
|
2616
|
-
},
|
|
2617
|
-
...
|
|
2618
|
-
link: P(/^!?\[(label)\]\((.*?)\)/).replace("label",
|
|
2619
|
-
reflink: P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",
|
|
2620
|
-
},
|
|
2621
|
-
...
|
|
2623
|
+
url: It
|
|
2624
|
+
}, xl = {
|
|
2625
|
+
...Rr,
|
|
2626
|
+
link: P(/^!?\[(label)\]\((.*?)\)/).replace("label", dn).getRegex(),
|
|
2627
|
+
reflink: P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", dn).getRegex()
|
|
2628
|
+
}, lr = {
|
|
2629
|
+
...Rr,
|
|
2622
2630
|
escape: P(xi).replace("])", "~|])").getRegex(),
|
|
2623
2631
|
url: P(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
2624
2632
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
2625
2633
|
del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
|
|
2626
2634
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
|
2627
2635
|
}, Sl = {
|
|
2628
|
-
...
|
|
2629
|
-
br: P(
|
|
2630
|
-
text: P(
|
|
2631
|
-
},
|
|
2632
|
-
normal:
|
|
2636
|
+
...lr,
|
|
2637
|
+
br: P(Si).replace("{2,}", "*").getRegex(),
|
|
2638
|
+
text: P(lr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
2639
|
+
}, en = {
|
|
2640
|
+
normal: Ar,
|
|
2633
2641
|
gfm: cl,
|
|
2634
2642
|
pedantic: ul
|
|
2635
|
-
},
|
|
2636
|
-
normal:
|
|
2637
|
-
gfm:
|
|
2643
|
+
}, kt = {
|
|
2644
|
+
normal: Rr,
|
|
2645
|
+
gfm: lr,
|
|
2638
2646
|
breaks: Sl,
|
|
2639
|
-
pedantic:
|
|
2647
|
+
pedantic: xl
|
|
2640
2648
|
};
|
|
2641
|
-
class
|
|
2649
|
+
class he {
|
|
2642
2650
|
tokens;
|
|
2643
2651
|
options;
|
|
2644
2652
|
state;
|
|
2645
2653
|
tokenizer;
|
|
2646
2654
|
inlineQueue;
|
|
2647
2655
|
constructor(e) {
|
|
2648
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
|
2656
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || Ye, this.options.tokenizer = this.options.tokenizer || new hn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
2649
2657
|
inLink: !1,
|
|
2650
2658
|
inRawBlock: !1,
|
|
2651
2659
|
top: !0
|
|
2652
2660
|
};
|
|
2653
2661
|
const n = {
|
|
2654
|
-
block:
|
|
2655
|
-
inline:
|
|
2662
|
+
block: en.normal,
|
|
2663
|
+
inline: kt.normal
|
|
2656
2664
|
};
|
|
2657
|
-
this.options.pedantic ? (n.block =
|
|
2665
|
+
this.options.pedantic ? (n.block = en.pedantic, n.inline = kt.pedantic) : this.options.gfm && (n.block = en.gfm, this.options.breaks ? n.inline = kt.breaks : n.inline = kt.gfm), this.tokenizer.rules = n;
|
|
2658
2666
|
}
|
|
2659
2667
|
/**
|
|
2660
2668
|
* Expose Rules
|
|
2661
2669
|
*/
|
|
2662
2670
|
static get rules() {
|
|
2663
2671
|
return {
|
|
2664
|
-
block:
|
|
2665
|
-
inline:
|
|
2672
|
+
block: en,
|
|
2673
|
+
inline: kt
|
|
2666
2674
|
};
|
|
2667
2675
|
}
|
|
2668
2676
|
/**
|
|
2669
2677
|
* Static Lex Method
|
|
2670
2678
|
*/
|
|
2671
2679
|
static lex(e, n) {
|
|
2672
|
-
return new
|
|
2680
|
+
return new he(n).lex(e);
|
|
2673
2681
|
}
|
|
2674
2682
|
/**
|
|
2675
2683
|
* Static Lex Inline Method
|
|
2676
2684
|
*/
|
|
2677
2685
|
static lexInline(e, n) {
|
|
2678
|
-
return new
|
|
2686
|
+
return new he(n).inlineTokens(e);
|
|
2679
2687
|
}
|
|
2680
2688
|
/**
|
|
2681
2689
|
* Preprocessing
|
|
@@ -2861,12 +2869,12 @@ class de {
|
|
|
2861
2869
|
return n;
|
|
2862
2870
|
}
|
|
2863
2871
|
}
|
|
2864
|
-
class
|
|
2872
|
+
class gn {
|
|
2865
2873
|
options;
|
|
2866
2874
|
parser;
|
|
2867
2875
|
// set by the parser
|
|
2868
2876
|
constructor(e) {
|
|
2869
|
-
this.options = e ||
|
|
2877
|
+
this.options = e || Ye;
|
|
2870
2878
|
}
|
|
2871
2879
|
space(e) {
|
|
2872
2880
|
return "";
|
|
@@ -2874,8 +2882,8 @@ class mn {
|
|
|
2874
2882
|
code({ text: e, lang: n, escaped: r }) {
|
|
2875
2883
|
const s = (n || "").match(/^\S*/)?.[0], i = e.replace(/\n$/, "") + `
|
|
2876
2884
|
`;
|
|
2877
|
-
return s ? '<pre><code class="language-' +
|
|
2878
|
-
` : "<pre><code>" + (r ? i :
|
|
2885
|
+
return s ? '<pre><code class="language-' + ce(s) + '">' + (r ? i : ce(i, !0)) + `</code></pre>
|
|
2886
|
+
` : "<pre><code>" + (r ? i : ce(i, !0)) + `</code></pre>
|
|
2879
2887
|
`;
|
|
2880
2888
|
}
|
|
2881
2889
|
blockquote({ tokens: e }) {
|
|
@@ -2974,7 +2982,7 @@ ${e}</tr>
|
|
|
2974
2982
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
2975
2983
|
}
|
|
2976
2984
|
link({ href: e, title: n, tokens: r }) {
|
|
2977
|
-
const s = this.parser.parseInline(r), i =
|
|
2985
|
+
const s = this.parser.parseInline(r), i = hs(e);
|
|
2978
2986
|
if (i === null)
|
|
2979
2987
|
return s;
|
|
2980
2988
|
e = i;
|
|
@@ -2982,7 +2990,7 @@ ${e}</tr>
|
|
|
2982
2990
|
return n && (o += ' title="' + n + '"'), o += ">" + s + "</a>", o;
|
|
2983
2991
|
}
|
|
2984
2992
|
image({ href: e, title: n, text: r }) {
|
|
2985
|
-
const s =
|
|
2993
|
+
const s = hs(e);
|
|
2986
2994
|
if (s === null)
|
|
2987
2995
|
return r;
|
|
2988
2996
|
e = s;
|
|
@@ -2993,7 +3001,7 @@ ${e}</tr>
|
|
|
2993
3001
|
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : e.text;
|
|
2994
3002
|
}
|
|
2995
3003
|
}
|
|
2996
|
-
class
|
|
3004
|
+
class Or {
|
|
2997
3005
|
// no need for block level renderers
|
|
2998
3006
|
strong({ text: e }) {
|
|
2999
3007
|
return e;
|
|
@@ -3023,24 +3031,24 @@ class Dr {
|
|
|
3023
3031
|
return "";
|
|
3024
3032
|
}
|
|
3025
3033
|
}
|
|
3026
|
-
class
|
|
3034
|
+
class de {
|
|
3027
3035
|
options;
|
|
3028
3036
|
renderer;
|
|
3029
3037
|
textRenderer;
|
|
3030
3038
|
constructor(e) {
|
|
3031
|
-
this.options = e ||
|
|
3039
|
+
this.options = e || Ye, this.options.renderer = this.options.renderer || new gn(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Or();
|
|
3032
3040
|
}
|
|
3033
3041
|
/**
|
|
3034
3042
|
* Static Parse Method
|
|
3035
3043
|
*/
|
|
3036
3044
|
static parse(e, n) {
|
|
3037
|
-
return new
|
|
3045
|
+
return new de(n).parse(e);
|
|
3038
3046
|
}
|
|
3039
3047
|
/**
|
|
3040
3048
|
* Static Parse Inline Method
|
|
3041
3049
|
*/
|
|
3042
3050
|
static parseInline(e, n) {
|
|
3043
|
-
return new
|
|
3051
|
+
return new de(n).parseInline(e);
|
|
3044
3052
|
}
|
|
3045
3053
|
/**
|
|
3046
3054
|
* Parse Loop
|
|
@@ -3185,11 +3193,11 @@ class ge {
|
|
|
3185
3193
|
return r;
|
|
3186
3194
|
}
|
|
3187
3195
|
}
|
|
3188
|
-
class
|
|
3196
|
+
class sn {
|
|
3189
3197
|
options;
|
|
3190
3198
|
block;
|
|
3191
3199
|
constructor(e) {
|
|
3192
|
-
this.options = e ||
|
|
3200
|
+
this.options = e || Ye;
|
|
3193
3201
|
}
|
|
3194
3202
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
3195
3203
|
"preprocess",
|
|
@@ -3218,26 +3226,26 @@ class on {
|
|
|
3218
3226
|
* Provide function to tokenize markdown
|
|
3219
3227
|
*/
|
|
3220
3228
|
provideLexer() {
|
|
3221
|
-
return this.block ?
|
|
3229
|
+
return this.block ? he.lex : he.lexInline;
|
|
3222
3230
|
}
|
|
3223
3231
|
/**
|
|
3224
3232
|
* Provide function to parse tokens
|
|
3225
3233
|
*/
|
|
3226
3234
|
provideParser() {
|
|
3227
|
-
return this.block ?
|
|
3235
|
+
return this.block ? de.parse : de.parseInline;
|
|
3228
3236
|
}
|
|
3229
3237
|
}
|
|
3230
3238
|
class vl {
|
|
3231
|
-
defaults =
|
|
3239
|
+
defaults = kr();
|
|
3232
3240
|
options = this.setOptions;
|
|
3233
3241
|
parse = this.parseMarkdown(!0);
|
|
3234
3242
|
parseInline = this.parseMarkdown(!1);
|
|
3235
|
-
Parser =
|
|
3236
|
-
Renderer =
|
|
3237
|
-
TextRenderer =
|
|
3238
|
-
Lexer =
|
|
3239
|
-
Tokenizer =
|
|
3240
|
-
Hooks =
|
|
3243
|
+
Parser = de;
|
|
3244
|
+
Renderer = gn;
|
|
3245
|
+
TextRenderer = Or;
|
|
3246
|
+
Lexer = he;
|
|
3247
|
+
Tokenizer = hn;
|
|
3248
|
+
Hooks = sn;
|
|
3241
3249
|
constructor(...e) {
|
|
3242
3250
|
this.use(...e);
|
|
3243
3251
|
}
|
|
@@ -3294,7 +3302,7 @@ class vl {
|
|
|
3294
3302
|
}
|
|
3295
3303
|
"childTokens" in i && i.childTokens && (n.childTokens[i.name] = i.childTokens);
|
|
3296
3304
|
}), s.extensions = n), r.renderer) {
|
|
3297
|
-
const i = this.defaults.renderer || new
|
|
3305
|
+
const i = this.defaults.renderer || new gn(this.defaults);
|
|
3298
3306
|
for (const o in r.renderer) {
|
|
3299
3307
|
if (!(o in i))
|
|
3300
3308
|
throw new Error(`renderer '${o}' does not exist`);
|
|
@@ -3309,7 +3317,7 @@ class vl {
|
|
|
3309
3317
|
s.renderer = i;
|
|
3310
3318
|
}
|
|
3311
3319
|
if (r.tokenizer) {
|
|
3312
|
-
const i = this.defaults.tokenizer || new
|
|
3320
|
+
const i = this.defaults.tokenizer || new hn(this.defaults);
|
|
3313
3321
|
for (const o in r.tokenizer) {
|
|
3314
3322
|
if (!(o in i))
|
|
3315
3323
|
throw new Error(`tokenizer '${o}' does not exist`);
|
|
@@ -3324,14 +3332,14 @@ class vl {
|
|
|
3324
3332
|
s.tokenizer = i;
|
|
3325
3333
|
}
|
|
3326
3334
|
if (r.hooks) {
|
|
3327
|
-
const i = this.defaults.hooks || new
|
|
3335
|
+
const i = this.defaults.hooks || new sn();
|
|
3328
3336
|
for (const o in r.hooks) {
|
|
3329
3337
|
if (!(o in i))
|
|
3330
3338
|
throw new Error(`hook '${o}' does not exist`);
|
|
3331
3339
|
if (["options", "block"].includes(o))
|
|
3332
3340
|
continue;
|
|
3333
3341
|
const l = o, c = r.hooks[l], p = i[l];
|
|
3334
|
-
|
|
3342
|
+
sn.passThroughHooks.has(o) ? i[l] = (h) => {
|
|
3335
3343
|
if (this.defaults.async)
|
|
3336
3344
|
return Promise.resolve(c.call(i, h)).then((d) => p.call(i, d));
|
|
3337
3345
|
const u = c.call(i, h);
|
|
@@ -3357,10 +3365,10 @@ class vl {
|
|
|
3357
3365
|
return this.defaults = { ...this.defaults, ...e }, this;
|
|
3358
3366
|
}
|
|
3359
3367
|
lexer(e, n) {
|
|
3360
|
-
return
|
|
3368
|
+
return he.lex(e, n ?? this.defaults);
|
|
3361
3369
|
}
|
|
3362
3370
|
parser(e, n) {
|
|
3363
|
-
return
|
|
3371
|
+
return de.parse(e, n ?? this.defaults);
|
|
3364
3372
|
}
|
|
3365
3373
|
parseMarkdown(e) {
|
|
3366
3374
|
return (r, s) => {
|
|
@@ -3372,7 +3380,7 @@ class vl {
|
|
|
3372
3380
|
if (typeof r != "string")
|
|
3373
3381
|
return l(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(r) + ", string expected"));
|
|
3374
3382
|
o.hooks && (o.hooks.options = o, o.hooks.block = e);
|
|
3375
|
-
const c = o.hooks ? o.hooks.provideLexer() : e ?
|
|
3383
|
+
const c = o.hooks ? o.hooks.provideLexer() : e ? he.lex : he.lexInline, p = o.hooks ? o.hooks.provideParser() : e ? de.parse : de.parseInline;
|
|
3376
3384
|
if (o.async)
|
|
3377
3385
|
return Promise.resolve(o.hooks ? o.hooks.preprocess(r) : r).then((h) => c(h, o)).then((h) => o.hooks ? o.hooks.processAllTokens(h) : h).then((h) => o.walkTokens ? Promise.all(this.walkTokens(h, o.walkTokens)).then(() => h) : h).then((h) => p(h, o)).then((h) => o.hooks ? o.hooks.postprocess(h) : h).catch(l);
|
|
3378
3386
|
try {
|
|
@@ -3390,7 +3398,7 @@ class vl {
|
|
|
3390
3398
|
return (r) => {
|
|
3391
3399
|
if (r.message += `
|
|
3392
3400
|
Please report this to https://github.com/markedjs/marked.`, e) {
|
|
3393
|
-
const s = "<p>An error occurred:</p><pre>" +
|
|
3401
|
+
const s = "<p>An error occurred:</p><pre>" + ce(r.message + "", !0) + "</pre>";
|
|
3394
3402
|
return n ? Promise.resolve(s) : s;
|
|
3395
3403
|
}
|
|
3396
3404
|
if (n)
|
|
@@ -3399,39 +3407,39 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
3399
3407
|
};
|
|
3400
3408
|
}
|
|
3401
3409
|
}
|
|
3402
|
-
const
|
|
3410
|
+
const Ke = new vl();
|
|
3403
3411
|
function $(t, e) {
|
|
3404
|
-
return
|
|
3412
|
+
return Ke.parse(t, e);
|
|
3405
3413
|
}
|
|
3406
3414
|
$.options = $.setOptions = function(t) {
|
|
3407
|
-
return
|
|
3415
|
+
return Ke.setOptions(t), $.defaults = Ke.defaults, bi($.defaults), $;
|
|
3408
3416
|
};
|
|
3409
|
-
$.getDefaults =
|
|
3410
|
-
$.defaults =
|
|
3417
|
+
$.getDefaults = kr;
|
|
3418
|
+
$.defaults = Ye;
|
|
3411
3419
|
$.use = function(...t) {
|
|
3412
|
-
return
|
|
3420
|
+
return Ke.use(...t), $.defaults = Ke.defaults, bi($.defaults), $;
|
|
3413
3421
|
};
|
|
3414
3422
|
$.walkTokens = function(t, e) {
|
|
3415
|
-
return
|
|
3423
|
+
return Ke.walkTokens(t, e);
|
|
3416
3424
|
};
|
|
3417
|
-
$.parseInline =
|
|
3418
|
-
$.Parser =
|
|
3419
|
-
$.parser =
|
|
3420
|
-
$.Renderer =
|
|
3421
|
-
$.TextRenderer =
|
|
3422
|
-
$.Lexer =
|
|
3423
|
-
$.lexer =
|
|
3424
|
-
$.Tokenizer =
|
|
3425
|
-
$.Hooks =
|
|
3425
|
+
$.parseInline = Ke.parseInline;
|
|
3426
|
+
$.Parser = de;
|
|
3427
|
+
$.parser = de.parse;
|
|
3428
|
+
$.Renderer = gn;
|
|
3429
|
+
$.TextRenderer = Or;
|
|
3430
|
+
$.Lexer = he;
|
|
3431
|
+
$.lexer = he.lex;
|
|
3432
|
+
$.Tokenizer = hn;
|
|
3433
|
+
$.Hooks = sn;
|
|
3426
3434
|
$.parse = $;
|
|
3427
3435
|
$.options;
|
|
3428
3436
|
$.setOptions;
|
|
3429
3437
|
$.use;
|
|
3430
3438
|
$.walkTokens;
|
|
3431
3439
|
$.parseInline;
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
function
|
|
3440
|
+
de.parse;
|
|
3441
|
+
he.lex;
|
|
3442
|
+
function _s(t, e) {
|
|
3435
3443
|
(e == null || e > t.length) && (e = t.length);
|
|
3436
3444
|
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
|
|
3437
3445
|
return r;
|
|
@@ -3466,48 +3474,48 @@ function Nl(t, e) {
|
|
|
3466
3474
|
}
|
|
3467
3475
|
function Il(t, e) {
|
|
3468
3476
|
if (t) {
|
|
3469
|
-
if (typeof t == "string") return
|
|
3477
|
+
if (typeof t == "string") return _s(t, e);
|
|
3470
3478
|
var n = {}.toString.call(t).slice(8, -1);
|
|
3471
|
-
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
3479
|
+
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? _s(t, e) : void 0;
|
|
3472
3480
|
}
|
|
3473
3481
|
}
|
|
3474
|
-
const
|
|
3475
|
-
let J = Object.freeze, te = Object.seal,
|
|
3482
|
+
const Ri = Object.entries, bs = Object.setPrototypeOf, Dl = Object.isFrozen, Cl = Object.getPrototypeOf, Ml = Object.getOwnPropertyDescriptor;
|
|
3483
|
+
let J = Object.freeze, te = Object.seal, it = Object.create, Oi = typeof Reflect < "u" && Reflect, cr = Oi.apply, ur = Oi.construct;
|
|
3476
3484
|
J || (J = function(e) {
|
|
3477
3485
|
return e;
|
|
3478
3486
|
});
|
|
3479
3487
|
te || (te = function(e) {
|
|
3480
3488
|
return e;
|
|
3481
3489
|
});
|
|
3482
|
-
|
|
3490
|
+
cr || (cr = function(e, n) {
|
|
3483
3491
|
for (var r = arguments.length, s = new Array(r > 2 ? r - 2 : 0), i = 2; i < r; i++)
|
|
3484
3492
|
s[i - 2] = arguments[i];
|
|
3485
3493
|
return e.apply(n, s);
|
|
3486
3494
|
});
|
|
3487
|
-
|
|
3495
|
+
ur || (ur = function(e) {
|
|
3488
3496
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), s = 1; s < n; s++)
|
|
3489
3497
|
r[s - 1] = arguments[s];
|
|
3490
3498
|
return new e(...r);
|
|
3491
3499
|
});
|
|
3492
|
-
const
|
|
3500
|
+
const xt = q(Array.prototype.forEach), $l = q(Array.prototype.lastIndexOf), ys = q(Array.prototype.pop), nt = q(Array.prototype.push), Pl = q(Array.prototype.splice), Fe = Array.isArray, At = q(String.prototype.toLowerCase), Yn = q(String.prototype.toString), ws = q(String.prototype.match), St = q(String.prototype.replace), Es = q(String.prototype.indexOf), Ll = q(String.prototype.trim), zl = q(Number.prototype.toString), jl = q(Boolean.prototype.toString), Ts = typeof BigInt > "u" ? null : q(BigInt.prototype.toString), ks = typeof Symbol > "u" ? null : q(Symbol.prototype.toString), Y = q(Object.prototype.hasOwnProperty), vt = q(Object.prototype.toString), X = q(RegExp.prototype.test), Ue = Fl(TypeError);
|
|
3493
3501
|
function q(t) {
|
|
3494
3502
|
return function(e) {
|
|
3495
3503
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
3496
3504
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), s = 1; s < n; s++)
|
|
3497
3505
|
r[s - 1] = arguments[s];
|
|
3498
|
-
return
|
|
3506
|
+
return cr(t, e, r);
|
|
3499
3507
|
};
|
|
3500
3508
|
}
|
|
3501
3509
|
function Fl(t) {
|
|
3502
3510
|
return function() {
|
|
3503
3511
|
for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
|
|
3504
3512
|
n[r] = arguments[r];
|
|
3505
|
-
return
|
|
3513
|
+
return ur(t, n);
|
|
3506
3514
|
};
|
|
3507
3515
|
}
|
|
3508
3516
|
function D(t, e) {
|
|
3509
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
3510
|
-
if (
|
|
3517
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : At;
|
|
3518
|
+
if (bs && bs(t, null), !Fe(e))
|
|
3511
3519
|
return t;
|
|
3512
3520
|
let r = e.length;
|
|
3513
3521
|
for (; r--; ) {
|
|
@@ -3525,12 +3533,12 @@ function Vl(t) {
|
|
|
3525
3533
|
Y(t, e) || (t[e] = null);
|
|
3526
3534
|
return t;
|
|
3527
3535
|
}
|
|
3528
|
-
function
|
|
3529
|
-
const e =
|
|
3530
|
-
for (const r of
|
|
3536
|
+
function se(t) {
|
|
3537
|
+
const e = it(null);
|
|
3538
|
+
for (const r of Ri(t)) {
|
|
3531
3539
|
var n = Nl(r, 2);
|
|
3532
3540
|
const s = n[0], i = n[1];
|
|
3533
|
-
Y(t, s) && (
|
|
3541
|
+
Y(t, s) && (Fe(i) ? e[s] = Vl(i) : i && typeof i == "object" && i.constructor === Object ? e[s] = se(i) : e[s] = i);
|
|
3534
3542
|
}
|
|
3535
3543
|
return e;
|
|
3536
3544
|
}
|
|
@@ -3543,24 +3551,24 @@ function Hl(t) {
|
|
|
3543
3551
|
case "boolean":
|
|
3544
3552
|
return jl(t);
|
|
3545
3553
|
case "bigint":
|
|
3546
|
-
return
|
|
3554
|
+
return Ts ? Ts(t) : "0";
|
|
3547
3555
|
case "symbol":
|
|
3548
3556
|
return ks ? ks(t) : "Symbol()";
|
|
3549
3557
|
case "undefined":
|
|
3550
|
-
return
|
|
3558
|
+
return vt(t);
|
|
3551
3559
|
case "function":
|
|
3552
3560
|
case "object": {
|
|
3553
3561
|
if (t === null)
|
|
3554
|
-
return
|
|
3562
|
+
return vt(t);
|
|
3555
3563
|
const e = t, n = Te(e, "toString");
|
|
3556
3564
|
if (typeof n == "function") {
|
|
3557
3565
|
const r = n(e);
|
|
3558
|
-
return typeof r == "string" ? r :
|
|
3566
|
+
return typeof r == "string" ? r : vt(r);
|
|
3559
3567
|
}
|
|
3560
|
-
return
|
|
3568
|
+
return vt(t);
|
|
3561
3569
|
}
|
|
3562
3570
|
default:
|
|
3563
|
-
return
|
|
3571
|
+
return vt(t);
|
|
3564
3572
|
}
|
|
3565
3573
|
}
|
|
3566
3574
|
function Te(t, e) {
|
|
@@ -3586,13 +3594,13 @@ function Ul(t) {
|
|
|
3586
3594
|
return !1;
|
|
3587
3595
|
}
|
|
3588
3596
|
}
|
|
3589
|
-
const
|
|
3597
|
+
const xs = J(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Zn = J(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Xn = J(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Bl = J(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Qn = J(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Wl = J(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ss = J(["#text"]), vs = J(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "command", "commandfor", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), Jn = J(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), As = J(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), tn = J(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Gl = te(/{{[\w\W]*|^[\w\W]*}}/g), ql = te(/<%[\w\W]*|^[\w\W]*%>/g), Kl = te(/\${[\w\W]*/g), Yl = te(/^data-[\-\w.\u00B7-\uFFFF]+$/), Zl = te(/^aria-[\-\w]+$/), Rs = te(
|
|
3590
3598
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
3591
3599
|
// eslint-disable-line no-useless-escape
|
|
3592
3600
|
), Xl = te(/^(?:\w+script|data):/i), Ql = te(
|
|
3593
3601
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
3594
3602
|
// eslint-disable-line no-control-regex
|
|
3595
|
-
), Jl = te(/^html$/i), ec = te(/^[a-z][.\w]*(-[.\w]+)+$/i),
|
|
3603
|
+
), Jl = te(/^html$/i), ec = te(/^[a-z][.\w]*(-[.\w]+)+$/i), Os = te(/<[/\w!]/g), tc = te(/<[/\w]/g), nc = te(/<\/no(script|embed|frames)/i), rc = te(/\/>/i), Ee = {
|
|
3596
3604
|
element: 1,
|
|
3597
3605
|
attribute: 2,
|
|
3598
3606
|
text: 3,
|
|
@@ -3629,7 +3637,7 @@ const Ss = J(["a", "abbr", "acronym", "address", "area", "article", "aside", "au
|
|
|
3629
3637
|
} catch {
|
|
3630
3638
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
3631
3639
|
}
|
|
3632
|
-
},
|
|
3640
|
+
}, Ns = function() {
|
|
3633
3641
|
return {
|
|
3634
3642
|
afterSanitizeAttributes: [],
|
|
3635
3643
|
afterSanitizeElements: [],
|
|
@@ -3641,12 +3649,12 @@ const Ss = J(["a", "abbr", "acronym", "address", "area", "article", "aside", "au
|
|
|
3641
3649
|
uponSanitizeElement: [],
|
|
3642
3650
|
uponSanitizeShadowNode: []
|
|
3643
3651
|
};
|
|
3644
|
-
},
|
|
3645
|
-
return Y(e, n) &&
|
|
3652
|
+
}, Pe = function(e, n, r, s) {
|
|
3653
|
+
return Y(e, n) && Fe(e[n]) ? D(s.base ? se(s.base) : {}, e[n], s.transform) : r;
|
|
3646
3654
|
};
|
|
3647
|
-
function
|
|
3655
|
+
function Ni() {
|
|
3648
3656
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : sc();
|
|
3649
|
-
const e = (b) =>
|
|
3657
|
+
const e = (b) => Ni(b);
|
|
3650
3658
|
if (e.version = "3.4.11", e.removed = [], !t || !t.document || t.document.nodeType !== Ee.document || !t.Element)
|
|
3651
3659
|
return e.isSupported = !1, e;
|
|
3652
3660
|
let n = t.document;
|
|
@@ -3654,40 +3662,40 @@ function Oi() {
|
|
|
3654
3662
|
t.DocumentFragment;
|
|
3655
3663
|
const i = t.HTMLTemplateElement, o = t.Node, l = t.Element, c = t.NodeFilter, p = t.NamedNodeMap;
|
|
3656
3664
|
p === void 0 && (t.NamedNodeMap || t.MozNamedAttrMap), t.HTMLFormElement;
|
|
3657
|
-
const h = t.DOMParser, u = t.trustedTypes, d = l.prototype, g = Te(d, "cloneNode"), _ = Te(d, "remove"), y = Te(d, "nextSibling"),
|
|
3665
|
+
const h = t.DOMParser, u = t.trustedTypes, d = l.prototype, g = Te(d, "cloneNode"), _ = Te(d, "remove"), y = Te(d, "nextSibling"), k = Te(d, "childNodes"), A = Te(d, "parentNode"), R = Te(d, "shadowRoot"), S = Te(d, "attributes"), w = o && o.prototype ? Te(o.prototype, "nodeType") : null, T = o && o.prototype ? Te(o.prototype, "nodeName") : null;
|
|
3658
3666
|
if (typeof i == "function") {
|
|
3659
3667
|
const b = n.createElement("template");
|
|
3660
3668
|
b.content && b.content.ownerDocument && (n = b.content.ownerDocument);
|
|
3661
3669
|
}
|
|
3662
|
-
let
|
|
3663
|
-
const
|
|
3664
|
-
if (
|
|
3665
|
-
throw
|
|
3670
|
+
let x, v = "", L, ne = !1, ge = 0;
|
|
3671
|
+
const ue = function() {
|
|
3672
|
+
if (ge > 0)
|
|
3673
|
+
throw Ue('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
|
|
3666
3674
|
}, I = function(a) {
|
|
3667
|
-
|
|
3675
|
+
ue(), ge++;
|
|
3668
3676
|
try {
|
|
3669
|
-
return
|
|
3677
|
+
return x.createHTML(a);
|
|
3670
3678
|
} finally {
|
|
3671
|
-
|
|
3679
|
+
ge--;
|
|
3672
3680
|
}
|
|
3673
|
-
},
|
|
3674
|
-
|
|
3681
|
+
}, me = function(a) {
|
|
3682
|
+
ue(), ge++;
|
|
3675
3683
|
try {
|
|
3676
|
-
return
|
|
3684
|
+
return x.createScriptURL(a);
|
|
3677
3685
|
} finally {
|
|
3678
|
-
|
|
3686
|
+
ge--;
|
|
3679
3687
|
}
|
|
3680
|
-
},
|
|
3688
|
+
}, Nr = function() {
|
|
3681
3689
|
return ne || (L = ic(u, s), ne = !0), L;
|
|
3682
|
-
},
|
|
3683
|
-
let B =
|
|
3684
|
-
e.isSupported = typeof
|
|
3685
|
-
const
|
|
3686
|
-
let
|
|
3687
|
-
const
|
|
3688
|
-
let
|
|
3689
|
-
const
|
|
3690
|
-
let
|
|
3690
|
+
}, gt = n, mt = gt.implementation, Ir = gt.createNodeIterator, Di = gt.createDocumentFragment, Ci = gt.getElementsByTagName, Mi = r.importNode;
|
|
3691
|
+
let B = Ns();
|
|
3692
|
+
e.isSupported = typeof Ri == "function" && typeof A == "function" && mt && mt.createHTMLDocument !== void 0;
|
|
3693
|
+
const $i = Gl, Pi = ql, Li = Kl, zi = Yl, ji = Zl, Fi = Xl, Dr = Ql, Vi = ec;
|
|
3694
|
+
let Cr = Rs, j = null;
|
|
3695
|
+
const Mr = D({}, [...xs, ...Zn, ...Xn, ...Qn, ...Ss]);
|
|
3696
|
+
let F = null;
|
|
3697
|
+
const $r = D({}, [...vs, ...Jn, ...As, ...tn]);
|
|
3698
|
+
let V = Object.seal(it(null, {
|
|
3691
3699
|
tagNameCheck: {
|
|
3692
3700
|
writable: !0,
|
|
3693
3701
|
configurable: !1,
|
|
@@ -3706,8 +3714,8 @@ function Oi() {
|
|
|
3706
3714
|
enumerable: !0,
|
|
3707
3715
|
value: !1
|
|
3708
3716
|
}
|
|
3709
|
-
})),
|
|
3710
|
-
const
|
|
3717
|
+
})), _t = null, Pr = null;
|
|
3718
|
+
const Ce = Object.seal(it(null, {
|
|
3711
3719
|
tagCheck: {
|
|
3712
3720
|
writable: !0,
|
|
3713
3721
|
configurable: !1,
|
|
@@ -3721,10 +3729,10 @@ function Oi() {
|
|
|
3721
3729
|
value: null
|
|
3722
3730
|
}
|
|
3723
3731
|
}));
|
|
3724
|
-
let
|
|
3725
|
-
const
|
|
3726
|
-
let
|
|
3727
|
-
const
|
|
3732
|
+
let Lr = !0, vn = !0, zr = !1, jr = !0, Me = !1, bt = !0, Ve = !1, An = !1, Rn = null, On = null, Nn = !1, Ze = !1, Ut = !1, Bt = !1, Fr = !0, Vr = !1;
|
|
3733
|
+
const Hr = "user-content-";
|
|
3734
|
+
let In = !0, Dn = !1, Xe = {}, ye = null;
|
|
3735
|
+
const Cn = D({}, [
|
|
3728
3736
|
"annotation-xml",
|
|
3729
3737
|
"audio",
|
|
3730
3738
|
"colgroup",
|
|
@@ -3761,91 +3769,91 @@ function Oi() {
|
|
|
3761
3769
|
"video",
|
|
3762
3770
|
"xmp"
|
|
3763
3771
|
]);
|
|
3764
|
-
let
|
|
3765
|
-
const
|
|
3766
|
-
let
|
|
3767
|
-
const
|
|
3768
|
-
let
|
|
3769
|
-
const
|
|
3770
|
-
let
|
|
3771
|
-
const
|
|
3772
|
-
let
|
|
3773
|
-
const
|
|
3774
|
-
let
|
|
3775
|
-
const
|
|
3776
|
-
let
|
|
3777
|
-
const
|
|
3772
|
+
let Ur = null;
|
|
3773
|
+
const Br = D({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
3774
|
+
let Mn = null;
|
|
3775
|
+
const Wr = D({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Wt = "http://www.w3.org/1998/Math/MathML", Gt = "http://www.w3.org/2000/svg", we = "http://www.w3.org/1999/xhtml";
|
|
3776
|
+
let Qe = we, $n = !1, Pn = null;
|
|
3777
|
+
const Hi = D({}, [Wt, Gt, we], Yn), Gr = J(["mi", "mo", "mn", "ms", "mtext"]);
|
|
3778
|
+
let Ln = D({}, Gr);
|
|
3779
|
+
const qr = J(["annotation-xml"]);
|
|
3780
|
+
let zn = D({}, qr);
|
|
3781
|
+
const Ui = D({}, ["title", "style", "font", "a", "script"]);
|
|
3782
|
+
let yt = null;
|
|
3783
|
+
const Bi = ["application/xhtml+xml", "text/html"], Wi = "text/html";
|
|
3784
|
+
let H = null, Je = null;
|
|
3785
|
+
const Gi = n.createElement("form"), Kr = function(a) {
|
|
3778
3786
|
return a instanceof RegExp || a instanceof Function;
|
|
3779
|
-
},
|
|
3787
|
+
}, jn = function() {
|
|
3780
3788
|
let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3781
|
-
if (
|
|
3789
|
+
if (Je && Je === a)
|
|
3782
3790
|
return;
|
|
3783
|
-
(!a || typeof a != "object") && (a = {}), a =
|
|
3784
|
-
|
|
3785
|
-
transform:
|
|
3786
|
-
}),
|
|
3787
|
-
transform:
|
|
3788
|
-
}),
|
|
3789
|
-
transform:
|
|
3790
|
-
}),
|
|
3791
|
-
transform:
|
|
3792
|
-
base: Gr
|
|
3793
|
-
}), Br = ze(a, "ADD_DATA_URI_TAGS", Wr, {
|
|
3794
|
-
transform: V,
|
|
3791
|
+
(!a || typeof a != "object") && (a = {}), a = se(a), yt = // eslint-disable-next-line unicorn/prefer-includes
|
|
3792
|
+
Bi.indexOf(a.PARSER_MEDIA_TYPE) === -1 ? Wi : a.PARSER_MEDIA_TYPE, H = yt === "application/xhtml+xml" ? Yn : At, j = Pe(a, "ALLOWED_TAGS", Mr, {
|
|
3793
|
+
transform: H
|
|
3794
|
+
}), F = Pe(a, "ALLOWED_ATTR", $r, {
|
|
3795
|
+
transform: H
|
|
3796
|
+
}), Pn = Pe(a, "ALLOWED_NAMESPACES", Hi, {
|
|
3797
|
+
transform: Yn
|
|
3798
|
+
}), Mn = Pe(a, "ADD_URI_SAFE_ATTR", Wr, {
|
|
3799
|
+
transform: H,
|
|
3795
3800
|
base: Wr
|
|
3796
|
-
}),
|
|
3797
|
-
transform:
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3801
|
+
}), Ur = Pe(a, "ADD_DATA_URI_TAGS", Br, {
|
|
3802
|
+
transform: H,
|
|
3803
|
+
base: Br
|
|
3804
|
+
}), ye = Pe(a, "FORBID_CONTENTS", Cn, {
|
|
3805
|
+
transform: H
|
|
3806
|
+
}), _t = Pe(a, "FORBID_TAGS", se({}), {
|
|
3807
|
+
transform: H
|
|
3808
|
+
}), Pr = Pe(a, "FORBID_ATTR", se({}), {
|
|
3809
|
+
transform: H
|
|
3810
|
+
}), Xe = Y(a, "USE_PROFILES") ? a.USE_PROFILES && typeof a.USE_PROFILES == "object" ? se(a.USE_PROFILES) : a.USE_PROFILES : !1, Lr = a.ALLOW_ARIA_ATTR !== !1, vn = a.ALLOW_DATA_ATTR !== !1, zr = a.ALLOW_UNKNOWN_PROTOCOLS || !1, jr = a.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Me = a.SAFE_FOR_TEMPLATES || !1, bt = a.SAFE_FOR_XML !== !1, Ve = a.WHOLE_DOCUMENT || !1, Ze = a.RETURN_DOM || !1, Ut = a.RETURN_DOM_FRAGMENT || !1, Bt = a.RETURN_TRUSTED_TYPE || !1, Nn = a.FORCE_BODY || !1, Fr = a.SANITIZE_DOM !== !1, Vr = a.SANITIZE_NAMED_PROPS || !1, In = a.KEEP_CONTENT !== !1, Dn = a.IN_PLACE || !1, Cr = Ul(a.ALLOWED_URI_REGEXP) ? a.ALLOWED_URI_REGEXP : Rs, Qe = typeof a.NAMESPACE == "string" ? a.NAMESPACE : we, Ln = Y(a, "MATHML_TEXT_INTEGRATION_POINTS") && a.MATHML_TEXT_INTEGRATION_POINTS && typeof a.MATHML_TEXT_INTEGRATION_POINTS == "object" ? se(a.MATHML_TEXT_INTEGRATION_POINTS) : D({}, Gr), zn = Y(a, "HTML_INTEGRATION_POINTS") && a.HTML_INTEGRATION_POINTS && typeof a.HTML_INTEGRATION_POINTS == "object" ? se(a.HTML_INTEGRATION_POINTS) : D({}, qr);
|
|
3811
|
+
const f = Y(a, "CUSTOM_ELEMENT_HANDLING") && a.CUSTOM_ELEMENT_HANDLING && typeof a.CUSTOM_ELEMENT_HANDLING == "object" ? se(a.CUSTOM_ELEMENT_HANDLING) : it(null);
|
|
3812
|
+
if (V = it(null), Y(f, "tagNameCheck") && Kr(f.tagNameCheck) && (V.tagNameCheck = f.tagNameCheck), Y(f, "attributeNameCheck") && Kr(f.attributeNameCheck) && (V.attributeNameCheck = f.attributeNameCheck), Y(f, "allowCustomizedBuiltInElements") && typeof f.allowCustomizedBuiltInElements == "boolean" && (V.allowCustomizedBuiltInElements = f.allowCustomizedBuiltInElements), te(V), Me && (vn = !1), Ut && (Ze = !0), Xe && (j = D({}, Ss), F = it(null), Xe.html === !0 && (D(j, xs), D(F, vs)), Xe.svg === !0 && (D(j, Zn), D(F, Jn), D(F, tn)), Xe.svgFilters === !0 && (D(j, Xn), D(F, Jn), D(F, tn)), Xe.mathMl === !0 && (D(j, Qn), D(F, As), D(F, tn))), Ce.tagCheck = null, Ce.attributeCheck = null, Y(a, "ADD_TAGS") && (typeof a.ADD_TAGS == "function" ? Ce.tagCheck = a.ADD_TAGS : Fe(a.ADD_TAGS) && (j === Mr && (j = se(j)), D(j, a.ADD_TAGS, H))), Y(a, "ADD_ATTR") && (typeof a.ADD_ATTR == "function" ? Ce.attributeCheck = a.ADD_ATTR : Fe(a.ADD_ATTR) && (F === $r && (F = se(F)), D(F, a.ADD_ATTR, H))), Y(a, "ADD_URI_SAFE_ATTR") && Fe(a.ADD_URI_SAFE_ATTR) && D(Mn, a.ADD_URI_SAFE_ATTR, H), Y(a, "FORBID_CONTENTS") && Fe(a.FORBID_CONTENTS) && (ye === Cn && (ye = se(ye)), D(ye, a.FORBID_CONTENTS, H)), Y(a, "ADD_FORBID_CONTENTS") && Fe(a.ADD_FORBID_CONTENTS) && (ye === Cn && (ye = se(ye)), D(ye, a.ADD_FORBID_CONTENTS, H)), In && (j["#text"] = !0), Ve && D(j, ["html", "head", "body"]), j.table && (D(j, ["tbody"]), delete _t.tbody), a.TRUSTED_TYPES_POLICY) {
|
|
3805
3813
|
if (typeof a.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
3806
|
-
throw
|
|
3814
|
+
throw Ue('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
3807
3815
|
if (typeof a.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
3808
|
-
throw
|
|
3809
|
-
const m =
|
|
3810
|
-
|
|
3816
|
+
throw Ue('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
3817
|
+
const m = x;
|
|
3818
|
+
x = a.TRUSTED_TYPES_POLICY;
|
|
3811
3819
|
try {
|
|
3812
3820
|
v = I("");
|
|
3813
3821
|
} catch (E) {
|
|
3814
|
-
throw
|
|
3822
|
+
throw x = m, E;
|
|
3815
3823
|
}
|
|
3816
|
-
} else a.TRUSTED_TYPES_POLICY === null ? (
|
|
3817
|
-
J && J(a),
|
|
3818
|
-
},
|
|
3819
|
-
return f.namespaceURI === we ? a === "svg" : f.namespaceURI ===
|
|
3820
|
-
}, qi = function(a, f, m) {
|
|
3821
|
-
return f.namespaceURI === we ? a === "math" : f.namespaceURI === qt ? a === "math" && Fn[m] : !!Xr[a];
|
|
3824
|
+
} else a.TRUSTED_TYPES_POLICY === null ? (x = void 0, v = "") : (x === void 0 && (x = Nr()), x && typeof v == "string" && (v = I("")));
|
|
3825
|
+
J && J(a), Je = a;
|
|
3826
|
+
}, Yr = D({}, [...Zn, ...Xn, ...Bl]), Zr = D({}, [...Qn, ...Wl]), qi = function(a, f, m) {
|
|
3827
|
+
return f.namespaceURI === we ? a === "svg" : f.namespaceURI === Wt ? a === "svg" && (m === "annotation-xml" || Ln[m]) : !!Yr[a];
|
|
3822
3828
|
}, Ki = function(a, f, m) {
|
|
3823
|
-
return f.namespaceURI ===
|
|
3824
|
-
}, Yi = function(a) {
|
|
3829
|
+
return f.namespaceURI === we ? a === "math" : f.namespaceURI === Gt ? a === "math" && zn[m] : !!Zr[a];
|
|
3830
|
+
}, Yi = function(a, f, m) {
|
|
3831
|
+
return f.namespaceURI === Gt && !zn[m] || f.namespaceURI === Wt && !Ln[m] ? !1 : !Zr[a] && (Ui[a] || !Yr[a]);
|
|
3832
|
+
}, Zi = function(a) {
|
|
3825
3833
|
let f = A(a);
|
|
3826
3834
|
(!f || !f.tagName) && (f = {
|
|
3827
|
-
namespaceURI:
|
|
3835
|
+
namespaceURI: Qe,
|
|
3828
3836
|
tagName: "template"
|
|
3829
3837
|
});
|
|
3830
|
-
const m =
|
|
3831
|
-
return
|
|
3832
|
-
},
|
|
3833
|
-
|
|
3838
|
+
const m = At(a.tagName), E = At(f.tagName);
|
|
3839
|
+
return Pn[a.namespaceURI] ? a.namespaceURI === Gt ? qi(m, f, E) : a.namespaceURI === Wt ? Ki(m, f, E) : a.namespaceURI === we ? Yi(m, f, E) : !!(yt === "application/xhtml+xml" && Pn[a.namespaceURI]) : !1;
|
|
3840
|
+
}, $e = function(a) {
|
|
3841
|
+
nt(e.removed, {
|
|
3834
3842
|
element: a
|
|
3835
3843
|
});
|
|
3836
3844
|
try {
|
|
3837
3845
|
A(a).removeChild(a);
|
|
3838
3846
|
} catch {
|
|
3839
3847
|
if (_(a), !A(a))
|
|
3840
|
-
throw
|
|
3848
|
+
throw Ue("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
3841
3849
|
}
|
|
3842
|
-
},
|
|
3843
|
-
const f =
|
|
3850
|
+
}, Xr = function(a) {
|
|
3851
|
+
const f = k(a);
|
|
3844
3852
|
if (f) {
|
|
3845
3853
|
const E = [];
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
}),
|
|
3854
|
+
xt(f, (O) => {
|
|
3855
|
+
nt(E, O);
|
|
3856
|
+
}), xt(E, (O) => {
|
|
3849
3857
|
try {
|
|
3850
3858
|
_(O);
|
|
3851
3859
|
} catch {
|
|
@@ -3862,22 +3870,22 @@ function Oi() {
|
|
|
3862
3870
|
} catch {
|
|
3863
3871
|
}
|
|
3864
3872
|
}
|
|
3865
|
-
},
|
|
3873
|
+
}, He = function(a, f) {
|
|
3866
3874
|
try {
|
|
3867
|
-
|
|
3875
|
+
nt(e.removed, {
|
|
3868
3876
|
attribute: f.getAttributeNode(a),
|
|
3869
3877
|
from: f
|
|
3870
3878
|
});
|
|
3871
3879
|
} catch {
|
|
3872
|
-
|
|
3880
|
+
nt(e.removed, {
|
|
3873
3881
|
attribute: null,
|
|
3874
3882
|
from: f
|
|
3875
3883
|
});
|
|
3876
3884
|
}
|
|
3877
3885
|
if (f.removeAttribute(a), a === "is")
|
|
3878
|
-
if (
|
|
3886
|
+
if (Ze || Ut)
|
|
3879
3887
|
try {
|
|
3880
|
-
|
|
3888
|
+
$e(f);
|
|
3881
3889
|
} catch {
|
|
3882
3890
|
}
|
|
3883
3891
|
else
|
|
@@ -3885,65 +3893,65 @@ function Oi() {
|
|
|
3885
3893
|
f.setAttribute(a, "");
|
|
3886
3894
|
} catch {
|
|
3887
3895
|
}
|
|
3888
|
-
},
|
|
3896
|
+
}, Xi = function(a) {
|
|
3889
3897
|
const f = S(a);
|
|
3890
3898
|
if (f)
|
|
3891
3899
|
for (let m = f.length - 1; m >= 0; --m) {
|
|
3892
3900
|
const E = f[m], O = E && E.name;
|
|
3893
|
-
if (!(typeof O != "string" ||
|
|
3901
|
+
if (!(typeof O != "string" || F[H(O)]))
|
|
3894
3902
|
try {
|
|
3895
3903
|
a.removeAttribute(O);
|
|
3896
3904
|
} catch {
|
|
3897
3905
|
}
|
|
3898
3906
|
}
|
|
3899
|
-
},
|
|
3907
|
+
}, Qi = function(a) {
|
|
3900
3908
|
const f = [a];
|
|
3901
3909
|
for (; f.length > 0; ) {
|
|
3902
3910
|
const m = f.pop();
|
|
3903
|
-
(w ? w(m) : m.nodeType) === Ee.element &&
|
|
3904
|
-
const O =
|
|
3911
|
+
(w ? w(m) : m.nodeType) === Ee.element && Xi(m);
|
|
3912
|
+
const O = k(m);
|
|
3905
3913
|
if (O)
|
|
3906
3914
|
for (let C = O.length - 1; C >= 0; --C)
|
|
3907
3915
|
f.push(O[C]);
|
|
3908
3916
|
}
|
|
3909
|
-
},
|
|
3917
|
+
}, Qr = function(a) {
|
|
3910
3918
|
let f = null, m = null;
|
|
3911
|
-
if (
|
|
3919
|
+
if (Nn)
|
|
3912
3920
|
a = "<remove></remove>" + a;
|
|
3913
3921
|
else {
|
|
3914
|
-
const C =
|
|
3922
|
+
const C = ws(a, /^[\r\n\t ]+/);
|
|
3915
3923
|
m = C && C[0];
|
|
3916
3924
|
}
|
|
3917
|
-
|
|
3918
|
-
const E =
|
|
3919
|
-
if (
|
|
3925
|
+
yt === "application/xhtml+xml" && Qe === we && (a = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + a + "</body></html>");
|
|
3926
|
+
const E = x ? I(a) : a;
|
|
3927
|
+
if (Qe === we)
|
|
3920
3928
|
try {
|
|
3921
|
-
f = new h().parseFromString(E,
|
|
3929
|
+
f = new h().parseFromString(E, yt);
|
|
3922
3930
|
} catch {
|
|
3923
3931
|
}
|
|
3924
3932
|
if (!f || !f.documentElement) {
|
|
3925
|
-
f =
|
|
3933
|
+
f = mt.createDocument(Qe, "template", null);
|
|
3926
3934
|
try {
|
|
3927
|
-
f.documentElement.innerHTML =
|
|
3935
|
+
f.documentElement.innerHTML = $n ? v : E;
|
|
3928
3936
|
} catch {
|
|
3929
3937
|
}
|
|
3930
3938
|
}
|
|
3931
3939
|
const O = f.body || f.documentElement;
|
|
3932
|
-
return a && m && O.insertBefore(n.createTextNode(m), O.childNodes[0] || null),
|
|
3933
|
-
},
|
|
3934
|
-
return
|
|
3940
|
+
return a && m && O.insertBefore(n.createTextNode(m), O.childNodes[0] || null), Qe === we ? Ci.call(f, Ve ? "html" : "body")[0] : Ve ? f.documentElement : O;
|
|
3941
|
+
}, Jr = function(a) {
|
|
3942
|
+
return Ir.call(
|
|
3935
3943
|
a.ownerDocument || a,
|
|
3936
3944
|
a,
|
|
3937
3945
|
// eslint-disable-next-line no-bitwise
|
|
3938
3946
|
c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION,
|
|
3939
3947
|
null
|
|
3940
3948
|
);
|
|
3941
|
-
},
|
|
3942
|
-
return a =
|
|
3943
|
-
},
|
|
3949
|
+
}, qt = function(a) {
|
|
3950
|
+
return a = St(a, $i, " "), a = St(a, Pi, " "), a = St(a, Li, " "), a;
|
|
3951
|
+
}, Fn = function(a) {
|
|
3944
3952
|
var f;
|
|
3945
3953
|
a.normalize();
|
|
3946
|
-
const m =
|
|
3954
|
+
const m = Ir.call(
|
|
3947
3955
|
a.ownerDocument || a,
|
|
3948
3956
|
a,
|
|
3949
3957
|
// eslint-disable-next-line no-bitwise
|
|
@@ -3952,14 +3960,14 @@ function Oi() {
|
|
|
3952
3960
|
);
|
|
3953
3961
|
let E = m.nextNode();
|
|
3954
3962
|
for (; E; )
|
|
3955
|
-
E.data =
|
|
3963
|
+
E.data = qt(E.data), E = m.nextNode();
|
|
3956
3964
|
const O = (f = a.querySelectorAll) === null || f === void 0 ? void 0 : f.call(a, "template");
|
|
3957
|
-
O &&
|
|
3958
|
-
|
|
3965
|
+
O && xt(O, (C) => {
|
|
3966
|
+
et(C.content) && Fn(C.content);
|
|
3959
3967
|
});
|
|
3960
|
-
},
|
|
3968
|
+
}, Kt = function(a) {
|
|
3961
3969
|
const f = T ? T(a) : null;
|
|
3962
|
-
return typeof f != "string" ||
|
|
3970
|
+
return typeof f != "string" || H(f) !== "form" ? !1 : typeof a.nodeName != "string" || typeof a.textContent != "string" || typeof a.removeChild != "function" || // Realm-safe NamedNodeMap detection: equality against the cached
|
|
3963
3971
|
// prototype getter. Clobbered .attributes (e.g. <input name="attributes">)
|
|
3964
3972
|
// makes the direct read diverge from the cached read; a clean form
|
|
3965
3973
|
// (same-realm OR foreign-realm) has both reads pointing at the same
|
|
@@ -3982,8 +3990,8 @@ function Oi() {
|
|
|
3982
3990
|
// select, etc.) regardless of whether the named child happens to
|
|
3983
3991
|
// carry a numeric .length, which a typeof-based probe would miss
|
|
3984
3992
|
// (e.g. HTMLSelectElement.length is a defined unsigned-long).
|
|
3985
|
-
a.childNodes !==
|
|
3986
|
-
},
|
|
3993
|
+
a.childNodes !== k(a);
|
|
3994
|
+
}, et = function(a) {
|
|
3987
3995
|
if (!w || typeof a != "object" || a === null)
|
|
3988
3996
|
return !1;
|
|
3989
3997
|
try {
|
|
@@ -3991,7 +3999,7 @@ function Oi() {
|
|
|
3991
3999
|
} catch {
|
|
3992
4000
|
return !1;
|
|
3993
4001
|
}
|
|
3994
|
-
},
|
|
4002
|
+
}, wt = function(a) {
|
|
3995
4003
|
if (!w || typeof a != "object" || a === null)
|
|
3996
4004
|
return !1;
|
|
3997
4005
|
try {
|
|
@@ -4001,57 +4009,57 @@ function Oi() {
|
|
|
4001
4009
|
}
|
|
4002
4010
|
};
|
|
4003
4011
|
function Ae(b, a, f) {
|
|
4004
|
-
b.length !== 0 &&
|
|
4005
|
-
m.call(e, a, f,
|
|
4012
|
+
b.length !== 0 && xt(b, (m) => {
|
|
4013
|
+
m.call(e, a, f, Je);
|
|
4006
4014
|
});
|
|
4007
4015
|
}
|
|
4008
|
-
const
|
|
4009
|
-
return !!(
|
|
4010
|
-
},
|
|
4011
|
-
if (!
|
|
4016
|
+
const Ji = function(a, f) {
|
|
4017
|
+
return !!(bt && a.hasChildNodes() && !wt(a.firstElementChild) && X(Os, a.textContent) && X(Os, a.innerHTML) || bt && a.namespaceURI === we && f === "style" && wt(a.firstElementChild) || a.nodeType === Ee.processingInstruction || bt && a.nodeType === Ee.comment && X(tc, a.data));
|
|
4018
|
+
}, eo = function(a, f) {
|
|
4019
|
+
if (!_t[f] && ns(f) && (V.tagNameCheck instanceof RegExp && X(V.tagNameCheck, f) || V.tagNameCheck instanceof Function && V.tagNameCheck(f)))
|
|
4012
4020
|
return !1;
|
|
4013
|
-
if (
|
|
4014
|
-
const m = A(a), E =
|
|
4021
|
+
if (In && !ye[f]) {
|
|
4022
|
+
const m = A(a), E = k(a);
|
|
4015
4023
|
if (E && m) {
|
|
4016
4024
|
const O = E.length;
|
|
4017
4025
|
for (let C = O - 1; C >= 0; --C) {
|
|
4018
|
-
const K =
|
|
4026
|
+
const K = Dn ? E[C] : g(E[C], !0);
|
|
4019
4027
|
m.insertBefore(K, y(a));
|
|
4020
4028
|
}
|
|
4021
4029
|
}
|
|
4022
4030
|
}
|
|
4023
|
-
return
|
|
4024
|
-
},
|
|
4025
|
-
if (Ae(B.beforeSanitizeElements, a, null),
|
|
4026
|
-
return
|
|
4027
|
-
const f =
|
|
4031
|
+
return $e(a), !0;
|
|
4032
|
+
}, es = function(a) {
|
|
4033
|
+
if (Ae(B.beforeSanitizeElements, a, null), Kt(a))
|
|
4034
|
+
return $e(a), !0;
|
|
4035
|
+
const f = H(T ? T(a) : a.nodeName);
|
|
4028
4036
|
if (Ae(B.uponSanitizeElement, a, {
|
|
4029
4037
|
tagName: f,
|
|
4030
|
-
allowedTags:
|
|
4031
|
-
}),
|
|
4032
|
-
return
|
|
4033
|
-
if (
|
|
4034
|
-
return
|
|
4035
|
-
if ((w ? w(a) : a.nodeType) === Ee.element && !
|
|
4036
|
-
return
|
|
4037
|
-
if (
|
|
4038
|
-
const E =
|
|
4039
|
-
a.textContent !== E && (
|
|
4038
|
+
allowedTags: j
|
|
4039
|
+
}), Ji(a, f))
|
|
4040
|
+
return $e(a), !0;
|
|
4041
|
+
if (_t[f] || !(Ce.tagCheck instanceof Function && Ce.tagCheck(f)) && !j[f])
|
|
4042
|
+
return eo(a, f);
|
|
4043
|
+
if ((w ? w(a) : a.nodeType) === Ee.element && !Zi(a) || (f === "noscript" || f === "noembed" || f === "noframes") && X(nc, a.innerHTML))
|
|
4044
|
+
return $e(a), !0;
|
|
4045
|
+
if (Me && a.nodeType === Ee.text) {
|
|
4046
|
+
const E = qt(a.textContent);
|
|
4047
|
+
a.textContent !== E && (nt(e.removed, {
|
|
4040
4048
|
element: a.cloneNode()
|
|
4041
4049
|
}), a.textContent = E);
|
|
4042
4050
|
}
|
|
4043
4051
|
return Ae(B.afterSanitizeElements, a, null), !1;
|
|
4044
|
-
},
|
|
4045
|
-
if (
|
|
4052
|
+
}, ts = function(a, f, m) {
|
|
4053
|
+
if (Pr[f] || Fr && (f === "id" || f === "name") && (m in n || m in Gi))
|
|
4046
4054
|
return !1;
|
|
4047
|
-
const E =
|
|
4048
|
-
if (!(
|
|
4049
|
-
if (!(
|
|
4055
|
+
const E = F[f] || Ce.attributeCheck instanceof Function && Ce.attributeCheck(f, a);
|
|
4056
|
+
if (!(vn && X(zi, f))) {
|
|
4057
|
+
if (!(Lr && X(ji, f))) {
|
|
4050
4058
|
if (E) {
|
|
4051
|
-
if (!
|
|
4052
|
-
if (!X(
|
|
4053
|
-
if (!((f === "src" || f === "xlink:href" || f === "href") && a !== "script" &&
|
|
4054
|
-
if (!(
|
|
4059
|
+
if (!Mn[f]) {
|
|
4060
|
+
if (!X(Cr, St(m, Dr, ""))) {
|
|
4061
|
+
if (!((f === "src" || f === "xlink:href" || f === "href") && a !== "script" && Es(m, "data:") === 0 && Ur[a])) {
|
|
4062
|
+
if (!(zr && !X(Fi, St(m, Dr, "")))) {
|
|
4055
4063
|
if (m)
|
|
4056
4064
|
return !1;
|
|
4057
4065
|
}
|
|
@@ -4062,82 +4070,82 @@ function Oi() {
|
|
|
4062
4070
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4063
4071
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4064
4072
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4065
|
-
!(
|
|
4073
|
+
!(ns(a) && (V.tagNameCheck instanceof RegExp && X(V.tagNameCheck, a) || V.tagNameCheck instanceof Function && V.tagNameCheck(a)) && (V.attributeNameCheck instanceof RegExp && X(V.attributeNameCheck, f) || V.attributeNameCheck instanceof Function && V.attributeNameCheck(f, a)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4066
4074
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4067
|
-
f === "is" &&
|
|
4075
|
+
f === "is" && V.allowCustomizedBuiltInElements && (V.tagNameCheck instanceof RegExp && X(V.tagNameCheck, m) || V.tagNameCheck instanceof Function && V.tagNameCheck(m)))
|
|
4068
4076
|
) return !1;
|
|
4069
4077
|
}
|
|
4070
4078
|
}
|
|
4071
4079
|
return !0;
|
|
4072
|
-
},
|
|
4073
|
-
return !
|
|
4074
|
-
},
|
|
4075
|
-
if (
|
|
4080
|
+
}, to = D({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), ns = function(a) {
|
|
4081
|
+
return !to[At(a)] && X(Vi, a);
|
|
4082
|
+
}, no = function(a, f, m, E) {
|
|
4083
|
+
if (x && typeof u == "object" && typeof u.getAttributeType == "function" && !m)
|
|
4076
4084
|
switch (u.getAttributeType(a, f)) {
|
|
4077
4085
|
case "TrustedHTML":
|
|
4078
4086
|
return I(E);
|
|
4079
4087
|
case "TrustedScriptURL":
|
|
4080
|
-
return
|
|
4088
|
+
return me(E);
|
|
4081
4089
|
}
|
|
4082
4090
|
return E;
|
|
4083
|
-
},
|
|
4091
|
+
}, ro = function(a, f, m, E) {
|
|
4084
4092
|
try {
|
|
4085
|
-
m ? a.setAttributeNS(m, f, E) : a.setAttribute(f, E),
|
|
4093
|
+
m ? a.setAttributeNS(m, f, E) : a.setAttribute(f, E), Kt(a) ? $e(a) : ys(e.removed);
|
|
4086
4094
|
} catch {
|
|
4087
|
-
|
|
4095
|
+
He(f, a);
|
|
4088
4096
|
}
|
|
4089
|
-
},
|
|
4097
|
+
}, rs = function(a) {
|
|
4090
4098
|
Ae(B.beforeSanitizeAttributes, a, null);
|
|
4091
4099
|
const f = a.attributes;
|
|
4092
|
-
if (!f ||
|
|
4100
|
+
if (!f || Kt(a))
|
|
4093
4101
|
return;
|
|
4094
4102
|
const m = {
|
|
4095
4103
|
attrName: "",
|
|
4096
4104
|
attrValue: "",
|
|
4097
4105
|
keepAttr: !0,
|
|
4098
|
-
allowedAttributes:
|
|
4106
|
+
allowedAttributes: F,
|
|
4099
4107
|
forceKeepAttr: void 0
|
|
4100
4108
|
};
|
|
4101
4109
|
let E = f.length;
|
|
4102
|
-
const O =
|
|
4110
|
+
const O = H(a.nodeName);
|
|
4103
4111
|
for (; E--; ) {
|
|
4104
|
-
const C = f[E], K = C.name, G = C.namespaceURI,
|
|
4105
|
-
let
|
|
4106
|
-
if (m.attrName = _e, m.attrValue =
|
|
4107
|
-
|
|
4112
|
+
const C = f[E], K = C.name, G = C.namespaceURI, fe = C.value, _e = H(K), Hn = fe;
|
|
4113
|
+
let re = K === "value" ? Hn : Ll(Hn);
|
|
4114
|
+
if (m.attrName = _e, m.attrValue = re, m.keepAttr = !0, m.forceKeepAttr = void 0, Ae(B.uponSanitizeAttribute, a, m), re = m.attrValue, Vr && (_e === "id" || _e === "name") && Es(re, Hr) !== 0 && (He(K, a), re = Hr + re), bt && X(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, re)) {
|
|
4115
|
+
He(K, a);
|
|
4108
4116
|
continue;
|
|
4109
4117
|
}
|
|
4110
|
-
if (_e === "attributename" &&
|
|
4111
|
-
|
|
4118
|
+
if (_e === "attributename" && ws(re, "href")) {
|
|
4119
|
+
He(K, a);
|
|
4112
4120
|
continue;
|
|
4113
4121
|
}
|
|
4114
4122
|
if (!m.forceKeepAttr) {
|
|
4115
4123
|
if (!m.keepAttr) {
|
|
4116
|
-
|
|
4124
|
+
He(K, a);
|
|
4117
4125
|
continue;
|
|
4118
4126
|
}
|
|
4119
|
-
if (!
|
|
4120
|
-
|
|
4127
|
+
if (!jr && X(rc, re)) {
|
|
4128
|
+
He(K, a);
|
|
4121
4129
|
continue;
|
|
4122
4130
|
}
|
|
4123
|
-
if (
|
|
4124
|
-
|
|
4131
|
+
if (Me && (re = qt(re)), !ts(O, _e, re)) {
|
|
4132
|
+
He(K, a);
|
|
4125
4133
|
continue;
|
|
4126
4134
|
}
|
|
4127
|
-
|
|
4135
|
+
re = no(O, _e, G, re), re !== Hn && ro(a, K, G, re);
|
|
4128
4136
|
}
|
|
4129
4137
|
}
|
|
4130
4138
|
Ae(B.afterSanitizeAttributes, a, null);
|
|
4131
|
-
},
|
|
4139
|
+
}, Yt = function(a) {
|
|
4132
4140
|
let f = null;
|
|
4133
|
-
const m =
|
|
4141
|
+
const m = Jr(a);
|
|
4134
4142
|
for (Ae(B.beforeSanitizeShadowDOM, a, null); f = m.nextNode(); )
|
|
4135
|
-
if (Ae(B.uponSanitizeShadowNode, f, null),
|
|
4143
|
+
if (Ae(B.uponSanitizeShadowNode, f, null), es(f), rs(f), et(f.content) && Yt(f.content), (w ? w(f) : f.nodeType) === Ee.element) {
|
|
4136
4144
|
const O = R(f);
|
|
4137
|
-
|
|
4145
|
+
et(O) && (Vn(O), Yt(O));
|
|
4138
4146
|
}
|
|
4139
4147
|
Ae(B.afterSanitizeShadowDOM, a, null);
|
|
4140
|
-
},
|
|
4148
|
+
}, Vn = function(a) {
|
|
4141
4149
|
const f = [{
|
|
4142
4150
|
node: a,
|
|
4143
4151
|
shadow: null
|
|
@@ -4145,10 +4153,10 @@ function Oi() {
|
|
|
4145
4153
|
for (; f.length > 0; ) {
|
|
4146
4154
|
const m = f.pop();
|
|
4147
4155
|
if (m.shadow) {
|
|
4148
|
-
|
|
4156
|
+
Yt(m.shadow);
|
|
4149
4157
|
continue;
|
|
4150
4158
|
}
|
|
4151
|
-
const E = m.node, C = (w ? w(E) : E.nodeType) === Ee.element, K =
|
|
4159
|
+
const E = m.node, C = (w ? w(E) : E.nodeType) === Ee.element, K = k(E);
|
|
4152
4160
|
if (K)
|
|
4153
4161
|
for (let G = K.length - 1; G >= 0; --G)
|
|
4154
4162
|
f.push({
|
|
@@ -4157,17 +4165,17 @@ function Oi() {
|
|
|
4157
4165
|
});
|
|
4158
4166
|
if (C) {
|
|
4159
4167
|
const G = T ? T(E) : null;
|
|
4160
|
-
if (typeof G == "string" &&
|
|
4161
|
-
const
|
|
4162
|
-
|
|
4163
|
-
node:
|
|
4168
|
+
if (typeof G == "string" && H(G) === "template") {
|
|
4169
|
+
const fe = E.content;
|
|
4170
|
+
et(fe) && f.push({
|
|
4171
|
+
node: fe,
|
|
4164
4172
|
shadow: null
|
|
4165
4173
|
});
|
|
4166
4174
|
}
|
|
4167
4175
|
}
|
|
4168
4176
|
if (C) {
|
|
4169
4177
|
const G = R(E);
|
|
4170
|
-
|
|
4178
|
+
et(G) && f.push({
|
|
4171
4179
|
node: null,
|
|
4172
4180
|
shadow: G
|
|
4173
4181
|
}, {
|
|
@@ -4179,157 +4187,157 @@ function Oi() {
|
|
|
4179
4187
|
};
|
|
4180
4188
|
return e.sanitize = function(b) {
|
|
4181
4189
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = null, m = null, E = null, O = null;
|
|
4182
|
-
if (
|
|
4183
|
-
throw
|
|
4190
|
+
if ($n = !b, $n && (b = "<!-->"), typeof b != "string" && !wt(b) && (b = Hl(b), typeof b != "string"))
|
|
4191
|
+
throw Ue("dirty is not a string, aborting");
|
|
4184
4192
|
if (!e.isSupported)
|
|
4185
4193
|
return b;
|
|
4186
|
-
|
|
4187
|
-
const C =
|
|
4194
|
+
An ? (j = Rn, F = On) : jn(a), (B.uponSanitizeElement.length > 0 || B.uponSanitizeAttribute.length > 0) && (j = se(j)), B.uponSanitizeAttribute.length > 0 && (F = se(F)), e.removed = [];
|
|
4195
|
+
const C = Dn && typeof b != "string" && wt(b);
|
|
4188
4196
|
if (C) {
|
|
4189
|
-
const
|
|
4190
|
-
if (typeof
|
|
4191
|
-
const _e =
|
|
4192
|
-
if (!
|
|
4193
|
-
throw
|
|
4197
|
+
const fe = T ? T(b) : b.nodeName;
|
|
4198
|
+
if (typeof fe == "string") {
|
|
4199
|
+
const _e = H(fe);
|
|
4200
|
+
if (!j[_e] || _t[_e])
|
|
4201
|
+
throw Ue("root node is forbidden and cannot be sanitized in-place");
|
|
4194
4202
|
}
|
|
4195
|
-
if (
|
|
4196
|
-
throw
|
|
4203
|
+
if (Kt(b))
|
|
4204
|
+
throw Ue("root node is clobbered and cannot be sanitized in-place");
|
|
4197
4205
|
try {
|
|
4198
|
-
|
|
4206
|
+
Vn(b);
|
|
4199
4207
|
} catch (_e) {
|
|
4200
|
-
throw
|
|
4208
|
+
throw Xr(b), _e;
|
|
4201
4209
|
}
|
|
4202
|
-
} else if (
|
|
4203
|
-
f =
|
|
4210
|
+
} else if (wt(b))
|
|
4211
|
+
f = Qr("<!---->"), m = f.ownerDocument.importNode(b, !0), m.nodeType === Ee.element && m.nodeName === "BODY" || m.nodeName === "HTML" ? f = m : f.appendChild(m), Vn(m);
|
|
4204
4212
|
else {
|
|
4205
|
-
if (!
|
|
4213
|
+
if (!Ze && !Me && !Ve && // eslint-disable-next-line unicorn/prefer-includes
|
|
4206
4214
|
b.indexOf("<") === -1)
|
|
4207
|
-
return
|
|
4208
|
-
if (f =
|
|
4209
|
-
return
|
|
4215
|
+
return x && Bt ? I(b) : b;
|
|
4216
|
+
if (f = Qr(b), !f)
|
|
4217
|
+
return Ze ? null : Bt ? v : "";
|
|
4210
4218
|
}
|
|
4211
|
-
f &&
|
|
4212
|
-
const K =
|
|
4219
|
+
f && Nn && $e(f.firstChild);
|
|
4220
|
+
const K = Jr(C ? b : f);
|
|
4213
4221
|
try {
|
|
4214
4222
|
for (; E = K.nextNode(); )
|
|
4215
|
-
|
|
4216
|
-
} catch (
|
|
4217
|
-
throw C &&
|
|
4223
|
+
es(E), rs(E), et(E.content) && Yt(E.content);
|
|
4224
|
+
} catch (fe) {
|
|
4225
|
+
throw C && Xr(b), fe;
|
|
4218
4226
|
}
|
|
4219
4227
|
if (C)
|
|
4220
|
-
return
|
|
4221
|
-
|
|
4222
|
-
}),
|
|
4223
|
-
if (
|
|
4224
|
-
if (
|
|
4225
|
-
for (O =
|
|
4228
|
+
return xt(e.removed, (fe) => {
|
|
4229
|
+
fe.element && Qi(fe.element);
|
|
4230
|
+
}), Me && Fn(b), b;
|
|
4231
|
+
if (Ze) {
|
|
4232
|
+
if (Me && Fn(f), Ut)
|
|
4233
|
+
for (O = Di.call(f.ownerDocument); f.firstChild; )
|
|
4226
4234
|
O.appendChild(f.firstChild);
|
|
4227
4235
|
else
|
|
4228
4236
|
O = f;
|
|
4229
|
-
return (
|
|
4237
|
+
return (F.shadowroot || F.shadowrootmode) && (O = Mi.call(r, O, !0)), O;
|
|
4230
4238
|
}
|
|
4231
|
-
let G =
|
|
4232
|
-
return
|
|
4233
|
-
` + G),
|
|
4239
|
+
let G = Ve ? f.outerHTML : f.innerHTML;
|
|
4240
|
+
return Ve && j["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && X(Jl, f.ownerDocument.doctype.name) && (G = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
|
|
4241
|
+
` + G), Me && (G = qt(G)), x && Bt ? I(G) : G;
|
|
4234
4242
|
}, e.setConfig = function() {
|
|
4235
4243
|
let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4236
|
-
|
|
4244
|
+
jn(b), An = !0, Rn = j, On = F;
|
|
4237
4245
|
}, e.clearConfig = function() {
|
|
4238
|
-
|
|
4246
|
+
Je = null, An = !1, Rn = null, On = null, x = L, v = "";
|
|
4239
4247
|
}, e.isValidAttribute = function(b, a, f) {
|
|
4240
|
-
|
|
4241
|
-
const m =
|
|
4242
|
-
return
|
|
4248
|
+
Je || jn({});
|
|
4249
|
+
const m = H(b), E = H(a);
|
|
4250
|
+
return ts(m, E, f);
|
|
4243
4251
|
}, e.addHook = function(b, a) {
|
|
4244
|
-
typeof a == "function" && Y(B, b) &&
|
|
4252
|
+
typeof a == "function" && Y(B, b) && nt(B[b], a);
|
|
4245
4253
|
}, e.removeHook = function(b, a) {
|
|
4246
4254
|
if (Y(B, b)) {
|
|
4247
4255
|
if (a !== void 0) {
|
|
4248
4256
|
const f = $l(B[b], a);
|
|
4249
4257
|
return f === -1 ? void 0 : Pl(B[b], f, 1)[0];
|
|
4250
4258
|
}
|
|
4251
|
-
return
|
|
4259
|
+
return ys(B[b]);
|
|
4252
4260
|
}
|
|
4253
4261
|
}, e.removeHooks = function(b) {
|
|
4254
4262
|
Y(B, b) && (B[b] = []);
|
|
4255
4263
|
}, e.removeAllHooks = function() {
|
|
4256
|
-
B =
|
|
4264
|
+
B = Ns();
|
|
4257
4265
|
}, e;
|
|
4258
4266
|
}
|
|
4259
|
-
var oc =
|
|
4267
|
+
var oc = Ni();
|
|
4260
4268
|
const ac = {
|
|
4261
4269
|
tooltipAttributes: {
|
|
4262
4270
|
maxWidth: "300px",
|
|
4263
4271
|
placement: "top"
|
|
4264
4272
|
}
|
|
4265
4273
|
};
|
|
4266
|
-
function
|
|
4274
|
+
function Ii(t, e = "") {
|
|
4267
4275
|
const n = {}, r = t;
|
|
4268
|
-
return Array.isArray(r.fields) ? Object.assign(n, kn(r, e)) : t.type === "array" && t.elements ? Object.assign(n,
|
|
4276
|
+
return Array.isArray(r.fields) ? Object.assign(n, kn(r, e)) : t.type === "array" && t.elements ? Object.assign(n, xn(t, e)) : t.type === "map" && t.values && Object.assign(n, Sn(t, e)), n;
|
|
4269
4277
|
}
|
|
4270
4278
|
function kn(t, e = "") {
|
|
4271
4279
|
const n = {};
|
|
4272
4280
|
if (Array.isArray(t.fields))
|
|
4273
4281
|
for (const r of t.fields) {
|
|
4274
|
-
const s = Object.keys(r)[0], i = r[s], o = e ?
|
|
4282
|
+
const s = Object.keys(r)[0], i = r[s], o = e ? z(e, s) : s;
|
|
4275
4283
|
if (n[o] = i, i.type === "record" && Array.isArray(i.fields)) {
|
|
4276
4284
|
const l = kn(i, o);
|
|
4277
4285
|
Object.assign(n, l);
|
|
4278
4286
|
} else if (i.type === "array" && i.elements) {
|
|
4279
|
-
const l =
|
|
4287
|
+
const l = xn(i, o);
|
|
4280
4288
|
Object.assign(n, l);
|
|
4281
4289
|
} else if (i.type === "map" && i.values) {
|
|
4282
|
-
const l =
|
|
4290
|
+
const l = Sn(i, o);
|
|
4283
4291
|
Object.assign(n, l);
|
|
4284
4292
|
}
|
|
4285
4293
|
}
|
|
4286
4294
|
return n;
|
|
4287
4295
|
}
|
|
4288
|
-
function
|
|
4296
|
+
function xn(t, e = "") {
|
|
4289
4297
|
const n = {};
|
|
4290
4298
|
if (t.elements) {
|
|
4291
|
-
const r = t.elements, s =
|
|
4299
|
+
const r = t.elements, s = z(e, mi);
|
|
4292
4300
|
if (n[s] = r, r.type === "record" && Array.isArray(r.fields)) {
|
|
4293
4301
|
const i = kn(r, s);
|
|
4294
4302
|
Object.assign(n, i);
|
|
4295
4303
|
} else if (r.type === "array" && r.elements) {
|
|
4296
|
-
const i =
|
|
4304
|
+
const i = xn(r, s);
|
|
4297
4305
|
Object.assign(n, i);
|
|
4298
4306
|
} else if (r.type === "map" && r.values) {
|
|
4299
|
-
const i =
|
|
4307
|
+
const i = Sn(r, s);
|
|
4300
4308
|
Object.assign(n, i);
|
|
4301
4309
|
}
|
|
4302
4310
|
}
|
|
4303
4311
|
return n;
|
|
4304
4312
|
}
|
|
4305
|
-
function
|
|
4306
|
-
const n = {}, r =
|
|
4313
|
+
function Sn(t, e = "") {
|
|
4314
|
+
const n = {}, r = z(e, Tr);
|
|
4307
4315
|
if (n[r] = t.values, t.values.type === "record" && Array.isArray(t.values.fields)) {
|
|
4308
4316
|
const s = kn(t.values, r);
|
|
4309
4317
|
Object.assign(n, s);
|
|
4310
4318
|
} else if ((t.values.type === "array" || t.values.type === "set") && t.values.elements) {
|
|
4311
|
-
const s =
|
|
4319
|
+
const s = xn(t.values, r);
|
|
4312
4320
|
Object.assign(n, s);
|
|
4313
4321
|
} else if (t.values.type === "map" && t.values.values) {
|
|
4314
|
-
const s =
|
|
4322
|
+
const s = Sn(t.values, r);
|
|
4315
4323
|
Object.assign(n, s);
|
|
4316
4324
|
}
|
|
4317
4325
|
return n;
|
|
4318
4326
|
}
|
|
4319
|
-
function
|
|
4320
|
-
const n =
|
|
4327
|
+
function Ht(t, e) {
|
|
4328
|
+
const n = Nt(t), r = [];
|
|
4321
4329
|
for (let s = 0; s < n.length; s++) {
|
|
4322
|
-
const i = n[s], o = r.length > 0 ?
|
|
4323
|
-
l?.type === "map" ? r.push(
|
|
4330
|
+
const i = n[s], o = r.length > 0 ? z(...r) : "", l = o ? e[o] : void 0;
|
|
4331
|
+
l?.type === "map" ? r.push(Tr) : l?.type === "array" ? r.push(mi) : r.push(i);
|
|
4324
4332
|
}
|
|
4325
|
-
return
|
|
4333
|
+
return z(...r);
|
|
4326
4334
|
}
|
|
4327
4335
|
function lc(t) {
|
|
4328
|
-
const e =
|
|
4336
|
+
const e = ae(t), n = ar(() => e ? Ii(e) : {});
|
|
4329
4337
|
function r(d) {
|
|
4330
4338
|
if (d) {
|
|
4331
|
-
let g =
|
|
4332
|
-
return g.startsWith(`${
|
|
4339
|
+
let g = Ht(d, n.value || {});
|
|
4340
|
+
return g.startsWith(`${ut}${En}`) && (g = g.slice(2)), n.value?.[g];
|
|
4333
4341
|
}
|
|
4334
4342
|
return e;
|
|
4335
4343
|
}
|
|
@@ -4341,8 +4349,8 @@ function lc(t) {
|
|
|
4341
4349
|
const _ = {};
|
|
4342
4350
|
if (Array.isArray(d.fields))
|
|
4343
4351
|
for (const y of d.fields) {
|
|
4344
|
-
const
|
|
4345
|
-
R !== void 0 && (_[
|
|
4352
|
+
const k = Object.keys(y)[0], A = g ? `${g}.${k}` : k, R = s(A, !1);
|
|
4353
|
+
R !== void 0 && (_[k] = R);
|
|
4346
4354
|
}
|
|
4347
4355
|
return _;
|
|
4348
4356
|
}
|
|
@@ -4394,18 +4402,18 @@ function lc(t) {
|
|
|
4394
4402
|
getEmptyOrDefault: u
|
|
4395
4403
|
};
|
|
4396
4404
|
}
|
|
4397
|
-
const
|
|
4405
|
+
const ft = /* @__PURE__ */ new WeakMap(), cc = /* @__NO_SIDE_EFFECTS__ */ (...t) => {
|
|
4398
4406
|
var e;
|
|
4399
|
-
const n = t[0], r = (e =
|
|
4407
|
+
const n = t[0], r = (e = dt()) === null || e === void 0 ? void 0 : e.proxy, s = r ?? Ps();
|
|
4400
4408
|
if (s == null && !ua()) throw new Error("injectLocal must be called in setup");
|
|
4401
|
-
return s &&
|
|
4409
|
+
return s && ft.has(s) && n in ft.get(s) ? ft.get(s)[n] : ii(...t);
|
|
4402
4410
|
};
|
|
4403
4411
|
function uc(t, e) {
|
|
4404
4412
|
var n;
|
|
4405
|
-
const r = (n =
|
|
4413
|
+
const r = (n = dt()) === null || n === void 0 ? void 0 : n.proxy, s = r ?? Ps();
|
|
4406
4414
|
if (s == null) throw new Error("provideLocal must be called in setup");
|
|
4407
|
-
|
|
4408
|
-
const i =
|
|
4415
|
+
ft.has(s) || ft.set(s, /* @__PURE__ */ Object.create(null));
|
|
4416
|
+
const i = ft.get(s);
|
|
4409
4417
|
return i[t] = e, si(t, e);
|
|
4410
4418
|
}
|
|
4411
4419
|
function fc(t, e) {
|
|
@@ -4416,26 +4424,26 @@ function fc(t, e) {
|
|
|
4416
4424
|
}, () => /* @__PURE__ */ cc(n, r)];
|
|
4417
4425
|
}
|
|
4418
4426
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4419
|
-
const
|
|
4427
|
+
const Is = /* @__PURE__ */ Symbol("ff-render-rule-exact-match");
|
|
4420
4428
|
function pc(t, e) {
|
|
4421
|
-
const n = /* @__PURE__ */
|
|
4422
|
-
function s(y,
|
|
4423
|
-
const A = y.map((S) =>
|
|
4429
|
+
const n = /* @__PURE__ */ sr({}), r = /* @__PURE__ */ sr(/* @__PURE__ */ new Set());
|
|
4430
|
+
function s(y, k) {
|
|
4431
|
+
const A = y.map((S) => Nt(S).length), R = A[0];
|
|
4424
4432
|
if (!A.every((S) => S === R)) {
|
|
4425
4433
|
const S = y.map((w, T) => ` - '${w}' is at level ${A[T]}`).join(`
|
|
4426
4434
|
`);
|
|
4427
4435
|
throw new Error(
|
|
4428
|
-
`${
|
|
4436
|
+
`${k}: Fields must be at the same level. Found mixed levels:
|
|
4429
4437
|
${S}`
|
|
4430
4438
|
);
|
|
4431
4439
|
}
|
|
4432
4440
|
}
|
|
4433
4441
|
function i(y) {
|
|
4434
|
-
for (const [
|
|
4442
|
+
for (const [k, A] of Object.entries(y)) {
|
|
4435
4443
|
if (!A.bundles) continue;
|
|
4436
4444
|
for (const S of A.bundles)
|
|
4437
4445
|
if (new Set(S).size !== S.length) {
|
|
4438
|
-
const T = S.filter((
|
|
4446
|
+
const T = S.filter((x, v) => S.indexOf(x) !== v);
|
|
4439
4447
|
throw new Error(
|
|
4440
4448
|
`Self-cycle detected in bundle: field '${T[0]}' appears multiple times in [${S.join(", ")}]`
|
|
4441
4449
|
);
|
|
@@ -4443,46 +4451,46 @@ ${S}`
|
|
|
4443
4451
|
const R = /* @__PURE__ */ new Map();
|
|
4444
4452
|
for (const S of A.bundles)
|
|
4445
4453
|
for (let w = 1; w < S.length; w++) {
|
|
4446
|
-
const T = S[w],
|
|
4447
|
-
R.has(T) || R.set(T, /* @__PURE__ */ new Set()), R.get(T).add(
|
|
4454
|
+
const T = S[w], x = S[w - 1];
|
|
4455
|
+
R.has(T) || R.set(T, /* @__PURE__ */ new Set()), R.get(T).add(x);
|
|
4448
4456
|
}
|
|
4449
4457
|
for (const S of R.keys()) {
|
|
4450
4458
|
let w = function(v) {
|
|
4451
|
-
if (
|
|
4452
|
-
const ne = [...
|
|
4459
|
+
if (x.includes(v)) {
|
|
4460
|
+
const ne = [...x, v].join(" -> ");
|
|
4453
4461
|
throw new Error(
|
|
4454
|
-
`Circular bundle detected in path '${
|
|
4462
|
+
`Circular bundle detected in path '${k}':
|
|
4455
4463
|
${ne}`
|
|
4456
4464
|
);
|
|
4457
4465
|
}
|
|
4458
4466
|
if (T.has(v)) return;
|
|
4459
|
-
T.add(v),
|
|
4467
|
+
T.add(v), x.push(v);
|
|
4460
4468
|
const L = R.get(v);
|
|
4461
4469
|
if (L)
|
|
4462
4470
|
for (const ne of L)
|
|
4463
4471
|
w(ne);
|
|
4464
|
-
|
|
4472
|
+
x.pop();
|
|
4465
4473
|
};
|
|
4466
|
-
const T = /* @__PURE__ */ new Set(),
|
|
4474
|
+
const T = /* @__PURE__ */ new Set(), x = [];
|
|
4467
4475
|
w(S);
|
|
4468
4476
|
}
|
|
4469
4477
|
}
|
|
4470
4478
|
}
|
|
4471
4479
|
function o(y) {
|
|
4472
|
-
for (const [
|
|
4480
|
+
for (const [k, A] of Object.entries(y))
|
|
4473
4481
|
if (A.dependencies)
|
|
4474
4482
|
for (const R of Object.keys(A.dependencies)) {
|
|
4475
|
-
let S = function(
|
|
4476
|
-
if (T.includes(
|
|
4477
|
-
const L = [...T,
|
|
4483
|
+
let S = function(x) {
|
|
4484
|
+
if (T.includes(x)) {
|
|
4485
|
+
const L = [...T, x].join(" -> ");
|
|
4478
4486
|
throw new Error(
|
|
4479
|
-
`Circular dependency detected in path '${
|
|
4487
|
+
`Circular dependency detected in path '${k}':
|
|
4480
4488
|
${L}`
|
|
4481
4489
|
);
|
|
4482
4490
|
}
|
|
4483
|
-
if (w.has(
|
|
4484
|
-
w.add(
|
|
4485
|
-
const v = A.dependencies[
|
|
4491
|
+
if (w.has(x)) return;
|
|
4492
|
+
w.add(x), T.push(x);
|
|
4493
|
+
const v = A.dependencies[x];
|
|
4486
4494
|
if (v) {
|
|
4487
4495
|
const [L] = v;
|
|
4488
4496
|
A.dependencies[L] && S(L);
|
|
@@ -4493,47 +4501,47 @@ ${L}`
|
|
|
4493
4501
|
S(R);
|
|
4494
4502
|
}
|
|
4495
4503
|
}
|
|
4496
|
-
function l(y,
|
|
4497
|
-
const A = y.map((S) =>
|
|
4498
|
-
return R.pop(),
|
|
4504
|
+
function l(y, k) {
|
|
4505
|
+
const A = y.map((S) => k ? z(k, S) : S), R = Nt(A[0]);
|
|
4506
|
+
return R.pop(), z(...R);
|
|
4499
4507
|
}
|
|
4500
|
-
function c(y,
|
|
4501
|
-
if (!
|
|
4502
|
-
const A = `${
|
|
4508
|
+
function c(y, k) {
|
|
4509
|
+
if (!k) return y;
|
|
4510
|
+
const A = `${k}${En}`;
|
|
4503
4511
|
return y.startsWith(A) ? y.slice(A.length) : y;
|
|
4504
4512
|
}
|
|
4505
4513
|
function p(y) {
|
|
4506
|
-
const
|
|
4507
|
-
return
|
|
4514
|
+
const k = Nt(y);
|
|
4515
|
+
return k.pop(), z(...k);
|
|
4508
4516
|
}
|
|
4509
|
-
const h =
|
|
4517
|
+
const h = ar(() => {
|
|
4510
4518
|
const y = {};
|
|
4511
|
-
for (const [
|
|
4512
|
-
const R =
|
|
4519
|
+
for (const [k, A] of Object.entries(n.value)) {
|
|
4520
|
+
const R = k === ut ? "" : k;
|
|
4513
4521
|
if (A.bundles)
|
|
4514
4522
|
for (const S of A.bundles) {
|
|
4515
4523
|
if (S.length < 2)
|
|
4516
4524
|
throw new Error(
|
|
4517
4525
|
`Bundle must contain at least 2 fields. Found ${S.length} field(s) in bundle: [${S.join(", ")}]`
|
|
4518
4526
|
);
|
|
4519
|
-
const w = S.map((v) => R ?
|
|
4527
|
+
const w = S.map((v) => R ? z(R, v) : v);
|
|
4520
4528
|
s(w, `Bundle [${S.join(", ")}]`);
|
|
4521
|
-
const T = l(S, R) ||
|
|
4529
|
+
const T = l(S, R) || ut;
|
|
4522
4530
|
y[T] || (y[T] = {}), y[T].bundles || (y[T].bundles = []);
|
|
4523
|
-
const
|
|
4524
|
-
y[T].bundles.push(
|
|
4531
|
+
const x = w.map((v) => c(v, T));
|
|
4532
|
+
y[T].bundles.push(x);
|
|
4525
4533
|
}
|
|
4526
4534
|
if (A.dependencies)
|
|
4527
4535
|
for (const [S, [w, T]] of Object.entries(A.dependencies)) {
|
|
4528
|
-
const
|
|
4536
|
+
const x = R ? z(R, S) : S, v = R ? z(R, w) : w;
|
|
4529
4537
|
s(
|
|
4530
|
-
[
|
|
4538
|
+
[x, v],
|
|
4531
4539
|
`Dependency '${S}' -> '${w}'`
|
|
4532
4540
|
);
|
|
4533
|
-
const L = p(
|
|
4541
|
+
const L = p(x) || ut;
|
|
4534
4542
|
y[L] || (y[L] = {}), y[L].dependencies || (y[L].dependencies = {});
|
|
4535
|
-
const ne = c(
|
|
4536
|
-
y[L].dependencies[ne] = [
|
|
4543
|
+
const ne = c(x, L), ge = c(v, L);
|
|
4544
|
+
y[L].dependencies[ne] = [ge, T];
|
|
4537
4545
|
}
|
|
4538
4546
|
}
|
|
4539
4547
|
return i(y), o(y), y;
|
|
@@ -4541,57 +4549,57 @@ ${L}`
|
|
|
4541
4549
|
function u(y) {
|
|
4542
4550
|
if (!y)
|
|
4543
4551
|
return h.value;
|
|
4544
|
-
const
|
|
4545
|
-
return h.value[
|
|
4552
|
+
const k = Ht(y, e());
|
|
4553
|
+
return h.value[k];
|
|
4546
4554
|
}
|
|
4547
4555
|
function d(y) {
|
|
4548
|
-
let
|
|
4549
|
-
return
|
|
4550
|
-
if (
|
|
4551
|
-
const A =
|
|
4556
|
+
let k = !1;
|
|
4557
|
+
return ar(() => {
|
|
4558
|
+
if (k) return;
|
|
4559
|
+
const A = ae(y);
|
|
4552
4560
|
try {
|
|
4553
4561
|
return u(A);
|
|
4554
4562
|
} catch (R) {
|
|
4555
|
-
|
|
4563
|
+
k = !0, console.error(`Failed to get render rules for path: \`${A}\`,`, R instanceof Error ? R.message : "");
|
|
4556
4564
|
return;
|
|
4557
4565
|
}
|
|
4558
4566
|
});
|
|
4559
4567
|
}
|
|
4560
4568
|
function g(y) {
|
|
4561
4569
|
const {
|
|
4562
|
-
fieldPath:
|
|
4570
|
+
fieldPath: k,
|
|
4563
4571
|
rules: A,
|
|
4564
4572
|
parentValue: R,
|
|
4565
4573
|
omittedFields: S
|
|
4566
4574
|
} = y;
|
|
4567
|
-
|
|
4568
|
-
() =>
|
|
4569
|
-
() =>
|
|
4570
|
-
], ([T,
|
|
4571
|
-
T ? n.value[
|
|
4575
|
+
fn([
|
|
4576
|
+
() => ae(A),
|
|
4577
|
+
() => ae(k)
|
|
4578
|
+
], ([T, x], [, v]) => {
|
|
4579
|
+
T ? n.value[x] = T : delete n.value[x], v && v !== x && delete n.value[v];
|
|
4572
4580
|
}, { immediate: !0, deep: !0 });
|
|
4573
|
-
const w = d(
|
|
4574
|
-
return
|
|
4581
|
+
const w = d(k);
|
|
4582
|
+
return fn(
|
|
4575
4583
|
[
|
|
4576
|
-
() =>
|
|
4577
|
-
() =>
|
|
4578
|
-
() =>
|
|
4579
|
-
() =>
|
|
4584
|
+
() => ae(R),
|
|
4585
|
+
() => ae(w)?.dependencies,
|
|
4586
|
+
() => ae(k),
|
|
4587
|
+
() => ae(S)
|
|
4580
4588
|
],
|
|
4581
|
-
([T,
|
|
4582
|
-
!
|
|
4589
|
+
([T, x, v, L]) => {
|
|
4590
|
+
!x || !T || Object.entries(x).forEach(([ne, [ge, ue]]) => {
|
|
4583
4591
|
if (L?.includes(ne)) return;
|
|
4584
|
-
const I =
|
|
4585
|
-
if (typeof
|
|
4586
|
-
r.value.delete(
|
|
4592
|
+
const I = Ds(T, ge), me = v ? Ua(z(v, ne)) : ne;
|
|
4593
|
+
if (typeof ue == "object" && ue !== null && Is in ue ? nn(I, ue[Is]) : Array.isArray(ue) ? ue.some((mt) => nn(I, mt)) : nn(I, ue)) {
|
|
4594
|
+
r.value.delete(me), t();
|
|
4587
4595
|
return;
|
|
4588
4596
|
}
|
|
4589
|
-
r.value.add(
|
|
4597
|
+
r.value.add(me), t();
|
|
4590
4598
|
});
|
|
4591
4599
|
},
|
|
4592
4600
|
{ deep: !0, immediate: !0 }
|
|
4593
4601
|
), _a(() => {
|
|
4594
|
-
const T =
|
|
4602
|
+
const T = ae(k);
|
|
4595
4603
|
delete n.value[T];
|
|
4596
4604
|
}), w;
|
|
4597
4605
|
}
|
|
@@ -4601,7 +4609,7 @@ ${L}`
|
|
|
4601
4609
|
return {
|
|
4602
4610
|
useCurrentRules: g,
|
|
4603
4611
|
createComputedRules: d,
|
|
4604
|
-
hiddenPaths: /* @__PURE__ */
|
|
4612
|
+
hiddenPaths: /* @__PURE__ */ an(r),
|
|
4605
4613
|
isFieldHidden: _
|
|
4606
4614
|
};
|
|
4607
4615
|
}
|
|
@@ -4610,7 +4618,7 @@ function dc() {
|
|
|
4610
4618
|
return `kid:${++hc}`;
|
|
4611
4619
|
}
|
|
4612
4620
|
function gc(t) {
|
|
4613
|
-
const e = /* @__PURE__ */
|
|
4621
|
+
const e = /* @__PURE__ */ yn(/* @__PURE__ */ new Map());
|
|
4614
4622
|
function n(p = "") {
|
|
4615
4623
|
const h = dc();
|
|
4616
4624
|
return e.set(h, p), h;
|
|
@@ -4649,19 +4657,19 @@ function mc(t, e, n) {
|
|
|
4649
4657
|
return s;
|
|
4650
4658
|
if (Array.isArray(s))
|
|
4651
4659
|
return s.map((c, p) => {
|
|
4652
|
-
const h = i ?
|
|
4660
|
+
const h = i ? z(i, `${p}`) : `${p}`;
|
|
4653
4661
|
return r(c, h);
|
|
4654
4662
|
});
|
|
4655
4663
|
if ((i ? e(i) : e())?.type === "map") {
|
|
4656
4664
|
const c = s, p = {};
|
|
4657
4665
|
return Object.keys(c).forEach((h) => {
|
|
4658
|
-
const u = n(h), d = c[h], g = i ?
|
|
4666
|
+
const u = n(h), d = c[h], g = i ? z(i, h) : h;
|
|
4659
4667
|
p[u] = r(d, g);
|
|
4660
4668
|
}), p;
|
|
4661
4669
|
}
|
|
4662
4670
|
const l = {};
|
|
4663
4671
|
return Object.keys(s).forEach((c) => {
|
|
4664
|
-
const p = i ?
|
|
4672
|
+
const p = i ? z(i, c) : c;
|
|
4665
4673
|
l[c] = r(s[c], p);
|
|
4666
4674
|
}), l;
|
|
4667
4675
|
};
|
|
@@ -4673,7 +4681,7 @@ function _c(t, e, n) {
|
|
|
4673
4681
|
return s;
|
|
4674
4682
|
if (Array.isArray(s))
|
|
4675
4683
|
return s.map((c, p) => {
|
|
4676
|
-
const h = i ?
|
|
4684
|
+
const h = i ? z(i, `${p}`) : `${p}`;
|
|
4677
4685
|
return r(c, h);
|
|
4678
4686
|
});
|
|
4679
4687
|
if ((i ? e(i) : e())?.type === "map") {
|
|
@@ -4684,13 +4692,13 @@ function _c(t, e, n) {
|
|
|
4684
4692
|
console.error(`[FreeForm] Missing name for key ID: ${String(u)}`);
|
|
4685
4693
|
return;
|
|
4686
4694
|
}
|
|
4687
|
-
const _ = g ||
|
|
4695
|
+
const _ = g || Tr, y = i ? z(i, _) : _;
|
|
4688
4696
|
p[g] = r(d, y);
|
|
4689
4697
|
}), p;
|
|
4690
4698
|
}
|
|
4691
4699
|
const l = {};
|
|
4692
4700
|
return Object.keys(s).forEach((c) => {
|
|
4693
|
-
const p = i ?
|
|
4701
|
+
const p = i ? z(i, c) : c;
|
|
4694
4702
|
l[c] = r(s[c], p);
|
|
4695
4703
|
}), l;
|
|
4696
4704
|
};
|
|
@@ -4708,53 +4716,52 @@ fc(
|
|
|
4708
4716
|
getDefault: l,
|
|
4709
4717
|
getEmptyOrDefault: c,
|
|
4710
4718
|
...p
|
|
4711
|
-
} = lc(n), h = gc(p.getSchema), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */
|
|
4712
|
-
si(Ga,
|
|
4719
|
+
} = lc(n), h = gc(p.getSchema), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ yn({}), g = /* @__PURE__ */ Uo(() => o ?? {}), _ = wa();
|
|
4720
|
+
si(Ga, so(_, "default", qa));
|
|
4713
4721
|
const {
|
|
4714
4722
|
useCurrentRules: y,
|
|
4715
|
-
createComputedRules:
|
|
4723
|
+
createComputedRules: k,
|
|
4716
4724
|
hiddenPaths: A,
|
|
4717
4725
|
isFieldHidden: R
|
|
4718
4726
|
} = pc(() => s?.(v()), p.getSchemaMap), S = y({
|
|
4719
|
-
fieldPath:
|
|
4727
|
+
fieldPath: ut,
|
|
4720
4728
|
rules: i,
|
|
4721
4729
|
parentValue: d
|
|
4722
4730
|
});
|
|
4723
4731
|
function w(I) {
|
|
4724
|
-
Object.keys(d).forEach((
|
|
4725
|
-
delete d[
|
|
4732
|
+
Object.keys(d).forEach((me) => {
|
|
4733
|
+
delete d[me];
|
|
4726
4734
|
}), h.clear(), Object.assign(d, h.serialize(I));
|
|
4727
4735
|
}
|
|
4728
4736
|
function T(I) {
|
|
4729
|
-
let
|
|
4730
|
-
!I || !
|
|
4737
|
+
let me;
|
|
4738
|
+
!I || !x(ae(I)) ? me = l() : me = ss(ae(I)), is(g.value.prepareFormData) ? w(g.value.prepareFormData(me)) : w(me);
|
|
4731
4739
|
}
|
|
4732
|
-
function
|
|
4733
|
-
return
|
|
4740
|
+
function x(I) {
|
|
4741
|
+
return is(g.value.hasValue) ? g.value.hasValue(I) : !!I;
|
|
4734
4742
|
}
|
|
4735
4743
|
function v() {
|
|
4736
|
-
const I =
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
return h.deserialize(re);
|
|
4744
|
+
const I = ss(ae(d));
|
|
4745
|
+
return A.value.size > 0 && _i(
|
|
4746
|
+
I,
|
|
4747
|
+
R,
|
|
4748
|
+
c
|
|
4749
|
+
), h.deserialize(I);
|
|
4743
4750
|
}
|
|
4744
|
-
|
|
4751
|
+
fn(d, () => {
|
|
4745
4752
|
s?.(v());
|
|
4746
4753
|
}, { deep: !0 });
|
|
4747
4754
|
let L = !1;
|
|
4748
|
-
|
|
4749
|
-
L &&
|
|
4755
|
+
fn(() => r?.value, (I) => {
|
|
4756
|
+
L && nn(v(), ae(I)) || (T(I), L = !0);
|
|
4750
4757
|
}, { deep: !0, immediate: !0 });
|
|
4751
4758
|
function ne(I) {
|
|
4752
4759
|
return I != null && typeof I == "object" && !Array.isArray(I) ? h.serialize(I) : I;
|
|
4753
4760
|
}
|
|
4754
|
-
function
|
|
4761
|
+
function ge(I) {
|
|
4755
4762
|
return ne(l(I));
|
|
4756
4763
|
}
|
|
4757
|
-
function
|
|
4764
|
+
function ue(I) {
|
|
4758
4765
|
return ne(c(I));
|
|
4759
4766
|
}
|
|
4760
4767
|
return {
|
|
@@ -4768,13 +4775,13 @@ fc(
|
|
|
4768
4775
|
setValue: w,
|
|
4769
4776
|
useCurrentRenderRules: y,
|
|
4770
4777
|
rootRenderRules: S,
|
|
4771
|
-
createComputedRenderRules:
|
|
4778
|
+
createComputedRenderRules: k,
|
|
4772
4779
|
...p,
|
|
4773
4780
|
getValue: v,
|
|
4774
4781
|
isFieldHidden: R,
|
|
4775
4782
|
keyIdMap: h,
|
|
4776
|
-
getDefault:
|
|
4777
|
-
getEmptyOrDefault:
|
|
4783
|
+
getDefault: ge,
|
|
4784
|
+
getEmptyOrDefault: ue
|
|
4778
4785
|
};
|
|
4779
4786
|
}
|
|
4780
4787
|
);
|
|
@@ -4806,9 +4813,9 @@ function bc(t) {
|
|
|
4806
4813
|
}
|
|
4807
4814
|
function* Tc(t, e, n, r = "") {
|
|
4808
4815
|
for (const s of t) {
|
|
4809
|
-
const i = Object.keys(s)[0], o = r ?
|
|
4816
|
+
const i = Object.keys(s)[0], o = r ? z(r, i) : i, l = Ds(e, i);
|
|
4810
4817
|
if (l === void 0) continue;
|
|
4811
|
-
const c =
|
|
4818
|
+
const c = Ht(o, n.schemaMap), p = n.schemaMap[c];
|
|
4812
4819
|
if (!p)
|
|
4813
4820
|
throw new Error(`Field schema for "${o}" not found in schema map`);
|
|
4814
4821
|
yield {
|
|
@@ -4819,14 +4826,14 @@ function* Tc(t, e, n, r = "") {
|
|
|
4819
4826
|
};
|
|
4820
4827
|
}
|
|
4821
4828
|
}
|
|
4822
|
-
function
|
|
4823
|
-
const r =
|
|
4829
|
+
function kc(t, e, n) {
|
|
4830
|
+
const r = z(t, String(e)), s = Ht(r, n.schemaMap), i = n.schemaMap[s];
|
|
4824
4831
|
if (!i)
|
|
4825
4832
|
throw new Error(`Item schema for "${r}" not found in schema map`);
|
|
4826
4833
|
return { itemKey: r, itemSchema: i };
|
|
4827
4834
|
}
|
|
4828
|
-
function
|
|
4829
|
-
const r =
|
|
4835
|
+
function xc(t, e, n) {
|
|
4836
|
+
const r = z(t, e), s = Ht(r, n.schemaMap), i = n.schemaMap[s];
|
|
4830
4837
|
if (!i)
|
|
4831
4838
|
throw new Error(`Map entry schema for "${r}" not found in schema map`);
|
|
4832
4839
|
return { entryKey: r, entrySchema: i };
|
|
@@ -4836,14 +4843,14 @@ function Sc(t) {
|
|
|
4836
4843
|
}
|
|
4837
4844
|
function vc(t) {
|
|
4838
4845
|
return {
|
|
4839
|
-
schemaMap:
|
|
4846
|
+
schemaMap: Ii(t)
|
|
4840
4847
|
};
|
|
4841
4848
|
}
|
|
4842
4849
|
export {
|
|
4843
|
-
|
|
4850
|
+
kc as a,
|
|
4844
4851
|
Sc as b,
|
|
4845
4852
|
vc as c,
|
|
4846
|
-
|
|
4853
|
+
xc as d,
|
|
4847
4854
|
bc as g,
|
|
4848
4855
|
Ec as i,
|
|
4849
4856
|
wc as s,
|