@powerhousedao/connect 1.0.0-dev.212 → 1.0.0-dev.213

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 (57) hide show
  1. package/dist/.env +1 -0
  2. package/dist/assets/{app-B4copOtg.js → app-DiHFmipv.js} +838 -644
  3. package/dist/assets/{app-loader-B6zf9XDU.js → app-loader-CR-NiUOZ.js} +9 -7
  4. package/dist/assets/{browser-CZOApPej.js → browser-C10aMa50.js} +2937 -909
  5. package/dist/assets/{ccip-DSVOeeDo.js → ccip-DMxcOGc8.js} +5 -5
  6. package/dist/assets/{content-gm9A__42.js → content-BFPuAVvX.js} +168 -162
  7. package/dist/assets/{getEnsName-CH6-GxaA.js → getEnsName-08yGhvFP.js} +75 -55
  8. package/dist/assets/{index-BC1qgOnG.js → index-BSiq93_2.js} +3 -3
  9. package/dist/assets/{index-BcQMOuWz.js → index-C6RulKld.js} +3 -3
  10. package/dist/assets/{index-Dv_4E7Nh.js → index-J6o4darV.js} +88 -2732
  11. package/dist/assets/{isAddressEqual-D8xUWIQc.js → isAddressEqual-BZ4M2bfj.js} +1 -1
  12. package/dist/assets/{main.DUq7r3yO.js → main.GY5oyZm-.js} +1 -1
  13. package/dist/assets/{react-error-boundary.esm-CCUHjIRz.js → react-error-boundary.esm-C6q5J1bx.js} +10 -10
  14. package/dist/assets/{root-D_xEwT-n.js → root-BWz1808T.js} +7 -7
  15. package/dist/assets/{router-626xhE7A.js → router-DYMMZqez.js} +7 -7
  16. package/dist/icon.ico +0 -0
  17. package/dist/index.html +5 -4
  18. package/dist/modules/@powerhousedao/reactor-browser/{chunk-QP65GEDP.js → chunk-C5JXP4NO.js} +2 -2
  19. package/dist/modules/@powerhousedao/reactor-browser/{chunk-YAO66KBZ.js → chunk-FD4TUZZS.js} +353 -302
  20. package/dist/modules/@powerhousedao/reactor-browser/chunk-FD4TUZZS.js.map +7 -0
  21. package/dist/modules/@powerhousedao/reactor-browser/{chunk-VNJW3K7R.js → chunk-GJOMXDVW.js} +3 -3
  22. package/dist/modules/@powerhousedao/reactor-browser/chunk-GJOMXDVW.js.map +7 -0
  23. package/dist/modules/@powerhousedao/reactor-browser/{chunk-VHDG2FTR.js → chunk-GXLBC3KA.js} +2 -2
  24. package/dist/modules/@powerhousedao/reactor-browser/{chunk-NCCSZUHV.js → chunk-IDBZA52T.js} +2 -2
  25. package/dist/modules/@powerhousedao/reactor-browser/{chunk-ENCBIPGB.js → chunk-LCQV2CEG.js} +2 -2
  26. package/dist/modules/@powerhousedao/reactor-browser/{chunk-PRKHJCY6.js → chunk-OJYBFBSZ.js} +2 -2
  27. package/dist/modules/@powerhousedao/reactor-browser/{chunk-XDWKADEF.js → chunk-UTLXXWAE.js} +5 -5
  28. package/dist/modules/@powerhousedao/reactor-browser/{chunk-XDWKADEF.js.map → chunk-UTLXXWAE.js.map} +3 -3
  29. package/dist/modules/@powerhousedao/reactor-browser/{chunk-GYHJG3BX.js → chunk-WSWYH5W2.js} +2 -2
  30. package/dist/modules/@powerhousedao/reactor-browser/{chunk-L7DUL4YO.js → chunk-XNBBEHKQ.js} +3 -3
  31. package/dist/modules/@powerhousedao/reactor-browser/context/index.js +2 -2
  32. package/dist/modules/@powerhousedao/reactor-browser/context/read-mode.js +2 -2
  33. package/dist/modules/@powerhousedao/reactor-browser/hooks/document-state.js +87 -0
  34. package/dist/modules/@powerhousedao/reactor-browser/hooks/document-state.js.map +7 -0
  35. package/dist/modules/@powerhousedao/reactor-browser/hooks/index.js +8 -8
  36. package/dist/modules/@powerhousedao/reactor-browser/hooks/useAddDebouncedOperations.js +3 -3
  37. package/dist/modules/@powerhousedao/reactor-browser/hooks/useConnectCrypto.js +2 -2
  38. package/dist/modules/@powerhousedao/reactor-browser/hooks/useDocumentDrives.js +2 -2
  39. package/dist/modules/@powerhousedao/reactor-browser/hooks/useDocumentEditor.js +5 -5
  40. package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActions.js +2 -2
  41. package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActionsWithUiNodes.js +3 -3
  42. package/dist/modules/@powerhousedao/reactor-browser/index.js +10 -10
  43. package/dist/modules/@powerhousedao/reactor-browser/reactor.js +2 -2
  44. package/dist/swEnv.js +1 -0
  45. package/dist/vite-envs.sh +10 -1
  46. package/package.json +10 -10
  47. package/dist/modules/@powerhousedao/reactor-browser/chunk-VNJW3K7R.js.map +0 -7
  48. package/dist/modules/@powerhousedao/reactor-browser/chunk-YAO66KBZ.js.map +0 -7
  49. package/dist/modules/@powerhousedao/reactor-browser/hooks/useDocumentsState.js +0 -44
  50. package/dist/modules/@powerhousedao/reactor-browser/hooks/useDocumentsState.js.map +0 -7
  51. /package/dist/modules/@powerhousedao/reactor-browser/{chunk-QP65GEDP.js.map → chunk-C5JXP4NO.js.map} +0 -0
  52. /package/dist/modules/@powerhousedao/reactor-browser/{chunk-VHDG2FTR.js.map → chunk-GXLBC3KA.js.map} +0 -0
  53. /package/dist/modules/@powerhousedao/reactor-browser/{chunk-NCCSZUHV.js.map → chunk-IDBZA52T.js.map} +0 -0
  54. /package/dist/modules/@powerhousedao/reactor-browser/{chunk-ENCBIPGB.js.map → chunk-LCQV2CEG.js.map} +0 -0
  55. /package/dist/modules/@powerhousedao/reactor-browser/{chunk-PRKHJCY6.js.map → chunk-OJYBFBSZ.js.map} +0 -0
  56. /package/dist/modules/@powerhousedao/reactor-browser/{chunk-GYHJG3BX.js.map → chunk-WSWYH5W2.js.map} +0 -0
  57. /package/dist/modules/@powerhousedao/reactor-browser/{chunk-L7DUL4YO.js.map → chunk-XNBBEHKQ.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BcQMOuWz.js","assets/main.DUq7r3yO.js","assets/app-loader-B6zf9XDU.js","assets/app-loader-l6P2C9e2.css","assets/browser-CZOApPej.js","assets/getEnsName-CH6-GxaA.js","assets/isAddressEqual-D8xUWIQc.js","assets/router-626xhE7A.js","assets/PeopleFill-BxcdOZRn.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-C6RulKld.js","assets/main.GY5oyZm-.js","assets/app-loader-CR-NiUOZ.js","assets/app-loader-l6P2C9e2.css","assets/browser-C10aMa50.js","assets/getEnsName-08yGhvFP.js","assets/isAddressEqual-BZ4M2bfj.js","assets/router-DYMMZqez.js","assets/PeopleFill-BxcdOZRn.js"])))=>i.map(i=>d[i]);
2
2
  var __defProp = Object.defineProperty;
3
3
  var __typeError = (msg) => {
4
4
  throw TypeError(msg);
@@ -18,12 +18,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
18
18
  return __privateGet(obj, member, getter);
19
19
  }
20
20
  });
21
- var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _d, _queries, _e, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _f, _mutations, _scopes, _mutationId, _g, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _getDocumentModelModule, _drives, _ReadModeService_instances, parseGraphQLErrors_fn, fetchDrive_fn, _InternalTransmitter_instances, buildInternalOperationUpdate_fn, _i;
22
- import { _ as __vitePreload } from "./main.DUq7r3yO.js";
21
+ var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _d, _queries, _e, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _f, _mutations, _scopes, _mutationId, _g, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _getDocumentModelModule, _drives, _ReadModeService_instances, parseGraphQLErrors_fn, fetchDrive_fn, _InternalTransmitter_instances, buildInternalOperationUpdate_fn, _i;
22
+ import { _ as __vitePreload } from "./main.GY5oyZm-.js";
23
23
  import { jsx as jsx$1, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
24
- import { g as getDefaults, a as getI18n, o as o$3, s as s$4, n as n$4, L as L$1, c as connectConfig, l as logger$2, b as childLogger, d as serviceWorkerManager, p as packageJson, t as t$4 } from "./app-loader-B6zf9XDU.js";
24
+ import { g as getI18n, a as getDefaults, o as o$3, s as s$4, n as n$4, L as L$1, c as connectConfig, l as logger$2, b as childLogger, d as serviceWorkerManager, p as packageJson, t as t$4 } from "./app-loader-CR-NiUOZ.js";
25
25
  import * as React from "react";
26
- import React__default, { createElement, isValidElement, cloneElement, Children, createContext, useContext, useState, useRef, useEffect, useLayoutEffect, useCallback, useMemo, Suspense, lazy, forwardRef, Component, Fragment, useId as useId$1, useSyncExternalStore, useReducer, useDebugValue } from "react";
26
+ import React__default, { createElement, isValidElement, cloneElement, Children, createContext, useContext, useState, useRef, useEffect, useMemo, useLayoutEffect, useCallback, Suspense, lazy, forwardRef, Component, Fragment, useId as useId$1, useSyncExternalStore, useReducer, useDebugValue } from "react";
27
27
  import * as ReactDOM from "react-dom";
28
28
  import ReactDOM__default, { createPortal } from "react-dom";
29
29
  import { useUiNodesContext, UiNodesContextProvider } from "@powerhousedao/reactor-browser/hooks/useUiNodesContext";
@@ -3426,7 +3426,7 @@ function toPrimitive(t2, r2) {
3426
3426
  if ("object" != _typeof(t2) || !t2) return t2;
3427
3427
  var e2 = t2[Symbol.toPrimitive];
3428
3428
  if (void 0 !== e2) {
3429
- var i2 = e2.call(t2, r2 || "default");
3429
+ var i2 = e2.call(t2, r2);
3430
3430
  if ("object" != _typeof(i2)) return i2;
3431
3431
  throw new TypeError("@@toPrimitive must return a primitive value.");
3432
3432
  }
@@ -3579,7 +3579,7 @@ function _defineProperties(e2, r2) {
3579
3579
  }
3580
3580
  }
3581
3581
  function _createClass(e2, r2, t2) {
3582
- return _defineProperties(e2.prototype, r2), _defineProperties(e2, t2), Object.defineProperty(e2, "prototype", {
3582
+ return r2 && _defineProperties(e2.prototype, r2), t2 && _defineProperties(e2, t2), Object.defineProperty(e2, "prototype", {
3583
3583
  writable: false
3584
3584
  }), e2;
3585
3585
  }
@@ -5012,7 +5012,7 @@ var jsx = function jsx2(type, props) {
5012
5012
  var JSX;
5013
5013
  /* @__PURE__ */ (function(_JSX) {
5014
5014
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
5015
- })(jsx);
5015
+ })(jsx || (jsx = {}));
5016
5016
  function css() {
5017
5017
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5018
5018
  args[_key] = arguments[_key];
@@ -10468,11 +10468,11 @@ var SlotClone = React.forwardRef((props, forwardedRef) => {
10468
10468
  const { children, ...slotProps } = props;
10469
10469
  if (React.isValidElement(children)) {
10470
10470
  const childrenRef = getElementRef$1(children);
10471
- return React.cloneElement(children, {
10472
- ...mergeProps(slotProps, children.props),
10473
- // @ts-ignore
10474
- ref: forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef
10475
- });
10471
+ const props2 = mergeProps(slotProps, children.props);
10472
+ if (children.type !== React.Fragment) {
10473
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
10474
+ }
10475
+ return React.cloneElement(children, props2);
10476
10476
  }
10477
10477
  return React.Children.count(children) > 1 ? React.Children.only(null) : null;
10478
10478
  });
@@ -11063,7 +11063,7 @@ var count = 0;
11063
11063
  function useId(deterministicId) {
11064
11064
  const [id, setId] = React.useState(useReactId());
11065
11065
  useLayoutEffect2(() => {
11066
- if (!deterministicId) setId((reactId) => reactId ?? String(count++));
11066
+ setId((reactId) => reactId ?? String(count++));
11067
11067
  }, [deterministicId]);
11068
11068
  return deterministicId || (id ? `radix-${id}` : "");
11069
11069
  }
@@ -13819,7 +13819,7 @@ function b$5(r2) {
13819
13819
  )) })
13820
13820
  ] });
13821
13821
  }
13822
- const version$1 = "2.22.17";
13822
+ const version$1 = "2.23.6";
13823
13823
  let errorConfig = {
13824
13824
  getDocsUrl: ({ docsBaseUrl, docsPath = "", docsSlug }) => docsPath ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
13825
13825
  version: `viem@${version$1}`
@@ -15016,9 +15016,6 @@ function createBatchScheduler({ fn, id, shouldSplitBatch, wait: wait2 = 0, sort
15016
15016
  }
15017
15017
  };
15018
15018
  }
15019
- async function wait(time) {
15020
- return new Promise((res) => setTimeout(res, time));
15021
- }
15022
15019
  const promiseCache = /* @__PURE__ */ new LruMap(8192);
