@builder.io/sdk-solid 0.1.3-0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk-solid.js CHANGED
@@ -1,11 +1,11 @@
1
- const ue = "solid";
2
- function L() {
1
+ const oe = "solid";
2
+ function B() {
3
3
  return typeof window < "u" && typeof document < "u";
4
4
  }
5
5
  const pt = {};
6
- function Yn(e, t) {
6
+ function tr(e, t) {
7
7
  let n = pt[e];
8
- if (n || (n = pt[e] = []), n.push(t), L()) {
8
+ if (n || (n = pt[e] = []), n.push(t), B()) {
9
9
  const r = {
10
10
  type: "builder.register",
11
11
  data: {
@@ -20,8 +20,8 @@ function Yn(e, t) {
20
20
  }
21
21
  }
22
22
  }
23
- const Qn = () => {
24
- Yn("insertMenu", {
23
+ const nr = () => {
24
+ tr("insertMenu", {
25
25
  name: "_default",
26
26
  default: !0,
27
27
  items: [
@@ -37,12 +37,12 @@ const Qn = () => {
37
37
  });
38
38
  };
39
39
  let yt = !1;
40
- const Zn = (e = {}) => {
40
+ const rr = (e = {}) => {
41
41
  var t, n;
42
- yt || (yt = !0, L() && ((t = window.parent) == null || t.postMessage({
42
+ yt || (yt = !0, B() && ((t = window.parent) == null || t.postMessage({
43
43
  type: "builder.sdkInfo",
44
44
  data: {
45
- target: ue,
45
+ target: oe,
46
46
  supportsPatchUpdates: !1,
47
47
  supportsAddBlockScoping: !0,
48
48
  supportsCustomBreakpoints: !0
@@ -81,75 +81,75 @@ const Zn = (e = {}) => {
81
81
  }
82
82
  }
83
83
  })));
84
- }, S = {};
85
- function Ue(e) {
86
- S.context = e;
84
+ }, $ = {};
85
+ function We(e) {
86
+ $.context = e;
87
87
  }
88
- function er() {
88
+ function or() {
89
89
  return {
90
- ...S.context,
91
- id: `${S.context.id}${S.context.count++}-`,
90
+ ...$.context,
91
+ id: `${$.context.id}${$.context.count++}-`,
92
92
  count: 0
93
93
  };
94
94
  }
95
- const tr = (e, t) => e === t, J = Symbol("solid-proxy"), We = Symbol("solid-track"), we = {
96
- equals: tr
95
+ const ir = (e, t) => e === t, J = Symbol("solid-proxy"), Ke = Symbol("solid-track"), _e = {
96
+ equals: ir
97
97
  };
98
- let on = fn;
99
- const Q = 1, _e = 2, sn = {
98
+ let an = hn;
99
+ const Q = 1, xe = 2, ln = {
100
100
  owned: null,
101
101
  cleanups: null,
102
102
  context: null,
103
103
  owner: null
104
104
  };
105
- var C = null;
106
- let te = null, O = null, T = null, K = null, et = 0;
107
- function Ne(e, t) {
108
- const n = O, r = C, i = e.length === 0, o = i ? sn : {
105
+ var k = null;
106
+ let te = null, P = null, j = null, H = null, et = 0;
107
+ function Fe(e, t) {
108
+ const n = P, r = k, i = e.length === 0, o = i ? ln : {
109
109
  owned: null,
110
110
  cleanups: null,
111
111
  context: null,
112
112
  owner: t || r
113
- }, s = i ? e : () => e(() => M(() => nt(o)));
114
- C = o, O = null;
113
+ }, s = i ? e : () => e(() => V(() => nt(o)));
114
+ k = o, P = null;
115
115
  try {
116
116
  return de(s, !0);
117
117
  } finally {
118
- O = n, C = r;
118
+ P = n, k = r;
119
119
  }
120
120
  }
121
- function k(e, t) {
122
- t = t ? Object.assign({}, we, t) : we;
121
+ function O(e, t) {
122
+ t = t ? Object.assign({}, _e, t) : _e;
123
123
  const n = {
124
124
  value: e,
125
125
  observers: null,
126
126
  observerSlots: null,
127
127
  comparator: t.equals || void 0
128
- }, r = (i) => (typeof i == "function" && (i = i(n.value)), dn(n, i));
129
- return [un.bind(n), r];
128
+ }, r = (i) => (typeof i == "function" && (i = i(n.value)), mn(n, i));
129
+ return [fn.bind(n), r];
130
130
  }
131
131
  function w(e, t, n) {
132
132
  const r = tt(e, t, !1, Q);
133
133
  ye(r);
134
134
  }
135
135
  function ee(e, t, n) {
136
- on = lr;
137
- const r = tt(e, t, !1, Q), i = bt && rt(C, bt.id);
138
- i && (r.suspense = i), r.user = !0, K ? K.push(r) : ye(r);
136
+ an = fr;
137
+ const r = tt(e, t, !1, Q), i = bt && rt(k, bt.id);
138
+ i && (r.suspense = i), r.user = !0, H ? H.push(r) : ye(r);
139
139
  }
140
140
  function X(e, t, n) {
141
- n = n ? Object.assign({}, we, n) : we;
141
+ n = n ? Object.assign({}, _e, n) : _e;
142
142
  const r = tt(e, t, !0, 0);
143
- return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, ye(r), un.bind(r);
143
+ return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, ye(r), fn.bind(r);
144
144
  }
145
- function nr(e) {
145
+ function sr(e) {
146
146
  return de(e, !1);
147
147
  }
148
- function M(e) {
149
- let t, n = O;
150
- return O = null, t = e(), O = n, t;
148
+ function V(e) {
149
+ let t, n = P;
150
+ return P = null, t = e(), P = n, t;
151
151
  }
152
- function se(e, t, n) {
152
+ function ae(e, t, n) {
153
153
  const r = Array.isArray(e);
154
154
  let i, o = n && n.defer;
155
155
  return (s) => {
@@ -164,80 +164,80 @@ function se(e, t, n) {
164
164
  o = !1;
165
165
  return;
166
166
  }
167
- const l = M(() => t(a, i, s));
167
+ const l = V(() => t(a, i, s));
168
168
  return i = a, l;
169
169
  };
170
170
  }
171
- function an(e) {
172
- ee(() => M(e));
171
+ function cn(e) {
172
+ ee(() => V(e));
173
173
  }
174
- function rr(e) {
175
- return C === null || (C.cleanups === null ? C.cleanups = [e] : C.cleanups.push(e)), e;
174
+ function ar(e) {
175
+ return k === null || (k.cleanups === null ? k.cleanups = [e] : k.cleanups.push(e)), e;
176
176
  }
177
- function ln() {
178
- return O;
177
+ function un() {
178
+ return P;
179
179
  }
180
- function or(e) {
180
+ function lr(e) {
181
181
  const t = Symbol("context");
182
182
  return {
183
183
  id: t,
184
- Provider: ur(t),
184
+ Provider: hr(t),
185
185
  defaultValue: e
186
186
  };
187
187
  }
188
- function cn(e) {
188
+ function dn(e) {
189
189
  let t;
190
- return (t = rt(C, e.id)) !== void 0 ? t : e.defaultValue;
190
+ return (t = rt(k, e.id)) !== void 0 ? t : e.defaultValue;
191
191
  }
192
- function ir(e) {
193
- const t = X(e), n = X(() => Ke(t()));
192
+ function cr(e) {
193
+ const t = X(e), n = X(() => He(t()));
194
194
  return n.toArray = () => {
195
195
  const r = n();
196
196
  return Array.isArray(r) ? r : r != null ? [r] : [];
197
197
  }, n;
198
198
  }
199
199
  let bt;
200
- function un() {
200
+ function fn() {
201
201
  const e = te;
202
202
  if (this.sources && (this.state || e))
203
203
  if (this.state === Q || e)
204
204
  ye(this);
205
205
  else {
206
- const t = T;
207
- T = null, de(() => $e(this), !1), T = t;
206
+ const t = j;
207
+ j = null, de(() => Se(this), !1), j = t;
208
208
  }
209
- if (O) {
209
+ if (P) {
210
210
  const t = this.observers ? this.observers.length : 0;
211
- O.sources ? (O.sources.push(this), O.sourceSlots.push(t)) : (O.sources = [this], O.sourceSlots = [t]), this.observers ? (this.observers.push(O), this.observerSlots.push(O.sources.length - 1)) : (this.observers = [O], this.observerSlots = [O.sources.length - 1]);
211
+ P.sources ? (P.sources.push(this), P.sourceSlots.push(t)) : (P.sources = [this], P.sourceSlots = [t]), this.observers ? (this.observers.push(P), this.observerSlots.push(P.sources.length - 1)) : (this.observers = [P], this.observerSlots = [P.sources.length - 1]);
212
212
  }
213
213
  return this.value;
214
214
  }
215
- function dn(e, t, n) {
215
+ function mn(e, t, n) {
216
216
  let r = e.value;
217
217
  return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && de(() => {
218
218
  for (let i = 0; i < e.observers.length; i += 1) {
219
219
  const o = e.observers[i], s = te && te.running;
220
- s && te.disposed.has(o), (s && !o.tState || !s && !o.state) && (o.pure ? T.push(o) : K.push(o), o.observers && mn(o)), s || (o.state = Q);
220
+ s && te.disposed.has(o), (s && !o.tState || !s && !o.state) && (o.pure ? j.push(o) : H.push(o), o.observers && gn(o)), s || (o.state = Q);
221
221
  }
222
- if (T.length > 1e6)
223
- throw T = [], new Error();
222
+ if (j.length > 1e6)
223
+ throw j = [], new Error();
224
224
  }, !1)), t;
225
225
  }
226
226
  function ye(e) {
227
227
  if (!e.fn)
228
228
  return;
229
229
  nt(e);
230
- const t = C, n = O, r = et;
231
- O = C = e, sr(e, e.value, r), O = n, C = t;
230
+ const t = k, n = P, r = et;
231
+ P = k = e, ur(e, e.value, r), P = n, k = t;
232
232
  }
233
- function sr(e, t, n) {
233
+ function ur(e, t, n) {
234
234
  let r;
235
235
  try {
236
236
  r = e.fn(t);
237
237
  } catch (i) {
238
- e.pure && (e.state = Q), hn(i);
238
+ e.pure && (e.state = Q), pn(i);
239
239
  }
240
- (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? dn(e, r) : e.value = r, e.updatedAt = n);
240
+ (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? mn(e, r) : e.value = r, e.updatedAt = n);
241
241
  }
242
242
  function tt(e, t, n, r = Q, i) {
243
243
  const o = {
@@ -249,19 +249,19 @@ function tt(e, t, n, r = Q, i) {
249
249
  sourceSlots: null,
250
250
  cleanups: null,
251
251
  value: t,
252
- owner: C,
252
+ owner: k,
253
253
  context: null,
254
254
  pure: n
255
255
  };
256
- return C === null || C !== sn && (C.owned ? C.owned.push(o) : C.owned = [o]), o;
256
+ return k === null || k !== ln && (k.owned ? k.owned.push(o) : k.owned = [o]), o;
257
257
  }
258
- function xe(e) {
258
+ function $e(e) {
259
259
  const t = te;
260
260
  if (e.state === 0 || t)
261
261
  return;
262
- if (e.state === _e || t)
263
- return $e(e);
264
- if (e.suspense && M(e.suspense.inFallback))
262
+ if (e.state === xe || t)
263
+ return Se(e);
264
+ if (e.suspense && V(e.suspense.inFallback))
265
265
  return e.suspense.effects.push(e);
266
266
  const n = [e];
267
267
  for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < et); )
@@ -269,55 +269,55 @@ function xe(e) {
269
269
  for (let r = n.length - 1; r >= 0; r--)
270
270
  if (e = n[r], e.state === Q || t)
271
271
  ye(e);
272
- else if (e.state === _e || t) {
273
- const i = T;
274
- T = null, de(() => $e(e, n[0]), !1), T = i;
272
+ else if (e.state === xe || t) {
273
+ const i = j;
274
+ j = null, de(() => Se(e, n[0]), !1), j = i;
275
275
  }
276
276
  }
277
277
  function de(e, t) {
278
- if (T)
278
+ if (j)
279
279
  return e();
280
280
  let n = !1;
281
- t || (T = []), K ? n = !0 : K = [], et++;
281
+ t || (j = []), H ? n = !0 : H = [], et++;
282
282
  try {
283
283
  const r = e();
284
- return ar(n), r;
284
+ return dr(n), r;
285
285
  } catch (r) {
286
- T || (K = null), hn(r);
286
+ j || (H = null), pn(r);
287
287
  }
288
288
  }
289
- function ar(e) {
290
- if (T && (fn(T), T = null), e)
289
+ function dr(e) {
290
+ if (j && (hn(j), j = null), e)
291
291
  return;
292
- const t = K;
293
- K = null, t.length && de(() => on(t), !1);
292
+ const t = H;
293
+ H = null, t.length && de(() => an(t), !1);
294
294
  }
295
- function fn(e) {
295
+ function hn(e) {
296
296
  for (let t = 0; t < e.length; t++)
297
- xe(e[t]);
297
+ $e(e[t]);
298
298
  }
299
- function lr(e) {
299
+ function fr(e) {
300
300
  let t, n = 0;
301
301
  for (t = 0; t < e.length; t++) {
302
302
  const r = e[t];
303
- r.user ? e[n++] = r : xe(r);
303
+ r.user ? e[n++] = r : $e(r);
304
304
  }
305
- for (S.context && Ue(), t = 0; t < n; t++)
306
- xe(e[t]);
305
+ for ($.context && We(), t = 0; t < n; t++)
306
+ $e(e[t]);
307
307
  }
308
- function $e(e, t) {
308
+ function Se(e, t) {
309
309
  const n = te;
310
310
  e.state = 0;
311
311
  for (let r = 0; r < e.sources.length; r += 1) {
312
312
  const i = e.sources[r];
313
- i.sources && (i.state === Q || n ? i !== t && xe(i) : (i.state === _e || n) && $e(i, t));
313
+ i.sources && (i.state === Q || n ? i !== t && $e(i) : (i.state === xe || n) && Se(i, t));
314
314
  }
315
315
  }
316
- function mn(e) {
316
+ function gn(e) {
317
317
  const t = te;
318
318
  for (let n = 0; n < e.observers.length; n += 1) {
319
319
  const r = e.observers[n];
320
- (!r.state || t) && (r.state = _e, r.pure ? T.push(r) : K.push(r), r.observers && mn(r));
320
+ (!r.state || t) && (r.state = xe, r.pure ? j.push(r) : H.push(r), r.observers && gn(r));
321
321
  }
322
322
  }
323
323
  function nt(e) {
@@ -342,91 +342,91 @@ function nt(e) {
342
342
  }
343
343
  e.state = 0, e.context = null;
344
344
  }
345
- function cr(e) {
345
+ function mr(e) {
346
346
  return e instanceof Error || typeof e == "string" ? e : new Error("Unknown error");
347
347
  }
348
- function hn(e) {
349
- throw e = cr(e), e;
348
+ function pn(e) {
349
+ throw e = mr(e), e;
350
350
  }
351
351
  function rt(e, t) {
352
352
  return e ? e.context && e.context[t] !== void 0 ? e.context[t] : rt(e.owner, t) : void 0;
353
353
  }
354
- function Ke(e) {
354
+ function He(e) {
355
355
  if (typeof e == "function" && !e.length)
356
- return Ke(e());
356
+ return He(e());
357
357
  if (Array.isArray(e)) {
358
358
  const t = [];
359
359
  for (let n = 0; n < e.length; n++) {
360
- const r = Ke(e[n]);
360
+ const r = He(e[n]);
361
361
  Array.isArray(r) ? t.push.apply(t, r) : t.push(r);
362
362
  }
363
363
  return t;
364
364
  }
365
365
  return e;
366
366
  }
367
- function ur(e) {
367
+ function hr(e) {
368
368
  return function(n) {
369
369
  let r;
370
- return w(() => r = M(() => (C.context = {
370
+ return w(() => r = V(() => (k.context = {
371
371
  [e]: n.value
372
- }, ir(() => n.children)))), r;
372
+ }, cr(() => n.children)))), r;
373
373
  };
374
374
  }
375
- const dr = Symbol("fallback");
375
+ const gr = Symbol("fallback");
376
376
  function vt(e) {
377
377
  for (let t = 0; t < e.length; t++)
378
378
  e[t]();
379
379
  }
380
- function fr(e, t, n = {}) {
380
+ function pr(e, t, n = {}) {
381
381
  let r = [], i = [], o = [], s = 0, a = t.length > 1 ? [] : null;
382
- return rr(() => vt(o)), () => {
382
+ return ar(() => vt(o)), () => {
383
383
  let l = e() || [], c, u;
384
- return l[We], M(() => {
385
- let d = l.length, m, v, _, P, x, j, N, D, z;
384
+ return l[Ke], V(() => {
385
+ let d = l.length, m, v, _, S, C, R, I, D, W;
386
386
  if (d === 0)
387
- s !== 0 && (vt(o), o = [], r = [], i = [], s = 0, a && (a = [])), n.fallback && (r = [dr], i[0] = Ne((je) => (o[0] = je, n.fallback())), s = 1);
387
+ s !== 0 && (vt(o), o = [], r = [], i = [], s = 0, a && (a = [])), n.fallback && (r = [gr], i[0] = Fe((Re) => (o[0] = Re, n.fallback())), s = 1);
388
388
  else if (s === 0) {
389
389
  for (i = new Array(d), u = 0; u < d; u++)
390
- r[u] = l[u], i[u] = Ne(f);
390
+ r[u] = l[u], i[u] = Fe(f);
391
391
  s = d;
392
392
  } else {
393
- for (_ = new Array(d), P = new Array(d), a && (x = new Array(d)), j = 0, N = Math.min(s, d); j < N && r[j] === l[j]; j++)
393
+ for (_ = new Array(d), S = new Array(d), a && (C = new Array(d)), R = 0, I = Math.min(s, d); R < I && r[R] === l[R]; R++)
394
394
  ;
395
- for (N = s - 1, D = d - 1; N >= j && D >= j && r[N] === l[D]; N--, D--)
396
- _[D] = i[N], P[D] = o[N], a && (x[D] = a[N]);
397
- for (m = /* @__PURE__ */ new Map(), v = new Array(D + 1), u = D; u >= j; u--)
398
- z = l[u], c = m.get(z), v[u] = c === void 0 ? -1 : c, m.set(z, u);
399
- for (c = j; c <= N; c++)
400
- z = r[c], u = m.get(z), u !== void 0 && u !== -1 ? (_[u] = i[c], P[u] = o[c], a && (x[u] = a[c]), u = v[u], m.set(z, u)) : o[c]();
401
- for (u = j; u < d; u++)
402
- u in _ ? (i[u] = _[u], o[u] = P[u], a && (a[u] = x[u], a[u](u))) : i[u] = Ne(f);
395
+ for (I = s - 1, D = d - 1; I >= R && D >= R && r[I] === l[D]; I--, D--)
396
+ _[D] = i[I], S[D] = o[I], a && (C[D] = a[I]);
397
+ for (m = /* @__PURE__ */ new Map(), v = new Array(D + 1), u = D; u >= R; u--)
398
+ W = l[u], c = m.get(W), v[u] = c === void 0 ? -1 : c, m.set(W, u);
399
+ for (c = R; c <= I; c++)
400
+ W = r[c], u = m.get(W), u !== void 0 && u !== -1 ? (_[u] = i[c], S[u] = o[c], a && (C[u] = a[c]), u = v[u], m.set(W, u)) : o[c]();
401
+ for (u = R; u < d; u++)
402
+ u in _ ? (i[u] = _[u], o[u] = S[u], a && (a[u] = C[u], a[u](u))) : i[u] = Fe(f);
403
403
  i = i.slice(0, s = d), r = l.slice(0);
404
404
  }
405
405
  return i;
406
406
  });
407
407
  function f(d) {
408
408
  if (o[u] = d, a) {
409
- const [m, v] = k(u);
409
+ const [m, v] = O(u);
410
410
  return a[u] = v, t(l[u], m);
411
411
  }
412
412
  return t(l[u]);
413
413
  }
414
414
  };
415
415
  }
416
- let mr = !1;
416
+ let yr = !1;
417
417
  function p(e, t) {
418
- if (mr && S.context) {
419
- const n = S.context;
420
- Ue(er());
421
- const r = M(() => e(t || {}));
422
- return Ue(n), r;
418
+ if (yr && $.context) {
419
+ const n = $.context;
420
+ We(or());
421
+ const r = V(() => e(t || {}));
422
+ return We(n), r;
423
423
  }
424
- return M(() => e(t || {}));
424
+ return V(() => e(t || {}));
425
425
  }
426
426
  function ve() {
427
427
  return !0;
428
428
  }
429
- const gn = {
429
+ const yn = {
430
430
  get(e, t, n) {
431
431
  return t === J ? n : e.get(t);
432
432
  },
@@ -450,33 +450,33 @@ const gn = {
450
450
  return e.keys();
451
451
  }
452
452
  };
453
- function Fe(e) {
453
+ function Be(e) {
454
454
  return (e = typeof e == "function" ? e() : e) == null ? {} : e;
455
455
  }
456
456
  function fe(...e) {
457
457
  return new Proxy({
458
458
  get(t) {
459
459
  for (let n = e.length - 1; n >= 0; n--) {
460
- const r = Fe(e[n])[t];
460
+ const r = Be(e[n])[t];
461
461
  if (r !== void 0)
462
462
  return r;
463
463
  }
464
464
  },
465
465
  has(t) {
466
466
  for (let n = e.length - 1; n >= 0; n--)
467
- if (t in Fe(e[n]))
467
+ if (t in Be(e[n]))
468
468
  return !0;
469
469
  return !1;
470
470
  },
471
471
  keys() {
472
472
  const t = [];
473
473
  for (let n = 0; n < e.length; n++)
474
- t.push(...Object.keys(Fe(e[n])));
474
+ t.push(...Object.keys(Be(e[n])));
475
475
  return [...new Set(t)];
476
476
  }
477
- }, gn);
477
+ }, yn);
478
478
  }
479
- function hr(e, ...t) {
479
+ function br(e, ...t) {
480
480
  const n = new Set(t.flat()), r = Object.getOwnPropertyDescriptors(e), i = t.map((o) => {
481
481
  const s = {};
482
482
  for (let a = 0; a < o.length; a++) {
@@ -502,15 +502,15 @@ function hr(e, ...t) {
502
502
  keys() {
503
503
  return Object.keys(e).filter((o) => !n.has(o));
504
504
  }
505
- }, gn)), i;
505
+ }, yn)), i;
506
506
  }
507
507
  function G(e) {
508
508
  const t = "fallback" in e && {
509
509
  fallback: () => e.fallback
510
510
  };
511
- return X(fr(() => e.each, e.children, t || void 0));
511
+ return X(pr(() => e.each, e.children, t || void 0));
512
512
  }
513
- function E(e) {
513
+ function A(e) {
514
514
  let t = !1;
515
515
  const n = e.keyed, r = X(() => e.when, void 0, {
516
516
  equals: (i, o) => t ? i === o : !i == !o
@@ -519,12 +519,12 @@ function E(e) {
519
519
  const i = r();
520
520
  if (i) {
521
521
  const o = e.children, s = typeof o == "function" && o.length > 0;
522
- return t = n || s, s ? M(() => o(i)) : o;
522
+ return t = n || s, s ? V(() => o(i)) : o;
523
523
  }
524
524
  return e.fallback;
525
525
  });
526
526
  }
527
- const gr = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], pr = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...gr]), yr = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), br = {
527
+ const vr = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], wr = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...vr]), _r = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), xr = {
528
528
  className: "class",
529
529
  htmlFor: "for"
530
530
  }, wt = {
@@ -534,7 +534,7 @@ const gr = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "con
534
534
  nomodule: "noModule",
535
535
  playsinline: "playsInline",
536
536
  readonly: "readOnly"
537
- }, vr = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), wr = /* @__PURE__ */ new Set([
537
+ }, $r = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), Sr = /* @__PURE__ */ new Set([
538
538
  "altGlyph",
539
539
  "altGlyphDef",
540
540
  "altGlyphItem",
@@ -611,7 +611,7 @@ const gr = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "con
611
611
  "use",
612
612
  "view",
613
613
  "vkern"
614
- ]), _r = {
614
+ ]), Pr = {
615
615
  xlink: "http://www.w3.org/1999/xlink",
616
616
  xml: "http://www.w3.org/XML/1998/namespace"
617
617
  };
@@ -620,7 +620,7 @@ function _t(e, t) {
620
620
  equals: t
621
621
  });
622
622
  }
623
- function xr(e, t, n) {
623
+ function Or(e, t, n) {
624
624
  let r = n.length, i = t.length, o = r, s = 0, a = 0, l = t[i - 1].nextSibling, c = null;
625
625
  for (; s < i || a < o; ) {
626
626
  if (t[s] === n[a]) {
@@ -666,7 +666,7 @@ function xr(e, t, n) {
666
666
  }
667
667
  }
668
668
  const xt = "_$DX_DELEGATE";
669
- function A(e, t, n) {
669
+ function T(e, t, n) {
670
670
  const r = document.createElement("template");
671
671
  r.innerHTML = e;
672
672
  let i = r.content.firstChild;
@@ -676,19 +676,19 @@ function ot(e, t = window.document) {
676
676
  const n = t[xt] || (t[xt] = /* @__PURE__ */ new Set());
677
677
  for (let r = 0, i = e.length; r < i; r++) {
678
678
  const o = e[r];
679
- n.has(o) || (n.add(o), t.addEventListener(o, Ir));
679
+ n.has(o) || (n.add(o), t.addEventListener(o, jr));
680
680
  }
681
681
  }
682
- function $(e, t, n) {
682
+ function x(e, t, n) {
683
683
  n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
684
684
  }
685
- function $r(e, t, n, r) {
685
+ function kr(e, t, n, r) {
686
686
  r == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, r);
687
687
  }
688
688
  function U(e, t) {
689
689
  t == null ? e.removeAttribute("class") : e.className = t;
690
690
  }
691
- function Sr(e, t, n, r) {
691
+ function Cr(e, t, n, r) {
692
692
  if (r)
693
693
  Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
694
694
  else if (Array.isArray(n)) {
@@ -697,7 +697,7 @@ function Sr(e, t, n, r) {
697
697
  } else
698
698
  e.addEventListener(t, n);
699
699
  }
700
- function Pr(e, t, n = {}) {
700
+ function Ir(e, t, n = {}) {
701
701
  const r = Object.keys(t || {}), i = Object.keys(n);
702
702
  let o, s;
703
703
  for (o = 0, s = i.length; o < s; o++) {
@@ -710,9 +710,9 @@ function Pr(e, t, n = {}) {
710
710
  }
711
711
  return n;
712
712
  }
713
- function ae(e, t, n) {
713
+ function le(e, t, n) {
714
714
  if (!t)
715
- return n ? $(e, "style") : t;
715
+ return n ? x(e, "style") : t;
716
716
  const r = e.style;
717
717
  if (typeof t == "string")
718
718
  return r.cssText = t;
@@ -728,14 +728,14 @@ function ne(e, t, n, r) {
728
728
  typeof t == "function" ? w((i) => Pt(e, t(), i, n, r)) : Pt(e, t, void 0, n, r);
729
729
  }
730
730
  function it(e, t, n) {
731
- return M(() => e(t, n));
731
+ return V(() => e(t, n));
732
732
  }
733
- function R(e, t, n, r) {
733
+ function N(e, t, n, r) {
734
734
  if (n !== void 0 && !r && (r = []), typeof t != "function")
735
- return le(e, t, r, n);
736
- w((i) => le(e, t(), i, n), r);
735
+ return ce(e, t, r, n);
736
+ w((i) => ce(e, t(), i, n), r);
737
737
  }
738
- function Or(e, t, n, r, i = {}, o = !1) {
738
+ function Er(e, t, n, r, i = {}, o = !1) {
739
739
  t || (t = {});
740
740
  for (const s in i)
741
741
  if (!(s in t)) {
@@ -745,18 +745,18 @@ function Or(e, t, n, r, i = {}, o = !1) {
745
745
  }
746
746
  for (const s in t) {
747
747
  if (s === "children") {
748
- r || le(e, t.children);
748
+ r || ce(e, t.children);
749
749
  continue;
750
750
  }
751
751
  const a = t[s];
752
752
  i[s] = St(e, s, a, i[s], n, o);
753
753
  }
754
754
  }
755
- function kr(e) {
755
+ function Ar(e) {
756
756
  let t, n;
757
- return !S.context || !(t = S.registry.get(n = Er())) ? e.cloneNode(!0) : (S.completed && S.completed.add(t), S.registry.delete(n), t);
757
+ return !$.context || !(t = $.registry.get(n = Rr())) ? e.cloneNode(!0) : ($.completed && $.completed.add(t), $.registry.delete(n), t);
758
758
  }
759
- function Cr(e) {
759
+ function Tr(e) {
760
760
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
761
761
  }
762
762
  function $t(e, t, n) {
@@ -767,9 +767,9 @@ function $t(e, t, n) {
767
767
  function St(e, t, n, r, i, o) {
768
768
  let s, a, l;
769
769
  if (t === "style")
770
- return ae(e, n, r);
770
+ return le(e, n, r);
771
771
  if (t === "classList")
772
- return Pr(e, n, r);
772
+ return Ir(e, n, r);
773
773
  if (n === r)
774
774
  return r;
775
775
  if (t === "ref")
@@ -781,21 +781,21 @@ function St(e, t, n, r, i, o) {
781
781
  const c = t.slice(10);
782
782
  r && e.removeEventListener(c, r, !0), n && e.addEventListener(c, n, !0);
783
783
  } else if (t.slice(0, 2) === "on") {
784
- const c = t.slice(2).toLowerCase(), u = vr.has(c);
784
+ const c = t.slice(2).toLowerCase(), u = $r.has(c);
785
785
  if (!u && r) {
786
786
  const f = Array.isArray(r) ? r[0] : r;
787
787
  e.removeEventListener(c, f);
788
788
  }
789
- (u || n) && (Sr(e, c, n, u), u && ot([c]));
790
- } else if ((l = yr.has(t)) || !i && (wt[t] || (a = pr.has(t))) || (s = e.nodeName.includes("-")))
791
- t === "class" || t === "className" ? U(e, n) : s && !a && !l ? e[Cr(t)] = n : e[wt[t] || t] = n;
789
+ (u || n) && (Cr(e, c, n, u), u && ot([c]));
790
+ } else if ((l = _r.has(t)) || !i && (wt[t] || (a = wr.has(t))) || (s = e.nodeName.includes("-")))
791
+ t === "class" || t === "className" ? U(e, n) : s && !a && !l ? e[Tr(t)] = n : e[wt[t] || t] = n;
792
792
  else {
793
- const c = i && t.indexOf(":") > -1 && _r[t.split(":")[0]];
794
- c ? $r(e, c, t, n) : $(e, br[t] || t, n);
793
+ const c = i && t.indexOf(":") > -1 && Pr[t.split(":")[0]];
794
+ c ? kr(e, c, t, n) : x(e, xr[t] || t, n);
795
795
  }
796
796
  return n;
797
797
  }
798
- function Ir(e) {
798
+ function jr(e) {
799
799
  const t = `$$${e.type}`;
800
800
  let n = e.composedPath && e.composedPath()[0] || e.target;
801
801
  for (e.target !== n && Object.defineProperty(e, "target", {
@@ -806,7 +806,7 @@ function Ir(e) {
806
806
  get() {
807
807
  return n || document;
808
808
  }
809
- }), S.registry && !S.done && (S.done = !0, document.querySelectorAll("[id^=pl-]").forEach((r) => r.remove())); n !== null; ) {
809
+ }), $.registry && !$.done && ($.done = !0, document.querySelectorAll("[id^=pl-]").forEach((r) => r.remove())); n !== null; ) {
810
810
  const r = n[t];
811
811
  if (r && !n.disabled) {
812
812
  const i = n[`${t}Data`];
@@ -817,39 +817,39 @@ function Ir(e) {
817
817
  }
818
818
  }
819
819
  function Pt(e, t, n = {}, r, i) {
820
- return t || (t = {}), i || w(() => n.children = le(e, t.children, n.children)), w(() => t.ref && t.ref(e)), w(() => Or(e, t, r, !0, n, !0)), n;
820
+ return t || (t = {}), i || w(() => n.children = ce(e, t.children, n.children)), w(() => t.ref && t.ref(e)), w(() => Er(e, t, r, !0, n, !0)), n;
821
821
  }
822
- function le(e, t, n, r, i) {
823
- for (S.context && !n && (n = [...e.childNodes]); typeof n == "function"; )
822
+ function ce(e, t, n, r, i) {
823
+ for ($.context && !n && (n = [...e.childNodes]); typeof n == "function"; )
824
824
  n = n();
825
825
  if (t === n)
826
826
  return n;
827
827
  const o = typeof t, s = r !== void 0;
828
828
  if (e = s && n[0] && n[0].parentNode || e, o === "string" || o === "number") {
829
- if (S.context)
829
+ if ($.context)
830
830
  return n;
831
831
  if (o === "number" && (t = t.toString()), s) {
832
832
  let a = n[0];
833
- a && a.nodeType === 3 ? a.data = t : a = document.createTextNode(t), n = oe(e, n, r, a);
833
+ a && a.nodeType === 3 ? a.data = t : a = document.createTextNode(t), n = ie(e, n, r, a);
834
834
  } else
835
835
  n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
836
836
  } else if (t == null || o === "boolean") {
837
- if (S.context)
837
+ if ($.context)
838
838
  return n;
839
- n = oe(e, n, r);
839
+ n = ie(e, n, r);
840
840
  } else {
841
841
  if (o === "function")
842
842
  return w(() => {
843
843
  let a = t();
844
844
  for (; typeof a == "function"; )
845
845
  a = a();
846
- n = le(e, a, n, r);
846
+ n = ce(e, a, n, r);
847
847
  }), () => n;
848
848
  if (Array.isArray(t)) {
849
849
  const a = [], l = n && Array.isArray(n);
850
- if (He(a, t, n, i))
851
- return w(() => n = le(e, a, n, r, !0)), () => n;
852
- if (S.context) {
850
+ if (qe(a, t, n, i))
851
+ return w(() => n = ce(e, a, n, r, !0)), () => n;
852
+ if ($.context) {
853
853
  if (!a.length)
854
854
  return n;
855
855
  for (let c = 0; c < a.length; c++)
@@ -857,18 +857,18 @@ function le(e, t, n, r, i) {
857
857
  return n = a;
858
858
  }
859
859
  if (a.length === 0) {
860
- if (n = oe(e, n, r), s)
860
+ if (n = ie(e, n, r), s)
861
861
  return n;
862
862
  } else
863
- l ? n.length === 0 ? Ot(e, a, r) : xr(e, n, a) : (n && oe(e), Ot(e, a));
863
+ l ? n.length === 0 ? Ot(e, a, r) : Or(e, n, a) : (n && ie(e), Ot(e, a));
864
864
  n = a;
865
865
  } else if (t instanceof Node) {
866
- if (S.context && t.parentNode)
866
+ if ($.context && t.parentNode)
867
867
  return n = s ? [t] : t;
868
868
  if (Array.isArray(n)) {
869
869
  if (s)
870
- return n = oe(e, n, r, t);
871
- oe(e, n, null, t);
870
+ return n = ie(e, n, r, t);
871
+ ie(e, n, null, t);
872
872
  } else
873
873
  n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
874
874
  n = t;
@@ -876,7 +876,7 @@ function le(e, t, n, r, i) {
876
876
  }
877
877
  return n;
878
878
  }
879
- function He(e, t, n, r) {
879
+ function qe(e, t, n, r) {
880
880
  let i = !1;
881
881
  for (let o = 0, s = t.length; o < s; o++) {
882
882
  let a = t[o], l = n && n[o];
@@ -884,12 +884,12 @@ function He(e, t, n, r) {
884
884
  e.push(a);
885
885
  else if (!(a == null || a === !0 || a === !1))
886
886
  if (Array.isArray(a))
887
- i = He(e, a, l) || i;
887
+ i = qe(e, a, l) || i;
888
888
  else if (typeof a == "function")
889
889
  if (r) {
890
890
  for (; typeof a == "function"; )
891
891
  a = a();
892
- i = He(e, Array.isArray(a) ? a : [a], Array.isArray(l) ? l : [l]) || i;
892
+ i = qe(e, Array.isArray(a) ? a : [a], Array.isArray(l) ? l : [l]) || i;
893
893
  } else
894
894
  e.push(a), i = !0;
895
895
  else {
@@ -903,7 +903,7 @@ function Ot(e, t, n) {
903
903
  for (let r = 0, i = t.length; r < i; r++)
904
904
  e.insertBefore(t[r], n);
905
905
  }
906
- function oe(e, t, n, r) {
906
+ function ie(e, t, n, r) {
907
907
  if (n === void 0)
908
908
  return e.textContent = "";
909
909
  const i = r || document.createTextNode("");
@@ -921,63 +921,63 @@ function oe(e, t, n, r) {
921
921
  e.insertBefore(i, n);
922
922
  return [i];
923
923
  }
924
- function Er() {
925
- const e = S.context;
924
+ function Rr() {
925
+ const e = $.context;
926
926
  return `${e.id}${e.count++}`;
927
927
  }
928
- const Ar = "http://www.w3.org/2000/svg";
929
- function Tr(e, t = !1) {
930
- return t ? document.createElementNS(Ar, e) : document.createElement(e);
928
+ const Nr = "http://www.w3.org/2000/svg";
929
+ function Fr(e, t = !1) {
930
+ return t ? document.createElementNS(Nr, e) : document.createElement(e);
931
931
  }
932
- function Se(e) {
933
- const [t, n] = hr(e, ["component"]), r = X(() => t.component);
932
+ function Pe(e) {
933
+ const [t, n] = br(e, ["component"]), r = X(() => t.component);
934
934
  return X(() => {
935
935
  const i = r();
936
936
  switch (typeof i) {
937
937
  case "function":
938
- return M(() => i(n));
938
+ return V(() => i(n));
939
939
  case "string":
940
- const o = wr.has(i), s = S.context ? kr() : Tr(i, o);
940
+ const o = Sr.has(i), s = $.context ? Ar() : Fr(i, o);
941
941
  return ne(s, n, o), s;
942
942
  }
943
943
  });
944
944
  }
945
- let jr = { data: "" }, Rr = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || jr, Nr = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Fr = /\/\*[^]*?\*\/| +/g, kt = /\n+/g, Z = (e, t) => {
945
+ let Br = { data: "" }, Lr = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || Br, Dr = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Mr = /\/\*[^]*?\*\/| +/g, kt = /\n+/g, Z = (e, t) => {
946
946
  let n = "", r = "", i = "";
947
947
  for (let o in e) {
948
948
  let s = e[o];
949
949
  o[0] == "@" ? o[1] == "i" ? n = o + " " + s + ";" : r += o[1] == "f" ? Z(s, o) : o + "{" + Z(s, o[1] == "k" ? "" : t) + "}" : typeof s == "object" ? r += Z(s, t ? t.replace(/([^,])+/g, (a) => o.replace(/(^:.*)|([^,])+/g, (l) => /&/.test(l) ? l.replace(/&/g, a) : a ? a + " " + l : l)) : o) : s != null && (o = /^--/.test(o) ? o : o.replace(/[A-Z]/g, "-$&").toLowerCase(), i += Z.p ? Z.p(o, s) : o + ":" + s + ";");
950
950
  }
951
951
  return n + (t && i ? t + "{" + i + "}" : i) + r;
952
- }, W = {}, pn = (e) => {
952
+ }, K = {}, bn = (e) => {
953
953
  if (typeof e == "object") {
954
954
  let t = "";
955
955
  for (let n in e)
956
- t += n + pn(e[n]);
956
+ t += n + bn(e[n]);
957
957
  return t;
958
958
  }
959
959
  return e;
960
- }, Br = (e, t, n, r, i) => {
961
- let o = pn(e), s = W[o] || (W[o] = ((l) => {
960
+ }, Vr = (e, t, n, r, i) => {
961
+ let o = bn(e), s = K[o] || (K[o] = ((l) => {
962
962
  let c = 0, u = 11;
963
963
  for (; c < l.length; )
964
964
  u = 101 * u + l.charCodeAt(c++) >>> 0;
965
965
  return "go" + u;
966
966
  })(o));
967
- if (!W[s]) {
967
+ if (!K[s]) {
968
968
  let l = o !== e ? e : ((c) => {
969
969
  let u, f, d = [{}];
970
- for (; u = Nr.exec(c.replace(Fr, "")); )
970
+ for (; u = Dr.exec(c.replace(Mr, "")); )
971
971
  u[4] ? d.shift() : u[3] ? (f = u[3].replace(kt, " ").trim(), d.unshift(d[0][f] = d[0][f] || {})) : d[0][u[1]] = u[2].replace(kt, " ").trim();
972
972
  return d[0];
973
973
  })(e);
974
- W[s] = Z(i ? { ["@keyframes " + s]: l } : l, n ? "" : "." + s);
974
+ K[s] = Z(i ? { ["@keyframes " + s]: l } : l, n ? "" : "." + s);
975
975
  }
976
- let a = n && W.g ? W.g : null;
977
- return n && (W.g = W[s]), ((l, c, u, f) => {
976
+ let a = n && K.g ? K.g : null;
977
+ return n && (K.g = K[s]), ((l, c, u, f) => {
978
978
  f ? c.data = c.data.replace(f, l) : c.data.indexOf(l) === -1 && (c.data = u ? l + c.data : c.data + l);
979
- })(W[s], t, r, a), s;
980
- }, Lr = (e, t, n) => e.reduce((r, i, o) => {
979
+ })(K[s], t, r, a), s;
980
+ }, Ur = (e, t, n) => e.reduce((r, i, o) => {
981
981
  let s = t[o];
982
982
  if (s && s.call) {
983
983
  let a = s(n), l = a && a.props && a.props.className || /^go/.test(a) && a;
@@ -985,13 +985,13 @@ let jr = { data: "" }, Rr = (e) => typeof window == "object" ? ((e ? e.querySele
985
985
  }
986
986
  return r + i + (s == null ? "" : s);
987
987
  }, "");
988
- function H(e) {
988
+ function q(e) {
989
989
  let t = this || {}, n = e.call ? e(t.p) : e;
990
- return Br(n.unshift ? n.raw ? Lr(n, [].slice.call(arguments, 1), t.p) : n.reduce((r, i) => Object.assign(r, i && i.call ? i(t.p) : i), {}) : n, Rr(t.target), t.g, t.o, t.k);
990
+ return Vr(n.unshift ? n.raw ? Ur(n, [].slice.call(arguments, 1), t.p) : n.reduce((r, i) => Object.assign(r, i && i.call ? i(t.p) : i), {}) : n, Lr(t.target), t.g, t.o, t.k);
991
991
  }
992
- H.bind({ g: 1 });
993
- H.bind({ k: 1 });
994
- var Ie = or({
992
+ q.bind({ g: 1 });
993
+ q.bind({ k: 1 });
994
+ var Ee = lr({
995
995
  content: null,
996
996
  context: {},
997
997
  state: {},
@@ -999,13 +999,13 @@ var Ie = or({
999
999
  registeredComponents: {},
1000
1000
  inheritedStyles: {}
1001
1001
  });
1002
- function Dr() {
1003
- return L() && window.self !== window.top;
1002
+ function Wr() {
1003
+ return B() && window.self !== window.top;
1004
1004
  }
1005
- function q() {
1006
- return Dr() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1005
+ function z() {
1006
+ return Wr() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1007
1007
  }
1008
- const Ee = (e) => JSON.parse(JSON.stringify(e)), yn = {
1008
+ const Ae = (e) => JSON.parse(JSON.stringify(e)), vn = {
1009
1009
  small: {
1010
1010
  min: 320,
1011
1011
  default: 321,
@@ -1021,8 +1021,8 @@ const Ee = (e) => JSON.parse(JSON.stringify(e)), yn = {
1021
1021
  default: 991,
1022
1022
  max: 1200
1023
1023
  }
1024
- }, Ct = (e, t = yn) => `@media (max-width: ${t[e].max}px)`, bn = ({ small: e, medium: t }) => {
1025
- const n = Ee(yn);
1024
+ }, Ct = (e, t = vn) => `@media (max-width: ${t[e].max}px)`, wn = ({ small: e, medium: t }) => {
1025
+ const n = Ae(vn);
1026
1026
  if (!e || !t)
1027
1027
  return n;
1028
1028
  const r = Math.floor(e / 2);
@@ -1056,9 +1056,9 @@ function ge({
1056
1056
  return;
1057
1057
  }
1058
1058
  const o = {
1059
- isEditing: q(),
1060
- isBrowser: L(),
1061
- isServer: !L()
1059
+ isEditing: z(),
1060
+ isBrowser: B(),
1061
+ isServer: !B()
1062
1062
  }, a = i && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
1063
1063
  try {
1064
1064
  return new Function("builder", "Builder", "state", "context", "event", a)(o, o, n, t, r);
@@ -1069,34 +1069,34 @@ function ge({
1069
1069
  `, l);
1070
1070
  }
1071
1071
  }
1072
- const Vr = (e, t, n) => {
1072
+ const Kr = (e, t, n) => {
1073
1073
  if (Object(e) !== e)
1074
1074
  return e;
1075
1075
  const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
1076
1076
  return r.slice(0, -1).reduce((i, o, s) => Object(i[o]) === i[o] ? i[o] : i[o] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
1077
1077
  };
1078
- var Mr = Object.defineProperty, Ur = Object.defineProperties, Wr = Object.getOwnPropertyDescriptors, It = Object.getOwnPropertySymbols, Kr = Object.prototype.hasOwnProperty, Hr = Object.prototype.propertyIsEnumerable, Et = (e, t, n) => t in e ? Mr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Be = (e, t) => {
1078
+ var Hr = Object.defineProperty, qr = Object.defineProperties, zr = Object.getOwnPropertyDescriptors, It = Object.getOwnPropertySymbols, Gr = Object.prototype.hasOwnProperty, Jr = Object.prototype.propertyIsEnumerable, Et = (e, t, n) => t in e ? Hr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Le = (e, t) => {
1079
1079
  for (var n in t || (t = {}))
1080
- Kr.call(t, n) && Et(e, n, t[n]);
1080
+ Gr.call(t, n) && Et(e, n, t[n]);
1081
1081
  if (It)
1082
1082
  for (var n of It(t))
1083
- Hr.call(t, n) && Et(e, n, t[n]);
1083
+ Jr.call(t, n) && Et(e, n, t[n]);
1084
1084
  return e;
1085
- }, qr = (e, t) => Ur(e, Wr(t));
1086
- const zr = ({
1085
+ }, Xr = (e, t) => qr(e, zr(t));
1086
+ const Yr = ({
1087
1087
  block: e,
1088
1088
  context: t,
1089
1089
  state: n
1090
1090
  }) => {
1091
1091
  if (!e.bindings)
1092
1092
  return e;
1093
- const r = Ee(e), i = qr(Be({}, r), {
1094
- properties: Be({}, r.properties),
1095
- actions: Be({}, r.actions)
1093
+ const r = Ae(e), i = Xr(Le({}, r), {
1094
+ properties: Le({}, r.properties),
1095
+ actions: Le({}, r.actions)
1096
1096
  });
1097
1097
  for (const o in e.bindings) {
1098
1098
  const s = e.bindings[o], a = ge({ code: s, state: n, context: t });
1099
- Vr(i, o, a);
1099
+ Kr(i, o, a);
1100
1100
  }
1101
1101
  return i;
1102
1102
  };
@@ -1107,13 +1107,13 @@ function st({
1107
1107
  state: r
1108
1108
  }) {
1109
1109
  const i = e;
1110
- return n ? zr({ block: i, state: r, context: t }) : i;
1110
+ return n ? Yr({ block: i, state: r, context: t }) : i;
1111
1111
  }
1112
- const Gr = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), re = (e) => e != null, vn = (e) => Object.entries(e).map(([n, r]) => {
1112
+ const Qr = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), re = (e) => e != null, _n = (e) => Object.entries(e).map(([n, r]) => {
1113
1113
  if (typeof r == "string")
1114
- return `${Gr(n)}: ${r};`;
1115
- }).filter(re), me = (e) => vn(e).join(`
1116
- `), Le = ({
1114
+ return `${Qr(n)}: ${r};`;
1115
+ }).filter(re), me = (e) => _n(e).join(`
1116
+ `), De = ({
1117
1117
  mediaQuery: e,
1118
1118
  className: t,
1119
1119
  styles: n
@@ -1124,7 +1124,7 @@ const Gr = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
1124
1124
  return e ? `${e} {
1125
1125
  ${r}
1126
1126
  }` : r;
1127
- }, Jr = /* @__PURE__ */ A("<div></div>");
1127
+ }, Zr = /* @__PURE__ */ T("<div></div>");
1128
1128
  function at(e) {
1129
1129
  function t() {
1130
1130
  return `<${n()}>${e.styles}</${n()}>`;
@@ -1132,9 +1132,9 @@ function at(e) {
1132
1132
  function n() {
1133
1133
  return "style";
1134
1134
  }
1135
- return p(E, {
1135
+ return p(A, {
1136
1136
  get fallback() {
1137
- return p(Se, {
1137
+ return p(Pe, {
1138
1138
  get component() {
1139
1139
  return n();
1140
1140
  },
@@ -1143,9 +1143,9 @@ function at(e) {
1143
1143
  }
1144
1144
  });
1145
1145
  },
1146
- when: ue === "svelte",
1146
+ when: oe === "svelte",
1147
1147
  get children() {
1148
- const r = Jr.cloneNode(!0);
1148
+ const r = Zr.cloneNode(!0);
1149
1149
  return w(() => r.innerHTML = t()), r;
1150
1150
  }
1151
1151
  });
@@ -1161,21 +1161,21 @@ function lt(e) {
1161
1161
  }
1162
1162
  function n() {
1163
1163
  var m;
1164
- const r = t().responsiveStyles, i = e.context.content, o = bn(((m = i == null ? void 0 : i.meta) == null ? void 0 : m.breakpoints) || {}), s = r == null ? void 0 : r.large, a = r == null ? void 0 : r.medium, l = r == null ? void 0 : r.small, c = t().id, u = s ? Le({
1164
+ const r = t().responsiveStyles, i = e.context.content, o = wn(((m = i == null ? void 0 : i.meta) == null ? void 0 : m.breakpoints) || {}), s = r == null ? void 0 : r.large, a = r == null ? void 0 : r.medium, l = r == null ? void 0 : r.small, c = t().id, u = s ? De({
1165
1165
  className: c,
1166
1166
  styles: s
1167
- }) : "", f = a ? Le({
1167
+ }) : "", f = a ? De({
1168
1168
  className: c,
1169
1169
  styles: a,
1170
1170
  mediaQuery: Ct("medium", o)
1171
- }) : "", d = l ? Le({
1171
+ }) : "", d = l ? De({
1172
1172
  className: c,
1173
1173
  styles: l,
1174
1174
  mediaQuery: Ct("small", o)
1175
1175
  }) : "";
1176
1176
  return [u, f, d].join(" ");
1177
1177
  }
1178
- return p(E, {
1178
+ return p(A, {
1179
1179
  get when() {
1180
1180
  return n();
1181
1181
  },
@@ -1188,92 +1188,92 @@ function lt(e) {
1188
1188
  }
1189
1189
  });
1190
1190
  }
1191
- function Xr(e) {
1191
+ function eo(e) {
1192
1192
  return e.charAt(0).toUpperCase() + e.slice(1);
1193
1193
  }
1194
- const Yr = (e) => `on${Xr(e)}`, Qr = (e, t) => (n) => ge({
1194
+ const to = (e) => `on${eo(e)}`, no = (e, t) => (n) => ge({
1195
1195
  code: e,
1196
1196
  context: t.context,
1197
1197
  state: t.state,
1198
1198
  event: n,
1199
1199
  isExpression: !1
1200
1200
  });
1201
- function Zr(e) {
1201
+ function ro(e) {
1202
1202
  var t;
1203
1203
  const n = {}, r = (t = e.block.actions) != null ? t : {};
1204
1204
  for (const i in r) {
1205
1205
  if (!r.hasOwnProperty(i))
1206
1206
  continue;
1207
1207
  const o = r[i];
1208
- n[Yr(i)] = Qr(o, e);
1208
+ n[to(i)] = no(o, e);
1209
1209
  }
1210
1210
  return n;
1211
1211
  }
1212
- var eo = Object.defineProperty, to = Object.defineProperties, no = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, ro = Object.prototype.hasOwnProperty, oo = Object.prototype.propertyIsEnumerable, Tt = (e, t, n) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, jt = (e, t) => {
1212
+ var oo = Object.defineProperty, io = Object.defineProperties, so = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, ao = Object.prototype.hasOwnProperty, lo = Object.prototype.propertyIsEnumerable, Tt = (e, t, n) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, jt = (e, t) => {
1213
1213
  for (var n in t || (t = {}))
1214
- ro.call(t, n) && Tt(e, n, t[n]);
1214
+ ao.call(t, n) && Tt(e, n, t[n]);
1215
1215
  if (At)
1216
1216
  for (var n of At(t))
1217
- oo.call(t, n) && Tt(e, n, t[n]);
1217
+ lo.call(t, n) && Tt(e, n, t[n]);
1218
1218
  return e;
1219
- }, io = (e, t) => to(e, no(t));
1220
- function so(e) {
1219
+ }, co = (e, t) => io(e, so(t));
1220
+ function uo(e) {
1221
1221
  var t;
1222
- return io(jt(jt({}, (t = e.component) == null ? void 0 : t.options), e.options), {
1222
+ return co(jt(jt({}, (t = e.component) == null ? void 0 : t.options), e.options), {
1223
1223
  builderBlock: e
1224
1224
  });
1225
1225
  }
1226
- var ao = Object.defineProperty, lo = Object.defineProperties, co = Object.getOwnPropertyDescriptors, Rt = Object.getOwnPropertySymbols, uo = Object.prototype.hasOwnProperty, fo = Object.prototype.propertyIsEnumerable, Nt = (e, t, n) => t in e ? ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, mo = (e, t) => {
1226
+ var fo = Object.defineProperty, mo = Object.defineProperties, ho = Object.getOwnPropertyDescriptors, Rt = Object.getOwnPropertySymbols, go = Object.prototype.hasOwnProperty, po = Object.prototype.propertyIsEnumerable, Nt = (e, t, n) => t in e ? fo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, yo = (e, t) => {
1227
1227
  for (var n in t || (t = {}))
1228
- uo.call(t, n) && Nt(e, n, t[n]);
1228
+ go.call(t, n) && Nt(e, n, t[n]);
1229
1229
  if (Rt)
1230
1230
  for (var n of Rt(t))
1231
- fo.call(t, n) && Nt(e, n, t[n]);
1231
+ po.call(t, n) && Nt(e, n, t[n]);
1232
1232
  return e;
1233
- }, ho = (e, t) => lo(e, co(t));
1234
- function go(e) {
1233
+ }, bo = (e, t) => mo(e, ho(t));
1234
+ function vo(e) {
1235
1235
  var t;
1236
- const n = ho(mo({}, e.properties), {
1236
+ const n = bo(yo({}, e.properties), {
1237
1237
  "builder-id": e.id,
1238
- style: po(e.style),
1238
+ style: wo(e.style),
1239
1239
  class: [e.id, "builder-block", e.class, (t = e.properties) == null ? void 0 : t.class].filter(Boolean).join(" ")
1240
1240
  });
1241
1241
  return n;
1242
1242
  }
1243
- function po(e) {
1243
+ function wo(e) {
1244
1244
  if (!!e)
1245
- switch (ue) {
1245
+ switch (oe) {
1246
1246
  case "svelte":
1247
1247
  case "vue2":
1248
1248
  case "vue3":
1249
1249
  case "solid":
1250
- return vn(e).join(" ");
1250
+ return _n(e).join(" ");
1251
1251
  case "qwik":
1252
1252
  case "reactNative":
1253
1253
  case "react":
1254
1254
  return e;
1255
1255
  }
1256
1256
  }
1257
- function yo(e) {
1257
+ function _o(e) {
1258
1258
  return e.tagName || "div";
1259
1259
  }
1260
- var bo = Object.defineProperty, vo = Object.defineProperties, wo = Object.getOwnPropertyDescriptors, Pe = Object.getOwnPropertySymbols, wn = Object.prototype.hasOwnProperty, _n = Object.prototype.propertyIsEnumerable, Ft = (e, t, n) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Bt = (e, t) => {
1260
+ var xo = Object.defineProperty, $o = Object.defineProperties, So = Object.getOwnPropertyDescriptors, Oe = Object.getOwnPropertySymbols, xn = Object.prototype.hasOwnProperty, $n = Object.prototype.propertyIsEnumerable, Ft = (e, t, n) => t in e ? xo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Bt = (e, t) => {
1261
1261
  for (var n in t || (t = {}))
1262
- wn.call(t, n) && Ft(e, n, t[n]);
1263
- if (Pe)
1264
- for (var n of Pe(t))
1265
- _n.call(t, n) && Ft(e, n, t[n]);
1262
+ xn.call(t, n) && Ft(e, n, t[n]);
1263
+ if (Oe)
1264
+ for (var n of Oe(t))
1265
+ $n.call(t, n) && Ft(e, n, t[n]);
1266
1266
  return e;
1267
- }, Lt = (e, t) => vo(e, wo(t)), _o = (e, t) => {
1267
+ }, Lt = (e, t) => $o(e, So(t)), Po = (e, t) => {
1268
1268
  var n = {};
1269
1269
  for (var r in e)
1270
- wn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
1271
- if (e != null && Pe)
1272
- for (var r of Pe(e))
1273
- t.indexOf(r) < 0 && _n.call(e, r) && (n[r] = e[r]);
1270
+ xn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
1271
+ if (e != null && Oe)
1272
+ for (var r of Oe(e))
1273
+ t.indexOf(r) < 0 && $n.call(e, r) && (n[r] = e[r]);
1274
1274
  return n;
1275
1275
  };
1276
- const xo = [
1276
+ const Oo = [
1277
1277
  "area",
1278
1278
  "base",
1279
1279
  "br",
@@ -1289,7 +1289,7 @@ const xo = [
1289
1289
  "source",
1290
1290
  "track",
1291
1291
  "wbr"
1292
- ], De = (e) => typeof e == "string" && xo.includes(e.toLowerCase()), $o = ({
1292
+ ], Me = (e) => typeof e == "string" && Oo.includes(e.toLowerCase()), ko = ({
1293
1293
  block: e,
1294
1294
  context: t
1295
1295
  }) => {
@@ -1308,11 +1308,11 @@ const xo = [
1308
1308
  console.warn(`
1309
1309
  Could not find a registered component named "${r}".
1310
1310
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
1311
- }, So = ({
1311
+ }, Co = ({
1312
1312
  block: e,
1313
1313
  context: t
1314
1314
  }) => {
1315
- const n = e, { repeat: r } = n, i = _o(n, ["repeat"]);
1315
+ const n = e, { repeat: r } = n, i = Po(n, ["repeat"]);
1316
1316
  if (!(r != null && r.collection))
1317
1317
  return;
1318
1318
  const o = ge({
@@ -1335,8 +1335,8 @@ const xo = [
1335
1335
  block: i
1336
1336
  }));
1337
1337
  };
1338
- function Po(e) {
1339
- return p(Ie.Provider, {
1338
+ function Io(e) {
1339
+ return p(Ee.Provider, {
1340
1340
  get value() {
1341
1341
  return {
1342
1342
  content: e.repeatContext.content,
@@ -1348,7 +1348,7 @@ function Po(e) {
1348
1348
  };
1349
1349
  },
1350
1350
  get children() {
1351
- return p(Ae, {
1351
+ return p(Te, {
1352
1352
  get block() {
1353
1353
  return e.block;
1354
1354
  },
@@ -1360,12 +1360,12 @@ function Po(e) {
1360
1360
  });
1361
1361
  }
1362
1362
  function Dt(e) {
1363
- return p(E, {
1363
+ return p(A, {
1364
1364
  get when() {
1365
1365
  return e.componentRef;
1366
1366
  },
1367
1367
  get children() {
1368
- return p(Se, fe(() => e.componentOptions, {
1368
+ return p(Pe, fe(() => e.componentOptions, {
1369
1369
  get component() {
1370
1370
  return e.componentRef;
1371
1371
  },
@@ -1374,7 +1374,7 @@ function Dt(e) {
1374
1374
  get each() {
1375
1375
  return e.blockChildren;
1376
1376
  },
1377
- children: (t, n) => (n(), p(Ae, {
1377
+ children: (t, n) => (n(), p(Te, {
1378
1378
  get key() {
1379
1379
  return "render-block-" + t.id;
1380
1380
  },
@@ -1402,16 +1402,16 @@ function Dt(e) {
1402
1402
  }
1403
1403
  });
1404
1404
  }
1405
- function Ae(e) {
1406
- const [t, n] = k($o({
1405
+ function Te(e) {
1406
+ const [t, n] = O(ko({
1407
1407
  block: e.block,
1408
1408
  context: e.context
1409
- })), [r, i] = k(So({
1409
+ })), [r, i] = O(Co({
1410
1410
  block: e.block,
1411
1411
  context: e.context
1412
1412
  }));
1413
1413
  function o() {
1414
- return yo(s());
1414
+ return _o(s());
1415
1415
  }
1416
1416
  function s() {
1417
1417
  return r() ? e.block : st({
@@ -1422,7 +1422,7 @@ function Ae(e) {
1422
1422
  });
1423
1423
  }
1424
1424
  function a() {
1425
- return Zr({
1425
+ return ro({
1426
1426
  block: s(),
1427
1427
  state: e.context.state,
1428
1428
  context: e.context.context
@@ -1430,23 +1430,23 @@ function Ae(e) {
1430
1430
  }
1431
1431
  function l() {
1432
1432
  return {
1433
- ...go(s())
1433
+ ...vo(s())
1434
1434
  };
1435
1435
  }
1436
1436
  function c() {
1437
- var d, m, v, _, P, x;
1437
+ var d, m, v, _, S, C;
1438
1438
  return {
1439
1439
  blockChildren: (d = s().children) != null ? d : [],
1440
1440
  componentRef: (m = t()) == null ? void 0 : m.component,
1441
1441
  componentOptions: {
1442
- ...so(s()),
1442
+ ...uo(s()),
1443
1443
  ...(v = t()) != null && v.noWrap ? {
1444
1444
  attributes: {
1445
1445
  ...l(),
1446
1446
  ...a()
1447
1447
  }
1448
1448
  } : {},
1449
- customBreakpoints: (x = (P = (_ = f()) == null ? void 0 : _.content) == null ? void 0 : P.meta) == null ? void 0 : x.breakpoints
1449
+ customBreakpoints: (C = (S = (_ = f()) == null ? void 0 : _.content) == null ? void 0 : S.meta) == null ? void 0 : C.breakpoints
1450
1450
  },
1451
1451
  context: f()
1452
1452
  };
@@ -1466,7 +1466,7 @@ function Ae(e) {
1466
1466
  inheritedStyles: d()
1467
1467
  };
1468
1468
  }
1469
- return p(E, {
1469
+ return p(A, {
1470
1470
  get fallback() {
1471
1471
  return p(Dt, fe(c));
1472
1472
  },
@@ -1475,20 +1475,20 @@ function Ae(e) {
1475
1475
  return !((d = t()) != null && d.noWrap);
1476
1476
  },
1477
1477
  get children() {
1478
- return [p(E, {
1478
+ return [p(A, {
1479
1479
  get when() {
1480
- return De(o());
1480
+ return Me(o());
1481
1481
  },
1482
1482
  get children() {
1483
- return p(Se, fe(l, a, {
1483
+ return p(Pe, fe(l, a, {
1484
1484
  get component() {
1485
1485
  return o();
1486
1486
  }
1487
1487
  }));
1488
1488
  }
1489
- }), p(E, {
1489
+ }), p(A, {
1490
1490
  get when() {
1491
- return _t(() => !De(o()), !0)() && r();
1491
+ return _t(() => !Me(o()), !0)() && r();
1492
1492
  },
1493
1493
  get children() {
1494
1494
  return p(G, {
@@ -1497,7 +1497,7 @@ function Ae(e) {
1497
1497
  },
1498
1498
  children: (d, m) => {
1499
1499
  const v = m();
1500
- return p(Po, {
1500
+ return p(Io, {
1501
1501
  key: v,
1502
1502
  get repeatContext() {
1503
1503
  return d.context;
@@ -1509,12 +1509,12 @@ function Ae(e) {
1509
1509
  }
1510
1510
  });
1511
1511
  }
1512
- }), p(E, {
1512
+ }), p(A, {
1513
1513
  get when() {
1514
- return _t(() => !De(o()), !0)() && !r();
1514
+ return _t(() => !Me(o()), !0)() && !r();
1515
1515
  },
1516
1516
  get children() {
1517
- return p(Se, fe(l, a, {
1517
+ return p(Pe, fe(l, a, {
1518
1518
  get component() {
1519
1519
  return o();
1520
1520
  },
@@ -1523,7 +1523,7 @@ function Ae(e) {
1523
1523
  get each() {
1524
1524
  return u();
1525
1525
  },
1526
- children: (d, m) => (m(), p(Ae, {
1526
+ children: (d, m) => (m(), p(Te, {
1527
1527
  get key() {
1528
1528
  return "render-block-" + d.id;
1529
1529
  },
@@ -1553,15 +1553,15 @@ function Ae(e) {
1553
1553
  }
1554
1554
  });
1555
1555
  }
1556
- const Oo = /* @__PURE__ */ A("<div></div>");
1557
- function xn(e) {
1556
+ const Eo = /* @__PURE__ */ T("<div></div>");
1557
+ function Sn(e) {
1558
1558
  function t() {
1559
1559
  var o;
1560
1560
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
1561
1561
  }
1562
1562
  function n() {
1563
1563
  var o, s;
1564
- q() && !((o = e.blocks) != null && o.length) && ((s = window.parent) == null || s.postMessage({
1564
+ z() && !((o = e.blocks) != null && o.length) && ((s = window.parent) == null || s.postMessage({
1565
1565
  type: "builder.clickEmptyBlocks",
1566
1566
  data: {
1567
1567
  parentElementId: e.parent,
@@ -1571,7 +1571,7 @@ function xn(e) {
1571
1571
  }
1572
1572
  function r() {
1573
1573
  var o, s;
1574
- q() && !((o = e.blocks) != null && o.length) && ((s = window.parent) == null || s.postMessage({
1574
+ z() && !((o = e.blocks) != null && o.length) && ((s = window.parent) == null || s.postMessage({
1575
1575
  type: "builder.hoverEmptyBlocks",
1576
1576
  data: {
1577
1577
  parentElementId: e.parent,
@@ -1579,10 +1579,10 @@ function xn(e) {
1579
1579
  }
1580
1580
  }, "*"));
1581
1581
  }
1582
- const i = cn(Ie);
1582
+ const i = dn(Ee);
1583
1583
  return (() => {
1584
- const o = Oo.cloneNode(!0);
1585
- return o.addEventListener("mouseenter", (s) => r()), o.$$click = (s) => n(), R(o, p(E, {
1584
+ const o = Eo.cloneNode(!0);
1585
+ return o.addEventListener("mouseenter", (s) => r()), o.$$click = (s) => n(), N(o, p(A, {
1586
1586
  get when() {
1587
1587
  return e.blocks;
1588
1588
  },
@@ -1591,7 +1591,7 @@ function xn(e) {
1591
1591
  get each() {
1592
1592
  return e.blocks;
1593
1593
  },
1594
- children: (s, a) => (a(), p(Ae, {
1594
+ children: (s, a) => (a(), p(Te, {
1595
1595
  get key() {
1596
1596
  return "render-block-" + s.id;
1597
1597
  },
@@ -1600,7 +1600,7 @@ function xn(e) {
1600
1600
  }))
1601
1601
  });
1602
1602
  }
1603
- }), null), R(o, p(E, {
1603
+ }), null), N(o, p(A, {
1604
1604
  get when() {
1605
1605
  return e.blocks;
1606
1606
  },
@@ -1619,14 +1619,14 @@ function xn(e) {
1619
1619
  });
1620
1620
  }
1621
1621
  }), null), w((s) => {
1622
- const a = t() + " " + H({
1622
+ const a = t() + " " + q({
1623
1623
  display: "flex",
1624
1624
  flexDirection: "column",
1625
1625
  alignItems: "stretch"
1626
1626
  }), l = e.path, c = e.parent, u = {
1627
1627
  class: t()
1628
1628
  }, f = e.styleProp;
1629
- return a !== s._v$ && U(o, s._v$ = a), l !== s._v$2 && $(o, "builder-path", s._v$2 = l), c !== s._v$3 && $(o, "builder-parent-id", s._v$3 = c), u !== s._v$4 && $(o, "dataset", s._v$4 = u), s._v$5 = ae(o, f, s._v$5), s;
1629
+ return a !== s._v$ && U(o, s._v$ = a), l !== s._v$2 && x(o, "builder-path", s._v$2 = l), c !== s._v$3 && x(o, "builder-parent-id", s._v$3 = c), u !== s._v$4 && x(o, "dataset", s._v$4 = u), s._v$5 = le(o, f, s._v$5), s;
1630
1630
  }, {
1631
1631
  _v$: void 0,
1632
1632
  _v$2: void 0,
@@ -1637,8 +1637,8 @@ function xn(e) {
1637
1637
  })();
1638
1638
  }
1639
1639
  ot(["click"]);
1640
- const Vt = /* @__PURE__ */ A("<div></div>");
1641
- function ko(e) {
1640
+ const Mt = /* @__PURE__ */ T("<div></div>");
1641
+ function Ao(e) {
1642
1642
  function t() {
1643
1643
  return typeof e.space == "number" ? e.space || 0 : 20;
1644
1644
  }
@@ -1674,7 +1674,7 @@ function ko(e) {
1674
1674
  };
1675
1675
  }
1676
1676
  function l(f) {
1677
- return bn(e.customBreakpoints || {})[f].max;
1677
+ return wn(e.customBreakpoints || {})[f].max;
1678
1678
  }
1679
1679
  function c() {
1680
1680
  return {
@@ -1724,9 +1724,9 @@ function ko(e) {
1724
1724
  `;
1725
1725
  }
1726
1726
  return (() => {
1727
- const f = Vt.cloneNode(!0);
1728
- return R(f, p(E, {
1729
- when: ue !== "reactNative",
1727
+ const f = Mt.cloneNode(!0);
1728
+ return N(f, p(A, {
1729
+ when: oe !== "reactNative",
1730
1730
  get children() {
1731
1731
  return p(at, {
1732
1732
  get styles() {
@@ -1734,15 +1734,15 @@ function ko(e) {
1734
1734
  }
1735
1735
  });
1736
1736
  }
1737
- }), null), R(f, p(G, {
1737
+ }), null), N(f, p(G, {
1738
1738
  get each() {
1739
1739
  return e.columns;
1740
1740
  },
1741
1741
  children: (d, m) => {
1742
1742
  const v = m();
1743
1743
  return (() => {
1744
- const _ = Vt.cloneNode(!0);
1745
- return $(_, "key", v), R(_, p(xn, {
1744
+ const _ = Mt.cloneNode(!0);
1745
+ return x(_, "key", v), N(_, p(Sn, {
1746
1746
  get blocks() {
1747
1747
  return d.blocks;
1748
1748
  },
@@ -1753,17 +1753,17 @@ function ko(e) {
1753
1753
  styleProp: {
1754
1754
  flexGrow: "1"
1755
1755
  }
1756
- })), w((P) => {
1757
- const x = "builder-column " + H({
1756
+ })), w((S) => {
1757
+ const C = "builder-column " + q({
1758
1758
  display: "flex",
1759
1759
  flexDirection: "column",
1760
1760
  alignItems: "stretch"
1761
- }), j = {
1761
+ }), R = {
1762
1762
  width: i(v),
1763
1763
  "margin-left": `${v === 0 ? 0 : t()}px`,
1764
1764
  ...a()
1765
1765
  };
1766
- return x !== P._v$3 && U(_, P._v$3 = x), P._v$4 = ae(_, j, P._v$4), P;
1766
+ return C !== S._v$3 && U(_, S._v$3 = C), S._v$4 = le(_, R, S._v$4), S;
1767
1767
  }, {
1768
1768
  _v$3: void 0,
1769
1769
  _v$4: void 0
@@ -1771,35 +1771,35 @@ function ko(e) {
1771
1771
  })();
1772
1772
  }
1773
1773
  }), null), w((d) => {
1774
- const m = `builder-columns ${e.builderBlock.id}-breakpoints ` + H({
1774
+ const m = `builder-columns ${e.builderBlock.id}-breakpoints ` + q({
1775
1775
  display: "flex",
1776
1776
  lineHeight: "normal"
1777
1777
  }), v = {
1778
1778
  ...s()
1779
1779
  };
1780
- return m !== d._v$ && U(f, d._v$ = m), d._v$2 = ae(f, v, d._v$2), d;
1780
+ return m !== d._v$ && U(f, d._v$ = m), d._v$2 = le(f, v, d._v$2), d;
1781
1781
  }, {
1782
1782
  _v$: void 0,
1783
1783
  _v$2: void 0
1784
1784
  }), f;
1785
1785
  })();
1786
1786
  }
1787
- function Mt(e) {
1787
+ function Vt(e) {
1788
1788
  return e.replace(/http(s)?:/, "");
1789
1789
  }
1790
- function Co(e = "", t, n) {
1790
+ function To(e = "", t, n) {
1791
1791
  const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
1792
1792
  return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
1793
1793
  }
1794
- function Io(e, t) {
1794
+ function jo(e, t) {
1795
1795
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1796
1796
  return e;
1797
1797
  if (t === "master")
1798
- return Mt(e);
1798
+ return Vt(e);
1799
1799
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1800
1800
  if (n) {
1801
1801
  const r = e.split(n[0]), i = n[3], o = t.match("x") ? t : `${t}x`;
1802
- return Mt(`${r[0]}_${o}${i}`);
1802
+ return Vt(`${r[0]}_${o}${i}`);
1803
1803
  }
1804
1804
  return null;
1805
1805
  }
@@ -1810,12 +1810,12 @@ function Ve(e) {
1810
1810
  if (e.match(/builder\.io/)) {
1811
1811
  let n = e;
1812
1812
  const r = Number(e.split("?width=")[1]);
1813
- return isNaN(r) || (n = `${n} ${r}w`), t.filter((i) => i !== r).map((i) => `${Co(e, "width", i)} ${i}w`).concat([n]).join(", ");
1813
+ return isNaN(r) || (n = `${n} ${r}w`), t.filter((i) => i !== r).map((i) => `${To(e, "width", i)} ${i}w`).concat([n]).join(", ");
1814
1814
  }
1815
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Io(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
1815
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [jo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
1816
1816
  }
1817
- const Eo = /* @__PURE__ */ A('<source type="image/webp">'), Ao = /* @__PURE__ */ A('<picture><img loading="lazy"></picture>'), Ut = /* @__PURE__ */ A("<div></div>");
1818
- function To(e) {
1817
+ const Ro = /* @__PURE__ */ T('<source type="image/webp">'), No = /* @__PURE__ */ T('<picture><img loading="lazy"></picture>'), Ut = /* @__PURE__ */ T("<div></div>");
1818
+ function Fo(e) {
1819
1819
  function t() {
1820
1820
  var s;
1821
1821
  const o = e.image || e.src;
@@ -1843,17 +1843,17 @@ function To(e) {
1843
1843
  return e.aspectRatio ? i : void 0;
1844
1844
  }
1845
1845
  return [(() => {
1846
- const i = Ao.cloneNode(!0), o = i.firstChild;
1847
- return R(i, p(E, {
1846
+ const i = No.cloneNode(!0), o = i.firstChild;
1847
+ return N(i, p(A, {
1848
1848
  get when() {
1849
1849
  return n();
1850
1850
  },
1851
1851
  get children() {
1852
- const s = Eo.cloneNode(!0);
1853
- return w(() => $(s, "srcset", n())), s;
1852
+ const s = Ro.cloneNode(!0);
1853
+ return w(() => x(s, "srcset", n())), s;
1854
1854
  }
1855
1855
  }), o), w((s) => {
1856
- const a = "builder-image" + (e.className ? " " + e.className : "") + " " + H({
1856
+ const a = "builder-image" + (e.className ? " " + e.className : "") + " " + q({
1857
1857
  opacity: "1",
1858
1858
  transition: "opacity 0.2s ease-in-out"
1859
1859
  }), l = e.altText, c = e.altText ? "presentation" : void 0, u = {
@@ -1861,7 +1861,7 @@ function To(e) {
1861
1861
  "object-fit": e.backgroundSize || "cover",
1862
1862
  ...r()
1863
1863
  }, f = e.image, d = t(), m = e.sizes;
1864
- return a !== s._v$ && U(o, s._v$ = a), l !== s._v$2 && $(o, "alt", s._v$2 = l), c !== s._v$3 && $(o, "role", s._v$3 = c), s._v$4 = ae(o, u, s._v$4), f !== s._v$5 && $(o, "src", s._v$5 = f), d !== s._v$6 && $(o, "srcset", s._v$6 = d), m !== s._v$7 && $(o, "sizes", s._v$7 = m), s;
1864
+ return a !== s._v$ && U(o, s._v$ = a), l !== s._v$2 && x(o, "alt", s._v$2 = l), c !== s._v$3 && x(o, "role", s._v$3 = c), s._v$4 = le(o, u, s._v$4), f !== s._v$5 && x(o, "src", s._v$5 = f), d !== s._v$6 && x(o, "srcset", s._v$6 = d), m !== s._v$7 && x(o, "sizes", s._v$7 = m), s;
1865
1865
  }, {
1866
1866
  _v$: void 0,
1867
1867
  _v$2: void 0,
@@ -1871,7 +1871,7 @@ function To(e) {
1871
1871
  _v$6: void 0,
1872
1872
  _v$7: void 0
1873
1873
  }), i;
1874
- })(), p(E, {
1874
+ })(), p(A, {
1875
1875
  get when() {
1876
1876
  var i, o;
1877
1877
  return e.aspectRatio && !(((o = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : o.length) && e.fitContent);
@@ -1879,7 +1879,7 @@ function To(e) {
1879
1879
  get children() {
1880
1880
  const i = Ut.cloneNode(!0);
1881
1881
  return w((o) => {
1882
- const s = "builder-image-sizer " + H({
1882
+ const s = "builder-image-sizer " + q({
1883
1883
  width: "100%",
1884
1884
  pointerEvents: "none",
1885
1885
  fontSize: "0"
@@ -1890,7 +1890,7 @@ function To(e) {
1890
1890
  _v$9: void 0
1891
1891
  }), i;
1892
1892
  }
1893
- }), p(E, {
1893
+ }), p(A, {
1894
1894
  get when() {
1895
1895
  var i, o;
1896
1896
  return ((o = (i = e.builderBlock) == null ? void 0 : i.children) == null ? void 0 : o.length) && e.fitContent;
@@ -1898,13 +1898,13 @@ function To(e) {
1898
1898
  get children() {
1899
1899
  return e.children;
1900
1900
  }
1901
- }), p(E, {
1901
+ }), p(A, {
1902
1902
  get when() {
1903
1903
  return !e.fitContent && e.children;
1904
1904
  },
1905
1905
  get children() {
1906
1906
  const i = Ut.cloneNode(!0);
1907
- return R(i, () => e.children), w(() => U(i, H({
1907
+ return N(i, () => e.children), w(() => U(i, q({
1908
1908
  display: "flex",
1909
1909
  flexDirection: "column",
1910
1910
  alignItems: "stretch",
@@ -1917,15 +1917,15 @@ function To(e) {
1917
1917
  }
1918
1918
  })];
1919
1919
  }
1920
- const jo = /* @__PURE__ */ A('<span class="builder-text"></span>');
1921
- function Ro(e) {
1920
+ const Bo = /* @__PURE__ */ T('<span class="builder-text"></span>');
1921
+ function Lo(e) {
1922
1922
  return (() => {
1923
- const t = jo.cloneNode(!0);
1923
+ const t = Bo.cloneNode(!0);
1924
1924
  return w(() => t.innerHTML = e.text), t;
1925
1925
  })();
1926
1926
  }
1927
- const No = /* @__PURE__ */ A("<video></video>");
1928
- function Fo(e) {
1927
+ const Do = /* @__PURE__ */ T("<video></video>");
1928
+ function Mo(e) {
1929
1929
  function t() {
1930
1930
  return {
1931
1931
  ...e.autoPlay === !0 ? {
@@ -1952,7 +1952,7 @@ function Fo(e) {
1952
1952
  };
1953
1953
  }
1954
1954
  return (() => {
1955
- const r = No.cloneNode(!0);
1955
+ const r = Do.cloneNode(!0);
1956
1956
  return ne(r, n, !1, !1), w((i) => {
1957
1957
  var l;
1958
1958
  const o = {
@@ -1963,7 +1963,7 @@ function Fo(e) {
1963
1963
  "object-position": e.position,
1964
1964
  "border-radius": 1
1965
1965
  }, s = e.video || "no-src", a = e.posterImage;
1966
- return i._v$ = ae(r, o, i._v$), s !== i._v$2 && $(r, "src", i._v$2 = s), a !== i._v$3 && $(r, "poster", i._v$3 = a), i;
1966
+ return i._v$ = le(r, o, i._v$), s !== i._v$2 && x(r, "src", i._v$2 = s), a !== i._v$3 && x(r, "poster", i._v$3 = a), i;
1967
1967
  }, {
1968
1968
  _v$: void 0,
1969
1969
  _v$2: void 0,
@@ -1971,11 +1971,11 @@ function Fo(e) {
1971
1971
  }), r;
1972
1972
  })();
1973
1973
  }
1974
- const qe = Symbol("store-raw"), pe = Symbol("store-node"), Bo = Symbol("store-name");
1975
- function $n(e, t) {
1974
+ const ze = Symbol("store-raw"), pe = Symbol("store-node"), Vo = Symbol("store-name");
1975
+ function Pn(e, t) {
1976
1976
  let n = e[J];
1977
1977
  if (!n && (Object.defineProperty(e, J, {
1978
- value: n = new Proxy(e, Vo)
1978
+ value: n = new Proxy(e, Ko)
1979
1979
  }), !Array.isArray(e))) {
1980
1980
  const r = Object.keys(e), i = Object.getOwnPropertyDescriptors(e);
1981
1981
  for (let o = 0, s = r.length; o < s; o++) {
@@ -1994,75 +1994,75 @@ function Y(e) {
1994
1994
  let t;
1995
1995
  return e != null && typeof e == "object" && (e[J] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
1996
1996
  }
1997
- function ce(e, t = /* @__PURE__ */ new Set()) {
1997
+ function ue(e, t = /* @__PURE__ */ new Set()) {
1998
1998
  let n, r, i, o;
1999
- if (n = e != null && e[qe])
1999
+ if (n = e != null && e[ze])
2000
2000
  return n;
2001
2001
  if (!Y(e) || t.has(e))
2002
2002
  return e;
2003
2003
  if (Array.isArray(e)) {
2004
2004
  Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
2005
2005
  for (let s = 0, a = e.length; s < a; s++)
2006
- i = e[s], (r = ce(i, t)) !== i && (e[s] = r);
2006
+ i = e[s], (r = ue(i, t)) !== i && (e[s] = r);
2007
2007
  } else {
2008
2008
  Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
2009
2009
  const s = Object.keys(e), a = Object.getOwnPropertyDescriptors(e);
2010
2010
  for (let l = 0, c = s.length; l < c; l++)
2011
- o = s[l], !a[o].get && (i = e[o], (r = ce(i, t)) !== i && (e[o] = r));
2011
+ o = s[l], !a[o].get && (i = e[o], (r = ue(i, t)) !== i && (e[o] = r));
2012
2012
  }
2013
2013
  return e;
2014
2014
  }
2015
- function Oe(e) {
2015
+ function ke(e) {
2016
2016
  let t = e[pe];
2017
2017
  return t || Object.defineProperty(e, pe, {
2018
2018
  value: t = {}
2019
2019
  }), t;
2020
2020
  }
2021
- function ze(e, t, n) {
2022
- return e[t] || (e[t] = Pn(n));
2021
+ function Ge(e, t, n) {
2022
+ return e[t] || (e[t] = kn(n));
2023
2023
  }
2024
- function Lo(e, t) {
2024
+ function Uo(e, t) {
2025
2025
  const n = Reflect.getOwnPropertyDescriptor(e, t);
2026
- return !n || n.get || !n.configurable || t === J || t === pe || t === Bo || (delete n.value, delete n.writable, n.get = () => e[J][t]), n;
2026
+ return !n || n.get || !n.configurable || t === J || t === pe || t === Vo || (delete n.value, delete n.writable, n.get = () => e[J][t]), n;
2027
2027
  }
2028
- function Sn(e) {
2029
- if (ln()) {
2030
- const t = Oe(e);
2031
- (t._ || (t._ = Pn()))();
2028
+ function On(e) {
2029
+ if (un()) {
2030
+ const t = ke(e);
2031
+ (t._ || (t._ = kn()))();
2032
2032
  }
2033
2033
  }
2034
- function Do(e) {
2035
- return Sn(e), Reflect.ownKeys(e);
2034
+ function Wo(e) {
2035
+ return On(e), Reflect.ownKeys(e);
2036
2036
  }
2037
- function Pn(e) {
2038
- const [t, n] = k(e, {
2037
+ function kn(e) {
2038
+ const [t, n] = O(e, {
2039
2039
  equals: !1,
2040
2040
  internal: !0
2041
2041
  });
2042
2042
  return t.$ = n, t;
2043
2043
  }
2044
- const Vo = {
2044
+ const Ko = {
2045
2045
  get(e, t, n) {
2046
- if (t === qe)
2046
+ if (t === ze)
2047
2047
  return e;
2048
2048
  if (t === J)
2049
2049
  return n;
2050
- if (t === We)
2051
- return Sn(e), n;
2052
- const r = Oe(e), i = r.hasOwnProperty(t);
2050
+ if (t === Ke)
2051
+ return On(e), n;
2052
+ const r = ke(e), i = r.hasOwnProperty(t);
2053
2053
  let o = i ? r[t]() : e[t];
2054
2054
  if (t === pe || t === "__proto__")
2055
2055
  return o;
2056
2056
  if (!i) {
2057
2057
  const s = Object.getOwnPropertyDescriptor(e, t);
2058
- ln() && (typeof o != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (o = ze(r, t, o)());
2058
+ un() && (typeof o != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (o = Ge(r, t, o)());
2059
2059
  }
2060
- return Y(o) ? $n(o) : o;
2060
+ return Y(o) ? Pn(o) : o;
2061
2061
  },
2062
2062
  has(e, t) {
2063
- if (t === qe || t === J || t === We || t === pe || t === "__proto__")
2063
+ if (t === ze || t === J || t === Ke || t === pe || t === "__proto__")
2064
2064
  return !0;
2065
- const n = Oe(e)[t];
2065
+ const n = ke(e)[t];
2066
2066
  return n && n(), t in e;
2067
2067
  },
2068
2068
  set() {
@@ -2071,36 +2071,36 @@ const Vo = {
2071
2071
  deleteProperty() {
2072
2072
  return !0;
2073
2073
  },
2074
- ownKeys: Do,
2075
- getOwnPropertyDescriptor: Lo
2074
+ ownKeys: Wo,
2075
+ getOwnPropertyDescriptor: Uo
2076
2076
  };
2077
- function B(e, t, n, r = !1) {
2077
+ function L(e, t, n, r = !1) {
2078
2078
  if (!r && e[t] === n)
2079
2079
  return;
2080
2080
  const i = e[t], o = e.length;
2081
2081
  n === void 0 ? delete e[t] : e[t] = n;
2082
- let s = Oe(e), a;
2083
- (a = ze(s, t, i)) && a.$(() => n), Array.isArray(e) && e.length !== o && (a = ze(s, "length", o)) && a.$(e.length), (a = s._) && a.$();
2082
+ let s = ke(e), a;
2083
+ (a = Ge(s, t, i)) && a.$(() => n), Array.isArray(e) && e.length !== o && (a = Ge(s, "length", o)) && a.$(e.length), (a = s._) && a.$();
2084
2084
  }
2085
- function On(e, t) {
2085
+ function Cn(e, t) {
2086
2086
  const n = Object.keys(t);
2087
2087
  for (let r = 0; r < n.length; r += 1) {
2088
2088
  const i = n[r];
2089
- B(e, i, t[i]);
2089
+ L(e, i, t[i]);
2090
2090
  }
2091
2091
  }
2092
- function Mo(e, t) {
2093
- if (typeof t == "function" && (t = t(e)), t = ce(t), Array.isArray(t)) {
2092
+ function Ho(e, t) {
2093
+ if (typeof t == "function" && (t = t(e)), t = ue(t), Array.isArray(t)) {
2094
2094
  if (e === t)
2095
2095
  return;
2096
2096
  let n = 0, r = t.length;
2097
2097
  for (; n < r; n++) {
2098
2098
  const i = t[n];
2099
- e[n] !== i && B(e, n, i);
2099
+ e[n] !== i && L(e, n, i);
2100
2100
  }
2101
- B(e, "length", r);
2101
+ L(e, "length", r);
2102
2102
  } else
2103
- On(e, t);
2103
+ Cn(e, t);
2104
2104
  }
2105
2105
  function he(e, t, n = []) {
2106
2106
  let r, i = e;
@@ -2131,27 +2131,27 @@ function he(e, t, n = []) {
2131
2131
  i = e[r], n = [r].concat(n);
2132
2132
  }
2133
2133
  let o = t[0];
2134
- typeof o == "function" && (o = o(i, n), o === i) || r === void 0 && o == null || (o = ce(o), r === void 0 || Y(i) && Y(o) && !Array.isArray(o) ? On(i, o) : B(e, r, o));
2134
+ typeof o == "function" && (o = o(i, n), o === i) || r === void 0 && o == null || (o = ue(o), r === void 0 || Y(i) && Y(o) && !Array.isArray(o) ? Cn(i, o) : L(e, r, o));
2135
2135
  }
2136
- function Uo(...[e, t]) {
2137
- const n = ce(e || {}), r = Array.isArray(n), i = $n(n);
2136
+ function qo(...[e, t]) {
2137
+ const n = ue(e || {}), r = Array.isArray(n), i = Pn(n);
2138
2138
  function o(...s) {
2139
- nr(() => {
2140
- r && s.length === 1 ? Mo(n, s[0]) : he(n, s);
2139
+ sr(() => {
2140
+ r && s.length === 1 ? Ho(n, s[0]) : he(n, s);
2141
2141
  });
2142
2142
  }
2143
2143
  return [i, o];
2144
2144
  }
2145
- const Ge = Symbol("store-root");
2146
- function ie(e, t, n, r, i) {
2145
+ const Je = Symbol("store-root");
2146
+ function se(e, t, n, r, i) {
2147
2147
  const o = t[n];
2148
2148
  if (e === o)
2149
2149
  return;
2150
2150
  if (!Y(e) || !Y(o) || i && e[i] !== o[i]) {
2151
2151
  if (e !== o) {
2152
- if (n === Ge)
2152
+ if (n === Je)
2153
2153
  return e;
2154
- B(t, n, e);
2154
+ L(t, n, e);
2155
2155
  }
2156
2156
  return;
2157
2157
  }
@@ -2159,58 +2159,58 @@ function ie(e, t, n, r, i) {
2159
2159
  if (e.length && o.length && (!r || i && e[0][i] != null)) {
2160
2160
  let l, c, u, f, d, m, v, _;
2161
2161
  for (u = 0, f = Math.min(o.length, e.length); u < f && (o[u] === e[u] || i && o[u][i] === e[u][i]); u++)
2162
- ie(e[u], o, u, r, i);
2163
- const P = new Array(e.length), x = /* @__PURE__ */ new Map();
2162
+ se(e[u], o, u, r, i);
2163
+ const S = new Array(e.length), C = /* @__PURE__ */ new Map();
2164
2164
  for (f = o.length - 1, d = e.length - 1; f >= u && d >= u && (o[f] === e[d] || i && o[f][i] === e[d][i]); f--, d--)
2165
- P[d] = o[f];
2165
+ S[d] = o[f];
2166
2166
  if (u > d || u > f) {
2167
2167
  for (c = u; c <= d; c++)
2168
- B(o, c, e[c]);
2168
+ L(o, c, e[c]);
2169
2169
  for (; c < e.length; c++)
2170
- B(o, c, P[c]), ie(e[c], o, c, r, i);
2171
- o.length > e.length && B(o, "length", e.length);
2170
+ L(o, c, S[c]), se(e[c], o, c, r, i);
2171
+ o.length > e.length && L(o, "length", e.length);
2172
2172
  return;
2173
2173
  }
2174
2174
  for (v = new Array(d + 1), c = d; c >= u; c--)
2175
- m = e[c], _ = i ? m[i] : m, l = x.get(_), v[c] = l === void 0 ? -1 : l, x.set(_, c);
2175
+ m = e[c], _ = i ? m[i] : m, l = C.get(_), v[c] = l === void 0 ? -1 : l, C.set(_, c);
2176
2176
  for (l = u; l <= f; l++)
2177
- m = o[l], _ = i ? m[i] : m, c = x.get(_), c !== void 0 && c !== -1 && (P[c] = o[l], c = v[c], x.set(_, c));
2177
+ m = o[l], _ = i ? m[i] : m, c = C.get(_), c !== void 0 && c !== -1 && (S[c] = o[l], c = v[c], C.set(_, c));
2178
2178
  for (c = u; c < e.length; c++)
2179
- c in P ? (B(o, c, P[c]), ie(e[c], o, c, r, i)) : B(o, c, e[c]);
2179
+ c in S ? (L(o, c, S[c]), se(e[c], o, c, r, i)) : L(o, c, e[c]);
2180
2180
  } else
2181
2181
  for (let l = 0, c = e.length; l < c; l++)
2182
- ie(e[l], o, l, r, i);
2183
- o.length > e.length && B(o, "length", e.length);
2182
+ se(e[l], o, l, r, i);
2183
+ o.length > e.length && L(o, "length", e.length);
2184
2184
  return;
2185
2185
  }
2186
2186
  const s = Object.keys(e);
2187
2187
  for (let l = 0, c = s.length; l < c; l++)
2188
- ie(e[s[l]], o, s[l], r, i);
2188
+ se(e[s[l]], o, s[l], r, i);
2189
2189
  const a = Object.keys(o);
2190
2190
  for (let l = 0, c = a.length; l < c; l++)
2191
- e[a[l]] === void 0 && B(o, a[l], void 0);
2191
+ e[a[l]] === void 0 && L(o, a[l], void 0);
2192
2192
  }
2193
- function Wo(e, t = {}) {
2193
+ function zo(e, t = {}) {
2194
2194
  const {
2195
2195
  merge: n,
2196
2196
  key: r = "id"
2197
- } = t, i = ce(e);
2197
+ } = t, i = ue(e);
2198
2198
  return (o) => {
2199
2199
  if (!Y(o) || !Y(i))
2200
2200
  return i;
2201
- const s = ie(i, {
2202
- [Ge]: o
2203
- }, Ge, n, r);
2201
+ const s = se(i, {
2202
+ [Je]: o
2203
+ }, Je, n, r);
2204
2204
  return s === void 0 ? o : s;
2205
2205
  };
2206
2206
  }
2207
- const Ko = /* @__PURE__ */ A('<a role="button"></a>'), Ho = /* @__PURE__ */ A("<button></button>");
2208
- function qo(e) {
2209
- return p(E, {
2207
+ const Go = /* @__PURE__ */ T('<a role="button"></a>'), Jo = /* @__PURE__ */ T("<button></button>");
2208
+ function Xo(e) {
2209
+ return p(A, {
2210
2210
  get fallback() {
2211
2211
  return (() => {
2212
- const t = Ho.cloneNode(!0);
2213
- return ne(t, () => e.attributes, !1, !0), R(t, () => e.text), w(() => U(t, H({
2212
+ const t = Jo.cloneNode(!0);
2213
+ return ne(t, () => e.attributes, !1, !0), N(t, () => e.text), w(() => U(t, q({
2214
2214
  all: "unset"
2215
2215
  }))), t;
2216
2216
  })();
@@ -2219,10 +2219,10 @@ function qo(e) {
2219
2219
  return e.link;
2220
2220
  },
2221
2221
  get children() {
2222
- const t = Ko.cloneNode(!0);
2223
- return ne(t, () => e.attributes, !1, !0), R(t, () => e.text), w((n) => {
2222
+ const t = Go.cloneNode(!0);
2223
+ return ne(t, () => e.attributes, !1, !0), N(t, () => e.text), w((n) => {
2224
2224
  const r = e.link, i = e.openLinkInNewTab ? "_blank" : void 0;
2225
- return r !== n._v$ && $(t, "href", n._v$ = r), i !== n._v$2 && $(t, "target", n._v$2 = i), n;
2225
+ return r !== n._v$ && x(t, "href", n._v$ = r), i !== n._v$2 && x(t, "target", n._v$2 = i), n;
2226
2226
  }, {
2227
2227
  _v$: void 0,
2228
2228
  _v$2: void 0
@@ -2230,7 +2230,7 @@ function qo(e) {
2230
2230
  }
2231
2231
  });
2232
2232
  }
2233
- const zo = {
2233
+ const Yo = {
2234
2234
  name: "Core:Button",
2235
2235
  builtIn: !0,
2236
2236
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
@@ -2267,10 +2267,10 @@ const zo = {
2267
2267
  ],
2268
2268
  static: !0,
2269
2269
  noWrap: !0
2270
- }, Te = (e) => {
2270
+ }, je = (e) => {
2271
2271
  const t = e.toString().trim();
2272
2272
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
2273
- }, Go = {
2273
+ }, Qo = {
2274
2274
  name: "Columns",
2275
2275
  builtIn: !0,
2276
2276
  inputs: [
@@ -2458,7 +2458,7 @@ const zo = {
2458
2458
  ]
2459
2459
  }
2460
2460
  ],
2461
- onChange: Te((e) => {
2461
+ onChange: je((e) => {
2462
2462
  function t() {
2463
2463
  n.forEach((r) => {
2464
2464
  r.delete("width");
@@ -2491,21 +2491,21 @@ const zo = {
2491
2491
  advanced: !0
2492
2492
  }
2493
2493
  ]
2494
- }, Jo = {
2494
+ }, Zo = {
2495
2495
  name: "Fragment",
2496
2496
  static: !0,
2497
2497
  hidden: !0,
2498
2498
  builtIn: !0,
2499
2499
  canHaveChildren: !0,
2500
2500
  noWrap: !0
2501
- }, Xo = /* @__PURE__ */ A("<span></span>");
2502
- function Yo(e) {
2501
+ }, ei = /* @__PURE__ */ T("<span></span>");
2502
+ function ti(e) {
2503
2503
  return (() => {
2504
- const t = Xo.cloneNode(!0);
2505
- return R(t, () => e.children), t;
2504
+ const t = ei.cloneNode(!0);
2505
+ return N(t, () => e.children), t;
2506
2506
  })();
2507
2507
  }
2508
- const Qo = {
2508
+ const ni = {
2509
2509
  name: "Image",
2510
2510
  static: !0,
2511
2511
  builtIn: !0,
@@ -2525,7 +2525,7 @@ const Qo = {
2525
2525
  allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
2526
2526
  required: !0,
2527
2527
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
2528
- onChange: Te((e) => {
2528
+ onChange: je((e) => {
2529
2529
  e.delete("srcset"), e.delete("noWebp");
2530
2530
  function n(s, a = 6e4) {
2531
2531
  return new Promise((l, c) => {
@@ -2631,7 +2631,7 @@ const Qo = {
2631
2631
  defaultValue: 0.7041
2632
2632
  }
2633
2633
  ]
2634
- }, Zo = {
2634
+ }, ri = {
2635
2635
  name: "Core:Section",
2636
2636
  static: !0,
2637
2637
  builtIn: !0,
@@ -2676,14 +2676,14 @@ const Qo = {
2676
2676
  }
2677
2677
  }
2678
2678
  ]
2679
- }, ei = /* @__PURE__ */ A("<section></section>");
2680
- function ti(e) {
2679
+ }, oi = /* @__PURE__ */ T("<section></section>");
2680
+ function ii(e) {
2681
2681
  return (() => {
2682
- const t = ei.cloneNode(!0);
2683
- return ne(t, () => e.attributes, !1, !0), t.style.setProperty("width", "100%"), t.style.setProperty("align-self", "stretch"), t.style.setProperty("flex-grow", "1"), t.style.setProperty("box-sizing", "border-box"), t.style.setProperty("display", "flex"), t.style.setProperty("flex-direction", "column"), t.style.setProperty("align-items", "stretch"), t.style.setProperty("margin-left", "auto"), t.style.setProperty("margin-right", "auto"), R(t, () => e.children), w(() => t.style.setProperty("max-width", `${e.maxWidth && typeof e.maxWidth == "number" ? e.maxWidth : 1200}px`)), t;
2682
+ const t = oi.cloneNode(!0);
2683
+ return ne(t, () => e.attributes, !1, !0), t.style.setProperty("width", "100%"), t.style.setProperty("align-self", "stretch"), t.style.setProperty("flex-grow", "1"), t.style.setProperty("box-sizing", "border-box"), t.style.setProperty("display", "flex"), t.style.setProperty("flex-direction", "column"), t.style.setProperty("align-items", "stretch"), t.style.setProperty("margin-left", "auto"), t.style.setProperty("margin-right", "auto"), N(t, () => e.children), w(() => t.style.setProperty("max-width", `${e.maxWidth && typeof e.maxWidth == "number" ? e.maxWidth : 1200}px`)), t;
2684
2684
  })();
2685
2685
  }
2686
- const ni = {
2686
+ const si = {
2687
2687
  name: "Symbol",
2688
2688
  noWrap: !0,
2689
2689
  static: !0,
@@ -2722,7 +2722,7 @@ const ni = {
2722
2722
  type: "boolean"
2723
2723
  }
2724
2724
  ]
2725
- }, ri = {
2725
+ }, ai = {
2726
2726
  name: "Text",
2727
2727
  static: !0,
2728
2728
  builtIn: !0,
@@ -2742,7 +2742,7 @@ const ni = {
2742
2742
  height: "auto",
2743
2743
  textAlign: "center"
2744
2744
  }
2745
- }, oi = {
2745
+ }, li = {
2746
2746
  name: "Video",
2747
2747
  canHaveChildren: !0,
2748
2748
  builtIn: !0,
@@ -2844,7 +2844,7 @@ const ni = {
2844
2844
  advanced: !0
2845
2845
  }
2846
2846
  ]
2847
- }, ii = {
2847
+ }, ci = {
2848
2848
  name: "Embed",
2849
2849
  static: !0,
2850
2850
  builtIn: !0,
@@ -2855,7 +2855,7 @@ const ni = {
2855
2855
  required: !0,
2856
2856
  defaultValue: "",
2857
2857
  helperText: "e.g. enter a youtube url, google map, etc",
2858
- onChange: Te((e) => {
2858
+ onChange: je((e) => {
2859
2859
  const t = e.get("url");
2860
2860
  if (t)
2861
2861
  return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((r) => r.json()).then((r) => {
@@ -2873,13 +2873,13 @@ const ni = {
2873
2873
  hideFromUI: !0
2874
2874
  }
2875
2875
  ]
2876
- }, si = [
2876
+ }, ui = [
2877
2877
  "text/javascript",
2878
2878
  "application/javascript",
2879
2879
  "application/ecmascript"
2880
- ], ai = (e) => si.includes(e.type), li = /* @__PURE__ */ A('<div class="builder-embed"></div>');
2881
- function ci(e) {
2882
- const [t, n] = k([]), [r, i] = k([]), [o, s] = k(!1);
2880
+ ], di = (e) => ui.includes(e.type), fi = /* @__PURE__ */ T('<div class="builder-embed"></div>');
2881
+ function mi(e) {
2882
+ const [t, n] = O([]), [r, i] = O([]), [o, s] = O(!1);
2883
2883
  function a() {
2884
2884
  if (!l || !l.getElementsByTagName)
2885
2885
  return;
@@ -2890,7 +2890,7 @@ function ci(e) {
2890
2890
  t().push(d.src);
2891
2891
  const m = document.createElement("script");
2892
2892
  m.async = !0, m.src = d.src, document.head.appendChild(m);
2893
- } else if (ai(d) && !r().includes(d.innerText))
2893
+ } else if (di(d) && !r().includes(d.innerText))
2894
2894
  try {
2895
2895
  r().push(d.innerText), new Function(d.innerText)();
2896
2896
  } catch (m) {
@@ -2902,18 +2902,18 @@ function ci(e) {
2902
2902
  function c() {
2903
2903
  l && !o() && (s(!0), a());
2904
2904
  }
2905
- return ee(se(() => [l, o()], c)), (() => {
2906
- const u = li.cloneNode(!0), f = l;
2905
+ return ee(ae(() => [l, o()], c)), (() => {
2906
+ const u = fi.cloneNode(!0), f = l;
2907
2907
  return typeof f == "function" ? it(f, u) : l = u, w(() => u.innerHTML = e.content), u;
2908
2908
  })();
2909
2909
  }
2910
- const ui = /* @__PURE__ */ A("<img>");
2911
- function di(e) {
2910
+ const hi = /* @__PURE__ */ T("<img>");
2911
+ function gi(e) {
2912
2912
  return (() => {
2913
- const t = ui.cloneNode(!0);
2913
+ const t = hi.cloneNode(!0);
2914
2914
  return ne(t, () => e.attributes, !1, !1), w((n) => {
2915
- const r = e.backgroundSize || "cover", i = e.backgroundPosition || "center", o = q() && e.imgSrc || "default-key", s = e.altText, a = e.imgSrc || e.image;
2916
- return r !== n._v$ && t.style.setProperty("object-fit", n._v$ = r), i !== n._v$2 && t.style.setProperty("object-position", n._v$2 = i), o !== n._v$3 && $(t, "key", n._v$3 = o), s !== n._v$4 && $(t, "alt", n._v$4 = s), a !== n._v$5 && $(t, "src", n._v$5 = a), n;
2915
+ const r = e.backgroundSize || "cover", i = e.backgroundPosition || "center", o = z() && e.imgSrc || "default-key", s = e.altText, a = e.imgSrc || e.image;
2916
+ return r !== n._v$ && t.style.setProperty("object-fit", n._v$ = r), i !== n._v$2 && t.style.setProperty("object-position", n._v$2 = i), o !== n._v$3 && x(t, "key", n._v$3 = o), s !== n._v$4 && x(t, "alt", n._v$4 = s), a !== n._v$5 && x(t, "src", n._v$5 = a), n;
2917
2917
  }, {
2918
2918
  _v$: void 0,
2919
2919
  _v$2: void 0,
@@ -2923,7 +2923,7 @@ function di(e) {
2923
2923
  }), t;
2924
2924
  })();
2925
2925
  }
2926
- const fi = {
2926
+ const pi = {
2927
2927
  name: "Raw:Img",
2928
2928
  hideFromInsertMenu: !0,
2929
2929
  builtIn: !0,
@@ -2939,9 +2939,9 @@ const fi = {
2939
2939
  ],
2940
2940
  noWrap: !0,
2941
2941
  static: !0
2942
- }, mi = /* @__PURE__ */ A("<div></div>");
2943
- function hi(e) {
2944
- const [t, n] = k([]), [r, i] = k([]);
2942
+ }, yi = /* @__PURE__ */ T("<div></div>");
2943
+ function bi(e) {
2944
+ const [t, n] = O([]), [r, i] = O([]);
2945
2945
  function o() {
2946
2946
  if (s && s.getElementsByTagName && typeof window < "u") {
2947
2947
  const a = s.getElementsByTagName("script");
@@ -2966,10 +2966,10 @@ function hi(e) {
2966
2966
  }
2967
2967
  }
2968
2968
  let s;
2969
- return an(() => {
2969
+ return cn(() => {
2970
2970
  o();
2971
2971
  }), (() => {
2972
- const a = mi.cloneNode(!0), l = s;
2972
+ const a = yi.cloneNode(!0), l = s;
2973
2973
  return typeof l == "function" ? it(l, a) : s = a, w((c) => {
2974
2974
  const u = "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : ""), f = e.code;
2975
2975
  return u !== c._v$ && U(a, c._v$ = u), f !== c._v$2 && (a.innerHTML = c._v$2 = f), c;
@@ -2979,7 +2979,7 @@ function hi(e) {
2979
2979
  }), a;
2980
2980
  })();
2981
2981
  }
2982
- const gi = {
2982
+ const vi = {
2983
2983
  name: "Custom Code",
2984
2984
  static: !0,
2985
2985
  builtIn: !0,
@@ -3007,44 +3007,44 @@ const gi = {
3007
3007
  }
3008
3008
  ]
3009
3009
  };
3010
- var pi = Object.defineProperty, Wt = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, bi = Object.prototype.propertyIsEnumerable, Kt = (e, t, n) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, V = (e, t) => {
3010
+ var wi = Object.defineProperty, Wt = Object.getOwnPropertySymbols, _i = Object.prototype.hasOwnProperty, xi = Object.prototype.propertyIsEnumerable, Kt = (e, t, n) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, M = (e, t) => {
3011
3011
  for (var n in t || (t = {}))
3012
- yi.call(t, n) && Kt(e, n, t[n]);
3012
+ _i.call(t, n) && Kt(e, n, t[n]);
3013
3013
  if (Wt)
3014
3014
  for (var n of Wt(t))
3015
- bi.call(t, n) && Kt(e, n, t[n]);
3015
+ xi.call(t, n) && Kt(e, n, t[n]);
3016
3016
  return e;
3017
3017
  };
3018
- const vi = () => [
3019
- V({ component: ko }, Go),
3020
- V({ component: To }, Qo),
3021
- V({ component: di }, fi),
3022
- V({ component: Ro }, ri),
3023
- V({ component: Fo }, oi),
3024
- V({ component: Cs }, ni),
3025
- V({ component: qo }, zo),
3026
- V({ component: ti }, Zo),
3027
- V({ component: Yo }, Jo),
3028
- V({ component: ci }, ii),
3029
- V({ component: hi }, gi)
3018
+ const $i = () => [
3019
+ M({ component: Ao }, Qo),
3020
+ M({ component: Fo }, ni),
3021
+ M({ component: gi }, pi),
3022
+ M({ component: Lo }, ai),
3023
+ M({ component: Mo }, li),
3024
+ M({ component: Ls }, si),
3025
+ M({ component: Xo }, Yo),
3026
+ M({ component: ii }, ri),
3027
+ M({ component: ti }, Zo),
3028
+ M({ component: mi }, ci),
3029
+ M({ component: bi }, vi)
3030
3030
  ];
3031
- function wi() {
3031
+ function Si() {
3032
3032
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
3033
3033
  }
3034
- function _i() {
3035
- const e = wi().fetch;
3034
+ function Pi() {
3035
+ const e = Si().fetch;
3036
3036
  if (typeof e > "u")
3037
3037
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
3038
3038
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
3039
3039
  return e;
3040
3040
  }
3041
- const kn = _i(), xi = (e) => {
3041
+ const In = Pi(), Oi = (e) => {
3042
3042
  if (e === "localhost" || e === "127.0.0.1")
3043
3043
  return e;
3044
3044
  const t = e.split(".");
3045
3045
  return t.length > 2 ? t.slice(1).join(".") : e;
3046
3046
  };
3047
- var Cn = (e, t, n) => new Promise((r, i) => {
3047
+ var En = (e, t, n) => new Promise((r, i) => {
3048
3048
  var o = (l) => {
3049
3049
  try {
3050
3050
  a(n.next(l));
@@ -3060,7 +3060,7 @@ var Cn = (e, t, n) => new Promise((r, i) => {
3060
3060
  }, a = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, s);
3061
3061
  a((n = n.apply(e, t)).next());
3062
3062
  });
3063
- const In = (e) => Cn(void 0, [e], function* ({
3063
+ const An = (e) => En(void 0, [e], function* ({
3064
3064
  name: t,
3065
3065
  canTrack: n
3066
3066
  }) {
@@ -3071,23 +3071,23 @@ const In = (e) => Cn(void 0, [e], function* ({
3071
3071
  console.debug("[COOKIE] GET error: ", i);
3072
3072
  return;
3073
3073
  }
3074
- }), $i = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(re).join("; "), Si = [
3074
+ }), ki = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(re).join("; "), Ci = [
3075
3075
  ["secure", ""],
3076
3076
  ["SameSite", "None"]
3077
- ], Pi = ({
3077
+ ], Ii = ({
3078
3078
  name: e,
3079
3079
  value: t,
3080
3080
  expires: n
3081
3081
  }) => {
3082
- const i = (L() ? location.protocol === "https:" : !0) ? Si : [[]], o = n ? [["expires", n.toUTCString()]] : [[]], s = [
3082
+ const i = (B() ? location.protocol === "https:" : !0) ? Ci : [[]], o = n ? [["expires", n.toUTCString()]] : [[]], s = [
3083
3083
  [e, t],
3084
3084
  ...o,
3085
3085
  ["path", "/"],
3086
- ["domain", xi(window.location.hostname)],
3086
+ ["domain", Oi(window.location.hostname)],
3087
3087
  ...i
3088
3088
  ];
3089
- return $i(s);
3090
- }, En = (e) => Cn(void 0, [e], function* ({
3089
+ return ki(s);
3090
+ }, Tn = (e) => En(void 0, [e], function* ({
3091
3091
  name: t,
3092
3092
  value: n,
3093
3093
  expires: r,
@@ -3096,20 +3096,20 @@ const In = (e) => Cn(void 0, [e], function* ({
3096
3096
  try {
3097
3097
  if (!i)
3098
3098
  return;
3099
- const o = Pi({ name: t, value: n, expires: r });
3099
+ const o = Ii({ name: t, value: n, expires: r });
3100
3100
  document.cookie = o;
3101
3101
  } catch (o) {
3102
3102
  console.warn("[COOKIE] SET error: ", o);
3103
3103
  }
3104
- }), Oi = "builderio.variations", An = (e) => `${Oi}.${e}`, ki = ({
3104
+ }), Ei = "builderio.variations", jn = (e) => `${Ei}.${e}`, Ai = ({
3105
3105
  contentId: e,
3106
3106
  canTrack: t
3107
- }) => In({ name: An(e), canTrack: t }), Ci = ({
3107
+ }) => An({ name: jn(e), canTrack: t }), Ti = ({
3108
3108
  contentId: e,
3109
3109
  canTrack: t,
3110
3110
  value: n
3111
- }) => En({ name: An(e), value: n, canTrack: t });
3112
- var Tn = (e, t, n) => new Promise((r, i) => {
3111
+ }) => Tn({ name: jn(e), value: n, canTrack: t });
3112
+ var Rn = (e, t, n) => new Promise((r, i) => {
3113
3113
  var o = (l) => {
3114
3114
  try {
3115
3115
  a(n.next(l));
@@ -3125,7 +3125,7 @@ var Tn = (e, t, n) => new Promise((r, i) => {
3125
3125
  }, a = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, s);
3126
3126
  a((n = n.apply(e, t)).next());
3127
3127
  });
3128
- const Ii = (e) => re(e.id) && re(e.variations) && Object.keys(e.variations).length > 0, Ei = ({
3128
+ const ji = (e) => re(e.id) && re(e.variations) && Object.keys(e.variations).length > 0, Ri = ({
3129
3129
  id: e,
3130
3130
  variations: t
3131
3131
  }) => {
@@ -3149,22 +3149,22 @@ const Ii = (e) => re(e.id) && re(e.variations) && Object.keys(e.variations).leng
3149
3149
  testVariationId: n.id,
3150
3150
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
3151
3151
  };
3152
- }, Ai = (e) => Tn(void 0, [e], function* ({
3152
+ }, Ni = (e) => Rn(void 0, [e], function* ({
3153
3153
  item: t,
3154
3154
  canTrack: n
3155
3155
  }) {
3156
- const r = yield ki({
3156
+ const r = yield Ai({
3157
3157
  canTrack: n,
3158
3158
  contentId: t.id
3159
3159
  }), i = r ? Ht({ item: t, testGroupId: r }) : void 0;
3160
3160
  if (i)
3161
3161
  return i;
3162
3162
  {
3163
- const o = Ei({
3163
+ const o = Ri({
3164
3164
  variations: t.variations,
3165
3165
  id: t.id
3166
3166
  });
3167
- return Ci({
3167
+ return Ti({
3168
3168
  contentId: t.id,
3169
3169
  value: o,
3170
3170
  canTrack: n
@@ -3172,63 +3172,63 @@ const Ii = (e) => re(e.id) && re(e.variations) && Object.keys(e.variations).leng
3172
3172
  console.error("could not store A/B test variation: ", s);
3173
3173
  }), Ht({ item: t, testGroupId: o });
3174
3174
  }
3175
- }), Ti = (e) => Tn(void 0, [e], function* ({
3175
+ }), Fi = (e) => Rn(void 0, [e], function* ({
3176
3176
  item: t,
3177
3177
  canTrack: n
3178
3178
  }) {
3179
- if (!Ii(t))
3179
+ if (!ji(t))
3180
3180
  return;
3181
- const r = yield Ai({ item: t, canTrack: n });
3181
+ const r = yield Ni({ item: t, canTrack: n });
3182
3182
  Object.assign(t, r);
3183
3183
  });
3184
- var ji = Object.defineProperty, Ri = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, qt = Object.getOwnPropertySymbols, Fi = Object.prototype.hasOwnProperty, Bi = Object.prototype.propertyIsEnumerable, zt = (e, t, n) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Me = (e, t) => {
3184
+ var Bi = Object.defineProperty, Li = Object.defineProperties, Di = Object.getOwnPropertyDescriptors, qt = Object.getOwnPropertySymbols, Mi = Object.prototype.hasOwnProperty, Vi = Object.prototype.propertyIsEnumerable, zt = (e, t, n) => t in e ? Bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ue = (e, t) => {
3185
3185
  for (var n in t || (t = {}))
3186
- Fi.call(t, n) && zt(e, n, t[n]);
3186
+ Mi.call(t, n) && zt(e, n, t[n]);
3187
3187
  if (qt)
3188
3188
  for (var n of qt(t))
3189
- Bi.call(t, n) && zt(e, n, t[n]);
3189
+ Vi.call(t, n) && zt(e, n, t[n]);
3190
3190
  return e;
3191
- }, Li = (e, t) => Ri(e, Ni(t));
3192
- function Je(e, t = null, n = ".") {
3191
+ }, Ui = (e, t) => Li(e, Di(t));
3192
+ function Xe(e, t = null, n = ".") {
3193
3193
  return Object.keys(e).reduce((r, i) => {
3194
3194
  const o = e[i], s = [t, i].filter(Boolean).join(n);
3195
3195
  return [
3196
3196
  typeof o == "object",
3197
3197
  o !== null,
3198
3198
  !(Array.isArray(o) && o.length === 0)
3199
- ].every(Boolean) ? Me(Me({}, r), Je(o, s, n)) : Li(Me({}, r), { [s]: o });
3199
+ ].every(Boolean) ? Ue(Ue({}, r), Xe(o, s, n)) : Ui(Ue({}, r), { [s]: o });
3200
3200
  }, {});
3201
3201
  }
3202
- const Gt = "builder.", Di = "options.", Vi = (e) => {
3202
+ const Gt = "builder.", Wi = "options.", Ki = (e) => {
3203
3203
  const t = {};
3204
3204
  return e.forEach((n, r) => {
3205
3205
  t[r] = n;
3206
3206
  }), t;
3207
- }, Mi = (e) => {
3207
+ }, Hi = (e) => {
3208
3208
  if (!e)
3209
3209
  return {};
3210
- const t = jn(e), n = {};
3210
+ const t = Nn(e), n = {};
3211
3211
  return Object.keys(t).forEach((r) => {
3212
3212
  if (r.startsWith(Gt)) {
3213
- const i = r.replace(Gt, "").replace(Di, "");
3213
+ const i = r.replace(Gt, "").replace(Wi, "");
3214
3214
  n[i] = t[r];
3215
3215
  }
3216
3216
  }), n;
3217
- }, Ui = () => {
3218
- if (!L())
3217
+ }, qi = () => {
3218
+ if (!B())
3219
3219
  return {};
3220
3220
  const e = new URLSearchParams(window.location.search);
3221
- return Mi(e);
3222
- }, jn = (e) => e instanceof URLSearchParams ? Vi(e) : e;
3223
- var Wi = Object.defineProperty, Jt = Object.getOwnPropertySymbols, Ki = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, Xt = (e, t, n) => t in e ? Wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
3221
+ return Hi(e);
3222
+ }, Nn = (e) => e instanceof URLSearchParams ? Ki(e) : e;
3223
+ var zi = Object.defineProperty, Jt = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, Ji = Object.prototype.propertyIsEnumerable, Xt = (e, t, n) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
3224
3224
  for (var n in t || (t = {}))
3225
- Ki.call(t, n) && Xt(e, n, t[n]);
3225
+ Gi.call(t, n) && Xt(e, n, t[n]);
3226
3226
  if (Jt)
3227
3227
  for (var n of Jt(t))
3228
- Hi.call(t, n) && Xt(e, n, t[n]);
3228
+ Ji.call(t, n) && Xt(e, n, t[n]);
3229
3229
  return e;
3230
3230
  };
3231
- const qi = (e) => {
3231
+ const Xi = (e) => {
3232
3232
  const {
3233
3233
  limit: t = 30,
3234
3234
  userAttributes: n,
@@ -3241,24 +3241,24 @@ const qi = (e) => {
3241
3241
  } = e;
3242
3242
  if (!s)
3243
3243
  throw new Error("Missing API key");
3244
- const c = new URL(`https://cdn.builder.io/api/v2/content/${o}?apiKey=${s}&limit=${t}&noTraverse=${i}&includeRefs=${a}${l ? `&locale=${l}` : ""}`), u = Yt(Yt({}, Ui()), jn(e.options || {})), f = Je(u);
3244
+ const c = new URL(`https://cdn.builder.io/api/v2/content/${o}?apiKey=${s}&limit=${t}&noTraverse=${i}&includeRefs=${a}${l ? `&locale=${l}` : ""}`), u = Yt(Yt({}, qi()), Nn(e.options || {})), f = Xe(u);
3245
3245
  for (const d in f)
3246
3246
  c.searchParams.set(d, String(f[d]));
3247
3247
  if (n && c.searchParams.set("userAttributes", JSON.stringify(n)), r) {
3248
- const d = Je({ query: r });
3248
+ const d = Xe({ query: r });
3249
3249
  for (const m in d)
3250
3250
  c.searchParams.set(m, JSON.stringify(d[m]));
3251
3251
  }
3252
3252
  return c;
3253
3253
  };
3254
- var zi = Object.defineProperty, Gi = Object.defineProperties, Ji = Object.getOwnPropertyDescriptors, Qt = Object.getOwnPropertySymbols, Xi = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, Zt = (e, t, n) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Qi = (e, t) => {
3254
+ var Yi = Object.defineProperty, Qi = Object.defineProperties, Zi = Object.getOwnPropertyDescriptors, Qt = Object.getOwnPropertySymbols, es = Object.prototype.hasOwnProperty, ts = Object.prototype.propertyIsEnumerable, Zt = (e, t, n) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ns = (e, t) => {
3255
3255
  for (var n in t || (t = {}))
3256
- Xi.call(t, n) && Zt(e, n, t[n]);
3256
+ es.call(t, n) && Zt(e, n, t[n]);
3257
3257
  if (Qt)
3258
3258
  for (var n of Qt(t))
3259
- Yi.call(t, n) && Zt(e, n, t[n]);
3259
+ ts.call(t, n) && Zt(e, n, t[n]);
3260
3260
  return e;
3261
- }, Zi = (e, t) => Gi(e, Ji(t)), Rn = (e, t, n) => new Promise((r, i) => {
3261
+ }, rs = (e, t) => Qi(e, Zi(t)), Fn = (e, t, n) => new Promise((r, i) => {
3262
3262
  var o = (l) => {
3263
3263
  try {
3264
3264
  a(n.next(l));
@@ -3274,73 +3274,73 @@ var zi = Object.defineProperty, Gi = Object.defineProperties, Ji = Object.getOwn
3274
3274
  }, a = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, s);
3275
3275
  a((n = n.apply(e, t)).next());
3276
3276
  });
3277
- function Nn(e) {
3278
- return Rn(this, null, function* () {
3279
- return (yield es(Zi(Qi({}, e), { limit: 1 }))).results[0] || null;
3277
+ function Bn(e) {
3278
+ return Fn(this, null, function* () {
3279
+ return (yield os(rs(ns({}, e), { limit: 1 }))).results[0] || null;
3280
3280
  });
3281
3281
  }
3282
- function es(e) {
3283
- return Rn(this, null, function* () {
3284
- const t = qi(e), r = yield (yield kn(t.href)).json(), i = e.canTrack !== !1;
3282
+ function os(e) {
3283
+ return Fn(this, null, function* () {
3284
+ const t = Xi(e), r = yield (yield In(t.href)).json(), i = e.canTrack !== !1;
3285
3285
  if (i && Array.isArray(r.results))
3286
3286
  for (const o of r.results)
3287
- yield Ti({ item: o, canTrack: i });
3287
+ yield Fi({ item: o, canTrack: i });
3288
3288
  return r;
3289
3289
  });
3290
3290
  }
3291
- function ts() {
3292
- return !L() || q() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
3291
+ function is() {
3292
+ return !B() || z() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
3293
3293
  }
3294
- var ns = Object.defineProperty, rs = Object.defineProperties, os = Object.getOwnPropertyDescriptors, ke = Object.getOwnPropertySymbols, Fn = Object.prototype.hasOwnProperty, Bn = Object.prototype.propertyIsEnumerable, en = (e, t, n) => t in e ? ns(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Xe = (e, t) => {
3294
+ var ss = Object.defineProperty, as = Object.defineProperties, ls = Object.getOwnPropertyDescriptors, Ce = Object.getOwnPropertySymbols, Ln = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, en = (e, t, n) => t in e ? ss(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ye = (e, t) => {
3295
3295
  for (var n in t || (t = {}))
3296
- Fn.call(t, n) && en(e, n, t[n]);
3297
- if (ke)
3298
- for (var n of ke(t))
3299
- Bn.call(t, n) && en(e, n, t[n]);
3296
+ Ln.call(t, n) && en(e, n, t[n]);
3297
+ if (Ce)
3298
+ for (var n of Ce(t))
3299
+ Dn.call(t, n) && en(e, n, t[n]);
3300
3300
  return e;
3301
- }, tn = (e, t) => rs(e, os(t)), Ln = (e, t) => {
3301
+ }, tn = (e, t) => as(e, ls(t)), Mn = (e, t) => {
3302
3302
  var n = {};
3303
3303
  for (var r in e)
3304
- Fn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3305
- if (e != null && ke)
3306
- for (var r of ke(e))
3307
- t.indexOf(r) < 0 && Bn.call(e, r) && (n[r] = e[r]);
3304
+ Ln.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3305
+ if (e != null && Ce)
3306
+ for (var r of Ce(e))
3307
+ t.indexOf(r) < 0 && Dn.call(e, r) && (n[r] = e[r]);
3308
3308
  return n;
3309
3309
  };
3310
- const Dn = [];
3311
- function Is(e, t) {
3312
- return Dn.push(Xe({ component: e }, t)), console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."), e;
3310
+ const Vn = [];
3311
+ function Ds(e, t) {
3312
+ return Vn.push(Ye({ component: e }, t)), console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."), e;
3313
3313
  }
3314
- const is = (e) => {
3315
- var t = e, n = Ln(t, [
3314
+ const cs = (e) => {
3315
+ var t = e, n = Mn(t, [
3316
3316
  "component"
3317
3317
  ]);
3318
3318
  return {
3319
3319
  type: "builder.registerComponent",
3320
- data: as(n)
3320
+ data: ds(n)
3321
3321
  };
3322
- }, ss = (e) => typeof e == "function" ? Te(e) : Ee(e), as = (e) => {
3322
+ }, us = (e) => typeof e == "function" ? je(e) : Ae(e), ds = (e) => {
3323
3323
  var t = e, {
3324
3324
  inputs: n
3325
- } = t, r = Ln(t, [
3325
+ } = t, r = Mn(t, [
3326
3326
  "inputs"
3327
3327
  ]);
3328
- return tn(Xe({}, Ee(r)), {
3329
- inputs: n == null ? void 0 : n.map((i) => Object.entries(i).reduce((o, [s, a]) => tn(Xe({}, o), {
3330
- [s]: ss(a)
3328
+ return tn(Ye({}, Ae(r)), {
3329
+ inputs: n == null ? void 0 : n.map((i) => Object.entries(i).reduce((o, [s, a]) => tn(Ye({}, o), {
3330
+ [s]: us(a)
3331
3331
  }), {}))
3332
3332
  });
3333
3333
  };
3334
- function ls() {
3334
+ function fs() {
3335
3335
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
3336
3336
  const t = Math.random() * 16 | 0;
3337
3337
  return (e == "x" ? t : t & 3 | 8).toString(16);
3338
3338
  });
3339
3339
  }
3340
- function Vn() {
3341
- return ls().replace(/-/g, "");
3340
+ function Un() {
3341
+ return fs().replace(/-/g, "");
3342
3342
  }
3343
- var cs = (e, t, n) => new Promise((r, i) => {
3343
+ var ms = (e, t, n) => new Promise((r, i) => {
3344
3344
  var o = (l) => {
3345
3345
  try {
3346
3346
  a(n.next(l));
@@ -3356,81 +3356,113 @@ var cs = (e, t, n) => new Promise((r, i) => {
3356
3356
  }, a = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, s);
3357
3357
  a((n = n.apply(e, t)).next());
3358
3358
  });
3359
- const Mn = "builderSessionId", us = (e) => cs(void 0, [e], function* ({
3359
+ const Wn = "builderSessionId", hs = (e) => ms(void 0, [e], function* ({
3360
3360
  canTrack: t
3361
3361
  }) {
3362
3362
  if (!t)
3363
3363
  return;
3364
- const n = yield In({
3365
- name: Mn,
3364
+ const n = yield An({
3365
+ name: Wn,
3366
3366
  canTrack: t
3367
3367
  });
3368
3368
  if (re(n))
3369
3369
  return n;
3370
3370
  {
3371
- const r = ds();
3372
- return fs({ id: r, canTrack: t }), r;
3371
+ const r = gs();
3372
+ return ps({ id: r, canTrack: t }), r;
3373
3373
  }
3374
- }), ds = () => Vn(), fs = ({
3374
+ }), gs = () => Un(), ps = ({
3375
3375
  id: e,
3376
3376
  canTrack: t
3377
- }) => En({ name: Mn, value: e, canTrack: t }), Un = () => L() && typeof localStorage < "u" ? localStorage : void 0, ms = ({
3377
+ }) => Tn({ name: Wn, value: e, canTrack: t }), Kn = () => B() && typeof localStorage < "u" ? localStorage : void 0, ys = ({
3378
3378
  key: e,
3379
3379
  canTrack: t
3380
3380
  }) => {
3381
3381
  var n;
3382
3382
  try {
3383
- return t ? (n = Un()) == null ? void 0 : n.getItem(e) : void 0;
3383
+ return t ? (n = Kn()) == null ? void 0 : n.getItem(e) : void 0;
3384
3384
  } catch (r) {
3385
3385
  console.debug("[LocalStorage] GET error: ", r);
3386
3386
  return;
3387
3387
  }
3388
- }, hs = ({
3388
+ }, bs = ({
3389
3389
  key: e,
3390
3390
  canTrack: t,
3391
3391
  value: n
3392
3392
  }) => {
3393
3393
  var r;
3394
3394
  try {
3395
- t && ((r = Un()) == null || r.setItem(e, n));
3395
+ t && ((r = Kn()) == null || r.setItem(e, n));
3396
3396
  } catch (i) {
3397
3397
  console.debug("[LocalStorage] SET error: ", i);
3398
3398
  }
3399
- }, Wn = "builderVisitorId", gs = ({ canTrack: e }) => {
3399
+ }, Hn = "builderVisitorId", vs = ({ canTrack: e }) => {
3400
3400
  if (!e)
3401
3401
  return;
3402
- const t = ms({
3403
- key: Wn,
3402
+ const t = ys({
3403
+ key: Hn,
3404
3404
  canTrack: e
3405
3405
  });
3406
3406
  if (re(t))
3407
3407
  return t;
3408
3408
  {
3409
- const n = ps();
3410
- return ys({ id: n, canTrack: e }), n;
3409
+ const n = ws();
3410
+ return _s({ id: n, canTrack: e }), n;
3411
3411
  }
3412
- }, ps = () => Vn(), ys = ({
3412
+ }, ws = () => Un(), _s = ({
3413
3413
  id: e,
3414
3414
  canTrack: t
3415
- }) => hs({
3416
- key: Wn,
3415
+ }) => bs({
3416
+ key: Hn,
3417
3417
  value: e,
3418
3418
  canTrack: t
3419
- });
3420
- var bs = Object.defineProperty, vs = Object.defineProperties, ws = Object.getOwnPropertyDescriptors, Ce = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, Hn = Object.prototype.propertyIsEnumerable, nn = (e, t, n) => t in e ? bs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ye = (e, t) => {
3419
+ }), xs = () => {
3420
+ if (B()) {
3421
+ const e = new URL(location.href);
3422
+ return e.pathname === "" && (e.pathname = "/"), e;
3423
+ } else
3424
+ return console.warn("Cannot get location for tracking in non-browser environment"), null;
3425
+ }, $s = () => typeof navigator == "object" && navigator.userAgent || "", Ss = () => {
3426
+ const e = $s(), t = {
3427
+ Android() {
3428
+ return e.match(/Android/i);
3429
+ },
3430
+ BlackBerry() {
3431
+ return e.match(/BlackBerry/i);
3432
+ },
3433
+ iOS() {
3434
+ return e.match(/iPhone|iPod/i);
3435
+ },
3436
+ Opera() {
3437
+ return e.match(/Opera Mini/i);
3438
+ },
3439
+ Windows() {
3440
+ return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
3441
+ },
3442
+ any() {
3443
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || oe === "reactNative";
3444
+ }
3445
+ }, n = e.match(/Tablet|iPad/i), r = xs();
3446
+ return {
3447
+ urlPath: r == null ? void 0 : r.pathname,
3448
+ host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
3449
+ device: n ? "tablet" : t.any() ? "mobile" : "desktop"
3450
+ };
3451
+ };
3452
+ var Ps = Object.defineProperty, Os = Object.defineProperties, ks = Object.getOwnPropertyDescriptors, Ie = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, zn = Object.prototype.propertyIsEnumerable, nn = (e, t, n) => t in e ? Ps(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, we = (e, t) => {
3421
3453
  for (var n in t || (t = {}))
3422
- Kn.call(t, n) && nn(e, n, t[n]);
3423
- if (Ce)
3424
- for (var n of Ce(t))
3425
- Hn.call(t, n) && nn(e, n, t[n]);
3454
+ qn.call(t, n) && nn(e, n, t[n]);
3455
+ if (Ie)
3456
+ for (var n of Ie(t))
3457
+ zn.call(t, n) && nn(e, n, t[n]);
3426
3458
  return e;
3427
- }, Qe = (e, t) => vs(e, ws(t)), _s = (e, t) => {
3459
+ }, Qe = (e, t) => Os(e, ks(t)), Cs = (e, t) => {
3428
3460
  var n = {};
3429
3461
  for (var r in e)
3430
- Kn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3431
- if (e != null && Ce)
3432
- for (var r of Ce(e))
3433
- t.indexOf(r) < 0 && Hn.call(e, r) && (n[r] = e[r]);
3462
+ qn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3463
+ if (e != null && Ie)
3464
+ for (var r of Ie(e))
3465
+ t.indexOf(r) < 0 && zn.call(e, r) && (n[r] = e[r]);
3434
3466
  return n;
3435
3467
  }, ct = (e, t, n) => new Promise((r, i) => {
3436
3468
  var o = (l) => {
@@ -3448,23 +3480,23 @@ var bs = Object.defineProperty, vs = Object.defineProperties, ws = Object.getOwn
3448
3480
  }, a = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, s);
3449
3481
  a((n = n.apply(e, t)).next());
3450
3482
  });
3451
- const xs = (e) => ct(void 0, [e], function* ({
3483
+ const Is = (e) => ct(void 0, [e], function* ({
3452
3484
  canTrack: t
3453
3485
  }) {
3454
3486
  if (!t)
3455
3487
  return { visitorId: void 0, sessionId: void 0 };
3456
- const n = yield us({ canTrack: t }), r = gs({ canTrack: t });
3488
+ const n = yield hs({ canTrack: t }), r = vs({ canTrack: t });
3457
3489
  return {
3458
3490
  sessionId: n,
3459
3491
  visitorId: r
3460
3492
  };
3461
- }), $s = (e) => ct(void 0, null, function* () {
3493
+ }), Es = (e) => ct(void 0, null, function* () {
3462
3494
  var t = e, {
3463
3495
  type: n,
3464
3496
  canTrack: r,
3465
3497
  apiKey: i,
3466
3498
  metadata: o
3467
- } = t, s = _s(t, [
3499
+ } = t, s = Cs(t, [
3468
3500
  "type",
3469
3501
  "canTrack",
3470
3502
  "apiKey",
@@ -3472,9 +3504,12 @@ const xs = (e) => ct(void 0, [e], function* ({
3472
3504
  ]);
3473
3505
  return {
3474
3506
  type: n,
3475
- data: Qe(Ye(Qe(Ye({}, s), {
3476
- metadata: JSON.stringify(o)
3477
- }), yield xs({ canTrack: r })), {
3507
+ data: Qe(we(Qe(we({}, s), {
3508
+ metadata: we({
3509
+ url: location.href
3510
+ }, o)
3511
+ }), yield Is({ canTrack: r })), {
3512
+ userAttributes: Ss(),
3478
3513
  ownerId: i
3479
3514
  })
3480
3515
  };
@@ -3485,11 +3520,11 @@ function Ze(e) {
3485
3520
  console.error("[Builder.io]: Missing API key for track call. Please provide your API key.");
3486
3521
  return;
3487
3522
  }
3488
- if (!!e.canTrack && !q() && !!(L() || ue === "reactNative"))
3523
+ if (!!e.canTrack && !z() && !!(B() || oe === "reactNative"))
3489
3524
  return fetch("https://builder.io/api/v1/track", {
3490
3525
  method: "POST",
3491
3526
  body: JSON.stringify({
3492
- events: [yield $s(e)]
3527
+ events: [yield Es(e)]
3493
3528
  }),
3494
3529
  headers: {
3495
3530
  "content-type": "application/json"
@@ -3500,8 +3535,8 @@ function Ze(e) {
3500
3535
  });
3501
3536
  });
3502
3537
  }
3503
- const Es = (e) => Ze(Qe(Ye({}, e), { canTrack: !0 }));
3504
- function Ss(e) {
3538
+ const Ms = (e) => Ze(Qe(we({}, e), { canTrack: !0 }));
3539
+ function As(e) {
3505
3540
  function t({
3506
3541
  customFonts: r
3507
3542
  }) {
@@ -3521,19 +3556,55 @@ ${t({
3521
3556
  }
3522
3557
  });
3523
3558
  }
3524
- const Ps = /* @__PURE__ */ A("<div></div>");
3525
- function Os(e) {
3526
- const [t, n] = k(0), [r, i] = k(null);
3527
- k(0);
3528
- const [o, s] = k(null), [a, l] = k(re(e.canTrack) ? e.canTrack : !0), [c, u] = k({}), [f, d] = k(e.context || {}), [m, v] = k([
3529
- ...vi(),
3530
- ...Dn,
3559
+ function rn(e) {
3560
+ return Math.round(e * 1e3) / 1e3;
3561
+ }
3562
+ const Ts = (e, t, n = !0) => {
3563
+ if (!(e instanceof HTMLElement))
3564
+ return null;
3565
+ let r = n ? e : e.parentElement;
3566
+ do {
3567
+ if (!r)
3568
+ return null;
3569
+ if (t(r))
3570
+ return r;
3571
+ } while (r = r.parentElement);
3572
+ return null;
3573
+ }, js = (e) => Ts(e, (t) => {
3574
+ const n = t.getAttribute("builder-id") || t.id;
3575
+ return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
3576
+ }), on = ({
3577
+ event: e,
3578
+ target: t
3579
+ }) => {
3580
+ const n = t.getBoundingClientRect(), r = e.clientX - n.left, i = e.clientY - n.top, o = rn(r / n.width), s = rn(i / n.height);
3581
+ return {
3582
+ x: o,
3583
+ y: s
3584
+ };
3585
+ }, Rs = (e) => {
3586
+ const t = e.target, n = t && js(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3587
+ return {
3588
+ targetBuilderElement: r || void 0,
3589
+ metadata: {
3590
+ targetOffset: t ? on({ event: e, target: t }) : void 0,
3591
+ builderTargetOffset: n ? on({ event: e, target: n }) : void 0,
3592
+ builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
3593
+ }
3594
+ };
3595
+ }, Ns = /* @__PURE__ */ T("<div></div>");
3596
+ function Fs(e) {
3597
+ const [t, n] = O(0), [r, i] = O(null);
3598
+ O(0);
3599
+ const [o, s] = O(null), [a, l] = O(re(e.canTrack) ? e.canTrack : !0), [c, u] = O({}), [f, d] = O(e.context || {}), [m, v] = O([
3600
+ ...$i(),
3601
+ ...Vn,
3531
3602
  ...e.customComponents || []
3532
3603
  ].reduce((y, b) => ({
3533
3604
  ...y,
3534
3605
  [b.name]: b
3535
- }), {})), [_, P] = k({});
3536
- function x() {
3606
+ }), {})), [_, S] = O({}), [C, R] = O(!1);
3607
+ function I() {
3537
3608
  var y, b;
3538
3609
  return {
3539
3610
  ...(b = (y = e.content) == null ? void 0 : y.data) == null ? void 0 : b.state,
@@ -3544,7 +3615,7 @@ function Os(e) {
3544
3615
  ...c()
3545
3616
  };
3546
3617
  }
3547
- function j(y) {
3618
+ function D(y) {
3548
3619
  const {
3549
3620
  data: b
3550
3621
  } = y;
@@ -3552,31 +3623,31 @@ function Os(e) {
3552
3623
  switch (b.type) {
3553
3624
  case "builder.configureSdk": {
3554
3625
  const g = b.data, {
3555
- breakpoints: I,
3626
+ breakpoints: E,
3556
3627
  contentId: F
3557
3628
  } = g;
3558
3629
  if (!F || F !== (h == null ? void 0 : h.id))
3559
3630
  return;
3560
- s(I), n(t() + 1);
3631
+ s(E), n(t() + 1);
3561
3632
  break;
3562
3633
  }
3563
3634
  case "builder.contentUpdate": {
3564
- const g = b.data, I = g.key || g.alias || g.entry || g.modelName, F = g.data;
3565
- I === e.model && (i(F), n(t() + 1));
3635
+ const g = b.data, E = g.key || g.alias || g.entry || g.modelName, F = g.data;
3636
+ E === e.model && (i(F), n(t() + 1));
3566
3637
  break;
3567
3638
  }
3568
3639
  }
3569
3640
  }
3570
- function N() {
3641
+ function W() {
3571
3642
  var b;
3572
3643
  const y = (b = h == null ? void 0 : h.data) == null ? void 0 : b.jsCode;
3573
3644
  y && ge({
3574
3645
  code: y,
3575
3646
  context: f(),
3576
- state: x()
3647
+ state: I()
3577
3648
  });
3578
3649
  }
3579
- function D(y) {
3650
+ function Re(y) {
3580
3651
  if (h) {
3581
3652
  const b = h == null ? void 0 : h.testVariationId, g = h == null ? void 0 : h.id;
3582
3653
  Ze({
@@ -3584,27 +3655,30 @@ function Os(e) {
3584
3655
  canTrack: a(),
3585
3656
  contentId: g,
3586
3657
  apiKey: e.apiKey,
3587
- variationId: b !== g ? b : void 0
3658
+ variationId: b !== g ? b : void 0,
3659
+ ...Rs(y),
3660
+ unique: !C()
3588
3661
  });
3589
3662
  }
3663
+ C() || R(!0);
3590
3664
  }
3591
- function z(y) {
3665
+ function Gn(y) {
3592
3666
  return y.replace(/{{([^}]+)}}/g, (b, g) => ge({
3593
3667
  code: g,
3594
3668
  context: f(),
3595
- state: x()
3669
+ state: I()
3596
3670
  }));
3597
3671
  }
3598
- function je({
3672
+ function Jn({
3599
3673
  url: y,
3600
3674
  key: b
3601
3675
  }) {
3602
- kn(y).then((g) => g.json()).then((g) => {
3603
- const I = {
3676
+ In(y).then((g) => g.json()).then((g) => {
3677
+ const E = {
3604
3678
  ...c(),
3605
3679
  [b]: g
3606
3680
  };
3607
- u(I);
3681
+ u(E);
3608
3682
  }).catch((g) => {
3609
3683
  console.log("error fetching dynamic data", y, g);
3610
3684
  });
@@ -3612,32 +3686,32 @@ function Os(e) {
3612
3686
  function ut() {
3613
3687
  var b, g;
3614
3688
  const y = (g = (b = h == null ? void 0 : h.data) == null ? void 0 : b.httpRequests) != null ? g : {};
3615
- Object.entries(y).forEach(([I, F]) => {
3616
- if (F && (!_()[I] || q())) {
3617
- const be = z(F);
3618
- je({
3689
+ Object.entries(y).forEach(([E, F]) => {
3690
+ if (F && (!_()[E] || z())) {
3691
+ const be = Gn(F);
3692
+ Jn({
3619
3693
  url: be,
3620
- key: I
3694
+ key: E
3621
3695
  });
3622
3696
  }
3623
3697
  });
3624
3698
  }
3625
- function Re() {
3626
- q() && window.dispatchEvent(new CustomEvent("builder:component:stateChange", {
3699
+ function Ne() {
3700
+ z() && window.dispatchEvent(new CustomEvent("builder:component:stateChange", {
3627
3701
  detail: {
3628
- state: x(),
3702
+ state: I(),
3629
3703
  ref: {
3630
3704
  name: e.model
3631
3705
  }
3632
3706
  }
3633
3707
  }));
3634
3708
  }
3635
- function qn() {
3709
+ function Xn() {
3636
3710
  var y, b, g;
3637
- return Boolean((((y = h == null ? void 0 : h.data) == null ? void 0 : y.cssCode) || ((g = (b = h == null ? void 0 : h.data) == null ? void 0 : b.customFonts) == null ? void 0 : g.length)) && ue !== "reactNative");
3711
+ return Boolean((((y = h == null ? void 0 : h.data) == null ? void 0 : y.cssCode) || ((g = (b = h == null ? void 0 : h.data) == null ? void 0 : b.customFonts) == null ? void 0 : g.length)) && oe !== "reactNative");
3638
3712
  }
3639
3713
  const dt = function() {
3640
- var b, g, I, F, be, mt, ht, gt;
3714
+ var b, g, E, F, be, mt, ht, gt;
3641
3715
  if (!(!e.content && !r()))
3642
3716
  return {
3643
3717
  ...e.content,
@@ -3648,17 +3722,17 @@ function Os(e) {
3648
3722
  ...(g = r()) == null ? void 0 : g.data
3649
3723
  },
3650
3724
  meta: {
3651
- ...(I = e.content) == null ? void 0 : I.meta,
3725
+ ...(E = e.content) == null ? void 0 : E.meta,
3652
3726
  ...(F = r()) == null ? void 0 : F.meta,
3653
3727
  breakpoints: o() || ((mt = (be = r()) == null ? void 0 : be.meta) == null ? void 0 : mt.breakpoints) || ((gt = (ht = e.content) == null ? void 0 : ht.meta) == null ? void 0 : gt.breakpoints)
3654
3728
  }
3655
3729
  };
3656
- }, [h, zn] = Uo(dt());
3657
- ee(se(() => [r(), o(), e.content, e.data], () => zn(Wo(dt()))));
3730
+ }, [h, Yn] = qo(dt());
3731
+ ee(ae(() => [r(), o(), e.content, e.data], () => Yn(zo(dt()))));
3658
3732
  let ft;
3659
- an(() => {
3660
- if (e.apiKey || console.error("[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."), L()) {
3661
- if (q() && (n(t() + 1), Qn(), Zn({
3733
+ cn(() => {
3734
+ if (e.apiKey || console.error("[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."), B()) {
3735
+ if (z() && (n(t() + 1), nr(), rr({
3662
3736
  ...e.locale ? {
3663
3737
  locale: e.locale
3664
3738
  } : {},
@@ -3667,9 +3741,9 @@ function Os(e) {
3667
3741
  } : {}
3668
3742
  }), Object.values(m()).forEach((y) => {
3669
3743
  var g;
3670
- const b = is(y);
3744
+ const b = cs(y);
3671
3745
  (g = window.parent) == null || g.postMessage(b, "*");
3672
- }), window.addEventListener("message", j), window.addEventListener("builder:component:stateChangeListenerActivated", Re)), h) {
3746
+ }), window.addEventListener("message", D), window.addEventListener("builder:component:stateChangeListenerActivated", Ne)), h) {
3673
3747
  const y = h == null ? void 0 : h.testVariationId, b = h == null ? void 0 : h.id;
3674
3748
  Ze({
3675
3749
  type: "impression",
@@ -3679,58 +3753,58 @@ function Os(e) {
3679
3753
  variationId: y !== b ? y : void 0
3680
3754
  });
3681
3755
  }
3682
- if (ts()) {
3756
+ if (is()) {
3683
3757
  const y = new URL(location.href).searchParams, b = y.get("builder.preview"), g = y.get("apiKey") || y.get("builder.space");
3684
- b === e.model && g === e.apiKey && Nn({
3758
+ b === e.model && g === e.apiKey && Bn({
3685
3759
  model: e.model,
3686
3760
  apiKey: e.apiKey
3687
- }).then((I) => {
3688
- I && i(I);
3761
+ }).then((E) => {
3762
+ E && i(E);
3689
3763
  });
3690
3764
  }
3691
- N(), ut(), Re();
3765
+ W(), ut(), Ne();
3692
3766
  }
3693
3767
  });
3694
- function Gn() {
3695
- N();
3768
+ function Qn() {
3769
+ W();
3696
3770
  }
3697
- ee(se(() => {
3771
+ ee(ae(() => {
3698
3772
  var y;
3699
- return [(y = h == null ? void 0 : h.data) == null ? void 0 : y.jsCode, x()];
3700
- }, Gn));
3701
- function Jn() {
3773
+ return [(y = h == null ? void 0 : h.data) == null ? void 0 : y.jsCode, I()];
3774
+ }, Qn));
3775
+ function Zn() {
3702
3776
  ut();
3703
3777
  }
3704
- ee(se(() => {
3778
+ ee(ae(() => {
3705
3779
  var y;
3706
3780
  return [(y = h == null ? void 0 : h.data) == null ? void 0 : y.httpRequests];
3707
- }, Jn));
3708
- function Xn() {
3709
- Re();
3781
+ }, Zn));
3782
+ function er() {
3783
+ Ne();
3710
3784
  }
3711
- return ee(se(() => [x()], Xn)), p(Ie.Provider, {
3785
+ return ee(ae(() => [I()], er)), p(Ee.Provider, {
3712
3786
  get value() {
3713
3787
  return {
3714
3788
  content: h,
3715
- state: x(),
3789
+ state: I(),
3716
3790
  context: f(),
3717
3791
  apiKey: e.apiKey,
3718
3792
  registeredComponents: m()
3719
3793
  };
3720
3794
  },
3721
3795
  get children() {
3722
- return p(E, {
3796
+ return p(A, {
3723
3797
  when: h,
3724
3798
  get children() {
3725
- const y = Ps.cloneNode(!0);
3726
- y.$$click = (g) => D();
3799
+ const y = Ns.cloneNode(!0);
3800
+ y.$$click = (g) => Re(g);
3727
3801
  const b = ft;
3728
- return typeof b == "function" ? it(b, y) : ft = y, R(y, p(E, {
3802
+ return typeof b == "function" ? it(b, y) : ft = y, N(y, p(A, {
3729
3803
  get when() {
3730
- return qn();
3804
+ return Xn();
3731
3805
  },
3732
3806
  get children() {
3733
- return p(Ss, {
3807
+ return p(As, {
3734
3808
  get cssCode() {
3735
3809
  var g;
3736
3810
  return (g = h == null ? void 0 : h.data) == null ? void 0 : g.cssCode;
@@ -3741,7 +3815,7 @@ function Os(e) {
3741
3815
  }
3742
3816
  });
3743
3817
  }
3744
- }), null), R(y, p(xn, {
3818
+ }), null), N(y, p(Sn, {
3745
3819
  get blocks() {
3746
3820
  var g;
3747
3821
  return (g = h == null ? void 0 : h.data) == null ? void 0 : g.blocks;
@@ -3750,8 +3824,8 @@ function Os(e) {
3750
3824
  return t();
3751
3825
  }
3752
3826
  }), null), w((g) => {
3753
- const I = h == null ? void 0 : h.id, F = e.model;
3754
- return I !== g._v$ && $(y, "builder-content-id", g._v$ = I), F !== g._v$2 && $(y, "builder-model", g._v$2 = F), g;
3827
+ const E = h == null ? void 0 : h.id, F = e.model;
3828
+ return E !== g._v$ && x(y, "builder-content-id", g._v$ = E), F !== g._v$2 && x(y, "builder-model", g._v$2 = F), g;
3755
3829
  }, {
3756
3830
  _v$: void 0,
3757
3831
  _v$2: void 0
@@ -3762,9 +3836,9 @@ function Os(e) {
3762
3836
  });
3763
3837
  }
3764
3838
  ot(["click"]);
3765
- const ks = /* @__PURE__ */ A("<div></div>");
3766
- function Cs(e) {
3767
- const [t, n] = k(null);
3839
+ const Bs = /* @__PURE__ */ T("<div></div>");
3840
+ function Ls(e) {
3841
+ const [t, n] = O(null);
3768
3842
  function r() {
3769
3843
  var a, l;
3770
3844
  return [e.attributes.class, "builder-symbol", (a = e.symbol) != null && a.inline ? "builder-inline-symbol" : void 0, ((l = e.symbol) == null ? void 0 : l.dynamic) || e.dynamic ? "builder-dynamic-symbol" : void 0].filter(Boolean).join(" ");
@@ -3773,10 +3847,10 @@ function Cs(e) {
3773
3847
  var a;
3774
3848
  return ((a = e.symbol) == null ? void 0 : a.content) || t();
3775
3849
  }
3776
- const o = cn(Ie);
3850
+ const o = dn(Ee);
3777
3851
  function s() {
3778
3852
  const a = e.symbol;
3779
- a && !a.content && !t() && a.model && (o == null ? void 0 : o.apiKey) && Nn({
3853
+ a && !a.content && !t() && a.model && (o == null ? void 0 : o.apiKey) && Bn({
3780
3854
  model: a.model,
3781
3855
  apiKey: o.apiKey,
3782
3856
  query: {
@@ -3786,9 +3860,9 @@ function Cs(e) {
3786
3860
  n(l);
3787
3861
  });
3788
3862
  }
3789
- return ee(se(() => [e.symbol, t()], s)), (() => {
3790
- const a = ks.cloneNode(!0);
3791
- return ne(a, () => e.attributes, !1, !0), R(a, p(Os, {
3863
+ return ee(ae(() => [e.symbol, t()], s)), (() => {
3864
+ const a = Bs.cloneNode(!0);
3865
+ return ne(a, () => e.attributes, !1, !0), N(a, p(Fs, {
3792
3866
  get apiKey() {
3793
3867
  return o.apiKey;
3794
3868
  },
@@ -3817,47 +3891,47 @@ function Cs(e) {
3817
3891
  const c = r(), u = {
3818
3892
  class: r()
3819
3893
  };
3820
- return c !== l._v$ && U(a, l._v$ = c), u !== l._v$2 && $(a, "dataset", l._v$2 = u), l;
3894
+ return c !== l._v$ && U(a, l._v$ = c), u !== l._v$2 && x(a, "dataset", l._v$2 = u), l;
3821
3895
  }, {
3822
3896
  _v$: void 0,
3823
3897
  _v$2: void 0
3824
3898
  }), a;
3825
3899
  })();
3826
3900
  }
3827
- const rn = {};
3828
- function As(e) {
3829
- if (L()) {
3830
- Object.assign(rn, e);
3901
+ const sn = {};
3902
+ function Vs(e) {
3903
+ if (B()) {
3904
+ Object.assign(sn, e);
3831
3905
  const t = {
3832
3906
  type: "builder.settingsChange",
3833
- data: rn
3907
+ data: sn
3834
3908
  };
3835
3909
  parent.postMessage(t, "*");
3836
3910
  }
3837
3911
  }
3838
3912
  export {
3839
- qo as Button,
3840
- ko as Columns,
3841
- Yo as Fragment,
3842
- To as Image,
3843
- xn as RenderBlocks,
3844
- Os as RenderContent,
3845
- ti as Section,
3846
- Cs as Symbol,
3847
- Ro as Text,
3848
- Fo as Video,
3849
- Dn as components,
3850
- Vi as convertSearchParamsToQueryObject,
3851
- is as createRegisterComponentMessage,
3852
- es as getAllContent,
3853
- Mi as getBuilderSearchParams,
3854
- Ui as getBuilderSearchParamsFromWindow,
3855
- Nn as getContent,
3856
- q as isEditing,
3857
- ts as isPreviewing,
3858
- jn as normalizeSearchParams,
3859
- Yn as register,
3860
- Is as registerComponent,
3861
- As as setEditorSettings,
3862
- Es as track
3913
+ Xo as Button,
3914
+ Ao as Columns,
3915
+ ti as Fragment,
3916
+ Fo as Image,
3917
+ Sn as RenderBlocks,
3918
+ Fs as RenderContent,
3919
+ ii as Section,
3920
+ Ls as Symbol,
3921
+ Lo as Text,
3922
+ Mo as Video,
3923
+ Vn as components,
3924
+ Ki as convertSearchParamsToQueryObject,
3925
+ cs as createRegisterComponentMessage,
3926
+ os as getAllContent,
3927
+ Hi as getBuilderSearchParams,
3928
+ qi as getBuilderSearchParamsFromWindow,
3929
+ Bn as getContent,
3930
+ z as isEditing,
3931
+ is as isPreviewing,
3932
+ Nn as normalizeSearchParams,
3933
+ tr as register,
3934
+ Ds as registerComponent,
3935
+ Vs as setEditorSettings,
3936
+ Ms as track
3863
3937
  };