@charisol/plexo-sdk 2.0.11 → 2.0.12

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.
@@ -12984,11 +12984,18 @@ function Ki(e, t) {
12984
12984
  let a = r.variants.find((e) => e.id === n.variant), o = n.style?.background && n.style.background !== (a?.backgrounds?.[0] ?? "canvas"), s = {
12985
12985
  ...n.style,
12986
12986
  ...o ? {} : { background: i.backgrounds?.[0] ?? "canvas" }
12987
- };
12988
- return Ui(e, {
12987
+ }, c = n.content, l = typeof c?.image == "string" ? c.image : "";
12988
+ return s.background === "image" && !s.image && l ? s = {
12989
+ ...s,
12990
+ image: l
12991
+ } : s.background !== "image" && n.style?.image && !l && c && "image" in c && (c = {
12992
+ ...c,
12993
+ image: n.style.image
12994
+ }), Ui(e, {
12989
12995
  ...n,
12990
12996
  variant: i.id,
12991
- style: s
12997
+ style: s,
12998
+ ...c === n.content ? {} : { content: c }
12992
12999
  });
12993
13000
  }
12994
13001
  function qi(e, t) {
@@ -15370,9 +15377,80 @@ function Bs(e, t, n, r = {}) {
15370
15377
  designSystem: u
15371
15378
  };
15372
15379
  }
15380
+ function Vs(e, t) {
15381
+ let n = /* @__PURE__ */ new Map();
15382
+ for (let e of ["color", "font"]) {
15383
+ let r = Cs(t, e).sort((e, t) => Number(t.layer === "brand") - Number(e.layer === "brand"));
15384
+ for (let t of r) {
15385
+ if (e === "color" && Ts(t.norm) === 0) continue;
15386
+ let r = `${e}:${t.norm}`;
15387
+ n.has(r) || n.set(r, `var(${t.key})`);
15388
+ }
15389
+ }
15390
+ let r = (e, t) => {
15391
+ let r = ps(e, t);
15392
+ return r ? n.get(`${e}:${r}`) : void 0;
15393
+ }, i = !1, a = e.map((e) => {
15394
+ let t = ys(e.rootNode, r, !0);
15395
+ return t === e.rootNode ? e : (i = !0, {
15396
+ ...e,
15397
+ rootNode: t
15398
+ });
15399
+ });
15400
+ return i ? a : e;
15401
+ }
15402
+ var Hs = (e) => {
15403
+ let t = f(e);
15404
+ if (!t) return null;
15405
+ let n = t.r / 255, r = t.g / 255, i = t.b / 255, a = Math.max(n, r, i), o = Math.min(n, r, i), s = (a + o) / 2, c = a - o;
15406
+ if (c === 0) return {
15407
+ h: 0,
15408
+ s: 0,
15409
+ l: s,
15410
+ a: t.a ?? 1
15411
+ };
15412
+ let l = c / (1 - Math.abs(2 * s - 1));
15413
+ return {
15414
+ h: ((a === n ? (r - i) / c % 6 : a === r ? (i - n) / c + 2 : (n - r) / c + 4) * 60 + 360) % 360,
15415
+ s: l,
15416
+ l: s,
15417
+ a: t.a ?? 1
15418
+ };
15419
+ }, Us = (e, t) => {
15420
+ let n = Math.abs(e - t) % 360;
15421
+ return n > 180 ? 360 - n : n;
15422
+ };
15423
+ function Ws(e, t) {
15424
+ let n = new Set(t.tokens.map((e) => e.key));
15425
+ if (!n.has("--color-brand-primary-500")) return e;
15426
+ let r = [...Ps(e).values()].filter((e) => e.kind === "color").map((e) => ({
15427
+ e,
15428
+ c: Hs(e.norm)
15429
+ })).filter((e) => !!e.c && e.c.a > .99 && e.c.s >= .3 && e.c.l >= .1 && e.c.l <= .92).sort((e, t) => t.e.uses - e.e.uses);
15430
+ if (!r.length) return e;
15431
+ let i = [], a = /* @__PURE__ */ new Map();
15432
+ for (let { e, c: t } of r) {
15433
+ let r = i.findIndex((e) => Us(e, t.h) <= 28);
15434
+ if (r === -1 && i.length < 2 && (i.push(t.h), r = i.length - 1), r === -1) continue;
15435
+ let o = t.l < .35 ? "700" : t.l > .68 ? "300" : "500", s = r === 0 ? `--color-brand-primary-${o}` : n.has("--color-brand-secondary-500") ? "--color-brand-secondary-500" : null;
15436
+ s && n.has(s) && a.set(`color:${e.norm}`, `var(${s})`);
15437
+ }
15438
+ if (!a.size) return e;
15439
+ let o = (e, t) => {
15440
+ let n = ps(e, t);
15441
+ return n ? a.get(`${e}:${n}`) : void 0;
15442
+ }, s = !1, c = e.map((e) => {
15443
+ let t = ys(e.rootNode, o, !0);
15444
+ return t === e.rootNode ? e : (s = !0, {
15445
+ ...e,
15446
+ rootNode: t
15447
+ });
15448
+ });
15449
+ return s ? c : e;
15450
+ }
15373
15451
  //#endregion
15374
15452
  //#region src/v2/render/runtime.ts
15375
- function Vs(e) {
15453
+ function Gs(e) {
15376
15454
  let t = [], n = (t) => Array.prototype.slice.call(e.querySelectorAll(t)), r = typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches, i = n(".plx-in");
15377
15455
  if (i.length && !r && typeof IntersectionObserver == "function") {
15378
15456
  let n = e.querySelector(".plx-page") || e;
@@ -15477,23 +15555,23 @@ function Vs(e) {
15477
15555
  e.addEventListener("submit", n), t.push(() => e.removeEventListener("submit", n));
15478
15556
  }), () => t.forEach((e) => e());
15479
15557
  }
15480
- var Hs = `(function(){var __name=function(f){return f};return ${Vs.toString()}})()`, Us = 1e5, Ws = (e) => typeof e == "string" && /^[A-Za-z][A-Za-z0-9_-]{0,63}$/.test(e.trim()) ? e.trim() : null, Gs = (e) => Ws(e.replace(/[^A-Za-z0-9_-]+/g, "-").replace(/^[^A-Za-z]+/, "").slice(0, 64)) ?? "";
15481
- function Ks(e) {
15558
+ var Ks = `(function(){var __name=function(f){return f};return ${Gs.toString()}})()`, qs = 1e5, Js = (e) => typeof e == "string" && /^[A-Za-z][A-Za-z0-9_-]{0,63}$/.test(e.trim()) ? e.trim() : null, Ys = (e) => Js(e.replace(/[^A-Za-z0-9_-]+/g, "-").replace(/^[^A-Za-z]+/, "").slice(0, 64)) ?? "";
15559
+ function Xs(e) {
15482
15560
  if (typeof e != "string") return { code: "" };
15483
15561
  let t = e.trim();
15484
15562
  return t ? t.length > 1e5 ? {
15485
15563
  code: "",
15486
- warning: `The site's custom code is too long (over ${Us.toLocaleString("en-US")} characters), so it was left out. Shorten it or load it from a file instead.`
15564
+ warning: `The site's custom code is too long (over ${qs.toLocaleString("en-US")} characters), so it was left out. Shorten it or load it from a file instead.`
15487
15565
  } : { code: t.replace(/<\/(script)/gi, "<\\/$1").replace(/<!--/g, "<\\!--") } : { code: "" };
15488
15566
  }
15489
15567
  //#endregion
15490
15568
  //#region src/v2/utils/css.ts
15491
- function qs(e) {
15569
+ function Zs(e) {
15492
15570
  return `url("${e.replace(/["\\\n\r\f]/g, (e) => `\\${e.charCodeAt(0).toString(16)} `)}")`;
15493
15571
  }
15494
15572
  //#endregion
15495
15573
  //#region src/v2/render/nodeStyle.ts
15496
- var Js = [
15574
+ var Qs = [
15497
15575
  "flex-start",
15498
15576
  "center",
15499
15577
  "flex-end",
@@ -15501,25 +15579,25 @@ var Js = [
15501
15579
  "start",
15502
15580
  "end",
15503
15581
  "baseline"
15504
- ], Ys = [
15582
+ ], $s = [
15505
15583
  "hidden",
15506
15584
  "visible",
15507
15585
  "auto",
15508
15586
  "clip"
15509
- ], Xs = ["normal", "nowrap"], Zs = [
15587
+ ], ec = ["normal", "nowrap"], tc = [
15510
15588
  "auto",
15511
15589
  "pointer",
15512
15590
  "default",
15513
15591
  "text",
15514
15592
  "grab",
15515
15593
  "not-allowed"
15516
- ], Qs = [
15594
+ ], nc = [
15517
15595
  "ease",
15518
15596
  "linear",
15519
15597
  "ease-in",
15520
15598
  "ease-out",
15521
15599
  "ease-in-out"
15522
- ], $s = {
15600
+ ], rc = {
15523
15601
  all: ["all"],
15524
15602
  opacity: ["opacity"],
15525
15603
  transform: ["transform"],
@@ -15529,7 +15607,7 @@ var Js = [
15529
15607
  "border-color",
15530
15608
  "box-shadow"
15531
15609
  ]
15532
- }, ec = (e, t) => typeof e == "string" && t.includes(e) ? e : void 0, tc = (e) => typeof e == "string" && /^(?:(?:left|right|top|bottom|center|-?\d{1,3}(?:\.\d+)?%)(?: |$)){1,2}$/.test(e.trim() + " ") ? e.trim() : void 0, nc = (e) => {
15610
+ }, ic = (e, t) => typeof e == "string" && t.includes(e) ? e : void 0, ac = (e) => typeof e == "string" && /^(?:(?:left|right|top|bottom|center|-?\d{1,3}(?:\.\d+)?%)(?: |$)){1,2}$/.test(e.trim() + " ") ? e.trim() : void 0, oc = (e) => {
15533
15611
  let t = typeof e == "number" ? e : typeof e == "string" ? parseFloat(e) : NaN;
15534
15612
  if (!Number.isFinite(t) || t <= 0) return {};
15535
15613
  let n = `blur(${Math.round(Math.min(40, t) * 10) / 10}px)`;
@@ -15538,18 +15616,18 @@ var Js = [
15538
15616
  WebkitBackdropFilter: n
15539
15617
  };
15540
15618
  };
15541
- function rc(e) {
15542
- let t = ec(e.transitionProperty, Object.keys($s));
15619
+ function sc(e) {
15620
+ let t = ic(e.transitionProperty, Object.keys(rc));
15543
15621
  if (!t) return;
15544
- let n = typeof e.transitionDuration == "number" ? e.transitionDuration : 200, r = Math.round(Math.min(2e3, Math.max(0, Number.isFinite(n) ? n : 200))), i = ec(e.transitionEasing, Qs) ?? "ease";
15545
- return $s[t].map((e) => `${e} ${r}ms ${i}`).join(", ");
15622
+ let n = typeof e.transitionDuration == "number" ? e.transitionDuration : 200, r = Math.round(Math.min(2e3, Math.max(0, Number.isFinite(n) ? n : 200))), i = ic(e.transitionEasing, nc) ?? "ease";
15623
+ return rc[t].map((e) => `${e} ${r}ms ${i}`).join(", ");
15546
15624
  }
15547
- var ic = [
15625
+ var cc = [
15548
15626
  "lift",
15549
15627
  "grow",
15550
15628
  "fade",
15551
15629
  "glow"
15552
- ], ac = {
15630
+ ], lc = {
15553
15631
  lift: {
15554
15632
  translate: "0 -6px",
15555
15633
  boxShadow: "0 16px 32px rgba(0,0,0,0.18)"
@@ -15558,19 +15636,19 @@ var ic = [
15558
15636
  fade: { opacity: .8 },
15559
15637
  glow: { boxShadow: "0 10px 30px rgba(0,0,0,0.28)" }
15560
15638
  };
15561
- function oc(e) {
15562
- let t = ec(e.hoverEffect, ic);
15563
- return t ? ac[t] : void 0;
15639
+ function uc(e) {
15640
+ let t = ic(e.hoverEffect, cc);
15641
+ return t ? lc[t] : void 0;
15564
15642
  }
15565
- var sc = [
15643
+ var dc = [
15566
15644
  "fade",
15567
15645
  "slide-up",
15568
15646
  "slide-left",
15569
15647
  "slide-right",
15570
15648
  "zoom"
15571
15649
  ];
15572
- function cc(e) {
15573
- let t = ec(e.entrance, sc);
15650
+ function fc(e) {
15651
+ let t = ic(e.entrance, dc);
15574
15652
  if (!t) return;
15575
15653
  let n = typeof e.entranceDelay == "number" && Number.isFinite(e.entranceDelay) ? e.entranceDelay : 0;
15576
15654
  return {
@@ -15578,7 +15656,7 @@ function cc(e) {
15578
15656
  delay: Math.round(Math.min(1500, Math.max(0, n)))
15579
15657
  };
15580
15658
  }
15581
- function lc(e, t, n) {
15659
+ function pc(e, t, n) {
15582
15660
  let { viewport: r } = n, i = Ce(t.textStyle) ? t.textStyle : e.type === "heading" ? Oe(e.props?.level) : null, a = i ? De(i) : {}, o = t.position !== "static" && (typeof t.x == "number" || typeof t.y == "number" || t.position === "absolute"), s = t.flexDirection;
15583
15661
  r === "mobile" && t.stackOnMobile && t.display === "flex" && (s = "column");
15584
15662
  let c = t.isFullWidth ? "100%" : t.customWidth || t.width, l = t.maxWidth;
@@ -15629,9 +15707,9 @@ function lc(e, t, n) {
15629
15707
  gridRow: n.isGridChild && t.gridRowSpan ? `span ${t.gridRowSpan}` : void 0,
15630
15708
  flexDirection: s,
15631
15709
  justifyContent: t.justifyContent,
15632
- alignItems: ec(t.alignItems, Js),
15633
- alignSelf: ec(t.alignSelf, Js),
15634
- alignContent: ec(t.alignContent, [
15710
+ alignItems: ic(t.alignItems, Qs),
15711
+ alignSelf: ic(t.alignSelf, Qs),
15712
+ alignContent: ic(t.alignContent, [
15635
15713
  "start",
15636
15714
  "center",
15637
15715
  "end",
@@ -15679,7 +15757,7 @@ function lc(e, t, n) {
15679
15757
  color: t.textColor,
15680
15758
  textAlign: t.textAlign,
15681
15759
  backgroundColor: t.backgroundColor,
15682
- backgroundImage: S ? "none" : C ? qs(C) : t.backgroundGradient || void 0,
15760
+ backgroundImage: S ? "none" : C ? Zs(C) : t.backgroundGradient || void 0,
15683
15761
  aspectRatio: t.aspectRatio,
15684
15762
  backgroundSize: t.backgroundSize,
15685
15763
  backgroundPosition: t.backgroundPosition,
@@ -15689,13 +15767,13 @@ function lc(e, t, n) {
15689
15767
  borderStyle: t.borderStyle,
15690
15768
  borderColor: t.borderColor,
15691
15769
  boxShadow: t.boxShadow,
15692
- overflow: ec(t.overflow, Ys),
15693
- whiteSpace: ec(t.whiteSpace, Xs),
15694
- objectPosition: tc(t.objectPosition),
15695
- ...nc(t.backdropFilter),
15770
+ overflow: ic(t.overflow, $s),
15771
+ whiteSpace: ic(t.whiteSpace, ec),
15772
+ objectPosition: ac(t.objectPosition),
15773
+ ...oc(t.backdropFilter),
15696
15774
  pointerEvents: t.pointerEvents
15697
15775
  };
15698
- n.forPublish && (w.cursor = ec(t.cursor, Zs), w.transition = rc(t) ?? (oc(t) ? "translate 200ms ease, scale 200ms ease, opacity 200ms ease, box-shadow 200ms ease" : void 0)), typeof w.fontSize == "string" && t.fontSize !== void 0 && zo(e, r) && (w.fontSize = Vo(w.fontSize, r)), e.type === "columns" && !f && (w.display = "grid", w.gridTemplateColumns = `repeat(${r === "mobile" ? 1 : r === "tablet" ? 2 : t.gridColumns || 3}, minmax(0, 1fr))`), n.isRootPage && (w.maxWidth = t.maxWidth || void 0, w.marginLeft = t.horizontalAlign === "left" ? "0px" : t.horizontalAlign === "right" ? "auto" : t.marginLeft || "auto", w.marginRight = t.horizontalAlign === "left" ? "auto" : t.horizontalAlign === "right" ? "0px" : t.marginRight || "auto"), e.type === "section" && t.pinned && (w.position = "sticky", w.top = "0px", w.zIndex = 40);
15776
+ n.forPublish && (w.cursor = ic(t.cursor, tc), w.transition = sc(t) ?? (uc(t) ? "translate 200ms ease, scale 200ms ease, opacity 200ms ease, box-shadow 200ms ease" : void 0)), typeof w.fontSize == "string" && t.fontSize !== void 0 && zo(e, r) && (w.fontSize = Vo(w.fontSize, r)), e.type === "columns" && !f && (w.display = "grid", w.gridTemplateColumns = `repeat(${r === "mobile" ? 1 : r === "tablet" ? 2 : t.gridColumns || 3}, minmax(0, 1fr))`), n.isRootPage && (w.maxWidth = t.maxWidth || void 0, w.marginLeft = t.horizontalAlign === "left" ? "0px" : t.horizontalAlign === "right" ? "auto" : t.marginLeft || "auto", w.marginRight = t.horizontalAlign === "left" ? "auto" : t.horizontalAlign === "right" ? "0px" : t.marginRight || "auto"), e.type === "section" && t.pinned && (w.position = "sticky", w.top = "0px", w.zIndex = 40);
15699
15777
  for (let e of Object.keys(w)) w[e] === void 0 && delete w[e];
15700
15778
  return {
15701
15779
  css: w,
@@ -15709,7 +15787,7 @@ function lc(e, t, n) {
15709
15787
  }
15710
15788
  //#endregion
15711
15789
  //#region src/v2/render/iconSet.ts
15712
- var uc = {
15790
+ var mc = {
15713
15791
  star: [["path", { d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" }]],
15714
15792
  heart: [["path", { d: "M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5" }]],
15715
15793
  check: [["path", { d: "M20 6 9 17l-5-5" }]],
@@ -17379,7 +17457,7 @@ var uc = {
17379
17457
  ["path", { d: "m13 14 8-2" }],
17380
17458
  ["path", { d: "m13 19 8-2" }]
17381
17459
  ]
17382
- }, dc = {
17460
+ }, hc = {
17383
17461
  Popular: [
17384
17462
  "star",
17385
17463
  "heart",
@@ -17585,20 +17663,20 @@ var uc = {
17585
17663
  "spray-can"
17586
17664
  ]
17587
17665
  };
17588
- Object.keys(uc);
17589
- var fc = [["circle", {
17666
+ Object.keys(mc);
17667
+ var gc = [["circle", {
17590
17668
  cx: "12",
17591
17669
  cy: "12",
17592
17670
  r: "9"
17593
17671
  }]];
17594
- function pc(e) {
17595
- return typeof e != "string" || !e.trim() ? uc.star : Object.prototype.hasOwnProperty.call(uc, e) ? uc[e] : fc;
17672
+ function _c(e) {
17673
+ return typeof e != "string" || !e.trim() ? mc.star : Object.prototype.hasOwnProperty.call(mc, e) ? mc[e] : gc;
17596
17674
  }
17597
17675
  //#endregion
17598
17676
  //#region src/v2/render/elements.ts
17599
- var mc = "_hp_field", hc = (e) => e.props ?? {}, gc = (e) => M("div", { class: "plx-empty" }, e);
17600
- function _c(e) {
17601
- let t = hc(e), n = pc(t.iconName), r = F(t.label, 200).trim();
17677
+ var vc = "_hp_field", yc = (e) => e.props ?? {}, bc = (e) => M("div", { class: "plx-empty" }, e);
17678
+ function xc(e) {
17679
+ let t = yc(e), n = _c(t.iconName), r = F(t.label, 200).trim();
17602
17680
  return M("span", {
17603
17681
  class: "plx-el plx-icon",
17604
17682
  ...r ? {
@@ -17615,9 +17693,9 @@ function _c(e) {
17615
17693
  "aria-hidden": "true"
17616
17694
  }, n.map(([e, t]) => M(e, t))));
17617
17695
  }
17618
- function vc(e, t) {
17619
- let n = hc(e), r = vt(n.slides, 30);
17620
- if (!r.length) return M("div", { class: "plx-el plx-carousel" }, gc("Add a slide to start your carousel"));
17696
+ function Sc(e, t) {
17697
+ let n = yc(e), r = vt(n.slides, 30);
17698
+ if (!r.length) return M("div", { class: "plx-el plx-carousel" }, bc("Add a slide to start your carousel"));
17621
17699
  let i = r.map((e, n) => `${t.uid}-s${n + 1}`), a = r.length, o = r.map((e, t) => {
17622
17700
  let n = ut(e.src), r = F(e.caption, 300), o = [n ? M("img", {
17623
17701
  src: n,
@@ -17676,13 +17754,13 @@ function vc(e, t) {
17676
17754
  "aria-label": `Go to slide ${t + 1}`
17677
17755
  }))));
17678
17756
  }
17679
- var yc = {
17757
+ var Cc = {
17680
17758
  "16:9": "16 / 9",
17681
17759
  "4:3": "4 / 3",
17682
17760
  "1:1": "1 / 1",
17683
17761
  "9:16": "9 / 16"
17684
17762
  };
17685
- function bc(e) {
17763
+ function wc(e) {
17686
17764
  let t = e.trim();
17687
17765
  if (!/^https?:\/\//i.test(t)) return null;
17688
17766
  let n;
@@ -17708,12 +17786,12 @@ function bc(e) {
17708
17786
  src: t
17709
17787
  } : null;
17710
17788
  }
17711
- function xc(e, t) {
17712
- let n = hc(e), r = bc(F(n.url, 2e3)), i = yc[n.ratio ?? "16:9"] ?? yc["16:9"], a = (e) => ({
17789
+ function Tc(e, t) {
17790
+ let n = yc(e), r = wc(F(n.url, 2e3)), i = Cc[n.ratio ?? "16:9"] ?? Cc["16:9"], a = (e) => ({
17713
17791
  ...M("div", { class: "plx-el plx-video" }, e),
17714
17792
  style: { "aspect-ratio": i }
17715
17793
  });
17716
- if (!r) return a(gc("Paste a YouTube, Vimeo or video file link"));
17794
+ if (!r) return a(bc("Paste a YouTube, Vimeo or video file link"));
17717
17795
  if (r.kind === "file") {
17718
17796
  let e = ut(n.poster);
17719
17797
  return a(M("video", {
@@ -17738,8 +17816,8 @@ function xc(e, t) {
17738
17816
  referrerpolicy: "strict-origin-when-cross-origin"
17739
17817
  }));
17740
17818
  }
17741
- function Sc(e) {
17742
- let t = hc(e), n = vt(t.links, 20).filter((e) => e && e.network in L), r = _t(t.size, 20, 96, 40), i = t.shape === "square" || t.shape === "plain" ? t.shape : "circle", a = t.colorMode === "mono";
17819
+ function Ec(e) {
17820
+ let t = yc(e), n = vt(t.links, 20).filter((e) => e && e.network in L), r = _t(t.size, 20, 96, 40), i = t.shape === "square" || t.shape === "plain" ? t.shape : "circle", a = t.colorMode === "mono";
17743
17821
  return n.length ? {
17744
17822
  ...M("nav", {
17745
17823
  class: `plx-el plx-social plx-social--${i}`,
@@ -17769,11 +17847,11 @@ function Sc(e) {
17769
17847
  };
17770
17848
  })),
17771
17849
  style: { "--plx-size": `${r}px` }
17772
- } : M("div", { class: "plx-el plx-social" }, gc("Add your social links"));
17850
+ } : M("div", { class: "plx-el plx-social" }, bc("Add your social links"));
17773
17851
  }
17774
- function Cc(e) {
17775
- let t = hc(e), n = vt(t.links, 40);
17776
- if (!n.length) return M("nav", { class: "plx-el plx-menu" }, gc("Add menu links"));
17852
+ function Dc(e) {
17853
+ let t = yc(e), n = vt(t.links, 40);
17854
+ if (!n.length) return M("nav", { class: "plx-el plx-menu" }, bc("Add menu links"));
17777
17855
  let r = n.map((e) => M("li", null, M("a", { href: P(e.href) }, F(e.label, 120) || "Link"))), i = t.layout === "vertical", a = !i && (n.length > 4 || n.reduce((e, t) => e + F(t.label, 120).length, 0) > 36);
17778
17856
  return M("nav", {
17779
17857
  class: `plx-el plx-menu${i ? " plx-menu--vertical" : ""}${a ? " plx-menu--long" : ""}${t.mobile === "expanded" ? " plx-menu--expanded" : ""}`,
@@ -17789,19 +17867,19 @@ function Cc(e) {
17789
17867
  "stroke-linecap": "round"
17790
17868
  }))), M("ul", null, r)));
17791
17869
  }
17792
- function wc(e, t) {
17793
- let n = hc(e), r = F(n.code, 1e5);
17870
+ function Oc(e, t) {
17871
+ let n = yc(e), r = F(n.code, 1e5);
17794
17872
  return r.trim() ? M("div", { class: "plx-el plx-html" }, M("iframe", {
17795
17873
  srcdoc: r,
17796
17874
  sandbox: `allow-popups allow-popups-to-escape-sandbox allow-forms${t.allowEmbedScripts ? " allow-scripts" : ""}`,
17797
17875
  title: F(n.title, 120) || "Embedded content",
17798
17876
  loading: "lazy",
17799
17877
  referrerpolicy: "no-referrer"
17800
- })) : M("div", { class: "plx-el plx-html" }, gc("Paste your embed code in the settings"));
17878
+ })) : M("div", { class: "plx-el plx-html" }, bc("Paste your embed code in the settings"));
17801
17879
  }
17802
- function Tc(e) {
17803
- let t = hc(e), n = vt(t.rows, 200).map((e) => vt(e, 30).map((e) => F(e, 500)));
17804
- if (!n.length) return M("div", { class: "plx-el plx-table-wrap" }, gc("Add rows to your table"));
17880
+ function kc(e) {
17881
+ let t = yc(e), n = vt(t.rows, 200).map((e) => vt(e, 30).map((e) => F(e, 500)));
17882
+ if (!n.length) return M("div", { class: "plx-el plx-table-wrap" }, bc("Add rows to your table"));
17805
17883
  let r = t.headerRow !== !1, i = Math.max(...n.map((e) => e.length)), a = (e) => Array.from({ length: i }, (t, n) => e[n] ?? "");
17806
17884
  return M("div", {
17807
17885
  class: "plx-el plx-table-wrap",
@@ -17810,8 +17888,8 @@ function Tc(e) {
17810
17888
  "aria-label": "Table"
17811
17889
  }, M("table", { class: `plx-table${t.striped === !1 ? "" : " plx-striped"}` }, r && M("thead", null, M("tr", null, a(n[0]).map((e) => M("th", { scope: "col" }, e)))), M("tbody", null, n.slice(+!!r).map((e) => M("tr", null, a(e).map((e) => M("td", null, e)))))));
17812
17890
  }
17813
- var Ec = (e) => String(Math.max(0, e)).padStart(2, "0");
17814
- function Dc(e, t) {
17891
+ var Ac = (e) => String(Math.max(0, e)).padStart(2, "0");
17892
+ function jc(e, t) {
17815
17893
  let n = Date.parse(e);
17816
17894
  if (!Number.isFinite(n)) return {
17817
17895
  done: !0,
@@ -17837,11 +17915,11 @@ function Dc(e, t) {
17837
17915
  s: i % 60
17838
17916
  };
17839
17917
  }
17840
- function Oc(e, t) {
17841
- let n = hc(e), r = F(n.target, 40), i = Dc(r, t.now), a = (e, t, r) => M("div", { class: "plx-unit" }, M("span", {
17918
+ function Mc(e, t) {
17919
+ let n = yc(e), r = F(n.target, 40), i = jc(r, t.now), a = (e, t, r) => M("div", { class: "plx-unit" }, M("span", {
17842
17920
  class: "plx-num",
17843
17921
  "data-plx-unit": e
17844
- }, Ec(t)), n.showLabels !== !1 && M("span", { class: "plx-lbl" }, r));
17922
+ }, Ac(t)), n.showLabels !== !1 && M("span", { class: "plx-lbl" }, r));
17845
17923
  return M("div", {
17846
17924
  class: "plx-el plx-timer",
17847
17925
  role: "timer",
@@ -17854,7 +17932,7 @@ function Oc(e, t) {
17854
17932
  a("s", i.s, "Seconds")
17855
17933
  ]);
17856
17934
  }
17857
- function kc(e, t) {
17935
+ function Nc(e, t) {
17858
17936
  let n = gt(e.id, "field"), r = n, i = F(e.label, 200) || n, a = e.required ? !0 : void 0, o = F(e.placeholder, 200) || void 0, s = e.required ? M("span", {
17859
17937
  class: "plx-req",
17860
17938
  "aria-hidden": "true"
@@ -17882,24 +17960,24 @@ function kc(e, t) {
17882
17960
  });
17883
17961
  return M("label", { class: "plx-field" }, M("span", { class: "plx-label" }, i, s), c);
17884
17962
  }
17885
- function Ac(e) {
17963
+ function Pc(e) {
17886
17964
  let t = pt(e.buttonColor), n = pt(e.buttonTextColor) ?? (t && !t.startsWith("var(") ? Oa(t) ?? void 0 : void 0), r = mt(e.buttonRadius), i = {};
17887
17965
  return t && (i["--plx-btn-bg"] = t), n && (i["--plx-btn-fg"] = n), r && (i["--plx-btn-radius"] = r), Object.keys(i).length ? i : void 0;
17888
17966
  }
17889
- function jc(e, t) {
17890
- let n = hc(e), r = vt(n.fields, 40);
17967
+ function Fc(e, t) {
17968
+ let n = yc(e), r = vt(n.fields, 40);
17891
17969
  return r.length ? M("form", {
17892
17970
  class: "plx-el plx-form",
17893
17971
  method: "post",
17894
17972
  action: (n.action && P(n.action) !== "#" ? P(n.action) : "") || t.formAction?.(e.id) || void 0,
17895
17973
  "data-plx-form": t.uid,
17896
17974
  "data-plx-success": F(n.successMessage, 300) || "Thanks! We got your message."
17897
- }, r.map((e) => kc(e, t.uid)), M("div", {
17975
+ }, r.map((e) => Nc(e, t.uid)), M("div", {
17898
17976
  class: "plx-hp",
17899
17977
  "aria-hidden": "true"
17900
17978
  }, M("label", null, "Leave this field blank", M("input", {
17901
17979
  type: "text",
17902
- name: mc,
17980
+ name: vc,
17903
17981
  tabindex: "-1",
17904
17982
  autocomplete: "off"
17905
17983
  }))), {
@@ -17907,11 +17985,11 @@ function jc(e, t) {
17907
17985
  type: "submit",
17908
17986
  class: "plx-submit"
17909
17987
  }, F(n.submitLabel, 80) || "Submit"),
17910
- ...Ac(n) ? { style: Ac(n) } : {}
17911
- }) : M("div", { class: "plx-el plx-form" }, gc("Add a field to your form"));
17988
+ ...Pc(n) ? { style: Pc(n) } : {}
17989
+ }) : M("div", { class: "plx-el plx-form" }, bc("Add a field to your form"));
17912
17990
  }
17913
- function Mc(e, t) {
17914
- let n = hc(e), r = vt(n.items, 50);
17991
+ function Ic(e, t) {
17992
+ let n = yc(e), r = vt(n.items, 50);
17915
17993
  return r.length ? M("div", { class: "plx-el plx-accordion" }, r.map((e, r) => M("details", {
17916
17994
  ...n.allowMultiple ? {} : { name: t.uid },
17917
17995
  open: n.openFirst !== !1 && r === 0 || void 0
@@ -17926,30 +18004,30 @@ function Mc(e, t) {
17926
18004
  "stroke-width": 2.2,
17927
18005
  "stroke-linecap": "round",
17928
18006
  "stroke-linejoin": "round"
17929
- }))), M("div", { class: "plx-body" }, F(e.content, 5e3).split(/\n{2,}/).map((e) => M("p", null, e)))))) : M("div", { class: "plx-el plx-accordion" }, gc("Add a question to start"));
18007
+ }))), M("div", { class: "plx-body" }, F(e.content, 5e3).split(/\n{2,}/).map((e) => M("p", null, e)))))) : M("div", { class: "plx-el plx-accordion" }, bc("Add a question to start"));
17930
18008
  }
17931
- function Nc(e, t) {
18009
+ function Lc(e, t) {
17932
18010
  if (bt(e.type)) return Lt(e, t);
17933
18011
  switch (e.type) {
17934
- case "icon": return _c(e);
17935
- case "carousel": return vc(e, t);
17936
- case "video": return xc(e, t);
17937
- case "social": return Sc(e);
17938
- case "menu": return Cc(e);
17939
- case "html": return wc(e, t);
17940
- case "table": return Tc(e);
17941
- case "timer": return Oc(e, t);
17942
- case "form": return jc(e, t);
17943
- case "accordion": return Mc(e, t);
18012
+ case "icon": return xc(e);
18013
+ case "carousel": return Sc(e, t);
18014
+ case "video": return Tc(e, t);
18015
+ case "social": return Ec(e);
18016
+ case "menu": return Dc(e);
18017
+ case "html": return Oc(e, t);
18018
+ case "table": return kc(e);
18019
+ case "timer": return Mc(e, t);
18020
+ case "form": return Fc(e, t);
18021
+ case "accordion": return Ic(e, t);
17944
18022
  default: return null;
17945
18023
  }
17946
18024
  }
17947
18025
  //#endregion
17948
18026
  //#region src/v2/render/elementCss.ts
17949
- var Pc = ".plx-el{box-sizing:border-box;width:100%;height:100%;min-width:0;color:inherit;font:inherit;text-align:left}\n.plx-el *,.plx-el *::before,.plx-el *::after{box-sizing:border-box}\n.plx-el ul,.plx-el ol{list-style:none!important;padding-left:0!important;margin:0}\n.plx-el li{display:block!important}\n.plx-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:72px;padding:16px;border:1.5px dashed currentColor;border-radius:10px;opacity:.5;font-size:13px;text-align:center}\n.plx-ph{width:100%;height:100%;min-height:60px;background:linear-gradient(135deg,rgba(128,128,128,.18),rgba(128,128,128,.32))}\n\n.plx-icon{display:inline-flex;width:auto;height:auto;line-height:1;font-size:inherit}\n.plx-icon svg{display:block;width:1em;height:1em}\n\n.plx-carousel{position:relative;overflow:hidden;border-radius:inherit}\n.plx-track{display:flex;width:100%;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch}\n.plx-track::-webkit-scrollbar{display:none}\n.plx-slide{position:relative;flex:0 0 100%;height:100%;margin:0;scroll-snap-align:center;overflow:hidden}\n.plx-slide a{display:block;width:100%;height:100%;color:inherit;text-decoration:none}\n.plx-slide img{display:block;width:100%;height:100%;object-fit:cover;user-select:none}\n.plx-slide figcaption{position:absolute;left:0;right:0;bottom:0;padding:28px 20px 16px;color:#fff;font-size:15px;background:linear-gradient(transparent,rgba(0,0,0,.6))}\n.plx-arrow{display:none;position:absolute;top:50%;width:40px;height:40px;margin-top:-20px;align-items:center;justify-content:center;border-radius:999px;background:rgba(0,0,0,.45);color:#fff;text-decoration:none;backdrop-filter:blur(4px);transition:background .15s}\n[data-plx-ready] .plx-arrow{display:flex;align-items:center;justify-content:center}\n.plx-arrow:hover{background:rgba(0,0,0,.7)}\n.plx-arrow svg{width:20px;height:20px}\n.plx-prev{left:12px}.plx-next{right:12px}\n.plx-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:8px;pointer-events:none}\n.plx-dots a{pointer-events:auto;width:9px;height:9px;border-radius:999px;background:rgba(255,255,255,.55);box-shadow:0 0 0 1px rgba(0,0,0,.2);transition:transform .15s,background .15s}\n.plx-dots a[aria-current=\"true\"]{background:#fff;transform:scale(1.25)}\n\n.plx-video{position:relative;width:100%;height:auto;overflow:hidden;border-radius:inherit;background:#000}\n.plx-video iframe,.plx-video video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}\n.plx-video .plx-empty{position:absolute;inset:0;background:#111;color:#e5e7eb;opacity:1;border-color:rgba(255,255,255,.3)}\n\n.plx-social{display:flex;flex-wrap:wrap;align-items:center;gap:12px;width:auto;height:auto}\n.plx-social a{display:inline-flex;align-items:center;justify-content:center;width:var(--plx-size,40px);height:var(--plx-size,40px);color:inherit;text-decoration:none;transition:transform .15s,opacity .15s}\n.plx-social a:hover{transform:translateY(-2px);opacity:.85}\n.plx-social svg{width:52%;height:52%}\n.plx-social--circle a,.plx-social--square a{background:var(--plx-brand,currentColor);color:#fff}\n.plx-social--circle a{border-radius:999px}\n.plx-social--square a{border-radius:10px}\n.plx-social--plain a svg{width:70%;height:70%}\n\n.plx-menu{width:auto;height:auto}\n.plx-menu ul{display:flex;flex-wrap:wrap;gap:8px 28px;margin:0;padding:0;list-style:none}\n.plx-menu--vertical ul{flex-direction:column;gap:12px}\n.plx-menu a{color:inherit;text-decoration:none;font-weight:500}\n.plx-menu a:hover{text-decoration:underline;text-underline-offset:4px}\n.plx-menu-m{display:none;position:relative}\n.plx-menu-m summary{display:flex;width:40px;height:40px;align-items:center;justify-content:center;list-style:none;cursor:pointer;border-radius:8px}\n.plx-menu-m summary::-webkit-details-marker{display:none}\n.plx-menu-m summary svg{width:24px;height:24px}\n/* Fixed (not absolute) so the header's own clipping can't cut it off, and inset from both screen edges so it never runs off the side. */\n.plx-menu-m ul{position:fixed;z-index:50;left:12px;right:12px;top:auto;margin-top:6px;max-height:70vh;overflow-y:auto;flex-direction:column;gap:2px;padding:8px;border-radius:12px;background:#fff;color:#111;box-shadow:0 12px 32px rgba(0,0,0,.18)}\n.plx-menu-m li a{display:block;padding:10px 12px;border-radius:8px}\n.plx-menu-m li a:hover{background:rgba(0,0,0,.06);text-decoration:none}\n@container plx-page (max-width: 599px){\n .plx-menu:not(.plx-menu--expanded) .plx-menu-list{display:none}\n .plx-menu:not(.plx-menu--expanded) .plx-menu-m{display:block}\n}\n/* A long row of links doesn't fit beside a logo and button on a tablet, and wrapping onto a second row looks broken — so it folds into the menu button from tablet width. */\n@container plx-page (max-width: 1023px){\n .plx-menu--long:not(.plx-menu--expanded) .plx-menu-list{display:none}\n .plx-menu--long:not(.plx-menu--expanded) .plx-menu-m{display:block}\n}\n\n.plx-html{overflow:hidden;border-radius:inherit}\n.plx-html iframe{display:block;width:100%;height:100%;min-height:200px;border:0;background:transparent}\n\n.plx-table-wrap{width:100%;height:auto;overflow-x:auto;border-radius:inherit}\n.plx-table{width:100%;border-collapse:collapse;font-size:15px}\n.plx-table th,.plx-table td{padding:12px 16px;text-align:left;border-bottom:1px solid rgba(128,128,128,.28)}\n.plx-table th{font-weight:600;border-bottom:2px solid rgba(128,128,128,.5)}\n.plx-striped tbody tr:nth-child(even){background:rgba(128,128,128,.08)}\n\n.plx-timer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;width:auto;height:auto}\n.plx-unit{display:flex;flex-direction:column;align-items:center;min-width:72px;padding:14px 12px;border-radius:12px;background:rgba(128,128,128,.14)}\n.plx-num{font-size:34px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}\n.plx-lbl{margin-top:6px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.65}\n.plx-expired{font-size:18px;font-weight:600}\n\n.plx-form{display:flex;flex-direction:column;gap:14px;height:auto}\n.plx-field{display:flex;flex-direction:column;gap:6px}\n.plx-label,.plx-check{font-size:14px;font-weight:500}\n.plx-req{color:#e11d48}\n.plx-form input[type=text],.plx-form input[type=email],.plx-form input[type=tel],.plx-form textarea,.plx-form select{width:100%;padding:11px 13px;border:1px solid var(--color-border-default,rgba(128,128,128,.45));border-radius:var(--radius-lg,10px);background:var(--color-bg-surface,rgba(255,255,255,.92));color:var(--color-text-primary,#111);font:inherit;font-size:15px}\n.plx-form ::placeholder{color:var(--color-text-muted,#9ca3af);opacity:1}\n.plx-form textarea{resize:vertical;min-height:96px}\n.plx-form input:focus,.plx-form textarea:focus,.plx-form select:focus{outline:2px solid var(--plx-accent,#2563eb);outline-offset:1px}\n.plx-check{display:flex;align-items:center;gap:10px}\n.plx-check input{width:18px;height:18px}\n.plx-submit{align-self:flex-start;padding:12px 22px;border:0;border-radius:var(--plx-btn-radius,10px);background:var(--plx-btn-bg,var(--plx-accent,#111827));color:var(--plx-btn-fg,var(--plx-on-accent,#fff));font:inherit;font-weight:600;cursor:pointer;transition:opacity .15s}\n.plx-submit:hover{opacity:.9}\n.plx-submit:disabled{opacity:.6;cursor:default}\n.plx-hp{position:absolute;width:0;height:0;overflow:hidden;opacity:0;pointer-events:none}\n.plx-form-note{padding:12px 14px;border-radius:10px;background:rgba(34,197,94,.14);font-weight:500}\n.plx-form-note[data-error]{background:rgba(225,29,72,.14)}\n\n.plx-accordion{display:flex;flex-direction:column;gap:10px;height:auto}\n.plx-accordion details{border:1px solid rgba(128,128,128,.32);border-radius:12px;overflow:hidden}\n.plx-accordion summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;list-style:none;cursor:pointer;font-weight:600}\n.plx-accordion summary::-webkit-details-marker{display:none}\n.plx-chev{flex:none;width:20px;height:20px;transition:transform .2s}\n.plx-accordion details[open] .plx-chev{transform:rotate(180deg)}\n.plx-body{padding:0 18px 16px;opacity:.85;line-height:1.6}\n.plx-body p+p{margin-top:.75em}\n.plx-dyn{display:flex;flex-direction:column;gap:12px;height:auto;min-height:72px;padding:18px;border:1.5px dashed rgba(128,128,128,.55);border-radius:12px;background:rgba(128,128,128,.07)}\n.plx-dyn-head{display:flex;align-items:center;gap:8px;font-size:14px}\n.plx-dyn-tag{padding:2px 8px;border-radius:999px;background:rgba(128,128,128,.22);font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}\n.plx-dyn-note{font-size:12px;opacity:.65}\n.plx-dyn-body{display:flex;flex-direction:column;gap:10px}\n.plx-dyn-bar{display:block;height:10px;border-radius:999px;background:rgba(128,128,128,.28)}\n.plx-dyn-bar--thick{height:16px}\n.plx-dyn-img{display:block;width:100%;border-radius:8px;background:linear-gradient(135deg,rgba(128,128,128,.18),rgba(128,128,128,.34))}\n.plx-dyn-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:14px;align-items:center}\n.plx-dyn-row--tight{grid-template-columns:56px minmax(0,1fr)}\n.plx-dyn-stack{display:flex;flex-direction:column;gap:8px}\n.plx-dyn-grid{display:grid;gap:12px}\n.plx-dyn-card{display:flex;flex-direction:column;gap:8px}\n.plx-dyn-line{display:flex;justify-content:space-between;gap:12px}\n.plx-dyn-line .plx-dyn-bar{flex:0 1 40%}\n.plx-dyn-text{font-size:14px;opacity:.8}\n.plx-dyn-field{display:flex;flex-direction:column;gap:4px}\n.plx-dyn-lbl{font-size:12px;opacity:.7}\n.plx-dyn-input{display:block;height:36px;border:1px solid rgba(128,128,128,.4);border-radius:8px;background:rgba(128,128,128,.08)}\n.plx-dyn-btn{align-self:flex-start;padding:9px 18px;border-radius:8px;background:rgba(128,128,128,.4);font-size:13px;font-weight:600}\n.plx-dyn-chips{display:flex;flex-wrap:wrap;gap:8px}\n.plx-dyn-chip{padding:6px 12px;border:1px solid rgba(128,128,128,.45);border-radius:999px;font-size:12px}\n.plx-dyn-tick{display:flex;width:44px;height:44px;align-items:center;justify-content:center;border-radius:999px;background:rgba(34,197,94,.25);font-size:22px}";
18027
+ var Rc = ".plx-el{box-sizing:border-box;width:100%;height:100%;min-width:0;color:inherit;font:inherit;text-align:left}\n.plx-el *,.plx-el *::before,.plx-el *::after{box-sizing:border-box}\n.plx-el ul,.plx-el ol{list-style:none!important;padding-left:0!important;margin:0}\n.plx-el li{display:block!important}\n.plx-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:72px;padding:16px;border:1.5px dashed currentColor;border-radius:10px;opacity:.5;font-size:13px;text-align:center}\n.plx-ph{width:100%;height:100%;min-height:60px;background:linear-gradient(135deg,rgba(128,128,128,.18),rgba(128,128,128,.32))}\n\n.plx-icon{display:inline-flex;width:auto;height:auto;line-height:1;font-size:inherit}\n.plx-icon svg{display:block;width:1em;height:1em}\n\n.plx-carousel{position:relative;overflow:hidden;border-radius:inherit}\n.plx-track{display:flex;width:100%;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch}\n.plx-track::-webkit-scrollbar{display:none}\n.plx-slide{position:relative;flex:0 0 100%;height:100%;margin:0;scroll-snap-align:center;overflow:hidden}\n.plx-slide a{display:block;width:100%;height:100%;color:inherit;text-decoration:none}\n.plx-slide img{display:block;width:100%;height:100%;object-fit:cover;user-select:none}\n.plx-slide figcaption{position:absolute;left:0;right:0;bottom:0;padding:28px 20px 16px;color:#fff;font-size:15px;background:linear-gradient(transparent,rgba(0,0,0,.6))}\n.plx-arrow{display:none;position:absolute;top:50%;width:40px;height:40px;margin-top:-20px;align-items:center;justify-content:center;border-radius:999px;background:rgba(0,0,0,.45);color:#fff;text-decoration:none;backdrop-filter:blur(4px);transition:background .15s}\n[data-plx-ready] .plx-arrow{display:flex;align-items:center;justify-content:center}\n.plx-arrow:hover{background:rgba(0,0,0,.7)}\n.plx-arrow svg{width:20px;height:20px}\n.plx-prev{left:12px}.plx-next{right:12px}\n.plx-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:8px;pointer-events:none}\n.plx-dots a{pointer-events:auto;width:9px;height:9px;border-radius:999px;background:rgba(255,255,255,.55);box-shadow:0 0 0 1px rgba(0,0,0,.2);transition:transform .15s,background .15s}\n.plx-dots a[aria-current=\"true\"]{background:#fff;transform:scale(1.25)}\n\n.plx-video{position:relative;width:100%;height:auto;overflow:hidden;border-radius:inherit;background:#000}\n.plx-video iframe,.plx-video video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}\n.plx-video .plx-empty{position:absolute;inset:0;background:#111;color:#e5e7eb;opacity:1;border-color:rgba(255,255,255,.3)}\n\n.plx-social{display:flex;flex-wrap:wrap;align-items:center;gap:12px;width:auto;height:auto}\n.plx-social a{display:inline-flex;align-items:center;justify-content:center;width:var(--plx-size,40px);height:var(--plx-size,40px);color:inherit;text-decoration:none;transition:transform .15s,opacity .15s}\n.plx-social a:hover{transform:translateY(-2px);opacity:.85}\n.plx-social svg{width:52%;height:52%}\n.plx-social--circle a,.plx-social--square a{background:var(--plx-brand,currentColor);color:#fff}\n.plx-social--circle a{border-radius:999px}\n.plx-social--square a{border-radius:10px}\n.plx-social--plain a svg{width:70%;height:70%}\n\n.plx-menu{width:auto;height:auto}\n.plx-menu ul{display:flex;flex-wrap:wrap;gap:8px 28px;margin:0;padding:0;list-style:none}\n.plx-menu--vertical ul{flex-direction:column;gap:12px}\n.plx-menu a{color:inherit;text-decoration:none;font-weight:500}\n.plx-menu a:hover{text-decoration:underline;text-underline-offset:4px}\n.plx-menu-m{display:none;position:relative}\n.plx-menu-m summary{display:flex;width:40px;height:40px;align-items:center;justify-content:center;list-style:none;cursor:pointer;border-radius:8px}\n.plx-menu-m summary::-webkit-details-marker{display:none}\n.plx-menu-m summary svg{width:24px;height:24px}\n/* Fixed (not absolute) so the header's own clipping can't cut it off, and inset from both screen edges so it never runs off the side. */\n.plx-menu-m ul{position:fixed;z-index:50;left:12px;right:12px;top:auto;margin-top:6px;max-height:70vh;overflow-y:auto;flex-direction:column;gap:2px;padding:8px;border-radius:12px;background:#fff;color:#111;box-shadow:0 12px 32px rgba(0,0,0,.18)}\n.plx-menu-m li a{display:block;padding:10px 12px;border-radius:8px}\n.plx-menu-m li a:hover{background:rgba(0,0,0,.06);text-decoration:none}\n@container plx-page (max-width: 599px){\n .plx-menu:not(.plx-menu--expanded) .plx-menu-list{display:none}\n .plx-menu:not(.plx-menu--expanded) .plx-menu-m{display:block}\n}\n/* A long row of links doesn't fit beside a logo and button on a tablet, and wrapping onto a second row looks broken — so it folds into the menu button from tablet width. */\n@container plx-page (max-width: 1023px){\n .plx-menu--long:not(.plx-menu--expanded) .plx-menu-list{display:none}\n .plx-menu--long:not(.plx-menu--expanded) .plx-menu-m{display:block}\n}\n\n.plx-html{overflow:hidden;border-radius:inherit}\n.plx-html iframe{display:block;width:100%;height:100%;min-height:200px;border:0;background:transparent}\n\n.plx-table-wrap{width:100%;height:auto;overflow-x:auto;border-radius:inherit}\n.plx-table{width:100%;border-collapse:collapse;font-size:15px}\n.plx-table th,.plx-table td{padding:12px 16px;text-align:left;border-bottom:1px solid rgba(128,128,128,.28)}\n.plx-table th{font-weight:600;border-bottom:2px solid rgba(128,128,128,.5)}\n.plx-striped tbody tr:nth-child(even){background:rgba(128,128,128,.08)}\n\n.plx-timer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;width:auto;height:auto}\n.plx-unit{display:flex;flex-direction:column;align-items:center;min-width:72px;padding:14px 12px;border-radius:12px;background:rgba(128,128,128,.14)}\n.plx-num{font-size:34px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}\n.plx-lbl{margin-top:6px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.65}\n.plx-expired{font-size:18px;font-weight:600}\n\n.plx-form{display:flex;flex-direction:column;gap:14px;height:auto}\n.plx-field{display:flex;flex-direction:column;gap:6px}\n.plx-label,.plx-check{font-size:14px;font-weight:500}\n.plx-req{color:#e11d48}\n.plx-form input[type=text],.plx-form input[type=email],.plx-form input[type=tel],.plx-form textarea,.plx-form select{width:100%;padding:11px 13px;border:1px solid var(--color-border-default,rgba(128,128,128,.45));border-radius:var(--radius-lg,10px);background:var(--color-bg-surface,rgba(255,255,255,.92));color:var(--color-text-primary,#111);font:inherit;font-size:15px}\n.plx-form ::placeholder{color:var(--color-text-muted,#9ca3af);opacity:1}\n.plx-form textarea{resize:vertical;min-height:96px}\n.plx-form input:focus,.plx-form textarea:focus,.plx-form select:focus{outline:2px solid var(--plx-accent,#2563eb);outline-offset:1px}\n.plx-check{display:flex;align-items:center;gap:10px}\n.plx-check input{width:18px;height:18px}\n.plx-submit{align-self:flex-start;padding:12px 22px;border:0;border-radius:var(--plx-btn-radius,10px);background:var(--plx-btn-bg,var(--plx-accent,#111827));color:var(--plx-btn-fg,var(--plx-on-accent,#fff));font:inherit;font-weight:600;cursor:pointer;transition:opacity .15s}\n.plx-submit:hover{opacity:.9}\n.plx-submit:disabled{opacity:.6;cursor:default}\n.plx-hp{position:absolute;width:0;height:0;overflow:hidden;opacity:0;pointer-events:none}\n.plx-form-note{padding:12px 14px;border-radius:10px;background:rgba(34,197,94,.14);font-weight:500}\n.plx-form-note[data-error]{background:rgba(225,29,72,.14)}\n\n.plx-accordion{display:flex;flex-direction:column;gap:10px;height:auto}\n.plx-accordion details{border:1px solid rgba(128,128,128,.32);border-radius:12px;overflow:hidden}\n.plx-accordion summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;list-style:none;cursor:pointer;font-weight:600}\n.plx-accordion summary::-webkit-details-marker{display:none}\n.plx-chev{flex:none;width:20px;height:20px;transition:transform .2s}\n.plx-accordion details[open] .plx-chev{transform:rotate(180deg)}\n.plx-body{padding:0 18px 16px;opacity:.85;line-height:1.6}\n.plx-body p+p{margin-top:.75em}\n.plx-dyn{display:flex;flex-direction:column;gap:12px;height:auto;min-height:72px;padding:18px;border:1.5px dashed rgba(128,128,128,.55);border-radius:12px;background:rgba(128,128,128,.07)}\n.plx-dyn-head{display:flex;align-items:center;gap:8px;font-size:14px}\n.plx-dyn-tag{padding:2px 8px;border-radius:999px;background:rgba(128,128,128,.22);font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}\n.plx-dyn-note{font-size:12px;opacity:.65}\n.plx-dyn-body{display:flex;flex-direction:column;gap:10px}\n.plx-dyn-bar{display:block;height:10px;border-radius:999px;background:rgba(128,128,128,.28)}\n.plx-dyn-bar--thick{height:16px}\n.plx-dyn-img{display:block;width:100%;border-radius:8px;background:linear-gradient(135deg,rgba(128,128,128,.18),rgba(128,128,128,.34))}\n.plx-dyn-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:14px;align-items:center}\n.plx-dyn-row--tight{grid-template-columns:56px minmax(0,1fr)}\n.plx-dyn-stack{display:flex;flex-direction:column;gap:8px}\n.plx-dyn-grid{display:grid;gap:12px}\n.plx-dyn-card{display:flex;flex-direction:column;gap:8px}\n.plx-dyn-line{display:flex;justify-content:space-between;gap:12px}\n.plx-dyn-line .plx-dyn-bar{flex:0 1 40%}\n.plx-dyn-text{font-size:14px;opacity:.8}\n.plx-dyn-field{display:flex;flex-direction:column;gap:4px}\n.plx-dyn-lbl{font-size:12px;opacity:.7}\n.plx-dyn-input{display:block;height:36px;border:1px solid rgba(128,128,128,.4);border-radius:8px;background:rgba(128,128,128,.08)}\n.plx-dyn-btn{align-self:flex-start;padding:9px 18px;border-radius:8px;background:rgba(128,128,128,.4);font-size:13px;font-weight:600}\n.plx-dyn-chips{display:flex;flex-wrap:wrap;gap:8px}\n.plx-dyn-chip{padding:6px 12px;border:1px solid rgba(128,128,128,.45);border-radius:999px;font-size:12px}\n.plx-dyn-tick{display:flex;width:44px;height:44px;align-items:center;justify-content:center;border-radius:999px;background:rgba(34,197,94,.25);font-size:22px}";
17950
18028
  //#endregion
17951
18029
  //#region src/v2/render/formAction.ts
17952
- function Fc(e, t, n) {
18030
+ function zc(e, t, n) {
17953
18031
  let r = e?.trim();
17954
18032
  if (r) return {
17955
18033
  kind: "custom",
@@ -17964,14 +18042,14 @@ function Fc(e, t, n) {
17964
18042
  url: `/api/public/forms/${encodeURIComponent(n.templateId)}/submit?form=${encodeURIComponent(t)}`
17965
18043
  } : { kind: "none" };
17966
18044
  }
17967
- var Ic = (e) => (t) => {
17968
- let n = Fc(void 0, t, e);
18045
+ var Bc = (e) => (t) => {
18046
+ let n = zc(void 0, t, e);
17969
18047
  return n.kind === "none" ? void 0 : n.url;
17970
- }, Lc = (e) => e.toLowerCase().normalize("NFKD").replace(/[̀-ͯ]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
17971
- function Rc(e) {
18048
+ }, Vc = (e) => e.toLowerCase().normalize("NFKD").replace(/[̀-ͯ]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
18049
+ function Hc(e) {
17972
18050
  let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = (e) => {
17973
18051
  if (e.type === "section") {
17974
- let r = gt((typeof e.props?.anchor == "string" ? Lc(e.props.anchor) : "") || Lc(e.name || "") || "section", "section"), i = r;
18052
+ let r = gt((typeof e.props?.anchor == "string" ? Vc(e.props.anchor) : "") || Vc(e.name || "") || "section", "section"), i = r;
17975
18053
  for (let e = 2; n.has(i); e++) i = `${r}-${e}`;
17976
18054
  n.add(i), t.set(e.id, i);
17977
18055
  }
@@ -17981,23 +18059,23 @@ function Rc(e) {
17981
18059
  }
17982
18060
  //#endregion
17983
18061
  //#region src/v2/render/boxTags.ts
17984
- var zc = [
18062
+ var Uc = [
17985
18063
  "header",
17986
18064
  "nav",
17987
18065
  "main",
17988
18066
  "footer",
17989
18067
  "aside",
17990
18068
  "article"
17991
- ], Bc = {
18069
+ ], Wc = {
17992
18070
  section: [
17993
18071
  "section",
17994
- ...zc,
18072
+ ...Uc,
17995
18073
  "div"
17996
18074
  ],
17997
18075
  container: [
17998
18076
  "div",
17999
18077
  "section",
18000
- ...zc
18078
+ ...Uc
18001
18079
  ],
18002
18080
  card: [
18003
18081
  "div",
@@ -18008,52 +18086,52 @@ var zc = [
18008
18086
  columns: [
18009
18087
  "div",
18010
18088
  "section",
18011
- ...zc
18089
+ ...Uc
18012
18090
  ],
18013
18091
  column: [
18014
18092
  "div",
18015
18093
  "section",
18016
- ...zc
18094
+ ...Uc
18017
18095
  ]
18018
- }, Vc = {
18096
+ }, Gc = {
18019
18097
  section: "section",
18020
18098
  container: "div",
18021
18099
  card: "div",
18022
18100
  columns: "div",
18023
18101
  column: "div"
18024
- }, Hc = null, Uc = () => Hc ??= ue(), Wc = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
18025
- function Gc(e) {
18102
+ }, Kc = null, qc = () => Kc ??= ue(), Jc = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
18103
+ function Yc(e) {
18026
18104
  if (!/^(?:repeating-)?(?:linear|radial|conic)-gradient\(/i.test(e) || e.length > 600 || !/^[A-Za-z0-9\s.,#%()\-+*/]+$/.test(e) || /url\s*\(|expression|javascript|image-set|\/\*/i.test(e)) return !1;
18027
18105
  let t = 0;
18028
18106
  for (let n of e) if (n === "(") t += 1;
18029
18107
  else if (n === ")" && --t < 0) return !1;
18030
18108
  return t === 0 && e.endsWith(")");
18031
18109
  }
18032
- function Kc(e, t) {
18110
+ function Xc(e, t) {
18033
18111
  if (typeof t == "number") return Number.isFinite(t) ? String(t) : null;
18034
18112
  let n = t.trim();
18035
- return n ? e === "backgroundImage" ? n === "none" || /^url\("(?:[^"\\\n]|\\[0-9a-f]{1,6} )*"\)$/i.test(n) || Gc(n) ? n : null : /[;{}<>\\]|\/\*|@import|expression\s*\(|javascript:|behavior\s*:|-moz-binding|url\s*\(/i.test(n) ? null : n : null;
18113
+ return n ? e === "backgroundImage" ? n === "none" || /^url\("(?:[^"\\\n]|\\[0-9a-f]{1,6} )*"\)$/i.test(n) || Yc(n) ? n : null : /[;{}<>\\]|\/\*|@import|expression\s*\(|javascript:|behavior\s*:|-moz-binding|url\s*\(/i.test(n) ? null : n : null;
18036
18114
  }
18037
- function qc(e) {
18115
+ function Zc(e) {
18038
18116
  let t = [];
18039
18117
  for (let [n, r] of Object.entries(e)) {
18040
18118
  if (r === void 0) continue;
18041
- let e = Kc(n, r);
18042
- e !== null && t.push(`${Wc(n)}:${e}`);
18119
+ let e = Xc(n, r);
18120
+ e !== null && t.push(`${Jc(n)}:${e}`);
18043
18121
  }
18044
18122
  return t.join(";");
18045
18123
  }
18046
- function Jc(e, t) {
18124
+ function Qc(e, t) {
18047
18125
  let n = {};
18048
18126
  for (let r of Object.keys(t)) e[r] !== t[r] && (n[r] = t[r]);
18049
18127
  for (let r of Object.keys(e)) r in t || (n[r] = r === "display" ? "revert" : "unset");
18050
18128
  return n;
18051
18129
  }
18052
- var Yc = (e) => {
18130
+ var $c = (e) => {
18053
18131
  let t = e?.split(",")[0]?.trim().replace(/^['"]|['"]$/g, "");
18054
18132
  return t && x(t) ? t : null;
18055
18133
  };
18056
- function Xc(e, t) {
18134
+ function el(e, t) {
18057
18135
  if (t && e.includes(t)) {
18058
18136
  let [n, ...r] = e.split(t);
18059
18137
  return [
@@ -18064,7 +18142,7 @@ function Xc(e, t) {
18064
18142
  }
18065
18143
  return [e];
18066
18144
  }
18067
- function Zc(e, t = {}) {
18145
+ function tl(e, t = {}) {
18068
18146
  let n = {
18069
18147
  desktop: ye(e.rootNode, "desktop"),
18070
18148
  tablet: ye(e.rootNode, "tablet"),
@@ -18073,7 +18151,7 @@ function Zc(e, t = {}) {
18073
18151
  apiKey: t.apiKey,
18074
18152
  templateId: t.templateId,
18075
18153
  formAction: t.formAction
18076
- }, p = Rc(e.rootNode), m = (e, c) => {
18154
+ }, p = Hc(e.rootNode), m = (e, c) => {
18077
18155
  if (e.hidden) return null;
18078
18156
  let m = e.type === "page", h = {
18079
18157
  desktop: !0,
@@ -18088,14 +18166,14 @@ function Zc(e, t = {}) {
18088
18166
  v[t] = { display: "none" };
18089
18167
  continue;
18090
18168
  }
18091
- let n = de(e, t), r = lc(e, n, {
18169
+ let n = de(e, t), r = pc(e, n, {
18092
18170
  viewport: t,
18093
18171
  isGridChild: (c ? de(c, t).layoutMode : void 0) === "grid",
18094
18172
  isRootPage: m,
18095
18173
  forPublish: !0
18096
18174
  }).css;
18097
18175
  e.type === "section" && (r.overflow = "hidden"), e.props?.isFlowSpacer && (r.visibility = "hidden"), v[t] = r;
18098
- let o = Yc(n.fontFamily);
18176
+ let o = $c(n.fontFamily);
18099
18177
  o && i.add(o);
18100
18178
  let s = n.isBold ? 700 : Number(n.fontWeight);
18101
18179
  Number.isInteger(s) && s >= 100 && s <= 900 && a.add(s);
@@ -18104,22 +18182,22 @@ function Zc(e, t = {}) {
18104
18182
  cls: _,
18105
18183
  rule: v
18106
18184
  });
18107
- let y = oc(de(e, "desktop"));
18185
+ let y = uc(de(e, "desktop"));
18108
18186
  y && l.push({
18109
18187
  cls: _,
18110
18188
  css: y
18111
18189
  });
18112
18190
  let b = [_, ht(de(e, "desktop").customClasses)].filter(Boolean).join(" "), x = () => (e.children ?? []).map((t) => g(t, e)).filter((e) => e !== null);
18113
18191
  if (zt(e.type)) {
18114
- let n = Nc(e, {
18192
+ let n = Lc(e, {
18115
18193
  uid: gt(e.id),
18116
18194
  editing: !1,
18117
18195
  allowEmbedScripts: t.allowEmbedScripts !== !1,
18118
- formAction: Ic(f),
18196
+ formAction: Bc(f),
18119
18197
  now: d,
18120
18198
  templateId: t.templateId
18121
18199
  });
18122
- return n ? ((e.type === "carousel" || e.type === "timer" || e.type === "form") && (s = !0), e.type === "form" && Fc((e.props ?? {}).action, e.id, f).kind === "none" && o.push(`The form "${e.name}" has nowhere to send messages. Give it an address, or set one for the whole site.`), e.type === "signupForm" && !n.attrs?.["data-plexo-template-id"] && o.push(`The sign-up form "${e.name}" isn't connected to a funnel yet, so visitors can't sign up.`), {
18200
+ return n ? ((e.type === "carousel" || e.type === "timer" || e.type === "form") && (s = !0), e.type === "form" && zc((e.props ?? {}).action, e.id, f).kind === "none" && o.push(`The form "${e.name}" has nowhere to send messages. Give it an address, or set one for the whole site.`), e.type === "signupForm" && !n.attrs?.["data-plexo-template-id"] && o.push(`The sign-up form "${e.name}" isn't connected to a funnel yet, so visitors can't sign up.`), {
18123
18201
  ...n,
18124
18202
  attrs: {
18125
18203
  ...n.attrs,
@@ -18133,10 +18211,10 @@ function Zc(e, t = {}) {
18133
18211
  class: b,
18134
18212
  id: p.get(e.id)
18135
18213
  }, x());
18136
- case "heading": return M(`h${_t(e.props?.level, 1, 6, 2)}`, { class: b }, Xc(e.content ?? "", e.props?.highlightText));
18137
- case "paragraph": return M("p", { class: b }, Xc(e.content ?? "", e.props?.highlightText));
18214
+ case "heading": return M(`h${_t(e.props?.level, 1, 6, 2)}`, { class: b }, el(e.content ?? "", e.props?.highlightText));
18215
+ case "paragraph": return M("p", { class: b }, el(e.content ?? "", e.props?.highlightText));
18138
18216
  case "button": {
18139
- let t = e.props?.href ? P(e.props.href) : "", n = Xc(e.content ?? "", e.props?.highlightText);
18217
+ let t = e.props?.href ? P(e.props.href) : "", n = el(e.content ?? "", e.props?.highlightText);
18140
18218
  return t && t !== "#" ? M("a", {
18141
18219
  class: `${b} plx-btn`,
18142
18220
  href: t
@@ -18145,7 +18223,7 @@ function Zc(e, t = {}) {
18145
18223
  type: "button"
18146
18224
  }, n);
18147
18225
  }
18148
- case "badge": return M("div", { class: b }, Xc(e.content ?? "", e.props?.highlightText));
18226
+ case "badge": return M("div", { class: b }, el(e.content ?? "", e.props?.highlightText));
18149
18227
  case "image": {
18150
18228
  let t = ut(e.props?.src);
18151
18229
  return M("div", { class: `${b} plx-image` }, t ? {
@@ -18173,10 +18251,10 @@ function Zc(e, t = {}) {
18173
18251
  if (!n) return n;
18174
18252
  let r = {}, i = typeof e.props?.ariaLabel == "string" ? e.props.ariaLabel.trim().slice(0, 200) : "";
18175
18253
  i && (r["aria-label"] = i), e.props?.ariaHidden === !0 && (r["aria-hidden"] = "true");
18176
- let a = Bc[e.type] && typeof e.props?.htmlTag == "string" && Bc[e.type].includes(e.props.htmlTag) ? e.props.htmlTag : null, o = a ? {
18254
+ let a = Wc[e.type] && typeof e.props?.htmlTag == "string" && Wc[e.type].includes(e.props.htmlTag) ? e.props.htmlTag : null, o = a ? {
18177
18255
  ...n,
18178
18256
  tag: a
18179
- } : n, l = e.type === "page" ? void 0 : cc(de(e, "desktop"));
18257
+ } : n, l = e.type === "page" ? void 0 : fc(de(e, "desktop"));
18180
18258
  l && (s = !0, c = !0, r.class = `${o.attrs?.class ?? ""} plx-in plx-in-${l.kind}`.trim());
18181
18259
  let u = Object.keys(r).length ? {
18182
18260
  ...o,
@@ -18188,7 +18266,7 @@ function Zc(e, t = {}) {
18188
18266
  ...o.style,
18189
18267
  "--plx-delay": `${l.delay}ms`
18190
18268
  } } : {}
18191
- } : o, d = e.type === "section" ? null : Ws(e.props?.htmlId);
18269
+ } : o, d = e.type === "section" ? null : Js(e.props?.htmlId);
18192
18270
  if (!d) return u;
18193
18271
  let f = d;
18194
18272
  for (let e = 2; h.has(f); e++) f = `${d}-${e}`;
@@ -18205,7 +18283,7 @@ function Zc(e, t = {}) {
18205
18283
  for (let [r, i] of n[e]) i === "outside" && n.desktop.get(r) !== "outside" && (t += 1);
18206
18284
  t && o.push(`On ${e}, ${t === 1 ? "1 element is" : `${t} elements are`} outside the screen and won't appear. Open the ${e} view and choose "Fit to this screen".`);
18207
18285
  }
18208
- let v = t.designSystem ? E(t.designSystem) : Uc(), y = g(e.rootNode, null) ?? M("div", { class: "plx-page" }), x = RegExp(`"type":"(${Rt.join("|")})"`).test(JSON.stringify(e.rootNode)), S = [
18286
+ let v = t.designSystem ? E(t.designSystem) : qc(), y = g(e.rootNode, null) ?? M("div", { class: "plx-page" }), x = RegExp(`"type":"(${Rt.join("|")})"`).test(JSON.stringify(e.rootNode)), S = [
18209
18287
  ":where(.plx-page,.plx-page *,.plx-page *::before,.plx-page *::after){box-sizing:border-box}",
18210
18288
  ":where(.plx-page *){margin:0;padding:0;border:0 solid}",
18211
18289
  ".plx-page{position:relative;overflow-x:clip;container-type:inline-size;container-name:plx-page;-webkit-text-size-adjust:100%;font-family:var(--semantic-font-family-body, var(--font-family-sans))}",
@@ -18221,16 +18299,16 @@ function Zc(e, t = {}) {
18221
18299
  ".plx-hl{color:#FBBF24;font-style:italic;font-family:serif;font-weight:400}",
18222
18300
  ".plx-ph{width:100%;height:100%;min-height:60px;background:linear-gradient(135deg,rgba(128,128,128,.18),rgba(128,128,128,.32))}"
18223
18301
  ];
18224
- x && S.push(Pc);
18302
+ x && S.push(Rc);
18225
18303
  for (let { cls: e, rule: t } of r) {
18226
- let n = t.desktop ? qc(t.desktop) : "";
18304
+ let n = t.desktop ? Zc(t.desktop) : "";
18227
18305
  n && S.push(`.${e}{${n}}`);
18228
18306
  }
18229
- l.length && S.push(`@media (hover:hover){${l.map((e) => `.${e.cls}:hover{${qc(e.css)}}`).join("")}}`), c && S.push("@media (prefers-reduced-motion:no-preference){.plx-anim .plx-in{opacity:0;transition:opacity .6s ease-out var(--plx-delay,0ms),translate .6s ease-out var(--plx-delay,0ms),scale .6s ease-out var(--plx-delay,0ms)}.plx-anim .plx-in.plx-in-slide-up{translate:0 28px}.plx-anim .plx-in.plx-in-slide-left{translate:-36px 0}.plx-anim .plx-in.plx-in-slide-right{translate:36px 0}.plx-anim .plx-in.plx-in-zoom{scale:.92}.plx-anim .plx-in.plx-in-on{opacity:1;translate:none;scale:none}}");
18307
+ l.length && S.push(`@media (hover:hover){${l.map((e) => `.${e.cls}:hover{${Zc(e.css)}}`).join("")}}`), c && S.push("@media (prefers-reduced-motion:no-preference){.plx-anim .plx-in{opacity:0;transition:opacity .6s ease-out var(--plx-delay,0ms),translate .6s ease-out var(--plx-delay,0ms),scale .6s ease-out var(--plx-delay,0ms)}.plx-anim .plx-in.plx-in-slide-up{translate:0 28px}.plx-anim .plx-in.plx-in-slide-left{translate:-36px 0}.plx-anim .plx-in.plx-in-slide-right{translate:36px 0}.plx-anim .plx-in.plx-in-zoom{scale:.92}.plx-anim .plx-in.plx-in-on{opacity:1;translate:none;scale:none}}");
18230
18308
  for (let e of ["tablet", "mobile"]) {
18231
18309
  let t = e === "tablet" ? "desktop" : "tablet", n = [];
18232
18310
  for (let { cls: i, rule: a } of r) {
18233
- let r = qc(Jc(a[t] ?? {}, a[e] ?? {}));
18311
+ let r = Zc(Qc(a[t] ?? {}, a[e] ?? {}));
18234
18312
  r && n.push(`.${i}{${r}}`);
18235
18313
  }
18236
18314
  n.length && S.push(`@container plx-page ${pe[e]}{${n.join("")}}`);
@@ -18252,7 +18330,7 @@ function Zc(e, t = {}) {
18252
18330
  }
18253
18331
  //#endregion
18254
18332
  //#region src/v2/compile/html.ts
18255
- var Qc = (e) => {
18333
+ var nl = (e) => {
18256
18334
  let t = "";
18257
18335
  for (let [n, r] of Object.entries(e.attrs ?? {})) r === void 0 || r === !1 || (t += r === !0 ? ` ${n}` : ` ${n}="${N(String(r))}"`);
18258
18336
  if (e.style) {
@@ -18261,13 +18339,13 @@ var Qc = (e) => {
18261
18339
  }
18262
18340
  return t;
18263
18341
  };
18264
- function $c(e) {
18342
+ function rl(e) {
18265
18343
  if (typeof e == "string") return st(e);
18266
- let t = `<${e.tag}${Qc(e)}>`;
18267
- return et.has(e.tag) ? t : `${t}${(e.children ?? []).map($c).join("")}</${e.tag}>`;
18344
+ let t = `<${e.tag}${nl(e)}>`;
18345
+ return et.has(e.tag) ? t : `${t}${(e.children ?? []).map(rl).join("")}</${e.tag}>`;
18268
18346
  }
18269
- function el(e, t = {}) {
18270
- let n = Zc(e, t), r = $c(n.tree), i = t.runtime === "none" || !n.usesRuntime ? "" : `(${Hs})(document);`.replace(/<\/script/gi, "<\\/script"), a = Ks(t.customJs);
18347
+ function il(e, t = {}) {
18348
+ let n = tl(e, t), r = rl(n.tree), i = t.runtime === "none" || !n.usesRuntime ? "" : `(${Ks})(document);`.replace(/<\/script/gi, "<\\/script"), a = Xs(t.customJs);
18271
18349
  a.warning && n.warnings.push(a.warning);
18272
18350
  let o = a.code ? `${i}${i ? "\n" : ""}${a.code}` : i, s = n.fontLinks.length ? `<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>${n.fontLinks.map((e) => `<link rel="stylesheet" href="${N(e)}">`).join("")}` : "", c = `<!doctype html>
18273
18351
  <html lang="${N(t.lang ?? "en")}">
@@ -18293,14 +18371,14 @@ ${i ? `<script>${i}<\/script>\n` : ""}${a.code ? `<script>\n${a.code}\n<\/script
18293
18371
  }
18294
18372
  //#endregion
18295
18373
  //#region src/v2/email/support.ts
18296
- var tl = /* @__PURE__ */ new Set([
18374
+ var al = /* @__PURE__ */ new Set([
18297
18375
  "page",
18298
18376
  "section",
18299
18377
  "container",
18300
18378
  "columns",
18301
18379
  "column",
18302
18380
  "card"
18303
- ]), nl = /* @__PURE__ */ new Set([
18381
+ ]), ol = /* @__PURE__ */ new Set([
18304
18382
  "heading",
18305
18383
  "paragraph",
18306
18384
  "button",
@@ -18308,18 +18386,18 @@ var tl = /* @__PURE__ */ new Set([
18308
18386
  "divider",
18309
18387
  "spacer",
18310
18388
  "badge"
18311
- ]), rl = (e) => tl.has(e) || nl.has(e), il = 600, al = (e, t, n = null) => {
18312
- t(e, n), e.children?.forEach((n) => al(n, t, e));
18389
+ ]), sl = (e) => al.has(e) || ol.has(e), cl = 600, ll = (e, t, n = null) => {
18390
+ t(e, n), e.children?.forEach((n) => ll(n, t, e));
18313
18391
  };
18314
- function ol(e) {
18392
+ function ul(e) {
18315
18393
  let t = [];
18316
- return al(e.rootNode, (e) => {
18394
+ return ll(e.rootNode, (e) => {
18317
18395
  let n = (n) => t.push({
18318
18396
  nodeId: e.id,
18319
18397
  name: e.name,
18320
18398
  message: n
18321
18399
  });
18322
- if (!rl(e.type)) {
18400
+ if (!sl(e.type)) {
18323
18401
  n(`“${e.name}” is a ${e.type}, which email apps can't show, so it is left out.`);
18324
18402
  return;
18325
18403
  }
@@ -18329,7 +18407,7 @@ function ol(e) {
18329
18407
  }
18330
18408
  //#endregion
18331
18409
  //#region src/v2/email/compile.ts
18332
- var sl = (e) => {
18410
+ var dl = (e) => {
18333
18411
  let t = f(e);
18334
18412
  return t && t.a > .05 ? [
18335
18413
  t.r,
@@ -18337,7 +18415,7 @@ var sl = (e) => {
18337
18415
  t.b
18338
18416
  ] : null;
18339
18417
  };
18340
- function cl([e, t, n]) {
18418
+ function fl([e, t, n]) {
18341
18419
  let r = e / 255, i = t / 255, a = n / 255, o = Math.max(r, i, a), s = Math.min(r, i, a), c = (o + s) / 2;
18342
18420
  if (o === s) return [
18343
18421
  0,
@@ -18351,7 +18429,7 @@ function cl([e, t, n]) {
18351
18429
  c
18352
18430
  ];
18353
18431
  }
18354
- var ll = (e, t, n) => {
18432
+ var pl = (e, t, n) => {
18355
18433
  let { r, g: i, b: a } = p(e, Math.max(0, Math.min(1, t)) * 100, Math.max(0, Math.min(1, n)) * 100);
18356
18434
  return m({
18357
18435
  r,
@@ -18360,14 +18438,14 @@ var ll = (e, t, n) => {
18360
18438
  a: 1
18361
18439
  });
18362
18440
  };
18363
- function ul(e, t) {
18364
- let n = sl(t);
18441
+ function ml(e, t) {
18442
+ let n = dl(t);
18365
18443
  if (!n) return null;
18366
- let [r, i, a] = cl(n);
18367
- return e === "bg" ? a >= .55 ? ll(r, Math.min(i, .35) * .6, .045 + (a - .55) * .2) : null : e === "text" || e === "border" ? a >= .5 ? null : i > .25 ? ll(r, Math.min(i, .7), Math.max(a, .64)) : e === "border" ? ll(r, i, Math.max(a, .55)) : ll(r, i * .8, Math.min(.93, .93 - a * .5)) : e === "btnbg" ? a < .2 && i < .25 ? ll(r, i * .3, .92) : a < .34 ? ll(r, i, .44) : null : e === "btntext" ? a > .8 ? ll(r, Math.min(i, .3), .1) : null : a > .6 ? ll(r, i * .5, .2 + (a - .6) * .15) : null;
18444
+ let [r, i, a] = fl(n);
18445
+ return e === "bg" ? a >= .55 ? pl(r, Math.min(i, .35) * .6, .045 + (a - .55) * .2) : null : e === "text" || e === "border" ? a >= .5 ? null : i > .25 ? pl(r, Math.min(i, .7), Math.max(a, .64)) : e === "border" ? pl(r, i, Math.max(a, .55)) : pl(r, i * .8, Math.min(.93, .93 - a * .5)) : e === "btnbg" ? a < .2 && i < .25 ? pl(r, i * .3, .92) : a < .34 ? pl(r, i, .44) : null : e === "btntext" ? a > .8 ? pl(r, Math.min(i, .3), .1) : null : a > .6 ? pl(r, i * .5, .2 + (a - .6) * .15) : null;
18368
18446
  }
18369
- var dl = "Arial, Helvetica, sans-serif", G = (e) => `${Math.round(e * 100) / 100}px`;
18370
- function fl(e) {
18447
+ var hl = "Arial, Helvetica, sans-serif", G = (e) => `${Math.round(e * 100) / 100}px`;
18448
+ function gl(e) {
18371
18449
  if (typeof e == "number" && Number.isFinite(e)) return e;
18372
18450
  if (typeof e != "string") return;
18373
18451
  let t = /^\s*(-?\d+(?:\.\d+)?)\s*(px|rem|em)?\s*$/.exec(e);
@@ -18375,11 +18453,11 @@ function fl(e) {
18375
18453
  let n = parseFloat(t[1]);
18376
18454
  return t[2] === "rem" || t[2] === "em" ? n * 16 : n;
18377
18455
  }
18378
- var pl = (e) => {
18456
+ var _l = (e) => {
18379
18457
  let t = typeof e == "string" ? /^\s*(\d+(?:\.\d+)?)\s*%\s*$/.exec(e) : null;
18380
18458
  return t ? parseFloat(t[1]) : void 0;
18381
18459
  };
18382
- function ml(e, t, n, r, i) {
18460
+ function vl(e, t, n, r, i) {
18383
18461
  let a = [
18384
18462
  0,
18385
18463
  0,
@@ -18387,7 +18465,7 @@ function ml(e, t, n, r, i) {
18387
18465
  0
18388
18466
  ];
18389
18467
  if (typeof e == "string" || typeof e == "number") {
18390
- let t = String(e).trim().split(/\s+/).map((e) => fl(e) ?? 0);
18468
+ let t = String(e).trim().split(/\s+/).map((e) => gl(e) ?? 0);
18391
18469
  t.length === 1 ? a = [
18392
18470
  t[0],
18393
18471
  t[0],
@@ -18410,7 +18488,7 @@ function ml(e, t, n, r, i) {
18410
18488
  n,
18411
18489
  r,
18412
18490
  i
18413
- ].map((e) => fl(e));
18491
+ ].map((e) => gl(e));
18414
18492
  return [
18415
18493
  o[0] ?? a[0],
18416
18494
  o[1] ?? a[1],
@@ -18418,9 +18496,9 @@ function ml(e, t, n, r, i) {
18418
18496
  o[3] ?? a[3]
18419
18497
  ];
18420
18498
  }
18421
- function hl(e, t = {}) {
18422
- let n = te(t.designSystem ? E(t.designSystem) : ue()), r = Math.min(800, Math.max(320, t.width ?? 600)), i = ol(e).map((e) => e.message), a = [], o = /* @__PURE__ */ new Map(), s = (e, n) => {
18423
- if (!n || t.dark === "off" || !ul(e, n)) return "";
18499
+ function yl(e, t = {}) {
18500
+ let n = te(t.designSystem ? E(t.designSystem) : ue()), r = Math.min(800, Math.max(320, t.width ?? 600)), i = ul(e).map((e) => e.message), a = [], o = /* @__PURE__ */ new Map(), s = (e, n) => {
18501
+ if (!n || t.dark === "off" || !ml(e, n)) return "";
18424
18502
  let r = `${e}:${n.toLowerCase()}`, i = o.get(r);
18425
18503
  return i || (i = {
18426
18504
  cls: `plx-${e[0]}${o.size}`,
@@ -18441,12 +18519,12 @@ function hl(e, t = {}) {
18441
18519
  } catch {
18442
18520
  return;
18443
18521
  }
18444
- }, d = (e) => typeof e == "string" ? fl(e) ?? (/var\(|calc\(/.test(e) ? u(e) : void 0) : fl(e), f = (() => {
18522
+ }, d = (e) => typeof e == "string" ? gl(e) ?? (/var\(|calc\(/.test(e) ? u(e) : void 0) : gl(e), f = (() => {
18445
18523
  let e = ie(n, "var(--semantic-font-family-body, var(--font-family-sans))");
18446
- return e && !/^var\(/.test(e) ? e : dl;
18524
+ return e && !/^var\(/.test(e) ? e : hl;
18447
18525
  })(), p = /* @__PURE__ */ new Map(), m = (e) => {
18448
18526
  let t = (typeof e == "string" ? ie(n, e.trim()) : "").split(",")[0]?.replace(/["']/g, "").trim();
18449
- return !t || /^var\(/.test(t) || !/^[\w\s-]{1,60}$/.test(t) ? f.includes(",") ? f : `${f}, ${dl}` : (p.has(t) || p.set(t, /* @__PURE__ */ new Set()), `'${t}', ${/(serif|georgia|times|garamond|playfair|fraunces|lora|merriweather|cormorant|libre baskerville|dm serif|crimson|spectral|newsreader|source serif)/i.test(t) && !/sans/i.test(t) ? "Georgia, 'Times New Roman', serif" : dl}`);
18527
+ return !t || /^var\(/.test(t) || !/^[\w\s-]{1,60}$/.test(t) ? f.includes(",") ? f : `${f}, ${hl}` : (p.has(t) || p.set(t, /* @__PURE__ */ new Set()), `'${t}', ${/(serif|georgia|times|garamond|playfair|fraunces|lora|merriweather|cormorant|libre baskerville|dm serif|crimson|spectral|newsreader|source serif)/i.test(t) && !/sans/i.test(t) ? "Georgia, 'Times New Roman', serif" : hl}`);
18450
18528
  }, h = (e, t) => {
18451
18529
  let n = Ce(t.textStyle) ? t.textStyle : e.type === "heading" ? Oe(e.props?.level) : null;
18452
18530
  return n ? we(n) : null;
@@ -18458,7 +18536,7 @@ function hl(e, t = {}) {
18458
18536
  lh: g,
18459
18537
  family: _
18460
18538
  };
18461
- }, _ = (e) => st(e).replace(/\r?\n/g, "<br>"), v = (e) => e.replace(/\s+/g, " ").trim(), y = (e) => ml(e.padding, e.paddingTop, e.paddingRight, e.paddingBottom, e.paddingLeft), x = (e) => e === "center" ? "center" : e === "right" || e === "flex-end" ? "right" : e === "left" || e === "flex-start" ? "left" : void 0, S = (e) => {
18539
+ }, _ = (e) => st(e).replace(/\r?\n/g, "<br>"), v = (e) => e.replace(/\s+/g, " ").trim(), y = (e) => vl(e.padding, e.paddingTop, e.paddingRight, e.paddingBottom, e.paddingLeft), x = (e) => e === "center" ? "center" : e === "right" || e === "flex-end" ? "right" : e === "left" || e === "flex-start" ? "left" : void 0, S = (e) => {
18462
18540
  let t = d(e.borderWidth), n = l(e.borderColor), r = e.borderStyle && e.borderStyle !== "none" ? e.borderStyle : void 0;
18463
18541
  return t && n && r ? `border:${G(t)} ${r} ${n};` : "";
18464
18542
  }, C = (e) => {
@@ -18477,7 +18555,7 @@ function hl(e, t = {}) {
18477
18555
  return r.length >= 2 && r.length <= 5 ? `background-image:linear-gradient(${t[1]},${r.join(",")});` : "";
18478
18556
  };
18479
18557
  function T(e, n) {
18480
- if (!rl(e.type)) return "";
18558
+ if (!sl(e.type)) return "";
18481
18559
  let r = e.styles ?? {};
18482
18560
  if (r.display === "none") return "";
18483
18561
  switch (e.type) {
@@ -18501,17 +18579,17 @@ function hl(e, t = {}) {
18501
18579
  f || 28,
18502
18580
  p || 14,
18503
18581
  m || 28
18504
- ], ee = x(r.textAlign) ?? x(r.alignSelf) ?? "left", T = r.backgroundColor === "transparent", te = C(r) || "border-radius:8px;", E = S(r), D = `${T ? "" : `background-color:${o};`}${te}${E}`, O = T ? null : ul("btnbg", o), ne = O ? sl(O) : null, re = !!ne && cl(ne)[2] > .8 && !!ul("btntext", u), ie = r.widthSizing === "fill" || r.width === "100%" || r.isFullWidth;
18582
+ ], ee = x(r.textAlign) ?? x(r.alignSelf) ?? "left", T = r.backgroundColor === "transparent", te = C(r) || "border-radius:8px;", E = S(r), D = `${T ? "" : `background-color:${o};`}${te}${E}`, O = T ? null : ml("btnbg", o), ne = O ? dl(O) : null, re = !!ne && fl(ne)[2] > .8 && !!ml("btntext", u), ie = r.widthSizing === "fill" || r.width === "100%" || r.isFullWidth;
18505
18583
  return `<table role="presentation" cellpadding="0" cellspacing="0" border="0"${ie ? " width=\"100%\"" : ""} align="${ee}"><tr><td${T ? "" : ` bgcolor="${o}"`}${c([T ? "" : s("btnbg", o), E && l(r.borderColor) ? s("border", l(r.borderColor)) : ""].filter(Boolean).join(" "))} align="center" style="${N(D)}"><a href="${N(i)}" target="_blank"${c(T ? s("text", l(r.textColor) ?? o) : re ? s("btntext", u) : "")} style="${N(`display:${ie ? "block" : "inline-block"};padding:${G(h)} ${G(_)} ${G(b)} ${G(w)};font-family:${t.family};font-size:${G(t.size)};line-height:${G(Math.round(t.size * 1.2))};font-weight:${t.weight === "400" ? "600" : t.weight};color:${T ? l(r.textColor) ?? o : u};text-decoration:none;white-space:nowrap;${te}`)}">${st(n)}</a></td></tr></table>`;
18506
18584
  }
18507
18585
  case "image": {
18508
18586
  let i = ut(e.props?.src);
18509
18587
  if (!i) return "";
18510
- let a = typeof e.props?.alt == "string" ? e.props.alt : "", o = d(r.customWidth ?? r.width), s = pl(r.customWidth ?? r.width), c = Math.round(Math.min(n, o ?? (s ? n * s / 100 : n))), l = x(r.alignSelf) ?? x(r.textAlign), u = `display:block;border:0;outline:none;text-decoration:none;width:${G(c)};max-width:100%;height:auto;${C(r)}`, f = t.dark === "off" ? "" : ut(e.props?.srcDark), p = f ? `<img class="plx-light" src="${N(i)}" alt="${N(a)}" width="${c}" style="${N(u)}"><img class="plx-dark" src="${N(f)}" alt="${N(a)}" width="${c}" style="${N(`${u}display:none;max-height:0;overflow:hidden;`)}">` : `<img src="${N(i)}" alt="${N(a)}" width="${c}" style="${N(u)}">`;
18588
+ let a = typeof e.props?.alt == "string" ? e.props.alt : "", o = d(r.customWidth ?? r.width), s = _l(r.customWidth ?? r.width), c = Math.round(Math.min(n, o ?? (s ? n * s / 100 : n))), l = x(r.alignSelf) ?? x(r.textAlign), u = `display:block;border:0;outline:none;text-decoration:none;width:${G(c)};max-width:100%;height:auto;${C(r)}`, f = t.dark === "off" ? "" : ut(e.props?.srcDark), p = f ? `<img class="plx-light" src="${N(i)}" alt="${N(a)}" width="${c}" style="${N(u)}"><img class="plx-dark" src="${N(f)}" alt="${N(a)}" width="${c}" style="${N(`${u}display:none;max-height:0;overflow:hidden;`)}">` : `<img src="${N(i)}" alt="${N(a)}" width="${c}" style="${N(u)}">`;
18511
18589
  return l && l !== "left" ? `<table role="presentation" cellpadding="0" cellspacing="0" border="0" align="${l}"><tr><td>${p}</td></tr></table>` : p;
18512
18590
  }
18513
18591
  case "divider": {
18514
- let e = l(r.borderColor) ?? l("var(--color-border-default)") ?? "#e5e7eb", t = d(r.borderWidth?.toString().split(/\s+/).find((e) => fl(e))) ?? 1;
18592
+ let e = l(r.borderColor) ?? l("var(--color-border-default)") ?? "#e5e7eb", t = d(r.borderWidth?.toString().split(/\s+/).find((e) => gl(e))) ?? 1;
18515
18593
  return `<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td height="${t}"${c(s("line", e))} style="font-size:1px;line-height:1px;border-top:${G(t)} solid ${e};">&nbsp;</td></tr></table>`;
18516
18594
  }
18517
18595
  case "spacer": {
@@ -18522,10 +18600,10 @@ function hl(e, t = {}) {
18522
18600
  }
18523
18601
  }
18524
18602
  function D(e, t, n = !1) {
18525
- let r = e.styles ?? {}, i = (e.children ?? []).filter((e) => rl(e.type) && (e.styles ?? {}).display !== "none"), [a, o, u, f] = y(r), p = l(r.backgroundColor), m = d(r.customWidth ?? r.width) ?? d(r.maxWidth), h = Math.max(40, Math.min(t, m ?? t)), g = h - f - o, _ = w(r), v = e.type === "columns" || r.layoutMode !== "grid" && r.flexDirection === "row" && e.type !== "section" && e.type !== "page", b = x(r.alignItems), te = r.alignItems === "center" ? "middle" : r.alignItems === "flex-end" ? "bottom" : "top", E = "";
18603
+ let r = e.styles ?? {}, i = (e.children ?? []).filter((e) => sl(e.type) && (e.styles ?? {}).display !== "none"), [a, o, u, f] = y(r), p = l(r.backgroundColor), m = d(r.customWidth ?? r.width) ?? d(r.maxWidth), h = Math.max(40, Math.min(t, m ?? t)), g = h - f - o, _ = w(r), v = e.type === "columns" || r.layoutMode !== "grid" && r.flexDirection === "row" && e.type !== "section" && e.type !== "page", b = x(r.alignItems), te = r.alignItems === "center" ? "middle" : r.alignItems === "flex-end" ? "bottom" : "top", E = "";
18526
18604
  if (i.length) if (v) {
18527
18605
  let e = i.map((e) => {
18528
- let t = e.styles ?? {}, n = d(t.customWidth ?? t.width), r = pl(t.customWidth ?? t.width);
18606
+ let t = e.styles ?? {}, n = d(t.customWidth ?? t.width), r = _l(t.customWidth ?? t.width);
18529
18607
  return n === void 0 ? r !== void 0 && r < 99 ? g * r / 100 : void 0 : n;
18530
18608
  }), t = e.reduce((e, t) => e + (t ?? 0), 0), n = e.filter((e) => e === void 0).length, s = n ? Math.max(40, (g - t - _ * (i.length - 1)) / n) : 0, c = i.map((t, n) => {
18531
18609
  let a = Math.floor(e[n] ?? s), o = n === i.length - 1, c = T(t, a);
@@ -18535,15 +18613,15 @@ function hl(e, t = {}) {
18535
18613
  } else E = i.map((e, t) => {
18536
18614
  let n = e.styles ?? {}, r = x(n.alignSelf) ?? b ?? (e.type === "button" || e.type, void 0), s = r === "center" || n.marginLeft === "auto" && n.marginRight === "auto" || n.margin === "0 auto" ? " align=\"center\"" : r === "right" || n.marginLeft === "auto" ? " align=\"right\"" : "", c = T(e, g);
18537
18615
  if (!c) return "";
18538
- let l = t === 0 ? a : _, [d, , p] = ml(n.margin, n.marginTop, n.marginRight, n.marginBottom, n.marginLeft);
18616
+ let l = t === 0 ? a : _, [d, , p] = vl(n.margin, n.marginTop, n.marginRight, n.marginBottom, n.marginLeft);
18539
18617
  return `<tr><td${s} style="${N(`padding:${G(l + d)} ${G(o)} ${G(t === i.length - 1 ? u + p : p)} ${G(f)};`)}">${c}</td></tr>`;
18540
18618
  }).join("");
18541
18619
  else a + u > 0 && (E = `<tr><td height="${a + u}" style="font-size:1px;line-height:${G(a + u)};">&nbsp;</td></tr>`);
18542
18620
  let D = `${p ? `background-color:${p};` : ""}${ee(r)}${C(r)}${S(r)}`, O = n ? " width=\"100%\"" : ` width="${Math.round(h)}"`, ne = n ? "" : `max-width:${G(h)};width:100%;`;
18543
18621
  return `<table role="presentation"${O}${p ? ` bgcolor="${p}"` : ""}${c(s("bg", p))} cellpadding="0" cellspacing="0" border="0" style="${N(`${ne}${D}`)}">${E}</table>`;
18544
18622
  }
18545
- let O = e.rootNode, ne = l((O.styles ?? {}).backgroundColor) ?? l("var(--color-bg-canvas)") ?? "#ffffff", re = (O.children ?? []).filter((e) => rl(e.type)).map((e) => {
18546
- let t = e.styles ?? {}, n = l(t.backgroundColor), i = tl.has(e.type) ? D(e, r) : T(e, r);
18623
+ let O = e.rootNode, ne = l((O.styles ?? {}).backgroundColor) ?? l("var(--color-bg-canvas)") ?? "#ffffff", re = (O.children ?? []).filter((e) => sl(e.type)).map((e) => {
18624
+ let t = e.styles ?? {}, n = l(t.backgroundColor), i = al.has(e.type) ? D(e, r) : T(e, r);
18547
18625
  return i ? `<tr><td align="center"${n ? ` bgcolor="${n}"` : ""}${c(s("bg", n))} style="${N(`${n ? `background-color:${n};` : ""}${ee(t)}`)}">${i}</td></tr>` : "";
18548
18626
  }).join(""), ae = t.title ?? e.name, oe = b([...p].map(([e, t]) => ({
18549
18627
  family: e,
@@ -18553,7 +18631,7 @@ function hl(e, t = {}) {
18553
18631
  700
18554
18632
  ]
18555
18633
  }))).map((e) => `<link href="${N(e)}" rel="stylesheet">\n`).join(""), k = t.preheader ? `<div style="display:none;max-height:0;overflow:hidden;opacity:0;color:transparent;mso-hide:all;">${st(t.preheader)}${"&nbsp;&zwnj;".repeat(40)}</div>` : "", se = s("bg", ne), ce = t.dark !== "off", le = (e) => {
18556
- let t = ul(e.kind, e.color);
18634
+ let t = ml(e.kind, e.color);
18557
18635
  if (!t) return [];
18558
18636
  let n = e.kind === "bg" || e.kind === "btnbg", r = n ? "background-color" : e.kind === "text" || e.kind === "btntext" ? "color" : e.kind === "border" ? "border-color" : "border-top-color", i = n ? "ogsb" : "ogsc";
18559
18637
  return [`.${e.cls}{${r}:${t}!important}`, `[data-${i}] .${e.cls}{${r}:${t}!important}`];
@@ -18588,7 +18666,7 @@ ${k}<table role="presentation" width="100%" cellpadding="0" cellspacing="0" bord
18588
18666
  }
18589
18667
  //#endregion
18590
18668
  //#region src/v2/email/blank.ts
18591
- var gl = (e) => ({
18669
+ var bl = (e) => ({
18592
18670
  id: k("page"),
18593
18671
  type: "page",
18594
18672
  name: "Email",
@@ -18602,22 +18680,22 @@ var gl = (e) => ({
18602
18680
  },
18603
18681
  children: e
18604
18682
  });
18605
- function _l() {
18683
+ function xl() {
18606
18684
  return [{
18607
18685
  id: k("page"),
18608
18686
  name: "Email",
18609
18687
  slug: "email",
18610
18688
  isHome: !0,
18611
- rootNode: gl([zi(Ei("emailText", "plain"))])
18689
+ rootNode: bl([zi(Ei("emailText", "plain"))])
18612
18690
  }];
18613
18691
  }
18614
- function vl() {
18692
+ function Sl() {
18615
18693
  return [{
18616
18694
  id: k("page"),
18617
18695
  name: "Email",
18618
18696
  slug: "email",
18619
18697
  isHome: !0,
18620
- rootNode: gl([
18698
+ rootNode: bl([
18621
18699
  ["emailHeader", "centered"],
18622
18700
  ["emailHero", "centered"],
18623
18701
  ["emailFeatures", "columns"],
@@ -18628,48 +18706,48 @@ function vl() {
18628
18706
  }
18629
18707
  //#endregion
18630
18708
  //#region src/v2/migrate/legacy.ts
18631
- var yl = 1400, bl = (e) => {
18709
+ var Cl = 1400, wl = (e) => {
18632
18710
  let t = e;
18633
18711
  return !!t && typeof t == "object" && !!t.nodes && typeof t.nodes == "object" && !Array.isArray(t.nodes) && Array.isArray(t.pageOrder);
18634
- }, xl = {
18712
+ }, Tl = {
18635
18713
  sm: "0 1px 3px rgba(15,23,42,0.14)",
18636
18714
  md: "0 6px 16px rgba(15,23,42,0.18)",
18637
18715
  lg: "0 16px 40px rgba(15,23,42,0.24)"
18638
- }, K = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, q = (e) => typeof e == "string" && e ? e : void 0, Sl = (e) => `${Math.round(e * 100) / 100}px`, Cl = [
18716
+ }, K = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, q = (e) => typeof e == "string" && e ? e : void 0, El = (e) => `${Math.round(e * 100) / 100}px`, Dl = [
18639
18717
  {
18640
18718
  name: "desktop",
18641
- k: fe.desktop / yl,
18719
+ k: fe.desktop / Cl,
18642
18720
  minFont: 0
18643
18721
  },
18644
18722
  {
18645
18723
  name: "tablet",
18646
- k: fe.tablet / yl,
18724
+ k: fe.tablet / Cl,
18647
18725
  minFont: 12
18648
18726
  },
18649
18727
  {
18650
18728
  name: "mobile",
18651
- k: fe.mobile / yl,
18729
+ k: fe.mobile / Cl,
18652
18730
  minFont: 11
18653
18731
  }
18654
18732
  ];
18655
- function wl(e, t, n) {
18733
+ function Ol(e, t, n) {
18656
18734
  let r = {};
18657
- return n && (e.x !== void 0 && (r.x = Math.round(e.x * t.k)), e.y !== void 0 && (r.y = Math.round(e.y * t.k))), e.width !== void 0 && (r.width = Sl(e.width * t.k), r.customWidth = r.width), e.height !== void 0 && (r.height = Sl(e.height * t.k)), e.minHeight !== void 0 && (r.minHeight = Sl(e.minHeight * t.k)), e.fontSize !== void 0 && (r.fontSize = Sl(Math.max(e.fontSize * t.k, t.minFont))), e.gap !== void 0 && (r.gap = Sl(e.gap * t.k)), r;
18735
+ return n && (e.x !== void 0 && (r.x = Math.round(e.x * t.k)), e.y !== void 0 && (r.y = Math.round(e.y * t.k))), e.width !== void 0 && (r.width = El(e.width * t.k), r.customWidth = r.width), e.height !== void 0 && (r.height = El(e.height * t.k)), e.minHeight !== void 0 && (r.minHeight = El(e.minHeight * t.k)), e.fontSize !== void 0 && (r.fontSize = El(Math.max(e.fontSize * t.k, t.minFont))), e.gap !== void 0 && (r.gap = El(e.gap * t.k)), r;
18658
18736
  }
18659
- function Tl(e, t) {
18737
+ function kl(e, t) {
18660
18738
  let { nodes: n } = e, r = /* @__PURE__ */ new Set(), i = (e) => {
18661
18739
  let t = {}, n = K(e.borderWidth);
18662
- n && n > 0 && (t.borderWidth = Sl(n), t.borderStyle = [
18740
+ n && n > 0 && (t.borderWidth = El(n), t.borderStyle = [
18663
18741
  "solid",
18664
18742
  "dashed",
18665
18743
  "dotted"
18666
18744
  ].includes(String(e.borderStyle)) ? e.borderStyle : "solid", t.borderColor = q(e.borderColor) ?? "#0f172a");
18667
18745
  let r = K(e.borderRadius);
18668
- r !== void 0 && (t.borderRadius = Sl(r));
18669
- let i = xl[String(e.boxShadowPreset)];
18746
+ r !== void 0 && (t.borderRadius = El(r));
18747
+ let i = Tl[String(e.boxShadowPreset)];
18670
18748
  return i && (t.boxShadow = i), t;
18671
18749
  }, a = (e, t, n) => {
18672
- let [r, i, a] = Cl.map((n) => wl(e, n, t)), o = (e, t) => Object.fromEntries(Object.entries(t).filter(([t, n]) => e[t] !== n));
18750
+ let [r, i, a] = Dl.map((n) => Ol(e, n, t)), o = (e, t) => Object.fromEntries(Object.entries(t).filter(([t, n]) => e[t] !== n));
18673
18751
  return {
18674
18752
  styles: {
18675
18753
  ...n,
@@ -18905,7 +18983,7 @@ function Tl(e, t) {
18905
18983
  }
18906
18984
  //#endregion
18907
18985
  //#region src/v2/compile/sanitizeHtml.ts
18908
- var El = new Map(Object.entries({
18986
+ var Al = new Map(Object.entries({
18909
18987
  amp: "&",
18910
18988
  lt: "<",
18911
18989
  gt: ">",
@@ -18937,9 +19015,9 @@ var El = new Map(Object.entries({
18937
19015
  hyphen: "-",
18938
19016
  dash: "-"
18939
19017
  }).map(([e, t]) => [e.toLowerCase(), t]));
18940
- function Dl(e) {
19018
+ function jl(e) {
18941
19019
  return e.replace(/&(?:#[xX]([0-9a-fA-F]{1,8})|#(\d{1,10})|([A-Za-z][A-Za-z0-9]{1,31}));?/g, (e, t, n, r) => {
18942
- if (r !== void 0) return El.get(r.toLowerCase()) ?? e;
19020
+ if (r !== void 0) return Al.get(r.toLowerCase()) ?? e;
18943
19021
  let i = t === void 0 ? parseInt(n, 10) : parseInt(t, 16);
18944
19022
  if (!Number.isFinite(i) || i <= 0 || i > 1114111) return "�";
18945
19023
  try {
@@ -18949,40 +19027,40 @@ function Dl(e) {
18949
19027
  }
18950
19028
  });
18951
19029
  }
18952
- var Ol = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), kl = /[\u0000-\u0020\u007f-\u009f\u200b-\u200f\u2028\u2029\ufeff]/g, Al = (e) => /^(\/(?!\/)|\.{0,2}\/|#|\?)/.test(e) || !/^[a-z][a-z0-9+.-]*:/i.test(e) && !e.startsWith("//");
18953
- function jl(e) {
18954
- let t = e.replace(kl, "");
18955
- return !t || /^(https?|mailto|tel|sms):/i.test(t) || Al(t);
19030
+ var Ml = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), Nl = /[\u0000-\u0020\u007f-\u009f\u200b-\u200f\u2028\u2029\ufeff]/g, Pl = (e) => /^(\/(?!\/)|\.{0,2}\/|#|\?)/.test(e) || !/^[a-z][a-z0-9+.-]*:/i.test(e) && !e.startsWith("//");
19031
+ function Fl(e) {
19032
+ let t = e.replace(Nl, "");
19033
+ return !t || /^(https?|mailto|tel|sms):/i.test(t) || Pl(t);
18956
19034
  }
18957
- var Ml = /^data:image\/(png|jpe?g|gif|webp|avif|svg\+xml)[;,]/i;
18958
- function Nl(e) {
18959
- let t = e.replace(kl, "");
18960
- return !t || Ml.test(t) || /^https?:\/\//i.test(t) || /^(\/(?!\/)|\.{0,2}\/)/.test(t) || !/^[a-z][a-z0-9+.-]*:/i.test(t) && !t.startsWith("//");
19035
+ var Il = /^data:image\/(png|jpe?g|gif|webp|avif|svg\+xml)[;,]/i;
19036
+ function Ll(e) {
19037
+ let t = e.replace(Nl, "");
19038
+ return !t || Il.test(t) || /^https?:\/\//i.test(t) || /^(\/(?!\/)|\.{0,2}\/)/.test(t) || !/^[a-z][a-z0-9+.-]*:/i.test(t) && !t.startsWith("//");
18961
19039
  }
18962
- var Pl = (e) => {
18963
- let t = e.replace(kl, "");
19040
+ var Rl = (e) => {
19041
+ let t = e.replace(Nl, "");
18964
19042
  return !t || /^https?:\/\//i.test(t) || /^(\/(?!\/)|\.{0,2}\/)/.test(t) || !/^[a-z][a-z0-9+.-]*:/i.test(t) && !t.startsWith("//");
18965
19043
  };
18966
- function Fl(e) {
19044
+ function zl(e) {
18967
19045
  let t;
18968
19046
  try {
18969
- t = new URL(e.replace(kl, ""));
19047
+ t = new URL(e.replace(Nl, ""));
18970
19048
  } catch {
18971
19049
  return !1;
18972
19050
  }
18973
19051
  return t.protocol !== "https:" || t.username || t.password || t.port ? !1 : t.hostname === "www.youtube-nocookie.com" || t.hostname === "youtube-nocookie.com" ? /^\/embed\/[\w-]{6,20}\/?$/.test(t.pathname) : t.hostname === "player.vimeo.com" && /^\/video\/\d{6,}\/?$/.test(t.pathname);
18974
19052
  }
18975
- function Il(e) {
19053
+ function Bl(e) {
18976
19054
  return e.replace(/\/\*[\s\S]*?(?:\*\/|$)/g, "").replace(/\\([0-9a-fA-F]{1,6})[ \t\n\r\f]?/g, (e, t) => {
18977
19055
  let n = parseInt(t, 16);
18978
19056
  return n > 0 && n <= 1114111 ? String.fromCodePoint(n) : "�";
18979
19057
  }).replace(/\\([\s\S])/g, "$1").toLowerCase();
18980
19058
  }
18981
- var Ll = /^data:(?:font\/(?:woff2?|ttf|otf|sfnt)|application\/(?:font-woff2?|x-font-(?:woff2?|ttf|otf|truetype|opentype)|octet-stream));base64,[a-z0-9+/=]+$/i;
18982
- function Rl(e, t) {
18983
- let n = e.replace(kl, "");
19059
+ var Vl = /^data:(?:font\/(?:woff2?|ttf|otf|sfnt)|application\/(?:font-woff2?|x-font-(?:woff2?|ttf|otf|truetype|opentype)|octet-stream));base64,[a-z0-9+/=]+$/i;
19060
+ function Hl(e, t) {
19061
+ let n = e.replace(Nl, "");
18984
19062
  if (!n) return !1;
18985
- if (Ll.test(n)) return !0;
19063
+ if (Vl.test(n)) return !0;
18986
19064
  if (/^https:\/\//i.test(n)) {
18987
19065
  let e;
18988
19066
  try {
@@ -18994,19 +19072,19 @@ function Rl(e, t) {
18994
19072
  }
18995
19073
  return /^\/(?!\/)/.test(n);
18996
19074
  }
18997
- function zl(e, t) {
19075
+ function Ul(e, t) {
18998
19076
  let n = /url\(\s*(?:"([^"]*)"|'([^']*)'|([^)]*))\s*\)/g, r;
18999
19077
  for (; r = n.exec(e);) {
19000
19078
  let e = (r[1] ?? r[2] ?? r[3] ?? "").trim();
19001
- if (!e.startsWith("#") && (t ? !Rl(e, t.fontOrigins) : !Nl(e))) return !1;
19079
+ if (!e.startsWith("#") && (t ? !Hl(e, t.fontOrigins) : !Ll(e))) return !1;
19002
19080
  }
19003
19081
  return (e.match(/url\(/g) ?? []).length === (e.match(n) ?? []).length;
19004
19082
  }
19005
- function Bl(e, t) {
19006
- let n = Il(e).replace(/\s+/g, " ");
19007
- return !/expression\s*\(|javascript:|vbscript:|livescript:|(?:^|[^a-z-])behavior\s*:|-moz-binding|@import|image-set\s*\(|\bsrc\s*\(|<\/?script|<!--/.test(n) && zl(n, t);
19083
+ function Wl(e, t) {
19084
+ let n = Bl(e).replace(/\s+/g, " ");
19085
+ return !/expression\s*\(|javascript:|vbscript:|livescript:|(?:^|[^a-z-])behavior\s*:|-moz-binding|@import|image-set\s*\(|\bsrc\s*\(|<\/?script|<!--/.test(n) && Ul(n, t);
19008
19086
  }
19009
- var Vl = (e, t) => !e.trim().startsWith("@") && e.includes(":") && !e.includes("<") && Bl(e, t), Hl = /* @__PURE__ */ new Set([
19087
+ var Gl = (e, t) => !e.trim().startsWith("@") && e.includes(":") && !e.includes("<") && Wl(e, t), Kl = /* @__PURE__ */ new Set([
19010
19088
  "media",
19011
19089
  "container",
19012
19090
  "supports",
@@ -19017,7 +19095,7 @@ var Vl = (e, t) => !e.trim().startsWith("@") && e.includes(":") && !e.includes("
19017
19095
  "page",
19018
19096
  "property"
19019
19097
  ]);
19020
- function Ul(e, t = {}) {
19098
+ function ql(e, t = {}) {
19021
19099
  let n = (t.fontOrigins ?? []).map((e) => e.trim().replace(/\/+$/, "").toLowerCase()), r = 0, i = e.length, a = (t) => {
19022
19100
  let n = e[t];
19023
19101
  if (n === "\"" || n === "'") {
@@ -19058,22 +19136,22 @@ function Ul(e, t = {}) {
19058
19136
  r += 1;
19059
19137
  }
19060
19138
  let f = e.slice(l, Math.min(r, i));
19061
- if (d === ";") r += 1, Vl(f, s) ? c += `${f};` : /^\s*$/.test(f) && (c += f + ";");
19139
+ if (d === ";") r += 1, Gl(f, s) ? c += `${f};` : /^\s*$/.test(f) && (c += f + ";");
19062
19140
  else if (d === "{") {
19063
19141
  r += 1;
19064
- let t = Il(f).trim(), i = r, a = o(!0, /^@font-face\b/.test(t) ? { fontOrigins: n } : void 0), s = e.slice(i, r).trim() !== "";
19142
+ let t = Bl(f).trim(), i = r, a = o(!0, /^@font-face\b/.test(t) ? { fontOrigins: n } : void 0), s = e.slice(i, r).trim() !== "";
19065
19143
  if (e[r] === "}" && (r += 1), s && a.trim() === "") continue;
19066
19144
  if (t.startsWith("@")) {
19067
19145
  let e = /^@([a-z-]+)/.exec(t)?.[1] ?? "";
19068
- Hl.has(e) && Bl(f) && (c += `${f}{${a}}`);
19069
- } else Bl(f) && !/[<]/.test(f) && (c += `${f}{${a}}`);
19070
- } else (/^\s*$/.test(f) || Vl(f, s)) && (c += f);
19146
+ Kl.has(e) && Wl(f) && (c += `${f}{${a}}`);
19147
+ } else Wl(f) && !/[<]/.test(f) && (c += `${f}{${a}}`);
19148
+ } else (/^\s*$/.test(f) || Gl(f, s)) && (c += f);
19071
19149
  }
19072
19150
  return c;
19073
19151
  };
19074
19152
  return o(!1);
19075
19153
  }
19076
- var Wl = /* @__PURE__ */ new Set([
19154
+ var Jl = /* @__PURE__ */ new Set([
19077
19155
  "script",
19078
19156
  "style",
19079
19157
  "textarea",
@@ -19084,8 +19162,8 @@ var Wl = /* @__PURE__ */ new Set([
19084
19162
  "noframes",
19085
19163
  "noscript",
19086
19164
  "plaintext"
19087
- ]), Gl = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Kl = (e) => e === " " || e === " " || e === "\n" || e === "\r" || e === "\f", ql = (e) => !!e && /[A-Za-z]/.test(e);
19088
- function Jl(e) {
19165
+ ]), Yl = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Xl = (e) => e === " " || e === " " || e === "\n" || e === "\r" || e === "\f", Zl = (e) => !!e && /[A-Za-z]/.test(e);
19166
+ function Ql(e) {
19089
19167
  let t = [], n = e.length, r = 0, i = "", a = () => {
19090
19168
  i &&= (t.push({
19091
19169
  k: "text",
@@ -19117,10 +19195,10 @@ function Jl(e) {
19117
19195
  continue;
19118
19196
  }
19119
19197
  if (o === "/") {
19120
- if (ql(e[r + 2])) {
19198
+ if (Zl(e[r + 2])) {
19121
19199
  a();
19122
19200
  let i = r + 2;
19123
- for (; i < n && !Kl(e[i]) && e[i] !== "/" && e[i] !== ">";) i += 1;
19201
+ for (; i < n && !Xl(e[i]) && e[i] !== "/" && e[i] !== ">";) i += 1;
19124
19202
  let o = e.slice(r + 2, i).toLowerCase(), s = e.indexOf(">", i);
19125
19203
  t.push({
19126
19204
  k: "end",
@@ -19133,27 +19211,27 @@ function Jl(e) {
19133
19211
  }
19134
19212
  continue;
19135
19213
  }
19136
- if (!ql(o)) {
19214
+ if (!Zl(o)) {
19137
19215
  i += "&lt;", r += 1;
19138
19216
  continue;
19139
19217
  }
19140
19218
  let s = r + 1;
19141
- for (; s < n && !Kl(e[s]) && e[s] !== "/" && e[s] !== ">";) s += 1;
19219
+ for (; s < n && !Xl(e[s]) && e[s] !== "/" && e[s] !== ">";) s += 1;
19142
19220
  let c = e.slice(r + 1, s).toLowerCase(), l = [], u = !1, d = !1;
19143
19221
  for (; s < n;) {
19144
- for (; s < n && (Kl(e[s]) || e[s] === "/");) e[s] === "/" && e[s + 1] === ">" && (u = !0), s += 1;
19222
+ for (; s < n && (Xl(e[s]) || e[s] === "/");) e[s] === "/" && e[s + 1] === ">" && (u = !0), s += 1;
19145
19223
  if (e[s] === ">") {
19146
19224
  d = !0, s += 1;
19147
19225
  break;
19148
19226
  }
19149
19227
  if (s >= n) break;
19150
19228
  let t = s;
19151
- for (s += 1; s < n && !Kl(e[s]) && e[s] !== "/" && e[s] !== ">" && e[s] !== "=";) s += 1;
19229
+ for (s += 1; s < n && !Xl(e[s]) && e[s] !== "/" && e[s] !== ">" && e[s] !== "=";) s += 1;
19152
19230
  let r = e.slice(t, s).toLowerCase();
19153
- for (; s < n && Kl(e[s]);) s += 1;
19231
+ for (; s < n && Xl(e[s]);) s += 1;
19154
19232
  let i = null;
19155
19233
  if (e[s] === "=") {
19156
- for (s += 1; s < n && Kl(e[s]);) s += 1;
19234
+ for (s += 1; s < n && Xl(e[s]);) s += 1;
19157
19235
  let t = e[s];
19158
19236
  if (t === "\"" || t === "'") {
19159
19237
  let r = e.indexOf(t, s + 1);
@@ -19164,7 +19242,7 @@ function Jl(e) {
19164
19242
  i = e.slice(s + 1, r), s = r + 1;
19165
19243
  } else {
19166
19244
  let t = s;
19167
- for (; s < n && !Kl(e[s]) && e[s] !== ">";) s += 1;
19245
+ for (; s < n && !Xl(e[s]) && e[s] !== ">";) s += 1;
19168
19246
  i = e.slice(t, s);
19169
19247
  }
19170
19248
  }
@@ -19178,7 +19256,7 @@ function Jl(e) {
19178
19256
  r = n;
19179
19257
  break;
19180
19258
  }
19181
- if (r = s, Wl.has(c)) {
19259
+ if (r = s, Jl.has(c)) {
19182
19260
  if (c === "plaintext") {
19183
19261
  t.push({
19184
19262
  k: "raw",
@@ -19210,7 +19288,7 @@ function Jl(e) {
19210
19288
  }
19211
19289
  return a(), t;
19212
19290
  }
19213
- var Yl = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.section.article.aside.header.footer.main.nav.h1.h2.h3.h4.h5.h6.p.a.button.img.hr.br.wbr.ul.ol.li.figure.figcaption.details.summary.table.thead.tbody.tfoot.tr.th.td.caption.colgroup.col.form.label.input.textarea.select.option.optgroup.fieldset.legend.video.strong.em.b.i.u.s.small.sub.sup.code.pre.blockquote.mark.abbr.time.dl.dt.dd.address.cite.q.span".split(".")), Xl = /* @__PURE__ */ new Set([
19291
+ var $l = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.section.article.aside.header.footer.main.nav.h1.h2.h3.h4.h5.h6.p.a.button.img.hr.br.wbr.ul.ol.li.figure.figcaption.details.summary.table.thead.tbody.tfoot.tr.th.td.caption.colgroup.col.form.label.input.textarea.select.option.optgroup.fieldset.legend.video.strong.em.b.i.u.s.small.sub.sup.code.pre.blockquote.mark.abbr.time.dl.dt.dd.address.cite.q.span".split(".")), eu = /* @__PURE__ */ new Set([
19214
19292
  "img",
19215
19293
  "hr",
19216
19294
  "br",
@@ -19219,7 +19297,7 @@ var Yl = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.sectio
19219
19297
  "col",
19220
19298
  "meta",
19221
19299
  "link"
19222
- ]), Zl = /* @__PURE__ */ new Set([
19300
+ ]), tu = /* @__PURE__ */ new Set([
19223
19301
  "svg",
19224
19302
  "g",
19225
19303
  "path",
@@ -19229,7 +19307,7 @@ var Yl = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.sectio
19229
19307
  "polyline",
19230
19308
  "polygon",
19231
19309
  "ellipse"
19232
- ]), Ql = /* @__PURE__ */ new Set([
19310
+ ]), nu = /* @__PURE__ */ new Set([
19233
19311
  "open",
19234
19312
  "required",
19235
19313
  "disabled",
@@ -19245,7 +19323,7 @@ var Yl = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.sectio
19245
19323
  "allowfullscreen",
19246
19324
  "hidden",
19247
19325
  "novalidate"
19248
- ]), $l = {
19326
+ ]), ru = {
19249
19327
  id: /^[\w:.[\]-]{1,200}$/,
19250
19328
  role: /^[a-z-]{1,30}$/,
19251
19329
  tabindex: /^-?\d{1,3}$/,
@@ -19253,11 +19331,11 @@ var Yl = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.sectio
19253
19331
  dir: /^(ltr|rtl|auto)$/i,
19254
19332
  draggable: /^(true|false)$/,
19255
19333
  translate: /^(yes|no)$/
19256
- }, eu = /* @__PURE__ */ new Set([
19334
+ }, iu = /* @__PURE__ */ new Set([
19257
19335
  "class",
19258
19336
  "title",
19259
19337
  "hidden"
19260
- ]), J = /^\d{1,5}(?:\.\d+)?(?:px|%|em|rem)?$/, tu = /^[\w:.[\]-]{1,200}$/, nu = /* @__PURE__ */ new Set([
19338
+ ]), J = /^\d{1,5}(?:\.\d+)?(?:px|%|em|rem)?$/, au = /^[\w:.[\]-]{1,200}$/, ou = /* @__PURE__ */ new Set([
19261
19339
  "text",
19262
19340
  "email",
19263
19341
  "tel",
@@ -19276,7 +19354,7 @@ var Yl = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.sectio
19276
19354
  "file",
19277
19355
  "color",
19278
19356
  "range"
19279
- ]), ru = /^(#[0-9a-f]{3,8}|[a-z]{3,20}|rgba?\(\s*[\d.\s,%]+\))$/i, iu = {
19357
+ ]), su = /^(#[0-9a-f]{3,8}|[a-z]{3,20}|rgba?\(\s*[\d.\s,%]+\))$/i, cu = {
19280
19358
  a: {
19281
19359
  href: "href",
19282
19360
  target: /^(_blank|_self)$/,
@@ -19305,7 +19383,7 @@ var Yl = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.sectio
19305
19383
  button: {
19306
19384
  type: /^(submit|button|reset)$/,
19307
19385
  disabled: "bool",
19308
- name: tu,
19386
+ name: au,
19309
19387
  value: "plain"
19310
19388
  },
19311
19389
  form: {
@@ -19316,7 +19394,7 @@ var Yl = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.sectio
19316
19394
  enctype: /^(application\/x-www-form-urlencoded|multipart\/form-data|text\/plain)$/
19317
19395
  },
19318
19396
  input: {
19319
- name: tu,
19397
+ name: au,
19320
19398
  value: "plain",
19321
19399
  placeholder: "plain",
19322
19400
  required: "bool",
@@ -19334,7 +19412,7 @@ var Yl = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.sectio
19334
19412
  size: /^\d{1,3}$/
19335
19413
  },
19336
19414
  textarea: {
19337
- name: tu,
19415
+ name: au,
19338
19416
  rows: /^\d{1,3}$/,
19339
19417
  cols: /^\d{1,3}$/,
19340
19418
  placeholder: "plain",
@@ -19346,7 +19424,7 @@ var Yl = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.sectio
19346
19424
  autocomplete: /^[\w\s-]{1,60}$/
19347
19425
  },
19348
19426
  select: {
19349
- name: tu,
19427
+ name: au,
19350
19428
  required: "bool",
19351
19429
  multiple: "bool",
19352
19430
  disabled: "bool",
@@ -19362,10 +19440,10 @@ var Yl = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.sectio
19362
19440
  label: "plain",
19363
19441
  disabled: "bool"
19364
19442
  },
19365
- label: { for: tu },
19443
+ label: { for: au },
19366
19444
  details: {
19367
19445
  open: "bool",
19368
- name: tu
19446
+ name: au
19369
19447
  },
19370
19448
  table: {
19371
19449
  width: J,
@@ -19374,7 +19452,7 @@ var Yl = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.sectio
19374
19452
  cellpadding: /^\d{1,3}$/,
19375
19453
  cellspacing: /^\d{1,3}$/,
19376
19454
  border: /^\d{1,2}$/,
19377
- bgcolor: ru
19455
+ bgcolor: su
19378
19456
  },
19379
19457
  th: {
19380
19458
  scope: /^(col|row|colgroup|rowgroup)$/,
@@ -19384,7 +19462,7 @@ var Yl = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.sectio
19384
19462
  height: J,
19385
19463
  align: /^(left|center|right)$/,
19386
19464
  valign: /^(top|middle|bottom|baseline)$/,
19387
- bgcolor: ru
19465
+ bgcolor: su
19388
19466
  },
19389
19467
  td: {
19390
19468
  colspan: /^\d{1,3}$/,
@@ -19393,90 +19471,90 @@ var Yl = /* @__PURE__ */ new Set(/* @__PURE__ */ "html.head.body.div.span.sectio
19393
19471
  height: J,
19394
19472
  align: /^(left|center|right)$/,
19395
19473
  valign: /^(top|middle|bottom|baseline)$/,
19396
- bgcolor: ru
19474
+ bgcolor: su
19397
19475
  },
19398
19476
  col: { span: /^\d{1,3}$/ },
19399
19477
  time: { datetime: "plain" },
19400
19478
  html: {},
19401
19479
  body: {}
19402
- }, au = /* @__PURE__ */ new Set(/* @__PURE__ */ "viewbox.fill.stroke.stroke-width.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-dasharray.stroke-dashoffset.fill-rule.clip-rule.opacity.fill-opacity.stroke-opacity.d.cx.cy.r.rx.ry.x.y.x1.y1.x2.y2.points.width.height.transform.xmlns.preserveaspectratio.focusable.vector-effect".split(".")), ou = {
19480
+ }, lu = /* @__PURE__ */ new Set(/* @__PURE__ */ "viewbox.fill.stroke.stroke-width.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-dasharray.stroke-dashoffset.fill-rule.clip-rule.opacity.fill-opacity.stroke-opacity.d.cx.cy.r.rx.ry.x.y.x1.y1.x2.y2.points.width.height.transform.xmlns.preserveaspectratio.focusable.vector-effect".split(".")), uu = {
19403
19481
  viewbox: "viewBox",
19404
19482
  preserveaspectratio: "preserveAspectRatio"
19405
- }, su = /^[\w\s.,#%()+\-:/]*$/, cu = /* @__PURE__ */ new Set([
19483
+ }, du = /^[\w\s.,#%()+\-:/]*$/, fu = /* @__PURE__ */ new Set([
19406
19484
  "allow-popups",
19407
19485
  "allow-popups-to-escape-sandbox",
19408
19486
  "allow-forms",
19409
19487
  "allow-scripts",
19410
19488
  "allow-presentation"
19411
- ]), lu = /^[\w\s;*-]{0,200}$/, uu = `(${Hs})(document);`.replace(/<\/script/gi, "<\\/script");
19412
- function du(e, t) {
19413
- let n = e.raw, r = n === null ? "" : Dl(n), i = n === null ? "" : `="${n.replace(/"/g, "&quot;")}"`;
19414
- return t === "bool" ? n === null || n === "" || n.toLowerCase() === e.name ? n === null ? "" : i : null : t === "plain" ? i : t === "href" ? jl(r) ? i : e.name === "href" ? ((e) => `="${Ol(e)}"`)("#") : null : t === "image" ? Nl(r) ? i : null : t === "media" ? Pl(r) ? i : null : t.test(r) ? i : null;
19489
+ ]), pu = /^[\w\s;*-]{0,200}$/, mu = `(${Ks})(document);`.replace(/<\/script/gi, "<\\/script");
19490
+ function hu(e, t) {
19491
+ let n = e.raw, r = n === null ? "" : jl(n), i = n === null ? "" : `="${n.replace(/"/g, "&quot;")}"`;
19492
+ return t === "bool" ? n === null || n === "" || n.toLowerCase() === e.name ? n === null ? "" : i : null : t === "plain" ? i : t === "href" ? Fl(r) ? i : e.name === "href" ? ((e) => `="${Ml(e)}"`)("#") : null : t === "image" ? Ll(r) ? i : null : t === "media" ? Rl(r) ? i : null : t.test(r) ? i : null;
19415
19493
  }
19416
- function fu(e) {
19494
+ function gu(e) {
19417
19495
  if (e.raw === null) return null;
19418
- let t = Dl(e.raw), n = Ul(t);
19419
- return n === t ? `="${e.raw.replace(/"/g, "&quot;")}"` : n.trim() ? `="${Ol(n)}"` : null;
19496
+ let t = jl(e.raw), n = ql(t);
19497
+ return n === t ? `="${e.raw.replace(/"/g, "&quot;")}"` : n.trim() ? `="${Ml(n)}"` : null;
19420
19498
  }
19421
- function pu(e, t, n) {
19422
- let r = "", i = Gl(iu, e) ? iu[e] : {};
19499
+ function _u(e, t, n) {
19500
+ let r = "", i = Yl(cu, e) ? cu[e] : {};
19423
19501
  for (let e of t) {
19424
19502
  let t = e.name;
19425
19503
  if (!/^[a-z][a-z0-9:_.-]*$/.test(t) || t.startsWith("on")) continue;
19426
19504
  let a = null;
19427
- if (t === "style") a = fu(e);
19505
+ if (t === "style") a = gu(e);
19428
19506
  else if (n) {
19429
- if (au.has(t) || t === "class" || /^aria-[a-z-]+$/.test(t) || t === "role" || t === "id") {
19430
- let n = e.raw === null ? "" : Dl(e.raw);
19431
- a = t === "class" || t === "id" || t === "role" ? du(e, Gl($l, t) ? $l[t] : "plain") : su.test(n) && !/javascript:|data:/i.test(n) ? e.raw === null ? "" : `="${e.raw.replace(/"/g, "&quot;")}"` : null;
19507
+ if (lu.has(t) || t === "class" || /^aria-[a-z-]+$/.test(t) || t === "role" || t === "id") {
19508
+ let n = e.raw === null ? "" : jl(e.raw);
19509
+ a = t === "class" || t === "id" || t === "role" ? hu(e, Yl(ru, t) ? ru[t] : "plain") : du.test(n) && !/javascript:|data:/i.test(n) ? e.raw === null ? "" : `="${e.raw.replace(/"/g, "&quot;")}"` : null;
19432
19510
  }
19433
- } else /^data-(plx|plexo)-[a-z0-9_-]+$/.test(t) || /^aria-[a-z-]+$/.test(t) ? a = e.raw === null ? "" : `="${e.raw.replace(/"/g, "&quot;")}"` : Gl(i, t) ? a = du(e, i[t]) : Gl($l, t) ? a = du(e, $l[t]) : eu.has(t) && (a = t === "hidden" ? du(e, "bool") : du(e, "plain"));
19511
+ } else /^data-(plx|plexo)-[a-z0-9_-]+$/.test(t) || /^aria-[a-z-]+$/.test(t) ? a = e.raw === null ? "" : `="${e.raw.replace(/"/g, "&quot;")}"` : Yl(i, t) ? a = hu(e, i[t]) : Yl(ru, t) ? a = hu(e, ru[t]) : iu.has(t) && (a = t === "hidden" ? hu(e, "bool") : hu(e, "plain"));
19434
19512
  if (a === null) continue;
19435
19513
  let o = /^data-(plx|plexo)-/.test(t) && e.written && e.written.toLowerCase() === t ? e.written : t;
19436
- r += ` ${/^data-/.test(t) ? o : n && Gl(ou, t) ? ou[t] : t}${Ql.has(t) && a === "" ? "" : a}`;
19514
+ r += ` ${/^data-/.test(t) ? o : n && Yl(uu, t) ? uu[t] : t}${nu.has(t) && a === "" ? "" : a}`;
19437
19515
  }
19438
19516
  return r;
19439
19517
  }
19440
- function mu(e, t) {
19518
+ function vu(e, t) {
19441
19519
  if (e === "input") {
19442
19520
  let e = "";
19443
19521
  for (let n of t) if (n.name === "type") {
19444
- let t = n.raw === null ? "text" : Dl(n.raw).trim().toLowerCase();
19445
- e += ` type="${nu.has(t) ? Ol(t) : "text"}"`;
19446
- } else e += pu("input", [n], !1);
19522
+ let t = n.raw === null ? "text" : jl(n.raw).trim().toLowerCase();
19523
+ e += ` type="${ou.has(t) ? Ml(t) : "text"}"`;
19524
+ } else e += _u("input", [n], !1);
19447
19525
  return e;
19448
19526
  }
19449
- return pu(e, t, !1);
19527
+ return _u(e, t, !1);
19450
19528
  }
19451
- function hu(e, t) {
19529
+ function yu(e, t) {
19452
19530
  let n = (t) => e.find((e) => e.name === t), r = n("src"), i = n("srcdoc"), a = () => {
19453
19531
  let t = "";
19454
19532
  for (let n of e) {
19455
- let e = n.raw === null ? "" : Dl(n.raw);
19533
+ let e = n.raw === null ? "" : jl(n.raw);
19456
19534
  if (n.name === "title" || n.name === "loading" || n.name === "referrerpolicy" || n.name === "allowfullscreen") {
19457
- let e = du(n, n.name === "loading" ? /^(lazy|eager)$/ : n.name === "referrerpolicy" ? /^[a-z-]{1,40}$/ : n.name === "allowfullscreen" ? "bool" : "plain");
19535
+ let e = hu(n, n.name === "loading" ? /^(lazy|eager)$/ : n.name === "referrerpolicy" ? /^[a-z-]{1,40}$/ : n.name === "allowfullscreen" ? "bool" : "plain");
19458
19536
  e !== null && (t += ` ${n.name}${e}`);
19459
- } else if (n.name === "allow" && lu.test(e)) t += ` allow${du(n, "plain")}`;
19460
- else if (n.name === "width" || n.name === "height") J.test(e) && (t += ` ${n.name}="${Ol(e)}"`);
19461
- else if (n.name === "class") t += ` class${du(n, "plain")}`;
19537
+ } else if (n.name === "allow" && pu.test(e)) t += ` allow${hu(n, "plain")}`;
19538
+ else if (n.name === "width" || n.name === "height") J.test(e) && (t += ` ${n.name}="${Ml(e)}"`);
19539
+ else if (n.name === "class") t += ` class${hu(n, "plain")}`;
19462
19540
  else if (n.name === "style") {
19463
- let e = fu(n);
19541
+ let e = gu(n);
19464
19542
  e !== null && (t += ` style${e}`);
19465
19543
  } else /^data-(plx|plexo)-[a-z0-9_-]+$/.test(n.name) && (t += ` ${n.name}${n.raw === null ? "" : `="${n.raw.replace(/"/g, "&quot;")}"`}`);
19466
19544
  }
19467
19545
  return t;
19468
19546
  };
19469
- if (r && r.raw !== null && Fl(Dl(r.raw))) return ` src="${r.raw.replace(/"/g, "&quot;")}"${a()}`;
19547
+ if (r && r.raw !== null && zl(jl(r.raw))) return ` src="${r.raw.replace(/"/g, "&quot;")}"${a()}`;
19470
19548
  let o = n("sandbox");
19471
19549
  if (i && o) {
19472
- let n = (o.raw === null ? "" : Dl(o.raw)).split(/\s+/).filter(Boolean), r = n.filter((e) => cu.has(e.toLowerCase()) && (t.allowEmbedScripts !== !1 || e.toLowerCase() !== "allow-scripts")).map((e) => e.toLowerCase()).join(" "), i = n.join(" "), s = "";
19473
- for (let t of e) t.name === "srcdoc" ? s += ` srcdoc="${(t.raw ?? "").replace(/"/g, "&quot;")}"` : t.name === "sandbox" && (s += ` sandbox="${r === i ? (t.raw ?? "").replace(/"/g, "&quot;") : Ol(r)}"`);
19550
+ let n = (o.raw === null ? "" : jl(o.raw)).split(/\s+/).filter(Boolean), r = n.filter((e) => fu.has(e.toLowerCase()) && (t.allowEmbedScripts !== !1 || e.toLowerCase() !== "allow-scripts")).map((e) => e.toLowerCase()).join(" "), i = n.join(" "), s = "";
19551
+ for (let t of e) t.name === "srcdoc" ? s += ` srcdoc="${(t.raw ?? "").replace(/"/g, "&quot;")}"` : t.name === "sandbox" && (s += ` sandbox="${r === i ? (t.raw ?? "").replace(/"/g, "&quot;") : Ml(r)}"`);
19474
19552
  return `${s}${a()}`;
19475
19553
  }
19476
19554
  return null;
19477
19555
  }
19478
- function gu(e, t = {}) {
19479
- let n = /* @__PURE__ */ new Set([uu, ...t.allowedScripts ?? []]), r = Jl(typeof e == "string" ? e : ""), i = "", a = 0;
19556
+ function bu(e, t = {}) {
19557
+ let n = /* @__PURE__ */ new Set([mu, ...t.allowedScripts ?? []]), r = Ql(typeof e == "string" ? e : ""), i = "", a = 0;
19480
19558
  for (let e of r) switch (e.k) {
19481
19559
  case "text":
19482
19560
  i += e.v;
@@ -19487,43 +19565,43 @@ function gu(e, t = {}) {
19487
19565
  case "raw":
19488
19566
  if (a > 0) break;
19489
19567
  if (e.name === "script") e.attrs.length === 0 && n.has(e.content) && (i += `<script>${e.content}<\/script>`);
19490
- else if (e.name === "style") i += `<style>${Ul(e.content, t)}</style>`;
19491
- else if (e.name === "textarea") i += `<textarea${pu("textarea", e.attrs, !1)}>${e.content.replace(/</g, "&lt;")}</textarea>`;
19568
+ else if (e.name === "style") i += `<style>${ql(e.content, t)}</style>`;
19569
+ else if (e.name === "textarea") i += `<textarea${_u("textarea", e.attrs, !1)}>${e.content.replace(/</g, "&lt;")}</textarea>`;
19492
19570
  else if (e.name === "title") i += `<title>${e.content.replace(/</g, "&lt;")}</title>`;
19493
19571
  else if (e.name === "iframe") {
19494
- let n = hu(e.attrs, t);
19572
+ let n = yu(e.attrs, t);
19495
19573
  n !== null && (i += `<iframe${n}></iframe>`);
19496
19574
  }
19497
19575
  break;
19498
19576
  case "start": {
19499
19577
  let { name: t } = e;
19500
19578
  if (t === "svg") {
19501
- i += `<svg${pu("svg", e.attrs, !0)}${e.selfClose ? "/" : ""}>`, e.selfClose || (a += 1);
19579
+ i += `<svg${_u("svg", e.attrs, !0)}${e.selfClose ? "/" : ""}>`, e.selfClose || (a += 1);
19502
19580
  break;
19503
19581
  }
19504
19582
  if (a > 0) {
19505
- Zl.has(t) && (i += `<${t}${pu(t, e.attrs, !0)}${e.selfClose ? "/" : ""}>`);
19583
+ tu.has(t) && (i += `<${t}${_u(t, e.attrs, !0)}${e.selfClose ? "/" : ""}>`);
19506
19584
  break;
19507
19585
  }
19508
- if (Yl.has(t)) i += `<${t}${mu(t, e.attrs)}>`;
19586
+ if ($l.has(t)) i += `<${t}${vu(t, e.attrs)}>`;
19509
19587
  else if (t === "meta") {
19510
19588
  let t = (t) => e.attrs.find((e) => e.name === t), n = t("charset"), r = t("name"), a = t("content");
19511
19589
  n && n.raw !== null && /^utf-8$/i.test(n.raw) ? i += `<meta charset="${n.raw}">` : r && r.raw?.toLowerCase() === "viewport" && a && a.raw !== null && /^[\w=,.\s-]{1,120}$/.test(a.raw) && (i += `<meta name="viewport" content="${a.raw}">`);
19512
19590
  } else if (t === "link") {
19513
19591
  let t = (t) => e.attrs.find((e) => e.name === t), n = t("rel"), r = t("href"), a = "";
19514
19592
  try {
19515
- a = r && r.raw !== null ? new URL(Dl(r.raw)).hostname : "";
19593
+ a = r && r.raw !== null ? new URL(jl(r.raw)).hostname : "";
19516
19594
  } catch {
19517
19595
  a = "";
19518
19596
  }
19519
- let o = r && r.raw !== null && /^https:\/\//i.test(Dl(r.raw).trim());
19597
+ let o = r && r.raw !== null && /^https:\/\//i.test(jl(r.raw).trim());
19520
19598
  n && n.raw !== null && /^(stylesheet|preconnect|dns-prefetch)$/i.test(n.raw) && o && (a === "fonts.googleapis.com" || a === "fonts.gstatic.com") && (i += `<link rel="${n.raw.toLowerCase()}" href="${r.raw.replace(/"/g, "&quot;")}"${t("crossorigin") ? " crossorigin" : ""}>`);
19521
19599
  }
19522
19600
  break;
19523
19601
  }
19524
19602
  case "end": {
19525
19603
  let { name: t } = e;
19526
- t === "svg" ? a > 0 && (--a, i += "</svg>") : a > 0 ? Zl.has(t) && (i += `</${t}>`) : Yl.has(t) && !Xl.has(t) && (i += `</${t}>`);
19604
+ t === "svg" ? a > 0 && (--a, i += "</svg>") : a > 0 ? tu.has(t) && (i += `</${t}>`) : $l.has(t) && !eu.has(t) && (i += `</${t}>`);
19527
19605
  break;
19528
19606
  }
19529
19607
  }
@@ -19532,7 +19610,7 @@ function gu(e, t = {}) {
19532
19610
  }
19533
19611
  //#endregion
19534
19612
  //#region src/v2/compile/schema.ts
19535
- var _u = 5e3, vu = 40, yu = /* @__PURE__ */ "page.section.container.columns.column.heading.paragraph.button.image.badge.divider.spacer.card.icon.carousel.video.social.menu.html.table.timer.form.accordion.blogTitle.blogContent.blogFeaturedImage.blogDate.blogAuthor.blogCategories.blogComments.blogPostList.shopGrid.product.booking.cart.checkout.orderConfirmation.orderTracking.signupForm".split("."), bu = [
19613
+ var xu = 5e3, Su = 40, Cu = /* @__PURE__ */ "page.section.container.columns.column.heading.paragraph.button.image.badge.divider.spacer.card.icon.carousel.video.social.menu.html.table.timer.form.accordion.blogTitle.blogContent.blogFeaturedImage.blogDate.blogAuthor.blogCategories.blogComments.blogPostList.shopGrid.product.booking.cart.checkout.orderConfirmation.orderTracking.signupForm".split("."), wu = [
19536
19614
  "blogTitle",
19537
19615
  "blogContent",
19538
19616
  "blogFeaturedImage",
@@ -19549,70 +19627,70 @@ var _u = 5e3, vu = 40, yu = /* @__PURE__ */ "page.section.container.columns.colu
19549
19627
  "orderConfirmation",
19550
19628
  "orderTracking",
19551
19629
  "signupForm"
19552
- ], xu = r([t().int().min(1).max(96), n().max(4)]), Su = a({
19630
+ ], Tu = r([t().int().min(1).max(96), n().max(4)]), Eu = a({
19553
19631
  prefix: n().max(80),
19554
19632
  productId: n().max(100),
19555
19633
  serviceId: n().max(100),
19556
19634
  mode: n().max(40),
19557
19635
  storeMode: i(),
19558
- limit: xu,
19636
+ limit: Tu,
19559
19637
  category: n().max(100),
19560
19638
  sort: n().max(100),
19561
- itemsPerRow: xu,
19562
- itemsPerPage: xu,
19639
+ itemsPerRow: Tu,
19640
+ itemsPerPage: Tu,
19563
19641
  paginated: i(),
19564
19642
  templateId: n().max(100)
19565
- }).partial().passthrough(), Cu = r([
19643
+ }).partial().passthrough(), Du = r([
19566
19644
  n().max(2e3),
19567
19645
  t(),
19568
19646
  i()
19569
- ]), wu = d(n(), Cu.optional()), Tu = o(() => a({
19647
+ ]), Ou = d(n(), Du.optional()), ku = o(() => a({
19570
19648
  id: n().min(1).max(200),
19571
- type: u(yu),
19649
+ type: u(Cu),
19572
19650
  name: n().max(300),
19573
19651
  content: n().max(1e5).optional(),
19574
19652
  props: d(n(), s()).optional(),
19575
- styles: wu,
19653
+ styles: Ou,
19576
19654
  responsive: a({
19577
- tablet: wu.optional(),
19578
- mobile: wu.optional()
19655
+ tablet: Ou.optional(),
19656
+ mobile: Ou.optional()
19579
19657
  }).optional(),
19580
19658
  responsiveVisibility: a({
19581
19659
  hideOnDesktop: i().optional(),
19582
19660
  hideOnTablet: i().optional(),
19583
19661
  hideOnMobile: i().optional()
19584
19662
  }).optional(),
19585
- children: c(Tu).optional(),
19663
+ children: c(ku).optional(),
19586
19664
  locked: i().optional(),
19587
19665
  hidden: i().optional()
19588
19666
  }).superRefine((e, t) => {
19589
- if (!bu.includes(e.type) || !e.props) return;
19590
- let n = Su.safeParse(e.props);
19667
+ if (!wu.includes(e.type) || !e.props) return;
19668
+ let n = Eu.safeParse(e.props);
19591
19669
  n.success || t.addIssue({
19592
19670
  code: "custom",
19593
19671
  path: ["props", ...n.error.issues[0].path],
19594
19672
  message: `The settings of "${e.name}" aren't valid (${n.error.issues[0].path.join(" › ") || "settings"}: ${n.error.issues[0].message})`
19595
19673
  });
19596
- })), Eu = a({
19674
+ })), Au = a({
19597
19675
  id: n().min(1).max(200),
19598
19676
  name: n().max(300),
19599
19677
  slug: n().max(300),
19600
19678
  isHome: i().optional(),
19601
- rootNode: Tu
19679
+ rootNode: ku
19602
19680
  });
19603
- function Du(e, t, n) {
19604
- if (n.n += 1, n.n > 5e3) return `This design is too large (more than ${_u} elements).`;
19681
+ function ju(e, t, n) {
19682
+ if (n.n += 1, n.n > 5e3) return `This design is too large (more than ${xu} elements).`;
19605
19683
  if (t > 40) return "This design is nested too deeply.";
19606
19684
  if (n.ids.has(e.id)) return `Two elements share the same id ("${e.id}"). Each element needs its own.`;
19607
19685
  n.ids.add(e.id);
19608
19686
  for (let r of e.children ?? []) {
19609
- let e = Du(r, t + 1, n);
19687
+ let e = ju(r, t + 1, n);
19610
19688
  if (e) return e;
19611
19689
  }
19612
19690
  return null;
19613
19691
  }
19614
- function Ou(e) {
19615
- let t = c(Eu).min(1, "A design needs at least one page.").safeParse(e);
19692
+ function Mu(e) {
19693
+ let t = c(Au).min(1, "A design needs at least one page.").safeParse(e);
19616
19694
  if (!t.success) {
19617
19695
  let e = t.error.issues[0], n = e.path.length ? ` (at ${e.path.filter((e) => typeof e == "string" && e !== "children" && e !== "rootNode").join(" › ") || "the design"})` : "";
19618
19696
  return {
@@ -19622,7 +19700,7 @@ function Ou(e) {
19622
19700
  }
19623
19701
  let n = t.data;
19624
19702
  for (let e of n) {
19625
- let t = Du(e.rootNode, 0, {
19703
+ let t = ju(e.rootNode, 0, {
19626
19704
  n: 0,
19627
19705
  ids: /* @__PURE__ */ new Set()
19628
19706
  });
@@ -19638,7 +19716,7 @@ function Ou(e) {
19638
19716
  }
19639
19717
  //#endregion
19640
19718
  //#region src/v2/migrate/v1.ts
19641
- var ku = {
19719
+ var Nu = {
19642
19720
  blog_title: "blogTitle",
19643
19721
  blog_content: "blogContent",
19644
19722
  blog_featured_image: "blogFeaturedImage",
@@ -19655,7 +19733,7 @@ var ku = {
19655
19733
  order_tracking: "orderTracking",
19656
19734
  booking: "booking",
19657
19735
  maildrip_form: null
19658
- }, Au = !0, ju = [
19736
+ }, Pu = !0, Fu = [
19659
19737
  "prefix",
19660
19738
  "productId",
19661
19739
  "serviceId",
@@ -19667,7 +19745,7 @@ var ku = {
19667
19745
  "itemsPerRow",
19668
19746
  "itemsPerPage",
19669
19747
  "paginated"
19670
- ], Mu = {
19748
+ ], Iu = {
19671
19749
  blog_title: "blog title",
19672
19750
  blog_content: "blog post text",
19673
19751
  blog_featured_image: "blog picture",
@@ -19683,7 +19761,7 @@ var ku = {
19683
19761
  checkout_flow: "checkout",
19684
19762
  order_confirmation: "order confirmation",
19685
19763
  order_tracking: "order tracking"
19686
- }, Nu = (e) => !!e && typeof e == "object" && !Array.isArray(e), Y = (e) => Nu(e) ? e : {}, X = (e, t = 500) => Array.isArray(e) ? e.slice(0, t) : [], Z = (e) => typeof e == "string" ? e : typeof e == "number" && Number.isFinite(e) ? String(e) : "", Pu = {
19764
+ }, Lu = (e) => !!e && typeof e == "object" && !Array.isArray(e), Y = (e) => Lu(e) ? e : {}, X = (e, t = 500) => Array.isArray(e) ? e.slice(0, t) : [], Z = (e) => typeof e == "string" ? e : typeof e == "number" && Number.isFinite(e) ? String(e) : "", Ru = {
19687
19765
  amp: "&",
19688
19766
  lt: "<",
19689
19767
  gt: ">",
@@ -19698,7 +19776,7 @@ var ku = {
19698
19776
  ndash: "–",
19699
19777
  hellip: "…",
19700
19778
  copy: "©"
19701
- }, Fu = (e) => e.replace(/&(#x[0-9a-f]+|#\d+|[a-z]+);/gi, (e, t) => {
19779
+ }, zu = (e) => e.replace(/&(#x[0-9a-f]+|#\d+|[a-z]+);/gi, (e, t) => {
19702
19780
  if (t[0] === "#") {
19703
19781
  let e = t[1].toLowerCase() === "x" ? parseInt(t.slice(2), 16) : parseInt(t.slice(1), 10);
19704
19782
  try {
@@ -19707,37 +19785,37 @@ var ku = {
19707
19785
  return "";
19708
19786
  }
19709
19787
  }
19710
- return Pu[t.toLowerCase()] ?? e;
19788
+ return Ru[t.toLowerCase()] ?? e;
19711
19789
  });
19712
- function Iu(e) {
19790
+ function Bu(e) {
19713
19791
  let t = /<(a|b|strong|i|em|u|s|span|font|ul|ol|li|img|sup|sub|mark|code)\b/i.test(e);
19714
19792
  return {
19715
- text: Fu(e.replace(/<\s*br\s*\/?>/gi, "\n").replace(/<\/(p|div|li|h[1-6])\s*>/gi, "\n").replace(/<[^>]*>/g, "")).replace(/[ \t\f\v]+/g, " ").replace(/ ?\n ?/g, "\n").replace(/\n{3,}/g, "\n\n").trim().slice(0, 2e4),
19793
+ text: zu(e.replace(/<\s*br\s*\/?>/gi, "\n").replace(/<\/(p|div|li|h[1-6])\s*>/gi, "\n").replace(/<[^>]*>/g, "")).replace(/[ \t\f\v]+/g, " ").replace(/ ?\n ?/g, "\n").replace(/\n{3,}/g, "\n\n").trim().slice(0, 2e4),
19716
19794
  rich: t
19717
19795
  };
19718
19796
  }
19719
- var Lu = /[;{}<>\\]|\/\*|javascript:|expression\s*\(|@import|behavior\s*:|-moz-binding/i, Ru = (e) => {
19797
+ var Vu = /[;{}<>\\]|\/\*|javascript:|expression\s*\(|@import|behavior\s*:|-moz-binding/i, Hu = (e) => {
19720
19798
  let t = Z(e).trim();
19721
- return t && t.length <= 300 && !Lu.test(t) ? t : void 0;
19722
- }, zu = /* @__PURE__ */ new Set([
19799
+ return t && t.length <= 300 && !Vu.test(t) ? t : void 0;
19800
+ }, Uu = /* @__PURE__ */ new Set([
19723
19801
  "left",
19724
19802
  "center",
19725
19803
  "right",
19726
19804
  "justify"
19727
- ]), Bu = /* @__PURE__ */ new Set([
19805
+ ]), Wu = /* @__PURE__ */ new Set([
19728
19806
  "solid",
19729
19807
  "dashed",
19730
19808
  "dotted",
19731
19809
  "none"
19732
- ]), Vu = /* @__PURE__ */ new Set([
19810
+ ]), Gu = /* @__PURE__ */ new Set([
19733
19811
  "none",
19734
19812
  "uppercase",
19735
19813
  "lowercase",
19736
19814
  "capitalize"
19737
- ]), Hu = (e) => {
19815
+ ]), Ku = (e) => {
19738
19816
  let t = /url\(\s*(?:"([^"]*)"|'([^']*)'|([^)]*))\s*\)/i.exec(e), n = (t?.[1] ?? t?.[2] ?? t?.[3] ?? "").trim();
19739
19817
  return n && ut(n) || void 0;
19740
- }, Uu = /* @__PURE__ */ new Set([
19818
+ }, qu = /* @__PURE__ */ new Set([
19741
19819
  "autoHeight",
19742
19820
  "autoWidth",
19743
19821
  "position",
@@ -19755,13 +19833,13 @@ var Lu = /[;{}<>\\]|\/\*|javascript:|expression\s*\(|@import|behavior\s*:|-moz-b
19755
19833
  "verticalAlign",
19756
19834
  "float"
19757
19835
  ]);
19758
- function Wu(e) {
19836
+ function Ju(e) {
19759
19837
  let t = Y(e), n = {}, r = [], i = (e, t) => {
19760
19838
  t !== void 0 && (n[e] = t);
19761
19839
  };
19762
19840
  for (let [e, a] of Object.entries(t)) {
19763
- if (a == null || a === "" || Uu.has(e)) continue;
19764
- let t = Ru(a);
19841
+ if (a == null || a === "" || qu.has(e)) continue;
19842
+ let t = Hu(a);
19765
19843
  switch (e) {
19766
19844
  case "color":
19767
19845
  i("textColor", t);
@@ -19782,7 +19860,7 @@ function Wu(e) {
19782
19860
  i("letterSpacing", t);
19783
19861
  break;
19784
19862
  case "textTransform":
19785
- t && Vu.has(t) && (n.textTransform = t);
19863
+ t && Gu.has(t) && (n.textTransform = t);
19786
19864
  break;
19787
19865
  case "fontStyle":
19788
19866
  t === "italic" && (n.isItalic = !0);
@@ -19791,7 +19869,7 @@ function Wu(e) {
19791
19869
  t && /underline/.test(t) && (n.isUnderline = !0);
19792
19870
  break;
19793
19871
  case "textAlign":
19794
- t && zu.has(t) && (n.textAlign = t);
19872
+ t && Uu.has(t) && (n.textAlign = t);
19795
19873
  break;
19796
19874
  case "backgroundColor":
19797
19875
  i("backgroundColor", t);
@@ -19800,7 +19878,7 @@ function Wu(e) {
19800
19878
  case "backgroundImage":
19801
19879
  if (t && /gradient\(/i.test(t)) n.backgroundGradient = t;
19802
19880
  else if (t && /url\(/i.test(t)) {
19803
- let i = Hu(t);
19881
+ let i = Ku(t);
19804
19882
  i ? (n.backgroundImage = i, n.backgroundSize ??= "cover", n.backgroundPosition ??= "center") : r.push(e);
19805
19883
  } else e === "background" ? i("backgroundColor", t) : t && r.push(e);
19806
19884
  break;
@@ -19838,7 +19916,7 @@ function Wu(e) {
19838
19916
  i("gap", t);
19839
19917
  break;
19840
19918
  case "borderStyle":
19841
- t && Bu.has(t) && (n.borderStyle = t);
19919
+ t && Wu.has(t) && (n.borderStyle = t);
19842
19920
  break;
19843
19921
  case "border": {
19844
19922
  let i = t ? /^([\d.]+(?:px|rem|em)?)\s+(solid|dashed|dotted|none)\s*(.*)$/i.exec(t) : null;
@@ -19861,11 +19939,11 @@ function Wu(e) {
19861
19939
  unmapped: r
19862
19940
  };
19863
19941
  }
19864
- var Gu = (e, ...t) => t.some((t) => Z(e[t]).trim() !== ""), Q = (e, t) => {
19942
+ var Yu = (e, ...t) => t.some((t) => Z(e[t]).trim() !== ""), Q = (e, t) => {
19865
19943
  e.seen.has(t) || (e.seen.add(t), e.warnings.push(t));
19866
- }, Ku = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
19867
- function qu(e, t, n) {
19868
- let r = Wu(t.style), i = Wu(t.styleTablet), a = Wu(t.styleMobile), o = [.../* @__PURE__ */ new Set([
19944
+ }, Xu = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
19945
+ function Zu(e, t, n) {
19946
+ let r = Ju(t.style), i = Ju(t.styleTablet), a = Ju(t.styleMobile), o = [.../* @__PURE__ */ new Set([
19869
19947
  ...r.unmapped,
19870
19948
  ...i.unmapped,
19871
19949
  ...a.unmapped
@@ -19877,7 +19955,7 @@ function qu(e, t, n) {
19877
19955
  responsive: Object.keys(s).length ? s : void 0
19878
19956
  };
19879
19957
  }
19880
- function Ju(e, t) {
19958
+ function Qu(e, t) {
19881
19959
  t !== "center" && t !== "right" || (!e.width && !e.widthSizing && (e.widthSizing = "hug"), e.marginLeft ||= "auto", !e.marginRight && t === "center" && (e.marginRight = "auto"));
19882
19960
  }
19883
19961
  var $ = (e, t, n, r, i = {}) => ({
@@ -19886,12 +19964,12 @@ var $ = (e, t, n, r, i = {}) => ({
19886
19964
  name: n,
19887
19965
  styles: r,
19888
19966
  ...i
19889
- }), Yu = {
19967
+ }), $u = {
19890
19968
  layoutMode: "flow",
19891
19969
  display: "flex",
19892
19970
  flexDirection: "column",
19893
19971
  width: "100%"
19894
- }, Xu = {
19972
+ }, ed = {
19895
19973
  1: "32px",
19896
19974
  2: "24px",
19897
19975
  3: "19px",
@@ -19899,43 +19977,43 @@ var $ = (e, t, n, r, i = {}) => ({
19899
19977
  5: "13px",
19900
19978
  6: "11px"
19901
19979
  };
19902
- function Zu(e, t, n) {
19903
- let r = Z(t.type), i = Y(t.attributes), { styles: a, responsive: o } = qu(e, t, `${Mu[r] ?? r.replace(/_/g, " ")} block`), s = a.textAlign, c = (e, t, r = {}, i = a) => $(n, e, t, i, {
19980
+ function td(e, t, n) {
19981
+ let r = Z(t.type), i = Y(t.attributes), { styles: a, responsive: o } = Zu(e, t, `${Iu[r] ?? r.replace(/_/g, " ")} block`), s = a.textAlign, c = (e, t, r = {}, i = a) => $(n, e, t, i, {
19904
19982
  ...o ? { responsive: o } : {},
19905
19983
  ...r
19906
19984
  });
19907
19985
  switch (r) {
19908
19986
  case "heading": {
19909
- let { text: n, rich: r } = Iu(Z(i.text) || "Heading");
19987
+ let { text: n, rich: r } = Bu(Z(i.text) || "Heading");
19910
19988
  r && (e.approx = !0, Q(e, "Bold, italic and links inside text are simplified to plain text."));
19911
19989
  let o = /^h([1-6])$/i.exec(Z(i.headingType)), s = o ? Number(o[1]) : 2, l = { ...a };
19912
- return l.fontSize ??= Xu[s], l.fontWeight ??= "700", Gu(Y(t.style), "margin", "marginBottom") || (l.marginBottom = "8px"), [c("heading", n.slice(0, 40) || "Heading", {
19990
+ return l.fontSize ??= ed[s], l.fontWeight ??= "700", Yu(Y(t.style), "margin", "marginBottom") || (l.marginBottom = "8px"), [c("heading", n.slice(0, 40) || "Heading", {
19913
19991
  content: n,
19914
19992
  props: { level: s }
19915
19993
  }, l)];
19916
19994
  }
19917
19995
  case "paragraph":
19918
19996
  case "text": {
19919
- let s = Z(i.text) || (r === "paragraph" ? "Paragraph text content." : ""), { rich: l } = Iu(s);
19997
+ let s = Z(i.text) || (r === "paragraph" ? "Paragraph text content." : ""), { rich: l } = Bu(s);
19920
19998
  l && (e.approx = !0, Q(e, "Bold, italic and links inside text are simplified to plain text."));
19921
- let u = s.split(/<\/p\s*>|(?:<br\s*\/?>\s*){2,}/i).map((e) => Iu(e).text).filter(Boolean), d = u.length ? u : [""], f = { ...a };
19922
- return r === "paragraph" && !Gu(Y(t.style), "margin", "marginBottom") && (f.marginBottom = "12px"), d.map((e, t) => t === 0 ? c("paragraph", e.slice(0, 40) || "Text", { content: e }, f) : $(`${n}-p${t + 1}`, "paragraph", e.slice(0, 40) || "Text", f, {
19999
+ let u = s.split(/<\/p\s*>|(?:<br\s*\/?>\s*){2,}/i).map((e) => Bu(e).text).filter(Boolean), d = u.length ? u : [""], f = { ...a };
20000
+ return r === "paragraph" && !Yu(Y(t.style), "margin", "marginBottom") && (f.marginBottom = "12px"), d.map((e, t) => t === 0 ? c("paragraph", e.slice(0, 40) || "Text", { content: e }, f) : $(`${n}-p${t + 1}`, "paragraph", e.slice(0, 40) || "Text", f, {
19923
20001
  content: e,
19924
20002
  ...o ? { responsive: o } : {}
19925
20003
  }));
19926
20004
  }
19927
20005
  case "button": {
19928
20006
  let t = { ...a };
19929
- Ju(t, s), !t.widthSizing && !t.width && (t.widthSizing = "hug");
20007
+ Qu(t, s), !t.widthSizing && !t.width && (t.widthSizing = "hug");
19930
20008
  let n = Z(i.href).trim();
19931
20009
  return i.openInNewTab && (e.approx = !0, Q(e, "Buttons can't open in a new tab yet, so they open in the same one.")), [c("button", "Button", {
19932
- content: Iu(Z(i.text) || "Button").text,
20010
+ content: Bu(Z(i.text) || "Button").text,
19933
20011
  props: { href: n ? P(n) : "#" }
19934
20012
  }, t)];
19935
20013
  }
19936
20014
  case "image": {
19937
20015
  let e = { ...a };
19938
- return i.autoHeight !== !1 && delete e.height, e.width ??= "100%", Ju(e, s), [c("image", Z(i.alt).slice(0, 40) || "Image", { props: {
20016
+ return i.autoHeight !== !1 && delete e.height, e.width ??= "100%", Qu(e, s), [c("image", Z(i.alt).slice(0, 40) || "Image", { props: {
19939
20017
  src: ut(i.src),
19940
20018
  alt: Z(i.alt)
19941
20019
  } }, e)];
@@ -19949,7 +20027,7 @@ function Zu(e, t, n) {
19949
20027
  case "spacer": return [c("spacer", "Spacer", {}, { height: a.height ?? "24px" })];
19950
20028
  case "card": {
19951
20029
  let e = {
19952
- ...Yu,
20030
+ ...$u,
19953
20031
  gap: "8px",
19954
20032
  ...a
19955
20033
  };
@@ -19958,18 +20036,18 @@ function Zu(e, t, n) {
19958
20036
  fontWeight: "700",
19959
20037
  textColor: "#ffffff"
19960
20038
  }, {
19961
- content: Iu(Z(i.title) || "Card Title").text,
20039
+ content: Bu(Z(i.title) || "Card Title").text,
19962
20040
  props: { level: 3 }
19963
20041
  }), $(`${n}-text`, "paragraph", "Card text", {
19964
20042
  fontSize: "14px",
19965
20043
  textColor: "#94a3b8"
19966
- }, { content: Iu(Z(i.description) || "Card description.").text })] }, e)];
20044
+ }, { content: Bu(Z(i.description) || "Card description.").text })] }, e)];
19967
20045
  }
19968
20046
  case "icon": {
19969
- let t = Ku(Z(i.iconName)), n = t in uc;
20047
+ let t = Xu(Z(i.iconName)), n = t in mc;
19970
20048
  n || (e.approx = !0, Q(e, `The icon "${Z(i.iconName) || "unnamed"}" isn't in the V2 icon set, so a star stands in for it.`)), Z(i.href).trim() && (e.approx = !0, Q(e, "Icons can't be links yet; the icon is kept without its link."));
19971
20049
  let r = { ...a };
19972
- return r.fontSize ??= `${parseInt(Z(i.iconSize), 10) || 48}px`, r.textColor ??= "#1e293b", Ju(r, s === "left" ? void 0 : s ?? "center"), [c("icon", "Icon", { props: {
20050
+ return r.fontSize ??= `${parseInt(Z(i.iconSize), 10) || 48}px`, r.textColor ??= "#1e293b", Qu(r, s === "left" ? void 0 : s ?? "center"), [c("icon", "Icon", { props: {
19973
20051
  iconName: n ? t : "star",
19974
20052
  strokeWidth: 2,
19975
20053
  label: Z(i.alt) || Z(i.label)
@@ -19997,7 +20075,7 @@ function Zu(e, t, n) {
19997
20075
  })).filter((e) => e.network in L);
19998
20076
  r.length < n.length && (e.approx = !0, Q(e, "A social link to a network V2 has no icon for was left out."));
19999
20077
  let o = parseInt(Z(Y(n[0]).size) || Z(Y(t.style).iconSize), 10), l = { ...a };
20000
- return Ju(l, s), [c("social", "Social links", { props: {
20078
+ return Qu(l, s), [c("social", "Social links", { props: {
20001
20079
  links: r,
20002
20080
  size: Number.isFinite(o) ? Math.min(96, Math.max(20, o)) : 40,
20003
20081
  shape: Z(i.iconType ?? Y(n[0]).iconType) === "square" ? "square" : "circle",
@@ -20009,7 +20087,7 @@ function Zu(e, t, n) {
20009
20087
  label: Z(e.label).trim() || "Link",
20010
20088
  href: P(Z(e.href) || "#")
20011
20089
  })), t = { ...a };
20012
- return (s === "center" || s === "right") && Ju(t, s), [c("menu", "Menu", { props: {
20090
+ return (s === "center" || s === "right") && Qu(t, s), [c("menu", "Menu", { props: {
20013
20091
  links: e,
20014
20092
  layout: "horizontal",
20015
20093
  mobile: "hamburger"
@@ -20026,7 +20104,7 @@ function Zu(e, t, n) {
20026
20104
  })]) : (e.lost = !0, Q(e, "An empty HTML block was left out."), []);
20027
20105
  }
20028
20106
  case "table": {
20029
- let t = Math.max(1, Math.min(200, Number(i.rowCount) || 2)), n = Math.max(1, Math.min(30, Number(i.colCount) || 2)), r = X(i.cells, 200).map((e) => X(e, 30)), a = Array.from({ length: t }, (e, t) => Array.from({ length: n }, (e, n) => Iu(Z(r[t]?.[n])).text));
20107
+ let t = Math.max(1, Math.min(200, Number(i.rowCount) || 2)), n = Math.max(1, Math.min(30, Number(i.colCount) || 2)), r = X(i.cells, 200).map((e) => X(e, 30)), a = Array.from({ length: t }, (e, t) => Array.from({ length: n }, (e, n) => Bu(Z(r[t]?.[n])).text));
20030
20108
  return i.enableFooter && (e.approx = !0, Q(e, "A table footer row is now an ordinary row.")), [c("table", "Table", { props: {
20031
20109
  rows: a,
20032
20110
  headerRow: i.enableHeader !== !1,
@@ -20047,22 +20125,22 @@ function Zu(e, t, n) {
20047
20125
  let n = t.findIndex((e) => !!e.defaultOpen);
20048
20126
  return n > 0 && (e.approx = !0, Q(e, "An accordion opens its first question by default now, not the one it used to.")), [c("accordion", "Accordion", { props: {
20049
20127
  items: t.map((e, t) => ({
20050
- title: Iu(Z(e.title) || `Item ${t + 1}`).text,
20051
- content: Iu(Z(e.content)).text
20128
+ title: Bu(Z(e.title) || `Item ${t + 1}`).text,
20129
+ content: Bu(Z(e.content)).text
20052
20130
  })),
20053
20131
  allowMultiple: i.mode === "multi",
20054
20132
  openFirst: n === 0
20055
20133
  } })];
20056
20134
  }
20057
- case "form_container": return Z(i.provider) === "maildrip" ? Qu(e, "maildrip_form", "a MailDrip sign-up form", n, i) : [ed(e, n, i, X(i.fields, 40).map(Y), a, o)];
20058
- default: return r in ku ? Qu(e, r, Mu[r] ?? r, n, i, a, o) : (e.lost = !0, Q(e, `A "${r || "unknown"}" block isn't supported in the new editor and was left out.`), []);
20135
+ case "form_container": return Z(i.provider) === "maildrip" ? nd(e, "maildrip_form", "a MailDrip sign-up form", n, i) : [id(e, n, i, X(i.fields, 40).map(Y), a, o)];
20136
+ default: return r in Nu ? nd(e, r, Iu[r] ?? r, n, i, a, o) : (e.lost = !0, Q(e, `A "${r || "unknown"}" block isn't supported in the new editor and was left out.`), []);
20059
20137
  }
20060
20138
  }
20061
- function Qu(e, t, n, r, i, a = {}, o) {
20062
- let s = ku[t];
20139
+ function nd(e, t, n, r, i, a = {}, o) {
20140
+ let s = Nu[t];
20063
20141
  if (s) {
20064
20142
  let e = {};
20065
- for (let t of ju) {
20143
+ for (let t of Fu) {
20066
20144
  let n = i[t];
20067
20145
  (typeof n == "string" || typeof n == "boolean" || typeof n == "number" && Number.isFinite(n)) && (e[t] = n);
20068
20146
  }
@@ -20075,11 +20153,11 @@ function Qu(e, t, n, r, i, a = {}, o) {
20075
20153
  })];
20076
20154
  }
20077
20155
  return e.lost = !0, Q(e, `The ${n} can't be carried over automatically and was left out. Add it again from the new editor's Add panel.`), [$(r, "container", `Needs attention: ${n}`, {
20078
- ...Yu,
20156
+ ...$u,
20079
20157
  minHeight: "40px"
20080
20158
  }, { hidden: !0 })];
20081
20159
  }
20082
- var $u = {
20160
+ var rd = {
20083
20161
  text: "text",
20084
20162
  email: "email",
20085
20163
  tel: "tel",
@@ -20091,15 +20169,15 @@ var $u = {
20091
20169
  number: "text",
20092
20170
  date: "text"
20093
20171
  };
20094
- function ed(e, t, n, r, i, a) {
20172
+ function id(e, t, n, r, i, a) {
20095
20173
  let o = /* @__PURE__ */ new Set(), s = [];
20096
20174
  for (let t of r) {
20097
- let n = Z(t.kind) || Z(t.type) || Z(t.inputType) || "text", r = $u[n] ?? "text";
20098
- (n === "radio" || n === "number" || n === "date" || !(n in $u)) && (e.approx = !0, Q(e, `A "${n}" form field is now a ${r === "select" ? "drop-down" : "text"} field.`));
20099
- let i = Iu(Z(t.label) || Z(t.placeholder) || Z(t.name) || "Field").text, a = (Z(t.name) || Z(t.fieldName) || i).toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "field", c = a;
20175
+ let n = Z(t.kind) || Z(t.type) || Z(t.inputType) || "text", r = rd[n] ?? "text";
20176
+ (n === "radio" || n === "number" || n === "date" || !(n in rd)) && (e.approx = !0, Q(e, `A "${n}" form field is now a ${r === "select" ? "drop-down" : "text"} field.`));
20177
+ let i = Bu(Z(t.label) || Z(t.placeholder) || Z(t.name) || "Field").text, a = (Z(t.name) || Z(t.fieldName) || i).toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "field", c = a;
20100
20178
  for (let e = 2; o.has(a); e++) a = `${c}-${e}`;
20101
20179
  o.add(a);
20102
- let l = X(t.options, 50).map((e) => Nu(e) ? Z(e.label) || Z(e.value) : Z(e)).filter(Boolean);
20180
+ let l = X(t.options, 50).map((e) => Lu(e) ? Z(e.label) || Z(e.value) : Z(e)).filter(Boolean);
20103
20181
  s.push({
20104
20182
  id: a,
20105
20183
  label: i,
@@ -20127,12 +20205,12 @@ function ed(e, t, n, r, i, a) {
20127
20205
  ...a ? { responsive: a } : {}
20128
20206
  });
20129
20207
  }
20130
- var td = /* @__PURE__ */ new Set([
20208
+ var ad = /* @__PURE__ */ new Set([
20131
20209
  "input",
20132
20210
  "textarea",
20133
20211
  "select"
20134
20212
  ]);
20135
- function nd(e) {
20213
+ function od(e) {
20136
20214
  let t = Y(e.attributes), n = Z(e.type);
20137
20215
  return {
20138
20216
  kind: n === "input" ? Z(t.inputType) || Z(t.type) || "text" : n,
@@ -20143,8 +20221,8 @@ function nd(e) {
20143
20221
  options: t.options
20144
20222
  };
20145
20223
  }
20146
- function rd(e) {
20147
- let t = X(e.elements, 200).filter(Nu), n = X(e.nestedRows, 50).filter(Nu), r = /* @__PURE__ */ new Map();
20224
+ function sd(e) {
20225
+ let t = X(e.elements, 200).filter(Lu), n = X(e.nestedRows, 50).filter(Lu), r = /* @__PURE__ */ new Map();
20148
20226
  for (let e of t) r.set(Z(e.id), {
20149
20227
  kind: "el",
20150
20228
  item: e
@@ -20168,11 +20246,11 @@ function rd(e) {
20168
20246
  });
20169
20247
  return i;
20170
20248
  }
20171
- function id(e, t = 1) {
20249
+ function cd(e, t = 1) {
20172
20250
  return e.nodes + t > 4980 ? (e.capped || (e.capped = !0, e.lost = !0, Q(e, "This design is very large, so the last part of it was left out.")), !1) : (e.nodes += t, !0);
20173
20251
  }
20174
- function ad(e, t, n, r) {
20175
- let i = [], a = rd(t), o = 0;
20252
+ function ld(e, t, n, r) {
20253
+ let i = [], a = sd(t), o = 0;
20176
20254
  for (let t = 0; t < a.length; t++) {
20177
20255
  let s = a[t];
20178
20256
  if (o += 1, s.kind === "row") {
@@ -20180,35 +20258,35 @@ function ad(e, t, n, r) {
20180
20258
  e.lost = !0, Q(e, "Rows nested very deeply were left out.");
20181
20259
  continue;
20182
20260
  }
20183
- let t = sd(e, s.item, `${n}-r${o}`, r + 1, !1);
20261
+ let t = dd(e, s.item, `${n}-r${o}`, r + 1, !1);
20184
20262
  t && i.push(t);
20185
20263
  continue;
20186
20264
  }
20187
- if (td.has(Z(s.item.type))) {
20265
+ if (ad.has(Z(s.item.type))) {
20188
20266
  let r = [s.item];
20189
- for (; t + 1 < a.length && a[t + 1].kind === "el" && td.has(Z(a[t + 1].item.type));) r.push(a[t + 1].item), t += 1;
20190
- if (!id(e)) continue;
20191
- e.approx = !0, Q(e, "Separate form fields were grouped into one form. Check its button and where it sends messages."), i.push(ed(e, `${n}-e${o}`, {}, r.map(nd), qu(e, r[0], "form field").styles, void 0));
20267
+ for (; t + 1 < a.length && a[t + 1].kind === "el" && ad.has(Z(a[t + 1].item.type));) r.push(a[t + 1].item), t += 1;
20268
+ if (!cd(e)) continue;
20269
+ e.approx = !0, Q(e, "Separate form fields were grouped into one form. Check its button and where it sends messages."), i.push(id(e, `${n}-e${o}`, {}, r.map(od), Zu(e, r[0], "form field").styles, void 0));
20192
20270
  continue;
20193
20271
  }
20194
- id(e, 2) && i.push(...Zu(e, s.item, `${n}-e${o}`));
20272
+ cd(e, 2) && i.push(...td(e, s.item, `${n}-e${o}`));
20195
20273
  }
20196
20274
  return i;
20197
20275
  }
20198
- var od = (e) => {
20276
+ var ud = (e) => {
20199
20277
  let t = parseFloat(Z(e));
20200
20278
  return Number.isFinite(t) && t > 0 ? t : 0;
20201
20279
  };
20202
- function sd(e, t, n, r, i) {
20203
- if (!id(e, 3)) return null;
20204
- let { styles: a, responsive: o } = qu(e, {
20280
+ function dd(e, t, n, r, i) {
20281
+ if (!cd(e, 3)) return null;
20282
+ let { styles: a, responsive: o } = Zu(e, {
20205
20283
  style: t.style,
20206
20284
  styleTablet: t.styleTablet,
20207
20285
  styleMobile: t.styleMobile
20208
- }, "row"), s = X(t.columns, 12).filter(Nu), c = a.gap ?? (s.length > 1 ? "16px" : void 0);
20286
+ }, "row"), s = X(t.columns, 12).filter(Lu), c = a.gap ?? (s.length > 1 ? "16px" : void 0);
20209
20287
  delete a.gap;
20210
20288
  let l = s.map((t, i) => {
20211
- let a = `${n}-c${i + 1}`, { styles: o, responsive: s } = qu(e, {
20289
+ let a = `${n}-c${i + 1}`, { styles: o, responsive: s } = Zu(e, {
20212
20290
  style: t.styles,
20213
20291
  styleTablet: t.stylesTablet,
20214
20292
  styleMobile: t.stylesMobile
@@ -20217,13 +20295,13 @@ function sd(e, t, n, r, i) {
20217
20295
  cid: a,
20218
20296
  cs: o,
20219
20297
  cr: s,
20220
- children: ad(e, t, a, r)
20298
+ children: ld(e, t, a, r)
20221
20299
  };
20222
20300
  }), u;
20223
20301
  if (l.length === 1) {
20224
20302
  let e = l[0];
20225
20303
  u = $(`${n}-body`, "container", "Content", {
20226
- ...Yu,
20304
+ ...$u,
20227
20305
  ...e.cs,
20228
20306
  width: "100%"
20229
20307
  }, {
@@ -20231,7 +20309,7 @@ function sd(e, t, n, r, i) {
20231
20309
  ...e.cr ? { responsive: e.cr } : {}
20232
20310
  });
20233
20311
  } else {
20234
- let e = s.map((e) => od(e.width)), t = e.reduce((e, t) => e + t, 0), r = l.map((n, r) => t > 0 && e[r] > 0 ? Math.round(e[r] / t * 1e3) / 10 : 100 / Math.max(1, l.length)).map((e) => `minmax(0, ${e}fr)`).join(" "), i = l.length <= 2 ? r : "minmax(0, 1fr) minmax(0, 1fr)";
20312
+ let e = s.map((e) => ud(e.width)), t = e.reduce((e, t) => e + t, 0), r = l.map((n, r) => t > 0 && e[r] > 0 ? Math.round(e[r] / t * 1e3) / 10 : 100 / Math.max(1, l.length)).map((e) => `minmax(0, ${e}fr)`).join(" "), i = l.length <= 2 ? r : "minmax(0, 1fr) minmax(0, 1fr)";
20235
20313
  u = $(`${n}-cols`, "columns", "Columns", {
20236
20314
  layoutMode: "grid",
20237
20315
  display: "grid",
@@ -20245,7 +20323,7 @@ function sd(e, t, n, r, i) {
20245
20323
  mobile: { gridTemplateColumns: "minmax(0, 1fr)" }
20246
20324
  },
20247
20325
  children: l.map((e) => $(e.cid, "column", "Column", {
20248
- ...Yu,
20326
+ ...$u,
20249
20327
  ...e.cs,
20250
20328
  width: "100%"
20251
20329
  }, {
@@ -20268,7 +20346,7 @@ function sd(e, t, n, r, i) {
20268
20346
  }
20269
20347
  return "";
20270
20348
  })(u.children ?? []), p = d && d.replace(/[-_]+/g, " ") || f || (i ? "Section" : "Row"), m = ht(Z(t.htmlClass)), h = {
20271
- ...Yu,
20349
+ ...$u,
20272
20350
  ...a,
20273
20351
  ...m ? { customClasses: m } : {}
20274
20352
  };
@@ -20281,7 +20359,7 @@ function sd(e, t, n, r, i) {
20281
20359
  ...o ? { responsive: o } : {}
20282
20360
  });
20283
20361
  }
20284
- var cd = (e, t = {}) => ({
20362
+ var fd = (e, t = {}) => ({
20285
20363
  id: e.id ?? "v1-page",
20286
20364
  name: e.name ?? "Home",
20287
20365
  slug: e.slug ?? "home",
@@ -20294,7 +20372,7 @@ var cd = (e, t = {}) => ({
20294
20372
  children: []
20295
20373
  }
20296
20374
  });
20297
- function ld(e, t = {}) {
20375
+ function pd(e, t = {}) {
20298
20376
  let n = {
20299
20377
  warnings: [],
20300
20378
  seen: /* @__PURE__ */ new Set(),
@@ -20304,14 +20382,14 @@ function ld(e, t = {}) {
20304
20382
  capped: !1
20305
20383
  }, r = {};
20306
20384
  try {
20307
- let i = Y(e), a = Nu(i.body) ? i.body : null;
20385
+ let i = Y(e), a = Lu(i.body) ? i.body : null;
20308
20386
  if (!a) return Q(n, "This doesn't look like a design from the old editor, so an empty page was made instead."), {
20309
- page: cd(t),
20387
+ page: fd(t),
20310
20388
  warnings: n.warnings,
20311
20389
  fidelity: "partial",
20312
20390
  extras: r
20313
20391
  };
20314
- let o = Y(a.style), { styles: s, unmapped: c } = Wu(Object.fromEntries(Object.entries(o).filter(([e]) => ![
20392
+ let o = Y(a.style), { styles: s, unmapped: c } = Ju(Object.fromEntries(Object.entries(o).filter(([e]) => ![
20315
20393
  "customJs",
20316
20394
  "customCss",
20317
20395
  "favicon",
@@ -20320,17 +20398,17 @@ function ld(e, t = {}) {
20320
20398
  c.length && (n.approx = !0, Q(n, `Some page-wide styling (${c.slice(0, 4).join(", ")}) can't be carried over.`));
20321
20399
  let l = Z(o.customJs).trim();
20322
20400
  l && (r.customJs = l), Z(o.customCss).trim() && (n.approx = !0, Q(n, "The page's custom CSS can't be carried over; check the page's look.")), Z(o.favicon).trim() && (n.approx = !0, Q(n, "Set the site icon again in the site settings."));
20323
- let u = cd(t, { ...s }), d = Z(o.contentMaxWidth).trim();
20401
+ let u = fd(t, { ...s }), d = Z(o.contentMaxWidth).trim();
20324
20402
  u.rootNode.styles.layoutMode = "flow", u.rootNode.styles.display = "flex", u.rootNode.styles.flexDirection = "column";
20325
- let f = X(a.rows, 200).filter(Nu), p = [];
20403
+ let f = X(a.rows, 200).filter(Lu), p = [];
20326
20404
  if (f.forEach((e, t) => {
20327
- let r = sd(n, e, `v1-s${t + 1}`, 0, !0);
20405
+ let r = dd(n, e, `v1-s${t + 1}`, 0, !0);
20328
20406
  r && p.push(r);
20329
20407
  }), d && d !== "1200px") {
20330
- let e = d.toLowerCase() === "none" ? "100%" : Ru(d);
20408
+ let e = d.toLowerCase() === "none" ? "100%" : Hu(d);
20331
20409
  if (e) for (let t of p) for (let n of t.children ?? []) n.styles.maxWidth = e;
20332
20410
  }
20333
- u.rootNode.children = p, ud(u.rootNode) > 40 && (n.lost = !0, Q(n, "Rows nested too deeply were left out."), u.rootNode.children = p.map((e) => dd(e, 0)));
20411
+ u.rootNode.children = p, md(u.rootNode) > 40 && (n.lost = !0, Q(n, "Rows nested too deeply were left out."), u.rootNode.children = p.map((e) => hd(e, 0)));
20334
20412
  let m = n.lost ? "partial" : n.approx ? "approximate" : "exact";
20335
20413
  return {
20336
20414
  page: u,
@@ -20340,26 +20418,26 @@ function ld(e, t = {}) {
20340
20418
  };
20341
20419
  } catch {
20342
20420
  return {
20343
- page: cd(t),
20421
+ page: fd(t),
20344
20422
  warnings: [...n.warnings, "This design could not be read, so an empty page was made instead."],
20345
20423
  fidelity: "partial",
20346
20424
  extras: r
20347
20425
  };
20348
20426
  }
20349
20427
  }
20350
- function ud(e) {
20428
+ function md(e) {
20351
20429
  let t = 0;
20352
- for (let n of e.children ?? []) t = Math.max(t, ud(n));
20430
+ for (let n of e.children ?? []) t = Math.max(t, md(n));
20353
20431
  return t + 1;
20354
20432
  }
20355
- function dd(e, t) {
20433
+ function hd(e, t) {
20356
20434
  return t >= 38 ? {
20357
20435
  ...e,
20358
20436
  children: []
20359
20437
  } : {
20360
20438
  ...e,
20361
- children: e.children?.map((e) => dd(e, t + 1))
20439
+ children: e.children?.map((e) => hd(e, t + 1))
20362
20440
  };
20363
20441
  }
20364
20442
  //#endregion
20365
- export { No as $, zt as $t, Us as A, na as At, Es as B, Bi as Bt, Fc as C, ca as Ct, uc as D, _a as Dt, bc as E, ua as Et, Vs as F, Ei as Ft, qo as G, qi as Gt, Ss as H, $i as Ht, ts as I, Ji as It, Jo as J, bi as Jt, $o as K, Ki as Kt, ns as L, Yi as Lt, Gs as M, U as Mt, Ws as N, zi as Nt, dc as O, fa as Ot, Hs as P, ea as Pt, Uo as Q, Vt as Qt, Bs as R, ra as Rt, Ic as S, k as Sn, ba as St, Nc as T, ga as Tt, Rs as U, Wi as Ut, Ls as V, ia as Vt, es as W, Gi as Wt, Go as X, yi as Xt, Po as Y, H as Yt, Io as Z, L as Zt, $c as _, ge as _n, Pa as _t, _u as a, gt as an, Xa as at, Vc as b, de as bn, wa as bt, gu as c, xe as cn, Va as ct, _l as d, Ce as dn, za as dt, yt as en, Mo as et, vl as f, Oe as fn, Wa as ft, el as g, ye as gn, Ra as gt, ol as h, Ee as hn, Na as ht, vu as i, bt as in, eo as it, Ks as j, Xi as jt, lc as k, ma as kt, Tl as l, Se as ln, Ha as lt, il as m, we as mn, La as mt, Au as n, kt as nn, Eo as nt, Ou as o, et as on, Ya as ot, hl as p, De as pn, Ba as pt, Yo as q, oa as qt, ld as r, jt as rn, no as rt, Ul as s, nt as sn, Ja as st, ku as t, At as tn, Ao as tt, bl as u, ke as un, Ia as ut, Zc as v, fe as vn, Ua as vt, Pc as w, va as wt, Rc as x, ue as xn, ka as xt, Bc as y, pe as yn, Ca as yt, Is as z, Zi as zt };
20443
+ export { Io as $, L as $t, qs as A, fa as At, Es as B, ra as Bt, zc as C, ue as Cn, ka as Ct, mc as D, ga as Dt, wc as E, va as Et, Gs as F, zi as Ft, Rs as G, Wi as Gt, Ss as H, Bi as Ht, ts as I, ea as It, $o as J, Ki as Jt, es as K, Gi as Kt, ns as L, Ei as Lt, Ys as M, na as Mt, Js as N, Xi as Nt, hc as O, ua as Ot, Ks as P, U as Pt, Go as Q, yi as Qt, Bs as R, Ji as Rt, Bc as S, de as Sn, wa as St, Lc as T, ca as Tt, Ws as U, ia as Ut, Ls as V, Zi as Vt, Vs as W, $i as Wt, Jo as X, bi as Xt, Yo as Y, oa as Yt, Po as Z, H as Zt, rl as _, Ee as _n, Na as _t, xu as a, jt as an, no as at, Gc as b, fe as bn, Ua as bt, bu as c, et as cn, Ya as ct, xl as d, Se as dn, Ha as dt, Vt as en, Uo as et, Sl as f, ke as fn, Ia as ft, il as g, we as gn, La as gt, ul as h, De as hn, Ba as ht, Su as i, kt as in, Eo as it, Xs as j, ma as jt, pc as k, _a as kt, kl as l, nt as ln, Ja as lt, cl as m, Oe as mn, Wa as mt, Pu as n, yt as nn, Mo as nt, Mu as o, bt as on, eo as ot, yl as p, Ce as pn, za as pt, qo as q, qi as qt, pd as r, At as rn, Ao as rt, ql as s, gt as sn, Xa as st, Nu as t, zt as tn, No as tt, wl as u, xe as un, Va as ut, tl as v, ye as vn, Ra as vt, Rc as w, k as wn, ba as wt, Hc as x, pe as xn, Ca as xt, Wc as y, ge as yn, Pa as yt, Is as z, Yi as zt };