@ventlio/tanstack-query 0.5.6 → 0.5.8
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.
- package/dist/_virtual/index.js +8 -0
- package/dist/{index.js.map → _virtual/index.js.map} +1 -1
- package/dist/_virtual/use-sync-external-store-shim.development.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/_virtual/with-selector.development.js +4 -0
- package/dist/_virtual/with-selector.development.js.map +1 -0
- package/dist/_virtual/with-selector.js +8 -0
- package/dist/_virtual/with-selector.js.map +1 -0
- package/dist/_virtual/with-selector.production.js +4 -0
- package/dist/_virtual/with-selector.production.js.map +1 -0
- package/dist/config/bootStore.d.ts +3 -0
- package/dist/config/bootstrapQueryRequest.d.ts +1 -1
- package/dist/config/index.d.ts +0 -1
- package/dist/index.mjs +724 -49
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/@tanstack/react-store/dist/esm/index.js +48 -0
- package/dist/node_modules/@tanstack/react-store/dist/esm/index.js.map +1 -0
- package/dist/node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +110 -0
- package/dist/node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +1 -0
- package/dist/node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +98 -0
- package/dist/node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +1 -0
- package/dist/node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +107 -0
- package/dist/node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -0
- package/dist/node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +78 -0
- package/dist/node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/node_modules/@tanstack/react-store/node_modules/use-sync-external-store/shim/index.js +22 -0
- package/dist/node_modules/@tanstack/react-store/node_modules/use-sync-external-store/shim/index.js.map +1 -0
- package/dist/node_modules/@tanstack/react-store/node_modules/use-sync-external-store/shim/with-selector.js +13 -0
- package/dist/node_modules/@tanstack/react-store/node_modules/use-sync-external-store/shim/with-selector.js.map +1 -0
- package/dist/node_modules/@tanstack/store/dist/esm/derived.js +119 -0
- package/dist/node_modules/@tanstack/store/dist/esm/derived.js.map +1 -0
- package/dist/node_modules/@tanstack/store/dist/esm/scheduler.js +88 -0
- package/dist/node_modules/@tanstack/store/dist/esm/scheduler.js.map +1 -0
- package/dist/node_modules/@tanstack/store/dist/esm/store.js +29 -0
- package/dist/node_modules/@tanstack/store/dist/esm/store.js.map +1 -0
- package/dist/src/config/bootStore.js +16 -0
- package/dist/src/config/bootStore.js.map +1 -0
- package/dist/src/config/bootstrapQueryRequest.js +11 -0
- package/dist/{config → src/config}/bootstrapQueryRequest.js.map +1 -1
- package/dist/src/config/useReactNativeEnv.js +13 -0
- package/dist/{config → src/config}/useReactNativeEnv.js.map +1 -1
- package/dist/{index.js → src/index.js} +0 -1
- package/dist/src/index.js.map +1 -0
- package/dist/{model → src/model}/useQueryModel.js +4 -7
- package/dist/{model → src/model}/useQueryModel.js.map +1 -1
- package/dist/{queries → src/queries}/useDeleteRequest.js +5 -4
- package/dist/{queries → src/queries}/useDeleteRequest.js.map +1 -1
- package/dist/{queries → src/queries}/useGetInfiniteRequest.js +5 -4
- package/dist/{queries → src/queries}/useGetInfiniteRequest.js.map +1 -1
- package/dist/{queries → src/queries}/useGetRequest.js +5 -4
- package/dist/{queries → src/queries}/useGetRequest.js.map +1 -1
- package/dist/{queries → src/queries}/usePatchRequest.js +7 -6
- package/dist/{queries → src/queries}/usePatchRequest.js.map +1 -1
- package/dist/{queries → src/queries}/usePostRequest.js +7 -6
- package/dist/{queries → src/queries}/usePostRequest.js.map +1 -1
- package/dist/types/index.d.ts +14 -3
- package/package.json +2 -1
- package/src/config/bootStore.ts +14 -0
- package/src/config/bootstrapQueryRequest.ts +4 -15
- package/src/config/index.ts +0 -1
- package/src/config/useReactNativeEnv.ts +6 -5
- package/src/model/useQueryModel.ts +4 -4
- package/src/queries/useDeleteRequest.ts +16 -7
- package/src/queries/useGetInfiniteRequest.ts +16 -7
- package/src/queries/useGetRequest.ts +16 -7
- package/src/queries/usePatchRequest.ts +9 -8
- package/src/queries/usePostRequest.ts +15 -10
- package/src/queries/usePutRequest.ts +15 -10
- package/src/types/index.ts +15 -3
- package/dist/config/bootstrapQueryRequest.js +0 -21
- package/dist/config/useQueryConfig.d.ts +0 -2
- package/dist/config/useQueryConfig.js +0 -11
- package/dist/config/useQueryConfig.js.map +0 -1
- package/dist/config/useReactNativeEnv.js +0 -12
- package/src/config/useQueryConfig.ts +0 -11
- /package/dist/{config → src/config}/useEnvironmentVariables.js +0 -0
- /package/dist/{config → src/config}/useEnvironmentVariables.js.map +0 -0
- /package/dist/{config → src/config}/useQueryHeaders.js +0 -0
- /package/dist/{config → src/config}/useQueryHeaders.js.map +0 -0
- /package/dist/{helpers → src/helpers}/scrollToTop.js +0 -0
- /package/dist/{helpers → src/helpers}/scrollToTop.js.map +0 -0
- /package/dist/{helpers → src/helpers}/timeFuncs.js +0 -0
- /package/dist/{helpers → src/helpers}/timeFuncs.js.map +0 -0
- /package/dist/{hooks → src/hooks}/useUploadProgress.js +0 -0
- /package/dist/{hooks → src/hooks}/useUploadProgress.js.map +0 -0
- /package/dist/{model → src/model}/useKeyTrackerModel.js +0 -0
- /package/dist/{model → src/model}/useKeyTrackerModel.js.map +0 -0
- /package/dist/{model → src/model}/useRefetchQuery.js +0 -0
- /package/dist/{model → src/model}/useRefetchQuery.js.map +0 -0
- /package/dist/{request → src/request}/axios-instance.js +0 -0
- /package/dist/{request → src/request}/axios-instance.js.map +0 -0
- /package/dist/{request → src/request}/buildFormData.js +0 -0
- /package/dist/{request → src/request}/buildFormData.js.map +0 -0
- /package/dist/{request → src/request}/make-request.js +0 -0
- /package/dist/{request → src/request}/make-request.js.map +0 -0
- /package/dist/{request → src/request}/request.enum.js +0 -0
- /package/dist/{request → src/request}/request.enum.js.map +0 -0
- /package/dist/{request → src/request}/transformer.js +0 -0
- /package/dist/{request → src/request}/transformer.js.map +0 -0
- /package/dist/{stores → src/stores}/useHeaderStore.js +0 -0
- /package/dist/{stores → src/stores}/useHeaderStore.js.map +0 -0
- /package/dist/{stores → src/stores}/usePauseFutureRequests.js +0 -0
- /package/dist/{stores → src/stores}/usePauseFutureRequests.js.map +0 -0
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../node_modules/@tanstack/react-store/node_modules/use-sync-external-store/shim/index.js","../node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js","../node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js","../node_modules/@tanstack/react-store/node_modules/use-sync-external-store/shim/with-selector.js","../node_modules/@tanstack/store/dist/esm/scheduler.js","../node_modules/@tanstack/store/dist/esm/store.js","../node_modules/@tanstack/store/dist/esm/derived.js","../node_modules/@tanstack/react-store/dist/esm/index.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n","/**\n * @license React\n * use-sync-external-store-shim/with-selector.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\nexports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n};\n","/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\n exports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n ) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot))\n return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n };\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim/with-selector.development.js');\n}\n","import { Derived } from \"./derived.js\";\nconst __storeToDerived = /* @__PURE__ */ new WeakMap();\nconst __derivedToStore = /* @__PURE__ */ new WeakMap();\nconst __depsThatHaveWrittenThisTick = {\n current: []\n};\nlet __isFlushing = false;\nlet __batchDepth = 0;\nconst __pendingUpdates = /* @__PURE__ */ new Set();\nconst __initialBatchValues = /* @__PURE__ */ new Map();\nfunction __flush_internals(relatedVals) {\n const sorted = Array.from(relatedVals).sort((a, b) => {\n if (a instanceof Derived && a.options.deps.includes(b)) return 1;\n if (b instanceof Derived && b.options.deps.includes(a)) return -1;\n return 0;\n });\n for (const derived of sorted) {\n if (__depsThatHaveWrittenThisTick.current.includes(derived)) {\n continue;\n }\n __depsThatHaveWrittenThisTick.current.push(derived);\n derived.recompute();\n const stores = __derivedToStore.get(derived);\n if (stores) {\n for (const store of stores) {\n const relatedLinkedDerivedVals = __storeToDerived.get(store);\n if (!relatedLinkedDerivedVals) continue;\n __flush_internals(relatedLinkedDerivedVals);\n }\n }\n }\n}\nfunction __notifyListeners(store) {\n store.listeners.forEach(\n (listener) => listener({\n prevVal: store.prevState,\n currentVal: store.state\n })\n );\n}\nfunction __notifyDerivedListeners(derived) {\n derived.listeners.forEach(\n (listener) => listener({\n prevVal: derived.prevState,\n currentVal: derived.state\n })\n );\n}\nfunction __flush(store) {\n if (__batchDepth > 0 && !__initialBatchValues.has(store)) {\n __initialBatchValues.set(store, store.prevState);\n }\n __pendingUpdates.add(store);\n if (__batchDepth > 0) return;\n if (__isFlushing) return;\n try {\n __isFlushing = true;\n while (__pendingUpdates.size > 0) {\n const stores = Array.from(__pendingUpdates);\n __pendingUpdates.clear();\n for (const store2 of stores) {\n const prevState = __initialBatchValues.get(store2) ?? store2.prevState;\n store2.prevState = prevState;\n __notifyListeners(store2);\n }\n for (const store2 of stores) {\n const derivedVals = __storeToDerived.get(store2);\n if (!derivedVals) continue;\n __depsThatHaveWrittenThisTick.current.push(store2);\n __flush_internals(derivedVals);\n }\n for (const store2 of stores) {\n const derivedVals = __storeToDerived.get(store2);\n if (!derivedVals) continue;\n for (const derived of derivedVals) {\n __notifyDerivedListeners(derived);\n }\n }\n }\n } finally {\n __isFlushing = false;\n __depsThatHaveWrittenThisTick.current = [];\n __initialBatchValues.clear();\n }\n}\nfunction batch(fn) {\n __batchDepth++;\n try {\n fn();\n } finally {\n __batchDepth--;\n if (__batchDepth === 0) {\n const pendingUpdateToFlush = Array.from(__pendingUpdates)[0];\n if (pendingUpdateToFlush) {\n __flush(pendingUpdateToFlush);\n }\n }\n }\n}\nexport {\n __depsThatHaveWrittenThisTick,\n __derivedToStore,\n __flush,\n __storeToDerived,\n batch\n};\n//# sourceMappingURL=scheduler.js.map\n","import { __flush } from \"./scheduler.js\";\nclass Store {\n constructor(initialState, options) {\n this.listeners = /* @__PURE__ */ new Set();\n this.subscribe = (listener) => {\n var _a, _b;\n this.listeners.add(listener);\n const unsub = (_b = (_a = this.options) == null ? void 0 : _a.onSubscribe) == null ? void 0 : _b.call(_a, listener, this);\n return () => {\n this.listeners.delete(listener);\n unsub == null ? void 0 : unsub();\n };\n };\n this.setState = (updater) => {\n var _a, _b, _c;\n this.prevState = this.state;\n this.state = ((_a = this.options) == null ? void 0 : _a.updateFn) ? this.options.updateFn(this.prevState)(updater) : updater(this.prevState);\n (_c = (_b = this.options) == null ? void 0 : _b.onUpdate) == null ? void 0 : _c.call(_b);\n __flush(this);\n };\n this.prevState = initialState;\n this.state = initialState;\n this.options = options;\n }\n}\nexport {\n Store\n};\n//# sourceMappingURL=store.js.map\n","import { Store } from \"./store.js\";\nimport { __storeToDerived, __derivedToStore } from \"./scheduler.js\";\nclass Derived {\n constructor(options) {\n this.listeners = /* @__PURE__ */ new Set();\n this._subscriptions = [];\n this.lastSeenDepValues = [];\n this.getDepVals = () => {\n const prevDepVals = [];\n const currDepVals = [];\n for (const dep of this.options.deps) {\n prevDepVals.push(dep.prevState);\n currDepVals.push(dep.state);\n }\n this.lastSeenDepValues = currDepVals;\n return {\n prevDepVals,\n currDepVals,\n prevVal: this.prevState ?? void 0\n };\n };\n this.recompute = () => {\n var _a, _b;\n this.prevState = this.state;\n const { prevDepVals, currDepVals, prevVal } = this.getDepVals();\n this.state = this.options.fn({\n prevDepVals,\n currDepVals,\n prevVal\n });\n (_b = (_a = this.options).onUpdate) == null ? void 0 : _b.call(_a);\n };\n this.checkIfRecalculationNeededDeeply = () => {\n for (const dep of this.options.deps) {\n if (dep instanceof Derived) {\n dep.checkIfRecalculationNeededDeeply();\n }\n }\n let shouldRecompute = false;\n const lastSeenDepValues = this.lastSeenDepValues;\n const { currDepVals } = this.getDepVals();\n for (let i = 0; i < currDepVals.length; i++) {\n if (currDepVals[i] !== lastSeenDepValues[i]) {\n shouldRecompute = true;\n break;\n }\n }\n if (shouldRecompute) {\n this.recompute();\n }\n };\n this.mount = () => {\n this.registerOnGraph();\n this.checkIfRecalculationNeededDeeply();\n return () => {\n this.unregisterFromGraph();\n for (const cleanup of this._subscriptions) {\n cleanup();\n }\n };\n };\n this.subscribe = (listener) => {\n var _a, _b;\n this.listeners.add(listener);\n const unsub = (_b = (_a = this.options).onSubscribe) == null ? void 0 : _b.call(_a, listener, this);\n return () => {\n this.listeners.delete(listener);\n unsub == null ? void 0 : unsub();\n };\n };\n this.options = options;\n this.state = options.fn({\n prevDepVals: void 0,\n prevVal: void 0,\n currDepVals: this.getDepVals().currDepVals\n });\n }\n registerOnGraph(deps = this.options.deps) {\n for (const dep of deps) {\n if (dep instanceof Derived) {\n dep.registerOnGraph();\n this.registerOnGraph(dep.options.deps);\n } else if (dep instanceof Store) {\n let relatedLinkedDerivedVals = __storeToDerived.get(dep);\n if (!relatedLinkedDerivedVals) {\n relatedLinkedDerivedVals = /* @__PURE__ */ new Set();\n __storeToDerived.set(dep, relatedLinkedDerivedVals);\n }\n relatedLinkedDerivedVals.add(this);\n let relatedStores = __derivedToStore.get(this);\n if (!relatedStores) {\n relatedStores = /* @__PURE__ */ new Set();\n __derivedToStore.set(this, relatedStores);\n }\n relatedStores.add(dep);\n }\n }\n }\n unregisterFromGraph(deps = this.options.deps) {\n for (const dep of deps) {\n if (dep instanceof Derived) {\n this.unregisterFromGraph(dep.options.deps);\n } else if (dep instanceof Store) {\n const relatedLinkedDerivedVals = __storeToDerived.get(dep);\n if (relatedLinkedDerivedVals) {\n relatedLinkedDerivedVals.delete(this);\n }\n const relatedStores = __derivedToStore.get(this);\n if (relatedStores) {\n relatedStores.delete(dep);\n }\n }\n }\n }\n}\nexport {\n Derived\n};\n//# sourceMappingURL=derived.js.map\n","import { useSyncExternalStoreWithSelector } from \"use-sync-external-store/shim/with-selector.js\";\nexport * from \"@tanstack/store\";\nfunction useStore(store, selector = (d) => d) {\n const slice = useSyncExternalStoreWithSelector(\n store.subscribe,\n () => store.state,\n () => store.state,\n selector,\n shallow\n );\n return slice;\n}\nfunction shallow(objA, objB) {\n if (Object.is(objA, objB)) {\n return true;\n }\n if (typeof objA !== \"object\" || objA === null || typeof objB !== \"object\" || objB === null) {\n return false;\n }\n if (objA instanceof Map && objB instanceof Map) {\n if (objA.size !== objB.size) return false;\n for (const [k, v] of objA) {\n if (!objB.has(k) || !Object.is(v, objB.get(k))) return false;\n }\n return true;\n }\n if (objA instanceof Set && objB instanceof Set) {\n if (objA.size !== objB.size) return false;\n for (const v of objA) {\n if (!objB.has(v)) return false;\n }\n return true;\n }\n const keysA = Object.keys(objA);\n if (keysA.length !== Object.keys(objB).length) {\n return false;\n }\n for (let i = 0; i < keysA.length; i++) {\n if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !Object.is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n return true;\n}\nexport {\n shallow,\n useStore\n};\n//# sourceMappingURL=index.js.map\n"],"names":["require$$0","require$$1","useSyncExternalStoreWithSelector"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWA,IAAI,KAAK,GAAG,UAAgB,CAAC;AAC7B,CAAA,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE;GAChB,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;EAC1E;AACD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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import '../../node_modules/use-sync-external-store/shim/with-selector.js';
|
|
2
|
+
import { exports as withSelectorExports } from '../../../../../_virtual/with-selector.js';
|
|
3
|
+
|
|
4
|
+
function useStore(store, selector = (d) => d) {
|
|
5
|
+
const slice = withSelectorExports.useSyncExternalStoreWithSelector(
|
|
6
|
+
store.subscribe,
|
|
7
|
+
() => store.state,
|
|
8
|
+
() => store.state,
|
|
9
|
+
selector,
|
|
10
|
+
shallow
|
|
11
|
+
);
|
|
12
|
+
return slice;
|
|
13
|
+
}
|
|
14
|
+
function shallow(objA, objB) {
|
|
15
|
+
if (Object.is(objA, objB)) {
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
if (objA instanceof Map && objB instanceof Map) {
|
|
22
|
+
if (objA.size !== objB.size) return false;
|
|
23
|
+
for (const [k, v] of objA) {
|
|
24
|
+
if (!objB.has(k) || !Object.is(v, objB.get(k))) return false;
|
|
25
|
+
}
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
if (objA instanceof Set && objB instanceof Set) {
|
|
29
|
+
if (objA.size !== objB.size) return false;
|
|
30
|
+
for (const v of objA) {
|
|
31
|
+
if (!objB.has(v)) return false;
|
|
32
|
+
}
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
const keysA = Object.keys(objA);
|
|
36
|
+
if (keysA.length !== Object.keys(objB).length) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
for (let i = 0; i < keysA.length; i++) {
|
|
40
|
+
if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !Object.is(objA[keysA[i]], objB[keysA[i]])) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { shallow, useStore };
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@tanstack/react-store/dist/esm/index.js"],"sourcesContent":["import { useSyncExternalStoreWithSelector } from \"use-sync-external-store/shim/with-selector.js\";\nexport * from \"@tanstack/store\";\nfunction useStore(store, selector = (d) => d) {\n const slice = useSyncExternalStoreWithSelector(\n store.subscribe,\n () => store.state,\n () => store.state,\n selector,\n shallow\n );\n return slice;\n}\nfunction shallow(objA, objB) {\n if (Object.is(objA, objB)) {\n return true;\n }\n if (typeof objA !== \"object\" || objA === null || typeof objB !== \"object\" || objB === null) {\n return false;\n }\n if (objA instanceof Map && objB instanceof Map) {\n if (objA.size !== objB.size) return false;\n for (const [k, v] of objA) {\n if (!objB.has(k) || !Object.is(v, objB.get(k))) return false;\n }\n return true;\n }\n if (objA instanceof Set && objB instanceof Set) {\n if (objA.size !== objB.size) return false;\n for (const v of objA) {\n if (!objB.has(v)) return false;\n }\n return true;\n }\n const keysA = Object.keys(objA);\n if (keysA.length !== Object.keys(objB).length) {\n return false;\n }\n for (let i = 0; i < keysA.length; i++) {\n if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !Object.is(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n return true;\n}\nexport {\n shallow,\n useStore\n};\n//# sourceMappingURL=index.js.map\n"],"names":["useSyncExternalStoreWithSelector"],"mappings":";;;AAEA,SAAS,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE;AAC9C,EAAE,MAAM,KAAK,GAAGA,oDAAgC;AAChD,IAAI,KAAK,CAAC,SAAS;AACnB,IAAI,MAAM,KAAK,CAAC,KAAK;AACrB,IAAI,MAAM,KAAK,CAAC,KAAK;AACrB,IAAI,QAAQ;AACZ,IAAI,OAAO;AACX,GAAG,CAAC;AACJ,EAAE,OAAO,KAAK,CAAC;AACf,CAAC;AACD,SAAS,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE;AAC7B,EAAE,IAAI,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;AAC7B,IAAI,OAAO,IAAI,CAAC;AAChB,GAAG;AACH,EAAE,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;AAC9F,IAAI,OAAO,KAAK,CAAC;AACjB,GAAG;AACH,EAAE,IAAI,IAAI,YAAY,GAAG,IAAI,IAAI,YAAY,GAAG,EAAE;AAClD,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,EAAE,OAAO,KAAK,CAAC;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;AACnB,KAAK;AACL,GAAG;AACH,EAAE,OAAO,IAAI,CAAC;AACd;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { __exports as withSelector_development } from '../../../../../../../_virtual/with-selector.development.js';
|
|
2
|
+
import require$$0 from 'react';
|
|
3
|
+
import { __require as requireShim } from '../../shim/index.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @license React
|
|
7
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
var hasRequiredWithSelector_development;
|
|
16
|
+
|
|
17
|
+
function requireWithSelector_development () {
|
|
18
|
+
if (hasRequiredWithSelector_development) return withSelector_development;
|
|
19
|
+
hasRequiredWithSelector_development = 1;
|
|
20
|
+
"production" !== process.env.NODE_ENV &&
|
|
21
|
+
(function () {
|
|
22
|
+
function is(x, y) {
|
|
23
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
24
|
+
}
|
|
25
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
26
|
+
"function" ===
|
|
27
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|
28
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
29
|
+
var React = require$$0,
|
|
30
|
+
shim = requireShim(),
|
|
31
|
+
objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
32
|
+
useSyncExternalStore = shim.useSyncExternalStore,
|
|
33
|
+
useRef = React.useRef,
|
|
34
|
+
useEffect = React.useEffect,
|
|
35
|
+
useMemo = React.useMemo,
|
|
36
|
+
useDebugValue = React.useDebugValue;
|
|
37
|
+
withSelector_development.useSyncExternalStoreWithSelector = function (
|
|
38
|
+
subscribe,
|
|
39
|
+
getSnapshot,
|
|
40
|
+
getServerSnapshot,
|
|
41
|
+
selector,
|
|
42
|
+
isEqual
|
|
43
|
+
) {
|
|
44
|
+
var instRef = useRef(null);
|
|
45
|
+
if (null === instRef.current) {
|
|
46
|
+
var inst = { hasValue: !1, value: null };
|
|
47
|
+
instRef.current = inst;
|
|
48
|
+
} else inst = instRef.current;
|
|
49
|
+
instRef = useMemo(
|
|
50
|
+
function () {
|
|
51
|
+
function memoizedSelector(nextSnapshot) {
|
|
52
|
+
if (!hasMemo) {
|
|
53
|
+
hasMemo = !0;
|
|
54
|
+
memoizedSnapshot = nextSnapshot;
|
|
55
|
+
nextSnapshot = selector(nextSnapshot);
|
|
56
|
+
if (void 0 !== isEqual && inst.hasValue) {
|
|
57
|
+
var currentSelection = inst.value;
|
|
58
|
+
if (isEqual(currentSelection, nextSnapshot))
|
|
59
|
+
return (memoizedSelection = currentSelection);
|
|
60
|
+
}
|
|
61
|
+
return (memoizedSelection = nextSnapshot);
|
|
62
|
+
}
|
|
63
|
+
currentSelection = memoizedSelection;
|
|
64
|
+
if (objectIs(memoizedSnapshot, nextSnapshot))
|
|
65
|
+
return currentSelection;
|
|
66
|
+
var nextSelection = selector(nextSnapshot);
|
|
67
|
+
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
|
|
68
|
+
return (memoizedSnapshot = nextSnapshot), currentSelection;
|
|
69
|
+
memoizedSnapshot = nextSnapshot;
|
|
70
|
+
return (memoizedSelection = nextSelection);
|
|
71
|
+
}
|
|
72
|
+
var hasMemo = !1,
|
|
73
|
+
memoizedSnapshot,
|
|
74
|
+
memoizedSelection,
|
|
75
|
+
maybeGetServerSnapshot =
|
|
76
|
+
void 0 === getServerSnapshot ? null : getServerSnapshot;
|
|
77
|
+
return [
|
|
78
|
+
function () {
|
|
79
|
+
return memoizedSelector(getSnapshot());
|
|
80
|
+
},
|
|
81
|
+
null === maybeGetServerSnapshot
|
|
82
|
+
? void 0
|
|
83
|
+
: function () {
|
|
84
|
+
return memoizedSelector(maybeGetServerSnapshot());
|
|
85
|
+
}
|
|
86
|
+
];
|
|
87
|
+
},
|
|
88
|
+
[getSnapshot, getServerSnapshot, selector, isEqual]
|
|
89
|
+
);
|
|
90
|
+
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
91
|
+
useEffect(
|
|
92
|
+
function () {
|
|
93
|
+
inst.hasValue = !0;
|
|
94
|
+
inst.value = value;
|
|
95
|
+
},
|
|
96
|
+
[value]
|
|
97
|
+
);
|
|
98
|
+
useDebugValue(value);
|
|
99
|
+
return value;
|
|
100
|
+
};
|
|
101
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
102
|
+
"function" ===
|
|
103
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
104
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
105
|
+
})();
|
|
106
|
+
return withSelector_development;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export { requireWithSelector_development as __require };
|
|
110
|
+
//# sourceMappingURL=with-selector.development.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-selector.development.js","sources":["../../../../../../../../node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\n exports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n ) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot))\n return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n };\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n"],"names":["require$$1"],"mappings":";;;;;;;;;;;;;;;;;;;AAWA,CAAA,YAAY,KAAK,OAAO,CAAC,GAAG,CAAC,QAAQ;AACrC,GAAE,CAAC,YAAY;AACf,KAAI,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE;OAChB,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;MAC1E;KACD,WAAW,KAAK,OAAO,8BAA8B;AACzD,OAAM,UAAU;SACR,OAAO,8BAA8B,CAAC,2BAA2B;AACzE,OAAM,8BAA8B,CAAC,2BAA2B,CAAC,KAAK,EAAE,CAAC,CAAC;KACtE,IAAI,KAAK,GAAG,UAAgB;OAC1B,IAAI,GAAGA,WAAuC,EAAA;AACpD,OAAM,QAAQ,GAAG,UAAU,KAAK,OAAO,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,GAAG,EAAE;AACjE,OAAM,oBAAoB,GAAG,IAAI,CAAC,oBAAoB;AACtD,OAAM,MAAM,GAAG,KAAK,CAAC,MAAM;AAC3B,OAAM,SAAS,GAAG,KAAK,CAAC,SAAS;AACjC,OAAM,OAAO,GAAG,KAAK,CAAC,OAAO;AAC7B,OAAM,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;AAC1C,KAAI,yDAAwC,GAAG;AAC/C,OAAM,SAAS;AACf,OAAM,WAAW;AACjB,OAAM,iBAAiB;AACvB,OAAM,QAAQ;AACd,OAAM,OAAO;OACP;AACN,OAAM,IAAI,OAAO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GAAG,aAAa,EAAE;YAC5C;AACX,WAAU,IAAI,OAAO,GAAG,CAAC,CAAC;AAC1B,aAAY,gBAAgB;AAC5B,aAAY,iBAAiB;AAC7B,aAAY,sBAAsB;eACpB,KAAK,CAAC,KAAK,iBAAiB,GAAG,IAAI,GAAG,iBAAiB,CAAC;AACtE,WAAU,OAAO;AACjB,aAAY,YAAY;AACxB,eAAc,OAAO,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAC;cACxC;aACD,IAAI,KAAK,sBAAsB;AAC3C,iBAAgB,KAAK,CAAC;AACtB,iBAAgB,YAAY;AAC5B,mBAAkB,OAAO,gBAAgB,CAAC,sBAAsB,EAAE,CAAC,CAAC;kBACnD;AACjB,YAAW,CAAC;UACH;SACD,CAAC,WAAW,EAAE,iBAAiB,EAAE,QAAQ,EAAE,OAAO,CAAC;AAC3D,QAAO,CAAC;AACR,OAAM,IAAI,KAAK,GAAG,oBAAoB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1E,OAAM,SAAS;AACf,SAAQ,YAAY;AACpB,WAAU,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;AAC7B,WAAU,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;UACpB;SACD,CAAC,KAAK,CAAC;AACf,QAAO,CAAC;AACR,OAAM,aAAa,CAAC,KAAK,CAAC,CAAC;OACrB,OAAO,KAAK,CAAC;AACnB,MAAK,CAAC;KACF,WAAW,KAAK,OAAO,8BAA8B;AACzD,OAAM,UAAU;SACR,OAAO,8BAA8B,CAAC,0BAA0B;AACxE,OAAM,8BAA8B,CAAC,0BAA0B,CAAC,KAAK,EAAE,CAAC,CAAC;AACzE,IAAG,GAAG,CAAA;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { __exports as withSelector_production } from '../../../../../../../_virtual/with-selector.production.js';
|
|
2
|
+
import require$$0 from 'react';
|
|
3
|
+
import { __require as requireShim } from '../../shim/index.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @license React
|
|
7
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
var hasRequiredWithSelector_production;
|
|
16
|
+
|
|
17
|
+
function requireWithSelector_production () {
|
|
18
|
+
if (hasRequiredWithSelector_production) return withSelector_production;
|
|
19
|
+
hasRequiredWithSelector_production = 1;
|
|
20
|
+
var React = require$$0,
|
|
21
|
+
shim = requireShim();
|
|
22
|
+
function is(x, y) {
|
|
23
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
24
|
+
}
|
|
25
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
26
|
+
useSyncExternalStore = shim.useSyncExternalStore,
|
|
27
|
+
useRef = React.useRef,
|
|
28
|
+
useEffect = React.useEffect,
|
|
29
|
+
useMemo = React.useMemo,
|
|
30
|
+
useDebugValue = React.useDebugValue;
|
|
31
|
+
withSelector_production.useSyncExternalStoreWithSelector = function (
|
|
32
|
+
subscribe,
|
|
33
|
+
getSnapshot,
|
|
34
|
+
getServerSnapshot,
|
|
35
|
+
selector,
|
|
36
|
+
isEqual
|
|
37
|
+
) {
|
|
38
|
+
var instRef = useRef(null);
|
|
39
|
+
if (null === instRef.current) {
|
|
40
|
+
var inst = { hasValue: !1, value: null };
|
|
41
|
+
instRef.current = inst;
|
|
42
|
+
} else inst = instRef.current;
|
|
43
|
+
instRef = useMemo(
|
|
44
|
+
function () {
|
|
45
|
+
function memoizedSelector(nextSnapshot) {
|
|
46
|
+
if (!hasMemo) {
|
|
47
|
+
hasMemo = !0;
|
|
48
|
+
memoizedSnapshot = nextSnapshot;
|
|
49
|
+
nextSnapshot = selector(nextSnapshot);
|
|
50
|
+
if (void 0 !== isEqual && inst.hasValue) {
|
|
51
|
+
var currentSelection = inst.value;
|
|
52
|
+
if (isEqual(currentSelection, nextSnapshot))
|
|
53
|
+
return (memoizedSelection = currentSelection);
|
|
54
|
+
}
|
|
55
|
+
return (memoizedSelection = nextSnapshot);
|
|
56
|
+
}
|
|
57
|
+
currentSelection = memoizedSelection;
|
|
58
|
+
if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
|
|
59
|
+
var nextSelection = selector(nextSnapshot);
|
|
60
|
+
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
|
|
61
|
+
return (memoizedSnapshot = nextSnapshot), currentSelection;
|
|
62
|
+
memoizedSnapshot = nextSnapshot;
|
|
63
|
+
return (memoizedSelection = nextSelection);
|
|
64
|
+
}
|
|
65
|
+
var hasMemo = !1,
|
|
66
|
+
memoizedSnapshot,
|
|
67
|
+
memoizedSelection,
|
|
68
|
+
maybeGetServerSnapshot =
|
|
69
|
+
void 0 === getServerSnapshot ? null : getServerSnapshot;
|
|
70
|
+
return [
|
|
71
|
+
function () {
|
|
72
|
+
return memoizedSelector(getSnapshot());
|
|
73
|
+
},
|
|
74
|
+
null === maybeGetServerSnapshot
|
|
75
|
+
? void 0
|
|
76
|
+
: function () {
|
|
77
|
+
return memoizedSelector(maybeGetServerSnapshot());
|
|
78
|
+
}
|
|
79
|
+
];
|
|
80
|
+
},
|
|
81
|
+
[getSnapshot, getServerSnapshot, selector, isEqual]
|
|
82
|
+
);
|
|
83
|
+
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
84
|
+
useEffect(
|
|
85
|
+
function () {
|
|
86
|
+
inst.hasValue = !0;
|
|
87
|
+
inst.value = value;
|
|
88
|
+
},
|
|
89
|
+
[value]
|
|
90
|
+
);
|
|
91
|
+
useDebugValue(value);
|
|
92
|
+
return value;
|
|
93
|
+
};
|
|
94
|
+
return withSelector_production;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export { requireWithSelector_production as __require };
|
|
98
|
+
//# sourceMappingURL=with-selector.production.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-selector.production.js","sources":["../../../../../../../../node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim/with-selector.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\"),\n shim = require(\"use-sync-external-store/shim\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useSyncExternalStore = shim.useSyncExternalStore,\n useRef = React.useRef,\n useEffect = React.useEffect,\n useMemo = React.useMemo,\n useDebugValue = React.useDebugValue;\nexports.useSyncExternalStoreWithSelector = function (\n subscribe,\n getSnapshot,\n getServerSnapshot,\n selector,\n isEqual\n) {\n var instRef = useRef(null);\n if (null === instRef.current) {\n var inst = { hasValue: !1, value: null };\n instRef.current = inst;\n } else inst = instRef.current;\n instRef = useMemo(\n function () {\n function memoizedSelector(nextSnapshot) {\n if (!hasMemo) {\n hasMemo = !0;\n memoizedSnapshot = nextSnapshot;\n nextSnapshot = selector(nextSnapshot);\n if (void 0 !== isEqual && inst.hasValue) {\n var currentSelection = inst.value;\n if (isEqual(currentSelection, nextSnapshot))\n return (memoizedSelection = currentSelection);\n }\n return (memoizedSelection = nextSnapshot);\n }\n currentSelection = memoizedSelection;\n if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;\n var nextSelection = selector(nextSnapshot);\n if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))\n return (memoizedSnapshot = nextSnapshot), currentSelection;\n memoizedSnapshot = nextSnapshot;\n return (memoizedSelection = nextSelection);\n }\n var hasMemo = !1,\n memoizedSnapshot,\n memoizedSelection,\n maybeGetServerSnapshot =\n void 0 === getServerSnapshot ? null : getServerSnapshot;\n return [\n function () {\n return memoizedSelector(getSnapshot());\n },\n null === maybeGetServerSnapshot\n ? void 0\n : function () {\n return memoizedSelector(maybeGetServerSnapshot());\n }\n ];\n },\n [getSnapshot, getServerSnapshot, selector, isEqual]\n );\n var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);\n useEffect(\n function () {\n inst.hasValue = !0;\n inst.value = value;\n },\n [value]\n );\n useDebugValue(value);\n return value;\n};\n"],"names":["require$$1"],"mappings":";;;;;;;;;;;;;;;;;;;CAWA,IAAI,KAAK,GAAG,UAAgB;GAC1B,IAAI,GAAGA,WAAA,EAAuC,CAAC;AACjD,CAAA,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE;GAChB,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;EAC1E;AACD,CAAA,IAAI,QAAQ,GAAG,UAAU,KAAK,OAAO,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,GAAG,EAAE;AAC/D,GAAE,oBAAoB,GAAG,IAAI,CAAC,oBAAoB;AAClD,GAAE,MAAM,GAAG,KAAK,CAAC,MAAM;AACvB,GAAE,SAAS,GAAG,KAAK,CAAC,SAAS;AAC7B,GAAE,OAAO,GAAG,KAAK,CAAC,OAAO;AACzB,GAAE,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC;AACtC,CAAA,uBAAA,CAAA,gCAAwC,GAAG;AAC3C,GAAE,SAAS;AACX,GAAE,WAAW;AACb,GAAE,iBAAiB;AACnB,GAAE,QAAQ;AACV,GAAE,OAAO;GACP;AACF,GAAE,IAAI,OAAO,GAAG,MAAM,CA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AAM,IAAI,OAAO,GAAG,CAAC,CAAC;AACtB,SAAQ,gBAAgB;AACxB,SAAQ,iBAAiB;AACzB,SAAQ,sBAAsB;WACpB,KAAK,CAAC,KAAK,iBAAiB,GAAG,IAAI,GAAG,iBAAiB,CAAC;AAClE,OAAM,OAAO;AACb,SAAQ,YAAY;AACpB,WAAU,OAAO,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAC;UACxC;SACD,IAAI,KAAK,sBAAsB;AACvC,aAAY,KAAK,CAAC;AAClB,aAAY,YAAY;AACxB,eAAc,OAAO,gBAAgB,CAAC,sBAAsB,EAAE,CAAC,CAAC;cACnD;AACb,QAAO,CAAC;MACH;KACD,CAAC,WAAW,EAAE,iBAAiB,EAAE,QAAQ,EAAE,OAAO,CAAC;AACvD,IAAG,CAAC;AACJ,GAAE,IAAI,KAAK,GAAG,oBAAoB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AACtE,GAAE,SAAS;AACX,KAAI,YAAY;AAChB,OAAM,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;AACzB,OAAM,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;MACpB;KACD,CAAC,KAAK,CAAC;AACX,IAAG,CAAC;AACJ,GAAE,aAAa,CAAC,KAAK,CAAC,CAAC;GACrB,OAAO,KAAK,CAAC;EACd,CAAA;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { __exports as useSyncExternalStoreShim_development } from '../../../../../../_virtual/use-sync-external-store-shim.development.js';
|
|
2
|
+
import require$$0 from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* use-sync-external-store-shim.development.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
var hasRequiredUseSyncExternalStoreShim_development;
|
|
15
|
+
|
|
16
|
+
function requireUseSyncExternalStoreShim_development () {
|
|
17
|
+
if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
|
|
18
|
+
hasRequiredUseSyncExternalStoreShim_development = 1;
|
|
19
|
+
"production" !== process.env.NODE_ENV &&
|
|
20
|
+
(function () {
|
|
21
|
+
function is(x, y) {
|
|
22
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
23
|
+
}
|
|
24
|
+
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
25
|
+
didWarnOld18Alpha ||
|
|
26
|
+
void 0 === React.startTransition ||
|
|
27
|
+
((didWarnOld18Alpha = !0),
|
|
28
|
+
console.error(
|
|
29
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
30
|
+
));
|
|
31
|
+
var value = getSnapshot();
|
|
32
|
+
if (!didWarnUncachedGetSnapshot) {
|
|
33
|
+
var cachedValue = getSnapshot();
|
|
34
|
+
objectIs(value, cachedValue) ||
|
|
35
|
+
(console.error(
|
|
36
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
37
|
+
),
|
|
38
|
+
(didWarnUncachedGetSnapshot = !0));
|
|
39
|
+
}
|
|
40
|
+
cachedValue = useState({
|
|
41
|
+
inst: { value: value, getSnapshot: getSnapshot }
|
|
42
|
+
});
|
|
43
|
+
var inst = cachedValue[0].inst,
|
|
44
|
+
forceUpdate = cachedValue[1];
|
|
45
|
+
useLayoutEffect(
|
|
46
|
+
function () {
|
|
47
|
+
inst.value = value;
|
|
48
|
+
inst.getSnapshot = getSnapshot;
|
|
49
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
50
|
+
},
|
|
51
|
+
[subscribe, value, getSnapshot]
|
|
52
|
+
);
|
|
53
|
+
useEffect(
|
|
54
|
+
function () {
|
|
55
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
56
|
+
return subscribe(function () {
|
|
57
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
58
|
+
});
|
|
59
|
+
},
|
|
60
|
+
[subscribe]
|
|
61
|
+
);
|
|
62
|
+
useDebugValue(value);
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
function checkIfSnapshotChanged(inst) {
|
|
66
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
67
|
+
inst = inst.value;
|
|
68
|
+
try {
|
|
69
|
+
var nextValue = latestGetSnapshot();
|
|
70
|
+
return !objectIs(inst, nextValue);
|
|
71
|
+
} catch (error) {
|
|
72
|
+
return !0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
76
|
+
return getSnapshot();
|
|
77
|
+
}
|
|
78
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
79
|
+
"function" ===
|
|
80
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|
81
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
82
|
+
var React = require$$0,
|
|
83
|
+
objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
84
|
+
useState = React.useState,
|
|
85
|
+
useEffect = React.useEffect,
|
|
86
|
+
useLayoutEffect = React.useLayoutEffect,
|
|
87
|
+
useDebugValue = React.useDebugValue,
|
|
88
|
+
didWarnOld18Alpha = !1,
|
|
89
|
+
didWarnUncachedGetSnapshot = !1,
|
|
90
|
+
shim =
|
|
91
|
+
"undefined" === typeof window ||
|
|
92
|
+
"undefined" === typeof window.document ||
|
|
93
|
+
"undefined" === typeof window.document.createElement
|
|
94
|
+
? useSyncExternalStore$1
|
|
95
|
+
: useSyncExternalStore$2;
|
|
96
|
+
useSyncExternalStoreShim_development.useSyncExternalStore =
|
|
97
|
+
void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
|
|
98
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
99
|
+
"function" ===
|
|
100
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
101
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
102
|
+
})();
|
|
103
|
+
return useSyncExternalStoreShim_development;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export { requireUseSyncExternalStoreShim_development as __require };
|
|
107
|
+
//# sourceMappingURL=use-sync-external-store-shim.development.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sync-external-store-shim.development.js","sources":["../../../../../../../node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n"],"names":[],"mappings":";;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AAG,UAAU,KAAK,OAAO,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,GAAG,EAAE;AACjE,OAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ;AAC/B,OAAM,SAAS,GAAG,KAAK,CAAC,SAAS;AACjC,OAAM,eAAe,GAAG,KAAK,CAAC,eAAe;AAC7C,OAAM,aAAa,GAAG,KAAK,CAAC,aAAa;OACnC,iBAAiB,GAAG,CAAC,CAAC;OACtB,0BAA0B,GAAG,CAAC,CAAC;AACrC,OAAM,IAAI;SACF,WAAW,KAAK,OAAO,MAAM;AACrC,SAAQ,WAAW,KAAK,OAAO,MAAM,CAAC,QAAQ;AAC9C,SAAQ,WAAW,KAAK,OAAO,MAAM,CAAC,QAAQ,CAAC,aAAa;AAC5D,aAAY,sBAAsB;AAClC,aAAY,sBAAsB,CAAC;AACnC,KAAI,oCAA4B,CAAA,oBAAA;AAChC,OAAM,KAAK,CAAC,KAAK,KAAK,CAAC,oBAAoB,GAAG,KAAK,CAAC,oBAAoB,GAAG,IAAI,CAAC;KAC5E,WAAW,KAAK,OAAO,8BAA8B;AACzD,OAAM,UAAU;SACR,OAAO,8BAA8B,CAAC,0BAA0B;AACxE,OAAM,8BAA8B,CAAC,0BAA0B,CAAC,KAAK,EAAE,CAAC,CAAC;AACzE,IAAG,GAAG,CAAA;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { __exports as useSyncExternalStoreShim_production } from '../../../../../../_virtual/use-sync-external-store-shim.production.js';
|
|
2
|
+
import require$$0 from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* use-sync-external-store-shim.production.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
var hasRequiredUseSyncExternalStoreShim_production;
|
|
15
|
+
|
|
16
|
+
function requireUseSyncExternalStoreShim_production () {
|
|
17
|
+
if (hasRequiredUseSyncExternalStoreShim_production) return useSyncExternalStoreShim_production;
|
|
18
|
+
hasRequiredUseSyncExternalStoreShim_production = 1;
|
|
19
|
+
var React = require$$0;
|
|
20
|
+
function is(x, y) {
|
|
21
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
22
|
+
}
|
|
23
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
24
|
+
useState = React.useState,
|
|
25
|
+
useEffect = React.useEffect,
|
|
26
|
+
useLayoutEffect = React.useLayoutEffect,
|
|
27
|
+
useDebugValue = React.useDebugValue;
|
|
28
|
+
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
29
|
+
var value = getSnapshot(),
|
|
30
|
+
_useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),
|
|
31
|
+
inst = _useState[0].inst,
|
|
32
|
+
forceUpdate = _useState[1];
|
|
33
|
+
useLayoutEffect(
|
|
34
|
+
function () {
|
|
35
|
+
inst.value = value;
|
|
36
|
+
inst.getSnapshot = getSnapshot;
|
|
37
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
38
|
+
},
|
|
39
|
+
[subscribe, value, getSnapshot]
|
|
40
|
+
);
|
|
41
|
+
useEffect(
|
|
42
|
+
function () {
|
|
43
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
44
|
+
return subscribe(function () {
|
|
45
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
[subscribe]
|
|
49
|
+
);
|
|
50
|
+
useDebugValue(value);
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
function checkIfSnapshotChanged(inst) {
|
|
54
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
55
|
+
inst = inst.value;
|
|
56
|
+
try {
|
|
57
|
+
var nextValue = latestGetSnapshot();
|
|
58
|
+
return !objectIs(inst, nextValue);
|
|
59
|
+
} catch (error) {
|
|
60
|
+
return !0;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
64
|
+
return getSnapshot();
|
|
65
|
+
}
|
|
66
|
+
var shim =
|
|
67
|
+
"undefined" === typeof window ||
|
|
68
|
+
"undefined" === typeof window.document ||
|
|
69
|
+
"undefined" === typeof window.document.createElement
|
|
70
|
+
? useSyncExternalStore$1
|
|
71
|
+
: useSyncExternalStore$2;
|
|
72
|
+
useSyncExternalStoreShim_production.useSyncExternalStore =
|
|
73
|
+
void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
|
|
74
|
+
return useSyncExternalStoreShim_production;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { requireUseSyncExternalStoreShim_production as __require };
|
|
78
|
+
//# sourceMappingURL=use-sync-external-store-shim.production.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sync-external-store-shim.production.js","sources":["../../../../../../../node_modules/@tanstack/react-store/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;CAWA,IAAI,KAAK,GAAG,UAAgB,CAAC;AAC7B,CAAA,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE;GAChB,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;EAC1E;AACD,CAAA,IAAI,QAAQ,GAAG,UAAU,KAAK,OAAO,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,GAAG,EAAE;AAC/D,GAAE,QAAQ,GAAG,KAAK,CAAC,QAAQ;AAC3B,GAAE,SAAS,GAAG,KAAK,CAAC,SAAS;AAC7B,GAAE,eAAe,GAAG,KAAK,CAAC,eAAe;AACzC,GAAE,aAAa,GAAG,KAAK,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;AACN,KAAI,IAAI,SAAS,GAAG,iBAAiB,EAAE,CAAC;KACpC,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACnC,CAAC,OAAO,KAAK,EAAE;KACd,OAAO,CAAC,CAAC,CAAC;IACX;EACF;AACD,CAAA,SAAS,sBAAsB,CAAC,SAAS,EAAE,WAAW,EAAE;GACtD,OAAO,WAAW,EAAE,CAAC;EACtB;AACD,CAAA,IAAI,IAAI;GACN,WAAW,KAAK,OAAO,MAAM;AAC/B,GAAE,WAAW,KAAK,OAAO,MAAM,CAAC,QAAQ;AACxC,GAAE,WAAW,KAAK,OAAO,MAAM,CAAC,QAAQ,CAAC,aAAa;AACtD,OAAM,sBAAsB;AAC5B,OAAM,sBAAsB,CAAC;AAC7B,CAA4B,mCAAA,CAAA,oBAAA;GAC1B,KAAK,CAAC,KAAK,KAAK,CAAC,oBAAoB,GAAG,KAAK,CAAC,oBAAoB,GAAG,IAAI,CAAA;;;;;;","x_google_ignoreList":[0]}
|
package/dist/node_modules/@tanstack/react-store/node_modules/use-sync-external-store/shim/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { exports as shimExports, __module as shim } from '../../../../../../_virtual/index.js';
|
|
2
|
+
import { __require as requireUseSyncExternalStoreShim_production } from '../cjs/use-sync-external-store-shim.production.js';
|
|
3
|
+
import { __require as requireUseSyncExternalStoreShim_development } from '../cjs/use-sync-external-store-shim.development.js';
|
|
4
|
+
|
|
5
|
+
var hasRequiredShim;
|
|
6
|
+
|
|
7
|
+
function requireShim () {
|
|
8
|
+
if (hasRequiredShim) return shimExports;
|
|
9
|
+
hasRequiredShim = 1;
|
|
10
|
+
(function (module) {
|
|
11
|
+
|
|
12
|
+
if (process.env.NODE_ENV === 'production') {
|
|
13
|
+
module.exports = requireUseSyncExternalStoreShim_production();
|
|
14
|
+
} else {
|
|
15
|
+
module.exports = requireUseSyncExternalStoreShim_development();
|
|
16
|
+
}
|
|
17
|
+
} (shim));
|
|
18
|
+
return shimExports;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { requireShim as __require };
|
|
22
|
+
//# sourceMappingURL=index.js.map
|