PageSourceSearch

https://alwaysintune.netlify.app/assets/query-vendor-BB0JUlq_.js

js alwaysintune.netlify.app collected 2026-10-03 10:26:22 UTC 32,447 bytes, 1 lines download raw bytes

vendor: 4,691 bytes, line 1
1function jt(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in t)){const u=Object.getOwnPropertyDescriptor(n,o);u&&Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function Mt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var J={exports:{}},I={},W={exports:{}},h={};var at;function xt(){if(at)return h;at=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),O=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),v=Symbol.iterator;function F(s){return s===null||typeof s!="object"?null:(s=v&&s[v]||s["@@iterator"],typeof s=="function"?s:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function P(s,i,f){this.props=s,this.context=i,this.refs=m,this.updater=f||_}P.prototype.isReactComponent={},P.prototype.setState=function(s,i){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,i,"setState")},P.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};function q(){}q.prototype=P.prototype;function j(s,i,f){this.props=s,this.context=i,this.refs=m,this.updater=f||_}var D=j.prototype=new q;D.constructor=j,g(D,P.prototype),D.isPureReactComponent=!0;var A=Array.isArray,T=Object.prototype.hasOwnProperty,Q={current:null},st={key:!0,ref:!0,__self:!0,__source:!0};function nt(s,i,f){var y,p={},S=null,C=null;if(i!=null)for(y in i.ref!==void 0&&(C=i.ref),i.key!==void 0&&(S=""+i.key),i)T.call(i,y)&&!st.hasOwnProperty(y)&&(p[y]=i[y]);var w=arguments.length-2;if(w===1)p.children=f;else if(1<w){for(var b=Array(w),M=0;M<w;M++)b[M]=arguments[M+2];p.children=b}if(s&&s.defaultProps)for(y in w=s.defaultProps,w)p[y]===void 0&&(p[y]=w[y]);return{$$typeof:t,type:s,key:S,ref:C,props:p,_owner:Q.current}}function _t(s,i){return{$$typeof:t,type:s.type,key:i,ref:s.ref,props:s.props,_owner:s._owner}}function V(s){return typeof s=="object"&&s!==null&&s.$$typeof===t}function Rt(s){var i={"=":"=0",":":"=2"};return"$"+s.replace(/[=:]/g,function(f){return i[f]})}var it=/\/+/g;function z(s,i){return typeof s=="object"&&s!==null&&s.key!=null?Rt(""+s.key):i.toString(36)}function K(s,i,f,y,p){var S=typeof s;(S==="undefined"||S==="boolean")&&(s=null);var C=!1;if(s===null)C=!0;else switch(S){case"string":case"number":C=!0;break;case"object":switch(s.$$typeof){case t:case e:C=!0}}if(C)return C=s,p=p(C),s=y===""?"."+z(C,0):y,A(p)?(f="",s!=null&&(f=s.replace(it,"$&/")+"/"),K(p,i,f,"",function(M){return M})):p!=null&&(V(p)&&(p=_t(p,f+(!p.key||C&&C.key===p.key?"":(""+p.key).replace(it,"$&/")+"/")+s)),i.push(p)),1;if(C=0,y=y===""?".":y+":",A(s))for(var w=0;w<s.length;w++){S=s[w];var b=y+z(S,w);C+=K(S,i,f,b,p)}else if(b=F(s),typeof b=="function")for(s=b.call(s),w=0;!(S=s.next()).done;)S=S.value,b=y+z(S,w++),C+=K(S,i,f,b,p);else if(S==="object")throw i=String(s),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.");return C}function $(s,i,f){if(s==null)return s;var y=[],p=0;return K(s,y,"","",function(S){return i.call(f,S,p++)}),y}function Et(s){if(s._status===-1){var i=s._result;i=i(),i.then(function(f){(s._status===0||s._status===-1)&&(s._status=1,s._result=f)},function(f){(s._status===0||s._status===-1)&&(s._status=2,s._result=f)}),s._status===-1&&(s._status=0,s._result=i)}if(s._status===1)return s._result.default;throw s._result}var R={current:null},L={transition:null},qt={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:L,ReactCurrentOwner:Q};function ot(){throw Error("act(...) is not supported in production builds of React.")}return h.Children={map:$,forEach:function(s,i,f){$(s,function(){i.apply(this,arguments)},f)},count:function(s){var i=0;return $(s,function(){i++}),i},toArray:function(s){return $(s,function(i){return i})||[]},only:function(s){if(!V(s))throw Error("React.Children.only expected to receive a single React element child.");return s}},h.Component=P,h.Fragment=r,h.Profiler=o,h.PureComponent=j,h.StrictMode=n,h.Suspense=a,h.__SECRET_INT
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qt,h.act=ot,h.cloneElement=function(s,i,f){if(s==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var y=g({},s.props),p=s.key,S=s.ref,C=s._owner;if(i!=null){if(i.ref!==void 0&&(S=i.ref,C=Q.current),i.key!==void 0&&(p=""+i.key),s.type&&s.type.defaultProps)var w=s.type.defaultProps;for(b in i)T.call(i,b)&&!st.hasOwnProperty(b)&&(y[b]=i[b]===void 0&&w!==void 0?w[b]:i[b])}var b=arguments.length-2;if(b===1)y.children=f;else if(1<b){w=Array(b);for(var M=0;M<b;M++)w[M]=arguments[M+2];y.children=w}return{$$typeof:t,type:s.type,key:p,ref:S,props:y,_owner:C}},h.createContext=function(s){return s={$$typeof:c,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},s.Provider={$$typeof:u,_context:s},s.Consumer=s},h.createElement=nt,h.createFactory=function(s){var i=nt.bind(null,s);return i.type=s,i},h.createRef=function(){return{current:null}},h.forwardRef=function(s){return{$$typeof:l,render:s}},h.isValidElement=V,h.lazy=function(s){return{$$typeof:d,_payload:{_status:-1,_result:s},_init:Et}},h.memo=function(s,i){return{$$typeof:O,type:s,compare:i===void 0?null:i}},h.startTransition=function(s){var i=L.transition;L.transition={};try{s()}finally{L.transition=i}},h.unstable_act=ot,h.useCallback=function(s,i){return R.current.useCallback(s,i)},h.useContext=function(s){return R.current.useContext(s)},h.useDebugValue=function(){},h.useDeferredValue=function(s){return R.current.useDeferredValue(s)},h.useEffect=function(s,i){return R.current.useEffect(s,i)},h.useId=function(){return R.current.useId()},h.useImperativeHandle=function(s,i,f){return R.current.useImperativeHandle(s,i,f)},h.useInsertionEffect=function(s,i){return R.current.useInsertionEffect(s,i)},h.useLayoutEffect=function(s,i){return R.current.useLayoutEffect(s,i)},h.useMemo=function(s,i){return R.current.useMemo(s,i)},h.useReducer=function(s,i,f){return R.current.useReducer(s,i,f)},h.useRef=function(s){return R.current.useRef(s)},h.useState=function(s){return R.current.useState(s)},h.useSyncExternalStore=function(s,i,f){return R.current.useSyncExternalStore(s,i,f)},h.useTransition=function(){return R.current.useTransition()},h.version="18.3.1",h}var ut;function gt(){return ut||(ut=1,W.exports=xt()),W.exports}var ct;function Dt(){if(ct)return I;ct=1;var t=gt(),e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(l,a,O){var d,v={},F=null,_=null;O!==void 0&&(F=""+O),a.key!==void 0&&(F=""+a.key),a.ref!==void 0&&(_=a.ref);for(d in a)n.call(a,d)&&!u.hasOwnProperty(d)&&(v[d]=a[d]);if(l&&l.defaultProps)for(d in a=l.defaultProps,a)v[d]===void 0&&(v[d]=a[d]);return{$$typeof:e,type:l,key:F,ref:_,props:v,_owner:o.current}}return I.Fragment=r,I.jsx=c,I.jsxs=c,I}var lt;function At(){return lt||(lt=1,J.exports=Dt()),J.exports}var Tt=At(),G=gt();const Qt=Mt(G),fe=jt({__proto__:null,default:Qt},[G]);var B=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},It=class extends B{#t;#e;#r;constructor(){super(),this.#r=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#r=t,this.#e?.(),this.#e=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},bt=new It,kt={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},Ut=class{#t=kt;#e=!1;setTimeoutProvider(t){this.#t=t}setTimeout(t,e){return this.#t.setTimeout(t,e)}clearTimeout(t){this.#t.clearTimeout(t)}setInterval(t,e){return this.#t.setInterval(t,e)}clearInterval(t){this.#t.clearInterval(t)}},Y=new Ut;function Kt(t){setTimeout(t,0)}var $t=typeof window>"u"||"Deno"in globalThis;function x(){}function Lt(t,e){return typeof t=="function"?t(e):t}function Ht(t){return typeof t=="number"&&t>=0&&t!==1/0}function Nt(t,e){return Math.max(t+(e||0)-Date.now(),0)}function X(t,e){return typeof t=="function"?t(e):t}function Gt(t,e){return typeof t=="function"?t(e):t}function ht(t,e){const{type:r="all",exact:n,fetchStatus:o,predicate:u,queryKey:c,stale:l}=t;if(c){if(n){if(e.queryHash!==et(c,e.options))return!1}else if(!U(e.queryKey,c))return!1}if(r!=="all"){const a=e.isActive();if(r==="active"&&!a||r==="inactive"&&a)return!1}return!(typeof l=="boolean"&&e.isStale()!==l||o&&o!==e.state.fetchStatus||u&&!u(e))}function ft(t,e){const{exact:r,status:n,predicate:o,mutationKey:u}=t;if(u){if(!e.options.mutationKey)return!1;if(r){if(k(e.options.mutationKey)!==k(u))return!1}else if(!U(e.options.mutationKey,u))return!1}return!(n&&e.state.status!==n||o&&!o(e))}function et(t,e){return(e?.queryKeyHashFn||k)(t)}function k(t){return JSON.stringify(t,(e,r)=>Z(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function U(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(r=>U(t[r],e[r])):!1}var Bt=Object.prototype.hasOwnProperty;function St(t,e,r=0){if(t===e)return t;if(r>500)return e;const n=dt(t)&&dt(e);if(!n&&!(Z(t)&&Z(e)))return e;const u=(n?t:Object.keys(t)).length,c=n?e:Object.keys(e),l=c.length,a=n?
vendor: 21,752 bytes, line 1
1new Array(l):{};let O=0;for(let d=0;d<l;d++){const v=n?d:c[d],F=t[v],_=e[v];if(F===_){a[v]=F,(n?d<u:Bt.call(t,v))&&O++;continue}if(F===null||_===null||typeof F!="object"||typeof _!="object"){a[v]=_;continue}const g=St(F,_,r+1);a[v]=g,g===F&&O++}return u===l&&O===u?t:a}function dt(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Z(t){if(!pt(t))return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(!pt(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function pt(t){return Object.prototype.toString.call(t)==="[object Object]"}function Vt(t){return new Promise(e=>{Y.setTimeout(e,t)})}function zt(t,e,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,e):r.structuralSharing!==!1?St(t,e):e}function Jt(t,e,r=0){const n=[...t,e];return r&&n.length>r?n.slice(1):n}function Wt(t,e,r=0){const n=[e,...t];return r&&n.length>r?n.slice(0,-1):n}var rt=Symbol();function wt(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===rt?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Yt(t,e,r){let n=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??=e(),n||(n=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),t}var Ot=(()=>{let t=()=>$t;return{isServer(){return t()},setIsServer(e){t=e}}})();function Xt(){let t,e;const r=new Promise((o,u)=>{t=o,e=u});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),t(o)},r.reject=o=>{n({status:"rejected",reason:o}),e(o)},r}var Zt=Kt;function te(){let t=[],e=0,r=l=>{l()},n=l=>{l()},o=Zt;const u=l=>{e?t.push(l):o(()=>{r(l)})},c=()=>{const l=t;t=[],l.length&&o(()=>{n(()=>{l.forEach(a=>{r(a)})})})};return{batch:l=>{let a;e++;try{a=l()}finally{e--,e||c()}return a},batchCalls:l=>(...a)=>{u(()=>{l(...a)})},schedule:u,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{o=l}}}var E=te(),ee=class extends B{#t=!0;#e;#r;constructor(){super(),this.#r=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#r=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#t!==t&&(this.#t=t,this.listeners.forEach(r=>{r(t)}))}isOnline(){return this.#t}},N=new ee;function re(t){return Math.min(1e3*2**t,3e4)}function Pt(t){return(t??"online")==="online"?N.isOnline():!0}var tt=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Ct(t){let e=!1,r=0,n;const o=Xt(),u=()=>o.status!=="pending",c=m=>{if(!u()){const P=new tt(m);F(P),t.onCancel?.(P)}},l=()=>{e=!0},a=()=>{e=!1},O=()=>bt.isFocused()&&(t.networkMode==="always"||N.isOnline())&&t.canRun(),d=()=>Pt(t.networkMode)&&t.canRun(),v=m=>{u()||(n?.(),o.resolve(m))},F=m=>{u()||(n?.(),o.reject(m))},_=()=>new Promise(m=>{n=P=>{(u()||O())&&m(P)},t.onPause?.()}).then(()=>{n=void 0,u()||t.onContinue?.()}),g=()=>{if(u())return;let m;const P=r===0?t.initialPromise:void 0;try{m=P??t.fn()}catch(q){m=Promise.reject(q)}Promise.resolve(m).then(v).catch(q=>{if(u())return;const j=t.retry??(Ot.isServer()?0:3),D=t.retryDelay??re,A=typeof D=="function"?D(r,q):D,T=j===!0||typeof j=="number"&&r<j||typeof j=="function"&&j(r,q);if(e||!T){F(q);return}r++,t.onFail?.(r,q),Vt(A).then(()=>O()?void 0:_()).then(()=>{e?F(q):g()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(n?.(),o),cancelRetry:l,continueRetry:a,canStart:d,start:()=>(d()?g():_().then(g),o)}}var Ft=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ht(this.gcTime)&&(this.#t=Y.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ot.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(Y.clearTimeout(this.#t),this.#t=void 0)}};function se(t){return{onFetch:(e,r)=>{const n=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,u=e.state.data?.pages||[],c=e.state.data?.pageParams||[];let l={pages:[],pageParams:[]},a=0;const O=async()=>{let d=!1;const v=g=>{Yt(g,()=>e.signal,()=>d=!0)},F=wt(e.options,e.fetchOptions),_=async(g,m,P)=>{if(d)return Promise.reject(e.signal.reason);if(m==null&&g.pages.length)return Promise.resolve(g);const j=(()=>{const Q={client:e.client,queryKey:e.queryKey,pageParam:m,direction:P?"backward":"forward",meta:e.options.meta};return v(Q),Q})(),D=await F(j),{maxPages:A}=e.options,T=P?Wt:Jt;return{pages:T(g.pages,D,A),pageParams:T(g.pageParams,m,A)}};if(o&&u.length){const g=o==="backward",m=g?ne:yt,P={pages:u,pageParams:c},q=m(n,P);l=await _(P,q,g)}else{const g=t??u.length;do{const m=a===0?c[0]??n.initialPageParam:yt(n,l);if(a>0&&m==null)break;l=await _(l,m),a++}while(a<g)}return l};e.options.persister?e.fetchFn=()=>e.options.persister?.(O,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r):e.fetchFn=O}}}function yt(t,{pages:e,pageParams:r}){const n=e.length-1;return e.length>0?t.getNextPageParam(e[n],e,r[n],r):void 0}function ne(t,{pages:e,pageParams:r}){return e.length>0?t.getPreviousPageParam?.(e[0],e,r[0],r):void 0}var ie=class extends Ft{#t;#e;#r;#n;#i;#s;#u;#o;constructor(t){super(),this.#o=!1,this.#u=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#i=t.client,this.#n=this.#i.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=vt(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#s?.promise}setOptions(t){if(this.options={...this.#u,...t},t?._type&&(this.#t=t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=vt(this.options);e.data!==void 0&&(this.setState(mt(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,e){const r=zt(this.state.data,t,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),r}setState(t){this.#a({type:"setState",state:t})}cancel(t){const e=this.#s?.promise;return this.#s?.cancel(t),e?e.then(x).catch(x):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Gt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===rt||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>X(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:!Nt(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#s&&(this.#o||this.#c()?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(t&&this.setOptions(t),!this.options.queryFn){const a=this.observers.find(O=>O.options.queryFn);a&&this.setOptions(a.options)}const r=new AbortController,n=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})},o=()=>{const a=wt(this.options,e),d=(()=>{const v={client:this.#i,queryKey:this.queryKey,meta:this.meta};return n(v),v})();return this.#o=!1,this.options.persister?this.options.persister(a,d,this):a(d)},c=(()=>{const a={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:o};return n(a),a})();(this.#t==="infinite"?se(this.options.pages):this.options.behavior)?.onFetch(c,this),this.#r=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#s=Ct({initialPromise:e?.initialPromise,fn:c.fetchFn,onCancel:a=>{a instanceof tt&&a.revert&&this.setState({...this.#r,fetchStatus:"idle"}),r.abort()},onFail:(a,O)=>{this.#a({type:"failed",failureCount:a,error:O})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const a=await this.#s.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#n.config.onSuccess?.(a,this),this.#n.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof tt){if(a.silent)return this.#s.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#a({type:"error",error:a}),this.#n.config.onError?.(a,this),this.#n.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#a(t){const e=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,...oe(r.data,this.options),fetchMeta:t.meta??null};case"success":const n={...r,...mt(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#r=t.manual?n:void 0,n;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=e(this.state),E.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function oe(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Pt(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function mt(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function vt(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,r=e!==void 0,n=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var ae=class extends Ft{#t;#e;#r;#n;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#r=t.mutationCache,this.#e=[],this.state=t.state||ue(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#i({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=Ct({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(u,c)=>{this.#i({type:"failed",failureCount:u,error:c})},onPause:()=>{this.#i({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const n=this.state.status==="pending",o=!this.#n.canStart();try{if(n)e();else{this.#i({type:"pending",variables:t,isPaused:o}),this.#r.config.onMutate&&await this.#r.config.onMutate(t,this,r);const c=await this.options.onMutate?.(t,r);c!==this.state.context&&this.#i({type:"pending",context:c,variables:t,isPaused:o})}const u=await this.#n.start();return await this.#r.config.onSuccess?.(u,t,this.state.context,this,r),await this.options.onSuccess?.(u,t,this.state.context,r),await this.#r.config.onSettled?.(u,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(u,null,t,this.state.context,r),this.#i({type:"success",data:u}),u}catch(u){try{await this.#r.config.onError?.(u,t,this.state.context,this,r)}catch(c){Promise.reject(c)}try{await this.options.onError?.(u,t,this.state.context,r)}catch(c){Promise.reject(c)}try{await this.#r.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,r)}catch(c){Promise.reject(c)}try{await this.options.onSettled?.(void 0,u,t,this.state.context,r)}catch(c){Promise.reject(c)}throw this.#i({type:"error",error:u}),u}finally{this.#r.runNext(this)}}#i(t){const e=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=e(this.state),E.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(t)}),this.#r.notify({mutation:this,type:"updated",action:t})})}};function ue(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ce=class extends B{constructor(t={}){super(),this.config=t,this.#t=new Set,this.#e=new Map,this.#r=0}#t;#e;#r;build(t,e,r){const n=new ae({client:t,mutationCache:this,mutationId:++this.#r,options:t.defaultMutationOptions(e),state:r});return this.add(n),n}add(t){this.#t.add(t);const e=H(t);if(typeof e=="string"){const r=this.#e.get(e);r?r.push(t):this.#e.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#t.delete(t)){const e=H(t);if(typeof e=="string"){const r=this.#e.get(e);if(r)if(r.length>1){const n=r.indexOf(t);n!==-1&&r.splice(n,1)}else r[0]===t&&this.#e.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=H(t);if(typeof e=="string"){const n=this.#e.get(e)?.find(o=>o.state.status==="pending");return!n||n===t}else return!0}runNext(t){const e=H(t);return typeof e=="string"?this.#e.get(e)?.find(n=>n!==t&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){E.batch(()=>{this.#t.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(t){const e={exact:!0,...t};return this.getAll().find(r=>ft(e,r))}findAll(t={}){return this.getAll().filter(e=>ft(t,e))}notify(t){E.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return E.batch(()=>Promise.all(t.map(e=>e.continue().catch(x))))}};function H(t){return t.options.scope?.id}var le=class extends B{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,e,r){const n=e.queryKey,o=e.queryHash??et(n,e);let u=this.get(o);return u||(u=new ie({client:t,queryKey:n,queryHash:o,options:t.defaultQueryOptions(e),state:r,defaultOptions:t.getQueryDefaults(n)}),this.add(u)),u}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#t.get(t.queryHash);e&&(t.destroy(),e===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){E.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(r=>ht(e,r))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(r=>ht(t,r)):e}notify(t){E.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){E.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){E.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},de=class{#t;#e;#r;#n;#i;#s;#u;#o;constructor(t={}){this.#t=t.queryCache||new le,this.#e=t.mutationCache||new ce,this.#r=t.defaultOptions||{},this.#n=new Map,this.#i=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#u=bt.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=N.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#u?.(),this.#u=void 0,this.#o?.(),this.#o=void 0)}isFetching(t){return this.#t.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#e.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#t.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),r=this.#t.build(this,e),n=r.state.data;return n===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(X(e.staleTime,r))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return this.#t.findAll(t).map(({queryKey:e,state:r})=>{const n=r.data;return[e,n]})}setQueryData(t,e,r){const n=this.defaultQueryOptions({queryKey:t}),u=this.#t.get(n.queryHash)?.state.data,c=Lt(e,u);if(c!==void 0)return this.#t.build(this,n).setData(c,{...r,manual:!0})}setQueriesData(t,e,r){return E.batch(()=>this.#t.findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,r)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#t.get(e.queryHash)?.state}removeQueries(t){const e=this.#t;E.batch(()=>{e.findAll(t).forEach(r=>{e.remove(r)})})}resetQueries(t,e){const r=this.#t;return E.batch(()=>(r.findAll(t).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const r={revert:!0,...e},n=E.batch(()=>this.#t.findAll(t).map(o=>o.cancel(r)));return Promise.all(n).then(x).catch(x)}invalidateQueries(t,e={}){return E.batch(()=>(this.#t.findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const r={...e,cancelRefetch:e.cancelRefetch??!0},n=E.batch(()=>this.#t.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let u=o.fetch(void 0,r);return r.throwOnError||(u=u.catch(x)),o.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(n).then(x)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const r=this.#t.build(this,e);return r.isStaleByTime(X(e.staleTime,r))?r.fetch(e):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(x).catch(x)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(x).catch(x)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return N.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#r}setDefaultOptions(t){this.#r=t}setQueryDefaults(t,e){this.#n.set(k(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#n.values()],r={};return e.forEach(n=>{U(t,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(t,e){this.#i.set(k(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#i.values()],r={};return e.forEach(n=>{U(t,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#r.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=et(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===rt&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#r.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},he=G.createContext(void 0),pe=({client:t,children:e})=>(G.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),Tt.jsx(he.Provider,{value:t,children:e}));
1export{de as Q,fe as R,G as a,Qt as b,pe as c,Mt as g,Tt as j,gt as r};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.