15023
15020
  function withDedupe(fn, { enabled = true, id }) {
15024
15021
  if (!enabled || !id)
@@ -15029,6 +15026,9 @@ function withDedupe(fn, { enabled = true, id }) {
15029
15026
  promiseCache.set(id, promise);
15030
15027
  return promise;
15031
15028
  }
15029
+ async function wait(time) {
15030
+ return new Promise((res) => setTimeout(res, time));
15031
+ }
15032
15032
  function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry: shouldRetry2 = () => true } = {}) {
15033
15033
  return new Promise((resolve, reject) => {
15034
15034
  const attemptRetry = async ({ count: count2 = 0 } = {}) => {
@@ -15309,7 +15309,7 @@ function getHttpRpcClient(url, options = {}) {
15309
15309
  }
15310
15310
  };
15311
15311
  }
15312
- const version = "2.16.3";
15312
+ const version = "2.16.5";
15313
15313
  const getVersion = () => `@wagmi/core@${version}`;
15314
15314
  var __classPrivateFieldGet$2 = function(receiver, state, kind, f2) {
15315
15315
  if (kind === "a" && !f2) throw new TypeError("Private accessor was defined without a getter");
@@ -15451,6 +15451,7 @@ function createTransport$1({ key, methods, name, request, retryCount = 3, retryD
15451
15451
  return {
15452
15452
  config: {
15453
15453
  key,
15454
+ methods,
15454
15455
  name,
15455
15456
  request,
15456
15457
  retryCount,
@@ -15471,7 +15472,7 @@ class UrlRequiredError extends BaseError {
15471
15472
  }
15472
15473
  }
15473
15474
  function http(url, config = {}) {
15474
- const { batch, fetchOptions, key = "http", methods, name = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay } = config;
15475
+ const { batch, fetchOptions, key = "http", methods, name = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config;
15475
15476
  return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
15476
15477
  const { batchSize = 1e3, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
15477
15478
  const retryCount = config.retryCount ?? retryCount_;
@@ -15508,6 +15509,8 @@ function http(url, config = {}) {
15508
15509
  })
15509
15510
  ];
15510
15511
  const [{ error, result }] = await fn(body);
15512
+ if (raw)
15513
+ return { error, result };
15511
15514
  if (error)
15512
15515
  throw new RpcRequestError({
15513
15516
  body,
@@ -16045,6 +16048,7 @@ const targetMap = {
16045
16048
  "isOneInchIOSWallet",
16046
16049
  "isOneInchAndroidWallet",
16047
16050
  "isOpera",
16051
+ "isPhantom",
16048
16052
  "isPortal",
16049
16053
  "isRabby",
16050
16054
  "isTokenPocket",
@@ -17779,6 +17783,7 @@ var Query = (_d = class extends Removable {
17779
17783
  __privateAdd(this, _initialState);
17780
17784
  __privateAdd(this, _revertState);
17781
17785
  __privateAdd(this, _cache);
17786
+ __privateAdd(this, _client);
17782
17787
  __privateAdd(this, _retryer);
17783
17788
  __privateAdd(this, _defaultOptions);
17784
17789
  __privateAdd(this, _abortSignalConsumed);
@@ -17786,7 +17791,8 @@ var Query = (_d = class extends Removable {
17786
17791
  __privateSet(this, _defaultOptions, config.defaultOptions);
17787
17792
  this.setOptions(config.options);
17788
17793
  this.observers = [];
17789
- __privateSet(this, _cache, config.cache);
17794
+ __privateSet(this, _client, config.client);
17795
+ __privateSet(this, _cache, __privateGet(this, _client).getQueryCache());
17790
17796
  this.queryKey = config.queryKey;
17791
17797
  this.queryHash = config.queryHash;
17792
17798
  __privateSet(this, _initialState, getDefaultState$1(this.options));
@@ -17936,6 +17942,7 @@ var Query = (_d = class extends Removable {
17936
17942
  const fetchFn = () => {
17937
17943
  const queryFn = ensureQueryFn(this.options, fetchOptions);
17938
17944
  const queryFnContext = {
17945
+ client: __privateGet(this, _client),
17939
17946
  queryKey: this.queryKey,
17940
17947
  meta: this.meta
17941
17948
  };
@@ -17954,6 +17961,7 @@ var Query = (_d = class extends Removable {
17954
17961
  fetchOptions,
17955
17962
  options: this.options,
17956
17963
  queryKey: this.queryKey,
17964
+ client: __privateGet(this, _client),
17957
17965
  state: this.state,
17958
17966
  fetchFn
17959
17967
  };
@@ -18031,7 +18039,7 @@ var Query = (_d = class extends Removable {
18031
18039
  }));
18032
18040
  return __privateGet(this, _retryer).start();
18033
18041
  }
18034
- }, _initialState = new WeakMap(), _revertState = new WeakMap(), _cache = new WeakMap(), _retryer = new WeakMap(), _defaultOptions = new WeakMap(), _abortSignalConsumed = new WeakMap(), _Query_instances = new WeakSet(), dispatch_fn = function(action) {
18042
+ }, _initialState = new WeakMap(), _revertState = new WeakMap(), _cache = new WeakMap(), _client = new WeakMap(), _retryer = new WeakMap(), _defaultOptions = new WeakMap(), _abortSignalConsumed = new WeakMap(), _Query_instances = new WeakSet(), dispatch_fn = function(action) {
18035
18043
  const reducer2 = (state) => {
18036
18044
  switch (action.type) {
18037
18045
  case "failed":
@@ -18149,7 +18157,7 @@ var QueryCache = (_e = class extends Subscribable {
18149
18157
  let query = this.get(queryHash);
18150
18158
  if (!query) {
18151
18159
  query = new Query({
18152
- cache: this,
18160
+ client,
18153
18161
  queryKey,
18154
18162
  queryHash,
18155
18163
  options: client.defaultQueryOptions(options),
@@ -18611,6 +18619,7 @@ function infiniteQueryBehavior(pages) {
18611
18619
  return Promise.resolve(data);
18612
18620
  }
18613
18621
  const queryFnContext = {
18622
+ client: context.client,
18614
18623
  queryKey: context.queryKey,
18615
18624
  pageParam: param,
18616
18625
  direction: previous ? "backward" : "forward",
@@ -18656,6 +18665,7 @@ function infiniteQueryBehavior(pages) {
18656
18665
  _a3,
18657
18666
  fetchFn,
18658
18667
  {
18668
+ client: context.client,
18659
18669
  queryKey: context.queryKey,
18660
18670
  meta: context.options.meta,
18661
18671
  signal: context.signal
@@ -18792,15 +18802,17 @@ var QueryClient = (_h = class {
18792
18802
  }
18793
18803
  resetQueries(filters, options) {
18794
18804
  const queryCache = __privateGet(this, _queryCache);
18795
- const refetchFilters = {
18796
- type: "active",
18797
- ...filters
18798
- };
18799
18805
  return notifyManager.batch(() => {
18800
18806
  queryCache.findAll(filters).forEach((query) => {
18801
18807
  query.reset();
18802
18808
  });
18803
- return this.refetchQueries(refetchFilters, options);
18809
+ return this.refetchQueries(
18810
+ {
18811
+ type: "active",
18812
+ ...filters
18813
+ },
18814
+ options
18815
+ );
18804
18816
  });
18805
18817
  }
18806
18818
  cancelQueries(filters, cancelOptions = {}) {
@@ -18818,11 +18830,13 @@ var QueryClient = (_h = class {
18818
18830
  if ((filters == null ? void 0 : filters.refetchType) === "none") {
18819
18831
  return Promise.resolve();
18820
18832
  }
18821
- const refetchFilters = {
18822
- ...filters,
18823
- type: (filters == null ? void 0 : filters.refetchType) ?? (filters == null ? void 0 : filters.type) ?? "active"
18824
- };
18825
- return this.refetchQueries(refetchFilters, options);
18833
+ return this.refetchQueries(
18834
+ {
18835
+ ...filters,
18836
+ type: (filters == null ? void 0 : filters.refetchType) ?? (filters == null ? void 0 : filters.type) ?? "active"
18837
+ },
18838
+ options
18839
+ );
18826
18840
  });
18827
18841
  }
18828
18842
  refetchQueries(filters, options = {}) {
@@ -18907,10 +18921,10 @@ var QueryClient = (_h = class {
18907
18921
  }
18908
18922
  getMutationDefaults(mutationKey) {
18909
18923
  const defaults2 = [...__privateGet(this, _mutationDefaults).values()];
18910
- let result = {};
18924
+ const result = {};
18911
18925
  defaults2.forEach((queryDefault) => {
18912
18926
  if (partialMatchKey(mutationKey, queryDefault.mutationKey)) {
18913
- result = { ...result, ...queryDefault.defaultOptions };
18927
+ Object.assign(result, queryDefault.defaultOptions);
18914
18928
  }
18915
18929
  });
18916
18930
  return result;
@@ -19120,7 +19134,7 @@ function useSubscribe(props) {
19120
19134
  }
19121
19135
  function useFormState(props) {
19122
19136
  const methods = useFormContext();
19123
- const { control = methods.control, disabled, name, exact } = props;
19137
+ const { control = methods.control, disabled, name, exact } = props || {};
19124
19138
  const [formState, updateFormState] = React__default.useState(control._formState);
19125
19139
  const _mounted = React__default.useRef(true);
19126
19140
  const _localProxyFormState = React__default.useRef({
@@ -19166,7 +19180,7 @@ var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) =>
19166
19180
  };
19167
19181
  function useWatch(props) {
19168
19182
  const methods = useFormContext();
19169
- const { control = methods.control, name, defaultValue, disabled, exact } = props;
19183
+ const { control = methods.control, name, defaultValue, disabled, exact } = props || {};
19170
19184
  const _name = React__default.useRef(name);
19171
19185
  _name.current = name;
19172
19186
  useSubscribe({
@@ -20991,16 +21005,16 @@ function _$1(s2) {
20991
21005
  t2().catch(console.error);
20992
21006
  async function t2() {
20993
21007
  try {
20994
- const { id: n2, name: V2 } = await S2(l2);
21008
+ const { id: a2, name: V2 } = await S2(l2);
20995
21009
  m2({
20996
- id: n2,
21010
+ id: a2,
20997
21011
  name: V2,
20998
21012
  sharingType: c2,
20999
21013
  location: L$1,
21000
21014
  availableOffline: true
21001
21015
  }), b2("availableOffline", true), f2(true), p2("");
21002
- } catch (n2) {
21003
- m2(void 0), f2(false), p2(n2.message);
21016
+ } catch (a2) {
21017
+ m2(void 0), f2(false), p2(a2.message);
21004
21018
  }
21005
21019
  }
21006
21020
  }, [l2, b2, c2]);
@@ -27067,6 +27081,77 @@ const h$2 = React__default.forwardRef(({ className: e2, ...a2 }, o2) => /* @__PU
27067
27081
  }
27068
27082
  ));
27069
27083
  h$2.displayName = Ve.Item.displayName;
27084
+ const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
27085
+ const cx = clsx;
27086
+ const cva = (base, config) => (props) => {
27087
+ var _config_compoundVariants;
27088
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
27089
+ const { variants, defaultVariants } = config;
27090
+ const getVariantClassNames = Object.keys(variants).map((variant) => {
27091
+ const variantProp = props === null || props === void 0 ? void 0 : props[variant];
27092
+ const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
27093
+ if (variantProp === null) return null;
27094
+ const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
27095
+ return variants[variant][variantKey];
27096
+ });
27097
+ const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
27098
+ let [key, value] = param;
27099
+ if (value === void 0) {
27100
+ return acc;
27101
+ }
27102
+ acc[key] = value;
27103
+ return acc;
27104
+ }, {});
27105
+ const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
27106
+ let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
27107
+ return Object.entries(compoundVariantOptions).every((param2) => {
27108
+ let [key, value] = param2;
27109
+ return Array.isArray(value) ? value.includes({
27110
+ ...defaultVariants,
27111
+ ...propsWithoutUndefined
27112
+ }[key]) : {
27113
+ ...defaultVariants,
27114
+ ...propsWithoutUndefined
27115
+ }[key] === value;
27116
+ }) ? [
27117
+ ...acc,
27118
+ cvClass,
27119
+ cvClassName
27120
+ ] : acc;
27121
+ }, []);
27122
+ return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
27123
+ };
27124
+ const u$3 = cva(
27125
+ n(
27126
+ "inline-flex items-center justify-center gap-2",
27127
+ "whitespace-nowrap rounded-md text-sm font-medium",
27128
+ "transition-colors",
27129
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
27130
+ "disabled:pointer-events-none",
27131
+ "[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
27132
+ ),
27133
+ {
27134
+ variants: {
27135
+ variant: {
27136
+ default: "",
27137
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
27138
+ ghost: "hover:bg-accent hover:text-accent-foreground"
27139
+ }
27140
+ },
27141
+ defaultVariants: {
27142
+ variant: "default"
27143
+ }
27144
+ }
27145
+ ), b$3 = React__default.forwardRef(
27146
+ ({ variant: e2, className: o2, asChild: n$12 = false, ...r2 }, i2) => /* @__PURE__ */ jsx$1(
27147
+ n$12 ? Slot : "button",
27148
+ {
27149
+ className: n(u$3({ variant: e2, className: o2 })),
27150
+ ref: i2,
27151
+ ...r2
27152
+ }
27153
+ )
27154
+ );
27070
27155
  var POPOVER_NAME = "Popover";
27071
27156
  var [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [
27072
27157
  createPopperScope
@@ -27541,10 +27626,10 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
27541
27626
  commandListRef: i2,
27542
27627
  multiple: h2,
27543
27628
  selectedValues: d2,
27544
- selectionIcon: n$12,
27545
- selectionIconPosition: g2,
27629
+ selectionIcon: g2,
27630
+ selectionIconPosition: n$12,
27546
27631
  options: k2 = [],
27547
- toggleAll: o2,
27632
+ toggleAll: u2,
27548
27633
  toggleOption: f2
27549
27634
  }) => {
27550
27635
  const m2 = k2.filter((r2) => !r2.disabled), x2 = k2.some((r2) => r2.icon), y2 = T$1((r2) => r2.search);
@@ -27566,7 +27651,7 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
27566
27651
  h$2,
27567
27652
  {
27568
27653
  value: "select-all",
27569
- onSelect: o2,
27654
+ onSelect: u2,
27570
27655
  disabled: false,
27571
27656
  className: n(
27572
27657
  "cursor-pointer",
@@ -27575,7 +27660,7 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
27575
27660
  role: "option",
27576
27661
  "aria-selected": d2.length === m2.length,
27577
27662
  children: /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center gap-2", children: [
27578
- n$12 === "auto" && /* @__PURE__ */ jsx$1(
27663
+ g2 === "auto" && /* @__PURE__ */ jsx$1(
27579
27664
  "div",
27580
27665
  {
27581
27666
  className: n(
@@ -27586,7 +27671,7 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
27586
27671
  children: d2.length === m2.length && /* @__PURE__ */ jsx$1(S$3, { name: "Checkmark", size: 16 })
27587
27672
  }
27588
27673
  ),
27589
- n$12 === "checkmark" && !(g2 === "right" && x2) && /* @__PURE__ */ jsx$1("div", { className: "size-4", children: g2 === "left" && d2.length === m2.length && /* @__PURE__ */ jsx$1(
27674
+ g2 === "checkmark" && !(n$12 === "right" && x2) && /* @__PURE__ */ jsx$1("div", { className: "size-4", children: n$12 === "left" && d2.length === m2.length && /* @__PURE__ */ jsx$1(
27590
27675
  S$3,
27591
27676
  {
27592
27677
  name: "Checkmark",
@@ -27595,7 +27680,7 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
27595
27680
  }
27596
27681
  ) }),
27597
27682
  /* @__PURE__ */ jsx$1("span", { className: "text-[14px] font-semibold leading-4 text-gray-900 dark:text-gray-50", children: d2.length === m2.length ? "Deselect All" : "Select All" }),
27598
- n$12 === "checkmark" && g2 === "right" && /* @__PURE__ */ jsx$1("div", { className: "ml-auto size-4", children: d2.length === m2.length && /* @__PURE__ */ jsx$1(
27683
+ g2 === "checkmark" && n$12 === "right" && /* @__PURE__ */ jsx$1("div", { className: "ml-auto size-4", children: d2.length === m2.length && /* @__PURE__ */ jsx$1(
27599
27684
  S$3,
27600
27685
  {
27601
27686
  name: "Checkmark",
@@ -27626,7 +27711,7 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
27626
27711
  role: "option",
27627
27712
  "aria-selected": l2,
27628
27713
  children: [
27629
- n$12 === "auto" && (h2 ? /* @__PURE__ */ jsx$1(
27714
+ g2 === "auto" && (h2 ? /* @__PURE__ */ jsx$1(
27630
27715
  "div",
27631
27716
  {
27632
27717
  className: n(
@@ -27647,7 +27732,7 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
27647
27732
  children: l2 && /* @__PURE__ */ jsx$1("div", { className: "absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full bg-gray-900 dark:bg-gray-400" })
27648
27733
  }
27649
27734
  )),
27650
- n$12 === "checkmark" && !(g2 === "right" && x2) && /* @__PURE__ */ jsx$1("div", { className: "size-4", children: g2 === "left" && l2 && /* @__PURE__ */ jsx$1(
27735
+ g2 === "checkmark" && !(n$12 === "right" && x2) && /* @__PURE__ */ jsx$1("div", { className: "size-4", children: n$12 === "left" && l2 && /* @__PURE__ */ jsx$1(
27651
27736
  S$3,
27652
27737
  {
27653
27738
  name: "Checkmark",
@@ -27667,7 +27752,7 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
27667
27752
  children: r2.label
27668
27753
  }
27669
27754
  ),
27670
- n$12 === "checkmark" && g2 === "right" && /* @__PURE__ */ jsx$1("div", { className: "size-4", children: l2 && /* @__PURE__ */ jsx$1(
27755
+ g2 === "checkmark" && n$12 === "right" && /* @__PURE__ */ jsx$1("div", { className: "size-4", children: l2 && /* @__PURE__ */ jsx$1(
27671
27756
  S$3,
27672
27757
  {
27673
27758
  name: "Checkmark",
@@ -27685,77 +27770,6 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
27685
27770
  ] })
27686
27771
  ] });
27687
27772
  };
27688
- const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
27689
- const cx = clsx;
27690
- const cva = (base, config) => (props) => {
27691
- var _config_compoundVariants;
27692
- if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
27693
- const { variants, defaultVariants } = config;
27694
- const getVariantClassNames = Object.keys(variants).map((variant) => {
27695
- const variantProp = props === null || props === void 0 ? void 0 : props[variant];
27696
- const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
27697
- if (variantProp === null) return null;
27698
- const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
27699
- return variants[variant][variantKey];
27700
- });
27701
- const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
27702
- let [key, value] = param;
27703
- if (value === void 0) {
27704
- return acc;
27705
- }
27706
- acc[key] = value;
27707
- return acc;
27708
- }, {});
27709
- const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
27710
- let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
27711
- return Object.entries(compoundVariantOptions).every((param2) => {
27712
- let [key, value] = param2;
27713
- return Array.isArray(value) ? value.includes({
27714
- ...defaultVariants,
27715
- ...propsWithoutUndefined
27716
- }[key]) : {
27717
- ...defaultVariants,
27718
- ...propsWithoutUndefined
27719
- }[key] === value;
27720
- }) ? [
27721
- ...acc,
27722
- cvClass,
27723
- cvClassName
27724
- ] : acc;
27725
- }, []);
27726
- return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
27727
- };
27728
- const u$3 = cva(
27729
- n(
27730
- "inline-flex items-center justify-center gap-2",
27731
- "whitespace-nowrap rounded-md text-sm font-medium",
27732
- "transition-colors",
27733
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
27734
- "disabled:pointer-events-none",
27735
- "[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
27736
- ),
27737
- {
27738
- variants: {
27739
- variant: {
27740
- default: "",
27741
- outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
27742
- ghost: "hover:bg-accent hover:text-accent-foreground"
27743
- }
27744
- },
27745
- defaultVariants: {
27746
- variant: "default"
27747
- }
27748
- }
27749
- ), b$3 = React__default.forwardRef(
27750
- ({ variant: e2, className: o2, asChild: n$12 = false, ...r2 }, i2) => /* @__PURE__ */ jsx$1(
27751
- n$12 ? Slot : "button",
27752
- {
27753
- className: n(u$3({ variant: e2, className: o2 })),
27754
- ref: i2,
27755
- ...r2
27756
- }
27757
- )
27758
- );
27759
27773
  const l$1 = ({ children: o2 }) => /* @__PURE__ */ jsx$1("div", { className: "flex flex-col gap-2", children: o2 });
27760
27774
  var [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [
27761
27775
  createPopperScope
@@ -28223,11 +28237,11 @@ var Root3 = Tooltip;
28223
28237
  var Trigger = TooltipTrigger;
28224
28238
  var Portal = TooltipPortal;
28225
28239
  var Content2 = TooltipContent;
28226
- const b$2 = React.forwardRef(({ children: e2, className: r2, ...t2 }, a2) => /* @__PURE__ */ jsx$1(
28240
+ const b$2 = React.forwardRef(({ children: e2, className: r2, ...o2 }, a2) => /* @__PURE__ */ jsx$1(
28227
28241
  Content2,
28228
28242
  {
28229
28243
  ref: a2,
28230
- ...t2,
28244
+ ...o2,
28231
28245
  className: n(
28232
28246
  // Base styles
28233
28247
  "z-50 overflow-hidden rounded-md text-sm",
@@ -28250,7 +28264,7 @@ const b$2 = React.forwardRef(({ children: e2, className: r2, ...t2 }, a2) => /*
28250
28264
  )), R$1 = ({
28251
28265
  content: e2,
28252
28266
  children: r2,
28253
- triggerAsChild: t2 = false,
28267
+ triggerAsChild: o2 = false,
28254
28268
  delayDuration: a2 = 0,
28255
28269
  ...d2
28256
28270
  }) => {
@@ -28266,8 +28280,8 @@ const b$2 = React.forwardRef(({ children: e2, className: r2, ...t2 }, a2) => /*
28266
28280
  /* @__PURE__ */ jsx$1(
28267
28281
  Trigger,
28268
28282
  {
28269
- asChild: t2,
28270
- type: t2 ? void 0 : "button",
28283
+ asChild: o2,
28284
+ type: o2 ? void 0 : "button",
28271
28285
  children: r2
28272
28286
  }
28273
28287
  ),
@@ -28403,11 +28417,11 @@ const B$1 = React__default.forwardRef(
28403
28417
  id: F,
28404
28418
  name: w2,
28405
28419
  label: c2,
28406
- required: f2,
28420
+ required: s2,
28407
28421
  disabled: d2,
28408
28422
  // validation props
28409
28423
  errors: i2 = [],
28410
- warnings: s2 = [],
28424
+ warnings: f2 = [],
28411
28425
  // behavior props
28412
28426
  multiple: t2,
28413
28427
  selectionIcon: x2 = "auto",
@@ -28446,7 +28460,7 @@ const B$1 = React__default.forwardRef(
28446
28460
  N$2,
28447
28461
  {
28448
28462
  htmlFor: h2,
28449
- required: f2,
28463
+ required: s2,
28450
28464
  disabled: d2,
28451
28465
  hasError: i2.length > 0,
28452
28466
  inline: false,
@@ -28469,7 +28483,7 @@ const B$1 = React__default.forwardRef(
28469
28483
  disabled: d2,
28470
28484
  "aria-invalid": i2.length > 0,
28471
28485
  "aria-label": c2 ? void 0 : t2 ? "Multi select" : "Select",
28472
- "aria-required": f2,
28486
+ "aria-required": s2,
28473
28487
  "aria-expanded": l2,
28474
28488
  className: n(
28475
28489
  "flex h-9 w-full items-center justify-between px-3 py-2",
@@ -28521,7 +28535,7 @@ const B$1 = React__default.forwardRef(
28521
28535
  ) })
28522
28536
  ] }),
28523
28537
  g2 && /* @__PURE__ */ jsx$1(p$3, { children: g2 }),
28524
- s2.length > 0 && /* @__PURE__ */ jsx$1(u$2, { messages: s2, type: "warning" }),
28538
+ f2.length > 0 && /* @__PURE__ */ jsx$1(u$2, { messages: f2, type: "warning" }),
28525
28539
  i2.length > 0 && /* @__PURE__ */ jsx$1(u$2, { messages: i2, type: "error" })
28526
28540
  ] });
28527
28541
  }
@@ -28580,14 +28594,14 @@ const t = n(
28580
28594
  }
28581
28595
  )
28582
28596
  );
28583
- const y$2 = (u2) => {
28584
- const { onInstall: l2, className: h2 } = u2, [s2, n2] = useState(""), [o2, c2] = useState(false), [e2, m2] = useState(), i2 = useCallback(() => {
28597
+ const y$2 = (h2) => {
28598
+ const { onInstall: l2, className: u2 } = h2, [s2, n2] = useState(""), [o2, c2] = useState(false), [e2, m2] = useState(), i2 = useCallback(() => {
28585
28599
  const t2 = l2(s2);
28586
28600
  t2 ? (c2(true), t2.then(() => n2("")).catch(m2).finally(() => c2(false))) : (n2(""), m2(void 0));
28587
28601
  }, [l2, s2]), f2 = useCallback((t2) => {
28588
28602
  n2(t2.target.value);
28589
28603
  }, []), p2 = e2 ? typeof e2 == "string" ? e2 : e2 instanceof Error ? e2.message : e2 : " ";
28590
- return /* @__PURE__ */ jsxs("div", { className: h2, children: [
28604
+ return /* @__PURE__ */ jsxs("div", { className: u2, children: [
28591
28605
  /* @__PURE__ */ jsx$1("h3", { className: "mb-4 font-semibold text-gray-900", children: "Install Package" }),
28592
28606
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
28593
28607
  /* @__PURE__ */ jsx$1(
@@ -31607,7 +31621,6 @@ function processSkipOperation(document2, action, customReducer, skipValue, reuse
31607
31621
  scopeState = resultingStateParser(lastRemainingOperation.resultingState);
31608
31622
  } else {
31609
31623
  const { state } = replayOperations(document2.initialState, documentOperations, customReducer, void 0, void 0, void 0, void 0, {
31610
- reuseHash: true,
31611
31624
  reuseOperationResultingState,
31612
31625
  operationResultingStateParser: resultingStateParser
31613
31626
  });
@@ -31634,7 +31647,6 @@ function processUndoOperation(document2, scope, customReducer, reuseOperationRes
31634
31647
  const clearedOperations = [...documentOperations[scope]];
31635
31648
  const diff = diffOperations(garbageCollect(sortedOperations), clearedOperations);
31636
31649
  const doc = replayOperations(document2.initialState, documentOperations, customReducer, void 0, void 0, void 0, void 0, {
31637
- reuseHash: true,
31638
31650
  reuseOperationResultingState,
31639
31651
  operationResultingStateParser: resultingStateParser
31640
31652
  });
@@ -36893,56 +36905,41 @@ function y(o2) {
36893
36905
  const { children: i2, wagmiProviderProps: e2, queryClientProviderProps: t2 } = o2, { config: n2 = m, ...m$12 } = e2 ?? {}, { client: c2 = P, ...l2 } = t2 ?? {};
36894
36906
  return /* @__PURE__ */ jsx$1(WagmiProvider, { config: n2, ...m$12, children: /* @__PURE__ */ jsx$1(QueryClientProvider, { client: c2, ...l2, children: i2 }) });
36895
36907
  }
36896
- let keyCount = 0;
36897
- function atom(read, write) {
36898
- const key = `atom${++keyCount}`;
36899
- const config = {
36900
- toString() {
36901
- return key;
36902
- }
36903
- };
36904
- if (typeof read === "function") {
36905
- config.read = read;
36906
- } else {
36907
- config.init = read;
36908
- config.read = defaultRead;
36909
- config.write = defaultWrite;
36910
- }
36911
- if (write) {
36912
- config.write = write;
36913
- }
36914
- return config;
36915
- }
36916
- function defaultRead(get2) {
36917
- return get2(this);
36918
- }
36919
- function defaultWrite(get2, set2, arg) {
36920
- return set2(
36921
- this,
36922
- typeof arg === "function" ? arg(get2(this)) : arg
36923
- );
36924
- }
36908
+ const __vite_import_meta_env__$3 = {};
36925
36909
  const isSelfAtom = (atom2, a2) => atom2.unstable_is ? atom2.unstable_is(a2) : a2 === atom2;
36926
36910
  const hasInitialValue = (atom2) => "init" in atom2;
36927
36911
  const isActuallyWritableAtom = (atom2) => !!atom2.write;
36928
- const cancelablePromiseMap = /* @__PURE__ */ new WeakMap();
36912
+ const isAtomStateInitialized = (atomState) => "v" in atomState || "e" in atomState;
36913
+ const returnAtomValue = (atomState) => {
36914
+ if ("e" in atomState) {
36915
+ throw atomState.e;
36916
+ }
36917
+ if ((__vite_import_meta_env__$3 ? "production" : void 0) !== "production" && !("v" in atomState)) {
36918
+ throw new Error("[Bug] atom state is not initialized");
36919
+ }
36920
+ return atomState.v;
36921
+ };
36922
+ const PROMISE_STATE = Symbol();
36923
+ const getPromiseState = (promise) => promise[PROMISE_STATE];
36929
36924
  const isPendingPromise = (value) => {
36930
36925
  var _a2;
36931
- return isPromiseLike$2(value) && !((_a2 = cancelablePromiseMap.get(value)) == null ? void 0 : _a2[1]);
36926
+ return isPromiseLike$2(value) && !((_a2 = getPromiseState(value)) == null ? void 0 : _a2[1]);
36932
36927
  };
36933
36928
  const cancelPromise = (promise, nextValue) => {
36934
- const promiseState = cancelablePromiseMap.get(promise);
36929
+ const promiseState = getPromiseState(promise);
36935
36930
  if (promiseState) {
36936
36931
  promiseState[1] = true;
36937
36932
  promiseState[0].forEach((fn) => fn(nextValue));
36933
+ } else if ((__vite_import_meta_env__$3 ? "production" : void 0) !== "production") {
36934
+ throw new Error("[Bug] cancelable promise not found");
36938
36935
  }
36939
36936
  };
36940
36937
  const patchPromiseForCancelability = (promise) => {
36941
- if (cancelablePromiseMap.has(promise)) {
36938
+ if (getPromiseState(promise)) {
36942
36939
  return;
36943
36940
  }
36944
36941
  const promiseState = [/* @__PURE__ */ new Set(), false];
36945
- cancelablePromiseMap.set(promise, promiseState);
36942
+ promise[PROMISE_STATE] = promiseState;
36946
36943
  const settle = () => {
36947
36944
  promiseState[1] = true;
36948
36945
  };
@@ -36952,13 +36949,6 @@ const patchPromiseForCancelability = (promise) => {
36952
36949
  };
36953
36950
  };
36954
36951
  const isPromiseLike$2 = (p2) => typeof (p2 == null ? void 0 : p2.then) === "function";
36955
- const isAtomStateInitialized = (atomState) => "v" in atomState || "e" in atomState;
36956
- const returnAtomValue = (atomState) => {
36957
- if ("e" in atomState) {
36958
- throw atomState.e;
36959
- }
36960
- return atomState.v;
36961
- };
36962
36952
  const addPendingPromiseToDependency = (atom2, promise, dependencyAtomState) => {
36963
36953
  if (!dependencyAtomState.p.has(atom2)) {
36964
36954
  dependencyAtomState.p.add(atom2);
@@ -36972,54 +36962,122 @@ const addPendingPromiseToDependency = (atom2, promise, dependencyAtomState) => {
36972
36962
  );
36973
36963
  }
36974
36964
  };
36975
- const addDependency = (atom2, atomState, a2, aState) => {
36965
+ const setAtomStateValueOrPromise = (atom2, valueOrPromise, ensureAtomState) => {
36966
+ const atomState = ensureAtomState(atom2);
36967
+ const hasPrevValue = "v" in atomState;
36968
+ const prevValue = atomState.v;
36969
+ const pendingPromise = isPendingPromise(atomState.v) ? atomState.v : null;
36970
+ if (isPromiseLike$2(valueOrPromise)) {
36971
+ patchPromiseForCancelability(valueOrPromise);
36972
+ for (const a2 of atomState.d.keys()) {
36973
+ addPendingPromiseToDependency(atom2, valueOrPromise, ensureAtomState(a2));
36974
+ }
36975
+ }
36976
+ atomState.v = valueOrPromise;
36977
+ delete atomState.e;
36978
+ if (!hasPrevValue || !Object.is(prevValue, atomState.v)) {
36979
+ ++atomState.n;
36980
+ if (pendingPromise) {
36981
+ cancelPromise(pendingPromise, valueOrPromise);
36982
+ }
36983
+ }
36984
+ };
36985
+ const getMountedOrPendingDependents = (atom2, atomState, mountedMap) => {
36976
36986
  var _a2;
36977
- atomState.d.set(a2, aState.n);
36978
- if (isPendingPromise(atomState.v)) {
36979
- addPendingPromiseToDependency(atom2, atomState.v, aState);
36987
+ const dependents = /* @__PURE__ */ new Set();
36988
+ for (const a2 of ((_a2 = mountedMap.get(atom2)) == null ? void 0 : _a2.t) || []) {
36989
+ if (mountedMap.has(a2)) {
36990
+ dependents.add(a2);
36991
+ }
36980
36992
  }
36981
- (_a2 = aState.m) == null ? void 0 : _a2.t.add(atom2);
36993
+ for (const atomWithPendingPromise of atomState.p) {
36994
+ dependents.add(atomWithPendingPromise);
36995
+ }
36996
+ return dependents;
36982
36997
  };
36983
- const INTERNAL_flushStoreHook = Symbol.for("JOTAI.EXPERIMENTAL.FLUSHSTOREHOOK");
36984
- const buildStore = (...storeArgs) => {
36985
- const [
36986
- getAtomState,
36987
- setAtomState,
36988
- atomRead,
36989
- atomWrite,
36990
- atomOnInit,
36991
- atomOnMount
36992
- ] = storeArgs;
36993
- const ensureAtomState = (atom2) => {
36994
- let atomState = getAtomState(atom2);
36998
+ const createStoreHook = () => {
36999
+ const callbacks = /* @__PURE__ */ new Set();
37000
+ const notify = () => {
37001
+ callbacks.forEach((fn) => fn());
37002
+ };
37003
+ notify.add = (fn) => {
37004
+ callbacks.add(fn);
37005
+ return () => {
37006
+ callbacks.delete(fn);
37007
+ };
37008
+ };
37009
+ return notify;
37010
+ };
37011
+ const createStoreHookForAtoms = () => {
37012
+ const all = {};
37013
+ const callbacks = /* @__PURE__ */ new WeakMap();
37014
+ const notify = (atom2) => {
37015
+ var _a2, _b2;
37016
+ (_a2 = callbacks.get(all)) == null ? void 0 : _a2.forEach((fn) => fn(atom2));
37017
+ (_b2 = callbacks.get(atom2)) == null ? void 0 : _b2.forEach((fn) => fn());
37018
+ };
37019
+ notify.add = (atom2, fn) => {
37020
+ const key = atom2 || all;
37021
+ const fns = (callbacks.has(key) ? callbacks : callbacks.set(key, /* @__PURE__ */ new Set())).get(key);
37022
+ fns.add(fn);
37023
+ return () => {
37024
+ fns == null ? void 0 : fns.delete(fn);
37025
+ if (!fns.size) {
37026
+ callbacks.delete(key);
37027
+ }
37028
+ };
37029
+ };
37030
+ return notify;
37031
+ };
37032
+ const initializeStoreHooks = (storeHooks) => {
37033
+ storeHooks.c || (storeHooks.c = createStoreHookForAtoms());
37034
+ storeHooks.m || (storeHooks.m = createStoreHookForAtoms());
37035
+ storeHooks.u || (storeHooks.u = createStoreHookForAtoms());
37036
+ storeHooks.f || (storeHooks.f = createStoreHook());
37037
+ return storeHooks;
37038
+ };
37039
+ const BUILDING_BLOCKS = Symbol();
37040
+ const buildStore = (atomStateMap = /* @__PURE__ */ new WeakMap(), mountedMap = /* @__PURE__ */ new WeakMap(), invalidatedAtoms = /* @__PURE__ */ new WeakMap(), changedAtoms = /* @__PURE__ */ new Set(), mountCallbacks = /* @__PURE__ */ new Set(), unmountCallbacks = /* @__PURE__ */ new Set(), storeHooks = {}, atomRead = (atom2, ...params) => atom2.read(...params), atomWrite = (atom2, ...params) => atom2.write(...params), atomOnInit = (atom2, store) => {
37041
+ var _a2;
37042
+ return (_a2 = atom2.unstable_onInit) == null ? void 0 : _a2.call(atom2, store);
37043
+ }, atomOnMount = (atom2, setAtom) => {
37044
+ var _a2;
37045
+ return (_a2 = atom2.onMount) == null ? void 0 : _a2.call(atom2, setAtom);
37046
+ }, ...buildingBlockFunctions) => {
37047
+ const ensureAtomState = buildingBlockFunctions[0] || ((atom2) => {
37048
+ if ((__vite_import_meta_env__$3 ? "production" : void 0) !== "production" && !atom2) {
37049
+ throw new Error("Atom is undefined or null");
37050
+ }
37051
+ let atomState = atomStateMap.get(atom2);
36995
37052
  if (!atomState) {
36996
37053
  atomState = { d: /* @__PURE__ */ new Map(), p: /* @__PURE__ */ new Set(), n: 0 };
36997
- setAtomState(atom2, atomState);
37054
+ atomStateMap.set(atom2, atomState);
36998
37055
  atomOnInit == null ? void 0 : atomOnInit(atom2, store);
36999
37056
  }
37000
37057
  return atomState;
37001
- };
37002
- const invalidatedAtoms = /* @__PURE__ */ new WeakMap();
37003
- const changedAtoms = /* @__PURE__ */ new Map();
37004
- const unmountCallbacks = /* @__PURE__ */ new Set();
37005
- const mountCallbacks = /* @__PURE__ */ new Set();
37006
- const flushCallbacks = () => {
37007
- var _a2;
37008
- const errors = [];
37058
+ });
37059
+ const flushCallbacks = buildingBlockFunctions[1] || (() => {
37060
+ let hasError;
37061
+ let error;
37009
37062
  const call = (fn) => {
37010
37063
  try {
37011
37064
  fn();
37012
37065
  } catch (e2) {
37013
- errors.push(e2);
37066
+ if (!hasError) {
37067
+ hasError = true;
37068
+ error = e2;
37069
+ }
37014
37070
  }
37015
37071
  };
37016
37072
  do {
37017
- (_a2 = store[INTERNAL_flushStoreHook]) == null ? void 0 : _a2.call(store);
37073
+ if (storeHooks.f) {
37074
+ call(storeHooks.f);
37075
+ }
37018
37076
  const callbacks = /* @__PURE__ */ new Set();
37019
37077
  const add = callbacks.add.bind(callbacks);
37020
- changedAtoms.forEach((atomState) => {
37021
- var _a22;
37022
- return (_a22 = atomState.m) == null ? void 0 : _a22.l.forEach(add);
37078
+ changedAtoms.forEach((atom2) => {
37079
+ var _a2;
37080
+ return (_a2 = mountedMap.get(atom2)) == null ? void 0 : _a2.l.forEach(add);
37023
37081
  });
37024
37082
  changedAtoms.clear();
37025
37083
  unmountCallbacks.forEach(add);
@@ -37031,36 +37089,60 @@ const buildStore = (...storeArgs) => {
37031
37089
  recomputeInvalidatedAtoms();
37032
37090
  }
37033
37091
  } while (changedAtoms.size || unmountCallbacks.size || mountCallbacks.size);
37034
- if (errors.length) {
37035
- throw errors[0];
37092
+ if (hasError) {
37093
+ throw error;
37036
37094
  }
37037
- };
37038
- const setAtomStateValueOrPromise = (atom2, atomState, valueOrPromise) => {
37039
- const hasPrevValue = "v" in atomState;
37040
- const prevValue = atomState.v;
37041
- const pendingPromise = isPendingPromise(atomState.v) ? atomState.v : null;
37042
- if (isPromiseLike$2(valueOrPromise)) {
37043
- patchPromiseForCancelability(valueOrPromise);
37044
- for (const a2 of atomState.d.keys()) {
37045
- addPendingPromiseToDependency(atom2, valueOrPromise, ensureAtomState(a2));
37095
+ });
37096
+ const recomputeInvalidatedAtoms = buildingBlockFunctions[2] || (() => {
37097
+ const topSortedReversed = [];
37098
+ const visiting = /* @__PURE__ */ new WeakSet();
37099
+ const visited = /* @__PURE__ */ new WeakSet();
37100
+ const stack = Array.from(changedAtoms);
37101
+ while (stack.length) {
37102
+ const a2 = stack[stack.length - 1];
37103
+ const aState = ensureAtomState(a2);
37104
+ if (visited.has(a2)) {
37105
+ stack.pop();
37106
+ continue;
37107
+ }
37108
+ if (visiting.has(a2)) {
37109
+ if (invalidatedAtoms.get(a2) === aState.n) {
37110
+ topSortedReversed.push([a2, aState]);
37111
+ } else if ((__vite_import_meta_env__$3 ? "production" : void 0) !== "production" && invalidatedAtoms.has(a2)) {
37112
+ throw new Error("[Bug] invalidated atom exists");
37113
+ }
37114
+ visited.add(a2);
37115
+ stack.pop();
37116
+ continue;
37117
+ }
37118
+ visiting.add(a2);
37119
+ for (const d2 of getMountedOrPendingDependents(a2, aState, mountedMap)) {
37120
+ if (!visiting.has(d2)) {
37121
+ stack.push(d2);
37122
+ }
37046
37123
  }
37047
- atomState.v = valueOrPromise;
37048
- } else {
37049
- atomState.v = valueOrPromise;
37050
37124
  }
37051
- delete atomState.e;
37052
- if (!hasPrevValue || !Object.is(prevValue, atomState.v)) {
37053
- ++atomState.n;
37054
- if (pendingPromise) {
37055
- cancelPromise(pendingPromise, valueOrPromise);
37125
+ for (let i2 = topSortedReversed.length - 1; i2 >= 0; --i2) {
37126
+ const [a2, aState] = topSortedReversed[i2];
37127
+ let hasChangedDeps = false;
37128
+ for (const dep of aState.d.keys()) {
37129
+ if (dep !== a2 && changedAtoms.has(dep)) {
37130
+ hasChangedDeps = true;
37131
+ break;
37132
+ }
37056
37133
  }
37134
+ if (hasChangedDeps) {
37135
+ readAtomState(a2);
37136
+ mountDependencies(a2);
37137
+ }
37138
+ invalidatedAtoms.delete(a2);
37057
37139
  }
37058
- };
37059
- const readAtomState = (atom2) => {
37060
- var _a2;
37140
+ });
37141
+ const readAtomState = buildingBlockFunctions[3] || ((atom2) => {
37142
+ var _a2, _b2;
37061
37143
  const atomState = ensureAtomState(atom2);
37062
37144
  if (isAtomStateInitialized(atomState)) {
37063
- if (atomState.m && invalidatedAtoms.get(atom2) !== atomState.n) {
37145
+ if (mountedMap.has(atom2) && invalidatedAtoms.get(atom2) !== atomState.n) {
37064
37146
  return atomState;
37065
37147
  }
37066
37148
  if (Array.from(atomState.d).every(
@@ -37076,18 +37158,19 @@ const buildStore = (...storeArgs) => {
37076
37158
  atomState.d.clear();
37077
37159
  let isSync = true;
37078
37160
  const mountDependenciesIfAsync = () => {
37079
- if (atomState.m) {
37080
- mountDependencies(atom2, atomState);
37161
+ if (mountedMap.has(atom2)) {
37162
+ mountDependencies(atom2);
37081
37163
  recomputeInvalidatedAtoms();
37082
37164
  flushCallbacks();
37083
37165
  }
37084
37166
  };
37085
37167
  const getter = (a2) => {
37168
+ var _a22;
37086
37169
  if (isSelfAtom(atom2, a2)) {
37087
37170
  const aState2 = ensureAtomState(a2);
37088
37171
  if (!isAtomStateInitialized(aState2)) {
37089
37172
  if (hasInitialValue(a2)) {
37090
- setAtomStateValueOrPromise(a2, aState2, a2.init);
37173
+ setAtomStateValueOrPromise(a2, a2.init, ensureAtomState);
37091
37174
  } else {
37092
37175
  throw new Error("no atom init");
37093
37176
  }
@@ -37098,7 +37181,11 @@ const buildStore = (...storeArgs) => {
37098
37181
  try {
37099
37182
  return returnAtomValue(aState);
37100
37183
  } finally {
37101
- addDependency(atom2, atomState, a2, aState);
37184
+ atomState.d.set(a2, aState.n);
37185
+ if (isPendingPromise(atomState.v)) {
37186
+ addPendingPromiseToDependency(atom2, atomState.v, aState);
37187
+ }
37188
+ (_a22 = mountedMap.get(a2)) == null ? void 0 : _a22.t.add(atom2);
37102
37189
  if (!isSync) {
37103
37190
  mountDependenciesIfAsync();
37104
37191
  }
@@ -37114,22 +37201,37 @@ const buildStore = (...storeArgs) => {
37114
37201
  return controller.signal;
37115
37202
  },
37116
37203
  get setSelf() {
37204
+ if ((__vite_import_meta_env__$3 ? "production" : void 0) !== "production" && !isActuallyWritableAtom(atom2)) {
37205
+ console.warn("setSelf function cannot be used with read-only atom");
37206
+ }
37117
37207
  if (!setSelf && isActuallyWritableAtom(atom2)) {
37118
37208
  setSelf = (...args) => {
37209
+ if ((__vite_import_meta_env__$3 ? "production" : void 0) !== "production" && isSync) {
37210
+ console.warn("setSelf function cannot be called in sync");
37211
+ }
37119
37212
  if (!isSync) {
37120
- return writeAtom(atom2, ...args);
37213
+ try {
37214
+ return writeAtomState(atom2, ...args);
37215
+ } finally {
37216
+ recomputeInvalidatedAtoms();
37217
+ flushCallbacks();
37218
+ }
37121
37219
  }
37122
37220
  };
37123
37221
  }
37124
37222
  return setSelf;
37125
37223
  }
37126
37224
  };
37225
+ const prevEpochNumber = atomState.n;
37127
37226
  try {
37128
37227
  const valueOrPromise = atomRead(atom2, getter, options);
37129
- setAtomStateValueOrPromise(atom2, atomState, valueOrPromise);
37228
+ setAtomStateValueOrPromise(atom2, valueOrPromise, ensureAtomState);
37130
37229
  if (isPromiseLike$2(valueOrPromise)) {
37131
37230
  (_a2 = valueOrPromise.onCancel) == null ? void 0 : _a2.call(valueOrPromise, () => controller == null ? void 0 : controller.abort());
37132
- valueOrPromise.then(mountDependenciesIfAsync, mountDependenciesIfAsync);
37231
+ valueOrPromise.then(
37232
+ mountDependenciesIfAsync,
37233
+ mountDependenciesIfAsync
37234
+ );
37133
37235
  }
37134
37236
  return atomState;
37135
37237
  } catch (error) {
@@ -37139,89 +37241,26 @@ const buildStore = (...storeArgs) => {
37139
37241
  return atomState;
37140
37242
  } finally {
37141
37243
  isSync = false;
37142
- }
37143
- };
37144
- const readAtom = (atom2) => returnAtomValue(readAtomState(atom2));
37145
- const getMountedOrPendingDependents = (atomState) => {
37146
- var _a2;
37147
- const dependents = /* @__PURE__ */ new Map();
37148
- for (const a2 of ((_a2 = atomState.m) == null ? void 0 : _a2.t) || []) {
37149
- const aState = ensureAtomState(a2);
37150
- if (aState.m) {
37151
- dependents.set(a2, aState);
37244
+ if (prevEpochNumber !== atomState.n && invalidatedAtoms.get(atom2) === prevEpochNumber) {
37245
+ invalidatedAtoms.set(atom2, atomState.n);
37246
+ changedAtoms.add(atom2);
37247
+ (_b2 = storeHooks.c) == null ? void 0 : _b2.call(storeHooks, atom2);
37152
37248
  }
37153
37249
  }
37154
- for (const atomWithPendingPromise of atomState.p) {
37155
- dependents.set(
37156
- atomWithPendingPromise,
37157
- ensureAtomState(atomWithPendingPromise)
37158
- );
37159
- }
37160
- return dependents;
37161
- };
37162
- const invalidateDependents = (atomState) => {
37163
- const stack = [atomState];
37164
- while (stack.length) {
37165
- const aState = stack.pop();
37166
- for (const [d2, s2] of getMountedOrPendingDependents(aState)) {
37167
- if (!invalidatedAtoms.has(d2)) {
37168
- invalidatedAtoms.set(d2, s2.n);
37169
- stack.push(s2);
37170
- }
37171
- }
37172
- }
37173
- };
37174
- const recomputeInvalidatedAtoms = () => {
37175
- var _a2;
37176
- const topSortedReversed = [];
37177
- const visiting = /* @__PURE__ */ new WeakSet();
37178
- const visited = /* @__PURE__ */ new WeakSet();
37179
- const stack = Array.from(changedAtoms);
37250
+ });
37251
+ const invalidateDependents = buildingBlockFunctions[4] || ((atom2) => {
37252
+ const stack = [atom2];
37180
37253
  while (stack.length) {
37181
- const [a2, aState] = stack[stack.length - 1];
37182
- if (visited.has(a2)) {
37183
- stack.pop();
37184
- continue;
37185
- }
37186
- if (visiting.has(a2)) {
37187
- if (invalidatedAtoms.get(a2) === aState.n) {
37188
- topSortedReversed.push([a2, aState, aState.n]);
37189
- } else {
37190
- invalidatedAtoms.delete(a2);
37191
- changedAtoms.set(a2, aState);
37192
- }
37193
- visited.add(a2);
37194
- stack.pop();
37195
- continue;
37196
- }
37197
- visiting.add(a2);
37198
- for (const [d2, s2] of getMountedOrPendingDependents(aState)) {
37199
- if (!visiting.has(d2)) {
37200
- stack.push([d2, s2]);
37201
- }
37202
- }
37203
- }
37204
- for (let i2 = topSortedReversed.length - 1; i2 >= 0; --i2) {
37205
- const [a2, aState, prevEpochNumber] = topSortedReversed[i2];
37206
- let hasChangedDeps = false;
37207
- for (const dep of aState.d.keys()) {
37208
- if (dep !== a2 && changedAtoms.has(dep)) {
37209
- hasChangedDeps = true;
37210
- break;
37211
- }
37212
- }
37213
- if (hasChangedDeps) {
37214
- readAtomState(a2);
37215
- mountDependencies(a2, aState);
37216
- if (prevEpochNumber !== aState.n) {
37217
- changedAtoms.set(a2, aState);
37218
- (_a2 = aState.u) == null ? void 0 : _a2.call(aState);
37219
- }
37254
+ const a2 = stack.pop();
37255
+ const aState = ensureAtomState(a2);
37256
+ for (const d2 of getMountedOrPendingDependents(a2, aState, mountedMap)) {
37257
+ const dState = ensureAtomState(d2);
37258
+ invalidatedAtoms.set(d2, dState.n);
37259
+ stack.push(d2);
37220
37260
  }
37221
- invalidatedAtoms.delete(a2);
37222
37261
  }
37223
- };
37224
- const writeAtomState = (atom2, ...args) => {
37262
+ });
37263
+ const writeAtomState = buildingBlockFunctions[5] || ((atom2, ...args) => {
37225
37264
  let isSync = true;
37226
37265
  const getter = (a2) => returnAtomValue(readAtomState(a2));
37227
37266
  const setter = (a2, ...args2) => {
@@ -37234,12 +37273,12 @@ const buildStore = (...storeArgs) => {
37234
37273
  }
37235
37274
  const prevEpochNumber = aState.n;
37236
37275
  const v2 = args2[0];
37237
- setAtomStateValueOrPromise(a2, aState, v2);
37238
- mountDependencies(a2, aState);
37276
+ setAtomStateValueOrPromise(a2, v2, ensureAtomState);
37277
+ mountDependencies(a2);
37239
37278
  if (prevEpochNumber !== aState.n) {
37240
- changedAtoms.set(a2, aState);
37241
- (_a2 = aState.u) == null ? void 0 : _a2.call(aState);
37242
- invalidateDependents(aState);
37279
+ changedAtoms.add(a2);
37280
+ (_a2 = storeHooks.c) == null ? void 0 : _a2.call(storeHooks, a2);
37281
+ invalidateDependents(a2);
37243
37282
  }
37244
37283
  return void 0;
37245
37284
  } else {
@@ -37257,56 +37296,52 @@ const buildStore = (...storeArgs) => {
37257
37296
  } finally {
37258
37297
  isSync = false;
37259
37298
  }
37260
- };
37261
- const writeAtom = (atom2, ...args) => {
37262
- try {
37263
- return writeAtomState(atom2, ...args);
37264
- } finally {
37265
- recomputeInvalidatedAtoms();
37266
- flushCallbacks();
37267
- }
37268
- };
37269
- const mountDependencies = (atom2, atomState) => {
37299
+ });
37300
+ const mountDependencies = buildingBlockFunctions[6] || ((atom2) => {
37270
37301
  var _a2;
37271
- if (atomState.m && !isPendingPromise(atomState.v)) {
37302
+ const atomState = ensureAtomState(atom2);
37303
+ const mounted = mountedMap.get(atom2);
37304
+ if (mounted && !isPendingPromise(atomState.v)) {
37272
37305
  for (const [a2, n2] of atomState.d) {
37273
- if (!atomState.m.d.has(a2)) {
37306
+ if (!mounted.d.has(a2)) {
37274
37307
  const aState = ensureAtomState(a2);
37275
- const aMounted = mountAtom(a2, aState);
37308
+ const aMounted = mountAtom(a2);
37276
37309
  aMounted.t.add(atom2);
37277
- atomState.m.d.add(a2);
37310
+ mounted.d.add(a2);
37278
37311
  if (n2 !== aState.n) {
37279
- changedAtoms.set(a2, aState);
37280
- (_a2 = aState.u) == null ? void 0 : _a2.call(aState);
37281
- invalidateDependents(aState);
37312
+ changedAtoms.add(a2);
37313
+ (_a2 = storeHooks.c) == null ? void 0 : _a2.call(storeHooks, a2);
37314
+ invalidateDependents(a2);
37282
37315
  }
37283
37316
  }
37284
37317
  }
37285
- for (const a2 of atomState.m.d || []) {
37318
+ for (const a2 of mounted.d || []) {
37286
37319
  if (!atomState.d.has(a2)) {
37287
- atomState.m.d.delete(a2);
37288
- const aMounted = unmountAtom(a2, ensureAtomState(a2));
37320
+ mounted.d.delete(a2);
37321
+ const aMounted = unmountAtom(a2);
37289
37322
  aMounted == null ? void 0 : aMounted.t.delete(atom2);
37290
37323
  }
37291
37324
  }
37292
37325
  }
37293
- };
37294
- const mountAtom = (atom2, atomState) => {
37326
+ });
37327
+ const mountAtom = buildingBlockFunctions[7] || ((atom2) => {
37295
37328
  var _a2;
37296
- if (!atomState.m) {
37329
+ const atomState = ensureAtomState(atom2);
37330
+ let mounted = mountedMap.get(atom2);
37331
+ if (!mounted) {
37297
37332
  readAtomState(atom2);
37298
37333
  for (const a2 of atomState.d.keys()) {
37299
- const aMounted = mountAtom(a2, ensureAtomState(a2));
37334
+ const aMounted = mountAtom(a2);
37300
37335
  aMounted.t.add(atom2);
37301
37336
  }
37302
- atomState.m = {
37337
+ mounted = {
37303
37338
  l: /* @__PURE__ */ new Set(),
37304
37339
  d: new Set(atomState.d.keys()),
37305
37340
  t: /* @__PURE__ */ new Set()
37306
37341
  };
37307
- (_a2 = atomState.h) == null ? void 0 : _a2.call(atomState);
37342
+ mountedMap.set(atom2, mounted);
37343
+ (_a2 = storeHooks.m) == null ? void 0 : _a2.call(storeHooks, atom2);
37308
37344
  if (isActuallyWritableAtom(atom2)) {
37309
- const mounted = atomState.m;
37310
37345
  const processOnMount = () => {
37311
37346
  let isSync = true;
37312
37347
  const setAtom = (...args) => {
@@ -37338,74 +37373,192 @@ const buildStore = (...storeArgs) => {
37338
37373
  mountCallbacks.add(processOnMount);
37339
37374
  }
37340
37375
  }
37341
- return atomState.m;
37342
- };
37343
- const unmountAtom = (atom2, atomState) => {
37376
+ return mounted;
37377
+ });
37378
+ const unmountAtom = buildingBlockFunctions[8] || ((atom2) => {
37344
37379
  var _a2;
37345
- if (atomState.m && !atomState.m.l.size && !Array.from(atomState.m.t).some((a2) => {
37380
+ const atomState = ensureAtomState(atom2);
37381
+ let mounted = mountedMap.get(atom2);
37382
+ if (mounted && !mounted.l.size && !Array.from(mounted.t).some((a2) => {
37346
37383
  var _a22;
37347
- return (_a22 = ensureAtomState(a2).m) == null ? void 0 : _a22.d.has(atom2);
37384
+ return (_a22 = mountedMap.get(a2)) == null ? void 0 : _a22.d.has(atom2);
37348
37385
  })) {
37349
- const onUnmount = atomState.m.u;
37350
- if (onUnmount) {
37351
- unmountCallbacks.add(onUnmount);
37386
+ if (mounted.u) {
37387
+ unmountCallbacks.add(mounted.u);
37352
37388
  }
37353
- delete atomState.m;
37354
- (_a2 = atomState.h) == null ? void 0 : _a2.call(atomState);
37389
+ mounted = void 0;
37390
+ mountedMap.delete(atom2);
37391
+ (_a2 = storeHooks.u) == null ? void 0 : _a2.call(storeHooks, atom2);
37355
37392
  for (const a2 of atomState.d.keys()) {
37356
- const aMounted = unmountAtom(a2, ensureAtomState(a2));
37393
+ const aMounted = unmountAtom(a2);
37357
37394
  aMounted == null ? void 0 : aMounted.t.delete(atom2);
37358
37395
  }
37359
37396
  return void 0;
37360
37397
  }
37361
- return atomState.m;
37362
- };
37363
- const subscribeAtom = (atom2, listener) => {
37364
- const atomState = ensureAtomState(atom2);
37365
- const mounted = mountAtom(atom2, atomState);
37366
- const listeners = mounted.l;
37367
- listeners.add(listener);
37368
- flushCallbacks();
37369
- return () => {
37370
- listeners.delete(listener);
37371
- unmountAtom(atom2, atomState);
37372
- flushCallbacks();
37373
- };
37374
- };
37375
- const unstable_derive = (fn) => buildStore(...fn(...storeArgs));
37398
+ return mounted;
37399
+ });
37400
+ const buildingBlocks = [
37401
+ // store state
37402
+ atomStateMap,
37403
+ mountedMap,
37404
+ invalidatedAtoms,
37405
+ changedAtoms,
37406
+ mountCallbacks,
37407
+ unmountCallbacks,
37408
+ storeHooks,
37409
+ // atom intercepters
37410
+ atomRead,
37411
+ atomWrite,
37412
+ atomOnInit,
37413
+ atomOnMount,
37414
+ // building-block functions
37415
+ ensureAtomState,
37416
+ flushCallbacks,
37417
+ recomputeInvalidatedAtoms,
37418
+ readAtomState,
37419
+ invalidateDependents,
37420
+ writeAtomState,
37421
+ mountDependencies,
37422
+ mountAtom,
37423
+ unmountAtom
37424
+ ];
37376
37425
  const store = {
37377
- get: readAtom,
37378
- set: writeAtom,
37379
- sub: subscribeAtom,
37380
- unstable_derive
37426
+ get: (atom2) => returnAtomValue(readAtomState(atom2)),
37427
+ set: (atom2, ...args) => {
37428
+ try {
37429
+ return writeAtomState(atom2, ...args);
37430
+ } finally {
37431
+ recomputeInvalidatedAtoms();
37432
+ flushCallbacks();
37433
+ }
37434
+ },
37435
+ sub: (atom2, listener) => {
37436
+ const mounted = mountAtom(atom2);
37437
+ const listeners = mounted.l;
37438
+ listeners.add(listener);
37439
+ flushCallbacks();
37440
+ return () => {
37441
+ listeners.delete(listener);
37442
+ unmountAtom(atom2);
37443
+ flushCallbacks();
37444
+ };
37445
+ }
37381
37446
  };
37447
+ Object.defineProperty(store, BUILDING_BLOCKS, { value: buildingBlocks });
37382
37448
  return store;
37383
37449
  };
37384
- const createStore = () => {
37450
+ const INTERNAL_buildStoreRev1 = buildStore;
37451
+ const INTERNAL_initializeStoreHooks = initializeStoreHooks;
37452
+ const __vite_import_meta_env__$2 = {};
37453
+ let keyCount = 0;
37454
+ function atom(read, write) {
37455
+ const key = `atom${++keyCount}`;
37456
+ const config = {
37457
+ toString() {
37458
+ return (__vite_import_meta_env__$2 ? "production" : void 0) !== "production" && this.debugLabel ? key + ":" + this.debugLabel : key;
37459
+ }
37460
+ };
37461
+ if (typeof read === "function") {
37462
+ config.read = read;
37463
+ } else {
37464
+ config.init = read;
37465
+ config.read = defaultRead;
37466
+ config.write = defaultWrite;
37467
+ }
37468
+ if (write) {
37469
+ config.write = write;
37470
+ }
37471
+ return config;
37472
+ }
37473
+ function defaultRead(get2) {
37474
+ return get2(this);
37475
+ }
37476
+ function defaultWrite(get2, set2, arg) {
37477
+ return set2(
37478
+ this,
37479
+ typeof arg === "function" ? arg(get2(this)) : arg
37480
+ );
37481
+ }
37482
+ const createDevStoreRev4 = () => {
37483
+ let inRestoreAtom = 0;
37484
+ const storeHooks = INTERNAL_initializeStoreHooks({});
37385
37485
  const atomStateMap = /* @__PURE__ */ new WeakMap();
37386
- const store = buildStore(
37387
- (atom2) => atomStateMap.get(atom2),
37388
- (atom2, atomState) => atomStateMap.set(atom2, atomState).get(atom2),
37389
- (atom2, ...params) => atom2.read(...params),
37390
- (atom2, ...params) => atom2.write(...params),
37391
- (atom2, ...params) => {
37392
- var _a2;
37393
- return (_a2 = atom2.unstable_onInit) == null ? void 0 : _a2.call(atom2, ...params);
37394
- },
37395
- (atom2, ...params) => {
37396
- var _a2;
37397
- return (_a2 = atom2.onMount) == null ? void 0 : _a2.call(atom2, ...params);
37486
+ const mountedAtoms = /* @__PURE__ */ new WeakMap();
37487
+ const store = INTERNAL_buildStoreRev1(
37488
+ atomStateMap,
37489
+ mountedAtoms,
37490
+ void 0,
37491
+ void 0,
37492
+ void 0,
37493
+ void 0,
37494
+ storeHooks,
37495
+ void 0,
37496
+ (atom2, get2, set2, ...args) => {
37497
+ if (inRestoreAtom) {
37498
+ return set2(atom2, ...args);
37499
+ }
37500
+ return atom2.write(get2, set2, ...args);
37398
37501
  }
37399
37502
  );
37503
+ const debugMountedAtoms = /* @__PURE__ */ new Set();
37504
+ storeHooks.m.add(void 0, (atom2) => {
37505
+ debugMountedAtoms.add(atom2);
37506
+ const atomState = atomStateMap.get(atom2);
37507
+ atomState.m = mountedAtoms.get(atom2);
37508
+ });
37509
+ storeHooks.u.add(void 0, (atom2) => {
37510
+ debugMountedAtoms.delete(atom2);
37511
+ const atomState = atomStateMap.get(atom2);
37512
+ delete atomState.m;
37513
+ });
37514
+ const devStore = {
37515
+ // store dev methods (these are tentative and subject to change without notice)
37516
+ dev4_get_internal_weak_map: () => atomStateMap,
37517
+ dev4_get_mounted_atoms: () => debugMountedAtoms,
37518
+ dev4_restore_atoms: (values) => {
37519
+ const restoreAtom = {
37520
+ read: () => null,
37521
+ write: (_get, set2) => {
37522
+ ++inRestoreAtom;
37523
+ try {
37524
+ for (const [atom2, value] of values) {
37525
+ if ("init" in atom2) {
37526
+ set2(atom2, value);
37527
+ }
37528
+ }
37529
+ } finally {
37530
+ --inRestoreAtom;
37531
+ }
37532
+ }
37533
+ };
37534
+ store.set(restoreAtom);
37535
+ }
37536
+ };
37537
+ return Object.assign(store, devStore);
37538
+ };
37539
+ const createStore = () => {
37540
+ if ((__vite_import_meta_env__$2 ? "production" : void 0) !== "production") {
37541
+ return createDevStoreRev4();
37542
+ }
37543
+ const store = INTERNAL_buildStoreRev1();
37400
37544
  return store;
37401
37545
  };
37402
37546
  let defaultStore;
37403
37547
  const getDefaultStore = () => {
37404
37548
  if (!defaultStore) {
37405
37549
  defaultStore = createStore();
37550
+ if ((__vite_import_meta_env__$2 ? "production" : void 0) !== "production") {
37551
+ globalThis.__JOTAI_DEFAULT_STORE__ || (globalThis.__JOTAI_DEFAULT_STORE__ = defaultStore);
37552
+ if (globalThis.__JOTAI_DEFAULT_STORE__ !== defaultStore) {
37553
+ console.warn(
37554
+ "Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"
37555
+ );
37556
+ }
37557
+ }
37406
37558
  }
37407
37559
  return defaultStore;
37408
37560
  };
37561
+ const __vite_import_meta_env__$1 = {};
37409
37562
  const StoreContext = createContext(
37410
37563
  void 0
37411
37564
  );
@@ -37474,6 +37627,9 @@ const createContinuablePromise = (promise) => {
37474
37627
  const registerCancelHandler = (p2) => {
37475
37628
  if ("onCancel" in p2 && typeof p2.onCancel === "function") {
37476
37629
  p2.onCancel((nextValue) => {
37630
+ if ((__vite_import_meta_env__$1 ? "production" : void 0) !== "production" && nextValue === p2) {
37631
+ throw new Error("[Bug] p is not updated even after cancelation");
37632
+ }
37477
37633
  if (isPromiseLike$1(nextValue)) {
37478
37634
  continuablePromiseMap.set(nextValue, continuablePromise);
37479
37635
  curr = nextValue;
@@ -37529,6 +37685,9 @@ function useSetAtom(atom2, options) {
37529
37685
  const store = useStore();
37530
37686
  const setAtom = useCallback(
37531
37687
  (...args) => {
37688
+ if ((__vite_import_meta_env__$1 ? "production" : void 0) !== "production" && !("write" in atom2)) {
37689
+ throw new Error("not writable atom");
37690
+ }
37532
37691
  return store.set(atom2, ...args);
37533
37692
  },
37534
37693
  [store, atom2]
@@ -37542,8 +37701,9 @@ function useAtom(atom2, options) {
37542
37701
  useSetAtom(atom2)
37543
37702
  ];
37544
37703
  }
37704
+ const __vite_import_meta_env__ = {};
37545
37705
  const RESET = Symbol(
37546
- ""
37706
+ (__vite_import_meta_env__ ? "production" : void 0) !== "production" ? "RESET" : ""
37547
37707
  );
37548
37708
  function atomFamily(initializeAtom, areEqual) {
37549
37709
  let shouldRemove = null;
@@ -37551,8 +37711,15 @@ function atomFamily(initializeAtom, areEqual) {
37551
37711
  const listeners = /* @__PURE__ */ new Set();
37552
37712
  const createAtom = (param) => {
37553
37713
  let item;
37554
- {
37714
+ if (areEqual === void 0) {
37555
37715
  item = atoms2.get(param);
37716
+ } else {
37717
+ for (const [key, value] of atoms2) {
37718
+ if (areEqual(key, param)) {
37719
+ item = value;
37720
+ break;
37721
+ }
37722
+ }
37556
37723
  }
37557
37724
  if (item !== void 0) {
37558
37725
  if (shouldRemove == null ? void 0 : shouldRemove(item[1], param)) {
@@ -37603,6 +37770,11 @@ function createJSONStorage(getStringStorage = () => {
37603
37770
  try {
37604
37771
  return window.localStorage;
37605
37772
  } catch (e2) {
37773
+ if ((__vite_import_meta_env__ ? "production" : void 0) !== "production") {
37774
+ if (typeof window !== "undefined") {
37775
+ console.warn(e2);
37776
+ }
37777
+ }
37606
37778
  return void 0;
37607
37779
  }
37608
37780
  }, options) {
@@ -37683,6 +37855,9 @@ function atomWithStorage$1(key, initialValue, storage = defaultStorage, options)
37683
37855
  const baseAtom = atom(
37684
37856
  initialValue
37685
37857
  );
37858
+ if ((__vite_import_meta_env__ ? "production" : void 0) !== "production") {
37859
+ baseAtom.debugPrivate = true;
37860
+ }
37686
37861
  baseAtom.onMount = (setAtom) => {
37687
37862
  setAtom(storage.getItem(key, initialValue));
37688
37863
  let unsub;
@@ -37719,6 +37894,9 @@ function loadable(anAtom) {
37719
37894
  return memo1(() => {
37720
37895
  const loadableCache = /* @__PURE__ */ new WeakMap();
37721
37896
  const refreshAtom = atom(0);
37897
+ if ((__vite_import_meta_env__ ? "production" : void 0) !== "production") {
37898
+ refreshAtom.debugPrivate = true;
37899
+ }
37722
37900
  const derivedAtom = atom(
37723
37901
  (get2, { setSelf }) => {
37724
37902
  get2(refreshAtom);
@@ -37757,6 +37935,9 @@ function loadable(anAtom) {
37757
37935
  set2(refreshAtom, (c2) => c2 + 1);
37758
37936
  }
37759
37937
  );
37938
+ if ((__vite_import_meta_env__ ? "production" : void 0) !== "production") {
37939
+ derivedAtom.debugPrivate = true;
37940
+ }
37760
37941
  return atom((get2) => get2(derivedAtom));
37761
37942
  }, anAtom);
37762
37943
  }
@@ -37774,6 +37955,9 @@ function unwrap(anAtom, fallback = defaultFallback) {
37774
37955
  const promiseErrorCache = /* @__PURE__ */ new WeakMap();
37775
37956
  const promiseResultCache = /* @__PURE__ */ new WeakMap();
37776
37957
  const refreshAtom = atom(0);
37958
+ if ((__vite_import_meta_env__ ? "production" : void 0) !== "production") {
37959
+ refreshAtom.debugPrivate = true;
37960
+ }
37777
37961
  const promiseAndValueAtom = atom(
37778
37962
  (get2, { setSelf }) => {
37779
37963
  get2(refreshAtom);
@@ -37813,6 +37997,9 @@ function unwrap(anAtom, fallback = defaultFallback) {
37813
37997
  }
37814
37998
  );
37815
37999
  promiseAndValueAtom.init = void 0;
38000
+ if ((__vite_import_meta_env__ ? "production" : void 0) !== "production") {
38001
+ promiseAndValueAtom.debugPrivate = true;
38002
+ }
37816
38003
  return atom(
37817
38004
  (get2) => {
37818
38005
  const state = get2(promiseAndValueAtom);
@@ -55239,7 +55426,7 @@ const connectCrypto = (async () => {
55239
55426
  return window.connectCrypto;
55240
55427
  }
55241
55428
  const { ConnectCrypto } = await __vitePreload(async () => {
55242
- const { ConnectCrypto: ConnectCrypto2 } = await import("./index-BcQMOuWz.js");
55429
+ const { ConnectCrypto: ConnectCrypto2 } = await import("./index-C6RulKld.js");
55243
55430
  return { ConnectCrypto: ConnectCrypto2 };
55244
55431
  }, true ? __vite__mapDeps([0,1,2,3]) : void 0);
55245
55432
  const { BrowserKeyStorage } = await __vitePreload(async () => {
@@ -55292,7 +55479,7 @@ function useRenown() {
55292
55479
  return;
55293
55480
  }
55294
55481
  const { initRenownBrowser } = await __vitePreload(async () => {
55295
- const { initRenownBrowser: initRenownBrowser2 } = await import("./browser-CZOApPej.js");
55482
+ const { initRenownBrowser: initRenownBrowser2 } = await import("./browser-C10aMa50.js");
55296
55483
  return { initRenownBrowser: initRenownBrowser2 };
55297
55484
  }, true ? __vite__mapDeps([4,5,1,6,2,3]) : void 0);
55298
55485
  const renownBrowser = initRenownBrowser(did2);
@@ -62172,7 +62359,7 @@ function msToSec(time) {
62172
62359
  return time / 1e3;
62173
62360
  }
62174
62361
  function getBrowserPerformanceAPI() {
62175
- return WINDOW$2.addEventListener && WINDOW$2.performance;
62362
+ return WINDOW$2 && WINDOW$2.addEventListener && WINDOW$2.performance;
62176
62363
  }
62177
62364
  let _performanceCursor = 0;
62178
62365
  let _measurements = {};
@@ -65234,7 +65421,6 @@ function serializeNode(n2, options) {
65234
65421
  keepIframeSrcFn,
65235
65422
  newlyAddedElement,
65236
65423
  rootId,
65237
- maskAllText,
65238
65424
  maskTextClass,
65239
65425
  unmaskTextClass,
65240
65426
  maskTextSelector,
@@ -65323,7 +65509,7 @@ function serializeTextNode(n2, options) {
65323
65509
  };
65324
65510
  }
65325
65511
  function serializeElementNode(n2, options) {
65326
- const { doc, blockClass, blockSelector, unblockSelector, inlineStylesheet, maskInputOptions = {}, maskAttributeFn, maskInputFn, dataURLOptions = {}, inlineImages, recordCanvas, keepIframeSrcFn, newlyAddedElement = false, rootId, maskAllText, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector } = options;
65512
+ const { doc, blockClass, blockSelector, unblockSelector, inlineStylesheet, maskInputOptions = {}, maskAttributeFn, maskInputFn, dataURLOptions = {}, inlineImages, recordCanvas, keepIframeSrcFn, newlyAddedElement = false, rootId, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector } = options;
65327
65513
  const needBlock = _isBlockedElement(n2, blockClass, blockSelector, unblockSelector);
65328
65514
  const tagName = getValidTagName(n2);
65329
65515
  let attributes = {};
@@ -65685,7 +65871,7 @@ function serializeNodeWithId(n2, options) {
65685
65871
  return serializedNode;
65686
65872
  }
65687
65873
  function snapshot(n2, options) {
65688
- const { mirror: mirror2 = new Mirror(), blockClass = "rr-block", blockSelector = null, unblockSelector = null, maskAllText = false, maskTextClass = "rr-mask", unmaskTextClass = null, maskTextSelector = null, unmaskTextSelector = null, inlineStylesheet = true, inlineImages = false, recordCanvas = false, maskAllInputs = false, maskAttributeFn, maskTextFn, maskInputFn, slimDOM = false, dataURLOptions, preserveWhiteSpace, onSerialize, onIframeLoad, iframeLoadTimeout, onStylesheetLoad, stylesheetLoadTimeout, keepIframeSrcFn = () => false } = options;
65874
+ const { mirror: mirror2 = new Mirror(), blockClass = "rr-block", blockSelector = null, unblockSelector = null, maskAllText = false, maskTextClass = "rr-mask", unmaskTextClass = null, maskTextSelector = null, unmaskTextSelector = null, inlineStylesheet = true, inlineImages = false, recordCanvas = false, maskAllInputs = false, maskAttributeFn, maskTextFn, maskInputFn, slimDOM = false, dataURLOptions, preserveWhiteSpace, onSerialize, onIframeLoad, iframeLoadTimeout, onStylesheetLoad, stylesheetLoadTimeout, keepIframeSrcFn = () => false } = options || {};
65689
65875
  const maskInputOptions = maskAllInputs === true ? {
65690
65876
  color: true,
65691
65877
  date: true,
@@ -70505,7 +70691,7 @@ function debounce(func, wait2, options) {
70505
70691
  let callbackReturnValue;
70506
70692
  let timerId;
70507
70693
  let maxTimerId;
70508
- const maxWait = options.maxWait ? Math.max(options.maxWait, wait2) : 0;
70694
+ const maxWait = options && options.maxWait ? Math.max(options.maxWait, wait2) : 0;
70509
70695
  function invokeFunc() {
70510
70696
  cancelTimers();
70511
70697
  callbackReturnValue = func();
@@ -72479,7 +72665,7 @@ function reactRouterV6BrowserTracingIntegration(options) {
72479
72665
  ...integration,
72480
72666
  afterAllSetup(client) {
72481
72667
  integration.afterAllSetup(client);
72482
- const initPathName = WINDOW$1.location && WINDOW$1.location.pathname;
72668
+ const initPathName = WINDOW$1 && WINDOW$1.location && WINDOW$1.location.pathname;
72483
72669
  if (instrumentPageLoad && initPathName) {
72484
72670
  startBrowserTracingPageLoadSpan(client, {
72485
72671
  name: initPathName,
@@ -73149,14 +73335,14 @@ function useDocumentDriveServer() {
73149
73335
  const driveDocument = documentDrives.find(
73150
73336
  (documentDrive) => documentDrive.state.global.id === drive
73151
73337
  );
73152
- const waitForSync = driveDocument && driveDocument.state.local.listeners.length > 0;
73338
+ driveDocument && driveDocument.state.local.listeners.length > 0;
73153
73339
  uploadDocumentOperations(
73154
73340
  drive,
73155
73341
  fileNode.id,
73156
73342
  document2,
73157
73343
  reactor,
73158
73344
  addOperations,
73159
- { waitForSync }
73345
+ {}
73160
73346
  ).catch((error) => {
73161
73347
  throw error;
73162
73348
  });
@@ -74524,7 +74710,6 @@ function useDocumentDriveById(driveId) {
74524
74710
  };
74525
74711
  }
74526
74712
  var lzString = { exports: {} };
74527
- lzString.exports;
74528
74713
  var hasRequiredLzString;
74529
74714
  function requireLzString() {
74530
74715
  if (hasRequiredLzString) return lzString.exports;
@@ -75972,7 +76157,7 @@ const CookieBanner = () => {
75972
76157
  ] });
75973
76158
  };
75974
76159
  /**
75975
- * @remix-run/router v1.22.0
76160
+ * @remix-run/router v1.23.0
75976
76161
  *
75977
76162
  * Copyright (c) Remix Software Inc.
75978
76163
  *
@@ -77188,6 +77373,14 @@ function createRouter(init2) {
77188
77373
  state.matches
77189
77374
  ) : matchRoutes(routesToUse, location, basename);
77190
77375
  let flushSync = (opts && opts.flushSync) === true;
77376
+ if (matches && state.initialized && !isRevalidationRequired && isHashChangeOnly(state.location, location) && !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))) {
77377
+ completeNavigation(location, {
77378
+ matches
77379
+ }, {
77380
+ flushSync
77381
+ });
77382
+ return;
77383
+ }
77191
77384
  let fogOfWar = checkFogOfWar(matches, routesToUse, location.pathname);
77192
77385
  if (fogOfWar.active && fogOfWar.matches) {
77193
77386
  matches = fogOfWar.matches;
@@ -77209,14 +77402,6 @@ function createRouter(init2) {
77209
77402
  });
77210
77403
  return;
77211
77404
  }
77212
- if (state.initialized && !isRevalidationRequired && isHashChangeOnly(state.location, location) && !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))) {
77213
- completeNavigation(location, {
77214
- matches
77215
- }, {
77216
- flushSync
77217
- });
77218
- return;
77219
- }
77220
77405
  pendingNavigationController = new AbortController();
77221
77406
  let request = createClientSideRequest(init2.history, location, pendingNavigationController.signal, opts && opts.submission);
77222
77407
  let pendingActionResult;
@@ -77613,7 +77798,7 @@ function createRouter(init2) {
77613
77798
  let abortController = new AbortController();
77614
77799
  let fetchRequest = createClientSideRequest(init2.history, path, abortController.signal, submission);
77615
77800
  if (isFogOfWar) {
77616
- let discoverResult = await discoverRoutes(requestMatches, new URL(fetchRequest.url).pathname, fetchRequest.signal);
77801
+ let discoverResult = await discoverRoutes(requestMatches, new URL(fetchRequest.url).pathname, fetchRequest.signal, key);
77617
77802
  if (discoverResult.type === "aborted") {
77618
77803
  return;
77619
77804
  } else if (discoverResult.type === "error") {
@@ -77760,7 +77945,7 @@ function createRouter(init2) {
77760
77945
  let abortController = new AbortController();
77761
77946
  let fetchRequest = createClientSideRequest(init2.history, path, abortController.signal);
77762
77947
  if (isFogOfWar) {
77763
- let discoverResult = await discoverRoutes(matches, new URL(fetchRequest.url).pathname, fetchRequest.signal);
77948
+ let discoverResult = await discoverRoutes(matches, new URL(fetchRequest.url).pathname, fetchRequest.signal, key);
77764
77949
  if (discoverResult.type === "aborted") {
77765
77950
  return;
77766
77951
  } else if (discoverResult.type === "error") {
@@ -78194,7 +78379,7 @@ function createRouter(init2) {
78194
78379
  matches: null
78195
78380
  };
78196
78381
  }
78197
- async function discoverRoutes(matches, pathname, signal) {
78382
+ async function discoverRoutes(matches, pathname, signal, fetcherKey) {
78198
78383
  if (!patchRoutesOnNavigationImpl) {
78199
78384
  return {
78200
78385
  type: "success",
@@ -78211,6 +78396,7 @@ function createRouter(init2) {
78211
78396
  signal,
78212
78397
  path: pathname,
78213
78398
  matches: partialMatches,
78399
+ fetcherKey,
78214
78400
  patch: (routeId, children) => {
78215
78401
  if (signal.aborted) return;
78216
78402
  patchRoutesImpl(routeId, children, routesToUse, localManifest, mapRouteProperties2);
@@ -79440,7 +79626,7 @@ function persistAppliedTransitions(_window, transitions) {
79440
79626
  }
79441
79627
  }
79442
79628
  /**
79443
- * React Router v6.29.0
79629
+ * React Router v6.30.0
79444
79630
  *
79445
79631
  * Copyright (c) Remix Software Inc.
79446
79632
  *
@@ -79732,6 +79918,7 @@ function _renderMatches(matches, parentMatches, dataRouterState, future) {
79732
79918
  errorElement = match2.route.errorElement || defaultErrorElement;
79733
79919
  if (renderFallback) {
79734
79920
  if (fallbackIndex < 0 && index2 === 0) {
79921
+ warningOnce("route-fallback");
79735
79922
  shouldRenderHydrateFallback = true;
79736
79923
  hydrateFallbackElement = null;
79737
79924
  } else if (fallbackIndex === index2) {
@@ -79822,7 +80009,7 @@ function useRouteError() {
79822
80009
  var _state$errors;
79823
80010
  let error = React.useContext(RouteErrorContext);
79824
80011
  let state = useDataRouterState(DataRouterStateHook.UseRouteError);
79825
- let routeId = useCurrentRouteId(DataRouterStateHook.UseRouteError);
80012
+ let routeId = useCurrentRouteId();
79826
80013
  if (error !== void 0) {
79827
80014
  return error;
79828
80015
  }
@@ -79832,7 +80019,7 @@ function useNavigateStable() {
79832
80019
  let {
79833
80020
  router
79834
80021
  } = useDataRouterContext(DataRouterHook.UseNavigateStable);
79835
- let id = useCurrentRouteId(DataRouterStateHook.UseNavigateStable);
80022
+ let id = useCurrentRouteId();
79836
80023
  let activeRef = React.useRef(false);
79837
80024
  useIsomorphicLayoutEffect(() => {
79838
80025
  activeRef.current = true;
@@ -79852,6 +80039,12 @@ function useNavigateStable() {
79852
80039
  }, [router, id]);
79853
80040
  return navigate;
79854
80041
  }
80042
+ const alreadyWarned$1 = {};
80043
+ function warningOnce(key, cond, message) {
80044
+ if (!alreadyWarned$1[key]) {
80045
+ alreadyWarned$1[key] = true;
80046
+ }
80047
+ }
79855
80048
  function logV6DeprecationWarnings(renderFuture, routerFuture) {
79856
80049
  if ((renderFuture == null ? void 0 : renderFuture.v7_startTransition) === void 0) ;
79857
80050
  if ((renderFuture == null ? void 0 : renderFuture.v7_relativeSplatPath) === void 0 && (!routerFuture || !routerFuture.v7_relativeSplatPath)) ;
@@ -80093,7 +80286,7 @@ const Analytics = () => {
80093
80286
  return null;
80094
80287
  };
80095
80288
  const Router = React__default.lazy(async () => {
80096
- const createRouterComponent = await __vitePreload(() => import("./router-626xhE7A.js").then((n2) => n2.r), true ? __vite__mapDeps([7,1,8,2,3]) : void 0);
80289
+ const createRouterComponent = await __vitePreload(() => import("./router-DYMMZqez.js").then((n2) => n2.r), true ? __vite__mapDeps([7,1,8,2,3]) : void 0);
80097
80290
  const router = await createRouterComponent.default();
80098
80291
  return { default: router };
80099
80292
  });
@@ -80119,7 +80312,7 @@ const app = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
80119
80312
  default: App
80120
80313
  }, Symbol.toStringTag, { value: "Module" }));
80121
80314
  export {
80122
- getAddress as $,
80315
+ hexToBool as $,
80123
80316
  aexists as A,
80124
80317
  BaseError as B,
80125
80318
  toBytes as C,
@@ -80132,238 +80325,239 @@ export {
80132
80325
  toBytes$1 as J,
80133
80326
  size$2 as K,
80134
80327
  trim as L,
80135
- wait as M,
80328
+ keccak_256 as M,
80136
80329
  stringify$1 as N,
80137
- InvalidInputRpcError as O,
80138
- isAddress as P,
80139
- InvalidAddressError as Q,
80330
+ isAddress as O,
80331
+ InvalidAddressError as P,
80332
+ stringToHex as Q,
80140
80333
  Router$1 as R,
80141
80334
  S$3 as S,
80142
- stringToHex as T,
80143
- withResolvers as U,
80144
- withRetry as V,
80145
- ahash as W,
80146
- abytes as X,
80147
- concatBytes as Y,
80335
+ wait as T,
80336
+ InvalidInputRpcError as U,
80337
+ withResolvers as V,
80338
+ withRetry as W,
80339
+ ahash as X,
80340
+ abytes as Y,
80148
80341
  randomBytes as Z,
80149
- hexToBool as _,
80150
- useNavigate as a,
80151
- i$5 as a$,
80152
- createClient as a0,
80153
- defineChain as a1,
80154
- pad as a2,
80155
- mainnet as a3,
80156
- http as a4,
80157
- RENOWN_URL as a5,
80158
- SliceOffsetOutOfBoundsError as a6,
80159
- padHex as a7,
80160
- boolToHex as a8,
80161
- IntegerOutOfRangeError as a9,
80162
- pendingThenable as aA,
80163
- resolveEnabled as aB,
80164
- shallowEqualObjects as aC,
80165
- resolveStaleTime as aD,
80166
- noop$1 as aE,
80167
- isServer as aF,
80168
- isValidTimeout as aG,
80169
- timeUntilStale as aH,
80170
- focusManager as aI,
80171
- fetchState as aJ,
80172
- replaceData as aK,
80173
- notifyManager as aL,
80174
- useQueryClient as aM,
80175
- n$2 as aN,
80176
- useOnClickOutside as aO,
80177
- useEventListener as aP,
80178
- c$7 as aQ,
80179
- t$1 as aR,
80180
- S$1 as aS,
80181
- N$4 as aT,
80182
- I$6 as aU,
80183
- y$6 as aV,
80184
- u$8 as aW,
80185
- b$5 as aX,
80186
- a$2 as aY,
80187
- n$1 as aZ,
80188
- D$5 as a_,
80189
- InvalidBytesLengthError as aa,
80190
- assertSize as ab,
80191
- InvalidBytesBooleanError as ac,
80192
- getContractAddress as ad,
80193
- stringToBytes as ae,
80194
- InternalRpcError as af,
80195
- RpcRequestError as ag,
80196
- createBatchScheduler as ah,
80197
- useTranslation as ai,
80198
- useDocumentDrives as aj,
80199
- useReadModeContext as ak,
80200
- useAsyncReactor as al,
80201
- useConnectConfig as am,
80202
- I$4 as an,
80203
- p as ao,
80204
- C$1 as ap,
80205
- s$1 as aq,
80206
- useParams as ar,
80207
- E$1 as as,
80342
+ concatBytes as _,
80343
+ createBrowserHistory as a,
80344
+ D$5 as a$,
80345
+ getAddress as a0,
80346
+ createClient as a1,
80347
+ defineChain as a2,
80348
+ pad as a3,
80349
+ mainnet as a4,
80350
+ http as a5,
80351
+ RENOWN_URL as a6,
80352
+ SliceOffsetOutOfBoundsError as a7,
80353
+ padHex as a8,
80354
+ boolToHex as a9,
80355
+ Subscribable as aA,
80356
+ pendingThenable as aB,
80357
+ resolveEnabled as aC,
80358
+ shallowEqualObjects as aD,
80359
+ resolveStaleTime as aE,
80360
+ noop$1 as aF,
80361
+ isServer as aG,
80362
+ isValidTimeout as aH,
80363
+ timeUntilStale as aI,
80364
+ focusManager as aJ,
80365
+ fetchState as aK,
80366
+ replaceData as aL,
80367
+ notifyManager as aM,
80368
+ useQueryClient as aN,
80369
+ n$2 as aO,
80370
+ useOnClickOutside as aP,
80371
+ useEventListener as aQ,
80372
+ c$7 as aR,
80373
+ N$4 as aS,
80374
+ S$1 as aT,
80375
+ t$1 as aU,
80376
+ I$6 as aV,
80377
+ y$6 as aW,
80378
+ u$8 as aX,
80379
+ b$5 as aY,
80380
+ i$5 as aZ,
80381
+ n$1 as a_,
80382
+ IntegerOutOfRangeError as aa,
80383
+ InvalidBytesLengthError as ab,
80384
+ assertSize as ac,
80385
+ InvalidBytesBooleanError as ad,
80386
+ getContractAddress as ae,
80387
+ stringToBytes as af,
80388
+ InternalRpcError as ag,
80389
+ RpcRequestError as ah,
80390
+ createBatchScheduler as ai,
80391
+ useTranslation as aj,
80392
+ useDocumentDrives as ak,
80393
+ useReadModeContext as al,
80394
+ useAsyncReactor as am,
80395
+ useConnectConfig as an,
80396
+ I$4 as ao,
80397
+ p as ap,
80398
+ C$1 as aq,
80399
+ s$1 as ar,
80400
+ useParams as as,
80208
80401
  o$2 as at,
80209
- useModal as au,
80210
- useLogin as av,
80211
- Outlet as aw,
80212
- BaseError$1 as ax,
80213
- WagmiContext as ay,
80214
- Subscribable as az,
80402
+ E$1 as au,
80403
+ useModal as av,
80404
+ useLogin as aw,
80405
+ Outlet as ax,
80406
+ BaseError$1 as ay,
80407
+ WagmiContext as az,
80215
80408
  DataRouterStateContext as b,
80216
- isSpecifiedDirective as b$,
80217
- A$1 as b0,
80218
- m$7 as b1,
80219
- Provider$1 as b2,
80220
- Root3 as b3,
80221
- Trigger as b4,
80222
- Portal as b5,
80223
- Content2 as b6,
80224
- useCopyToClipboard as b7,
80225
- B$5 as b8,
80226
- w$4 as b9,
80227
- redo as bA,
80228
- themeAtom as bB,
80229
- signOperation as bC,
80230
- exportFile as bD,
80231
- useUnwrappedReactor as bE,
80232
- R$3 as bF,
80233
- useFilteredDocumentModels as bG,
80234
- useDriveEditor as bH,
80235
- useDocumentDriveById as bI,
80236
- driveDocumentModelModule as bJ,
80237
- getUrl as bK,
80238
- HttpRequestError as bL,
80239
- inspect as bM,
80240
- GraphQLError as bN,
80241
- invariant$1 as bO,
80409
+ DEFAULT_DEPRECATION_REASON as b$,
80410
+ a$2 as b0,
80411
+ A$1 as b1,
80412
+ m$7 as b2,
80413
+ Provider$1 as b3,
80414
+ Root3 as b4,
80415
+ Trigger as b5,
80416
+ Portal as b6,
80417
+ Content2 as b7,
80418
+ useCopyToClipboard as b8,
80419
+ B$5 as b9,
80420
+ addActionContext as bA,
80421
+ undo as bB,
80422
+ redo as bC,
80423
+ signOperation as bD,
80424
+ exportFile as bE,
80425
+ useUnwrappedReactor as bF,
80426
+ R$3 as bG,
80427
+ driveDocumentModelModule as bH,
80428
+ useFilteredDocumentModels as bI,
80429
+ useDriveEditor as bJ,
80430
+ useDocumentDriveById as bK,
80431
+ getUrl as bL,
80432
+ HttpRequestError as bM,
80433
+ inspect as bN,
80434
+ GraphQLError as bO,
80242
80435
  getNamedType as bP,
80243
- isInputObjectType as bQ,
80244
- isScalarType as bR,
80245
- isObjectType as bS,
80246
- isInterfaceType as bT,
80247
- isUnionType as bU,
80248
- isEnumType as bV,
80249
- astFromValue as bW,
80436
+ invariant$1 as bQ,
80437
+ isInputObjectType as bR,
80438
+ isScalarType as bS,
80439
+ isObjectType as bT,
80440
+ isInterfaceType as bU,
80441
+ isUnionType as bV,
80442
+ isEnumType as bW,
80250
80443
  print as bX,
80251
- DEFAULT_DEPRECATION_REASON as bY,
80444
+ isPrintableAsBlockString as bY,
80252
80445
  Kind as bZ,
80253
- isPrintableAsBlockString as b_,
80254
- garbageCollect as ba,
80255
- sortOperations as bb,
80256
- n as bc,
80257
- M$2 as bd,
80258
- a$1 as be,
80259
- g$7 as bf,
80260
- C$2 as bg,
80261
- validateInitialState as bh,
80262
- validateStateSchemaName as bi,
80263
- validateModules as bj,
80264
- atomWithLazy as bk,
80265
- atom as bl,
80266
- unwrap as bm,
80267
- loadable as bn,
80268
- externalPackagesAtom as bo,
80269
- useDefaultDocumentModelEditor as bp,
80270
- useAtomValue as bq,
80271
- useUser as br,
80272
- useConnectDid as bs,
80273
- useConnectCrypto as bt,
80274
- useGetDocumentModelModule as bu,
80275
- useDocumentDispatch as bv,
80276
- useUserPermissions as bw,
80277
- isSameDocument as bx,
80278
- addActionContext as by,
80279
- undo as bz,
80280
- useRoutesImpl as c,
80281
- setModelName as c$,
80282
- isSpecifiedScalarType as c0,
80283
- isIntrospectionType as c1,
80284
- z$1 as c2,
80285
- GraphQLScalarType as c3,
80286
- clsx as c4,
80287
- pascalCase as c5,
80288
- parse as c6,
80289
- visit$1 as c7,
80290
- buildASTSchema as c8,
80291
- extendSchema as c9,
80292
- isInputType as cA,
80293
- GraphQLBoolean as cB,
80294
- assertAbstractType as cC,
80295
- doTypesOverlap as cD,
80296
- DirectiveLocation as cE,
80297
- specifiedRules as cF,
80298
- NoUnusedFragmentsRule as cG,
80299
- ExecutableDefinitionsRule as cH,
80300
- validate as cI,
80301
- validateSchema as cJ,
80302
- GraphQLID as cK,
80303
- GraphQLString as cL,
80304
- GraphQLFloat as cM,
80305
- GraphQLInt as cN,
80306
- GraphQLDirective as cO,
80307
- GraphQLUnionType as cP,
80308
- isNonNullType as cQ,
80309
- GraphQLNonNull as cR,
80310
- isNamedType as cS,
80311
- isLeafType as cT,
80312
- GraphQLSchema as cU,
80313
- buildSchema as cV,
80314
- sentenceCase as cW,
80315
- List as cX,
80316
- Trigger$2 as cY,
80317
- Content as cZ,
80318
- Root2$1 as c_,
80319
- getNullableType as ca,
80320
- isListType as cb,
80321
- get$1 as cc,
80322
- set$1 as cd,
80323
- appendErrors as ce,
80324
- snakeCase as cf,
80325
- constantCase as cg,
80326
- useFormContext as ch,
80327
- Primitive as ci,
80328
- cva as cj,
80329
- Slot as ck,
80446
+ astFromValue as b_,
80447
+ w$4 as ba,
80448
+ garbageCollect as bb,
80449
+ sortOperations as bc,
80450
+ n as bd,
80451
+ M$2 as be,
80452
+ a$1 as bf,
80453
+ g$7 as bg,
80454
+ C$2 as bh,
80455
+ validateInitialState as bi,
80456
+ validateStateSchemaName as bj,
80457
+ validateModules as bk,
80458
+ useDefaultDocumentModelEditor as bl,
80459
+ useAtomValue as bm,
80460
+ unwrap as bn,
80461
+ atom as bo,
80462
+ atomWithLazy as bp,
80463
+ externalPackagesAtom as bq,
80464
+ loadable as br,
80465
+ themeAtom as bs,
80466
+ useUser as bt,
80467
+ useConnectDid as bu,
80468
+ useConnectCrypto as bv,
80469
+ useGetDocumentModelModule as bw,
80470
+ useDocumentDispatch as bx,
80471
+ useUserPermissions as by,
80472
+ isSameDocument as bz,
80473
+ createRouter as c,
80474
+ Content as c$,
80475
+ isSpecifiedDirective as c0,
80476
+ isSpecifiedScalarType as c1,
80477
+ isIntrospectionType as c2,
80478
+ z$1 as c3,
80479
+ GraphQLScalarType as c4,
80480
+ clsx as c5,
80481
+ pascalCase as c6,
80482
+ parse as c7,
80483
+ visit$1 as c8,
80484
+ buildASTSchema as c9,
80485
+ isOutputType as cA,
80486
+ isInputType as cB,
80487
+ GraphQLBoolean as cC,
80488
+ assertAbstractType as cD,
80489
+ doTypesOverlap as cE,
80490
+ DirectiveLocation as cF,
80491
+ specifiedRules as cG,
80492
+ NoUnusedFragmentsRule as cH,
80493
+ ExecutableDefinitionsRule as cI,
80494
+ validate as cJ,
80495
+ validateSchema as cK,
80496
+ GraphQLID as cL,
80497
+ GraphQLString as cM,
80498
+ GraphQLFloat as cN,
80499
+ GraphQLInt as cO,
80500
+ GraphQLDirective as cP,
80501
+ GraphQLUnionType as cQ,
80502
+ isNonNullType as cR,
80503
+ GraphQLNonNull as cS,
80504
+ isNamedType as cT,
80505
+ isLeafType as cU,
80506
+ GraphQLSchema as cV,
80507
+ buildSchema as cW,
80508
+ sentenceCase as cX,
80509
+ Root2$1 as cY,
80510
+ List as cZ,
80511
+ Trigger$2 as c_,
80512
+ extendSchema as ca,
80513
+ getNullableType as cb,
80514
+ isListType as cc,
80515
+ get$1 as cd,
80516
+ set$1 as ce,
80517
+ appendErrors as cf,
80518
+ snakeCase as cg,
80519
+ constantCase as ch,
80520
+ useFormContext as ci,
80521
+ Primitive as cj,
80522
+ cva as ck,
80330
80523
  FormProvider as cl,
80331
80524
  Controller as cm,
80332
- useForm as cn,
80333
- isAbstractType as co,
80334
- BREAK as cp,
80335
- GraphQLInputObjectType as cq,
80336
- GraphQLList as cr,
80337
- GraphQLEnumType as cs,
80338
- GraphQLObjectType as ct,
80339
- GraphQLInterfaceType as cu,
80340
- SchemaMetaFieldDef as cv,
80341
- TypeMetaFieldDef as cw,
80342
- TypeNameMetaFieldDef as cx,
80343
- isCompositeType as cy,
80344
- isOutputType as cz,
80345
- createRouter as d,
80346
- setModelId as d0,
80347
- setModelDescription as d1,
80348
- setModelExtension as d2,
80349
- setAuthorName as d3,
80350
- setAuthorWebsite as d4,
80351
- setStateSchema as d5,
80352
- setInitialState as d6,
80353
- hashKey as d7,
80354
- addModule as d8,
80355
- setModuleName as d9,
80356
- deleteModule as da,
80357
- addOperation as db,
80358
- setOperationName as dc,
80359
- setOperationSchema as dd,
80360
- setOperationDescription as de,
80361
- deleteOperation as df,
80362
- addOperationError as dg,
80363
- deleteOperationError as dh,
80364
- setOperationErrorName as di,
80365
- app as dj,
80366
- createBrowserHistory as e,
80525
+ Slot as cn,
80526
+ useForm as co,
80527
+ isAbstractType as cp,
80528
+ BREAK as cq,
80529
+ GraphQLInputObjectType as cr,
80530
+ GraphQLList as cs,
80531
+ GraphQLEnumType as ct,
80532
+ GraphQLObjectType as cu,
80533
+ GraphQLInterfaceType as cv,
80534
+ SchemaMetaFieldDef as cw,
80535
+ TypeMetaFieldDef as cx,
80536
+ TypeNameMetaFieldDef as cy,
80537
+ isCompositeType as cz,
80538
+ useLocation as d,
80539
+ setModelName as d0,
80540
+ setModelId as d1,
80541
+ setModelDescription as d2,
80542
+ setModelExtension as d3,
80543
+ setAuthorName as d4,
80544
+ setAuthorWebsite as d5,
80545
+ setStateSchema as d6,
80546
+ setInitialState as d7,
80547
+ hashKey as d8,
80548
+ addModule as d9,
80549
+ setModuleName as da,
80550
+ deleteModule as db,
80551
+ addOperation as dc,
80552
+ setOperationName as dd,
80553
+ setOperationSchema as de,
80554
+ setOperationDescription as df,
80555
+ deleteOperation as dg,
80556
+ addOperationError as dh,
80557
+ deleteOperationError as di,
80558
+ setOperationErrorName as dj,
80559
+ app as dk,
80560
+ useNavigate as e,
80367
80561
  useGetAppNameForEditorId as f,
80368
80562
  useUiNodes as g,
80369
80563
  useDocumentDriveServer as h,
@@ -80379,7 +80573,7 @@ export {
80379
80573
  hexToBigInt as r,
80380
80574
  hexToNumber as s,
80381
80575
  twMerge as t,
80382
- useLocation as u,
80576
+ useRoutesImpl as u,
80383
80577
  bytesToHex as v,
80384
80578
  hexToBytes as w,
80385
80579
  numberToHex as x,