@das-fed/mframe 0.0.13 → 0.0.14

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.
Files changed (4) hide show
  1. package/es5.js +276 -274
  2. package/index.d.ts +2 -3
  3. package/index.js +250 -248
  4. package/package.json +1 -1
package/index.js CHANGED
@@ -1019,8 +1019,8 @@ function su(e, t, n = Ne) {
1019
1019
  "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
1020
1020
  );
1021
1021
  }, p = (L) => o ? L : rt(L) || o === !1 || o === 0 ? Wt(L, 1) : Wt(L);
1022
- let d, h, O, $, j = !1, B = !1;
1023
- if (Ve(e) ? (h = () => e.value, j = rt(e)) : An(e) ? (h = () => p(e), j = !0) : ce(e) ? (B = !0, j = e.some((L) => An(L) || rt(L)), h = () => e.map((L) => {
1022
+ let d, h, O, $, j = !1, F = !1;
1023
+ if (Ve(e) ? (h = () => e.value, j = rt(e)) : An(e) ? (h = () => p(e), j = !0) : ce(e) ? (F = !0, j = e.some((L) => An(L) || rt(L)), h = () => e.map((L) => {
1024
1024
  if (Ve(L))
1025
1025
  return L.value;
1026
1026
  if (An(L))
@@ -1048,8 +1048,8 @@ function su(e, t, n = Ne) {
1048
1048
  const L = h, ne = o === !0 ? 1 / 0 : o;
1049
1049
  h = () => Wt(L(), ne);
1050
1050
  }
1051
- const J = Pa(), te = () => {
1052
- d.stop(), J && J.active && Xo(J.effects, d);
1051
+ const q = Pa(), te = () => {
1052
+ d.stop(), q && q.active && Xo(q.effects, d);
1053
1053
  };
1054
1054
  if (s && t) {
1055
1055
  const L = t;
@@ -1057,12 +1057,12 @@ function su(e, t, n = Ne) {
1057
1057
  L(...ne), te();
1058
1058
  };
1059
1059
  }
1060
- let U = B ? new Array(e.length).fill(yr) : yr;
1060
+ let U = F ? new Array(e.length).fill(yr) : yr;
1061
1061
  const re = (L) => {
1062
1062
  if (!(!(d.flags & 1) || !d.dirty && !L))
1063
1063
  if (t) {
1064
1064
  const ne = d.run();
1065
- if (o || j || (B ? ne.some((le, pe) => Zt(le, U[pe])) : Zt(ne, U))) {
1065
+ if (o || j || (F ? ne.some((le, pe) => Zt(le, U[pe])) : Zt(ne, U))) {
1066
1066
  O && O();
1067
1067
  const le = an;
1068
1068
  an = d;
@@ -1070,7 +1070,7 @@ function su(e, t, n = Ne) {
1070
1070
  const pe = [
1071
1071
  ne,
1072
1072
  // pass undefined as the old value when it's changed for the first time
1073
- U === yr ? void 0 : B && U[0] === yr ? [] : U,
1073
+ U === yr ? void 0 : F && U[0] === yr ? [] : U,
1074
1074
  $
1075
1075
  ];
1076
1076
  l ? l(t, 3, pe) : (
@@ -1622,13 +1622,13 @@ function Wr(e, t, n, r, o = !1) {
1622
1622
  else {
1623
1623
  const $ = He(l), j = Ve(l);
1624
1624
  if ($ || j) {
1625
- const B = () => {
1625
+ const F = () => {
1626
1626
  if (e.f) {
1627
- const J = $ ? O(l) ? d[l] : p[l] : l.value;
1628
- o ? ce(J) && Xo(J, s) : ce(J) ? J.includes(s) || J.push(s) : $ ? (p[l] = [s], O(l) && (d[l] = p[l])) : (l.value = [s], e.k && (p[e.k] = l.value));
1627
+ const q = $ ? O(l) ? d[l] : p[l] : l.value;
1628
+ 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));
1629
1629
  } 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, `(${typeof l})`);
1630
1630
  };
1631
- i ? (B.id = -1, st(B, n)) : B();
1631
+ i ? (F.id = -1, st(F, n)) : F();
1632
1632
  } else process.env.NODE_ENV !== "production" && H("Invalid template ref type:", l, `(${typeof l})`);
1633
1633
  }
1634
1634
  }
@@ -1887,8 +1887,8 @@ function Yu(e) {
1887
1887
  beforeUpdate: O,
1888
1888
  updated: $,
1889
1889
  activated: j,
1890
- deactivated: B,
1891
- beforeDestroy: J,
1890
+ deactivated: F,
1891
+ beforeDestroy: q,
1892
1892
  beforeUnmount: te,
1893
1893
  destroyed: U,
1894
1894
  unmounted: re,
@@ -1899,91 +1899,91 @@ function Yu(e) {
1899
1899
  serverPrefetch: K,
1900
1900
  // public API
1901
1901
  expose: k,
1902
- inheritAttrs: F,
1902
+ inheritAttrs: B,
1903
1903
  // assets
1904
1904
  components: N,
1905
1905
  directives: se,
1906
1906
  filters: ge
1907
1907
  } = t, we = process.env.NODE_ENV !== "production" ? ku() : null;
1908
1908
  if (process.env.NODE_ENV !== "production") {
1909
- const [z] = e.propsOptions;
1910
- if (z)
1911
- for (const ie in z)
1909
+ const [J] = e.propsOptions;
1910
+ if (J)
1911
+ for (const ie in J)
1912
1912
  we("Props", ie);
1913
1913
  }
1914
1914
  if (E && qu(E, r, we), i)
1915
- for (const z in i) {
1916
- const ie = i[z];
1917
- ue(ie) ? (process.env.NODE_ENV !== "production" ? Object.defineProperty(r, z, {
1915
+ for (const J in i) {
1916
+ const ie = i[J];
1917
+ ue(ie) ? (process.env.NODE_ENV !== "production" ? Object.defineProperty(r, J, {
1918
1918
  value: ie.bind(n),
1919
1919
  configurable: !0,
1920
1920
  enumerable: !0,
1921
1921
  writable: !0
1922
- }) : r[z] = ie.bind(n), process.env.NODE_ENV !== "production" && we("Methods", z)) : process.env.NODE_ENV !== "production" && H(
1923
- `Method "${z}" has type "${typeof ie}" in the component definition. Did you reference the function correctly?`
1922
+ }) : r[J] = ie.bind(n), process.env.NODE_ENV !== "production" && we("Methods", J)) : process.env.NODE_ENV !== "production" && H(
1923
+ `Method "${J}" has type "${typeof ie}" in the component definition. Did you reference the function correctly?`
1924
1924
  );
1925
1925
  }
1926
1926
  if (o) {
1927
1927
  process.env.NODE_ENV !== "production" && !ue(o) && H(
1928
1928
  "The data option must be a function. Plain object usage is no longer supported."
1929
1929
  );
1930
- const z = o.call(n, n);
1931
- if (process.env.NODE_ENV !== "production" && Zo(z) && H(
1930
+ const J = o.call(n, n);
1931
+ if (process.env.NODE_ENV !== "production" && Zo(J) && H(
1932
1932
  "data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."
1933
- ), !De(z))
1933
+ ), !De(J))
1934
1934
  process.env.NODE_ENV !== "production" && H("data() should return an object.");
1935
- else if (e.data = cs(z), process.env.NODE_ENV !== "production")
1936
- for (const ie in z)
1935
+ else if (e.data = cs(J), process.env.NODE_ENV !== "production")
1936
+ for (const ie in J)
1937
1937
  we("Data", ie), hs(ie[0]) || Object.defineProperty(r, ie, {
1938
1938
  configurable: !0,
1939
1939
  enumerable: !0,
1940
- get: () => z[ie],
1940
+ get: () => J[ie],
1941
1941
  set: Fe
1942
1942
  });
1943
1943
  }
1944
1944
  if (Ho = !0, s)
1945
- for (const z in s) {
1946
- const ie = s[z], ye = ue(ie) ? ie.bind(n, n) : ue(ie.get) ? ie.get.bind(n, n) : Fe;
1947
- process.env.NODE_ENV !== "production" && ye === Fe && H(`Computed property "${z}" has no getter.`);
1945
+ for (const J in s) {
1946
+ const ie = s[J], ye = ue(ie) ? ie.bind(n, n) : ue(ie.get) ? ie.get.bind(n, n) : Fe;
1947
+ process.env.NODE_ENV !== "production" && ye === Fe && H(`Computed property "${J}" has no getter.`);
1948
1948
  const D = !ue(ie) && ue(ie.set) ? ie.set.bind(n) : process.env.NODE_ENV !== "production" ? () => {
1949
1949
  H(
1950
- `Write operation failed: computed property "${z}" is readonly.`
1950
+ `Write operation failed: computed property "${J}" is readonly.`
1951
1951
  );
1952
1952
  } : Fe, Oe = bt({
1953
1953
  get: ye,
1954
1954
  set: D
1955
1955
  });
1956
- Object.defineProperty(r, z, {
1956
+ Object.defineProperty(r, J, {
1957
1957
  enumerable: !0,
1958
1958
  configurable: !0,
1959
1959
  get: () => Oe.value,
1960
1960
  set: (Re) => Oe.value = Re
1961
- }), process.env.NODE_ENV !== "production" && we("Computed", z);
1961
+ }), process.env.NODE_ENV !== "production" && we("Computed", J);
1962
1962
  }
1963
1963
  if (c)
1964
- for (const z in c)
1965
- wc(c[z], r, n, z);
1964
+ for (const J in c)
1965
+ wc(c[J], r, n, J);
1966
1966
  if (l) {
1967
- const z = ue(l) ? l.call(n) : l;
1968
- Reflect.ownKeys(z).forEach((ie) => {
1969
- el(ie, z[ie]);
1967
+ const J = ue(l) ? l.call(n) : l;
1968
+ Reflect.ownKeys(J).forEach((ie) => {
1969
+ el(ie, J[ie]);
1970
1970
  });
1971
1971
  }
1972
1972
  p && Ms(p, e, "c");
1973
- function ve(z, ie) {
1974
- ce(ie) ? ie.forEach((ye) => z(ye.bind(n))) : ie && z(ie.bind(n));
1973
+ function ve(J, ie) {
1974
+ ce(ie) ? ie.forEach((ye) => J(ye.bind(n))) : ie && J(ie.bind(n));
1975
1975
  }
1976
- if (ve($u, d), ve(yc, h), ve(Mu, O), ve(Lu, $), ve(Cu, j), ve(Pu, B), ve(Fu, pe), ve(Wu, ne), ve(Hu, le), ve(Vu, te), ve(_c, re), ve(ju, K), ce(k))
1976
+ 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))
1977
1977
  if (k.length) {
1978
- const z = e.exposed || (e.exposed = {});
1978
+ const J = e.exposed || (e.exposed = {});
1979
1979
  k.forEach((ie) => {
1980
- Object.defineProperty(z, ie, {
1980
+ Object.defineProperty(J, ie, {
1981
1981
  get: () => n[ie],
1982
1982
  set: (ye) => n[ie] = ye
1983
1983
  });
1984
1984
  });
1985
1985
  } else e.exposed || (e.exposed = {});
1986
- L && e.render === Fe && (e.render = L), F != null && (e.inheritAttrs = F), N && (e.components = N), se && (e.directives = se), K && vc(e);
1986
+ L && e.render === Fe && (e.render = L), B != null && (e.inheritAttrs = B), N && (e.components = N), se && (e.directives = se), K && vc(e);
1987
1987
  }
1988
1988
  function qu(e, t, n = Fe) {
1989
1989
  ce(e) && (e = Wo(e));
@@ -2415,14 +2415,14 @@ function xc(e, t, n = !1) {
2415
2415
  const d = gt(p);
2416
2416
  if (js(d)) {
2417
2417
  const h = s[p], O = i[d] = ce(h) || ue(h) ? { type: h } : je({}, h), $ = O.type;
2418
- let j = !1, B = !0;
2418
+ let j = !1, F = !0;
2419
2419
  if (ce($))
2420
- for (let J = 0; J < $.length; ++J) {
2421
- const te = $[J], U = ue(te) && te.name;
2420
+ for (let q = 0; q < $.length; ++q) {
2421
+ const te = $[q], U = ue(te) && te.name;
2422
2422
  if (U === "Boolean") {
2423
2423
  j = !0;
2424
2424
  break;
2425
- } else U === "String" && (B = !1);
2425
+ } else U === "String" && (F = !1);
2426
2426
  }
2427
2427
  else
2428
2428
  j = ue($) && $.name === "Boolean";
@@ -2432,7 +2432,7 @@ function xc(e, t, n = !1) {
2432
2432
  ] = j, O[
2433
2433
  1
2434
2434
  /* shouldCastTrue */
2435
- ] = B, (j || be(O, "default")) && c.push(d);
2435
+ ] = F, (j || be(O, "default")) && c.push(d);
2436
2436
  }
2437
2437
  }
2438
2438
  }
@@ -2613,10 +2613,10 @@ function ml(e, t) {
2613
2613
  const { type: T, ref: G, shapeFlag: M } = g;
2614
2614
  switch (T) {
2615
2615
  case dr:
2616
- B(f, g, y, C);
2616
+ F(f, g, y, C);
2617
2617
  break;
2618
2618
  case ut:
2619
- J(f, g, y, C);
2619
+ q(f, g, y, C);
2620
2620
  break;
2621
2621
  case Tr:
2622
2622
  f == null ? te(g, y, C, P) : process.env.NODE_ENV !== "production" && U(f, g, y, P);
@@ -2669,7 +2669,7 @@ function ml(e, t) {
2669
2669
  ) : process.env.NODE_ENV !== "production" && H("Invalid VNode type:", T, `(${typeof T})`);
2670
2670
  }
2671
2671
  G != null && R && Wr(G, f && f.ref, _, g || f, !g);
2672
- }, B = (f, g, y, C) => {
2672
+ }, F = (f, g, y, C) => {
2673
2673
  if (f == null)
2674
2674
  r(
2675
2675
  g.el = c(g.children),
@@ -2680,7 +2680,7 @@ function ml(e, t) {
2680
2680
  const R = g.el = f.el;
2681
2681
  g.children !== f.children && E(R, g.children);
2682
2682
  }
2683
- }, J = (f, g, y, C) => {
2683
+ }, q = (f, g, y, C) => {
2684
2684
  f == null ? r(
2685
2685
  g.el = l(g.children || ""),
2686
2686
  y,
@@ -2801,7 +2801,7 @@ function ml(e, t) {
2801
2801
  A |= f.patchFlag & 16;
2802
2802
  const M = f.props || Ne, Q = g.props || Ne;
2803
2803
  let oe;
2804
- if (y && rn(y, !1), (oe = Q.onVnodeBeforeUpdate) && _t(oe, y, g, f), G && nn(g, f, y, "beforeUpdate"), y && rn(y, !0), process.env.NODE_ENV !== "production" && Tt && (A = 0, P = !1, T = null), (M.innerHTML && Q.innerHTML == null || M.textContent && Q.textContent == null) && p(b, ""), T ? (F(
2804
+ if (y && rn(y, !1), (oe = Q.onVnodeBeforeUpdate) && _t(oe, y, g, f), G && nn(g, f, y, "beforeUpdate"), y && rn(y, !0), process.env.NODE_ENV !== "production" && Tt && (A = 0, P = !1, T = null), (M.innerHTML && Q.innerHTML == null || M.textContent && Q.textContent == null) && p(b, ""), T ? (B(
2805
2805
  f.dynamicChildren,
2806
2806
  T,
2807
2807
  b,
@@ -2834,7 +2834,7 @@ function ml(e, t) {
2834
2834
  ((oe = Q.onVnodeUpdated) || G) && st(() => {
2835
2835
  oe && _t(oe, y, g, f), G && nn(g, f, y, "updated");
2836
2836
  }, C);
2837
- }, F = (f, g, y, C, R, _, P) => {
2837
+ }, B = (f, g, y, C, R, _, P) => {
2838
2838
  for (let b = 0; b < g.length; b++) {
2839
2839
  const A = f[b], T = g[b], G = (
2840
2840
  // oldVNode may be an errored async setup() component inside Suspense
@@ -2900,7 +2900,7 @@ function ml(e, t) {
2900
2900
  A
2901
2901
  )) : M > 0 && M & 64 && Q && // #2715 the previous fragment could've been a BAILed one as a result
2902
2902
  // of renderSlot() with no valid children
2903
- f.dynamicChildren ? (F(
2903
+ f.dynamicChildren ? (B(
2904
2904
  f.dynamicChildren,
2905
2905
  Q,
2906
2906
  y,
@@ -2953,12 +2953,12 @@ function ml(e, t) {
2953
2953
  R
2954
2954
  );
2955
2955
  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, !1, P), process.env.NODE_ENV !== "production" && bn(b, "init"), b.asyncDep) {
2956
- if (process.env.NODE_ENV !== "production" && Tt && (f.el = null), R && R.registerDep(b, z, P), !f.el) {
2956
+ if (process.env.NODE_ENV !== "production" && Tt && (f.el = null), R && R.registerDep(b, J, P), !f.el) {
2957
2957
  const A = b.subTree = at(ut);
2958
- J(null, A, g, y);
2958
+ q(null, A, g, y);
2959
2959
  }
2960
2960
  } else
2961
- z(
2961
+ J(
2962
2962
  b,
2963
2963
  f,
2964
2964
  g,
@@ -2978,7 +2978,7 @@ function ml(e, t) {
2978
2978
  C.next = g, C.update();
2979
2979
  else
2980
2980
  g.el = f.el, C.vnode = g;
2981
- }, z = (f, g, y, C, R, _, P) => {
2981
+ }, J = (f, g, y, C, R, _, P) => {
2982
2982
  const b = () => {
2983
2983
  if (f.isMounted) {
2984
2984
  let { next: M, bu: Q, u: oe, parent: Ee, vnode: Te } = f;
@@ -3397,7 +3397,7 @@ function ml(e, t) {
3397
3397
  mt: we,
3398
3398
  mc: K,
3399
3399
  pc: ye,
3400
- pbc: F,
3400
+ pbc: B,
3401
3401
  n: de,
3402
3402
  o: e
3403
3403
  };
@@ -3615,8 +3615,8 @@ function Bs(e) {
3615
3615
  setupState: O,
3616
3616
  ctx: $,
3617
3617
  inheritAttrs: j
3618
- } = e, B = Hr(e);
3619
- let J, te;
3618
+ } = e, F = Hr(e);
3619
+ let q, te;
3620
3620
  process.env.NODE_ENV !== "production" && (Uo = !1);
3621
3621
  try {
3622
3622
  if (n.shapeFlag & 4) {
@@ -3629,7 +3629,7 @@ function Bs(e) {
3629
3629
  ), Reflect.get(le, pe, K);
3630
3630
  }
3631
3631
  }) : L;
3632
- J = dt(
3632
+ q = dt(
3633
3633
  E.call(
3634
3634
  ne,
3635
3635
  L,
@@ -3642,7 +3642,7 @@ function Bs(e) {
3642
3642
  ), te = c;
3643
3643
  } else {
3644
3644
  const L = t;
3645
- process.env.NODE_ENV !== "production" && c === d && Ur(), J = dt(
3645
+ process.env.NODE_ENV !== "production" && c === d && Ur(), q = dt(
3646
3646
  L.length > 1 ? L(
3647
3647
  process.env.NODE_ENV !== "production" ? Nt(d) : d,
3648
3648
  process.env.NODE_ENV !== "production" ? {
@@ -3659,10 +3659,10 @@ function Bs(e) {
3659
3659
  ), te = t.props ? c : Sl(c);
3660
3660
  }
3661
3661
  } catch (L) {
3662
- er.length = 0, fr(L, e, 1), J = at(ut);
3662
+ er.length = 0, fr(L, e, 1), q = at(ut);
3663
3663
  }
3664
- let U = J, re;
3665
- if (process.env.NODE_ENV !== "production" && J.patchFlag > 0 && J.patchFlag & 2048 && ([U, re] = jc(J)), te && j !== !1) {
3664
+ let U = q, re;
3665
+ if (process.env.NODE_ENV !== "production" && q.patchFlag > 0 && q.patchFlag & 2048 && ([U, re] = jc(q)), te && j !== !1) {
3666
3666
  const L = Object.keys(te), { shapeFlag: ne } = U;
3667
3667
  if (L.length) {
3668
3668
  if (ne & 7)
@@ -3672,7 +3672,7 @@ function Bs(e) {
3672
3672
  )), U = en(U, te, !1, !0);
3673
3673
  else if (process.env.NODE_ENV !== "production" && !Uo && U.type !== ut) {
3674
3674
  const le = Object.keys(c), pe = [], K = [];
3675
- for (let k = 0, F = le.length; k < F; k++) {
3675
+ for (let k = 0, B = le.length; k < B; k++) {
3676
3676
  const N = le[k];
3677
3677
  ur(N) ? Ir(N) || pe.push(N[2].toLowerCase() + N.slice(3)) : K.push(N);
3678
3678
  }
@@ -3688,7 +3688,7 @@ function Bs(e) {
3688
3688
  "Runtime directive used on component with non-element root node. The directives will not function as intended."
3689
3689
  ), U = en(U, null, !1, !0), U.dirs = U.dirs ? U.dirs.concat(n.dirs) : n.dirs), n.transition && (process.env.NODE_ENV !== "production" && !Us(U) && H(
3690
3690
  "Component inside <Transition> renders non-element root node that cannot be animated."
3691
- ), ps(U, n.transition)), process.env.NODE_ENV !== "production" && re ? re(U) : J = U, Hr(B), J;
3691
+ ), ps(U, n.transition)), process.env.NODE_ENV !== "production" && re ? re(U) : q = U, Hr(F), q;
3692
3692
  }
3693
3693
  const jc = (e) => {
3694
3694
  const t = e.children, n = e.dynamicChildren, r = ms(t, !1);
@@ -4744,31 +4744,31 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
4744
4744
  tab: qe(null),
4745
4745
  mount: qe(null)
4746
4746
  }, $ = bt(() => p.value.activeMicroAppName || ""), j = bt(() => {
4747
- var K, k, F, N, se, ge;
4747
+ var K, k, B, N, se, ge;
4748
4748
  return {
4749
4749
  navHeight: (((k = (K = p.value) == null ? void 0 : K.navRect) == null ? void 0 : k.height) || 0) + "px",
4750
- menuWidth: (((N = (F = p.value) == null ? void 0 : F.menuRect) == null ? void 0 : N.width) || 0) + "px",
4750
+ menuWidth: (((N = (B = p.value) == null ? void 0 : B.menuRect) == null ? void 0 : N.width) || 0) + "px",
4751
4751
  tabHeight: (((ge = (se = p.value) == null ? void 0 : se.tabRect) == null ? void 0 : ge.height) || 0) + "px"
4752
4752
  };
4753
- }), B = bt(() => ({
4753
+ }), F = bt(() => ({
4754
4754
  position: "relative",
4755
4755
  height: "100%",
4756
4756
  display: "flex",
4757
4757
  flexDirection: "column"
4758
- })), J = (K, k = 0, F = !1) => {
4758
+ })), q = (K, k = 0, B = !1) => {
4759
4759
  let N = null;
4760
4760
  return (...se) => {
4761
- F && !N && K(...se), clearTimeout(N), N = setTimeout(() => {
4761
+ B && !N && K(...se), clearTimeout(N), N = setTimeout(() => {
4762
4762
  K(...se);
4763
4763
  }, k);
4764
4764
  };
4765
4765
  }, te = () => {
4766
- function K(F, N = 20) {
4767
- if (!F) return;
4768
- const se = F.getBoundingClientRect(), { x: ge, y: we, width: ve, height: z } = se, ie = ge, ye = we, D = ge + ve, Oe = we + z, Re = [
4766
+ function K(B, N = 20) {
4767
+ if (!B) return;
4768
+ const se = B.getBoundingClientRect(), { x: ge, y: we, width: ve, height: J } = se, ie = ge, ye = we, D = ge + ve, Oe = we + J, Re = [
4769
4769
  document.documentElement,
4770
4770
  document.body,
4771
- F,
4771
+ B,
4772
4772
  h.menu.value,
4773
4773
  h.nav.value,
4774
4774
  h.tab.value,
@@ -4783,23 +4783,23 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
4783
4783
  }
4784
4784
  let k = K(h.nav.value);
4785
4785
  return k || (k = K(h.tab.value)), k || (k = K(h.menu.value)), k;
4786
- }, U = { x: -1, y: -1 }, re = J(
4787
- (K, k, F) => {
4786
+ }, U = { x: -1, y: -1 }, re = q(
4787
+ (K, k, B) => {
4788
4788
  if (!(U.x === k.x && U.y === k.y)) {
4789
4789
  if (U.x = k.x, U.y = k.x, K === "mouseenter") {
4790
4790
  if (l.value) {
4791
4791
  if (!$.value)
4792
4792
  return s.data.set({ microAppStickStatus: !1 });
4793
- s.data.set({ microAppStickStatus: F === "mount" });
4793
+ s.data.set({ microAppStickStatus: B === "mount" });
4794
4794
  }
4795
4795
  if (E.value) {
4796
4796
  if (te()) return c.cors.send("microAppStickStatus", !0);
4797
- c.cors.send("microAppStickStatus", F === "mount");
4797
+ c.cors.send("microAppStickStatus", B === "mount");
4798
4798
  }
4799
4799
  }
4800
4800
  if (K === "mousemove" && E.value) {
4801
4801
  if (te()) return c.cors.send("microAppStickStatus", !0);
4802
- c.cors.send("microAppStickStatus", F === "mount");
4802
+ c.cors.send("microAppStickStatus", B === "mount");
4803
4803
  }
4804
4804
  }
4805
4805
  },
@@ -4829,18 +4829,18 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
4829
4829
  }), pe = qe(null);
4830
4830
  if (l.value) {
4831
4831
  (async () => {
4832
- const F = (N) => {
4832
+ const B = (N) => {
4833
4833
  var we;
4834
4834
  const se = (we = h[N]) == null ? void 0 : we.value, ge = () => {
4835
- const { x: ve, y: z, width: ie, height: ye } = (se == null ? void 0 : se.getBoundingClientRect()) || {};
4836
- s.data.set({ [`${N}Rect`]: { x: ve, y: z, width: ie, height: ye } });
4835
+ const { x: ve, y: J, width: ie, height: ye } = (se == null ? void 0 : se.getBoundingClientRect()) || {};
4836
+ s.data.set({ [`${N}Rect`]: { x: ve, y: J, width: ie, height: ye } });
4837
4837
  };
4838
4838
  ge(), new MutationObserver(ge).observe(se, { childList: !0, subtree: !0 });
4839
4839
  };
4840
4840
  await Promise.all([
4841
4841
  ...Object.keys(h).map(async (N) => {
4842
4842
  const se = h[N];
4843
- await new Promise((ge) => At(() => se.value, ge)), F(N);
4843
+ await new Promise((ge) => At(() => se.value, ge)), B(N);
4844
4844
  }),
4845
4845
  ...Object.keys(O).map(async (N) => {
4846
4846
  await new Promise((se) => At(() => O[N].value, se));
@@ -4852,12 +4852,12 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
4852
4852
  mountDom: O.mount.value
4853
4853
  });
4854
4854
  })(), s.data.watch(() => {
4855
- const F = p.value.activeMicroAppName;
4856
- if (!F) return;
4855
+ const B = p.value.activeMicroAppName;
4856
+ if (!B) return;
4857
4857
  const N = s.data.get(s.expose.getLayoutDataKeys());
4858
- i.cors.send(F, "layoutDataChange", N);
4859
- }, s.expose.getLayoutDataKeys()), i.cors.on("microAppStickStatus", (F) => {
4860
- s.data.set({ microAppStickStatus: F.data });
4858
+ i.cors.send(B, "layoutDataChange", N);
4859
+ }, s.expose.getLayoutDataKeys()), i.cors.on("microAppStickStatus", (B) => {
4860
+ s.data.set({ microAppStickStatus: B.data });
4861
4861
  });
4862
4862
  const { setIframeMountDom: k } = ga();
4863
4863
  At(() => pe.value, k);
@@ -4869,9 +4869,9 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
4869
4869
  K = JSON.parse(window.name);
4870
4870
  } catch {
4871
4871
  }
4872
- const { appInfo: k, parentData: F = {} } = K;
4872
+ const { appInfo: k, parentData: B = {} } = K;
4873
4873
  setTimeout(() => {
4874
- s.data.set(F.layoutData);
4874
+ s.data.set(B.layoutData);
4875
4875
  }, 0), c.data.set({ appInfo: k }), c.cors.on("layoutDataChange", (se) => {
4876
4876
  s.data.set(se.data);
4877
4877
  }), (async () => {
@@ -4888,12 +4888,12 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
4888
4888
  return yc(() => {
4889
4889
  s.event.emit("onMounted");
4890
4890
  }), (K, k) => (Mt(), Yt("div", {
4891
- style: jt(B.value)
4891
+ style: jt(F.value)
4892
4892
  }, [
4893
4893
  _r(Lt("header", {
4894
4894
  ref: h.nav,
4895
- onMouseenter: k[0] || (k[0] = (F) => qt(re)("mouseenter", F, "nav")),
4896
- onMousemove: k[1] || (k[1] = (F) => qt(re)("mousemove", F, "nav"))
4895
+ onMouseenter: k[0] || (k[0] = (B) => qt(re)("mouseenter", B, "nav")),
4896
+ onMousemove: k[1] || (k[1] = (B) => qt(re)("mousemove", B, "nav"))
4897
4897
  }, [
4898
4898
  l.value ? (Mt(), Yt("div", {
4899
4899
  key: 0,
@@ -4910,8 +4910,8 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
4910
4910
  _r(Lt("aside", {
4911
4911
  ref: h.menu,
4912
4912
  style: { height: "100%" },
4913
- onMouseenter: k[2] || (k[2] = (F) => qt(re)("mouseenter", F, "menu")),
4914
- onMousemove: k[3] || (k[3] = (F) => qt(re)("mousemove", F, "menu"))
4913
+ onMouseenter: k[2] || (k[2] = (B) => qt(re)("mouseenter", B, "menu")),
4914
+ onMousemove: k[3] || (k[3] = (B) => qt(re)("mousemove", B, "menu"))
4915
4915
  }, [
4916
4916
  l.value ? (Mt(), Yt("div", {
4917
4917
  key: 0,
@@ -4928,8 +4928,8 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
4928
4928
  Lt("main", bf, [
4929
4929
  _r(Lt("header", {
4930
4930
  ref: h.tab,
4931
- onMouseenter: k[4] || (k[4] = (F) => qt(re)("mouseenter", F, "tab")),
4932
- onMousemove: k[5] || (k[5] = (F) => qt(re)("mousemove", F, "tab"))
4931
+ onMouseenter: k[4] || (k[4] = (B) => qt(re)("mouseenter", B, "tab")),
4932
+ onMousemove: k[5] || (k[5] = (B) => qt(re)("mousemove", B, "tab"))
4933
4933
  }, [
4934
4934
  l.value ? (Mt(), Yt("div", {
4935
4935
  key: 0,
@@ -4945,7 +4945,7 @@ const _f = { style: { flex: "1", display: "flex", "min-height": "0" } }, bf = {
4945
4945
  _r(Lt("section", {
4946
4946
  ref: h.mount,
4947
4947
  style: jt([{ flex: "1", "min-height": "0" }, L.value]),
4948
- onMouseenter: k[6] || (k[6] = (F) => qt(re)("mouseenter", F, "mount"))
4948
+ onMouseenter: k[6] || (k[6] = (B) => qt(re)("mouseenter", B, "mount"))
4949
4949
  }, [
4950
4950
  Lt("div", {
4951
4951
  ref: O.mount,
@@ -5005,65 +5005,66 @@ const Jc = async (e) => {
5005
5005
  }, Dg = async (e) => {
5006
5006
  e || (e = {});
5007
5007
  const { microApps: t = [] } = e, n = await Jc({ type: "mainApp", ...e }), r = vt("container"), o = vt("mainApp"), { addRouterEventListener: s } = Zc(), i = Xc(), c = qe(t);
5008
- r.data.watch((B) => c.value = B.microApps, ["microApps"]), r.data.set({ microApps: t });
5008
+ r.data.watch((F) => c.value = F.microApps, ["microApps"]), r.data.set({ microApps: t });
5009
5009
  const { registerIframe: l, loadIframe: E, hideIframe: p, iframeEvent: d, checkIframeStatus: h } = ga();
5010
- d.on("mounted", (B) => {
5010
+ d.on("mounted", (F) => {
5011
5011
  var U;
5012
- o.expose.connectMicroApp(B);
5013
- const J = r.data.get().microApps.find((re) => re.name === B.name);
5014
- if (!J) return;
5015
- if (!(((U = J.router) == null ? void 0 : U.sync) ?? !0)) {
5012
+ o.expose.connectMicroApp(F);
5013
+ const q = r.data.get().microApps.find((re) => re.name === F.name);
5014
+ if (!q) return;
5015
+ if (!(((U = q.router) == null ? void 0 : U.sync) ?? !0)) {
5016
5016
  j();
5017
5017
  return;
5018
5018
  }
5019
- }), t.filter((B) => B.activeRule).map((B) => {
5020
- i.addRule(B.name, B.activeRule), l(B.name, B);
5019
+ }), t.filter((F) => F.activeRule).map((F) => {
5020
+ i.addRule(F.name, F.activeRule), l(F.name, F);
5021
5021
  });
5022
5022
  const O = qe(!1);
5023
- o.cors.on("reportRouter", (B) => {
5023
+ o.cors.on("reportRouter", (F) => {
5024
5024
  var N, se, ge;
5025
- const { data: J } = B || {};
5026
- if (!J.appInfo) return;
5027
- const te = r.data.get().microApps.find((we) => we.name === J.appInfo.name);
5025
+ const { data: q } = F || {};
5026
+ if (!q.appInfo) return;
5027
+ const te = r.data.get().microApps.find((we) => we.name === q.appInfo.name);
5028
5028
  if (!te || !(((N = te.router) == null ? void 0 : N.sync) ?? !0) || !h(te.name, ["mounted", "activated"])) return;
5029
5029
  const { pathname: re, hash: L, search: ne } = new URL(window.location.href);
5030
5030
  let le = re + ne;
5031
- const { pathname: pe, hash: K, search: k } = new URL(J.href);
5032
- let F = pe + k;
5033
- ((se = te.router) == null ? void 0 : se.mode) === "hash" && (F = K.replace("#", "")), ((ge = r.data.get().initOptions.router) == null ? void 0 : ge.mode) === "hash" && (le = `/${L}`, F = `/#${F}`), le !== F && (O.value = !0, setTimeout(() => {
5031
+ const { pathname: pe, hash: K, search: k } = new URL(q.href);
5032
+ let B = pe + k;
5033
+ ((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 = `/${L}`, B = `/#${B}`), le !== B && (O.value = !0, setTimeout(() => {
5034
5034
  O.value = !1;
5035
- }, 300), i.replaceState(F));
5036
- }), o.cors.on("customEventFromMicro", (B) => {
5037
- o.event.emit("customEventFromMicro", B.data);
5035
+ }, 300), i.replaceState(B));
5036
+ }), o.cors.on("customEventFromMicro", (F) => {
5037
+ var q, te;
5038
+ (q = F == null ? void 0 : F.data) != null && q.eventName && o.event.emit(F.data.eventName, (te = F.data) == null ? void 0 : te.params);
5038
5039
  });
5039
- const $ = (B, J) => {
5040
+ const $ = (F, q) => {
5040
5041
  var re;
5041
- const { path: te } = J;
5042
+ const { path: te } = q;
5042
5043
  let U = te;
5043
- ((re = B.router) == null ? void 0 : re.mode) === "hash" && (U = `/#${te}`), o.cors.send(B.name, "syncRouter", {
5044
- appInfo: B,
5045
- parentRouter: J,
5044
+ ((re = F.router) == null ? void 0 : re.mode) === "hash" && (U = `/#${te}`), o.cors.send(F.name, "syncRouter", {
5045
+ appInfo: F,
5046
+ parentRouter: q,
5046
5047
  replacePath: U
5047
5048
  });
5048
5049
  };
5049
- window.addEventListener("popstate", (B) => {
5050
+ window.addEventListener("popstate", (F) => {
5050
5051
  j();
5051
5052
  });
5052
5053
  const j = async () => {
5053
5054
  var K, k;
5054
5055
  if (O.value) return;
5055
- await new Promise((F) => setTimeout(F, 0));
5056
- const B = ((K = r.data.get().initOptions.router) == null ? void 0 : K.mode) || "history", { pathname: J, hash: te, search: U } = new URL(window.location.href);
5057
- let re = J + U;
5058
- B === "hash" && (re = te.replace("#", ""));
5059
- const L = i.match(re), ne = c.value.find((F) => L ? L === F.name : !1);
5056
+ await new Promise((B) => setTimeout(B, 0));
5057
+ const F = ((K = r.data.get().initOptions.router) == null ? void 0 : K.mode) || "history", { pathname: q, hash: te, search: U } = new URL(window.location.href);
5058
+ let re = q + U;
5059
+ F === "hash" && (re = te.replace("#", ""));
5060
+ const L = i.match(re), ne = c.value.find((B) => L ? L === B.name : !1);
5060
5061
  let le = re;
5061
5062
  if (((k = ne == null ? void 0 : ne.router) == null ? void 0 : k.mode) === "hash" && (le = `/#${re}`), !ne) {
5062
5063
  r.data.set({ activeMicroAppName: "" }), p();
5063
5064
  return;
5064
5065
  }
5065
5066
  r.data.set({ activeMicroAppName: ne.name });
5066
- const pe = { href: window.location.href, mode: B, path: re };
5067
+ const pe = { href: window.location.href, mode: F, path: re };
5067
5068
  h(ne.name, "deactivated") && (await E(ne.name), $(ne, pe)), h(ne.name, ["mounted", "activated"]) && $(ne, pe), h(ne.name, "registered") && await E(ne.name, { path: le });
5068
5069
  };
5069
5070
  return s(["replaceState"], j), n;
@@ -5075,7 +5076,7 @@ var Oo = {}, So, ai;
5075
5076
  function ro() {
5076
5077
  if (ai) return So;
5077
5078
  ai = 1;
5078
- const e = "\\\\/", t = `[^${e}]`, n = "\\.", r = "\\+", o = "\\?", s = "\\/", i = "(?=.)", c = "[^/]", l = `(?:${s}|$)`, E = `(?:^|${s})`, p = `${n}{1,2}${l}`, d = `(?!${n})`, h = `(?!${E}${p})`, O = `(?!${n}{0,1}${l})`, $ = `(?!${p})`, j = `[^.${s}]`, B = `${c}*?`, te = {
5079
+ const e = "\\\\/", t = `[^${e}]`, n = "\\.", r = "\\+", o = "\\?", s = "\\/", i = "(?=.)", c = "[^/]", l = `(?:${s}|$)`, E = `(?:^|${s})`, p = `${n}{1,2}${l}`, d = `(?!${n})`, h = `(?!${E}${p})`, O = `(?!${n}{0,1}${l})`, $ = `(?!${p})`, j = `[^.${s}]`, F = `${c}*?`, te = {
5079
5080
  DOT_LITERAL: n,
5080
5081
  PLUS_LITERAL: r,
5081
5082
  QMARK_LITERAL: o,
@@ -5089,7 +5090,7 @@ function ro() {
5089
5090
  NO_DOT_SLASH: O,
5090
5091
  NO_DOTS_SLASH: $,
5091
5092
  QMARK_NO_DOT: j,
5092
- STAR: B,
5093
+ STAR: F,
5093
5094
  START_ANCHOR: E,
5094
5095
  SEP: "/"
5095
5096
  }, U = {
@@ -5313,13 +5314,13 @@ function Sf() {
5313
5314
  /* ) */
5314
5315
  CHAR_RIGHT_SQUARE_BRACKET: j
5315
5316
  /* ] */
5316
- } = /* @__PURE__ */ ro(), B = (U) => U === c || U === r, J = (U) => {
5317
+ } = /* @__PURE__ */ ro(), F = (U) => U === c || U === r, q = (U) => {
5317
5318
  U.isPrefix !== !0 && (U.depth = U.isGlobstar ? 1 / 0 : 1);
5318
5319
  };
5319
5320
  return Ao = (U, re) => {
5320
5321
  const L = re || {}, ne = U.length - 1, le = L.parts === !0 || L.scanToEnd === !0, pe = [], K = [], k = [];
5321
- let F = U, N = -1, se = 0, ge = 0, we = !1, ve = !1, z = !1, ie = !1, ye = !1, D = !1, Oe = !1, Re = !1, Pe = !1, S = !1, x = 0, ke, Z, de = { value: "", depth: 0, isGlob: !1 };
5322
- const $e = () => N >= ne, _e = () => F.charCodeAt(N + 1), W = () => (ke = Z, F.charCodeAt(++N));
5322
+ let B = U, N = -1, se = 0, ge = 0, we = !1, ve = !1, J = !1, ie = !1, ye = !1, D = !1, Oe = !1, Re = !1, Pe = !1, S = !1, x = 0, ke, Z, de = { value: "", depth: 0, isGlob: !1 };
5323
+ const $e = () => N >= ne, _e = () => B.charCodeAt(N + 1), W = () => (ke = Z, B.charCodeAt(++N));
5323
5324
  for (; N < ne; ) {
5324
5325
  Z = W();
5325
5326
  let C;
@@ -5338,12 +5339,12 @@ function Sf() {
5338
5339
  continue;
5339
5340
  }
5340
5341
  if (D !== !0 && Z === s && (Z = W()) === s) {
5341
- if (we = de.isBrace = !0, z = de.isGlob = !0, S = !0, le === !0)
5342
+ if (we = de.isBrace = !0, J = de.isGlob = !0, S = !0, le === !0)
5342
5343
  continue;
5343
5344
  break;
5344
5345
  }
5345
5346
  if (D !== !0 && Z === o) {
5346
- if (we = de.isBrace = !0, z = de.isGlob = !0, S = !0, le === !0)
5347
+ if (we = de.isBrace = !0, J = de.isGlob = !0, S = !0, le === !0)
5347
5348
  continue;
5348
5349
  break;
5349
5350
  }
@@ -5366,14 +5367,14 @@ function Sf() {
5366
5367
  continue;
5367
5368
  }
5368
5369
  if (L.noext !== !0 && (Z === d || Z === n || Z === t || Z === h || Z === i) === !0 && _e() === E) {
5369
- if (z = de.isGlob = !0, ie = de.isExtglob = !0, S = !0, Z === i && N === se && (Pe = !0), le === !0) {
5370
+ if (J = de.isGlob = !0, ie = de.isExtglob = !0, S = !0, Z === i && N === se && (Pe = !0), le === !0) {
5370
5371
  for (; $e() !== !0 && (Z = W()); ) {
5371
5372
  if (Z === r) {
5372
5373
  Oe = de.backslashes = !0, Z = W();
5373
5374
  continue;
5374
5375
  }
5375
5376
  if (Z === $) {
5376
- z = de.isGlob = !0, S = !0;
5377
+ J = de.isGlob = !0, S = !0;
5377
5378
  break;
5378
5379
  }
5379
5380
  }
@@ -5382,12 +5383,12 @@ function Sf() {
5382
5383
  break;
5383
5384
  }
5384
5385
  if (Z === t) {
5385
- if (ke === t && (ye = de.isGlobstar = !0), z = de.isGlob = !0, S = !0, le === !0)
5386
+ if (ke === t && (ye = de.isGlobstar = !0), J = de.isGlob = !0, S = !0, le === !0)
5386
5387
  continue;
5387
5388
  break;
5388
5389
  }
5389
5390
  if (Z === h) {
5390
- if (z = de.isGlob = !0, S = !0, le === !0)
5391
+ if (J = de.isGlob = !0, S = !0, le === !0)
5391
5392
  continue;
5392
5393
  break;
5393
5394
  }
@@ -5398,7 +5399,7 @@ function Sf() {
5398
5399
  continue;
5399
5400
  }
5400
5401
  if (C === j) {
5401
- ve = de.isBracket = !0, z = de.isGlob = !0, S = !0;
5402
+ ve = de.isBracket = !0, J = de.isGlob = !0, S = !0;
5402
5403
  break;
5403
5404
  }
5404
5405
  }
@@ -5411,7 +5412,7 @@ function Sf() {
5411
5412
  continue;
5412
5413
  }
5413
5414
  if (L.noparen !== !0 && Z === E) {
5414
- if (z = de.isGlob = !0, le === !0) {
5415
+ if (J = de.isGlob = !0, le === !0) {
5415
5416
  for (; $e() !== !0 && (Z = W()); ) {
5416
5417
  if (Z === E) {
5417
5418
  Oe = de.backslashes = !0, Z = W();
@@ -5426,15 +5427,15 @@ function Sf() {
5426
5427
  }
5427
5428
  break;
5428
5429
  }
5429
- if (z === !0) {
5430
+ if (J === !0) {
5430
5431
  if (S = !0, le === !0)
5431
5432
  continue;
5432
5433
  break;
5433
5434
  }
5434
5435
  }
5435
- L.noext === !0 && (ie = !1, z = !1);
5436
- let Me = F, f = "", g = "";
5437
- se > 0 && (f = F.slice(0, se), F = F.slice(se), ge -= se), Me && z === !0 && ge > 0 ? (Me = F.slice(0, ge), g = F.slice(ge)) : z === !0 ? (Me = "", g = F) : Me = F, Me && Me !== "" && Me !== "/" && Me !== F && B(Me.charCodeAt(Me.length - 1)) && (Me = Me.slice(0, -1)), L.unescape === !0 && (g && (g = e.removeBackslashes(g)), Me && Oe === !0 && (Me = e.removeBackslashes(Me)));
5436
+ L.noext === !0 && (ie = !1, J = !1);
5437
+ let Me = B, f = "", g = "";
5438
+ se > 0 && (f = B.slice(0, se), B = B.slice(se), ge -= se), Me && J === !0 && ge > 0 ? (Me = B.slice(0, ge), g = B.slice(ge)) : J === !0 ? (Me = "", g = B) : Me = B, Me && Me !== "" && Me !== "/" && Me !== B && F(Me.charCodeAt(Me.length - 1)) && (Me = Me.slice(0, -1)), L.unescape === !0 && (g && (g = e.removeBackslashes(g)), Me && Oe === !0 && (Me = e.removeBackslashes(Me)));
5438
5439
  const y = {
5439
5440
  prefix: f,
5440
5441
  input: U,
@@ -5443,21 +5444,21 @@ function Sf() {
5443
5444
  glob: g,
5444
5445
  isBrace: we,
5445
5446
  isBracket: ve,
5446
- isGlob: z,
5447
+ isGlob: J,
5447
5448
  isExtglob: ie,
5448
5449
  isGlobstar: ye,
5449
5450
  negated: Re,
5450
5451
  negatedExtglob: Pe
5451
5452
  };
5452
- if (L.tokens === !0 && (y.maxDepth = 0, B(Z) || K.push(de), y.tokens = K), L.parts === !0 || L.tokens === !0) {
5453
+ if (L.tokens === !0 && (y.maxDepth = 0, F(Z) || K.push(de), y.tokens = K), L.parts === !0 || L.tokens === !0) {
5453
5454
  let C;
5454
5455
  for (let R = 0; R < pe.length; R++) {
5455
5456
  const _ = C ? C + 1 : se, P = pe[R], b = U.slice(_, P);
5456
- L.tokens && (R === 0 && se !== 0 ? (K[R].isPrefix = !0, K[R].value = f) : K[R].value = b, J(K[R]), y.maxDepth += K[R].depth), (R !== 0 || b !== "") && k.push(b), C = P;
5457
+ L.tokens && (R === 0 && se !== 0 ? (K[R].isPrefix = !0, K[R].value = f) : K[R].value = b, q(K[R]), y.maxDepth += K[R].depth), (R !== 0 || b !== "") && k.push(b), C = P;
5457
5458
  }
5458
5459
  if (C && C + 1 < U.length) {
5459
5460
  const R = U.slice(C + 1);
5460
- k.push(R), L.tokens && (K[K.length - 1].value = R, J(K[K.length - 1]), y.maxDepth += K[K.length - 1].depth);
5461
+ k.push(R), L.tokens && (K[K.length - 1].value = R, q(K[K.length - 1]), y.maxDepth += K[K.length - 1].depth);
5461
5462
  }
5462
5463
  y.slashes = pe, y.parts = k;
5463
5464
  }
@@ -5493,7 +5494,7 @@ function Af() {
5493
5494
  let $ = p.length;
5494
5495
  if ($ > O)
5495
5496
  throw new SyntaxError(`Input length: ${$}, exceeds maximum allowed length: ${O}`);
5496
- const j = { type: "bos", value: "", output: h.prepend || "" }, B = [j], J = h.capture ? "" : "?:", te = e.globChars(h.windows), U = e.extglobChars(te), {
5497
+ const j = { type: "bos", value: "", output: h.prepend || "" }, F = [j], q = h.capture ? "" : "?:", te = e.globChars(h.windows), U = e.extglobChars(te), {
5497
5498
  DOT_LITERAL: re,
5498
5499
  PLUS_LITERAL: L,
5499
5500
  SLASH_LITERAL: ne,
@@ -5501,12 +5502,12 @@ function Af() {
5501
5502
  DOTS_SLASH: pe,
5502
5503
  NO_DOT: K,
5503
5504
  NO_DOT_SLASH: k,
5504
- NO_DOTS_SLASH: F,
5505
+ NO_DOTS_SLASH: B,
5505
5506
  QMARK: N,
5506
5507
  QMARK_NO_DOT: se,
5507
5508
  STAR: ge,
5508
5509
  START_ANCHOR: we
5509
- } = te, ve = (_) => `(${J}(?:(?!${we}${_.dot ? pe : re}).)*?)`, z = h.dot ? "" : K, ie = h.dot ? N : se;
5510
+ } = te, ve = (_) => `(${q}(?:(?!${we}${_.dot ? pe : re}).)*?)`, J = h.dot ? "" : K, ie = h.dot ? N : se;
5510
5511
  let ye = h.bash === !0 ? ve(h) : ge;
5511
5512
  h.capture && (ye = `(${ye})`), typeof h.noext == "boolean" && (h.noextglob = h.noext);
5512
5513
  const D = {
@@ -5524,7 +5525,7 @@ function Af() {
5524
5525
  parens: 0,
5525
5526
  quotes: 0,
5526
5527
  globstar: !1,
5527
- tokens: B
5528
+ tokens: F
5528
5529
  };
5529
5530
  p = t.removePrefix(p, D), $ = p.length;
5530
5531
  const Oe = [], Re = [], Pe = [];
@@ -5551,7 +5552,7 @@ function Af() {
5551
5552
  S.output = (S.output || S.value) + _.value, S.value += _.value;
5552
5553
  return;
5553
5554
  }
5554
- _.prev = S, B.push(_), S = _;
5555
+ _.prev = S, F.push(_), S = _;
5555
5556
  }, C = (_, P) => {
5556
5557
  const b = { ...U[P], conditions: 1, inner: "" };
5557
5558
  b.prev = S, b.parens = D.parens, b.output = D.output;
@@ -5597,7 +5598,7 @@ function Af() {
5597
5598
  if (b.includes("[") && (S.posix = !0, b.includes(":"))) {
5598
5599
  const A = S.value.lastIndexOf("["), T = S.value.slice(0, A), G = S.value.slice(A + 2), M = r[G];
5599
5600
  if (M) {
5600
- S.value = T + M, D.backtrack = !0, de(), !j.output && B.indexOf(S) === 1 && (j.output = le);
5601
+ S.value = T + M, D.backtrack = !0, de(), !j.output && F.indexOf(S) === 1 && (j.output = le);
5601
5602
  continue;
5602
5603
  }
5603
5604
  }
@@ -5658,7 +5659,7 @@ function Af() {
5658
5659
  D.output += A, S.value = A;
5659
5660
  continue;
5660
5661
  }
5661
- S.value = `(${J}${A}|${S.value})`, D.output += S.value;
5662
+ S.value = `(${q}${A}|${S.value})`, D.output += S.value;
5662
5663
  continue;
5663
5664
  }
5664
5665
  if (x === "{" && h.nobrace !== !0) {
@@ -5681,8 +5682,8 @@ function Af() {
5681
5682
  }
5682
5683
  let A = ")";
5683
5684
  if (b.dots === !0) {
5684
- const T = B.slice(), G = [];
5685
- for (let M = T.length - 1; M >= 0 && (B.pop(), T[M].type !== "brace"); M--)
5685
+ const T = F.slice(), G = [];
5686
+ for (let M = T.length - 1; M >= 0 && (F.pop(), T[M].type !== "brace"); M--)
5686
5687
  T[M].type !== "dots" && G.unshift(T[M].value);
5687
5688
  A = c(G, h), D.backtrack = !0;
5688
5689
  }
@@ -5707,7 +5708,7 @@ function Af() {
5707
5708
  }
5708
5709
  if (x === "/") {
5709
5710
  if (S.type === "dot" && D.index === D.start + 1) {
5710
- D.start = D.index + 1, D.consumed = "", D.output = "", B.pop(), S = j;
5711
+ D.start = D.index + 1, D.consumed = "", D.output = "", F.pop(), S = j;
5711
5712
  continue;
5712
5713
  }
5713
5714
  y({ type: "slash", value: x, output: ne });
@@ -5837,14 +5838,14 @@ function Af() {
5837
5838
  }
5838
5839
  const P = { type: "star", value: x, output: ye };
5839
5840
  if (h.bash === !0) {
5840
- P.output = ".*?", (S.type === "bos" || S.type === "slash") && (P.output = z + P.output), y(P);
5841
+ P.output = ".*?", (S.type === "bos" || S.type === "slash") && (P.output = J + P.output), y(P);
5841
5842
  continue;
5842
5843
  }
5843
5844
  if (S && (S.type === "bracket" || S.type === "paren") && h.regex === !0) {
5844
5845
  P.output = x, y(P);
5845
5846
  continue;
5846
5847
  }
5847
- (D.index === D.start || S.type === "slash" || S.type === "dot") && (S.type === "dot" ? (D.output += k, S.output += k) : h.dot === !0 ? (D.output += F, S.output += F) : (D.output += z, S.output += z), Z() !== "*" && (D.output += le, S.output += le)), y(P);
5848
+ (D.index === D.start || S.type === "slash" || S.type === "dot") && (S.type === "dot" ? (D.output += k, S.output += k) : h.dot === !0 ? (D.output += B, S.output += B) : (D.output += J, S.output += J), Z() !== "*" && (D.output += le, S.output += le)), y(P);
5848
5849
  }
5849
5850
  for (; D.brackets > 0; ) {
5850
5851
  if (h.strictBrackets === !0) throw new SyntaxError(l("closing", "]"));
@@ -5872,45 +5873,45 @@ function Af() {
5872
5873
  p = i[p] || p;
5873
5874
  const {
5874
5875
  DOT_LITERAL: j,
5875
- SLASH_LITERAL: B,
5876
- ONE_CHAR: J,
5876
+ SLASH_LITERAL: F,
5877
+ ONE_CHAR: q,
5877
5878
  DOTS_SLASH: te,
5878
5879
  NO_DOT: U,
5879
5880
  NO_DOTS: re,
5880
5881
  NO_DOTS_SLASH: L,
5881
5882
  STAR: ne,
5882
5883
  START_ANCHOR: le
5883
- } = e.globChars(h.windows), pe = h.dot ? re : U, K = h.dot ? L : U, k = h.capture ? "" : "?:", F = { negated: !1, prefix: "" };
5884
+ } = e.globChars(h.windows), pe = h.dot ? re : U, K = h.dot ? L : U, k = h.capture ? "" : "?:", B = { negated: !1, prefix: "" };
5884
5885
  let N = h.bash === !0 ? ".*?" : ne;
5885
5886
  h.capture && (N = `(${N})`);
5886
- const se = (z) => z.noglobstar === !0 ? N : `(${k}(?:(?!${le}${z.dot ? te : j}).)*?)`, ge = (z) => {
5887
- switch (z) {
5887
+ const se = (J) => J.noglobstar === !0 ? N : `(${k}(?:(?!${le}${J.dot ? te : j}).)*?)`, ge = (J) => {
5888
+ switch (J) {
5888
5889
  case "*":
5889
- return `${pe}${J}${N}`;
5890
+ return `${pe}${q}${N}`;
5890
5891
  case ".*":
5891
- return `${j}${J}${N}`;
5892
+ return `${j}${q}${N}`;
5892
5893
  case "*.*":
5893
- return `${pe}${N}${j}${J}${N}`;
5894
+ return `${pe}${N}${j}${q}${N}`;
5894
5895
  case "*/*":
5895
- return `${pe}${N}${B}${J}${K}${N}`;
5896
+ return `${pe}${N}${F}${q}${K}${N}`;
5896
5897
  case "**":
5897
5898
  return pe + se(h);
5898
5899
  case "**/*":
5899
- return `(?:${pe}${se(h)}${B})?${K}${J}${N}`;
5900
+ return `(?:${pe}${se(h)}${F})?${K}${q}${N}`;
5900
5901
  case "**/*.*":
5901
- return `(?:${pe}${se(h)}${B})?${K}${N}${j}${J}${N}`;
5902
+ return `(?:${pe}${se(h)}${F})?${K}${N}${j}${q}${N}`;
5902
5903
  case "**/.*":
5903
- return `(?:${pe}${se(h)}${B})?${j}${J}${N}`;
5904
+ return `(?:${pe}${se(h)}${F})?${j}${q}${N}`;
5904
5905
  default: {
5905
- const ie = /^(.*?)\.(\w+)$/.exec(z);
5906
+ const ie = /^(.*?)\.(\w+)$/.exec(J);
5906
5907
  if (!ie) return;
5907
5908
  const ye = ge(ie[1]);
5908
5909
  return ye ? ye + j + ie[2] : void 0;
5909
5910
  }
5910
5911
  }
5911
- }, we = t.removePrefix(p, F);
5912
+ }, we = t.removePrefix(p, B);
5912
5913
  let ve = ge(we);
5913
- return ve && h.strictSlashes !== !0 && (ve += `${B}?`), ve;
5914
+ return ve && h.strictSlashes !== !0 && (ve += `${F}?`), ve;
5914
5915
  }, No = E, No;
5915
5916
  }
5916
5917
  var To, pi;
@@ -5919,9 +5920,9 @@ function Nf() {
5919
5920
  pi = 1;
5920
5921
  const e = /* @__PURE__ */ Sf(), t = /* @__PURE__ */ Af(), n = /* @__PURE__ */ oo(), r = /* @__PURE__ */ ro(), o = (i) => i && typeof i == "object" && !Array.isArray(i), s = (i, c, l = !1) => {
5921
5922
  if (Array.isArray(i)) {
5922
- const B = i.map((te) => s(te, c, l));
5923
+ const F = i.map((te) => s(te, c, l));
5923
5924
  return (te) => {
5924
- for (const U of B) {
5925
+ for (const U of F) {
5925
5926
  const re = U(te);
5926
5927
  if (re) return re;
5927
5928
  }
@@ -5935,12 +5936,12 @@ function Nf() {
5935
5936
  delete h.state;
5936
5937
  let $ = () => !1;
5937
5938
  if (p.ignore) {
5938
- const B = { ...c, ignore: null, onMatch: null, onResult: null };
5939
- $ = s(p.ignore, B, l);
5939
+ const F = { ...c, ignore: null, onMatch: null, onResult: null };
5940
+ $ = s(p.ignore, F, l);
5940
5941
  }
5941
- const j = (B, J = !1) => {
5942
- const { isMatch: te, match: U, output: re } = s.test(B, h, c, { glob: i, posix: d }), L = { glob: i, state: O, regex: h, posix: d, input: B, output: re, match: U, isMatch: te };
5943
- return typeof p.onResult == "function" && p.onResult(L), te === !1 ? (L.isMatch = !1, J ? L : !1) : $(B) ? (typeof p.onIgnore == "function" && p.onIgnore(L), L.isMatch = !1, J ? L : !1) : (typeof p.onMatch == "function" && p.onMatch(L), J ? L : !0);
5942
+ const j = (F, q = !1) => {
5943
+ const { isMatch: te, match: U, output: re } = s.test(F, h, c, { glob: i, posix: d }), L = { glob: i, state: O, regex: h, posix: d, input: F, output: re, match: U, isMatch: te };
5944
+ return typeof p.onResult == "function" && p.onResult(L), te === !1 ? (L.isMatch = !1, q ? L : !1) : $(F) ? (typeof p.onIgnore == "function" && p.onIgnore(L), L.isMatch = !1, q ? L : !1) : (typeof p.onMatch == "function" && p.onMatch(L), q ? L : !0);
5944
5945
  };
5945
5946
  return l && (j.state = O), j;
5946
5947
  };
@@ -6060,7 +6061,8 @@ const Df = () => {
6060
6061
  }, $f = () => {
6061
6062
  const e = vt("microApp");
6062
6063
  e.cors.on("customEventFromMain", (t) => {
6063
- e.event.emit("customEventFromMain", t.data);
6064
+ var n, r;
6065
+ (n = t.data) != null && n.eventName && e.event.emit(t.data.eventName, (r = t.data) == null ? void 0 : r.params);
6064
6066
  });
6065
6067
  }, Ig = async (e) => {
6066
6068
  e || (e = {});
@@ -6809,7 +6811,7 @@ function hg() {
6809
6811
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window, u = $(a);
6810
6812
  return u && a.mockDomain && a.mockDomain.indexOf(c.MOCK) === 0 ? a.mockDomain : u;
6811
6813
  }
6812
- function B(a) {
6814
+ function F(a) {
6813
6815
  try {
6814
6816
  if (a === window) return !0;
6815
6817
  } catch {
@@ -6829,7 +6831,7 @@ function hg() {
6829
6831
  }
6830
6832
  return !1;
6831
6833
  }
6832
- function J(a, u) {
6834
+ function q(a, u) {
6833
6835
  if (!a || !u) return !1;
6834
6836
  var m = d(u);
6835
6837
  return m ? m === a : function(v) {
@@ -6898,7 +6900,7 @@ function hg() {
6898
6900
  return !w || w.message !== E;
6899
6901
  }
6900
6902
  if (u && function(w) {
6901
- if (!B(w)) return !1;
6903
+ if (!F(w)) return !1;
6902
6904
  try {
6903
6905
  if (w === window || p(w) && O(w) || j(window) === j(w)) return !0;
6904
6906
  } catch {
@@ -6987,7 +6989,7 @@ function hg() {
6987
6989
  }
6988
6990
  return -1;
6989
6991
  }
6990
- var k, F = function() {
6992
+ var k, B = function() {
6991
6993
  function a() {
6992
6994
  if (function(u, m) {
6993
6995
  if (!(u instanceof a)) throw new TypeError("Cannot call a class as a function");
@@ -7174,7 +7176,7 @@ function hg() {
7174
7176
  return "Error while stringifying error: " + ve(w, u + 1);
7175
7177
  }
7176
7178
  }
7177
- var z = function(a) {
7179
+ var J = function(a) {
7178
7180
  if (!a) return a;
7179
7181
  var u = !1;
7180
7182
  return function() {
@@ -7297,9 +7299,9 @@ function hg() {
7297
7299
  he.reject(Le);
7298
7300
  });
7299
7301
  }, V = 0; V < w.length; V++) {
7300
- var Y = w[V], X = Y.onSuccess, ae = Y.onError, ee = Y.promise, q = void 0;
7302
+ var Y = w[V], X = Y.onSuccess, ae = Y.onError, ee = Y.promise, z = void 0;
7301
7303
  if (m) try {
7302
- q = X ? X(this.value) : this.value;
7304
+ z = X ? X(this.value) : this.value;
7303
7305
  } catch (fe) {
7304
7306
  ee.reject(fe);
7305
7307
  continue;
@@ -7310,13 +7312,13 @@ function hg() {
7310
7312
  continue;
7311
7313
  }
7312
7314
  try {
7313
- q = ae(this.error);
7315
+ z = ae(this.error);
7314
7316
  } catch (fe) {
7315
7317
  ee.reject(fe);
7316
7318
  continue;
7317
7319
  }
7318
7320
  }
7319
- q instanceof a && (q.resolved || q.rejected) ? (q.resolved ? ee.resolve(q.value) : ee.reject(q.error), q.errorHandled = !0) : Re(q) ? q instanceof a && (q.resolved || q.rejected) ? q.resolved ? ee.resolve(q.value) : ee.reject(q.error) : I(q, ee) : ee.resolve(q);
7321
+ z instanceof a && (z.resolved || z.rejected) ? (z.resolved ? ee.resolve(z.value) : ee.reject(z.error), z.errorHandled = !0) : 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);
7320
7322
  }
7321
7323
  w.length = 0, this.dispatching = !1, $e();
7322
7324
  }
@@ -7367,10 +7369,10 @@ function hg() {
7367
7369
  if (!v)
7368
7370
  return m.resolve(w), m;
7369
7371
  for (var I = function(X, ae, ee) {
7370
- return ae.then(function(q) {
7371
- w[X] = q, (v -= 1) == 0 && m.resolve(w);
7372
- }, function(q) {
7373
- ee.reject(q);
7372
+ return ae.then(function(z) {
7373
+ w[X] = z, (v -= 1) == 0 && m.resolve(w);
7374
+ }, function(z) {
7375
+ ee.reject(z);
7374
7376
  });
7375
7377
  }, V = 0; V < u.length; V++) {
7376
7378
  var Y = u[V];
@@ -7435,8 +7437,8 @@ function hg() {
7435
7437
  } : function(a) {
7436
7438
  return a && typeof Symbol == "function" && a.constructor === Symbol && a !== Symbol.prototype ? "symbol" : typeof a;
7437
7439
  };
7438
- W.methods = W.methods || new F();
7439
- var f = z(function() {
7440
+ W.methods = W.methods || new B();
7441
+ var f = J(function() {
7440
7442
  W.on(N.POST_MESSAGE_NAMES.METHOD, {
7441
7443
  origin: N.WILDCARD
7442
7444
  }, function(a) {
@@ -7497,7 +7499,7 @@ function hg() {
7497
7499
  return C(a, u, m.__then__)(v, w);
7498
7500
  });
7499
7501
  }
7500
- W.readyPromises = W.readyPromises || new F();
7502
+ W.readyPromises = W.readyPromises || new B();
7501
7503
  function _(a) {
7502
7504
  return W.send(a, N.POST_MESSAGE_NAMES.HELLO, {}, {
7503
7505
  domain: N.WILDCARD,
@@ -7513,7 +7515,7 @@ function hg() {
7513
7515
  (Array.isArray(m) ? m : typeof m == "string" ? [m] : [N.WILDCARD]).map(function(v) {
7514
7516
  if (v.indexOf(N.MOCK_PROTOCOL) === 0) {
7515
7517
  if (window.location.protocol === N.FILE_PROTOCOL) return N.WILDCARD;
7516
- if (!B(a)) throw new Error("Attempting to send messsage to mock domain " + v + ", but window is actually cross-domain");
7518
+ if (!F(a)) throw new Error("Attempting to send messsage to mock domain " + v + ", but window is actually cross-domain");
7517
7519
  return $(a);
7518
7520
  }
7519
7521
  return v.indexOf(N.FILE_PROTOCOL) === 0 ? N.WILDCARD : v;
@@ -7538,9 +7540,9 @@ function hg() {
7538
7540
  }() ? N.WINDOW_TYPES.POPUP : function() {
7539
7541
  var fe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
7540
7542
  return !!d(fe);
7541
- }() ? N.WINDOW_TYPES.IFRAME : N.WINDOW_TYPES.FULLPAGE, q = j(window);
7543
+ }() ? N.WINDOW_TYPES.IFRAME : N.WINDOW_TYPES.FULLPAGE, z = j(window);
7542
7544
  return b({}, Y, X, {
7543
- sourceDomain: q,
7545
+ sourceDomain: z,
7544
7546
  id: Y.id || ae,
7545
7547
  windowType: ee
7546
7548
  });
@@ -7549,10 +7551,10 @@ function hg() {
7549
7551
  return D({
7550
7552
  obj: u.data
7551
7553
  }, function(ae, ee) {
7552
- return typeof ae == "function" ? y(V, Y, ae, ee.toString()) : ae instanceof Error ? (q = ae, {
7554
+ return typeof ae == "function" ? y(V, Y, ae, ee.toString()) : ae instanceof Error ? (z = ae, {
7553
7555
  __type__: N.SERIALIZATION_TYPES.ERROR,
7554
- __message__: ve(q),
7555
- __code__: q.code
7556
+ __message__: ve(z),
7557
+ __code__: z.code
7556
7558
  }) : window.Promise && ae instanceof window.Promise ? function(he, Le, ze, Ie) {
7557
7559
  return {
7558
7560
  __type__: N.SERIALIZATION_TYPES.PROMISE,
@@ -7571,7 +7573,7 @@ function hg() {
7571
7573
  __type__: N.SERIALIZATION_TYPES.REGEX,
7572
7574
  __source__: fe.source
7573
7575
  }) : void 0;
7574
- var q, fe;
7576
+ var z, fe;
7575
7577
  }).obj;
7576
7578
  }(a, m),
7577
7579
  domain: m
@@ -7585,13 +7587,13 @@ function hg() {
7585
7587
  } catch (fe) {
7586
7588
  throw new Error("Can not repair JSON.stringify: " + fe.message);
7587
7589
  }
7588
- var q = JSON.stringify.call(this, V, null, 2);
7590
+ var z = JSON.stringify.call(this, V, null, 2);
7589
7591
  try {
7590
7592
  ae && (Object.prototype.toJSON = ae), ee && (Array.prototype.toJSON = ee);
7591
7593
  } catch (fe) {
7592
7594
  throw new Error("Can not repair JSON.stringify: " + fe.message);
7593
7595
  }
7594
- return q;
7596
+ return z;
7595
7597
  }(((v = {})[N.WINDOW_PROPS.POSTROBOT] = u, v));
7596
7598
  return _e.map(Object.keys(P), function(V) {
7597
7599
  return _e.try(function() {
@@ -7633,8 +7635,8 @@ function hg() {
7633
7635
  if (ae) {
7634
7636
  if (v && typeof v == "string") {
7635
7637
  if (ae[v]) return ae[v];
7636
- if (ae[G]) for (var ee = 0, q = ae[G], fe = q == null ? 0 : q.length; ee < fe; ee++) {
7637
- var he = q[ee], Le = he.regex, ze = he.listener;
7638
+ if (ae[G]) for (var ee = 0, z = ae[G], fe = z == null ? 0 : z.length; ee < fe; ee++) {
7639
+ var he = z[ee], Le = he.regex, ze = he.listener;
7638
7640
  if (le(Le, v)) return ze;
7639
7641
  }
7640
7642
  }
@@ -7744,11 +7746,11 @@ function hg() {
7744
7746
  obj: v.data
7745
7747
  }, function(Y) {
7746
7748
  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) {
7747
- var q = new Error(ee.__message__);
7748
- return ee.__code__ && (q.code = ee.__code__), q;
7749
+ var z = new Error(ee.__message__);
7750
+ return ee.__code__ && (z.code = ee.__code__), z;
7749
7751
  }(0, 0, Y) : g(Y, N.SERIALIZATION_TYPES.PROMISE) ? function(X, ae, ee) {
7750
- return window.Promise ? new window.Promise(function(q, fe) {
7751
- return C(X, ae, ee.__then__)(q, fe);
7752
+ return window.Promise ? new window.Promise(function(z, fe) {
7753
+ return C(X, ae, ee.__then__)(z, fe);
7752
7754
  }) : R(X, ae, ee);
7753
7755
  }(w, I, Y) : g(Y, N.SERIALIZATION_TYPES.ZALGO_PROMISE) ? R(w, I, Y) : g(Y, N.SERIALIZATION_TYPES.REGEX) ? function(X, ae, ee) {
7754
7756
  return new RegExp(ee.__source__);
@@ -7770,7 +7772,7 @@ function hg() {
7770
7772
  data: a.data
7771
7773
  });
7772
7774
  }
7773
- W.receiveMessage = Ge, W.requestPromises = W.requestPromises || new F();
7775
+ W.receiveMessage = Ge, W.requestPromises = W.requestPromises || new B();
7774
7776
  function tt(a) {
7775
7777
  return _e.try(function() {
7776
7778
  if (!a.name) throw new Error("Expected options.name");
@@ -7794,10 +7796,10 @@ function hg() {
7794
7796
  var Y = !1, X = W.requestPromises.get(I);
7795
7797
  X || (X = [], W.requestPromises.set(I, X));
7796
7798
  var ae = _e.try(function() {
7797
- if (function(ee, q) {
7798
- var fe = ne(q);
7799
+ if (function(ee, z) {
7800
+ var fe = ne(z);
7799
7801
  if (fe) return fe === ee;
7800
- if (q === ee || function() {
7802
+ if (z === ee || function() {
7801
7803
  var Ie = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window;
7802
7804
  try {
7803
7805
  if (Ie.top) return Ie.top;
@@ -7805,11 +7807,11 @@ function hg() {
7805
7807
  }
7806
7808
  if (d(Ie) === Ie) return Ie;
7807
7809
  try {
7808
- if (J(window, Ie) && window.top) return window.top;
7810
+ if (q(window, Ie) && window.top) return window.top;
7809
7811
  } catch {
7810
7812
  }
7811
7813
  try {
7812
- if (J(Ie, window) && window.top) return window.top;
7814
+ if (q(Ie, window) && window.top) return window.top;
7813
7815
  } catch {
7814
7816
  }
7815
7817
  for (var Je = 0, Ke = function Pt(lo) {
@@ -7830,14 +7832,14 @@ function hg() {
7830
7832
  }
7831
7833
  if (d(Ct) === Ct) return Ct;
7832
7834
  }
7833
- }(q) === q) return !1;
7834
- for (var he = 0, Le = te(ee), ze = Le == null ? 0 : Le.length; he < ze; he++) if (Le[he] === q) return !0;
7835
+ }(z) === z) return !1;
7836
+ for (var he = 0, Le = te(ee), ze = Le == null ? 0 : Le.length; he < ze; he++) if (Le[he] === z) return !0;
7835
7837
  return !1;
7836
7838
  }(window, I)) return function(ee) {
7837
- var q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5e3, fe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "Window", he = W.readyPromises.get(ee);
7838
- return he || (he = new _e(), W.readyPromises.set(ee, he), q !== -1 && setTimeout(function() {
7839
- return he.reject(new Error(fe + " did not load after " + q + "ms"));
7840
- }, q), he);
7839
+ var z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 5e3, fe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "Window", he = W.readyPromises.get(ee);
7840
+ return he || (he = new _e(), W.readyPromises.set(ee, he), z !== -1 && setTimeout(function() {
7841
+ return he.reject(new Error(fe + " did not load after " + z + "ms"));
7842
+ }, z), he);
7841
7843
  }(I, a.timeout || ge.CHILD_WINDOW_TIMEOUT);
7842
7844
  }).then(function() {
7843
7845
  var ee = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).origin;
@@ -7849,7 +7851,7 @@ function hg() {
7849
7851
  v = ee;
7850
7852
  }
7851
7853
  if (typeof v != "string" && !Array.isArray(v)) throw new TypeError("Expected domain to be a string or array");
7852
- var q = v;
7854
+ var z = v;
7853
7855
  return new _e(function(fe, he) {
7854
7856
  var Le = void 0;
7855
7857
  if (a.fireAndForget || function(Ke, Et) {
@@ -7857,7 +7859,7 @@ function hg() {
7857
7859
  }(V, Le = {
7858
7860
  name: u,
7859
7861
  window: I,
7860
- domain: q,
7862
+ domain: z,
7861
7863
  respond: function(Ke, Et) {
7862
7864
  Ke || (Y = !0, X.splice(X.indexOf(ae, 1))), Ke ? he(Ke) : fe(Et);
7863
7865
  }
@@ -7867,7 +7869,7 @@ function hg() {
7867
7869
  name: u,
7868
7870
  data: a.data,
7869
7871
  fireAndForget: a.fireAndForget
7870
- }, q).catch(he), a.fireAndForget) return fe();
7872
+ }, z).catch(he), a.fireAndForget) return fe();
7871
7873
  var ze = ge.ACK_TIMEOUT, Ie = a.timeout || ge.RES_TIMEOUT, Je = 100;
7872
7874
  setTimeout(function Ke() {
7873
7875
  if (!Y) {
@@ -7928,13 +7930,13 @@ function hg() {
7928
7930
  domain: v || N.WILDCARD,
7929
7931
  name: u
7930
7932
  }, I = function X(ae, ee) {
7931
- var q = ae.name, fe = ae.win, he = ae.domain;
7932
- if (!q || typeof q != "string") throw new Error("Name required to add request listener");
7933
+ var z = ae.name, fe = ae.win, he = ae.domain;
7934
+ if (!z || typeof z != "string") throw new Error("Name required to add request listener");
7933
7935
  if (Array.isArray(fe)) {
7934
7936
  for (var Le = [], ze = 0, Ie = fe, Je = Ie == null ? 0 : Ie.length; ze < Je; ze++) {
7935
7937
  var Ke = Ie[ze];
7936
7938
  Le.push(X({
7937
- name: q,
7939
+ name: z,
7938
7940
  domain: he,
7939
7941
  win: Ke
7940
7942
  }, ee));
@@ -7949,7 +7951,7 @@ function hg() {
7949
7951
  for (var Et = [], Ct = 0, Pt = he, lo = Pt == null ? 0 : Pt.length; Ct < lo; Ct++) {
7950
7952
  var Hn = Pt[Ct];
7951
7953
  Et.push(X({
7952
- name: q,
7954
+ name: z,
7953
7955
  win: fe,
7954
7956
  domain: Hn
7955
7957
  }, ee));
@@ -7961,13 +7963,13 @@ function hg() {
7961
7963
  };
7962
7964
  }
7963
7965
  var Wn = Ee({
7964
- name: q,
7966
+ name: z,
7965
7967
  win: fe,
7966
7968
  domain: he
7967
7969
  });
7968
- if (fe && fe !== N.WILDCARD || (fe = W.WINDOW_WILDCARD), he = he || N.WILDCARD, Wn) throw fe && he ? new Error("Request listener already exists for " + q + " on domain " + he.toString() + " for " + (fe === W.WINDOW_WILDCARD ? "wildcard" : "specified") + " window") : fe ? new Error("Request listener already exists for " + q + " for " + (fe === W.WINDOW_WILDCARD ? "wildcard" : "specified") + " window") : he ? new Error("Request listener already exists for " + q + " on domain " + he.toString()) : new Error("Request listener already exists for " + q);
7969
- var mn = W.requestListeners, kt = mn[q];
7970
- kt || (kt = new F(), mn[q] = kt);
7970
+ 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);
7971
+ var mn = W.requestListeners, kt = mn[z];
7972
+ kt || (kt = new B(), mn[z] = kt);
7971
7973
  var pt = kt.get(fe);
7972
7974
  pt || (pt = {}, kt.set(fe, pt));
7973
7975
  var vn = he.toString(), yt = pt[G], En = void 0;
@@ -7986,14 +7988,14 @@ function hg() {
7986
7988
  }, w);
7987
7989
  if (a.once) {
7988
7990
  var V = w.handler;
7989
- w.handler = z(function() {
7991
+ w.handler = J(function() {
7990
7992
  return I.cancel(), V.apply(this, arguments);
7991
7993
  });
7992
7994
  }
7993
7995
  if (w.window && a.errorOnClose) var Y = function(X, ae) {
7994
7996
  var ee = void 0;
7995
- return ee = setTimeout(function q() {
7996
- ee = setTimeout(q, 50), (function() {
7997
+ return ee = setTimeout(function z() {
7998
+ ee = setTimeout(z, 50), (function() {
7997
7999
  m && (m === void 0 ? "undefined" : ft(m)) === "object" && L(m) && (Y.cancel(), w.handleError(new Error("Post message target window is closed")));
7998
8000
  }).call();
7999
8001
  }, 50), {
@@ -8199,7 +8201,7 @@ const ga = () => {
8199
8201
  }
8200
8202
  }), br.value.appendChild(l);
8201
8203
  const [d, h] = await new Promise((j) => {
8202
- l.onload = (B) => j([null, B]), l.onerror = () => j([new Error(`${s} IFrame load failed`), null]);
8204
+ l.onload = (F) => j([null, F]), l.onerror = () => j([new Error(`${s} IFrame load failed`), null]);
8203
8205
  });
8204
8206
  if (d) {
8205
8207
  c.status = nt.error, n.emit(nt.error, c);