@squeletteapp/widget 0.4.0 → 0.5.0

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.
@@ -1,38 +1,38 @@
1
- import { s as i, A as c, y as l, u as d } from "./index-Bj_9-5Hl.js";
1
+ import { s as o, A as c, y as l, u as f } from "./index-BEPqGDvF.js";
2
2
  function m({
3
3
  src: n,
4
- title: o,
4
+ title: i,
5
5
  onLoaded: r,
6
- onClose: a
6
+ onClose: s
7
7
  }) {
8
8
  const t = c(null);
9
9
  return l(() => {
10
10
  const e = t.current;
11
11
  if (!e) return;
12
- const s = () => {
12
+ const a = () => {
13
13
  e.dataset.ready = "true", r == null || r();
14
14
  };
15
- return e.addEventListener("load", s), () => e.removeEventListener("load", s);
15
+ return e.addEventListener("load", a), () => e.removeEventListener("load", a);
16
16
  }, [r]), l(() => {
17
- const e = (s) => {
18
- s.data.type === "close-feedback-widget" && (console.log("WidgetFrame closing widget as requested"), a());
17
+ const e = (a) => {
18
+ a.data.type === "close-feedback-widget" && s();
19
19
  };
20
20
  return window.addEventListener("message", e), () => window.removeEventListener("message", e);
21
- }, [a]), /* @__PURE__ */ d(
21
+ }, [s]), /* @__PURE__ */ f(
22
22
  "iframe",
23
23
  {
24
24
  ref: t,
25
25
  class: "sq-frame",
26
26
  part: "frame",
27
27
  src: n,
28
- title: o,
28
+ title: i,
29
29
  loading: "eager",
30
30
  allow: "clipboard-write; clipboard-read; fullscreen;",
31
31
  sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"
32
32
  }
33
33
  );
34
34
  }
35
- const p = i;
35
+ const p = o;
36
36
  export {
37
37
  m as WidgetFrame,
38
38
  m as default,
@@ -5,7 +5,7 @@ var Qt = (e) => {
5
5
  var En = (e, t, r) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
6
  var V = (e, t, r) => En(e, typeof t != "symbol" ? t + "" : t, r), er = (e, t, r) => t.has(e) || Qt("Cannot " + r);
7
7
  var h = (e, t, r) => (er(e, t, "read from private field"), r ? r.call(e) : t.get(e)), G = (e, t, r) => t.has(e) ? Qt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), $ = (e, t, r, n) => (er(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r);
8
- var mt, w, Mr, Tr, qe, tr, Rr, Nr, Or, Ht, $t, Lt, Fe = {}, Br = [], Cn = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
8
+ var mt, w, Mr, Tr, qe, tr, Rr, Nr, Or, Ht, $t, Lt, Fe = {}, Wr = [], Cn = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
9
9
  function pe(e, t) {
10
10
  for (var r in t) e[r] = t[r];
11
11
  return e;
@@ -34,25 +34,25 @@ function Te(e, t) {
34
34
  for (var r; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) return r.__e;
35
35
  return typeof e.type == "function" ? Te(e) : null;
36
36
  }
37
- function Wr(e) {
37
+ function Br(e) {
38
38
  var t, r;
39
39
  if ((e = e.__) != null && e.__c != null) {
40
40
  for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) {
41
41
  e.__e = e.__c.base = r.__e;
42
42
  break;
43
43
  }
44
- return Wr(e);
44
+ return Br(e);
45
45
  }
46
46
  }
47
47
  function rr(e) {
48
48
  (!e.__d && (e.__d = !0) && qe.push(e) && !ct.__r++ || tr != w.debounceRendering) && ((tr = w.debounceRendering) || Rr)(ct);
49
49
  }
50
50
  function ct() {
51
- for (var e, t, r, n, o, i, s, a = 1; qe.length; ) qe.length > a && qe.sort(Nr), e = qe.shift(), a = qe.length, e.__d && (r = void 0, n = void 0, o = (n = (t = e).__v).__e, i = [], s = [], t.__P && ((r = pe({}, n)).__v = n.__v + 1, w.vnode && w.vnode(r), Gt(t.__P, r, n, t.__n, t.__P.namespaceURI, 32 & n.__u ? [o] : null, i, o == null ? Te(n) : o, !!(32 & n.__u), s), r.__v = n.__v, r.__.__k[r.__i] = r, jr(i, r, s), n.__e = n.__ = null, r.__e != o && Wr(r)));
51
+ for (var e, t, r, n, o, i, s, a = 1; qe.length; ) qe.length > a && qe.sort(Nr), e = qe.shift(), a = qe.length, e.__d && (r = void 0, n = void 0, o = (n = (t = e).__v).__e, i = [], s = [], t.__P && ((r = pe({}, n)).__v = n.__v + 1, w.vnode && w.vnode(r), Gt(t.__P, r, n, t.__n, t.__P.namespaceURI, 32 & n.__u ? [o] : null, i, o == null ? Te(n) : o, !!(32 & n.__u), s), r.__v = n.__v, r.__.__k[r.__i] = r, jr(i, r, s), n.__e = n.__ = null, r.__e != o && Br(r)));
52
52
  ct.__r = 0;
53
53
  }
54
54
  function Ir(e, t, r, n, o, i, s, a, l, c, u) {
55
- var d, g, f, b, S, k, x, E = n && n.__k || Br, C = t.length;
55
+ var d, g, f, b, S, k, x, E = n && n.__k || Wr, C = t.length;
56
56
  for (l = An(r, t, E, l, C), d = 0; d < C; d++) (f = r.__k[d]) != null && (g = f.__i == -1 ? Fe : E[f.__i] || Fe, f.__i = d, k = Gt(e, f, g, o, i, s, a, l, c, u), b = f.__e, f.ref && g.ref != f.ref && (g.ref && Vt(g.ref, null, f), u.push(f.ref, f.__c || b, f)), S == null && b != null && (S = b), (x = !!(4 & f.__u)) || g.__k === f.__k ? l = Ur(f, l, e, x) : typeof f.type == "function" && k !== void 0 ? l = k : b && (l = b.nextSibling), f.__u &= -7);
57
57
  return r.__e = S, l;
58
58
  }
@@ -119,7 +119,7 @@ function or(e) {
119
119
  };
120
120
  }
121
121
  function Gt(e, t, r, n, o, i, s, a, l, c) {
122
- var u, d, g, f, b, S, k, x, E, C, T, H, W, D, p, L, R, M = t.type;
122
+ var u, d, g, f, b, S, k, x, E, C, T, H, B, D, p, L, R, M = t.type;
123
123
  if (t.constructor != null) return null;
124
124
  128 & r.__u && (l = !!(32 & r.__u), i = [a = t.__e = r.__e]), (u = w.__b) && u(t);
125
125
  e: if (typeof M == "function") try {
@@ -136,11 +136,11 @@ function Gt(e, t, r, n, o, i, s, a, l, c) {
136
136
  d.componentDidUpdate(f, b, S);
137
137
  });
138
138
  }
139
- if (d.context = T, d.props = x, d.__P = e, d.__e = !1, W = w.__r, D = 0, E) {
140
- for (d.state = d.__s, d.__d = !1, W && W(t), u = d.render(d.props, d.state, d.context), p = 0; p < d._sb.length; p++) d.__h.push(d._sb[p]);
139
+ if (d.context = T, d.props = x, d.__P = e, d.__e = !1, B = w.__r, D = 0, E) {
140
+ for (d.state = d.__s, d.__d = !1, B && B(t), u = d.render(d.props, d.state, d.context), p = 0; p < d._sb.length; p++) d.__h.push(d._sb[p]);
141
141
  d._sb = [];
142
142
  } else do
143
- d.__d = !1, W && W(t), u = d.render(d.props, d.state, d.context), d.state = d.__s;
143
+ d.__d = !1, B && B(t), u = d.render(d.props, d.state, d.context), d.state = d.__s;
144
144
  while (d.__d && ++D < 25);
145
145
  d.state = d.__s, d.getChildContext != null && (n = pe(pe({}, n), d.getChildContext())), E && !g && d.getSnapshotBeforeUpdate != null && (S = d.getSnapshotBeforeUpdate(f, b)), L = u, u != null && u.type === ge && u.key == null && (L = Fr(u.props.children)), a = Ir(e, Ye(L) ? L : [L], t, r, n, o, i, s, a, l, c), d.base = t.__e, t.__u &= -161, d.__h.length && s.push(d), k && (d.__E = d.__ = null);
146
146
  } catch (I) {
@@ -234,7 +234,7 @@ function ke(e, t, r) {
234
234
  var n, o, i, s;
235
235
  t == document && (t = document.documentElement), w.__ && w.__(e, t), o = (n = !1) ? null : t.__k, i = [], s = [], Gt(t, e = t.__k = He(ge, null, [e]), o || Fe, Fe, t.namespaceURI, o ? null : t.firstChild ? mt.call(t.childNodes) : null, i, o ? o.__e : t.firstChild, n, s), jr(i, e, s);
236
236
  }
237
- mt = Br.slice, w = { __e: function(e, t, r, n) {
237
+ mt = Wr.slice, w = { __e: function(e, t, r, n) {
238
238
  for (var o, i, s; t = t.__; ) if ((o = t.__c) && !o.__) try {
239
239
  if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), s = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, n || {}), s = o.__d), s) return o.__E = o;
240
240
  } catch (a) {
@@ -286,9 +286,9 @@ const Mn = `/*
286
286
  background: rgba(0, 0, 0, 0.3);
287
287
  }
288
288
  `;
289
- var Re, O, wt, ir, ut = 0, Dr = [], B = w, sr = B.__b, ar = B.__r, lr = B.diffed, cr = B.__c, dr = B.unmount, ur = B.__;
289
+ var Re, O, wt, ir, ut = 0, Dr = [], W = w, sr = W.__b, ar = W.__r, lr = W.diffed, cr = W.__c, dr = W.unmount, ur = W.__;
290
290
  function _t(e, t) {
291
- B.__h && B.__h(O, e, ut || t), ut = 0;
291
+ W.__h && W.__h(O, e, ut || t), ut = 0;
292
292
  var r = O.__H || (O.__H = { __: [], __h: [] });
293
293
  return e >= r.__.length && r.__.push({}), r.__[e];
294
294
  }
@@ -331,11 +331,11 @@ function Tn(e, t, r) {
331
331
  }
332
332
  function ce(e, t) {
333
333
  var r = _t(Re++, 3);
334
- !B.__s && Zt(r.__H, t) && (r.__ = e, r.u = t, O.__H.__h.push(r));
334
+ !W.__s && Zt(r.__H, t) && (r.__ = e, r.u = t, O.__H.__h.push(r));
335
335
  }
336
336
  function Yt(e, t) {
337
337
  var r = _t(Re++, 4);
338
- !B.__s && Zt(r.__H, t) && (r.__ = e, r.u = t, O.__h.push(r));
338
+ !W.__s && Zt(r.__H, t) && (r.__ = e, r.u = t, O.__h.push(r));
339
339
  }
340
340
  function J(e) {
341
341
  return ut = 5, Xt(function() {
@@ -350,26 +350,26 @@ function Rn() {
350
350
  for (var e; e = Dr.shift(); ) if (e.__P && e.__H) try {
351
351
  e.__H.__h.forEach(st), e.__H.__h.forEach(zt), e.__H.__h = [];
352
352
  } catch (t) {
353
- e.__H.__h = [], B.__e(t, e.__v);
353
+ e.__H.__h = [], W.__e(t, e.__v);
354
354
  }
355
355
  }
356
- B.__b = function(e) {
356
+ W.__b = function(e) {
357
357
  O = null, sr && sr(e);
358
- }, B.__ = function(e, t) {
358
+ }, W.__ = function(e, t) {
359
359
  e && t.__k && t.__k.__m && (e.__m = t.__k.__m), ur && ur(e, t);
360
- }, B.__r = function(e) {
360
+ }, W.__r = function(e) {
361
361
  ar && ar(e), Re = 0;
362
362
  var t = (O = e.__c).__H;
363
363
  t && (wt === O ? (t.__h = [], O.__h = [], t.__.forEach(function(r) {
364
364
  r.__N && (r.__ = r.__N), r.u = r.__N = void 0;
365
365
  })) : (t.__h.forEach(st), t.__h.forEach(zt), t.__h = [], Re = 0)), wt = O;
366
- }, B.diffed = function(e) {
366
+ }, W.diffed = function(e) {
367
367
  lr && lr(e);
368
368
  var t = e.__c;
369
- t && t.__H && (t.__H.__h.length && (Dr.push(t) !== 1 && ir === B.requestAnimationFrame || ((ir = B.requestAnimationFrame) || Nn)(Rn)), t.__H.__.forEach(function(r) {
369
+ t && t.__H && (t.__H.__h.length && (Dr.push(t) !== 1 && ir === W.requestAnimationFrame || ((ir = W.requestAnimationFrame) || Nn)(Rn)), t.__H.__.forEach(function(r) {
370
370
  r.u && (r.__H = r.u), r.u = void 0;
371
371
  })), wt = O = null;
372
- }, B.__c = function(e, t) {
372
+ }, W.__c = function(e, t) {
373
373
  t.some(function(r) {
374
374
  try {
375
375
  r.__h.forEach(st), r.__h = r.__h.filter(function(n) {
@@ -378,10 +378,10 @@ B.__b = function(e) {
378
378
  } catch (n) {
379
379
  t.some(function(o) {
380
380
  o.__h && (o.__h = []);
381
- }), t = [], B.__e(n, r.__v);
381
+ }), t = [], W.__e(n, r.__v);
382
382
  }
383
383
  }), cr && cr(e, t);
384
- }, B.unmount = function(e) {
384
+ }, W.unmount = function(e) {
385
385
  dr && dr(e);
386
386
  var t, r = e.__c;
387
387
  r && r.__H && (r.__H.__.forEach(function(n) {
@@ -390,7 +390,7 @@ B.__b = function(e) {
390
390
  } catch (o) {
391
391
  t = o;
392
392
  }
393
- }), r.__H = void 0, t && B.__e(t, r.__v));
393
+ }), r.__H = void 0, t && W.__e(t, r.__v));
394
394
  };
395
395
  var fr = typeof requestAnimationFrame == "function";
396
396
  function Nn(e) {
@@ -474,7 +474,7 @@ function On({
474
474
  )
475
475
  ] });
476
476
  }
477
- const Mt = "squelette-widget", yt = typeof globalThis != "undefined" ? globalThis : {}, Bn = "https://www.squelette.app", Tt = typeof yt.SQUELETTE_WIDGET_BASE_URL == "string" && yt.SQUELETTE_WIDGET_BASE_URL.length > 0 ? yt.SQUELETTE_WIDGET_BASE_URL : Bn, Wn = "https://cdn.squelette.app/widget.js", at = "Feedback";
477
+ const Mt = "squelette-widget", yt = typeof globalThis != "undefined" ? globalThis : {}, Wn = "https://www.squelette.app", Tt = typeof yt.SQUELETTE_WIDGET_BASE_URL == "string" && yt.SQUELETTE_WIDGET_BASE_URL.length > 0 ? yt.SQUELETTE_WIDGET_BASE_URL : Wn, Bn = "https://cdn.squelette.app/widget.js", at = "Feedback";
478
478
  class In {
479
479
  constructor() {
480
480
  V(this, "listeners", /* @__PURE__ */ new Map());
@@ -749,7 +749,7 @@ class Vn extends HTMLElement {
749
749
  if (!(h(this, ze) || h(this, Pe))) {
750
750
  $(this, Pe, !0), this.render();
751
751
  try {
752
- (r = h(this, Ge)) != null || $(this, Ge, import("./app-CZ8ztknA.js"));
752
+ (r = h(this, Ge)) != null || $(this, Ge, import("./app-DSMF-9re.js"));
753
753
  const i = await h(this, Ge), s = (n = i.WidgetFrame) != null ? n : i.default;
754
754
  if (!s)
755
755
  throw new Error("[SqueletteWidget] Widget app missing export");
@@ -1009,8 +1009,8 @@ function kt(e, t, r) {
1009
1009
  return Math.min(Math.max(e, t), n);
1010
1010
  }
1011
1011
  function Zn(e, t) {
1012
- var W, D;
1013
- const r = [], n = (W = t.position) != null ? W : "top", o = (D = t.overlayBlur) != null ? D : !0, i = 12, s = n.startsWith("fixed-"), a = /^fixed-(top|center|bottom)-(left|center|right)$/;
1012
+ var B, D;
1013
+ const r = [], n = (B = t.position) != null ? B : "top", o = (D = t.overlayBlur) != null ? D : !0, i = 12, s = n.startsWith("fixed-"), a = /^fixed-(top|center|bottom)-(left|center|right)$/;
1014
1014
  let l = null, c = !1, u = !1, d = null;
1015
1015
  const g = () => {
1016
1016
  e.removeAttribute("data-anchor"), e.removeAttribute("data-anchor-origin"), e.removeAttribute("data-fixed-vertical"), e.removeAttribute("data-fixed-horizontal"), e.style.removeProperty("--sq-offset-top"), e.style.removeProperty("--sq-offset-left"), e.style.removeProperty("--sq-offset-bottom"), e.style.removeProperty("--sq-offset-right");
@@ -1417,7 +1417,7 @@ var nn, St, on = [];
1417
1417
  Ze(function() {
1418
1418
  nn = this.N;
1419
1419
  })();
1420
- function Be(e, t) {
1420
+ function We(e, t) {
1421
1421
  w[e] = t.bind(null, w[e] || function() {
1422
1422
  });
1423
1423
  }
@@ -1453,7 +1453,7 @@ sn.displayName = "ReactiveTextNode";
1453
1453
  Object.defineProperties(F.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: sn }, props: { configurable: !0, get: function() {
1454
1454
  return { data: this };
1455
1455
  } }, __b: { configurable: !0, value: 1 } });
1456
- Be("__b", function(e, t) {
1456
+ We("__b", function(e, t) {
1457
1457
  if (typeof t.type == "function" && typeof window != "undefined" && window.__PREACT_SIGNALS_DEVTOOLS__ && window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(), typeof t.type == "string") {
1458
1458
  var r, n = t.props;
1459
1459
  for (var o in n) if (o !== "children") {
@@ -1463,7 +1463,7 @@ Be("__b", function(e, t) {
1463
1463
  }
1464
1464
  e(t);
1465
1465
  });
1466
- Be("__r", function(e, t) {
1466
+ We("__r", function(e, t) {
1467
1467
  if (typeof t.type == "function" && typeof window != "undefined" && window.__PREACT_SIGNALS_DEVTOOLS__ && window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t), t.type !== ge) {
1468
1468
  gt();
1469
1469
  var r, n = t.__c;
@@ -1478,10 +1478,10 @@ Be("__r", function(e, t) {
1478
1478
  }
1479
1479
  e(t);
1480
1480
  });
1481
- Be("__e", function(e, t, r, n) {
1481
+ We("__e", function(e, t, r, n) {
1482
1482
  typeof window != "undefined" && window.__PREACT_SIGNALS_DEVTOOLS__ && window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(), gt(), e(t, r, n);
1483
1483
  });
1484
- Be("diffed", function(e, t) {
1484
+ We("diffed", function(e, t) {
1485
1485
  typeof t.type == "function" && typeof window != "undefined" && window.__PREACT_SIGNALS_DEVTOOLS__ && window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(), gt();
1486
1486
  var r;
1487
1487
  if (typeof t.type == "string" && (r = t.__e)) {
@@ -1512,7 +1512,7 @@ function eo(e, t, r, n) {
1512
1512
  n[t] !== s && (n[t] = s, o ? e[t] = s : s ? e.setAttribute(t, s) : e.removeAttribute(t));
1513
1513
  }) };
1514
1514
  }
1515
- Be("unmount", function(e, t) {
1515
+ We("unmount", function(e, t) {
1516
1516
  if (typeof t.type == "string") {
1517
1517
  var r = t.__e;
1518
1518
  if (r) {
@@ -1534,7 +1534,7 @@ Be("unmount", function(e, t) {
1534
1534
  }
1535
1535
  e(t);
1536
1536
  });
1537
- Be("__h", function(e, t, r, n) {
1537
+ We("__h", function(e, t, r, n) {
1538
1538
  (n < 3 || n === 9) && (t.__$f |= 2), e(t, r, n);
1539
1539
  });
1540
1540
  ue.prototype.shouldComponentUpdate = function(e, t) {
@@ -1622,9 +1622,9 @@ const Kt = "-", io = (e) => {
1622
1622
  validators: []
1623
1623
  };
1624
1624
  for (const o in r)
1625
- Bt(r[o], n, o, t);
1625
+ Wt(r[o], n, o, t);
1626
1626
  return n;
1627
- }, Bt = (e, t, r, n) => {
1627
+ }, Wt = (e, t, r, n) => {
1628
1628
  e.forEach((o) => {
1629
1629
  if (typeof o == "string") {
1630
1630
  const i = o === "" ? t : vr(t, o);
@@ -1633,7 +1633,7 @@ const Kt = "-", io = (e) => {
1633
1633
  }
1634
1634
  if (typeof o == "function") {
1635
1635
  if (lo(o)) {
1636
- Bt(o(n), t, r, n);
1636
+ Wt(o(n), t, r, n);
1637
1637
  return;
1638
1638
  }
1639
1639
  t.validators.push({
@@ -1643,7 +1643,7 @@ const Kt = "-", io = (e) => {
1643
1643
  return;
1644
1644
  }
1645
1645
  Object.entries(o).forEach(([i, s]) => {
1646
- Bt(s, vr(t, i), r, n);
1646
+ Wt(s, vr(t, i), r, n);
1647
1647
  });
1648
1648
  });
1649
1649
  }, vr = (e, t) => {
@@ -1678,7 +1678,7 @@ const Kt = "-", io = (e) => {
1678
1678
  r.has(i) ? r.set(i, s) : o(i, s);
1679
1679
  }
1680
1680
  };
1681
- }, Wt = "!", It = ":", uo = It.length, fo = (e) => {
1681
+ }, Bt = "!", It = ":", uo = It.length, fo = (e) => {
1682
1682
  const {
1683
1683
  prefix: t,
1684
1684
  experimentalParseClassName: r
@@ -1726,7 +1726,7 @@ const Kt = "-", io = (e) => {
1726
1726
  });
1727
1727
  }
1728
1728
  return n;
1729
- }, ho = (e) => e.endsWith(Wt) ? e.substring(0, e.length - 1) : e.startsWith(Wt) ? e.substring(1) : e, po = (e) => {
1729
+ }, ho = (e) => e.endsWith(Bt) ? e.substring(0, e.length - 1) : e.startsWith(Bt) ? e.substring(1) : e, po = (e) => {
1730
1730
  const t = Object.fromEntries(e.orderSensitiveModifiers.map((n) => [n, !0]));
1731
1731
  return (n) => {
1732
1732
  if (n.length <= 1)
@@ -1774,13 +1774,13 @@ const Kt = "-", io = (e) => {
1774
1774
  }
1775
1775
  k = !1;
1776
1776
  }
1777
- const E = i(g).join(":"), C = f ? E + Wt : E, T = C + x;
1777
+ const E = i(g).join(":"), C = f ? E + Bt : E, T = C + x;
1778
1778
  if (s.includes(T))
1779
1779
  continue;
1780
1780
  s.push(T);
1781
1781
  const H = o(x, k);
1782
- for (let W = 0; W < H.length; ++W) {
1783
- const D = H[W];
1782
+ for (let B = 0; B < H.length; ++B) {
1783
+ const D = H[B];
1784
1784
  s.push(C + D);
1785
1785
  }
1786
1786
  l = u + (l.length > 0 ? " " + l : l);
@@ -1826,13 +1826,13 @@ const j = (e) => {
1826
1826
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1827
1827
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1828
1828
  xo.test(e) && !ko.test(e)
1829
- ), hn = () => !1, Ao = (e) => So.test(e), $o = (e) => qo.test(e), Lo = (e) => !m(e) && !_(e), Po = (e) => We(e, mn, hn), m = (e) => un.test(e), Se = (e) => We(e, _n, Co), Et = (e) => We(e, No, q), wr = (e) => We(e, pn, hn), zo = (e) => We(e, gn, $o), rt = (e) => We(e, bn, Ao), _ = (e) => fn.test(e), Ue = (e) => Ie(e, _n), Mo = (e) => Ie(e, Oo), yr = (e) => Ie(e, pn), To = (e) => Ie(e, mn), Ro = (e) => Ie(e, gn), nt = (e) => Ie(e, bn, !0), We = (e, t, r) => {
1829
+ ), hn = () => !1, Ao = (e) => So.test(e), $o = (e) => qo.test(e), Lo = (e) => !m(e) && !_(e), Po = (e) => Be(e, mn, hn), m = (e) => un.test(e), Se = (e) => Be(e, _n, Co), Et = (e) => Be(e, No, q), wr = (e) => Be(e, pn, hn), zo = (e) => Be(e, gn, $o), rt = (e) => Be(e, bn, Ao), _ = (e) => fn.test(e), Ue = (e) => Ie(e, _n), Mo = (e) => Ie(e, Oo), yr = (e) => Ie(e, pn), To = (e) => Ie(e, mn), Ro = (e) => Ie(e, gn), nt = (e) => Ie(e, bn, !0), Be = (e, t, r) => {
1830
1830
  const n = un.exec(e);
1831
1831
  return n ? n[1] ? t(n[1]) : r(n[2]) : !1;
1832
1832
  }, Ie = (e, t, r = !1) => {
1833
1833
  const n = fn.exec(e);
1834
1834
  return n ? n[1] ? t(n[1]) : r : !1;
1835
- }, pn = (e) => e === "position" || e === "percentage", gn = (e) => e === "image" || e === "url", mn = (e) => e === "length" || e === "size" || e === "bg-size", _n = (e) => e === "length", No = (e) => e === "number", Oo = (e) => e === "family-name", bn = (e) => e === "shadow", Bo = () => {
1835
+ }, pn = (e) => e === "position" || e === "percentage", gn = (e) => e === "image" || e === "url", mn = (e) => e === "length" || e === "size" || e === "bg-size", _n = (e) => e === "length", No = (e) => e === "number", Oo = (e) => e === "family-name", bn = (e) => e === "shadow", Wo = () => {
1836
1836
  const e = j("color"), t = j("font"), r = j("text"), n = j("font-weight"), o = j("tracking"), i = j("leading"), s = j("breakpoint"), a = j("container"), l = j("spacing"), c = j("radius"), u = j("shadow"), d = j("inset-shadow"), g = j("text-shadow"), f = j("drop-shadow"), b = j("blur"), S = j("perspective"), k = j("aspect"), x = j("ease"), E = j("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], T = () => [
1837
1837
  "center",
1838
1838
  "top",
@@ -1851,7 +1851,7 @@ const j = (e) => {
1851
1851
  "bottom-left",
1852
1852
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1853
1853
  "left-bottom"
1854
- ], H = () => [...T(), _, m], W = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], p = () => [_, m, l], L = () => [$e, "full", "auto", ...p()], R = () => [be, "none", "subgrid", _, m], M = () => ["auto", {
1854
+ ], H = () => [...T(), _, m], B = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], p = () => [_, m, l], L = () => [$e, "full", "auto", ...p()], R = () => [be, "none", "subgrid", _, m], M = () => ["auto", {
1855
1855
  span: ["full", be, _, m]
1856
1856
  }, be, _, m], I = () => [be, "auto", _, m], re = () => ["auto", "min", "max", "fr", _, m], ne = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], oe = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Y = () => ["auto", ...p()], ie = () => [$e, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...p()], v = () => [e, _, m], ee = () => [...T(), yr, wr, {
1857
1857
  position: [_, m]
@@ -2005,21 +2005,21 @@ const j = (e) => {
2005
2005
  * @see https://tailwindcss.com/docs/overflow
2006
2006
  */
2007
2007
  overflow: [{
2008
- overflow: W()
2008
+ overflow: B()
2009
2009
  }],
2010
2010
  /**
2011
2011
  * Overflow X
2012
2012
  * @see https://tailwindcss.com/docs/overflow
2013
2013
  */
2014
2014
  "overflow-x": [{
2015
- "overflow-x": W()
2015
+ "overflow-x": B()
2016
2016
  }],
2017
2017
  /**
2018
2018
  * Overflow Y
2019
2019
  * @see https://tailwindcss.com/docs/overflow
2020
2020
  */
2021
2021
  "overflow-y": [{
2022
- "overflow-y": W()
2022
+ "overflow-y": B()
2023
2023
  }],
2024
2024
  /**
2025
2025
  * Overscroll Behavior
@@ -4302,9 +4302,9 @@ const j = (e) => {
4302
4302
  },
4303
4303
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
4304
4304
  };
4305
- }, Wo = /* @__PURE__ */ vo(Bo);
4305
+ }, Bo = /* @__PURE__ */ vo(Wo);
4306
4306
  function De(...e) {
4307
- return Wo(oo(e));
4307
+ return Bo(oo(e));
4308
4308
  }
4309
4309
  function Io(e, t) {
4310
4310
  for (var r in t) e[r] = t[r];
@@ -4608,15 +4608,15 @@ function ii({
4608
4608
  ce(() => {
4609
4609
  const C = Xr();
4610
4610
  C && (l.current = C);
4611
- const T = (W) => {
4611
+ const T = (B) => {
4612
4612
  var p;
4613
- const D = W;
4613
+ const D = B;
4614
4614
  l.current = (p = D.detail) != null ? p : null, c.current ? f() : console.info(
4615
4615
  "[BannerModal] Iframe not ready yet, identity will be sent when ready"
4616
4616
  );
4617
- }, H = (W) => {
4617
+ }, H = (B) => {
4618
4618
  var D;
4619
- ((D = W.data) == null ? void 0 : D.type) === "squelette-iframe-ready" && (c.current = !0, l.current ? f() : console.log("[BannerModal] Iframe ready but no identity yet"));
4619
+ ((D = B.data) == null ? void 0 : D.type) === "squelette-iframe-ready" && (c.current = !0, l.current ? f() : console.log("[BannerModal] Iframe ready but no identity yet"));
4620
4620
  };
4621
4621
  return window.addEventListener("squelette:identity", T), window.addEventListener("message", H), () => {
4622
4622
  window.removeEventListener("squelette:identity", T), window.removeEventListener("message", H);
@@ -4637,7 +4637,7 @@ function ii({
4637
4637
  {
4638
4638
  ref: i,
4639
4639
  className: "w-full h-full border-none outline-none",
4640
- src: `${r}/widget/${e}/changelog/last?theme=${t}${n ? `&ticketId=${n}` : ""}`,
4640
+ src: `${r}/widget/${t}/${e}/changelog${n ? `&ticketId=${n}` : "/last"}`,
4641
4641
  onLoad: b
4642
4642
  }
4643
4643
  ),
@@ -5021,14 +5021,13 @@ const hi = {
5021
5021
  debug: o,
5022
5022
  ticketId: i
5023
5023
  }) {
5024
- if (console.log("[SqueletteBanner] init called", { slug: e, contentTheme: r, base: n, debug: o, ticketId: i }), typeof document == "undefined") return null;
5024
+ if (typeof document == "undefined") return null;
5025
5025
  customElements.get("squelette-banner") || customElements.define("squelette-banner", jt);
5026
5026
  const s = document.querySelector("squelette-banner");
5027
5027
  if (s)
5028
- return console.log("[SqueletteBanner] Found existing banner, updating attributes"), t && this.setTheme(t), r && this.setContentTheme(r), o !== void 0 && s.setAttribute("debug", String(o)), i !== void 0 && s.setAttribute("ticket-id", String(i)), s;
5029
- console.log("[SqueletteBanner] Creating new banner element");
5028
+ return t && this.setTheme(t), r && this.setContentTheme(r), o !== void 0 && s.setAttribute("debug", String(o)), i !== void 0 && s.setAttribute("ticket-id", String(i)), s;
5030
5029
  const a = new jt();
5031
- return a.setAttribute("workspace-slug", e), a.setAttribute("theme", r != null ? r : "light"), n && a.setAttribute("base", n), o !== void 0 && a.setAttribute("debug", String(o)), i !== void 0 && a.setAttribute("ticket-id", String(i)), document.body.appendChild(a), console.log("[SqueletteBanner] Banner element appended to body"), t && this.setTheme(t), a;
5030
+ return a.setAttribute("workspace-slug", e), a.setAttribute("theme", r != null ? r : "light"), n && a.setAttribute("base", n), o !== void 0 && a.setAttribute("debug", String(o)), i !== void 0 && a.setAttribute("ticket-id", String(i)), document.body.appendChild(a), t && this.setTheme(t), a;
5032
5031
  },
5033
5032
  setTheme(e) {
5034
5033
  if (typeof document == "undefined") return;
@@ -5055,13 +5054,13 @@ const hi = {
5055
5054
  t.setAttribute("theme", e);
5056
5055
  },
5057
5056
  destroy() {
5058
- if (console.log("[SqueletteBanner] destroy called"), typeof document == "undefined") return;
5057
+ if (typeof document == "undefined") return;
5059
5058
  const e = document.querySelector("squelette-banner");
5060
5059
  if (!e) {
5061
5060
  console.warn("[SqueletteBanner] No banner found to destroy");
5062
5061
  return;
5063
5062
  }
5064
- console.log("[SqueletteBanner] Removing banner element"), e.remove(), console.log("[SqueletteBanner] Banner element removed");
5063
+ e.remove();
5065
5064
  }
5066
5065
  };
5067
5066
  function pi(e) {
@@ -5124,8 +5123,8 @@ function Sn() {
5124
5123
  identify: Yn,
5125
5124
  clearIdentity: Xn,
5126
5125
  banner: hi,
5127
- version: "0.4.0",
5128
- cdn: Wn
5126
+ version: "0.5.0",
5127
+ cdn: Bn
5129
5128
  });
5130
5129
  }
5131
5130
  Vr();
@@ -5158,7 +5157,7 @@ function mi({
5158
5157
  {
5159
5158
  className: "squelette-changelog__iframe",
5160
5159
  title: "Changelog",
5161
- src: `${o}/widget/${e}/changelog?theme=${n}`
5160
+ src: `${o}/widget/${r}/${e}/changelog`
5162
5161
  }
5163
5162
  ) });
5164
5163
  }
@@ -5439,15 +5438,7 @@ const xi = {
5439
5438
  align: s = "screen-bottom-right",
5440
5439
  height: a
5441
5440
  }) {
5442
- if (console.log("[SqueletteChangelog] init called", {
5443
- workspace: e,
5444
- contentTheme: r,
5445
- base: n,
5446
- debug: o,
5447
- selector: i,
5448
- align: s,
5449
- height: a
5450
- }), typeof document == "undefined") return null;
5441
+ if (typeof document == "undefined") return null;
5451
5442
  customElements.get("squelette-changelog") || customElements.define("squelette-changelog", Ft);
5452
5443
  const l = document.querySelector(
5453
5444
  "squelette-changelog"
package/dist/widget.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as a, g as l, k as s, j as g, S as r, c as n, e as d, b as i, d as c, a as o, f as u, i as S, r as q } from "./index-Bj_9-5Hl.js";
1
+ import { h as a, g as l, k as s, j as g, S as r, c as n, e as d, b as i, d as c, a as o, f as u, i as S, r as q } from "./index-BEPqGDvF.js";
2
2
  export {
3
3
  a as SqueletteBanner,
4
4
  l as SqueletteBannerElement,
package/dist/widget.js CHANGED
@@ -1,4 +1,4 @@
1
- var SqueletteWidgetBundle=function(E){"use strict";var yi=Object.defineProperty;var Ln=E=>{throw TypeError(E)};var xi=(E,N,_)=>N in E?yi(E,N,{enumerable:!0,configurable:!0,writable:!0,value:_}):E[N]=_;var Z=(E,N,_)=>xi(E,typeof N!="symbol"?N+"":N,_),Pn=(E,N,_)=>N.has(E)||Ln("Cannot "+_);var h=(E,N,_)=>(Pn(E,N,"read from private field"),_?_.call(E):N.get(E)),Y=(E,N,_)=>N.has(E)?Ln("Cannot add the same private member more than once"):N instanceof WeakSet?N.add(E):N.set(E,_),L=(E,N,_,je)=>(Pn(E,N,"write to private field"),je?je.call(E,_):N.set(E,_),_);var A,xe,Ie,ne,ke,Le,Fe,Ke,te,ie,se,K,Qe,Ue,be;var N,_,je,nr,Ee,or,ir,sr,ar,kt,St,qt,He={},lr=[],Mn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,De=Array.isArray;function pe(e,t){for(var r in t)e[r]=t[r];return e}function Et(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ge(e,t,r){var n,o,i,s={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?N.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return et(e,s,n,o,null)}function et(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o==null?++je:o,__i:-1,__u:0};return o==null&&_.vnode!=null&&_.vnode(i),i}function ge(e){return e.children}function fe(e,t){this.props=e,this.context=t}function Pe(e,t){if(t==null)return e.__?Pe(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Pe(e):null}function cr(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return cr(e)}}function dr(e){(!e.__d&&(e.__d=!0)&&Ee.push(e)&&!tt.__r++||or!=_.debounceRendering)&&((or=_.debounceRendering)||ir)(tt)}function tt(){for(var e,t,r,n,o,i,s,a=1;Ee.length;)Ee.length>a&&Ee.sort(sr),e=Ee.shift(),a=Ee.length,e.__d&&(r=void 0,n=void 0,o=(n=(t=e).__v).__e,i=[],s=[],t.__P&&((r=pe({},n)).__v=n.__v+1,_.vnode&&_.vnode(r),Ct(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o==null?Pe(n):o,!!(32&n.__u),s),r.__v=n.__v,r.__.__k[r.__i]=r,gr(i,r,s),n.__e=n.__=null,r.__e!=o&&cr(r)));tt.__r=0}function ur(e,t,r,n,o,i,s,a,l,c,u){var d,g,f,v,q,k,x,C=n&&n.__k||lr,$=t.length;for(l=zn(r,t,C,l,$),d=0;d<$;d++)(f=r.__k[d])!=null&&(g=f.__i==-1?He:C[f.__i]||He,f.__i=d,k=Ct(e,f,g,o,i,s,a,l,c,u),v=f.__e,f.ref&&g.ref!=f.ref&&(g.ref&&$t(g.ref,null,f),u.push(f.ref,f.__c||v,f)),q==null&&v!=null&&(q=v),(x=!!(4&f.__u))||g.__k===f.__k?l=fr(f,l,e,x):typeof f.type=="function"&&k!==void 0?l=k:v&&(l=v.nextSibling),f.__u&=-7);return r.__e=q,l}function zn(e,t,r,n,o){var i,s,a,l,c,u=r.length,d=u,g=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=i+g,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?et(null,s,null,null,null):De(s)?et(ge,{children:s},null,null,null):s.constructor==null&&s.__b>0?et(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(c=s.__i=Tn(s,r,l,d))!=-1&&(d--,(a=r[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(o>u?g--:o<u&&g++),typeof s.type!="function"&&(s.__u|=4)):c!=l&&(c==l-1?g--:c==l+1?g++:(c>l?g--:g++,s.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<u;i++)(a=r[i])!=null&&!(2&a.__u)&&(a.__e==n&&(n=Pe(a)),br(a,a));return n}function fr(e,t,r,n){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=fr(o[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=Pe(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function rt(e,t){return t=t||[],e==null||typeof e=="boolean"||(De(e)?e.some(function(r){rt(r,t)}):t.push(e)),t}function Tn(e,t,r,n){var o,i,s,a=e.key,l=e.type,c=t[r],u=c!=null&&(2&c.__u)==0;if(c===null&&e.key==null||u&&a==c.key&&l==c.type)return r;if(n>(u?1:0)){for(o=r-1,i=r+1;o>=0||i<t.length;)if((c=t[s=o>=0?o--:i++])!=null&&!(2&c.__u)&&a==c.key&&l==c.type)return s}return-1}function hr(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||Mn.test(t)?r:r+"px"}function nt(e,t,r,n,o){var i,s;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||hr(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||hr(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ar,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=kt,e.addEventListener(t,i?qt:St,i)):e.removeEventListener(t,i?qt:St,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function pr(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=kt++;else if(t.t<r.u)return;return r(_.event?_.event(t):t)}}}function Ct(e,t,r,n,o,i,s,a,l,c){var u,d,g,f,v,q,k,x,C,$,R,G,F,V,p,P,O,T=t.type;if(t.constructor!=null)return null;128&r.__u&&(l=!!(32&r.__u),i=[a=t.__e=r.__e]),(u=_.__b)&&u(t);e:if(typeof T=="function")try{if(x=t.props,C="prototype"in T&&T.prototype.render,$=(u=T.contextType)&&n[u.__c],R=u?$?$.props.value:u.__:n,r.__c?k=(d=t.__c=r.__c).__=d.__E:(C?t.__c=d=new T(x,R):(t.__c=d=new fe(x,R),d.constructor=T,d.render=Nn),$&&$.sub(d),d.props=x,d.state||(d.state={}),d.context=R,d.__n=n,g=d.__d=!0,d.__h=[],d._sb=[]),C&&d.__s==null&&(d.__s=d.state),C&&T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=pe({},d.__s)),pe(d.__s,T.getDerivedStateFromProps(x,d.__s))),f=d.props,v=d.state,d.__v=t,g)C&&T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),C&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(C&&T.getDerivedStateFromProps==null&&x!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(x,R),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(x,d.__s,R)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(d.props=x,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(j){j&&(j.__=t)}),G=0;G<d._sb.length;G++)d.__h.push(d._sb[G]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(x,d.__s,R),C&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,v,q)})}if(d.context=R,d.props=x,d.__P=e,d.__e=!1,F=_.__r,V=0,C){for(d.state=d.__s,d.__d=!1,F&&F(t),u=d.render(d.props,d.state,d.context),p=0;p<d._sb.length;p++)d.__h.push(d._sb[p]);d._sb=[]}else do d.__d=!1,F&&F(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++V<25);d.state=d.__s,d.getChildContext!=null&&(n=pe(pe({},n),d.getChildContext())),C&&!g&&d.getSnapshotBeforeUpdate!=null&&(q=d.getSnapshotBeforeUpdate(f,v)),P=u,u!=null&&u.type===ge&&u.key==null&&(P=mr(u.props.children)),a=ur(e,De(P)?P:[P],t,r,n,o,i,s,a,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),k&&(d.__E=d.__=null)}catch(j){if(t.__v=null,l||i!=null)if(j.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else{for(O=i.length;O--;)Et(i[O]);At(t)}else t.__e=r.__e,t.__k=r.__k,j.then||At(t);_.__e(j,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):a=t.__e=Rn(r.__e,t,r,n,o,i,s,l,c);return(u=_.diffed)&&u(t),128&t.__u?void 0:a}function At(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(At)}function gr(e,t,r){for(var n=0;n<r.length;n++)$t(r[n],r[++n],r[++n]);_.__c&&_.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){_.__e(i,o.__v)}})}function mr(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:De(e)?e.map(mr):pe({},e)}function Rn(e,t,r,n,o,i,s,a,l){var c,u,d,g,f,v,q,k=r.props,x=t.props,C=t.type;if(C=="svg"?o="http://www.w3.org/2000/svg":C=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((f=i[c])&&"setAttribute"in f==!!C&&(C?f.localName==C:f.nodeType==3)){e=f,i[c]=null;break}}if(e==null){if(C==null)return document.createTextNode(x);e=document.createElementNS(o,C,x.is&&x),a&&(_.__m&&_.__m(t,i),a=!1),i=null}if(C==null)k===x||a&&e.data==x||(e.data=x);else{if(i=i&&N.call(e.childNodes),k=r.props||He,!a&&i!=null)for(k={},c=0;c<e.attributes.length;c++)k[(f=e.attributes[c]).name]=f.value;for(c in k)if(f=k[c],c!="children"){if(c=="dangerouslySetInnerHTML")d=f;else if(!(c in x)){if(c=="value"&&"defaultValue"in x||c=="checked"&&"defaultChecked"in x)continue;nt(e,c,null,f,o)}}for(c in x)f=x[c],c=="children"?g=f:c=="dangerouslySetInnerHTML"?u=f:c=="value"?v=f:c=="checked"?q=f:a&&typeof f!="function"||k[c]===f||nt(e,c,f,k[c],o);if(u)a||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),ur(t.type=="template"?e.content:e,De(g)?g:[g],t,r,n,C=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:r.__k&&Pe(r,0),a,l),i!=null)for(c=i.length;c--;)Et(i[c]);a||(c="value",C=="progress"&&v==null?e.removeAttribute("value"):v!=null&&(v!==e[c]||C=="progress"&&!v||C=="option"&&v!=k[c])&&nt(e,c,v,k[c],o),c="checked",q!=null&&q!=e[c]&&nt(e,c,q,k[c],o))}return e}function $t(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){_.__e(o,r)}}function br(e,t,r){var n,o;if(_.unmount&&_.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||$t(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){_.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&br(n[o],t,r||typeof e.type!="function");r||Et(e.__e),e.__c=e.__=e.__e=void 0}function Nn(e,t,r){return this.constructor(e,r)}function _e(e,t,r){var n,o,i,s;t==document&&(t=document.documentElement),_.__&&_.__(e,t),o=(n=!1)?null:t.__k,i=[],s=[],Ct(t,e=t.__k=Ge(ge,null,[e]),o||He,He,t.namespaceURI,o?null:t.firstChild?N.call(t.childNodes):null,i,o?o.__e:t.firstChild,n,s),gr(i,e,s)}N=lr.slice,_={__e:function(e,t,r,n){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},je=0,nr=function(e){return e!=null&&e.constructor==null},fe.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=pe({},this.state),typeof e=="function"&&(e=e(pe({},r),this.props)),e&&pe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),dr(this))},fe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),dr(this))},fe.prototype.render=ge,Ee=[],ir=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,sr=function(e,t){return e.__v.__b-t.__v.__b},tt.__r=0,ar=/(PointerCapture)$|Capture$/i,kt=0,St=pr(!1),qt=pr(!0);var On=0;function y(e,t,r,n,o,i){t||(t={});var s,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?s=t[a]:l[a]=t[a];var c={type:e,props:l,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--On,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return _.vnode&&_.vnode(c),c}const _r=`/*
1
+ var SqueletteWidgetBundle=function(E){"use strict";var yi=Object.defineProperty;var Ln=E=>{throw TypeError(E)};var xi=(E,N,_)=>N in E?yi(E,N,{enumerable:!0,configurable:!0,writable:!0,value:_}):E[N]=_;var Z=(E,N,_)=>xi(E,typeof N!="symbol"?N+"":N,_),Pn=(E,N,_)=>N.has(E)||Ln("Cannot "+_);var h=(E,N,_)=>(Pn(E,N,"read from private field"),_?_.call(E):N.get(E)),Y=(E,N,_)=>N.has(E)?Ln("Cannot add the same private member more than once"):N instanceof WeakSet?N.add(E):N.set(E,_),L=(E,N,_,Fe)=>(Pn(E,N,"write to private field"),Fe?Fe.call(E,_):N.set(E,_),_);var A,xe,Ie,ne,ke,Le,Ue,Ke,te,ie,se,K,Qe,je,be;var N,_,Fe,nr,Ee,or,ir,sr,ar,kt,St,qt,He={},lr=[],Mn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,De=Array.isArray;function pe(e,t){for(var r in t)e[r]=t[r];return e}function Et(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ge(e,t,r){var n,o,i,s={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?N.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return et(e,s,n,o,null)}function et(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o==null?++Fe:o,__i:-1,__u:0};return o==null&&_.vnode!=null&&_.vnode(i),i}function ge(e){return e.children}function fe(e,t){this.props=e,this.context=t}function Pe(e,t){if(t==null)return e.__?Pe(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Pe(e):null}function cr(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return cr(e)}}function dr(e){(!e.__d&&(e.__d=!0)&&Ee.push(e)&&!tt.__r++||or!=_.debounceRendering)&&((or=_.debounceRendering)||ir)(tt)}function tt(){for(var e,t,r,n,o,i,s,a=1;Ee.length;)Ee.length>a&&Ee.sort(sr),e=Ee.shift(),a=Ee.length,e.__d&&(r=void 0,n=void 0,o=(n=(t=e).__v).__e,i=[],s=[],t.__P&&((r=pe({},n)).__v=n.__v+1,_.vnode&&_.vnode(r),Ct(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o==null?Pe(n):o,!!(32&n.__u),s),r.__v=n.__v,r.__.__k[r.__i]=r,gr(i,r,s),n.__e=n.__=null,r.__e!=o&&cr(r)));tt.__r=0}function ur(e,t,r,n,o,i,s,a,l,c,u){var d,g,f,v,q,k,x,C=n&&n.__k||lr,$=t.length;for(l=zn(r,t,C,l,$),d=0;d<$;d++)(f=r.__k[d])!=null&&(g=f.__i==-1?He:C[f.__i]||He,f.__i=d,k=Ct(e,f,g,o,i,s,a,l,c,u),v=f.__e,f.ref&&g.ref!=f.ref&&(g.ref&&$t(g.ref,null,f),u.push(f.ref,f.__c||v,f)),q==null&&v!=null&&(q=v),(x=!!(4&f.__u))||g.__k===f.__k?l=fr(f,l,e,x):typeof f.type=="function"&&k!==void 0?l=k:v&&(l=v.nextSibling),f.__u&=-7);return r.__e=q,l}function zn(e,t,r,n,o){var i,s,a,l,c,u=r.length,d=u,g=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=i+g,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?et(null,s,null,null,null):De(s)?et(ge,{children:s},null,null,null):s.constructor==null&&s.__b>0?et(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(c=s.__i=Tn(s,r,l,d))!=-1&&(d--,(a=r[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(o>u?g--:o<u&&g++),typeof s.type!="function"&&(s.__u|=4)):c!=l&&(c==l-1?g--:c==l+1?g++:(c>l?g--:g++,s.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<u;i++)(a=r[i])!=null&&!(2&a.__u)&&(a.__e==n&&(n=Pe(a)),br(a,a));return n}function fr(e,t,r,n){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=fr(o[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=Pe(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function rt(e,t){return t=t||[],e==null||typeof e=="boolean"||(De(e)?e.some(function(r){rt(r,t)}):t.push(e)),t}function Tn(e,t,r,n){var o,i,s,a=e.key,l=e.type,c=t[r],u=c!=null&&(2&c.__u)==0;if(c===null&&e.key==null||u&&a==c.key&&l==c.type)return r;if(n>(u?1:0)){for(o=r-1,i=r+1;o>=0||i<t.length;)if((c=t[s=o>=0?o--:i++])!=null&&!(2&c.__u)&&a==c.key&&l==c.type)return s}return-1}function hr(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||Mn.test(t)?r:r+"px"}function nt(e,t,r,n,o){var i,s;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||hr(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||hr(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ar,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=kt,e.addEventListener(t,i?qt:St,i)):e.removeEventListener(t,i?qt:St,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function pr(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=kt++;else if(t.t<r.u)return;return r(_.event?_.event(t):t)}}}function Ct(e,t,r,n,o,i,s,a,l,c){var u,d,g,f,v,q,k,x,C,$,R,G,U,V,p,P,O,T=t.type;if(t.constructor!=null)return null;128&r.__u&&(l=!!(32&r.__u),i=[a=t.__e=r.__e]),(u=_.__b)&&u(t);e:if(typeof T=="function")try{if(x=t.props,C="prototype"in T&&T.prototype.render,$=(u=T.contextType)&&n[u.__c],R=u?$?$.props.value:u.__:n,r.__c?k=(d=t.__c=r.__c).__=d.__E:(C?t.__c=d=new T(x,R):(t.__c=d=new fe(x,R),d.constructor=T,d.render=Nn),$&&$.sub(d),d.props=x,d.state||(d.state={}),d.context=R,d.__n=n,g=d.__d=!0,d.__h=[],d._sb=[]),C&&d.__s==null&&(d.__s=d.state),C&&T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=pe({},d.__s)),pe(d.__s,T.getDerivedStateFromProps(x,d.__s))),f=d.props,v=d.state,d.__v=t,g)C&&T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),C&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(C&&T.getDerivedStateFromProps==null&&x!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(x,R),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(x,d.__s,R)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(d.props=x,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(F){F&&(F.__=t)}),G=0;G<d._sb.length;G++)d.__h.push(d._sb[G]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(x,d.__s,R),C&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,v,q)})}if(d.context=R,d.props=x,d.__P=e,d.__e=!1,U=_.__r,V=0,C){for(d.state=d.__s,d.__d=!1,U&&U(t),u=d.render(d.props,d.state,d.context),p=0;p<d._sb.length;p++)d.__h.push(d._sb[p]);d._sb=[]}else do d.__d=!1,U&&U(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++V<25);d.state=d.__s,d.getChildContext!=null&&(n=pe(pe({},n),d.getChildContext())),C&&!g&&d.getSnapshotBeforeUpdate!=null&&(q=d.getSnapshotBeforeUpdate(f,v)),P=u,u!=null&&u.type===ge&&u.key==null&&(P=mr(u.props.children)),a=ur(e,De(P)?P:[P],t,r,n,o,i,s,a,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),k&&(d.__E=d.__=null)}catch(F){if(t.__v=null,l||i!=null)if(F.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else{for(O=i.length;O--;)Et(i[O]);At(t)}else t.__e=r.__e,t.__k=r.__k,F.then||At(t);_.__e(F,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):a=t.__e=Rn(r.__e,t,r,n,o,i,s,l,c);return(u=_.diffed)&&u(t),128&t.__u?void 0:a}function At(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(At)}function gr(e,t,r){for(var n=0;n<r.length;n++)$t(r[n],r[++n],r[++n]);_.__c&&_.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){_.__e(i,o.__v)}})}function mr(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:De(e)?e.map(mr):pe({},e)}function Rn(e,t,r,n,o,i,s,a,l){var c,u,d,g,f,v,q,k=r.props,x=t.props,C=t.type;if(C=="svg"?o="http://www.w3.org/2000/svg":C=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((f=i[c])&&"setAttribute"in f==!!C&&(C?f.localName==C:f.nodeType==3)){e=f,i[c]=null;break}}if(e==null){if(C==null)return document.createTextNode(x);e=document.createElementNS(o,C,x.is&&x),a&&(_.__m&&_.__m(t,i),a=!1),i=null}if(C==null)k===x||a&&e.data==x||(e.data=x);else{if(i=i&&N.call(e.childNodes),k=r.props||He,!a&&i!=null)for(k={},c=0;c<e.attributes.length;c++)k[(f=e.attributes[c]).name]=f.value;for(c in k)if(f=k[c],c!="children"){if(c=="dangerouslySetInnerHTML")d=f;else if(!(c in x)){if(c=="value"&&"defaultValue"in x||c=="checked"&&"defaultChecked"in x)continue;nt(e,c,null,f,o)}}for(c in x)f=x[c],c=="children"?g=f:c=="dangerouslySetInnerHTML"?u=f:c=="value"?v=f:c=="checked"?q=f:a&&typeof f!="function"||k[c]===f||nt(e,c,f,k[c],o);if(u)a||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),ur(t.type=="template"?e.content:e,De(g)?g:[g],t,r,n,C=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:r.__k&&Pe(r,0),a,l),i!=null)for(c=i.length;c--;)Et(i[c]);a||(c="value",C=="progress"&&v==null?e.removeAttribute("value"):v!=null&&(v!==e[c]||C=="progress"&&!v||C=="option"&&v!=k[c])&&nt(e,c,v,k[c],o),c="checked",q!=null&&q!=e[c]&&nt(e,c,q,k[c],o))}return e}function $t(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){_.__e(o,r)}}function br(e,t,r){var n,o;if(_.unmount&&_.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||$t(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){_.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&br(n[o],t,r||typeof e.type!="function");r||Et(e.__e),e.__c=e.__=e.__e=void 0}function Nn(e,t,r){return this.constructor(e,r)}function _e(e,t,r){var n,o,i,s;t==document&&(t=document.documentElement),_.__&&_.__(e,t),o=(n=!1)?null:t.__k,i=[],s=[],Ct(t,e=t.__k=Ge(ge,null,[e]),o||He,He,t.namespaceURI,o?null:t.firstChild?N.call(t.childNodes):null,i,o?o.__e:t.firstChild,n,s),gr(i,e,s)}N=lr.slice,_={__e:function(e,t,r,n){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},Fe=0,nr=function(e){return e!=null&&e.constructor==null},fe.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=pe({},this.state),typeof e=="function"&&(e=e(pe({},r),this.props)),e&&pe(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),dr(this))},fe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),dr(this))},fe.prototype.render=ge,Ee=[],ir=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,sr=function(e,t){return e.__v.__b-t.__v.__b},tt.__r=0,ar=/(PointerCapture)$|Capture$/i,kt=0,St=pr(!1),qt=pr(!0);var On=0;function y(e,t,r,n,o,i){t||(t={});var s,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?s=t[a]:l[a]=t[a];var c={type:e,props:l,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--On,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return _.vnode&&_.vnode(c),c}const _r=`/*
2
2
  * Scoped styles for the embedded iframe element. These live in the Shadow DOM
3
3
  * and are injected using constructable style sheets when supported.
4
4
  */
@@ -23,7 +23,7 @@ var SqueletteWidgetBundle=function(E){"use strict";var yi=Object.defineProperty;
23
23
  :host([data-theme="dark"]) .sq-frame {
24
24
  background: rgba(0, 0, 0, 0.3);
25
25
  }
26
- `;var Me,W,Lt,vr,ot=0,wr=[],I=_,yr=I.__b,xr=I.__r,kr=I.diffed,Sr=I.__c,qr=I.unmount,Er=I.__;function it(e,t){I.__h&&I.__h(W,e,ot||t),ot=0;var r=W.__H||(W.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function ze(e){return ot=1,Bn(Ar,e)}function Bn(e,t,r){var n=it(Me++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ar(void 0,t),function(a){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,a);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=W,!W.__f)){var o=function(a,l,c){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(g){return!!g.__c});if(u.every(function(g){return!g.__N}))return!i||i.call(this,a,l,c);var d=n.__c.props!==a;return u.forEach(function(g){if(g.__N){var f=g.__[0];g.__=g.__N,g.__N=void 0,f!==g.__[0]&&(d=!0)}}),i&&i.call(this,a,l,c)||d};W.__f=!0;var i=W.shouldComponentUpdate,s=W.componentWillUpdate;W.componentWillUpdate=function(a,l,c){if(this.__e){var u=i;i=void 0,o(a,l,c),i=u}s&&s.call(this,a,l,c)},W.shouldComponentUpdate=o}return n.__N||n.__}function ee(e,t){var r=it(Me++,3);!I.__s&&Tt(r.__H,t)&&(r.__=e,r.u=t,W.__H.__h.push(r))}function Pt(e,t){var r=it(Me++,4);!I.__s&&Tt(r.__H,t)&&(r.__=e,r.u=t,W.__h.push(r))}function X(e){return ot=5,Mt(function(){return{current:e}},[])}function Mt(e,t){var r=it(Me++,7);return Tt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Wn(){for(var e;e=wr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(st),e.__H.__h.forEach(zt),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}I.__b=function(e){W=null,yr&&yr(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Er&&Er(e,t)},I.__r=function(e){xr&&xr(e),Me=0;var t=(W=e.__c).__H;t&&(Lt===W?(t.__h=[],W.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(st),t.__h.forEach(zt),t.__h=[],Me=0)),Lt=W},I.diffed=function(e){kr&&kr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(wr.push(t)!==1&&vr===I.requestAnimationFrame||((vr=I.requestAnimationFrame)||In)(Wn)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Lt=W=null},I.__c=function(e,t){t.some(function(r){try{r.__h.forEach(st),r.__h=r.__h.filter(function(n){return!n.__||zt(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],I.__e(n,r.__v)}}),Sr&&Sr(e,t)},I.unmount=function(e){qr&&qr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{st(n)}catch(o){t=o}}),r.__H=void 0,t&&I.__e(t,r.__v))};var Cr=typeof requestAnimationFrame=="function";function In(e){var t,r=function(){clearTimeout(n),Cr&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Cr&&(t=requestAnimationFrame(r))}function st(e){var t=W,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),W=t}function zt(e){var t=W;e.__c=e.__(),W=t}function Tt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ar(e,t){return typeof t=="function"?t(e):t}function Fn({open:e,label:t,iframeSrc:r,FrameComponent:n,ensureFrame:o,onOpen:i,onClose:s,onFrameLoaded:a}){ee(()=>{e&&o()},[e,o]);const l=n;return y("div",{class:"sq-root",children:[y("button",{class:"sq-trigger",type:"button","aria-haspopup":"dialog","aria-expanded":e?"true":"false",onClick:e?s:i,part:"launcher",children:[y("span",{class:"sq-trigger-icon","aria-hidden":"true",children:"✶"}),y("span",{class:"sq-trigger-label",children:t})]}),y("div",{class:"sq-overlay","data-state":e?"open":"closed",onClick:s,role:"presentation"}),y("div",{class:"sq-panel","data-state":e?"open":"closed","aria-hidden":e?"false":"true",part:"panel",children:l&&r?y(l,{src:r,title:"Squelette feedback",onLoaded:a,onClose:s}):null})]})}const Rt="squelette-widget",Nt=typeof globalThis!="undefined"?globalThis:{},Ot=typeof Nt.SQUELETTE_WIDGET_BASE_URL=="string"&&Nt.SQUELETTE_WIDGET_BASE_URL.length>0?Nt.SQUELETTE_WIDGET_BASE_URL:"https://www.squelette.app",Un="https://cdn.squelette.app/widget.js",at="Feedback";class jn{constructor(){Z(this,"listeners",new Map)}on(t,r){var o;const n=(o=this.listeners.get(t))!=null?o:new Set;return n.add(r),this.listeners.set(t,n),()=>this.off(t,r)}off(t,r){const n=this.listeners.get(t);n&&n.delete(r)}emit(t,r){const n=this.listeners.get(t);if(n)for(const o of n)o(r)}}const Hn=`
26
+ `;var Me,B,Lt,vr,ot=0,wr=[],I=_,yr=I.__b,xr=I.__r,kr=I.diffed,Sr=I.__c,qr=I.unmount,Er=I.__;function it(e,t){I.__h&&I.__h(B,e,ot||t),ot=0;var r=B.__H||(B.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function ze(e){return ot=1,Wn(Ar,e)}function Wn(e,t,r){var n=it(Me++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ar(void 0,t),function(a){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,a);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=B,!B.__f)){var o=function(a,l,c){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(g){return!!g.__c});if(u.every(function(g){return!g.__N}))return!i||i.call(this,a,l,c);var d=n.__c.props!==a;return u.forEach(function(g){if(g.__N){var f=g.__[0];g.__=g.__N,g.__N=void 0,f!==g.__[0]&&(d=!0)}}),i&&i.call(this,a,l,c)||d};B.__f=!0;var i=B.shouldComponentUpdate,s=B.componentWillUpdate;B.componentWillUpdate=function(a,l,c){if(this.__e){var u=i;i=void 0,o(a,l,c),i=u}s&&s.call(this,a,l,c)},B.shouldComponentUpdate=o}return n.__N||n.__}function ee(e,t){var r=it(Me++,3);!I.__s&&Tt(r.__H,t)&&(r.__=e,r.u=t,B.__H.__h.push(r))}function Pt(e,t){var r=it(Me++,4);!I.__s&&Tt(r.__H,t)&&(r.__=e,r.u=t,B.__h.push(r))}function X(e){return ot=5,Mt(function(){return{current:e}},[])}function Mt(e,t){var r=it(Me++,7);return Tt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Bn(){for(var e;e=wr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(st),e.__H.__h.forEach(zt),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}I.__b=function(e){B=null,yr&&yr(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Er&&Er(e,t)},I.__r=function(e){xr&&xr(e),Me=0;var t=(B=e.__c).__H;t&&(Lt===B?(t.__h=[],B.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(st),t.__h.forEach(zt),t.__h=[],Me=0)),Lt=B},I.diffed=function(e){kr&&kr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(wr.push(t)!==1&&vr===I.requestAnimationFrame||((vr=I.requestAnimationFrame)||In)(Bn)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Lt=B=null},I.__c=function(e,t){t.some(function(r){try{r.__h.forEach(st),r.__h=r.__h.filter(function(n){return!n.__||zt(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],I.__e(n,r.__v)}}),Sr&&Sr(e,t)},I.unmount=function(e){qr&&qr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{st(n)}catch(o){t=o}}),r.__H=void 0,t&&I.__e(t,r.__v))};var Cr=typeof requestAnimationFrame=="function";function In(e){var t,r=function(){clearTimeout(n),Cr&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Cr&&(t=requestAnimationFrame(r))}function st(e){var t=B,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),B=t}function zt(e){var t=B;e.__c=e.__(),B=t}function Tt(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ar(e,t){return typeof t=="function"?t(e):t}function Un({open:e,label:t,iframeSrc:r,FrameComponent:n,ensureFrame:o,onOpen:i,onClose:s,onFrameLoaded:a}){ee(()=>{e&&o()},[e,o]);const l=n;return y("div",{class:"sq-root",children:[y("button",{class:"sq-trigger",type:"button","aria-haspopup":"dialog","aria-expanded":e?"true":"false",onClick:e?s:i,part:"launcher",children:[y("span",{class:"sq-trigger-icon","aria-hidden":"true",children:"✶"}),y("span",{class:"sq-trigger-label",children:t})]}),y("div",{class:"sq-overlay","data-state":e?"open":"closed",onClick:s,role:"presentation"}),y("div",{class:"sq-panel","data-state":e?"open":"closed","aria-hidden":e?"false":"true",part:"panel",children:l&&r?y(l,{src:r,title:"Squelette feedback",onLoaded:a,onClose:s}):null})]})}const Rt="squelette-widget",Nt=typeof globalThis!="undefined"?globalThis:{},Ot=typeof Nt.SQUELETTE_WIDGET_BASE_URL=="string"&&Nt.SQUELETTE_WIDGET_BASE_URL.length>0?Nt.SQUELETTE_WIDGET_BASE_URL:"https://www.squelette.app",jn="https://cdn.squelette.app/widget.js",at="Feedback";class Fn{constructor(){Z(this,"listeners",new Map)}on(t,r){var o;const n=(o=this.listeners.get(t))!=null?o:new Set;return n.add(r),this.listeners.set(t,n),()=>this.off(t,r)}off(t,r){const n=this.listeners.get(t);n&&n.delete(r)}emit(t,r){const n=this.listeners.get(t);if(n)for(const o of n)o(r)}}const Hn=`
27
27
  :host {
28
28
  position: relative;
29
29
  z-index: 2147483000;
@@ -160,7 +160,7 @@ var SqueletteWidgetBundle=function(E){"use strict";var yi=Object.defineProperty;
160
160
  max-height: min(85vh, 720px);
161
161
  }
162
162
  }
163
- `,$r=new Map,Dn=typeof Document!="undefined"&&"adoptedStyleSheets"in Document.prototype;function Ve(e,t){var n;if(!t)return;if(Dn){let o=(n=$r.get(t))!=null?n:null;o||(o=new CSSStyleSheet,o.replaceSync(t),$r.set(t,o)),e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return}const r=document.createElement("style");r.textContent=t,e.appendChild(r)}function Gn(e){Ve(e,Hn)}function Vn(e,t,r){r?e.hasAttribute(t)||e.setAttribute(t,""):e.hasAttribute(t)&&e.removeAttribute(t)}function Lr(e){return e?e.toLowerCase():"en"}function Pr(e){return e==="light"||e==="dark"?e:"auto"}function lt(e){return e==="roadmap"||e==="changelog"?e:"feedback"}function Mr(e){if(!e.project)return null;const t=new URLSearchParams({locale:e.locale});e.theme&&e.theme!=="auto"&&t.set("theme",e.theme),e.signature&&t.set("signature",e.signature),e.token&&t.set("token",e.token);const r=e.apiBase.replace(/\/$/,"");switch(e.view){case"roadmap":return e.board&&t.set("board",e.board),`${r}/widget/${encodeURIComponent(e.project)}/roadmap?${t.toString()}`;case"changelog":return`${r}/widget/${encodeURIComponent(e.project)}/changelog?${t.toString()}`;case"feedback":default:return e.board&&t.set("board",e.board),`${r}/widget/${encodeURIComponent(e.project)}/feedback?${t.toString()}`}}function Yn(e,t){const r=window.matchMedia("(prefers-color-scheme: dark)"),n=o=>{e.dataset.theme=o?"dark":"light"};if(t==="auto"){n(r.matches);const o=i=>n(i.matches);return r.addEventListener("change",o),()=>r.removeEventListener("change",o)}return e.dataset.theme=t,()=>{}}const Bt={feedback:{width:340,height:200},roadmap:{width:400,height:420},changelog:{width:400,height:520}},Wt={width:400,height:540};function It(e,t){var o;const{width:r,height:n}=(o=Bt[t])!=null?o:Wt;e.style.setProperty("--sq-panel-width",`${r}px`),e.style.setProperty("--sq-panel-height",`${n}px`)}function Xn(e){const t=document.body.style;{const r={overflow:t.overflow,paddingRight:t.paddingRight},n=window.innerWidth-document.documentElement.clientWidth;return t.overflow="hidden",n>0&&(t.paddingRight=`${n}px`),()=>{t.overflow=r.overflow,t.paddingRight=r.paddingRight}}}class zr extends HTMLElement{constructor(){super();Y(this,A,{project:null,board:null,theme:"auto",locale:"en",apiBase:Ot,label:at,view:"feedback"});Y(this,xe,!1);Y(this,Ie,!1);Y(this,ne,!1);Y(this,ke);Y(this,Le);Y(this,Fe,null);Y(this,Ke,null);Y(this,te,null);Y(this,ie,null);Y(this,se,null);Y(this,K,null);Y(this,Qe,null);Y(this,Ue,new jn);Y(this,be,null);Z(this,"ensureFrameModule",async()=>{var r,n,o;if(!(h(this,Fe)||h(this,Ie))){L(this,Ie,!0),this.render();try{(r=h(this,Ke))!=null||L(this,Ke,Promise.resolve().then(()=>wi));const i=await h(this,Ke),s=(n=i.WidgetFrame)!=null?n:i.default;if(!s)throw new Error("[SqueletteWidget] Widget app missing export");L(this,Fe,s),Ve(h(this,ke),(o=i.stylesText)!=null?o:_r)}catch(i){console.error("[SqueletteWidget] Failed to load widget app",i)}finally{L(this,Ie,!1),this.render()}}});Z(this,"handleFrameLoaded",()=>{L(this,ne,!0),L(this,be,h(this,ke).querySelector("iframe")),this.postIdentityToFrame(),this.render(),this.dispatchEvent(new CustomEvent("squelette:frame-loaded"))});L(this,ke,this.attachShadow({mode:"open"})),L(this,Le,document.createElement("div")),Gn(h(this,ke)),h(this,ke).appendChild(h(this,Le)),this.render()}static get observedAttributes(){return["project","board","theme","locale","token","signature","label","view","open","api-base"]}connectedCallback(){var n,o,i;h(this,A).project=this.getAttribute("project"),h(this,A).board=this.getAttribute("board"),h(this,A).theme=Pr(this.getAttribute("theme")),h(this,A).locale=Lr(this.getAttribute("locale")),h(this,A).token=(n=this.getAttribute("token"))!=null?n:void 0,h(this,A).signature=(o=this.getAttribute("signature"))!=null?o:void 0,h(this,A).label=(i=this.getAttribute("label"))!=null?i:at,h(this,A).view=lt(this.getAttribute("view"));const r=this.getAttribute("api-base");h(this,A).apiBase=r&&r.length>0?r:h(this,A).apiBase,this.applyTheme(h(this,A).theme),It(this,h(this,A).view),this.hasAttribute("open")&&this.setOpen(!0,"attribute"),L(this,se,s=>{if(!h(this,A).project||!s.data||typeof s.data!="object")return;try{const c=new URL(h(this,A).apiBase).origin;if(s.origin!==c)return}catch{return}const a=s.data;if(a.type!=="squelette:submit")return;const l=a.payload;l&&h(this,Ue).emit("submit",{source:"app",payload:l})}),window.addEventListener("message",h(this,se)),L(this,ie,s=>{var l;L(this,Qe,(l=s.detail)!=null?l:null),this.postIdentityToFrame()}),window.addEventListener("squelette:identity",h(this,ie)),this.render()}disconnectedCallback(){h(this,se)&&(window.removeEventListener("message",h(this,se)),L(this,se,null)),h(this,te)&&(h(this,te).call(this),L(this,te,null)),h(this,ie)&&(window.removeEventListener("squelette:identity",h(this,ie)),L(this,ie,null)),h(this,K)&&(h(this,K).call(this),L(this,K,null))}attributeChangedCallback(r,n,o){if(r==="open"){if(h(this,xe)===(o!==null))return;this.setOpen(o!==null,"attribute");return}switch(r){case"project":h(this,A).project=o,L(this,ne,!1);break;case"board":h(this,A).board=o,L(this,ne,!1);break;case"locale":h(this,A).locale=Lr(o),L(this,ne,!1);break;case"theme":h(this,A).theme=Pr(o),this.applyTheme(h(this,A).theme);break;case"token":h(this,A).token=o!=null?o:void 0,L(this,ne,!1);break;case"signature":h(this,A).signature=o!=null?o:void 0,L(this,ne,!1);break;case"label":h(this,A).label=o!=null?o:at;break;case"view":h(this,A).view=lt(o),L(this,ne,!1),It(this,h(this,A).view);break;case"api-base":h(this,A).apiBase=o&&o.length>0?o:Ot,L(this,ne,!1);break}r!=="open"&&this.render()}async open(){await this.setOpen(!0,"api")}async close(){await this.setOpen(!1,"api")}async toggle(){await this.setOpen(!h(this,xe),"api")}on(r,n){return r==="submit"&&!h(this,A).project&&console.warn("[SqueletteWidget] Cannot listen for submit before project is set."),h(this,Ue).on(r,n)}async destroy(){_e(null,h(this,Le)),h(this,se)&&(window.removeEventListener("message",h(this,se)),L(this,se,null)),h(this,te)&&(h(this,te).call(this),L(this,te,null)),h(this,ie)&&(window.removeEventListener("squelette:identity",h(this,ie)),L(this,ie,null)),this.parentNode&&this.parentNode.removeChild(this),h(this,K)&&(h(this,K).call(this),L(this,K,null))}render(){const r=Mr(h(this,A));_e(y(Fn,{open:h(this,xe),label:h(this,A).label,iframeSrc:r,FrameComponent:h(this,Fe),ensureFrame:this.ensureFrameModule,onOpen:()=>void this.setOpen(!0,"api"),onClose:()=>void this.setOpen(!1,"api"),onFrameLoaded:this.handleFrameLoaded}),h(this,Le))}async setOpen(r,n){if(r&&!h(this,A).project){console.warn("[SqueletteWidget] Missing `project` attribute or option.");return}if(h(this,xe)!==r){if(L(this,xe,r),Vn(this,"open",r),r)h(this,K)||L(this,K,Xn()),It(this,h(this,A).view);else{h(this,K)&&(h(this,K).call(this),L(this,K,null)),L(this,ne,!1);const o=Mr(h(this,A));o&&h(this,be)&&(h(this,be).src=o)}this.render(),h(this,Ue).emit(r?"open":"close",{source:n})}}applyTheme(r){h(this,te)&&(h(this,te).call(this),L(this,te,null)),L(this,te,Yn(this,r))}postIdentityToFrame(){if(!(!h(this,be)||!h(this,be).contentWindow))try{const r=new URL(h(this,A).apiBase).origin;h(this,be).contentWindow.postMessage({type:"squelette-identify",payload:h(this,Qe)},r)}catch(r){console.warn("[SqueletteWidget] Unable to forward identity payload",r)}}}A=new WeakMap,xe=new WeakMap,Ie=new WeakMap,ne=new WeakMap,ke=new WeakMap,Le=new WeakMap,Fe=new WeakMap,Ke=new WeakMap,te=new WeakMap,ie=new WeakMap,se=new WeakMap,K=new WeakMap,Qe=new WeakMap,Ue=new WeakMap,be=new WeakMap;function Ft(){customElements.get(Rt)||customElements.define(Rt,zr)}let ct=null;function Tr(e){window.dispatchEvent(new CustomEvent("squelette:identity",{detail:e}))}function Rr(e){if(!e||!e.userId||!e.email||!e.signature){console.error("[SqueletteWidget] Invalid identification payload.",e);return}ct=e,Tr(ct)}function Nr(){ct=null,Tr(null)}function Or(){return ct}function Ut(e,t,r){const n=Math.max(t,r);return Math.min(Math.max(e,t),n)}function Zn(e,t){var F,V;const r=[],n=(F=t.position)!=null?F:"top",o=(V=t.overlayBlur)!=null?V:!0,i=12,s=n.startsWith("fixed-"),a=/^fixed-(top|center|bottom)-(left|center|right)$/;let l=null,c=!1,u=!1,d=null;const g=()=>{e.removeAttribute("data-anchor"),e.removeAttribute("data-anchor-origin"),e.removeAttribute("data-fixed-vertical"),e.removeAttribute("data-fixed-horizontal"),e.style.removeProperty("--sq-offset-top"),e.style.removeProperty("--sq-offset-left"),e.style.removeProperty("--sq-offset-bottom"),e.style.removeProperty("--sq-offset-right")},f=()=>{var Se;if(!c||!l)return;const p=l.getBoundingClientRect(),P=window.innerWidth,O=window.innerHeight,T=lt(e.getAttribute("view")),j=(Se=Bt[T])!=null?Se:Wt,ae=Math.min(j.width,P-i*2),le=Math.min(j.height,O-i*2),ce=Math.max(i,P-ae-i),Q=Math.max(i,O-le-i),de=p.top-i,w=O-p.bottom-i;let oe=p.bottom+i,re=p.left+p.width/2-ae/2,ue="top";if(n==="left"||n==="right"){let M=n==="right";const H=p.right+i,he=p.left-ae-i,qe=H+ae<=P-i,B=he>=i;M&&!qe&&B?M=!1:!M&&!B&&qe&&(M=!0),M?(re=H,ue="left"):(re=he,ue="right");const vt=p.top+p.height/2-le/2;oe=Ut(vt,i,Q)}else{let M=n==="bottom";n!=="top"&&n!=="bottom"&&(M=w>=de);const H=p.bottom+i,he=p.top-le-i,qe=H+le<=O-i,B=he>=i;M&&!qe&&B?M=!1:!M&&!B&&qe&&(M=!0),M?(oe=H,ue="top"):(oe=he,ue="bottom"),re=p.left+p.width/2-ae/2}oe=Ut(oe,i,Q),re=Ut(re,i,ce),e.dataset.anchor="button",e.dataset.anchorOrigin=ue,e.style.setProperty("--sq-offset-top",`${Math.round(oe)}px`),e.style.setProperty("--sq-offset-left",`${Math.round(re)}px`),e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto")},v=()=>{c&&requestAnimationFrame(f)},q=()=>{u||(window.addEventListener("resize",v),window.addEventListener("scroll",v,!0),u=!0)},k=()=>{u&&(window.removeEventListener("resize",v),window.removeEventListener("scroll",v,!0),u=!1)},x=()=>{!l||s||(c=!0,e.dataset.anchor="button",e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto"),q(),f(),requestAnimationFrame(f))},C=()=>{c=!1,k()};r.push(()=>{C(),g()}),o||(e.dataset.overlayBlur="off",r.push(()=>{delete e.dataset.overlayBlur}));const $=()=>{var M;if(!s)return;const p=n.match(a);if(!p){console.warn(`[SqueletteWidget] Unsupported position value: ${n}`);return}const[,P,O]=p,T=24,j=lt(e.getAttribute("view")),ae=(M=Bt[j])!=null?M:Wt,le=window.innerWidth,ce=window.innerHeight,Q=Math.min(ae.width,le-T*2),de=Math.min(ae.height,ce-T*2);let w="auto",oe="auto",re="auto",ue="auto";switch(P){case"top":w=`${T}px`;break;case"bottom":oe=`${T}px`;break;case"center":w=`${Math.max(T,Math.round((ce-de)/2))}px`;break}switch(O){case"left":re=`${T}px`;break;case"right":ue=`${T}px`;break;case"center":re=`${Math.max(T,Math.round((le-Q)/2))}px`;break}e.dataset.anchor="fixed";const Se=P==="center"?O==="center"?"bottom":O:P;e.dataset.anchorOrigin=Se,e.dataset.fixedVertical=P,e.dataset.fixedHorizontal=O,e.style.setProperty("--sq-offset-top",w),e.style.setProperty("--sq-offset-bottom",oe),e.style.setProperty("--sq-offset-left",re),e.style.setProperty("--sq-offset-right",ue)};if(s&&$(),t.buttonSelector)if(l=document.querySelector(t.buttonSelector),l){const p=l;e.dataset.launcherHidden="true",r.push(()=>{delete e.dataset.launcherHidden});const P=T=>{T.preventDefault(),T.stopPropagation(),e.toggle()};p.addEventListener("click",P,!1),r.push(()=>p.removeEventListener("click",P,!1));const O=()=>{s?$():requestAnimationFrame(f)};e.addEventListener("squelette:frame-loaded",O),r.push(()=>e.removeEventListener("squelette:frame-loaded",O)),d=T=>{if(!e.hasAttribute("open"))return;const j=T.target;!e.contains(j)&&!p.contains(j)&&e.close()},document.addEventListener("click",d,!0),r.push(()=>{d&&(document.removeEventListener("click",d,!0),d=null)})}else console.warn(`[SqueletteWidget] Button selector not found: ${t.buttonSelector}`);const R=e.on("open",()=>{s?$():l&&x()}),G=e.on("close",()=>{C()});if(r.push(R,G),t.onOpenChange){const p=e.on("open",()=>{var O;return(O=t.onOpenChange)==null?void 0:O.call(t,!0)}),P=e.on("close",()=>{var O;return(O=t.onOpenChange)==null?void 0:O.call(t,!1)});r.push(p,P)}if(t.onLoad){const p=()=>{var P;(P=t.onLoad)==null||P.call(t),e.removeEventListener("squelette:frame-loaded",p)};e.addEventListener("squelette:frame-loaded",p),r.push(()=>e.removeEventListener("squelette:frame-loaded",p))}return r}const Br='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.mx-4{margin-left:1rem;margin-right:1rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.size-4{width:1rem;height:1rem}.h-6{height:1.5rem}.h-\\[64px\\]{height:64px}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[400px\\]{max-width:400px}.max-w-lg{max-width:32rem}.shrink-0{flex-shrink:0}.origin-center{transform-origin:center}.translate-y-0\\.5{--tw-translate-y: .125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.whitespace-nowrap{white-space:nowrap}.rounded-\\[32px\\]{border-radius:32px}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.border-\\[3px\\]{border-width:3px}.border-none{border-style:none}.border-\\[\\#222222\\]{--tw-border-opacity: 1;border-color:rgb(34 34 34 / var(--tw-border-opacity, 1))}.border-\\[\\#f0f0f0\\]{--tw-border-opacity: 1;border-color:rgb(240 240 240 / var(--tw-border-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-transparent{background-color:transparent}.bg-white\\/30{background-color:#ffffff4d}.p-0{padding:0}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.align-baseline{vertical-align:baseline}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-transform{will-change:transform}:host{display:block;width:100%;contain:content;--squelette-banner-bg: #ffffff;--squelette-banner-border: #e5e7eb;--squelette-banner-text: #111827;--squelette-banner-badge-bg: #7f3cec;--squelette-banner-badge-text: #ffffff;--squelette-banner-button-hover: .7}';var Jn=Symbol.for("preact-signals");function dt(){if(ve>1)ve--;else{for(var e,t=!1;Ye!==void 0;){var r=Ye;for(Ye=void 0,jt++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Fr(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(jt=0,ve--,t)throw e}}function Kn(e){if(ve>0)return e();ve++;try{return e()}finally{dt()}}var z=void 0;function Wr(e){var t=z;z=void 0;try{return e()}finally{z=t}}var Ye=void 0,ve=0,jt=0,ut=0;function Ir(e){if(z!==void 0){var t=e.n;if(t===void 0||t.t!==z)return t={i:0,S:e,p:z.s,n:void 0,t:z,e:void 0,x:void 0,r:t},z.s!==void 0&&(z.s.n=t),z.s=t,e.n=t,32&z.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=z.s,t.n=void 0,z.s.n=t,z.s=t),t}}function D(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}D.prototype.brand=Jn,D.prototype.h=function(){return!0},D.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:Wr(function(){var n;(n=t.W)==null||n.call(t)}))},D.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&Wr(function(){var o;(o=t.Z)==null||o.call(t)}))}},D.prototype.subscribe=function(e){var t=this;return Xe(function(){var r=t.value,n=z;z=void 0;try{e(r)}finally{z=n}},{name:"sub"})},D.prototype.valueOf=function(){return this.value},D.prototype.toString=function(){return this.value+""},D.prototype.toJSON=function(){return this.value},D.prototype.peek=function(){var e=z;z=void 0;try{return this.value}finally{z=e}},Object.defineProperty(D.prototype,"value",{get:function(){var e=Ir(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(jt>100)throw new Error("Cycle detected");this.v=e,this.i++,ut++,ve++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{dt()}}}});function Ce(e,t){return new D(e,t)}function Fr(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ur(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function jr(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Ae(e,t){D.call(this,void 0),this.x=e,this.s=void 0,this.g=ut-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Ae.prototype=new D,Ae.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ut))return!0;if(this.g=ut,this.f|=1,this.i>0&&!Fr(this))return this.f&=-2,!0;var e=z;try{Ur(this),z=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return z=e,jr(this),this.f&=-2,!0},Ae.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}D.prototype.S.call(this,e)},Ae.prototype.U=function(e){if(this.t!==void 0&&(D.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Ae.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(Ae.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Ir(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Hr(e,t){return new Ae(e,t)}function Dr(e){var t=e.u;if(e.u=void 0,typeof t=="function"){ve++;var r=z;z=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Ht(e),n}finally{z=r,dt()}}}function Ht(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Dr(e)}function Qn(e){if(z!==this)throw new Error("Out-of-order effect");jr(this),z=e,this.f&=-2,8&this.f&&Ht(this),dt()}function Te(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}Te.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},Te.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Dr(this),Ur(this),ve++;var e=z;return z=this,Qn.bind(this,e)},Te.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ye,Ye=this)},Te.prototype.d=function(){this.f|=8,1&this.f||Ht(this)},Te.prototype.dispose=function(){this.d()};function Xe(e,t){var r=new Te(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var Gr,Dt,Vr=[];Xe(function(){Gr=this.N})();function Re(e,t){_[e]=t.bind(null,_[e]||function(){})}function ft(e){Dt&&Dt(),Dt=e&&e.S()}function Yr(e){var t=this,r=e.data,n=to(r);n.value=r;var o=Mt(function(){for(var a=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Hr(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),u=Hr(function(){return!Array.isArray(c.value)&&!nr(c.value)}),d=Xe(function(){if(this.N=Xr,u.value){var f=c.value;a.__v&&a.__v.__e&&a.__v.__e.nodeType===3&&(a.__v.__e.data=f)}}),g=t.__$u.d;return t.__$u.d=function(){d(),g.call(this)},[u,c]},[]),i=o[0],s=o[1];return i.value?s.peek():s.value}Yr.displayName="ReactiveTextNode",Object.defineProperties(D.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Yr},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Re("__b",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof D&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)}),Re("__r",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==ge){ft();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(o){var i;return Xe(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i}())),ft(r)}e(t)}),Re("__e",function(e,t,r,n){typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),ft(),e(t,r,n)}),Re("diffed",function(e,t){typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),ft();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var s in i){var a=i[s];a!==void 0&&!(s in n)&&(a.d(),i[s]=void 0)}else i={},r.U=i;for(var l in n){var c=i[l],u=n[l];c===void 0?(c=eo(r,l,u,o),i[l]=c):c.o(u,o)}}}e(t)});function eo(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=Ce(r);return{o:function(s,a){i.value=s,n=a},d:Xe(function(){this.N=Xr;var s=i.value.value;n[t]!==s&&(n[t]=s,o?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}Re("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)}),Re("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)}),fe.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var s in e)if(s!=="__source"&&e[s]!==this.props[s])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function to(e,t){return ze(function(){return Ce(e,t)})[0]}var ro=function(e){queueMicrotask(function(){queueMicrotask(e)})};function no(){Kn(function(){for(var e;e=Vr.shift();)Gr.call(e)})}function Xr(){Vr.push(this)===1&&(_.requestAnimationFrame||ro)(no)}function Zr(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Zr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function oo(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zr(e))&&(n&&(n+=" "),n+=t);return n}const Gt="-",io=e=>{const t=ao(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const a=s.split(Gt);return a[0]===""&&a.length!==1&&a.shift(),Jr(a,t)||so(s)},getConflictingClassGroupIds:(s,a)=>{const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}}},Jr=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Jr(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Gt);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},Kr=/^\[(.+)\]$/,so=e=>{if(Kr.test(e)){const t=Kr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ao=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Vt(r[o],n,o,t);return n},Vt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Qr(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(lo(o)){Vt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Vt(s,Qr(t,i),r,n)})})},Qr=(e,t)=>{let r=e;return t.split(Gt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},lo=e=>e.isThemeGetter,co=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},Yt="!",Xt=":",uo=Xt.length,fo=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let s=0,a=0,l=0,c;for(let v=0;v<o.length;v++){let q=o[v];if(s===0&&a===0){if(q===Xt){i.push(o.slice(l,v)),l=v+uo;continue}if(q==="/"){c=v;continue}}q==="["?s++:q==="]"?s--:q==="("?a++:q===")"&&a--}const u=i.length===0?o:o.substring(l),d=ho(u),g=d!==u,f=c&&c>l?c-l:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:d,maybePostfixModifierPosition:f}};if(t){const o=t+Xt,i=n;n=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},ho=e=>e.endsWith(Yt)?e.substring(0,e.length-1):e.startsWith(Yt)?e.substring(1):e,po=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let i=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},go=e=>({cache:co(e.cacheSize),parseClassName:fo(e),sortModifiers:po(e),...io(e)}),mo=/\s+/,bo=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(mo);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:g,hasImportantModifier:f,baseClassName:v,maybePostfixModifierPosition:q}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let k=!!q,x=n(k?v.substring(0,q):v);if(!x){if(!k){l=u+(l.length>0?" "+l:l);continue}if(x=n(v),!x){l=u+(l.length>0?" "+l:l);continue}k=!1}const C=i(g).join(":"),$=f?C+Yt:C,R=$+x;if(s.includes(R))continue;s.push(R);const G=o(x,k);for(let F=0;F<G.length;++F){const V=G[F];s.push($+V)}l=u+(l.length>0?" "+l:l)}return l};function _o(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=en(t))&&(n&&(n+=" "),n+=r);return n}const en=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=en(e[n]))&&(r&&(r+=" "),r+=t);return r};function vo(e,...t){let r,n,o,i=s;function s(l){const c=t.reduce((u,d)=>d(u),e());return r=go(c),n=r.cache.get,o=r.cache.set,i=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=bo(l,r);return o(l,u),u}return function(){return i(_o.apply(null,arguments))}}const U=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},tn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,rn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wo=/^\d+\/\d+$/,yo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ko=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,So=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ne=e=>wo.test(e),S=e=>!!e&&!Number.isNaN(Number(e)),we=e=>!!e&&Number.isInteger(Number(e)),Zt=e=>e.endsWith("%")&&S(e.slice(0,-1)),me=e=>yo.test(e),Eo=()=>!0,Co=e=>xo.test(e)&&!ko.test(e),nn=()=>!1,Ao=e=>So.test(e),$o=e=>qo.test(e),Lo=e=>!m(e)&&!b(e),Po=e=>Oe(e,cn,nn),m=e=>tn.test(e),$e=e=>Oe(e,dn,Co),Jt=e=>Oe(e,No,S),on=e=>Oe(e,an,nn),Mo=e=>Oe(e,ln,$o),ht=e=>Oe(e,un,Ao),b=e=>rn.test(e),Ze=e=>Be(e,dn),zo=e=>Be(e,Oo),sn=e=>Be(e,an),To=e=>Be(e,cn),Ro=e=>Be(e,ln),pt=e=>Be(e,un,!0),Oe=(e,t,r)=>{const n=tn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Be=(e,t,r=!1)=>{const n=rn.exec(e);return n?n[1]?t(n[1]):r:!1},an=e=>e==="position"||e==="percentage",ln=e=>e==="image"||e==="url",cn=e=>e==="length"||e==="size"||e==="bg-size",dn=e=>e==="length",No=e=>e==="number",Oo=e=>e==="family-name",un=e=>e==="shadow",Bo=vo(()=>{const e=U("color"),t=U("font"),r=U("text"),n=U("font-weight"),o=U("tracking"),i=U("leading"),s=U("breakpoint"),a=U("container"),l=U("spacing"),c=U("radius"),u=U("shadow"),d=U("inset-shadow"),g=U("text-shadow"),f=U("drop-shadow"),v=U("blur"),q=U("perspective"),k=U("aspect"),x=U("ease"),C=U("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...R(),b,m],F=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],p=()=>[b,m,l],P=()=>[Ne,"full","auto",...p()],O=()=>[we,"none","subgrid",b,m],T=()=>["auto",{span:["full",we,b,m]},we,b,m],j=()=>[we,"auto",b,m],ae=()=>["auto","min","max","fr",b,m],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ce=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...p()],de=()=>[Ne,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...p()],w=()=>[e,b,m],oe=()=>[...R(),sn,on,{position:[b,m]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",To,Po,{size:[b,m]}],Se=()=>[Zt,Ze,$e],M=()=>["","none","full",c,b,m],H=()=>["",S,Ze,$e],he=()=>["solid","dashed","dotted","double"],qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[S,Zt,sn,on],vt=()=>["","none",v,b,m],wt=()=>["none",S,b,m],yt=()=>["none",S,b,m],rr=()=>[S,b,m],xt=()=>[Ne,"full",...p()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[me],breakpoint:[me],color:[Eo],container:[me],"drop-shadow":[me],ease:["in","out","in-out"],font:[Lo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[me],shadow:[me],spacing:["px",S],text:[me],"text-shadow":[me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ne,m,b,k]}],container:["container"],columns:[{columns:[S,m,b,a]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[we,"auto",b,m]}],basis:[{basis:[Ne,"full","auto",a,...p()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[S,Ne,"auto","initial","none",m]}],grow:[{grow:["",S,b,m]}],shrink:[{shrink:["",S,b,m]}],order:[{order:[we,"first","last","none",b,m]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:p()}],"gap-x":[{"gap-x":p()}],"gap-y":[{"gap-y":p()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],p:[{p:p()}],px:[{px:p()}],py:[{py:p()}],ps:[{ps:p()}],pe:[{pe:p()}],pt:[{pt:p()}],pr:[{pr:p()}],pb:[{pb:p()}],pl:[{pl:p()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":p()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":p()}],"space-y-reverse":["space-y-reverse"],size:[{size:de()}],w:[{w:[a,"screen",...de()]}],"min-w":[{"min-w":[a,"screen","none",...de()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...de()]}],h:[{h:["screen","lh",...de()]}],"min-h":[{"min-h":["screen","lh","none",...de()]}],"max-h":[{"max-h":["screen","lh",...de()]}],"font-size":[{text:["base",r,Ze,$e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,b,Jt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zt,m]}],"font-family":[{font:[zo,m,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,b,m]}],"line-clamp":[{"line-clamp":[S,"none",b,Jt]}],leading:[{leading:[i,...p()]}],"list-image":[{"list-image":["none",b,m]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",b,m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[S,"from-font","auto",b,$e]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[S,"auto",b,m]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b,m]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b,m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},we,b,m],radial:["",b,m],conic:[we,b,m]},Ro,Mo]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:Se()}],"gradient-via-pos":[{via:Se()}],"gradient-to-pos":[{to:Se()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[S,b,m]}],"outline-w":[{outline:["",S,Ze,$e]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",u,pt,ht]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",d,pt,ht]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[S,$e]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",g,pt,ht]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[S,b,m]}],"mix-blend":[{"mix-blend":[...qe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":qe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[S]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[b,m]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[S]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",b,m]}],filter:[{filter:["","none",b,m]}],blur:[{blur:vt()}],brightness:[{brightness:[S,b,m]}],contrast:[{contrast:[S,b,m]}],"drop-shadow":[{"drop-shadow":["","none",f,pt,ht]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",S,b,m]}],"hue-rotate":[{"hue-rotate":[S,b,m]}],invert:[{invert:["",S,b,m]}],saturate:[{saturate:[S,b,m]}],sepia:[{sepia:["",S,b,m]}],"backdrop-filter":[{"backdrop-filter":["","none",b,m]}],"backdrop-blur":[{"backdrop-blur":vt()}],"backdrop-brightness":[{"backdrop-brightness":[S,b,m]}],"backdrop-contrast":[{"backdrop-contrast":[S,b,m]}],"backdrop-grayscale":[{"backdrop-grayscale":["",S,b,m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S,b,m]}],"backdrop-invert":[{"backdrop-invert":["",S,b,m]}],"backdrop-opacity":[{"backdrop-opacity":[S,b,m]}],"backdrop-saturate":[{"backdrop-saturate":[S,b,m]}],"backdrop-sepia":[{"backdrop-sepia":["",S,b,m]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":p()}],"border-spacing-x":[{"border-spacing-x":p()}],"border-spacing-y":[{"border-spacing-y":p()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",b,m]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[S,"initial",b,m]}],ease:[{ease:["linear","initial",x,b,m]}],delay:[{delay:[S,b,m]}],animate:[{animate:["none",C,b,m]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[q,b,m]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:wt()}],"rotate-x":[{"rotate-x":wt()}],"rotate-y":[{"rotate-y":wt()}],"rotate-z":[{"rotate-z":wt()}],scale:[{scale:yt()}],"scale-x":[{"scale-x":yt()}],"scale-y":[{"scale-y":yt()}],"scale-z":[{"scale-z":yt()}],"scale-3d":["scale-3d"],skew:[{skew:rr()}],"skew-x":[{"skew-x":rr()}],"skew-y":[{"skew-y":rr()}],transform:[{transform:[b,m,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xt()}],"translate-x":[{"translate-x":xt()}],"translate-y":[{"translate-y":xt()}],"translate-z":[{"translate-z":xt()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",b,m]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b,m]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[S,Ze,$e,Jt]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Je(...e){return Bo(oo(e))}function Wo(e,t){for(var r in t)e[r]=t[r];return e}function fn(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function hn(e,t){this.props=e,this.context=t}(hn.prototype=new fe).isPureReactComponent=!0,hn.prototype.shouldComponentUpdate=function(e,t){return fn(this.props,e)||fn(this.state,t)};var pn=_.__b;_.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),pn&&pn(e)};var Io=_.__e;_.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Io(e,t,r,n)};var gn=_.unmount;function mn(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Wo({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return mn(n,t,r)})),e}function bn(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return bn(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Kt(){this.__u=0,this.o=null,this.__b=null}function _n(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function gt(){this.i=null,this.l=null}_.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),gn&&gn(e)},(Kt.prototype=new fe).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=_n(n.__v),i=!1,s=function(){i||(i=!0,r.__R=null,o?o(a):a())};r.__R=s;var a=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=bn(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},Kt.prototype.componentWillUnmount=function(){this.o=[]},Kt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=mn(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&Ge(ge,null,e.fallback);return o&&(o.__u&=-33),[Ge(ge,null,t.__a?null:e.children),o]};var vn=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Fo(e){return this.getChildContext=function(){return e.context},e.children}function Uo(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){_e(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}_e(Ge(Fo,{context:t.context},e.__v),t.v)}function jo(e,t){var r=Ge(Uo,{__v:e,h:t});return r.containerInfo=t,r}(gt.prototype=new fe).__a=function(e){var t=this,r=_n(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),vn(t,e,n)):o()};r?r(i):i()}},gt.prototype.render=function(e){this.i=null,this.l=new Map;var t=rt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},gt.prototype.componentDidUpdate=gt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){vn(e,r,t)})};var Ho=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Do=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Go=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Vo=/[A-Z0-9]/g,Yo=typeof document!="undefined",Xo=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};fe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(fe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var wn=_.event;function Zo(){}function Jo(){return this.cancelBubble}function Ko(){return this.defaultPrevented}_.event=function(e){return wn&&(e=wn(e)),e.persist=Zo,e.isPropagationStopped=Jo,e.isDefaultPrevented=Ko,e.nativeEvent=e};var Qo={enumerable:!1,configurable:!0,get:function(){return this.class}},yn=_.vnode;_.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={},i=n.indexOf("-")===-1;for(var s in r){var a=r[s];if(!(s==="value"&&"defaultValue"in r&&a==null||Yo&&s==="children"&&n==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in r&&r.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||Xo(r.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Go.test(s)&&(s=l):l=s="oninput":i&&Do.test(s)?s=s.replace(Vo,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=rt(r.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=rt(r.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",Qo)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=Ho,yn&&yn(e)};var xn=_.__r;_.__r=function(e){xn&&xn(e),e.__c};var kn=_.diffed;_.diffed=function(e){kn&&kn(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value)};function Sn(){const e=X(null),t=X("idle"),r=X();return ee(()=>()=>{r.current&&clearTimeout(r.current)},[]),{ref:e,animate:(o,i={})=>new Promise(s=>{const a=e.current;if(!a){s();return}const{duration:l=300,easing:c="ease-out",delay:u=0,onComplete:d}=i;t.current="running",a.style.transition=`all ${l}ms ${c} ${u}ms`,Object.entries(o).forEach(([f,v])=>{a.style.setProperty(f,v)});const g=l+u;r.current=setTimeout(()=>{t.current="finished",a.style.transition="",d==null||d(),s()},g)})}}function ei(e,t){const{ref:r,animate:n}=Sn();return ee(()=>{if(!e||!r.current)return;const o=setTimeout(()=>{n({transform:"translateY(0)",opacity:"1"},{duration:1e3,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)",onComplete:t})},500);return()=>clearTimeout(o)},[e]),r}function ti(e,t){const{ref:r,animate:n}=Sn();return ee(()=>{r.current&&(e?n({width:`${t+20}px`,paddingLeft:"0.5rem",paddingRight:"0.5rem"},{duration:1200,easing:"cubic-bezier(0.16, 1, 0.3, 1)"}):n({width:"0",paddingLeft:"0",paddingRight:"0"},{duration:300,easing:"cubic-bezier(0.16, 1, 0.3, 1)"}))},[e,t]),r}function ri(e){const t=X(null),r=X(null);return ee(()=>{!t.current||!r.current||e&&(t.current.style.transition="opacity 500ms ease-out",t.current.style.opacity="1",r.current.style.transition="transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease-out",r.current.style.transform="translateY(0)",r.current.style.opacity="1")},[e]),{overlayRef:t,contentRef:r,close:async()=>{!t.current||!r.current||(t.current.style.transition="opacity 200ms ease-out",t.current.style.opacity="0",r.current.style.transition="transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease-out",r.current.style.transform="translateY(-70px)",r.current.style.opacity="0",await new Promise(o=>setTimeout(o,200)))}}}const mt=Ce(!1),ni=Ce(null);function oi({workspaceSlug:e,theme:t,base:r="https://www.squelette.app",ticketId:n}){const o=X(null),i=X(null),[s,a]=ze(null),l=X(null),c=X(!1),{overlayRef:u,contentRef:d,close:g}=ri(mt.value);ee(()=>{const $=document.createElement("div");$.id="squelette-banner-modal-portal",$.style.position="fixed",$.style.inset="0",$.style.zIndex="999999",$.style.pointerEvents="none";const R=$.attachShadow({mode:"open"});return Ve(R,Br),document.body.appendChild($),o.current=$,a(R),()=>{o.current&&(document.body.removeChild(o.current),o.current=null,a(null))}},[]);const f=()=>{var $;if(!(!(($=i.current)!=null&&$.contentWindow)||!l.current))try{const R=new URL(Ot).origin;i.current.contentWindow.postMessage({type:"squelette-identify",payload:l.current},R)}catch(R){console.warn("[BannerModal] Failed to send identity to iframe:",R)}};ee(()=>{const $=Or();$&&(l.current=$);const R=F=>{var p;const V=F;l.current=(p=V.detail)!=null?p:null,c.current?f():console.info("[BannerModal] Iframe not ready yet, identity will be sent when ready")},G=F=>{var V;((V=F.data)==null?void 0:V.type)==="squelette-iframe-ready"&&(c.current=!0,l.current?f():console.log("[BannerModal] Iframe ready but no identity yet"))};return window.addEventListener("squelette:identity",R),window.addEventListener("message",G),()=>{window.removeEventListener("squelette:identity",R),window.removeEventListener("message",G)}},[]);const v=()=>{console.log("[BannerModal] Iframe onLoad event fired")},q=async()=>{await g(),mt.value=!1},k=$=>{$.target===u.current&&q()};if(!s)return null;const x=Mt(()=>y("iframe",{ref:i,className:"w-full h-full border-none outline-none",src:`${r}/widget/${e}/changelog/last?theme=${t}${n?`&ticketId=${n}`:""}`,onLoad:v}),[r,e,t,n]),C=y("div",{ref:u,className:Je("fixed inset-0 backdrop-blur-sm flex items-center justify-center",t==="dark"?"bg-black/30":"bg-white/30"),style:{pointerEvents:mt.value?"auto":"none",opacity:0},onClick:k,children:y("div",{ref:d,className:Je("rounded-[32px] border-[3px] shadow-lg max-w-lg w-full mx-4 p-0 outline-none relative overflow-hidden",t==="light"?"border-[#f0f0f0]":"border-[#222222]"),style:{opacity:0,transform:"translateY(-70px)",height:650},children:x})});return jo(C,s)}const Qt=e=>{if(e)return!1;try{return localStorage.getItem("squelette-enable-cache")!=="false"}catch{return!0}},ii=5*60*1e3,qn="squelette_banner_last_ticket",En=48,J=Ce(null),ye=Ce(!1),We=Ce(!0);function si({workspaceSlug:e="squelette",theme:t,base:r="https://www.squelette.app",debug:n=!1,ticketId:o}){const i=X(null),s=X(null),[a,l]=ze(96),c=ei(!!J.value,()=>{ye.value=!0});ee(()=>(console.log("[Banner] Component mounted, resetting signals"),J.value=null,ye.value=!1,We.value=!1,()=>{console.log("[Banner] Component unmounting")}),[]),ee(()=>{if(!document.getElementById("squelette-shake-animation")){const f=document.createElement("style");f.id="squelette-shake-animation",f.textContent=`
163
+ `,$r=new Map,Dn=typeof Document!="undefined"&&"adoptedStyleSheets"in Document.prototype;function Ve(e,t){var n;if(!t)return;if(Dn){let o=(n=$r.get(t))!=null?n:null;o||(o=new CSSStyleSheet,o.replaceSync(t),$r.set(t,o)),e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return}const r=document.createElement("style");r.textContent=t,e.appendChild(r)}function Gn(e){Ve(e,Hn)}function Vn(e,t,r){r?e.hasAttribute(t)||e.setAttribute(t,""):e.hasAttribute(t)&&e.removeAttribute(t)}function Lr(e){return e?e.toLowerCase():"en"}function Pr(e){return e==="light"||e==="dark"?e:"auto"}function lt(e){return e==="roadmap"||e==="changelog"?e:"feedback"}function Mr(e){if(!e.project)return null;const t=new URLSearchParams({locale:e.locale});e.theme&&e.theme!=="auto"&&t.set("theme",e.theme),e.signature&&t.set("signature",e.signature),e.token&&t.set("token",e.token);const r=e.apiBase.replace(/\/$/,"");switch(e.view){case"roadmap":return e.board&&t.set("board",e.board),`${r}/widget/${encodeURIComponent(e.project)}/roadmap?${t.toString()}`;case"changelog":return`${r}/widget/${encodeURIComponent(e.project)}/changelog?${t.toString()}`;case"feedback":default:return e.board&&t.set("board",e.board),`${r}/widget/${encodeURIComponent(e.project)}/feedback?${t.toString()}`}}function Yn(e,t){const r=window.matchMedia("(prefers-color-scheme: dark)"),n=o=>{e.dataset.theme=o?"dark":"light"};if(t==="auto"){n(r.matches);const o=i=>n(i.matches);return r.addEventListener("change",o),()=>r.removeEventListener("change",o)}return e.dataset.theme=t,()=>{}}const Wt={feedback:{width:340,height:200},roadmap:{width:400,height:420},changelog:{width:400,height:520}},Bt={width:400,height:540};function It(e,t){var o;const{width:r,height:n}=(o=Wt[t])!=null?o:Bt;e.style.setProperty("--sq-panel-width",`${r}px`),e.style.setProperty("--sq-panel-height",`${n}px`)}function Xn(e){const t=document.body.style;{const r={overflow:t.overflow,paddingRight:t.paddingRight},n=window.innerWidth-document.documentElement.clientWidth;return t.overflow="hidden",n>0&&(t.paddingRight=`${n}px`),()=>{t.overflow=r.overflow,t.paddingRight=r.paddingRight}}}class zr extends HTMLElement{constructor(){super();Y(this,A,{project:null,board:null,theme:"auto",locale:"en",apiBase:Ot,label:at,view:"feedback"});Y(this,xe,!1);Y(this,Ie,!1);Y(this,ne,!1);Y(this,ke);Y(this,Le);Y(this,Ue,null);Y(this,Ke,null);Y(this,te,null);Y(this,ie,null);Y(this,se,null);Y(this,K,null);Y(this,Qe,null);Y(this,je,new Fn);Y(this,be,null);Z(this,"ensureFrameModule",async()=>{var r,n,o;if(!(h(this,Ue)||h(this,Ie))){L(this,Ie,!0),this.render();try{(r=h(this,Ke))!=null||L(this,Ke,Promise.resolve().then(()=>wi));const i=await h(this,Ke),s=(n=i.WidgetFrame)!=null?n:i.default;if(!s)throw new Error("[SqueletteWidget] Widget app missing export");L(this,Ue,s),Ve(h(this,ke),(o=i.stylesText)!=null?o:_r)}catch(i){console.error("[SqueletteWidget] Failed to load widget app",i)}finally{L(this,Ie,!1),this.render()}}});Z(this,"handleFrameLoaded",()=>{L(this,ne,!0),L(this,be,h(this,ke).querySelector("iframe")),this.postIdentityToFrame(),this.render(),this.dispatchEvent(new CustomEvent("squelette:frame-loaded"))});L(this,ke,this.attachShadow({mode:"open"})),L(this,Le,document.createElement("div")),Gn(h(this,ke)),h(this,ke).appendChild(h(this,Le)),this.render()}static get observedAttributes(){return["project","board","theme","locale","token","signature","label","view","open","api-base"]}connectedCallback(){var n,o,i;h(this,A).project=this.getAttribute("project"),h(this,A).board=this.getAttribute("board"),h(this,A).theme=Pr(this.getAttribute("theme")),h(this,A).locale=Lr(this.getAttribute("locale")),h(this,A).token=(n=this.getAttribute("token"))!=null?n:void 0,h(this,A).signature=(o=this.getAttribute("signature"))!=null?o:void 0,h(this,A).label=(i=this.getAttribute("label"))!=null?i:at,h(this,A).view=lt(this.getAttribute("view"));const r=this.getAttribute("api-base");h(this,A).apiBase=r&&r.length>0?r:h(this,A).apiBase,this.applyTheme(h(this,A).theme),It(this,h(this,A).view),this.hasAttribute("open")&&this.setOpen(!0,"attribute"),L(this,se,s=>{if(!h(this,A).project||!s.data||typeof s.data!="object")return;try{const c=new URL(h(this,A).apiBase).origin;if(s.origin!==c)return}catch{return}const a=s.data;if(a.type!=="squelette:submit")return;const l=a.payload;l&&h(this,je).emit("submit",{source:"app",payload:l})}),window.addEventListener("message",h(this,se)),L(this,ie,s=>{var l;L(this,Qe,(l=s.detail)!=null?l:null),this.postIdentityToFrame()}),window.addEventListener("squelette:identity",h(this,ie)),this.render()}disconnectedCallback(){h(this,se)&&(window.removeEventListener("message",h(this,se)),L(this,se,null)),h(this,te)&&(h(this,te).call(this),L(this,te,null)),h(this,ie)&&(window.removeEventListener("squelette:identity",h(this,ie)),L(this,ie,null)),h(this,K)&&(h(this,K).call(this),L(this,K,null))}attributeChangedCallback(r,n,o){if(r==="open"){if(h(this,xe)===(o!==null))return;this.setOpen(o!==null,"attribute");return}switch(r){case"project":h(this,A).project=o,L(this,ne,!1);break;case"board":h(this,A).board=o,L(this,ne,!1);break;case"locale":h(this,A).locale=Lr(o),L(this,ne,!1);break;case"theme":h(this,A).theme=Pr(o),this.applyTheme(h(this,A).theme);break;case"token":h(this,A).token=o!=null?o:void 0,L(this,ne,!1);break;case"signature":h(this,A).signature=o!=null?o:void 0,L(this,ne,!1);break;case"label":h(this,A).label=o!=null?o:at;break;case"view":h(this,A).view=lt(o),L(this,ne,!1),It(this,h(this,A).view);break;case"api-base":h(this,A).apiBase=o&&o.length>0?o:Ot,L(this,ne,!1);break}r!=="open"&&this.render()}async open(){await this.setOpen(!0,"api")}async close(){await this.setOpen(!1,"api")}async toggle(){await this.setOpen(!h(this,xe),"api")}on(r,n){return r==="submit"&&!h(this,A).project&&console.warn("[SqueletteWidget] Cannot listen for submit before project is set."),h(this,je).on(r,n)}async destroy(){_e(null,h(this,Le)),h(this,se)&&(window.removeEventListener("message",h(this,se)),L(this,se,null)),h(this,te)&&(h(this,te).call(this),L(this,te,null)),h(this,ie)&&(window.removeEventListener("squelette:identity",h(this,ie)),L(this,ie,null)),this.parentNode&&this.parentNode.removeChild(this),h(this,K)&&(h(this,K).call(this),L(this,K,null))}render(){const r=Mr(h(this,A));_e(y(Un,{open:h(this,xe),label:h(this,A).label,iframeSrc:r,FrameComponent:h(this,Ue),ensureFrame:this.ensureFrameModule,onOpen:()=>void this.setOpen(!0,"api"),onClose:()=>void this.setOpen(!1,"api"),onFrameLoaded:this.handleFrameLoaded}),h(this,Le))}async setOpen(r,n){if(r&&!h(this,A).project){console.warn("[SqueletteWidget] Missing `project` attribute or option.");return}if(h(this,xe)!==r){if(L(this,xe,r),Vn(this,"open",r),r)h(this,K)||L(this,K,Xn()),It(this,h(this,A).view);else{h(this,K)&&(h(this,K).call(this),L(this,K,null)),L(this,ne,!1);const o=Mr(h(this,A));o&&h(this,be)&&(h(this,be).src=o)}this.render(),h(this,je).emit(r?"open":"close",{source:n})}}applyTheme(r){h(this,te)&&(h(this,te).call(this),L(this,te,null)),L(this,te,Yn(this,r))}postIdentityToFrame(){if(!(!h(this,be)||!h(this,be).contentWindow))try{const r=new URL(h(this,A).apiBase).origin;h(this,be).contentWindow.postMessage({type:"squelette-identify",payload:h(this,Qe)},r)}catch(r){console.warn("[SqueletteWidget] Unable to forward identity payload",r)}}}A=new WeakMap,xe=new WeakMap,Ie=new WeakMap,ne=new WeakMap,ke=new WeakMap,Le=new WeakMap,Ue=new WeakMap,Ke=new WeakMap,te=new WeakMap,ie=new WeakMap,se=new WeakMap,K=new WeakMap,Qe=new WeakMap,je=new WeakMap,be=new WeakMap;function Ut(){customElements.get(Rt)||customElements.define(Rt,zr)}let ct=null;function Tr(e){window.dispatchEvent(new CustomEvent("squelette:identity",{detail:e}))}function Rr(e){if(!e||!e.userId||!e.email||!e.signature){console.error("[SqueletteWidget] Invalid identification payload.",e);return}ct=e,Tr(ct)}function Nr(){ct=null,Tr(null)}function Or(){return ct}function jt(e,t,r){const n=Math.max(t,r);return Math.min(Math.max(e,t),n)}function Zn(e,t){var U,V;const r=[],n=(U=t.position)!=null?U:"top",o=(V=t.overlayBlur)!=null?V:!0,i=12,s=n.startsWith("fixed-"),a=/^fixed-(top|center|bottom)-(left|center|right)$/;let l=null,c=!1,u=!1,d=null;const g=()=>{e.removeAttribute("data-anchor"),e.removeAttribute("data-anchor-origin"),e.removeAttribute("data-fixed-vertical"),e.removeAttribute("data-fixed-horizontal"),e.style.removeProperty("--sq-offset-top"),e.style.removeProperty("--sq-offset-left"),e.style.removeProperty("--sq-offset-bottom"),e.style.removeProperty("--sq-offset-right")},f=()=>{var Se;if(!c||!l)return;const p=l.getBoundingClientRect(),P=window.innerWidth,O=window.innerHeight,T=lt(e.getAttribute("view")),F=(Se=Wt[T])!=null?Se:Bt,ae=Math.min(F.width,P-i*2),le=Math.min(F.height,O-i*2),ce=Math.max(i,P-ae-i),Q=Math.max(i,O-le-i),de=p.top-i,w=O-p.bottom-i;let oe=p.bottom+i,re=p.left+p.width/2-ae/2,ue="top";if(n==="left"||n==="right"){let M=n==="right";const H=p.right+i,he=p.left-ae-i,qe=H+ae<=P-i,W=he>=i;M&&!qe&&W?M=!1:!M&&!W&&qe&&(M=!0),M?(re=H,ue="left"):(re=he,ue="right");const vt=p.top+p.height/2-le/2;oe=jt(vt,i,Q)}else{let M=n==="bottom";n!=="top"&&n!=="bottom"&&(M=w>=de);const H=p.bottom+i,he=p.top-le-i,qe=H+le<=O-i,W=he>=i;M&&!qe&&W?M=!1:!M&&!W&&qe&&(M=!0),M?(oe=H,ue="top"):(oe=he,ue="bottom"),re=p.left+p.width/2-ae/2}oe=jt(oe,i,Q),re=jt(re,i,ce),e.dataset.anchor="button",e.dataset.anchorOrigin=ue,e.style.setProperty("--sq-offset-top",`${Math.round(oe)}px`),e.style.setProperty("--sq-offset-left",`${Math.round(re)}px`),e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto")},v=()=>{c&&requestAnimationFrame(f)},q=()=>{u||(window.addEventListener("resize",v),window.addEventListener("scroll",v,!0),u=!0)},k=()=>{u&&(window.removeEventListener("resize",v),window.removeEventListener("scroll",v,!0),u=!1)},x=()=>{!l||s||(c=!0,e.dataset.anchor="button",e.style.setProperty("--sq-offset-bottom","auto"),e.style.setProperty("--sq-offset-right","auto"),q(),f(),requestAnimationFrame(f))},C=()=>{c=!1,k()};r.push(()=>{C(),g()}),o||(e.dataset.overlayBlur="off",r.push(()=>{delete e.dataset.overlayBlur}));const $=()=>{var M;if(!s)return;const p=n.match(a);if(!p){console.warn(`[SqueletteWidget] Unsupported position value: ${n}`);return}const[,P,O]=p,T=24,F=lt(e.getAttribute("view")),ae=(M=Wt[F])!=null?M:Bt,le=window.innerWidth,ce=window.innerHeight,Q=Math.min(ae.width,le-T*2),de=Math.min(ae.height,ce-T*2);let w="auto",oe="auto",re="auto",ue="auto";switch(P){case"top":w=`${T}px`;break;case"bottom":oe=`${T}px`;break;case"center":w=`${Math.max(T,Math.round((ce-de)/2))}px`;break}switch(O){case"left":re=`${T}px`;break;case"right":ue=`${T}px`;break;case"center":re=`${Math.max(T,Math.round((le-Q)/2))}px`;break}e.dataset.anchor="fixed";const Se=P==="center"?O==="center"?"bottom":O:P;e.dataset.anchorOrigin=Se,e.dataset.fixedVertical=P,e.dataset.fixedHorizontal=O,e.style.setProperty("--sq-offset-top",w),e.style.setProperty("--sq-offset-bottom",oe),e.style.setProperty("--sq-offset-left",re),e.style.setProperty("--sq-offset-right",ue)};if(s&&$(),t.buttonSelector)if(l=document.querySelector(t.buttonSelector),l){const p=l;e.dataset.launcherHidden="true",r.push(()=>{delete e.dataset.launcherHidden});const P=T=>{T.preventDefault(),T.stopPropagation(),e.toggle()};p.addEventListener("click",P,!1),r.push(()=>p.removeEventListener("click",P,!1));const O=()=>{s?$():requestAnimationFrame(f)};e.addEventListener("squelette:frame-loaded",O),r.push(()=>e.removeEventListener("squelette:frame-loaded",O)),d=T=>{if(!e.hasAttribute("open"))return;const F=T.target;!e.contains(F)&&!p.contains(F)&&e.close()},document.addEventListener("click",d,!0),r.push(()=>{d&&(document.removeEventListener("click",d,!0),d=null)})}else console.warn(`[SqueletteWidget] Button selector not found: ${t.buttonSelector}`);const R=e.on("open",()=>{s?$():l&&x()}),G=e.on("close",()=>{C()});if(r.push(R,G),t.onOpenChange){const p=e.on("open",()=>{var O;return(O=t.onOpenChange)==null?void 0:O.call(t,!0)}),P=e.on("close",()=>{var O;return(O=t.onOpenChange)==null?void 0:O.call(t,!1)});r.push(p,P)}if(t.onLoad){const p=()=>{var P;(P=t.onLoad)==null||P.call(t),e.removeEventListener("squelette:frame-loaded",p)};e.addEventListener("squelette:frame-loaded",p),r.push(()=>e.removeEventListener("squelette:frame-loaded",p))}return r}const Wr='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.mx-4{margin-left:1rem;margin-right:1rem}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.size-4{width:1rem;height:1rem}.h-6{height:1.5rem}.h-\\[64px\\]{height:64px}.h-full{height:100%}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[400px\\]{max-width:400px}.max-w-lg{max-width:32rem}.shrink-0{flex-shrink:0}.origin-center{transform-origin:center}.translate-y-0\\.5{--tw-translate-y: .125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.whitespace-nowrap{white-space:nowrap}.rounded-\\[32px\\]{border-radius:32px}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0px}.border-\\[3px\\]{border-width:3px}.border-none{border-style:none}.border-\\[\\#222222\\]{--tw-border-opacity: 1;border-color:rgb(34 34 34 / var(--tw-border-opacity, 1))}.border-\\[\\#f0f0f0\\]{--tw-border-opacity: 1;border-color:rgb(240 240 240 / var(--tw-border-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-transparent{background-color:transparent}.bg-white\\/30{background-color:#ffffff4d}.p-0{padding:0}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.align-baseline{vertical-align:baseline}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-transform{will-change:transform}:host{display:block;width:100%;contain:content;--squelette-banner-bg: #ffffff;--squelette-banner-border: #e5e7eb;--squelette-banner-text: #111827;--squelette-banner-badge-bg: #7f3cec;--squelette-banner-badge-text: #ffffff;--squelette-banner-button-hover: .7}';var Jn=Symbol.for("preact-signals");function dt(){if(ve>1)ve--;else{for(var e,t=!1;Ye!==void 0;){var r=Ye;for(Ye=void 0,Ft++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Ur(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(Ft=0,ve--,t)throw e}}function Kn(e){if(ve>0)return e();ve++;try{return e()}finally{dt()}}var z=void 0;function Br(e){var t=z;z=void 0;try{return e()}finally{z=t}}var Ye=void 0,ve=0,Ft=0,ut=0;function Ir(e){if(z!==void 0){var t=e.n;if(t===void 0||t.t!==z)return t={i:0,S:e,p:z.s,n:void 0,t:z,e:void 0,x:void 0,r:t},z.s!==void 0&&(z.s.n=t),z.s=t,e.n=t,32&z.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=z.s,t.n=void 0,z.s.n=t,z.s=t),t}}function D(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}D.prototype.brand=Jn,D.prototype.h=function(){return!0},D.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:Br(function(){var n;(n=t.W)==null||n.call(t)}))},D.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&Br(function(){var o;(o=t.Z)==null||o.call(t)}))}},D.prototype.subscribe=function(e){var t=this;return Xe(function(){var r=t.value,n=z;z=void 0;try{e(r)}finally{z=n}},{name:"sub"})},D.prototype.valueOf=function(){return this.value},D.prototype.toString=function(){return this.value+""},D.prototype.toJSON=function(){return this.value},D.prototype.peek=function(){var e=z;z=void 0;try{return this.value}finally{z=e}},Object.defineProperty(D.prototype,"value",{get:function(){var e=Ir(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ft>100)throw new Error("Cycle detected");this.v=e,this.i++,ut++,ve++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{dt()}}}});function Ce(e,t){return new D(e,t)}function Ur(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function jr(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Fr(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Ae(e,t){D.call(this,void 0),this.x=e,this.s=void 0,this.g=ut-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Ae.prototype=new D,Ae.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ut))return!0;if(this.g=ut,this.f|=1,this.i>0&&!Ur(this))return this.f&=-2,!0;var e=z;try{jr(this),z=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return z=e,Fr(this),this.f&=-2,!0},Ae.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}D.prototype.S.call(this,e)},Ae.prototype.U=function(e){if(this.t!==void 0&&(D.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},Ae.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(Ae.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Ir(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Hr(e,t){return new Ae(e,t)}function Dr(e){var t=e.u;if(e.u=void 0,typeof t=="function"){ve++;var r=z;z=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Ht(e),n}finally{z=r,dt()}}}function Ht(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Dr(e)}function Qn(e){if(z!==this)throw new Error("Out-of-order effect");Fr(this),z=e,this.f&=-2,8&this.f&&Ht(this),dt()}function Te(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}Te.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},Te.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Dr(this),jr(this),ve++;var e=z;return z=this,Qn.bind(this,e)},Te.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ye,Ye=this)},Te.prototype.d=function(){this.f|=8,1&this.f||Ht(this)},Te.prototype.dispose=function(){this.d()};function Xe(e,t){var r=new Te(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var Gr,Dt,Vr=[];Xe(function(){Gr=this.N})();function Re(e,t){_[e]=t.bind(null,_[e]||function(){})}function ft(e){Dt&&Dt(),Dt=e&&e.S()}function Yr(e){var t=this,r=e.data,n=to(r);n.value=r;var o=Mt(function(){for(var a=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Hr(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),u=Hr(function(){return!Array.isArray(c.value)&&!nr(c.value)}),d=Xe(function(){if(this.N=Xr,u.value){var f=c.value;a.__v&&a.__v.__e&&a.__v.__e.nodeType===3&&(a.__v.__e.data=f)}}),g=t.__$u.d;return t.__$u.d=function(){d(),g.call(this)},[u,c]},[]),i=o[0],s=o[1];return i.value?s.peek():s.value}Yr.displayName="ReactiveTextNode",Object.defineProperties(D.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Yr},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Re("__b",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof D&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)}),Re("__r",function(e,t){if(typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==ge){ft();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(o){var i;return Xe(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i}())),ft(r)}e(t)}),Re("__e",function(e,t,r,n){typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),ft(),e(t,r,n)}),Re("diffed",function(e,t){typeof t.type=="function"&&typeof window!="undefined"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),ft();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var s in i){var a=i[s];a!==void 0&&!(s in n)&&(a.d(),i[s]=void 0)}else i={},r.U=i;for(var l in n){var c=i[l],u=n[l];c===void 0?(c=eo(r,l,u,o),i[l]=c):c.o(u,o)}}}e(t)});function eo(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=Ce(r);return{o:function(s,a){i.value=s,n=a},d:Xe(function(){this.N=Xr;var s=i.value.value;n[t]!==s&&(n[t]=s,o?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}Re("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)}),Re("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)}),fe.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var s in e)if(s!=="__source"&&e[s]!==this.props[s])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function to(e,t){return ze(function(){return Ce(e,t)})[0]}var ro=function(e){queueMicrotask(function(){queueMicrotask(e)})};function no(){Kn(function(){for(var e;e=Vr.shift();)Gr.call(e)})}function Xr(){Vr.push(this)===1&&(_.requestAnimationFrame||ro)(no)}function Zr(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Zr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function oo(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zr(e))&&(n&&(n+=" "),n+=t);return n}const Gt="-",io=e=>{const t=ao(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const a=s.split(Gt);return a[0]===""&&a.length!==1&&a.shift(),Jr(a,t)||so(s)},getConflictingClassGroupIds:(s,a)=>{const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}}},Jr=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Jr(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Gt);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},Kr=/^\[(.+)\]$/,so=e=>{if(Kr.test(e)){const t=Kr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ao=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Vt(r[o],n,o,t);return n},Vt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Qr(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(lo(o)){Vt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Vt(s,Qr(t,i),r,n)})})},Qr=(e,t)=>{let r=e;return t.split(Gt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},lo=e=>e.isThemeGetter,co=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},Yt="!",Xt=":",uo=Xt.length,fo=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let s=0,a=0,l=0,c;for(let v=0;v<o.length;v++){let q=o[v];if(s===0&&a===0){if(q===Xt){i.push(o.slice(l,v)),l=v+uo;continue}if(q==="/"){c=v;continue}}q==="["?s++:q==="]"?s--:q==="("?a++:q===")"&&a--}const u=i.length===0?o:o.substring(l),d=ho(u),g=d!==u,f=c&&c>l?c-l:void 0;return{modifiers:i,hasImportantModifier:g,baseClassName:d,maybePostfixModifierPosition:f}};if(t){const o=t+Xt,i=n;n=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},ho=e=>e.endsWith(Yt)?e.substring(0,e.length-1):e.startsWith(Yt)?e.substring(1):e,po=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let i=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},go=e=>({cache:co(e.cacheSize),parseClassName:fo(e),sortModifiers:po(e),...io(e)}),mo=/\s+/,bo=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(mo);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:g,hasImportantModifier:f,baseClassName:v,maybePostfixModifierPosition:q}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let k=!!q,x=n(k?v.substring(0,q):v);if(!x){if(!k){l=u+(l.length>0?" "+l:l);continue}if(x=n(v),!x){l=u+(l.length>0?" "+l:l);continue}k=!1}const C=i(g).join(":"),$=f?C+Yt:C,R=$+x;if(s.includes(R))continue;s.push(R);const G=o(x,k);for(let U=0;U<G.length;++U){const V=G[U];s.push($+V)}l=u+(l.length>0?" "+l:l)}return l};function _o(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=en(t))&&(n&&(n+=" "),n+=r);return n}const en=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=en(e[n]))&&(r&&(r+=" "),r+=t);return r};function vo(e,...t){let r,n,o,i=s;function s(l){const c=t.reduce((u,d)=>d(u),e());return r=go(c),n=r.cache.get,o=r.cache.set,i=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=bo(l,r);return o(l,u),u}return function(){return i(_o.apply(null,arguments))}}const j=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},tn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,rn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wo=/^\d+\/\d+$/,yo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ko=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,So=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ne=e=>wo.test(e),S=e=>!!e&&!Number.isNaN(Number(e)),we=e=>!!e&&Number.isInteger(Number(e)),Zt=e=>e.endsWith("%")&&S(e.slice(0,-1)),me=e=>yo.test(e),Eo=()=>!0,Co=e=>xo.test(e)&&!ko.test(e),nn=()=>!1,Ao=e=>So.test(e),$o=e=>qo.test(e),Lo=e=>!m(e)&&!b(e),Po=e=>Oe(e,cn,nn),m=e=>tn.test(e),$e=e=>Oe(e,dn,Co),Jt=e=>Oe(e,No,S),on=e=>Oe(e,an,nn),Mo=e=>Oe(e,ln,$o),ht=e=>Oe(e,un,Ao),b=e=>rn.test(e),Ze=e=>We(e,dn),zo=e=>We(e,Oo),sn=e=>We(e,an),To=e=>We(e,cn),Ro=e=>We(e,ln),pt=e=>We(e,un,!0),Oe=(e,t,r)=>{const n=tn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},We=(e,t,r=!1)=>{const n=rn.exec(e);return n?n[1]?t(n[1]):r:!1},an=e=>e==="position"||e==="percentage",ln=e=>e==="image"||e==="url",cn=e=>e==="length"||e==="size"||e==="bg-size",dn=e=>e==="length",No=e=>e==="number",Oo=e=>e==="family-name",un=e=>e==="shadow",Wo=vo(()=>{const e=j("color"),t=j("font"),r=j("text"),n=j("font-weight"),o=j("tracking"),i=j("leading"),s=j("breakpoint"),a=j("container"),l=j("spacing"),c=j("radius"),u=j("shadow"),d=j("inset-shadow"),g=j("text-shadow"),f=j("drop-shadow"),v=j("blur"),q=j("perspective"),k=j("aspect"),x=j("ease"),C=j("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[...R(),b,m],U=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],p=()=>[b,m,l],P=()=>[Ne,"full","auto",...p()],O=()=>[we,"none","subgrid",b,m],T=()=>["auto",{span:["full",we,b,m]},we,b,m],F=()=>[we,"auto",b,m],ae=()=>["auto","min","max","fr",b,m],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ce=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...p()],de=()=>[Ne,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...p()],w=()=>[e,b,m],oe=()=>[...R(),sn,on,{position:[b,m]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",To,Po,{size:[b,m]}],Se=()=>[Zt,Ze,$e],M=()=>["","none","full",c,b,m],H=()=>["",S,Ze,$e],he=()=>["solid","dashed","dotted","double"],qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[S,Zt,sn,on],vt=()=>["","none",v,b,m],wt=()=>["none",S,b,m],yt=()=>["none",S,b,m],rr=()=>[S,b,m],xt=()=>[Ne,"full",...p()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[me],breakpoint:[me],color:[Eo],container:[me],"drop-shadow":[me],ease:["in","out","in-out"],font:[Lo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[me],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[me],shadow:[me],spacing:["px",S],text:[me],"text-shadow":[me],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ne,m,b,k]}],container:["container"],columns:[{columns:[S,m,b,a]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[we,"auto",b,m]}],basis:[{basis:[Ne,"full","auto",a,...p()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[S,Ne,"auto","initial","none",m]}],grow:[{grow:["",S,b,m]}],shrink:[{shrink:["",S,b,m]}],order:[{order:[we,"first","last","none",b,m]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:p()}],"gap-x":[{"gap-x":p()}],"gap-y":[{"gap-y":p()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],p:[{p:p()}],px:[{px:p()}],py:[{py:p()}],ps:[{ps:p()}],pe:[{pe:p()}],pt:[{pt:p()}],pr:[{pr:p()}],pb:[{pb:p()}],pl:[{pl:p()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":p()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":p()}],"space-y-reverse":["space-y-reverse"],size:[{size:de()}],w:[{w:[a,"screen",...de()]}],"min-w":[{"min-w":[a,"screen","none",...de()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...de()]}],h:[{h:["screen","lh",...de()]}],"min-h":[{"min-h":["screen","lh","none",...de()]}],"max-h":[{"max-h":["screen","lh",...de()]}],"font-size":[{text:["base",r,Ze,$e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,b,Jt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zt,m]}],"font-family":[{font:[zo,m,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,b,m]}],"line-clamp":[{"line-clamp":[S,"none",b,Jt]}],leading:[{leading:[i,...p()]}],"list-image":[{"list-image":["none",b,m]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",b,m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[S,"from-font","auto",b,$e]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[S,"auto",b,m]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b,m]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b,m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},we,b,m],radial:["",b,m],conic:[we,b,m]},Ro,Mo]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:Se()}],"gradient-via-pos":[{via:Se()}],"gradient-to-pos":[{to:Se()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[S,b,m]}],"outline-w":[{outline:["",S,Ze,$e]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",u,pt,ht]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",d,pt,ht]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[S,$e]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",g,pt,ht]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[S,b,m]}],"mix-blend":[{"mix-blend":[...qe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":qe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[S]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[b,m]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[S]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",b,m]}],filter:[{filter:["","none",b,m]}],blur:[{blur:vt()}],brightness:[{brightness:[S,b,m]}],contrast:[{contrast:[S,b,m]}],"drop-shadow":[{"drop-shadow":["","none",f,pt,ht]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",S,b,m]}],"hue-rotate":[{"hue-rotate":[S,b,m]}],invert:[{invert:["",S,b,m]}],saturate:[{saturate:[S,b,m]}],sepia:[{sepia:["",S,b,m]}],"backdrop-filter":[{"backdrop-filter":["","none",b,m]}],"backdrop-blur":[{"backdrop-blur":vt()}],"backdrop-brightness":[{"backdrop-brightness":[S,b,m]}],"backdrop-contrast":[{"backdrop-contrast":[S,b,m]}],"backdrop-grayscale":[{"backdrop-grayscale":["",S,b,m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S,b,m]}],"backdrop-invert":[{"backdrop-invert":["",S,b,m]}],"backdrop-opacity":[{"backdrop-opacity":[S,b,m]}],"backdrop-saturate":[{"backdrop-saturate":[S,b,m]}],"backdrop-sepia":[{"backdrop-sepia":["",S,b,m]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":p()}],"border-spacing-x":[{"border-spacing-x":p()}],"border-spacing-y":[{"border-spacing-y":p()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",b,m]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[S,"initial",b,m]}],ease:[{ease:["linear","initial",x,b,m]}],delay:[{delay:[S,b,m]}],animate:[{animate:["none",C,b,m]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[q,b,m]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:wt()}],"rotate-x":[{"rotate-x":wt()}],"rotate-y":[{"rotate-y":wt()}],"rotate-z":[{"rotate-z":wt()}],scale:[{scale:yt()}],"scale-x":[{"scale-x":yt()}],"scale-y":[{"scale-y":yt()}],"scale-z":[{"scale-z":yt()}],"scale-3d":["scale-3d"],skew:[{skew:rr()}],"skew-x":[{"skew-x":rr()}],"skew-y":[{"skew-y":rr()}],transform:[{transform:[b,m,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xt()}],"translate-x":[{"translate-x":xt()}],"translate-y":[{"translate-y":xt()}],"translate-z":[{"translate-z":xt()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",b,m]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b,m]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[S,Ze,$e,Jt]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Je(...e){return Wo(oo(e))}function Bo(e,t){for(var r in t)e[r]=t[r];return e}function fn(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function hn(e,t){this.props=e,this.context=t}(hn.prototype=new fe).isPureReactComponent=!0,hn.prototype.shouldComponentUpdate=function(e,t){return fn(this.props,e)||fn(this.state,t)};var pn=_.__b;_.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),pn&&pn(e)};var Io=_.__e;_.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Io(e,t,r,n)};var gn=_.unmount;function mn(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Bo({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return mn(n,t,r)})),e}function bn(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return bn(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Kt(){this.__u=0,this.o=null,this.__b=null}function _n(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function gt(){this.i=null,this.l=null}_.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),gn&&gn(e)},(Kt.prototype=new fe).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=_n(n.__v),i=!1,s=function(){i||(i=!0,r.__R=null,o?o(a):a())};r.__R=s;var a=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=bn(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(s,s)},Kt.prototype.componentWillUnmount=function(){this.o=[]},Kt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=mn(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&Ge(ge,null,e.fallback);return o&&(o.__u&=-33),[Ge(ge,null,t.__a?null:e.children),o]};var vn=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Uo(e){return this.getChildContext=function(){return e.context},e.children}function jo(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){_e(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}_e(Ge(Uo,{context:t.context},e.__v),t.v)}function Fo(e,t){var r=Ge(jo,{__v:e,h:t});return r.containerInfo=t,r}(gt.prototype=new fe).__a=function(e){var t=this,r=_n(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),vn(t,e,n)):o()};r?r(i):i()}},gt.prototype.render=function(e){this.i=null,this.l=new Map;var t=rt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},gt.prototype.componentDidUpdate=gt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){vn(e,r,t)})};var Ho=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Do=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Go=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Vo=/[A-Z0-9]/g,Yo=typeof document!="undefined",Xo=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};fe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(fe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var wn=_.event;function Zo(){}function Jo(){return this.cancelBubble}function Ko(){return this.defaultPrevented}_.event=function(e){return wn&&(e=wn(e)),e.persist=Zo,e.isPropagationStopped=Jo,e.isDefaultPrevented=Ko,e.nativeEvent=e};var Qo={enumerable:!1,configurable:!0,get:function(){return this.class}},yn=_.vnode;_.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={},i=n.indexOf("-")===-1;for(var s in r){var a=r[s];if(!(s==="value"&&"defaultValue"in r&&a==null||Yo&&s==="children"&&n==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in r&&r.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||Xo(r.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Go.test(s)&&(s=l):l=s="oninput":i&&Do.test(s)?s=s.replace(Vo,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=rt(r.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=rt(r.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",Qo)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=Ho,yn&&yn(e)};var xn=_.__r;_.__r=function(e){xn&&xn(e),e.__c};var kn=_.diffed;_.diffed=function(e){kn&&kn(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value)};function Sn(){const e=X(null),t=X("idle"),r=X();return ee(()=>()=>{r.current&&clearTimeout(r.current)},[]),{ref:e,animate:(o,i={})=>new Promise(s=>{const a=e.current;if(!a){s();return}const{duration:l=300,easing:c="ease-out",delay:u=0,onComplete:d}=i;t.current="running",a.style.transition=`all ${l}ms ${c} ${u}ms`,Object.entries(o).forEach(([f,v])=>{a.style.setProperty(f,v)});const g=l+u;r.current=setTimeout(()=>{t.current="finished",a.style.transition="",d==null||d(),s()},g)})}}function ei(e,t){const{ref:r,animate:n}=Sn();return ee(()=>{if(!e||!r.current)return;const o=setTimeout(()=>{n({transform:"translateY(0)",opacity:"1"},{duration:1e3,easing:"cubic-bezier(0.34, 1.56, 0.64, 1)",onComplete:t})},500);return()=>clearTimeout(o)},[e]),r}function ti(e,t){const{ref:r,animate:n}=Sn();return ee(()=>{r.current&&(e?n({width:`${t+20}px`,paddingLeft:"0.5rem",paddingRight:"0.5rem"},{duration:1200,easing:"cubic-bezier(0.16, 1, 0.3, 1)"}):n({width:"0",paddingLeft:"0",paddingRight:"0"},{duration:300,easing:"cubic-bezier(0.16, 1, 0.3, 1)"}))},[e,t]),r}function ri(e){const t=X(null),r=X(null);return ee(()=>{!t.current||!r.current||e&&(t.current.style.transition="opacity 500ms ease-out",t.current.style.opacity="1",r.current.style.transition="transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease-out",r.current.style.transform="translateY(0)",r.current.style.opacity="1")},[e]),{overlayRef:t,contentRef:r,close:async()=>{!t.current||!r.current||(t.current.style.transition="opacity 200ms ease-out",t.current.style.opacity="0",r.current.style.transition="transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease-out",r.current.style.transform="translateY(-70px)",r.current.style.opacity="0",await new Promise(o=>setTimeout(o,200)))}}}const mt=Ce(!1),ni=Ce(null);function oi({workspaceSlug:e,theme:t,base:r="https://www.squelette.app",ticketId:n}){const o=X(null),i=X(null),[s,a]=ze(null),l=X(null),c=X(!1),{overlayRef:u,contentRef:d,close:g}=ri(mt.value);ee(()=>{const $=document.createElement("div");$.id="squelette-banner-modal-portal",$.style.position="fixed",$.style.inset="0",$.style.zIndex="999999",$.style.pointerEvents="none";const R=$.attachShadow({mode:"open"});return Ve(R,Wr),document.body.appendChild($),o.current=$,a(R),()=>{o.current&&(document.body.removeChild(o.current),o.current=null,a(null))}},[]);const f=()=>{var $;if(!(!(($=i.current)!=null&&$.contentWindow)||!l.current))try{const R=new URL(Ot).origin;i.current.contentWindow.postMessage({type:"squelette-identify",payload:l.current},R)}catch(R){console.warn("[BannerModal] Failed to send identity to iframe:",R)}};ee(()=>{const $=Or();$&&(l.current=$);const R=U=>{var p;const V=U;l.current=(p=V.detail)!=null?p:null,c.current?f():console.info("[BannerModal] Iframe not ready yet, identity will be sent when ready")},G=U=>{var V;((V=U.data)==null?void 0:V.type)==="squelette-iframe-ready"&&(c.current=!0,l.current?f():console.log("[BannerModal] Iframe ready but no identity yet"))};return window.addEventListener("squelette:identity",R),window.addEventListener("message",G),()=>{window.removeEventListener("squelette:identity",R),window.removeEventListener("message",G)}},[]);const v=()=>{console.log("[BannerModal] Iframe onLoad event fired")},q=async()=>{await g(),mt.value=!1},k=$=>{$.target===u.current&&q()};if(!s)return null;const x=Mt(()=>y("iframe",{ref:i,className:"w-full h-full border-none outline-none",src:`${r}/widget/${t}/${e}/changelog${n?`&ticketId=${n}`:"/last"}`,onLoad:v}),[r,e,t,n]),C=y("div",{ref:u,className:Je("fixed inset-0 backdrop-blur-sm flex items-center justify-center",t==="dark"?"bg-black/30":"bg-white/30"),style:{pointerEvents:mt.value?"auto":"none",opacity:0},onClick:k,children:y("div",{ref:d,className:Je("rounded-[32px] border-[3px] shadow-lg max-w-lg w-full mx-4 p-0 outline-none relative overflow-hidden",t==="light"?"border-[#f0f0f0]":"border-[#222222]"),style:{opacity:0,transform:"translateY(-70px)",height:650},children:x})});return Fo(C,s)}const Qt=e=>{if(e)return!1;try{return localStorage.getItem("squelette-enable-cache")!=="false"}catch{return!0}},ii=5*60*1e3,qn="squelette_banner_last_ticket",En=48,J=Ce(null),ye=Ce(!1),Be=Ce(!0);function si({workspaceSlug:e="squelette",theme:t,base:r="https://www.squelette.app",debug:n=!1,ticketId:o}){const i=X(null),s=X(null),[a,l]=ze(96),c=ei(!!J.value,()=>{ye.value=!0});ee(()=>(console.log("[Banner] Component mounted, resetting signals"),J.value=null,ye.value=!1,Be.value=!1,()=>{console.log("[Banner] Component unmounting")}),[]),ee(()=>{if(!document.getElementById("squelette-shake-animation")){const f=document.createElement("style");f.id="squelette-shake-animation",f.textContent=`
164
164
  @keyframes shake {
165
165
  0%, 100% { transform: rotate(0deg); }
166
166
  20% { transform: rotate(-15deg); }
@@ -168,9 +168,9 @@ var SqueletteWidgetBundle=function(E){"use strict";var yi=Object.defineProperty;
168
168
  60% { transform: rotate(-15deg); }
169
169
  80% { transform: rotate(15deg); }
170
170
  }
171
- `,document.head.appendChild(f)}},[]),ee(()=>{console.log("[Banner] useEffect triggered",{workspaceSlug:e,debug:n,ticketId:o}),console.log("[Banner] Current signal states:",{lastTicket:J.value,isVisible:ye.value,showBanner:We.value}),di(r,e,n,o).then(f=>{if(console.log("[Banner] Fetched ticket:",f),!f){console.log("[Banner] No ticket found, returning");return}const v=localStorage.getItem(qn);console.log("[Banner] lastSeenCreatedAt from localStorage:",v),console.log("[Banner] ticket.created_at:",f.created_at),console.log("[Banner] getEnableCache(debug):",Qt(n)),!Qt(n)||!v||new Date(f.created_at)>new Date(v)?(console.log("[Banner] Setting signals to show banner"),J.value=f,ye.value=!1,We.value=!0,console.log("[Banner] After setting signals:",{lastTicket:J.value,isVisible:ye.value,showBanner:We.value})):console.log("[Banner] Not showing banner - already seen")})},[e,n,o]),ee(()=>{if(!c.current||!i.current)return;const f=c.current,v=i.current,q=()=>{v&&(v.style.animation="shake 0.6s ease-in-out infinite")},k=()=>{v.style.animation=""};return f.addEventListener("mouseenter",q),f.addEventListener("mouseleave",k),()=>{f.removeEventListener("mouseleave",k),f.removeEventListener("mouseenter",q)}},[]),Pt(()=>{if(!s.current)return;const f=()=>{s.current&&l(Math.ceil(s.current.getBoundingClientRect().width))};if(f(),typeof ResizeObserver=="undefined")return;const v=new ResizeObserver(f);return v.observe(s.current),()=>v.disconnect()},[J.value]);const u=async()=>{!J.value||!c.current||(ye.value=!1,await new Promise(f=>setTimeout(f,400)),c.current.style.transition="transform 500ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease-out",c.current.style.transform="translateY(-100%)",c.current.style.opacity="0",await new Promise(f=>setTimeout(f,500)),localStorage.setItem(qn,J.value.created_at),We.value=!1)},d=()=>{J.value&&(ni.value=J.value,mt.value=!0,u())};if(!J.value)return null;const g=Math.max(0,a);return y(ge,{children:[We.value&&y("div",{className:"flex items-center justify-center w-full h-[64px] overflow-visible",children:y("div",{className:"group rounded-full p-1 border flex items-center cursor-pointer",style:{opacity:0,transform:"translateY(-100%)",backgroundColor:"var(--squelette-banner-bg)",borderColor:"var(--squelette-banner-border)"},ref:c,onClick:d,children:[y("div",{ref:s,className:"flex gap-1 h-6 px-2 items-center justify-center rounded-full text-sm",style:{backgroundColor:"var(--squelette-banner-badge-bg)",color:"var(--squelette-banner-badge-text)"},children:[y("span",{children:"Nouveau"}),y("div",{ref:i,className:"inline",children:y(li,{className:"size-4"})})]}),y(ai,{onClose:u,badgeWidth:g})]})}),y(oi,{base:r,workspaceSlug:e,theme:t,ticketId:o})]})}function ai({onClose:e,badgeWidth:t}){const r=X(null),[n,o]=ze(0),i=ti(ye.value,n);Pt(()=>{if(!r.current)return;const a=()=>{if(!r.current)return;const c=r.current.scrollWidth,u=typeof window!="undefined"?window.innerWidth:c,d=En,g=Math.max(0,u-t-d);o(Math.min(c,g))};a();const l=new ResizeObserver(a);return l.observe(r.current),typeof window!="undefined"&&window.addEventListener("resize",a),()=>{l.disconnect(),typeof window!="undefined"&&window.removeEventListener("resize",a)}},[J.value,t]);const s=a=>{a.stopPropagation(),e()};return J.value?y("div",{className:"overflow-hidden min-w-0 items-baseline box-border inline-flex",style:{width:0,paddingLeft:0,paddingRight:0,maxWidth:"100vw",maxInlineSize:`calc(100vw - ${t+En}px)`},ref:i,children:y("div",{className:"gap-2 inline-flex items-center",ref:r,children:[y("span",{className:"font-medium text-sm whitespace-nowrap max-w-[400px]",style:{color:"var(--squelette-banner-text)"},children:y(ui,{duration:4,gap:16,children:J.value.title})}),y("button",{onClick:s,className:"p-0 border-0 bg-transparent cursor-pointer transition-opacity",style:{color:"var(--squelette-banner-text)",opacity:1},onMouseEnter:a=>{a.currentTarget.style.opacity="var(--squelette-banner-button-hover)"},onMouseLeave:a=>{a.currentTarget.style.opacity="1"},"aria-label":"Close banner",children:y(ci,{className:"size-4"})})]})}):null}function li({className:e}){return y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:Je("lucide lucide-megaphone-icon lucide-megaphone origin-center",e),children:[y("path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"}),y("path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14"}),y("path",{d:"M8 6v8"})]})}function ci({className:e}){return y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:Je("lucide lucide-x-icon lucide-x",e),children:[y("path",{d:"M18 6 6 18"}),y("path",{d:"m6 6 12 12"})]})}async function di(e,t,r,n){var o;try{const i=Qt(r);if(i&&!n){const u=`squelette_banner_cache_${t}`,d=localStorage.getItem(u);if(d){const{ticket:g,timestamp:f}=JSON.parse(d);if(!(Date.now()-f>ii))return g}}const s=n?`${e}/api/public/w/${t}/changelog/last?ticketId=${n}`:`${e}/api/public/w/${t}/changelog/last`,l=await(await fetch(s)).json(),c=(o=l==null?void 0:l.ticket)!=null?o:null;if(i&&c&&!n){const u=`squelette_banner_cache_${t}`,d={ticket:c,timestamp:Date.now()};localStorage.setItem(u,JSON.stringify(d))}return c}catch(i){return console.error("Error fetching changelog ticket:",i),null}}function ui({children:e,duration:t=50,gap:r=8,className:n,delay:o=.8}){const i=X(null),s=X(null),[a,l]=ze(0),[c,u]=ze(0);Pt(()=>{const q=()=>{s.current&&l(Math.ceil(s.current.offsetWidth)),i.current&&u(Math.ceil(i.current.offsetWidth))};q();const k=new ResizeObserver(q),x=new ResizeObserver(q);return s.current&&k.observe(s.current),i.current&&x.observe(i.current),()=>{k.disconnect(),x.disconnect()}},[e,r]);const d=a+r,g=d>0?Math.max(2,Math.ceil((c+d)/d)+1):2,v=d>0?d/50:t;return y(ge,{children:[y("style",{children:`
171
+ `,document.head.appendChild(f)}},[]),ee(()=>{console.log("[Banner] useEffect triggered",{workspaceSlug:e,debug:n,ticketId:o}),console.log("[Banner] Current signal states:",{lastTicket:J.value,isVisible:ye.value,showBanner:Be.value}),di(r,e,n,o).then(f=>{if(console.log("[Banner] Fetched ticket:",f),!f){console.log("[Banner] No ticket found, returning");return}const v=localStorage.getItem(qn);console.log("[Banner] lastSeenCreatedAt from localStorage:",v),console.log("[Banner] ticket.created_at:",f.created_at),console.log("[Banner] getEnableCache(debug):",Qt(n)),!Qt(n)||!v||new Date(f.created_at)>new Date(v)?(console.log("[Banner] Setting signals to show banner"),J.value=f,ye.value=!1,Be.value=!0,console.log("[Banner] After setting signals:",{lastTicket:J.value,isVisible:ye.value,showBanner:Be.value})):console.log("[Banner] Not showing banner - already seen")})},[e,n,o]),ee(()=>{if(!c.current||!i.current)return;const f=c.current,v=i.current,q=()=>{v&&(v.style.animation="shake 0.6s ease-in-out infinite")},k=()=>{v.style.animation=""};return f.addEventListener("mouseenter",q),f.addEventListener("mouseleave",k),()=>{f.removeEventListener("mouseleave",k),f.removeEventListener("mouseenter",q)}},[]),Pt(()=>{if(!s.current)return;const f=()=>{s.current&&l(Math.ceil(s.current.getBoundingClientRect().width))};if(f(),typeof ResizeObserver=="undefined")return;const v=new ResizeObserver(f);return v.observe(s.current),()=>v.disconnect()},[J.value]);const u=async()=>{!J.value||!c.current||(ye.value=!1,await new Promise(f=>setTimeout(f,400)),c.current.style.transition="transform 500ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease-out",c.current.style.transform="translateY(-100%)",c.current.style.opacity="0",await new Promise(f=>setTimeout(f,500)),localStorage.setItem(qn,J.value.created_at),Be.value=!1)},d=()=>{J.value&&(ni.value=J.value,mt.value=!0,u())};if(!J.value)return null;const g=Math.max(0,a);return y(ge,{children:[Be.value&&y("div",{className:"flex items-center justify-center w-full h-[64px] overflow-visible",children:y("div",{className:"group rounded-full p-1 border flex items-center cursor-pointer",style:{opacity:0,transform:"translateY(-100%)",backgroundColor:"var(--squelette-banner-bg)",borderColor:"var(--squelette-banner-border)"},ref:c,onClick:d,children:[y("div",{ref:s,className:"flex gap-1 h-6 px-2 items-center justify-center rounded-full text-sm",style:{backgroundColor:"var(--squelette-banner-badge-bg)",color:"var(--squelette-banner-badge-text)"},children:[y("span",{children:"Nouveau"}),y("div",{ref:i,className:"inline",children:y(li,{className:"size-4"})})]}),y(ai,{onClose:u,badgeWidth:g})]})}),y(oi,{base:r,workspaceSlug:e,theme:t,ticketId:o})]})}function ai({onClose:e,badgeWidth:t}){const r=X(null),[n,o]=ze(0),i=ti(ye.value,n);Pt(()=>{if(!r.current)return;const a=()=>{if(!r.current)return;const c=r.current.scrollWidth,u=typeof window!="undefined"?window.innerWidth:c,d=En,g=Math.max(0,u-t-d);o(Math.min(c,g))};a();const l=new ResizeObserver(a);return l.observe(r.current),typeof window!="undefined"&&window.addEventListener("resize",a),()=>{l.disconnect(),typeof window!="undefined"&&window.removeEventListener("resize",a)}},[J.value,t]);const s=a=>{a.stopPropagation(),e()};return J.value?y("div",{className:"overflow-hidden min-w-0 items-baseline box-border inline-flex",style:{width:0,paddingLeft:0,paddingRight:0,maxWidth:"100vw",maxInlineSize:`calc(100vw - ${t+En}px)`},ref:i,children:y("div",{className:"gap-2 inline-flex items-center",ref:r,children:[y("span",{className:"font-medium text-sm whitespace-nowrap max-w-[400px]",style:{color:"var(--squelette-banner-text)"},children:y(ui,{duration:4,gap:16,children:J.value.title})}),y("button",{onClick:s,className:"p-0 border-0 bg-transparent cursor-pointer transition-opacity",style:{color:"var(--squelette-banner-text)",opacity:1},onMouseEnter:a=>{a.currentTarget.style.opacity="var(--squelette-banner-button-hover)"},onMouseLeave:a=>{a.currentTarget.style.opacity="1"},"aria-label":"Close banner",children:y(ci,{className:"size-4"})})]})}):null}function li({className:e}){return y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:Je("lucide lucide-megaphone-icon lucide-megaphone origin-center",e),children:[y("path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"}),y("path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14"}),y("path",{d:"M8 6v8"})]})}function ci({className:e}){return y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",className:Je("lucide lucide-x-icon lucide-x",e),children:[y("path",{d:"M18 6 6 18"}),y("path",{d:"m6 6 12 12"})]})}async function di(e,t,r,n){var o;try{const i=Qt(r);if(i&&!n){const u=`squelette_banner_cache_${t}`,d=localStorage.getItem(u);if(d){const{ticket:g,timestamp:f}=JSON.parse(d);if(!(Date.now()-f>ii))return g}}const s=n?`${e}/api/public/w/${t}/changelog/last?ticketId=${n}`:`${e}/api/public/w/${t}/changelog/last`,l=await(await fetch(s)).json(),c=(o=l==null?void 0:l.ticket)!=null?o:null;if(i&&c&&!n){const u=`squelette_banner_cache_${t}`,d={ticket:c,timestamp:Date.now()};localStorage.setItem(u,JSON.stringify(d))}return c}catch(i){return console.error("Error fetching changelog ticket:",i),null}}function ui({children:e,duration:t=50,gap:r=8,className:n,delay:o=.8}){const i=X(null),s=X(null),[a,l]=ze(0),[c,u]=ze(0);Pt(()=>{const q=()=>{s.current&&l(Math.ceil(s.current.offsetWidth)),i.current&&u(Math.ceil(i.current.offsetWidth))};q();const k=new ResizeObserver(q),x=new ResizeObserver(q);return s.current&&k.observe(s.current),i.current&&x.observe(i.current),()=>{k.disconnect(),x.disconnect()}},[e,r]);const d=a+r,g=d>0?Math.max(2,Math.ceil((c+d)/d)+1):2,v=d>0?d/50:t;return y(ge,{children:[y("style",{children:`
172
172
  @keyframes marquee-banner {
173
173
  from { transform: translate3d(0,0,0); }
174
174
  to { transform: translate3d(calc(-${d}px),0,0); }
175
175
  }
176
- `}),y("span",{ref:i,className:Je("relative inline-block overflow-hidden align-baseline w-full translate-y-0.5",n),style:{maskImage:"linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%)"},"aria-label":e,children:y("span",{className:"inline-flex items-baseline will-change-transform",style:{gap:`${r}px`,animation:ye.value&&d>0?`marquee-banner ${v}s linear ${o}s infinite`:"none"},children:Array.from({length:g}).map((q,k)=>y("span",{ref:k===0?s:null,className:"whitespace-nowrap shrink-0",children:e},k))})})]})}class bt extends HTMLElement{constructor(){super();Z(this,"shadow");this.shadow=this.attachShadow({mode:"open"}),Ve(this.shadow,Br),this.style.position="fixed",this.style.top="0",this.style.left="0",this.style.right="0",this.style.zIndex="9999"}connectedCallback(){var l;const r=(l=this.getAttribute("workspace-slug"))!=null?l:"squelette",n=this.getAttribute("theme")||"light",o=this.getAttribute("base")||"https://www.squelette.app",i=this.getAttribute("debug")==="true",s=this.getAttribute("ticket-id"),a=s?Number(s):void 0;_e(y(si,{workspaceSlug:r,theme:n,base:o,debug:i,ticketId:a}),this.shadow)}disconnectedCallback(){_e(null,this.shadow)}}typeof window!="undefined"&&typeof customElements!="undefined"&&(customElements.get("squelette-banner")||(console.debug("[SqueletteBanner] auto-registering custom element"),customElements.define("squelette-banner",bt)));const Cn={init({slug:e,theme:t,contentTheme:r,base:n,debug:o,ticketId:i}){if(console.log("[SqueletteBanner] init called",{slug:e,contentTheme:r,base:n,debug:o,ticketId:i}),typeof document=="undefined")return null;customElements.get("squelette-banner")||customElements.define("squelette-banner",bt);const s=document.querySelector("squelette-banner");if(s)return console.log("[SqueletteBanner] Found existing banner, updating attributes"),t&&this.setTheme(t),r&&this.setContentTheme(r),o!==void 0&&s.setAttribute("debug",String(o)),i!==void 0&&s.setAttribute("ticket-id",String(i)),s;console.log("[SqueletteBanner] Creating new banner element");const a=new bt;return a.setAttribute("workspace-slug",e),a.setAttribute("theme",r!=null?r:"light"),n&&a.setAttribute("base",n),o!==void 0&&a.setAttribute("debug",String(o)),i!==void 0&&a.setAttribute("ticket-id",String(i)),document.body.appendChild(a),console.log("[SqueletteBanner] Banner element appended to body"),t&&this.setTheme(t),a},setTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-banner");if(!t){console.warn("[SqueletteBanner] No banner found to apply theme");return}e.bg&&t.style.setProperty("--squelette-banner-bg",e.bg),e.border&&t.style.setProperty("--squelette-banner-border",e.border),e.text&&t.style.setProperty("--squelette-banner-text",e.text),e.badgeBg&&t.style.setProperty("--squelette-banner-badge-bg",e.badgeBg),e.badgeText&&t.style.setProperty("--squelette-banner-badge-text",e.badgeText),e.buttonHover!==void 0&&t.style.setProperty("--squelette-banner-button-hover",String(e.buttonHover))},setContentTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-banner");if(!t){console.warn("[SqueletteBanner] No banner found to update content theme");return}t.setAttribute("theme",e)},destroy(){if(console.log("[SqueletteBanner] destroy called"),typeof document=="undefined")return;const e=document.querySelector("squelette-banner");if(!e){console.warn("[SqueletteBanner] No banner found to destroy");return}console.log("[SqueletteBanner] Removing banner element"),e.remove(),console.log("[SqueletteBanner] Banner element removed")}};function fi(e){switch(e){case"roadmap":return"Roadmap";case"changelog":return"Changelog";case"feedback":default:return at}}function An(e){var o;Ft();const t=document.createElement(Rt);t.setAttribute("project",e.project),e.board&&t.setAttribute("board",e.board),e.view&&t.setAttribute("view",e.view),e.theme&&t.setAttribute("theme",e.theme),e.locale&&t.setAttribute("locale",e.locale),e.token&&t.setAttribute("token",e.token),e.signature&&t.setAttribute("signature",e.signature),e.label&&t.setAttribute("label",e.label),e.apiBase&&t.setAttribute("api-base",e.apiBase),e.attributes&&Object.entries(e.attributes).forEach(([i,s])=>t.setAttribute(i,s)),((o=e.appendTo)!=null?o:document.body).appendChild(t);const n=Or();return n&&window.dispatchEvent(new CustomEvent("squelette:identity",{detail:n})),t}function er(e,t,r,n){var i;const o=An({project:t,board:r!=null?r:void 0,view:e,theme:n==null?void 0:n.theme,locale:n==null?void 0:n.locale,token:n==null?void 0:n.token,signature:n==null?void 0:n.signature,appendTo:n==null?void 0:n.appendTo,attributes:n==null?void 0:n.attributes,label:(i=n==null?void 0:n.label)!=null?i:fi(e),apiBase:n==null?void 0:n.apiBase});if(n){const s=Zn(o,n);if(s.length>0){const a=o.destroy.bind(o);o.destroy=async()=>{for(const l of s.splice(0,s.length))l();await a()}}}return o}function tr(){const e=window;e.SqueletteWidget||(e.SqueletteWidget={create:An,createFeedbackWidget:(t,r,n)=>er("feedback",t,r,n),createRoadmapWidget:(t,r,n)=>er("roadmap",t,r,n),createChangelogWidget:(t,r)=>er("changelog",t,null,r),identify:Rr,clearIdentity:Nr,banner:Cn,version:"0.4.0",cdn:Un})}Ft(),tr(),tr();function hi(...e){return window.SqueletteWidget.createFeedbackWidget(...e)}function pi(...e){return window.SqueletteWidget.createRoadmapWidget(...e)}function gi(...e){return window.SqueletteWidget.createChangelogWidget(...e)}function mi(...e){return window.SqueletteWidget.create(...e)}const bi=".squelette-changelog{display:flex;flex-direction:column;width:375px;height:var(--squelette-changelog-height, 400px);background:var(--squelette-changelog-bg, #ffffff);border:1px solid var(--squelette-changelog-border, #e5e7eb);border-radius:8px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;overflow:hidden;opacity:1;transform:translate(0)}.squelette-changelog--dark{--squelette-changelog-bg: #1f2937;--squelette-changelog-border: #374151}.squelette-changelog__header{display:flex;justify-content:flex-end;padding:8px;border-bottom:1px solid var(--squelette-changelog-border, #e5e7eb)}.squelette-changelog__close{background:transparent;border:none;font-size:24px;line-height:1;cursor:pointer;color:var(--squelette-changelog-text, #6b7280);padding:4px 8px;border-radius:4px;transition:background-color .2s}.squelette-changelog__close:hover{background:var(--squelette-changelog-close-hover, rgba(0, 0, 0, .05))}.squelette-changelog--dark .squelette-changelog__close{color:#9ca3af}.squelette-changelog--dark .squelette-changelog__close:hover{background:#ffffff1a}.squelette-changelog__iframe{flex:1;width:100%;border:none;display:block}";function _i({workspaceSlug:e,workspace:t,theme:r,contentTheme:n,base:o,debug:i,onClose:s}){return y("div",{className:`squelette-changelog squelette-changelog--${r}`,children:y("iframe",{className:"squelette-changelog__iframe",title:"Changelog",src:`${o}/widget/${e}/changelog?theme=${n}`})})}class _t extends HTMLElement{constructor(){super();Z(this,"shadow");Z(this,"targetElement",null);Z(this,"resizeObserver",null);Z(this,"scrollListener",null);Z(this,"clickListener",null);Z(this,"outsideClickListener",null);Z(this,"isOpen",!1);Z(this,"currentAlign","");Z(this,"instanceId");Z(this,"lastToggleTs",0);this.instanceId=`instance-${Math.random().toString(36).substr(2,9)}`,this.shadow=this.attachShadow({mode:"open"}),Ve(this.shadow,bi),this.style.position="fixed",this.style.zIndex="9999",this.style.display="none"}static get observedAttributes(){return["content-theme","theme"]}connectedCallback(){this.renderChangelog();const r=this.getAttribute("selector")||null,n=this.getAttribute("align")||"screen-bottom-right";r&&this.setupClickListener(r,n)}attributeChangedCallback(r,n,o){(r==="content-theme"||r==="theme")&&n!==o&&this.shadow&&this.renderChangelog()}renderChangelog(){var c,u;const r=(c=this.getAttribute("workspace-slug"))!=null?c:"squelette",n=(u=this.getAttribute("workspace"))!=null?u:"squelette",o=this.getAttribute("theme")||"light",i=this.getAttribute("content-theme")||o,s=this.getAttribute("base")||"https://www.squelette.app",a=this.getAttribute("debug")==="true",l=this.getAttribute("height");if(l){const d=typeof l=="string"&&l.includes("px")?l:`${l}px`;this.style.setProperty("--squelette-changelog-height",d)}_e(y(_i,{workspaceSlug:r,workspace:n,theme:o,contentTheme:i,base:s,debug:a,onClose:()=>this.close()}),this.shadow)}disconnectedCallback(){this.cleanupTracking(),this.cleanupClickListener(),this.cleanupOutsideClickListener(),_e(null,this.shadow)}open(){if(this.isOpen=!0,this.style.transition="",this.style.opacity="0",this.style.transform="translateY(-12px)",this.style.display="block",!this.targetElement){const r=this.getAttribute("selector");r&&(this.targetElement=document.querySelector(r),this.currentAlign=this.getAttribute("align")||this.currentAlign)}requestAnimationFrame(()=>{this.currentAlign&&this.updatePosition(this.currentAlign),requestAnimationFrame(()=>this.applyOpenAnimation())}),this.setupOutsideClickListener()}toggle(){const r=performance.now();r-this.lastToggleTs<30||(this.lastToggleTs=r,this.isOpen?this.close():this.open())}close(){this.isOpen=!1,this.applyCloseAnimation(),this.cleanupOutsideClickListener()}applyOpenAnimation(){this.style.transition="",this.style.opacity="0",this.style.transform="translateY(-12px)",requestAnimationFrame(()=>{this.style.transition="opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94)",this.style.opacity="1",this.style.transform="translateY(0)"})}applyCloseAnimation(){this.style.transition="opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94)",this.style.opacity="0",this.style.transform="translateY(-8px)",setTimeout(()=>{this.isOpen||(this.style.display="none",this.style.transition="",this.style.opacity="",this.style.transform="")},250)}setupClickListener(r,n){const o=document.querySelector(r);o&&(this.targetElement=o,this.currentAlign=n,this.clickListener&&o.removeEventListener("click",this.clickListener,!0),this.clickListener=i=>{i.stopPropagation(),i.preventDefault(),this.toggle()},o.addEventListener("click",this.clickListener,!0),n.startsWith("element-")&&this.setupElementTracking(n))}cleanupClickListener(){this.clickListener&&this.targetElement&&(this.targetElement.removeEventListener("click",this.clickListener,!0),this.clickListener=null)}setupOutsideClickListener(){this.outsideClickListener=r=>{var o;const n=r.target;n===this.targetElement||(o=this.targetElement)!=null&&o.contains(n)||this===n||this.contains(n)||this.close()},document.addEventListener("click",this.outsideClickListener,!0)}cleanupOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener,!0),this.outsideClickListener=null)}updatePosition(r){const n=r.split("-"),o=n[0],i=n.slice(1).join("-");o==="screen"?this.positionRelativeToScreen(i):o==="element"&&this.targetElement&&this.positionRelativeToElement(this.targetElement,i)}positionRelativeToScreen(r){this.style.top="",this.style.bottom="",this.style.left="",this.style.right="",this.style.transform="";const n=16,o=window.innerWidth,i=window.innerHeight,{width:s,height:a}=this.getBoundingClientRect();switch(r){case"top-left":this.style.top=`${n}px`,this.style.left=`${n}px`;break;case"top-center":this.style.top=`${n}px`,this.style.left=`${Math.max(n,(o-s)/2)}px`;break;case"top-right":this.style.top=`${n}px`,this.style.left=`${o-s-n}px`;break;case"left":this.style.top=`${Math.max(n,(i-a)/2)}px`,this.style.left=`${n}px`;break;case"center":this.style.top=`${Math.max(n,(i-a)/2)}px`,this.style.left=`${Math.max(n,(o-s)/2)}px`;break;case"right":this.style.top=`${Math.max(n,(i-a)/2)}px`,this.style.left=`${o-s-n}px`;break;case"bottom-left":this.style.top=`${i-a-n}px`,this.style.left=`${n}px`;break;case"bottom-center":this.style.top=`${i-a-n}px`,this.style.left=`${Math.max(n,(o-s)/2)}px`;break;case"bottom-right":default:this.style.top=`${i-a-n}px`,this.style.left=`${o-s-n}px`;break}}positionRelativeToElement(r,n){const o=r.getBoundingClientRect(),i=8;this.style.top="",this.style.bottom="",this.style.left="",this.style.right="",this.style.transform="";const{width:s,height:a}=this.getBoundingClientRect();switch(n==="auto"&&(n=this.calculateBestPosition(o)),n){case"top-left":this.style.top=`${o.top-a-i}px`,this.style.left=`${o.left}px`;break;case"top-center":this.style.top=`${o.top-a-i}px`,this.style.left=`${o.left+o.width/2-s/2}px`;break;case"top-right":this.style.top=`${o.top-a-i}px`,this.style.left=`${o.right-s}px`;break;case"left":this.style.top=`${o.top+o.height/2-a/2}px`,this.style.left=`${o.left-s-i}px`;break;case"center":this.style.top=`${o.top+o.height/2-a/2}px`,this.style.left=`${o.left+o.width/2-s/2}px`;break;case"right":this.style.top=`${o.top+o.height/2-a/2}px`,this.style.left=`${o.right+i}px`;break;case"bottom-left":this.style.top=`${o.bottom+i}px`,this.style.left=`${o.left}px`;break;case"bottom-center":this.style.top=`${o.bottom+i}px`,this.style.left=`${o.left+o.width/2-s/2}px`;break;case"bottom-right":default:this.style.top=`${o.bottom+i}px`,this.style.left=`${o.right-s}px`;break}}calculateBestPosition(r){const n=window.innerWidth,o=window.innerHeight,i=400,s=this.style.getPropertyValue("--squelette-changelog-height")||"600px",a=parseInt(s),l=8,c=r.top,u=o-r.bottom,d=r.left,g=n-r.right,v=[{name:"bottom-center",score:u*1.5},{name:"top-center",score:c*1.4},{name:"bottom-right",score:Math.min(u,g)*1.2},{name:"bottom-left",score:Math.min(u,d)*1.2},{name:"top-right",score:Math.min(c,g)*1.1},{name:"top-left",score:Math.min(c,d)*1.1},{name:"right",score:g},{name:"left",score:d}].filter(q=>{switch(q.name){case"bottom-right":case"bottom-left":case"bottom-center":return u>=a+l;case"top-right":case"top-left":case"top-center":return c>=a+l;case"right":return g>=i+l;case"left":return d>=i+l;default:return!1}});return v.length>0?(v.sort((q,k)=>k.score-q.score),v[0].name):u>c&&u>Math.max(d,g)?g>d?"bottom-right":"bottom-left":c>Math.max(d,g)?g>d?"top-right":"top-left":g>d?"right":"left"}setupElementTracking(r){if(!this.targetElement)return;const o=r.split("-").slice(1).join("-");this.resizeObserver=new ResizeObserver(()=>{this.isOpen&&this.targetElement&&this.positionRelativeToElement(this.targetElement,o)}),this.resizeObserver.observe(this.targetElement),this.scrollListener=()=>{this.isOpen&&this.targetElement&&this.positionRelativeToElement(this.targetElement,o)},window.addEventListener("scroll",this.scrollListener,!0),window.addEventListener("resize",this.scrollListener)}cleanupTracking(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener,!0),window.removeEventListener("resize",this.scrollListener),this.scrollListener=null),this.targetElement=null}}typeof window!="undefined"&&typeof customElements!="undefined"&&(customElements.get("squelette-changelog")||customElements.define("squelette-changelog",_t));const vi={init({workspace:e,theme:t,contentTheme:r,base:n,debug:o,selector:i,align:s="screen-bottom-right",height:a}){if(console.log("[SqueletteChangelog] init called",{workspace:e,contentTheme:r,base:n,debug:o,selector:i,align:s,height:a}),typeof document=="undefined")return null;customElements.get("squelette-changelog")||customElements.define("squelette-changelog",_t);const l=document.querySelector("squelette-changelog");if(l)return t&&this.setTheme(t),r&&this.setContentTheme(r),o!==void 0&&l.setAttribute("debug",String(o)),i&&l.setAttribute("selector",i),l.setAttribute("align",s),l.setAttribute("workspace",e),a!==void 0&&l.setAttribute("height",String(a)),l;const c=new _t;return c.setAttribute("workspace-slug",e),c.setAttribute("workspace",e),c.setAttribute("theme",r!=null?r:"light"),c.setAttribute("content-theme",r!=null?r:"light"),n&&c.setAttribute("base",n),o!==void 0&&c.setAttribute("debug",String(o)),i&&c.setAttribute("selector",i),c.setAttribute("align",s),a!==void 0&&c.setAttribute("height",String(a)),document.body.appendChild(c),t&&this.setTheme(t),c},open(){if(typeof document=="undefined")return;const e=document.querySelector("squelette-changelog");e&&e.open()},close(){if(typeof document=="undefined")return;const e=document.querySelector("squelette-changelog");e&&e.close()},toggle(){if(typeof document=="undefined")return;const e=document.querySelector("squelette-changelog");e&&e.toggle()},setTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-changelog");t&&(e.bg&&t.style.setProperty("--squelette-changelog-bg",e.bg),e.border&&t.style.setProperty("--squelette-changelog-border",e.border))},setContentTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-changelog");t&&t.setAttribute("content-theme",e)},destroy(){if(typeof document=="undefined")return;const e=document.querySelector("squelette-changelog");e&&e.remove()}};function $n({src:e,title:t,onLoaded:r,onClose:n}){const o=X(null);return ee(()=>{const i=o.current;if(!i)return;const s=()=>{i.dataset.ready="true",r==null||r()};return i.addEventListener("load",s),()=>i.removeEventListener("load",s)},[r]),ee(()=>{const i=s=>{s.data.type==="close-feedback-widget"&&(console.log("WidgetFrame closing widget as requested"),n())};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)},[n]),y("iframe",{ref:o,class:"sq-frame",part:"frame",src:e,title:t,loading:"eager",allow:"clipboard-write; clipboard-read; fullscreen;",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"})}const wi=Object.freeze(Object.defineProperty({__proto__:null,WidgetFrame:$n,default:$n,stylesText:_r},Symbol.toStringTag,{value:"Module"}));return E.SqueletteBanner=Cn,E.SqueletteBannerElement=bt,E.SqueletteChangelog=vi,E.SqueletteChangelogElement=_t,E.SqueletteWidgetElement=zr,E.clearIdentity=Nr,E.createChangelogWidget=gi,E.createFeedbackWidget=hi,E.createRoadmapWidget=pi,E.createWidget=mi,E.ensureGlobalHelper=tr,E.identify=Rr,E.registerSqueletteWidget=Ft,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),E}({});
176
+ `}),y("span",{ref:i,className:Je("relative inline-block overflow-hidden align-baseline w-full translate-y-0.5",n),style:{maskImage:"linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%)"},"aria-label":e,children:y("span",{className:"inline-flex items-baseline will-change-transform",style:{gap:`${r}px`,animation:ye.value&&d>0?`marquee-banner ${v}s linear ${o}s infinite`:"none"},children:Array.from({length:g}).map((q,k)=>y("span",{ref:k===0?s:null,className:"whitespace-nowrap shrink-0",children:e},k))})})]})}class bt extends HTMLElement{constructor(){super();Z(this,"shadow");this.shadow=this.attachShadow({mode:"open"}),Ve(this.shadow,Wr),this.style.position="fixed",this.style.top="0",this.style.left="0",this.style.right="0",this.style.zIndex="9999"}connectedCallback(){var l;const r=(l=this.getAttribute("workspace-slug"))!=null?l:"squelette",n=this.getAttribute("theme")||"light",o=this.getAttribute("base")||"https://www.squelette.app",i=this.getAttribute("debug")==="true",s=this.getAttribute("ticket-id"),a=s?Number(s):void 0;_e(y(si,{workspaceSlug:r,theme:n,base:o,debug:i,ticketId:a}),this.shadow)}disconnectedCallback(){_e(null,this.shadow)}}typeof window!="undefined"&&typeof customElements!="undefined"&&(customElements.get("squelette-banner")||(console.debug("[SqueletteBanner] auto-registering custom element"),customElements.define("squelette-banner",bt)));const Cn={init({slug:e,theme:t,contentTheme:r,base:n,debug:o,ticketId:i}){if(typeof document=="undefined")return null;customElements.get("squelette-banner")||customElements.define("squelette-banner",bt);const s=document.querySelector("squelette-banner");if(s)return t&&this.setTheme(t),r&&this.setContentTheme(r),o!==void 0&&s.setAttribute("debug",String(o)),i!==void 0&&s.setAttribute("ticket-id",String(i)),s;const a=new bt;return a.setAttribute("workspace-slug",e),a.setAttribute("theme",r!=null?r:"light"),n&&a.setAttribute("base",n),o!==void 0&&a.setAttribute("debug",String(o)),i!==void 0&&a.setAttribute("ticket-id",String(i)),document.body.appendChild(a),t&&this.setTheme(t),a},setTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-banner");if(!t){console.warn("[SqueletteBanner] No banner found to apply theme");return}e.bg&&t.style.setProperty("--squelette-banner-bg",e.bg),e.border&&t.style.setProperty("--squelette-banner-border",e.border),e.text&&t.style.setProperty("--squelette-banner-text",e.text),e.badgeBg&&t.style.setProperty("--squelette-banner-badge-bg",e.badgeBg),e.badgeText&&t.style.setProperty("--squelette-banner-badge-text",e.badgeText),e.buttonHover!==void 0&&t.style.setProperty("--squelette-banner-button-hover",String(e.buttonHover))},setContentTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-banner");if(!t){console.warn("[SqueletteBanner] No banner found to update content theme");return}t.setAttribute("theme",e)},destroy(){if(typeof document=="undefined")return;const e=document.querySelector("squelette-banner");if(!e){console.warn("[SqueletteBanner] No banner found to destroy");return}e.remove()}};function fi(e){switch(e){case"roadmap":return"Roadmap";case"changelog":return"Changelog";case"feedback":default:return at}}function An(e){var o;Ut();const t=document.createElement(Rt);t.setAttribute("project",e.project),e.board&&t.setAttribute("board",e.board),e.view&&t.setAttribute("view",e.view),e.theme&&t.setAttribute("theme",e.theme),e.locale&&t.setAttribute("locale",e.locale),e.token&&t.setAttribute("token",e.token),e.signature&&t.setAttribute("signature",e.signature),e.label&&t.setAttribute("label",e.label),e.apiBase&&t.setAttribute("api-base",e.apiBase),e.attributes&&Object.entries(e.attributes).forEach(([i,s])=>t.setAttribute(i,s)),((o=e.appendTo)!=null?o:document.body).appendChild(t);const n=Or();return n&&window.dispatchEvent(new CustomEvent("squelette:identity",{detail:n})),t}function er(e,t,r,n){var i;const o=An({project:t,board:r!=null?r:void 0,view:e,theme:n==null?void 0:n.theme,locale:n==null?void 0:n.locale,token:n==null?void 0:n.token,signature:n==null?void 0:n.signature,appendTo:n==null?void 0:n.appendTo,attributes:n==null?void 0:n.attributes,label:(i=n==null?void 0:n.label)!=null?i:fi(e),apiBase:n==null?void 0:n.apiBase});if(n){const s=Zn(o,n);if(s.length>0){const a=o.destroy.bind(o);o.destroy=async()=>{for(const l of s.splice(0,s.length))l();await a()}}}return o}function tr(){const e=window;e.SqueletteWidget||(e.SqueletteWidget={create:An,createFeedbackWidget:(t,r,n)=>er("feedback",t,r,n),createRoadmapWidget:(t,r,n)=>er("roadmap",t,r,n),createChangelogWidget:(t,r)=>er("changelog",t,null,r),identify:Rr,clearIdentity:Nr,banner:Cn,version:"0.5.0",cdn:jn})}Ut(),tr(),tr();function hi(...e){return window.SqueletteWidget.createFeedbackWidget(...e)}function pi(...e){return window.SqueletteWidget.createRoadmapWidget(...e)}function gi(...e){return window.SqueletteWidget.createChangelogWidget(...e)}function mi(...e){return window.SqueletteWidget.create(...e)}const bi=".squelette-changelog{display:flex;flex-direction:column;width:375px;height:var(--squelette-changelog-height, 400px);background:var(--squelette-changelog-bg, #ffffff);border:1px solid var(--squelette-changelog-border, #e5e7eb);border-radius:8px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;overflow:hidden;opacity:1;transform:translate(0)}.squelette-changelog--dark{--squelette-changelog-bg: #1f2937;--squelette-changelog-border: #374151}.squelette-changelog__header{display:flex;justify-content:flex-end;padding:8px;border-bottom:1px solid var(--squelette-changelog-border, #e5e7eb)}.squelette-changelog__close{background:transparent;border:none;font-size:24px;line-height:1;cursor:pointer;color:var(--squelette-changelog-text, #6b7280);padding:4px 8px;border-radius:4px;transition:background-color .2s}.squelette-changelog__close:hover{background:var(--squelette-changelog-close-hover, rgba(0, 0, 0, .05))}.squelette-changelog--dark .squelette-changelog__close{color:#9ca3af}.squelette-changelog--dark .squelette-changelog__close:hover{background:#ffffff1a}.squelette-changelog__iframe{flex:1;width:100%;border:none;display:block}";function _i({workspaceSlug:e,workspace:t,theme:r,contentTheme:n,base:o,debug:i,onClose:s}){return y("div",{className:`squelette-changelog squelette-changelog--${r}`,children:y("iframe",{className:"squelette-changelog__iframe",title:"Changelog",src:`${o}/widget/${r}/${e}/changelog`})})}class _t extends HTMLElement{constructor(){super();Z(this,"shadow");Z(this,"targetElement",null);Z(this,"resizeObserver",null);Z(this,"scrollListener",null);Z(this,"clickListener",null);Z(this,"outsideClickListener",null);Z(this,"isOpen",!1);Z(this,"currentAlign","");Z(this,"instanceId");Z(this,"lastToggleTs",0);this.instanceId=`instance-${Math.random().toString(36).substr(2,9)}`,this.shadow=this.attachShadow({mode:"open"}),Ve(this.shadow,bi),this.style.position="fixed",this.style.zIndex="9999",this.style.display="none"}static get observedAttributes(){return["content-theme","theme"]}connectedCallback(){this.renderChangelog();const r=this.getAttribute("selector")||null,n=this.getAttribute("align")||"screen-bottom-right";r&&this.setupClickListener(r,n)}attributeChangedCallback(r,n,o){(r==="content-theme"||r==="theme")&&n!==o&&this.shadow&&this.renderChangelog()}renderChangelog(){var c,u;const r=(c=this.getAttribute("workspace-slug"))!=null?c:"squelette",n=(u=this.getAttribute("workspace"))!=null?u:"squelette",o=this.getAttribute("theme")||"light",i=this.getAttribute("content-theme")||o,s=this.getAttribute("base")||"https://www.squelette.app",a=this.getAttribute("debug")==="true",l=this.getAttribute("height");if(l){const d=typeof l=="string"&&l.includes("px")?l:`${l}px`;this.style.setProperty("--squelette-changelog-height",d)}_e(y(_i,{workspaceSlug:r,workspace:n,theme:o,contentTheme:i,base:s,debug:a,onClose:()=>this.close()}),this.shadow)}disconnectedCallback(){this.cleanupTracking(),this.cleanupClickListener(),this.cleanupOutsideClickListener(),_e(null,this.shadow)}open(){if(this.isOpen=!0,this.style.transition="",this.style.opacity="0",this.style.transform="translateY(-12px)",this.style.display="block",!this.targetElement){const r=this.getAttribute("selector");r&&(this.targetElement=document.querySelector(r),this.currentAlign=this.getAttribute("align")||this.currentAlign)}requestAnimationFrame(()=>{this.currentAlign&&this.updatePosition(this.currentAlign),requestAnimationFrame(()=>this.applyOpenAnimation())}),this.setupOutsideClickListener()}toggle(){const r=performance.now();r-this.lastToggleTs<30||(this.lastToggleTs=r,this.isOpen?this.close():this.open())}close(){this.isOpen=!1,this.applyCloseAnimation(),this.cleanupOutsideClickListener()}applyOpenAnimation(){this.style.transition="",this.style.opacity="0",this.style.transform="translateY(-12px)",requestAnimationFrame(()=>{this.style.transition="opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94)",this.style.opacity="1",this.style.transform="translateY(0)"})}applyCloseAnimation(){this.style.transition="opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94)",this.style.opacity="0",this.style.transform="translateY(-8px)",setTimeout(()=>{this.isOpen||(this.style.display="none",this.style.transition="",this.style.opacity="",this.style.transform="")},250)}setupClickListener(r,n){const o=document.querySelector(r);o&&(this.targetElement=o,this.currentAlign=n,this.clickListener&&o.removeEventListener("click",this.clickListener,!0),this.clickListener=i=>{i.stopPropagation(),i.preventDefault(),this.toggle()},o.addEventListener("click",this.clickListener,!0),n.startsWith("element-")&&this.setupElementTracking(n))}cleanupClickListener(){this.clickListener&&this.targetElement&&(this.targetElement.removeEventListener("click",this.clickListener,!0),this.clickListener=null)}setupOutsideClickListener(){this.outsideClickListener=r=>{var o;const n=r.target;n===this.targetElement||(o=this.targetElement)!=null&&o.contains(n)||this===n||this.contains(n)||this.close()},document.addEventListener("click",this.outsideClickListener,!0)}cleanupOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener,!0),this.outsideClickListener=null)}updatePosition(r){const n=r.split("-"),o=n[0],i=n.slice(1).join("-");o==="screen"?this.positionRelativeToScreen(i):o==="element"&&this.targetElement&&this.positionRelativeToElement(this.targetElement,i)}positionRelativeToScreen(r){this.style.top="",this.style.bottom="",this.style.left="",this.style.right="",this.style.transform="";const n=16,o=window.innerWidth,i=window.innerHeight,{width:s,height:a}=this.getBoundingClientRect();switch(r){case"top-left":this.style.top=`${n}px`,this.style.left=`${n}px`;break;case"top-center":this.style.top=`${n}px`,this.style.left=`${Math.max(n,(o-s)/2)}px`;break;case"top-right":this.style.top=`${n}px`,this.style.left=`${o-s-n}px`;break;case"left":this.style.top=`${Math.max(n,(i-a)/2)}px`,this.style.left=`${n}px`;break;case"center":this.style.top=`${Math.max(n,(i-a)/2)}px`,this.style.left=`${Math.max(n,(o-s)/2)}px`;break;case"right":this.style.top=`${Math.max(n,(i-a)/2)}px`,this.style.left=`${o-s-n}px`;break;case"bottom-left":this.style.top=`${i-a-n}px`,this.style.left=`${n}px`;break;case"bottom-center":this.style.top=`${i-a-n}px`,this.style.left=`${Math.max(n,(o-s)/2)}px`;break;case"bottom-right":default:this.style.top=`${i-a-n}px`,this.style.left=`${o-s-n}px`;break}}positionRelativeToElement(r,n){const o=r.getBoundingClientRect(),i=8;this.style.top="",this.style.bottom="",this.style.left="",this.style.right="",this.style.transform="";const{width:s,height:a}=this.getBoundingClientRect();switch(n==="auto"&&(n=this.calculateBestPosition(o)),n){case"top-left":this.style.top=`${o.top-a-i}px`,this.style.left=`${o.left}px`;break;case"top-center":this.style.top=`${o.top-a-i}px`,this.style.left=`${o.left+o.width/2-s/2}px`;break;case"top-right":this.style.top=`${o.top-a-i}px`,this.style.left=`${o.right-s}px`;break;case"left":this.style.top=`${o.top+o.height/2-a/2}px`,this.style.left=`${o.left-s-i}px`;break;case"center":this.style.top=`${o.top+o.height/2-a/2}px`,this.style.left=`${o.left+o.width/2-s/2}px`;break;case"right":this.style.top=`${o.top+o.height/2-a/2}px`,this.style.left=`${o.right+i}px`;break;case"bottom-left":this.style.top=`${o.bottom+i}px`,this.style.left=`${o.left}px`;break;case"bottom-center":this.style.top=`${o.bottom+i}px`,this.style.left=`${o.left+o.width/2-s/2}px`;break;case"bottom-right":default:this.style.top=`${o.bottom+i}px`,this.style.left=`${o.right-s}px`;break}}calculateBestPosition(r){const n=window.innerWidth,o=window.innerHeight,i=400,s=this.style.getPropertyValue("--squelette-changelog-height")||"600px",a=parseInt(s),l=8,c=r.top,u=o-r.bottom,d=r.left,g=n-r.right,v=[{name:"bottom-center",score:u*1.5},{name:"top-center",score:c*1.4},{name:"bottom-right",score:Math.min(u,g)*1.2},{name:"bottom-left",score:Math.min(u,d)*1.2},{name:"top-right",score:Math.min(c,g)*1.1},{name:"top-left",score:Math.min(c,d)*1.1},{name:"right",score:g},{name:"left",score:d}].filter(q=>{switch(q.name){case"bottom-right":case"bottom-left":case"bottom-center":return u>=a+l;case"top-right":case"top-left":case"top-center":return c>=a+l;case"right":return g>=i+l;case"left":return d>=i+l;default:return!1}});return v.length>0?(v.sort((q,k)=>k.score-q.score),v[0].name):u>c&&u>Math.max(d,g)?g>d?"bottom-right":"bottom-left":c>Math.max(d,g)?g>d?"top-right":"top-left":g>d?"right":"left"}setupElementTracking(r){if(!this.targetElement)return;const o=r.split("-").slice(1).join("-");this.resizeObserver=new ResizeObserver(()=>{this.isOpen&&this.targetElement&&this.positionRelativeToElement(this.targetElement,o)}),this.resizeObserver.observe(this.targetElement),this.scrollListener=()=>{this.isOpen&&this.targetElement&&this.positionRelativeToElement(this.targetElement,o)},window.addEventListener("scroll",this.scrollListener,!0),window.addEventListener("resize",this.scrollListener)}cleanupTracking(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.scrollListener&&(window.removeEventListener("scroll",this.scrollListener,!0),window.removeEventListener("resize",this.scrollListener),this.scrollListener=null),this.targetElement=null}}typeof window!="undefined"&&typeof customElements!="undefined"&&(customElements.get("squelette-changelog")||customElements.define("squelette-changelog",_t));const vi={init({workspace:e,theme:t,contentTheme:r,base:n,debug:o,selector:i,align:s="screen-bottom-right",height:a}){if(typeof document=="undefined")return null;customElements.get("squelette-changelog")||customElements.define("squelette-changelog",_t);const l=document.querySelector("squelette-changelog");if(l)return t&&this.setTheme(t),r&&this.setContentTheme(r),o!==void 0&&l.setAttribute("debug",String(o)),i&&l.setAttribute("selector",i),l.setAttribute("align",s),l.setAttribute("workspace",e),a!==void 0&&l.setAttribute("height",String(a)),l;const c=new _t;return c.setAttribute("workspace-slug",e),c.setAttribute("workspace",e),c.setAttribute("theme",r!=null?r:"light"),c.setAttribute("content-theme",r!=null?r:"light"),n&&c.setAttribute("base",n),o!==void 0&&c.setAttribute("debug",String(o)),i&&c.setAttribute("selector",i),c.setAttribute("align",s),a!==void 0&&c.setAttribute("height",String(a)),document.body.appendChild(c),t&&this.setTheme(t),c},open(){if(typeof document=="undefined")return;const e=document.querySelector("squelette-changelog");e&&e.open()},close(){if(typeof document=="undefined")return;const e=document.querySelector("squelette-changelog");e&&e.close()},toggle(){if(typeof document=="undefined")return;const e=document.querySelector("squelette-changelog");e&&e.toggle()},setTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-changelog");t&&(e.bg&&t.style.setProperty("--squelette-changelog-bg",e.bg),e.border&&t.style.setProperty("--squelette-changelog-border",e.border))},setContentTheme(e){if(typeof document=="undefined")return;const t=document.querySelector("squelette-changelog");t&&t.setAttribute("content-theme",e)},destroy(){if(typeof document=="undefined")return;const e=document.querySelector("squelette-changelog");e&&e.remove()}};function $n({src:e,title:t,onLoaded:r,onClose:n}){const o=X(null);return ee(()=>{const i=o.current;if(!i)return;const s=()=>{i.dataset.ready="true",r==null||r()};return i.addEventListener("load",s),()=>i.removeEventListener("load",s)},[r]),ee(()=>{const i=s=>{s.data.type==="close-feedback-widget"&&n()};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)},[n]),y("iframe",{ref:o,class:"sq-frame",part:"frame",src:e,title:t,loading:"eager",allow:"clipboard-write; clipboard-read; fullscreen;",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"})}const wi=Object.freeze(Object.defineProperty({__proto__:null,WidgetFrame:$n,default:$n,stylesText:_r},Symbol.toStringTag,{value:"Module"}));return E.SqueletteBanner=Cn,E.SqueletteBannerElement=bt,E.SqueletteChangelog=vi,E.SqueletteChangelogElement=_t,E.SqueletteWidgetElement=zr,E.clearIdentity=Nr,E.createChangelogWidget=gi,E.createFeedbackWidget=hi,E.createRoadmapWidget=pi,E.createWidget=mi,E.ensureGlobalHelper=tr,E.identify=Rr,E.registerSqueletteWidget=Ut,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),E}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squeletteapp/widget",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Embeddable Squelette widget",
5
5
  "type": "module",
6
6
  "main": "dist/widget.js",