@builder.io/sdk-react-nextjs 0.14.25 → 0.14.27

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 (39) hide show
  1. package/lib/browser/{USE_CLIENT_BUNDLE-1ddfeb58.cjs → USE_CLIENT_BUNDLE-2cf82d62.cjs} +5 -5
  2. package/lib/{node/USE_CLIENT_BUNDLE-ef4baa66.js → browser/USE_CLIENT_BUNDLE-6310e997.js} +36 -35
  3. package/lib/{edge/USE_SERVER_BUNDLE-78eb2f70.cjs → browser/USE_SERVER_BUNDLE-96b0d36a.cjs} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-f025d6d8.js → browser/USE_SERVER_BUNDLE-af025398.js} +1 -1
  5. package/lib/browser/bundle-301a174a.cjs +169 -0
  6. package/lib/browser/{bundle-761961a0.js → bundle-9a8df6bb.js} +311 -302
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +3 -3
  9. package/lib/{node/USE_CLIENT_BUNDLE-f7463aa3.cjs → edge/USE_CLIENT_BUNDLE-23fc72a9.cjs} +5 -5
  10. package/lib/{browser/USE_CLIENT_BUNDLE-8cd3386f.js → edge/USE_CLIENT_BUNDLE-890ac9eb.js} +36 -35
  11. package/lib/{node/USE_SERVER_BUNDLE-3c35d11e.js → edge/USE_SERVER_BUNDLE-317929d2.js} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-e5e233d2.cjs → edge/USE_SERVER_BUNDLE-73825717.cjs} +1 -1
  13. package/lib/edge/bundle-8d9ad243.cjs +189 -0
  14. package/lib/edge/{bundle-2dc98ad8.js → bundle-db39aa05.js} +843 -842
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +3 -3
  17. package/lib/{edge/USE_CLIENT_BUNDLE-e4abd45c.js → node/USE_CLIENT_BUNDLE-70674322.js} +36 -35
  18. package/lib/{edge/USE_CLIENT_BUNDLE-2ee56c62.cjs → node/USE_CLIENT_BUNDLE-f80aef0a.cjs} +5 -5
  19. package/lib/{browser/USE_SERVER_BUNDLE-457ff39c.js → node/USE_SERVER_BUNDLE-07526cde.js} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-7b480ad5.cjs → node/USE_SERVER_BUNDLE-07fef498.cjs} +1 -1
  21. package/lib/node/{bundle-90827143.js → bundle-ae4a53d3.js} +26 -17
  22. package/lib/node/{bundle-df5510f7.cjs → bundle-c7a93d74.cjs} +5 -5
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/package.json +1 -1
  26. package/types/cjs/blocks/image/image.types.d.ts +1 -0
  27. package/types/cjs/components/block/block.helpers.d.ts +20 -2
  28. package/types/cjs/components/block/components/block-wrapper.d.ts +0 -1
  29. package/types/cjs/components/content/components/enable-editor.d.ts +1 -1
  30. package/types/cjs/constants/sdk-version.d.ts +1 -1
  31. package/types/cjs/context/types.d.ts +1 -0
  32. package/types/esm/blocks/image/image.types.d.ts +1 -0
  33. package/types/esm/components/block/block.helpers.d.ts +20 -2
  34. package/types/esm/components/block/components/block-wrapper.d.ts +0 -1
  35. package/types/esm/components/content/components/enable-editor.d.ts +1 -1
  36. package/types/esm/constants/sdk-version.d.ts +1 -1
  37. package/types/esm/context/types.d.ts +1 -0
  38. package/lib/browser/bundle-9d1d2542.cjs +0 -169
  39. package/lib/edge/bundle-8f003cc6.cjs +0 -189
@@ -1,10 +1,10 @@
1
- import { jsx as I, Fragment as ee, jsxs as xe } from "react/jsx-runtime";
1
+ import { jsx as T, Fragment as ee, jsxs as xe } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { LRUCache as oo } from "lru-cache";
4
- import { I as io, B as ao, a as so, D as lo, C as co, E as uo, b as fo, V as po, c as ho, F as mo, d as go, S as yo, e as vo } from "./USE_CLIENT_BUNDLE-e4abd45c.js";
4
+ import { I as io, B as ao, a as so, D as lo, C as co, E as uo, b as fo, V as po, c as ho, F as mo, d as go, S as yo, e as vo } from "./USE_CLIENT_BUNDLE-890ac9eb.js";
5
5
  import "next/navigation";
