function px(n,r){for(var l=0;ls[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function l(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(u){if(u.ep)return;u.ep=!0;const f=l(u);fetch(u.href,f)}})();function Wy(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Pc={exports:{}},pl={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Jp;function yx(){if(Jp)return pl;Jp=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(s,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var y in u)y!=="key"&&(f[y]=u[y])}else f=u;return u=f.ref,{$$typeof:n,type:s,key:h,ref:u!==void 0?u:null,props:f}}return pl.Fragment=r,pl.jsx=l,pl.jsxs=l,pl}var Fp;function vx(){return Fp||(Fp=1,Pc.exports=yx()),Pc.exports}var d=vx(),yr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},gx=class extends yr{#t;#e;#n;constructor(){super(),this.#n=n=>{if(typeof window<"u"&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},kf=new gx,bx={setTimeout:(n,r)=>setTimeout(n,r),clearTimeout:n=>clearTimeout(n),setInterval:(n,r)=>setInterval(n,r),clearInterval:n=>clearInterval(n)},xx=class{#t=bx;#e=!1;setTimeoutProvider(n){this.#t=n}setTimeout(n,r){return this.#t.setTimeout(n,r)}clearTimeout(n){this.#t.clearTimeout(n)}setInterval(n,r){return this.#t.setInterval(n,r)}clearInterval(n){this.#t.clearInterval(n)}},fr=new xx;function Sx(n){setTimeout(n,0)}var jx=typeof window>"u"||"Deno"in globalThis;function gt(){}function wx(n,r){return typeof n=="function"?n(r):n}function uf(n){return typeof n=="number"&&n>=0&&n!==1/0}function ev(n,r){return Math.max(n+(r||0)-Date.now(),0)}function Da(n,r){return typeof n=="function"?n(r):n}function Pt(n,r){return typeof n=="function"?n(r):n}function Ip(n,r){const{type:l="all",exact:s,fetchStatus:u,predicate:f,queryKey:h,stale:y}=n;if(h){if(s){if(r.queryHash!==qf(h,r.options))return!1}else if(!hi(r.queryKey,h))return!1}if(l!=="all"){const m=r.isActive();if(l==="active"&&!m||l==="inactive"&&m)return!1}return!(typeof y=="boolean"&&r.isStale()!==y||u&&u!==r.state.fetchStatus||f&&!f(r))}function $p(n,r){const{exact:l,status:s,predicate:u,mutationKey:f}=n;if(f){if(!r.options.mutationKey)return!1;if(l){if(Ua(r.options.mutationKey)!==Ua(f))return!1}else if(!hi(r.options.mutationKey,f))return!1}return!(s&&r.state.status!==s||u&&!u(r))}function qf(n,r){return(r?.queryKeyHashFn||Ua)(n)}function Ua(n){return JSON.stringify(n,(r,l)=>cf(l)?Object.keys(l).sort().reduce((s,u)=>(s[u]=l[u],s),{}):l)}function hi(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(Array.isArray(n)&&Array.isArray(r)){for(let s=0;s500)return r;const s=Wp(n)&&Wp(r);if(!s&&!(cf(n)&&cf(r)))return r;const f=(s?n:Object.keys(n)).length,h=s?r:Object.keys(r),y=h.length,m=s?new Array(y):{};let v=0;for(let x=0;x{fr.setTimeout(r,n)})}function ff(n,r,l){return typeof l.structuralSharing=="function"?l.structuralSharing(n,r):l.structuralSharing!==!1?Hf(n,r):r}function Tx(n,r,l=0){const s=[...n,r];return l&&s.length>l?s.slice(1):s}function Ax(n,r,l=0){const s=[r,...n];return l&&s.length>l?s.slice(0,-1):s}var Xt=Symbol();function tv(n,r){return!n.queryFn&&r?.initialPromise?()=>r.initialPromise:!n.queryFn||n.queryFn===Xt?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Lf(n,r){return typeof n=="function"?n(...r):!!n}function _x(n,r,l){let s=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??=r(),s||(s=!0,u.aborted?l():u.addEventListener("abort",l,{once:!0})),u)}),n}var jl=(()=>{let n=()=>jx;return{isServer(){return n()},setIsServer(r){n=r}}})();function df(){let n,r;const l=new Promise((u,f)=>{n=u,r=f});l.status="pending",l.catch(()=>{});function s(u){Object.assign(l,u),delete l.resolve,delete l.reject}return l.resolve=u=>{s({status:"fulfilled",value:u}),n(u)},l.reject=u=>{s({status:"rejected",reason:u}),r(u)},l}var Cx=Sx;function Rx(){let n=[],r=0,l=y=>{y()},s=y=>{y()},u=Cx;const f=y=>{r?n.push(y):u(()=>{l(y)})},h=()=>{const y=n;n=[],y.length&&u(()=>{s(()=>{y.forEach(m=>{l(m)})})})};return{batch:y=>{let m;r++;try{m=y()}finally{r--,r||h()}return m},batchCalls:y=>(...m)=>{f(()=>{y(...m)})},schedule:f,setNotifyFunction:y=>{l=y},setBatchNotifyFunction:y=>{s=y},setScheduler:y=>{u=y}}}var Ze=Rx(),Mx=class extends yr{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(typeof window<"u"&&window.addEventListener){const r=()=>n(!0),l=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",l)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(l=>{l(n)}))}isOnline(){return this.#t}},co=new Mx;function Nx(n){return Math.min(1e3*2**n,3e4)}function nv(n){return(n??"online")==="online"?co.isOnline():!0}var hf=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function av(n){let r=!1,l=0,s;const u=df(),f=()=>u.status!=="pending",h=A=>{if(!f()){const G=new hf(A);j(G),n.onCancel?.(G)}},y=()=>{r=!0},m=()=>{r=!1},v=()=>kf.isFocused()&&(n.networkMode==="always"||co.isOnline())&&n.canRun(),x=()=>nv(n.networkMode)&&n.canRun(),g=A=>{f()||(s?.(),u.resolve(A))},j=A=>{f()||(s?.(),u.reject(A))},O=()=>new Promise(A=>{s=G=>{(f()||v())&&A(G)},n.onPause?.()}).then(()=>{s=void 0,f()||n.onContinue?.()}),_=()=>{if(f())return;let A;const G=l===0?n.initialPromise:void 0;try{A=G??n.fn()}catch(B){A=Promise.reject(B)}Promise.resolve(A).then(g).catch(B=>{if(f())return;const I=n.retry??(jl.isServer()?0:3),$=n.retryDelay??Nx,re=typeof $=="function"?$(l,B):$,V=I===!0||typeof I=="number"&&lv()?void 0:O()).then(()=>{r?j(B):_()})})};return{promise:u,status:()=>u.status,cancel:h,continue:()=>(s?.(),u),cancelRetry:y,continueRetry:m,canStart:x,start:()=>(x()?_():O().then(_),u)}}var rv=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),uf(this.gcTime)&&(this.#t=fr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(jl.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(fr.clearTimeout(this.#t),this.#t=void 0)}};function zx(n){return{onFetch:(r,l)=>{const s=r.options,u=r.fetchOptions?.meta?.fetchMore?.direction,f=r.state.data?.pages||[],h=r.state.data?.pageParams||[];let y={pages:[],pageParams:[]},m=0;const v=async()=>{let x=!1;const g=_=>{_x(_,()=>r.signal,()=>x=!0)},j=tv(r.options,r.fetchOptions),O=async(_,A,G)=>{if(x)return Promise.reject(r.signal.reason);if(A==null&&_.pages.length)return Promise.resolve(_);const I=(()=>{const K={client:r.client,queryKey:r.queryKey,pageParam:A,direction:G?"backward":"forward",meta:r.options.meta};return g(K),K})(),$=await j(I),{maxPages:re}=r.options,V=G?Ax:Tx;return{pages:V(_.pages,$,re),pageParams:V(_.pageParams,A,re)}};if(u&&f.length){const _=u==="backward",A=_?iv:mf,G={pages:f,pageParams:h},B=A(s,G);y=await O(G,B,_)}else{const _=n??f.length;do{const A=m===0?h[0]??s.initialPageParam:mf(s,y);if(m>0&&A==null)break;y=await O(y,A),m++}while(m<_)}return y};r.options.persister?r.fetchFn=()=>r.options.persister?.(v,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},l):r.fetchFn=v}}}function mf(n,{pages:r,pageParams:l}){const s=r.length-1;return r.length>0?n.getNextPageParam(r[s],r,l[s],l):void 0}function iv(n,{pages:r,pageParams:l}){return r.length>0?n.getPreviousPageParam?.(r[0],r,l[0],l):void 0}function Dx(n,r){return r?mf(n,r)!=null:!1}function Ux(n,r){return!r||!n.getPreviousPageParam?!1:iv(n,r)!=null}var kx=class extends rv{#t;#e;#n;#a;#r;#i;#s;#l;constructor(n){super(),this.#l=!1,this.#s=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#r=n.client,this.#a=this.#r.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=ny(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#i?.promise}setOptions(n){if(this.options={...this.#s,...n},n?._type&&(this.#t=n._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=ny(this.options);r.data!==void 0&&(this.setState(ty(r.data,r.dataUpdatedAt)),this.#e=r)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,r){const l=ff(this.state.data,n,this.options);return this.#o({data:l,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),l}setState(n){this.#o({type:"setState",state:n})}cancel(n){const r=this.#i?.promise;return this.#i?.cancel(n),r?r.then(gt).catch(gt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(n=>Pt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xt||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Da(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!ev(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(r=>r!==n),this.observers.length||(this.#i&&(this.#l||this.#c()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(n,r){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(n&&this.setOptions(n),!this.options.queryFn){const m=this.observers.find(v=>v.options.queryFn);m&&this.setOptions(m.options)}const l=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#l=!0,l.signal)})},u=()=>{const m=tv(this.options,r),x=(()=>{const g={client:this.#r,queryKey:this.queryKey,meta:this.meta};return s(g),g})();return this.#l=!1,this.options.persister?this.options.persister(m,x,this):m(x)},h=(()=>{const m={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:u};return s(m),m})();(this.#t==="infinite"?zx(this.options.pages):this.options.behavior)?.onFetch(h,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#o({type:"fetch",meta:h.fetchOptions?.meta}),this.#i=av({initialPromise:r?.initialPromise,fn:h.fetchFn,onCancel:m=>{m instanceof hf&&m.revert&&this.setState({...this.#n,fetchStatus:"idle"}),l.abort()},onFail:(m,v)=>{this.#o({type:"failed",failureCount:m,error:v})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const m=await this.#i.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#a.config.onSuccess?.(m,this),this.#a.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof hf){if(m.silent)return this.#i.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#o({type:"error",error:m}),this.#a.config.onError?.(m,this),this.#a.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#o(n){const r=l=>{switch(n.type){case"failed":return{...l,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...lv(l.data,this.options),fetchMeta:n.meta??null};case"success":const s={...l,...ty(n.data,n.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=n.manual?s:void 0,s;case"error":const u=n.error;return{...l,error:u,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...n.state}}};this.state=r(this.state),Ze.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function lv(n,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:nv(r.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function ty(n,r){return{data:n,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ny(n){const r=typeof n.initialData=="function"?n.initialData():n.initialData,l=r!==void 0,s=l?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:l?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:l?"success":"pending",fetchStatus:"idle"}}var Rl=class extends yr{constructor(n,r){super(),this.options=r,this.#t=n,this.#l=null,this.#s=df(),this.bindMethods(),this.setOptions(r)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#i;#s;#l;#c;#o;#h;#f;#m;#u;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),ay(this.#e,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return pf(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return pf(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const r=this.options,l=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pt(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#e.setOptions(this.options),r._defaulted&&!Sl(this.options,r)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&ry(this.#e,l,this.options,r)&&this.#d(),this.updateResult(),s&&(this.#e!==l||Pt(this.options.enabled,this.#e)!==Pt(r.enabled,this.#e)||Da(this.options.staleTime,this.#e)!==Da(r.staleTime,this.#e))&&this.#y();const u=this.#v();s&&(this.#e!==l||Pt(this.options.enabled,this.#e)!==Pt(r.enabled,this.#e)||u!==this.#u)&&this.#g(u)}getOptimisticResult(n){const r=this.#t.getQueryCache().build(this.#t,n),l=this.createResult(r,n);return Hx(this,l)&&(this.#a=l,this.#i=this.options,this.#r=this.#e.state),l}getCurrentResult(){return this.#a}trackResult(n,r){return new Proxy(n,{get:(l,s)=>(this.trackProp(s),r?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,s))})}trackProp(n){this.#p.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=this.#t.defaultQueryOptions(n),l=this.#t.getQueryCache().build(this.#t,r);return l.fetch().then(()=>this.createResult(l,r))}fetch(n){return this.#d({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#d(n){this.#j();let r=this.#e.fetch(this.options,n);return n?.throwOnError||(r=r.catch(gt)),r}#y(){this.#x();const n=Da(this.options.staleTime,this.#e);if(jl.isServer()||this.#a.isStale||!uf(n))return;const l=ev(this.#a.dataUpdatedAt,n)+1;this.#f=fr.setTimeout(()=>{this.#a.isStale||this.updateResult()},l)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(n){this.#S(),this.#u=n,!(jl.isServer()||Pt(this.options.enabled,this.#e)===!1||!uf(this.#u)||this.#u===0)&&(this.#m=fr.setInterval(()=>{(this.options.refetchIntervalInBackground||kf.isFocused())&&this.#d()},this.#u))}#b(){this.#y(),this.#g(this.#v())}#x(){this.#f!==void 0&&(fr.clearTimeout(this.#f),this.#f=void 0)}#S(){this.#m!==void 0&&(fr.clearInterval(this.#m),this.#m=void 0)}createResult(n,r){const l=this.#e,s=this.options,u=this.#a,f=this.#r,h=this.#i,m=n!==l?n.state:this.#n,{state:v}=n;let x={...v},g=!1,j;if(r._optimisticResults){const q=this.hasListeners(),W=!q&&ay(n,r),ne=q&&ry(n,l,r,s);(W||ne)&&(x={...x,...lv(v.data,n.options)}),r._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:O,errorUpdatedAt:_,status:A}=x;j=x.data;let G=!1;if(r.placeholderData!==void 0&&j===void 0&&A==="pending"){let q;u?.isPlaceholderData&&r.placeholderData===h?.placeholderData?(q=u.data,G=!0):q=typeof r.placeholderData=="function"?r.placeholderData(this.#h?.state.data,this.#h):r.placeholderData,q!==void 0&&(A="success",j=ff(u?.data,q,r),g=!0)}if(r.select&&j!==void 0&&!G)if(u&&j===f?.data&&r.select===this.#c)j=this.#o;else try{this.#c=r.select,j=r.select(j),j=ff(u?.data,j,r),this.#o=j,this.#l=null}catch(q){this.#l=q}this.#l&&(O=this.#l,j=this.#o,_=Date.now(),A="error");const B=x.fetchStatus==="fetching",I=A==="pending",$=A==="error",re=I&&B,V=j!==void 0,M={status:A,fetchStatus:x.fetchStatus,isPending:I,isSuccess:A==="success",isError:$,isInitialLoading:re,isLoading:re,data:j,dataUpdatedAt:x.dataUpdatedAt,error:O,errorUpdatedAt:_,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:n.isFetched(),isFetchedAfterMount:x.dataUpdateCount>m.dataUpdateCount||x.errorUpdateCount>m.errorUpdateCount,isFetching:B,isRefetching:B&&!I,isLoadingError:$&&!V,isPaused:x.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:$&&V,isStale:Bf(n,r),refetch:this.refetch,promise:this.#s,isEnabled:Pt(r.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const q=M.data!==void 0,W=M.status==="error"&&!q,ne=le=>{W?le.reject(M.error):q&&le.resolve(M.data)},F=()=>{const le=this.#s=M.promise=df();ne(le)},ee=this.#s;switch(ee.status){case"pending":n.queryHash===l.queryHash&&ne(ee);break;case"fulfilled":(W||M.data!==ee.value)&&F();break;case"rejected":(!W||M.error!==ee.reason)&&F();break}}return M}updateResult(){const n=this.#a,r=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#i=this.options,this.#r.data!==void 0&&(this.#h=this.#e),Sl(r,n))return;this.#a=r;const l=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!this.#p.size)return!0;const f=new Set(u??this.#p);return this.options.throwOnError&&f.add("error"),Object.keys(this.#a).some(h=>{const y=h;return this.#a[y]!==n[y]&&f.has(y)})};this.#w({listeners:l()})}#j(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const r=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(r?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){Ze.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function qx(n,r){return Pt(r.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&Pt(r.retryOnMount,n)===!1)}function ay(n,r){return qx(n,r)||n.state.data!==void 0&&pf(n,r,r.refetchOnMount)}function pf(n,r,l){if(Pt(r.enabled,n)!==!1&&Da(r.staleTime,n)!=="static"){const s=typeof l=="function"?l(n):l;return s==="always"||s!==!1&&Bf(n,r)}return!1}function ry(n,r,l,s){return(n!==r||Pt(s.enabled,n)===!1)&&(!l.suspense||n.state.status!=="error")&&Bf(n,l)}function Bf(n,r){return Pt(r.enabled,n)!==!1&&n.isStaleByTime(Da(r.staleTime,n))}function Hx(n,r){return!Sl(n.getCurrentResult(),r)}var sv=class extends Rl{constructor(n,r){super(n,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(n){n._type="infinite",super.setOptions(n)}getOptimisticResult(n){return n._type="infinite",super.getOptimisticResult(n)}fetchNextPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"backward"}}})}createResult(n,r){const{state:l}=n,s=super.createResult(n,r),{isFetching:u,isRefetching:f,isError:h,isRefetchError:y}=s,m=l.fetchMeta?.fetchMore?.direction,v=h&&m==="forward",x=u&&m==="forward",g=h&&m==="backward",j=u&&m==="backward";return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Dx(r,l.data),hasPreviousPage:Ux(r,l.data),isFetchNextPageError:v,isFetchingNextPage:x,isFetchPreviousPageError:g,isFetchingPreviousPage:j,isRefetchError:y&&!v&&!g,isRefetching:f&&!x&&!j}}},Lx=class extends rv{#t;#e;#n;#a;constructor(n){super(),this.#t=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#e=[],this.state=n.state||ov(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#e.includes(n)||(this.#e.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#e=this.#e.filter(r=>r!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(n){const r=()=>{this.#r({type:"continue"})},l={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=av({fn:()=>this.options.mutationFn?this.options.mutationFn(n,l):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#r({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#r({type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",u=!this.#a.canStart();try{if(s)r();else{this.#r({type:"pending",variables:n,isPaused:u}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,l);const h=await this.options.onMutate?.(n,l);h!==this.state.context&&this.#r({type:"pending",context:h,variables:n,isPaused:u})}const f=await this.#a.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,l),await this.options.onSuccess?.(f,n,this.state.context,l),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,l),await this.options.onSettled?.(f,null,n,this.state.context,l),this.#r({type:"success",data:f}),f}catch(f){try{await this.#n.config.onError?.(f,n,this.state.context,this,l)}catch(h){Promise.reject(h)}try{await this.options.onError?.(f,n,this.state.context,l)}catch(h){Promise.reject(h)}try{await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,l)}catch(h){Promise.reject(h)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,l)}catch(h){Promise.reject(h)}throw this.#r({type:"error",error:f}),f}finally{this.#n.runNext(this)}}#r(n){const r=l=>{switch(n.type){case"failed":return{...l,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...l,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:n.error,failureCount:l.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ze.batch(()=>{this.#e.forEach(l=>{l.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function ov(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bx=class extends yr{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,r,l){const s=new Lx({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(r),state:l});return this.add(s),s}add(n){this.#t.add(n);const r=Fs(n);if(typeof r=="string"){const l=this.#e.get(r);l?l.push(n):this.#e.set(r,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const r=Fs(n);if(typeof r=="string"){const l=this.#e.get(r);if(l)if(l.length>1){const s=l.indexOf(n);s!==-1&&l.splice(s,1)}else l[0]===n&&this.#e.delete(r)}}this.notify({type:"removed",mutation:n})}canRun(n){const r=Fs(n);if(typeof r=="string"){const s=this.#e.get(r)?.find(u=>u.state.status==="pending");return!s||s===n}else return!0}runNext(n){const r=Fs(n);return typeof r=="string"?this.#e.get(r)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ze.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const r={exact:!0,...n};return this.getAll().find(l=>$p(r,l))}findAll(n={}){return this.getAll().filter(r=>$p(n,r))}notify(n){Ze.batch(()=>{this.listeners.forEach(r=>{r(n)})})}resumePausedMutations(){const n=this.getAll().filter(r=>r.state.isPaused);return Ze.batch(()=>Promise.all(n.map(r=>r.continue().catch(gt))))}};function Fs(n){return n.options.scope?.id}var Qx=class extends yr{#t;#e=void 0;#n;#a;constructor(r,l){super(),this.#t=r,this.setOptions(l),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){const l=this.options;this.options=this.#t.defaultMutationOptions(r),Sl(this.options,l)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),l?.mutationKey&&this.options.mutationKey&&Ua(l.mutationKey)!==Ua(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(r){this.#r(),this.#i(r)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(r,l){return this.#a=l,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(r)}#r(){const r=this.#n?.state??ov();this.#e={...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset}}#i(r){Ze.batch(()=>{if(this.#a&&this.hasListeners()){const l=this.#e.variables,s=this.#e.context,u={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(r?.type==="success"){try{this.#a.onSuccess?.(r.data,l,s,u)}catch(f){Promise.reject(f)}try{this.#a.onSettled?.(r.data,null,l,s,u)}catch(f){Promise.reject(f)}}else if(r?.type==="error"){try{this.#a.onError?.(r.error,l,s,u)}catch(f){Promise.reject(f)}try{this.#a.onSettled?.(void 0,r.error,l,s,u)}catch(f){Promise.reject(f)}}}this.listeners.forEach(l=>{l(this.#e)})})}};function iy(n,r){const l=new Set(r);return n.filter(s=>!l.has(s))}function Yx(n,r,l){const s=n.slice(0);return s[r]=l,s}var Gx=class extends yr{#t;#e;#n;#a;#r;#i;#s;#l;#c;#o=[];constructor(n,r,l){super(),this.#t=n,this.#a=l,this.#n=[],this.#r=[],this.#e=[],this.setQueries(r)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(n=>{n.subscribe(r=>{this.#p(n,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(n=>{n.destroy()})}setQueries(n,r){this.#n=n,this.#a=r,Ze.batch(()=>{const l=this.#r,s=this.#u(this.#n);s.forEach(x=>x.observer.setOptions(x.defaultedQueryOptions));const u=s.map(x=>x.observer),f=u.map(x=>x.getCurrentResult()),h=l.length!==u.length,y=u.some((x,g)=>x!==l[g]),m=h||y,v=m?!0:f.some((x,g)=>{const j=this.#e[g];return!j||!Sl(x,j)});!m&&!v||(m&&(this.#o=s,this.#r=u),this.#e=f,this.hasListeners()&&(m&&(iy(l,u).forEach(x=>{x.destroy()}),iy(u,l).forEach(x=>{x.subscribe(g=>{this.#p(x,g)})})),this.#d()))})}getCurrentResult(){return this.#e}getQueries(){return this.#r.map(n=>n.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(n,r){const l=this.#u(n),s=l.map(f=>f.observer.getOptimisticResult(f.defaultedQueryOptions)),u=l.map(f=>f.defaultedQueryOptions.queryHash);return[s,f=>this.#f(f??s,r,u),()=>this.#h(s,l)]}#h(n,r){return r.map((l,s)=>{const u=n[s];return l.defaultedQueryOptions.notifyOnChangeProps?u:l.observer.trackResult(u,f=>{r.forEach(h=>{h.observer.trackProp(f)})})})}#f(n,r,l){if(r){const s=this.#c,u=l!==void 0&&s!==void 0&&(s.length!==l.length||l.some((f,h)=>f!==s[h]));return(!this.#i||this.#e!==this.#l||u||r!==this.#s)&&(this.#s=r,this.#l=this.#e,l!==void 0&&(this.#c=l),this.#i=Hf(this.#i,r(n))),this.#i}return n}#m(){return this.#a?.combine!==void 0&&this.#r.some((n,r)=>n.options.suspense&&this.#e[r]?.data===void 0)}#u(n){const r=new Map;this.#r.forEach(s=>{const u=s.options.queryHash;if(!u)return;const f=r.get(u);f?f.push(s):r.set(u,[s])});const l=[];return n.forEach(s=>{const u=this.#t.defaultQueryOptions(s),h=r.get(u.queryHash)?.shift()??new Rl(this.#t,u);l.push({defaultedQueryOptions:u,observer:h})}),l}#p(n,r){const l=this.#r.indexOf(n);l!==-1&&(this.#e=Yx(this.#e,l,r),this.#d())}#d(){if(this.hasListeners()){const n=this.#h(this.#e,this.#o),r=this.#m(),l=this.#i,s=r?l:this.#f(n,this.#a?.combine);(r||l!==s)&&Ze.batch(()=>{this.listeners.forEach(u=>{u(this.#e)})})}}},Px=class extends yr{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,r,l){const s=r.queryKey,u=r.queryHash??qf(s,r);let f=this.get(u);return f||(f=new kx({client:n,queryKey:s,queryHash:u,options:n.defaultQueryOptions(r),state:l,defaultOptions:n.getQueryDefaults(s)}),this.add(f)),f}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const r=this.#t.get(n.queryHash);r&&(n.destroy(),r===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ze.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const r={exact:!0,...n};return this.getAll().find(l=>Ip(r,l))}findAll(n={}){const r=this.getAll();return Object.keys(n).length>0?r.filter(l=>Ip(n,l)):r}notify(n){Ze.batch(()=>{this.listeners.forEach(r=>{r(n)})})}onFocus(){Ze.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ze.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Vx=class{#t;#e;#n;#a;#r;#i;#s;#l;constructor(n={}){this.#t=n.queryCache||new Px,this.#e=n.mutationCache||new Bx,this.#n=n.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=kf.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#l=co.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#l?.(),this.#l=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const r=this.defaultQueryOptions({queryKey:n});return this.#t.get(r.queryHash)?.state.data}ensureQueryData(n){const r=this.defaultQueryOptions(n),l=this.#t.build(this,r),s=l.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&l.isStaleByTime(Da(r.staleTime,l))&&this.prefetchQuery(r),Promise.resolve(s))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:r,state:l})=>{const s=l.data;return[r,s]})}setQueryData(n,r,l){const s=this.defaultQueryOptions({queryKey:n}),f=this.#t.get(s.queryHash)?.state.data,h=wx(r,f);if(h!==void 0)return this.#t.build(this,s).setData(h,{...l,manual:!0})}setQueriesData(n,r,l){return Ze.batch(()=>this.#t.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,r,l)]))}getQueryState(n){const r=this.defaultQueryOptions({queryKey:n});return this.#t.get(r.queryHash)?.state}removeQueries(n){const r=this.#t;Ze.batch(()=>{r.findAll(n).forEach(l=>{r.remove(l)})})}resetQueries(n,r){const l=this.#t;return Ze.batch(()=>(l.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},r)))}cancelQueries(n,r={}){const l={revert:!0,...r},s=Ze.batch(()=>this.#t.findAll(n).map(u=>u.cancel(l)));return Promise.all(s).then(gt).catch(gt)}invalidateQueries(n,r={}){return Ze.batch(()=>(this.#t.findAll(n).forEach(l=>{l.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},r)))}refetchQueries(n,r={}){const l={...r,cancelRefetch:r.cancelRefetch??!0},s=Ze.batch(()=>this.#t.findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,l);return l.throwOnError||(f=f.catch(gt)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(gt)}fetchQuery(n){const r=this.defaultQueryOptions(n);r.retry===void 0&&(r.retry=!1);const l=this.#t.build(this,r);return l.isStaleByTime(Da(r.staleTime,l))?l.fetch(r):Promise.resolve(l.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(gt).catch(gt)}fetchInfiniteQuery(n){return n._type="infinite",this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(gt).catch(gt)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return co.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,r){this.#a.set(Ua(n),{queryKey:n,defaultOptions:r})}getQueryDefaults(n){const r=[...this.#a.values()],l={};return r.forEach(s=>{hi(n,s.queryKey)&&Object.assign(l,s.defaultOptions)}),l}setMutationDefaults(n,r){this.#r.set(Ua(n),{mutationKey:n,defaultOptions:r})}getMutationDefaults(n){const r=[...this.#r.values()],l={};return r.forEach(s=>{hi(n,s.mutationKey)&&Object.assign(l,s.defaultOptions)}),l}defaultQueryOptions(n){if(n._defaulted)return n;const r={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return r.queryHash||(r.queryHash=qf(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===Xt&&(r.enabled=!1),r}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Vc={exports:{}},xe={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ly;function Xx(){if(ly)return xe;ly=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),j=Symbol.iterator;function O(S){return S===null||typeof S!="object"?null:(S=j&&S[j]||S["@@iterator"],typeof S=="function"?S:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,G={};function B(S,Y,C){this.props=S,this.context=Y,this.refs=G,this.updater=C||_}B.prototype.isReactComponent={},B.prototype.setState=function(S,Y){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,Y,"setState")},B.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function I(){}I.prototype=B.prototype;function $(S,Y,C){this.props=S,this.context=Y,this.refs=G,this.updater=C||_}var re=$.prototype=new I;re.constructor=$,A(re,B.prototype),re.isPureReactComponent=!0;var V=Array.isArray;function K(){}var M={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function W(S,Y,C){var L=C.ref;return{$$typeof:n,type:S,key:Y,ref:L!==void 0?L:null,props:C}}function ne(S,Y){return W(S.type,Y,S.props)}function F(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function ee(S){var Y={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(C){return Y[C]})}var le=/\/+/g;function ie(S,Y){return typeof S=="object"&&S!==null&&S.key!=null?ee(""+S.key):Y.toString(36)}function ue(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(K,K):(S.status="pending",S.then(function(Y){S.status==="pending"&&(S.status="fulfilled",S.value=Y)},function(Y){S.status==="pending"&&(S.status="rejected",S.reason=Y)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function E(S,Y,C,L,J){var ce=typeof S;(ce==="undefined"||ce==="boolean")&&(S=null);var oe=!1;if(S===null)oe=!0;else switch(ce){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(S.$$typeof){case n:case r:oe=!0;break;case x:return oe=S._init,E(oe(S._payload),Y,C,L,J)}}if(oe)return J=J(S),oe=L===""?"."+ie(S,0):L,V(J)?(C="",oe!=null&&(C=oe.replace(le,"$&/")+"/"),E(J,Y,C,"",function(Je){return Je})):J!=null&&(F(J)&&(J=ne(J,C+(J.key==null||S&&S.key===J.key?"":(""+J.key).replace(le,"$&/")+"/")+oe)),Y.push(J)),1;oe=0;var ve=L===""?".":L+":";if(V(S))for(var Oe=0;Oe{const r=R.useContext(uv);if(n)return n;if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Zx=({client:n,children:r})=>(R.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),d.jsx(uv.Provider,{value:n,children:r})),cv=R.createContext(!1),fv=()=>R.useContext(cv);cv.Provider;function Jx(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var Fx=R.createContext(Jx()),dv=()=>R.useContext(Fx),hv=(n,r,l)=>{const s=l?.state.error&&typeof n.throwOnError=="function"?Lf(n.throwOnError,[l.state.error,l]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||s)&&(r.isReset()||(n.retryOnMount=!1))},mv=n=>{R.useEffect(()=>{n.clearReset()},[n])},pv=({result:n,errorResetBoundary:r,throwOnError:l,query:s,suspense:u})=>n.isError&&!r.isReset()&&!n.isFetching&&s&&(u&&n.data===void 0||Lf(l,[n.error,s])),Yf=(n,r)=>r.state.data===void 0,yv=n=>{if(n.suspense){const l=u=>u==="static"?u:Math.max(u??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...u)=>l(s(...u)):l(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},Ix=(n,r)=>n.isLoading&&n.isFetching&&!r,yf=(n,r)=>n?.suspense&&r.isPending,vf=(n,r,l)=>r.fetchOptimistic(n).catch(()=>{l.clearReset()});function vv({queries:n,...r},l){const s=Ml(l),u=fv(),f=dv(),h=R.useMemo(()=>n.map(A=>{const G=s.defaultQueryOptions(A);return G._optimisticResults=u?"isRestoring":"optimistic",G}),[n,s,u]);h.forEach(A=>{yv(A);const G=s.getQueryCache().get(A.queryHash);hv(A,f,G)}),mv(f);const[y]=R.useState(()=>new Gx(s,h,r)),[m,v,x]=y.getOptimisticResult(h,r.combine),g=!u&&r.subscribed!==!1;R.useSyncExternalStore(R.useCallback(A=>g?y.subscribe(Ze.batchCalls(A)):gt,[y,g]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),R.useEffect(()=>{y.setQueries(h,r)},[h,r,y]);const O=m.some((A,G)=>yf(h[G],A))?m.flatMap((A,G)=>{const B=h[G];if(B&&yf(B,A)){const I=new Rl(s,B);return vf(B,I,f)}return[]}):[];if(O.length>0)throw Promise.all(O);const _=m.find((A,G)=>{const B=h[G];return B&&pv({result:A,errorResetBoundary:f,throwOnError:B.throwOnError,query:s.getQueryCache().get(B.queryHash),suspense:B.suspense})});if(_?.error)throw _.error;return v(x())}function vo(n,r,l){const s=fv(),u=dv(),f=Ml(l),h=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(h);const y=f.getQueryCache().get(h.queryHash),m=n.subscribed!==!1;h._optimisticResults=s?"isRestoring":m?"optimistic":void 0,yv(h),hv(h,u,y),mv(u);const v=!f.getQueryCache().get(h.queryHash),[x]=R.useState(()=>new r(f,h)),g=x.getOptimisticResult(h),j=!s&&m;if(R.useSyncExternalStore(R.useCallback(O=>{const _=j?x.subscribe(Ze.batchCalls(O)):gt;return x.updateResult(),_},[x,j]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),R.useEffect(()=>{x.setOptions(h)},[h,x]),yf(h,g))throw vf(h,x,u);if(pv({result:g,errorResetBoundary:u,throwOnError:h.throwOnError,query:y,suspense:h.suspense}))throw g.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(h,g),h.experimental_prefetchInRender&&!jl.isServer()&&Ix(g,s)&&(v?vf(h,x,u):y?.promise)?.catch(gt).finally(()=>{x.updateResult()}),h.notifyOnChangeProps?g:x.trackResult(g)}function $x(n,r){return vo(n,Rl,r)}function Wx(n,r){return vo({...n,enabled:!0,suspense:!0,throwOnError:Yf,placeholderData:void 0},Rl,r)}function e1(n,r){return vo({...n,enabled:!0,suspense:!0,throwOnError:Yf},sv,r)}function t1(n,r){return vv({...n,queries:n.queries.map(l=>({...l,suspense:!0,throwOnError:Yf,enabled:!0,placeholderData:void 0}))},r)}function n1(n,r){const l=Ml(r);l.getQueryState(n.queryKey)||l.prefetchQuery(n)}function a1(n,r){const l=Ml(r);l.getQueryState(n.queryKey)||l.prefetchInfiniteQuery(n)}function r1(n,r){const l=Ml(r),[s]=R.useState(()=>new Qx(l,n));R.useEffect(()=>{s.setOptions(n)},[s,n]);const u=R.useSyncExternalStore(R.useCallback(h=>s.subscribe(Ze.batchCalls(h)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=R.useCallback((h,y)=>{s.mutate(h,y).catch(gt)},[s]);if(u.error&&Lf(s.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:f,mutateAsync:u.mutate}}function i1(n,r){return vo(n,sv,r)}function hr(n){return!!n&&!Array.isArray(n)&&typeof n=="object"}function l1(){return Object.create(null)}const s1=typeof Symbol=="function"&&!!Symbol.asyncIterator;function gv(n){return s1&&hr(n)&&Symbol.asyncIterator in n}var o1=Object.create,bv=Object.defineProperty,u1=Object.getOwnPropertyDescriptor,xv=Object.getOwnPropertyNames,c1=Object.getPrototypeOf,f1=Object.prototype.hasOwnProperty,Nl=(n,r)=>function(){return r||(0,n[xv(n)[0]])((r={exports:{}}).exports,r),r.exports},d1=(n,r,l,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(var u=xv(r),f=0,h=u.length,y;fr[m]).bind(null,y),enumerable:!(s=u1(r,y))||s.enumerable});return n},go=(n,r,l)=>(l=n!=null?o1(c1(n)):{},d1(bv(l,"default",{value:n,enumerable:!0}),n));const Sv=()=>{},oy=n=>{Object.freeze&&Object.freeze(n)};function jv(n,r,l){var s;const u=r.join(".");return(s=l[u])!==null&&s!==void 0||(l[u]=new Proxy(Sv,{get(f,h){if(!(typeof h!="string"||h==="then"))return jv(n,[...r,h],l)},apply(f,h,y){const m=r[r.length-1];if(m==="valueOf"||m==="toString"||m==="toJSON")return`tRPC.proxy(${r.slice(0,-1).join(".")})`;let v={args:y,path:r};return m==="call"?v={args:y.length>=2?[y[1]]:[],path:r.slice(0,-1)}:m==="apply"&&(v={args:y.length>=2?y[1]:[],path:r.slice(0,-1)}),oy(v.args),oy(v.path),n(v)}})),l[u]}const bo=n=>jv(n,[],l1()),Gf=n=>new Proxy(Sv,{get(r,l){if(l!=="then")return n(l)}});var wv=Nl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,r){function l(s){"@babel/helpers - typeof";return r.exports=l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r.exports.__esModule=!0,r.exports.default=r.exports,l(s)}r.exports=l,r.exports.__esModule=!0,r.exports.default=r.exports}}),h1=Nl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,r){var l=wv().default;function s(u,f){if(l(u)!="object"||!u)return u;var h=u[Symbol.toPrimitive];if(h!==void 0){var y=h.call(u,f||"default");if(l(y)!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(u)}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}}),m1=Nl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,r){var l=wv().default,s=h1();function u(f){var h=s(f,"string");return l(h)=="symbol"?h:h+""}r.exports=u,r.exports.__esModule=!0,r.exports.default=r.exports}}),Ov=Nl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,r){var l=m1();function s(u,f,h){return(f=l(f))in u?Object.defineProperty(u,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):u[f]=h,u}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}}),Pf=Nl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,r){var l=Ov();function s(f,h){var y=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);h&&(m=m.filter(function(v){return Object.getOwnPropertyDescriptor(f,v).enumerable})),y.push.apply(y,m)}return y}function u(f){for(var h=1;h{let f=!1;function h(){f||(f=!0,y.unsubscribe())}r.signal.addEventListener("abort",()=>{u(r.signal.reason)});const y=n.subscribe({next(m){f=!0,s(m),h()},error(m){u(m)},complete(){r.abort(),h()}})})}var b1=Object.create,Ev=Object.defineProperty,x1=Object.getOwnPropertyDescriptor,Tv=Object.getOwnPropertyNames,S1=Object.getPrototypeOf,j1=Object.prototype.hasOwnProperty,La=(n,r)=>function(){return r||(0,n[Tv(n)[0]])((r={exports:{}}).exports,r),r.exports},w1=(n,r,l,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(var u=Tv(r),f=0,h=u.length,y;fr[m]).bind(null,y),enumerable:!(s=x1(r,y))||s.enumerable});return n},vr=(n,r,l)=>(l=n!=null?b1(S1(n)):{},w1(r||!n||!n.__esModule?Ev(l,"default",{value:n,enumerable:!0}):l,n)),O1=La({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(n,r){function l(s,u){if(s==null)return{};var f={};for(var h in s)if({}.hasOwnProperty.call(s,h)){if(u.includes(h))continue;f[h]=s[h]}return f}r.exports=l,r.exports.__esModule=!0,r.exports.default=r.exports}}),E1=La({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(n,r){var l=O1();function s(u,f){if(u==null)return{};var h,y,m=l(u,f);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(u);for(y=0;yu.split("."));if(!r&&(!l||l==="any"))return s.length?[s]:[];if(l==="infinite"&&hr(r)&&("direction"in r||"cursor"in r)){const{cursor:u,direction:f}=r,h=(0,C1.default)(r,R1);return[s,{input:h,type:"infinite"}]}return[s,(0,uy.default)((0,uy.default)({},typeof r<"u"&&r!==Xt&&{input:r}),l&&l!=="any"&&{type:l})]}function lo(n){return On(n,void 0,"any")}var M1=Object.create,_v=Object.defineProperty,N1=Object.getOwnPropertyDescriptor,Cv=Object.getOwnPropertyNames,z1=Object.getPrototypeOf,D1=Object.prototype.hasOwnProperty,Cn=(n,r)=>function(){return r||(0,n[Cv(n)[0]])((r={exports:{}}).exports,r),r.exports},U1=(n,r,l,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(var u=Cv(r),f=0,h=u.length,y;fr[m]).bind(null,y),enumerable:!(s=N1(r,y))||s.enumerable});return n},$e=(n,r,l)=>(l=n!=null?M1(z1(n)):{},U1(r||!n||!n.__esModule?_v(l,"default",{value:n,enumerable:!0}):l,n)),Rv=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,r){function l(s){"@babel/helpers - typeof";return r.exports=l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r.exports.__esModule=!0,r.exports.default=r.exports,l(s)}r.exports=l,r.exports.__esModule=!0,r.exports.default=r.exports}}),k1=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,r){var l=Rv().default;function s(u,f){if(l(u)!="object"||!u)return u;var h=u[Symbol.toPrimitive];if(h!==void 0){var y=h.call(u,f||"default");if(l(y)!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(u)}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}}),q1=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,r){var l=Rv().default,s=k1();function u(f){var h=s(f,"string");return l(h)=="symbol"?h:h+""}r.exports=u,r.exports.__esModule=!0,r.exports.default=r.exports}}),gr=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,r){var l=q1();function s(u,f,h){return(f=l(f))in u?Object.defineProperty(u,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):u[f]=h,u}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}}),pn=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,r){var l=gr();function s(f,h){var y=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);h&&(m=m.filter(function(v){return Object.getOwnPropertyDescriptor(f,v).enumerable})),y.push.apply(y,m)}return y}function u(f){for(var h=1;h{let l=0,s=null;const u=[];function f(){s||(s=r.subscribe({next(y){for(const v of u){var m;(m=v.next)===null||m===void 0||m.call(v,y)}},error(y){for(const v of u){var m;(m=v.error)===null||m===void 0||m.call(v,y)}},complete(){for(const m of u){var y;(y=m.complete)===null||y===void 0||y.call(m)}}}))}function h(){if(l===0&&s){const y=s;s=null,y.unsubscribe()}}return xo(y=>(l++,u.push(y),f(),{unsubscribe(){l--,h();const m=u.findIndex(v=>v===y);m>-1&&u.splice(m,1)}}))}}function L1(n){let r=n;const l=[],s=h=>{r!==void 0&&h.next(r),l.push(h)},u=h=>{l.splice(l.indexOf(h),1)},f=xo(h=>(s(h),()=>{u(h)}));return f.next=h=>{if(r!==h){r=h;for(const y of l)y.next(h)}},f.get=()=>r,f}function B1(n){return xo(r=>{function l(u=0,f=n.op){const h=n.links[u];if(!h)throw new Error("No more links to execute - did you forget to add an ending link?");return h({op:f,next(m){return l(u+1,m)}})}return l().subscribe(r)})}var $s=$e(gr(),1),ui=$e(pn(),1);function Q1(n){return n instanceof wl}function Y1(n){return hr(n)&&hr(n.error)&&typeof n.error.code=="number"&&typeof n.error.message=="string"}function G1(n,r){return typeof n=="string"?n:hr(n)&&typeof n.message=="string"?n.message:r}var wl=class so extends Error{constructor(r,l){var s,u;const f=l?.cause;super(r,{cause:f}),(0,$s.default)(this,"cause",void 0),(0,$s.default)(this,"shape",void 0),(0,$s.default)(this,"data",void 0),(0,$s.default)(this,"meta",void 0),this.meta=l?.meta,this.cause=f,this.shape=l==null||(s=l.result)===null||s===void 0?void 0:s.error,this.data=l==null||(u=l.result)===null||u===void 0?void 0:u.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,so.prototype)}static from(r,l={}){const s=r;return Q1(s)?(l.meta&&(s.meta=(0,ui.default)((0,ui.default)({},s.meta),l.meta)),s):Y1(s)?new so(s.error.message,(0,ui.default)((0,ui.default)({},l),{},{result:s,cause:l.cause})):new so(G1(s,"Unknown error"),(0,ui.default)((0,ui.default)({},l),{},{cause:s}))}};function P1(n){const r=n;return r?"input"in r?r:{input:r,output:r}:{input:{serialize:l=>l,deserialize:l=>l},output:{serialize:l=>l,deserialize:l=>l}}}const cy=n=>typeof n=="function";function V1(n){if(n)return n;if(typeof window<"u"&&cy(window.fetch))return window.fetch;if(typeof globalThis<"u"&&cy(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var bl=$e(pn());function X1(n){return{url:n.url.toString(),fetch:n.fetch,transformer:P1(n.transformer),methodOverride:n.methodOverride}}function K1(n){const r={};for(let l=0;ln.transformer.input.serialize(r)))}const Nv=n=>{const r=n.url.split("?");let s=r[0].replace(/\/$/,"")+"/"+n.path;const u=[];if(r[1]&&u.push(r[1]),"inputs"in n&&u.push("batch=1"),n.type==="query"||n.type==="subscription"){const f=Mv(n);f!==void 0&&n.methodOverride!=="POST"&&u.push(`input=${encodeURIComponent(JSON.stringify(f))}`)}return u.length&&(s+="?"+u.join("&")),s},J1=n=>{if(n.type==="query"&&n.methodOverride!=="POST")return;const r=Mv(n);return r!==void 0?JSON.stringify(r):void 0},F1=n=>e2((0,bl.default)((0,bl.default)({},n),{},{contentTypeHeader:"application/json",getUrl:Nv,getBody:J1}));var I1=class extends Error{constructor(){const n="AbortError";super(n),this.name=n,this.message=n}};const $1=n=>{var r;if(n?.aborted)throw(r=n.throwIfAborted)===null||r===void 0||r.call(n),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new I1};async function W1(n){var r,l;$1(n.signal);const s=n.getUrl(n),u=n.getBody(n),f=(r=n.methodOverride)!==null&&r!==void 0?r:Z1[n.type],h=await(async()=>{const m=await n.headers();return Symbol.iterator in m?Object.fromEntries(m):m})(),y=(0,bl.default)((0,bl.default)((0,bl.default)({},n.contentTypeHeader&&f!=="GET"?{"content-type":n.contentTypeHeader}:{}),n.trpcAcceptHeader?{[(l=n.trpcAcceptHeaderKey)!==null&&l!==void 0?l:"trpc-accept"]:n.trpcAcceptHeader}:void 0),h);return V1(n.fetch)(s,{method:f,signal:n.signal,body:u,headers:y})}async function e2(n){const r={},l=await W1(n);r.response=l;const s=await l.json();return r.responseJSON=s,{json:s,meta:r}}$e(pn(),1);const fy=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function dy(n){let r=null,l=null;const s=()=>{clearTimeout(l),l=null,r=null};function u(y){const m=[[]];let v=0;for(;;){const j=y[v];if(!j)break;const O=m[m.length-1];if(j.aborted){var x;(x=j.reject)===null||x===void 0||x.call(j,new Error("Aborted")),v++;continue}if(n.validate(O.concat(j).map(A=>A.key))){O.push(j),v++;continue}if(O.length===0){var g;(g=j.reject)===null||g===void 0||g.call(j,new Error("Input is too big for a single dispatch")),v++;continue}m.push([])}return m}function f(){const y=u(r);s();for(const m of y){if(!m.length)continue;const v={items:m};for(const g of m)g.batch=v;n.fetch(v.items.map(g=>g.key)).then(async g=>{await Promise.all(g.map(async(O,_)=>{const A=v.items[_];try{var G;const I=await Promise.resolve(O);(G=A.resolve)===null||G===void 0||G.call(A,I)}catch(I){var B;(B=A.reject)===null||B===void 0||B.call(A,I)}A.batch=null,A.reject=null,A.resolve=null}));for(const O of v.items){var j;(j=O.reject)===null||j===void 0||j.call(O,new Error("Missing result")),O.batch=null}}).catch(g=>{for(const O of v.items){var j;(j=O.reject)===null||j===void 0||j.call(O,g),O.batch=null}})}}function h(y){var m;const v={aborted:!1,key:y,batch:null,resolve:fy,reject:fy},x=new Promise((g,j)=>{var O;v.reject=j,v.resolve=g,(O=r)!==null&&O!==void 0||(r=[]),r.push(v)});return(m=l)!==null&&m!==void 0||(l=setTimeout(f)),x}return{load:h}}function t2(...n){const r=new AbortController,l=n.length;let s=0;const u=()=>{++s===l&&r.abort()};for(const f of n)f?.aborted?u():f?.addEventListener("abort",u,{once:!0});return r.signal}var Ws=$e(pn(),1);function n2(n){var r,l;const s=X1(n),u=(r=n.maxURLLength)!==null&&r!==void 0?r:1/0,f=(l=n.maxItems)!==null&&l!==void 0?l:1/0;return()=>{const h=x=>({validate(g){if(u===1/0&&f===1/0)return!0;if(g.length>f)return!1;const j=g.map(A=>A.path).join(","),O=g.map(A=>A.input);return Nv((0,Ws.default)((0,Ws.default)({},s),{},{type:x,path:j,inputs:O,signal:null})).length<=u},async fetch(g){const j=g.map(I=>I.path).join(","),O=g.map(I=>I.input),_=t2(...g.map(I=>I.signal)),A=await F1((0,Ws.default)((0,Ws.default)({},s),{},{path:j,inputs:O,type:x,headers(){return n.headers?typeof n.headers=="function"?n.headers({opList:g}):n.headers:{}},signal:_}));return(Array.isArray(A.json)?A.json:g.map(()=>A.json)).map(I=>({meta:A.meta,json:I}))}}),y=dy(h("query")),m=dy(h("mutation")),v={query:y,mutation:m};return({op:x})=>xo(g=>{/* istanbul ignore if -- @preserve */if(x.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const O=v[x.type].load(x);let _;return O.then(A=>{_=A;const G=y1(A.json,s.transformer.output);if(!G.ok){g.error(wl.from(G.error,{meta:A.meta}));return}g.next({context:A.meta,result:G.result}),g.complete()}).catch(A=>{g.error(wl.from(A,{meta:_?.meta}))}),()=>{}})}}$e(pn(),1);const zv=(n,...r)=>typeof n=="function"?n(...r):n;$e(gr(),1);function a2(){let n,r;return{promise:new Promise((s,u)=>{n=s,r=u}),resolve:n,reject:r}}async function r2(n){const r=await zv(n.url);if(!n.connectionParams)return r;const s=`${r.includes("?")?"&":"?"}connectionParams=1`;return r+s}async function i2(n,r){const l={method:"connectionParams",data:await zv(n)};return r.encode(l)}$e(gr(),1);var Na=$e(gr(),1);function l2(n){const{promise:r,resolve:l,reject:s}=a2();return n.addEventListener("open",()=>{n.removeEventListener("error",s),l()}),n.addEventListener("error",s),r}function s2(n,{intervalMs:r,pongTimeoutMs:l}){let s,u;function f(){s=setTimeout(()=>{n.send("PING"),u=setTimeout(()=>{n.close()},l)},r)}function h(){clearTimeout(s),f()}function y(){clearTimeout(u),h()}n.addEventListener("open",f),n.addEventListener("message",({data:m})=>{clearTimeout(s),f(),m==="PONG"&&y()}),n.addEventListener("close",()=>{clearTimeout(s),clearTimeout(u)})}var o2=class gf{constructor(r){var l;if((0,Na.default)(this,"id",++gf.connectCount),(0,Na.default)(this,"WebSocketPonyfill",void 0),(0,Na.default)(this,"urlOptions",void 0),(0,Na.default)(this,"keepAliveOpts",void 0),(0,Na.default)(this,"encoder",void 0),(0,Na.default)(this,"wsObservable",L1(null)),(0,Na.default)(this,"openPromise",null),this.WebSocketPonyfill=(l=r.WebSocketPonyfill)!==null&&l!==void 0?l:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=r.urlOptions,this.keepAliveOpts=r.keepAlive,this.encoder=r.encoder}get ws(){return this.wsObservable.get()}set ws(r){this.wsObservable.next(r)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var r=this;if(r.openPromise)return r.openPromise;r.id=++gf.connectCount;const l=r2(r.urlOptions).then(s=>new r.WebSocketPonyfill(s));r.openPromise=l.then(async s=>{r.ws=s,s.binaryType="arraybuffer",s.addEventListener("message",function({data:u}){u==="PING"&&this.send("PONG")}),r.keepAliveOpts.enabled&&s2(s,r.keepAliveOpts),s.addEventListener("close",()=>{r.ws===s&&(r.ws=null)}),await l2(s),r.urlOptions.connectionParams&&s.send(await i2(r.urlOptions.connectionParams,r.encoder))});try{await r.openPromise}finally{r.openPromise=null}}async close(){var r=this;try{await r.openPromise}finally{var l;(l=r.ws)===null||l===void 0||l.close()}}};(0,Na.default)(o2,"connectCount",0);$e(gr(),1);$e(pn(),1);var Kc=$e(gr(),1),hy=$e(pn(),1),So=class{constructor(n){(0,Kc.default)(this,"links",void 0),(0,Kc.default)(this,"runtime",void 0),(0,Kc.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=n.links.map(r=>r(this.runtime))}$request(n){var r;return B1({links:this.links,op:(0,hy.default)((0,hy.default)({},n),{},{context:(r=n.context)!==null&&r!==void 0?r:{},id:++this.requestId})}).pipe(H1())}async requestAsPromise(n){var r=this;try{const l=r.$request(n);return(await g1(l)).result.data}catch(l){throw wl.from(l)}}query(n,r,l){return this.requestAsPromise({type:"query",path:n,input:r,context:l?.context,signal:l?.signal})}mutation(n,r,l){return this.requestAsPromise({type:"mutation",path:n,input:r,context:l?.context,signal:l?.signal})}subscription(n,r,l){return this.$request({type:"subscription",path:n,input:r,context:l.context,signal:l.signal}).subscribe({next(u){switch(u.result.type){case"state":{var f;(f=l.onConnectionStateChange)===null||f===void 0||f.call(l,u.result);break}case"started":{var h;(h=l.onStarted)===null||h===void 0||h.call(l,{context:u.context});break}case"stopped":{var y;(y=l.onStopped)===null||y===void 0||y.call(l);break}case"data":case void 0:{var m;(m=l.onData)===null||m===void 0||m.call(l,u.result.data);break}}},error(u){var f;(f=l.onError)===null||f===void 0||f.call(l,u)},complete(){var u;(u=l.onComplete)===null||u===void 0||u.call(l)}})}};const Dv=Symbol.for("trpc_untypedClient"),u2={query:"query",mutate:"mutation",subscribe:"subscription"},c2=n=>u2[n];function Uv(n){const r=bo(({path:l,args:s})=>{const u=[...l],f=c2(u.pop()),h=u.join(".");return n[f](h,...s)});return Gf(l=>l===Dv?n:r[l])}function f2(n){const r=new So(n);return Uv(r)}function Vf(n){return n[Dv]}$e(pn(),1);$e(pn(),1);var d2=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,r){function l(u){var f,h,y,m=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,y=Symbol.iterator);m--;){if(h&&(f=u[h])!=null)return f.call(u);if(y&&(f=u[y])!=null)return new s(f.call(u));h="@@asyncIterator",y="@@iterator"}throw new TypeError("Object is not async iterable")}function s(u){function f(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var y=h.done;return Promise.resolve(h.value).then(function(m){return{value:m,done:y}})}return s=function(y){this.s=y,this.n=y.next},s.prototype={s:null,n:null,next:function(){return f(this.n.apply(this.s,arguments))},return:function(y){var m=this.s.return;return m===void 0?Promise.resolve({value:y,done:!0}):f(m.apply(this.s,arguments))},throw:function(y){var m=this.s.return;return m===void 0?Promise.reject(y):f(m.apply(this.s,arguments))}},new s(u)}r.exports=l,r.exports.__esModule=!0,r.exports.default=r.exports}});$e(d2(),1);$e(pn(),1);var h2=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(n,r){function l(){var s=typeof SuppressedError=="function"?SuppressedError:function(y,m){var v=Error();return v.name="SuppressedError",v.error=y,v.suppressed=m,v},u={},f=[];function h(y,m){if(m!=null){if(Object(m)!==m)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(y)var v=m[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(v===void 0&&(v=m[Symbol.dispose||Symbol.for("Symbol.dispose")],y))var x=v;if(typeof v!="function")throw new TypeError("Object is not disposable.");x&&(v=function(){try{x.call(m)}catch(j){return Promise.reject(j)}}),f.push({v:m,d:v,a:y})}else y&&f.push({d:m,a:y});return m}return{e:u,u:h.bind(null,!1),a:h.bind(null,!0),d:function(){var m,v=this.e,x=0;function g(){for(;m=f.pop();)try{if(!m.a&&x===1)return x=0,f.push(m),Promise.resolve().then(g);if(m.d){var O=m.d.call(m.v);if(m.a)return x|=2,Promise.resolve(O).then(g,j)}else x|=1}catch(_){return j(_)}if(x===1)return v!==u?Promise.reject(v):Promise.resolve();if(v!==u)throw v}function j(O){return v=v!==u?new s(O,v):O,g()}return g()}}}r.exports=l,r.exports.__esModule=!0,r.exports.default=r.exports}}),kv=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(n,r){function l(s,u){this.v=s,this.k=u}r.exports=l,r.exports.__esModule=!0,r.exports.default=r.exports}}),m2=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(n,r){var l=kv();function s(u){return new l(u,0)}r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}}),p2=Cn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(n,r){var l=kv();function s(f){return function(){return new u(f.apply(this,arguments))}}function u(f){var h,y;function m(x,g){try{var j=f[x](g),O=j.value,_=O instanceof l;Promise.resolve(_?O.v:O).then(function(A){if(_){var G=x==="return"?"return":"next";if(!O.k||A.done)return m(G,A);A=f[G](A).value}v(j.done?"return":"normal",A)},function(A){m("throw",A)})}catch(A){v("throw",A)}}function v(x,g){switch(x){case"return":h.resolve({value:g,done:!0});break;case"throw":h.reject(g);break;default:h.resolve({value:g,done:!1})}(h=h.next)?m(h.key,h.arg):y=null}this._invoke=function(x,g){return new Promise(function(j,O){var _={key:x,arg:g,resolve:j,reject:O,next:null};y?y=y.next=_:(h=y=_,m(x,g))})},typeof f.return!="function"&&(this.return=void 0)}u.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(f){return this._invoke("next",f)},u.prototype.throw=function(f){return this._invoke("throw",f)},u.prototype.return=function(f){return this._invoke("return",f)},r.exports=s,r.exports.__esModule=!0,r.exports.default=r.exports}});$e(h2(),1);$e(m2(),1);$e(p2(),1);$e(pn(),1);function y2(n){return bo(({path:r,args:l})=>{var s;const u=[...r],f=u.pop();if(f==="useMutation")return n[f](u,...l);if(f==="_def")return{path:u};const[h,...y]=l,m=(s=y[0])!==null&&s!==void 0?s:{};return n[f](u,h,m)})}var Zc;const v2=["client","ssrContext","ssrState","abortOnUnmount"],g2=(Zc=R.createContext)===null||Zc===void 0?void 0:Zc.call(Kx,null),b2=n=>{switch(n){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function x2(n){return bo(r=>{const l=[...r.path],s=l.pop(),u=[...r.args],f=u.shift(),h=b2(s),y=On(l,f,h);return{infiniteQueryOptions:()=>n.infiniteQueryOptions(l,y,u[0]),queryOptions:()=>n.queryOptions(l,y,...u),fetch:()=>n.fetchQuery(y,...u),fetchInfinite:()=>n.fetchInfiniteQuery(y,u[0]),prefetch:()=>n.prefetchQuery(y,...u),prefetchInfinite:()=>n.prefetchInfiniteQuery(y,u[0]),ensureData:()=>n.ensureQueryData(y,...u),invalidate:()=>n.invalidateQueries(y,...u),reset:()=>n.resetQueries(y,...u),refetch:()=>n.refetchQueries(y,...u),cancel:()=>n.cancelQuery(y,...u),setData:()=>{n.setQueryData(y,u[0],u[1])},setQueriesData:()=>n.setQueriesData(y,u[0],u[1],u[2]),setInfiniteData:()=>{n.setInfiniteQueryData(y,u[0],u[1])},getData:()=>n.getQueryData(y),getInfiniteData:()=>n.getInfiniteQueryData(y),setMutationDefaults:()=>n.setMutationDefaults(lo(l),f),getMutationDefaults:()=>n.getMutationDefaults(lo(l)),isMutating:()=>n.isMutating({mutationKey:lo(l)})}[s]()})}function S2(n){const r=Uv(n.client),l=x2(n);return Gf(s=>{const u=s;return u==="client"?r:v2.includes(u)?n[u]:l[s]})}var j2=vr(zl(),1);function my(n){const r=n instanceof So?n:Vf(n);return bo(l=>{const s=l.path,u=s.join("."),[f,h]=l.args;return(0,j2.default)({queryKey:On(s,f,"query"),queryFn:()=>r.query(u,f,h?.trpc)},h)})}var Jc=vr(zl(),1);function wt(n,r,l){var s;const u=n[0];let f=(s=n[1])===null||s===void 0?void 0:s.input;if(l){var h;f=(0,Jc.default)((0,Jc.default)((0,Jc.default)({},(h=f)!==null&&h!==void 0?h:{}),l.pageParam?{cursor:l.pageParam}:{}),{},{direction:l.direction})}return[u.join("."),f,r?.trpc]}var w2=La({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,r){function l(u){var f,h,y,m=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,y=Symbol.iterator);m--;){if(h&&(f=u[h])!=null)return f.call(u);if(y&&(f=u[y])!=null)return new s(f.call(u));h="@@asyncIterator",y="@@iterator"}throw new TypeError("Object is not async iterable")}function s(u){function f(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var y=h.done;return Promise.resolve(h.value).then(function(m){return{value:m,done:y}})}return s=function(y){this.s=y,this.n=y.next},s.prototype={s:null,n:null,next:function(){return f(this.n.apply(this.s,arguments))},return:function(y){var m=this.s.return;return m===void 0?Promise.resolve({value:y,done:!0}):f(m.apply(this.s,arguments))},throw:function(y){var m=this.s.return;return m===void 0?Promise.reject(y):f(m.apply(this.s,arguments))}},new s(u)}r.exports=l,r.exports.__esModule=!0,r.exports.default=r.exports}}),O2=vr(w2(),1);function bf(n){return{path:n.path.join(".")}}function yl(n){const r=bf(n);return R.useMemo(()=>r,[r])}async function qv(n,r,l){const u=r.getQueryCache().build(r,{queryKey:l});u.setState({data:[],status:"success"});const f=[];var h=!1,y=!1,m;try{for(var v=(0,O2.default)(n),x;h=!(x=await v.next()).done;h=!1){const g=x.value;f.push(g),u.setState({data:[...f]})}}catch(g){y=!0,m=g}finally{try{h&&v.return!=null&&await v.return()}finally{if(y)throw m}}return f}var Ne=vr(zl(),1);function E2(n){const{client:r,queryClient:l}=n,s=r instanceof So?r:Vf(r);return{infiniteQueryOptions:(u,f,h)=>{var y,m;const v=((y=f[1])===null||y===void 0?void 0:y.input)===Xt,x=async g=>{var j;const O=(0,Ne.default)((0,Ne.default)({},h),{},{trpc:(0,Ne.default)((0,Ne.default)({},h?.trpc),!(h==null||(j=h.trpc)===null||j===void 0)&&j.abortOnUnmount?{signal:g.signal}:{signal:null})});return await s.query(...wt(f,O,{direction:g.direction,pageParam:g.pageParam}))};return Object.assign((0,Ne.default)((0,Ne.default)({},h),{},{initialData:h?.initialData,queryKey:f,queryFn:v?Xt:x,initialPageParam:(m=h?.initialCursor)!==null&&m!==void 0?m:null}),{trpc:bf({path:u})})},queryOptions:(u,f,h)=>{var y;const m=((y=f[1])===null||y===void 0?void 0:y.input)===Xt,v=async x=>{var g;const j=(0,Ne.default)((0,Ne.default)({},h),{},{trpc:(0,Ne.default)((0,Ne.default)({},h?.trpc),!(h==null||(g=h.trpc)===null||g===void 0)&&g.abortOnUnmount?{signal:x.signal}:{signal:null})}),O=await s.query(...wt(f,j));return gv(O)?qv(O,l,f):O};return Object.assign((0,Ne.default)((0,Ne.default)({},h),{},{initialData:h?.initialData,queryKey:f,queryFn:m?Xt:v}),{trpc:bf({path:u})})},fetchQuery:(u,f)=>l.fetchQuery((0,Ne.default)((0,Ne.default)({},f),{},{queryKey:u,queryFn:()=>s.query(...wt(u,f))})),fetchInfiniteQuery:(u,f)=>{var h;return l.fetchInfiniteQuery((0,Ne.default)((0,Ne.default)({},f),{},{queryKey:u,queryFn:({pageParam:y,direction:m})=>s.query(...wt(u,f,{pageParam:y,direction:m})),initialPageParam:(h=f?.initialCursor)!==null&&h!==void 0?h:null}))},prefetchQuery:(u,f)=>l.prefetchQuery((0,Ne.default)((0,Ne.default)({},f),{},{queryKey:u,queryFn:()=>s.query(...wt(u,f))})),prefetchInfiniteQuery:(u,f)=>{var h;return l.prefetchInfiniteQuery((0,Ne.default)((0,Ne.default)({},f),{},{queryKey:u,queryFn:({pageParam:y,direction:m})=>s.query(...wt(u,f,{pageParam:y,direction:m})),initialPageParam:(h=f?.initialCursor)!==null&&h!==void 0?h:null}))},ensureQueryData:(u,f)=>l.ensureQueryData((0,Ne.default)((0,Ne.default)({},f),{},{queryKey:u,queryFn:()=>s.query(...wt(u,f))})),invalidateQueries:(u,f,h)=>l.invalidateQueries((0,Ne.default)((0,Ne.default)({},f),{},{queryKey:u}),h),resetQueries:(u,f,h)=>l.resetQueries((0,Ne.default)((0,Ne.default)({},f),{},{queryKey:u}),h),refetchQueries:(u,f,h)=>l.refetchQueries((0,Ne.default)((0,Ne.default)({},f),{},{queryKey:u}),h),cancelQuery:(u,f)=>l.cancelQueries({queryKey:u},f),setQueryData:(u,f,h)=>l.setQueryData(u,f,h),setQueriesData:(u,f,h,y)=>l.setQueriesData((0,Ne.default)((0,Ne.default)({},f),{},{queryKey:u}),h,y),getQueryData:u=>l.getQueryData(u),setInfiniteQueryData:(u,f,h)=>l.setQueryData(u,f,h),getInfiniteQueryData:u=>l.getQueryData(u),setMutationDefaults:(u,f)=>{const h=u[0],y=m=>s.mutation(...wt([h,{input:m}],n));return l.setMutationDefaults(u,typeof f=="function"?f({canonicalMutationFn:y}):f)},getMutationDefaults:u=>l.getMutationDefaults(u),isMutating:u=>l.isMutating((0,Ne.default)((0,Ne.default)({},u),{},{exact:!0}))}}var se=vr(zl());const py=(n,r)=>new Proxy(n,{get(s,u){return r(u),s[u]}});function T2(n){var r,l;const s=(r=void 0)!==null&&r!==void 0?r:V=>V.originalFn(),u=(l=void 0)!==null&&l!==void 0?l:g2,f=f2,h=V=>{var K;const{abortOnUnmount:M=!1,queryClient:q,ssrContext:W}=V,[ne,F]=R.useState((K=V.ssrState)!==null&&K!==void 0?K:!1),ee=V.client instanceof So?V.client:Vf(V.client),le=R.useMemo(()=>E2({client:ee,queryClient:q}),[ee,q]),ie=R.useMemo(()=>(0,se.default)({abortOnUnmount:M,queryClient:q,client:ee,ssrContext:W??null,ssrState:ne},le),[M,ee,le,q,W,ne]);return R.useEffect(()=>{F(ue=>ue?"mounted":!1)},[]),d.jsx(u.Provider,{value:ie,children:V.children})};function y(){const V=R.useContext(u);if(!V)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return V}function m(V,K){var M;const{queryClient:q,ssrState:W}=y();return W&&W!=="mounted"&&((M=q.getQueryCache().find({queryKey:V}))===null||M===void 0?void 0:M.state.status)==="error"?(0,se.default)({retryOnMount:!1},K):K}function v(V,K,M){var q,W,ne,F,ee;const le=y(),{abortOnUnmount:ie,client:ue,ssrState:E,queryClient:H,prefetchQuery:z}=le,te=On(V,K,"query"),fe=H.getQueryDefaults(te),S=K===Xt;typeof window>"u"&&E==="prepass"&&(M==null||(q=M.trpc)===null||q===void 0?void 0:q.ssr)!==!1&&((W=M?.enabled)!==null&&W!==void 0?W:fe?.enabled)!==!1&&!S&&!H.getQueryCache().find({queryKey:te})&&z(te,M);const Y=m(te,(0,se.default)((0,se.default)({},fe),M)),C=(ne=(F=M==null||(ee=M.trpc)===null||ee===void 0?void 0:ee.abortOnUnmount)!==null&&F!==void 0?F:void 0)!==null&&ne!==void 0?ne:ie,L=$x((0,se.default)((0,se.default)({},Y),{},{queryKey:te,queryFn:S?K:async J=>{const ce=(0,se.default)((0,se.default)({},Y),{},{trpc:(0,se.default)((0,se.default)({},Y?.trpc),C?{signal:J.signal}:{signal:null})}),oe=await ue.query(...wt(te,ce));return gv(oe)?qv(oe,H,te):oe}}),H);return L.trpc=yl({path:V}),L}function x(V,K,M){var q,W,ne;const F=y(),ee=On(V,K,"query"),le=K===Xt,ie=(q=(W=M==null||(ne=M.trpc)===null||ne===void 0?void 0:ne.abortOnUnmount)!==null&&W!==void 0?W:void 0)!==null&&q!==void 0?q:F.abortOnUnmount;n1((0,se.default)((0,se.default)({},M),{},{queryKey:ee,queryFn:le?K:ue=>{const E={trpc:(0,se.default)((0,se.default)({},M?.trpc),ie?{signal:ue.signal}:{})};return F.client.query(...wt(ee,E))}}))}function g(V,K,M){var q,W,ne;const F=y(),ee=On(V,K,"query"),le=(q=(W=M==null||(ne=M.trpc)===null||ne===void 0?void 0:ne.abortOnUnmount)!==null&&W!==void 0?W:void 0)!==null&&q!==void 0?q:F.abortOnUnmount,ie=Wx((0,se.default)((0,se.default)({},M),{},{queryKey:ee,queryFn:ue=>{const E=(0,se.default)((0,se.default)({},M),{},{trpc:(0,se.default)((0,se.default)({},M?.trpc),le?{signal:ue.signal}:{signal:null})});return F.client.query(...wt(ee,E))}}),F.queryClient);return ie.trpc=yl({path:V}),[ie.data,ie]}function j(V,K){const{client:M,queryClient:q}=y(),W=lo(V),ne=q.defaultMutationOptions(q.getMutationDefaults(W)),F=r1((0,se.default)((0,se.default)({},K),{},{mutationKey:W,mutationFn:ee=>M.mutation(...wt([V,{input:ee}],K)),onSuccess(...ee){var le,ie;return s({originalFn:()=>{var E,H,z;return(E=K==null||(H=K.onSuccess)===null||H===void 0?void 0:H.call(K,...ee))!==null&&E!==void 0?E:ne==null||(z=ne.onSuccess)===null||z===void 0?void 0:z.call(ne,...ee)},queryClient:q,meta:(le=(ie=K?.meta)!==null&&ie!==void 0?ie:ne?.meta)!==null&&le!==void 0?le:{}})}}),q);return F.trpc=yl({path:V}),F}const O={data:void 0,error:null,status:"idle"},_={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function A(V,K,M){var q;const W=(q=M?.enabled)!==null&&q!==void 0?q:K!==Xt,ne=Ua(On(V,K,"any")),{client:F}=y(),ee=R.useRef(M);R.useEffect(()=>{ee.current=M});const[le]=R.useState(new Set([])),ie=R.useCallback(S=>{le.add(S)},[le]),ue=R.useRef(null),E=R.useCallback(S=>{const Y=z.current,C=z.current=S(Y);let L=!1;for(const J of le)if(Y[J]!==C[J]){L=!0;break}L&&fe(py(C,ie))},[ie,le]),H=R.useCallback(()=>{var S;if((S=ue.current)===null||S===void 0||S.unsubscribe(),!W){E(()=>(0,se.default)((0,se.default)({},O),{},{reset:H}));return}E(()=>(0,se.default)((0,se.default)({},_),{},{reset:H}));const Y=F.subscription(V.join("."),K??void 0,{onStarted:()=>{var C,L;(C=(L=ee.current).onStarted)===null||C===void 0||C.call(L),E(J=>(0,se.default)((0,se.default)({},J),{},{status:"pending",error:null}))},onData:C=>{var L,J;(L=(J=ee.current).onData)===null||L===void 0||L.call(J,C),E(ce=>(0,se.default)((0,se.default)({},ce),{},{status:"pending",data:C,error:null}))},onError:C=>{var L,J;(L=(J=ee.current).onError)===null||L===void 0||L.call(J,C),E(ce=>(0,se.default)((0,se.default)({},ce),{},{status:"error",error:C}))},onConnectionStateChange:C=>{E(L=>{switch(C.state){case"idle":return(0,se.default)((0,se.default)({},L),{},{status:C.state,error:null,data:void 0});case"connecting":return(0,se.default)((0,se.default)({},L),{},{error:C.error,status:C.state});case"pending":return L}})},onComplete:()=>{var C,L;(C=(L=ee.current).onComplete)===null||C===void 0||C.call(L),E(J=>(0,se.default)((0,se.default)({},J),{},{status:"idle",error:null,data:void 0}))}});ue.current=Y},[F,ne,W,E]);R.useEffect(()=>(H(),()=>{var S;(S=ue.current)===null||S===void 0||S.unsubscribe()}),[H]);const z=R.useRef(W?(0,se.default)((0,se.default)({},_),{},{reset:H}):(0,se.default)((0,se.default)({},O),{},{reset:H})),[te,fe]=R.useState(py(z.current,ie));return te}function G(V,K,M){var q,W,ne,F,ee;const{client:le,ssrState:ie,prefetchInfiniteQuery:ue,queryClient:E,abortOnUnmount:H}=y(),z=On(V,K,"infinite"),te=E.getQueryDefaults(z),fe=K===Xt;typeof window>"u"&&ie==="prepass"&&(M==null||(q=M.trpc)===null||q===void 0?void 0:q.ssr)!==!1&&((W=M?.enabled)!==null&&W!==void 0?W:te?.enabled)!==!1&&!fe&&!E.getQueryCache().find({queryKey:z})&&ue(z,(0,se.default)((0,se.default)({},te),M));const S=m(z,(0,se.default)((0,se.default)({},te),M)),Y=(ne=M==null||(F=M.trpc)===null||F===void 0?void 0:F.abortOnUnmount)!==null&&ne!==void 0?ne:H,C=i1((0,se.default)((0,se.default)({},S),{},{initialPageParam:(ee=M.initialCursor)!==null&&ee!==void 0?ee:null,persister:M.persister,queryKey:z,queryFn:fe?K:L=>{var J;const ce=(0,se.default)((0,se.default)({},S),{},{trpc:(0,se.default)((0,se.default)({},S?.trpc),Y?{signal:L.signal}:{signal:null})});return le.query(...wt(z,ce,{pageParam:(J=L.pageParam)!==null&&J!==void 0?J:M.initialCursor,direction:L.direction}))}}),E);return C.trpc=yl({path:V}),C}function B(V,K,M){var q,W,ne;const F=y(),ee=On(V,K,"infinite"),le=F.queryClient.getQueryDefaults(ee),ie=K===Xt,ue=m(ee,(0,se.default)((0,se.default)({},le),M)),E=(q=M==null||(W=M.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&q!==void 0?q:F.abortOnUnmount;a1((0,se.default)((0,se.default)({},M),{},{initialPageParam:(ne=M.initialCursor)!==null&&ne!==void 0?ne:null,queryKey:ee,queryFn:ie?K:H=>{var z;const te=(0,se.default)((0,se.default)({},ue),{},{trpc:(0,se.default)((0,se.default)({},ue?.trpc),E?{signal:H.signal}:{})});return F.client.query(...wt(ee,te,{pageParam:(z=H.pageParam)!==null&&z!==void 0?z:M.initialCursor,direction:H.direction}))}}))}function I(V,K,M){var q,W,ne;const F=y(),ee=On(V,K,"infinite"),le=F.queryClient.getQueryDefaults(ee),ie=m(ee,(0,se.default)((0,se.default)({},le),M)),ue=(q=M==null||(W=M.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&q!==void 0?q:F.abortOnUnmount,E=e1((0,se.default)((0,se.default)({},M),{},{initialPageParam:(ne=M.initialCursor)!==null&&ne!==void 0?ne:null,queryKey:ee,queryFn:H=>{var z;const te=(0,se.default)((0,se.default)({},ie),{},{trpc:(0,se.default)((0,se.default)({},ie?.trpc),ue?{signal:H.signal}:{})});return F.client.query(...wt(ee,te,{pageParam:(z=H.pageParam)!==null&&z!==void 0?z:M.initialCursor,direction:H.direction}))}}),F.queryClient);return E.trpc=yl({path:V}),[E.data,E]}return{Provider:h,createClient:f,useContext:y,useUtils:y,useQuery:v,usePrefetchQuery:x,useSuspenseQuery:g,useQueries:(V,K)=>{const{ssrState:M,queryClient:q,prefetchQuery:W,client:ne}=y(),F=my(ne),ee=V(F);if(typeof window>"u"&&M==="prepass")for(const ie of ee){var le;const ue=ie;((le=ue.trpc)===null||le===void 0?void 0:le.ssr)!==!1&&!q.getQueryCache().find({queryKey:ue.queryKey})&&W(ue.queryKey,ue)}return vv({queries:ee.map(ie=>(0,se.default)((0,se.default)({},ie),{},{queryKey:ie.queryKey})),combine:K?.combine},q)},useSuspenseQueries:V=>{const{queryClient:K,client:M}=y(),q=my(M),W=V(q),ne=t1({queries:W.map(F=>(0,se.default)((0,se.default)({},F),{},{queryFn:F.queryFn,queryKey:F.queryKey}))},K);return[ne.map(F=>F.data),ne]},useMutation:j,useSubscription:A,useInfiniteQuery:G,usePrefetchInfiniteQuery:B,useSuspenseInfiniteQuery:I}}function A2(n){const r=y2(n);return Gf(l=>l==="useContext"||l==="useUtils"?()=>{const s=n.useUtils();return R.useMemo(()=>S2(s),[s])}:n.hasOwnProperty(l)?n[l]:r[l])}function _2(n){const r=T2();return A2(r)}const Hv=_2(),C2="app_session_id",R2="Please login (10001)",M2="__Host-oauth_state",N2=n=>btoa(JSON.stringify(n));var Fc={exports:{}},vl={},Ic={exports:{}},$c={};/** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var yy;function z2(){return yy||(yy=1,(function(n){function r(E,H){var z=E.length;E.push(H);e:for(;0>>1,fe=E[te];if(0>>1;teu(C,z))Lu(J,C)?(E[te]=J,E[L]=z,te=L):(E[te]=C,E[Y]=z,te=Y);else if(Lu(J,z))E[te]=J,E[L]=z,te=L;else break e}}return H}function u(E,H){var z=E.sortIndex-H.sortIndex;return z!==0?z:E.id-H.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,y=h.now();n.unstable_now=function(){return h.now()-y}}var m=[],v=[],x=1,g=null,j=3,O=!1,_=!1,A=!1,G=!1,B=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function re(E){for(var H=l(v);H!==null;){if(H.callback===null)s(v);else if(H.startTime<=E)s(v),H.sortIndex=H.expirationTime,r(m,H);else break;H=l(v)}}function V(E){if(A=!1,re(E),!_)if(l(m)!==null)_=!0,K||(K=!0,ee());else{var H=l(v);H!==null&&ue(V,H.startTime-E)}}var K=!1,M=-1,q=5,W=-1;function ne(){return G?!0:!(n.unstable_now()-WE&&ne());){var te=g.callback;if(typeof te=="function"){g.callback=null,j=g.priorityLevel;var fe=te(g.expirationTime<=E);if(E=n.unstable_now(),typeof fe=="function"){g.callback=fe,re(E),H=!0;break t}g===l(m)&&s(m),re(E)}else s(m);g=l(m)}if(g!==null)H=!0;else{var S=l(v);S!==null&&ue(V,S.startTime-E),H=!1}}break e}finally{g=null,j=z,O=!1}H=void 0}}finally{H?ee():K=!1}}}var ee;if(typeof $=="function")ee=function(){$(F)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ie=le.port2;le.port1.onmessage=F,ee=function(){ie.postMessage(null)}}else ee=function(){B(F,0)};function ue(E,H){M=B(function(){E(n.unstable_now())},H)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(E){E.callback=null},n.unstable_forceFrameRate=function(E){0>E||125te?(E.sortIndex=z,r(v,E),l(m)===null&&E===l(v)&&(A?(I(M),M=-1):A=!0,ue(V,z-te))):(E.sortIndex=fe,r(m,E),_||O||(_=!0,K||(K=!0,ee()))),E},n.unstable_shouldYield=ne,n.unstable_wrapCallback=function(E){var H=j;return function(){var z=j;j=H;try{return E.apply(this,arguments)}finally{j=z}}}})($c)),$c}var vy;function D2(){return vy||(vy=1,Ic.exports=z2()),Ic.exports}var Wc={exports:{}},vt={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var gy;function U2(){if(gy)return vt;gy=1;var n=Qf();function r(m){var v="https://react.dev/errors/"+m;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Wc.exports=U2(),Wc.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var xy;function k2(){if(xy)return vl;xy=1;var n=D2(),r=Qf(),l=Lv();function s(e){var t="https://react.dev/errors/"+e;if(1fe||(e.current=te[fe],te[fe]=null,fe--)}function C(e,t){fe++,te[fe]=e.current,e.current=t}var L=S(null),J=S(null),ce=S(null),oe=S(null);function ve(e,t){switch(C(ce,t),C(J,e),C(L,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gp(t),e=bp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(L),C(L,e)}function Oe(){Y(L),Y(J),Y(ce)}function Je(e){e.memoizedState!==null&&C(oe,e);var t=L.current,a=bp(t,e.type);t!==a&&(C(J,e),C(L,a))}function ut(e){J.current===e&&(Y(L),Y(J)),oe.current===e&&(Y(oe),fl._currentValue=z)}var We,rn;function Ut(e){if(We===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);We=t&&t[1]||"",rn=-1)":-1o||w[i]!==U[o]){var P=` `+w[i].replace(" at new "," at ");return e.displayName&&P.includes("")&&(P=P.replace("",e.displayName)),P}while(1<=i&&0<=o);break}}}finally{aa=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ut(a):""}function Ba(e,t){switch(e.tag){case 26:case 27:case 5:return Ut(e.type);case 16:return Ut("Lazy");case 13:return e.child!==t&&t!==null?Ut("Suspense Fallback"):Ut("Suspense");case 19:return Ut("SuspenseList");case 0:case 15:return Sr(e.type,!1);case 11:return Sr(e.type.render,!1);case 1:return Sr(e.type,!0);case 31:return Ut("Activity");default:return""}}function Si(e){try{var t="",a=null;do t+=Ba(e,a),a=e,e=e.return;while(e);return t}catch(i){return` Error generating stack: `+i.message+` `+i.stack}}var kt=Object.prototype.hasOwnProperty,ji=n.unstable_scheduleCallback,wi=n.unstable_cancelCallback,bt=n.unstable_shouldYield,ra=n.unstable_requestPaint,xt=n.unstable_now,No=n.unstable_getCurrentPriorityLevel,Qa=n.unstable_ImmediatePriority,kl=n.unstable_UserBlockingPriority,Ya=n.unstable_NormalPriority,Oi=n.unstable_LowPriority,Mn=n.unstable_IdlePriority,ql=n.log,ia=n.unstable_setDisableYieldValue,Ga=null,St=null;function ln(e){if(typeof ql=="function"&&ia(e),St&&typeof St.setStrictMode=="function")try{St.setStrictMode(Ga,e)}catch{}}var pt=Math.clz32?Math.clz32:yn,zo=Math.log,Ei=Math.LN2;function yn(e){return e>>>=0,e===0?32:31-(zo(e)/Ei|0)|0}var jr=256,wr=262144,Pa=4194304;function vn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function be(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var b=i&134217727;return b!==0?(i=b&~c,i!==0?o=vn(i):(p&=b,p!==0?o=vn(p):a||(a=b&~e,a!==0&&(o=vn(a))))):(b=i&~c,b!==0?o=vn(b):p!==0?o=vn(p):a||(a=i&~e,a!==0&&(o=vn(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function Ge(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function lt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yt(){var e=Pa;return Pa<<=1,(Pa&62914560)===0&&(Pa=4194304),e}function la(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ve(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ot(e,t,a,i,o,c){var p=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var b=e.entanglements,w=e.expirationTimes,U=e.hiddenUpdates;for(a=p&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ug=/[\n"\\]/g;function Jt(e){return e.replace(ug,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ho(e,t,a,i,o,c,p,b){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Zt(t)):e.value!==""+Zt(t)&&(e.value=""+Zt(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Lo(e,p,Zt(t)):a!=null?Lo(e,p,Zt(a)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Zt(b):e.removeAttribute("name")}function dd(e,t,a,i,o,c,p,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){qo(e);return}a=a!=null?""+Zt(a):"",t=t!=null?""+Zt(t):a,b||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=b?e.checked:!!i,e.defaultChecked=!!i,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),qo(e)}function Lo(e,t,a){t==="number"&&Bl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Rr(e,t,a,i){if(e=e.options,t){t={};for(var o=0;o"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Po=!1;if(Dn)try{var Ci={};Object.defineProperty(Ci,"passive",{get:function(){Po=!0}}),window.addEventListener("test",Ci,Ci),window.removeEventListener("test",Ci,Ci)}catch{Po=!1}var oa=null,Vo=null,Yl=null;function bd(){if(Yl)return Yl;var e,t=Vo,a=t.length,i,o="value"in oa?oa.value:oa.textContent,c=o.length;for(e=0;e=Ni),Ed=" ",Td=!1;function Ad(e,t){switch(e){case"keyup":return qg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _d(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dr=!1;function Lg(e,t){switch(e){case"compositionend":return _d(t);case"keypress":return t.which!==32?null:(Td=!0,Ed);case"textInput":return e=t.data,e===Ed&&Td?null:e;default:return null}}function Bg(e,t){if(Dr)return e==="compositionend"||!Fo&&Ad(e,t)?(e=bd(),Yl=Vo=oa=null,Dr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=kd(a)}}function Hd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ld(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Bl(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Bl(e.document)}return t}function Wo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Zg=Dn&&"documentMode"in document&&11>=document.documentMode,Ur=null,eu=null,ki=null,tu=!1;function Bd(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;tu||Ur==null||Ur!==Bl(i)||(i=Ur,"selectionStart"in i&&Wo(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ki&&Ui(ki,i)||(ki=i,i=Us(eu,"onSelect"),0>=p,o-=p,gn=1<<32-pt(t)+o|a<je?(_e=pe,pe=null):_e=pe.sibling;var Me=k(N,pe,D[je],X);if(Me===null){pe===null&&(pe=_e);break}e&&pe&&Me.alternate===null&&t(N,pe),T=c(Me,T,je),Re===null?ye=Me:Re.sibling=Me,Re=Me,pe=_e}if(je===D.length)return a(N,pe),Ce&&kn(N,je),ye;if(pe===null){for(;jeje?(_e=pe,pe=null):_e=pe.sibling;var Ra=k(N,pe,Me.value,X);if(Ra===null){pe===null&&(pe=_e);break}e&&pe&&Ra.alternate===null&&t(N,pe),T=c(Ra,T,je),Re===null?ye=Ra:Re.sibling=Ra,Re=Ra,pe=_e}if(Me.done)return a(N,pe),Ce&&kn(N,je),ye;if(pe===null){for(;!Me.done;je++,Me=D.next())Me=Z(N,Me.value,X),Me!==null&&(T=c(Me,T,je),Re===null?ye=Me:Re.sibling=Me,Re=Me);return Ce&&kn(N,je),ye}for(pe=i(pe);!Me.done;je++,Me=D.next())Me=Q(pe,N,je,Me.value,X),Me!==null&&(e&&Me.alternate!==null&&pe.delete(Me.key===null?je:Me.key),T=c(Me,T,je),Re===null?ye=Me:Re.sibling=Me,Re=Me);return e&&pe.forEach(function(mx){return t(N,mx)}),Ce&&kn(N,je),ye}function He(N,T,D,X){if(typeof D=="object"&&D!==null&&D.type===A&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case O:e:{for(var ye=D.key;T!==null;){if(T.key===ye){if(ye=D.type,ye===A){if(T.tag===7){a(N,T.sibling),X=o(T,D.props.children),X.return=N,N=X;break e}}else if(T.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===q&&nr(ye)===T.type){a(N,T.sibling),X=o(T,D.props),Yi(X,D),X.return=N,N=X;break e}a(N,T);break}else t(N,T);T=T.sibling}D.type===A?(X=Ia(D.props.children,N.mode,X,D.key),X.return=N,N=X):(X=$l(D.type,D.key,D.props,null,N.mode,X),Yi(X,D),X.return=N,N=X)}return p(N);case _:e:{for(ye=D.key;T!==null;){if(T.key===ye)if(T.tag===4&&T.stateNode.containerInfo===D.containerInfo&&T.stateNode.implementation===D.implementation){a(N,T.sibling),X=o(T,D.children||[]),X.return=N,N=X;break e}else{a(N,T);break}else t(N,T);T=T.sibling}X=ou(D,N.mode,X),X.return=N,N=X}return p(N);case q:return D=nr(D),He(N,T,D,X)}if(ue(D))return de(N,T,D,X);if(ee(D)){if(ye=ee(D),typeof ye!="function")throw Error(s(150));return D=ye.call(D),ge(N,T,D,X)}if(typeof D.then=="function")return He(N,T,is(D),X);if(D.$$typeof===$)return He(N,T,ts(N,D),X);ls(N,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,T!==null&&T.tag===6?(a(N,T.sibling),X=o(T,D),X.return=N,N=X):(a(N,T),X=su(D,N.mode,X),X.return=N,N=X),p(N)):a(N,T)}return function(N,T,D,X){try{Qi=0;var ye=He(N,T,D,X);return Xr=null,ye}catch(pe){if(pe===Vr||pe===as)throw pe;var Re=Ht(29,pe,null,N.mode);return Re.lanes=X,Re.return=N,Re}finally{}}}var rr=uh(!0),ch=uh(!1),ha=!1;function xu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Su(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pa(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ze&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=Il(e),Kd(e,null,a),t}return Fl(e,i,t,a),Il(e)}function Gi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Et(e,a)}}function ju(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var p={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=p:c=c.next=p,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var wu=!1;function Pi(){if(wu){var e=Pr;if(e!==null)throw e}}function Vi(e,t,a,i){wu=!1;var o=e.updateQueue;ha=!1;var c=o.firstBaseUpdate,p=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var w=b,U=w.next;w.next=null,p===null?c=U:p.next=U,p=w;var P=e.alternate;P!==null&&(P=P.updateQueue,b=P.lastBaseUpdate,b!==p&&(b===null?P.firstBaseUpdate=U:b.next=U,P.lastBaseUpdate=w))}if(c!==null){var Z=o.baseState;p=0,P=U=w=null,b=c;do{var k=b.lane&-536870913,Q=k!==b.lane;if(Q?(Ae&k)===k:(i&k)===k){k!==0&&k===Gr&&(wu=!0),P!==null&&(P=P.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var de=e,ge=b;k=t;var He=a;switch(ge.tag){case 1:if(de=ge.payload,typeof de=="function"){Z=de.call(He,Z,k);break e}Z=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=ge.payload,k=typeof de=="function"?de.call(He,Z,k):de,k==null)break e;Z=g({},Z,k);break e;case 2:ha=!0}}k=b.callback,k!==null&&(e.flags|=64,Q&&(e.flags|=8192),Q=o.callbacks,Q===null?o.callbacks=[k]:Q.push(k))}else Q={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},P===null?(U=P=Q,w=Z):P=P.next=Q,p|=k;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;Q=b,b=Q.next,Q.next=null,o.lastBaseUpdate=Q,o.shared.pending=null}}while(!0);P===null&&(w=Z),o.baseState=w,o.firstBaseUpdate=U,o.lastBaseUpdate=P,c===null&&(o.shared.lanes=0),xa|=p,e.lanes=p,e.memoizedState=Z}}function fh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function dh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;ec?c:8;var p=E.T,b={};E.T=b,Yu(e,!1,t,a);try{var w=o(),U=E.S;if(U!==null&&U(b,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var P=ab(w,i);Zi(e,t,P,Gt(e))}else Zi(e,t,i,Gt(e))}catch(Z){Zi(e,t,{then:function(){},status:"rejected",reason:Z},Gt())}finally{H.p=c,p!==null&&b.types!==null&&(p.types=b.types),E.T=p}}function ub(){}function Bu(e,t,a,i){if(e.tag!==5)throw Error(s(476));var o=Ph(e).queue;Gh(e,o,t,z,a===null?ub:function(){return Vh(e),a(i)})}function Ph(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:z},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Vh(e){var t=Ph(e);t.next===null&&(t=e.alternate.memoizedState),Zi(e,t.next.queue,{},Gt())}function Qu(){return dt(fl)}function Xh(){return Ie().memoizedState}function Kh(){return Ie().memoizedState}function cb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Gt();e=ma(a);var i=pa(t,e,a);i!==null&&(zt(i,t,a),Gi(i,t,a)),t={cache:yu()},e.payload=t;return}t=t.return}}function fb(e,t,a){var i=Gt();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ys(e)?Jh(t,a):(a=iu(e,t,a,i),a!==null&&(zt(a,e,i),Fh(a,t,i)))}function Zh(e,t,a){var i=Gt();Zi(e,t,a,i)}function Zi(e,t,a,i){var o={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ys(e))Jh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,b=c(p,a);if(o.hasEagerState=!0,o.eagerState=b,qt(b,p))return Fl(e,t,o,0),Le===null&&Jl(),!1}catch{}finally{}if(a=iu(e,t,o,i),a!==null)return zt(a,e,i),Fh(a,t,i),!0}return!1}function Yu(e,t,a,i){if(i={lane:2,revertLane:xc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ys(e)){if(t)throw Error(s(479))}else t=iu(e,a,i,2),t!==null&&zt(t,e,2)}function ys(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Jh(e,t){Zr=us=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Fh(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Et(e,a)}}var Ji={readContext:dt,use:ds,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};Ji.useEffectEvent=Xe;var Ih={readContext:dt,use:ds,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:Dh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ms(4194308,4,Hh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ms(4194308,4,e,t)},useInsertionEffect:function(e,t){ms(4,2,e,t)},useMemo:function(e,t){var a=jt();t=t===void 0?null:t;var i=e();if(ir){ln(!0);try{e()}finally{ln(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=jt();if(a!==void 0){var o=a(t);if(ir){ln(!0);try{a(t)}finally{ln(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=fb.bind(null,Se,e),[i.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:function(e){e=Uu(e);var t=e.queue,a=Zh.bind(null,Se,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Hu,useDeferredValue:function(e,t){var a=jt();return Lu(a,e,t)},useTransition:function(){var e=Uu(!1);return e=Gh.bind(null,Se,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Se,o=jt();if(Ce){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),Le===null)throw Error(s(349));(Ae&127)!==0||gh(i,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Dh(xh.bind(null,i,c,e),[e]),i.flags|=2048,Fr(9,{destroy:void 0},bh.bind(null,i,c,a,t),null),a},useId:function(){var e=jt(),t=Le.identifierPrefix;if(Ce){var a=bn,i=gn;a=(i&~(1<<32-pt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=cs++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?p.createElement("select",{is:i.is}):p.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?p.createElement(o,{is:i.is}):p.createElement(o)}}c[ct]=t,c[At]=i;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)c.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=c;e:switch(mt(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Yn(t)}}return Ye(t),nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Yn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=ce.current,Qr(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,o=ft,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[ct]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||yp(e.nodeValue,a)),e||fa(t,!0)}else e=ks(e).createTextNode(i),e[ct]=t,t.stateNode=e}return Ye(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=Qr(t),a!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[ct]=t}else $a(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else a=du(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Bt(t),t):(Bt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Ye(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Qr(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[ct]=t}else $a(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),o=!1}else o=du(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Bt(t),t):(Bt(t),null)}return Bt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ss(t,t.updateQueue),Ye(t),null);case 4:return Oe(),e===null&&Oc(t.stateNode.containerInfo),Ye(t),null;case 10:return Hn(t.type),Ye(t),null;case 19:if(Y(Fe),i=t.memoizedState,i===null)return Ye(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)Ii(i,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=os(e),c!==null){for(t.flags|=128,Ii(i,!1),e=c.updateQueue,t.updateQueue=e,Ss(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Zd(a,e),a=a.sibling;return C(Fe,Fe.current&1|2),Ce&&kn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&xt()>Ts&&(t.flags|=128,o=!0,Ii(i,!1),t.lanes=4194304)}else{if(!o)if(e=os(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Ss(t,e),Ii(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Ce)return Ye(t),null}else 2*xt()-i.renderingStartTime>Ts&&a!==536870912&&(t.flags|=128,o=!0,Ii(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=xt(),e.sibling=null,a=Fe.current,C(Fe,o?a&1|2:a&1),Ce&&kn(t,i.treeForkCount),e):(Ye(t),null);case 22:case 23:return Bt(t),Eu(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),a=t.updateQueue,a!==null&&Ss(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Y(tr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Hn(et),Ye(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function yb(e,t){switch(cu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hn(et),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ut(t),null;case 31:if(t.memoizedState!==null){if(Bt(t),t.alternate===null)throw Error(s(340));$a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));$a()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Fe),null;case 4:return Oe(),null;case 10:return Hn(t.type),null;case 22:case 23:return Bt(t),Eu(),e!==null&&Y(tr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hn(et),null;case 25:return null;default:return null}}function Sm(e,t){switch(cu(t),t.tag){case 3:Hn(et),Oe();break;case 26:case 27:case 5:ut(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&Bt(t);break;case 13:Bt(t);break;case 19:Y(Fe);break;case 10:Hn(t.type);break;case 22:case 23:Bt(t),Eu(),e!==null&&Y(tr);break;case 24:Hn(et)}}function $i(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){i=void 0;var c=a.create,p=a.inst;i=c(),p.destroy=i}a=a.next}while(a!==o)}}catch(b){Ue(t,t.return,b)}}function ga(e,t,a){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var p=i.inst,b=p.destroy;if(b!==void 0){p.destroy=void 0,o=t;var w=a,U=b;try{U()}catch(P){Ue(o,w,P)}}}i=i.next}while(i!==c)}}catch(P){Ue(t,t.return,P)}}function jm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{dh(t,a)}catch(i){Ue(e,e.return,i)}}}function wm(e,t,a){a.props=lr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Ue(e,t,i)}}function Wi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(o){Ue(e,t,o)}}function xn(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(o){Ue(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ue(e,t,o)}else a.current=null}function Om(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(o){Ue(e,e.return,o)}}function ac(e,t,a){try{var i=e.stateNode;Hb(i,e.type,a,t),i[At]=t}catch(o){Ue(e,e.return,o)}}function Em(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ea(e.type)||e.tag===4}function rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Em(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ea(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ic(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=zn));else if(i!==4&&(i===27&&Ea(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ic(e,t,a),e=e.sibling;e!==null;)ic(e,t,a),e=e.sibling}function js(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Ea(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(js(e,t,a),e=e.sibling;e!==null;)js(e,t,a),e=e.sibling}function Tm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);mt(t,i,a),t[ct]=e,t[At]=a}catch(c){Ue(e,e.return,c)}}var Gn=!1,at=!1,lc=!1,Am=typeof WeakSet=="function"?WeakSet:Set,ot=null;function vb(e,t){if(e=e.containerInfo,Ac=Gs,e=Ld(e),Wo(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var p=0,b=-1,w=-1,U=0,P=0,Z=e,k=null;t:for(;;){for(var Q;Z!==a||o!==0&&Z.nodeType!==3||(b=p+o),Z!==c||i!==0&&Z.nodeType!==3||(w=p+i),Z.nodeType===3&&(p+=Z.nodeValue.length),(Q=Z.firstChild)!==null;)k=Z,Z=Q;for(;;){if(Z===e)break t;if(k===a&&++U===o&&(b=p),k===c&&++P===i&&(w=p),(Q=Z.nextSibling)!==null)break;Z=k,k=Z.parentNode}Z=Q}a=b===-1||w===-1?null:{start:b,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(_c={focusedElem:e,selectionRange:a},Gs=!1,ot=t;ot!==null;)if(t=ot,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ot=e;else for(;ot!==null;){switch(t=ot,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a title"))),mt(c,i,a),c[ct]=e,st(c),i=c;break e;case"link":var p=zp("link","href",o).get(i+(a.href||""));if(p){for(var b=0;bHe&&(p=He,He=ge,ge=p);var N=qd(b,ge),T=qd(b,He);if(N&&T&&(Q.rangeCount!==1||Q.anchorNode!==N.node||Q.anchorOffset!==N.offset||Q.focusNode!==T.node||Q.focusOffset!==T.offset)){var D=Z.createRange();D.setStart(N.node,N.offset),Q.removeAllRanges(),ge>He?(Q.addRange(D),Q.extend(T.node,T.offset)):(D.setEnd(T.node,T.offset),Q.addRange(D))}}}}for(Z=[],Q=b;Q=Q.parentNode;)Q.nodeType===1&&Z.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;ba?32:a,E.T=null,a=hc,hc=null;var c=ja,p=Zn;if(rt=0,ti=ja=null,Zn=0,(ze&6)!==0)throw Error(s(331));var b=ze;if(ze|=4,Hm(c.current),Um(c,c.current,p,a),ze=b,il(0,!1),St&&typeof St.onPostCommitFiberRoot=="function")try{St.onPostCommitFiberRoot(Ga,c)}catch{}return!0}finally{H.p=o,E.T=i,np(e,t)}}function rp(e,t,a){t=It(a,t),t=Xu(e.stateNode,t,2),e=pa(e,t,2),e!==null&&(Ve(e,2),Sn(e))}function Ue(e,t,a){if(e.tag===3)rp(e,e,a);else for(;t!==null;){if(t.tag===3){rp(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Sa===null||!Sa.has(i))){e=It(a,e),a=im(2),i=pa(t,a,2),i!==null&&(lm(a,i,t,e),Ve(i,2),Sn(i));break}}t=t.return}}function vc(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new xb;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(a)||(uc=!0,o.add(a),e=Eb.bind(null,e,t,a),t.then(e,e))}function Eb(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Le===e&&(Ae&a)===a&&(Ke===4||Ke===3&&(Ae&62914560)===Ae&&300>xt()-Es?(ze&2)===0&&ni(e,0):cc|=a,ei===Ae&&(ei=0)),Sn(e)}function ip(e,t){t===0&&(t=yt()),e=Fa(e,t),e!==null&&(Ve(e,t),Sn(e))}function Tb(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),ip(e,a)}function Ab(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),ip(e,a)}function _b(e,t){return ji(e,t)}var Ns=null,ri=null,gc=!1,zs=!1,bc=!1,Oa=0;function Sn(e){e!==ri&&e.next===null&&(ri===null?Ns=ri=e:ri=ri.next=e),zs=!0,gc||(gc=!0,Rb())}function il(e,t){if(!bc&&zs){bc=!0;do for(var a=!1,i=Ns;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var p=i.suspendedLanes,b=i.pingedLanes;c=(1<<31-pt(42|e)+1)-1,c&=o&~(p&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,up(i,c))}else c=Ae,c=be(i,i===Le?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||Ge(i,c)||(a=!0,up(i,c));i=i.next}while(a);bc=!1}}function Cb(){lp()}function lp(){zs=gc=!1;var e=0;Oa!==0&&Bb()&&(e=Oa);for(var t=xt(),a=null,i=Ns;i!==null;){var o=i.next,c=sp(i,t);c===0?(i.next=null,a===null?Ns=o:a.next=o,o===null&&(ri=a)):(a=i,(e!==0||(c&3)!==0)&&(zs=!0)),i=o}rt!==0&&rt!==5||il(e),Oa!==0&&(Oa=0)}function sp(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var P=w.transferSize,Z=w.initiatorType;P&&vp(Z)&&(w=w.responseEnd,p+=P*(w"u"?null:document;function Cp(e,t,a){var i=ii;if(i&&typeof t=="string"&&t){var o=Jt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),_p.has(o)||(_p.add(o),e={rel:e,crossOrigin:a,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),mt(t,"link",e),st(t),i.head.appendChild(t)))}}function Jb(e){Jn.D(e),Cp("dns-prefetch",e,null)}function Fb(e,t){Jn.C(e,t),Cp("preconnect",e,t)}function Ib(e,t,a){Jn.L(e,t,a);var i=ii;if(i&&e&&t){var o='link[rel="preload"][as="'+Jt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+Jt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+Jt(a.imageSizes)+'"]')):o+='[href="'+Jt(e)+'"]';var c=o;switch(t){case"style":c=li(e);break;case"script":c=si(e)}an.has(c)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),an.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(ul(c))||t==="script"&&i.querySelector(cl(c))||(t=i.createElement("link"),mt(t,"link",e),st(t),i.head.appendChild(t)))}}function $b(e,t){Jn.m(e,t);var a=ii;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Jt(i)+'"][href="'+Jt(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=si(e)}if(!an.has(c)&&(e=g({rel:"modulepreload",href:e},t),an.set(c,e),a.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(cl(c)))return}i=a.createElement("link"),mt(i,"link",e),st(i),a.head.appendChild(i)}}}function Wb(e,t,a){Jn.S(e,t,a);var i=ii;if(i&&e){var o=_r(i).hoistableStyles,c=li(e);t=t||"default";var p=o.get(c);if(!p){var b={loading:0,preload:null};if(p=i.querySelector(ul(c)))b.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=an.get(c))&&Uc(e,a);var w=p=i.createElement("link");st(w),mt(w,"link",e),w._p=new Promise(function(U,P){w.onload=U,w.onerror=P}),w.addEventListener("load",function(){b.loading|=1}),w.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Hs(p,t,i)}p={type:"stylesheet",instance:p,count:1,state:b},o.set(c,p)}}}function ex(e,t){Jn.X(e,t);var a=ii;if(a&&e){var i=_r(a).hoistableScripts,o=si(e),c=i.get(o);c||(c=a.querySelector(cl(o)),c||(e=g({src:e,async:!0},t),(t=an.get(o))&&kc(e,t),c=a.createElement("script"),st(c),mt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function tx(e,t){Jn.M(e,t);var a=ii;if(a&&e){var i=_r(a).hoistableScripts,o=si(e),c=i.get(o);c||(c=a.querySelector(cl(o)),c||(e=g({src:e,async:!0,type:"module"},t),(t=an.get(o))&&kc(e,t),c=a.createElement("script"),st(c),mt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function Rp(e,t,a,i){var o=(o=ce.current)?qs(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=li(a.href),a=_r(o).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=li(a.href);var c=_r(o).hoistableStyles,p=c.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,p),(c=o.querySelector(ul(e)))&&!c._p&&(p.instance=c,p.state.loading=5),an.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},an.set(e,a),c||nx(o,e,a,p.state))),t&&i===null)throw Error(s(528,""));return p}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=si(a),a=_r(o).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function li(e){return'href="'+Jt(e)+'"'}function ul(e){return'link[rel="stylesheet"]['+e+"]"}function Mp(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function nx(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),mt(t,"link",a),st(t),e.head.appendChild(t))}function si(e){return'[src="'+Jt(e)+'"]'}function cl(e){return"script[async]"+e}function Np(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Jt(a.href)+'"]');if(i)return t.instance=i,st(i),i;var o=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),st(i),mt(i,"style",o),Hs(i,a.precedence,e),t.instance=i;case"stylesheet":o=li(a.href);var c=e.querySelector(ul(o));if(c)return t.state.loading|=4,t.instance=c,st(c),c;i=Mp(a),(o=an.get(o))&&Uc(i,o),c=(e.ownerDocument||e).createElement("link"),st(c);var p=c;return p._p=new Promise(function(b,w){p.onload=b,p.onerror=w}),mt(c,"link",i),t.state.loading|=4,Hs(c,a.precedence,e),t.instance=c;case"script":return c=si(a.src),(o=e.querySelector(cl(c)))?(t.instance=o,st(o),o):(i=a,(o=an.get(c))&&(i=g({},a),kc(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),st(o),mt(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Hs(i,a.precedence,e));return t.instance}function Hs(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,p=0;p title"):null)}function ax(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Up(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function rx(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=li(i.href),c=t.querySelector(ul(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Bs.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,st(c);return}c=t.ownerDocument||t,i=Mp(i),(o=an.get(o))&&Uc(i,o),c=c.createElement("link"),st(c);var p=c;p._p=new Promise(function(b,w){p.onload=b,p.onerror=w}),mt(c,"link",i),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Bs.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var qc=0;function ix(e,t){return e.stylesheets&&e.count===0&&Ys(e,e.stylesheets),0qc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Bs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ys(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Qs=null;function Ys(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Qs=new Map,t.forEach(lx,e),Qs=null,Bs.call(e))}function lx(e,t){if(!(t.state.loading&4)){var a=Qs.get(e);if(a)var i=a.get(null);else{a=new Map,Qs.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Fc.exports=k2(),Fc.exports}var H2=q2(),L2=(function(){function n(){this.keyToValue=new Map,this.valueToKey=new Map}return n.prototype.set=function(r,l){this.keyToValue.set(r,l),this.valueToKey.set(l,r)},n.prototype.getByKey=function(r){return this.keyToValue.get(r)},n.prototype.getByValue=function(r){return this.valueToKey.get(r)},n.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},n})(),Bv=(function(){function n(r){this.generateIdentifier=r,this.kv=new L2}return n.prototype.register=function(r,l){this.kv.getByValue(r)||(l||(l=this.generateIdentifier(r)),this.kv.set(l,r))},n.prototype.clear=function(){this.kv.clear()},n.prototype.getIdentifier=function(r){return this.kv.getByValue(r)},n.prototype.getValue=function(r){return this.kv.getByKey(r)},n})(),B2=(function(){var n=function(r,l){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(s[f]=u[f])},n(r,l)};return function(r,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");n(r,l);function s(){this.constructor=r}r.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}})(),Q2=(function(n){B2(r,n);function r(){var l=n.call(this,function(s){return s.name})||this;return l.classToAllowedProps=new Map,l}return r.prototype.register=function(l,s){typeof s=="object"?(s.allowProps&&this.classToAllowedProps.set(l,s.allowProps),n.prototype.register.call(this,l,s.identifier)):n.prototype.register.call(this,l,s)},r.prototype.getAllowedProps=function(l){return this.classToAllowedProps.get(l)},r})(Bv),Y2=function(n,r){var l=typeof Symbol=="function"&&n[Symbol.iterator];if(!l)return n;var s=l.call(n),u,f=[],h;try{for(;(r===void 0||r-- >0)&&!(u=s.next()).done;)f.push(u.value)}catch(y){h={error:y}}finally{try{u&&!u.done&&(l=s.return)&&l.call(s)}finally{if(h)throw h.error}}return f};function G2(n){if("values"in Object)return Object.values(n);var r=[];for(var l in n)n.hasOwnProperty(l)&&r.push(n[l]);return r}function P2(n,r){var l=G2(n);if("find"in l)return l.find(r);for(var s=l,u=0;u"u"},K2=function(n){return n===null},Ol=function(n){return typeof n!="object"||n===null||n===Object.prototype?!1:Object.getPrototypeOf(n)===null?!0:Object.getPrototypeOf(n)===Object.prototype},xf=function(n){return Ol(n)&&Object.keys(n).length===0},ka=function(n){return Array.isArray(n)},Z2=function(n){return typeof n=="string"},J2=function(n){return typeof n=="number"&&!isNaN(n)},F2=function(n){return typeof n=="boolean"},I2=function(n){return n instanceof RegExp},El=function(n){return n instanceof Map},Tl=function(n){return n instanceof Set},Yv=function(n){return X2(n)==="Symbol"},$2=function(n){return n instanceof Date&&!isNaN(n.valueOf())},W2=function(n){return n instanceof Error},wy=function(n){return typeof n=="number"&&isNaN(n)},eS=function(n){return F2(n)||K2(n)||Qv(n)||J2(n)||Z2(n)||Yv(n)},tS=function(n){return typeof n=="bigint"},nS=function(n){return n===1/0||n===-1/0},aS=function(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)},rS=function(n){return n instanceof URL},Gv=function(n){return n.replace(/\./g,"\\.")},ef=function(n){return n.map(String).map(Gv).join(".")},xl=function(n){for(var r=[],l="",s=0;s0)&&!(u=s.next()).done;)f.push(u.value)}catch(y){h={error:y}}finally{try{u&&!u.done&&(l=s.return)&&l.call(s)}finally{if(h)throw h.error}}return f},wf=function(n,r){for(var l=0,s=r.length,u=n.length;l0?"Infinity":"-Infinity"},Number),jn(function(n){return n===0&&1/n===-1/0},"number",function(){return"-0"},Number),jn(rS,"URL",function(n){return n.toString()},function(n){return new URL(n)})];function jo(n,r,l,s){return{isApplicable:n,annotation:r,transform:l,untransform:s}}var Vv=jo(function(n,r){if(Yv(n)){var l=!!r.symbolRegistry.getIdentifier(n);return l}return!1},function(n,r){var l=r.symbolRegistry.getIdentifier(n);return["symbol",l]},function(n){return n.description},function(n,r,l){var s=l.symbolRegistry.getValue(r[1]);if(!s)throw new Error("Trying to deserialize unknown symbol");return s}),iS=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(n,r){return n[r.name]=r,n},{}),Xv=jo(aS,function(n){return["typed-array",n.constructor.name]},function(n){return wf([],jf(n))},function(n,r){var l=iS[r[1]];if(!l)throw new Error("Trying to deserialize unknown typed array");return new l(n)});function Kv(n,r){if(n?.constructor){var l=!!r.classRegistry.getIdentifier(n.constructor);return l}return!1}var Zv=jo(Kv,function(n,r){var l=r.classRegistry.getIdentifier(n.constructor);return["class",l]},function(n,r){var l=r.classRegistry.getAllowedProps(n.constructor);if(!l)return Sf({},n);var s={};return l.forEach(function(u){s[u]=n[u]}),s},function(n,r,l){var s=l.classRegistry.getValue(r[1]);if(!s)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(s.prototype),n)}),Jv=jo(function(n,r){return!!r.customTransformerRegistry.findApplicable(n)},function(n,r){var l=r.customTransformerRegistry.findApplicable(n);return["custom",l.name]},function(n,r){var l=r.customTransformerRegistry.findApplicable(n);return l.serialize(n)},function(n,r,l){var s=l.customTransformerRegistry.findByName(r[1]);if(!s)throw new Error("Trying to deserialize unknown custom value");return s.deserialize(n)}),lS=[Zv,Vv,Jv,Xv],Oy=function(n,r){var l=jy(lS,function(u){return u.isApplicable(n,r)});if(l)return{value:l.transform(n,r),type:l.annotation(n,r)};var s=jy(Pv,function(u){return u.isApplicable(n,r)});if(s)return{value:s.transform(n,r),type:s.annotation}},Fv={};Pv.forEach(function(n){Fv[n.annotation]=n});var sS=function(n,r,l){if(ka(r))switch(r[0]){case"symbol":return Vv.untransform(n,r,l);case"class":return Zv.untransform(n,r,l);case"custom":return Jv.untransform(n,r,l);case"typed-array":return Xv.untransform(n,r,l);default:throw new Error("Unknown transformation: "+r)}else{var s=Fv[r];if(!s)throw new Error("Unknown transformation: "+r);return s.untransform(n,l)}},fi=function(n,r){for(var l=n.keys();r>0;)l.next(),r--;return l.next().value};function Iv(n){if(oo(n,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(oo(n,"prototype"))throw new Error("prototype is not allowed as a property");if(oo(n,"constructor"))throw new Error("constructor is not allowed as a property")}var oS=function(n,r){Iv(r);for(var l=0;l0)&&!(u=s.next()).done;)f.push(u.value)}catch(y){h={error:y}}finally{try{u&&!u.done&&(l=s.return)&&l.call(s)}finally{if(h)throw h.error}}return f},za=function(n,r){for(var l=0,s=r.length,u=n.length;lTf(u,r));if(!mS(n))return n;const l=Object.getOwnPropertyNames(n),s=Object.getOwnPropertySymbols(n);return[...l,...s].reduce((u,f)=>{if(Ey(r.props)&&!r.props.includes(f))return u;const h=n[f],y=Tf(h,r);return pS(u,f,y,n,r.nonenumerable),u},{})}var cr=function(){return cr=Object.assign||function(n){for(var r,l=1,s=arguments.length;l0)&&!(u=s.next()).done;)f.push(u.value)}catch(y){h={error:y}}finally{try{u&&!u.done&&(l=s.return)&&l.call(s)}finally{if(h)throw h.error}}return f},vS=function(n,r){for(var l=0,s=r.length,u=n.length;l{let m=document.documentElement,v=["light","dark"];function x(O){(Array.isArray(n)?n:[n]).forEach(_=>{let A=_==="class",G=A&&f?u.map(B=>f[B]||B):u;A?(m.classList.remove(...G),m.classList.add(f&&f[O]?f[O]:O)):m.setAttribute(_,O)}),g(O)}function g(O){y&&v.includes(O)&&(m.style.colorScheme=O)}function j(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)x(s);else try{let O=localStorage.getItem(r)||l,_=h&&O==="system"?j():O;x(_)}catch{}},bS=R.createContext(void 0),xS={setTheme:n=>{},themes:[]},SS=()=>{var n;return(n=R.useContext(bS))!=null?n:xS};R.memo(({forcedTheme:n,storageKey:r,attribute:l,enableSystem:s,enableColorScheme:u,defaultTheme:f,value:h,themes:y,nonce:m,scriptProps:v})=>{let x=JSON.stringify([l,r,f,n,y,h,s,u]).slice(1,-1);return R.createElement("script",{...v,suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(${gS.toString()})(${x})`}})});var Xf=Lv();const jS=Wy(Xf);function wS(n){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",r.appendChild(l),l.styleSheet?l.styleSheet.cssText=n:l.appendChild(document.createTextNode(n))}const OS=n=>{switch(n){case"success":return AS;case"info":return CS;case"warning":return _S;case"error":return RS;default:return null}},ES=Array(12).fill(0),TS=({visible:n,className:r})=>ae.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},ae.createElement("div",{className:"sonner-spinner"},ES.map((l,s)=>ae.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${s}`})))),AS=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),_S=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),CS=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),RS=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),MS=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ae.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ae.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),NS=()=>{const[n,r]=ae.useState(document.hidden);return ae.useEffect(()=>{const l=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",l),()=>window.removeEventListener("visibilitychange",l)},[]),n};let Af=1;class zS{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const l=this.subscribers.indexOf(r);this.subscribers.splice(l,1)}),this.publish=r=>{this.subscribers.forEach(l=>l(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var l;const{message:s,...u}=r,f=typeof r?.id=="number"||((l=r.id)==null?void 0:l.length)>0?r.id:Af++,h=this.toasts.find(m=>m.id===f),y=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),h?this.toasts=this.toasts.map(m=>m.id===f?(this.publish({...m,...r,id:f,title:s}),{...m,...r,id:f,dismissible:y,title:s}):m):this.addToast({title:s,...u,dismissible:y,id:f}),f},this.dismiss=r=>(r?(this.dismissedToasts.add(r),requestAnimationFrame(()=>this.subscribers.forEach(l=>l({id:r,dismiss:!0})))):this.toasts.forEach(l=>{this.subscribers.forEach(s=>s({id:l.id,dismiss:!0}))}),r),this.message=(r,l)=>this.create({...l,message:r}),this.error=(r,l)=>this.create({...l,message:r,type:"error"}),this.success=(r,l)=>this.create({...l,type:"success",message:r}),this.info=(r,l)=>this.create({...l,type:"info",message:r}),this.warning=(r,l)=>this.create({...l,type:"warning",message:r}),this.loading=(r,l)=>this.create({...l,type:"loading",message:r}),this.promise=(r,l)=>{if(!l)return;let s;l.loading!==void 0&&(s=this.create({...l,promise:r,type:"loading",message:l.loading,description:typeof l.description!="function"?l.description:void 0}));const u=Promise.resolve(r instanceof Function?r():r);let f=s!==void 0,h;const y=u.then(async v=>{if(h=["resolve",v],ae.isValidElement(v))f=!1,this.create({id:s,type:"default",message:v});else if(US(v)&&!v.ok){f=!1;const g=typeof l.error=="function"?await l.error(`HTTP error! status: ${v.status}`):l.error,j=typeof l.description=="function"?await l.description(`HTTP error! status: ${v.status}`):l.description,_=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:j,..._})}else if(v instanceof Error){f=!1;const g=typeof l.error=="function"?await l.error(v):l.error,j=typeof l.description=="function"?await l.description(v):l.description,_=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:s,type:"error",description:j,..._})}else if(l.success!==void 0){f=!1;const g=typeof l.success=="function"?await l.success(v):l.success,j=typeof l.description=="function"?await l.description(v):l.description,_=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:s,type:"success",description:j,..._})}}).catch(async v=>{if(h=["reject",v],l.error!==void 0){f=!1;const x=typeof l.error=="function"?await l.error(v):l.error,g=typeof l.description=="function"?await l.description(v):l.description,O=typeof x=="object"&&!ae.isValidElement(x)?x:{message:x};this.create({id:s,type:"error",description:g,...O})}}).finally(()=>{f&&(this.dismiss(s),s=void 0),l.finally==null||l.finally.call(l)}),m=()=>new Promise((v,x)=>y.then(()=>h[0]==="reject"?x(h[1]):v(h[1])).catch(x));return typeof s!="string"&&typeof s!="number"?{unwrap:m}:Object.assign(s,{unwrap:m})},this.custom=(r,l)=>{const s=l?.id||Af++;return this.create({jsx:r(s),id:s,...l}),s},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Dt=new zS,DS=(n,r)=>{const l=r?.id||Af++;return Dt.addToast({title:n,...r,id:l}),l},US=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",kS=DS,qS=()=>Dt.toasts,HS=()=>Dt.getActiveToasts();Object.assign(kS,{success:Dt.success,info:Dt.info,warning:Dt.warning,error:Dt.error,custom:Dt.custom,message:Dt.message,promise:Dt.promise,dismiss:Dt.dismiss,loading:Dt.loading},{getHistory:qS,getToasts:HS});wS("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function eo(n){return n.label!==void 0}const LS=3,BS="24px",QS="16px",Ty=4e3,YS=356,GS=14,PS=45,VS=200;function wn(...n){return n.filter(Boolean).join(" ")}function XS(n){const[r,l]=n.split("-"),s=[];return r&&s.push(r),l&&s.push(l),s}const KS=n=>{var r,l,s,u,f,h,y,m,v;const{invert:x,toast:g,unstyled:j,interacting:O,setHeights:_,visibleToasts:A,heights:G,index:B,toasts:I,expanded:$,removeToast:re,defaultRichColors:V,closeButton:K,style:M,cancelButtonStyle:q,actionButtonStyle:W,className:ne="",descriptionClassName:F="",duration:ee,position:le,gap:ie,expandByDefault:ue,classNames:E,icons:H,closeButtonAriaLabel:z="Close toast"}=n,[te,fe]=ae.useState(null),[S,Y]=ae.useState(null),[C,L]=ae.useState(!1),[J,ce]=ae.useState(!1),[oe,ve]=ae.useState(!1),[Oe,Je]=ae.useState(!1),[ut,We]=ae.useState(!1),[rn,Ut]=ae.useState(0),[aa,Sr]=ae.useState(0),Ba=ae.useRef(g.duration||ee||Ty),Si=ae.useRef(null),kt=ae.useRef(null),ji=B===0,wi=B+1<=A,bt=g.type,ra=g.dismissible!==!1,xt=g.className||"",No=g.descriptionClassName||"",Qa=ae.useMemo(()=>G.findIndex(be=>be.toastId===g.id)||0,[G,g.id]),kl=ae.useMemo(()=>{var be;return(be=g.closeButton)!=null?be:K},[g.closeButton,K]),Ya=ae.useMemo(()=>g.duration||ee||Ty,[g.duration,ee]),Oi=ae.useRef(0),Mn=ae.useRef(0),ql=ae.useRef(0),ia=ae.useRef(null),[Ga,St]=le.split("-"),ln=ae.useMemo(()=>G.reduce((be,Ge,lt)=>lt>=Qa?be:be+Ge.height,0),[G,Qa]),pt=NS(),zo=g.invert||x,Ei=bt==="loading";Mn.current=ae.useMemo(()=>Qa*ie+ln,[Qa,ln]),ae.useEffect(()=>{Ba.current=Ya},[Ya]),ae.useEffect(()=>{L(!0)},[]),ae.useEffect(()=>{const be=kt.current;if(be){const Ge=be.getBoundingClientRect().height;return Sr(Ge),_(lt=>[{toastId:g.id,height:Ge,position:g.position},...lt]),()=>_(lt=>lt.filter(yt=>yt.toastId!==g.id))}},[_,g.id]),ae.useLayoutEffect(()=>{if(!C)return;const be=kt.current,Ge=be.style.height;be.style.height="auto";const lt=be.getBoundingClientRect().height;be.style.height=Ge,Sr(lt),_(yt=>yt.find(Ve=>Ve.toastId===g.id)?yt.map(Ve=>Ve.toastId===g.id?{...Ve,height:lt}:Ve):[{toastId:g.id,height:lt,position:g.position},...yt])},[C,g.title,g.description,_,g.id,g.jsx,g.action,g.cancel]);const yn=ae.useCallback(()=>{ce(!0),Ut(Mn.current),_(be=>be.filter(Ge=>Ge.toastId!==g.id)),setTimeout(()=>{re(g)},VS)},[g,re,_,Mn]);ae.useEffect(()=>{if(g.promise&&bt==="loading"||g.duration===1/0||g.type==="loading")return;let be;return $||O||pt?(()=>{if(ql.current{Ba.current!==1/0&&(Oi.current=new Date().getTime(),be=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),yn()},Ba.current))})(),()=>clearTimeout(be)},[$,O,g,bt,pt,yn]),ae.useEffect(()=>{g.delete&&(yn(),g.onDismiss==null||g.onDismiss.call(g,g))},[yn,g.delete]);function jr(){var be;if(H?.loading){var Ge;return ae.createElement("div",{className:wn(E?.loader,g==null||(Ge=g.classNames)==null?void 0:Ge.loader,"sonner-loader"),"data-visible":bt==="loading"},H.loading)}return ae.createElement(TS,{className:wn(E?.loader,g==null||(be=g.classNames)==null?void 0:be.loader),visible:bt==="loading"})}const wr=g.icon||H?.[bt]||OS(bt);var Pa,vn;return ae.createElement("li",{tabIndex:0,ref:kt,className:wn(ne,xt,E?.toast,g==null||(r=g.classNames)==null?void 0:r.toast,E?.default,E?.[bt],g==null||(l=g.classNames)==null?void 0:l[bt]),"data-sonner-toast":"","data-rich-colors":(Pa=g.richColors)!=null?Pa:V,"data-styled":!(g.jsx||g.unstyled||j),"data-mounted":C,"data-promise":!!g.promise,"data-swiped":ut,"data-removed":J,"data-visible":wi,"data-y-position":Ga,"data-x-position":St,"data-index":B,"data-front":ji,"data-swiping":oe,"data-dismissible":ra,"data-type":bt,"data-invert":zo,"data-swipe-out":Oe,"data-swipe-direction":S,"data-expanded":!!($||ue&&C),"data-testid":g.testId,style:{"--index":B,"--toasts-before":B,"--z-index":I.length-B,"--offset":`${J?rn:Mn.current}px`,"--initial-height":ue?"auto":`${aa}px`,...M,...g.style},onDragEnd:()=>{ve(!1),fe(null),ia.current=null},onPointerDown:be=>{be.button!==2&&(Ei||!ra||(Si.current=new Date,Ut(Mn.current),be.target.setPointerCapture(be.pointerId),be.target.tagName!=="BUTTON"&&(ve(!0),ia.current={x:be.clientX,y:be.clientY})))},onPointerUp:()=>{var be,Ge,lt;if(Oe||!ra)return;ia.current=null;const yt=Number(((be=kt.current)==null?void 0:be.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),la=Number(((Ge=kt.current)==null?void 0:Ge.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ve=new Date().getTime()-((lt=Si.current)==null?void 0:lt.getTime()),Ot=te==="x"?yt:la,Va=Math.abs(Ot)/Ve;if(Math.abs(Ot)>=PS||Va>.11){Ut(Mn.current),g.onDismiss==null||g.onDismiss.call(g,g),Y(te==="x"?yt>0?"right":"left":la>0?"down":"up"),yn(),Je(!0);return}else{var Et,Tt;(Et=kt.current)==null||Et.style.setProperty("--swipe-amount-x","0px"),(Tt=kt.current)==null||Tt.style.setProperty("--swipe-amount-y","0px")}We(!1),ve(!1),fe(null)},onPointerMove:be=>{var Ge,lt,yt;if(!ia.current||!ra||((Ge=window.getSelection())==null?void 0:Ge.toString().length)>0)return;const Ve=be.clientY-ia.current.y,Ot=be.clientX-ia.current.x;var Va;const Et=(Va=n.swipeDirections)!=null?Va:XS(le);!te&&(Math.abs(Ot)>1||Math.abs(Ve)>1)&&fe(Math.abs(Ot)>Math.abs(Ve)?"x":"y");let Tt={x:0,y:0};const Or=sn=>1/(1.5+Math.abs(sn)/20);if(te==="y"){if(Et.includes("top")||Et.includes("bottom"))if(Et.includes("top")&&Ve<0||Et.includes("bottom")&&Ve>0)Tt.y=Ve;else{const sn=Ve*Or(Ve);Tt.y=Math.abs(sn)0)Tt.x=Ot;else{const sn=Ot*Or(Ot);Tt.x=Math.abs(sn)0||Math.abs(Tt.y)>0)&&We(!0),(lt=kt.current)==null||lt.style.setProperty("--swipe-amount-x",`${Tt.x}px`),(yt=kt.current)==null||yt.style.setProperty("--swipe-amount-y",`${Tt.y}px`)}},kl&&!g.jsx&&bt!=="loading"?ae.createElement("button",{"aria-label":z,"data-disabled":Ei,"data-close-button":!0,onClick:Ei||!ra?()=>{}:()=>{yn(),g.onDismiss==null||g.onDismiss.call(g,g)},className:wn(E?.closeButton,g==null||(s=g.classNames)==null?void 0:s.closeButton)},(vn=H?.close)!=null?vn:MS):null,(bt||g.icon||g.promise)&&g.icon!==null&&(H?.[bt]!==null||g.icon)?ae.createElement("div",{"data-icon":"",className:wn(E?.icon,g==null||(u=g.classNames)==null?void 0:u.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||jr():null,g.type!=="loading"?wr:null):null,ae.createElement("div",{"data-content":"",className:wn(E?.content,g==null||(f=g.classNames)==null?void 0:f.content)},ae.createElement("div",{"data-title":"",className:wn(E?.title,g==null||(h=g.classNames)==null?void 0:h.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?ae.createElement("div",{"data-description":"",className:wn(F,No,E?.description,g==null||(y=g.classNames)==null?void 0:y.description)},typeof g.description=="function"?g.description():g.description):null),ae.isValidElement(g.cancel)?g.cancel:g.cancel&&eo(g.cancel)?ae.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||q,onClick:be=>{eo(g.cancel)&&ra&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,be),yn())},className:wn(E?.cancelButton,g==null||(m=g.classNames)==null?void 0:m.cancelButton)},g.cancel.label):null,ae.isValidElement(g.action)?g.action:g.action&&eo(g.action)?ae.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||W,onClick:be=>{eo(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,be),!be.defaultPrevented&&yn())},className:wn(E?.actionButton,g==null||(v=g.classNames)==null?void 0:v.actionButton)},g.action.label):null)};function Ay(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function ZS(n,r){const l={};return[n,r].forEach((s,u)=>{const f=u===1,h=f?"--mobile-offset":"--offset",y=f?QS:BS;function m(v){["top","right","bottom","left"].forEach(x=>{l[`${h}-${x}`]=typeof v=="number"?`${v}px`:v})}typeof s=="number"||typeof s=="string"?m(s):typeof s=="object"?["top","right","bottom","left"].forEach(v=>{s[v]===void 0?l[`${h}-${v}`]=y:l[`${h}-${v}`]=typeof s[v]=="number"?`${s[v]}px`:s[v]}):m(y)}),l}const JS=ae.forwardRef(function(r,l){const{id:s,invert:u,position:f="bottom-right",hotkey:h=["altKey","KeyT"],expand:y,closeButton:m,className:v,offset:x,mobileOffset:g,theme:j="light",richColors:O,duration:_,style:A,visibleToasts:G=LS,toastOptions:B,dir:I=Ay(),gap:$=GS,icons:re,containerAriaLabel:V="Notifications"}=r,[K,M]=ae.useState([]),q=ae.useMemo(()=>s?K.filter(C=>C.toasterId===s):K.filter(C=>!C.toasterId),[K,s]),W=ae.useMemo(()=>Array.from(new Set([f].concat(q.filter(C=>C.position).map(C=>C.position)))),[q,f]),[ne,F]=ae.useState([]),[ee,le]=ae.useState(!1),[ie,ue]=ae.useState(!1),[E,H]=ae.useState(j!=="system"?j:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),z=ae.useRef(null),te=h.join("+").replace(/Key/g,"").replace(/Digit/g,""),fe=ae.useRef(null),S=ae.useRef(!1),Y=ae.useCallback(C=>{M(L=>{var J;return(J=L.find(ce=>ce.id===C.id))!=null&&J.delete||Dt.dismiss(C.id),L.filter(({id:ce})=>ce!==C.id)})},[]);return ae.useEffect(()=>Dt.subscribe(C=>{if(C.dismiss){requestAnimationFrame(()=>{M(L=>L.map(J=>J.id===C.id?{...J,delete:!0}:J))});return}setTimeout(()=>{jS.flushSync(()=>{M(L=>{const J=L.findIndex(ce=>ce.id===C.id);return J!==-1?[...L.slice(0,J),{...L[J],...C},...L.slice(J+1)]:[C,...L]})})})}),[K]),ae.useEffect(()=>{if(j!=="system"){H(j);return}if(j==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),typeof window>"u")return;const C=window.matchMedia("(prefers-color-scheme: dark)");try{C.addEventListener("change",({matches:L})=>{H(L?"dark":"light")})}catch{C.addListener(({matches:J})=>{try{H(J?"dark":"light")}catch(ce){console.error(ce)}})}},[j]),ae.useEffect(()=>{K.length<=1&&le(!1)},[K]),ae.useEffect(()=>{const C=L=>{var J;if(h.every(ve=>L[ve]||L.code===ve)){var oe;le(!0),(oe=z.current)==null||oe.focus()}L.code==="Escape"&&(document.activeElement===z.current||(J=z.current)!=null&&J.contains(document.activeElement))&&le(!1)};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[h]),ae.useEffect(()=>{if(z.current)return()=>{fe.current&&(fe.current.focus({preventScroll:!0}),fe.current=null,S.current=!1)}},[z.current]),ae.createElement("section",{ref:l,"aria-label":`${V} ${te}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},W.map((C,L)=>{var J;const[ce,oe]=C.split("-");return q.length?ae.createElement("ol",{key:C,dir:I==="auto"?Ay():I,tabIndex:-1,ref:z,className:v,"data-sonner-toaster":!0,"data-sonner-theme":E,"data-y-position":ce,"data-x-position":oe,style:{"--front-toast-height":`${((J=ne[0])==null?void 0:J.height)||0}px`,"--width":`${YS}px`,"--gap":`${$}px`,...A,...ZS(x,g)},onBlur:ve=>{S.current&&!ve.currentTarget.contains(ve.relatedTarget)&&(S.current=!1,fe.current&&(fe.current.focus({preventScroll:!0}),fe.current=null))},onFocus:ve=>{ve.target instanceof HTMLElement&&ve.target.dataset.dismissible==="false"||S.current||(S.current=!0,fe.current=ve.relatedTarget)},onMouseEnter:()=>le(!0),onMouseMove:()=>le(!0),onMouseLeave:()=>{ie||le(!1)},onDragEnd:()=>le(!1),onPointerDown:ve=>{ve.target instanceof HTMLElement&&ve.target.dataset.dismissible==="false"||ue(!0)},onPointerUp:()=>ue(!1)},q.filter(ve=>!ve.position&&L===0||ve.position===C).map((ve,Oe)=>{var Je,ut;return ae.createElement(KS,{key:ve.id,icons:re,index:Oe,toast:ve,defaultRichColors:O,duration:(Je=B?.duration)!=null?Je:_,className:B?.className,descriptionClassName:B?.descriptionClassName,invert:u,visibleToasts:G,closeButton:(ut=B?.closeButton)!=null?ut:m,interacting:ie,position:C,style:B?.style,unstyled:B?.unstyled,classNames:B?.classNames,cancelButtonStyle:B?.cancelButtonStyle,actionButtonStyle:B?.actionButtonStyle,closeButtonAriaLabel:B?.closeButtonAriaLabel,removeToast:Y,toasts:q.filter(We=>We.position==ve.position),heights:ne.filter(We=>We.position==ve.position),setHeights:F,expandByDefault:y,gap:$,expanded:ee,swipeDirections:r.swipeDirections})})):null}))}),FS=({...n})=>{const{theme:r="system"}=SS();return d.jsx(JS,{theme:r,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...n})};function In(n,r,{checkForDefaultPrevented:l=!0}={}){return function(u){if(n?.(u),l===!1||!u.defaultPrevented)return r?.(u)}}function _y(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function e0(...n){return r=>{let l=!1;const s=n.map(u=>{const f=_y(u,r);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let u=0;u{const{scope:j,children:O,..._}=g,A=j?.[n]?.[m]||y,G=R.useMemo(()=>_,Object.values(_));return d.jsx(A.Provider,{value:G,children:O})};v.displayName=f+"Provider";function x(g,j){const O=j?.[n]?.[m]||y,_=R.useContext(O);if(_)return _;if(h!==void 0)return h;throw new Error(`\`${g}\` must be used within \`${f}\``)}return[v,x]}const u=()=>{const f=l.map(h=>R.createContext(h));return function(y){const m=y?.[n]||f;return R.useMemo(()=>({[`__scope${n}`]:{...y,[n]:m}}),[y,m])}};return u.scopeName=n,[s,IS(u,...r)]}function IS(...n){const r=n[0];if(n.length===1)return r;const l=()=>{const s=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const h=s.reduce((y,{useScope:m,scopeName:v})=>{const g=m(f)[`__scope${v}`];return{...y,...g}},{});return R.useMemo(()=>({[`__scope${r.scopeName}`]:h}),[h])}};return l.scopeName=r.scopeName,l}function $S(n){const r=WS(n),l=R.forwardRef((s,u)=>{const{children:f,...h}=s,y=R.Children.toArray(f),m=y.find(tj);if(m){const v=m.props.children,x=y.map(g=>g===m?R.Children.count(v)>1?R.Children.only(null):R.isValidElement(v)?v.props.children:null:g);return d.jsx(r,{...h,ref:u,children:R.isValidElement(v)?R.cloneElement(v,void 0,x):null})}return d.jsx(r,{...h,ref:u,children:f})});return l.displayName=`${n}.Slot`,l}function WS(n){const r=R.forwardRef((l,s)=>{const{children:u,...f}=l;if(R.isValidElement(u)){const h=aj(u),y=nj(f,u.props);return u.type!==R.Fragment&&(y.ref=s?e0(s,h):h),R.cloneElement(u,y)}return R.Children.count(u)>1?R.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var n0=Symbol("radix.slottable");function ej(n){const r=({children:l})=>d.jsx(d.Fragment,{children:l});return r.displayName=`${n}.Slottable`,r.__radixId=n0,r}function tj(n){return R.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===n0}function nj(n,r){const l={...r};for(const s in r){const u=n[s],f=r[s];/^on[A-Z]/.test(s)?u&&f?l[s]=(...y)=>{const m=f(...y);return u(...y),m}:u&&(l[s]=u):s==="style"?l[s]={...u,...f}:s==="className"&&(l[s]=[u,f].filter(Boolean).join(" "))}return{...n,...l}}function aj(n){let r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?n.ref:(r=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var rj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xr=rj.reduce((n,r)=>{const l=$S(`Primitive.${r}`),s=R.forwardRef((u,f)=>{const{asChild:h,...y}=u,m=h?l:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(m,{...y,ref:f})});return s.displayName=`Primitive.${r}`,{...n,[r]:s}},{});function ij(n,r){n&&Xf.flushSync(()=>n.dispatchEvent(r))}function wo(n){const r=R.useRef(n);return R.useEffect(()=>{r.current=n}),R.useMemo(()=>(...l)=>r.current?.(...l),[])}function lj(n,r=globalThis?.document){const l=wo(n);R.useEffect(()=>{const s=u=>{u.key==="Escape"&&l(u)};return r.addEventListener("keydown",s,{capture:!0}),()=>r.removeEventListener("keydown",s,{capture:!0})},[l,r])}var sj="DismissableLayer",_f="dismissableLayer.update",oj="dismissableLayer.pointerDownOutside",uj="dismissableLayer.focusOutside",Cy,a0=R.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),r0=R.forwardRef((n,r)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:y,...m}=n,v=R.useContext(a0),[x,g]=R.useState(null),j=x?.ownerDocument??globalThis?.document,[,O]=R.useState({}),_=br(r,M=>g(M)),A=Array.from(v.layers),[G]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),B=A.indexOf(G),I=x?A.indexOf(x):-1,$=v.layersWithOutsidePointerEventsDisabled.size>0,re=I>=B,V=dj(M=>{const q=M.target,W=[...v.branches].some(ne=>ne.contains(q));!re||W||(u?.(M),h?.(M),M.defaultPrevented||y?.())},j),K=hj(M=>{const q=M.target;[...v.branches].some(ne=>ne.contains(q))||(f?.(M),h?.(M),M.defaultPrevented||y?.())},j);return lj(M=>{I===v.layers.size-1&&(s?.(M),!M.defaultPrevented&&y&&(M.preventDefault(),y()))},j),R.useEffect(()=>{if(x)return l&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(Cy=j.body.style.pointerEvents,j.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(x)),v.layers.add(x),Ry(),()=>{l&&v.layersWithOutsidePointerEventsDisabled.size===1&&(j.body.style.pointerEvents=Cy)}},[x,j,l,v]),R.useEffect(()=>()=>{x&&(v.layers.delete(x),v.layersWithOutsidePointerEventsDisabled.delete(x),Ry())},[x,v]),R.useEffect(()=>{const M=()=>O({});return document.addEventListener(_f,M),()=>document.removeEventListener(_f,M)},[]),d.jsx(xr.div,{...m,ref:_,style:{pointerEvents:$?re?"auto":"none":void 0,...n.style},onFocusCapture:In(n.onFocusCapture,K.onFocusCapture),onBlurCapture:In(n.onBlurCapture,K.onBlurCapture),onPointerDownCapture:In(n.onPointerDownCapture,V.onPointerDownCapture)})});r0.displayName=sj;var cj="DismissableLayerBranch",fj=R.forwardRef((n,r)=>{const l=R.useContext(a0),s=R.useRef(null),u=br(r,s);return R.useEffect(()=>{const f=s.current;if(f)return l.branches.add(f),()=>{l.branches.delete(f)}},[l.branches]),d.jsx(xr.div,{...n,ref:u})});fj.displayName=cj;function dj(n,r=globalThis?.document){const l=wo(n),s=R.useRef(!1),u=R.useRef(()=>{});return R.useEffect(()=>{const f=y=>{if(y.target&&!s.current){let m=function(){i0(oj,l,v,{discrete:!0})};const v={originalEvent:y};y.pointerType==="touch"?(r.removeEventListener("click",u.current),u.current=m,r.addEventListener("click",u.current,{once:!0})):m()}else r.removeEventListener("click",u.current);s.current=!1},h=window.setTimeout(()=>{r.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(h),r.removeEventListener("pointerdown",f),r.removeEventListener("click",u.current)}},[r,l]),{onPointerDownCapture:()=>s.current=!0}}function hj(n,r=globalThis?.document){const l=wo(n),s=R.useRef(!1);return R.useEffect(()=>{const u=f=>{f.target&&!s.current&&i0(uj,l,{originalEvent:f},{discrete:!1})};return r.addEventListener("focusin",u),()=>r.removeEventListener("focusin",u)},[r,l]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Ry(){const n=new CustomEvent(_f);document.dispatchEvent(n)}function i0(n,r,l,{discrete:s}){const u=l.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:l});r&&u.addEventListener(n,r,{once:!0}),s?ij(u,f):u.dispatchEvent(f)}var Al=globalThis?.document?R.useLayoutEffect:()=>{};const mj=["top","right","bottom","left"],qa=Math.min,Vt=Math.max,fo=Math.round,to=Math.floor,Tn=n=>({x:n,y:n}),pj={left:"right",right:"left",bottom:"top",top:"bottom"},yj={start:"end",end:"start"};function Cf(n,r,l){return Vt(n,qa(r,l))}function ea(n,r){return typeof n=="function"?n(r):n}function ta(n){return n.split("-")[0]}function vi(n){return n.split("-")[1]}function Kf(n){return n==="x"?"y":"x"}function Zf(n){return n==="y"?"height":"width"}const vj=new Set(["top","bottom"]);function En(n){return vj.has(ta(n))?"y":"x"}function Jf(n){return Kf(En(n))}function gj(n,r,l){l===void 0&&(l=!1);const s=vi(n),u=Jf(n),f=Zf(u);let h=u==="x"?s===(l?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[f]>r.floating[f]&&(h=ho(h)),[h,ho(h)]}function bj(n){const r=ho(n);return[Rf(n),r,Rf(r)]}function Rf(n){return n.replace(/start|end/g,r=>yj[r])}const My=["left","right"],Ny=["right","left"],xj=["top","bottom"],Sj=["bottom","top"];function jj(n,r,l){switch(n){case"top":case"bottom":return l?r?Ny:My:r?My:Ny;case"left":case"right":return r?xj:Sj;default:return[]}}function wj(n,r,l,s){const u=vi(n);let f=jj(ta(n),l==="start",s);return u&&(f=f.map(h=>h+"-"+u),r&&(f=f.concat(f.map(Rf)))),f}function ho(n){return n.replace(/left|right|bottom|top/g,r=>pj[r])}function Oj(n){return{top:0,right:0,bottom:0,left:0,...n}}function l0(n){return typeof n!="number"?Oj(n):{top:n,right:n,bottom:n,left:n}}function mo(n){const{x:r,y:l,width:s,height:u}=n;return{width:s,height:u,top:l,left:r,right:r+s,bottom:l+u,x:r,y:l}}function zy(n,r,l){let{reference:s,floating:u}=n;const f=En(r),h=Jf(r),y=Zf(h),m=ta(r),v=f==="y",x=s.x+s.width/2-u.width/2,g=s.y+s.height/2-u.height/2,j=s[y]/2-u[y]/2;let O;switch(m){case"top":O={x,y:s.y-u.height};break;case"bottom":O={x,y:s.y+s.height};break;case"right":O={x:s.x+s.width,y:g};break;case"left":O={x:s.x-u.width,y:g};break;default:O={x:s.x,y:s.y}}switch(vi(r)){case"start":O[h]-=j*(l&&v?-1:1);break;case"end":O[h]+=j*(l&&v?-1:1);break}return O}const Ej=async(n,r,l)=>{const{placement:s="bottom",strategy:u="absolute",middleware:f=[],platform:h}=l,y=f.filter(Boolean),m=await(h.isRTL==null?void 0:h.isRTL(r));let v=await h.getElementRects({reference:n,floating:r,strategy:u}),{x,y:g}=zy(v,s,m),j=s,O={},_=0;for(let A=0;A({name:"arrow",options:n,async fn(r){const{x:l,y:s,placement:u,rects:f,platform:h,elements:y,middlewareData:m}=r,{element:v,padding:x=0}=ea(n,r)||{};if(v==null)return{};const g=l0(x),j={x:l,y:s},O=Jf(u),_=Zf(O),A=await h.getDimensions(v),G=O==="y",B=G?"top":"left",I=G?"bottom":"right",$=G?"clientHeight":"clientWidth",re=f.reference[_]+f.reference[O]-j[O]-f.floating[_],V=j[O]-f.reference[O],K=await(h.getOffsetParent==null?void 0:h.getOffsetParent(v));let M=K?K[$]:0;(!M||!await(h.isElement==null?void 0:h.isElement(K)))&&(M=y.floating[$]||f.floating[_]);const q=re/2-V/2,W=M/2-A[_]/2-1,ne=qa(g[B],W),F=qa(g[I],W),ee=ne,le=M-A[_]-F,ie=M/2-A[_]/2+q,ue=Cf(ee,ie,le),E=!m.arrow&&vi(u)!=null&&ie!==ue&&f.reference[_]/2-(ieie<=0)){var F,ee;const ie=(((F=f.flip)==null?void 0:F.index)||0)+1,ue=M[ie];if(ue&&(!(g==="alignment"?I!==En(ue):!1)||ne.every(z=>En(z.placement)===I?z.overflows[0]>0:!0)))return{data:{index:ie,overflows:ne},reset:{placement:ue}};let E=(ee=ne.filter(H=>H.overflows[0]<=0).sort((H,z)=>H.overflows[1]-z.overflows[1])[0])==null?void 0:ee.placement;if(!E)switch(O){case"bestFit":{var le;const H=(le=ne.filter(z=>{if(K){const te=En(z.placement);return te===I||te==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(te=>te>0).reduce((te,fe)=>te+fe,0)]).sort((z,te)=>z[1]-te[1])[0])==null?void 0:le[0];H&&(E=H);break}case"initialPlacement":E=y;break}if(u!==E)return{reset:{placement:E}}}return{}}}};function Dy(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function Uy(n){return mj.some(r=>n[r]>=0)}const _j=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:l}=r,{strategy:s="referenceHidden",...u}=ea(n,r);switch(s){case"referenceHidden":{const f=await _l(r,{...u,elementContext:"reference"}),h=Dy(f,l.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Uy(h)}}}case"escaped":{const f=await _l(r,{...u,altBoundary:!0}),h=Dy(f,l.floating);return{data:{escapedOffsets:h,escaped:Uy(h)}}}default:return{}}}}},s0=new Set(["left","top"]);async function Cj(n,r){const{placement:l,platform:s,elements:u}=n,f=await(s.isRTL==null?void 0:s.isRTL(u.floating)),h=ta(l),y=vi(l),m=En(l)==="y",v=s0.has(h)?-1:1,x=f&&m?-1:1,g=ea(r,n);let{mainAxis:j,crossAxis:O,alignmentAxis:_}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return y&&typeof _=="number"&&(O=y==="end"?_*-1:_),m?{x:O*x,y:j*v}:{x:j*v,y:O*x}}const Rj=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var l,s;const{x:u,y:f,placement:h,middlewareData:y}=r,m=await Cj(r,n);return h===((l=y.offset)==null?void 0:l.placement)&&(s=y.arrow)!=null&&s.alignmentOffset?{}:{x:u+m.x,y:f+m.y,data:{...m,placement:h}}}}},Mj=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:l,y:s,placement:u}=r,{mainAxis:f=!0,crossAxis:h=!1,limiter:y={fn:G=>{let{x:B,y:I}=G;return{x:B,y:I}}},...m}=ea(n,r),v={x:l,y:s},x=await _l(r,m),g=En(ta(u)),j=Kf(g);let O=v[j],_=v[g];if(f){const G=j==="y"?"top":"left",B=j==="y"?"bottom":"right",I=O+x[G],$=O-x[B];O=Cf(I,O,$)}if(h){const G=g==="y"?"top":"left",B=g==="y"?"bottom":"right",I=_+x[G],$=_-x[B];_=Cf(I,_,$)}const A=y.fn({...r,[j]:O,[g]:_});return{...A,data:{x:A.x-l,y:A.y-s,enabled:{[j]:f,[g]:h}}}}}},Nj=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:l,y:s,placement:u,rects:f,middlewareData:h}=r,{offset:y=0,mainAxis:m=!0,crossAxis:v=!0}=ea(n,r),x={x:l,y:s},g=En(u),j=Kf(g);let O=x[j],_=x[g];const A=ea(y,r),G=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(m){const $=j==="y"?"height":"width",re=f.reference[j]-f.floating[$]+G.mainAxis,V=f.reference[j]+f.reference[$]-G.mainAxis;OV&&(O=V)}if(v){var B,I;const $=j==="y"?"width":"height",re=s0.has(ta(u)),V=f.reference[g]-f.floating[$]+(re&&((B=h.offset)==null?void 0:B[g])||0)+(re?0:G.crossAxis),K=f.reference[g]+f.reference[$]+(re?0:((I=h.offset)==null?void 0:I[g])||0)-(re?G.crossAxis:0);_K&&(_=K)}return{[j]:O,[g]:_}}}},zj=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var l,s;const{placement:u,rects:f,platform:h,elements:y}=r,{apply:m=()=>{},...v}=ea(n,r),x=await _l(r,v),g=ta(u),j=vi(u),O=En(u)==="y",{width:_,height:A}=f.floating;let G,B;g==="top"||g==="bottom"?(G=g,B=j===(await(h.isRTL==null?void 0:h.isRTL(y.floating))?"start":"end")?"left":"right"):(B=g,G=j==="end"?"top":"bottom");const I=A-x.top-x.bottom,$=_-x.left-x.right,re=qa(A-x[G],I),V=qa(_-x[B],$),K=!r.middlewareData.shift;let M=re,q=V;if((l=r.middlewareData.shift)!=null&&l.enabled.x&&(q=$),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(M=I),K&&!j){const ne=Vt(x.left,0),F=Vt(x.right,0),ee=Vt(x.top,0),le=Vt(x.bottom,0);O?q=_-2*(ne!==0||F!==0?ne+F:Vt(x.left,x.right)):M=A-2*(ee!==0||le!==0?ee+le:Vt(x.top,x.bottom))}await m({...r,availableWidth:q,availableHeight:M});const W=await h.getDimensions(y.floating);return _!==W.width||A!==W.height?{reset:{rects:!0}}:{}}}};function Oo(){return typeof window<"u"}function gi(n){return o0(n)?(n.nodeName||"").toLowerCase():"#document"}function Kt(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function Rn(n){var r;return(r=(o0(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function o0(n){return Oo()?n instanceof Node||n instanceof Kt(n).Node:!1}function hn(n){return Oo()?n instanceof Element||n instanceof Kt(n).Element:!1}function _n(n){return Oo()?n instanceof HTMLElement||n instanceof Kt(n).HTMLElement:!1}function ky(n){return!Oo()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Kt(n).ShadowRoot}const Dj=new Set(["inline","contents"]);function Dl(n){const{overflow:r,overflowX:l,overflowY:s,display:u}=mn(n);return/auto|scroll|overlay|hidden|clip/.test(r+s+l)&&!Dj.has(u)}const Uj=new Set(["table","td","th"]);function kj(n){return Uj.has(gi(n))}const qj=[":popover-open",":modal"];function Eo(n){return qj.some(r=>{try{return n.matches(r)}catch{return!1}})}const Hj=["transform","translate","scale","rotate","perspective"],Lj=["transform","translate","scale","rotate","perspective","filter"],Bj=["paint","layout","strict","content"];function Ff(n){const r=If(),l=hn(n)?mn(n):n;return Hj.some(s=>l[s]?l[s]!=="none":!1)||(l.containerType?l.containerType!=="normal":!1)||!r&&(l.backdropFilter?l.backdropFilter!=="none":!1)||!r&&(l.filter?l.filter!=="none":!1)||Lj.some(s=>(l.willChange||"").includes(s))||Bj.some(s=>(l.contain||"").includes(s))}function Qj(n){let r=Ha(n);for(;_n(r)&&!pi(r);){if(Ff(r))return r;if(Eo(r))return null;r=Ha(r)}return null}function If(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Yj=new Set(["html","body","#document"]);function pi(n){return Yj.has(gi(n))}function mn(n){return Kt(n).getComputedStyle(n)}function To(n){return hn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ha(n){if(gi(n)==="html")return n;const r=n.assignedSlot||n.parentNode||ky(n)&&n.host||Rn(n);return ky(r)?r.host:r}function u0(n){const r=Ha(n);return pi(r)?n.ownerDocument?n.ownerDocument.body:n.body:_n(r)&&Dl(r)?r:u0(r)}function Cl(n,r,l){var s;r===void 0&&(r=[]),l===void 0&&(l=!0);const u=u0(n),f=u===((s=n.ownerDocument)==null?void 0:s.body),h=Kt(u);if(f){const y=Mf(h);return r.concat(h,h.visualViewport||[],Dl(u)?u:[],y&&l?Cl(y):[])}return r.concat(u,Cl(u,[],l))}function Mf(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function c0(n){const r=mn(n);let l=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const u=_n(n),f=u?n.offsetWidth:l,h=u?n.offsetHeight:s,y=fo(l)!==f||fo(s)!==h;return y&&(l=f,s=h),{width:l,height:s,$:y}}function $f(n){return hn(n)?n:n.contextElement}function di(n){const r=$f(n);if(!_n(r))return Tn(1);const l=r.getBoundingClientRect(),{width:s,height:u,$:f}=c0(r);let h=(f?fo(l.width):l.width)/s,y=(f?fo(l.height):l.height)/u;return(!h||!Number.isFinite(h))&&(h=1),(!y||!Number.isFinite(y))&&(y=1),{x:h,y}}const Gj=Tn(0);function f0(n){const r=Kt(n);return!If()||!r.visualViewport?Gj:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Pj(n,r,l){return r===void 0&&(r=!1),!l||r&&l!==Kt(n)?!1:r}function mr(n,r,l,s){r===void 0&&(r=!1),l===void 0&&(l=!1);const u=n.getBoundingClientRect(),f=$f(n);let h=Tn(1);r&&(s?hn(s)&&(h=di(s)):h=di(n));const y=Pj(f,l,s)?f0(f):Tn(0);let m=(u.left+y.x)/h.x,v=(u.top+y.y)/h.y,x=u.width/h.x,g=u.height/h.y;if(f){const j=Kt(f),O=s&&hn(s)?Kt(s):s;let _=j,A=Mf(_);for(;A&&s&&O!==_;){const G=di(A),B=A.getBoundingClientRect(),I=mn(A),$=B.left+(A.clientLeft+parseFloat(I.paddingLeft))*G.x,re=B.top+(A.clientTop+parseFloat(I.paddingTop))*G.y;m*=G.x,v*=G.y,x*=G.x,g*=G.y,m+=$,v+=re,_=Kt(A),A=Mf(_)}}return mo({width:x,height:g,x:m,y:v})}function Ao(n,r){const l=To(n).scrollLeft;return r?r.left+l:mr(Rn(n)).left+l}function d0(n,r){const l=n.getBoundingClientRect(),s=l.left+r.scrollLeft-Ao(n,l),u=l.top+r.scrollTop;return{x:s,y:u}}function Vj(n){let{elements:r,rect:l,offsetParent:s,strategy:u}=n;const f=u==="fixed",h=Rn(s),y=r?Eo(r.floating):!1;if(s===h||y&&f)return l;let m={scrollLeft:0,scrollTop:0},v=Tn(1);const x=Tn(0),g=_n(s);if((g||!g&&!f)&&((gi(s)!=="body"||Dl(h))&&(m=To(s)),_n(s))){const O=mr(s);v=di(s),x.x=O.x+s.clientLeft,x.y=O.y+s.clientTop}const j=h&&!g&&!f?d0(h,m):Tn(0);return{width:l.width*v.x,height:l.height*v.y,x:l.x*v.x-m.scrollLeft*v.x+x.x+j.x,y:l.y*v.y-m.scrollTop*v.y+x.y+j.y}}function Xj(n){return Array.from(n.getClientRects())}function Kj(n){const r=Rn(n),l=To(n),s=n.ownerDocument.body,u=Vt(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),f=Vt(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let h=-l.scrollLeft+Ao(n);const y=-l.scrollTop;return mn(s).direction==="rtl"&&(h+=Vt(r.clientWidth,s.clientWidth)-u),{width:u,height:f,x:h,y}}const qy=25;function Zj(n,r){const l=Kt(n),s=Rn(n),u=l.visualViewport;let f=s.clientWidth,h=s.clientHeight,y=0,m=0;if(u){f=u.width,h=u.height;const x=If();(!x||x&&r==="fixed")&&(y=u.offsetLeft,m=u.offsetTop)}const v=Ao(s);if(v<=0){const x=s.ownerDocument,g=x.body,j=getComputedStyle(g),O=x.compatMode==="CSS1Compat"&&parseFloat(j.marginLeft)+parseFloat(j.marginRight)||0,_=Math.abs(s.clientWidth-g.clientWidth-O);_<=qy&&(f-=_)}else v<=qy&&(f+=v);return{width:f,height:h,x:y,y:m}}const Jj=new Set(["absolute","fixed"]);function Fj(n,r){const l=mr(n,!0,r==="fixed"),s=l.top+n.clientTop,u=l.left+n.clientLeft,f=_n(n)?di(n):Tn(1),h=n.clientWidth*f.x,y=n.clientHeight*f.y,m=u*f.x,v=s*f.y;return{width:h,height:y,x:m,y:v}}function Hy(n,r,l){let s;if(r==="viewport")s=Zj(n,l);else if(r==="document")s=Kj(Rn(n));else if(hn(r))s=Fj(r,l);else{const u=f0(n);s={x:r.x-u.x,y:r.y-u.y,width:r.width,height:r.height}}return mo(s)}function h0(n,r){const l=Ha(n);return l===r||!hn(l)||pi(l)?!1:mn(l).position==="fixed"||h0(l,r)}function Ij(n,r){const l=r.get(n);if(l)return l;let s=Cl(n,[],!1).filter(y=>hn(y)&&gi(y)!=="body"),u=null;const f=mn(n).position==="fixed";let h=f?Ha(n):n;for(;hn(h)&&!pi(h);){const y=mn(h),m=Ff(h);!m&&y.position==="fixed"&&(u=null),(f?!m&&!u:!m&&y.position==="static"&&!!u&&Jj.has(u.position)||Dl(h)&&!m&&h0(n,h))?s=s.filter(x=>x!==h):u=y,h=Ha(h)}return r.set(n,s),s}function $j(n){let{element:r,boundary:l,rootBoundary:s,strategy:u}=n;const h=[...l==="clippingAncestors"?Eo(r)?[]:Ij(r,this._c):[].concat(l),s],y=h[0],m=h.reduce((v,x)=>{const g=Hy(r,x,u);return v.top=Vt(g.top,v.top),v.right=qa(g.right,v.right),v.bottom=qa(g.bottom,v.bottom),v.left=Vt(g.left,v.left),v},Hy(r,y,u));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function Wj(n){const{width:r,height:l}=c0(n);return{width:r,height:l}}function ew(n,r,l){const s=_n(r),u=Rn(r),f=l==="fixed",h=mr(n,!0,f,r);let y={scrollLeft:0,scrollTop:0};const m=Tn(0);function v(){m.x=Ao(u)}if(s||!s&&!f)if((gi(r)!=="body"||Dl(u))&&(y=To(r)),s){const O=mr(r,!0,f,r);m.x=O.x+r.clientLeft,m.y=O.y+r.clientTop}else u&&v();f&&!s&&u&&v();const x=u&&!s&&!f?d0(u,y):Tn(0),g=h.left+y.scrollLeft-m.x-x.x,j=h.top+y.scrollTop-m.y-x.y;return{x:g,y:j,width:h.width,height:h.height}}function tf(n){return mn(n).position==="static"}function Ly(n,r){if(!_n(n)||mn(n).position==="fixed")return null;if(r)return r(n);let l=n.offsetParent;return Rn(n)===l&&(l=l.ownerDocument.body),l}function m0(n,r){const l=Kt(n);if(Eo(n))return l;if(!_n(n)){let u=Ha(n);for(;u&&!pi(u);){if(hn(u)&&!tf(u))return u;u=Ha(u)}return l}let s=Ly(n,r);for(;s&&kj(s)&&tf(s);)s=Ly(s,r);return s&&pi(s)&&tf(s)&&!Ff(s)?l:s||Qj(n)||l}const tw=async function(n){const r=this.getOffsetParent||m0,l=this.getDimensions,s=await l(n.floating);return{reference:ew(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function nw(n){return mn(n).direction==="rtl"}const aw={convertOffsetParentRelativeRectToViewportRelativeRect:Vj,getDocumentElement:Rn,getClippingRect:$j,getOffsetParent:m0,getElementRects:tw,getClientRects:Xj,getDimensions:Wj,getScale:di,isElement:hn,isRTL:nw};function p0(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function rw(n,r){let l=null,s;const u=Rn(n);function f(){var y;clearTimeout(s),(y=l)==null||y.disconnect(),l=null}function h(y,m){y===void 0&&(y=!1),m===void 0&&(m=1),f();const v=n.getBoundingClientRect(),{left:x,top:g,width:j,height:O}=v;if(y||r(),!j||!O)return;const _=to(g),A=to(u.clientWidth-(x+j)),G=to(u.clientHeight-(g+O)),B=to(x),$={rootMargin:-_+"px "+-A+"px "+-G+"px "+-B+"px",threshold:Vt(0,qa(1,m))||1};let re=!0;function V(K){const M=K[0].intersectionRatio;if(M!==m){if(!re)return h();M?h(!1,M):s=setTimeout(()=>{h(!1,1e-7)},1e3)}M===1&&!p0(v,n.getBoundingClientRect())&&h(),re=!1}try{l=new IntersectionObserver(V,{...$,root:u.ownerDocument})}catch{l=new IntersectionObserver(V,$)}l.observe(n)}return h(!0),f}function iw(n,r,l,s){s===void 0&&(s={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:y=typeof IntersectionObserver=="function",animationFrame:m=!1}=s,v=$f(n),x=u||f?[...v?Cl(v):[],...Cl(r)]:[];x.forEach(B=>{u&&B.addEventListener("scroll",l,{passive:!0}),f&&B.addEventListener("resize",l)});const g=v&&y?rw(v,l):null;let j=-1,O=null;h&&(O=new ResizeObserver(B=>{let[I]=B;I&&I.target===v&&O&&(O.unobserve(r),cancelAnimationFrame(j),j=requestAnimationFrame(()=>{var $;($=O)==null||$.observe(r)})),l()}),v&&!m&&O.observe(v),O.observe(r));let _,A=m?mr(n):null;m&&G();function G(){const B=mr(n);A&&!p0(A,B)&&l(),A=B,_=requestAnimationFrame(G)}return l(),()=>{var B;x.forEach(I=>{u&&I.removeEventListener("scroll",l),f&&I.removeEventListener("resize",l)}),g?.(),(B=O)==null||B.disconnect(),O=null,m&&cancelAnimationFrame(_)}}const lw=Rj,sw=Mj,ow=Aj,uw=zj,cw=_j,By=Tj,fw=Nj,dw=(n,r,l)=>{const s=new Map,u={platform:aw,...l},f={...u.platform,_c:s};return Ej(n,r,{...u,platform:f})};var hw=typeof document<"u",mw=function(){},uo=hw?R.useLayoutEffect:mw;function po(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let l,s,u;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(l=n.length,l!==r.length)return!1;for(s=l;s--!==0;)if(!po(n[s],r[s]))return!1;return!0}if(u=Object.keys(n),l=u.length,l!==Object.keys(r).length)return!1;for(s=l;s--!==0;)if(!{}.hasOwnProperty.call(r,u[s]))return!1;for(s=l;s--!==0;){const f=u[s];if(!(f==="_owner"&&n.$$typeof)&&!po(n[f],r[f]))return!1}return!0}return n!==n&&r!==r}function y0(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Qy(n,r){const l=y0(n);return Math.round(r*l)/l}function nf(n){const r=R.useRef(n);return uo(()=>{r.current=n}),r}function pw(n){n===void 0&&(n={});const{placement:r="bottom",strategy:l="absolute",middleware:s=[],platform:u,elements:{reference:f,floating:h}={},transform:y=!0,whileElementsMounted:m,open:v}=n,[x,g]=R.useState({x:0,y:0,strategy:l,placement:r,middlewareData:{},isPositioned:!1}),[j,O]=R.useState(s);po(j,s)||O(s);const[_,A]=R.useState(null),[G,B]=R.useState(null),I=R.useCallback(z=>{z!==K.current&&(K.current=z,A(z))},[]),$=R.useCallback(z=>{z!==M.current&&(M.current=z,B(z))},[]),re=f||_,V=h||G,K=R.useRef(null),M=R.useRef(null),q=R.useRef(x),W=m!=null,ne=nf(m),F=nf(u),ee=nf(v),le=R.useCallback(()=>{if(!K.current||!M.current)return;const z={placement:r,strategy:l,middleware:j};F.current&&(z.platform=F.current),dw(K.current,M.current,z).then(te=>{const fe={...te,isPositioned:ee.current!==!1};ie.current&&!po(q.current,fe)&&(q.current=fe,Xf.flushSync(()=>{g(fe)}))})},[j,r,l,F,ee]);uo(()=>{v===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,g(z=>({...z,isPositioned:!1})))},[v]);const ie=R.useRef(!1);uo(()=>(ie.current=!0,()=>{ie.current=!1}),[]),uo(()=>{if(re&&(K.current=re),V&&(M.current=V),re&&V){if(ne.current)return ne.current(re,V,le);le()}},[re,V,le,ne,W]);const ue=R.useMemo(()=>({reference:K,floating:M,setReference:I,setFloating:$}),[I,$]),E=R.useMemo(()=>({reference:re,floating:V}),[re,V]),H=R.useMemo(()=>{const z={position:l,left:0,top:0};if(!E.floating)return z;const te=Qy(E.floating,x.x),fe=Qy(E.floating,x.y);return y?{...z,transform:"translate("+te+"px, "+fe+"px)",...y0(E.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:te,top:fe}},[l,y,E.floating,x.x,x.y]);return R.useMemo(()=>({...x,update:le,refs:ue,elements:E,floatingStyles:H}),[x,le,ue,E,H])}const yw=n=>{function r(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:n,fn(l){const{element:s,padding:u}=typeof n=="function"?n(l):n;return s&&r(s)?s.current!=null?By({element:s.current,padding:u}).fn(l):{}:s?By({element:s,padding:u}).fn(l):{}}}},vw=(n,r)=>({...lw(n),options:[n,r]}),gw=(n,r)=>({...sw(n),options:[n,r]}),bw=(n,r)=>({...fw(n),options:[n,r]}),xw=(n,r)=>({...ow(n),options:[n,r]}),Sw=(n,r)=>({...uw(n),options:[n,r]}),jw=(n,r)=>({...cw(n),options:[n,r]}),ww=(n,r)=>({...yw(n),options:[n,r]});var Ow="Arrow",v0=R.forwardRef((n,r)=>{const{children:l,width:s=10,height:u=5,...f}=n;return d.jsx(xr.svg,{...f,ref:r,width:s,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?l:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});v0.displayName=Ow;var Ew=v0;function Tw(n){const[r,l]=R.useState(void 0);return Al(()=>{if(n){l({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let h,y;if("borderBoxSize"in f){const m=f.borderBoxSize,v=Array.isArray(m)?m[0]:m;h=v.inlineSize,y=v.blockSize}else h=n.offsetWidth,y=n.offsetHeight;l({width:h,height:y})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else l(void 0)},[n]),r}var g0="Popper",[b0,x0]=t0(g0),[TE,S0]=b0(g0),j0="PopperAnchor",w0=R.forwardRef((n,r)=>{const{__scopePopper:l,virtualRef:s,...u}=n,f=S0(j0,l),h=R.useRef(null),y=br(r,h),m=R.useRef(null);return R.useEffect(()=>{const v=m.current;m.current=s?.current||h.current,v!==m.current&&f.onAnchorChange(m.current)}),s?null:d.jsx(xr.div,{...u,ref:y})});w0.displayName=j0;var Wf="PopperContent",[Aw,_w]=b0(Wf),O0=R.forwardRef((n,r)=>{const{__scopePopper:l,side:s="bottom",sideOffset:u=0,align:f="center",alignOffset:h=0,arrowPadding:y=0,avoidCollisions:m=!0,collisionBoundary:v=[],collisionPadding:x=0,sticky:g="partial",hideWhenDetached:j=!1,updatePositionStrategy:O="optimized",onPlaced:_,...A}=n,G=S0(Wf,l),[B,I]=R.useState(null),$=br(r,oe=>I(oe)),[re,V]=R.useState(null),K=Tw(re),M=K?.width??0,q=K?.height??0,W=s+(f!=="center"?"-"+f:""),ne=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},F=Array.isArray(v)?v:[v],ee=F.length>0,le={padding:ne,boundary:F.filter(Rw),altBoundary:ee},{refs:ie,floatingStyles:ue,placement:E,isPositioned:H,middlewareData:z}=pw({strategy:"fixed",placement:W,whileElementsMounted:(...oe)=>iw(...oe,{animationFrame:O==="always"}),elements:{reference:G.anchor},middleware:[vw({mainAxis:u+q,alignmentAxis:h}),m&&gw({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?bw():void 0,...le}),m&&xw({...le}),Sw({...le,apply:({elements:oe,rects:ve,availableWidth:Oe,availableHeight:Je})=>{const{width:ut,height:We}=ve.reference,rn=oe.floating.style;rn.setProperty("--radix-popper-available-width",`${Oe}px`),rn.setProperty("--radix-popper-available-height",`${Je}px`),rn.setProperty("--radix-popper-anchor-width",`${ut}px`),rn.setProperty("--radix-popper-anchor-height",`${We}px`)}}),re&&ww({element:re,padding:y}),Mw({arrowWidth:M,arrowHeight:q}),j&&jw({strategy:"referenceHidden",...le})]}),[te,fe]=A0(E),S=wo(_);Al(()=>{H&&S?.()},[H,S]);const Y=z.arrow?.x,C=z.arrow?.y,L=z.arrow?.centerOffset!==0,[J,ce]=R.useState();return Al(()=>{B&&ce(window.getComputedStyle(B).zIndex)},[B]),d.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...ue,transform:H?ue.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(" "),...z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:d.jsx(Aw,{scope:l,placedSide:te,onArrowChange:V,arrowX:Y,arrowY:C,shouldHideArrow:L,children:d.jsx(xr.div,{"data-side":te,"data-align":fe,...A,ref:$,style:{...A.style,animation:H?void 0:"none"}})})})});O0.displayName=Wf;var E0="PopperArrow",Cw={top:"bottom",right:"left",bottom:"top",left:"right"},T0=R.forwardRef(function(r,l){const{__scopePopper:s,...u}=r,f=_w(E0,s),h=Cw[f.placedSide];return d.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:d.jsx(Ew,{...u,ref:l,style:{...u.style,display:"block"}})})});T0.displayName=E0;function Rw(n){return n!==null}var Mw=n=>({name:"transformOrigin",options:n,fn(r){const{placement:l,rects:s,middlewareData:u}=r,h=u.arrow?.centerOffset!==0,y=h?0:n.arrowWidth,m=h?0:n.arrowHeight,[v,x]=A0(l),g={start:"0%",center:"50%",end:"100%"}[x],j=(u.arrow?.x??0)+y/2,O=(u.arrow?.y??0)+m/2;let _="",A="";return v==="bottom"?(_=h?g:`${j}px`,A=`${-m}px`):v==="top"?(_=h?g:`${j}px`,A=`${s.floating.height+m}px`):v==="right"?(_=`${-m}px`,A=h?g:`${O}px`):v==="left"&&(_=`${s.floating.width+m}px`,A=h?g:`${O}px`),{data:{x:_,y:A}}}});function A0(n){const[r,l="center"]=n.split("-");return[r,l]}var Nw=w0,zw=O0,Dw=T0;function Uw(n,r){return R.useReducer((l,s)=>r[l][s]??l,n)}var _0=n=>{const{present:r,children:l}=n,s=kw(r),u=typeof l=="function"?l({present:s.isPresent}):R.Children.only(l),f=br(s.ref,qw(u));return typeof l=="function"||s.isPresent?R.cloneElement(u,{ref:f}):null};_0.displayName="Presence";function kw(n){const[r,l]=R.useState(),s=R.useRef(null),u=R.useRef(n),f=R.useRef("none"),h=n?"mounted":"unmounted",[y,m]=Uw(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R.useEffect(()=>{const v=no(s.current);f.current=y==="mounted"?v:"none"},[y]),Al(()=>{const v=s.current,x=u.current;if(x!==n){const j=f.current,O=no(v);n?m("MOUNT"):O==="none"||v?.display==="none"?m("UNMOUNT"):m(x&&j!==O?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,m]),Al(()=>{if(r){let v;const x=r.ownerDocument.defaultView??window,g=O=>{const A=no(s.current).includes(CSS.escape(O.animationName));if(O.target===r&&A&&(m("ANIMATION_END"),!u.current)){const G=r.style.animationFillMode;r.style.animationFillMode="forwards",v=x.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=G)})}},j=O=>{O.target===r&&(f.current=no(s.current))};return r.addEventListener("animationstart",j),r.addEventListener("animationcancel",g),r.addEventListener("animationend",g),()=>{x.clearTimeout(v),r.removeEventListener("animationstart",j),r.removeEventListener("animationcancel",g),r.removeEventListener("animationend",g)}}else m("ANIMATION_END")},[r,m]),{isPresent:["mounted","unmountSuspended"].includes(y),ref:R.useCallback(v=>{s.current=v?getComputedStyle(v):null,l(v)},[])}}function no(n){return n?.animationName||"none"}function qw(n){let r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?n.ref:(r=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var Hw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Lw="VisuallyHidden",C0=R.forwardRef((n,r)=>d.jsx(xr.span,{...n,ref:r,style:{...Hw,...n.style}}));C0.displayName=Lw;var Bw=C0,[_o]=t0("Tooltip",[x0]),ed=x0(),R0="TooltipProvider",Qw=700,Yy="tooltip.open",[Yw,M0]=_o(R0),N0=n=>{const{__scopeTooltip:r,delayDuration:l=Qw,skipDelayDuration:s=300,disableHoverableContent:u=!1,children:f}=n,h=R.useRef(!0),y=R.useRef(!1),m=R.useRef(0);return R.useEffect(()=>{const v=m.current;return()=>window.clearTimeout(v)},[]),d.jsx(Yw,{scope:r,isOpenDelayedRef:h,delayDuration:l,onOpen:R.useCallback(()=>{window.clearTimeout(m.current),h.current=!1},[]),onClose:R.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>h.current=!0,s)},[s]),isPointerInTransitRef:y,onPointerInTransitChange:R.useCallback(v=>{y.current=v},[]),disableHoverableContent:u,children:f})};N0.displayName=R0;var z0="Tooltip",[AE,Co]=_o(z0),Nf="TooltipTrigger",Gw=R.forwardRef((n,r)=>{const{__scopeTooltip:l,...s}=n,u=Co(Nf,l),f=M0(Nf,l),h=ed(l),y=R.useRef(null),m=br(r,y,u.onTriggerChange),v=R.useRef(!1),x=R.useRef(!1),g=R.useCallback(()=>v.current=!1,[]);return R.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),d.jsx(Nw,{asChild:!0,...h,children:d.jsx(xr.button,{"aria-describedby":u.open?u.contentId:void 0,"data-state":u.stateAttribute,...s,ref:m,onPointerMove:In(n.onPointerMove,j=>{j.pointerType!=="touch"&&!x.current&&!f.isPointerInTransitRef.current&&(u.onTriggerEnter(),x.current=!0)}),onPointerLeave:In(n.onPointerLeave,()=>{u.onTriggerLeave(),x.current=!1}),onPointerDown:In(n.onPointerDown,()=>{u.open&&u.onClose(),v.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:In(n.onFocus,()=>{v.current||u.onOpen()}),onBlur:In(n.onBlur,u.onClose),onClick:In(n.onClick,u.onClose)})})});Gw.displayName=Nf;var Pw="TooltipPortal",[_E,Vw]=_o(Pw,{forceMount:void 0}),yi="TooltipContent",Xw=R.forwardRef((n,r)=>{const l=Vw(yi,n.__scopeTooltip),{forceMount:s=l.forceMount,side:u="top",...f}=n,h=Co(yi,n.__scopeTooltip);return d.jsx(_0,{present:s||h.open,children:h.disableHoverableContent?d.jsx(D0,{side:u,...f,ref:r}):d.jsx(Kw,{side:u,...f,ref:r})})}),Kw=R.forwardRef((n,r)=>{const l=Co(yi,n.__scopeTooltip),s=M0(yi,n.__scopeTooltip),u=R.useRef(null),f=br(r,u),[h,y]=R.useState(null),{trigger:m,onClose:v}=l,x=u.current,{onPointerInTransitChange:g}=s,j=R.useCallback(()=>{y(null),g(!1)},[g]),O=R.useCallback((_,A)=>{const G=_.currentTarget,B={x:_.clientX,y:_.clientY},I=$w(B,G.getBoundingClientRect()),$=Ww(B,I),re=eO(A.getBoundingClientRect()),V=nO([...$,...re]);y(V),g(!0)},[g]);return R.useEffect(()=>()=>j(),[j]),R.useEffect(()=>{if(m&&x){const _=G=>O(G,x),A=G=>O(G,m);return m.addEventListener("pointerleave",_),x.addEventListener("pointerleave",A),()=>{m.removeEventListener("pointerleave",_),x.removeEventListener("pointerleave",A)}}},[m,x,O,j]),R.useEffect(()=>{if(h){const _=A=>{const G=A.target,B={x:A.clientX,y:A.clientY},I=m?.contains(G)||x?.contains(G),$=!tO(B,h);I?j():$&&(j(),v())};return document.addEventListener("pointermove",_),()=>document.removeEventListener("pointermove",_)}},[m,x,h,v,j]),d.jsx(D0,{...n,ref:f})}),[Zw,Jw]=_o(z0,{isInside:!1}),Fw=ej("TooltipContent"),D0=R.forwardRef((n,r)=>{const{__scopeTooltip:l,children:s,"aria-label":u,onEscapeKeyDown:f,onPointerDownOutside:h,...y}=n,m=Co(yi,l),v=ed(l),{onClose:x}=m;return R.useEffect(()=>(document.addEventListener(Yy,x),()=>document.removeEventListener(Yy,x)),[x]),R.useEffect(()=>{if(m.trigger){const g=j=>{j.target?.contains(m.trigger)&&x()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[m.trigger,x]),d.jsx(r0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:g=>g.preventDefault(),onDismiss:x,children:d.jsxs(zw,{"data-state":m.stateAttribute,...v,...y,ref:r,style:{...y.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(Fw,{children:s}),d.jsx(Zw,{scope:l,isInside:!0,children:d.jsx(Bw,{id:m.contentId,role:"tooltip",children:u||s})})]})})});Xw.displayName=yi;var U0="TooltipArrow",Iw=R.forwardRef((n,r)=>{const{__scopeTooltip:l,...s}=n,u=ed(l);return Jw(U0,l).isInside?null:d.jsx(Dw,{...u,...s,ref:r})});Iw.displayName=U0;function $w(n,r){const l=Math.abs(r.top-n.y),s=Math.abs(r.bottom-n.y),u=Math.abs(r.right-n.x),f=Math.abs(r.left-n.x);switch(Math.min(l,s,u,f)){case f:return"left";case u:return"right";case l:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function Ww(n,r,l=5){const s=[];switch(r){case"top":s.push({x:n.x-l,y:n.y+l},{x:n.x+l,y:n.y+l});break;case"bottom":s.push({x:n.x-l,y:n.y-l},{x:n.x+l,y:n.y-l});break;case"left":s.push({x:n.x+l,y:n.y-l},{x:n.x+l,y:n.y+l});break;case"right":s.push({x:n.x-l,y:n.y-l},{x:n.x-l,y:n.y+l});break}return s}function eO(n){const{top:r,right:l,bottom:s,left:u}=n;return[{x:u,y:r},{x:l,y:r},{x:l,y:s},{x:u,y:s}]}function tO(n,r){const{x:l,y:s}=n;let u=!1;for(let f=0,h=r.length-1;fs!=j>s&&l<(g-v)*(s-x)/(j-x)+v&&(u=!u)}return u}function nO(n){const r=n.slice();return r.sort((l,s)=>l.xs.x?1:l.ys.y?1:0),aO(r)}function aO(n){if(n.length<=1)return n.slice();const r=[];for(let s=0;s=2;){const f=r[r.length-1],h=r[r.length-2];if((f.x-h.x)*(u.y-h.y)>=(f.y-h.y)*(u.x-h.x))r.pop();else break}r.push(u)}r.pop();const l=[];for(let s=n.length-1;s>=0;s--){const u=n[s];for(;l.length>=2;){const f=l[l.length-1],h=l[l.length-2];if((f.x-h.x)*(u.y-h.y)>=(f.y-h.y)*(u.x-h.x))l.pop();else break}l.push(u)}return l.pop(),r.length===1&&l.length===1&&r[0].x===l[0].x&&r[0].y===l[0].y?r:r.concat(l)}var rO=N0;function k0(n){var r,l,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(r=0;r{const r=oO(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:h=>{const y=h.split(td);return y[0]===""&&y.length!==1&&y.shift(),q0(y,r)||sO(h)},getConflictingClassGroupIds:(h,y)=>{const m=l[h]||[];return y&&s[h]?[...m,...s[h]]:m}}},q0=(n,r)=>{if(n.length===0)return r.classGroupId;const l=n[0],s=r.nextPart.get(l),u=s?q0(n.slice(1),s):void 0;if(u)return u;if(r.validators.length===0)return;const f=n.join(td);return r.validators.find(({validator:h})=>h(f))?.classGroupId},Gy=/^\[(.+)\]$/,sO=n=>{if(Gy.test(n)){const r=Gy.exec(n)[1],l=r?.substring(0,r.indexOf(":"));if(l)return"arbitrary.."+l}},oO=n=>{const{theme:r,classGroups:l}=n,s={nextPart:new Map,validators:[]};for(const u in l)zf(l[u],s,u,r);return s},zf=(n,r,l,s)=>{n.forEach(u=>{if(typeof u=="string"){const f=u===""?r:Py(r,u);f.classGroupId=l;return}if(typeof u=="function"){if(uO(u)){zf(u(s),r,l,s);return}r.validators.push({validator:u,classGroupId:l});return}Object.entries(u).forEach(([f,h])=>{zf(h,Py(r,f),l,s)})})},Py=(n,r)=>{let l=n;return r.split(td).forEach(s=>{l.nextPart.has(s)||l.nextPart.set(s,{nextPart:new Map,validators:[]}),l=l.nextPart.get(s)}),l},uO=n=>n.isThemeGetter,cO=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,l=new Map,s=new Map;const u=(f,h)=>{l.set(f,h),r++,r>n&&(r=0,s=l,l=new Map)};return{get(f){let h=l.get(f);if(h!==void 0)return h;if((h=s.get(f))!==void 0)return u(f,h),h},set(f,h){l.has(f)?l.set(f,h):u(f,h)}}},Df="!",Uf=":",fO=Uf.length,dO=n=>{const{prefix:r,experimentalParseClassName:l}=n;let s=u=>{const f=[];let h=0,y=0,m=0,v;for(let _=0;_m?v-m:void 0;return{modifiers:f,hasImportantModifier:j,baseClassName:g,maybePostfixModifierPosition:O}};if(r){const u=r+Uf,f=s;s=h=>h.startsWith(u)?f(h.substring(u.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(l){const u=s;s=f=>l({className:f,parseClassName:u})}return s},hO=n=>n.endsWith(Df)?n.substring(0,n.length-1):n.startsWith(Df)?n.substring(1):n,mO=n=>{const r=Object.fromEntries(n.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const u=[];let f=[];return s.forEach(h=>{h[0]==="["||r[h]?(u.push(...f.sort(),h),f=[]):f.push(h)}),u.push(...f.sort()),u}},pO=n=>({cache:cO(n.cacheSize),parseClassName:dO(n),sortModifiers:mO(n),...lO(n)}),yO=/\s+/,vO=(n,r)=>{const{parseClassName:l,getClassGroupId:s,getConflictingClassGroupIds:u,sortModifiers:f}=r,h=[],y=n.trim().split(yO);let m="";for(let v=y.length-1;v>=0;v-=1){const x=y[v],{isExternal:g,modifiers:j,hasImportantModifier:O,baseClassName:_,maybePostfixModifierPosition:A}=l(x);if(g){m=x+(m.length>0?" "+m:m);continue}let G=!!A,B=s(G?_.substring(0,A):_);if(!B){if(!G){m=x+(m.length>0?" "+m:m);continue}if(B=s(_),!B){m=x+(m.length>0?" "+m:m);continue}G=!1}const I=f(j).join(":"),$=O?I+Df:I,re=$+B;if(h.includes(re))continue;h.push(re);const V=u(B,G);for(let K=0;K0?" "+m:m)}return m};function gO(){let n=0,r,l,s="";for(;n{if(typeof n=="string")return n;let r,l="";for(let s=0;sg(x),n());return l=pO(v),s=l.cache.get,u=l.cache.set,f=y,y(m)}function y(m){const v=s(m);if(v)return v;const x=vO(m,l);return u(m,x),x}return function(){return f(gO.apply(null,arguments))}}const it=n=>{const r=l=>l[n]||[];return r.isThemeGetter=!0,r},L0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,B0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xO=/^\d+\/\d+$/,SO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jO=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,wO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,OO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,EO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ci=n=>xO.test(n),we=n=>!!n&&!Number.isNaN(Number(n)),Ma=n=>!!n&&Number.isInteger(Number(n)),af=n=>n.endsWith("%")&&we(n.slice(0,-1)),Fn=n=>SO.test(n),TO=()=>!0,AO=n=>jO.test(n)&&!wO.test(n),Q0=()=>!1,_O=n=>OO.test(n),CO=n=>EO.test(n),RO=n=>!he(n)&&!me(n),MO=n=>bi(n,P0,Q0),he=n=>L0.test(n),ur=n=>bi(n,V0,AO),rf=n=>bi(n,kO,we),Vy=n=>bi(n,Y0,Q0),NO=n=>bi(n,G0,CO),ao=n=>bi(n,X0,_O),me=n=>B0.test(n),gl=n=>xi(n,V0),zO=n=>xi(n,qO),Xy=n=>xi(n,Y0),DO=n=>xi(n,P0),UO=n=>xi(n,G0),ro=n=>xi(n,X0,!0),bi=(n,r,l)=>{const s=L0.exec(n);return s?s[1]?r(s[1]):l(s[2]):!1},xi=(n,r,l=!1)=>{const s=B0.exec(n);return s?s[1]?r(s[1]):l:!1},Y0=n=>n==="position"||n==="percentage",G0=n=>n==="image"||n==="url",P0=n=>n==="length"||n==="size"||n==="bg-size",V0=n=>n==="length",kO=n=>n==="number",qO=n=>n==="family-name",X0=n=>n==="shadow",HO=()=>{const n=it("color"),r=it("font"),l=it("text"),s=it("font-weight"),u=it("tracking"),f=it("leading"),h=it("breakpoint"),y=it("container"),m=it("spacing"),v=it("radius"),x=it("shadow"),g=it("inset-shadow"),j=it("text-shadow"),O=it("drop-shadow"),_=it("blur"),A=it("perspective"),G=it("aspect"),B=it("ease"),I=it("animate"),$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],re=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...re(),me,he],K=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],q=()=>[me,he,m],W=()=>[ci,"full","auto",...q()],ne=()=>[Ma,"none","subgrid",me,he],F=()=>["auto",{span:["full",Ma,me,he]},Ma,me,he],ee=()=>[Ma,"auto",me,he],le=()=>["auto","min","max","fr",me,he],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],E=()=>["auto",...q()],H=()=>[ci,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],z=()=>[n,me,he],te=()=>[...re(),Xy,Vy,{position:[me,he]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",DO,MO,{size:[me,he]}],Y=()=>[af,gl,ur],C=()=>["","none","full",v,me,he],L=()=>["",we,gl,ur],J=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>[we,af,Xy,Vy],ve=()=>["","none",_,me,he],Oe=()=>["none",we,me,he],Je=()=>["none",we,me,he],ut=()=>[we,me,he],We=()=>[ci,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fn],breakpoint:[Fn],color:[TO],container:[Fn],"drop-shadow":[Fn],ease:["in","out","in-out"],font:[RO],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fn],shadow:[Fn],spacing:["px",we],text:[Fn],"text-shadow":[Fn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ci,he,me,G]}],container:["container"],columns:[{columns:[we,he,me,y]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:V()}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[Ma,"auto",me,he]}],basis:[{basis:[ci,"full","auto",y,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,ci,"auto","initial","none",he]}],grow:[{grow:["",we,me,he]}],shrink:[{shrink:["",we,me,he]}],order:[{order:[Ma,"first","last","none",me,he]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[y,"screen",...H()]}],"min-w":[{"min-w":[y,"screen","none",...H()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[h]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",l,gl,ur]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,me,rf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",af,he]}],"font-family":[{font:[zO,he,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[u,me,he]}],"line-clamp":[{"line-clamp":[we,"none",me,rf]}],leading:[{leading:[f,...q()]}],"list-image":[{"list-image":["none",me,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[we,"from-font","auto",me,ur]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[we,"auto",me,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ma,me,he],radial:["",me,he],conic:[Ma,me,he]},UO,NO]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:C()}],"rounded-s":[{"rounded-s":C()}],"rounded-e":[{"rounded-e":C()}],"rounded-t":[{"rounded-t":C()}],"rounded-r":[{"rounded-r":C()}],"rounded-b":[{"rounded-b":C()}],"rounded-l":[{"rounded-l":C()}],"rounded-ss":[{"rounded-ss":C()}],"rounded-se":[{"rounded-se":C()}],"rounded-ee":[{"rounded-ee":C()}],"rounded-es":[{"rounded-es":C()}],"rounded-tl":[{"rounded-tl":C()}],"rounded-tr":[{"rounded-tr":C()}],"rounded-br":[{"rounded-br":C()}],"rounded-bl":[{"rounded-bl":C()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[we,me,he]}],"outline-w":[{outline:["",we,gl,ur]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",x,ro,ao]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",g,ro,ao]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[we,ur]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",j,ro,ao]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[we,me,he]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[we]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[me,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":re()}],"mask-image-conic-pos":[{"mask-conic":[we]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,he]}],filter:[{filter:["","none",me,he]}],blur:[{blur:ve()}],brightness:[{brightness:[we,me,he]}],contrast:[{contrast:[we,me,he]}],"drop-shadow":[{"drop-shadow":["","none",O,ro,ao]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",we,me,he]}],"hue-rotate":[{"hue-rotate":[we,me,he]}],invert:[{invert:["",we,me,he]}],saturate:[{saturate:[we,me,he]}],sepia:[{sepia:["",we,me,he]}],"backdrop-filter":[{"backdrop-filter":["","none",me,he]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[we,me,he]}],"backdrop-contrast":[{"backdrop-contrast":[we,me,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,me,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,me,he]}],"backdrop-invert":[{"backdrop-invert":["",we,me,he]}],"backdrop-opacity":[{"backdrop-opacity":[we,me,he]}],"backdrop-saturate":[{"backdrop-saturate":[we,me,he]}],"backdrop-sepia":[{"backdrop-sepia":["",we,me,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",me,he]}],ease:[{ease:["linear","initial",B,me,he]}],delay:[{delay:[we,me,he]}],animate:[{animate:["none",I,me,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,me,he]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:Je()}],"scale-x":[{"scale-x":Je()}],"scale-y":[{"scale-y":Je()}],"scale-z":[{"scale-z":Je()}],"scale-3d":["scale-3d"],skew:[{skew:ut()}],"skew-x":[{"skew-x":ut()}],"skew-y":[{"skew-y":ut()}],transform:[{transform:[me,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:We()}],"translate-x":[{"translate-x":We()}],"translate-y":[{"translate-y":We()}],"translate-z":[{"translate-z":We()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,he]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[we,gl,ur,rf]}],stroke:[{stroke:["none",...z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},LO=bO(HO);function BO(...n){return LO(iO(n))}function QO({delayDuration:n=0,...r}){return d.jsx(rO,{"data-slot":"tooltip-provider",delayDuration:n,...r})}/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const YO=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),K0=(...n)=>n.filter((r,l,s)=>!!r&&s.indexOf(r)===l).join(" ");/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var GO={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"};/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const PO=R.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:u="",children:f,iconNode:h,...y},m)=>R.createElement("svg",{ref:m,...GO,width:r,height:r,stroke:n,strokeWidth:s?Number(l)*24/Number(r):l,className:K0("lucide",u),...y},[...h.map(([v,x])=>R.createElement(v,x)),...Array.isArray(f)?f:[f]]));/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Be=(n,r)=>{const l=R.forwardRef(({className:s,...u},f)=>R.createElement(PO,{ref:f,iconNode:r,className:K0(`lucide-${YO(n)}`,s),...u}));return l.displayName=`${n}`,l};/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nd=Be("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dr=Be("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const An=Be("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const VO=Be("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const XO=Be("BookOpenCheck",[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const KO=Be("BriefcaseBusiness",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ro=Be("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Z0=Be("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wn=Be("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ZO=Be("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const J0=Be("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const F0=Be("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const I0=Be("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const JO=Be("FileBadge2",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m14 12.5 1 5.5-3-1-3 1 1-5.5",key:"14xlky"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const FO=Be("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const IO=Be("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $O=Be("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $0=Be("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const WO=Be("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const W0=Be("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const eE=Be("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pr=Be("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tE=Be("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Mo=Be("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nE=Be("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ul=Be("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);/** * @license lucide-react v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const eg=Be("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);class aE extends R.Component{constructor(r){super(r),this.state={hasError:!1,error:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}render(){return this.state.hasError?d.jsx("div",{className:"flex items-center justify-center min-h-screen p-8 bg-background",children:d.jsxs("div",{className:"flex flex-col items-center w-full max-w-2xl p-8",children:[d.jsx(nE,{size:48,className:"text-destructive mb-6 flex-shrink-0"}),d.jsx("h2",{className:"text-xl mb-4",children:"An unexpected error occurred."}),d.jsx("div",{className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:d.jsx("pre",{className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),d.jsxs("button",{onClick:()=>window.location.reload(),className:BO("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[d.jsx(tE,{size:16}),"Reload Page"]})]})}):this.props.children}}const Ky="1800-4015",lf="from.kr-job@kr-job.com",rE="/default/?page=estimate&concept=a&service=facility";function iE(){return d.jsxs("aside",{className:"site-contact-bar","aria-label":"케이알잡 상담 연락처",children:[d.jsx("a",{className:"site-contact-label",href:rE,"aria-label":"케이알잡 견적서 문의 페이지로 이동",children:"KR-JOB 상담 연결"}),d.jsxs("a",{href:"tel:18004015","aria-label":`케이알잡 대표 상담 ${Ky}로 전화하기`,children:[d.jsx(pr,{size:15,"aria-hidden":"true"}),d.jsx("span",{children:"대표 상담"}),d.jsx("b",{children:Ky})]}),d.jsxs("a",{href:`mailto:${lf}`,"aria-label":`케이알잡 이메일 ${lf}로 메일 보내기`,children:[d.jsx($0,{size:15,"aria-hidden":"true"}),d.jsx("span",{children:"이메일"}),d.jsx("b",{children:lf})]})]})}const lE=R.createContext(void 0);function sE({children:n,defaultTheme:r="light",switchable:l=!1}){const[s,u]=R.useState(()=>l&&localStorage.getItem("theme")||r);R.useEffect(()=>{const h=document.documentElement;s==="dark"?h.classList.add("dark"):h.classList.remove("dark"),l&&localStorage.setItem("theme",s)},[s,l]);const f=l?()=>{u(h=>h==="light"?"dark":"light")}:void 0;return d.jsx(lE.Provider,{value:{theme:s,toggleTheme:f,switchable:l},children:n})}const oE={facility:{label:"건물종합관리",quoteUrl:"http://krjob5.cafe24.com/default/contact/page02.php"},outsourcing:{label:"단·정기 인력운영",quoteUrl:"http://www.kr-job.com/default/contact/page01.php"},popup:{label:"팝업·매장 행사",quoteUrl:"http://www.kr-job.com/default/contact/page01.php"}};function uE(n,r,l){return{add3:n.trim(),add5:r.trim(),add7:l}}const sf=[{id:"facility",label:"건물종합관리",service:"facility",facilityHint:"예: 오피스, 상업시설, 호텔, 병원",scopeHint:"예: 시설·보안·미화·주차 운영 범위",prep:["관리 대상 공간과 운영 시간","필요 관리 인력과 투입일","시설·보안·미화의 책임 범위","안전·출입·위생 기준"]},{id:"production",label:"생산·물류",service:"outsourcing",facilityHint:"예: 공장, 물류센터, 산업단지",scopeHint:"예: 5명, 주간 2교대, 포장·검수",prep:["근무조·작업 시간","필요 인원과 투입일","포장·검수 등 업무 범위","위생·안전 기준"]},{id:"office",label:"사무·행정",service:"outsourcing",facilityHint:"예: 본사, 지점, 사무실",scopeHint:"예: 사무보조 2명, 평일 주간",prep:["필요 직무와 업무 시간","필요 인원과 시작 시점","문서·고객 응대 등 업무 범위","업무 시스템·보안 기준"]},{id:"hotel",label:"호텔·리조트",service:"outsourcing",facilityHint:"예: 호텔, 리조트, 숙박시설",scopeHint:"예: 하우스키퍼 8명, 객실 정비",prep:["객실·서비스 운영 시간","필요 역할과 투입 인원","객실 정비·고객 응대 범위","서비스·위생 기준"]},{id:"golf",label:"골프장",service:"outsourcing",facilityHint:"예: 골프장, 클럽하우스",scopeHint:"예: 경기보조·코스관리 인력 범위",prep:["운영 시즌과 근무 시간","필요 인력과 투입일","고객 응대·코스 운영 범위","안전·복장 기준"]},{id:"info",label:"안내·인포",service:"outsourcing",facilityHint:"예: 전시장, 로비, 안내데스크",scopeHint:"예: 안내데스크 3명, 주말 포함",prep:["운영 시간과 고객 동선","필요 인원과 투입일","안내·접수·고객 응대 범위","복장·서비스 기준"]},{id:"headhunting",label:"헤드헌팅",service:"outsourcing",facilityHint:"예: 본사, 사업부, 연구소",scopeHint:"예: 채용 직무·경력·채용 인원",prep:["필요 직무와 경력 기준","채용 인원과 목표 시점","핵심 역할과 처우 범위","검증·추천 기준"]},{id:"popup",label:"팝업·매장 행사",service:"popup",facilityHint:"예: 백화점, 복합몰, 팝업 공간",scopeHint:"예: 행사요원 6명, 7일 운영",prep:["행사 일정과 운영 시간","필요 인원과 투입일","판매·안내·대기열 관리 범위","브랜드·안전 기준"]},{id:"other",label:"기타 현장",service:"outsourcing",facilityHint:"예: 현장 또는 사업장 유형",scopeHint:"예: 필요 인원, 운영 기간, 업무 범위",prep:["운영 장소와 업무 시간","필요 인원과 시작 시점","주요 업무와 책임 범위","현장 안전·준비 기준"]}],Zy={facility:"facility",outsourcing:"production",popup:"popup"};function Jy(n){return n==="outsourcing"||n==="popup"?n:"facility"}function ad({variant:n,defaultService:r="facility"}){const l=Jy(r),[s,u]=R.useState(Zy[l]),[f,h]=R.useState(""),[y,m]=R.useState(""),[v,x]=R.useState(""),[g,j]=R.useState(""),[O,_]=R.useState(""),[A,G]=R.useState(""),[B,I]=R.useState(""),[$,re]=R.useState(""),[V,K]=R.useState(""),[M,q]=R.useState(""),[W,ne]=R.useState(!1),[F,ee]=R.useState({}),[le,ie]=R.useState(!1),[ue,E]=R.useState(""),[H,z]=R.useState(!1);R.useEffect(()=>{u(Zy[Jy(r)])},[r]);const te=R.useMemo(()=>sf.find(C=>C.id===s)??sf[0],[s]),fe=oE[te.service],S=C=>ee(L=>({...L,[C]:""})),Y=C=>{C.preventDefault();const L={};if(f.trim()||(L.company="회사명 또는 건물명을 입력해 주세요."),y.trim()||(L.manager="담당자 성함을 입력해 주세요."),g.trim()||(L.phone="연락처를 입력해 주세요."),O.trim()||(L.email="이메일을 입력해 주세요."),A.trim()||(L.address="운영 주소를 입력해 주세요."),$.trim()||(L.scope="필요 인원 또는 운영 범위를 입력해 주세요."),V||(L.startWindow="희망 시작 시점을 선택해 주세요."),W||(L.agreed="작성 내용 확인 및 상담 안내 동의가 필요합니다."),ee(L),Object.keys(L).length>0)return;ie(!0),E(""),z(!1);const J=document.createElement("iframe");J.title="카페24 견적문의 전송",J.src="/default/contact/page01.php",J.style.cssText="position:fixed;width:1px;height:1px;left:-9999px;border:0";let ce=!1;const oe=window.setTimeout(()=>{J.remove(),ie(!1),E("전송 시간이 초과되었습니다. 잠시 후 다시 시도해 주세요.")},2e4);J.onerror=()=>{window.clearTimeout(oe),J.remove(),ie(!1),E("카페24 견적문의 페이지를 불러오지 못했습니다.")},J.onload=()=>{if(ce){window.clearTimeout(oe),J.remove(),ie(!1),z(!0);return}try{const ve=J.contentDocument,Oe=J.contentWindow,Je=ve?.forms.namedItem("com_formmail");if(!Je||!Oe?.com_formmail_formCheck)throw new Error("카페24 견적문의 기능을 찾지 못했습니다.");const ut={category:"0",name:f.trim(),add2:"협의",add1:V,description1:B.trim()||"상담 후 협의",add4:"상담 후 협의",add8:[`담당자: ${y.trim()}`,`직함: ${v.trim()||"미입력"}`,`현장 분야: ${te.label}`,`필요 인원 또는 범위: ${$.trim()}`,`추가 요청: ${M.trim()||"없음"}`].join(` `),add6:g.trim(),receiver_email:O.trim(),...uE(A,f,fe.label)};Object.entries(ut).forEach(([rn,Ut])=>{const aa=Je.elements.namedItem(rn);aa&&(aa.value=Ut)});const We=Je.elements.namedItem("com_formmail_check_safe");We&&(We.checked=!0),ce=!0,Oe.com_formmail_formCheck()}catch(ve){window.clearTimeout(oe),J.remove(),ie(!1),E(ve instanceof Error?ve.message:"견적 문의를 전송하지 못했습니다.")}},document.body.appendChild(J)};return d.jsxs("form",{className:`inquiry-form inquiry-${n} inquiry-document`,onSubmit:Y,noValidate:!0,children:[d.jsxs("div",{className:"inquiry-document-heading",children:[d.jsx("div",{className:"inquiry-heading-icon",children:d.jsx(F0,{size:20})}),d.jsxs("div",{children:[d.jsx("p",{children:"KR-JOB CONSULTATION BRIEF"}),d.jsx("h3",{children:"현장 조건을 먼저 정리해 주세요."}),d.jsx("span",{children:"알고 계신 범위만 작성해도 됩니다. 상담 시 케이알잡이 필요한 운영 조건을 함께 확인합니다."})]})]}),d.jsxs("div",{className:"inquiry-stage-track","aria-label":"상담 브리프 작성 순서",children:[d.jsxs("div",{className:"is-current",children:[d.jsx("span",{children:"01"}),d.jsx("b",{children:"운영 유형"}),d.jsx("small",{children:"현장 분야 선택"})]}),d.jsxs("div",{children:[d.jsx("span",{children:"02"}),d.jsx("b",{children:"운영 조건"}),d.jsx("small",{children:"주소·시설·범위·일정"})]}),d.jsxs("div",{children:[d.jsx("span",{children:"03"}),d.jsx("b",{children:"담당자 정보"}),d.jsx("small",{children:"회사·담당자·연락처"})]})]}),d.jsx("div",{className:"inquiry-field-tabs",role:"tablist","aria-label":"상담 현장 분야 선택",children:sf.map(C=>d.jsxs("button",{type:"button",role:"tab","aria-selected":C.id===te.id,className:C.id===te.id?"is-selected":"",onClick:()=>u(C.id),children:[C.label,C.id===te.id&&d.jsx(Z0,{size:14,"aria-hidden":"true"})]},C.id))}),d.jsxs("section",{className:"inquiry-prep-card","aria-labelledby":`prep-${te.id}`,children:[d.jsxs("div",{className:"inquiry-prep-head",children:[d.jsx("span",{children:"CONSULTATION PREP"}),d.jsxs("h4",{id:`prep-${te.id}`,children:[te.label," 상담 브리프"]})]}),d.jsx("p",{children:"아래 항목을 알고 계시면 현장 조건을 더 빠르게 파악할 수 있습니다."}),d.jsx("div",{className:"inquiry-prep-list",children:te.prep.map((C,L)=>d.jsxs("span",{children:[d.jsxs("b",{children:["0",L+1]}),C]},C))}),d.jsx("small",{children:"모두 확정되지 않아도 괜찮습니다. 현재 알고 계신 범위만 남겨 주세요."})]}),d.jsxs("div",{className:"inquiry-form-grid",children:[d.jsxs("label",{children:[d.jsxs("span",{children:["03 / 회사명 또는 건물명 ",d.jsx("i",{children:"*"})]}),d.jsx("input",{className:F.company?"has-error":"",value:f,onChange:C=>{h(C.target.value),S("company")},placeholder:"회사명 또는 건물명"}),F.company&&d.jsx("small",{className:"form-error",children:F.company})]}),d.jsxs("label",{children:[d.jsxs("span",{children:["04 / 담당자 / 직함 ",d.jsx("i",{children:"*"})]}),d.jsxs("div",{className:"inquiry-input-pair",children:[d.jsx("input",{className:F.manager?"has-error":"",value:y,onChange:C=>{m(C.target.value),S("manager")},placeholder:"담당자 성함"}),d.jsx("input",{value:v,onChange:C=>x(C.target.value),placeholder:"직함 (선택)"})]}),F.manager&&d.jsx("small",{className:"form-error",children:F.manager})]}),d.jsxs("label",{children:[d.jsxs("span",{children:["05 / 연락처 ",d.jsx("i",{children:"*"})]}),d.jsx("input",{className:F.phone?"has-error":"",type:"tel",value:g,onChange:C=>{j(C.target.value),S("phone")},placeholder:"010-0000-0000"}),F.phone&&d.jsx("small",{className:"form-error",children:F.phone})]}),d.jsxs("label",{children:[d.jsxs("span",{children:["06 / 이메일 ",d.jsx("i",{children:"*"})]}),d.jsx("input",{className:F.email?"has-error":"",type:"email",value:O,onChange:C=>{_(C.target.value),S("email")},placeholder:"name@company.com"}),F.email&&d.jsx("small",{className:"form-error",children:F.email})]}),d.jsxs("label",{children:[d.jsxs("span",{children:["07 / 주소 ",d.jsx("i",{children:"*"})]}),d.jsx("input",{className:F.address?"has-error":"",value:A,onChange:C=>{G(C.target.value),S("address")},placeholder:"예: 서울특별시 중구 세종대로"}),F.address&&d.jsx("small",{className:"form-error",children:F.address})]}),d.jsxs("label",{children:[d.jsx("span",{children:"08 / 시설 유형"}),d.jsx("input",{value:B,onChange:C=>I(C.target.value),placeholder:te.facilityHint})]}),d.jsxs("label",{children:[d.jsxs("span",{children:["09 / 필요 인원 또는 범위 ",d.jsx("i",{children:"*"})]}),d.jsx("input",{className:F.scope?"has-error":"",value:$,onChange:C=>{re(C.target.value),S("scope")},placeholder:te.scopeHint}),F.scope&&d.jsx("small",{className:"form-error",children:F.scope})]}),d.jsxs("fieldset",{className:`inquiry-start-window ${F.startWindow?"has-error":""}`,children:[d.jsxs("legend",{children:["10 / 희망 시작 시점 ",d.jsx("i",{children:"*"})]}),d.jsx("div",{children:["1주 이내","2주 이내","1개월 이내","일정 협의"].map(C=>d.jsx("button",{type:"button",className:V===C?"is-selected":"","aria-pressed":V===C,onClick:()=>{K(C),S("startWindow")},children:C},C))}),F.startWindow&&d.jsx("small",{className:"form-error",children:F.startWindow})]}),d.jsxs("label",{className:"inquiry-message",children:[d.jsx("span",{children:"11 / 추가 요청 사항"}),d.jsx("textarea",{value:M,onChange:C=>q(C.target.value),placeholder:"업무 시간, 필요 경력, 운영 기간, 현장 유의사항 등을 남겨 주세요."})]})]}),d.jsxs("div",{className:"inquiry-form-footer",children:[d.jsxs("div",{children:[d.jsxs("label",{className:"inquiry-consent",children:[d.jsx("input",{type:"checkbox",checked:W,onChange:C=>{ne(C.target.checked),S("agreed")}}),d.jsx("span",{children:"작성 내용 확인 및 공식 상담 접수 안내에 동의합니다."})]}),F.agreed&&d.jsx("small",{className:"form-error",children:F.agreed})]}),d.jsxs("button",{type:"submit",disabled:le,children:[le?"전송 중":"상담 후 협의"," ",d.jsx(An,{size:18})]})]}),d.jsx("p",{className:"inquiry-form-note",children:"입력 내용은 카페24 보안 전송을 통해 케이알잡 견적문의 수신함으로 전달됩니다."}),ue&&d.jsx("p",{className:"form-error",role:"alert",children:ue}),H&&d.jsx("p",{className:"inquiry-form-note",role:"status",children:"견적 문의가 정상적으로 접수되었습니다."})]})}const cE="/default/img/renewal/assets/krjob-official-logo.png";function Fy(n){return typeof window>"u"?null:new URLSearchParams(window.location.search).get(n)}function fE(){const n=Fy("concept")==="b"?"b":"a",r=Fy("service"),l=r==="outsourcing"||r==="popup"?r:"facility";return d.jsxs("div",{className:`estimate-page estimate-page-${n}`,children:[d.jsxs("header",{className:"estimate-header estimate-document-header",children:[d.jsx("a",{className:"estimate-logo",href:"/default/",children:d.jsx("img",{src:cE,alt:"kr-job 케이알잡"})}),d.jsxs("nav",{"aria-label":"견적 브리프 메뉴",children:[d.jsx("a",{href:"#krjob-operation",children:"회사·운영 소개"}),d.jsx("a",{href:"#quote-document",children:"상담 브리프"})]}),d.jsx("div",{children:d.jsxs("a",{href:"tel:18004015",children:[d.jsx(pr,{size:15}),"1800-4015"]})})]}),d.jsxs("main",{className:"estimate-document-shell",children:[d.jsxs("section",{className:"estimate-document-intro",id:"krjob-operation",children:[d.jsxs("div",{className:"estimate-document-copy",children:[d.jsx("p",{children:"KR-JOB / OPERATION DESK"}),d.jsxs("h1",{children:["현장을 이해한 뒤,",d.jsx("br",{}),d.jsx("strong",{children:"견적을 시작합니다."})]}),d.jsx("span",{children:"견적서만 쓰는 화면이 아니라, 현재 운영 상황을 함께 정리하는 상담 문서입니다."})]}),d.jsxs("div",{className:"estimate-operation-list","aria-label":"케이알잡 운영 분야",children:[d.jsxs("article",{children:[d.jsx(Ro,{size:21}),d.jsxs("div",{children:[d.jsx("b",{children:"건물종합관리"}),d.jsx("p",{children:"시설·보안·미화·주차 등 공간 운영 범위를 확인합니다."})]})]}),d.jsxs("article",{children:[d.jsx(Ul,{size:21}),d.jsxs("div",{children:[d.jsx("b",{children:"단·정기 인력운영"}),d.jsx("p",{children:"생산·물류·호텔·골프장·안내 현장에 필요한 역할을 정리합니다."})]})]}),d.jsxs("article",{children:[d.jsx(Mo,{size:21}),d.jsxs("div",{children:[d.jsx("b",{children:"팝업·매장 행사"}),d.jsx("p",{children:"행사 기간, 고객 동선, 운영 인력 범위를 확인합니다."})]})]})]}),d.jsxs("div",{className:"estimate-contact-note",children:[d.jsx("span",{children:"상담 가능 시간 · 평일 09:00–18:00 / 공휴일 휴무"}),d.jsxs("a",{href:"mailto:from.kr-job@kr-job.com",children:[d.jsx($0,{size:15}),"from.kr-job@kr-job.com"]})]})]}),d.jsxs("section",{className:"estimate-document-form",id:"quote-document","aria-labelledby":"quote-document-title",children:[d.jsxs("div",{className:"estimate-document-form-heading",children:[d.jsx("p",{children:"01 / CONSULTATION DOCUMENT"}),d.jsxs("h2",{id:"quote-document-title",children:["알고 계신 정보부터",d.jsx("br",{}),"차분히 남겨 주세요."]}),d.jsx("span",{children:"작성 후에는 입력 요약이 담긴 케이알잡 공식 상담 이메일 작성창으로 이어집니다."})]}),d.jsx(ad,{variant:n==="b"?"dark":"light",defaultService:l}),d.jsxs("a",{className:"estimate-back",href:n==="b"?"/default/?page=operations-map":"/default/",children:["홈페이지로 돌아가기 ",d.jsx(nd,{size:16})]})]})]})]})}const dE=[{index:"01",label:"HR · OUTSOURCING",title:"현장에 맞는 인력 운영",text:"생산·산업단지·물류·운송·호텔·유통 등 기업 현장에서 필요한 역할과 투입 시점을 함께 정리합니다.",icon:Ul},{index:"02",label:"FACILITY MANAGEMENT",title:"공간의 운영 범위를 관리",text:"시설·경비·보안·주차·미화·소독 등 건물 운영의 각 책임 범위를 상담하고 조율합니다.",icon:Ro},{index:"03",label:"POP-UP · RETAIL OPERATIONS",title:"행사 현장의 흐름을 준비",text:"팝업·매장 행사에서는 운영 인력, 고객 응대, 현장 동선을 현재 필요한 범위부터 정리합니다.",icon:Mo}];function tg({id:n="company-operation",tone:r="light"}){return d.jsxs("section",{className:`company-operations company-operations-${r}`,id:n,"aria-labelledby":`${n}-title`,children:[d.jsxs("div",{className:"company-operations-copy",children:[d.jsxs("p",{className:"company-operations-kicker",children:[d.jsx("span",{}),"ABOUT KR-JOB"]}),d.jsxs("h2",{id:`${n}-title`,children:["인력과 공간의 운영을",d.jsx("br",{}),d.jsx("strong",{children:"현장 조건부터 함께 봅니다."})]}),d.jsx("p",{className:"company-operations-lead",children:"케이알잡은 HR사업·아웃소싱·헤드헌팅·건물관리 사업을 기반으로, 기업 현장에서 필요한 인력 운영과 공간 관리의 접점을 상담합니다. 확정된 답을 먼저 제시하기보다, 운영 장소·역할·책임 범위·시작 시점을 차례로 확인합니다."}),d.jsxs("div",{className:"company-operations-meta",children:[d.jsx("span",{children:"01 / 운영 범위 확인"}),d.jsx("span",{children:"02 / 상담 브리프 작성"}),d.jsx("span",{children:"03 / 공식 상담 연결"})]}),d.jsxs("a",{href:"http://www.kr-job.com/",target:"_blank",rel:"noreferrer",className:"company-operations-source",children:["공식 사업 분야 보기 ",d.jsx(An,{size:16})]})]}),d.jsx("div",{className:"company-domain-list",children:dE.map(l=>{const s=l.icon;return d.jsxs("article",{children:[d.jsxs("div",{className:"company-domain-head",children:[d.jsx("span",{children:l.index}),d.jsx(s,{size:22,strokeWidth:1.5})]}),d.jsx("small",{children:l.label}),d.jsx("h3",{children:l.title}),d.jsx("p",{children:l.text})]},l.index)})})]})}const hE=[{label:"POLICY UPDATE",title:"2026년 하반기부터 달라지는 고용노동부 정책",description:"변경되는 고용노동부 소관 정책을 공식 자료로 확인할 수 있습니다.",source:"고용노동부 · 2026.06.30",href:"https://www.moel.go.kr/news/enews/report/enewsView.do?news_seq=19588",icon:$O},{label:"WORKPLACE BRIEF",title:"2026년 고용노동부 업무보고",description:"산업안전, 노동시장 격차, 고용안전망 관련 정책 방향을 안내합니다.",source:"고용노동부 · 2025.12.11",href:"https://www.moel.go.kr/news/enews/report/enewsView.do?news_seq=18725",icon:eE},{label:"OFFICIAL SERVICE",title:"고용24 제도·서비스 안내",description:"고용·노동 분야 제도와 공공 서비스를 고용24에서 이어서 확인하세요.",source:"고용24 · 고용노동부·한국고용정보원",href:"https://www.work24.go.kr/",icon:XO}];function ng({id:n="labor-news",tone:r="light"}){return d.jsxs("section",{className:`labor-policy-section labor-policy-${r}`,id:n,"aria-labelledby":`${n}-title`,children:[d.jsxs("div",{className:"labor-policy-heading",children:[d.jsxs("p",{className:"labor-policy-kicker",children:[d.jsx("span",{}),"WORK & POLICY DESK"]}),d.jsxs("h2",{id:`${n}-title`,children:["채용공고 대신,",d.jsx("br",{}),d.jsx("strong",{children:"일하는 현장에 필요한 정보."})]}),d.jsx("p",{children:"근로자와 사업주 모두에게 필요한 제도·정책 자료를 공식 출처로 연결합니다. 개별 적용 여부는 관련 기관의 최신 안내를 확인해 주세요."})]}),d.jsx("div",{className:"labor-policy-list",children:hE.map(l=>{const s=l.icon;return d.jsxs("a",{href:l.href,target:"_blank",rel:"noreferrer",className:"labor-policy-card",children:[d.jsxs("div",{className:"labor-policy-card-top",children:[d.jsx("span",{children:l.label}),d.jsx(s,{size:18,strokeWidth:1.6})]}),d.jsx("h3",{children:l.title}),d.jsx("p",{children:l.description}),d.jsxs("div",{className:"labor-policy-card-bottom",children:[d.jsx("small",{children:l.source}),d.jsx(An,{size:17})]})]},l.title)})})]})}const mE="/default/img/renewal/assets/krjob-official-logo.png",io=[{id:"facility",eyebrow:"01 / BUILDING CARE",label:"건물종합관리",description:"시설·보안·미화·주차의 운영 범위를 한 번에 정리합니다.",detail:"시설관리·경비·미화·주차·소독",thumbnail:"/default/img/renewal/assets/krjob-2026-facility-control-room.jpg",thumbnailAlt:"국내 상업 시설 관리실에서 운영 점검을 하는 한국인 시설관리 직원들",icon:Ro,quoteUrl:"http://krjob5.cafe24.com/default/contact/page02.php"},{id:"outsourcing",eyebrow:"02 / REGULAR OPERATIONS",label:"단·정기 인력운영",description:"생산·물류·호텔·골프장 현장에 필요한 인력을 운영 단위로 설계합니다.",detail:"아웃소싱·호텔 인포·하우스키퍼·골프장 인력",thumbnail:"/default/img/renewal/assets/krjob-2026-production-packing.jpg",thumbnailAlt:"국내 생산 현장에서 제품 포장 업무를 수행하는 한국인 생산 직원",icon:Ul,quoteUrl:"http://www.kr-job.com/default/contact/page01.php"},{id:"popup",eyebrow:"03 / POP-UP & RETAIL",label:"팝업·매장 행사",description:"오픈, 고객 응대, 매장 운영, 철수까지 행사 현장의 흐름을 관리합니다.",detail:"행사 인력·프로모터·매장 운영",thumbnail:"/default/img/renewal/assets/krjob-2026-popup-cosmetics.jpg",thumbnailAlt:"국내 화장품 팝업 행사에서 고객을 안내하는 한국인 운영 직원",icon:Mo,quoteUrl:"http://www.kr-job.com/default/contact/page01.php"}];function Iy({inverse:n=!1}){return d.jsx("a",{className:`kb-logo ${n?"kb-logo-inverse":""}`,href:"/default/","aria-label":"케이알잡 시안 A 홈",children:d.jsx("img",{src:mE,alt:"kr-job 케이알잡"})})}function pE(){const[n,r]=R.useState(!1),[l,s]=R.useState("facility"),[u,f]=R.useState("metro"),[h,y]=R.useState("one-week"),m=io.find(x=>x.id===l)??io[0],v=()=>r(!1);return d.jsxs("div",{className:"brief-page",children:[d.jsxs("header",{className:"brief-header",children:[d.jsxs("div",{className:"brief-header-inner",children:[d.jsx(Iy,{}),d.jsxs("nav",{className:"brief-nav","aria-label":"주요 메뉴",children:[d.jsx("a",{href:"#operation-intro",children:"회사·운영 소개"}),d.jsx("a",{href:"#scope",children:"운영 범위"}),d.jsx("a",{href:"#process",children:"상담 과정"}),d.jsx("a",{href:"/default/?page=recruitment",children:"채용센터"})]}),d.jsxs("div",{className:"brief-header-actions",children:[d.jsxs("a",{className:"brief-phone",href:"tel:18004015",children:[d.jsx(pr,{size:15}),"1800-4015"]}),d.jsxs("a",{className:"brief-quote-shortcut",href:"#inquiry",children:["운영 범위 문의하기 ",d.jsx(An,{size:16})]}),d.jsx("button",{className:"brief-menu-button",type:"button","aria-label":n?"메뉴 닫기":"메뉴 열기",onClick:()=>r(x=>!x),children:n?d.jsx(eg,{size:22}):d.jsx(W0,{size:23})})]})]}),n&&d.jsxs("nav",{className:"brief-mobile-nav","aria-label":"모바일 메뉴",children:[d.jsxs("a",{href:"#operation-intro",onClick:v,children:["회사·운영 소개 ",d.jsx(Wn,{size:17})]}),d.jsxs("a",{href:"#scope",onClick:v,children:["운영 범위 ",d.jsx(Wn,{size:17})]}),d.jsxs("a",{href:"#process",onClick:v,children:["상담 과정 ",d.jsx(Wn,{size:17})]}),d.jsxs("a",{href:"/default/?page=recruitment",onClick:v,children:["채용센터 ",d.jsx(Wn,{size:17})]}),d.jsxs("a",{href:"tel:18004015",onClick:v,children:["대표 상담 1800-4015 ",d.jsx(pr,{size:17})]})]})]}),d.jsxs("main",{children:[d.jsxs("section",{className:"brief-hero",id:"brief",children:[d.jsxs("div",{className:"brief-hero-copy",children:[d.jsxs("p",{className:"brief-eyebrow",children:[d.jsx("span",{}),"KR-JOB ESTIMATE BRIEF"]}),d.jsxs("h1",{children:["사람도 필요하고,",d.jsx("br",{}),"관리도 놓칠 수 없을 때."]}),d.jsx("p",{className:"brief-lead",children:"생산·물류·행사 인력부터 시설·보안·미화까지. 필요한 업무와 시작 시점을 알려주시면 됩니다."}),d.jsxs("div",{className:"brief-concept-note",children:[d.jsx("span",{children:"CONCEPT A"}),d.jsx("b",{children:"CLEAR BRIEF"}),d.jsxs("a",{href:"/default/?page=operations-map",children:["시안 B 보기 ",d.jsx(dr,{size:15})]})]})]}),d.jsxs("aside",{className:"estimate-brief","aria-label":"간편 견적 브리프",children:[d.jsxs("div",{className:"estimate-brief-head",children:[d.jsxs("div",{children:[d.jsx("span",{className:"brief-step-number",children:"01"}),d.jsx("p",{children:"QUICK ESTIMATE"})]}),d.jsx(F0,{size:24,strokeWidth:1.7})]}),d.jsxs("h2",{children:["필요한 운영을",d.jsx("br",{}),"선택해 주세요."]}),d.jsx("div",{className:"brief-option-list",role:"radiogroup","aria-label":"필요 서비스",children:io.map(x=>{const g=x.icon;return d.jsxs("button",{type:"button",role:"radio","aria-checked":l===x.id,className:l===x.id?"is-selected":"",onClick:()=>s(x.id),children:[d.jsx(g,{size:19,strokeWidth:1.8}),d.jsx("span",{children:x.label}),d.jsx(Z0,{size:17,className:"selection-check"})]},x.id)})}),d.jsxs("div",{className:"brief-mini-choices",children:[d.jsxs("div",{children:[d.jsxs("p",{children:[d.jsx(WO,{size:14}),"운영 장소"]}),d.jsxs("div",{className:"brief-chip-row",children:[d.jsx("button",{className:u==="metro"?"is-selected":"",type:"button",onClick:()=>f("metro"),children:"수도권"}),d.jsx("button",{className:u==="nationwide"?"is-selected":"",type:"button",onClick:()=>f("nationwide"),children:"그 외 지역"})]})]}),d.jsxs("div",{children:[d.jsxs("p",{children:[d.jsx(I0,{size:14}),"시작 시점"]}),d.jsxs("div",{className:"brief-chip-row",children:[d.jsx("button",{className:h==="one-week"?"is-selected":"",type:"button",onClick:()=>y("one-week"),children:"1주 이내"}),d.jsx("button",{className:h==="two-weeks"?"is-selected":"",type:"button",onClick:()=>y("two-weeks"),children:"2주 이내"}),d.jsx("button",{className:h==="one-month"?"is-selected":"",type:"button",onClick:()=>y("one-month"),children:"1개월 이내"}),d.jsx("button",{className:h==="plan"?"is-selected":"",type:"button",onClick:()=>y("plan"),children:"일정 협의"})]})]})]}),d.jsxs("a",{className:"brief-submit",href:`/default/?page=estimate&concept=a&service=${m.id}&location=${u}&start=${h}`,children:[d.jsxs("span",{children:[d.jsx("small",{children:m.detail}),"상담 브리프 작성"]}),d.jsx(An,{size:20})]}),d.jsx("p",{className:"brief-helper",children:"선택 내용은 이 화면에만 반영됩니다. 다음 단계에서 연락처와 세부 요청을 남겨 주세요."})]})]}),d.jsxs("section",{className:"work-photo-strip","aria-label":"케이알잡 주요 현장 업무",children:[d.jsx("figure",{children:d.jsx("img",{src:"/default/img/renewal/assets/krjob-2026-production-packing.jpg",alt:"국내 생산 현장에서 제품 포장 업무를 수행하는 한국인 생산 직원"})}),d.jsx("figure",{children:d.jsx("img",{src:"/default/img/renewal/assets/krjob-2026-popup-cosmetics.jpg",alt:"국내 화장품 팝업 행사에서 고객을 안내하는 한국인 운영 직원"})}),d.jsx("figure",{children:d.jsx("img",{src:"/default/img/renewal/assets/krjob-2026-modelhouse-cleaning.jpg",alt:"국내 모델하우스에서 세부 청소 업무를 수행하는 한국인 관리 직원"})})]}),d.jsx(tg,{id:"operation-intro",tone:"light"}),d.jsxs("section",{className:"brief-situation","aria-labelledby":"situation-title",children:[d.jsxs("div",{className:"section-index",children:[d.jsx("span",{children:"01"}),d.jsx("p",{children:"START WITH YOUR SITUATION"})]}),d.jsxs("div",{className:"brief-situation-title",children:[d.jsxs("h2",{id:"situation-title",children:["어떤 운영을",d.jsx("br",{}),"정리하고 계신가요?"]}),d.jsx("p",{children:"서비스 이름을 아는 것보다, 지금 비어 있는 운영을 말해 주는 것이 더 빠른 상담의 시작입니다."})]}),d.jsx("div",{className:"situation-cards",children:io.map(x=>{const g=x.icon;return d.jsxs("button",{className:l===x.id?"situation-card is-selected":"situation-card",type:"button",onClick:()=>{s(x.id),document.getElementById("brief")?.scrollIntoView({behavior:"smooth"})},children:[d.jsxs("div",{children:[d.jsx("span",{children:x.eyebrow}),d.jsx(g,{size:27,strokeWidth:1.45})]}),d.jsx("figure",{className:"situation-card-thumb",children:d.jsx("img",{src:x.thumbnail,alt:x.thumbnailAlt})}),d.jsx("h3",{children:x.label}),d.jsx("p",{children:x.description}),d.jsxs("b",{children:["이 범위로 브리프 작성 ",d.jsx(dr,{size:16})]})]},x.id)})})]}),d.jsxs("section",{className:"brief-field-note","aria-labelledby":"field-note-title",children:[d.jsxs("figure",{className:"brief-field-photo",children:[d.jsx("img",{src:"/default/img/renewal/assets/krjob-2026-hotel-golf-service.jpg",alt:"국내 호텔 안내와 골프장 고객 응대 준비를 하는 한국인 서비스 직원"}),d.jsx("figcaption",{children:"HOTEL & GOLF SERVICE · DOMESTIC FIELD"})]}),d.jsxs("div",{className:"brief-field-copy",children:[d.jsxs("p",{className:"brief-eyebrow",children:[d.jsx("span",{}),"FIELD NOTE"]}),d.jsxs("h2",{id:"field-note-title",children:["고객 경험은",d.jsx("br",{}),d.jsx("strong",{children:"현장 인력에서"})," 시작됩니다."]}),d.jsx("p",{children:"호텔 인포, 하우스키퍼, 골프장 인력까지. 서비스 현장에 맞는 역할과 투입 시점을 먼저 정리해 드립니다."}),d.jsxs("a",{href:"#brief",children:["인력운영 브리프 만들기 ",d.jsx(dr,{size:17})]})]})]}),d.jsxs("section",{className:"brief-scope",id:"scope","aria-labelledby":"scope-title",children:[d.jsxs("div",{className:"scope-sticky",children:[d.jsxs("p",{className:"brief-eyebrow",children:[d.jsx("span",{}),"OPERATION SCOPE"]}),d.jsxs("h2",{id:"scope-title",children:["맡기는 범위를",d.jsx("br",{}),d.jsx("strong",{children:"먼저 맞춥니다."})]}),d.jsx("p",{children:"필요 없는 서비스를 넓게 제안하기보다, 운영 책임이 필요한 지점부터 함께 확인합니다."}),d.jsxs("a",{href:"#brief",children:["내 운영 범위 정리하기 ",d.jsx(dr,{size:17})]})]}),d.jsxs("div",{className:"scope-detail-list",children:[d.jsxs("article",{children:[d.jsx("span",{children:"01"}),d.jsxs("div",{children:[d.jsx("h3",{children:"인력 운영"}),d.jsx("p",{children:"생산·물류부터 호텔 인포, 하우스키퍼, 골프장 인력까지 현장에 맞는 투입 흐름을 상담합니다."})]}),d.jsx("small",{children:"OUTSOURCING"})]}),d.jsxs("article",{children:[d.jsx("span",{children:"02"}),d.jsxs("div",{children:[d.jsx("h3",{children:"현장 행사"}),d.jsx("p",{children:"팝업·프로모션·매장 행사에서 필요한 인력 구성과 고객 응대 범위를 정리합니다."})]}),d.jsx("small",{children:"EVENT"})]}),d.jsxs("article",{children:[d.jsx("span",{children:"03"}),d.jsxs("div",{children:[d.jsx("h3",{children:"공간 관리"}),d.jsx("p",{children:"시설·보안·미화·주차 등 건물 운영의 각 책임 범위를 한 화면에서 확인합니다."})]}),d.jsx("small",{children:"FACILITY"})]})]})]}),d.jsxs("section",{className:"brief-process",id:"process","aria-labelledby":"process-title",children:[d.jsxs("div",{className:"process-title",children:[d.jsxs("p",{className:"brief-eyebrow",children:[d.jsx("span",{}),"HOW CONSULTING STARTS"]}),d.jsxs("h2",{id:"process-title",children:["견적은 복잡하지",d.jsx("br",{}),"않아야 합니다."]})]}),d.jsxs("div",{className:"process-steps",children:[d.jsxs("article",{children:[d.jsx("b",{children:"01"}),d.jsx("h3",{children:"운영 유형 선택"}),d.jsx("p",{children:"필요한 서비스와 현장 상황을 고릅니다."})]}),d.jsxs("article",{children:[d.jsx("b",{children:"02"}),d.jsx("h3",{children:"상담 정보 입력"}),d.jsx("p",{children:"장소와 시작 시점 등 필요한 내용을 남깁니다."})]}),d.jsxs("article",{children:[d.jsx("b",{children:"03"}),d.jsx("h3",{children:"운영 범위 확인"}),d.jsx("p",{children:"케이알잡과 구체적인 진행 범위를 상담합니다."})]})]})]}),d.jsx(ng,{tone:"light"}),d.jsxs("section",{className:"brief-final-cta","aria-labelledby":"final-title",children:[d.jsxs("div",{children:[d.jsxs("p",{className:"brief-eyebrow",children:[d.jsx("span",{}),"KR-JOB CONSULTATION"]}),d.jsxs("h2",{id:"final-title",children:["지금 필요한 운영,",d.jsx("br",{}),d.jsx("strong",{children:"오늘 문의부터."})]})]}),d.jsxs("div",{children:[d.jsx("p",{children:"필요 서비스와 운영 조건을 먼저 정리해 주세요. 케이알잡이 다음 상담을 이어갑니다."}),d.jsxs("a",{href:"#inquiry",children:["운영 범위 정리하기 ",d.jsx(An,{size:19})]})]})]}),d.jsx("section",{className:"brief-inquiry-section",id:"inquiry","aria-label":"견적 문의 작성",children:d.jsx(ad,{variant:"light",defaultService:l})})]}),d.jsxs("footer",{className:"brief-footer",children:[d.jsx(Iy,{inverse:!0}),d.jsxs("div",{children:[d.jsx("a",{href:"tel:18004015",children:"1800-4015"}),d.jsx("span",{children:"대표 상담"})]}),d.jsxs("div",{className:"brief-footer-hours",children:[d.jsx("b",{children:"상담 가능 시간"}),d.jsx("span",{children:"평일 09:00–18:00 · 공휴일 휴무"})]}),d.jsx("a",{className:"brief-footer-email",href:"mailto:from.kr-job@kr-job.com",children:"from.kr-job@kr-job.com"}),d.jsx("p",{children:"OUTSOURCING · POP-UP & RETAIL · FACILITY MANAGEMENT"})]})]})}const yE="/default/img/renewal/assets/krjob-official-logo.png",of=[{id:"space",label:"건물종합관리",short:"공간 관리가 필요한 곳",detail:"시설·보안·미화·주차 등 공간 운영의 책임 범위를 정리합니다.",thumbnail:"/default/img/renewal/assets/krjob-2026-facility-control-room.jpg",thumbnailAlt:"국내 상업 시설 관리실에서 운영 점검을 하는 한국인 시설관리 직원들",icon:Ro,link:"http://krjob5.cafe24.com/default/contact/page02.php",tasks:["관리 대상 공간","필요 관리 범위","운영 시작 희망일"]},{id:"people",label:"단·정기 인력운영",short:"사람이 필요한 현장",detail:"생산·물류·호텔 인포·하우스키퍼·골프장 인력의 운영 범위를 정리합니다.",thumbnail:"/default/img/renewal/assets/krjob-2026-production-packing.jpg",thumbnailAlt:"국내 생산 현장에서 제품 포장 업무를 수행하는 한국인 생산 직원",icon:Ul,link:"http://www.kr-job.com/default/contact/page01.php",tasks:["직무와 예상 인원","운영 방식","투입 시점"]},{id:"event",label:"팝업·매장 행사",short:"현장이 바쁜 행사",detail:"팝업, 프로모션, 매장 행사에 맞는 운영 인력과 고객 동선을 정리합니다.",thumbnail:"/default/img/renewal/assets/krjob-2026-popup-cosmetics.jpg",thumbnailAlt:"국내 화장품 팝업 행사에서 고객을 안내하는 한국인 운영 직원",icon:Mo,link:"http://www.kr-job.com/default/contact/page01.php",tasks:["행사 유형과 장소","운영 기간","필요 역할"]}];function $y(){return d.jsx("a",{className:"map-logo",href:"/default/?page=operations-map","aria-label":"케이알잡 시안 B 홈",children:d.jsx("img",{src:yE,alt:"kr-job 케이알잡"})})}function vE(){const[n,r]=R.useState("space"),[l,s]=R.useState(!1),u=of.find(f=>f.id===n)??of[0];return d.jsxs("div",{className:"map-page",children:[d.jsxs("header",{className:"map-header",children:[d.jsx($y,{}),d.jsxs("nav",{className:"map-nav","aria-label":"시안 B 메뉴",children:[d.jsx("a",{href:"#map-company",children:"회사·운영 소개"}),d.jsx("a",{href:"#map-board",children:"운영 맵"}),d.jsx("a",{href:"#map-method",children:"상담 방식"}),d.jsx("a",{href:"/default/?page=recruitment",children:"채용센터"}),d.jsx("a",{href:"#map-brief",children:"견적 브리프"})]}),d.jsxs("div",{className:"map-head-actions",children:[d.jsxs("a",{href:"/default/",className:"map-switch",children:["시안 A ",d.jsx(nd,{size:15})]}),d.jsxs("a",{href:"tel:18004015",className:"map-phone",children:[d.jsx(pr,{size:15}),"1800-4015"]}),d.jsx("button",{type:"button",className:"map-menu","aria-label":l?"메뉴 닫기":"메뉴 열기",onClick:()=>s(f=>!f),children:l?d.jsx(eg,{size:22}):d.jsx(W0,{size:23})})]}),l&&d.jsxs("nav",{className:"map-mobile-nav",children:[d.jsxs("a",{href:"#map-company",onClick:()=>s(!1),children:["회사·운영 소개 ",d.jsx(Wn,{size:17})]}),d.jsxs("a",{href:"#map-board",onClick:()=>s(!1),children:["운영 맵 ",d.jsx(Wn,{size:17})]}),d.jsxs("a",{href:"#map-method",onClick:()=>s(!1),children:["상담 방식 ",d.jsx(Wn,{size:17})]}),d.jsxs("a",{href:"/default/?page=recruitment",onClick:()=>s(!1),children:["채용센터 ",d.jsx(Wn,{size:17})]}),d.jsxs("a",{href:"#map-brief",onClick:()=>s(!1),children:["견적 브리프 ",d.jsx(Wn,{size:17})]})]})]}),d.jsxs("main",{children:[d.jsx(tg,{id:"map-company",tone:"dark"}),d.jsxs("section",{className:"map-hero",id:"map-board",children:[d.jsxs("div",{className:"map-hero-intro",children:[d.jsxs("p",{className:"map-eyebrow",children:[d.jsx("span",{}),"CONCEPT B / OPERATIONS MAP"]}),d.jsxs("h1",{children:["사람이 필요한 곳,",d.jsx("br",{}),d.jsx("strong",{children:"관리가 필요한 공간."})]}),d.jsx("p",{children:"인력, 행사, 공간 관리 중 지금 필요한 운영을 골라 주세요. 케이알잡이 상담에 필요한 조건부터 확인합니다."}),d.jsxs("a",{href:"#map-brief",className:"map-intro-link",children:["상담 브리프로 이동 ",d.jsx(dr,{size:17})]})]}),d.jsx("div",{className:"map-board-grid",role:"radiogroup","aria-label":"운영 상황 선택",children:of.map((f,h)=>d.jsxs("button",{type:"button",role:"radio","aria-checked":n===f.id,className:n===f.id?"map-issue-card is-selected":"map-issue-card",onClick:()=>r(f.id),children:[d.jsxs("span",{children:["0",h+1]}),d.jsx("figure",{className:"map-issue-thumb",children:d.jsx("img",{src:f.thumbnail,alt:f.thumbnailAlt})}),d.jsx("p",{children:f.short}),d.jsx("b",{children:f.label}),d.jsx("i",{children:d.jsx(An,{size:17})})]},f.id))})]}),d.jsxs("section",{className:"map-signal-strip",children:[d.jsxs("div",{children:[d.jsx("span",{children:"NOW"}),d.jsx("b",{children:"어떤 운영이 가장 급한가요?"})]}),d.jsx("p",{children:"선택한 운영 유형에 맞춰 견적 신청 화면으로 연결됩니다."}),d.jsxs("a",{href:"#map-brief",children:["브리프 확인 ",d.jsx(dr,{size:16})]})]}),d.jsxs("section",{className:"map-operating-lane","aria-label":"현재 운영 브리프 진행 상태",children:[d.jsxs("div",{className:"map-lane-current",children:[d.jsxs("div",{children:[d.jsx("span",{children:"CURRENT BRIEF"}),d.jsxs("b",{children:[d.jsx("i",{}),"READY TO MAP"]})]}),d.jsx("h2",{children:u.label}),d.jsxs("p",{children:[u.short," 기준으로 다음 상담 정보를 준비합니다."]}),d.jsxs("a",{href:"#map-brief",children:["현재 브리프 보기 ",d.jsx(dr,{size:16})]})]}),d.jsxs("ol",{className:"map-lane-steps",children:[d.jsxs("li",{className:"is-current",children:[d.jsx("span",{children:"01"}),d.jsxs("div",{children:[d.jsx("b",{children:"운영 유형"}),d.jsx("small",{children:u.label})]})]}),d.jsxs("li",{children:[d.jsx("span",{children:"02"}),d.jsxs("div",{children:[d.jsx("b",{children:"운영 조건"}),d.jsx("small",{children:"현장·인원·일정 확인"})]})]}),d.jsxs("li",{children:[d.jsx("span",{children:"03"}),d.jsxs("div",{children:[d.jsx("b",{children:"담당자 정보"}),d.jsx("small",{children:"공식 상담 접수 연결"})]})]})]})]}),d.jsxs("section",{className:"map-quote-workspace",id:"map-brief","aria-labelledby":"map-brief-title",children:[d.jsxs("figure",{className:"map-workspace-photo",children:[d.jsx("img",{src:"/default/img/renewal/assets/krjob-2026-facility-control-room.jpg",alt:"국내 상업 시설 관리실에서 운영 점검을 하는 한국인 시설관리 직원들"}),d.jsxs("figcaption",{children:[d.jsx("span",{children:"DOMESTIC FIELD"}),d.jsxs("b",{children:["현장을 이해하는 상담은",d.jsx("br",{}),"운영의 우선순위부터 다릅니다."]})]})]}),d.jsxs("aside",{className:"map-brief-panel map-brief-panel-standalone",children:[d.jsxs("div",{className:"map-brief-status",children:[d.jsx("span",{id:"map-brief-title",children:"ESTIMATE BRIEF"}),d.jsxs("b",{children:[d.jsx("span",{}),"READY"]})]}),d.jsxs("div",{className:"map-selected-service",children:[d.jsx("span",{children:"SELECTED OPERATION"}),d.jsx("h2",{children:u.label}),d.jsx("p",{children:u.detail})]}),d.jsxs("div",{className:"map-checklist",children:[d.jsx("p",{children:"상담 전에 정리할 내용"}),u.tasks.map(f=>d.jsxs("div",{children:[d.jsx(ZO,{size:16}),f]},f))]}),d.jsxs("a",{href:`/default/?page=estimate&concept=b&service=${u.id}`,className:"map-brief-link",children:["이 운영으로 브리프 작성 ",d.jsx(An,{size:18})]}),d.jsx("small",{children:"브리프 작성 후 입력 내용을 확인하고, 공식 상담 접수까지 이어갈 수 있습니다."})]})]}),d.jsxs("section",{className:"map-method",id:"map-method",children:[d.jsxs("div",{className:"map-method-heading",children:[d.jsxs("p",{className:"map-eyebrow",children:[d.jsx("span",{}),"CLEAR OPERATIONS"]}),d.jsxs("h2",{children:["서비스보다 먼저,",d.jsx("br",{}),"운영의 ",d.jsx("strong",{children:"순서"}),"를 봅니다."]})]}),d.jsxs("div",{className:"map-method-list",children:[d.jsxs("article",{children:[d.jsx("span",{children:"01"}),d.jsxs("div",{children:[d.jsx("h3",{children:"필요한 역할을 찾습니다."}),d.jsx("p",{children:"인력, 행사, 공간관리 중 현재 운영에서 필요한 역할을 함께 확인합니다."})]}),d.jsx(Ul,{size:24})]}),d.jsxs("article",{children:[d.jsx("span",{children:"02"}),d.jsxs("div",{children:[d.jsx("h3",{children:"책임 범위를 맞춥니다."}),d.jsx("p",{children:"현장에서 누가 어떤 범위까지 운영할지 상담 전에 선명하게 정리합니다."})]}),d.jsx(J0,{size:24})]}),d.jsxs("article",{children:[d.jsx("span",{children:"03"}),d.jsxs("div",{children:[d.jsx("h3",{children:"시작 시점을 준비합니다."}),d.jsx("p",{children:"빠른 투입이 필요한지, 일정에 맞춘 준비가 필요한지 확인합니다."})]}),d.jsx(I0,{size:24})]})]})]}),d.jsxs("section",{className:"map-proof",children:[d.jsxs("div",{children:[d.jsxs("p",{className:"map-eyebrow",children:[d.jsx("span",{}),"KR-JOB FIELD NOTE"]}),d.jsxs("h2",{children:["국내 현장의 운영은",d.jsx("br",{}),"더 짧고, 더 명료하게",d.jsx("br",{}),"상담되어야 합니다."]})]}),d.jsxs("div",{className:"map-proof-tags",children:[d.jsx("span",{children:"건물종합관리"}),d.jsx("span",{children:"단·정기 인력운영"}),d.jsx("span",{children:"팝업·매장 행사"}),d.jsx("p",{children:"필요한 범위부터 정리하고, 그 다음에 견적을 시작합니다."})]})]}),d.jsx(ng,{id:"map-labor-news",tone:"dark"}),d.jsxs("section",{className:"map-final",children:[d.jsxs("div",{children:[d.jsxs("p",{className:"map-eyebrow",children:[d.jsx("span",{}),"START A CONVERSATION"]}),d.jsxs("h2",{children:["지금 필요한 운영,",d.jsx("br",{}),d.jsx("strong",{children:"작성란에서 시작하세요."})]})]}),d.jsxs("a",{href:"#inquiry",children:["상담 브리프 작성 ",d.jsx(An,{size:20})]})]}),d.jsx("section",{className:"map-inquiry-section",id:"inquiry","aria-label":"견적 문의 작성",children:d.jsx(ad,{variant:"dark",defaultService:n==="people"?"outsourcing":n==="event"?"popup":"facility"})})]}),d.jsxs("footer",{className:"map-footer",children:[d.jsx($y,{}),d.jsx("p",{children:"OUTSOURCING · POP-UP & RETAIL · FACILITY MANAGEMENT"}),d.jsx("a",{href:"mailto:from.kr-job@kr-job.com",children:"from.kr-job@kr-job.com"}),d.jsx("a",{href:"tel:18004015",children:"대표 상담 1800-4015"})]})]})}const gE="/default/img/renewal/assets/krjob-official-logo.png",fn={jobs:"http://www.kr-job.com/default/board/webzine.php",application:"http://www.kr-job.com/default/board/faq2.php",notices:"http://www.kr-job.com/default/board/news.php",resources:"http://www.kr-job.com/default/board/gallery.php",certificate:"http://www.kr-job.com/default/board/faq.php"},bE=[{title:"[서울] 회계팀 계약직 경리 사원 채용합니다.",type:"사무·행정"},{title:"[전남 나주/광주광역시] 전자제품 생산직 사원 채용합니다.",type:"생산직"},{title:"[대구광역시] 사무직 사원 채용합니다.",type:"사무·행정"},{title:"[강원 속초시] 건물 주차관리 단기 채용합니다.",type:"시설·주차"},{title:"[전북 정읍시] 빌딩 경비원 채용합니다.",type:"경비·보안"},{title:"[전남 여수시] 상가 미화원 채용합니다.",type:"미화"}];function dn(){return d.jsx(An,{size:18,"aria-hidden":"true"})}function xE(){return d.jsxs("div",{className:"recruit-page",children:[d.jsxs("header",{className:"recruit-header",children:[d.jsx("a",{className:"recruit-logo",href:"/default/","aria-label":"케이알잡 시안 A 홈",children:d.jsx("img",{src:gE,alt:"kr-job 케이알잡"})}),d.jsxs("nav",{"aria-label":"채용센터 메뉴",children:[d.jsx("a",{href:"#jobs",children:"채용공고"}),d.jsx("a",{href:"#worker-info",children:"공지·자료"}),d.jsx("a",{href:"#certificate",children:"증명서 발급"})]}),d.jsxs("div",{className:"recruit-header-actions",children:[d.jsxs("a",{href:"/default/",className:"recruit-back",children:["홈페이지 ",d.jsx(nd,{size:15})]}),d.jsxs("a",{href:"tel:18004015",className:"recruit-phone",children:[d.jsx(pr,{size:15}),"1800-4015"]})]})]}),d.jsxs("main",{children:[d.jsxs("section",{className:"recruit-hero","aria-labelledby":"recruit-title",children:[d.jsxs("div",{children:[d.jsxs("p",{className:"recruit-kicker",children:[d.jsx("span",{}),"KR-JOB RECRUITMENT CENTER"]}),d.jsxs("h1",{id:"recruit-title",children:["일자리부터,",d.jsx("br",{}),d.jsx("strong",{children:"필요한 서류까지."})]}),d.jsx("p",{children:"케이알잡의 실시간 채용정보, 근로자 안내, 자료, 증명서 발급 요청을 한곳에서 확인하세요. 최신 게시물과 요청 처리는 기존 공식 시스템에서 이어집니다."}),d.jsxs("div",{className:"recruit-hero-actions",children:[d.jsxs("a",{href:fn.jobs,target:"_blank",rel:"noreferrer",children:["채용공고 보러가기 ",d.jsx(dn,{})]}),d.jsxs("a",{href:fn.certificate,target:"_blank",rel:"noreferrer",children:["증명서 발급 요청 ",d.jsx(dn,{})]})]})]}),d.jsxs("aside",{className:"recruit-status","aria-label":"채용센터 이용 안내",children:[d.jsxs("p",{children:[d.jsx("span",{children:"01"})," 채용공고 확인"]}),d.jsxs("p",{children:[d.jsx("span",{children:"02"})," 온라인 지원 준비"]}),d.jsxs("p",{children:[d.jsx("span",{children:"03"})," 공지·자료 확인"]}),d.jsxs("p",{children:[d.jsx("span",{children:"04"})," 증명서 요청"]}),d.jsx("small",{children:"모든 링크는 케이알잡의 기존 공식 페이지로 연결됩니다."})]})]}),d.jsxs("section",{className:"recruit-service-grid","aria-label":"채용센터 주요 서비스",children:[d.jsxs("article",{className:"recruit-service-card recruit-service-jobs",children:[d.jsxs("div",{children:[d.jsx("span",{children:"01 / JOBS"}),d.jsx(KO,{size:25})]}),d.jsx("h2",{children:"채용공고"}),d.jsx("p",{children:"생산·사무·시설·경비·미화 등 현재 공개된 채용 정보를 확인합니다."}),d.jsxs("a",{href:fn.jobs,target:"_blank",rel:"noreferrer",children:["실시간 채용정보 ",d.jsx(dn,{})]})]}),d.jsxs("article",{className:"recruit-service-card",children:[d.jsxs("div",{children:[d.jsx("span",{children:"02 / NOTICE & ARCHIVE"}),d.jsx(VO,{size:25})]}),d.jsx("h2",{children:"공지사항 · 자료실"}),d.jsx("p",{children:"근로자 안내, 제출 일정, 취업규칙과 관련 자료를 공식 목록에서 확인합니다."}),d.jsxs("div",{className:"recruit-dual-links",children:[d.jsxs("a",{href:fn.notices,target:"_blank",rel:"noreferrer",children:["공지사항 ",d.jsx(dn,{})]}),d.jsxs("a",{href:fn.resources,target:"_blank",rel:"noreferrer",children:["자료실 ",d.jsx(dn,{})]})]})]}),d.jsxs("article",{className:"recruit-service-card recruit-service-certificate",id:"certificate",children:[d.jsxs("div",{children:[d.jsx("span",{children:"03 / DOCUMENT REQUEST"}),d.jsx(JO,{size:25})]}),d.jsx("h2",{children:"증명서 발급요청"}),d.jsx("p",{children:"필요한 증명서는 담당자 확인 후 발급을 도와드립니다."}),d.jsxs("a",{href:fn.certificate,target:"_blank",rel:"noreferrer",children:["발급 요청으로 이동 ",d.jsx(dn,{})]})]})]}),d.jsxs("section",{className:"recruit-jobs",id:"jobs","aria-labelledby":"jobs-title",children:[d.jsxs("div",{className:"recruit-section-heading",children:[d.jsxs("div",{children:[d.jsxs("p",{className:"recruit-kicker",children:[d.jsx("span",{}),"LIVE JOB BOARD"]}),d.jsxs("h2",{id:"jobs-title",children:["지금 확인할 수 있는",d.jsx("br",{}),d.jsx("strong",{children:"채용공고입니다."})]})]}),d.jsx("p",{children:"기존 공식 채용공고에서 공개된 일부 목록입니다. 상세 조건과 지원은 공고 목록에서 확인해 주세요."}),d.jsxs("a",{href:fn.jobs,target:"_blank",rel:"noreferrer",children:["전체 공고 보기 ",d.jsx(dn,{})]})]}),d.jsx("div",{className:"recruit-job-list",children:bE.map((n,r)=>d.jsxs("a",{href:fn.jobs,target:"_blank",rel:"noreferrer",children:[d.jsxs("span",{children:["0",r+1]}),d.jsx("b",{children:n.title}),d.jsx("small",{children:n.type}),d.jsx(dn,{})]},n.title))})]}),d.jsxs("section",{className:"recruit-worker-info",id:"worker-info","aria-labelledby":"worker-info-title",children:[d.jsxs("div",{className:"recruit-info-copy",children:[d.jsxs("p",{className:"recruit-kicker",children:[d.jsx("span",{}),"WORKER DESK"]}),d.jsxs("h2",{id:"worker-info-title",children:["지원 전과 재직 중에",d.jsx("br",{}),d.jsx("strong",{children:"필요한 안내를 모았습니다."})]}),d.jsx("p",{children:"온라인 지원은 기존 구직 접수 화면에서, 공지와 자료는 공식 고객센터 목록에서 최신 내용을 확인할 수 있습니다."})]}),d.jsxs("div",{className:"recruit-info-cards",children:[d.jsxs("a",{href:fn.application,target:"_blank",rel:"noreferrer",children:[d.jsx(J0,{size:23}),d.jsxs("div",{children:[d.jsx("small",{children:"ONLINE APPLICATION"}),d.jsx("b",{children:"온라인 접수(구직)"}),d.jsx("p",{children:"지원 절차와 구직 접수 화면을 확인합니다."})]}),d.jsx(dn,{})]}),d.jsxs("a",{href:fn.notices,target:"_blank",rel:"noreferrer",children:[d.jsx(FO,{size:23}),d.jsxs("div",{children:[d.jsx("small",{children:"OFFICIAL NOTICE"}),d.jsx("b",{children:"공지사항"}),d.jsx("p",{children:"취업규칙과 재직자 안내를 확인합니다."})]}),d.jsx(dn,{})]}),d.jsxs("a",{href:fn.resources,target:"_blank",rel:"noreferrer",children:[d.jsx(IO,{size:23}),d.jsxs("div",{children:[d.jsx("small",{children:"RESOURCE ARCHIVE"}),d.jsx("b",{children:"자료실"}),d.jsx("p",{children:"근로·채용 관련 자료 목록을 확인합니다."})]}),d.jsx(dn,{})]})]})]}),d.jsxs("section",{className:"recruit-footer-cta",children:[d.jsxs("div",{children:[d.jsxs("p",{className:"recruit-kicker",children:[d.jsx("span",{}),"NEED HELP?"]}),d.jsxs("h2",{children:["채용센터 이용이 어렵다면,",d.jsx("br",{}),d.jsx("strong",{children:"대표 상담으로 연락 주세요."})]})]}),d.jsxs("div",{children:[d.jsx("p",{children:"평일 09:00–18:00 · 공휴일 휴무"}),d.jsxs("a",{href:"tel:18004015",children:["1800-4015 ",d.jsx(pr,{size:18})]})]})]})]})]})}function SE(){const n=new URLSearchParams(window.location.search).get("page");return n==="operations-map"?d.jsx(vE,{}):n==="estimate"?d.jsx(fE,{}):n==="recruitment"?d.jsx(xE,{}):d.jsx(pE,{})}function jE(){return d.jsx(aE,{children:d.jsx(sE,{defaultTheme:"light",children:d.jsxs(QO,{children:[d.jsx(FS,{}),d.jsx(SE,{}),d.jsx(iE,{})]})})})}const wE=()=>{const l=`${window.location.origin}/api/oauth/callback`,s=crypto.randomUUID();document.cookie=`${M2}=${s}; Path=/; Max-Age=600; SameSite=None; Secure`;const u=N2({redirectUri:l,nonce:s}),f=new URL("undefined/app-auth");f.searchParams.set("appId",void 0),f.searchParams.set("redirectUri",l),f.searchParams.set("state",u),f.searchParams.set("type","signIn"),window.location.href=f.toString()},yo=new Vx,ag=n=>{!(n instanceof wl)||typeof window>"u"||!(n.message===R2)||wE()};yo.getQueryCache().subscribe(n=>{if(n.type==="updated"&&n.action.type==="error"){const r=n.query.state.error;ag(r),console.error("[API Query Error]",r)}});yo.getMutationCache().subscribe(n=>{if(n.type==="updated"&&n.action.type==="error"){const r=n.mutation.state.error;ag(r),console.error("[API Mutation Error]",r)}});const OE=Hv.createClient({links:[n2({url:"/api/trpc",transformer:na,headers(){try{const n=sessionStorage.getItem("manus-cookie");if(n){const r=`${C2}=`,s=n.split(";").find(u=>u.trim().startsWith(r))?.trim().slice(r.length);if(s)return{Authorization:`Bearer ${s}`}}}catch{}return{}},fetch(n,r){return globalThis.fetch(n,{...r??{},credentials:"include"})}})]});H2.createRoot(document.getElementById("root")).render(d.jsx(Hv.Provider,{client:OE,queryClient:yo,children:d.jsx(Zx,{client:yo,children:d.jsx(jE,{})})}));