1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="b1a9711b-d5af-2504-5315-496e7196e9fd")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,256542,e=>{"use strict";e.s(["queryKeys",0,{linkedWallets:{all:["linked-wallets"]},coinflow:{kycStatus:e=>["coinflow","kyc-status",e],balances:(e,t)=>void 0===t?["coinflow","balances",e?.toLowerCase()]:["coinflow","balances",e?.toLowerCase(),t]},users:{profile:e=>e?["users","profile",e]:["users","profile"],detail:e=>["users","detail",e],followers:e=>["users","followers",e],following:e=>["users","following",e],stats:e=>["users","stats",e]},notifications:{all:["notifications"],settings:["notifications","settings"]},loans:{all:["loans"],list:e=>["loans","list",e??{}],detail:e=>["loans","detail",e],active:e=>["loans","active",e??{}],activeDetail:e=>["loans","active","detail",e],activities:e=>["loans","activities",e],statistics:e=>["loans","statistics",e??""],borrowerInfo:e=>["loans","borrower-info",e??""],lenderInfo:e=>["loans","lender-info",e??""],borrowed:e=>["loans","borrowed",e??{}],lent:e=>["loans","lent",e??{}],extensionRequests:{all:["loans","extension-requests"],list:e=>["loans","extension-requests","list",e??{}]},refinanceRequests:{all:["loans","refinance-requests"],list:e=>["loans","refinance-requests","list",e??{}]},refinanceOffers:{all:["loans","refinance-offers"],list:e=>["loans","refinance-offers","list",e??{}]},refinanceApproved:{all:["loans","refinance-approved"],list:e=>["loans","refinance-approved","list",e??{}]}},loanOffers:{all:["loan-offers"],list:e=>["loan-offers","list",e??{}]},loanRequests:{all:["loan-requests"],list:e=>["loan-requests","list",e??{}],myList:e=>["loan-requests","my",e??{}],detail:e=>["loan-requests","detail",e]},erc20Loans:{all:["erc20-loans"],list:e=>["erc20-loans","list",e??{}],detail:e=>["erc20-loans","detail",e],active:e=>["erc20-loans","active",e??{}],borrowed:e=>["erc20-loans","borrowed",e??{}],lent:e=>["erc20-loans","lent",e??{}],requests:{list:e=>["erc20-loans","requests","list",e??{}],detail:e=>["erc20-loans","requests","detail",e]},offers:{list:e=>["erc20-loans","offers","list",e??{}],detail:e=>["erc20-loans","offers","detail",e]},extensions:{list:e=>["erc20-loans","extensions","list",e??{}],detail:e=>["erc20-loans","extensions","detail",e]},counterOffers:{list:e=>["erc20-loans","counter-offers","list",e??{}],detail:e=>["erc20-loans","counter-offers","detail",e]}},tokenLoans:{all:(e,t,s)=>["token-loans",e??"",t,s??""],list:e=>["token-loans","list",e??{}],detail:e=>["token-loans","detail",e]},pools:{all:["pools"],list:e=>["pools","list",e??{}],detail:e=>["pools","detail",e],byUser:e=>["pools","user",e],loans:e=>["pools","loans",e]},collections:{all:["collections"],list:e=>["collections","list",e??{}],detail:e=>["collections","detail",e]},marketplace:{listings:{all:["marketplace","listings"],list:e=>["marketplace","listings","list",e??{}],detail:e=>["marketplace","listings","detail",e]},collections:{all:["marketplace","collections"],list:e=>["marketplace","collections","list",e??{}]},collectionOffers:{all:["marketplace","collection-offers"],list:e=>["marketplace","collection-offers","list",e??{}],detail:e=>["marketplace","collection-offers","detail",e]}},bids:{all:["bids"],list:e=>["bids","list",e??{}],myBids:e=>["bids","my-bids",e??{}],byNft:(e,t)=>["bids","nft",e,t],byUser:e=>["bids","user",e],detail:e=>["bids","detail",e]},geo:{lendingEligibility:["geo","lending-eligibility"]},vaults:{all:["vaults"],list:e=>["vaults","list",e??{}],detail:e=>["vaults","detail",e]},tokens:{all:["tokens"],list:e=>["tokens","list",e??{}],detail:e=>["tokens","detail",e],balances:e=>["tokens","balances",e]},crypto:{prices:e=>["crypto","prices",e],metadata:e=>["crypto","metadata",e],global:["crypto","global"]},nftAggregation:{byWallet:(e,t)=>["nft-aggregation","wallet",e,t??{}],collection:e=>["nft-aggregation","collection",e],trending:e=>["nft-aggregation","trending",e??{}],collectionTrades:(e,t)=>["nft-aggregation","collection-trades",e,t??{}],collectionStats:e=>["nft-aggregation","collection-stats",e],openSeaStats:e=>["nft-aggregation","opensea-stats",e],openSeaListings:e=>["nft-aggregation","opensea-listings",e],openSeaTraits:e=>["nft-aggregation","opensea-traits",e],openSeaDetail:e=>["nft-aggregation","opensea-detail",e]},loanCollections:{all:["loan-collections"],list:e=>["loan-collections","list",e??{}],detail:e=>
2["loan-collections","detail",e],collectionDetails:e=>["loan-collections","collection-details",e],collectionDetailsBySlug:e=>["loan-collections","collection-details-v2",e],coinGecko:e=>["loan-collections","coingecko",e],bestOffer:e=>["loan-collections","best-offer",e]},stats:{all:["stats"],analytics:e=>["analytics",e??{}],dashboard:e=>["analytics","dashboard",e??{}]},points:{all:["points"],my:["points","my"],leaderboard:e=>["points","leaderboard",e??{}],adminUsers:e=>["points","admin","users",e??{}],adminUser:e=>["points","admin","user",e]},tasks:{all:["tasks"]},freePack:{all:["free-pack"],status:e=>["free-pack","status",e],public:["free-pack","public"],adminConfig:["free-pack","admin","config"],adminClaims:e=>["free-pack","admin","claims",e??{}],adminStats:["free-pack","admin","stats"]},referrals:{all:["referrals"],code:["referrals","code"],earnings:["referrals","earnings"],discount:["referrals","discount"],adminOverview:e=>["referrals","admin","overview",e??{}],adminReferrer:e=>["referrals","admin","referrer",e],adminSummary:["referrals","admin","summary"]},referralCredits:{all:["referral-credits"],balance:e=>["referral-credits","balance",e],adminUsers:e=>["referral-credits","admin","users",e??{}],adminUser:e=>["referral-credits","admin","user",e],adminPending:e=>["referral-credits","admin","pending",e??{}],adminSummary:["referral-credits","admin","summary"]},coupons:{all:["coupons"],list:e=>["coupons","list",e??{}],detail:e=>["coupons","detail",e]},buybackRates:{all:["buyback-rates"],list:e=>["buyback-rates","list",e],token:(e,t,s)=>["buyback-rates","token",e,t,s??""]},shipments:{all:["shipments"],addresses:["shipments","addresses"],requests:e=>["shipments","requests",e??{}],request:e=>["shipments","requests","detail",e],adminRequests:e=>["shipments","admin","requests",e??{}],adminRequest:e=>["shipments","admin","requests","detail",e],adminShipments:e=>["shipments","admin","shipments",e??{}],shipment:e=>["shipments","admin","shipment",e],emailLogs:e=>["shipments","admin","email-logs",e]},fraud:{all:["fraud"],flags:e=>["fraud","flags",e??{}],subject:(e,t)=>["fraud","subject",e,t],clusters:e=>["fraud","clusters",e??{}],cluster:e=>["fraud","clusters","detail",e],events:e=>["fraud","events",e??{}],enforcement:e=>["fraud","clusters","enforcement",e],screeningConfig:["fraud","signupScreening","config"],emailDomains:e=>["fraud","signupScreening","domains",e??{}],screenings:e=>["fraud","signupScreening","screenings",e??{}],emailDomain:e=>["fraud","signupScreening","domain",e],modeImpact:["fraud","signupScreening","impact"],limitImpact:(e,t)=>["fraud","signupScreening","limitImpact",e,t],changes:e=>["fraud","signupScreening","changes",e??{}],sharedInboxes:e=>["fraud","signupScreening","sharedInboxes",e??{}]},referralRisk:{all:["referralRisk"],rings:e=>["referralRisk","rings",e??{}],ring:e=>["referralRisk","rings","detail",e],enforcement:e=>["referralRisk","rings","enforcement",e]},favorites:{all:["favorites"]},intercom:{messengerToken:e=>["intercom","messenger-token",e]},polymarket:{positions:e=>["polymarket","positions",e]},nfts:{all:["nfts"],balance:e=>["nfts","balance",e??{}]},tradingCards:{all:["trading-cards"],list:e=>["trading-cards","list",e??{}],detail:e=>["trading-cards","detail",e],inPacks:e=>["trading-cards","in-packs",e??{}],notInPacks:e=>["trading-cards","not-in-packs",e??{}],lifecycle:e=>["trading-cards","lifecycle",e],myListingsAll:["trading-cards","my-listings"],myListings:e=>["trading-cards","my-listings",e??{}],listings:{all:["trading-cards","listings"],list:e=>["trading-cards","listings","list",e??{}],detail:e=>["trading-cards","listings","detail",e],bids:e=>["trading-cards","listings","bids",e]},offers:{all:["trading-cards","offers"],list:e=>["trading-cards","offers","list",e??{}],detail:e=>["trading-cards","offers","detail",e]},transactions:e=>["trading-cards","transactions",e]},news:{all:["news"],list:e=>["news","list",e??{}],bySlug:e=>["news","slug",e]},assetNfts:{byOwner:(e,t)=>["asset-nfts","owner",e??0,t??""],metadata:(e,t)=>["asset-nfts","metadata",e??0,t],detail:(e,t)=>["asset-nfts","detail",e??0,t]},packs:{all:e=>["packs","all",e??0],machine:(e,t)=>["packs","machine",e??0,t]},assetPool:{lenderInfo:(e,t)=>["asset-pool","lender-info",e??0,t??""],lenderInfoAll:e=>["asset-pool","lender-info",e??0],poolInfo:e=>
2["asset-pool","pool-info",e??0]},assetLoans:{all:["asset-loans"],list:e=>["asset-loans","list",e??{}],detail:e=>["asset-loans","detail",e],tvlHistory:e=>["asset-loans","tvl-history",e??{}]},webhooks:{all:["webhooks"],list:e=>["webhooks","list",e??"all"]},packMachines:{all:["pack-machines"],list:e=>["pack-machines","list",e??{}],detail:e=>["pack-machines","detail",e],byCategory:(e,t)=>["pack-machines","by-category",e,t??1],recentPulls:e=>["pack-machines","recent-pulls",e??{}],pullLeaderboard:e=>["pack-machines","pull-leaderboard",e??{}],pulls:e=>["pack-machines","pulls",e??{}],packDefs:e=>["pack-machines","pack-defs",e.toLowerCase()],packDefsByCategory:(e,t)=>["pack-machines","pack-defs-by-category",e,t??1],packCards:(e,t)=>["pack-machines","pack-cards",e,t],packs:e=>["pack-machines","packs",e??{}],pack:e=>["pack-machines","pack",e],livePack:(e,t,s)=>["pack-machines","live-pack",e.toLowerCase(),t,s],averageValue:(e,t,s)=>["pack-machines","average-value",e.toLowerCase(),t,s]},platformAnalytics:{all:["platform-analytics"],overview:()=>["platform-analytics","overview"],ownershipUsers:e=>["platform-analytics","ownership-users",e??{}],userOwnership:e=>["platform-analytics","user-ownership",e],dailySales:e=>["platform-analytics","daily-sales",e??{}]},packMonitoring:{all:["pack-monitoring"],openRate:e=>["pack-monitoring","open-rate",e??{}],tierHistory:e=>["pack-monitoring","tier-history",e??{}],priceHistory:e=>["pack-monitoring","price-history",e??{}]}}])},448248,e=>{"use strict";var t=e.i(271645);let s=(0,t.createContext)({playHover:()=>{},playClick:()=>{},playTick:()=>{},playSfx:()=>{},preloadSfx:()=>{},volume:.12,setVolume:()=>{},muted:!1,setMuted:()=>{}});e.s(["SoundContext",0,s,"useSound",0,()=>(0,t.useContext)(s)])},869230,992571,286491,e=>{"use strict";var t=e.i(175555),s=e.i(273911),r=e.i(540143),i=e.i(619273),a=e.i(936553),n=e.i(88587);function l(e){return{onFetch:(t,s)=>{let r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,n=t.state.data?.pages||[],l=t.state.data?.pageParams||[],u={pages:[],pageParams:[]},h=0,d=async()=>{let s=!1,d=(0,i.ensureQueryFn)(t.options,t.fetchOptions),p=async(e,r,a)=>{let n;if(s)return Promise.reject(t.signal.reason);if(null==r&&e.pages.length)return Promise.resolve(e);let l=(n={client:t.client,queryKey:t.queryKey,pageParam:r,direction:a?"backward":"forward",meta:t.options.meta},(0,i.addConsumeAwareSignal)(n,()=>t.signal,()=>s=!0),n),o=await d(l),{maxPages:c}=t.options,u=a?i.addToStart:i.addToEnd;return{pages:u(e.pages,o,c),pageParams:u(e.pageParams,r,c)}};if(a&&n.length){let e="backward"===a,t={pages:n,pageParams:l},s=(e?c:o)(r,t);u=await p(t,s,e)}else{let t=e??n.length;do{let e=0===h?l[0]??r.initialPageParam:o(r,u);if(h>0&&null==e)break;u=await p(u,e),h++}while(h<t)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=d}}}function o(e,{pages:t,pageParams:s}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,s[r],s):void 0}function c(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}e.s(["hasNextPage",0,function(e,t){return!!t&&null!=o(e,t)},"hasPreviousPage",0,function(e,t){return!!t&&!!e.getPreviousPageParam&&null!=c(e,t)},"infiniteQueryBehavior",0,l],992571);var u=class extends n.Removable{#e;#t;#s;#r;#i;#a;#n;#l;constructor(e){super(),this.#l=!1,this.#n=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=p(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#n,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=p(this.options);void 0!==e.data&&(this.setState(d(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#r.remove(this)}setData(e,t){let s=(0,i.replaceData)(this.state.data,e,this.options);return this.#o({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e){this.#o({type:"setState",state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(i.noop).catch(i.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,i.resolveQueryBoolean)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===i.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
2Count>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,i.resolveStaleTime)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,i.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#l||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){let s;if("idle"!==this.state.fetchStatus&&this.#a?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#l=!0,r.signal)})},o=()=>{let e,s=(0,i.ensureQueryFn)(this.options,t),r=(n(e={client:this.#i,queryKey:this.queryKey,meta:this.meta}),e);return(this.#l=!1,this.options.persister)?this.options.persister(s,r,this):s(r)},c=(n(s={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:o}),s),u="infinite"===this.#e?l(this.options.pages):this.options.behavior;u?.onFetch(c,this),this.#s=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#o({type:"fetch",meta:c.fetchOptions?.meta}),this.#a=(0,a.createRetryer)({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:e=>{e instanceof a.CancelledError&&e.revert&&this.setState({...this.#s,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof a.CancelledError){if(e.silent)return this.#a.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#o({type:"error",error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#o(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...h(t.data,this.options),fetchMeta:e.meta??null};case"success":let s={...t,...d(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#s=e.manual?s:void 0,s;case"error":let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),r.notifyManager.batch(()=>
2{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function h(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,a.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function d(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function p(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,s=void 0!==t,r=s?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,u,"fetchState",0,h],286491);var f=e.i(915823),y=e.i(793803),m=e.i(180166),g=class extends f.Subscribable{constructor(e,t){super(),this.options=t,this.#i=e,this.#u=null,this.#h=(0,y.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#i;#d=void 0;#p=void 0;#f=void 0;#y;#m;#h;#u;#g;#v;#b;#R;#k;#S;#w=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#d.addObserver(this),v(this.#d,this.options)?this.#C():this.updateResult(),this.#Q())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return b(this.#d,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return b(this.#d,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#O(),this.#I(),this.#d.removeObserver(this)}setOptions(e){let t=this.options,s=this.#d;if(this.options=this.#i.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,i.resolveQueryBoolean)(this.options.enabled,this.#d))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#T(),this.#d.setOptions(this.options),t._defaulted&&!(0,i.shallowEqualObjects)(this.options,t)&&this.#i.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#d,observer:this});let r=this.hasListeners();r&&R(this.#d,s,this.options,t)&&this.#C(),this.updateResult(),r&&(this.#d!==s||(0,i.resolveQueryBoolean)(this.options.enabled,this.#d)!==(0,i.resolveQueryBoolean)(t.enabled,this.#d)||(0,i.resolveStaleTime)(this.options.staleTime,this.#d)!==(0,i.resolveStaleTime)(t.staleTime,this.#d))&&this.#q();let a=this.#F();r&&(this.#d!==s||(0,i.resolveQueryBoolean)(this.options.enabled,this.#d)!==(0,i.resolveQueryBoolean)(t.enabled,this.#d)||a!==this.#S)&&this.#P(a)}getOptimisticResult(e){var t,s;let r=this.#i.getQueryCache().build(this.#i,e),a=this.createResult(r,e);return t=this,s=a,(0,i.shallowEqualObjects)(t.getCurrentResult(),s)||(this.#f=a,this.#m=this.options,this.#y=this.#d.state),a}getCurrentResult(){return this.#f}trackResult(e,t){return new Proxy(e,{get:(e,s)=>(this.trackProp(s),t?.(s),"promise"===s&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#h.status||this.#h.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,s))})}trackProp(e){this.#w.add(e)}getCurrentQuery(){return this.#d}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#i.defaultQueryOptions(e),s=this.#i.getQueryCache().build(this.#i,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#C({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#f))}#C(e){this.#T();let t=this.#d.fetch(this.options,e);return e?.throwOnError||(t=t.catch(i.noop)),t}#q(){this.#O();let e=(0,i.resolveStaleTime)(this.options.staleTime,this.#d);if(s.environmentManager.isServer()||this.#f.isStale||!(0,i.isValidTimeout)(e))return;let t=(0,i.timeUntilStale)(this.#f.dataUpdatedAt,e);this.#R=m.timeoutManager.setTimeout(()=>{this.#f.isStale||this.updateResult()},t+1)}#F(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#d):this.options.refetchInterval)??!1}#P(e){this.#I(),this.#S=e,!s.environmentManager.isServer()&&!1!==(0,i.resolveQueryBoolean)(this.options.enabled,this.#d)&&(0,i.isValidTimeout)(this.#S)&&0!==this.#S&&(this.#k=m.timeoutManager.setInterval(()=>
2{(this.options.refetchIntervalInBackground||t.focusManager.isFocused())&&this.#C()},this.#S))}#Q(){this.#q(),this.#P(this.#F())}#O(){void 0!==this.#R&&(m.timeoutManager.clearTimeout(this.#R),this.#R=void 0)}#I(){void 0!==this.#k&&(m.timeoutManager.clearInterval(this.#k),this.#k=void 0)}createResult(e,t){let s,r=this.#d,a=this.options,n=this.#f,l=this.#y,o=this.#m,c=e!==r?e.state:this.#p,{state:u}=e,d={...u},p=!1;if(t._optimisticResults){let s=this.hasListeners(),i=!s&&v(e,t),n=s&&R(e,r,t,a);(i||n)&&(d={...d,...h(u.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:f,errorUpdatedAt:m,status:g}=d;s=d.data;let b=!1;if(void 0!==t.placeholderData&&void 0===s&&"pending"===g){let e;n?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=n.data,b=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#b?.state.data,this.#b):t.placeholderData,void 0!==e&&(g="success",s=(0,i.replaceData)(n?.data,e,t),p=!0)}if(t.select&&void 0!==s&&!b)if(n&&s===l?.data&&t.select===this.#g)s=this.#v;else try{this.#g=t.select,s=t.select(s),s=(0,i.replaceData)(n?.data,s,t),this.#v=s,this.#u=null}catch(e){this.#u=e}this.#u&&(f=this.#u,s=this.#v,m=Date.now(),g="error");let S="fetching"===d.fetchStatus,w="pending"===g,C="error"===g,Q=w&&S,O=void 0!==s,I={status:g,fetchStatus:d.fetchStatus,isPending:w,isSuccess:"success"===g,isError:C,isInitialLoading:Q,isLoading:Q,data:s,dataUpdatedAt:d.dataUpdatedAt,error:f,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:S,isRefetching:S&&!w,isLoadingError:C&&!O,isPaused:"paused"===d.fetchStatus,isPlaceholderData:p,isRefetchError:C&&O,isStale:k(e,t),refetch:this.refetch,promise:this.#h,isEnabled:!1!==(0,i.resolveQueryBoolean)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==I.data,s="error"===I.status&&!t,i=e=>{s?e.reject(I.error):t&&e.resolve(I.data)},a=()=>{i(this.#h=I.promise=(0,y.pendingThenable)())},n=this.#h;switch(n.status){case"pending":e.queryHash===r.queryHash&&i(n);break;case"fulfilled":(s||I.data!==n.value)&&a();break;case"rejected":s&&I.error===n.reason||a()}}return I}updateResult(){let e=this.#f,t=this.createResult(this.#d,this.options);if(this.#y=this.#d.state,this.#m=this.options,void 0!==this.#y.data&&(this.#b=this.#d),(0,i.shallowEqualObjects)(t,e))return;this.#f=t;let s=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.#w.size)return!0;let r=new Set(s??this.#w);return this.options.throwOnError&&r.add("error"),Object.keys(this.#f).some(t=>this.#f[t]!==e[t]&&r.has(t))};this.#E({listeners:s()})}#T(){let e=this.#i.getQueryCache().build(this.#i,this.options);if(e===this.#d)return;let t=this.#d;this.#d=e,this.#p=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#Q()}#E(e){r.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#f)}),this.#i.getQueryCache().notify({query:this.#d,type:"observerResultsUpdated"})})}};function v(e,t){return!1!==(0,i.resolveQueryBoolean)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,i.resolveQueryBoolean)(t.retryOnMount,e))||void 0!==e.state.data&&b(e,t,t.refetchOnMount)}function b(e,t,s){if(!1!==(0,i.resolveQueryBoolean)(t.enabled,e)&&"static"!==(0,i.resolveStaleTime)(t.staleTime,e)){let r="function"==typeof s?s(e):s;return"always"===r||!1!==r&&k(e,t)}return!1}function R(e,t,s,r){return(e!==t||!1===(0,i.resolveQueryBoolean)(r.enabled,e))&&(!s.suspense||"error"!==e.state.status)&&k(e,s)}function k(e,t){return!1!==(0,i.resolveQueryBoolean)(t.enabled,e)&&e.isStaleByTime((0,i.resolveStaleTime)(t.staleTime,e))}e.s(["QueryObserver",0,g],869230)},381384,e=>{"use strict";var t=e.i(271645),s=t.createContext(!1);s.Provider,e.s(["useIsRestoring",0,()=>t.useContext(s)])},673664,427001,e=>{"use strict";let t;var s=e.i(271645);e.i(843476);var r=s.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}));e.s(["useQueryErrorResetBoundary",0,()=>s.useContext(r)],673664);var i=e.i(619273);
2e.s(["ensurePreventErrorBoundaryRetry",0,(e,t,s)=>{let r=s?.state.error&&"function"==typeof e.throwOnError?(0,i.shouldThrowError)(e.throwOnError,[s.state.error,s]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&!t.isReset()&&(e.retryOnMount=!1)},"getHasError",0,({result:e,errorResetBoundary:t,throwOnError:s,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&void 0===e.data||(0,i.shouldThrowError)(s,[e.error,r])),"useClearResetErrorBoundary",0,e=>{s.useEffect(()=>{e.clearReset()},[e])}],427001)},266027,254440,469637,e=>{"use strict";var t=e.i(869230),s=e.i(271645),r=e.i(273911),i=e.i(619273),a=e.i(540143),n=e.i(912598),l=e.i(673664),o=e.i(427001),c=e.i(381384),u=e=>{if(e.suspense){let t=e=>"static"===e?e:Math.max(e??1e3,1e3),s=e.staleTime;e.staleTime="function"==typeof s?(...e)=>t(s(...e)):t(s),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}},h=(e,t)=>e.isLoading&&e.isFetching&&!t,d=(e,t)=>e?.suspense&&t.isPending,p=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function f(e,t,f){let y=(0,c.useIsRestoring)(),m=(0,l.useQueryErrorResetBoundary)(),g=(0,n.useQueryClient)(f),v=g.defaultQueryOptions(e);g.getDefaultOptions().queries?._experimental_beforeQuery?.(v);let b=g.getQueryCache().get(v.queryHash),R=!1!==e.subscribed;v._optimisticResults=y?"isRestoring":R?"optimistic":void 0,u(v),(0,o.ensurePreventErrorBoundaryRetry)(v,m,b),(0,o.useClearResetErrorBoundary)(m);let k=!g.getQueryCache().get(v.queryHash),[S]=s.useState(()=>new t(g,v)),w=S.getOptimisticResult(v),C=!y&&R;if(s.useSyncExternalStore(s.useCallback(e=>{let t=C?S.subscribe(a.notifyManager.batchCalls(e)):i.noop;return S.updateResult(),t},[S,C]),()=>S.getCurrentResult(),()=>S.getCurrentResult()),s.useEffect(()=>{S.setOptions(v)},[v,S]),d(v,w))throw p(v,S,m);if((0,o.getHasError)({result:w,errorResetBoundary:m,throwOnError:v.throwOnError,query:b,suspense:v.suspense}))throw w.error;if(g.getDefaultOptions().queries?._experimental_afterQuery?.(v,w),v.experimental_prefetchInRender&&!r.environmentManager.isServer()&&h(w,y)){let e=k?p(v,S,m):b?.promise;e?.catch(i.noop).finally(()=>{S.updateResult()})}return v.notifyOnChangeProps?w:S.trackResult(w)}e.s(["ensureSuspenseTimers",0,u,"fetchOptimistic",0,p,"shouldSuspend",0,d,"willFetch",0,h],254440),e.s(["useBaseQuery",0,f],469637),e.s(["useQuery",0,function(e,s){return f(e,t.QueryObserver,s)}],266027)},207670,e=>{"use strict";e.s(["clsx",0,function(){for(var e,t,s=0,r="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=function e(t){var s,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(s=0;s<a;s++)t[s]&&(r=e(t[s]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}])},475254,e=>{"use strict";var t=e.i(271645);let s=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:a=2,absoluteStrokeWidth:n,className:l="",children:o,iconNode:c,...u},h)=>(0,t.createElement)("svg",{ref:h,...i,width:r,height:r,stroke:e,strokeWidth:n?24*Number(a)/Number(r):a,className:s("lucide",l),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,s])=>(0,t.createElement)(e,s)),...Array.isArray(o)?o:[o]]));e.s(["default",0,(e,i)=>{let n=(0,t.forwardRef)(({className:n,...l},o)=>(0,t.createElement)(a,{ref:o,iconNode:i,className:s(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...l}));return n.displayName=r(e),n}],475254)}]); 3 4//# debugId=b1a9711b-d5af-2504-5315-496e7196e9fd 5//# sourceMappingURL=3bzghe9db9533.js.map
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.