6
- const bo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ja = (e) => typeof e == "string" && bo.has(e.toLowerCase()), me = "rsc", Yt = () => {
7
- switch (me) {
6
+ const bo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), qa = (e) => typeof e == "string" && bo.has(e.toLowerCase()), Z = "rsc", Yt = () => {
7
+ switch (Z) {
8
8
  case "react":
9
9
  case "reactNative":
10
10
  case "rsc":
@@ -21,20 +21,16 @@ function So(e) {
21
21
  var t;
22
22
  return {
23
23
  ...(t = e.component) == null ? void 0 : t.options,
24
- ...e.options,
25
- /**
26
- * Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
27
- */
28
- builderBlock: e
24
+ ...e.options
29
25
  };
30
26
  }
31
- const lt = "[Builder.io]: ", Z = {
27
+ const lt = "[Builder.io]: ", te = {
32
28
  log: (...e) => console.log(lt, ...e),
33
29
  error: (...e) => console.error(lt, ...e),
34
30
  warn: (...e) => console.warn(lt, ...e),
35
31
  debug: (...e) => console.debug(lt, ...e)
36
32
  };
37
- function G() {
33
+ function X() {
38
34
  return typeof window < "u" && typeof document < "u";
39
35
  }
40
36
  const wo = (e) => {
@@ -44,19 +40,19 @@ const wo = (e) => {
44
40
  }), t;
45
41
  }, cr = (e) => e instanceof URLSearchParams ? wo(e) : e, ur = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
46
42
  function xo() {
47
- return G() && window.self !== window.top;
43
+ return X() && window.self !== window.top;
48
44
  }
49
- function fr(e) {
45
+ function dr(e) {
50
46
  return xo() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
51
47
  ur(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
52
48
  }
53
49
  const ko = () => {
54
- if (G()) {
50
+ if (X()) {
55
51
  const e = new URL(location.href);
56
52
  return e.pathname === "" && (e.pathname = "/"), e;
57
53
  } else
58
54
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
59
- }, Co = () => typeof navigator == "object" && navigator.userAgent || "", dr = () => {
55
+ }, Co = () => typeof navigator == "object" && navigator.userAgent || "", fr = () => {
60
56
  const e = Co(), t = {
61
57
  Android() {
62
58
  return e.match(/Android/i);
@@ -74,7 +70,7 @@ const ko = () => {
74
70
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
75
71
  },
76
72
  any() {
77
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || me === "reactNative";
73
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || Z === "reactNative";
78
74
  }
79
75
  }, n = e.match(/Tablet|iPad/i), r = ko();
80
76
  return {
@@ -95,10 +91,10 @@ const ko = () => {
95
91
  context: t,
96
92
  event: n
97
93
  }), Eo = () => ({
98
- isEditing: fr(),
99
- isBrowser: G(),
100
- isServer: !G(),
101
- getUserAttributes: () => dr()
94
+ isEditing: dr(),
95
+ isBrowser: X(),
96
+ isServer: !X(),
97
+ getUserAttributes: () => fr()
102
98
  }), Io = (e, {
103
99
  isExpression: t = !0
104
100
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, To = ({
@@ -153,7 +149,7 @@ const mr = (e, t, n) => {
153
149
  const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
154
150
  return r.slice(0, -1).reduce((o, i, s) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
155
151
  };
156
- var B, Ao = function(e) {
152
+ var P, Ao = function(e) {
157
153
  function t(a) {
158
154
  return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && no.test(String.fromCharCode(a));
159
155
  }
@@ -161,65 +157,65 @@ var B, Ao = function(e) {
161
157
  return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && $n.test(String.fromCharCode(a));
162
158
  }
163
159
  function r(a, l) {
164
- for (var c = y, d = 1, C = 0; ; ) {
165
- st.lastIndex = C;
166
- var _ = st.exec(c);
167
- if (_ && _.index < a)
168
- ++d, C = _.index + _[0].length;
160
+ for (var c = y, f = 1, E = 0; ; ) {
161
+ st.lastIndex = E;
162
+ var $ = st.exec(c);
163
+ if ($ && $.index < a)
164
+ ++f, E = $.index + $[0].length;
169
165
  else
170
166
  break;
171
167
  }
172
168
  throw c = {
173
- line: d,
174
- ab: a - C
175
- }, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = a, l.X = c, l.o = f, l;
169
+ line: f,
170
+ ab: a - E
171
+ }, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = a, l.X = c, l.o = d, l;
176
172
  }
177
173
  function o(a) {
178
174
  a = a.split(" ");
179
175
  for (var l = /* @__PURE__ */ Object.create(null), c = 0; c < a.length; c++)
180
176
  l[a[c]] = !0;
181
- return function(d) {
182
- return l[d] || !1;
177
+ return function(f) {
178
+ return l[f] || !1;
183
179
  };
184
180
  }
185
181
  function i() {
186
- this.line = Se, this.ab = f - le;
182
+ this.line = Se, this.ab = d - ce;
187
183
  }
188
184
  function s(a, l) {
189
- Ce = f, A.C && (It = new i()), k = a, p(), te = l, Fe = a.m;
185
+ Ce = d, A.C && (It = new i()), C = a, p(), ne = l, Me = a.m;
190
186
  }
191
187
  function u() {
192
- for (var a = f, l = A.va && A.C && new i(), c = y.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
193
- ++f, c = y.charCodeAt(f);
194
- A.va && A.va(!1, y.slice(a + 2, f), a, f, l, A.C && new i());
188
+ for (var a = d, l = A.va && A.C && new i(), c = y.charCodeAt(d += 2); d < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
189
+ ++d, c = y.charCodeAt(d);
190
+ A.va && A.va(!1, y.slice(a + 2, d), a, d, l, A.C && new i());
195
191
  }
196
192
  function p() {
197
- for (; f < ke; ) {
198
- var a = y.charCodeAt(f);
193
+ for (; d < ke; ) {
194
+ var a = y.charCodeAt(d);
199
195
  if (a === 32)
200
- ++f;
196
+ ++d;
201
197
  else if (a === 13)
202
- ++f, a = y.charCodeAt(f), a === 10 && ++f, A.C && (++Se, le = f);
198
+ ++d, a = y.charCodeAt(d), a === 10 && ++d, A.C && (++Se, ce = d);
203
199
  else if (a === 10 || a === 8232 || a === 8233)
204
- ++f, A.C && (++Se, le = f);
200
+ ++d, A.C && (++Se, ce = d);
205
201
  else if (8 < a && 14 > a)
206
- ++f;
202
+ ++d;
207
203
  else if (a === 47)
208
- if (a = y.charCodeAt(f + 1), a === 42) {
204
+ if (a = y.charCodeAt(d + 1), a === 42) {
209
205
  a = void 0;
210
- var l = A.va && A.C && new i(), c = f, d = y.indexOf("*/", f += 2);
211
- if (d === -1 && r(f - 2, "Unterminated comment"), f = d + 2, A.C)
212
- for (st.lastIndex = c; (a = st.exec(y)) && a.index < f; )
213
- ++Se, le = a.index + a[0].length;
214
- A.va && A.va(!0, y.slice(c + 2, d), c, f, l, A.C && new i());
206
+ var l = A.va && A.C && new i(), c = d, f = y.indexOf("*/", d += 2);
207
+ if (f === -1 && r(d - 2, "Unterminated comment"), d = f + 2, A.C)
208
+ for (st.lastIndex = c; (a = st.exec(y)) && a.index < d; )
209
+ ++Se, ce = a.index + a[0].length;
210
+ A.va && A.va(!0, y.slice(c + 2, f), c, d, l, A.C && new i());
215
211
  } else if (a === 47)
216
212
  u();
217
213
  else
218
214
  break;
219
215
  else if (a === 160)
220
- ++f;
216
+ ++d;
221
217
  else if (5760 <= a && to.test(String.fromCharCode(a)))
222
- ++f;
218
+ ++d;
223
219
  else
224
220
  break;
225
221
  }
@@ -227,31 +223,31 @@ var B, Ao = function(e) {
227
223
  function b(a) {
228
224
  switch (a) {
229
225
  case 46:
230
- a = y.charCodeAt(f + 1), 48 <= a && 57 >= a ? j(!0) : (++f, s(Un));
226
+ a = y.charCodeAt(d + 1), 48 <= a && 57 >= a ? B(!0) : (++d, s(Fn));
231
227
  return;
232
228
  case 40:
233
- return ++f, s(ce);
229
+ return ++d, s(ue);
234
230
  case 41:
235
- return ++f, s(oe);
231
+ return ++d, s(ie);
236
232
  case 59:
237
- return ++f, s(ue);
233
+ return ++d, s(de);
238
234
  case 44:
239
- return ++f, s(ye);
235
+ return ++d, s(ye);
240
236
  case 91:
241
- return ++f, s(Mt);
237
+ return ++d, s(Ut);
242
238
  case 93:
243
- return ++f, s(Ft);
239
+ return ++d, s(Mt);
244
240
  case 123:
245
- return ++f, s(Le);
241
+ return ++d, s(Le);
246
242
  case 125:
247
- return ++f, s(Ie);
243
+ return ++d, s(Ie);
248
244
  case 58:
249
- return ++f, s(We);
245
+ return ++d, s(We);
250
246
  case 63:
251
- return ++f, s(Mn);
247
+ return ++d, s(Un);
252
248
  case 48:
253
- if (a = y.charCodeAt(f + 1), a === 120 || a === 88) {
254
- f += 2, a = N(16), a === null && r(W + 2, "Expected hexadecimal number"), n(y.charCodeAt(f)) && r(f, "Identifier directly after number"), s(De, a);
249
+ if (a = y.charCodeAt(d + 1), a === 120 || a === 88) {
250
+ d += 2, a = R(16), a === null && r(_ + 2, "Expected hexadecimal number"), n(y.charCodeAt(d)) && r(d, "Identifier directly after number"), s(De, a);
255
251
  return;
256
252
  }
257
253
  case 49:
@@ -263,24 +259,24 @@ var B, Ao = function(e) {
263
259
  case 55:
264
260
  case 56:
265
261
  case 57:
266
- return j(!1);
262
+ return B(!1);
267
263
  case 34:
268
264
  case 39:
269
- f++;
265
+ d++;
270
266
  for (var l = ""; ; ) {
271
- f >= ke && r(W, "Unterminated string constant");
272
- var c = y.charCodeAt(f);
267
+ d >= ke && r(_, "Unterminated string constant");
268
+ var c = y.charCodeAt(d);
273
269
  if (c === a) {
274
- ++f, s(rt, l);
270
+ ++d, s(rt, l);
275
271
  break;
276
272
  }
277
273
  if (c === 92) {
278
- c = y.charCodeAt(++f);
279
- var d = /^[0-7]+/.exec(y.slice(f, f + 3));
280
- for (d && (d = d[0]); d && 255 < parseInt(d, 8); )
281
- d = d.slice(0, -1);
282
- if (d === "0" && (d = null), ++f, d)
283
- Q && r(f - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(d, 8)), f += d.length - 1;
274
+ c = y.charCodeAt(++d);
275
+ var f = /^[0-7]+/.exec(y.slice(d, d + 3));
276
+ for (f && (f = f[0]); f && 255 < parseInt(f, 8); )
277
+ f = f.slice(0, -1);
278
+ if (f === "0" && (f = null), ++d, f)
279
+ Q && r(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(f, 8)), d += f.length - 1;
284
280
  else
285
281
  switch (c) {
286
282
  case 110:
@@ -291,13 +287,13 @@ var B, Ao = function(e) {
291
287
  l += "\r";
292
288
  break;
293
289
  case 120:
294
- l += String.fromCharCode(R(2));
290
+ l += String.fromCharCode(N(2));
295
291
  break;
296
292
  case 117:
297
- l += String.fromCharCode(R(4));
293
+ l += String.fromCharCode(N(4));
298
294
  break;
299
295
  case 85:
300
- l += String.fromCharCode(R(8));
296
+ l += String.fromCharCode(N(8));
301
297
  break;
302
298
  case 116:
303
299
  l += " ";
@@ -315,42 +311,42 @@ var B, Ao = function(e) {
315
311
  l += "\0";
316
312
  break;
317
313
  case 13:
318
- y.charCodeAt(f) === 10 && ++f;
314
+ y.charCodeAt(d) === 10 && ++d;
319
315
  case 10:
320
- A.C && (le = f, ++Se);
316
+ A.C && (ce = d, ++Se);
321
317
  break;
322
318
  default:
323
319
  l += String.fromCharCode(c);
324
320
  }
325
321
  } else
326
- c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(W, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
322
+ c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(_, "Unterminated string constant"), l += String.fromCharCode(c), ++d;
327
323
  }
328
324
  return;
329
325
  case 47:
330
- a = y.charCodeAt(f + 1), Fe ? (++f, O()) : a === 61 ? m(we, 2) : m(Fn, 1);
326
+ a = y.charCodeAt(d + 1), Me ? (++d, O()) : a === 61 ? m(we, 2) : m(Mn, 1);
331
327
  return;
332
328
  case 37:
333
329
  case 42:
334
- y.charCodeAt(f + 1) === 61 ? m(we, 2) : m(Zr, 1);
330
+ y.charCodeAt(d + 1) === 61 ? m(we, 2) : m(Zr, 1);
335
331
  return;
336
332
  case 124:
337
333
  case 38:
338
- l = y.charCodeAt(f + 1), l === a ? m(a === 124 ? Ln : Wn, 2) : l === 61 ? m(we, 2) : m(a === 124 ? Kr : Xr, 1);
334
+ l = y.charCodeAt(d + 1), l === a ? m(a === 124 ? Ln : Wn, 2) : l === 61 ? m(we, 2) : m(a === 124 ? Kr : Xr, 1);
339
335
  return;
340
336
  case 94:
341
- y.charCodeAt(f + 1) === 61 ? m(we, 2) : m(Gr, 1);
337
+ y.charCodeAt(d + 1) === 61 ? m(we, 2) : m(Gr, 1);
342
338
  return;
343
339
  case 43:
344
340
  case 45:
345
- l = y.charCodeAt(f + 1), l === a ? l === 45 && y.charCodeAt(f + 2) === 62 && at.test(y.slice(ge, f)) ? (f += 3, u(), p(), x()) : m(Hr, 2) : l === 61 ? m(we, 2) : m(qr, 1);
341
+ l = y.charCodeAt(d + 1), l === a ? l === 45 && y.charCodeAt(d + 2) === 62 && at.test(y.slice(ge, d)) ? (d += 3, u(), p(), x()) : m(Hr, 2) : l === 61 ? m(we, 2) : m(qr, 1);
346
342
  return;
347
343
  case 60:
348
344
  case 62:
349
- l = y.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && y.charCodeAt(f + 2) === 62 ? 3 : 2, y.charCodeAt(f + c) === 61 ? m(we, c + 1) : m(zr, c)) : l === 33 && a === 60 && y.charCodeAt(f + 2) === 45 && y.charCodeAt(f + 3) === 45 ? (f += 4, u(), p(), x()) : (l === 61 && (c = y.charCodeAt(f + 2) === 61 ? 3 : 2), m(Jr, c));
345
+ l = y.charCodeAt(d + 1), c = 1, l === a ? (c = a === 62 && y.charCodeAt(d + 2) === 62 ? 3 : 2, y.charCodeAt(d + c) === 61 ? m(we, c + 1) : m(Jr, c)) : l === 33 && a === 60 && y.charCodeAt(d + 2) === 45 && y.charCodeAt(d + 3) === 45 ? (d += 4, u(), p(), x()) : (l === 61 && (c = y.charCodeAt(d + 2) === 61 ? 3 : 2), m(zr, c));
350
346
  return;
351
347
  case 61:
352
348
  case 33:
353
- y.charCodeAt(f + 1) === 61 ? m(Yr, y.charCodeAt(f + 2) === 61 ? 3 : 2) : m(a === 61 ? Vn : Dn, 1);
349
+ y.charCodeAt(d + 1) === 61 ? m(Yr, y.charCodeAt(d + 2) === 61 ? 3 : 2) : m(a === 61 ? Vn : Dn, 1);
354
350
  return;
355
351
  case 126:
356
352
  return m(Dn, 1);
@@ -358,344 +354,344 @@ var B, Ao = function(e) {
358
354
  return !1;
359
355
  }
360
356
  function x(a) {
361
- if (a ? f = W + 1 : W = f, A.C && (Et = new i()), a)
357
+ if (a ? d = _ + 1 : _ = d, A.C && (Et = new i()), a)
362
358
  return O();
363
- if (f >= ke)
359
+ if (d >= ke)
364
360
  return s(Ot);
365
- if (a = y.charCodeAt(f), n(a) || a === 92)
366
- return T();
361
+ if (a = y.charCodeAt(d), n(a) || a === 92)
362
+ return k();
367
363
  if (b(a) === !1) {
368
364
  if (a = String.fromCharCode(a), a === "\\" || $n.test(a))
369
- return T();
370
- r(f, "Unexpected character '" + a + "'");
365
+ return k();
366
+ r(d, "Unexpected character '" + a + "'");
371
367
  }
372
368
  }
373
369
  function m(a, l) {
374
- var c = y.slice(f, f + l);
375
- f += l, s(a, c);
370
+ var c = y.slice(d, d + l);
371
+ d += l, s(a, c);
376
372
  }
377
373
  function O() {
378
- for (var a, l, c = f; ; ) {
379
- f >= ke && r(c, "Unterminated regexp");
380
- var d = y.charAt(f);
381
- if (at.test(d) && r(c, "Unterminated regexp"), a)
374
+ for (var a, l, c = d; ; ) {
375
+ d >= ke && r(c, "Unterminated regexp");
376
+ var f = y.charAt(d);
377
+ if (at.test(f) && r(c, "Unterminated regexp"), a)
382
378
  a = !1;
383
379
  else {
384
- if (d === "[")
380
+ if (f === "[")
385
381
  l = !0;
386
- else if (d === "]" && l)
382
+ else if (f === "]" && l)
387
383
  l = !1;
388
- else if (d === "/" && !l)
384
+ else if (f === "/" && !l)
389
385
  break;
390
- a = d === "\\";
386
+ a = f === "\\";
391
387
  }
392
- ++f;
388
+ ++d;
393
389
  }
394
- a = y.slice(c, f), ++f, (l = Y()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
390
+ a = y.slice(c, d), ++d, (l = W()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
395
391
  try {
396
- var C = new RegExp(a, l);
397
- } catch (_) {
398
- throw _ instanceof SyntaxError && r(c, _.message), _;
392
+ var E = new RegExp(a, l);
393
+ } catch ($) {
394
+ throw $ instanceof SyntaxError && r(c, $.message), $;
399
395
  }
400
- s(gn, C);
396
+ s(gn, E);
401
397
  }
402
- function N(a, l) {
403
- for (var c = f, d = 0, C = l === void 0 ? 1 / 0 : l, _ = 0; _ < C; ++_) {
404
- var J = y.charCodeAt(f);
405
- if (J = 97 <= J ? J - 97 + 10 : 65 <= J ? J - 65 + 10 : 48 <= J && 57 >= J ? J - 48 : 1 / 0, J >= a)
398
+ function R(a, l) {
399
+ for (var c = d, f = 0, E = l === void 0 ? 1 / 0 : l, $ = 0; $ < E; ++$) {
400
+ var z = y.charCodeAt(d);
401
+ if (z = 97 <= z ? z - 97 + 10 : 65 <= z ? z - 65 + 10 : 48 <= z && 57 >= z ? z - 48 : 1 / 0, z >= a)
406
402
  break;
407
- ++f, d = d * a + J;
403
+ ++d, f = f * a + z;
408
404
  }
409
- return f === c || l !== void 0 && f - c !== l ? null : d;
405
+ return d === c || l !== void 0 && d - c !== l ? null : f;
410
406
  }
411
- function j(a) {
412
- var l = f, c = !1, d = y.charCodeAt(f) === 48;
413
- a || N(10) !== null || r(l, "Invalid number"), y.charCodeAt(f) === 46 && (++f, N(10), c = !0), a = y.charCodeAt(f), (a === 69 || a === 101) && (a = y.charCodeAt(++f), a !== 43 && a !== 45 || ++f, N(10) === null && r(l, "Invalid number"), c = !0), n(y.charCodeAt(f)) && r(f, "Identifier directly after number"), a = y.slice(l, f);
414
- var C;
415
- c ? C = parseFloat(a) : d && a.length !== 1 ? /[89]/.test(a) || Q ? r(l, "Invalid number") : C = parseInt(a, 8) : C = parseInt(a, 10), s(De, C);
407
+ function B(a) {
408
+ var l = d, c = !1, f = y.charCodeAt(d) === 48;
409
+ a || R(10) !== null || r(l, "Invalid number"), y.charCodeAt(d) === 46 && (++d, R(10), c = !0), a = y.charCodeAt(d), (a === 69 || a === 101) && (a = y.charCodeAt(++d), a !== 43 && a !== 45 || ++d, R(10) === null && r(l, "Invalid number"), c = !0), n(y.charCodeAt(d)) && r(d, "Identifier directly after number"), a = y.slice(l, d);
410
+ var E;
411
+ c ? E = parseFloat(a) : f && a.length !== 1 ? /[89]/.test(a) || Q ? r(l, "Invalid number") : E = parseInt(a, 8) : E = parseInt(a, 10), s(De, E);
416
412
  }
417
- function R(a) {
418
- return a = N(16, a), a === null && r(W, "Bad character escape sequence"), a;
413
+ function N(a) {
414
+ return a = R(16, a), a === null && r(_, "Bad character escape sequence"), a;
419
415
  }
420
- function Y() {
416
+ function W() {
421
417
  Te = !1;
422
- for (var a, l = !0, c = f; ; ) {
423
- var d = y.charCodeAt(f);
424
- if (t(d))
425
- Te && (a += y.charAt(f)), ++f;
426
- else if (d === 92) {
427
- Te || (a = y.slice(c, f)), Te = !0, y.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, d = R(4);
428
- var C = String.fromCharCode(d);
429
- C || r(f - 1, "Invalid Unicode escape"), (l ? n(d) : t(d)) || r(f - 4, "Invalid Unicode escape"), a += C;
418
+ for (var a, l = !0, c = d; ; ) {
419
+ var f = y.charCodeAt(d);
420
+ if (t(f))
421
+ Te && (a += y.charAt(d)), ++d;
422
+ else if (f === 92) {
423
+ Te || (a = y.slice(c, d)), Te = !0, y.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, f = N(4);
424
+ var E = String.fromCharCode(f);
425
+ E || r(d - 1, "Invalid Unicode escape"), (l ? n(f) : t(f)) || r(d - 4, "Invalid Unicode escape"), a += E;
430
426
  } else
431
427
  break;
432
428
  l = !1;
433
429
  }
434
- return Te ? a : y.slice(c, f);
430
+ return Te ? a : y.slice(c, d);
435
431
  }
436
- function T() {
437
- var a = Y(), l = Ee;
432
+ function k() {
433
+ var a = W(), l = Ee;
438
434
  !Te && eo(a) && (l = $r[a]), s(l, a);
439
435
  }
440
436
  function g() {
441
- Tt = W, ge = Ce, At = It, x();
437
+ Tt = _, ge = Ce, At = It, x();
442
438
  }
443
- function U(a) {
444
- if (Q = a, f = W, A.C)
445
- for (; f < le; )
446
- le = y.lastIndexOf(`
447
- `, le - 2) + 1, --Se;
439
+ function F(a) {
440
+ if (Q = a, d = _, A.C)
441
+ for (; d < ce; )
442
+ ce = y.lastIndexOf(`
443
+ `, ce - 2) + 1, --Se;
448
444
  p(), x();
449
445
  }
450
- function F() {
451
- this.type = null, this.start = W, this.end = null;
446
+ function U() {
447
+ this.type = null, this.start = _, this.end = null;
452
448
  }
453
- function X() {
449
+ function Y() {
454
450
  this.start = Et, this.end = null, Ct && (this.source = Ct);
455
451
  }
456
452
  function V() {
457
- var a = new F();
458
- return A.C && (a.X = new X()), A.vb && (a.sourceFile = A.vb), A.Xa && (a.j = [W, 0]), a;
453
+ var a = new U();
454
+ return A.C && (a.X = new Y()), A.vb && (a.sourceFile = A.vb), A.Xa && (a.j = [_, 0]), a;
459
455
  }
460
- function ne(a) {
461
- var l = new F();
462
- return l.start = a.start, A.C && (l.X = new X(), l.X.start = a.X.start), A.Xa && (l.j = [a.j[0], 0]), l;
456
+ function re(a) {
457
+ var l = new U();
458
+ return l.start = a.start, A.C && (l.X = new Y(), l.X.start = a.X.start), A.Xa && (l.j = [a.j[0], 0]), l;
463
459
  }
464
- function E(a, l) {
460
+ function I(a, l) {
465
461
  return a.type = l, a.end = ge, A.C && (a.X.end = At), A.Xa && (a.j[1] = ge), a;
466
462
  }
467
463
  function Qe(a) {
468
464
  return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
469
465
  }
470
466
  function M(a) {
471
- return k === a ? (g(), !0) : !1;
467
+ return C === a ? (g(), !0) : !1;
472
468
  }
473
469
  function et() {
474
- return !A.fc && (k === Ot || k === Ie || at.test(y.slice(ge, W)));
470
+ return !A.fc && (C === Ot || C === Ie || at.test(y.slice(ge, _)));
475
471
  }
476
472
  function be() {
477
- M(ue) || et() || ae();
473
+ M(de) || et() || se();
478
474
  }
479
475
  function D(a) {
480
- k === a ? g() : ae();
476
+ C === a ? g() : se();
481
477
  }
482
- function ae() {
483
- r(W, "Unexpected token");
478
+ function se() {
479
+ r(_, "Unexpected token");
484
480
  }
485
481
  function tt(a) {
486
482
  a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), Q && a.type === "Identifier" && it(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
487
483
  }
488
- function re() {
489
- (k === Fn || k === we && te === "/=") && x(!0);
490
- var a = k, l = V();
484
+ function oe() {
485
+ (C === Mn || C === we && ne === "/=") && x(!0);
486
+ var a = C, l = V();
491
487
  switch (a) {
492
488
  case jt:
493
489
  case vn:
494
490
  g();
495
491
  var c = a === jt;
496
- M(ue) || et() ? l.label = null : k !== Ee ? ae() : (l.label = se(), be());
497
- for (var d = 0; d < L.length; ++d) {
498
- var C = L[d];
499
- if ((l.label === null || C.name === l.label.name) && (C.kind !== null && (c || C.kind === "loop") || l.label && c))
492
+ M(de) || et() ? l.label = null : C !== Ee ? se() : (l.label = le(), be());
493
+ for (var f = 0; f < L.length; ++f) {
494
+ var E = L[f];
495
+ if ((l.label === null || E.name === l.label.name) && (E.kind !== null && (c || E.kind === "loop") || l.label && c))
500
496
  break;
501
497
  }
502
- return d === L.length && r(l.start, "Unsyntactic " + a.l), E(l, c ? "BreakStatement" : "ContinueStatement");
498
+ return f === L.length && r(l.start, "Unsyntactic " + a.l), I(l, c ? "BreakStatement" : "ContinueStatement");
503
499
  case bn:
504
- return g(), be(), E(l, "DebuggerStatement");
500
+ return g(), be(), I(l, "DebuggerStatement");
505
501
  case wn:
506
- return g(), L.push(Vt), l.body = re(), L.pop(), D(Ut), l.test = Be(), be(), E(l, "DoWhileStatement");
502
+ return g(), L.push(Vt), l.body = oe(), L.pop(), D(Ft), l.test = Be(), be(), I(l, "DoWhileStatement");
507
503
  case Cn:
508
- return g(), L.push(Vt), D(ce), k === ue ? vt(l, null) : k === Bt ? (a = V(), g(), hn(a, !0), E(a, "VariableDeclaration"), a.fa.length === 1 && M(ot) ? pn(l, a) : vt(l, a)) : (a = K(!1, !0), M(ot) ? (tt(a), pn(l, a)) : vt(l, a));
504
+ return g(), L.push(Vt), D(ue), C === de ? vt(l, null) : C === Bt ? (a = V(), g(), hn(a, !0), I(a, "VariableDeclaration"), a.fa.length === 1 && M(ot) ? pn(l, a) : vt(l, a)) : (a = G(!1, !0), M(ot) ? (tt(a), pn(l, a)) : vt(l, a));
509
505
  case Pt:
510
506
  return g(), xt(l, !0);
511
507
  case En:
512
- return g(), l.test = Be(), l.da = re(), l.alternate = M(xn) ? re() : null, E(l, "IfStatement");
508
+ return g(), l.test = Be(), l.da = oe(), l.alternate = M(xn) ? oe() : null, I(l, "IfStatement");
513
509
  case In:
514
- return Ve || A.Ib || r(W, "'return' outside of function"), g(), M(ue) || et() ? l.K = null : (l.K = K(), be()), E(l, "ReturnStatement");
510
+ return Ve || A.Ib || r(_, "'return' outside of function"), g(), M(de) || et() ? l.K = null : (l.K = G(), be()), I(l, "ReturnStatement");
515
511
  case Nt:
516
- for (g(), l.Qb = Be(), l.tb = [], D(Le), L.push(ro); k !== Ie; )
517
- k === Rt || k === Sn ? (a = k === Rt, d && E(d, "SwitchCase"), l.tb.push(d = V()), d.da = [], g(), a ? d.test = K() : (c && r(Tt, "Multiple default clauses"), c = !0, d.test = null), D(We)) : (d || ae(), d.da.push(re()));
518
- return d && E(d, "SwitchCase"), g(), L.pop(), E(l, "SwitchStatement");
512
+ for (g(), l.Qb = Be(), l.tb = [], D(Le), L.push(ro); C !== Ie; )
513
+ C === Rt || C === Sn ? (a = C === Rt, f && I(f, "SwitchCase"), l.tb.push(f = V()), f.da = [], g(), a ? f.test = G() : (c && r(Tt, "Multiple default clauses"), c = !0, f.test = null), D(We)) : (f || se(), f.da.push(oe()));
514
+ return f && I(f, "SwitchCase"), g(), L.pop(), I(l, "SwitchStatement");
519
515
  case Tn:
520
- return g(), at.test(y.slice(ge, W)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), E(l, "ThrowStatement");
516
+ return g(), at.test(y.slice(ge, _)) && r(ge, "Illegal newline after throw"), l.K = G(), be(), I(l, "ThrowStatement");
521
517
  case An:
522
- return g(), l.block = Ue(), l.Ea = null, k === yn && (a = V(), g(), D(ce), a.Ua = se(), Q && it(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), D(oe), a.body = Ue(), l.Ea = E(a, "CatchClause")), l.fb = M(kn) ? Ue() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
518
+ return g(), l.block = Fe(), l.Ea = null, C === yn && (a = V(), g(), D(ue), a.Ua = le(), Q && it(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), D(ie), a.body = Fe(), l.Ea = I(a, "CatchClause")), l.fb = M(kn) ? Fe() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), I(l, "TryStatement");
523
519
  case Bt:
524
- return g(), hn(l), be(), E(l, "VariableDeclaration");
525
- case Ut:
526
- return g(), l.test = Be(), L.push(Vt), l.body = re(), L.pop(), E(l, "WhileStatement");
520
+ return g(), hn(l), be(), I(l, "VariableDeclaration");
521
+ case Ft:
522
+ return g(), l.test = Be(), L.push(Vt), l.body = oe(), L.pop(), I(l, "WhileStatement");
527
523
  case On:
528
- return Q && r(W, "'with' in strict mode"), g(), l.object = Be(), l.body = re(), E(l, "WithStatement");
524
+ return Q && r(_, "'with' in strict mode"), g(), l.object = Be(), l.body = oe(), I(l, "WithStatement");
529
525
  case Le:
530
- return Ue();
531
- case ue:
532
- return g(), E(l, "EmptyStatement");
526
+ return Fe();
527
+ case de:
528
+ return g(), I(l, "EmptyStatement");
533
529
  default:
534
- if (c = te, C = K(), a === Ee && C.type === "Identifier" && M(We)) {
535
- for (d = 0; d < L.length; ++d)
536
- L[d].name === c && r(C.start, "Label '" + c + "' is already declared");
530
+ if (c = ne, E = G(), a === Ee && E.type === "Identifier" && M(We)) {
531
+ for (f = 0; f < L.length; ++f)
532
+ L[f].name === c && r(E.start, "Label '" + c + "' is already declared");
537
533
  return L.push({
538
534
  name: c,
539
- kind: k.W ? "loop" : k === Nt ? "switch" : null
540
- }), l.body = re(), L.pop(), l.label = C, E(l, "LabeledStatement");
535
+ kind: C.W ? "loop" : C === Nt ? "switch" : null
536
+ }), l.body = oe(), L.pop(), l.label = E, I(l, "LabeledStatement");
541
537
  }
542
- return l.la = C, be(), E(l, "ExpressionStatement");
538
+ return l.la = E, be(), I(l, "ExpressionStatement");
543
539
  }
544
540
  }
545
541
  function Be() {
546
- D(ce);
547
- var a = K();
548
- return D(oe), a;
542
+ D(ue);
543
+ var a = G();
544
+ return D(ie), a;
549
545
  }
550
- function Ue(a) {
551
- var l = V(), c = !0, d = !1;
546
+ function Fe(a) {
547
+ var l = V(), c = !0, f = !1;
552
548
  for (l.body = [], D(Le); !M(Ie); ) {
553
- var C = re();
554
- if (l.body.push(C), c && a && Qe(C)) {
555
- var _ = d;
556
- U(d = !0);
549
+ var E = oe();
550
+ if (l.body.push(E), c && a && Qe(E)) {
551
+ var $ = f;
552
+ F(f = !0);
557
553
  }
558
554
  c = !1;
559
555
  }
560
- return d && !_ && U(!1), E(l, "BlockStatement");
556
+ return f && !$ && F(!1), I(l, "BlockStatement");
561
557
  }
562
558
  function vt(a, l) {
563
- return a.ua = l, D(ue), a.test = k === ue ? null : K(), D(ue), a.update = k === oe ? null : K(), D(oe), a.body = re(), L.pop(), E(a, "ForStatement");
559
+ return a.ua = l, D(de), a.test = C === de ? null : G(), D(de), a.update = C === ie ? null : G(), D(ie), a.body = oe(), L.pop(), I(a, "ForStatement");
564
560
  }
565
561
  function pn(a, l) {
566
- return a.left = l, a.right = K(), D(oe), a.body = re(), L.pop(), E(a, "ForInStatement");
562
+ return a.left = l, a.right = G(), D(ie), a.body = oe(), L.pop(), I(a, "ForInStatement");
567
563
  }
568
564
  function hn(a, l) {
569
565
  for (a.fa = [], a.kind = "var"; ; ) {
570
566
  var c = V();
571
- if (c.id = se(), Q && it(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = M(Vn) ? K(!0, l) : null, a.fa.push(E(c, "VariableDeclarator")), !M(ye))
567
+ if (c.id = le(), Q && it(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = M(Vn) ? G(!0, l) : null, a.fa.push(I(c, "VariableDeclarator")), !M(ye))
572
568
  break;
573
569
  }
574
570
  }
575
- function K(a, l) {
571
+ function G(a, l) {
576
572
  var c = bt(l);
577
- if (!a && k === ye) {
578
- for (a = ne(c), a.xb = [c]; M(ye); )
573
+ if (!a && C === ye) {
574
+ for (a = re(c), a.xb = [c]; M(ye); )
579
575
  a.xb.push(bt(l));
580
- return E(a, "SequenceExpression");
576
+ return I(a, "SequenceExpression");
581
577
  }
582
578
  return c;
583
579
  }
584
580
  function bt(a) {
585
581
  var l = St(wt(), -1, a);
586
- if (M(Mn)) {
587
- var c = ne(l);
588
- c.test = l, c.da = K(!0), D(We), c.alternate = K(!0, a), l = E(c, "ConditionalExpression");
582
+ if (M(Un)) {
583
+ var c = re(l);
584
+ c.test = l, c.da = G(!0), D(We), c.alternate = G(!0, a), l = I(c, "ConditionalExpression");
589
585
  }
590
- return k.Cb ? (c = ne(l), c.operator = te, c.left = l, g(), c.right = bt(a), tt(l), E(c, "AssignmentExpression")) : l;
586
+ return C.Cb ? (c = re(l), c.operator = ne, c.left = l, g(), c.right = bt(a), tt(l), I(c, "AssignmentExpression")) : l;
591
587
  }
592
588
  function St(a, l, c) {
593
- var d = k.L;
594
- if (d !== null && (!c || k !== ot) && d > l) {
595
- var C = ne(a);
596
- return C.left = a, C.operator = te, a = k, g(), C.right = St(wt(), d, c), d = E(C, a === Ln || a === Wn ? "LogicalExpression" : "BinaryExpression"), St(d, l, c);
589
+ var f = C.L;
590
+ if (f !== null && (!c || C !== ot) && f > l) {
591
+ var E = re(a);
592
+ return E.left = a, E.operator = ne, a = C, g(), E.right = St(wt(), f, c), f = I(E, a === Ln || a === Wn ? "LogicalExpression" : "BinaryExpression"), St(f, l, c);
597
593
  }
598
594
  return a;
599
595
  }
600
596
  function wt() {
601
- if (k.prefix) {
602
- var a = V(), l = k.$b;
603
- return a.operator = te, Fe = a.prefix = !0, g(), a.K = wt(), l ? tt(a.K) : Q && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), E(a, l ? "UpdateExpression" : "UnaryExpression");
597
+ if (C.prefix) {
598
+ var a = V(), l = C.$b;
599
+ return a.operator = ne, Me = a.prefix = !0, g(), a.K = wt(), l ? tt(a.K) : Q && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), I(a, l ? "UpdateExpression" : "UnaryExpression");
604
600
  }
605
- for (l = Me(nt()); k.cc && !et(); )
606
- a = ne(l), a.operator = te, a.prefix = !1, a.K = l, tt(l), g(), l = E(a, "UpdateExpression");
601
+ for (l = Ue(nt()); C.cc && !et(); )
602
+ a = re(l), a.operator = ne, a.prefix = !1, a.K = l, tt(l), g(), l = I(a, "UpdateExpression");
607
603
  return l;
608
604
  }
609
- function Me(a, l) {
610
- if (M(Un)) {
611
- var c = ne(a);
612
- return c.object = a, c.Wa = se(!0), c.bb = !1, Me(E(c, "MemberExpression"), l);
605
+ function Ue(a, l) {
606
+ if (M(Fn)) {
607
+ var c = re(a);
608
+ return c.object = a, c.Wa = le(!0), c.bb = !1, Ue(I(c, "MemberExpression"), l);
613
609
  }
614
- return M(Mt) ? (c = ne(a), c.object = a, c.Wa = K(), c.bb = !0, D(Ft), Me(E(c, "MemberExpression"), l)) : !l && M(ce) ? (c = ne(a), c.callee = a, c.arguments = kt(oe, !1), Me(E(c, "CallExpression"), l)) : a;
610
+ return M(Ut) ? (c = re(a), c.object = a, c.Wa = G(), c.bb = !0, D(Mt), Ue(I(c, "MemberExpression"), l)) : !l && M(ue) ? (c = re(a), c.callee = a, c.arguments = kt(ie, !1), Ue(I(c, "CallExpression"), l)) : a;
615
611
  }
616
612
  function nt() {
617
- switch (k) {
613
+ switch (C) {
618
614
  case Rn:
619
615
  var a = V();
620
- return g(), E(a, "ThisExpression");
616
+ return g(), I(a, "ThisExpression");
621
617
  case Ee:
622
- return se();
618
+ return le();
623
619
  case De:
624
620
  case rt:
625
621
  case gn:
626
- return a = V(), a.value = te, a.raw = y.slice(W, Ce), g(), E(a, "Literal");
622
+ return a = V(), a.value = ne, a.raw = y.slice(_, Ce), g(), I(a, "Literal");
627
623
  case Pn:
628
624
  case Nn:
629
625
  case Bn:
630
- return a = V(), a.value = k.$a, a.raw = k.l, g(), E(a, "Literal");
631
- case ce:
626
+ return a = V(), a.value = C.$a, a.raw = C.l, g(), I(a, "Literal");
627
+ case ue:
632
628
  a = Et;
633
- var l = W;
629
+ var l = _;
634
630
  g();
635
- var c = K();
636
- return c.start = l, c.end = Ce, A.C && (c.X.start = a, c.X.end = It), A.Xa && (c.j = [l, Ce]), D(oe), c;
637
- case Mt:
638
- return a = V(), g(), a.elements = kt(Ft, !0, !0), E(a, "ArrayExpression");
631
+ var c = G();
632
+ return c.start = l, c.end = Ce, A.C && (c.X.start = a, c.X.end = It), A.Xa && (c.j = [l, Ce]), D(ie), c;
633
+ case Ut:
634
+ return a = V(), g(), a.elements = kt(Mt, !0, !0), I(a, "ArrayExpression");
639
635
  case Le:
640
636
  for (a = V(), l = !0, c = !1, a.h = [], g(); !M(Ie); ) {
641
637
  if (l)
642
638
  l = !1;
643
639
  else if (D(ye), A.sb && M(Ie))
644
640
  break;
645
- var d = {
646
- key: k === De || k === rt ? nt() : se(!0)
647
- }, C = !1;
641
+ var f = {
642
+ key: C === De || C === rt ? nt() : le(!0)
643
+ }, E = !1;
648
644
  if (M(We)) {
649
- d.value = K(!0);
650
- var _ = d.kind = "init";
645
+ f.value = G(!0);
646
+ var $ = f.kind = "init";
651
647
  } else
652
- d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ae() : (C = c = !0, _ = d.kind = d.key.name, d.key = k === De || k === rt ? nt() : se(!0), k !== ce && ae(), d.value = xt(V(), !1));
653
- if (d.key.type === "Identifier" && (Q || c))
654
- for (var J = 0; J < a.h.length; ++J) {
655
- var Ae = a.h[J];
656
- if (Ae.key.name === d.key.name) {
657
- var Dt = _ === Ae.kind || C && Ae.kind === "init" || _ === "init" && (Ae.kind === "get" || Ae.kind === "set");
658
- Dt && !Q && _ === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(d.key.start, "Redefinition of property");
648
+ f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? se() : (E = c = !0, $ = f.kind = f.key.name, f.key = C === De || C === rt ? nt() : le(!0), C !== ue && se(), f.value = xt(V(), !1));
649
+ if (f.key.type === "Identifier" && (Q || c))
650
+ for (var z = 0; z < a.h.length; ++z) {
651
+ var Ae = a.h[z];
652
+ if (Ae.key.name === f.key.name) {
653
+ var Dt = $ === Ae.kind || E && Ae.kind === "init" || $ === "init" && (Ae.kind === "get" || Ae.kind === "set");
654
+ Dt && !Q && $ === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(f.key.start, "Redefinition of property");
659
655
  }
660
656
  }
661
- a.h.push(d);
657
+ a.h.push(f);
662
658
  }
663
- return E(a, "ObjectExpression");
659
+ return I(a, "ObjectExpression");
664
660
  case Pt:
665
661
  return a = V(), g(), xt(a, !1);
666
662
  case jn:
667
- return a = V(), g(), a.callee = Me(nt(), !0), a.arguments = M(ce) ? kt(oe, !1) : _r, E(a, "NewExpression");
663
+ return a = V(), g(), a.callee = Ue(nt(), !0), a.arguments = M(ue) ? kt(ie, !1) : _r, I(a, "NewExpression");
668
664
  }
669
- ae();
665
+ se();
670
666
  }
671
667
  function xt(a, l) {
672
- k === Ee ? a.id = se() : l ? ae() : a.id = null, a.oa = [];
668
+ C === Ee ? a.id = le() : l ? se() : a.id = null, a.oa = [];
673
669
  var c = !0;
674
- for (D(ce); !M(oe); )
675
- c ? c = !1 : D(ye), a.oa.push(se());
670
+ for (D(ue); !M(ie); )
671
+ c ? c = !1 : D(ye), a.oa.push(le());
676
672
  c = Ve;
677
- var d = L;
678
- if (Ve = !0, L = [], a.body = Ue(!0), Ve = c, L = d, Q || a.body.body.length && Qe(a.body.body[0])) {
673
+ var f = L;
674
+ if (Ve = !0, L = [], a.body = Fe(!0), Ve = c, L = f, Q || a.body.body.length && Qe(a.body.body[0])) {
679
675
  for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
680
- if (d = 0 > c ? a.id : a.oa[c], (_n(d.name) || it(d.name)) && r(d.start, "Defining '" + d.name + "' in strict mode"), 0 <= c)
681
- for (var C = 0; C < c; ++C)
682
- d.name === a.oa[C].name && r(d.start, "Argument name clash in strict mode");
676
+ if (f = 0 > c ? a.id : a.oa[c], (_n(f.name) || it(f.name)) && r(f.start, "Defining '" + f.name + "' in strict mode"), 0 <= c)
677
+ for (var E = 0; E < c; ++E)
678
+ f.name === a.oa[E].name && r(f.start, "Argument name clash in strict mode");
683
679
  }
684
- return E(a, l ? "FunctionDeclaration" : "FunctionExpression");
680
+ return I(a, l ? "FunctionDeclaration" : "FunctionExpression");
685
681
  }
686
682
  function kt(a, l, c) {
687
- for (var d = [], C = !0; !M(a); ) {
688
- if (C)
689
- C = !1;
683
+ for (var f = [], E = !0; !M(a); ) {
684
+ if (E)
685
+ E = !1;
690
686
  else if (D(ye), l && A.sb && M(a))
691
687
  break;
692
- d.push(c && k === ye ? null : K(!0));
688
+ f.push(c && C === ye ? null : G(!0));
693
689
  }
694
- return d;
690
+ return f;
695
691
  }
696
- function se(a) {
692
+ function le(a) {
697
693
  var l = V();
698
- return a && A.yb === "everywhere" && (a = !1), k === Ee ? (!a && (A.yb && Qr(te) || Q && _n(te)) && y.slice(W, Ce).indexOf("\\") === -1 && r(W, "The keyword '" + te + "' is reserved"), l.name = te) : a && k.l ? l.name = k.l : ae(), Fe = !1, g(), E(l, "Identifier");
694
+ return a && A.yb === "everywhere" && (a = !1), C === Ee ? (!a && (A.yb && Qr(ne) || Q && _n(ne)) && y.slice(_, Ce).indexOf("\\") === -1 && r(_, "The keyword '" + ne + "' is reserved"), l.name = ne) : a && C.l ? l.name = C.l : se(), Me = !1, g(), I(l, "Identifier");
699
695
  }
700
696
  e.version = "0.5.0";
701
697
  var A, y = "", ke, Ct;
@@ -703,9 +699,9 @@ var B, Ao = function(e) {
703
699
  y = String(a), ke = y.length, A = l || {};
704
700
  for (var c in mn)
705
701
  Object.prototype.hasOwnProperty.call(A, c) || (A[c] = mn[c]);
706
- for (Ct = A.sourceFile, Se = 1, f = le = 0, Fe = !0, p(), c = A.dc, Tt = ge = f, A.C && (At = new i()), Ve = Q = !1, L = [], x(), a = c || V(), l = !0, c || (a.body = []); k !== Ot; )
707
- c = re(), a.body.push(c), l && Qe(c) && U(!0), l = !1;
708
- return E(a, "Program");
702
+ for (Ct = A.sourceFile, Se = 1, d = ce = 0, Me = !0, p(), c = A.dc, Tt = ge = d, A.C && (At = new i()), Ve = Q = !1, L = [], x(), a = c || V(), l = !0, c || (a.body = []); C !== Ot; )
703
+ c = oe(), a.body.push(c), l && Qe(c) && F(!0), l = !1;
704
+ return I(a, "Program");
709
705
  };
710
706
  var mn = {
711
707
  fc: !1,
@@ -718,7 +714,7 @@ var B, Ao = function(e) {
718
714
  dc: null,
719
715
  sourceFile: null,
720
716
  vb: null
721
- }, f = 0, W = 0, Ce = 0, Et, It, k, te, Fe, Se, le, Tt = 0, ge = 0, At, Ve, L, Q, _r = [], De = {
717
+ }, d = 0, _ = 0, Ce = 0, Et, It, C, ne, Me, Se, ce, Tt = 0, ge = 0, At, Ve, L, Q, _r = [], De = {
722
718
  type: "num"
723
719
  }, gn = {
724
720
  type: "regexp"
@@ -768,7 +764,7 @@ var B, Ao = function(e) {
768
764
  l: "try"
769
765
  }, Bt = {
770
766
  l: "var"
771
- }, Ut = {
767
+ }, Ft = {
772
768
  l: "while",
773
769
  W: !0
774
770
  }, On = {
@@ -809,7 +805,7 @@ var B, Ao = function(e) {
809
805
  throw: Tn,
810
806
  try: An,
811
807
  var: Bt,
812
- while: Ut,
808
+ while: Ft,
813
809
  with: On,
814
810
  null: Pn,
815
811
  true: Nn,
@@ -837,36 +833,36 @@ var B, Ao = function(e) {
837
833
  prefix: !0,
838
834
  m: !0
839
835
  }
840
- }, Mt = {
836
+ }, Ut = {
841
837
  type: "[",
842
838
  m: !0
843
- }, Ft = {
839
+ }, Mt = {
844
840
  type: "]"
845
841
  }, Le = {
846
842
  type: "{",
847
843
  m: !0
848
844
  }, Ie = {
849
845
  type: "}"
850
- }, ce = {
846
+ }, ue = {
851
847
  type: "(",
852
848
  m: !0
853
- }, oe = {
849
+ }, ie = {
854
850
  type: ")"
855
851
  }, ye = {
856
852
  type: ",",
857
853
  m: !0
858
- }, ue = {
854
+ }, de = {
859
855
  type: ";",
860
856
  m: !0
861
857
  }, We = {
862
858
  type: ":",
863
859
  m: !0
864
- }, Un = {
860
+ }, Fn = {
865
861
  type: "."
866
- }, Mn = {
862
+ }, Un = {
867
863
  type: "?",
868
864
  m: !0
869
- }, Fn = {
865
+ }, Mn = {
870
866
  L: 10,
871
867
  m: !0
872
868
  }, Vn = {
@@ -900,10 +896,10 @@ var B, Ao = function(e) {
900
896
  }, Yr = {
901
897
  L: 6,
902
898
  m: !0
903
- }, Jr = {
899
+ }, zr = {
904
900
  L: 7,
905
901
  m: !0
906
- }, zr = {
902
+ }, Jr = {
907
903
  L: 8,
908
904
  m: !0
909
905
  }, qr = {
@@ -941,7 +937,7 @@ function h(e, t) {
941
937
  var Hn = {
942
938
  C: !0,
943
939
  kc: 5
944
- }, Jt = {
940
+ }, zt = {
945
941
  configurable: !0,
946
942
  enumerable: !0,
947
943
  writable: !1
@@ -965,12 +961,12 @@ var Hn = {
965
961
  STEP_ERROR: !0
966
962
  }, Ne = {
967
963
  SCOPE_REFERENCE: !0
968
- }, Je = {
964
+ }, ze = {
969
965
  VALUE_IN_DESCRIPTOR: !0
970
966
  }, je = {
971
967
  REGEXP_TIMEOUT: !0
972
- }, Gn = [], de = null, Xe = null, ve = typeof globalThis > "u" ? void 0 : globalThis, Oo = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
973
- function zt(e) {
968
+ }, Gn = [], pe = null, Xe = null, ve = typeof globalThis > "u" ? void 0 : globalThis, Oo = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
969
+ function Jt(e) {
974
970
  var t = e >>> 0;
975
971
  return t === Number(e) ? t : NaN;
976
972
  }
@@ -989,26 +985,26 @@ function pt(e, t, n) {
989
985
  h.prototype.REGEXP_MODE = 2;
990
986
  h.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
991
987
  h.prototype.POLYFILL_TIMEOUT = 1e3;
992
- B = h.prototype;
993
- B.P = !1;
994
- B.Ka = !1;
995
- B.Kb = 0;
996
- B.ic = 0;
988
+ P = h.prototype;
989
+ P.P = !1;
990
+ P.Ka = !1;
991
+ P.Kb = 0;
992
+ P.ic = 0;
997
993
  function Re(e, t) {
998
994
  var n = {}, r;
999
995
  for (r in Hn)
1000
996
  n[r] = Hn[r];
1001
997
  return n.sourceFile = t, ve.j.parse(e, n);
1002
998
  }
1003
- B.Jb = function(e) {
999
+ P.Jb = function(e) {
1004
1000
  var t = this.o[0];
1005
1001
  if (!t || t.node.type !== "Program")
1006
1002
  throw Error("Expecting original AST to start with a Program node");
1007
1003
  if (typeof e == "string" && (e = Re(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
1008
1004
  throw Error("Expecting new AST to start with a Program node");
1009
- ze(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
1005
+ Je(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
1010
1006
  };
1011
- B.lb = function() {
1007
+ P.lb = function() {
1012
1008
  var e = this.o, t;
1013
1009
  do {
1014
1010
  var n = e[e.length - 1];
@@ -1046,13 +1042,13 @@ B.lb = function() {
1046
1042
  } while (!r.end && t > Date.now());
1047
1043
  return !0;
1048
1044
  };
1049
- B.Eb = function() {
1045
+ P.Eb = function() {
1050
1046
  for (; !this.za && this.lb(); )
1051
1047
  ;
1052
1048
  return this.za;
1053
1049
  };
1054
1050
  function jo(e, t) {
1055
- e.g(t, "NaN", NaN, _e), e.g(t, "Infinity", 1 / 0, _e), e.g(t, "undefined", void 0, _e), e.g(t, "window", t, Jt), e.g(t, "this", t, _e), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), Ro(e, t), Po(e, t), t.xa = e.M, e.g(t, "constructor", e.v, v), No(e, t), Bo(e, t), Uo(e, t), Mo(e, t), Fo(e, t), Vo(e, t), Do(e, t), Lo(e, t), Wo(e, t);
1051
+ e.g(t, "NaN", NaN, _e), e.g(t, "Infinity", 1 / 0, _e), e.g(t, "undefined", void 0, _e), e.g(t, "window", t, zt), e.g(t, "this", t, _e), e.g(t, "self", t), e.M = new j(null), e.Z = new j(e.M), Ro(e, t), Po(e, t), t.xa = e.M, e.g(t, "constructor", e.v, v), No(e, t), Bo(e, t), Fo(e, t), Uo(e, t), Mo(e, t), Vo(e, t), Do(e, t), Lo(e, t), Wo(e, t);
1056
1052
  var n = e.i(function() {
1057
1053
  throw EvalError("Can't happen");
1058
1054
  }, !1);
@@ -1077,7 +1073,7 @@ function jo(e, t) {
1077
1073
  Yn(e, i);
1078
1074
  }, e.g(t, "clearInterval", e.i(n, !1), v), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
1079
1075
  }
1080
- B.Wb = 0;
1076
+ P.Wb = 0;
1081
1077
  function Ro(e, t) {
1082
1078
  var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
1083
1079
  var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
@@ -1099,18 +1095,18 @@ function Ro(e, t) {
1099
1095
  e.O = e.i(r, !0), e.g(t, "Function", e.O, v), e.g(e.O, "prototype", e.Z, v), e.g(e.Z, "constructor", e.O, v), e.Z.Ta = function() {
1100
1096
  }, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, q), e.Z.H = "Function", r = function(o, i) {
1101
1097
  var s = e.o[e.o.length - 1];
1102
- s.U = this, s.B = o, s.F = [], i != null && (i instanceof P ? s.F = yr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
1103
- }, $(e, e.O, "apply", r), r = function(o) {
1098
+ s.U = this, s.B = o, s.F = [], i != null && (i instanceof j ? s.F = yr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
1099
+ }, H(e, e.O, "apply", r), r = function(o) {
1104
1100
  var i = e.o[e.o.length - 1];
1105
1101
  i.U = this, i.B = o, i.F = [];
1106
1102
  for (var s = 1; s < arguments.length; s++)
1107
1103
  i.F.push(arguments[s]);
1108
1104
  i.eb = !1;
1109
- }, $(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
1105
+ }, H(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
1110
1106
  return String(this);
1111
- }, $(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), v), r = function() {
1107
+ }, H(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), v), r = function() {
1112
1108
  return this.valueOf();
1113
- }, $(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), v);
1109
+ }, H(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), v);
1114
1110
  }
1115
1111
  function Po(e, t) {
1116
1112
  function n(o) {
@@ -1118,50 +1114,50 @@ function Po(e, t) {
1118
1114
  }
1119
1115
  var r = function(o) {
1120
1116
  if (o == null)
1121
- return he(e) ? this : e.s(e.M);
1122
- if (!(o instanceof P)) {
1123
- var i = e.s(pe(e, o));
1117
+ return me(e) ? this : e.s(e.M);
1118
+ if (!(o instanceof j)) {
1119
+ var i = e.s(he(e, o));
1124
1120
  return i.data = o, i;
1125
1121
  }
1126
1122
  return o;
1127
1123
  };
1128
1124
  e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, v), e.g(e.M, "constructor", e.v, v), e.g(t, "Object", e.v, v), r = function(o) {
1129
- return n(o), fe(e, Object.getOwnPropertyNames(o instanceof P ? o.h : o));
1125
+ return n(o), fe(e, Object.getOwnPropertyNames(o instanceof j ? o.h : o));
1130
1126
  }, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), v), r = function(o) {
1131
- return n(o), o instanceof P && (o = o.h), fe(e, Object.keys(o));
1127
+ return n(o), o instanceof j && (o = o.h), fe(e, Object.keys(o));
1132
1128
  }, e.g(e.v, "keys", e.i(r, !1), v), r = function(o) {
1133
- return o === null ? e.s(null) : (o instanceof P || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
1129
+ return o === null ? e.s(null) : (o instanceof j || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
1134
1130
  }, e.g(e.v, "create", e.i(r, !1), v), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, s) {
1135
- return i = String(i), o instanceof P || w(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof P || w(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || w(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, Je, s.h), o;
1131
+ return i = String(i), o instanceof j || w(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof j || w(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || w(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, ze, s.h), o;
1136
1132
  }, e.g(e.v, "defineProperty", e.i(r, !1), v), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
1137
- if (o instanceof P || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
1133
+ if (o instanceof j || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
1138
1134
  var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
1139
1135
  return o = o.Y[i], i = e.s(e.M), u || o ? (e.g(i, "get", u), e.g(i, "set", o)) : (e.g(i, "value", s.value), e.g(i, "writable", s.writable)), e.g(i, "configurable", s.configurable), e.g(i, "enumerable", s.enumerable), i;
1140
1136
  }
1141
1137
  }, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), v), r = function(o) {
1142
- return n(o), pe(e, o);
1138
+ return n(o), he(e, o);
1143
1139
  }, e.g(e.v, "getPrototypeOf", e.i(r, !1), v), r = function(o) {
1144
1140
  return !!o && !o.preventExtensions;
1145
1141
  }, e.g(e.v, "isExtensible", e.i(r, !1), v), r = function(o) {
1146
- return o instanceof P && (o.preventExtensions = !0), o;
1147
- }, e.g(e.v, "preventExtensions", e.i(r, !1), v), $(e, e.v, "toString", P.prototype.toString), $(e, e.v, "toLocaleString", P.prototype.toString), $(e, e.v, "valueOf", P.prototype.valueOf), r = function(o) {
1148
- return n(this), this instanceof P ? String(o) in this.h : this.hasOwnProperty(o);
1149
- }, $(e, e.v, "hasOwnProperty", r), r = function(o) {
1150
- return n(this), this instanceof P ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
1151
- }, $(e, e.v, "propertyIsEnumerable", r), r = function(o) {
1142
+ return o instanceof j && (o.preventExtensions = !0), o;
1143
+ }, e.g(e.v, "preventExtensions", e.i(r, !1), v), H(e, e.v, "toString", j.prototype.toString), H(e, e.v, "toLocaleString", j.prototype.toString), H(e, e.v, "valueOf", j.prototype.valueOf), r = function(o) {
1144
+ return n(this), this instanceof j ? String(o) in this.h : this.hasOwnProperty(o);
1145
+ }, H(e, e.v, "hasOwnProperty", r), r = function(o) {
1146
+ return n(this), this instanceof j ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
1147
+ }, H(e, e.v, "propertyIsEnumerable", r), r = function(o) {
1152
1148
  for (; ; ) {
1153
- if (o = pe(e, o), !o)
1149
+ if (o = he(e, o), !o)
1154
1150
  return !1;
1155
1151
  if (o === this)
1156
1152
  return !0;
1157
1153
  }
1158
- }, $(e, e.v, "isPrototypeOf", r);
1154
+ }, H(e, e.v, "isPrototypeOf", r);
1159
1155
  }
1160
1156
  function No(e, t) {
1161
1157
  var n = function(r) {
1162
- var o = he(e) ? this : Pe(e), i = arguments[0];
1158
+ var o = me(e) ? this : Pe(e), i = arguments[0];
1163
1159
  if (arguments.length === 1 && typeof i == "number")
1164
- isNaN(zt(i)) && w(e, e.ob, "Invalid array length: " + i), o.h.length = i;
1160
+ isNaN(Jt(i)) && w(e, e.ob, "Invalid array length: " + i), o.h.length = i;
1165
1161
  else {
1166
1162
  for (i = 0; i < arguments.length; i++)
1167
1163
  o.h[i] = arguments[i];
@@ -1179,10 +1175,10 @@ function No(e, t) {
1179
1175
  }
1180
1176
  function Bo(e, t) {
1181
1177
  var n = function(r) {
1182
- return r = arguments.length ? ve.String(r) : "", he(e) ? (this.data = r, this) : r;
1178
+ return r = arguments.length ? ve.String(r) : "", me(e) ? (this.data = r, this) : r;
1183
1179
  };
1184
1180
  for (e.J = e.i(n, !0), e.g(t, "String", e.J, v), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), v), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
1185
- $(e, e.J, t[n], String.prototype[t[n]]);
1181
+ H(e, e.J, t[n], String.prototype[t[n]]);
1186
1182
  n = function(r, o, i) {
1187
1183
  o = e.R(o), i = e.R(i);
1188
1184
  try {
@@ -1190,10 +1186,10 @@ function Bo(e, t) {
1190
1186
  } catch (s) {
1191
1187
  w(e, e.D, "localeCompare: " + s.message);
1192
1188
  }
1193
- }, $(e, e.J, "localeCompare", n), n = function(r, o, i) {
1189
+ }, H(e, e.J, "localeCompare", n), n = function(r, o, i) {
1194
1190
  var s = String(this);
1195
- if (o = o ? Number(o) : void 0, H(e, r, e.I) && (r = r.data, He(e, r, i), e.REGEXP_MODE === 2)) {
1196
- if (de)
1191
+ if (o = o ? Number(o) : void 0, K(e, r, e.I) && (r = r.data, He(e, r, i), e.REGEXP_MODE === 2)) {
1192
+ if (pe)
1197
1193
  r = $e(e, "string.split(separator, limit)", {
1198
1194
  string: s,
1199
1195
  separator: r,
@@ -1210,8 +1206,8 @@ function Bo(e, t) {
1210
1206
  r = s.split(r, o), i(fe(e, r));
1211
1207
  }, Ge(e, e.J, "split", n), n = function(r, o) {
1212
1208
  var i = String(this);
1213
- if (r = H(e, r, e.I) ? r.data : new RegExp(r), He(e, r, o), e.REGEXP_MODE === 2)
1214
- if (de)
1209
+ if (r = K(e, r, e.I) ? r.data : new RegExp(r), He(e, r, o), e.REGEXP_MODE === 2)
1210
+ if (pe)
1215
1211
  r = $e(e, "string.match(regexp)", {
1216
1212
  string: i,
1217
1213
  regexp: r
@@ -1226,8 +1222,8 @@ function Bo(e, t) {
1226
1222
  r = i.match(r), o(r && fe(e, r));
1227
1223
  }, Ge(e, e.J, "match", n), n = function(r, o) {
1228
1224
  var i = String(this);
1229
- if (H(e, r, e.I) ? r = r.data : r = new RegExp(r), He(e, r, o), e.REGEXP_MODE === 2)
1230
- if (de)
1225
+ if (K(e, r, e.I) ? r = r.data : r = new RegExp(r), He(e, r, o), e.REGEXP_MODE === 2)
1226
+ if (pe)
1231
1227
  r = $e(e, "string.search(regexp)", {
1232
1228
  string: i,
1233
1229
  regexp: r
@@ -1242,8 +1238,8 @@ function Bo(e, t) {
1242
1238
  o(i.search(r));
1243
1239
  }, Ge(e, e.J, "search", n), n = function(r, o, i) {
1244
1240
  var s = String(this);
1245
- if (o = String(o), H(e, r, e.I) && (r = r.data, He(e, r, i), e.REGEXP_MODE === 2)) {
1246
- if (de)
1241
+ if (o = String(o), K(e, r, e.I) && (r = r.data, He(e, r, i), e.REGEXP_MODE === 2)) {
1242
+ if (pe)
1247
1243
  r = $e(e, "string.replace(substr, newSubstr)", {
1248
1244
  string: s,
1249
1245
  substr: r,
@@ -1260,14 +1256,14 @@ function Bo(e, t) {
1260
1256
  i(s.replace(r, o));
1261
1257
  }, Ge(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
1262
1258
  }
1263
- function Uo(e, t) {
1259
+ function Fo(e, t) {
1264
1260
  e.mb = e.i(function(n) {
1265
- return n = ve.Boolean(n), he(e) ? (this.data = n, this) : n;
1261
+ return n = ve.Boolean(n), me(e) ? (this.data = n, this) : n;
1266
1262
  }, !0), e.g(t, "Boolean", e.mb, v);
1267
1263
  }
1268
- function Mo(e, t) {
1264
+ function Uo(e, t) {
1269
1265
  var n = function(r) {
1270
- return r = arguments.length ? ve.Number(r) : 0, he(e) ? (this.data = r, this) : r;
1266
+ return r = arguments.length ? ve.Number(r) : 0, me(e) ? (this.data = r, this) : r;
1271
1267
  };
1272
1268
  for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, v), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
1273
1269
  e.g(e.aa, t[n], Number[t[n]], _e);
@@ -1277,36 +1273,36 @@ function Mo(e, t) {
1277
1273
  } catch (o) {
1278
1274
  w(e, e.D, o.message);
1279
1275
  }
1280
- }, $(e, e.aa, "toExponential", n), n = function(r) {
1276
+ }, H(e, e.aa, "toExponential", n), n = function(r) {
1281
1277
  try {
1282
1278
  return Number(this).toFixed(r);
1283
1279
  } catch (o) {
1284
1280
  w(e, e.D, o.message);
1285
1281
  }
1286
- }, $(e, e.aa, "toFixed", n), n = function(r) {
1282
+ }, H(e, e.aa, "toFixed", n), n = function(r) {
1287
1283
  try {
1288
1284
  return Number(this).toPrecision(r);
1289
1285
  } catch (o) {
1290
1286
  w(e, e.D, o.message);
1291
1287
  }
1292
- }, $(e, e.aa, "toPrecision", n), n = function(r) {
1288
+ }, H(e, e.aa, "toPrecision", n), n = function(r) {
1293
1289
  try {
1294
1290
  return Number(this).toString(r);
1295
1291
  } catch (o) {
1296
1292
  w(e, e.D, o.message);
1297
1293
  }
1298
- }, $(e, e.aa, "toString", n), n = function(r, o) {
1294
+ }, H(e, e.aa, "toString", n), n = function(r, o) {
1299
1295
  r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
1300
1296
  try {
1301
1297
  return Number(this).toLocaleString(r, o);
1302
1298
  } catch (i) {
1303
1299
  w(e, e.D, "toLocaleString: " + i.message);
1304
1300
  }
1305
- }, $(e, e.aa, "toLocaleString", n);
1301
+ }, H(e, e.aa, "toLocaleString", n);
1306
1302
  }
1307
- function Fo(e, t) {
1303
+ function Mo(e, t) {
1308
1304
  var n = function(o, i) {
1309
- if (!he(e))
1305
+ if (!me(e))
1310
1306
  return ve.Date();
1311
1307
  var s = [null].concat(Array.from(arguments));
1312
1308
  return this.data = new (Function.prototype.bind.apply(ve.Date, s))(), this;
@@ -1321,14 +1317,14 @@ function Fo(e, t) {
1321
1317
  u[p] = e.R(arguments[p]);
1322
1318
  return s[o].apply(s, u);
1323
1319
  };
1324
- }(t[r]), $(e, e.$, t[r], n);
1320
+ }(t[r]), H(e, e.$, t[r], n);
1325
1321
  }
1326
1322
  function Vo(e, t) {
1327
1323
  var n = function(r, o) {
1328
- if (he(e))
1324
+ if (me(e))
1329
1325
  var i = this;
1330
1326
  else {
1331
- if (o === void 0 && H(e, r, e.I))
1327
+ if (o === void 0 && K(e, r, e.I))
1332
1328
  return r;
1333
1329
  i = e.s(e.Ma);
1334
1330
  }
@@ -1350,7 +1346,7 @@ function Vo(e, t) {
1350
1346
  }
1351
1347
  var s = this.data;
1352
1348
  if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), He(e, s, o), e.REGEXP_MODE === 2)
1353
- if (de)
1349
+ if (pe)
1354
1350
  r = $e(e, "regexp.exec(string)", {
1355
1351
  string: r,
1356
1352
  regexp: s
@@ -1368,13 +1364,13 @@ function Vo(e, t) {
1368
1364
  function Do(e, t) {
1369
1365
  function n(r) {
1370
1366
  var o = e.i(function(i) {
1371
- var s = he(e) ? this : e.Aa(o);
1367
+ var s = me(e) ? this : e.Aa(o);
1372
1368
  return _t(e, s, i), s;
1373
1369
  }, !0);
1374
1370
  return e.g(o, "prototype", e.Aa(e.D), v), e.g(o.h.prototype, "name", r, v), e.g(t, r, o, v), o;
1375
1371
  }
1376
1372
  e.D = e.i(function(r) {
1377
- var o = he(e) ? this : e.Aa(e.D);
1373
+ var o = me(e) ? this : e.Aa(e.D);
1378
1374
  return _t(e, o, r), o;
1379
1375
  }, !0), e.g(t, "Error", e.D, v), e.g(e.D.h.prototype, "message", "", v), e.g(e.D.h.prototype, "name", "Error", v), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
1380
1376
  }
@@ -1408,12 +1404,12 @@ function Wo(e, t) {
1408
1404
  return s;
1409
1405
  }, e.g(n, "stringify", e.i(t, !1));
1410
1406
  }
1411
- function H(e, t, n) {
1407
+ function K(e, t, n) {
1412
1408
  if (t == null || !n)
1413
1409
  return !1;
1414
1410
  if (n = n.h.prototype, t === n)
1415
1411
  return !0;
1416
- for (t = pe(e, t); t; ) {
1412
+ for (t = he(e, t); t; ) {
1417
1413
  if (t === n)
1418
1414
  return !0;
1419
1415
  t = t.xa;
@@ -1440,7 +1436,7 @@ function _t(e, t, n) {
1440
1436
  }
1441
1437
  e.g(t, "stack", i.trim(), v);
1442
1438
  }
1443
- B.ha = function() {
1439
+ P.ha = function() {
1444
1440
  var e = this.ha.Mb;
1445
1441
  return e || (e = new Blob([Oo.join(`
1446
1442
  `)], {
@@ -1452,7 +1448,7 @@ function $e(e, t, n, r, o) {
1452
1448
  timeout: e.REGEXP_THREAD_TIMEOUT
1453
1449
  };
1454
1450
  try {
1455
- return de.runInNewContext(t, n, i);
1451
+ return pe.runInNewContext(t, n, i);
1456
1452
  } catch {
1457
1453
  o(null), w(e, e.D, "RegExp Timeout: " + r);
1458
1454
  }
@@ -1463,16 +1459,16 @@ function He(e, t, n) {
1463
1459
  var r = !1;
1464
1460
  else if (e.REGEXP_MODE === 1)
1465
1461
  r = !0;
1466
- else if (de)
1462
+ else if (pe)
1467
1463
  r = !0;
1468
1464
  else if (typeof Worker == "function" && typeof URL == "function")
1469
1465
  r = !0;
1470
1466
  else if (typeof require == "function") {
1471
1467
  try {
1472
- de = require("vm");
1468
+ pe = require("vm");
1473
1469
  } catch {
1474
1470
  }
1475
- r = !!de;
1471
+ r = !!pe;
1476
1472
  } else
1477
1473
  r = !1;
1478
1474
  r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
@@ -1486,13 +1482,13 @@ function Ke(e, t, n, r) {
1486
1482
  }
1487
1483
  }, e.REGEXP_THREAD_TIMEOUT);
1488
1484
  }
1489
- B.Aa = function(e) {
1485
+ P.Aa = function(e) {
1490
1486
  return this.s(e && e.h.prototype);
1491
1487
  };
1492
- B.s = function(e) {
1488
+ P.s = function(e) {
1493
1489
  if (typeof e != "object")
1494
1490
  throw Error("Non object prototype");
1495
- return e = new P(e), H(this, e, this.D) && (e.H = "Error"), e;
1491
+ return e = new j(e), K(this, e, this.D) && (e.H = "Error"), e;
1496
1492
  };
1497
1493
  function Pe(e) {
1498
1494
  var t = e.s(e.La);
@@ -1510,15 +1506,15 @@ function Qt(e, t, n, r) {
1510
1506
  var o = Zt(e, t.oa.length, !0);
1511
1507
  return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", q), o;
1512
1508
  }
1513
- B.i = function(e, t) {
1509
+ P.i = function(e, t) {
1514
1510
  return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, q), t;
1515
1511
  };
1516
- B.ub = function(e) {
1512
+ P.ub = function(e) {
1517
1513
  var t = Zt(this, e.length, !0);
1518
1514
  return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, q), t;
1519
1515
  };
1520
- B.Ia = function(e) {
1521
- if (e instanceof P)
1516
+ P.Ia = function(e) {
1517
+ if (e instanceof j)
1522
1518
  throw Error("Object is already pseudo");
1523
1519
  if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
1524
1520
  return e;
@@ -1548,14 +1544,14 @@ B.Ia = function(e) {
1548
1544
  this.g(t, r, this.Ia(e[r]));
1549
1545
  return t;
1550
1546
  };
1551
- B.R = function(e, t) {
1547
+ P.R = function(e, t) {
1552
1548
  if (typeof e != "object" && typeof e != "function" || e === null)
1553
1549
  return e;
1554
- if (!(e instanceof P))
1550
+ if (!(e instanceof j))
1555
1551
  throw Error("Object is not pseudo");
1556
- if (H(this, e, this.I))
1552
+ if (K(this, e, this.I))
1557
1553
  return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
1558
- if (H(this, e, this.$))
1554
+ if (K(this, e, this.$))
1559
1555
  return new Date(e.data.valueOf());
1560
1556
  t = t || {
1561
1557
  hb: [],
@@ -1564,7 +1560,7 @@ B.R = function(e, t) {
1564
1560
  var n = t.hb.indexOf(e);
1565
1561
  if (n !== -1)
1566
1562
  return t.Sa[n];
1567
- if (t.hb.push(e), H(this, e, this.qa)) {
1563
+ if (t.hb.push(e), K(this, e, this.qa)) {
1568
1564
  n = [], t.Sa.push(n);
1569
1565
  for (var r = this.G(e, "length"), o = 0; o < r; o++)
1570
1566
  ht(this, e, o) && (n[o] = this.R(this.G(e, o), t));
@@ -1587,9 +1583,9 @@ function yr(e, t) {
1587
1583
  var n = [], r;
1588
1584
  for (r in t.h)
1589
1585
  n[r] = e.G(t, r);
1590
- return n.length = zt(e.G(t, "length")) || 0, n;
1586
+ return n.length = Jt(e.G(t, "length")) || 0, n;
1591
1587
  }
1592
- function pe(e, t) {
1588
+ function he(e, t) {
1593
1589
  switch (typeof t) {
1594
1590
  case "number":
1595
1591
  return e.aa.h.prototype;
@@ -1600,15 +1596,15 @@ function pe(e, t) {
1600
1596
  }
1601
1597
  return t ? t.xa : null;
1602
1598
  }
1603
- B.G = function(e, t) {
1599
+ P.G = function(e, t) {
1604
1600
  if (this.P)
1605
1601
  throw Error("Getter not supported in that context");
1606
- if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
1602
+ if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof j))
1607
1603
  throw TypeError("Expecting native value or pseudo object");
1608
1604
  if (t === "length") {
1609
- if (H(this, e, this.J))
1605
+ if (K(this, e, this.J))
1610
1606
  return String(e).length;
1611
- } else if (64 > t.charCodeAt(0) && H(this, e, this.J)) {
1607
+ } else if (64 > t.charCodeAt(0) && K(this, e, this.J)) {
1612
1608
  var n = Ye(t);
1613
1609
  if (!isNaN(n) && n < String(e).length)
1614
1610
  return String(e)[n];
@@ -1616,14 +1612,14 @@ B.G = function(e, t) {
1616
1612
  do
1617
1613
  if (e.h && t in e.h)
1618
1614
  return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
1619
- while (e = pe(this, e));
1615
+ while (e = he(this, e));
1620
1616
  };
1621
1617
  function ht(e, t, n) {
1622
- if (!(t instanceof P))
1618
+ if (!(t instanceof j))
1623
1619
  throw TypeError("Primitive data type has no properties");
1624
- if (n = String(n), n === "length" && H(e, t, e.J))
1620
+ if (n = String(n), n === "length" && K(e, t, e.J))
1625
1621
  return !0;
1626
- if (H(e, t, e.J)) {
1622
+ if (K(e, t, e.J)) {
1627
1623
  var r = Ye(n);
1628
1624
  if (!isNaN(r) && r < String(t).length)
1629
1625
  return !0;
@@ -1631,18 +1627,18 @@ function ht(e, t, n) {
1631
1627
  do
1632
1628
  if (t.h && n in t.h)
1633
1629
  return !0;
1634
- while (t = pe(e, t));
1630
+ while (t = he(e, t));
1635
1631
  return !1;
1636
1632
  }
1637
- B.g = function(e, t, n, r) {
1633
+ P.g = function(e, t, n, r) {
1638
1634
  if (this.Ka)
1639
1635
  throw Error("Setter not supported in that context");
1640
- if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
1636
+ if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof j))
1641
1637
  throw TypeError("Expecting native value or pseudo object");
1642
1638
  r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
1643
1639
  var o = !this.o || en(this).S;
1644
- if (e instanceof P) {
1645
- if (H(this, e, this.J)) {
1640
+ if (e instanceof j) {
1641
+ if (K(this, e, this.J)) {
1646
1642
  var i = Ye(t);
1647
1643
  if (t === "length" || !isNaN(i) && i < String(e).length) {
1648
1644
  o && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
@@ -1656,7 +1652,7 @@ B.g = function(e, t, n, r) {
1656
1652
  return;
1657
1653
  n = r.value;
1658
1654
  }
1659
- if (n = zt(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < i)
1655
+ if (n = Jt(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < i)
1660
1656
  for (s in e.h) {
1661
1657
  var s = Ye(s);
1662
1658
  !isNaN(s) && n <= s && delete e.h[s];
@@ -1665,7 +1661,7 @@ B.g = function(e, t, n, r) {
1665
1661
  isNaN(s = Ye(t)) || (e.h.length = Math.max(i, s + 1));
1666
1662
  if (!e.preventExtensions || t in e.h)
1667
1663
  if (r) {
1668
- o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== Je && (o.value = n, delete e.V[t], delete e.Y[t]);
1664
+ o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== ze && (o.value = n, delete e.V[t], delete e.Y[t]);
1669
1665
  try {
1670
1666
  Object.defineProperty(e.h, t, o);
1671
1667
  } catch {
@@ -1673,10 +1669,10 @@ B.g = function(e, t, n, r) {
1673
1669
  }
1674
1670
  "get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
1675
1671
  } else {
1676
- if (n === Je)
1672
+ if (n === ze)
1677
1673
  throw ReferenceError("Value not specified");
1678
1674
  for (r = e; !(t in r.h); )
1679
- if (r = pe(this, r), !r) {
1675
+ if (r = he(this, r), !r) {
1680
1676
  r = e;
1681
1677
  break;
1682
1678
  }
@@ -1696,13 +1692,13 @@ B.g = function(e, t, n, r) {
1696
1692
  } else
1697
1693
  o && w(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
1698
1694
  };
1699
- B.g.ac = function() {
1695
+ P.g.ac = function() {
1700
1696
  throw Error("Placeholder getter");
1701
1697
  };
1702
- B.g.bc = function() {
1698
+ P.g.bc = function() {
1703
1699
  throw Error("Placeholder setter");
1704
1700
  };
1705
- function $(e, t, n, r) {
1701
+ function H(e, t, n, r) {
1706
1702
  e.g(t.h.prototype, n, e.i(r, !1), v);
1707
1703
  }
1708
1704
  function Ge(e, t, n, r) {
@@ -1721,7 +1717,7 @@ function $t(e, t, n) {
1721
1717
  var o = t.body && t.body[0];
1722
1718
  o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
1723
1719
  }
1724
- return o = e.s(null), r = new Sr(n, r, o), n || jo(e, r.object), ze(e, t, r), r;
1720
+ return o = e.s(null), r = new Sr(n, r, o), n || jo(e, r.object), Je(e, t, r), r;
1725
1721
  }
1726
1722
  function tn(e, t, n) {
1727
1723
  if (!t)
@@ -1754,7 +1750,7 @@ function vr(e, t, n) {
1754
1750
  return e.g(r.object, t, n);
1755
1751
  w(e, e.pb, t + " is not defined");
1756
1752
  }
1757
- function ze(e, t, n) {
1753
+ function Je(e, t, n) {
1758
1754
  if (t.jb)
1759
1755
  var r = t.jb;
1760
1756
  else {
@@ -1787,12 +1783,12 @@ function ze(e, t, n) {
1787
1783
  if (Array.isArray(u)) {
1788
1784
  for (o = 0; o < u.length; o++)
1789
1785
  if (u[o] && u[o].constructor === i) {
1790
- var p = ze(e, u[o], n);
1786
+ var p = Je(e, u[o], n);
1791
1787
  for (s in p)
1792
1788
  r[s] = p[s];
1793
1789
  }
1794
1790
  } else if (u.constructor === i)
1795
- for (s in p = ze(e, u, n), p)
1791
+ for (s in p = Je(e, u, n), p)
1796
1792
  r[s] = p[s];
1797
1793
  }
1798
1794
  }
@@ -1803,7 +1799,7 @@ function ze(e, t, n) {
1803
1799
  r[s] === !0 ? e.g(n.object, s, void 0, Kn) : e.g(n.object, s, Qt(e, r[s], n), Kn);
1804
1800
  return r;
1805
1801
  }
1806
- function he(e) {
1802
+ function me(e) {
1807
1803
  return e.o[e.o.length - 1].isConstructor;
1808
1804
  }
1809
1805
  function rn(e, t) {
@@ -1813,7 +1809,7 @@ function on(e, t, n) {
1813
1809
  return t[0] === Ne ? vr(e, t[1], n) : e.g(t[0], t[1], n);
1814
1810
  }
1815
1811
  function w(e, t, n) {
1816
- throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), _t(e, t, n)), qe(e, 4, t), gr) : n === void 0 ? t : n;
1812
+ throw e.N ? (n !== void 0 && t instanceof j && (t = e.Aa(t), _t(e, t, n)), qe(e, 4, t), gr) : n === void 0 ? t : n;
1817
1813
  }
1818
1814
  function qe(e, t, n, r) {
1819
1815
  if (t === 0)
@@ -1851,7 +1847,7 @@ function qe(e, t, n, r) {
1851
1847
  } else if (t === 2 && (r ? i.labels && i.labels.indexOf(r) !== -1 : i.W))
1852
1848
  return;
1853
1849
  }
1854
- throw H(e, n, e.D) ? (t = {
1850
+ throw K(e, n, e.D) ? (t = {
1855
1851
  EvalError,
1856
1852
  RangeError,
1857
1853
  ReferenceError,
@@ -1860,34 +1856,34 @@ function qe(e, t, n, r) {
1860
1856
  URIError
1861
1857
  }, r = String(e.G(n, "name")), o = e.G(n, "message").valueOf(), t = (t[r] || Error)(o), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
1862
1858
  }
1863
- function z(e, t) {
1859
+ function J(e, t) {
1864
1860
  switch (t.type) {
1865
1861
  case "ArrayExpression":
1866
1862
  return "[...]";
1867
1863
  case "BinaryExpression":
1868
1864
  case "LogicalExpression":
1869
- return z(e, t.left) + " " + t.operator + " " + z(e, t.right);
1865
+ return J(e, t.left) + " " + t.operator + " " + J(e, t.right);
1870
1866
  case "CallExpression":
1871
- return z(e, t.callee) + "(...)";
1867
+ return J(e, t.callee) + "(...)";
1872
1868
  case "ConditionalExpression":
1873
- return z(e, t.test) + " ? " + z(e, t.da) + " : " + z(e, t.alternate);
1869
+ return J(e, t.test) + " ? " + J(e, t.da) + " : " + J(e, t.alternate);
1874
1870
  case "Identifier":
1875
1871
  return t.name;
1876
1872
  case "Literal":
1877
1873
  return t.raw;
1878
1874
  case "MemberExpression":
1879
- var n = z(e, t.object);
1880
- return e = z(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
1875
+ var n = J(e, t.object);
1876
+ return e = J(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
1881
1877
  case "NewExpression":
1882
- return "new " + z(e, t.callee) + "(...)";
1878
+ return "new " + J(e, t.callee) + "(...)";
1883
1879
  case "ObjectExpression":
1884
1880
  return "{...}";
1885
1881
  case "ThisExpression":
1886
1882
  return "this";
1887
1883
  case "UnaryExpression":
1888
- return t.operator + " " + z(e, t.K);
1884
+ return t.operator + " " + J(e, t.K);
1889
1885
  case "UpdateExpression":
1890
- return n = z(e, t.K), t.prefix ? t.operator + n : n + t.operator;
1886
+ return n = J(e, t.K), t.prefix ? t.operator + n : n + t.operator;
1891
1887
  }
1892
1888
  return "???";
1893
1889
  }
@@ -1895,7 +1891,7 @@ function Xn(e, t, n) {
1895
1891
  var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
1896
1892
  n = Math.max(Number(o.shift() || 0), 0);
1897
1893
  var s = e.ya();
1898
- if (i instanceof P && i.H === "Function") {
1894
+ if (i instanceof j && i.H === "Function") {
1899
1895
  var u = i;
1900
1896
  s.type = "CallExpression", r = r.scope;
1901
1897
  } else {
@@ -1935,15 +1931,15 @@ function an(e, t, n, r) {
1935
1931
  return o.type = "CallExpression", e = new S(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
1936
1932
  }
1937
1933
  function Lt(e, t) {
1938
- return t == null ? e.Na : t instanceof P ? t : (e = e.s(pe(e, t)), e.data = t, e);
1934
+ return t == null ? e.Na : t instanceof j ? t : (e = e.s(he(e, t)), e.data = t, e);
1939
1935
  }
1940
- B.Xb = function() {
1936
+ P.Xb = function() {
1941
1937
  return this.N;
1942
1938
  };
1943
- B.Yb = function() {
1939
+ P.Yb = function() {
1944
1940
  return this.o;
1945
1941
  };
1946
- B.ec = function(e) {
1942
+ P.ec = function(e) {
1947
1943
  this.o = e;
1948
1944
  };
1949
1945
  function S(e, t) {
@@ -1952,17 +1948,17 @@ function S(e, t) {
1952
1948
  function Sr(e, t, n) {
1953
1949
  this.Va = e, this.S = t, this.object = n;
1954
1950
  }
1955
- function P(e) {
1951
+ function j(e) {
1956
1952
  this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
1957
1953
  }
1958
- B = P.prototype;
1959
- B.xa = null;
1960
- B.H = "Object";
1961
- B.data = null;
1962
- B.toString = function() {
1954
+ P = j.prototype;
1955
+ P.xa = null;
1956
+ P.H = "Object";
1957
+ P.data = null;
1958
+ P.toString = function() {
1963
1959
  if (!Xe)
1964
1960
  return "[object Interpreter.Object]";
1965
- if (!(this instanceof P))
1961
+ if (!(this instanceof j))
1966
1962
  return String(this);
1967
1963
  if (this.H === "Array") {
1968
1964
  var e = Gn;
@@ -1972,7 +1968,7 @@ B.toString = function() {
1972
1968
  1024 < n && (n = 1e3, r = !0);
1973
1969
  for (var o = 0; o < n; o++) {
1974
1970
  var i = this.h[o];
1975
- t[o] = i instanceof P && e.indexOf(i) !== -1 ? "..." : i;
1971
+ t[o] = i instanceof j && e.indexOf(i) !== -1 ? "..." : i;
1976
1972
  }
1977
1973
  r && t.push("...");
1978
1974
  } finally {
@@ -2007,7 +2003,7 @@ B.toString = function() {
2007
2003
  }
2008
2004
  return this.data !== null ? String(this.data) : "[object " + this.H + "]";
2009
2005
  };
2010
- B.valueOf = function() {
2006
+ P.valueOf = function() {
2011
2007
  return !Xe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
2012
2008
  };
2013
2009
  function _o(e, t, n, r, o) {
@@ -2144,10 +2140,10 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
2144
2140
  n = r >>> t;
2145
2141
  break;
2146
2142
  case "in":
2147
- t instanceof P || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = ht(this, t, r);
2143
+ t instanceof j || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = ht(this, t, r);
2148
2144
  break;
2149
2145
  case "instanceof":
2150
- H(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof P ? H(this, r, t) : !1;
2146
+ K(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof j ? K(this, r, t) : !1;
2151
2147
  break;
2152
2148
  default:
2153
2149
  throw SyntaxError("Unknown binary operator: " + n.operator);
@@ -2184,7 +2180,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
2184
2180
  if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
2185
2181
  return new S(n.arguments[t.A++], t.scope);
2186
2182
  if (n.type === "NewExpression") {
2187
- if (o instanceof P && !o.Ab || w(this, this.j, z(this, n.callee) + " is not a constructor"), o === this.qa)
2183
+ if (o instanceof j && !o.Ab || w(this, this.j, J(this, n.callee) + " is not a constructor"), o === this.qa)
2188
2184
  t.B = Pe(this);
2189
2185
  else {
2190
2186
  var i = o.h.prototype;
@@ -2197,12 +2193,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
2197
2193
  if (t.eb)
2198
2194
  e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
2199
2195
  else {
2200
- if (t.eb = !0, o instanceof P || w(this, this.j, z(this, n.callee) + " is not a function"), e = o.node) {
2196
+ if (t.eb = !0, o instanceof j || w(this, this.j, J(this, n.callee) + " is not a function"), e = o.node) {
2201
2197
  for (n = $t(this, e.body, o.Va), r = Pe(this), o = 0; o < t.F.length; o++)
2202
2198
  this.g(r, o, t.F[o]);
2203
2199
  for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
2204
2200
  this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
2205
- return n.S || (t.B = Lt(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new S(e.body, n);
2201
+ return n.S || (t.B = Lt(this, t.B)), this.g(n.object, "this", t.B, zt), t.value = void 0, new S(e.body, n);
2206
2202
  }
2207
2203
  if (o.eval)
2208
2204
  if (o = t.F[0], typeof o != "string")
@@ -2213,7 +2209,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
2213
2209
  } catch (u) {
2214
2210
  w(this, this.T, "Invalid code: " + u.message);
2215
2211
  }
2216
- return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, pt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : ze(this, r, n), this.value = void 0, new S(o, n);
2212
+ return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, pt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : Je(this, r, n), this.value = void 0, new S(o, n);
2217
2213
  }
2218
2214
  else if (o.Ta)
2219
2215
  t.scope.S || (t.B = Lt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
@@ -2223,7 +2219,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
2223
2219
  t.value = u, s.za = !1;
2224
2220
  }), this.za = !0, t.scope.S || (t.B = Lt(this, t.B)), o.Za.apply(t.B, r);
2225
2221
  } else
2226
- w(this, this.j, z(this, n.callee) + " is not callable");
2222
+ w(this, this.j, J(this, n.callee) + " is not callable");
2227
2223
  }
2228
2224
  };
2229
2225
  h.prototype.stepConditionalExpression = function(e, t, n) {
@@ -2275,7 +2271,7 @@ h.prototype.stepForInStatement = function(e, t, n) {
2275
2271
  if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
2276
2272
  e:
2277
2273
  for (; ; ) {
2278
- if (t.u instanceof P)
2274
+ if (t.u instanceof j)
2279
2275
  for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
2280
2276
  var r = t.wa.shift();
2281
2277
  if (r === void 0)
@@ -2292,7 +2288,7 @@ h.prototype.stepForInStatement = function(e, t, n) {
2292
2288
  break e;
2293
2289
  }
2294
2290
  }
2295
- if (t.u = pe(this, t.u), t.wa = null, t.u === null) {
2291
+ if (t.u = he(this, t.u), t.wa = null, t.u === null) {
2296
2292
  e.pop();
2297
2293
  return;
2298
2294
  }
@@ -2332,7 +2328,7 @@ h.prototype.stepFunctionDeclaration = function(e) {
2332
2328
  e.pop();
2333
2329
  };
2334
2330
  h.prototype.stepFunctionExpression = function(e, t, n) {
2335
- e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = tn(this, e)), t.value = Qt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Jt);
2331
+ e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = tn(this, e)), t.value = Qt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, zt);
2336
2332
  };
2337
2333
  h.prototype.stepIdentifier = function(e, t, n) {
2338
2334
  if (e.pop(), t.sa)
@@ -2399,7 +2395,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
2399
2395
  return t.Pa = i, new S(o.value, t.scope);
2400
2396
  }
2401
2397
  for (s in t.Ja)
2402
- n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, Je, {
2398
+ n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, ze, {
2403
2399
  configurable: !0,
2404
2400
  enumerable: !0,
2405
2401
  get: n.get,
@@ -2560,7 +2556,7 @@ h.prototype.pseudoToNative = h.prototype.R;
2560
2556
  h.prototype.getGlobalScope = h.prototype.Xb;
2561
2557
  h.prototype.getStateStack = h.prototype.Yb;
2562
2558
  h.prototype.setStateStack = h.prototype.ec;
2563
- h.VALUE_IN_DESCRIPTOR = Je;
2559
+ h.VALUE_IN_DESCRIPTOR = ze;
2564
2560
  const Ho = (e) => e.split(`
2565
2561
  `).map((t) => {
2566
2562
  const n = t.trim();
@@ -2574,7 +2570,7 @@ const Ho = (e) => e.split(`
2574
2570
  ${u}
2575
2571
  `;
2576
2572
  }).filter(Boolean).join(`
2577
- `), Jn = (e) => e + "JSON", Ko = ({
2573
+ `), zn = (e) => e + "JSON", Ko = ({
2578
2574
  builder: e,
2579
2575
  context: t,
2580
2576
  event: n,
@@ -2591,13 +2587,13 @@ const Ho = (e) => e.split(`
2591
2587
  context: t,
2592
2588
  event: n,
2593
2589
  state: u
2594
- }), b = p.map(([j]) => {
2595
- const R = Jn(j);
2596
- return `var ${j} = ${R} === undefined ? undefined : JSON.parse(${R});`;
2590
+ }), b = p.map(([W]) => {
2591
+ const k = zn(W);
2592
+ return `var ${W} = ${k} === undefined ? undefined : JSON.parse(${k});`;
2597
2593
  }).join(`
2598
2594
  `), x = Ho(s);
2599
2595
  if (x === "") {
2600
- Z.warn("Skipping evaluation of empty code block.");
2596
+ te.warn("Skipping evaluation of empty code block.");
2601
2597
  return;
2602
2598
  }
2603
2599
  const m = `
@@ -2607,36 +2603,28 @@ function theFunction() {
2607
2603
  ${x}
2608
2604
  }
2609
2605
  theFunction();
2610
- `, O = (j, R) => {
2611
- const Y = mr(u, j, R);
2612
- i == null || i(Y);
2613
- }, N = function(j, R) {
2614
- p.forEach(([Y, T]) => {
2615
- const g = JSON.stringify(T);
2616
- j.setProperty(R, Jn(Y), g);
2617
- }), j.setProperty(R, "setRootState", j.createNativeFunction(O));
2618
- };
2619
- try {
2620
- const j = new h(m, N);
2621
- return j.run(), j.pseudoToNative(j.value);
2622
- } catch (j) {
2623
- Z.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
2624
- e: j
2625
- });
2626
- return;
2627
- }
2628
- }, ie = (e) => e != null;
2606
+ `, O = (W, k) => {
2607
+ const g = mr(u, W, k);
2608
+ i == null || i(g);
2609
+ }, R = function(W, k) {
2610
+ p.forEach(([g, F]) => {
2611
+ const U = JSON.stringify(F);
2612
+ W.setProperty(k, zn(g), U);
2613
+ }), W.setProperty(k, "setRootState", W.createNativeFunction(O));
2614
+ }, B = new h(m, R);
2615
+ return B.run(), B.pseudoToNative(B.value);
2616
+ }, ae = (e) => e != null;
2629
2617
  function Go() {
2630
2618
  var e;
2631
- return typeof process < "u" && ie((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
2619
+ return typeof process < "u" && ae((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
2632
2620
  }
2633
2621
  const Xo = () => {
2634
2622
  var r;
2635
2623
  if (!Go())
2636
2624
  return !1;
2637
2625
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
2638
- return e && t && !n ? (Z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
2639
- }, Yo = (e) => G() || Xo() ? To(e) : Ko(e), sn = class Oe {
2626
+ return e && t && !n ? (te.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
2627
+ }, Yo = (e) => X() || Xo() ? To(e) : Ko(e), sn = class Oe {
2640
2628
  static getCacheKey(t) {
2641
2629
  return JSON.stringify({
2642
2630
  ...t,
@@ -2693,14 +2681,14 @@ function ln({
2693
2681
  }
2694
2682
  return b;
2695
2683
  } catch (b) {
2696
- Z.error("Failed code evaluation: " + b.message, {
2684
+ te.error("Failed code evaluation: " + b.message, {
2697
2685
  code: e
2698
2686
  });
2699
2687
  return;
2700
2688
  }
2701
2689
  }
2702
2690
  const mt = (e) => JSON.parse(JSON.stringify(e));
2703
- const Jo = ({
2691
+ const zo = ({
2704
2692
  block: e,
2705
2693
  context: t,
2706
2694
  localState: n,
@@ -2731,7 +2719,7 @@ const Jo = ({
2731
2719
  }
2732
2720
  return s;
2733
2721
  };
2734
- function dt({
2722
+ function ft({
2735
2723
  block: e,
2736
2724
  context: t,
2737
2725
  shouldEvaluateBindings: n,
@@ -2740,7 +2728,7 @@ function dt({
2740
2728
  rootSetState: i
2741
2729
  }) {
2742
2730
  const s = e;
2743
- return n ? Jo({
2731
+ return n ? zo({
2744
2732
  block: s,
2745
2733
  localState: r,
2746
2734
  rootState: o,
@@ -2751,14 +2739,14 @@ function dt({
2751
2739
  const cn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", wr = (e) => Object.entries(e).map(([n, r]) => {
2752
2740
  if (typeof r == "string")
2753
2741
  return `${cn(n)}: ${r};`;
2754
- }).filter(ie), zo = (e) => wr(e).join(`
2742
+ }).filter(ae), Jo = (e) => wr(e).join(`
2755
2743
  `), ut = ({
2756
2744
  mediaQuery: e,
2757
2745
  className: t,
2758
2746
  styles: n
2759
2747
  }) => {
2760
2748
  const r = `.${t} {
2761
- ${zo(n)}
2749
+ ${Jo(n)}
2762
2750
  }`;
2763
2751
  return e ? `${e} {
2764
2752
  ${r}
@@ -2778,7 +2766,7 @@ const Zo = ({
2778
2766
  block: e
2779
2767
  }));
2780
2768
  function xr(e) {
2781
- switch (me) {
2769
+ switch (Z) {
2782
2770
  case "svelte":
2783
2771
  case "vue":
2784
2772
  case "solid":
@@ -2797,7 +2785,7 @@ const Qo = ({
2797
2785
  registeredComponents: n
2798
2786
  }) => {
2799
2787
  var i;
2800
- const r = (i = dt({
2788
+ const r = (i = ft({
2801
2789
  block: e,
2802
2790
  localState: t.localState,
2803
2791
  rootState: t.rootState,
@@ -2847,7 +2835,15 @@ const Qo = ({
2847
2835
  },
2848
2836
  block: r
2849
2837
  }));
2850
- }, ti = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), ni = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), kr = {
2838
+ }, ti = (e, t) => e && (e.isRSC && Z === "rsc" || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
2839
+ builderLinkComponent: t
2840
+ } : {}, ni = (e, t) => e && (e.isRSC && Z === "rsc" || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
2841
+ builderComponents: t
2842
+ } : {}, ri = (e, t) => e && (e.isRSC && Z === "rsc" || Z === "reactNative" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Image", "Video"].includes(e.name)) ? {
2843
+ builderBlock: t
2844
+ } : {}, oi = (e, t) => e && (e.isRSC && Z === "rsc" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Slot"].includes(e.name)) ? {
2845
+ builderContext: t
2846
+ } : {}, kr = {
2851
2847
  small: {
2852
2848
  min: 320,
2853
2849
  default: 321,
@@ -2863,7 +2859,7 @@ const Qo = ({
2863
2859
  default: 991,
2864
2860
  max: 1200
2865
2861
  }
2866
- }, zn = (e, t = kr) => `@media (max-width: ${t[e].max}px)`, Cr = ({
2862
+ }, Jn = (e, t = kr) => `@media (max-width: ${t[e].max}px)`, Cr = ({
2867
2863
  small: e,
2868
2864
  medium: t
2869
2865
  }) => {
@@ -2891,7 +2887,7 @@ const Qo = ({
2891
2887
  }, n;
2892
2888
  };
2893
2889
  function gt(e) {
2894
- return /* @__PURE__ */ I(
2890
+ return /* @__PURE__ */ T(
2895
2891
  "style",
2896
2892
  {
2897
2893
  dangerouslySetInnerHTML: { __html: e.styles },
@@ -2899,9 +2895,9 @@ function gt(e) {
2899
2895
  }
2900
2896
  );
2901
2897
  }
2902
- function ri(e) {
2898
+ function ii(e) {
2903
2899
  const t = function() {
2904
- const o = dt({
2900
+ const o = ft({
2905
2901
  block: e.block,
2906
2902
  localState: e.context.localState,
2907
2903
  rootState: e.context.rootState,
@@ -2909,10 +2905,10 @@ function ri(e) {
2909
2905
  context: e.context.context,
2910
2906
  shouldEvaluateBindings: !0
2911
2907
  });
2912
- return ie(o.hide) ? !o.hide : ie(o.show) ? o.show : !0;
2908
+ return ae(o.hide) ? !o.hide : ae(o.show) ? o.show : !0;
2913
2909
  }, n = function() {
2914
- var T, g, U;
2915
- const o = dt({
2910
+ var k, g, F;
2911
+ const o = ft({
2916
2912
  block: e.block,
2917
2913
  localState: e.context.localState,
2918
2914
  rootState: e.context.rootState,
@@ -2920,55 +2916,55 @@ function ri(e) {
2920
2916
  context: e.context.context,
2921
2917
  shouldEvaluateBindings: !0
2922
2918
  }), i = o.responsiveStyles, s = e.context.content, u = Cr(
2923
- ((T = s == null ? void 0 : s.meta) == null ? void 0 : T.breakpoints) || {}
2919
+ ((k = s == null ? void 0 : s.meta) == null ? void 0 : k.breakpoints) || {}
2924
2920
  ), p = i == null ? void 0 : i.large, b = i == null ? void 0 : i.medium, x = i == null ? void 0 : i.small, m = o.id;
2925
2921
  if (!m)
2926
2922
  return "";
2927
2923
  const O = p ? ut({
2928
2924
  className: m,
2929
2925
  styles: p
2930
- }) : "", N = b ? ut({
2926
+ }) : "", R = b ? ut({
2931
2927
  className: m,
2932
2928
  styles: b,
2933
- mediaQuery: zn(
2929
+ mediaQuery: Jn(
2934
2930
  "medium",
2935
2931
  u
2936
2932
  )
2937
- }) : "", j = x ? ut({
2933
+ }) : "", B = x ? ut({
2938
2934
  className: m,
2939
2935
  styles: x,
2940
- mediaQuery: zn(
2936
+ mediaQuery: Jn(
2941
2937
  "small",
2942
2938
  u
2943
2939
  )
2944
- }) : "", R = o.animations && o.animations.find((F) => F.trigger === "hover");
2945
- let Y = "";
2946
- if (R) {
2947
- const F = ((U = (g = R.steps) == null ? void 0 : g[1]) == null ? void 0 : U.styles) || {};
2948
- Y = ut({
2940
+ }) : "", N = o.animations && o.animations.find((U) => U.trigger === "hover");
2941
+ let W = "";
2942
+ if (N) {
2943
+ const U = ((F = (g = N.steps) == null ? void 0 : g[1]) == null ? void 0 : F.styles) || {};
2944
+ W = ut({
2949
2945
  className: `${m}:hover`,
2950
2946
  styles: {
2951
- ...F,
2952
- transition: `all ${R.duration}s ${cn(
2953
- R.easing
2947
+ ...U,
2948
+ transition: `all ${N.duration}s ${cn(
2949
+ N.easing
2954
2950
  )}`,
2955
- transitionDelay: R.delay ? `${R.delay}s` : "0s"
2951
+ transitionDelay: N.delay ? `${N.delay}s` : "0s"
2956
2952
  }
2957
2953
  }) || "";
2958
2954
  }
2959
2955
  return [
2960
2956
  O,
2961
- N,
2962
- j,
2963
- Y
2957
+ R,
2958
+ B,
2959
+ W
2964
2960
  ].join(" ");
2965
2961
  };
2966
- return /* @__PURE__ */ I(ee, { children: n() && t() ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(gt, { id: "builderio-block", styles: n() }) }) : null });
2962
+ return /* @__PURE__ */ T(ee, { children: n() && t() ? /* @__PURE__ */ T(ee, { children: /* @__PURE__ */ T(gt, { id: "builderio-block", styles: n() }) }) : null });
2967
2963
  }
2968
- function oi(e) {
2964
+ function ai(e) {
2969
2965
  return e.charAt(0).toUpperCase() + e.slice(1);
2970
2966
  }
2971
- const ii = (e) => `on${oi(e)}`, ai = (e, t) => (n) => ln({
2967
+ const si = (e) => `on${ai(e)}`, li = (e, t) => (n) => ln({
2972
2968
  code: e,
2973
2969
  context: t.context,
2974
2970
  localState: t.localState,
@@ -2978,15 +2974,15 @@ const ii = (e) => `on${oi(e)}`, ai = (e, t) => (n) => ln({
2978
2974
  isExpression: !1,
2979
2975
  enableCache: !0
2980
2976
  });
2981
- function za(e) {
2977
+ function Za(e) {
2982
2978
  const t = {}, n = e.block.actions ?? {};
2983
2979
  for (const r in n) {
2984
2980
  if (!n.hasOwnProperty(r))
2985
2981
  continue;
2986
2982
  const o = n[r];
2987
- let i = ii(r);
2983
+ let i = si(r);
2988
2984
  if (e.stripPrefix)
2989
- switch (me) {
2985
+ switch (Z) {
2990
2986
  case "vue":
2991
2987
  i = i.replace("v-on:", "");
2992
2988
  break;
@@ -2994,25 +2990,25 @@ function za(e) {
2994
2990
  i = i.replace("on:", "");
2995
2991
  break;
2996
2992
  }
2997
- t[i] = ai(o, e);
2993
+ t[i] = li(o, e);
2998
2994
  }
2999
2995
  return t;
3000
2996
  }
3001
- function si({
2997
+ function ci({
3002
2998
  properties: e
3003
2999
  }) {
3004
3000
  return e;
3005
3001
  }
3006
- const li = (e) => ({
3002
+ const ui = (e) => ({
3007
3003
  href: e.href
3008
3004
  });
3009
- function ci({
3005
+ function di({
3010
3006
  block: e,
3011
3007
  context: t
3012
3008
  }) {
3013
3009
  var r;
3014
3010
  const n = {
3015
- ...li(e),
3011
+ ...ui(e),
3016
3012
  ...e.properties,
3017
3013
  "builder-id": e.id,
3018
3014
  style: Zo({
@@ -3021,13 +3017,13 @@ function ci({
3021
3017
  }),
3022
3018
  [Yt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
3023
3019
  };
3024
- return si({
3020
+ return ci({
3025
3021
  properties: n,
3026
3022
  context: t,
3027
3023
  block: e
3028
3024
  });
3029
3025
  }
3030
- const ui = ({
3026
+ const fi = ({
3031
3027
  componentOptions: e,
3032
3028
  builderBlock: t,
3033
3029
  context: n,
@@ -3043,7 +3039,7 @@ const ui = ({
3043
3039
  * component itself directly. Otherwise, they are provided to the wrapper element.
3044
3040
  */
3045
3041
  ...o ? {
3046
- attributes: ci({
3042
+ attributes: di({
3047
3043
  block: t,
3048
3044
  context: s
3049
3045
  })
@@ -3060,10 +3056,10 @@ const ui = ({
3060
3056
  function qn(e) {
3061
3057
  var n;
3062
3058
  const t = e.isInteractive ? io : e.componentRef;
3063
- return /* @__PURE__ */ I(ee, { children: e.componentRef ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(
3059
+ return /* @__PURE__ */ T(ee, { children: e.componentRef ? /* @__PURE__ */ T(ee, { children: /* @__PURE__ */ T(
3064
3060
  t,
3065
3061
  {
3066
- ...ui({
3062
+ ...fi({
3067
3063
  componentOptions: e.componentOptions,
3068
3064
  builderBlock: e.builderBlock,
3069
3065
  context: e.context,
@@ -3073,7 +3069,7 @@ function qn(e) {
3073
3069
  isInteractive: e.isInteractive,
3074
3070
  contextValue: e.context
3075
3071
  }),
3076
- children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ I(
3072
+ children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ T(
3077
3073
  yt,
3078
3074
  {
3079
3075
  block: r,
@@ -3086,9 +3082,9 @@ function qn(e) {
3086
3082
  }
3087
3083
  ) }) : null });
3088
3084
  }
3089
- function fi(e) {
3085
+ function pi(e) {
3090
3086
  const t = e.repeatContext;
3091
- return /* @__PURE__ */ I(
3087
+ return /* @__PURE__ */ T(
3092
3088
  yt,
3093
3089
  {
3094
3090
  block: e.block,
@@ -3113,7 +3109,7 @@ function yt(e) {
3113
3109
  });
3114
3110
  }, r = function() {
3115
3111
  var O;
3116
- return (O = e.block.repeat) != null && O.collection ? e.block : dt({
3112
+ return (O = e.block.repeat) != null && O.collection ? e.block : ft({
3117
3113
  block: e.block,
3118
3114
  localState: e.context.localState,
3119
3115
  rootState: e.context.rootState,
@@ -3122,43 +3118,43 @@ function yt(e) {
3122
3118
  shouldEvaluateBindings: !0
3123
3119
  });
3124
3120
  }, o = function() {
3125
- var N;
3126
- return e.block.tagName === "a" || ((N = r().properties) == null ? void 0 : N.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
3121
+ var R;
3122
+ return e.block.tagName === "a" || ((R = r().properties) == null ? void 0 : R.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
3127
3123
  }, i = function() {
3128
- var j, R;
3129
- if ((j = e.block.repeat) != null && j.collection)
3130
- return !!((R = n()) != null && R.length);
3124
+ var B, N;
3125
+ if ((B = e.block.repeat) != null && B.collection)
3126
+ return !!((N = n()) != null && N.length);
3131
3127
  const O = "hide" in r() ? r().hide : !1;
3132
3128
  return ("show" in r() ? r().show : !0) && !O;
3133
3129
  }, s = function() {
3134
- var N;
3135
- return !((N = t()) != null && N.component) && !n() ? r().children ?? [] : [];
3130
+ var R;
3131
+ return !((R = t()) != null && R.component) && !n() ? r().children ?? [] : [];
3136
3132
  }, u = function() {
3137
- var O, N, j;
3133
+ var O, R, B;
3138
3134
  return {
3139
3135
  blockChildren: r().children ?? [],
3140
3136
  componentRef: (O = t()) == null ? void 0 : O.component,
3141
3137
  componentOptions: {
3142
3138
  ...So(r()),
3143
- builderContext: e.context,
3144
- ...ti(t()) ? {
3145
- builderLinkComponent: e.linkComponent
3146
- } : {},
3147
- ...ni(t()) ? {
3148
- builderComponents: e.registeredComponents
3149
- } : {}
3139
+ ...ri(t(), r()),
3140
+ ...oi(t(), e.context),
3141
+ ...ti(t(), e.linkComponent),
3142
+ ...ni(
3143
+ t(),
3144
+ e.registeredComponents
3145
+ )
3150
3146
  },
3151
3147
  context: e.context,
3152
3148
  linkComponent: e.linkComponent,
3153
3149
  registeredComponents: e.registeredComponents,
3154
3150
  builderBlock: r(),
3155
- includeBlockProps: ((N = t()) == null ? void 0 : N.noWrap) === !0,
3156
- isInteractive: !((j = t()) != null && j.isRSC)
3151
+ includeBlockProps: ((R = t()) == null ? void 0 : R.noWrap) === !0,
3152
+ isInteractive: !((B = t()) != null && B.isRSC)
3157
3153
  };
3158
3154
  };
3159
- return /* @__PURE__ */ I(ee, { children: i() ? /* @__PURE__ */ xe(ee, { children: [
3160
- /* @__PURE__ */ I(ri, { block: e.block, context: e.context }),
3161
- (p = t()) != null && p.noWrap ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(
3155
+ return /* @__PURE__ */ T(ee, { children: i() ? /* @__PURE__ */ xe(ee, { children: [
3156
+ /* @__PURE__ */ T(ii, { block: e.block, context: e.context }),
3157
+ (p = t()) != null && p.noWrap ? /* @__PURE__ */ T(ee, { children: /* @__PURE__ */ T(
3162
3158
  qn,
3163
3159
  {
3164
3160
  componentRef: u().componentRef,
@@ -3171,8 +3167,8 @@ function yt(e) {
3171
3167
  includeBlockProps: u().includeBlockProps,
3172
3168
  isInteractive: u().isInteractive
3173
3169
  }
3174
- ) }) : /* @__PURE__ */ I(ee, { children: n() ? /* @__PURE__ */ I(ee, { children: (x = n()) == null ? void 0 : x.map((m, O) => /* @__PURE__ */ I(
3175
- fi,
3170
+ ) }) : /* @__PURE__ */ T(ee, { children: n() ? /* @__PURE__ */ T(ee, { children: (x = n()) == null ? void 0 : x.map((m, O) => /* @__PURE__ */ T(
3171
+ pi,
3176
3172
  {
3177
3173
  repeatContext: m.context,
3178
3174
  block: m.block,
@@ -3186,9 +3182,8 @@ function yt(e) {
3186
3182
  Wrapper: o(),
3187
3183
  block: r(),
3188
3184
  context: e.context,
3189
- linkComponent: e.linkComponent,
3190
3185
  children: [
3191
- /* @__PURE__ */ I(
3186
+ /* @__PURE__ */ T(
3192
3187
  qn,
3193
3188
  {
3194
3189
  componentRef: u().componentRef,
@@ -3202,7 +3197,7 @@ function yt(e) {
3202
3197
  isInteractive: u().isInteractive
3203
3198
  }
3204
3199
  ),
3205
- (b = s()) == null ? void 0 : b.map((m) => /* @__PURE__ */ I(
3200
+ (b = s()) == null ? void 0 : b.map((m) => /* @__PURE__ */ T(
3206
3201
  yt,
3207
3202
  {
3208
3203
  block: m,
@@ -3219,7 +3214,7 @@ function yt(e) {
3219
3214
  }
3220
3215
  function un(e) {
3221
3216
  var t, n, r;
3222
- return /* @__PURE__ */ I(
3217
+ return /* @__PURE__ */ T(
3223
3218
  so,
3224
3219
  {
3225
3220
  blocks: e.blocks,
@@ -3228,7 +3223,7 @@ function un(e) {
3228
3223
  styleProp: e.styleProp,
3229
3224
  BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
3230
3225
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
3231
- children: e.blocks ? /* @__PURE__ */ I(ee, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ I(
3226
+ children: e.blocks ? /* @__PURE__ */ T(ee, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ T(
3232
3227
  yt,
3233
3228
  {
3234
3229
  block: o,
@@ -3241,27 +3236,27 @@ function un(e) {
3241
3236
  }
3242
3237
  );
3243
3238
  }
3244
- const di = (e) => `builder-columns ${e}-breakpoints`;
3245
- function pi(e) {
3246
- var R, Y;
3239
+ const hi = (e) => `builder-columns ${e}-breakpoints`;
3240
+ function mi(e) {
3241
+ var N, W;
3247
3242
  const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(g) {
3248
3243
  return g.link ? e.builderLinkComponent || "a" : "div";
3249
3244
  }, i = function(g) {
3250
- var U;
3251
- return ((U = n[g]) == null ? void 0 : U.width) || 100 / n.length;
3245
+ var F;
3246
+ return ((F = n[g]) == null ? void 0 : F.width) || 100 / n.length;
3252
3247
  }, s = function(g) {
3253
- const U = t * (n.length - 1) / n.length;
3254
- return `calc(${i(g)}% - ${U}px)`;
3248
+ const F = t * (n.length - 1) / n.length;
3249
+ return `calc(${i(g)}% - ${F}px)`;
3255
3250
  }, u = function({
3256
3251
  stackedStyle: g,
3257
- desktopStyle: U
3252
+ desktopStyle: F
3258
3253
  }) {
3259
- return r === "tablet" ? g : U;
3254
+ return r === "tablet" ? g : F;
3260
3255
  }, p = function({
3261
3256
  stackedStyle: g,
3262
- desktopStyle: U
3257
+ desktopStyle: F
3263
3258
  }) {
3264
- return r === "never" ? U : g;
3259
+ return r === "never" ? F : g;
3265
3260
  }, b = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", x = function() {
3266
3261
  return {
3267
3262
  "--flex-dir": b,
@@ -3271,38 +3266,38 @@ function pi(e) {
3271
3266
  })
3272
3267
  };
3273
3268
  }, m = function(g) {
3274
- const U = g === 0 ? 0 : t, F = s(g), X = `${U}px`, V = "100%", ne = 0;
3269
+ const F = g === 0 ? 0 : t, U = s(g), Y = `${F}px`, V = "100%", re = 0;
3275
3270
  return {
3276
3271
  ...{
3277
3272
  display: "flex",
3278
3273
  flexDirection: "column",
3279
3274
  alignItems: "stretch"
3280
3275
  },
3281
- width: F,
3282
- ["marginLeft"]: X,
3276
+ width: U,
3277
+ ["marginLeft"]: Y,
3283
3278
  "--column-width-mobile": p({
3284
3279
  stackedStyle: V,
3285
- desktopStyle: F
3280
+ desktopStyle: U
3286
3281
  }),
3287
3282
  "--column-margin-left-mobile": p({
3288
- stackedStyle: ne,
3289
- desktopStyle: X
3283
+ stackedStyle: re,
3284
+ desktopStyle: Y
3290
3285
  }),
3291
3286
  "--column-width-tablet": u({
3292
3287
  stackedStyle: V,
3293
- desktopStyle: F
3288
+ desktopStyle: U
3294
3289
  }),
3295
3290
  "--column-margin-left-tablet": u({
3296
- stackedStyle: ne,
3297
- desktopStyle: X
3291
+ stackedStyle: re,
3292
+ desktopStyle: Y
3298
3293
  })
3299
3294
  };
3300
3295
  }, O = function(g) {
3301
- var F, X;
3296
+ var U, Y;
3302
3297
  return Cr(
3303
- ((X = (F = e.builderContext.content) == null ? void 0 : F.meta) == null ? void 0 : X.breakpoints) || {}
3298
+ ((Y = (U = e.builderContext.content) == null ? void 0 : U.meta) == null ? void 0 : Y.breakpoints) || {}
3304
3299
  )[g].max;
3305
- }, N = function() {
3300
+ }, R = function() {
3306
3301
  return `
3307
3302
  @media (max-width: ${O("medium")}px) {
3308
3303
  .${e.builderBlock.id}-breakpoints {
@@ -3328,30 +3323,30 @@ function pi(e) {
3328
3323
  }
3329
3324
  },
3330
3325
  `;
3331
- }, j = function(g, U) {
3326
+ }, B = function(g, F) {
3332
3327
  return {
3333
3328
  ...g.link ? {
3334
3329
  href: g.link
3335
3330
  } : {},
3336
3331
  [Yt()]: "builder-column",
3337
- style: xr(m(U))
3332
+ style: xr(m(F))
3338
3333
  };
3339
3334
  };
3340
3335
  return /* @__PURE__ */ xe(ee, { children: [
3341
3336
  /* @__PURE__ */ xe(
3342
3337
  "div",
3343
3338
  {
3344
- className: di((R = e.builderBlock) == null ? void 0 : R.id) + " div-eeca3604",
3339
+ className: hi((N = e.builderBlock) == null ? void 0 : N.id) + " div-eeca3604",
3345
3340
  style: x(),
3346
3341
  children: [
3347
- /* @__PURE__ */ I(gt, { id: "builderio-columns", styles: N() }),
3348
- (Y = e.columns) == null ? void 0 : Y.map((T, g) => /* @__PURE__ */ I(
3342
+ /* @__PURE__ */ T(gt, { id: "builderio-columns", styles: R() }),
3343
+ (W = e.columns) == null ? void 0 : W.map((k, g) => /* @__PURE__ */ T(
3349
3344
  lo,
3350
3345
  {
3351
- TagName: o(T),
3346
+ TagName: o(k),
3352
3347
  actionAttributes: {},
3353
- attributes: j(T, g),
3354
- children: /* @__PURE__ */ I(
3348
+ attributes: B(k, g),
3349
+ children: /* @__PURE__ */ T(
3355
3350
  un,
3356
3351
  {
3357
3352
  path: `component.options.columns.${g}.blocks`,
@@ -3362,7 +3357,7 @@ function pi(e) {
3362
3357
  context: e.builderContext,
3363
3358
  registeredComponents: e.builderComponents,
3364
3359
  linkComponent: e.builderLinkComponent,
3365
- blocks: T.blocks
3360
+ blocks: k.blocks
3366
3361
  }
3367
3362
  )
3368
3363
  },
@@ -3371,7 +3366,7 @@ function pi(e) {
3371
3366
  ]
3372
3367
  }
3373
3368
  ),
3374
- /* @__PURE__ */ I("style", { children: `.div-eeca3604 {
3369
+ /* @__PURE__ */ T("style", { children: `.div-eeca3604 {
3375
3370
  display: flex;
3376
3371
  line-height: normal;
3377
3372
  }` })
@@ -3380,11 +3375,11 @@ function pi(e) {
3380
3375
  function Zn(e) {
3381
3376
  return e.replace(/http(s)?:/, "");
3382
3377
  }
3383
- function hi(e = "", t, n) {
3378
+ function gi(e = "", t, n) {
3384
3379
  const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
3385
3380
  return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
3386
3381
  }
3387
- function mi(e, t) {
3382
+ function yi(e, t) {
3388
3383
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
3389
3384
  return e;
3390
3385
  if (t === "master")
@@ -3396,18 +3391,18 @@ function mi(e, t) {
3396
3391
  }
3397
3392
  return null;
3398
3393
  }
3399
- function qa(e) {
3394
+ function Qa(e) {
3400
3395
  if (!e)
3401
3396
  return e;
3402
3397
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
3403
3398
  if (e.match(/builder\.io/)) {
3404
3399
  let n = e;
3405
3400
  const r = Number(e.split("?width=")[1]);
3406
- return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${hi(e, "width", o)} ${o}w`).concat([n]).join(", ");
3401
+ return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${gi(e, "width", o)} ${o}w`).concat([n]).join(", ");
3407
3402
  }
3408
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [mi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
3403
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [yi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
3409
3404
  }
3410
- const gi = (e) => {
3405
+ const vi = (e) => {
3411
3406
  if (e === "localhost" || e === "127.0.0.1")
3412
3407
  return e;
3413
3408
  const t = e.split(".");
@@ -3420,16 +3415,16 @@ const gi = (e) => {
3420
3415
  try {
3421
3416
  return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
3422
3417
  } catch (r) {
3423
- Z.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
3418
+ te.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
3424
3419
  return;
3425
3420
  }
3426
- }, Ir = async (e) => Er(e), yi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(ie).join("; "), vi = [["secure", ""], ["SameSite", "None"]], bi = ({
3421
+ }, Ir = async (e) => Er(e), bi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(ae).join("; "), Si = [["secure", ""], ["SameSite", "None"]], wi = ({
3427
3422
  name: e,
3428
3423
  value: t,
3429
3424
  expires: n
3430
3425
  }) => {
3431
- const o = (G() ? location.protocol === "https:" : !0) ? vi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", gi(window.location.hostname)], ...o];
3432
- return yi(s);
3426
+ const o = (X() ? location.protocol === "https:" : !0) ? Si : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", vi(window.location.hostname)], ...o];
3427
+ return bi(s);
3433
3428
  }, Tr = async ({
3434
3429
  name: e,
3435
3430
  value: t,
@@ -3439,33 +3434,33 @@ const gi = (e) => {
3439
3434
  try {
3440
3435
  if (!r)
3441
3436
  return;
3442
- const o = bi({
3437
+ const o = wi({
3443
3438
  name: e,
3444
3439
  value: t,
3445
3440
  expires: n
3446
3441
  });
3447
3442
  document.cookie = o;
3448
3443
  } catch (o) {
3449
- Z.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
3444
+ te.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
3450
3445
  }
3451
- }, Si = "builder.tests", fn = (e) => `${Si}.${e}`, wi = ({
3446
+ }, xi = "builder.tests", dn = (e) => `${xi}.${e}`, ki = ({
3452
3447
  contentId: e
3453
3448
  }) => Ir({
3454
- name: fn(e),
3449
+ name: dn(e),
3455
3450
  canTrack: !0
3456
- }), xi = ({
3451
+ }), Ci = ({
3457
3452
  contentId: e
3458
3453
  }) => Er({
3459
- name: fn(e),
3454
+ name: dn(e),
3460
3455
  canTrack: !0
3461
- }), ki = ({
3456
+ }), Ei = ({
3462
3457
  contentId: e,
3463
3458
  value: t
3464
3459
  }) => Tr({
3465
- name: fn(e),
3460
+ name: dn(e),
3466
3461
  value: t,
3467
3462
  canTrack: !0
3468
- }), Ar = (e) => ie(e.id) && ie(e.variations) && Object.keys(e.variations).length > 0, Ci = ({
3463
+ }), Ar = (e) => ae(e.id) && ae(e.variations) && Object.keys(e.variations).length > 0, Ii = ({
3469
3464
  id: e,
3470
3465
  variations: t
3471
3466
  }) => {
@@ -3479,12 +3474,12 @@ const gi = (e) => {
3479
3474
  }
3480
3475
  return e;
3481
3476
  }, Or = (e) => {
3482
- const t = Ci(e);
3483
- return ki({
3477
+ const t = Ii(e);
3478
+ return Ei({
3484
3479
  contentId: e.id,
3485
3480
  value: t
3486
3481
  }).catch((n) => {
3487
- Z.error("could not store A/B test variation: ", n);
3482
+ te.error("could not store A/B test variation: ", n);
3488
3483
  }), t;
3489
3484
  }, jr = ({
3490
3485
  item: e,
@@ -3500,7 +3495,7 @@ const gi = (e) => {
3500
3495
  testVariationId: n.id,
3501
3496
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
3502
3497
  };
3503
- }, Ei = ({
3498
+ }, Ti = ({
3504
3499
  item: e,
3505
3500
  canTrack: t
3506
3501
  }) => {
@@ -3510,7 +3505,7 @@ const gi = (e) => {
3510
3505
  return;
3511
3506
  if (!Ar(e))
3512
3507
  return e;
3513
- const n = xi({
3508
+ const n = Ci({
3514
3509
  contentId: e.id
3515
3510
  }) || Or({
3516
3511
  variations: e.variations,
@@ -3523,13 +3518,13 @@ const gi = (e) => {
3523
3518
  ...e,
3524
3519
  ...r
3525
3520
  };
3526
- }, Ii = async ({
3521
+ }, Ai = async ({
3527
3522
  item: e,
3528
3523
  canTrack: t
3529
3524
  }) => {
3530
3525
  if (!t || !Ar(e))
3531
3526
  return e;
3532
- const r = await wi({
3527
+ const r = await ki({
3533
3528
  contentId: e.id
3534
3529
  }) || Or({
3535
3530
  variations: e.variations,
@@ -3542,7 +3537,7 @@ const gi = (e) => {
3542
3537
  ...e,
3543
3538
  ...o
3544
3539
  };
3545
- }, Ht = (e) => ie(e) ? e : !0, Ti = {
3540
+ }, Ht = (e) => ae(e) ? e : !0, Oi = {
3546
3541
  name: "Core:Button",
3547
3542
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
3548
3543
  defaultStyles: {
@@ -3575,7 +3570,7 @@ const gi = (e) => {
3575
3570
  }],
3576
3571
  static: !0,
3577
3572
  noWrap: !0
3578
- }, Ai = {
3573
+ }, ji = {
3579
3574
  // TODO: ways to statically preprocess JSON for references, functions, etc
3580
3575
  name: "Columns",
3581
3576
  isRSC: !0,
@@ -3776,13 +3771,13 @@ const gi = (e) => {
3776
3771
  helperText: "When stacking columns for mobile devices, reverse the ordering",
3777
3772
  advanced: !0
3778
3773
  }]
3779
- }, Oi = {
3774
+ }, Ri = {
3780
3775
  name: "Fragment",
3781
3776
  static: !0,
3782
3777
  hidden: !0,
3783
3778
  canHaveChildren: !0,
3784
3779
  noWrap: !0
3785
- }, ji = {
3780
+ }, Pi = {
3786
3781
  name: "Image",
3787
3782
  static: !0,
3788
3783
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -3875,6 +3870,11 @@ const gi = (e) => {
3875
3870
  type: "boolean",
3876
3871
  helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
3877
3872
  defaultValue: !0
3873
+ }, {
3874
+ name: "highPriority",
3875
+ type: "boolean",
3876
+ advanced: !0,
3877
+ helperText: "Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."
3878
3878
  }, {
3879
3879
  name: "aspectRatio",
3880
3880
  type: "number",
@@ -3882,7 +3882,7 @@ const gi = (e) => {
3882
3882
  advanced: !0,
3883
3883
  defaultValue: 0.7041
3884
3884
  }]
3885
- }, Ri = {
3885
+ }, Ni = {
3886
3886
  name: "Core:Section",
3887
3887
  static: !0,
3888
3888
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3921,7 +3921,7 @@ const gi = (e) => {
3921
3921
  }
3922
3922
  }
3923
3923
  }]
3924
- }, Pi = {
3924
+ }, Bi = {
3925
3925
  name: "Slot",
3926
3926
  isRSC: !0,
3927
3927
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -3935,9 +3935,9 @@ const gi = (e) => {
3935
3935
  defaultValue: "children"
3936
3936
  }]
3937
3937
  };
3938
- function Ni(e) {
3938
+ function Fi(e) {
3939
3939
  var t, n, r;
3940
- return /* @__PURE__ */ I(
3940
+ return /* @__PURE__ */ T(
3941
3941
  "div",
3942
3942
  {
3943
3943
  style: {
@@ -3946,7 +3946,7 @@ function Ni(e) {
3946
3946
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
3947
3947
  "builder-slot": e.name
3948
3948
  },
3949
- children: /* @__PURE__ */ I(
3949
+ children: /* @__PURE__ */ T(
3950
3950
  un,
3951
3951
  {
3952
3952
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
@@ -3958,7 +3958,7 @@ function Ni(e) {
3958
3958
  }
3959
3959
  );
3960
3960
  }
3961
- const Bi = {
3961
+ const Ui = {
3962
3962
  name: "Symbol",
3963
3963
  noWrap: !0,
3964
3964
  static: !0,
@@ -3991,7 +3991,7 @@ const Bi = {
3991
3991
  hideFromUI: !0,
3992
3992
  type: "boolean"
3993
3993
  }]
3994
- }, Ui = {
3994
+ }, Mi = {
3995
3995
  name: "Text",
3996
3996
  static: !0,
3997
3997
  isRSC: !0,
@@ -4010,9 +4010,9 @@ const Bi = {
4010
4010
  textAlign: "center"
4011
4011
  }
4012
4012
  };
4013
- function Mi(e) {
4013
+ function Vi(e) {
4014
4014
  var t;
4015
- return /* @__PURE__ */ I(
4015
+ return /* @__PURE__ */ T(
4016
4016
  "div",
4017
4017
  {
4018
4018
  className: "builder-text",
@@ -4023,7 +4023,7 @@ function Mi(e) {
4023
4023
  }
4024
4024
  );
4025
4025
  }
4026
- const Fi = {
4026
+ const Di = {
4027
4027
  name: "Custom Code",
4028
4028
  static: !0,
4029
4029
  requiredPermissions: ["editCode"],
@@ -4045,7 +4045,7 @@ const Fi = {
4045
4045
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
4046
4046
  advanced: !0
4047
4047
  }]
4048
- }, Vi = {
4048
+ }, Li = {
4049
4049
  name: "Embed",
4050
4050
  static: !0,
4051
4051
  inputs: [{
@@ -4070,7 +4070,7 @@ const Fi = {
4070
4070
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
4071
4071
  hideFromUI: !0
4072
4072
  }]
4073
- }, Di = ["text/javascript", "application/javascript", "application/ecmascript"], Za = (e) => Di.includes(e.type), Li = {
4073
+ }, Wi = ["text/javascript", "application/javascript", "application/ecmascript"], es = (e) => Wi.includes(e.type), _i = {
4074
4074
  // friendlyName?
4075
4075
  name: "Raw:Img",
4076
4076
  hideFromInsertMenu: !0,
@@ -4084,7 +4084,7 @@ const Fi = {
4084
4084
  }],
4085
4085
  noWrap: !0,
4086
4086
  static: !0
4087
- }, Wi = {
4087
+ }, $i = {
4088
4088
  name: "Video",
4089
4089
  canHaveChildren: !0,
4090
4090
  defaultStyles: {
@@ -4165,58 +4165,58 @@ const Fi = {
4165
4165
  defaultValue: !0,
4166
4166
  advanced: !0
4167
4167
  }]
4168
- }, _i = () => [{
4168
+ }, Hi = () => [{
4169
4169
  component: co,
4170
- ...Fi
4170
+ ...Di
4171
4171
  }, {
4172
4172
  component: uo,
4173
- ...Vi
4173
+ ...Li
4174
4174
  }, {
4175
4175
  component: fo,
4176
- ...Li
4176
+ ..._i
4177
4177
  }, {
4178
4178
  component: po,
4179
- ...Wi
4179
+ ...$i
4180
4180
  }], Qn = () => [{
4181
4181
  component: ho,
4182
- ...Ti
4183
- }, {
4184
- component: pi,
4185
- ...Ai
4186
- }, {
4187
- component: mo,
4188
4182
  ...Oi
4189
4183
  }, {
4190
- component: go,
4184
+ component: mi,
4191
4185
  ...ji
4192
4186
  }, {
4193
- component: yo,
4187
+ component: mo,
4194
4188
  ...Ri
4195
4189
  }, {
4196
- component: Ni,
4190
+ component: go,
4197
4191
  ...Pi
4198
4192
  }, {
4199
- component: $a,
4193
+ component: yo,
4194
+ ...Ni
4195
+ }, {
4196
+ component: Fi,
4200
4197
  ...Bi
4201
4198
  }, {
4202
- component: Mi,
4199
+ component: Ka,
4203
4200
  ...Ui
4204
- }, ..._i()], Qa = (e) => ({
4201
+ }, {
4202
+ component: Vi,
4203
+ ...Mi
4204
+ }, ...Hi()], ts = (e) => ({
4205
4205
  type: "builder.registerComponent",
4206
4206
  data: Kt(e)
4207
- }), $i = (e) => {
4207
+ }), Ki = (e) => {
4208
4208
  const t = e.toString().trim();
4209
4209
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
4210
- }, Hi = (e) => typeof e == "function" ? $i(e) : mt(e), Kt = ({
4210
+ }, Gi = (e) => typeof e == "function" ? Ki(e) : mt(e), Kt = ({
4211
4211
  inputs: e,
4212
4212
  ...t
4213
4213
  }) => ({
4214
4214
  ...mt(t),
4215
4215
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
4216
4216
  ...r,
4217
- [o]: Hi(i)
4217
+ [o]: Gi(i)
4218
4218
  }), {}))
4219
- }), Ki = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
4219
+ }), Xi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
4220
4220
  function getAndSetVariantId() {
4221
4221
  function setCookie(name, value, days) {
4222
4222
  let expires = '';
@@ -4272,7 +4272,7 @@ const Fi = {
4272
4272
  }).join('');
4273
4273
  styleEl.innerHTML = newStyleStr;
4274
4274
  }
4275
- }`, Gi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4275
+ }`, Yi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4276
4276
  if (!navigator.cookieEnabled) {
4277
4277
  return;
4278
4278
  }
@@ -4306,27 +4306,27 @@ const Fi = {
4306
4306
  thisScriptEl?.remove();
4307
4307
  }
4308
4308
  return;
4309
- }`, Rr = "builderIoAbTest", Pr = "builderIoRenderContent", ft = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4309
+ }`, Rr = "builderIoAbTest", Pr = "builderIoRenderContent", dt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4310
4310
  ...t,
4311
4311
  testVariationId: t.id,
4312
4312
  id: e == null ? void 0 : e.id
4313
- })), Xi = ({
4313
+ })), zi = ({
4314
4314
  canTrack: e,
4315
4315
  content: t
4316
- }) => !(!(ft(t).length > 0) || !e || G()), Yi = (e) => e === "react" || e === "reactNative", Nr = Yi(me), Ji = () => `
4317
- window.${Rr} = ${Ki}
4318
- window.${Pr} = ${Gi}
4319
- `, zi = (e, t) => `
4316
+ }) => !(!(dt(t).length > 0) || !e || X()), Ji = (e) => e === "react" || e === "reactNative", Nr = Ji(Z), qi = () => `
4317
+ window.${Rr} = ${Xi}
4318
+ window.${Pr} = ${Yi}
4319
+ `, Zi = (e, t) => `
4320
4320
  window.${Rr}(
4321
4321
  "${t}",${JSON.stringify(e)}, ${Nr}
4322
- )`, qi = ({
4322
+ )`, Qi = ({
4323
4323
  contentId: e,
4324
4324
  variationId: t
4325
4325
  }) => `window.${Pr}(
4326
4326
  "${t}", "${e}", ${Nr}
4327
4327
  )`;
4328
4328
  function Gt(e) {
4329
- return /* @__PURE__ */ I(
4329
+ return /* @__PURE__ */ T(
4330
4330
  "script",
4331
4331
  {
4332
4332
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -4334,33 +4334,33 @@ function Gt(e) {
4334
4334
  }
4335
4335
  );
4336
4336
  }
4337
- const Zi = (e) => {
4337
+ const ea = (e) => {
4338
4338
  const t = e.get("preview"), n = e.get("overrides." + t);
4339
- return n || Z.warn("No previewed ID found in search params."), n;
4339
+ return n || te.warn("No previewed ID found in search params."), n;
4340
4340
  };
4341
- function Qi() {
4341
+ function ta() {
4342
4342
  globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new oo({
4343
4343
  max: 500,
4344
4344
  // how long to live in ms
4345
4345
  ttl: 1e3 * 60 * 5
4346
4346
  }));
4347
4347
  }
4348
- function ea(e) {
4349
- Qi();
4350
- const t = Zi(e);
4348
+ function na(e) {
4349
+ ta();
4350
+ const t = ea(e);
4351
4351
  return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
4352
4352
  }
4353
- function ta() {
4353
+ function ra() {
4354
4354
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
4355
4355
  }
4356
- function na() {
4357
- const e = ta().fetch;
4356
+ function oa() {
4357
+ const e = ra().fetch;
4358
4358
  if (typeof e > "u")
4359
4359
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
4360
4360
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
4361
4361
  return e;
4362
4362
  }
4363
- const ra = na();
4363
+ const ia = oa();
4364
4364
  function Xt(e, t = null, n = ".") {
4365
4365
  return Object.keys(e).reduce((r, o) => {
4366
4366
  const i = e[o], s = [t, o].filter(Boolean).join(n);
@@ -4380,22 +4380,22 @@ function Br(e, t, n = {}) {
4380
4380
  }
4381
4381
  return n;
4382
4382
  }
4383
- const oa = "v3", er = "builder.", ia = "options.", Ur = (e) => {
4383
+ const aa = "v3", er = "builder.", sa = "options.", Fr = (e) => {
4384
4384
  if (!e)
4385
4385
  return {};
4386
4386
  const t = cr(e), n = {};
4387
4387
  return Object.keys(t).forEach((r) => {
4388
4388
  if (r.startsWith(er)) {
4389
- const o = r.replace(er, "").replace(ia, "");
4389
+ const o = r.replace(er, "").replace(sa, "");
4390
4390
  n[o] = t[r];
4391
4391
  }
4392
4392
  }), n;
4393
- }, aa = () => {
4394
- if (!G())
4393
+ }, la = () => {
4394
+ if (!X())
4395
4395
  return {};
4396
4396
  const e = new URLSearchParams(window.location.search);
4397
- return Ur(e);
4398
- }, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, dn = (e) => {
4397
+ return Fr(e);
4398
+ }, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fn = (e) => {
4399
4399
  const {
4400
4400
  limit: t = 30,
4401
4401
  userAttributes: n,
@@ -4404,103 +4404,103 @@ const oa = "v3", er = "builder.", ia = "options.", Ur = (e) => {
4404
4404
  apiKey: i,
4405
4405
  enrich: s,
4406
4406
  locale: u,
4407
- apiVersion: p = oa,
4407
+ apiVersion: p = aa,
4408
4408
  fields: b,
4409
4409
  omit: x,
4410
4410
  offset: m,
4411
4411
  cacheSeconds: O,
4412
- staleCacheSeconds: N,
4413
- sort: j,
4414
- includeUnpublished: R
4412
+ staleCacheSeconds: R,
4413
+ sort: B,
4414
+ includeUnpublished: N
4415
4415
  } = e;
4416
4416
  if (!i)
4417
4417
  throw new Error("Missing API key");
4418
4418
  if (!["v3"].includes(p))
4419
4419
  throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
4420
- const Y = t !== 1, T = new URL(`https://cdn.builder.io/api/${p}/content/${o}`);
4421
- if (T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(Y)), T.searchParams.set("includeRefs", String(!0)), u && T.searchParams.set("locale", u), s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", x || "meta.componentsUsed"), b && T.searchParams.set("fields", b), Number.isFinite(m) && m > -1 && T.searchParams.set("offset", String(Math.floor(m))), typeof R == "boolean" && T.searchParams.set("includeUnpublished", String(R)), O && tr(O) && T.searchParams.set("cacheSeconds", String(O)), N && tr(N) && T.searchParams.set("staleCacheSeconds", String(N)), j) {
4422
- const F = Xt({
4423
- sort: j
4420
+ const W = t !== 1, k = new URL(`https://cdn.builder.io/api/${p}/content/${o}`);
4421
+ if (k.searchParams.set("apiKey", i), k.searchParams.set("limit", String(t)), k.searchParams.set("noTraverse", String(W)), k.searchParams.set("includeRefs", String(!0)), u && k.searchParams.set("locale", u), s && k.searchParams.set("enrich", String(s)), k.searchParams.set("omit", x || "meta.componentsUsed"), b && k.searchParams.set("fields", b), Number.isFinite(m) && m > -1 && k.searchParams.set("offset", String(Math.floor(m))), typeof N == "boolean" && k.searchParams.set("includeUnpublished", String(N)), O && tr(O) && k.searchParams.set("cacheSeconds", String(O)), R && tr(R) && k.searchParams.set("staleCacheSeconds", String(R)), B) {
4422
+ const U = Xt({
4423
+ sort: B
4424
4424
  });
4425
- for (const X in F)
4426
- T.searchParams.set(X, JSON.stringify(F[X]));
4425
+ for (const Y in U)
4426
+ k.searchParams.set(Y, JSON.stringify(U[Y]));
4427
4427
  }
4428
4428
  const g = {
4429
- ...aa(),
4429
+ ...la(),
4430
4430
  ...cr(e.options || {})
4431
- }, U = Xt(g);
4432
- for (const F in U)
4433
- T.searchParams.set(F, String(U[F]));
4434
- if (n && T.searchParams.set("userAttributes", JSON.stringify(n)), r) {
4435
- const F = Br({
4431
+ }, F = Xt(g);
4432
+ for (const U in F)
4433
+ k.searchParams.set(U, String(F[U]));
4434
+ if (n && k.searchParams.set("userAttributes", JSON.stringify(n)), r) {
4435
+ const U = Br({
4436
4436
  query: r
4437
4437
  });
4438
- for (const X in F)
4439
- T.searchParams.set(X, JSON.stringify(F[X]));
4438
+ for (const Y in U)
4439
+ k.searchParams.set(Y, JSON.stringify(U[Y]));
4440
4440
  }
4441
- return T;
4442
- }, sa = (e) => "results" in e;
4443
- async function Mr(e) {
4444
- const t = await ua({
4441
+ return k;
4442
+ }, ca = (e) => "results" in e;
4443
+ async function Ur(e) {
4444
+ const t = await fa({
4445
4445
  ...e,
4446
4446
  limit: 1
4447
4447
  });
4448
4448
  return t && t[0] || null;
4449
4449
  }
4450
- const la = async (e) => {
4451
- const t = dn(e);
4452
- return await (await (e.fetch ?? ra)(t.href, e.fetchOptions)).json();
4453
- }, ca = async (e, t, n = dn(e)) => {
4450
+ const ua = async (e) => {
4451
+ const t = fn(e);
4452
+ return await (await (e.fetch ?? ia)(t.href, e.fetchOptions)).json();
4453
+ }, da = async (e, t, n = fn(e)) => {
4454
4454
  const r = Ht(e.canTrack);
4455
4455
  if (n.search.includes("preview=")) {
4456
4456
  const i = [];
4457
4457
  for (const s of t.results) {
4458
- const u = ea(n.searchParams);
4458
+ const u = na(n.searchParams);
4459
4459
  i.push(u || s);
4460
4460
  }
4461
4461
  t.results = i;
4462
4462
  }
4463
- if (!r || !(G() || me === "reactNative"))
4463
+ if (!r || !(X() || Z === "reactNative"))
4464
4464
  return t.results;
4465
4465
  try {
4466
4466
  const i = [];
4467
4467
  for (const s of t.results)
4468
- i.push(await Ii({
4468
+ i.push(await Ai({
4469
4469
  item: s,
4470
4470
  canTrack: r
4471
4471
  }));
4472
4472
  t.results = i;
4473
4473
  } catch (i) {
4474
- Z.error("Could not process A/B tests. ", i);
4474
+ te.error("Could not process A/B tests. ", i);
4475
4475
  }
4476
4476
  return t.results;
4477
4477
  };
4478
- async function ua(e) {
4478
+ async function fa(e) {
4479
4479
  try {
4480
- const t = dn(e), n = await la(e);
4481
- return sa(n) ? ca(e, n) : (Z.error("Error fetching data. ", {
4480
+ const t = fn(e), n = await ua(e);
4481
+ return ca(n) ? da(e, n) : (te.error("Error fetching data. ", {
4482
4482
  url: t,
4483
4483
  content: n,
4484
4484
  options: e
4485
4485
  }), null);
4486
4486
  } catch (t) {
4487
- return Z.error("Error fetching data. ", t), null;
4487
+ return te.error("Error fetching data. ", t), null;
4488
4488
  }
4489
4489
  }
4490
- function es(e) {
4491
- const t = e || (G() ? window.location.search : void 0);
4490
+ function ns(e) {
4491
+ const t = e || (X() ? window.location.search : void 0);
4492
4492
  return t ? ur(t).indexOf("builder.preview=") !== -1 : !1;
4493
4493
  }
4494
- function fa() {
4494
+ function pa() {
4495
4495
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
4496
4496
  const t = Math.random() * 16 | 0;
4497
4497
  return (e == "x" ? t : t & 3 | 8).toString(16);
4498
4498
  });
4499
4499
  }
4500
- function Fr() {
4501
- return fa().replace(/-/g, "");
4500
+ function Mr() {
4501
+ return pa().replace(/-/g, "");
4502
4502
  }
4503
- const Vr = "builderSessionId", da = async ({
4503
+ const Vr = "builderSessionId", ha = async ({
4504
4504
  canTrack: e
4505
4505
  }) => {
4506
4506
  if (!e)
@@ -4509,23 +4509,23 @@ const Vr = "builderSessionId", da = async ({
4509
4509
  name: Vr,
4510
4510
  canTrack: e
4511
4511
  });
4512
- if (ie(t))
4512
+ if (ae(t))
4513
4513
  return t;
4514
4514
  {
4515
- const n = pa();
4516
- return ha({
4515
+ const n = ma();
4516
+ return ga({
4517
4517
  id: n,
4518
4518
  canTrack: e
4519
4519
  }), n;
4520
4520
  }
4521
- }, pa = () => Fr(), ha = ({
4521
+ }, ma = () => Mr(), ga = ({
4522
4522
  id: e,
4523
4523
  canTrack: t
4524
4524
  }) => Tr({
4525
4525
  name: Vr,
4526
4526
  value: e,
4527
4527
  canTrack: t
4528
- }), Dr = () => G() && typeof localStorage < "u" ? localStorage : void 0, ma = ({
4528
+ }), Dr = () => X() && typeof localStorage < "u" ? localStorage : void 0, ya = ({
4529
4529
  key: e,
4530
4530
  canTrack: t
4531
4531
  }) => {
@@ -4536,7 +4536,7 @@ const Vr = "builderSessionId", da = async ({
4536
4536
  console.debug("[LocalStorage] GET error: ", r);
4537
4537
  return;
4538
4538
  }
4539
- }, ga = ({
4539
+ }, va = ({
4540
4540
  key: e,
4541
4541
  canTrack: t,
4542
4542
  value: n
@@ -4547,32 +4547,32 @@ const Vr = "builderSessionId", da = async ({
4547
4547
  } catch (o) {
4548
4548
  console.debug("[LocalStorage] SET error: ", o);
4549
4549
  }
4550
- }, Lr = "builderVisitorId", ya = ({
4550
+ }, Lr = "builderVisitorId", ba = ({
4551
4551
  canTrack: e
4552
4552
  }) => {
4553
4553
  if (!e)
4554
4554
  return;
4555
- const t = ma({
4555
+ const t = ya({
4556
4556
  key: Lr,
4557
4557
  canTrack: e
4558
4558
  });
4559
- if (ie(t))
4559
+ if (ae(t))
4560
4560
  return t;
4561
4561
  {
4562
- const n = va();
4563
- return ba({
4562
+ const n = Sa();
4563
+ return wa({
4564
4564
  id: n,
4565
4565
  canTrack: e
4566
4566
  }), n;
4567
4567
  }
4568
- }, va = () => Fr(), ba = ({
4568
+ }, Sa = () => Mr(), wa = ({
4569
4569
  id: e,
4570
4570
  canTrack: t
4571
- }) => ga({
4571
+ }) => va({
4572
4572
  key: Lr,
4573
4573
  value: e,
4574
4574
  canTrack: t
4575
- }), Sa = async ({
4575
+ }), xa = async ({
4576
4576
  canTrack: e
4577
4577
  }) => {
4578
4578
  if (!e)
@@ -4580,16 +4580,16 @@ const Vr = "builderSessionId", da = async ({
4580
4580
  visitorId: void 0,
4581
4581
  sessionId: void 0
4582
4582
  };
4583
- const t = await da({
4583
+ const t = await ha({
4584
4584
  canTrack: e
4585
- }), n = ya({
4585
+ }), n = ba({
4586
4586
  canTrack: e
4587
4587
  });
4588
4588
  return {
4589
4589
  sessionId: t,
4590
4590
  visitorId: n
4591
4591
  };
4592
- }, wa = async ({
4592
+ }, ka = async ({
4593
4593
  type: e,
4594
4594
  canTrack: t,
4595
4595
  apiKey: n,
@@ -4603,23 +4603,23 @@ const Vr = "builderSessionId", da = async ({
4603
4603
  url: location.href,
4604
4604
  ...r
4605
4605
  },
4606
- ...await Sa({
4606
+ ...await xa({
4607
4607
  canTrack: t
4608
4608
  }),
4609
- userAttributes: dr(),
4609
+ userAttributes: fr(),
4610
4610
  ownerId: n
4611
4611
  }
4612
4612
  });
4613
- async function xa(e) {
4613
+ async function Ca(e) {
4614
4614
  if (!e.apiKey) {
4615
- Z.error("Missing API key for track call. Please provide your API key.");
4615
+ te.error("Missing API key for track call. Please provide your API key.");
4616
4616
  return;
4617
4617
  }
4618
- if (e.canTrack && !fr() && (G() || me === "reactNative"))
4618
+ if (e.canTrack && !dr() && (X() || Z === "reactNative"))
4619
4619
  return fetch("https://cdn.builder.io/api/v1/track", {
4620
4620
  method: "POST",
4621
4621
  body: JSON.stringify({
4622
- events: [await wa(e)]
4622
+ events: [await ka(e)]
4623
4623
  }),
4624
4624
  headers: {
4625
4625
  "content-type": "application/json"
@@ -4629,14 +4629,14 @@ async function xa(e) {
4629
4629
  console.error("Failed to track: ", t);
4630
4630
  });
4631
4631
  }
4632
- const ts = (e) => xa({
4632
+ const rs = (e) => Ca({
4633
4633
  ...e,
4634
4634
  canTrack: !0
4635
4635
  });
4636
4636
  function nr(e) {
4637
4637
  return Math.round(e * 1e3) / 1e3;
4638
4638
  }
4639
- const ka = (e, t, n = !0) => {
4639
+ const Ea = (e, t, n = !0) => {
4640
4640
  if (!(e instanceof HTMLElement))
4641
4641
  return null;
4642
4642
  let r = n ? e : e.parentElement;
@@ -4647,7 +4647,7 @@ const ka = (e, t, n = !0) => {
4647
4647
  return r;
4648
4648
  } while (r = r.parentElement);
4649
4649
  return null;
4650
- }, Ca = (e) => ka(e, (t) => {
4650
+ }, Ia = (e) => Ea(e, (t) => {
4651
4651
  const n = t.getAttribute("builder-id") || t.id;
4652
4652
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4653
4653
  }), rr = ({
@@ -4659,8 +4659,8 @@ const ka = (e, t, n = !0) => {
4659
4659
  x: i,
4660
4660
  y: s
4661
4661
  };
4662
- }, ns = (e) => {
4663
- const t = e.target, n = t && Ca(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4662
+ }, os = (e) => {
4663
+ const t = e.target, n = t && Ia(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4664
4664
  return {
4665
4665
  targetBuilderElement: r || void 0,
4666
4666
  metadata: {
@@ -4675,15 +4675,15 @@ const ka = (e, t, n = !0) => {
4675
4675
  builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
4676
4676
  }
4677
4677
  };
4678
- }, Ea = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
4678
+ }, Ta = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
4679
4679
  function Wr(e, t) {
4680
4680
  const n = new URL(t.origin), r = n.hostname;
4681
- return (e || Ea).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
4681
+ return (e || Ta).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
4682
4682
  }
4683
- const Ia = "0.14.25", or = {};
4684
- function Ta(e, t) {
4683
+ const Aa = "0.14.27", or = {};
4684
+ function Oa(e, t) {
4685
4685
  let n = or[e];
4686
- if (n || (n = or[e] = []), n.push(t), G()) {
4686
+ if (n || (n = or[e] = []), n.push(t), X()) {
4687
4687
  const r = {
4688
4688
  type: "builder.register",
4689
4689
  data: {
@@ -4698,8 +4698,8 @@ function Ta(e, t) {
4698
4698
  }
4699
4699
  }
4700
4700
  }
4701
- const rs = () => {
4702
- Ta("insertMenu", {
4701
+ const is = () => {
4702
+ Oa("insertMenu", {
4703
4703
  name: "_default",
4704
4704
  default: !0,
4705
4705
  items: [{
@@ -4722,13 +4722,13 @@ const rs = () => {
4722
4722
  });
4723
4723
  };
4724
4724
  let ir = !1;
4725
- const Aa = (e = {}) => {
4725
+ const ja = (e = {}) => {
4726
4726
  var t, n;
4727
- ir || (ir = !0, G() && ((t = window.parent) == null || t.postMessage({
4727
+ ir || (ir = !0, X() && ((t = window.parent) == null || t.postMessage({
4728
4728
  type: "builder.sdkInfo",
4729
4729
  data: {
4730
- target: me,
4731
- version: Ia,
4730
+ target: Z,
4731
+ version: Aa,
4732
4732
  supportsPatchUpdates: !1,
4733
4733
  // Supports builder-model="..." attribute which is needed to
4734
4734
  // scope our '+ add block' button styling
@@ -4754,8 +4754,8 @@ const Aa = (e = {}) => {
4754
4754
  let m, O = null;
4755
4755
  try {
4756
4756
  m = x.apply(null, p);
4757
- } catch (N) {
4758
- O = N;
4757
+ } catch (R) {
4758
+ O = R;
4759
4759
  }
4760
4760
  O ? (i = window.parent) == null || i.postMessage({
4761
4761
  type: "builder.evaluateError",
@@ -4763,13 +4763,13 @@ const Aa = (e = {}) => {
4763
4763
  id: b,
4764
4764
  error: O.message
4765
4765
  }
4766
- }, "*") : m && typeof m.then == "function" ? m.then((N) => {
4767
- var j;
4768
- (j = window.parent) == null || j.postMessage({
4766
+ }, "*") : m && typeof m.then == "function" ? m.then((R) => {
4767
+ var B;
4768
+ (B = window.parent) == null || B.postMessage({
4769
4769
  type: "builder.evaluateResult",
4770
4770
  data: {
4771
4771
  id: b,
4772
- result: N
4772
+ result: R
4773
4773
  }
4774
4774
  }, "*");
4775
4775
  }).catch(console.error) : (s = window.parent) == null || s.postMessage({
@@ -4783,7 +4783,7 @@ const Aa = (e = {}) => {
4783
4783
  }
4784
4784
  }
4785
4785
  })));
4786
- }, Oa = ({
4786
+ }, Ra = ({
4787
4787
  model: e,
4788
4788
  trustedHosts: t,
4789
4789
  callbacks: n
@@ -4809,12 +4809,12 @@ const Aa = (e = {}) => {
4809
4809
  break;
4810
4810
  }
4811
4811
  }
4812
- }, os = (e, t, n) => {
4813
- if (!G)
4814
- return Z.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
4812
+ }, as = (e, t, n) => {
4813
+ if (!X)
4814
+ return te.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
4815
4815
  };
4816
- Aa();
4817
- const r = Oa({
4816
+ ja();
4817
+ const r = Ra({
4818
4818
  callbacks: {
4819
4819
  contentUpdate: t,
4820
4820
  animation: () => {
@@ -4839,37 +4839,37 @@ function ar(e, ...t) {
4839
4839
  }
4840
4840
  return n;
4841
4841
  }
4842
- function ja(e) {
4842
+ function Pa(e) {
4843
4843
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
4844
4844
  }
4845
- function Ra(e, t) {
4846
- const n = Pa(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
4845
+ function Na(e, t) {
4846
+ const n = Ba(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
4847
4847
  for (const u of s)
4848
4848
  for (const p of n)
4849
4849
  p in u || (u[p] = r[p]);
4850
4850
  }
4851
- function Pa(e) {
4851
+ function Ba(e) {
4852
4852
  const t = [];
4853
4853
  for (const n of e.steps)
4854
4854
  for (const r in n.styles)
4855
4855
  t.indexOf(r) === -1 && t.push(r);
4856
4856
  return t;
4857
4857
  }
4858
- function is(e) {
4858
+ function ss(e) {
4859
4859
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
4860
4860
  if (!t.length) {
4861
- ja(e.elementId || e.id || "");
4861
+ Pa(e.elementId || e.id || "");
4862
4862
  return;
4863
4863
  }
4864
4864
  Array.from(t).forEach((n) => {
4865
- Ra(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ar(n.style, e.steps[0].styles), setTimeout(() => {
4865
+ Na(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ar(n.style, e.steps[0].styles), setTimeout(() => {
4866
4866
  n.style.transition = `all ${e.duration}s ${cn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ar(n.style, e.steps[1].styles), setTimeout(() => {
4867
4867
  n.style.transition = "", n.style.transitionDelay = "";
4868
4868
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
4869
4869
  });
4870
4870
  });
4871
4871
  }
4872
- const Na = (e) => {
4872
+ const Fa = (e) => {
4873
4873
  var i;
4874
4874
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
4875
4875
  let o = "";
@@ -4895,15 +4895,15 @@ font-weight: ${s};
4895
4895
  `.trim());
4896
4896
  }
4897
4897
  return o;
4898
- }, Ba = ({
4898
+ }, Ua = ({
4899
4899
  customFonts: e
4900
4900
  }) => {
4901
4901
  var t;
4902
- return ((t = e == null ? void 0 : e.map((n) => Na(n))) == null ? void 0 : t.join(" ")) || "";
4903
- }, Ua = ({
4902
+ return ((t = e == null ? void 0 : e.map((n) => Fa(n))) == null ? void 0 : t.join(" ")) || "";
4903
+ }, Ma = ({
4904
4904
  cssCode: e,
4905
4905
  contentId: t
4906
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ma = `
4906
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Va = `
4907
4907
  .builder-button {
4908
4908
  all: unset;
4909
4909
  }
@@ -4920,21 +4920,21 @@ font-weight: ${s};
4920
4920
  text-align: inherit;
4921
4921
  font-family: inherit;
4922
4922
  }
4923
- `, Fa = (e) => e ? "" : Ma, as = (e) => `variant-${e}`;
4924
- function Va(e) {
4923
+ `, Da = (e) => e ? "" : Va, ls = (e) => `variant-${e}`;
4924
+ function La(e) {
4925
4925
  const t = `
4926
- ${Ua({
4926
+ ${Ma({
4927
4927
  cssCode: e.cssCode,
4928
4928
  contentId: e.contentId
4929
4929
  })}
4930
- ${Ba({
4930
+ ${Ua({
4931
4931
  customFonts: e.customFonts
4932
4932
  })}
4933
- ${Fa(e.isNestedRender)}
4933
+ ${Da(e.isNestedRender)}
4934
4934
  `.trim();
4935
- return /* @__PURE__ */ I(gt, { id: "builderio-content", styles: t });
4935
+ return /* @__PURE__ */ T(gt, { id: "builderio-content", styles: t });
4936
4936
  }
4937
- const Da = ({
4937
+ const Wa = ({
4938
4938
  content: e,
4939
4939
  data: t,
4940
4940
  locale: n
@@ -4951,7 +4951,7 @@ const Da = ({
4951
4951
  locale: n
4952
4952
  } : {}
4953
4953
  };
4954
- }, La = ({
4954
+ }, _a = ({
4955
4955
  content: e,
4956
4956
  data: t
4957
4957
  }) => e ? {
@@ -4964,7 +4964,7 @@ const Da = ({
4964
4964
  } : void 0;
4965
4965
  function sr(e) {
4966
4966
  var o, i, s, u, p, b, x, m, O;
4967
- const t = qi({
4967
+ const t = Qi({
4968
4968
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4969
4969
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
4970
4970
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4973,36 +4973,37 @@ function sr(e) {
4973
4973
  ...Qn(),
4974
4974
  ...e.customComponents || []
4975
4975
  ].reduce(
4976
- (N, { component: j, ...R }) => ({
4977
- ...N,
4978
- [R.name]: {
4979
- component: j,
4980
- ...Kt(R)
4976
+ (R, { component: B, ...N }) => ({
4977
+ ...R,
4978
+ [N.name]: {
4979
+ component: B,
4980
+ ...Kt(N)
4981
4981
  }
4982
4982
  }),
4983
4983
  {}
4984
4984
  ), r = {
4985
- content: La({
4985
+ content: _a({
4986
4986
  content: e.content,
4987
4987
  data: e.data
4988
4988
  }),
4989
4989
  localState: void 0,
4990
- rootState: Da({
4990
+ rootState: Wa({
4991
4991
  content: e.content,
4992
4992
  data: e.data,
4993
4993
  locale: e.locale
4994
4994
  }),
4995
4995
  rootSetState: void 0,
4996
4996
  context: e.context || {},
4997
+ canTrack: e.canTrack,
4997
4998
  apiKey: e.apiKey,
4998
4999
  apiVersion: e.apiVersion,
4999
5000
  componentInfos: [
5000
5001
  ...Qn(),
5001
5002
  ...e.customComponents || []
5002
5003
  ].reduce(
5003
- (N, { component: j, ...R }) => ({
5004
- ...N,
5005
- [R.name]: Kt(R)
5004
+ (R, { component: B, ...N }) => ({
5005
+ ...R,
5006
+ [N.name]: Kt(N)
5006
5007
  }),
5007
5008
  {}
5008
5009
  ),
@@ -5025,18 +5026,17 @@ function sr(e) {
5025
5026
  builderContextSignal: r,
5026
5027
  contentWrapper: e.contentWrapper,
5027
5028
  contentWrapperProps: e.contentWrapperProps,
5028
- linkComponent: e.linkComponent,
5029
5029
  trustedHosts: e.trustedHosts,
5030
5030
  children: [
5031
- e.isSsrAbTest ? /* @__PURE__ */ I(
5031
+ e.isSsrAbTest ? /* @__PURE__ */ T(
5032
5032
  Gt,
5033
5033
  {
5034
5034
  id: "builderio-variant-visibility",
5035
5035
  scriptStr: t
5036
5036
  }
5037
5037
  ) : null,
5038
- /* @__PURE__ */ I(
5039
- Va,
5038
+ /* @__PURE__ */ T(
5039
+ La,
5040
5040
  {
5041
5041
  isNestedRender: e.isNestedRender,
5042
5042
  contentId: (s = r.content) == null ? void 0 : s.id,
@@ -5044,7 +5044,7 @@ function sr(e) {
5044
5044
  customFonts: (x = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : x.customFonts
5045
5045
  }
5046
5046
  ),
5047
- /* @__PURE__ */ I(
5047
+ /* @__PURE__ */ T(
5048
5048
  un,
5049
5049
  {
5050
5050
  blocks: (O = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : O.blocks,
@@ -5057,56 +5057,56 @@ function sr(e) {
5057
5057
  }
5058
5058
  );
5059
5059
  }
5060
- function Wa(e) {
5060
+ function $a(e) {
5061
5061
  var i;
5062
- const t = Xi({
5062
+ const t = zi({
5063
5063
  canTrack: Ht(e.canTrack),
5064
5064
  content: e.content
5065
5065
  }), n = function() {
5066
5066
  var u;
5067
- return zi(
5068
- ft(e.content).map((p) => ({
5067
+ return Zi(
5068
+ dt(e.content).map((p) => ({
5069
5069
  id: p.testVariationId,
5070
5070
  testRatio: p.testRatio
5071
5071
  })),
5072
5072
  ((u = e.content) == null ? void 0 : u.id) || ""
5073
5073
  );
5074
5074
  }, r = function() {
5075
- return ft(e.content).map((u) => `.variant-${u.testVariationId} { display: none; } `).join("");
5075
+ return dt(e.content).map((u) => `.variant-${u.testVariationId} { display: none; } `).join("");
5076
5076
  }, o = function() {
5077
5077
  var u;
5078
5078
  return t ? {
5079
5079
  ...e.content,
5080
5080
  testVariationId: (u = e.content) == null ? void 0 : u.id
5081
- } : Ei({
5081
+ } : Ti({
5082
5082
  item: e.content,
5083
5083
  canTrack: Ht(e.canTrack)
5084
5084
  });
5085
5085
  };
5086
5086
  return /* @__PURE__ */ xe(ee, { children: [
5087
- !e.isNestedRender && me !== "reactNative" ? /* @__PURE__ */ I(
5087
+ !e.isNestedRender && Z !== "reactNative" ? /* @__PURE__ */ T(
5088
5088
  Gt,
5089
5089
  {
5090
5090
  id: "builderio-init-variants-fns",
5091
- scriptStr: Ji()
5091
+ scriptStr: qi()
5092
5092
  }
5093
5093
  ) : null,
5094
5094
  t ? /* @__PURE__ */ xe(ee, { children: [
5095
- /* @__PURE__ */ I(
5095
+ /* @__PURE__ */ T(
5096
5096
  gt,
5097
5097
  {
5098
5098
  id: "builderio-variants",
5099
5099
  styles: r()
5100
5100
  }
5101
5101
  ),
5102
- /* @__PURE__ */ I(
5102
+ /* @__PURE__ */ T(
5103
5103
  Gt,
5104
5104
  {
5105
5105
  id: "builderio-variants-visibility",
5106
5106
  scriptStr: n()
5107
5107
  }
5108
5108
  ),
5109
- (i = ft(e.content)) == null ? void 0 : i.map((s) => /* @__PURE__ */ I(
5109
+ (i = dt(e.content)) == null ? void 0 : i.map((s) => /* @__PURE__ */ T(
5110
5110
  sr,
5111
5111
  {
5112
5112
  isNestedRender: e.isNestedRender,
@@ -5132,7 +5132,7 @@ function Wa(e) {
5132
5132
  s.testVariationId
5133
5133
  ))
5134
5134
  ] }) : null,
5135
- /* @__PURE__ */ I(
5135
+ /* @__PURE__ */ T(
5136
5136
  sr,
5137
5137
  {
5138
5138
  isNestedRender: e.isNestedRender,
@@ -5158,13 +5158,13 @@ function Wa(e) {
5158
5158
  )
5159
5159
  ] });
5160
5160
  }
5161
- const _a = async ({
5161
+ const Ha = async ({
5162
5162
  builderContextValue: e,
5163
5163
  symbol: t
5164
5164
  }) => {
5165
5165
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
5166
5166
  (e != null && e.apiKey))
5167
- return Mr({
5167
+ return Ur({
5168
5168
  model: t.model,
5169
5169
  apiKey: e.apiKey,
5170
5170
  apiVersion: e.apiVersion,
@@ -5174,10 +5174,10 @@ const _a = async ({
5174
5174
  }
5175
5175
  }
5176
5176
  }).catch((n) => {
5177
- Z.error("Could not fetch symbol content: ", n);
5177
+ te.error("Could not fetch symbol content: ", n);
5178
5178
  });
5179
5179
  };
5180
- async function $a(e) {
5180
+ async function Ka(e) {
5181
5181
  var i, s, u, p, b;
5182
5182
  const t = function() {
5183
5183
  return "div";
@@ -5191,12 +5191,12 @@ async function $a(e) {
5191
5191
  (m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
5192
5192
  (O = e.symbol) != null && O.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
5193
5193
  ].filter(Boolean).join(" ");
5194
- }, o = ((i = e.symbol) == null ? void 0 : i.content) || await _a({
5194
+ }, o = ((i = e.symbol) == null ? void 0 : i.content) || await Ha({
5195
5195
  symbol: e.symbol,
5196
5196
  builderContextValue: e.builderContext
5197
5197
  });
5198
- return /* @__PURE__ */ I("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ I(
5199
- Wa,
5198
+ return /* @__PURE__ */ T("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ T(
5199
+ $a,
5200
5200
  {
5201
5201
  isNestedRender: !0,
5202
5202
  apiVersion: e.builderContext.apiVersion,
@@ -5211,6 +5211,7 @@ async function $a(e) {
5211
5211
  ...e.builderContext.localState,
5212
5212
  ...(p = o == null ? void 0 : o.data) == null ? void 0 : p.state
5213
5213
  },
5214
+ canTrack: e.builderContext.canTrack,
5214
5215
  model: (b = e.symbol) == null ? void 0 : b.model,
5215
5216
  content: o,
5216
5217
  linkComponent: e.builderLinkComponent,
@@ -5220,8 +5221,8 @@ async function $a(e) {
5220
5221
  ) });
5221
5222
  }
5222
5223
  const lr = {};
5223
- function ss(e) {
5224
- if (G()) {
5224
+ function cs(e) {
5225
+ if (X()) {
5225
5226
  Object.assign(lr, e);
5226
5227
  const t = {
5227
5228
  type: "builder.settingsChange",
@@ -5230,7 +5231,7 @@ function ss(e) {
5230
5231
  parent.postMessage(t, "*");
5231
5232
  }
5232
5233
  }
5233
- const ls = async (e) => {
5234
+ const us = async (e) => {
5234
5235
  var r, o, i;
5235
5236
  const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
5236
5237
  ...e,
@@ -5242,50 +5243,50 @@ const ls = async (e) => {
5242
5243
  urlPath: t
5243
5244
  } : {}
5244
5245
  },
5245
- options: Ur(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
5246
+ options: Fr(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
5246
5247
  };
5247
5248
  return {
5248
5249
  apiKey: n.apiKey,
5249
5250
  model: n.model,
5250
- content: await Mr(n)
5251
+ content: await Ur(n)
5251
5252
  };
5252
5253
  };
5253
5254
  export {
5254
- Ur as A,
5255
+ Fr as A,
5255
5256
  un as B,
5256
- pi as C,
5257
- ts as D,
5258
- os as E,
5259
- ls as F,
5260
- ca as G,
5261
- ua as H,
5262
- $a as S,
5263
- Mi as T,
5264
- xa as _,
5265
- ci as a,
5266
- za as b,
5267
- fr as c,
5268
- qa as d,
5269
- Za as e,
5270
- G as f,
5257
+ mi as C,
5258
+ rs as D,
5259
+ as as E,
5260
+ us as F,
5261
+ da as G,
5262
+ fa as H,
5263
+ Ka as S,
5264
+ Vi as T,
5265
+ Ca as _,
5266
+ di as a,
5267
+ Za as b,
5268
+ dr as c,
5269
+ Qa as d,
5270
+ es as e,
5271
+ X as f,
5271
5272
  Yt as g,
5272
5273
  Ht as h,
5273
- Ja as i,
5274
- es as j,
5275
- as as k,
5276
- Z as l,
5277
- Oa as m,
5274
+ qa as i,
5275
+ ns as j,
5276
+ ls as k,
5277
+ te as l,
5278
+ Ra as m,
5278
5279
  ln as n,
5279
- ns as o,
5280
- ra as p,
5280
+ os as o,
5281
+ ia as p,
5281
5282
  mt as q,
5282
- rs as r,
5283
- Aa as s,
5284
- is as t,
5285
- Qa as u,
5286
- Mr as v,
5287
- Qi as w,
5288
- Wa as x,
5289
- Ta as y,
5290
- ss as z
5283
+ is as r,
5284
+ ja as s,
5285
+ ss as t,
5286
+ ts as u,
5287
+ Ur as v,
5288
+ ta as w,
5289
+ $a as x,
5290
+ Oa as y,
5291
+ cs as z
5291
5292
  };