1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94940,e=>{"use strict";var t=e.i(700519),r=e.i(31616),n=e.i(647854),i=e.i(610934),o=class extends i.Subscribable{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,i){let o=n.queryKey,s=n.queryHash??(0,t.hashQueryKeyByOptions)(o,n),a=this.get(s);return a||(a=new r.Query({client:e,queryKey:o,queryHash:s,options:e.defaultQueryOptions(n),state:i,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){n.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let r={exact:!0,...e};return this.getAll().find(e=>(0,t.matchQuery)(r,e))}findAll(e={}){let r=this.getAll();return Object.keys(e).length>0?r.filter(r=>(0,t.matchQuery)(e,r)):r}notify(e){n.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){n.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){n.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}};e.s(["QueryCache",0,o])},403351,e=>{"use strict";var t=e.i(647854),r=e.i(238573),n=e.i(434938),i=class extends r.Removable{#t;#r;#n;#i;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#r=[],this.state=e.state||o(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#r.includes(e)||(this.#r.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#r=this.#r.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#r.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#o({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=(0,n.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#o({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#o({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let i="pending"===this.state.status,o=!this.#i.canStart();try{if(i)t();else{this.#o({type:"pending",variables:e,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,r);let t=await this.options.onMutate?.(e,r);t!==this.state.context&&this.#o({type:"pending",context:t,variables:e,isPaused:o})}let n=await this.#i.start();return await this.#n.config.onSuccess?.(n,e,this.state.context,this,r),await this.options.onSuccess?.(n,e,this.state.context,r),await this.#n.config.onSettled?.(n,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(n,null,e,this.state.context,r),this.#o({type:"success",data:n}),n}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,r)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,r)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,r)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,r)}catch(e){Promise.reject(e)}throw this.#o({type:"error",error:t}),t}finally{this.#n.runNext(this)}}#o(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPau
1sed:!1,status:"error"}}})(this.state),t.notifyManager.batch(()=>{this.#r.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}e.s(["Mutation",0,i,"getDefaultState",0,o])},220070,e=>{"use strict";let t;var r=e.i(700519),n=e.i(94940),i=e.i(647854),o=e.i(403351),s=e.i(610934),a=class extends s.Subscribable{constructor(e={}){super(),this.config=e,this.#s=new Set,this.#a=new Map,this.#l=0}#s;#a;#l;build(e,t,r){let n=new o.Mutation({client:e,mutationCache:this,mutationId:++this.#l,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#s.add(e);let t=l(e);if("string"==typeof t){let r=this.#a.get(t);r?r.push(e):this.#a.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#s.delete(e)){let t=l(e);if("string"==typeof t){let r=this.#a.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#a.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=l(e);if("string"!=typeof t)return!0;{let r=this.#a.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=l(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#a.get(t)?.find(t=>
1t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){i.notifyManager.batch(()=>{this.#s.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#s.clear(),this.#a.clear()})}getAll(){return Array.from(this.#s)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.matchMutation)(e,t))}notify(e){i.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return i.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.noop))))}};function l(e){return e.options.scope?.id}var u=e.i(593558),c=e.i(917767),d=class{#u;#n;#c;#d;#h;#f;#p;#m;constructor(e={}){this.#u=e.queryCache||new n.QueryCache,this.#n=e.mutationCache||new a,this.#c=e.defaultOptions||{},this.#d=new Map,this.#h=new Map,this.#f=0}mount(){this.#f++,1===this.#f&&(this.#p=u.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#u.onFocus())}),this.#m=c.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#u.onOnline())}))}unmount(){this.#f--,0===this.#f&&(this.#p?.(),this.#p=void 0,this.#m?.(),this.#m=void 0)}isFetching(e){return this.#u.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#u.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#u.build(this,t),i=n.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#u.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),o=this.#u.get(i.queryHash),s=o?.state.data,a=(0,r.functionalUpdate)(t,s);if(void 0!==a)return this.#u.build(this,i).setData(a,{...n,manual:!0})}setQueriesData(e,t,r){return i.notifyManager.batch(()=>this.#u.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#u.get(t.queryHash)?.state}removeQueries(e){let t=this.#u;i.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#u;return i.notifyManager.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(i.notifyManager.batch(()=>this.#u.findAll(e).map(e=>e.cancel(n)))).then(r.noop).catch(r.noop)}invalidateQueries(e,t={}){return i.notifyManager.batch(()=>(this.#u.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(i.notifyManager.batch(()=>this.#u.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#u.build(this,t);return n.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.noop).catch(r.noop)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.noop).catch(r.noop)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return c.onlineManager.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#u}getMutationCache(){return this.#n}getDefaultOptions(){return this.#c}setDefaultOptions(e){this.#c=e}setQueryDefaults(e,t){this.#d.set((0,r.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#d.values()],n={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#h.set((0,r.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#h.values()],n={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#c.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#c.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#u.clear(),this.#n.clear()}};function h(){return t||(t=new d({defaultOptions:{queries:{staleTime:0,retry:3,retryOn
1Mount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1}}})),t}h(),e.s(["getQueryClient",0,h],220070)},307999,e=>{"use strict";let t=(0,e.i(31275).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},665887,e=>{"use strict";let t=(0,e.i(31275).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},782202,609780,e=>{"use strict";let t=(0,e.i(31275).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["default",0,t],782202);var r=e.i(261704),n=e.i(799093);function i(e,[t,r]){return Math.min(r,Math.max(t,e))}(0,Object.defineProperty)(i,"name",{value:"clamp",configurable:!0});var o=e.i(543836),s=e.i(683433),a=e.i(740956),l=e.i(89886),u=e.i(760260),c=e.i(789058),d=e.i(875673),h=e.i(456718),f=e.i(318615),p=e.i(267525),m=e.i(500347),y=e.i(323081),v=e.i(18157),g=e.i(77688),b=e.i(118681),w=e.i(34551),S=e.i(789030);function C(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(0,Object.defineProperty)(C,"name",{value:"usePrevious",configurable:!0});var x=e.i(253779),P=e.i(73772),E=e.i(388868),M=e.i(90215),R=Object.defineProperty,I=(e,t)=>R(e,"name",{value:t,configurable:!0}),D=[" ","Enter","ArrowUp","ArrowDown"],O=[" ","Enter"],T="Select",[j,q,k]=(0,s.createCollection)(T),[A,H]=(0,l.createContextScope)(T,[k,p.createPopperScope]),Q=(0,p.createPopperScope)(),[L,B]=A(T),[F,_]=A(T);function K(e){let{__scopeSelect:t,children:n,open:i,defaultOpen:o,onOpenChange:s,value:a,defaultValue:l,onValueChange:c,dir:d,name:h,autoComplete:m,disabled:y,required:v,form:g,internal_do_not_use_render:b}=e,S=Q(t),[C,x]=r.useState(null),[P,E]=r.useState(null),[R,D]=r.useState(!1),O=(0,u.useDirection)(d),[q,k]=(0,w.useControllableState)({prop:i,defaultProp:o??!1,onChange:s,caller:T}),[A,H]=(0,w.useControllableState)({prop:a,defaultProp:l,onChange:c,caller:T}),B=r.useRef(null),_=r.useRef(A);r.useEffect(()=>{let e=g?C?.ownerDocument.getElementById(g):C?.form;if(e instanceof HTMLFormElement){let t=I(()=>H(_.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[g,C,H]);let K=!C||!!g||!!C.closest("form"),[V,U]=r.useState(new Set),N=(0,f.useId)(),G=Array.from(V).map(e=>e.props.value).join(";"),W=r.useCallback(e=>{U(t=>new Set(t).add(e))},[]),z=r.useCallback(e=>{U(t=>{let r=new Set(t);return r.delete(e),r})},[]),Y={required:v,trigger:C,onTriggerChange:x,valueNode:P,onValueNodeChange:E,valueNodeHasChildren:R,onValueNodeHasChildrenChange:D,contentId:N,value:A,onValueChange:H,open:q,onOpenChange:k,dir:O,triggerPointerDownPosRef:B,disabled:y,name:h,autoComplete:m,form:g,nativeOptions:V,nativeSelectKey:G,isFormControl:K};return(0,M.jsx)(p.Root,{...S,children:(0,M.jsx)(L,{scope:t,...Y,children:(0,M.jsx)(j.Provider,{scope:t,children:(0,M.jsx)(F,{scope:t,onNativeOptionAdd:W,onNativeOptionRemove:z,children:eI(b)?b(Y):n})})})})}I(K,"SelectProvider");var V=I(e=>{let{__scopeSelect:t,children:r,...n}=e;return(0,M.jsx)(K,{__scopeSelect:t,...n,internal_do_not_use_render:({isFormControl:e})=>(0,M.jsxs)(M.Fragment,{children:[r,e?(0,M.jsx)(eR,{__scopeSelect:t}):null]})})},"Select"),U=r.forwardRef(I(function(e,t){let{__scopeSelect:n,disabled:i=!1,...s}=e,l=Q(n),u=B("SelectTrigger",n),c=u.disabled||i,d=(0,a.useComposedRefs)(t,u.onTriggerChange),h=q(n),f=r.useRef("touch"),[m,y,g]=eO(e=>{let t=h().filter(e=>!e.disabled),r=t.find(e=>e.value===u.value),n=eT(t,e,r);void 0!==n&&u.onValueChange(n.value)}),b=I(e=>{c||(u.onOpenChange(!0),g()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},"handleOpen");return(0,M.jsx)(p.Anchor,{asChild:!0,...l,children:(0,M.jsx)(v.Primitive.button,{type:"button",role:"combobox","aria-controls":u.open?u.contentId:void 0,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":eD(u.value)?"":void 0,...s,ref:d,onClick:(0,o.composeEventHandlers)(s.onClick,e=>
1{e.currentTarget.focus(),"mouse"!==f.current&&b(e)}),onPointerDown:(0,o.composeEventHandlers)(s.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(b(e),e.preventDefault())}),onKeyDown:(0,o.composeEventHandlers)(s.onKeyDown,e=>{let t=""!==m.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||y(e.key),(!t||" "!==e.key)&&D.includes(e.key)&&(b(),e.preventDefault())})})})},"SelectTrigger")),N=r.forwardRef(I(function(e,t){let{__scopeSelect:n,className:i,style:o,children:s,placeholder:l="",...u}=e,c=B("SelectValue",n),{onValueNodeHasChildrenChange:d}=c,h=void 0!==s,f=(0,a.useComposedRefs)(t,c.onValueNodeChange);(0,S.useLayoutEffect)(()=>{d(h)},[d,h]);let p=eD(c.value);return(0,M.jsx)(v.Primitive.span,{...u,asChild:!p&&u.asChild,ref:f,style:{pointerEvents:"none"},children:(0,M.jsx)(r.Fragment,{children:p?l:s},p?"placeholder":"value")})},"SelectValue")),G=r.forwardRef(I(function(e,t){let{__scopeSelect:r,children:n,...i}=e;return(0,M.jsx)(v.Primitive.span,{"aria-hidden":!0,...i,ref:t,children:n||"â¼"})},"SelectIcon")),[W,z]=A("SelectPortal",{forceMount:void 0}),Y=I(e=>{let{__scopeSelect:t,forceMount:r,...n}=e;return(0,M.jsx)(W,{scope:e.__scopeSelect,forceMount:r,children:(0,M.jsx)(m.Portal,{asChild:!0,...n})})},"SelectPortal"),X="SelectContent",Z=r.forwardRef(I(function(e,t){let n=z(X,e.__scopeSelect),{forceMount:i=n.forceMount,...o}=e,s=B(X,e.__scopeSelect),[a,l]=r.useState();return(0,S.useLayoutEffect)(()=>
1{l(new DocumentFragment)},[]),(0,M.jsx)(y.Presence,{present:i||s.open,children:({present:e})=>e?(0,M.jsx)(er,{...o,ref:t}):(0,M.jsx)(J,{...o,fragment:a})})},"SelectContent")),J=r.forwardRef(I(function(e,t){let{__scopeSelect:r,children:i,fragment:o}=e;return o?n.createPortal((0,M.jsx)($,{scope:r,children:(0,M.jsx)(j.Slot,{scope:r,children:(0,M.jsx)("div",{ref:t,children:i})})}),o):null},"SelectContentFragment")),[$,ee]=A(X),et=(0,g.createSlot)("SelectContent.RemoveScroll"),er=r.forwardRef(I(function(e,t){let{__scopeSelect:n}=e,{position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:l,onPointerDownOutside:u,side:f,sideOffset:p,align:m,alignOffset:y,arrowPadding:v,collisionBoundary:g,collisionPadding:b,sticky:w,hideWhenDetached:S,avoidCollisions:C,...x}=e,R=B(X,n),[D,O]=r.useState(null),[T,j]=r.useState(null),k=(0,a.useComposedRefs)(t,O),[A,H]=r.useState(null),[Q,L]=r.useState(null),F=q(n),[_,K]=r.useState(!1),V=r.useRef(!1);r.useEffect(()=>{if(D)return(0,P.hideOthers)(D)},[D]),(0,d.useFocusGuards)();let U=r.useCallback(e=>{let[t,...r]=F().map(e=>e.ref.current),[n]=r.slice(-1),i=document.activeElement;for(let r of e)if(r===i||(r?.scrollIntoView({block:"nearest"}),r===t&&T&&(T.scrollTop=0),r===n&&T&&(T.scrollTop=T.scrollHeight),r?.focus(),document.activeElement!==i))return},[F,T]),N=r.useCallback(()=>U([A,D]),[U,A,D]);r.useEffect(()=>{_&&N()},[_,N]);let{onOpenChange:G,triggerPointerDownPosRef:W}=R;r.useEffect(()=>{if(D){let e={x:0,y:0},t=I(t=>{e={x:Math.abs(Math.round(t.pageX)-(W.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(W.current?.y??0))}},"handlePointerMove"),r=I(r=>{e.x<=10&&e.y<=10?r.preventDefault():r.composedPath().includes(D)||G(!1),document.removeEventListener("pointermove",t),W.current=null},"handlePointerUp");return null!==W.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[D,G,W]),r.useEffect(()=>{let e=I(()=>G(!1),"close");return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[G]);let[z,Y]=eO(e=>{let t=F().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eT(t,e,r);n&&setTimeout(()=>n.ref.current?.focus())}),Z=r.useCallback((e,t,r)=>{let n=!V.current&&!r;(void 0!==R.value&&R.value===t||n)&&(H(e),n&&(V.current=!0))},[R.value]),J=r.useCallback(()=>D?.focus(),[D]),ee=r.useCallback((e,t,r)=>{let n=!V.current&&!r;(void 0!==R.value&&R.value===t||n)&&L(e)},[R.value]),er="popper"===i?ei:en;return(0,M.jsx)($,{scope:n,content:D,viewport:T,onViewportChange:j,itemRefCallback:Z,selectedItem:A,onItemLeave:J,itemTextRefCallback:ee,focusSelectedItem:N,selectedItemText:Q,position:i,isPositioned:_,searchRef:z,children:(0,M.jsx)(E.RemoveScroll,{as:et,allowPinchZoom:!0,children:(0,M.jsx)(h.FocusScope,{asChild:!0,trapped:R.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,o.composeEventHandlers)(s,e=>{R.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,M.jsx)(c.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:(0,M.jsx)(er,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:e=>e.preventDefault(),...x,...er===ei?{side:f,sideOffset:p,align:m,alignOffset:y,arrowPadding:v,collisionBoundary:g,collisionPadding:b,sticky:w,hideWhenDetached:S,avoidCollisions:C}:{},onPlaced:()=>K(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:(0,o.composeEventHandlers)(x.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Y(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=F().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>U(t)),e.preventDefault()}})})})})})})}
1,"SelectContentImpl")),en=r.forwardRef(I(function(e,t){let{__scopeSelect:n,onPlaced:o,...s}=e,l=B(X,n),u=ee(X,n),[c,d]=r.useState(null),[h,f]=r.useState(null),p=(0,a.useComposedRefs)(t,f),m=q(n),y=r.useRef(!1),g=r.useRef(!0),{viewport:b,selectedItem:w,selectedItemText:C,focusSelectedItem:x}=u,P=r.useCallback(()=>{if(l.trigger&&l.valueNode&&c&&h&&b&&w&&C){let e=l.trigger.getBoundingClientRect(),t=h.getBoundingClientRect(),r=l.valueNode.getBoundingClientRect(),n=C.getBoundingClientRect();if("rtl"!==l.dir){let o=n.left-t.left,s=r.left-o,a=e.left-s,l=e.width+a,u=Math.max(l,t.width),d=i(s,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=l+"px",c.style.left=d+"px"}else{let o=t.right-n.right,s=window.innerWidth-r.right-o,a=window.innerWidth-e.right-s,l=e.width+a,u=Math.max(l,t.width),d=i(s,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=l+"px",c.style.right=d+"px"}let s=m(),a=window.innerHeight-20,u=b.scrollHeight,d=window.getComputedStyle(h),f=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),v=parseInt(d.borderBottomWidth,10),g=f+p+u+parseInt(d.paddingBottom,10)+v,S=Math.min(5*w.offsetHeight,g),x=window.getComputedStyle(b),P=parseInt(x.paddingTop,10),E=parseInt(x.paddingBottom,10),M=e.top+e.height/2-10,R=w.offsetHeight/2,I=f+p+(w.offsetTop+R);if(I<=M){let e=s.length>0&&w===s[s.length-1].ref.current;c.style.bottom="0px";let t=Math.max(a-M,R+(e?E:0)+(h.clientHeight-b.offsetTop-b.offsetHeight)+v);c.style.height=I+t+"px"}else{let e=s.length>0&&w===s[0].ref.current;c.style.top="0px";let t=Math.max(M,f+b.offsetTop+(e?P:0)+R);c.style.height=t+(g-I)+"px",b.scrollTop=I-M+b.offsetTop}c.style.margin="10px 0",c.style.minHeight=S+"px",c.style.maxHeight=a+"px",o?.(),requestAnimationFrame(()=>y.current=!0)}},[m,l.trigger,l.valueNode,c,h,b,w,C,l.dir,o]);(0,S.useLayoutEffect)(()=>P(),[P]);let[E,R]=r.useState();(0,S.useLayoutEffect)(()=>{h&&R(window.getComputedStyle(h).zIndex)},[h]);let I=r.useCallback(e=>{e&&!0===g.current&&(P(),x?.(),g.current=!1)},[P,x]);return(0,M.jsx)(eo,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:y,onScrollButtonChange:I,children:(0,M.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:(0,M.jsx)(v.Primitive.div,{...s,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})},"SelectItemAlignedPosition")),ei=r.forwardRef(I(function(e,t){let{__scopeSelect:r,align:n="start",collisionPadding:i=10,...o}=e,s=Q(r);return(0,M.jsx)(p.Content,{...s,...o,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[eo,es]=A(X,{}),ea="SelectViewport",el=r.forwardRef(I(function(e,t){let{__scopeSelect:n,nonce:i,...s}=e,l=ee(ea,n),u=es(ea,n),c=(0,a.useComposedRefs)(t,l.onViewportChange),d=r.useRef(0);return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,M.jsx)(j.Slot,{scope:n,children:(0,M.jsx)(v.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:(0,o.composeEventHandlers)(s.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=u;if(n?.current&&r){let e=Math.abs(d.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,i=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(i<n){let o=i+e,s=Math.min(n,o),a=o-s;r.style.height=s+"px","0px"===r.style.bottom&&(t.scrollTop=a>0?a:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})}
1,"SelectViewport")),[eu,ec]=A("SelectGroup"),ed=r.forwardRef(I(function(e,t){let{__scopeSelect:r,...n}=e,i=(0,f.useId)();return(0,M.jsx)(eu,{scope:r,id:i,children:(0,M.jsx)(v.Primitive.div,{role:"group","aria-labelledby":i,...n,ref:t})})},"SelectGroup")),eh=r.forwardRef(I(function(e,t){let{__scopeSelect:r,...n}=e,i=ec("SelectLabel",r);return(0,M.jsx)(v.Primitive.div,{id:i.id,...n,ref:t})},"SelectLabel")),ef="SelectItem",[ep,em]=A(ef),ey=r.forwardRef(I(function(e,t){let{__scopeSelect:n,value:i,disabled:s=!1,textValue:l,...u}=e,c=B(ef,n),d=ee(ef,n),h=c.value===i,[p,m]=r.useState(l??""),[y,g]=r.useState(!1),w=(0,b.useCallbackRef)(e=>d.itemRefCallback?.(e,i,s)),S=(0,a.useComposedRefs)(t,w),C=(0,f.useId)(),x=r.useRef("touch"),P=I(()=>{s||(c.onValueChange(i),c.onOpenChange(!1))},"handleSelect");return(0,M.jsx)(ep,{scope:n,value:i,disabled:s,textId:C,isSelected:h,onItemTextChange:r.useCallback(e=>{m(t=>t||(e?.textContent??"").trim())},[]),children:(0,M.jsx)(j.ItemSlot,{scope:n,value:i,disabled:s,textValue:p,children:(0,M.jsx)(v.Primitive.div,{role:"option","aria-labelledby":C,"data-highlighted":y?"":void 0,"aria-selected":h&&y,"data-state":h?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...u,ref:S,onFocus:(0,o.composeEventHandlers)(u.onFocus,()=>g(!0)),onBlur:(0,o.composeEventHandlers)(u.onBlur,()=>g(!1)),onClick:(0,o.composeEventHandlers)(u.onClick,()=>{"mouse"!==x.current&&P()}),onPointerUp:(0,o.composeEventHandlers)(u.onPointerUp,()=>{"mouse"===x.current&&P()}),onPointerDown:(0,o.composeEventHandlers)(u.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,o.composeEventHandlers)(u.onPointerMove,e=>{x.current=e.pointerType,s?d.onItemLeave?.():"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,o.composeEventHandlers)(u.onPointerLeave,e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:(0,o.composeEventHandlers)(u.onKeyDown,e=>{s||e.target!==e.currentTarget||(d.searchRef?.current===""||" "!==e.key)&&(O.includes(e.key)&&P()," "===e.key&&e.preventDefault())})})})})},"SelectItem")),ev="SelectItemText",eg=r.forwardRef(I(function(e,t){let{__scopeSelect:i,className:o,style:s,...l}=e,u=B(ev,i),c=ee(ev,i),d=em(ev,i),h=_(ev,i),[f,p]=r.useState(null),m=(0,b.useCallbackRef)(e=>c.itemTextRefCallback?.(e,d.value,d.disabled)),y=(0,a.useComposedRefs)(t,p,d.onItemTextChange,m),g=f?.textContent,w=r.useMemo(()=>(0,M.jsx)("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:C,onNativeOptionRemove:x}=h;return(0,S.useLayoutEffect)(()=>(C(w),()=>x(w)),[C,x,w]),(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(v.Primitive.span,{id:d.textId,...l,ref:y}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren&&!eD(u.value)?n.createPortal(l.children,u.valueNode):null]})},"SelectItemText")),eb=r.forwardRef(I(function(e,t){let{__scopeSelect:r,...n}=e;return em("SelectItemIndicator",r).isSelected?(0,M.jsx)(v.Primitive.span,{"aria-hidden":!0,...n,ref:t}):null},"SelectItemIndicator")),ew="SelectScrollUpButton",eS=r.forwardRef(I(function(e,t){let n=ee(ew,e.__scopeSelect),i=es(ew,e.__scopeSelect),[o,s]=r.useState(!1),l=(0,a.useComposedRefs)(t,i.onScrollButtonChange);return(0,S.useLayoutEffect)(()=>{if(n.viewport&&n.isPositioned){let e=function(){s(t.scrollTop>0)};I(e,"handleScroll");let t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,M.jsx)(eP,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null},"SelectScrollUpButton")),eC="SelectScrollDownButton",ex=r.forwardRef(I(function(e,t){let n=ee(eC,e.__scopeSelect),i=es(eC,e.__scopeSelect),[o,s]=r.useState(!1),l=(0,a.useComposedRefs)(t,i.onScrollButtonChange);return(0,S.useLayoutEffect)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;s(Math.ceil(t.scrollTop)<e)};I(e,"handleScroll");let t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,M.jsx)(eP,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}
1,"SelectScrollDownButton")),eP=r.forwardRef(I(function(e,t){let{__scopeSelect:n,onAutoScroll:i,...s}=e,a=ee("SelectScrollButton",n),l=r.useRef(null),u=q(n),c=r.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return r.useEffect(()=>()=>c(),[c]),(0,S.useLayoutEffect)(()=>{let e=u().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[u]),(0,M.jsx)(v.Primitive.div,{"aria-hidden":!0,...s,ref:t,style:{flexShrink:0,...s.style},onPointerDown:(0,o.composeEventHandlers)(s.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(i,50))}),onPointerMove:(0,o.composeEventHandlers)(s.onPointerMove,()=>{a.onItemLeave?.(),null===l.current&&(l.current=window.setInterval(i,50))}),onPointerLeave:(0,o.composeEventHandlers)(s.onPointerLeave,()=>{c()})})},"SelectScrollButtonImpl")),eE=r.forwardRef(I(function(e,t){let{__scopeSelect:r,...n}=e;return(0,M.jsx)(v.Primitive.div,{"aria-hidden":!0,...n,ref:t})},"SelectSeparator")),eM=r.forwardRef(I(function(e,t){let{__scopeSelect:r,...n}=e,i=Q(r);return"popper"===ee("SelectArrow",r).position?(0,M.jsx)(p.Arrow,{...i,...n,ref:t}):null},"SelectArrow")),eR=r.forwardRef(I(function({__scopeSelect:e,...t},n){let i=B("SelectBubbleInput",e),{value:o,onValueChange:s,required:l,disabled:u,name:c,autoComplete:d,form:h}=i,{nativeOptions:f,nativeSelectKey:p}=i,m=r.useRef(null),y=(0,a.useComposedRefs)(n,m),g=o??"",b=C(g),w=Array.from(f).some(e=>(e.props.value??"")==="");return r.useEffect(()=>{let e=m.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(b!==g&&t){let r=new Event("change",{bubbles:!0});t.call(e,g),e.dispatchEvent(r)}},[b,g]),(0,M.jsxs)(v.Primitive.select,{"aria-hidden":!0,required:l,tabIndex:-1,name:c,autoComplete:d,disabled:u,form:h,onChange:e=>s(e.target.value),...t,style:{...x.VISUALLY_HIDDEN_STYLES,...t.style},ref:y,defaultValue:g,children:[eD(o)&&!w?(0,M.jsx)("option",{value:""}):null,Array.from(f)]},p)},"SelectBubbleInput"));function eI(e){return"function"==typeof e}function eD(e){return""===e||void 0===e}function eO(e){let t=(0,b.useCallbackRef)(e),n=r.useRef(""),i=r.useRef(0),o=r.useCallback(e=>{t(n.current+e)},[t]),s=r.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,o,s]}function eT(e,t,r){let n=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=r?e.indexOf(r):-1,o=ej(e,Math.max(i,0));1===n.length&&(o=o.filter(e=>e!==r));let s=o.find(e=>e.textValue.toLowerCase().startsWith(n.toLowerCase()));return s!==r?s:void 0}function ej(e,t){return e.map((r,n)=>e[(t+n)%e.length])}I(eI,"isFunction"),I(eD,"shouldShowPlaceholder"),I(eO,"useTypeaheadSearch"),I(eT,"findNextItem"),I(ej,"wrapArray"),e.s(["Arrow",0,eM,"Content",0,Z,"Group",0,ed,"Icon",0,G,"Item",0,ey,"ItemIndicator",0,eb,"ItemText",0,eg,"Label",0,eh,"Portal",0,Y,"Root",0,V,"ScrollDownButton",0,ex,"ScrollUpButton",0,eS,"Select",0,V,"SelectArrow",0,eM,"SelectContent",0,Z,"SelectGroup",0,ed,"SelectIcon",0,G,"SelectItem",0,ey,"SelectItemIndicator",0,eb,"SelectItemText",0,eg,"SelectLabel",0,eh,"SelectPortal",0,Y,"SelectScrollDownButton",0,ex,"SelectScrollUpButton",0,eS,"SelectSeparator",0,eE,"SelectTrigger",0,U,"SelectValue",0,N,"SelectViewport",0,el,"Separator",0,eE,"Trigger",0,U,"Value",0,N,"Viewport",0,el,"createSelectScope",0,H,"unstable_BubbleInput",0,eR,"unstable_Provider",0,K,"unstable_SelectBubbleInput",0,eR,"unstable_SelectProvider",0,K],609780)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.