PageSourceSearch

https://www.adlegends.ai/_next/static/chunks/010ea1i1l21lj.js?dpl=dpl_DTp4MH1eT73K9bjMaPBiDZ7WsKn5

js adlegends.ai collected 2026-10-05 11:47:18 UTC 40,503 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,180166,e=>{"use strict";var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#e=t;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,r])},619273,e=>{"use strict";var t=e.i(180166),r="u"<typeof window||"Deno"in globalThis;function n(e,t){return(t?.queryKeyHashFn||s)(e)}function s(e){return JSON.stringify(e,(e,t)=>u(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function i(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>i(e[r],t[r]))}var o=Object.prototype.hasOwnProperty;function a(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function u(e){if(!l(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!l(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}var c=Symbol();e.s(["addConsumeAwareSignal",0,function(e,t,r){let n,s=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),s||(s=!0,n.aborted?r():n.addEventListener("abort",r,{once:!0})),n)}),e},"addToEnd",0,function(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n},"addToStart",0,function(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==c?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,s,"hashQueryKeyByOptions",0,n,"isServer",0,r,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"matchMutation",0,function(e,t){let{exact:r,status:n,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(s(t.options.mutationKey)!==s(a))return!1}else if(!i(t.options.mutationKey,a))return!1}return(!n||t.state.status===n)&&(!o||!!o(t))},"matchQuery",0,function(e,t){let{type:r="all",exact:s,fetchStatus:o,predicate:a,queryKey:u,stale:l}=e;if(u){if(s){if(t.queryHash!==n(u,t.options))return!1}else if(!i(t.queryKey,u))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof l||t.isStale()===l)&&(!o||o===t.state.fetchStatus)&&(!a||!!a(t))},"noop",0,function(){},"partialMatchKey",0,i,"replaceData",0,function(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r,n=0){if(t===r)return t;if(n>500)return r;let s=a(t)&&a(r);if(!s&&!(u(t)&&u(r)))return r;let i=(s?t:Object.keys(t)).length,l=s?r:Object.keys(r),c=l.length,h=s?Array(c):{},d=0;for(let a=0;a<c;a++){let u=s?a:l[a],c=t[u],f=r[u];if(c===f){h[u]=c,(s?a<i:o.call(t,u))&&d++;continue}if(null===c||null===f||"object"!=typeof c||"object"!=typeof f){h[u]=f;continue}let p=e(c,f,n+1);h[u]=p,p===c&&d++}return i===c&&d===i?t:h}(e,t):t},"resolveEnabled",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,c,"sleep",0,function(e){return new Promise(r=>{t.timeoutManager.setTimeout(r,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}])},540143,e=>{"use strict";let t,r,n,s,i,o;var a=e.i(180166).systemSetTimeoutZero,u=(t=[],r=0,n=e=>{e()},s=e=>{e()},i=a,{batch:e=>{let o;r++;try{o=e()}finally{let e;--r||(e=t,t=[],e.length&&i(()=>{s(()=>
1{e.forEach(e=>{n(e)})})}))}return o},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o=e=>{r?t.push(e):i(()=>{n(e)})},setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{s=e},setScheduler:e=>{i=e}});e.s(["notifyManager",0,u])},915823,e=>{"use strict";e.s(["Subscribable",0,class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}])},175555,e=>{"use strict";var t=e.i(915823),r=e.i(619273),n=new class extends t.Subscribable{#r;#n;#s;constructor(){super(),this.#s=e=>{if(!r.isServer&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#s=e,this.#n?.(),this.#n=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#r?this.#r:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,n])},936553,814448,793803,e=>{"use strict";var t=e.i(175555),r=e.i(915823),n=e.i(619273),s=new class extends r.Subscribable{#i=!0;#n;#s;constructor(){super(),this.#s=e=>{if(!n.isServer&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#n||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#s=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};function i(){let e,t,r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}function o(e){return Math.min(1e3*2**e,3e4)}function a(e){return(e??"online")!=="online"||s.isOnline()}e.s(["onlineManager",0,s],814448),e.s(["pendingThenable",0,i],793803);var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};e.s(["CancelledError",0,u,"canFetch",0,a,"createRetryer",0,function(e){let r,l=!1,c=0,h=i(),d=()=>t.focusManager.isFocused()&&("always"===e.networkMode||s.isOnline())&&e.canRun(),f=()=>a(e.networkMode)&&e.canRun(),p=e=>{"pending"===h.status&&(r?.(),h.resolve(e))},y=e=>{"pending"===h.status&&(r?.(),h.reject(e))},v=()=>new Promise(t=>{r=e=>{("pending"!==h.status||d())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,"pending"===h.status&&e.onContinue?.()}),m=()=>{let t;if("pending"!==h.status)return;let r=0===c?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(p).catch(t=>{if("pending"!==h.status)return;let r=e.retry??3*!n.isServer,s=e.retryDelay??o,i="function"==typeof s?s(c,t):s,a=!0===r||"number"==typeof r&&c<r||"function"==typeof r&&r(c,t);l||!a?y(t):(c++,e.onFail?.(c,t),(0,n.sleep)(i).then(()=>d()?void 0:v()).then(()=>{l?y(t):m()}))})};return{promise:h,status:()=>h.status,cancel:t=>{if("pending"===h.status){let r=new u(t);y(r),e.onCancel?.(r)}},continue:()=>(r?.(),h),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1},canStart:f,start:()=>(f()?m():v().then(m),h)}}],936553)},88587,e=>{"use strict";var t=e.i(180166),r=e.i(619273),n=class{#o;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.isValidTimeout)(this.gcTime)&&(this.#o=t.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.isServer?1/0:3e5))}clearGcTimeout(){this.#o&&(t.timeoutManager.clearTimeout(this.#o),this.#o=void 0)}};e.s(["Removable",0,n])},912598,e=>{"use strict";var t=e.i(271645),r=e.i(843476),n=t.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:s})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(n.Provider,{value:e,children:s})),"useQueryClient",0,e=>{let r=t.useContext(n);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r}])},266027,286491,869230,469637,e=>{"use strict";let t;var r=e.i(175555),n=e.i(540143);e.i(247167);var s=e.i(619273),i=e.i(936553),o=e.i(88587),a=class extends o.Removable{#a;#u;#l;#c;#h;#d;#f;constructor(e){super(),this.#f=!1,this.#d=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#c=e.client,this.#l=this.#c.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=c(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#h?.promise}setOptions(e){if(this.options={...this.#d,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=c(this.options);void 0!==e.data&&(this.setState(l(e.data,e.dataUpdatedAt)),this.#a=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#l.remove(this)}setData(e,t){let r=(0,s.replaceData)(this.state.data,e,this.options);return this.#p({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#p({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#h?.promise;return this.#h?.cancel(e),t?t.then(s.noop).catch(s.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#a)}isActive(){return this.observers.some(e=>!1!==(0,s.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===s.skipToken||this.state.dataUpdateCount+this.state.errorUpdate
1Count===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,s.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,s.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#h?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#h?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#l.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.#h&&(this.#f?this.#h.cancel({revert:!0}):this.#h.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(e,t){let r;if("idle"!==this.state.fetchStatus&&this.#h?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#h)return this.#h.continueRetry(),this.#h.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#f=!0,n.signal)})},a=()=>{let e,r=(0,s.ensureQueryFn)(this.options,t),n=(o(e={client:this.#c,queryKey:this.queryKey,meta:this.meta}),e);return(this.#f=!1,this.options.persister)?this.options.persister(r,n,this):r(n)},u=(o(r={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#c,state:this.state,fetchFn:a}),r);this.options.behavior?.onFetch(u,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#p({type:"fetch",meta:u.fetchOptions?.meta}),this.#h=(0,i.createRetryer)({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:e=>{e instanceof i.CancelledError&&e.revert&&this.setState({...this.#u,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{let e=await this.#h.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#l.config.onSuccess?.(e,this),this.#l.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof i.CancelledError){if(e.silent)return this.#h.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#p({type:"error",error:e}),this.#l.config.onError?.(e,this),this.#l.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#p(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,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...l(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#u=e.manual?r:void 0,r;case"error":let n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),n.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,i.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function l(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function c(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdate
1Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,a,"fetchState",0,u],286491);var h=e.i(915823),d=e.i(793803),f=e.i(180166),p=class extends h.Subscribable{constructor(e,t){super(),this.options=t,this.#c=e,this.#y=null,this.#v=(0,d.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#c;#m=void 0;#b=void 0;#g=void 0;#E;#R;#v;#y;#S;#w;#C;#O;#T;#x;#I=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#m.addObserver(this),y(this.#m,this.options)?this.#P():this.updateResult(),this.#Q())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return v(this.#m,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return v(this.#m,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#F(),this.#D(),this.#m.removeObserver(this)}setOptions(e){let t=this.options,r=this.#m;if(this.options=this.#c.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,s.resolveEnabled)(this.options.enabled,this.#m))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#m.setOptions(this.options),t._defaulted&&!(0,s.shallowEqualObjects)(this.options,t)&&this.#c.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#m,observer:this});let n=this.hasListeners();n&&m(this.#m,r,this.options,t)&&this.#P(),this.updateResult(),n&&(this.#m!==r||(0,s.resolveEnabled)(this.options.enabled,this.#m)!==(0,s.resolveEnabled)(t.enabled,this.#m)||(0,s.resolveStaleTime)(this.options.staleTime,this.#m)!==(0,s.resolveStaleTime)(t.staleTime,this.#m))&&this.#M();let i=this.#L();n&&(this.#m!==r||(0,s.resolveEnabled)(this.options.enabled,this.#m)!==(0,s.resolveEnabled)(t.enabled,this.#m)||i!==this.#x)&&this.#U(i)}getOptimisticResult(e){var t,r;let n=this.#c.getQueryCache().build(this.#c,e),i=this.createResult(n,e);return t=this,r=i,(0,s.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#g=i,this.#R=this.options,this.#E=this.#m.state),i}getCurrentResult(){return this.#g}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#v.status||this.#v.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#I.add(e)}getCurrentQuery(){return this.#m}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#c.defaultQueryOptions(e),r=this.#c.getQueryCache().build(this.#c,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#P({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#g))}#P(e){this.#j();let t=this.#m.fetch(this.options,e);return e?.throwOnError||(t=t.catch(s.noop)),t}#M(){this.#F();let e=(0,s.resolveStaleTime)(this.options.staleTime,this.#m);if(s.isServer||this.#g.isStale||!(0,s.isValidTimeout)(e))return;let t=(0,s.timeUntilStale)(this.#g.dataUpdatedAt,e);this.#O=f.timeoutManager.setTimeout(()=>{this.#g.isStale||this.updateResult()},t+1)}#L(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#m):this.options.refetchInterval)??!1}#U(e){this.#D(),this.#x=e,!s.isServer&&!1!==(0,s.resolveEnabled)(this.options.enabled,this.#m)&&(0,s.isValidTimeout)(this.#x)&&0!==this.#x&&(this.#T=f.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#P()},this.#x))}#Q(){this.#M(),this.#U(this.#L())}#F(){this.#O&&(f.timeoutManager.clearTimeout(this.#O),this.#O=void 0)}#D(){this.#T&&(f.timeoutManager.clearInterval(this.#T),this.#T=void 0)}createResult(e,t){let r,n=this.#m,i=this.options,o=this.#g,a=this.#E,l=this.#R,c=e!==n?e.state:this.#b,{state:h}=e,f={...h},p=!1;if(t._optimisticResults){let r=this.hasListeners(),s=!r&&y(e,t),o=r&&m(e,n,t,i);(s||o)&&(f={...f,...u(h.data,e.options)}),"isRestoring"===t._optimisticResults&&(f.fetchStatus="idle")}let{error:v,errorUpdatedAt:g,status:E}=f;r=f.data;let R=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===E){let e;o?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(e=
1o.data,R=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#C?.state.data,this.#C):t.placeholderData,void 0!==e&&(E="success",r=(0,s.replaceData)(o?.data,e,t),p=!0)}if(t.select&&void 0!==r&&!R)if(o&&r===a?.data&&t.select===this.#S)r=this.#w;else try{this.#S=t.select,r=t.select(r),r=(0,s.replaceData)(o?.data,r,t),this.#w=r,this.#y=null}catch(e){this.#y=e}this.#y&&(v=this.#y,r=this.#w,g=Date.now(),E="error");let S="fetching"===f.fetchStatus,w="pending"===E,C="error"===E,O=w&&S,T=void 0!==r,x={status:E,fetchStatus:f.fetchStatus,isPending:w,isSuccess:"success"===E,isError:C,isInitialLoading:O,isLoading:O,data:r,dataUpdatedAt:f.dataUpdatedAt,error:v,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:S,isRefetching:S&&!w,isLoadingError:C&&!T,isPaused:"paused"===f.fetchStatus,isPlaceholderData:p,isRefetchError:C&&T,isStale:b(e,t),refetch:this.refetch,promise:this.#v,isEnabled:!1!==(0,s.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==x.data,r="error"===x.status&&!t,s=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},i=()=>{s(this.#v=x.promise=(0,d.pendingThenable)())},o=this.#v;switch(o.status){case"pending":e.queryHash===n.queryHash&&s(o);break;case"fulfilled":(r||x.data!==o.value)&&i();break;case"rejected":r&&x.error===o.reason||i()}}return x}updateResult(){let e=this.#g,t=this.createResult(this.#m,this.options);if(this.#E=this.#m.state,this.#R=this.options,void 0!==this.#E.data&&(this.#C=this.#m),(0,s.shallowEqualObjects)(t,e))return;this.#g=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#I.size)return!0;let n=new Set(r??this.#I);return this.options.throwOnError&&n.add("error"),Object.keys(this.#g).some(t=>this.#g[t]!==e[t]&&n.has(t))};this.#N({listeners:r()})}#j(){let e=this.#c.getQueryCache().build(this.#c,this.options);if(e===this.#m)return;let t=this.#m;this.#m=e,this.#b=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#Q()}#N(e){n.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#g)}),this.#c.getQueryCache().notify({query:this.#m,type:"observerResultsUpdated"})})}};function y(e,t){return!1!==(0,s.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&v(e,t,t.refetchOnMount)}function v(e,t,r){if(!1!==(0,s.resolveEnabled)(t.enabled,e)&&"static"!==(0,s.resolveStaleTime)(t.staleTime,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&b(e,t)}return!1}function m(e,t,r,n){return(e!==t||!1===(0,s.resolveEnabled)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&b(e,r)}function b(e,t){return!1!==(0,s.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,s.resolveStaleTime)(t.staleTime,e))}e.s(["QueryObserver",0,p],869230);var g=e.i(271645),E=e.i(912598);e.i(843476);var R=g.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),S=g.createContext(!1);S.Provider;var w=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function C(e,t,r){let i,o=g.useContext(S),a=g.useContext(R),u=(0,E.useQueryClient)(r),l=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(l);let c=u.getQueryCache().get(l.queryHash);if(l._optimisticResults=o?"isRestoring":"optimistic",l.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=l.staleTime;l.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof l.gcTime&&(l.gcTime=Math.max(l.gcTime,1e3))}i=c?.state.error&&"function"==typeof l.throwOnError?(0,s.shouldThrowError)(l.throwOnError,[c.state.error,c]):l.throwOnError,(l.suspense||l.experimental_prefetchInRender||i)&&!a.isReset()&&(l.retryOnMount=!1),g.useEffect(()=>{a.clearReset()},[a]);let h=!u.getQueryCache().get(l.queryHash),[d]=g.useState(()=>new t(u,l)),f=d.getOptimisticResult(l),p=!o&&!1!==e.subscribed;if(g.useSyncExternalStore(g.useCallback(e=>{let t=p?d.subscribe(n.notifyManager.batchCalls(e)):s.noop;return d.updateResult(),t},[d,p]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),g.useEffect(()=>{d.setOptions(l)},[l,d]),l?.suspense&&f.isPending)throw w(l,d,a);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&void 0===e.data||(0,s.shouldThrowError)(r,[e.error,n])))({result:f,errorResetBoundary:a,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw f.error;if(u.getDefaultOptions().queries?._experimental_afterQuery?.(l,f),l.experimental_prefetchInRender&&!s.isServer&&f.isLoading&&f.isFetching&&!o){let e=h?w(l,d,a):c?.promise;e?.catch(s.noop).finally(()=>{d.updateResult()})}return l.notifyOnChangeProps?f:d.trackResult(f)}e.s(["useBaseQuery",0,C],469637),e.s(["useQuery",0,function(e,t){return C(e,p,t)}],266027)},296626,e=>{"use strict";var t=e.i(271645),r=e.i(820783),n=e.i(934620),s=e=>{var s;let o,a,{present:u,children:l}=e,c=function(e){var r,s;let[o,a]=t.useState(),u=t.useRef(null),l=t.useRef(e),c=t.useRef("none"),[h,d]=(r=e?"mounted":"unmounted",s={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>
1s[e][t]??e,r));return t.useEffect(()=>{let e=i(u.current);c.current="mounted"===h?e:"none"},[h]),(0,n.useLayoutEffect)(()=>{let t=u.current,r=l.current;if(r!==e){let n=c.current,s=i(t);e?d("MOUNT"):"none"===s||t?.display==="none"?d("UNMOUNT"):r&&n!==s?d("ANIMATION_OUT"):d("UNMOUNT"),l.current=e}},[e,d]),(0,n.useLayoutEffect)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,r=r=>{let n=i(u.current).includes(CSS.escape(r.animationName));if(r.target===o&&n&&(d("ANIMATION_END"),!l.current)){let r=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=r)})}},n=e=>{e.target===o&&(c.current=i(u.current))};return o.addEventListener("animationstart",n),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",n),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:t.useCallback(e=>{u.current=e?getComputedStyle(e):null,a(e)},[])}}(u),h="function"==typeof l?l({present:c.isPresent}):t.Children.only(l),d=(0,r.useComposedRefs)(c.ref,(s=h,(a=(o=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?s.ref:(a=(o=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?s.props.ref:s.props.ref||s.ref));return"function"==typeof l||c.isPresent?t.cloneElement(h,{ref:d}):null};function i(e){return e?.animationName||"none"}s.displayName="Presence",e.s(["Presence",0,s])},820783,e=>{"use strict";var t=e.i(271645);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return t=>{let n=!1,s=e.map(e=>{let s=r(e,t);return n||"function"!=typeof s||(n=!0),s});if(n)return()=>{for(let t=0;t<s.length;t++){let n=s[t];"function"==typeof n?n():r(e[t],null)}}}}e.s(["composeRefs",0,n,"useComposedRefs",0,function(...e){return t.useCallback(n(...e),e)}])},225913,e=>{"use strict";var t=e.i(207670);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,n=t.clsx;e.s(["cva",0,(e,t)=>s=>{var i;if((null==t?void 0:t.variants)==null)return n(e,null==s?void 0:s.class,null==s?void 0:s.className);let{variants:o,defaultVariants:a}=t,u=Object.keys(o).map(e=>{let t=null==s?void 0:s[e],n=null==a?void 0:a[e];if(null===t)return null;let i=r(t)||r(n);return o[e][i]}),l=s&&Object.entries(s).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return n(e,u,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:r,className:n,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...l}[t]):({...a,...l})[t]===r})?[...e,r,n]:e},[]),null==s?void 0:s.class,null==s?void 0:s.className)}])},407398,991918,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(820783),s=Symbol.for("react.lazy"),i=r[" use ".trim().toString()];function o(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function a(e){var s;let a,u=(s=e,(a=r.forwardRef((e,t)=>{let{children:s,...a}=e;if(o(s)&&"function"==typeof i&&(s=i(s._payload)),r.isValidElement(s)){var u;
1let e,i,o=(u=s,(i=(e=Object.getOwnPropertyDescriptor(u.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?u.ref:(i=(e=Object.getOwnPropertyDescriptor(u,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?u.props.ref:u.props.ref||u.ref),l=function(e,t){let r={...t};for(let n in t){let s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...e)=>{let t=i(...e);return s(...e),t}:s&&(r[n]=s):"style"===n?r[n]={...s,...i}:"className"===n&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}(a,s.props);return s.type!==r.Fragment&&(l.ref=t?(0,n.composeRefs)(t,o):o),r.cloneElement(s,l)}return r.Children.count(s)>1?r.Children.only(null):null})).displayName=`${s}.SlotClone`,a),l=r.forwardRef((e,n)=>{let{children:s,...a}=e;o(s)&&"function"==typeof i&&(s=i(s._payload));let l=r.Children.toArray(s),h=l.find(c);if(h){let e=h.props.children,s=l.map(t=>t!==h?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,t.jsx)(u,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,s):null})}return(0,t.jsx)(u,{...a,ref:n,children:s})});return l.displayName=`${e}.Slot`,l}var u=a("Slot"),l=Symbol("radix.slottable");function c(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}e.s(["Slot",0,u,"createSlot",0,a],991918);var h=e.i(225913),d=e.i(448020);let f=(0,h.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),p=r.forwardRef(({className:e,variant:r,size:n,asChild:s=!1,...i},o)=>(0,t.jsx)(s?u:"button",{className:(0,d.cn)(f({variant:r,size:n,className:e})),ref:o,...i}));p.displayName="Button",e.s(["Button",0,p,"buttonVariants",0,f],407398)},30656,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(448020);let s=(0,r.cva)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",ghost:"hover:bg-accent hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:r,...i}){return(0,t.jsx)("div",{className:(0,n.cn)(s({variant:r}),e),...i})}])},934620,e=>{"use strict";var t=e.i(271645),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,r])},30207,e=>{"use strict";var t=e.i(271645);e.s(["useCallbackRef",0,function(e){let r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])}])},981140,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}])},30030,e=>{"use strict";var t=e.i(271645),r=e.i(843476);e.s(["createContext",0,function(e,n){let s=t.createContext(n),i=e=>{let{children:n,...i}=e,o=t.useMemo(()=>i,Object.values(i));return(0,r.jsx)(s.Provider,{value:o,children:n})};return i.displayName=e+"Provider",[i,function(r){let i=t.useContext(s);if(i)return i;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${e}\``)}]},"createContextScope",0,function(e,n=[]){let s=[],i=()=>{let r=s.map(e=>t.createContext(e));return function(n){let s=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:s}}),[n,s])}};return i.scopeName=e,[function(n,i){let o=t.createContext(i),a=s.length;s=[...s,i];let u=n=>{let{scope:s,children:i,...u}=n,l=s?.[e]?.[a]||o,c=t.useMemo(()=>u,Object.values(u));return(0,r.jsx)(l.Provider,{value:c,children:i})};return u.displayName=n+"Provider",[u,function(r,s){let u=s?.[e]?.[a]||o,l=t.useContext(u);if(l)return l;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let s=n.reduce((t,{useScope:r,scopeName:n})=>{let s=r(e)[`__scope${n}`];return{...t,...s}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:s}),[s])}};return n.scopeName=r.scopeName,n}
1(i,...n)]}])},369340,e=>{"use strict";var t=e.i(271645),r=e.i(934620);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var n=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:r,onChange:s=()=>{},caller:i}){let[o,a,u]=function({defaultProp:e,onChange:r}){let[s,i]=t.useState(e),o=t.useRef(s),a=t.useRef(r);return n(()=>{a.current=r},[r]),t.useEffect(()=>{o.current!==s&&(a.current?.(s),o.current=s)},[s,o]),[s,i,a]}({defaultProp:r,onChange:s}),l=void 0!==e,c=l?e:o;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=l},[l,i])}return[c,t.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&u.current?.(r)}else a(t)},[l,e,a,u])]}],369340)},248425,e=>{"use strict";var t=e.i(271645),r=e.i(174080),n=e.i(820783),s=e.i(843476),i=Symbol("radix.slottable");function o(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===i}var a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{var i,a;let u,l,c,h=(a=i=`Primitive.${r}`,(u=t.forwardRef((e,r)=>{let{children:s,...i}=e;if(t.isValidElement(s)){var o;let e,a,u=(o=s,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let r={...t};for(let n in t){let s=e[n],i=t[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...e)=>{let t=i(...e);return s(...e),t}:s&&(r[n]=s):"style"===n?r[n]={...s,...i}:"className"===n&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}(i,s.props);return s.type!==t.Fragment&&(l.ref=r?(0,n.composeRefs)(r,u):u),t.cloneElement(s,l)}return t.Children.count(s)>1?t.Children.only(null):null})).displayName=`${a}.SlotClone`,l=u,(c=t.forwardRef((e,r)=>{let{children:n,...i}=e,a=t.Children.toArray(n),u=a.find(o);if(u){let e=u.props.children,n=a.map(r=>r!==u?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,s.jsx)(l,{...i,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,s.jsx)(l,{...i,ref:r,children:n})})).displayName=`${i}.Slot`,c),d=t.forwardRef((e,t)=>{let{asChild:n,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(n?h:r,{...i,ref:t})});return d.displayName=`Primitive.${r}`,{...e,[r]:d}},{});e.s(["Primitive",0,a,"dispatchDiscreteCustomEvent",0,function(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}],248425)},610772,e=>{"use strict";var t=e.i(271645),r=e.i(934620),n=t[" useId ".trim().toString()]||(()=>void 0),s=0;e.s(["useId",0,function(e){let[i,o]=t.useState(n());return(0,r.useLayoutEffect)(()=>{e||o(e=>e??String(s++))},[e]),e||(i?`radix-${i}`:"")}])},726330,e=>{"use strict";var t,r=e.i(271645),n=e.i(981140),s=e.i(248425),i=e.i(820783),o=e.i(30207),a=e.i(843476),u="dismissableLayer.update",l=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),c=r.forwardRef((e,c)=>{let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:p,onPointerDownOutside:y,onFocusOutside:v,onInteractOutside:m,onDismiss:b,...g}=e,E=r.useContext(l),[R,S]=r.useState(null),w=R?.ownerDocument??globalThis?.document,[,C]=r.useState({}),O=(0,i.useComposedRefs)(c,e=>S(e)),T=Array.from(E.layers),[x]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),I=T.indexOf(x),P=R?T.indexOf(R):-1,Q=E.layersWithOutsidePointerEventsDisabled.size>0,F=P>=I,D=function(e,t=globalThis?.document){let n=(0,o.useCallbackRef)(e),s=r.useRef(!1),i=r.useRef(()=>{});return r.useEffect(()=>{let e=e=>{if(e.target&&!s.current){let r=function(){f("dismissableLayer.pointerDownOutside",n,s,{discrete:!0})},s={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);s.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}(e=>{let t=e.target,r=[...E.branches].some(e=>e.contains(t));F&&!r&&(y?.(e),m?.(e),e.defaultPrevented||b?.())},w),j=function(e,t=globalThis?.document){let n=(0,o.useCallbackRef)(e),s=r.useRef(!1);return r.useEffect(()=>{let e=e=>{e.target&&!s.current&&f("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(v?.(e),m?.(e),e.defaultPrevented||b?.())},w);return!function(e,t=globalThis?.document){let n=(0,o.useCallbackRef)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{P===E.layers.size-1&&(p?.(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},w),r.useEffect(()=>{if(R)return h&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(t=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(R)),E.layers.add(R),d(),()=>{h&&1===E.layersWithOutsidePointerEventsDisabled.size&&(w.body.style.pointerEvents=t)}},[R,w,h,E]),r.useEffect(()=>()=>{R&&(E.layers.delete(R),E.layersWithOutsidePointerEventsDisabled.delete(R),d())},[R,E]),r.useEffect(()=>{let e=()=>C({});return document.addEventListener(u,e),()=>document.removeEventListener(u,e)}
1,[]),(0,a.jsx)(s.Primitive.div,{...g,ref:O,style:{pointerEvents:Q?F?"auto":"none":void 0,...e.style},onFocusCapture:(0,n.composeEventHandlers)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,n.composeEventHandlers)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,n.composeEventHandlers)(e.onPointerDownCapture,D.onPointerDownCapture)})});c.displayName="DismissableLayer";var h=r.forwardRef((e,t)=>{let n=r.useContext(l),o=r.useRef(null),u=(0,i.useComposedRefs)(t,o);return r.useEffect(()=>{let e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,a.jsx)(s.Primitive.div,{...e,ref:u})});function d(){let e=new CustomEvent(u);document.dispatchEvent(e)}function f(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,s.dispatchDiscreteCustomEvent)(i,o):i.dispatchEvent(o)}h.displayName="DismissableLayerBranch",e.s(["Branch",0,h,"DismissableLayer",0,c,"Root",0,c],726330)},774606,e=>{"use strict";var t=e.i(271645),r=e.i(174080),n=e.i(248425),s=e.i(934620),i=e.i(843476),o=t.forwardRef((e,o)=>{let{container:a,...u}=e,[l,c]=t.useState(!1);(0,s.useLayoutEffect)(()=>c(!0),[]);let h=a||l&&globalThis?.document?.body;return h?r.default.createPortal((0,i.jsx)(n.Primitive.div,{...u,ref:o}),h):null});o.displayName="Portal",e.s(["Portal",0,o])}]);

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.