1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,656774,e=>{"use strict";var t=e.i(727448),n=e.i(992150),r=e.i(7667);e.s([],986909),e.i(986909);var l=e.i(758737),i=e.i(665308),a=e.i(473444),o=e.i(747054),u=e.i(512042),s=e.i(871689),c=e.i(239786),d=e.i(312207),p=e.i(776988),f=e.i(251412),m=e.i(880269),v=e.i(643275),g=e.i(769762),h=e.i(628279),x=e.i(333134),S=e.i(284978),b=e.i(349864),E=e.i(282103),y=e.i(520322);function R(e,t,n,r,l,i,a,o,u,s=2){let c=(0,y.getGridNavigatedIndex)(n.current,{event:e,orientation:r,loopFocus:l,rtl:i,cols:s,disabledIndices:a,minIndex:o,maxIndex:u,prevIndex:t>u?o:t,stopEvent:!0});return(0,y.isIndexOutOfListBounds)(n.current,c)?void 0:c}var C=e.i(553796),I=e.i(980547),O=e.i(611463);let A=r.createContext(void 0),w=r.createContext(void 0),P=r.createContext(void 0),N=r.createContext(!1),M=r.createContext("");function k(){let e=r.useContext(A);if(!e)throw Error((0,l.default)(22));return e}function D(){let e=r.useContext(w);if(!e)throw Error((0,l.default)(23));return e}function V(){let e=r.useContext(P);if(!e)throw Error((0,l.default)(24));return e}function j(){return r.useContext(M)}let T=(e,t)=>Object.is(e,t);function L(e,t,n){return null==e||null==t?Object.is(e,t):n(e,t)}function F(e,t,n){return!!e&&e.some(e=>void 0!==e&&L(t,e,n))}function z(e,t,n){return e?e.findIndex(e=>void 0!==e&&L(e,t,n)):-1}function B(e,t,n,r){let l=r&&Array.isArray(t)?e.findIndex(function(e,t){if(t!==T)return n=>F(e,n,t);let n=new Set(e);return n.delete(void 0),t=>n.has(t)&&(0!==t||e.some(e=>Object.is(t,e)))}(t,n)):z(e,t,n);return -1===l?null:l}function H(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function _(e){var t;return"object"==typeof(t=e?.[0])&&null!=t&&Array.isArray(t.items)}function q(e){return _(e)?e.flatMap(e=>e.items):e}function K(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 H(e)}function W(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?H(e.value):H(e)}function U(e,t,n){if(n&&null!=e)return n(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)??K(e,n);if(Array.isArray(t)){let r=q(t);if(null==e||"object"!=typeof e){let t=r.find(t=>t.value===e);return t&&null!=t.label?t.label:K(e,n)}if("value"in e){let t=r.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return K(e,n)}let Y={id:e=>e.id,labelId:e=>e.labelId,items:e=>e.items,selectedValue:e=>e.selectedValue,hasSelectionChips:e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0},hasSelectedValue:e=>{let{selectedValue:t,selectionMode:n}=e;return null!=t&&(!("multiple"===n&&Array.isArray(t))||t.length>0)},hasNullItemLabel:(e,t)=>!!t&&function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(_(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,forceMounted:e=>e.forceMounted,inline:e=>e.inline,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>L(t,e,n)):L(t,r,n)},transitionStatus:e=>e.transitionStatus,popupProps:e=>e.popupProps,listProps:e=>e.listProps,inputProps:e=>e.inputProps,triggerProps:e=>e.triggerProps,itemProps:e=>e.itemProps,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupId:e=>e.popupId,triggerElement:e=>e.triggerElement,inputElement:e=>e.inputElement,inputGroupElement:e=>e.inputGroupElement,popupSide:e=>e.popupSide,openMethod:e=>e.openMethod,inputInsidePopup:e=>e.inputInsidePopup,inputOwnsFormValue:e=>e.inputOwnsFormValue,selectionMode:e=>e.selectionMode,name:e=>e.name,form:e=>e.form,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,grid:e=>e.grid,virtualized:e=>e.virtualized,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,modal:e=>e.modal,autoHighlight:e=>e.autoHighlight};var $=e.i(173575),G=f;let J={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Q={disabled:!1,...J},X={valid:e=>null===e?null:e?{"data-valid":""}:{"data-invalid":""}},Z={invalid:void 0,name:void 0,validityData:{state:{badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},errors:[],error:"",value:"",initialValue:null},setValidityData:G.NOOP,disabled:void 0,setTouched:G.NOOP,setDirty:G.NOOP,setFilled:G.NOOP,setFocused:G.NOOP,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:Q,registerFieldControl:G.NOOP,validation:{getValidationProps:(e,t=G.EMPTY_OBJECT)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:G.NOOP,getInputControl:()=>null,commit:async()=>{},change:G.NOOP}},ee=r.createContext(Z);function et(e=!0){let t=r.useContext(ee);if(t.setValidityData===G.NOOP&&!e)throw Error((0,l.default)(28));return t}let en=r.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:f.NOOP,validationMode:"onSubmit",submitCountRef:{current:0}});var er=e.i(821893);let el=r.createContext({controlId:void 0,registerControlId:f.NOOP,resetControlId:f.NOOP,labelId:void 0,setLabelId:f.NOOP,messageIds:[],setMessageIds:f.NOOP,getDescriptionProps:e=>e});function ei(){return r.useContext(el)}function ea(e={}){let{id:t,enabled:n=!0}=e,{controlId:l,registerControlId:i,resetControlId:u}=ei(),s=(0,er.useBaseUiId)(),c=(0,d.useRefWithInit)(()=>Symbol()),p=r.useRef(!1),m=r.useRef(!1),v=(0,o.useStableCallback)(()=>{p.current&&i!==f.NOOP&&(p.current=!1,i(c.current,void 0))});return(0,a.useIsoLayoutEffect)(()=>{let e;if(!n||i===f.NOOP)return void v();if(void 0!==t)m.current=!0,e=t;else{if(!m.current)return void u();e=s}void 0===e?v():(p.current=!0,i(c.current,e))},[t,n,i,u,s,c,v]),(0,a.useIsoLayoutEffect)(()=>v,[v]),(n?l:void 0)??t??s}function eo(e){return null==e?void 0:`${e}-popup`}function eu(e,t){return(n,r)=>null!=n&&e.contains(n,r,t)}let es=new Map;function ec(e={}){let t={usage:"search",sensitivity:"base",ignorePunctuation:!0,...e},n=`${function e(t){return Array.isArray(t)?t.map(t=>e(t)).join(","):null==t?"":String(t)}(e.locale)}|${JSON.stringify(t)}`,r=es.get(n);if(r)return r;let l=new Intl.Collator(e.locale,t),i={contains(e,t,n){if(!t)return!0;let r=K(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(0===l.compare(r.slice(e,e+t.length),t))return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=K(e,n);return 0===l.compare(r.slice(0,t.length),t)},endsWith(e,t,n){if(!t)return!0;let r=K(e,n),i=t.length;return r.length>=i&&0===l.compare(r.slice(r.length-i),t)}};return es.set(n,i),i}var ed=e.i(46327),ep=e.i(505890),ef=e.i(253151),em=e.i(935150),ev=e.i(410946);let eg=Symbol("none"),eh={value:eg,index:-1};var ex=e.i(158761);
1function eS(e,t,n){let r=e.get(t);if(void 0!==r||n===T)return r;for(let[r,l]of e)if(L(r,t,n))return l}function eb(e){let n,y,{id:k,onOpenChangeComplete:D,defaultSelectedValue:V=null,selectedValue:j,onSelectedValueChange:H,defaultInputValue:U,inputValue:G,open:J,defaultOpen:Q=!1,selectionMode:X,onItemHighlighted:Z,name:ee,form:er,disabled:el=!1,readOnly:ei=!1,required:eo=!1,inputRef:es,grid:eb=!1,items:eE,filteredItems:ey,filter:eR,filterQuery:eC,openOnInputClick:eI=!0,autoHighlight:eO=!1,keepHighlight:eA=!1,highlightItemOnHover:ew=!0,loopFocus:eP=!0,itemToStringLabel:eN,itemToStringValue:eM,isItemEqualToValue:ek=T,virtualized:eD=!1,inline:eV=!1,fillInputOnItemPress:ej=!0,modal:eT=!1,limit:eL=-1,autoComplete:eF="list",formAutoComplete:ez,locale:eB,submitOnItemClick:eH=!1}=e,{clearErrors:e_}=r.useContext(en),{setDirty:eq,validityData:eK,setFilled:eW,name:eU,disabled:eY,setTouched:e$,setFocused:eG,validationMode:eJ,validation:eQ}=et(),eX=(0,ex.useDirection)(),eZ=ea({id:k}),e0=ec({locale:eB}),e1=Array.isArray(eE)?null:eE;if(e1&&"function"!=typeof e1.label)throw Error((0,l.default)(100));let e2=e1?e1.data:eE,e5=e1?.value,e3=e5?void 0:e2,e6=r.useMemo(()=>{let e;if(!ey||!e5)return;let t=q(ey),n=t.map(e5);return{values:n,findItem(r,l){if(!e){e=new Map;for(let r=0;r<n.length;r+=1)e.has(n[r])||e.set(n[r],t[r])}return eS(e,r,l)}}},[ey,e5]),e4=r.useMemo(()=>e1?e=>e1.label(e,ek,e=>{let t=e6?.findItem(e,ek);return null!=t?e1.itemLabel(t):K(e,eN)}):eN,[e1,eN,e6,ek]),e8=r.useMemo(()=>e1?Object.assign(e=>e1.itemLabel(e),{selected:e=>K(e,e4)}):eN,[e1,e4,eN]);function e9(e){return K(e,e4)}let[e7,te]=r.useState(!1),[tt,tn]=r.useState(null),tr=r.useRef(tt),tl=r.useRef([]),ti=r.useRef([]),ta=r.useRef(null),to=r.useRef(null),tu=r.useRef(null),ts=r.useRef(null),tc=r.useRef(null),td=r.useRef(!0),tp=r.useRef(!1),tf=r.useRef(null),tm=r.useRef(null),tv=r.useRef(null),tg=r.useRef(eh),th=r.useRef(null),tx=r.useRef([]),tS=r.useRef(null),tb=eY||el,tE=eU??ee,ty="multiple"===X,tR="single"===X,tC=void 0!==G||void 0!==U,tI=void 0!==e2,tO=void 0!==ey;n="always"===eO?"always":!!eO&&"input-change";let[tA,tw]=(0,i.useControlled)({controlled:j,default:ty?V??f.EMPTY_ARRAY:V,name:"Combobox",state:"selectedValue"}),tP=r.useMemo(()=>null===eR?()=>!0:void 0!==eR?eR:eu(e0,e8),[eR,e0,e8]),tN=(0,d.useRefWithInit)(()=>tC?U??"":tR?e9(tA):"").current,[tM,tk]=(0,i.useControlled)({controlled:G,default:tN,name:"Combobox",state:"inputValue"}),[tD,tV]=(0,i.useControlled)({controlled:J,default:Q,name:"Combobox",state:"open"}),tj=_(e2),tT=tD||null===tt?String(tM).trim():tt,tL=tR?e9(tA):"",tF=tR&&!e7&&""!==tT&&tL.length===tT.length&&e0.contains(tL,tT),tz=tF?"":eC??tT,tB=tI&&tO&&tF&&(!e1||e1.hasValue(tA,ek)),tH=r.useMemo(()=>e2?q(e2):f.EMPTY_ARRAY,[e2]),t_=r.useMemo(()=>{if(ey&&!tB)return ey;if(!e2)return f.EMPTY_ARRAY;if(tj){let e=[],t=0;for(let n of e2){if(eL>-1&&t>=eL)break;let r=eL>-1?eL-t:1/0,l=""===tz?n.items.slice(0,r):[];if(""!==tz)for(let e of n.items){if(l.length>=r)break;tP(e,tz,e8)&&l.push(e)}if(l.length>0){let r={...n,items:l};e.push(r),t+=l.length}}return e}if(""===tz)return eL>-1?tH.slice(0,eL):tH;let e=[];for(let t of tH){if(eL>-1&&e.length>=eL)break;tP(t,tz,e8)&&e.push(t)}return e},[ey,tB,e2,tj,tz,eL,tP,e8,tH]),tq=r.useMemo(()=>{if(e6&&t_===ey)return e6.values;let e=q(t_);return e5?e.map(e=>e5(e)):e},[t_,ey,e6,e5]),tK=(0,d.useRefWithInit)(()=>{let e=null;return eV&&tD&&tI&&"none"!==X&&(e=B(tq,tA,ek,ty)),new p.ReactStore({id:eZ,labelId:void 0,selectedValue:tA,open:tD,items:e3,selectionMode:X,name:tE,form:er,disabled:tb,readOnly:ei,required:eo,grid:eb,virtualized:eD,openOnInputClick:eI,itemToStringLabel:e4,isItemEqualToValue:ek,modal:eT,autoHighlight:n,submitOnItemClick:eH,hasInputValue:tC,mounted:!1,forceMounted:!1,transitionStatus:"idle",inline:eV,activeIndex:null,selectedIndex:e,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemProps:f.EMPTY_OBJECT,positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:"none"===X},{onOpenChangeComplete:f.NOOP,setOpen:f.NOOP,setInputValue:f.NOOP,setSelectedValue:f.NOOP,setIndices:f.NOOP,handleSelection:f.NOOP,forceMount:f.NOOP,requestSubmit:f.NOOP,listRef:tl,labelsRef:ti,popupRef:ta,emptyRef:tc,inputRef:to,startDismissRef:tu,endDismissRef:ts,keyboardActiveRef:td,chipsContainerRef:tf,clearRef:tm,valuesRef:tx,pointerDownItemRef:tS,selectionEventRef:tv},Y)}
1).current,tW="none"===X?tM:tA,tU=r.useMemo(()=>"none"===X?tW:Array.isArray(tA)?tA.map(e=>W(e,eM)):W(tA,eM),[tW,eM,X,tA]),tY=(0,o.useStableCallback)(Z),t$=(0,o.useStableCallback)(D),tG=tK.useState("activeIndex"),tJ=tK.useState("selectedIndex"),tQ=tK.useState("positionerElement"),tX=tK.useState("listElement"),tZ=tK.useState("triggerElement"),t0=tK.useState("inputElement"),t1=tK.useState("inputGroupElement"),t2=tK.useState("inline"),t5=tK.useState("inputInsidePopup"),t3=tK.useState("inputOwnsFormValue"),t6=tR&&!t5&&tM===tL,t4=(0,s.useValueAsRef)(tZ),{mounted:t8,setMounted:t9,transitionStatus:t7}=(0,ed.useTransitionStatus)(tD),{openMethod:ne,triggerProps:nt}=(0,ep.useOpenInteractionType)(tD);!function(e,t,n,r,l=!0,i){let{registerFieldControl:o}=et(),u=(0,d.useRefWithInit)(()=>Symbol());(0,a.useIsoLayoutEffect)(()=>{let a=u.current;l?o(a,{controlRef:e,getValue:r,id:t,name:i,value:n}):o(a,void 0)},[e,l,r,t,i,o,u,n]),(0,a.useIsoLayoutEffect)(()=>{let e=u.current;return()=>{o(e,void 0)}},[o,u])}(t5?t4:to,eZ,tW,(0,o.useStableCallback)(()=>tU),!tb,ee);let nn=(0,o.useStableCallback)(()=>{e2?ti.current=tq.map(e9):tK.set("forceMounted",!0)}),nr=(0,o.useStableCallback)((e,t,n)=>{if(-1===t){if(tg.current===eh)return;tg.current=eh}else tg.current={value:e,index:t};tY(e,(0,I.createGenericEventDetails)(n,void 0,{index:t}))}),nl=(0,o.useStableCallback)(e=>{let t={};void 0!==e.activeIndex&&(t.activeIndex=e.activeIndex),void 0!==e.selectedIndex&&(t.selectedIndex=e.selectedIndex),tK.update(t);let n=e.activeIndex;if(void 0===n)return;let r=e.type||O.REASONS.none;null===n?nr(void 0,-1,r):nr(tx.current[n],n,r)}),ni=(0,o.useStableCallback)((t,r)=>{if(e.onInputValueChange?.(t,r),!r.isCanceled){if(tp.current=r.reason===O.REASONS.inputClear,r.reason===O.REASONS.inputChange){tD&&null!==tt&&tn(null);let e=r.event,l=e.inputType;if("compositionend"===e.type||null!=l&&""!==l&&"insertReplacementText"!==l){let e=""!==t.trim();e&&te(!0),th.current={hasQuery:e};let r=tK.state.listElement;if(!tK.state.virtualized&&r){let e=ta.current;for(let t of(0,m.getOverflowAncestors)(r.firstElementChild??r)){if(!(0,m.isHTMLElement)(t)||(e?!(0,C.contains)(e,t):"dialog"===t.getAttribute("role")))break;if(function(e,t=!1){let{overflowY:n}=(0,m.getComputedStyle)(e);return("auto"===n||"scroll"===n)&&(t?e.clientHeight>0:e.scrollHeight>e.clientHeight)}(t)){t.scrollTop=0;break}}}e&&n&&null==tK.state.activeIndex&&(tD||t2)&&tK.set("activeIndex",0)}}else r.reason===O.REASONS.inputClear&&""===t&&tK.state.inputInsidePopup&&(th.current={hasQuery:!1,selection:!0}
1);tk(t)}}),na=(0,o.useStableCallback)(e=>{let t=!e&&t5&&!t2&&""!==tM&&(String(tM).trim()===tt||tM===tL);!e&&(t||""===tM||t6)&&te(!1),tn(null),t&&ni("",(0,I.createChangeEventDetails)(O.REASONS.inputClear))}),no=(0,o.useStableCallback)((t,n)=>{if(tD!==t&&(n.reason===O.REASONS.escapeKey&&tI&&0===tq.length&&!tc.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(t&&null!==tt&&na(n.reason===O.REASONS.inputChange),!t&&e7&&(tR?(t2||tn(tT),""===tT&&te(!1)):ty&&(t2||tn(tT),t5&&nl({activeIndex:null}),(!t5||t2)&&ni("",(0,I.createChangeEventDetails)(O.REASONS.inputClear,n.event,void 0,{isItemPress:n.reason===O.REASONS.itemPress})))),tV(t),!t&&t5&&(n.reason===O.REASONS.focusOut||n.reason===O.REASONS.outsidePress))&&(e$(!0),eG(!1),"onBlur"===eJ))){let e="none"===X?tM:tA;eQ.commit(e)}}),nu=(0,o.useStableCallback)((e,t)=>{H?.(e,t),t.isCanceled||(tw(e),("none"===X&&ta.current&&ej||tR&&!tK.state.inputInsidePopup)&&ni(e9(e),(0,I.createChangeEventDetails)(t.reason,t.event)))}),ns=(0,o.useStableCallback)((e,t)=>{let n=(0,C.getTarget)(e),r=tv.current??e;tv.current=null;let l=(0,I.createChangeEventDetails)(O.REASONS.itemPress,r),i=n?.closest("a")?.getAttribute("href");if(i){i.startsWith("#")&&no(!1,l);return}if(ty){let e=Array.isArray(tA)?tA:[],n=F(e,t,ek);if(nu(n?e.filter(e=>!L(t,e,ek)):[...e,t],l),l.isCanceled||!(to.current&&""!==to.current.value.trim()))return;if(tK.state.inputInsidePopup){ni("",(0,I.createChangeEventDetails)(O.REASONS.inputClear,l.event,void 0,{isItemPress:!0}));let e=th.current;e&&!n&&(e.toggledValue=t)}else no(!1,l)}else{if(nu(t,l),l.isCanceled)return;no(!1,l)}}),nc=(0,o.useStableCallback)(()=>{let e=eQ.inputRef.current?.form??tK.state.inputElement?.form;e&&"function"==typeof e.requestSubmit&&e.requestSubmit()}),nd=(0,o.useStableCallback)(()=>{if(t9(!1),t$?.(!1),te(!1),tn(null),"none"===X?nl({activeIndex:null,selectedIndex:null}):nl({activeIndex:null}),ty&&to.current&&""!==to.current.value&&!tp.current&&ni("",(0,I.createChangeEventDetails)(O.REASONS.inputClear)),tR)if(tK.state.inputInsidePopup)to.current&&""!==to.current.value&&ni("",(0,I.createChangeEventDetails)(O.REASONS.inputClear));else{let e=e9(tA);if(to.current&&to.current.value!==e){let t=""===e?O.REASONS.inputClear:O.REASONS.none;ni(e,(0,I.createChangeEventDetails)(t))}}}),np=r.useMemo(()=>t2&&tQ?{current:tQ.closest('[role="dialog"]')}:ta,[t2,tQ]);(0,$.useOpenChangeComplete)({enabled:!e.actionsRef,open:tD,ref:np,onComplete(){tD||nd()}}),r.useImperativeHandle(e.actionsRef,()=>({unmount:nd}),[nd]),(0,a.useIsoLayoutEffect)(function(){let e=null!==tr.current&&null===tt;tr.current=tt,(!tD||e&&tI)&&(tD||(tS.current=null),"none"===X||nl({selectedIndex:B(tI?tq:tx.current,tA,ek,ty)}))},[tD,tt,tA,X,ty,tI,tq,ek,nl]),(0,a.useIsoLayoutEffect)(()=>{e2&&(tx.current=tq,tl.current.length=tq.length)},[e2,tq]),(0,a.useIsoLayoutEffect)(()=>{let e=th.current;if(e){let t=tD||t2||tK.state.positionerElement?.hidden===!1;if(e.hasQuery)n&&t&&tK.set("activeIndex",0),th.current=null;else if(""===String(tM).trim()&&(th.current=null,t)){let t=e.selection;"always"!==n||t||"none"!==tK.state.selectionMode||tK.set("activeIndex",0),queueMicrotask(()=>{if(!tK.state.open&&!tK.state.inline||to.current&&""!==to.current.value.trim())return;let r=tK.state.selectedValue,l="multiple"===tK.state.selectionMode;if(l&&Array.isArray(r)?r.length>0:"none"!==tK.state.selectionMode&&null!=r){let t=tI||tO?tq:tx.current,n=z(t,e.toggledValue,tK.state.isItemEqualToValue);tK.set("activeIndex",-1!==n?n:B(t,r,tK.state.isItemEqualToValue,l))}else t?tK.set("activeIndex",null):"always"===n&&tK.set("activeIndex",0)})}}if(!tD&&!t2)return;let t=tI||tO?tq:tx.current,r=tK.state.activeIndex;if(null==r)return"always"===n&&t.length>0?void tK.set("activeIndex",0):void nr(void 0,-1,O.REASONS.none);if(r>=t.length){nr(void 0,-1,O.REASONS.none),tK.set("activeIndex",null);return}let l=t[r],i=tg.current.value,a=i!==eg&&L(l,i,tK.state.isItemEqualToValue);tg.current.index===r&&a||nr(l,r,O.REASONS.none)},[tG,n,nr,tO,tI,tq,t2,tD,tK,tM]),(0,a.useIsoLayoutEffect)(()=>{"none"===X?eW(""!==String(tM)):eW(ty?Array.isArray(tA)&&tA.length>0:null!=tA)},[eW,X,tM,tA,ty]),r.useEffect(()=>{tI&&n&&0===tq.length&&nl({activeIndex:null})},[tI,n,tq.length,nl]);let nf=!1;function nm(){nf||tM===tL||(nf=!0,ni(tL,(0,I.createChangeEventDetails)(O.REASONS.none)))}function nv(){!tR||tC||t5||e7||nm()}(0,ef.useValueChanged)(tT,function(){tD&&""!==tT&&tT!==String(tN)&&!t6&&te(!0)}),(0,ef.useValueChanged)(tD,function(){tD&&null!==tt&&na(!1)}),(0,ef.useValueChanged)(tA,function(){if("none"!==X){var e;e_(tE),eq((e=eK.initialValue,Array.isArray(tA)&&Array.isArray(e)?!function(e,t,n=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let l=0;l<r;l+=1)if(!n(e[l],t[l]))return!1;return!0}(tA,e,(e,t)=>L(e,t,ek)):tA!==e)),eQ.change(tA),!tR||tC||t5||nm()}}
1),(0,ef.useValueChanged)(tL,nv),(0,ef.useValueChanged)(e2,nv),(0,ef.useValueChanged)(tM,function(){"none"===X&&(e_(tE),eq(tM!==eK.initialValue),eQ.change(tM))});let ng=function(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,l=(0,g.useId)(),i=null!=(0,x.useFloatingParentNodeId)(),o=(0,d.useRefWithInit)(()=>new S.FloatingRootStore({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new h.PopupTriggerMap,floatingId:l,syncOnly:!1,nested:i})).current;return(0,a.useIsoLayoutEffect)(()=>{let e={open:t,floatingId:l};void 0!==r.reference&&(e.referenceElement=r.reference,e.domReferenceElement=(0,m.isElement)(r.reference)?r.reference:null),void 0!==r.floating&&(e.floatingElement=r.floating),o.update(e)},[t,l,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=i,o}({open:!!t2||tD,onOpenChange:no,elements:{reference:t5?tZ:t0,floating:tQ}}),nh=eb?"grid":"listbox",nx=tD||t2,nS=nx?"true":"false",nb=r.useMemo(()=>{let e=t0?.tagName==="INPUT",t=null==t0||e,n=t||nx,r=t?{autoComplete:"off",spellCheck:"false",autoCorrect:"off",autoCapitalize:"none"}:{};return n&&(r.role="combobox",r["aria-expanded"]=nS,r["aria-haspopup"]=nh,r["aria-controls"]=nx?tX?.id:void 0,r["aria-autocomplete"]=ei?"none":eF),{reference:r,floating:{role:"presentation"}}},[t0,nx,nS,nh,tX?.id,eF,ei]),nE=(0,E.useClick)(ng,{enabled:!tb&&eI,event:"mousedown-only",toggle:!1,touchOpenDelay:100*!t5,reason:O.REASONS.inputPress}),ny=(0,v.useDismiss)(ng,{enabled:!tb&&!t2,outsidePressEvent:{mouse:"sloppy",touch:"intentional"},bubbles:!!t2||void 0,outsidePress(e){let t=(0,C.getTarget)(e);return!(0,C.contains)(tZ,t)&&!(0,C.contains)(tm.current,t)&&!(0,C.contains)(tf.current,t)&&!(0,C.contains)(t1,t)}}),nR=(0,b.useListNavigation)(ng,{enabled:!tb,id:eZ,listRef:tl,activeIndex:tG,selectedIndex:tJ,virtual:!0,loopFocus:eP,allowEscape:eP&&!n,focusItemOnOpen:!e7&&("none"!==X||!!n)&&"auto",focusItemOnHover:ew,resetOnPointerLeave:!eA,orientation:eb?"horizontal":void 0,rtl:"rtl"===eX,disabledIndices:f.EMPTY_ARRAY,grid:eb?R:void 0,onNavigate(e,t){(t||tD)&&"ending"!==t7&&(t?nl({activeIndex:e,type:td.current?O.REASONS.keyboard:O.REASONS.pointer}):nl({activeIndex:e}))}}),nC=r.useMemo(()=>(0,ev.mergeProps)(nR.reference,{onKeyDown(e){eb&&null==tK.state.activeIndex&&("ArrowLeft"===e.key||"ArrowRight"===e.key)&&e.preventBaseUIHandler()}},ny.reference,nE.reference,nb.reference),[nR.reference,ny.reference,nE.reference,nb.reference,eb,tK]),nI=r.useMemo(()=>(0,ev.mergeProps)(em.FOCUSABLE_POPUP_PROPS,ny.floating),[ny.floating]),nO=r.useMemo(()=>(0,ev.mergeProps)(nR.floating,nb.floating),[nR.floating,nb.floating]),nA=r.useMemo(()=>{let e=nR.item;return e?{...e,onFocus:void 0}:f.EMPTY_OBJECT},[nR.item]);tK.useContextCallback("setOpen",no),tK.useContextCallback("setInputValue",ni),tK.useContextCallback("setSelectedValue",nu),tK.useContextCallback("setIndices",nl),tK.useContextCallback("handleSelection",ns),tK.useContextCallback("forceMount",nn),tK.useContextCallback("requestSubmit",nc),tK.useContextCallback("onOpenChangeComplete",D),(y=r.useRef(!0)).current&&(y.current=!1,(()=>{tK.update({inline:eV,popupProps:nI,listProps:nO,inputProps:nC,triggerProps:nt,itemProps:nA})})());let nw={id:eZ,selectedValue:tA,open:tD,mounted:t8,transitionStatus:t7,items:e3,inline:eV,popupProps:nI,listProps:nO,inputProps:nC,triggerProps:nt,itemProps:nA,openMethod:ne,selectionMode:X,name:tE,form:er,disabled:tb,readOnly:ei,required:eo,grid:eb,virtualized:eD,openOnInputClick:eI,itemToStringLabel:e4,modal:eT,autoHighlight:n,isItemEqualToValue:ek,submitOnItemClick:eH,hasInputValue:tC};(0,a.useIsoLayoutEffect)(()=>{tK.update({...nw,inputOwnsFormValue:"none"===X&&(eV||!tK.state.inputInsidePopup)})},[tK,...Object.values(nw)]);let nP=(0,u.useMergedRefs)(es,eQ.inputRef),nN=r.useMemo(()=>({query:tT,hasItems:tI,filteredItems:t_,flatFilteredValues:tq}),[tT,tI,t_,tq]),nM=r.useMemo(()=>Array.isArray(tW)?"":W(tW,eM),[tW,eM]),nk=ty&&Array.isArray(tA)&&tA.length>0,nD=ty||"none"===X&&t3?void 0:tE,nV=r.useMemo(()=>ty&&Array.isArray(tA)&&tE?tA.map(e=>{let n=W(e,eM);return(0,t.jsx)("input",{type:"hidden",form:er,name:tE,value:n,disabled:tb},n)}):null,[ty,tA,er,tE,eM,tb]),nj=(0,t.jsxs)(r.Fragment,{children:[e.children,(0,t.jsx)("input",{...eQ.getValidationProps(tb,{onFocus(){t5?tZ?.focus():(to.current||tZ)?.focu
1s()},onChange(e){if(e.nativeEvent.defaultPrevented||tb||ei)return;let t=e.currentTarget.value,n=t.toLowerCase(),r=(0,I.createChangeEventDetails)(O.REASONS.none,e.nativeEvent),l=()=>tx.current.findIndex(e=>W(e,eM).toLowerCase()===n||e9(e).toLowerCase()===n);tR&&(nn(),e2&&-1===l()&&tK.set("forceMounted",!0)),queueMicrotask(function(){if(ty)return;if("none"===X)return void ni(t,r);let e=l();-1===e&&(e=tx.current.findIndex((e,t)=>{let r=ti.current[t];return null!=r&&r.toLowerCase()===n}));let i=-1===e?void 0:tx.current[e];null!=i&&nu?.(i,r)})}}),id:eZ&&null==nD?`${eZ}-hidden-input`:void 0,form:er,name:nD,autoComplete:ez,disabled:tb,required:eo&&!nk,readOnly:ei,value:nM,ref:nP,style:nD?c.visuallyHiddenInput:c.visuallyHidden,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),nV]});return(0,t.jsx)(A.Provider,{value:tK,children:(0,t.jsx)(w.Provider,{value:ng,children:(0,t.jsx)(N.Provider,{value:tI,children:(0,t.jsx)(P.Provider,{value:nN,children:(0,t.jsx)(M.Provider,{value:tM,children:nj})})})})})}var eE=e.i(388323),ey=e.i(516948);let eR=r.forwardRef(function(e,t){let{render:n,className:r,style:l,...i}=e;delete i.id;let u=et(),s=k(),c=s.useState("inputInsidePopup"),d=s.useState("triggerElement");s.useState("inputElement");let p=s.useState("id"),f=function(e={}){let t,{id:n,fallbackControlId:r,native:l=!1,setLabelId:i,focusControl:u}=e,{controlId:s,setLabelId:c}=ei(),d=(0,o.useStableCallback)(e=>{c(e),i?.(e)}),p=(t=(0,er.useBaseUiId)(n),(0,a.useIsoLayoutEffect)(()=>(d(t),()=>{d(e=>e===t?void 0:e)}),[t,d]),t),f=s??r;function v(e){let t=(0,C.getTarget)(e.nativeEvent);t?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),l||function(e){if(u)return u(e,f);if(!f)return;let t=(0,ey.ownerDocument)(e.currentTarget).getElementById(f);(0,m.isHTMLElement)(t)&&t.focus({focusVisible:!0})}(e))}return l?{id:p,htmlFor:f,onMouseDown:v}:{id:p,onClick:v,onPointerDown(e){e.preventDefault()}}}({id:null==p?void 0:`${p}-label`,fallbackControlId:d?.id??(c?p:void 0),setLabelId(e){let t="function"==typeof e?e(s.state.labelId):e;s.set("labelId",t)}});return(0,eE.useRenderElement)("div",e,{ref:t,state:u.state,props:[f,i],stateAttributesMapping:X})});var eC=e.i(400449),eI=e.i(326318),eO=e.i(568613);eO.CommonTriggerDataAttributes.popupOpen,eO.CommonTriggerDataAttributes.pressed;let eA={...eI.pressableTriggerOpenStateMapping,...X,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":""}:null},ew=r.createContext(void 0);function eP(){return r.useContext(ew)}var eN=e.i(624582);let eM=r.createContext(void 0);function ek(e){let t=r.useContext(eM);if(void 0===t&&!e)throw Error((0,l.default)(21));return t}var eD=e.i(266223);let eV=r.forwardRef(function(e,n){let r=k(),{buttonRef:l,getButtonProps:i}=(0,eD.useButton)({native:!1}),a=(0,u.useMergedRefs)(n,l),o=i({onClick:function(e){r.context.setOpen(!1,(0,I.createChangeEventDetails)(O.REASONS.closePress,e.nativeEvent,e.currentTarget))}});return(0,t.jsx)("span",{ref:a,...o,"aria-label":"Dismiss",tabIndex:void 0,style:c.visuallyHiddenInput})});function ej(e){let t=e.useState("mounted"),n=e.useState("popupSide"),r=e.useState("positionerElement");return t&&r?n:null}function eT(){return 0===V().filteredItems.length}function eL(e){return"rtl"===e?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]}function eF(e,t){let n=e>=t-1?t-2:e;return n>=0?n:void 0}function ez(e,t,n){let r=e.context.listRef.current[t];r&&(e.context.selectionEventRef.current=n,r.click(),e.context.selectionEventRef.current=null)}let eB=r.forwardRef(function(e,n){let{render:l,className:i,disabled:a=!1,id:u,style:s,...c}=e,{state:d,disabled:p,setTouched:f,setFocused:m,validationMode:v,validation:g}=et(),{labelId:h}=ei(),x=eP(),S=!!ek(!0),b=k(),E=j(),y=(0,ex.useDirection)(),R=b.useState("required"),C=b.useState("disabled"),A=b.useState("readOnly"),w=b.useState("name"),P=b.useState("form"),N=b.useState("selectionMode"),M=b.useState("autoHighlight"),D=b.useState("inputProps"),V=b.useState("triggerProps"),T=b.useState("open"),L=b.useState("mounted"),F=b.useState("selectedValue"),z=b.useState("id"),B=b.useState("inline"),H=b.useState("modal"),_=!!M,q=ej(b),K=p||C||a,W=eT(),U=S||B,Y=(0,er.useBaseUiId)(u??(U?void 0:z)),[$,G]=r.useState(null),Q=r.useRef(!1),X=r.useRef(null),en=r.useRef(!1),el="none"===N&&!S,ea=(0,o.useStableCallback)(e=>{let t=S||b.state.inline;t&&!b.state.hasInputValue&&b.context.setInputValue("",(0,I.createChangeEventDetails)(O.REASONS.none)),b.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:el})}),eo=S?c:g.getValidationProps(K,c);function eu(){b.context.setIndices({activeIndex:null,selectedIndex:null,type:b.context.keyboardActiveRef.current?O.REASONS.keyboard:O.REASONS.pointer})}function es(){b.context.keyboardActiveRef.current=!1}let ec={...S?J:d,open:T,disabled:K,readOnly:A,popupSide:q,listEmpty:W},ed=(0,eE.useRenderElement)("input",e,{state:ec,ref:[n,b.context.
1inputRef,ea],props:[D,V,{value:$??E,"aria-readonly":A||void 0,"aria-required":R||void 0,"aria-labelledby":h,disabled:K,readOnly:A,required:"none"===N?R:void 0,form:P,...el&&w&&{name:w},id:Y,onFocus(){if(m(!0),!B||!en.current)return;en.current=!1;let e=X.current;null!=e&&Object.hasOwn(b.context.valuesRef.current,e)&&b.context.setIndices({activeIndex:e})},onBlur(){f(!0),m(!1);let e=b.state.activeIndex;if(B&&null!==e&&"always"!==M&&(X.current=e,en.current=!0,b.context.setIndices({activeIndex:null})),"onBlur"===v){let e="none"===N?E:F;g.commit(e)}},onCompositionStart(e){eC.platform.os.android||(Q.current=!0,G(e.currentTarget.value))},onCompositionEnd(e){Q.current=!1;let t=e.currentTarget.value;G(null),b.context.setInputValue(t,(0,I.createChangeEventDetails)(O.REASONS.inputChange,e.nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,r=Q.current||!(!n||"insertReplacementText"===n);function l(e){!A&&!K&&e&&r&&(b.context.setOpen(!0,(0,I.createChangeEventDetails)(O.REASONS.inputChange,t)),_||eu())}if(Q.current){let n=e.currentTarget.value;G(n),""!==n||b.state.openOnInputClick||b.state.inputInsidePopup||b.context.setOpen(!1,(0,I.createChangeEventDetails)(O.REASONS.inputClear,t));let r=n.trim(),i=_&&""!==r;l(r),T&&null!==b.state.activeIndex&&!i&&eu();return}let i=(0,I.createChangeEventDetails)(O.REASONS.inputChange,t);if(b.context.setInputValue(e.currentTarget.value,i),i.isCanceled)return;let a=""===e.currentTarget.value,o=(0,I.createChangeEventDetails)(O.REASONS.inputClear,t);a&&!b.state.inputInsidePopup&&("single"===N&&b.context.setSelectedValue(null,o),b.state.openOnInputClick||b.context.setOpen(!1,o)),l(e.currentTarget.value.trim()),T&&null!==b.state.activeIndex&&!_&&eu()},onKeyDown(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;if(b.context.keyboardActiveRef.current=!0,K||A){A&&"Enter"===e.key&&T&&null!==b.state.activeIndex&&(0,eN.stopEvent)(e);return}let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r="rtl"===y;if("Home"===e.key){(0,eN.stopEvent)(e);let n=eC.platform.engine.gecko&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if("End"===e.key){(0,eN.stopEvent)(e);let l=eC.platform.engine.gecko&&r?0:t.value.length;t.setSelectionRange(l,l),t.scrollLeft=r?-n:n;return}if(!L&&"Escape"===e.key){let t="multiple"===N&&Array.isArray(F)?0===F.length:null===F,n=(0,I.createChangeEventDetails)(O.REASONS.escapeKey,e.nativeEvent);b.context.setInputValue("",n),b.context.setSelectedValue("multiple"===N?[]:null,n),t||b.state.inline||n.isPropagationAllowed||e.stopPropagation();return}if(x&&"Backspace"===e.key&&""===t.value&&void 0===x.highlightedChipIndex&&Array.isArray(F)&&F.length>0){let t=x.chipsRef.current.length,n=t>0?t-1:F.length-1,r=F.filter((e,t)=>t!==n);eu(),b.context.setSelectedValue(r,(0,I.createChangeEventDetails)(O.REASONS.none,e.nativeEvent));return}let l=x?.highlightedChipIndex!==void 0,i=function(e){let t;if(!x)return;let{highlightedChipIndex:n}=x,r=x.chipsRef.current.length,[l,i]=eL(y);return void 0!==n?e.key===l?(e.preventDefault(),t=n>0?n-1:void 0):e.key===i?(e.preventDefault(),t=n<r-1?n+1:void 0):("Backspace"===e.key||"Delete"===e.key)&&(e.preventDefault(),t=eF(n,F.length),eu()):e.key===l&&(e.currentTarget.selectionStart??0)===0&&F.length>0&&(e.preventDefault(),t=r>0?r-1:void 0),t}(e);if(x?.setHighlightedChipIndex(i),void 0!==i?x?.chipsRef.current[i]?.focus():l&&b.context.inputRef.current?.focus(),229!==e.which&&"Enter"===e.key&&T){let t=b.state.activeIndex,n=e.nativeEvent;if(null===t){if(B)return;b.context.setOpen(!1,(0,I.createChangeEventDetails)(O.REASONS.none,n));return}(0,eN.stopEvent)(e),ez(b,t,n)}},onPointerMove:es,onPointerDown:es},eo],stateAttributesMapping:eA}),ep=S?(0,t.jsx)(ee.Provider,{value:Z,children:ed}):ed;return(0,t.jsxs)(r.Fragment,{children:[T&&(!U||H)&&(0,t.jsx)(eV,{ref:b.context.startDismissRef}),ep]})});var eH=e.i(484212);function e_(e,t,n,r){if(e.baseUIHandlerPrevented)return;let l=(0,C.getTarget)(e.nativeEvent),i=(0,m.isElement)(l)?l:null;i!==e.currentTarget&&(r?.(i)||(0,eH.isInteractiveElement)(i))||(e.preventDefault(),!n&&(t.context.inputRef.current?.focus(),t.state.openOn
1InputClick&&t.context.setOpen(!0,(0,I.createChangeEventDetails)(O.REASONS.inputPress,e.nativeEvent))))}let eq=r.forwardRef(function(e,t){let{render:n,className:r,style:l,...i}=e,{state:a}=et(),u=k(),s=u.useState("open"),c=u.useState("disabled"),d=u.useState("readOnly"),p=u.useState("hasSelectedValue"),f=u.useState("selectionMode"),m=ej(u),v=eT(),g={...a,open:s,disabled:c,readOnly:d,popupSide:m,listEmpty:v,placeholder:"none"!==f&&!p},h=(0,o.useStableCallback)(e=>{u.set("inputGroupElement",e)});return(0,eE.useRenderElement)("div",e,{ref:[t,h],props:[{role:"group",onMouseDown(e){e_(e,u,c,e=>(0,C.contains)(u.context.chipsContainerRef.current,e))}},i],state:g,stateAttributesMapping:eA})});var eK=e.i(699397),eW=e.i(963146),eU=e.i(950448);let eY=r.forwardRef(function(e,t){let n,{render:l,className:i,nativeButton:a=!0,disabled:u=!1,id:s,style:c,...d}=e,{state:p,disabled:f,setTouched:m,setFocused:v,validationMode:g,validation:h}=et(),{labelId:x}=ei(),S=k(),b=S.useState("selectionMode"),y=S.useState("disabled"),R=S.useState("readOnly"),A=S.useState("required"),w=S.useState("positionerElement"),P=S.useState("listElement"),N=S.useState("popupId"),M=S.useState("triggerProps"),V=S.useState("inputInsidePopup"),T=S.useState("id"),L=S.useState("labelId"),F=S.useState("open"),z=S.useState("selectedValue"),B=S.useState("activeIndex"),H=S.useState("selectedIndex"),_=S.useState("hasSelectedValue"),q=D(),K=j(),W=(0,eK.useTimeout)(),U=f||y||u,Y=eT(),$=ej(S);ea({id:V?s:void 0});let G=V?s??T:s;F&&V?n=N??eo(T):F&&(n=P?.id);let J=r.useRef("");function Q(e){J.current=e.pointerType}let{reference:X}=(0,eU.useTypeahead)(q,{enabled:!F&&!R&&!y&&"single"===b,listRef:S.context.labelsRef,activeIndex:B,selectedIndex:H,onMatch(e){let t=S.context.valuesRef.current[e];void 0!==t&&S.context.setSelectedValue(t,(0,I.createChangeEventDetails)(O.REASONS.none))}}),{reference:Z}=(0,E.useClick)(q,{enabled:!y,event:"mousedown"}),{buttonRef:ee,getButtonProps:en}=(0,eD.useButton)({native:a,disabled:U}),er={...p,readOnly:R,open:F,disabled:U,popupSide:$,listEmpty:Y,placeholder:"none"!==b&&!_},el=(0,o.useStableCallback)(e=>{S.set("triggerElement",e)});return(0,eE.useRenderElement)("button",e,{ref:[t,ee,el],state:er,props:[M,Z,X,{id:G,tabIndex:V?0:-1,role:V?"combobox":void 0,"aria-expanded":F,"aria-haspopup":V?"dialog":"listbox","aria-controls":n,"aria-required":V&&A||void 0,"aria-readonly":V&&R||void 0,"aria-labelledby":x??L,onPointerDown:Q,onPointerEnter:Q,onFocus(){v(!0),U||W.start(0,S.context.forceMount)},onBlur(e){(0,C.contains)(w,e.relatedTarget)||(m(!0),v(!1),"onBlur"===g&&h.commit("none"===b?K:z))},onMouseDown(e){if(U||(V||q.set("domReferenceElement",e.currentTarget),S.context.forceMount(),"touch"!==J.current&&(S.context.inputRef.current?.focus(),V||e.preventDefault()),F))return;let t=(0,ey.ownerDocument)(e.currentTarget);V&&t.addEventListener("mouseup",function(e){let t=S.state.triggerElement;if(!t)return;let n=(0,C.getTarget)(e),r=S.state.positionerElement,l=S.state.listElement;(0,C.contains)(t,n)||(0,C.contains)(r,n)||(0,C.contains)(l,n)||(0,eW.isMouseWithinBounds)(e,t)||S.context.setOpen(!1,(0,I.createChangeEventDetails)(O.REASONS.cancelOpen,e))},{once:!0})},onKeyDown(e){("ArrowDown"===e.key||"ArrowUp"===e.key)&&((0,eN.stopEvent)(e),S.context.setOpen(!0,(0,I.createChangeEventDetails)(O.REASONS.listNavigation,e.nativeEvent)),S.context.inputRef.current?.focus())}},h.getValidationProps(U,d),en],stateAttributesMapping:eA})}),e$=r.createContext(null);function eG(e){let{children:n,items:l}=e,i=r.useMemo(()=>({items:l}),[l]);return(0,t.jsx)(e$.Provider,{value:i,children:n})}function eJ(e){let{children:n}=e,{filteredItems:l}=V(),i=r.useContext(e$),a=i?i.items:l;return(0,t.jsx)(r.Fragment,{children:a.map(n)})}var eQ=e.i(373270);let eX=r.forwardRef(function(e,n){var l;let{render:i,className:a,style:u,children:s,...c}=e,d=k(),p=D(),f=!!ek(!0),{filteredItems:m,hasItems:v}=V(),g=d.useState("selectionMode"),h=d.useState("grid"),x=d.useState("readOnly"),S=d.useState("listProps"),b=d.useState("virtualized"),E=d.useState("forceMounted"),y=0===m.length,R=(0,o.useStableCallback)(e=>{d.set("positionerElement",e)}),C=(0,o.useStableCallback)(e=>{d.set("listElement",e)}),I=r.useMemo(()=>"function"==typeof s?l||(l=(0,t.jsx)(eJ,{children:s})):s,[s]),O=p.useState("floatingId"),A=(0,eE.useRenderElement)("div",e,{state:{empty:y},ref:[n,C,f?null:R],props:[S,{children:I,tabIndex:-1,id:O,role:h?"grid":"listbox","aria-multiselectable":"multiple"===g?"true":void 0,"aria-readonly":!h&&!!x||void 0,onKeyDown(e){if(!d.state.disabled&&!d.state.readOnly&&"Enter"===e.key){let t=d.state.activeIndex;null!=t&&((0,eN.stopEvent)(e),ez(d,t,e.nativeEvent))}},onKeyDownCapture(){d.context.keyboardActiveRef.current=!0},onPointerMoveCapture(){d.context.keyboardActiveRef.current=!1}},c]});if(b)return A;let w=v&&!E?void 0:d.context.labelsRef;return(0,t.jsx)(eQ.CompositeList,{elementsRef:d.context.listRef,labelsRef:w,children:A})});function eZ(){let e=(0,eK.useTimeout)(),t=r.useRef(null);return r.useEffect(()=>{if(eC.platform.os.ios)return;let n=t.current;if(null==n)return;let r=function(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;
1""!==e.nodeValue&&(n=e)}return n}(n);if(null==r)return;let l=r.data,i=`${l}\u2060`;return r.nodeValue=i,e.start(200,()=>{r.nodeValue===i&&(r.nodeValue=l)}),()=>{e.clear(),r.nodeValue===i&&(r.nodeValue=l)}},[t,e]),t}let e0=r.forwardRef(function(e,t){let{render:n,className:r,style:l,children:i,...a}=e,o=eZ();return(0,eE.useRenderElement)("div",e,{ref:[t,o],props:[{children:i,role:"status","aria-live":"polite","aria-atomic":!0},a]})});var e1=e.i(668984);let e2=r.createContext(void 0),e5=r.forwardRef(function(e,n){let{keepMounted:r=!1,...l}=e,i=k(),a=i.useState("mounted"),o=i.useState("forceMounted");return a||r||o?(0,t.jsx)(e2.Provider,{value:r,children:(0,t.jsx)(e1.FloatingPortal,{ref:n,...l})}):null});var e3=e.i(160896);let e6={...eI.popupStateMapping,...e3.transitionStatusMapping},e4=r.forwardRef(function(e,t){let{render:n,className:r,style:l,...i}=e,a=k(),o=a.useState("open"),u=a.useState("mounted"),s=a.useState("transitionStatus");return(0,eE.useRenderElement)("div",e,{state:{open:o,transitionStatus:s},ref:t,stateAttributesMapping:e6,props:[{role:"presentation",hidden:!u,style:{userSelect:"none",WebkitUserSelect:"none"}},i]})});var e8=e.i(568505),e9=e.i(305908),e7=e.i(169605),te=e.i(923428),tt=e.i(40563),tn=e.i(988568);let tr=r.forwardRef(function(e,n){let{render:i,className:u,anchor:s,positionMethod:c,side:d,align:p,sideOffset:f,alignOffset:m,collisionBoundary:v="clipping-ancestors",collisionPadding:g,arrowPadding:h,sticky:x,disableAnchorTracking:S=!1,collisionAvoidance:b=e7.DROPDOWN_COLLISION_AVOIDANCE,style:E,...y}=e,R=k(),C=D(),I=function(){let e=r.useContext(e2);if(void 0===e)throw Error((0,l.default)(20));return e}(),O=R.useState("modal"),A=R.useState("open"),w=R.useState("mounted"),P=R.useState("openMethod"),N=R.useState("positionerElement"),M=R.useState("triggerElement"),V=R.useState("inputElement"),j=R.useState("inputGroupElement"),T=R.useState("inputInsidePopup"),L=R.useState("transitionStatus"),F=eT(),z=(0,e9.useAnchorPositioning)({anchor:s??(T?M:j??V),floatingRootContext:C,positionMethod:c,mounted:w,side:d,sideOffset:f,align:p,alignOffset:m,arrowPadding:h,collisionBoundary:v,collisionPadding:g,sticky:x,disableAnchorTracking:S,keepMounted:I,collisionAvoidance:b,lazyFlip:!0});(0,tn.useAnchoredPopupScrollLock)(A&&O,"touch"===P,N,M);let B={open:A,side:z.side,align:z.align,anchorHidden:z.anchorHidden,empty:F};(0,a.useIsoLayoutEffect)(()=>{R.set("popupSide",z.side)},[R,z.side]);let H=(0,o.useStableCallback)(e=>{R.set("positionerElement",e)}),_=(0,tt.usePositioner)(e,B,{styles:z.positionerStyles,transitionStatus:L,props:y,refs:[n,H],hidden:!w,inert:!A});return(0,t.jsxs)(eM.Provider,{value:z,children:[w&&O&&(0,t.jsx)(te.InternalBackdrop,{inert:(0,e8.inertValue)(!A),cutout:j??V??M}),_]})});var tl=e.i(427397),ti=e.i(538014);let ta={...eI.popupStateMapping,...e3.transitionStatusMapping},to=r.forwardRef(function(e,n){let{render:l,className:i,style:o,initialFocus:u,finalFocus:s,...c}=e,d=k(),p=ek(),f=D(),m=d.useState("mounted"),v=d.useState("open"),g=d.useState("openMethod"),h=d.useState("popupProps"),x=d.useState("transitionStatus"),S=d.useState("inputInsidePopup"),b=d.useState("inputElement"),E=d.useState("modal"),y=d.useState("id"),R=eT(),I=c.id??(S?eo(y):void 0);(0,a.useIsoLayoutEffect)(()=>(d.set("popupId",d.context.popupRef.current?.id||I),()=>{d.set("popupId",void 0)}),[d,I]),(0,$.useOpenChangeComplete)({open:v,ref:d.context.popupRef,onComplete(){v&&d.context.onOpenChangeComplete(!0)}});let O={open:v,side:p.side,align:p.align,anchorHidden:p.anchorHidden,transitionStatus:x,empty:R},A=(0,eE.useRenderElement)("div",e,{state:O,ref:[n,d.context.popupRef],props:[h,{id:I,role:S?"dialog":"presentation",onFocus(e){let t=(0,C.getTarget)(e.nativeEvent);"touch"!==g&&((0,C.contains)(d.state.listElement,t)||t===e.currentTarget)&&d.context.inputRef.current?.focus()}},(0,ti.getDisabledMountTransitionStyles)(x),c],stateAttributesMapping:ta}),w=!!S&&(e=>"touch"===e?d.context.popupRef.current:b),P=!S||E;return(0,t.jsx)(tl.FloatingFocusManager,{context:f,disabled:!m,modal:P,openInteractionType:g,initialFocus:void 0===u?w:u,returnFocus:null!=s?s:!!S&&void 0,getInsideElements:()=>[d.context.startDismissRef.current,d.context.endDismissRef.current],children:(0,t.jsxs)(r.Fragment,{children:[A,P&&(0,t.jsx)(eV,{ref:d.context.endDismissRef})]})})}),tu=r.forwardRef(function(e,t){let{render:n,className:r,style:l,...i}=e,a=k(),{arrowRef:o,side:u,align:s,arrowUncentered:c,arrowStyles:d}=ek(),p=a.useState("open");return(0,eE.useRenderElement)("div",e,{ref:[o,t],stateAttributesMapping:eI.popupStateMapping,state:{open:p,side:u,align:s,uncentered:c},props:{style:d,"aria-hidden":!0,...i}})}),ts=r.forwardRef(function(e,t){let{render:n,className:r,style:l,...i}=e;return(0,eE.useRenderElement)("span",e,{ref:t,props:[{"aria-hidden":!0,
1children:"â¼"},i]})}),tc=r.createContext(void 0),td=r.forwardRef(function(e,n){let{render:l,className:i,style:a,items:o,...u}=e,s=k().useState("grid"),[c,d]=r.useState(),p=r.useMemo(()=>({labelId:c,setLabelId:d,items:o}),[c,d,o]),f=(0,eE.useRenderElement)("div",e,{ref:n,props:[{role:s?"rowgroup":"group","aria-labelledby":c},u]}),m=(0,t.jsx)(tc.Provider,{value:p,children:f});return o?(0,t.jsx)(eG,{items:o,children:m}):m}),tp=r.forwardRef(function(e,t){let{render:n,className:i,style:o,id:u,...s}=e,{setLabelId:c}=function(){let e=r.useContext(tc);if(void 0===e)throw Error((0,l.default)(18));return e}(),d=(0,er.useBaseUiId)(u);return(0,a.useIsoLayoutEffect)(()=>(c(d),()=>{c(e=>e===d?void 0:e)}),[d,c]),(0,eE.useRenderElement)("div",e,{ref:t,props:[{id:d,"aria-hidden":!0},s]})});var tf=e.i(671770),tm=e.i(385568);let tv=r.createContext(void 0);function tg(){let e=r.useContext(tv);if(!e)throw Error((0,l.default)(19));return e}let th=r.createContext(!1);function tx(e){let{componentProps:n,forwardedRef:l,virtualized:i,indexFromFilter:o}=e,{render:u,className:s,style:c,value:d=null,index:p,disabled:f=!1,nativeButton:m=!1,...v}=n,g=r.useRef(null),h=(0,tm.useCompositeListItem)({guess:!0,index:p,textRef:g}),x=k(),S=r.useContext(th),b=r.useContext(N),E=x.useState("selectionMode"),y=x.useState("disabled"),R=x.useState("readOnly"),C=x.useState("isItemEqualToValue"),I=y||f,O="none"!==E,A=p??o??h.index,w=-1!==A,P=x.useState("id"),M=x.useState("isActive",A),D=x.useState("isSelected",d),V=x.useState("itemProps"),j=r.useRef(null),T=null!=P&&w?`${P}-${A}`:void 0,z=D&&O;(0,a.useIsoLayoutEffect)(()=>{if(!(w&&(i||null!=p)))return;let e=x.context.listRef.current;return e[A]=j.current,()=>{delete e[A]}},[w,i,A,p,x]),(0,a.useIsoLayoutEffect)(()=>{if(!w||b)return;let e=x.context.valuesRef.current;return e[A]=d,()=>{delete e[A]}},[w,b,A,d,x]),(0,a.useIsoLayoutEffect)(()=>{if(!w||b)return;let e=x.state.selectedValue,t=x.state.selectedIndex;if("multiple"===x.state.selectionMode&&Array.isArray(e)){var n,r;n=x.context.valuesRef.current,r=t,t=F(e,d,C)?null!=r&&A>r&&F(e,n[r],C)?r:A:A===r?B(n,e,C,!0):r}else L(d,e,C)&&(t=A);x.set("selectedIndex",t)},[w,b,x,A,d,C]);let{getButtonProps:H,buttonRef:_}=(0,eD.useButton)({disabled:I,focusableWhenDisabled:!0,native:m,composite:!0});function q(e){function t(){x.context.handleSelection(e,d)}x.state.submitOnItemClick?(tf.flushSync(t),x.context.requestSubmit()):t()}let K=(0,eE.useRenderElement)("div",n,{ref:[_,l,h.ref,j],state:{disabled:I,selected:z,highlighted:M},props:[V,{id:T,role:S?"gridcell":"option","aria-selected":O?z:void 0,tabIndex:void 0,onPointerDownCapture(e){e.isPrimary&&(x.context.pointerDownItemRef.current=e.currentTarget),e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){I||R||q(e.nativeEvent)},onMouseUp(e){let t=x.context.pointerDownItemRef.current===e.currentTarget;x.context.pointerDownItemRef.current=null,I||R||0!==e.button||t||!M||q(e.nativeEvent)}},v,H]}),W=r.useMemo(()=>({selected:z,textRef:g}),[z,g]);return(0,t.jsx)(tv.Provider,{value:W,children:K})}function tS(e){let{componentProps:n,forwardedRef:r}=e,l=k().useState("isItemEqualToValue"),{flatFilteredValues:i}=V(),a=z(i,n.value??null,l);return(0,t.jsx)(tx,{componentProps:n,forwardedRef:r,virtualized:!0,indexFromFilter:a})}let tb=r.memo(r.forwardRef(function(e,n){let r=k().useState("virtualized");return r&&null==e.index?(0,t.jsx)(tS,{componentProps:e,forwardedRef:n}):(0,t.jsx)(tx,{componentProps:e,forwardedRef:n,virtualized:r,indexFromFilter:void 0})})),tE=r.forwardRef(function(e,n){let{selected:r}=tg();return e.keepMounted||r?(0,t.jsx)(ty,{...e,ref:n}):null}),ty=r.memo(r.forwardRef((e,t)=>{let{render:n,className:l,style:i,keepMounted:a,...o}=e,{selected:u}=tg(),s=r.useRef(null),{transitionStatus:c,setMounted:d}=(0,ed.useTransitionStatus)(u),p=(0,eE.useRenderElement)("span",e,{ref:[t,s],state:{selected:u,transitionStatus:c},props:[{"aria-hidden":!0,children:"âï¸"},o],stateAttributesMapping:e3.transitionStatusMapping});return(0,$.useOpenChangeComplete)({batch:!0,enabled:!u,open:u,ref:s,onComplete(){u||d(!1)}}),p})),tR=r.forwardRef(function(e,n){let{render:l,className:i,style:a,...o}=e,u=k(),s=u.useState("open"),c=u.useState("hasSelectionChips"),[d,p]=r.useState(void 0);s&&void 0!==d&&p(void 0);let m=r.useRef([]),v=(0,eE.useRenderElement)("div",e,{ref:[n,u.context.chipsContainerRef],props:[c?{role:"toolbar"}:f.EMPTY_OBJECT,{onMouseDown(e){e_(e,u,u.state.disabled)}},o]}),g=r.useMemo(()=>({highlightedChipIndex:d,setHighlightedChipIndex:p,chipsRef:m}),[d,p,m]);return(0,t.jsx)(ew.Provider,{value:g,children:(0,t.jsx)(eQ.CompositeList,{elementsRef:m,children:v})})}),tC=r.createContext(void 0),tI=r.forwardRef(function(e,n){let{render:l,className:i,style:a,...o}=e,u=k(),{setHighlightedChipIndex:s,chipsRef:c}=eP(),d=(0,ex.useDirection)(),p=u.useState("disabled"),f=u.useState("readOnly"),m=u.useState("selectedValue"),{ref:v,index:g}=(0,tm.useCompositeListItem)(),h=(0,eE.useRenderElement)("div",e,{ref:[n,v],state:{disabled:p},props:[{tabIndex:-1,"aria-disabled":p||void 0,"aria-readonly":f||void 0,onKeyDown(e){if(p||f)return;let t=function(e){let t=g,[n,r]=eL(d);return e.key===n?(e.preventDefault(),t=g>0?g-1:void 0):e.key===r?(e.preventDefault(),t=g<c.current.length-1?g+1:void 0):"Backspace"===e.key||"Delete"===e.key?(t=eF(g,m.length),(0,eN.stopEvent)(e),u.context.setIndices({activeIndex:null,selectedIndex:null,type:O.REASONS.keyboard}),u.context.setSelectedValue(m.filter((e,t)=>
1t!==g),(0,I.createChangeEventDetails)(O.REASONS.none,e.nativeEvent))):"Enter"===e.key||" "===e.key?((0,eN.stopEvent)(e),t=void 0):"ArrowDown"===e.key||"ArrowUp"===e.key?((0,eN.stopEvent)(e),u.context.setOpen(!0,(0,I.createChangeEventDetails)(O.REASONS.listNavigation,e.nativeEvent)),t=void 0):1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey||(t=void 0),t}(e);tf.flushSync(()=>{s(t)}),void 0===t?u.context.inputRef.current?.focus():c.current[t]?.focus()}},o]}),x=r.useMemo(()=>({index:g}),[g]);return(0,t.jsx)(tC.Provider,{value:x,children:h})}),tO=r.forwardRef(function(e,t){let{render:n,className:i,disabled:a=!1,nativeButton:o=!0,style:u,...s}=e,c=k(),{index:d}=function(){let e=r.useContext(tC);if(!e)throw Error((0,l.default)(17));return e}(),p=c.useState("disabled"),f=c.useState("readOnly"),m=c.useState("selectedValue"),v=c.useState("isItemEqualToValue"),g=p||a,{buttonRef:h,getButtonProps:x}=(0,eD.useButton)({native:o,disabled:g||f,focusableWhenDisabled:!0});function S(e){let t=(0,I.createChangeEventDetails)(O.REASONS.chipRemovePress,e.nativeEvent);return!function(e){let t=c.state.activeIndex;if(null==t)return;let n=z(c.context.valuesRef.current,e,v);-1!==n&&t===n&&c.context.setIndices({activeIndex:null,type:c.context.keyboardActiveRef.current?O.REASONS.keyboard:O.REASONS.pointer})}(m[d]),c.context.setSelectedValue(m.filter((e,t)=>t!==d),t),c.context.inputRef.current?.focus(),t}return(0,eE.useRenderElement)("button",e,{ref:[t,h],state:{disabled:g},props:[{tabIndex:-1,onMouseDown(e){e.preventDefault()},onClick(e){S(e).isPropagationAllowed||e.stopPropagation()},onKeyDown(e){("Enter"===e.key||" "===e.key)&&(S(e).isPropagationAllowed||(0,eN.stopEvent)(e))}},s,x]})}),tA=r.forwardRef(function(e,n){let{render:r,className:l,style:i,...a}=e,o=(0,eE.useRenderElement)("div",e,{ref:n,props:[{role:"row"},a]});return(0,t.jsx)(th.Provider,{value:!0,children:o})}),tw=r.forwardRef(function(e,t){let{render:n,className:r,style:l,children:i,...a}=e,{filteredItems:o}=V(),u=k(),s=eZ(),c=0===o.length?i:null;return(0,eE.useRenderElement)("div",e,{ref:[t,u.context.emptyRef,s],props:[{children:c,role:"status","aria-live":"polite","aria-atomic":!0},a]})}),tP={...e3.transitionStatusMapping,...eI.triggerOpenStateMapping},tN=r.forwardRef(function(e,t){let{render:n,className:r,disabled:l=!1,nativeButton:i=!0,keepMounted:a=!1,style:o,...u}=e,{disabled:s}=et(),c=k(),d=c.useState("selectionMode"),p=c.useState("disabled"),f=c.useState("readOnly"),m=c.useState("open"),v=c.useState("selectedValue"),g=c.useState("hasSelectionChips"),h=j(),x=!1;x="none"===d?""!==h:"single"===d?null!=v:g;let S=s||p||l,{buttonRef:b,getButtonProps:E}=(0,eD.useButton)({native:i,disabled:S}),{mounted:y,transitionStatus:R,setMounted:C}=(0,ed.useTransitionStatus)(x),A={disabled:S,visible:x,open:m,transitionStatus:R};(0,$.useOpenChangeComplete)({open:x,ref:c.context.clearRef,onComplete(){x||C(!1)}});let w=(0,eE.useRenderElement)("button",e,{state:A,ref:[t,b,c.context.clearRef],props:[{tabIndex:-1,children:"x",onMouseDown(e){e.preventDefault()},onClick(e){if(S||f)return;let t=c.context.keyboardActiveRef.current?O.REASONS.keyboard:O.REASONS.pointer;c.context.setInputValue("",(0,I.createChangeEventDetails)(O.REASONS.clearPress,e.nativeEvent)),"none"!==d?(c.context.setSelectedValue(Array.isArray(v)?[]:null,(0,I.createChangeEventDetails)(O.REASONS.clearPress,e.nativeEvent)),c.context.setIndices({activeIndex:null,selectedIndex:null,type:t})):c.context.setIndices({activeIndex:null,type:t}),c.context.inputRef.current?.focus()}},u,E],stateAttributesMapping:tP});return a||y?w:null}),tM=r.forwardRef(function(e,t){let{className:n,render:r,orientation:l="horizontal",style:i,...a}=e;return(0,eE.useRenderElement)("div",e,{state:{orientation:l},ref:t,props:[{role:"presentation"},a]})});e.s(["Arrow",0,tu,"Backdrop",0,e4,"Chip",0,tI,"ChipRemove",0,tO,"Chips",0,tR,"Clear",0,tN,"Collection",0,eJ,"Empty",0,tw,"Group",0,td,"GroupLabel",0,tp,"Icon",0,ts,"Input",0,eB,"InputGroup",0,eq,"Item",0,tb,"ItemIndicator",0,tE,"Label",0,eR,"List",0,eX,"Popup",0,to,"Portal",0,e5,"Positioner",0,tr,"Root",0,function(e){let{multiple:n=!1,defaultValue:r,value:l,onValueChange:i,autoComplete:a,...o}=e;return(0,t.jsx)(eb,{...o,selectionMode:n?"multiple":"single",selectedValue:l,defaultSelectedValue:r,onSelectedValueChange:i,formAutoComplete:a})},"Row",0,tA,"Separator",0,tM,"Status",0,e0,"Trigger",0,eY,"Value",0,function(e){let{children:n,placeholder:l}=e,i=k(),a=i.useState("itemToStringLabel"),o=i.useState("selectedValue"),u=i.useState("items"),s="multiple"===i.useState("selectionMode"),c=i.useState("hasSelectedValue"),d=i.useState("hasNullItemLabel",!c&&null!=l&&null==n),p=null;if("function"==typeof n)p=n(o);else if(null!=n)p=n;else if(c||null==l||d)if(s&&Array.isArray(o))p=o.reduce((e,n,l)=>(l>0&&e.push(", "),e.push((0,t.jsx)(r.Fragment,{children:U(n,u,a)},l)),e),[]);else p=U(o,u,a);else p=l;return(0,t.jsx)(r.Fragment,{children:p})},"createItems",0,function(e,t){let{getValue:n,getLabel:r}=t,l=null;function i(){if(null===l){let t=new Map;for(let r of e?q(e):f.EMPTY_ARRAY){if(null==r)continue;let e=n(r);t.has(e)||t.set(e,r)}l=t}return l}return{data:e,value:function(e){return null==e?e:n(e)},hasValue:(e,t)=>
1void 0!==eS(i(),e,t),itemLabel:r,label(e,t,n){let l=eS(i(),e,t);return void 0!==l?r(l):K(e,n)}}},"useFilter",0,function(e={}){let{multiple:t=!1,value:n,...l}=e,i=ec(l),a=r.useCallback((e,r,l)=>t?eu(i,l)(e,r):((e,t)=>{if(null==e)return!1;if(!t)return!0;let r=l?.selected??l,a=null!=n?K(n,r):"";return!!(a&&i.contains(a,t))&&a.length===t.length||i.contains(e,t,l)})(e,r),[i,n,t]);return r.useMemo(()=>({...i,contains:a}),[a,i])},"useFilteredItems",0,function(){return V().filteredItems}],123585);var tk=e.i(123585),tk=tk,tD=e.i(599892),tV=e.i(459555),tj=e.i(738551),tT=e.i(152236),tL=e.i(466691),tF=e.i(294237);e.i(924911),e.i(306662),(0,tF.cva)("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3","block-end":"order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3"}},defaultVariants:{align:"inline-start"}}),(0,tF.cva)("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",sm:"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});let tz=tk.Root;function tB(e){let r,l,i=(0,n.c)(4);return i[0]!==e?({...r}=e,i[0]=e,i[1]=r):r=i[1],i[2]!==r?(l=(0,t.jsx)(tk.Value,{"data-slot":"combobox-value",...r}),i[2]=r,i[3]=l):l=i[3],l}function tH(e){let r,l,i,a,o,u,s=(0,n.c)(11);return s[0]!==e?({className:l,children:r,...i}=e,s[0]=e,s[1]=r,s[2]=l,s[3]=i):(r=s[1],l=s[2],i=s[3]),s[4]!==l?(a=(0,tT.cn)("[&_svg:not([class*='size-'])]:size-4",l),s[4]=l,s[5]=a):a=s[5],s[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(tV.ChevronDownIcon,{"data-slot":"combobox-trigger-icon",className:"pointer-events-none size-4 text-muted-foreground"}),s[6]=o):o=s[6],s[7]!==r||s[8]!==i||s[9]!==a?(u=(0,t.jsxs)(tk.Trigger,{"data-slot":"combobox-trigger",className:a,...i,children:[r,o]}),s[7]=r,s[8]=i,s[9]=a,s[10]=u):u=s[10],u}function t_(e){let r,l,i,a,o,u,s,c,d,p,f=(0,n.c)(21);f[0]!==e?({className:l,side:a,sideOffset:o,align:u,alignOffset:s,anchor:r,...i}=e,f[0]=e,f[1]=r,f[2]=l,f[3]=i,f[4]=a,f[5]=o,f[6]=u,f[7]=s):(r=f[1],l=f[2],i=f[3],a=f[4],o=f[5],u=f[6],s=f[7]);let m=void 0===a?"bottom":a,v=void 0===o?6:o,g=void 0===u?"start":u,h=void 0===s?0:s,x=!!r;return f[8]!==l?(c=(0,tT.cn)("group/combobox-content relative max-h-96 w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[chips=true]:min-w-(--anchor-width) data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",l),f[8]=l,f[9]=c):c=f[9],f[10]!==i||f[11]!==x||f[12]!==c?(d=(0,t.jsx)(tk.Popup,{"data-slot":"combobox-content","data-chips":x,className:c,...i}),f[10]=i,f[11]=x,f[12]=c,f[13]=d):d=f[13],f[14]!==g||f[15]!==h||f[16]!==r||f[17]!==m||f[18]!==v||f[19]!==d?(p=(0,t.jsx)(tk.Portal,{children:(0,t.jsx)(tk.Positioner,{side:m,sideOffset:v,align:g,alignOffset:h,anchor:r,className:"isolate z-[80]",children:d})}),f[14]=g,f[15]=h,f[16]=r,f[17]=m,f[18]=v,f[19]=d,f[20]=p):p=f[20],p}function tq(e){let r,l,i,a,o=(0,n.c)(8);return o[0]!==e?({className:r,...l}=e,o[0]=e,o[1]=r,o[2]=l):(r=o[1],l=o[2]),o[3]!==r?(i=(0,tT.cn)("max-h-[min(calc(--spacing(96)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0",r),o[3]=r,o[4]=i):i=o[4],o[5]!==l||o[6]!==i?(a=(0,t.jsx)(tk.List,{"data-slot":"combobox-list",className:i,...l}),o[5]=l,o[6]=i,o[7]=a):a=o[7],a}function tK(e){let r,l,i,a,o,u,s=(0,n.c)(11);return s[0]!==e?({className:l,children:r,...i}=e,s[0]=e,s[1]=r,s[2]=l,s[3]=i):(r=s[1],l=s[2],i=s[3]),s[4]!==l?(a=(0,tT.cn)("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),s[4]=l,s[5]=a):a=s[5],s[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(tk.ItemIndicator,{"data-slot":"combobox-item-indicator",render:(0,t.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,t.jsx)(tD.CheckIcon,{className:"pointer-events-none size-4 pointer-coarse:size-5"})}),s[6]=o):o=s[6],s[7]!==r||s[8]!==i||s[9]!==a?(u=(0,t.jsxs)(tk.Item,{"data-slot":"combobox-item",className:a,...i,children:[r,o]}),s[7]=r,s[8]=i,s[9]=a,s[10]=u):u=s[10],u}function tW(e){let r,l,i,a,o=(0,n.c)(8);return o[0]!==e?({className:r,...l}=e,o[0]=e,o[1]=r,o[2]=l):(r=o[1],l=o[2]),o[3]!==r?(i=(0,tT.cn)("hidden w-full justify-center py-2 text-center text-sm text-muted-foreground group-data-empty/combobox-content:flex",r),o[3]=r,o[4]=i):i=o[4],o[5]!==l||o[6]!==i?(a=(0,t.jsx)(tk.Empty,{"data-slot":"combobox-empty",className:i,...l}),o[5]=l,o[6]=i,o[7]=a):a=o[7],a}function tU(e){let r,l,i,a,o=(0,n.c)(8);return o[0]!==e?({className:r,...l}=e,o[0]=e,o[1]=r,o[2]=l):(r=o[1],l=o[2]),o[3]!==r?(i=(0,tT.cn)("flex min-h-9 flex-wrap items-center gap-1.5 rounded-md border border-input bg-transparent bg-clip-padding px-2.5 py-1.5 text-sm shadow-xs transition-[color,box-shadow] focu
1s-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-[3px] has-aria-invalid:ring-destructive/20 has-data-[slot=combobox-chip]:px-1.5 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40",r),o[3]=r,o[4]=i):i=o[4],o[5]!==l||o[6]!==i?(a=(0,t.jsx)(tk.Chips,{"data-slot":"combobox-chips",className:i,...l}),o[5]=l,o[6]=i,o[7]=a):a=o[7],a}function tY(e){let r,l,i,a,o,u,s,c=(0,n.c)(14);c[0]!==e?({className:l,children:r,showRemove:a,...i}=e,c[0]=e,c[1]=r,c[2]=l,c[3]=i,c[4]=a):(r=c[1],l=c[2],i=c[3],a=c[4]);let d=void 0===a||a;return c[5]!==l?(o=(0,tT.cn)("flex h-[calc(--spacing(5.5))] w-fit items-center justify-center gap-1 rounded-sm bg-muted px-1.5 text-xs font-medium whitespace-nowrap text-foreground has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50 has-data-[slot=combobox-chip-remove]:pr-0",l),c[5]=l,c[6]=o):o=c[6],c[7]!==d?(u=d&&(0,t.jsx)(tk.ChipRemove,{render:(0,t.jsx)(tL.Button,{variant:"ghost",size:"icon-xs"}),className:"-ml-1 opacity-50 hover:opacity-100","data-slot":"combobox-chip-remove",children:(0,t.jsx)(tj.XIcon,{className:"pointer-events-none"})}),c[7]=d,c[8]=u):u=c[8],c[9]!==r||c[10]!==i||c[11]!==o||c[12]!==u?(s=(0,t.jsxs)(tk.Chip,{"data-slot":"combobox-chip",className:o,...i,children:[r,u]}
1),c[9]=r,c[10]=i,c[11]=o,c[12]=u,c[13]=s):s=c[13],s}function t$(e){let r,l,i,a,o=(0,n.c)(8);if(o[0]!==e){let{className:t,children:n,...i}=e;r=t,l=i,o[0]=e,o[1]=r,o[2]=l}else r=o[1],l=o[2];return o[3]!==r?(i=(0,tT.cn)("min-w-16 flex-1 outline-none",r),o[3]=r,o[4]=i):i=o[4],o[5]!==l||o[6]!==i?(a=(0,t.jsx)(tk.Input,{"data-slot":"combobox-chip-input",className:i,...l}),o[5]=l,o[6]=i,o[7]=a):a=o[7],a}function tG(e){return e.value}function tJ(e){return e.value}function tQ(e){return e.label}e.s(["MultiSelectDropdown",0,e=>{let l,i,a,o,u,s,c,d,p,f=(0,n.c)(32),{label:m,options:v,selectedValues:g,onChange:h,placeholder:x,className:S,chipClassName:b,inputClassName:E,contentClassName:y,itemClassName:R,placeholderClassName:C,side:I}=e,O=void 0===x?"Select one or more options":x,A=void 0===I?"bottom":I,w=r.useRef(null);if(f[0]!==v||f[1]!==g){let e;f[3]!==g?(e=e=>g.includes(e.value),f[3]=g,f[4]=e):e=f[4],l=v.filter(e),f[0]=v,f[1]=g,f[2]=l}else l=f[2];let P=l;f[5]!==h?(i=e=>h(e.map(tG)),f[5]=h,f[6]=i):i=f[6];let N=`min-h-10 rounded-md border-2 border-gray-300 bg-white px-3 py-1 text-sm shadow-none focus-within:border-blue-500 focus-within:ring-0 sm:min-h-11 sm:text-base ${S??""}`;f[7]!==b||f[8]!==E||f[9]!==m||f[10]!==O||f[11]!==C?(a=(0,t.jsx)(tB,{children:e=>(0,t.jsxs)(t.Fragment,{children:[e.length>0?e.map(e=>(0,t.jsx)(tY,{showRemove:!1,className:`h-7 rounded-md bg-blue-50 px-2.5 text-xs font-medium text-blue-800 sm:text-sm ${b??""}`,children:e.label},e.value)):(0,t.jsx)("span",{className:C??"text-gray-500",children:O}),(0,t.jsx)(t$,{"aria-label":m,placeholder:0===e.length?"":"Search...",className:`min-w-20 flex-1 text-sm text-gray-900 placeholder:text-gray-500 ${E??""}`})]})}),f[7]=b,f[8]=E,f[9]=m,f[10]=O,f[11]=C,f[12]=a):a=f[12],f[13]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(tH,{className:"ml-auto shrink-0 text-gray-500"}),f[13]=o):o=f[13],f[14]!==w||f[15]!==N||f[16]!==a?(u=(0,t.jsxs)(tU,{ref:w,className:N,children:[a,o]}),f[14]=w,f[15]=N,f[16]=a,f[17]=u):u=f[17];let M=`rounded-2xl border border-gray-200 p-1.5 ${y??""}`;return f[18]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(tW,{children:"No options found."}),f[18]=s):s=f[18],f[19]!==R?(c=(0,t.jsx)(tq,{className:"max-h-56",children:e=>(0,t.jsx)(tK,{value:e,className:`rounded-xl px-3 py-2 text-sm text-gray-700 data-highlighted:bg-blue-50 data-highlighted:text-blue-800 ${R??""}`,children:e.label},e.value)}),f[19]=R,f[20]=c):c=f[20],f[21]!==w||f[22]!==A||f[23]!==c||f[24]!==M?(d=(0,t.jsxs)(t_,{anchor:w,side:A,className:M,children:[s,c]}),f[21]=w,f[22]=A,f[23]=c,f[24]=M,f[25]=d):d=f[25],f[26]!==v||f[27]!==P||f[28]!==d||f[29]!==i||f[30]!==u?(p=(0,t.jsxs)(tz,{items:v,multiple:!0,value:P,onValueChange:i,itemToStringValue:tJ,itemToStringLabel:tQ,children:[u,d]}),f[26]=v,f[27]=P,f[28]=d,f[29]=i,f[30]=u,f[31]=p):p=f[31],p}],656774)}]);
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.