jat-feedback 3.2.1 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- var Jr = Object.defineProperty;
1
+ var eo = Object.defineProperty;
2
2
  var Ir = (d) => {
3
3
  throw TypeError(d);
4
4
  };
5
- var Qr = (d, p, h) => p in d ? Jr(d, p, { enumerable: !0, configurable: !0, writable: !0, value: h }) : d[p] = h;
6
- var Ce = (d, p, h) => Qr(d, typeof p != "symbol" ? p + "" : p, h), gr = (d, p, h) => p.has(d) || Ir("Cannot " + h);
7
- var U = (d, p, h) => (gr(d, p, "read from private field"), h ? h.call(d) : p.get(d)), De = (d, p, h) => p.has(d) ? Ir("Cannot add the same private member more than once") : p instanceof WeakSet ? p.add(d) : p.set(d, h), Me = (d, p, h, g) => (gr(d, p, "write to private field"), g ? g.call(d, h) : p.set(d, h), h), ct = (d, p, h) => (gr(d, p, "access private method"), h);
5
+ var to = (d, p, h) => p in d ? eo(d, p, { enumerable: !0, configurable: !0, writable: !0, value: h }) : d[p] = h;
6
+ var Ie = (d, p, h) => to(d, typeof p != "symbol" ? p + "" : p, h), gr = (d, p, h) => p.has(d) || Ir("Cannot " + h);
7
+ var U = (d, p, h) => (gr(d, p, "read from private field"), h ? h.call(d) : p.get(d)), ze = (d, p, h) => p.has(d) ? Ir("Cannot add the same private member more than once") : p instanceof WeakSet ? p.add(d) : p.set(d, h), $e = (d, p, h, g) => (gr(d, p, "write to private field"), g ? g.call(d, h) : p.set(d, h), h), ht = (d, p, h) => (gr(d, p, "access private method"), h);
8
8
  const PUBLIC_VERSION = "5";
9
9
  var Tr;
10
10
  typeof window < "u" && ((Tr = window.__svelte ?? (window.__svelte = {})).v ?? (Tr.v = /* @__PURE__ */ new Set())).add("5");
@@ -28,8 +28,8 @@ function deferred() {
28
28
  const DERIVED = 2, EFFECT = 4, RENDER_EFFECT = 8, MANAGED_EFFECT = 1 << 24, BLOCK_EFFECT = 16, BRANCH_EFFECT = 32, ROOT_EFFECT = 64, BOUNDARY_EFFECT = 128, CONNECTED = 512, CLEAN = 1024, DIRTY = 2048, MAYBE_DIRTY = 4096, INERT = 8192, DESTROYED = 16384, REACTION_RAN = 32768, EFFECT_TRANSPARENT = 65536, EAGER_EFFECT = 1 << 17, HEAD_EFFECT = 1 << 18, EFFECT_PRESERVED = 1 << 19, USER_EFFECT = 1 << 20, EFFECT_OFFSCREEN = 1 << 25, WAS_MARKED = 65536, REACTION_IS_UPDATING = 1 << 21, ASYNC = 1 << 22, ERROR_VALUE = 1 << 23, STATE_SYMBOL = Symbol("$state"), LEGACY_PROPS = Symbol("legacy props"), LOADING_ATTR_SYMBOL = Symbol(""), STALE_REACTION = new class extends Error {
29
29
  constructor() {
30
30
  super(...arguments);
31
- Ce(this, "name", "StaleReactionError");
32
- Ce(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
31
+ Ie(this, "name", "StaleReactionError");
32
+ Ie(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
33
33
  }
34
34
  }();
35
35
  var Rr, Ar;
@@ -240,58 +240,58 @@ function defer_effect(d, p, h) {
240
240
  }
241
241
  const batches = /* @__PURE__ */ new Set();
242
242
  let current_batch = null, previous_batch = null, batch_values = null, queued_root_effects = [], last_scheduled_effect = null, is_flushing = !1, is_flushing_sync = !1;
243
- var kn, Cn, fn, In, Bn, Un, pn, qt, Tn, Ut, mr, vr, zr;
243
+ var En, Sn, dn, kn, Zn, Bn, un, Gt, Cn, jt, mr, vr, zr;
244
244
  const yr = class yr {
245
245
  constructor() {
246
- De(this, Ut);
247
- Ce(this, "committed", !1);
246
+ ze(this, jt);
247
+ Ie(this, "committed", !1);
248
248
  /**
249
249
  * The current values of any sources that are updated in this batch
250
250
  * They keys of this map are identical to `this.#previous`
251
251
  * @type {Map<Source, any>}
252
252
  */
253
- Ce(this, "current", /* @__PURE__ */ new Map());
253
+ Ie(this, "current", /* @__PURE__ */ new Map());
254
254
  /**
255
255
  * The values of any sources that are updated in this batch _before_ those updates took place.
256
256
  * They keys of this map are identical to `this.#current`
257
257
  * @type {Map<Source, any>}
258
258
  */
259
- Ce(this, "previous", /* @__PURE__ */ new Map());
259
+ Ie(this, "previous", /* @__PURE__ */ new Map());
260
260
  /**
261
261
  * When the batch is committed (and the DOM is updated), we need to remove old branches
262
262
  * and append new ones by calling the functions added inside (if/each/key/etc) blocks
263
263
  * @type {Set<() => void>}
264
264
  */
265
- De(this, kn, /* @__PURE__ */ new Set());
265
+ ze(this, En, /* @__PURE__ */ new Set());
266
266
  /**
267
267
  * If a fork is discarded, we need to destroy any effects that are no longer needed
268
268
  * @type {Set<(batch: Batch) => void>}
269
269
  */
270
- De(this, Cn, /* @__PURE__ */ new Set());
270
+ ze(this, Sn, /* @__PURE__ */ new Set());
271
271
  /**
272
272
  * The number of async effects that are currently in flight
273
273
  */
274
- De(this, fn, 0);
274
+ ze(this, dn, 0);
275
275
  /**
276
276
  * The number of async effects that are currently in flight, _not_ inside a pending boundary
277
277
  */
278
- De(this, In, 0);
278
+ ze(this, kn, 0);
279
279
  /**
280
280
  * A deferred that resolves when the batch is committed, used with `settled()`
281
281
  * TODO replace with Promise.withResolvers once supported widely enough
282
282
  * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
283
283
  */
284
- De(this, Bn, null);
284
+ ze(this, Zn, null);
285
285
  /**
286
286
  * Deferred effects (which run after async work has completed) that are DIRTY
287
287
  * @type {Set<Effect>}
288
288
  */
289
- De(this, Un, /* @__PURE__ */ new Set());
289
+ ze(this, Bn, /* @__PURE__ */ new Set());
290
290
  /**
291
291
  * Deferred effects that are MAYBE_DIRTY
292
292
  * @type {Set<Effect>}
293
293
  */
294
- De(this, pn, /* @__PURE__ */ new Set());
294
+ ze(this, un, /* @__PURE__ */ new Set());
295
295
  /**
296
296
  * A map of branches that still exist, but will be destroyed when this batch
297
297
  * is committed — we skip over these during `process`.
@@ -299,19 +299,19 @@ const yr = class yr {
299
299
  * so they can be rescheduled if the branch survives.
300
300
  * @type {Map<Effect, { d: Effect[], m: Effect[] }>}
301
301
  */
302
- De(this, qt, /* @__PURE__ */ new Map());
303
- Ce(this, "is_fork", !1);
304
- De(this, Tn, !1);
302
+ ze(this, Gt, /* @__PURE__ */ new Map());
303
+ Ie(this, "is_fork", !1);
304
+ ze(this, Cn, !1);
305
305
  }
306
306
  is_deferred() {
307
- return this.is_fork || U(this, In) > 0;
307
+ return this.is_fork || U(this, kn) > 0;
308
308
  }
309
309
  /**
310
310
  * Add an effect to the #skipped_branches map and reset its children
311
311
  * @param {Effect} effect
312
312
  */
313
313
  skip_effect(p) {
314
- U(this, qt).has(p) || U(this, qt).set(p, { d: [], m: [] });
314
+ U(this, Gt).has(p) || U(this, Gt).set(p, { d: [], m: [] });
315
315
  }
316
316
  /**
317
317
  * Remove an effect from the #skipped_branches map and reschedule
@@ -319,9 +319,9 @@ const yr = class yr {
319
319
  * @param {Effect} effect
320
320
  */
321
321
  unskip_effect(p) {
322
- var h = U(this, qt).get(p);
322
+ var h = U(this, Gt).get(p);
323
323
  if (h) {
324
- U(this, qt).delete(p);
324
+ U(this, Gt).delete(p);
325
325
  for (var g of h.d)
326
326
  set_signal_status(g, DIRTY), schedule_effect(g);
327
327
  for (g of h.m)
@@ -337,14 +337,14 @@ const yr = class yr {
337
337
  queued_root_effects = [], this.apply();
338
338
  var h = [], g = [];
339
339
  for (const _ of p)
340
- ct(this, Ut, mr).call(this, _, h, g);
340
+ ht(this, jt, mr).call(this, _, h, g);
341
341
  if (this.is_deferred()) {
342
- ct(this, Ut, vr).call(this, g), ct(this, Ut, vr).call(this, h);
343
- for (const [_, b] of U(this, qt))
342
+ ht(this, jt, vr).call(this, g), ht(this, jt, vr).call(this, h);
343
+ for (const [_, b] of U(this, Gt))
344
344
  reset_branch(_, b);
345
345
  } else {
346
- for (const _ of U(this, kn)) _();
347
- U(this, kn).clear(), U(this, fn) === 0 && ct(this, Ut, zr).call(this), previous_batch = this, current_batch = null, flush_queued_effects(g), flush_queued_effects(h), previous_batch = null, (m = U(this, Bn)) == null || m.resolve();
346
+ for (const _ of U(this, En)) _();
347
+ U(this, En).clear(), U(this, dn) === 0 && ht(this, jt, zr).call(this), previous_batch = this, current_batch = null, flush_queued_effects(g), flush_queued_effects(h), previous_batch = null, (m = U(this, Zn)) == null || m.resolve();
348
348
  }
349
349
  batch_values = null;
350
350
  }
@@ -367,46 +367,46 @@ const yr = class yr {
367
367
  if (this.activate(), queued_root_effects.length > 0) {
368
368
  if (flush_effects(), current_batch !== null && current_batch !== this)
369
369
  return;
370
- } else U(this, fn) === 0 && this.process([]);
370
+ } else U(this, dn) === 0 && this.process([]);
371
371
  this.deactivate();
372
372
  }
373
373
  discard() {
374
- for (const p of U(this, Cn)) p(this);
375
- U(this, Cn).clear();
374
+ for (const p of U(this, Sn)) p(this);
375
+ U(this, Sn).clear();
376
376
  }
377
377
  /**
378
378
  *
379
379
  * @param {boolean} blocking
380
380
  */
381
381
  increment(p) {
382
- Me(this, fn, U(this, fn) + 1), p && Me(this, In, U(this, In) + 1);
382
+ $e(this, dn, U(this, dn) + 1), p && $e(this, kn, U(this, kn) + 1);
383
383
  }
384
384
  /**
385
385
  *
386
386
  * @param {boolean} blocking
387
387
  */
388
388
  decrement(p) {
389
- Me(this, fn, U(this, fn) - 1), p && Me(this, In, U(this, In) - 1), !U(this, Tn) && (Me(this, Tn, !0), queue_micro_task(() => {
390
- Me(this, Tn, !1), this.is_deferred() ? queued_root_effects.length > 0 && this.flush() : this.revive();
389
+ $e(this, dn, U(this, dn) - 1), p && $e(this, kn, U(this, kn) - 1), !U(this, Cn) && ($e(this, Cn, !0), queue_micro_task(() => {
390
+ $e(this, Cn, !1), this.is_deferred() ? queued_root_effects.length > 0 && this.flush() : this.revive();
391
391
  }));
392
392
  }
393
393
  revive() {
394
- for (const p of U(this, Un))
395
- U(this, pn).delete(p), set_signal_status(p, DIRTY), schedule_effect(p);
396
- for (const p of U(this, pn))
394
+ for (const p of U(this, Bn))
395
+ U(this, un).delete(p), set_signal_status(p, DIRTY), schedule_effect(p);
396
+ for (const p of U(this, un))
397
397
  set_signal_status(p, MAYBE_DIRTY), schedule_effect(p);
398
398
  this.flush();
399
399
  }
400
400
  /** @param {() => void} fn */
401
401
  oncommit(p) {
402
- U(this, kn).add(p);
402
+ U(this, En).add(p);
403
403
  }
404
404
  /** @param {(batch: Batch) => void} fn */
405
405
  ondiscard(p) {
406
- U(this, Cn).add(p);
406
+ U(this, Sn).add(p);
407
407
  }
408
408
  settled() {
409
- return (U(this, Bn) ?? Me(this, Bn, deferred())).promise;
409
+ return (U(this, Zn) ?? $e(this, Zn, deferred())).promise;
410
410
  }
411
411
  static ensure() {
412
412
  if (current_batch === null) {
@@ -420,7 +420,7 @@ const yr = class yr {
420
420
  apply() {
421
421
  }
422
422
  };
423
- kn = new WeakMap(), Cn = new WeakMap(), fn = new WeakMap(), In = new WeakMap(), Bn = new WeakMap(), Un = new WeakMap(), pn = new WeakMap(), qt = new WeakMap(), Tn = new WeakMap(), Ut = new WeakSet(), /**
423
+ En = new WeakMap(), Sn = new WeakMap(), dn = new WeakMap(), kn = new WeakMap(), Zn = new WeakMap(), Bn = new WeakMap(), un = new WeakMap(), Gt = new WeakMap(), Cn = new WeakMap(), jt = new WeakSet(), /**
424
424
  * Traverse the effect tree, executing effects or stashing
425
425
  * them for later execution as appropriate
426
426
  * @param {Effect} root
@@ -430,9 +430,9 @@ kn = new WeakMap(), Cn = new WeakMap(), fn = new WeakMap(), In = new WeakMap(),
430
430
  mr = function(p, h, g) {
431
431
  p.f ^= CLEAN;
432
432
  for (var m = p.first, _ = null; m !== null; ) {
433
- var b = m.f, y = (b & (BRANCH_EFFECT | ROOT_EFFECT)) !== 0, w = y && (b & CLEAN) !== 0, x = w || (b & INERT) !== 0 || U(this, qt).has(m);
433
+ var b = m.f, y = (b & (BRANCH_EFFECT | ROOT_EFFECT)) !== 0, w = y && (b & CLEAN) !== 0, x = w || (b & INERT) !== 0 || U(this, Gt).has(m);
434
434
  if (!x && m.fn !== null) {
435
- y ? m.f ^= CLEAN : _ !== null && (b & (EFFECT | RENDER_EFFECT | MANAGED_EFFECT)) !== 0 ? _.b.defer_effect(m) : (b & EFFECT) !== 0 ? h.push(m) : is_dirty(m) && ((b & BLOCK_EFFECT) !== 0 && U(this, pn).add(m), update_effect(m));
435
+ y ? m.f ^= CLEAN : _ !== null && (b & (EFFECT | RENDER_EFFECT | MANAGED_EFFECT)) !== 0 ? _.b.defer_effect(m) : (b & EFFECT) !== 0 ? h.push(m) : is_dirty(m) && ((b & BLOCK_EFFECT) !== 0 && U(this, un).add(m), update_effect(m));
436
436
  var E = m.first;
437
437
  if (E !== null) {
438
438
  m = E;
@@ -448,7 +448,7 @@ mr = function(p, h, g) {
448
448
  */
449
449
  vr = function(p) {
450
450
  for (var h = 0; h < p.length; h += 1)
451
- defer_effect(p[h], U(this, Un), U(this, pn));
451
+ defer_effect(p[h], U(this, Bn), U(this, un));
452
452
  }, zr = function() {
453
453
  var m;
454
454
  if (batches.size > 1) {
@@ -480,7 +480,7 @@ vr = function(p) {
480
480
  if (queued_root_effects.length > 0) {
481
481
  current_batch = _, _.apply();
482
482
  for (const E of queued_root_effects)
483
- ct(m = _, Ut, mr).call(m, E, [], []);
483
+ ht(m = _, jt, mr).call(m, E, [], []);
484
484
  _.deactivate();
485
485
  }
486
486
  queued_root_effects = g;
@@ -624,7 +624,7 @@ var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED | BOUNDARY_EFFECT;
624
624
  function boundary(d, p, h) {
625
625
  new Boundary(d, p, h);
626
626
  }
627
- var St, jn, Ft, hn, Pt, It, yt, Zt, Yt, rn, gn, Kt, Rn, mn, An, Nn, Xt, tr, it, Or, Dr, _r, Qn, er, br;
627
+ var It, Un, Pt, fn, Zt, Rt, Et, Bt, Ht, tn, pn, qt, In, hn, Tn, Rn, Yt, tr, at, Or, Dr, _r, Qn, er, br;
628
628
  class Boundary {
629
629
  /**
630
630
  * @param {TemplateNode} node
@@ -632,38 +632,38 @@ class Boundary {
632
632
  * @param {((anchor: Node) => void)} children
633
633
  */
634
634
  constructor(p, h, g) {
635
- De(this, it);
635
+ ze(this, at);
636
636
  /** @type {Boundary | null} */
637
- Ce(this, "parent");
638
- Ce(this, "is_pending", !1);
637
+ Ie(this, "parent");
638
+ Ie(this, "is_pending", !1);
639
639
  /** @type {TemplateNode} */
640
- De(this, St);
640
+ ze(this, It);
641
641
  /** @type {TemplateNode | null} */
642
- De(this, jn, hydrating ? hydrate_node : null);
642
+ ze(this, Un, hydrating ? hydrate_node : null);
643
643
  /** @type {BoundaryProps} */
644
- De(this, Ft);
644
+ ze(this, Pt);
645
645
  /** @type {((anchor: Node) => void)} */
646
- De(this, hn);
646
+ ze(this, fn);
647
647
  /** @type {Effect} */
648
- De(this, Pt);
648
+ ze(this, Zt);
649
649
  /** @type {Effect | null} */
650
- De(this, It, null);
650
+ ze(this, Rt, null);
651
651
  /** @type {Effect | null} */
652
- De(this, yt, null);
652
+ ze(this, Et, null);
653
653
  /** @type {Effect | null} */
654
- De(this, Zt, null);
654
+ ze(this, Bt, null);
655
655
  /** @type {DocumentFragment | null} */
656
- De(this, Yt, null);
656
+ ze(this, Ht, null);
657
657
  /** @type {TemplateNode | null} */
658
- De(this, rn, null);
659
- De(this, gn, 0);
660
- De(this, Kt, 0);
661
- De(this, Rn, !1);
662
- De(this, mn, !1);
658
+ ze(this, tn, null);
659
+ ze(this, pn, 0);
660
+ ze(this, qt, 0);
661
+ ze(this, In, !1);
662
+ ze(this, hn, !1);
663
663
  /** @type {Set<Effect>} */
664
- De(this, An, /* @__PURE__ */ new Set());
664
+ ze(this, Tn, /* @__PURE__ */ new Set());
665
665
  /** @type {Set<Effect>} */
666
- De(this, Nn, /* @__PURE__ */ new Set());
666
+ ze(this, Rn, /* @__PURE__ */ new Set());
667
667
  /**
668
668
  * A source containing the number of pending async deriveds/expressions.
669
669
  * Only created if `$effect.pending()` is used inside the boundary,
@@ -671,38 +671,38 @@ class Boundary {
671
671
  * calls followed by no-op flushes
672
672
  * @type {Source<number> | null}
673
673
  */
674
- De(this, Xt, null);
675
- De(this, tr, createSubscriber(() => (Me(this, Xt, source(U(this, gn))), () => {
676
- Me(this, Xt, null);
674
+ ze(this, Yt, null);
675
+ ze(this, tr, createSubscriber(() => ($e(this, Yt, source(U(this, pn))), () => {
676
+ $e(this, Yt, null);
677
677
  })));
678
- Me(this, St, p), Me(this, Ft, h), Me(this, hn, g), this.parent = /** @type {Effect} */
679
- active_effect.b, this.is_pending = !!U(this, Ft).pending, Me(this, Pt, block(() => {
678
+ $e(this, It, p), $e(this, Pt, h), $e(this, fn, g), this.parent = /** @type {Effect} */
679
+ active_effect.b, this.is_pending = !!U(this, Pt).pending, $e(this, Zt, block(() => {
680
680
  if (active_effect.b = this, hydrating) {
681
- const _ = U(this, jn);
681
+ const _ = U(this, Un);
682
682
  hydrate_next(), /** @type {Comment} */
683
683
  _.nodeType === COMMENT_NODE && /** @type {Comment} */
684
- _.data === HYDRATION_START_ELSE ? ct(this, it, Dr).call(this) : (ct(this, it, Or).call(this), U(this, Kt) === 0 && (this.is_pending = !1));
684
+ _.data === HYDRATION_START_ELSE ? ht(this, at, Dr).call(this) : (ht(this, at, Or).call(this), U(this, qt) === 0 && (this.is_pending = !1));
685
685
  } else {
686
- var m = ct(this, it, _r).call(this);
686
+ var m = ht(this, at, _r).call(this);
687
687
  try {
688
- Me(this, It, branch(() => g(m)));
688
+ $e(this, Rt, branch(() => g(m)));
689
689
  } catch (_) {
690
690
  this.error(_);
691
691
  }
692
- U(this, Kt) > 0 ? ct(this, it, er).call(this) : this.is_pending = !1;
692
+ U(this, qt) > 0 ? ht(this, at, er).call(this) : this.is_pending = !1;
693
693
  }
694
694
  return () => {
695
695
  var _;
696
- (_ = U(this, rn)) == null || _.remove();
696
+ (_ = U(this, tn)) == null || _.remove();
697
697
  };
698
- }, flags)), hydrating && Me(this, St, hydrate_node);
698
+ }, flags)), hydrating && $e(this, It, hydrate_node);
699
699
  }
700
700
  /**
701
701
  * Defer an effect inside a pending boundary until the boundary resolves
702
702
  * @param {Effect} effect
703
703
  */
704
704
  defer_effect(p) {
705
- defer_effect(p, U(this, An), U(this, Nn));
705
+ defer_effect(p, U(this, Tn), U(this, Rn));
706
706
  }
707
707
  /**
708
708
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -712,7 +712,7 @@ class Boundary {
712
712
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
713
713
  }
714
714
  has_pending_snippet() {
715
- return !!U(this, Ft).pending;
715
+ return !!U(this, Pt).pending;
716
716
  }
717
717
  /**
718
718
  * Update the source that powers `$effect.pending()` inside this boundary,
@@ -721,25 +721,25 @@ class Boundary {
721
721
  * @param {1 | -1} d
722
722
  */
723
723
  update_pending_count(p) {
724
- ct(this, it, br).call(this, p), Me(this, gn, U(this, gn) + p), !(!U(this, Xt) || U(this, Rn)) && (Me(this, Rn, !0), queue_micro_task(() => {
725
- Me(this, Rn, !1), U(this, Xt) && internal_set(U(this, Xt), U(this, gn));
724
+ ht(this, at, br).call(this, p), $e(this, pn, U(this, pn) + p), !(!U(this, Yt) || U(this, In)) && ($e(this, In, !0), queue_micro_task(() => {
725
+ $e(this, In, !1), U(this, Yt) && internal_set(U(this, Yt), U(this, pn));
726
726
  }));
727
727
  }
728
728
  get_effect_pending() {
729
729
  return U(this, tr).call(this), get(
730
730
  /** @type {Source<number>} */
731
- U(this, Xt)
731
+ U(this, Yt)
732
732
  );
733
733
  }
734
734
  /** @param {unknown} error */
735
735
  error(p) {
736
- var h = U(this, Ft).onerror;
737
- let g = U(this, Ft).failed;
738
- if (U(this, mn) || !h && !g)
736
+ var h = U(this, Pt).onerror;
737
+ let g = U(this, Pt).failed;
738
+ if (U(this, hn) || !h && !g)
739
739
  throw p;
740
- U(this, It) && (destroy_effect(U(this, It)), Me(this, It, null)), U(this, yt) && (destroy_effect(U(this, yt)), Me(this, yt, null)), U(this, Zt) && (destroy_effect(U(this, Zt)), Me(this, Zt, null)), hydrating && (set_hydrate_node(
740
+ U(this, Rt) && (destroy_effect(U(this, Rt)), $e(this, Rt, null)), U(this, Et) && (destroy_effect(U(this, Et)), $e(this, Et, null)), U(this, Bt) && (destroy_effect(U(this, Bt)), $e(this, Bt, null)), hydrating && (set_hydrate_node(
741
741
  /** @type {TemplateNode} */
742
- U(this, jn)
742
+ U(this, Un)
743
743
  ), next(), set_hydrate_node(skip_nodes()));
744
744
  var m = !1, _ = !1;
745
745
  const b = () => {
@@ -747,22 +747,22 @@ class Boundary {
747
747
  svelte_boundary_reset_noop();
748
748
  return;
749
749
  }
750
- m = !0, _ && svelte_boundary_reset_onerror(), Batch.ensure(), Me(this, gn, 0), U(this, Zt) !== null && pause_effect(U(this, Zt), () => {
751
- Me(this, Zt, null);
752
- }), this.is_pending = this.has_pending_snippet(), Me(this, It, ct(this, it, Qn).call(this, () => (Me(this, mn, !1), branch(() => U(this, hn).call(this, U(this, St)))))), U(this, Kt) > 0 ? ct(this, it, er).call(this) : this.is_pending = !1;
750
+ m = !0, _ && svelte_boundary_reset_onerror(), Batch.ensure(), $e(this, pn, 0), U(this, Bt) !== null && pause_effect(U(this, Bt), () => {
751
+ $e(this, Bt, null);
752
+ }), this.is_pending = this.has_pending_snippet(), $e(this, Rt, ht(this, at, Qn).call(this, () => ($e(this, hn, !1), branch(() => U(this, fn).call(this, U(this, It)))))), U(this, qt) > 0 ? ht(this, at, er).call(this) : this.is_pending = !1;
753
753
  };
754
754
  queue_micro_task(() => {
755
755
  try {
756
756
  _ = !0, h == null || h(p, b), _ = !1;
757
757
  } catch (y) {
758
- invoke_error_boundary(y, U(this, Pt) && U(this, Pt).parent);
758
+ invoke_error_boundary(y, U(this, Zt) && U(this, Zt).parent);
759
759
  }
760
- g && Me(this, Zt, ct(this, it, Qn).call(this, () => {
761
- Batch.ensure(), Me(this, mn, !0);
760
+ g && $e(this, Bt, ht(this, at, Qn).call(this, () => {
761
+ Batch.ensure(), $e(this, hn, !0);
762
762
  try {
763
763
  return branch(() => {
764
764
  g(
765
- U(this, St),
765
+ U(this, It),
766
766
  () => p,
767
767
  () => b
768
768
  );
@@ -771,42 +771,42 @@ class Boundary {
771
771
  return invoke_error_boundary(
772
772
  y,
773
773
  /** @type {Effect} */
774
- U(this, Pt).parent
774
+ U(this, Zt).parent
775
775
  ), null;
776
776
  } finally {
777
- Me(this, mn, !1);
777
+ $e(this, hn, !1);
778
778
  }
779
779
  }));
780
780
  });
781
781
  }
782
782
  }
783
- St = new WeakMap(), jn = new WeakMap(), Ft = new WeakMap(), hn = new WeakMap(), Pt = new WeakMap(), It = new WeakMap(), yt = new WeakMap(), Zt = new WeakMap(), Yt = new WeakMap(), rn = new WeakMap(), gn = new WeakMap(), Kt = new WeakMap(), Rn = new WeakMap(), mn = new WeakMap(), An = new WeakMap(), Nn = new WeakMap(), Xt = new WeakMap(), tr = new WeakMap(), it = new WeakSet(), Or = function() {
783
+ It = new WeakMap(), Un = new WeakMap(), Pt = new WeakMap(), fn = new WeakMap(), Zt = new WeakMap(), Rt = new WeakMap(), Et = new WeakMap(), Bt = new WeakMap(), Ht = new WeakMap(), tn = new WeakMap(), pn = new WeakMap(), qt = new WeakMap(), In = new WeakMap(), hn = new WeakMap(), Tn = new WeakMap(), Rn = new WeakMap(), Yt = new WeakMap(), tr = new WeakMap(), at = new WeakSet(), Or = function() {
784
784
  try {
785
- Me(this, It, branch(() => U(this, hn).call(this, U(this, St))));
785
+ $e(this, Rt, branch(() => U(this, fn).call(this, U(this, It))));
786
786
  } catch (p) {
787
787
  this.error(p);
788
788
  }
789
789
  }, Dr = function() {
790
- const p = U(this, Ft).pending;
791
- p && (Me(this, yt, branch(() => p(U(this, St)))), queue_micro_task(() => {
792
- var h = ct(this, it, _r).call(this);
793
- Me(this, It, ct(this, it, Qn).call(this, () => (Batch.ensure(), branch(() => U(this, hn).call(this, h))))), U(this, Kt) > 0 ? ct(this, it, er).call(this) : (pause_effect(
790
+ const p = U(this, Pt).pending;
791
+ p && ($e(this, Et, branch(() => p(U(this, It)))), queue_micro_task(() => {
792
+ var h = ht(this, at, _r).call(this);
793
+ $e(this, Rt, ht(this, at, Qn).call(this, () => (Batch.ensure(), branch(() => U(this, fn).call(this, h))))), U(this, qt) > 0 ? ht(this, at, er).call(this) : (pause_effect(
794
794
  /** @type {Effect} */
795
- U(this, yt),
795
+ U(this, Et),
796
796
  () => {
797
- Me(this, yt, null);
797
+ $e(this, Et, null);
798
798
  }
799
799
  ), this.is_pending = !1);
800
800
  }));
801
801
  }, _r = function() {
802
- var p = U(this, St);
803
- return this.is_pending && (Me(this, rn, create_text()), U(this, St).before(U(this, rn)), p = U(this, rn)), p;
802
+ var p = U(this, It);
803
+ return this.is_pending && ($e(this, tn, create_text()), U(this, It).before(U(this, tn)), p = U(this, tn)), p;
804
804
  }, /**
805
805
  * @param {() => Effect | null} fn
806
806
  */
807
807
  Qn = function(p) {
808
808
  var h = active_effect, g = active_reaction, m = component_context;
809
- set_active_effect(U(this, Pt)), set_active_reaction(U(this, Pt)), set_component_context(U(this, Pt).ctx);
809
+ set_active_effect(U(this, Zt)), set_active_reaction(U(this, Zt)), set_component_context(U(this, Zt).ctx);
810
810
  try {
811
811
  return p();
812
812
  } catch (_) {
@@ -817,12 +817,12 @@ Qn = function(p) {
817
817
  }, er = function() {
818
818
  const p = (
819
819
  /** @type {(anchor: Node) => void} */
820
- U(this, Ft).pending
820
+ U(this, Pt).pending
821
821
  );
822
- U(this, It) !== null && (Me(this, Yt, document.createDocumentFragment()), U(this, Yt).append(
822
+ U(this, Rt) !== null && ($e(this, Ht, document.createDocumentFragment()), U(this, Ht).append(
823
823
  /** @type {TemplateNode} */
824
- U(this, rn)
825
- ), move_effect(U(this, It), U(this, Yt))), U(this, yt) === null && Me(this, yt, branch(() => p(U(this, St))));
824
+ U(this, tn)
825
+ ), move_effect(U(this, Rt), U(this, Ht))), U(this, Et) === null && $e(this, Et, branch(() => p(U(this, It))));
826
826
  }, /**
827
827
  * Updates the pending count associated with the currently visible pending snippet,
828
828
  * if any, such that we can replace the snippet with content once work is done
@@ -831,18 +831,18 @@ Qn = function(p) {
831
831
  br = function(p) {
832
832
  var h;
833
833
  if (!this.has_pending_snippet()) {
834
- this.parent && ct(h = this.parent, it, br).call(h, p);
834
+ this.parent && ht(h = this.parent, at, br).call(h, p);
835
835
  return;
836
836
  }
837
- if (Me(this, Kt, U(this, Kt) + p), U(this, Kt) === 0) {
837
+ if ($e(this, qt, U(this, qt) + p), U(this, qt) === 0) {
838
838
  this.is_pending = !1;
839
- for (const g of U(this, An))
839
+ for (const g of U(this, Tn))
840
840
  set_signal_status(g, DIRTY), schedule_effect(g);
841
- for (const g of U(this, Nn))
841
+ for (const g of U(this, Rn))
842
842
  set_signal_status(g, MAYBE_DIRTY), schedule_effect(g);
843
- U(this, An).clear(), U(this, Nn).clear(), U(this, yt) && pause_effect(U(this, yt), () => {
844
- Me(this, yt, null);
845
- }), U(this, Yt) && (U(this, St).before(U(this, Yt)), Me(this, Yt, null));
843
+ U(this, Tn).clear(), U(this, Rn).clear(), U(this, Et) && pause_effect(U(this, Et), () => {
844
+ $e(this, Et, null);
845
+ }), U(this, Ht) && (U(this, It).before(U(this, Ht)), $e(this, Ht, null));
846
846
  }
847
847
  };
848
848
  function flatten(d, p, h, g) {
@@ -2153,7 +2153,7 @@ function unmount(d, p) {
2153
2153
  const h = mounted_components.get(d);
2154
2154
  return h ? (mounted_components.delete(d), h(p)) : Promise.resolve();
2155
2155
  }
2156
- var $t, Bt, kt, vn, Wn, Vn, nr;
2156
+ var Ot, Ut, Tt, gn, jn, Wn, nr;
2157
2157
  class BranchManager {
2158
2158
  /**
2159
2159
  * @param {TemplateNode} anchor
@@ -2161,9 +2161,9 @@ class BranchManager {
2161
2161
  */
2162
2162
  constructor(p, h = !0) {
2163
2163
  /** @type {TemplateNode} */
2164
- Ce(this, "anchor");
2164
+ Ie(this, "anchor");
2165
2165
  /** @type {Map<Batch, Key>} */
2166
- De(this, $t, /* @__PURE__ */ new Map());
2166
+ ze(this, Ot, /* @__PURE__ */ new Map());
2167
2167
  /**
2168
2168
  * Map of keys to effects that are currently rendered in the DOM.
2169
2169
  * These effects are visible and actively part of the document tree.
@@ -2178,69 +2178,69 @@ class BranchManager {
2178
2178
  * Can result in the entries `true->Effect` and `false->Effect`
2179
2179
  * @type {Map<Key, Effect>}
2180
2180
  */
2181
- De(this, Bt, /* @__PURE__ */ new Map());
2181
+ ze(this, Ut, /* @__PURE__ */ new Map());
2182
2182
  /**
2183
2183
  * Similar to #onscreen with respect to the keys, but contains branches that are not yet
2184
2184
  * in the DOM, because their insertion is deferred.
2185
2185
  * @type {Map<Key, Branch>}
2186
2186
  */
2187
- De(this, kt, /* @__PURE__ */ new Map());
2187
+ ze(this, Tt, /* @__PURE__ */ new Map());
2188
2188
  /**
2189
2189
  * Keys of effects that are currently outroing
2190
2190
  * @type {Set<Key>}
2191
2191
  */
2192
- De(this, vn, /* @__PURE__ */ new Set());
2192
+ ze(this, gn, /* @__PURE__ */ new Set());
2193
2193
  /**
2194
2194
  * Whether to pause (i.e. outro) on change, or destroy immediately.
2195
2195
  * This is necessary for `<svelte:element>`
2196
2196
  */
2197
- De(this, Wn, !0);
2198
- De(this, Vn, () => {
2197
+ ze(this, jn, !0);
2198
+ ze(this, Wn, () => {
2199
2199
  var p = (
2200
2200
  /** @type {Batch} */
2201
2201
  current_batch
2202
2202
  );
2203
- if (U(this, $t).has(p)) {
2203
+ if (U(this, Ot).has(p)) {
2204
2204
  var h = (
2205
2205
  /** @type {Key} */
2206
- U(this, $t).get(p)
2207
- ), g = U(this, Bt).get(h);
2206
+ U(this, Ot).get(p)
2207
+ ), g = U(this, Ut).get(h);
2208
2208
  if (g)
2209
- resume_effect(g), U(this, vn).delete(h);
2209
+ resume_effect(g), U(this, gn).delete(h);
2210
2210
  else {
2211
- var m = U(this, kt).get(h);
2212
- m && (U(this, Bt).set(h, m.effect), U(this, kt).delete(h), m.fragment.lastChild.remove(), this.anchor.before(m.fragment), g = m.effect);
2211
+ var m = U(this, Tt).get(h);
2212
+ m && (U(this, Ut).set(h, m.effect), U(this, Tt).delete(h), m.fragment.lastChild.remove(), this.anchor.before(m.fragment), g = m.effect);
2213
2213
  }
2214
- for (const [_, b] of U(this, $t)) {
2215
- if (U(this, $t).delete(_), _ === p)
2214
+ for (const [_, b] of U(this, Ot)) {
2215
+ if (U(this, Ot).delete(_), _ === p)
2216
2216
  break;
2217
- const y = U(this, kt).get(b);
2218
- y && (destroy_effect(y.effect), U(this, kt).delete(b));
2217
+ const y = U(this, Tt).get(b);
2218
+ y && (destroy_effect(y.effect), U(this, Tt).delete(b));
2219
2219
  }
2220
- for (const [_, b] of U(this, Bt)) {
2221
- if (_ === h || U(this, vn).has(_)) continue;
2220
+ for (const [_, b] of U(this, Ut)) {
2221
+ if (_ === h || U(this, gn).has(_)) continue;
2222
2222
  const y = () => {
2223
- if (Array.from(U(this, $t).values()).includes(_)) {
2223
+ if (Array.from(U(this, Ot).values()).includes(_)) {
2224
2224
  var x = document.createDocumentFragment();
2225
- move_effect(b, x), x.append(create_text()), U(this, kt).set(_, { effect: b, fragment: x });
2225
+ move_effect(b, x), x.append(create_text()), U(this, Tt).set(_, { effect: b, fragment: x });
2226
2226
  } else
2227
2227
  destroy_effect(b);
2228
- U(this, vn).delete(_), U(this, Bt).delete(_);
2228
+ U(this, gn).delete(_), U(this, Ut).delete(_);
2229
2229
  };
2230
- U(this, Wn) || !g ? (U(this, vn).add(_), pause_effect(b, y, !1)) : y();
2230
+ U(this, jn) || !g ? (U(this, gn).add(_), pause_effect(b, y, !1)) : y();
2231
2231
  }
2232
2232
  }
2233
2233
  });
2234
2234
  /**
2235
2235
  * @param {Batch} batch
2236
2236
  */
2237
- De(this, nr, (p) => {
2238
- U(this, $t).delete(p);
2239
- const h = Array.from(U(this, $t).values());
2240
- for (const [g, m] of U(this, kt))
2241
- h.includes(g) || (destroy_effect(m.effect), U(this, kt).delete(g));
2237
+ ze(this, nr, (p) => {
2238
+ U(this, Ot).delete(p);
2239
+ const h = Array.from(U(this, Ot).values());
2240
+ for (const [g, m] of U(this, Tt))
2241
+ h.includes(g) || (destroy_effect(m.effect), U(this, Tt).delete(g));
2242
2242
  });
2243
- this.anchor = p, Me(this, Wn, h);
2243
+ this.anchor = p, $e(this, jn, h);
2244
2244
  }
2245
2245
  /**
2246
2246
  *
@@ -2252,29 +2252,29 @@ class BranchManager {
2252
2252
  /** @type {Batch} */
2253
2253
  current_batch
2254
2254
  ), m = should_defer_append();
2255
- if (h && !U(this, Bt).has(p) && !U(this, kt).has(p))
2255
+ if (h && !U(this, Ut).has(p) && !U(this, Tt).has(p))
2256
2256
  if (m) {
2257
2257
  var _ = document.createDocumentFragment(), b = create_text();
2258
- _.append(b), U(this, kt).set(p, {
2258
+ _.append(b), U(this, Tt).set(p, {
2259
2259
  effect: branch(() => h(b)),
2260
2260
  fragment: _
2261
2261
  });
2262
2262
  } else
2263
- U(this, Bt).set(
2263
+ U(this, Ut).set(
2264
2264
  p,
2265
2265
  branch(() => h(this.anchor))
2266
2266
  );
2267
- if (U(this, $t).set(g, p), m) {
2268
- for (const [y, w] of U(this, Bt))
2267
+ if (U(this, Ot).set(g, p), m) {
2268
+ for (const [y, w] of U(this, Ut))
2269
2269
  y === p ? g.unskip_effect(w) : g.skip_effect(w);
2270
- for (const [y, w] of U(this, kt))
2270
+ for (const [y, w] of U(this, Tt))
2271
2271
  y === p ? g.unskip_effect(w.effect) : g.skip_effect(w.effect);
2272
- g.oncommit(U(this, Vn)), g.ondiscard(U(this, nr));
2272
+ g.oncommit(U(this, Wn)), g.ondiscard(U(this, nr));
2273
2273
  } else
2274
- hydrating && (this.anchor = hydrate_node), U(this, Vn).call(this);
2274
+ hydrating && (this.anchor = hydrate_node), U(this, Wn).call(this);
2275
2275
  }
2276
2276
  }
2277
- $t = new WeakMap(), Bt = new WeakMap(), kt = new WeakMap(), vn = new WeakMap(), Wn = new WeakMap(), Vn = new WeakMap(), nr = new WeakMap();
2277
+ Ot = new WeakMap(), Ut = new WeakMap(), Tt = new WeakMap(), gn = new WeakMap(), jn = new WeakMap(), Wn = new WeakMap(), nr = new WeakMap();
2278
2278
  function onMount(d) {
2279
2279
  component_context === null && lifecycle_outside_component(), user_effect(() => {
2280
2280
  const p = untrack(d);
@@ -2401,17 +2401,17 @@ function each(d, p, h, g, m, _ = null) {
2401
2401
  hydrating && hydrate_node.nodeType === COMMENT_NODE && /** @type {Comment} */
2402
2402
  hydrate_node.data === HYDRATION_END && (b = /** @type {Comment} */
2403
2403
  hydrate_node, N = !0, set_hydrating(!1));
2404
- var q = k[Y], de = g(q, Y), oe = I ? null : y.get(de);
2404
+ var q = k[Y], ue = g(q, Y), oe = I ? null : y.get(ue);
2405
2405
  oe ? (oe.v && internal_set(oe.v, q), oe.i && internal_set(oe.i, Y), j && F.unskip_effect(oe.e)) : (oe = create_item(
2406
2406
  y,
2407
2407
  I ? b : offscreen_anchor ?? (offscreen_anchor = create_text()),
2408
2408
  q,
2409
- de,
2409
+ ue,
2410
2410
  Y,
2411
2411
  m,
2412
2412
  p,
2413
2413
  h
2414
- ), I || (oe.e.f |= EFFECT_OFFSCREEN), y.set(de, oe)), O.add(de);
2414
+ ), I || (oe.e.f |= EFFECT_OFFSCREEN), y.set(ue, oe)), O.add(ue);
2415
2415
  }
2416
2416
  if (C === 0 && _ && !E && (I ? E = branch(() => _(b)) : (E = branch(() => _(offscreen_anchor ?? (offscreen_anchor = create_text()))), E.f |= EFFECT_OFFSCREEN)), C > O.size && each_key_duplicate(), hydrating && C > 0 && set_hydrate_node(skip_nodes()), !I)
2417
2417
  if (j) {
@@ -2431,7 +2431,7 @@ function skip_to_branch(d) {
2431
2431
  return d;
2432
2432
  }
2433
2433
  function reconcile(d, p, h, g, m) {
2434
- var oe, ce, se, ye, ve, Re, Ee, me, Se;
2434
+ var oe, ce, se, xe, ve, Re, ke, me, Ce;
2435
2435
  var _ = (g & EACH_IS_ANIMATED) !== 0, b = p.length, y = d.items, w = skip_to_branch(d.effect.first), x, E = null, S, k = [], I = [], R, M, A, C;
2436
2436
  if (_)
2437
2437
  for (C = 0; C < b; C += 1)
@@ -2450,7 +2450,7 @@ function reconcile(d, p, h, g, m) {
2450
2450
  A === d.effect.last && (d.effect.last = A.prev), A.prev && (A.prev.next = A.next), A.next && (A.next.prev = A.prev), link(d, E, A), link(d, A, N), move(A, N, h), E = A, k = [], I = [], w = skip_to_branch(E.next);
2451
2451
  continue;
2452
2452
  }
2453
- if ((A.f & INERT) !== 0 && (resume_effect(A), _ && ((ye = (se = A.nodes) == null ? void 0 : se.a) == null || ye.unfix(), (S ?? (S = /* @__PURE__ */ new Set())).delete(A))), A !== w) {
2453
+ if ((A.f & INERT) !== 0 && (resume_effect(A), _ && ((xe = (se = A.nodes) == null ? void 0 : se.a) == null || xe.unfix(), (S ?? (S = /* @__PURE__ */ new Set())).delete(A))), A !== w) {
2454
2454
  if (x !== void 0 && x.has(A)) {
2455
2455
  if (k.length < I.length) {
2456
2456
  var $ = I[0], O;
@@ -2486,14 +2486,14 @@ function reconcile(d, p, h, g, m) {
2486
2486
  (w.f & INERT) === 0 && w !== d.fallback && Y.push(w), w = skip_to_branch(w.next);
2487
2487
  var q = Y.length;
2488
2488
  if (q > 0) {
2489
- var de = (g & EACH_IS_CONTROLLED) !== 0 && b === 0 ? h : null;
2489
+ var ue = (g & EACH_IS_CONTROLLED) !== 0 && b === 0 ? h : null;
2490
2490
  if (_) {
2491
2491
  for (C = 0; C < q; C += 1)
2492
- (Ee = (Re = Y[C].nodes) == null ? void 0 : Re.a) == null || Ee.measure();
2492
+ (ke = (Re = Y[C].nodes) == null ? void 0 : Re.a) == null || ke.measure();
2493
2493
  for (C = 0; C < q; C += 1)
2494
- (Se = (me = Y[C].nodes) == null ? void 0 : me.a) == null || Se.fix();
2494
+ (Ce = (me = Y[C].nodes) == null ? void 0 : me.a) == null || Ce.fix();
2495
2495
  }
2496
- pause_effects(d, Y, de);
2496
+ pause_effects(d, Y, ue);
2497
2497
  }
2498
2498
  }
2499
2499
  _ && queue_micro_task(() => {
@@ -2723,16 +2723,16 @@ function animate(d, p, h, g, m) {
2723
2723
  $.push(q), O || (O = q.overflow === "hidden");
2724
2724
  }
2725
2725
  O && (d.style.overflow = "hidden"), R = () => {
2726
- var de = (
2726
+ var ue = (
2727
2727
  /** @type {number} */
2728
2728
  /** @type {globalThis.Animation} */
2729
2729
  M.currentTime
2730
2730
  );
2731
- return A + C * S(de / N);
2731
+ return A + C * S(ue / N);
2732
2732
  }, E && loop(() => {
2733
2733
  if (M.playState !== "running") return !1;
2734
- var de = R();
2735
- return E(de, 1 - de), !0;
2734
+ var ue = R();
2735
+ return E(ue, 1 - ue), !0;
2736
2736
  });
2737
2737
  }
2738
2738
  M = d.animate($, { duration: N, fill: "forwards" }), M.onfinish = () => {
@@ -3049,7 +3049,7 @@ function prop(d, p, h, g) {
3049
3049
  function createClassComponent(d) {
3050
3050
  return new Svelte4Component(d);
3051
3051
  }
3052
- var Jt, Tt;
3052
+ var Kt, At;
3053
3053
  class Svelte4Component {
3054
3054
  /**
3055
3055
  * @param {ComponentConstructorOptions & {
@@ -3058,9 +3058,9 @@ class Svelte4Component {
3058
3058
  */
3059
3059
  constructor(p) {
3060
3060
  /** @type {any} */
3061
- De(this, Jt);
3061
+ ze(this, Kt);
3062
3062
  /** @type {Record<string, any>} */
3063
- De(this, Tt);
3063
+ ze(this, At);
3064
3064
  var _;
3065
3065
  var h = /* @__PURE__ */ new Map(), g = (b, y) => {
3066
3066
  var w = /* @__PURE__ */ mutable_source(y, !1, !1);
@@ -3080,35 +3080,35 @@ class Svelte4Component {
3080
3080
  }
3081
3081
  }
3082
3082
  );
3083
- Me(this, Tt, (p.hydrate ? hydrate : mount)(p.component, {
3083
+ $e(this, At, (p.hydrate ? hydrate : mount)(p.component, {
3084
3084
  target: p.target,
3085
3085
  anchor: p.anchor,
3086
3086
  props: m,
3087
3087
  context: p.context,
3088
3088
  intro: p.intro ?? !1,
3089
3089
  recover: p.recover
3090
- })), (!((_ = p == null ? void 0 : p.props) != null && _.$$host) || p.sync === !1) && flushSync(), Me(this, Jt, m.$$events);
3091
- for (const b of Object.keys(U(this, Tt)))
3090
+ })), (!((_ = p == null ? void 0 : p.props) != null && _.$$host) || p.sync === !1) && flushSync(), $e(this, Kt, m.$$events);
3091
+ for (const b of Object.keys(U(this, At)))
3092
3092
  b === "$set" || b === "$destroy" || b === "$on" || define_property(this, b, {
3093
3093
  get() {
3094
- return U(this, Tt)[b];
3094
+ return U(this, At)[b];
3095
3095
  },
3096
3096
  /** @param {any} value */
3097
3097
  set(y) {
3098
- U(this, Tt)[b] = y;
3098
+ U(this, At)[b] = y;
3099
3099
  },
3100
3100
  enumerable: !0
3101
3101
  });
3102
- U(this, Tt).$set = /** @param {Record<string, any>} next */
3102
+ U(this, At).$set = /** @param {Record<string, any>} next */
3103
3103
  (b) => {
3104
3104
  Object.assign(m, b);
3105
- }, U(this, Tt).$destroy = () => {
3106
- unmount(U(this, Tt));
3105
+ }, U(this, At).$destroy = () => {
3106
+ unmount(U(this, At));
3107
3107
  };
3108
3108
  }
3109
3109
  /** @param {Record<string, any>} props */
3110
3110
  $set(p) {
3111
- U(this, Tt).$set(p);
3111
+ U(this, At).$set(p);
3112
3112
  }
3113
3113
  /**
3114
3114
  * @param {string} event
@@ -3116,20 +3116,20 @@ class Svelte4Component {
3116
3116
  * @returns {any}
3117
3117
  */
3118
3118
  $on(p, h) {
3119
- U(this, Jt)[p] = U(this, Jt)[p] || [];
3119
+ U(this, Kt)[p] = U(this, Kt)[p] || [];
3120
3120
  const g = (...m) => h.call(this, ...m);
3121
- return U(this, Jt)[p].push(g), () => {
3122
- U(this, Jt)[p] = U(this, Jt)[p].filter(
3121
+ return U(this, Kt)[p].push(g), () => {
3122
+ U(this, Kt)[p] = U(this, Kt)[p].filter(
3123
3123
  /** @param {any} fn */
3124
3124
  (m) => m !== g
3125
3125
  );
3126
3126
  };
3127
3127
  }
3128
3128
  $destroy() {
3129
- U(this, Tt).$destroy();
3129
+ U(this, At).$destroy();
3130
3130
  }
3131
3131
  }
3132
- Jt = new WeakMap(), Tt = new WeakMap();
3132
+ Kt = new WeakMap(), At = new WeakMap();
3133
3133
  let SvelteElement;
3134
3134
  typeof HTMLElement == "function" && (SvelteElement = class extends HTMLElement {
3135
3135
  /**
@@ -3140,27 +3140,27 @@ typeof HTMLElement == "function" && (SvelteElement = class extends HTMLElement {
3140
3140
  constructor(p, h, g) {
3141
3141
  super();
3142
3142
  /** The Svelte component constructor */
3143
- Ce(this, "$$ctor");
3143
+ Ie(this, "$$ctor");
3144
3144
  /** Slots */
3145
- Ce(this, "$$s");
3145
+ Ie(this, "$$s");
3146
3146
  /** @type {any} The Svelte component instance */
3147
- Ce(this, "$$c");
3147
+ Ie(this, "$$c");
3148
3148
  /** Whether or not the custom element is connected */
3149
- Ce(this, "$$cn", !1);
3149
+ Ie(this, "$$cn", !1);
3150
3150
  /** @type {Record<string, any>} Component props data */
3151
- Ce(this, "$$d", {});
3151
+ Ie(this, "$$d", {});
3152
3152
  /** `true` if currently in the process of reflecting component props back to attributes */
3153
- Ce(this, "$$r", !1);
3153
+ Ie(this, "$$r", !1);
3154
3154
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
3155
- Ce(this, "$$p_d", {});
3155
+ Ie(this, "$$p_d", {});
3156
3156
  /** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
3157
- Ce(this, "$$l", {});
3157
+ Ie(this, "$$l", {});
3158
3158
  /** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
3159
- Ce(this, "$$l_u", /* @__PURE__ */ new Map());
3159
+ Ie(this, "$$l_u", /* @__PURE__ */ new Map());
3160
3160
  /** @type {any} The managed render effect for reflecting attributes */
3161
- Ce(this, "$$me");
3161
+ Ie(this, "$$me");
3162
3162
  /** @type {ShadowRoot | null} The ShadowRoot of the custom element */
3163
- Ce(this, "$$shadowRoot", null);
3163
+ Ie(this, "$$shadowRoot", null);
3164
3164
  this.$$ctor = p, this.$$s = h, g && (this.$$shadowRoot = this.attachShadow(g));
3165
3165
  }
3166
3166
  /**
@@ -5365,11 +5365,11 @@ function serializeElementNode(d, p) {
5365
5365
  q && ($._cssText = absoluteToStylesheet(q, getHref()));
5366
5366
  }
5367
5367
  if (N === "input" || N === "textarea" || N === "select") {
5368
- var de = d.value, oe = d.checked;
5369
- $.type !== "radio" && $.type !== "checkbox" && $.type !== "submit" && $.type !== "button" && de ? $.value = maskInputValue({
5368
+ var ue = d.value, oe = d.checked;
5369
+ $.type !== "radio" && $.type !== "checkbox" && $.type !== "submit" && $.type !== "button" && ue ? $.value = maskInputValue({
5370
5370
  type: $.type,
5371
5371
  tagName: N,
5372
- value: de,
5372
+ value: ue,
5373
5373
  maskInputOptions: y,
5374
5374
  maskInputFn: w
5375
5375
  }) : oe && ($.checked = oe);
@@ -5380,15 +5380,15 @@ function serializeElementNode(d, p) {
5380
5380
  else if (!("__context" in d)) {
5381
5381
  var ce = d.toDataURL(E.type, E.quality), se = document.createElement("canvas");
5382
5382
  se.width = d.width, se.height = d.height;
5383
- var ye = se.toDataURL(E.type, E.quality);
5384
- ce !== ye && ($.rr_dataURL = ce);
5383
+ var xe = se.toDataURL(E.type, E.quality);
5384
+ ce !== xe && ($.rr_dataURL = ce);
5385
5385
  }
5386
5386
  }
5387
5387
  if (N === "img" && S) {
5388
5388
  canvasService || (canvasService = h.createElement("canvas"), canvasCtx = canvasService.getContext("2d"));
5389
5389
  var ve = d, Re = ve.crossOrigin;
5390
5390
  ve.crossOrigin = "anonymous";
5391
- var Ee = function() {
5391
+ var ke = function() {
5392
5392
  try {
5393
5393
  canvasService.width = ve.naturalWidth, canvasService.height = ve.naturalHeight, canvasCtx.drawImage(ve, 0, 0), $.rr_dataURL = canvasService.toDataURL(E.type, E.quality);
5394
5394
  } catch (z) {
@@ -5396,13 +5396,13 @@ function serializeElementNode(d, p) {
5396
5396
  }
5397
5397
  Re ? $.crossOrigin = Re : ve.removeAttribute("crossorigin");
5398
5398
  };
5399
- ve.complete && ve.naturalWidth !== 0 ? Ee() : ve.onload = Ee;
5399
+ ve.complete && ve.naturalWidth !== 0 ? ke() : ve.onload = ke;
5400
5400
  }
5401
5401
  if ((N === "audio" || N === "video") && ($.rr_mediaState = d.paused ? "paused" : "played", $.rr_mediaCurrentTime = d.currentTime), M || (d.scrollLeft && ($.rr_scrollLeft = d.scrollLeft), d.scrollTop && ($.rr_scrollTop = d.scrollTop)), C) {
5402
- var me = d.getBoundingClientRect(), Se = me.width, T = me.height;
5402
+ var me = d.getBoundingClientRect(), Ce = me.width, T = me.height;
5403
5403
  $ = {
5404
5404
  class: $.class,
5405
- rr_width: "".concat(Se, "px"),
5405
+ rr_width: "".concat(Ce, "px"),
5406
5406
  rr_height: "".concat(T, "px")
5407
5407
  };
5408
5408
  }
@@ -5445,9 +5445,9 @@ function slimDOMExcluded(d, p) {
5445
5445
  return !1;
5446
5446
  }
5447
5447
  function serializeNodeWithId(d, p) {
5448
- var h = p.doc, g = p.mirror, m = p.blockClass, _ = p.blockSelector, b = p.maskTextClass, y = p.maskTextSelector, w = p.skipChild, x = w === void 0 ? !1 : w, E = p.inlineStylesheet, S = E === void 0 ? !0 : E, k = p.maskInputOptions, I = k === void 0 ? {} : k, R = p.maskTextFn, M = p.maskInputFn, A = p.slimDOMOptions, C = p.dataURLOptions, N = C === void 0 ? {} : C, $ = p.inlineImages, O = $ === void 0 ? !1 : $, F = p.recordCanvas, j = F === void 0 ? !1 : F, Y = p.onSerialize, q = p.onIframeLoad, de = p.iframeLoadTimeout, oe = de === void 0 ? 5e3 : de, ce = p.onStylesheetLoad, se = p.stylesheetLoadTimeout, ye = se === void 0 ? 5e3 : se, ve = p.keepIframeSrcFn, Re = ve === void 0 ? function() {
5448
+ var h = p.doc, g = p.mirror, m = p.blockClass, _ = p.blockSelector, b = p.maskTextClass, y = p.maskTextSelector, w = p.skipChild, x = w === void 0 ? !1 : w, E = p.inlineStylesheet, S = E === void 0 ? !0 : E, k = p.maskInputOptions, I = k === void 0 ? {} : k, R = p.maskTextFn, M = p.maskInputFn, A = p.slimDOMOptions, C = p.dataURLOptions, N = C === void 0 ? {} : C, $ = p.inlineImages, O = $ === void 0 ? !1 : $, F = p.recordCanvas, j = F === void 0 ? !1 : F, Y = p.onSerialize, q = p.onIframeLoad, ue = p.iframeLoadTimeout, oe = ue === void 0 ? 5e3 : ue, ce = p.onStylesheetLoad, se = p.stylesheetLoadTimeout, xe = se === void 0 ? 5e3 : se, ve = p.keepIframeSrcFn, Re = ve === void 0 ? function() {
5449
5449
  return !1;
5450
- } : ve, Ee = p.newlyAddedElement, me = Ee === void 0 ? !1 : Ee, Se = p.preserveWhiteSpace, T = Se === void 0 ? !0 : Se, z = serializeNode(d, {
5450
+ } : ve, ke = p.newlyAddedElement, me = ke === void 0 ? !1 : ke, Ce = p.preserveWhiteSpace, T = Ce === void 0 ? !0 : Ce, z = serializeNode(d, {
5451
5451
  doc: h,
5452
5452
  mirror: g,
5453
5453
  blockClass: m,
@@ -5501,7 +5501,7 @@ function serializeNodeWithId(d, p) {
5501
5501
  onIframeLoad: q,
5502
5502
  iframeLoadTimeout: oe,
5503
5503
  onStylesheetLoad: ce,
5504
- stylesheetLoadTimeout: ye,
5504
+ stylesheetLoadTimeout: xe,
5505
5505
  keepIframeSrcFn: Re
5506
5506
  }, J = 0, ne = Array.from(d.childNodes); J < ne.length; J++) {
5507
5507
  var ge = ne[J], ee = serializeNodeWithId(ge, ie);
@@ -5537,7 +5537,7 @@ function serializeNodeWithId(d, p) {
5537
5537
  onIframeLoad: q,
5538
5538
  iframeLoadTimeout: oe,
5539
5539
  onStylesheetLoad: ce,
5540
- stylesheetLoadTimeout: ye,
5540
+ stylesheetLoadTimeout: xe,
5541
5541
  keepIframeSrcFn: Re
5542
5542
  });
5543
5543
  pe && q(d, pe);
@@ -5565,17 +5565,17 @@ function serializeNodeWithId(d, p) {
5565
5565
  onIframeLoad: q,
5566
5566
  iframeLoadTimeout: oe,
5567
5567
  onStylesheetLoad: ce,
5568
- stylesheetLoadTimeout: ye,
5568
+ stylesheetLoadTimeout: xe,
5569
5569
  keepIframeSrcFn: Re
5570
5570
  });
5571
5571
  K && ce(d, K);
5572
5572
  }
5573
- }, ye), P;
5573
+ }, xe), P;
5574
5574
  }
5575
5575
  function snapshot(d, p) {
5576
- var h = p || {}, g = h.mirror, m = g === void 0 ? new Mirror$2() : g, _ = h.blockClass, b = _ === void 0 ? "rr-block" : _, y = h.blockSelector, w = y === void 0 ? null : y, x = h.maskTextClass, E = x === void 0 ? "rr-mask" : x, S = h.maskTextSelector, k = S === void 0 ? null : S, I = h.inlineStylesheet, R = I === void 0 ? !0 : I, M = h.inlineImages, A = M === void 0 ? !1 : M, C = h.recordCanvas, N = C === void 0 ? !1 : C, $ = h.maskAllInputs, O = $ === void 0 ? !1 : $, F = h.maskTextFn, j = h.maskInputFn, Y = h.slimDOM, q = Y === void 0 ? !1 : Y, de = h.dataURLOptions, oe = h.preserveWhiteSpace, ce = h.onSerialize, se = h.onIframeLoad, ye = h.iframeLoadTimeout, ve = h.onStylesheetLoad, Re = h.stylesheetLoadTimeout, Ee = h.keepIframeSrcFn, me = Ee === void 0 ? function() {
5576
+ var h = p || {}, g = h.mirror, m = g === void 0 ? new Mirror$2() : g, _ = h.blockClass, b = _ === void 0 ? "rr-block" : _, y = h.blockSelector, w = y === void 0 ? null : y, x = h.maskTextClass, E = x === void 0 ? "rr-mask" : x, S = h.maskTextSelector, k = S === void 0 ? null : S, I = h.inlineStylesheet, R = I === void 0 ? !0 : I, M = h.inlineImages, A = M === void 0 ? !1 : M, C = h.recordCanvas, N = C === void 0 ? !1 : C, $ = h.maskAllInputs, O = $ === void 0 ? !1 : $, F = h.maskTextFn, j = h.maskInputFn, Y = h.slimDOM, q = Y === void 0 ? !1 : Y, ue = h.dataURLOptions, oe = h.preserveWhiteSpace, ce = h.onSerialize, se = h.onIframeLoad, xe = h.iframeLoadTimeout, ve = h.onStylesheetLoad, Re = h.stylesheetLoadTimeout, ke = h.keepIframeSrcFn, me = ke === void 0 ? function() {
5577
5577
  return !1;
5578
- } : Ee, Se = O === !0 ? {
5578
+ } : ke, Ce = O === !0 ? {
5579
5579
  color: !0,
5580
5580
  date: !0,
5581
5581
  "datetime-local": !0,
@@ -5615,17 +5615,17 @@ function snapshot(d, p) {
5615
5615
  maskTextSelector: k,
5616
5616
  skipChild: !1,
5617
5617
  inlineStylesheet: R,
5618
- maskInputOptions: Se,
5618
+ maskInputOptions: Ce,
5619
5619
  maskTextFn: F,
5620
5620
  maskInputFn: j,
5621
5621
  slimDOMOptions: T,
5622
- dataURLOptions: de,
5622
+ dataURLOptions: ue,
5623
5623
  inlineImages: A,
5624
5624
  recordCanvas: N,
5625
5625
  preserveWhiteSpace: oe,
5626
5626
  onSerialize: ce,
5627
5627
  onIframeLoad: se,
5628
- iframeLoadTimeout: ye,
5628
+ iframeLoadTimeout: xe,
5629
5629
  onStylesheetLoad: ve,
5630
5630
  stylesheetLoadTimeout: Re,
5631
5631
  keepIframeSrcFn: me,
@@ -5683,7 +5683,7 @@ function parse$1(d, p) {
5683
5683
  }
5684
5684
  function k() {
5685
5685
  var T, z = [];
5686
- for (R(), M(z); d.length && d.charAt(0) !== "}" && (T = me() || Se()); )
5686
+ for (R(), M(z); d.length && d.charAt(0) !== "}" && (T = me() || Ce()); )
5687
5687
  T !== !1 && (z.push(T), M(z));
5688
5688
  return z;
5689
5689
  }
@@ -5818,7 +5818,7 @@ function parse$1(d, p) {
5818
5818
  }) : w("@media missing '}'");
5819
5819
  }
5820
5820
  }
5821
- function de() {
5821
+ function ue() {
5822
5822
  var T = _(), z = I(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);
5823
5823
  if (z)
5824
5824
  return T({
@@ -5870,8 +5870,8 @@ function parse$1(d, p) {
5870
5870
  }) : w("@font-face missing '}'");
5871
5871
  }
5872
5872
  }
5873
- var ye = Ee("import"), ve = Ee("charset"), Re = Ee("namespace");
5874
- function Ee(T) {
5873
+ var xe = ke("import"), ve = ke("charset"), Re = ke("namespace");
5874
+ function ke(T) {
5875
5875
  var z = new RegExp("^@" + T + "\\s*([^;]+);");
5876
5876
  return function() {
5877
5877
  var L = _(), P = I(z);
@@ -5883,9 +5883,9 @@ function parse$1(d, p) {
5883
5883
  }
5884
5884
  function me() {
5885
5885
  if (d[0] === "@")
5886
- return F() || q() || de() || j() || ye() || ve() || Re() || ce() || oe() || Y() || se();
5886
+ return F() || q() || ue() || j() || xe() || ve() || Re() || ce() || oe() || Y() || se();
5887
5887
  }
5888
- function Se() {
5888
+ function Ce() {
5889
5889
  var T = _(), z = C();
5890
5890
  return z ? (M(), T({
5891
5891
  type: "rule",
@@ -7783,13 +7783,13 @@ function wrapEvent(d) {
7783
7783
  let wrappedEmit, takeFullSnapshot, canvasManager, recording = !1;
7784
7784
  const mirror = createMirror$2();
7785
7785
  function record$1(d = {}) {
7786
- const { emit: p, checkoutEveryNms: h, checkoutEveryNth: g, blockClass: m = "rr-block", blockSelector: _ = null, ignoreClass: b = "rr-ignore", maskTextClass: y = "rr-mask", maskTextSelector: w = null, inlineStylesheet: x = !0, maskAllInputs: E, maskInputOptions: S, slimDOMOptions: k, maskInputFn: I, maskTextFn: R, hooks: M, packFn: A, sampling: C = {}, dataURLOptions: N = {}, mousemoveWait: $, recordCanvas: O = !1, recordCrossOriginIframes: F = !1, userTriggeredOnInput: j = !1, collectFonts: Y = !1, inlineImages: q = !1, plugins: de, keepIframeSrcFn: oe = () => !1, ignoreCSSAttributes: ce = /* @__PURE__ */ new Set([]) } = d, se = F ? window.parent === window : !0;
7787
- let ye = !1;
7786
+ const { emit: p, checkoutEveryNms: h, checkoutEveryNth: g, blockClass: m = "rr-block", blockSelector: _ = null, ignoreClass: b = "rr-ignore", maskTextClass: y = "rr-mask", maskTextSelector: w = null, inlineStylesheet: x = !0, maskAllInputs: E, maskInputOptions: S, slimDOMOptions: k, maskInputFn: I, maskTextFn: R, hooks: M, packFn: A, sampling: C = {}, dataURLOptions: N = {}, mousemoveWait: $, recordCanvas: O = !1, recordCrossOriginIframes: F = !1, userTriggeredOnInput: j = !1, collectFonts: Y = !1, inlineImages: q = !1, plugins: ue, keepIframeSrcFn: oe = () => !1, ignoreCSSAttributes: ce = /* @__PURE__ */ new Set([]) } = d, se = F ? window.parent === window : !0;
7787
+ let xe = !1;
7788
7788
  if (!se)
7789
7789
  try {
7790
- window.parent.document, ye = !1;
7790
+ window.parent.document, xe = !1;
7791
7791
  } catch {
7792
- ye = !0;
7792
+ xe = !0;
7793
7793
  }
7794
7794
  if (se && !p)
7795
7795
  throw new Error("emit function is required");
@@ -7824,31 +7824,31 @@ function record$1(d = {}) {
7824
7824
  headMetaDescKeywords: k === "all"
7825
7825
  } : k || {};
7826
7826
  polyfill$1();
7827
- let Ee, me = 0;
7828
- const Se = (J) => {
7829
- for (const ne of de || [])
7827
+ let ke, me = 0;
7828
+ const Ce = (J) => {
7829
+ for (const ne of ue || [])
7830
7830
  ne.eventProcessor && (J = ne.eventProcessor(J));
7831
7831
  return A && (J = A(J)), J;
7832
7832
  };
7833
7833
  wrappedEmit = (J, ne) => {
7834
7834
  var ge;
7835
7835
  if (!((ge = mutationBuffers[0]) === null || ge === void 0) && ge.isFrozen() && J.type !== EventType.FullSnapshot && !(J.type === EventType.IncrementalSnapshot && J.data.source === IncrementalSource.Mutation) && mutationBuffers.forEach((ee) => ee.unfreeze()), se)
7836
- p == null || p(Se(J), ne);
7837
- else if (ye) {
7836
+ p == null || p(Ce(J), ne);
7837
+ else if (xe) {
7838
7838
  const ee = {
7839
7839
  type: "rrweb",
7840
- event: Se(J),
7840
+ event: Ce(J),
7841
7841
  isCheckout: ne
7842
7842
  };
7843
7843
  window.parent.postMessage(ee, "*");
7844
7844
  }
7845
7845
  if (J.type === EventType.FullSnapshot)
7846
- Ee = J, me = 0;
7846
+ ke = J, me = 0;
7847
7847
  else if (J.type === EventType.IncrementalSnapshot) {
7848
7848
  if (J.data.source === IncrementalSource.Mutation && J.data.isAttachIframe)
7849
7849
  return;
7850
7850
  me++;
7851
- const ee = g && me >= g, he = h && J.timestamp - Ee.timestamp > h;
7851
+ const ee = g && me >= g, he = h && J.timestamp - ke.timestamp > h;
7852
7852
  (ee || he) && takeFullSnapshot(!0);
7853
7853
  }
7854
7854
  };
@@ -7876,7 +7876,7 @@ function record$1(d = {}) {
7876
7876
  recordCrossOriginIframes: F,
7877
7877
  wrappedEmit
7878
7878
  });
7879
- for (const J of de || [])
7879
+ for (const J of ue || [])
7880
7880
  J.getMirror && J.getMirror({
7881
7881
  nodeMirror: mirror,
7882
7882
  crossOriginIframeMirror: W.crossOriginIframeMirror,
@@ -7942,11 +7942,11 @@ function record$1(d = {}) {
7942
7942
  onSerialize: (le) => {
7943
7943
  isSerializedIframe(le, mirror) && W.addIframe(le), isSerializedStylesheet(le, mirror) && G.trackLinkElement(le), hasShadowRoot(le) && ie.addShadowRoot(le.shadowRoot, document);
7944
7944
  },
7945
- onIframeLoad: (le, we) => {
7946
- W.attachIframe(le, we), ie.observeAttachShadow(le);
7945
+ onIframeLoad: (le, Ee) => {
7946
+ W.attachIframe(le, Ee), ie.observeAttachShadow(le);
7947
7947
  },
7948
- onStylesheetLoad: (le, we) => {
7949
- G.attachLinkElement(le, we);
7948
+ onStylesheetLoad: (le, Ee) => {
7949
+ G.attachLinkElement(le, Ee);
7950
7950
  },
7951
7951
  keepIframeSrcFn: oe
7952
7952
  });
@@ -8042,7 +8042,7 @@ function record$1(d = {}) {
8042
8042
  shadowDomManager: ie,
8043
8043
  canvasManager,
8044
8044
  ignoreCSSAttributes: ce,
8045
- plugins: ((he = de == null ? void 0 : de.filter((B) => B.observer)) === null || he === void 0 ? void 0 : he.map((B) => ({
8045
+ plugins: ((he = ue == null ? void 0 : ue.filter((B) => B.observer)) === null || he === void 0 ? void 0 : he.map((B) => ({
8046
8046
  observer: B.observer,
8047
8047
  options: B.options,
8048
8048
  callback: (K) => wrappedEmit(wrapEvent({
@@ -9168,25 +9168,25 @@ function s(d, p) {
9168
9168
  var M = r(R.on[I.type]);
9169
9169
  try {
9170
9170
  for (var A = (function(me) {
9171
- var Se = typeof Symbol == "function" && Symbol.iterator, T = Se && me[Se], z = 0;
9171
+ var Ce = typeof Symbol == "function" && Symbol.iterator, T = Ce && me[Ce], z = 0;
9172
9172
  if (T) return T.call(me);
9173
9173
  if (me && typeof me.length == "number") return { next: function() {
9174
9174
  return me && z >= me.length && (me = void 0), { value: me && me[z++], done: !me };
9175
9175
  } };
9176
- throw new TypeError(Se ? "Object is not iterable." : "Symbol.iterator is not defined.");
9176
+ throw new TypeError(Ce ? "Object is not iterable." : "Symbol.iterator is not defined.");
9177
9177
  })(M), C = A.next(); !C.done; C = A.next()) {
9178
9178
  var N = C.value;
9179
9179
  if (N === void 0) return c(S, k);
9180
9180
  var $ = typeof N == "string" ? { target: N } : N, O = $.target, F = $.actions, j = F === void 0 ? [] : F, Y = $.cond, q = Y === void 0 ? function() {
9181
9181
  return !0;
9182
- } : Y, de = O === void 0, oe = O ?? S, ce = d.states[oe];
9182
+ } : Y, ue = O === void 0, oe = O ?? S, ce = d.states[oe];
9183
9183
  if (q(k, I)) {
9184
- var se = t(f((de ? r(j) : [].concat(R.exit, j, ce.entry).filter((function(me) {
9184
+ var se = t(f((ue ? r(j) : [].concat(R.exit, j, ce.entry).filter((function(me) {
9185
9185
  return me;
9186
9186
  }))).map((function(me) {
9187
9187
  return i(me, _._options.actions);
9188
- })), k, I), 3), ye = se[0], ve = se[1], Re = se[2], Ee = O ?? S;
9189
- return { value: Ee, context: ve, actions: ye, changed: O !== S || ye.length > 0 || Re, matches: a(Ee) };
9188
+ })), k, I), 3), xe = se[0], ve = se[1], Re = se[2], ke = O ?? S;
9189
+ return { value: ke, context: ve, actions: xe, changed: O !== S || xe.length > 0 || Re, matches: a(ke) };
9190
9190
  }
9191
9191
  }
9192
9192
  } catch (me) {
@@ -10575,12 +10575,12 @@ function ScreenshotPreview(d, p) {
10575
10575
  set_attribute(F, "alt", `Screenshot ${N + 1}`);
10576
10576
  var j = sibling(F, 2);
10577
10577
  {
10578
- var Y = (de) => {
10578
+ var Y = (ue) => {
10579
10579
  var oe = root_3$7();
10580
- delegated("click", oe, () => b()(get($))), append(de, oe);
10580
+ delegated("click", oe, () => b()(get($))), append(ue, oe);
10581
10581
  };
10582
- if_block(j, (de) => {
10583
- b() && de(Y);
10582
+ if_block(j, (ue) => {
10583
+ b() && ue(Y);
10584
10584
  });
10585
10585
  }
10586
10586
  var q = sibling(j, 2);
@@ -10673,7 +10673,7 @@ function AnnotationEditor(d, p) {
10673
10673
  top: `${D.top + V.y / (get(S) / D.height)}px`
10674
10674
  };
10675
10675
  }
10676
- function de(V) {
10676
+ function ue(V) {
10677
10677
  const D = { color: get(b), strokeWidth: DEFAULT_STROKE_WIDTH };
10678
10678
  switch (get(_)) {
10679
10679
  case "arrow":
@@ -10713,7 +10713,7 @@ function AnnotationEditor(d, p) {
10713
10713
  }
10714
10714
  function oe(V) {
10715
10715
  if (get(I) === "typing") {
10716
- ye();
10716
+ xe();
10717
10717
  return;
10718
10718
  }
10719
10719
  const D = Y(V);
@@ -10730,7 +10730,7 @@ function AnnotationEditor(d, p) {
10730
10730
  if (get(I) !== "drawing") return;
10731
10731
  const D = Y(V);
10732
10732
  get(_) === "freehand" && M.push(D), j();
10733
- const H = de(D);
10733
+ const H = ue(D);
10734
10734
  if (H && get(x)) {
10735
10735
  const X = get(x).getContext("2d");
10736
10736
  X && renderShape(X, H);
@@ -10738,10 +10738,10 @@ function AnnotationEditor(d, p) {
10738
10738
  }
10739
10739
  function se(V) {
10740
10740
  if (get(I) !== "drawing") return;
10741
- const D = Y(V), H = de(D);
10741
+ const D = Y(V), H = ue(D);
10742
10742
  H && set(y, [...get(y), H], !0), set(I, "idle"), M = [], j(), F();
10743
10743
  }
10744
- function ye() {
10744
+ function xe() {
10745
10745
  if (get($).trim()) {
10746
10746
  const V = {
10747
10747
  id: nextShapeId(),
@@ -10757,12 +10757,12 @@ function AnnotationEditor(d, p) {
10757
10757
  set($, ""), set(I, "idle");
10758
10758
  }
10759
10759
  function ve(V) {
10760
- V.key === "Enter" ? (V.preventDefault(), ye()) : V.key === "Escape" && (V.preventDefault(), set($, ""), set(I, "idle"));
10760
+ V.key === "Enter" ? (V.preventDefault(), xe()) : V.key === "Escape" && (V.preventDefault(), set($, ""), set(I, "idle"));
10761
10761
  }
10762
10762
  function Re() {
10763
10763
  get(y).length !== 0 && (set(y, get(y).slice(0, -1), !0), F());
10764
10764
  }
10765
- function Ee() {
10765
+ function ke() {
10766
10766
  set(y, [], !0), F();
10767
10767
  }
10768
10768
  async function me() {
@@ -10773,11 +10773,11 @@ function AnnotationEditor(d, p) {
10773
10773
  const V = await mergeAnnotation(h(), get(y), get(E), get(S));
10774
10774
  g()(V);
10775
10775
  }
10776
- function Se() {
10776
+ function Ce() {
10777
10777
  m()();
10778
10778
  }
10779
10779
  function T(V) {
10780
- V.stopPropagation(), V.key === "Escape" && get(I) !== "typing" && Se(), (V.ctrlKey || V.metaKey) && V.key === "z" && (V.preventDefault(), Re());
10780
+ V.stopPropagation(), V.key === "Escape" && get(I) !== "typing" && Ce(), (V.ctrlKey || V.metaKey) && V.key === "z" && (V.preventDefault(), Re());
10781
10781
  }
10782
10782
  const z = {
10783
10783
  arrow: "M5 19L19 5M19 5H9M19 5V15",
@@ -10817,20 +10817,20 @@ function AnnotationEditor(d, p) {
10817
10817
  let X;
10818
10818
  var fe = child(H);
10819
10819
  {
10820
- var Q = (Ie) => {
10821
- var Ze = root_2$7();
10822
- append(Ie, Ze);
10823
- }, ue = (Ie) => {
10824
- var Ze = root_3$6(), Le = child(Ze);
10825
- reset(Ze), template_effect(() => set_attribute(Le, "d", z[get(D)])), append(Ie, Ze);
10820
+ var Q = (Te) => {
10821
+ var Le = root_2$7();
10822
+ append(Te, Le);
10823
+ }, de = (Te) => {
10824
+ var Le = root_3$6(), Oe = child(Le);
10825
+ reset(Le), template_effect(() => set_attribute(Oe, "d", z[get(D)])), append(Te, Le);
10826
10826
  };
10827
- if_block(fe, (Ie) => {
10828
- get(D) === "ellipse" ? Ie(Q) : Ie(ue, !1);
10827
+ if_block(fe, (Te) => {
10828
+ get(D) === "ellipse" ? Te(Q) : Te(de, !1);
10829
10829
  });
10830
10830
  }
10831
- var be = sibling(fe, 2), Ue = child(be, !0);
10832
- reset(be), reset(H), template_effect(() => {
10833
- X = set_class(H, 1, "tool-btn svelte-yff65c", null, X, { active: get(_) === get(D) }), set_attribute(H, "title", L[get(D)]), set_text(Ue, L[get(D)]);
10831
+ var we = sibling(fe, 2), Ze = child(we, !0);
10832
+ reset(we), reset(H), template_effect(() => {
10833
+ X = set_class(H, 1, "tool-btn svelte-yff65c", null, X, { active: get(_) === get(D) }), set_attribute(H, "title", L[get(D)]), set_text(Ze, L[get(D)]);
10834
10834
  }), delegated("click", H, () => {
10835
10835
  set(_, get(D), !0);
10836
10836
  }), append(V, H);
@@ -10849,9 +10849,9 @@ function AnnotationEditor(d, p) {
10849
10849
  reset(ge);
10850
10850
  var B = sibling(ge, 4), K = child(B), pe = sibling(K, 2);
10851
10851
  reset(B), reset(ie);
10852
- var le = sibling(ie, 2), we = child(le);
10852
+ var le = sibling(ie, 2), Ee = child(le);
10853
10853
  {
10854
- var ze = (V) => {
10854
+ var Me = (V) => {
10855
10855
  var D = root_5$4(), H = first_child(D);
10856
10856
  bind_this(H, (Q) => set(w, Q), () => get(w));
10857
10857
  var X = sibling(H, 2);
@@ -10862,28 +10862,28 @@ function AnnotationEditor(d, p) {
10862
10862
  "cursor-text": get(_) === "text"
10863
10863
  });
10864
10864
  }), delegated("mousedown", X, oe), delegated("mousemove", X, ce), delegated("mouseup", X, se), append(V, D);
10865
- }, xe = (V) => {
10865
+ }, Se = (V) => {
10866
10866
  var D = root_6$5();
10867
10867
  append(V, D);
10868
10868
  };
10869
- if_block(we, (V) => {
10870
- get(k) ? V(ze) : V(xe, !1);
10869
+ if_block(Ee, (V) => {
10870
+ get(k) ? V(Me) : V(Se, !1);
10871
10871
  });
10872
10872
  }
10873
10873
  reset(le);
10874
- var Ge = sibling(le, 2);
10874
+ var We = sibling(le, 2);
10875
10875
  {
10876
10876
  var ae = (V) => {
10877
10877
  var D = root_7$5();
10878
- remove_input_defaults(D), bind_this(D, (H) => set(A, H), () => get(A)), template_effect(() => set_style(D, `left: ${get(N).left ?? ""}; top: ${get(N).top ?? ""}; color: ${get(b) ?? ""};`)), delegated("keydown", D, ve), event("blur", D, ye), bind_value(D, () => get($), (H) => set($, H)), append(V, D);
10878
+ remove_input_defaults(D), bind_this(D, (H) => set(A, H), () => get(A)), template_effect(() => set_style(D, `left: ${get(N).left ?? ""}; top: ${get(N).top ?? ""}; color: ${get(b) ?? ""};`)), delegated("keydown", D, ve), event("blur", D, xe), bind_value(D, () => get($), (H) => set($, H)), append(V, D);
10879
10879
  };
10880
- if_block(Ge, (V) => {
10880
+ if_block(We, (V) => {
10881
10881
  get(I) === "typing" && V(ae);
10882
10882
  });
10883
10883
  }
10884
10884
  return reset(W), template_effect(() => {
10885
10885
  ee.disabled = get(y).length === 0, he.disabled = get(y).length === 0;
10886
- }), delegated("keydown", W, T), delegated("keyup", W, (V) => V.stopPropagation()), event("keypress", W, (V) => V.stopPropagation()), delegated("click", ee, Re), delegated("click", he, Ee), delegated("click", K, Se), delegated("click", pe, me), append(d, W), pop(G);
10886
+ }), delegated("keydown", W, T), delegated("keyup", W, (V) => V.stopPropagation()), event("keypress", W, (V) => V.stopPropagation()), delegated("click", ee, Re), delegated("click", he, ke), delegated("click", K, Ce), delegated("click", pe, me), append(d, W), pop(G);
10887
10887
  }
10888
10888
  delegate([
10889
10889
  "keydown",
@@ -10957,7 +10957,7 @@ var root_2$5 = /* @__PURE__ */ from_svg('<svg width="16" height="16" viewBox="0
10957
10957
  const $$css$6 = {
10958
10958
  hash: "svelte-1f5s7q1",
10959
10959
  code: `.jat-toast.svelte-1f5s7q1 {position:absolute;bottom:70px;right:0;padding:10px 16px;border-radius:8px;font-size:13px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;display:flex;align-items:center;gap:8px;box-shadow:0 4px 12px rgba(0,0,0,0.2);
10960
- animation: svelte-1f5s7q1-toast-in 0.3s ease;white-space:nowrap;}.success.svelte-1f5s7q1 {background:#065f46;color:#d1fae5;border:1px solid #10b981;}.error.svelte-1f5s7q1 {background:#7f1d1d;color:#fecaca;border:1px solid #ef4444;}.icon.svelte-1f5s7q1 {display:flex;align-items:center;}
10960
+ animation: svelte-1f5s7q1-toast-in 0.3s ease;white-space:nowrap;}.success.svelte-1f5s7q1 {background:#065f46;color:#d1fae5;border:1px solid #10b981;}.error.svelte-1f5s7q1 {background:#7f1d1d;color:#fecaca;border:1px solid #ef4444;}.info.svelte-1f5s7q1 {background:#1e3a5f;color:#bfdbfe;border:1px solid #3b82f6;}.icon.svelte-1f5s7q1 {display:flex;align-items:center;}
10961
10961
  @keyframes svelte-1f5s7q1-toast-in {
10962
10962
  from { opacity: 0; transform: translateY(8px); }
10963
10963
  to { opacity: 1; transform: translateY(0); }
@@ -11006,7 +11006,11 @@ function StatusToast(d, p) {
11006
11006
  reset(k);
11007
11007
  var A = sibling(k, 2), C = child(A, !0);
11008
11008
  reset(A), reset(E), template_effect(() => {
11009
- S = set_class(E, 1, "jat-toast svelte-1f5s7q1", null, S, { error: g() === "error", success: g() === "success" }), set_text(C, h());
11009
+ S = set_class(E, 1, "jat-toast svelte-1f5s7q1", null, S, {
11010
+ error: g() === "error",
11011
+ success: g() === "success",
11012
+ info: g() === "info"
11013
+ }), set_text(C, h());
11010
11014
  }), append(x, E);
11011
11015
  };
11012
11016
  if_block(y, (x) => {
@@ -11136,7 +11140,7 @@ function TimelineViewer(d, p) {
11136
11140
  function q(T) {
11137
11141
  get(y) && (get(y).pause(T), set(k, T, !0));
11138
11142
  }
11139
- function de(T) {
11143
+ function ue(T) {
11140
11144
  const L = T.currentTarget.getBoundingClientRect(), P = Math.max(0, Math.min(1, (T.clientX - L.left) / L.width));
11141
11145
  q(P * get(I));
11142
11146
  }
@@ -11155,7 +11159,7 @@ function TimelineViewer(d, p) {
11155
11159
  })), user_effect(() => {
11156
11160
  !get(x) && get(w).length > 0 && get(b) && setTimeout(() => O(), 50);
11157
11161
  });
11158
- var ye = {
11162
+ var xe = {
11159
11163
  get recordingUrl() {
11160
11164
  return h();
11161
11165
  },
@@ -11182,13 +11186,13 @@ function TimelineViewer(d, p) {
11182
11186
  }
11183
11187
  }, ve = root$5(), Re = child(ve);
11184
11188
  {
11185
- var Ee = (T) => {
11189
+ var ke = (T) => {
11186
11190
  var z = root_1$4();
11187
11191
  append(T, z);
11188
11192
  }, me = (T) => {
11189
11193
  var z = root_2$4(), L = child(z, !0);
11190
11194
  reset(z), template_effect(() => set_text(L, get(E))), append(T, z);
11191
- }, Se = (T) => {
11195
+ }, Ce = (T) => {
11192
11196
  var z = root_3$3(), L = first_child(z);
11193
11197
  bind_this(L, (ae) => set(b, ae), () => get(b));
11194
11198
  var P = sibling(L, 2), G = child(P), W = child(G);
@@ -11222,52 +11226,52 @@ function TimelineViewer(d, p) {
11222
11226
  H = set_class(D, 1, "tv-speed-btn svelte-ccnhf", null, H, { active: get(R) === V }), set_text(X, `${V ?? ""}x`);
11223
11227
  }), delegated("click", D, () => ce(V)), append(ae, D);
11224
11228
  }), reset(le), reset(P);
11225
- var we = sibling(P, 2);
11229
+ var Ee = sibling(P, 2);
11226
11230
  {
11227
- var ze = (ae) => {
11231
+ var Me = (ae) => {
11228
11232
  var V = root_7$4(), D = child(V);
11229
11233
  set_attribute(D, "aria-valuemin", 0);
11230
11234
  var H = child(D), X = sibling(H, 2);
11231
11235
  each(X, 17, () => get($), index, (fe, Q) => {
11232
- var ue = root_8$4();
11233
- let be;
11236
+ var de = root_8$4();
11237
+ let we;
11234
11238
  template_effect(
11235
- (Ue) => {
11236
- be = set_class(ue, 1, "tv-dot svelte-ccnhf", null, be, { selected: get(M) === get(Q) }), set_style(ue, `left: ${get(Q).pct ?? ""}%; background: ${get(Q).color ?? ""};`), set_attribute(ue, "title", `${get(Q).label ?? ""}: ${get(Q).detail ?? ""}`), set_attribute(ue, "aria-label", `${get(Q).label ?? ""} at ${Ue ?? ""}`);
11239
+ (Ze) => {
11240
+ we = set_class(de, 1, "tv-dot svelte-ccnhf", null, we, { selected: get(M) === get(Q) }), set_style(de, `left: ${get(Q).pct ?? ""}%; background: ${get(Q).color ?? ""};`), set_attribute(de, "title", `${get(Q).label ?? ""}: ${get(Q).detail ?? ""}`), set_attribute(de, "aria-label", `${get(Q).label ?? ""} at ${Ze ?? ""}`);
11237
11241
  },
11238
11242
  [() => se(get(Q).offset)]
11239
- ), delegated("click", ue, (Ue) => {
11240
- Ue.stopPropagation(), oe(get(Q));
11241
- }), append(fe, ue);
11243
+ ), delegated("click", de, (Ze) => {
11244
+ Ze.stopPropagation(), oe(get(Q));
11245
+ }), append(fe, de);
11242
11246
  }), reset(D), next(2), reset(V), template_effect(() => {
11243
11247
  set_attribute(D, "aria-valuemax", get(I)), set_attribute(D, "aria-valuenow", get(k)), set_style(H, `left: ${get(I) ? get(k) / get(I) * 100 : 0}%`);
11244
- }), delegated("click", D, de), delegated("keydown", D, (fe) => {
11245
- (fe.key === "Enter" || fe.key === " ") && de(fe);
11248
+ }), delegated("click", D, ue), delegated("keydown", D, (fe) => {
11249
+ (fe.key === "Enter" || fe.key === " ") && ue(fe);
11246
11250
  }), append(ae, V);
11247
11251
  };
11248
- if_block(we, (ae) => {
11249
- get($).length > 0 && ae(ze);
11252
+ if_block(Ee, (ae) => {
11253
+ get($).length > 0 && ae(Me);
11250
11254
  });
11251
11255
  }
11252
- var xe = sibling(we, 2);
11256
+ var Se = sibling(Ee, 2);
11253
11257
  {
11254
- var Ge = (ae) => {
11258
+ var We = (ae) => {
11255
11259
  var V = root_9$3(), D = child(V), H = child(D), X = child(H, !0);
11256
11260
  reset(H);
11257
11261
  var fe = sibling(H, 2), Q = child(fe, !0);
11258
11262
  reset(fe);
11259
- var ue = sibling(fe, 2);
11263
+ var de = sibling(fe, 2);
11260
11264
  reset(D);
11261
- var be = sibling(D, 2), Ue = child(be, !0);
11262
- reset(be), reset(V), template_effect(
11263
- (Ie) => {
11264
- set_style(H, `background: ${get(M).color ?? ""}20; color: ${get(M).color ?? ""}; border-color: ${get(M).color ?? ""}40;`), set_text(X, get(M).label), set_text(Q, Ie), set_text(Ue, get(M).detail);
11265
+ var we = sibling(D, 2), Ze = child(we, !0);
11266
+ reset(we), reset(V), template_effect(
11267
+ (Te) => {
11268
+ set_style(H, `background: ${get(M).color ?? ""}20; color: ${get(M).color ?? ""}; border-color: ${get(M).color ?? ""}40;`), set_text(X, get(M).label), set_text(Q, Te), set_text(Ze, get(M).detail);
11265
11269
  },
11266
11270
  [() => se(get(M).offset)]
11267
- ), delegated("click", ue, () => set(M, null)), append(ae, V);
11271
+ ), delegated("click", de, () => set(M, null)), append(ae, V);
11268
11272
  };
11269
- if_block(xe, (ae) => {
11270
- get(M) && ae(Ge);
11273
+ if_block(Se, (ae) => {
11274
+ get(M) && ae(We);
11271
11275
  });
11272
11276
  }
11273
11277
  template_effect(
@@ -11278,15 +11282,15 @@ function TimelineViewer(d, p) {
11278
11282
  () => se(get(k)),
11279
11283
  () => se(get(I))
11280
11284
  ]
11281
- ), delegated("click", G, Y), delegated("click", ee, de), delegated("keydown", ee, (ae) => {
11285
+ ), delegated("click", G, Y), delegated("click", ee, ue), delegated("keydown", ee, (ae) => {
11282
11286
  ae.key === "ArrowRight" ? q(Math.min(get(I), get(k) + 5e3)) : ae.key === "ArrowLeft" && q(Math.max(0, get(k) - 5e3));
11283
11287
  }), append(T, z);
11284
11288
  };
11285
11289
  if_block(Re, (T) => {
11286
- get(x) ? T(Ee) : get(E) ? T(me, 1) : T(Se, !1);
11290
+ get(x) ? T(ke) : get(E) ? T(me, 1) : T(Ce, !1);
11287
11291
  });
11288
11292
  }
11289
- return reset(ve), append(d, ve), pop(ye);
11293
+ return reset(ve), append(d, ve), pop(xe);
11290
11294
  }
11291
11295
  delegate(["click", "keydown"]);
11292
11296
  create_custom_element(
@@ -11301,7 +11305,7 @@ create_custom_element(
11301
11305
  [],
11302
11306
  { mode: "open" }
11303
11307
  );
11304
- var root_1$3 = /* @__PURE__ */ from_html('<div class="source-filters svelte-1fnmin5"><button>All <span class="source-pill-count svelte-1fnmin5"> </span></button> <button>Feedback <span class="source-pill-count svelte-1fnmin5"> </span></button> <button>Tasks <span class="source-pill-count svelte-1fnmin5"> </span></button></div>'), root_2$3 = /* @__PURE__ */ from_html('<span class="subtab-count svelte-1fnmin5"> </span>'), root_3$2 = /* @__PURE__ */ from_html('<span class="subtab-count done-count svelte-1fnmin5"> </span>'), root_5$2 = /* @__PURE__ */ from_html('<div class="loading svelte-1fnmin5"><span class="spinner svelte-1fnmin5"></span> <span>Loading your requests...</span></div>'), root_6$3 = /* @__PURE__ */ from_html('<div class="empty svelte-1fnmin5"><p class="error-text svelte-1fnmin5"> </p> <button class="retry-btn svelte-1fnmin5">Retry</button></div>'), root_7$3 = /* @__PURE__ */ from_html('<div class="empty svelte-1fnmin5"><div class="empty-icon svelte-1fnmin5"></div> <p>No requests yet</p> <p class="empty-sub svelte-1fnmin5">Submit feedback using the New Report tab</p></div>'), root_8$3 = /* @__PURE__ */ from_html('<div class="empty svelte-1fnmin5"><p class="empty-sub svelte-1fnmin5"> </p></div>'), root_12$2 = /* @__PURE__ */ from_html('<a class="report-url svelte-1fnmin5" target="_blank" rel="noopener noreferrer"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" class="svelte-1fnmin5"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6M15 3h6v6M10 14L21 3" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <span class="svelte-1fnmin5"> </span></a>'), root_13$2 = /* @__PURE__ */ from_html('<p class="revision-note svelte-1fnmin5"> </p>'), root_18$2 = /* @__PURE__ */ from_html('<li class="svelte-1fnmin5"> </li>'), root_17$3 = /* @__PURE__ */ from_html('<ul class="thread-summary svelte-1fnmin5"></ul>'), root_21$2 = /* @__PURE__ */ from_html('<button class="screenshot-thumb svelte-1fnmin5"><img loading="lazy" class="svelte-1fnmin5"/></button>'), root_23$2 = /* @__PURE__ */ from_html('<div class="screenshot-expanded svelte-1fnmin5"><img alt="Screenshot" class="svelte-1fnmin5"/> <button class="screenshot-close svelte-1fnmin5" aria-label="Close">&times;</button></div>'), root_19$2 = /* @__PURE__ */ from_html('<div class="thread-screenshots svelte-1fnmin5"></div> <!>', 1), root_25$1 = /* @__PURE__ */ from_html('<span class="element-badge svelte-1fnmin5"> </span>'), root_24$1 = /* @__PURE__ */ from_html('<div class="thread-elements svelte-1fnmin5"></div>'), root_16$3 = /* @__PURE__ */ from_html('<div><div class="thread-entry-header svelte-1fnmin5"><span class="thread-from svelte-1fnmin5"> </span> <span> </span> <span class="thread-time svelte-1fnmin5"> </span></div> <p class="thread-message svelte-1fnmin5"><!></p> <!> <!> <!></div>'), root_15$3 = /* @__PURE__ */ from_html('<div class="thread svelte-1fnmin5"></div>'), root_14$3 = /* @__PURE__ */ from_html('<button class="thread-toggle svelte-1fnmin5"><svg width="10" height="10" viewBox="0 0 24 24" fill="none"><path d="M9 18l6-6-6-6" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> <span> </span></button> <!>', 1), root_26 = /* @__PURE__ */ from_html('<p class="report-desc svelte-1fnmin5"> </p>'), root_28$1 = /* @__PURE__ */ from_html('<button class="screenshot-thumb svelte-1fnmin5"><img loading="lazy" class="svelte-1fnmin5"/></button>'), root_29$1 = /* @__PURE__ */ from_html('<div class="screenshot-expanded svelte-1fnmin5"><img alt="Screenshot" class="svelte-1fnmin5"/> <button class="screenshot-close svelte-1fnmin5" aria-label="Close">&times;</button></div>'), root_27$1 = /* @__PURE__ */ from_html('<div class="report-screenshots svelte-1fnmin5"></div> <!>', 1), root_32$1 = /* @__PURE__ */ from_html('<div class="dev-notes svelte-1fnmin5"><span class="dev-notes-label svelte-1fnmin5">Dev response:</span> <span class="dev-notes-content svelte-1fnmin5"><!></span></div>'), root_33$1 = /* @__PURE__ */ from_html('<span class="status-pill accepted svelte-1fnmin5"></span>'), root_34$1 = /* @__PURE__ */ from_html('<span class="status-pill rejected svelte-1fnmin5"></span>'), root_38 = /* @__PURE__ */ from_html('<div class="reject-preview-item svelte-1fnmin5"><img class="svelte-1fnmin5"/> <button class="reject-preview-remove svelte-1fnmin5" aria-label="Remove">&times;</button></div>'), root_37 = /* @__PURE__ */ from_html('<div class="reject-preview-strip svelte-1fnmin5"></div>'), root_40 = /* @__PURE__ */ from_html('<span class="element-badge removable svelte-1fnmin5"> <button class="element-remove svelte-1fnmin5">&times;</button></span>'), root_39 = /* @__PURE__ */ from_html('<div class="reject-element-strip svelte-1fnmin5"></div>'), root_41 = /* @__PURE__ */ from_html('<span class="char-hint svelte-1fnmin5"> </span>'), root_36$1 = /* @__PURE__ */ from_html('<div class="reject-reason-form svelte-1fnmin5"><textarea class="reject-reason-input svelte-1fnmin5" placeholder="Why are you rejecting? (min 10 characters)" rows="2"></textarea> <div class="reject-attachments svelte-1fnmin5"><button class="attach-btn svelte-1fnmin5" title="Capture screenshot"><svg width="12" height="12" viewBox="0 0 24 24" fill="none"><rect x="2" y="3" width="20" height="18" rx="2" stroke="currentColor" stroke-width="2"></rect><circle cx="8.5" cy="10.5" r="1.5" stroke="currentColor" stroke-width="2"></circle><path d="M21 15l-5-5L5 21" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> </button> <button class="attach-btn svelte-1fnmin5" title="Pick an element"><svg width="12" height="12" viewBox="0 0 24 24" fill="none"><path d="M7 7h10v10M7 17L17 7" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> Pick Element</button></div> <!> <!> <div class="reject-reason-actions svelte-1fnmin5"><button class="cancel-btn svelte-1fnmin5">Cancel</button> <button class="confirm-reject-btn svelte-1fnmin5"> </button></div> <!></div>'), root_42 = /* @__PURE__ */ from_html('<div class="response-actions svelte-1fnmin5"><button class="accept-btn svelte-1fnmin5"> </button> <button class="reject-btn svelte-1fnmin5"></button></div>'), root_11$2 = /* @__PURE__ */ from_html('<div class="card-body svelte-1fnmin5"><!> <!> <!> <!> <!> <!> <div class="report-footer svelte-1fnmin5"><span class="report-time svelte-1fnmin5"> </span> <!></div></div>'), root_10$2 = /* @__PURE__ */ from_html('<div><button class="card-toggle svelte-1fnmin5"><span class="report-type svelte-1fnmin5"> </span> <span class="report-title svelte-1fnmin5"> </span> <span class="report-status svelte-1fnmin5"> </span> <svg width="12" height="12" viewBox="0 0 24 24" fill="none"><path d="M9 18l6-6-6-6" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path></svg></button> <!></div>'), root_9$2 = /* @__PURE__ */ from_html('<div class="reports svelte-1fnmin5"></div>'), root_4$2 = /* @__PURE__ */ from_html("<div><!></div>"), root$4 = /* @__PURE__ */ from_html('<div class="request-list svelte-1fnmin5"><!> <div class="subtabs svelte-1fnmin5"><button>In Progress <!></button> <button>Done <!></button></div> <div class="request-scroll svelte-1fnmin5"><!></div></div>');
11308
+ var root_1$3 = /* @__PURE__ */ from_html('<div class="source-filters svelte-1fnmin5"><button>All <span class="source-pill-count svelte-1fnmin5"> </span></button> <button>Feedback <span class="source-pill-count svelte-1fnmin5"> </span></button> <button>Tasks <span class="source-pill-count svelte-1fnmin5"> </span></button></div>'), root_2$3 = /* @__PURE__ */ from_html('<span class="subtab-count svelte-1fnmin5"> </span>'), root_3$2 = /* @__PURE__ */ from_html('<span class="subtab-count done-count svelte-1fnmin5"> </span>'), root_5$2 = /* @__PURE__ */ from_html('<div class="loading svelte-1fnmin5"><span class="spinner svelte-1fnmin5"></span> <span>Loading your requests...</span></div>'), root_6$3 = /* @__PURE__ */ from_html('<div class="empty svelte-1fnmin5"><p class="error-text svelte-1fnmin5"> </p> <button class="retry-btn svelte-1fnmin5">Retry</button></div>'), root_7$3 = /* @__PURE__ */ from_html('<div class="empty svelte-1fnmin5"><div class="empty-icon svelte-1fnmin5"></div> <p>No requests yet</p> <p class="empty-sub svelte-1fnmin5">Submit feedback using the New Report tab</p></div>'), root_8$3 = /* @__PURE__ */ from_html('<div class="empty svelte-1fnmin5"><p class="empty-sub svelte-1fnmin5"> </p></div>'), root_12$2 = /* @__PURE__ */ from_html('<a class="report-url svelte-1fnmin5" target="_blank" rel="noopener noreferrer"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" class="svelte-1fnmin5"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6M15 3h6v6M10 14L21 3" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> <span class="svelte-1fnmin5"> </span></a>'), root_13$2 = /* @__PURE__ */ from_html('<p class="revision-note svelte-1fnmin5"> </p>'), root_18$2 = /* @__PURE__ */ from_html('<li class="svelte-1fnmin5"> </li>'), root_17$3 = /* @__PURE__ */ from_html('<ul class="thread-summary svelte-1fnmin5"></ul>'), root_21$2 = /* @__PURE__ */ from_html('<button class="screenshot-thumb svelte-1fnmin5"><img loading="lazy" class="svelte-1fnmin5"/></button>'), root_23$2 = /* @__PURE__ */ from_html('<div class="screenshot-expanded svelte-1fnmin5"><img alt="Screenshot" class="svelte-1fnmin5"/> <button class="screenshot-close svelte-1fnmin5" aria-label="Close">&times;</button></div>'), root_19$2 = /* @__PURE__ */ from_html('<div class="thread-screenshots svelte-1fnmin5"></div> <!>', 1), root_25$1 = /* @__PURE__ */ from_html('<span class="element-badge svelte-1fnmin5"> </span>'), root_24$1 = /* @__PURE__ */ from_html('<div class="thread-elements svelte-1fnmin5"></div>'), root_16$3 = /* @__PURE__ */ from_html('<div><div class="thread-entry-header svelte-1fnmin5"><span class="thread-from svelte-1fnmin5"> </span> <span> </span> <span class="thread-time svelte-1fnmin5"> </span></div> <p class="thread-message svelte-1fnmin5"><!></p> <!> <!> <!></div>'), root_15$3 = /* @__PURE__ */ from_html('<div class="thread svelte-1fnmin5"></div>'), root_14$3 = /* @__PURE__ */ from_html('<button class="thread-toggle svelte-1fnmin5"><svg width="10" height="10" viewBox="0 0 24 24" fill="none"><path d="M9 18l6-6-6-6" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> <span> </span></button> <!>', 1), root_26 = /* @__PURE__ */ from_html('<p class="report-desc svelte-1fnmin5"> </p>'), root_28$1 = /* @__PURE__ */ from_html('<button class="screenshot-thumb svelte-1fnmin5"><img loading="lazy" class="svelte-1fnmin5"/></button>'), root_29$1 = /* @__PURE__ */ from_html('<div class="screenshot-expanded svelte-1fnmin5"><img alt="Screenshot" class="svelte-1fnmin5"/> <button class="screenshot-close svelte-1fnmin5" aria-label="Close">&times;</button></div>'), root_27$1 = /* @__PURE__ */ from_html('<div class="report-screenshots svelte-1fnmin5"></div> <!>', 1), root_31$1 = /* @__PURE__ */ from_html('<div class="replay-header svelte-1fnmin5"><span class="replay-label svelte-1fnmin5">Session Recording</span> <a target="_blank" rel="noreferrer" class="replay-fullscreen-btn svelte-1fnmin5" title="Open full replay in new tab"><svg width="12" height="12" viewBox="0 0 16 16" fill="none"><path d="M10 2h4v4M14 2L9 7M6 14H2v-4M2 14l5-5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg> Full replay</a></div> <!>', 1), root_32$1 = /* @__PURE__ */ from_html('<div class="dev-notes svelte-1fnmin5"><span class="dev-notes-label svelte-1fnmin5">Dev response:</span> <span class="dev-notes-content svelte-1fnmin5"><!></span></div>'), root_33$1 = /* @__PURE__ */ from_html('<span class="status-pill accepted svelte-1fnmin5"></span>'), root_34$1 = /* @__PURE__ */ from_html('<span class="status-pill rejected svelte-1fnmin5"></span>'), root_38 = /* @__PURE__ */ from_html('<div class="reject-preview-item svelte-1fnmin5"><img class="svelte-1fnmin5"/> <button class="reject-preview-remove svelte-1fnmin5" aria-label="Remove">&times;</button></div>'), root_37$1 = /* @__PURE__ */ from_html('<div class="reject-preview-strip svelte-1fnmin5"></div>'), root_40 = /* @__PURE__ */ from_html('<span class="element-badge removable svelte-1fnmin5"> <button class="element-remove svelte-1fnmin5">&times;</button></span>'), root_39 = /* @__PURE__ */ from_html('<div class="reject-element-strip svelte-1fnmin5"></div>'), root_41 = /* @__PURE__ */ from_html('<span class="char-hint svelte-1fnmin5"> </span>'), root_36$1 = /* @__PURE__ */ from_html('<div class="reject-reason-form svelte-1fnmin5"><textarea class="reject-reason-input svelte-1fnmin5" placeholder="Why are you rejecting? (min 10 characters)" rows="2"></textarea> <div class="reject-attachments svelte-1fnmin5"><button class="attach-btn svelte-1fnmin5" title="Capture screenshot"><svg width="12" height="12" viewBox="0 0 24 24" fill="none"><rect x="2" y="3" width="20" height="18" rx="2" stroke="currentColor" stroke-width="2"></rect><circle cx="8.5" cy="10.5" r="1.5" stroke="currentColor" stroke-width="2"></circle><path d="M21 15l-5-5L5 21" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> </button> <button class="attach-btn svelte-1fnmin5" title="Pick an element"><svg width="12" height="12" viewBox="0 0 24 24" fill="none"><path d="M7 7h10v10M7 17L17 7" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg> Pick Element</button></div> <!> <!> <div class="reject-reason-actions svelte-1fnmin5"><button class="cancel-btn svelte-1fnmin5">Cancel</button> <button class="confirm-reject-btn svelte-1fnmin5"> </button></div> <!></div>'), root_42 = /* @__PURE__ */ from_html('<div class="response-actions svelte-1fnmin5"><button class="accept-btn svelte-1fnmin5"> </button> <button class="reject-btn svelte-1fnmin5"></button></div>'), root_11$2 = /* @__PURE__ */ from_html('<div class="card-body svelte-1fnmin5"><!> <!> <!> <!> <!> <!> <div class="report-footer svelte-1fnmin5"><span class="report-time svelte-1fnmin5"> </span> <!></div></div>'), root_10$2 = /* @__PURE__ */ from_html('<div><button class="card-toggle svelte-1fnmin5"><span class="report-type svelte-1fnmin5"> </span> <span class="report-title svelte-1fnmin5"> </span> <span class="report-status svelte-1fnmin5"> </span> <svg width="12" height="12" viewBox="0 0 24 24" fill="none"><path d="M9 18l6-6-6-6" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path></svg></button> <!></div>'), root_9$2 = /* @__PURE__ */ from_html('<div class="reports svelte-1fnmin5"></div>'), root_4$2 = /* @__PURE__ */ from_html("<div><!></div>"), root$4 = /* @__PURE__ */ from_html('<div class="request-list svelte-1fnmin5"><!> <div class="subtabs svelte-1fnmin5"><button>In Progress <!></button> <button>Done <!></button></div> <div class="request-scroll svelte-1fnmin5"><!></div></div>');
11305
11309
  const $$css$4 = {
11306
11310
  hash: "svelte-1fnmin5",
11307
11311
  code: `.request-list.svelte-1fnmin5 {display:flex;flex-direction:column;overflow:hidden;flex:1;min-height:0;}
@@ -11314,7 +11318,7 @@ const $$css$4 = {
11314
11318
 
11315
11319
  /* Collapsed card header (clickable toggle) */.card-toggle.svelte-1fnmin5 {display:flex;align-items:center;gap:6px;width:100%;padding:9px 10px;background:none;border:none;cursor:pointer;font-family:inherit;text-align:left;color:inherit;}.card-toggle.svelte-1fnmin5:hover {background:#ffffff06;}.report-type.svelte-1fnmin5 {font-size:13px;flex-shrink:0;}.report-title.svelte-1fnmin5 {font-size:12px;font-weight:600;color:#f3f4f6;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.report-status.svelte-1fnmin5 {font-size:9px;font-weight:600;padding:1px 6px;border-radius:10px;border:1px solid;white-space:nowrap;flex-shrink:0;text-transform:uppercase;letter-spacing:0.3px;}.chevron.svelte-1fnmin5 {flex-shrink:0;color:#6b7280;transition:transform 0.15s;}.chevron-open.svelte-1fnmin5 {transform:rotate(90deg);}
11316
11320
 
11317
- /* Expanded card body */.card-body.svelte-1fnmin5 {padding:0 10px 10px;border-top:1px solid #ffffff08;}.report-url.svelte-1fnmin5 {display:flex;align-items:center;gap:4px;margin:6px 0 0;font-size:11px;color:#60a5fa;text-decoration:none;overflow:hidden;transition:color 0.15s;}.report-url.svelte-1fnmin5:hover {color:#93c5fd;}.report-url.svelte-1fnmin5 svg:where(.svelte-1fnmin5) {flex-shrink:0;}.report-url.svelte-1fnmin5 span:where(.svelte-1fnmin5) {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.report-screenshots.svelte-1fnmin5 {display:flex;gap:4px;margin-top:6px;overflow-x:auto;}.screenshot-thumb.svelte-1fnmin5 {flex-shrink:0;width:52px;height:36px;border-radius:4px;overflow:hidden;border:1px solid #374151;background:#111827;cursor:pointer;padding:0;transition:border-color 0.15s;}.screenshot-thumb.svelte-1fnmin5:hover {border-color:#60a5fa;}.screenshot-thumb.svelte-1fnmin5 img:where(.svelte-1fnmin5) {width:100%;height:100%;object-fit:cover;display:block;}.screenshot-expanded.svelte-1fnmin5 {position:relative;margin-top:4px;border-radius:6px;overflow:hidden;border:1px solid #374151;}.screenshot-expanded.svelte-1fnmin5 img:where(.svelte-1fnmin5) {width:100%;display:block;border-radius:5px;}.screenshot-close.svelte-1fnmin5 {position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,0.7);color:#e5e7eb;border:none;cursor:pointer;font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center;}.screenshot-close.svelte-1fnmin5:hover {background:rgba(0,0,0,0.9);}.revision-note.svelte-1fnmin5 {font-size:10px;color:#f59e0b;margin:3px 0 0;font-weight:500;}.report-desc.svelte-1fnmin5 {font-size:12px;color:#9ca3af;margin:6px 0 0;line-height:1.4;}.dev-notes.svelte-1fnmin5 {margin-top:6px;padding:6px 8px;background:#111827;border-radius:5px;font-size:12px;color:#d1d5db;border-left:2px solid #3b82f6;}.dev-notes-label.svelte-1fnmin5 {font-weight:600;color:#60a5fa;margin-right:4px;font-size:11px;}.dev-notes-content.svelte-1fnmin5 {line-height:1.5;}
11321
+ /* Expanded card body */.card-body.svelte-1fnmin5 {padding:0 10px 10px;border-top:1px solid #ffffff08;}.report-url.svelte-1fnmin5 {display:flex;align-items:center;gap:4px;margin:6px 0 0;font-size:11px;color:#60a5fa;text-decoration:none;overflow:hidden;transition:color 0.15s;}.report-url.svelte-1fnmin5:hover {color:#93c5fd;}.report-url.svelte-1fnmin5 svg:where(.svelte-1fnmin5) {flex-shrink:0;}.report-url.svelte-1fnmin5 span:where(.svelte-1fnmin5) {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.report-screenshots.svelte-1fnmin5 {display:flex;gap:4px;margin-top:6px;overflow-x:auto;}.screenshot-thumb.svelte-1fnmin5 {flex-shrink:0;width:52px;height:36px;border-radius:4px;overflow:hidden;border:1px solid #374151;background:#111827;cursor:pointer;padding:0;transition:border-color 0.15s;}.screenshot-thumb.svelte-1fnmin5:hover {border-color:#60a5fa;}.screenshot-thumb.svelte-1fnmin5 img:where(.svelte-1fnmin5) {width:100%;height:100%;object-fit:cover;display:block;}.screenshot-expanded.svelte-1fnmin5 {position:relative;margin-top:4px;border-radius:6px;overflow:hidden;border:1px solid #374151;}.screenshot-expanded.svelte-1fnmin5 img:where(.svelte-1fnmin5) {width:100%;display:block;border-radius:5px;}.screenshot-close.svelte-1fnmin5 {position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,0.7);color:#e5e7eb;border:none;cursor:pointer;font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center;}.screenshot-close.svelte-1fnmin5:hover {background:rgba(0,0,0,0.9);}.revision-note.svelte-1fnmin5 {font-size:10px;color:#f59e0b;margin:3px 0 0;font-weight:500;}.report-desc.svelte-1fnmin5 {font-size:12px;color:#9ca3af;margin:6px 0 0;line-height:1.4;}.dev-notes.svelte-1fnmin5 {margin-top:6px;padding:6px 8px;background:#111827;border-radius:5px;font-size:12px;color:#d1d5db;border-left:2px solid #3b82f6;}.replay-header.svelte-1fnmin5 {display:flex;align-items:center;justify-content:space-between;margin-top:8px;margin-bottom:4px;}.replay-label.svelte-1fnmin5 {font-size:11px;color:#6b7280;font-weight:500;}.replay-fullscreen-btn.svelte-1fnmin5 {display:flex;align-items:center;gap:4px;font-size:11px;color:#60a5fa;text-decoration:none;padding:2px 7px;border:1px solid #1e3a5f;border-radius:4px;background:#0f1e33;transition:background 0.15s;}.replay-fullscreen-btn.svelte-1fnmin5:hover {background:#1e3a5f;color:#93c5fd;}.dev-notes-label.svelte-1fnmin5 {font-weight:600;color:#60a5fa;margin-right:4px;font-size:11px;}.dev-notes-content.svelte-1fnmin5 {line-height:1.5;}
11318
11322
 
11319
11323
  /* Thread toggle button */.thread-toggle.svelte-1fnmin5 {display:flex;align-items:center;gap:4px;margin-top:6px;padding:3px 6px;background:none;border:none;color:#9ca3af;font-size:11px;cursor:pointer;font-family:inherit;border-radius:4px;transition:color 0.15s, background 0.15s;}.thread-toggle.svelte-1fnmin5:hover {color:#d1d5db;background:#111827;}.thread-toggle-icon.svelte-1fnmin5 {transition:transform 0.15s;}.thread-toggle-icon.expanded.svelte-1fnmin5 {transform:rotate(90deg);}
11320
11324
 
@@ -11336,7 +11340,7 @@ function RequestList(d, p) {
11336
11340
  "rejected",
11337
11341
  "completed",
11338
11342
  "wontfix"
11339
- ].includes(D.status)).length), j = /* @__PURE__ */ user_derived(() => get($).filter((D) => D.status === "accepted" || D.status === "closed").length), Y = /* @__PURE__ */ user_derived(() => g().filter((D) => (D.source || "feedback") === "feedback").length), q = /* @__PURE__ */ user_derived(() => g().filter((D) => D.source === "jat").length), de = /* @__PURE__ */ user_derived(() => get(Y) > 0 && get(q) > 0);
11343
+ ].includes(D.status)).length), j = /* @__PURE__ */ user_derived(() => get($).filter((D) => D.status === "accepted" || D.status === "closed").length), Y = /* @__PURE__ */ user_derived(() => g().filter((D) => (D.source || "feedback") === "feedback").length), q = /* @__PURE__ */ user_derived(() => g().filter((D) => D.source === "jat").length), ue = /* @__PURE__ */ user_derived(() => get(Y) > 0 && get(q) > 0);
11340
11344
  function oe(D) {
11341
11345
  return D ? D.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/^#{1,3} (.+)$/gm, '<strong style="display:block;margin-top:6px;color:#f3f4f6">$1</strong>').replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>").replace(/\*(.+?)\*/g, "<em>$1</em>").replace(/^[-*] (.+)$/gm, '<span style="display:block;padding-left:10px">• $1</span>').replace(/\n/g, "<br>") : "";
11342
11346
  }
@@ -11354,7 +11358,7 @@ function RequestList(d, p) {
11354
11358
  function se(D) {
11355
11359
  set(k, D, !0), set(I, ""), set(R, [], !0), set(M, [], !0);
11356
11360
  }
11357
- function ye() {
11361
+ function xe() {
11358
11362
  set(k, ""), set(I, ""), set(R, [], !0), set(M, [], !0);
11359
11363
  }
11360
11364
  async function ve() {
@@ -11372,7 +11376,7 @@ function RequestList(d, p) {
11372
11376
  function Re(D) {
11373
11377
  set(R, get(R).filter((H, X) => X !== D), !0);
11374
11378
  }
11375
- function Ee() {
11379
+ function ke() {
11376
11380
  startElementPicker((D) => {
11377
11381
  set(
11378
11382
  M,
@@ -11393,18 +11397,18 @@ function RequestList(d, p) {
11393
11397
  function me(D) {
11394
11398
  set(M, get(M).filter((H, X) => X !== D), !0);
11395
11399
  }
11396
- async function Se(D, H, X) {
11400
+ async function Ce(D, H, X) {
11397
11401
  set(S, D, !0);
11398
11402
  const fe = H === "rejected" ? {
11399
11403
  screenshots: get(R).length > 0 ? get(R) : void 0,
11400
11404
  elements: get(M).length > 0 ? get(M) : void 0
11401
11405
  } : void 0;
11402
- (await respondToReport(h(), D, H, X, fe)).ok ? (g(g().map((ue) => ue.id === D ? {
11403
- ...ue,
11406
+ (await respondToReport(h(), D, H, X, fe)).ok ? (g(g().map((de) => de.id === D ? {
11407
+ ...de,
11404
11408
  status: H === "rejected" ? "submitted" : "accepted",
11405
11409
  responded_at: (/* @__PURE__ */ new Date()).toISOString(),
11406
- ...H === "rejected" ? { revision_count: (ue.revision_count || 0) + 1 } : {}
11407
- } : ue)), set(k, ""), set(I, ""), set(R, [], !0), set(M, [], !0), b()()) : set(k, ""), set(S, "");
11410
+ ...H === "rejected" ? { revision_count: (de.revision_count || 0) + 1 } : {}
11411
+ } : de)), set(k, ""), set(I, ""), set(R, [], !0), set(M, [], !0), b()()) : set(k, ""), set(S, "");
11408
11412
  }
11409
11413
  function T(D) {
11410
11414
  set(w, get(w) === D ? null : D, !0);
@@ -11451,10 +11455,10 @@ function RequestList(d, p) {
11451
11455
  const H = Date.now(), X = new Date(D).getTime(), fe = H - X, Q = Math.floor(fe / 6e4);
11452
11456
  if (Q < 1) return "just now";
11453
11457
  if (Q < 60) return `${Q}m ago`;
11454
- const ue = Math.floor(Q / 60);
11455
- if (ue < 24) return `${ue}h ago`;
11456
- const be = Math.floor(ue / 24);
11457
- return be < 30 ? `${be}d ago` : new Date(D).toLocaleDateString();
11458
+ const de = Math.floor(Q / 60);
11459
+ if (de < 24) return `${de}h ago`;
11460
+ const we = Math.floor(de / 24);
11461
+ return we < 30 ? `${we}d ago` : new Date(D).toLocaleDateString();
11458
11462
  }
11459
11463
  var J = {
11460
11464
  get endpoint() {
@@ -11492,21 +11496,21 @@ function RequestList(d, p) {
11492
11496
  var ee = (D) => {
11493
11497
  var H = root_1$3(), X = child(H);
11494
11498
  let fe;
11495
- var Q = sibling(child(X)), ue = child(Q, !0);
11499
+ var Q = sibling(child(X)), de = child(Q, !0);
11496
11500
  reset(Q), reset(X);
11497
- var be = sibling(X, 2);
11498
- let Ue;
11499
- var Ie = sibling(child(be)), Ze = child(Ie, !0);
11500
- reset(Ie), reset(be);
11501
- var Le = sibling(be, 2);
11501
+ var we = sibling(X, 2);
11502
+ let Ze;
11503
+ var Te = sibling(child(we)), Le = child(Te, !0);
11504
+ reset(Te), reset(we);
11505
+ var Oe = sibling(we, 2);
11502
11506
  let te;
11503
- var Ye = sibling(child(Le)), nt = child(Ye, !0);
11504
- reset(Ye), reset(Le), reset(H), template_effect(() => {
11505
- fe = set_class(X, 1, "source-pill svelte-1fnmin5", null, fe, { active: get(N) === "all" }), set_text(ue, g().length), Ue = set_class(be, 1, "source-pill svelte-1fnmin5", null, Ue, { active: get(N) === "feedback" }), set_text(Ze, get(Y)), te = set_class(Le, 1, "source-pill svelte-1fnmin5", null, te, { active: get(N) === "jat" }), set_text(nt, get(q));
11506
- }), delegated("click", X, () => set(N, "all")), delegated("click", be, () => set(N, "feedback")), delegated("click", Le, () => set(N, "jat")), append(D, H);
11507
+ var Xe = sibling(child(Oe)), _t = child(Xe, !0);
11508
+ reset(Xe), reset(Oe), reset(H), template_effect(() => {
11509
+ fe = set_class(X, 1, "source-pill svelte-1fnmin5", null, fe, { active: get(N) === "all" }), set_text(de, g().length), Ze = set_class(we, 1, "source-pill svelte-1fnmin5", null, Ze, { active: get(N) === "feedback" }), set_text(Le, get(Y)), te = set_class(Oe, 1, "source-pill svelte-1fnmin5", null, te, { active: get(N) === "jat" }), set_text(_t, get(q));
11510
+ }), delegated("click", X, () => set(N, "all")), delegated("click", we, () => set(N, "feedback")), delegated("click", Oe, () => set(N, "jat")), append(D, H);
11507
11511
  };
11508
11512
  if_block(ge, (D) => {
11509
- get(de) && D(ee);
11513
+ get(ue) && D(ee);
11510
11514
  });
11511
11515
  }
11512
11516
  var he = sibling(ge, 2), B = child(he);
@@ -11522,401 +11526,405 @@ function RequestList(d, p) {
11522
11526
  });
11523
11527
  }
11524
11528
  reset(B);
11525
- var we = sibling(B, 2);
11526
- let ze;
11527
- var xe = sibling(child(we));
11529
+ var Ee = sibling(B, 2);
11530
+ let Me;
11531
+ var Se = sibling(child(Ee));
11528
11532
  {
11529
- var Ge = (D) => {
11533
+ var We = (D) => {
11530
11534
  var H = root_3$2(), X = child(H, !0);
11531
11535
  reset(H), template_effect(() => set_text(X, get(j))), append(D, H);
11532
11536
  };
11533
- if_block(xe, (D) => {
11534
- get(j) > 0 && D(Ge);
11537
+ if_block(Se, (D) => {
11538
+ get(j) > 0 && D(We);
11535
11539
  });
11536
11540
  }
11537
- reset(we), reset(he);
11541
+ reset(Ee), reset(he);
11538
11542
  var ae = sibling(he, 2), V = child(ae);
11539
11543
  return key(V, () => get(C), (D) => {
11540
11544
  var H = root_4$2(), X = child(H);
11541
11545
  {
11542
- var fe = (Ie) => {
11543
- var Ze = root_5$2();
11544
- append(Ie, Ze);
11545
- }, Q = (Ie) => {
11546
- var Ze = root_6$3(), Le = child(Ze), te = child(Le, !0);
11547
- reset(Le);
11548
- var Ye = sibling(Le, 2);
11549
- reset(Ze), template_effect(() => set_text(te, _())), delegated("click", Ye, function(...nt) {
11550
- var We;
11551
- (We = b()) == null || We.apply(this, nt);
11552
- }), append(Ie, Ze);
11553
- }, ue = (Ie) => {
11554
- var Ze = root_7$3(), Le = child(Ze);
11555
- Le.textContent = "📋", next(4), reset(Ze), append(Ie, Ze);
11556
- }, be = (Ie) => {
11557
- var Ze = root_8$3(), Le = child(Ze), te = child(Le, !0);
11558
- reset(Le), reset(Ze), template_effect(() => set_text(te, get(C) === "submitted" ? "No submitted requests" : get(C) === "review" ? "Nothing to review right now" : "No completed requests yet")), append(Ie, Ze);
11559
- }, Ue = (Ie) => {
11560
- var Ze = root_9$2();
11561
- each(Ze, 21, () => get(O), (Le) => Le.id, (Le, te) => {
11562
- var Ye = root_10$2();
11563
- let nt;
11564
- var We = child(Ye), rt = child(We), Ct = child(rt, !0);
11565
- reset(rt);
11566
- var Mt = sibling(rt, 2), _n = child(Mt, !0);
11567
- reset(Mt);
11568
- var je = sibling(Mt, 2), Fe = child(je, !0);
11569
- reset(je);
11570
- var vt = sibling(je, 2);
11571
- let Qt;
11572
- reset(We);
11573
- var jt = sibling(We, 2);
11546
+ var fe = (Te) => {
11547
+ var Le = root_5$2();
11548
+ append(Te, Le);
11549
+ }, Q = (Te) => {
11550
+ var Le = root_6$3(), Oe = child(Le), te = child(Oe, !0);
11551
+ reset(Oe);
11552
+ var Xe = sibling(Oe, 2);
11553
+ reset(Le), template_effect(() => set_text(te, _())), delegated("click", Xe, function(..._t) {
11554
+ var Ge;
11555
+ (Ge = b()) == null || Ge.apply(this, _t);
11556
+ }), append(Te, Le);
11557
+ }, de = (Te) => {
11558
+ var Le = root_7$3(), Oe = child(Le);
11559
+ Oe.textContent = "📋", next(4), reset(Le), append(Te, Le);
11560
+ }, we = (Te) => {
11561
+ var Le = root_8$3(), Oe = child(Le), te = child(Oe, !0);
11562
+ reset(Oe), reset(Le), template_effect(() => set_text(te, get(C) === "submitted" ? "No submitted requests" : get(C) === "review" ? "Nothing to review right now" : "No completed requests yet")), append(Te, Le);
11563
+ }, Ze = (Te) => {
11564
+ var Le = root_9$2();
11565
+ each(Le, 21, () => get(O), (Oe) => Oe.id, (Oe, te) => {
11566
+ var Xe = root_10$2();
11567
+ let _t;
11568
+ var Ge = child(Xe), Ve = child(Ge), vt = child(Ve, !0);
11569
+ reset(Ve);
11570
+ var Nt = sibling(Ve, 2), mn = child(Nt, !0);
11571
+ reset(Nt);
11572
+ var Be = sibling(Nt, 2), He = child(Be, !0);
11573
+ reset(Be);
11574
+ var bt = sibling(Be, 2);
11575
+ let it;
11576
+ reset(Ge);
11577
+ var Dt = sibling(Ge, 2);
11574
11578
  {
11575
- var rr = (sn) => {
11576
- var en = root_11$2(), an = child(en);
11579
+ var rr = (nn) => {
11580
+ var Xt = root_11$2(), vn = child(Xt);
11577
11581
  {
11578
- var $n = ($e) => {
11579
- var Pe = root_12$2(), He = sibling(child(Pe), 2), ut = child(He, !0);
11580
- reset(He), reset(Pe), template_effect(
11581
- (wt) => {
11582
- set_attribute(Pe, "href", get(te).page_url), set_text(ut, wt);
11582
+ var An = (Ne) => {
11583
+ var De = root_12$2(), Je = sibling(child(De), 2), dt = child(Je, !0);
11584
+ reset(Je), reset(De), template_effect(
11585
+ (St) => {
11586
+ set_attribute(De, "href", get(te).page_url), set_text(dt, St);
11583
11587
  },
11584
11588
  [
11585
11589
  () => get(te).page_url.replace(/^https?:\/\//, "").split("?")[0]
11586
11590
  ]
11587
- ), append($e, Pe);
11591
+ ), append(Ne, De);
11588
11592
  };
11589
- if_block(an, ($e) => {
11590
- get(te).page_url && $e($n);
11593
+ if_block(vn, (Ne) => {
11594
+ get(te).page_url && Ne(An);
11591
11595
  });
11592
11596
  }
11593
- var bn = sibling(an, 2);
11597
+ var rn = sibling(vn, 2);
11594
11598
  {
11595
- var Mn = ($e) => {
11596
- var Pe = root_13$2(), He = child(Pe);
11597
- reset(Pe), template_effect(() => set_text(He, `Revision ${get(te).revision_count ?? ""}`)), append($e, Pe);
11599
+ var or = (Ne) => {
11600
+ var De = root_13$2(), Je = child(De);
11601
+ reset(De), template_effect(() => set_text(Je, `Revision ${get(te).revision_count ?? ""}`)), append(Ne, De);
11598
11602
  };
11599
- if_block(bn, ($e) => {
11600
- get(te).revision_count > 0 && get(te).status !== "accepted" && $e(Mn);
11603
+ if_block(rn, (Ne) => {
11604
+ get(te).revision_count > 0 && get(te).status !== "accepted" && Ne(or);
11601
11605
  });
11602
11606
  }
11603
- var Gn = sibling(bn, 2);
11607
+ var Vn = sibling(rn, 2);
11604
11608
  {
11605
- var or = ($e) => {
11606
- var Pe = root_14$3(), He = first_child(Pe), ut = child(He);
11607
- let wt;
11608
- var st = sibling(ut, 2), Qe = child(st);
11609
- reset(st), reset(He);
11610
- var Ke = sibling(He, 2);
11609
+ var Nn = (Ne) => {
11610
+ var De = root_14$3(), Je = first_child(De), dt = child(Je);
11611
+ let St;
11612
+ var ot = sibling(dt, 2), tt = child(ot);
11613
+ reset(ot), reset(Je);
11614
+ var qe = sibling(Je, 2);
11611
11615
  {
11612
- var dt = (Xe) => {
11613
- var xt = root_15$3();
11614
- each(xt, 21, () => get(te).thread, (cn) => cn.id, (cn, qe) => {
11615
- var tn = root_16$3();
11616
- let nn;
11617
- var un = child(tn), Vt = child(un), xn = child(Vt, !0);
11618
- reset(Vt);
11619
- var Rt = sibling(Vt, 2);
11620
- let Z;
11621
- var re = child(Rt, !0);
11622
- reset(Rt);
11623
- var Te = sibling(Rt, 2), ke = child(Te, !0);
11624
- reset(Te), reset(un);
11625
- var Ne = sibling(un, 2), Ve = child(Ne);
11626
- html(Ve, () => oe(get(qe).message)), reset(Ne);
11627
- var ft = sibling(Ne, 2);
11616
+ var ut = (Ye) => {
11617
+ var yt = root_15$3();
11618
+ each(yt, 21, () => get(te).thread, (Wt) => Wt.id, (Wt, Ke) => {
11619
+ var Qt = root_16$3();
11620
+ let en;
11621
+ var ln = child(Qt), Lt = child(ln), bn = child(Lt, !0);
11622
+ reset(Lt);
11623
+ var $t = sibling(Lt, 2);
11624
+ let yn;
11625
+ var zn = child($t, !0);
11626
+ reset($t);
11627
+ var Z = sibling($t, 2), re = child(Z, !0);
11628
+ reset(Z), reset(ln);
11629
+ var _e = sibling(ln, 2), ye = child(_e);
11630
+ html(ye, () => oe(get(Ke).message)), reset(_e);
11631
+ var Fe = sibling(_e, 2);
11628
11632
  {
11629
- var ht = (Oe) => {
11630
- var Be = root_17$3();
11631
- each(Be, 21, () => get(qe).summary, index, (tt, lt) => {
11632
- var pt = root_18$2(), mt = child(pt, !0);
11633
- reset(pt), template_effect(() => set_text(mt, get(lt))), append(tt, pt);
11634
- }), reset(Be), append(Oe, Be);
11633
+ var Ue = (rt) => {
11634
+ var pt = root_17$3();
11635
+ each(pt, 21, () => get(Ke).summary, index, (je, Pe) => {
11636
+ var Qe = root_18$2(), mt = child(Qe, !0);
11637
+ reset(Qe), template_effect(() => set_text(mt, get(Pe))), append(je, Qe);
11638
+ }), reset(pt), append(rt, pt);
11635
11639
  };
11636
- if_block(ft, (Oe) => {
11637
- get(qe).summary && get(qe).summary.length > 0 && Oe(ht);
11640
+ if_block(Fe, (rt) => {
11641
+ get(Ke).summary && get(Ke).summary.length > 0 && rt(Ue);
11638
11642
  });
11639
11643
  }
11640
- var _t = sibling(ft, 2);
11644
+ var lt = sibling(Fe, 2);
11641
11645
  {
11642
- var bt = (Oe) => {
11643
- var Be = root_19$2(), tt = first_child(Be);
11644
- each(tt, 21, () => get(qe).screenshots, index, (mt, zt, Gt) => {
11645
- var En = comment(), Ot = first_child(En);
11646
+ var ft = (rt) => {
11647
+ var pt = root_19$2(), je = first_child(pt);
11648
+ each(je, 21, () => get(Ke).screenshots, index, (mt, wt, kt) => {
11649
+ var wn = comment(), On = first_child(wn);
11646
11650
  {
11647
- var Dt = (Ht) => {
11648
- var Lt = root_21$2();
11649
- set_attribute(Lt, "aria-label", `Screenshot ${Gt + 1}`);
11650
- var Sn = child(Lt);
11651
- set_attribute(Sn, "alt", `Screenshot ${Gt + 1}`), reset(Lt), template_effect(() => set_attribute(Sn, "src", `${h() ?? ""}${get(zt).url ?? ""}`)), delegated("click", Lt, () => set(y, get(y) === get(zt).url ? null : get(zt).url, !0)), append(Ht, Lt);
11651
+ var Vt = (xt) => {
11652
+ var Mt = root_21$2();
11653
+ set_attribute(Mt, "aria-label", `Screenshot ${kt + 1}`);
11654
+ var xn = child(Mt);
11655
+ set_attribute(xn, "alt", `Screenshot ${kt + 1}`), reset(Mt), template_effect(() => set_attribute(xn, "src", `${h() ?? ""}${get(wt).url ?? ""}`)), delegated("click", Mt, () => set(y, get(y) === get(wt).url ? null : get(wt).url, !0)), append(xt, Mt);
11652
11656
  };
11653
- if_block(Ot, (Ht) => {
11654
- get(zt).url && Ht(Dt);
11657
+ if_block(On, (xt) => {
11658
+ get(wt).url && xt(Vt);
11655
11659
  });
11656
11660
  }
11657
- append(mt, En);
11658
- }), reset(tt);
11659
- var lt = sibling(tt, 2);
11661
+ append(mt, wn);
11662
+ }), reset(je);
11663
+ var Pe = sibling(je, 2);
11660
11664
  {
11661
- var pt = (mt) => {
11662
- const zt = /* @__PURE__ */ user_derived(() => get(qe).screenshots.find((Dt) => Dt.url === get(y)));
11663
- var Gt = comment(), En = first_child(Gt);
11665
+ var Qe = (mt) => {
11666
+ const wt = /* @__PURE__ */ user_derived(() => get(Ke).screenshots.find((Vt) => Vt.url === get(y)));
11667
+ var kt = comment(), wn = first_child(kt);
11664
11668
  {
11665
- var Ot = (Dt) => {
11666
- var Ht = root_23$2(), Lt = child(Ht), Sn = sibling(Lt, 2);
11667
- reset(Ht), template_effect(() => set_attribute(Lt, "src", `${h() ?? ""}${get(y) ?? ""}`)), delegated("click", Sn, () => set(y, null)), append(Dt, Ht);
11669
+ var On = (Vt) => {
11670
+ var xt = root_23$2(), Mt = child(xt), xn = sibling(Mt, 2);
11671
+ reset(xt), template_effect(() => set_attribute(Mt, "src", `${h() ?? ""}${get(y) ?? ""}`)), delegated("click", xn, () => set(y, null)), append(Vt, xt);
11668
11672
  };
11669
- if_block(En, (Dt) => {
11670
- get(zt) && Dt(Ot);
11673
+ if_block(wn, (Vt) => {
11674
+ get(wt) && Vt(On);
11671
11675
  });
11672
11676
  }
11673
- append(mt, Gt);
11677
+ append(mt, kt);
11674
11678
  };
11675
- if_block(lt, (mt) => {
11676
- get(y) && mt(pt);
11679
+ if_block(Pe, (mt) => {
11680
+ get(y) && mt(Qe);
11677
11681
  });
11678
11682
  }
11679
- append(Oe, Be);
11683
+ append(rt, pt);
11680
11684
  };
11681
- if_block(_t, (Oe) => {
11682
- get(qe).screenshots && get(qe).screenshots.length > 0 && Oe(bt);
11685
+ if_block(lt, (rt) => {
11686
+ get(Ke).screenshots && get(Ke).screenshots.length > 0 && rt(ft);
11683
11687
  });
11684
11688
  }
11685
- var gt = sibling(_t, 2);
11689
+ var gt = sibling(lt, 2);
11686
11690
  {
11687
- var At = (Oe) => {
11688
- var Be = root_24$1();
11689
- each(Be, 21, () => get(qe).elements, index, (tt, lt) => {
11690
- var pt = root_25$1(), mt = child(pt);
11691
- reset(pt), template_effect(
11692
- (zt, Gt) => {
11693
- set_attribute(pt, "title", get(lt).selector), set_text(mt, `<${zt ?? ""}${get(lt).id ? `#${get(lt).id}` : ""}${Gt ?? ""}>`);
11691
+ var Ft = (rt) => {
11692
+ var pt = root_24$1();
11693
+ each(pt, 21, () => get(Ke).elements, index, (je, Pe) => {
11694
+ var Qe = root_25$1(), mt = child(Qe);
11695
+ reset(Qe), template_effect(
11696
+ (wt, kt) => {
11697
+ set_attribute(Qe, "title", get(Pe).selector), set_text(mt, `<${wt ?? ""}${get(Pe).id ? `#${get(Pe).id}` : ""}${kt ?? ""}>`);
11694
11698
  },
11695
11699
  [
11696
- () => get(lt).tagName.toLowerCase(),
11697
- () => get(lt).className ? `.${get(lt).className.split(" ")[0]}` : ""
11700
+ () => get(Pe).tagName.toLowerCase(),
11701
+ () => get(Pe).className ? `.${get(Pe).className.split(" ")[0]}` : ""
11698
11702
  ]
11699
- ), append(tt, pt);
11700
- }), reset(Be), append(Oe, Be);
11703
+ ), append(je, Qe);
11704
+ }), reset(pt), append(rt, pt);
11701
11705
  };
11702
- if_block(gt, (Oe) => {
11703
- get(qe).elements && get(qe).elements.length > 0 && Oe(At);
11706
+ if_block(gt, (rt) => {
11707
+ get(Ke).elements && get(Ke).elements.length > 0 && rt(Ft);
11704
11708
  });
11705
11709
  }
11706
- reset(tn), template_effect(
11707
- (Oe, Be) => {
11708
- nn = set_class(tn, 1, "thread-entry svelte-1fnmin5", null, nn, {
11709
- "thread-user": get(qe).from === "user",
11710
- "thread-dev": get(qe).from === "dev"
11711
- }), set_text(xn, get(qe).from === "user" ? "You" : "Dev"), Z = set_class(Rt, 1, "thread-type-badge svelte-1fnmin5", null, Z, {
11712
- submission: get(qe).type === "submission",
11713
- completion: get(qe).type === "completion",
11714
- rejection: get(qe).type === "rejection",
11715
- acceptance: get(qe).type === "acceptance"
11716
- }), set_text(re, Oe), set_text(ke, Be);
11710
+ reset(Qt), template_effect(
11711
+ (rt, pt) => {
11712
+ en = set_class(Qt, 1, "thread-entry svelte-1fnmin5", null, en, {
11713
+ "thread-user": get(Ke).from === "user",
11714
+ "thread-dev": get(Ke).from === "dev"
11715
+ }), set_text(bn, get(Ke).from === "user" ? "You" : "Dev"), yn = set_class($t, 1, "thread-type-badge svelte-1fnmin5", null, yn, {
11716
+ submission: get(Ke).type === "submission",
11717
+ completion: get(Ke).type === "completion",
11718
+ rejection: get(Ke).type === "rejection",
11719
+ acceptance: get(Ke).type === "acceptance"
11720
+ }), set_text(zn, rt), set_text(re, pt);
11717
11721
  },
11718
11722
  [
11719
- () => L(get(qe)),
11720
- () => ie(get(qe).at)
11723
+ () => L(get(Ke)),
11724
+ () => ie(get(Ke).at)
11721
11725
  ]
11722
- ), append(cn, tn);
11723
- }), reset(xt), append(Xe, xt);
11726
+ ), append(Wt, Qt);
11727
+ }), reset(yt), append(Ye, yt);
11724
11728
  };
11725
- if_block(Ke, (Xe) => {
11726
- get(w) === get(te).id && Xe(dt);
11729
+ if_block(qe, (Ye) => {
11730
+ get(w) === get(te).id && Ye(ut);
11727
11731
  });
11728
11732
  }
11729
11733
  template_effect(
11730
- (Xe, xt) => {
11731
- wt = set_class(ut, 0, "thread-toggle-icon svelte-1fnmin5", null, wt, { expanded: get(w) === get(te).id }), set_text(Qe, `${Xe ?? ""} ${xt ?? ""}`);
11734
+ (Ye, yt) => {
11735
+ St = set_class(dt, 0, "thread-toggle-icon svelte-1fnmin5", null, St, { expanded: get(w) === get(te).id }), set_text(tt, `${Ye ?? ""} ${yt ?? ""}`);
11732
11736
  },
11733
11737
  [
11734
11738
  () => z(get(te).thread),
11735
11739
  () => z(get(te).thread) === 1 ? "message" : "messages"
11736
11740
  ]
11737
- ), delegated("click", He, () => T(get(te).id)), append($e, Pe);
11738
- }, zn = ($e) => {
11739
- var Pe = root_26(), He = child(Pe, !0);
11740
- reset(Pe), template_effect((ut) => set_text(He, ut), [
11741
+ ), delegated("click", Je, () => T(get(te).id)), append(Ne, De);
11742
+ }, sr = (Ne) => {
11743
+ var De = root_26(), Je = child(De, !0);
11744
+ reset(De), template_effect((dt) => set_text(Je, dt), [
11741
11745
  () => get(te).description.length > 120 ? get(te).description.slice(0, 120) + "..." : get(te).description
11742
- ]), append($e, Pe);
11746
+ ]), append(Ne, De);
11743
11747
  };
11744
- if_block(Gn, ($e) => {
11745
- get(te).thread && get(te).thread.length > 0 ? $e(or) : get(te).description && $e(zn, 1);
11748
+ if_block(Vn, (Ne) => {
11749
+ get(te).thread && get(te).thread.length > 0 ? Ne(Nn) : get(te).description && Ne(sr, 1);
11746
11750
  });
11747
11751
  }
11748
- var Hn = sibling(Gn, 2);
11752
+ var Gn = sibling(Vn, 2);
11749
11753
  {
11750
- var qn = ($e) => {
11751
- var Pe = root_27$1(), He = first_child(Pe);
11752
- each(He, 21, () => get(te).screenshot_urls, index, (Qe, Ke, dt) => {
11753
- var Xe = root_28$1();
11754
- set_attribute(Xe, "aria-label", `Screenshot ${dt + 1}`);
11755
- var xt = child(Xe);
11756
- set_attribute(xt, "alt", `Screenshot ${dt + 1}`), reset(Xe), template_effect(() => set_attribute(xt, "src", `${h() ?? ""}${get(Ke) ?? ""}`)), delegated("click", Xe, () => set(y, get(y) === get(Ke) ? null : get(Ke), !0)), append(Qe, Xe);
11757
- }), reset(He);
11758
- var ut = sibling(He, 2);
11754
+ var $n = (Ne) => {
11755
+ var De = root_27$1(), Je = first_child(De);
11756
+ each(Je, 21, () => get(te).screenshot_urls, index, (tt, qe, ut) => {
11757
+ var Ye = root_28$1();
11758
+ set_attribute(Ye, "aria-label", `Screenshot ${ut + 1}`);
11759
+ var yt = child(Ye);
11760
+ set_attribute(yt, "alt", `Screenshot ${ut + 1}`), reset(Ye), template_effect(() => set_attribute(yt, "src", `${h() ?? ""}${get(qe) ?? ""}`)), delegated("click", Ye, () => set(y, get(y) === get(qe) ? null : get(qe), !0)), append(tt, Ye);
11761
+ }), reset(Je);
11762
+ var dt = sibling(Je, 2);
11759
11763
  {
11760
- var wt = (Qe) => {
11761
- var Ke = root_29$1(), dt = child(Ke), Xe = sibling(dt, 2);
11762
- reset(Ke), template_effect(() => set_attribute(dt, "src", `${h() ?? ""}${get(y) ?? ""}`)), delegated("click", Xe, () => set(y, null)), append(Qe, Ke);
11763
- }, st = /* @__PURE__ */ user_derived(() => get(y) && get(te).screenshot_urls.includes(get(y)));
11764
- if_block(ut, (Qe) => {
11765
- get(st) && Qe(wt);
11764
+ var St = (tt) => {
11765
+ var qe = root_29$1(), ut = child(qe), Ye = sibling(ut, 2);
11766
+ reset(qe), template_effect(() => set_attribute(ut, "src", `${h() ?? ""}${get(y) ?? ""}`)), delegated("click", Ye, () => set(y, null)), append(tt, qe);
11767
+ }, ot = /* @__PURE__ */ user_derived(() => get(y) && get(te).screenshot_urls.includes(get(y)));
11768
+ if_block(dt, (tt) => {
11769
+ get(ot) && tt(St);
11766
11770
  });
11767
11771
  }
11768
- append($e, Pe);
11772
+ append(Ne, De);
11769
11773
  };
11770
- if_block(Hn, ($e) => {
11771
- !get(te).thread && get(te).screenshot_urls && get(te).screenshot_urls.length > 0 && $e(qn);
11774
+ if_block(Gn, (Ne) => {
11775
+ !get(te).thread && get(te).screenshot_urls && get(te).screenshot_urls.length > 0 && Ne($n);
11772
11776
  });
11773
11777
  }
11774
- var Wt = sibling(Hn, 2);
11778
+ var Hn = sibling(Gn, 2);
11775
11779
  {
11776
- var On = ($e) => {
11777
- const Pe = /* @__PURE__ */ user_derived(() => {
11778
- var st, Qe;
11779
- return get(te).recording_url ?? ((Qe = (st = get(te).thread) == null ? void 0 : st.find((Ke) => Ke.recordingUrl)) == null ? void 0 : Qe.recordingUrl) ?? null;
11780
+ var qn = (Ne) => {
11781
+ const De = /* @__PURE__ */ user_derived(() => {
11782
+ var ot, tt;
11783
+ return get(te).recording_url ?? ((tt = (ot = get(te).thread) == null ? void 0 : ot.find((qe) => qe.recordingUrl)) == null ? void 0 : tt.recordingUrl) ?? null;
11780
11784
  });
11781
- var He = comment(), ut = first_child(He);
11785
+ var Je = comment(), dt = first_child(Je);
11782
11786
  {
11783
- var wt = (st) => {
11787
+ var St = (ot) => {
11788
+ var tt = root_31$1(), qe = first_child(tt), ut = sibling(child(qe), 2);
11789
+ reset(qe);
11790
+ var Ye = sibling(qe, 2);
11784
11791
  {
11785
- let Qe = /* @__PURE__ */ user_derived(() => get(te).console_logs ?? null), Ke = /* @__PURE__ */ user_derived(() => get(te).network_requests ?? null);
11786
- TimelineViewer(st, {
11792
+ let yt = /* @__PURE__ */ user_derived(() => get(te).console_logs ?? null), Wt = /* @__PURE__ */ user_derived(() => get(te).network_requests ?? null);
11793
+ TimelineViewer(Ye, {
11787
11794
  get recordingUrl() {
11788
- return get(Pe);
11795
+ return get(De);
11789
11796
  },
11790
11797
  get endpoint() {
11791
11798
  return h();
11792
11799
  },
11793
11800
  get consoleLogs() {
11794
- return get(Qe);
11801
+ return get(yt);
11795
11802
  },
11796
11803
  get networkRequests() {
11797
- return get(Ke);
11804
+ return get(Wt);
11798
11805
  }
11799
11806
  });
11800
11807
  }
11808
+ template_effect(() => set_attribute(ut, "href", `${h() ?? ""}/feedback/replay.html?id=${get(te).id ?? ""}`)), append(ot, tt);
11801
11809
  };
11802
- if_block(ut, (st) => {
11803
- get(Pe) && st(wt);
11810
+ if_block(dt, (ot) => {
11811
+ get(De) && ot(St);
11804
11812
  });
11805
11813
  }
11806
- append($e, He);
11807
- }, Yn = /* @__PURE__ */ user_derived(() => get(te).recording_url || get(te).thread && get(te).thread.some(($e) => $e.recordingUrl));
11808
- if_block(Wt, ($e) => {
11809
- get(Yn) && $e(On);
11814
+ append(Ne, Je);
11815
+ }, Jt = /* @__PURE__ */ user_derived(() => get(te).recording_url || get(te).thread && get(te).thread.some((Ne) => Ne.recordingUrl));
11816
+ if_block(Hn, (Ne) => {
11817
+ get(Jt) && Ne(qn);
11810
11818
  });
11811
11819
  }
11812
- var Kn = sibling(Wt, 2);
11820
+ var _n = sibling(Hn, 2);
11813
11821
  {
11814
- var Dn = ($e) => {
11815
- var Pe = root_32$1(), He = sibling(child(Pe), 2), ut = child(He);
11816
- html(ut, () => oe(get(te).dev_notes)), reset(He), reset(Pe), append($e, Pe);
11822
+ var Yn = (Ne) => {
11823
+ var De = root_32$1(), Je = sibling(child(De), 2), dt = child(Je);
11824
+ html(dt, () => oe(get(te).dev_notes)), reset(Je), reset(De), append(Ne, De);
11817
11825
  };
11818
- if_block(Kn, ($e) => {
11819
- get(te).dev_notes && !get(te).thread && get(te).status !== "in_progress" && $e(Dn);
11826
+ if_block(_n, (Ne) => {
11827
+ get(te).dev_notes && !get(te).thread && get(te).status !== "in_progress" && Ne(Yn);
11820
11828
  });
11821
11829
  }
11822
- var yn = sibling(Kn, 2), wn = child(yn), ln = child(wn, !0);
11823
- reset(wn);
11824
- var Xn = sibling(wn, 2);
11830
+ var Kn = sibling(_n, 2), sn = child(Kn), Mn = child(sn, !0);
11831
+ reset(sn);
11832
+ var Xn = sibling(sn, 2);
11825
11833
  {
11826
- var sr = ($e) => {
11827
- var Pe = root_33$1();
11828
- Pe.textContent = "✓ Accepted", append($e, Pe);
11829
- }, ir = ($e) => {
11830
- var Pe = root_34$1();
11831
- Pe.textContent = "✗ Rejected", append($e, Pe);
11832
- }, Jn = ($e) => {
11833
- var Pe = comment(), He = first_child(Pe);
11834
+ var an = (Ne) => {
11835
+ var De = root_33$1();
11836
+ De.textContent = "✓ Accepted", append(Ne, De);
11837
+ }, Jn = (Ne) => {
11838
+ var De = root_34$1();
11839
+ De.textContent = "✗ Rejected", append(Ne, De);
11840
+ }, ir = (Ne) => {
11841
+ var De = comment(), Je = first_child(De);
11834
11842
  {
11835
- var ut = (st) => {
11836
- var Qe = root_36$1(), Ke = child(Qe);
11837
- remove_textarea_child(Ke);
11838
- var dt = sibling(Ke, 2), Xe = child(dt), xt = sibling(child(Xe));
11839
- reset(Xe);
11840
- var cn = sibling(Xe, 2);
11841
- reset(dt);
11842
- var qe = sibling(dt, 2);
11843
+ var dt = (ot) => {
11844
+ var tt = root_36$1(), qe = child(tt);
11845
+ remove_textarea_child(qe);
11846
+ var ut = sibling(qe, 2), Ye = child(ut), yt = sibling(child(Ye));
11847
+ reset(Ye);
11848
+ var Wt = sibling(Ye, 2);
11849
+ reset(ut);
11850
+ var Ke = sibling(ut, 2);
11843
11851
  {
11844
- var tn = (Ne) => {
11845
- var Ve = root_37();
11846
- each(Ve, 21, () => get(R), index, (ft, ht, _t) => {
11847
- var bt = root_38(), gt = child(bt);
11848
- set_attribute(gt, "alt", `Screenshot ${_t + 1}`);
11849
- var At = sibling(gt, 2);
11850
- reset(bt), template_effect(() => set_attribute(gt, "src", get(ht))), delegated("click", At, () => Re(_t)), append(ft, bt);
11851
- }), reset(Ve), append(Ne, Ve);
11852
+ var Qt = (_e) => {
11853
+ var ye = root_37$1();
11854
+ each(ye, 21, () => get(R), index, (Fe, Ue, lt) => {
11855
+ var ft = root_38(), gt = child(ft);
11856
+ set_attribute(gt, "alt", `Screenshot ${lt + 1}`);
11857
+ var Ft = sibling(gt, 2);
11858
+ reset(ft), template_effect(() => set_attribute(gt, "src", get(Ue))), delegated("click", Ft, () => Re(lt)), append(Fe, ft);
11859
+ }), reset(ye), append(_e, ye);
11852
11860
  };
11853
- if_block(qe, (Ne) => {
11854
- get(R).length > 0 && Ne(tn);
11861
+ if_block(Ke, (_e) => {
11862
+ get(R).length > 0 && _e(Qt);
11855
11863
  });
11856
11864
  }
11857
- var nn = sibling(qe, 2);
11865
+ var en = sibling(Ke, 2);
11858
11866
  {
11859
- var un = (Ne) => {
11860
- var Ve = root_39();
11861
- each(Ve, 21, () => get(M), index, (ft, ht, _t) => {
11862
- var bt = root_40(), gt = child(bt), At = sibling(gt);
11863
- reset(bt), template_effect((Oe) => set_text(gt, `<${Oe ?? ""}${get(ht).id ? `#${get(ht).id}` : ""}> `), [() => get(ht).tagName.toLowerCase()]), delegated("click", At, () => me(_t)), append(ft, bt);
11864
- }), reset(Ve), append(Ne, Ve);
11867
+ var ln = (_e) => {
11868
+ var ye = root_39();
11869
+ each(ye, 21, () => get(M), index, (Fe, Ue, lt) => {
11870
+ var ft = root_40(), gt = child(ft), Ft = sibling(gt);
11871
+ reset(ft), template_effect((rt) => set_text(gt, `<${rt ?? ""}${get(Ue).id ? `#${get(Ue).id}` : ""}> `), [() => get(Ue).tagName.toLowerCase()]), delegated("click", Ft, () => me(lt)), append(Fe, ft);
11872
+ }), reset(ye), append(_e, ye);
11865
11873
  };
11866
- if_block(nn, (Ne) => {
11867
- get(M).length > 0 && Ne(un);
11874
+ if_block(en, (_e) => {
11875
+ get(M).length > 0 && _e(ln);
11868
11876
  });
11869
11877
  }
11870
- var Vt = sibling(nn, 2), xn = child(Vt), Rt = sibling(xn, 2), Z = child(Rt, !0);
11871
- reset(Rt), reset(Vt);
11872
- var re = sibling(Vt, 2);
11878
+ var Lt = sibling(en, 2), bn = child(Lt), $t = sibling(bn, 2), yn = child($t, !0);
11879
+ reset($t), reset(Lt);
11880
+ var zn = sibling(Lt, 2);
11873
11881
  {
11874
- var Te = (Ne) => {
11875
- var Ve = root_41(), ft = child(Ve);
11876
- reset(Ve), template_effect((ht) => set_text(ft, `${ht ?? ""} more characters needed`), [() => 10 - get(I).trim().length]), append(Ne, Ve);
11877
- }, ke = /* @__PURE__ */ user_derived(() => get(I).trim().length > 0 && get(I).trim().length < 10);
11878
- if_block(re, (Ne) => {
11879
- get(ke) && Ne(Te);
11882
+ var Z = (_e) => {
11883
+ var ye = root_41(), Fe = child(ye);
11884
+ reset(ye), template_effect((Ue) => set_text(Fe, `${Ue ?? ""} more characters needed`), [() => 10 - get(I).trim().length]), append(_e, ye);
11885
+ }, re = /* @__PURE__ */ user_derived(() => get(I).trim().length > 0 && get(I).trim().length < 10);
11886
+ if_block(zn, (_e) => {
11887
+ get(re) && _e(Z);
11880
11888
  });
11881
11889
  }
11882
- reset(Qe), template_effect(
11883
- (Ne) => {
11884
- Xe.disabled = get(A), set_text(xt, ` ${get(A) ? "..." : "Screenshot"}`), Rt.disabled = Ne, set_text(Z, get(S) === get(te).id ? "..." : "✗ Reject");
11890
+ reset(tt), template_effect(
11891
+ (_e) => {
11892
+ Ye.disabled = get(A), set_text(yt, ` ${get(A) ? "..." : "Screenshot"}`), $t.disabled = _e, set_text(yn, get(S) === get(te).id ? "..." : "✗ Reject");
11885
11893
  },
11886
11894
  [
11887
11895
  () => get(I).trim().length < 10 || get(S) === get(te).id
11888
11896
  ]
11889
- ), bind_value(Ke, () => get(I), (Ne) => set(I, Ne)), delegated("click", Xe, ve), delegated("click", cn, Ee), delegated("click", xn, ye), delegated("click", Rt, () => Se(get(te).id, "rejected", get(I).trim())), append(st, Qe);
11890
- }, wt = (st) => {
11891
- var Qe = root_42(), Ke = child(Qe), dt = child(Ke, !0);
11892
- reset(Ke);
11893
- var Xe = sibling(Ke, 2);
11894
- Xe.textContent = "✗ Reject", reset(Qe), template_effect(() => {
11895
- Ke.disabled = get(S) === get(te).id, set_text(dt, get(S) === get(te).id ? "..." : "✓ Accept"), Xe.disabled = get(S) === get(te).id;
11896
- }), delegated("click", Ke, () => Se(get(te).id, "accepted")), delegated("click", Xe, () => se(get(te).id)), append(st, Qe);
11897
+ ), bind_value(qe, () => get(I), (_e) => set(I, _e)), delegated("click", Ye, ve), delegated("click", Wt, ke), delegated("click", bn, xe), delegated("click", $t, () => Ce(get(te).id, "rejected", get(I).trim())), append(ot, tt);
11898
+ }, St = (ot) => {
11899
+ var tt = root_42(), qe = child(tt), ut = child(qe, !0);
11900
+ reset(qe);
11901
+ var Ye = sibling(qe, 2);
11902
+ Ye.textContent = "✗ Reject", reset(tt), template_effect(() => {
11903
+ qe.disabled = get(S) === get(te).id, set_text(ut, get(S) === get(te).id ? "..." : "✓ Accept"), Ye.disabled = get(S) === get(te).id;
11904
+ }), delegated("click", qe, () => Ce(get(te).id, "accepted")), delegated("click", Ye, () => se(get(te).id)), append(ot, tt);
11897
11905
  };
11898
- if_block(He, (st) => {
11899
- get(k) === get(te).id ? st(ut) : st(wt, !1);
11906
+ if_block(Je, (ot) => {
11907
+ get(k) === get(te).id ? ot(dt) : ot(St, !1);
11900
11908
  });
11901
11909
  }
11902
- append($e, Pe);
11910
+ append(Ne, De);
11903
11911
  };
11904
- if_block(Xn, ($e) => {
11905
- get(te).status === "accepted" ? $e(sr) : get(te).status === "rejected" ? $e(ir, 1) : (get(te).status === "completed" || get(te).status === "wontfix") && $e(Jn, 2);
11912
+ if_block(Xn, (Ne) => {
11913
+ get(te).status === "accepted" ? Ne(an) : get(te).status === "rejected" ? Ne(Jn, 1) : (get(te).status === "completed" || get(te).status === "wontfix") && Ne(ir, 2);
11906
11914
  });
11907
11915
  }
11908
- reset(yn), reset(en), template_effect(($e) => set_text(ln, $e), [() => ie(get(te).created_at)]), transition(3, en, () => slide, () => ({ duration: 200 })), append(sn, en);
11916
+ reset(Kn), reset(Xt), template_effect((Ne) => set_text(Mn, Ne), [() => ie(get(te).created_at)]), transition(3, Xt, () => slide, () => ({ duration: 200 })), append(nn, Xt);
11909
11917
  };
11910
- if_block(jt, (sn) => {
11911
- get(x) === get(te).id && sn(rr);
11918
+ if_block(Dt, (nn) => {
11919
+ get(x) === get(te).id && nn(rr);
11912
11920
  });
11913
11921
  }
11914
- reset(Ye), template_effect(
11915
- (sn, en, an, $n, bn) => {
11916
- nt = set_class(Ye, 1, "report-card svelte-1fnmin5", null, nt, {
11922
+ reset(Xe), template_effect(
11923
+ (nn, Xt, vn, An, rn) => {
11924
+ _t = set_class(Xe, 1, "report-card svelte-1fnmin5", null, _t, {
11917
11925
  awaiting: get(te).status === "completed",
11918
11926
  expanded: get(x) === get(te).id
11919
- }), set_attribute(Ye, "data-card-id", get(te).id), set_text(Ct, sn), set_text(_n, get(te).title), set_style(je, `background: ${en ?? ""}20; color: ${an ?? ""}; border-color: ${$n ?? ""}40;`), set_text(Fe, bn), Qt = set_class(vt, 0, "chevron svelte-1fnmin5", null, Qt, { "chevron-open": get(x) === get(te).id });
11927
+ }), set_attribute(Xe, "data-card-id", get(te).id), set_text(vt, nn), set_text(mn, get(te).title), set_style(Be, `background: ${Xt ?? ""}20; color: ${vn ?? ""}; border-color: ${An ?? ""}40;`), set_text(He, rn), it = set_class(bt, 0, "chevron svelte-1fnmin5", null, it, { "chevron-open": get(x) === get(te).id });
11920
11928
  },
11921
11929
  [
11922
11930
  () => W(get(te)),
@@ -11925,17 +11933,17 @@ function RequestList(d, p) {
11925
11933
  () => G(get(te).status),
11926
11934
  () => P(get(te).status)
11927
11935
  ]
11928
- ), delegated("click", We, () => ce(get(te).id)), append(Le, Ye);
11929
- }), reset(Ze), append(Ie, Ze);
11936
+ ), delegated("click", Ge, () => ce(get(te).id)), append(Oe, Xe);
11937
+ }), reset(Le), append(Te, Le);
11930
11938
  };
11931
- if_block(X, (Ie) => {
11932
- m() ? Ie(fe) : _() && g().length === 0 ? Ie(Q, 1) : g().length === 0 ? Ie(ue, 2) : get(O).length === 0 ? Ie(be, 3) : Ie(Ue, !1);
11939
+ if_block(X, (Te) => {
11940
+ m() ? Te(fe) : _() && g().length === 0 ? Te(Q, 1) : g().length === 0 ? Te(de, 2) : get(O).length === 0 ? Te(we, 3) : Te(Ze, !1);
11933
11941
  });
11934
11942
  }
11935
11943
  reset(H), transition(3, H, () => slide, () => ({ duration: 200 })), append(D, H);
11936
11944
  }), reset(ae), bind_this(ae, (D) => set(E, D), () => get(E)), reset(ne), template_effect(() => {
11937
- K = set_class(B, 1, "subtab svelte-1fnmin5", null, K, { active: get(C) === "active" }), ze = set_class(we, 1, "subtab svelte-1fnmin5", null, ze, { active: get(C) === "done" });
11938
- }), delegated("click", B, () => set(C, "active")), delegated("click", we, () => set(C, "done")), append(d, ne), pop(J);
11945
+ K = set_class(B, 1, "subtab svelte-1fnmin5", null, K, { active: get(C) === "active" }), Me = set_class(Ee, 1, "subtab svelte-1fnmin5", null, Me, { active: get(C) === "done" });
11946
+ }), delegated("click", B, () => set(C, "active")), delegated("click", Ee, () => set(C, "done")), append(d, ne), pop(J);
11939
11947
  }
11940
11948
  delegate(["click"]);
11941
11949
  create_custom_element(
@@ -12110,7 +12118,7 @@ function AgentPanel(d, p) {
12110
12118
  }
12111
12119
  }, F = root$3(), j = child(F), Y = child(j);
12112
12120
  let q;
12113
- var de = sibling(child(Y), 2), oe = child(de);
12121
+ var ue = sibling(child(Y), 2), oe = child(ue);
12114
12122
  {
12115
12123
  var ce = (B) => {
12116
12124
  var K = text("Ready");
@@ -12118,7 +12126,7 @@ function AgentPanel(d, p) {
12118
12126
  }, se = (B) => {
12119
12127
  var K = text("Thinking...");
12120
12128
  append(B, K);
12121
- }, ye = (B) => {
12129
+ }, xe = (B) => {
12122
12130
  var K = text("Acting...");
12123
12131
  append(B, K);
12124
12132
  }, ve = (B) => {
@@ -12129,22 +12137,22 @@ function AgentPanel(d, p) {
12129
12137
  append(B, K);
12130
12138
  };
12131
12139
  if_block(oe, (B) => {
12132
- g() === "idle" ? B(ce) : g() === "thinking" ? B(se, 1) : g() === "acting" ? B(ye, 2) : g() === "awaiting_approval" ? B(ve, 3) : B(Re, !1);
12140
+ g() === "idle" ? B(ce) : g() === "thinking" ? B(se, 1) : g() === "acting" ? B(xe, 2) : g() === "awaiting_approval" ? B(ve, 3) : B(Re, !1);
12133
12141
  });
12134
12142
  }
12135
- reset(de), reset(Y);
12136
- var Ee = sibling(Y, 2), me = child(Ee);
12143
+ reset(ue), reset(Y);
12144
+ var ke = sibling(Y, 2), me = child(ke);
12137
12145
  {
12138
- var Se = (B) => {
12146
+ var Ce = (B) => {
12139
12147
  var K = root_6$2(), pe = child(K);
12140
12148
  reset(K), template_effect(() => set_text(pe, `Step ${m() ?? ""}/${_() ?? ""}`)), append(B, K);
12141
12149
  };
12142
12150
  if_block(me, (B) => {
12143
- m() > 0 && B(Se);
12151
+ m() > 0 && B(Ce);
12144
12152
  });
12145
12153
  }
12146
12154
  var T = sibling(me, 2), z = child(T);
12147
- remove_input_defaults(z), next(2), reset(T), reset(Ee), reset(j);
12155
+ remove_input_defaults(z), next(2), reset(T), reset(ke), reset(j);
12148
12156
  var L = sibling(j, 2), P = child(L);
12149
12157
  {
12150
12158
  var G = (B) => {
@@ -12152,142 +12160,142 @@ function AgentPanel(d, p) {
12152
12160
  append(B, K);
12153
12161
  }, W = (B) => {
12154
12162
  var K = root_8$2(), pe = first_child(K);
12155
- each(pe, 17, h, (ze) => ze.id, (ze, xe) => {
12156
- var Ge = comment(), ae = first_child(Ge);
12163
+ each(pe, 17, h, (Me) => Me.id, (Me, Se) => {
12164
+ var We = comment(), ae = first_child(We);
12157
12165
  {
12158
12166
  var V = (H) => {
12159
12167
  var X = root_10$1();
12160
12168
  let fe;
12161
- var Q = child(X), ue = child(Q);
12169
+ var Q = child(X), de = child(Q);
12162
12170
  {
12163
- var be = (je) => {
12164
- var Fe = text("✓");
12165
- append(je, Fe);
12166
- }, Ue = (je) => {
12167
- var Fe = text("⏭");
12168
- append(je, Fe);
12169
- }, Ie = (je) => {
12170
- var Fe = text("?");
12171
- append(je, Fe);
12171
+ var we = (Be) => {
12172
+ var He = text("✓");
12173
+ append(Be, He);
12174
+ }, Ze = (Be) => {
12175
+ var He = text("⏭");
12176
+ append(Be, He);
12177
+ }, Te = (Be) => {
12178
+ var He = text("?");
12179
+ append(Be, He);
12172
12180
  };
12173
- if_block(ue, (je) => {
12174
- get(xe).approvalStatus === "approved" ? je(be) : get(xe).approvalStatus === "skipped" ? je(Ue, 1) : je(Ie, !1);
12181
+ if_block(de, (Be) => {
12182
+ get(Se).approvalStatus === "approved" ? Be(we) : get(Se).approvalStatus === "skipped" ? Be(Ze, 1) : Be(Te, !1);
12175
12183
  });
12176
12184
  }
12177
12185
  reset(Q);
12178
- var Ze = sibling(Q, 2), Le = child(Ze);
12186
+ var Le = sibling(Q, 2), Oe = child(Le);
12179
12187
  {
12180
- var te = (je) => {
12181
- var Fe = root_14$2(), vt = child(Fe, !0);
12182
- reset(Fe), template_effect(() => set_text(vt, get(xe).tool)), append(je, Fe);
12188
+ var te = (Be) => {
12189
+ var He = root_14$2(), bt = child(He, !0);
12190
+ reset(He), template_effect(() => set_text(bt, get(Se).tool)), append(Be, He);
12183
12191
  };
12184
- if_block(Le, (je) => {
12185
- get(xe).tool && je(te);
12192
+ if_block(Oe, (Be) => {
12193
+ get(Se).tool && Be(te);
12186
12194
  });
12187
12195
  }
12188
- var Ye = sibling(Le, 2), nt = child(Ye, !0);
12189
- reset(Ye);
12190
- var We = sibling(Ye, 2);
12196
+ var Xe = sibling(Oe, 2), _t = child(Xe, !0);
12197
+ reset(Xe);
12198
+ var Ge = sibling(Xe, 2);
12191
12199
  {
12192
- var rt = (je) => {
12193
- var Fe = root_15$2(), vt = child(Fe), Qt = sibling(vt, 2);
12194
- reset(Fe), delegated("click", vt, () => {
12195
- var jt;
12196
- return (jt = x()) == null ? void 0 : jt(get(xe).id);
12197
- }), delegated("click", Qt, () => {
12198
- var jt;
12199
- return (jt = E()) == null ? void 0 : jt(get(xe).id);
12200
- }), append(je, Fe);
12201
- }, Ct = (je) => {
12202
- var Fe = root_16$2();
12203
- let vt;
12204
- var Qt = child(Fe, !0);
12205
- reset(Fe), template_effect(() => {
12206
- vt = set_class(Fe, 1, "approval-badge svelte-bez0nz", null, vt, {
12207
- "badge-approved": get(xe).approvalStatus === "approved",
12208
- "badge-skipped": get(xe).approvalStatus === "skipped"
12209
- }), set_text(Qt, get(xe).approvalStatus);
12210
- }), append(je, Fe);
12200
+ var Ve = (Be) => {
12201
+ var He = root_15$2(), bt = child(He), it = sibling(bt, 2);
12202
+ reset(He), delegated("click", bt, () => {
12203
+ var Dt;
12204
+ return (Dt = x()) == null ? void 0 : Dt(get(Se).id);
12205
+ }), delegated("click", it, () => {
12206
+ var Dt;
12207
+ return (Dt = E()) == null ? void 0 : Dt(get(Se).id);
12208
+ }), append(Be, He);
12209
+ }, vt = (Be) => {
12210
+ var He = root_16$2();
12211
+ let bt;
12212
+ var it = child(He, !0);
12213
+ reset(He), template_effect(() => {
12214
+ bt = set_class(He, 1, "approval-badge svelte-bez0nz", null, bt, {
12215
+ "badge-approved": get(Se).approvalStatus === "approved",
12216
+ "badge-skipped": get(Se).approvalStatus === "skipped"
12217
+ }), set_text(it, get(Se).approvalStatus);
12218
+ }), append(Be, He);
12211
12219
  };
12212
- if_block(We, (je) => {
12213
- get(xe).approvalStatus === "pending" ? je(rt) : je(Ct, !1);
12220
+ if_block(Ge, (Be) => {
12221
+ get(Se).approvalStatus === "pending" ? Be(Ve) : Be(vt, !1);
12214
12222
  });
12215
12223
  }
12216
- reset(Ze);
12217
- var Mt = sibling(Ze, 2);
12224
+ reset(Le);
12225
+ var Nt = sibling(Le, 2);
12218
12226
  {
12219
- var _n = (je) => {
12220
- var Fe = root_17$2(), vt = child(Fe, !0);
12221
- reset(Fe), template_effect(() => set_text(vt, get(xe).step)), append(je, Fe);
12227
+ var mn = (Be) => {
12228
+ var He = root_17$2(), bt = child(He, !0);
12229
+ reset(He), template_effect(() => set_text(bt, get(Se).step)), append(Be, He);
12222
12230
  };
12223
- if_block(Mt, (je) => {
12224
- get(xe).step && je(_n);
12231
+ if_block(Nt, (Be) => {
12232
+ get(Se).step && Be(mn);
12225
12233
  });
12226
12234
  }
12227
12235
  reset(X), template_effect(() => {
12228
12236
  fe = set_class(X, 1, "message msg-approval svelte-bez0nz", null, fe, {
12229
- pending: get(xe).approvalStatus === "pending",
12230
- approved: get(xe).approvalStatus === "approved",
12231
- skipped: get(xe).approvalStatus === "skipped"
12232
- }), set_text(nt, get(xe).text);
12237
+ pending: get(Se).approvalStatus === "pending",
12238
+ approved: get(Se).approvalStatus === "approved",
12239
+ skipped: get(Se).approvalStatus === "skipped"
12240
+ }), set_text(_t, get(Se).text);
12233
12241
  }), append(H, X);
12234
12242
  }, D = (H) => {
12235
12243
  var X = root_18$1(), fe = child(X), Q = child(fe, !0);
12236
12244
  reset(fe);
12237
- var ue = sibling(fe, 2), be = child(ue);
12245
+ var de = sibling(fe, 2), we = child(de);
12238
12246
  {
12239
- var Ue = (We) => {
12240
- var rt = root_19$1(), Ct = child(rt, !0);
12241
- reset(rt), template_effect(() => set_text(Ct, get(xe).tool)), append(We, rt);
12247
+ var Ze = (Ge) => {
12248
+ var Ve = root_19$1(), vt = child(Ve, !0);
12249
+ reset(Ve), template_effect(() => set_text(vt, get(Se).tool)), append(Ge, Ve);
12242
12250
  };
12243
- if_block(be, (We) => {
12244
- get(xe).role === "action" && get(xe).tool && We(Ue);
12251
+ if_block(we, (Ge) => {
12252
+ get(Se).role === "action" && get(Se).tool && Ge(Ze);
12245
12253
  });
12246
12254
  }
12247
- var Ie = sibling(be, 2), Ze = child(Ie, !0);
12248
- reset(Ie);
12249
- var Le = sibling(Ie, 2);
12255
+ var Te = sibling(we, 2), Le = child(Te, !0);
12256
+ reset(Te);
12257
+ var Oe = sibling(Te, 2);
12250
12258
  {
12251
- var te = (We) => {
12252
- var rt = root_20$1(), Ct = child(rt, !0);
12253
- reset(rt), template_effect((Mt) => set_text(Ct, Mt), [() => $(get(xe).duration)]), append(We, rt);
12259
+ var te = (Ge) => {
12260
+ var Ve = root_20$1(), vt = child(Ve, !0);
12261
+ reset(Ve), template_effect((Nt) => set_text(vt, Nt), [() => $(get(Se).duration)]), append(Ge, Ve);
12254
12262
  };
12255
- if_block(Le, (We) => {
12256
- get(xe).duration != null && We(te);
12263
+ if_block(Oe, (Ge) => {
12264
+ get(Se).duration != null && Ge(te);
12257
12265
  });
12258
12266
  }
12259
- reset(ue);
12260
- var Ye = sibling(ue, 2);
12267
+ reset(de);
12268
+ var Xe = sibling(de, 2);
12261
12269
  {
12262
- var nt = (We) => {
12263
- var rt = root_21$1(), Ct = child(rt, !0);
12264
- reset(rt), template_effect(() => set_text(Ct, get(xe).step)), append(We, rt);
12270
+ var _t = (Ge) => {
12271
+ var Ve = root_21$1(), vt = child(Ve, !0);
12272
+ reset(Ve), template_effect(() => set_text(vt, get(Se).step)), append(Ge, Ve);
12265
12273
  };
12266
- if_block(Ye, (We) => {
12267
- get(xe).step && We(nt);
12274
+ if_block(Xe, (Ge) => {
12275
+ get(Se).step && Ge(_t);
12268
12276
  });
12269
12277
  }
12270
12278
  reset(X), template_effect(
12271
- (We) => {
12272
- set_class(X, 1, `message msg-${get(xe).role ?? ""}`, "svelte-bez0nz"), set_text(Q, We), set_text(Ze, get(xe).text);
12279
+ (Ge) => {
12280
+ set_class(X, 1, `message msg-${get(Se).role ?? ""}`, "svelte-bez0nz"), set_text(Q, Ge), set_text(Le, get(Se).text);
12273
12281
  },
12274
- [() => N(get(xe).role)]
12282
+ [() => N(get(Se).role)]
12275
12283
  ), append(H, X);
12276
12284
  };
12277
12285
  if_block(ae, (H) => {
12278
- get(xe).role === "approval" ? H(V) : H(D, !1);
12286
+ get(Se).role === "approval" ? H(V) : H(D, !1);
12279
12287
  });
12280
12288
  }
12281
- append(ze, Ge);
12289
+ append(Me, We);
12282
12290
  });
12283
12291
  var le = sibling(pe, 2);
12284
12292
  {
12285
- var we = (ze) => {
12286
- var xe = root_22$1();
12287
- append(ze, xe);
12293
+ var Ee = (Me) => {
12294
+ var Se = root_22$1();
12295
+ append(Me, Se);
12288
12296
  };
12289
- if_block(le, (ze) => {
12290
- g() === "thinking" && ze(we);
12297
+ if_block(le, (Me) => {
12298
+ g() === "thinking" && Me(Ee);
12291
12299
  });
12292
12300
  }
12293
12301
  append(B, K);
@@ -12390,7 +12398,7 @@ function NotesPanel(d, p) {
12390
12398
  function q() {
12391
12399
  set(E, "list"), set(S, null), set(k, !1), set(C, !1);
12392
12400
  }
12393
- async function de() {
12401
+ async function ue() {
12394
12402
  var z, L;
12395
12403
  if (get(I).trim()) {
12396
12404
  if (set(w, !0), get(k)) {
@@ -12435,7 +12443,7 @@ function NotesPanel(d, p) {
12435
12443
  return z ? z.split(`
12436
12444
  `).filter((L) => L.trim()).length : 0;
12437
12445
  }
12438
- function ye(z) {
12446
+ function xe(z) {
12439
12447
  if (!z) return '<span style="color:#6b7280;font-style:italic">No content</span>';
12440
12448
  let L = z.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
12441
12449
  return L = L.replace(/```([^`]*?)```/gs, '<pre style="background:#1f2937;padding:8px;border-radius:4px;font-size:11px;overflow-x:auto;margin:4px 0">$1</pre>'), L = L.replace(/`([^`]+)`/g, '<code style="background:#1f2937;padding:1px 4px;border-radius:3px;font-size:11px">$1</code>'), L = L.replace(/^### (.+)$/gm, '<strong style="display:block;margin-top:8px;font-size:12px;color:#d1d5db">$1</strong>'), L = L.replace(/^## (.+)$/gm, '<strong style="display:block;margin-top:8px;font-size:13px;color:#e5e7eb">$1</strong>'), L = L.replace(/^# (.+)$/gm, '<strong style="display:block;margin-top:8px;font-size:14px;color:#f3f4f6">$1</strong>'), L = L.replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>"), L = L.replace(/\*(.+?)\*/g, "<em>$1</em>"), L = L.replace(/^- (.+)$/gm, '<span style="display:block;padding-left:12px">&#8226; $1</span>'), L = L.replace(/^(\d+)\. (.+)$/gm, '<span style="display:block;padding-left:12px">$1. $2</span>'), L = L.replace(/\n(?!<)/g, "<br>"), L;
@@ -12462,9 +12470,9 @@ function NotesPanel(d, p) {
12462
12470
  set onnoteschanged(z) {
12463
12471
  m(z), flushSync();
12464
12472
  }
12465
- }, Ee = root$2(), me = child(Ee);
12473
+ }, ke = root$2(), me = child(ke);
12466
12474
  {
12467
- var Se = (z) => {
12475
+ var Ce = (z) => {
12468
12476
  var L = root_1$2(), P = child(L), G = sibling(child(P), 2);
12469
12477
  reset(P);
12470
12478
  var W = sibling(P, 2);
@@ -12481,10 +12489,10 @@ function NotesPanel(d, p) {
12481
12489
  var B = (V) => {
12482
12490
  var D = root_5$1(), H = child(D), X = sibling(child(H), 2), fe = child(X), Q = child(fe, !0);
12483
12491
  reset(fe);
12484
- var ue = sibling(fe, 2), be = child(ue);
12485
- reset(ue), reset(X), reset(H), next(2), reset(D), template_effect(
12486
- (Ue, Ie) => {
12487
- set_text(Q, get(N).title || "Site-wide notes"), set_text(be, `${Ue ?? ""} line${Ie ?? ""}`);
12492
+ var de = sibling(fe, 2), we = child(de);
12493
+ reset(de), reset(X), reset(H), next(2), reset(D), template_effect(
12494
+ (Ze, Te) => {
12495
+ set_text(Q, get(N).title || "Site-wide notes"), set_text(we, `${Ze ?? ""} line${Te ?? ""}`);
12488
12496
  },
12489
12497
  [
12490
12498
  () => se(get(N).content),
@@ -12509,25 +12517,25 @@ function NotesPanel(d, p) {
12509
12517
  (get($).length > 0 || !get(O)) && V(le);
12510
12518
  });
12511
12519
  }
12512
- var we = sibling(pe, 2);
12513
- each(we, 17, () => get($), index, (V, D) => {
12520
+ var Ee = sibling(pe, 2);
12521
+ each(Ee, 17, () => get($), index, (V, D) => {
12514
12522
  var H = root_8$1();
12515
12523
  let X;
12516
- var fe = child(H), Q = sibling(child(fe), 2), ue = child(Q), be = child(ue), Ue = sibling(be);
12524
+ var fe = child(H), Q = sibling(child(fe), 2), de = child(Q), we = child(de), Ze = sibling(we);
12517
12525
  {
12518
- var Ie = (te) => {
12519
- var Ye = root_9$1();
12520
- append(te, Ye);
12526
+ var Te = (te) => {
12527
+ var Xe = root_9$1();
12528
+ append(te, Xe);
12521
12529
  };
12522
- if_block(Ue, (te) => {
12523
- get(D).route === get(x) && te(Ie);
12530
+ if_block(Ze, (te) => {
12531
+ get(D).route === get(x) && te(Te);
12524
12532
  });
12525
12533
  }
12526
- reset(ue);
12527
- var Ze = sibling(ue, 2), Le = child(Ze);
12528
- reset(Ze), reset(Q), reset(fe), next(2), reset(H), template_effect(
12529
- (te, Ye) => {
12530
- X = set_class(H, 1, "note-row svelte-zp32f3", null, X, { current: get(D).route === get(x) }), set_text(be, `${get(D).route ?? ""} `), set_text(Le, `${te ?? ""} line${Ye ?? ""}`);
12534
+ reset(de);
12535
+ var Le = sibling(de, 2), Oe = child(Le);
12536
+ reset(Le), reset(Q), reset(fe), next(2), reset(H), template_effect(
12537
+ (te, Xe) => {
12538
+ X = set_class(H, 1, "note-row svelte-zp32f3", null, X, { current: get(D).route === get(x) }), set_text(we, `${get(D).route ?? ""} `), set_text(Oe, `${te ?? ""} line${Xe ?? ""}`);
12531
12539
  },
12532
12540
  [
12533
12541
  () => se(get(D).content),
@@ -12535,23 +12543,23 @@ function NotesPanel(d, p) {
12535
12543
  ]
12536
12544
  ), delegated("click", H, () => j(get(D))), append(V, H);
12537
12545
  });
12538
- var ze = sibling(we, 2);
12546
+ var Me = sibling(Ee, 2);
12539
12547
  {
12540
- var xe = (V) => {
12548
+ var Se = (V) => {
12541
12549
  var D = root_10(), H = child(D), X = sibling(child(H), 2), fe = child(X);
12542
12550
  reset(X), reset(H), reset(D), template_effect(() => set_text(fe, `Add note for ${get(x) ?? ""}`)), delegated("click", D, () => Y(get(x))), append(V, D);
12543
12551
  };
12544
- if_block(ze, (V) => {
12545
- get(O) || V(xe);
12552
+ if_block(Me, (V) => {
12553
+ get(O) || V(Se);
12546
12554
  });
12547
12555
  }
12548
- var Ge = sibling(ze, 2);
12556
+ var We = sibling(Me, 2);
12549
12557
  {
12550
12558
  var ae = (V) => {
12551
12559
  var D = root_11$1();
12552
12560
  append(V, D);
12553
12561
  };
12554
- if_block(Ge, (V) => {
12562
+ if_block(We, (V) => {
12555
12563
  get(_).length === 0 && !get(b) && V(ae);
12556
12564
  });
12557
12565
  }
@@ -12574,64 +12582,64 @@ function NotesPanel(d, p) {
12574
12582
  var K = sibling(he, 2);
12575
12583
  {
12576
12584
  var pe = (Q) => {
12577
- var ue = root_13$1(), be = child(ue);
12578
- html(be, () => ye(get(R))), reset(ue), append(Q, ue);
12585
+ var de = root_13$1(), we = child(de);
12586
+ html(we, () => xe(get(R))), reset(de), append(Q, de);
12579
12587
  }, le = (Q) => {
12580
- var ue = root_14$1(), be = sibling(child(ue), 2);
12581
- remove_textarea_child(be), reset(ue), template_effect(() => be.disabled = get(w)), bind_value(be, () => get(R), (Ue) => set(R, Ue)), append(Q, ue);
12588
+ var de = root_14$1(), we = sibling(child(de), 2);
12589
+ remove_textarea_child(we), reset(de), template_effect(() => we.disabled = get(w)), bind_value(we, () => get(R), (Ze) => set(R, Ze)), append(Q, de);
12582
12590
  };
12583
12591
  if_block(K, (Q) => {
12584
12592
  get(A) ? Q(pe) : Q(le, !1);
12585
12593
  });
12586
12594
  }
12587
- var we = sibling(K, 2);
12595
+ var Ee = sibling(K, 2);
12588
12596
  {
12589
- var ze = (Q) => {
12590
- var ue = root_15$1(), be = child(ue, !0);
12591
- reset(ue), template_effect(() => set_text(be, get(y))), append(Q, ue);
12597
+ var Me = (Q) => {
12598
+ var de = root_15$1(), we = child(de, !0);
12599
+ reset(de), template_effect(() => set_text(we, get(y))), append(Q, de);
12592
12600
  };
12593
- if_block(we, (Q) => {
12594
- get(y) && Q(ze);
12601
+ if_block(Ee, (Q) => {
12602
+ get(y) && Q(Me);
12595
12603
  });
12596
12604
  }
12597
12605
  reset(ee);
12598
- var xe = sibling(ee, 2), Ge = child(xe);
12606
+ var Se = sibling(ee, 2), We = child(Se);
12599
12607
  {
12600
12608
  var ae = (Q) => {
12601
- var ue = root_16$1();
12602
- let be;
12603
- var Ue = child(ue, !0);
12604
- reset(ue), template_effect(() => {
12605
- be = set_class(ue, 1, "delete-btn svelte-zp32f3", null, be, { confirm: get(C) }), ue.disabled = get(w), set_text(Ue, get(C) ? "Confirm delete?" : "Delete");
12606
- }), delegated("click", ue, oe), append(Q, ue);
12609
+ var de = root_16$1();
12610
+ let we;
12611
+ var Ze = child(de, !0);
12612
+ reset(de), template_effect(() => {
12613
+ we = set_class(de, 1, "delete-btn svelte-zp32f3", null, we, { confirm: get(C) }), de.disabled = get(w), set_text(Ze, get(C) ? "Confirm delete?" : "Delete");
12614
+ }), delegated("click", de, oe), append(Q, de);
12607
12615
  };
12608
- if_block(Ge, (Q) => {
12616
+ if_block(We, (Q) => {
12609
12617
  get(k) || Q(ae);
12610
12618
  });
12611
12619
  }
12612
- var V = sibling(Ge, 4), D = sibling(V, 2), H = child(D);
12620
+ var V = sibling(We, 4), D = sibling(V, 2), H = child(D);
12613
12621
  {
12614
12622
  var X = (Q) => {
12615
- var ue = root_17$1();
12616
- append(Q, ue);
12623
+ var de = root_17$1();
12624
+ append(Q, de);
12617
12625
  };
12618
12626
  if_block(H, (Q) => {
12619
12627
  get(w) && Q(X);
12620
12628
  });
12621
12629
  }
12622
12630
  var fe = sibling(H);
12623
- reset(D), reset(xe), reset(L), template_effect(
12631
+ reset(D), reset(Se), reset(L), template_effect(
12624
12632
  (Q) => {
12625
12633
  set_text(ie, get(M) ? get(M) : "Site-wide"), ne = set_class(J, 1, "preview-toggle svelte-zp32f3", null, ne, { active: get(A) }), set_text(ge, get(A) ? "Edit" : "Preview"), B.disabled = get(w), V.disabled = get(w), D.disabled = Q, set_text(fe, ` ${get(k) ? "Create" : "Save"}`);
12626
12634
  },
12627
12635
  [() => get(w) || !get(I).trim()]
12628
- ), delegated("click", G, q), delegated("click", J, () => set(A, !get(A))), bind_value(B, () => get(I), (Q) => set(I, Q)), delegated("click", V, q), delegated("click", D, de), transition(3, L, () => slide, () => ({ duration: 200 })), append(z, L);
12636
+ ), delegated("click", G, q), delegated("click", J, () => set(A, !get(A))), bind_value(B, () => get(I), (Q) => set(I, Q)), delegated("click", V, q), delegated("click", D, ue), transition(3, L, () => slide, () => ({ duration: 200 })), append(z, L);
12629
12637
  };
12630
12638
  if_block(me, (z) => {
12631
- get(E) === "list" ? z(Se) : get(E) === "edit" && z(T, 1);
12639
+ get(E) === "list" ? z(Ce) : get(E) === "edit" && z(T, 1);
12632
12640
  });
12633
12641
  }
12634
- return reset(Ee), delegated("keydown", Ee, ve), append(d, Ee), pop(Re);
12642
+ return reset(ke), delegated("keydown", ke, ve), append(d, ke), pop(Re);
12635
12643
  }
12636
12644
  delegate(["keydown", "click"]);
12637
12645
  create_custom_element(NotesPanel, { endpoint: {}, project: {}, onnoteschanged: {} }, [], [], { mode: "open" });
@@ -14840,7 +14848,7 @@ class JSONSchemaGenerator {
14840
14848
  var F;
14841
14849
  const C = this.target === "draft-2020-12" ? "$defs" : "definitions";
14842
14850
  if (g.external) {
14843
- const j = (F = g.external.registry.get(A[0])) == null ? void 0 : F.id, Y = g.external.uri ?? ((de) => de);
14851
+ const j = (F = g.external.registry.get(A[0])) == null ? void 0 : F.id, Y = g.external.uri ?? ((ue) => ue);
14844
14852
  if (j)
14845
14853
  return { ref: Y(j) };
14846
14854
  const q = A[1].defId ?? A[1].schema.id ?? `schema${this.counter++}`;
@@ -15448,13 +15456,13 @@ const InvokeErrorType = {
15448
15456
  }, _InvokeError = class extends Error {
15449
15457
  constructor(h, g, m, _) {
15450
15458
  super(g);
15451
- Ce(this, "type");
15452
- Ce(this, "retryable");
15453
- Ce(this, "statusCode");
15459
+ Ie(this, "type");
15460
+ Ie(this, "retryable");
15461
+ Ie(this, "statusCode");
15454
15462
  /* raw error (provided if this error is caused by another error) */
15455
- Ce(this, "rawError");
15463
+ Ie(this, "rawError");
15456
15464
  /* raw response from the API (provided if this error is caused by an API calling) */
15457
- Ce(this, "rawResponse");
15465
+ Ie(this, "rawResponse");
15458
15466
  this.name = "InvokeError", this.type = h, this.retryable = this.isRetryable(h, m), this.rawError = m, this.rawResponse = _;
15459
15467
  }
15460
15468
  isRetryable(h, g) {
@@ -15500,12 +15508,12 @@ function normalizeModelName(d) {
15500
15508
  __name$3(normalizeModelName, "normalizeModelName");
15501
15509
  const _OpenAIClient = class {
15502
15510
  constructor(p) {
15503
- Ce(this, "config");
15504
- Ce(this, "fetch");
15511
+ Ie(this, "config");
15512
+ Ie(this, "fetch");
15505
15513
  this.config = p, this.fetch = p.customFetch;
15506
15514
  }
15507
15515
  async invoke(p, h, g, m) {
15508
- var $, O, F, j, Y, q, de, oe, ce, se, ye, ve, Re, Ee, me, Se, T, z;
15516
+ var $, O, F, j, Y, q, ue, oe, ce, se, xe, ve, Re, ke, me, Ce, T, z;
15509
15517
  const _ = Object.entries(h).map(([L, P]) => zodToOpenAITool(L, P)), b = {
15510
15518
  model: this.config.model,
15511
15519
  temperature: this.config.temperature,
@@ -15582,7 +15590,7 @@ const _OpenAIClient = class {
15582
15590
  w
15583
15591
  );
15584
15592
  }
15585
- const S = (F = (m != null && m.normalizeResponse ? m.normalizeResponse(w) : w).choices) == null ? void 0 : F[0], k = (de = (q = (Y = (j = S == null ? void 0 : S.message) == null ? void 0 : j.tool_calls) == null ? void 0 : Y[0]) == null ? void 0 : q.function) == null ? void 0 : de.name;
15593
+ const S = (F = (m != null && m.normalizeResponse ? m.normalizeResponse(w) : w).choices) == null ? void 0 : F[0], k = (ue = (q = (Y = (j = S == null ? void 0 : S.message) == null ? void 0 : j.tool_calls) == null ? void 0 : Y[0]) == null ? void 0 : q.function) == null ? void 0 : ue.name;
15586
15594
  if (!k)
15587
15595
  throw new InvokeError(
15588
15596
  InvokeErrorType.NO_TOOL_CALL,
@@ -15598,7 +15606,7 @@ const _OpenAIClient = class {
15598
15606
  void 0,
15599
15607
  w
15600
15608
  );
15601
- const R = (ye = (se = (ce = (oe = S.message) == null ? void 0 : oe.tool_calls) == null ? void 0 : ce[0]) == null ? void 0 : se.function) == null ? void 0 : ye.arguments;
15609
+ const R = (xe = (se = (ce = (oe = S.message) == null ? void 0 : oe.tool_calls) == null ? void 0 : ce[0]) == null ? void 0 : se.function) == null ? void 0 : xe.arguments;
15602
15610
  if (!R)
15603
15611
  throw new InvokeError(
15604
15612
  InvokeErrorType.INVALID_TOOL_ARGS,
@@ -15646,8 +15654,8 @@ const _OpenAIClient = class {
15646
15654
  usage: {
15647
15655
  promptTokens: ((ve = w.usage) == null ? void 0 : ve.prompt_tokens) ?? 0,
15648
15656
  completionTokens: ((Re = w.usage) == null ? void 0 : Re.completion_tokens) ?? 0,
15649
- totalTokens: ((Ee = w.usage) == null ? void 0 : Ee.total_tokens) ?? 0,
15650
- cachedTokens: (Se = (me = w.usage) == null ? void 0 : me.prompt_tokens_details) == null ? void 0 : Se.cached_tokens,
15657
+ totalTokens: ((ke = w.usage) == null ? void 0 : ke.total_tokens) ?? 0,
15658
+ cachedTokens: (Ce = (me = w.usage) == null ? void 0 : me.prompt_tokens_details) == null ? void 0 : Ce.cached_tokens,
15651
15659
  reasoningTokens: (z = (T = w.usage) == null ? void 0 : T.completion_tokens_details) == null ? void 0 : z.reasoning_tokens
15652
15660
  },
15653
15661
  rawResponse: w,
@@ -15677,8 +15685,8 @@ __name$3(parseLLMConfig, "parseLLMConfig");
15677
15685
  const _LLM = class extends EventTarget {
15678
15686
  constructor(h) {
15679
15687
  super();
15680
- Ce(this, "config");
15681
- Ce(this, "client");
15688
+ Ie(this, "config");
15689
+ Ie(this, "client");
15682
15690
  this.config = parseLLMConfig(h), this.client = new OpenAIClient(this.config);
15683
15691
  }
15684
15692
  /**
@@ -16711,20 +16719,20 @@ const domTree = /* @__PURE__ */ __name$1((d = {
16711
16719
  if (X.width === 0 || X.height === 0) continue;
16712
16720
  const fe = document.createElement("div");
16713
16721
  fe.style.position = "fixed", fe.style.border = `2px solid ${B}`, fe.style.backgroundColor = K, fe.style.pointerEvents = "none", fe.style.boxSizing = "border-box";
16714
- const Q = X.top + pe.y, ue = X.left + pe.x;
16715
- fe.style.top = `${Q}px`, fe.style.left = `${ue}px`, fe.style.width = `${X.width}px`, fe.style.height = `${X.height}px`, le.appendChild(fe), P.push({ element: fe, initialRect: X });
16722
+ const Q = X.top + pe.y, de = X.left + pe.x;
16723
+ fe.style.top = `${Q}px`, fe.style.left = `${de}px`, fe.style.width = `${X.width}px`, fe.style.height = `${X.height}px`, le.appendChild(fe), P.push({ element: fe, initialRect: X });
16716
16724
  }
16717
- const we = ge[0];
16718
- G = document.createElement("div"), G.className = "playwright-highlight-label", G.style.position = "fixed", G.style.background = B, G.style.color = "white", G.style.padding = "1px 4px", G.style.borderRadius = "4px", G.style.fontSize = `${Math.min(12, Math.max(8, we.height / 2))}px`, G.textContent = z.toString(), W = G.offsetWidth > 0 ? G.offsetWidth : W, ie = G.offsetHeight > 0 ? G.offsetHeight : ie;
16719
- const ze = we.top + pe.y, xe = we.left + pe.x;
16720
- let Ge = ze + 2, ae = xe + we.width - W - 2;
16721
- (we.width < W + 4 || we.height < ie + 4) && (Ge = ze - ie - 2, ae = xe + we.width - W, ae < pe.x && (ae = xe)), Ge = Math.max(0, Math.min(Ge, window.innerHeight - ie)), ae = Math.max(0, Math.min(ae, window.innerWidth - W)), G.style.top = `${Ge}px`, G.style.left = `${ae}px`, le.appendChild(G);
16725
+ const Ee = ge[0];
16726
+ G = document.createElement("div"), G.className = "playwright-highlight-label", G.style.position = "fixed", G.style.background = B, G.style.color = "white", G.style.padding = "1px 4px", G.style.borderRadius = "4px", G.style.fontSize = `${Math.min(12, Math.max(8, Ee.height / 2))}px`, G.textContent = z.toString(), W = G.offsetWidth > 0 ? G.offsetWidth : W, ie = G.offsetHeight > 0 ? G.offsetHeight : ie;
16727
+ const Me = Ee.top + pe.y, Se = Ee.left + pe.x;
16728
+ let We = Me + 2, ae = Se + Ee.width - W - 2;
16729
+ (Ee.width < W + 4 || Ee.height < ie + 4) && (We = Me - ie - 2, ae = Se + Ee.width - W, ae < pe.x && (ae = Se)), We = Math.max(0, Math.min(We, window.innerHeight - ie)), ae = Math.max(0, Math.min(ae, window.innerWidth - W)), G.style.top = `${We}px`, G.style.left = `${ae}px`, le.appendChild(G);
16722
16730
  const H = (/* @__PURE__ */ __name$1((X, fe) => {
16723
16731
  let Q = 0;
16724
- return (...ue) => {
16725
- const be = performance.now();
16726
- if (!(be - Q < fe))
16727
- return Q = be, X(...ue);
16732
+ return (...de) => {
16733
+ const we = performance.now();
16734
+ if (!(we - Q < fe))
16735
+ return Q = we, X(...de);
16728
16736
  };
16729
16737
  }, "throttleFunction"))(/* @__PURE__ */ __name$1(() => {
16730
16738
  const X = T.getClientRects();
@@ -16733,19 +16741,19 @@ const domTree = /* @__PURE__ */ __name$1((d = {
16733
16741
  const Q = L.getBoundingClientRect();
16734
16742
  fe.x = Q.left, fe.y = Q.top;
16735
16743
  }
16736
- if (P.forEach((Q, ue) => {
16737
- if (ue < X.length) {
16738
- const be = X[ue], Ue = be.top + fe.y, Ie = be.left + fe.x;
16739
- Q.element.style.top = `${Ue}px`, Q.element.style.left = `${Ie}px`, Q.element.style.width = `${be.width}px`, Q.element.style.height = `${be.height}px`, Q.element.style.display = be.width === 0 || be.height === 0 ? "none" : "block";
16744
+ if (P.forEach((Q, de) => {
16745
+ if (de < X.length) {
16746
+ const we = X[de], Ze = we.top + fe.y, Te = we.left + fe.x;
16747
+ Q.element.style.top = `${Ze}px`, Q.element.style.left = `${Te}px`, Q.element.style.width = `${we.width}px`, Q.element.style.height = `${we.height}px`, Q.element.style.display = we.width === 0 || we.height === 0 ? "none" : "block";
16740
16748
  } else
16741
16749
  Q.element.style.display = "none";
16742
16750
  }), X.length < P.length)
16743
16751
  for (let Q = X.length; Q < P.length; Q++)
16744
16752
  P[Q].element.style.display = "none";
16745
16753
  if (G && X.length > 0) {
16746
- const Q = X[0], ue = Q.top + fe.y, be = Q.left + fe.x;
16747
- let Ue = ue + 2, Ie = be + Q.width - W - 2;
16748
- (Q.width < W + 4 || Q.height < ie + 4) && (Ue = ue - ie - 2, Ie = be + Q.width - W, Ie < fe.x && (Ie = be)), Ue = Math.max(0, Math.min(Ue, window.innerHeight - ie)), Ie = Math.max(0, Math.min(Ie, window.innerWidth - W)), G.style.top = `${Ue}px`, G.style.left = `${Ie}px`, G.style.display = "block";
16754
+ const Q = X[0], de = Q.top + fe.y, we = Q.left + fe.x;
16755
+ let Ze = de + 2, Te = we + Q.width - W - 2;
16756
+ (Q.width < W + 4 || Q.height < ie + 4) && (Ze = de - ie - 2, Te = we + Q.width - W, Te < fe.x && (Te = we)), Ze = Math.max(0, Math.min(Ze, window.innerHeight - ie)), Te = Math.max(0, Math.min(Te, window.innerWidth - W)), G.style.top = `${Ze}px`, G.style.left = `${Te}px`, G.style.display = "block";
16749
16757
  } else G && (G.style.display = "none");
16750
16758
  }, "updatePositions"), 16);
16751
16759
  return window.addEventListener("scroll", H, !0), window.addEventListener("resize", H), J = /* @__PURE__ */ __name$1(() => {
@@ -17036,14 +17044,14 @@ const domTree = /* @__PURE__ */ __name$1((d = {
17036
17044
  if (J.has(z) || ge && he.has(ge) || ee && he.has(ee)) return !0;
17037
17045
  try {
17038
17046
  if (typeof getEventListeners == "function") {
17039
- const ze = getEventListeners(T), xe = ["click", "mousedown", "mouseup", "dblclick"];
17040
- for (const Ge of xe)
17041
- if (ze[Ge] && ze[Ge].length > 0)
17047
+ const Me = getEventListeners(T), Se = ["click", "mousedown", "mouseup", "dblclick"];
17048
+ for (const We of Se)
17049
+ if (Me[We] && Me[We].length > 0)
17042
17050
  return !0;
17043
17051
  }
17044
17052
  const le = ((pe = (K = T == null ? void 0 : T.ownerDocument) == null ? void 0 : K.defaultView) == null ? void 0 : pe.getEventListenersForNode) || window.getEventListenersForNode;
17045
17053
  if (typeof le == "function") {
17046
- const ze = le(T), xe = [
17054
+ const Me = le(T), Se = [
17047
17055
  "click",
17048
17056
  "mousedown",
17049
17057
  "mouseup",
@@ -17055,21 +17063,21 @@ const domTree = /* @__PURE__ */ __name$1((d = {
17055
17063
  "focus",
17056
17064
  "blur"
17057
17065
  ];
17058
- for (const Ge of xe)
17059
- for (const ae of ze)
17060
- if (ae.type === Ge)
17066
+ for (const We of Se)
17067
+ for (const ae of Me)
17068
+ if (ae.type === We)
17061
17069
  return !0;
17062
17070
  }
17063
- const we = ["onclick", "onmousedown", "onmouseup", "ondblclick"];
17064
- for (const ze of we)
17065
- if (T.hasAttribute(ze) || typeof T[ze] == "function")
17071
+ const Ee = ["onclick", "onmousedown", "onmouseup", "ondblclick"];
17072
+ for (const Me of Ee)
17073
+ if (T.hasAttribute(Me) || typeof T[Me] == "function")
17066
17074
  return !0;
17067
17075
  } catch {
17068
17076
  }
17069
17077
  return !!O(T);
17070
17078
  }
17071
17079
  __name$1(q, "isInteractiveElement");
17072
- function de(T) {
17080
+ function ue(T) {
17073
17081
  if (y === -1)
17074
17082
  return !0;
17075
17083
  const z = M(T);
@@ -17130,7 +17138,7 @@ const domTree = /* @__PURE__ */ __name$1((d = {
17130
17138
  }
17131
17139
  });
17132
17140
  }
17133
- __name$1(de, "isTopElement");
17141
+ __name$1(ue, "isTopElement");
17134
17142
  function oe(T, z) {
17135
17143
  if (z === -1)
17136
17144
  return !0;
@@ -17170,7 +17178,7 @@ const domTree = /* @__PURE__ */ __name$1((d = {
17170
17178
  "details",
17171
17179
  "label",
17172
17180
  "option"
17173
- ]), ye = /* @__PURE__ */ new Set([
17181
+ ]), xe = /* @__PURE__ */ new Set([
17174
17182
  "button",
17175
17183
  "link",
17176
17184
  "menuitem",
@@ -17202,7 +17210,7 @@ const domTree = /* @__PURE__ */ __name$1((d = {
17202
17210
  if (!T || T.nodeType !== Node.ELEMENT_NODE)
17203
17211
  return !1;
17204
17212
  const z = T.tagName.toLowerCase(), L = T.getAttribute("role");
17205
- if (z === "iframe" || se.has(z) || L && ye.has(L) || T.isContentEditable || T.getAttribute("contenteditable") === "true" || T.hasAttribute("data-testid") || T.hasAttribute("data-cy") || T.hasAttribute("data-test") || T.hasAttribute("onclick") || typeof T.onclick == "function")
17213
+ if (z === "iframe" || se.has(z) || L && xe.has(L) || T.isContentEditable || T.getAttribute("contenteditable") === "true" || T.hasAttribute("data-testid") || T.hasAttribute("data-cy") || T.hasAttribute("data-test") || T.hasAttribute("onclick") || typeof T.onclick == "function")
17206
17214
  return !0;
17207
17215
  try {
17208
17216
  const W = ((G = (P = T == null ? void 0 : T.ownerDocument) == null ? void 0 : P.defaultView) == null ? void 0 : G.getEventListenersForNode) || window.getEventListenersForNode;
@@ -17241,12 +17249,12 @@ const domTree = /* @__PURE__ */ __name$1((d = {
17241
17249
  return !!ve(T);
17242
17250
  }
17243
17251
  __name$1(Re, "isElementDistinctInteraction");
17244
- function Ee(T, z, L, P) {
17252
+ function ke(T, z, L, P) {
17245
17253
  if (!T.isInteractive) return !1;
17246
17254
  let G = !1;
17247
17255
  return P ? Re(z) ? G = !0 : G = !1 : G = !0, G && (T.isInViewport = oe(z, y), (T.isInViewport || y === -1) && (T.highlightIndex = x++, _)) ? (b >= 0 ? b === T.highlightIndex && $(z, T.highlightIndex, L) : $(z, T.highlightIndex, L), !0) : !1;
17248
17256
  }
17249
- __name$1(Ee, "handleHighlighting");
17257
+ __name$1(ke, "handleHighlighting");
17250
17258
  function me(T, z = null, L = !1) {
17251
17259
  var ie, J, ne, ge, ee, he, B;
17252
17260
  if (!T || T.id === N || T.nodeType !== Node.ELEMENT_NODE && T.nodeType !== Node.TEXT_NODE || !T || T.id === N || ((ie = T.dataset) == null ? void 0 : ie.browserUseIgnore) === "true" || ((J = T.dataset) == null ? void 0 : J.pageAgentIgnore) === "true" || T.getAttribute && T.getAttribute("aria-hidden") === "true")
@@ -17259,8 +17267,8 @@ const domTree = /* @__PURE__ */ __name$1((d = {
17259
17267
  children: []
17260
17268
  };
17261
17269
  for (const le of T.childNodes) {
17262
- const we = me(le, z, !1);
17263
- we && K.children.push(we);
17270
+ const Ee = me(le, z, !1);
17271
+ Ee && K.children.push(Ee);
17264
17272
  }
17265
17273
  const pe = `${C.current++}`;
17266
17274
  return A[pe] = K, pe;
@@ -17284,8 +17292,8 @@ const domTree = /* @__PURE__ */ __name$1((d = {
17284
17292
  if (T.nodeType === Node.ELEMENT_NODE && !j(T))
17285
17293
  return null;
17286
17294
  if (y !== -1 && !T.shadowRoot) {
17287
- const K = I(T), pe = R(T), le = pe && (pe.position === "fixed" || pe.position === "sticky"), we = T.offsetWidth > 0 || T.offsetHeight > 0;
17288
- if (!K || !le && !we && (K.bottom < -y || K.top > window.innerHeight + y || K.right < -y || K.left > window.innerWidth + y))
17295
+ const K = I(T), pe = R(T), le = pe && (pe.position === "fixed" || pe.position === "sticky"), Ee = T.offsetWidth > 0 || T.offsetHeight > 0;
17296
+ if (!K || !le && !Ee && (K.bottom < -y || K.top > window.innerHeight + y || K.right < -y || K.left > window.innerWidth + y))
17289
17297
  return null;
17290
17298
  }
17291
17299
  const P = {
@@ -17307,13 +17315,13 @@ const domTree = /* @__PURE__ */ __name$1((d = {
17307
17315
  }
17308
17316
  let G = !1;
17309
17317
  if (T.nodeType === Node.ELEMENT_NODE && (P.isVisible = Y(T), P.isVisible)) {
17310
- P.isTopElement = de(T);
17318
+ P.isTopElement = ue(T);
17311
17319
  const K = T.getAttribute("role"), pe = K === "menu" || K === "menubar" || K === "listbox";
17312
- if ((P.isTopElement || pe) && (P.isInteractive = q(T), G = Ee(P, T, z, L), P.ref = T, P.isInteractive && Object.keys(P.attributes).length === 0)) {
17320
+ if ((P.isTopElement || pe) && (P.isInteractive = q(T), G = ke(P, T, z, L), P.ref = T, P.isInteractive && Object.keys(P.attributes).length === 0)) {
17313
17321
  const le = ((ee = T.getAttributeNames) == null ? void 0 : ee.call(T)) || [];
17314
- for (const we of le) {
17315
- const ze = T.getAttribute(we);
17316
- P.attributes[we] = ze;
17322
+ for (const Ee of le) {
17323
+ const Me = T.getAttribute(Ee);
17324
+ P.attributes[Ee] = Me;
17317
17325
  }
17318
17326
  }
17319
17327
  }
@@ -17324,8 +17332,8 @@ const domTree = /* @__PURE__ */ __name$1((d = {
17324
17332
  const pe = T.contentDocument || ((he = T.contentWindow) == null ? void 0 : he.document);
17325
17333
  if (pe)
17326
17334
  for (const le of pe.childNodes) {
17327
- const we = me(le, T, !1);
17328
- we && P.children.push(we);
17335
+ const Ee = me(le, T, !1);
17336
+ Ee && P.children.push(Ee);
17329
17337
  }
17330
17338
  } catch (pe) {
17331
17339
  console.warn("Unable to access iframe:", pe);
@@ -17344,8 +17352,8 @@ const domTree = /* @__PURE__ */ __name$1((d = {
17344
17352
  }
17345
17353
  }
17346
17354
  for (const pe of T.childNodes) {
17347
- const we = me(pe, z, G || L);
17348
- we && P.children.push(we);
17355
+ const Ee = me(pe, z, G || L);
17356
+ Ee && P.children.push(Ee);
17349
17357
  }
17350
17358
  }
17351
17359
  }
@@ -17359,8 +17367,8 @@ const domTree = /* @__PURE__ */ __name$1((d = {
17359
17367
  return A[W] = P, W;
17360
17368
  }
17361
17369
  __name$1(me, "buildDomTree");
17362
- const Se = me(document.body);
17363
- return k.clearCache(), { rootId: Se, map: A };
17370
+ const Ce = me(document.body);
17371
+ return k.clearCache(), { rootId: Ce, map: A };
17364
17372
  }, "domTree"), DEFAULT_VIEWPORT_EXPANSION = -1;
17365
17373
  function resolveViewportExpansion(d) {
17366
17374
  return d ?? DEFAULT_VIEWPORT_EXPANSION;
@@ -17502,15 +17510,15 @@ function flatTreeToString(d, p) {
17502
17510
  const O = getAllTextTillNextClickableElement(S);
17503
17511
  let F = "";
17504
17512
  if (g.length > 0 && S.attributes) {
17505
- const q = matchAttributes(S.attributes, g), de = Object.keys(q);
17506
- if (de.length > 1) {
17513
+ const q = matchAttributes(S.attributes, g), ue = Object.keys(q);
17514
+ if (ue.length > 1) {
17507
17515
  const ce = /* @__PURE__ */ new Set(), se = {};
17508
- for (const ye of de) {
17509
- const ve = q[ye];
17510
- ve.length > 5 && (ve in se ? ce.add(ye) : se[ve] = ye);
17516
+ for (const xe of ue) {
17517
+ const ve = q[xe];
17518
+ ve.length > 5 && (ve in se ? ce.add(xe) : se[ve] = xe);
17511
17519
  }
17512
- for (const ye of ce)
17513
- delete q[ye];
17520
+ for (const xe of ce)
17521
+ delete q[xe];
17514
17522
  }
17515
17523
  q.role === S.tagName && delete q.role;
17516
17524
  const oe = ["aria-label", "placeholder", "title"];
@@ -17641,28 +17649,28 @@ __name$1(patchReact, "patchReact");
17641
17649
  const _PageController = class extends EventTarget {
17642
17650
  constructor(p = {}) {
17643
17651
  super();
17644
- Ce(this, "config");
17652
+ Ie(this, "config");
17645
17653
  /** Corresponds to eval_page in browser-use */
17646
- Ce(this, "flatTree", null);
17654
+ Ie(this, "flatTree", null);
17647
17655
  /**
17648
17656
  * All highlighted index-mapped interactive elements
17649
17657
  * Corresponds to DOMState.selector_map in browser-use
17650
17658
  */
17651
- Ce(this, "selectorMap", /* @__PURE__ */ new Map());
17659
+ Ie(this, "selectorMap", /* @__PURE__ */ new Map());
17652
17660
  /** Index -> element text description mapping */
17653
- Ce(this, "elementTextMap", /* @__PURE__ */ new Map());
17661
+ Ie(this, "elementTextMap", /* @__PURE__ */ new Map());
17654
17662
  /**
17655
17663
  * Simplified HTML for LLM consumption.
17656
17664
  * Corresponds to clickable_elements_to_string in browser-use
17657
17665
  */
17658
- Ce(this, "simplifiedHTML", "<EMPTY>");
17666
+ Ie(this, "simplifiedHTML", "<EMPTY>");
17659
17667
  /** last time the tree was updated */
17660
- Ce(this, "lastTimeUpdate", 0);
17668
+ Ie(this, "lastTimeUpdate", 0);
17661
17669
  /** Whether the tree has been indexed at least once */
17662
- Ce(this, "isIndexed", !1);
17670
+ Ie(this, "isIndexed", !1);
17663
17671
  /** Visual mask overlay for blocking user interaction during automation */
17664
- Ce(this, "mask", null);
17665
- Ce(this, "maskReady", null);
17672
+ Ie(this, "mask", null);
17673
+ Ie(this, "maskReady", null);
17666
17674
  this.config = p, patchReact(), p.enableMask && this.initMask();
17667
17675
  }
17668
17676
  /**
@@ -18277,10 +18285,10 @@ function summarizeInput(d) {
18277
18285
  function truncate(d, p) {
18278
18286
  return d.length <= p ? d : d.slice(0, p - 1) + "…";
18279
18287
  }
18280
- var root_1$1 = /* @__PURE__ */ from_html('<div class="drag-handle svelte-nv4d5v"><svg width="10" height="16" viewBox="0 0 10 16" fill="none" class="svelte-nv4d5v"><circle cx="3" cy="3" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle><circle cx="7" cy="3" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle><circle cx="3" cy="8" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle><circle cx="7" cy="8" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle><circle cx="3" cy="13" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle><circle cx="7" cy="13" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle></svg></div>'), root_2$1 = /* @__PURE__ */ from_html('<span class="tab-badge svelte-nv4d5v"> </span>'), root_3 = /* @__PURE__ */ from_html('<button><svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><rect x="4" y="4" width="16" height="12" rx="2" stroke="currentColor" stroke-width="1.8" class="svelte-nv4d5v"></rect><circle cx="9" cy="10" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle><circle cx="15" cy="10" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle><path d="M8 20h8M12 16v4" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" class="svelte-nv4d5v"></path></svg> Agent</button>'), root_5 = /* @__PURE__ */ from_html('<option class="svelte-nv4d5v"> </option>'), root_6 = /* @__PURE__ */ from_html('<option class="svelte-nv4d5v"> </option>'), root_7 = /* @__PURE__ */ from_html('<span class="capture-spinner svelte-nv4d5v"></span> Capturing...', 1), root_9 = /* @__PURE__ */ from_html('<span class="tool-count svelte-nv4d5v"> </span>'), root_8 = /* @__PURE__ */ from_svg('<svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><rect x="3" y="3" width="18" height="18" rx="2" stroke="currentColor" stroke-width="2" class="svelte-nv4d5v"></rect><circle cx="12" cy="12" r="3" stroke="currentColor" stroke-width="2" class="svelte-nv4d5v"></circle></svg> Screenshot<!>', 1), root_12 = /* @__PURE__ */ from_html('<span class="tool-count svelte-nv4d5v"> </span>'), root_11 = /* @__PURE__ */ from_html("Pick<!>", 1), root_13 = /* @__PURE__ */ from_html('<span class="recording-pulse svelte-nv4d5v"></span> Stop', 1), root_15 = /* @__PURE__ */ from_html('<span class="tool-count svelte-nv4d5v"> </span>'), root_14 = /* @__PURE__ */ from_svg('<svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><circle cx="12" cy="12" r="8" stroke="currentColor" stroke-width="2" class="svelte-nv4d5v"></circle><circle cx="12" cy="12" r="4" fill="currentColor" class="svelte-nv4d5v"></circle></svg> Record<!>', 1), root_16 = /* @__PURE__ */ from_html('<span class="tool-count svelte-nv4d5v"> </span>'), root_19 = /* @__PURE__ */ from_svg('<svg width="12" height="12" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z" stroke="currentColor" stroke-width="2" class="svelte-nv4d5v"></path><path d="M14 2v6h6" stroke="currentColor" stroke-width="2" class="svelte-nv4d5v"></path></svg>'), root_20 = /* @__PURE__ */ from_svg('<svg width="12" height="12" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M4 4h16v16H4z" stroke="currentColor" stroke-width="2" stroke-linejoin="round" class="svelte-nv4d5v"></path><path d="M7 15V9l3 4 3-4v6M17 12h-3v3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="svelte-nv4d5v"></path></svg>'), root_21 = /* @__PURE__ */ from_svg('<svg width="12" height="12" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z" stroke="currentColor" stroke-width="2" class="svelte-nv4d5v"></path><path d="M14 2v6h6" stroke="currentColor" stroke-width="2" class="svelte-nv4d5v"></path></svg>'), root_18 = /* @__PURE__ */ from_html('<div class="attachment-item svelte-nv4d5v"><span class="attachment-icon svelte-nv4d5v"><!></span> <span class="attachment-name svelte-nv4d5v"> </span> <span class="attachment-size svelte-nv4d5v"> </span> <button class="attachment-remove svelte-nv4d5v" aria-label="Remove">&times;</button></div>'), root_17 = /* @__PURE__ */ from_html('<div class="attachments-list svelte-nv4d5v"></div>'), root_23 = /* @__PURE__ */ from_html('<div class="element-item svelte-nv4d5v"><span class="element-tag svelte-nv4d5v"> </span> <span class="element-text svelte-nv4d5v"> </span> <button class="element-remove svelte-nv4d5v" aria-label="Remove">&times;</button></div>'), root_22 = /* @__PURE__ */ from_html('<div class="elements-list svelte-nv4d5v"></div>'), root_24 = /* @__PURE__ */ from_html('<div class="attach-summary svelte-nv4d5v"> </div>'), root_25 = /* @__PURE__ */ from_html('<span class="spinner svelte-nv4d5v"></span> Submitting...', 1), root_4 = /* @__PURE__ */ from_html('<form class="panel-body svelte-nv4d5v"><div class="field svelte-nv4d5v"><label for="jat-fb-title" class="svelte-nv4d5v">Title <span class="req svelte-nv4d5v">*</span></label> <input id="jat-fb-title" type="text" placeholder="Brief description" required="" class="svelte-nv4d5v"/></div> <div class="field svelte-nv4d5v"><label for="jat-fb-desc" class="svelte-nv4d5v">Description</label> <textarea id="jat-fb-desc" placeholder="Steps to reproduce, expected vs actual..." rows="3" class="svelte-nv4d5v"></textarea></div> <div class="field-row svelte-nv4d5v"><div class="field half svelte-nv4d5v"><label for="jat-fb-type" class="svelte-nv4d5v">Type</label> <select id="jat-fb-type" class="svelte-nv4d5v"></select></div> <div class="field half svelte-nv4d5v"><label for="jat-fb-priority" class="svelte-nv4d5v">Priority</label> <select id="jat-fb-priority" class="svelte-nv4d5v"></select></div></div> <div class="tools svelte-nv4d5v"><div class="tool-buttons svelte-nv4d5v"><button type="button" class="tool-btn svelte-nv4d5v"><!></button> <button type="button" class="tool-btn svelte-nv4d5v"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M7 2L7 22M17 2V22M2 7H22M2 17H22" stroke="currentColor" stroke-width="2" stroke-linecap="round" class="svelte-nv4d5v"></path></svg> <!></button> <button type="button"><!></button> <button type="button" class="tool-btn svelte-nv4d5v"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-nv4d5v"></path></svg> Upload<!></button> <input type="file" multiple="" accept="image/*,video/*,.md,.txt,.pdf,.doc,.docx,.csv,.json,.xml,.html,.log" style="display:none" class="svelte-nv4d5v"/></div> <!></div> <!> <!> <!> <!> <div class="actions svelte-nv4d5v"><span class="panel-version svelte-nv4d5v"> </span> <button type="button" class="cancel-btn svelte-nv4d5v">Cancel</button> <button type="submit" class="submit-btn svelte-nv4d5v"><!></button></div></form>'), root_27 = /* @__PURE__ */ from_html('<div class="requests-wrapper svelte-nv4d5v"><!></div>'), root_28 = /* @__PURE__ */ from_html('<div class="agent-wrapper svelte-nv4d5v"><!></div>'), root_29 = /* @__PURE__ */ from_html('<div class="notes-wrapper svelte-nv4d5v"><!></div>'), root_31 = /* @__PURE__ */ from_html('<button class="voice-btn voice-btn-start svelte-nv4d5v"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="28" height="28" class="svelte-nv4d5v"><path d="M12 2a3 3 0 0 1 3 3v7a3 3 0 0 1-6 0V5a3 3 0 0 1 3-3Z" class="svelte-nv4d5v"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2M12 19v3M8 22h8" class="svelte-nv4d5v"></path></svg> Start Recording</button>'), root_32 = /* @__PURE__ */ from_html('<button class="voice-btn voice-btn-stop svelte-nv4d5v"><svg viewBox="0 0 24 24" fill="currentColor" width="24" height="24" class="svelte-nv4d5v"><rect x="4" y="4" width="16" height="16" rx="2" class="svelte-nv4d5v"></rect></svg> Stop Recording</button> <div class="voice-recording-indicator svelte-nv4d5v"><span class="voice-dot svelte-nv4d5v"></span> <span class="voice-dot svelte-nv4d5v"></span> <span class="voice-dot svelte-nv4d5v"></span></div>', 1), root_33 = /* @__PURE__ */ from_html('<div class="voice-processing svelte-nv4d5v"><span class="voice-spinner svelte-nv4d5v"></span> <span class="voice-status-text svelte-nv4d5v"> </span></div>'), root_34 = /* @__PURE__ */ from_html('<div class="voice-done svelte-nv4d5v"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" width="32" height="32" class="svelte-nv4d5v"><path d="M20 6 9 17l-5-5" class="svelte-nv4d5v"></path></svg></div> <p class="voice-status-text voice-done-text svelte-nv4d5v"> </p> <button class="voice-reset svelte-nv4d5v">Record another</button>', 1), root_35 = /* @__PURE__ */ from_html('<div class="voice-error-icon svelte-nv4d5v">!</div> <p class="voice-status-text voice-error-text svelte-nv4d5v"> </p> <button class="voice-reset svelte-nv4d5v">Try again</button>', 1), root_36 = /* @__PURE__ */ from_html('<p class="voice-footer svelte-nv4d5v">Transcription uses <strong class="svelte-nv4d5v">voxtype</strong> + <strong class="svelte-nv4d5v">ollama</strong> locally — no cloud needed.</p>'), root_30 = /* @__PURE__ */ from_html('<div class="voice-wrapper svelte-nv4d5v"><div class="voice-body svelte-nv4d5v"><p class="voice-hint svelte-nv4d5v">Record a voice note — JAT will transcribe it and create tasks automatically.</p> <div class="voice-mic-row svelte-nv4d5v"><!></div> <!></div></div>'), root$1 = /* @__PURE__ */ from_html('<div class="panel svelte-nv4d5v"><div class="panel-header svelte-nv4d5v"><!> <div class="tabs svelte-nv4d5v"><button><svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M12 5V19M5 12H19" stroke="currentColor" stroke-width="2" stroke-linecap="round" class="svelte-nv4d5v"></path></svg> New</button> <button><svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" class="svelte-nv4d5v"></path></svg> History <!></button> <!> <button><svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z" stroke="currentColor" stroke-width="1.8" class="svelte-nv4d5v"></path><path d="M14 2v6h6M16 13H8M16 17H8M10 9H8" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" class="svelte-nv4d5v"></path></svg> Notes</button> <button><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" class="svelte-nv4d5v"><path d="M12 2a3 3 0 0 1 3 3v7a3 3 0 0 1-6 0V5a3 3 0 0 1 3-3Z" class="svelte-nv4d5v"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2M12 19v3M8 22h8" class="svelte-nv4d5v"></path></svg> Voice</button></div> <button class="close-btn svelte-nv4d5v" aria-label="Close">&times;</button></div> <!> <!> <!> <!> <!> <!></div> <!>', 1);
18288
+ var root_1$1 = /* @__PURE__ */ from_html('<div class="drag-handle svelte-nv4d5v"><svg width="10" height="16" viewBox="0 0 10 16" fill="none" class="svelte-nv4d5v"><circle cx="3" cy="3" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle><circle cx="7" cy="3" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle><circle cx="3" cy="8" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle><circle cx="7" cy="8" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle><circle cx="3" cy="13" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle><circle cx="7" cy="13" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle></svg></div>'), root_2$1 = /* @__PURE__ */ from_html('<span class="tab-badge svelte-nv4d5v"> </span>'), root_3 = /* @__PURE__ */ from_html('<button><svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><rect x="4" y="4" width="16" height="12" rx="2" stroke="currentColor" stroke-width="1.8" class="svelte-nv4d5v"></rect><circle cx="9" cy="10" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle><circle cx="15" cy="10" r="1.5" fill="currentColor" class="svelte-nv4d5v"></circle><path d="M8 20h8M12 16v4" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" class="svelte-nv4d5v"></path></svg> Agent</button>'), root_5 = /* @__PURE__ */ from_html('<option class="svelte-nv4d5v"> </option>'), root_6 = /* @__PURE__ */ from_html('<option class="svelte-nv4d5v"> </option>'), root_7 = /* @__PURE__ */ from_html('<span class="capture-spinner svelte-nv4d5v"></span> Capturing...', 1), root_9 = /* @__PURE__ */ from_html('<span class="tool-count svelte-nv4d5v"> </span>'), root_8 = /* @__PURE__ */ from_svg('<svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><rect x="3" y="3" width="18" height="18" rx="2" stroke="currentColor" stroke-width="2" class="svelte-nv4d5v"></rect><circle cx="12" cy="12" r="3" stroke="currentColor" stroke-width="2" class="svelte-nv4d5v"></circle></svg> Screenshot<!>', 1), root_12 = /* @__PURE__ */ from_html('<span class="tool-count svelte-nv4d5v"> </span>'), root_11 = /* @__PURE__ */ from_html("Pick<!>", 1), root_13 = /* @__PURE__ */ from_html('<span class="recording-pulse svelte-nv4d5v"></span> Stop', 1), root_15 = /* @__PURE__ */ from_html('<span class="tool-count svelte-nv4d5v"> </span>'), root_14 = /* @__PURE__ */ from_svg('<svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><circle cx="12" cy="12" r="8" stroke="currentColor" stroke-width="2" class="svelte-nv4d5v"></circle><circle cx="12" cy="12" r="4" fill="currentColor" class="svelte-nv4d5v"></circle></svg> Record<!>', 1), root_16 = /* @__PURE__ */ from_html('<span class="tool-count svelte-nv4d5v"> </span>'), root_19 = /* @__PURE__ */ from_svg('<svg width="12" height="12" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z" stroke="currentColor" stroke-width="2" class="svelte-nv4d5v"></path><path d="M14 2v6h6" stroke="currentColor" stroke-width="2" class="svelte-nv4d5v"></path></svg>'), root_20 = /* @__PURE__ */ from_svg('<svg width="12" height="12" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M4 4h16v16H4z" stroke="currentColor" stroke-width="2" stroke-linejoin="round" class="svelte-nv4d5v"></path><path d="M7 15V9l3 4 3-4v6M17 12h-3v3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="svelte-nv4d5v"></path></svg>'), root_21 = /* @__PURE__ */ from_svg('<svg width="12" height="12" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z" stroke="currentColor" stroke-width="2" class="svelte-nv4d5v"></path><path d="M14 2v6h6" stroke="currentColor" stroke-width="2" class="svelte-nv4d5v"></path></svg>'), root_18 = /* @__PURE__ */ from_html('<div class="attachment-item svelte-nv4d5v"><span class="attachment-icon svelte-nv4d5v"><!></span> <span class="attachment-name svelte-nv4d5v"> </span> <span class="attachment-size svelte-nv4d5v"> </span> <button class="attachment-remove svelte-nv4d5v" aria-label="Remove">&times;</button></div>'), root_17 = /* @__PURE__ */ from_html('<div class="attachments-list svelte-nv4d5v"></div>'), root_23 = /* @__PURE__ */ from_html('<div class="element-item svelte-nv4d5v"><span class="element-tag svelte-nv4d5v"> </span> <span class="element-text svelte-nv4d5v"> </span> <button class="element-remove svelte-nv4d5v" aria-label="Remove">&times;</button></div>'), root_22 = /* @__PURE__ */ from_html('<div class="elements-list svelte-nv4d5v"></div>'), root_24 = /* @__PURE__ */ from_html('<div class="attach-summary svelte-nv4d5v"> </div>'), root_25 = /* @__PURE__ */ from_html('<span class="spinner svelte-nv4d5v"></span> Submitting...', 1), root_4 = /* @__PURE__ */ from_html('<form class="panel-body svelte-nv4d5v"><div class="field svelte-nv4d5v"><label for="jat-fb-title" class="svelte-nv4d5v">Title <span class="req svelte-nv4d5v">*</span></label> <input id="jat-fb-title" type="text" placeholder="Brief description" required="" class="svelte-nv4d5v"/></div> <div class="field svelte-nv4d5v"><label for="jat-fb-desc" class="svelte-nv4d5v">Description</label> <textarea id="jat-fb-desc" placeholder="Steps to reproduce, expected vs actual..." rows="3" class="svelte-nv4d5v"></textarea></div> <div class="field-row svelte-nv4d5v"><div class="field half svelte-nv4d5v"><label for="jat-fb-type" class="svelte-nv4d5v">Type</label> <select id="jat-fb-type" class="svelte-nv4d5v"></select></div> <div class="field half svelte-nv4d5v"><label for="jat-fb-priority" class="svelte-nv4d5v">Priority</label> <select id="jat-fb-priority" class="svelte-nv4d5v"></select></div></div> <div class="tools svelte-nv4d5v"><div class="tool-buttons svelte-nv4d5v"><button type="button" class="tool-btn svelte-nv4d5v"><!></button> <button type="button" class="tool-btn svelte-nv4d5v"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M7 2L7 22M17 2V22M2 7H22M2 17H22" stroke="currentColor" stroke-width="2" stroke-linecap="round" class="svelte-nv4d5v"></path></svg> <!></button> <button type="button"><!></button> <button type="button" class="tool-btn svelte-nv4d5v"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-nv4d5v"></path></svg> Upload<!></button> <input type="file" multiple="" accept="image/*,video/*,.md,.txt,.pdf,.doc,.docx,.csv,.json,.xml,.html,.log" style="display:none" class="svelte-nv4d5v"/></div> <!></div> <!> <!> <!> <!> <div class="actions svelte-nv4d5v"><span class="panel-version svelte-nv4d5v"> </span> <button type="button" class="cancel-btn svelte-nv4d5v">Cancel</button> <button type="submit" class="submit-btn svelte-nv4d5v"><!></button></div></form>'), root_28 = /* @__PURE__ */ from_html('<div class="replay-banner svelte-nv4d5v"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="1.5" class="svelte-nv4d5v"></circle><polygon points="10,8 16,12 10,16" fill="currentColor" class="svelte-nv4d5v"></polygon></svg> <span class="svelte-nv4d5v">Recording captured —</span> <a target="_blank" rel="noreferrer" class="svelte-nv4d5v">View replay</a> <button class="replay-banner-dismiss svelte-nv4d5v" aria-label="Dismiss">×</button></div>'), root_27 = /* @__PURE__ */ from_html('<div class="requests-wrapper svelte-nv4d5v"><!> <!></div>'), root_29 = /* @__PURE__ */ from_html('<div class="agent-wrapper svelte-nv4d5v"><!></div>'), root_30 = /* @__PURE__ */ from_html('<div class="notes-wrapper svelte-nv4d5v"><!></div>'), root_32 = /* @__PURE__ */ from_html('<button class="voice-btn voice-btn-start svelte-nv4d5v"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="28" height="28" class="svelte-nv4d5v"><path d="M12 2a3 3 0 0 1 3 3v7a3 3 0 0 1-6 0V5a3 3 0 0 1 3-3Z" class="svelte-nv4d5v"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2M12 19v3M8 22h8" class="svelte-nv4d5v"></path></svg> Start Recording</button>'), root_33 = /* @__PURE__ */ from_html('<button class="voice-btn voice-btn-stop svelte-nv4d5v"><svg viewBox="0 0 24 24" fill="currentColor" width="24" height="24" class="svelte-nv4d5v"><rect x="4" y="4" width="16" height="16" rx="2" class="svelte-nv4d5v"></rect></svg> Stop Recording</button> <div class="voice-recording-indicator svelte-nv4d5v"><span class="voice-dot svelte-nv4d5v"></span> <span class="voice-dot svelte-nv4d5v"></span> <span class="voice-dot svelte-nv4d5v"></span></div>', 1), root_34 = /* @__PURE__ */ from_html('<div class="voice-processing svelte-nv4d5v"><span class="voice-spinner svelte-nv4d5v"></span> <span class="voice-status-text svelte-nv4d5v"> </span></div>'), root_35 = /* @__PURE__ */ from_html('<div class="voice-done svelte-nv4d5v"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" width="32" height="32" class="svelte-nv4d5v"><path d="M20 6 9 17l-5-5" class="svelte-nv4d5v"></path></svg></div> <p class="voice-status-text voice-done-text svelte-nv4d5v"> </p> <button class="voice-reset svelte-nv4d5v">Record another</button>', 1), root_36 = /* @__PURE__ */ from_html('<div class="voice-error-icon svelte-nv4d5v">!</div> <p class="voice-status-text voice-error-text svelte-nv4d5v"> </p> <button class="voice-reset svelte-nv4d5v">Try again</button>', 1), root_37 = /* @__PURE__ */ from_html('<p class="voice-footer svelte-nv4d5v">Transcription uses <strong class="svelte-nv4d5v">voxtype</strong> + <strong class="svelte-nv4d5v">ollama</strong> locally — no cloud needed.</p>'), root_31 = /* @__PURE__ */ from_html('<div class="voice-wrapper svelte-nv4d5v"><div class="voice-body svelte-nv4d5v"><p class="voice-hint svelte-nv4d5v">Record a voice note — JAT will transcribe it and create tasks automatically.</p> <div class="voice-mic-row svelte-nv4d5v"><!></div> <!></div></div>'), root$1 = /* @__PURE__ */ from_html('<div class="panel svelte-nv4d5v"><div class="panel-header svelte-nv4d5v"><!> <div class="tabs svelte-nv4d5v"><button><svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M12 5V19M5 12H19" stroke="currentColor" stroke-width="2" stroke-linecap="round" class="svelte-nv4d5v"></path></svg> New</button> <button><svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" class="svelte-nv4d5v"></path></svg> History <!></button> <!> <button><svg width="14" height="14" viewBox="0 0 24 24" fill="none" class="svelte-nv4d5v"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z" stroke="currentColor" stroke-width="1.8" class="svelte-nv4d5v"></path><path d="M14 2v6h6M16 13H8M16 17H8M10 9H8" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" class="svelte-nv4d5v"></path></svg> Notes</button> <button><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" class="svelte-nv4d5v"><path d="M12 2a3 3 0 0 1 3 3v7a3 3 0 0 1-6 0V5a3 3 0 0 1 3-3Z" class="svelte-nv4d5v"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2M12 19v3M8 22h8" class="svelte-nv4d5v"></path></svg> Voice</button></div> <button class="close-btn svelte-nv4d5v" aria-label="Close">&times;</button></div> <!> <!> <!> <!> <!> <!></div> <!>', 1);
18281
18289
  const $$css$1 = {
18282
18290
  hash: "svelte-nv4d5v",
18283
- code: `.panel.svelte-nv4d5v {width:380px;max-height:702px;background:#111827;border:1px solid #374151;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,0.4);font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;color:#e5e7eb;display:flex;flex-direction:column;overflow:hidden;position:relative;}.panel-header.svelte-nv4d5v {display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 0;border-bottom:1px solid #1f2937;}.drag-handle.svelte-nv4d5v {display:flex;align-items:center;justify-content:center;width:24px;padding:0 2px 0 8px;color:#6b7280;cursor:grab;flex-shrink:0;user-select:none;transition:color 0.15s;}.drag-handle.svelte-nv4d5v:hover {color:#d1d5db;}.drag-handle.svelte-nv4d5v:active {cursor:grabbing;color:#e5e7eb;}.tabs.svelte-nv4d5v {display:flex;flex:1;}.tab.svelte-nv4d5v {display:flex;align-items:center;gap:5px;padding:11px 14px;background:none;border:none;border-bottom:2px solid transparent;color:#6b7280;font-size:13px;font-weight:500;cursor:pointer;font-family:inherit;transition:color 0.15s, border-color 0.15s;white-space:nowrap;}.tab.svelte-nv4d5v:hover {color:#d1d5db;}.tab.active.svelte-nv4d5v {color:#f9fafb;border-bottom-color:#3b82f6;}.tab-badge.svelte-nv4d5v {display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#f59e0b;color:#111827;font-size:10px;font-weight:700;line-height:1;}.close-btn.svelte-nv4d5v {background:none;border:none;color:#9ca3af;font-size:20px;cursor:pointer;padding:0 4px;line-height:1;flex-shrink:0;}.close-btn.svelte-nv4d5v:hover {color:#e5e7eb;}.panel-body.svelte-nv4d5v {padding:14px 16px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;}.field.svelte-nv4d5v {display:flex;flex-direction:column;gap:4px;}.field-row.svelte-nv4d5v {display:flex;gap:10px;}.half.svelte-nv4d5v {flex:1;}label.svelte-nv4d5v {font-weight:600;font-size:12px;color:#9ca3af;}.req.svelte-nv4d5v {color:#ef4444;}input.svelte-nv4d5v, textarea.svelte-nv4d5v, select.svelte-nv4d5v {padding:7px 10px;border:1px solid #374151;border-radius:5px;font-size:13px;font-family:inherit;color:#e5e7eb;background:#1f2937;transition:border-color 0.15s;}input.svelte-nv4d5v:focus, textarea.svelte-nv4d5v:focus, select.svelte-nv4d5v:focus {outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59, 130, 246, 0.2);}input.svelte-nv4d5v:disabled, textarea.svelte-nv4d5v:disabled, select.svelte-nv4d5v:disabled {opacity:0.5;cursor:not-allowed;}textarea.svelte-nv4d5v {resize:vertical;min-height:48px;}select.svelte-nv4d5v {appearance:auto;}.tools.svelte-nv4d5v {display:flex;flex-direction:column;gap:6px;}.tool-buttons.svelte-nv4d5v {display:flex;gap:6px;}.tool-buttons.svelte-nv4d5v .tool-btn:where(.svelte-nv4d5v) {flex:1;}.tool-btn.svelte-nv4d5v {display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#1f2937;border:1px solid #374151;border-radius:5px;color:#d1d5db;font-size:12px;cursor:pointer;font-family:inherit;transition:background 0.15s;}.tool-btn.svelte-nv4d5v:hover:not(:disabled) {background:#374151;}.tool-btn.svelte-nv4d5v:disabled {opacity:0.5;cursor:not-allowed;}.capture-spinner.svelte-nv4d5v {display:inline-block;width:12px;height:12px;border:2px solid rgba(255,255,255,0.2);border-top-color:white;border-radius:50%;
18291
+ code: `.panel.svelte-nv4d5v {width:460px;max-height:702px;background:#111827;border:1px solid #374151;border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,0.4);font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;color:#e5e7eb;display:flex;flex-direction:column;overflow:hidden;position:relative;}.panel-header.svelte-nv4d5v {display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 0;border-bottom:1px solid #1f2937;}.drag-handle.svelte-nv4d5v {display:flex;align-items:center;justify-content:center;width:24px;padding:0 2px 0 8px;color:#6b7280;cursor:grab;flex-shrink:0;user-select:none;transition:color 0.15s;}.drag-handle.svelte-nv4d5v:hover {color:#d1d5db;}.drag-handle.svelte-nv4d5v:active {cursor:grabbing;color:#e5e7eb;}.tabs.svelte-nv4d5v {display:flex;flex:1;}.tab.svelte-nv4d5v {display:flex;align-items:center;gap:5px;padding:11px 14px;background:none;border:none;border-bottom:2px solid transparent;color:#6b7280;font-size:13px;font-weight:500;cursor:pointer;font-family:inherit;transition:color 0.15s, border-color 0.15s;white-space:nowrap;}.tab.svelte-nv4d5v:hover {color:#d1d5db;}.tab.active.svelte-nv4d5v {color:#f9fafb;border-bottom-color:#3b82f6;}.tab-badge.svelte-nv4d5v {display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#f59e0b;color:#111827;font-size:10px;font-weight:700;line-height:1;}.close-btn.svelte-nv4d5v {background:none;border:none;color:#9ca3af;font-size:20px;cursor:pointer;padding:0 4px;line-height:1;flex-shrink:0;}.close-btn.svelte-nv4d5v:hover {color:#e5e7eb;}.panel-body.svelte-nv4d5v {padding:14px 16px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;}.field.svelte-nv4d5v {display:flex;flex-direction:column;gap:4px;}.field-row.svelte-nv4d5v {display:flex;gap:10px;}.half.svelte-nv4d5v {flex:1;}label.svelte-nv4d5v {font-weight:600;font-size:12px;color:#9ca3af;}.req.svelte-nv4d5v {color:#ef4444;}input.svelte-nv4d5v, textarea.svelte-nv4d5v, select.svelte-nv4d5v {padding:7px 10px;border:1px solid #374151;border-radius:5px;font-size:13px;font-family:inherit;color:#e5e7eb;background:#1f2937;transition:border-color 0.15s;}input.svelte-nv4d5v:focus, textarea.svelte-nv4d5v:focus, select.svelte-nv4d5v:focus {outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59, 130, 246, 0.2);}input.svelte-nv4d5v:disabled, textarea.svelte-nv4d5v:disabled, select.svelte-nv4d5v:disabled {opacity:0.5;cursor:not-allowed;}textarea.svelte-nv4d5v {resize:vertical;min-height:48px;}select.svelte-nv4d5v {appearance:auto;}.tools.svelte-nv4d5v {display:flex;flex-direction:column;gap:6px;}.tool-buttons.svelte-nv4d5v {display:flex;gap:6px;flex-wrap:wrap;}.tool-buttons.svelte-nv4d5v .tool-btn:where(.svelte-nv4d5v) {flex:1 1 auto;min-width:0;}.tool-btn.svelte-nv4d5v {display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#1f2937;border:1px solid #374151;border-radius:5px;color:#d1d5db;font-size:12px;cursor:pointer;font-family:inherit;transition:background 0.15s;}.tool-btn.svelte-nv4d5v:hover:not(:disabled) {background:#374151;}.tool-btn.svelte-nv4d5v:disabled {opacity:0.5;cursor:not-allowed;}.capture-spinner.svelte-nv4d5v {display:inline-block;width:12px;height:12px;border:2px solid rgba(255,255,255,0.2);border-top-color:white;border-radius:50%;
18284
18292
  animation: svelte-nv4d5v-capture-spin 0.6s linear infinite;}
18285
18293
  @keyframes svelte-nv4d5v-capture-spin {
18286
18294
  to { transform: rotate(360deg); }
@@ -18289,7 +18297,7 @@ const $$css$1 = {
18289
18297
  @keyframes svelte-nv4d5v-recording-pulse {
18290
18298
  0%, 100% { opacity: 1; transform: scale(1); }
18291
18299
  50% { opacity: 0.5; transform: scale(0.8); }
18292
- }.tool-count.svelte-nv4d5v {display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#3b82f6;color:white;font-size:10px;font-weight:700;margin-left:2px;}.elements-list.svelte-nv4d5v {display:flex;flex-direction:column;gap:4px;}.element-item.svelte-nv4d5v {display:flex;align-items:center;gap:6px;padding:5px 8px;background:#1e3a5f;border:1px solid #2563eb40;border-radius:5px;font-size:11px;color:#93c5fd;}.element-tag.svelte-nv4d5v {font-family:monospace;font-weight:600;color:#60a5fa;flex-shrink:0;}.element-text.svelte-nv4d5v {flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9ca3af;}.element-remove.svelte-nv4d5v {background:none;border:none;color:#6b7280;cursor:pointer;font-size:14px;padding:0 2px;line-height:1;flex-shrink:0;}.element-remove.svelte-nv4d5v:hover {color:#ef4444;}.attachments-list.svelte-nv4d5v {display:flex;flex-direction:column;gap:4px;}.attachment-item.svelte-nv4d5v {display:flex;align-items:center;gap:6px;padding:5px 8px;background:#1e2d3f;border:1px solid #374151;border-radius:5px;font-size:11px;color:#d1d5db;}.attachment-icon.svelte-nv4d5v {display:flex;align-items:center;color:#9ca3af;flex-shrink:0;}.attachment-name.svelte-nv4d5v {flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.attachment-size.svelte-nv4d5v {color:#6b7280;font-size:10px;flex-shrink:0;}.attachment-remove.svelte-nv4d5v {background:none;border:none;color:#6b7280;cursor:pointer;font-size:14px;padding:0 2px;line-height:1;flex-shrink:0;}.attachment-remove.svelte-nv4d5v:hover {color:#ef4444;}.attach-summary.svelte-nv4d5v {font-size:11px;color:#6b7280;text-align:center;}.actions.svelte-nv4d5v {display:flex;gap:8px;justify-content:flex-end;padding-top:4px;}.cancel-btn.svelte-nv4d5v {padding:7px 14px;background:#1f2937;border:1px solid #374151;border-radius:5px;color:#d1d5db;font-size:13px;cursor:pointer;font-family:inherit;}.cancel-btn.svelte-nv4d5v:hover:not(:disabled) {background:#374151;}.cancel-btn.svelte-nv4d5v:disabled {opacity:0.5;cursor:not-allowed;}.submit-btn.svelte-nv4d5v {padding:7px 16px;background:#3b82f6;border:none;border-radius:5px;color:white;font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:6px;font-family:inherit;transition:background 0.15s;}.submit-btn.svelte-nv4d5v:hover:not(:disabled) {background:#2563eb;}.submit-btn.svelte-nv4d5v:disabled {opacity:0.5;cursor:not-allowed;}.spinner.svelte-nv4d5v {display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,0.2);border-top-color:white;border-radius:50%;
18300
+ }.tool-count.svelte-nv4d5v {display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#3b82f6;color:white;font-size:10px;font-weight:700;margin-left:2px;}.elements-list.svelte-nv4d5v {display:flex;flex-direction:column;gap:4px;}.element-item.svelte-nv4d5v {display:flex;align-items:center;gap:6px;padding:5px 8px;background:#1e3a5f;border:1px solid #2563eb40;border-radius:5px;font-size:11px;color:#93c5fd;}.element-tag.svelte-nv4d5v {font-family:monospace;font-weight:600;color:#60a5fa;flex-shrink:0;}.element-text.svelte-nv4d5v {flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9ca3af;}.element-remove.svelte-nv4d5v {background:none;border:none;color:#6b7280;cursor:pointer;font-size:14px;padding:0 2px;line-height:1;flex-shrink:0;}.element-remove.svelte-nv4d5v:hover {color:#ef4444;}.attachments-list.svelte-nv4d5v {display:flex;flex-direction:column;gap:4px;}.attachment-item.svelte-nv4d5v {display:flex;align-items:center;gap:6px;padding:5px 8px;background:#1e2d3f;border:1px solid #374151;border-radius:5px;font-size:11px;color:#d1d5db;}.attachment-icon.svelte-nv4d5v {display:flex;align-items:center;color:#9ca3af;flex-shrink:0;}.attachment-name.svelte-nv4d5v {flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.attachment-size.svelte-nv4d5v {color:#6b7280;font-size:10px;flex-shrink:0;}.attachment-remove.svelte-nv4d5v {background:none;border:none;color:#6b7280;cursor:pointer;font-size:14px;padding:0 2px;line-height:1;flex-shrink:0;}.attachment-remove.svelte-nv4d5v:hover {color:#ef4444;}.attach-summary.svelte-nv4d5v {font-size:11px;color:#6b7280;text-align:center;}.actions.svelte-nv4d5v {display:flex;gap:8px;justify-content:flex-end;padding-top:4px;}.replay-banner.svelte-nv4d5v {display:flex;align-items:center;gap:6px;padding:8px 12px;background:#0f1e33;border-top:1px solid #1e3a5f;font-size:12px;color:#93c5fd;}.replay-banner.svelte-nv4d5v a:where(.svelte-nv4d5v) {color:#60a5fa;text-decoration:underline;font-weight:500;}.replay-banner.svelte-nv4d5v a:where(.svelte-nv4d5v):hover {color:#93c5fd;}.replay-banner-dismiss.svelte-nv4d5v {margin-left:auto;background:none;border:none;color:#4b6a8a;font-size:16px;line-height:1;cursor:pointer;padding:0 2px;}.replay-banner-dismiss.svelte-nv4d5v:hover {color:#93c5fd;}.cancel-btn.svelte-nv4d5v {padding:7px 14px;background:#1f2937;border:1px solid #374151;border-radius:5px;color:#d1d5db;font-size:13px;cursor:pointer;font-family:inherit;}.cancel-btn.svelte-nv4d5v:hover:not(:disabled) {background:#374151;}.cancel-btn.svelte-nv4d5v:disabled {opacity:0.5;cursor:not-allowed;}.submit-btn.svelte-nv4d5v {padding:7px 16px;background:#3b82f6;border:none;border-radius:5px;color:white;font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:6px;font-family:inherit;transition:background 0.15s;}.submit-btn.svelte-nv4d5v:hover:not(:disabled) {background:#2563eb;}.submit-btn.svelte-nv4d5v:disabled {opacity:0.5;cursor:not-allowed;}.spinner.svelte-nv4d5v {display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,0.2);border-top-color:white;border-radius:50%;
18293
18301
  animation: svelte-nv4d5v-spin 0.6s linear infinite;}
18294
18302
  @keyframes svelte-nv4d5v-spin {
18295
18303
  to { transform: rotate(360deg); }
@@ -18307,25 +18315,25 @@ const $$css$1 = {
18307
18315
  };
18308
18316
  function FeedbackPanel(d, p) {
18309
18317
  push(p, !0), append_styles(d, $$css$1);
18310
- const h = "3.2.1";
18318
+ const h = "3.3.0";
18311
18319
  let g = prop(p, "endpoint", 7), m = prop(p, "project", 7), _ = prop(p, "isOpen", 7, !1), b = prop(p, "userId", 7, ""), y = prop(p, "userEmail", 7, ""), w = prop(p, "userName", 7, ""), x = prop(p, "userRole", 7, ""), E = prop(p, "orgId", 7, ""), S = prop(p, "orgName", 7, ""), k = prop(p, "onclose", 7), I = prop(p, "ongrip", 7), R = prop(p, "agentProxy", 7, ""), M = prop(p, "agentModel", 7, ""), A = prop(p, "agentContext", 7, ""), C = prop(p, "registeredTools", 23, () => []), N = /* @__PURE__ */ state("new"), $ = /* @__PURE__ */ state(!1), O = /* @__PURE__ */ state(!1), F = /* @__PURE__ */ state(!1), j = /* @__PURE__ */ state(proxy([]));
18312
18320
  function Y() {
18313
18321
  if (get(F)) {
18314
18322
  const Z = stopRecording();
18315
- set(j, Z, !0), set(F, !1), Fe(`Session recorded (${Z.length} events)`, "success");
18323
+ set(j, Z, !0), set(F, !1), it(`Session recorded (${Z.length} events)`, "success");
18316
18324
  } else
18317
- startRecording(), set(j, [], !0), set(F, !0), Fe("Recording session...", "info");
18325
+ startRecording(), set(j, [], !0), set(F, !0), it("Recording session...", "info");
18318
18326
  }
18319
- let q = /* @__PURE__ */ state(!1), de = /* @__PURE__ */ state(!1), oe = /* @__PURE__ */ state("idle"), ce = /* @__PURE__ */ state(""), se = /* @__PURE__ */ state(null), ye = [];
18327
+ let q = /* @__PURE__ */ state(!1), ue = /* @__PURE__ */ state(!1), oe = /* @__PURE__ */ state("idle"), ce = /* @__PURE__ */ state(""), se = /* @__PURE__ */ state(null), xe = [];
18320
18328
  async function ve() {
18321
18329
  var Z;
18322
18330
  try {
18323
- const re = await navigator.mediaDevices.getUserMedia({ audio: !0 }), Te = MediaRecorder.isTypeSupported("audio/webm;codecs=opus") ? "audio/webm;codecs=opus" : MediaRecorder.isTypeSupported("audio/webm") ? "audio/webm" : "audio/ogg", ke = new MediaRecorder(re, { mimeType: Te });
18324
- ye = [], ke.ondataavailable = (Ne) => {
18325
- Ne.data.size > 0 && ye.push(Ne.data);
18326
- }, ke.onstop = () => {
18327
- re.getTracks().forEach((Ne) => Ne.stop()), Ee(new Blob(ye, { type: Te }), Te);
18328
- }, ke.start(500), set(se, ke, !0), set(q, !0), set(oe, "recording"), set(ce, "Recording…");
18331
+ const re = await navigator.mediaDevices.getUserMedia({ audio: !0 }), _e = MediaRecorder.isTypeSupported("audio/webm;codecs=opus") ? "audio/webm;codecs=opus" : MediaRecorder.isTypeSupported("audio/webm") ? "audio/webm" : "audio/ogg", ye = new MediaRecorder(re, { mimeType: _e });
18332
+ xe = [], ye.ondataavailable = (Fe) => {
18333
+ Fe.data.size > 0 && xe.push(Fe.data);
18334
+ }, ye.onstop = () => {
18335
+ re.getTracks().forEach((Fe) => Fe.stop()), ke(new Blob(xe, { type: _e }), _e);
18336
+ }, ye.start(500), set(se, ye, !0), set(q, !0), set(oe, "recording"), set(ce, "Recording…");
18329
18337
  } catch (re) {
18330
18338
  set(oe, "error"), set(
18331
18339
  ce,
@@ -18337,28 +18345,28 @@ function FeedbackPanel(d, p) {
18337
18345
  function Re() {
18338
18346
  get(se) && get(se).state !== "inactive" && get(se).stop(), set(q, !1), set(oe, "processing"), set(ce, "Sending to JAT…");
18339
18347
  }
18340
- async function Ee(Z, re) {
18341
- set(de, !0);
18348
+ async function ke(Z, re) {
18349
+ set(ue, !0);
18342
18350
  try {
18343
- const Te = re.includes("webm") ? "webm" : re.includes("ogg") ? "ogg" : "audio", ke = new FormData();
18344
- ke.append("file", Z, `voice-note.${Te}`);
18345
- const Ne = `${g()}/api/tasks/voice`, Ve = await fetch(Ne, { method: "POST", body: ke });
18346
- if (Ve.ok)
18351
+ const _e = re.includes("webm") ? "webm" : re.includes("ogg") ? "ogg" : "audio", ye = new FormData();
18352
+ ye.append("file", Z, `voice-note.${_e}`);
18353
+ const Fe = `${g()}/api/tasks/voice`, Ue = await fetch(Fe, { method: "POST", body: ye });
18354
+ if (Ue.ok)
18347
18355
  set(oe, "done"), set(ce, "Done! Tasks will appear in your Voice Inbox shortly.");
18348
18356
  else {
18349
- const ft = await Ve.json().catch(() => ({}));
18350
- set(oe, "error"), set(ce, ft.message || `Error ${Ve.status}`, !0);
18357
+ const lt = await Ue.json().catch(() => ({}));
18358
+ set(oe, "error"), set(ce, lt.message || `Error ${Ue.status}`, !0);
18351
18359
  }
18352
- } catch (Te) {
18353
- set(oe, "error"), set(ce, Te.message || "Failed to send recording", !0);
18360
+ } catch (_e) {
18361
+ set(oe, "error"), set(ce, _e.message || "Failed to send recording", !0);
18354
18362
  } finally {
18355
- set(de, !1), ye = [];
18363
+ set(ue, !1), xe = [];
18356
18364
  }
18357
18365
  }
18358
18366
  function me() {
18359
- get(se) && get(se).state !== "inactive" && get(se).stop(), set(q, !1), set(de, !1), set(oe, "idle"), set(ce, ""), ye = [], set(se, null);
18367
+ get(se) && get(se).state !== "inactive" && get(se).stop(), set(q, !1), set(ue, !1), set(oe, "idle"), set(ce, ""), xe = [], set(se, null);
18360
18368
  }
18361
- let Se = /* @__PURE__ */ state(proxy([])), T = /* @__PURE__ */ state("idle"), z = /* @__PURE__ */ state(0), L = /* @__PURE__ */ state(!1), P = /* @__PURE__ */ state(null);
18369
+ let Ce = /* @__PURE__ */ state(proxy([])), T = /* @__PURE__ */ state("idle"), z = /* @__PURE__ */ state(0), L = /* @__PURE__ */ state(!1), P = /* @__PURE__ */ state(null);
18362
18370
  function G() {
18363
18371
  return get(P) || set(
18364
18372
  P,
@@ -18371,7 +18379,7 @@ function FeedbackPanel(d, p) {
18371
18379
  project: m(),
18372
18380
  registeredTools: C(),
18373
18381
  onMessagesChange: (Z) => {
18374
- set(Se, Z, !0);
18382
+ set(Ce, Z, !0);
18375
18383
  },
18376
18384
  onStateChange: (Z, re) => {
18377
18385
  set(T, Z, !0), set(z, re, !0);
@@ -18420,7 +18428,7 @@ function FeedbackPanel(d, p) {
18420
18428
  user_effect(() => {
18421
18429
  g() && le();
18422
18430
  });
18423
- let we = /* @__PURE__ */ state(""), ze = /* @__PURE__ */ state(""), xe = /* @__PURE__ */ state("bug"), Ge = /* @__PURE__ */ state("medium"), ae = /* @__PURE__ */ state(proxy([])), V = /* @__PURE__ */ state(proxy([])), D = /* @__PURE__ */ state(proxy([])), H = /* @__PURE__ */ state(proxy([])), X = /* @__PURE__ */ state(proxy([])), fe = /* @__PURE__ */ state(void 0);
18431
+ let Ee = /* @__PURE__ */ state(""), Me = /* @__PURE__ */ state(""), Se = /* @__PURE__ */ state("bug"), We = /* @__PURE__ */ state("medium"), ae = /* @__PURE__ */ state(proxy([])), V = /* @__PURE__ */ state(proxy([])), D = /* @__PURE__ */ state(proxy([])), H = /* @__PURE__ */ state(proxy([])), X = /* @__PURE__ */ state(proxy([])), fe = /* @__PURE__ */ state(void 0);
18424
18432
  const Q = [
18425
18433
  "image/png",
18426
18434
  "image/jpeg",
@@ -18428,53 +18436,53 @@ function FeedbackPanel(d, p) {
18428
18436
  "image/webp",
18429
18437
  "image/svg+xml"
18430
18438
  ];
18431
- function ue() {
18439
+ function de() {
18432
18440
  var Z;
18433
18441
  (Z = get(fe)) == null || Z.click();
18434
18442
  }
18435
- async function be(Z) {
18436
- const re = Z.target, Te = re.files;
18437
- if (!(!Te || Te.length === 0)) {
18438
- for (const ke of Te)
18443
+ async function we(Z) {
18444
+ const re = Z.target, _e = re.files;
18445
+ if (!(!_e || _e.length === 0)) {
18446
+ for (const ye of _e)
18439
18447
  try {
18440
- const Ne = await Ue(ke);
18441
- Q.includes(ke.type) ? (set(ae, [...get(ae), Ne], !0), Fe(`Image added: ${ke.name}`, "success")) : (set(
18448
+ const Fe = await Ze(ye);
18449
+ Q.includes(ye.type) ? (set(ae, [...get(ae), Fe], !0), it(`Image added: ${ye.name}`, "success")) : (set(
18442
18450
  V,
18443
18451
  [
18444
18452
  ...get(V),
18445
18453
  {
18446
- name: ke.name,
18447
- type: ke.type || "application/octet-stream",
18448
- data: Ne,
18449
- size: ke.size
18454
+ name: ye.name,
18455
+ type: ye.type || "application/octet-stream",
18456
+ data: Fe,
18457
+ size: ye.size
18450
18458
  }
18451
18459
  ],
18452
18460
  !0
18453
- ), Fe(`File attached: ${ke.name}`, "success"));
18461
+ ), it(`File attached: ${ye.name}`, "success"));
18454
18462
  } catch {
18455
- Fe(`Failed to read: ${ke.name}`, "error");
18463
+ it(`Failed to read: ${ye.name}`, "error");
18456
18464
  }
18457
18465
  re.value = "";
18458
18466
  }
18459
18467
  }
18460
- function Ue(Z) {
18461
- return new Promise((re, Te) => {
18462
- const ke = new FileReader();
18463
- ke.onload = () => re(ke.result), ke.onerror = () => Te(ke.error), ke.readAsDataURL(Z);
18468
+ function Ze(Z) {
18469
+ return new Promise((re, _e) => {
18470
+ const ye = new FileReader();
18471
+ ye.onload = () => re(ye.result), ye.onerror = () => _e(ye.error), ye.readAsDataURL(Z);
18464
18472
  });
18465
18473
  }
18466
- function Ie(Z) {
18467
- set(V, get(V).filter((re, Te) => Te !== Z), !0);
18474
+ function Te(Z) {
18475
+ set(V, get(V).filter((re, _e) => _e !== Z), !0);
18468
18476
  }
18469
- function Ze(Z) {
18477
+ function Le(Z) {
18470
18478
  return Z < 1024 ? `${Z}B` : Z < 1024 * 1024 ? `${(Z / 1024).toFixed(1)}KB` : `${(Z / (1024 * 1024)).toFixed(1)}MB`;
18471
18479
  }
18472
- let Le = /* @__PURE__ */ state(!1), te = /* @__PURE__ */ state(!1), Ye = /* @__PURE__ */ state(!1), nt = /* @__PURE__ */ state(null), We = /* @__PURE__ */ state(""), rt = /* @__PURE__ */ state(void 0), Ct = !1;
18480
+ let Oe = /* @__PURE__ */ state(!1), te = /* @__PURE__ */ state(!1), Xe = /* @__PURE__ */ state(!1), _t = /* @__PURE__ */ state(null), Ge = /* @__PURE__ */ state(!1), Ve = /* @__PURE__ */ state(null), vt = /* @__PURE__ */ state(""), Nt = /* @__PURE__ */ state(void 0), mn = !1;
18473
18481
  user_effect(() => {
18474
- _() && !Ct && (requestAnimationFrame(() => {
18482
+ _() && !mn && (requestAnimationFrame(() => {
18475
18483
  requestAnimationFrame(() => {
18476
18484
  var Z;
18477
- (Z = get(rt)) == null || Z.focus();
18485
+ (Z = get(Nt)) == null || Z.focus();
18478
18486
  });
18479
18487
  }), get(N) === "new" && setTimeout(
18480
18488
  () => {
@@ -18484,66 +18492,66 @@ function FeedbackPanel(d, p) {
18484
18492
  });
18485
18493
  },
18486
18494
  300
18487
- )), Ct = _();
18495
+ )), mn = _();
18488
18496
  });
18489
- let Mt = /* @__PURE__ */ state(""), _n = /* @__PURE__ */ state("success"), je = /* @__PURE__ */ state(!1);
18490
- function Fe(Z, re) {
18491
- set(Mt, Z, !0), set(_n, re, !0), set(je, !0), setTimeout(
18497
+ let Be = /* @__PURE__ */ state(""), He = /* @__PURE__ */ state("success"), bt = /* @__PURE__ */ state(!1);
18498
+ function it(Z, re) {
18499
+ set(Be, Z, !0), set(He, re, !0), set(bt, !0), setTimeout(
18492
18500
  () => {
18493
- set(je, !1);
18501
+ set(bt, !1);
18494
18502
  },
18495
18503
  3e3
18496
18504
  );
18497
18505
  }
18498
- async function vt() {
18506
+ async function Dt() {
18499
18507
  set(te, !0);
18500
18508
  try {
18501
18509
  const Z = await captureViewport();
18502
- set(We, Z, !0), set(nt, get(
18510
+ set(vt, Z, !0), set(Ve, get(
18503
18511
  ae
18504
18512
  // new index (not yet in array)
18505
18513
  ).length, !0);
18506
18514
  } catch (Z) {
18507
- console.error("[jat-feedback] Screenshot failed:", Z), Fe("Screenshot failed: " + (Z instanceof Error ? Z.message : "unknown error"), "error");
18515
+ console.error("[jat-feedback] Screenshot failed:", Z), it("Screenshot failed: " + (Z instanceof Error ? Z.message : "unknown error"), "error");
18508
18516
  } finally {
18509
18517
  set(te, !1);
18510
18518
  }
18511
18519
  }
18512
- function Qt(Z) {
18513
- set(ae, get(ae).filter((re, Te) => Te !== Z), !0);
18520
+ function rr(Z) {
18521
+ set(ae, get(ae).filter((re, _e) => _e !== Z), !0);
18514
18522
  }
18515
- function jt(Z) {
18516
- set(We, get(ae)[Z], !0), set(nt, Z, !0);
18523
+ function nn(Z) {
18524
+ set(vt, get(ae)[Z], !0), set(Ve, Z, !0);
18517
18525
  }
18518
- function rr(Z) {
18519
- get(nt) !== null && (get(nt) >= get(ae).length ? (set(ae, [...get(ae), Z], !0), Fe(`Screenshot captured (${get(ae).length})`, "success")) : (set(ae, get(ae).map((re, Te) => Te === get(nt) ? Z : re), !0), Fe("Screenshot updated", "success"))), set(nt, null), set(We, "");
18526
+ function Xt(Z) {
18527
+ get(Ve) !== null && (get(Ve) >= get(ae).length ? (set(ae, [...get(ae), Z], !0), it(`Screenshot captured (${get(ae).length})`, "success")) : (set(ae, get(ae).map((re, _e) => _e === get(Ve) ? Z : re), !0), it("Screenshot updated", "success"))), set(Ve, null), set(vt, "");
18520
18528
  }
18521
- function sn() {
18522
- get(nt) !== null && get(nt) >= get(ae).length && (set(ae, [...get(ae), get(We)], !0), Fe(`Screenshot captured (${get(ae).length})`, "success")), set(nt, null), set(We, "");
18529
+ function vn() {
18530
+ get(Ve) !== null && get(Ve) >= get(ae).length && (set(ae, [...get(ae), get(vt)], !0), it(`Screenshot captured (${get(ae).length})`, "success")), set(Ve, null), set(vt, "");
18523
18531
  }
18524
- function en() {
18525
- set(Ye, !0), startElementPicker((Z) => {
18526
- set(D, [...get(D), Z], !0), set(Ye, !1), Fe(`Element captured: <${Z.tagName.toLowerCase()}>`, "success");
18532
+ function An() {
18533
+ set(Xe, !0), startElementPicker((Z) => {
18534
+ set(D, [...get(D), Z], !0), set(Xe, !1), it(`Element captured: <${Z.tagName.toLowerCase()}>`, "success");
18527
18535
  });
18528
18536
  }
18529
- function an() {
18537
+ function rn() {
18530
18538
  set(H, getCapturedLogs(), !0), set(X, getCapturedRequests(), !0);
18531
18539
  }
18532
- async function $n(Z) {
18533
- if (Z.preventDefault(), !get(we).trim()) return;
18534
- set(Le, !0), an();
18540
+ async function or(Z) {
18541
+ if (Z.preventDefault(), !get(Ee).trim()) return;
18542
+ set(Oe, !0), rn();
18535
18543
  const re = {};
18536
18544
  (b() || y() || w() || x()) && (re.reporter = {}, b() && (re.reporter.userId = b()), y() && (re.reporter.email = y()), w() && (re.reporter.name = w()), x() && (re.reporter.role = x())), (E() || S()) && (re.organization = {}, E() && (re.organization.id = E()), S() && (re.organization.name = S()));
18537
- let Te;
18545
+ let _e;
18538
18546
  if (get(j).length > 0) {
18539
- const Ne = crypto.randomUUID(), Ve = await uploadRecording(g(), get(j), Ne);
18540
- Ve.ok && Ve.recording_url && (Te = Ve.recording_url);
18541
- }
18542
- const ke = {
18543
- title: get(we).trim(),
18544
- description: get(ze).trim(),
18545
- type: get(xe),
18546
- priority: get(Ge),
18547
+ const Fe = crypto.randomUUID(), Ue = await uploadRecording(g(), get(j), Fe);
18548
+ Ue.ok && Ue.recording_url && (_e = Ue.recording_url);
18549
+ }
18550
+ const ye = {
18551
+ title: get(Ee).trim(),
18552
+ description: get(Me).trim(),
18553
+ type: get(Se),
18554
+ priority: get(We),
18547
18555
  project: m() || "",
18548
18556
  page_url: window.location.href,
18549
18557
  user_agent: navigator.userAgent,
@@ -18554,53 +18562,53 @@ function FeedbackPanel(d, p) {
18554
18562
  screenshots: get(ae).length > 0 ? get(ae) : null,
18555
18563
  attachments: get(V).length > 0 ? get(V) : null,
18556
18564
  metadata: Object.keys(re).length > 0 ? re : null,
18557
- recording_url: Te || null
18565
+ recording_url: _e || null
18558
18566
  };
18559
18567
  try {
18560
- const Ne = await submitReport(g(), ke);
18561
- if (Ne.ok) {
18562
- if (ke.recording_url) {
18563
- const Ve = {
18564
- recording_url: ke.recording_url,
18565
- console_logs: ke.console_logs,
18566
- network_requests: ke.network_requests
18568
+ const Fe = await submitReport(g(), ye);
18569
+ if (Fe.ok) {
18570
+ if (ye.recording_url) {
18571
+ const Ue = {
18572
+ recording_url: ye.recording_url,
18573
+ console_logs: ye.console_logs,
18574
+ network_requests: ye.network_requests
18567
18575
  };
18568
- G().setReportContext(Ve);
18576
+ G().setReportContext(Ue);
18569
18577
  }
18570
- Fe(`Report submitted (${Ne.id})`, "success"), bn(), setTimeout(
18578
+ set(_t, Fe.id, !0), set(Ge, !!ye.recording_url), it(`Report submitted (${Fe.id})`, "success"), Vn(), setTimeout(
18571
18579
  () => {
18572
18580
  le(), set(N, "requests");
18573
18581
  },
18574
18582
  1200
18575
18583
  );
18576
18584
  } else
18577
- enqueue(g(), ke), Fe("Queued for retry (endpoint unreachable)", "error");
18585
+ enqueue(g(), ye), it("Queued for retry (endpoint unreachable)", "error");
18578
18586
  } catch {
18579
- enqueue(g(), ke), Fe("Queued for retry (endpoint unreachable)", "error");
18587
+ enqueue(g(), ye), it("Queued for retry (endpoint unreachable)", "error");
18580
18588
  } finally {
18581
- set(Le, !1);
18589
+ set(Oe, !1);
18582
18590
  }
18583
18591
  }
18584
- function bn() {
18585
- set(we, ""), set(ze, ""), set(xe, "bug"), set(Ge, "medium"), set(ae, [], !0), set(V, [], !0), set(D, [], !0), set(H, [], !0), set(X, [], !0), set(j, [], !0), get(F) && (stopRecording(), set(F, !1));
18592
+ function Vn() {
18593
+ set(Ee, ""), set(Me, ""), set(Se, "bug"), set(We, "medium"), set(ae, [], !0), set(V, [], !0), set(D, [], !0), set(H, [], !0), set(X, [], !0), set(j, [], !0), get(F) && (stopRecording(), set(F, !1));
18586
18594
  }
18587
18595
  user_effect(() => {
18588
- an();
18596
+ rn();
18589
18597
  });
18590
- function Mn(Z) {
18598
+ function Nn(Z) {
18591
18599
  Z.stopPropagation();
18592
18600
  }
18593
- const Gn = [
18601
+ const sr = [
18594
18602
  { value: "bug", label: "Bug" },
18595
18603
  { value: "enhancement", label: "Enhancement" },
18596
18604
  { value: "other", label: "Other" }
18597
- ], or = [
18605
+ ], Gn = [
18598
18606
  { value: "low", label: "Low" },
18599
18607
  { value: "medium", label: "Medium" },
18600
18608
  { value: "high", label: "High" },
18601
18609
  { value: "critical", label: "Critical" }
18602
18610
  ];
18603
- function zn() {
18611
+ function $n() {
18604
18612
  return get(ae).length + get(V).length + get(D).length;
18605
18613
  }
18606
18614
  var Hn = {
@@ -18694,242 +18702,242 @@ function FeedbackPanel(d, p) {
18694
18702
  set registeredTools(Z = []) {
18695
18703
  C(Z), flushSync();
18696
18704
  }
18697
- }, qn = root$1(), Wt = first_child(qn), On = child(Wt), Yn = child(On);
18705
+ }, qn = root$1(), Jt = first_child(qn), _n = child(Jt), Yn = child(_n);
18698
18706
  {
18699
18707
  var Kn = (Z) => {
18700
18708
  var re = root_1$1();
18701
- delegated("mousedown", re, function(...Te) {
18702
- var ke;
18703
- (ke = I()) == null || ke.apply(this, Te);
18709
+ delegated("mousedown", re, function(..._e) {
18710
+ var ye;
18711
+ (ye = I()) == null || ye.apply(this, _e);
18704
18712
  }), append(Z, re);
18705
18713
  };
18706
18714
  if_block(Yn, (Z) => {
18707
18715
  I() && Z(Kn);
18708
18716
  });
18709
18717
  }
18710
- var Dn = sibling(Yn, 2), yn = child(Dn);
18711
- let wn;
18712
- var ln = sibling(yn, 2);
18718
+ var sn = sibling(Yn, 2), Mn = child(sn);
18713
18719
  let Xn;
18714
- var sr = sibling(child(ln), 2);
18720
+ var an = sibling(Mn, 2);
18721
+ let Jn;
18722
+ var ir = sibling(child(an), 2);
18715
18723
  {
18716
- var ir = (Z) => {
18717
- var re = root_2$1(), Te = child(re, !0);
18718
- reset(re), template_effect(() => set_text(Te, get(pe))), append(Z, re);
18724
+ var Ne = (Z) => {
18725
+ var re = root_2$1(), _e = child(re, !0);
18726
+ reset(re), template_effect(() => set_text(_e, get(pe))), append(Z, re);
18719
18727
  };
18720
- if_block(sr, (Z) => {
18721
- get(pe) > 0 && Z(ir);
18728
+ if_block(ir, (Z) => {
18729
+ get(pe) > 0 && Z(Ne);
18722
18730
  });
18723
18731
  }
18724
- reset(ln);
18725
- var Jn = sibling(ln, 2);
18732
+ reset(an);
18733
+ var De = sibling(an, 2);
18726
18734
  {
18727
- var $e = (Z) => {
18735
+ var Je = (Z) => {
18728
18736
  var re = root_3();
18729
- let Te;
18730
- template_effect(() => Te = set_class(re, 1, "tab svelte-nv4d5v", null, Te, { active: get(N) === "agent" })), delegated("click", re, () => {
18737
+ let _e;
18738
+ template_effect(() => _e = set_class(re, 1, "tab svelte-nv4d5v", null, _e, { active: get(N) === "agent" })), delegated("click", re, () => {
18731
18739
  set(N, "agent"), set($, !0);
18732
18740
  }), append(Z, re);
18733
18741
  };
18734
- if_block(Jn, (Z) => {
18735
- R() && Z($e);
18742
+ if_block(De, (Z) => {
18743
+ R() && Z(Je);
18736
18744
  });
18737
18745
  }
18738
- var Pe = sibling(Jn, 2);
18739
- let He;
18740
- var ut = sibling(Pe, 2);
18741
- let wt;
18742
- reset(Dn);
18743
- var st = sibling(Dn, 2);
18744
- reset(On);
18745
- var Qe = sibling(On, 2);
18746
+ var dt = sibling(De, 2);
18747
+ let St;
18748
+ var ot = sibling(dt, 2);
18749
+ let tt;
18750
+ reset(sn);
18751
+ var qe = sibling(sn, 2);
18752
+ reset(_n);
18753
+ var ut = sibling(_n, 2);
18746
18754
  {
18747
- var Ke = (Z) => {
18748
- var re = root_4(), Te = child(re), ke = sibling(child(Te), 2);
18749
- remove_input_defaults(ke), bind_this(ke, (_e) => set(rt, _e), () => get(rt)), reset(Te);
18750
- var Ne = sibling(Te, 2), Ve = sibling(child(Ne), 2);
18751
- remove_textarea_child(Ve), reset(Ne);
18752
- var ft = sibling(Ne, 2), ht = child(ft), _t = sibling(child(ht), 2);
18753
- each(_t, 21, () => Gn, index, (_e, Ae) => {
18754
- var Je = root_5(), ot = child(Je, !0);
18755
- reset(Je);
18756
- var et = {};
18755
+ var Ye = (Z) => {
18756
+ var re = root_4(), _e = child(re), ye = sibling(child(_e), 2);
18757
+ remove_input_defaults(ye), bind_this(ye, (be) => set(Nt, be), () => get(Nt)), reset(_e);
18758
+ var Fe = sibling(_e, 2), Ue = sibling(child(Fe), 2);
18759
+ remove_textarea_child(Ue), reset(Fe);
18760
+ var lt = sibling(Fe, 2), ft = child(lt), gt = sibling(child(ft), 2);
18761
+ each(gt, 21, () => sr, index, (be, Ae) => {
18762
+ var et = root_5(), st = child(et, !0);
18763
+ reset(et);
18764
+ var nt = {};
18757
18765
  template_effect(() => {
18758
- set_text(ot, get(Ae).label), et !== (et = get(Ae).value) && (Je.value = (Je.__value = get(Ae).value) ?? "");
18759
- }), append(_e, Je);
18760
- }), reset(_t), reset(ht);
18761
- var bt = sibling(ht, 2), gt = sibling(child(bt), 2);
18762
- each(gt, 21, () => or, index, (_e, Ae) => {
18763
- var Je = root_6(), ot = child(Je, !0);
18764
- reset(Je);
18765
- var et = {};
18766
+ set_text(st, get(Ae).label), nt !== (nt = get(Ae).value) && (et.value = (et.__value = get(Ae).value) ?? "");
18767
+ }), append(be, et);
18768
+ }), reset(gt), reset(ft);
18769
+ var Ft = sibling(ft, 2), rt = sibling(child(Ft), 2);
18770
+ each(rt, 21, () => Gn, index, (be, Ae) => {
18771
+ var et = root_6(), st = child(et, !0);
18772
+ reset(et);
18773
+ var nt = {};
18766
18774
  template_effect(() => {
18767
- set_text(ot, get(Ae).label), et !== (et = get(Ae).value) && (Je.value = (Je.__value = get(Ae).value) ?? "");
18768
- }), append(_e, Je);
18769
- }), reset(gt), reset(bt), reset(ft);
18770
- var At = sibling(ft, 2), Oe = child(At), Be = child(Oe), tt = child(Be);
18775
+ set_text(st, get(Ae).label), nt !== (nt = get(Ae).value) && (et.value = (et.__value = get(Ae).value) ?? "");
18776
+ }), append(be, et);
18777
+ }), reset(rt), reset(Ft), reset(lt);
18778
+ var pt = sibling(lt, 2), je = child(pt), Pe = child(je), Qe = child(Pe);
18771
18779
  {
18772
- var lt = (_e) => {
18780
+ var mt = (be) => {
18773
18781
  var Ae = root_7();
18774
- next(), append(_e, Ae);
18775
- }, pt = (_e) => {
18776
- var Ae = root_8(), Je = sibling(first_child(Ae), 2);
18782
+ next(), append(be, Ae);
18783
+ }, wt = (be) => {
18784
+ var Ae = root_8(), et = sibling(first_child(Ae), 2);
18777
18785
  {
18778
- var ot = (et) => {
18779
- var at = root_9(), Et = child(at, !0);
18780
- reset(at), template_effect(() => set_text(Et, get(ae).length)), append(et, at);
18786
+ var st = (nt) => {
18787
+ var ct = root_9(), Ct = child(ct, !0);
18788
+ reset(ct), template_effect(() => set_text(Ct, get(ae).length)), append(nt, ct);
18781
18789
  };
18782
- if_block(Je, (et) => {
18783
- get(ae).length > 0 && et(ot);
18790
+ if_block(et, (nt) => {
18791
+ get(ae).length > 0 && nt(st);
18784
18792
  });
18785
18793
  }
18786
- append(_e, Ae);
18794
+ append(be, Ae);
18787
18795
  };
18788
- if_block(tt, (_e) => {
18789
- get(te) ? _e(lt) : _e(pt, !1);
18796
+ if_block(Qe, (be) => {
18797
+ get(te) ? be(mt) : be(wt, !1);
18790
18798
  });
18791
18799
  }
18792
- reset(Be);
18793
- var mt = sibling(Be, 2), zt = sibling(child(mt), 2);
18800
+ reset(Pe);
18801
+ var kt = sibling(Pe, 2), wn = sibling(child(kt), 2);
18794
18802
  {
18795
- var Gt = (_e) => {
18803
+ var On = (be) => {
18796
18804
  var Ae = text("Click an element...");
18797
- append(_e, Ae);
18798
- }, En = (_e) => {
18799
- var Ae = root_11(), Je = sibling(first_child(Ae));
18805
+ append(be, Ae);
18806
+ }, Vt = (be) => {
18807
+ var Ae = root_11(), et = sibling(first_child(Ae));
18800
18808
  {
18801
- var ot = (et) => {
18802
- var at = root_12(), Et = child(at, !0);
18803
- reset(at), template_effect(() => set_text(Et, get(D).length)), append(et, at);
18809
+ var st = (nt) => {
18810
+ var ct = root_12(), Ct = child(ct, !0);
18811
+ reset(ct), template_effect(() => set_text(Ct, get(D).length)), append(nt, ct);
18804
18812
  };
18805
- if_block(Je, (et) => {
18806
- get(D).length > 0 && et(ot);
18813
+ if_block(et, (nt) => {
18814
+ get(D).length > 0 && nt(st);
18807
18815
  });
18808
18816
  }
18809
- append(_e, Ae);
18817
+ append(be, Ae);
18810
18818
  };
18811
- if_block(zt, (_e) => {
18812
- get(Ye) ? _e(Gt) : _e(En, !1);
18819
+ if_block(wn, (be) => {
18820
+ get(Xe) ? be(On) : be(Vt, !1);
18813
18821
  });
18814
18822
  }
18815
- reset(mt);
18816
- var Ot = sibling(mt, 2);
18817
- let Dt;
18818
- var Ht = child(Ot);
18823
+ reset(kt);
18824
+ var xt = sibling(kt, 2);
18825
+ let Mt;
18826
+ var xn = child(xt);
18819
18827
  {
18820
- var Lt = (_e) => {
18828
+ var Fr = (be) => {
18821
18829
  var Ae = root_13();
18822
- next(), append(_e, Ae);
18823
- }, Sn = (_e) => {
18824
- var Ae = root_14(), Je = sibling(first_child(Ae), 2);
18830
+ next(), append(be, Ae);
18831
+ }, Pr = (be) => {
18832
+ var Ae = root_14(), et = sibling(first_child(Ae), 2);
18825
18833
  {
18826
- var ot = (et) => {
18827
- var at = root_15(), Et = child(at, !0);
18828
- reset(at), template_effect(() => set_text(Et, get(j).length)), append(et, at);
18834
+ var st = (nt) => {
18835
+ var ct = root_15(), Ct = child(ct, !0);
18836
+ reset(ct), template_effect(() => set_text(Ct, get(j).length)), append(nt, ct);
18829
18837
  };
18830
- if_block(Je, (et) => {
18831
- get(j).length > 0 && et(ot);
18838
+ if_block(et, (nt) => {
18839
+ get(j).length > 0 && nt(st);
18832
18840
  });
18833
18841
  }
18834
- append(_e, Ae);
18842
+ append(be, Ae);
18835
18843
  };
18836
- if_block(Ht, (_e) => {
18837
- get(F) ? _e(Lt) : _e(Sn, !1);
18844
+ if_block(xn, (be) => {
18845
+ get(F) ? be(Fr) : be(Pr, !1);
18838
18846
  });
18839
18847
  }
18840
- reset(Ot);
18841
- var Ln = sibling(Ot, 2), Fr = sibling(child(Ln), 2);
18848
+ reset(xt);
18849
+ var Dn = sibling(xt, 2), Zr = sibling(child(Dn), 2);
18842
18850
  {
18843
- var Pr = (_e) => {
18844
- var Ae = root_16(), Je = child(Ae, !0);
18845
- reset(Ae), template_effect(() => set_text(Je, get(V).length)), append(_e, Ae);
18851
+ var Br = (be) => {
18852
+ var Ae = root_16(), et = child(Ae, !0);
18853
+ reset(Ae), template_effect(() => set_text(et, get(V).length)), append(be, Ae);
18846
18854
  };
18847
- if_block(Fr, (_e) => {
18848
- get(V).length > 0 && _e(Pr);
18855
+ if_block(Zr, (be) => {
18856
+ get(V).length > 0 && be(Br);
18849
18857
  });
18850
18858
  }
18851
- reset(Ln);
18852
- var wr = sibling(Ln, 2);
18853
- bind_this(wr, (_e) => set(fe, _e), () => get(fe)), reset(Oe);
18854
- var Zr = sibling(Oe, 2);
18855
- ScreenshotPreview(Zr, {
18859
+ reset(Dn);
18860
+ var wr = sibling(Dn, 2);
18861
+ bind_this(wr, (be) => set(fe, be), () => get(fe)), reset(je);
18862
+ var Ur = sibling(je, 2);
18863
+ ScreenshotPreview(Ur, {
18856
18864
  get screenshots() {
18857
18865
  return get(ae);
18858
18866
  },
18859
18867
  get capturing() {
18860
18868
  return get(te);
18861
18869
  },
18862
- oncapture: vt,
18863
- onremove: Qt,
18864
- onedit: jt
18865
- }), reset(At);
18866
- var xr = sibling(At, 2);
18870
+ oncapture: Dt,
18871
+ onremove: rr,
18872
+ onedit: nn
18873
+ }), reset(pt);
18874
+ var xr = sibling(pt, 2);
18867
18875
  {
18868
- var Br = (_e) => {
18876
+ var jr = (be) => {
18869
18877
  var Ae = root_17();
18870
- each(Ae, 21, () => get(V), index, (Je, ot, et) => {
18871
- var at = root_18(), Et = child(at), ur = child(Et);
18878
+ each(Ae, 21, () => get(V), index, (et, st, nt) => {
18879
+ var ct = root_18(), Ct = child(ct), dr = child(Ct);
18872
18880
  {
18873
- var Fn = (Nt) => {
18874
- var Zn = root_19();
18875
- append(Nt, Zn);
18876
- }, dr = /* @__PURE__ */ user_derived(() => get(ot).type.includes("pdf")), fr = (Nt) => {
18877
- var Zn = root_20();
18878
- append(Nt, Zn);
18879
- }, dn = /* @__PURE__ */ user_derived(() => get(ot).type.includes("markdown") || get(ot).name.endsWith(".md")), Pn = (Nt) => {
18880
- var Zn = root_21();
18881
- append(Nt, Zn);
18881
+ var Ln = (zt) => {
18882
+ var Pn = root_19();
18883
+ append(zt, Pn);
18884
+ }, ur = /* @__PURE__ */ user_derived(() => get(st).type.includes("pdf")), fr = (zt) => {
18885
+ var Pn = root_20();
18886
+ append(zt, Pn);
18887
+ }, cn = /* @__PURE__ */ user_derived(() => get(st).type.includes("markdown") || get(st).name.endsWith(".md")), Fn = (zt) => {
18888
+ var Pn = root_21();
18889
+ append(zt, Pn);
18882
18890
  };
18883
- if_block(ur, (Nt) => {
18884
- get(dr) ? Nt(Fn) : get(dn) ? Nt(fr, 1) : Nt(Pn, !1);
18891
+ if_block(dr, (zt) => {
18892
+ get(ur) ? zt(Ln) : get(cn) ? zt(fr, 1) : zt(Fn, !1);
18885
18893
  });
18886
18894
  }
18887
- reset(Et);
18888
- var pr = sibling(Et, 2), Yr = child(pr, !0);
18895
+ reset(Ct);
18896
+ var pr = sibling(Ct, 2), Xr = child(pr, !0);
18889
18897
  reset(pr);
18890
- var hr = sibling(pr, 2), Kr = child(hr, !0);
18898
+ var hr = sibling(pr, 2), Jr = child(hr, !0);
18891
18899
  reset(hr);
18892
- var Xr = sibling(hr, 2);
18893
- reset(at), template_effect(
18894
- (Nt) => {
18895
- set_text(Yr, get(ot).name), set_text(Kr, Nt);
18900
+ var Qr = sibling(hr, 2);
18901
+ reset(ct), template_effect(
18902
+ (zt) => {
18903
+ set_text(Xr, get(st).name), set_text(Jr, zt);
18896
18904
  },
18897
- [() => Ze(get(ot).size)]
18898
- ), delegated("click", Xr, () => Ie(et)), append(Je, at);
18899
- }), reset(Ae), append(_e, Ae);
18905
+ [() => Le(get(st).size)]
18906
+ ), delegated("click", Qr, () => Te(nt)), append(et, ct);
18907
+ }), reset(Ae), append(be, Ae);
18900
18908
  };
18901
- if_block(xr, (_e) => {
18902
- get(V).length > 0 && _e(Br);
18909
+ if_block(xr, (be) => {
18910
+ get(V).length > 0 && be(jr);
18903
18911
  });
18904
18912
  }
18905
18913
  var Er = sibling(xr, 2);
18906
18914
  {
18907
- var Ur = (_e) => {
18915
+ var Wr = (be) => {
18908
18916
  var Ae = root_22();
18909
- each(Ae, 21, () => get(D), index, (Je, ot, et) => {
18910
- var at = root_23(), Et = child(at), ur = child(Et);
18911
- reset(Et);
18912
- var Fn = sibling(Et, 2), dr = child(Fn, !0);
18913
- reset(Fn);
18914
- var fr = sibling(Fn, 2);
18915
- reset(at), template_effect(
18916
- (dn, Pn) => {
18917
- set_text(ur, `<${dn ?? ""}>`), set_text(dr, Pn);
18917
+ each(Ae, 21, () => get(D), index, (et, st, nt) => {
18918
+ var ct = root_23(), Ct = child(ct), dr = child(Ct);
18919
+ reset(Ct);
18920
+ var Ln = sibling(Ct, 2), ur = child(Ln, !0);
18921
+ reset(Ln);
18922
+ var fr = sibling(Ln, 2);
18923
+ reset(ct), template_effect(
18924
+ (cn, Fn) => {
18925
+ set_text(dr, `<${cn ?? ""}>`), set_text(ur, Fn);
18918
18926
  },
18919
18927
  [
18920
- () => get(ot).tagName.toLowerCase(),
18928
+ () => get(st).tagName.toLowerCase(),
18921
18929
  () => {
18922
- var dn;
18923
- return ((dn = get(ot).textContent) == null ? void 0 : dn.substring(0, 40)) || get(ot).selector;
18930
+ var cn;
18931
+ return ((cn = get(st).textContent) == null ? void 0 : cn.substring(0, 40)) || get(st).selector;
18924
18932
  }
18925
18933
  ]
18926
18934
  ), delegated("click", fr, () => {
18927
- set(D, get(D).filter((dn, Pn) => Pn !== et), !0);
18928
- }), append(Je, at);
18929
- }), reset(Ae), append(_e, Ae);
18935
+ set(D, get(D).filter((cn, Fn) => Fn !== nt), !0);
18936
+ }), append(et, ct);
18937
+ }), reset(Ae), append(be, Ae);
18930
18938
  };
18931
- if_block(Er, (_e) => {
18932
- get(D).length > 0 && _e(Ur);
18939
+ if_block(Er, (be) => {
18940
+ get(D).length > 0 && be(Wr);
18933
18941
  });
18934
18942
  }
18935
18943
  var Sr = sibling(Er, 2);
@@ -18940,48 +18948,60 @@ function FeedbackPanel(d, p) {
18940
18948
  });
18941
18949
  var kr = sibling(Sr, 2);
18942
18950
  {
18943
- var jr = (_e) => {
18944
- var Ae = root_24(), Je = child(Ae);
18945
- reset(Ae), template_effect((ot, et) => set_text(Je, `${ot ?? ""} attachment${et ?? ""} will be included`), [zn, () => zn() > 1 ? "s" : ""]), append(_e, Ae);
18946
- }, Wr = /* @__PURE__ */ user_derived(() => zn() > 0);
18947
- if_block(kr, (_e) => {
18948
- get(Wr) && _e(jr);
18951
+ var Vr = (be) => {
18952
+ var Ae = root_24(), et = child(Ae);
18953
+ reset(Ae), template_effect((st, nt) => set_text(et, `${st ?? ""} attachment${nt ?? ""} will be included`), [$n, () => $n() > 1 ? "s" : ""]), append(be, Ae);
18954
+ }, Gr = /* @__PURE__ */ user_derived(() => $n() > 0);
18955
+ if_block(kr, (be) => {
18956
+ get(Gr) && be(Vr);
18949
18957
  });
18950
18958
  }
18951
- var Cr = sibling(kr, 2), ar = child(Cr), Vr = child(ar);
18959
+ var Cr = sibling(kr, 2), ar = child(Cr), Hr = child(ar);
18952
18960
  reset(ar);
18953
- var lr = sibling(ar, 2), cr = sibling(lr, 2), Gr = child(cr);
18961
+ var lr = sibling(ar, 2), cr = sibling(lr, 2), qr = child(cr);
18954
18962
  {
18955
- var Hr = (_e) => {
18963
+ var Yr = (be) => {
18956
18964
  var Ae = root_25();
18957
- next(), append(_e, Ae);
18958
- }, qr = (_e) => {
18965
+ next(), append(be, Ae);
18966
+ }, Kr = (be) => {
18959
18967
  var Ae = text("Submit");
18960
- append(_e, Ae);
18968
+ append(be, Ae);
18961
18969
  };
18962
- if_block(Gr, (_e) => {
18963
- get(Le) ? _e(Hr) : _e(qr, !1);
18970
+ if_block(qr, (be) => {
18971
+ get(Oe) ? be(Yr) : be(Kr, !1);
18964
18972
  });
18965
18973
  }
18966
18974
  reset(cr), reset(Cr), reset(re), template_effect(
18967
- (_e) => {
18968
- ke.disabled = get(Le), Ve.disabled = get(Le), _t.disabled = get(Le), gt.disabled = get(Le), Be.disabled = get(te), mt.disabled = get(Ye), Dt = set_class(Ot, 1, "tool-btn svelte-nv4d5v", null, Dt, { "recording-active": get(F) }), Ot.disabled = get(Le), Ln.disabled = get(Le), set_text(Vr, `v${h}`), lr.disabled = get(Le), cr.disabled = _e;
18975
+ (be) => {
18976
+ ye.disabled = get(Oe), Ue.disabled = get(Oe), gt.disabled = get(Oe), rt.disabled = get(Oe), Pe.disabled = get(te), kt.disabled = get(Xe), Mt = set_class(xt, 1, "tool-btn svelte-nv4d5v", null, Mt, { "recording-active": get(F) }), xt.disabled = get(Oe), Dn.disabled = get(Oe), set_text(Hr, `v${h}`), lr.disabled = get(Oe), cr.disabled = be;
18969
18977
  },
18970
- [() => get(Le) || !get(we).trim()]
18971
- ), event("submit", re, $n), bind_value(ke, () => get(we), (_e) => set(we, _e)), bind_value(Ve, () => get(ze), (_e) => set(ze, _e)), bind_select_value(_t, () => get(xe), (_e) => set(xe, _e)), bind_select_value(gt, () => get(Ge), (_e) => set(Ge, _e)), delegated("click", Be, vt), delegated("click", mt, en), delegated("click", Ot, Y), delegated("click", Ln, ue), delegated("change", wr, be), delegated("click", lr, function(..._e) {
18978
+ [() => get(Oe) || !get(Ee).trim()]
18979
+ ), event("submit", re, or), bind_value(ye, () => get(Ee), (be) => set(Ee, be)), bind_value(Ue, () => get(Me), (be) => set(Me, be)), bind_select_value(gt, () => get(Se), (be) => set(Se, be)), bind_select_value(rt, () => get(We), (be) => set(We, be)), delegated("click", Pe, Dt), delegated("click", kt, An), delegated("click", xt, Y), delegated("click", Dn, de), delegated("change", wr, we), delegated("click", lr, function(...be) {
18972
18980
  var Ae;
18973
- (Ae = k()) == null || Ae.apply(this, _e);
18981
+ (Ae = k()) == null || Ae.apply(this, be);
18974
18982
  }), transition(3, re, () => slide, () => ({ duration: 200 })), append(Z, re);
18975
18983
  };
18976
- if_block(Qe, (Z) => {
18977
- get(N) === "new" && Z(Ke);
18984
+ if_block(ut, (Z) => {
18985
+ get(N) === "new" && Z(Ye);
18978
18986
  });
18979
18987
  }
18980
- var dt = sibling(Qe, 2);
18988
+ var yt = sibling(ut, 2);
18981
18989
  {
18982
- var Xe = (Z) => {
18983
- var re = root_27(), Te = child(re);
18984
- RequestList(Te, {
18990
+ var Wt = (Z) => {
18991
+ var re = root_27(), _e = child(re);
18992
+ {
18993
+ var ye = (Ue) => {
18994
+ var lt = root_28(), ft = sibling(child(lt), 4), gt = sibling(ft, 2);
18995
+ reset(lt), template_effect(() => set_attribute(ft, "href", `${g() ?? ""}/feedback/replay.html?id=${get(_t) ?? ""}`)), delegated("click", gt, () => {
18996
+ set(_t, null), set(Ge, !1);
18997
+ }), append(Ue, lt);
18998
+ };
18999
+ if_block(_e, (Ue) => {
19000
+ get(_t) && get(Ge) && Ue(ye);
19001
+ });
19002
+ }
19003
+ var Fe = sibling(_e, 2);
19004
+ RequestList(Fe, {
18985
19005
  get endpoint() {
18986
19006
  return g();
18987
19007
  },
@@ -18995,27 +19015,27 @@ function FeedbackPanel(d, p) {
18995
19015
  get reports() {
18996
19016
  return get(he);
18997
19017
  },
18998
- set reports(ke) {
18999
- set(he, ke, !0);
19018
+ set reports(Ue) {
19019
+ set(he, Ue, !0);
19000
19020
  }
19001
19021
  }), reset(re), transition(3, re, () => slide, () => ({ duration: 200 })), append(Z, re);
19002
19022
  };
19003
- if_block(dt, (Z) => {
19004
- get(N) === "requests" && Z(Xe);
19023
+ if_block(yt, (Z) => {
19024
+ get(N) === "requests" && Z(Wt);
19005
19025
  });
19006
19026
  }
19007
- var xt = sibling(dt, 2);
19027
+ var Ke = sibling(yt, 2);
19008
19028
  {
19009
- var cn = (Z) => {
19010
- var re = root_28(), Te = child(re);
19029
+ var Qt = (Z) => {
19030
+ var re = root_29(), _e = child(re);
19011
19031
  {
19012
- let ke = /* @__PURE__ */ user_derived(() => {
19013
- var Ne;
19014
- return ((Ne = get(P)) == null ? void 0 : Ne.getMaxSteps()) ?? 20;
19032
+ let ye = /* @__PURE__ */ user_derived(() => {
19033
+ var Fe;
19034
+ return ((Fe = get(P)) == null ? void 0 : Fe.getMaxSteps()) ?? 20;
19015
19035
  });
19016
- AgentPanel(Te, {
19036
+ AgentPanel(_e, {
19017
19037
  get messages() {
19018
- return get(Se);
19038
+ return get(Ce);
19019
19039
  },
19020
19040
  get agentState() {
19021
19041
  return get(T);
@@ -19024,7 +19044,7 @@ function FeedbackPanel(d, p) {
19024
19044
  return get(z);
19025
19045
  },
19026
19046
  get maxSteps() {
19027
- return get(ke);
19047
+ return get(ye);
19028
19048
  },
19029
19049
  get autoApprove() {
19030
19050
  return get(L);
@@ -19038,15 +19058,15 @@ function FeedbackPanel(d, p) {
19038
19058
  }
19039
19059
  reset(re), transition(3, re, () => slide, () => ({ duration: 200 })), append(Z, re);
19040
19060
  };
19041
- if_block(xt, (Z) => {
19042
- get(N) === "agent" && get($) && Z(cn);
19061
+ if_block(Ke, (Z) => {
19062
+ get(N) === "agent" && get($) && Z(Qt);
19043
19063
  });
19044
19064
  }
19045
- var qe = sibling(xt, 2);
19065
+ var en = sibling(Ke, 2);
19046
19066
  {
19047
- var tn = (Z) => {
19048
- var re = root_29(), Te = child(re);
19049
- NotesPanel(Te, {
19067
+ var ln = (Z) => {
19068
+ var re = root_30(), _e = child(re);
19069
+ NotesPanel(_e, {
19050
19070
  get endpoint() {
19051
19071
  return g();
19052
19072
  },
@@ -19056,88 +19076,88 @@ function FeedbackPanel(d, p) {
19056
19076
  onnoteschanged: W
19057
19077
  }), reset(re), transition(3, re, () => slide, () => ({ duration: 200 })), append(Z, re);
19058
19078
  };
19059
- if_block(qe, (Z) => {
19060
- get(N) === "notes" && get(O) && Z(tn);
19079
+ if_block(en, (Z) => {
19080
+ get(N) === "notes" && get(O) && Z(ln);
19061
19081
  });
19062
19082
  }
19063
- var nn = sibling(qe, 2);
19083
+ var Lt = sibling(en, 2);
19064
19084
  {
19065
- var un = (Z) => {
19066
- var re = root_30(), Te = child(re), ke = sibling(child(Te), 2), Ne = child(ke);
19085
+ var bn = (Z) => {
19086
+ var re = root_31(), _e = child(re), ye = sibling(child(_e), 2), Fe = child(ye);
19067
19087
  {
19068
- var Ve = (Oe) => {
19069
- var Be = root_31();
19070
- delegated("click", Be, ve), append(Oe, Be);
19071
- }, ft = (Oe) => {
19072
- var Be = root_32(), tt = first_child(Be);
19073
- next(2), delegated("click", tt, Re), append(Oe, Be);
19074
- }, ht = (Oe) => {
19075
- var Be = root_33(), tt = sibling(child(Be), 2), lt = child(tt, !0);
19076
- reset(tt), reset(Be), template_effect(() => set_text(lt, get(ce))), append(Oe, Be);
19077
- }, _t = (Oe) => {
19078
- var Be = root_34(), tt = sibling(first_child(Be), 2), lt = child(tt, !0);
19079
- reset(tt);
19080
- var pt = sibling(tt, 2);
19081
- template_effect(() => set_text(lt, get(ce))), delegated("click", pt, me), append(Oe, Be);
19082
- }, bt = (Oe) => {
19083
- var Be = root_35(), tt = sibling(first_child(Be), 2), lt = child(tt, !0);
19084
- reset(tt);
19085
- var pt = sibling(tt, 2);
19086
- template_effect(() => set_text(lt, get(ce))), delegated("click", pt, me), append(Oe, Be);
19088
+ var Ue = (je) => {
19089
+ var Pe = root_32();
19090
+ delegated("click", Pe, ve), append(je, Pe);
19091
+ }, lt = (je) => {
19092
+ var Pe = root_33(), Qe = first_child(Pe);
19093
+ next(2), delegated("click", Qe, Re), append(je, Pe);
19094
+ }, ft = (je) => {
19095
+ var Pe = root_34(), Qe = sibling(child(Pe), 2), mt = child(Qe, !0);
19096
+ reset(Qe), reset(Pe), template_effect(() => set_text(mt, get(ce))), append(je, Pe);
19097
+ }, gt = (je) => {
19098
+ var Pe = root_35(), Qe = sibling(first_child(Pe), 2), mt = child(Qe, !0);
19099
+ reset(Qe);
19100
+ var wt = sibling(Qe, 2);
19101
+ template_effect(() => set_text(mt, get(ce))), delegated("click", wt, me), append(je, Pe);
19102
+ }, Ft = (je) => {
19103
+ var Pe = root_36(), Qe = sibling(first_child(Pe), 2), mt = child(Qe, !0);
19104
+ reset(Qe);
19105
+ var wt = sibling(Qe, 2);
19106
+ template_effect(() => set_text(mt, get(ce))), delegated("click", wt, me), append(je, Pe);
19087
19107
  };
19088
- if_block(Ne, (Oe) => {
19089
- get(oe) === "idle" ? Oe(Ve) : get(oe) === "recording" ? Oe(ft, 1) : get(oe) === "processing" ? Oe(ht, 2) : get(oe) === "done" ? Oe(_t, 3) : get(oe) === "error" && Oe(bt, 4);
19108
+ if_block(Fe, (je) => {
19109
+ get(oe) === "idle" ? je(Ue) : get(oe) === "recording" ? je(lt, 1) : get(oe) === "processing" ? je(ft, 2) : get(oe) === "done" ? je(gt, 3) : get(oe) === "error" && je(Ft, 4);
19090
19110
  });
19091
19111
  }
19092
- reset(ke);
19093
- var gt = sibling(ke, 2);
19112
+ reset(ye);
19113
+ var rt = sibling(ye, 2);
19094
19114
  {
19095
- var At = (Oe) => {
19096
- var Be = root_36();
19097
- append(Oe, Be);
19115
+ var pt = (je) => {
19116
+ var Pe = root_37();
19117
+ append(je, Pe);
19098
19118
  };
19099
- if_block(gt, (Oe) => {
19100
- get(oe) === "idle" && Oe(At);
19119
+ if_block(rt, (je) => {
19120
+ get(oe) === "idle" && je(pt);
19101
19121
  });
19102
19122
  }
19103
- reset(Te), reset(re), transition(3, re, () => slide, () => ({ duration: 200 })), append(Z, re);
19123
+ reset(_e), reset(re), transition(3, re, () => slide, () => ({ duration: 200 })), append(Z, re);
19104
19124
  };
19105
- if_block(nn, (Z) => {
19106
- get(N) === "voice" && Z(un);
19125
+ if_block(Lt, (Z) => {
19126
+ get(N) === "voice" && Z(bn);
19107
19127
  });
19108
19128
  }
19109
- var Vt = sibling(nn, 2);
19110
- StatusToast(Vt, {
19129
+ var $t = sibling(Lt, 2);
19130
+ StatusToast($t, {
19111
19131
  get message() {
19112
- return get(Mt);
19132
+ return get(Be);
19113
19133
  },
19114
19134
  get type() {
19115
- return get(_n);
19135
+ return get(He);
19116
19136
  },
19117
19137
  get visible() {
19118
- return get(je);
19138
+ return get(bt);
19119
19139
  }
19120
- }), reset(Wt);
19121
- var xn = sibling(Wt, 2);
19140
+ }), reset(Jt);
19141
+ var yn = sibling(Jt, 2);
19122
19142
  {
19123
- var Rt = (Z) => {
19143
+ var zn = (Z) => {
19124
19144
  AnnotationEditor(Z, {
19125
19145
  get imageDataUrl() {
19126
- return get(We);
19146
+ return get(vt);
19127
19147
  },
19128
- onsave: rr,
19129
- oncancel: sn
19148
+ onsave: Xt,
19149
+ oncancel: vn
19130
19150
  });
19131
19151
  };
19132
- if_block(xn, (Z) => {
19133
- get(nt) !== null && Z(Rt);
19152
+ if_block(yn, (Z) => {
19153
+ get(Ve) !== null && Z(zn);
19134
19154
  });
19135
19155
  }
19136
19156
  return template_effect(() => {
19137
- wn = set_class(yn, 1, "tab svelte-nv4d5v", null, wn, { active: get(N) === "new" }), Xn = set_class(ln, 1, "tab svelte-nv4d5v", null, Xn, { active: get(N) === "requests" }), He = set_class(Pe, 1, "tab svelte-nv4d5v", null, He, { active: get(N) === "notes" }), wt = set_class(ut, 1, "tab svelte-nv4d5v", null, wt, { active: get(N) === "voice" });
19138
- }), delegated("keydown", Wt, Mn), delegated("keyup", Wt, Mn), event("keypress", Wt, Mn), delegated("click", yn, () => set(N, "new")), delegated("click", ln, () => set(N, "requests")), delegated("click", Pe, () => {
19157
+ Xn = set_class(Mn, 1, "tab svelte-nv4d5v", null, Xn, { active: get(N) === "new" }), Jn = set_class(an, 1, "tab svelte-nv4d5v", null, Jn, { active: get(N) === "requests" }), St = set_class(dt, 1, "tab svelte-nv4d5v", null, St, { active: get(N) === "notes" }), tt = set_class(ot, 1, "tab svelte-nv4d5v", null, tt, { active: get(N) === "voice" });
19158
+ }), delegated("keydown", Jt, Nn), delegated("keyup", Jt, Nn), event("keypress", Jt, Nn), delegated("click", Mn, () => set(N, "new")), delegated("click", an, () => set(N, "requests")), delegated("click", dt, () => {
19139
19159
  set(N, "notes"), set(O, !0);
19140
- }), delegated("click", ut, () => set(N, "voice")), delegated("click", st, function(...Z) {
19160
+ }), delegated("click", ot, () => set(N, "voice")), delegated("click", qe, function(...Z) {
19141
19161
  var re;
19142
19162
  (re = k()) == null || re.apply(this, Z);
19143
19163
  }), append(d, qn), pop(Hn);
@@ -19190,8 +19210,8 @@ function JatFeedback(d, p) {
19190
19210
  const pe = K.clientX - J, le = K.clientY - ne;
19191
19211
  if (!ee && Math.abs(pe) + Math.abs(le) < j) return;
19192
19212
  ee = !0, set($, !0), K.preventDefault();
19193
- const we = K.clientX - O.x, ze = K.clientY - O.y;
19194
- get(F).style.top = `${ze}px`, get(F).style.left = `${we}px`, get(F).style.bottom = "auto", get(F).style.right = "auto";
19213
+ const Ee = K.clientX - O.x, Me = K.clientY - O.y;
19214
+ get(F).style.top = `${Me}px`, get(F).style.left = `${Ee}px`, get(F).style.bottom = "auto", get(F).style.right = "auto";
19195
19215
  }
19196
19216
  function B() {
19197
19217
  set($, !1), window.removeEventListener("mousemove", he), window.removeEventListener("mouseup", B), ie == null || ie(ee);
@@ -19201,10 +19221,10 @@ function JatFeedback(d, p) {
19201
19221
  function q(W) {
19202
19222
  Y(W);
19203
19223
  }
19204
- function de(W) {
19224
+ function ue(W) {
19205
19225
  W.button === 0 && (W.preventDefault(), Y(W, {
19206
19226
  onDragEnd(ie) {
19207
- ie || ye();
19227
+ ie || xe();
19208
19228
  }
19209
19229
  }));
19210
19230
  }
@@ -19225,7 +19245,7 @@ function JatFeedback(d, p) {
19225
19245
  theme: _() || DEFAULT_CONFIG.theme,
19226
19246
  buttonColor: b() || DEFAULT_CONFIG.buttonColor
19227
19247
  }));
19228
- function ye() {
19248
+ function xe() {
19229
19249
  set(A, !get(A));
19230
19250
  }
19231
19251
  function ve() {
@@ -19236,7 +19256,7 @@ function JatFeedback(d, p) {
19236
19256
  "bottom-left": "bottom: 20px; left: 20px;",
19237
19257
  "top-right": "top: 20px; right: 20px;",
19238
19258
  "top-left": "top: 20px; left: 20px;"
19239
- }, Ee = {
19259
+ }, ke = {
19240
19260
  "bottom-right": "bottom: 80px; right: 0;",
19241
19261
  "bottom-left": "bottom: 80px; left: 0;",
19242
19262
  "top-right": "top: 80px; right: 0;",
@@ -19261,7 +19281,7 @@ function JatFeedback(d, p) {
19261
19281
  }), onDestroy(() => {
19262
19282
  stopConsoleCapture(), stopNetworkCapture(), stopRetryLoop(), window.removeEventListener("keydown", me, !0), oe && clearInterval(oe);
19263
19283
  });
19264
- var Se = {
19284
+ var Ce = {
19265
19285
  get endpoint() {
19266
19286
  return h();
19267
19287
  },
@@ -19395,11 +19415,11 @@ function JatFeedback(d, p) {
19395
19415
  onclose: ve,
19396
19416
  ongrip: q
19397
19417
  }), reset(ie), template_effect(() => {
19398
- J = set_class(ie, 1, "jat-feedback-panel svelte-qpyrvv", null, J, { dragging: get($), hidden: !get(A) }), set_style(ie, Ee[get(se).position] || Ee["bottom-right"]);
19418
+ J = set_class(ie, 1, "jat-feedback-panel svelte-qpyrvv", null, J, { dragging: get($), hidden: !get(A) }), set_style(ie, ke[get(se).position] || ke["bottom-right"]);
19399
19419
  }), append(W, ie);
19400
19420
  }, P = (W) => {
19401
19421
  var ie = root_2();
19402
- template_effect(() => set_style(ie, Ee[get(se).position] || Ee["bottom-right"])), append(W, ie);
19422
+ template_effect(() => set_style(ie, ke[get(se).position] || ke["bottom-right"])), append(W, ie);
19403
19423
  };
19404
19424
  if_block(z, (W) => {
19405
19425
  get(se).endpoint ? W(L) : get(A) && W(P, 1);
@@ -19407,11 +19427,11 @@ function JatFeedback(d, p) {
19407
19427
  }
19408
19428
  var G = sibling(z, 2);
19409
19429
  return FeedbackButton(G, {
19410
- onmousedown: de,
19430
+ onmousedown: ue,
19411
19431
  get open() {
19412
19432
  return get(A);
19413
19433
  }
19414
- }), reset(T), bind_this(T, (W) => set(F, W), () => get(F)), template_effect(() => set_style(T, `${(Re[get(se).position] || Re["bottom-right"]) ?? ""}; --jat-btn-color: ${get(se).buttonColor ?? ""}; ${get(C) ? "display: none;" : ""}`)), append(d, T), pop(Se);
19434
+ }), reset(T), bind_this(T, (W) => set(F, W), () => get(F)), template_effect(() => set_style(T, `${(Re[get(se).position] || Re["bottom-right"]) ?? ""}; --jat-btn-color: ${get(se).buttonColor ?? ""}; ${get(C) ? "display: none;" : ""}`)), append(d, T), pop(Ce);
19415
19435
  }
19416
19436
  customElements.define("jat-feedback", create_custom_element(
19417
19437
  JatFeedback,
@@ -19443,7 +19463,7 @@ customElements.define("jat-feedback", create_custom_element(
19443
19463
  * @repository https://github.com/gaomeng1900/ai-motion
19444
19464
  */
19445
19465
  function computeBorderGeometry(d, p, h, g) {
19446
- const m = Math.max(1, Math.min(d, p)), _ = Math.min(h, 20), y = Math.min(_ + g, m), w = Math.min(y, Math.floor(d / 2)), x = Math.min(y, Math.floor(p / 2)), E = (P) => P / d * 2 - 1, S = (P) => P / p * 2 - 1, k = 0, I = d, R = 0, M = p, A = w, C = d - w, N = x, $ = p - x, O = E(k), F = E(I), j = S(R), Y = S(M), q = E(A), de = E(C), oe = S(N), ce = S($), se = 0, ye = 0, ve = 1, Re = 1, Ee = w / d, me = 1 - w / d, Se = x / p, T = 1 - x / p, z = new Float32Array([
19466
+ const m = Math.max(1, Math.min(d, p)), _ = Math.min(h, 20), y = Math.min(_ + g, m), w = Math.min(y, Math.floor(d / 2)), x = Math.min(y, Math.floor(p / 2)), E = (P) => P / d * 2 - 1, S = (P) => P / p * 2 - 1, k = 0, I = d, R = 0, M = p, A = w, C = d - w, N = x, $ = p - x, O = E(k), F = E(I), j = S(R), Y = S(M), q = E(A), ue = E(C), oe = S(N), ce = S($), se = 0, xe = 0, ve = 1, Re = 1, ke = w / d, me = 1 - w / d, Ce = x / p, T = 1 - x / p, z = new Float32Array([
19447
19467
  // Top strip
19448
19468
  O,
19449
19469
  j,
@@ -19484,13 +19504,13 @@ function computeBorderGeometry(d, p, h, g) {
19484
19504
  q,
19485
19505
  ce,
19486
19506
  // Right strip
19487
- de,
19507
+ ue,
19488
19508
  oe,
19489
19509
  F,
19490
19510
  oe,
19491
- de,
19511
+ ue,
19492
19512
  ce,
19493
- de,
19513
+ ue,
19494
19514
  ce,
19495
19515
  F,
19496
19516
  oe,
@@ -19499,17 +19519,17 @@ function computeBorderGeometry(d, p, h, g) {
19499
19519
  ]), L = new Float32Array([
19500
19520
  // Top strip
19501
19521
  se,
19502
- ye,
19522
+ xe,
19503
19523
  ve,
19504
- ye,
19524
+ xe,
19505
19525
  se,
19506
- Se,
19526
+ Ce,
19507
19527
  se,
19508
- Se,
19528
+ Ce,
19509
19529
  ve,
19510
- ye,
19530
+ xe,
19511
19531
  ve,
19512
- Se,
19532
+ Ce,
19513
19533
  // Bottom strip
19514
19534
  se,
19515
19535
  T,
@@ -19525,28 +19545,28 @@ function computeBorderGeometry(d, p, h, g) {
19525
19545
  Re,
19526
19546
  // Left strip
19527
19547
  se,
19528
- Se,
19529
- Ee,
19530
- Se,
19548
+ Ce,
19549
+ ke,
19550
+ Ce,
19531
19551
  se,
19532
19552
  T,
19533
19553
  se,
19534
19554
  T,
19535
- Ee,
19536
- Se,
19537
- Ee,
19555
+ ke,
19556
+ Ce,
19557
+ ke,
19538
19558
  T,
19539
19559
  // Right strip
19540
19560
  me,
19541
- Se,
19561
+ Ce,
19542
19562
  ve,
19543
- Se,
19563
+ Ce,
19544
19564
  me,
19545
19565
  T,
19546
19566
  me,
19547
19567
  T,
19548
19568
  ve,
19549
- Se,
19569
+ Ce,
19550
19570
  ve,
19551
19571
  T
19552
19572
  ]);
@@ -19710,16 +19730,16 @@ function parseColor(d) {
19710
19730
  }
19711
19731
  class Motion {
19712
19732
  constructor(p = {}) {
19713
- Ce(this, "element");
19714
- Ce(this, "canvas");
19715
- Ce(this, "options");
19716
- Ce(this, "running", !1);
19717
- Ce(this, "disposed", !1);
19718
- Ce(this, "startTime", 0);
19719
- Ce(this, "lastTime", 0);
19720
- Ce(this, "rafId", null);
19721
- Ce(this, "glr");
19722
- Ce(this, "observer");
19733
+ Ie(this, "element");
19734
+ Ie(this, "canvas");
19735
+ Ie(this, "options");
19736
+ Ie(this, "running", !1);
19737
+ Ie(this, "disposed", !1);
19738
+ Ie(this, "startTime", 0);
19739
+ Ie(this, "lastTime", 0);
19740
+ Ie(this, "rafId", null);
19741
+ Ie(this, "glr");
19742
+ Ie(this, "observer");
19723
19743
  this.options = {
19724
19744
  width: p.width ?? 600,
19725
19745
  height: p.height ?? 600,