@sidebandai/sideband-web 1.4.6 → 1.4.7-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,28 +1,50 @@
1
1
  import { PendingInteractionStorageError as e, SidebandApiError as t, SurveySessionStore as n, SurveySessionStore as r, SyncEngine as i, buildFabTitle as a, buildFabTitle as o, createSidebandClient as s, createSidebandRuntime as c, getChoiceValue as l, getChoiceValue as u, getDeviceId as d, getSessionId as f, isPositiveSentimentChoice as p, isSystemOtherChoice as m, resolveSnackbarPresentation as h } from "@sidebandai/sideband-core";
2
- function g(e, t) {
2
+ //#region ../design-tokens/src/choice-columns.ts
3
+ function g(e) {
4
+ let t = !0, n = !1;
5
+ for (let r of e) {
6
+ let e = r.querySelector(".sb-choice__other-content, .sb-choice__label"), i = r.offsetWidth;
7
+ if (!e || i <= 0) return null;
8
+ let a = getComputedStyle(r), o = [
9
+ a.paddingLeft,
10
+ a.paddingRight,
11
+ a.borderLeftWidth,
12
+ a.borderRightWidth
13
+ ].reduce((e, t) => e + (Number.parseFloat(t) || 0), 0), s = r.getBoundingClientRect(), c = s.width > 0 ? s.width / i : 1, l = e.cloneNode(!0);
14
+ l.classList.add("sb-choice-measure"), l.setAttribute("aria-hidden", "true"), r.appendChild(l);
15
+ let u = l.getBoundingClientRect().width / c;
16
+ l.remove(), n = !0, u > i - o && (t = !1);
17
+ }
18
+ return n ? t : null;
19
+ }
20
+ function ee(e) {
21
+ let t = typeof document > "u" ? void 0 : document.fonts;
22
+ return typeof t?.addEventListener == "function" ? (t.addEventListener("loadingdone", e), () => t.removeEventListener("loadingdone", e)) : () => {};
23
+ }
24
+ function te(e, t) {
3
25
  let n = !1, r = null, i = null, a = null, o = Date.now(), s = () => {
4
26
  n = !0, r?.disconnect(), r = null, i !== null && clearInterval(i), i = null, document.removeEventListener("visibilitychange", l);
5
- }, c = () => a === null ? r && Date.now() - o < 1e3 ? !1 : te(e) : a;
27
+ }, c = () => a === null ? r && Date.now() - o < 1e3 ? !1 : re(e) : a;
6
28
  function l() {
7
- n || !ee(e) || !c() || (s(), t());
29
+ n || !ne(e) || !c() || (s(), t());
8
30
  }
9
31
  return typeof IntersectionObserver < "u" && (r = new IntersectionObserver((e) => {
10
32
  let t = e[e.length - 1];
11
33
  t && (a = t.isIntersecting), l();
12
34
  }), r.observe(e)), l(), n ? s : (document.addEventListener("visibilitychange", l), i = setInterval(l, 200), s);
13
35
  }
