@metapages/metapage 1.8.29 → 1.8.35
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
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(w) {
|
|
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(_(w, null, C)).then(function(S) {
|
|
85
|
+
S ? $(w, null, C) : y(C);
|
|
86
86
|
}).catch(O);
|
|
87
87
|
} catch (S) {
|
|
88
88
|
O(S);
|
|
89
89
|
}
|
|
90
90
|
else
|
|
91
|
-
|
|
91
|
+
w < p ? $(w, 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(_(w, C, null)).then(function(S) {
|
|
96
|
+
S ? $(w, 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
|
+
w < p ? $(w, C, null) : O(C);
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
|
-
function $(
|
|
108
|
-
var S = typeof m == "function" ? m(
|
|
107
|
+
function $(w, A, C) {
|
|
108
|
+
var S = typeof m == "function" ? m(w, A, C) : m;
|
|
109
109
|
setTimeout(function() {
|
|
110
|
-
R(++
|
|
110
|
+
R(++w);
|
|
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 ve(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 ve(t) === 2 ? t.get(e) : t[e];
|
|
195
195
|
}
|
|
196
196
|
function Pe(t, e, s) {
|
|
197
|
-
|
|
197
|
+
ve(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(ve(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;
|
|
@@ -290,7 +290,7 @@ function ue(t) {
|
|
|
290
290
|
var e;
|
|
291
291
|
t.assignedMap = (e = t.assignedMap) !== null && e !== void 0 ? e : /* @__PURE__ */ new Map(), t.operated || (t.operated = !0, t.parent && ue(t.parent));
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function kt() {
|
|
294
294
|
throw new Error("Cannot modify frozen object");
|
|
295
295
|
}
|
|
296
296
|
function Oe(t, e, s, n, i) {
|
|
@@ -314,16 +314,16 @@ function Oe(t, e, s, n, i) {
|
|
|
314
314
|
n.pop(), i.pop();
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
|
-
switch (
|
|
317
|
+
switch (ve(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);
|
|
321
|
-
t.set = t.clear = t.delete =
|
|
321
|
+
t.set = t.clear = t.delete = kt;
|
|
322
322
|
break;
|
|
323
323
|
case 3:
|
|
324
324
|
for (const a of t)
|
|
325
325
|
Oe(a, a, s, n, i);
|
|
326
|
-
t.add = t.clear = t.delete =
|
|
326
|
+
t.add = t.clear = t.delete = kt;
|
|
327
327
|
break;
|
|
328
328
|
case 1:
|
|
329
329
|
Object.freeze(t);
|
|
@@ -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 = ve(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 vt(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;
|
|
@@ -404,7 +404,7 @@ function wt(t, e, s, n) {
|
|
|
404
404
|
fe(pe(o, e), s) && Ds(t, e);
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function ks(t, e, s, n, i) {
|
|
408
408
|
let { original: o, assignedMap: r, options: a } = t, u = t.copy;
|
|
409
409
|
u.length < o.length && ([o, u] = [u, o], [s, n] = [n, s]);
|
|
410
410
|
for (let l = 0; l < o.length; l += 1)
|
|
@@ -450,7 +450,7 @@ function Ns(t, e, s, n, i) {
|
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ns({ original: t, copy: e, assignedMap: s }, n, i, o, r) {
|
|
454
454
|
s.forEach((a, u) => {
|
|
455
455
|
const l = pe(t, u), c = Fe(pe(e, u)), p = a ? Ie(t, u) ? z.Replace : z.Add : z.Remove;
|
|
456
456
|
if (fe(l, c) && p === z.Replace)
|
|
@@ -496,9 +496,9 @@ function $e(t, e, s, n) {
|
|
|
496
496
|
switch (t.type) {
|
|
497
497
|
case 0:
|
|
498
498
|
case 2:
|
|
499
|
-
return ks(t, e, s, n, i);
|
|
500
|
-
case 1:
|
|
501
499
|
return Ns(t, e, s, n, i);
|
|
500
|
+
case 1:
|
|
501
|
+
return ks(t, e, s, n, i);
|
|
502
502
|
case 3:
|
|
503
503
|
return Hs(t, e, s, n, i);
|
|
504
504
|
}
|
|
@@ -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), vt(s, t, e, $e)), this;
|
|
520
520
|
},
|
|
521
521
|
delete(t) {
|
|
522
522
|
if (!this.has(t))
|
|
@@ -588,7 +588,7 @@ const ze = (t, e, s = !1) => {
|
|
|
588
588
|
[Be]() {
|
|
589
589
|
return this.entries();
|
|
590
590
|
}
|
|
591
|
-
}, Us = Reflect.ownKeys(ct),
|
|
591
|
+
}, Us = Reflect.ownKeys(ct), Nt = (t, e, { isValuesIterator: s }) => () => {
|
|
592
592
|
var n, i;
|
|
593
593
|
const o = e.next();
|
|
594
594
|
if (o.done)
|
|
@@ -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), vt(e, t, t, $e)), this;
|
|
629
629
|
},
|
|
630
630
|
delete(t) {
|
|
631
631
|
if (!this.has(t))
|
|
@@ -650,7 +650,7 @@ const ze = (t, e, s = !1) => {
|
|
|
650
650
|
const e = t.setMap.keys();
|
|
651
651
|
return {
|
|
652
652
|
[Symbol.iterator]: () => this.values(),
|
|
653
|
-
next:
|
|
653
|
+
next: Nt(t, e, { isValuesIterator: !0 })
|
|
654
654
|
};
|
|
655
655
|
},
|
|
656
656
|
entries() {
|
|
@@ -659,7 +659,7 @@ const ze = (t, e, s = !1) => {
|
|
|
659
659
|
const e = t.setMap.keys();
|
|
660
660
|
return {
|
|
661
661
|
[Symbol.iterator]: () => this.entries(),
|
|
662
|
-
next:
|
|
662
|
+
next: Nt(t, e, {
|
|
663
663
|
isValuesIterator: !1
|
|
664
664
|
})
|
|
665
665
|
};
|
|
@@ -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] = wt({
|
|
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, vt(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 wt(t) {
|
|
776
|
+
const { original: e, parentDraft: s, key: n, finalities: i, options: o } = t, r = ve(e), a = {
|
|
777
777
|
type: r,
|
|
778
778
|
finalized: !1,
|
|
779
779
|
parent: s,
|
|
@@ -793,10 +793,10 @@ function vt(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), w = P($);
|
|
797
|
+
if (w) {
|
|
798
|
+
let A = w.original;
|
|
799
|
+
w.operated && (A = _t($)), at(w), ut(w, $e, p, m), c.options.enableAutoFreeze && (c.options.updatedValues = (_ = c.options.updatedValues) !== null && _ !== void 0 ? _ : /* @__PURE__ */ new WeakMap(), c.options.updatedValues.set(A, w.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 vt(t) {
|
|
|
810
810
|
}
|
|
811
811
|
return u;
|
|
812
812
|
}
|
|
813
|
-
gt.createDraft =
|
|
813
|
+
gt.createDraft = wt;
|
|
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 : wt({
|
|
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 = ve(t);
|
|
871
871
|
if (e && !e.operated)
|
|
872
872
|
return e.original;
|
|
873
873
|
let n;
|
|
@@ -901,21 +901,21 @@ const Gs = (t) => {
|
|
|
901
901
|
return function e(s, n, i) {
|
|
902
902
|
var o, r, a;
|
|
903
903
|
if (typeof s == "function" && typeof n != "function")
|
|
904
|
-
return function(S, ...
|
|
905
|
-
return e(S, (E) => s.call(this, E, ...
|
|
904
|
+
return function(S, ...N) {
|
|
905
|
+
return e(S, (E) => s.call(this, E, ...N), n);
|
|
906
906
|
};
|
|
907
907
|
const u = s, l = n;
|
|
908
908
|
let c = i;
|
|
909
909
|
if (typeof n != "function" && (c = n), c !== void 0 && Object.prototype.toString.call(c) !== "[object Object]")
|
|
910
910
|
throw new Error(`Invalid options: ${c}, 'options' should be an object.`);
|
|
911
911
|
c = Object.assign(Object.assign({}, t), c);
|
|
912
|
-
const p = be(u) ? Ht(u) : u, m = Array.isArray(c.mark) ? (S,
|
|
912
|
+
const p = be(u) ? Ht(u) : u, m = Array.isArray(c.mark) ? (S, N) => {
|
|
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 v = E(S, N);
|
|
917
|
+
if (v)
|
|
918
|
+
return v;
|
|
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 [$, w] = 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 [$, w];
|
|
933
933
|
}
|
|
934
934
|
let A;
|
|
935
935
|
try {
|
|
@@ -938,31 +938,31 @@ const Gs = (t) => {
|
|
|
938
938
|
throw ot(P($)), S;
|
|
939
939
|
}
|
|
940
940
|
const C = (S) => {
|
|
941
|
-
const
|
|
941
|
+
const N = P($);
|
|
942
942
|
if (!be(S)) {
|
|
943
|
-
if (S !== void 0 && !fe(S, $) && (
|
|
943
|
+
if (S !== void 0 && !fe(S, $) && (N != null && N.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 v = S == null ? void 0 : S[xs];
|
|
946
|
+
if (v) {
|
|
947
|
+
const x = v[0];
|
|
948
948
|
return R.strict && typeof S == "object" && S !== null && ft({
|
|
949
|
-
rootDraft:
|
|
949
|
+
rootDraft: N,
|
|
950
950
|
value: S,
|
|
951
951
|
useRawReturn: !0
|
|
952
|
-
}),
|
|
952
|
+
}), w([x]);
|
|
953
953
|
}
|
|
954
954
|
if (S !== void 0)
|
|
955
|
-
return typeof S == "object" && S !== null && ft({ rootDraft:
|
|
955
|
+
return typeof S == "object" && S !== null && ft({ rootDraft: N, value: S }), w([S]);
|
|
956
956
|
}
|
|
957
957
|
if (S === $ || S === void 0)
|
|
958
|
-
return
|
|
958
|
+
return w([]);
|
|
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 w([Ht(S)]);
|
|
964
964
|
}
|
|
965
|
-
return
|
|
965
|
+
return w([S]);
|
|
966
966
|
};
|
|
967
967
|
return A instanceof Promise ? A.then(C, (S) => {
|
|
968
968
|
throw ot(P($)), S;
|
|
@@ -1345,7 +1345,7 @@ var me;
|
|
|
1345
1345
|
(function(t) {
|
|
1346
1346
|
t.InputsUpdate = "InputsUpdate", t.MessageAck = "MessageAck", t.SetupIframeServerResponse = "SetupIframeServerResponse";
|
|
1347
1347
|
})(me || (me = {}));
|
|
1348
|
-
const Pi = -32700, Ti = -32600, Di = -32601,
|
|
1348
|
+
const Pi = -32700, Ti = -32600, Di = -32601, ki = -32602, Ni = -32603;
|
|
1349
1349
|
function Hi(t) {
|
|
1350
1350
|
switch (typeof t) {
|
|
1351
1351
|
case "string":
|
|
@@ -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, w, 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, w = new Array($ - 1); A < $; A++)
|
|
1422
|
+
w[A - 1] = arguments[A];
|
|
1423
|
+
R.fn.apply(R.context, w);
|
|
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 (!w)
|
|
1442
|
+
for (S = 1, w = new Array($ - 1); S < $; S++)
|
|
1443
|
+
w[S - 1] = arguments[S];
|
|
1444
|
+
R[A].fn.apply(R[A].context, w);
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
1447
|
return !0;
|
|
@@ -1551,7 +1551,7 @@ const gn = /* @__PURE__ */ mn(yn), _n = (t) => os(gn(t)), bn = (t) => {
|
|
|
1551
1551
|
}, Te = (t, e) => {
|
|
1552
1552
|
const [s, n] = us(t);
|
|
1553
1553
|
return n[e];
|
|
1554
|
-
},
|
|
1554
|
+
}, vn = (t) => wn()[1][t], wn = () => us(window.location.href), Se = (t, e, s) => {
|
|
1555
1555
|
const n = window.location.hash.startsWith("#") ? window.location.hash.substring(1) : window.location.hash, i = On(n, t, e);
|
|
1556
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"))));
|
|
1557
1557
|
}, On = (t, e, s) => {
|
|
@@ -1592,7 +1592,7 @@ const gn = /* @__PURE__ */ mn(yn), _n = (t) => os(gn(t)), bn = (t) => {
|
|
|
1592
1592
|
const n = e == null ? void 0 : os(e);
|
|
1593
1593
|
Se(t, n, s);
|
|
1594
1594
|
}, Dn = (t) => Pn(window.location.href, t);
|
|
1595
|
-
var
|
|
1595
|
+
var kn = function(t, e) {
|
|
1596
1596
|
e || (e = {}), typeof e == "function" && (e = { cmp: e });
|
|
1597
1597
|
var s = typeof e.cycles == "boolean" ? e.cycles : !1, n = e.cmp && function(o) {
|
|
1598
1598
|
return function(r) {
|
|
@@ -1630,12 +1630,12 @@ var Nn = function(t, e) {
|
|
|
1630
1630
|
}
|
|
1631
1631
|
}(t);
|
|
1632
1632
|
};
|
|
1633
|
-
const fs = /* @__PURE__ */ mt(
|
|
1633
|
+
const fs = /* @__PURE__ */ mt(kn);
|
|
1634
1634
|
var xe;
|
|
1635
1635
|
(function(t) {
|
|
1636
1636
|
t.mp_debug = "mp_debug";
|
|
1637
1637
|
})(xe || (xe = {}));
|
|
1638
|
-
const
|
|
1638
|
+
const Nn = () => {
|
|
1639
1639
|
try {
|
|
1640
1640
|
return window !== window.top;
|
|
1641
1641
|
} catch {
|
|
@@ -1718,7 +1718,7 @@ var F;
|
|
|
1718
1718
|
})(F || (F = {}));
|
|
1719
1719
|
class ie extends Ot.EventEmitter {
|
|
1720
1720
|
constructor(e) {
|
|
1721
|
-
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 =
|
|
1721
|
+
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 = Nn(), 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) {
|
|
1722
1722
|
this.log("Not an iframe, metaframe code disabled");
|
|
1723
1723
|
return;
|
|
1724
1724
|
}
|
|
@@ -1883,7 +1883,7 @@ class ie extends Ot.EventEmitter {
|
|
|
1883
1883
|
Se(e, s);
|
|
1884
1884
|
}
|
|
1885
1885
|
getParameter(e) {
|
|
1886
|
-
return
|
|
1886
|
+
return vn(e);
|
|
1887
1887
|
}
|
|
1888
1888
|
setParameterBoolean(e, s) {
|
|
1889
1889
|
xn(e, s);
|
|
@@ -2156,19 +2156,19 @@ const Bt = qe, {
|
|
|
2156
2156
|
t.isPrefix !== !0 && (t.depth = t.isGlobstar ? 1 / 0 : 1);
|
|
2157
2157
|
}, oi = (t, e) => {
|
|
2158
2158
|
const s = e || {}, n = t.length - 1, i = s.parts === !0 || s.scanToEnd === !0, o = [], r = [], a = [];
|
|
2159
|
-
let u = t, l = -1, c = 0, p = 0, m = !1, _ = !1, y = !1, O = !1, R = !1, $ = !1,
|
|
2160
|
-
const x = () => l >= n, d = () => u.charCodeAt(l + 1), T = () => (
|
|
2159
|
+
let u = t, l = -1, c = 0, p = 0, m = !1, _ = !1, y = !1, O = !1, R = !1, $ = !1, w = !1, A = !1, C = !1, S = 0, N, E, v = { value: "", depth: 0, isGlob: !1 };
|
|
2160
|
+
const x = () => l >= n, d = () => u.charCodeAt(l + 1), T = () => (N = E, u.charCodeAt(++l));
|
|
2161
2161
|
for (; l < n; ) {
|
|
2162
2162
|
E = T();
|
|
2163
2163
|
let V;
|
|
2164
2164
|
if (E === Me) {
|
|
2165
|
-
|
|
2165
|
+
w = v.backslashes = !0, E = T(), E === it && ($ = !0);
|
|
2166
2166
|
continue;
|
|
2167
2167
|
}
|
|
2168
2168
|
if ($ === !0 || E === it) {
|
|
2169
2169
|
for (S++; x() !== !0 && (E = T()); ) {
|
|
2170
2170
|
if (E === Me) {
|
|
2171
|
-
|
|
2171
|
+
w = v.backslashes = !0, T();
|
|
2172
2172
|
continue;
|
|
2173
2173
|
}
|
|
2174
2174
|
if (E === it) {
|
|
@@ -2176,17 +2176,17 @@ const Bt = qe, {
|
|
|
2176
2176
|
continue;
|
|
2177
2177
|
}
|
|
2178
2178
|
if ($ !== !0 && E === nt && (E = T()) === nt) {
|
|
2179
|
-
if (m =
|
|
2179
|
+
if (m = v.isBrace = !0, y = v.isGlob = !0, C = !0, i === !0)
|
|
2180
2180
|
continue;
|
|
2181
2181
|
break;
|
|
2182
2182
|
}
|
|
2183
2183
|
if ($ !== !0 && E === ti) {
|
|
2184
|
-
if (m =
|
|
2184
|
+
if (m = v.isBrace = !0, y = v.isGlob = !0, C = !0, i === !0)
|
|
2185
2185
|
continue;
|
|
2186
2186
|
break;
|
|
2187
2187
|
}
|
|
2188
2188
|
if (E === ii && (S--, S === 0)) {
|
|
2189
|
-
$ = !1, m =
|
|
2189
|
+
$ = !1, m = v.isBrace = !0, C = !0;
|
|
2190
2190
|
break;
|
|
2191
2191
|
}
|
|
2192
2192
|
}
|
|
@@ -2195,9 +2195,9 @@ const Bt = qe, {
|
|
|
2195
2195
|
break;
|
|
2196
2196
|
}
|
|
2197
2197
|
if (E === _s) {
|
|
2198
|
-
if (o.push(l), r.push(
|
|
2198
|
+
if (o.push(l), r.push(v), v = { value: "", depth: 0, isGlob: !1 }, C === !0)
|
|
2199
2199
|
continue;
|
|
2200
|
-
if (
|
|
2200
|
+
if (N === nt && l === c + 1) {
|
|
2201
2201
|
c += 2;
|
|
2202
2202
|
continue;
|
|
2203
2203
|
}
|
|
@@ -2205,14 +2205,14 @@ const Bt = qe, {
|
|
|
2205
2205
|
continue;
|
|
2206
2206
|
}
|
|
2207
2207
|
if (s.noext !== !0 && (E === ni || E === ei || E === st || E === zt || E === Ft) === !0 && d() === rt) {
|
|
2208
|
-
if (y =
|
|
2208
|
+
if (y = v.isGlob = !0, O = v.isExtglob = !0, C = !0, i === !0) {
|
|
2209
2209
|
for (; x() !== !0 && (E = T()); ) {
|
|
2210
2210
|
if (E === Me) {
|
|
2211
|
-
|
|
2211
|
+
w = v.backslashes = !0, E = T();
|
|
2212
2212
|
continue;
|
|
2213
2213
|
}
|
|
2214
2214
|
if (E === Gt) {
|
|
2215
|
-
y =
|
|
2215
|
+
y = v.isGlob = !0, C = !0;
|
|
2216
2216
|
break;
|
|
2217
2217
|
}
|
|
2218
2218
|
}
|
|
@@ -2221,36 +2221,36 @@ const Bt = qe, {
|
|
|
2221
2221
|
break;
|
|
2222
2222
|
}
|
|
2223
2223
|
if (E === st) {
|
|
2224
|
-
if (
|
|
2224
|
+
if (N === st && (R = v.isGlobstar = !0), y = v.isGlob = !0, C = !0, i === !0)
|
|
2225
2225
|
continue;
|
|
2226
2226
|
break;
|
|
2227
2227
|
}
|
|
2228
2228
|
if (E === zt) {
|
|
2229
|
-
if (y =
|
|
2229
|
+
if (y = v.isGlob = !0, C = !0, i === !0)
|
|
2230
2230
|
continue;
|
|
2231
2231
|
break;
|
|
2232
2232
|
}
|
|
2233
2233
|
if (E === si)
|
|
2234
2234
|
for (; x() !== !0 && (V = T()); ) {
|
|
2235
2235
|
if (V === Me) {
|
|
2236
|
-
|
|
2236
|
+
w = v.backslashes = !0, T();
|
|
2237
2237
|
continue;
|
|
2238
2238
|
}
|
|
2239
2239
|
if (V === ri) {
|
|
2240
|
-
if (_ =
|
|
2240
|
+
if (_ = v.isBracket = !0, y = v.isGlob = !0, C = !0, i === !0)
|
|
2241
2241
|
continue;
|
|
2242
2242
|
break;
|
|
2243
2243
|
}
|
|
2244
2244
|
}
|
|
2245
2245
|
if (s.nonegate !== !0 && E === Ft && l === c) {
|
|
2246
|
-
A =
|
|
2246
|
+
A = v.negated = !0, c++;
|
|
2247
2247
|
continue;
|
|
2248
2248
|
}
|
|
2249
2249
|
if (s.noparen !== !0 && E === rt) {
|
|
2250
|
-
if (y =
|
|
2250
|
+
if (y = v.isGlob = !0, i === !0) {
|
|
2251
2251
|
for (; x() !== !0 && (E = T()); ) {
|
|
2252
2252
|
if (E === rt) {
|
|
2253
|
-
|
|
2253
|
+
w = v.backslashes = !0, E = T();
|
|
2254
2254
|
continue;
|
|
2255
2255
|
}
|
|
2256
2256
|
if (E === Gt) {
|
|
@@ -2270,7 +2270,7 @@ const Bt = qe, {
|
|
|
2270
2270
|
}
|
|
2271
2271
|
s.noext === !0 && (O = !1, y = !1);
|
|
2272
2272
|
let H = u, Z = "", f = "";
|
|
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 &&
|
|
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 && w === !0 && (H = Bt.removeBackslashes(H)));
|
|
2274
2274
|
const h = {
|
|
2275
2275
|
prefix: Z,
|
|
2276
2276
|
input: t,
|
|
@@ -2284,15 +2284,15 @@ const Bt = qe, {
|
|
|
2284
2284
|
isGlobstar: R,
|
|
2285
2285
|
negated: A
|
|
2286
2286
|
};
|
|
2287
|
-
if (s.tokens === !0 && (h.maxDepth = 0, Jt(E) || r.push(
|
|
2287
|
+
if (s.tokens === !0 && (h.maxDepth = 0, Jt(E) || r.push(v), h.tokens = r), s.parts === !0 || s.tokens === !0) {
|
|
2288
2288
|
let V;
|
|
2289
|
-
for (let
|
|
2290
|
-
const re = V ? V + 1 : c, ce = o[
|
|
2291
|
-
s.tokens && (
|
|
2289
|
+
for (let k = 0; k < o.length; k++) {
|
|
2290
|
+
const re = V ? V + 1 : c, ce = o[k], q = t.slice(re, ce);
|
|
2291
|
+
s.tokens && (k === 0 && c !== 0 ? (r[k].isPrefix = !0, r[k].value = Z) : r[k].value = q, Vt(r[k]), h.maxDepth += r[k].depth), (k !== 0 || q !== "") && a.push(q), V = ce;
|
|
2292
2292
|
}
|
|
2293
2293
|
if (V && V + 1 < t.length) {
|
|
2294
|
-
const
|
|
2295
|
-
a.push(
|
|
2294
|
+
const k = t.slice(V + 1);
|
|
2295
|
+
a.push(k), s.tokens && (r[r.length - 1].value = k, Vt(r[r.length - 1]), h.maxDepth += r[r.length - 1].depth);
|
|
2296
2296
|
}
|
|
2297
2297
|
h.slashes = o, h.parts = a;
|
|
2298
2298
|
}
|
|
@@ -2316,7 +2316,7 @@ const Je = Ye, se = qe, {
|
|
|
2316
2316
|
return t.map((i) => se.escapeRegex(i)).join("..");
|
|
2317
2317
|
}
|
|
2318
2318
|
return s;
|
|
2319
|
-
},
|
|
2319
|
+
}, we = (t, e) => `Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`, vs = (t, e) => {
|
|
2320
2320
|
if (typeof t != "string")
|
|
2321
2321
|
throw new TypeError("Expected a string");
|
|
2322
2322
|
t = bs[t] || t;
|
|
@@ -2333,12 +2333,12 @@ const Je = Ye, se = qe, {
|
|
|
2333
2333
|
NO_DOT: O,
|
|
2334
2334
|
NO_DOT_SLASH: R,
|
|
2335
2335
|
NO_DOTS_SLASH: $,
|
|
2336
|
-
QMARK:
|
|
2336
|
+
QMARK: w,
|
|
2337
2337
|
QMARK_NO_DOT: A,
|
|
2338
2338
|
STAR: C,
|
|
2339
2339
|
START_ANCHOR: S
|
|
2340
|
-
} = u,
|
|
2341
|
-
let x = s.bash === !0 ?
|
|
2340
|
+
} = u, N = (b) => `(${a}(?:(?!${S}${b.dot ? y : c}).)*?)`, E = s.dot ? "" : O, v = s.dot ? w : A;
|
|
2341
|
+
let x = s.bash === !0 ? N(s) : C;
|
|
2342
2342
|
s.capture && (x = `(${x})`), typeof s.noext == "boolean" && (s.noextglob = s.noext);
|
|
2343
2343
|
const d = {
|
|
2344
2344
|
input: t,
|
|
@@ -2360,16 +2360,16 @@ const Je = Ye, se = qe, {
|
|
|
2360
2360
|
t = se.removePrefix(t, d), i = t.length;
|
|
2361
2361
|
const T = [], H = [], Z = [];
|
|
2362
2362
|
let f = o, h;
|
|
2363
|
-
const V = () => d.index === i - 1,
|
|
2363
|
+
const V = () => d.index === i - 1, k = d.peek = (b = 1) => t[d.index + b], re = d.advance = () => t[++d.index], ce = () => t.slice(d.index + 1), q = (b = "", j = 0) => {
|
|
2364
2364
|
d.consumed += b, d.index += j;
|
|
2365
2365
|
}, De = (b) => {
|
|
2366
2366
|
d.output += b.output != null ? b.output : b.value, q(b.value);
|
|
2367
2367
|
}, Rs = () => {
|
|
2368
2368
|
let b = 1;
|
|
2369
|
-
for (;
|
|
2369
|
+
for (; k() === "!" && (k(2) !== "(" || k(3) === "?"); )
|
|
2370
2370
|
re(), d.start++, b++;
|
|
2371
2371
|
return b % 2 === 0 ? !1 : (d.negated = !0, d.start++, !0);
|
|
2372
|
-
},
|
|
2372
|
+
}, ke = (b) => {
|
|
2373
2373
|
d[b]++, Z.push(b);
|
|
2374
2374
|
}, ye = (b) => {
|
|
2375
2375
|
d[b]--, Z.pop();
|
|
@@ -2383,28 +2383,28 @@ const Je = Ye, se = qe, {
|
|
|
2383
2383
|
return;
|
|
2384
2384
|
}
|
|
2385
2385
|
b.prev = f, r.push(b), f = b;
|
|
2386
|
-
},
|
|
2386
|
+
}, Ne = (b, j) => {
|
|
2387
2387
|
const g = { ...l[j], conditions: 1, inner: "" };
|
|
2388
2388
|
g.prev = f, g.parens = d.parens, g.output = d.output;
|
|
2389
2389
|
const D = (s.capture ? "(" : "") + g.open;
|
|
2390
|
-
|
|
2390
|
+
ke("parens"), L({ type: b, value: j, output: d.output ? "" : _ }), L({ type: "paren", extglob: !0, value: re(), output: D }), T.push(g);
|
|
2391
2391
|
}, Ss = (b) => {
|
|
2392
2392
|
let j = b.close + (s.capture ? ")" : "");
|
|
2393
2393
|
if (b.type === "negate") {
|
|
2394
2394
|
let g = x;
|
|
2395
|
-
b.inner && b.inner.length > 1 && b.inner.includes("/") && (g =
|
|
2395
|
+
b.inner && b.inner.length > 1 && b.inner.includes("/") && (g = N(s)), (g !== x || V() || /^\)+$/.test(ce())) && (j = b.close = `)$))${g}`), b.prev.type === "bos" && V() && (d.negatedExtglob = !0);
|
|
2396
2396
|
}
|
|
2397
2397
|
L({ type: "paren", extglob: !0, value: h, output: j }), ye("parens");
|
|
2398
2398
|
};
|
|
2399
2399
|
if (s.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(t)) {
|
|
2400
|
-
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 ? w.repeat(J.length) : "") : Ze === 0 ? v + (J ? w.repeat(J.length) : "") : w.repeat(B.length) : W === "." ? c.repeat(B.length) : W === "*" ? D ? D + W + (J ? x : "") : x : D ? g : `\\${g}`);
|
|
2401
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);
|
|
2402
2402
|
}
|
|
2403
2403
|
for (; !V(); ) {
|
|
2404
2404
|
if (h = re(), h === "\0")
|
|
2405
2405
|
continue;
|
|
2406
2406
|
if (h === "\\") {
|
|
2407
|
-
const g =
|
|
2407
|
+
const g = k();
|
|
2408
2408
|
if (g === "/" && s.bash !== !0 || g === "." || g === ";")
|
|
2409
2409
|
continue;
|
|
2410
2410
|
if (!g) {
|
|
@@ -2429,7 +2429,7 @@ const Je = Ye, se = qe, {
|
|
|
2429
2429
|
}
|
|
2430
2430
|
}
|
|
2431
2431
|
}
|
|
2432
|
-
(h === "[" &&
|
|
2432
|
+
(h === "[" && k() !== ":" || h === "-" && k() === "]") && (h = `\\${h}`), h === "]" && (f.value === "[" || f.value === "[^") && (h = `\\${h}`), s.posix === !0 && h === "!" && f.value === "[" && (h = "^"), f.value += h, De({ value: h });
|
|
2433
2433
|
continue;
|
|
2434
2434
|
}
|
|
2435
2435
|
if (d.quotes === 1 && h !== '"') {
|
|
@@ -2441,12 +2441,12 @@ const Je = Ye, se = qe, {
|
|
|
2441
2441
|
continue;
|
|
2442
2442
|
}
|
|
2443
2443
|
if (h === "(") {
|
|
2444
|
-
|
|
2444
|
+
ke("parens"), L({ type: "paren", value: h });
|
|
2445
2445
|
continue;
|
|
2446
2446
|
}
|
|
2447
2447
|
if (h === ")") {
|
|
2448
2448
|
if (d.parens === 0 && s.strictBrackets === !0)
|
|
2449
|
-
throw new SyntaxError(
|
|
2449
|
+
throw new SyntaxError(we("opening", "("));
|
|
2450
2450
|
const g = T[T.length - 1];
|
|
2451
2451
|
if (g && d.parens === g.parens + 1) {
|
|
2452
2452
|
Ss(T.pop());
|
|
@@ -2458,10 +2458,10 @@ const Je = Ye, se = qe, {
|
|
|
2458
2458
|
if (h === "[") {
|
|
2459
2459
|
if (s.nobracket === !0 || !ce().includes("]")) {
|
|
2460
2460
|
if (s.nobracket !== !0 && s.strictBrackets === !0)
|
|
2461
|
-
throw new SyntaxError(
|
|
2461
|
+
throw new SyntaxError(we("closing", "]"));
|
|
2462
2462
|
h = `\\${h}`;
|
|
2463
2463
|
} else
|
|
2464
|
-
|
|
2464
|
+
ke("brackets");
|
|
2465
2465
|
L({ type: "bracket", value: h });
|
|
2466
2466
|
continue;
|
|
2467
2467
|
}
|
|
@@ -2472,7 +2472,7 @@ const Je = Ye, se = qe, {
|
|
|
2472
2472
|
}
|
|
2473
2473
|
if (d.brackets === 0) {
|
|
2474
2474
|
if (s.strictBrackets === !0)
|
|
2475
|
-
throw new SyntaxError(
|
|
2475
|
+
throw new SyntaxError(we("opening", "["));
|
|
2476
2476
|
L({ type: "text", value: h, output: `\\${h}` });
|
|
2477
2477
|
continue;
|
|
2478
2478
|
}
|
|
@@ -2489,7 +2489,7 @@ const Je = Ye, se = qe, {
|
|
|
2489
2489
|
continue;
|
|
2490
2490
|
}
|
|
2491
2491
|
if (h === "{" && s.nobrace !== !0) {
|
|
2492
|
-
|
|
2492
|
+
ke("braces");
|
|
2493
2493
|
const g = {
|
|
2494
2494
|
type: "brace",
|
|
2495
2495
|
value: h,
|
|
@@ -2555,12 +2555,12 @@ const Je = Ye, se = qe, {
|
|
|
2555
2555
|
continue;
|
|
2556
2556
|
}
|
|
2557
2557
|
if (h === "?") {
|
|
2558
|
-
if (!(f && f.value === "(") && s.noextglob !== !0 &&
|
|
2559
|
-
|
|
2558
|
+
if (!(f && f.value === "(") && s.noextglob !== !0 && k() === "(" && k(2) !== "?") {
|
|
2559
|
+
Ne("qmark", h);
|
|
2560
2560
|
continue;
|
|
2561
2561
|
}
|
|
2562
2562
|
if (f && f.type === "paren") {
|
|
2563
|
-
const D =
|
|
2563
|
+
const D = k();
|
|
2564
2564
|
let B = h;
|
|
2565
2565
|
if (D === "<" && !se.supportsLookbehinds())
|
|
2566
2566
|
throw new Error("Node.js v10 or higher is required for regex lookbehinds");
|
|
@@ -2571,12 +2571,12 @@ const Je = Ye, se = qe, {
|
|
|
2571
2571
|
L({ type: "qmark", value: h, output: A });
|
|
2572
2572
|
continue;
|
|
2573
2573
|
}
|
|
2574
|
-
L({ type: "qmark", value: h, output:
|
|
2574
|
+
L({ type: "qmark", value: h, output: w });
|
|
2575
2575
|
continue;
|
|
2576
2576
|
}
|
|
2577
2577
|
if (h === "!") {
|
|
2578
|
-
if (s.noextglob !== !0 &&
|
|
2579
|
-
|
|
2578
|
+
if (s.noextglob !== !0 && k() === "(" && (k(2) !== "?" || !/[!=<:]/.test(k(3)))) {
|
|
2579
|
+
Ne("negate", h);
|
|
2580
2580
|
continue;
|
|
2581
2581
|
}
|
|
2582
2582
|
if (s.nonegate !== !0 && d.index === 0) {
|
|
@@ -2585,8 +2585,8 @@ const Je = Ye, se = qe, {
|
|
|
2585
2585
|
}
|
|
2586
2586
|
}
|
|
2587
2587
|
if (h === "+") {
|
|
2588
|
-
if (s.noextglob !== !0 &&
|
|
2589
|
-
|
|
2588
|
+
if (s.noextglob !== !0 && k() === "(" && k(2) !== "?") {
|
|
2589
|
+
Ne("plus", h);
|
|
2590
2590
|
continue;
|
|
2591
2591
|
}
|
|
2592
2592
|
if (f && f.value === "(" || s.regex === !1) {
|
|
@@ -2601,7 +2601,7 @@ const Je = Ye, se = qe, {
|
|
|
2601
2601
|
continue;
|
|
2602
2602
|
}
|
|
2603
2603
|
if (h === "@") {
|
|
2604
|
-
if (s.noextglob !== !0 &&
|
|
2604
|
+
if (s.noextglob !== !0 && k() === "(" && k(2) !== "?") {
|
|
2605
2605
|
L({ type: "at", extglob: !0, value: h, output: "" });
|
|
2606
2606
|
continue;
|
|
2607
2607
|
}
|
|
@@ -2620,7 +2620,7 @@ const Je = Ye, se = qe, {
|
|
|
2620
2620
|
}
|
|
2621
2621
|
let b = ce();
|
|
2622
2622
|
if (s.noextglob !== !0 && /^\([^?]/.test(b)) {
|
|
2623
|
-
|
|
2623
|
+
Ne("star", h);
|
|
2624
2624
|
continue;
|
|
2625
2625
|
}
|
|
2626
2626
|
if (f.type === "star") {
|
|
@@ -2645,23 +2645,23 @@ const Je = Ye, se = qe, {
|
|
|
2645
2645
|
b = b.slice(3), q("/**", 3);
|
|
2646
2646
|
}
|
|
2647
2647
|
if (g.type === "bos" && V()) {
|
|
2648
|
-
f.type = "globstar", f.value += h, f.output =
|
|
2648
|
+
f.type = "globstar", f.value += h, f.output = N(s), d.output = f.output, d.globstar = !0, q(h);
|
|
2649
2649
|
continue;
|
|
2650
2650
|
}
|
|
2651
2651
|
if (g.type === "slash" && g.prev.type !== "bos" && !W && V()) {
|
|
2652
|
-
d.output = d.output.slice(0, -(g.output + f.output).length), g.output = `(?:${g.output}`, f.type = "globstar", f.output =
|
|
2652
|
+
d.output = d.output.slice(0, -(g.output + f.output).length), g.output = `(?:${g.output}`, f.type = "globstar", f.output = N(s) + (s.strictSlashes ? ")" : "|$)"), f.value += h, d.globstar = !0, d.output += g.output + f.output, q(h);
|
|
2653
2653
|
continue;
|
|
2654
2654
|
}
|
|
2655
2655
|
if (g.type === "slash" && g.prev.type !== "bos" && b[0] === "/") {
|
|
2656
2656
|
const He = b[1] !== void 0 ? "|$" : "";
|
|
2657
|
-
d.output = d.output.slice(0, -(g.output + f.output).length), g.output = `(?:${g.output}`, f.type = "globstar", f.output = `${
|
|
2657
|
+
d.output = d.output.slice(0, -(g.output + f.output).length), g.output = `(?:${g.output}`, f.type = "globstar", f.output = `${N(s)}${m}|${m}${He})`, f.value += h, d.output += g.output + f.output, d.globstar = !0, q(h + re()), L({ type: "slash", value: "/", output: "" });
|
|
2658
2658
|
continue;
|
|
2659
2659
|
}
|
|
2660
2660
|
if (g.type === "bos" && b[0] === "/") {
|
|
2661
|
-
f.type = "globstar", f.value += h, f.output = `(?:^|${m}|${
|
|
2661
|
+
f.type = "globstar", f.value += h, f.output = `(?:^|${m}|${N(s)}${m})`, d.output = f.output, d.globstar = !0, q(h + re()), L({ type: "slash", value: "/", output: "" });
|
|
2662
2662
|
continue;
|
|
2663
2663
|
}
|
|
2664
|
-
d.output = d.output.slice(0, -f.output.length), f.type = "globstar", f.output =
|
|
2664
|
+
d.output = d.output.slice(0, -f.output.length), f.type = "globstar", f.output = N(s), f.value += h, d.output += f.output, d.globstar = !0, q(h);
|
|
2665
2665
|
continue;
|
|
2666
2666
|
}
|
|
2667
2667
|
const j = { type: "star", value: h, output: x };
|
|
@@ -2673,21 +2673,21 @@ const Je = Ye, se = qe, {
|
|
|
2673
2673
|
j.output = h, L(j);
|
|
2674
2674
|
continue;
|
|
2675
2675
|
}
|
|
2676
|
-
(d.index === d.start || f.type === "slash" || f.type === "dot") && (f.type === "dot" ? (d.output += R, f.output += R) : s.dot === !0 ? (d.output += $, f.output += $) : (d.output += E, f.output += E),
|
|
2676
|
+
(d.index === d.start || f.type === "slash" || f.type === "dot") && (f.type === "dot" ? (d.output += R, f.output += R) : s.dot === !0 ? (d.output += $, f.output += $) : (d.output += E, f.output += E), k() !== "*" && (d.output += _, f.output += _)), L(j);
|
|
2677
2677
|
}
|
|
2678
2678
|
for (; d.brackets > 0; ) {
|
|
2679
2679
|
if (s.strictBrackets === !0)
|
|
2680
|
-
throw new SyntaxError(
|
|
2680
|
+
throw new SyntaxError(we("closing", "]"));
|
|
2681
2681
|
d.output = se.escapeLast(d.output, "["), ye("brackets");
|
|
2682
2682
|
}
|
|
2683
2683
|
for (; d.parens > 0; ) {
|
|
2684
2684
|
if (s.strictBrackets === !0)
|
|
2685
|
-
throw new SyntaxError(
|
|
2685
|
+
throw new SyntaxError(we("closing", ")"));
|
|
2686
2686
|
d.output = se.escapeLast(d.output, "("), ye("parens");
|
|
2687
2687
|
}
|
|
2688
2688
|
for (; d.braces > 0; ) {
|
|
2689
2689
|
if (s.strictBrackets === !0)
|
|
2690
|
-
throw new SyntaxError(
|
|
2690
|
+
throw new SyntaxError(we("closing", "}"));
|
|
2691
2691
|
d.output = se.escapeLast(d.output, "{"), ye("braces");
|
|
2692
2692
|
}
|
|
2693
2693
|
if (s.strictSlashes !== !0 && (f.type === "star" || f.type === "bracket") && L({ type: "maybe_slash", value: "", output: `${m}?` }), d.backtrack === !0) {
|
|
@@ -2697,7 +2697,7 @@ const Je = Ye, se = qe, {
|
|
|
2697
2697
|
}
|
|
2698
2698
|
return d;
|
|
2699
2699
|
};
|
|
2700
|
-
|
|
2700
|
+
vs.fastpaths = (t, e) => {
|
|
2701
2701
|
const s = { ...e }, n = typeof s.maxLength == "number" ? Math.min(Ve, s.maxLength) : Ve, i = t.length;
|
|
2702
2702
|
if (i > n)
|
|
2703
2703
|
throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);
|
|
@@ -2713,40 +2713,40 @@ ws.fastpaths = (t, e) => {
|
|
|
2713
2713
|
STAR: m,
|
|
2714
2714
|
START_ANCHOR: _
|
|
2715
2715
|
} = Je.globChars(s.windows), y = s.dot ? c : l, O = s.dot ? p : l, R = s.capture ? "" : "?:", $ = { negated: !1, prefix: "" };
|
|
2716
|
-
let
|
|
2717
|
-
s.capture && (
|
|
2718
|
-
const A = (E) => E.noglobstar === !0 ?
|
|
2716
|
+
let w = s.bash === !0 ? ".*?" : m;
|
|
2717
|
+
s.capture && (w = `(${w})`);
|
|
2718
|
+
const A = (E) => E.noglobstar === !0 ? w : `(${R}(?:(?!${_}${E.dot ? u : o}).)*?)`, C = (E) => {
|
|
2719
2719
|
switch (E) {
|
|
2720
2720
|
case "*":
|
|
2721
|
-
return `${y}${a}${
|
|
2721
|
+
return `${y}${a}${w}`;
|
|
2722
2722
|
case ".*":
|
|
2723
|
-
return `${o}${a}${
|
|
2723
|
+
return `${o}${a}${w}`;
|
|
2724
2724
|
case "*.*":
|
|
2725
|
-
return `${y}${
|
|
2725
|
+
return `${y}${w}${o}${a}${w}`;
|
|
2726
2726
|
case "*/*":
|
|
2727
|
-
return `${y}${
|
|
2727
|
+
return `${y}${w}${r}${a}${O}${w}`;
|
|
2728
2728
|
case "**":
|
|
2729
2729
|
return y + A(s);
|
|
2730
2730
|
case "**/*":
|
|
2731
|
-
return `(?:${y}${A(s)}${r})?${O}${a}${
|
|
2731
|
+
return `(?:${y}${A(s)}${r})?${O}${a}${w}`;
|
|
2732
2732
|
case "**/*.*":
|
|
2733
|
-
return `(?:${y}${A(s)}${r})?${O}${
|
|
2733
|
+
return `(?:${y}${A(s)}${r})?${O}${w}${o}${a}${w}`;
|
|
2734
2734
|
case "**/.*":
|
|
2735
|
-
return `(?:${y}${A(s)}${r})?${o}${a}${
|
|
2735
|
+
return `(?:${y}${A(s)}${r})?${o}${a}${w}`;
|
|
2736
2736
|
default: {
|
|
2737
|
-
const
|
|
2738
|
-
if (!
|
|
2737
|
+
const v = /^(.*?)\.(\w+)$/.exec(E);
|
|
2738
|
+
if (!v)
|
|
2739
2739
|
return;
|
|
2740
|
-
const x = C(
|
|
2741
|
-
return x ? x + o +
|
|
2740
|
+
const x = C(v[1]);
|
|
2741
|
+
return x ? x + o + v[2] : void 0;
|
|
2742
2742
|
}
|
|
2743
2743
|
}
|
|
2744
2744
|
}, S = se.removePrefix(t, $);
|
|
2745
|
-
let
|
|
2746
|
-
return
|
|
2745
|
+
let N = C(S);
|
|
2746
|
+
return N && s.strictSlashes !== !0 && (N += `${r}?`), N;
|
|
2747
2747
|
};
|
|
2748
|
-
var pi =
|
|
2749
|
-
const hi = ai, dt = pi,
|
|
2748
|
+
var pi = vs;
|
|
2749
|
+
const hi = ai, dt = pi, ws = qe, di = Ye, mi = (t) => t && typeof t == "object" && !Array.isArray(t), G = (t, e, s = !1) => {
|
|
2750
2750
|
if (Array.isArray(t)) {
|
|
2751
2751
|
const c = t.map((m) => G(m, e, s));
|
|
2752
2752
|
return (m) => {
|
|
@@ -2779,11 +2779,11 @@ G.test = (t, e, s, { glob: n, posix: i } = {}) => {
|
|
|
2779
2779
|
throw new TypeError("Expected input to be a string");
|
|
2780
2780
|
if (t === "")
|
|
2781
2781
|
return { isMatch: !1, output: "" };
|
|
2782
|
-
const o = s || {}, r = o.format || (i ?
|
|
2782
|
+
const o = s || {}, r = o.format || (i ? ws.toPosixSlashes : null);
|
|
2783
2783
|
let a = t === n, u = a && r ? r(t) : t;
|
|
2784
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 };
|
|
2785
2785
|
};
|
|
2786
|
-
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(ws.basename(t));
|
|
2787
2787
|
G.isMatch = (t, e, s) => G(e, s)(t);
|
|
2788
2788
|
G.parse = (t, e) => Array.isArray(t) ? t.map((s) => G.parse(s, e)) : dt(t, { ...e, fastpaths: !1 });
|
|
2789
2789
|
G.scan = (t, e) => hi(t, e);
|
|
@@ -2824,7 +2824,7 @@ const _i = /* @__PURE__ */ mt(gi), Os = yt(fetch), bi = async (t, e) => {
|
|
|
2824
2824
|
retryDelay: 1e3
|
|
2825
2825
|
})).json();
|
|
2826
2826
|
return await ss(i, e || Le);
|
|
2827
|
-
},
|
|
2827
|
+
}, vi = async (t, e) => {
|
|
2828
2828
|
if (t.startsWith("data:") || t.startsWith("https://docs.google.com"))
|
|
2829
2829
|
return;
|
|
2830
2830
|
const s = new URL(t);
|
|
@@ -2849,7 +2849,7 @@ const _i = /* @__PURE__ */ mt(gi), Os = yt(fetch), bi = async (t, e) => {
|
|
|
2849
2849
|
return;
|
|
2850
2850
|
}
|
|
2851
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;
|
|
2852
|
-
class
|
|
2852
|
+
class wi extends Ot.EventEmitter {
|
|
2853
2853
|
constructor(e, s, n, i, o, r = !1) {
|
|
2854
2854
|
if (super(), this.inputs = {}, this.outputs = {}, this._disposables = [], this._rpcListeners = [], this._loaded = !1, this._onLoaded = [], this._sendInputsAfterRegistration = !1, this._cachedEventInputsUpdate = {
|
|
2855
2855
|
iframeId: void 0,
|
|
@@ -2908,7 +2908,7 @@ class vi extends Ot.EventEmitter {
|
|
|
2908
2908
|
if (this._definition)
|
|
2909
2909
|
return this._definition;
|
|
2910
2910
|
try {
|
|
2911
|
-
const s = await
|
|
2911
|
+
const s = await vi(this.url);
|
|
2912
2912
|
if (s)
|
|
2913
2913
|
return this._definition = s, this._definition;
|
|
2914
2914
|
} catch (s) {
|
|
@@ -2944,7 +2944,7 @@ Error: ${s != null && s.message ? s == null ? void 0 : s.message : s == null ? v
|
|
|
2944
2944
|
return this;
|
|
2945
2945
|
if (this.emit(I.Outputs, e), this._metapage.listenerCount(I.Outputs) > 0) {
|
|
2946
2946
|
var n = {};
|
|
2947
|
-
n[this.id] =
|
|
2947
|
+
n[this.id] = e, this._metapage.emit(I.Outputs, n);
|
|
2948
2948
|
}
|
|
2949
2949
|
}
|
|
2950
2950
|
onInputs(e) {
|
|
@@ -3200,7 +3200,7 @@ class ee extends Hn {
|
|
|
3200
3200
|
throw this.emitErrorMessage(`Existing metaframe for id=${e}`), `Existing metaframe for id=${e}`;
|
|
3201
3201
|
if (!s.url)
|
|
3202
3202
|
throw this.emitErrorMessage(`Metaframe definition missing url id=${e}`), `Metaframe definition missing url id=${e}`;
|
|
3203
|
-
var n = new
|
|
3203
|
+
var n = new wi(this, s.url, e, this._id, this._consoleBackgroundColor, this.debug).setMetapage(this);
|
|
3204
3204
|
return this._metaframes = M(this._metaframes, (i) => {
|
|
3205
3205
|
i[e] = n;
|
|
3206
3206
|
}), n.addListener(I.Error, (i) => {
|
|
@@ -3490,7 +3490,7 @@ const Ai = (t) => {
|
|
|
3490
3490
|
};
|
|
3491
3491
|
};
|
|
3492
3492
|
async function Wi(t) {
|
|
3493
|
-
var C, S,
|
|
3493
|
+
var C, S, N, E;
|
|
3494
3494
|
let { url: e, definition: s, onOutputs: n, rootDiv: i, options: o = {} } = t;
|
|
3495
3495
|
if (!e && !s)
|
|
3496
3496
|
throw new Error("Either url or definition must be provided");
|
|
@@ -3503,8 +3503,8 @@ async function Wi(t) {
|
|
|
3503
3503
|
r.debug = o.debug || !1;
|
|
3504
3504
|
try {
|
|
3505
3505
|
await r.setDefinition(JSON.parse(JSON.stringify(s)));
|
|
3506
|
-
} catch (
|
|
3507
|
-
throw r.dispose(), new Error(`Failed to set metapage definition: ${
|
|
3506
|
+
} catch (v) {
|
|
3507
|
+
throw r.dispose(), new Error(`Failed to set metapage definition: ${v}`);
|
|
3508
3508
|
}
|
|
3509
3509
|
const a = [];
|
|
3510
3510
|
n && a.push(r.addListenerReturnDisposer(I.Outputs, n));
|
|
@@ -3515,22 +3515,22 @@ async function Wi(t) {
|
|
|
3515
3515
|
if (c.length === 0)
|
|
3516
3516
|
return {
|
|
3517
3517
|
metapage: r,
|
|
3518
|
-
setInputs: (
|
|
3519
|
-
r.isDisposed() || r.setInputs(
|
|
3518
|
+
setInputs: (v) => {
|
|
3519
|
+
r.isDisposed() || r.setInputs(v);
|
|
3520
3520
|
},
|
|
3521
|
-
setOutputs: (
|
|
3522
|
-
r.isDisposed() || r.setOutputs(
|
|
3521
|
+
setOutputs: (v) => {
|
|
3522
|
+
r.isDisposed() || r.setOutputs(v);
|
|
3523
3523
|
},
|
|
3524
3524
|
dispose: () => {
|
|
3525
|
-
a.forEach((
|
|
3525
|
+
a.forEach((v) => v()), r.dispose();
|
|
3526
3526
|
}
|
|
3527
3527
|
};
|
|
3528
|
-
c.sort((
|
|
3528
|
+
c.sort((v, x) => v.y !== x.y ? v.y - x.y : v.x - x.x);
|
|
3529
3529
|
const _ = {
|
|
3530
3530
|
display: "grid",
|
|
3531
3531
|
gridTemplateColumns: "repeat(1, 1fr)",
|
|
3532
3532
|
gridAutoRows: "1fr",
|
|
3533
|
-
gap: `${((
|
|
3533
|
+
gap: `${((N = u.props.margin) == null ? void 0 : N[0]) || 10}px`,
|
|
3534
3534
|
width: "100%",
|
|
3535
3535
|
height: "100%",
|
|
3536
3536
|
maxHeight: "100%",
|
|
@@ -3550,11 +3550,11 @@ async function Wi(t) {
|
|
|
3550
3550
|
const R = document.createElement("div");
|
|
3551
3551
|
Object.assign(R.style, _);
|
|
3552
3552
|
const $ = [];
|
|
3553
|
-
for (const
|
|
3554
|
-
const x = l.find((f) => f.i ===
|
|
3553
|
+
for (const v of m) {
|
|
3554
|
+
const x = l.find((f) => f.i === v);
|
|
3555
3555
|
if (!x)
|
|
3556
3556
|
continue;
|
|
3557
|
-
const d = r.getMetaframes()[
|
|
3557
|
+
const d = r.getMetaframes()[v], T = await d.iframe;
|
|
3558
3558
|
if (!d)
|
|
3559
3559
|
continue;
|
|
3560
3560
|
$.push(x);
|
|
@@ -3571,29 +3571,29 @@ async function Wi(t) {
|
|
|
3571
3571
|
}, Z = document.createElement("div");
|
|
3572
3572
|
Object.assign(Z.style, H), Z.appendChild(T), R.appendChild(Z);
|
|
3573
3573
|
}
|
|
3574
|
-
const
|
|
3575
|
-
Math.max(...$.map((
|
|
3574
|
+
const w = Math.max(...$.map((v) => v.x + v.w));
|
|
3575
|
+
Math.max(...$.map((v) => v.y + v.h)), R.style.gridTemplateColumns = `repeat(${Math.max(1, w)}, 1fr)`;
|
|
3576
3576
|
const A = document.createElement("div");
|
|
3577
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";
|
|
3578
|
-
for (const
|
|
3579
|
-
const x = r.getMetaframes()[
|
|
3578
|
+
for (const v of Object.keys(r.getMetaframes()).filter((x) => p.has(x))) {
|
|
3579
|
+
const x = r.getMetaframes()[v];
|
|
3580
3580
|
if (!x)
|
|
3581
3581
|
continue;
|
|
3582
3582
|
const d = document.createElement("div");
|
|
3583
|
-
d.setAttribute("data-metaframe-id",
|
|
3583
|
+
d.setAttribute("data-metaframe-id", v), d.style.width = "100px", d.style.height = "100px";
|
|
3584
3584
|
let T;
|
|
3585
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);
|
|
3586
3586
|
}
|
|
3587
3587
|
return O.appendChild(R), O.appendChild(A), i.appendChild(O), {
|
|
3588
3588
|
metapage: r,
|
|
3589
|
-
setInputs: (
|
|
3590
|
-
r.isDisposed() || r.setInputs(
|
|
3589
|
+
setInputs: (v) => {
|
|
3590
|
+
r.isDisposed() || r.setInputs(v);
|
|
3591
3591
|
},
|
|
3592
|
-
setOutputs: (
|
|
3593
|
-
r.isDisposed() || r.setOutputs(
|
|
3592
|
+
setOutputs: (v) => {
|
|
3593
|
+
r.isDisposed() || r.setOutputs(v);
|
|
3594
3594
|
},
|
|
3595
3595
|
dispose: () => {
|
|
3596
|
-
a.forEach((
|
|
3596
|
+
a.forEach((v) => v()), r.dispose(), O.parentNode && O.parentNode.removeChild(O);
|
|
3597
3597
|
}
|
|
3598
3598
|
};
|
|
3599
3599
|
}
|
|
@@ -3637,8 +3637,8 @@ const Ki = (t, e) => {
|
|
|
3637
3637
|
};
|
|
3638
3638
|
export {
|
|
3639
3639
|
ps as INITIAL_NULL_METAPAGE_DEFINITION,
|
|
3640
|
-
|
|
3641
|
-
|
|
3640
|
+
Ni as INTERNAL_ERROR,
|
|
3641
|
+
ki as INVALID_PARAMS,
|
|
3642
3642
|
Ti as INVALID_REQUEST,
|
|
3643
3643
|
K as JsonRpcMethodsFromChild,
|
|
3644
3644
|
me as JsonRpcMethodsFromParent,
|
|
@@ -3654,7 +3654,7 @@ export {
|
|
|
3654
3654
|
ee as Metapage,
|
|
3655
3655
|
I as MetapageEvents,
|
|
3656
3656
|
xe as MetapageHashParams,
|
|
3657
|
-
|
|
3657
|
+
wi as MetapageIFrameRpcClient,
|
|
3658
3658
|
Hn as MetapageShared,
|
|
3659
3659
|
Le as MetapageVersionCurrent,
|
|
3660
3660
|
$t as MetapageVersionsAll,
|
|
@@ -3674,7 +3674,7 @@ export {
|
|
|
3674
3674
|
Vi as getLibraryVersionMatching,
|
|
3675
3675
|
te as getMatchingMetaframeVersion,
|
|
3676
3676
|
he as getMatchingMetapageVersion,
|
|
3677
|
-
|
|
3677
|
+
vi as getMetaframeDefinitionFromUrl,
|
|
3678
3678
|
bi as getMetapageDefinitionFromUrl,
|
|
3679
3679
|
ji as getUrlParam,
|
|
3680
3680
|
Ui as getUrlParamDebug,
|
|
@@ -3683,7 +3683,7 @@ export {
|
|
|
3683
3683
|
Bn as intToRGB,
|
|
3684
3684
|
ht as isDebugFromUrlsParams,
|
|
3685
3685
|
Ji as isEmptyMetaframeDefinition,
|
|
3686
|
-
|
|
3686
|
+
Nn as isIframe,
|
|
3687
3687
|
Hi as isJsonRpcId,
|
|
3688
3688
|
It as isMetaframeDivider,
|
|
3689
3689
|
Ki as isMetaframeHidden,
|