(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,442291,e=>{"use strict";e.s(["f",0,function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}])},113739,581065,e=>{"use strict";e.s(["f",0,function(e,t,r=Object.is){let{length:n}=e;if(n!==t.length)return!1;for(let l=0;l{"use strict";var t=e.i(651681);let r={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};r.node;let n=(0,t.f)(r);e.s(["f",0,n])},206581,e=>{"use strict";var t=e.i(993844);e.s(["f",()=>t.f])},987457,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(136562);e.s(["f",0,function(e){let l,i,o,a,s,u,c=(0,r.c)(15),{children:f,className:d,variant:p,decorative:m,ringClassName:h}=e,g=void 0!==m&&m||void 0;c[0]!==d?(l=(0,n.f)("relative flex shrink-0 items-center justify-center","box-content p-px","overflow-hidden rounded-sm bg-background","size-6",d),c[0]=d,c[1]=l):l=c[1],c[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.f)("absolute inset-px flex items-center justify-center","[&_img]:absolute [&_img]:inset-0 [&_img]:size-full [&_img]:object-contain","[&_img]:rounded-sm"),c[2]=i):i=c[2],c[3]!==f?(o=(0,t.jsx)("div",{className:i,children:f}),c[3]=f,c[4]=o):o=c[4];let v="app"===(void 0===p?"default":p)&&"dark:inset-px dark:ring-white";return c[5]!==h||c[6]!==v?(a=(0,n.f)("pointer-events-none absolute inset-0 rounded-[inherit] ring-1 ring-inset ring-border/60",v,h),c[5]=h,c[6]=v,c[7]=a):a=c[7],c[8]!==a?(s=(0,t.jsx)("div",{"aria-hidden":!0,className:a}),c[8]=a,c[9]=s):s=c[9],c[10]!==g||c[11]!==l||c[12]!==o||c[13]!==s?(u=(0,t.jsxs)("div",{"aria-hidden":g,className:l,children:[o,s]}),c[10]=g,c[11]=l,c[12]=o,c[13]=s,c[14]=u):u=c[14],u}])},829622,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(214051),l=e.i(51365),i=e.i(288265),o=e.i(16043);e.s(["RemoteFavicon",0,function(e){let a,s,u,c,f,d,p,m,h,g,v,x,b,y=(0,r.c)(55),S=(0,i.f)(),[w,R]=(0,o.useState)(null),[I,A]=(0,o.useState)(null),[j,T]=(0,o.useState)(!1),[C,M]=(0,o.useState)(!1),N=e.size||256;y[0]!==j||y[1]!==C||y[2]!==e.curatedIconAppId||y[3]!==e.faviconFor||y[4]!==e.imgSrc||y[5]!==N?(a=function({faviconFor:e,size:t,didCuratedIconFail:r,didSiteIconFail:n,curatedIconAppId:i,imgSrc:o}){if(o)return{source:"given",src:o};if(void 0!==i&&(0,l.Q)(e)&&!r)return{source:"curated",src:(0,l.$)(e)?e:(0,l.g)(i)};let a=n?(0,l.Z)(e):null;return null!==a?{source:"parent-site",src:(0,l.e)(a,t)}:{source:"site",src:(0,l.e)(e,t)}}({faviconFor:e.faviconFor,size:N,didCuratedIconFail:j,didSiteIconFail:C,curatedIconAppId:e.curatedIconAppId,imgSrc:e.imgSrc}),y[0]=j,y[1]=C,y[2]=e.curatedIconAppId,y[3]=e.faviconFor,y[4]=e.imgSrc,y[5]=N,y[6]=a):a=y[6];let{source:E,src:V}=a;y[7]!==e.faviconFor||y[8]!==N||y[9]!==E?(s=t=>{"site"!==E||N<=16||t>16||null!==(0,l.Z)(e.faviconFor)&&M(!0)},y[7]=e.faviconFor,y[8]=N,y[9]=E,y[10]=s):s=y[10];let P=s;y[11]!==e.faviconFor||y[12]!==E?(u=t=>{switch(E){case"curated":if((0,l.$)(e.faviconFor))return void R(t);T(!0);return;case"site":if(null===(0,l.Z)(e.faviconFor))return void R(t);M(!0);return;case"given":case"parent-site":return void R(t);default:R(t)}},y[11]=e.faviconFor,y[12]=E,y[13]=u):u=y[13];let k=u;y[14]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{R(null)},y[14]=c):c=y[14],y[15]!==V?(f=[V],y[15]=V,y[16]=f):f=y[16],(0,o.useEffect)(c,f),y[17]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{T(!1),M(!1)},y[17]=d):d=y[17],y[18]!==e.curatedIconAppId||y[19]!==e.faviconFor||y[20]!==e.imgSrc||y[21]!==N?(p=[e.faviconFor,e.curatedIconAppId,e.imgSrc,N],y[18]=e.curatedIconAppId,y[19]=e.faviconFor,y[20]=e.imgSrc,y[21]=N,y[22]=p):p=y[22],(0,o.useEffect)(d,p),y[23]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{A(null)},y[23]=m):m=y[23],y[24]!==e.imgSrcDark?(h=[e.imgSrcDark],y[24]=e.imgSrcDark,y[25]=h):h=y[25],(0,o.useEffect)(m,h),y[26]!==S||y[27]!==e.faviconFor?(g=S("Favicon for {faviconFor}",{faviconFor:e.faviconFor}),y[26]=S,y[27]=e.faviconFor,y[28]=g):g=y[28],y[29]!==N||y[30]!==g?(v={width:N,height:N,alt:g,className:"h-full w-full object-cover"},y[29]=N,y[30]=g,y[31]=v):v=y[31];let O=v;if(e.imgSrcDark){let r,l,i;return y[32]!==w||y[33]!==O||y[34]!==k||y[35]!==P||y[36]!==V?(r=(0,t.jsx)("span",{className:"block h-full w-full shrink-0 dark:hidden",children:w?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...O,src:V,onError:e=>k(e.toString()),onLoad:e=>P(e.currentTarget.naturalWidth)})}),y[32]=w,y[33]=O,y[34]=k,y[35]=P,y[36]=V,y[37]=r):r=y[37],y[38]!==I||y[39]!==O||y[40]!==e.imgSrcDark?(l=(0,t.jsx)("span",{className:"hidden h-full w-full shrink-0 dark:block",children:I?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...O,src:e.imgSrcDark,onError:e=>A(e.toString())})}),y[38]=I,y[39]=O,y[40]=e.imgSrcDark,y[41]=l):l=y[41],y[42]!==e.className||y[43]!==r||y[44]!==l?(i=(0,t.jsxs)("div",{className:e.className,children:[r,l]}),y[42]=e.className,y[43]=r,y[44]=l,y[45]=i):i=y[45],i}return y[46]!==w||y[47]!==O||y[48]!==k||y[49]!==P||y[50]!==V?(x=w?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("picture",{className:"h-full w-full shrink-0",children:(0,t.jsx)("img",{...O,src:V,loading:"lazy",decoding:"async",onError:e=>k(e.toString()),onLoad:e=>P(e.currentTarget.naturalWidth)})}),y[46]=w,y[47]=O,y[48]=k,y[49]=P,y[50]=V,y[51]=x):x=y[51],y[52]!==e.className||y[53]!==x?(b=(0,t.jsx)("div",{className:e.className,children:x}),y[52]=e.className,y[53]=x,y[54]=b):b=y[54],b}])},326e3,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(16043),l=e.i(367898),i=e.i(82153),o=e.i(480758),a=e.i(869939),s=e.i(389475),u=e.i(533124),c=e.i(815922),f=e.i(195845),d=e.i(326855),p=e.i(115370),m=e.i(403598),h=e.i(646125),g=e.i(920800),v=e.i(378530),x=e.i(499299),b=e.i(107397);let y=n.createContext(void 0),S=n.createContext(void 0);function w(){let e=n.useContext(y);if(void 0===e)throw Error((0,b.f)(60));return e}function R(){let e=n.useContext(S);if(void 0===e)throw Error((0,b.f)(61));return e}var I=e.i(141436),A=e.i(967090),j=e.i(461430),T=e.i(248229),C=e.i(113739);let M=(e,t)=>Object.is(e,t);function N(e,t,r){return null==e||null==t?Object.is(e,t):r(e,t)}function E(e,t,r){return!!e&&e.some(e=>void 0!==e&&N(t,e,r))}function V(e,t,r){return e?e.findIndex(e=>void 0!==e&&N(e,t,r)):-1}function P(e,t,r,n){let l=n&&Array.isArray(t)?e.findIndex(function(e,t){if(t!==M)return r=>E(e,r,t);let r=new Set(e);return r.delete(void 0),t=>r.has(t)&&(0!==t||e.some(e=>Object.is(t,e)))}(t,r)):V(e,t,r);return -1===l?null:l}var k=e.i(442291);function O(e){var t;return"object"==typeof(t=e?.[0])&&null!=t&&Array.isArray(t.items)}function H(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return(0,k.f)(e)}function $(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?(0,k.f)(e.value):(0,k.f)(e)}function U(e,t,r){if(r&&null!=e)return r(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??H(e,r);if(Array.isArray(t)){let n=O(t)?t.flatMap(e=>e.items):t;if(null==e||"object"!=typeof e){let t=n.find(t=>t.value===e);return t&&null!=t.label?t.label:H(e,r)}if("value"in e){let t=n.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return H(e,r)}let F={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,multiple:e=>e.multiple,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,highlightItemOnHover:e=>e.highlightItemOnHover,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:r,itemToStringValue:n}=e;return null!=t&&(r&&Array.isArray(t)?t.length>0:""!==$(t,n))},hasNullItemLabel:(e,t)=>!!t&&function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(O(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1}(e.items),open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let r=e.isItemEqualToValue,n=e.value;return e.multiple?Array.isArray(n)&&n.some(e=>N(t,e,r)):N(t,n,r)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,itemRoot:e=>e.itemRoot,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};var L=e.i(132887),z=e.i(843753),W=e.i(16739),D=e.i(567894),_=e.i(111407),B=e.i(369714),q=e.i(621441),Y=e.i(957854),G=e.i(866702),Z=e.i(432230),K=e.i(195618),X=e.i(997932),J=e.i(221271),Q=e.i(176322),ee=e.i(76129),et=e.i(664591),er=e.i(825086),en=e.i(93836),el=e.i(658048),ei=e.i(393298),eo=e.i(227012),ea=e.i(225421),es=e.i(100985),eu=e.i(581065),ec=e.i(494015),ef=e.i(279935),ef=ef;ec.f.popupOpen,ef.pressed;let ed={...et.f,...er.s,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},ep=n.forwardRef(function(e,t){let{render:r,className:l,id:i,disabled:o=!1,nativeButton:a=!0,style:s,...u}=e,{setTouched:c,validationMode:d,validation:p,state:m,disabled:h}=(0,I.f)(),{labelId:g}=(0,ee.f)(),v=w(),x=v.useState("readOnly"),b=v.useState("required"),y=v.useState("disabled"),S=h||y||o,R=v.useState("open"),A=v.useState("mounted"),T=v.useState("value"),C=v.useState("triggerProps"),M=v.useState("positionerElement"),N=v.useState("listElement"),E=v.useState("popupSide"),V=v.useState("id"),P=v.useState("labelId"),k=v.useState("hasSelectedValue"),O=A&&M?E:null,H=(0,eu.$)(g,P);(0,j.f)({id:i});let $=(0,f.f)(M),U=n.useRef(null),F=(0,Q.f)(S,U),{getButtonProps:z,buttonRef:W}=(0,ea.f)({disabled:S,native:a}),D=v.useStateSetter("triggerElement"),B=(0,J.e)(),q=(0,J.e)(),Y=(0,J.e)();n.useEffect(()=>{if(R)return Y.start(400,()=>{v.context.selectionRef.current.allowUnselectedMouseUp=!0,v.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{Y.clear()};v.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},q.clear()},[R,v,q,Y]);let G=(0,K.w)(C,{id:i??V,role:"combobox","aria-expanded":R,"aria-haspopup":"listbox","aria-controls":R?N?.id??(0,eo.G)(M)?.id:void 0,"aria-labelledby":H,"aria-readonly":x||void 0,"aria-required":b||void 0,tabIndex:S?-1:0,onFocus(e){F(!0),R&&v.context.alignItemWithTriggerActiveRef.current&&v.context.setOpen(!1,(0,L.j)(_.f.none,e.nativeEvent)),B.start(0,()=>{v.set("forceMount",!0)})},onBlur(e){(0,ei.I)(M,e.relatedTarget)||(c(!0),F(!1),"onBlur"===d&&p.commit(T))},onMouseDown(e){if(R)return;let t=(0,X.f)(e.currentTarget);function r(e){if(!U.current)return;let t=e.target;(0,ei.I)(U.current,t)||(0,ei.I)($.current,t)||(0,el.f)(e,U.current)||v.context.setOpen(!1,(0,L.j)(es.f.cancelOpen,e))}q.start(0,()=>{t.addEventListener("mouseup",r,{once:!0})})}},u,z),Z=p.getValidationProps(S,G);Z.role="combobox";let et={...m,open:R,disabled:S,value:T,readOnly:x,popupSide:O,placeholder:!k};return(0,en.a)("button",e,{ref:[t,U,W,D],state:et,stateAttributesMapping:ed,props:Z})}),em={value:()=>null},eh=n.forwardRef(function(e,r){let{className:l,render:i,children:o,placeholder:a,style:s,...u}=e,c=w(),f=c.useState("value"),d=c.useState("items"),p=c.useState("itemToStringLabel"),m=c.useState("hasSelectedValue"),h=!m&&null!=a&&null==o,g=c.useState("hasNullItemLabel",h),v=null;if("function"==typeof o)v=o(f);else if(null!=o)v=o;else if(h&&!g)v=a;else if(Array.isArray(f))v=f.reduce((e,r,l)=>(l>0&&e.push(", "),e.push((0,t.jsx)(n.Fragment,{children:U(r,d,p)},l)),e),[]);else v=U(f,d,p);return(0,en.a)("span",e,{state:{value:f,placeholder:!m},ref:[r,c.context.valueRef],props:[{children:v},u],stateAttributesMapping:em})}),eg=n.forwardRef(function(e,t){let{render:r,className:n,style:l,...i}=e,o=w().useState("open");return(0,en.a)("span",e,{state:{open:o},ref:t,props:[{"aria-hidden":!0,children:"▼"},i],stateAttributesMapping:et.J})});var ev=e.i(432897);let ex=n.forwardRef(function(e,r){let n=w(),l=n.useState("mounted"),i=n.useState("forceMount");return l||i?(0,t.jsx)(ev.r,{ref:r,...e}):null});var eb=e.i(245966),ey=e.i(700788),eS=e.i(702643);let ew=n.createContext(void 0);function eR(){let e=n.useContext(ew);if(!e)throw Error((0,b.f)(59));return e}var eI=e.i(262589),eA=e.i(510043);function ej(e,t){e&&Object.assign(e.style,t)}let eT={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var eC=e.i(226983),eM=e.i(502067);let eN={position:"fixed"},eE=n.forwardRef(function(e,r){let{anchor:l,className:i,render:o,positionMethod:a,side:s,align:f,sideOffset:d,alignOffset:p,collisionBoundary:m="clipping-ancestors",collisionPadding:h,arrowPadding:g,sticky:v,disableAnchorTracking:x,alignItemWithTrigger:b=!0,collisionAvoidance:y=eA.B,style:S,...I}=e,A=w(),j=R(),T=A.useState("open"),C=A.useState("mounted"),M=A.useState("modal"),N=A.useState("value"),E=A.useState("openMethod"),P=A.useState("positionerElement"),k=A.useState("triggerElement"),O=A.useState("isItemEqualToValue"),H=A.useState("transitionStatus"),$=n.useRef(null),U=n.useRef(null),[F,z]=n.useState(b),W=C&&F&&"touch"!==E;C||F===b||z(b),n.useImperativeHandle(A.context.alignItemWithTriggerActiveRef,()=>W),(0,eM.f)((W||M)&&T,"touch"===E,P,k);let D=(0,eS.k)({anchor:l,floatingRootContext:j,positionMethod:a,mounted:C,side:s,sideOffset:d,align:f,alignOffset:p,arrowPadding:g,collisionBoundary:m,collisionPadding:h,sticky:v,disableAnchorTracking:x??W,collisionAvoidance:y,keepMounted:!0}),B=W?"none":D.side,q=W?eN:D.positionerStyles,Y={open:T,side:B,align:D.align,anchorHidden:D.anchorHidden};(0,u.f)(()=>{A.set("popupSide",D.side)},[A,D.side]);let G=A.useStateSetter("positionerElement"),Z=(0,eC.f)(e,Y,{styles:q,transitionStatus:H,props:I,refs:[r,G],hidden:!C,inert:!T}),K=n.useRef(0),X=(0,c.f)(e=>{if(0===A.context.valuesRef.current.length)return;let t=K.current;K.current=e.size;let r=(0,L.j)(_.f.none);if(0!==t&&!A.state.multiple&&null!==N&&-1===V(A.context.valuesRef.current,N,O)){let e=A.context.initialValueRef.current,t=null!=e&&-1!==V(A.context.valuesRef.current,e,O)?e:null;A.context.setValue(t,r),null===t&&(A.set("selectedIndex",null),A.context.selectedItemTextRef.current=null)}if(0!==t&&A.state.multiple&&Array.isArray(N)){let e=N.filter(e=>-1!==V(A.context.valuesRef.current,e,O));e.length!==N.length&&(A.context.setValue(e,r),0===e.length&&(A.set("selectedIndex",null),A.context.selectedItemTextRef.current=null))}if(T&&W){A.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:""};ej(P,e),ej(A.context.popupRef.current,e)}}),J=n.useMemo(()=>({...D,side:B,alignItemWithTriggerActive:W,setControlledAlignItemWithTrigger:z,scrollUpArrowRef:$,scrollDownArrowRef:U}),[D,B,W,z]);return(0,t.jsx)(ey.f,{elementsRef:A.context.listRef,labelsRef:A.context.labelsRef,onMapChange:X,children:(0,t.jsxs)(ew.Provider,{value:J,children:[C&&M&&(0,t.jsx)(eI.f,{inert:(0,eb.f)(!T),cutout:k}),Z]})})});var eV=e.i(582247),eP=e.i(976987),ek=e.i(906793),eO=e.i(223732),eH=e.i(792343),e$=e.i(788968),eU=e.i(909005),eF=e.i(136435),eL=e.i(383539),ez=e.i(240070),eW=e.i(692933),eD=e.i(24220),eD=eD,e_=e.i(737876),eB=e.i(597233),eq=e.i(182578),eY=e.i(365235),eG=e.i(269098);let eZ="--transform-origin",eK={...et.E,...ez.f},eX=n.forwardRef(function(e,r){let{render:l,className:i,style:o,finalFocus:a,...s}=e,f=w(),d=f.useState("multiple"),p=f.useState("readOnly"),m=f.useState("highlightItemOnHover"),h=R(),{side:g,align:v,alignItemWithTriggerActive:x,isPositioned:b,setControlledAlignItemWithTrigger:y}=eR(),S=null!=(0,e_.f)(!0),I=(0,eG.f)(),{nonce:A,disableStyleElements:j}=(0,eY.f)(),T=f.useState("id"),C=f.useState("open"),M=f.useState("openMethod"),N=f.useState("mounted"),E=f.useState("popupProps"),V=f.useState("transitionStatus"),P=f.useState("triggerElement"),k=f.useState("positionerElement"),O=f.useState("listElement"),H=n.useRef(!1),$=n.useRef(!1),U=n.useRef({}),F=(0,eH.z)(),z=(0,c.f)(e=>{var t;if(!k||!f.context.popupRef.current||!$.current)return;let r="0px"===k.style.top,n="0px"===k.style.bottom;if(H.current||!x||!r&&!n)return void f.context.handleScrollArrowVisibility(e);let l=e0(k),i=(t=k.getBoundingClientRect().height,t/l.y),o=(0,X.f)(k),a=(0,eO.f)(k),s=a.getComputedStyle(k),u=parseFloat(s.marginTop),c=parseFloat(s.marginBottom),d=eJ(a.getComputedStyle(f.context.popupRef.current)),p=Math.min(o.documentElement.clientHeight-u-c,d),m=e.scrollTop,h=eQ(e),g=null,v=e=>{k.style.height=`${e}px`},b=r?h-m:m,y=Math.min(i+b,p);if(b<=Z.S){let t=(0,e$.f)(b,0,p-i);t>0&&v(i+t),e.scrollTop=r?h:0,p-(i+t)<=Z.S&&(H.current=!0),f.context.handleScrollArrowVisibility(e);return}if(p-y>Z.S)g=r?1/0:0;else if(n&&mZ.S&&(e.scrollTop=t)}S>=p-Z.S&&(H.current=!0),f.context.handleScrollArrowVisibility(e)});n.useImperativeHandle(f.context.scrollHandlerRef,()=>z,[z]),(0,eW.f)({open:C,ref:f.context.popupRef,onComplete(){C&&f.context.onOpenChangeComplete(!0)}}),(0,u.f)(()=>{k&&f.context.popupRef.current&&!Object.keys(U.current).length&&(U.current={top:k.style.top||"0",left:k.style.left||"0",right:k.style.right,height:k.style.height,bottom:k.style.bottom,minHeight:k.style.minHeight,maxHeight:k.style.maxHeight,marginTop:k.style.marginTop,marginBottom:k.style.marginBottom})},[f,k]),(0,u.f)(()=>{C||x||($.current=!1,H.current=!1,ej(k,U.current))},[C,x,k]),(0,u.f)(()=>{let e=f.context.popupRef.current;if(!C||!P||!k||!e||x&&!b||"ending"===f.state.transitionStatus)return;if($.current=!0,e.style.removeProperty(eZ),!x)return void F.request(()=>f.context.handleScrollArrowVisibility(O||e));let t=function(e){let{style:t}=e,r={};for(let[e,n]of e2)r[e]=t.getPropertyValue(e),t.setProperty(e,n,"important");return()=>{for(let[e]of e2){let n=r[e];n?t.setProperty(e,n):t.removeProperty(e)}}}(e);try{let t,r=f.context.selectedItemTextRef.current;r?.isConnected||(r=!f.select("hasSelectedValue")&&f.context.firstItemTextRef.current?.isConnected?f.context.firstItemTextRef.current:null);let n=f.context.valueRef.current,l=(0,eO.f)(k),i=l.getComputedStyle(k),o=l.getComputedStyle(e),a=(0,X.f)(P),s=e0(P),u=e1(P.getBoundingClientRect(),s),c=e1(k.getBoundingClientRect(),s),d=u.height,p=O||e,h=p.scrollHeight,g=parseFloat(o.borderBottomWidth),v=parseFloat(i.marginTop)||10,x=parseFloat(i.marginBottom)||10,b=parseFloat(i.minHeight)||100,S=eJ(o),w=a.documentElement.clientHeight-v-x,R=a.documentElement.clientWidth,A=w-u.bottom+d,j="rtl"===I?u.right-c.width:u.left,T=0;if(r&&n){let e=e1(n.getBoundingClientRect(),s);t=e1(r.getBoundingClientRect(),s),j=c.left+("rtl"===I?e.right-t.right:e.left-t.left);let l=e.top-u.top+e.height/2;T=t.top-c.top+t.height/2-l}let C=A+T+x+g,M=Math.min(w,C),N=w-v-x,E=C-M;k.style.left=`${(0,e$.f)(j,5,R-5-c.width)}px`,k.style.height=`${M}px`,k.style.maxHeight="none",k.style.marginTop=`${v}px`,k.style.marginBottom=`${x}px`,e.style.height="100%";let V=eQ(p),$=E>=V-Z.S;$&&(M=Math.min(w,c.height)-(E-V));let F=u.top<20||u.bottom>w-20||Math.ceil(M)+Z.S=N?"0":`${e}px`,k.style.height=`${M}px`,p.scrollTop=eQ(p)}else k.style.bottom="0",p.scrollTop=E;if(t){let r=c.top,n=c.height,l=t.top+t.height/2,i=(0,e$.f)(n>0?(l-r)/n*100:50,0,100);e.style.setProperty(eZ,`50% ${i}%`)}(z===w||M>=S)&&(H.current=!0),f.context.handleScrollArrowVisibility(p),m&&null===f.state.selectedIndex&&null===f.state.activeIndex&&null!=f.context.listRef.current[0]&&f.set("activeIndex",0)}finally{t()}},[f,C,k,P,x,y,F,O,m,I,b]),n.useEffect(()=>{if(!x||!k||!C)return;let e=(0,eO.f)(k);return(0,eP.f)(e,"resize",function(e){f.context.setOpen(!1,(0,L.j)(eD.windowResize,e))})},[f,x,k,C]);let W={...O?{role:"presentation"}:{role:"listbox","aria-multiselectable":d||void 0,"aria-readonly":p||void 0,id:`${T}-list`},onKeyDown(e){S&&eB.J.has(e.key)&&e.stopPropagation()},onScroll(e){O||z(e.currentTarget)},...x&&{style:O?{height:"100%"}:eT},className:!O&&x?eL.f.className:void 0},D=(0,en.a)("div",e,{ref:[r,f.context.popupRef],state:{open:C,transitionStatus:V,side:g,align:v},stateAttributesMapping:eK,props:[E,W,(0,eq.f)(V),s]});return(0,t.jsxs)(n.Fragment,{children:[!j&&eL.f.getElement(A),(0,t.jsx)(eU.f,{context:h,modal:!1,disabled:!N,openInteractionType:M,returnFocus:a,restoreFocus:!0,children:D})]})});function eJ(e){let t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function eQ(e){return(0,Z.j)(e.scrollHeight,e.clientHeight)}function e0(e){return eF.q.getScale(e)}function e1(e,t){return(0,eV._)({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}let e2=[["transform","none"],["scale","1"],["translate","0 0"]];var e3=e.i(485997);let e5=n.createContext(void 0);function e4(){let e=n.useContext(e5);if(!e)throw Error((0,b.f)(57));return e}var e6=e.i(376120),e9=e.i(189351);let e8=n.memo(n.forwardRef(function(e,r){let{render:l,className:i,style:o,value:a=null,label:s,disabled:c=!1,nativeButton:f=!1,...d}=e,p=n.useRef(null),m=(0,e3.f)({guess:!0,label:s,textRef:p}),h=w(),{props:g,multiple:v,disabled:x,readOnly:b,isItemEqualToValue:y}=h.useState("itemRoot"),S=x||c,R=h.useState("isActive",m.index),I=h.useState("open"),A=h.useState("isSelected",a),j=h.useState("isSelectedByFocus",m.index),T=m.index,C=n.useRef(null);(0,u.f)(()=>{let e=h.context.valuesRef.current;return e[T]=a,()=>{delete e[T]}},[T,a,h]),(0,u.f)(()=>{let e,t=h.state.value,r=h.state.selectedIndex,n=r;if(v&&Array.isArray(t)){var l;l=h.context.valuesRef.current,e=(n=E(t,a,y)?null!=r&&T>r&&E(t,l[r],y)?r:T:T===r?P(l,t,y,!0):r)===T,T!==r||e||(h.context.selectedItemTextRef.current=null)}else(e=void 0!==t&&N(a,t,y))&&(n=T);h.set("selectedIndex",n),e&&p.current&&(h.context.selectedItemTextRef.current=p.current)},[T,v,y,h,a]);let M=n.useRef("mouse"),V=n.useRef(!1),{getButtonProps:k,buttonRef:O}=(0,ea.f)({disabled:S,focusableWhenDisabled:!0,native:f,composite:!0});function H(){h.context.selectionRef.current.dragY=0}let $=(0,en.a)("div",e,{ref:[O,r,m.ref,C],state:{disabled:S,selected:A,highlighted:R},props:[g,{role:"option","aria-selected":A,tabIndex:I&&R?0:-1,onKeyDown(e){h.set("activeIndex",T)," "===e.key&&h.context.typingRef.current&&e.preventDefault()},onClick(e){let t="touch"!==M.current,r=e.nativeEvent.pointerType,n=t&&(0,e9.E)(e.nativeEvent)&&(void 0!==r||R),l=t&&!n&&!V.current;V.current=!1,S||l||function(e){if(x||b)return;let t=h.state.value;if(v){let r=Array.isArray(t)?t:[],n=A?r.filter(e=>!N(a,e,y)):[...r,a];h.context.setValue(n,(0,L.j)(e6.f.itemPress,e))}else h.context.setValue(a,(0,L.j)(e6.f.itemPress,e)),h.context.setOpen(!1,(0,L.j)(e6.f.itemPress,e))}(e.nativeEvent)},onPointerEnter(e){M.current=e.pointerType},onPointerMove(e){if("mouse"===e.pointerType&&1===e.buttons){let t=h.context.selectionRef.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){M.current=e.pointerType,V.current=!0,H()},onMouseUp(){if(H(),S||"touch"===M.current||V.current)return;let e=!h.context.selectionRef.current.allowSelectedMouseUp&&A,t=!h.context.selectionRef.current.allowUnselectedMouseUp&&!A;e||t||(V.current=!0,C.current?.click(),V.current=!1)}},d,k]}),U=n.useMemo(()=>({selected:A,index:T,textRef:p,selectedByFocus:j}),[A,T,p,j]);return(0,t.jsx)(e5.Provider,{value:U,children:$})}));var e7=e.i(288646);let te=n.memo(n.forwardRef(function(e,t){let{render:r,className:l,style:i,keepMounted:o,selected:a,...s}=e,u=n.useRef(null),{transitionStatus:c,setMounted:f}=(0,e7.f)(a),d=(0,en.a)("span",e,{ref:[t,u],state:{selected:a,transitionStatus:c},props:[{"aria-hidden":!0,children:"✔️"},s],stateAttributesMapping:ez.f});return(0,eW.f)({batch:!0,enabled:!a,open:a,ref:u,onComplete(){a||f(!1)}}),d})),tt=n.forwardRef(function(e,r){let{selected:n}=e4();return e.keepMounted||n?(0,t.jsx)(te,{...e,selected:n,ref:r}):null}),tr=n.memo(n.forwardRef(function(e,t){let{index:r,textRef:l,selectedByFocus:i}=e4(),o=w(),{render:a,className:s,style:u,...c}=e,f=n.useCallback(e=>{e&&(0===r&&(o.context.firstItemTextRef.current=e),i&&(o.context.selectedItemTextRef.current=e))},[o,r,i]);return(0,en.a)("div",e,{ref:[f,t,l],props:c})})),tn=n.forwardRef(function(e,t){let{render:r,className:n,style:l,direction:i,keepMounted:o,...a}=e,s="up"===i,c=w(),{side:f,scrollDownArrowRef:d,scrollUpArrowRef:p}=eR(),m=c.useState(s?"scrollUpArrowVisible":"scrollDownArrowVisible"),h=c.useState("openMethod"),g=m&&"touch"!==h,v=(0,J.e)(),x=s?p:d,{mounted:b,transitionStatus:y,setMounted:S}=(0,e7.f)(g);(0,u.f)(()=>(c.context.scrollArrowsMountedCountRef.current+=1,c.set("hasScrollArrows",!0),()=>{c.context.scrollArrowsMountedCountRef.current=Math.max(0,c.context.scrollArrowsMountedCountRef.current-1),0===c.context.scrollArrowsMountedCountRef.current&&c.set("hasScrollArrows",!1)}),[c]),(0,eW.f)({open:g,ref:x,onComplete(){g||S(!1)}});let R=(0,en.a)("div",e,{ref:[t,x],state:{direction:i,visible:g,side:f,transitionStatus:y},props:[{"aria-hidden":!0,children:s?"▲":"▼",style:{position:"absolute"},onMouseMove(e){0===e.movementX&&0===e.movementY||v.isStarted()||(c.set("activeIndex",null),v.start(40,function e(){let t=c.state.listElement??c.context.popupRef.current;if(!t)return;c.set("activeIndex",null),c.context.handleScrollArrowVisibility(t);let r=(0,Z.j)(t.scrollHeight,t.clientHeight),n=(0,Z.k)(t.scrollTop,r),l=n===(s?0:r),i=c.context.listRef.current;if(n!==t.scrollTop&&(t.scrollTop=n),l)return void v.clear();if(i.length>0){let e=x.current?.offsetHeight||0;t.scrollTop=function(e,t,r,n,l,i){if(t){let t=0,n=r+l-Z.S;for(let r=0;r=n){t=r;break}}let o=Math.max(0,t-1),a=e[o];return oa){o=Math.max(0,t-1);break}}let s=Math.min(e.length-1,o+1),u=e[s];return s>o&&u?(0,Z.k)(u.offsetTop+u.offsetHeight-n+l,i):i}(i,s,n,t.clientHeight,e,r)}v.start(40,e)}))},onMouseLeave(){v.clear()}},a],stateAttributesMapping:ez.f});return b||o?R:null}),tl=n.forwardRef(function(e,r){return(0,t.jsx)(tn,{...e,ref:r,direction:"down"})}),ti=n.forwardRef(function(e,r){return(0,t.jsx)(tn,{...e,ref:r,direction:"up"})}),to=n.createContext(void 0),ta=n.forwardRef(function(e,r){let{render:l,className:i,style:o,...a}=e,[s,u]=n.useState(),c=n.useMemo(()=>({labelId:s,setLabelId:u}),[s,u]),f=(0,en.a)("div",e,{ref:r,props:[{role:"group","aria-labelledby":s},a]});return(0,t.jsx)(to.Provider,{value:c,children:f})});var ts=e.i(811673);let tu=n.forwardRef(function(e,t){let{render:r,className:l,style:i,id:o,...a}=e,{setLabelId:s}=function(){let e=n.useContext(to);if(void 0===e)throw Error((0,b.f)(56));return e}(),c=(0,ts.f)(o);return(0,u.f)(()=>(s(c),()=>{s(e=>e===c?void 0:e)}),[c,s]),(0,en.a)("div",e,{ref:t,props:[{id:c,"aria-hidden":!0},a]})});e.s(["Group",0,ta,"GroupLabel",0,tu,"Icon",0,eg,"Item",0,e8,"ItemIndicator",0,tt,"ItemText",0,tr,"Popup",0,eX,"Portal",0,ex,"Positioner",0,eE,"Root",0,function(e){let r,{id:b,value:w,defaultValue:R=null,onValueChange:E,open:V,defaultOpen:k=!1,onOpenChange:O,name:U,form:X,autoComplete:J,disabled:Q=!1,readOnly:ee=!1,required:et=!1,modal:er=!0,actionsRef:en,inputRef:el,onOpenChangeComplete:ei,items:eo,multiple:ea=!1,itemToStringLabel:es,itemToStringValue:eu,isItemEqualToValue:ec=M,highlightItemOnHover:ef=!0,children:ed}=e,{clearErrors:ep}=(0,q.f)(),{setDirty:em,setTouched:eh,setFocused:eg,validityData:ev,setFilled:ex,name:eb,disabled:ey,validation:eS,validationMode:ew}=(0,I.f)(),eR=(0,j.f)({id:b}),eI=ey||Q,eA=eb??U,[ej,eT]=(0,s.f)({controlled:w,default:ea?R??p.v:R,name:"Select",state:"value"}),[eC,eM]=(0,s.f)({controlled:V,default:k,name:"Select",state:"open"}),eN=n.useRef([]),eE=n.useRef([]),eV=n.useRef(null),eP=n.useRef(null),ek=n.useRef(0),eO=n.useRef(null),eH=n.useRef([]),e$=n.useRef(!1),eU=n.useRef(null),eF=n.useRef(null),eL=n.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),ez=n.useRef(!1),eW=n.useRef(ej),{openMethod:eD,triggerProps:e_}=(0,G.$)(eC),eB=(0,o.useRefWithInit)(()=>new d.f({id:eR,labelId:void 0,modal:er,multiple:ea,disabled:eI,readOnly:ee,required:et,highlightItemOnHover:ef,itemToStringLabel:es,itemToStringValue:eu,isItemEqualToValue:ec,value:ej,open:eC,mounted:eC,transitionStatus:void 0,items:eo,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:p.w,triggerProps:p.w,itemRoot:{props:p.w,multiple:ea,disabled:eI,readOnly:ee,isItemEqualToValue:ec},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:p.x,setOpen:p.x,handleScrollArrowVisibility:p.x,onOpenChangeComplete:p.x,listRef:eN,popupRef:eV,scrollHandlerRef:eP,scrollArrowsMountedCountRef:ek,valueRef:eO,valuesRef:eH,labelsRef:eE,typingRef:e$,selectionRef:eL,firstItemTextRef:eU,selectedItemTextRef:eF,alignItemWithTriggerActiveRef:ez,initialValueRef:eW},F)).current,[eq,eY]=n.useState(!1),{mounted:eG,transitionStatus:eZ,forceUnmount:eK}=(0,T.f)({open:eC,ref:eV,preventUnmountOnClose:eq,setPreventUnmountOnClose:eY,onUnmount(){eB.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),ei?.(!1)}}),eX=eB.useState("activeIndex"),eJ=eB.useState("selectedIndex"),eQ=eB.useState("triggerElement"),e0=eB.useState("positionerElement"),e1=function(e){let[t,r]=n.useState({current:e,previous:null});return Object.is(e,t.current)||r({current:e,previous:t.current}),t.previous}(eD),e2=eD??e1,e3=n.useMemo(()=>ea?"":$(ej,eu),[ea,ej,eu]),e5=n.useMemo(()=>ea&&Array.isArray(ej)?ej.map(e=>$(e,eu)):$(ej,eu),[ea,ej,eu]),e4=(0,f.f)(eQ),e6=(0,c.f)(()=>e5);(0,A.f)(e4,eR,ej,e6,!eI,U);let e9=ea?Array.isArray(ej)&&ej.length>0:null!=ej&&""!==e3;(0,u.f)(()=>{ex(e9)},[e9,ex]),(0,u.f)(function(){let e=P(eH.current,ej,ec,ea);null===e&&(eF.current=null),eC||eB.set("selectedIndex",e)},[ea,eC,ej,ec,eB]),(0,Y.f)(ej,()=>{var e;ep(eA),em((e=ev.initialValue,Array.isArray(ej)&&Array.isArray(e)?!(0,C.f)(ej,e,(e,t)=>N(e,t,ec)):ej!==e)),eS.change(ej)});let e8=(0,c.f)((e,t)=>{let r=(0,B.x)(t);O?.(e,t),!t.isCanceled&&(e||eY(r()),eM(e),e||t.reason!==z.f.focusOut&&t.reason!==W.f.outsidePress||(eh(!0),eg(!1),"onBlur"===ew&&eS.commit(ej)))});n.useImperativeHandle(en,()=>({unmount:eK,close:()=>{eB.state.open&&e8(!1,(0,L.j)(D.f.imperativeAction))}}),[eK,e8,eB]);let e7=(0,c.f)((e,t)=>{E?.(e,t),t.isCanceled||eT(e)}),te=(0,c.f)(e=>{let t=(0,Z.j)(e.scrollHeight,e.clientHeight),r=(0,Z.k)(e.scrollTop,t);eB.set("scrollUpArrowVisible",r>0),eB.set("scrollDownArrowVisible",r(0,a.f)(eN.current[e]),onMatch(e){eC?eB.set("activeIndex",e):e7(eH.current[e],(0,L.j)(_.f.none))},onTyping(e){e$.current=e}}),to=n.useMemo(()=>(0,K.w)(ti.reference,tl.reference,tn.reference,tr.reference,e_),[tr.reference,ti.reference,tl.reference,tn.reference,e_]),ta=n.useMemo(()=>(0,K.w)(B.X,ti.floating,tl.floating,tn.floating),[ti.floating,tl.floating,tn.floating]),ts=tl.item??p.w,tu=n.useMemo(()=>({props:ts,multiple:ea,disabled:eI,readOnly:ee,isItemEqualToValue:ec}),[ts,ea,eI,ee,ec]);eB.useContextCallback("setValue",e7),eB.useContextCallback("setOpen",e8),eB.useContextCallback("handleScrollArrowVisibility",te),eB.useContextCallback("onOpenChangeComplete",ei),(r=n.useRef(!0)).current&&(r.current=!1,(()=>{eB.update({popupProps:ta,triggerProps:to,itemRoot:tu})})()),eB.useSyncedValues({id:eR,modal:er,multiple:ea,disabled:eI,readOnly:ee,required:et,highlightItemOnHover:ef,value:ej,open:eC,mounted:eG,transitionStatus:eZ,popupProps:ta,triggerProps:to,itemRoot:tu,items:eo,itemToStringLabel:es,itemToStringValue:eu,isItemEqualToValue:ec,openMethod:e2});let tc=(0,i.A)(el,eS.inputRef),tf=ea?void 0:eA,td=n.useMemo(()=>ea&&Array.isArray(ej)&&eA?ej.map(e=>{let r=$(e,eu);return(0,t.jsx)("input",{type:"hidden",form:X,name:eA,value:r,disabled:eI},r)}):null,[ea,ej,X,eA,eu,eI]);return(0,t.jsxs)(y.Provider,{value:eB,children:[(0,t.jsx)(S.Provider,{value:tt,children:ed}),(0,t.jsx)("input",{...eS.getValidationProps(eI,{onFocus(){eB.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||eI||ee)return;let t=e.currentTarget.value,r=(0,L.j)(_.f.none,e.nativeEvent);eB.set("forceMount",!0),queueMicrotask(function(){if(ea)return;let e=t.toLowerCase(),n=eH.current.findIndex(t=>$(t,eu).toLowerCase()===e||H(t,es).toLowerCase()===e);-1===n&&(n=eH.current.findIndex((t,r)=>{let n=eE.current[r];return null!=n&&n.toLowerCase()===e}));let l=eH.current[n];null!=l&&e7(l,r)})}}),id:eR&&null==tf?`${eR}-hidden-input`:void 0,form:X,name:tf,autoComplete:J,value:e3,disabled:eI,required:et&&!(ea&&e9),readOnly:ee,ref:tc,style:eA?l.L:l.p,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),td]})},"ScrollDownArrow",0,tl,"ScrollUpArrow",0,ti,"Trigger",0,ep,"Value",0,eh],74518);var tc=e.i(74518),tc=tc,tf=tc,td=tc,tp=tc,tm=tc,th=tc,tg=tc,tv=tc,tx=tc,tb=tc,ty=tc,tS=tc,tw=tc,tR=tc,tI=e.i(427150),tA=e.i(207298),tj=e.i(872635),tT=e.i(354896),tC=e.i(206581),tM=e.i(136562),tN=e.i(801127),tE=e.i(374696),tV=e.i(261499);let tP=(0,tA.f)("hover:bg-muted/30",{variants:{size:{default:"h-10 text-muted-foreground",compact:(0,tM.f)("h-8 text-muted-foreground shadow-none",tN.N),responsive:(0,tM.f)("h-10 max-md:h-8 text-muted-foreground",tN.N)},variant:{square:"rounded-md",rounded:"rounded-full"}},defaultVariants:{size:"default",variant:"square"}}),tk=(0,tA.f)("",{variants:{variant:{square:"rounded-md",rounded:"rounded-xl"}},defaultVariants:{variant:"square"}}),tO=(0,tA.f)("rounded-sm",{variants:{size:{default:"truncate text-muted-foreground text-body",compact:"truncate text-muted-foreground md:text-overline",responsive:"truncate text-muted-foreground text-body"}},defaultVariants:{size:"default"}}),tH=(0,n.createContext)({variant:"square",size:"default",indicator:"trailing"});function t$(e){if(!(0,n.isValidElement)(e))return[];let t=tU(e.props.children)??[];if(e.type!==tW)return t;let r=function(e){if(!("value"in e))return;let t=e.label??e.textValue??e.children;if(void 0!==t)return{label:t,value:e.value??null}}(e.props);return r?[r,...t]:t}function tU(e){let t=n.Children.toArray(e).flatMap(t$);if(0!==t.length)return t}let tF=tf.Group;function tL(e){let n,l,i,o,a,s,u=(0,r.c)(11);return u[0]!==e?({className:n,ref:i,...l}=e,u[0]=e,u[1]=n,u[2]=l,u[3]=i):(n=u[1],l=u[2],i=u[3]),u[4]!==n?(o=(0,tM.f)("flex cursor-default items-center justify-center py-1",n),u[4]=n,u[5]=o):o=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(tC.f,{className:"h-4 w-4"}),u[6]=a):a=u[6],u[7]!==l||u[8]!==i||u[9]!==o?(s=(0,t.jsx)(th.ScrollUpArrow,{ref:i,className:o,...l,children:a}),u[7]=l,u[8]=i,u[9]=o,u[10]=s):s=u[10],s}function tz(e){let n,l,i,o,a,s,u=(0,r.c)(11);return u[0]!==e?({className:n,ref:i,...l}=e,u[0]=e,u[1]=n,u[2]=l,u[3]=i):(n=u[1],l=u[2],i=u[3]),u[4]!==n?(o=(0,tM.f)("flex cursor-default items-center justify-center py-1",n),u[4]=n,u[5]=o):o=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(tT.f,{className:"h-4 w-4"}),u[6]=a):a=u[6],u[7]!==l||u[8]!==i||u[9]!==o?(s=(0,t.jsx)(tg.ScrollDownArrow,{ref:i,className:o,...l,children:a}),u[7]=l,u[8]=i,u[9]=o,u[10]=s):s=u[10],s}function tW(e){let l,i,o,a,s,u,c,f,d,p,m,h=(0,r.c)(25);h[0]!==e?({className:i,children:l,label:a,textValue:c,description:o,ref:u,...s}=e,h[0]=e,h[1]=l,h[2]=i,h[3]=o,h[4]=a,h[5]=s,h[6]=u,h[7]=c):(l=h[1],i=h[2],o=h[3],a=h[4],s=h[5],u=h[6],c=h[7]);let g=(0,n.use)(tH),v="trailing"===g.indicator,x=a??c;return h[8]!==i||h[9]!==o||h[10]!==v||h[11]!==g.size?(f=(0,tM.f)("relative flex w-full cursor-pointer select-none items-center py-1.5",v?"pl-2 pr-8":"px-2","text-body font-medium outline-none","focus:bg-card-hover focus:text-accent-foreground","data-[selected]:bg-accent data-[selected]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",tO({size:g.size}),(0,tI.f)(o)&&"h-auto whitespace-normal py-2",i),h[8]=i,h[9]=o,h[10]=v,h[11]=g.size,h[12]=f):f=h[12],h[13]!==v?(d=v&&(0,t.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(tS.ItemIndicator,{children:(0,t.jsx)(tj.f,{className:"h-4 w-4"})})}),h[13]=v,h[14]=d):d=h[14],h[15]!==l||h[16]!==o?(p=(0,tI.f)(o)?(0,t.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)(tw.ItemText,{children:l}),(0,t.jsx)("span",{className:"text-body font-normal text-muted-foreground",children:o})]}):(0,t.jsx)(tw.ItemText,{children:l}),h[15]=l,h[16]=o,h[17]=p):p=h[17],h[18]!==s||h[19]!==u||h[20]!==x||h[21]!==f||h[22]!==d||h[23]!==p?(m=(0,t.jsxs)(tR.Item,{ref:u,label:x,className:f,...s,children:[d,p]}),h[18]=s,h[19]=u,h[20]=x,h[21]=f,h[22]=d,h[23]=p,h[24]=m):m=h[24],m}e.s(["Select",0,function(e){let n,l,i,o,a,s,u,c,f,d,p,m,h,g,v=(0,r.c)(29);v[0]!==e?({variant:s,size:u,indicator:c,children:n,onValueChange:o,onOpenChange:i,items:l,...a}=e,v[0]=e,v[1]=n,v[2]=l,v[3]=i,v[4]=o,v[5]=a,v[6]=s,v[7]=u,v[8]=c):(n=v[1],l=v[2],i=v[3],o=v[4],a=v[5],s=v[6],u=v[7],c=v[8]);let x=void 0===s?"square":s,b=void 0===u?"default":u,y=void 0===c?"trailing":c;v[9]!==n||v[10]!==l?(f=l??tU(n),v[9]=n,v[10]=l,v[11]=f):f=v[11];let S=f;v[12]!==y||v[13]!==b||v[14]!==x?(d={variant:x,size:b,indicator:y},v[12]=y,v[13]=b,v[14]=x,v[15]=d):d=v[15];let w=d;return v[16]!==o?(p=o?e=>{null!==e&&o(e)}:void 0,v[16]=o,v[17]=p):p=v[17],v[18]!==i?(m=i?e=>i(e):void 0,v[18]=i,v[19]=m):m=v[19],v[20]!==n||v[21]!==a||v[22]!==S||v[23]!==p||v[24]!==m?(h=(0,t.jsx)(tc.Root,{items:S,onValueChange:p,onOpenChange:m,...a,children:n}),v[20]=n,v[21]=a,v[22]=S,v[23]=p,v[24]=m,v[25]=h):h=v[25],v[26]!==w||v[27]!==h?(g=(0,t.jsx)(tH,{value:w,children:h}),v[26]=w,v[27]=h,v[28]=g):g=v[28],g},"SelectContent",0,function(e){let l,i,o,a,s,u,c,f,d,p,m,h,g,v,x,b,y,S,w=(0,r.c)(37);w[0]!==e?({className:o,children:i,position:d,align:l,side:c,sideOffset:f,collisionAvoidance:a,showScrollButtons:p,matchTriggerWidth:m,ref:u,...s}=e,w[0]=e,w[1]=l,w[2]=i,w[3]=o,w[4]=a,w[5]=s,w[6]=u,w[7]=c,w[8]=f,w[9]=d,w[10]=p,w[11]=m):(l=w[1],i=w[2],o=w[3],a=w[4],s=w[5],u=w[6],c=w[7],f=w[8],d=w[9],p=w[10],m=w[11]);let R=void 0===p||p,I=void 0!==m&&m,A=(0,n.use)(tH),j=(0,tE.r)(),T=c??"bottom",C=f??5;return w[12]!==o||w[13]!==I||w[14]!==A.variant?(h=(0,tM.f)("relative z-overlay max-h-(--available-height) min-w-32","overflow-y-auto overflow-x-hidden","border border-border bg-popover text-popover-foreground shadow-md outline-none","data-[side=none]:opacity-0",tV.X,"origin-(--transform-origin)",tk({variant:A.variant}),I&&"w-(--anchor-width)","data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",o),w[12]=o,w[13]=I,w[14]=A.variant,w[15]=h):h=w[15],w[16]!==R?(g=R&&(0,t.jsx)(tL,{}),w[16]=R,w[17]=g):g=w[17],w[18]===Symbol.for("react.memo_cache_sentinel")?(v=(0,tM.f)("p-1","w-full min-w-(--anchor-width)"),w[18]=v):v=w[18],w[19]!==i?(x=(0,t.jsx)("div",{className:v,children:i}),w[19]=i,w[20]=x):x=w[20],w[21]!==R?(b=R&&(0,t.jsx)(tz,{}),w[21]=R,w[22]=b):b=w[22],w[23]!==s||w[24]!==u||w[25]!==b||w[26]!==h||w[27]!==g||w[28]!==x?(y=(0,t.jsxs)(tv.Popup,{ref:u,className:h,...s,children:[g,x,b]}),w[23]=s,w[24]=u,w[25]=b,w[26]=h,w[27]=g,w[28]=x,w[29]=y):y=w[29],w[30]!==l||w[31]!==a||w[32]!==y||w[33]!==T||w[34]!==C||w[35]!==j?(S=(0,t.jsx)(tx.Portal,{children:(0,t.jsx)(tb.Positioner,{align:l,side:T,sideOffset:C,alignItemWithTrigger:!1,collisionAvoidance:a,className:j,children:y})}),w[30]=l,w[31]=a,w[32]=y,w[33]=T,w[34]=C,w[35]=j,w[36]=S):S=w[36],S},"SelectGroup",0,tF,"SelectItem",0,tW,"SelectLabel",0,function(e){let n,l,i,o,a,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:i,...l}=e,s[0]=e,s[1]=n,s[2]=l,s[3]=i):(n=s[1],l=s[2],i=s[3]),s[4]!==n?(o=(0,tM.f)("px-2 py-1.5 text-body font-medium",n),s[4]=n,s[5]=o):o=s[5],s[6]!==l||s[7]!==i||s[8]!==o?(a=(0,t.jsx)(ty.GroupLabel,{ref:i,className:o,...l}),s[6]=l,s[7]=i,s[8]=o,s[9]=a):a=s[9],a},"SelectTrigger",0,function(e){let l,i,o,a,s,u,c,f,d,p=(0,r.c)(22);p[0]!==e?({className:i,children:l,hideChevron:s,shouldAnimateChevron:u,ref:a,...o}=e,p[0]=e,p[1]=l,p[2]=i,p[3]=o,p[4]=a,p[5]=s,p[6]=u):(l=p[1],i=p[2],o=p[3],a=p[4],s=p[5],u=p[6]);let m=void 0!==s&&s,h=void 0!==u&&u,g=(0,n.use)(tH),v=h&&"group/select-trigger",x=m?"[&>span]:line-clamp-1 [&>span]:text-left [&>span]:flex-1":"[&>span:not(:last-child)]:line-clamp-1 [&>span:not(:last-child)]:text-left [&>span:not(:last-child)]:flex-1";return p[7]!==i||p[8]!==g.size||p[9]!==g.variant||p[10]!==v||p[11]!==x?(c=(0,tM.f)("flex w-full items-center justify-between px-3 py-2",v,"border border-input bg-input-bg text-body cursor-pointer","data-[placeholder]:text-muted-foreground","focus-visible:outline-none focus-visible:border-focus-border focus-visible:shadow-focus","disabled:cursor-not-allowed disabled:opacity-50",x,tP({size:g.size,variant:g.variant}),i),p[7]=i,p[8]=g.size,p[9]=g.variant,p[10]=v,p[11]=x,p[12]=c):c=p[12],p[13]!==m||p[14]!==h?(f=!m&&(0,t.jsx)(tp.Icon,{className:"shrink-0 ml-2",children:(0,t.jsx)(tT.f,{className:(0,tM.f)("h-4 w-4 opacity-50",h&&"transition-transform duration-quick ease-smooth-out group-data-[popup-open]/select-trigger:-scale-y-100 motion-reduce:transition-none")})}),p[13]=m,p[14]=h,p[15]=f):f=p[15],p[16]!==l||p[17]!==o||p[18]!==a||p[19]!==c||p[20]!==f?(d=(0,t.jsxs)(tm.Trigger,{ref:a,className:c,...o,children:[l,f]}),p[16]=l,p[17]=o,p[18]=a,p[19]=c,p[20]=f,p[21]=d):d=p[21],d},"SelectValue",0,function(e){let n,l,i,o,a,s=(0,r.c)(11);return s[0]!==e?({children:n,placeholder:l,...i}=e,s[0]=e,s[1]=n,s[2]=l,s[3]=i):(n=s[1],l=s[2],i=s[3]),s[4]!==n||s[5]!==l?(o="function"==typeof n?e=>(0,tI.f)(e)?n(e):l??null:n,s[4]=n,s[5]=l,s[6]=o):o=s[6],s[7]!==l||s[8]!==i||s[9]!==o?(a=(0,t.jsx)(td.Value,{placeholder:l,...i,children:o}),s[7]=l,s[8]=i,s[9]=o,s[10]=a):a=s[10],a}],326e3)},51365,e=>{"use strict";e.i(640216);let t=new Set(["ac","co","com","edu","go","gob","gov","ltd","me","ne","net","nom","or","org","plc","sch"]),r=(e,t=256)=>`https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${e}&size=${t}`,n=new Set(["amazonaws.com","azurewebsites.net","cloudfront.net","firebaseapp.com","fly.dev","github.io","gitlab.io","herokuapp.com","ngrok.app","ngrok.io","netlify.app","onrender.com","pages.dev","run.app","vercel.app","web.app","workers.dev"]),l=/\.(png|jpe?g|ico|svg|webp|gif|bmp)$/i,i=r("https://huggingface.co/");e.s(["t",0,i,"g",0,e=>`/api/frontend/v1/apps/${e}/icon`,"e",0,r,"r",0,e=>`/images/icons/${e}`,"Z",0,e=>{let r=(e=>{let t=/^[a-z][a-z\d+\-.]*:\/\//iu.test(e)?e:`https://${e}`;try{return new URL(t).hostname.toLowerCase().replace(/\.$/u,"")}catch{return null}})(e);if(null===r)return null;let l=r.split(".").slice(1);if(l.length<2||2===l.length&&2===(l[1]??"").length&&t.has(l[0]??""))return null;let i=l.join(".");return[...n].some(e=>i===e||i.endsWith(`.${e}`))?null:`https://${i}`},"Q",0,e=>{try{return l.test(new URL(e).pathname)}catch{return!1}},"$",0,e=>{try{let t=new URL(e).hostname.toLowerCase().replace(/\.$/,"");return"openrouter.ai"===t||t.endsWith(".openrouter.ai")}catch{return!1}}],51365)},640216,e=>{"use strict";var t=e.i(914571),r=e.i(647204),n=e.i(30012);function l(e){let t=e.replaceAll(/^\[|\]$/g,""),r=s(t);if(r)return l(r);if(i(t)){let e=Number.parseInt(t.split(".")[0]??"",10);return 0===e||127===e}let n=o(t);if(n)return n.slice(0,15).every(e=>0===e)&&(0===n[15]||1===n[15]);let a=u(t);return"localhost"===a||a.endsWith(".localhost")||a.includes(":")}function i(e){let t=e.split(".");return 4===t.length&&t.every(e=>/^\d{1,3}$/.test(e)&&Number(e)>=0&&255>=Number(e))}function o(e){let t=e.replaceAll(/^\[|\]$/g,"").toLowerCase(),r=t.indexOf("%");if(-1!==r){if(0===r||r===t.length-1)return null;t=t.slice(0,r)}if(!t.includes(":"))return null;if(t.includes(".")){let e=t.lastIndexOf(":");if(-1===e)return null;let r=t.slice(e+1);if(!i(r))return null;let n=r.split(".").map(Number),l=(n[0]??0)<<8|(n[1]??0),o=(n[2]??0)<<8|(n[3]??0);t=`${t.slice(0,e+1)}${l.toString(16)}:${o.toString(16)}`}let n=t.indexOf("::");if(n!==t.lastIndexOf("::"))return null;let l=-1!==n?function(e,t){let r=e.slice(0,t),n=e.slice(t+2),l=""===r?[]:r.split(":"),i=""===n?[]:n.split(":");if(l.some(e=>""===e)||i.some(e=>""===e))return null;let o=8-l.length-i.length;return o<1?null:[...l,...Array.from({length:o},()=>"0"),...i]}(t,n):t.split(":");return null===l||8!==l.length||l.some(e=>!/^[0-9a-f]{1,4}$/.test(e))?null:l.flatMap(e=>{let t=Number.parseInt(e,16);return[t>>8&255,255&t]})}function a(e){return 254===e[0]&&((e[1]??0)&192)==128}function s(e){let t=o(e);if(null===t)return null;let r=t.slice(0,10).every(e=>0===e)&&255===t[10]&&255===t[11],n=t.slice(0,12).every(e=>0===e),l=t.slice(0,15).every(e=>0===e)&&(0===t[15]||1===t[15]);return!r&&!n||n&&l?null:`${t[12]}.${t[13]}.${t[14]}.${t[15]}`}function u(e){let t=e.toLowerCase(),r=t.length;for(;r>0&&"."===t[r-1];)r-=1;return t.slice(0,r)}t.n,e.s(["b",0,function(e,t){return"https:"===e.protocol||"http:"===e.protocol&&t&&l(e.hostname)},"i",0,function(e){let t=u(e);return"cfargotunnel.com"===t||t.endsWith(".cfargotunnel.com")},"y",0,l,"r",0,function(e){let t=u(e);return"openrouter.ai"===t||t.endsWith(".openrouter.ai")},"E",0,function(e,t={}){let c,f,d,p;try{c=new URL(e)}catch{return(0,r.Y)("Invalid URL format")}let m=c.hostname.toLowerCase(),h=c.protocol,g=(0,n.T)()&&!0;if(l(m)&&g)return"http:"!==h&&"https:"!==h?(0,r.Y)("Only HTTP and HTTPS protocols are allowed"):(0,r.N)(!0);if(l(m))return(0,r.Y)("Localhost URLs are not allowed");if(function e(t){let r=s(t.replaceAll(/^\[|\]$/g,""));if(r)return e(r)||l(r);if(i(t)){let e=t.split(".").map(Number);if(4!==e.length||e.some(e=>Number.isNaN(e)))return!1;let[r,n]=e;return void 0!==r&&void 0!==n&&(10===r||172===r&&n>=16&&n<=31||192===r&&168===n||100===r&&n>=64&&n<=127||169===r&&254===n)}if(null!==o(t)){let e=o(t);return null!==e&&(((e[0]??0)&254)==252||a(e))}return!1}(m))return(0,r.Y)("Private IP addresses are not allowed");if(function(e){if(i(e)){let t=e.split(".").map(Number);if(4===t.length&&169===t[0]&&254===t[1])return!0}if(null!==o(e)){let t=o(e);return null!==t&&a(t)}return!1}(m)||"metadata.google.internal"===(f=u(m))||f.endsWith(".metadata.google.internal")||(d=u(m)).endsWith(".svc")||d.endsWith(".svc.cluster.local")||d.endsWith(".cluster.local")||(p=u(m)).endsWith(".internal")||p.endsWith(".local"))return(0,r.Y)("Unsupported URL, public internet addresses only");if(!g&&"https:"!==h){if(!t.allowHttp)return(0,r.Y)("Only HTTPS URLs are allowed");if("http:"!==h)return(0,r.Y)("Only HTTP and HTTPS protocols are allowed")}return g&&"http:"!==h&&"https:"!==h?(0,r.Y)("Only HTTP and HTTPS protocols are allowed in dev"):(0,r.N)(!0)}],640216)}]); //# sourceMappingURL=21xtm-hmmcici.js.map