@dendelion/paper-camp 0.34.0 → 0.35.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.
@@ -266,11 +266,11 @@ const Fp = /* @__PURE__ */ bc(S);
266
266
  * This source code is licensed under the MIT license found in the
267
267
  * LICENSE file in the root directory of this source tree.
268
268
  */
269
- var jp = S, Mp = Symbol.for("react.element"), Np = Symbol.for("react.fragment"), Rp = Object.prototype.hasOwnProperty, Lp = jp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Ip = { key: !0, ref: !0, __self: !0, __source: !0 };
269
+ var jp = S, Mp = Symbol.for("react.element"), Np = Symbol.for("react.fragment"), Rp = Object.prototype.hasOwnProperty, Lp = jp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Ap = { key: !0, ref: !0, __self: !0, __source: !0 };
270
270
  function Pc(e, t, r) {
271
271
  var n, o = {}, l = null, i = null;
272
272
  r !== void 0 && (l = "" + r), t.key !== void 0 && (l = "" + t.key), t.ref !== void 0 && (i = t.ref);
273
- for (n in t) Rp.call(t, n) && !Ip.hasOwnProperty(n) && (o[n] = t[n]);
273
+ for (n in t) Rp.call(t, n) && !Ap.hasOwnProperty(n) && (o[n] = t[n]);
274
274
  if (e && e.defaultProps) for (n in t = e.defaultProps, t) o[n] === void 0 && (o[n] = t[n]);
275
275
  return { $$typeof: Mp, type: e, key: l, ref: i, props: o, _owner: Lp.current };
276
276
  }
@@ -280,7 +280,7 @@ yl.jsxs = Pc;
280
280
  vc.exports = yl;
281
281
  var v = vc.exports;
282
282
  let Fc = "";
