@kontexted/darwin-arm64 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @kontexted/darwin-arm64 might be problematic. Click here for more details.
- package/bin/kontexted +0 -0
- package/bin/kontexted-migrate +0 -0
- package/migrations/postgresql/0000_mysterious_sharon_ventura.sql +219 -0
- package/migrations/postgresql/meta/0000_snapshot.json +1678 -0
- package/migrations/postgresql/meta/_journal.json +13 -0
- package/migrations/sqlite/0000_low_old_lace.sql +219 -0
- package/migrations/sqlite/meta/0000_snapshot.json +1587 -0
- package/migrations/sqlite/meta/_journal.json +13 -0
- package/package.json +22 -0
- package/public/assets/index-D7m-7Tv3.css +1 -0
- package/public/assets/index-zo0m3331.js +321 -0
- package/public/assets/index-zo0m3331.js.map +1 -0
- package/public/assets/react-vendor-Bz9DKma8.js +10 -0
- package/public/assets/react-vendor-Bz9DKma8.js.map +1 -0
- package/public/assets/state-vendor-BT1BogGT.js +18 -0
- package/public/assets/state-vendor-BT1BogGT.js.map +1 -0
- package/public/index.html +15 -0
- package/public/logo.png +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{r as O}from"./state-vendor-BT1BogGT.js";var y={exports:{}},n={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-dom.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var o;function S(){if(o)return n;o=1;var u=O();function g(r){var e="https://react.dev/errors/"+r;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+r+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var i={d:{f:c,r:function(){throw Error(g(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(r,e,t){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:a==null?null:""+a,children:r,containerInfo:e,implementation:t}}var f=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(r,e){if(r==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}return n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,n.createPortal=function(r,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(g(299));return v(r,e,null,t)},n.flushSync=function(r){var e=f.T,t=i.p;try{if(f.T=null,i.p=2,r)return r()}finally{f.T=e,i.p=t,i.d.f()}},n.preconnect=function(r,e){typeof r=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,i.d.C(r,e))},n.prefetchDNS=function(r){typeof r=="string"&&i.d.D(r)},n.preinit=function(r,e){if(typeof r=="string"&&e&&typeof e.as=="string"){var t=e.as,a=d(t,e.crossOrigin),s=typeof e.integrity=="string"?e.integrity:void 0,l=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;t==="style"?i.d.S(r,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:a,integrity:s,fetchPriority:l}):t==="script"&&i.d.X(r,{crossOrigin:a,integrity:s,fetchPriority:l,nonce:typeof e.nonce=="string"?e.nonce:void 0})}},n.preinitModule=function(r,e){if(typeof r=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var t=d(e.as,e.crossOrigin);i.d.M(r,{crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&i.d.M(r)},n.preload=function(r,e){if(typeof r=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var t=e.as,a=d(t,e.crossOrigin);i.d.L(r,t,{crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}},n.preloadModule=function(r,e){if(typeof r=="string")if(e){var t=d(e.as,e.crossOrigin);i.d.m(r,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else i.d.m(r)},n.requestFormReset=function(r){i.d.r(r)},n.unstable_batchedUpdates=function(r,e){return r(e)},n.useFormState=function(r,e,t){return f.H.useFormState(r,e,t)},n.useFormStatus=function(){return f.H.useHostTransitionStatus()},n.version="19.2.4",n}var _;function T(){if(_)return y.exports;_=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(g){console.error(g)}}return u(),y.exports=S(),y.exports}export{T as r};
|
|
10
|
+
//# sourceMappingURL=react-vendor-Bz9DKma8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-vendor-Bz9DKma8.js","sources":["../../node_modules/react-dom/cjs/react-dom.production.js","../../node_modules/react-dom/index.js"],"sourcesContent":["/**\n * @license React\n * react-dom.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 formatProdErrorMessage(code) {\n var url = \"https://react.dev/errors/\" + code;\n if (1 < arguments.length) {\n url += \"?args[]=\" + encodeURIComponent(arguments[1]);\n for (var i = 2; i < arguments.length; i++)\n url += \"&args[]=\" + encodeURIComponent(arguments[i]);\n }\n return (\n \"Minified React error #\" +\n code +\n \"; visit \" +\n url +\n \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"\n );\n}\nfunction noop() {}\nvar Internals = {\n d: {\n f: noop,\n r: function () {\n throw Error(formatProdErrorMessage(522));\n },\n D: noop,\n C: noop,\n L: noop,\n m: noop,\n X: noop,\n S: noop,\n M: noop\n },\n p: 0,\n findDOMNode: null\n },\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\");\nfunction createPortal$1(children, containerInfo, implementation) {\n var key =\n 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n return {\n $$typeof: REACT_PORTAL_TYPE,\n key: null == key ? null : \"\" + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n}\nvar ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nfunction getCrossOriginStringAs(as, input) {\n if (\"font\" === as) return \"\";\n if (\"string\" === typeof input)\n return \"use-credentials\" === input ? input : \"\";\n}\nexports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n Internals;\nexports.createPortal = function (children, container) {\n var key =\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;\n if (\n !container ||\n (1 !== container.nodeType &&\n 9 !== container.nodeType &&\n 11 !== container.nodeType)\n )\n throw Error(formatProdErrorMessage(299));\n return createPortal$1(children, container, null, key);\n};\nexports.flushSync = function (fn) {\n var previousTransition = ReactSharedInternals.T,\n previousUpdatePriority = Internals.p;\n try {\n if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();\n } finally {\n (ReactSharedInternals.T = previousTransition),\n (Internals.p = previousUpdatePriority),\n Internals.d.f();\n }\n};\nexports.preconnect = function (href, options) {\n \"string\" === typeof href &&\n (options\n ? ((options = options.crossOrigin),\n (options =\n \"string\" === typeof options\n ? \"use-credentials\" === options\n ? options\n : \"\"\n : void 0))\n : (options = null),\n Internals.d.C(href, options));\n};\nexports.prefetchDNS = function (href) {\n \"string\" === typeof href && Internals.d.D(href);\n};\nexports.preinit = function (href, options) {\n if (\"string\" === typeof href && options && \"string\" === typeof options.as) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),\n integrity =\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n fetchPriority =\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0;\n \"style\" === as\n ? Internals.d.S(\n href,\n \"string\" === typeof options.precedence ? options.precedence : void 0,\n {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority\n }\n )\n : \"script\" === as &&\n Internals.d.X(href, {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n }\n};\nexports.preinitModule = function (href, options) {\n if (\"string\" === typeof href)\n if (\"object\" === typeof options && null !== options) {\n if (null == options.as || \"script\" === options.as) {\n var crossOrigin = getCrossOriginStringAs(\n options.as,\n options.crossOrigin\n );\n Internals.d.M(href, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n }\n } else null == options && Internals.d.M(href);\n};\nexports.preload = function (href, options) {\n if (\n \"string\" === typeof href &&\n \"object\" === typeof options &&\n null !== options &&\n \"string\" === typeof options.as\n ) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);\n Internals.d.L(href, as, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n type: \"string\" === typeof options.type ? options.type : void 0,\n fetchPriority:\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0,\n referrerPolicy:\n \"string\" === typeof options.referrerPolicy\n ? options.referrerPolicy\n : void 0,\n imageSrcSet:\n \"string\" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,\n imageSizes:\n \"string\" === typeof options.imageSizes ? options.imageSizes : void 0,\n media: \"string\" === typeof options.media ? options.media : void 0\n });\n }\n};\nexports.preloadModule = function (href, options) {\n if (\"string\" === typeof href)\n if (options) {\n var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);\n Internals.d.m(href, {\n as:\n \"string\" === typeof options.as && \"script\" !== options.as\n ? options.as\n : void 0,\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0\n });\n } else Internals.d.m(href);\n};\nexports.requestFormReset = function (form) {\n Internals.d.r(form);\n};\nexports.unstable_batchedUpdates = function (fn, a) {\n return fn(a);\n};\nexports.useFormState = function (action, initialState, permalink) {\n return ReactSharedInternals.H.useFormState(action, initialState, permalink);\n};\nexports.useFormStatus = function () {\n return ReactSharedInternals.H.useHostTransitionStatus();\n};\nexports.version = \"19.2.4\";\n","'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n"],"names":["React","require$$0","formatProdErrorMessage","code","url","i","noop","Internals","REACT_PORTAL_TYPE","createPortal$1","children","containerInfo","implementation","key","ReactSharedInternals","getCrossOriginStringAs","as","input","reactDom_production","container","fn","previousTransition","previousUpdatePriority","href","options","crossOrigin","integrity","fetchPriority","form","a","action","initialState","permalink","checkDCE","err","reactDomModule"],"mappings":"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","x_google_ignoreList":[0,1]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var Ue=e=>{throw TypeError(e)};var de=(e,t,s)=>t.has(e)||Ue("Cannot "+s);var i=(e,t,s)=>(de(e,t,"read from private field"),s?s.call(e):t.get(e)),f=(e,t,s)=>t.has(e)?Ue("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),c=(e,t,s,r)=>(de(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s),b=(e,t,s)=>(de(e,t,"access private method"),s);var ue=(e,t,s,r)=>({set _(a){c(e,t,a,s)},get _(){return i(e,t,r)}});function Os(e,t){for(var s=0;s<t.length;s++){const r=t[s];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pe={exports:{}},Xt={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var qe;function _s(){if(qe)return Xt;qe=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function s(r,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var h in a)h!=="key"&&(o[h]=a[h])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:o}}return Xt.Fragment=t,Xt.jsx=s,Xt.jsxs=s,Xt}var ke;function Ts(){return ke||(ke=1,pe.exports=_s()),pe.exports}var Ms=Ts(),ye={exports:{}},v={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var He;function As(){if(He)return v;He=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function p(n){return n===null||typeof n!="object"?null:(n=S&&n[S]||n["@@iterator"],typeof n=="function"?n:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,O={};function T(n,u,g){this.props=n,this.context=u,this.refs=O,this.updater=g||j}T.prototype.isReactComponent={},T.prototype.setState=function(n,u){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,u,"setState")},T.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function q(){}q.prototype=T.prototype;function F(n,u,g){this.props=n,this.context=u,this.refs=O,this.updater=g||j}var d=F.prototype=new q;d.constructor=F,w(d,T.prototype),d.isPureReactComponent=!0;var k=Array.isArray;function N(){}var _={H:null,A:null,T:null,S:null},x=Object.prototype.hasOwnProperty;function D(n,u,g){var m=g.ref;return{$$typeof:e,type:n,key:u,ref:m!==void 0?m:null,props:g}}function $(n,u){return D(n.type,u,n.props)}function Z(n){return typeof n=="object"&&n!==null&&n.$$typeof===e}function Dt(n){var u={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(g){return u[g]})}var Vt=/\/+/g;function ft(n,u){return typeof n=="object"&&n!==null&&n.key!=null?Dt(""+n.key):u.toString(36)}function Ut(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(N,N):(n.status="pending",n.then(function(u){n.status==="pending"&&(n.status="fulfilled",n.value=u)},function(u){n.status==="pending"&&(n.status="rejected",n.reason=u)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function qt(n,u,g,m,M){var I=typeof n;(I==="undefined"||I==="boolean")&&(n=null);var Q=!1;if(n===null)Q=!0;else switch(I){case"bigint":case"string":case"number":Q=!0;break;case"object":switch(n.$$typeof){case e:case t:Q=!0;break;case R:return Q=n._init,qt(Q(n._payload),u,g,m,M)}}if(Q)return M=M(n),Q=m===""?"."+ft(n,0):m,k(M)?(g="",Q!=null&&(g=Q.replace(Vt,"$&/")+"/"),qt(M,u,g,"",function(ws){return ws})):M!=null&&(Z(M)&&(M=$(M,g+(M.key==null||n&&n.key===M.key?"":(""+M.key).replace(Vt,"$&/")+"/")+Q)),u.push(M)),1;Q=0;var st=m===""?".":m+":";if(k(n))for(var z=0;z<n.length;z++)m=n[z],I=st+ft(m,z),Q+=qt(m,u,g,I,M);else if(z=p(n),typeof z=="function")for(n=z.call(n),z=0;!(m=n.next()).done;)m=m.value,I=st+ft(m,z++),Q+=qt(m,u,g,I,M);else if(I==="object"){if(typeof n.then=="function")return qt(Ut(n),u,g,m,M);throw u=String(n),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return Q}function oe(n,u,g){if(n==null)return n;var m=[],M=0;return qt(n,m,"","",function(I){return u.call(g,I,M++)}),m}function Cs(n){if(n._status===-1){var u=n._result;u=u(),u.then(function(g){(n._status===0||n._status===-1)&&(n._status=1,n._result=g)},function(g){(n._status===0||n._status===-1)&&(n._status=2,n._result=g)}),n._status===-1&&(n._status=0,n._result=u)}if(n._status===1)return n._result.default;throw n._result}var De=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Ss={map:oe,forEach:function(n,u,g){oe(n,function(){u.apply(this,arguments)},g)},count:function(n){var u=0;return oe(n,function(){u++}),u},toArray:function(n){return oe(n,function(u){return u})||[]},only:function(n){if(!Z(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};return v.Activity=y,v.Children=Ss,v.Component=T,v.Fragment=s,v.Profiler=a,v.PureComponent=F,v.StrictMode=r,v.Suspense=E,v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,v.__COMPILER_RUNTIME={__proto__:null,c:function(n){return _.H.useMemoCache(n)}},v.cache=function(n){return function(){return n.apply(null,arguments)}},v.cacheSignal=function(){return null},v.cloneElement=function(n,u,g){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var m=w({},n.props),M=n.key;if(u!=null)for(I in u.key!==void 0&&(M=""+u.key),u)!x.call(u,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&u.ref===void 0||(m[I]=u[I]);var I=arguments.length-2;if(I===1)m.children=g;else if(1<I){for(var Q=Array(I),st=0;st<I;st++)Q[st]=arguments[st+2];m.children=Q}return D(n.type,M,m)},v.createContext=function(n){return n={$$typeof:l,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:o,_context:n},n},v.createElement=function(n,u,g){var m,M={},I=null;if(u!=null)for(m in u.key!==void 0&&(I=""+u.key),u)x.call(u,m)&&m!=="key"&&m!=="__self"&&m!=="__source"&&(M[m]=u[m]);var Q=arguments.length-2;if(Q===1)M.children=g;else if(1<Q){for(var st=Array(Q),z=0;z<Q;z++)st[z]=arguments[z+2];M.children=st}if(n&&n.defaultProps)for(m in Q=n.defaultProps,Q)M[m]===void 0&&(M[m]=Q[m]);return D(n,I,M)},v.createRef=function(){return{current:null}},v.forwardRef=function(n){return{$$typeof:h,render:n}},v.isValidElement=Z,v.lazy=function(n){return{$$typeof:R,_payload:{_status:-1,_result:n},_init:Cs}},v.memo=function(n,u){return{$$typeof:C,type:n,compare:u===void 0?null:u}},v.startTransition=function(n){var u=_.T,g={};_.T=g;try{var m=n(),M=_.S;M!==null&&M(g,m),typeof m=="object"&&m!==null&&typeof m.then=="function"&&m.then(N,De)}catch(I){De(I)}finally{u!==null&&g.types!==null&&(u.types=g.types),_.T=u}},v.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},v.use=function(n){return _.H.use(n)},v.useActionState=function(n,u,g){return _.H.useActionState(n,u,g)},v.useCallback=function(n,u){return _.H.useCallback(n,u)},v.useContext=function(n){return _.H.useContext(n)},v.useDebugValue=function(){},v.useDeferredValue=function(n,u){return _.H.useDeferredValue(n,u)},v.useEffect=function(n,u){return _.H.useEffect(n,u)},v.useEffectEvent=function(n){return _.H.useEffectEvent(n)},v.useId=function(){return _.H.useId()},v.useImperativeHandle=function(n,u,g){return _.H.useImperativeHandle(n,u,g)},v.useInsertionEffect=function(n,u){return _.H.useInsertionEffect(n,u)},v.useLayoutEffect=function(n,u){return _.H.useLayoutEffect(n,u)},v.useMemo=function(n,u){return _.H.useMemo(n,u)},v.useOptimistic=function(n,u){return _.H.useOptimistic(n,u)},v.useReducer=function(n,u,g){return _.H.useReducer(n,u,g)},v.useRef=function(n){return _.H.useRef(n)},v.useState=function(n){return _.H.useState(n)},v.useSyncExternalStore=function(n,u,g){return _.H.useSyncExternalStore(n,u,g)},v.useTransition=function(){return _.H.useTransition()},v.version="19.2.4",v}var Le;function Fs(){return Le||(Le=1,ye.exports=As()),ye.exports}var L=Fs();const xs=Ps(L),pr=Os({__proto__:null,default:xs},[L]);var Zt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Is={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},pt,Ae,Xe,js=(Xe=class{constructor(){f(this,pt,Is);f(this,Ae,!1)}setTimeoutProvider(e){c(this,pt,e)}setTimeout(e,t){return i(this,pt).setTimeout(e,t)}clearTimeout(e){i(this,pt).clearTimeout(e)}setInterval(e,t){return i(this,pt).setInterval(e,t)}clearInterval(e){i(this,pt).clearInterval(e)}},pt=new WeakMap,Ae=new WeakMap,Xe),wt=new js;function Qs(e){setTimeout(e,0)}var jt=typeof window>"u"||"Deno"in globalThis;function B(){}function Ds(e,t){return typeof e=="function"?e(t):e}function ve(e){return typeof e=="number"&&e>=0&&e!==1/0}function hs(e,t){return Math.max(e+(t||0)-Date.now(),0)}function St(e,t){return typeof e=="function"?e(t):e}function X(e,t){return typeof e=="function"?e(t):e}function Ne(e,t){const{type:s="all",exact:r,fetchStatus:a,predicate:o,queryKey:l,stale:h}=e;if(l){if(r){if(t.queryHash!==Fe(l,t.options))return!1}else if(!ee(t.queryKey,l))return!1}if(s!=="all"){const E=t.isActive();if(s==="active"&&!E||s==="inactive"&&E)return!1}return!(typeof h=="boolean"&&t.isStale()!==h||a&&a!==t.state.fetchStatus||o&&!o(t))}function Ke(e,t){const{exact:s,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(s){if(Qt(t.options.mutationKey)!==Qt(o))return!1}else if(!ee(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Fe(e,t){return((t==null?void 0:t.queryKeyHashFn)||Qt)(e)}function Qt(e){return JSON.stringify(e,(t,s)=>me(s)?Object.keys(s).sort().reduce((r,a)=>(r[a]=s[a],r),{}):s)}function ee(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(s=>ee(e[s],t[s])):!1}var Us=Object.prototype.hasOwnProperty;function ls(e,t,s=0){if(e===t)return e;if(s>500)return t;const r=$e(e)&&$e(t);if(!r&&!(me(e)&&me(t)))return t;const o=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),h=l.length,E=r?new Array(h):{};let C=0;for(let R=0;R<h;R++){const y=r?R:l[R],S=e[y],p=t[y];if(S===p){E[y]=S,(r?R<o:Us.call(e,y))&&C++;continue}if(S===null||p===null||typeof S!="object"||typeof p!="object"){E[y]=p;continue}const j=ls(S,p,s+1);E[y]=j,j===S&&C++}return o===h&&C===o?e:E}function le(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function $e(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function me(e){if(!Ge(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!Ge(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ge(e){return Object.prototype.toString.call(e)==="[object Object]"}function qs(e){return new Promise(t=>{wt.setTimeout(t,e)})}function ge(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?ls(e,t):t}function ks(e,t,s=0){const r=[...e,t];return s&&r.length>s?r.slice(1):r}function Hs(e,t,s=0){const r=[t,...e];return s&&r.length>s?r.slice(0,-1):r}var xe=Symbol();function fs(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===xe?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ie(e,t){return typeof e=="function"?e(...t):!!e}function Ls(e,t,s){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),r||(r=!0,a.aborted?s():a.addEventListener("abort",s,{once:!0})),a)}),e}var Ot,yt,kt,ts,Ns=(ts=class extends Zt{constructor(){super();f(this,Ot);f(this,yt);f(this,kt);c(this,kt,t=>{if(!jt&&window.addEventListener){const s=()=>t();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){i(this,yt)||this.setEventListener(i(this,kt))}onUnsubscribe(){var t;this.hasListeners()||((t=i(this,yt))==null||t.call(this),c(this,yt,void 0))}setEventListener(t){var s;c(this,kt,t),(s=i(this,yt))==null||s.call(this),c(this,yt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){i(this,Ot)!==t&&(c(this,Ot,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(s=>{s(t)})}isFocused(){var t;return typeof i(this,Ot)=="boolean"?i(this,Ot):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ot=new WeakMap,yt=new WeakMap,kt=new WeakMap,ts),je=new Ns;function be(){let e,t;const s=new Promise((a,o)=>{e=a,t=o});s.status="pending",s.catch(()=>{});function r(a){Object.assign(s,a),delete s.resolve,delete s.reject}return s.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},s.reject=a=>{r({status:"rejected",reason:a}),t(a)},s}var Ks=Qs;function $s(){let e=[],t=0,s=h=>{h()},r=h=>{h()},a=Ks;const o=h=>{t?e.push(h):a(()=>{s(h)})},l=()=>{const h=e;e=[],h.length&&a(()=>{r(()=>{h.forEach(E=>{s(E)})})})};return{batch:h=>{let E;t++;try{E=h()}finally{t--,t||l()}return E},batchCalls:h=>(...E)=>{o(()=>{h(...E)})},schedule:o,setNotifyFunction:h=>{s=h},setBatchNotifyFunction:h=>{r=h},setScheduler:h=>{a=h}}}var H=$s(),Ht,vt,Lt,es,Gs=(es=class extends Zt{constructor(){super();f(this,Ht,!0);f(this,vt);f(this,Lt);c(this,Lt,t=>{if(!jt&&window.addEventListener){const s=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",r)}}})}onSubscribe(){i(this,vt)||this.setEventListener(i(this,Lt))}onUnsubscribe(){var t;this.hasListeners()||((t=i(this,vt))==null||t.call(this),c(this,vt,void 0))}setEventListener(t){var s;c(this,Lt,t),(s=i(this,vt))==null||s.call(this),c(this,vt,t(this.setOnline.bind(this)))}setOnline(t){i(this,Ht)!==t&&(c(this,Ht,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return i(this,Ht)}},Ht=new WeakMap,vt=new WeakMap,Lt=new WeakMap,es),fe=new Gs;function Ys(e){return Math.min(1e3*2**e,3e4)}function ds(e){return(e??"online")==="online"?fe.isOnline():!0}var Ee=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ps(e){let t=!1,s=0,r;const a=be(),o=()=>a.status!=="pending",l=w=>{var O;if(!o()){const T=new Ee(w);S(T),(O=e.onCancel)==null||O.call(e,T)}},h=()=>{t=!0},E=()=>{t=!1},C=()=>je.isFocused()&&(e.networkMode==="always"||fe.isOnline())&&e.canRun(),R=()=>ds(e.networkMode)&&e.canRun(),y=w=>{o()||(r==null||r(),a.resolve(w))},S=w=>{o()||(r==null||r(),a.reject(w))},p=()=>new Promise(w=>{var O;r=T=>{(o()||C())&&w(T)},(O=e.onPause)==null||O.call(e)}).then(()=>{var w;r=void 0,o()||(w=e.onContinue)==null||w.call(e)}),j=()=>{if(o())return;let w;const O=s===0?e.initialPromise:void 0;try{w=O??e.fn()}catch(T){w=Promise.reject(T)}Promise.resolve(w).then(y).catch(T=>{var N;if(o())return;const q=e.retry??(jt?0:3),F=e.retryDelay??Ys,d=typeof F=="function"?F(s,T):F,k=q===!0||typeof q=="number"&&s<q||typeof q=="function"&&q(s,T);if(t||!k){S(T);return}s++,(N=e.onFail)==null||N.call(e,s,T),qs(d).then(()=>C()?void 0:p()).then(()=>{t?S(T):j()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r==null||r(),a),cancelRetry:h,continueRetry:E,canStart:R,start:()=>(R()?j():p().then(j),a)}}var Pt,ss,ys=(ss=class{constructor(){f(this,Pt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ve(this.gcTime)&&c(this,Pt,wt.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(jt?1/0:300*1e3))}clearGcTimeout(){i(this,Pt)&&(wt.clearTimeout(i(this,Pt)),c(this,Pt,void 0))}},Pt=new WeakMap,ss),_t,Nt,V,Tt,K,se,Mt,tt,at,rs,Bs=(rs=class extends ys{constructor(t){super();f(this,tt);f(this,_t);f(this,Nt);f(this,V);f(this,Tt);f(this,K);f(this,se);f(this,Mt);c(this,Mt,!1),c(this,se,t.defaultOptions),this.setOptions(t.options),this.observers=[],c(this,Tt,t.client),c(this,V,i(this,Tt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,c(this,_t,Be(this.options)),this.state=t.state??i(this,_t),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=i(this,K))==null?void 0:t.promise}setOptions(t){if(this.options={...i(this,se),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=Be(this.options);s.data!==void 0&&(this.setState(Ye(s.data,s.dataUpdatedAt)),c(this,_t,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&i(this,V).remove(this)}setData(t,s){const r=ge(this.state.data,t,this.options);return b(this,tt,at).call(this,{data:r,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),r}setState(t,s){b(this,tt,at).call(this,{type:"setState",state:t,setStateOptions:s})}cancel(t){var r,a;const s=(r=i(this,K))==null?void 0:r.promise;return(a=i(this,K))==null||a.cancel(t),s?s.then(B).catch(B):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(i(this,_t))}isActive(){return this.observers.some(t=>X(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xe||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>St(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!hs(this.state.dataUpdatedAt,t)}onFocus(){var s;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(s=i(this,K))==null||s.continue()}onOnline(){var s;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(s=i(this,K))==null||s.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),i(this,V).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(s=>s!==t),this.observers.length||(i(this,K)&&(i(this,Mt)?i(this,K).cancel({revert:!0}):i(this,K).cancelRetry()),this.scheduleGc()),i(this,V).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||b(this,tt,at).call(this,{type:"invalidate"})}async fetch(t,s){var E,C,R,y,S,p,j,w,O,T,q,F;if(this.state.fetchStatus!=="idle"&&((E=i(this,K))==null?void 0:E.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(i(this,K))return i(this,K).continueRetry(),i(this,K).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(k=>k.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,a=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(c(this,Mt,!0),r.signal)})},o=()=>{const d=fs(this.options,s),N=(()=>{const _={client:i(this,Tt),queryKey:this.queryKey,meta:this.meta};return a(_),_})();return c(this,Mt,!1),this.options.persister?this.options.persister(d,N,this):d(N)},h=(()=>{const d={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:i(this,Tt),state:this.state,fetchFn:o};return a(d),d})();(C=this.options.behavior)==null||C.onFetch(h,this),c(this,Nt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((R=h.fetchOptions)==null?void 0:R.meta))&&b(this,tt,at).call(this,{type:"fetch",meta:(y=h.fetchOptions)==null?void 0:y.meta}),c(this,K,ps({initialPromise:s==null?void 0:s.initialPromise,fn:h.fetchFn,onCancel:d=>{d instanceof Ee&&d.revert&&this.setState({...i(this,Nt),fetchStatus:"idle"}),r.abort()},onFail:(d,k)=>{b(this,tt,at).call(this,{type:"failed",failureCount:d,error:k})},onPause:()=>{b(this,tt,at).call(this,{type:"pause"})},onContinue:()=>{b(this,tt,at).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0}));try{const d=await i(this,K).start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),(p=(S=i(this,V).config).onSuccess)==null||p.call(S,d,this),(w=(j=i(this,V).config).onSettled)==null||w.call(j,d,this.state.error,this),d}catch(d){if(d instanceof Ee){if(d.silent)return i(this,K).promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw b(this,tt,at).call(this,{type:"error",error:d}),(T=(O=i(this,V).config).onError)==null||T.call(O,d,this),(F=(q=i(this,V).config).onSettled)==null||F.call(q,this.state.data,d,this),d}finally{this.scheduleGc()}}},_t=new WeakMap,Nt=new WeakMap,V=new WeakMap,Tt=new WeakMap,K=new WeakMap,se=new WeakMap,Mt=new WeakMap,tt=new WeakSet,at=function(t){const s=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...vs(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...Ye(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return c(this,Nt,t.manual?a:void 0),a;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=s(this.state),H.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),i(this,V).notify({query:this,type:"updated",action:t})})},rs);function vs(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ds(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Ye(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Be(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,r=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var J,P,re,Y,At,Kt,ot,mt,ie,$t,Gt,Ft,xt,gt,Yt,A,te,Re,Ce,Se,we,Oe,Pe,_e,ms,is,zs=(is=class extends Zt{constructor(t,s){super();f(this,A);f(this,J);f(this,P);f(this,re);f(this,Y);f(this,At);f(this,Kt);f(this,ot);f(this,mt);f(this,ie);f(this,$t);f(this,Gt);f(this,Ft);f(this,xt);f(this,gt);f(this,Yt,new Set);this.options=s,c(this,J,t),c(this,mt,null),c(this,ot,be()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(i(this,P).addObserver(this),ze(i(this,P),this.options)?b(this,A,te).call(this):this.updateResult(),b(this,A,we).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Te(i(this,P),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Te(i(this,P),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,b(this,A,Oe).call(this),b(this,A,Pe).call(this),i(this,P).removeObserver(this)}setOptions(t){const s=this.options,r=i(this,P);if(this.options=i(this,J).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof X(this.options.enabled,i(this,P))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");b(this,A,_e).call(this),i(this,P).setOptions(this.options),s._defaulted&&!le(this.options,s)&&i(this,J).getQueryCache().notify({type:"observerOptionsUpdated",query:i(this,P),observer:this});const a=this.hasListeners();a&&Je(i(this,P),r,this.options,s)&&b(this,A,te).call(this),this.updateResult(),a&&(i(this,P)!==r||X(this.options.enabled,i(this,P))!==X(s.enabled,i(this,P))||St(this.options.staleTime,i(this,P))!==St(s.staleTime,i(this,P)))&&b(this,A,Re).call(this);const o=b(this,A,Ce).call(this);a&&(i(this,P)!==r||X(this.options.enabled,i(this,P))!==X(s.enabled,i(this,P))||o!==i(this,gt))&&b(this,A,Se).call(this,o)}getOptimisticResult(t){const s=i(this,J).getQueryCache().build(i(this,J),t),r=this.createResult(s,t);return Ws(this,r)&&(c(this,Y,r),c(this,Kt,this.options),c(this,At,i(this,P).state)),r}getCurrentResult(){return i(this,Y)}trackResult(t,s){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),s==null||s(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&i(this,ot).status==="pending"&&i(this,ot).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){i(this,Yt).add(t)}getCurrentQuery(){return i(this,P)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const s=i(this,J).defaultQueryOptions(t),r=i(this,J).getQueryCache().build(i(this,J),s);return r.fetch().then(()=>this.createResult(r,s))}fetch(t){return b(this,A,te).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),i(this,Y)))}createResult(t,s){var D;const r=i(this,P),a=this.options,o=i(this,Y),l=i(this,At),h=i(this,Kt),C=t!==r?t.state:i(this,re),{state:R}=t;let y={...R},S=!1,p;if(s._optimisticResults){const $=this.hasListeners(),Z=!$&&ze(t,s),Dt=$&&Je(t,r,s,a);(Z||Dt)&&(y={...y,...vs(R.data,t.options)}),s._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:j,errorUpdatedAt:w,status:O}=y;p=y.data;let T=!1;if(s.placeholderData!==void 0&&p===void 0&&O==="pending"){let $;o!=null&&o.isPlaceholderData&&s.placeholderData===(h==null?void 0:h.placeholderData)?($=o.data,T=!0):$=typeof s.placeholderData=="function"?s.placeholderData((D=i(this,Gt))==null?void 0:D.state.data,i(this,Gt)):s.placeholderData,$!==void 0&&(O="success",p=ge(o==null?void 0:o.data,$,s),S=!0)}if(s.select&&p!==void 0&&!T)if(o&&p===(l==null?void 0:l.data)&&s.select===i(this,ie))p=i(this,$t);else try{c(this,ie,s.select),p=s.select(p),p=ge(o==null?void 0:o.data,p,s),c(this,$t,p),c(this,mt,null)}catch($){c(this,mt,$)}i(this,mt)&&(j=i(this,mt),p=i(this,$t),w=Date.now(),O="error");const q=y.fetchStatus==="fetching",F=O==="pending",d=O==="error",k=F&&q,N=p!==void 0,x={status:O,fetchStatus:y.fetchStatus,isPending:F,isSuccess:O==="success",isError:d,isInitialLoading:k,isLoading:k,data:p,dataUpdatedAt:y.dataUpdatedAt,error:j,errorUpdatedAt:w,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>C.dataUpdateCount||y.errorUpdateCount>C.errorUpdateCount,isFetching:q,isRefetching:q&&!F,isLoadingError:d&&!N,isPaused:y.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:d&&N,isStale:Qe(t,s),refetch:this.refetch,promise:i(this,ot),isEnabled:X(s.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const $=x.data!==void 0,Z=x.status==="error"&&!$,Dt=Ut=>{Z?Ut.reject(x.error):$&&Ut.resolve(x.data)},Vt=()=>{const Ut=c(this,ot,x.promise=be());Dt(Ut)},ft=i(this,ot);switch(ft.status){case"pending":t.queryHash===r.queryHash&&Dt(ft);break;case"fulfilled":(Z||x.data!==ft.value)&&Vt();break;case"rejected":(!Z||x.error!==ft.reason)&&Vt();break}}return x}updateResult(){const t=i(this,Y),s=this.createResult(i(this,P),this.options);if(c(this,At,i(this,P).state),c(this,Kt,this.options),i(this,At).data!==void 0&&c(this,Gt,i(this,P)),le(s,t))return;c(this,Y,s);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!i(this,Yt).size)return!0;const l=new Set(o??i(this,Yt));return this.options.throwOnError&&l.add("error"),Object.keys(i(this,Y)).some(h=>{const E=h;return i(this,Y)[E]!==t[E]&&l.has(E)})};b(this,A,ms).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&b(this,A,we).call(this)}},J=new WeakMap,P=new WeakMap,re=new WeakMap,Y=new WeakMap,At=new WeakMap,Kt=new WeakMap,ot=new WeakMap,mt=new WeakMap,ie=new WeakMap,$t=new WeakMap,Gt=new WeakMap,Ft=new WeakMap,xt=new WeakMap,gt=new WeakMap,Yt=new WeakMap,A=new WeakSet,te=function(t){b(this,A,_e).call(this);let s=i(this,P).fetch(this.options,t);return t!=null&&t.throwOnError||(s=s.catch(B)),s},Re=function(){b(this,A,Oe).call(this);const t=St(this.options.staleTime,i(this,P));if(jt||i(this,Y).isStale||!ve(t))return;const r=hs(i(this,Y).dataUpdatedAt,t)+1;c(this,Ft,wt.setTimeout(()=>{i(this,Y).isStale||this.updateResult()},r))},Ce=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(i(this,P)):this.options.refetchInterval)??!1},Se=function(t){b(this,A,Pe).call(this),c(this,gt,t),!(jt||X(this.options.enabled,i(this,P))===!1||!ve(i(this,gt))||i(this,gt)===0)&&c(this,xt,wt.setInterval(()=>{(this.options.refetchIntervalInBackground||je.isFocused())&&b(this,A,te).call(this)},i(this,gt)))},we=function(){b(this,A,Re).call(this),b(this,A,Se).call(this,b(this,A,Ce).call(this))},Oe=function(){i(this,Ft)&&(wt.clearTimeout(i(this,Ft)),c(this,Ft,void 0))},Pe=function(){i(this,xt)&&(wt.clearInterval(i(this,xt)),c(this,xt,void 0))},_e=function(){const t=i(this,J).getQueryCache().build(i(this,J),this.options);if(t===i(this,P))return;const s=i(this,P);c(this,P,t),c(this,re,t.state),this.hasListeners()&&(s==null||s.removeObserver(this),t.addObserver(this))},ms=function(t){H.batch(()=>{t.listeners&&this.listeners.forEach(s=>{s(i(this,Y))}),i(this,J).getQueryCache().notify({query:i(this,P),type:"observerResultsUpdated"})})},is);function Js(e,t){return X(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ze(e,t){return Js(e,t)||e.state.data!==void 0&&Te(e,t,t.refetchOnMount)}function Te(e,t,s){if(X(t.enabled,e)!==!1&&St(t.staleTime,e)!=="static"){const r=typeof s=="function"?s(e):s;return r==="always"||r!==!1&&Qe(e,t)}return!1}function Je(e,t,s,r){return(e!==t||X(r.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&Qe(e,s)}function Qe(e,t){return X(t.enabled,e)!==!1&&e.isStaleByTime(St(t.staleTime,e))}function Ws(e,t){return!le(e.getCurrentResult(),t)}function We(e){return{onFetch:(t,s)=>{var R,y,S,p,j;const r=t.options,a=(S=(y=(R=t.fetchOptions)==null?void 0:R.meta)==null?void 0:y.fetchMore)==null?void 0:S.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],l=((j=t.state.data)==null?void 0:j.pageParams)||[];let h={pages:[],pageParams:[]},E=0;const C=async()=>{let w=!1;const O=F=>{Ls(F,()=>t.signal,()=>w=!0)},T=fs(t.options,t.fetchOptions),q=async(F,d,k)=>{if(w)return Promise.reject();if(d==null&&F.pages.length)return Promise.resolve(F);const _=(()=>{const Z={client:t.client,queryKey:t.queryKey,pageParam:d,direction:k?"backward":"forward",meta:t.options.meta};return O(Z),Z})(),x=await T(_),{maxPages:D}=t.options,$=k?Hs:ks;return{pages:$(F.pages,x,D),pageParams:$(F.pageParams,d,D)}};if(a&&o.length){const F=a==="backward",d=F?Zs:Ze,k={pages:o,pageParams:l},N=d(r,k);h=await q(k,N,F)}else{const F=e??o.length;do{const d=E===0?l[0]??r.initialPageParam:Ze(r,h);if(E>0&&d==null)break;h=await q(h,d),E++}while(E<F)}return h};t.options.persister?t.fetchFn=()=>{var w,O;return(O=(w=t.options).persister)==null?void 0:O.call(w,C,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s)}:t.fetchFn=C}}}function Ze(e,{pages:t,pageParams:s}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,s[r],s):void 0}function Zs(e,{pages:t,pageParams:s}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,s[0],s):void 0}var ne,rt,G,It,it,dt,ns,Vs=(ns=class extends ys{constructor(t){super();f(this,it);f(this,ne);f(this,rt);f(this,G);f(this,It);c(this,ne,t.client),this.mutationId=t.mutationId,c(this,G,t.mutationCache),c(this,rt,[]),this.state=t.state||gs(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){i(this,rt).includes(t)||(i(this,rt).push(t),this.clearGcTimeout(),i(this,G).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){c(this,rt,i(this,rt).filter(s=>s!==t)),this.scheduleGc(),i(this,G).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){i(this,rt).length||(this.state.status==="pending"?this.scheduleGc():i(this,G).remove(this))}continue(){var t;return((t=i(this,It))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,h,E,C,R,y,S,p,j,w,O,T,q,F,d,k,N,_;const s=()=>{b(this,it,dt).call(this,{type:"continue"})},r={client:i(this,ne),meta:this.options.meta,mutationKey:this.options.mutationKey};c(this,It,ps({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(x,D)=>{b(this,it,dt).call(this,{type:"failed",failureCount:x,error:D})},onPause:()=>{b(this,it,dt).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>i(this,G).canRun(this)}));const a=this.state.status==="pending",o=!i(this,It).canStart();try{if(a)s();else{b(this,it,dt).call(this,{type:"pending",variables:t,isPaused:o}),i(this,G).config.onMutate&&await i(this,G).config.onMutate(t,this,r);const D=await((h=(l=this.options).onMutate)==null?void 0:h.call(l,t,r));D!==this.state.context&&b(this,it,dt).call(this,{type:"pending",context:D,variables:t,isPaused:o})}const x=await i(this,It).start();return await((C=(E=i(this,G).config).onSuccess)==null?void 0:C.call(E,x,t,this.state.context,this,r)),await((y=(R=this.options).onSuccess)==null?void 0:y.call(R,x,t,this.state.context,r)),await((p=(S=i(this,G).config).onSettled)==null?void 0:p.call(S,x,null,this.state.variables,this.state.context,this,r)),await((w=(j=this.options).onSettled)==null?void 0:w.call(j,x,null,t,this.state.context,r)),b(this,it,dt).call(this,{type:"success",data:x}),x}catch(x){try{await((T=(O=i(this,G).config).onError)==null?void 0:T.call(O,x,t,this.state.context,this,r))}catch(D){Promise.reject(D)}try{await((F=(q=this.options).onError)==null?void 0:F.call(q,x,t,this.state.context,r))}catch(D){Promise.reject(D)}try{await((k=(d=i(this,G).config).onSettled)==null?void 0:k.call(d,void 0,x,this.state.variables,this.state.context,this,r))}catch(D){Promise.reject(D)}try{await((_=(N=this.options).onSettled)==null?void 0:_.call(N,void 0,x,t,this.state.context,r))}catch(D){Promise.reject(D)}throw b(this,it,dt).call(this,{type:"error",error:x}),x}finally{i(this,G).runNext(this)}}},ne=new WeakMap,rt=new WeakMap,G=new WeakMap,It=new WeakMap,it=new WeakSet,dt=function(t){const s=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=s(this.state),H.batch(()=>{i(this,rt).forEach(r=>{r.onMutationUpdate(t)}),i(this,G).notify({mutation:this,type:"updated",action:t})})},ns);function gs(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ut,et,ae,as,Xs=(as=class extends Zt{constructor(t={}){super();f(this,ut);f(this,et);f(this,ae);this.config=t,c(this,ut,new Set),c(this,et,new Map),c(this,ae,0)}build(t,s,r){const a=new Vs({client:t,mutationCache:this,mutationId:++ue(this,ae)._,options:t.defaultMutationOptions(s),state:r});return this.add(a),a}add(t){i(this,ut).add(t);const s=ce(t);if(typeof s=="string"){const r=i(this,et).get(s);r?r.push(t):i(this,et).set(s,[t])}this.notify({type:"added",mutation:t})}remove(t){if(i(this,ut).delete(t)){const s=ce(t);if(typeof s=="string"){const r=i(this,et).get(s);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&i(this,et).delete(s)}}this.notify({type:"removed",mutation:t})}canRun(t){const s=ce(t);if(typeof s=="string"){const r=i(this,et).get(s),a=r==null?void 0:r.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var r;const s=ce(t);if(typeof s=="string"){const a=(r=i(this,et).get(s))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){H.batch(()=>{i(this,ut).forEach(t=>{this.notify({type:"removed",mutation:t})}),i(this,ut).clear(),i(this,et).clear()})}getAll(){return Array.from(i(this,ut))}find(t){const s={exact:!0,...t};return this.getAll().find(r=>Ke(s,r))}findAll(t={}){return this.getAll().filter(s=>Ke(t,s))}notify(t){H.batch(()=>{this.listeners.forEach(s=>{s(t)})})}resumePausedMutations(){const t=this.getAll().filter(s=>s.state.isPaused);return H.batch(()=>Promise.all(t.map(s=>s.continue().catch(B))))}},ut=new WeakMap,et=new WeakMap,ae=new WeakMap,as);function ce(e){var t;return(t=e.options.scope)==null?void 0:t.id}var ct,bt,W,ht,lt,he,Me,os,tr=(os=class extends Zt{constructor(t,s){super();f(this,lt);f(this,ct);f(this,bt);f(this,W);f(this,ht);c(this,ct,t),this.setOptions(s),this.bindMethods(),b(this,lt,he).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const s=this.options;this.options=i(this,ct).defaultMutationOptions(t),le(this.options,s)||i(this,ct).getMutationCache().notify({type:"observerOptionsUpdated",mutation:i(this,W),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&Qt(s.mutationKey)!==Qt(this.options.mutationKey)?this.reset():((r=i(this,W))==null?void 0:r.state.status)==="pending"&&i(this,W).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=i(this,W))==null||t.removeObserver(this)}onMutationUpdate(t){b(this,lt,he).call(this),b(this,lt,Me).call(this,t)}getCurrentResult(){return i(this,bt)}reset(){var t;(t=i(this,W))==null||t.removeObserver(this),c(this,W,void 0),b(this,lt,he).call(this),b(this,lt,Me).call(this)}mutate(t,s){var r;return c(this,ht,s),(r=i(this,W))==null||r.removeObserver(this),c(this,W,i(this,ct).getMutationCache().build(i(this,ct),this.options)),i(this,W).addObserver(this),i(this,W).execute(t)}},ct=new WeakMap,bt=new WeakMap,W=new WeakMap,ht=new WeakMap,lt=new WeakSet,he=function(){var s;const t=((s=i(this,W))==null?void 0:s.state)??gs();c(this,bt,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Me=function(t){H.batch(()=>{var s,r,a,o,l,h,E,C;if(i(this,ht)&&this.hasListeners()){const R=i(this,bt).variables,y=i(this,bt).context,S={client:i(this,ct),meta:this.options.meta,mutationKey:this.options.mutationKey};if((t==null?void 0:t.type)==="success"){try{(r=(s=i(this,ht)).onSuccess)==null||r.call(s,t.data,R,y,S)}catch(p){Promise.reject(p)}try{(o=(a=i(this,ht)).onSettled)==null||o.call(a,t.data,null,R,y,S)}catch(p){Promise.reject(p)}}else if((t==null?void 0:t.type)==="error"){try{(h=(l=i(this,ht)).onError)==null||h.call(l,t.error,R,y,S)}catch(p){Promise.reject(p)}try{(C=(E=i(this,ht)).onSettled)==null||C.call(E,void 0,t.error,R,y,S)}catch(p){Promise.reject(p)}}}this.listeners.forEach(R=>{R(i(this,bt))})})},os),nt,us,er=(us=class extends Zt{constructor(t={}){super();f(this,nt);this.config=t,c(this,nt,new Map)}build(t,s,r){const a=s.queryKey,o=s.queryHash??Fe(a,s);let l=this.get(o);return l||(l=new Bs({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(s),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(l)),l}add(t){i(this,nt).has(t.queryHash)||(i(this,nt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const s=i(this,nt).get(t.queryHash);s&&(t.destroy(),s===t&&i(this,nt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){H.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return i(this,nt).get(t)}getAll(){return[...i(this,nt).values()]}find(t){const s={exact:!0,...t};return this.getAll().find(r=>Ne(s,r))}findAll(t={}){const s=this.getAll();return Object.keys(t).length>0?s.filter(r=>Ne(t,r)):s}notify(t){H.batch(()=>{this.listeners.forEach(s=>{s(t)})})}onFocus(){H.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){H.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},nt=new WeakMap,us),U,Et,Rt,Bt,zt,Ct,Jt,Wt,cs,yr=(cs=class{constructor(e={}){f(this,U);f(this,Et);f(this,Rt);f(this,Bt);f(this,zt);f(this,Ct);f(this,Jt);f(this,Wt);c(this,U,e.queryCache||new er),c(this,Et,e.mutationCache||new Xs),c(this,Rt,e.defaultOptions||{}),c(this,Bt,new Map),c(this,zt,new Map),c(this,Ct,0)}mount(){ue(this,Ct)._++,i(this,Ct)===1&&(c(this,Jt,je.subscribe(async e=>{e&&(await this.resumePausedMutations(),i(this,U).onFocus())})),c(this,Wt,fe.subscribe(async e=>{e&&(await this.resumePausedMutations(),i(this,U).onOnline())})))}unmount(){var e,t;ue(this,Ct)._--,i(this,Ct)===0&&((e=i(this,Jt))==null||e.call(this),c(this,Jt,void 0),(t=i(this,Wt))==null||t.call(this),c(this,Wt,void 0))}isFetching(e){return i(this,U).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return i(this,Et).findAll({...e,status:"pending"}).length}getQueryData(e){var s;const t=this.defaultQueryOptions({queryKey:e});return(s=i(this,U).get(t.queryHash))==null?void 0:s.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),s=i(this,U).build(this,t),r=s.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime(St(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return i(this,U).findAll(e).map(({queryKey:t,state:s})=>{const r=s.data;return[t,r]})}setQueryData(e,t,s){const r=this.defaultQueryOptions({queryKey:e}),a=i(this,U).get(r.queryHash),o=a==null?void 0:a.state.data,l=Ds(t,o);if(l!==void 0)return i(this,U).build(this,r).setData(l,{...s,manual:!0})}setQueriesData(e,t,s){return H.batch(()=>i(this,U).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,s)]))}getQueryState(e){var s;const t=this.defaultQueryOptions({queryKey:e});return(s=i(this,U).get(t.queryHash))==null?void 0:s.state}removeQueries(e){const t=i(this,U);H.batch(()=>{t.findAll(e).forEach(s=>{t.remove(s)})})}resetQueries(e,t){const s=i(this,U);return H.batch(()=>(s.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const s={revert:!0,...t},r=H.batch(()=>i(this,U).findAll(e).map(a=>a.cancel(s)));return Promise.all(r).then(B).catch(B)}invalidateQueries(e,t={}){return H.batch(()=>(i(this,U).findAll(e).forEach(s=>{s.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const s={...t,cancelRefetch:t.cancelRefetch??!0},r=H.batch(()=>i(this,U).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,s);return s.throwOnError||(o=o.catch(B)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(B)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const s=i(this,U).build(this,t);return s.isStaleByTime(St(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(B).catch(B)}fetchInfiniteQuery(e){return e.behavior=We(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(B).catch(B)}ensureInfiniteQueryData(e){return e.behavior=We(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fe.isOnline()?i(this,Et).resumePausedMutations():Promise.resolve()}getQueryCache(){return i(this,U)}getMutationCache(){return i(this,Et)}getDefaultOptions(){return i(this,Rt)}setDefaultOptions(e){c(this,Rt,e)}setQueryDefaults(e,t){i(this,Bt).set(Qt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...i(this,Bt).values()],s={};return t.forEach(r=>{ee(e,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(e,t){i(this,zt).set(Qt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...i(this,zt).values()],s={};return t.forEach(r=>{ee(e,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;const t={...i(this,Rt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Fe(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===xe&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...i(this,Rt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){i(this,U).clear(),i(this,Et).clear()}},U=new WeakMap,Et=new WeakMap,Rt=new WeakMap,Bt=new WeakMap,zt=new WeakMap,Ct=new WeakMap,Jt=new WeakMap,Wt=new WeakMap,cs),bs=L.createContext(void 0),Es=e=>{const t=L.useContext(bs);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},vr=({client:e,children:t})=>(L.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Ms.jsx(bs.Provider,{value:e,children:t})),Rs=L.createContext(!1),sr=()=>L.useContext(Rs);Rs.Provider;function rr(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ir=L.createContext(rr()),nr=()=>L.useContext(ir),ar=(e,t,s)=>{const r=s!=null&&s.state.error&&typeof e.throwOnError=="function"?Ie(e.throwOnError,[s.state.error,s]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},or=e=>{L.useEffect(()=>{e.clearReset()},[e])},ur=({result:e,errorResetBoundary:t,throwOnError:s,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||Ie(s,[e.error,r])),cr=e=>{if(e.suspense){const s=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>s(r(...a)):s(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},hr=(e,t)=>e.isLoading&&e.isFetching&&!t,lr=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ve=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function fr(e,t,s){var S,p,j,w;const r=sr(),a=nr(),o=Es(),l=o.defaultQueryOptions(e);(p=(S=o.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||p.call(S,l);const h=o.getQueryCache().get(l.queryHash);l._optimisticResults=r?"isRestoring":"optimistic",cr(l),ar(l,a,h),or(a);const E=!o.getQueryCache().get(l.queryHash),[C]=L.useState(()=>new t(o,l)),R=C.getOptimisticResult(l),y=!r&&e.subscribed!==!1;if(L.useSyncExternalStore(L.useCallback(O=>{const T=y?C.subscribe(H.batchCalls(O)):B;return C.updateResult(),T},[C,y]),()=>C.getCurrentResult(),()=>C.getCurrentResult()),L.useEffect(()=>{C.setOptions(l)},[l,C]),lr(l,R))throw Ve(l,C,a);if(ur({result:R,errorResetBoundary:a,throwOnError:l.throwOnError,query:h,suspense:l.suspense}))throw R.error;if((w=(j=o.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||w.call(j,l,R),l.experimental_prefetchInRender&&!jt&&hr(R,r)){const O=E?Ve(l,C,a):h==null?void 0:h.promise;O==null||O.catch(B).finally(()=>{C.updateResult()})}return l.notifyOnChangeProps?R:C.trackResult(R)}function mr(e,t){return fr(e,zs)}function gr(e,t){const s=Es(),[r]=L.useState(()=>new tr(s,e));L.useEffect(()=>{r.setOptions(e)},[r,e]);const a=L.useSyncExternalStore(L.useCallback(l=>r.subscribe(H.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=L.useCallback((l,h)=>{r.mutate(l,h).catch(B)},[r]);if(a.error&&Ie(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}export{yr as Q,xs as R,L as a,pr as b,Es as c,gr as d,vr as e,Ps as g,Ms as j,Fs as r,mr as u};
|
|
18
|
+
//# sourceMappingURL=state-vendor-BT1BogGT.js.map
|