@das-fed/mframe 0.0.13 → 0.0.15
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/es5.js +278 -275
- package/index.d.ts +2 -3
- package/index.js +251 -249
- package/package.json +1 -1
package/es5.js
CHANGED
|
@@ -1171,12 +1171,12 @@ function su(e, t) {
|
|
|
1171
1171
|
O,
|
|
1172
1172
|
$,
|
|
1173
1173
|
j = false,
|
|
1174
|
-
|
|
1174
|
+
F = false;
|
|
1175
1175
|
if (Ve(e) ? (h = function h() {
|
|
1176
1176
|
return e.value;
|
|
1177
1177
|
}, j = rt(e)) : An(e) ? (h = function h() {
|
|
1178
1178
|
return p(e);
|
|
1179
|
-
}, j = true) : ce(e) ? (
|
|
1179
|
+
}, j = true) : ce(e) ? (F = true, j = e.some(function (L) {
|
|
1180
1180
|
return An(L) || rt(L);
|
|
1181
1181
|
}), h = function h() {
|
|
1182
1182
|
return e.map(function (L) {
|
|
@@ -1210,9 +1210,9 @@ function su(e, t) {
|
|
|
1210
1210
|
return Wt(L(), ne);
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
|
-
var
|
|
1213
|
+
var q = Pa(),
|
|
1214
1214
|
te = function te() {
|
|
1215
|
-
d.stop(),
|
|
1215
|
+
d.stop(), q && q.active && Xo(q.effects, d);
|
|
1216
1216
|
};
|
|
1217
1217
|
if (s && t) {
|
|
1218
1218
|
var _L = t;
|
|
@@ -1220,11 +1220,11 @@ function su(e, t) {
|
|
|
1220
1220
|
_L.apply(void 0, arguments), te();
|
|
1221
1221
|
};
|
|
1222
1222
|
}
|
|
1223
|
-
var U =
|
|
1223
|
+
var U = F ? new Array(e.length).fill(yr) : yr;
|
|
1224
1224
|
var re = function re(L) {
|
|
1225
1225
|
if (!(!(d.flags & 1) || !d.dirty && !L)) if (t) {
|
|
1226
1226
|
var _ne = d.run();
|
|
1227
|
-
if (o || j || (
|
|
1227
|
+
if (o || j || (F ? _ne.some(function (le, pe) {
|
|
1228
1228
|
return Zt(le, U[pe]);
|
|
1229
1229
|
}) : Zt(_ne, U))) {
|
|
1230
1230
|
O && O();
|
|
@@ -1233,7 +1233,7 @@ function su(e, t) {
|
|
|
1233
1233
|
try {
|
|
1234
1234
|
var pe = [_ne,
|
|
1235
1235
|
// pass undefined as the old value when it's changed for the first time
|
|
1236
|
-
U === yr ? void 0 :
|
|
1236
|
+
U === yr ? void 0 : F && U[0] === yr ? [] : U, $];
|
|
1237
1237
|
l ? l(t, 3, pe) :
|
|
1238
1238
|
// @ts-expect-error
|
|
1239
1239
|
t.apply(void 0, pe), U = _ne;
|
|
@@ -1801,13 +1801,13 @@ function Wr(e, t, n, r) {
|
|
|
1801
1801
|
var $ = He(l),
|
|
1802
1802
|
j = Ve(l);
|
|
1803
1803
|
if ($ || j) {
|
|
1804
|
-
var
|
|
1804
|
+
var F = function F() {
|
|
1805
1805
|
if (e.f) {
|
|
1806
|
-
var
|
|
1807
|
-
o ? ce(
|
|
1806
|
+
var q = $ ? O(l) ? d[l] : p[l] : l.value;
|
|
1807
|
+
o ? ce(q) && Xo(q, s) : ce(q) ? q.includes(s) || q.push(s) : $ ? (p[l] = [s], O(l) && (d[l] = p[l])) : (l.value = [s], e.k && (p[e.k] = l.value));
|
|
1808
1808
|
} else $ ? (p[l] = i, O(l) && (d[l] = i)) : j ? (l.value = i, e.k && (p[e.k] = i)) : process.env.NODE_ENV !== "production" && H("Invalid template ref type:", l, "(".concat(_typeof(l), ")"));
|
|
1809
1809
|
};
|
|
1810
|
-
i ? (
|
|
1810
|
+
i ? (F.id = -1, st(F, n)) : F();
|
|
1811
1811
|
} else process.env.NODE_ENV !== "production" && H("Invalid template ref type:", l, "(".concat(_typeof(l), ")"));
|
|
1812
1812
|
}
|
|
1813
1813
|
}
|
|
@@ -2115,8 +2115,8 @@ function Yu(e) {
|
|
|
2115
2115
|
O = t.beforeUpdate,
|
|
2116
2116
|
$ = t.updated,
|
|
2117
2117
|
j = t.activated,
|
|
2118
|
-
|
|
2119
|
-
|
|
2118
|
+
F = t.deactivated,
|
|
2119
|
+
q = t.beforeDestroy,
|
|
2120
2120
|
te = t.beforeUnmount,
|
|
2121
2121
|
U = t.destroyed,
|
|
2122
2122
|
re = t.unmounted,
|
|
@@ -2126,57 +2126,57 @@ function Yu(e) {
|
|
|
2126
2126
|
pe = t.errorCaptured,
|
|
2127
2127
|
K = t.serverPrefetch,
|
|
2128
2128
|
k = t.expose,
|
|
2129
|
-
|
|
2129
|
+
B = t.inheritAttrs,
|
|
2130
2130
|
N = t.components,
|
|
2131
2131
|
se = t.directives,
|
|
2132
2132
|
ge = t.filters,
|
|
2133
2133
|
we = process.env.NODE_ENV !== "production" ? ku() : null;
|
|
2134
2134
|
if (process.env.NODE_ENV !== "production") {
|
|
2135
2135
|
var _e$propsOptions2 = _slicedToArray(e.propsOptions, 1),
|
|
2136
|
-
|
|
2137
|
-
if (
|
|
2136
|
+
J = _e$propsOptions2[0];
|
|
2137
|
+
if (J) for (var ie in J) we("Props", ie);
|
|
2138
2138
|
}
|
|
2139
|
-
if (E && qu(E, r, we), i) for (var
|
|
2140
|
-
var _ie = i[
|
|
2141
|
-
ue(_ie) ? (process.env.NODE_ENV !== "production" ? Object.defineProperty(r,
|
|
2139
|
+
if (E && qu(E, r, we), i) for (var _J in i) {
|
|
2140
|
+
var _ie = i[_J];
|
|
2141
|
+
ue(_ie) ? (process.env.NODE_ENV !== "production" ? Object.defineProperty(r, _J, {
|
|
2142
2142
|
value: _ie.bind(n),
|
|
2143
2143
|
configurable: true,
|
|
2144
2144
|
enumerable: true,
|
|
2145
2145
|
writable: true
|
|
2146
|
-
}) : r[
|
|
2146
|
+
}) : r[_J] = _ie.bind(n), process.env.NODE_ENV !== "production" && we("Methods", _J)) : process.env.NODE_ENV !== "production" && H("Method \"".concat(_J, "\" has type \"").concat(_typeof(_ie), "\" in the component definition. Did you reference the function correctly?"));
|
|
2147
2147
|
}
|
|
2148
2148
|
if (o) {
|
|
2149
2149
|
process.env.NODE_ENV !== "production" && !ue(o) && H("The data option must be a function. Plain object usage is no longer supported.");
|
|
2150
|
-
var
|
|
2151
|
-
if (process.env.NODE_ENV !== "production" && Zo(
|
|
2150
|
+
var _J2 = o.call(n, n);
|
|
2151
|
+
if (process.env.NODE_ENV !== "production" && Zo(_J2) && H("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."), !De(_J2)) process.env.NODE_ENV !== "production" && H("data() should return an object.");else if (e.data = cs(_J2), process.env.NODE_ENV !== "production") {
|
|
2152
2152
|
var _loop2 = function _loop2(_ie2) {
|
|
2153
2153
|
we("Data", _ie2), hs(_ie2[0]) || Object.defineProperty(r, _ie2, {
|
|
2154
2154
|
configurable: true,
|
|
2155
2155
|
enumerable: true,
|
|
2156
2156
|
get: function get() {
|
|
2157
|
-
return
|
|
2157
|
+
return _J2[_ie2];
|
|
2158
2158
|
},
|
|
2159
2159
|
set: Fe
|
|
2160
2160
|
});
|
|
2161
2161
|
};
|
|
2162
|
-
for (var _ie2 in
|
|
2162
|
+
for (var _ie2 in _J2) {
|
|
2163
2163
|
_loop2(_ie2);
|
|
2164
2164
|
}
|
|
2165
2165
|
}
|
|
2166
2166
|
}
|
|
2167
2167
|
if (Ho = true, s) {
|
|
2168
|
-
var _loop3 = function _loop3(
|
|
2169
|
-
var ie = s[
|
|
2168
|
+
var _loop3 = function _loop3(_J3) {
|
|
2169
|
+
var ie = s[_J3],
|
|
2170
2170
|
ye = ue(ie) ? ie.bind(n, n) : ue(ie.get) ? ie.get.bind(n, n) : Fe;
|
|
2171
|
-
process.env.NODE_ENV !== "production" && ye === Fe && H("Computed property \"".concat(
|
|
2171
|
+
process.env.NODE_ENV !== "production" && ye === Fe && H("Computed property \"".concat(_J3, "\" has no getter."));
|
|
2172
2172
|
var D = !ue(ie) && ue(ie.set) ? ie.set.bind(n) : process.env.NODE_ENV !== "production" ? function () {
|
|
2173
|
-
H("Write operation failed: computed property \"".concat(
|
|
2173
|
+
H("Write operation failed: computed property \"".concat(_J3, "\" is readonly."));
|
|
2174
2174
|
} : Fe,
|
|
2175
2175
|
Oe = bt({
|
|
2176
2176
|
get: ye,
|
|
2177
2177
|
set: D
|
|
2178
2178
|
});
|
|
2179
|
-
Object.defineProperty(r,
|
|
2179
|
+
Object.defineProperty(r, _J3, {
|
|
2180
2180
|
enumerable: true,
|
|
2181
2181
|
configurable: true,
|
|
2182
2182
|
get: function get() {
|
|
@@ -2185,29 +2185,29 @@ function Yu(e) {
|
|
|
2185
2185
|
set: function set(Re) {
|
|
2186
2186
|
return Oe.value = Re;
|
|
2187
2187
|
}
|
|
2188
|
-
}), process.env.NODE_ENV !== "production" && we("Computed",
|
|
2188
|
+
}), process.env.NODE_ENV !== "production" && we("Computed", _J3);
|
|
2189
2189
|
};
|
|
2190
|
-
for (var
|
|
2191
|
-
_loop3(
|
|
2190
|
+
for (var _J3 in s) {
|
|
2191
|
+
_loop3(_J3);
|
|
2192
2192
|
}
|
|
2193
2193
|
}
|
|
2194
|
-
if (c) for (var
|
|
2194
|
+
if (c) for (var _J4 in c) wc(c[_J4], r, n, _J4);
|
|
2195
2195
|
if (l) {
|
|
2196
|
-
var
|
|
2197
|
-
Reflect.ownKeys(
|
|
2198
|
-
el(ie,
|
|
2196
|
+
var _J5 = ue(l) ? l.call(n) : l;
|
|
2197
|
+
Reflect.ownKeys(_J5).forEach(function (ie) {
|
|
2198
|
+
el(ie, _J5[ie]);
|
|
2199
2199
|
});
|
|
2200
2200
|
}
|
|
2201
2201
|
p && Ms(p, e, "c");
|
|
2202
|
-
function ve(
|
|
2202
|
+
function ve(J, ie) {
|
|
2203
2203
|
ce(ie) ? ie.forEach(function (ye) {
|
|
2204
|
-
return
|
|
2205
|
-
}) : ie &&
|
|
2204
|
+
return J(ye.bind(n));
|
|
2205
|
+
}) : ie && J(ie.bind(n));
|
|
2206
2206
|
}
|
|
2207
|
-
if (ve($u, d), ve(yc, h), ve(Mu, O), ve(Lu, $), ve(Cu, j), ve(Pu,
|
|
2208
|
-
var
|
|
2207
|
+
if (ve($u, d), ve(yc, h), ve(Mu, O), ve(Lu, $), ve(Cu, j), ve(Pu, F), ve(Fu, pe), ve(Wu, ne), ve(Hu, le), ve(Vu, te), ve(_c, re), ve(ju, K), ce(k)) if (k.length) {
|
|
2208
|
+
var _J6 = e.exposed || (e.exposed = {});
|
|
2209
2209
|
k.forEach(function (ie) {
|
|
2210
|
-
Object.defineProperty(
|
|
2210
|
+
Object.defineProperty(_J6, ie, {
|
|
2211
2211
|
get: function get() {
|
|
2212
2212
|
return n[ie];
|
|
2213
2213
|
},
|
|
@@ -2217,7 +2217,7 @@ function Yu(e) {
|
|
|
2217
2217
|
});
|
|
2218
2218
|
});
|
|
2219
2219
|
} else e.exposed || (e.exposed = {});
|
|
2220
|
-
L && e.render === Fe && (e.render = L),
|
|
2220
|
+
L && e.render === Fe && (e.render = L), B != null && (e.inheritAttrs = B), N && (e.components = N), se && (e.directives = se), K && vc(e);
|
|
2221
2221
|
}
|
|
2222
2222
|
function qu(e, t) {
|
|
2223
2223
|
var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Fe;
|
|
@@ -2604,18 +2604,18 @@ function xc(e, t) {
|
|
|
2604
2604
|
} : je({}, h),
|
|
2605
2605
|
$ = O.type;
|
|
2606
2606
|
var j = false,
|
|
2607
|
-
|
|
2608
|
-
if (ce($)) for (var
|
|
2609
|
-
var te = $[
|
|
2607
|
+
F = true;
|
|
2608
|
+
if (ce($)) for (var q = 0; q < $.length; ++q) {
|
|
2609
|
+
var te = $[q],
|
|
2610
2610
|
U = ue(te) && te.name;
|
|
2611
2611
|
if (U === "Boolean") {
|
|
2612
2612
|
j = true;
|
|
2613
2613
|
break;
|
|
2614
|
-
} else U === "String" && (
|
|
2614
|
+
} else U === "String" && (F = false);
|
|
2615
2615
|
} else j = ue($) && $.name === "Boolean";
|
|
2616
2616
|
O[0
|
|
2617
2617
|
/* shouldCast */] = j, O[1
|
|
2618
|
-
/* shouldCastTrue */] =
|
|
2618
|
+
/* shouldCastTrue */] = F, (j || be(O, "default")) && c.push(_d4);
|
|
2619
2619
|
}
|
|
2620
2620
|
}
|
|
2621
2621
|
}
|
|
@@ -2819,10 +2819,10 @@ function ml(e, t) {
|
|
|
2819
2819
|
M = g.shapeFlag;
|
|
2820
2820
|
switch (T) {
|
|
2821
2821
|
case dr:
|
|
2822
|
-
|
|
2822
|
+
F(f, g, y, C);
|
|
2823
2823
|
break;
|
|
2824
2824
|
case ut:
|
|
2825
|
-
|
|
2825
|
+
q(f, g, y, C);
|
|
2826
2826
|
break;
|
|
2827
2827
|
case Tr:
|
|
2828
2828
|
f == null ? te(g, y, C, P) : process.env.NODE_ENV !== "production" && U(f, g, y, P);
|
|
@@ -2835,13 +2835,13 @@ function ml(e, t) {
|
|
|
2835
2835
|
}
|
|
2836
2836
|
G != null && R && Wr(G, f && f.ref, _, g || f, !g);
|
|
2837
2837
|
},
|
|
2838
|
-
|
|
2838
|
+
F = function F(f, g, y, C) {
|
|
2839
2839
|
if (f == null) r(g.el = c(g.children), y, C);else {
|
|
2840
2840
|
var R = g.el = f.el;
|
|
2841
2841
|
g.children !== f.children && E(R, g.children);
|
|
2842
2842
|
}
|
|
2843
2843
|
},
|
|
2844
|
-
|
|
2844
|
+
q = function q(f, g, y, C) {
|
|
2845
2845
|
f == null ? r(g.el = l(g.children || ""), y, C) : g.el = f.el;
|
|
2846
2846
|
},
|
|
2847
2847
|
te = function te(f, g, y, C) {
|
|
@@ -2917,7 +2917,7 @@ function ml(e, t) {
|
|
|
2917
2917
|
var M = f.props || Ne,
|
|
2918
2918
|
Q = g.props || Ne;
|
|
2919
2919
|
var oe;
|
|
2920
|
-
if (y && rn(y, false), (oe = Q.onVnodeBeforeUpdate) && _t(oe, y, g, f), G && nn(g, f, y, "beforeUpdate"), y && rn(y, true), process.env.NODE_ENV !== "production" && Tt && (A = 0, P = false, T = null), (M.innerHTML && Q.innerHTML == null || M.textContent && Q.textContent == null) && p(b, ""), T ? (
|
|
2920
|
+
if (y && rn(y, false), (oe = Q.onVnodeBeforeUpdate) && _t(oe, y, g, f), G && nn(g, f, y, "beforeUpdate"), y && rn(y, true), process.env.NODE_ENV !== "production" && Tt && (A = 0, P = false, T = null), (M.innerHTML && Q.innerHTML == null || M.textContent && Q.textContent == null) && p(b, ""), T ? (B(f.dynamicChildren, T, b, y, C, yo(g, R), _), process.env.NODE_ENV !== "production" && Nr(f, g)) : P || ye(f, g, b, null, y, C, yo(g, R), _, false), A > 0) {
|
|
2921
2921
|
if (A & 16) N(b, M, Q, y, R);else if (A & 2 && M["class"] !== Q["class"] && s(b, "class", null, Q["class"], R), A & 4 && s(b, "style", M.style, Q.style, R), A & 8) {
|
|
2922
2922
|
var Ee = g.dynamicProps;
|
|
2923
2923
|
for (var Te = 0; Te < Ee.length; Te++) {
|
|
@@ -2933,7 +2933,7 @@ function ml(e, t) {
|
|
|
2933
2933
|
oe && _t(oe, y, g, f), G && nn(g, f, y, "updated");
|
|
2934
2934
|
}, C);
|
|
2935
2935
|
},
|
|
2936
|
-
|
|
2936
|
+
B = function B(f, g, y, C, R, _, P) {
|
|
2937
2937
|
for (var b = 0; b < g.length; b++) {
|
|
2938
2938
|
var A = f[b],
|
|
2939
2939
|
T = g[b],
|
|
@@ -2983,7 +2983,7 @@ function ml(e, t) {
|
|
|
2983
2983
|
g.children || [], y, G, R, _, P, b, A)) : M > 0 && M & 64 && Q &&
|
|
2984
2984
|
// #2715 the previous fragment could've been a BAILed one as a result
|
|
2985
2985
|
// of renderSlot() with no valid children
|
|
2986
|
-
f.dynamicChildren ? (
|
|
2986
|
+
f.dynamicChildren ? (B(f.dynamicChildren, Q, y, R, _, P, b), process.env.NODE_ENV !== "production" ? Nr(f, g) :
|
|
2987
2987
|
// #2080 if the stable fragment has a key, it's a <template v-for> that may
|
|
2988
2988
|
// get moved around. Make sure all root level vnodes inherit el.
|
|
2989
2989
|
// #2134 or if it's a component root, it may also get moved around
|
|
@@ -2997,11 +2997,11 @@ function ml(e, t) {
|
|
|
2997
2997
|
we = function we(f, g, y, C, R, _, P) {
|
|
2998
2998
|
var b = f.component = Vl(f, C, R);
|
|
2999
2999
|
if (process.env.NODE_ENV !== "production" && b.type.__hmrId && hu(b), process.env.NODE_ENV !== "production" && (wr(f), _n(b, "mount")), ds(f) && (b.ctx.renderer = W), process.env.NODE_ENV !== "production" && _n(b, "init"), Wl(b, false, P), process.env.NODE_ENV !== "production" && bn(b, "init"), b.asyncDep) {
|
|
3000
|
-
if (process.env.NODE_ENV !== "production" && Tt && (f.el = null), R && R.registerDep(b,
|
|
3000
|
+
if (process.env.NODE_ENV !== "production" && Tt && (f.el = null), R && R.registerDep(b, J, P), !f.el) {
|
|
3001
3001
|
var A = b.subTree = at(ut);
|
|
3002
|
-
|
|
3002
|
+
q(null, A, g, y);
|
|
3003
3003
|
}
|
|
3004
|
-
} else
|
|
3004
|
+
} else J(b, f, g, y, R, _, P);
|
|
3005
3005
|
process.env.NODE_ENV !== "production" && (Or(), bn(b, "mount"));
|
|
3006
3006
|
},
|
|
3007
3007
|
ve = function ve(f, g, y) {
|
|
@@ -3013,7 +3013,7 @@ function ml(e, t) {
|
|
|
3013
3013
|
} else C.next = g, C.update();
|
|
3014
3014
|
} else g.el = f.el, C.vnode = g;
|
|
3015
3015
|
},
|
|
3016
|
-
|
|
3016
|
+
J = function J(f, g, y, C, R, _, P) {
|
|
3017
3017
|
var _b = function b() {
|
|
3018
3018
|
if (f.isMounted) {
|
|
3019
3019
|
var M = f.next,
|
|
@@ -3333,7 +3333,7 @@ function ml(e, t) {
|
|
|
3333
3333
|
mt: we,
|
|
3334
3334
|
mc: K,
|
|
3335
3335
|
pc: ye,
|
|
3336
|
-
pbc:
|
|
3336
|
+
pbc: B,
|
|
3337
3337
|
n: _de,
|
|
3338
3338
|
o: e
|
|
3339
3339
|
};
|
|
@@ -3538,8 +3538,8 @@ function Bs(e) {
|
|
|
3538
3538
|
O = e.setupState,
|
|
3539
3539
|
$ = e.ctx,
|
|
3540
3540
|
j = e.inheritAttrs,
|
|
3541
|
-
|
|
3542
|
-
var
|
|
3541
|
+
F = Hr(e);
|
|
3542
|
+
var q, te;
|
|
3543
3543
|
process.env.NODE_ENV !== "production" && (Uo = false);
|
|
3544
3544
|
try {
|
|
3545
3545
|
if (n.shapeFlag & 4) {
|
|
@@ -3549,10 +3549,10 @@ function Bs(e) {
|
|
|
3549
3549
|
return H("Property '".concat(String(pe), "' was accessed via 'this'. Avoid using 'this' in templates.")), Reflect.get(le, pe, K);
|
|
3550
3550
|
}
|
|
3551
3551
|
}) : L;
|
|
3552
|
-
|
|
3552
|
+
q = dt(E.call(ne, L, p, process.env.NODE_ENV !== "production" ? Nt(d) : d, O, h, $)), te = c;
|
|
3553
3553
|
} else {
|
|
3554
3554
|
var _L2 = t;
|
|
3555
|
-
process.env.NODE_ENV !== "production" && c === d && Ur(),
|
|
3555
|
+
process.env.NODE_ENV !== "production" && c === d && Ur(), q = dt(_L2.length > 1 ? _L2(process.env.NODE_ENV !== "production" ? Nt(d) : d, process.env.NODE_ENV !== "production" ? {
|
|
3556
3556
|
get attrs() {
|
|
3557
3557
|
return Ur(), Nt(c);
|
|
3558
3558
|
},
|
|
@@ -3565,11 +3565,11 @@ function Bs(e) {
|
|
|
3565
3565
|
}) : _L2(process.env.NODE_ENV !== "production" ? Nt(d) : d, null)), te = t.props ? c : Sl(c);
|
|
3566
3566
|
}
|
|
3567
3567
|
} catch (L) {
|
|
3568
|
-
er.length = 0, fr(L, e, 1),
|
|
3568
|
+
er.length = 0, fr(L, e, 1), q = at(ut);
|
|
3569
3569
|
}
|
|
3570
|
-
var U =
|
|
3570
|
+
var U = q,
|
|
3571
3571
|
re;
|
|
3572
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
3572
|
+
if (process.env.NODE_ENV !== "production" && q.patchFlag > 0 && q.patchFlag & 2048 && (_jc = _jc3(q), _jc2 = _slicedToArray(_jc, 2), U = _jc2[0], re = _jc2[1], _jc), te && j !== false) {
|
|
3573
3573
|
var _L3 = Object.keys(te),
|
|
3574
3574
|
_U = U,
|
|
3575
3575
|
_ne3 = _U.shapeFlag;
|
|
@@ -3578,7 +3578,7 @@ function Bs(e) {
|
|
|
3578
3578
|
var le = Object.keys(c),
|
|
3579
3579
|
pe = [],
|
|
3580
3580
|
K = [];
|
|
3581
|
-
for (var k = 0,
|
|
3581
|
+
for (var k = 0, B = le.length; k < B; k++) {
|
|
3582
3582
|
var N = le[k];
|
|
3583
3583
|
ur(N) ? Ir(N) || pe.push(N[2].toLowerCase() + N.slice(3)) : K.push(N);
|
|
3584
3584
|
}
|
|
@@ -3586,7 +3586,7 @@ function Bs(e) {
|
|
|
3586
3586
|
}
|
|
3587
3587
|
}
|
|
3588
3588
|
}
|
|
3589
|
-
return n.dirs && (process.env.NODE_ENV !== "production" && !Us(U) && H("Runtime directive used on component with non-element root node. The directives will not function as intended."), U = en(U, null, false, true), U.dirs = U.dirs ? U.dirs.concat(n.dirs) : n.dirs), n.transition && (process.env.NODE_ENV !== "production" && !Us(U) && H("Component inside <Transition> renders non-element root node that cannot be animated."), ps(U, n.transition)), process.env.NODE_ENV !== "production" && re ? re(U) :
|
|
3589
|
+
return n.dirs && (process.env.NODE_ENV !== "production" && !Us(U) && H("Runtime directive used on component with non-element root node. The directives will not function as intended."), U = en(U, null, false, true), U.dirs = U.dirs ? U.dirs.concat(n.dirs) : n.dirs), n.transition && (process.env.NODE_ENV !== "production" && !Us(U) && H("Component inside <Transition> renders non-element root node that cannot be animated."), ps(U, n.transition)), process.env.NODE_ENV !== "production" && re ? re(U) : q = U, Hr(F), q;
|
|
3590
3590
|
}
|
|
3591
3591
|
var _jc3 = function jc(e) {
|
|
3592
3592
|
var t = e.children,
|
|
@@ -4664,14 +4664,14 @@ var _f = {
|
|
|
4664
4664
|
return p.value.activeMicroAppName || "";
|
|
4665
4665
|
}),
|
|
4666
4666
|
j = bt(function () {
|
|
4667
|
-
var K, k,
|
|
4667
|
+
var K, k, B, N, se, ge;
|
|
4668
4668
|
return {
|
|
4669
4669
|
navHeight: (((k = (K = p.value) == null ? void 0 : K.navRect) == null ? void 0 : k.height) || 0) + "px",
|
|
4670
|
-
menuWidth: (((N = (
|
|
4670
|
+
menuWidth: (((N = (B = p.value) == null ? void 0 : B.menuRect) == null ? void 0 : N.width) || 0) + "px",
|
|
4671
4671
|
tabHeight: (((ge = (se = p.value) == null ? void 0 : se.tabRect) == null ? void 0 : ge.height) || 0) + "px"
|
|
4672
4672
|
};
|
|
4673
4673
|
}),
|
|
4674
|
-
|
|
4674
|
+
F = bt(function () {
|
|
4675
4675
|
return {
|
|
4676
4676
|
position: "relative",
|
|
4677
4677
|
height: "100%",
|
|
@@ -4679,33 +4679,33 @@ var _f = {
|
|
|
4679
4679
|
flexDirection: "column"
|
|
4680
4680
|
};
|
|
4681
4681
|
}),
|
|
4682
|
-
|
|
4682
|
+
q = function q(K) {
|
|
4683
4683
|
var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
4684
|
-
var
|
|
4684
|
+
var B = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
4685
4685
|
var N = null;
|
|
4686
4686
|
return function () {
|
|
4687
4687
|
for (var _len18 = arguments.length, se = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
|
|
4688
4688
|
se[_key18] = arguments[_key18];
|
|
4689
4689
|
}
|
|
4690
|
-
|
|
4690
|
+
B && !N && K.apply(void 0, se), clearTimeout(N), N = setTimeout(function () {
|
|
4691
4691
|
K.apply(void 0, se);
|
|
4692
4692
|
}, k);
|
|
4693
4693
|
};
|
|
4694
4694
|
},
|
|
4695
4695
|
te = function te() {
|
|
4696
|
-
function K(
|
|
4696
|
+
function K(B) {
|
|
4697
4697
|
var N = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 20;
|
|
4698
|
-
if (!
|
|
4699
|
-
var se =
|
|
4698
|
+
if (!B) return;
|
|
4699
|
+
var se = B.getBoundingClientRect(),
|
|
4700
4700
|
ge = se.x,
|
|
4701
4701
|
we = se.y,
|
|
4702
4702
|
ve = se.width,
|
|
4703
|
-
|
|
4703
|
+
J = se.height,
|
|
4704
4704
|
ie = ge,
|
|
4705
4705
|
ye = we,
|
|
4706
4706
|
D = ge + ve,
|
|
4707
|
-
Oe = we +
|
|
4708
|
-
Re = [document.documentElement, document.body,
|
|
4707
|
+
Oe = we + J,
|
|
4708
|
+
Re = [document.documentElement, document.body, B, h.menu.value, h.nav.value, h.tab.value, O.mount.value];
|
|
4709
4709
|
for (var Pe = ie; Pe < D; Pe += N) for (var S = ye; S < Oe; S += N) {
|
|
4710
4710
|
var x = document.elementFromPoint(Pe, S);
|
|
4711
4711
|
if (x && !Re.includes(x)) return x;
|
|
@@ -4718,7 +4718,7 @@ var _f = {
|
|
|
4718
4718
|
x: -1,
|
|
4719
4719
|
y: -1
|
|
4720
4720
|
},
|
|
4721
|
-
re =
|
|
4721
|
+
re = q(function (K, k, B) {
|
|
4722
4722
|
if (!(U.x === k.x && U.y === k.y)) {
|
|
4723
4723
|
if (U.x = k.x, U.y = k.x, K === "mouseenter") {
|
|
4724
4724
|
if (l.value) {
|
|
@@ -4726,17 +4726,17 @@ var _f = {
|
|
|
4726
4726
|
microAppStickStatus: false
|
|
4727
4727
|
});
|
|
4728
4728
|
s.data.set({
|
|
4729
|
-
microAppStickStatus:
|
|
4729
|
+
microAppStickStatus: B === "mount"
|
|
4730
4730
|
});
|
|
4731
4731
|
}
|
|
4732
4732
|
if (E.value) {
|
|
4733
4733
|
if (te()) return c.cors.send("microAppStickStatus", true);
|
|
4734
|
-
c.cors.send("microAppStickStatus",
|
|
4734
|
+
c.cors.send("microAppStickStatus", B === "mount");
|
|
4735
4735
|
}
|
|
4736
4736
|
}
|
|
4737
4737
|
if (K === "mousemove" && E.value) {
|
|
4738
4738
|
if (te()) return c.cors.send("microAppStickStatus", true);
|
|
4739
|
-
c.cors.send("microAppStickStatus",
|
|
4739
|
+
c.cors.send("microAppStickStatus", B === "mount");
|
|
4740
4740
|
}
|
|
4741
4741
|
}
|
|
4742
4742
|
}, 20),
|
|
@@ -4767,29 +4767,30 @@ var _f = {
|
|
|
4767
4767
|
pe = qe(null);
|
|
4768
4768
|
if (l.value) {
|
|
4769
4769
|
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
4770
|
-
var
|
|
4770
|
+
var B;
|
|
4771
4771
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
4772
4772
|
while (1) switch (_context3.prev = _context3.next) {
|
|
4773
4773
|
case 0:
|
|
4774
|
-
|
|
4774
|
+
B = function B(N) {
|
|
4775
4775
|
var we;
|
|
4776
4776
|
var se = (we = h[N]) == null ? void 0 : we.value,
|
|
4777
4777
|
ge = function ge() {
|
|
4778
4778
|
var _ref33 = (se == null ? void 0 : se.getBoundingClientRect()) || {},
|
|
4779
4779
|
ve = _ref33.x,
|
|
4780
|
-
|
|
4780
|
+
J = _ref33.y,
|
|
4781
4781
|
ie = _ref33.width,
|
|
4782
4782
|
ye = _ref33.height;
|
|
4783
4783
|
s.data.set(_defineProperty({}, "".concat(N, "Rect"), {
|
|
4784
4784
|
x: ve,
|
|
4785
|
-
y:
|
|
4785
|
+
y: J,
|
|
4786
4786
|
width: ie,
|
|
4787
4787
|
height: ye
|
|
4788
4788
|
}));
|
|
4789
4789
|
};
|
|
4790
4790
|
ge(), new MutationObserver(ge).observe(se, {
|
|
4791
4791
|
childList: true,
|
|
4792
|
-
subtree: true
|
|
4792
|
+
subtree: true,
|
|
4793
|
+
attributes: true
|
|
4793
4794
|
});
|
|
4794
4795
|
};
|
|
4795
4796
|
_context3.next = 3;
|
|
@@ -4807,7 +4808,7 @@ var _f = {
|
|
|
4807
4808
|
}, ge);
|
|
4808
4809
|
});
|
|
4809
4810
|
case 3:
|
|
4810
|
-
|
|
4811
|
+
B(N);
|
|
4811
4812
|
case 4:
|
|
4812
4813
|
case "end":
|
|
4813
4814
|
return _context.stop();
|
|
@@ -4852,13 +4853,13 @@ var _f = {
|
|
|
4852
4853
|
}
|
|
4853
4854
|
}, _callee3);
|
|
4854
4855
|
}))(), s.data.watch(function () {
|
|
4855
|
-
var
|
|
4856
|
-
if (!
|
|
4856
|
+
var B = p.value.activeMicroAppName;
|
|
4857
|
+
if (!B) return;
|
|
4857
4858
|
var N = s.data.get(s.expose.getLayoutDataKeys());
|
|
4858
|
-
i.cors.send(
|
|
4859
|
-
}, s.expose.getLayoutDataKeys()), i.cors.on("microAppStickStatus", function (
|
|
4859
|
+
i.cors.send(B, "layoutDataChange", N);
|
|
4860
|
+
}, s.expose.getLayoutDataKeys()), i.cors.on("microAppStickStatus", function (B) {
|
|
4860
4861
|
s.data.set({
|
|
4861
|
-
microAppStickStatus:
|
|
4862
|
+
microAppStickStatus: B.data
|
|
4862
4863
|
});
|
|
4863
4864
|
});
|
|
4864
4865
|
var _ga = ga(),
|
|
@@ -4878,9 +4879,9 @@ var _f = {
|
|
|
4878
4879
|
var _K = K,
|
|
4879
4880
|
_k = _K.appInfo,
|
|
4880
4881
|
_K$parentData = _K.parentData,
|
|
4881
|
-
|
|
4882
|
+
B = _K$parentData === void 0 ? {} : _K$parentData;
|
|
4882
4883
|
setTimeout(function () {
|
|
4883
|
-
s.data.set(
|
|
4884
|
+
s.data.set(B.layoutData);
|
|
4884
4885
|
}, 0), c.data.set({
|
|
4885
4886
|
appInfo: _k
|
|
4886
4887
|
}), c.cors.on("layoutDataChange", function (se) {
|
|
@@ -4929,14 +4930,14 @@ var _f = {
|
|
|
4929
4930
|
s.event.emit("onMounted");
|
|
4930
4931
|
}), function (K, k) {
|
|
4931
4932
|
return Mt(), Yt("div", {
|
|
4932
|
-
style: jt(
|
|
4933
|
+
style: jt(F.value)
|
|
4933
4934
|
}, [_r(Lt("header", {
|
|
4934
4935
|
ref: h.nav,
|
|
4935
|
-
onMouseenter: k[0] || (k[0] = function (
|
|
4936
|
-
return qt(re)("mouseenter",
|
|
4936
|
+
onMouseenter: k[0] || (k[0] = function (B) {
|
|
4937
|
+
return qt(re)("mouseenter", B, "nav");
|
|
4937
4938
|
}),
|
|
4938
|
-
onMousemove: k[1] || (k[1] = function (
|
|
4939
|
-
return qt(re)("mousemove",
|
|
4939
|
+
onMousemove: k[1] || (k[1] = function (B) {
|
|
4940
|
+
return qt(re)("mousemove", B, "nav");
|
|
4940
4941
|
})
|
|
4941
4942
|
}, [l.value ? (Mt(), Yt("div", {
|
|
4942
4943
|
key: 0,
|
|
@@ -4953,11 +4954,11 @@ var _f = {
|
|
|
4953
4954
|
style: {
|
|
4954
4955
|
height: "100%"
|
|
4955
4956
|
},
|
|
4956
|
-
onMouseenter: k[2] || (k[2] = function (
|
|
4957
|
-
return qt(re)("mouseenter",
|
|
4957
|
+
onMouseenter: k[2] || (k[2] = function (B) {
|
|
4958
|
+
return qt(re)("mouseenter", B, "menu");
|
|
4958
4959
|
}),
|
|
4959
|
-
onMousemove: k[3] || (k[3] = function (
|
|
4960
|
-
return qt(re)("mousemove",
|
|
4960
|
+
onMousemove: k[3] || (k[3] = function (B) {
|
|
4961
|
+
return qt(re)("mousemove", B, "menu");
|
|
4961
4962
|
})
|
|
4962
4963
|
}, [l.value ? (Mt(), Yt("div", {
|
|
4963
4964
|
key: 0,
|
|
@@ -4974,11 +4975,11 @@ var _f = {
|
|
|
4974
4975
|
}])
|
|
4975
4976
|
}, null, 4)) : on("", true)], 544), [[zn, d.value.menu]]), Lt("main", bf, [_r(Lt("header", {
|
|
4976
4977
|
ref: h.tab,
|
|
4977
|
-
onMouseenter: k[4] || (k[4] = function (
|
|
4978
|
-
return qt(re)("mouseenter",
|
|
4978
|
+
onMouseenter: k[4] || (k[4] = function (B) {
|
|
4979
|
+
return qt(re)("mouseenter", B, "tab");
|
|
4979
4980
|
}),
|
|
4980
|
-
onMousemove: k[5] || (k[5] = function (
|
|
4981
|
-
return qt(re)("mousemove",
|
|
4981
|
+
onMousemove: k[5] || (k[5] = function (B) {
|
|
4982
|
+
return qt(re)("mousemove", B, "tab");
|
|
4982
4983
|
})
|
|
4983
4984
|
}, [l.value ? (Mt(), Yt("div", {
|
|
4984
4985
|
key: 0,
|
|
@@ -4996,8 +4997,8 @@ var _f = {
|
|
|
4996
4997
|
flex: "1",
|
|
4997
4998
|
"min-height": "0"
|
|
4998
4999
|
}, L.value]),
|
|
4999
|
-
onMouseenter: k[6] || (k[6] = function (
|
|
5000
|
-
return qt(re)("mouseenter",
|
|
5000
|
+
onMouseenter: k[6] || (k[6] = function (B) {
|
|
5001
|
+
return qt(re)("mouseenter", B, "mount");
|
|
5001
5002
|
})
|
|
5002
5003
|
}, [Lt("div", {
|
|
5003
5004
|
ref: O.mount,
|
|
@@ -5097,38 +5098,38 @@ var Jc = /*#__PURE__*/function () {
|
|
|
5097
5098
|
s = _Zc.addRouterEventListener;
|
|
5098
5099
|
i = Xc();
|
|
5099
5100
|
c = qe(t);
|
|
5100
|
-
r.data.watch(function (
|
|
5101
|
-
return c.value =
|
|
5101
|
+
r.data.watch(function (F) {
|
|
5102
|
+
return c.value = F.microApps;
|
|
5102
5103
|
}, ["microApps"]), r.data.set({
|
|
5103
5104
|
microApps: t
|
|
5104
5105
|
});
|
|
5105
5106
|
_ga2 = ga(), l = _ga2.registerIframe, E = _ga2.loadIframe, p = _ga2.hideIframe, d = _ga2.iframeEvent, h = _ga2.checkIframeStatus;
|
|
5106
|
-
d.on("mounted", function (
|
|
5107
|
+
d.on("mounted", function (F) {
|
|
5107
5108
|
var _ref41;
|
|
5108
5109
|
var U;
|
|
5109
|
-
o.expose.connectMicroApp(
|
|
5110
|
-
var
|
|
5111
|
-
return re.name ===
|
|
5110
|
+
o.expose.connectMicroApp(F);
|
|
5111
|
+
var q = r.data.get().microApps.find(function (re) {
|
|
5112
|
+
return re.name === F.name;
|
|
5112
5113
|
});
|
|
5113
|
-
if (!
|
|
5114
|
-
if (!((_ref41 = (U =
|
|
5114
|
+
if (!q) return;
|
|
5115
|
+
if (!((_ref41 = (U = q.router) == null ? void 0 : U.sync) !== null && _ref41 !== void 0 ? _ref41 : true)) {
|
|
5115
5116
|
j();
|
|
5116
5117
|
return;
|
|
5117
5118
|
}
|
|
5118
|
-
}), t.filter(function (
|
|
5119
|
-
return
|
|
5120
|
-
}).map(function (
|
|
5121
|
-
i.addRule(
|
|
5119
|
+
}), t.filter(function (F) {
|
|
5120
|
+
return F.activeRule;
|
|
5121
|
+
}).map(function (F) {
|
|
5122
|
+
i.addRule(F.name, F.activeRule), l(F.name, F);
|
|
5122
5123
|
});
|
|
5123
5124
|
O = qe(false);
|
|
5124
|
-
o.cors.on("reportRouter", function (
|
|
5125
|
+
o.cors.on("reportRouter", function (F) {
|
|
5125
5126
|
var _ref43;
|
|
5126
5127
|
var N, se, ge;
|
|
5127
|
-
var _ref42 =
|
|
5128
|
-
|
|
5129
|
-
if (!
|
|
5128
|
+
var _ref42 = F || {},
|
|
5129
|
+
q = _ref42.data;
|
|
5130
|
+
if (!q.appInfo) return;
|
|
5130
5131
|
var te = r.data.get().microApps.find(function (we) {
|
|
5131
|
-
return we.name ===
|
|
5132
|
+
return we.name === q.appInfo.name;
|
|
5132
5133
|
});
|
|
5133
5134
|
if (!te || !((_ref43 = (N = te.router) == null ? void 0 : N.sync) !== null && _ref43 !== void 0 ? _ref43 : true) || !h(te.name, ["mounted", "activated"])) return;
|
|
5134
5135
|
var _URL = new URL(window.location.href),
|
|
@@ -5136,33 +5137,34 @@ var Jc = /*#__PURE__*/function () {
|
|
|
5136
5137
|
L = _URL.hash,
|
|
5137
5138
|
ne = _URL.search;
|
|
5138
5139
|
var le = re + ne;
|
|
5139
|
-
var _URL2 = new URL(
|
|
5140
|
+
var _URL2 = new URL(q.href),
|
|
5140
5141
|
pe = _URL2.pathname,
|
|
5141
5142
|
K = _URL2.hash,
|
|
5142
5143
|
k = _URL2.search;
|
|
5143
|
-
var
|
|
5144
|
-
((se = te.router) == null ? void 0 : se.mode) === "hash" && (
|
|
5144
|
+
var B = pe + k;
|
|
5145
|
+
((se = te.router) == null ? void 0 : se.mode) === "hash" && (B = K.replace("#", "")), ((ge = r.data.get().initOptions.router) == null ? void 0 : ge.mode) === "hash" && (le = "/".concat(L), B = "/#".concat(B)), le !== B && (O.value = true, setTimeout(function () {
|
|
5145
5146
|
O.value = false;
|
|
5146
|
-
}, 300), i.replaceState(
|
|
5147
|
-
}), o.cors.on("customEventFromMicro", function (
|
|
5148
|
-
|
|
5147
|
+
}, 300), i.replaceState(B));
|
|
5148
|
+
}), o.cors.on("customEventFromMicro", function (F) {
|
|
5149
|
+
var q, te;
|
|
5150
|
+
(q = F == null ? void 0 : F.data) != null && q.eventName && o.event.emit(F.data.eventName, (te = F.data) == null ? void 0 : te.params);
|
|
5149
5151
|
});
|
|
5150
|
-
$ = function $(
|
|
5152
|
+
$ = function $(F, q) {
|
|
5151
5153
|
var re;
|
|
5152
|
-
var te =
|
|
5154
|
+
var te = q.path;
|
|
5153
5155
|
var U = te;
|
|
5154
|
-
((re =
|
|
5155
|
-
appInfo:
|
|
5156
|
-
parentRouter:
|
|
5156
|
+
((re = F.router) == null ? void 0 : re.mode) === "hash" && (U = "/#".concat(te)), o.cors.send(F.name, "syncRouter", {
|
|
5157
|
+
appInfo: F,
|
|
5158
|
+
parentRouter: q,
|
|
5157
5159
|
replacePath: U
|
|
5158
5160
|
});
|
|
5159
5161
|
};
|
|
5160
|
-
window.addEventListener("popstate", function (
|
|
5162
|
+
window.addEventListener("popstate", function (F) {
|
|
5161
5163
|
j();
|
|
5162
5164
|
});
|
|
5163
5165
|
j = /*#__PURE__*/function () {
|
|
5164
5166
|
var _ref44 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
5165
|
-
var K, k,
|
|
5167
|
+
var K, k, F, _URL3, q, te, U, re, L, ne, le, pe;
|
|
5166
5168
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
5167
5169
|
while (1) switch (_context7.prev = _context7.next) {
|
|
5168
5170
|
case 0:
|
|
@@ -5173,15 +5175,15 @@ var Jc = /*#__PURE__*/function () {
|
|
|
5173
5175
|
return _context7.abrupt("return");
|
|
5174
5176
|
case 2:
|
|
5175
5177
|
_context7.next = 4;
|
|
5176
|
-
return new Promise(function (
|
|
5177
|
-
return setTimeout(
|
|
5178
|
+
return new Promise(function (B) {
|
|
5179
|
+
return setTimeout(B, 0);
|
|
5178
5180
|
});
|
|
5179
5181
|
case 4:
|
|
5180
|
-
|
|
5181
|
-
re =
|
|
5182
|
-
|
|
5183
|
-
L = i.match(re), ne = c.value.find(function (
|
|
5184
|
-
return L ? L ===
|
|
5182
|
+
F = ((K = r.data.get().initOptions.router) == null ? void 0 : K.mode) || "history", _URL3 = new URL(window.location.href), q = _URL3.pathname, te = _URL3.hash, U = _URL3.search;
|
|
5183
|
+
re = q + U;
|
|
5184
|
+
F === "hash" && (re = te.replace("#", ""));
|
|
5185
|
+
L = i.match(re), ne = c.value.find(function (B) {
|
|
5186
|
+
return L ? L === B.name : false;
|
|
5185
5187
|
});
|
|
5186
5188
|
le = re;
|
|
5187
5189
|
if (!(((k = ne == null ? void 0 : ne.router) == null ? void 0 : k.mode) === "hash" && (le = "/#".concat(re)), !ne)) {
|
|
@@ -5198,7 +5200,7 @@ var Jc = /*#__PURE__*/function () {
|
|
|
5198
5200
|
});
|
|
5199
5201
|
pe = {
|
|
5200
5202
|
href: window.location.href,
|
|
5201
|
-
mode:
|
|
5203
|
+
mode: F,
|
|
5202
5204
|
path: re
|
|
5203
5205
|
};
|
|
5204
5206
|
_context7.t0 = h(ne.name, "deactivated");
|
|
@@ -5267,7 +5269,7 @@ function ro() {
|
|
|
5267
5269
|
O = "(?!".concat(n, "{0,1}").concat(l, ")"),
|
|
5268
5270
|
$ = "(?!".concat(p, ")"),
|
|
5269
5271
|
j = "[^.".concat(s, "]"),
|
|
5270
|
-
|
|
5272
|
+
F = "".concat(c, "*?"),
|
|
5271
5273
|
te = {
|
|
5272
5274
|
DOT_LITERAL: n,
|
|
5273
5275
|
PLUS_LITERAL: r,
|
|
@@ -5282,7 +5284,7 @@ function ro() {
|
|
|
5282
5284
|
NO_DOT_SLASH: O,
|
|
5283
5285
|
NO_DOTS_SLASH: $,
|
|
5284
5286
|
QMARK_NO_DOT: j,
|
|
5285
|
-
STAR:
|
|
5287
|
+
STAR: F,
|
|
5286
5288
|
START_ANCHOR: E,
|
|
5287
5289
|
SEP: "/"
|
|
5288
5290
|
},
|
|
@@ -5533,10 +5535,10 @@ function Sf() {
|
|
|
5533
5535
|
O = _ro2.CHAR_RIGHT_CURLY_BRACE,
|
|
5534
5536
|
$ = _ro2.CHAR_RIGHT_PARENTHESES,
|
|
5535
5537
|
j = _ro2.CHAR_RIGHT_SQUARE_BRACKET,
|
|
5536
|
-
|
|
5538
|
+
F = function F(U) {
|
|
5537
5539
|
return U === c || U === r;
|
|
5538
5540
|
},
|
|
5539
|
-
|
|
5541
|
+
q = function q(U) {
|
|
5540
5542
|
U.isPrefix !== true && (U.depth = U.isGlobstar ? 1 / 0 : 1);
|
|
5541
5543
|
};
|
|
5542
5544
|
return Ao = function Ao(U, re) {
|
|
@@ -5546,13 +5548,13 @@ function Sf() {
|
|
|
5546
5548
|
pe = [],
|
|
5547
5549
|
K = [],
|
|
5548
5550
|
k = [];
|
|
5549
|
-
var
|
|
5551
|
+
var B = U,
|
|
5550
5552
|
N = -1,
|
|
5551
5553
|
se = 0,
|
|
5552
5554
|
ge = 0,
|
|
5553
5555
|
we = false,
|
|
5554
5556
|
ve = false,
|
|
5555
|
-
|
|
5557
|
+
J = false,
|
|
5556
5558
|
ie = false,
|
|
5557
5559
|
ye = false,
|
|
5558
5560
|
D = false,
|
|
@@ -5572,10 +5574,10 @@ function Sf() {
|
|
|
5572
5574
|
return N >= ne;
|
|
5573
5575
|
},
|
|
5574
5576
|
_e = function _e() {
|
|
5575
|
-
return
|
|
5577
|
+
return B.charCodeAt(N + 1);
|
|
5576
5578
|
},
|
|
5577
5579
|
W = function W() {
|
|
5578
|
-
return ke = Z,
|
|
5580
|
+
return ke = Z, B.charCodeAt(++N);
|
|
5579
5581
|
};
|
|
5580
5582
|
for (; N < ne;) {
|
|
5581
5583
|
Z = W();
|
|
@@ -5595,11 +5597,11 @@ function Sf() {
|
|
|
5595
5597
|
continue;
|
|
5596
5598
|
}
|
|
5597
5599
|
if (D !== true && Z === s && (Z = W()) === s) {
|
|
5598
|
-
if (we = de.isBrace = true,
|
|
5600
|
+
if (we = de.isBrace = true, J = de.isGlob = true, S = true, le === true) continue;
|
|
5599
5601
|
break;
|
|
5600
5602
|
}
|
|
5601
5603
|
if (D !== true && Z === o) {
|
|
5602
|
-
if (we = de.isBrace = true,
|
|
5604
|
+
if (we = de.isBrace = true, J = de.isGlob = true, S = true, le === true) continue;
|
|
5603
5605
|
break;
|
|
5604
5606
|
}
|
|
5605
5607
|
if (Z === O && (x--, x === 0)) {
|
|
@@ -5624,14 +5626,14 @@ function Sf() {
|
|
|
5624
5626
|
continue;
|
|
5625
5627
|
}
|
|
5626
5628
|
if (L.noext !== true && (Z === d || Z === n || Z === t || Z === h || Z === i) === true && _e() === E) {
|
|
5627
|
-
if (
|
|
5629
|
+
if (J = de.isGlob = true, ie = de.isExtglob = true, S = true, Z === i && N === se && (Pe = true), le === true) {
|
|
5628
5630
|
for (; $e() !== true && (Z = W());) {
|
|
5629
5631
|
if (Z === r) {
|
|
5630
5632
|
Oe = de.backslashes = true, Z = W();
|
|
5631
5633
|
continue;
|
|
5632
5634
|
}
|
|
5633
5635
|
if (Z === $) {
|
|
5634
|
-
|
|
5636
|
+
J = de.isGlob = true, S = true;
|
|
5635
5637
|
break;
|
|
5636
5638
|
}
|
|
5637
5639
|
}
|
|
@@ -5640,11 +5642,11 @@ function Sf() {
|
|
|
5640
5642
|
break;
|
|
5641
5643
|
}
|
|
5642
5644
|
if (Z === t) {
|
|
5643
|
-
if (ke === t && (ye = de.isGlobstar = true),
|
|
5645
|
+
if (ke === t && (ye = de.isGlobstar = true), J = de.isGlob = true, S = true, le === true) continue;
|
|
5644
5646
|
break;
|
|
5645
5647
|
}
|
|
5646
5648
|
if (Z === h) {
|
|
5647
|
-
if (
|
|
5649
|
+
if (J = de.isGlob = true, S = true, le === true) continue;
|
|
5648
5650
|
break;
|
|
5649
5651
|
}
|
|
5650
5652
|
if (Z === p) {
|
|
@@ -5654,7 +5656,7 @@ function Sf() {
|
|
|
5654
5656
|
continue;
|
|
5655
5657
|
}
|
|
5656
5658
|
if (C === j) {
|
|
5657
|
-
ve = de.isBracket = true,
|
|
5659
|
+
ve = de.isBracket = true, J = de.isGlob = true, S = true;
|
|
5658
5660
|
break;
|
|
5659
5661
|
}
|
|
5660
5662
|
}
|
|
@@ -5666,7 +5668,7 @@ function Sf() {
|
|
|
5666
5668
|
continue;
|
|
5667
5669
|
}
|
|
5668
5670
|
if (L.noparen !== true && Z === E) {
|
|
5669
|
-
if (
|
|
5671
|
+
if (J = de.isGlob = true, le === true) {
|
|
5670
5672
|
for (; $e() !== true && (Z = W());) {
|
|
5671
5673
|
if (Z === E) {
|
|
5672
5674
|
Oe = de.backslashes = true, Z = W();
|
|
@@ -5681,16 +5683,16 @@ function Sf() {
|
|
|
5681
5683
|
}
|
|
5682
5684
|
break;
|
|
5683
5685
|
}
|
|
5684
|
-
if (
|
|
5686
|
+
if (J === true) {
|
|
5685
5687
|
if (S = true, le === true) continue;
|
|
5686
5688
|
break;
|
|
5687
5689
|
}
|
|
5688
5690
|
}
|
|
5689
|
-
L.noext === true && (ie = false,
|
|
5690
|
-
var Me =
|
|
5691
|
+
L.noext === true && (ie = false, J = false);
|
|
5692
|
+
var Me = B,
|
|
5691
5693
|
f = "",
|
|
5692
5694
|
g = "";
|
|
5693
|
-
se > 0 && (f =
|
|
5695
|
+
se > 0 && (f = B.slice(0, se), B = B.slice(se), ge -= se), Me && J === true && ge > 0 ? (Me = B.slice(0, ge), g = B.slice(ge)) : J === true ? (Me = "", g = B) : Me = B, Me && Me !== "" && Me !== "/" && Me !== B && F(Me.charCodeAt(Me.length - 1)) && (Me = Me.slice(0, -1)), L.unescape === true && (g && (g = e.removeBackslashes(g)), Me && Oe === true && (Me = e.removeBackslashes(Me)));
|
|
5694
5696
|
var y = {
|
|
5695
5697
|
prefix: f,
|
|
5696
5698
|
input: U,
|
|
@@ -5699,23 +5701,23 @@ function Sf() {
|
|
|
5699
5701
|
glob: g,
|
|
5700
5702
|
isBrace: we,
|
|
5701
5703
|
isBracket: ve,
|
|
5702
|
-
isGlob:
|
|
5704
|
+
isGlob: J,
|
|
5703
5705
|
isExtglob: ie,
|
|
5704
5706
|
isGlobstar: ye,
|
|
5705
5707
|
negated: Re,
|
|
5706
5708
|
negatedExtglob: Pe
|
|
5707
5709
|
};
|
|
5708
|
-
if (L.tokens === true && (y.maxDepth = 0,
|
|
5710
|
+
if (L.tokens === true && (y.maxDepth = 0, F(Z) || K.push(de), y.tokens = K), L.parts === true || L.tokens === true) {
|
|
5709
5711
|
var _C;
|
|
5710
5712
|
for (var R = 0; R < pe.length; R++) {
|
|
5711
5713
|
var _ = _C ? _C + 1 : se,
|
|
5712
5714
|
P = pe[R],
|
|
5713
5715
|
b = U.slice(_, P);
|
|
5714
|
-
L.tokens && (R === 0 && se !== 0 ? (K[R].isPrefix = true, K[R].value = f) : K[R].value = b,
|
|
5716
|
+
L.tokens && (R === 0 && se !== 0 ? (K[R].isPrefix = true, K[R].value = f) : K[R].value = b, q(K[R]), y.maxDepth += K[R].depth), (R !== 0 || b !== "") && k.push(b), _C = P;
|
|
5715
5717
|
}
|
|
5716
5718
|
if (_C && _C + 1 < U.length) {
|
|
5717
5719
|
var _R = U.slice(_C + 1);
|
|
5718
|
-
k.push(_R), L.tokens && (K[K.length - 1].value = _R,
|
|
5720
|
+
k.push(_R), L.tokens && (K[K.length - 1].value = _R, q(K[K.length - 1]), y.maxDepth += K[K.length - 1].depth);
|
|
5719
5721
|
}
|
|
5720
5722
|
y.slashes = pe, y.parts = k;
|
|
5721
5723
|
}
|
|
@@ -5761,8 +5763,8 @@ function Af() {
|
|
|
5761
5763
|
value: "",
|
|
5762
5764
|
output: h.prepend || ""
|
|
5763
5765
|
},
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
+
F = [j],
|
|
5767
|
+
q = h.capture ? "" : "?:",
|
|
5766
5768
|
te = e.globChars(h.windows),
|
|
5767
5769
|
U = e.extglobChars(te),
|
|
5768
5770
|
re = te.DOT_LITERAL,
|
|
@@ -5772,15 +5774,15 @@ function Af() {
|
|
|
5772
5774
|
pe = te.DOTS_SLASH,
|
|
5773
5775
|
K = te.NO_DOT,
|
|
5774
5776
|
k = te.NO_DOT_SLASH,
|
|
5775
|
-
|
|
5777
|
+
B = te.NO_DOTS_SLASH,
|
|
5776
5778
|
N = te.QMARK,
|
|
5777
5779
|
se = te.QMARK_NO_DOT,
|
|
5778
5780
|
ge = te.STAR,
|
|
5779
5781
|
we = te.START_ANCHOR,
|
|
5780
5782
|
ve = function ve(_) {
|
|
5781
|
-
return "(".concat(
|
|
5783
|
+
return "(".concat(q, "(?:(?!").concat(we).concat(_.dot ? pe : re, ").)*?)");
|
|
5782
5784
|
},
|
|
5783
|
-
|
|
5785
|
+
J = h.dot ? "" : K,
|
|
5784
5786
|
ie = h.dot ? N : se;
|
|
5785
5787
|
var ye = h.bash === true ? ve(h) : ge;
|
|
5786
5788
|
h.capture && (ye = "(".concat(ye, ")")), typeof h.noext == "boolean" && (h.noextglob = h.noext);
|
|
@@ -5799,7 +5801,7 @@ function Af() {
|
|
|
5799
5801
|
parens: 0,
|
|
5800
5802
|
quotes: 0,
|
|
5801
5803
|
globstar: false,
|
|
5802
|
-
tokens:
|
|
5804
|
+
tokens: F
|
|
5803
5805
|
};
|
|
5804
5806
|
p = t.removePrefix(p, D), $ = p.length;
|
|
5805
5807
|
var Oe = [],
|
|
@@ -5849,7 +5851,7 @@ function Af() {
|
|
|
5849
5851
|
S.output = (S.output || S.value) + _.value, S.value += _.value;
|
|
5850
5852
|
return;
|
|
5851
5853
|
}
|
|
5852
|
-
_.prev = S,
|
|
5854
|
+
_.prev = S, F.push(_), S = _;
|
|
5853
5855
|
},
|
|
5854
5856
|
C = function C(_, P) {
|
|
5855
5857
|
var b = _objectSpread(_objectSpread({}, U[P]), {}, {
|
|
@@ -5929,7 +5931,7 @@ function Af() {
|
|
|
5929
5931
|
G = S.value.slice(_A + 2),
|
|
5930
5932
|
M = r[G];
|
|
5931
5933
|
if (M) {
|
|
5932
|
-
S.value = _T + M, D.backtrack = true, de(), !j.output &&
|
|
5934
|
+
S.value = _T + M, D.backtrack = true, de(), !j.output && F.indexOf(S) === 1 && (j.output = le);
|
|
5933
5935
|
continue;
|
|
5934
5936
|
}
|
|
5935
5937
|
}
|
|
@@ -6012,7 +6014,7 @@ function Af() {
|
|
|
6012
6014
|
D.output += _A2, S.value = _A2;
|
|
6013
6015
|
continue;
|
|
6014
6016
|
}
|
|
6015
|
-
S.value = "(".concat(
|
|
6017
|
+
S.value = "(".concat(q).concat(_A2, "|").concat(S.value, ")"), D.output += S.value;
|
|
6016
6018
|
continue;
|
|
6017
6019
|
}
|
|
6018
6020
|
if (x === "{" && h.nobrace !== true) {
|
|
@@ -6039,9 +6041,9 @@ function Af() {
|
|
|
6039
6041
|
}
|
|
6040
6042
|
var _A3 = ")";
|
|
6041
6043
|
if (_b6.dots === true) {
|
|
6042
|
-
var _T2 =
|
|
6044
|
+
var _T2 = F.slice(),
|
|
6043
6045
|
_G = [];
|
|
6044
|
-
for (var _M3 = _T2.length - 1; _M3 >= 0 && (
|
|
6046
|
+
for (var _M3 = _T2.length - 1; _M3 >= 0 && (F.pop(), _T2[_M3].type !== "brace"); _M3--) _T2[_M3].type !== "dots" && _G.unshift(_T2[_M3].value);
|
|
6045
6047
|
_A3 = c(_G, h), D.backtrack = true;
|
|
6046
6048
|
}
|
|
6047
6049
|
if (_b6.comma !== true && _b6.dots !== true) {
|
|
@@ -6087,7 +6089,7 @@ function Af() {
|
|
|
6087
6089
|
}
|
|
6088
6090
|
if (x === "/") {
|
|
6089
6091
|
if (S.type === "dot" && D.index === D.start + 1) {
|
|
6090
|
-
D.start = D.index + 1, D.consumed = "", D.output = "",
|
|
6092
|
+
D.start = D.index + 1, D.consumed = "", D.output = "", F.pop(), S = j;
|
|
6091
6093
|
continue;
|
|
6092
6094
|
}
|
|
6093
6095
|
y({
|
|
@@ -6285,14 +6287,14 @@ function Af() {
|
|
|
6285
6287
|
output: ye
|
|
6286
6288
|
};
|
|
6287
6289
|
if (h.bash === true) {
|
|
6288
|
-
_P.output = ".*?", (S.type === "bos" || S.type === "slash") && (_P.output =
|
|
6290
|
+
_P.output = ".*?", (S.type === "bos" || S.type === "slash") && (_P.output = J + _P.output), y(_P);
|
|
6289
6291
|
continue;
|
|
6290
6292
|
}
|
|
6291
6293
|
if (S && (S.type === "bracket" || S.type === "paren") && h.regex === true) {
|
|
6292
6294
|
_P.output = x, y(_P);
|
|
6293
6295
|
continue;
|
|
6294
6296
|
}
|
|
6295
|
-
(D.index === D.start || S.type === "slash" || S.type === "dot") && (S.type === "dot" ? (D.output += k, S.output += k) : h.dot === true ? (D.output +=
|
|
6297
|
+
(D.index === D.start || S.type === "slash" || S.type === "dot") && (S.type === "dot" ? (D.output += k, S.output += k) : h.dot === true ? (D.output += B, S.output += B) : (D.output += J, S.output += J), Z() !== "*" && (D.output += le, S.output += le)), y(_P);
|
|
6296
6298
|
}
|
|
6297
6299
|
for (; D.brackets > 0;) {
|
|
6298
6300
|
if (h.strictBrackets === true) throw new SyntaxError(l("closing", "]"));
|
|
@@ -6335,8 +6337,8 @@ function Af() {
|
|
|
6335
6337
|
p = i[p] || p;
|
|
6336
6338
|
var _e$globChars = e.globChars(h.windows),
|
|
6337
6339
|
j = _e$globChars.DOT_LITERAL,
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
+
F = _e$globChars.SLASH_LITERAL,
|
|
6341
|
+
q = _e$globChars.ONE_CHAR,
|
|
6340
6342
|
te = _e$globChars.DOTS_SLASH,
|
|
6341
6343
|
U = _e$globChars.NO_DOT,
|
|
6342
6344
|
re = _e$globChars.NO_DOTS,
|
|
@@ -6346,45 +6348,45 @@ function Af() {
|
|
|
6346
6348
|
pe = h.dot ? re : U,
|
|
6347
6349
|
K = h.dot ? L : U,
|
|
6348
6350
|
k = h.capture ? "" : "?:",
|
|
6349
|
-
|
|
6351
|
+
B = {
|
|
6350
6352
|
negated: false,
|
|
6351
6353
|
prefix: ""
|
|
6352
6354
|
};
|
|
6353
6355
|
var N = h.bash === true ? ".*?" : ne;
|
|
6354
6356
|
h.capture && (N = "(".concat(N, ")"));
|
|
6355
|
-
var se = function se(
|
|
6356
|
-
return
|
|
6357
|
+
var se = function se(J) {
|
|
6358
|
+
return J.noglobstar === true ? N : "(".concat(k, "(?:(?!").concat(le).concat(J.dot ? te : j, ").)*?)");
|
|
6357
6359
|
},
|
|
6358
|
-
_ge = function ge(
|
|
6359
|
-
switch (
|
|
6360
|
+
_ge = function ge(J) {
|
|
6361
|
+
switch (J) {
|
|
6360
6362
|
case "*":
|
|
6361
|
-
return "".concat(pe).concat(
|
|
6363
|
+
return "".concat(pe).concat(q).concat(N);
|
|
6362
6364
|
case ".*":
|
|
6363
|
-
return "".concat(j).concat(
|
|
6365
|
+
return "".concat(j).concat(q).concat(N);
|
|
6364
6366
|
case "*.*":
|
|
6365
|
-
return "".concat(pe).concat(N).concat(j).concat(
|
|
6367
|
+
return "".concat(pe).concat(N).concat(j).concat(q).concat(N);
|
|
6366
6368
|
case "*/*":
|
|
6367
|
-
return "".concat(pe).concat(N).concat(
|
|
6369
|
+
return "".concat(pe).concat(N).concat(F).concat(q).concat(K).concat(N);
|
|
6368
6370
|
case "**":
|
|
6369
6371
|
return pe + se(h);
|
|
6370
6372
|
case "**/*":
|
|
6371
|
-
return "(?:".concat(pe).concat(se(h)).concat(
|
|
6373
|
+
return "(?:".concat(pe).concat(se(h)).concat(F, ")?").concat(K).concat(q).concat(N);
|
|
6372
6374
|
case "**/*.*":
|
|
6373
|
-
return "(?:".concat(pe).concat(se(h)).concat(
|
|
6375
|
+
return "(?:".concat(pe).concat(se(h)).concat(F, ")?").concat(K).concat(N).concat(j).concat(q).concat(N);
|
|
6374
6376
|
case "**/.*":
|
|
6375
|
-
return "(?:".concat(pe).concat(se(h)).concat(
|
|
6377
|
+
return "(?:".concat(pe).concat(se(h)).concat(F, ")?").concat(j).concat(q).concat(N);
|
|
6376
6378
|
default:
|
|
6377
6379
|
{
|
|
6378
|
-
var ie = /^(.*?)\.(\w+)$/.exec(
|
|
6380
|
+
var ie = /^(.*?)\.(\w+)$/.exec(J);
|
|
6379
6381
|
if (!ie) return;
|
|
6380
6382
|
var ye = _ge(ie[1]);
|
|
6381
6383
|
return ye ? ye + j + ie[2] : void 0;
|
|
6382
6384
|
}
|
|
6383
6385
|
}
|
|
6384
6386
|
},
|
|
6385
|
-
we = t.removePrefix(p,
|
|
6387
|
+
we = t.removePrefix(p, B);
|
|
6386
6388
|
var ve = _ge(we);
|
|
6387
|
-
return ve && h.strictSlashes !== true && (ve += "".concat(
|
|
6389
|
+
return ve && h.strictSlashes !== true && (ve += "".concat(F, "?")), ve;
|
|
6388
6390
|
}, No = _E2, No;
|
|
6389
6391
|
}
|
|
6390
6392
|
var To, pi;
|
|
@@ -6401,11 +6403,11 @@ function Nf() {
|
|
|
6401
6403
|
_s5 = function s(i, c) {
|
|
6402
6404
|
var l = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
6403
6405
|
if (Array.isArray(i)) {
|
|
6404
|
-
var
|
|
6406
|
+
var F = i.map(function (te) {
|
|
6405
6407
|
return _s5(te, c, l);
|
|
6406
6408
|
});
|
|
6407
6409
|
return function (te) {
|
|
6408
|
-
var _iterator7 = _createForOfIteratorHelper(
|
|
6410
|
+
var _iterator7 = _createForOfIteratorHelper(F),
|
|
6409
6411
|
_step7;
|
|
6410
6412
|
try {
|
|
6411
6413
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -6432,16 +6434,16 @@ function Nf() {
|
|
|
6432
6434
|
return false;
|
|
6433
6435
|
};
|
|
6434
6436
|
if (p.ignore) {
|
|
6435
|
-
var
|
|
6437
|
+
var _F = _objectSpread(_objectSpread({}, c), {}, {
|
|
6436
6438
|
ignore: null,
|
|
6437
6439
|
onMatch: null,
|
|
6438
6440
|
onResult: null
|
|
6439
6441
|
});
|
|
6440
|
-
$ = _s5(p.ignore,
|
|
6442
|
+
$ = _s5(p.ignore, _F, l);
|
|
6441
6443
|
}
|
|
6442
|
-
var j = function j(
|
|
6443
|
-
var
|
|
6444
|
-
var _s$test = _s5.test(
|
|
6444
|
+
var j = function j(F) {
|
|
6445
|
+
var q = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
6446
|
+
var _s$test = _s5.test(F, h, c, {
|
|
6445
6447
|
glob: i,
|
|
6446
6448
|
posix: d
|
|
6447
6449
|
}),
|
|
@@ -6453,12 +6455,12 @@ function Nf() {
|
|
|
6453
6455
|
state: O,
|
|
6454
6456
|
regex: h,
|
|
6455
6457
|
posix: d,
|
|
6456
|
-
input:
|
|
6458
|
+
input: F,
|
|
6457
6459
|
output: re,
|
|
6458
6460
|
match: U,
|
|
6459
6461
|
isMatch: te
|
|
6460
6462
|
};
|
|
6461
|
-
return typeof p.onResult == "function" && p.onResult(L), te === false ? (L.isMatch = false,
|
|
6463
|
+
return typeof p.onResult == "function" && p.onResult(L), te === false ? (L.isMatch = false, q ? L : false) : $(F) ? (typeof p.onIgnore == "function" && p.onIgnore(L), L.isMatch = false, q ? L : false) : (typeof p.onMatch == "function" && p.onMatch(L), q ? L : true);
|
|
6462
6464
|
};
|
|
6463
6465
|
return l && (j.state = O), j;
|
|
6464
6466
|
};
|
|
@@ -6729,7 +6731,8 @@ var Df = function Df() {
|
|
|
6729
6731
|
$f = function $f() {
|
|
6730
6732
|
var e = vt("microApp");
|
|
6731
6733
|
e.cors.on("customEventFromMain", function (t) {
|
|
6732
|
-
|
|
6734
|
+
var n, r;
|
|
6735
|
+
(n = t.data) != null && n.eventName && e.event.emit(t.data.eventName, (r = t.data) == null ? void 0 : r.params);
|
|
6733
6736
|
});
|
|
6734
6737
|
},
|
|
6735
6738
|
Ig = /*#__PURE__*/function () {
|
|
@@ -7684,7 +7687,7 @@ function hg() {
|
|
|
7684
7687
|
u = $(a);
|
|
7685
7688
|
return u && a.mockDomain && a.mockDomain.indexOf(c.MOCK) === 0 ? a.mockDomain : u;
|
|
7686
7689
|
}
|
|
7687
|
-
function
|
|
7690
|
+
function F(a) {
|
|
7688
7691
|
try {
|
|
7689
7692
|
if (a === window) return !0;
|
|
7690
7693
|
} catch (_unused12) {}
|
|
@@ -7700,7 +7703,7 @@ function hg() {
|
|
|
7700
7703
|
} catch (_unused15) {}
|
|
7701
7704
|
return false;
|
|
7702
7705
|
}
|
|
7703
|
-
function
|
|
7706
|
+
function q(a, u) {
|
|
7704
7707
|
if (!a || !u) return false;
|
|
7705
7708
|
var m = d(u);
|
|
7706
7709
|
return m ? m === a : function (v) {
|
|
@@ -7768,7 +7771,7 @@ function hg() {
|
|
|
7768
7771
|
return !w || w.message !== E;
|
|
7769
7772
|
}
|
|
7770
7773
|
if (u && function (w) {
|
|
7771
|
-
if (!
|
|
7774
|
+
if (!F(w)) return false;
|
|
7772
7775
|
try {
|
|
7773
7776
|
if (w === window || p(w) && O(w) || j(window) === j(w)) return !0;
|
|
7774
7777
|
} catch (_unused23) {}
|
|
@@ -7853,7 +7856,7 @@ function hg() {
|
|
|
7853
7856
|
return -1;
|
|
7854
7857
|
}
|
|
7855
7858
|
var k,
|
|
7856
|
-
|
|
7859
|
+
B = function () {
|
|
7857
7860
|
function a() {
|
|
7858
7861
|
if (function (u, m) {
|
|
7859
7862
|
if (!(u instanceof a)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -8042,7 +8045,7 @@ function hg() {
|
|
|
8042
8045
|
return "Error while stringifying error: " + ve(w, u + 1);
|
|
8043
8046
|
}
|
|
8044
8047
|
}
|
|
8045
|
-
var
|
|
8048
|
+
var J = function J(a) {
|
|
8046
8049
|
if (!a) return a;
|
|
8047
8050
|
var u = false;
|
|
8048
8051
|
return function () {
|
|
@@ -8177,9 +8180,9 @@ function hg() {
|
|
|
8177
8180
|
X = Y.onSuccess,
|
|
8178
8181
|
ae = Y.onError,
|
|
8179
8182
|
ee = Y.promise,
|
|
8180
|
-
|
|
8183
|
+
z = void 0;
|
|
8181
8184
|
if (m) try {
|
|
8182
|
-
|
|
8185
|
+
z = X ? X(this.value) : this.value;
|
|
8183
8186
|
} catch (fe) {
|
|
8184
8187
|
ee.reject(fe);
|
|
8185
8188
|
continue;
|
|
@@ -8189,13 +8192,13 @@ function hg() {
|
|
|
8189
8192
|
continue;
|
|
8190
8193
|
}
|
|
8191
8194
|
try {
|
|
8192
|
-
|
|
8195
|
+
z = ae(this.error);
|
|
8193
8196
|
} catch (fe) {
|
|
8194
8197
|
ee.reject(fe);
|
|
8195
8198
|
continue;
|
|
8196
8199
|
}
|
|
8197
8200
|
}
|
|
8198
|
-
|
|
8201
|
+
z instanceof a && (z.resolved || z.rejected) ? (z.resolved ? ee.resolve(z.value) : ee.reject(z.error), z.errorHandled = true) : Re(z) ? z instanceof a && (z.resolved || z.rejected) ? z.resolved ? ee.resolve(z.value) : ee.reject(z.error) : I(z, ee) : ee.resolve(z);
|
|
8199
8202
|
}
|
|
8200
8203
|
w.length = 0, this.dispatching = false, $e();
|
|
8201
8204
|
}
|
|
@@ -8247,10 +8250,10 @@ function hg() {
|
|
|
8247
8250
|
w = [];
|
|
8248
8251
|
if (!v) return m.resolve(w), m;
|
|
8249
8252
|
for (var I = function I(X, ae, ee) {
|
|
8250
|
-
return ae.then(function (
|
|
8251
|
-
w[X] =
|
|
8252
|
-
}, function (
|
|
8253
|
-
ee.reject(
|
|
8253
|
+
return ae.then(function (z) {
|
|
8254
|
+
w[X] = z, (v -= 1) == 0 && m.resolve(w);
|
|
8255
|
+
}, function (z) {
|
|
8256
|
+
ee.reject(z);
|
|
8254
8257
|
});
|
|
8255
8258
|
}, V = 0; V < u.length; V++) {
|
|
8256
8259
|
var Y = u[V];
|
|
@@ -8315,8 +8318,8 @@ function hg() {
|
|
|
8315
8318
|
} : function (a) {
|
|
8316
8319
|
return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : _typeof(a);
|
|
8317
8320
|
};
|
|
8318
|
-
W.methods = W.methods || new
|
|
8319
|
-
var f =
|
|
8321
|
+
W.methods = W.methods || new B();
|
|
8322
|
+
var f = J(function () {
|
|
8320
8323
|
W.on(N.POST_MESSAGE_NAMES.METHOD, {
|
|
8321
8324
|
origin: N.WILDCARD
|
|
8322
8325
|
}, function (a) {
|
|
@@ -8381,7 +8384,7 @@ function hg() {
|
|
|
8381
8384
|
return C(a, u, m.__then__)(v, w);
|
|
8382
8385
|
});
|
|
8383
8386
|
}
|
|
8384
|
-
W.readyPromises = W.readyPromises || new
|
|
8387
|
+
W.readyPromises = W.readyPromises || new B();
|
|
8385
8388
|
function _(a) {
|
|
8386
8389
|
return W.send(a, N.POST_MESSAGE_NAMES.HELLO, {}, {
|
|
8387
8390
|
domain: N.WILDCARD,
|
|
@@ -8397,7 +8400,7 @@ function hg() {
|
|
|
8397
8400
|
(Array.isArray(m) ? m : typeof m == "string" ? [m] : [N.WILDCARD]).map(function (v) {
|
|
8398
8401
|
if (v.indexOf(N.MOCK_PROTOCOL) === 0) {
|
|
8399
8402
|
if (window.location.protocol === N.FILE_PROTOCOL) return N.WILDCARD;
|
|
8400
|
-
if (!
|
|
8403
|
+
if (!F(a)) throw new Error("Attempting to send messsage to mock domain " + v + ", but window is actually cross-domain");
|
|
8401
8404
|
return $(a);
|
|
8402
8405
|
}
|
|
8403
8406
|
return v.indexOf(N.FILE_PROTOCOL) === 0 ? N.WILDCARD : v;
|
|
@@ -8425,9 +8428,9 @@ function hg() {
|
|
|
8425
8428
|
var fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
|
|
8426
8429
|
return !!d(fe);
|
|
8427
8430
|
}() ? N.WINDOW_TYPES.IFRAME : N.WINDOW_TYPES.FULLPAGE,
|
|
8428
|
-
|
|
8431
|
+
z = j(window);
|
|
8429
8432
|
return b({}, Y, X, {
|
|
8430
|
-
sourceDomain:
|
|
8433
|
+
sourceDomain: z,
|
|
8431
8434
|
id: Y.id || ae,
|
|
8432
8435
|
windowType: ee
|
|
8433
8436
|
});
|
|
@@ -8436,10 +8439,10 @@ function hg() {
|
|
|
8436
8439
|
return D({
|
|
8437
8440
|
obj: u.data
|
|
8438
8441
|
}, function (ae, ee) {
|
|
8439
|
-
return typeof ae == "function" ? y(V, Y, ae, ee.toString()) : ae instanceof Error ? (
|
|
8442
|
+
return typeof ae == "function" ? y(V, Y, ae, ee.toString()) : ae instanceof Error ? (z = ae, {
|
|
8440
8443
|
__type__: N.SERIALIZATION_TYPES.ERROR,
|
|
8441
|
-
__message__: ve(
|
|
8442
|
-
__code__:
|
|
8444
|
+
__message__: ve(z),
|
|
8445
|
+
__code__: z.code
|
|
8443
8446
|
}) : window.Promise && ae instanceof window.Promise ? function (he, Le, ze, Ie) {
|
|
8444
8447
|
return {
|
|
8445
8448
|
__type__: N.SERIALIZATION_TYPES.PROMISE,
|
|
@@ -8458,7 +8461,7 @@ function hg() {
|
|
|
8458
8461
|
__type__: N.SERIALIZATION_TYPES.REGEX,
|
|
8459
8462
|
__source__: fe.source
|
|
8460
8463
|
}) : void 0;
|
|
8461
|
-
var
|
|
8464
|
+
var z, fe;
|
|
8462
8465
|
}).obj;
|
|
8463
8466
|
}(a, m),
|
|
8464
8467
|
domain: m
|
|
@@ -8474,13 +8477,13 @@ function hg() {
|
|
|
8474
8477
|
} catch (fe) {
|
|
8475
8478
|
throw new Error("Can not repair JSON.stringify: " + fe.message);
|
|
8476
8479
|
}
|
|
8477
|
-
var
|
|
8480
|
+
var z = JSON.stringify.call(this, V, null, 2);
|
|
8478
8481
|
try {
|
|
8479
8482
|
ae && (Object.prototype.toJSON = ae), ee && (Array.prototype.toJSON = ee);
|
|
8480
8483
|
} catch (fe) {
|
|
8481
8484
|
throw new Error("Can not repair JSON.stringify: " + fe.message);
|
|
8482
8485
|
}
|
|
8483
|
-
return
|
|
8486
|
+
return z;
|
|
8484
8487
|
}(((v = {})[N.WINDOW_PROPS.POSTROBOT] = u, v));
|
|
8485
8488
|
return _e.map(Object.keys(P), function (V) {
|
|
8486
8489
|
return _e["try"](function () {
|
|
@@ -8522,8 +8525,8 @@ function hg() {
|
|
|
8522
8525
|
if (ae) {
|
|
8523
8526
|
if (v && typeof v == "string") {
|
|
8524
8527
|
if (ae[v]) return ae[v];
|
|
8525
|
-
if (ae[G]) for (var ee = 0,
|
|
8526
|
-
var he =
|
|
8528
|
+
if (ae[G]) for (var ee = 0, z = ae[G], fe = z == null ? 0 : z.length; ee < fe; ee++) {
|
|
8529
|
+
var he = z[ee],
|
|
8527
8530
|
Le = he.regex,
|
|
8528
8531
|
ze = he.listener;
|
|
8529
8532
|
if (le(Le, v)) return ze;
|
|
@@ -8642,11 +8645,11 @@ function hg() {
|
|
|
8642
8645
|
obj: v.data
|
|
8643
8646
|
}, function (Y) {
|
|
8644
8647
|
if ((Y === void 0 ? "undefined" : Me(Y)) === "object" && Y !== null) return g(Y, N.SERIALIZATION_TYPES.METHOD) ? C(w, I, Y) : g(Y, N.SERIALIZATION_TYPES.ERROR) ? function (X, ae, ee) {
|
|
8645
|
-
var
|
|
8646
|
-
return ee.__code__ && (
|
|
8648
|
+
var z = new Error(ee.__message__);
|
|
8649
|
+
return ee.__code__ && (z.code = ee.__code__), z;
|
|
8647
8650
|
}(0, 0, Y) : g(Y, N.SERIALIZATION_TYPES.PROMISE) ? function (X, ae, ee) {
|
|
8648
|
-
return window.Promise ? new window.Promise(function (
|
|
8649
|
-
return C(X, ae, ee.__then__)(
|
|
8651
|
+
return window.Promise ? new window.Promise(function (z, fe) {
|
|
8652
|
+
return C(X, ae, ee.__then__)(z, fe);
|
|
8650
8653
|
}) : R(X, ae, ee);
|
|
8651
8654
|
}(w, I, Y) : g(Y, N.SERIALIZATION_TYPES.ZALGO_PROMISE) ? R(w, I, Y) : g(Y, N.SERIALIZATION_TYPES.REGEX) ? function (X, ae, ee) {
|
|
8652
8655
|
return new RegExp(ee.__source__);
|
|
@@ -8668,7 +8671,7 @@ function hg() {
|
|
|
8668
8671
|
data: a.data
|
|
8669
8672
|
});
|
|
8670
8673
|
}
|
|
8671
|
-
W.receiveMessage = Ge, W.requestPromises = W.requestPromises || new
|
|
8674
|
+
W.receiveMessage = Ge, W.requestPromises = W.requestPromises || new B();
|
|
8672
8675
|
function tt(a) {
|
|
8673
8676
|
return _e["try"](function () {
|
|
8674
8677
|
if (!a.name) throw new Error("Expected options.name");
|
|
@@ -8695,20 +8698,20 @@ function hg() {
|
|
|
8695
8698
|
X = W.requestPromises.get(I);
|
|
8696
8699
|
X || (X = [], W.requestPromises.set(I, X));
|
|
8697
8700
|
var ae = _e["try"](function () {
|
|
8698
|
-
if (function (ee,
|
|
8699
|
-
var fe = ne(
|
|
8701
|
+
if (function (ee, z) {
|
|
8702
|
+
var fe = ne(z);
|
|
8700
8703
|
if (fe) return fe === ee;
|
|
8701
|
-
if (
|
|
8704
|
+
if (z === ee || function () {
|
|
8702
8705
|
var Ie = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
|
|
8703
8706
|
try {
|
|
8704
8707
|
if (Ie.top) return Ie.top;
|
|
8705
8708
|
} catch (_unused45) {}
|
|
8706
8709
|
if (d(Ie) === Ie) return Ie;
|
|
8707
8710
|
try {
|
|
8708
|
-
if (
|
|
8711
|
+
if (q(window, Ie) && window.top) return window.top;
|
|
8709
8712
|
} catch (_unused46) {}
|
|
8710
8713
|
try {
|
|
8711
|
-
if (
|
|
8714
|
+
if (q(Ie, window) && window.top) return window.top;
|
|
8712
8715
|
} catch (_unused47) {}
|
|
8713
8716
|
for (var Je = 0, Ke = function Pt(lo) {
|
|
8714
8717
|
for (var Hn = [], Wn = 0, mn = te(lo), kt = mn == null ? 0 : mn.length; Wn < kt; Wn++) {
|
|
@@ -8727,16 +8730,16 @@ function hg() {
|
|
|
8727
8730
|
} catch (_unused48) {}
|
|
8728
8731
|
if (d(Ct) === Ct) return Ct;
|
|
8729
8732
|
}
|
|
8730
|
-
}(
|
|
8731
|
-
for (var he = 0, Le = te(ee), ze = Le == null ? 0 : Le.length; he < ze; he++) if (Le[he] ===
|
|
8733
|
+
}(z) === z) return false;
|
|
8734
|
+
for (var he = 0, Le = te(ee), ze = Le == null ? 0 : Le.length; he < ze; he++) if (Le[he] === z) return true;
|
|
8732
8735
|
return false;
|
|
8733
8736
|
}(window, I)) return function (ee) {
|
|
8734
|
-
var
|
|
8737
|
+
var z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5e3,
|
|
8735
8738
|
fe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "Window",
|
|
8736
8739
|
he = W.readyPromises.get(ee);
|
|
8737
|
-
return he || (he = new _e(), W.readyPromises.set(ee, he),
|
|
8738
|
-
return he.reject(new Error(fe + " did not load after " +
|
|
8739
|
-
},
|
|
8740
|
+
return he || (he = new _e(), W.readyPromises.set(ee, he), z !== -1 && setTimeout(function () {
|
|
8741
|
+
return he.reject(new Error(fe + " did not load after " + z + "ms"));
|
|
8742
|
+
}, z), he);
|
|
8740
8743
|
}(I, a.timeout || ge.CHILD_WINDOW_TIMEOUT);
|
|
8741
8744
|
}).then(function () {
|
|
8742
8745
|
var ee = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).origin;
|
|
@@ -8748,7 +8751,7 @@ function hg() {
|
|
|
8748
8751
|
v = ee;
|
|
8749
8752
|
}
|
|
8750
8753
|
if (typeof v != "string" && !Array.isArray(v)) throw new TypeError("Expected domain to be a string or array");
|
|
8751
|
-
var
|
|
8754
|
+
var z = v;
|
|
8752
8755
|
return new _e(function (fe, he) {
|
|
8753
8756
|
var Le = void 0;
|
|
8754
8757
|
if (a.fireAndForget || function (Ke, Et) {
|
|
@@ -8756,7 +8759,7 @@ function hg() {
|
|
|
8756
8759
|
}(V, Le = {
|
|
8757
8760
|
name: u,
|
|
8758
8761
|
window: I,
|
|
8759
|
-
domain:
|
|
8762
|
+
domain: z,
|
|
8760
8763
|
respond: function respond(Ke, Et) {
|
|
8761
8764
|
Ke || (Y = true, X.splice(X.indexOf(ae, 1))), Ke ? he(Ke) : fe(Et);
|
|
8762
8765
|
}
|
|
@@ -8766,7 +8769,7 @@ function hg() {
|
|
|
8766
8769
|
name: u,
|
|
8767
8770
|
data: a.data,
|
|
8768
8771
|
fireAndForget: a.fireAndForget
|
|
8769
|
-
},
|
|
8772
|
+
}, z)["catch"](he), a.fireAndForget) return fe();
|
|
8770
8773
|
var ze = ge.ACK_TIMEOUT,
|
|
8771
8774
|
Ie = a.timeout || ge.RES_TIMEOUT,
|
|
8772
8775
|
Je = 100;
|
|
@@ -8833,15 +8836,15 @@ function hg() {
|
|
|
8833
8836
|
name: u
|
|
8834
8837
|
},
|
|
8835
8838
|
I = function X(ae, ee) {
|
|
8836
|
-
var
|
|
8839
|
+
var z = ae.name,
|
|
8837
8840
|
fe = ae.win,
|
|
8838
8841
|
he = ae.domain;
|
|
8839
|
-
if (!
|
|
8842
|
+
if (!z || typeof z != "string") throw new Error("Name required to add request listener");
|
|
8840
8843
|
if (Array.isArray(fe)) {
|
|
8841
8844
|
for (var Le = [], ze = 0, Ie = fe, Je = Ie == null ? 0 : Ie.length; ze < Je; ze++) {
|
|
8842
8845
|
var Ke = Ie[ze];
|
|
8843
8846
|
Le.push(X({
|
|
8844
|
-
name:
|
|
8847
|
+
name: z,
|
|
8845
8848
|
domain: he,
|
|
8846
8849
|
win: Ke
|
|
8847
8850
|
}, ee));
|
|
@@ -8856,7 +8859,7 @@ function hg() {
|
|
|
8856
8859
|
for (var Et = [], Ct = 0, Pt = he, lo = Pt == null ? 0 : Pt.length; Ct < lo; Ct++) {
|
|
8857
8860
|
var Hn = Pt[Ct];
|
|
8858
8861
|
Et.push(X({
|
|
8859
|
-
name:
|
|
8862
|
+
name: z,
|
|
8860
8863
|
win: fe,
|
|
8861
8864
|
domain: Hn
|
|
8862
8865
|
}, ee));
|
|
@@ -8868,14 +8871,14 @@ function hg() {
|
|
|
8868
8871
|
};
|
|
8869
8872
|
}
|
|
8870
8873
|
var Wn = Ee({
|
|
8871
|
-
name:
|
|
8874
|
+
name: z,
|
|
8872
8875
|
win: fe,
|
|
8873
8876
|
domain: he
|
|
8874
8877
|
});
|
|
8875
|
-
if (fe && fe !== N.WILDCARD || (fe = W.WINDOW_WILDCARD), he = he || N.WILDCARD, Wn) throw fe && he ? new Error("Request listener already exists for " +
|
|
8878
|
+
if (fe && fe !== N.WILDCARD || (fe = W.WINDOW_WILDCARD), he = he || N.WILDCARD, Wn) throw fe && he ? new Error("Request listener already exists for " + z + " on domain " + he.toString() + " for " + (fe === W.WINDOW_WILDCARD ? "wildcard" : "specified") + " window") : fe ? new Error("Request listener already exists for " + z + " for " + (fe === W.WINDOW_WILDCARD ? "wildcard" : "specified") + " window") : he ? new Error("Request listener already exists for " + z + " on domain " + he.toString()) : new Error("Request listener already exists for " + z);
|
|
8876
8879
|
var mn = W.requestListeners,
|
|
8877
|
-
kt = mn[
|
|
8878
|
-
kt || (kt = new
|
|
8880
|
+
kt = mn[z];
|
|
8881
|
+
kt || (kt = new B(), mn[z] = kt);
|
|
8879
8882
|
var pt = kt.get(fe);
|
|
8880
8883
|
pt || (pt = {}, kt.set(fe, pt));
|
|
8881
8884
|
var vn = he.toString(),
|
|
@@ -8896,14 +8899,14 @@ function hg() {
|
|
|
8896
8899
|
}, w);
|
|
8897
8900
|
if (a.once) {
|
|
8898
8901
|
var V = w.handler;
|
|
8899
|
-
w.handler =
|
|
8902
|
+
w.handler = J(function () {
|
|
8900
8903
|
return I.cancel(), V.apply(this, arguments);
|
|
8901
8904
|
});
|
|
8902
8905
|
}
|
|
8903
8906
|
if (w.window && a.errorOnClose) var Y = function (X, ae) {
|
|
8904
8907
|
var ee = void 0;
|
|
8905
|
-
return ee = setTimeout(function
|
|
8906
|
-
ee = setTimeout(
|
|
8908
|
+
return ee = setTimeout(function z() {
|
|
8909
|
+
ee = setTimeout(z, 50), function () {
|
|
8907
8910
|
m && (m === void 0 ? "undefined" : ft(m)) === "object" && L(m) && (Y.cancel(), w.handleError(new Error("Post message target window is closed")));
|
|
8908
8911
|
}.call();
|
|
8909
8912
|
}, 50), {
|
|
@@ -9245,8 +9248,8 @@ var ga = function ga() {
|
|
|
9245
9248
|
}), br.value.appendChild(l);
|
|
9246
9249
|
_context15.next = 20;
|
|
9247
9250
|
return new Promise(function (j) {
|
|
9248
|
-
l.onload = function (
|
|
9249
|
-
return j([null,
|
|
9251
|
+
l.onload = function (F) {
|
|
9252
|
+
return j([null, F]);
|
|
9250
9253
|
}, l.onerror = function () {
|
|
9251
9254
|
return j([new Error("".concat(s, " IFrame load failed")), null]);
|
|
9252
9255
|
};
|