1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1ddca0bc-c722-5699-884e-e0320ca9adf5")}catch(e){}}(); 3(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,167881,t=>{"use strict";t.s(["Button",()=>n,"buttonVariants",()=>r]);var e=t.i(560071),s=t.i(350925),i=t.i(294237),a=t.i(647163);let r=(0,i.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-base font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-6 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-12 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-12 md:h-14 rounded-lg px-6 has-[>svg]:px-4",xl:"h-14 md:h-16 rounded-lg px-8 text-lg has-[>svg]:px-5",icon:"size-12","icon-sm":"size-8","icon-lg":"size-12 md:size-14"}},defaultVariants:{variant:"default",size:"default"}});function n(t){let{className:i,variant:n,size:o,asChild:l=!1,...h}=t,u=l?s.Slot:"button";return(0,e.jsx)(u,{"data-slot":"button",className:(0,a.cn)(r({variant:n,size:o,className:i})),...h})}},87147,t=>{"use strict";t.s(["Query",()=>y,"fetchState",()=>g]);var e,s,i,a,r,n,o,l,h=t.i(376054),u=t.i(136927),c=t.i(550475),d=t.i(42297),p=t.i(474754),v=t.i(879994),_=t.i(318459),f=t.i(371622),b=t.i(556683),y=(e=new WeakMap,s=new WeakMap,i=new WeakMap,a=new WeakMap,r=new WeakMap,n=new WeakMap,o=new WeakMap,l=new WeakSet,class extends b.Removable{get meta(){return this.options.meta}get promise(){var t;return null==(t=(0,h._)(this,r))?void 0:t.promise}setOptions(t){if(this.options={...(0,h._)(this,n),...t},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let t=w(this.options);void 0!==t.data&&(this.setState(m(t.data,t.dataUpdatedAt)),(0,c._)(this,e,t))}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||(0,h._)(this,i).remove(this)}setData(t,e){let s=(0,v.replaceData)(this.state.data,t,this.options);return(0,d._)(this,l,S).call(this,{data:s,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),s}setState(t,e){(0,d._)(this,l,S).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var e,s;let i=null==(e=(0,h._)(this,r))?void 0:e.promise;return null==(s=(0,h._)(this,r))||s.cancel(t),i?i.then(v.noop).catch(v.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState((0,h._)(this,e))}isActive(){return this.observers.some(t=>!1!==(0,v.resolveEnabled)(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===v.skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===(0,v.resolveStaleTime)(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!(0,v.timeUntilStale)(this.state.dataUpdatedAt,t))}onFocus(){var t;let e=this.observers.find(t=>t.shouldFetchOnWindowFocus());null==e||e.refetch({cancelRefetch:!1}),null==(t=(0,h._)(this,r))||t.continue()}onOnline(){var t;let e=this.observers.find(t=>t.shouldFetchOnReconnect());null==e||e.refetch({cancelRefetch:!1}),null==(t=(0,h._)(this,r))||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),(0,h._)(this,i).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||((0,h._)(this,r)&&((0,h._)(this,o)?(0,h._)(this,r).cancel({revert:!0}):(0,h._)(this,r).cancelRetry()),this.scheduleGc()),(0,h._)(this,i).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||(0,d._)(this,l,S).call(this,{type:"invalidate"})}async fetch(t,e){var n,u,p,_,b,y,g,m,w,R,k,C;if("idle"!==this.state.fetchStatus&&(null==(n=(0,h._)(this,r))?void 0:n.status())!=="rejected"){if(void 0!==this.state.data&&(null==e?void 0:e.cancelRefetch))this.cancel({silent:!0});else if((0,h._)(this,r))return(0,h._)(this,r).continueRetry(),(0,h._)(this,r).promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let O=new AbortController,M=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>((0,c._)(this,o,!0),O.signal)}
3)},x=()=>{let t=(0,v.ensureQueryFn)(this.options,e),s=(()=>{let t={client:(0,h._)(this,a),queryKey:this.queryKey,meta:this.meta};return M(t),t})();return((0,c._)(this,o,!1),this.options.persister)?this.options.persister(t,s,this):t(s)},U=(()=>{let t={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:(0,h._)(this,a),state:this.state,fetchFn:x};return M(t),t})();null==(u=this.options.behavior)||u.onFetch(U,this),(0,c._)(this,s,this.state),("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(p=U.fetchOptions)?void 0:p.meta))&&(0,d._)(this,l,S).call(this,{type:"fetch",meta:null==(_=U.fetchOptions)?void 0:_.meta}),(0,c._)(this,r,(0,f.createRetryer)({initialPromise:null==e?void 0:e.initialPromise,fn:U.fetchFn,onCancel:t=>{t instanceof f.CancelledError&&t.revert&&this.setState({...(0,h._)(this,s),fetchStatus:"idle"}),O.abort()},onFail:(t,e)=>{(0,d._)(this,l,S).call(this,{type:"failed",failureCount:t,error:e})},onPause:()=>{(0,d._)(this,l,S).call(this,{type:"pause"})},onContinue:()=>{(0,d._)(this,l,S).call(this,{type:"continue"})},retry:U.options.retry,retryDelay:U.options.retryDelay,networkMode:U.options.networkMode,canRun:()=>!0}));try{let t=await (0,h._)(this,r).start();if(void 0===t)throw Error("".concat(this.queryHash," data is undefined"));return this.setData(t),null==(b=(y=(0,h._)(this,i).config).onSuccess)||b.call(y,t,this),null==(g=(m=(0,h._)(this,i).config).onSettled)||g.call(m,t,this.state.error,this),t}catch(t){if(t instanceof f.CancelledError){if(t.silent)return(0,h._)(this,r).promise;else if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw(0,d._)(this,l,S).call(this,{type:"error",error:t}),null==(w=(R=(0,h._)(this,i).config).onError)||w.call(R,t,this),null==(k=(C=(0,h._)(this,i).config).onSettled)||k.call(C,this.state.data,t,this),t}finally{this.scheduleGc()}}constructor(t){var d;super(),(0,p._)(this,l),(0,u._)(this,e,{writable:!0,value:void 0}),(0,u._)(this,s,{writable:!0,value:void 0}),(0,u._)(this,i,{writable:!0,value:void 0}),(0,u._)(this,a,{writable:!0,value:void 0}),(0,u._)(this,r,{writable:!0,value:void 0}),(0,u._)(this,n,{writable:!0,value:void 0}),(0,u._)(this,o,{writable:!0,value:void 0}),(0,c._)(this,o,!1),(0,c._)(this,n,t.defaultOptions),this.setOptions(t.options),this.observers=[],(0,c._)(this,a,t.client),(0,c._)(this,i,(0,h._)(this,a).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,(0,c._)(this,e,w(this.options)),this.state=null!=(d=t.state)?d:(0,h._)(this,e),this.scheduleGc()}});function g(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,f.canFetch)(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}function m(t,e){return{data:t,dataUpdatedAt:null!=e?e:Date.now(),error:null,isInvalidated:!1,status:"success"}}function w(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,i=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?null!=i?i:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}function S(t){let e=e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":var i;return{...e,...g(e.data,this.options),fetchMeta:null!=(i=t.meta)?i:null};case"success":let a={...e,...m(t.data,t.dataUpdatedAt),dataUpdateCount:e.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return(0,c._)(this,s,t.manual?a:void 0),a;case"error":let r=t.error;return{...e,error:r,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),_.notifyManager.batch(()=>
3{this.observers.forEach(t=>{t.onQueryUpdate()}),(0,h._)(this,i).notify({query:this,type:"updated",action:t})})}},93104,706645,134455,t=>{"use strict";t.s(["useQuery",()=>ti],93104),t.s(["QueryObserver",()=>Q],706645);var e,s,i,a,r,n,o,l,h,u,c,d,p,v,_,f,b,y,g,m,w,S,R,k,C=t.i(376054),O=t.i(136927),M=t.i(550475),x=t.i(42297),U=t.i(474754),E=t.i(708347),W=t.i(318459),F=t.i(87147),T=t.i(423216),q=t.i(159337),D=t.i(879994),A=t.i(457765),Q=(e=new WeakMap,s=new WeakMap,i=new WeakMap,a=new WeakMap,r=new WeakMap,n=new WeakMap,o=new WeakMap,l=new WeakMap,h=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,p=new WeakMap,v=new WeakMap,_=new WeakMap,f=new WeakSet,b=new WeakSet,y=new WeakSet,g=new WeakSet,m=new WeakSet,w=new WeakSet,S=new WeakSet,R=new WeakSet,k=new WeakSet,class extends T.Subscribable{bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&((0,C._)(this,s).addObserver(this),I((0,C._)(this,s),this.options)?(0,x._)(this,f,H).call(this):this.updateResult(),(0,x._)(this,m,G).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return P((0,C._)(this,s),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return P((0,C._)(this,s),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,(0,x._)(this,w,V).call(this),(0,x._)(this,S,N).call(this),(0,C._)(this,s).removeObserver(this)}setOptions(t){let i=this.options,a=(0,C._)(this,s);if(this.options=(0,C._)(this,e).defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,D.resolveEnabled)(this.options.enabled,(0,C._)(this,s)))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");(0,x._)(this,R,J).call(this),(0,C._)(this,s).setOptions(this.options),i._defaulted&&!(0,D.shallowEqualObjects)(this.options,i)&&(0,C._)(this,e).getQueryCache().notify({type:"observerOptionsUpdated",query:(0,C._)(this,s),observer:this});let r=this.hasListeners();r&&j((0,C._)(this,s),a,this.options,i)&&(0,x._)(this,f,H).call(this),this.updateResult(),r&&((0,C._)(this,s)!==a||(0,D.resolveEnabled)(this.options.enabled,(0,C._)(this,s))!==(0,D.resolveEnabled)(i.enabled,(0,C._)(this,s))||(0,D.resolveStaleTime)(this.options.staleTime,(0,C._)(this,s))!==(0,D.resolveStaleTime)(i.staleTime,(0,C._)(this,s)))&&(0,x._)(this,b,K).call(this);let n=(0,x._)(this,y,L).call(this);r&&((0,C._)(this,s)!==a||(0,D.resolveEnabled)(this.options.enabled,(0,C._)(this,s))!==(0,D.resolveEnabled)(i.enabled,(0,C._)(this,s))||n!==(0,C._)(this,v))&&(0,x._)(this,g,B).call(this,n)}getOptimisticResult(t){var i,o;let l=(0,C._)(this,e).getQueryCache().build((0,C._)(this,e),t),h=this.createResult(l,t);return i=this,o=h,(0,D.shallowEqualObjects)(i.getCurrentResult(),o)||((0,M._)(this,a,h),(0,M._)(this,n,this.options),(0,M._)(this,r,(0,C._)(this,s).state)),h}getCurrentResult(){return(0,C._)(this,a)}trackResult(t,e){return new Proxy(t,{get:(t,s)=>(this.trackProp(s),null==e||e(s),"promise"===s&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==(0,C._)(this,o).status||(0,C._)(this,o).reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(t,s))})}trackProp(t){(0,C._)(this,_).add(t)}getCurrentQuery(){return(0,C._)(this,s)}refetch(){let{...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.fetch({...t})}fetchOptimistic(t){let s=(0,C._)(this,e).defaultQueryOptions(t),i=(0,C._)(this,e).getQueryCache().build((0,C._)(this,e),s);return i.fetch().then(()=>this.createResult(i,s))}fetch(t){var e;return(0,x._)(this,f,H).call(this,{...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then(()=>(this.updateResult(),(0,C._)(this,a)))}createResult(t,e){let d,p=(0,C._)(this,s),v=this.options,_=(0,C._)(this,a),f=(0,C._)(this,r),b=(0,C._)(this,n),y=t!==p?t.state:(0,C._)(this,i),{state:g}=t,m={...g},w=!1;if(e._optimisticResults){let s=this.hasListeners(),i=!s&&I(t,e),a=s&&j(t,p,e,v);(i||a)&&(m={...m,...(0,F.fetchState)(g.data,t.options)}),"isRestoring"===e._optimisticResults&&(m.fetchStatus="idle")}let{error:S,errorUpdatedAt:R,status:k}=m;d=m.data;let O=!1;if(void 0!==e.placeholderData&&void 0===d&&"pending"===k){let t;if((null==_?void 0:_.isPlaceholderData)&&e.placeholderData===(null==b?void 0:b.placeholderData))t=_.data,O=!0;else{var x;t="function"==typeof e.placeholderData?e.placeholderData(null==(x=(0,C._)(this,c))?void 0:x.state.data,(0,C._)(this,c)):e.placeholderData}void 0!==t&&(k="success",d=(0,D.replaceData)(null==_?void 0:_.data,t,e),w=!0)}if(e.select&&void 0!==d&&!O)if(_&&d===(null==f?void 0:f.data)&&e.select===(0,C._)(this,h))d=(0,C._)(this,u);else try{(0,M._)(this,h,e.select),d=e.select(d),d=(0,D.replaceData)(null==_?void 0:_.data,d,e),(0,M._)(this,u,d),(0,M._)(this,l,null)}catch(t){(0,M._)(this,l,t)}(0,C._)(this,l)&&(S=(0,C._)(this,l),d=(0,C._)(this,u),R=Date.now(),k="error");let U="fetching"===m.fetchStatus,E="pending"===k,W="error"===k,T=E&&U,A=void 0!==d,Q={status:k,fetchStatus:m.fetchStatus,isPending:E,isSuccess:"success"===k,isError:W,isInitialLoading:T,isLoading:T,data:d,dataUpdatedAt:m.dataUpdatedAt,error:S,errorUpdatedAt:R,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdate
3Count:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>y.dataUpdateCount||m.errorUpdateCount>y.errorUpdateCount,isFetching:U,isRefetching:U&&!E,isLoadingError:W&&!A,isPaused:"paused"===m.fetchStatus,isPlaceholderData:w,isRefetchError:W&&A,isStale:z(t,e),refetch:this.refetch,promise:(0,C._)(this,o),isEnabled:!1!==(0,D.resolveEnabled)(e.enabled,t)};if(this.options.experimental_prefetchInRender){let e=t=>{"error"===Q.status?t.reject(Q.error):void 0!==Q.data&&t.resolve(Q.data)},s=()=>{e((0,M._)(this,o,Q.promise=(0,q.pendingThenable)()))},i=(0,C._)(this,o);switch(i.status){case"pending":t.queryHash===p.queryHash&&e(i);break;case"fulfilled":("error"===Q.status||Q.data!==i.value)&&s();break;case"rejected":("error"!==Q.status||Q.error!==i.reason)&&s()}}return Q}updateResult(){let t=(0,C._)(this,a),e=this.createResult((0,C._)(this,s),this.options);if((0,M._)(this,r,(0,C._)(this,s).state),(0,M._)(this,n,this.options),void 0!==(0,C._)(this,r).data&&(0,M._)(this,c,(0,C._)(this,s)),(0,D.shallowEqualObjects)(e,t))return;(0,M._)(this,a,e);let i=()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,s="function"==typeof e?e():e;if("all"===s||!s&&!(0,C._)(this,_).size)return!0;let i=new Set(null!=s?s:(0,C._)(this,_));return this.options.throwOnError&&i.add("error"),Object.keys((0,C._)(this,a)).some(e=>(0,C._)(this,a)[e]!==t[e]&&i.has(e))};(0,x._)(this,k,X).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&(0,x._)(this,m,G).call(this)}constructor(t,C){super(),(0,U._)(this,f),(0,U._)(this,b),(0,U._)(this,y),(0,U._)(this,g),(0,U._)(this,m),(0,U._)(this,w),(0,U._)(this,S),(0,U._)(this,R),(0,U._)(this,k),(0,O._)(this,e,{writable:!0,value:void 0}),(0,O._)(this,s,{writable:!0,value:void 0}),(0,O._)(this,i,{writable:!0,value:void 0}),(0,O._)(this,a,{writable:!0,value:void 0}),(0,O._)(this,r,{writable:!0,value:void 0}),(0,O._)(this,n,{writable:!0,value:void 0}),(0,O._)(this,o,{writable:!0,value:void 0}),(0,O._)(this,l,{writable:!0,value:void 0}),(0,O._)(this,h,{writable:!0,value:void 0}),(0,O._)(this,u,{writable:!0,value:void 0}),(0,O._)(this,c,{writable:!0,value:void 0}),(0,O._)(this,d,{writable:!0,value:void 0}),(0,O._)(this,p,{writable:!0,value:void 0}),(0,O._)(this,v,{writable:!0,value:void 0}),(0,O._)(this,_,{writable:!0,value:new Set}),this.options=C,(0,M._)(this,e,t),(0,M._)(this,l,null),(0,M._)(this,o,(0,q.pendingThenable)()),this.bindMethods(),this.setOptions(C)}});function I(t,e){return!1!==(0,D.resolveEnabled)(e.enabled,t)&&void 0===t.state.data&&("error"!==t.state.status||!1!==e.retryOnMount)||void 0!==t.state.data&&P(t,e,e.refetchOnMount)}function P(t,e,s){if(!1!==(0,D.resolveEnabled)(e.enabled,t)&&"static"!==(0,D.resolveStaleTime)(e.staleTime,t)){let i="function"==typeof s?s(t):s;return"always"===i||!1!==i&&z(t,e)}return!1}function j(t,e,s,i){return(t!==e||!1===(0,D.resolveEnabled)(i.enabled,t))&&(!s.suspense||"error"!==t.state.status)&&z(t,s)}function z(t,e){return!1!==(0,D.resolveEnabled)(e.enabled,t)&&t.isStaleByTime((0,D.resolveStaleTime)(e.staleTime,t))}function H(t){(0,x._)(this,R,J).call(this);let e=(0,C._)(this,s).fetch(this.options,t);return(null==t?void 0:t.throwOnError)||(e=e.catch(D.noop)),e}function K(){(0,x._)(this,w,V).call(this);let t=(0,D.resolveStaleTime)(this.options.staleTime,(0,C._)(this,s));if(D.isServer||(0,C._)(this,a).isStale||!(0,D.isValidTimeout)(t))return;let e=(0,D.timeUntilStale)((0,C._)(this,a).dataUpdatedAt,t);(0,M._)(this,d,A.timeoutManager.setTimeout(()=>{(0,C._)(this,a).isStale||this.updateResult()},e+1))}function L(){var t;return null!=(t="function"==typeof this.options.refetchInterval?this.options.refetchInterval((0,C._)(this,s)):this.options.refetchInterval)&&t}function B(t){(0,x._)(this,S,N).call(this),(0,M._)(this,v,t),!D.isServer&&!1!==(0,D.resolveEnabled)(this.options.enabled,(0,C._)(this,s))&&(0,D.isValidTimeout)((0,C._)(this,v))&&0!==(0,C._)(this,v)&&(0,M._)(this,p,A.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||E.focusManager.isFocused())&&(0,x._)(this,f,H).call(this)},(0,C._)(this,v)))}function G(){(0,x._)(this,b,K).call(this),(0,x._)(this,g,B).call(this,(0,x._)(this,y,L).call(this))}function V(){(0,C._)(this,d)&&(A.timeoutManager.clearTimeout((0,C._)(this,d)),(0,M._)(this,d,void 0))}function N(){(0,C._)(this,p)&&(A.timeoutManager.clearInterval((0,C._)(this,p)),(0,M._)(this,p,void 0))}function J(){let t=(0,C._)(this,e).getQueryCache().build((0,C._)(this,e),this.options);if(t===(0,C._)(this,s))return;let a=(0,C._)(this,s);(0,M._)(this,s,t),(0,M._)(this,i,t.state),this.hasListeners()&&(null==a||a.removeObserver(this),t.addObserver(this))}function X(t){W.notifyManager.batch(()=>
3{t.listeners&&this.listeners.forEach(t=>{t((0,C._)(this,a))}),(0,C._)(this,e).getQueryCache().notify({query:(0,C._)(this,s),type:"observerResultsUpdated"})})}t.s(["useBaseQuery",()=>ts],134455),t.i(248434);var Y=t.i(25343),Z=t.i(303994);t.i(560071);var $=Y.createContext(function(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}()),tt=Y.createContext(!1);tt.Provider;var te=(t,e,s)=>e.fetchOptimistic(t).catch(()=>{s.clearReset()});function ts(t,e,s){var i,a,r,n,o;let l=Y.useContext(tt),h=Y.useContext($),u=(0,Z.useQueryClient)(s),c=u.defaultQueryOptions(t);if(null==(a=u.getDefaultOptions().queries)||null==(i=a._experimental_beforeQuery)||i.call(a,c),c._optimisticResults=l?"isRestoring":"optimistic",c.suspense){let t=t=>"static"===t?t:Math.max(null!=t?t:1e3,1e3),e=c.staleTime;c.staleTime="function"==typeof e?function(){for(var s=arguments.length,i=Array(s),a=0;a<s;a++)i[a]=arguments[a];return t(e(...i))}:t(e),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}(c.suspense||c.throwOnError||c.experimental_prefetchInRender)&&!h.isReset()&&(c.retryOnMount=!1),Y.useEffect(()=>{h.clearReset()},[h]);let d=!u.getQueryCache().get(c.queryHash),[p]=Y.useState(()=>new e(u,c)),v=p.getOptimisticResult(c),_=!l&&!1!==t.subscribed;if(Y.useSyncExternalStore(Y.useCallback(t=>{let e=_?p.subscribe(W.notifyManager.batchCalls(t)):D.noop;return p.updateResult(),e},[p,_]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),Y.useEffect(()=>{p.setOptions(c)},[c,p]),(null==c?void 0:c.suspense)&&v.isPending)throw te(c,p,h);if((t=>{let{result:e,errorResetBoundary:s,throwOnError:i,query:a,suspense:r}=t;return e.isError&&!s.isReset()&&!e.isFetching&&a&&(r&&void 0===e.data||(0,D.shouldThrowError)(i,[e.error,a]))})({result:v,errorResetBoundary:h,throwOnError:c.throwOnError,query:u.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw v.error;if(null==(n=u.getDefaultOptions().queries)||null==(r=n._experimental_afterQuery)||r.call(n,c,v),c.experimental_prefetchInRender&&!D.isServer&&v.isLoading&&v.isFetching&&!l){let t=d?te(c,p,h):null==(o=u.getQueryCache().get(c.queryHash))?void 0:o.promise;null==t||t.catch(D.noop).finally(()=>{p.updateResult()})}return c.notifyOnChangeProps?v:p.trackResult(v)}function ti(t,e){return ts(t,Q,e)}}]); 4 5//# sourceMappingURL=3dc6a12362d40828.js.map 6//# debugId=1ddca0bc-c722-5699-884e-e0320ca9adf5
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.