@myop/vue 0.0.28 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,42 +1,42 @@
1
- import { defineComponent as Q, useSlots as X, computed as y, createElementBlock as A, openBlock as b, normalizeStyle as W, renderSlot as M, unref as ge, ref as p, shallowRef as lt, watch as ae, onMounted as Re, onUnmounted as at, createElementVNode as $e, createBlock as ke, createCommentVNode as pe, withCtx as Ve, markRaw as Ie, useAttrs as ct, getCurrentInstance as ut, reactive as ft, watchEffect as pt, Fragment as dt, mergeProps as mt } from "vue";
2
- import { containerStyleObject as ht, loaderStyleObject as gt, getMyopLogoHtml as xe, fallbackStyleObject as yt, hostSDK as Te } from "@myop/sdk/host";
3
- import { CloudRepository as Z } from "@myop/sdk/helpers";
4
- const _t = ["innerHTML"], Ct = /* @__PURE__ */ Q({
1
+ import { defineComponent as Z, useSlots as ee, computed as y, createElementBlock as M, openBlock as S, normalizeStyle as B, renderSlot as H, unref as ye, ref as p, shallowRef as ft, watch as ce, onMounted as Te, onUnmounted as pt, createElementVNode as Me, createBlock as Fe, createCommentVNode as de, withCtx as $e, markRaw as Re, useAttrs as dt, getCurrentInstance as mt, reactive as ht, watchEffect as gt, Fragment as yt, mergeProps as _t } from "vue";
2
+ import { containerStyleObject as Ct, loaderStyleObject as vt, getMyopLogoHtml as He, fallbackStyleObject as Et, hostSDK as ze } from "@myop/sdk/host";
3
+ import { CloudRepository as te } from "@myop/sdk/helpers";
4
+ const Nt = ["innerHTML"], bt = /* @__PURE__ */ Z({
5
5
  __name: "MyopLoader",
6
6
  props: {
7
7
  opacity: { default: 1 },
8
8
  fadeDuration: { default: 200 }
9
9
  },
10
10
  setup(e) {
11
- const t = e, n = X(), o = (l) => !l || l.length === 0 ? !1 : l.some((c) => typeof c.children == "string" ? c.children.trim() !== "" : Array.isArray(c.children) ? o(c.children) : !!(c.type && typeof c.type != "symbol" || c.children)), s = y(() => {
11
+ const t = e, n = ee(), o = (l) => !l || l.length === 0 ? !1 : l.some((c) => typeof c.children == "string" ? c.children.trim() !== "" : Array.isArray(c.children) ? o(c.children) : !!(c.type && typeof c.type != "symbol" || c.children)), s = y(() => {
12
12
  const l = n.default;
13
13
  if (!l) return !1;
14
14
  const c = l();
15
15
  return o(c);
16
16
  }), r = y(() => ({
17
- ...ht,
17
+ ...Ct,
18
18
  opacity: t.opacity,
19
19
  transition: `opacity ${t.fadeDuration}ms ease-out`
20
20
  })), i = y(() => ({
21
- ...gt,
21
+ ...vt,
22
22
  opacity: t.opacity,
23
23
  transition: `opacity ${t.fadeDuration}ms ease-out`
24
- })), a = xe();
25
- return (l, c) => s.value ? (b(), A("div", {
24
+ })), a = He();
25
+ return (l, c) => s.value ? (S(), M("div", {
26
26
  key: 0,
27
- style: W(r.value)
27
+ style: B(r.value)
28
28
  }, [
29
- M(l.$slots, "default")
30
- ], 4)) : (b(), A("div", {
29
+ H(l.$slots, "default")
30
+ ], 4)) : (S(), M("div", {
31
31
  key: 1,
32
- style: W(i.value),
33
- innerHTML: ge(a)
34
- }, null, 12, _t));
32
+ style: B(i.value),
33
+ innerHTML: ye(a)
34
+ }, null, 12, Nt));
35
35
  }
36
- }), vt = ["innerHTML"], Et = /* @__PURE__ */ Q({
36
+ }), St = ["innerHTML"], wt = /* @__PURE__ */ Z({
37
37
  __name: "MyopFallback",
38
38
  setup(e) {
39
- const t = X(), n = (a) => !a || a.length === 0 ? !1 : a.some((l) => typeof l.children == "string" ? l.children.trim() !== "" : Array.isArray(l.children) ? n(l.children) : !!(l.type && typeof l.type != "symbol" || l.children)), o = y(() => {
39
+ const t = ee(), n = (a) => !a || a.length === 0 ? !1 : a.some((l) => typeof l.children == "string" ? l.children.trim() !== "" : Array.isArray(l.children) ? n(l.children) : !!(l.type && typeof l.type != "symbol" || l.children)), o = y(() => {
40
40
  const a = t.default;
41
41
  if (!a) return !1;
42
42
  const l = a();
@@ -48,20 +48,20 @@ const _t = ["innerHTML"], Ct = /* @__PURE__ */ Q({
48
48
  right: "0",
49
49
  bottom: "0"
50
50
  }, r = {
51
- ...yt
52
- }, i = xe();
53
- return (a, l) => o.value ? (b(), A("div", {
51
+ ...Et
52
+ }, i = He();
53
+ return (a, l) => o.value ? (S(), M("div", {
54
54
  key: 0,
55
55
  style: s
56
56
  }, [
57
- M(a.$slots, "default")
58
- ])) : (b(), A("div", {
57
+ H(a.$slots, "default")
58
+ ])) : (S(), M("div", {
59
59
  key: 1,
60
60
  style: r,
61
- innerHTML: ge(i)
62
- }, null, 8, vt));
61
+ innerHTML: ye(i)
62
+ }, null, 8, St));
63
63
  }
64
- }), En = /* @__PURE__ */ Q({
64
+ }), kn = /* @__PURE__ */ Z({
65
65
  name: "MyopComponent",
66
66
  __name: "MyopComponent",
67
67
  props: {
@@ -69,14 +69,14 @@ const _t = ["innerHTML"], Ct = /* @__PURE__ */ Q({
69
69
  componentConfig: {},
70
70
  data: {},
71
71
  fadeDuration: { default: 200 },
72
- autoSize: { type: Boolean, default: !1 },
72
+ autoSize: { type: Boolean, default: !0 },
73
73
  environment: {},
74
74
  preview: { type: Boolean },
75
75
  on: {}
76
76
  },
77
77
  emits: ["load", "error", "sizeChange", "cta"],
78
78
  setup(e, { expose: t, emit: n }) {
79
- const o = X(), s = (u) => !u || u.length === 0 ? !1 : u.some((f) => typeof f.children == "string" ? f.children.trim() !== "" : Array.isArray(f.children) ? s(f.children) : !!(f.type && typeof f.type != "symbol" || f.children)), r = y(() => {
79
+ const o = ee(), s = (u) => !u || u.length === 0 ? !1 : u.some((f) => typeof f.children == "string" ? f.children.trim() !== "" : Array.isArray(f.children) ? s(f.children) : !!(f.type && typeof f.type != "symbol" || f.children)), r = y(() => {
80
80
  const u = o.loader;
81
81
  if (!u) return !1;
82
82
  const f = u();
@@ -88,17 +88,17 @@ const _t = ["innerHTML"], Ct = /* @__PURE__ */ Q({
88
88
  const f = u();
89
89
  return s(f);
90
90
  });
91
- const i = e, a = n, l = p(null), c = lt(null), d = i.componentId ? yn(i.componentId) : !1, g = p(!d), V = p(1), E = p(!1), F = p(!1), I = p(void 0), oe = p(!1), P = p(null), re = p(!1);
92
- let R = null;
93
- const se = () => {
91
+ const i = e, a = n, l = p(null), c = ft(null), d = i.componentId ? En(i.componentId) : !1, g = p(!d), V = p(1), E = p(!1), I = p(!1), D = p(void 0), Se = p({ fillWidth: !1, fillHeight: !1 }), se = p(!1), L = p(null);
92
+ let $ = null;
93
+ const ie = () => {
94
94
  V.value = 0, setTimeout(() => {
95
95
  g.value = !1;
96
96
  }, i.fadeDuration);
97
- }, ie = (u) => {
98
- console.error("[MyopComponent] Error:", u), se(), E.value = !0, a("error", u);
99
- }, le = async (u) => {
100
- var N, L;
101
- oe.value = !0;
97
+ }, le = (u) => {
98
+ console.error("[MyopComponent] Error:", u), ie(), E.value = !0, a("error", u);
99
+ }, ae = async (u) => {
100
+ var N, U, Oe;
101
+ se.value = !0;
102
102
  let f = !1;
103
103
  try {
104
104
  const m = JSON.parse(JSON.stringify({
@@ -109,147 +109,152 @@ const _t = ["innerHTML"], Ct = /* @__PURE__ */ Q({
109
109
  autoSize: u.autoSize
110
110
  }));
111
111
  if (!m.componentId && !u.componentConfig) {
112
- ie("No component configuration provided");
112
+ le("No component configuration provided");
113
113
  return;
114
114
  }
115
- const rt = m.preview === !0 ? !0 : void 0, st = u.componentConfig ? JSON.parse(JSON.stringify(u.componentConfig)) : await gn().fetchComponentV2(
115
+ const at = m.preview === !0 ? !0 : void 0, ct = u.componentConfig ? JSON.parse(JSON.stringify(u.componentConfig)) : await vn().fetchComponentV2(
116
116
  m.componentId,
117
117
  m.environment,
118
- rt
118
+ at
119
119
  );
120
120
  if (!l.value) {
121
- ie("Container element not found");
121
+ le("Container element not found");
122
122
  return;
123
123
  }
124
- const it = Ie({
124
+ const ut = Re({
125
125
  data: m.data,
126
126
  _environment: {
127
127
  props: m
128
128
  }
129
- }), we = await Te.loadComponent(
130
- st,
129
+ }), ke = await ze.loadComponent(
130
+ ct,
131
131
  l.value,
132
- it
132
+ ut
133
133
  );
134
134
  if (f) {
135
- we.dispose();
135
+ ke.dispose();
136
136
  return;
137
137
  }
138
- if (c.value = Ie(we), await c.value.initiated(), f) {
138
+ if (c.value = Re(ke), await c.value.initiated(), f) {
139
139
  (N = c.value) == null || N.dispose();
140
140
  return;
141
141
  }
142
- if (await new Promise((j) => requestAnimationFrame(j)), f || !c.value || c.value.markedForDisposed) {
142
+ if (await new Promise((J) => requestAnimationFrame(J)), f || !c.value || c.value.markedForDisposed) {
143
143
  c.value && !c.value.markedForDisposed && c.value.dispose();
144
144
  return;
145
145
  }
146
- F.value = !0, i.autoSize || se(), (L = c.value) != null && L.props && (c.value.props.myop_cta_handler = (j, Oe) => {
147
- i.on && i.on(j, Oe), a("cta", j, Oe);
146
+ I.value = !0;
147
+ const R = (U = c.value) == null ? void 0 : U.sizeMeta, Ve = (R == null ? void 0 : R.width) === "100%", Ie = (R == null ? void 0 : R.height) === "100%";
148
+ Se.value = { fillWidth: Ve, fillHeight: Ie }, (!(i.autoSize ?? !0) || Ve && Ie) && ie(), (Oe = c.value) != null && Oe.props && (c.value.props.myop_cta_handler = (J, De) => {
149
+ i.on && i.on(J, De), a("cta", J, De);
148
150
  }), a("load", c.value);
149
151
  } catch (m) {
150
- f || ie((m == null ? void 0 : m.message) || "Unknown error");
152
+ f || le((m == null ? void 0 : m.message) || "Unknown error");
151
153
  } finally {
152
- if (oe.value = !1, P.value !== null && !f) {
153
- const m = P.value;
154
- P.value = null, await le(m);
154
+ if (se.value = !1, L.value !== null && !f) {
155
+ const m = L.value;
156
+ L.value = null, await ae(m);
155
157
  }
156
158
  }
157
159
  return () => {
158
160
  f = !0;
159
161
  };
160
- }, tt = () => {
162
+ }, st = () => {
161
163
  var f;
162
- if (!F.value || !((f = c.value) != null && f.observeAutoSize))
164
+ if (!I.value || !((f = c.value) != null && f.observeAutoSize))
163
165
  return;
164
166
  let u = !0;
165
- R = c.value.observeAutoSize({
167
+ $ = c.value.observeAutoSize({
168
+ // SDK resolves: host props → sizeMeta → defaults (width: "100%", height: auto-size)
166
169
  explicitWidth: void 0,
167
170
  explicitHeight: void 0,
168
- forceAutoSize: i.autoSize,
171
+ forceAutoSize: i.autoSize ?? !0,
169
172
  loaderMinHeight: 50,
170
173
  onSizeChange: (N) => {
171
- a("sizeChange", N), I.value = N, u && (u = !1, se());
174
+ a("sizeChange", N), D.value = N, u && (u = !1, ie());
172
175
  }
173
176
  });
174
177
  };
175
- ae(
178
+ ce(
176
179
  () => i.componentId,
177
180
  async (u, f) => {
178
- u !== f && (re.value = !1, F.value = !1, E.value = !1, g.value = !0, V.value = 1, c.value && (c.value.dispose(), c.value = null), R && (R(), R = null), oe.value ? P.value = { ...i } : await le(i));
181
+ u !== f && (I.value = !1, E.value = !1, g.value = !0, V.value = 1, c.value && (c.value.dispose(), c.value = null), $ && ($(), $ = null), se.value ? L.value = { ...i } : await ae(i));
179
182
  }
180
- ), ae(
183
+ ), ce(
181
184
  () => i.data,
182
185
  (u) => {
183
186
  var f;
184
- if (F.value && u !== void 0 && c.value) {
185
- if (!re.value) {
186
- re.value = !0;
187
- return;
188
- }
187
+ if (I.value && u !== void 0 && c.value) {
189
188
  const N = (f = c.value.props) == null ? void 0 : f.myop_init_interface;
190
189
  if (N) {
191
- const L = JSON.parse(JSON.stringify(u));
192
- N(L);
190
+ const U = JSON.parse(JSON.stringify(u));
191
+ N(U);
193
192
  }
194
193
  }
195
194
  },
196
195
  { deep: !0 }
197
- ), ae(
198
- () => F.value,
196
+ ), ce(
197
+ () => I.value,
199
198
  (u) => {
200
- u && i.autoSize && tt();
199
+ u && st();
201
200
  }
202
- ), Re(async () => {
203
- (i.componentId || i.componentConfig) && await le(i);
204
- }), at(() => {
205
- R && R(), c.value && c.value.dispose();
201
+ ), Te(async () => {
202
+ (i.componentId || i.componentConfig) && await ae(i);
203
+ }), pt(() => {
204
+ $ && $(), c.value && c.value.dispose();
206
205
  });
207
- const Se = y(
208
- () => {
209
- var u, f;
210
- return ((u = I.value) == null ? void 0 : u.autoSizingWidth) || ((f = I.value) == null ? void 0 : f.autoSizingHeight);
211
- }
212
- ), be = y(() => g.value ? 50 : void 0), nt = y(() => {
206
+ const j = y(() => g.value ? 50 : void 0), we = y(
207
+ () => !(i.autoSize ?? !0) || !I.value || Se.value.fillHeight
208
+ ), it = y(() => {
213
209
  var u, f;
214
- return {
210
+ return we.value ? {
215
211
  position: "relative",
216
- width: (u = I.value) != null && u.autoSizingWidth ? `${I.value.width}px` : "100%",
217
- height: (f = I.value) != null && f.autoSizingHeight ? `${I.value.height}px` : "100%",
218
- minHeight: be.value ? `${be.value}px` : void 0,
219
- overflow: Se.value ? "hidden" : "inherit"
212
+ width: "100%",
213
+ height: "100%",
214
+ minHeight: j.value ? `${j.value}px` : void 0
215
+ } : {
216
+ position: "relative",
217
+ width: (u = D.value) != null && u.autoSizingWidth ? `${D.value.width}px` : "100%",
218
+ height: (f = D.value) != null && f.height ? `${D.value.height}px` : void 0,
219
+ minHeight: j.value ? `${j.value}px` : void 0
220
220
  };
221
- }), ot = y(() => ({
222
- position: "absolute",
223
- inset: "0",
224
- overflow: Se.value ? "hidden" : void 0
225
- }));
221
+ }), lt = y(() => {
222
+ var u;
223
+ return we.value ? {
224
+ position: "absolute",
225
+ inset: "0"
226
+ } : {
227
+ width: "100%",
228
+ height: (u = D.value) != null && u.height ? `${D.value.height}px` : void 0
229
+ };
230
+ });
226
231
  return t({
227
232
  myopComponent: c,
228
- isLoaded: F
229
- }), (u, f) => (b(), A("div", {
230
- style: W(nt.value)
233
+ isLoaded: I
234
+ }), (u, f) => (S(), M("div", {
235
+ style: B(it.value)
231
236
  }, [
232
- $e("div", {
237
+ Me("div", {
233
238
  ref_key: "myopContainer",
234
239
  ref: l,
235
- style: W(ot.value)
240
+ style: B(lt.value)
236
241
  }, null, 4),
237
- g.value && r.value ? (b(), ke(Ct, {
242
+ g.value && r.value ? (S(), Fe(bt, {
238
243
  key: 0,
239
244
  opacity: V.value,
240
245
  "fade-duration": e.fadeDuration
241
246
  }, {
242
- default: Ve(() => [
243
- M(u.$slots, "loader")
247
+ default: $e(() => [
248
+ H(u.$slots, "loader")
244
249
  ]),
245
250
  _: 3
246
- }, 8, ["opacity", "fade-duration"])) : pe("", !0),
247
- E.value ? (b(), ke(Et, { key: 1 }, {
248
- default: Ve(() => [
249
- M(u.$slots, "fallback")
251
+ }, 8, ["opacity", "fade-duration"])) : de("", !0),
252
+ E.value ? (S(), Fe(wt, { key: 1 }, {
253
+ default: $e(() => [
254
+ H(u.$slots, "fallback")
250
255
  ]),
251
256
  _: 3
252
- })) : pe("", !0)
257
+ })) : de("", !0)
253
258
  ], 4));
254
259
  }
255
260
  });
@@ -258,51 +263,51 @@ const _t = ["innerHTML"], Ct = /* @__PURE__ */ Q({
258
263
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
259
264
  * @license MIT
260
265
  **/
261
- const Nt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
266
+ const Ot = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
262
267
  process.env.NODE_ENV !== "production" && Object.freeze([]);
263
- const Ae = () => {
264
- }, St = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
265
- (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), ye = Object.assign, C = Array.isArray, _ = (e) => typeof e == "function", w = (e) => typeof e == "string", bt = (e) => typeof e == "symbol", H = (e) => e !== null && typeof e == "object", wt = (e) => (H(e) || _(e)) && _(e.then) && _(e.catch), Me = (e) => {
268
+ const Pe = () => {
269
+ }, kt = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
270
+ (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), _e = Object.assign, C = Array.isArray, _ = (e) => typeof e == "function", w = (e) => typeof e == "string", Vt = (e) => typeof e == "symbol", z = (e) => e !== null && typeof e == "object", It = (e) => (z(e) || _(e)) && _(e.then) && _(e.catch), Le = (e) => {
266
271
  const t = /* @__PURE__ */ Object.create(null);
267
272
  return ((n) => t[n] || (t[n] = e(n)));
268
- }, Ot = Me((e) => e.charAt(0).toUpperCase() + e.slice(1)), kt = Me(
269
- (e) => e ? `on${Ot(e)}` : ""
273
+ }, Dt = Le((e) => e.charAt(0).toUpperCase() + e.slice(1)), Ft = Le(
274
+ (e) => e ? `on${Dt(e)}` : ""
270
275
  );
271
- let De;
272
- const ee = () => De || (De = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
273
- function _e(e) {
276
+ let xe;
277
+ const ne = () => xe || (xe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
278
+ function Ce(e) {
274
279
  if (C(e)) {
275
280
  const t = {};
276
281
  for (let n = 0; n < e.length; n++) {
277
- const o = e[n], s = w(o) ? Ft(o) : _e(o);
282
+ const o = e[n], s = w(o) ? At(o) : Ce(o);
278
283
  if (s)
279
284
  for (const r in s)
280
285
  t[r] = s[r];
281
286
  }
282
287
  return t;
283
- } else if (w(e) || H(e))
288
+ } else if (w(e) || z(e))
284
289
  return e;
285
290
  }
286
- const Vt = /;(?![^(]*\))/g, It = /:([^]+)/, Dt = /\/\*[^]*?\*\//g;
287
- function Ft(e) {
291
+ const $t = /;(?![^(]*\))/g, Rt = /:([^]+)/, xt = /\/\*[^]*?\*\//g;
292
+ function At(e) {
288
293
  const t = {};
289
- return e.replace(Dt, "").split(Vt).forEach((n) => {
294
+ return e.replace(xt, "").split($t).forEach((n) => {
290
295
  if (n) {
291
- const o = n.split(It);
296
+ const o = n.split(Rt);
292
297
  o.length > 1 && (t[o[0].trim()] = o[1].trim());
293
298
  }
294
299
  }), t;
295
300
  }
296
- function Ce(e) {
301
+ function ve(e) {
297
302
  let t = "";
298
303
  if (w(e))
299
304
  t = e;
300
305
  else if (C(e))
301
306
  for (let n = 0; n < e.length; n++) {
302
- const o = Ce(e[n]);
307
+ const o = ve(e[n]);
303
308
  o && (t += o + " ");
304
309
  }
305
- else if (H(e))
310
+ else if (z(e))
306
311
  for (const n in e)
307
312
  e[n] && (t += n + " ");
308
313
  return t.trim();
@@ -316,19 +321,19 @@ process.env.NODE_ENV;
316
321
  process.env.NODE_ENV;
317
322
  process.env.NODE_ENV;
318
323
  new Set(
319
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(bt)
324
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Vt)
320
325
  );
321
326
  // @__NO_SIDE_EFFECTS__
322
- function de(e) {
327
+ function me(e) {
323
328
  return e ? !!e.__v_raw : !1;
324
329
  }
325
330
  // @__NO_SIDE_EFFECTS__
326
- function q(e) {
331
+ function K(e) {
327
332
  const t = e && e.__v_raw;
328
- return t ? /* @__PURE__ */ q(t) : e;
333
+ return t ? /* @__PURE__ */ K(t) : e;
329
334
  }
330
335
  // @__NO_SIDE_EFFECTS__
331
- function He(e) {
336
+ function je(e) {
332
337
  return e ? e.__v_isRef === !0 : !1;
333
338
  }
334
339
  /**
@@ -336,20 +341,20 @@ function He(e) {
336
341
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
337
342
  * @license MIT
338
343
  **/
339
- const D = [];
340
- function Rt(e) {
341
- D.push(e);
344
+ const F = [];
345
+ function Tt(e) {
346
+ F.push(e);
342
347
  }
343
- function $t() {
344
- D.pop();
348
+ function Mt() {
349
+ F.pop();
345
350
  }
346
- let ce = !1;
351
+ let ue = !1;
347
352
  function O(e, ...t) {
348
- if (ce) return;
349
- ce = !0;
350
- const n = D.length ? D[D.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = xt();
353
+ if (ue) return;
354
+ ue = !0;
355
+ const n = F.length ? F[F.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = Ht();
351
356
  if (o)
352
- te(
357
+ oe(
353
358
  o,
354
359
  n,
355
360
  11,
@@ -361,7 +366,7 @@ function O(e, ...t) {
361
366
  }).join(""),
362
367
  n && n.proxy,
363
368
  s.map(
364
- ({ vnode: r }) => `at <${Ze(n, r.type)}>`
369
+ ({ vnode: r }) => `at <${ot(n, r.type)}>`
365
370
  ).join(`
366
371
  `),
367
372
  s
@@ -370,12 +375,12 @@ function O(e, ...t) {
370
375
  else {
371
376
  const r = [`[Vue warn]: ${e}`, ...t];
372
377
  s.length && r.push(`
373
- `, ...Tt(s)), console.warn(...r);
378
+ `, ...zt(s)), console.warn(...r);
374
379
  }
375
- ce = !1;
380
+ ue = !1;
376
381
  }
377
- function xt() {
378
- let e = D[D.length - 1];
382
+ function Ht() {
383
+ let e = F[F.length - 1];
379
384
  if (!e)
380
385
  return [];
381
386
  const t = [];
@@ -390,31 +395,31 @@ function xt() {
390
395
  }
391
396
  return t;
392
397
  }
393
- function Tt(e) {
398
+ function zt(e) {
394
399
  const t = [];
395
400
  return e.forEach((n, o) => {
396
401
  t.push(...o === 0 ? [] : [`
397
- `], ...At(n));
402
+ `], ...Pt(n));
398
403
  }), t;
399
404
  }
400
- function At({ vnode: e, recurseCount: t }) {
401
- const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${Ze(
405
+ function Pt({ vnode: e, recurseCount: t }) {
406
+ const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${ot(
402
407
  e.component,
403
408
  e.type,
404
409
  o
405
410
  )}`, r = ">" + n;
406
- return e.props ? [s, ...Mt(e.props), r] : [s + r];
411
+ return e.props ? [s, ...Lt(e.props), r] : [s + r];
407
412
  }
408
- function Mt(e) {
413
+ function Lt(e) {
409
414
  const t = [], n = Object.keys(e);
410
415
  return n.slice(0, 3).forEach((o) => {
411
- t.push(...ze(o, e[o]));
416
+ t.push(...Ue(o, e[o]));
412
417
  }), n.length > 3 && t.push(" ..."), t;
413
418
  }
414
- function ze(e, t, n) {
415
- return w(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ He(t) ? (t = ze(e, /* @__PURE__ */ q(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : _(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ q(t), n ? t : [`${e}=`, t]);
419
+ function Ue(e, t, n) {
420
+ return w(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ je(t) ? (t = Ue(e, /* @__PURE__ */ K(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : _(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ K(t), n ? t : [`${e}=`, t]);
416
421
  }
417
- const ve = {
422
+ const Ee = {
418
423
  sp: "serverPrefetch hook",
419
424
  bc: "beforeCreate hook",
420
425
  c: "created hook",
@@ -447,34 +452,34 @@ const ve = {
447
452
  15: "component update",
448
453
  16: "app unmount cleanup function"
449
454
  };
450
- function te(e, t, n, o) {
455
+ function oe(e, t, n, o) {
451
456
  try {
452
457
  return o ? e(...o) : e();
453
458
  } catch (s) {
454
- Ee(s, t, n);
459
+ Ne(s, t, n);
455
460
  }
456
461
  }
457
- function Pe(e, t, n, o) {
462
+ function Je(e, t, n, o) {
458
463
  if (_(e)) {
459
- const s = te(e, t, n, o);
460
- return s && wt(s) && s.catch((r) => {
461
- Ee(r, t, n);
464
+ const s = oe(e, t, n, o);
465
+ return s && It(s) && s.catch((r) => {
466
+ Ne(r, t, n);
462
467
  }), s;
463
468
  }
464
469
  if (C(e)) {
465
470
  const s = [];
466
471
  for (let r = 0; r < e.length; r++)
467
- s.push(Pe(e[r], t, n, o));
472
+ s.push(Je(e[r], t, n, o));
468
473
  return s;
469
474
  } else process.env.NODE_ENV !== "production" && O(
470
475
  `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
471
476
  );
472
477
  }
473
- function Ee(e, t, n, o = !0) {
474
- const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: i } = t && t.appContext.config || Nt;
478
+ function Ne(e, t, n, o = !0) {
479
+ const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: i } = t && t.appContext.config || Ot;
475
480
  if (t) {
476
481
  let a = t.parent;
477
- const l = t.proxy, c = process.env.NODE_ENV !== "production" ? ve[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
482
+ const l = t.proxy, c = process.env.NODE_ENV !== "production" ? Ee[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
478
483
  for (; a; ) {
479
484
  const d = a.ec;
480
485
  if (d) {
@@ -485,7 +490,7 @@ function Ee(e, t, n, o = !0) {
485
490
  a = a.parent;
486
491
  }
487
492
  if (r) {
488
- te(r, null, 10, [
493
+ oe(r, null, 10, [
489
494
  e,
490
495
  l,
491
496
  c
@@ -493,12 +498,12 @@ function Ee(e, t, n, o = !0) {
493
498
  return;
494
499
  }
495
500
  }
496
- Ht(e, n, s, o, i);
501
+ jt(e, n, s, o, i);
497
502
  }
498
- function Ht(e, t, n, o = !0, s = !1) {
503
+ function jt(e, t, n, o = !0, s = !1) {
499
504
  if (process.env.NODE_ENV !== "production") {
500
- const r = ve[t];
501
- if (n && Rt(n), O(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && $t(), o)
505
+ const r = Ee[t];
506
+ if (n && Tt(n), O(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && Mt(), o)
502
507
  throw e;
503
508
  console.error(e);
504
509
  } else {
@@ -510,58 +515,58 @@ function Ht(e, t, n, o = !0, s = !1) {
510
515
  const h = [];
511
516
  let v = -1;
512
517
  const T = [];
513
- let S = null, $ = 0;
514
- const zt = /* @__PURE__ */ Promise.resolve();
515
- let me = null;
516
- const Pt = 100;
517
- function Lt(e) {
518
+ let b = null, x = 0;
519
+ const Ut = /* @__PURE__ */ Promise.resolve();
520
+ let he = null;
521
+ const Jt = 100;
522
+ function Wt(e) {
518
523
  let t = v + 1, n = h.length;
519
524
  for (; t < n; ) {
520
- const o = t + n >>> 1, s = h[o], r = z(s);
525
+ const o = t + n >>> 1, s = h[o], r = P(s);
521
526
  r < e || r === e && s.flags & 2 ? t = o + 1 : n = o;
522
527
  }
523
528
  return t;
524
529
  }
525
- function jt(e) {
530
+ function qt(e) {
526
531
  if (!(e.flags & 1)) {
527
- const t = z(e), n = h[h.length - 1];
532
+ const t = P(e), n = h[h.length - 1];
528
533
  !n || // fast path when the job id is larger than the tail
529
- !(e.flags & 2) && t >= z(n) ? h.push(e) : h.splice(Lt(t), 0, e), e.flags |= 1, Le();
534
+ !(e.flags & 2) && t >= P(n) ? h.push(e) : h.splice(Wt(t), 0, e), e.flags |= 1, We();
530
535
  }
531
536
  }
532
- function Le() {
533
- me || (me = zt.then(je));
537
+ function We() {
538
+ he || (he = Ut.then(qe));
534
539
  }
535
- function Ut(e) {
536
- C(e) ? T.push(...e) : S && e.id === -1 ? S.splice($ + 1, 0, e) : e.flags & 1 || (T.push(e), e.flags |= 1), Le();
540
+ function Bt(e) {
541
+ C(e) ? T.push(...e) : b && e.id === -1 ? b.splice(x + 1, 0, e) : e.flags & 1 || (T.push(e), e.flags |= 1), We();
537
542
  }
538
- function Jt(e) {
543
+ function Kt(e) {
539
544
  if (T.length) {
540
545
  const t = [...new Set(T)].sort(
541
- (n, o) => z(n) - z(o)
546
+ (n, o) => P(n) - P(o)
542
547
  );
543
- if (T.length = 0, S) {
544
- S.push(...t);
548
+ if (T.length = 0, b) {
549
+ b.push(...t);
545
550
  return;
546
551
  }
547
- for (S = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), $ = 0; $ < S.length; $++) {
548
- const n = S[$];
549
- process.env.NODE_ENV !== "production" && Ue(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
552
+ for (b = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), x = 0; x < b.length; x++) {
553
+ const n = b[x];
554
+ process.env.NODE_ENV !== "production" && Be(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
550
555
  }
551
- S = null, $ = 0;
556
+ b = null, x = 0;
552
557
  }
553
558
  }
554
- const z = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
555
- function je(e) {
559
+ const P = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
560
+ function qe(e) {
556
561
  process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
557
- const t = process.env.NODE_ENV !== "production" ? (n) => Ue(e, n) : Ae;
562
+ const t = process.env.NODE_ENV !== "production" ? (n) => Be(e, n) : Pe;
558
563
  try {
559
564
  for (v = 0; v < h.length; v++) {
560
565
  const n = h[v];
561
566
  if (n && !(n.flags & 8)) {
562
567
  if (process.env.NODE_ENV !== "production" && t(n))
563
568
  continue;
564
- n.flags & 4 && (n.flags &= -2), te(
569
+ n.flags & 4 && (n.flags &= -2), oe(
565
570
  n,
566
571
  n.i,
567
572
  n.i ? 15 : 14
@@ -573,14 +578,14 @@ function je(e) {
573
578
  const n = h[v];
574
579
  n && (n.flags &= -2);
575
580
  }
576
- v = -1, h.length = 0, Jt(e), me = null, (h.length || T.length) && je(e);
581
+ v = -1, h.length = 0, Kt(e), he = null, (h.length || T.length) && qe(e);
577
582
  }
578
583
  }
579
- function Ue(e, t) {
584
+ function Be(e, t) {
580
585
  const n = e.get(t) || 0;
581
- if (n > Pt) {
582
- const o = t.i, s = o && Xe(o.type);
583
- return Ee(
586
+ if (n > Jt) {
587
+ const o = t.i, s = o && nt(o.type);
588
+ return Ne(
584
589
  `Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
585
590
  null,
586
591
  10
@@ -588,52 +593,52 @@ function Ue(e, t) {
588
593
  }
589
594
  return e.set(t, n + 1), !1;
590
595
  }
591
- const ue = /* @__PURE__ */ new Map();
592
- process.env.NODE_ENV !== "production" && (ee().__VUE_HMR_RUNTIME__ = {
593
- createRecord: fe(Wt),
594
- rerender: fe(qt),
595
- reload: fe(Bt)
596
+ const fe = /* @__PURE__ */ new Map();
597
+ process.env.NODE_ENV !== "production" && (ne().__VUE_HMR_RUNTIME__ = {
598
+ createRecord: pe(Yt),
599
+ rerender: pe(Gt),
600
+ reload: pe(Qt)
596
601
  });
597
- const B = /* @__PURE__ */ new Map();
598
- function Wt(e, t) {
599
- return B.has(e) ? !1 : (B.set(e, {
600
- initialDef: K(t),
602
+ const Y = /* @__PURE__ */ new Map();
603
+ function Yt(e, t) {
604
+ return Y.has(e) ? !1 : (Y.set(e, {
605
+ initialDef: G(t),
601
606
  instances: /* @__PURE__ */ new Set()
602
607
  }), !0);
603
608
  }
604
- function K(e) {
605
- return et(e) ? e.__vccOpts : e;
609
+ function G(e) {
610
+ return rt(e) ? e.__vccOpts : e;
606
611
  }
607
- function qt(e, t) {
608
- const n = B.get(e);
612
+ function Gt(e, t) {
613
+ const n = Y.get(e);
609
614
  n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
610
- t && (o.render = t, K(o.type).render = t), o.renderCache = [], o.job.flags & 8 || o.update();
615
+ t && (o.render = t, G(o.type).render = t), o.renderCache = [], o.job.flags & 8 || o.update();
611
616
  }));
612
617
  }
613
- function Bt(e, t) {
614
- const n = B.get(e);
618
+ function Qt(e, t) {
619
+ const n = Y.get(e);
615
620
  if (!n) return;
616
- t = K(t), Fe(n.initialDef, t);
621
+ t = G(t), Ae(n.initialDef, t);
617
622
  const o = [...n.instances];
618
623
  for (let s = 0; s < o.length; s++) {
619
- const r = o[s], i = K(r.type);
620
- let a = ue.get(i);
621
- a || (i !== n.initialDef && Fe(i, t), ue.set(i, a = /* @__PURE__ */ new Set())), a.add(r), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (a.add(r), r.ceReload(t.styles), a.delete(r)) : r.parent ? jt(() => {
624
+ const r = o[s], i = G(r.type);
625
+ let a = fe.get(i);
626
+ a || (i !== n.initialDef && Ae(i, t), fe.set(i, a = /* @__PURE__ */ new Set())), a.add(r), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (a.add(r), r.ceReload(t.styles), a.delete(r)) : r.parent ? qt(() => {
622
627
  r.job.flags & 8 || (r.parent.update(), a.delete(r));
623
628
  }) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
624
629
  "[HMR] Root or manually mounted instance modified. Full reload required."
625
630
  ), r.root.ce && r !== r.root && r.root.ce._removeChildStyle(i);
626
631
  }
627
- Ut(() => {
628
- ue.clear();
632
+ Bt(() => {
633
+ fe.clear();
629
634
  });
630
635
  }
631
- function Fe(e, t) {
632
- ye(e, t);
636
+ function Ae(e, t) {
637
+ _e(e, t);
633
638
  for (const n in e)
634
639
  n !== "__file" && !(n in t) && delete e[n];
635
640
  }
636
- function fe(e) {
641
+ function pe(e) {
637
642
  return (t, n) => {
638
643
  try {
639
644
  return e(t, n);
@@ -644,65 +649,65 @@ function fe(e) {
644
649
  }
645
650
  };
646
651
  }
647
- let x, U = [];
648
- function Je(e, t) {
652
+ let A, W = [];
653
+ function Ke(e, t) {
649
654
  var n, o;
650
- x = e, x ? (x.enabled = !0, U.forEach(({ event: s, args: r }) => x.emit(s, ...r)), U = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
655
+ A = e, A ? (A.enabled = !0, W.forEach(({ event: s, args: r }) => A.emit(s, ...r)), W = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
651
656
  window.HTMLElement && // also exclude jsdom
652
657
  // eslint-disable-next-line no-restricted-syntax
653
658
  !((o = (n = window.navigator) == null ? void 0 : n.userAgent) != null && o.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((r) => {
654
- Je(r, t);
659
+ Ke(r, t);
655
660
  }), setTimeout(() => {
656
- x || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, U = []);
657
- }, 3e3)) : U = [];
661
+ A || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, W = []);
662
+ }, 3e3)) : W = [];
658
663
  }
659
- let Y = null, Kt = null;
660
- const Yt = (e) => e.__isTeleport;
661
- function We(e, t) {
662
- e.shapeFlag & 6 && e.component ? (e.transition = t, We(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
664
+ let Q = null, Xt = null;
665
+ const Zt = (e) => e.__isTeleport;
666
+ function Ye(e, t) {
667
+ e.shapeFlag & 6 && e.component ? (e.transition = t, Ye(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
663
668
  }
664
- ee().requestIdleCallback;
665
- ee().cancelIdleCallback;
666
- function Gt(e, t, n = ne, o = !1) {
669
+ ne().requestIdleCallback;
670
+ ne().cancelIdleCallback;
671
+ function en(e, t, n = re, o = !1) {
667
672
  if (n) {
668
673
  const s = n[e] || (n[e] = []), r = t.__weh || (t.__weh = (...i) => {
669
- const a = dn(n), l = Pe(t, n, e, i);
674
+ const a = yn(n), l = Je(t, n, e, i);
670
675
  return a(), l;
671
676
  });
672
677
  return o ? s.unshift(r) : s.push(r), r;
673
678
  } else if (process.env.NODE_ENV !== "production") {
674
- const s = kt(ve[e].replace(/ hook$/, ""));
679
+ const s = Ft(Ee[e].replace(/ hook$/, ""));
675
680
  O(
676
681
  `${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
677
682
  );
678
683
  }
679
684
  }
680
- const Qt = (e) => (t, n = ne) => {
681
- (!Qe || e === "sp") && Gt(e, (...o) => t(...o), n);
682
- }, Xt = Qt("u"), Zt = /* @__PURE__ */ Symbol.for("v-ndc"), en = {};
683
- process.env.NODE_ENV !== "production" && (en.ownKeys = (e) => (O(
685
+ const tn = (e) => (t, n = re) => {
686
+ (!tt || e === "sp") && en(e, (...o) => t(...o), n);
687
+ }, nn = tn("u"), on = /* @__PURE__ */ Symbol.for("v-ndc"), rn = {};
688
+ process.env.NODE_ENV !== "production" && (rn.ownKeys = (e) => (O(
684
689
  "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
685
690
  ), Reflect.ownKeys(e)));
686
- const tn = {}, qe = (e) => Object.getPrototypeOf(e) === tn, nn = (e) => e.__isSuspense, Be = /* @__PURE__ */ Symbol.for("v-fgt"), on = /* @__PURE__ */ Symbol.for("v-txt"), rn = /* @__PURE__ */ Symbol.for("v-cmt");
687
- function sn(e) {
691
+ const sn = {}, Ge = (e) => Object.getPrototypeOf(e) === sn, ln = (e) => e.__isSuspense, Qe = /* @__PURE__ */ Symbol.for("v-fgt"), an = /* @__PURE__ */ Symbol.for("v-txt"), cn = /* @__PURE__ */ Symbol.for("v-cmt");
692
+ function un(e) {
688
693
  return e ? e.__v_isVNode === !0 : !1;
689
694
  }
690
- const ln = (...e) => Ye(
695
+ const fn = (...e) => Ze(
691
696
  ...e
692
- ), Ke = ({ key: e }) => e ?? null, J = ({
697
+ ), Xe = ({ key: e }) => e ?? null, q = ({
693
698
  ref: e,
694
699
  ref_key: t,
695
700
  ref_for: n
696
- }) => (typeof e == "number" && (e = "" + e), e != null ? w(e) || /* @__PURE__ */ He(e) || _(e) ? { i: Y, r: e, k: t, f: !!n } : e : null);
697
- function an(e, t = null, n = null, o = 0, s = null, r = e === Be ? 0 : 1, i = !1, a = !1) {
701
+ }) => (typeof e == "number" && (e = "" + e), e != null ? w(e) || /* @__PURE__ */ je(e) || _(e) ? { i: Q, r: e, k: t, f: !!n } : e : null);
702
+ function pn(e, t = null, n = null, o = 0, s = null, r = e === Qe ? 0 : 1, i = !1, a = !1) {
698
703
  const l = {
699
704
  __v_isVNode: !0,
700
705
  __v_skip: !0,
701
706
  type: e,
702
707
  props: t,
703
- key: t && Ke(t),
704
- ref: t && J(t),
705
- scopeId: Kt,
708
+ key: t && Xe(t),
709
+ ref: t && q(t),
710
+ scopeId: Xt,
706
711
  slotScopeIds: null,
707
712
  children: n,
708
713
  component: null,
@@ -722,33 +727,33 @@ function an(e, t = null, n = null, o = 0, s = null, r = e === Be ? 0 : 1, i = !1
722
727
  dynamicProps: s,
723
728
  dynamicChildren: null,
724
729
  appContext: null,
725
- ctx: Y
730
+ ctx: Q
726
731
  };
727
- return a ? (Ne(l, n), r & 128 && e.normalize(l)) : n && (l.shapeFlag |= w(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && O("VNode created with invalid key (NaN). VNode type:", l.type), l;
732
+ return a ? (be(l, n), r & 128 && e.normalize(l)) : n && (l.shapeFlag |= w(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && O("VNode created with invalid key (NaN). VNode type:", l.type), l;
728
733
  }
729
- const cn = process.env.NODE_ENV !== "production" ? ln : Ye;
730
- function Ye(e, t = null, n = null, o = 0, s = null, r = !1) {
731
- if ((!e || e === Zt) && (process.env.NODE_ENV !== "production" && !e && O(`Invalid vnode type when creating vnode: ${e}.`), e = rn), sn(e)) {
732
- const a = G(
734
+ const dn = process.env.NODE_ENV !== "production" ? fn : Ze;
735
+ function Ze(e, t = null, n = null, o = 0, s = null, r = !1) {
736
+ if ((!e || e === on) && (process.env.NODE_ENV !== "production" && !e && O(`Invalid vnode type when creating vnode: ${e}.`), e = cn), un(e)) {
737
+ const a = X(
733
738
  e,
734
739
  t,
735
740
  !0
736
741
  /* mergeRef: true */
737
742
  );
738
- return n && Ne(a, n), a.patchFlag = -2, a;
743
+ return n && be(a, n), a.patchFlag = -2, a;
739
744
  }
740
- if (et(e) && (e = e.__vccOpts), t) {
741
- t = un(t);
745
+ if (rt(e) && (e = e.__vccOpts), t) {
746
+ t = mn(t);
742
747
  let { class: a, style: l } = t;
743
- a && !w(a) && (t.class = Ce(a)), H(l) && (/* @__PURE__ */ de(l) && !C(l) && (l = ye({}, l)), t.style = _e(l));
748
+ a && !w(a) && (t.class = ve(a)), z(l) && (/* @__PURE__ */ me(l) && !C(l) && (l = _e({}, l)), t.style = Ce(l));
744
749
  }
745
- const i = w(e) ? 1 : nn(e) ? 128 : Yt(e) ? 64 : H(e) ? 4 : _(e) ? 2 : 0;
746
- return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ de(e) && (e = /* @__PURE__ */ q(e), O(
750
+ const i = w(e) ? 1 : ln(e) ? 128 : Zt(e) ? 64 : z(e) ? 4 : _(e) ? 2 : 0;
751
+ return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ me(e) && (e = /* @__PURE__ */ K(e), O(
747
752
  "Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
748
753
  `
749
754
  Component that was made reactive: `,
750
755
  e
751
- )), an(
756
+ )), pn(
752
757
  e,
753
758
  t,
754
759
  n,
@@ -759,25 +764,25 @@ Component that was made reactive: `,
759
764
  !0
760
765
  );
761
766
  }
762
- function un(e) {
763
- return e ? /* @__PURE__ */ de(e) || qe(e) ? ye({}, e) : e : null;
767
+ function mn(e) {
768
+ return e ? /* @__PURE__ */ me(e) || Ge(e) ? _e({}, e) : e : null;
764
769
  }
765
- function G(e, t, n = !1, o = !1) {
766
- const { props: s, ref: r, patchFlag: i, children: a, transition: l } = e, c = t ? pn(s || {}, t) : s, d = {
770
+ function X(e, t, n = !1, o = !1) {
771
+ const { props: s, ref: r, patchFlag: i, children: a, transition: l } = e, c = t ? gn(s || {}, t) : s, d = {
767
772
  __v_isVNode: !0,
768
773
  __v_skip: !0,
769
774
  type: e.type,
770
775
  props: c,
771
- key: c && Ke(c),
776
+ key: c && Xe(c),
772
777
  ref: t && t.ref ? (
773
778
  // #2078 in the case of <component :is="vnode" ref="extra"/>
774
779
  // if the vnode itself already has a ref, cloneVNode will need to merge
775
780
  // the refs so the single vnode can be set on multiple refs
776
- n && r ? C(r) ? r.concat(J(t)) : [r, J(t)] : J(t)
781
+ n && r ? C(r) ? r.concat(q(t)) : [r, q(t)] : q(t)
777
782
  ) : r,
778
783
  scopeId: e.scopeId,
779
784
  slotScopeIds: e.slotScopeIds,
780
- children: process.env.NODE_ENV !== "production" && i === -1 && C(a) ? a.map(Ge) : a,
785
+ children: process.env.NODE_ENV !== "production" && i === -1 && C(a) ? a.map(et) : a,
781
786
  target: e.target,
782
787
  targetStart: e.targetStart,
783
788
  targetAnchor: e.targetAnchor,
@@ -787,7 +792,7 @@ function G(e, t, n = !1, o = !1) {
787
792
  // existing patch flag to be reliable and need to add the FULL_PROPS flag.
788
793
  // note: preserve flag for fragments since they use the flag for children
789
794
  // fast paths only.
790
- patchFlag: t && e.type !== Be ? i === -1 ? 16 : i | 16 : i,
795
+ patchFlag: t && e.type !== Qe ? i === -1 ? 16 : i | 16 : i,
791
796
  dynamicProps: e.dynamicProps,
792
797
  dynamicChildren: e.dynamicChildren,
793
798
  appContext: e.appContext,
@@ -799,27 +804,27 @@ function G(e, t, n = !1, o = !1) {
799
804
  // they will simply be overwritten.
800
805
  component: e.component,
801
806
  suspense: e.suspense,
802
- ssContent: e.ssContent && G(e.ssContent),
803
- ssFallback: e.ssFallback && G(e.ssFallback),
807
+ ssContent: e.ssContent && X(e.ssContent),
808
+ ssFallback: e.ssFallback && X(e.ssFallback),
804
809
  placeholder: e.placeholder,
805
810
  el: e.el,
806
811
  anchor: e.anchor,
807
812
  ctx: e.ctx,
808
813
  ce: e.ce
809
814
  };
810
- return l && o && We(
815
+ return l && o && Ye(
811
816
  d,
812
817
  l.clone(d)
813
818
  ), d;
814
819
  }
815
- function Ge(e) {
816
- const t = G(e);
817
- return C(e.children) && (t.children = e.children.map(Ge)), t;
820
+ function et(e) {
821
+ const t = X(e);
822
+ return C(e.children) && (t.children = e.children.map(et)), t;
818
823
  }
819
- function fn(e = " ", t = 0) {
820
- return cn(on, null, e, t);
824
+ function hn(e = " ", t = 0) {
825
+ return dn(an, null, e, t);
821
826
  }
822
- function Ne(e, t) {
827
+ function be(e, t) {
823
828
  let n = 0;
824
829
  const { shapeFlag: o } = e;
825
830
  if (t == null)
@@ -829,59 +834,59 @@ function Ne(e, t) {
829
834
  else if (typeof t == "object")
830
835
  if (o & 65) {
831
836
  const s = t.default;
832
- s && (s._c && (s._d = !1), Ne(e, s()), s._c && (s._d = !0));
837
+ s && (s._c && (s._d = !1), be(e, s()), s._c && (s._d = !0));
833
838
  return;
834
839
  } else
835
- n = 32, !t._ && !qe(t) && (t._ctx = Y);
836
- else _(t) ? (t = { default: t, _ctx: Y }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [fn(t)]) : n = 8);
840
+ n = 32, !t._ && !Ge(t) && (t._ctx = Q);
841
+ else _(t) ? (t = { default: t, _ctx: Q }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [hn(t)]) : n = 8);
837
842
  e.children = t, e.shapeFlag |= n;
838
843
  }
839
- function pn(...e) {
844
+ function gn(...e) {
840
845
  const t = {};
841
846
  for (let n = 0; n < e.length; n++) {
842
847
  const o = e[n];
843
848
  for (const s in o)
844
849
  if (s === "class")
845
- t.class !== o.class && (t.class = Ce([t.class, o.class]));
850
+ t.class !== o.class && (t.class = ve([t.class, o.class]));
846
851
  else if (s === "style")
847
- t.style = _e([t.style, o.style]);
848
- else if (St(s)) {
852
+ t.style = Ce([t.style, o.style]);
853
+ else if (kt(s)) {
849
854
  const r = t[s], i = o[s];
850
855
  i && r !== i && !(C(r) && r.includes(i)) && (t[s] = r ? [].concat(r, i) : i);
851
856
  } else s !== "" && (t[s] = o[s]);
852
857
  }
853
858
  return t;
854
859
  }
855
- let ne = null, he;
860
+ let re = null, ge;
856
861
  {
857
- const e = ee(), t = (n, o) => {
862
+ const e = ne(), t = (n, o) => {
858
863
  let s;
859
864
  return (s = e[n]) || (s = e[n] = []), s.push(o), (r) => {
860
865
  s.length > 1 ? s.forEach((i) => i(r)) : s[0](r);
861
866
  };
862
867
  };
863
- he = t(
868
+ ge = t(
864
869
  "__VUE_INSTANCE_SETTERS__",
865
- (n) => ne = n
870
+ (n) => re = n
866
871
  ), t(
867
872
  "__VUE_SSR_SETTERS__",
868
- (n) => Qe = n
873
+ (n) => tt = n
869
874
  );
870
875
  }
871
- const dn = (e) => {
872
- const t = ne;
873
- return he(e), e.scope.on(), () => {
874
- e.scope.off(), he(t);
876
+ const yn = (e) => {
877
+ const t = re;
878
+ return ge(e), e.scope.on(), () => {
879
+ e.scope.off(), ge(t);
875
880
  };
876
881
  };
877
- let Qe = !1;
882
+ let tt = !1;
878
883
  process.env.NODE_ENV;
879
- const mn = /(?:^|[-_])\w/g, hn = (e) => e.replace(mn, (t) => t.toUpperCase()).replace(/[-_]/g, "");
880
- function Xe(e, t = !0) {
884
+ const _n = /(?:^|[-_])\w/g, Cn = (e) => e.replace(_n, (t) => t.toUpperCase()).replace(/[-_]/g, "");
885
+ function nt(e, t = !0) {
881
886
  return _(e) ? e.displayName || e.name : e.name || t && e.__name;
882
887
  }
883
- function Ze(e, t, n = !1) {
884
- let o = Xe(t);
888
+ function ot(e, t, n = !1) {
889
+ let o = nt(t);
885
890
  if (!o && t.__file) {
886
891
  const s = t.__file.match(/([^/\\]+)\.\w+$/);
887
892
  s && (o = s[1]);
@@ -896,15 +901,15 @@ function Ze(e, t, n = !1) {
896
901
  e.parent.type.components
897
902
  ) || s(e.appContext.components);
898
903
  }
899
- return o ? hn(o) : n ? "App" : "Anonymous";
904
+ return o ? Cn(o) : n ? "App" : "Anonymous";
900
905
  }
901
- function et(e) {
906
+ function rt(e) {
902
907
  return _(e) && "__vccOpts" in e;
903
908
  }
904
909
  process.env.NODE_ENV;
905
910
  process.env.NODE_ENV;
906
911
  process.env.NODE_ENV;
907
- const Nn = /* @__PURE__ */ Q({
912
+ const Vn = /* @__PURE__ */ Z({
908
913
  inheritAttrs: !0,
909
914
  __name: "MyopVueComponent",
910
915
  props: {
@@ -913,13 +918,13 @@ const Nn = /* @__PURE__ */ Q({
913
918
  onReady: { type: Function }
914
919
  },
915
920
  setup(e, { expose: t }) {
916
- const n = e, o = ct(), s = X(), r = p(null), i = p(!0), a = p(null), l = p(null), c = ut(), d = p(null);
917
- Xt(() => {
921
+ const n = e, o = dt(), s = ee(), r = p(null), i = p(!0), a = p(null), l = p(null), c = mt(), d = p(null);
922
+ nn(() => {
918
923
  l && l.value && l.value(o);
919
- }), Re(async () => {
924
+ }), Te(async () => {
920
925
  if (r.value) {
921
- const V = await Z.Main.fetchComponent(n.componentId, n.flowId);
922
- a.value = await Te.loadComponent(
926
+ const V = await te.Main.fetchComponent(n.componentId, n.flowId);
927
+ a.value = await ze.loadComponent(
923
928
  V,
924
929
  r == null ? void 0 : r.value,
925
930
  {
@@ -942,41 +947,41 @@ const Nn = /* @__PURE__ */ Q({
942
947
  ), i.value = !1, n.onReady && n.onReady(a.value, d.value);
943
948
  }
944
949
  });
945
- const g = ft({});
946
- return t(g), pt(() => {
950
+ const g = ht({});
951
+ return t(g), gt(() => {
947
952
  Object.assign(g, d.value);
948
- }), (V, E) => (b(), A(dt, null, [
949
- $e("div", mt(ge(o), {
953
+ }), (V, E) => (S(), M(yt, null, [
954
+ Me("div", _t(ye(o), {
950
955
  ref_key: "myopContainer",
951
956
  ref: r
952
957
  }), null, 16),
953
- i.value ? M(V.$slots, "loading", { key: 0 }) : pe("", !0)
958
+ i.value ? H(V.$slots, "loading", { key: 0 }) : de("", !0)
954
959
  ], 64));
955
960
  }
956
961
  });
957
- let k = Z.Main;
958
- const gn = () => k, yn = (e, t, n) => k.isPreloaded(e, t, n), Sn = (e) => k.getPreloadedParams(e), bn = () => {
959
- k = new Z("http://localhost:9292");
960
- }, wn = (e) => {
961
- k = new Z(e);
962
- }, On = (e) => {
962
+ let k = te.Main;
963
+ const vn = () => k, En = (e, t, n) => k.isPreloaded(e, t, n), In = (e) => k.getPreloadedParams(e), Dn = () => {
964
+ k = new te("http://localhost:9292");
965
+ }, Fn = (e) => {
966
+ k = new te(e);
967
+ }, $n = (e) => {
963
968
  k = e;
964
- }, kn = (e) => {
969
+ }, Rn = (e) => {
965
970
  k.setEnvironment(e);
966
- }, Vn = async (e, t, n) => Promise.allSettled(
971
+ }, xn = async (e, t, n) => Promise.allSettled(
967
972
  e.map((o) => k.fetchComponentV2(o, t, n))
968
973
  );
969
974
  export {
970
- En as MyopComponent,
971
- Nn as MyopContainer,
972
- Et as MyopFallback,
973
- Ct as MyopLoader,
974
- bn as enableLocalDev,
975
- gn as getCloudRepository,
976
- Sn as getPreloadedParams,
977
- yn as isPreloaded,
978
- Vn as preloadComponents,
979
- On as setCloudRepository,
980
- wn as setCloudRepositoryUrl,
981
- kn as setEnvironment
975
+ kn as MyopComponent,
976
+ Vn as MyopContainer,
977
+ wt as MyopFallback,
978
+ bt as MyopLoader,
979
+ Dn as enableLocalDev,
980
+ vn as getCloudRepository,
981
+ In as getPreloadedParams,
982
+ En as isPreloaded,
983
+ xn as preloadComponents,
984
+ $n as setCloudRepository,
985
+ Fn as setCloudRepositoryUrl,
986
+ Rn as setEnvironment
982
987
  };