@versini/sassysaint 8.51.5 → 8.51.6

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.
Files changed (23) hide show
  1. package/dist/chunks/{AboutChangelog.B5fQ66cZ.js → AboutChangelog.CN3UXSMa.js} +2 -2
  2. package/dist/chunks/{AboutEntry.DRFkTf3Z.js → AboutEntry.CJpD_FIz.js} +5 -5
  3. package/dist/chunks/{App.Dgi9EXuN.js → App.DT84WhDa.js} +1228 -1254
  4. package/dist/chunks/{Chart.PqAySZVH.js → Chart.B0FmDaG9.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.PMOMVxex.js → ChatBubbleAssistant.dFydRRL8.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.DStxPNL-.js → ChatBubbleUser.CzqAzo87.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.CpwZZ1fA.js → ChatHistoryTable.DCSHS-y-.js} +3 -3
  8. package/dist/chunks/{HistoryEntry.B3dcvSNE.js → HistoryEntry.Do3qCPt5.js} +3 -3
  9. package/dist/chunks/{ProfileEntry.DtBPcDgq.js → ProfileEntry.Dt1aXKGZ.js} +2 -2
  10. package/dist/chunks/{SettingsEntry.mqrkoBrh.js → SettingsEntry.4firEV8i.js} +3 -3
  11. package/dist/chunks/{Table.D6XceIb0.js → Table.DF8KWCWh.js} +2 -2
  12. package/dist/chunks/{UsageEntry.wEiNRoBF.js → UsageEntry.DJj3pktC.js} +3 -3
  13. package/dist/chunks/{index.CyghD2Hp.js → index.14z58zNz.js} +1 -1
  14. package/dist/chunks/{index.Cw3-hSiP.js → index.4HYk3k3m.js} +91 -139
  15. package/dist/chunks/{index.CwWwIAw7.js → index.79XJjKxS.js} +2 -2
  16. package/dist/chunks/{index.CD8QBlM8.js → index.Bl5ttGkN.js} +3 -3
  17. package/dist/chunks/{index.C0AhpNkV.js → index.CDCubG_8.js} +1 -1
  18. package/dist/chunks/{index.DB6Qo1oZ.js → index.DOohK2Jv.js} +1 -1
  19. package/dist/chunks/{index.XPqmLIDw.js → index.DpKYAotX.js} +1 -1
  20. package/dist/chunks/{useMarkdown.CeeOSwvK.js → useMarkdown.CoBS9HcY.js} +6 -6
  21. package/dist/components/SassySaint/SassySaint.js +1 -1
  22. package/dist/index.js +4 -4
  23. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  import { jsx as Ap } from "react/jsx-runtime";
2
- import { getDefaultExportFromCjs as ln } from "./App.Dgi9EXuN.js";
2
+ import { getDefaultExportFromCjs as ln } from "./App.DT84WhDa.js";
3
3
  import Cp, { useState as Pp, useEffect as Op } from "react";
4
- import { TRIMESTERS as rn, TRIMESTERS_SHORT as Lp, isProbablyMobile as Ep } from "./index.Cw3-hSiP.js";
4
+ import { TRIMESTERS as rn, TRIMESTERS_SHORT as Lp, isProbablyMobile as Ep } from "./index.4HYk3k3m.js";
5
5
  var ls = { exports: {} }, Ip = ls.exports, on;