14
- function ee(e) {
36
+ function ne(e) {
15
37
  if (!e.isConnected) return !1;
16
- for (let t of [e, ...ie(e)]) {
38
+ for (let t of [e, ...oe(e)]) {
17
39
  let e = t.ownerDocument.defaultView;
18
- if (!e || t.ownerDocument.visibilityState === "hidden" || !re(t, e)) return !1;
40
+ if (!e || t.ownerDocument.visibilityState === "hidden" || !ae(t, e)) return !1;
19
41
  }
20
42
  return !0;
21
43
  }
22
- function te(e) {
44
+ function re(e) {
23
45
  let t = e, n = _(e.getBoundingClientRect());
24
46
  for (;;) {
25
- if (n = ne(t, n), !n) return !1;
47
+ if (n = ie(t, n), !n) return !1;
26
48
  let e = b(t);
27
49
  if (!e) return !0;
28
50
  let r = e.getBoundingClientRect();
@@ -41,7 +63,7 @@ var _ = (e) => ({
41
63
  right: e.right,
42
64
  bottom: e.bottom
43
65
  });
44
- function ne(e, t) {
66
+ function ie(e, t) {
45
67
  let n = e.ownerDocument.defaultView;
46
68
  if (!n) return null;
47
69
  let r = e.ownerDocument, i = v(n.getComputedStyle(r.documentElement)), a = !i.x && !i.y, o = n.getComputedStyle(e).position === "fixed", s = t;
@@ -87,14 +109,14 @@ function y(e, t) {
87
109
  };
88
110
  return n.left <= n.right && n.top <= n.bottom ? n : null;
89
111
  }
90
- function re(e, t) {
112
+ function ae(e, t) {
91
113
  let n = e;
92
114
  if (typeof n.checkVisibility == "function") return n.checkVisibility({ visibilityProperty: !0 }) && e.offsetWidth > 0 && e.offsetHeight > 0;
93
115
  if (t.getComputedStyle(e).visibility === "hidden") return !1;
94
116
  for (let n = e; n; n = x(n)) if (t.getComputedStyle(n).display === "none") return !1;
95
117
  return !0;
96
118
  }
97
- function ie(e) {
119
+ function oe(e) {
98
120
  let t = [];
99
121
  for (let n = b(e); n; n = b(n)) t.push(n);
100
122
  return t;
@@ -115,7 +137,7 @@ function x(e) {
115
137
  }
116
138
  //#endregion
117
139
  //#region ../design-tokens/src/index.ts
118
- var ae = "rgba(0, 0, 0, 0)", S = (e, t = 1) => ({
140
+ var se = "rgba(0, 0, 0, 0)", S = (e, t = 1) => ({
119
141
  hex: e,
120
142
  alpha: t
121
143
  }), C = (e, t) => [
@@ -398,11 +420,11 @@ var ae = "rgba(0, 0, 0, 0)", S = (e, t = 1) => ({
398
420
  }
399
421
  ];
400
422
  T.map((e) => e.variable);
401
- var oe = Object.fromEntries(T.map((e) => [e.variable, D(e.fallback)]));
423
+ var ce = Object.fromEntries(T.map((e) => [e.variable, D(e.fallback)]));
402
424
  function E(e) {
403
425
  return e && typeof e == "object" && !Array.isArray(e) ? e : {};
404
426
  }
405
- function D(e, t = ae) {
427
+ function D(e, t = se) {
406
428
  return !e || typeof e.hex != "string" || !/^#[0-9a-fA-F]{6}$/.test(e.hex) || !Number.isFinite(e.alpha) || e.alpha < 0 || e.alpha > 1 ? t : `rgba(${Number.parseInt(e.hex.slice(1, 3), 16)}, ${Number.parseInt(e.hex.slice(3, 5), 16)}, ${Number.parseInt(e.hex.slice(5, 7), 16)}, ${e.alpha})`;
407
429
  }
408
430
  function O(e, t) {
@@ -410,7 +432,7 @@ function O(e, t) {
410
432
  for (let e of t) n = E(n)[e];
411
433
  return n;
412
434
  }
413
- function se(e) {
435
+ function le(e) {
414
436
  return Object.fromEntries(T.map((t) => [t.variable, D(O(e, t.path), D(t.fallback))]));
415
437
  }
416
438
  function k(e, t) {
@@ -423,7 +445,7 @@ function k(e, t) {
423
445
  return Math.round(r * e.alpha + i * (1 - e.alpha)).toString(16).padStart(2, "0");
424
446
  }).join("")}`, 1);
425
447
  }
426
- function ce(e) {
448
+ function ue(e) {
427
449
  let t = (t) => {
428
450
  let n = T.find((e) => e.path.join(".") === t.join(".")), r = O(e, t);
429
451
  return D(r, "") ? r : n.fallback;
@@ -483,12 +505,28 @@ var A = {
483
505
  exit: 400,
484
506
  removal: 450,
485
507
  reduced: 150
486
- }, le = j.delay + j.enter;
487
- function ue(e, t) {
508
+ }, de = j.delay + j.enter, M = {
509
+ stripFade: 228,
510
+ leave: 128,
511
+ grow: 540
512
+ };
513
+ function fe(e) {
514
+ return e === "acknowledging" || e === "leaving";
515
+ }
516
+ function pe(e) {
517
+ let t = Math.min(300, e.cardWidth);
518
+ return {
519
+ width: t,
520
+ left: e.cardLeft + (e.cardWidth - t) / 2,
521
+ bottom: e.cardBottom + 61,
522
+ top: e.cardTop + 61
523
+ };
524
+ }
525
+ function me(e, t) {
488
526
  return t ? 0 : e ? j.delay : A.visible;
489
527
  }
490
- function M(e, t) {
491
- let { viewport: n, safeArea: r = {}, compactHeight: i } = t, a = F(r.left) + 12, o = F(r.right) + 12, s = F(r.top) + 24, c = F(r.bottom) + 8, l = Math.max(0, n.width - a - o), u = Math.min(364, l), d = Math.min(376, l), f = Math.max(0, n.height - s - c), p = Math.min(t.cardHeight, f);
528
+ function N(e, t) {
529
+ let { viewport: n, safeArea: r = {}, compactHeight: i } = t, a = I(r.left) + 12, o = I(r.right) + 12, s = I(r.top) + 24, c = I(r.bottom) + 8, l = Math.max(0, n.width - a - o), u = Math.min(364, l), d = Math.min(376, l), f = Math.max(0, n.height - s - c), p = Math.min(t.cardHeight, f);
492
530
  if (t.barPosition) return {
493
531
  compactWidth: n.width,
494
532
  compactLeft: 0,
@@ -498,11 +536,11 @@ function M(e, t) {
498
536
  maxCardHeight: f,
499
537
  cardLeft: a + (l - d) / 2,
500
538
  cardBottom: c,
501
- cardTop: F(r.top) + 12,
539
+ cardTop: I(r.top) + 12,
502
540
  entranceOffset: 0,
503
541
  transformOrigin: t.barPosition === "top" ? "50% 0%" : "50% 100%"
504
542
  };
505
- let m = R(e, {
543
+ let m = z(e, {
506
544
  viewport: n,
507
545
  element: {
508
546
  width: u,
@@ -518,34 +556,34 @@ function M(e, t) {
518
556
  cardHeight: p,
519
557
  maxCardHeight: f,
520
558
  cardTop: 0,
521
- entranceOffset: (u - i) * L(e?.anchor).x,
559
+ entranceOffset: (u - i) * R(e?.anchor).x,
522
560
  cardLeft: a + (l - d) / 2,
523
561
  cardBottom: Math.max(c, Math.min(g, n.height - s - p)),
524
562
  transformOrigin: m.transformOrigin
525
563
  };
526
564
  }
527
- var N = {
565
+ var P = {
528
566
  x: 1,
529
567
  y: 1
530
- }, P = {
568
+ }, F = {
531
569
  x: -16,
532
570
  y: -24
533
571
  };
534
- function F(e) {
572
+ function I(e) {
535
573
  return typeof e == "number" && Number.isFinite(e) ? Math.max(0, e) : 0;
536
574
  }
537
- function I(e) {
575
+ function L(e) {
538
576
  return typeof e == "number" && Number.isFinite(e) ? e : 0;
539
577
  }
540
- function L(e) {
541
- let t = E(e), n = typeof t.x == "number" && Number.isFinite(t.x) ? t.x : N.x, r = typeof t.y == "number" && Number.isFinite(t.y) ? t.y : N.y;
578
+ function R(e) {
579
+ let t = E(e), n = typeof t.x == "number" && Number.isFinite(t.x) ? t.x : P.x, r = typeof t.y == "number" && Number.isFinite(t.y) ? t.y : P.y;
542
580
  return {
543
581
  x: Math.min(1, Math.max(0, n)),
544
582
  y: Math.min(1, Math.max(0, r))
545
583
  };
546
584
  }
547
- function R(e, t) {
548
- let n = E(e), r = L(n.position), i = L(n.anchor), a = E(n.offset), o = e ? I(a.x) : P.x, s = e ? I(a.y) : P.y, c = t.safeArea ?? {}, l = F(c.left), u = F(c.right), d = F(c.top), f = F(c.bottom), p = Math.max(0, F(t.viewport.width) - l - u - F(t.element.width)), m = Math.max(0, F(t.viewport.height) - d - f - F(t.element.height));
585
+ function z(e, t) {
586
+ let n = E(e), r = R(n.position), i = R(n.anchor), a = E(n.offset), o = e ? L(a.x) : F.x, s = e ? L(a.y) : F.y, c = t.safeArea ?? {}, l = I(c.left), u = I(c.right), d = I(c.top), f = I(c.bottom), p = Math.max(0, I(t.viewport.width) - l - u - I(t.element.width)), m = Math.max(0, I(t.viewport.height) - d - f - I(t.element.height));
549
587
  return {
550
588
  left: l + r.x * p + o,
551
589
  top: d + r.y * m + s,
@@ -556,7 +594,7 @@ function R(e, t) {
556
594
  transformOrigin: `${i.x * 100}% ${i.y * 100}%`
557
595
  };
558
596
  }
559
- function de(e, t, n = "forward") {
597
+ function he(e, t, n = "forward") {
560
598
  let r = e === "bar" || e === "fill" ? e : "none", i = n === "reverse" ? "reverse" : "forward", a = typeof t == "number" && Number.isFinite(t) && t > 0 ? t : null;
561
599
  return {
562
600
  style: r,
@@ -572,30 +610,29 @@ function de(e, t, n = "forward") {
572
610
  }
573
611
  //#endregion
574
612
  //#region src/ui/icons.ts
575
- var fe = "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M6.4 6.4 17.6 17.6M17.6 6.4 6.4 17.6\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/></svg>", pe = "<svg viewBox=\"0 0 14 14\" aria-hidden=\"true\"><path d=\"M6.66667 0 5.49167 1.175 10.1417 5.83333H0V7.5h10.1417l-4.65 4.6583 1.175 1.175L13.3333 6.66667 6.66667 0Z\" fill=\"currentColor\"/></svg>", me = "<svg viewBox=\"0 0 36 28\" aria-hidden=\"true\"><path d=\"m11.2619 21.3151-8.40108-8.4011L0 15.7546l11.2619 11.262L35.4379 2.84067 32.5972 0 11.2619 21.3151Z\" fill=\"currentColor\"/></svg>", z = "<svg viewBox=\"0 0 35.5556 35.5556\" aria-hidden=\"true\"><path d=\"M19.436 3.05195 11.2286 11.2594c-.5481.5481-.8592 1.3037-.8592 2.0888v14.8c0 1.6297 1.3333 2.963 2.9629 2.963h13.3334c1.1851 0 2.2518-.7111 2.7259-1.7926l4.8296-11.2741c1.2445-2.9333-.9037-6.1925-4.0889-6.1925H21.762l1.4074-6.78523c.1481-.74075-.0741-1.4963-.6074-2.02963-.8741-.85926-2.2667-.85926-3.126.01481ZM4.44343 31.1112c1.62963 0 2.96296-1.3333 2.96296-2.963V16.2964c0-1.6296-1.33333-2.963-2.96296-2.963-1.62963 0-2.96296 1.3334-2.96296 2.963v11.8518c0 1.6297 1.33333 2.963 2.96296 2.963Z\" fill=\"currentColor\"/></svg>", B = "<svg viewBox=\"0 0 35.5556 35.5556\" aria-hidden=\"true\"><path d=\"m16.1165 32.5036 8.1926-8.2074c.5481-.5482.8592-1.3037.8592-2.0889v-14.8c0-1.62963-1.3333-2.96296-2.9629-2.96296H8.88686c-1.18519 0-2.25185.71111-2.71111 1.79259L1.34612 17.511c-1.25926 2.9333.88889 6.1926 4.07407 6.1926h8.37041l-1.4074 6.7852c-.1482.7407.074 1.4963.6074 2.0296.874.8593 2.2666.8593 3.1259-.0148ZM31.1091 4.44434c-1.6296 0-2.963 1.33333-2.963 2.96296v11.8519c0 1.6296 1.3334 2.9629 2.963 2.9629 1.6296 0 2.9629-1.3333 2.9629-2.9629V7.4073c0-1.62963-1.3333-2.96296-2.9629-2.96296Z\" fill=\"currentColor\"/></svg>", he = ".sb-snackbar-root{--sb-text:var(--sb-snackbar-text);--sb-text-muted:var(--sb-theme-content-body);--sb-surface:var(--sb-snackbar-surface);z-index:1100;pointer-events:none;color:var(--sb-snackbar-text);font-family:Inter,-apple-system,BlinkMacSystemFont,system-ui,sans-serif;position:fixed;inset:0}.sb-snackbar-root *,.sb-snackbar-root :before,.sb-snackbar-root :after{box-sizing:border-box}.sb-snackbar-root h2{text-transform:none;letter-spacing:normal}.sb-snackbar-shell{left:var(--sb-snackbar-left);bottom:var(--sb-snackbar-bottom);width:var(--sb-snackbar-width);transition:left .2s ease-in-out,bottom .2s ease-in-out,width .2s ease-in-out;position:absolute}.sb-snackbar-surface{width:100%;height:var(--sb-snackbar-height,64px);border-radius:calc(var(--sb-snackbar-compact-height,64px) / 2);background:var(--sb-snackbar-surface);box-shadow:inset 0 0 0 1px var(--sb-snackbar-border);transition:height .45s cubic-bezier(0,.87,.39,1),border-radius .45s cubic-bezier(0,.87,.39,1);position:relative;overflow:hidden}.sb-snackbar-compact{width:var(--sb-snackbar-compact-width,364px);align-items:center;gap:10px;min-height:64px;padding:10px;transition:opacity .12s ease-out;display:flex;position:relative}.sb-snackbar-artwork{--sb-theme-fab-accent-primary:var(--sb-theme-sheet-progress-fill);--sb-theme-fab-accent-secondary:var(--sb-snackbar-surface);--sb-theme-fab-foreground:var(--sb-snackbar-text);background:var(--sb-theme-sheet-progress-fill);border-radius:50%;flex:0 0 40px;width:40px;height:40px;position:relative;overflow:hidden}.sb-snackbar-artwork img{z-index:2;object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.sb-snackbar-prompt{overflow-wrap:anywhere;flex:1;min-width:0;margin:0;font-size:14px;font-weight:600;line-height:20px;position:relative}.sb-snackbar-answers{flex:none;gap:4px;display:flex;position:relative}.sb-snackbar-answer{width:44px;height:44px;color:var(--sb-snackbar-text);background:var(--sb-snackbar-normal);cursor:pointer;pointer-events:auto;border:0;border-radius:50%;place-items:center;margin:0;padding:0;transition:background .12s ease-out,scale .12s ease-out;display:grid}.sb-snackbar-answer svg{width:18px;height:18px}.sb-snackbar-answer:hover:not(:disabled){background:var(--sb-snackbar-hover)}.sb-snackbar-answer:active:not(:disabled){background:var(--sb-snackbar-pressed);scale:.94}.sb-snackbar-answer[aria-pressed=true]{color:var(--sb-snackbar-on-active);background:var(--sb-snackbar-active)}.sb-snackbar-answer:disabled{cursor:default;pointer-events:none;opacity:1}.sb-snackbar-close{top:-25px;width:44px;height:44px;color:var(--sb-snackbar-text);pointer-events:auto;cursor:pointer;background:0 0;border:0;place-items:center;margin:0;padding:13px;display:grid;position:absolute;inset-inline-start:-15px}.sb-snackbar-close svg{background:var(--sb-snackbar-surface);border-radius:50%;width:18px;height:18px;padding:2px}.sb-snackbar-answer:focus-visible,.sb-snackbar-close:focus-visible{outline:2px solid var(--sb-snackbar-text);outline-offset:2px}.sb-snackbar-timer{pointer-events:none;position:absolute;overflow:hidden}.sb-snackbar-timer--fill{background:var(--sb-snackbar-elapsed);inset:0}.sb-snackbar-timer--bar{inset-inline:1px 3px;background:var(--sb-theme-sheet-progress-track);height:2px;bottom:-6px}.sb-snackbar-timer-fill{transform-origin:0;background:var(--sb-theme-sheet-progress-fill);width:100%;height:100%;display:block}.sb-snackbar-timer--fill .sb-snackbar-timer-fill{background:var(--sb-snackbar-remaining)}.sb-snackbar-root:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .sb-snackbar-timer-fill{transform-origin:100%}.sb-snackbar-root[data-counting=true] .sb-snackbar-timer-fill{animation:sb-snackbar-countdown var(--sb-snackbar-duration) linear forwards}.sb-snackbar-root[data-frozen=true] .sb-snackbar-timer-fill{transform:scaleX(var(--sb-snackbar-fraction));animation:none}.sb-snackbar-overlay{background:var(--sb-theme-sheet-scrim);opacity:0;pointer-events:none;border:0;width:100%;height:100%;margin:0;padding:0;transition:opacity .45s ease-out;position:absolute;inset:0}.sb-snackbar-card{width:var(--sb-snackbar-card-width);max-height:var(--sb-snackbar-max-height);opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;overflow:auto}.sb-snackbar-root .sb-snackbar-card .sb-sheet-root{position:static;inset:auto}.sb-snackbar-root .sb-snackbar-card .sb-sheet-root__overlay{display:none}.sb-snackbar-root .sb-snackbar-card .sb-sheet{width:100%;max-height:none;box-shadow:none;background:0 0;border:0;margin:0;animation:none;position:relative;inset:auto;transform:none}.sb-snackbar-card[inert] *{animation-play-state:paused}.sb-snackbar-root[data-stage=widening] .sb-snackbar-compact,.sb-snackbar-root[data-stage=expanding] .sb-snackbar-compact,.sb-snackbar-root[data-stage=ready] .sb-snackbar-compact{opacity:0}.sb-snackbar-root[data-expanded=true] .sb-snackbar-overlay{opacity:1;pointer-events:auto}.sb-snackbar-root[data-expanded=true] .sb-snackbar-close{display:none}.sb-snackbar-root[data-stage=expanding] .sb-snackbar-surface,.sb-snackbar-root[data-stage=ready] .sb-snackbar-surface{box-shadow:none;background:var(--sb-theme-sheet-background);border-radius:40px}.sb-snackbar-root[data-stage=expanding] .sb-snackbar-card{opacity:1;transition:opacity .3s ease-out .12s}.sb-snackbar-root[data-stage=ready] .sb-snackbar-card{opacity:1;pointer-events:auto}.sb-snackbar-root[data-stage=entering] .sb-snackbar-shell{animation:.89016s cubic-bezier(.649439,.0577174,.124599,1) .18584s both sb-snackbar-enter-scale,.893207s cubic-bezier(.649439,.0577174,.124599,1) 1.076s both sb-snackbar-enter-width}.sb-snackbar-root[data-stage=entering] .sb-snackbar-surface{transition:none}.sb-snackbar-root[data-stage=entering] .sb-snackbar-prompt,.sb-snackbar-root[data-stage=entering] .sb-snackbar-answers,.sb-snackbar-root[data-stage=entering] .sb-snackbar-close{animation:.2s ease-out 1.076s both sb-snackbar-label}.sb-snackbar-root[data-stage=entering] .sb-snackbar-timer{animation:.2s ease-out 1.96921s both sb-snackbar-label}.sb-root--inline .sb-snackbar-root{position:absolute}@keyframes sb-snackbar-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes sb-snackbar-enter-scale{0%{scale:0}to{scale:1}}@keyframes sb-snackbar-enter-width{0%{width:var(--sb-snackbar-compact-height,64px);translate:var(--sb-snackbar-entrance-offset) 0}to{width:var(--sb-snackbar-width);translate:0}}@keyframes sb-snackbar-label{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.sb-snackbar-root[data-counting=true] .sb-snackbar-timer-fill{animation-duration:var(--sb-snackbar-duration)!important}.sb-snackbar-root .sb-snackbar-shell,.sb-snackbar-root .sb-snackbar-surface,.sb-snackbar-root .sb-snackbar-card,.sb-snackbar-root .sb-snackbar-compact,.sb-snackbar-root .sb-snackbar-overlay{transition:none}.sb-snackbar-root[data-stage=entering] .sb-snackbar-shell,.sb-snackbar-root[data-stage=entering] .sb-snackbar-prompt,.sb-snackbar-root[data-stage=entering] .sb-snackbar-timer,.sb-snackbar-root[data-stage=entering] .sb-snackbar-close,.sb-snackbar-root[data-stage=entering] .sb-snackbar-answers{animation:none}}.sb-snackbar-root[data-presentation=bar]{--sb-bar-hidden-y:max(80px, 100%)}.sb-snackbar-root[data-presentation=bar][data-position=top]{--sb-bar-hidden-y:calc(-1 * max(80px, 100%))}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-shell{top:var(--sb-bar-top,0px);transition:left .2s ease-in-out,top .2s ease-in-out,width .2s ease-in-out;bottom:auto}.sb-snackbar-root[data-presentation=bar]:not([data-expanded=true]) .sb-snackbar-surface{box-shadow:none;border-radius:0}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-compact{border-block-start:1px solid var(--sb-snackbar-border);min-height:48px;padding:10px max(108px, env(safe-area-inset-right,0px)) 10px max(108px, env(safe-area-inset-left,0px));pointer-events:auto;justify-content:center}.sb-snackbar-root[data-presentation=bar][data-position=bottom] .sb-snackbar-compact{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-compact{padding-top:calc(10px + env(safe-area-inset-top,0px));border-block-start:0;border-block-end:1px solid var(--sb-snackbar-border)}.sb-bar-content{align-items:center;gap:12px;min-width:0;transition:opacity .25s ease-out;display:flex;position:relative}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-prompt{text-align:center;text-wrap:pretty;flex:0 auto;font-size:14px;font-weight:400;line-height:1.3}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answers{gap:4px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer{border:1px solid var(--sb-snackbar-border);background:var(--sb-snackbar-surface);-webkit-tap-highlight-color:transparent;border-radius:36px;width:36px;height:24px;transition:background .18s,border-color .18s,scale .15s ease-out}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer svg{width:14.4px;height:14.4px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer[aria-pressed=true]{background:var(--sb-snackbar-active);color:var(--sb-snackbar-on-active)}.sb-bar-acknowledgement{opacity:0;visibility:hidden;pointer-events:none;text-align:center;color:var(--sb-snackbar-text);justify-content:center;align-items:center;padding:10px 24px;font-size:18px;font-weight:600;line-height:1.4;transition:opacity .35s cubic-bezier(.16,1,.3,1) .1s,translate .35s cubic-bezier(.16,1,.3,1) .1s;display:flex;position:absolute;inset:0;translate:0 10px}.sb-snackbar-root[data-rated=true] .sb-bar-content,.sb-snackbar-root[data-rated=true] .sb-bar-dismiss,.sb-snackbar-root[data-rated=true][data-presentation=bar] .sb-snackbar-timer{opacity:0;pointer-events:none}.sb-snackbar-root[data-rated=true] .sb-bar-acknowledgement{opacity:1;visibility:visible;translate:0}.sb-bar-acknowledgement-copy{overflow-wrap:anywhere;min-width:0;max-width:100%}.sb-snackbar-root[data-presentation=bar][data-rated=true] .sb-snackbar-compact{min-height:var(--sb-snackbar-height,48px)}.sb-bar-dismiss{inset-inline-end:20px;width:68px;height:44px;color:var(--sb-theme-content-body);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:0;margin:0;padding:0 5px;font-size:14px;line-height:1.3;transition:opacity .25s ease-out;position:absolute;top:50%;translate:0 -50%}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:hover:not(:disabled){background:var(--sb-snackbar-surface)}@media (hover:hover){.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:hover:not(:disabled){background:var(--sb-snackbar-hover);border-color:var(--sb-theme-input-border)}}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:not(:disabled):active{background:var(--sb-snackbar-pressed);scale:.96}.sb-bar-dismiss:focus-visible{outline:2px solid var(--sb-snackbar-text);outline-offset:2px}.sb-bar-dismiss:disabled{cursor:default}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer{transition:opacity .25s ease-out}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer--bar{inset-inline:auto 25px;background:var(--sb-snackbar-border);width:58px;height:1px;top:calc(50% + 8px);bottom:auto}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer--bar .sb-snackbar-timer-fill{background:var(--sb-theme-content-body)}.sb-snackbar-root[data-presentation=bar][data-paused=true] .sb-snackbar-timer-fill{animation-play-state:paused}.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-shell{animation:.45s cubic-bezier(.16,1,.3,1) .4s both sb-bar-enter}.sb-snackbar-root[data-presentation=bar][data-exiting=true] .sb-snackbar-shell{pointer-events:none;animation:.4s cubic-bezier(.55,0,.55,.2) both sb-bar-exit}.sb-snackbar-root[data-presentation=bar][data-exiting=true] .sb-snackbar-overlay{opacity:0;pointer-events:none}.sb-snackbar-root[data-presentation=bar][data-exiting=true][data-expanded=true] .sb-snackbar-shell{animation:.4s ease-out both sb-bar-card-exit}.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-prompt,.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-answers,.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-timer{animation:none}@keyframes sb-bar-enter{0%{translate:0 var(--sb-bar-hidden-y)}to{translate:0}}@keyframes sb-bar-exit{0%{translate:0}to{translate:0 var(--sb-bar-hidden-y)}}@keyframes sb-bar-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sb-bar-fade-out{0%{opacity:1}to{opacity:0}}@keyframes sb-bar-card-exit{0%{opacity:1;translate:0}to{opacity:0;translate:0 12px}}@media (width<=768px){.sb-snackbar-root[data-presentation=bar] .sb-snackbar-compact{padding-inline:max(24px, env(safe-area-inset-left,0px)) max(24px, env(safe-area-inset-right,0px))}.sb-bar-content{width:100%}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-prompt{text-align:start;flex:1}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answers{gap:5.333px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer{border-radius:48px;width:48px;height:32px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer svg{width:19.2px;height:19.2px}.sb-bar-acknowledgement{text-align:start;justify-content:flex-start}.sb-snackbar-root[data-presentation=bar][data-timed=true] .sb-bar-dismiss{display:none}.sb-snackbar-root[data-presentation=bar][data-timed=false] .sb-bar-content{padding-inline-end:76px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer--bar{inset-inline:0;width:auto;top:0}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-timer--bar{top:auto;bottom:0}}.sb-root--inline .sb-snackbar-root[data-presentation=bar] .sb-snackbar-compact{padding-block:10px}@media (prefers-reduced-motion:reduce){.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-shell{animation:.15s ease-out both sb-bar-fade-in}.sb-snackbar-root[data-presentation=bar][data-exiting=true] .sb-snackbar-shell,.sb-snackbar-root[data-presentation=bar][data-exiting=true][data-expanded=true] .sb-snackbar-shell{animation:.15s ease-out both sb-bar-fade-out}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-shell{transition:none}.sb-bar-acknowledgement{transition:opacity .15s ease-out;translate:none}.sb-bar-content,.sb-bar-dismiss{transition:opacity .15s ease-out}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:not(:disabled):active{scale:1}}.sb-sheet__close:before{content:\"\";background:currentColor;width:24px;height:24px;display:block;-webkit-mask:url(\"data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='close'%3e%3cpath%20id='Vector'%20d='M12%2013.4L7.1%2018.3C6.91667%2018.4833%206.68333%2018.575%206.4%2018.575C6.11667%2018.575%205.88333%2018.4833%205.7%2018.3C5.51667%2018.1167%205.425%2017.8833%205.425%2017.6C5.425%2017.3167%205.51667%2017.0833%205.7%2016.9L10.6%2012L5.7%207.1C5.51667%206.91667%205.425%206.68333%205.425%206.4C5.425%206.11667%205.51667%205.88333%205.7%205.7C5.88333%205.51667%206.11667%205.425%206.4%205.425C6.68333%205.425%206.91667%205.51667%207.1%205.7L12%2010.6L16.9%205.7C17.0833%205.51667%2017.3167%205.425%2017.6%205.425C17.8833%205.425%2018.1167%205.51667%2018.3%205.7C18.4833%205.88333%2018.575%206.11667%2018.575%206.4C18.575%206.68333%2018.4833%206.91667%2018.3%207.1L13.4%2012L18.3%2016.9C18.4833%2017.0833%2018.575%2017.3167%2018.575%2017.6C18.575%2017.8833%2018.4833%2018.1167%2018.3%2018.3C18.1167%2018.4833%2017.8833%2018.575%2017.6%2018.575C17.3167%2018.575%2017.0833%2018.4833%2016.9%2018.3L12%2013.4Z'%20fill='%23E8E8E8'/%3e%3c/g%3e%3c/svg%3e\") 50%/24px 24px no-repeat;mask:url(\"data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='close'%3e%3cpath%20id='Vector'%20d='M12%2013.4L7.1%2018.3C6.91667%2018.4833%206.68333%2018.575%206.4%2018.575C6.11667%2018.575%205.88333%2018.4833%205.7%2018.3C5.51667%2018.1167%205.425%2017.8833%205.425%2017.6C5.425%2017.3167%205.51667%2017.0833%205.7%2016.9L10.6%2012L5.7%207.1C5.51667%206.91667%205.425%206.68333%205.425%206.4C5.425%206.11667%205.51667%205.88333%205.7%205.7C5.88333%205.51667%206.11667%205.425%206.4%205.425C6.68333%205.425%206.91667%205.51667%207.1%205.7L12%2010.6L16.9%205.7C17.0833%205.51667%2017.3167%205.425%2017.6%205.425C17.8833%205.425%2018.1167%205.51667%2018.3%205.7C18.4833%205.88333%2018.575%206.11667%2018.575%206.4C18.575%206.68333%2018.4833%206.91667%2018.3%207.1L13.4%2012L18.3%2016.9C18.4833%2017.0833%2018.575%2017.3167%2018.575%2017.6C18.575%2017.8833%2018.4833%2018.1167%2018.3%2018.3C18.1167%2018.4833%2017.8833%2018.575%2017.6%2018.575C17.3167%2018.575%2017.0833%2018.4833%2016.9%2018.3L12%2013.4Z'%20fill='%23E8E8E8'/%3e%3c/g%3e%3c/svg%3e\") 50%/24px 24px no-repeat}:host{--sb-surface:var(--sb-theme-sheet-background,#fff);--sb-surface-muted:var(--sb-theme-button-secondary-background,#f2f2f2);--sb-border:var(--sb-theme-input-border,#0808081f);--sb-border-strong:#0808083d;--sb-border-active:var(--sb-theme-input-focused-border,#080808b3);--sb-text:var(--sb-theme-content-heading,#080808);--sb-text-muted:var(--sb-theme-content-body,#5c5c5c);--sb-overlay:var(--sb-theme-sheet-scrim,#00000061);--sb-ease:cubic-bezier(.2, .9, .2, 1);--sb-fab-motion-ease:cubic-bezier(.649439, .0577174, .124599, 1);--sb-sheet-motion-ease:cubic-bezier(0, .87, .39, 1);font-family:-apple-system,BlinkMacSystemFont,system-ui,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.sb-safe-area-probe{visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);position:fixed;inset:0}.sb-fab{right:16px;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:1000;box-sizing:border-box;border:1px solid var(--sb-theme-fab-border,#080808);background:var(--sb-theme-fab-background,#080808);min-width:0;height:60px;color:var(--sb-theme-fab-foreground,#fff);border-color:var(--sb-theme-fab-border,#080808);cursor:pointer;will-change:transform;align-items:center;transition:scale .12s ease-out;display:inline-flex;position:fixed;overflow:hidden}.sb-fab--entering{animation:sb-fab-enter-scale .89016s var(--sb-fab-motion-ease) .259705s both, sb-fab-enter-width .893207s var(--sb-fab-motion-ease) 1.076s both;transform-origin:50%!important}.sb-fab--entering .sb-fab__label{animation:sb-fab-label-in .2s var(--sb-fab-motion-ease) 1.14987s both}.sb-fab--entering .sb-fab__timer{animation:sb-fab-timer-in .2s var(--sb-fab-motion-ease) 1.96921s both}.sb-fab--entering .sb-fab__timer-fill{animation-delay:1.96921s}.sb-fab--exiting{width:var(--sb-fab-exit-width,var(--sb-fab-expanded-width));pointer-events:none;scale:var(--sb-fab-exit-scale,1);translate:var(--sb-fab-exit-offset,0) 0;animation:.292089s cubic-bezier(.677885,.170122,.695982,.997824) .3s forwards sb-fab-exit-width,.390467s cubic-bezier(.362165,.0946429,.49708,.932961) .466372s forwards sb-fab-exit-scale;transform:none;transform-origin:50%!important}.sb-fab--exiting .sb-fab__label{opacity:var(--sb-fab-exit-label-opacity,1);animation:.389727s cubic-bezier(.5,0,.5,1) .3s forwards sb-fab-label-out}.sb-fab--exiting .sb-fab__timer{opacity:var(--sb-fab-exit-timer-opacity,0)}.sb-fab--exiting .sb-fab__badge{animation:.297243s cubic-bezier(.5,0,1,.600461) .398177s forwards sb-fab-badge-out}.sb-next:hover,.sb-next:focus-visible,.sb-button:hover,.sb-button:focus-visible,.sb-choice:hover,.sb-choice:focus-visible{transform:translateY(-1px)}.sb-fab:active{transition-duration:80ms;scale:.97}.sb-fab:focus-visible,.sb-next:focus-visible,.sb-button:focus-visible,.sb-choice:focus-visible,.sb-sheet__close:focus-visible,.sb-sentiment:focus-visible,.sb-sheet-root__overlay:focus-visible{outline-offset:2px;outline:2px solid #6366f1a6}.sb-sheet h2[tabindex=\"-1\"]:focus{outline:none}.sb-fab--expanded{width:var(--sb-fab-expanded-width,auto);border-radius:999px;justify-content:flex-start;gap:12px;min-height:60px;padding:13px 28px 13px 14px}.sb-fab__label{z-index:1;width:var(--sb-fab-label-width,auto);color:currentColor;text-align:left;white-space:nowrap;text-overflow:clip;min-width:0;font-size:14px;font-weight:600;line-height:1;position:relative;overflow:hidden}.sb-fab__badge{z-index:1;background:var(--sb-theme-fab-accent-primary,#f97316);border-radius:50%;flex:none;place-items:center;width:32px;height:32px;display:grid;position:relative}.sb-fab__badge-artwork{background:var(--sb-theme-fab-accent-secondary,#2563eb);border-radius:50%;display:block;position:absolute;inset:5.44px}.sb-fab__badge-image{z-index:2;border-radius:inherit;object-fit:cover;width:100%;height:100%;display:block;position:absolute;inset:0}.sb-fab__badge-glyph-center,.sb-fab__badge-glyph-amber,.sb-fab__badge-glyph-mint,.sb-fab__badge-glyph-rose{border-radius:999px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.sb-fab__badge-glyph-center{background:var(--sb-theme-fab-foreground,#fff);border-radius:3.52px;width:4.16px;height:11.52px}.sb-fab__badge-glyph-amber{background:#fac143;width:2.88px;height:6.72px;translate:-3.04px .8px}.sb-fab__badge-glyph-mint{background:#39c690;width:2.88px;height:5.44px;translate:3.04px -.32px}.sb-fab__badge-glyph-rose{background:#e86398;width:2.56px;height:4.16px;translate:.96px 3.68px}.sb-fab__timer{z-index:0;pointer-events:none;position:absolute;overflow:hidden}.sb-fab__timer--bar{background:var(--sb-theme-fab-timer-track,#08080829);border-radius:999px;height:2px;bottom:4px;left:59px;right:29px}.sb-fab[data-timer-direction=rtl] .sb-fab__timer--bar{left:29px;right:59px}.sb-fab__timer--fill{border-radius:inherit;background:var(--sb-theme-fab-timer-track,#08080829);inset:0}.sb-fab__timer-fill{border-radius:inherit;background:var(--sb-theme-fab-timer-fill,#080808e6);width:100%;height:100%;transform-origin:var(--sb-fab-timer-origin,left);animation:sb-fab-timer-bar var(--sb-timer-duration) linear forwards;display:block}.sb-sheet-root{z-index:1100;position:fixed;inset:0}.sb-sheet-root__overlay{background:var(--sb-overlay);cursor:pointer;border:none;animation:.2s ease-in both sb-overlay-in;position:absolute;inset:0}.sb-sheet-root--exiting{pointer-events:none}.sb-sheet-root--exiting .sb-sheet-root__overlay{animation:.2s ease-in forwards sb-overlay-out}.sb-sheet{width:min(100%,100vw);min-height:418px;padding:24px 20px calc(18px + env(safe-area-inset-bottom,0px));box-sizing:border-box;background:var(--sb-surface);box-shadow:var(--sb-shadow);color:var(--sb-text);animation:sb-sheet-in-mobile .45s var(--sb-sheet-motion-ease) both;border-radius:40px 40px 0 0;position:absolute;bottom:0;left:0;right:0}.sb-sheet--thanks{min-height:381px;padding-top:18px}.sb-sheet__header{justify-content:flex-end;align-items:flex-start;min-height:28px;margin-bottom:22px;display:flex;position:relative}.sb-progress{background:var(--sb-theme-sheet-progress-track,#eaeaea);border-radius:999px;width:219px;max-width:calc(100% - 96px);height:6px;position:absolute;top:5px;left:50%;overflow:hidden;transform:translate(-50%)}.sb-progress__fill{border-radius:inherit;background:var(--sb-theme-sheet-progress-fill,#080808);height:100%;transition:width .22s var(--sb-ease);display:block}.sb-sheet__close{background:var(--sb-theme-sheet-close-button-background,transparent);width:20px;height:20px;color:var(--sb-theme-sheet-close-button-foreground,var(--sb-text));cursor:pointer;border:none;padding:0}.sb-sheet__close svg,.sb-next svg,.sb-thanks__icon-core svg{width:100%;height:100%;display:block}.sb-sheet__body{gap:26px;display:grid}.sb-sheet__copy{justify-items:center;gap:8px;display:grid}.sb-sheet__eyebrow{color:var(--sb-theme-content-helper,var(--sb-text-muted));text-align:center;margin:0;font-size:16px;font-weight:400;line-height:1.4}.sb-sheet__body h2,.sb-thanks__copy h2{color:var(--sb-theme-content-heading,var(--sb-text));text-align:center;margin:0;font-size:22px;font-weight:600;line-height:1.2}.sb-sheet__body h2{justify-self:center;width:min(297px,100%)}.sb-choice--selected,.sb-choice:hover,.sb-textarea-shell:focus-within{border-color:var(--sb-theme-choice-hover-border,var(--sb-border-active))}.sb-choice:hover{background:var(--sb-theme-choice-hover-background,var(--sb-surface));color:var(--sb-theme-choice-hover-foreground,var(--sb-text))}.sb-choice:active{border-color:var(--sb-theme-choice-pressed-border,var(--sb-border-active));background:var(--sb-theme-choice-pressed-background,var(--sb-surface-muted));color:var(--sb-theme-choice-pressed-foreground,var(--sb-text))}.sb-choice--selected{box-shadow:0 0 0 3px #0808080d}.sb-choice:disabled{border-color:var(--sb-theme-choice-disabled-border,#e2e2e2);background:var(--sb-theme-choice-disabled-background,#f2f2f2);color:var(--sb-theme-choice-disabled-foreground,#5c5c5c);cursor:not-allowed}.sb-question--choices{grid-template-columns:repeat(2,160px);justify-content:center;justify-self:center;gap:9px;width:min(330px,100%)}.sb-choice{border:1px solid var(--sb-theme-choice-default-border,#e2e2e2);background:var(--sb-theme-choice-default-background,var(--sb-surface));width:160px;height:51px;color:var(--sb-theme-choice-default-foreground,var(--sb-text));text-align:center;white-space:nowrap;cursor:pointer;transition:transform .2s var(--sb-ease), border-color .18s ease, box-shadow .18s ease, background-color .18s ease;border-radius:999px;justify-content:center;align-items:center;padding:0 16px;font-size:16px;font-weight:700;line-height:1.2;display:flex}.sb-choice__label{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.sb-choice--other{border-color:var(--sb-theme-choice-default-border,#e2e2e2);padding:0;font-weight:400}.sb-choice__other-content{align-items:center;gap:0;display:inline-flex}.sb-choice__other-caret{background:var(--sb-theme-input-foreground,var(--sb-text));flex:none;width:1px;height:22px}.sb-choice__other-label{color:var(--sb-theme-input-placeholder,#08080866);line-height:1.2}.sb-choice--selected{border-color:var(--sb-theme-choice-selected-border,var(--sb-text));background:var(--sb-theme-choice-selected-background,var(--sb-text));color:var(--sb-theme-choice-selected-foreground,var(--sb-surface))}.sb-question--text{justify-self:center;width:min(330px,100%)}.sb-textarea-shell{border:1px solid var(--sb-theme-input-border,#08080833);background:var(--sb-theme-input-background,var(--sb-surface));border-radius:16px;width:100%;min-height:155px;transition:border-color .18s,box-shadow .18s}.sb-textarea{resize:none;width:100%;min-height:155px;color:var(--sb-theme-input-foreground,var(--sb-text));font:inherit;box-sizing:border-box;background:0 0;border:none;outline:none;padding:16px 22px;font-size:16px;line-height:1.2}.sb-textarea::placeholder{color:var(--sb-theme-input-placeholder,#08080866)}.sb-textarea-shell:focus-within{border-color:var(--sb-theme-input-focused-border,var(--sb-border-active))}.sb-textarea:disabled{color:var(--sb-theme-input-disabled-foreground,var(--sb-text-muted))}.sb-textarea-shell:has(.sb-textarea:disabled){background:var(--sb-theme-input-disabled-background,var(--sb-surface-muted))}.sb-sheet__footer{min-height:84px;margin:0 -20px calc(-18px - env(safe-area-inset-bottom,0px));padding:18px 20px calc(18px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--sb-theme-sheet-divider,#e2e2e2);box-sizing:border-box;justify-content:flex-end;align-items:center;gap:16px;display:flex}.sb-next,.sb-button{cursor:pointer;min-height:48px;font:inherit;transition:transform .2s var(--sb-ease), opacity .18s ease, box-shadow .18s ease;border:none;border-radius:999px}.sb-next{background:var(--sb-theme-button-primary-background,#080808);width:101px;color:var(--sb-theme-button-primary-foreground,#fff);place-items:center;padding:0;display:grid}.sb-next--acknowledging svg{animation:.36s cubic-bezier(.2,.8,.2,1) both sb-next-acknowledgement}.sb-next:disabled,.sb-button:disabled{cursor:not-allowed;box-shadow:none;transform:none}.sb-next:disabled{background:var(--sb-theme-button-primary-disabled-background,#080808);color:var(--sb-theme-button-primary-disabled-foreground,#fff)}.sb-thanks{justify-items:center;gap:23px;padding-top:12px;display:grid}.sb-thanks__icon-shell{background:var(--sb-theme-completion-outer-background,#f0f0f0);border-radius:999px;place-items:center;width:120px;height:120px;display:grid}.sb-thanks__icon-core{background:var(--sb-theme-completion-inner-background,#080808);width:66px;height:66px;color:var(--sb-theme-completion-glyph,#fff);border-radius:999px;place-items:center;display:grid}.sb-thanks__copy{gap:8px;max-width:313px;display:grid}.sb-thanks__copy h2{letter-spacing:-.03em;font-size:30px;line-height:1.1}.sb-thanks__copy p{color:var(--sb-theme-content-body,var(--sb-text-muted));text-align:center;margin:0;font-size:14px;line-height:1.3}.sb-thanks__actions{gap:10px;width:100%;display:flex}.sb-button{flex:1 1 0;padding:16px;font-size:14px;font-weight:600;line-height:1}.sb-button--primary{background:var(--sb-theme-button-primary-background,#080808);color:var(--sb-theme-button-primary-foreground,#fff)}.sb-button--secondary{background:var(--sb-theme-button-secondary-background,#f2f2f2);color:var(--sb-theme-button-secondary-foreground,var(--sb-text))}.sb-button--tertiary{background:var(--sb-theme-button-tertiary-background,transparent);color:var(--sb-theme-button-tertiary-foreground,var(--sb-text))}.sb-button--primary:hover,.sb-button--primary:focus-visible{background:var(--sb-theme-button-primary-hover-background,#080808)}.sb-button--secondary:hover,.sb-button--secondary:focus-visible{background:var(--sb-theme-button-secondary-hover-background,#f2f2f2)}.sb-button--tertiary:hover,.sb-button--tertiary:focus-visible{background:var(--sb-theme-button-tertiary-hover-background,#f2f2f2)}.sb-button--primary:active{background:var(--sb-theme-button-primary-pressed-background,#080808)}.sb-button--secondary:active{background:var(--sb-theme-button-secondary-pressed-background,#e2e2e2)}.sb-button--tertiary:active{background:var(--sb-theme-button-tertiary-pressed-background,#e2e2e2)}.sb-button--primary:disabled{background:var(--sb-theme-button-primary-disabled-background,#080808);color:var(--sb-theme-button-primary-disabled-foreground,#fff)}.sb-button--secondary:disabled{background:var(--sb-theme-button-secondary-disabled-background,#f2f2f2);color:var(--sb-theme-button-secondary-disabled-foreground,var(--sb-text))}.sb-button--tertiary:disabled{background:var(--sb-theme-button-tertiary-disabled-background,#f2f2f2);color:var(--sb-theme-button-tertiary-disabled-foreground,var(--sb-text))}@media (width>=768px){.sb-fab{bottom:24px;right:24px}}.sb-sheet-root__overlay{padding:0}.sb-sheet{top:auto;right:auto;bottom:calc(8px + env(safe-area-inset-bottom,0px));width:min(376px,100% - 24px);min-height:0;max-height:calc(100% - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));box-shadow:none;animation:sb-card-in .45s var(--sb-sheet-motion-ease) both;interpolate-size:allow-keywords;border-radius:40px;padding:0;transition:height .45s cubic-bezier(0,.83,.363,.994);position:absolute;left:50%;overflow:hidden;transform:translate(-50%)}.sb-sheet-root--exiting .sb-sheet{animation:.45s ease-in forwards sb-card-out}.sb-sheet--thanks{min-height:0;padding:22px 20px}.sb-sheet__header{height:50px;min-height:0;margin:0;display:block;position:relative}.sb-progress{width:216px;max-width:calc(100% - 96px);height:6px;top:27px}.sb-progress__fill{transition:width .45s var(--sb-sheet-motion-ease)}.sb-sheet__close{box-sizing:border-box;border-radius:1000px;width:40px;height:40px;padding:8px;position:absolute;top:10px;right:16px}.sb-sheet__body{display:block}.sb-step{animation:.25s ease-in-out both sb-step-in}.sb-sheet__copy{box-sizing:border-box;align-content:center;justify-items:center;gap:0;height:88px;padding:0 23px;display:grid}.sb-sheet__body h2{text-align:center;text-wrap:balance;width:100%;margin:0;font-size:19px;font-weight:600;line-height:1.22}.sb-sheet__body--sentiment{padding:12px 24px 22px}.sb-sheet__body--sentiment .sb-sheet__copy{gap:8px;height:auto;min-height:84px;padding:0}.sb-sheet__body--sentiment .sb-sheet__eyebrow{color:var(--sb-theme-content-helper,var(--sb-text-muted));text-align:center;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:16px;font-weight:400;line-height:1.2;display:-webkit-box;overflow:hidden}.sb-sheet__body--sentiment h2{-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:22px;font-weight:600;line-height:1.2;display:-webkit-box;overflow:hidden}.sb-sheet__body--sentiment h2.sb-sheet__acknowledgement{align-content:center;min-height:70px;font-size:29px;line-height:1.08;animation:.28s cubic-bezier(.2,.8,.2,1) both sb-acknowledgement-in}.sb-question{justify-items:stretch;display:grid}.sb-question--sentiment{grid-template-columns:repeat(2,80px);justify-content:center;gap:25px;width:185px;margin:37px auto 31px;position:relative}.sb-sheet__body--sentiment:has(.sb-sheet__acknowledgement) .sb-question--sentiment{margin-top:35px}.sb-sentiment{z-index:0;border:1.111px solid var(--sb-theme-choice-default-border,#e2e2e2);background:var(--sb-theme-choice-default-background,var(--sb-surface));width:80px;height:80px;color:var(--sb-theme-choice-default-foreground,var(--sb-text));cursor:pointer;border-radius:50%;place-items:center;padding:0;transition:transform .12s ease-out,border-color .18s,background-color .18s;display:grid;position:relative}.sb-sentiment__icon{z-index:1;width:35.5556px;height:35.5556px}.sb-sentiment__icon svg{width:100%;height:100%;display:block}.sb-sentiment:hover{border-color:var(--sb-theme-choice-hover-border,var(--sb-border-active));background:var(--sb-theme-choice-hover-background,var(--sb-surface));color:var(--sb-theme-choice-hover-foreground,var(--sb-text))}.sb-sentiment:active{border-color:var(--sb-theme-choice-pressed-border,var(--sb-border-active));background:var(--sb-theme-choice-pressed-background,var(--sb-surface-muted));color:var(--sb-theme-choice-pressed-foreground,var(--sb-text));transform:scale(.97)}.sb-sentiment--selected,.sb-sentiment--selected:disabled{border-color:var(--sb-theme-choice-selected-border,var(--sb-text));background:var(--sb-theme-choice-selected-background,var(--sb-text));color:var(--sb-theme-choice-selected-foreground,var(--sb-surface))}.sb-sentiment:disabled:not(.sb-sentiment--selected){border-color:var(--sb-theme-choice-disabled-border,#e2e2e2);background:var(--sb-theme-choice-disabled-background,#f2f2f2);color:var(--sb-theme-choice-disabled-foreground,#5c5c5c)}.sb-sentiment:disabled{cursor:default}.sb-spark-ring{z-index:-1;pointer-events:none;animation:.22s cubic-bezier(.25,.46,.45,.94) both sb-spark-ring-in;position:absolute;inset:-26px}.sb-spark-ring__spark{--sb-spark-angle:calc(var(--sb-spark-index) * 30deg);width:7px;height:7px;transform:translate(-50%, -50%) rotate(var(--sb-spark-angle)) translateY(-54px);background:#dedede;border-radius:50%;position:absolute;top:50%;left:50%}.sb-spark-ring__spark:nth-child(2n){width:12px;height:12px;transform:translate(-50%, -50%) rotate(var(--sb-spark-angle)) translateY(-59px)}.sb-question--choices,.sb-question--text{justify-self:stretch;width:auto;margin:0 24px}.sb-question--choices{scrollbar-gutter:stable;align-content:start;gap:8px;max-height:320.5px;overflow:hidden auto}.sb-question--choices-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sb-question--choices-single{grid-template-columns:minmax(0,1fr)}.sb-question--choices-scrolling{padding-bottom:20px}.sb-choice{white-space:normal;overflow-wrap:anywhere;width:100%;min-width:0;height:51px;padding:0 8px}.sb-question--choices-single .sb-choice{text-align:left;border-radius:16px;justify-content:flex-start;height:auto;min-height:51px;padding:16px 22px}.sb-choice--other{color:var(--sb-theme-input-placeholder,#08080866);gap:0;font-weight:400}.sb-choice--other:before{background:var(--sb-theme-input-foreground,var(--sb-text));flex:0 0 1px;width:1px;height:22px;position:static;transform:none}.sb-question--text{padding-top:10px}.sb-question--other{animation:.25s ease-in-out both sb-step-in}.sb-textarea-shell,.sb-textarea{height:155px;min-height:155px}.sb-textarea{padding:17px 22px;font-size:16px;font-weight:400;line-height:1.2}.sb-sheet__body--question{padding-bottom:16px}.sb-sheet__footer{border-top:1px solid var(--sb-theme-sheet-divider,#e2e2e2);justify-content:flex-end;align-items:center;gap:16px;min-height:84px;margin:0;padding:16px 20px 20px;display:flex}.sb-sheet__footer-comment{color:var(--sb-theme-content-helper,var(--sb-text-muted));text-align:left;-webkit-line-clamp:2;-webkit-box-orient:vertical;flex:auto;margin:0;font-size:16px;font-weight:600;line-height:1.2;animation:.18s ease-out both sb-footer-comment-in,.18s ease-in 1s forwards sb-footer-comment-out;display:-webkit-box;overflow:hidden}.sb-next{flex:0 0 101px;height:48px}.sb-next svg{width:20px;height:20px;transform:none}.sb-sheet--completing .sb-progress__fill{transition-duration:.5s}.sb-thanks{gap:23px;padding:0;animation:.3s ease-in-out .89s both sb-completion-in}.sb-thanks__icon-shell{animation:sb-completion-icon-in .72s var(--sb-sheet-motion-ease) .35s both}.sb-thanks__icon-core svg{width:35.44px;height:27.02px}.sb-thanks__copy{width:100%;max-width:330px}.sb-thanks__copy h2{letter-spacing:-.6px;font-weight:600}.sb-thanks__copy p{max-width:292px;margin-inline:auto;line-height:1.5}.sb-thanks__actions{gap:10px}.sb-choice-measure{white-space:nowrap;visibility:hidden;width:max-content;padding:0 8px;font-size:16px;font-weight:700;position:fixed;top:-10000px;left:-10000px}.sb-choice-measure--other{padding-left:9px;padding-right:8px;font-weight:400}@keyframes sb-fab-enter-scale{0%{scale:0}to{scale:1}}@keyframes sb-fab-enter-width{0%{width:60px;translate:var(--sb-fab-anchor-offset) 0}to{width:var(--sb-fab-expanded-width);translate:0}}@keyframes sb-fab-label-in{0%{opacity:0}to{opacity:1}}@keyframes sb-fab-timer-in{0%{opacity:0}to{opacity:1}}@keyframes sb-fab-exit-width{0%{width:var(--sb-fab-exit-width,var(--sb-fab-expanded-width));translate:var(--sb-fab-exit-offset,0) 0}to{width:60px;translate:var(--sb-fab-anchor-offset) 0}}@keyframes sb-fab-label-out{0%{opacity:var(--sb-fab-exit-label-opacity,1)}to{opacity:0}}@keyframes sb-fab-badge-out{0%{scale:1}to{scale:0}}@keyframes sb-fab-exit-scale{0%{scale:var(--sb-fab-exit-scale,1)}to{scale:0}}@keyframes sb-sheet-in-mobile{0%{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}@keyframes sb-sheet-in-desktop{0%{opacity:0;transform:translate(-50%,calc(28px - 50%))}to{opacity:1;transform:translate(-50%,-50%)}}@keyframes sb-sheet-out-mobile{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@keyframes sb-sheet-out-desktop{0%{opacity:1;transform:translate(-50%,-50%)}to{opacity:0;transform:translate(-50%,100vh)}}@keyframes sb-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes sb-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes sb-fab-timer-bar{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes sb-card-in{0%{opacity:0;transform:translate(-50%,28px)}to{opacity:1;transform:translate(-50%)}}@keyframes sb-card-out{0%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%,calc(100% + 8px))}}@keyframes sb-step-in{0%{opacity:0}to{opacity:1}}@keyframes sb-acknowledgement-in{0%{opacity:0;transform:scale(1.12)}to{opacity:1;transform:scale(1)}}@keyframes sb-next-acknowledgement{0%,to{rotate:0deg;scale:1}39%{rotate:-14deg;scale:1.18}}@keyframes sb-spark-ring-in{0%{opacity:0;transform:scale(.55)}to{opacity:1;transform:scale(1)}}@keyframes sb-footer-comment-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes sb-footer-comment-out{0%{opacity:1}to{opacity:0}}@keyframes sb-completion-icon-in{0%{opacity:0;transform:translateY(46px)scale(.72)}58%{opacity:1;transform:translateY(46px)scale(1.82)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes sb-completion-in{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.sb-fab--entering,.sb-fab--entering .sb-fab__label,.sb-fab--entering .sb-fab__timer,.sb-fab--exiting,.sb-fab--exiting .sb-fab__label,.sb-fab--exiting .sb-fab__badge,.sb-sheet,.sb-step,.sb-spark-ring,.sb-sheet__acknowledgement,.sb-sheet__footer-comment,.sb-thanks,.sb-thanks__icon-shell,.sb-sheet-root__overlay,.sb-sheet-root--exiting .sb-sheet,.sb-sheet-root--exiting .sb-sheet-root__overlay{animation-duration:.001ms;animation-delay:0s}.sb-fab--entering .sb-fab__timer-fill{animation-delay:0s}.sb-sheet__footer-comment{animation:none}}";
613
+ var ge = "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M6.4 6.4 17.6 17.6M17.6 6.4 6.4 17.6\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/></svg>", _e = "<svg viewBox=\"0 0 14 14\" aria-hidden=\"true\"><path d=\"M6.66667 0 5.49167 1.175 10.1417 5.83333H0V7.5h10.1417l-4.65 4.6583 1.175 1.175L13.3333 6.66667 6.66667 0Z\" fill=\"currentColor\"/></svg>", ve = "<svg viewBox=\"0 0 36 28\" aria-hidden=\"true\"><path d=\"m11.2619 21.3151-8.40108-8.4011L0 15.7546l11.2619 11.262L35.4379 2.84067 32.5972 0 11.2619 21.3151Z\" fill=\"currentColor\"/></svg>", B = "<svg viewBox=\"0 0 35.5556 35.5556\" aria-hidden=\"true\"><path d=\"M19.436 3.05195 11.2286 11.2594c-.5481.5481-.8592 1.3037-.8592 2.0888v14.8c0 1.6297 1.3333 2.963 2.9629 2.963h13.3334c1.1851 0 2.2518-.7111 2.7259-1.7926l4.8296-11.2741c1.2445-2.9333-.9037-6.1925-4.0889-6.1925H21.762l1.4074-6.78523c.1481-.74075-.0741-1.4963-.6074-2.02963-.8741-.85926-2.2667-.85926-3.126.01481ZM4.44343 31.1112c1.62963 0 2.96296-1.3333 2.96296-2.963V16.2964c0-1.6296-1.33333-2.963-2.96296-2.963-1.62963 0-2.96296 1.3334-2.96296 2.963v11.8518c0 1.6297 1.33333 2.963 2.96296 2.963Z\" fill=\"currentColor\"/></svg>", V = "<svg viewBox=\"0 0 35.5556 35.5556\" aria-hidden=\"true\"><path d=\"m16.1165 32.5036 8.1926-8.2074c.5481-.5482.8592-1.3037.8592-2.0889v-14.8c0-1.62963-1.3333-2.96296-2.9629-2.96296H8.88686c-1.18519 0-2.25185.71111-2.71111 1.79259L1.34612 17.511c-1.25926 2.9333.88889 6.1926 4.07407 6.1926h8.37041l-1.4074 6.7852c-.1482.7407.074 1.4963.6074 2.0296.874.8593 2.2666.8593 3.1259-.0148ZM31.1091 4.44434c-1.6296 0-2.963 1.33333-2.963 2.96296v11.8519c0 1.6296 1.3334 2.9629 2.963 2.9629 1.6296 0 2.9629-1.3333 2.9629-2.9629V7.4073c0-1.62963-1.3333-2.96296-2.9629-2.96296Z\" fill=\"currentColor\"/></svg>", ye = ".sb-root{letter-spacing:normal;word-spacing:normal;text-align:start;text-indent:0;text-shadow:none;text-transform:none;white-space:normal;font-family:-apple-system,BlinkMacSystemFont,system-ui,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal}.sb-root *,.sb-root ::placeholder{font-style:inherit;letter-spacing:inherit;word-spacing:inherit;text-align:inherit;text-indent:inherit;text-shadow:inherit;text-transform:inherit;white-space:inherit;text-decoration:none}.sb-root :where(button){text-align:center}.sb-root :where(textarea){text-align:start;white-space:pre-wrap}.sb-snackbar-root{--sb-text:var(--sb-snackbar-text);--sb-text-muted:var(--sb-theme-content-body);--sb-surface:var(--sb-snackbar-surface);z-index:1100;pointer-events:none;color:var(--sb-snackbar-text);font-family:Inter,-apple-system,BlinkMacSystemFont,system-ui,sans-serif;position:fixed;inset:0}.sb-snackbar-root *,.sb-snackbar-root :before,.sb-snackbar-root :after{box-sizing:border-box}.sb-snackbar-shell{left:var(--sb-snackbar-left);bottom:var(--sb-snackbar-bottom);width:var(--sb-snackbar-width);transition:left .2s ease-in-out,bottom .2s ease-in-out,width .2s ease-in-out;position:absolute}.sb-snackbar-surface{width:100%;height:var(--sb-snackbar-height,64px);border-radius:calc(var(--sb-snackbar-compact-height,64px) / 2);background:var(--sb-snackbar-surface);box-shadow:inset 0 0 0 1px var(--sb-snackbar-border);transition:height .45s cubic-bezier(0,.87,.39,1),border-radius .45s cubic-bezier(0,.87,.39,1);position:relative;overflow:hidden}.sb-snackbar-compact{width:var(--sb-snackbar-compact-width,364px);align-items:center;gap:10px;min-height:64px;padding:10px;transition:opacity .12s ease-out;display:flex;position:relative}.sb-snackbar-artwork{--sb-theme-fab-accent-primary:var(--sb-theme-sheet-progress-fill);--sb-theme-fab-accent-secondary:var(--sb-snackbar-surface);--sb-theme-fab-foreground:var(--sb-snackbar-text);background:var(--sb-theme-sheet-progress-fill);border-radius:50%;flex:0 0 40px;width:40px;height:40px;position:relative;overflow:hidden}.sb-snackbar-artwork img{z-index:2;object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.sb-snackbar-prompt{overflow-wrap:anywhere;flex:1;min-width:0;margin:0;font-size:14px;font-weight:600;line-height:20px;position:relative}.sb-snackbar-answers{flex:none;gap:4px;display:flex;position:relative}.sb-snackbar-answer{width:44px;height:44px;color:var(--sb-snackbar-text);background:var(--sb-snackbar-normal);cursor:pointer;pointer-events:auto;border:0;border-radius:50%;place-items:center;margin:0;padding:0;transition:background .12s ease-out,scale .12s ease-out;display:grid}.sb-snackbar-answer svg{width:18px;height:18px}.sb-snackbar-answer:hover:not(:disabled){background:var(--sb-snackbar-hover)}.sb-snackbar-answer:active:not(:disabled){background:var(--sb-snackbar-pressed);scale:.94}.sb-snackbar-answer[aria-pressed=true]{color:var(--sb-snackbar-on-active);background:var(--sb-snackbar-active)}.sb-snackbar-answer:disabled{cursor:default;pointer-events:none;opacity:1}.sb-snackbar-close{top:-25px;width:44px;height:44px;color:var(--sb-snackbar-text);pointer-events:auto;cursor:pointer;background:0 0;border:0;place-items:center;margin:0;padding:13px;display:grid;position:absolute;inset-inline-start:-15px}.sb-snackbar-close svg{background:var(--sb-snackbar-surface);border-radius:50%;width:18px;height:18px;padding:2px}.sb-snackbar-answer:focus-visible,.sb-snackbar-close:focus-visible{outline:2px solid var(--sb-snackbar-text);outline-offset:2px}.sb-snackbar-timer{pointer-events:none;position:absolute;overflow:hidden}.sb-snackbar-timer--fill{background:var(--sb-snackbar-elapsed);inset:0}.sb-snackbar-timer--bar{inset-inline:1px 3px;background:var(--sb-theme-sheet-progress-track);height:2px;bottom:-6px}.sb-snackbar-timer-fill{transform-origin:0;background:var(--sb-theme-sheet-progress-fill);width:100%;height:100%;display:block}.sb-snackbar-timer--fill .sb-snackbar-timer-fill{background:var(--sb-snackbar-remaining)}.sb-snackbar-root:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .sb-snackbar-timer-fill{transform-origin:100%}.sb-snackbar-root[data-counting=true] .sb-snackbar-timer-fill{animation:sb-snackbar-countdown var(--sb-snackbar-duration) linear forwards}.sb-snackbar-root[data-frozen=true] .sb-snackbar-timer-fill{transform:scaleX(var(--sb-snackbar-fraction));animation:none}.sb-snackbar-overlay{background:var(--sb-theme-sheet-scrim);opacity:0;pointer-events:none;border:0;width:100%;height:100%;margin:0;padding:0;transition:opacity .45s ease-out;position:absolute;inset:0}.sb-snackbar-card{width:var(--sb-snackbar-card-width);max-height:var(--sb-snackbar-max-height);opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;overflow:auto}.sb-snackbar-root .sb-snackbar-card .sb-sheet-root{position:static;inset:auto}.sb-snackbar-root .sb-snackbar-card .sb-sheet-root__overlay{display:none}.sb-snackbar-root .sb-snackbar-card .sb-sheet{width:100%;max-height:none;box-shadow:none;background:0 0;border:0;margin:0;animation:none;position:relative;inset:auto;transform:none}.sb-snackbar-card[inert] *{animation-play-state:paused}.sb-snackbar-root[data-stage=widening] .sb-snackbar-compact,.sb-snackbar-root[data-stage=expanding] .sb-snackbar-compact,.sb-snackbar-root[data-stage=ready] .sb-snackbar-compact{opacity:0}.sb-snackbar-root[data-expanded=true] .sb-snackbar-overlay{opacity:1;pointer-events:auto}.sb-snackbar-root[data-expanded=true] .sb-snackbar-close{display:none}.sb-snackbar-root[data-stage=expanding] .sb-snackbar-surface,.sb-snackbar-root[data-stage=ready] .sb-snackbar-surface{box-shadow:none;background:var(--sb-theme-sheet-background);border-radius:40px}.sb-snackbar-root[data-stage=expanding] .sb-snackbar-card{opacity:1;transition:opacity .3s ease-out .12s}.sb-snackbar-root[data-stage=ready] .sb-snackbar-card{opacity:1;pointer-events:auto}.sb-snackbar-root[data-stage=entering] .sb-snackbar-shell{animation:.89016s cubic-bezier(.649439,.0577174,.124599,1) .18584s both sb-snackbar-enter-scale,.893207s cubic-bezier(.649439,.0577174,.124599,1) 1.076s both sb-snackbar-enter-width}.sb-snackbar-root[data-stage=entering] .sb-snackbar-surface{transition:none}.sb-snackbar-root[data-stage=entering] .sb-snackbar-prompt,.sb-snackbar-root[data-stage=entering] .sb-snackbar-answers,.sb-snackbar-root[data-stage=entering] .sb-snackbar-close{animation:.2s ease-out 1.076s both sb-snackbar-label}.sb-snackbar-root[data-stage=entering] .sb-snackbar-timer{animation:.2s ease-out 1.96921s both sb-snackbar-label}.sb-root--inline .sb-snackbar-root{position:absolute}@keyframes sb-snackbar-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes sb-snackbar-enter-scale{0%{scale:0}to{scale:1}}@keyframes sb-snackbar-enter-width{0%{width:var(--sb-snackbar-compact-height,64px);translate:var(--sb-snackbar-entrance-offset) 0}to{width:var(--sb-snackbar-width);translate:0}}@keyframes sb-snackbar-label{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.sb-snackbar-root[data-counting=true] .sb-snackbar-timer-fill{animation-duration:var(--sb-snackbar-duration)!important}.sb-snackbar-root .sb-snackbar-shell,.sb-snackbar-root .sb-snackbar-surface,.sb-snackbar-root .sb-snackbar-card,.sb-snackbar-root .sb-snackbar-compact,.sb-snackbar-root .sb-snackbar-overlay{transition:none}.sb-snackbar-root[data-stage=entering] .sb-snackbar-shell,.sb-snackbar-root[data-stage=entering] .sb-snackbar-prompt,.sb-snackbar-root[data-stage=entering] .sb-snackbar-timer,.sb-snackbar-root[data-stage=entering] .sb-snackbar-close,.sb-snackbar-root[data-stage=entering] .sb-snackbar-answers{animation:none}}.sb-snackbar-root[data-presentation=bar]{--sb-bar-hidden-y:max(80px, 100%)}.sb-snackbar-root[data-presentation=bar][data-position=top]{--sb-bar-hidden-y:calc(-1 * max(80px, 100%))}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-shell{top:var(--sb-bar-top,0px);transition:left .2s ease-in-out,top .2s ease-in-out,width .2s ease-in-out;bottom:auto}.sb-snackbar-root[data-presentation=bar]:not([data-expanded=true]) .sb-snackbar-surface{box-shadow:none;border-radius:0}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-compact{border-block-start:1px solid var(--sb-snackbar-border);min-height:48px;padding:10px max(108px, env(safe-area-inset-right,0px)) 10px max(108px, env(safe-area-inset-left,0px));pointer-events:auto;justify-content:center}.sb-snackbar-root[data-presentation=bar][data-position=bottom] .sb-snackbar-compact{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-compact{padding-top:calc(10px + env(safe-area-inset-top,0px));border-block-start:0;border-block-end:1px solid var(--sb-snackbar-border)}.sb-bar-content{align-items:center;gap:12px;min-width:0;display:flex;position:relative}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-prompt{text-align:center;text-wrap:pretty;flex:0 auto;font-size:14px;font-weight:400;line-height:1.3}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answers{gap:4px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer{border:1px solid var(--sb-snackbar-border);background:var(--sb-snackbar-surface);-webkit-tap-highlight-color:transparent;border-radius:36px;width:36px;height:24px;transition:background .18s,border-color .18s,scale .15s ease-out}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer svg{width:14.4px;height:14.4px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer[aria-pressed=true]{background:var(--sb-snackbar-active);color:var(--sb-snackbar-on-active)}.sb-bar-dismiss{inset-inline-end:20px;width:68px;height:44px;color:var(--sb-theme-content-body);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:0;margin:0;padding:0 5px;font-size:14px;line-height:1.3;position:absolute;top:50%;translate:0 -50%}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:hover:not(:disabled){background:var(--sb-snackbar-surface)}@media (hover:hover){.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:hover:not(:disabled){background:var(--sb-snackbar-hover);border-color:var(--sb-theme-input-border)}}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:not(:disabled):active{background:var(--sb-snackbar-pressed);scale:.96}.sb-bar-dismiss:focus-visible{outline:2px solid var(--sb-snackbar-text);outline-offset:2px}.sb-bar-dismiss:disabled{cursor:default}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer--bar{inset-inline:auto 25px;background:var(--sb-snackbar-border);width:58px;height:1px;top:calc(50% + 8px);bottom:auto}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer--bar .sb-snackbar-timer-fill{background:var(--sb-theme-content-body)}.sb-snackbar-root[data-presentation=bar][data-paused=true] .sb-snackbar-timer-fill{animation-play-state:paused}.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-shell{animation:.45s cubic-bezier(.16,1,.3,1) .4s both sb-bar-enter}.sb-snackbar-root[data-presentation=bar][data-exiting=true] .sb-snackbar-shell{pointer-events:none;animation:.4s cubic-bezier(.55,0,.55,.2) both sb-bar-exit}.sb-snackbar-root[data-presentation=bar][data-exiting=true] .sb-snackbar-overlay{opacity:0;pointer-events:none}.sb-snackbar-root[data-presentation=bar][data-exiting=true][data-expanded=true] .sb-snackbar-shell{animation:.4s ease-out both sb-bar-card-exit}.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-prompt,.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-answers,.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-timer{animation:none}.sb-snackbar-root[data-presentation=bar]{--sb-bar-ack-direction:1}.sb-snackbar-root[data-presentation=bar][data-position=top]{--sb-bar-ack-direction:-1}.sb-bar-ack{display:none}.sb-snackbar-root[data-presentation=bar][data-stage=answered] .sb-snackbar-shell{opacity:0;transition:opacity .228s cubic-bezier(.076,.296,.5,1)}.sb-snackbar-root[data-presentation=bar][data-stage=acknowledging] .sb-snackbar-shell,.sb-snackbar-root[data-presentation=bar][data-stage=leaving] .sb-snackbar-shell{transition:none;animation:.609s cubic-bezier(0,.6,0,1) both sb-bar-ack-fade,2.287s linear both sb-bar-ack-rise}.sb-snackbar-root[data-presentation=bar][data-stage=acknowledging] .sb-snackbar-surface,.sb-snackbar-root[data-presentation=bar][data-stage=leaving] .sb-snackbar-surface{background:var(--sb-theme-sheet-background);box-shadow:inset 0 0 0 1px var(--sb-snackbar-border);border-radius:32px;transition:none}.sb-snackbar-root[data-presentation=bar][data-stage=acknowledging] .sb-snackbar-compact,.sb-snackbar-root[data-presentation=bar][data-stage=leaving] .sb-snackbar-compact,.sb-snackbar-root[data-presentation=bar][data-stage=expanding] .sb-snackbar-compact,.sb-snackbar-root[data-presentation=bar][data-stage=ready] .sb-snackbar-compact{display:none}.sb-snackbar-root[data-presentation=bar][data-stage=acknowledging] .sb-bar-ack,.sb-snackbar-root[data-presentation=bar][data-stage=leaving] .sb-bar-ack{width:var(--sb-snackbar-width);color:var(--sb-snackbar-text);flex-direction:column;align-items:center;padding:29px 1px 8px;transition:opacity .277s cubic-bezier(.5,0,.5,1),translate .277s cubic-bezier(.649,.058,.904,.732);display:flex;position:absolute;top:0;left:0}.sb-snackbar-root[data-presentation=bar][data-stage=leaving] .sb-bar-ack{opacity:0;translate:0 -24px}.sb-bar-ack-icon{place-items:center;width:94px;height:94px;animation:.503s cubic-bezier(.5,0,.5,1) both sb-bar-ack-icon-scale;display:grid;position:relative}.sb-bar-ack-halo{background:var(--sb-snackbar-text);opacity:0;border-radius:50%;animation:.627s cubic-bezier(.5,0,.5,1) .432s both sb-bar-ack-halo;position:absolute;inset:0}.sb-bar-ack-glyph{width:56px;height:56px;color:var(--sb-snackbar-on-active);background:var(--sb-snackbar-active);border-radius:50%;place-items:center;animation:1.382s linear both sb-bar-ack-wiggle;display:grid;position:relative}.sb-bar-ack-glyph svg{width:24px;height:24px}.sb-bar-ack-copy{text-align:center;text-wrap:balance;overflow-wrap:anywhere;width:100%;margin:-8px 0 0;padding:20px 16px 24px;font-size:22px;font-weight:600;line-height:1.2;animation:.503s cubic-bezier(.363,.021,.34,.962) both sb-bar-ack-copy}.sb-snackbar-root[data-presentation=bar][data-stage=answered] .sb-snackbar-overlay,.sb-snackbar-root[data-presentation=bar][data-stage=acknowledging] .sb-snackbar-overlay,.sb-snackbar-root[data-presentation=bar][data-stage=leaving] .sb-snackbar-overlay,.sb-snackbar-root[data-presentation=bar][data-stage=expanding] .sb-snackbar-overlay{opacity:1;transition:opacity .45s ease-out}.sb-snackbar-root[data-presentation=bar][data-acknowledged=true][data-stage=expanding] .sb-snackbar-shell{transition:left .54s cubic-bezier(.649,.058,.125,1),bottom .54s cubic-bezier(.649,.058,.125,1),top .54s cubic-bezier(.649,.058,.125,1),width .54s cubic-bezier(.649,.058,.125,1)}.sb-snackbar-root[data-presentation=bar][data-acknowledged=true][data-stage=expanding] .sb-snackbar-surface{transition:height .54s cubic-bezier(.649,.058,.125,1),border-radius .54s cubic-bezier(.649,.058,.125,1)}.sb-snackbar-root[data-presentation=bar][data-acknowledged=true] .sb-snackbar-card{top:0;bottom:auto}.sb-snackbar-root[data-presentation=bar][data-acknowledged=true][data-stage=expanding] .sb-snackbar-card{transition:opacity .14s cubic-bezier(.5,0,.5,1) .105s}.sb-snackbar-root[data-presentation=bar][data-acknowledged=true][data-stage=expanding] .sb-snackbar-card[inert] *{animation-play-state:running}@keyframes sb-bar-ack-fade{0%{opacity:0}to{opacity:1}}@keyframes sb-bar-ack-rise{0%{translate:0 calc(var(--sb-bar-ack-direction) * 40px);animation-timing-function:cubic-bezier(0,.6,0,1)}26.6%{translate:0 calc(var(--sb-bar-ack-direction) * 6px);animation-timing-function:cubic-bezier(.411,.063,1,1)}to{translate:0}}@keyframes sb-bar-ack-icon-scale{0%{scale:.5}to{scale:1}}@keyframes sb-bar-ack-halo{0%{opacity:.05}to{opacity:0}}@keyframes sb-bar-ack-wiggle{0%{animation-timing-function:cubic-bezier(.834,.105,.395,.93);rotate:25deg}45.9%{animation-timing-function:cubic-bezier(.5,0,.5,1);rotate:-10deg}53.8%{animation-timing-function:cubic-bezier(.389,.196,.456,.88);rotate:-8deg}to{rotate:0deg}}@keyframes sb-bar-ack-copy{0%{translate:0 16px}to{translate:0}}@keyframes sb-bar-enter{0%{translate:0 var(--sb-bar-hidden-y)}to{translate:0}}@keyframes sb-bar-exit{0%{translate:0}to{translate:0 var(--sb-bar-hidden-y)}}@keyframes sb-bar-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sb-bar-fade-out{0%{opacity:1}to{opacity:0}}@keyframes sb-bar-card-exit{0%{opacity:1;translate:0}to{opacity:0;translate:0 12px}}@media (width<=768px){.sb-snackbar-root[data-presentation=bar] .sb-snackbar-compact{padding-inline:max(24px, env(safe-area-inset-left,0px)) max(24px, env(safe-area-inset-right,0px))}.sb-bar-content{width:100%}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-prompt{text-align:start;flex:1}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answers{gap:5.333px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer{border-radius:48px;width:48px;height:32px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer svg{width:19.2px;height:19.2px}.sb-snackbar-root[data-presentation=bar][data-timed=true] .sb-bar-dismiss{display:none}.sb-snackbar-root[data-presentation=bar][data-timed=false] .sb-bar-content{padding-inline-end:76px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer--bar{inset-inline:0;width:auto;top:0}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-timer--bar{top:auto;bottom:0}}.sb-root--inline .sb-snackbar-root[data-presentation=bar] .sb-snackbar-compact{padding-block:10px}@media (prefers-reduced-motion:reduce){.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-shell{animation:.15s ease-out both sb-bar-fade-in}.sb-snackbar-root[data-presentation=bar][data-exiting=true] .sb-snackbar-shell,.sb-snackbar-root[data-presentation=bar][data-exiting=true][data-expanded=true] .sb-snackbar-shell{animation:.15s ease-out both sb-bar-fade-out}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-shell{transition:none}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:not(:disabled):active{scale:1}.sb-snackbar-root[data-presentation=bar][data-stage=answered] .sb-snackbar-shell,.sb-snackbar-root[data-presentation=bar][data-stage=acknowledging] .sb-snackbar-shell,.sb-snackbar-root[data-presentation=bar][data-stage=leaving] .sb-snackbar-shell,.sb-bar-ack,.sb-bar-ack-icon,.sb-bar-ack-halo,.sb-bar-ack-glyph,.sb-bar-ack-copy{transition:none;animation:none}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-overlay{transition:none}}.sb-sheet__close:before{content:\"\";background:currentColor;width:24px;height:24px;display:block;-webkit-mask:url(\"data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='close'%3e%3cpath%20id='Vector'%20d='M12%2013.4L7.1%2018.3C6.91667%2018.4833%206.68333%2018.575%206.4%2018.575C6.11667%2018.575%205.88333%2018.4833%205.7%2018.3C5.51667%2018.1167%205.425%2017.8833%205.425%2017.6C5.425%2017.3167%205.51667%2017.0833%205.7%2016.9L10.6%2012L5.7%207.1C5.51667%206.91667%205.425%206.68333%205.425%206.4C5.425%206.11667%205.51667%205.88333%205.7%205.7C5.88333%205.51667%206.11667%205.425%206.4%205.425C6.68333%205.425%206.91667%205.51667%207.1%205.7L12%2010.6L16.9%205.7C17.0833%205.51667%2017.3167%205.425%2017.6%205.425C17.8833%205.425%2018.1167%205.51667%2018.3%205.7C18.4833%205.88333%2018.575%206.11667%2018.575%206.4C18.575%206.68333%2018.4833%206.91667%2018.3%207.1L13.4%2012L18.3%2016.9C18.4833%2017.0833%2018.575%2017.3167%2018.575%2017.6C18.575%2017.8833%2018.4833%2018.1167%2018.3%2018.3C18.1167%2018.4833%2017.8833%2018.575%2017.6%2018.575C17.3167%2018.575%2017.0833%2018.4833%2016.9%2018.3L12%2013.4Z'%20fill='%23E8E8E8'/%3e%3c/g%3e%3c/svg%3e\") 50%/24px 24px no-repeat;mask:url(\"data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='close'%3e%3cpath%20id='Vector'%20d='M12%2013.4L7.1%2018.3C6.91667%2018.4833%206.68333%2018.575%206.4%2018.575C6.11667%2018.575%205.88333%2018.4833%205.7%2018.3C5.51667%2018.1167%205.425%2017.8833%205.425%2017.6C5.425%2017.3167%205.51667%2017.0833%205.7%2016.9L10.6%2012L5.7%207.1C5.51667%206.91667%205.425%206.68333%205.425%206.4C5.425%206.11667%205.51667%205.88333%205.7%205.7C5.88333%205.51667%206.11667%205.425%206.4%205.425C6.68333%205.425%206.91667%205.51667%207.1%205.7L12%2010.6L16.9%205.7C17.0833%205.51667%2017.3167%205.425%2017.6%205.425C17.8833%205.425%2018.1167%205.51667%2018.3%205.7C18.4833%205.88333%2018.575%206.11667%2018.575%206.4C18.575%206.68333%2018.4833%206.91667%2018.3%207.1L13.4%2012L18.3%2016.9C18.4833%2017.0833%2018.575%2017.3167%2018.575%2017.6C18.575%2017.8833%2018.4833%2018.1167%2018.3%2018.3C18.1167%2018.4833%2017.8833%2018.575%2017.6%2018.575C17.3167%2018.575%2017.0833%2018.4833%2016.9%2018.3L12%2013.4Z'%20fill='%23E8E8E8'/%3e%3c/g%3e%3c/svg%3e\") 50%/24px 24px no-repeat}:host{--sb-surface:var(--sb-theme-sheet-background,#fff);--sb-surface-muted:var(--sb-theme-button-secondary-background,#f2f2f2);--sb-border:var(--sb-theme-input-border,#0808081f);--sb-border-strong:#0808083d;--sb-border-active:var(--sb-theme-input-focused-border,#080808b3);--sb-text:var(--sb-theme-content-heading,#080808);--sb-text-muted:var(--sb-theme-content-body,#5c5c5c);--sb-overlay:var(--sb-theme-sheet-scrim,#00000061);--sb-ease:cubic-bezier(.2, .9, .2, 1);--sb-fab-motion-ease:cubic-bezier(.649439, .0577174, .124599, 1);--sb-sheet-motion-ease:cubic-bezier(0, .87, .39, 1)}.sb-safe-area-probe{visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);position:fixed;inset:0}.sb-fab{font:inherit;right:16px;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:1000;box-sizing:border-box;border:1px solid var(--sb-theme-fab-border,#080808);background:var(--sb-theme-fab-background,#080808);min-width:0;height:60px;color:var(--sb-theme-fab-foreground,#fff);border-color:var(--sb-theme-fab-border,#080808);cursor:pointer;will-change:transform;align-items:center;transition:scale .12s ease-out;display:inline-flex;position:fixed;overflow:hidden}.sb-fab--entering{animation:sb-fab-enter-scale .89016s var(--sb-fab-motion-ease) .259705s both, sb-fab-enter-width .893207s var(--sb-fab-motion-ease) 1.076s both;transform-origin:50%!important}.sb-fab--entering .sb-fab__label{animation:sb-fab-label-in .2s var(--sb-fab-motion-ease) 1.14987s both}.sb-fab--entering .sb-fab__timer{animation:sb-fab-timer-in .2s var(--sb-fab-motion-ease) 1.96921s both}.sb-fab--entering .sb-fab__timer-fill{animation-delay:1.96921s}.sb-fab--exiting{width:var(--sb-fab-exit-width,var(--sb-fab-expanded-width));pointer-events:none;scale:var(--sb-fab-exit-scale,1);translate:var(--sb-fab-exit-offset,0) 0;animation:.292089s cubic-bezier(.677885,.170122,.695982,.997824) .3s forwards sb-fab-exit-width,.390467s cubic-bezier(.362165,.0946429,.49708,.932961) .466372s forwards sb-fab-exit-scale;transform:none;transform-origin:50%!important}.sb-fab--exiting .sb-fab__label{opacity:var(--sb-fab-exit-label-opacity,1);animation:.389727s cubic-bezier(.5,0,.5,1) .3s forwards sb-fab-label-out}.sb-fab--exiting .sb-fab__timer{opacity:var(--sb-fab-exit-timer-opacity,0)}.sb-fab--exiting .sb-fab__badge{animation:.297243s cubic-bezier(.5,0,1,.600461) .398177s forwards sb-fab-badge-out}.sb-next:hover,.sb-next:focus-visible,.sb-button:hover,.sb-button:focus-visible,.sb-choice:hover,.sb-choice:focus-visible{transform:translateY(-1px)}.sb-fab:active{transition-duration:80ms;scale:.97}.sb-fab:focus-visible,.sb-next:focus-visible,.sb-button:focus-visible,.sb-choice:focus-visible,.sb-sheet__close:focus-visible,.sb-sentiment:focus-visible,.sb-sheet-root__overlay:focus-visible{outline-offset:2px;outline:2px solid #6366f1a6}.sb-sheet h2[tabindex=\"-1\"]:focus{outline:none}.sb-fab--expanded{width:var(--sb-fab-expanded-width,auto);border-radius:999px;justify-content:flex-start;gap:12px;min-height:60px;padding:13px 28px 13px 14px}.sb-fab__label{z-index:1;width:var(--sb-fab-label-width,auto);color:currentColor;text-align:left;white-space:nowrap;text-overflow:clip;min-width:0;font-size:14px;font-weight:600;line-height:1;position:relative;overflow:hidden}.sb-fab__badge{z-index:1;background:var(--sb-theme-fab-accent-primary,#f97316);border-radius:50%;flex:none;place-items:center;width:32px;height:32px;display:grid;position:relative}.sb-fab__badge-artwork{background:var(--sb-theme-fab-accent-secondary,#2563eb);border-radius:50%;display:block;position:absolute;inset:5.44px}.sb-fab__badge-image{z-index:2;border-radius:inherit;object-fit:cover;width:100%;height:100%;display:block;position:absolute;inset:0}.sb-fab__badge-glyph-center,.sb-fab__badge-glyph-amber,.sb-fab__badge-glyph-mint,.sb-fab__badge-glyph-rose{border-radius:999px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.sb-fab__badge-glyph-center{background:var(--sb-theme-fab-foreground,#fff);border-radius:3.52px;width:4.16px;height:11.52px}.sb-fab__badge-glyph-amber{background:#fac143;width:2.88px;height:6.72px;translate:-3.04px .8px}.sb-fab__badge-glyph-mint{background:#39c690;width:2.88px;height:5.44px;translate:3.04px -.32px}.sb-fab__badge-glyph-rose{background:#e86398;width:2.56px;height:4.16px;translate:.96px 3.68px}.sb-fab__timer{z-index:0;pointer-events:none;position:absolute;overflow:hidden}.sb-fab__timer--bar{background:var(--sb-theme-fab-timer-track,#08080829);border-radius:999px;height:2px;bottom:4px;left:59px;right:29px}.sb-fab[data-timer-direction=rtl] .sb-fab__timer--bar{left:29px;right:59px}.sb-fab__timer--fill{border-radius:inherit;background:var(--sb-theme-fab-timer-track,#08080829);inset:0}.sb-fab__timer-fill{border-radius:inherit;background:var(--sb-theme-fab-timer-fill,#080808e6);width:100%;height:100%;transform-origin:var(--sb-fab-timer-origin,left);animation:sb-fab-timer-bar var(--sb-timer-duration) linear forwards;display:block}.sb-sheet-root{z-index:1100;position:fixed;inset:0}.sb-sheet-root__overlay{background:var(--sb-overlay);cursor:pointer;border:none;animation:.2s ease-in both sb-overlay-in;position:absolute;inset:0}.sb-sheet-root--exiting{pointer-events:none}.sb-sheet-root--exiting .sb-sheet-root__overlay{animation:.2s ease-in forwards sb-overlay-out}.sb-sheet{width:min(100%,100vw);min-height:418px;padding:24px 20px calc(18px + env(safe-area-inset-bottom,0px));box-sizing:border-box;background:var(--sb-surface);box-shadow:var(--sb-shadow);color:var(--sb-text);animation:sb-sheet-in-mobile .45s var(--sb-sheet-motion-ease) both;border-radius:40px 40px 0 0;position:absolute;bottom:0;left:0;right:0}.sb-sheet--thanks{min-height:381px;padding-top:18px}.sb-sheet__header{justify-content:flex-end;align-items:flex-start;min-height:28px;margin-bottom:22px;display:flex;position:relative}.sb-progress{background:var(--sb-theme-sheet-progress-track,#eaeaea);border-radius:999px;width:219px;max-width:calc(100% - 96px);height:6px;position:absolute;top:5px;left:50%;overflow:hidden;transform:translate(-50%)}.sb-progress__fill{border-radius:inherit;background:var(--sb-theme-sheet-progress-fill,#080808);height:100%;transition:width .22s var(--sb-ease);display:block}.sb-sheet__close{background:var(--sb-theme-sheet-close-button-background,transparent);width:20px;height:20px;color:var(--sb-theme-sheet-close-button-foreground,var(--sb-text));cursor:pointer;border:none;padding:0}.sb-sheet__close svg,.sb-next svg,.sb-thanks__icon-core svg{width:100%;height:100%;display:block}.sb-sheet__body{gap:26px;display:grid}.sb-sheet__copy{justify-items:center;gap:8px;display:grid}.sb-sheet__eyebrow{color:var(--sb-theme-content-helper,var(--sb-text-muted));text-align:center;margin:0;font-size:16px;font-weight:400;line-height:1.4}.sb-sheet__body h2,.sb-thanks__copy h2{color:var(--sb-theme-content-heading,var(--sb-text));text-align:center;margin:0;font-size:22px;font-weight:600;line-height:1.2}.sb-sheet__body h2{justify-self:center;width:min(297px,100%)}.sb-choice--selected,.sb-choice:hover,.sb-textarea-shell:focus-within{border-color:var(--sb-theme-choice-hover-border,var(--sb-border-active))}.sb-choice:hover{background:var(--sb-theme-choice-hover-background,var(--sb-surface));color:var(--sb-theme-choice-hover-foreground,var(--sb-text))}.sb-choice:active{border-color:var(--sb-theme-choice-pressed-border,var(--sb-border-active));background:var(--sb-theme-choice-pressed-background,var(--sb-surface-muted));color:var(--sb-theme-choice-pressed-foreground,var(--sb-text))}.sb-choice--selected{box-shadow:0 0 0 3px #0808080d}.sb-choice:disabled{border-color:var(--sb-theme-choice-disabled-border,#e2e2e2);background:var(--sb-theme-choice-disabled-background,#f2f2f2);color:var(--sb-theme-choice-disabled-foreground,#5c5c5c);cursor:not-allowed}.sb-question--choices{grid-template-columns:repeat(2,160px);justify-content:center;justify-self:center;gap:9px;width:min(330px,100%)}.sb-choice{border:1px solid var(--sb-theme-choice-default-border,#e2e2e2);background:var(--sb-theme-choice-default-background,var(--sb-surface));width:160px;height:51px;color:var(--sb-theme-choice-default-foreground,var(--sb-text));font:inherit;text-align:center;white-space:nowrap;cursor:pointer;transition:transform .2s var(--sb-ease), border-color .18s ease, box-shadow .18s ease, background-color .18s ease;border-radius:999px;justify-content:center;align-items:center;padding:0 16px;font-size:16px;font-weight:700;line-height:1.2;display:flex}.sb-choice__label{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.sb-choice--other{border-color:var(--sb-theme-choice-default-border,#e2e2e2);padding:0;font-weight:400}.sb-choice__other-content{align-items:center;gap:0;display:inline-flex}.sb-choice__other-caret{background:var(--sb-theme-input-foreground,var(--sb-text));flex:none;width:1px;height:22px}.sb-choice__other-label{color:var(--sb-theme-input-placeholder,#08080866);line-height:1.2}.sb-choice--selected,.sb-choice--selected:hover,.sb-choice--selected:active{border-color:var(--sb-theme-choice-selected-border,var(--sb-text));background:var(--sb-theme-choice-selected-background,var(--sb-text));color:var(--sb-theme-choice-selected-foreground,var(--sb-surface))}.sb-question--text{justify-self:center;width:min(330px,100%)}.sb-textarea-shell{border:1px solid var(--sb-theme-input-border,#08080833);background:var(--sb-theme-input-background,var(--sb-surface));border-radius:16px;width:100%;min-height:155px;transition:border-color .18s,box-shadow .18s}.sb-textarea{resize:none;width:100%;min-height:155px;color:var(--sb-theme-input-foreground,var(--sb-text));font:inherit;box-sizing:border-box;background:0 0;border:none;outline:none;padding:16px 22px;font-size:16px;line-height:1.2}.sb-textarea::placeholder{color:var(--sb-theme-input-placeholder,#08080866)}.sb-textarea-shell:focus-within{border-color:var(--sb-theme-input-focused-border,var(--sb-border-active))}.sb-textarea:disabled{color:var(--sb-theme-input-disabled-foreground,var(--sb-text-muted))}.sb-textarea-shell:has(.sb-textarea:disabled){background:var(--sb-theme-input-disabled-background,var(--sb-surface-muted))}.sb-sheet__footer{min-height:84px;margin:0 -20px calc(-18px - env(safe-area-inset-bottom,0px));padding:18px 20px calc(18px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--sb-theme-sheet-divider,#e2e2e2);box-sizing:border-box;justify-content:flex-end;align-items:center;gap:16px;display:flex}.sb-next,.sb-button{cursor:pointer;min-height:48px;font:inherit;transition:transform .2s var(--sb-ease), opacity .18s ease, box-shadow .18s ease;border:none;border-radius:999px}.sb-next{background:var(--sb-theme-button-primary-background,#080808);width:101px;color:var(--sb-theme-button-primary-foreground,#fff);place-items:center;padding:0;display:grid}.sb-next--acknowledging svg{animation:.36s cubic-bezier(.2,.8,.2,1) both sb-next-acknowledgement}.sb-next:disabled,.sb-button:disabled{cursor:not-allowed;box-shadow:none;transform:none}.sb-next:disabled{background:var(--sb-theme-button-primary-disabled-background,#080808);color:var(--sb-theme-button-primary-disabled-foreground,#fff)}.sb-thanks{justify-items:center;gap:23px;padding-top:12px;display:grid}.sb-thanks__icon-shell{background:var(--sb-theme-completion-outer-background,#f0f0f0);border-radius:999px;place-items:center;width:120px;height:120px;display:grid}.sb-thanks__icon-core{background:var(--sb-theme-completion-inner-background,#080808);width:66px;height:66px;color:var(--sb-theme-completion-glyph,#fff);border-radius:999px;place-items:center;display:grid}.sb-thanks__copy{gap:8px;max-width:313px;display:grid}.sb-thanks__copy h2{letter-spacing:-.03em;font-size:30px;line-height:1.1}.sb-thanks__copy p{color:var(--sb-theme-content-body,var(--sb-text-muted));text-align:center;margin:0;font-size:14px;line-height:1.3}.sb-thanks__actions{gap:10px;width:100%;display:flex}.sb-button{flex:1 1 0;padding:16px;font-size:14px;font-weight:600;line-height:1}.sb-button--primary{background:var(--sb-theme-button-primary-background,#080808);color:var(--sb-theme-button-primary-foreground,#fff)}.sb-button--secondary{background:var(--sb-theme-button-secondary-background,#f2f2f2);color:var(--sb-theme-button-secondary-foreground,var(--sb-text))}.sb-button--tertiary{background:var(--sb-theme-button-tertiary-background,transparent);color:var(--sb-theme-button-tertiary-foreground,var(--sb-text))}.sb-button--primary:hover,.sb-button--primary:focus-visible{background:var(--sb-theme-button-primary-hover-background,#080808)}.sb-button--secondary:hover,.sb-button--secondary:focus-visible{background:var(--sb-theme-button-secondary-hover-background,#f2f2f2)}.sb-button--tertiary:hover,.sb-button--tertiary:focus-visible{background:var(--sb-theme-button-tertiary-hover-background,#f2f2f2)}.sb-button--primary:active{background:var(--sb-theme-button-primary-pressed-background,#080808)}.sb-button--secondary:active{background:var(--sb-theme-button-secondary-pressed-background,#e2e2e2)}.sb-button--tertiary:active{background:var(--sb-theme-button-tertiary-pressed-background,#e2e2e2)}.sb-button--primary:disabled{background:var(--sb-theme-button-primary-disabled-background,#080808);color:var(--sb-theme-button-primary-disabled-foreground,#fff)}.sb-button--secondary:disabled{background:var(--sb-theme-button-secondary-disabled-background,#f2f2f2);color:var(--sb-theme-button-secondary-disabled-foreground,var(--sb-text))}.sb-button--tertiary:disabled{background:var(--sb-theme-button-tertiary-disabled-background,#f2f2f2);color:var(--sb-theme-button-tertiary-disabled-foreground,var(--sb-text))}@media (width>=768px){.sb-fab{bottom:24px;right:24px}}.sb-sheet-root__overlay{padding:0}.sb-sheet{top:auto;right:auto;bottom:calc(8px + env(safe-area-inset-bottom,0px));width:min(376px,100% - 24px);min-height:0;max-height:calc(100% - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));box-shadow:none;animation:sb-card-in .45s var(--sb-sheet-motion-ease) both;interpolate-size:allow-keywords;border-radius:40px;padding:0;transition:height .45s cubic-bezier(0,.83,.363,.994);position:absolute;left:50%;overflow:hidden;transform:translate(-50%)}.sb-sheet-root--exiting .sb-sheet{animation:.45s ease-in forwards sb-card-out}.sb-sheet--thanks{min-height:0;padding:22px 20px}.sb-sheet__header{height:50px;min-height:0;margin:0;display:block;position:relative}.sb-progress{width:216px;max-width:calc(100% - 96px);height:6px;top:27px}.sb-progress__fill{transition:width .45s var(--sb-sheet-motion-ease)}.sb-sheet__close{box-sizing:border-box;border-radius:1000px;width:40px;height:40px;padding:8px;position:absolute;top:10px;right:16px}.sb-sheet__body{display:block}.sb-step{animation:.25s ease-in-out both sb-step-in}.sb-sheet__copy{box-sizing:border-box;align-content:center;justify-items:center;gap:0;height:88px;padding:0 23px;display:grid}.sb-sheet__body h2{text-align:center;text-wrap:balance;width:100%;margin:0;font-size:19px;font-weight:600;line-height:1.22}.sb-sheet__body--sentiment{padding:12px 24px 22px}.sb-sheet__body--sentiment .sb-sheet__copy{gap:8px;height:auto;min-height:84px;padding:0}.sb-sheet__body--sentiment .sb-sheet__eyebrow{color:var(--sb-theme-content-helper,var(--sb-text-muted));text-align:center;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:16px;font-weight:400;line-height:1.2;display:-webkit-box;overflow:hidden}.sb-sheet__body--sentiment h2{-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:22px;font-weight:600;line-height:1.2;display:-webkit-box;overflow:hidden}.sb-sheet__body--sentiment h2.sb-sheet__acknowledgement{align-content:center;min-height:70px;font-size:29px;line-height:1.08;animation:.28s cubic-bezier(.2,.8,.2,1) both sb-acknowledgement-in}.sb-question{justify-items:stretch;display:grid}.sb-question--sentiment{grid-template-columns:repeat(2,80px);justify-content:center;gap:25px;width:185px;margin:37px auto 31px;position:relative}.sb-sheet__body--sentiment:has(.sb-sheet__acknowledgement) .sb-question--sentiment{margin-top:35px}.sb-sentiment{z-index:0;border:1.111px solid var(--sb-theme-choice-default-border,#e2e2e2);background:var(--sb-theme-choice-default-background,var(--sb-surface));width:80px;height:80px;color:var(--sb-theme-choice-default-foreground,var(--sb-text));cursor:pointer;border-radius:50%;place-items:center;padding:0;transition:transform .12s ease-out,border-color .18s,background-color .18s;display:grid;position:relative}.sb-sentiment__icon{z-index:1;width:35.5556px;height:35.5556px}.sb-sentiment__icon svg{width:100%;height:100%;display:block}.sb-sentiment:hover{border-color:var(--sb-theme-choice-hover-border,var(--sb-border-active));background:var(--sb-theme-choice-hover-background,var(--sb-surface));color:var(--sb-theme-choice-hover-foreground,var(--sb-text))}.sb-sentiment:active{border-color:var(--sb-theme-choice-pressed-border,var(--sb-border-active));background:var(--sb-theme-choice-pressed-background,var(--sb-surface-muted));color:var(--sb-theme-choice-pressed-foreground,var(--sb-text));transform:scale(.97)}.sb-sentiment--selected,.sb-sentiment--selected:disabled{border-color:var(--sb-theme-choice-selected-border,var(--sb-text));background:var(--sb-theme-choice-selected-background,var(--sb-text));color:var(--sb-theme-choice-selected-foreground,var(--sb-surface))}.sb-sentiment:disabled:not(.sb-sentiment--selected){border-color:var(--sb-theme-choice-disabled-border,#e2e2e2);background:var(--sb-theme-choice-disabled-background,#f2f2f2);color:var(--sb-theme-choice-disabled-foreground,#5c5c5c)}.sb-sentiment:disabled{cursor:default}.sb-spark-ring{z-index:-1;pointer-events:none;animation:.22s cubic-bezier(.25,.46,.45,.94) both sb-spark-ring-in;position:absolute;inset:-26px}.sb-spark-ring__spark{--sb-spark-angle:calc(var(--sb-spark-index) * 30deg);width:7px;height:7px;transform:translate(-50%, -50%) rotate(var(--sb-spark-angle)) translateY(-54px);background:#dedede;border-radius:50%;position:absolute;top:50%;left:50%}.sb-spark-ring__spark:nth-child(2n){width:12px;height:12px;transform:translate(-50%, -50%) rotate(var(--sb-spark-angle)) translateY(-59px)}.sb-question--choices,.sb-question--text{justify-self:stretch;width:auto;margin:0 24px}.sb-question--choices{box-sizing:content-box;scrollbar-gutter:stable;align-content:start;gap:8px;max-height:320.5px;margin:-4px 20px;padding:4px;overflow:hidden auto}.sb-question--choices-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sb-question--choices-single{grid-template-columns:minmax(0,1fr)}.sb-question--choices-scrolling{padding-bottom:20px}.sb-choice{white-space:normal;width:100%;min-width:0;height:51px;padding:0 8px}.sb-question--choices-single .sb-choice{overflow-wrap:anywhere;text-align:left;border-radius:16px;justify-content:flex-start;height:auto;min-height:51px;padding:16px 22px}.sb-choice--other{color:var(--sb-theme-input-placeholder,#08080866);gap:0;font-weight:400}.sb-choice--other:before{background:var(--sb-theme-input-foreground,var(--sb-text));flex:0 0 1px;width:1px;height:22px;position:static;transform:none}.sb-question--text{padding-top:10px}.sb-question--other{animation:.25s ease-in-out both sb-step-in}.sb-textarea-shell,.sb-textarea{height:155px;min-height:155px}.sb-textarea{padding:17px 22px;font-size:16px;font-weight:400;line-height:1.2}.sb-sheet__body--question{padding-bottom:16px}.sb-sheet__footer{border-top:1px solid var(--sb-theme-sheet-divider,#e2e2e2);justify-content:flex-end;align-items:center;gap:16px;min-height:84px;margin:0;padding:16px 20px 20px;display:flex}.sb-sheet__footer-comment{color:var(--sb-theme-content-helper,var(--sb-text-muted));text-align:left;-webkit-line-clamp:2;-webkit-box-orient:vertical;flex:auto;margin:0;font-size:16px;font-weight:600;line-height:1.2;animation:.18s ease-out both sb-footer-comment-in,.18s ease-in 1s forwards sb-footer-comment-out;display:-webkit-box;overflow:hidden}.sb-next{flex:0 0 101px;height:48px}.sb-next svg{width:20px;height:20px;transform:none}.sb-sheet--completing .sb-progress__fill{transition-duration:.5s}.sb-thanks{gap:23px;padding:0;animation:.3s ease-in-out .89s both sb-completion-in}.sb-thanks__icon-shell{animation:sb-completion-icon-in .72s var(--sb-sheet-motion-ease) .35s both}.sb-thanks__icon-core svg{width:35.44px;height:27.02px}.sb-thanks__copy{width:100%;max-width:330px}.sb-thanks__copy h2{letter-spacing:-.6px;font-weight:600}.sb-thanks__copy p{max-width:292px;margin-inline:auto;line-height:1.5}.sb-thanks__actions{gap:10px}.sb-choice-measure.sb-choice-measure{white-space:nowrap;visibility:hidden;pointer-events:none;width:max-content;max-width:none;display:flex;position:absolute}@keyframes sb-fab-enter-scale{0%{scale:0}to{scale:1}}@keyframes sb-fab-enter-width{0%{width:60px;translate:var(--sb-fab-anchor-offset) 0}to{width:var(--sb-fab-expanded-width);translate:0}}@keyframes sb-fab-label-in{0%{opacity:0}to{opacity:1}}@keyframes sb-fab-timer-in{0%{opacity:0}to{opacity:1}}@keyframes sb-fab-exit-width{0%{width:var(--sb-fab-exit-width,var(--sb-fab-expanded-width));translate:var(--sb-fab-exit-offset,0) 0}to{width:60px;translate:var(--sb-fab-anchor-offset) 0}}@keyframes sb-fab-label-out{0%{opacity:var(--sb-fab-exit-label-opacity,1)}to{opacity:0}}@keyframes sb-fab-badge-out{0%{scale:1}to{scale:0}}@keyframes sb-fab-exit-scale{0%{scale:var(--sb-fab-exit-scale,1)}to{scale:0}}@keyframes sb-sheet-in-mobile{0%{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}@keyframes sb-sheet-in-desktop{0%{opacity:0;transform:translate(-50%,calc(28px - 50%))}to{opacity:1;transform:translate(-50%,-50%)}}@keyframes sb-sheet-out-mobile{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@keyframes sb-sheet-out-desktop{0%{opacity:1;transform:translate(-50%,-50%)}to{opacity:0;transform:translate(-50%,100vh)}}@keyframes sb-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes sb-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes sb-fab-timer-bar{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes sb-card-in{0%{opacity:0;transform:translate(-50%,28px)}to{opacity:1;transform:translate(-50%)}}@keyframes sb-card-out{0%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%,calc(100% + 8px))}}@keyframes sb-step-in{0%{opacity:0}to{opacity:1}}@keyframes sb-acknowledgement-in{0%{opacity:0;transform:scale(1.12)}to{opacity:1;transform:scale(1)}}@keyframes sb-next-acknowledgement{0%,to{rotate:0deg;scale:1}39%{rotate:-14deg;scale:1.18}}@keyframes sb-spark-ring-in{0%{opacity:0;transform:scale(.55)}to{opacity:1;transform:scale(1)}}@keyframes sb-footer-comment-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes sb-footer-comment-out{0%{opacity:1}to{opacity:0}}@keyframes sb-completion-icon-in{0%{opacity:0;transform:translateY(46px)scale(.72)}58%{opacity:1;transform:translateY(46px)scale(1.82)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes sb-completion-in{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.sb-fab--entering,.sb-fab--entering .sb-fab__label,.sb-fab--entering .sb-fab__timer,.sb-fab--exiting,.sb-fab--exiting .sb-fab__label,.sb-fab--exiting .sb-fab__badge,.sb-sheet,.sb-step,.sb-spark-ring,.sb-sheet__acknowledgement,.sb-sheet__footer-comment,.sb-thanks,.sb-thanks__icon-shell,.sb-sheet-root__overlay,.sb-sheet-root--exiting .sb-sheet,.sb-sheet-root--exiting .sb-sheet-root__overlay{animation-duration:.001ms;animation-delay:0s}.sb-fab--entering .sb-fab__timer-fill{animation-delay:0s}.sb-sheet__footer-comment{animation:none}}";
576
614
  //#endregion
577
615
  //#region src/ui/snackbar-ui.ts
578
- function V(e, t) {
616
+ function H(e, t) {
579
617
  let n = document.createElement(e);
580
618
  return n.className = t, n;
581
619
  }
582
- var ge = class {
583
- root = V("div", "sb-snackbar-root");
584
- shell = V("div", "sb-snackbar-shell");
585
- surface = V("div", "sb-snackbar-surface");
586
- compact = V("div", "sb-snackbar-compact");
587
- card = V("div", "sb-snackbar-card");
620
+ var be = class {
621
+ root = H("div", "sb-snackbar-root");
622
+ shell = H("div", "sb-snackbar-shell");
623
+ surface = H("div", "sb-snackbar-surface");
624
+ compact = H("div", "sb-snackbar-compact");
625
+ card = H("div", "sb-snackbar-card");
588
626
  overlay = document.createElement("button");
589
627
  close = document.createElement("button");
590
- acknowledgement = V("span", "sb-bar-acknowledgement");
591
- acknowledgementCopy = V("span", "sb-bar-acknowledgement-copy");
592
- barContent = V("div", "sb-bar-content");
628
+ acknowledgement = H("div", "sb-bar-ack");
593
629
  answers = /* @__PURE__ */ new Map();
594
630
  timers = /* @__PURE__ */ new Set();
595
631
  observer;
596
632
  session;
597
633
  stage = "entering";
598
634
  expanded = !1;
635
+ acknowledged = !1;
599
636
  destroyed = !1;
600
637
  seen = !1;
601
638
  cancelVisibilityGate = null;
@@ -609,35 +646,39 @@ var ge = class {
609
646
  this.root.dataset.presentation = t.sentimentPresentation, this.root.dataset.position = t.barPosition;
610
647
  let s = t.survey.questions[t.survey.root_node_id], { imageUrl: c } = h(s, t.survey.fab);
611
648
  this.compact.setAttribute("role", "group"), this.compact.setAttribute("aria-label", s.prompt);
612
- let l = V("span", "sb-snackbar-artwork");
649
+ let l = H("span", "sb-snackbar-artwork");
613
650
  l.setAttribute("aria-hidden", "true");
614
- let u = V("span", "sb-fab__badge-artwork");
651
+ let u = H("span", "sb-fab__badge-artwork");
615
652
  for (let e of [
616
653
  "center",
617
654
  "amber",
618
655
  "mint",
619
656
  "rose"
620
- ]) u.append(V("span", `sb-fab__badge-glyph-${e}`));
657
+ ]) u.append(H("span", `sb-fab__badge-glyph-${e}`));
621
658
  if (l.append(u), c) {
622
659
  let e = document.createElement("img");
623
660
  e.src = c, e.alt = "", e.addEventListener("error", () => e.remove(), { once: !0 }), l.append(e);
624
661
  }
625
- let d = V("p", "sb-snackbar-prompt");
626
- d.textContent = s.prompt, o && t.barBehavior === "dismiss" && (this.acknowledgement.setAttribute("role", "status"), this.acknowledgement.append(this.acknowledgementCopy));
627
- let f = V("div", "sb-snackbar-answers");
662
+ let d = H("p", "sb-snackbar-prompt");
663
+ d.textContent = s.prompt;
664
+ let f = H("div", "sb-snackbar-answers");
628
665
  for (let n of s.answers ?? []) {
629
666
  let r = document.createElement("button");
630
- r.type = "button", r.className = "sb-snackbar-answer", r.setAttribute("aria-label", n.label), r.innerHTML = p(n) ? z : B, r.addEventListener("click", () => {
667
+ r.type = "button", r.className = "sb-snackbar-answer", r.setAttribute("aria-label", n.label), r.innerHTML = p(n) ? B : V, r.addEventListener("click", () => {
631
668
  this.confirmSeenByUser(), e.answerSnackbar(t.presentationId, n.id);
632
669
  }), this.answers.set(n.id, r), f.append(r);
633
670
  }
634
671
  let m = t.survey.fab?.timerStyle ?? "none", g = null;
635
- m !== "none" && (g = V("span", `sb-snackbar-timer sb-snackbar-timer--${m}`), g.setAttribute("aria-hidden", "true"), g.append(V("span", "sb-snackbar-timer-fill")), m === "bar" && !o ? d.append(g) : this.compact.append(g)), o || this.compact.append(l), o ? (this.barContent.append(d, f), this.compact.append(this.barContent)) : this.compact.append(d, f), this.overlay.type = "button", this.overlay.className = "sb-snackbar-overlay", this.overlay.tabIndex = -1, this.overlay.setAttribute("aria-hidden", "true"), this.overlay.addEventListener("click", () => void e.closeSurvey()), this.close.type = "button", this.close.className = o ? "sb-bar-dismiss" : "sb-snackbar-close", o ? this.close.textContent = "Not Now" : (this.close.setAttribute("aria-label", "Close survey"), this.close.innerHTML = fe), this.close.addEventListener("click", this.closeByUser), this.surface.append(this.compact, this.card), this.shell.append(this.surface), o ? this.compact.append(this.close) : this.shell.append(this.close), o && t.barBehavior === "dismiss" && this.compact.append(this.acknowledgement), this.root.append(this.overlay, this.shell), n.append(this.root), this.observer = typeof ResizeObserver > "u" ? null : new ResizeObserver(this.updatePlacement), this.observer?.observe(this.compact), this.observer?.observe(this.card), window.addEventListener("resize", this.updatePlacement), window.visualViewport?.addEventListener("resize", this.updatePlacement), window.visualViewport?.addEventListener("scroll", this.updatePlacement), o && (this.surface.addEventListener("pointerenter", this.onPointerEnter), this.surface.addEventListener("pointerleave", this.onPointerLeave)), this.update(t), this.after(ue(o, this.reducedMotion()), this.startVisibilityGate), this.after(o ? this.reducedMotion() ? j.reduced : le : this.reducedMotion() ? 0 : m === "none" ? A.entrance : A.timerEntrance, () => {
672
+ if (m !== "none" && (g = H("span", `sb-snackbar-timer sb-snackbar-timer--${m}`), g.setAttribute("aria-hidden", "true"), g.append(H("span", "sb-snackbar-timer-fill")), m === "bar" && !o ? d.append(g) : this.compact.append(g)), o) {
673
+ let e = H("div", "sb-bar-content");
674
+ e.append(d, f), this.compact.append(e);
675
+ } else this.compact.append(l, d, f);
676
+ this.overlay.type = "button", this.overlay.className = "sb-snackbar-overlay", this.overlay.tabIndex = -1, this.overlay.setAttribute("aria-hidden", "true"), this.overlay.addEventListener("click", () => void e.closeSurvey()), this.close.type = "button", this.close.className = o ? "sb-bar-dismiss" : "sb-snackbar-close", o ? this.close.textContent = "Not Now" : (this.close.setAttribute("aria-label", "Close survey"), this.close.innerHTML = ge), this.close.addEventListener("click", this.closeByUser), this.acknowledgement.setAttribute("role", "status"), this.surface.append(this.compact, this.acknowledgement, this.card), this.shell.append(this.surface), o ? this.compact.append(this.close) : this.shell.append(this.close), this.root.append(this.overlay, this.shell), n.append(this.root), this.observer = typeof ResizeObserver > "u" ? null : new ResizeObserver(this.updatePlacement), this.observer?.observe(this.compact), this.observer?.observe(this.card), this.observer?.observe(this.acknowledgement), window.addEventListener("resize", this.updatePlacement), window.visualViewport?.addEventListener("resize", this.updatePlacement), window.visualViewport?.addEventListener("scroll", this.updatePlacement), o && (this.surface.addEventListener("pointerenter", this.onPointerEnter), this.surface.addEventListener("pointerleave", this.onPointerLeave)), this.update(t), this.after(me(o, this.reducedMotion()), this.startVisibilityGate), this.after(o ? this.reducedMotion() ? j.reduced : de : this.reducedMotion() ? 0 : m === "none" ? A.entrance : A.timerEntrance, () => {
636
677
  this.stage = "compact", this.updateStage(), e.confirmEntryDisplayed(t.presentationId), e.confirmFabEntranceCompleted(t.presentationId), this.startVisibilityGate(), o && this.surface.matches(":hover") && window.matchMedia?.("(hover: hover)").matches && e.setBarTimerPaused(t.presentationId, !0);
637
678
  });
638
679
  }
639
680
  startVisibilityGate = () => {
640
- this.seen || this.cancelVisibilityGate || this.destroyed || (this.cancelVisibilityGate = g(this.surface, () => {
681
+ this.seen || this.cancelVisibilityGate || this.destroyed || (this.cancelVisibilityGate = te(this.surface, () => {
641
682
  this.cancelVisibilityGate = null, this.markSeen();
642
683
  }));
643
684
  };
@@ -652,26 +693,38 @@ var ge = class {
652
693
  };
653
694
  update(e) {
654
695
  this.session = e;
655
- for (let [t, n] of Object.entries(ce(e.survey.theme))) this.root.style.setProperty(t, n);
656
- this.root.style.setProperty("--sb-snackbar-duration", `${e.survey.fab?.expandedTimeout ?? 0}ms`), this.root.style.setProperty("--sb-snackbar-fraction", String(e.snackbar?.frozenFraction ?? 1)), this.root.dataset.counting = String(e.snackbar?.deadline != null || e.snackbar?.pausedRemainingMs != null), this.root.dataset.paused = String(e.snackbar?.pausedRemainingMs != null), this.root.dataset.timed = String((e.survey.fab?.timerStyle === "bar" || e.survey.fab?.timerStyle === "fill") && typeof e.survey.fab.expandedTimeout == "number" && e.survey.fab.expandedTimeout > 0), this.root.dataset.frozen = String(e.snackbar?.frozenFraction != null), this.root.dataset.expanded = String(e.isOpen), this.root.dataset.behavior = e.barBehavior;
657
- let t = e.sentimentPresentation === "bar" && e.barBehavior === "dismiss" && e.snackbar?.selectedKey != null;
658
- if (this.root.dataset.rated = String(t), this.barContent.inert = t, this.barContent.toggleAttribute("inert", t), this.barContent.setAttribute("aria-hidden", String(t)), e.sentimentPresentation === "bar" && e.barBehavior === "dismiss") {
659
- let t = e.survey.questions[e.survey.root_node_id].answers?.find((t) => t.id === e.snackbar?.selectedKey), n = t ? t.comment?.trim() || "Thanks for your feedback." : "";
660
- this.acknowledgementCopy.textContent !== n && (this.acknowledgementCopy.textContent = n);
661
- }
696
+ for (let [t, n] of Object.entries(ue(e.survey.theme))) this.root.style.setProperty(t, n);
697
+ this.root.style.setProperty("--sb-snackbar-duration", `${e.survey.fab?.expandedTimeout ?? 0}ms`), this.root.style.setProperty("--sb-snackbar-fraction", String(e.snackbar?.frozenFraction ?? 1)), this.root.dataset.counting = String(e.snackbar?.deadline != null || e.snackbar?.pausedRemainingMs != null), this.root.dataset.paused = String(e.snackbar?.pausedRemainingMs != null), this.root.dataset.timed = String((e.survey.fab?.timerStyle === "bar" || e.survey.fab?.timerStyle === "fill") && typeof e.survey.fab.expandedTimeout == "number" && e.survey.fab.expandedTimeout > 0), this.root.dataset.frozen = String(e.snackbar?.frozenFraction != null), this.root.dataset.expanded = String(e.isOpen);
662
698
  for (let [t, n] of this.answers) n.disabled = !e.fabEntranceCompleted || e.snackbar?.phase !== "question", n.setAttribute("aria-pressed", String(e.snackbar?.selectedKey === t));
663
- if (e.isOpen) {
699
+ if (e.sentimentPresentation === "bar" && e.snackbar?.phase === "feedback" && !this.acknowledged && this.acknowledge(e), e.isOpen) {
664
700
  let t = this.renderCard(e);
665
- this.card.contains(t) || this.card.replaceChildren(t), this.expanded || (this.expanded = !0, this.stage = "widening", this.after(this.reducedMotion() ? 0 : A.widen, () => {
666
- this.stage = "expanding", this.updateStage();
667
- }), this.after(this.reducedMotion() ? 0 : A.widen + A.expand, () => {
668
- this.stage = "ready", this.updateStage(), this.store.confirmPresentation("sheet", e.presentationId), this.store.confirmSnackbarContentReady(e.presentationId), this.onReady();
669
- }));
701
+ if (this.card.contains(t) || this.card.replaceChildren(t), !this.expanded) {
702
+ this.expanded = !0;
703
+ let t = this.reducedMotion() ? 0 : this.acknowledged ? M.leave : A.widen, n = this.reducedMotion() ? 0 : this.acknowledged ? M.grow : A.expand;
704
+ this.stage = this.acknowledged ? "leaving" : "widening", this.after(t, () => {
705
+ this.stage = "expanding", this.updateStage();
706
+ }), this.after(t + n, () => {
707
+ this.stage = "ready", this.updateStage(), this.store.confirmPresentation("sheet", e.presentationId), this.store.confirmSnackbarContentReady(e.presentationId), this.onReady();
708
+ });
709
+ }
670
710
  }
671
711
  this.updateStage();
672
712
  }
713
+ acknowledge(e) {
714
+ let t = e.survey.questions[e.survey.root_node_id].answers?.find((t) => t.id === e.snackbar?.selectedKey);
715
+ if (!t) return;
716
+ this.acknowledged = !0, this.root.dataset.acknowledged = "true";
717
+ let n = H("span", "sb-bar-ack-icon");
718
+ n.setAttribute("aria-hidden", "true");
719
+ let r = H("span", "sb-bar-ack-glyph");
720
+ r.innerHTML = p(t) ? B : V, n.append(H("span", "sb-bar-ack-halo"), r);
721
+ let i = H("p", "sb-bar-ack-copy");
722
+ i.textContent = t.comment?.trim() || "Thanks for your feedback.", this.acknowledgement.replaceChildren(n, i), this.stage = "answered", this.after(this.reducedMotion() ? 0 : M.stripFade, () => {
723
+ this.stage === "answered" && (this.stage = "acknowledging", this.updateStage());
724
+ });
725
+ }
673
726
  updateStage() {
674
- this.root.dataset.stage = this.stage, this.compact.inert = this.session.isOpen || this.stage === "entering" || this.stage === "exiting", this.compact.toggleAttribute("inert", this.compact.inert), this.compact.setAttribute("aria-hidden", String(this.compact.inert)), this.card.inert = this.stage !== "ready", this.card.toggleAttribute("inert", this.card.inert), this.card.setAttribute("aria-hidden", String(this.card.inert)), this.overlay.disabled = this.stage !== "ready", this.close.disabled = this.session.isOpen || this.stage === "exiting" || this.root.dataset.rated === "true", this.updatePlacement();
727
+ this.root.dataset.stage = this.stage, this.compact.inert = this.session.isOpen || this.stage === "entering" || this.stage === "exiting", this.compact.toggleAttribute("inert", this.compact.inert), this.compact.setAttribute("aria-hidden", String(this.compact.inert)), this.card.inert = this.stage !== "ready", this.card.toggleAttribute("inert", this.card.inert), this.card.setAttribute("aria-hidden", String(this.card.inert)), this.overlay.disabled = this.stage !== "ready", this.close.disabled = this.session.isOpen || this.stage === "exiting", this.updatePlacement();
675
728
  }
676
729
  updatePlacement = () => {
677
730
  if (this.stage === "exiting") return;
@@ -690,35 +743,31 @@ var ge = class {
690
743
  cardHeight: this.card.querySelector(".sb-sheet")?.offsetHeight || 0,
691
744
  barPosition: this.session.sentimentPresentation === "bar" ? this.session.barPosition : void 0
692
745
  };
693
- this.root.style.setProperty("--sb-snackbar-compact-width", `${M(o, s).compactWidth}px`);
694
- let c = this.root.dataset.rated === "true";
695
- c && (this.compact.style.minHeight = "48px");
696
- let l = getComputedStyle(this.compact), u = Number.parseFloat(l.height) || this.compact.offsetHeight || (s.barPosition ? 48 : 64), d = c ? Math.max(u, this.acknowledgementCopy.scrollHeight + i(l.paddingTop) + i(l.paddingBottom)) : u;
697
- c && this.compact.style.removeProperty("min-height");
698
- let f = M(o, {
746
+ this.root.style.setProperty("--sb-snackbar-compact-width", `${N(o, s).compactWidth}px`);
747
+ let c = Number.parseFloat(getComputedStyle(this.compact).height) || this.compact.offsetHeight || (s.barPosition ? 48 : 64), l = N(o, {
699
748
  ...s,
700
- compactHeight: d
749
+ compactHeight: c
701
750
  });
702
751
  this.root.style.left = `${e?.offsetLeft ?? 0}px`, this.root.style.top = `${e?.offsetTop ?? 0}px`, this.root.style.width = `${t}px`, this.root.style.height = `${n}px`;
703
- let p = [
752
+ let u = [
704
753
  "widening",
705
754
  "expanding",
706
755
  "ready"
707
- ].includes(this.stage);
708
- this.root.style.setProperty("--sb-bar-top", `${p ? f.cardTop : 0}px`);
709
- let m = ["expanding", "ready"].includes(this.stage), g = {
710
- left: p ? f.cardLeft : f.compactLeft,
711
- bottom: p ? f.cardBottom : f.compactBottom,
712
- width: p ? f.cardWidth : f.compactWidth,
713
- height: m ? f.cardHeight : d,
714
- "compact-height": d,
715
- "card-width": f.cardWidth,
716
- "compact-width": f.compactWidth,
717
- "entrance-offset": f.entranceOffset,
718
- "max-height": f.maxCardHeight
756
+ ].includes(this.stage), d = ["expanding", "ready"].includes(this.stage), f = fe(this.stage), p = pe(l);
757
+ this.root.style.setProperty("--sb-bar-top", `${f ? p.top : u ? l.cardTop : 0}px`), f && this.root.style.setProperty("--sb-snackbar-width", `${p.width}px`);
758
+ let m = {
759
+ left: f ? p.left : u ? l.cardLeft : l.compactLeft,
760
+ bottom: f ? p.bottom : u ? l.cardBottom : l.compactBottom,
761
+ width: f ? p.width : u ? l.cardWidth : l.compactWidth,
762
+ height: f ? this.acknowledgement.offsetHeight : d ? l.cardHeight : c,
763
+ "compact-height": c,
764
+ "card-width": l.cardWidth,
765
+ "compact-width": l.compactWidth,
766
+ "entrance-offset": l.entranceOffset,
767
+ "max-height": l.maxCardHeight
719
768
  };
720
- for (let [e, t] of Object.entries(g)) this.root.style.setProperty(`--sb-snackbar-${e}`, `${t}px`);
721
- this.shell.style.transformOrigin = f.transformOrigin;
769
+ for (let [e, t] of Object.entries(m)) this.root.style.setProperty(`--sb-snackbar-${e}`, `${t}px`);
770
+ this.shell.style.transformOrigin = l.transformOrigin;
722
771
  };
723
772
  reducedMotion() {
724
773
  return window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1;
@@ -746,16 +795,16 @@ var ge = class {
746
795
  for (let e of this.timers) clearTimeout(e);
747
796
  this.cancelVisibilityGate?.(), this.cancelVisibilityGate = null, this.observer?.disconnect(), window.removeEventListener("resize", this.updatePlacement), window.visualViewport?.removeEventListener("resize", this.updatePlacement), window.visualViewport?.removeEventListener("scroll", this.updatePlacement), this.surface.removeEventListener("pointerenter", this.onPointerEnter), this.surface.removeEventListener("pointerleave", this.onPointerLeave), this.root.remove();
748
797
  }
749
- }, H = 1969.207, _e = 2169.207, ve = 856.839, ye = 450;
750
- function U(e, t) {
798
+ }, U = 1969.207, xe = 2169.207, Se = 856.839, Ce = 450;
799
+ function W(e, t) {
751
800
  let n = document.createElement(e);
752
801
  return t && (n.className = t), n;
753
802
  }
754
- function W(e, t) {
755
- let n = U("button", e);
803
+ function G(e, t) {
804
+ let n = W("button", e);
756
805
  return n.type = "button", t && n.setAttribute("aria-label", t), n;
757
806
  }
758
- var be = 0, xe = class {
807
+ var we = 0, Te = class {
759
808
  host;
760
809
  root;
761
810
  store;
@@ -777,14 +826,17 @@ var be = 0, xe = class {
777
826
  restoreFocus = null;
778
827
  restoreFocusPending = !1;
779
828
  safeAreaProbe;
780
- uiId = ++be;
829
+ uiId = ++we;
781
830
  snackbarUi = null;
782
831
  snackbarIdentity = null;
783
832
  outgoingSnackbarUis = /* @__PURE__ */ new Set();
833
+ choiceColumnsObserver = null;
834
+ stopChoiceColumnsFonts = null;
835
+ choiceColumns = null;
784
836
  constructor(e, t = document.body) {
785
- this.store = e, this.host = U("div"), this.host.setAttribute("data-sideband", ""), this.host.tabIndex = -1;
837
+ this.store = e, this.host = W("div"), this.host.setAttribute("data-sideband", ""), this.host.tabIndex = -1;
786
838
  let n = this.host.attachShadow({ mode: "open" }), r = document.createElement("style");
787
- r.textContent = he, n.appendChild(r), this.safeAreaProbe = U("div", "sb-safe-area-probe"), n.appendChild(this.safeAreaProbe), this.root = U("div"), n.appendChild(this.root), t.appendChild(this.host), this.applyTheme(), this.unsubscribe = e.subscribe((e) => {
839
+ r.textContent = ye, n.appendChild(r), this.safeAreaProbe = W("div", "sb-safe-area-probe"), n.appendChild(this.safeAreaProbe), this.root = W("div", "sb-root"), n.appendChild(this.root), t.appendChild(this.host), this.applyTheme(), this.unsubscribe = e.subscribe((e) => {
788
840
  if (e === "text") {
789
841
  this.updateContinueButton();
790
842
  return;
@@ -809,7 +861,7 @@ var be = 0, xe = class {
809
861
  }), window.addEventListener("keydown", this.onKeyDown), window.addEventListener("resize", this.onViewportChange), window.addEventListener("orientationchange", this.onViewportChange), window.visualViewport?.addEventListener("resize", this.onViewportChange), window.visualViewport?.addEventListener("scroll", this.onViewportChange), this.render();
810
862
  }
811
863
  destroy() {
812
- this.unsubscribe(), this.snackbarUi?.destroy();
864
+ this.unsubscribe(), this.stopChoiceColumns(), this.snackbarUi?.destroy();
813
865
  for (let e of this.outgoingSnackbarUis) e.destroy();
814
866
  this.outgoingSnackbarUis.clear(), this.clearFabEntranceTimer();
815
867
  for (let e of this.fabExitTimers) clearTimeout(e);
@@ -860,10 +912,10 @@ var be = 0, xe = class {
860
912
  let e = this.snackbarUi;
861
913
  !t && e.root.dataset.presentation === "bar" ? (this.outgoingSnackbarUis.add(e), e.exit(() => {
862
914
  this.outgoingSnackbarUis.delete(e), this.restoreFocusWhenAnimationsComplete();
863
- })) : e.destroy(), this.snackbarUi = null, this.snackbarIdentity = null, this.sheetEl = null, this.sheetRootEl = null;
915
+ })) : e.destroy(), this.snackbarUi = null, this.snackbarIdentity = null, this.stopChoiceColumns(), this.sheetEl = null, this.sheetRootEl = null;
864
916
  }
865
917
  if (t?.snackbar) {
866
- this.snackbarUi ? (this.snackbarUi.update(t), e && t.snackbar.phase === "journey" && this.focusSheet()) : (this.startActiveFabExit(), this.sheetExitTimer !== null && clearTimeout(this.sheetExitTimer), this.sheetRootEl?.remove(), this.sheetEl = null, this.sheetRootEl = null, this.restoreFocus = document.activeElement instanceof HTMLElement ? document.activeElement : null, this.snackbarIdentity = t.presentationId, this.snackbarUi = new ge(this.store, t, this.root, this.safeAreaProbe, (e) => this.sheetEl && this.sheetRootEl ? (this.fillSheet(this.sheetEl, e), this.sheetRootEl) : this.renderSheet(e), () => this.focusSheet()));
918
+ this.snackbarUi ? (this.snackbarUi.update(t), e && t.snackbar.phase === "journey" && this.focusSheet()) : (this.startActiveFabExit(), this.sheetExitTimer !== null && clearTimeout(this.sheetExitTimer), this.sheetRootEl?.remove(), this.stopChoiceColumns(), this.sheetEl = null, this.sheetRootEl = null, this.restoreFocus = document.activeElement instanceof HTMLElement ? document.activeElement : null, this.snackbarIdentity = t.presentationId, this.snackbarUi = new be(this.store, t, this.root, this.safeAreaProbe, (e) => this.sheetEl && this.sheetRootEl ? (this.fillSheet(this.sheetEl, e), this.sheetRootEl) : this.renderSheet(e), () => this.focusSheet()));
867
919
  return;
868
920
  }
869
921
  if (t && (t.isOpen || t.completion)) {
@@ -891,31 +943,31 @@ var be = 0, xe = class {
891
943
  this.continueButton.disabled = !!e?.isBusy || !this.store.canContinue();
892
944
  }
893
945
  renderFab(e) {
894
- let { survey: t, fabState: n } = e, r = o(t), i = W(`sb-fab sb-fab--${n} sb-fab--entering`, r);
946
+ let { survey: t, fabState: n } = e, r = o(t), i = G(`sb-fab sb-fab--${n} sb-fab--entering`, r);
895
947
  i.addEventListener("click", () => {
896
948
  this.restoreFocus = i, this.store.openSurvey();
897
949
  });
898
- let a = U("span", "sb-fab__badge");
950
+ let a = W("span", "sb-fab__badge");
899
951
  if (a.setAttribute("aria-hidden", "true"), t.fab?.imageUrl) {
900
- let e = U("img", "sb-fab__badge-image");
952
+ let e = W("img", "sb-fab__badge-image");
901
953
  e.src = t.fab.imageUrl, e.alt = "", e.addEventListener("error", () => e.remove(), { once: !0 }), a.appendChild(e);
902
954
  }
903
- let s = U("span", "sb-fab__badge-artwork");
904
- if (s.appendChild(U("span", "sb-fab__badge-glyph-center")), s.appendChild(U("span", "sb-fab__badge-glyph-amber")), s.appendChild(U("span", "sb-fab__badge-glyph-mint")), s.appendChild(U("span", "sb-fab__badge-glyph-rose")), a.appendChild(s), i.appendChild(a), n === "expanded") {
905
- let e = U("span", "sb-fab__label");
955
+ let s = W("span", "sb-fab__badge-artwork");
956
+ if (s.appendChild(W("span", "sb-fab__badge-glyph-center")), s.appendChild(W("span", "sb-fab__badge-glyph-amber")), s.appendChild(W("span", "sb-fab__badge-glyph-mint")), s.appendChild(W("span", "sb-fab__badge-glyph-rose")), a.appendChild(s), i.appendChild(a), n === "expanded") {
957
+ let e = W("span", "sb-fab__label");
906
958
  e.textContent = r, i.appendChild(e);
907
959
  }
908
960
  return i;
909
961
  }
910
962
  applyTheme(e) {
911
- let t = e ? se(e) : oe;
963
+ let t = e ? le(e) : ce;
912
964
  for (let [e, n] of Object.entries(t)) this.host.style.setProperty(e, n);
913
965
  }
914
966
  applyFabPresentation(e, t) {
915
967
  this.updateFabPlacement(e, t), this.applyFabTimer(e, t);
916
968
  }
917
969
  updateFabPlacement(e, t) {
918
- let n = window.visualViewport, r = n && Number.isFinite(n.width) && n.width > 0 ? n.width : window.innerWidth, i = n && Number.isFinite(n.height) && n.height > 0 ? n.height : window.innerHeight, a = n && Number.isFinite(n.offsetLeft) ? n.offsetLeft : 0, o = n && Number.isFinite(n.offsetTop) ? n.offsetTop : 0, s = this.readSafeArea(), c = e.querySelector(".sb-fab__label"), l = c ? c.scrollWidth || c.getBoundingClientRect().width || this.estimatedTextWidth(c.textContent ?? "") : 0, u = Math.max(0, r - s.left - s.right), d = Math.min(u, Math.max(86, 86 + Math.ceil(l))), f = e.getBoundingClientRect(), p = e.offsetHeight || f.height || 60, m = R(t.survey.fab?.placement, {
970
+ let n = window.visualViewport, r = n && Number.isFinite(n.width) && n.width > 0 ? n.width : window.innerWidth, i = n && Number.isFinite(n.height) && n.height > 0 ? n.height : window.innerHeight, a = n && Number.isFinite(n.offsetLeft) ? n.offsetLeft : 0, o = n && Number.isFinite(n.offsetTop) ? n.offsetTop : 0, s = this.readSafeArea(), c = e.querySelector(".sb-fab__label"), l = c ? c.scrollWidth || c.getBoundingClientRect().width || this.estimatedTextWidth(c.textContent ?? "") : 0, u = Math.max(0, r - s.left - s.right), d = Math.min(u, Math.max(86, 86 + Math.ceil(l))), f = e.getBoundingClientRect(), p = e.offsetHeight || f.height || 60, m = z(t.survey.fab?.placement, {
919
971
  viewport: {
920
972
  width: r,
921
973
  height: i
@@ -931,7 +983,7 @@ var be = 0, xe = class {
931
983
  e.style.setProperty("--sb-fab-anchor-offset", `${(d - 60) * h}px`);
932
984
  }
933
985
  applyFabTimer(e, t) {
934
- let n = de(t.survey.fab?.timerStyle, t.survey.fab?.expandedTimeout, "forward"), r = `${n.style}:${n.durationMs ?? "static"}`, i = e.querySelector(".sb-fab__timer");
986
+ let n = he(t.survey.fab?.timerStyle, t.survey.fab?.expandedTimeout, "forward"), r = `${n.style}:${n.durationMs ?? "static"}`, i = e.querySelector(".sb-fab__timer");
935
987
  e.dataset.timerStyle = n.style;
936
988
  for (let [t, r] of Object.entries(n.cssVariables)) e.style.setProperty(t, r);
937
989
  if (!n.visible) {
@@ -941,16 +993,16 @@ var be = 0, xe = class {
941
993
  let a = this.getTextDirection();
942
994
  if (e.style.setProperty("--sb-fab-timer-origin", a === "rtl" ? "right" : "left"), e.dataset.timerDirection = a, i && e.dataset.timerSignature === r) return;
943
995
  i?.remove();
944
- let o = U("span", `sb-fab__timer sb-fab__timer--${n.style}`);
945
- o.setAttribute("aria-hidden", "true"), o.appendChild(U("span", "sb-fab__timer-fill")), e.appendChild(o), e.dataset.timerSignature = r;
996
+ let o = W("span", `sb-fab__timer sb-fab__timer--${n.style}`);
997
+ o.setAttribute("aria-hidden", "true"), o.appendChild(W("span", "sb-fab__timer-fill")), e.appendChild(o), e.dataset.timerSignature = r;
946
998
  }
947
999
  startFabEntranceConfirmation(e, t) {
948
1000
  this.clearFabEntranceTimer();
949
1001
  let n = this.prefersReducedMotion();
950
1002
  this.fabEntranceTimer = setTimeout(() => {
951
1003
  this.fabEntranceTimer = null, !(this.activeFabEl !== e || this.activeFabIdentity !== t) && (this.store.confirmPresentation("expanded_fab"), this.store.confirmFabEntranceCompleted());
952
- }, n ? 0 : H);
953
- let r = e.querySelector(".sb-fab__timer") ? _e : H;
1004
+ }, n ? 0 : U);
1005
+ let r = e.querySelector(".sb-fab__timer") ? xe : U;
954
1006
  this.fabSettlingTimer = setTimeout(() => {
955
1007
  this.fabSettlingTimer = null, this.activeFabEl === e && this.activeFabIdentity === t && e.classList.remove("sb-fab--entering");
956
1008
  }, n ? 0 : r);
@@ -964,7 +1016,7 @@ var be = 0, xe = class {
964
1016
  this.clearFabEntranceTimer();
965
1017
  let t = getComputedStyle(e), n = Number.parseFloat(t.width) || e.offsetWidth || 314, r = Number.parseFloat(e.style.getPropertyValue("--sb-fab-expanded-width")) || n, i = Number.parseFloat(e.style.getPropertyValue("--sb-fab-anchor-offset")) || 0, a = r === 60 ? 0 : i / (r - 60), o = e.querySelector(".sb-fab__label"), s = e.querySelector(".sb-fab__timer");
966
1018
  e.style.setProperty("--sb-fab-exit-width", `${n}px`), e.style.setProperty("--sb-fab-exit-offset", `${(r - n) * a}px`), e.style.setProperty("--sb-fab-exit-scale", t.getPropertyValue("scale") || "1"), e.style.setProperty("--sb-fab-exit-label-opacity", o ? getComputedStyle(o).opacity : "0"), e.style.setProperty("--sb-fab-exit-timer-opacity", s ? getComputedStyle(s).opacity : "0"), e.classList.remove("sb-fab--entering"), e.classList.add("sb-fab--exiting"), e.disabled = !0, e.setAttribute("aria-hidden", "true"), e.tabIndex = -1, this.activeFabEl = null, this.activeFabIdentity = null, this.outgoingFabEls.add(e);
967
- let c = this.prefersReducedMotion() ? 0 : ve, l = setTimeout(() => {
1019
+ let c = this.prefersReducedMotion() ? 0 : Se, l = setTimeout(() => {
968
1020
  this.fabExitTimers.delete(l), this.outgoingFabEls.delete(e), e.remove(), this.restoreFocusWhenAnimationsComplete();
969
1021
  }, c);
970
1022
  this.fabExitTimers.add(l);
@@ -974,8 +1026,8 @@ var be = 0, xe = class {
974
1026
  if (!e || e.classList.contains("sb-sheet-root--exiting")) return;
975
1027
  e.classList.add("sb-sheet-root--exiting"), e.setAttribute("aria-hidden", "true"), e.querySelectorAll("button").forEach((e) => {
976
1028
  e.disabled = !0;
977
- }), this.sheetEl = null;
978
- let t = this.prefersReducedMotion() ? 0 : ye;
1029
+ }), this.stopChoiceColumns(), this.sheetEl = null;
1030
+ let t = this.prefersReducedMotion() ? 0 : Ce;
979
1031
  this.sheetExitTimer = setTimeout(() => {
980
1032
  this.sheetExitTimer = null, this.sheetRootEl === e && (e.remove(), this.sheetRootEl = null, this.restoreFocusWhenAnimationsComplete());
981
1033
  }, t);
@@ -1009,13 +1061,13 @@ var be = 0, xe = class {
1009
1061
  };
1010
1062
  }
1011
1063
  renderSheet(e) {
1012
- let t = U("div", "sb-sheet-root"), n = W("sb-sheet-root__overlay", "Dismiss survey");
1064
+ let t = W("div", "sb-sheet-root"), n = G("sb-sheet-root__overlay", "Dismiss survey");
1013
1065
  n.tabIndex = -1, n.addEventListener("click", () => void this.store.closeSurvey()), t.appendChild(n);
1014
- let r = U("div", "sb-sheet");
1066
+ let r = W("div", "sb-sheet");
1015
1067
  return r.setAttribute("role", "dialog"), r.setAttribute("aria-modal", "true"), t.appendChild(r), this.sheetEl = r, this.sheetRootEl = t, this.renderedSheetStep = null, this.fillSheet(r, e), t;
1016
1068
  }
1017
1069
  fillSheet(e, t) {
1018
- if (this.completionRevealTimer !== null && (clearTimeout(this.completionRevealTimer), this.completionRevealTimer = null), e.classList.toggle("sb-sheet--thanks", !!t.completion), e.classList.toggle("sb-sheet--sentiment", !t.completion && this.store.isSentimentStep()), e.classList.toggle("sb-sheet--completing", t.isCompleting), e.toggleAttribute("aria-busy", t.isCompleting), e.replaceChildren(), t.completion) {
1070
+ if (this.completionRevealTimer !== null && (clearTimeout(this.completionRevealTimer), this.completionRevealTimer = null), e.classList.toggle("sb-sheet--thanks", !!t.completion), e.classList.toggle("sb-sheet--sentiment", !t.completion && this.store.isSentimentStep()), e.classList.toggle("sb-sheet--completing", t.isCompleting), e.toggleAttribute("aria-busy", t.isCompleting), this.stopChoiceColumns(), e.replaceChildren(), t.completion) {
1019
1071
  this.renderedSheetStep = null, e.setAttribute("aria-labelledby", `sb-completion-${this.uiId}`), e.setAttribute("aria-describedby", `sb-completion-body-${this.uiId}`);
1020
1072
  let n = this.renderThankYou(t);
1021
1073
  e.appendChild(n), this.completionRevealTimer = setTimeout(() => {
@@ -1033,105 +1085,121 @@ var be = 0, xe = class {
1033
1085
  renderQuestionSheet(e, t, n) {
1034
1086
  let r = this.store.isSentimentStep(), i = this.selectedChoice(n), a = !!(i && m(i)), o = `${t.presentationId}:${n.node_id}:${a ? "text" : "question"}`, s = this.renderedSheetStep !== o;
1035
1087
  this.renderedSheetStep = o;
1036
- let c = U("div", "sb-sheet__header");
1088
+ let c = W("div", "sb-sheet__header");
1037
1089
  if (r) this.renderedProgress = null;
1038
1090
  else {
1039
- let e = U("div", "sb-progress");
1091
+ let e = W("div", "sb-progress");
1040
1092
  e.setAttribute("aria-hidden", "true");
1041
- let n = U("span", "sb-progress__fill"), r = Math.max(0, Math.min(1, t.isCompleting ? 1 : this.store.progress())), i = this.renderedProgress ?? 0;
1093
+ let n = W("span", "sb-progress__fill"), r = Math.max(0, Math.min(1, t.isCompleting ? 1 : this.store.progress())), i = this.renderedProgress ?? 0;
1042
1094
  n.style.width = `${i * 100}%`, this.renderedProgress = r, this.progressTimer !== null && clearTimeout(this.progressTimer), this.progressTimer = setTimeout(() => {
1043
1095
  this.progressTimer = null, n.isConnected && (n.style.width = `${r * 100}%`);
1044
1096
  }, i === 0 ? 100 : 0), e.appendChild(n), c.appendChild(e);
1045
1097
  }
1046
- let l = W("sb-sheet__close", "Close survey");
1098
+ let l = G("sb-sheet__close", "Close survey");
1047
1099
  l.addEventListener("click", () => void this.store.closeSurvey()), c.appendChild(l), e.appendChild(c);
1048
- let u = U("div", `sb-sheet__body ${s ? "sb-step" : ""} ${r ? "sb-sheet__body--sentiment" : "sb-sheet__body--question"}`), d = U("div", "sb-sheet__copy"), f = r ? this.selectedChoiceComment(n) : null;
1100
+ let u = W("div", `sb-sheet__body ${s ? "sb-step" : ""} ${r ? "sb-sheet__body--sentiment" : "sb-sheet__body--question"}`), d = W("div", "sb-sheet__copy"), f = r ? this.selectedChoiceComment(n) : null;
1049
1101
  if (r && !f) {
1050
- let e = U("p", "sb-sheet__eyebrow");
1102
+ let e = W("p", "sb-sheet__eyebrow");
1051
1103
  e.textContent = t.survey.title, d.appendChild(e);
1052
1104
  }
1053
- let p = U("h2");
1105
+ let p = W("h2");
1054
1106
  if (p.id = `sb-question-${this.uiId}`, p.tabIndex = -1, p.textContent = f ?? n.prompt, f && (p.className = "sb-sheet__acknowledgement", p.setAttribute("aria-live", "polite")), d.appendChild(p), u.appendChild(d), u.appendChild(this.renderQuestionView(n, r)), e.appendChild(u), this.store.shouldShowContinue()) {
1055
- let r = U("div", "sb-sheet__footer"), i = this.selectedChoiceComment(n);
1107
+ let r = W("div", "sb-sheet__footer"), i = this.selectedChoiceComment(n);
1056
1108
  if (i) {
1057
- let e = U("p", "sb-sheet__footer-comment");
1109
+ let e = W("p", "sb-sheet__footer-comment");
1058
1110
  e.textContent = i, e.setAttribute("aria-live", "polite"), r.appendChild(e);
1059
1111
  }
1060
- let a = W("sb-next", "Continue");
1061
- this.selectedChoice(n) && a.classList.add("sb-next--acknowledging"), a.innerHTML = pe, a.disabled = t.isBusy || t.isCompleting || !this.store.canContinue(), a.addEventListener("click", () => void this.store.advance()), r.appendChild(a), e.appendChild(r), this.continueButton = a;
1112
+ let a = G("sb-next", "Continue");
1113
+ this.selectedChoice(n) && a.classList.add("sb-next--acknowledging"), a.innerHTML = _e, a.disabled = t.isBusy || t.isCompleting || !this.store.canContinue(), a.addEventListener("click", () => void this.store.advance()), r.appendChild(a), e.appendChild(r), this.continueButton = a;
1062
1114
  }
1063
1115
  }
1064
1116
  renderQuestionView(e, t) {
1065
1117
  let n = this.store.currentDraft(), r = this.store.getState(), i = !!(r?.isBusy || r?.isCompleting);
1066
1118
  if (t) {
1067
- let e = U("div", "sb-question sb-question--sentiment");
1119
+ let e = W("div", "sb-question sb-question--sentiment");
1068
1120
  return this.store.sentimentChoices().forEach((t) => {
1069
- let a = n?.answer_key === u(t), o = W(`sb-sentiment ${a ? "sb-sentiment--selected" : ""}`, t.label);
1121
+ let a = n?.answer_key === u(t), o = G(`sb-sentiment ${a ? "sb-sentiment--selected" : ""}`, t.label);
1070
1122
  o.dataset.choiceValue = u(t), o.disabled = i || !!r?.sentimentSelectionLocked, o.setAttribute("aria-pressed", String(a));
1071
1123
  let s = p(t);
1072
1124
  if (a && s) {
1073
- let e = U("span", "sb-spark-ring");
1125
+ let e = W("span", "sb-spark-ring");
1074
1126
  e.setAttribute("aria-hidden", "true");
1075
1127
  for (let t = 0; t < 12; t += 1) {
1076
- let n = U("span", "sb-spark-ring__spark");
1128
+ let n = W("span", "sb-spark-ring__spark");
1077
1129
  n.style.setProperty("--sb-spark-index", String(t)), e.appendChild(n);
1078
1130
  }
1079
1131
  o.appendChild(e);
1080
1132
  }
1081
- let c = U("span", "sb-sentiment__icon");
1082
- c.innerHTML = s ? z : B, o.appendChild(c), o.addEventListener("click", () => void this.store.selectChoice(t)), e.appendChild(o);
1133
+ let c = W("span", "sb-sentiment__icon");
1134
+ c.innerHTML = s ? B : V, o.appendChild(c), o.addEventListener("click", () => void this.store.selectChoice(t)), e.appendChild(o);
1083
1135
  }), e;
1084
1136
  }
1085
1137
  if (e.type === "yes_no" || e.type === "multiple_choice") {
1086
1138
  let t = this.selectedChoice(e);
1087
1139
  if (t && m(t)) return this.renderTextInput(t.label, "Other response", !0, i, !0);
1088
- let r = this.usesTwoColumnChoices(e.answers ?? []), a = r ? Math.ceil((e.answers?.length ?? 0) / 2) : e.answers?.length ?? 0, o = U("div", `sb-question sb-question--choices sb-question--choices-${r ? "grid" : "single"} ${a >= 5 ? "sb-question--choices-scrolling" : ""}`);
1140
+ let a = `${r?.presentationId}:${e.node_id}`, o = this.choiceColumns?.step === a ? this.choiceColumns.twoColumns : null, s = e.answers?.length ?? 0, c = W("div", "sb-question sb-question--choices");
1141
+ this.setChoiceColumns(c, o ?? this.estimatedTwoColumnChoices(e.answers ?? []), s);
1089
1142
  for (let t of e.answers ?? []) {
1090
- let e = n?.answer_key === u(t), r = W(`sb-choice ${e ? "sb-choice--selected" : ""} ${m(t) ? "sb-choice--other" : ""}`, t.label);
1143
+ let e = n?.answer_key === u(t), r = G(`sb-choice ${e ? "sb-choice--selected" : ""} ${m(t) ? "sb-choice--other" : ""}`, t.label);
1091
1144
  if (r.dataset.choiceValue = u(t), r.disabled = i, r.setAttribute("aria-pressed", String(e)), m(t)) {
1092
- let e = U("span", "sb-choice__other-content");
1093
- e.setAttribute("aria-hidden", "true"), e.appendChild(U("span", "sb-choice__other-caret"));
1094
- let n = U("span", "sb-choice__label sb-choice__other-label");
1145
+ let e = W("span", "sb-choice__other-content");
1146
+ e.setAttribute("aria-hidden", "true"), e.appendChild(W("span", "sb-choice__other-caret"));
1147
+ let n = W("span", "sb-choice__label sb-choice__other-label");
1095
1148
  n.textContent = t.label, e.appendChild(n), r.appendChild(e);
1096
1149
  } else {
1097
- let e = U("span", "sb-choice__label");
1150
+ let e = W("span", "sb-choice__label");
1098
1151
  e.textContent = t.label, r.appendChild(e);
1099
1152
  }
1100
- r.addEventListener("click", () => void this.store.selectChoice(t)), o.appendChild(r);
1153
+ r.addEventListener("click", () => void this.store.selectChoice(t)), c.appendChild(r);
1101
1154
  }
1102
- return o;
1155
+ return this.observeChoiceColumns(c, a, s), c;
1103
1156
  }
1104
1157
  return this.renderTextInput(e.free_text_placeholder ?? "Please explain more... (Optional)", e.prompt, e.required, i);
1105
1158
  }
1106
1159
  renderTextInput(e, t, n, r, i = !1) {
1107
- let a = U("div", `sb-question sb-question--text ${i ? "sb-question--other sb-question--other-text" : ""}`), o = U("div", "sb-textarea-shell"), s = U("textarea", "sb-textarea");
1160
+ let a = W("div", `sb-question sb-question--text ${i ? "sb-question--other sb-question--other-text" : ""}`), o = W("div", "sb-textarea-shell"), s = W("textarea", "sb-textarea");
1108
1161
  return s.value = this.store.currentText(), s.disabled = r, s.placeholder = e, s.setAttribute("aria-label", t), n && (s.autofocus = !0, this.focusTextArea(s)), s.addEventListener("input", () => this.store.setText(s.value)), o.appendChild(s), a.appendChild(o), a;
1109
1162
  }
1110
- usesTwoColumnChoices(e) {
1111
- return e.every((e) => {
1112
- let t = U("span", `sb-choice-measure ${m(e) ? "sb-choice-measure--other" : ""}`);
1113
- t.textContent = e.label.trim(), this.root.appendChild(t);
1114
- let n = t.getBoundingClientRect().width || t.scrollWidth;
1115
- t.remove();
1116
- let r = this.estimatedTextWidth(e.label.trim()) + (m(e) ? 17 : 16);
1117
- return (n || r) < 160;
1118
- });
1163
+ estimatedTwoColumnChoices(e) {
1164
+ return e.every((e) => this.estimatedTextWidth(e.label.trim()) + 18 <= 147);
1165
+ }
1166
+ setChoiceColumns(e, t, n) {
1167
+ e.classList.toggle("sb-question--choices-grid", t), e.classList.toggle("sb-question--choices-single", !t), e.classList.toggle("sb-question--choices-scrolling", (t ? Math.ceil(n / 2) : n) >= 5);
1168
+ }
1169
+ observeChoiceColumns(e, t, n) {
1170
+ if (this.stopChoiceColumns(), typeof ResizeObserver > "u") return;
1171
+ let r = (r) => {
1172
+ let i = e.clientWidth;
1173
+ if (!i || !r && this.choiceColumns?.step === t && this.choiceColumns.width === i) return;
1174
+ let a = e.classList.contains("sb-question--choices-grid");
1175
+ this.setChoiceColumns(e, !0, n);
1176
+ let o = g(e.querySelectorAll(".sb-choice"));
1177
+ this.setChoiceColumns(e, o ?? a, n), o !== null && (this.choiceColumns = {
1178
+ step: t,
1179
+ width: i,
1180
+ twoColumns: o
1181
+ });
1182
+ };
1183
+ this.choiceColumnsObserver = new ResizeObserver(() => r(!1)), this.choiceColumnsObserver.observe(e), this.stopChoiceColumnsFonts = ee(() => r(!0));
1184
+ }
1185
+ stopChoiceColumns() {
1186
+ this.choiceColumnsObserver?.disconnect(), this.choiceColumnsObserver = null, this.stopChoiceColumnsFonts?.(), this.stopChoiceColumnsFonts = null;
1119
1187
  }
1120
1188
  renderThankYou(e) {
1121
- let t = e.completion, n = U("div", "sb-thanks"), r = U("div", "sb-thanks__icon-shell");
1189
+ let t = e.completion, n = W("div", "sb-thanks"), r = W("div", "sb-thanks__icon-shell");
1122
1190
  r.setAttribute("aria-hidden", "true");
1123
- let i = U("div", "sb-thanks__icon-core");
1124
- i.innerHTML = me, r.appendChild(i), n.appendChild(r);
1125
- let a = U("div", "sb-thanks__copy");
1191
+ let i = W("div", "sb-thanks__icon-core");
1192
+ i.innerHTML = ve, r.appendChild(i), n.appendChild(r);
1193
+ let a = W("div", "sb-thanks__copy");
1126
1194
  a.dataset.revealContent = "", a.setAttribute("aria-hidden", "true");
1127
- let o = U("h2");
1195
+ let o = W("h2");
1128
1196
  o.id = `sb-completion-${this.uiId}`, o.tabIndex = -1, o.textContent = t?.title ?? "";
1129
- let s = U("p");
1197
+ let s = W("p");
1130
1198
  if (s.id = `sb-completion-body-${this.uiId}`, s.textContent = t?.body ?? "", a.appendChild(o), a.appendChild(s), n.appendChild(a), t?.actions.length) {
1131
- let e = U("div", "sb-thanks__actions");
1199
+ let e = W("div", "sb-thanks__actions");
1132
1200
  e.dataset.revealContent = "", e.setAttribute("aria-hidden", "true");
1133
1201
  for (let n of t.actions) {
1134
- let t = W(`sb-button sb-button--${n.style === "primary" || n.style === "secondary" ? n.style : "tertiary"}`);
1202
+ let t = G(`sb-button sb-button--${n.style === "primary" || n.style === "secondary" ? n.style : "tertiary"}`);
1135
1203
  t.textContent = n.label, t.disabled = !0, t.addEventListener("click", () => void this.store.handleCompletionAction(n)), e.appendChild(t);
1136
1204
  }
1137
1205
  n.appendChild(e);
@@ -1141,7 +1209,7 @@ var be = 0, xe = class {
1141
1209
  };
1142
1210
  //#endregion
1143
1211
  //#region src/index.ts
1144
- function Se(e) {
1212
+ function Ee(e) {
1145
1213
  if (typeof document > "u" && e.ui !== !1) return {
1146
1214
  track: () => {},
1147
1215
  tagUser: () => {},
@@ -1162,13 +1230,15 @@ function Se(e) {
1162
1230
  },
1163
1231
  trackEvent: (e, t) => n.track(e, t),
1164
1232
  shouldPresentPulse: e.shouldPresentPulse,
1233
+ sentimentPresentation: e.sentimentPresentation,
1234
+ barPosition: e.barPosition,
1165
1235
  onRateApp: e.onRateApp,
1166
1236
  onError: e.onError
1167
1237
  }), n = c({
1168
1238
  ...e,
1169
- libraryVersion: "1.4.6",
1239
+ libraryVersion: "1.4.7-rc.1",
1170
1240
  onSyncResponse: (e) => t.handleSyncResponse(e)
1171
- }), i = e.ui === !1 ? null : new xe(t);
1241
+ }), i = e.ui === !1 ? null : new Te(t);
1172
1242
  return n.start(), {
1173
1243
  track: n.track,
1174
1244
  tagUser: n.tagUser,
@@ -1184,42 +1254,42 @@ function Se(e) {
1184
1254
  }
1185
1255
  };
1186
1256
  }
1187
- var G = null;
1188
- function K() {
1189
- if (!G) throw Error("Call Sideband.configure() before using Sideband.");
1190
- return G;
1257
+ var K = null;
1258
+ function q() {
1259
+ if (!K) throw Error("Call Sideband.configure() before using Sideband.");
1260
+ return K;
1191
1261
  }
1192
- function q(e) {
1262
+ function J(e) {
1193
1263
  $();
1194
- let t = Se(e);
1195
- return G = t, t;
1196
- }
1197
- function J(e, t, n) {
1198
- K().track(e, t, n);
1264
+ let t = Ee(e);
1265
+ return K = t, t;
1199
1266
  }
1200
- function Y(e) {
1201
- K().tagUser(e);
1267
+ function Y(e, t, n) {
1268
+ q().track(e, t, n);
1202
1269
  }
1203
- function X() {
1204
- K().untagUser();
1270
+ function X(e) {
1271
+ q().tagUser(e);
1205
1272
  }
1206
1273
  function Z() {
1207
- return K().flush();
1274
+ q().untagUser();
1275
+ }
1276
+ function De() {
1277
+ return q().flush();
1208
1278
  }
1209
1279
  function Q(e) {
1210
- return K().presentSimulatedPulse(e);
1280
+ return q().presentSimulatedPulse(e);
1211
1281
  }
1212
1282
  function $() {
1213
- G?.destroy(), G = null;
1283
+ K?.destroy(), K = null;
1214
1284
  }
1215
- var Ce = {
1216
- configure: q,
1217
- track: J,
1218
- tagUser: Y,
1219
- untagUser: X,
1220
- flush: Z,
1285
+ var Oe = {
1286
+ configure: J,
1287
+ track: Y,
1288
+ tagUser: X,
1289
+ untagUser: Z,
1290
+ flush: De,
1221
1291
  presentSimulatedPulse: Q,
1222
1292
  destroy: $
1223
1293
  };
1224
1294
  //#endregion
1225
- export { e as PendingInteractionStorageError, Ce as Sideband, t as SidebandApiError, n as SurveySessionStore, i as SyncEngine, a as buildFabTitle, q as configure, s as createSidebandClient, $ as destroy, Z as flush, l as getChoiceValue, d as getDeviceId, f as getSessionId, Q as presentSimulatedPulse, Y as tagUser, J as track, X as untagUser };
1295
+ export { e as PendingInteractionStorageError, Oe as Sideband, t as SidebandApiError, n as SurveySessionStore, i as SyncEngine, a as buildFabTitle, J as configure, s as createSidebandClient, $ as destroy, De as flush, l as getChoiceValue, d as getDeviceId, f as getSessionId, Q as presentSimulatedPulse, X as tagUser, Y as track, Z as untagUser };