PageSourceSearch

https://fantasyhoff.com/assets/vendor-query-Brtv2x_Q.js

js fantasyhoff.com collected 2026-09-24 14:42:41 UTC 59,087 bytes, 4 lines download raw bytes

1var Ee=s=>{throw TypeError(s)};var ee=(s,t,e)=>t.has(s)||Ee("Cannot "+e);var r=(s,t,e)=>(ee(s,t,"read from private field"),e?e.call(s):t.get(s)),m=(s,t,e)=>t.has(s)?Ee("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),u=(s,t,e,i)=>(ee(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),S=(s,t,e)=>(ee(s,t,"access private method"),e);var Xt=(s,t,e,i)=>({set _(n){u(s,t,n,e)},get _(){return r(s,t,i)}});import{a as I,j as fs}from"./vendor-react-DCIP6ipm.js";import{r as ms}from"./vendor-react-dom-CpZ_XJmk.js";var kt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},mt,it,Mt,Le,ps=(Le=class extends kt{constructor(){super();m(this,mt);m(this,it);m(this,Mt);u(this,Mt,t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,it)||this.setEventListener(r(this,Mt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,it))==null||t.call(this),u(this,it,void 0))}setEventListener(t){var e;u(this,Mt,t),(e=r(this,it))==null||e.call(this),u(this,it,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,mt)!==t&&(u(this,mt,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,mt)=="boolean"?r(this,mt):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},mt=new WeakMap,it=new WeakMap,Mt=new WeakMap,Le),ve=new ps,gs={setTimeout:(s,t)=>setTimeout(s,t),clearTimeout:s=>clearTimeout(s),setInterval:(s,t)=>setInterval(s,t),clearInterval:s=>clearInterval(s)},nt,ye,Ue,ys=(Ue=class{constructor(){m(this,nt,gs);m(this,ye,!1)}setTimeoutProvider(s){u(this,nt,s)}setTimeout(s,t){return r(this,nt).setTimeout(s,t)}clearTimeout(s){r(this,nt).clearTimeout(s)}setInterval(s,t){return r(this,nt).setInterval(s,t)}clearInterval(s){r(this,nt).clearInterval(s)}},nt=new WeakMap,ye=new WeakMap,Ue),ft=new ys;function vs(s){setTimeout(s,0)}var bs=typeof window>"u"||"Deno"in globalThis;function k(){}function Ss(s,t){return typeof s=="function"?s(t):s}function se(s){return typeof s=="number"&&s>=0&&s!==1/0}function Xe(s,t){return Math.max(s+(t||0)-Date.now(),0)}function dt(s,t){return typeof s=="function"?s(t):s}function N(s,t){return typeof s=="function"?s(t):s}function Me(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:h,stale:o}=s;if(h){if(i){if(t.queryHash!==be(h,t.options))return!1}else if(!Ut(t.queryKey,h))return!1}if(e!=="all"){const l=t.isActive();if(e==="active"&&!l||e==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||n&&n!==t.state.fetchStatus||a&&!a(t))}function Pe(s,t){const{exact:e,status:i,predicate:n,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(e){if(Ct(t.options.mutationKey)!==Ct(a))return!1}else if(!Ut(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function be(s,t){return((t==null?void 0:t.queryKeyHashFn)||Ct)(s)}function Ct(s){return JSON.stringify(s,(t,e)=>ie(e)?Object.keys(e).sort().reduce((i,n)=>(i[n]=e[n],i),{}):e)}function Ut(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?Object.keys(t).every(e=>Ut(s[e],t[e])):!1}var ws=Object.prototype.hasOwnProperty;function Je(s,t,e=0){if(s===t)return s;if(e>500)return t;const i=xe(s)&&xe(t);if(!i&&!(ie(s)&&ie(t)))return t;const a=(i?s:Object.keys(s)).length,h=i?t:Object.keys(t),o=h.length,l=i?new Array(o):{};let p=0;for(let f=0;f<o;f++){const d=i?f:h[f],v=s[d],c=t[d];if(v===c){l[d]=v,(i?f<a:ws.call(s,d))&&p++;continue}if(v===null||c===null||typeof v!="object"||typeof c!="object"){l[d]=c;continue}const w=Je(v,c,e+1);l[d]=w,w===v&&p++}return a===o&&p===a?s:l}function Yt(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const e in s)if(s[e]!==t[e])return!1;return!0}function xe(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function ie(s){if(!Re(s))return!1;const t=s.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!Re(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function Re(s){return Object.prototype.toString.call(s)==="[object Object]"}function Os(s){return new Promise(t=>{ft.setTimeout(t,s)})}function ne(s,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(s,t):e.structuralSharing!==!1?Je(s,t):t}function Cs(s,t,e=0){const i=[...s,t];return e&&i.length>e?i.slice(1):i}function Es(s,t,e=0){const i=[t,...s];return e&&i.length>e?i.slice(0,-1):i}var Se=Symbol();function Ze(s,t){return!s.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!s.queryFn||s.queryFn===Se?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}function we(s,t){return typeof s=="function"?s(...t):!!s}function Ms(s,t,e){let i=!1,n;return Object.defineProperty(s,"signal",{enumerable:!0,get:()=>
1(n??(n=t()),i||(i=!0,n.aborted?e():n.addEventListener("abort",e,{once:!0})),n)}),s}var qt=(()=>{let s=()=>bs;return{isServer(){return s()},setIsServer(t){s=t}}})();function re(){let s,t;const e=new Promise((n,a)=>{s=n,t=a});e.status="pending",e.catch(()=>{});function i(n){Object.assign(e,n),delete e.resolve,delete e.reject}return e.resolve=n=>{i({status:"fulfilled",value:n}),s(n)},e.reject=n=>{i({status:"rejected",reason:n}),t(n)},e}var Ps=vs;function xs(){let s=[],t=0,e=o=>{o()},i=o=>{o()},n=Ps;const a=o=>{t?s.push(o):n(()=>{e(o)})},h=()=>{const o=s;s=[],o.length&&n(()=>{i(()=>{o.forEach(l=>{e(l)})})})};return{batch:o=>{let l;t++;try{l=o()}finally{t--,t||h()}return l},batchCalls:o=>(...l)=>{a(()=>{o(...l)})},schedule:a,setNotifyFunction:o=>{e=o},setBatchNotifyFunction:o=>{i=o},setScheduler:o=>{n=o}}}var A=xs(),Pt,rt,xt,qe,Rs=(qe=class extends kt{constructor(){super();m(this,Pt,!0);m(this,rt);m(this,xt);u(this,xt,t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,rt)||this.setEventListener(r(this,xt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,rt))==null||t.call(this),u(this,rt,void 0))}setEventListener(t){var e;u(this,xt,t),(e=r(this,rt))==null||e.call(this),u(this,rt,t(this.setOnline.bind(this)))}setOnline(t){r(this,Pt)!==t&&(u(this,Pt,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,Pt)}},Pt=new WeakMap,rt=new WeakMap,xt=new WeakMap,qe),te=new Rs;function Fs(s){return Math.min(1e3*2**s,3e4)}function Ye(s){return(s??"online")==="online"?te.isOnline():!0}var ae=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function ts(s){let t=!1,e=0,i;const n=re(),a=()=>n.status!=="pending",h=y=>{var b;if(!a()){const C=new ae(y);v(C),(b=s.onCancel)==null||b.call(s,C)}},o=()=>{t=!0},l=()=>{t=!1},p=()=>ve.isFocused()&&(s.networkMode==="always"||te.isOnline())&&s.canRun(),f=()=>Ye(s.networkMode)&&s.canRun(),d=y=>{a()||(i==null||i(),n.resolve(y))},v=y=>{a()||(i==null||i(),n.reject(y))},c=()=>new Promise(y=>{var b;i=C=>{(a()||p())&&y(C)},(b=s.onPause)==null||b.call(s)}).then(()=>{var y;i=void 0,a()||(y=s.onContinue)==null||y.call(s)}),w=()=>
1{if(a())return;let y;const b=e===0?s.initialPromise:void 0;try{y=b??s.fn()}catch(C){y=Promise.reject(C)}Promise.resolve(y).then(d).catch(C=>{var R;if(a())return;const P=s.retry??(qt.isServer()?0:3),E=s.retryDelay??Fs,g=typeof E=="function"?E(e,C):E,T=P===!0||typeof P=="number"&&e<P||typeof P=="function"&&P(e,C);if(t||!T){v(C);return}e++,(R=s.onFail)==null||R.call(s,e,C),Os(g).then(()=>p()?void 0:c()).then(()=>{t?v(C):w()})})};return{promise:n,status:()=>n.status,cancel:h,continue:()=>(i==null||i(),n),cancelRetry:o,continueRetry:l,canStart:f,start:()=>(f()?w():c().then(w),n)}}var pt,Ne,es=(Ne=class{constructor(){m(this,pt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),se(this.gcTime)&&u(this,pt,ft.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(qt.isServer()?1/0:300*1e3))}clearGcTimeout(){r(this,pt)!==void 0&&(ft.clearTimeout(r(this,pt)),u(this,pt,void 0))}},pt=new WeakMap,Ne);function Is(s){return{onFetch:(t,e)=>{var f,d,v,c,w;const i=t.options,n=(v=(d=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:d.fetchMore)==null?void 0:v.direction,a=((c=t.state.data)==null?void 0:c.pages)||[],h=((w=t.state.data)==null?void 0:w.pageParams)||[];let o={pages:[],pageParams:[]},l=0;const p=async()=>{let y=!1;const b=E=>{Ms(E,()=>t.signal,()=>y=!0)},C=Ze(t.options,t.fetchOptions),P=async(E,g,T)=>{if(y)return Promise.reject(t.signal.reason);if(g==null&&E.pages.length)return Promise.resolve(E);const H=(()=>{const et={client:t.client,queryKey:t.queryKey,pageParam:g,direction:T?"backward":"forward",meta:t.options.meta};return b(et),et})(),x=await C(H),{maxPages:D}=t.options,j=T?Es:Cs;return{pages:j(E.pages,x,D),pageParams:j(E.pageParams,g,D)}};if(n&&a.length){const E=n==="backward",g=E?ss:oe,T={pages:a,pageParams:h},R=g(i,T);o=await P(T,R,E)}else{const E=s??a.length;do{const g=l===0?h[0]??i.initialPageParam:oe(i,o);if(l>0&&g==null)break;o=await P(o,g),l++}while(l<E)}return o};t.options.persister?t.fetchFn=()=>{var y,b;return(b=(y=t.options).persister)==null?void 0:b.call(y,p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=p}}}function oe(s,{pages:t,pageParams:e}){const i=t.length-1;return t.length>0?s.getNextPageParam(t[i],t,e[i],e):void 0}function ss(s,{pages:t,pageParams:e}){var i;return t.length>0?(i=s.getPreviousPageParam)==null?void 0:i.call(s,t[0],t,e[0],e):void 0}function Ts(s,t){return t?oe(s,t)!=null:!1}function As(s,t){return!t||!s.getPreviousPageParam?!1:ss(s,t)!=null}var Rt,gt,Ft,K,yt,Q,Nt,vt,q,is,$,Ke,Ds=(Ke=class extends es{constructor(t){super();m(this,q);m(this,Rt);m(this,gt);m(this,Ft);m(this,K);m(this,yt);m(this,Q);m(this,Nt);m(this,vt);u(this,vt,!1),u(this,Nt,t.defaultOptions),this.setOptions(t.options),this.observers=[],u(this,yt,t.client),u(this,K,r(this,yt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,u(this,gt,Ie(this.options)),this.state=t.state??r(this,gt),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return r(this,Rt)}get promise(){var t;return(t=r(this,Q))==null?void 0:t.promise}setOptions(t){if(this.options={...r(this,Nt),...t},t!=null&&t._type&&u(this,Rt,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=Ie(this.options);e.data!==void 0&&(this.setState(Fe(e.data,e.dataUpdatedAt)),u(this,gt,e))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,K).remove(this)}setData(t,e){const i=ne(this.state.data,t,this.options);return S(this,q,$).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t){S(this,q,$).call(this,{type:"setState",state:t})}cancel(t){var i,n;const e=(i=r(this,Q))==null?void 0:i.promise;return(n=r(this,Q))==null||n.cancel(t),e?e.then(k).catch(k):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return r(this,gt)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>N(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Se||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
1Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>dt(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:!Xe(this.state.dataUpdatedAt,t)}onFocus(){var e;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,Q))==null||e.continue()}onOnline(){var e;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,Q))==null||e.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,K).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(r(this,Q)&&(r(this,vt)||S(this,q,is).call(this)?r(this,Q).cancel({revert:!0}):r(this,Q).cancelRetry()),this.scheduleGc()),r(this,K).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||S(this,q,$).call(this,{type:"invalidate"})}async fetch(t,e){var p,f,d,v,c,w,y,b,C,P,E;if(this.state.fetchStatus!=="idle"&&((p=r(this,Q))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(e!=null&&e.cancelRefetch))this.cancel({silent:!0});else if(r(this,Q))return r(this,Q).continueRetry(),r(this,Q).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(T=>T.options.queryFn);g&&this.setOptions(g.options)}const i=new AbortController,n=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(u(this,vt,!0),i.signal)})},a=()=>{const g=Ze(this.options,e),R=(()=>{const H={client:r(this,yt),queryKey:this.queryKey,meta:this.meta};return n(H),H})();return u(this,vt,!1),this.options.persister?this.options.persister(g,R,this):g(R)},o=(()=>{const g={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:r(this,yt),state:this.state,fetchFn:a};return n(g),g})(),l=r(this,Rt)==="infinite"?Is(this.options.pages):this.options.behavior;l==null||l.onFetch(o,this),u(this,Ft,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=o.fetchOptions)==null?void 0:f.meta))&&S(this,q,$).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta}),u(this,Q,ts({initialPromise:e==null?void 0:e.initialPromise,fn:o.fetchFn,onCancel:g=>{g instanceof ae&&g.revert&&this.setState({...r(this,Ft),fetchStatus:"idle"}),i.abort()},onFail:(g,T)=>{S(this,q,$).call(this,{type:"failed",failureCount:g,error:T})},onPause:()=>{S(this,q,$).call(this,{type:"pause"})},onContinue:()=>{S(this,q,$).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const g=await r(this,Q).start();if(g===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(g),(c=(v=r(this,K).config).onSuccess)==null||c.call(v,g,this),(y=(w=r(this,K).config).onSettled)==null||y.call(w,g,this.state.error,this),g}catch(g){if(g instanceof ae){if(g.silent)return r(this,Q).promise;if(g.revert){if(this.state.data===void 0)throw g;return this.state.data}}throw S(this,q,$).call(this,{type:"error",error:g}),(C=(b=r(this,K).config).onError)==null||C.call(b,g,this),(E=(P=r(this,K).config).onSettled)==null||E.call(P,this.state.data,g,this),g}finally{this.scheduleGc()}}},Rt=new WeakMap,gt=new WeakMap,Ft=new WeakMap,K=new WeakMap,yt=new WeakMap,Q=new WeakMap,Nt=new WeakMap,vt=new WeakMap,q=new WeakSet,is=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},$=function(t){const e=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...ns(i.data,this.options),fetchMeta:t.meta??null};case"success":const n={...i,...Fe(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return u(this,Ft,t.manual?n:void 0),n;case"error":const a=t.error;
1return{...i,error:a,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=e(this.state),A.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,K).notify({query:this,type:"updated",action:t})})},Ke);function ns(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ye(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function Fe(s,t){return{data:s,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ie(s){const t=typeof s.initialData=="function"?s.initialData():s.initialData,e=t!==void 0,i=e?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}var L,O,Kt,z,bt,It,X,at,Ht,Tt,At,St,wt,ot,Dt,M,Lt,he,le,ue,ce,de,fe,me,as,He,rs=(He=class extends kt{constructor(t,e){super();m(this,M);m(this,L);m(this,O);m(this,Kt);m(this,z);m(this,bt);m(this,It);m(this,X);m(this,at);m(this,Ht);m(this,Tt);m(this,At);m(this,St);m(this,wt);m(this,ot);m(this,Dt,new Set);this.options=e,u(this,L,t),u(this,at,null),u(this,X,re()),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,O).addObserver(this),Te(r(this,O),this.options)?S(this,M,Lt).call(this):this.updateResult(),S(this,M,ce).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return pe(r(this,O),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return pe(r(this,O),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,S(this,M,de).call(this),S(this,M,fe).call(this),r(this,O).removeObserver(this)}setOptions(t){const e=this.options,i=r(this,O);if(this.options=r(this,L).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof N(this.options.enabled,r(this,O))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");S(this,M,me).call(this),r(this,O).setOptions(this.options),e._defaulted&&!Yt(this.options,e)&&r(this,L).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,O),observer:this});const n=this.hasListeners();n&&Ae(r(this,O),i,this.options,e)&&S(this,M,Lt).call(this),this.updateResult(),n&&(r(this,O)!==i||N(this.options.enabled,r(this,O))!==N(e.enabled,r(this,O))||dt(this.options.staleTime,r(this,O))!==dt(e.staleTime,r(this,O)))&&S(this,M,he).call(this);const a=S(this,M,le).call(this);n&&(r(this,O)!==i||N(this.options.enabled,r(this,O))!==N(e.enabled,r(this,O))||a!==r(this,ot))&&S(this,M,ue).call(this,a)}getOptimisticResult(t){const e=r(this,L).getQueryCache().build(r(this,L),t),i=this.createResult(e,t);return _s(this,i)&&(u(this,z,i),u(this,It,this.options),u(this,bt,r(this,O).state)),i}getCurrentResult(){return r(this,z)}trackResult(t,e){return new Proxy(t,{get:(i,n)=>(this.trackProp(n),e==null||e(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&r(this,X).status==="pending"&&r(this,X).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,n))})}trackProp(t){r(this,Dt).add(t)}getCurrentQuery(){return r(this,O)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=r(this,L).defaultQueryOptions(t),i=r(this,L).getQueryCache().build(r(this,L),e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return S(this,M,Lt).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,z)))}createResult(t,e){var D;const i=r(this,O),n=this.options,a=r(this,z),h=r(this,bt),o=r(this,It),p=t!==i?t.state:r(this,Kt),{state:f}=t;let d={...f},v=!1,c;if(e._optimisticResults){const j=this.hasListeners(),et=!j&&Te(t,e),Gt=j&&Ae(t,i,e,n);(et||Gt)&&(d={...d,...ns(f.data,t.options)}),e._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:w,errorUpdatedAt:y,status:b}=d;c=d.data;let C=!1;if(e.placeholderData!==void 0&&c===void 0&&b==="pending"){let j;a!=null&&a.isPlaceholderData&&e.placeholderData===(o==null?void 0:o.placeholderData)?(j=a.data,C=!0):j=typeof e.placeholderData=="function"?e.placeholderData((D=r(this,At))==null?void 0:D.state.data,r(this,At)):e.placeholderData,j!==void 0&&(b="success",c=ne(a==null?void 0:a.data,j,e),v=!0)}if(e.select&&c!==void 0&&!C)if(a&&c===(h==null?void 0:h.data)&&e.select===r(this,Ht))c=r(this,Tt);else try{u(this,Ht,e.select),c=e.select(c),c=ne(a==null?void 0:a.data,c,e),u(this,Tt,c),u(this,at,null)}catch(j){u(this,at,j)}r(this,at)&&(w=r(this,at),c=r(this,Tt),y=Date.now(),b="error");const P=d.fetchStatus==="fetching",E=b==="pending",g=b==="error",T=E&&P,R=c!==void 0,x={status:b,fetchStatus:d.fetchStatus,isPending:E,isSuccess:b==="success",isError:g,isInitialLoading:T,isLoading:T,data:c,dataUpdatedAt:d.dataUpdatedAt,error:w,errorUpdatedAt:y,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdate
1Count:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>p.dataUpdateCount||d.errorUpdateCount>p.errorUpdateCount,isFetching:P,isRefetching:P&&!E,isLoadingError:g&&!R,isPaused:d.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:g&&R,isStale:Oe(t,e),refetch:this.refetch,promise:r(this,X),isEnabled:N(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const j=x.data!==void 0,et=x.status==="error"&&!j,Gt=$t=>{et?$t.reject(x.error):j&&$t.resolve(x.data)},Ce=()=>{const $t=u(this,X,x.promise=re());Gt($t)},Vt=r(this,X);switch(Vt.status){case"pending":t.queryHash===i.queryHash&&Gt(Vt);break;case"fulfilled":(et||x.data!==Vt.value)&&Ce();break;case"rejected":(!et||x.error!==Vt.reason)&&Ce();break}}return x}updateResult(){const t=r(this,z),e=this.createResult(r(this,O),this.options);if(u(this,bt,r(this,O).state),u(this,It,this.options),r(this,bt).data!==void 0&&u(this,At,r(this,O)),Yt(e,t))return;u(this,z,e);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:n}=this.options,a=typeof n=="function"?n():n;if(a==="all"||!a&&!r(this,Dt).size)return!0;const h=new Set(a??r(this,Dt));return this.options.throwOnError&&h.add("error"),Object.keys(r(this,z)).some(o=>{const l=o;return r(this,z)[l]!==t[l]&&h.has(l)})};S(this,M,as).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&S(this,M,ce).call(this)}},L=new WeakMap,O=new WeakMap,Kt=new WeakMap,z=new WeakMap,bt=new WeakMap,It=new WeakMap,X=new WeakMap,at=new WeakMap,Ht=new WeakMap,Tt=new WeakMap,At=new WeakMap,St=new WeakMap,wt=new WeakMap,ot=new WeakMap,Dt=new WeakMap,M=new WeakSet,Lt=function(t){S(this,M,me).call(this);let e=r(this,O).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(k)),e},he=function(){S(this,M,de).call(this);const t=dt(this.options.staleTime,r(this,O));if(qt.isServer()||r(this,z).isStale||!se(t))return;const i=Xe(r(this,z).dataUpdatedAt,t)+1;u(this,St,ft.setTimeout(()=>{r(this,z).isStale||this.updateResult()},i))},le=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,O)):this.options.refetchInterval)??!1},ue=function(t){S(this,M,fe).call(this),u(this,ot,t),!(qt.isServer()||N(this.options.enabled,r(this,O))===!1||!se(r(this,ot))||r(this,ot)===0)&&u(this,wt,ft.setInterval(()=>{(this.options.refetchIntervalInBackground||ve.isFocused())&&S(this,M,Lt).call(this)},r(this,ot)))},ce=function(){S(this,M,he).call(this),S(this,M,ue).call(this,S(this,M,le).call(this))},de=function(){r(this,St)!==void 0&&(ft.clearTimeout(r(this,St)),u(this,St,void 0))},fe=function(){r(this,wt)!==void 0&&(ft.clearInterval(r(this,wt)),u(this,wt,void 0))},me=function(){const t=r(this,L).getQueryCache().build(r(this,L),this.options);if(t===r(this,O))return;const e=r(this,O);u(this,O,t),u(this,Kt,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},as=function(t){A.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(r(this,z))}),r(this,L).getQueryCache().notify({query:r(this,O),type:"observerResultsUpdated"})})},He);function Qs(s,t){return N(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&N(t.retryOnMount,s)===!1)}function Te(s,t){return Qs(s,t)||s.state.data!==void 0&&pe(s,t,t.refetchOnMount)}function pe(s,t,e){if(N(t.enabled,s)!==!1&&dt(t.staleTime,s)!=="static"){const i=typeof e=="function"?e(s):e;return i==="always"||i!==!1&&Oe(s,t)}return!1}function Ae(s,t,e,i){return(s!==t||N(i.enabled,s)===!1)&&(!e.suspense||s.state.status!=="error")&&Oe(s,e)}function Oe(s,t){return N(t.enabled,s)!==!1&&s.isStaleByTime(dt(t.staleTime,s))}function _s(s,t){return!Yt(s.getCurrentResult(),t)}var js=class extends rs{constructor(s,t){super(s,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(s){s._type="infinite",super.setOptions(s)}getOptimisticResult(s){return s._type="infinite",super.getOptimisticResult(s)}fetchNextPage(s){return this.fetch({...s,meta:{fetchMore:{direction:"forward"}}})}
1fetchPreviousPage(s){return this.fetch({...s,meta:{fetchMore:{direction:"backward"}}})}createResult(s,t){var w,y;const{state:e}=s,i=super.createResult(s,t),{isFetching:n,isRefetching:a,isError:h,isRefetchError:o}=i,l=(y=(w=e.fetchMeta)==null?void 0:w.fetchMore)==null?void 0:y.direction,p=h&&l==="forward",f=n&&l==="forward",d=h&&l==="backward",v=n&&l==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Ts(t,e.data),hasPreviousPage:As(t,e.data),isFetchNextPageError:p,isFetchingNextPage:f,isFetchPreviousPageError:d,isFetchingPreviousPage:v,isRefetchError:o&&!p&&!d,isRefetching:a&&!f&&!v}}},Wt,B,_,Ot,G,st,We,zs=(We=class extends es{constructor(t){super();m(this,G);m(this,Wt);m(this,B);m(this,_);m(this,Ot);u(this,Wt,t.client),this.mutationId=t.mutationId,u(this,_,t.mutationCache),u(this,B,[]),this.state=t.state||os(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,B).includes(t)||(r(this,B).push(t),this.clearGcTimeout(),r(this,_).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){u(this,B,r(this,B).filter(e=>e!==t)),this.scheduleGc(),r(this,_).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,B).length||(this.state.status==="pending"?this.scheduleGc():r(this,_).remove(this))}continue(){var t;return((t=r(this,Ot))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var h,o,l,p,f,d,v,c,w,y,b,C,P,E,g,T,R,H;const e=()=>{S(this,G,st).call(this,{type:"continue"})},i={client:r(this,Wt),meta:this.options.meta,mutationKey:this.options.mutationKey};u(this,Ot,ts({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(x,D)=>{S(this,G,st).call(this,{type:"failed",failureCount:x,error:D})},onPause:()=>{S(this,G,st).call(this,{type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,_).canRun(this)}));const n=this.state.status==="pending",a=!r(this,Ot).canStart();try{if(n)e();else{S(this,G,st).call(this,{type:"pending",variables:t,isPaused:a}),r(this,_).config.onMutate&&await r(this,_).config.onMutate(t,this,i);const D=await((o=(h=this.options).onMutate)==null?void 0:o.call(h,t,i));D!==this.state.context&&S(this,G,st).call(this,{type:"pending",context:D,variables:t,isPaused:a})}const x=await r(this,Ot).start();return await((p=(l=r(this,_).config).onSuccess)==null?void 0:p.call(l,x,t,this.state.context,this,i)),await((d=(f=this.options).onSuccess)==null?void 0:d.call(f,x,t,this.state.context,i)),await((c=(v=r(this,_).config).onSettled)==null?void 0:c.call(v,x,null,this.state.variables,this.state.context,this,i)),await((y=(w=this.options).onSettled)==null?void 0:y.call(w,x,null,t,this.state.context,i)),S(this,G,st).call(this,{type:"success",data:x}),x}catch(x){try{await((C=(b=r(this,_).config).onError)==null?void 0:C.call(b,x,t,this.state.context,this,i))}catch(D){Promise.reject(D)}try{await((E=(P=this.options).onError)==null?void 0:E.call(P,x,t,this.state.context,i))}catch(D){Promise.reject(D)}try{await((T=(g=r(this,_).config).onSettled)==null?void 0:T.call(g,void 0,x,this.state.variables,this.state.context,this,i))}catch(D){Promise.reject(D)}try{await((H=(R=this.options).onSettled)==null?void 0:H.call(R,void 0,x,t,this.state.context,i))}catch(D){Promise.reject(D)}throw S(this,G,st).call(this,{type:"error",error:x}),x}finally{r(this,_).runNext(this)}}},Wt=new WeakMap,B=new WeakMap,_=new WeakMap,Ot=new WeakMap,G=new WeakSet,st=function(t){const e=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,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{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPau
1sed:!1,status:"error"}}};this.state=e(this.state),A.batch(()=>{r(this,B).forEach(i=>{i.onMutationUpdate(t)}),r(this,_).notify({mutation:this,type:"updated",action:t})})},We);function os(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var J,W,Bt,Be,ks=(Be=class extends kt{constructor(t={}){super();m(this,J);m(this,W);m(this,Bt);this.config=t,u(this,J,new Set),u(this,W,new Map),u(this,Bt,0)}build(t,e,i){const n=new zs({client:t,mutationCache:this,mutationId:++Xt(this,Bt)._,options:t.defaultMutationOptions(e),state:i});return this.add(n),n}add(t){r(this,J).add(t);const e=Jt(t);if(typeof e=="string"){const i=r(this,W).get(e);i?i.push(t):r(this,W).set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(r(this,J).delete(t)){const e=Jt(t);if(typeof e=="string"){const i=r(this,W).get(e);if(i)if(i.length>1){const n=i.indexOf(t);n!==-1&&i.splice(n,1)}else i[0]===t&&r(this,W).delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=Jt(t);if(typeof e=="string"){const i=r(this,W).get(e),n=i==null?void 0:i.find(a=>a.state.status==="pending");return!n||n===t}else return!0}runNext(t){var i;const e=Jt(t);if(typeof e=="string"){const n=(i=r(this,W).get(e))==null?void 0:i.find(a=>a!==t&&a.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}else return Promise.resolve()}clear(){A.batch(()=>{r(this,J).forEach(t=>{this.notify({type:"removed",mutation:t})}),r(this,J).clear(),r(this,W).clear()})}getAll(){return Array.from(r(this,J))}find(t){const e={exact:!0,...t};return this.getAll().find(i=>Pe(e,i))}findAll(t={}){return this.getAll().filter(e=>Pe(t,e))}notify(t){A.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>
1e.state.isPaused);return A.batch(()=>Promise.all(t.map(e=>e.continue().catch(k))))}},J=new WeakMap,W=new WeakMap,Bt=new WeakMap,Be);function Jt(s){var t;return(t=s.options.scope)==null?void 0:t.id}var Z,ht,U,Y,tt,Zt,ge,Ge,Ls=(Ge=class extends kt{constructor(t,e){super();m(this,tt);m(this,Z);m(this,ht);m(this,U);m(this,Y);u(this,Z,t),this.setOptions(e),this.bindMethods(),S(this,tt,Zt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const e=this.options;this.options=r(this,Z).defaultMutationOptions(t),Yt(this.options,e)||r(this,Z).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,U),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&Ct(e.mutationKey)!==Ct(this.options.mutationKey)?this.reset():((i=r(this,U))==null?void 0:i.state.status)==="pending"&&r(this,U).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,U))==null||t.removeObserver(this)}onMutationUpdate(t){S(this,tt,Zt).call(this),S(this,tt,ge).call(this,t)}getCurrentResult(){return r(this,ht)}reset(){var t;(t=r(this,U))==null||t.removeObserver(this),u(this,U,void 0),S(this,tt,Zt).call(this),S(this,tt,ge).call(this)}mutate(t,e){var i;return u(this,Y,e),(i=r(this,U))==null||i.removeObserver(this),u(this,U,r(this,Z).getMutationCache().build(r(this,Z),this.options)),r(this,U).addObserver(this),r(this,U).execute(t)}},Z=new WeakMap,ht=new WeakMap,U=new WeakMap,Y=new WeakMap,tt=new WeakSet,Zt=function(){var e;const t=((e=r(this,U))==null?void 0:e.state)??os();u(this,ht,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},ge=function(t){A.batch(()=>{var e,i,n,a,h,o,l,p;if(r(this,Y)&&this.hasListeners()){const f=r(this,ht).variables,d=r(this,ht).context,v={client:r(this,Z),meta:this.options.meta,mutationKey:this.options.mutationKey};if((t==null?void 0:t.type)==="success"){try{(i=(e=r(this,Y)).onSuccess)==null||i.call(e,t.data,f,d,v)}catch(c){Promise.reject(c)}try{(a=(n=r(this,Y)).onSettled)==null||a.call(n,t.data,null,f,d,v)}catch(c){Promise.reject(c)}}else if((t==null?void 0:t.type)==="error"){try{(o=(h=r(this,Y)).onError)==null||o.call(h,t.error,f,d,v)}catch(c){Promise.reject(c)}try{(p=(l=r(this,Y)).onSettled)==null||p.call(l,void 0,t.error,f,d,v)}catch(c){Promise.reject(c)}}}this.listeners.forEach(f=>{f(r(this,ht))})})},Ge),V,Ve,Us=(Ve=class extends kt{constructor(t={}){super();m(this,V);this.config=t,u(this,V,new Map)}build(t,e,i){const n=e.queryKey,a=e.queryHash??be(n,e);let h=this.get(a);return h||(h=new Ds({client:t,queryKey:n,queryHash:a,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(n)}),this.add(h)),h}add(t){r(this,V).has(t.queryHash)||(r(this,V).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=r(this,V).get(t.queryHash);
1e&&(t.destroy(),e===t&&r(this,V).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){A.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return r(this,V).get(t)}getAll(){return[...r(this,V).values()]}find(t){const e={exact:!0,...t};return this.getAll().find(i=>Me(e,i))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(i=>Me(t,i)):e}notify(t){A.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){A.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){A.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},V=new WeakMap,Ve),F,lt,ut,Qt,_t,ct,jt,zt,$e,ci=($e=class{constructor(s={}){m(this,F);m(this,lt);m(this,ut);m(this,Qt);m(this,_t);m(this,ct);m(this,jt);m(this,zt);u(this,F,s.queryCache||new Us),u(this,lt,s.mutationCache||new ks),u(this,ut,s.defaultOptions||{}),u(this,Qt,new Map),u(this,_t,new Map),u(this,ct,0)}mount(){Xt(this,ct)._++,r(this,ct)===1&&(u(this,jt,ve.subscribe(async s=>{s&&(await this.resumePausedMutations(),r(this,F).onFocus())})),u(this,zt,te.subscribe(async s=>{s&&(await this.resumePausedMutations(),r(this,F).onOnline())})))}unmount(){var s,t;Xt(this,ct)._--,r(this,ct)===0&&((s=r(this,jt))==null||s.call(this),u(this,jt,void 0),(t=r(this,zt))==null||t.call(this),u(this,zt,void 0))}isFetching(s){return r(this,F).findAll({...s,fetchStatus:"fetching"}).length}isMutating(s){return r(this,lt).findAll({...s,status:"pending"}).length}getQueryData(s){var e;const t=this.defaultQueryOptions({queryKey:s});return(e=r(this,F).get(t.queryHash))==null?void 0:e.state.data}ensureQueryData(s){const t=this.defaultQueryOptions(s),e=r(this,F).build(this,t),i=e.state.data;return i===void 0?this.fetchQuery(s):(s.revalidateIfStale&&e.isStaleByTime(dt(t.staleTime,e))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(s){return r(this,F).findAll(s).map(({queryKey:t,state:e})=>{const i=e.data;return[t,i]})}setQueryData(s,t,e){const i=this.defaultQueryOptions({queryKey:s}),n=r(this,F).get(i.queryHash),a=n==null?void 0:n.state.data,h=Ss(t,a);if(h!==void 0)return r(this,F).build(this,i).setData(h,{...e,manual:!0})}setQueriesData(s,t,e){return A.batch(()=>r(this,F).findAll(s).map(({queryKey:i})=>[i,this.setQueryData(i,t,e)]))}getQueryState(s){var e;const t=this.defaultQueryOptions({queryKey:s});return(e=r(this,F).get(t.queryHash))==null?void 0:e.state}removeQueries(s){const t=r(this,F);A.batch(()=>{t.findAll(s).forEach(e=>{t.remove(e)})})}resetQueries(s,t){const e=r(this,F);return A.batch(()=>(e.findAll(s).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...s},t)))}cancelQueries(s,t={}){const e={revert:!0,...t},i=A.batch(()=>r(this,F).findAll(s).map(n=>n.cancel(e)));return Promise.all(i).then(k).catch(k)}invalidateQueries(s,t={}){return A.batch(()=>(r(this,F).findAll(s).forEach(e=>{e.invalidate()}),(s==null?void 0:s.refetchType)==="none"?Promise.resolve():this.refetchQueries({...s,type:(s==null?void 0:s.refetchType)??(s==null?void 0:s.type)??"active"},t)))}refetchQueries(s,t={}){const e={...t,cancelRefetch:t.cancelRefetch??!0},i=A.batch(()=>r(this,F).findAll(s).filter(n=>!n.isDisabled()&&!n.isStatic()).map(n=>{let a=n.fetch(void 0,e);return e.throwOnError||(a=a.catch(k)),n.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(k)}fetchQuery(s){const t=this.defaultQueryOptions(s);t.retry===void 0&&(t.retry=!1);const e=r(this,F).build(this,t);return e.isStaleByTime(dt(t.staleTime,e))?e.fetch(t):Promise.resolve(e.state.data)}prefetchQuery(s){return this.fetchQuery(s).then(k).catch(k)}fetchInfiniteQuery(s){return s._type="infinite",this.fetchQuery(s)}prefetchInfiniteQuery(s){return this.fetchInfiniteQuery(s).then(k).catch(k)}ensureInfiniteQueryData(s){return s._type="infinite",this.ensureQueryData(s)}resumePausedMutations(){return te.isOnline()?r(this,lt).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,F)}getMutationCache(){return r(this,lt)}getDefaultOptions(){return r(this,ut)}setDefaultOptions(s){u(this,ut,s)}setQueryDefaults(s,t){r(this,Qt).set(Ct(s),{queryKey:s,defaultOptions:t})}getQueryDefaults(s){const t=[...r(this,Qt).values()],e={};return t.forEach(i=>
1{Ut(s,i.queryKey)&&Object.assign(e,i.defaultOptions)}),e}setMutationDefaults(s,t){r(this,_t).set(Ct(s),{mutationKey:s,defaultOptions:t})}getMutationDefaults(s){const t=[...r(this,_t).values()],e={};return t.forEach(i=>{Ut(s,i.mutationKey)&&Object.assign(e,i.defaultOptions)}),e}defaultQueryOptions(s){if(s._defaulted)return s;const t={...r(this,ut).queries,...this.getQueryDefaults(s.queryKey),...s,_defaulted:!0};return t.queryHash||(t.queryHash=be(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===Se&&(t.enabled=!1),t}defaultMutationOptions(s){return s!=null&&s._defaulted?s:{...r(this,ut).mutations,...(s==null?void 0:s.mutationKey)&&this.getMutationDefaults(s.mutationKey),...s,_defaulted:!0}}clear(){r(this,F).clear(),r(this,lt).clear()}},F=new WeakMap,lt=new WeakMap,ut=new WeakMap,Qt=new WeakMap,_t=new WeakMap,ct=new WeakMap,jt=new WeakMap,zt=new WeakMap,$e),hs=I.createContext(void 0),ls=s=>{const t=I.useContext(hs);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},di=({client:s,children:t})=>(I.useEffect(()=>(s.mount(),()=>{s.unmount()}),[s]),fs.jsx(hs.Provider,{value:s,children:t})),us=I.createContext(!1),qs=()=>I.useContext(us);us.Provider;function Ns(){let s=!1;return{clearReset:()=>{s=!1},reset:()=>{s=!0},isReset:()=>s}}var Ks=I.createContext(Ns()),Hs=()=>I.useContext(Ks),Ws=(s,t,e)=>{const i=e!=null&&e.state.error&&typeof s.throwOnError=="function"?we(s.throwOnError,[e.state.error,e]):s.throwOnError;(s.suspense||s.experimental_prefetchInRender||i)&&(t.isReset()||(s.retryOnMount=!1))},Bs=s=>{I.useEffect(()=>{s.clearReset()},[s])},Gs=({result:s,errorResetBoundary:t,throwOnError:e,query:i,suspense:n})=>s.isError&&!t.isReset()&&!s.isFetching&&i&&(n&&s.data===void 0||we(e,[s.error,i])),Vs=s=>{if(s.suspense){const e=n=>n==="static"?n:Math.max(n??1e3,1e3),i=s.staleTime;s.staleTime=typeof i=="function"?(...n)=>e(i(...n)):e(i),typeof s.gcTime=="number"&&(s.gcTime=Math.max(s.gcTime,1e3))}},$s=(s,t)=>s.isLoading&&s.isFetching&&!t,Xs=(s,t)=>(s==null?void 0:s.suspense)&&t.isPending,De=(s,t,e)=>t.fetchOptimistic(s).catch(()=>{e.clearReset()});function cs(s,t,e){var v,c,w,y;const i=qs(),n=Hs(),a=ls(),h=a.defaultQueryOptions(s);(c=(v=a.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||c.call(v,h);const o=a.getQueryCache().get(h.queryHash);h._optimisticResults=i?"isRestoring":"optimistic",Vs(h),Ws(h,n,o),Bs(n);const l=!a.getQueryCache().get(h.queryHash),[p]=I.useState(()=>new t(a,h)),f=p.getOptimisticResult(h),d=!i&&s.subscribed!==!1;if(I.useSyncExternalStore(I.useCallback(b=>{const C=d?p.subscribe(A.batchCalls(b)):k;return p.updateResult(),C},[p,d]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),I.useEffect(()=>{p.setOptions(h)},[h,p]),Xs(h,f))throw De(h,p,n);if(Gs({result:f,errorResetBoundary:n,throwOnError:h.throwOnError,query:o,suspense:h.suspense}))throw f.error;if((y=(w=a.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||y.call(w,h,f),h.experimental_prefetchInRender&&!qt.isServer()&&$s(f,i)){const b=l?De(h,p,n):o==null?void 0:o.promise;b==null||b.catch(k).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?f:p.trackResult(f)}function fi(s,t){return cs(s,rs)}function mi(s){return s}function pi(s,t){const e=ls(),[i]=I.useState(()=>new Ls(e,s));I.useEffect(()=>{i.setOptions(s)},[i,s]);const n=I.useSyncExternalStore(I.useCallback(h=>i.subscribe(A.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=I.useCallback((h,o)=>{i.mutate(h,o).catch(k)},[i]);if(n.error&&we(i.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:a,mutateAsync:n.mutate}}function gi(s,t){return cs(s,js)}function Et(s,t,e){let i=e.initialDeps??[],n,a=!0;function h(){var o,l,p;let f;e.key&&((o=e.debug)!=null&&o.call(e))&&(f=Date.now());const d=s();if(!(d.length!==i.length||d.some((w,y)=>i[y]!==w)))return n;i=d;let c;if(e.key&&((l=e.debug)!=null&&l.call(e))&&(c=Date.now()),n=t(...d),e.key&&((p=e.debug)!=null&&p.call(e))){const w=Math.round((Date.now()-f)*100)/100,y=Math.round((Date.now()-c)*100)/100,b=y/16,C=(P,E)=>{for(P=String(P);P.length<E;)P=" "+P;return P};console.info(`%c⏱ ${C(y,5)} /${C(w,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,e==null?void 0:e.key)}return e!=null&&e.onChange&&!(a&&e.skipInitialOnChange)&&e.onChange(n),a=!1,n}return h.updateDeps=o=>{i=o},h}function Qe(s,t){if(s===void 0)throw new Error("Unexpected undefined");return s}const Js=(s,t)=>Math.abs(s-t)<1.01,Zs=(s,t,e)=>{let i;return function(...n){s.clearTimeout(i),i=s.setTimeout(()=>t.apply(this,n),e)}},_e=s=>{const{offsetWidth:t,offsetHeight:e}=s;return{width:t,height:e}},Ys=s=>s,ti=s=>{const t=Math.max(s.startIndex-s.overscan,0),e=Math.min(s.endIndex+s.overscan,s.c
4ount-1),i=[];for(let n=t;n<=e;n++)i.push(n);return i},ei=(s,t)=>{const e=s.scrollElement;if(!e)return;const i=s.targetWindow;if(!i)return;const n=h=>{const{width:o,height:l}=h;t({width:Math.round(o),height:Math.round(l)})};if(n(_e(e)),!i.ResizeObserver)return()=>{};const a=new i.ResizeObserver(h=>{const o=()=>{const l=h[0];if(l!=null&&l.borderBoxSize){const p=l.borderBoxSize[0];if(p){n({width:p.inlineSize,height:p.blockSize});return}}n(_e(e))};s.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},je={passive:!0},ze=typeof window>"u"?!0:"onscrollend"in window,si=(s,t)=>{const e=s.scrollElement;if(!e)return;const i=s.targetWindow;if(!i)return;let n=0;const a=s.options.useScrollendEvent&&ze?()=>{}:Zs(i,()=>{t(n,!1)},s.options.isScrollingResetDelay),h=f=>()=>{const{horizontal:d,isRtl:v}=s.options;n=d?e.scrollLeft*(v&&-1||1):e.scrollTop,a(),t(n,f)},o=h(!0),l=h(!1);e.addEventListener("scroll",o,je);const p=s.options.useScrollendEvent&&ze;return p&&e.addEventListener("scrollend",l,je),()=>{e.removeEventListener("scroll",o),p&&e.removeEventListener("scrollend",l)}},ii=(s,t,e)=>{if(t!=null&&t.borderBoxSize){const i=t.borderBoxSize[0];if(i)return Math.round(i[e.options.horizontal?"inlineSize":"blockSize"])}return s[e.options.horizontal?"offsetWidth":"offsetHeight"]},ni=(s,{adjustments:t=0,behavior:e},i)=>{var n,a;const h=s+t;(a=(n=i.scrollElement)==null?void 0:n.scrollTo)==null||a.call(n,{[i.options.horizontal?"left":"top"]:h,behavior:e})};class ri{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var e,i,n;return((n=(i=(e=this.targetWindow)==null?void 0:e.performance)==null?void 0:i.now)==null?void 0:n.call(i))??Date.now()},this.observer=(()=>{let e=null;const i=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(n=>{n.forEach(a=>{const h=()=>{const o=a.target,l=this.indexFromElement(o);if(!o.isConnected){this.observer.unobserve(o);return}this.shouldMeasureDuringScroll(l)&&this.resizeItem(l,this.options.measureElement(o,a,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(h):h()})}));return{disconnect:()=>{var n;(n=i())==null||n.disconnect(),e=null},observe:n=>{var a;return(a=i())==null?void 0:a.observe(n,{box:"border-box"})},unobserve:n=>{var a;return(a=i())==null?void 0:a.unobserve(n)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([i,n])=>{typeof n>"u"&&delete e[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ys,rangeExtractor:ti,onChange:()=>{},measureElement:ii,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",...e}},this.notify=e=>{var i,n;(n=(i=this.options).onChange)==null||n.call(i,this,e)},this.maybeNotify=Et(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((e=this.scrollElement)==null?void 0:e.window)??null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,a)=>
4{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=a,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,i)=>{const n=new Map,a=new Map;for(let h=i-1;h>=0;h--){const o=e[h];if(n.has(o.lane))continue;const l=a.get(o.lane);if(l==null||o.end>l.end?a.set(o.lane,o):o.end<l.end&&n.set(o.lane,!0),n.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((h,o)=>h.end===o.end?h.index-o.index:h.end-o.end)[0]:void 0},this.getMeasurementOptions=Et(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(e,i,n,a,h,o,l)=>(this.prevLanes!==void 0&&this.prevLanes!==o&&(this.lanesChangedFlag=!0),this.prevLanes=o,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:i,scrollMargin:n,getItemKey:a,enabled:h,lanes:o,laneAssignmentMode:l}),{key:!1}),this.getMeasurements=Et(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:i,scrollMargin:n,getItemKey:a,enabled:h,lanes:o,laneAssignmentMode:l},p)=>{if(!h)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const c of this.laneAssignments.keys())c>=e&&this.laneAssignments.delete(c);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const f=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);const d=this.measurementsCache.slice(0,f),v=new Array(o).fill(void 0);for(let c=0;c<f;c++){const w=d[c];w&&(v[w.lane]=c)}for(let c=f;c<e;c++){const w=a(c),y=this.laneAssignments.get(c);let b,C;const P=l==="estimate"||p.has(w);if(y!==void 0&&this.options.lanes>1){b=y;const R=v[b],H=R!==void 0?d[R]:void 0;C=H?H.end+this.options.gap:i+n}else{const R=this.options.lanes===1?d[c-1]:this.getFurthestMeasurement(d,c);C=R?R.end+this.options.gap:i+n,b=R?R.lane:c%this.options.lanes,this.options.lanes>1&&P&&this.laneAssignments.set(c,b)}const E=p.get(w),g=typeof E=="number"?E:this.options.estimateSize(c),T=C+g;d[c]={index:c,start:C,size:g,end:T,key:w,lane:b},v[b]=c}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Et(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,i,n,a)=>this.range=e.length>0&&i>0?ai({measurements:e,outerSize:i,scrollOffset:n,lanes:a}):null,{key:!1,debug:()=>this.options.debug}
4),this.getVirtualIndexes=Et(()=>{let e=null,i=null;const n=this.calculateRange();return n&&(e=n.startIndex,i=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,i]},(e,i,n,a,h)=>a===null||h===null?[]:e({startIndex:a,endIndex:h,overscan:i,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const i=this.options.indexAttribute,n=e.getAttribute(i);return n?parseInt(n,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var i;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const n=this.scrollState.index??((i=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:i.index);if(n!==void 0&&this.range){const a=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),h=Math.max(0,n-a),o=Math.min(this.options.count-1,n+a);return e>=h&&e<=o}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((h,o)=>{h.isConnected||(this.observer.unobserve(h),this.elementsCache.delete(o))});return}const i=this.indexFromElement(e),n=this.options.getItemKey(i),a=this.elementsCache.get(n);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(i)&&this.resizeItem(i,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,i)=>{var n;const a=this.measurementsCache[e];if(!a)return;const h=this.itemSizeCache.get(a.key)??a.size,o=i-h;o!==0&&(((n=this.scrollState)==null?void 0:n.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,o,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,i)),this.notify(!1))},this.getVirtualItems=Et(()=>
4[this.getVirtualIndexes(),this.getMeasurements()],(e,i)=>{const n=[];for(let a=0,h=e.length;a<h;a++){const o=e[a],l=i[o];n.push(l)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const i=this.getMeasurements();if(i.length!==0)return Qe(i[ds(0,i.length-1,n=>Qe(i[n]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,i,n=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),h=this.getScrollOffset();i==="auto"&&(i=e>=h+a?"end":"start"),i==="center"?e+=(n-a)/2:i==="end"&&(e-=a);const o=this.getMaxScrollOffset();return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=(e,i="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getSize(),a=this.getScrollOffset(),h=this.measurementsCache[e];if(!h)return;if(i==="auto")if(h.end>=a+n-this.options.scrollPaddingEnd)i="end";else if(h.start<=a+this.options.scrollPaddingStart)i="start";else return[a,i];if(i==="end"&&e===this.options.count-1)return[this.getMaxScrollOffset(),i];const o=i==="end"?h.end+this.options.scrollPaddingEnd:h.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,i,h.size),i]},this.scrollToOffset=(e,{align:i="start",behavior:n="auto"}={})=>{const a=this.getOffsetForAlignment(e,i),h=this.now();this.scrollState={index:null,align:i,behavior:n,startedAt:h,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:i="auto",behavior:n="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));const a=this.getOffsetForIndex(e,i);if(!a)return;const[h,o]=a,l=this.now();this.scrollState={index:e,align:o,behavior:n,startedAt:l,lastTargetOffset:h,stableFrames:0},this._scrollToOffset(h,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:i="auto"}={})=>{const n=this.getScrollOffset()+e,a=this.now();this.scrollState={index:null,align:"start",behavior:i,startedAt:a,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var e;const i=this.getMeasurements();let n;if(i.length===0)n=this.options.paddingStart;else if(this.options.lanes===1)n=((e=i[i.length-1])==null?void 0:e.end)??0;else{const a=Array(this.options.lanes).fill(null);let h=i.length-1;for(;h>=0&&a.some(o=>o===null);){const o=i[h];a[o.lane]===null&&(a[o.lane]=o.end),h--}n=Math.max(...a.filter(o=>o!==null))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:i,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const i=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,n=i?i[0]:this.scrollState.lastTargetOffset,a=1,h=n!==this.scrollState.lastTargetOffset;if(!h&&Js(n,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=a){this.scrollState=null;return}}else this.scrollState.stableFrames=0,h&&(this.scrollState.lastTargetOffset=n,this.scrollState.behavior="auto",this._scrollToOffset(n,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const ds=(s,t,e,i)=>{for(;s<=t;){const n=(s+t)/2|0,a=e(n);if(a<i)s=n+1;else if(a>i)t=n-1;else return n}return s>0?s-1:0};function ai({measurements:s,outerSize:t,scrollOffset:e,lanes:i}){const n=s.length-1,a=l=>s[l].start;if(s.length<=i)return{startIndex:0,endIndex:n};let h=ds(0,n,a,e),o=h;if(i===1)for(;o<n&&s[o].end<e+t;)o++;else if(i>1){const l=Array(i).fill(0);for(;o<n&&l.some(f=>f<e+t);){const f=s[o];l[f.lane]=f.end,o++}const p=Array(i).fill(e+t);for(;h>=0&&p.some(f=>f>=e);){const f=s[h];p[f.lane]=f.start,h--}h=Math.max(0,h-h%i),o=Math.min(n,o+(i-1-o%i))}return{startIndex:h,endIndex:o}}const ke=typeof document<"u"?I.useLayoutEffect:I.useEffect;function oi({useFlushSync:s=!0,...t}){const e=I.useReducer(()=>({}),{})[1],i={...t,onChange:(a,h)=>{var o;s&&h?ms.flushSync(e):e(),(o=t.onChange)==null||o.call(t,a,h)}},[n]=I.useState(()=>new ri(i));return n.setOptions(i),ke(()=>n._didMount(),[]),ke(()=>n._willUpdate()),n}function yi(s){return oi({observeElementRect:ei,observeElementOffset:si,scrollToFn:ni,...s})}export{ci as Q,pi as a,ls as b,di as c,gi as d,yi as e,mi as q,fi as u};

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.