6
6
  function Dp() {
7
7
  return on || (on = 1, (function(ke, ne) {
@@ -1,10 +1,10 @@
1
1
  import { jsx as M } from "react/jsx-runtime";
2
- import { n as N, useUserPreferences as O, convertCamelCaseToReadable as P, numberFormatter as R, pluralize as y, ne as L } from "./index.Cw3-hSiP.js";
3
- import { BUBBLE_FOOTER_EMPTY as _ } from "./index.CyghD2Hp.js";
2
+ import { n as N, useUserPreferences as O, convertCamelCaseToReadable as P, numberFormatter as R, pluralize as y, ne as L } from "./index.4HYk3k3m.js";
3
+ import { BUBBLE_FOOTER_EMPTY as _ } from "./index.14z58zNz.js";
4
4
  import w from "clsx";
5
5
  import v, { useState as b, useRef as A, useEffect as U, useContext as B } from "react";
6
- import { ChatContext as G, AsyncBubble as E } from "./App.Dgi9EXuN.js";
7
- import { useMarkdown as D } from "./useMarkdown.CeeOSwvK.js";
6
+ import { ChatContext as G, AsyncBubble as E } from "./App.DT84WhDa.js";
7
+ import { useMarkdown as D } from "./useMarkdown.CoBS9HcY.js";
8
8
  const j = 2, q = j * 1e3, x = "", I = (e) => e * (2 - e);
9
9
  function W(e, n = !0) {
10
10
  const [a, p] = b(0), [i, C] = b(0), [t, T] = b(e), r = A(0), s = A(0);
@@ -1,8 +1,8 @@
1
1
  import { jsx as n, Fragment as b, jsxs as A } from "react/jsx-runtime";
2
2
  import { useState as C, useMemo as u, isValidElement as p, useEffect as I } from "react";
3
- import { AsyncBubble as w } from "./App.Dgi9EXuN.js";
4
- import { useMarkdown as _ } from "./useMarkdown.CeeOSwvK.js";
5
- import { C as M } from "./index.Cw3-hSiP.js";
3
+ import { AsyncBubble as w } from "./App.DT84WhDa.js";
4
+ import { useMarkdown as _ } from "./useMarkdown.CoBS9HcY.js";
5
+ import { C as M } from "./index.4HYk3k3m.js";
6
6
  const R = 200, N = ({
7
7
  string: e,
8
8
  idealLength: r = R
@@ -1,8 +1,8 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { I as E, Ae as p, ue as u, INFINITE_SCROLL_THRESHOLD as w, CARDS as y, pluralize as f, te as g, numberFormatter as v, ye as D, isProbablyMobile as U, y as b, i$1 as I, E as k } from "./index.Cw3-hSiP.js";
3
- import { st as O, p$1 as z, z as P, p$2 as V } from "./App.Dgi9EXuN.js";
2
+ import { I as E, Ae as p, ue as u, INFINITE_SCROLL_THRESHOLD as w, CARDS as y, pluralize as f, te as g, numberFormatter as v, ye as D, isProbablyMobile as U, y as b, i$1 as I, E as k } from "./index.4HYk3k3m.js";
3
+ import { st as O, p$1 as z, z as P, p$2 as V } from "./App.DT84WhDa.js";
4
4
  import { Fragment as _ } from "react";
5
- import { j as $, D as B, G as x, H, U as L, M as a, F as R, l as Y } from "./Table.D6XceIb0.js";
5
+ import { j as $, D as B, G as x, H, U as L, M as a, F as R, l as Y } from "./Table.DF8KWCWh.js";
6
6
  const F = ({
7
7
  className: l,
8
8
  viewBox: n,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as m, jsx as t, Fragment as J } from "react/jsx-runtime";
2
- import { I as Q, n as z, INFINITE_SCROLL_LIMIT as H, INFINITE_SCROLL_THRESHOLD as Z, LOCAL_STORAGE_PREFIX as g, LOCAL_STORAGE_SORT_TIMESTAMP as ee, LOCAL_STORAGE_SORT_TOKEN_USAGE as te, LOCAL_STORAGE_SORT as ae, Ae as A, useUserPreferences as re, APP_CLASSNAME as se, mutateCall as N, SERVICE_TYPES as x, setNewProvider as oe, ACTION_SORT as ne, ue as ie, TOAST_CHAT_DELETED as ce, TOAST_PROVIDER_CHANGED as le, useChatsHistory as de, LOCAL_STORAGE_SEARCH as he, HISTORY_TITLE as me, Y as ue, debounce as Se, te as Ce, ACTION_SEARCH as pe } from "./index.Cw3-hSiP.js";
3
- import { HistoryContext as M, ChatContext as P, useAiChat as Te, E as D, e as h, ConfirmationPanel as fe, LazyToastContainerWrapper as ye, showErrorToast as Ee, CHAT_SET_PROVIDER as ge, showSuccessToast as Ae, CHAT_SET_STATUS as De, se as _e, a as Ie } from "./App.Dgi9EXuN.js";
2
+ import { I as Q, n as z, INFINITE_SCROLL_LIMIT as H, INFINITE_SCROLL_THRESHOLD as Z, LOCAL_STORAGE_PREFIX as g, LOCAL_STORAGE_SORT_TIMESTAMP as ee, LOCAL_STORAGE_SORT_TOKEN_USAGE as te, LOCAL_STORAGE_SORT as ae, Ae as A, useUserPreferences as re, APP_CLASSNAME as se, mutateCall as N, SERVICE_TYPES as x, setNewProvider as oe, ACTION_SORT as ne, ue as ie, TOAST_CHAT_DELETED as ce, TOAST_PROVIDER_CHANGED as le, useChatsHistory as de, LOCAL_STORAGE_SEARCH as he, HISTORY_TITLE as me, Y as ue, debounce as Se, te as Ce, ACTION_SEARCH as pe } from "./index.4HYk3k3m.js";
3
+ import { HistoryContext as M, ChatContext as P, useAiChat as Te, E as D, e as h, ConfirmationPanel as fe, LazyToastContainerWrapper as ye, showErrorToast as Ee, CHAT_SET_PROVIDER as ge, showSuccessToast as Ae, CHAT_SET_STATUS as De, se as _e, a as Ie } from "./App.DT84WhDa.js";
4
4
  import { useRef as R, useState as L, useContext as _, useCallback as Oe, useEffect as V, Suspense as Re, lazy as Le } from "react";
5
5
  const ve = ({
6
6
  className: i,
@@ -31,7 +31,7 @@ const ve = ({
31
31
  ), ke = Le(
32
32
  () => import(
33
33
  /* webpackChunkName: "history-table" */
34
- "./ChatHistoryTable.CpwZZ1fA.js"
34
+ "./ChatHistoryTable.DCSHS-y-.js"
35
35
  ).then((i) => ({ default: i.ChatHistoryTable }))
36
36
  ), be = ({
37
37
  filteredHistory: i,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as t, Fragment as m, jsx as e } from "react/jsx-runtime";
2
- import { se as h } from "./App.Dgi9EXuN.js";
3
- import { n as S, i as R, S as a, renderDataAsList as N, CARDS as r, it as P, isTauri as u, te as T, l as E, L as p, j as l, PROFILE_TITLE as C } from "./index.Cw3-hSiP.js";
2
+ import { se as h } from "./App.DT84WhDa.js";
3
+ import { n as S, i as R, S as a, renderDataAsList as N, CARDS as r, it as P, isTauri as u, te as T, l as E, L as p, j as l, PROFILE_TITLE as C } from "./index.4HYk3k3m.js";
4
4
  const A = () => {
5
5
  const { isAuthenticated: n, user: i, registeringForPasskey: o, authenticationType: c } = S(), d = R(), s = i?.username || "";
6
6
  return n && s ? /* @__PURE__ */ t(m, { children: [
@@ -1,8 +1,8 @@
1
1
  import { jsxs as l, jsx as e, Fragment as ue } from "react/jsx-runtime";
2
- import { o as Te, h as fe, i as Se, x as ve, n as we, LOCAL_STORAGE_PREFIX as ge, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as Ae, LOCAL_STORAGE_SORT_MEMORY_COLUMN as De, useUserMemories as Ie, useDeleteMemory as Le, useDeleteAllMemories as Me, te as _e, L as Ce, j as ne, C as K, useUserPreferences as Oe, getCacheInfo as Re, isServiceWorkerEnabled as Pe, SETTINGS_TITLE as Be, S as X, CARDS as F, de as Ge, PROMPTS_DESCRIPTION as Ue, pe as He, getCurrentGeoLocation as $e, mutateCall as ye, handleServiceWorkerToggle as Ve, SERVICE_TYPES as xe } from "./index.Cw3-hSiP.js";
3
- import { E as be, e as J, ConfirmationPanel as ke, se as Ee, st as ze, useCapability as Fe, L as W } from "./App.Dgi9EXuN.js";
2
+ import { o as Te, h as fe, i as Se, x as ve, n as we, LOCAL_STORAGE_PREFIX as ge, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as Ae, LOCAL_STORAGE_SORT_MEMORY_COLUMN as De, useUserMemories as Ie, useDeleteMemory as Le, useDeleteAllMemories as Me, te as _e, L as Ce, j as ne, C as K, useUserPreferences as Oe, getCacheInfo as Re, isServiceWorkerEnabled as Pe, SETTINGS_TITLE as Be, S as X, CARDS as F, de as Ge, PROMPTS_DESCRIPTION as Ue, pe as He, getCurrentGeoLocation as $e, mutateCall as ye, handleServiceWorkerToggle as Ve, SERVICE_TYPES as xe } from "./index.4HYk3k3m.js";
3
+ import { E as be, e as J, ConfirmationPanel as ke, se as Ee, st as ze, useCapability as Fe, L as W } from "./App.DT84WhDa.js";
4
4
  import We, { useState as c, useEffect as he, useRef as j, useLayoutEffect as te, useCallback as je } from "react";
5
- import { j as Ye, D as qe, G as de, M as G, F as Xe, H as Je, l as Ke, U as Qe } from "./Table.D6XceIb0.js";
5
+ import { j as Ye, D as qe, G as de, M as G, F as Xe, H as Je, l as Ke, U as Qe } from "./Table.DF8KWCWh.js";
6
6
  import k from "clsx";
7
7
  function Ze({
8
8
  value: a,
@@ -1,8 +1,8 @@
1
1
  import { jsxs as _, jsx as r } from "react/jsx-runtime";
2
- import { I as f, b as v } from "./index.Cw3-hSiP.js";
2
+ import { I as f, b as v } from "./index.4HYk3k3m.js";
3
3
  import C, { useContext as b } from "react";
4
4
  import o from "clsx";
5
- import { e as k } from "./App.Dgi9EXuN.js";
5
+ import { e as k } from "./App.DT84WhDa.js";
6
6
  const A = ({
7
7
  className: e,
8
8
  viewBox: a,
@@ -1,10 +1,10 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { n as f, i as U, useUserChatStats as v, useChatsUsage as E, USAGE_TITLE as L, S as h, renderDataAsList as M, CARDS as n, L as _, j as D, C as m, pluralize as i } from "./index.Cw3-hSiP.js";
3
- import { se as z } from "./App.Dgi9EXuN.js";
2
+ import { n as f, i as U, useUserChatStats as v, useChatsUsage as E, USAGE_TITLE as L, S as h, renderDataAsList as M, CARDS as n, L as _, j as D, C as m, pluralize as i } from "./index.4HYk3k3m.js";
3
+ import { se as z } from "./App.DT84WhDa.js";
4
4
  import { useState as O, Suspense as P, lazy as B } from "react";
5
5
  const t = [0, 3, 6, 9], j = B(() => import(
6
6
  /* webpackChunkName: "LazyChart" */
7
- "./Chart.PqAySZVH.js"
7
+ "./Chart.B0FmDaG9.js"
8
8
  )), b = ({
9
9
  open: S,
10
10
  onOpenChange: I
@@ -1,5 +1,5 @@
1
1
  import { jsxs as p, jsx as i } from "react/jsx-runtime";
2
- import { te as B } from "./index.Cw3-hSiP.js";
2
+ import { te as B } from "./index.4HYk3k3m.js";
3
3
  import { useState as I, useEffect as k } from "react";
4
4
  import s from "clsx";
5
5
  const h = "av-bubble", w = ({
@@ -455,18 +455,18 @@ var Nr = class {
455
455
  #e;
456
456
  #t;
457
457
  #r;
458
- #a;
459
458
  #s;
459
+ #a;
460
460
  #i;
461
461
  #o;
462
462
  constructor(e) {
463
- super(), this.#o = !1, this.#i = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#a = e.client, this.#r = this.#a.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e = Zt(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
463
+ super(), this.#o = !1, this.#i = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#s = e.client, this.#r = this.#s.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e = Zt(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
464
464
  }
465
465
  get meta() {
466
466
  return this.options.meta;
467
467
  }
468
468
  get promise() {
469
- return this.#s?.promise;
469
+ return this.#a?.promise;
470
470
  }
471
471
  setOptions(e) {
472
472
  if (this.options = { ...this.#i, ...e }, this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
@@ -493,8 +493,8 @@ var Nr = class {
493
493
  this.#n({ type: "setState", state: e, setStateOptions: t });
494
494
  }
495
495
  cancel(e) {
496
- const t = this.#s?.promise;
497
- return this.#s?.cancel(e), t ? t.then(G).catch(G) : Promise.resolve();
496
+ const t = this.#a?.promise;
497
+ return this.#a?.cancel(e), t ? t.then(G).catch(G) : Promise.resolve();
498
498
  }
499
499
  destroy() {
500
500
  super.destroy(), this.cancel({ silent: !0 });
@@ -524,16 +524,16 @@ var Nr = class {
524
524
  return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !_r(this.state.dataUpdatedAt, e);
525
525
  }
526
526
  onFocus() {
527
- this.observers.find((t) => t.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#s?.continue();
527
+ this.observers.find((t) => t.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
528
528
  }
529
529
  onOnline() {
530
- this.observers.find((t) => t.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#s?.continue();
530
+ this.observers.find((t) => t.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
531
531
  }
532
532
  addObserver(e) {
533
533
  this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), this.#r.notify({ type: "observerAdded", query: this, observer: e }));
534
534
  }
535
535
  removeObserver(e) {
536
- this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#s && (this.#o ? this.#s.cancel({ revert: !0 }) : this.#s.cancelRetry()), this.scheduleGc()), this.#r.notify({ type: "observerRemoved", query: this, observer: e }));
536
+ this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#a && (this.#o ? this.#a.cancel({ revert: !0 }) : this.#a.cancelRetry()), this.scheduleGc()), this.#r.notify({ type: "observerRemoved", query: this, observer: e }));
537
537
  }
538
538
  getObserversCount() {
539
539
  return this.observers.length;
@@ -545,11 +545,11 @@ var Nr = class {
545
545
  if (this.state.fetchStatus !== "idle" && // If the promise in the retyer is already rejected, we have to definitely
546
546
  // re-start the fetch; there is a chance that the query is still in a
547
547
  // pending state when that happens
548
- this.#s?.status() !== "rejected") {
548
+ this.#a?.status() !== "rejected") {
549
549
  if (this.state.data !== void 0 && t?.cancelRefetch)
550
550
  this.cancel({ silent: !0 });
551
- else if (this.#s)
552
- return this.#s.continueRetry(), this.#s.promise;
551
+ else if (this.#a)
552
+ return this.#a.continueRetry(), this.#a.promise;
553
553
  }
554
554
  if (e && this.setOptions(e), !this.options.queryFn) {
555
555
  const o = this.observers.find((c) => c.options.queryFn);
@@ -566,7 +566,7 @@ var Nr = class {
566
566
  }, a = () => {
567
567
  const o = Rr(this.options, t), f = (() => {
568
568
  const d = {
569
- client: this.#a,
569
+ client: this.#s,
570
570
  queryKey: this.queryKey,
571
571
  meta: this.meta
572
572
  };
@@ -582,13 +582,13 @@ var Nr = class {
582
582
  fetchOptions: t,
583
583
  options: this.options,
584
584
  queryKey: this.queryKey,
585
- client: this.#a,
585
+ client: this.#s,
586
586
  state: this.state,
587
587
  fetchFn: a
588
588
  };
589
589
  return s(o), o;
590
590
  })();
591
- this.options.behavior?.onFetch(i, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== i.fetchOptions?.meta) && this.#n({ type: "fetch", meta: i.fetchOptions?.meta }), this.#s = Or({
591
+ this.options.behavior?.onFetch(i, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== i.fetchOptions?.meta) && this.#n({ type: "fetch", meta: i.fetchOptions?.meta }), this.#a = Or({
592
592
  initialPromise: t?.initialPromise,
593
593
  fn: i.fetchFn,
594
594
  onCancel: (o) => {
@@ -612,7 +612,7 @@ var Nr = class {
612
612
  canRun: () => !0
613
613
  });
614
614
  try {
615
- const o = await this.#s.start();
615
+ const o = await this.#a.start();
616
616
  if (o === void 0)
617
617
  throw process.env.NODE_ENV !== "production" && console.error(
618
618
  `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
@@ -625,7 +625,7 @@ var Nr = class {
625
625
  } catch (o) {
626
626
  if (o instanceof Ct) {
627
627
  if (o.silent)
628
- return this.#s.promise;
628
+ return this.#a.promise;
629
629
  if (o.revert) {
630
630
  if (this.state.data === void 0)
631
631
  throw o;
@@ -754,8 +754,8 @@ var Ws = class extends Oe {
754
754
  #e;
755
755
  #t = void 0;
756
756
  #r = void 0;
757
- #a = void 0;
758
- #s;
757
+ #s = void 0;
758
+ #a;
759
759
  #i;
760
760
  #o;
761
761
  #n;
@@ -817,10 +817,10 @@ var Ws = class extends Oe {
817
817
  }
818
818
  getOptimisticResult(e) {
819
819
  const t = this.#e.getQueryCache().build(this.#e, e), r = this.createResult(t, e);
820
- return js(this, r) && (this.#a = r, this.#i = this.options, this.#s = this.#t.state), r;
820
+ return js(this, r) && (this.#s = r, this.#i = this.options, this.#a = this.#t.state), r;
821
821
  }
822
822
  getCurrentResult() {
823
- return this.#a;
823
+ return this.#s;
824
824
  }
825
825
  trackResult(e, t) {
826
826
  return new Proxy(e, {
@@ -850,7 +850,7 @@ var Ws = class extends Oe {
850
850
  return this.#d({
851
851
  ...e,
852
852
  cancelRefetch: e.cancelRefetch ?? !0
853
- }).then(() => (this.updateResult(), this.#a));
853
+ }).then(() => (this.updateResult(), this.#s));
854
854
  }
855
855
  #d(e) {
856
856
  this.#v();
@@ -866,11 +866,11 @@ var Ws = class extends Oe {
866
866
  this.options.staleTime,
867
867
  this.#t
868
868
  );
869
- if (me || this.#a.isStale || !Tt(e))
869
+ if (me || this.#s.isStale || !Tt(e))
870
870
  return;
871
- const r = _r(this.#a.dataUpdatedAt, e) + 1;
871
+ const r = _r(this.#s.dataUpdatedAt, e) + 1;
872
872
  this.#l = fe.setTimeout(() => {
873
- this.#a.isStale || this.updateResult();
873
+ this.#s.isStale || this.updateResult();
874
874
  }, r);
875
875
  }
876
876
  #g() {
@@ -891,7 +891,7 @@ var Ws = class extends Oe {
891
891
  this.#u && (fe.clearInterval(this.#u), this.#u = void 0);
892
892
  }
893
893
  createResult(e, t) {
894
- const r = this.#t, s = this.options, a = this.#a, n = this.#s, i = this.#i, c = e !== r ? e.state : this.#r, { state: f } = e;
894
+ const r = this.#t, s = this.options, a = this.#s, n = this.#a, i = this.#i, c = e !== r ? e.state : this.#r, { state: f } = e;
895
895
  let d = { ...f }, u = !1, l;
896
896
  if (t._optimisticResults) {
897
897
  const v = this.hasListeners(), x = !v && er(e, t), _ = v && tr(e, r, t, s);
@@ -974,10 +974,10 @@ var Ws = class extends Oe {
974
974
  return C;
975
975
  }
976
976
  updateResult() {
977
- const e = this.#a, t = this.createResult(this.#t, this.options);
978
- if (this.#s = this.#t.state, this.#i = this.options, this.#s.data !== void 0 && (this.#f = this.#t), Ye(t, e))
977
+ const e = this.#s, t = this.createResult(this.#t, this.options);
978
+ if (this.#a = this.#t.state, this.#i = this.options, this.#a.data !== void 0 && (this.#f = this.#t), Ye(t, e))
979
979
  return;
980
- this.#a = t;
980
+ this.#s = t;
981
981
  const r = () => {
982
982
  if (!e)
983
983
  return !0;
@@ -987,9 +987,9 @@ var Ws = class extends Oe {
987
987
  const n = new Set(
988
988
  a ?? this.#m
989
989
  );
990
- return this.options.throwOnError && n.add("error"), Object.keys(this.#a).some((i) => {
990
+ return this.options.throwOnError && n.add("error"), Object.keys(this.#s).some((i) => {
991
991
  const o = i;
992
- return this.#a[o] !== e[o] && n.has(o);
992
+ return this.#s[o] !== e[o] && n.has(o);
993
993
  });
994
994
  };
995
995
  this.#T({ listeners: r() });
@@ -1007,7 +1007,7 @@ var Ws = class extends Oe {
1007
1007
  #T(e) {
1008
1008
  $.batch(() => {
1009
1009
  e.listeners && this.listeners.forEach((t) => {
1010
- t(this.#a);
1010
+ t(this.#s);
1011
1011
  }), this.#e.getQueryCache().notify({
1012
1012
  query: this.#t,
1013
1013
  type: "observerResultsUpdated"
@@ -1117,9 +1117,8 @@ var Js = class extends Nr {
1117
1117
  #e;
1118
1118
  #t;
1119
1119
  #r;
1120
- #a;
1121
1120
  constructor(e) {
1122
- super(), this.#e = e.client, this.mutationId = e.mutationId, this.#r = e.mutationCache, this.#t = [], this.state = e.state || $r(), this.setOptions(e.options), this.scheduleGc();
1121
+ super(), this.mutationId = e.mutationId, this.#t = e.mutationCache, this.#e = [], this.state = e.state || $r(), this.setOptions(e.options), this.scheduleGc();
1123
1122
  }
1124
1123
  setOptions(e) {
1125
1124
  this.options = e, this.updateGcTime(this.options.gcTime);
@@ -1128,38 +1127,34 @@ var Js = class extends Nr {
1128
1127
  return this.options.meta;
1129
1128
  }
1130
1129
  addObserver(e) {
1131
- this.#t.includes(e) || (this.#t.push(e), this.clearGcTimeout(), this.#r.notify({
1130
+ this.#e.includes(e) || (this.#e.push(e), this.clearGcTimeout(), this.#t.notify({
1132
1131
  type: "observerAdded",
1133
1132
  mutation: this,
1134
1133
  observer: e
1135
1134
  }));
1136
1135
  }
1137
1136
  removeObserver(e) {
1138
- this.#t = this.#t.filter((t) => t !== e), this.scheduleGc(), this.#r.notify({
1137
+ this.#e = this.#e.filter((t) => t !== e), this.scheduleGc(), this.#t.notify({
1139
1138
  type: "observerRemoved",
1140
1139
  mutation: this,
1141
1140
  observer: e
1142
1141
  });
1143
1142
  }
1144
1143
  optionalRemove() {
1145
- this.#t.length || (this.state.status === "pending" ? this.scheduleGc() : this.#r.remove(this));
1144
+ this.#e.length || (this.state.status === "pending" ? this.scheduleGc() : this.#t.remove(this));
1146
1145
  }
1147
1146
  continue() {
1148
- return this.#a?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
1147
+ return this.#r?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
1149
1148
  this.execute(this.state.variables);
1150
1149
  }
1151
1150
  async execute(e) {
1152
1151
  const t = () => {
1153
1152
  this.#s({ type: "continue" });
1154
- }, r = {
1155
- client: this.#e,
1156
- meta: this.options.meta,
1157
- mutationKey: this.options.mutationKey
1158
1153
  };
1159
- this.#a = Or({
1160
- fn: () => this.options.mutationFn ? this.options.mutationFn(e, r) : Promise.reject(new Error("No mutationFn found")),
1161
- onFail: (n, i) => {
1162
- this.#s({ type: "failed", failureCount: n, error: i });
1154
+ this.#r = Or({
1155
+ fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
1156
+ onFail: (a, n) => {
1157
+ this.#s({ type: "failed", failureCount: a, error: n });
1163
1158
  },
1164
1159
  onPause: () => {
1165
1160
  this.#s({ type: "pause" });
@@ -1168,87 +1163,66 @@ var Js = class extends Nr {
1168
1163
  retry: this.options.retry ?? 0,
1169
1164
  retryDelay: this.options.retryDelay,
1170
1165
  networkMode: this.options.networkMode,
1171
- canRun: () => this.#r.canRun(this)
1166
+ canRun: () => this.#t.canRun(this)
1172
1167
  });
1173
- const s = this.state.status === "pending", a = !this.#a.canStart();
1168
+ const r = this.state.status === "pending", s = !this.#r.canStart();
1174
1169
  try {
1175
- if (s)
1170
+ if (r)
1176
1171
  t();
1177
1172
  else {
1178
- this.#s({ type: "pending", variables: e, isPaused: a }), await this.#r.config.onMutate?.(
1173
+ this.#s({ type: "pending", variables: e, isPaused: s }), await this.#t.config.onMutate?.(
1179
1174
  e,
1180
- this,
1181
- r
1175
+ this
1182
1176
  );
1183
- const i = await this.options.onMutate?.(
1184
- e,
1185
- r
1186
- );
1187
- i !== this.state.context && this.#s({
1177
+ const n = await this.options.onMutate?.(e);
1178
+ n !== this.state.context && this.#s({
1188
1179
  type: "pending",
1189
- context: i,
1180
+ context: n,
1190
1181
  variables: e,
1191
- isPaused: a
1182
+ isPaused: s
1192
1183
  });
1193
1184
  }
1194
- const n = await this.#a.start();
1195
- return await this.#r.config.onSuccess?.(
1196
- n,
1197
- e,
1198
- this.state.context,
1199
- this,
1200
- r
1201
- ), await this.options.onSuccess?.(
1202
- n,
1185
+ const a = await this.#r.start();
1186
+ return await this.#t.config.onSuccess?.(
1187
+ a,
1203
1188
  e,
1204
1189
  this.state.context,
1205
- r
1206
- ), await this.#r.config.onSettled?.(
1207
- n,
1190
+ this
1191
+ ), await this.options.onSuccess?.(a, e, this.state.context), await this.#t.config.onSettled?.(
1192
+ a,
1208
1193
  null,
1209
1194
  this.state.variables,
1210
1195
  this.state.context,
1211
- this,
1212
- r
1213
- ), await this.options.onSettled?.(
1214
- n,
1215
- null,
1216
- e,
1217
- this.state.context,
1218
- r
1219
- ), this.#s({ type: "success", data: n }), n;
1220
- } catch (n) {
1196
+ this
1197
+ ), await this.options.onSettled?.(a, null, e, this.state.context), this.#s({ type: "success", data: a }), a;
1198
+ } catch (a) {
1221
1199
  try {
1222
- throw await this.#r.config.onError?.(
1223
- n,
1200
+ throw await this.#t.config.onError?.(
1201
+ a,
1224
1202
  e,
1225
1203
  this.state.context,
1226
- this,
1227
- r
1204
+ this
1228
1205
  ), await this.options.onError?.(
1229
- n,
1206
+ a,
1230
1207
  e,
1231
- this.state.context,
1232
- r
1233
- ), await this.#r.config.onSettled?.(
1208
+ this.state.context
1209
+ ), await this.#t.config.onSettled?.(
1234
1210
  void 0,
1235
- n,
1211
+ a,
1236
1212
  this.state.variables,
1237
1213
  this.state.context,
1238
- this,
1239
- r
1214
+ this
1240
1215
  ), await this.options.onSettled?.(
1241
1216
  void 0,
1242
- n,
1217
+ a,
1243
1218
  e,
1244
- this.state.context,
1245
- r
1246
- ), n;
1219
+ this.state.context
1220
+ ), a;
1247
1221
  } finally {
1248
- this.#s({ type: "error", error: n });
1222
+ this.#s({ type: "error", error: a });
1249
1223
  }
1250
1224
  } finally {
1251
- this.#r.runNext(this);
1225
+ this.#t.runNext(this);
1252
1226
  }
1253
1227
  }
1254
1228
  #s(e) {
@@ -1306,9 +1280,9 @@ var Js = class extends Nr {
1306
1280
  }
1307
1281
  };
1308
1282
  this.state = t(this.state), $.batch(() => {
1309
- this.#t.forEach((r) => {
1283
+ this.#e.forEach((r) => {
1310
1284
  r.onMutationUpdate(e);
1311
- }), this.#r.notify({
1285
+ }), this.#t.notify({
1312
1286
  mutation: this,
1313
1287
  type: "updated",
1314
1288
  action: e
@@ -1338,7 +1312,6 @@ var Qs = class extends Oe {
1338
1312
  #r;
1339
1313
  build(e, t, r) {
1340
1314
  const s = new Js({
1341
- client: e,
1342
1315
  mutationCache: this,
1343
1316
  mutationId: ++this.#r,
1344
1317
  options: e.defaultMutationOptions(t),
@@ -1425,9 +1398,9 @@ var Ys = class extends Oe {
1425
1398
  #e;
1426
1399
  #t = void 0;
1427
1400
  #r;
1428
- #a;
1401
+ #s;
1429
1402
  constructor(e, t) {
1430
- super(), this.#e = e, this.setOptions(t), this.bindMethods(), this.#s();
1403
+ super(), this.#e = e, this.setOptions(t), this.bindMethods(), this.#a();
1431
1404
  }
1432
1405
  bindMethods() {
1433
1406
  this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
@@ -1444,18 +1417,18 @@ var Ys = class extends Oe {
1444
1417
  this.hasListeners() || this.#r?.removeObserver(this);
1445
1418
  }
1446
1419
  onMutationUpdate(e) {
1447
- this.#s(), this.#i(e);
1420
+ this.#a(), this.#i(e);
1448
1421
  }
1449
1422
  getCurrentResult() {
1450
1423
  return this.#t;
1451
1424
  }
1452
1425
  reset() {
1453
- this.#r?.removeObserver(this), this.#r = void 0, this.#s(), this.#i();
1426
+ this.#r?.removeObserver(this), this.#r = void 0, this.#a(), this.#i();
1454
1427
  }
1455
1428
  mutate(e, t) {
1456
- return this.#a = t, this.#r?.removeObserver(this), this.#r = this.#e.getMutationCache().build(this.#e, this.options), this.#r.addObserver(this), this.#r.execute(e);
1429
+ return this.#s = t, this.#r?.removeObserver(this), this.#r = this.#e.getMutationCache().build(this.#e, this.options), this.#r.addObserver(this), this.#r.execute(e);
1457
1430
  }
1458
- #s() {
1431
+ #a() {
1459
1432
  const e = this.#r?.state ?? $r();
1460
1433
  this.#t = {
1461
1434
  ...e,
@@ -1469,34 +1442,13 @@ var Ys = class extends Oe {
1469
1442
  }
1470
1443
  #i(e) {
1471
1444
  $.batch(() => {
1472
- if (this.#a && this.hasListeners()) {
1473
- const t = this.#t.variables, r = this.#t.context, s = {
1474
- client: this.#e,
1475
- meta: this.options.meta,
1476
- mutationKey: this.options.mutationKey
1477
- };
1478
- e?.type === "success" ? (this.#a.onSuccess?.(
1479
- e.data,
1480
- t,
1481
- r,
1482
- s
1483
- ), this.#a.onSettled?.(
1484
- e.data,
1485
- null,
1486
- t,
1487
- r,
1488
- s
1489
- )) : e?.type === "error" && (this.#a.onError?.(
1490
- e.error,
1491
- t,
1492
- r,
1493
- s
1494
- ), this.#a.onSettled?.(
1445
+ if (this.#s && this.hasListeners()) {
1446
+ const t = this.#t.variables, r = this.#t.context;
1447
+ e?.type === "success" ? (this.#s.onSuccess?.(e.data, t, r), this.#s.onSettled?.(e.data, null, t, r)) : e?.type === "error" && (this.#s.onError?.(e.error, t, r), this.#s.onSettled?.(
1495
1448
  void 0,
1496
1449
  e.error,
1497
1450
  t,
1498
- r,
1499
- s
1451
+ r
1500
1452
  ));
1501
1453
  }
1502
1454
  this.listeners.forEach((t) => {
@@ -1579,13 +1531,13 @@ var Ys = class extends Oe {
1579
1531
  #e;
1580
1532
  #t;
1581
1533
  #r;
1582
- #a;
1583
1534
  #s;
1535
+ #a;
1584
1536
  #i;
1585
1537
  #o;
1586
1538
  #n;
1587
1539
  constructor(e = {}) {
1588
- this.#e = e.queryCache || new zs(), this.#t = e.mutationCache || new Qs(), this.#r = e.defaultOptions || {}, this.#a = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#i = 0;
1540
+ this.#e = e.queryCache || new zs(), this.#t = e.mutationCache || new Qs(), this.#r = e.defaultOptions || {}, this.#s = /* @__PURE__ */ new Map(), this.#a = /* @__PURE__ */ new Map(), this.#i = 0;
1589
1541
  }
1590
1542
  mount() {
1591
1543
  this.#i++, this.#i === 1 && (this.#o = Mt.subscribe(async (e) => {
@@ -1730,25 +1682,25 @@ var Ys = class extends Oe {
1730
1682
  this.#r = e;
1731
1683
  }
1732
1684
  setQueryDefaults(e, t) {
1733
- this.#a.set(pe(e), {
1685
+ this.#s.set(pe(e), {
1734
1686
  queryKey: e,
1735
1687
  defaultOptions: t
1736
1688
  });
1737
1689
  }
1738
1690
  getQueryDefaults(e) {
1739
- const t = [...this.#a.values()], r = {};
1691
+ const t = [...this.#s.values()], r = {};
1740
1692
  return t.forEach((s) => {
1741
1693
  xe(e, s.queryKey) && Object.assign(r, s.defaultOptions);
1742
1694
  }), r;
1743
1695
  }
1744
1696
  setMutationDefaults(e, t) {
1745
- this.#s.set(pe(e), {
1697
+ this.#a.set(pe(e), {
1746
1698
  mutationKey: e,
1747
1699
  defaultOptions: t
1748
1700
  });
1749
1701
  }
1750
1702
  getMutationDefaults(e) {
1751
- const t = [...this.#s.values()], r = {};
1703
+ const t = [...this.#a.values()], r = {};
1752
1704
  return t.forEach((s) => {
1753
1705
  xe(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
1754
1706
  }), r;
@@ -4843,7 +4795,7 @@ function gi(e, t) {
4843
4795
  }
4844
4796
  }, o = hi(e), c = BigInt(o.days);
4845
4797
  if (t.hideYearAndDays ? i(BigInt(c) * 24n + BigInt(o.hours), "hour", "h") : (t.hideYear ? i(c, "day", "d") : (i(c / 365n, "year", "y"), i(c % 365n, "day", "d")), i(Number(o.hours), "hour", "h")), i(Number(o.minutes), "minute", "m"), !t.hideSeconds)
4846
- if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3 && !t.subSecondsAsDecimals) {
4798
+ if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
4847
4799
  const d = Number(o.seconds), u = Number(o.milliseconds), l = Number(o.microseconds), m = Number(o.nanoseconds);
4848
4800
  if (i(d, "second", "s"), t.formatSubMilliseconds)
4849
4801
  i(u, "millisecond", "ms"), i(l, "microsecond", "µs"), i(m, "nanosecond", "ns");
@@ -6736,7 +6688,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, jc = "{{clipboard}}", P = "
6736
6688
  ] });
6737
6689
  }, ko = new URL(document.location.href).searchParams, vr = !!ko.get("debug") || !1, Oo = ks(() => import(
6738
6690
  /* webpackChunkName: "LazyApp" */
6739
- "./App.Dgi9EXuN.js"
6691
+ "./App.DT84WhDa.js"
6740
6692
  ).then((e) => e.App)), No = new Xs(), Tr = ({
6741
6693
  isComponent: e,
6742
6694
  headerHeight: t