@metapages/metapage 1.8.22 → 1.8.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +454 -434
- package/dist/index.js.map +1 -1
- package/dist/metapage/Metapage.d.ts +1 -1
- package/dist/metapage/Metapage.d.ts.map +1 -1
- package/dist/metapage/metapageRenderer.d.ts +3 -0
- package/dist/metapage/metapageRenderer.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/metapage/Metapage.ts +7 -4
- package/src/metapage/metapageRenderer.ts +55 -7
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const
|
|
1
|
+
const Ct = ["0.3", "0.4", "0.5", "0.6", "1", "2"], $t = ["0.2", "0.3", "1", "2"], We = "2", Le = "2", Mi = "metaframe.json", Ii = "metapage/definition", Ci = "metapage/state", Wt = $t[$t.length - 1], As = Ct[Ct.length - 1], Es = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, xt = (t) => {
|
|
2
2
|
if (typeof t != "string")
|
|
3
3
|
throw new TypeError("Invalid argument expected string");
|
|
4
4
|
const e = t.match(Es);
|
|
5
5
|
if (!e)
|
|
6
6
|
throw new Error(`Invalid argument not valid semver ('${t}' received)`);
|
|
7
7
|
return e.shift(), e;
|
|
8
|
-
},
|
|
8
|
+
}, Lt = (t) => t === "*" || t === "x" || t === "X", Pt = (t) => {
|
|
9
9
|
const e = parseInt(t, 10);
|
|
10
10
|
return isNaN(e) ? t : e;
|
|
11
11
|
}, Ms = (t, e) => typeof t != typeof e ? [String(t), String(e)] : [t, e], Is = (t, e) => {
|
|
12
|
-
if (
|
|
12
|
+
if (Lt(t) || Lt(e))
|
|
13
13
|
return 0;
|
|
14
|
-
const [s, n] = Ms(
|
|
14
|
+
const [s, n] = Ms(Pt(t), Pt(e));
|
|
15
15
|
return s > n ? 1 : s < n ? -1 : 0;
|
|
16
16
|
}, Tt = (t, e) => {
|
|
17
17
|
for (let s = 0; s < Math.max(t.length, e.length); s++) {
|
|
@@ -21,14 +21,14 @@ const It = ["0.3", "0.4", "0.5", "0.6", "1", "2"], Ct = ["0.2", "0.3", "1", "2"]
|
|
|
21
21
|
}
|
|
22
22
|
return 0;
|
|
23
23
|
}, j = (t, e) => {
|
|
24
|
-
const s =
|
|
24
|
+
const s = xt(t), n = xt(e), i = s.pop(), o = n.pop(), r = Tt(s, n);
|
|
25
25
|
return r !== 0 ? r : i && o ? Tt(i.split("."), o.split(".")) : i || o ? i ? -1 : 1 : 0;
|
|
26
26
|
};
|
|
27
27
|
var Cs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
28
28
|
function mt(t) {
|
|
29
29
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var Kt = { exports: {} };
|
|
32
32
|
(function(t, e) {
|
|
33
33
|
(function(s, n) {
|
|
34
34
|
t.exports = n();
|
|
@@ -50,7 +50,7 @@ var Wt = { exports: {} };
|
|
|
50
50
|
retryOn: []
|
|
51
51
|
};
|
|
52
52
|
return r = Object.assign(a, r), function(l, c) {
|
|
53
|
-
var d = r.retries,
|
|
53
|
+
var d = r.retries, g = r.retryDelay, v = r.retryOn;
|
|
54
54
|
if (c && c.retries !== void 0)
|
|
55
55
|
if (n(c.retries))
|
|
56
56
|
d = c.retries;
|
|
@@ -58,7 +58,7 @@ var Wt = { exports: {} };
|
|
|
58
58
|
throw new i("retries must be a positive integer");
|
|
59
59
|
if (c && c.retryDelay !== void 0)
|
|
60
60
|
if (n(c.retryDelay) || typeof c.retryDelay == "function")
|
|
61
|
-
|
|
61
|
+
g = c.retryDelay;
|
|
62
62
|
else
|
|
63
63
|
throw new i("retryDelay must be a positive integer or a function returning a positive integer");
|
|
64
64
|
if (c && c.retryOn)
|
|
@@ -67,26 +67,26 @@ var Wt = { exports: {} };
|
|
|
67
67
|
else
|
|
68
68
|
throw new i("retryOn property expects an array or function");
|
|
69
69
|
return new Promise(function(m, S) {
|
|
70
|
-
var
|
|
70
|
+
var b = function(w) {
|
|
71
71
|
var A = typeof Request < "u" && l instanceof Request ? l.clone() : l;
|
|
72
72
|
o(A, c).then(function(E) {
|
|
73
73
|
if (Array.isArray(v) && v.indexOf(E.status) === -1)
|
|
74
74
|
m(E);
|
|
75
75
|
else if (typeof v == "function")
|
|
76
76
|
try {
|
|
77
|
-
return Promise.resolve(v(
|
|
78
|
-
O ? x(
|
|
77
|
+
return Promise.resolve(v(w, null, E)).then(function(O) {
|
|
78
|
+
O ? x(w, null, E) : m(E);
|
|
79
79
|
}).catch(S);
|
|
80
80
|
} catch (O) {
|
|
81
81
|
S(O);
|
|
82
82
|
}
|
|
83
83
|
else
|
|
84
|
-
|
|
84
|
+
w < d ? x(w, null, E) : m(E);
|
|
85
85
|
}).catch(function(E) {
|
|
86
86
|
if (typeof v == "function")
|
|
87
87
|
try {
|
|
88
|
-
Promise.resolve(v(
|
|
89
|
-
O ? x(
|
|
88
|
+
Promise.resolve(v(w, E, null)).then(function(O) {
|
|
89
|
+
O ? x(w, E, null) : S(E);
|
|
90
90
|
}).catch(function(O) {
|
|
91
91
|
S(O);
|
|
92
92
|
});
|
|
@@ -94,16 +94,16 @@ var Wt = { exports: {} };
|
|
|
94
94
|
S(O);
|
|
95
95
|
}
|
|
96
96
|
else
|
|
97
|
-
|
|
97
|
+
w < d ? x(w, E, null) : S(E);
|
|
98
98
|
});
|
|
99
99
|
};
|
|
100
|
-
function x(
|
|
101
|
-
var O = typeof
|
|
100
|
+
function x(w, A, E) {
|
|
101
|
+
var O = typeof g == "function" ? g(w, A, E) : g;
|
|
102
102
|
setTimeout(function() {
|
|
103
|
-
|
|
103
|
+
b(++w);
|
|
104
104
|
}, O);
|
|
105
105
|
}
|
|
106
|
-
|
|
106
|
+
b(0);
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
109
|
};
|
|
@@ -115,20 +115,20 @@ var Wt = { exports: {} };
|
|
|
115
115
|
}
|
|
116
116
|
return s;
|
|
117
117
|
});
|
|
118
|
-
})(
|
|
119
|
-
var $s =
|
|
118
|
+
})(Kt);
|
|
119
|
+
var $s = Kt.exports;
|
|
120
120
|
const yt = /* @__PURE__ */ mt($s), J = {
|
|
121
121
|
Remove: "remove",
|
|
122
122
|
Replace: "replace",
|
|
123
123
|
Add: "add"
|
|
124
|
-
},
|
|
124
|
+
}, Xt = Symbol.for("__MUTATIVE_PROXY_DRAFT__"), xs = Symbol("__MUTATIVE_RAW_RETURN_SYMBOL__"), Be = Symbol.iterator, Z = {
|
|
125
125
|
mutable: "mutable",
|
|
126
126
|
immutable: "immutable"
|
|
127
127
|
}, gt = {};
|
|
128
128
|
function Ie(t, e) {
|
|
129
129
|
return t instanceof Map ? t.has(e) : Object.prototype.hasOwnProperty.call(t, e);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Dt(t, e) {
|
|
132
132
|
if (e in t) {
|
|
133
133
|
let s = Reflect.getPrototypeOf(t);
|
|
134
134
|
for (; s; ) {
|
|
@@ -144,14 +144,14 @@ function Y(t) {
|
|
|
144
144
|
return (e = t.copy) !== null && e !== void 0 ? e : t.original;
|
|
145
145
|
}
|
|
146
146
|
function be(t) {
|
|
147
|
-
return !!
|
|
147
|
+
return !!T(t);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
return typeof t != "object" ? null : t == null ? void 0 : t[
|
|
149
|
+
function T(t) {
|
|
150
|
+
return typeof t != "object" ? null : t == null ? void 0 : t[Xt];
|
|
151
151
|
}
|
|
152
152
|
function _t(t) {
|
|
153
153
|
var e;
|
|
154
|
-
const s =
|
|
154
|
+
const s = T(t);
|
|
155
155
|
return s ? (e = s.copy) !== null && e !== void 0 ? e : s.original : t;
|
|
156
156
|
}
|
|
157
157
|
function ne(t, e) {
|
|
@@ -160,9 +160,9 @@ function ne(t, e) {
|
|
|
160
160
|
let s;
|
|
161
161
|
return Object.getPrototypeOf(t) === Object.prototype || Array.isArray(t) || t instanceof Map || t instanceof Set || !!(e != null && e.mark) && ((s = e.mark(t, Z)) === Z.immutable || typeof s == "function");
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function qt(t, e = []) {
|
|
164
164
|
if (Object.hasOwnProperty.call(t, "key")) {
|
|
165
|
-
const s = t.parent.copy, n =
|
|
165
|
+
const s = t.parent.copy, n = T(pe(s, t.key));
|
|
166
166
|
if (n !== null && (n == null ? void 0 : n.original) !== t.original)
|
|
167
167
|
return null;
|
|
168
168
|
const i = t.parent.type === 3, o = i ? Array.from(t.parent.setMap.keys()).indexOf(t.key) : t.key;
|
|
@@ -171,7 +171,7 @@ function Xt(t, e = []) {
|
|
|
171
171
|
e.push(o);
|
|
172
172
|
}
|
|
173
173
|
if (t.parent)
|
|
174
|
-
return
|
|
174
|
+
return qt(t.parent, e);
|
|
175
175
|
e.reverse();
|
|
176
176
|
try {
|
|
177
177
|
Ls(t.copy, e);
|
|
@@ -186,11 +186,11 @@ function we(t) {
|
|
|
186
186
|
function pe(t, e) {
|
|
187
187
|
return we(t) === 2 ? t.get(e) : t[e];
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Pe(t, e, s) {
|
|
190
190
|
we(t) === 2 ? t.set(e, s) : t[e] = s;
|
|
191
191
|
}
|
|
192
192
|
function et(t, e) {
|
|
193
|
-
const s =
|
|
193
|
+
const s = T(t);
|
|
194
194
|
return (s ? Y(s) : t)[e];
|
|
195
195
|
}
|
|
196
196
|
function fe(t, e) {
|
|
@@ -215,7 +215,7 @@ function Ls(t, e) {
|
|
|
215
215
|
}
|
|
216
216
|
return t;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Ps(t) {
|
|
219
219
|
const e = Object.create(Object.getPrototypeOf(t));
|
|
220
220
|
return Reflect.ownKeys(t).forEach((s) => {
|
|
221
221
|
let n = Reflect.getOwnPropertyDescriptor(t, s);
|
|
@@ -231,8 +231,8 @@ function Ts(t) {
|
|
|
231
231
|
}), Reflect.defineProperty(e, s, n);
|
|
232
232
|
}), e;
|
|
233
233
|
}
|
|
234
|
-
const
|
|
235
|
-
function
|
|
234
|
+
const Ts = Object.prototype.propertyIsEnumerable;
|
|
235
|
+
function Qt(t, e) {
|
|
236
236
|
let s;
|
|
237
237
|
if (Array.isArray(t))
|
|
238
238
|
return Array.prototype.concat.call(t);
|
|
@@ -242,7 +242,7 @@ function qt(t, e) {
|
|
|
242
242
|
return new Map(t);
|
|
243
243
|
if (e != null && e.mark && (s = e.mark(t, Z), s !== void 0) && s !== Z.mutable) {
|
|
244
244
|
if (s === Z.immutable)
|
|
245
|
-
return
|
|
245
|
+
return Ps(t);
|
|
246
246
|
if (typeof s == "function") {
|
|
247
247
|
if (e.enablePatches || e.enableAutoFreeze)
|
|
248
248
|
throw new Error("You can't use mark and patches or auto freeze together.");
|
|
@@ -254,13 +254,13 @@ function qt(t, e) {
|
|
|
254
254
|
return Object.keys(t).forEach((i) => {
|
|
255
255
|
n[i] = t[i];
|
|
256
256
|
}), Object.getOwnPropertySymbols(t).forEach((i) => {
|
|
257
|
-
|
|
257
|
+
Ts.call(t, i) && (n[i] = t[i]);
|
|
258
258
|
}), n;
|
|
259
259
|
} else
|
|
260
260
|
throw new Error("Please check mark() to ensure that it is a stable marker draftable function.");
|
|
261
261
|
}
|
|
262
262
|
function q(t) {
|
|
263
|
-
t.copy || (t.copy =
|
|
263
|
+
t.copy || (t.copy = Qt(t.original, t.options));
|
|
264
264
|
}
|
|
265
265
|
function Ae(t) {
|
|
266
266
|
if (!ne(t))
|
|
@@ -283,7 +283,7 @@ function ue(t) {
|
|
|
283
283
|
var e;
|
|
284
284
|
t.assignedMap = (e = t.assignedMap) !== null && e !== void 0 ? e : /* @__PURE__ */ new Map(), t.operated || (t.operated = !0, t.parent && ue(t.parent));
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function Nt() {
|
|
287
287
|
throw new Error("Cannot modify frozen object");
|
|
288
288
|
}
|
|
289
289
|
function Oe(t, e, s, n, i) {
|
|
@@ -311,12 +311,12 @@ function Oe(t, e, s, n, i) {
|
|
|
311
311
|
case 2:
|
|
312
312
|
for (const [a, u] of t)
|
|
313
313
|
Oe(a, a, s, n, i), Oe(u, a, s, n, i);
|
|
314
|
-
t.set = t.clear = t.delete =
|
|
314
|
+
t.set = t.clear = t.delete = Nt;
|
|
315
315
|
break;
|
|
316
316
|
case 3:
|
|
317
317
|
for (const a of t)
|
|
318
318
|
Oe(a, a, s, n, i);
|
|
319
|
-
t.add = t.clear = t.delete =
|
|
319
|
+
t.add = t.clear = t.delete = Nt;
|
|
320
320
|
break;
|
|
321
321
|
case 1:
|
|
322
322
|
Object.freeze(t);
|
|
@@ -345,19 +345,19 @@ function bt(t, e) {
|
|
|
345
345
|
} else
|
|
346
346
|
t.forEach((n, i) => e(i, n, t));
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Yt(t, e, s) {
|
|
349
349
|
if (be(t) || !ne(t, s) || e.has(t) || Object.isFrozen(t))
|
|
350
350
|
return;
|
|
351
351
|
const n = t instanceof Set, i = n ? /* @__PURE__ */ new Map() : void 0;
|
|
352
352
|
if (e.add(t), bt(t, (o, r) => {
|
|
353
353
|
var a;
|
|
354
354
|
if (be(r)) {
|
|
355
|
-
const u =
|
|
355
|
+
const u = T(r);
|
|
356
356
|
q(u);
|
|
357
357
|
const l = !((a = u.assignedMap) === null || a === void 0) && a.size || u.operated ? u.copy : u.original;
|
|
358
|
-
|
|
358
|
+
Pe(n ? i : t, o, l);
|
|
359
359
|
} else
|
|
360
|
-
|
|
360
|
+
Yt(r, e, s);
|
|
361
361
|
}), i) {
|
|
362
362
|
const o = t, r = Array.from(o);
|
|
363
363
|
o.clear(), r.forEach((a) => {
|
|
@@ -367,7 +367,7 @@ function Qt(t, e, s) {
|
|
|
367
367
|
}
|
|
368
368
|
function Ds(t, e) {
|
|
369
369
|
const s = t.type === 3 ? t.setMap : t.copy;
|
|
370
|
-
t.finalities.revoke.length > 1 && t.assignedMap.get(e) && s &&
|
|
370
|
+
t.finalities.revoke.length > 1 && t.assignedMap.get(e) && s && Yt(pe(s, e), t.finalities.handledSet, t.options);
|
|
371
371
|
}
|
|
372
372
|
function at(t) {
|
|
373
373
|
t.type === 3 && t.copy && (t.copy.clear(), t.setMap.forEach((e) => {
|
|
@@ -377,27 +377,27 @@ function at(t) {
|
|
|
377
377
|
function ut(t, e, s, n) {
|
|
378
378
|
if (t.operated && t.assignedMap && t.assignedMap.size > 0 && !t.finalized) {
|
|
379
379
|
if (s && n) {
|
|
380
|
-
const o =
|
|
380
|
+
const o = qt(t);
|
|
381
381
|
o && e(t, o, s, n);
|
|
382
382
|
}
|
|
383
383
|
t.finalized = !0;
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
function wt(t, e, s, n) {
|
|
387
|
-
const i =
|
|
387
|
+
const i = T(s);
|
|
388
388
|
i && (i.callbacks || (i.callbacks = []), i.callbacks.push((o, r) => {
|
|
389
389
|
var a;
|
|
390
390
|
const u = t.type === 3 ? t.setMap : t.copy;
|
|
391
391
|
if (fe(pe(u, e), s)) {
|
|
392
392
|
let l = i.original;
|
|
393
|
-
i.copy && (l = i.copy), at(t), ut(t, n, o, r), t.options.enableAutoFreeze && (t.options.updatedValues = (a = t.options.updatedValues) !== null && a !== void 0 ? a : /* @__PURE__ */ new WeakMap(), t.options.updatedValues.set(l, i.original)),
|
|
393
|
+
i.copy && (l = i.copy), at(t), ut(t, n, o, r), t.options.enableAutoFreeze && (t.options.updatedValues = (a = t.options.updatedValues) !== null && a !== void 0 ? a : /* @__PURE__ */ new WeakMap(), t.options.updatedValues.set(l, i.original)), Pe(u, e, l);
|
|
394
394
|
}
|
|
395
395
|
}), t.options.enableAutoFreeze && i.finalities !== t.finalities && (t.options.enableAutoFreeze = !1)), ne(s, t.options) && t.finalities.draft.push(() => {
|
|
396
396
|
const o = t.type === 3 ? t.setMap : t.copy;
|
|
397
397
|
fe(pe(o, e), s) && Ds(t, e);
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Ns(t, e, s, n, i) {
|
|
401
401
|
let { original: o, assignedMap: r, options: a } = t, u = t.copy;
|
|
402
402
|
u.length < o.length && ([o, u] = [u, o], [s, n] = [n, s]);
|
|
403
403
|
for (let l = 0; l < o.length; l += 1)
|
|
@@ -435,24 +435,24 @@ function ks(t, e, s, n, i) {
|
|
|
435
435
|
});
|
|
436
436
|
} else
|
|
437
437
|
for (let c = u.length; o.length < c; c -= 1) {
|
|
438
|
-
const d = e.concat([c - 1]),
|
|
438
|
+
const d = e.concat([c - 1]), g = _e(d, i);
|
|
439
439
|
n.push({
|
|
440
440
|
op: J.Remove,
|
|
441
|
-
path:
|
|
441
|
+
path: g
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function ks({ original: t, copy: e, assignedMap: s }, n, i, o, r) {
|
|
447
447
|
s.forEach((a, u) => {
|
|
448
448
|
const l = pe(t, u), c = Fe(pe(e, u)), d = a ? Ie(t, u) ? J.Replace : J.Add : J.Remove;
|
|
449
449
|
if (fe(l, c) && d === J.Replace)
|
|
450
450
|
return;
|
|
451
|
-
const
|
|
451
|
+
const g = n.concat(u), v = _e(g, r);
|
|
452
452
|
i.push(d === J.Remove ? { op: d, path: v } : { op: d, path: v, value: c }), o.push(d === J.Add ? { op: J.Remove, path: v } : d === J.Remove ? { op: J.Add, path: v, value: l } : { op: J.Replace, path: v, value: l });
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Hs({ original: t, copy: e }, s, n, i, o) {
|
|
456
456
|
let r = 0;
|
|
457
457
|
t.forEach((a) => {
|
|
458
458
|
if (!e.has(a)) {
|
|
@@ -489,11 +489,11 @@ function $e(t, e, s, n) {
|
|
|
489
489
|
switch (t.type) {
|
|
490
490
|
case 0:
|
|
491
491
|
case 2:
|
|
492
|
-
return Hs(t, e, s, n, i);
|
|
493
|
-
case 1:
|
|
494
492
|
return ks(t, e, s, n, i);
|
|
495
|
-
case
|
|
493
|
+
case 1:
|
|
496
494
|
return Ns(t, e, s, n, i);
|
|
495
|
+
case 3:
|
|
496
|
+
return Hs(t, e, s, n, i);
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
let js = !1;
|
|
@@ -502,23 +502,23 @@ const ze = (t, e, s = !1) => {
|
|
|
502
502
|
throw new Error("Strict mode: Mutable data cannot be accessed directly, please use 'unsafe(callback)' wrap.");
|
|
503
503
|
}, ct = {
|
|
504
504
|
get size() {
|
|
505
|
-
return Y(
|
|
505
|
+
return Y(T(this)).size;
|
|
506
506
|
},
|
|
507
507
|
has(t) {
|
|
508
|
-
return Y(
|
|
508
|
+
return Y(T(this)).has(t);
|
|
509
509
|
},
|
|
510
510
|
set(t, e) {
|
|
511
|
-
const s =
|
|
511
|
+
const s = T(this), n = Y(s);
|
|
512
512
|
return (!n.has(t) || !fe(n.get(t), e)) && (q(s), ue(s), s.assignedMap.set(t, !0), s.copy.set(t, e), wt(s, t, e, $e)), this;
|
|
513
513
|
},
|
|
514
514
|
delete(t) {
|
|
515
515
|
if (!this.has(t))
|
|
516
516
|
return !1;
|
|
517
|
-
const e =
|
|
517
|
+
const e = T(this);
|
|
518
518
|
return q(e), ue(e), e.original.has(t) ? e.assignedMap.set(t, !1) : e.assignedMap.delete(t), e.copy.delete(t), !0;
|
|
519
519
|
},
|
|
520
520
|
clear() {
|
|
521
|
-
const t =
|
|
521
|
+
const t = T(this);
|
|
522
522
|
if (this.size) {
|
|
523
523
|
q(t), ue(t), t.assignedMap = /* @__PURE__ */ new Map();
|
|
524
524
|
for (const [e] of t.original)
|
|
@@ -527,14 +527,14 @@ const ze = (t, e, s = !1) => {
|
|
|
527
527
|
}
|
|
528
528
|
},
|
|
529
529
|
forEach(t, e) {
|
|
530
|
-
const s =
|
|
530
|
+
const s = T(this);
|
|
531
531
|
Y(s).forEach((n, i) => {
|
|
532
532
|
t.call(e, this.get(i), i, this);
|
|
533
533
|
});
|
|
534
534
|
},
|
|
535
535
|
get(t) {
|
|
536
536
|
var e, s;
|
|
537
|
-
const n =
|
|
537
|
+
const n = T(this), i = Y(n).get(t), o = ((s = (e = n.options).mark) === null || s === void 0 ? void 0 : s.call(e, i, Z)) === Z.mutable;
|
|
538
538
|
if (n.options.strict && ze(i, n.options, o), o || n.finalized || !ne(i, n.options) || i !== n.original.get(t))
|
|
539
539
|
return i;
|
|
540
540
|
const r = gt.createDraft({
|
|
@@ -547,7 +547,7 @@ const ze = (t, e, s = !1) => {
|
|
|
547
547
|
return q(n), n.copy.set(t, r), r;
|
|
548
548
|
},
|
|
549
549
|
keys() {
|
|
550
|
-
return Y(
|
|
550
|
+
return Y(T(this)).keys();
|
|
551
551
|
},
|
|
552
552
|
values() {
|
|
553
553
|
const t = this.keys();
|
|
@@ -588,7 +588,7 @@ const ze = (t, e, s = !1) => {
|
|
|
588
588
|
return o;
|
|
589
589
|
const r = o.value;
|
|
590
590
|
let a = t.setMap.get(r);
|
|
591
|
-
const u =
|
|
591
|
+
const u = T(a), l = ((i = (n = t.options).mark) === null || i === void 0 ? void 0 : i.call(n, a, Z)) === Z.mutable;
|
|
592
592
|
if (t.options.strict && ze(r, t.options, l), !l && !u && ne(r, t.options) && !t.finalized && t.original.has(r)) {
|
|
593
593
|
const c = gt.createDraft({
|
|
594
594
|
original: r,
|
|
@@ -606,39 +606,39 @@ const ze = (t, e, s = !1) => {
|
|
|
606
606
|
};
|
|
607
607
|
}, lt = {
|
|
608
608
|
get size() {
|
|
609
|
-
return
|
|
609
|
+
return T(this).setMap.size;
|
|
610
610
|
},
|
|
611
611
|
has(t) {
|
|
612
|
-
const e =
|
|
612
|
+
const e = T(this);
|
|
613
613
|
if (e.setMap.has(t))
|
|
614
614
|
return !0;
|
|
615
615
|
q(e);
|
|
616
|
-
const s =
|
|
616
|
+
const s = T(t);
|
|
617
617
|
return !!(s && e.setMap.has(s.original));
|
|
618
618
|
},
|
|
619
619
|
add(t) {
|
|
620
|
-
const e =
|
|
620
|
+
const e = T(this);
|
|
621
621
|
return this.has(t) || (q(e), ue(e), e.assignedMap.set(t, !0), e.setMap.set(t, t), wt(e, t, t, $e)), this;
|
|
622
622
|
},
|
|
623
623
|
delete(t) {
|
|
624
624
|
if (!this.has(t))
|
|
625
625
|
return !1;
|
|
626
|
-
const e =
|
|
626
|
+
const e = T(this);
|
|
627
627
|
q(e), ue(e);
|
|
628
|
-
const s =
|
|
628
|
+
const s = T(t);
|
|
629
629
|
return s && e.setMap.has(s.original) ? (e.assignedMap.set(s.original, !1), e.setMap.delete(s.original)) : (!s && e.setMap.has(t) ? e.assignedMap.set(t, !1) : e.assignedMap.delete(t), e.setMap.delete(t));
|
|
630
630
|
},
|
|
631
631
|
clear() {
|
|
632
632
|
if (!this.size)
|
|
633
633
|
return;
|
|
634
|
-
const t =
|
|
634
|
+
const t = T(this);
|
|
635
635
|
q(t), ue(t);
|
|
636
636
|
for (const e of t.original)
|
|
637
637
|
t.assignedMap.set(e, !1);
|
|
638
638
|
t.setMap.clear();
|
|
639
639
|
},
|
|
640
640
|
values() {
|
|
641
|
-
const t =
|
|
641
|
+
const t = T(this);
|
|
642
642
|
q(t);
|
|
643
643
|
const e = t.setMap.keys();
|
|
644
644
|
return {
|
|
@@ -647,7 +647,7 @@ const ze = (t, e, s = !1) => {
|
|
|
647
647
|
};
|
|
648
648
|
},
|
|
649
649
|
entries() {
|
|
650
|
-
const t =
|
|
650
|
+
const t = T(this);
|
|
651
651
|
q(t);
|
|
652
652
|
const e = t.setMap.keys();
|
|
653
653
|
return {
|
|
@@ -669,13 +669,13 @@ const ze = (t, e, s = !1) => {
|
|
|
669
669
|
for (; !n.done; )
|
|
670
670
|
t.call(e, n.value, n.value, this), n = s.next();
|
|
671
671
|
}
|
|
672
|
-
}, Bs = Reflect.ownKeys(lt),
|
|
672
|
+
}, Bs = Reflect.ownKeys(lt), Zt = /* @__PURE__ */ new WeakSet(), es = {
|
|
673
673
|
get(t, e, s) {
|
|
674
674
|
var n, i;
|
|
675
675
|
const o = (n = t.copy) === null || n === void 0 ? void 0 : n[e];
|
|
676
|
-
if (o &&
|
|
676
|
+
if (o && Zt.has(o))
|
|
677
677
|
return o;
|
|
678
|
-
if (e ===
|
|
678
|
+
if (e === Xt)
|
|
679
679
|
return t;
|
|
680
680
|
let r;
|
|
681
681
|
if (t.options.mark) {
|
|
@@ -699,7 +699,7 @@ const ze = (t, e, s = !1) => {
|
|
|
699
699
|
return l.bind(t.proxy);
|
|
700
700
|
}
|
|
701
701
|
if (!Ie(a, e)) {
|
|
702
|
-
const l =
|
|
702
|
+
const l = Dt(a, e);
|
|
703
703
|
return l ? "value" in l ? l.value : (
|
|
704
704
|
// !case: support for getter
|
|
705
705
|
(i = l.get) === null || i === void 0 ? void 0 : i.call(t.proxy)
|
|
@@ -716,7 +716,7 @@ const ze = (t, e, s = !1) => {
|
|
|
716
716
|
finalities: t.finalities,
|
|
717
717
|
options: t.options
|
|
718
718
|
}), typeof r == "function") {
|
|
719
|
-
const l =
|
|
719
|
+
const l = T(t.copy[e]);
|
|
720
720
|
return q(l), ue(l), l.copy;
|
|
721
721
|
}
|
|
722
722
|
return t.copy[e];
|
|
@@ -730,10 +730,10 @@ const ze = (t, e, s = !1) => {
|
|
|
730
730
|
let i;
|
|
731
731
|
if (t.type === 1 && e !== "length" && !(Number.isInteger(i = Number(e)) && i >= 0 && (e === 0 || i === 0 || String(i) === String(e))))
|
|
732
732
|
throw new Error("Only supports setting array indices and the 'length' property.");
|
|
733
|
-
const o =
|
|
733
|
+
const o = Dt(Y(t), e);
|
|
734
734
|
if (o != null && o.set)
|
|
735
735
|
return o.set.call(t.proxy, s), !0;
|
|
736
|
-
const r = et(Y(t), e), a =
|
|
736
|
+
const r = et(Y(t), e), a = T(r);
|
|
737
737
|
return a && fe(a.original, s) ? (t.copy[e] = s, t.assignedMap = (n = t.assignedMap) !== null && n !== void 0 ? n : /* @__PURE__ */ new Map(), t.assignedMap.set(e, !1), !0) : (fe(s, r) && (s !== void 0 || Ie(t.original, e)) || (q(t), ue(t), Ie(t.original, e) && fe(s, t.original[e]) ? t.assignedMap.delete(e) : t.assignedMap.set(e, !0), t.copy[e] = s, wt(t, e, s, $e)), !0);
|
|
738
738
|
},
|
|
739
739
|
has(t, e) {
|
|
@@ -762,7 +762,7 @@ const ze = (t, e, s = !1) => {
|
|
|
762
762
|
},
|
|
763
763
|
deleteProperty(t, e) {
|
|
764
764
|
var s;
|
|
765
|
-
return t.type === 1 ?
|
|
765
|
+
return t.type === 1 ? es.set.call(this, t, e, void 0, t.proxy) : (et(t.original, e) !== void 0 || e in t.original ? (q(t), ue(t), t.assignedMap.set(e, !1)) : (t.assignedMap = (s = t.assignedMap) !== null && s !== void 0 ? s : /* @__PURE__ */ new Map(), t.assignedMap.delete(e)), t.copy && delete t.copy[e], !0);
|
|
766
766
|
}
|
|
767
767
|
};
|
|
768
768
|
function vt(t) {
|
|
@@ -779,26 +779,26 @@ function vt(t) {
|
|
|
779
779
|
setMap: r === 3 ? new Map(e.entries()) : void 0
|
|
780
780
|
};
|
|
781
781
|
(n || "key" in t) && (a.key = n);
|
|
782
|
-
const { proxy: u, revoke: l } = Proxy.revocable(r === 1 ? Object.assign([], a) : a,
|
|
783
|
-
if (i.revoke.push(l),
|
|
782
|
+
const { proxy: u, revoke: l } = Proxy.revocable(r === 1 ? Object.assign([], a) : a, es);
|
|
783
|
+
if (i.revoke.push(l), Zt.add(u), a.proxy = u, s) {
|
|
784
784
|
const c = s;
|
|
785
|
-
c.finalities.draft.push((d,
|
|
785
|
+
c.finalities.draft.push((d, g) => {
|
|
786
786
|
var v, m;
|
|
787
|
-
const S =
|
|
788
|
-
let
|
|
789
|
-
const x = pe(
|
|
790
|
-
if (
|
|
791
|
-
let A =
|
|
792
|
-
|
|
787
|
+
const S = T(u);
|
|
788
|
+
let b = c.type === 3 ? c.setMap : c.copy;
|
|
789
|
+
const x = pe(b, n), w = T(x);
|
|
790
|
+
if (w) {
|
|
791
|
+
let A = w.original;
|
|
792
|
+
w.operated && (A = _t(x)), at(w), ut(w, $e, d, g), c.options.enableAutoFreeze && (c.options.updatedValues = (v = c.options.updatedValues) !== null && v !== void 0 ? v : /* @__PURE__ */ new WeakMap(), c.options.updatedValues.set(A, w.original)), Pe(b, n, A);
|
|
793
793
|
}
|
|
794
794
|
(m = S.callbacks) === null || m === void 0 || m.forEach((A) => {
|
|
795
|
-
A(d,
|
|
795
|
+
A(d, g);
|
|
796
796
|
});
|
|
797
797
|
});
|
|
798
798
|
} else {
|
|
799
|
-
const c =
|
|
800
|
-
c.finalities.draft.push((d,
|
|
801
|
-
at(c), ut(c, $e, d,
|
|
799
|
+
const c = T(u);
|
|
800
|
+
c.finalities.draft.push((d, g) => {
|
|
801
|
+
at(c), ut(c, $e, d, g);
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
804
|
return u;
|
|
@@ -806,7 +806,7 @@ function vt(t) {
|
|
|
806
806
|
gt.createDraft = vt;
|
|
807
807
|
function Fs(t, e, s, n, i) {
|
|
808
808
|
var o;
|
|
809
|
-
const r =
|
|
809
|
+
const r = T(t), a = (o = r == null ? void 0 : r.original) !== null && o !== void 0 ? o : t, u = !!e.length;
|
|
810
810
|
if (r != null && r.operated)
|
|
811
811
|
for (; r.finalities.draft.length > 0; )
|
|
812
812
|
r.finalities.draft.pop()(s, n);
|
|
@@ -843,7 +843,7 @@ function zs(t, e) {
|
|
|
843
843
|
function ft(t) {
|
|
844
844
|
const { rootDraft: e, value: s, useRawReturn: n = !1, isRoot: i = !0 } = t;
|
|
845
845
|
bt(s, (o, r, a) => {
|
|
846
|
-
const u =
|
|
846
|
+
const u = T(r);
|
|
847
847
|
if (u && e && u.finalities === e.finalities) {
|
|
848
848
|
t.isContainDraft = !0;
|
|
849
849
|
const l = u.original;
|
|
@@ -851,13 +851,13 @@ function ft(t) {
|
|
|
851
851
|
const c = Array.from(a);
|
|
852
852
|
a.clear(), c.forEach((d) => a.add(o === d ? l : d));
|
|
853
853
|
} else
|
|
854
|
-
|
|
854
|
+
Pe(a, o, l);
|
|
855
855
|
} else
|
|
856
856
|
typeof r == "object" && r !== null && (t.value = r, t.isRoot = !1, ft(t));
|
|
857
857
|
}), i && (t.isContainDraft || console.warn("The return value does not contain any draft, please use 'rawReturn()' to wrap the return value to improve performance."), n && console.warn("The return value contains drafts, please don't use 'rawReturn()' to wrap the return value."));
|
|
858
858
|
}
|
|
859
|
-
function
|
|
860
|
-
const e =
|
|
859
|
+
function ts(t) {
|
|
860
|
+
const e = T(t);
|
|
861
861
|
if (!ne(t, e == null ? void 0 : e.options))
|
|
862
862
|
return t;
|
|
863
863
|
const s = we(t);
|
|
@@ -865,7 +865,7 @@ function es(t) {
|
|
|
865
865
|
return e.original;
|
|
866
866
|
let n;
|
|
867
867
|
function i() {
|
|
868
|
-
n = s === 2 ? new Map(t) : s === 3 ? Array.from(e.setMap.values()) :
|
|
868
|
+
n = s === 2 ? new Map(t) : s === 3 ? Array.from(e.setMap.values()) : Qt(t, e == null ? void 0 : e.options);
|
|
869
869
|
}
|
|
870
870
|
if (e) {
|
|
871
871
|
e.finalized = !0;
|
|
@@ -879,14 +879,14 @@ function es(t) {
|
|
|
879
879
|
return bt(n, (o, r) => {
|
|
880
880
|
if (e && fe(pe(e.original, o), r))
|
|
881
881
|
return;
|
|
882
|
-
const a =
|
|
883
|
-
a !== r && (n === t && i(),
|
|
882
|
+
const a = ts(r);
|
|
883
|
+
a !== r && (n === t && i(), Pe(n, o, a));
|
|
884
884
|
}), s === 3 ? new Set(n) : n;
|
|
885
885
|
}
|
|
886
886
|
function Ht(t) {
|
|
887
887
|
if (!be(t))
|
|
888
888
|
throw new Error(`current() is only used for Draft, parameter: ${t}`);
|
|
889
|
-
return
|
|
889
|
+
return ts(t);
|
|
890
890
|
}
|
|
891
891
|
const Js = (t) => {
|
|
892
892
|
if (t !== void 0 && Object.prototype.toString.call(t) !== "[object Object]")
|
|
@@ -894,76 +894,76 @@ const Js = (t) => {
|
|
|
894
894
|
return function e(s, n, i) {
|
|
895
895
|
var o, r, a;
|
|
896
896
|
if (typeof s == "function" && typeof n != "function")
|
|
897
|
-
return function(O, ...
|
|
898
|
-
return e(O, (R) => s.call(this, R, ...
|
|
897
|
+
return function(O, ...k) {
|
|
898
|
+
return e(O, (R) => s.call(this, R, ...k), n);
|
|
899
899
|
};
|
|
900
900
|
const u = s, l = n;
|
|
901
901
|
let c = i;
|
|
902
902
|
if (typeof n != "function" && (c = n), c !== void 0 && Object.prototype.toString.call(c) !== "[object Object]")
|
|
903
903
|
throw new Error(`Invalid options: ${c}, 'options' should be an object.`);
|
|
904
904
|
c = Object.assign(Object.assign({}, t), c);
|
|
905
|
-
const d = be(u) ? Ht(u) : u,
|
|
905
|
+
const d = be(u) ? Ht(u) : u, g = Array.isArray(c.mark) ? (O, k) => {
|
|
906
906
|
for (const R of c.mark) {
|
|
907
907
|
if (typeof R != "function")
|
|
908
908
|
throw new Error(`Invalid mark: ${R}, 'mark' should be a function.`);
|
|
909
|
-
const L = R(O,
|
|
909
|
+
const L = R(O, k);
|
|
910
910
|
if (L)
|
|
911
911
|
return L;
|
|
912
912
|
}
|
|
913
|
-
} : c.mark, v = (o = c.enablePatches) !== null && o !== void 0 ? o : !1, m = (r = c.strict) !== null && r !== void 0 ? r : !1,
|
|
913
|
+
} : c.mark, v = (o = c.enablePatches) !== null && o !== void 0 ? o : !1, m = (r = c.strict) !== null && r !== void 0 ? r : !1, b = {
|
|
914
914
|
enableAutoFreeze: (a = c.enableAutoFreeze) !== null && a !== void 0 ? a : !1,
|
|
915
|
-
mark:
|
|
915
|
+
mark: g,
|
|
916
916
|
strict: m,
|
|
917
917
|
enablePatches: v
|
|
918
918
|
};
|
|
919
|
-
if (!ne(d,
|
|
919
|
+
if (!ne(d, b) && typeof d == "object" && d !== null)
|
|
920
920
|
throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");
|
|
921
|
-
const [x,
|
|
921
|
+
const [x, w] = zs(d, b);
|
|
922
922
|
if (typeof n != "function") {
|
|
923
|
-
if (!ne(d,
|
|
923
|
+
if (!ne(d, b))
|
|
924
924
|
throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");
|
|
925
|
-
return [x,
|
|
925
|
+
return [x, w];
|
|
926
926
|
}
|
|
927
927
|
let A;
|
|
928
928
|
try {
|
|
929
929
|
A = l(x);
|
|
930
930
|
} catch (O) {
|
|
931
|
-
throw ot(
|
|
931
|
+
throw ot(T(x)), O;
|
|
932
932
|
}
|
|
933
933
|
const E = (O) => {
|
|
934
|
-
const
|
|
934
|
+
const k = T(x);
|
|
935
935
|
if (!be(O)) {
|
|
936
|
-
if (O !== void 0 && !fe(O, x) && (
|
|
936
|
+
if (O !== void 0 && !fe(O, x) && (k != null && k.operated))
|
|
937
937
|
throw new Error("Either the value is returned as a new non-draft value, or only the draft is modified without returning any value.");
|
|
938
938
|
const L = O == null ? void 0 : O[xs];
|
|
939
939
|
if (L) {
|
|
940
940
|
const U = L[0];
|
|
941
|
-
return
|
|
942
|
-
rootDraft:
|
|
941
|
+
return b.strict && typeof O == "object" && O !== null && ft({
|
|
942
|
+
rootDraft: k,
|
|
943
943
|
value: O,
|
|
944
944
|
useRawReturn: !0
|
|
945
|
-
}),
|
|
945
|
+
}), w([U]);
|
|
946
946
|
}
|
|
947
947
|
if (O !== void 0)
|
|
948
|
-
return typeof O == "object" && O !== null && ft({ rootDraft:
|
|
948
|
+
return typeof O == "object" && O !== null && ft({ rootDraft: k, value: O }), w([O]);
|
|
949
949
|
}
|
|
950
950
|
if (O === x || O === void 0)
|
|
951
|
-
return
|
|
952
|
-
const R =
|
|
953
|
-
if (
|
|
951
|
+
return w([]);
|
|
952
|
+
const R = T(O);
|
|
953
|
+
if (b === R.options) {
|
|
954
954
|
if (R.operated)
|
|
955
955
|
throw new Error("Cannot return a modified child draft.");
|
|
956
|
-
return
|
|
956
|
+
return w([Ht(O)]);
|
|
957
957
|
}
|
|
958
|
-
return
|
|
958
|
+
return w([O]);
|
|
959
959
|
};
|
|
960
960
|
return A instanceof Promise ? A.then(E, (O) => {
|
|
961
|
-
throw ot(
|
|
961
|
+
throw ot(T(x)), O;
|
|
962
962
|
}) : E(A);
|
|
963
963
|
};
|
|
964
964
|
}, C = Js();
|
|
965
965
|
Object.prototype.constructor.toString();
|
|
966
|
-
const Gs = yt(fetch),
|
|
966
|
+
const Gs = yt(fetch), ss = async (t, e) => {
|
|
967
967
|
if (!t)
|
|
968
968
|
throw "Metapage definition null";
|
|
969
969
|
if (t.version || (t = C(t, (n) => {
|
|
@@ -986,7 +986,7 @@ const Gs = yt(fetch), ts = async (t, e) => {
|
|
|
986
986
|
throw `Error converting metapage definition to version ${e}: ${n}`;
|
|
987
987
|
}
|
|
988
988
|
return Ws(t, e);
|
|
989
|
-
}, Vs = async (t) =>
|
|
989
|
+
}, Vs = async (t) => ss(t, Le), Ws = (t, e) => {
|
|
990
990
|
if (!t)
|
|
991
991
|
throw "Metapage definition null";
|
|
992
992
|
if (!t.version)
|
|
@@ -1049,7 +1049,7 @@ const Gs = yt(fetch), ts = async (t, e) => {
|
|
|
1049
1049
|
if (t === "2")
|
|
1050
1050
|
return "2";
|
|
1051
1051
|
throw `Unknown version: ${t}`;
|
|
1052
|
-
}, en = yt(fetch),
|
|
1052
|
+
}, en = yt(fetch), ns = async (t, e) => {
|
|
1053
1053
|
if (!t)
|
|
1054
1054
|
throw "Metaframe definition null";
|
|
1055
1055
|
if (!t.version)
|
|
@@ -1072,7 +1072,7 @@ const Gs = yt(fetch), ts = async (t, e) => {
|
|
|
1072
1072
|
throw `Error converting metapage definition to version ${e}: ${n}`;
|
|
1073
1073
|
}
|
|
1074
1074
|
return sn(t, e);
|
|
1075
|
-
}, tn = async (t) =>
|
|
1075
|
+
}, tn = async (t) => ns(t, We), sn = (t, e) => {
|
|
1076
1076
|
if (!t)
|
|
1077
1077
|
throw "Metaframe definition null";
|
|
1078
1078
|
t.version || (t = C(t, (i) => {
|
|
@@ -1204,11 +1204,11 @@ const Ke = async (t) => C(t, async (e) => {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
}), Ce = async (t) => C(t, async (e) => {
|
|
1206
1206
|
for (const s of Object.keys(t)) {
|
|
1207
|
-
const n = await
|
|
1207
|
+
const n = await is(t[s]);
|
|
1208
1208
|
return e[s] = n, e;
|
|
1209
1209
|
}
|
|
1210
1210
|
}), $i = async (t, e, s) => {
|
|
1211
|
-
if (t =
|
|
1211
|
+
if (t = is(t), s = s || {}, s.type || (s.type = "application/octet-stream"), t instanceof ArrayBuffer)
|
|
1212
1212
|
return new File([t], e, s);
|
|
1213
1213
|
if (t instanceof File || t instanceof Blob) {
|
|
1214
1214
|
const i = await t.arrayBuffer();
|
|
@@ -1271,7 +1271,7 @@ const Ke = async (t) => C(t, async (e) => {
|
|
|
1271
1271
|
return Promise.resolve(s);
|
|
1272
1272
|
}
|
|
1273
1273
|
return Promise.resolve(t);
|
|
1274
|
-
},
|
|
1274
|
+
}, is = (t) => {
|
|
1275
1275
|
if (!(t && typeof t == "object" && t._s === !0))
|
|
1276
1276
|
return t;
|
|
1277
1277
|
const e = t, s = e._c;
|
|
@@ -1338,8 +1338,8 @@ var me;
|
|
|
1338
1338
|
(function(t) {
|
|
1339
1339
|
t.InputsUpdate = "InputsUpdate", t.MessageAck = "MessageAck", t.SetupIframeServerResponse = "SetupIframeServerResponse";
|
|
1340
1340
|
})(me || (me = {}));
|
|
1341
|
-
const Li = -32700,
|
|
1342
|
-
function
|
|
1341
|
+
const Li = -32700, Pi = -32600, Ti = -32601, Di = -32602, Ni = -32603;
|
|
1342
|
+
function ki(t) {
|
|
1343
1343
|
switch (typeof t) {
|
|
1344
1344
|
case "string":
|
|
1345
1345
|
return !0;
|
|
@@ -1351,7 +1351,7 @@ function Hi(t) {
|
|
|
1351
1351
|
return !1;
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
|
-
var
|
|
1354
|
+
var rs = { exports: {} };
|
|
1355
1355
|
(function(t) {
|
|
1356
1356
|
var e = Object.prototype.hasOwnProperty, s = "~";
|
|
1357
1357
|
function n() {
|
|
@@ -1360,10 +1360,10 @@ var is = { exports: {} };
|
|
|
1360
1360
|
function i(u, l, c) {
|
|
1361
1361
|
this.fn = u, this.context = l, this.once = c || !1;
|
|
1362
1362
|
}
|
|
1363
|
-
function o(u, l, c, d,
|
|
1363
|
+
function o(u, l, c, d, g) {
|
|
1364
1364
|
if (typeof c != "function")
|
|
1365
1365
|
throw new TypeError("The listener must be a function");
|
|
1366
|
-
var v = new i(c, d || u,
|
|
1366
|
+
var v = new i(c, d || u, g), m = s ? s + l : l;
|
|
1367
1367
|
return u._events[m] ? u._events[m].fn ? u._events[m] = [u._events[m], v] : u._events[m].push(v) : (u._events[m] = v, u._eventsCount++), u;
|
|
1368
1368
|
}
|
|
1369
1369
|
function r(u, l) {
|
|
@@ -1385,56 +1385,56 @@ var is = { exports: {} };
|
|
|
1385
1385
|
return [];
|
|
1386
1386
|
if (d.fn)
|
|
1387
1387
|
return [d.fn];
|
|
1388
|
-
for (var
|
|
1389
|
-
m[
|
|
1388
|
+
for (var g = 0, v = d.length, m = new Array(v); g < v; g++)
|
|
1389
|
+
m[g] = d[g].fn;
|
|
1390
1390
|
return m;
|
|
1391
1391
|
}, a.prototype.listenerCount = function(l) {
|
|
1392
1392
|
var c = s ? s + l : l, d = this._events[c];
|
|
1393
1393
|
return d ? d.fn ? 1 : d.length : 0;
|
|
1394
|
-
}, a.prototype.emit = function(l, c, d,
|
|
1394
|
+
}, a.prototype.emit = function(l, c, d, g, v, m) {
|
|
1395
1395
|
var S = s ? s + l : l;
|
|
1396
1396
|
if (!this._events[S])
|
|
1397
1397
|
return !1;
|
|
1398
|
-
var
|
|
1399
|
-
if (
|
|
1400
|
-
switch (
|
|
1398
|
+
var b = this._events[S], x = arguments.length, w, A;
|
|
1399
|
+
if (b.fn) {
|
|
1400
|
+
switch (b.once && this.removeListener(l, b.fn, void 0, !0), x) {
|
|
1401
1401
|
case 1:
|
|
1402
|
-
return
|
|
1402
|
+
return b.fn.call(b.context), !0;
|
|
1403
1403
|
case 2:
|
|
1404
|
-
return
|
|
1404
|
+
return b.fn.call(b.context, c), !0;
|
|
1405
1405
|
case 3:
|
|
1406
|
-
return
|
|
1406
|
+
return b.fn.call(b.context, c, d), !0;
|
|
1407
1407
|
case 4:
|
|
1408
|
-
return
|
|
1408
|
+
return b.fn.call(b.context, c, d, g), !0;
|
|
1409
1409
|
case 5:
|
|
1410
|
-
return
|
|
1410
|
+
return b.fn.call(b.context, c, d, g, v), !0;
|
|
1411
1411
|
case 6:
|
|
1412
|
-
return
|
|
1412
|
+
return b.fn.call(b.context, c, d, g, v, m), !0;
|
|
1413
1413
|
}
|
|
1414
|
-
for (A = 1,
|
|
1415
|
-
|
|
1416
|
-
|
|
1414
|
+
for (A = 1, w = new Array(x - 1); A < x; A++)
|
|
1415
|
+
w[A - 1] = arguments[A];
|
|
1416
|
+
b.fn.apply(b.context, w);
|
|
1417
1417
|
} else {
|
|
1418
|
-
var E =
|
|
1418
|
+
var E = b.length, O;
|
|
1419
1419
|
for (A = 0; A < E; A++)
|
|
1420
|
-
switch (
|
|
1420
|
+
switch (b[A].once && this.removeListener(l, b[A].fn, void 0, !0), x) {
|
|
1421
1421
|
case 1:
|
|
1422
|
-
|
|
1422
|
+
b[A].fn.call(b[A].context);
|
|
1423
1423
|
break;
|
|
1424
1424
|
case 2:
|
|
1425
|
-
|
|
1425
|
+
b[A].fn.call(b[A].context, c);
|
|
1426
1426
|
break;
|
|
1427
1427
|
case 3:
|
|
1428
|
-
|
|
1428
|
+
b[A].fn.call(b[A].context, c, d);
|
|
1429
1429
|
break;
|
|
1430
1430
|
case 4:
|
|
1431
|
-
|
|
1431
|
+
b[A].fn.call(b[A].context, c, d, g);
|
|
1432
1432
|
break;
|
|
1433
1433
|
default:
|
|
1434
|
-
if (!
|
|
1435
|
-
for (O = 1,
|
|
1436
|
-
|
|
1437
|
-
|
|
1434
|
+
if (!w)
|
|
1435
|
+
for (O = 1, w = new Array(x - 1); O < x; O++)
|
|
1436
|
+
w[O - 1] = arguments[O];
|
|
1437
|
+
b[A].fn.apply(b[A].context, w);
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
1440
1440
|
return !0;
|
|
@@ -1442,7 +1442,7 @@ var is = { exports: {} };
|
|
|
1442
1442
|
return o(this, l, c, d, !1);
|
|
1443
1443
|
}, a.prototype.once = function(l, c, d) {
|
|
1444
1444
|
return o(this, l, c, d, !0);
|
|
1445
|
-
}, a.prototype.removeListener = function(l, c, d,
|
|
1445
|
+
}, a.prototype.removeListener = function(l, c, d, g) {
|
|
1446
1446
|
var v = s ? s + l : l;
|
|
1447
1447
|
if (!this._events[v])
|
|
1448
1448
|
return this;
|
|
@@ -1450,19 +1450,19 @@ var is = { exports: {} };
|
|
|
1450
1450
|
return r(this, v), this;
|
|
1451
1451
|
var m = this._events[v];
|
|
1452
1452
|
if (m.fn)
|
|
1453
|
-
m.fn === c && (!
|
|
1453
|
+
m.fn === c && (!g || m.once) && (!d || m.context === d) && r(this, v);
|
|
1454
1454
|
else {
|
|
1455
|
-
for (var S = 0,
|
|
1456
|
-
(m[S].fn !== c ||
|
|
1457
|
-
|
|
1455
|
+
for (var S = 0, b = [], x = m.length; S < x; S++)
|
|
1456
|
+
(m[S].fn !== c || g && !m[S].once || d && m[S].context !== d) && b.push(m[S]);
|
|
1457
|
+
b.length ? this._events[v] = b.length === 1 ? b[0] : b : r(this, v);
|
|
1458
1458
|
}
|
|
1459
1459
|
return this;
|
|
1460
1460
|
}, a.prototype.removeAllListeners = function(l) {
|
|
1461
1461
|
var c;
|
|
1462
1462
|
return l ? (c = s ? s + l : l, this._events[c] && r(this, c)) : (this._events = new n(), this._eventsCount = 0), this;
|
|
1463
1463
|
}, a.prototype.off = a.prototype.removeListener, a.prototype.addListener = a.prototype.on, a.prefixed = s, a.EventEmitter = a, t.exports = a;
|
|
1464
|
-
})(
|
|
1465
|
-
var Ot =
|
|
1464
|
+
})(rs);
|
|
1465
|
+
var Ot = rs.exports;
|
|
1466
1466
|
function mn(t) {
|
|
1467
1467
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1468
1468
|
}
|
|
@@ -1497,30 +1497,30 @@ var yn = function(t, e) {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
var l = i.push(r) - 1, c = Object.keys(r).sort(n && n(r));
|
|
1499
1499
|
for (u = "", a = 0; a < c.length; a++) {
|
|
1500
|
-
var d = c[a],
|
|
1501
|
-
|
|
1500
|
+
var d = c[a], g = o(r[d]);
|
|
1501
|
+
g && (u && (u += ","), u += JSON.stringify(d) + ":" + g);
|
|
1502
1502
|
}
|
|
1503
1503
|
return i.splice(l, 1), "{" + u + "}";
|
|
1504
1504
|
}
|
|
1505
1505
|
}(t);
|
|
1506
1506
|
};
|
|
1507
|
-
const gn = /* @__PURE__ */ mn(yn), _n = (t) =>
|
|
1507
|
+
const gn = /* @__PURE__ */ mn(yn), _n = (t) => os(gn(t)), bn = (t) => {
|
|
1508
1508
|
if (t && t.length > 0)
|
|
1509
1509
|
try {
|
|
1510
|
-
return JSON.parse(
|
|
1510
|
+
return JSON.parse(as(t));
|
|
1511
1511
|
} catch {
|
|
1512
1512
|
return JSON.parse(decodeURIComponent(atob(decodeURIComponent(t))));
|
|
1513
1513
|
}
|
|
1514
|
-
},
|
|
1514
|
+
}, os = (t) => btoa(encodeURIComponent(t)), as = (t) => {
|
|
1515
1515
|
try {
|
|
1516
1516
|
return decodeURIComponent(atob(t));
|
|
1517
1517
|
} catch {
|
|
1518
1518
|
return decodeURIComponent(atob(decodeURIComponent(t)));
|
|
1519
1519
|
}
|
|
1520
|
-
}, as = (t) => {
|
|
1521
|
-
const e = t instanceof URL ? t : new URL(t);
|
|
1522
|
-
return us(e.hash);
|
|
1523
1520
|
}, us = (t) => {
|
|
1521
|
+
const e = t instanceof URL ? t : new URL(t);
|
|
1522
|
+
return cs(e.hash);
|
|
1523
|
+
}, cs = (t) => {
|
|
1524
1524
|
let e = t;
|
|
1525
1525
|
for (; e.startsWith("#"); )
|
|
1526
1526
|
e = e.substring(1);
|
|
@@ -1541,14 +1541,14 @@ const gn = /* @__PURE__ */ mn(yn), _n = (t) => rs(gn(t)), bn = (t) => {
|
|
|
1541
1541
|
}), Object.keys(i).forEach((o) => {
|
|
1542
1542
|
i[o] = i[o];
|
|
1543
1543
|
}), [n, i];
|
|
1544
|
-
},
|
|
1545
|
-
const [s, n] =
|
|
1544
|
+
}, Te = (t, e) => {
|
|
1545
|
+
const [s, n] = us(t);
|
|
1546
1546
|
return n[e];
|
|
1547
|
-
}, wn = (t) => vn()[1][t], vn = () =>
|
|
1547
|
+
}, wn = (t) => vn()[1][t], vn = () => us(window.location.href), Se = (t, e, s) => {
|
|
1548
1548
|
const n = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, i = On(n, t, e);
|
|
1549
1549
|
i !== n && (s != null && s.modifyHistory ? window.location.hash = i : (window.history.replaceState(null, document.title, `${window.location.pathname}${window.location.search}${i.startsWith("#") ? "" : "#"}${i}`), window.dispatchEvent(new HashChangeEvent("hashchange"))));
|
|
1550
1550
|
}, On = (t, e, s) => {
|
|
1551
|
-
const [n, i] =
|
|
1551
|
+
const [n, i] = cs(t);
|
|
1552
1552
|
let o = !1;
|
|
1553
1553
|
if (i.hasOwnProperty(e) && s === null || s === void 0 ? (delete i[e], o = !0) : i[e] !== s && (i[e] = s, o = !0), !o)
|
|
1554
1554
|
return t;
|
|
@@ -1560,32 +1560,32 @@ const gn = /* @__PURE__ */ mn(yn), _n = (t) => rs(gn(t)), bn = (t) => {
|
|
|
1560
1560
|
}).join("&");
|
|
1561
1561
|
return !n && !a ? "" : `${n || ""}${a ? "?" + a : ""}`;
|
|
1562
1562
|
}, Rt = (t, e) => {
|
|
1563
|
-
const s =
|
|
1563
|
+
const s = Te(t, e);
|
|
1564
1564
|
if (s && s !== "")
|
|
1565
1565
|
return bn(s);
|
|
1566
1566
|
}, Rn = (t, e, s) => {
|
|
1567
1567
|
const n = e ? _n(e) : void 0;
|
|
1568
1568
|
Se(t, n, s);
|
|
1569
1569
|
}, Sn = (t) => Rt(window.location.href, t), An = (t, e) => {
|
|
1570
|
-
const s =
|
|
1570
|
+
const s = Te(t, e);
|
|
1571
1571
|
return s ? parseFloat(s) : void 0;
|
|
1572
|
-
},
|
|
1572
|
+
}, ls = (t, e, s) => {
|
|
1573
1573
|
Se(t, e != null ? e.toString() : void 0, s);
|
|
1574
1574
|
}, En = (t) => An(window.location.href, t), Mn = (t, e) => {
|
|
1575
|
-
const s =
|
|
1575
|
+
const s = Te(t, e);
|
|
1576
1576
|
return s ? parseInt(s) : void 0;
|
|
1577
1577
|
}, In = (t, e, s) => {
|
|
1578
|
-
|
|
1579
|
-
}, Cn = (t) => Mn(window.location.href, t), $n = (t, e) =>
|
|
1578
|
+
ls(t, e, s);
|
|
1579
|
+
}, Cn = (t) => Mn(window.location.href, t), $n = (t, e) => Te(t, e) === "true", xn = (t, e, s) => {
|
|
1580
1580
|
Se(t, e ? "true" : void 0, s);
|
|
1581
|
-
}, Ln = (t) => $n(window.location.href, t),
|
|
1582
|
-
const s =
|
|
1583
|
-
return s && s !== "" ?
|
|
1584
|
-
},
|
|
1585
|
-
const n = e == null ? void 0 :
|
|
1581
|
+
}, Ln = (t) => $n(window.location.href, t), Pn = (t, e) => {
|
|
1582
|
+
const s = Te(t, e);
|
|
1583
|
+
return s && s !== "" ? as(s) : void 0;
|
|
1584
|
+
}, Tn = (t, e, s) => {
|
|
1585
|
+
const n = e == null ? void 0 : os(e);
|
|
1586
1586
|
Se(t, n, s);
|
|
1587
|
-
}, Dn = (t) =>
|
|
1588
|
-
var
|
|
1587
|
+
}, Dn = (t) => Pn(window.location.href, t);
|
|
1588
|
+
var Nn = function(t, e) {
|
|
1589
1589
|
e || (e = {}), typeof e == "function" && (e = { cmp: e });
|
|
1590
1590
|
var s = typeof e.cycles == "boolean" ? e.cycles : !1, n = e.cmp && function(o) {
|
|
1591
1591
|
return function(r) {
|
|
@@ -1616,31 +1616,31 @@ var kn = function(t, e) {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
var l = i.push(r) - 1, c = Object.keys(r).sort(n && n(r));
|
|
1618
1618
|
for (u = "", a = 0; a < c.length; a++) {
|
|
1619
|
-
var d = c[a],
|
|
1620
|
-
|
|
1619
|
+
var d = c[a], g = o(r[d]);
|
|
1620
|
+
g && (u && (u += ","), u += JSON.stringify(d) + ":" + g);
|
|
1621
1621
|
}
|
|
1622
1622
|
return i.splice(l, 1), "{" + u + "}";
|
|
1623
1623
|
}
|
|
1624
1624
|
}(t);
|
|
1625
1625
|
};
|
|
1626
|
-
const
|
|
1626
|
+
const fs = /* @__PURE__ */ mt(Nn);
|
|
1627
1627
|
var xe;
|
|
1628
1628
|
(function(t) {
|
|
1629
1629
|
t.mp_debug = "mp_debug";
|
|
1630
1630
|
})(xe || (xe = {}));
|
|
1631
|
-
const
|
|
1631
|
+
const kn = () => {
|
|
1632
1632
|
try {
|
|
1633
1633
|
return window !== window.top;
|
|
1634
1634
|
} catch {
|
|
1635
1635
|
return !1;
|
|
1636
1636
|
}
|
|
1637
|
-
},
|
|
1637
|
+
}, ps = {
|
|
1638
1638
|
version: Le,
|
|
1639
1639
|
metaframes: {}
|
|
1640
1640
|
};
|
|
1641
|
-
class
|
|
1641
|
+
class Hn extends Ot.EventEmitter {
|
|
1642
1642
|
constructor() {
|
|
1643
|
-
super(), this._definition =
|
|
1643
|
+
super(), this._definition = ps, this.getDefinition = this.getDefinition.bind(this);
|
|
1644
1644
|
}
|
|
1645
1645
|
error(e) {
|
|
1646
1646
|
throw "Subclass should implement";
|
|
@@ -1653,12 +1653,12 @@ const Je = (t, e) => e ? C(t, (s) => {
|
|
|
1653
1653
|
Object.keys(e).forEach((n) => {
|
|
1654
1654
|
e[n] === void 0 ? delete s[n] : s[n] = e[n];
|
|
1655
1655
|
});
|
|
1656
|
-
}) : t,
|
|
1656
|
+
}) : t, Hi = (t) => window.location.search ? new URLSearchParams(window.location.search).get(t) : null, ji = () => new URLSearchParams(window.location.search).has(xe.mp_debug), ht = () => {
|
|
1657
1657
|
const t = new URLSearchParams(window.location.search).get(xe.mp_debug);
|
|
1658
1658
|
return t === "true" || t === "1";
|
|
1659
|
-
}, Ui = (t = 8) => St(t), jn = (t = 8) => St(t), Bi = (t = 8) => St(t),
|
|
1660
|
-
for (var e = "", s =
|
|
1661
|
-
e +=
|
|
1659
|
+
}, Ui = (t = 8) => St(t), jn = (t = 8) => St(t), Bi = (t = 8) => St(t), jt = "abcdefghijklmnopqrstuvwxyz0123456789", St = (t = 8) => {
|
|
1660
|
+
for (var e = "", s = jt.length, n = 0; n < t; n++)
|
|
1661
|
+
e += jt.charAt(Math.floor(Math.random() * s));
|
|
1662
1662
|
return e;
|
|
1663
1663
|
}, At = (t, e, s) => {
|
|
1664
1664
|
e = e || "000", e && e.trim() == "" && (e = void 0);
|
|
@@ -1668,7 +1668,7 @@ const Je = (t, e) => e ? C(t, (s) => {
|
|
|
1668
1668
|
s && (i = `${i}; background: #${s}`), n = `%c${n}`, window.console.log(n, i);
|
|
1669
1669
|
} else
|
|
1670
1670
|
window.console.log(n);
|
|
1671
|
-
},
|
|
1671
|
+
}, hs = (t) => Bn(Un(t)), Un = (t) => {
|
|
1672
1672
|
var e = 0;
|
|
1673
1673
|
for (let s = 0; s < t.length; s++)
|
|
1674
1674
|
e = t.charCodeAt(s) + ((e << 5) - e);
|
|
@@ -1688,16 +1688,16 @@ const Je = (t, e) => e ? C(t, (s) => {
|
|
|
1688
1688
|
!e && tt() && (e = !0, t());
|
|
1689
1689
|
}, 200);
|
|
1690
1690
|
}), Fi = async (t) => {
|
|
1691
|
-
const e =
|
|
1692
|
-
return await
|
|
1691
|
+
const e = fs(t);
|
|
1692
|
+
return await ds(e);
|
|
1693
1693
|
}, zi = async (t) => {
|
|
1694
|
-
const e =
|
|
1694
|
+
const e = fs({
|
|
1695
1695
|
version: t.version,
|
|
1696
1696
|
metaframes: t.metaframes
|
|
1697
1697
|
});
|
|
1698
|
-
return await
|
|
1698
|
+
return await ds(e);
|
|
1699
1699
|
};
|
|
1700
|
-
async function
|
|
1700
|
+
async function ds(t) {
|
|
1701
1701
|
const s = new TextEncoder().encode(t), n = await crypto.subtle.digest("SHA-256", s);
|
|
1702
1702
|
return btoa(String.fromCharCode(...new Uint8Array(n)));
|
|
1703
1703
|
}
|
|
@@ -1711,7 +1711,7 @@ var z;
|
|
|
1711
1711
|
})(z || (z = {}));
|
|
1712
1712
|
class ie extends Ot.EventEmitter {
|
|
1713
1713
|
constructor(e) {
|
|
1714
|
-
if (super(), this._inputPipeValues = {}, this._outputPipeValues = {}, this._state = ae.WaitingForPageLoad, this._messageSendCount = 0, this.debug = ht(), this.isInputOutputBlobSerialization = !0, this.id = window.name, this.debug = ht(), this._isIframe =
|
|
1714
|
+
if (super(), this._inputPipeValues = {}, this._outputPipeValues = {}, this._state = ae.WaitingForPageLoad, this._messageSendCount = 0, this.debug = ht(), this.isInputOutputBlobSerialization = !0, this.id = window.name, this.debug = ht(), this._isIframe = kn(), this.addListener = this.addListener.bind(this), this.dispose = this.dispose.bind(this), this.error = this.error.bind(this), this.getInput = this.getInput.bind(this), this.getInputs = this.getInputs.bind(this), this.log = this.log.bind(this), this.logInternal = this.logInternal.bind(this), this.onInput = this.onInput.bind(this), this.onInputs = this.onInputs.bind(this), this.onMessage = this.onMessage.bind(this), this.sendRpc = this.sendRpc.bind(this), this.setInput = this.setInput.bind(this), this.setInputs = this.setInputs.bind(this), this.setInternalInputsAndNotify = this.setInternalInputsAndNotify.bind(this), this.setOutput = this.setOutput.bind(this), this.setOutputs = this.setOutputs.bind(this), this.warn = this.warn.bind(this), this._resolveSetupIframeServerResponse = this._resolveSetupIframeServerResponse.bind(this), this.addListenerReturnDisposer = this.addListenerReturnDisposer.bind(this), this.connected = this.connected.bind(this), this.isConnected = this.isConnected.bind(this), this.disableNotifyOnHashUrlChange = this.disableNotifyOnHashUrlChange.bind(this), this._onHashUrlChange = this._onHashUrlChange.bind(this), this.setParameter = this.setParameter.bind(this), this.setParameterBoolean = this.setParameterBoolean.bind(this), this.setParameterJson = this.setParameterJson.bind(this), this.setParameterBase64 = this.setParameterBase64.bind(this), this.setParameterFloat = this.setParameterFloat.bind(this), this.setParameterInt = this.setParameterInt.bind(this), this.getParameter = this.getParameter.bind(this), this.getParameterBoolean = this.getParameterBoolean.bind(this), this.getParameterJson = this.getParameterJson.bind(this), this.getParameterBase64 = this.getParameterBase64.bind(this), this.getParameterFloat = this.getParameterFloat.bind(this), this.getParameterInt = this.getParameterInt.bind(this), this.deleteParameter = this.deleteParameter.bind(this), !this._isIframe) {
|
|
1715
1715
|
this.log("Not an iframe, metaframe code disabled");
|
|
1716
1716
|
return;
|
|
1717
1717
|
}
|
|
@@ -1725,7 +1725,7 @@ class ie extends Ot.EventEmitter {
|
|
|
1725
1725
|
_resolveSetupIframeServerResponse(e) {
|
|
1726
1726
|
if (this._state === ae.WaitingForPageLoad)
|
|
1727
1727
|
throw "Got message but page has not finished loading, we should never get in this state";
|
|
1728
|
-
(async () => this._parentId ? this.log("Got JsonRpcMethods.SetupIframeServerResponse but already resolved") : (this._parentVersion = e.version, this.color =
|
|
1728
|
+
(async () => this._parentId ? this.log("Got JsonRpcMethods.SetupIframeServerResponse but already resolved") : (this._parentVersion = e.version, this.color = hs(this.id), this._parentId = e.parentId, this.log(`metapage[${this._parentId}](v${this._parentVersion ? this._parentVersion : "unknown"}) registered`), e.state && e.state.inputs && (this.isInputOutputBlobSerialization ? this._inputPipeValues = await Ce(e.state.inputs) : this._inputPipeValues = e.state.inputs), this._state = ae.Ready, this.sendRpc(X.SetupIframeServerResponseAck, {
|
|
1729
1729
|
version: ie.version
|
|
1730
1730
|
}), this._inputPipeValues && Object.keys(this._inputPipeValues).length > 0 && (this.emit(z.Inputs, this._inputPipeValues), this.listenerCount(z.Input) > 0 && Object.keys(this._inputPipeValues).forEach((s) => this.emit(z.Input, s, this._inputPipeValues[s]))), this.emit(z.Connected), this.sendRpc(X.OutputsUpdate, this._outputPipeValues)))();
|
|
1731
1731
|
}
|
|
@@ -1891,13 +1891,13 @@ class ie extends Ot.EventEmitter {
|
|
|
1891
1891
|
return Sn(e);
|
|
1892
1892
|
}
|
|
1893
1893
|
setParameterBase64(e, s) {
|
|
1894
|
-
|
|
1894
|
+
Tn(e, s);
|
|
1895
1895
|
}
|
|
1896
1896
|
getParameterBase64(e) {
|
|
1897
1897
|
return Dn(e);
|
|
1898
1898
|
}
|
|
1899
1899
|
setParameterFloat(e, s) {
|
|
1900
|
-
|
|
1900
|
+
ls(e, s);
|
|
1901
1901
|
}
|
|
1902
1902
|
getParameterFloat(e) {
|
|
1903
1903
|
return En(e);
|
|
@@ -1921,13 +1921,13 @@ ie.MESSAGE = z.Message;
|
|
|
1921
1921
|
ie.deserializeInputs = Ce;
|
|
1922
1922
|
ie.serializeInputs = Ke;
|
|
1923
1923
|
var qe = {};
|
|
1924
|
-
const oe = "\\\\/",
|
|
1924
|
+
const oe = "\\\\/", Ut = `[^${oe}]`, le = "\\.", Fn = "\\+", zn = "\\?", Qe = "\\/", Jn = "(?=.)", ms = "[^/]", Et = `(?:${Qe}|$)`, ys = `(?:^|${Qe})`, Mt = `${le}{1,2}${Et}`, Gn = `(?!${le})`, Vn = `(?!${ys}${Mt})`, Wn = `(?!${le}{0,1}${Et})`, Kn = `(?!${Mt})`, Xn = `[^.${Qe}]`, qn = `${ms}*?`, Qn = "/", gs = {
|
|
1925
1925
|
DOT_LITERAL: le,
|
|
1926
1926
|
PLUS_LITERAL: Fn,
|
|
1927
1927
|
QMARK_LITERAL: zn,
|
|
1928
1928
|
SLASH_LITERAL: Qe,
|
|
1929
1929
|
ONE_CHAR: Jn,
|
|
1930
|
-
QMARK:
|
|
1930
|
+
QMARK: ms,
|
|
1931
1931
|
END_ANCHOR: Et,
|
|
1932
1932
|
DOTS_SLASH: Mt,
|
|
1933
1933
|
NO_DOT: Gn,
|
|
@@ -1936,13 +1936,13 @@ const oe = "\\\\/", jt = `[^${oe}]`, le = "\\.", Fn = "\\+", zn = "\\?", Qe = "\
|
|
|
1936
1936
|
NO_DOTS_SLASH: Kn,
|
|
1937
1937
|
QMARK_NO_DOT: Xn,
|
|
1938
1938
|
STAR: qn,
|
|
1939
|
-
START_ANCHOR:
|
|
1939
|
+
START_ANCHOR: ys,
|
|
1940
1940
|
SEP: Qn
|
|
1941
1941
|
}, Yn = {
|
|
1942
|
-
...
|
|
1942
|
+
...gs,
|
|
1943
1943
|
SLASH_LITERAL: `[${oe}]`,
|
|
1944
|
-
QMARK:
|
|
1945
|
-
STAR: `${
|
|
1944
|
+
QMARK: Ut,
|
|
1945
|
+
STAR: `${Ut}*?`,
|
|
1946
1946
|
DOTS_SLASH: `${le}{1,2}(?:[${oe}]|$)`,
|
|
1947
1947
|
NO_DOT: `(?!${le})`,
|
|
1948
1948
|
NO_DOTS: `(?!(?:^|[${oe}])${le}{1,2}(?:[${oe}]|$))`,
|
|
@@ -2089,7 +2089,7 @@ var Ye = {
|
|
|
2089
2089
|
* Create GLOB_CHARS
|
|
2090
2090
|
*/
|
|
2091
2091
|
globChars(t) {
|
|
2092
|
-
return t === !0 ? Yn :
|
|
2092
|
+
return t === !0 ? Yn : gs;
|
|
2093
2093
|
}
|
|
2094
2094
|
};
|
|
2095
2095
|
(function(t) {
|
|
@@ -2114,7 +2114,7 @@ var Ye = {
|
|
|
2114
2114
|
return r.negated === !0 && (c = `(?:^(?!${c}).*$)`), c;
|
|
2115
2115
|
}, t.basename = (o, { windows: r } = {}) => r ? o.replace(/[\\/]$/, "").replace(/.*[\\/]/, "") : o.replace(/\/$/, "").replace(/.*\//, "");
|
|
2116
2116
|
})(qe);
|
|
2117
|
-
const
|
|
2117
|
+
const Bt = qe, {
|
|
2118
2118
|
CHAR_ASTERISK: st,
|
|
2119
2119
|
/* * */
|
|
2120
2120
|
CHAR_AT: ei,
|
|
@@ -2125,9 +2125,9 @@ const Ut = qe, {
|
|
|
2125
2125
|
/* , */
|
|
2126
2126
|
CHAR_DOT: nt,
|
|
2127
2127
|
/* . */
|
|
2128
|
-
CHAR_EXCLAMATION_MARK:
|
|
2128
|
+
CHAR_EXCLAMATION_MARK: Ft,
|
|
2129
2129
|
/* ! */
|
|
2130
|
-
CHAR_FORWARD_SLASH:
|
|
2130
|
+
CHAR_FORWARD_SLASH: _s,
|
|
2131
2131
|
/* / */
|
|
2132
2132
|
CHAR_LEFT_CURLY_BRACE: it,
|
|
2133
2133
|
/* { */
|
|
@@ -2137,31 +2137,31 @@ const Ut = qe, {
|
|
|
2137
2137
|
/* [ */
|
|
2138
2138
|
CHAR_PLUS: ni,
|
|
2139
2139
|
/* + */
|
|
2140
|
-
CHAR_QUESTION_MARK:
|
|
2140
|
+
CHAR_QUESTION_MARK: zt,
|
|
2141
2141
|
/* ? */
|
|
2142
2142
|
CHAR_RIGHT_CURLY_BRACE: ii,
|
|
2143
2143
|
/* } */
|
|
2144
|
-
CHAR_RIGHT_PARENTHESES:
|
|
2144
|
+
CHAR_RIGHT_PARENTHESES: Jt,
|
|
2145
2145
|
/* ) */
|
|
2146
2146
|
CHAR_RIGHT_SQUARE_BRACKET: ri
|
|
2147
2147
|
/* ] */
|
|
2148
|
-
} = Ye,
|
|
2148
|
+
} = Ye, Gt = (t) => t === _s || t === Me, Vt = (t) => {
|
|
2149
2149
|
t.isPrefix !== !0 && (t.depth = t.isGlobstar ? 1 / 0 : 1);
|
|
2150
2150
|
}, oi = (t, e) => {
|
|
2151
2151
|
const s = e || {}, n = t.length - 1, i = s.parts === !0 || s.scanToEnd === !0, o = [], r = [], a = [];
|
|
2152
|
-
let u = t, l = -1, c = 0, d = 0,
|
|
2153
|
-
const U = () => l >= n, f = () => u.charCodeAt(l + 1), M = () => (
|
|
2152
|
+
let u = t, l = -1, c = 0, d = 0, g = !1, v = !1, m = !1, S = !1, b = !1, x = !1, w = !1, A = !1, E = !1, O = 0, k, R, L = { value: "", depth: 0, isGlob: !1 };
|
|
2153
|
+
const U = () => l >= n, f = () => u.charCodeAt(l + 1), M = () => (k = R, u.charCodeAt(++l));
|
|
2154
2154
|
for (; l < n; ) {
|
|
2155
2155
|
R = M();
|
|
2156
2156
|
let W;
|
|
2157
2157
|
if (R === Me) {
|
|
2158
|
-
|
|
2158
|
+
w = L.backslashes = !0, R = M(), R === it && (x = !0);
|
|
2159
2159
|
continue;
|
|
2160
2160
|
}
|
|
2161
2161
|
if (x === !0 || R === it) {
|
|
2162
2162
|
for (O++; U() !== !0 && (R = M()); ) {
|
|
2163
2163
|
if (R === Me) {
|
|
2164
|
-
|
|
2164
|
+
w = L.backslashes = !0, M();
|
|
2165
2165
|
continue;
|
|
2166
2166
|
}
|
|
2167
2167
|
if (R === it) {
|
|
@@ -2169,17 +2169,17 @@ const Ut = qe, {
|
|
|
2169
2169
|
continue;
|
|
2170
2170
|
}
|
|
2171
2171
|
if (x !== !0 && R === nt && (R = M()) === nt) {
|
|
2172
|
-
if (
|
|
2172
|
+
if (g = L.isBrace = !0, m = L.isGlob = !0, E = !0, i === !0)
|
|
2173
2173
|
continue;
|
|
2174
2174
|
break;
|
|
2175
2175
|
}
|
|
2176
2176
|
if (x !== !0 && R === ti) {
|
|
2177
|
-
if (
|
|
2177
|
+
if (g = L.isBrace = !0, m = L.isGlob = !0, E = !0, i === !0)
|
|
2178
2178
|
continue;
|
|
2179
2179
|
break;
|
|
2180
2180
|
}
|
|
2181
2181
|
if (R === ii && (O--, O === 0)) {
|
|
2182
|
-
x = !1,
|
|
2182
|
+
x = !1, g = L.isBrace = !0, E = !0;
|
|
2183
2183
|
break;
|
|
2184
2184
|
}
|
|
2185
2185
|
}
|
|
@@ -2187,24 +2187,24 @@ const Ut = qe, {
|
|
|
2187
2187
|
continue;
|
|
2188
2188
|
break;
|
|
2189
2189
|
}
|
|
2190
|
-
if (R ===
|
|
2190
|
+
if (R === _s) {
|
|
2191
2191
|
if (o.push(l), r.push(L), L = { value: "", depth: 0, isGlob: !1 }, E === !0)
|
|
2192
2192
|
continue;
|
|
2193
|
-
if (
|
|
2193
|
+
if (k === nt && l === c + 1) {
|
|
2194
2194
|
c += 2;
|
|
2195
2195
|
continue;
|
|
2196
2196
|
}
|
|
2197
2197
|
d = l + 1;
|
|
2198
2198
|
continue;
|
|
2199
2199
|
}
|
|
2200
|
-
if (s.noext !== !0 && (R === ni || R === ei || R === st || R ===
|
|
2200
|
+
if (s.noext !== !0 && (R === ni || R === ei || R === st || R === zt || R === Ft) === !0 && f() === rt) {
|
|
2201
2201
|
if (m = L.isGlob = !0, S = L.isExtglob = !0, E = !0, i === !0) {
|
|
2202
2202
|
for (; U() !== !0 && (R = M()); ) {
|
|
2203
2203
|
if (R === Me) {
|
|
2204
|
-
|
|
2204
|
+
w = L.backslashes = !0, R = M();
|
|
2205
2205
|
continue;
|
|
2206
2206
|
}
|
|
2207
|
-
if (R ===
|
|
2207
|
+
if (R === Jt) {
|
|
2208
2208
|
m = L.isGlob = !0, E = !0;
|
|
2209
2209
|
break;
|
|
2210
2210
|
}
|
|
@@ -2214,11 +2214,11 @@ const Ut = qe, {
|
|
|
2214
2214
|
break;
|
|
2215
2215
|
}
|
|
2216
2216
|
if (R === st) {
|
|
2217
|
-
if (
|
|
2217
|
+
if (k === st && (b = L.isGlobstar = !0), m = L.isGlob = !0, E = !0, i === !0)
|
|
2218
2218
|
continue;
|
|
2219
2219
|
break;
|
|
2220
2220
|
}
|
|
2221
|
-
if (R ===
|
|
2221
|
+
if (R === zt) {
|
|
2222
2222
|
if (m = L.isGlob = !0, E = !0, i === !0)
|
|
2223
2223
|
continue;
|
|
2224
2224
|
break;
|
|
@@ -2226,7 +2226,7 @@ const Ut = qe, {
|
|
|
2226
2226
|
if (R === si)
|
|
2227
2227
|
for (; U() !== !0 && (W = M()); ) {
|
|
2228
2228
|
if (W === Me) {
|
|
2229
|
-
|
|
2229
|
+
w = L.backslashes = !0, M();
|
|
2230
2230
|
continue;
|
|
2231
2231
|
}
|
|
2232
2232
|
if (W === ri) {
|
|
@@ -2235,7 +2235,7 @@ const Ut = qe, {
|
|
|
2235
2235
|
break;
|
|
2236
2236
|
}
|
|
2237
2237
|
}
|
|
2238
|
-
if (s.nonegate !== !0 && R ===
|
|
2238
|
+
if (s.nonegate !== !0 && R === Ft && l === c) {
|
|
2239
2239
|
A = L.negated = !0, c++;
|
|
2240
2240
|
continue;
|
|
2241
2241
|
}
|
|
@@ -2243,10 +2243,10 @@ const Ut = qe, {
|
|
|
2243
2243
|
if (m = L.isGlob = !0, i === !0) {
|
|
2244
2244
|
for (; U() !== !0 && (R = M()); ) {
|
|
2245
2245
|
if (R === rt) {
|
|
2246
|
-
|
|
2246
|
+
w = L.backslashes = !0, R = M();
|
|
2247
2247
|
continue;
|
|
2248
2248
|
}
|
|
2249
|
-
if (R ===
|
|
2249
|
+
if (R === Jt) {
|
|
2250
2250
|
E = !0;
|
|
2251
2251
|
break;
|
|
2252
2252
|
}
|
|
@@ -2263,29 +2263,29 @@ const Ut = qe, {
|
|
|
2263
2263
|
}
|
|
2264
2264
|
s.noext === !0 && (S = !1, m = !1);
|
|
2265
2265
|
let I = u, B = "", h = "";
|
|
2266
|
-
c > 0 && (B = u.slice(0, c), u = u.slice(c), d -= c), I && m === !0 && d > 0 ? (I = u.slice(0, d), h = u.slice(d)) : m === !0 ? (I = "", h = u) : I = u, I && I !== "" && I !== "/" && I !== u &&
|
|
2266
|
+
c > 0 && (B = u.slice(0, c), u = u.slice(c), d -= c), I && m === !0 && d > 0 ? (I = u.slice(0, d), h = u.slice(d)) : m === !0 ? (I = "", h = u) : I = u, I && I !== "" && I !== "/" && I !== u && Gt(I.charCodeAt(I.length - 1)) && (I = I.slice(0, -1)), s.unescape === !0 && (h && (h = Bt.removeBackslashes(h)), I && w === !0 && (I = Bt.removeBackslashes(I)));
|
|
2267
2267
|
const p = {
|
|
2268
2268
|
prefix: B,
|
|
2269
2269
|
input: t,
|
|
2270
2270
|
start: c,
|
|
2271
2271
|
base: I,
|
|
2272
2272
|
glob: h,
|
|
2273
|
-
isBrace:
|
|
2273
|
+
isBrace: g,
|
|
2274
2274
|
isBracket: v,
|
|
2275
2275
|
isGlob: m,
|
|
2276
2276
|
isExtglob: S,
|
|
2277
|
-
isGlobstar:
|
|
2277
|
+
isGlobstar: b,
|
|
2278
2278
|
negated: A
|
|
2279
2279
|
};
|
|
2280
|
-
if (s.tokens === !0 && (p.maxDepth = 0,
|
|
2280
|
+
if (s.tokens === !0 && (p.maxDepth = 0, Gt(R) || r.push(L), p.tokens = r), s.parts === !0 || s.tokens === !0) {
|
|
2281
2281
|
let W;
|
|
2282
|
-
for (let
|
|
2283
|
-
const re = W ? W + 1 : c, ce = o[
|
|
2284
|
-
s.tokens && (
|
|
2282
|
+
for (let N = 0; N < o.length; N++) {
|
|
2283
|
+
const re = W ? W + 1 : c, ce = o[N], Q = t.slice(re, ce);
|
|
2284
|
+
s.tokens && (N === 0 && c !== 0 ? (r[N].isPrefix = !0, r[N].value = B) : r[N].value = Q, Vt(r[N]), p.maxDepth += r[N].depth), (N !== 0 || Q !== "") && a.push(Q), W = ce;
|
|
2285
2285
|
}
|
|
2286
2286
|
if (W && W + 1 < t.length) {
|
|
2287
|
-
const
|
|
2288
|
-
a.push(
|
|
2287
|
+
const N = t.slice(W + 1);
|
|
2288
|
+
a.push(N), s.tokens && (r[r.length - 1].value = N, Vt(r[r.length - 1]), p.maxDepth += r[r.length - 1].depth);
|
|
2289
2289
|
}
|
|
2290
2290
|
p.slashes = o, p.parts = a;
|
|
2291
2291
|
}
|
|
@@ -2297,7 +2297,7 @@ const Ge = Ye, se = qe, {
|
|
|
2297
2297
|
POSIX_REGEX_SOURCE: ui,
|
|
2298
2298
|
REGEX_NON_SPECIAL_CHARS: ci,
|
|
2299
2299
|
REGEX_SPECIAL_CHARS_BACKREF: li,
|
|
2300
|
-
REPLACEMENTS:
|
|
2300
|
+
REPLACEMENTS: bs
|
|
2301
2301
|
} = Ge, fi = (t, e) => {
|
|
2302
2302
|
if (typeof e.expandRange == "function")
|
|
2303
2303
|
return e.expandRange(...t, e);
|
|
@@ -2309,10 +2309,10 @@ const Ge = Ye, se = qe, {
|
|
|
2309
2309
|
return t.map((i) => se.escapeRegex(i)).join("..");
|
|
2310
2310
|
}
|
|
2311
2311
|
return s;
|
|
2312
|
-
}, ve = (t, e) => `Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,
|
|
2312
|
+
}, ve = (t, e) => `Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`, ws = (t, e) => {
|
|
2313
2313
|
if (typeof t != "string")
|
|
2314
2314
|
throw new TypeError("Expected a string");
|
|
2315
|
-
t =
|
|
2315
|
+
t = bs[t] || t;
|
|
2316
2316
|
const s = { ...e }, n = typeof s.maxLength == "number" ? Math.min(Ve, s.maxLength) : Ve;
|
|
2317
2317
|
let i = t.length;
|
|
2318
2318
|
if (i > n)
|
|
@@ -2320,18 +2320,18 @@ const Ge = Ye, se = qe, {
|
|
|
2320
2320
|
const o = { type: "bos", value: "", output: s.prepend || "" }, r = [o], a = s.capture ? "" : "?:", u = Ge.globChars(s.windows), l = Ge.extglobChars(u), {
|
|
2321
2321
|
DOT_LITERAL: c,
|
|
2322
2322
|
PLUS_LITERAL: d,
|
|
2323
|
-
SLASH_LITERAL:
|
|
2323
|
+
SLASH_LITERAL: g,
|
|
2324
2324
|
ONE_CHAR: v,
|
|
2325
2325
|
DOTS_SLASH: m,
|
|
2326
2326
|
NO_DOT: S,
|
|
2327
|
-
NO_DOT_SLASH:
|
|
2327
|
+
NO_DOT_SLASH: b,
|
|
2328
2328
|
NO_DOTS_SLASH: x,
|
|
2329
|
-
QMARK:
|
|
2329
|
+
QMARK: w,
|
|
2330
2330
|
QMARK_NO_DOT: A,
|
|
2331
2331
|
STAR: E,
|
|
2332
2332
|
START_ANCHOR: O
|
|
2333
|
-
} = u,
|
|
2334
|
-
let U = s.bash === !0 ?
|
|
2333
|
+
} = u, k = (_) => `(${a}(?:(?!${O}${_.dot ? m : c}).)*?)`, R = s.dot ? "" : S, L = s.dot ? w : A;
|
|
2334
|
+
let U = s.bash === !0 ? k(s) : E;
|
|
2335
2335
|
s.capture && (U = `(${U})`), typeof s.noext == "boolean" && (s.noextglob = s.noext);
|
|
2336
2336
|
const f = {
|
|
2337
2337
|
input: t,
|
|
@@ -2353,61 +2353,61 @@ const Ge = Ye, se = qe, {
|
|
|
2353
2353
|
t = se.removePrefix(t, f), i = t.length;
|
|
2354
2354
|
const M = [], I = [], B = [];
|
|
2355
2355
|
let h = o, p;
|
|
2356
|
-
const W = () => f.index === i - 1,
|
|
2357
|
-
f.consumed +=
|
|
2358
|
-
}, De = (
|
|
2359
|
-
f.output +=
|
|
2356
|
+
const W = () => f.index === i - 1, N = f.peek = (_ = 1) => t[f.index + _], re = f.advance = () => t[++f.index], ce = () => t.slice(f.index + 1), Q = (_ = "", H = 0) => {
|
|
2357
|
+
f.consumed += _, f.index += H;
|
|
2358
|
+
}, De = (_) => {
|
|
2359
|
+
f.output += _.output != null ? _.output : _.value, Q(_.value);
|
|
2360
2360
|
}, Rs = () => {
|
|
2361
|
-
let
|
|
2362
|
-
for (;
|
|
2363
|
-
re(), f.start++,
|
|
2364
|
-
return
|
|
2365
|
-
},
|
|
2366
|
-
f[
|
|
2367
|
-
}, ye = (
|
|
2368
|
-
f[
|
|
2369
|
-
},
|
|
2361
|
+
let _ = 1;
|
|
2362
|
+
for (; N() === "!" && (N(2) !== "(" || N(3) === "?"); )
|
|
2363
|
+
re(), f.start++, _++;
|
|
2364
|
+
return _ % 2 === 0 ? !1 : (f.negated = !0, f.start++, !0);
|
|
2365
|
+
}, Ne = (_) => {
|
|
2366
|
+
f[_]++, B.push(_);
|
|
2367
|
+
}, ye = (_) => {
|
|
2368
|
+
f[_]--, B.pop();
|
|
2369
|
+
}, P = (_) => {
|
|
2370
2370
|
if (h.type === "globstar") {
|
|
2371
|
-
const
|
|
2372
|
-
|
|
2371
|
+
const H = f.braces > 0 && (_.type === "comma" || _.type === "brace"), y = _.extglob === !0 || M.length && (_.type === "pipe" || _.type === "paren");
|
|
2372
|
+
_.type !== "slash" && _.type !== "paren" && !H && !y && (f.output = f.output.slice(0, -h.output.length), h.type = "star", h.value = "*", h.output = U, f.output += h.output);
|
|
2373
2373
|
}
|
|
2374
|
-
if (M.length &&
|
|
2375
|
-
h.value +=
|
|
2374
|
+
if (M.length && _.type !== "paren" && !l[_.value] && (M[M.length - 1].inner += _.value), (_.value || _.output) && De(_), h && h.type === "text" && _.type === "text") {
|
|
2375
|
+
h.value += _.value, h.output = (h.output || "") + _.value;
|
|
2376
2376
|
return;
|
|
2377
2377
|
}
|
|
2378
|
-
|
|
2379
|
-
},
|
|
2380
|
-
const y = { ...l[
|
|
2378
|
+
_.prev = h, r.push(_), h = _;
|
|
2379
|
+
}, ke = (_, H) => {
|
|
2380
|
+
const y = { ...l[H], conditions: 1, inner: "" };
|
|
2381
2381
|
y.prev = h, y.parens = f.parens, y.output = f.output;
|
|
2382
2382
|
const D = (s.capture ? "(" : "") + y.open;
|
|
2383
|
-
|
|
2384
|
-
}, Ss = (
|
|
2385
|
-
let
|
|
2386
|
-
if (
|
|
2383
|
+
Ne("parens"), P({ type: _, value: H, output: f.output ? "" : v }), P({ type: "paren", extglob: !0, value: re(), output: D }), M.push(y);
|
|
2384
|
+
}, Ss = (_) => {
|
|
2385
|
+
let H = _.close + (s.capture ? ")" : "");
|
|
2386
|
+
if (_.type === "negate") {
|
|
2387
2387
|
let y = U;
|
|
2388
|
-
|
|
2388
|
+
_.inner && _.inner.length > 1 && _.inner.includes("/") && (y = k(s)), (y !== U || W() || /^\)+$/.test(ce())) && (H = _.close = `)$))${y}`), _.prev.type === "bos" && W() && (f.negatedExtglob = !0);
|
|
2389
2389
|
}
|
|
2390
|
-
|
|
2390
|
+
P({ type: "paren", extglob: !0, value: p, output: H }), ye("parens");
|
|
2391
2391
|
};
|
|
2392
2392
|
if (s.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(t)) {
|
|
2393
|
-
let
|
|
2394
|
-
return
|
|
2393
|
+
let _ = !1, H = t.replace(li, (y, D, F, K, V, Ze) => K === "\\" ? (_ = !0, y) : K === "?" ? D ? D + K + (V ? w.repeat(V.length) : "") : Ze === 0 ? L + (V ? w.repeat(V.length) : "") : w.repeat(F.length) : K === "." ? c.repeat(F.length) : K === "*" ? D ? D + K + (V ? U : "") : U : D ? y : `\\${y}`);
|
|
2394
|
+
return _ === !0 && (s.unescape === !0 ? H = H.replace(/\\/g, "") : H = H.replace(/\\+/g, (y) => y.length % 2 === 0 ? "\\\\" : y ? "\\" : "")), H === t && s.contains === !0 ? (f.output = t, f) : (f.output = se.wrapOutput(H, f, e), f);
|
|
2395
2395
|
}
|
|
2396
2396
|
for (; !W(); ) {
|
|
2397
2397
|
if (p = re(), p === "\0")
|
|
2398
2398
|
continue;
|
|
2399
2399
|
if (p === "\\") {
|
|
2400
|
-
const y =
|
|
2400
|
+
const y = N();
|
|
2401
2401
|
if (y === "/" && s.bash !== !0 || y === "." || y === ";")
|
|
2402
2402
|
continue;
|
|
2403
2403
|
if (!y) {
|
|
2404
|
-
p += "\\",
|
|
2404
|
+
p += "\\", P({ type: "text", value: p });
|
|
2405
2405
|
continue;
|
|
2406
2406
|
}
|
|
2407
2407
|
const D = /^\\+/.exec(ce());
|
|
2408
2408
|
let F = 0;
|
|
2409
2409
|
if (D && D[0].length > 2 && (F = D[0].length, f.index += F, F % 2 !== 0 && (p += "\\")), s.unescape === !0 ? p = re() || "" : p += re() || "", f.brackets === 0) {
|
|
2410
|
-
|
|
2410
|
+
P({ type: "text", value: p });
|
|
2411
2411
|
continue;
|
|
2412
2412
|
}
|
|
2413
2413
|
}
|
|
@@ -2422,7 +2422,7 @@ const Ge = Ye, se = qe, {
|
|
|
2422
2422
|
}
|
|
2423
2423
|
}
|
|
2424
2424
|
}
|
|
2425
|
-
(p === "[" &&
|
|
2425
|
+
(p === "[" && N() !== ":" || p === "-" && N() === "]") && (p = `\\${p}`), p === "]" && (h.value === "[" || h.value === "[^") && (p = `\\${p}`), s.posix === !0 && p === "!" && h.value === "[" && (p = "^"), h.value += p, De({ value: p });
|
|
2426
2426
|
continue;
|
|
2427
2427
|
}
|
|
2428
2428
|
if (f.quotes === 1 && p !== '"') {
|
|
@@ -2430,11 +2430,11 @@ const Ge = Ye, se = qe, {
|
|
|
2430
2430
|
continue;
|
|
2431
2431
|
}
|
|
2432
2432
|
if (p === '"') {
|
|
2433
|
-
f.quotes = f.quotes === 1 ? 0 : 1, s.keepQuotes === !0 &&
|
|
2433
|
+
f.quotes = f.quotes === 1 ? 0 : 1, s.keepQuotes === !0 && P({ type: "text", value: p });
|
|
2434
2434
|
continue;
|
|
2435
2435
|
}
|
|
2436
2436
|
if (p === "(") {
|
|
2437
|
-
|
|
2437
|
+
Ne("parens"), P({ type: "paren", value: p });
|
|
2438
2438
|
continue;
|
|
2439
2439
|
}
|
|
2440
2440
|
if (p === ")") {
|
|
@@ -2445,7 +2445,7 @@ const Ge = Ye, se = qe, {
|
|
|
2445
2445
|
Ss(M.pop());
|
|
2446
2446
|
continue;
|
|
2447
2447
|
}
|
|
2448
|
-
|
|
2448
|
+
P({ type: "paren", value: p, output: f.parens ? ")" : "\\)" }), ye("parens");
|
|
2449
2449
|
continue;
|
|
2450
2450
|
}
|
|
2451
2451
|
if (p === "[") {
|
|
@@ -2454,19 +2454,19 @@ const Ge = Ye, se = qe, {
|
|
|
2454
2454
|
throw new SyntaxError(ve("closing", "]"));
|
|
2455
2455
|
p = `\\${p}`;
|
|
2456
2456
|
} else
|
|
2457
|
-
|
|
2458
|
-
|
|
2457
|
+
Ne("brackets");
|
|
2458
|
+
P({ type: "bracket", value: p });
|
|
2459
2459
|
continue;
|
|
2460
2460
|
}
|
|
2461
2461
|
if (p === "]") {
|
|
2462
2462
|
if (s.nobracket === !0 || h && h.type === "bracket" && h.value.length === 1) {
|
|
2463
|
-
|
|
2463
|
+
P({ type: "text", value: p, output: `\\${p}` });
|
|
2464
2464
|
continue;
|
|
2465
2465
|
}
|
|
2466
2466
|
if (f.brackets === 0) {
|
|
2467
2467
|
if (s.strictBrackets === !0)
|
|
2468
2468
|
throw new SyntaxError(ve("opening", "["));
|
|
2469
|
-
|
|
2469
|
+
P({ type: "text", value: p, output: `\\${p}` });
|
|
2470
2470
|
continue;
|
|
2471
2471
|
}
|
|
2472
2472
|
ye("brackets");
|
|
@@ -2482,7 +2482,7 @@ const Ge = Ye, se = qe, {
|
|
|
2482
2482
|
continue;
|
|
2483
2483
|
}
|
|
2484
2484
|
if (p === "{" && s.nobrace !== !0) {
|
|
2485
|
-
|
|
2485
|
+
Ne("braces");
|
|
2486
2486
|
const y = {
|
|
2487
2487
|
type: "brace",
|
|
2488
2488
|
value: p,
|
|
@@ -2490,13 +2490,13 @@ const Ge = Ye, se = qe, {
|
|
|
2490
2490
|
outputIndex: f.output.length,
|
|
2491
2491
|
tokensIndex: f.tokens.length
|
|
2492
2492
|
};
|
|
2493
|
-
I.push(y),
|
|
2493
|
+
I.push(y), P(y);
|
|
2494
2494
|
continue;
|
|
2495
2495
|
}
|
|
2496
2496
|
if (p === "}") {
|
|
2497
2497
|
const y = I[I.length - 1];
|
|
2498
2498
|
if (s.nobrace === !0 || !y) {
|
|
2499
|
-
|
|
2499
|
+
P({ type: "text", value: p, output: p });
|
|
2500
2500
|
continue;
|
|
2501
2501
|
}
|
|
2502
2502
|
let D = ")";
|
|
@@ -2512,17 +2512,17 @@ const Ge = Ye, se = qe, {
|
|
|
2512
2512
|
for (const V of K)
|
|
2513
2513
|
f.output += V.output || V.value;
|
|
2514
2514
|
}
|
|
2515
|
-
|
|
2515
|
+
P({ type: "brace", value: p, output: D }), ye("braces"), I.pop();
|
|
2516
2516
|
continue;
|
|
2517
2517
|
}
|
|
2518
2518
|
if (p === "|") {
|
|
2519
|
-
M.length > 0 && M[M.length - 1].conditions++,
|
|
2519
|
+
M.length > 0 && M[M.length - 1].conditions++, P({ type: "text", value: p });
|
|
2520
2520
|
continue;
|
|
2521
2521
|
}
|
|
2522
2522
|
if (p === ",") {
|
|
2523
2523
|
let y = p;
|
|
2524
2524
|
const D = I[I.length - 1];
|
|
2525
|
-
D && B[B.length - 1] === "braces" && (D.comma = !0, y = "|"),
|
|
2525
|
+
D && B[B.length - 1] === "braces" && (D.comma = !0, y = "|"), P({ type: "comma", value: p, output: y });
|
|
2526
2526
|
continue;
|
|
2527
2527
|
}
|
|
2528
2528
|
if (p === "/") {
|
|
@@ -2530,7 +2530,7 @@ const Ge = Ye, se = qe, {
|
|
|
2530
2530
|
f.start = f.index + 1, f.consumed = "", f.output = "", r.pop(), h = o;
|
|
2531
2531
|
continue;
|
|
2532
2532
|
}
|
|
2533
|
-
|
|
2533
|
+
P({ type: "slash", value: p, output: g });
|
|
2534
2534
|
continue;
|
|
2535
2535
|
}
|
|
2536
2536
|
if (p === ".") {
|
|
@@ -2541,35 +2541,35 @@ const Ge = Ye, se = qe, {
|
|
|
2541
2541
|
continue;
|
|
2542
2542
|
}
|
|
2543
2543
|
if (f.braces + f.parens === 0 && h.type !== "bos" && h.type !== "slash") {
|
|
2544
|
-
|
|
2544
|
+
P({ type: "text", value: p, output: c });
|
|
2545
2545
|
continue;
|
|
2546
2546
|
}
|
|
2547
|
-
|
|
2547
|
+
P({ type: "dot", value: p, output: c });
|
|
2548
2548
|
continue;
|
|
2549
2549
|
}
|
|
2550
2550
|
if (p === "?") {
|
|
2551
|
-
if (!(h && h.value === "(") && s.noextglob !== !0 &&
|
|
2552
|
-
|
|
2551
|
+
if (!(h && h.value === "(") && s.noextglob !== !0 && N() === "(" && N(2) !== "?") {
|
|
2552
|
+
ke("qmark", p);
|
|
2553
2553
|
continue;
|
|
2554
2554
|
}
|
|
2555
2555
|
if (h && h.type === "paren") {
|
|
2556
|
-
const D =
|
|
2556
|
+
const D = N();
|
|
2557
2557
|
let F = p;
|
|
2558
2558
|
if (D === "<" && !se.supportsLookbehinds())
|
|
2559
2559
|
throw new Error("Node.js v10 or higher is required for regex lookbehinds");
|
|
2560
|
-
(h.value === "(" && !/[!=<:]/.test(D) || D === "<" && !/<([!=]|\w+>)/.test(ce())) && (F = `\\${p}`),
|
|
2560
|
+
(h.value === "(" && !/[!=<:]/.test(D) || D === "<" && !/<([!=]|\w+>)/.test(ce())) && (F = `\\${p}`), P({ type: "text", value: p, output: F });
|
|
2561
2561
|
continue;
|
|
2562
2562
|
}
|
|
2563
2563
|
if (s.dot !== !0 && (h.type === "slash" || h.type === "bos")) {
|
|
2564
|
-
|
|
2564
|
+
P({ type: "qmark", value: p, output: A });
|
|
2565
2565
|
continue;
|
|
2566
2566
|
}
|
|
2567
|
-
|
|
2567
|
+
P({ type: "qmark", value: p, output: w });
|
|
2568
2568
|
continue;
|
|
2569
2569
|
}
|
|
2570
2570
|
if (p === "!") {
|
|
2571
|
-
if (s.noextglob !== !0 &&
|
|
2572
|
-
|
|
2571
|
+
if (s.noextglob !== !0 && N() === "(" && (N(2) !== "?" || !/[!=<:]/.test(N(3)))) {
|
|
2572
|
+
ke("negate", p);
|
|
2573
2573
|
continue;
|
|
2574
2574
|
}
|
|
2575
2575
|
if (s.nonegate !== !0 && f.index === 0) {
|
|
@@ -2578,42 +2578,42 @@ const Ge = Ye, se = qe, {
|
|
|
2578
2578
|
}
|
|
2579
2579
|
}
|
|
2580
2580
|
if (p === "+") {
|
|
2581
|
-
if (s.noextglob !== !0 &&
|
|
2582
|
-
|
|
2581
|
+
if (s.noextglob !== !0 && N() === "(" && N(2) !== "?") {
|
|
2582
|
+
ke("plus", p);
|
|
2583
2583
|
continue;
|
|
2584
2584
|
}
|
|
2585
2585
|
if (h && h.value === "(" || s.regex === !1) {
|
|
2586
|
-
|
|
2586
|
+
P({ type: "plus", value: p, output: d });
|
|
2587
2587
|
continue;
|
|
2588
2588
|
}
|
|
2589
2589
|
if (h && (h.type === "bracket" || h.type === "paren" || h.type === "brace") || f.parens > 0) {
|
|
2590
|
-
|
|
2590
|
+
P({ type: "plus", value: p });
|
|
2591
2591
|
continue;
|
|
2592
2592
|
}
|
|
2593
|
-
|
|
2593
|
+
P({ type: "plus", value: d });
|
|
2594
2594
|
continue;
|
|
2595
2595
|
}
|
|
2596
2596
|
if (p === "@") {
|
|
2597
|
-
if (s.noextglob !== !0 &&
|
|
2598
|
-
|
|
2597
|
+
if (s.noextglob !== !0 && N() === "(" && N(2) !== "?") {
|
|
2598
|
+
P({ type: "at", extglob: !0, value: p, output: "" });
|
|
2599
2599
|
continue;
|
|
2600
2600
|
}
|
|
2601
|
-
|
|
2601
|
+
P({ type: "text", value: p });
|
|
2602
2602
|
continue;
|
|
2603
2603
|
}
|
|
2604
2604
|
if (p !== "*") {
|
|
2605
2605
|
(p === "$" || p === "^") && (p = `\\${p}`);
|
|
2606
2606
|
const y = ci.exec(ce());
|
|
2607
|
-
y && (p += y[0], f.index += y[0].length),
|
|
2607
|
+
y && (p += y[0], f.index += y[0].length), P({ type: "text", value: p });
|
|
2608
2608
|
continue;
|
|
2609
2609
|
}
|
|
2610
2610
|
if (h && (h.type === "globstar" || h.star === !0)) {
|
|
2611
2611
|
h.type = "star", h.star = !0, h.value += p, h.output = U, f.backtrack = !0, f.globstar = !0, Q(p);
|
|
2612
2612
|
continue;
|
|
2613
2613
|
}
|
|
2614
|
-
let
|
|
2615
|
-
if (s.noextglob !== !0 && /^\([^?]/.test(
|
|
2616
|
-
|
|
2614
|
+
let _ = ce();
|
|
2615
|
+
if (s.noextglob !== !0 && /^\([^?]/.test(_)) {
|
|
2616
|
+
ke("star", p);
|
|
2617
2617
|
continue;
|
|
2618
2618
|
}
|
|
2619
2619
|
if (h.type === "star") {
|
|
@@ -2622,51 +2622,51 @@ const Ge = Ye, se = qe, {
|
|
|
2622
2622
|
continue;
|
|
2623
2623
|
}
|
|
2624
2624
|
const y = h.prev, D = y.prev, F = y.type === "slash" || y.type === "bos", K = D && (D.type === "star" || D.type === "globstar");
|
|
2625
|
-
if (s.bash === !0 && (!F ||
|
|
2626
|
-
|
|
2625
|
+
if (s.bash === !0 && (!F || _[0] && _[0] !== "/")) {
|
|
2626
|
+
P({ type: "star", value: p, output: "" });
|
|
2627
2627
|
continue;
|
|
2628
2628
|
}
|
|
2629
2629
|
const V = f.braces > 0 && (y.type === "comma" || y.type === "brace"), Ze = M.length && (y.type === "pipe" || y.type === "paren");
|
|
2630
2630
|
if (!F && y.type !== "paren" && !V && !Ze) {
|
|
2631
|
-
|
|
2631
|
+
P({ type: "star", value: p, output: "" });
|
|
2632
2632
|
continue;
|
|
2633
2633
|
}
|
|
2634
|
-
for (;
|
|
2635
|
-
const
|
|
2636
|
-
if (
|
|
2634
|
+
for (; _.slice(0, 3) === "/**"; ) {
|
|
2635
|
+
const He = t[f.index + 4];
|
|
2636
|
+
if (He && He !== "/")
|
|
2637
2637
|
break;
|
|
2638
|
-
|
|
2638
|
+
_ = _.slice(3), Q("/**", 3);
|
|
2639
2639
|
}
|
|
2640
2640
|
if (y.type === "bos" && W()) {
|
|
2641
|
-
h.type = "globstar", h.value += p, h.output =
|
|
2641
|
+
h.type = "globstar", h.value += p, h.output = k(s), f.output = h.output, f.globstar = !0, Q(p);
|
|
2642
2642
|
continue;
|
|
2643
2643
|
}
|
|
2644
2644
|
if (y.type === "slash" && y.prev.type !== "bos" && !K && W()) {
|
|
2645
|
-
f.output = f.output.slice(0, -(y.output + h.output).length), y.output = `(?:${y.output}`, h.type = "globstar", h.output =
|
|
2645
|
+
f.output = f.output.slice(0, -(y.output + h.output).length), y.output = `(?:${y.output}`, h.type = "globstar", h.output = k(s) + (s.strictSlashes ? ")" : "|$)"), h.value += p, f.globstar = !0, f.output += y.output + h.output, Q(p);
|
|
2646
2646
|
continue;
|
|
2647
2647
|
}
|
|
2648
|
-
if (y.type === "slash" && y.prev.type !== "bos" &&
|
|
2649
|
-
const
|
|
2650
|
-
f.output = f.output.slice(0, -(y.output + h.output).length), y.output = `(?:${y.output}`, h.type = "globstar", h.output = `${
|
|
2648
|
+
if (y.type === "slash" && y.prev.type !== "bos" && _[0] === "/") {
|
|
2649
|
+
const He = _[1] !== void 0 ? "|$" : "";
|
|
2650
|
+
f.output = f.output.slice(0, -(y.output + h.output).length), y.output = `(?:${y.output}`, h.type = "globstar", h.output = `${k(s)}${g}|${g}${He})`, h.value += p, f.output += y.output + h.output, f.globstar = !0, Q(p + re()), P({ type: "slash", value: "/", output: "" });
|
|
2651
2651
|
continue;
|
|
2652
2652
|
}
|
|
2653
|
-
if (y.type === "bos" &&
|
|
2654
|
-
h.type = "globstar", h.value += p, h.output = `(?:^|${
|
|
2653
|
+
if (y.type === "bos" && _[0] === "/") {
|
|
2654
|
+
h.type = "globstar", h.value += p, h.output = `(?:^|${g}|${k(s)}${g})`, f.output = h.output, f.globstar = !0, Q(p + re()), P({ type: "slash", value: "/", output: "" });
|
|
2655
2655
|
continue;
|
|
2656
2656
|
}
|
|
2657
|
-
f.output = f.output.slice(0, -h.output.length), h.type = "globstar", h.output =
|
|
2657
|
+
f.output = f.output.slice(0, -h.output.length), h.type = "globstar", h.output = k(s), h.value += p, f.output += h.output, f.globstar = !0, Q(p);
|
|
2658
2658
|
continue;
|
|
2659
2659
|
}
|
|
2660
|
-
const
|
|
2660
|
+
const H = { type: "star", value: p, output: U };
|
|
2661
2661
|
if (s.bash === !0) {
|
|
2662
|
-
|
|
2662
|
+
H.output = ".*?", (h.type === "bos" || h.type === "slash") && (H.output = R + H.output), P(H);
|
|
2663
2663
|
continue;
|
|
2664
2664
|
}
|
|
2665
2665
|
if (h && (h.type === "bracket" || h.type === "paren") && s.regex === !0) {
|
|
2666
|
-
|
|
2666
|
+
H.output = p, P(H);
|
|
2667
2667
|
continue;
|
|
2668
2668
|
}
|
|
2669
|
-
(f.index === f.start || h.type === "slash" || h.type === "dot") && (h.type === "dot" ? (f.output +=
|
|
2669
|
+
(f.index === f.start || h.type === "slash" || h.type === "dot") && (h.type === "dot" ? (f.output += b, h.output += b) : s.dot === !0 ? (f.output += x, h.output += x) : (f.output += R, h.output += R), N() !== "*" && (f.output += v, h.output += v)), P(H);
|
|
2670
2670
|
}
|
|
2671
2671
|
for (; f.brackets > 0; ) {
|
|
2672
2672
|
if (s.strictBrackets === !0)
|
|
@@ -2683,18 +2683,18 @@ const Ge = Ye, se = qe, {
|
|
|
2683
2683
|
throw new SyntaxError(ve("closing", "}"));
|
|
2684
2684
|
f.output = se.escapeLast(f.output, "{"), ye("braces");
|
|
2685
2685
|
}
|
|
2686
|
-
if (s.strictSlashes !== !0 && (h.type === "star" || h.type === "bracket") &&
|
|
2686
|
+
if (s.strictSlashes !== !0 && (h.type === "star" || h.type === "bracket") && P({ type: "maybe_slash", value: "", output: `${g}?` }), f.backtrack === !0) {
|
|
2687
2687
|
f.output = "";
|
|
2688
|
-
for (const
|
|
2689
|
-
f.output +=
|
|
2688
|
+
for (const _ of f.tokens)
|
|
2689
|
+
f.output += _.output != null ? _.output : _.value, _.suffix && (f.output += _.suffix);
|
|
2690
2690
|
}
|
|
2691
2691
|
return f;
|
|
2692
2692
|
};
|
|
2693
|
-
|
|
2693
|
+
ws.fastpaths = (t, e) => {
|
|
2694
2694
|
const s = { ...e }, n = typeof s.maxLength == "number" ? Math.min(Ve, s.maxLength) : Ve, i = t.length;
|
|
2695
2695
|
if (i > n)
|
|
2696
2696
|
throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);
|
|
2697
|
-
t =
|
|
2697
|
+
t = bs[t] || t;
|
|
2698
2698
|
const {
|
|
2699
2699
|
DOT_LITERAL: o,
|
|
2700
2700
|
SLASH_LITERAL: r,
|
|
@@ -2703,29 +2703,29 @@ bs.fastpaths = (t, e) => {
|
|
|
2703
2703
|
NO_DOT: l,
|
|
2704
2704
|
NO_DOTS: c,
|
|
2705
2705
|
NO_DOTS_SLASH: d,
|
|
2706
|
-
STAR:
|
|
2706
|
+
STAR: g,
|
|
2707
2707
|
START_ANCHOR: v
|
|
2708
|
-
} = Ge.globChars(s.windows), m = s.dot ? c : l, S = s.dot ? d : l,
|
|
2709
|
-
let
|
|
2710
|
-
s.capture && (
|
|
2711
|
-
const A = (R) => R.noglobstar === !0 ?
|
|
2708
|
+
} = Ge.globChars(s.windows), m = s.dot ? c : l, S = s.dot ? d : l, b = s.capture ? "" : "?:", x = { negated: !1, prefix: "" };
|
|
2709
|
+
let w = s.bash === !0 ? ".*?" : g;
|
|
2710
|
+
s.capture && (w = `(${w})`);
|
|
2711
|
+
const A = (R) => R.noglobstar === !0 ? w : `(${b}(?:(?!${v}${R.dot ? u : o}).)*?)`, E = (R) => {
|
|
2712
2712
|
switch (R) {
|
|
2713
2713
|
case "*":
|
|
2714
|
-
return `${m}${a}${
|
|
2714
|
+
return `${m}${a}${w}`;
|
|
2715
2715
|
case ".*":
|
|
2716
|
-
return `${o}${a}${
|
|
2716
|
+
return `${o}${a}${w}`;
|
|
2717
2717
|
case "*.*":
|
|
2718
|
-
return `${m}${
|
|
2718
|
+
return `${m}${w}${o}${a}${w}`;
|
|
2719
2719
|
case "*/*":
|
|
2720
|
-
return `${m}${
|
|
2720
|
+
return `${m}${w}${r}${a}${S}${w}`;
|
|
2721
2721
|
case "**":
|
|
2722
2722
|
return m + A(s);
|
|
2723
2723
|
case "**/*":
|
|
2724
|
-
return `(?:${m}${A(s)}${r})?${S}${a}${
|
|
2724
|
+
return `(?:${m}${A(s)}${r})?${S}${a}${w}`;
|
|
2725
2725
|
case "**/*.*":
|
|
2726
|
-
return `(?:${m}${A(s)}${r})?${S}${
|
|
2726
|
+
return `(?:${m}${A(s)}${r})?${S}${w}${o}${a}${w}`;
|
|
2727
2727
|
case "**/.*":
|
|
2728
|
-
return `(?:${m}${A(s)}${r})?${o}${a}${
|
|
2728
|
+
return `(?:${m}${A(s)}${r})?${o}${a}${w}`;
|
|
2729
2729
|
default: {
|
|
2730
2730
|
const L = /^(.*?)\.(\w+)$/.exec(R);
|
|
2731
2731
|
if (!L)
|
|
@@ -2735,16 +2735,16 @@ bs.fastpaths = (t, e) => {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
}
|
|
2737
2737
|
}, O = se.removePrefix(t, x);
|
|
2738
|
-
let
|
|
2739
|
-
return
|
|
2738
|
+
let k = E(O);
|
|
2739
|
+
return k && s.strictSlashes !== !0 && (k += `${r}?`), k;
|
|
2740
2740
|
};
|
|
2741
|
-
var pi =
|
|
2742
|
-
const hi = ai, dt = pi,
|
|
2741
|
+
var pi = ws;
|
|
2742
|
+
const hi = ai, dt = pi, vs = qe, di = Ye, mi = (t) => t && typeof t == "object" && !Array.isArray(t), G = (t, e, s = !1) => {
|
|
2743
2743
|
if (Array.isArray(t)) {
|
|
2744
|
-
const c = t.map((
|
|
2745
|
-
return (
|
|
2744
|
+
const c = t.map((g) => G(g, e, s));
|
|
2745
|
+
return (g) => {
|
|
2746
2746
|
for (const v of c) {
|
|
2747
|
-
const m = v(
|
|
2747
|
+
const m = v(g);
|
|
2748
2748
|
if (m)
|
|
2749
2749
|
return m;
|
|
2750
2750
|
}
|
|
@@ -2762,8 +2762,8 @@ const hi = ai, dt = pi, ws = qe, di = Ye, mi = (t) => t && typeof t == "object"
|
|
|
2762
2762
|
u = G(i.ignore, c, s);
|
|
2763
2763
|
}
|
|
2764
2764
|
const l = (c, d = !1) => {
|
|
2765
|
-
const { isMatch:
|
|
2766
|
-
return typeof i.onResult == "function" && i.onResult(S),
|
|
2765
|
+
const { isMatch: g, match: v, output: m } = G.test(c, r, e, { glob: t, posix: o }), S = { glob: t, state: a, regex: r, posix: o, input: c, output: m, match: v, isMatch: g };
|
|
2766
|
+
return typeof i.onResult == "function" && i.onResult(S), g === !1 ? (S.isMatch = !1, d ? S : !1) : u(c) ? (typeof i.onIgnore == "function" && i.onIgnore(S), S.isMatch = !1, d ? S : !1) : (typeof i.onMatch == "function" && i.onMatch(S), d ? S : !0);
|
|
2767
2767
|
};
|
|
2768
2768
|
return s && (l.state = a), l;
|
|
2769
2769
|
};
|
|
@@ -2772,11 +2772,11 @@ G.test = (t, e, s, { glob: n, posix: i } = {}) => {
|
|
|
2772
2772
|
throw new TypeError("Expected input to be a string");
|
|
2773
2773
|
if (t === "")
|
|
2774
2774
|
return { isMatch: !1, output: "" };
|
|
2775
|
-
const o = s || {}, r = o.format || (i ?
|
|
2775
|
+
const o = s || {}, r = o.format || (i ? vs.toPosixSlashes : null);
|
|
2776
2776
|
let a = t === n, u = a && r ? r(t) : t;
|
|
2777
2777
|
return a === !1 && (u = r ? r(t) : t, a = u === n), (a === !1 || o.capture === !0) && (o.matchBase === !0 || o.basename === !0 ? a = G.matchBase(t, e, s, i) : a = e.exec(u)), { isMatch: !!a, match: a, output: u };
|
|
2778
2778
|
};
|
|
2779
|
-
G.matchBase = (t, e, s) => (e instanceof RegExp ? e : G.makeRe(e, s)).test(
|
|
2779
|
+
G.matchBase = (t, e, s) => (e instanceof RegExp ? e : G.makeRe(e, s)).test(vs.basename(t));
|
|
2780
2780
|
G.isMatch = (t, e, s) => G(e, s)(t);
|
|
2781
2781
|
G.parse = (t, e) => Array.isArray(t) ? t.map((s) => G.parse(s, e)) : dt(t, { ...e, fastpaths: !1 });
|
|
2782
2782
|
G.scan = (t, e) => hi(t, e);
|
|
@@ -2808,15 +2808,15 @@ G.toRegex = (t, e) => {
|
|
|
2808
2808
|
};
|
|
2809
2809
|
G.constants = di;
|
|
2810
2810
|
var yi = G, gi = yi;
|
|
2811
|
-
const _i = /* @__PURE__ */ mt(gi),
|
|
2811
|
+
const _i = /* @__PURE__ */ mt(gi), Os = yt(fetch), bi = async (t, e) => {
|
|
2812
2812
|
const s = new URL(t);
|
|
2813
2813
|
s.pathname = s.pathname + (s.pathname.endsWith("/") ? "metapage.json" : "/metapage.json");
|
|
2814
|
-
const i = await (await
|
|
2814
|
+
const i = await (await Os(s.href, {
|
|
2815
2815
|
redirect: "follow",
|
|
2816
2816
|
retries: 3,
|
|
2817
2817
|
retryDelay: 1e3
|
|
2818
2818
|
})).json();
|
|
2819
|
-
return await
|
|
2819
|
+
return await ss(i, e || Le);
|
|
2820
2820
|
}, wi = async (t, e) => {
|
|
2821
2821
|
if (t.startsWith("data:") || t.startsWith("https://docs.google.com"))
|
|
2822
2822
|
return;
|
|
@@ -2828,7 +2828,7 @@ const _i = /* @__PURE__ */ mt(gi), vs = yt(fetch), bi = async (t, e) => {
|
|
|
2828
2828
|
return pt(n);
|
|
2829
2829
|
s.pathname.endsWith("metaframe.json") || (s.pathname = s.pathname + (s.pathname.endsWith("/") ? "metaframe.json" : "/metaframe.json"));
|
|
2830
2830
|
try {
|
|
2831
|
-
const i = await
|
|
2831
|
+
const i = await Os(s.href, {
|
|
2832
2832
|
redirect: "follow",
|
|
2833
2833
|
retries: 3,
|
|
2834
2834
|
retryDelay: 1e3
|
|
@@ -2836,7 +2836,7 @@ const _i = /* @__PURE__ */ mt(gi), vs = yt(fetch), bi = async (t, e) => {
|
|
|
2836
2836
|
if (i.status !== 200)
|
|
2837
2837
|
return;
|
|
2838
2838
|
const o = await i.json();
|
|
2839
|
-
return await
|
|
2839
|
+
return await ns(o, e || We);
|
|
2840
2840
|
} catch (i) {
|
|
2841
2841
|
console.error(`Error fetching metaframe definition from ${s.href}: ${i}`);
|
|
2842
2842
|
return;
|
|
@@ -2859,13 +2859,13 @@ class vi extends Ot.EventEmitter {
|
|
|
2859
2859
|
var a = new URL(this.url);
|
|
2860
2860
|
a.searchParams.set(xe.mp_debug, "true"), this.url = a.href;
|
|
2861
2861
|
}
|
|
2862
|
-
this.id = n, this._parentId = i, this._color =
|
|
2862
|
+
this.id = n, this._parentId = i, this._color = hs(this.id), this._consoleBackgroundColor = o, this._iframe = document.createElement("iframe"), this._iframe.name = this.id;
|
|
2863
2863
|
const u = this;
|
|
2864
2864
|
this.iframe = new Promise((l) => {
|
|
2865
2865
|
Xe().then(async () => {
|
|
2866
|
-
var c, d,
|
|
2866
|
+
var c, d, g, v;
|
|
2867
2867
|
if (u._iframe) {
|
|
2868
|
-
if ((v = (
|
|
2868
|
+
if ((v = (g = (d = (c = this._metapage) == null ? void 0 : c._definition) == null ? void 0 : d.metaframes) == null ? void 0 : g[this.id]) != null && v.allow)
|
|
2869
2869
|
u._iframe.allow = this._metapage._definition.metaframes[this.id].allow, this._debug && this.log(`mf allow=${u._iframe.allow} from this._metapage?._definition`);
|
|
2870
2870
|
else {
|
|
2871
2871
|
let m = Rt(this.url, "definition");
|
|
@@ -2975,7 +2975,7 @@ Error: ${s != null && s.message ? s == null ? void 0 : s.message : s == null ? v
|
|
|
2975
2975
|
state: {
|
|
2976
2976
|
inputs: this.inputs
|
|
2977
2977
|
},
|
|
2978
|
-
version:
|
|
2978
|
+
version: Wt
|
|
2979
2979
|
};
|
|
2980
2980
|
this.sendRpcInternal(me.SetupIframeServerResponse, e);
|
|
2981
2981
|
}
|
|
@@ -3053,7 +3053,7 @@ const ge = C({
|
|
|
3053
3053
|
outputs: {}
|
|
3054
3054
|
}
|
|
3055
3055
|
}, (t) => t), Gi = (t) => he(t), Oi = (t, e) => !!(!e || e === "**" || t === e || _i.isMatch(t, e)), Ri = "bcbcbc";
|
|
3056
|
-
class ee extends
|
|
3056
|
+
class ee extends Hn {
|
|
3057
3057
|
static async from(e, s) {
|
|
3058
3058
|
if (e == null)
|
|
3059
3059
|
throw "Metapage definition cannot be null";
|
|
@@ -3097,7 +3097,8 @@ class ee extends Nn {
|
|
|
3097
3097
|
}
|
|
3098
3098
|
setState(e) {
|
|
3099
3099
|
this._state = C(e, (s) => s), this.getMetaframeIds().forEach((s) => {
|
|
3100
|
-
|
|
3100
|
+
var n, i;
|
|
3101
|
+
(n = this.getMetaframe(s)) == null || n.setInputs(this._state.metaframes.inputs[s]), (i = this.getMetaframe(s)) == null || i.setOutputs(this._state.metaframes.outputs[s]);
|
|
3101
3102
|
}), this.listenerCount($.State) > 0 && ge !== this._state && this.emit($.State, this._state);
|
|
3102
3103
|
}
|
|
3103
3104
|
getStateMetaframes() {
|
|
@@ -3127,7 +3128,7 @@ class ee extends Nn {
|
|
|
3127
3128
|
const r = n.metaframes[o];
|
|
3128
3129
|
this.addMetaframe(o, r);
|
|
3129
3130
|
}
|
|
3130
|
-
}), i !==
|
|
3131
|
+
}), i !== ps && window.setTimeout(() => {
|
|
3131
3132
|
!this.isDisposed() && n === this._definition && (this._emitDefinitionEvent(), s && this.listenerCount($.State) > 0 && ge !== this._state && this.emit($.State, this._state));
|
|
3132
3133
|
}, 0), this;
|
|
3133
3134
|
}
|
|
@@ -3180,7 +3181,8 @@ class ee extends Nn {
|
|
|
3180
3181
|
return this._metaframes;
|
|
3181
3182
|
}
|
|
3182
3183
|
getMetaframe(e) {
|
|
3183
|
-
|
|
3184
|
+
var s;
|
|
3185
|
+
return (s = this == null ? void 0 : this._metaframes) == null ? void 0 : s[e];
|
|
3184
3186
|
}
|
|
3185
3187
|
addMetaframe(e, s) {
|
|
3186
3188
|
if (!e)
|
|
@@ -3333,8 +3335,9 @@ class ee extends Nn {
|
|
|
3333
3335
|
});
|
|
3334
3336
|
}
|
|
3335
3337
|
setOutputs(e) {
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
+
if (this._metaframes)
|
|
3339
|
+
for (const s in e)
|
|
3340
|
+
this.setMetaframeOutputs(s, e[s]);
|
|
3338
3341
|
}
|
|
3339
3342
|
onMessage(e) {
|
|
3340
3343
|
if (typeof e.data == "object") {
|
|
@@ -3370,7 +3373,7 @@ class ee extends Nn {
|
|
|
3370
3373
|
this.setOutputStateOnlyMetaframeInputMap(n, u), o.setOutputs(u);
|
|
3371
3374
|
var r = !1;
|
|
3372
3375
|
const l = Object.keys(u), c = {};
|
|
3373
|
-
l.forEach((d,
|
|
3376
|
+
l.forEach((d, g) => {
|
|
3374
3377
|
const v = this.getInputsFromOutput(n, d);
|
|
3375
3378
|
v.length > 0 && v.forEach((m) => {
|
|
3376
3379
|
c[m.metaframe] || (c[m.metaframe] = {}), c[m.metaframe][m.pipe] = u[d], r = !0;
|
|
@@ -3408,7 +3411,7 @@ class ee extends Nn {
|
|
|
3408
3411
|
typeof e == "string" ? i = e : typeof e == "number" ? i = e + "" : i = JSON.stringify(e), i = this._id ? `Metapage[${this._id}] ${i}` : i, At(i, s, n);
|
|
3409
3412
|
}
|
|
3410
3413
|
}
|
|
3411
|
-
ee.version =
|
|
3414
|
+
ee.version = Wt;
|
|
3412
3415
|
ee.DEFINITION = $.Definition;
|
|
3413
3416
|
ee.ERROR = $.Error;
|
|
3414
3417
|
ee.INPUTS = $.Inputs;
|
|
@@ -3417,7 +3420,7 @@ ee.OUTPUTS = $.Outputs;
|
|
|
3417
3420
|
ee.STATE = $.State;
|
|
3418
3421
|
ee.deserializeInputs = Ce;
|
|
3419
3422
|
ee.serializeInputs = Ke;
|
|
3420
|
-
function
|
|
3423
|
+
function It(t) {
|
|
3421
3424
|
return t.startsWith("data:") ? t.includes("type=metapage-divider") : !1;
|
|
3422
3425
|
}
|
|
3423
3426
|
function Si(t) {
|
|
@@ -3442,7 +3445,7 @@ function Si(t) {
|
|
|
3442
3445
|
x: 0,
|
|
3443
3446
|
y: o,
|
|
3444
3447
|
w: s.props.cols,
|
|
3445
|
-
h:
|
|
3448
|
+
h: It(e.metaframes[i].url) ? 1 : 3
|
|
3446
3449
|
});
|
|
3447
3450
|
}
|
|
3448
3451
|
});
|
|
@@ -3454,7 +3457,7 @@ function Si(t) {
|
|
|
3454
3457
|
return e;
|
|
3455
3458
|
}
|
|
3456
3459
|
async function Vi(t) {
|
|
3457
|
-
var O,
|
|
3460
|
+
var O, k, R, L, U;
|
|
3458
3461
|
let { url: e, definition: s, onOutputs: n, rootDiv: i, options: o = {} } = t;
|
|
3459
3462
|
if (!e && !s)
|
|
3460
3463
|
throw new Error("Either url or definition must be provided");
|
|
@@ -3472,12 +3475,12 @@ async function Vi(t) {
|
|
|
3472
3475
|
}
|
|
3473
3476
|
const a = [];
|
|
3474
3477
|
n && a.push(r.addListenerReturnDisposer($.Outputs, n));
|
|
3475
|
-
const u = (
|
|
3478
|
+
const u = (k = (O = s == null ? void 0 : s.meta) == null ? void 0 : O.layouts) == null ? void 0 : k["react-grid-layout"], l = u == null ? void 0 : u.layout;
|
|
3476
3479
|
if (!u || !l)
|
|
3477
3480
|
throw new Error("No valid layout found in metapage definition");
|
|
3478
3481
|
const c = /* @__PURE__ */ new Set(), d = l.map((f, M) => {
|
|
3479
3482
|
const I = r.getMetaframes()[f.i];
|
|
3480
|
-
return I &&
|
|
3483
|
+
return I && It(I.url) ? { index: M, y: f.y, id: f.i } : null;
|
|
3481
3484
|
}).filter((f) => f !== null);
|
|
3482
3485
|
if (d.length > 0) {
|
|
3483
3486
|
const f = d.reduce((I, B) => B.y < I.y ? B : I), M = ((R = l.find((I) => I.i === f.id)) == null ? void 0 : R.y) ?? 0;
|
|
@@ -3485,8 +3488,8 @@ async function Vi(t) {
|
|
|
3485
3488
|
I.y >= M && c.add(I.i);
|
|
3486
3489
|
});
|
|
3487
3490
|
}
|
|
3488
|
-
const
|
|
3489
|
-
let v = l.filter((f) =>
|
|
3491
|
+
const g = r.getMetaframeIds().filter((f) => !c.has(f));
|
|
3492
|
+
let v = l.filter((f) => g.includes(f.i));
|
|
3490
3493
|
if (v.length === 0)
|
|
3491
3494
|
return {
|
|
3492
3495
|
metapage: r,
|
|
@@ -3497,7 +3500,7 @@ async function Vi(t) {
|
|
|
3497
3500
|
r.isDisposed() || r.setOutputs(f);
|
|
3498
3501
|
},
|
|
3499
3502
|
dispose: () => {
|
|
3500
|
-
a.forEach((f) => f()), r.dispose()
|
|
3503
|
+
a.forEach((f) => f()), r.dispose();
|
|
3501
3504
|
}
|
|
3502
3505
|
};
|
|
3503
3506
|
v.sort((f, M) => f.y !== M.y ? f.y - M.y : f.x - M.x);
|
|
@@ -3520,21 +3523,19 @@ async function Vi(t) {
|
|
|
3520
3523
|
overflow: "hidden",
|
|
3521
3524
|
display: "flex",
|
|
3522
3525
|
flexDirection: "column"
|
|
3523
|
-
};
|
|
3524
|
-
|
|
3525
|
-
const w = document.createElement("div");
|
|
3526
|
-
Object.assign(w.style, S);
|
|
3526
|
+
}, b = document.createElement("div");
|
|
3527
|
+
Object.assign(b.style, S);
|
|
3527
3528
|
const x = document.createElement("div");
|
|
3528
3529
|
Object.assign(x.style, m);
|
|
3529
|
-
const
|
|
3530
|
-
for (const f of
|
|
3530
|
+
const w = [];
|
|
3531
|
+
for (const f of g) {
|
|
3531
3532
|
const M = l.find((W) => W.i === f);
|
|
3532
3533
|
if (!M)
|
|
3533
3534
|
continue;
|
|
3534
3535
|
const I = r.getMetaframes()[f], B = await I.iframe;
|
|
3535
3536
|
if (!I)
|
|
3536
3537
|
continue;
|
|
3537
|
-
|
|
3538
|
+
w.push(M);
|
|
3538
3539
|
const h = {
|
|
3539
3540
|
gridColumn: `${M.x + 1} / span ${M.w}`,
|
|
3540
3541
|
gridRow: `${M.y + 1} / span ${M.h}`,
|
|
@@ -3548,8 +3549,8 @@ async function Vi(t) {
|
|
|
3548
3549
|
}, p = document.createElement("div");
|
|
3549
3550
|
Object.assign(p.style, h), p.appendChild(B), x.appendChild(p);
|
|
3550
3551
|
}
|
|
3551
|
-
const A = Math.max(...
|
|
3552
|
-
Math.max(...
|
|
3552
|
+
const A = Math.max(...w.map((f) => f.x + f.w));
|
|
3553
|
+
Math.max(...w.map((f) => f.y + f.h)), x.style.gridTemplateColumns = `repeat(${Math.max(1, A)}, 1fr)`;
|
|
3553
3554
|
const E = document.createElement("div");
|
|
3554
3555
|
E.style.position = "absolute", E.style.top = "-9999px", E.style.left = "-9999px", E.style.width = "1px", E.style.height = "1px", E.style.overflow = "hidden", E.style.pointerEvents = "none";
|
|
3555
3556
|
for (const f of Object.keys(r.getMetaframes()).filter((M) => c.has(M))) {
|
|
@@ -3561,7 +3562,7 @@ async function Vi(t) {
|
|
|
3561
3562
|
let B;
|
|
3562
3563
|
M.iframe ? B = await M.iframe : (B = document.createElement("iframe"), B.src = M.url, B.style.border = "none", B.style.width = "100%", B.style.height = "100%"), I.appendChild(B), E.appendChild(I);
|
|
3563
3564
|
}
|
|
3564
|
-
return
|
|
3565
|
+
return b.appendChild(x), b.appendChild(E), i.appendChild(b), {
|
|
3565
3566
|
metapage: r,
|
|
3566
3567
|
setInputs: (f) => {
|
|
3567
3568
|
r.isDisposed() || r.setInputs(f);
|
|
@@ -3570,11 +3571,28 @@ async function Vi(t) {
|
|
|
3570
3571
|
r.isDisposed() || r.setOutputs(f);
|
|
3571
3572
|
},
|
|
3572
3573
|
dispose: () => {
|
|
3573
|
-
a.forEach((f) => f()), r.dispose(),
|
|
3574
|
+
a.forEach((f) => f()), r.dispose(), b.parentNode && b.parentNode.removeChild(b);
|
|
3574
3575
|
}
|
|
3575
3576
|
};
|
|
3576
3577
|
}
|
|
3577
|
-
const
|
|
3578
|
+
const Wi = (t, e) => {
|
|
3579
|
+
var r, a, u;
|
|
3580
|
+
const s = (a = (r = t == null ? void 0 : t.meta) == null ? void 0 : r.layouts) == null ? void 0 : a["react-grid-layout"], n = s == null ? void 0 : s.layout;
|
|
3581
|
+
if (!s || !n)
|
|
3582
|
+
throw new Error("No valid layout found in metapage definition");
|
|
3583
|
+
const i = /* @__PURE__ */ new Set(), o = n.map((l, c) => {
|
|
3584
|
+
var g;
|
|
3585
|
+
const d = (g = t == null ? void 0 : t.metaframes) == null ? void 0 : g[l.i];
|
|
3586
|
+
return d && It(d.url) ? { index: c, y: l.y, id: l.i } : null;
|
|
3587
|
+
}).filter((l) => l !== null);
|
|
3588
|
+
if (o.length > 0) {
|
|
3589
|
+
const l = o.reduce((d, g) => g.y < d.y ? g : d), c = ((u = n.find((d) => d.i === l.id)) == null ? void 0 : u.y) ?? 0;
|
|
3590
|
+
n.forEach((d) => {
|
|
3591
|
+
d.y >= c && i.add(d.i);
|
|
3592
|
+
});
|
|
3593
|
+
}
|
|
3594
|
+
return i.has(e);
|
|
3595
|
+
}, Ai = (t) => {
|
|
3578
3596
|
var s;
|
|
3579
3597
|
if (!t)
|
|
3580
3598
|
return;
|
|
@@ -3596,36 +3614,36 @@ const Ai = (t) => {
|
|
|
3596
3614
|
return t;
|
|
3597
3615
|
};
|
|
3598
3616
|
export {
|
|
3599
|
-
|
|
3600
|
-
|
|
3617
|
+
ps as INITIAL_NULL_METAPAGE_DEFINITION,
|
|
3618
|
+
Ni as INTERNAL_ERROR,
|
|
3601
3619
|
Di as INVALID_PARAMS,
|
|
3602
|
-
|
|
3620
|
+
Pi as INVALID_REQUEST,
|
|
3603
3621
|
X as JsonRpcMethodsFromChild,
|
|
3604
3622
|
me as JsonRpcMethodsFromParent,
|
|
3605
3623
|
Mi as METAFRAME_JSON_FILE,
|
|
3606
3624
|
Ii as METAPAGE_KEY_DEFINITION,
|
|
3607
3625
|
Ci as METAPAGE_KEY_STATE,
|
|
3608
|
-
|
|
3626
|
+
Ti as METHOD_NOT_FOUND,
|
|
3609
3627
|
ie as Metaframe,
|
|
3610
3628
|
z as MetaframeEvents,
|
|
3611
3629
|
ae as MetaframeLoadingState,
|
|
3612
3630
|
We as MetaframeVersionCurrent,
|
|
3613
|
-
|
|
3631
|
+
Ct as MetaframeVersionsAll,
|
|
3614
3632
|
ee as Metapage,
|
|
3615
3633
|
$ as MetapageEvents,
|
|
3616
3634
|
xe as MetapageHashParams,
|
|
3617
3635
|
vi as MetapageIFrameRpcClient,
|
|
3618
|
-
|
|
3636
|
+
Hn as MetapageShared,
|
|
3619
3637
|
Le as MetapageVersionCurrent,
|
|
3620
|
-
|
|
3638
|
+
$t as MetapageVersionsAll,
|
|
3621
3639
|
Li as PARSE_ERROR,
|
|
3622
3640
|
As as VERSION_METAFRAME,
|
|
3623
|
-
|
|
3641
|
+
Wt as VERSION_METAPAGE,
|
|
3624
3642
|
tn as convertMetaframeDefinitionToCurrentVersion,
|
|
3625
|
-
|
|
3643
|
+
ns as convertMetaframeDefinitionToVersion,
|
|
3626
3644
|
pt as convertMetaframeJsonToCurrentVersion,
|
|
3627
3645
|
Vs as convertMetapageDefinitionToCurrentVersion,
|
|
3628
|
-
|
|
3646
|
+
ss as convertMetapageDefinitionToVersion,
|
|
3629
3647
|
Ce as deserializeInputs,
|
|
3630
3648
|
St as generateId,
|
|
3631
3649
|
Ui as generateMetaframeId,
|
|
@@ -3636,14 +3654,16 @@ export {
|
|
|
3636
3654
|
he as getMatchingMetapageVersion,
|
|
3637
3655
|
wi as getMetaframeDefinitionFromUrl,
|
|
3638
3656
|
bi as getMetapageDefinitionFromUrl,
|
|
3639
|
-
|
|
3657
|
+
Hi as getUrlParam,
|
|
3640
3658
|
ji as getUrlParamDebug,
|
|
3641
3659
|
Un as hashCode,
|
|
3642
3660
|
Bn as intToRGB,
|
|
3643
3661
|
ht as isDebugFromUrlsParams,
|
|
3644
3662
|
Ji as isEmptyMetaframeDefinition,
|
|
3645
|
-
|
|
3646
|
-
|
|
3663
|
+
kn as isIframe,
|
|
3664
|
+
ki as isJsonRpcId,
|
|
3665
|
+
It as isMetaframeDivider,
|
|
3666
|
+
Wi as isMetaframeHidden,
|
|
3647
3667
|
tt as isPageLoaded,
|
|
3648
3668
|
At as log,
|
|
3649
3669
|
Oi as matchPipe,
|
|
@@ -3652,11 +3672,11 @@ export {
|
|
|
3652
3672
|
zi as metapageOnlyEssentailSha256Hash,
|
|
3653
3673
|
Xe as pageLoaded,
|
|
3654
3674
|
xi as possiblyDeserializeDatarefToFile,
|
|
3655
|
-
|
|
3675
|
+
is as possiblyDeserializeDatarefToValue,
|
|
3656
3676
|
dn as possiblySerializeValueToDataref,
|
|
3657
3677
|
Vi as renderMetapage,
|
|
3658
3678
|
Ke as serializeInputs,
|
|
3659
|
-
|
|
3679
|
+
hs as stringToRgb,
|
|
3660
3680
|
$i as valueToFile
|
|
3661
3681
|
};
|
|
3662
3682
|
//# sourceMappingURL=index.js.map
|