@metapages/metapage 1.8.27 → 1.8.29
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 +146 -141
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -74,26 +74,26 @@ var Kt = { exports: {} };
|
|
|
74
74
|
else
|
|
75
75
|
throw new i("retryOn property expects an array or function");
|
|
76
76
|
return new Promise(function(y, O) {
|
|
77
|
-
var R = function(
|
|
77
|
+
var R = function(v) {
|
|
78
78
|
var A = typeof Request < "u" && l instanceof Request ? l.clone() : l;
|
|
79
79
|
o(A, c).then(function(C) {
|
|
80
80
|
if (Array.isArray(_) && _.indexOf(C.status) === -1)
|
|
81
81
|
y(C);
|
|
82
82
|
else if (typeof _ == "function")
|
|
83
83
|
try {
|
|
84
|
-
return Promise.resolve(_(
|
|
85
|
-
S ? $(
|
|
84
|
+
return Promise.resolve(_(v, null, C)).then(function(S) {
|
|
85
|
+
S ? $(v, null, C) : y(C);
|
|
86
86
|
}).catch(O);
|
|
87
87
|
} catch (S) {
|
|
88
88
|
O(S);
|
|
89
89
|
}
|
|
90
90
|
else
|
|
91
|
-
|
|
91
|
+
v < p ? $(v, null, C) : y(C);
|
|
92
92
|
}).catch(function(C) {
|
|
93
93
|
if (typeof _ == "function")
|
|
94
94
|
try {
|
|
95
|
-
Promise.resolve(_(
|
|
96
|
-
S ? $(
|
|
95
|
+
Promise.resolve(_(v, C, null)).then(function(S) {
|
|
96
|
+
S ? $(v, C, null) : O(C);
|
|
97
97
|
}).catch(function(S) {
|
|
98
98
|
O(S);
|
|
99
99
|
});
|
|
@@ -101,13 +101,13 @@ var Kt = { exports: {} };
|
|
|
101
101
|
O(S);
|
|
102
102
|
}
|
|
103
103
|
else
|
|
104
|
-
|
|
104
|
+
v < p ? $(v, C, null) : O(C);
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
|
-
function $(
|
|
108
|
-
var S = typeof m == "function" ? m(
|
|
107
|
+
function $(v, A, C) {
|
|
108
|
+
var S = typeof m == "function" ? m(v, A, C) : m;
|
|
109
109
|
setTimeout(function() {
|
|
110
|
-
R(++
|
|
110
|
+
R(++v);
|
|
111
111
|
}, S);
|
|
112
112
|
}
|
|
113
113
|
R(0);
|
|
@@ -187,14 +187,14 @@ function qt(t, e = []) {
|
|
|
187
187
|
}
|
|
188
188
|
return e;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function we(t) {
|
|
191
191
|
return Array.isArray(t) ? 1 : t instanceof Map ? 2 : t instanceof Set ? 3 : 0;
|
|
192
192
|
}
|
|
193
193
|
function pe(t, e) {
|
|
194
|
-
return
|
|
194
|
+
return we(t) === 2 ? t.get(e) : t[e];
|
|
195
195
|
}
|
|
196
196
|
function Pe(t, e, s) {
|
|
197
|
-
|
|
197
|
+
we(t) === 2 ? t.set(e, s) : t[e] = s;
|
|
198
198
|
}
|
|
199
199
|
function et(t, e) {
|
|
200
200
|
const s = P(t);
|
|
@@ -217,7 +217,7 @@ function _e(t, e) {
|
|
|
217
217
|
function Ls(t, e) {
|
|
218
218
|
for (let s = 0; s < e.length - 1; s += 1) {
|
|
219
219
|
const n = e[s];
|
|
220
|
-
if (t = pe(
|
|
220
|
+
if (t = pe(we(t) === 3 ? Array.from(t) : t, n), typeof t != "object")
|
|
221
221
|
throw new Error(`Cannot resolve patch at '${e.join("/")}'.`);
|
|
222
222
|
}
|
|
223
223
|
return t;
|
|
@@ -314,7 +314,7 @@ function Oe(t, e, s, n, i) {
|
|
|
314
314
|
n.pop(), i.pop();
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
|
-
switch (
|
|
317
|
+
switch (we(t)) {
|
|
318
318
|
case 2:
|
|
319
319
|
for (const [a, u] of t)
|
|
320
320
|
Oe(a, a, s, n, i), Oe(u, a, s, n, i);
|
|
@@ -340,7 +340,7 @@ function Oe(t, e, s, n, i) {
|
|
|
340
340
|
n.pop(), i.pop();
|
|
341
341
|
}
|
|
342
342
|
function bt(t, e) {
|
|
343
|
-
const s =
|
|
343
|
+
const s = we(t);
|
|
344
344
|
if (s === 0)
|
|
345
345
|
Reflect.ownKeys(t).forEach((n) => {
|
|
346
346
|
e(n, t[n], t);
|
|
@@ -390,7 +390,7 @@ function ut(t, e, s, n) {
|
|
|
390
390
|
t.finalized = !0;
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function wt(t, e, s, n) {
|
|
394
394
|
const i = P(s);
|
|
395
395
|
i && (i.callbacks || (i.callbacks = []), i.callbacks.push((o, r) => {
|
|
396
396
|
var a;
|
|
@@ -516,7 +516,7 @@ const ze = (t, e, s = !1) => {
|
|
|
516
516
|
},
|
|
517
517
|
set(t, e) {
|
|
518
518
|
const s = P(this), n = Q(s);
|
|
519
|
-
return (!n.has(t) || !fe(n.get(t), e)) && (X(s), ue(s), s.assignedMap.set(t, !0), s.copy.set(t, e),
|
|
519
|
+
return (!n.has(t) || !fe(n.get(t), e)) && (X(s), ue(s), s.assignedMap.set(t, !0), s.copy.set(t, e), wt(s, t, e, $e)), this;
|
|
520
520
|
},
|
|
521
521
|
delete(t) {
|
|
522
522
|
if (!this.has(t))
|
|
@@ -625,7 +625,7 @@ const ze = (t, e, s = !1) => {
|
|
|
625
625
|
},
|
|
626
626
|
add(t) {
|
|
627
627
|
const e = P(this);
|
|
628
|
-
return this.has(t) || (X(e), ue(e), e.assignedMap.set(t, !0), e.setMap.set(t, t),
|
|
628
|
+
return this.has(t) || (X(e), ue(e), e.assignedMap.set(t, !0), e.setMap.set(t, t), wt(e, t, t, $e)), this;
|
|
629
629
|
},
|
|
630
630
|
delete(t) {
|
|
631
631
|
if (!this.has(t))
|
|
@@ -716,7 +716,7 @@ const ze = (t, e, s = !1) => {
|
|
|
716
716
|
if (t.options.strict && ze(u, t.options), t.finalized || !ne(u, t.options))
|
|
717
717
|
return u;
|
|
718
718
|
if (u === et(t.original, e)) {
|
|
719
|
-
if (X(t), t.copy[e] =
|
|
719
|
+
if (X(t), t.copy[e] = vt({
|
|
720
720
|
original: t.original[e],
|
|
721
721
|
parentDraft: t,
|
|
722
722
|
key: t.type === 1 ? Number(e) : e,
|
|
@@ -741,7 +741,7 @@ const ze = (t, e, s = !1) => {
|
|
|
741
741
|
if (o != null && o.set)
|
|
742
742
|
return o.set.call(t.proxy, s), !0;
|
|
743
743
|
const r = et(Q(t), e), a = P(r);
|
|
744
|
-
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)) || (X(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,
|
|
744
|
+
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)) || (X(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);
|
|
745
745
|
},
|
|
746
746
|
has(t, e) {
|
|
747
747
|
return e in Q(t);
|
|
@@ -772,8 +772,8 @@ const ze = (t, e, s = !1) => {
|
|
|
772
772
|
return t.type === 1 ? es.set.call(this, t, e, void 0, t.proxy) : (et(t.original, e) !== void 0 || e in t.original ? (X(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);
|
|
773
773
|
}
|
|
774
774
|
};
|
|
775
|
-
function
|
|
776
|
-
const { original: e, parentDraft: s, key: n, finalities: i, options: o } = t, r =
|
|
775
|
+
function vt(t) {
|
|
776
|
+
const { original: e, parentDraft: s, key: n, finalities: i, options: o } = t, r = we(e), a = {
|
|
777
777
|
type: r,
|
|
778
778
|
finalized: !1,
|
|
779
779
|
parent: s,
|
|
@@ -793,10 +793,10 @@ function wt(t) {
|
|
|
793
793
|
var _, y;
|
|
794
794
|
const O = P(u);
|
|
795
795
|
let R = c.type === 3 ? c.setMap : c.copy;
|
|
796
|
-
const $ = pe(R, n),
|
|
797
|
-
if (
|
|
798
|
-
let A =
|
|
799
|
-
|
|
796
|
+
const $ = pe(R, n), v = P($);
|
|
797
|
+
if (v) {
|
|
798
|
+
let A = v.original;
|
|
799
|
+
v.operated && (A = _t($)), at(v), ut(v, $e, p, m), c.options.enableAutoFreeze && (c.options.updatedValues = (_ = c.options.updatedValues) !== null && _ !== void 0 ? _ : /* @__PURE__ */ new WeakMap(), c.options.updatedValues.set(A, v.original)), Pe(R, n, A);
|
|
800
800
|
}
|
|
801
801
|
(y = O.callbacks) === null || y === void 0 || y.forEach((A) => {
|
|
802
802
|
A(p, m);
|
|
@@ -810,7 +810,7 @@ function wt(t) {
|
|
|
810
810
|
}
|
|
811
811
|
return u;
|
|
812
812
|
}
|
|
813
|
-
gt.createDraft =
|
|
813
|
+
gt.createDraft = vt;
|
|
814
814
|
function Fs(t, e, s, n, i) {
|
|
815
815
|
var o;
|
|
816
816
|
const r = P(t), a = (o = r == null ? void 0 : r.original) !== null && o !== void 0 ? o : t, u = !!e.length;
|
|
@@ -833,7 +833,7 @@ function zs(t, e) {
|
|
|
833
833
|
};
|
|
834
834
|
let i, o;
|
|
835
835
|
e.enablePatches && (i = [], o = []);
|
|
836
|
-
const a = ((s = e.mark) === null || s === void 0 ? void 0 : s.call(e, t, Y)) === Y.mutable || !ne(t, e) ? t :
|
|
836
|
+
const a = ((s = e.mark) === null || s === void 0 ? void 0 : s.call(e, t, Y)) === Y.mutable || !ne(t, e) ? t : vt({
|
|
837
837
|
original: t,
|
|
838
838
|
parentDraft: null,
|
|
839
839
|
finalities: n,
|
|
@@ -867,7 +867,7 @@ function ts(t) {
|
|
|
867
867
|
const e = P(t);
|
|
868
868
|
if (!ne(t, e == null ? void 0 : e.options))
|
|
869
869
|
return t;
|
|
870
|
-
const s =
|
|
870
|
+
const s = we(t);
|
|
871
871
|
if (e && !e.operated)
|
|
872
872
|
return e.original;
|
|
873
873
|
let n;
|
|
@@ -913,9 +913,9 @@ const Gs = (t) => {
|
|
|
913
913
|
for (const E of c.mark) {
|
|
914
914
|
if (typeof E != "function")
|
|
915
915
|
throw new Error(`Invalid mark: ${E}, 'mark' should be a function.`);
|
|
916
|
-
const
|
|
917
|
-
if (
|
|
918
|
-
return
|
|
916
|
+
const w = E(S, k);
|
|
917
|
+
if (w)
|
|
918
|
+
return w;
|
|
919
919
|
}
|
|
920
920
|
} : c.mark, _ = (o = c.enablePatches) !== null && o !== void 0 ? o : !1, y = (r = c.strict) !== null && r !== void 0 ? r : !1, R = {
|
|
921
921
|
enableAutoFreeze: (a = c.enableAutoFreeze) !== null && a !== void 0 ? a : !1,
|
|
@@ -925,11 +925,11 @@ const Gs = (t) => {
|
|
|
925
925
|
};
|
|
926
926
|
if (!ne(p, R) && typeof p == "object" && p !== null)
|
|
927
927
|
throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");
|
|
928
|
-
const [$,
|
|
928
|
+
const [$, v] = zs(p, R);
|
|
929
929
|
if (typeof n != "function") {
|
|
930
930
|
if (!ne(p, R))
|
|
931
931
|
throw new Error("Invalid base state: create() only supports plain objects, arrays, Set, Map or using mark() to mark the state as immutable.");
|
|
932
|
-
return [$,
|
|
932
|
+
return [$, v];
|
|
933
933
|
}
|
|
934
934
|
let A;
|
|
935
935
|
try {
|
|
@@ -942,27 +942,27 @@ const Gs = (t) => {
|
|
|
942
942
|
if (!be(S)) {
|
|
943
943
|
if (S !== void 0 && !fe(S, $) && (k != null && k.operated))
|
|
944
944
|
throw new Error("Either the value is returned as a new non-draft value, or only the draft is modified without returning any value.");
|
|
945
|
-
const
|
|
946
|
-
if (
|
|
947
|
-
const x =
|
|
945
|
+
const w = S == null ? void 0 : S[xs];
|
|
946
|
+
if (w) {
|
|
947
|
+
const x = w[0];
|
|
948
948
|
return R.strict && typeof S == "object" && S !== null && ft({
|
|
949
949
|
rootDraft: k,
|
|
950
950
|
value: S,
|
|
951
951
|
useRawReturn: !0
|
|
952
|
-
}),
|
|
952
|
+
}), v([x]);
|
|
953
953
|
}
|
|
954
954
|
if (S !== void 0)
|
|
955
|
-
return typeof S == "object" && S !== null && ft({ rootDraft: k, value: S }),
|
|
955
|
+
return typeof S == "object" && S !== null && ft({ rootDraft: k, value: S }), v([S]);
|
|
956
956
|
}
|
|
957
957
|
if (S === $ || S === void 0)
|
|
958
|
-
return
|
|
958
|
+
return v([]);
|
|
959
959
|
const E = P(S);
|
|
960
960
|
if (R === E.options) {
|
|
961
961
|
if (E.operated)
|
|
962
962
|
throw new Error("Cannot return a modified child draft.");
|
|
963
|
-
return
|
|
963
|
+
return v([Ht(S)]);
|
|
964
964
|
}
|
|
965
|
-
return
|
|
965
|
+
return v([S]);
|
|
966
966
|
};
|
|
967
967
|
return A instanceof Promise ? A.then(C, (S) => {
|
|
968
968
|
throw ot(P($)), S;
|
|
@@ -1402,7 +1402,7 @@ var rs = { exports: {} };
|
|
|
1402
1402
|
var O = s ? s + l : l;
|
|
1403
1403
|
if (!this._events[O])
|
|
1404
1404
|
return !1;
|
|
1405
|
-
var R = this._events[O], $ = arguments.length,
|
|
1405
|
+
var R = this._events[O], $ = arguments.length, v, A;
|
|
1406
1406
|
if (R.fn) {
|
|
1407
1407
|
switch (R.once && this.removeListener(l, R.fn, void 0, !0), $) {
|
|
1408
1408
|
case 1:
|
|
@@ -1418,9 +1418,9 @@ var rs = { exports: {} };
|
|
|
1418
1418
|
case 6:
|
|
1419
1419
|
return R.fn.call(R.context, c, p, m, _, y), !0;
|
|
1420
1420
|
}
|
|
1421
|
-
for (A = 1,
|
|
1422
|
-
|
|
1423
|
-
R.fn.apply(R.context,
|
|
1421
|
+
for (A = 1, v = new Array($ - 1); A < $; A++)
|
|
1422
|
+
v[A - 1] = arguments[A];
|
|
1423
|
+
R.fn.apply(R.context, v);
|
|
1424
1424
|
} else {
|
|
1425
1425
|
var C = R.length, S;
|
|
1426
1426
|
for (A = 0; A < C; A++)
|
|
@@ -1438,10 +1438,10 @@ var rs = { exports: {} };
|
|
|
1438
1438
|
R[A].fn.call(R[A].context, c, p, m);
|
|
1439
1439
|
break;
|
|
1440
1440
|
default:
|
|
1441
|
-
if (!
|
|
1442
|
-
for (S = 1,
|
|
1443
|
-
|
|
1444
|
-
R[A].fn.apply(R[A].context,
|
|
1441
|
+
if (!v)
|
|
1442
|
+
for (S = 1, v = new Array($ - 1); S < $; S++)
|
|
1443
|
+
v[S - 1] = arguments[S];
|
|
1444
|
+
R[A].fn.apply(R[A].context, v);
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
1447
|
return !0;
|
|
@@ -1513,13 +1513,19 @@ var yn = function(t, e) {
|
|
|
1513
1513
|
};
|
|
1514
1514
|
const gn = /* @__PURE__ */ mn(yn), _n = (t) => os(gn(t)), bn = (t) => {
|
|
1515
1515
|
if (t && t.length > 0)
|
|
1516
|
-
|
|
1516
|
+
try {
|
|
1517
|
+
return JSON.parse(as(t));
|
|
1518
|
+
} catch {
|
|
1519
|
+
return JSON.parse(decodeURIComponent(atob(decodeURIComponent(t))));
|
|
1520
|
+
}
|
|
1517
1521
|
}, os = (t) => btoa(encodeURIComponent(t)), as = (t) => {
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1522
|
+
try {
|
|
1523
|
+
return decodeURIComponent(atob(t));
|
|
1524
|
+
} catch {
|
|
1525
|
+
return decodeURIComponent(atob(decodeURIComponent(t)));
|
|
1526
|
+
}
|
|
1521
1527
|
}, us = (t) => {
|
|
1522
|
-
const e = new URL(t);
|
|
1528
|
+
const e = t instanceof URL ? t : new URL(t);
|
|
1523
1529
|
return cs(e.hash);
|
|
1524
1530
|
}, cs = (t) => {
|
|
1525
1531
|
let e = t;
|
|
@@ -1540,16 +1546,12 @@ const gn = /* @__PURE__ */ mn(yn), _n = (t) => os(gn(t)), bn = (t) => {
|
|
|
1540
1546
|
}).forEach(([o, r]) => {
|
|
1541
1547
|
i[o] = r;
|
|
1542
1548
|
}), Object.keys(i).forEach((o) => {
|
|
1543
|
-
|
|
1544
|
-
i[o] = decodeURIComponent(i[o]);
|
|
1545
|
-
} catch {
|
|
1546
|
-
i[o] = i[o];
|
|
1547
|
-
}
|
|
1549
|
+
i[o] = i[o];
|
|
1548
1550
|
}), [n, i];
|
|
1549
1551
|
}, Te = (t, e) => {
|
|
1550
1552
|
const [s, n] = us(t);
|
|
1551
1553
|
return n[e];
|
|
1552
|
-
},
|
|
1554
|
+
}, wn = (t) => vn()[1][t], vn = () => us(window.location.href), Se = (t, e, s) => {
|
|
1553
1555
|
const n = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, i = On(n, t, e);
|
|
1554
1556
|
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"))));
|
|
1555
1557
|
}, On = (t, e, s) => {
|
|
@@ -1559,8 +1561,11 @@ const gn = /* @__PURE__ */ mn(yn), _n = (t) => os(gn(t)), bn = (t) => {
|
|
|
1559
1561
|
return t;
|
|
1560
1562
|
const r = Object.keys(i);
|
|
1561
1563
|
r.sort();
|
|
1562
|
-
const a = r.map((u, l) =>
|
|
1563
|
-
|
|
1564
|
+
const a = r.map((u, l) => {
|
|
1565
|
+
const c = i[u];
|
|
1566
|
+
return /^[A-Za-z0-9+/]+={0,2}$/.test(c) && c.length % 4, `${u}=${c}`;
|
|
1567
|
+
}).join("&");
|
|
1568
|
+
return !n && !a ? "" : `${n || ""}${a ? "?" + a : ""}`;
|
|
1564
1569
|
}, Rt = (t, e) => {
|
|
1565
1570
|
const s = Te(t, e);
|
|
1566
1571
|
if (s && s !== "")
|
|
@@ -1878,7 +1883,7 @@ class ie extends Ot.EventEmitter {
|
|
|
1878
1883
|
Se(e, s);
|
|
1879
1884
|
}
|
|
1880
1885
|
getParameter(e) {
|
|
1881
|
-
return
|
|
1886
|
+
return wn(e);
|
|
1882
1887
|
}
|
|
1883
1888
|
setParameterBoolean(e, s) {
|
|
1884
1889
|
xn(e, s);
|
|
@@ -2151,19 +2156,19 @@ const Bt = qe, {
|
|
|
2151
2156
|
t.isPrefix !== !0 && (t.depth = t.isGlobstar ? 1 / 0 : 1);
|
|
2152
2157
|
}, oi = (t, e) => {
|
|
2153
2158
|
const s = e || {}, n = t.length - 1, i = s.parts === !0 || s.scanToEnd === !0, o = [], r = [], a = [];
|
|
2154
|
-
let u = t, l = -1, c = 0, p = 0, m = !1, _ = !1, y = !1, O = !1, R = !1, $ = !1,
|
|
2159
|
+
let u = t, l = -1, c = 0, p = 0, m = !1, _ = !1, y = !1, O = !1, R = !1, $ = !1, v = !1, A = !1, C = !1, S = 0, k, E, w = { value: "", depth: 0, isGlob: !1 };
|
|
2155
2160
|
const x = () => l >= n, d = () => u.charCodeAt(l + 1), T = () => (k = E, u.charCodeAt(++l));
|
|
2156
2161
|
for (; l < n; ) {
|
|
2157
2162
|
E = T();
|
|
2158
2163
|
let V;
|
|
2159
2164
|
if (E === Me) {
|
|
2160
|
-
|
|
2165
|
+
v = w.backslashes = !0, E = T(), E === it && ($ = !0);
|
|
2161
2166
|
continue;
|
|
2162
2167
|
}
|
|
2163
2168
|
if ($ === !0 || E === it) {
|
|
2164
2169
|
for (S++; x() !== !0 && (E = T()); ) {
|
|
2165
2170
|
if (E === Me) {
|
|
2166
|
-
|
|
2171
|
+
v = w.backslashes = !0, T();
|
|
2167
2172
|
continue;
|
|
2168
2173
|
}
|
|
2169
2174
|
if (E === it) {
|
|
@@ -2171,17 +2176,17 @@ const Bt = qe, {
|
|
|
2171
2176
|
continue;
|
|
2172
2177
|
}
|
|
2173
2178
|
if ($ !== !0 && E === nt && (E = T()) === nt) {
|
|
2174
|
-
if (m =
|
|
2179
|
+
if (m = w.isBrace = !0, y = w.isGlob = !0, C = !0, i === !0)
|
|
2175
2180
|
continue;
|
|
2176
2181
|
break;
|
|
2177
2182
|
}
|
|
2178
2183
|
if ($ !== !0 && E === ti) {
|
|
2179
|
-
if (m =
|
|
2184
|
+
if (m = w.isBrace = !0, y = w.isGlob = !0, C = !0, i === !0)
|
|
2180
2185
|
continue;
|
|
2181
2186
|
break;
|
|
2182
2187
|
}
|
|
2183
2188
|
if (E === ii && (S--, S === 0)) {
|
|
2184
|
-
$ = !1, m =
|
|
2189
|
+
$ = !1, m = w.isBrace = !0, C = !0;
|
|
2185
2190
|
break;
|
|
2186
2191
|
}
|
|
2187
2192
|
}
|
|
@@ -2190,7 +2195,7 @@ const Bt = qe, {
|
|
|
2190
2195
|
break;
|
|
2191
2196
|
}
|
|
2192
2197
|
if (E === _s) {
|
|
2193
|
-
if (o.push(l), r.push(
|
|
2198
|
+
if (o.push(l), r.push(w), w = { value: "", depth: 0, isGlob: !1 }, C === !0)
|
|
2194
2199
|
continue;
|
|
2195
2200
|
if (k === nt && l === c + 1) {
|
|
2196
2201
|
c += 2;
|
|
@@ -2200,14 +2205,14 @@ const Bt = qe, {
|
|
|
2200
2205
|
continue;
|
|
2201
2206
|
}
|
|
2202
2207
|
if (s.noext !== !0 && (E === ni || E === ei || E === st || E === zt || E === Ft) === !0 && d() === rt) {
|
|
2203
|
-
if (y =
|
|
2208
|
+
if (y = w.isGlob = !0, O = w.isExtglob = !0, C = !0, i === !0) {
|
|
2204
2209
|
for (; x() !== !0 && (E = T()); ) {
|
|
2205
2210
|
if (E === Me) {
|
|
2206
|
-
|
|
2211
|
+
v = w.backslashes = !0, E = T();
|
|
2207
2212
|
continue;
|
|
2208
2213
|
}
|
|
2209
2214
|
if (E === Gt) {
|
|
2210
|
-
y =
|
|
2215
|
+
y = w.isGlob = !0, C = !0;
|
|
2211
2216
|
break;
|
|
2212
2217
|
}
|
|
2213
2218
|
}
|
|
@@ -2216,36 +2221,36 @@ const Bt = qe, {
|
|
|
2216
2221
|
break;
|
|
2217
2222
|
}
|
|
2218
2223
|
if (E === st) {
|
|
2219
|
-
if (k === st && (R =
|
|
2224
|
+
if (k === st && (R = w.isGlobstar = !0), y = w.isGlob = !0, C = !0, i === !0)
|
|
2220
2225
|
continue;
|
|
2221
2226
|
break;
|
|
2222
2227
|
}
|
|
2223
2228
|
if (E === zt) {
|
|
2224
|
-
if (y =
|
|
2229
|
+
if (y = w.isGlob = !0, C = !0, i === !0)
|
|
2225
2230
|
continue;
|
|
2226
2231
|
break;
|
|
2227
2232
|
}
|
|
2228
2233
|
if (E === si)
|
|
2229
2234
|
for (; x() !== !0 && (V = T()); ) {
|
|
2230
2235
|
if (V === Me) {
|
|
2231
|
-
|
|
2236
|
+
v = w.backslashes = !0, T();
|
|
2232
2237
|
continue;
|
|
2233
2238
|
}
|
|
2234
2239
|
if (V === ri) {
|
|
2235
|
-
if (_ =
|
|
2240
|
+
if (_ = w.isBracket = !0, y = w.isGlob = !0, C = !0, i === !0)
|
|
2236
2241
|
continue;
|
|
2237
2242
|
break;
|
|
2238
2243
|
}
|
|
2239
2244
|
}
|
|
2240
2245
|
if (s.nonegate !== !0 && E === Ft && l === c) {
|
|
2241
|
-
A =
|
|
2246
|
+
A = w.negated = !0, c++;
|
|
2242
2247
|
continue;
|
|
2243
2248
|
}
|
|
2244
2249
|
if (s.noparen !== !0 && E === rt) {
|
|
2245
|
-
if (y =
|
|
2250
|
+
if (y = w.isGlob = !0, i === !0) {
|
|
2246
2251
|
for (; x() !== !0 && (E = T()); ) {
|
|
2247
2252
|
if (E === rt) {
|
|
2248
|
-
|
|
2253
|
+
v = w.backslashes = !0, E = T();
|
|
2249
2254
|
continue;
|
|
2250
2255
|
}
|
|
2251
2256
|
if (E === Gt) {
|
|
@@ -2265,7 +2270,7 @@ const Bt = qe, {
|
|
|
2265
2270
|
}
|
|
2266
2271
|
s.noext === !0 && (O = !1, y = !1);
|
|
2267
2272
|
let H = u, Z = "", f = "";
|
|
2268
|
-
c > 0 && (Z = u.slice(0, c), u = u.slice(c), p -= c), H && y === !0 && p > 0 ? (H = u.slice(0, p), f = u.slice(p)) : y === !0 ? (H = "", f = u) : H = u, H && H !== "" && H !== "/" && H !== u && Jt(H.charCodeAt(H.length - 1)) && (H = H.slice(0, -1)), s.unescape === !0 && (f && (f = Bt.removeBackslashes(f)), H &&
|
|
2273
|
+
c > 0 && (Z = u.slice(0, c), u = u.slice(c), p -= c), H && y === !0 && p > 0 ? (H = u.slice(0, p), f = u.slice(p)) : y === !0 ? (H = "", f = u) : H = u, H && H !== "" && H !== "/" && H !== u && Jt(H.charCodeAt(H.length - 1)) && (H = H.slice(0, -1)), s.unescape === !0 && (f && (f = Bt.removeBackslashes(f)), H && v === !0 && (H = Bt.removeBackslashes(H)));
|
|
2269
2274
|
const h = {
|
|
2270
2275
|
prefix: Z,
|
|
2271
2276
|
input: t,
|
|
@@ -2279,7 +2284,7 @@ const Bt = qe, {
|
|
|
2279
2284
|
isGlobstar: R,
|
|
2280
2285
|
negated: A
|
|
2281
2286
|
};
|
|
2282
|
-
if (s.tokens === !0 && (h.maxDepth = 0, Jt(E) || r.push(
|
|
2287
|
+
if (s.tokens === !0 && (h.maxDepth = 0, Jt(E) || r.push(w), h.tokens = r), s.parts === !0 || s.tokens === !0) {
|
|
2283
2288
|
let V;
|
|
2284
2289
|
for (let N = 0; N < o.length; N++) {
|
|
2285
2290
|
const re = V ? V + 1 : c, ce = o[N], q = t.slice(re, ce);
|
|
@@ -2311,7 +2316,7 @@ const Je = Ye, se = qe, {
|
|
|
2311
2316
|
return t.map((i) => se.escapeRegex(i)).join("..");
|
|
2312
2317
|
}
|
|
2313
2318
|
return s;
|
|
2314
|
-
},
|
|
2319
|
+
}, ve = (t, e) => `Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`, ws = (t, e) => {
|
|
2315
2320
|
if (typeof t != "string")
|
|
2316
2321
|
throw new TypeError("Expected a string");
|
|
2317
2322
|
t = bs[t] || t;
|
|
@@ -2328,11 +2333,11 @@ const Je = Ye, se = qe, {
|
|
|
2328
2333
|
NO_DOT: O,
|
|
2329
2334
|
NO_DOT_SLASH: R,
|
|
2330
2335
|
NO_DOTS_SLASH: $,
|
|
2331
|
-
QMARK:
|
|
2336
|
+
QMARK: v,
|
|
2332
2337
|
QMARK_NO_DOT: A,
|
|
2333
2338
|
STAR: C,
|
|
2334
2339
|
START_ANCHOR: S
|
|
2335
|
-
} = u, k = (b) => `(${a}(?:(?!${S}${b.dot ? y : c}).)*?)`, E = s.dot ? "" : O,
|
|
2340
|
+
} = u, k = (b) => `(${a}(?:(?!${S}${b.dot ? y : c}).)*?)`, E = s.dot ? "" : O, w = s.dot ? v : A;
|
|
2336
2341
|
let x = s.bash === !0 ? k(s) : C;
|
|
2337
2342
|
s.capture && (x = `(${x})`), typeof s.noext == "boolean" && (s.noextglob = s.noext);
|
|
2338
2343
|
const d = {
|
|
@@ -2392,7 +2397,7 @@ const Je = Ye, se = qe, {
|
|
|
2392
2397
|
L({ type: "paren", extglob: !0, value: h, output: j }), ye("parens");
|
|
2393
2398
|
};
|
|
2394
2399
|
if (s.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(t)) {
|
|
2395
|
-
let b = !1, j = t.replace(li, (g, D, B, W, J, Ze) => W === "\\" ? (b = !0, g) : W === "?" ? D ? D + W + (J ?
|
|
2400
|
+
let b = !1, j = t.replace(li, (g, D, B, W, J, Ze) => W === "\\" ? (b = !0, g) : W === "?" ? D ? D + W + (J ? v.repeat(J.length) : "") : Ze === 0 ? w + (J ? v.repeat(J.length) : "") : v.repeat(B.length) : W === "." ? c.repeat(B.length) : W === "*" ? D ? D + W + (J ? x : "") : x : D ? g : `\\${g}`);
|
|
2396
2401
|
return b === !0 && (s.unescape === !0 ? j = j.replace(/\\/g, "") : j = j.replace(/\\+/g, (g) => g.length % 2 === 0 ? "\\\\" : g ? "\\" : "")), j === t && s.contains === !0 ? (d.output = t, d) : (d.output = se.wrapOutput(j, d, e), d);
|
|
2397
2402
|
}
|
|
2398
2403
|
for (; !V(); ) {
|
|
@@ -2441,7 +2446,7 @@ const Je = Ye, se = qe, {
|
|
|
2441
2446
|
}
|
|
2442
2447
|
if (h === ")") {
|
|
2443
2448
|
if (d.parens === 0 && s.strictBrackets === !0)
|
|
2444
|
-
throw new SyntaxError(
|
|
2449
|
+
throw new SyntaxError(ve("opening", "("));
|
|
2445
2450
|
const g = T[T.length - 1];
|
|
2446
2451
|
if (g && d.parens === g.parens + 1) {
|
|
2447
2452
|
Ss(T.pop());
|
|
@@ -2453,7 +2458,7 @@ const Je = Ye, se = qe, {
|
|
|
2453
2458
|
if (h === "[") {
|
|
2454
2459
|
if (s.nobracket === !0 || !ce().includes("]")) {
|
|
2455
2460
|
if (s.nobracket !== !0 && s.strictBrackets === !0)
|
|
2456
|
-
throw new SyntaxError(
|
|
2461
|
+
throw new SyntaxError(ve("closing", "]"));
|
|
2457
2462
|
h = `\\${h}`;
|
|
2458
2463
|
} else
|
|
2459
2464
|
Ne("brackets");
|
|
@@ -2467,7 +2472,7 @@ const Je = Ye, se = qe, {
|
|
|
2467
2472
|
}
|
|
2468
2473
|
if (d.brackets === 0) {
|
|
2469
2474
|
if (s.strictBrackets === !0)
|
|
2470
|
-
throw new SyntaxError(
|
|
2475
|
+
throw new SyntaxError(ve("opening", "["));
|
|
2471
2476
|
L({ type: "text", value: h, output: `\\${h}` });
|
|
2472
2477
|
continue;
|
|
2473
2478
|
}
|
|
@@ -2566,7 +2571,7 @@ const Je = Ye, se = qe, {
|
|
|
2566
2571
|
L({ type: "qmark", value: h, output: A });
|
|
2567
2572
|
continue;
|
|
2568
2573
|
}
|
|
2569
|
-
L({ type: "qmark", value: h, output:
|
|
2574
|
+
L({ type: "qmark", value: h, output: v });
|
|
2570
2575
|
continue;
|
|
2571
2576
|
}
|
|
2572
2577
|
if (h === "!") {
|
|
@@ -2672,17 +2677,17 @@ const Je = Ye, se = qe, {
|
|
|
2672
2677
|
}
|
|
2673
2678
|
for (; d.brackets > 0; ) {
|
|
2674
2679
|
if (s.strictBrackets === !0)
|
|
2675
|
-
throw new SyntaxError(
|
|
2680
|
+
throw new SyntaxError(ve("closing", "]"));
|
|
2676
2681
|
d.output = se.escapeLast(d.output, "["), ye("brackets");
|
|
2677
2682
|
}
|
|
2678
2683
|
for (; d.parens > 0; ) {
|
|
2679
2684
|
if (s.strictBrackets === !0)
|
|
2680
|
-
throw new SyntaxError(
|
|
2685
|
+
throw new SyntaxError(ve("closing", ")"));
|
|
2681
2686
|
d.output = se.escapeLast(d.output, "("), ye("parens");
|
|
2682
2687
|
}
|
|
2683
2688
|
for (; d.braces > 0; ) {
|
|
2684
2689
|
if (s.strictBrackets === !0)
|
|
2685
|
-
throw new SyntaxError(
|
|
2690
|
+
throw new SyntaxError(ve("closing", "}"));
|
|
2686
2691
|
d.output = se.escapeLast(d.output, "{"), ye("braces");
|
|
2687
2692
|
}
|
|
2688
2693
|
if (s.strictSlashes !== !0 && (f.type === "star" || f.type === "bracket") && L({ type: "maybe_slash", value: "", output: `${m}?` }), d.backtrack === !0) {
|
|
@@ -2692,7 +2697,7 @@ const Je = Ye, se = qe, {
|
|
|
2692
2697
|
}
|
|
2693
2698
|
return d;
|
|
2694
2699
|
};
|
|
2695
|
-
|
|
2700
|
+
ws.fastpaths = (t, e) => {
|
|
2696
2701
|
const s = { ...e }, n = typeof s.maxLength == "number" ? Math.min(Ve, s.maxLength) : Ve, i = t.length;
|
|
2697
2702
|
if (i > n)
|
|
2698
2703
|
throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);
|
|
@@ -2708,40 +2713,40 @@ vs.fastpaths = (t, e) => {
|
|
|
2708
2713
|
STAR: m,
|
|
2709
2714
|
START_ANCHOR: _
|
|
2710
2715
|
} = Je.globChars(s.windows), y = s.dot ? c : l, O = s.dot ? p : l, R = s.capture ? "" : "?:", $ = { negated: !1, prefix: "" };
|
|
2711
|
-
let
|
|
2712
|
-
s.capture && (
|
|
2713
|
-
const A = (E) => E.noglobstar === !0 ?
|
|
2716
|
+
let v = s.bash === !0 ? ".*?" : m;
|
|
2717
|
+
s.capture && (v = `(${v})`);
|
|
2718
|
+
const A = (E) => E.noglobstar === !0 ? v : `(${R}(?:(?!${_}${E.dot ? u : o}).)*?)`, C = (E) => {
|
|
2714
2719
|
switch (E) {
|
|
2715
2720
|
case "*":
|
|
2716
|
-
return `${y}${a}${
|
|
2721
|
+
return `${y}${a}${v}`;
|
|
2717
2722
|
case ".*":
|
|
2718
|
-
return `${o}${a}${
|
|
2723
|
+
return `${o}${a}${v}`;
|
|
2719
2724
|
case "*.*":
|
|
2720
|
-
return `${y}${
|
|
2725
|
+
return `${y}${v}${o}${a}${v}`;
|
|
2721
2726
|
case "*/*":
|
|
2722
|
-
return `${y}${
|
|
2727
|
+
return `${y}${v}${r}${a}${O}${v}`;
|
|
2723
2728
|
case "**":
|
|
2724
2729
|
return y + A(s);
|
|
2725
2730
|
case "**/*":
|
|
2726
|
-
return `(?:${y}${A(s)}${r})?${O}${a}${
|
|
2731
|
+
return `(?:${y}${A(s)}${r})?${O}${a}${v}`;
|
|
2727
2732
|
case "**/*.*":
|
|
2728
|
-
return `(?:${y}${A(s)}${r})?${O}${
|
|
2733
|
+
return `(?:${y}${A(s)}${r})?${O}${v}${o}${a}${v}`;
|
|
2729
2734
|
case "**/.*":
|
|
2730
|
-
return `(?:${y}${A(s)}${r})?${o}${a}${
|
|
2735
|
+
return `(?:${y}${A(s)}${r})?${o}${a}${v}`;
|
|
2731
2736
|
default: {
|
|
2732
|
-
const
|
|
2733
|
-
if (!
|
|
2737
|
+
const w = /^(.*?)\.(\w+)$/.exec(E);
|
|
2738
|
+
if (!w)
|
|
2734
2739
|
return;
|
|
2735
|
-
const x = C(
|
|
2736
|
-
return x ? x + o +
|
|
2740
|
+
const x = C(w[1]);
|
|
2741
|
+
return x ? x + o + w[2] : void 0;
|
|
2737
2742
|
}
|
|
2738
2743
|
}
|
|
2739
2744
|
}, S = se.removePrefix(t, $);
|
|
2740
2745
|
let k = C(S);
|
|
2741
2746
|
return k && s.strictSlashes !== !0 && (k += `${r}?`), k;
|
|
2742
2747
|
};
|
|
2743
|
-
var pi =
|
|
2744
|
-
const hi = ai, dt = pi,
|
|
2748
|
+
var pi = ws;
|
|
2749
|
+
const hi = ai, dt = pi, vs = qe, di = Ye, mi = (t) => t && typeof t == "object" && !Array.isArray(t), G = (t, e, s = !1) => {
|
|
2745
2750
|
if (Array.isArray(t)) {
|
|
2746
2751
|
const c = t.map((m) => G(m, e, s));
|
|
2747
2752
|
return (m) => {
|
|
@@ -2774,11 +2779,11 @@ G.test = (t, e, s, { glob: n, posix: i } = {}) => {
|
|
|
2774
2779
|
throw new TypeError("Expected input to be a string");
|
|
2775
2780
|
if (t === "")
|
|
2776
2781
|
return { isMatch: !1, output: "" };
|
|
2777
|
-
const o = s || {}, r = o.format || (i ?
|
|
2782
|
+
const o = s || {}, r = o.format || (i ? vs.toPosixSlashes : null);
|
|
2778
2783
|
let a = t === n, u = a && r ? r(t) : t;
|
|
2779
2784
|
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 };
|
|
2780
2785
|
};
|
|
2781
|
-
G.matchBase = (t, e, s) => (e instanceof RegExp ? e : G.makeRe(e, s)).test(
|
|
2786
|
+
G.matchBase = (t, e, s) => (e instanceof RegExp ? e : G.makeRe(e, s)).test(vs.basename(t));
|
|
2782
2787
|
G.isMatch = (t, e, s) => G(e, s)(t);
|
|
2783
2788
|
G.parse = (t, e) => Array.isArray(t) ? t.map((s) => G.parse(s, e)) : dt(t, { ...e, fastpaths: !1 });
|
|
2784
2789
|
G.scan = (t, e) => hi(t, e);
|
|
@@ -2819,7 +2824,7 @@ const _i = /* @__PURE__ */ mt(gi), Os = yt(fetch), bi = async (t, e) => {
|
|
|
2819
2824
|
retryDelay: 1e3
|
|
2820
2825
|
})).json();
|
|
2821
2826
|
return await ss(i, e || Le);
|
|
2822
|
-
},
|
|
2827
|
+
}, wi = async (t, e) => {
|
|
2823
2828
|
if (t.startsWith("data:") || t.startsWith("https://docs.google.com"))
|
|
2824
2829
|
return;
|
|
2825
2830
|
const s = new URL(t);
|
|
@@ -2844,7 +2849,7 @@ const _i = /* @__PURE__ */ mt(gi), Os = yt(fetch), bi = async (t, e) => {
|
|
|
2844
2849
|
return;
|
|
2845
2850
|
}
|
|
2846
2851
|
}, Ji = (t) => t ? !(t != null && t.inputs && Object.keys(t.inputs).length > 0 || t != null && t.outputs && Object.keys(t.outputs).length > 0 || t != null && t.allow || t != null && t.metadata && Object.keys(t.metadata).length > 0) : !0;
|
|
2847
|
-
class
|
|
2852
|
+
class vi extends Ot.EventEmitter {
|
|
2848
2853
|
constructor(e, s, n, i, o, r = !1) {
|
|
2849
2854
|
if (super(), this.inputs = {}, this.outputs = {}, this._disposables = [], this._rpcListeners = [], this._loaded = !1, this._onLoaded = [], this._sendInputsAfterRegistration = !1, this._cachedEventInputsUpdate = {
|
|
2850
2855
|
iframeId: void 0,
|
|
@@ -2903,7 +2908,7 @@ class wi extends Ot.EventEmitter {
|
|
|
2903
2908
|
if (this._definition)
|
|
2904
2909
|
return this._definition;
|
|
2905
2910
|
try {
|
|
2906
|
-
const s = await
|
|
2911
|
+
const s = await wi(this.url);
|
|
2907
2912
|
if (s)
|
|
2908
2913
|
return this._definition = s, this._definition;
|
|
2909
2914
|
} catch (s) {
|
|
@@ -3195,7 +3200,7 @@ class ee extends Hn {
|
|
|
3195
3200
|
throw this.emitErrorMessage(`Existing metaframe for id=${e}`), `Existing metaframe for id=${e}`;
|
|
3196
3201
|
if (!s.url)
|
|
3197
3202
|
throw this.emitErrorMessage(`Metaframe definition missing url id=${e}`), `Metaframe definition missing url id=${e}`;
|
|
3198
|
-
var n = new
|
|
3203
|
+
var n = new vi(this, s.url, e, this._id, this._consoleBackgroundColor, this.debug).setMetapage(this);
|
|
3199
3204
|
return this._metaframes = M(this._metaframes, (i) => {
|
|
3200
3205
|
i[e] = n;
|
|
3201
3206
|
}), n.addListener(I.Error, (i) => {
|
|
@@ -3498,8 +3503,8 @@ async function Wi(t) {
|
|
|
3498
3503
|
r.debug = o.debug || !1;
|
|
3499
3504
|
try {
|
|
3500
3505
|
await r.setDefinition(JSON.parse(JSON.stringify(s)));
|
|
3501
|
-
} catch (
|
|
3502
|
-
throw r.dispose(), new Error(`Failed to set metapage definition: ${
|
|
3506
|
+
} catch (w) {
|
|
3507
|
+
throw r.dispose(), new Error(`Failed to set metapage definition: ${w}`);
|
|
3503
3508
|
}
|
|
3504
3509
|
const a = [];
|
|
3505
3510
|
n && a.push(r.addListenerReturnDisposer(I.Outputs, n));
|
|
@@ -3510,17 +3515,17 @@ async function Wi(t) {
|
|
|
3510
3515
|
if (c.length === 0)
|
|
3511
3516
|
return {
|
|
3512
3517
|
metapage: r,
|
|
3513
|
-
setInputs: (
|
|
3514
|
-
r.isDisposed() || r.setInputs(
|
|
3518
|
+
setInputs: (w) => {
|
|
3519
|
+
r.isDisposed() || r.setInputs(w);
|
|
3515
3520
|
},
|
|
3516
|
-
setOutputs: (
|
|
3517
|
-
r.isDisposed() || r.setOutputs(
|
|
3521
|
+
setOutputs: (w) => {
|
|
3522
|
+
r.isDisposed() || r.setOutputs(w);
|
|
3518
3523
|
},
|
|
3519
3524
|
dispose: () => {
|
|
3520
|
-
a.forEach((
|
|
3525
|
+
a.forEach((w) => w()), r.dispose();
|
|
3521
3526
|
}
|
|
3522
3527
|
};
|
|
3523
|
-
c.sort((
|
|
3528
|
+
c.sort((w, x) => w.y !== x.y ? w.y - x.y : w.x - x.x);
|
|
3524
3529
|
const _ = {
|
|
3525
3530
|
display: "grid",
|
|
3526
3531
|
gridTemplateColumns: "repeat(1, 1fr)",
|
|
@@ -3545,11 +3550,11 @@ async function Wi(t) {
|
|
|
3545
3550
|
const R = document.createElement("div");
|
|
3546
3551
|
Object.assign(R.style, _);
|
|
3547
3552
|
const $ = [];
|
|
3548
|
-
for (const
|
|
3549
|
-
const x = l.find((f) => f.i ===
|
|
3553
|
+
for (const w of m) {
|
|
3554
|
+
const x = l.find((f) => f.i === w);
|
|
3550
3555
|
if (!x)
|
|
3551
3556
|
continue;
|
|
3552
|
-
const d = r.getMetaframes()[
|
|
3557
|
+
const d = r.getMetaframes()[w], T = await d.iframe;
|
|
3553
3558
|
if (!d)
|
|
3554
3559
|
continue;
|
|
3555
3560
|
$.push(x);
|
|
@@ -3566,29 +3571,29 @@ async function Wi(t) {
|
|
|
3566
3571
|
}, Z = document.createElement("div");
|
|
3567
3572
|
Object.assign(Z.style, H), Z.appendChild(T), R.appendChild(Z);
|
|
3568
3573
|
}
|
|
3569
|
-
const
|
|
3570
|
-
Math.max(...$.map((
|
|
3574
|
+
const v = Math.max(...$.map((w) => w.x + w.w));
|
|
3575
|
+
Math.max(...$.map((w) => w.y + w.h)), R.style.gridTemplateColumns = `repeat(${Math.max(1, v)}, 1fr)`;
|
|
3571
3576
|
const A = document.createElement("div");
|
|
3572
3577
|
A.style.position = "absolute", A.style.top = "-9999px", A.style.left = "-9999px", A.style.width = "1px", A.style.height = "1px", A.style.overflow = "hidden", A.style.pointerEvents = "none";
|
|
3573
|
-
for (const
|
|
3574
|
-
const x = r.getMetaframes()[
|
|
3578
|
+
for (const w of Object.keys(r.getMetaframes()).filter((x) => p.has(x))) {
|
|
3579
|
+
const x = r.getMetaframes()[w];
|
|
3575
3580
|
if (!x)
|
|
3576
3581
|
continue;
|
|
3577
3582
|
const d = document.createElement("div");
|
|
3578
|
-
d.setAttribute("data-metaframe-id",
|
|
3583
|
+
d.setAttribute("data-metaframe-id", w), d.style.width = "100px", d.style.height = "100px";
|
|
3579
3584
|
let T;
|
|
3580
3585
|
x.iframe ? T = await x.iframe : (T = document.createElement("iframe"), T.src = x.url, T.style.border = "none", T.style.width = "100%", T.style.height = "100%"), d.appendChild(T), A.appendChild(d);
|
|
3581
3586
|
}
|
|
3582
3587
|
return O.appendChild(R), O.appendChild(A), i.appendChild(O), {
|
|
3583
3588
|
metapage: r,
|
|
3584
|
-
setInputs: (
|
|
3585
|
-
r.isDisposed() || r.setInputs(
|
|
3589
|
+
setInputs: (w) => {
|
|
3590
|
+
r.isDisposed() || r.setInputs(w);
|
|
3586
3591
|
},
|
|
3587
|
-
setOutputs: (
|
|
3588
|
-
r.isDisposed() || r.setOutputs(
|
|
3592
|
+
setOutputs: (w) => {
|
|
3593
|
+
r.isDisposed() || r.setOutputs(w);
|
|
3589
3594
|
},
|
|
3590
3595
|
dispose: () => {
|
|
3591
|
-
a.forEach((
|
|
3596
|
+
a.forEach((w) => w()), r.dispose(), O.parentNode && O.parentNode.removeChild(O);
|
|
3592
3597
|
}
|
|
3593
3598
|
};
|
|
3594
3599
|
}
|
|
@@ -3649,7 +3654,7 @@ export {
|
|
|
3649
3654
|
ee as Metapage,
|
|
3650
3655
|
I as MetapageEvents,
|
|
3651
3656
|
xe as MetapageHashParams,
|
|
3652
|
-
|
|
3657
|
+
vi as MetapageIFrameRpcClient,
|
|
3653
3658
|
Hn as MetapageShared,
|
|
3654
3659
|
Le as MetapageVersionCurrent,
|
|
3655
3660
|
$t as MetapageVersionsAll,
|
|
@@ -3669,7 +3674,7 @@ export {
|
|
|
3669
3674
|
Vi as getLibraryVersionMatching,
|
|
3670
3675
|
te as getMatchingMetaframeVersion,
|
|
3671
3676
|
he as getMatchingMetapageVersion,
|
|
3672
|
-
|
|
3677
|
+
wi as getMetaframeDefinitionFromUrl,
|
|
3673
3678
|
bi as getMetapageDefinitionFromUrl,
|
|
3674
3679
|
ji as getUrlParam,
|
|
3675
3680
|
Ui as getUrlParamDebug,
|