283
- function Ap(e) {
283
+ function Ip(e) {
284
284
  Fc = e;
285
285
  }
286
286
  function N(e) {
@@ -306,8 +306,8 @@ var jc = { exports: {} }, We = {}, Mc = { exports: {} }, Nc = {};
306
306
  var T = P.length;
307
307
  P.push(R);
308
308
  e: for (; 0 < T; ) {
309
- var I = T - 1 >>> 1, Q = P[I];
310
- if (0 < o(Q, R)) P[I] = R, P[T] = Q, T = I;
309
+ var A = T - 1 >>> 1, Q = P[A];
310
+ if (0 < o(Q, R)) P[A] = R, P[T] = Q, T = A;
311
311
  else break e;
312
312
  }
313
313
  }
@@ -319,10 +319,10 @@ var jc = { exports: {} }, We = {}, Mc = { exports: {} }, Nc = {};
319
319
  var R = P[0], T = P.pop();
320
320
  if (T !== R) {
321
321
  P[0] = T;
322
- e: for (var I = 0, Q = P.length, ee = Q >>> 1; I < ee; ) {
323
- var Ze = 2 * (I + 1) - 1, on = P[Ze], rr = Ze + 1, oo = P[rr];
324
- if (0 > o(on, T)) rr < Q && 0 > o(oo, on) ? (P[I] = oo, P[rr] = T, I = rr) : (P[I] = on, P[Ze] = T, I = Ze);
325
- else if (rr < Q && 0 > o(oo, T)) P[I] = oo, P[rr] = T, I = rr;
322
+ e: for (var A = 0, Q = P.length, ee = Q >>> 1; A < ee; ) {
323
+ var Ze = 2 * (A + 1) - 1, on = P[Ze], rr = Ze + 1, oo = P[rr];
324
+ if (0 > o(on, T)) rr < Q && 0 > o(oo, on) ? (P[A] = oo, P[rr] = T, A = rr) : (P[A] = on, P[Ze] = T, A = Ze);
325
+ else if (rr < Q && 0 > o(oo, T)) P[A] = oo, P[rr] = T, A = rr;
326
326
  else break e;
327
327
  }
328
328
  }
@@ -365,10 +365,10 @@ var jc = { exports: {} }, We = {}, Mc = { exports: {} }, Nc = {};
365
365
  var T = d;
366
366
  try {
367
367
  for (h(R), p = r(s); p !== null && (!(p.expirationTime > R) || P && !O()); ) {
368
- var I = p.callback;
369
- if (typeof I == "function") {
368
+ var A = p.callback;
369
+ if (typeof A == "function") {
370
370
  p.callback = null, d = p.priorityLevel;
371
- var Q = I(p.expirationTime <= R);
371
+ var Q = A(p.expirationTime <= R);
372
372
  R = e.unstable_now(), typeof Q == "function" ? p.callback = Q : p === r(s) && n(s), h(R);
373
373
  } else n(s);
374
374
  p = r(s);
@@ -467,8 +467,8 @@ var jc = { exports: {} }, We = {}, Mc = { exports: {} }, Nc = {};
467
467
  d = T;
468
468
  }
469
469
  }, e.unstable_scheduleCallback = function(P, R, T) {
470
- var I = e.unstable_now();
471
- switch (typeof T == "object" && T !== null ? (T = T.delay, T = typeof T == "number" && 0 < T ? I + T : I) : T = I, P) {
470
+ var A = e.unstable_now();
471
+ switch (typeof T == "object" && T !== null ? (T = T.delay, T = typeof T == "number" && 0 < T ? A + T : A) : T = A, P) {
472
472
  case 1:
473
473
  var Q = -1;
474
474
  break;
@@ -484,7 +484,7 @@ var jc = { exports: {} }, We = {}, Mc = { exports: {} }, Nc = {};
484
484
  default:
485
485
  Q = 5e3;
486
486
  }
487
- return Q = T + Q, P = { id: c++, callback: R, priorityLevel: P, startTime: T, expirationTime: Q, sortIndex: -1 }, T > I ? (P.sortIndex = T, t(u, P), r(s) === null && P === r(u) && (b ? (f(z), z = -1) : b = !0, ke(y, T - I))) : (P.sortIndex = Q, t(s, P), m || g || (m = !0, pe(w))), P;
487
+ return Q = T + Q, P = { id: c++, callback: R, priorityLevel: P, startTime: T, expirationTime: Q, sortIndex: -1 }, T > A ? (P.sortIndex = T, t(u, P), r(s) === null && P === r(u) && (b ? (f(z), z = -1) : b = !0, ke(y, T - A))) : (P.sortIndex = Q, t(s, P), m || g || (m = !0, pe(w))), P;
488
488
  }, e.unstable_shouldYield = O, e.unstable_wrapCallback = function(P) {
489
489
  var R = d;
490
490
  return function() {
@@ -521,9 +521,9 @@ function br(e, t) {
521
521
  function Ur(e, t) {
522
522
  for (Rn[e] = t, e = 0; e < t.length; e++) Rc.add(t[e]);
523
523
  }
524
- var kt = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), zi = Object.prototype.hasOwnProperty, $p = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, Ls = {}, Is = {};
524
+ var kt = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), zi = Object.prototype.hasOwnProperty, $p = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, Ls = {}, As = {};
525
525
  function Wp(e) {
526
- return zi.call(Is, e) ? !0 : zi.call(Ls, e) ? !1 : $p.test(e) ? Is[e] = !0 : (Ls[e] = !0, !1);
526
+ return zi.call(As, e) ? !0 : zi.call(Ls, e) ? !1 : $p.test(e) ? As[e] = !0 : (Ls[e] = !0, !1);
527
527
  }
528
528
  function Up(e, t, r, n) {
529
529
  if (r !== null && r.type === 0) return !1;
@@ -614,9 +614,9 @@ function Ma(e, t, r, n) {
614
614
  var o = be.hasOwnProperty(t) ? be[t] : null;
615
615
  (o !== null ? o.type !== 0 : n || !(2 < t.length) || t[0] !== "o" && t[0] !== "O" || t[1] !== "n" && t[1] !== "N") && (Gp(t, r, o, n) && (r = null), n || o === null ? Wp(t) && (r === null ? e.removeAttribute(t) : e.setAttribute(t, "" + r)) : o.mustUseProperty ? e[o.propertyName] = r === null ? o.type === 3 ? !1 : "" : r : (t = o.attributeName, n = o.attributeNamespace, r === null ? e.removeAttribute(t) : (o = o.type, r = o === 3 || o === 4 && r === !0 ? "" : "" + r, n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r))));
616
616
  }
617
- var zt = Dp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, io = Symbol.for("react.element"), kr = Symbol.for("react.portal"), Cr = Symbol.for("react.fragment"), Na = Symbol.for("react.strict_mode"), Ti = Symbol.for("react.profiler"), Lc = Symbol.for("react.provider"), Ic = Symbol.for("react.context"), Ra = Symbol.for("react.forward_ref"), Pi = Symbol.for("react.suspense"), Fi = Symbol.for("react.suspense_list"), La = Symbol.for("react.memo"), It = Symbol.for("react.lazy"), Ac = Symbol.for("react.offscreen"), As = Symbol.iterator;
617
+ var zt = Dp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, io = Symbol.for("react.element"), kr = Symbol.for("react.portal"), Cr = Symbol.for("react.fragment"), Na = Symbol.for("react.strict_mode"), Ti = Symbol.for("react.profiler"), Lc = Symbol.for("react.provider"), Ac = Symbol.for("react.context"), Ra = Symbol.for("react.forward_ref"), Pi = Symbol.for("react.suspense"), Fi = Symbol.for("react.suspense_list"), La = Symbol.for("react.memo"), At = Symbol.for("react.lazy"), Ic = Symbol.for("react.offscreen"), Is = Symbol.iterator;
618
618
  function ln(e) {
619
- return e === null || typeof e != "object" ? null : (e = As && e[As] || e["@@iterator"], typeof e == "function" ? e : null);
619
+ return e === null || typeof e != "object" ? null : (e = Is && e[Is] || e["@@iterator"], typeof e == "function" ? e : null);
620
620
  }
621
621
  var ne = Object.assign, $l;
622
622
  function vn(e) {
@@ -726,7 +726,7 @@ function ji(e) {
726
726
  return "SuspenseList";
727
727
  }
728
728
  if (typeof e == "object") switch (e.$$typeof) {
729
- case Ic:
729
+ case Ac:
730
730
  return (e.displayName || "Context") + ".Consumer";
731
731
  case Lc:
732
732
  return (e._context.displayName || "Context") + ".Provider";
@@ -735,7 +735,7 @@ function ji(e) {
735
735
  return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
736
736
  case La:
737
737
  return t = e.displayName || null, t !== null ? t : ji(e.type) || "Memo";
738
- case It:
738
+ case At:
739
739
  t = e._payload, e = e._init;
740
740
  try {
741
741
  return ji(e(t));
@@ -879,7 +879,7 @@ function Ri(e, t, r) {
879
879
  (t !== "number" || Uo(e.ownerDocument) !== e) && (r == null ? e.defaultValue = "" + e._wrapperState.initialValue : e.defaultValue !== "" + r && (e.defaultValue = "" + r));
880
880
  }
881
881
  var yn = Array.isArray;
882
- function Ir(e, t, r, n) {
882
+ function Ar(e, t, r, n) {
883
883
  if (e = e.options, t) {
884
884
  t = {};
885
885
  for (var o = 0; o < r.length; o++) t["$" + r[o]] = !0;
@@ -932,7 +932,7 @@ function Wc(e) {
932
932
  return "http://www.w3.org/1999/xhtml";
933
933
  }
934
934
  }
935
- function Ii(e, t) {
935
+ function Ai(e, t) {
936
936
  return e == null || e === "http://www.w3.org/1999/xhtml" ? Wc(t) : e === "http://www.w3.org/2000/svg" && t === "foreignObject" ? "http://www.w3.org/1999/xhtml" : e;
937
937
  }
938
938
  var so, Uc = function(e) {
@@ -1019,7 +1019,7 @@ function Vc(e, t) {
1019
1019
  }
1020
1020
  }
1021
1021
  var Kp = ne({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 });
1022
- function Ai(e, t) {
1022
+ function Ii(e, t) {
1023
1023
  if (t) {
1024
1024
  if (Kp[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) throw Error(C(137, e));
1025
1025
  if (t.dangerouslySetInnerHTML != null) {
@@ -1046,10 +1046,10 @@ function Oi(e, t) {
1046
1046
  }
1047
1047
  }
1048
1048
  var Bi = null;
1049
- function Ia(e) {
1049
+ function Aa(e) {
1050
1050
  return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e;
1051
1051
  }
1052
- var Di = null, Ar = null, Or = null;
1052
+ var Di = null, Ir = null, Or = null;
1053
1053
  function Ws(e) {
1054
1054
  if (e = eo(e)) {
1055
1055
  if (typeof Di != "function") throw Error(C(280));
@@ -1058,12 +1058,12 @@ function Ws(e) {
1058
1058
  }
1059
1059
  }
1060
1060
  function Qc(e) {
1061
- Ar ? Or ? Or.push(e) : Or = [e] : Ar = e;
1061
+ Ir ? Or ? Or.push(e) : Or = [e] : Ir = e;
1062
1062
  }
1063
1063
  function Hc() {
1064
- if (Ar) {
1065
- var e = Ar, t = Or;
1066
- if (Or = Ar = null, Ws(e), t) for (e = 0; e < t.length; e++) Ws(t[e]);
1064
+ if (Ir) {
1065
+ var e = Ir, t = Or;
1066
+ if (Or = Ir = null, Ws(e), t) for (e = 0; e < t.length; e++) Ws(t[e]);
1067
1067
  }
1068
1068
  }
1069
1069
  function Xc(e, t) {
@@ -1078,10 +1078,10 @@ function qc(e, t, r) {
1078
1078
  try {
1079
1079
  return Xc(e, t, r);
1080
1080
  } finally {
1081
- Gl = !1, (Ar !== null || Or !== null) && (Kc(), Hc());
1081
+ Gl = !1, (Ir !== null || Or !== null) && (Kc(), Hc());
1082
1082
  }
1083
1083
  }
1084
- function In(e, t) {
1084
+ function An(e, t) {
1085
1085
  var r = e.stateNode;
1086
1086
  if (r === null) return null;
1087
1087
  var n = Sl(r);
@@ -1231,7 +1231,7 @@ function Zc(e) {
1231
1231
  }
1232
1232
  return null;
1233
1233
  }
1234
- var ed = $e.unstable_scheduleCallback, Gs = $e.unstable_cancelCallback, tf = $e.unstable_shouldYield, rf = $e.unstable_requestPaint, le = $e.unstable_now, nf = $e.unstable_getCurrentPriorityLevel, Aa = $e.unstable_ImmediatePriority, td = $e.unstable_UserBlockingPriority, Qo = $e.unstable_NormalPriority, of = $e.unstable_LowPriority, rd = $e.unstable_IdlePriority, xl = null, pt = null;
1234
+ var ed = $e.unstable_scheduleCallback, Gs = $e.unstable_cancelCallback, tf = $e.unstable_shouldYield, rf = $e.unstable_requestPaint, le = $e.unstable_now, nf = $e.unstable_getCurrentPriorityLevel, Ia = $e.unstable_ImmediatePriority, td = $e.unstable_UserBlockingPriority, Qo = $e.unstable_NormalPriority, of = $e.unstable_LowPriority, rd = $e.unstable_IdlePriority, xl = null, pt = null;
1235
1235
  function lf(e) {
1236
1236
  if (pt && typeof pt.onCommitFiberRoot == "function") try {
1237
1237
  pt.onCommitFiberRoot(xl, e, void 0, (e.current.flags & 128) === 128);
@@ -1386,7 +1386,7 @@ var H = 0;
1386
1386
  function od(e) {
1387
1387
  return e &= -e, 1 < e ? 4 < e ? e & 268435455 ? 16 : 536870912 : 4 : 1;
1388
1388
  }
1389
- var ld, Ba, id, ad, sd, Gi = !1, _o = [], Wt = null, Ut = null, Gt = null, An = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map(), Ot = [], pf = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
1389
+ var ld, Ba, id, ad, sd, Gi = !1, _o = [], Wt = null, Ut = null, Gt = null, In = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map(), Ot = [], pf = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
1390
1390
  function Vs(e, t) {
1391
1391
  switch (e) {
1392
1392
  case "focusin":
@@ -1403,7 +1403,7 @@ function Vs(e, t) {
1403
1403
  break;
1404
1404
  case "pointerover":
1405
1405
  case "pointerout":
1406
- An.delete(t.pointerId);
1406
+ In.delete(t.pointerId);
1407
1407
  break;
1408
1408
  case "gotpointercapture":
1409
1409
  case "lostpointercapture":
@@ -1423,7 +1423,7 @@ function ff(e, t, r, n, o) {
1423
1423
  return Gt = sn(Gt, e, t, r, n, o), !0;
1424
1424
  case "pointerover":
1425
1425
  var l = o.pointerId;
1426
- return An.set(l, sn(An.get(l) || null, e, t, r, n, o)), !0;
1426
+ return In.set(l, sn(In.get(l) || null, e, t, r, n, o)), !0;
1427
1427
  case "gotpointercapture":
1428
1428
  return l = o.pointerId, On.set(l, sn(On.get(l) || null, e, t, r, n, o)), !0;
1429
1429
  }
@@ -1466,7 +1466,7 @@ function Qs(e, t, r) {
1466
1466
  jo(e) && r.delete(t);
1467
1467
  }
1468
1468
  function mf() {
1469
- Gi = !1, Wt !== null && jo(Wt) && (Wt = null), Ut !== null && jo(Ut) && (Ut = null), Gt !== null && jo(Gt) && (Gt = null), An.forEach(Qs), On.forEach(Qs);
1469
+ Gi = !1, Wt !== null && jo(Wt) && (Wt = null), Ut !== null && jo(Ut) && (Ut = null), Gt !== null && jo(Gt) && (Gt = null), In.forEach(Qs), On.forEach(Qs);
1470
1470
  }
1471
1471
  function un(e, t) {
1472
1472
  e.blockedOn === t && (e.blockedOn = null, Gi || (Gi = !0, $e.unstable_scheduleCallback($e.unstable_NormalPriority, mf)));
@@ -1482,7 +1482,7 @@ function Bn(e) {
1482
1482
  n.blockedOn === e && (n.blockedOn = null);
1483
1483
  }
1484
1484
  }
1485
- for (Wt !== null && un(Wt, e), Ut !== null && un(Ut, e), Gt !== null && un(Gt, e), An.forEach(t), On.forEach(t), r = 0; r < Ot.length; r++) n = Ot[r], n.blockedOn === e && (n.blockedOn = null);
1485
+ for (Wt !== null && un(Wt, e), Ut !== null && un(Ut, e), Gt !== null && un(Gt, e), In.forEach(t), On.forEach(t), r = 0; r < Ot.length; r++) n = Ot[r], n.blockedOn === e && (n.blockedOn = null);
1486
1486
  for (; 0 < Ot.length && (r = Ot[0], r.blockedOn === null); ) ud(r), r.blockedOn === null && Ot.shift();
1487
1487
  }
1488
1488
  var Br = zt.ReactCurrentBatchConfig, Xo = !0;
@@ -1521,7 +1521,7 @@ function Da(e, t, r, n) {
1521
1521
  }
1522
1522
  var Ko = null;
1523
1523
  function Vi(e, t, r, n) {
1524
- if (Ko = null, e = Ia(n), e = ar(e), e !== null) if (t = vr(e), t === null) e = null;
1524
+ if (Ko = null, e = Aa(n), e = ar(e), e !== null) if (t = vr(e), t === null) e = null;
1525
1525
  else if (r = t.tag, r === 13) {
1526
1526
  if (e = Yc(t), e !== null) return e;
1527
1527
  e = null;
@@ -1607,7 +1607,7 @@ function cd(e) {
1607
1607
  return 4;
1608
1608
  case "message":
1609
1609
  switch (nf()) {
1610
- case Aa:
1610
+ case Ia:
1611
1611
  return 1;
1612
1612
  case td:
1613
1613
  return 4;
@@ -1738,7 +1738,7 @@ var jf = ne({}, Zn, { key: function(e) {
1738
1738
  return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
1739
1739
  }, which: function(e) {
1740
1740
  return e.type === "keypress" ? No(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
1741
- } }), Mf = Ue(jf), Nf = ne({}, wl, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), qs = Ue(Nf), Rf = ne({}, Zn, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: Ua }), Lf = Ue(Rf), If = ne({}, Jr, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), Af = Ue(If), Of = ne({}, wl, {
1741
+ } }), Mf = Ue(jf), Nf = ne({}, wl, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), qs = Ue(Nf), Rf = ne({}, Zn, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: Ua }), Lf = Ue(Rf), Af = ne({}, Jr, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), If = Ue(Af), Of = ne({}, wl, {
1742
1742
  deltaX: function(e) {
1743
1743
  return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0;
1744
1744
  },
@@ -1835,7 +1835,7 @@ function tu() {
1835
1835
  function gd(e) {
1836
1836
  if (e.propertyName === "value" && kl(Dn)) {
1837
1837
  var t = [];
1838
- md(t, Dn, e, Ia(e)), qc(Vf, t);
1838
+ md(t, Dn, e, Aa(e)), qc(Vf, t);
1839
1839
  }
1840
1840
  }
1841
1841
  function Hf(e, t, r) {
@@ -2056,7 +2056,7 @@ function ti(e, t, r, n, o) {
2056
2056
  n = n.return;
2057
2057
  }
2058
2058
  qc(function() {
2059
- var u = l, c = Ia(r), p = [];
2059
+ var u = l, c = Aa(r), p = [];
2060
2060
  e: {
2061
2061
  var d = Sd.get(e);
2062
2062
  if (d !== void 0) {
@@ -2112,7 +2112,7 @@ function ti(e, t, r, n, o) {
2112
2112
  g = kf;
2113
2113
  break;
2114
2114
  case Cd:
2115
- g = Af;
2115
+ g = If;
2116
2116
  break;
2117
2117
  case "scroll":
2118
2118
  g = bf;
@@ -2140,7 +2140,7 @@ function ti(e, t, r, n, o) {
2140
2140
  for (var _ = u, h; _ !== null; ) {
2141
2141
  h = _;
2142
2142
  var y = h.stateNode;
2143
- if (h.tag === 5 && y !== null && (h = y, f !== null && (y = In(_, f), y != null && b.push(Un(_, y, h)))), x) break;
2143
+ if (h.tag === 5 && y !== null && (h = y, f !== null && (y = An(_, f), y != null && b.push(Un(_, y, h)))), x) break;
2144
2144
  _ = _.return;
2145
2145
  }
2146
2146
  0 < b.length && (d = new g(d, m, null, r, c), p.push({ event: d, listeners: b }));
@@ -2227,7 +2227,7 @@ function Un(e, t, r) {
2227
2227
  function qo(e, t) {
2228
2228
  for (var r = t + "Capture", n = []; e !== null; ) {
2229
2229
  var o = e, l = o.stateNode;
2230
- o.tag === 5 && l !== null && (o = l, l = In(e, r), l != null && n.unshift(Un(e, l, o)), l = In(e, t), l != null && n.push(Un(e, l, o))), e = e.return;
2230
+ o.tag === 5 && l !== null && (o = l, l = An(e, r), l != null && n.unshift(Un(e, l, o)), l = An(e, t), l != null && n.push(Un(e, l, o))), e = e.return;
2231
2231
  }
2232
2232
  return n;
2233
2233
  }
@@ -2242,7 +2242,7 @@ function au(e, t, r, n, o) {
2242
2242
  for (var l = t._reactName, i = []; r !== null && r !== n; ) {
2243
2243
  var a = r, s = a.alternate, u = a.stateNode;
2244
2244
  if (s !== null && s === n) break;
2245
- a.tag === 5 && u !== null && (a = u, o ? (s = In(r, l), s != null && i.unshift(Un(r, s, a))) : o || (s = In(r, l), s != null && i.push(Un(r, s, a)))), r = r.return;
2245
+ a.tag === 5 && u !== null && (a = u, o ? (s = An(r, l), s != null && i.unshift(Un(r, s, a))) : o || (s = An(r, l), s != null && i.push(Un(r, s, a)))), r = r.return;
2246
2246
  }
2247
2247
  i.length !== 0 && e.push({ event: t, listeners: i });
2248
2248
  }
@@ -2400,7 +2400,7 @@ function tr() {
2400
2400
  }
2401
2401
  vt = null, El = !1;
2402
2402
  } catch (o) {
2403
- throw vt !== null && (vt = vt.slice(e + 1)), ed(Aa, tr), o;
2403
+ throw vt !== null && (vt = vt.slice(e + 1)), ed(Ia, tr), o;
2404
2404
  } finally {
2405
2405
  H = t, ni = !1;
2406
2406
  }
@@ -2567,7 +2567,7 @@ function Nd(e) {
2567
2567
  }
2568
2568
  function s(f, _, h, y) {
2569
2569
  var w = h.type;
2570
- return w === Cr ? c(f, _, h.props.children, y, h.key) : _ !== null && (_.elementType === w || typeof w == "object" && w !== null && w.$$typeof === It && mu(w) === _.type) ? (y = o(_, h.props), y.ref = dn(f, _, h), y.return = f, y) : (y = Do(h.type, h.key, h.props, null, f.mode, y), y.ref = dn(f, _, h), y.return = f, y);
2570
+ return w === Cr ? c(f, _, h.props.children, y, h.key) : _ !== null && (_.elementType === w || typeof w == "object" && w !== null && w.$$typeof === At && mu(w) === _.type) ? (y = o(_, h.props), y.ref = dn(f, _, h), y.return = f, y) : (y = Do(h.type, h.key, h.props, null, f.mode, y), y.ref = dn(f, _, h), y.return = f, y);
2571
2571
  }
2572
2572
  function u(f, _, h, y) {
2573
2573
  return _ === null || _.tag !== 4 || _.stateNode.containerInfo !== h.containerInfo || _.stateNode.implementation !== h.implementation ? (_ = di(h, f.mode, y), _.return = f, _) : (_ = o(_, h.children || []), _.return = f, _);
@@ -2583,7 +2583,7 @@ function Nd(e) {
2583
2583
  return h = Do(_.type, _.key, _.props, null, f.mode, h), h.ref = dn(f, null, _), h.return = f, h;
2584
2584
  case kr:
2585
2585
  return _ = di(_, f.mode, h), _.return = f, _;
2586
- case It:
2586
+ case At:
2587
2587
  var y = _._init;
2588
2588
  return p(f, y(_._payload), h);
2589
2589
  }
@@ -2601,7 +2601,7 @@ function Nd(e) {
2601
2601
  return h.key === w ? s(f, _, h, y) : null;
2602
2602
  case kr:
2603
2603
  return h.key === w ? u(f, _, h, y) : null;
2604
- case It:
2604
+ case At:
2605
2605
  return w = h._init, d(
2606
2606
  f,
2607
2607
  _,
@@ -2622,7 +2622,7 @@ function Nd(e) {
2622
2622
  return f = f.get(y.key === null ? h : y.key) || null, s(_, f, y, w);
2623
2623
  case kr:
2624
2624
  return f = f.get(y.key === null ? h : y.key) || null, u(_, f, y, w);
2625
- case It:
2625
+ case At:
2626
2626
  var k = y._init;
2627
2627
  return g(f, _, h, k(y._payload), w);
2628
2628
  }
@@ -2689,7 +2689,7 @@ function Nd(e) {
2689
2689
  r(f, k.sibling), _ = o(k, h.props.children), _.return = f, f = _;
2690
2690
  break e;
2691
2691
  }
2692
- } else if (k.elementType === w || typeof w == "object" && w !== null && w.$$typeof === It && mu(w) === k.type) {
2692
+ } else if (k.elementType === w || typeof w == "object" && w !== null && w.$$typeof === At && mu(w) === k.type) {
2693
2693
  r(f, k.sibling), _ = o(k, h.props), _.ref = dn(f, k, h), _.return = f, f = _;
2694
2694
  break e;
2695
2695
  }
@@ -2717,7 +2717,7 @@ function Nd(e) {
2717
2717
  _ = di(h, f.mode, y), _.return = f, f = _;
2718
2718
  }
2719
2719
  return i(f);
2720
- case It:
2720
+ case At:
2721
2721
  return k = h._init, x(f, _, k(h._payload), y);
2722
2722
  }
2723
2723
  if (yn(h)) return m(f, _, h, y);
@@ -2768,11 +2768,11 @@ function St(e, t) {
2768
2768
  for (r !== null && (r.lanes |= t), r = e, e = e.return; e !== null; ) e.childLanes |= t, r = e.alternate, r !== null && (r.childLanes |= t), r = e, e = e.return;
2769
2769
  return r.tag === 3 ? r.stateNode : null;
2770
2770
  }
2771
- var At = !1;
2771
+ var It = !1;
2772
2772
  function Za(e) {
2773
2773
  e.updateQueue = { baseState: e.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null };
2774
2774
  }
2775
- function Id(e, t) {
2775
+ function Ad(e, t) {
2776
2776
  e = e.updateQueue, t.updateQueue === e && (t.updateQueue = { baseState: e.baseState, firstBaseUpdate: e.firstBaseUpdate, lastBaseUpdate: e.lastBaseUpdate, shared: e.shared, effects: e.effects });
2777
2777
  }
2778
2778
  function wt(e, t) {
@@ -2811,7 +2811,7 @@ function hu(e, t) {
2811
2811
  }
2812
2812
  function ol(e, t, r, n) {
2813
2813
  var o = e.updateQueue;
2814
- At = !1;
2814
+ It = !1;
2815
2815
  var l = o.firstBaseUpdate, i = o.lastBaseUpdate, a = o.shared.pending;
2816
2816
  if (a !== null) {
2817
2817
  o.shared.pending = null;
@@ -2851,7 +2851,7 @@ function ol(e, t, r, n) {
2851
2851
  p = ne({}, p, d);
2852
2852
  break e;
2853
2853
  case 2:
2854
- At = !0;
2854
+ It = !0;
2855
2855
  }
2856
2856
  }
2857
2857
  a.callback !== null && a.lane !== 0 && (e.flags |= 64, d = o.effects, d === null ? o.effects = [a] : d.push(a));
@@ -2888,19 +2888,19 @@ function es(e, t) {
2888
2888
  switch (K(Qn, t), K(Vn, e), K(ft, to), e = t.nodeType, e) {
2889
2889
  case 9:
2890
2890
  case 11:
2891
- t = (t = t.documentElement) ? t.namespaceURI : Ii(null, "");
2891
+ t = (t = t.documentElement) ? t.namespaceURI : Ai(null, "");
2892
2892
  break;
2893
2893
  default:
2894
- e = e === 8 ? t.parentNode : t, t = e.namespaceURI || null, e = e.tagName, t = Ii(t, e);
2894
+ e = e === 8 ? t.parentNode : t, t = e.namespaceURI || null, e = e.tagName, t = Ai(t, e);
2895
2895
  }
2896
2896
  J(ft), K(ft, t);
2897
2897
  }
2898
2898
  function Hr() {
2899
2899
  J(ft), J(Vn), J(Qn);
2900
2900
  }
2901
- function Ad(e) {
2901
+ function Id(e) {
2902
2902
  ur(Qn.current);
2903
- var t = ur(ft.current), r = Ii(t, e.type);
2903
+ var t = ur(ft.current), r = Ai(t, e.type);
2904
2904
  t !== r && (K(Vn, e), K(ft, r));
2905
2905
  }
2906
2906
  function ts(e) {
@@ -3076,7 +3076,7 @@ function Kn(e, t, r, n) {
3076
3076
  function Vd() {
3077
3077
  return Je().memoizedState;
3078
3078
  }
3079
- function Io(e, t, r, n) {
3079
+ function Ao(e, t, r, n) {
3080
3080
  var o = dt();
3081
3081
  re.flags |= e, o.memoizedState = Kn(1 | t, r, void 0, n === void 0 ? null : n);
3082
3082
  }
@@ -3094,7 +3094,7 @@ function zl(e, t, r, n) {
3094
3094
  re.flags |= e, o.memoizedState = Kn(1 | t, r, l, n);
3095
3095
  }
3096
3096
  function vu(e, t) {
3097
- return Io(8390656, 8, e, t);
3097
+ return Ao(8390656, 8, e, t);
3098
3098
  }
3099
3099
  function is(e, t) {
3100
3100
  return zl(2048, 8, e, t);
@@ -3191,16 +3191,16 @@ function r_(e, t, r) {
3191
3191
  var al = { readContext: Ye, useCallback: ve, useContext: ve, useEffect: ve, useImperativeHandle: ve, useInsertionEffect: ve, useLayoutEffect: ve, useMemo: ve, useReducer: ve, useRef: ve, useState: ve, useDebugValue: ve, useDeferredValue: ve, useTransition: ve, useMutableSource: ve, useSyncExternalStore: ve, useId: ve, unstable_isNewReconciler: !1 }, hm = { readContext: Ye, useCallback: function(e, t) {
3192
3192
  return dt().memoizedState = [e, t === void 0 ? null : t], e;
3193
3193
  }, useContext: Ye, useEffect: vu, useImperativeHandle: function(e, t, r) {
3194
- return r = r != null ? r.concat([e]) : null, Io(
3194
+ return r = r != null ? r.concat([e]) : null, Ao(
3195
3195
  4194308,
3196
3196
  4,
3197
3197
  Xd.bind(null, t, e),
3198
3198
  r
3199
3199
  );
3200
3200
  }, useLayoutEffect: function(e, t) {
3201
- return Io(4194308, 4, e, t);
3201
+ return Ao(4194308, 4, e, t);
3202
3202
  }, useInsertionEffect: function(e, t) {
3203
- return Io(4, 2, e, t);
3203
+ return Ao(4, 2, e, t);
3204
3204
  }, useMemo: function(e, t) {
3205
3205
  var r = dt();
3206
3206
  return t = t === void 0 ? null : t, e = e(), r.memoizedState = [e, t], e;
@@ -3441,22 +3441,22 @@ function zu(e, t, r, n, o) {
3441
3441
  var l = !0;
3442
3442
  Zo(t);
3443
3443
  } else l = !1;
3444
- if (Dr(t, o), t.stateNode === null) Ao(e, t), n_(t, r, n), oa(t, r, n, o), n = !0;
3444
+ if (Dr(t, o), t.stateNode === null) Io(e, t), n_(t, r, n), oa(t, r, n, o), n = !0;
3445
3445
  else if (e === null) {
3446
3446
  var i = t.stateNode, a = t.memoizedProps;
3447
3447
  i.props = a;
3448
3448
  var s = i.context, u = r.contextType;
3449
3449
  typeof u == "object" && u !== null ? u = Ye(u) : (u = Re(r) ? pr : we.current, u = Gr(t, u));
3450
3450
  var c = r.getDerivedStateFromProps, p = typeof c == "function" || typeof i.getSnapshotBeforeUpdate == "function";
3451
- p || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (a !== n || s !== u) && xu(t, i, n, u), At = !1;
3451
+ p || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (a !== n || s !== u) && xu(t, i, n, u), It = !1;
3452
3452
  var d = t.memoizedState;
3453
- i.state = d, ol(t, n, i, o), s = t.memoizedState, a !== n || d !== s || Ne.current || At ? (typeof c == "function" && (na(t, r, c, n), s = t.memoizedState), (a = At || yu(t, r, a, n, d, s, u)) ? (p || typeof i.UNSAFE_componentWillMount != "function" && typeof i.componentWillMount != "function" || (typeof i.componentWillMount == "function" && i.componentWillMount(), typeof i.UNSAFE_componentWillMount == "function" && i.UNSAFE_componentWillMount()), typeof i.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof i.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = n, t.memoizedState = s), i.props = n, i.state = s, i.context = u, n = a) : (typeof i.componentDidMount == "function" && (t.flags |= 4194308), n = !1);
3453
+ i.state = d, ol(t, n, i, o), s = t.memoizedState, a !== n || d !== s || Ne.current || It ? (typeof c == "function" && (na(t, r, c, n), s = t.memoizedState), (a = It || yu(t, r, a, n, d, s, u)) ? (p || typeof i.UNSAFE_componentWillMount != "function" && typeof i.componentWillMount != "function" || (typeof i.componentWillMount == "function" && i.componentWillMount(), typeof i.UNSAFE_componentWillMount == "function" && i.UNSAFE_componentWillMount()), typeof i.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof i.componentDidMount == "function" && (t.flags |= 4194308), t.memoizedProps = n, t.memoizedState = s), i.props = n, i.state = s, i.context = u, n = a) : (typeof i.componentDidMount == "function" && (t.flags |= 4194308), n = !1);
3454
3454
  } else {
3455
- i = t.stateNode, Id(e, t), a = t.memoizedProps, u = t.type === t.elementType ? a : rt(t.type, a), i.props = u, p = t.pendingProps, d = i.context, s = r.contextType, typeof s == "object" && s !== null ? s = Ye(s) : (s = Re(r) ? pr : we.current, s = Gr(t, s));
3455
+ i = t.stateNode, Ad(e, t), a = t.memoizedProps, u = t.type === t.elementType ? a : rt(t.type, a), i.props = u, p = t.pendingProps, d = i.context, s = r.contextType, typeof s == "object" && s !== null ? s = Ye(s) : (s = Re(r) ? pr : we.current, s = Gr(t, s));
3456
3456
  var g = r.getDerivedStateFromProps;
3457
- (c = typeof g == "function" || typeof i.getSnapshotBeforeUpdate == "function") || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (a !== p || d !== s) && xu(t, i, n, s), At = !1, d = t.memoizedState, i.state = d, ol(t, n, i, o);
3457
+ (c = typeof g == "function" || typeof i.getSnapshotBeforeUpdate == "function") || typeof i.UNSAFE_componentWillReceiveProps != "function" && typeof i.componentWillReceiveProps != "function" || (a !== p || d !== s) && xu(t, i, n, s), It = !1, d = t.memoizedState, i.state = d, ol(t, n, i, o);
3458
3458
  var m = t.memoizedState;
3459
- a !== p || d !== m || Ne.current || At ? (typeof g == "function" && (na(t, r, g, n), m = t.memoizedState), (u = At || yu(t, r, u, n, d, m, s) || !1) ? (c || typeof i.UNSAFE_componentWillUpdate != "function" && typeof i.componentWillUpdate != "function" || (typeof i.componentWillUpdate == "function" && i.componentWillUpdate(n, m, s), typeof i.UNSAFE_componentWillUpdate == "function" && i.UNSAFE_componentWillUpdate(n, m, s)), typeof i.componentDidUpdate == "function" && (t.flags |= 4), typeof i.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof i.componentDidUpdate != "function" || a === e.memoizedProps && d === e.memoizedState || (t.flags |= 4), typeof i.getSnapshotBeforeUpdate != "function" || a === e.memoizedProps && d === e.memoizedState || (t.flags |= 1024), t.memoizedProps = n, t.memoizedState = m), i.props = n, i.state = m, i.context = s, n = u) : (typeof i.componentDidUpdate != "function" || a === e.memoizedProps && d === e.memoizedState || (t.flags |= 4), typeof i.getSnapshotBeforeUpdate != "function" || a === e.memoizedProps && d === e.memoizedState || (t.flags |= 1024), n = !1);
3459
+ a !== p || d !== m || Ne.current || It ? (typeof g == "function" && (na(t, r, g, n), m = t.memoizedState), (u = It || yu(t, r, u, n, d, m, s) || !1) ? (c || typeof i.UNSAFE_componentWillUpdate != "function" && typeof i.componentWillUpdate != "function" || (typeof i.componentWillUpdate == "function" && i.componentWillUpdate(n, m, s), typeof i.UNSAFE_componentWillUpdate == "function" && i.UNSAFE_componentWillUpdate(n, m, s)), typeof i.componentDidUpdate == "function" && (t.flags |= 4), typeof i.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof i.componentDidUpdate != "function" || a === e.memoizedProps && d === e.memoizedState || (t.flags |= 4), typeof i.getSnapshotBeforeUpdate != "function" || a === e.memoizedProps && d === e.memoizedState || (t.flags |= 1024), t.memoizedProps = n, t.memoizedState = m), i.props = n, i.state = m, i.context = s, n = u) : (typeof i.componentDidUpdate != "function" || a === e.memoizedProps && d === e.memoizedState || (t.flags |= 4), typeof i.getSnapshotBeforeUpdate != "function" || a === e.memoizedProps && d === e.memoizedState || (t.flags |= 1024), n = !1);
3460
3460
  }
3461
3461
  return aa(e, t, r, n, l, o);
3462
3462
  }
@@ -3602,7 +3602,7 @@ function d_(e, t, r) {
3602
3602
  }
3603
3603
  return t.child;
3604
3604
  }
3605
- function Ao(e, t) {
3605
+ function Io(e, t) {
3606
3606
  !(t.mode & 1) && e !== null && (e.alternate = null, t.alternate = null, t.flags |= 2);
3607
3607
  }
3608
3608
  function Et(e, t, r) {
@@ -3620,7 +3620,7 @@ function wm(e, t, r) {
3620
3620
  u_(t), Vr();
3621
3621
  break;
3622
3622
  case 5:
3623
- Ad(t);
3623
+ Id(t);
3624
3624
  break;
3625
3625
  case 1:
3626
3626
  Re(t.type) && Zo(t);
@@ -3686,7 +3686,7 @@ p_ = function(e, t, r, n) {
3686
3686
  default:
3687
3687
  typeof o.onClick != "function" && typeof n.onClick == "function" && (e.onclick = Yo);
3688
3688
  }
3689
- Ai(r, n);
3689
+ Ii(r, n);
3690
3690
  var i;
3691
3691
  r = null;
3692
3692
  for (u in o) if (!n.hasOwnProperty(u) && o.hasOwnProperty(u) && o[u] != null) if (u === "style") {
@@ -3797,7 +3797,7 @@ function km(e, t, r) {
3797
3797
  case "textarea":
3798
3798
  Ds(n, l), Y("invalid", n);
3799
3799
  }
3800
- Ai(r, l), o = null;
3800
+ Ii(r, l), o = null;
3801
3801
  for (var i in l) if (l.hasOwnProperty(i)) {
3802
3802
  var a = l[i];
3803
3803
  i === "children" ? typeof a == "string" ? n.textContent !== a && (l.suppressHydrationWarning !== !0 && ho(n.textContent, a, e), o = ["children", a]) : typeof a == "number" && n.textContent !== "" + a && (l.suppressHydrationWarning !== !0 && ho(
@@ -3866,7 +3866,7 @@ function km(e, t, r) {
3866
3866
  default:
3867
3867
  o = n;
3868
3868
  }
3869
- Ai(r, o), a = o;
3869
+ Ii(r, o), a = o;
3870
3870
  for (l in a) if (a.hasOwnProperty(l)) {
3871
3871
  var s = a[l];
3872
3872
  l === "style" ? Vc(e, s) : l === "dangerouslySetInnerHTML" ? (s = s ? s.__html : void 0, s != null && Uc(e, s)) : l === "children" ? typeof s == "string" ? (r !== "textarea" || s !== "") && Ln(e, s) : typeof s == "number" && Ln(e, "" + s) : l !== "suppressContentEditableWarning" && l !== "suppressHydrationWarning" && l !== "autoFocus" && (Rn.hasOwnProperty(l) ? s != null && l === "onScroll" && Y("scroll", e) : s != null && Ma(e, l, s, i));
@@ -3882,7 +3882,7 @@ function km(e, t, r) {
3882
3882
  n.value != null && e.setAttribute("value", "" + qt(n.value));
3883
3883
  break;
3884
3884
  case "select":
3885
- e.multiple = !!n.multiple, l = n.value, l != null ? Ir(e, !!n.multiple, l, !1) : n.defaultValue != null && Ir(
3885
+ e.multiple = !!n.multiple, l = n.value, l != null ? Ar(e, !!n.multiple, l, !1) : n.defaultValue != null && Ar(
3886
3886
  e,
3887
3887
  !!n.multiple,
3888
3888
  n.defaultValue,
@@ -4310,12 +4310,12 @@ function b_(e, t) {
4310
4310
  var d = o._wrapperState.wasMultiple;
4311
4311
  o._wrapperState.wasMultiple = !!l.multiple;
4312
4312
  var g = l.value;
4313
- g != null ? Ir(o, !!l.multiple, g, !1) : d !== !!l.multiple && (l.defaultValue != null ? Ir(
4313
+ g != null ? Ar(o, !!l.multiple, g, !1) : d !== !!l.multiple && (l.defaultValue != null ? Ar(
4314
4314
  o,
4315
4315
  !!l.multiple,
4316
4316
  l.defaultValue,
4317
4317
  !0
4318
- ) : Ir(o, !!l.multiple, l.multiple ? [] : "", !1));
4318
+ ) : Ar(o, !!l.multiple, l.multiple ? [] : "", !1));
4319
4319
  }
4320
4320
  o[Gn] = l;
4321
4321
  } catch (b) {
@@ -4663,13 +4663,13 @@ function Le(e, t) {
4663
4663
  var n = Ho(e, e === de ? he : 0);
4664
4664
  if (n === 0) r !== null && Gs(r), e.callbackNode = null, e.callbackPriority = 0;
4665
4665
  else if (t = n & -n, e.callbackPriority !== t) {
4666
- if (r != null && Gs(r), t === 1) e.tag === 0 ? cm(Iu.bind(null, e)) : Pd(Iu.bind(null, e)), im(function() {
4666
+ if (r != null && Gs(r), t === 1) e.tag === 0 ? cm(Au.bind(null, e)) : Pd(Au.bind(null, e)), im(function() {
4667
4667
  !(V & 6) && tr();
4668
4668
  }), r = null;
4669
4669
  else {
4670
4670
  switch (od(n)) {
4671
4671
  case 1:
4672
- r = Aa;
4672
+ r = Ia;
4673
4673
  break;
4674
4674
  case 4:
4675
4675
  r = td;
@@ -4796,7 +4796,7 @@ function Bt(e, t) {
4796
4796
  e[r] = -1, t &= ~n;
4797
4797
  }
4798
4798
  }
4799
- function Iu(e) {
4799
+ function Au(e) {
4800
4800
  if (V & 6) throw Error(C(327));
4801
4801
  $r();
4802
4802
  var t = Ho(e, 0);
@@ -5158,14 +5158,14 @@ function $r() {
5158
5158
  }
5159
5159
  return !1;
5160
5160
  }
5161
- function Au(e, t, r) {
5161
+ function Iu(e, t, r) {
5162
5162
  t = Xr(r, t), t = o_(e, t, 1), e = Qt(e, t, 1), t = Se(), e !== null && (Jn(e, 1, t), Le(e, t));
5163
5163
  }
5164
5164
  function oe(e, t, r) {
5165
- if (e.tag === 3) Au(e, e, r);
5165
+ if (e.tag === 3) Iu(e, e, r);
5166
5166
  else for (; t !== null; ) {
5167
5167
  if (t.tag === 3) {
5168
- Au(t, e, r);
5168
+ Iu(t, e, r);
5169
5169
  break;
5170
5170
  } else if (t.tag === 1) {
5171
5171
  var n = t.stateNode;
@@ -5216,7 +5216,7 @@ E_ = function(e, t, r) {
5216
5216
  switch (t.lanes = 0, t.tag) {
5217
5217
  case 2:
5218
5218
  var n = t.type;
5219
- Ao(e, t), e = t.pendingProps;
5219
+ Io(e, t), e = t.pendingProps;
5220
5220
  var o = Gr(t, we.current);
5221
5221
  Dr(t, r), o = os(null, t, n, e, o, r);
5222
5222
  var l = ls();
@@ -5224,7 +5224,7 @@ E_ = function(e, t, r) {
5224
5224
  case 16:
5225
5225
  n = t.elementType;
5226
5226
  e: {
5227
- switch (Ao(e, t), e = t.pendingProps, o = n._init, n = o(n._payload), t.type = n, o = t.tag = Am(n), e = rt(n, e), o) {
5227
+ switch (Io(e, t), e = t.pendingProps, o = n._init, n = o(n._payload), t.type = n, o = t.tag = Im(n), e = rt(n, e), o) {
5228
5228
  case 0:
5229
5229
  t = ia(null, t, n, e, r);
5230
5230
  break e;
@@ -5252,7 +5252,7 @@ E_ = function(e, t, r) {
5252
5252
  case 3:
5253
5253
  e: {
5254
5254
  if (u_(t), e === null) throw Error(C(387));
5255
- n = t.pendingProps, l = t.memoizedState, o = l.element, Id(e, t), ol(t, n, null, r);
5255
+ n = t.pendingProps, l = t.memoizedState, o = l.element, Ad(e, t), ol(t, n, null, r);
5256
5256
  var i = t.memoizedState;
5257
5257
  if (n = i.element, l.isDehydrated) if (l = { element: n, isDehydrated: !1, cache: i.cache, pendingSuspenseBoundaries: i.pendingSuspenseBoundaries, transitions: i.transitions }, t.updateQueue.baseState = l, t.memoizedState = l, t.flags & 256) {
5258
5258
  o = Xr(Error(C(423)), t), t = Tu(e, t, n, r, o);
@@ -5272,7 +5272,7 @@ E_ = function(e, t, r) {
5272
5272
  }
5273
5273
  return t;
5274
5274
  case 5:
5275
- return Ad(t), e === null && ta(t), n = t.type, o = t.pendingProps, l = e !== null ? e.memoizedProps : null, i = o.children, qi(n, o) ? i = null : l !== null && qi(n, l) && (t.flags |= 32), s_(e, t), Ce(e, t, i, r), t.child;
5275
+ return Id(t), e === null && ta(t), n = t.type, o = t.pendingProps, l = e !== null ? e.memoizedProps : null, i = o.children, qi(n, o) ? i = null : l !== null && qi(n, l) && (t.flags |= 32), s_(e, t), Ce(e, t, i, r), t.child;
5276
5276
  case 6:
5277
5277
  return e === null && ta(t), null;
5278
5278
  case 13:
@@ -5347,7 +5347,7 @@ E_ = function(e, t, r) {
5347
5347
  case 15:
5348
5348
  return i_(e, t, t.type, t.pendingProps, r);
5349
5349
  case 17:
5350
- return n = t.type, o = t.pendingProps, o = t.elementType === n ? o : rt(n, o), Ao(e, t), t.tag = 1, Re(n) ? (e = !0, Zo(t)) : e = !1, Dr(t, r), n_(t, n, o), oa(t, n, o, r), aa(null, t, n, !0, e, r);
5350
+ return n = t.type, o = t.pendingProps, o = t.elementType === n ? o : rt(n, o), Io(e, t), t.tag = 1, Re(n) ? (e = !0, Zo(t)) : e = !1, Dr(t, r), n_(t, n, o), oa(t, n, o, r), aa(null, t, n, !0, e, r);
5351
5351
  case 19:
5352
5352
  return d_(e, t, r);
5353
5353
  case 22:
@@ -5358,16 +5358,16 @@ E_ = function(e, t, r) {
5358
5358
  function z_(e, t) {
5359
5359
  return ed(e, t);
5360
5360
  }
5361
- function Im(e, t, r, n) {
5361
+ function Am(e, t, r, n) {
5362
5362
  this.tag = e, this.key = r, this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null, this.index = 0, this.ref = null, this.pendingProps = t, this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null, this.mode = n, this.subtreeFlags = this.flags = 0, this.deletions = null, this.childLanes = this.lanes = 0, this.alternate = null;
5363
5363
  }
5364
5364
  function Xe(e, t, r, n) {
5365
- return new Im(e, t, r, n);
5365
+ return new Am(e, t, r, n);
5366
5366
  }
5367
5367
  function ms(e) {
5368
5368
  return e = e.prototype, !(!e || !e.isReactComponent);
5369
5369
  }
5370
- function Am(e) {
5370
+ function Im(e) {
5371
5371
  if (typeof e == "function") return ms(e) ? 1 : 0;
5372
5372
  if (e != null) {
5373
5373
  if (e = e.$$typeof, e === Ra) return 11;
@@ -5395,14 +5395,14 @@ function Do(e, t, r, n, o, l) {
5395
5395
  return e = Xe(13, r, t, o), e.elementType = Pi, e.lanes = l, e;
5396
5396
  case Fi:
5397
5397
  return e = Xe(19, r, t, o), e.elementType = Fi, e.lanes = l, e;
5398
- case Ac:
5398
+ case Ic:
5399
5399
  return jl(r, o, l, t);
5400
5400
  default:
5401
5401
  if (typeof e == "object" && e !== null) switch (e.$$typeof) {
5402
5402
  case Lc:
5403
5403
  i = 10;
5404
5404
  break e;
5405
- case Ic:
5405
+ case Ac:
5406
5406
  i = 9;
5407
5407
  break e;
5408
5408
  case Ra:
@@ -5411,7 +5411,7 @@ function Do(e, t, r, n, o, l) {
5411
5411
  case La:
5412
5412
  i = 14;
5413
5413
  break e;
5414
- case It:
5414
+ case At:
5415
5415
  i = 16, n = null;
5416
5416
  break e;
5417
5417
  }
@@ -5423,7 +5423,7 @@ function _r(e, t, r, n) {
5423
5423
  return e = Xe(7, e, n, t), e.lanes = r, e;
5424
5424
  }
5425
5425
  function jl(e, t, r, n) {
5426
- return e = Xe(22, e, n, t), e.elementType = Ac, e.lanes = r, e.stateNode = { isHidden: !1 }, e;
5426
+ return e = Xe(22, e, n, t), e.elementType = Ic, e.lanes = r, e.stateNode = { isHidden: !1 }, e;
5427
5427
  }
5428
5428
  function ci(e, t, r) {
5429
5429
  return e = Xe(6, e, null, t), e.lanes = r, e;
@@ -5645,7 +5645,7 @@ Di = function(e, t, r) {
5645
5645
  $c(e, r);
5646
5646
  break;
5647
5647
  case "select":
5648
- t = r.value, t != null && Ir(e, !!r.multiple, t, !1);
5648
+ t = r.value, t != null && Ar(e, !!r.multiple, t, !1);
5649
5649
  }
5650
5650
  };
5651
5651
  Xc = _s;
@@ -5982,14 +5982,14 @@ const Te = async (e, t = "Launch failed") => {
5982
5982
  body: JSON.stringify({ planId: e })
5983
5983
  });
5984
5984
  await Te(t);
5985
- }, Ih = async (e) => {
5985
+ }, Ah = async (e) => {
5986
5986
  const t = await G(N("/api/agent/launch-fix-review"), {
5987
5987
  method: "POST",
5988
5988
  headers: { "Content-Type": "application/json" },
5989
5989
  body: JSON.stringify({ planId: e })
5990
5990
  });
5991
5991
  await Te(t);
5992
- }, Ah = async (e) => {
5992
+ }, Ih = async (e) => {
5993
5993
  const t = await G(N("/api/agent/launch-pr-review"), {
5994
5994
  method: "POST",
5995
5995
  headers: { "Content-Type": "application/json" },
@@ -6048,7 +6048,7 @@ async function yr(e, t) {
6048
6048
  const r = await e.json().catch(() => ({ error: t }));
6049
6049
  throw r.kind ? Object.assign(new Error(r.error), { kind: r.kind }) : new Error(r.error);
6050
6050
  }
6051
- const I_ = async () => {
6051
+ const A_ = async () => {
6052
6052
  const e = await G(N("/api/git/status"), {
6053
6053
  signal: AbortSignal.timeout(en)
6054
6054
  });
@@ -6095,14 +6095,14 @@ const I_ = async () => {
6095
6095
  signal: AbortSignal.timeout(en)
6096
6096
  });
6097
6097
  await yr(e, "Pull failed");
6098
- }, A_ = async () => {
6098
+ }, I_ = async () => {
6099
6099
  const e = await fetch(N("/api/capabilities"));
6100
6100
  if (!e.ok) return null;
6101
6101
  const t = await e.json();
6102
6102
  return { capabilities: t.capabilities, version: t.version ?? null };
6103
6103
  }, Yh = async () => {
6104
6104
  var e;
6105
- return ((e = await A_()) == null ? void 0 : e.capabilities) ?? null;
6105
+ return ((e = await I_()) == null ? void 0 : e.capabilities) ?? null;
6106
6106
  }, O_ = async () => {
6107
6107
  const e = await fetch(N("/api/agent/auth-status"));
6108
6108
  return e.ok ? await e.json() : null;
@@ -6110,31 +6110,31 @@ const I_ = async () => {
6110
6110
  function Zh() {
6111
6111
  const [e, t] = S.useState(null), [r, n] = S.useState(0), [o, l] = S.useState(0), [i, a] = S.useState(null), [s, u] = S.useState(!1), [c, p] = S.useState(void 0), [d, g] = S.useState(null), [m, b] = S.useState(!1), [x, f] = S.useState(0), [_, h] = S.useState(!1), [y, w] = S.useState(null), [k, E] = S.useState(!1), z = S.useRef([]), M = S.useRef(null), F = S.useRef(!1), O = S.useCallback(async () => {
6112
6112
  try {
6113
- const { branch: T, entries: I, ahead: Q, branchHygiene: ee } = await I_();
6114
- z.current = I.map((Ze) => Ze.path), t(T), n(Q), l(I.length), a(ee);
6113
+ const { branch: T, entries: A, ahead: Q, branchHygiene: ee } = await A_();
6114
+ z.current = A.map((Ze) => Ze.path), t(T), n(Q), l(A.length), a(ee);
6115
6115
  } catch {
6116
6116
  }
6117
6117
  }, []), L = S.useCallback(async () => {
6118
6118
  var T;
6119
6119
  try {
6120
- const I = await L_(), Q = I.find((ee) => Jh.includes(ee.status));
6121
- u(Q !== void 0), p(Q == null ? void 0 : Q.status), g(((T = I.find((ee) => ee.rateLimit)) == null ? void 0 : T.rateLimit) ?? null);
6120
+ const A = await L_(), Q = A.find((ee) => Jh.includes(ee.status));
6121
+ u(Q !== void 0), p(Q == null ? void 0 : Q.status), g(((T = A.find((ee) => ee.rateLimit)) == null ? void 0 : T.rateLimit) ?? null);
6122
6122
  } catch {
6123
6123
  }
6124
6124
  }, []);
6125
6125
  S.useEffect(() => {
6126
6126
  O(), L(), Yh().then(
6127
- (T) => f((T == null ? void 0 : T.filter((I) => I.status !== "ok").length) ?? 0)
6127
+ (T) => f((T == null ? void 0 : T.filter((A) => A.status !== "ok").length) ?? 0)
6128
6128
  ), O_().then((T) => b((T == null ? void 0 : T.loggedIn) === !1));
6129
6129
  }, [O, L]), S.useEffect(() => {
6130
- const T = {}, I = (ee, Ze, on) => {
6130
+ const T = {}, A = (ee, Ze, on) => {
6131
6131
  T[ee] && clearTimeout(T[ee]), T[ee] = setTimeout(Ze, on);
6132
6132
  }, Q = xs((ee) => {
6133
6133
  if (ee.type === "agent") {
6134
- I("agent", () => L(), 120);
6134
+ A("agent", () => L(), 120);
6135
6135
  return;
6136
6136
  }
6137
- ee.message === "changed" && I(
6137
+ ee.message === "changed" && A(
6138
6138
  "activity",
6139
6139
  () => {
6140
6140
  O(), L();
@@ -6147,11 +6147,11 @@ function Zh() {
6147
6147
  Q();
6148
6148
  };
6149
6149
  }, [O, L]);
6150
- const $ = S.useCallback(async (T, I) => {
6150
+ const $ = S.useCallback(async (T, A) => {
6151
6151
  if (!M.current) {
6152
6152
  M.current = T, w(T);
6153
6153
  try {
6154
- await I();
6154
+ await A();
6155
6155
  } catch {
6156
6156
  } finally {
6157
6157
  M.current = null, w(null);
@@ -6175,8 +6175,8 @@ function Zh() {
6175
6175
  const T = z.current;
6176
6176
  F.current || M.current || T.length === 0 || (F.current = !0, h(!0), (async () => {
6177
6177
  try {
6178
- const { title: I, message: Q } = await ya(T);
6179
- await va(T, I, Q || void 0), await O();
6178
+ const { title: A, message: Q } = await ya(T);
6179
+ await va(T, A, Q || void 0), await O();
6180
6180
  } catch {
6181
6181
  } finally {
6182
6182
  F.current = !1, h(!1);
@@ -6194,13 +6194,13 @@ function Zh() {
6194
6194
  E(!1);
6195
6195
  }
6196
6196
  }, []), R = S.useCallback(
6197
- async (T, I) => {
6197
+ async (T, A) => {
6198
6198
  const Q = z.current, ee = T.trim();
6199
6199
  if (F.current || M.current || Q.length === 0 || !ee)
6200
6200
  return !1;
6201
6201
  F.current = !0, h(!0);
6202
6202
  try {
6203
- return await va(Q, ee, (I == null ? void 0 : I.trim()) || void 0), await O(), !0;
6203
+ return await va(Q, ee, (A == null ? void 0 : A.trim()) || void 0), await O(), !0;
6204
6204
  } catch {
6205
6205
  return !1;
6206
6206
  } finally {
@@ -6316,11 +6316,11 @@ var d0 = $_.exports;
6316
6316
  * This source code is licensed under the MIT license found in the
6317
6317
  * LICENSE file in the root directory of this source tree.
6318
6318
  */
6319
- var Il = S, _0 = d0;
6319
+ var Al = S, _0 = d0;
6320
6320
  function p0(e, t) {
6321
6321
  return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
6322
6322
  }
6323
- var f0 = typeof Object.is == "function" ? Object.is : p0, m0 = _0.useSyncExternalStore, h0 = Il.useRef, g0 = Il.useEffect, b0 = Il.useMemo, v0 = Il.useDebugValue;
6323
+ var f0 = typeof Object.is == "function" ? Object.is : p0, m0 = _0.useSyncExternalStore, h0 = Al.useRef, g0 = Al.useEffect, b0 = Al.useMemo, v0 = Al.useDebugValue;
6324
6324
  D_.useSyncExternalStoreWithSelector = function(e, t, r, n, o) {
6325
6325
  var l = h0(null);
6326
6326
  if (l.current === null) {
@@ -6452,7 +6452,7 @@ class ks {
6452
6452
  return n;
6453
6453
  }
6454
6454
  }
6455
- function Al(e) {
6455
+ function Il(e) {
6456
6456
  const t = e[0], r = e[1];
6457
6457
  return Math.sqrt(Math.pow(t[0] - r[0], 2) + Math.pow(t[1] - r[1], 2));
6458
6458
  }
@@ -6461,7 +6461,7 @@ class C0 extends ks {
6461
6461
  let n = r.hachureGap;
6462
6462
  n < 0 && (n = 4 * r.strokeWidth), n = Math.max(n, 0.1);
6463
6463
  const o = ro(t, Object.assign({}, r, { hachureGap: n })), l = Math.PI / 180 * r.hachureAngle, i = [], a = 0.5 * n * Math.cos(l), s = 0.5 * n * Math.sin(l);
6464
- for (const [u, c] of o) Al([u, c]) && i.push([[u[0] - a, u[1] + s], [...c]], [[u[0] + a, u[1] - s], [...c]]);
6464
+ for (const [u, c] of o) Il([u, c]) && i.push([[u[0] - a, u[1] + s], [...c]], [[u[0] + a, u[1] - s], [...c]]);
6465
6465
  return { type: "fillSketch", ops: this.renderLines(i, r) };
6466
6466
  }
6467
6467
  }
@@ -6487,7 +6487,7 @@ class E0 {
6487
6487
  l < 0 && (l = r.strokeWidth / 2);
6488
6488
  const i = o / 4;
6489
6489
  for (const a of t) {
6490
- const s = Al(a), u = s / o, c = Math.ceil(u) - 1, p = s - c * o, d = (a[0][0] + a[1][0]) / 2 - o / 4, g = Math.min(a[0][1], a[1][1]);
6490
+ const s = Il(a), u = s / o, c = Math.ceil(u) - 1, p = s - c * o, d = (a[0][0] + a[1][0]) / 2 - o / 4, g = Math.min(a[0][1], a[1][1]);
6491
6491
  for (let m = 0; m < c; m++) {
6492
6492
  const b = g + p + m * o, x = d - i + 2 * Math.random() * i, f = b - i + 2 * Math.random() * i, _ = this.helper.ellipse(x, f, l, l, r);
6493
6493
  n.push(..._.ops);
@@ -6507,7 +6507,7 @@ class z0 {
6507
6507
  dashedLine(t, r) {
6508
6508
  const n = r.dashOffset < 0 ? r.hachureGap < 0 ? 4 * r.strokeWidth : r.hachureGap : r.dashOffset, o = r.dashGap < 0 ? r.hachureGap < 0 ? 4 * r.strokeWidth : r.hachureGap : r.dashGap, l = [];
6509
6509
  return t.forEach((i) => {
6510
- const a = Al(i), s = Math.floor(a / (n + o)), u = (a + o - s * (n + o)) / 2;
6510
+ const a = Il(i), s = Math.floor(a / (n + o)), u = (a + o - s * (n + o)) / 2;
6511
6511
  let c = i[0], p = i[1];
6512
6512
  c[0] > p[0] && (c = i[1], p = i[0]);
6513
6513
  const d = Math.atan((p[1] - c[1]) / (p[0] - c[0]));
@@ -6529,7 +6529,7 @@ class T0 {
6529
6529
  zigzagLines(t, r, n) {
6530
6530
  const o = [];
6531
6531
  return t.forEach((l) => {
6532
- const i = Al(l), a = Math.round(i / (2 * r));
6532
+ const i = Il(l), a = Math.round(i / (2 * r));
6533
6533
  let s = l[0], u = l[1];
6534
6534
  s[0] > u[0] && (s = l[1], u = l[0]);
6535
6535
  const c = Math.atan((u[1] - s[1]) / (u[0] - s[0]));
@@ -6743,7 +6743,7 @@ function V_(e, t, r, n, o, l, i, a, s, u) {
6743
6743
  }
6744
6744
  }
6745
6745
  const j0 = { randOffset: function(e, t) {
6746
- return A(e, t);
6746
+ return I(e, t);
6747
6747
  }, randOffsetWithRange: function(e, t, r) {
6748
6748
  return pl(e, t, r);
6749
6749
  }, ellipse: function(e, t, r, n, o) {
@@ -6788,7 +6788,7 @@ function H_(e, t, r) {
6788
6788
  const n = Math.sqrt(2 * Math.PI * Math.sqrt((Math.pow(e / 2, 2) + Math.pow(t / 2, 2)) / 2)), o = Math.ceil(Math.max(r.curveStepCount, r.curveStepCount / Math.sqrt(200) * n)), l = 2 * Math.PI / o;
6789
6789
  let i = Math.abs(e / 2), a = Math.abs(t / 2);
6790
6790
  const s = 1 - r.curveFitting;
6791
- return i += A(i * s, r), a += A(a * s, r), { increment: l, rx: i, ry: a };
6791
+ return i += I(i * s, r), a += I(a * s, r), { increment: l, rx: i, ry: a };
6792
6792
  }
6793
6793
  function xa(e, t, r, n) {
6794
6794
  const [o, l] = Hu(n.increment, e, t, n.rx, n.ry, 1, n.increment * pl(0.1, pl(0.4, 1, r), r), r);
@@ -6802,7 +6802,7 @@ function xa(e, t, r, n) {
6802
6802
  function Gu(e, t, r, n, o, l, i, a, s) {
6803
6803
  const u = e, c = t;
6804
6804
  let p = Math.abs(r / 2), d = Math.abs(n / 2);
6805
- p += A(0.01 * p, s), d += A(0.01 * d, s);
6805
+ p += I(0.01 * p, s), d += I(0.01 * d, s);
6806
6806
  let g = o, m = l;
6807
6807
  for (; g < 0; ) g += 2 * Math.PI, m += 2 * Math.PI;
6808
6808
  m - g > 2 * Math.PI && (g = 0, m = 2 * Math.PI);
@@ -6838,8 +6838,8 @@ function hi(e, t) {
6838
6838
  for (const n of e) if (n.length) {
6839
6839
  const o = t.maxRandomnessOffset || 0, l = n.length;
6840
6840
  if (l > 2) {
6841
- r.push({ op: "move", data: [n[0][0] + A(o, t), n[0][1] + A(o, t)] });
6842
- for (let i = 1; i < l; i++) r.push({ op: "lineTo", data: [n[i][0] + A(o, t), n[i][1] + A(o, t)] });
6841
+ r.push({ op: "move", data: [n[0][0] + I(o, t), n[0][1] + I(o, t)] });
6842
+ for (let i = 1; i < l; i++) r.push({ op: "lineTo", data: [n[i][0] + I(o, t), n[i][1] + I(o, t)] });
6843
6843
  }
6844
6844
  }
6845
6845
  return { type: "fillPath", ops: r };
@@ -6879,7 +6879,7 @@ function X_(e) {
6879
6879
  function pl(e, t, r, n = 1) {
6880
6880
  return r.roughness * n * (X_(r) * (t - e) + e);
6881
6881
  }
6882
- function A(e, t, r = 1) {
6882
+ function I(e, t, r = 1) {
6883
6883
  return pl(-e, e, t, r);
6884
6884
  }
6885
6885
  function Jt(e, t, r, n, o, l = !1) {
@@ -6896,15 +6896,15 @@ function wa(e, t, r, n, o, l, i) {
6896
6896
  c * c * 100 > a && (c = s / 10);
6897
6897
  const p = c / 2, d = 0.2 + 0.2 * X_(o);
6898
6898
  let g = o.bowing * o.maxRandomnessOffset * (n - t) / 200, m = o.bowing * o.maxRandomnessOffset * (e - r) / 200;
6899
- g = A(g, o, u), m = A(m, o, u);
6900
- const b = [], x = () => A(p, o, u), f = () => A(c, o, u), _ = o.preserveVertices;
6901
- return i ? b.push({ op: "move", data: [e + (_ ? 0 : x()), t + (_ ? 0 : x())] }) : b.push({ op: "move", data: [e + (_ ? 0 : A(c, o, u)), t + (_ ? 0 : A(c, o, u))] }), i ? b.push({ op: "bcurveTo", data: [g + e + (r - e) * d + x(), m + t + (n - t) * d + x(), g + e + 2 * (r - e) * d + x(), m + t + 2 * (n - t) * d + x(), r + (_ ? 0 : x()), n + (_ ? 0 : x())] }) : b.push({ op: "bcurveTo", data: [g + e + (r - e) * d + f(), m + t + (n - t) * d + f(), g + e + 2 * (r - e) * d + f(), m + t + 2 * (n - t) * d + f(), r + (_ ? 0 : f()), n + (_ ? 0 : f())] }), b;
6899
+ g = I(g, o, u), m = I(m, o, u);
6900
+ const b = [], x = () => I(p, o, u), f = () => I(c, o, u), _ = o.preserveVertices;
6901
+ return i ? b.push({ op: "move", data: [e + (_ ? 0 : x()), t + (_ ? 0 : x())] }) : b.push({ op: "move", data: [e + (_ ? 0 : I(c, o, u)), t + (_ ? 0 : I(c, o, u))] }), i ? b.push({ op: "bcurveTo", data: [g + e + (r - e) * d + x(), m + t + (n - t) * d + x(), g + e + 2 * (r - e) * d + x(), m + t + 2 * (n - t) * d + x(), r + (_ ? 0 : x()), n + (_ ? 0 : x())] }) : b.push({ op: "bcurveTo", data: [g + e + (r - e) * d + f(), m + t + (n - t) * d + f(), g + e + 2 * (r - e) * d + f(), m + t + 2 * (n - t) * d + f(), r + (_ ? 0 : f()), n + (_ ? 0 : f())] }), b;
6902
6902
  }
6903
6903
  function Co(e, t, r) {
6904
6904
  if (!e.length) return [];
6905
6905
  const n = [];
6906
- n.push([e[0][0] + A(t, r), e[0][1] + A(t, r)]), n.push([e[0][0] + A(t, r), e[0][1] + A(t, r)]);
6907
- for (let o = 1; o < e.length; o++) n.push([e[o][0] + A(t, r), e[o][1] + A(t, r)]), o === e.length - 1 && n.push([e[o][0] + A(t, r), e[o][1] + A(t, r)]);
6906
+ n.push([e[0][0] + I(t, r), e[0][1] + I(t, r)]), n.push([e[0][0] + I(t, r), e[0][1] + I(t, r)]);
6907
+ for (let o = 1; o < e.length; o++) n.push([e[o][0] + I(t, r), e[o][1] + I(t, r)]), o === e.length - 1 && n.push([e[o][0] + I(t, r), e[o][1] + I(t, r)]);
6908
6908
  return fl(n, null, r);
6909
6909
  }
6910
6910
  function fl(e, t, r) {
@@ -6929,28 +6929,28 @@ function Hu(e, t, r, n, o, l, i, a) {
6929
6929
  }
6930
6930
  u.push([t + n * Math.cos(0), r + o * Math.sin(0)]), u.push([t + n * Math.cos(e), r + o * Math.sin(e)]);
6931
6931
  } else {
6932
- const c = A(0.5, a) - Math.PI / 2;
6933
- u.push([A(l, a) + t + 0.9 * n * Math.cos(c - e), A(l, a) + r + 0.9 * o * Math.sin(c - e)]);
6932
+ const c = I(0.5, a) - Math.PI / 2;
6933
+ u.push([I(l, a) + t + 0.9 * n * Math.cos(c - e), I(l, a) + r + 0.9 * o * Math.sin(c - e)]);
6934
6934
  const p = 2 * Math.PI + c - 0.01;
6935
6935
  for (let d = c; d < p; d += e) {
6936
- const g = [A(l, a) + t + n * Math.cos(d), A(l, a) + r + o * Math.sin(d)];
6936
+ const g = [I(l, a) + t + n * Math.cos(d), I(l, a) + r + o * Math.sin(d)];
6937
6937
  s.push(g), u.push(g);
6938
6938
  }
6939
- u.push([A(l, a) + t + n * Math.cos(c + 2 * Math.PI + 0.5 * i), A(l, a) + r + o * Math.sin(c + 2 * Math.PI + 0.5 * i)]), u.push([A(l, a) + t + 0.98 * n * Math.cos(c + i), A(l, a) + r + 0.98 * o * Math.sin(c + i)]), u.push([A(l, a) + t + 0.9 * n * Math.cos(c + 0.5 * i), A(l, a) + r + 0.9 * o * Math.sin(c + 0.5 * i)]);
6939
+ u.push([I(l, a) + t + n * Math.cos(c + 2 * Math.PI + 0.5 * i), I(l, a) + r + o * Math.sin(c + 2 * Math.PI + 0.5 * i)]), u.push([I(l, a) + t + 0.98 * n * Math.cos(c + i), I(l, a) + r + 0.98 * o * Math.sin(c + i)]), u.push([I(l, a) + t + 0.9 * n * Math.cos(c + 0.5 * i), I(l, a) + r + 0.9 * o * Math.sin(c + 0.5 * i)]);
6940
6940
  }
6941
6941
  return [u, s];
6942
6942
  }
6943
6943
  function Xu(e, t, r, n, o, l, i, a, s) {
6944
- const u = l + A(0.1, s), c = [];
6945
- c.push([A(a, s) + t + 0.9 * n * Math.cos(u - e), A(a, s) + r + 0.9 * o * Math.sin(u - e)]);
6946
- for (let p = u; p <= i; p += e) c.push([A(a, s) + t + n * Math.cos(p), A(a, s) + r + o * Math.sin(p)]);
6944
+ const u = l + I(0.1, s), c = [];
6945
+ c.push([I(a, s) + t + 0.9 * n * Math.cos(u - e), I(a, s) + r + 0.9 * o * Math.sin(u - e)]);
6946
+ for (let p = u; p <= i; p += e) c.push([I(a, s) + t + n * Math.cos(p), I(a, s) + r + o * Math.sin(p)]);
6947
6947
  return c.push([t + n * Math.cos(i), r + o * Math.sin(i)]), c.push([t + n * Math.cos(i), r + o * Math.sin(i)]), fl(c, null, s);
6948
6948
  }
6949
6949
  function N0(e, t, r, n, o, l, i, a) {
6950
6950
  const s = [], u = [a.maxRandomnessOffset || 1, (a.maxRandomnessOffset || 1) + 0.3];
6951
6951
  let c = [0, 0];
6952
6952
  const p = a.disableMultiStroke ? 1 : 2, d = a.preserveVertices;
6953
- for (let g = 0; g < p; g++) g === 0 ? s.push({ op: "move", data: [i[0], i[1]] }) : s.push({ op: "move", data: [i[0] + (d ? 0 : A(u[0], a)), i[1] + (d ? 0 : A(u[0], a))] }), c = d ? [o, l] : [o + A(u[g], a), l + A(u[g], a)], s.push({ op: "bcurveTo", data: [e + A(u[g], a), t + A(u[g], a), r + A(u[g], a), n + A(u[g], a), c[0], c[1]] });
6953
+ for (let g = 0; g < p; g++) g === 0 ? s.push({ op: "move", data: [i[0], i[1]] }) : s.push({ op: "move", data: [i[0] + (d ? 0 : I(u[0], a)), i[1] + (d ? 0 : I(u[0], a))] }), c = d ? [o, l] : [o + I(u[g], a), l + I(u[g], a)], s.push({ op: "bcurveTo", data: [e + I(u[g], a), t + I(u[g], a), r + I(u[g], a), n + I(u[g], a), c[0], c[1]] });
6954
6954
  return s;
6955
6955
  }
6956
6956
  function mn(e) {
@@ -7026,7 +7026,7 @@ function gi(e, t = 0.15, r) {
7026
7026
  ka(e, 3 * l, t, n);
7027
7027
  return r && r > 0 ? ml(n, 0, n.length, r) : n;
7028
7028
  }
7029
- const Ie = "none";
7029
+ const Ae = "none";
7030
7030
  let hl = class {
7031
7031
  constructor(t) {
7032
7032
  this.defaultOptions = { maxRandomnessOffset: 2, roughness: 1, bowing: 1, stroke: "#000", strokeWidth: 1, curveTightness: 0, curveFitting: 0.95, curveStepCount: 9, fillStyle: "hachure", fillWeight: -1, hachureAngle: -41, hachureGap: -1, dashOffset: -1, dashGap: -1, zigzagOffset: -1, seed: 0, disableMultiStroke: !1, disableMultiStrokeFill: !1, preserveVertices: !1, fillShapeRoughnessGain: 0.8 }, this.config = t || {}, this.config.options && (this.defaultOptions = this._o(this.config.options));
@@ -7050,7 +7050,7 @@ let hl = class {
7050
7050
  const u = [[t, r], [t + n, r], [t + n, r + o], [t, r + o]];
7051
7051
  i.fillStyle === "solid" ? a.push(hi([u], i)) : a.push(wr([u], i));
7052
7052
  }
7053
- return i.stroke !== Ie && a.push(s), this._d("rectangle", a, i);
7053
+ return i.stroke !== Ae && a.push(s), this._d("rectangle", a, i);
7054
7054
  }
7055
7055
  ellipse(t, r, n, o, l) {
7056
7056
  const i = this._o(l), a = [], s = H_(n, o, i), u = xa(t, r, i, s);
@@ -7058,7 +7058,7 @@ let hl = class {
7058
7058
  const c = xa(t, r, i, s).opset;
7059
7059
  c.type = "fillPath", a.push(c);
7060
7060
  } else a.push(wr([u.estimatedPoints], i));
7061
- return i.stroke !== Ie && a.push(u.opset), this._d("ellipse", a, i);
7061
+ return i.stroke !== Ae && a.push(u.opset), this._d("ellipse", a, i);
7062
7062
  }
7063
7063
  circle(t, r, n, o) {
7064
7064
  const l = this.ellipse(t, r, n, n, o);
@@ -7078,7 +7078,7 @@ let hl = class {
7078
7078
  } else c.push(function(d, g, m, b, x, f, _) {
7079
7079
  const h = d, y = g;
7080
7080
  let w = Math.abs(m / 2), k = Math.abs(b / 2);
7081
- w += A(0.01 * w, _), k += A(0.01 * k, _);
7081
+ w += I(0.01 * w, _), k += I(0.01 * k, _);
7082
7082
  let E = x, z = f;
7083
7083
  for (; E < 0; ) E += 2 * Math.PI, z += 2 * Math.PI;
7084
7084
  z - E > 2 * Math.PI && (E = 0, z = 2 * Math.PI);
@@ -7086,11 +7086,11 @@ let hl = class {
7086
7086
  for (let O = E; O <= z; O += M) F.push([h + w * Math.cos(O), y + k * Math.sin(O)]);
7087
7087
  return F.push([h + w * Math.cos(z), y + k * Math.sin(z)]), F.push([h, y]), wr([F], _);
7088
7088
  }(t, r, n, o, l, i, u));
7089
- return u.stroke !== Ie && c.push(p), this._d("arc", c, u);
7089
+ return u.stroke !== Ae && c.push(p), this._d("arc", c, u);
7090
7090
  }
7091
7091
  curve(t, r) {
7092
7092
  const n = this._o(r), o = [], l = Uu(t, n);
7093
- if (n.fill && n.fill !== Ie) if (n.fillStyle === "solid") {
7093
+ if (n.fill && n.fill !== Ae) if (n.fillStyle === "solid") {
7094
7094
  const i = Uu(t, Object.assign(Object.assign({}, n), { disableMultiStroke: !0, roughness: n.roughness ? n.roughness + n.fillShapeRoughnessGain : 0 }));
7095
7095
  o.push({ type: "fillPath", ops: this._mergedShape(i.ops) });
7096
7096
  } else {
@@ -7101,17 +7101,17 @@ let hl = class {
7101
7101
  }
7102
7102
  i.length && o.push(wr([i], n));
7103
7103
  }
7104
- return n.stroke !== Ie && o.push(l), this._d("curve", o, n);
7104
+ return n.stroke !== Ae && o.push(l), this._d("curve", o, n);
7105
7105
  }
7106
7106
  polygon(t, r) {
7107
7107
  const n = this._o(r), o = [], l = $o(t, !0, n);
7108
- return n.fill && (n.fillStyle === "solid" ? o.push(hi([t], n)) : o.push(wr([t], n))), n.stroke !== Ie && o.push(l), this._d("polygon", o, n);
7108
+ return n.fill && (n.fillStyle === "solid" ? o.push(hi([t], n)) : o.push(wr([t], n))), n.stroke !== Ae && o.push(l), this._d("polygon", o, n);
7109
7109
  }
7110
7110
  path(t, r) {
7111
7111
  const n = this._o(r), o = [];
7112
7112
  if (!t) return this._d("path", o, n);
7113
7113
  t = (t || "").replace(/\n/g, " ").replace(/(-\s)/g, "-").replace("/(ss)/g", " ");
7114
- const l = n.fill && n.fill !== "transparent" && n.fill !== Ie, i = n.stroke !== Ie, a = !!(n.simplification && n.simplification < 1), s = function(c, p, d) {
7114
+ const l = n.fill && n.fill !== "transparent" && n.fill !== Ae, i = n.stroke !== Ae, a = !!(n.simplification && n.simplification < 1), s = function(c, p, d) {
7115
7115
  const g = G_(U_(Cs(c))), m = [];
7116
7116
  let b = [], x = [0, 0], f = [];
7117
7117
  const _ = () => {
@@ -7176,10 +7176,10 @@ let hl = class {
7176
7176
  let i = null;
7177
7177
  switch (l.type) {
7178
7178
  case "path":
7179
- i = { d: this.opsToPath(l), stroke: n.stroke, strokeWidth: n.strokeWidth, fill: Ie };
7179
+ i = { d: this.opsToPath(l), stroke: n.stroke, strokeWidth: n.strokeWidth, fill: Ae };
7180
7180
  break;
7181
7181
  case "fillPath":
7182
- i = { d: this.opsToPath(l), stroke: Ie, strokeWidth: 0, fill: n.fill || Ie };
7182
+ i = { d: this.opsToPath(l), stroke: Ae, strokeWidth: 0, fill: n.fill || Ae };
7183
7183
  break;
7184
7184
  case "fillSketch":
7185
7185
  i = this.fillSketch(l, n);
@@ -7190,12 +7190,12 @@ let hl = class {
7190
7190
  }
7191
7191
  fillSketch(t, r) {
7192
7192
  let n = r.fillWeight;
7193
- return n < 0 && (n = r.strokeWidth / 2), { d: this.opsToPath(t), stroke: r.fill || Ie, strokeWidth: n, fill: Ie };
7193
+ return n < 0 && (n = r.strokeWidth / 2), { d: this.opsToPath(t), stroke: r.fill || Ae, strokeWidth: n, fill: Ae };
7194
7194
  }
7195
7195
  _mergedShape(t) {
7196
7196
  return t.filter((r, n) => n === 0 || r.op !== "move");
7197
7197
  }
7198
- }, I0 = class {
7198
+ }, A0 = class {
7199
7199
  constructor(t, r) {
7200
7200
  this.canvas = t, this.ctx = this.canvas.getContext("2d"), this.gen = new hl(r);
7201
7201
  }
@@ -7280,7 +7280,7 @@ let hl = class {
7280
7280
  }
7281
7281
  };
7282
7282
  const So = "http://www.w3.org/2000/svg";
7283
- class A0 {
7283
+ class I0 {
7284
7284
  constructor(t, r) {
7285
7285
  this.svg = t, this.gen = new hl(r);
7286
7286
  }
@@ -7354,7 +7354,7 @@ class A0 {
7354
7354
  return this.draw(n);
7355
7355
  }
7356
7356
  }
7357
- var K_ = { canvas: (e, t) => new I0(e, t), svg: (e, t) => new A0(e, t), generator: (e) => new hl(e), newSeed: () => hl.newSeed() };
7357
+ var K_ = { canvas: (e, t) => new A0(e, t), svg: (e, t) => new I0(e, t), generator: (e) => new hl(e), newSeed: () => hl.newSeed() };
7358
7358
  K_.generator();
7359
7359
  const B = {
7360
7360
  bgBase: "#FDFCF8",
@@ -7630,7 +7630,7 @@ const q = (e) => {
7630
7630
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
7631
7631
  tg.test(e) && !rg.test(e)
7632
7632
  ), tp = () => !1, pg = (e) => ng.test(e), fg = (e) => og.test(e), mg = () => {
7633
- const e = q("colors"), t = q("spacing"), r = q("blur"), n = q("brightness"), o = q("borderColor"), l = q("borderRadius"), i = q("borderSpacing"), a = q("borderWidth"), s = q("contrast"), u = q("grayscale"), c = q("hueRotate"), p = q("invert"), d = q("gap"), g = q("gradientColorStops"), m = q("gradientColorStopPositions"), b = q("inset"), x = q("margin"), f = q("opacity"), _ = q("padding"), h = q("saturate"), y = q("scale"), w = q("sepia"), k = q("skew"), E = q("space"), z = q("translate"), M = () => ["auto", "contain", "none"], F = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", D, t], L = () => [D, t], $ = () => ["", mt, Pt], U = () => ["auto", Wr, D], _e = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], pe = () => ["solid", "dashed", "dotted", "double", "none"], ke = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], R = () => ["", "0", D], T = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [Wr, D];
7633
+ const e = q("colors"), t = q("spacing"), r = q("blur"), n = q("brightness"), o = q("borderColor"), l = q("borderRadius"), i = q("borderSpacing"), a = q("borderWidth"), s = q("contrast"), u = q("grayscale"), c = q("hueRotate"), p = q("invert"), d = q("gap"), g = q("gradientColorStops"), m = q("gradientColorStopPositions"), b = q("inset"), x = q("margin"), f = q("opacity"), _ = q("padding"), h = q("saturate"), y = q("scale"), w = q("sepia"), k = q("skew"), E = q("space"), z = q("translate"), M = () => ["auto", "contain", "none"], F = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", D, t], L = () => [D, t], $ = () => ["", mt, Pt], U = () => ["auto", Wr, D], _e = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], pe = () => ["solid", "dashed", "dotted", "double", "none"], ke = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], R = () => ["", "0", D], T = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], A = () => [Wr, D];
7634
7634
  return {
7635
7635
  cacheSize: 500,
7636
7636
  separator: ":",
@@ -7638,26 +7638,26 @@ const q = (e) => {
7638
7638
  colors: [gn],
7639
7639
  spacing: [mt, Pt],
7640
7640
  blur: ["none", "", Ft, D],
7641
- brightness: I(),
7641
+ brightness: A(),
7642
7642
  borderColor: [e],
7643
7643
  borderRadius: ["none", "", "full", Ft, D],
7644
7644
  borderSpacing: L(),
7645
7645
  borderWidth: $(),
7646
- contrast: I(),
7646
+ contrast: A(),
7647
7647
  grayscale: R(),
7648
- hueRotate: I(),
7648
+ hueRotate: A(),
7649
7649
  invert: R(),
7650
7650
  gap: L(),
7651
7651
  gradientColorStops: [e],
7652
7652
  gradientColorStopPositions: [lg, Pt],
7653
7653
  inset: O(),
7654
7654
  margin: O(),
7655
- opacity: I(),
7655
+ opacity: A(),
7656
7656
  padding: L(),
7657
- saturate: I(),
7658
- scale: I(),
7657
+ saturate: A(),
7658
+ scale: A(),
7659
7659
  sepia: R(),
7660
- skew: I(),
7660
+ skew: A(),
7661
7661
  space: L(),
7662
7662
  translate: L()
7663
7663
  },
@@ -9232,7 +9232,7 @@ const q = (e) => {
9232
9232
  * @see https://tailwindcss.com/docs/transition-duration
9233
9233
  */
9234
9234
  duration: [{
9235
- duration: I()
9235
+ duration: A()
9236
9236
  }],
9237
9237
  /**
9238
9238
  * Transition Timing Function
@@ -9246,7 +9246,7 @@ const q = (e) => {
9246
9246
  * @see https://tailwindcss.com/docs/transition-delay
9247
9247
  */
9248
9248
  delay: [{
9249
- delay: I()
9249
+ delay: A()
9250
9250
  }],
9251
9251
  /**
9252
9252
  * Animation
@@ -9793,7 +9793,7 @@ function no(e) {
9793
9793
  [t, e]
9794
9794
  );
9795
9795
  }
9796
- const Sg = "button-module__button___Z331g", Eg = "button-module__blobBg___QQFzf", zg = "button-module__blobFill___XwLjV", Tg = "button-module__blobRing___567UW", Pg = "button-module__isActive___FXNSJ", Fg = "button-module__primary___ppbyq", jg = "button-module__secondary___esy5L", Mg = "button-module__ghost___NisA0", Ng = "button-module__danger___Wnvuq", Rg = "button-module__chalkboard___d3Nqb", Lg = "button-module__tiny___8ZZ7A", Ig = "button-module__small___u7y8a", Ag = "button-module__medium___HBIAj", Og = "button-module__large___RPzNy", Bg = "button-module__fullWidth___H0P0F", Dg = "button-module__iconLeft___s60SZ", $g = "button-module__iconRight___75eFu", Wg = "button-module__label___pXAyM", Ge = {
9796
+ const Sg = "button-module__button___Z331g", Eg = "button-module__blobBg___QQFzf", zg = "button-module__blobFill___XwLjV", Tg = "button-module__blobRing___567UW", Pg = "button-module__isActive___FXNSJ", Fg = "button-module__primary___ppbyq", jg = "button-module__secondary___esy5L", Mg = "button-module__ghost___NisA0", Ng = "button-module__danger___Wnvuq", Rg = "button-module__chalkboard___d3Nqb", Lg = "button-module__tiny___8ZZ7A", Ag = "button-module__small___u7y8a", Ig = "button-module__medium___HBIAj", Og = "button-module__large___RPzNy", Bg = "button-module__fullWidth___H0P0F", Dg = "button-module__iconLeft___s60SZ", $g = "button-module__iconRight___75eFu", Wg = "button-module__label___pXAyM", Ge = {
9797
9797
  button: Sg,
9798
9798
  blobBg: Eg,
9799
9799
  blobFill: zg,
@@ -9805,8 +9805,8 @@ const Sg = "button-module__button___Z331g", Eg = "button-module__blobBg___QQFzf"
9805
9805
  danger: Ng,
9806
9806
  chalkboard: Rg,
9807
9807
  tiny: Lg,
9808
- small: Ig,
9809
- medium: Ag,
9808
+ small: Ag,
9809
+ medium: Ig,
9810
9810
  large: Og,
9811
9811
  fullWidth: Bg,
9812
9812
  iconLeft: Dg,
@@ -10123,7 +10123,7 @@ function o1({ children: e, surface: t = "paper", label: r, className: n }) {
10123
10123
  }
10124
10124
  );
10125
10125
  }
10126
- const l1 = "checkbox-module__wrapper___uLYMI", i1 = "checkbox-module__blobFill___mPJSR", a1 = "checkbox-module__input___Ptgt7", s1 = "checkbox-module__blobBg___bw3sn", u1 = "checkbox-module__labelLeft___-vAmH", c1 = "checkbox-module__box___yAh-r", d1 = "checkbox-module__checkmark___tTyBz", _1 = "checkbox-module__indeterminateLine___IosI-", p1 = "checkbox-module__boxWrapper___byjoS", f1 = "checkbox-module__icon___RO-yn", m1 = "checkbox-module__labelText___bAnLr", h1 = "checkbox-module__chalkboard___sv6SL", Ae = {
10126
+ const l1 = "checkbox-module__wrapper___uLYMI", i1 = "checkbox-module__blobFill___mPJSR", a1 = "checkbox-module__input___Ptgt7", s1 = "checkbox-module__blobBg___bw3sn", u1 = "checkbox-module__labelLeft___-vAmH", c1 = "checkbox-module__box___yAh-r", d1 = "checkbox-module__checkmark___tTyBz", _1 = "checkbox-module__indeterminateLine___IosI-", p1 = "checkbox-module__boxWrapper___byjoS", f1 = "checkbox-module__icon___RO-yn", m1 = "checkbox-module__labelText___bAnLr", h1 = "checkbox-module__chalkboard___sv6SL", Ie = {
10127
10127
  wrapper: l1,
10128
10128
  blobFill: i1,
10129
10129
  input: a1,
@@ -10156,14 +10156,14 @@ S.forwardRef(function({
10156
10156
  "label",
10157
10157
  {
10158
10158
  className: ge(
10159
- Ae.wrapper,
10160
- t === "left" && Ae.labelLeft,
10161
- o === "chalkboard" && Ae.chalkboard,
10159
+ Ie.wrapper,
10160
+ t === "left" && Ie.labelLeft,
10161
+ o === "chalkboard" && Ie.chalkboard,
10162
10162
  l
10163
10163
  ),
10164
10164
  htmlFor: d,
10165
10165
  children: [
10166
- /* @__PURE__ */ v.jsxs("span", { className: Ae.boxWrapper, children: [
10166
+ /* @__PURE__ */ v.jsxs("span", { className: Ie.boxWrapper, children: [
10167
10167
  /* @__PURE__ */ v.jsx(
10168
10168
  "input",
10169
10169
  {
@@ -10172,7 +10172,7 @@ S.forwardRef(function({
10172
10172
  },
10173
10173
  id: d,
10174
10174
  type: "checkbox",
10175
- className: Ae.input,
10175
+ className: Ie.input,
10176
10176
  checked: i,
10177
10177
  onChange: a,
10178
10178
  ...u
@@ -10181,16 +10181,16 @@ S.forwardRef(function({
10181
10181
  /* @__PURE__ */ v.jsx(
10182
10182
  "svg",
10183
10183
  {
10184
- className: Ae.blobBg,
10184
+ className: Ie.blobBg,
10185
10185
  viewBox: "-10 -10 120 120",
10186
10186
  preserveAspectRatio: "none",
10187
10187
  "aria-hidden": "true",
10188
- children: /* @__PURE__ */ v.jsx("path", { d: g.blob, className: Ae.blobFill })
10188
+ children: /* @__PURE__ */ v.jsx("path", { d: g.blob, className: Ie.blobFill })
10189
10189
  }
10190
10190
  ),
10191
- /* @__PURE__ */ v.jsxs("span", { className: Ae.box, "aria-hidden": "true", children: [
10191
+ /* @__PURE__ */ v.jsxs("span", { className: Ie.box, "aria-hidden": "true", children: [
10192
10192
  /* @__PURE__ */ v.jsx(rn, { smooth: !0, ...nn.control }),
10193
- r ? /* @__PURE__ */ v.jsx("svg", { viewBox: "0 0 20 20", fill: "none", className: Ae.icon, children: /* @__PURE__ */ v.jsx(
10193
+ r ? /* @__PURE__ */ v.jsx("svg", { viewBox: "0 0 20 20", fill: "none", className: Ie.icon, children: /* @__PURE__ */ v.jsx(
10194
10194
  "line",
10195
10195
  {
10196
10196
  x1: "4",
@@ -10200,9 +10200,9 @@ S.forwardRef(function({
10200
10200
  stroke: "currentColor",
10201
10201
  strokeWidth: "2.5",
10202
10202
  strokeLinecap: "round",
10203
- className: Ae.indeterminateLine
10203
+ className: Ie.indeterminateLine
10204
10204
  }
10205
- ) }) : /* @__PURE__ */ v.jsx("svg", { viewBox: "0 0 20 20", fill: "none", className: Ae.icon, children: /* @__PURE__ */ v.jsx(
10205
+ ) }) : /* @__PURE__ */ v.jsx("svg", { viewBox: "0 0 20 20", fill: "none", className: Ie.icon, children: /* @__PURE__ */ v.jsx(
10206
10206
  "path",
10207
10207
  {
10208
10208
  d: "M4 10 L8 14 L16 6",
@@ -10210,12 +10210,12 @@ S.forwardRef(function({
10210
10210
  strokeWidth: "2.5",
10211
10211
  strokeLinecap: "round",
10212
10212
  strokeLinejoin: "round",
10213
- className: Ae.checkmark
10213
+ className: Ie.checkmark
10214
10214
  }
10215
10215
  ) })
10216
10216
  ] })
10217
10217
  ] }),
10218
- e && /* @__PURE__ */ v.jsx("span", { className: Ae.labelText, children: e })
10218
+ e && /* @__PURE__ */ v.jsx("span", { className: Ie.labelText, children: e })
10219
10219
  ]
10220
10220
  }
10221
10221
  );
@@ -10281,14 +10281,14 @@ const g1 = "icon-button-module__iconButton___avg6i", b1 = "icon-button-module__b
10281
10281
  ]
10282
10282
  }
10283
10283
  );
10284
- }), j1 = "stamp-module__stamp___5qaNY", M1 = "stamp-module__small___BBlBg", N1 = "stamp-module__medium___HG2YD", R1 = "stamp-module__large___aUT0I", L1 = "stamp-module__blobBg___Mdrdd", I1 = "stamp-module__blobFill___QyCeB", A1 = "stamp-module__blobRing___EUDx7", O1 = "stamp-module__dot___qZyCR", B1 = "stamp-module__label___T89iH", D1 = "stamp-module__chalkboard___syI4T", Mt = {
10284
+ }), j1 = "stamp-module__stamp___5qaNY", M1 = "stamp-module__small___BBlBg", N1 = "stamp-module__medium___HG2YD", R1 = "stamp-module__large___aUT0I", L1 = "stamp-module__blobBg___Mdrdd", A1 = "stamp-module__blobFill___QyCeB", I1 = "stamp-module__blobRing___EUDx7", O1 = "stamp-module__dot___qZyCR", B1 = "stamp-module__label___T89iH", D1 = "stamp-module__chalkboard___syI4T", Mt = {
10285
10285
  stamp: j1,
10286
10286
  small: M1,
10287
10287
  medium: N1,
10288
10288
  large: R1,
10289
10289
  blobBg: L1,
10290
- blobFill: I1,
10291
- blobRing: A1,
10290
+ blobFill: A1,
10291
+ blobRing: I1,
10292
10292
  dot: O1,
10293
10293
  label: B1,
10294
10294
  chalkboard: D1
@@ -10521,7 +10521,7 @@ const ib = "input-module__wrapper___xaEw6", ab = "input-module__label___lu7R1",
10521
10521
  track: Rb,
10522
10522
  svg: Lb
10523
10523
  }, xi = 300, Nt = 1;
10524
- function Ib({
10524
+ function Ab({
10525
10525
  value: e,
10526
10526
  max: t = 100,
10527
10527
  color: r,
@@ -10568,8 +10568,8 @@ function Ib({
10568
10568
  }
10569
10569
  ) });
10570
10570
  }
10571
- const Ab = "radio-module__wrapper___BB05E", Ob = "radio-module__blobFill___p5BX4", Bb = "radio-module__labelLeft___ijB93", Db = "radio-module__input___M2nFJ", $b = "radio-module__box___H7ofS", Wb = "radio-module__dot___jVJ-d", Ub = "radio-module__boxWrapper___Y3qis", Gb = "radio-module__blobBg___IR-M5", Vb = "radio-module__labelText___I-nu3", Qb = "radio-module__chalkboard___IIBqI", ct = {
10572
- wrapper: Ab,
10571
+ const Ib = "radio-module__wrapper___BB05E", Ob = "radio-module__blobFill___p5BX4", Bb = "radio-module__labelLeft___ijB93", Db = "radio-module__input___M2nFJ", $b = "radio-module__box___H7ofS", Wb = "radio-module__dot___jVJ-d", Ub = "radio-module__boxWrapper___Y3qis", Gb = "radio-module__blobBg___IR-M5", Vb = "radio-module__labelText___I-nu3", Qb = "radio-module__chalkboard___IIBqI", ct = {
10572
+ wrapper: Ib,
10573
10573
  blobFill: Ob,
10574
10574
  labelLeft: Bb,
10575
10575
  input: Db,
@@ -10757,11 +10757,87 @@ function cv({
10757
10757
  );
10758
10758
  }
10759
10759
  S.createContext(null);
10760
- const dv = "data-paper-camp-mount";
10761
- function _v(e) {
10762
- return (e == null ? void 0 : e.getAttribute(dv)) ?? "";
10760
+ async function dv(e, t) {
10761
+ try {
10762
+ return (await t("/api/package-name")).ok;
10763
+ } catch {
10764
+ return !1;
10765
+ }
10766
+ }
10767
+ const bl = "paper-camp.projects", zs = "paper-camp.activeProjectId", _v = "paper-camp.runtimes", pv = "paper-camp.activeRuntimeUrl";
10768
+ function fv(e) {
10769
+ return e.runtimeUrl;
10770
+ }
10771
+ function ip(e) {
10772
+ if (!e) return [];
10773
+ const t = JSON.parse(e);
10774
+ return Array.isArray(t) ? t : [];
10775
+ }
10776
+ function mv(e) {
10777
+ return !!e && typeof e == "object" && typeof e.runtimeUrl == "string";
10778
+ }
10779
+ function ap(e) {
10780
+ if (e.getItem(bl) !== null) return;
10781
+ const t = ip(e.getItem(_v));
10782
+ if (t.length === 0) return;
10783
+ e.setItem(bl, JSON.stringify(t));
10784
+ const r = e.getItem(pv);
10785
+ r && e.setItem(zs, r);
10763
10786
  }
10764
- const pv = typeof document > "u" ? "" : _v(document.getElementById("root")), fv = {}, ic = (e) => {
10787
+ function Ts(e) {
10788
+ return e ? (ap(e), ip(e.getItem(bl)).filter(mv)) : [];
10789
+ }
10790
+ function hv(e, t) {
10791
+ e == null || e.setItem(bl, JSON.stringify(t));
10792
+ }
10793
+ function gv(e) {
10794
+ return Ts(e);
10795
+ }
10796
+ function bv(e) {
10797
+ return e ? (ap(e), e.getItem(zs)) : null;
10798
+ }
10799
+ function vv(e, t) {
10800
+ var i;
10801
+ const r = Ts(t), n = (i = r.find((a) => a.runtimeUrl === e.runtimeUrl)) == null ? void 0 : i.label, o = {
10802
+ runtimeUrl: e.runtimeUrl,
10803
+ pairingToken: e.pairingToken,
10804
+ label: n
10805
+ }, l = r.filter((a) => a.runtimeUrl !== e.runtimeUrl);
10806
+ return l.push(o), hv(t, l), o;
10807
+ }
10808
+ function yv(e, t) {
10809
+ const r = Ts(t).find((n) => fv(n) === e);
10810
+ return r ? (t == null || t.setItem(zs, e), r) : null;
10811
+ }
10812
+ const xv = "runtime", wv = "token";
10813
+ function kv(e) {
10814
+ return { runtimeUrl: e.runtimeUrl, pairingToken: e.pairingToken, label: e.label };
10815
+ }
10816
+ function Cv(e) {
10817
+ const t = new URLSearchParams((e == null ? void 0 : e.search) ?? "");
10818
+ return {
10819
+ runtimeUrl: t.get(xv) ?? "",
10820
+ pairingToken: t.get(wv)
10821
+ };
10822
+ }
10823
+ function Sv(e, t) {
10824
+ vv(t, e), yv(t.runtimeUrl, e);
10825
+ }
10826
+ function Ev(e, t) {
10827
+ const r = Cv(e);
10828
+ if (r.runtimeUrl)
10829
+ return Sv(t, r), r;
10830
+ const n = bv(t), o = n ? gv(t).find((l) => l.runtimeUrl === n) : null;
10831
+ return o ? kv(o) : { runtimeUrl: "", pairingToken: null };
10832
+ }
10833
+ const zv = Ev(
10834
+ typeof window > "u" ? null : window.location,
10835
+ typeof window > "u" ? null : window.localStorage
10836
+ ), Tv = "data-paper-camp-mount";
10837
+ function Pv(e) {
10838
+ return (e == null ? void 0 : e.getAttribute(Tv)) ?? "";
10839
+ }
10840
+ const Fv = typeof document > "u" ? "" : Pv(document.getElementById("root")), jv = {}, ic = (e) => {
10765
10841
  let t;
10766
10842
  const r = /* @__PURE__ */ new Set(), n = (c, p) => {
10767
10843
  const d = typeof c == "function" ? c(t) : c;
@@ -10770,34 +10846,34 @@ const pv = typeof document > "u" ? "" : _v(document.getElementById("root")), fv
10770
10846
  t = p ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), r.forEach((m) => m(t, g));
10771
10847
  }
10772
10848
  }, o = () => t, s = { setState: n, getState: o, getInitialState: () => u, subscribe: (c) => (r.add(c), () => r.delete(c)), destroy: () => {
10773
- (fv ? "production" : void 0) !== "production" && console.warn(
10849
+ (jv ? "production" : void 0) !== "production" && console.warn(
10774
10850
  "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
10775
10851
  ), r.clear();
10776
10852
  } }, u = t = e(n, o, s);
10777
10853
  return s;
10778
- }, mv = (e) => e ? ic(e) : ic, ip = {}, { useDebugValue: hv } = Fp, { useSyncExternalStoreWithSelector: gv } = x0;
10854
+ }, Mv = (e) => e ? ic(e) : ic, sp = {}, { useDebugValue: Nv } = Fp, { useSyncExternalStoreWithSelector: Rv } = x0;
10779
10855
  let ac = !1;
10780
- const bv = (e) => e;
10781
- function vv(e, t = bv, r) {
10782
- (ip ? "production" : void 0) !== "production" && r && !ac && (console.warn(
10856
+ const Lv = (e) => e;
10857
+ function Av(e, t = Lv, r) {
10858
+ (sp ? "production" : void 0) !== "production" && r && !ac && (console.warn(
10783
10859
  "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
10784
10860
  ), ac = !0);
10785
- const n = gv(
10861
+ const n = Rv(
10786
10862
  e.subscribe,
10787
10863
  e.getState,
10788
10864
  e.getServerState || e.getInitialState,
10789
10865
  t,
10790
10866
  r
10791
10867
  );
10792
- return hv(n), n;
10868
+ return Nv(n), n;
10793
10869
  }
10794
- const yv = (e) => {
10795
- (ip ? "production" : void 0) !== "production" && typeof e != "function" && console.warn(
10870
+ const Iv = (e) => {
10871
+ (sp ? "production" : void 0) !== "production" && typeof e != "function" && console.warn(
10796
10872
  "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
10797
10873
  );
10798
- const t = typeof e == "function" ? mv(e) : e, r = (n, o) => vv(t, n, o);
10874
+ const t = typeof e == "function" ? Mv(e) : e, r = (n, o) => Av(t, n, o);
10799
10875
  return Object.assign(r, t), r;
10800
- }, xv = (e) => yv, wv = async (e) => {
10876
+ }, Ov = (e) => Iv, Bv = async (e) => {
10801
10877
  const t = await G(N(`/api/checks/run?name=${encodeURIComponent(e)}`), {
10802
10878
  method: "POST"
10803
10879
  });
@@ -10822,9 +10898,9 @@ function Ve(e, t) {
10822
10898
  await t(...r), await e().loadAgentStatus();
10823
10899
  };
10824
10900
  }
10825
- let kv = 0;
10826
- const sc = () => `preview-${++kv}`;
10827
- function Cv(e, t) {
10901
+ let Dv = 0;
10902
+ const sc = () => `preview-${++Dv}`;
10903
+ function $v(e, t) {
10828
10904
  return {
10829
10905
  agentAuthStatus: null,
10830
10906
  loadAgentAuthStatus: ce(
@@ -10853,7 +10929,7 @@ function Cv(e, t) {
10853
10929
  return !0;
10854
10930
  }))
10855
10931
  for (const c of ["lint", "test", "Consistency"])
10856
- wv(c).catch(() => {
10932
+ Bv(c).catch(() => {
10857
10933
  });
10858
10934
  const i = t().pendingReconcile, a = i ? r.find((c) => c.taskKind === "reconcile" && c.planId === i.planId) : void 0;
10859
10935
  i && a && (a.status === "done" ? (await t().loadPlans(), e((c) => ({
@@ -10911,8 +10987,8 @@ function Cv(e, t) {
10911
10987
  }),
10912
10988
  launchSuggestIdeas: Ve(t, Mh),
10913
10989
  launchRunAll: Ve(t, Lh),
10914
- launchFixReview: Ve(t, Ih),
10915
- launchPrReview: Ve(t, Ah),
10990
+ launchFixReview: Ve(t, Ah),
10991
+ launchPrReview: Ve(t, Ih),
10916
10992
  launchIssueFix: Ve(t, Bh),
10917
10993
  launchInstallToolbar: Ve(t, Oh),
10918
10994
  stopAgent: async (r) => {
@@ -10953,25 +11029,25 @@ function Cv(e, t) {
10953
11029
  batchReconcileConsumed: !1
10954
11030
  };
10955
11031
  }
10956
- const Sv = 3e4, Ev = async () => {
11032
+ const Wv = 3e4, Uv = async () => {
10957
11033
  const e = await fetch(N("/api/capacity/refresh"), {
10958
11034
  method: "POST",
10959
- signal: AbortSignal.timeout(Sv)
11035
+ signal: AbortSignal.timeout(Wv)
10960
11036
  });
10961
11037
  if (!e.ok) return null;
10962
11038
  const t = await e.json();
10963
11039
  return t.snapshot && t.capturedAt ? { snapshot: t.snapshot, capturedAt: t.capturedAt } : null;
10964
11040
  };
10965
- function zv(e) {
11041
+ function Gv(e) {
10966
11042
  return {
10967
11043
  probedCapacity: null,
10968
11044
  refreshCapacity: async () => {
10969
- const t = await Ev().catch(() => null);
11045
+ const t = await Uv().catch(() => null);
10970
11046
  t && e({ probedCapacity: t });
10971
11047
  }
10972
11048
  };
10973
11049
  }
10974
- function Tv(e) {
11050
+ function Vv(e) {
10975
11051
  return {
10976
11052
  chatThread: null,
10977
11053
  chatLoading: !1,
@@ -10985,7 +11061,7 @@ function Tv(e) {
10985
11061
  )
10986
11062
  };
10987
11063
  }
10988
- function Pv(e, t) {
11064
+ function Qv(e, t) {
10989
11065
  return {
10990
11066
  diffFiles: null,
10991
11067
  diffLoadFailed: !1,
@@ -11010,13 +11086,13 @@ function Pv(e, t) {
11010
11086
  expandDiffPath: (r) => t().setDiffCollapsed(r, !1)
11011
11087
  };
11012
11088
  }
11013
- const Fv = async () => {
11089
+ const Hv = async () => {
11014
11090
  const e = await G(N("/api/releases"));
11015
11091
  if (!e.ok) throw new Error("Failed to load releases");
11016
11092
  const { versions: t } = await e.json();
11017
11093
  return t;
11018
11094
  };
11019
- function jv(e, t) {
11095
+ function Xv(e, t) {
11020
11096
  return {
11021
11097
  repoDocs: [],
11022
11098
  repoDocsLoading: !0,
@@ -11045,7 +11121,7 @@ function jv(e, t) {
11045
11121
  loadReleaseVersions: async () => {
11046
11122
  e({ releaseVersionsLoading: !0 });
11047
11123
  try {
11048
- const r = await Fv();
11124
+ const r = await Hv();
11049
11125
  e({ releaseVersions: r, releaseVersionsLoading: !1 });
11050
11126
  } catch {
11051
11127
  e({ releaseVersions: [], releaseVersionsLoading: !1 });
@@ -11055,7 +11131,7 @@ function jv(e, t) {
11055
11131
  setActiveReleaseVersion: (r) => e({ activeReleaseVersion: r })
11056
11132
  };
11057
11133
  }
11058
- function Mv(e, t) {
11134
+ function Kv(e, t) {
11059
11135
  return {
11060
11136
  ideaEntries: [],
11061
11137
  loadIdeas: ce(
@@ -11076,14 +11152,10 @@ function Mv(e, t) {
11076
11152
  }
11077
11153
  };
11078
11154
  }
11079
- function Nv(e) {
11080
- return `${e.date}-${e.check}-${e.file}-${e.line ?? "null"}`;
11081
- }
11082
- function Rv(e, t) {
11155
+ function qv(e, t) {
11083
11156
  return {
11084
11157
  nightReport: [],
11085
11158
  loadNightReport: ce(e, ah, (r) => ({ nightReport: r.groups })),
11086
- findNightFindingById: (r) => t().nightReport.flatMap((n) => n.findings).find((n) => Nv(n) === r),
11087
11159
  promoteNightFinding: async (r) => {
11088
11160
  const { id: n } = await sh(r);
11089
11161
  return await Promise.all([t().loadNightReport(), t().loadPlans(), t().loadIdeas()]), n;
@@ -11093,7 +11165,7 @@ function Rv(e, t) {
11093
11165
  }
11094
11166
  };
11095
11167
  }
11096
- function Lv(e, t) {
11168
+ function Yv(e, t) {
11097
11169
  return {
11098
11170
  notifications: null,
11099
11171
  notificationsLoading: !1,
@@ -11122,7 +11194,7 @@ function Lv(e, t) {
11122
11194
  }
11123
11195
  };
11124
11196
  }
11125
- function Iv(e) {
11197
+ function Jv(e) {
11126
11198
  return {
11127
11199
  parkedQuestions: null,
11128
11200
  parkedQuestionsLoading: !1,
@@ -11136,35 +11208,35 @@ function Iv(e) {
11136
11208
  )
11137
11209
  };
11138
11210
  }
11139
- const Av = 14 * 24 * 60 * 60 * 1e3;
11140
- function ap(e) {
11211
+ const Zv = 14 * 24 * 60 * 60 * 1e3;
11212
+ function up(e) {
11141
11213
  try {
11142
11214
  const t = localStorage.getItem(e);
11143
11215
  if (!t) return null;
11144
11216
  const r = JSON.parse(t);
11145
- return Date.now() - r.storedAt > Av ? (localStorage.removeItem(e), null) : r.value;
11217
+ return Date.now() - r.storedAt > Zv ? (localStorage.removeItem(e), null) : r.value;
11146
11218
  } catch {
11147
11219
  return null;
11148
11220
  }
11149
11221
  }
11150
- function sp(e, t) {
11222
+ function cp(e, t) {
11151
11223
  try {
11152
11224
  const r = { value: t, storedAt: Date.now() };
11153
11225
  localStorage.setItem(e, JSON.stringify(r));
11154
11226
  } catch {
11155
11227
  }
11156
11228
  }
11157
- const up = "plan-filters", cp = "detail-view";
11158
- function Ov() {
11159
- return ap(up) ?? N_;
11229
+ const dp = "plan-filters", _p = "detail-view";
11230
+ function ey() {
11231
+ return up(dp) ?? N_;
11160
11232
  }
11161
- function Bv() {
11162
- return ap(cp) ?? "details";
11233
+ function ty() {
11234
+ return up(_p) ?? "details";
11163
11235
  }
11164
11236
  function gt(e) {
11165
- return sp(up, e), e;
11237
+ return cp(dp, e), e;
11166
11238
  }
11167
- function Dv(e) {
11239
+ function ry(e) {
11168
11240
  return {
11169
11241
  plans: null,
11170
11242
  plansLoading: !1,
@@ -11176,7 +11248,7 @@ function Dv(e) {
11176
11248
  (t) => ({ plansError: String(t) }),
11177
11249
  "plansLoading"
11178
11250
  ),
11179
- planFilters: Ov(),
11251
+ planFilters: ey(),
11180
11252
  togglePlanStatus: (t) => e((r) => ({
11181
11253
  planFilters: gt({
11182
11254
  ...r.planFilters,
@@ -11221,14 +11293,14 @@ function Dv(e) {
11221
11293
  groupBySubject: !t.planFilters.groupBySubject
11222
11294
  })
11223
11295
  })),
11224
- detailView: Bv(),
11296
+ detailView: ty(),
11225
11297
  setDetailView: (t) => {
11226
- sp(cp, t), e({ detailView: t });
11298
+ cp(_p, t), e({ detailView: t });
11227
11299
  }
11228
11300
  };
11229
11301
  }
11230
11302
  const uc = { horizons: [], statuses: [], search: "" };
11231
- function $v(e, t) {
11303
+ function ny(e, t) {
11232
11304
  return {
11233
11305
  roadmap: null,
11234
11306
  roadmapLoading: !1,
@@ -11257,126 +11329,50 @@ function $v(e, t) {
11257
11329
  clearRoadmapFilters: () => e({ roadmapFilters: uc })
11258
11330
  };
11259
11331
  }
11260
- async function Wv(e, t) {
11261
- try {
11262
- return (await t("/api/package-name")).ok;
11263
- } catch {
11264
- return !1;
11265
- }
11266
- }
11267
- const bl = "paper-camp.projects", zs = "paper-camp.activeProjectId", Uv = "paper-camp.runtimes", Gv = "paper-camp.activeRuntimeUrl";
11268
- function Vv(e) {
11269
- return e.runtimeUrl;
11270
- }
11271
- function dp(e) {
11272
- if (!e) return [];
11273
- const t = JSON.parse(e);
11274
- return Array.isArray(t) ? t : [];
11275
- }
11276
- function Qv(e) {
11277
- return !!e && typeof e == "object" && typeof e.runtimeUrl == "string";
11278
- }
11279
- function _p(e) {
11280
- if (e.getItem(bl) !== null) return;
11281
- const t = dp(e.getItem(Uv));
11282
- if (t.length === 0) return;
11283
- e.setItem(bl, JSON.stringify(t));
11284
- const r = e.getItem(Gv);
11285
- r && e.setItem(zs, r);
11286
- }
11287
- function Ts(e) {
11288
- return e ? (_p(e), dp(e.getItem(bl)).filter(Qv)) : [];
11289
- }
11290
- function Hv(e, t) {
11291
- e == null || e.setItem(bl, JSON.stringify(t));
11292
- }
11293
- function Xv(e) {
11294
- return Ts(e);
11295
- }
11296
- function Kv(e) {
11297
- return e ? (_p(e), e.getItem(zs)) : null;
11298
- }
11299
- function qv(e, t) {
11300
- var i;
11301
- const r = Ts(t), n = (i = r.find((a) => a.runtimeUrl === e.runtimeUrl)) == null ? void 0 : i.label, o = {
11302
- runtimeUrl: e.runtimeUrl,
11303
- pairingToken: e.pairingToken,
11304
- label: n
11305
- }, l = r.filter((a) => a.runtimeUrl !== e.runtimeUrl);
11306
- return l.push(o), Hv(t, l), o;
11307
- }
11308
- function Yv(e, t) {
11309
- const r = Ts(t).find((n) => Vv(n) === e);
11310
- return r ? (t == null || t.setItem(zs, e), r) : null;
11311
- }
11312
- const Jv = "runtime", Zv = "token";
11313
- function ey(e) {
11314
- return { runtimeUrl: e.runtimeUrl, pairingToken: e.pairingToken, label: e.label };
11315
- }
11316
- function ty(e) {
11317
- const t = new URLSearchParams((e == null ? void 0 : e.search) ?? "");
11318
- return {
11319
- runtimeUrl: t.get(Jv) ?? "",
11320
- pairingToken: t.get(Zv)
11321
- };
11322
- }
11323
- function ry(e, t) {
11324
- qv(t, e), Yv(t.runtimeUrl, e);
11325
- }
11326
- function ny(e, t) {
11327
- const r = ty(e);
11328
- if (r.runtimeUrl)
11329
- return ry(t, r), r;
11330
- const n = Kv(t), o = n ? Xv(t).find((l) => l.runtimeUrl === n) : null;
11331
- return o ? ey(o) : { runtimeUrl: "", pairingToken: null };
11332
- }
11333
- const oy = ny(
11334
- typeof window > "u" ? null : window.location,
11335
- typeof window > "u" ? null : window.localStorage
11336
- ), wi = !!pv, ly = !!oy.runtimeUrl, iy = 15e3, cc = 2, ay = 1500, sy = (e) => new Promise((t) => setTimeout(t, e));
11332
+ const wi = !!Fv, oy = !!zv.runtimeUrl, ly = 15e3, cc = 2, iy = 1500, ay = (e) => new Promise((t) => setTimeout(t, e));
11337
11333
  let ki;
11338
- function uy() {
11339
- return ki || (ki = Wv("", (e) => fetch(N(e)))), ki;
11334
+ function sy() {
11335
+ return ki || (ki = dv("", (e) => fetch(N(e)))), ki;
11340
11336
  }
11341
- async function cy() {
11337
+ async function uy() {
11342
11338
  for (let e = 0; e <= cc; e++) {
11343
11339
  try {
11344
11340
  if ((await fetch(N("/api/package-name"), {
11345
- signal: AbortSignal.timeout(iy)
11341
+ signal: AbortSignal.timeout(ly)
11346
11342
  })).ok) return !0;
11347
11343
  } catch {
11348
11344
  }
11349
- e < cc && await sy(ay);
11345
+ e < cc && await ay(iy);
11350
11346
  }
11351
11347
  return !1;
11352
11348
  }
11353
- function dy(e) {
11349
+ function cy(e) {
11354
11350
  return {
11355
11351
  runtimeReachable: wi,
11356
11352
  runtimeChecking: !wi,
11357
11353
  checkRuntimeReachable: ce(
11358
11354
  e,
11359
- async () => wi ? !0 : ly ? cy() : uy(),
11355
+ async () => wi ? !0 : oy ? uy() : sy(),
11360
11356
  (t) => ({ runtimeReachable: t }),
11361
11357
  () => ({ runtimeReachable: !1 }),
11362
11358
  "runtimeChecking"
11363
11359
  )
11364
11360
  };
11365
11361
  }
11366
- const _y = async () => (await G(N("/api/status"))).json(), py = async () => {
11362
+ const dy = async () => (await G(N("/api/status"))).json(), _y = async () => {
11367
11363
  const e = await G(N("/api/refresh"), { method: "POST" });
11368
11364
  if (!e.ok)
11369
11365
  throw new Error(`Failed to drop caches: ${e.statusText}`);
11370
11366
  };
11371
- function fy(e, t) {
11367
+ function py(e, t) {
11372
11368
  return {
11373
11369
  status: null,
11374
11370
  refreshing: !1,
11375
- loadStatus: ce(e, _y, (r) => ({ status: r })),
11371
+ loadStatus: ce(e, dy, (r) => ({ status: r })),
11376
11372
  refreshAll: async () => {
11377
11373
  e({ refreshing: !0 });
11378
11374
  try {
11379
- await py().catch(() => {
11375
+ await _y().catch(() => {
11380
11376
  }), await Promise.all([
11381
11377
  t().loadPlans(),
11382
11378
  t().loadIdeas(),
@@ -11434,7 +11430,7 @@ function fy(e, t) {
11434
11430
  gitStashes: [],
11435
11431
  loadGitStatus: async () => {
11436
11432
  try {
11437
- const { branch: r, entries: n, ahead: o, behind: l, diverged: i, branchHygiene: a, stashes: s } = await I_();
11433
+ const { branch: r, entries: n, ahead: o, behind: l, diverged: i, branchHygiene: a, stashes: s } = await A_();
11438
11434
  return e({
11439
11435
  gitStatus: n,
11440
11436
  gitBranch: r,
@@ -11452,13 +11448,13 @@ function fy(e, t) {
11452
11448
  runtimeVersion: null,
11453
11449
  loadCapabilities: ce(
11454
11450
  e,
11455
- A_,
11451
+ I_,
11456
11452
  (r) => ({ capabilities: (r == null ? void 0 : r.capabilities) ?? [], runtimeVersion: (r == null ? void 0 : r.version) ?? null }),
11457
11453
  () => ({ capabilities: [] })
11458
11454
  )
11459
11455
  };
11460
11456
  }
11461
- function my(e, t) {
11457
+ function fy(e, t) {
11462
11458
  return {
11463
11459
  suggestions: [],
11464
11460
  suggestionsLoading: !0,
@@ -11486,7 +11482,7 @@ function my(e, t) {
11486
11482
  }
11487
11483
  };
11488
11484
  }
11489
- function hy(e) {
11485
+ function my(e) {
11490
11486
  return {
11491
11487
  taskLog: [],
11492
11488
  taskLogLoading: !0,
@@ -11501,25 +11497,25 @@ function hy(e) {
11501
11497
  setActiveLogEntryTitle: (t) => e({ activeLogEntryTitle: t })
11502
11498
  };
11503
11499
  }
11504
- xv()((e, t) => ({
11505
- ...zv(e),
11506
- ...Tv(e),
11507
- ...Dv(e),
11508
- ...$v(e),
11509
- ...Mv(e, t),
11510
- ...my(e, t),
11511
- ...Rv(e, t),
11512
- ...hy(e),
11513
- ...jv(e, t),
11500
+ Ov()((e, t) => ({
11501
+ ...Gv(e),
11502
+ ...Vv(e),
11503
+ ...ry(e),
11504
+ ...ny(e),
11505
+ ...Kv(e, t),
11514
11506
  ...fy(e, t),
11515
- ...Cv(e, t),
11516
- ...Pv(e, t),
11517
- ...Iv(e),
11518
- ...Lv(e, t),
11519
- ...dy(e)
11507
+ ...qv(e, t),
11508
+ ...my(e),
11509
+ ...Xv(e, t),
11510
+ ...py(e, t),
11511
+ ...$v(e, t),
11512
+ ...Qv(e, t),
11513
+ ...Jv(e),
11514
+ ...Yv(e, t),
11515
+ ...cy(e)
11520
11516
  }));
11521
11517
  const dc = "✖";
11522
- function gy(e) {
11518
+ function hy(e) {
11523
11519
  const t = e.filter((r) => r.startsWith(dc) && !/found \d+ problem/.test(r)).map(
11524
11520
  (r) => r.slice(dc.length).trim().replace(/\s*\[[\w-]+\]$/, "")
11525
11521
  );
@@ -11528,12 +11524,12 @@ function gy(e) {
11528
11524
  }
11529
11525
  function To(e) {
11530
11526
  const t = e.split(`
11531
- `).map((o) => o.trim()).filter(Boolean), r = gy(t);
11527
+ `).map((o) => o.trim()).filter(Boolean), r = hy(t);
11532
11528
  return r || (t.find(
11533
11529
  (o) => o.startsWith("!") || o.startsWith("error:") || o.startsWith("fatal:")
11534
11530
  ) ?? t.at(-1) ?? e);
11535
11531
  }
11536
- const by = (e, { reload: t, notify: r }) => {
11532
+ const gy = (e, { reload: t, notify: r }) => {
11537
11533
  const [n, o] = S.useState(!1), [l, i] = S.useState(!1), [a, s] = S.useState(null);
11538
11534
  return S.useEffect(() => {
11539
11535
  s(null);
@@ -11581,76 +11577,76 @@ const by = (e, { reload: t, notify: r }) => {
11581
11577
  }
11582
11578
  }
11583
11579
  } };
11584
- }, vy = {
11580
+ }, by = {
11585
11581
  "in-progress": "#C89A5A",
11586
11582
  planned: "#6A9B72",
11587
11583
  idea: "#8A9BAA",
11588
11584
  review: "#9B7AB5",
11589
11585
  done: "#8A7A8A",
11590
11586
  dropped: "#A06060"
11591
- }, yy = {
11587
+ }, vy = {
11592
11588
  idea: "Idea",
11593
11589
  planned: "Planned",
11594
11590
  "in-progress": "In progress",
11595
11591
  review: "Review",
11596
11592
  done: "Done",
11597
11593
  dropped: "Dropped"
11598
- }, xy = ({ pct: e, color: t, height: r = 6 }) => /* @__PURE__ */ v.jsx(Ib, { value: e, color: t, height: r }), _c = {
11594
+ }, yy = ({ pct: e, color: t, height: r = 6 }) => /* @__PURE__ */ v.jsx(Ab, { value: e, color: t, height: r }), _c = {
11599
11595
  display: "flex",
11600
11596
  flexDirection: "column",
11601
11597
  gap: "0.5rem",
11602
11598
  height: "100%",
11603
11599
  minHeight: 0
11604
- }, wy = {
11600
+ }, xy = {
11605
11601
  opacity: 0.6,
11606
11602
  fontSize: "0.75rem",
11607
11603
  flexShrink: 0
11608
- }, ky = {
11604
+ }, wy = {
11609
11605
  flex: "1 1 auto",
11610
11606
  minHeight: 0,
11611
11607
  overflowY: "auto",
11612
11608
  display: "flex",
11613
11609
  flexDirection: "column",
11614
11610
  gap: "0.5rem"
11615
- }, Cy = {
11611
+ }, ky = {
11616
11612
  opacity: 0.6,
11617
11613
  fontSize: "0.75rem"
11618
- }, Sy = (e) => ({
11614
+ }, Cy = (e) => ({
11619
11615
  display: "flex",
11620
11616
  flexDirection: "column",
11621
11617
  gap: "0.25rem",
11622
11618
  alignItems: e ? "flex-start" : "flex-end"
11623
- }), Ey = { maxWidth: "85%" }, zy = {
11619
+ }), Sy = { maxWidth: "85%" }, Ey = {
11624
11620
  display: "block",
11625
11621
  fontSize: "0.8125rem",
11626
11622
  whiteSpace: "pre-wrap"
11627
- }, Ty = {
11623
+ }, zy = {
11628
11624
  display: "flex",
11629
11625
  alignItems: "center",
11630
11626
  gap: "0.375rem",
11631
11627
  fontSize: "0.6875rem",
11632
11628
  opacity: 0.6
11633
- }, Py = {
11629
+ }, Ty = {
11634
11630
  display: "flex",
11635
11631
  justifyContent: "space-between",
11636
11632
  alignItems: "center",
11637
11633
  gap: "0.5rem"
11638
- }, Fy = { flexShrink: 0 }, jy = { marginTop: "0.375rem" }, My = { opacity: 0.6, fontSize: "0.75rem" }, Ny = async () => {
11639
- }, Ry = ({ messages: e }) => {
11634
+ }, Py = { flexShrink: 0 }, Fy = { marginTop: "0.375rem" }, jy = { opacity: 0.6, fontSize: "0.75rem" }, My = async () => {
11635
+ }, Ny = ({ messages: e }) => {
11640
11636
  const t = S.useRef(null);
11641
11637
  return S.useEffect(() => {
11642
11638
  var r;
11643
11639
  (r = t.current) == null || r.scrollIntoView({ block: "end" });
11644
- }, [e.length]), e.length === 0 ? /* @__PURE__ */ v.jsx("span", { style: Cy, children: "No messages yet — say hello." }) : /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
11640
+ }, [e.length]), e.length === 0 ? /* @__PURE__ */ v.jsx("span", { style: ky, children: "No messages yet — say hello." }) : /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
11645
11641
  e.map((r, n) => {
11646
11642
  const o = r.from === "agent";
11647
11643
  return /* @__PURE__ */ v.jsxs(
11648
11644
  "div",
11649
11645
  {
11650
- style: Sy(o),
11646
+ style: Cy(o),
11651
11647
  children: [
11652
- /* @__PURE__ */ v.jsx("div", { style: Ey, children: /* @__PURE__ */ v.jsx(lp, { size: "small", children: /* @__PURE__ */ v.jsx("span", { style: zy, children: r.text }) }) }),
11653
- /* @__PURE__ */ v.jsxs("div", { style: Ty, children: [
11648
+ /* @__PURE__ */ v.jsx("div", { style: Sy, children: /* @__PURE__ */ v.jsx(lp, { size: "small", children: /* @__PURE__ */ v.jsx("span", { style: Ey, children: r.text }) }) }),
11649
+ /* @__PURE__ */ v.jsxs("div", { style: zy, children: [
11654
11650
  o && /* @__PURE__ */ v.jsx(gl, { size: "small", children: "agent" }),
11655
11651
  r.date && /* @__PURE__ */ v.jsx("span", { children: r.date })
11656
11652
  ] })
@@ -11661,18 +11657,18 @@ const by = (e, { reload: t, notify: r }) => {
11661
11657
  }),
11662
11658
  /* @__PURE__ */ v.jsx("div", { ref: t })
11663
11659
  ] });
11664
- }, Ly = ({
11660
+ }, Ry = ({
11665
11661
  plan: e,
11666
11662
  placeholder: t,
11667
11663
  onSent: r
11668
11664
  }) => {
11669
- const [n, o] = S.useState(""), [l, i] = S.useState(null), { sending: a, send: s } = by(e, {
11670
- reload: Ny,
11665
+ const [n, o] = S.useState(""), [l, i] = S.useState(null), { sending: a, send: s } = gy(e, {
11666
+ reload: My,
11671
11667
  notify: (c) => i(c.title ?? "Something went wrong")
11672
11668
  }), u = async () => {
11673
11669
  i(null), n.trim() && await s(n.trim()) && (o(""), r());
11674
11670
  };
11675
- return /* @__PURE__ */ v.jsxs("div", { style: Fy, children: [
11671
+ return /* @__PURE__ */ v.jsxs("div", { style: Py, children: [
11676
11672
  /* @__PURE__ */ v.jsx(
11677
11673
  Nb,
11678
11674
  {
@@ -11684,25 +11680,25 @@ const by = (e, { reload: t, notify: r }) => {
11684
11680
  disabled: a
11685
11681
  }
11686
11682
  ),
11687
- /* @__PURE__ */ v.jsxs("div", { style: Py, children: [
11683
+ /* @__PURE__ */ v.jsxs("div", { style: Ty, children: [
11688
11684
  a ? /* @__PURE__ */ v.jsx(cv, { size: "small", label: "Scout replying…" }) : /* @__PURE__ */ v.jsx("span", {}),
11689
11685
  /* @__PURE__ */ v.jsx(Sa, { size: "small", onClick: u, disabled: a || !n.trim(), children: "Send" })
11690
11686
  ] }),
11691
- l && /* @__PURE__ */ v.jsx("div", { style: jy, children: /* @__PURE__ */ v.jsx(gl, { size: "small", variant: "error", children: l }) })
11687
+ l && /* @__PURE__ */ v.jsx("div", { style: Fy, children: /* @__PURE__ */ v.jsx(gl, { size: "small", variant: "error", children: l }) })
11692
11688
  ] });
11693
- }, Iy = ({ focusPlan: e, openQuestions: t, onRefresh: r }) => {
11689
+ }, Ly = ({ focusPlan: e, openQuestions: t, onRefresh: r }) => {
11694
11690
  const [n] = t, o = (n == null ? void 0 : n.plan) ?? e;
11695
11691
  if (!o)
11696
- return /* @__PURE__ */ v.jsx("div", { style: _c, children: /* @__PURE__ */ v.jsx("span", { style: My, children: "No active idea and no open questions." }) });
11692
+ return /* @__PURE__ */ v.jsx("div", { style: _c, children: /* @__PURE__ */ v.jsx("span", { style: jy, children: "No active idea and no open questions." }) });
11697
11693
  const l = n ? t.reduce((i, a) => i + a.questions.length, 0) - 1 : 0;
11698
11694
  return /* @__PURE__ */ v.jsxs("div", { style: _c, children: [
11699
- l > 0 && /* @__PURE__ */ v.jsxs("span", { style: wy, children: [
11695
+ l > 0 && /* @__PURE__ */ v.jsxs("span", { style: xy, children: [
11700
11696
  l,
11701
11697
  " more open question(s)"
11702
11698
  ] }),
11703
- /* @__PURE__ */ v.jsx("div", { style: ky, children: /* @__PURE__ */ v.jsx(Ry, { messages: o.thread ?? [] }) }),
11699
+ /* @__PURE__ */ v.jsx("div", { style: wy, children: /* @__PURE__ */ v.jsx(Ny, { messages: o.thread ?? [] }) }),
11704
11700
  /* @__PURE__ */ v.jsx(
11705
- Ly,
11701
+ Ry,
11706
11702
  {
11707
11703
  plan: o,
11708
11704
  placeholder: n ? "Reply to resolve and resume…" : "Ask Scout, jot a note, or say “note this down as an idea”…",
@@ -11721,7 +11717,7 @@ const by = (e, { reload: t, notify: r }) => {
11721
11717
  height: "100%",
11722
11718
  minHeight: 0,
11723
11719
  overflow: "hidden"
11724
- }, Oy = {
11720
+ }, Iy = {
11725
11721
  display: "flex",
11726
11722
  alignItems: "center",
11727
11723
  gap: "0.5rem",
@@ -11730,13 +11726,13 @@ const by = (e, { reload: t, notify: r }) => {
11730
11726
  background: "rgba(61, 53, 43, 0.08)",
11731
11727
  borderBottom: "1px solid rgba(61, 53, 43, 0.12)",
11732
11728
  borderRadius: "28px 28px 0 0"
11733
- }, By = {
11729
+ }, Oy = {
11734
11730
  display: "flex",
11735
11731
  flexDirection: "column",
11736
11732
  flex: "1 1 auto",
11737
11733
  minHeight: 0,
11738
11734
  padding: "0.75rem"
11739
- }, Dy = {
11735
+ }, By = {
11740
11736
  fontFamily: "monospace",
11741
11737
  fontSize: "0.75rem",
11742
11738
  color: "var(--pui-text-primary)",
@@ -11748,72 +11744,72 @@ const by = (e, { reload: t, notify: r }) => {
11748
11744
  fontSize: "0.75rem",
11749
11745
  color: "var(--pui-text-secondary)",
11750
11746
  whiteSpace: "nowrap"
11751
- }, $y = {
11747
+ }, Dy = {
11752
11748
  display: "flex",
11753
11749
  alignItems: "stretch",
11754
11750
  gap: "0.75rem",
11755
11751
  flex: "1 1 auto",
11756
11752
  minHeight: 0
11757
- }, Wy = {
11753
+ }, $y = {
11758
11754
  flex: "0 0 40%",
11759
11755
  display: "flex",
11760
11756
  flexDirection: "column",
11761
11757
  minWidth: 0
11762
- }, Uy = {
11758
+ }, Wy = {
11763
11759
  display: "flex",
11764
11760
  flexDirection: "column",
11765
11761
  gap: "0.625rem",
11766
11762
  height: "100%"
11767
- }, Gy = { flex: 1, minHeight: "0.5rem" }, Vy = {
11763
+ }, Uy = { flex: 1, minHeight: "0.5rem" }, Gy = {
11768
11764
  flex: "1 1 0%",
11769
11765
  minWidth: 0,
11770
11766
  minHeight: 0,
11771
11767
  overflow: "hidden"
11772
- }, Qy = {
11768
+ }, Vy = {
11773
11769
  display: "flex",
11774
11770
  alignItems: "center",
11775
11771
  gap: "0.375rem"
11776
- }, Hy = { flex: 1 }, Xy = {
11772
+ }, Qy = { flex: 1 }, Hy = {
11777
11773
  fontSize: "0.8125rem",
11778
11774
  fontWeight: 600,
11779
11775
  color: "var(--pui-text-primary)",
11780
11776
  lineHeight: 1.35,
11781
11777
  overflowWrap: "anywhere"
11782
- }, Ky = {
11778
+ }, Xy = {
11783
11779
  fontSize: "0.75rem",
11784
11780
  color: "var(--pui-text-secondary)",
11785
11781
  lineHeight: 1.35,
11786
11782
  overflowWrap: "anywhere"
11787
- }, qy = {
11783
+ }, Ky = {
11788
11784
  display: "flex",
11789
11785
  alignItems: "center",
11790
11786
  gap: "0.375rem"
11791
- }, Yy = { flex: 1, minWidth: 0 }, Jy = {
11787
+ }, qy = { flex: 1, minWidth: 0 }, Yy = {
11792
11788
  fontSize: "0.6875rem",
11793
11789
  color: "var(--pui-text-secondary)",
11794
11790
  flexShrink: 0
11795
11791
  }, pc = {
11796
11792
  fontSize: "0.75rem",
11797
11793
  color: "var(--pui-text-primary)"
11798
- }, Zy = {
11794
+ }, Jy = {
11799
11795
  display: "block",
11800
11796
  fontSize: "0.75rem",
11801
11797
  color: "var(--pui-text-primary)",
11802
11798
  textAlign: "center"
11803
- }, ex = { marginTop: "0.25rem" }, tx = {
11799
+ }, Zy = { marginTop: "0.25rem" }, ex = {
11804
11800
  display: "flex",
11805
11801
  justifyContent: "center"
11806
- }, rx = {
11802
+ }, tx = {
11807
11803
  display: "block",
11808
11804
  fontSize: "0.75rem",
11809
11805
  color: "var(--pui-text-secondary)",
11810
11806
  textAlign: "center"
11811
- }, nx = { fontSize: "0.75rem" }, ox = {
11807
+ }, rx = { fontSize: "0.75rem" }, nx = {
11812
11808
  display: "flex",
11813
11809
  alignItems: "center",
11814
11810
  gap: "0.375rem",
11815
11811
  marginTop: "0.125rem"
11816
- }, lx = { flex: 1 }, ix = `
11812
+ }, ox = { flex: 1 }, lx = `
11817
11813
  .pc-scout-island {
11818
11814
  overflow: hidden;
11819
11815
  }
@@ -11823,7 +11819,7 @@ const by = (e, { reload: t, notify: r }) => {
11823
11819
  }
11824
11820
  .pc-scout-glance-card {
11825
11821
  height: 100%;
11826
- }`, ax = ({
11822
+ }`, ix = ({
11827
11823
  status: e,
11828
11824
  focusPlan: t,
11829
11825
  openQuestions: r,
@@ -11838,35 +11834,35 @@ const by = (e, { reload: t, notify: r }) => {
11838
11834
  await e.commitWithTitle(u, p || void 0) && (c(""), d(""));
11839
11835
  };
11840
11836
  return /* @__PURE__ */ v.jsxs(o1, { surface: "paper", label: "Paper camp", className: "pc-scout-island", children: [
11841
- /* @__PURE__ */ v.jsx("style", { children: ix }),
11837
+ /* @__PURE__ */ v.jsx("style", { children: lx }),
11842
11838
  /* @__PURE__ */ v.jsxs("div", { style: Ay, children: [
11843
- /* @__PURE__ */ v.jsxs("div", { style: Oy, children: [
11844
- /* @__PURE__ */ v.jsx("code", { style: Dy, title: i, children: i }),
11839
+ /* @__PURE__ */ v.jsxs("div", { style: Iy, children: [
11840
+ /* @__PURE__ */ v.jsx("code", { style: By, title: i, children: i }),
11845
11841
  e.gitAhead > 0 && /* @__PURE__ */ v.jsxs("span", { style: Si, children: [
11846
11842
  "↑",
11847
11843
  e.gitAhead
11848
11844
  ] }),
11849
11845
  /* @__PURE__ */ v.jsx("span", { style: Si, children: e.changedFileCount > 0 ? `${e.changedFileCount} changed` : "clean" })
11850
11846
  ] }),
11851
- /* @__PURE__ */ v.jsx("div", { style: By, children: /* @__PURE__ */ v.jsxs("div", { style: $y, children: [
11852
- /* @__PURE__ */ v.jsx("div", { style: Wy, children: /* @__PURE__ */ v.jsx(lp, { size: "small", texture: "canvas", className: "pc-scout-glance-card", children: /* @__PURE__ */ v.jsxs("div", { style: Uy, children: [
11847
+ /* @__PURE__ */ v.jsx("div", { style: Oy, children: /* @__PURE__ */ v.jsxs("div", { style: Dy, children: [
11848
+ /* @__PURE__ */ v.jsx("div", { style: $y, children: /* @__PURE__ */ v.jsx(lp, { size: "small", texture: "canvas", className: "pc-scout-glance-card", children: /* @__PURE__ */ v.jsxs("div", { style: Wy, children: [
11853
11849
  t ? /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
11854
- /* @__PURE__ */ v.jsxs("div", { style: Qy, children: [
11850
+ /* @__PURE__ */ v.jsxs("div", { style: Vy, children: [
11855
11851
  /* @__PURE__ */ v.jsx(gl, { size: "small", className: "pc-scout-id-stamp", children: t.id ?? "—" }),
11856
- /* @__PURE__ */ v.jsx("span", { style: Hy }),
11857
- /* @__PURE__ */ v.jsx(gl, { size: "small", children: yy[t.status] })
11852
+ /* @__PURE__ */ v.jsx("span", { style: Qy }),
11853
+ /* @__PURE__ */ v.jsx(gl, { size: "small", children: vy[t.status] })
11858
11854
  ] }),
11859
- /* @__PURE__ */ v.jsx("span", { style: Xy, children: t.title }),
11860
- /* @__PURE__ */ v.jsx("span", { style: Ky, children: s ? s.text : "All phases done" }),
11861
- a && /* @__PURE__ */ v.jsxs("div", { style: qy, children: [
11862
- /* @__PURE__ */ v.jsx("div", { style: Yy, children: /* @__PURE__ */ v.jsx(
11863
- xy,
11855
+ /* @__PURE__ */ v.jsx("span", { style: Hy, children: t.title }),
11856
+ /* @__PURE__ */ v.jsx("span", { style: Xy, children: s ? s.text : "All phases done" }),
11857
+ a && /* @__PURE__ */ v.jsxs("div", { style: Ky, children: [
11858
+ /* @__PURE__ */ v.jsx("div", { style: qy, children: /* @__PURE__ */ v.jsx(
11859
+ yy,
11864
11860
  {
11865
11861
  pct: a.pct,
11866
- color: vy[t.status]
11862
+ color: by[t.status]
11867
11863
  }
11868
11864
  ) }),
11869
- /* @__PURE__ */ v.jsxs("span", { style: Jy, children: [
11865
+ /* @__PURE__ */ v.jsxs("span", { style: Yy, children: [
11870
11866
  a.done,
11871
11867
  "/",
11872
11868
  a.total
@@ -11877,26 +11873,26 @@ const by = (e, { reload: t, notify: r }) => {
11877
11873
  /* @__PURE__ */ v.jsx("span", { style: Si, children: "no active plan" }),
11878
11874
  /* @__PURE__ */ v.jsx(Ci, { href: o, style: pc, children: "Open Paper Camp →" })
11879
11875
  ] }),
11880
- /* @__PURE__ */ v.jsx("div", { style: Gy }),
11876
+ /* @__PURE__ */ v.jsx("div", { style: Uy }),
11881
11877
  e.changedFileCount > 0 ? /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
11882
- /* @__PURE__ */ v.jsxs(Ci, { href: l, style: Zy, children: [
11878
+ /* @__PURE__ */ v.jsxs(Ci, { href: l, style: Jy, children: [
11883
11879
  e.changedFileCount,
11884
11880
  " ",
11885
11881
  e.changedFileCount === 1 ? "file" : "files",
11886
11882
  " ",
11887
11883
  "changed"
11888
11884
  ] }),
11889
- /* @__PURE__ */ v.jsx("div", { style: ex, children: /* @__PURE__ */ v.jsx(
11885
+ /* @__PURE__ */ v.jsx("div", { style: Zy, children: /* @__PURE__ */ v.jsx(
11890
11886
  bb,
11891
11887
  {
11892
11888
  size: "small",
11893
- style: nx,
11889
+ style: rx,
11894
11890
  placeholder: "Commit message",
11895
11891
  value: u,
11896
11892
  onChange: (b) => c(b.currentTarget.value)
11897
11893
  }
11898
11894
  ) }),
11899
- /* @__PURE__ */ v.jsxs("div", { style: ox, children: [
11895
+ /* @__PURE__ */ v.jsxs("div", { style: nx, children: [
11900
11896
  /* @__PURE__ */ v.jsx(
11901
11897
  Sa,
11902
11898
  {
@@ -11906,7 +11902,7 @@ const by = (e, { reload: t, notify: r }) => {
11906
11902
  children: e.commitInFlight ? "Committing…" : "Commit"
11907
11903
  }
11908
11904
  ),
11909
- /* @__PURE__ */ v.jsx("span", { style: lx }),
11905
+ /* @__PURE__ */ v.jsx("span", { style: ox }),
11910
11906
  /* @__PURE__ */ v.jsx(
11911
11907
  F1,
11912
11908
  {
@@ -11919,10 +11915,10 @@ const by = (e, { reload: t, notify: r }) => {
11919
11915
  }
11920
11916
  )
11921
11917
  ] })
11922
- ] }) : e.gitAhead > 0 ? /* @__PURE__ */ v.jsx("div", { style: tx, children: /* @__PURE__ */ v.jsx(Sa, { size: "tiny", disabled: e.gitActionBusy, onClick: e.onPush, children: e.pushing ? "Pushing…" : `Push ${e.gitAhead} commit${e.gitAhead === 1 ? "" : "s"}` }) }) : /* @__PURE__ */ v.jsx("span", { style: rx, children: "Nothing to commit" })
11918
+ ] }) : e.gitAhead > 0 ? /* @__PURE__ */ v.jsx("div", { style: ex, children: /* @__PURE__ */ v.jsx(Sa, { size: "tiny", disabled: e.gitActionBusy, onClick: e.onPush, children: e.pushing ? "Pushing…" : `Push ${e.gitAhead} commit${e.gitAhead === 1 ? "" : "s"}` }) }) : /* @__PURE__ */ v.jsx("span", { style: tx, children: "Nothing to commit" })
11923
11919
  ] }) }) }),
11924
- /* @__PURE__ */ v.jsx("div", { style: Vy, children: /* @__PURE__ */ v.jsx(
11925
- Iy,
11920
+ /* @__PURE__ */ v.jsx("div", { style: Gy, children: /* @__PURE__ */ v.jsx(
11921
+ Ly,
11926
11922
  {
11927
11923
  focusPlan: t,
11928
11924
  openQuestions: r,
@@ -11932,7 +11928,7 @@ const by = (e, { reload: t, notify: r }) => {
11932
11928
  ] }) })
11933
11929
  ] })
11934
11930
  ] });
11935
- }, sx = ({ size: e = 20 }) => /* @__PURE__ */ v.jsxs(
11931
+ }, ax = ({ size: e = 20 }) => /* @__PURE__ */ v.jsxs(
11936
11932
  "svg",
11937
11933
  {
11938
11934
  width: e,
@@ -11979,7 +11975,7 @@ const by = (e, { reload: t, notify: r }) => {
11979
11975
  )
11980
11976
  ]
11981
11977
  }
11982
- ), ux = 120, cx = () => {
11978
+ ), sx = 120, ux = () => {
11983
11979
  const [e, t] = S.useState(!1), r = S.useRef(null), n = S.useRef(null), o = S.useCallback(() => {
11984
11980
  n.current !== null && (window.clearTimeout(n.current), n.current = null);
11985
11981
  }, []), l = S.useCallback(() => {
@@ -11989,7 +11985,7 @@ const by = (e, { reload: t, notify: r }) => {
11989
11985
  }, [o]), a = S.useCallback(() => {
11990
11986
  n.current === null && (n.current = window.setTimeout(() => {
11991
11987
  n.current = null, t(!0);
11992
- }, ux));
11988
+ }, sx));
11993
11989
  }, []), s = S.useCallback(() => {
11994
11990
  o();
11995
11991
  }, [o]), u = S.useCallback(
@@ -12015,18 +12011,18 @@ const by = (e, { reload: t, notify: r }) => {
12015
12011
  rootProps: { onPointerEnter: a, onPointerLeave: s },
12016
12012
  triggerProps: { onClick: l, onFocus: u }
12017
12013
  };
12018
- }, pp = "cubic-bezier(0.34, 1.56, 0.64, 1)", dx = {
12014
+ }, pp = "cubic-bezier(0.34, 1.56, 0.64, 1)", cx = {
12019
12015
  position: "fixed",
12020
12016
  bottom: "1.5rem",
12021
12017
  left: "50%",
12022
12018
  transform: "translateX(-50%)",
12023
12019
  zIndex: 2147483647,
12024
12020
  pointerEvents: "none"
12025
- }, _x = {
12021
+ }, dx = {
12026
12022
  position: "relative",
12027
12023
  display: "inline-flex",
12028
12024
  pointerEvents: "auto"
12029
- }, px = (e) => ({
12025
+ }, _x = (e) => ({
12030
12026
  width: "48px",
12031
12027
  height: "48px",
12032
12028
  display: "flex",
@@ -12042,7 +12038,7 @@ const by = (e, { reload: t, notify: r }) => {
12042
12038
  opacity: e ? 0 : 1,
12043
12039
  visibility: e ? "hidden" : "visible",
12044
12040
  transition: e ? "transform 0.24s ease, opacity 0.18s ease, visibility 0s 0.24s" : `transform 0.3s ${pp}, opacity 0.2s ease, visibility 0s, box-shadow 0.2s ease`
12045
- }), fx = (e) => ({
12041
+ }), px = (e) => ({
12046
12042
  position: "absolute",
12047
12043
  bottom: 0,
12048
12044
  left: "50%",
@@ -12052,7 +12048,7 @@ const by = (e, { reload: t, notify: r }) => {
12052
12048
  visibility: e ? "visible" : "hidden",
12053
12049
  pointerEvents: e ? "auto" : "none",
12054
12050
  transition: e ? `transform 0.34s ${pp}, opacity 0.22s ease, visibility 0s` : "transform 0.26s ease, opacity 0.2s ease, visibility 0s 0.26s"
12055
- }), mx = `
12051
+ }), fx = `
12056
12052
  .pc-scout-trigger:hover {
12057
12053
  border-color: rgba(61, 53, 43, 0.5);
12058
12054
  }
@@ -12071,39 +12067,39 @@ const by = (e, { reload: t, notify: r }) => {
12071
12067
  .pc-scout-card, .pc-scout-trigger {
12072
12068
  transition: none !important;
12073
12069
  }
12074
- }`, hx = ({ children: e }) => {
12075
- const { open: t, rootRef: r, rootProps: n, triggerProps: o } = cx();
12076
- return /* @__PURE__ */ v.jsxs("div", { style: dx, children: [
12077
- /* @__PURE__ */ v.jsx("style", { children: mx }),
12078
- /* @__PURE__ */ v.jsxs("div", { ref: r, style: _x, ...n, children: [
12070
+ }`, mx = ({ children: e }) => {
12071
+ const { open: t, rootRef: r, rootProps: n, triggerProps: o } = ux();
12072
+ return /* @__PURE__ */ v.jsxs("div", { style: cx, children: [
12073
+ /* @__PURE__ */ v.jsx("style", { children: fx }),
12074
+ /* @__PURE__ */ v.jsxs("div", { ref: r, style: dx, ...n, children: [
12079
12075
  /* @__PURE__ */ v.jsx(
12080
12076
  "button",
12081
12077
  {
12082
12078
  type: "button",
12083
12079
  className: "pc-scout-trigger",
12084
12080
  "aria-label": "Open paper camp",
12085
- style: px(t),
12081
+ style: _x(t),
12086
12082
  "aria-expanded": t,
12087
12083
  ...o,
12088
- children: /* @__PURE__ */ v.jsx(sx, { size: 22 })
12084
+ children: /* @__PURE__ */ v.jsx(ax, { size: 22 })
12089
12085
  }
12090
12086
  ),
12091
- /* @__PURE__ */ v.jsx("div", { className: "pc-scout-card", style: fx(t), "aria-hidden": !t, children: e })
12087
+ /* @__PURE__ */ v.jsx("div", { className: "pc-scout-card", style: px(t), "aria-hidden": !t, children: e })
12092
12088
  ] })
12093
12089
  ] });
12094
- }, gx = "/paper-camp";
12090
+ }, hx = "/paper-camp";
12095
12091
  function fc(e, t, r) {
12096
12092
  const n = new URLSearchParams({ runtime: t, token: e.token });
12097
12093
  return `${e.hostedClientUrl}${r}?${n}`;
12098
12094
  }
12099
- const bx = ({ route: e, origin: t }) => {
12100
- const r = Zh(), n = Ch(), o = Sh(), l = e ?? gx, [i, a] = S.useState(null);
12095
+ const gx = ({ route: e, origin: t }) => {
12096
+ const r = Zh(), n = Ch(), o = Sh(), l = e ?? hx, [i, a] = S.useState(null);
12101
12097
  S.useEffect(() => {
12102
12098
  e0().then(a);
12103
12099
  }, []);
12104
12100
  const s = `${t ?? window.location.origin}${l}`, u = n ? `/plans/${encodeURIComponent(n.title)}` : "/", c = i ? fc(i, s, u) : null, p = i ? fc(i, s, "/diff") : null;
12105
- return /* @__PURE__ */ v.jsx(hx, { children: /* @__PURE__ */ v.jsx(
12106
- ax,
12101
+ return /* @__PURE__ */ v.jsx(mx, { children: /* @__PURE__ */ v.jsx(
12102
+ ix,
12107
12103
  {
12108
12104
  status: r,
12109
12105
  focusPlan: n,
@@ -12113,24 +12109,24 @@ const bx = ({ route: e, origin: t }) => {
12113
12109
  changesUrl: p
12114
12110
  }
12115
12111
  ) });
12116
- }, vl = "paper-camp-toolbar", mc = "paper-camp-fonts", vx = "https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap";
12117
- function yx() {
12112
+ }, vl = "paper-camp-toolbar", mc = "paper-camp-fonts", bx = "https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap";
12113
+ function vx() {
12118
12114
  if (document.getElementById(mc)) return;
12119
12115
  const e = document.createElement("link");
12120
- e.id = mc, e.rel = "stylesheet", e.href = vx, document.head.appendChild(e);
12116
+ e.id = mc, e.rel = "stylesheet", e.href = bx, document.head.appendChild(e);
12121
12117
  }
12122
12118
  var cr;
12123
- class xx extends HTMLElement {
12119
+ class yx extends HTMLElement {
12124
12120
  constructor() {
12125
12121
  super(...arguments);
12126
12122
  js(this, cr, null);
12127
12123
  }
12128
12124
  connectedCallback() {
12129
- yx();
12125
+ vx();
12130
12126
  const r = this.getAttribute(Ei), n = fp(
12131
12127
  document.getElementById(gc)
12132
12128
  );
12133
- r && Ap(n ? `${n}${r}` : r);
12129
+ r && Ip(n ? `${n}${r}` : r);
12134
12130
  const o = this.shadowRoot ?? this.attachShadow({ mode: "open" });
12135
12131
  o.replaceChildren();
12136
12132
  const l = document.createElement("style");
@@ -12138,7 +12134,7 @@ class xx extends HTMLElement {
12138
12134
  const i = document.createElement("style");
12139
12135
  i.textContent = Op.replaceAll(":root", ":root, :host"), o.appendChild(i);
12140
12136
  const a = document.createElement("div");
12141
- a.style.fontFamily = '"Cormorant Garamond", Georgia, serif', o.appendChild(a), Bl(this, cr, M_(a)), Ol(this, cr).render(/* @__PURE__ */ v.jsx(bx, { route: r ?? void 0, origin: n }));
12137
+ a.style.fontFamily = '"Cormorant Garamond", Georgia, serif', o.appendChild(a), Bl(this, cr, M_(a)), Ol(this, cr).render(/* @__PURE__ */ v.jsx(gx, { route: r ?? void 0, origin: n }));
12142
12138
  }
12143
12139
  disconnectedCallback() {
12144
12140
  var r;
@@ -12146,7 +12142,7 @@ class xx extends HTMLElement {
12146
12142
  }
12147
12143
  }
12148
12144
  cr = new WeakMap();
12149
- customElements.get(vl) || customElements.define(vl, xx);
12145
+ customElements.get(vl) || customElements.define(vl, yx);
12150
12146
  var hc;
12151
12147
  if (!document.querySelector(vl)) {
12152
12148
  const e = document.createElement(vl), t = (hc = document.getElementById(gc)) == null ? void 0 : hc.getAttribute(Ei);