1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,832406,370160,207705,461859,715253,216546,340223,96886,385025,889623,970374,187826,119633,201021,267739,736782,e=>{"use strict";var t=e.i(978605),i=e.i(532592),[l,a]=(0,i.createContext)({name:"SelectContext",hookName:"useSelectContext",providerName:"<SelectProvider />"});e.s(["SelectProvider",0,l,"useSelectContext",0,a],370160);var o=e.i(271645),r=e.i(541949),s=e.i(843476),n=(0,o.forwardRef)((e,i)=>{let l=(0,r.mergeProps)(a().getClearTriggerProps(),e);return(0,s.jsx)(t.ark.button,{...l,ref:i})});n.displayName="SelectClearTrigger",e.s(["SelectClearTrigger",0,n],832406);var c=e.i(216417),d=e.i(664747),u=(0,o.forwardRef)((e,i)=>{let l=a(),o=(0,d.usePresenceContext)(),n=(0,r.mergeProps)(l.getContentProps(),o.getPresenceProps(),e);return o.unmounted?null:(0,s.jsx)(t.ark.div,{...n,ref:(0,c.composeRefs)(o.ref,i)})});u.displayName="SelectContent",e.s(["SelectContent",0,u],207705),e.s(["SelectContext",0,e=>e.children(a())],461859);var g=(0,o.forwardRef)((e,i)=>{let l=(0,r.mergeProps)(a().getControlProps(),e);return(0,s.jsx)(t.ark.div,{...l,ref:i})});g.displayName="SelectControl",e.s(["SelectControl",0,g],715253);var m=e.i(220668),p=(0,o.forwardRef)((e,i)=>{let l=a(),o=(0,r.mergeProps)(l.getHiddenSelectProps(),e),n=0===l.value.length,c=(0,m.useFieldContext)();return(0,s.jsxs)(t.ark.select,{"aria-describedby":c?.ariaDescribedby,...o,ref:i,children:[n&&(0,s.jsx)("option",{value:""}),l.collection.items.map((e,t)=>(0,s.jsx)("option",{value:l.collection.getItemValue(e)??"",disabled:l.collection.getItemDisabled(e),children:l.collection.stringifyItem(e)},t))]})});p.displayName="SelectHiddenSelect",e.s(["SelectHiddenSelect",0,p],216546);var h=(0,o.forwardRef)((e,i)=>{let l=(0,r.mergeProps)(a().getIndicatorProps(),e);return(0,s.jsx)(t.ark.div,{...l,ref:i})});h.displayName="SelectIndicator",e.s(["SelectIndicator",0,h],340223);var v=e.i(287942),[f,I]=(0,i.createContext)({name:"SelectItemContext",hookName:"useSelectItemContext",providerName:"<SelectItemProvider />"}),[b,x]=(0,i.createContext)({name:"SelectItemPropsContext",hookName:"useSelectItemPropsContext",providerName:"<SelectItemPropsProvider />"}),C=(0,v.createSplitProps)(),y=(0,o.forwardRef)((e,i)=>{let[l,o]=C(e,["item","persistFocus"]),n=a(),c=(0,r.mergeProps)(n.getItemProps(l),o);return(0,s.jsx)(b,{value:l,children:(0,s.jsx)(f,{value:n.getItemState(l),children:(0,s.jsx)(t.ark.div,{...c,ref:i})})})});y.displayName="SelectItem",e.s(["SelectItem",0,y],96886),e.s(["SelectItemContext",0,e=>e.children(I())],385025);var[E,O]=(0,i.createContext)({name:"SelectItemGroupPropsContext",hookName:"useSelectItemGroupPropsContext",providerName:"<SelectItemGroupPropsProvider />"}),T=(0,v.createSplitProps)(),P=(0,o.forwardRef)((e,i)=>{let l=(0,o.useId)(),[n,c]=T(e,["id"]),d={id:l,...n},u=(0,r.mergeProps)(a().getItemGroupProps(d),c);return(0,s.jsx)(E,{value:d,children:(0,s.jsx)(t.ark.div,{...u,ref:i})})});P.displayName="SelectItemGroup",e.s(["SelectItemGroup",0,P],889623);var N=(0,o.forwardRef)((e,i)=>{let l=a(),o=O(),n=(0,r.mergeProps)(l.getItemGroupLabelProps({htmlFor:o.id}),e);return(0,s.jsx)(t.ark.div,{...n,ref:i})});N.displayName="SelectItemGroupLabel",e.s(["SelectItemGroupLabel",0,N],970374);var V=(0,o.forwardRef)((e,i)=>{let l=a(),o=x(),n=(0,r.mergeProps)(l.getItemIndicatorProps(o),e);return(0,s.jsx)(t.ark.div,{...n,ref:i})});V.displayName="SelectItemIndicator",e.s(["SelectItemIndicator",0,V],187826);var S=(0,o.forwardRef)((e,i)=>{let l=a(),o=x(),n=(0,r.mergeProps)(l.getItemTextProps(o),e);return(0,s.jsx)(t.ark.span,{...n,ref:i})});S.displayName="SelectItemText",e.s(["SelectItemText",0,S],119633);var w=(0,o.forwardRef)((e,i)=>{let l=(0,r.mergeProps)(a().getLabelProps(),e);return(0,s.jsx)(t.ark.label,{...l,ref:i})});w.displayName="SelectLabel",e.s(["SelectLabel",0,w],201021);var L=(0,o.forwardRef)((e,i)=>{let l=(0,r.mergeProps)(a().getListProps(),e);return(0,s.jsx)(t.ark.div,{...l,ref:i})});L.displayName="SelectList",e.s(["SelectList",0,L],267739);var k=(0,o.forwardRef)((e,i)=>{let l=(0,r.mergeProps)(a().getPositionerProps(),e);return(0,d.usePresenceContext)().unmounted?null:(0,s.jsx)(t.ark.div,{...l,ref:i})});k.displayName="SelectPositioner",e.s(["SelectPositioner",0,k],736782)},972524,e=>{"use strict";var t=e.i(226828),i=e.i(154700),l=Object.assign(function(e,l){let{state:a,activeId:o,key:r,timeout:s=350,itemToId:n}=l,c=a.keysSoFar+r,d=c.length>1&&Array.from(c).every(e=>e===c[0])?c[0]:c,u=function(e,l,a,o=t.defaultItemToId){let r=a?(0,t.indexOfId)(e,a,o):-1,s=a?(0,i.wrap)(e,r):e;return 1===l.length&&(s=s.filter(e=>o(e)!==a)),s.find(e=>{let t;return t=(e.dataset?.valuetext??e.textContent??"").split("").map(e=>{let t=e.charCodeAt(0);return t>0&&t<128?e:t>=128&&t<=255?`/x${t.toString(16)}`.replace("/","\\"):""}).join("").trim(),t.trim().toLowerCase().startsWith(l.toLowerCase())})}(e.slice(),d,o,n);function g(){clearTimeout(a.timer),a.timer=-1}
1return!function e(t){a.keysSoFar=t,g(),""!==t&&(a.timer=+setTimeout(()=>{e(""),g()},s))}(c),u},{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:function(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}});e.s(["getByTypeahead",0,l],972524)},112749,e=>{"use strict";e.i(193069);var t=e.i(853832);e.s(["scrollIntoView",0,function(e,i){let{rootEl:l,...a}=i||{};e&&l&&(0,t.isOverflowElement)(l)&&(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth)&&e.scrollIntoView(a)}])},830870,e=>{"use strict";function t({values:e,collection:i,selectedItemMap:l}){let a=[];for(let t of e){let e=i.find(t)??l.get(t);null!=e&&a.push(e)}return a}function i({selectedItemMap:e,values:t,selectedItems:l,collection:a}){let o=new Map(e);for(let e of l){let t=a.getItemValue(e);null!=t&&o.set(t,e)}let r=new Set(t);for(let e of o.keys())r.has(e)||o.delete(e);return o}e.s(["createSelectedItemMap",0,function({selectedItems:e,collection:t}){return i({selectedItemMap:new Map,values:e.map(e=>t.getItemValue(e)).filter(Boolean),selectedItems:e,collection:t})},"deriveSelectionState",0,function({values:e,collection:l,selectedItemMap:a}){let o=t({values:e,collection:l,selectedItemMap:a}),r=i({selectedItemMap:a,values:e,selectedItems:o,collection:l});return{selectedItems:o,nextSelectedItemMap:r}},"resolveSelectedItems",0,t])},47791,e=>{"use strict";var t=Object.defineProperty,i=(e,i,l)=>{let a;return(a="symbol"!=typeof i?i+"":i)in e?t(e,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[a]=l},l=e.i(219690),a=e.i(510815),o={itemToValue:e=>"string"==typeof e?e:(0,l.isObject)(e)&&(0,l.hasProp)(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:(0,l.isObject)(e)&&(0,l.hasProp)(e,"label")?e.label:o.itemToValue(e),isItemDisabled:e=>!!((0,l.isObject)(e)&&(0,l.hasProp)(e,"disabled"))&&!!e.disabled},r=class e{constructor(t){i(this,"options",t),i(this,"items"),i(this,"indexMap",null),i(this,"copy",t=>new e({...this.options,items:t??[...this.items]})),i(this,"isEqual",e=>(0,a.isEqual)(this.items,e.items)),i(this,"setItems",e=>this.copy(e)),i(this,"getValues",(e=this.items)=>{let t=[];for(let i of e){let e=this.getItemValue(i);null!=e&&t.push(e)}return t}),i(this,"find",e=>{if(null==e)return null;let t=this.indexOf(e);return -1!==t?this.at(t):null}),i(this,"findMany",e=>{let t=[];for(let i of e){let e=this.find(i);null!=e&&t.push(e)}return t}),i(this,"at",e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;for(let[,i]of this.group())for(let l of i){if(t===e)return l;t++}return null}),i(this,"sortFn",(e,t)=>(this.indexOf(e)??0)-(this.indexOf(t)??0)),i(this,"sort",e=>[...e].sort(this.sortFn.bind(this))),i(this,"getItemValue",e=>null==e?null:this.options.itemToValue?.(e)??o.itemToValue(e)),i(this,"getItemDisabled",e=>null!=e&&(this.options.isItemDisabled?.(e)??o.isItemDisabled(e))),i(this,"stringifyItem",e=>null==e?null:this.options.itemToString?.(e)??o.itemToString(e)),i(this,"stringify",e=>null==e?null:this.stringifyItem(this.find(e))),i(this,"stringifyItems",(e,t=", ")=>{let i=[];for(let t of e){let e=this.stringifyItem(t);null!=e&&i.push(e)}return i.join(t)}),i(this,"stringifyMany",(e,t)=>this.stringifyItems(this.findMany(e),t)),i(this,"has",e=>-1!==this.indexOf(e)),i(this,"hasItem",e=>null!=e&&this.has(this.getItemValue(e))),i(this,"group",()=>{let{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];let i=new Map;this.items.forEach((t,l)=>{let a=e(t,l);i.has(a)||i.set(a,[]),i.get(a).push(t)});let l=Array.from(i.entries());return t&&l.sort(([e],[i])=>{if("function"==typeof t)return t(e,i);if(Array.isArray(t)){let l=t.indexOf(e),a=t.indexOf(i);return -1===l?1:-1===a?-1:l-a}return"asc"===t?e.localeCompare(i):"desc"===t?i.localeCompare(e):0}),l}),i(this,"getNextValue",(e,t=1,i=!1)=>{let l=this.indexOf(e);if(-1===l)return null;for(l=i?Math.min(l+t,this.size-1):l+t;l<=this.size&&this.getItemDisabled(this.at(l));)l++;return this.getItemValue(this.at(l))}),i(this,"getPreviousValue",(e,t=1,i=!1)=>{let l=this.indexOf(e);if(-1===l)return null;for(l=i?Math.max(l-t,0):l-t;l>=0&&this.getItemDisabled(this.at(l));)l--;
1return this.getItemValue(this.at(l))}),i(this,"indexOf",e=>{if(null==e)return -1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(t=>this.getItemValue(t)===e);if(!this.indexMap){this.indexMap=new Map;let e=0;for(let[,t]of this.group())for(let i of t){let t=this.getItemValue(i);null!=t&&this.indexMap.set(t,e),e++}}return this.indexMap.get(e)??-1}),i(this,"getByText",(e,t)=>{let i=null!=t?this.indexOf(t):-1,l=1===e.length;for(let a=0;a<this.items.length;a++){let o=this.items[(i+a+1)%this.items.length];if((!l||this.getItemValue(o)!==t)&&!this.getItemDisabled(o)&&s(this.stringifyItem(o),e))return o}}),i(this,"search",(e,t)=>{let{state:i,currentValue:l,timeout:a=350}=t,o=i.keysSoFar+e,r=o.length>1&&Array.from(o).every(e=>e===o[0])?o[0]:o,s=this.getByText(r,l),n=this.getItemValue(s);function c(){clearTimeout(i.timer),i.timer=-1}return!function e(t){i.keysSoFar=t,c(),""!==t&&(i.timer=+setTimeout(()=>{e(""),c()},a))}(o),n}),i(this,"update",(e,t)=>{let i=this.indexOf(e);return -1===i?this:this.copy([...this.items.slice(0,i),t,...this.items.slice(i+1)])}),i(this,"upsert",(e,t,i="append")=>{let l=this.indexOf(e);return -1===l?("append"===i?this.append:this.prepend)(t):this.copy([...this.items.slice(0,l),t,...this.items.slice(l+1)])}),i(this,"insert",(e,...t)=>this.copy(n(this.items,e,...t))),i(this,"insertBefore",(e,...t)=>{let i=this.indexOf(e);if(-1===i)if(0!==this.items.length)return this;else i=0;return this.copy(n(this.items,i,...t))}),i(this,"insertAfter",(e,...t)=>{let i=this.indexOf(e);if(-1===i)if(0!==this.items.length)return this;else i=0;return this.copy(n(this.items,i+1,...t))}),i(this,"prepend",(...e)=>this.copy(n(this.items,0,...e))),i(this,"append",(...e)=>this.copy(n(this.items,this.items.length,...e))),i(this,"filter",e=>{let t=this.items.filter((t,i)=>e(this.stringifyItem(t),i,t));return this.copy(t)}),i(this,"remove",(...e)=>{let t=e.map(e=>"string"==typeof e?e:this.getItemValue(e));return this.copy(this.items.filter(e=>{let i=this.getItemValue(e);return null!=i&&!t.includes(i)}))}),i(this,"move",(e,t)=>{let i=this.indexOf(e);return -1===i?this:this.copy(c(this.items,[i],t))}),i(this,"moveBefore",(e,...t)=>{let i=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===i)return this;let l=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(c(this.items,l,i))}),i(this,"moveAfter",(e,...t)=>{let i=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===i)return this;let l=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(c(this.items,l,i+1))}),i(this,"reorder",(e,t)=>this.copy(c(this.items,[e],t))),i(this,"compareValue",(e,t)=>{let i=this.indexOf(e),l=this.indexOf(t);return i<l?-1:+(i>l)}),i(this,"range",(e,t)=>{let i=[],l=e;for(;null!=l;){if(this.find(l)&&i.push(l),l===t)return i;l=this.getNextValue(l)}return[]}),i(this,"getValueRange",(e,t)=>e&&t?0>=this.compareValue(e,t)?this.range(e,t):this.range(t,e):[]),i(this,"toString",()=>{let e="";for(let t of this.items)e+=[this.getItemValue(t),this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(":")+",";return e}),i(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}*[Symbol.iterator](){yield*this.items}},s=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function n(e,t,...i){return[...e.slice(0,t),...i,...e.slice(t)]}function c(e,t,i){let l=(t=[...t].sort((e,t)=>e-t)).map(t=>e[t]);for(let i=t.length-1;i>=0;i--)e=[...e.slice(0,t[i]),...e.slice(t[i]+1)];return i=Math.max(0,i-t.filter(e=>e<i).length),[...e.slice(0,i),...l,...e.slice(i)]}e.s(["ListCollection",0,r],47791)},718876,e=>{"use strict";var t=e.i(960061),i=e.i(832406),l=e.i(207705),a=e.i(461859),o=e.i(715253),r=e.i(216546),s=e.i(340223),n=e.i(96886),c=e.i(385025),d=e.i(889623),u=e.i(970374),g=e.i(187826),m=e.i(119633),p=e.i(201021),h=e.i(267739),v=e.i(736782),f=e.i(287942),I=e.i(978605),b=e.i(734893),x=e.i(520953),C=e.i(664747),y=e.i(370160),E=e.i(7652),O=e.i(962288),T=e.i(220668),P=e.i(489207),N=e.i(732113),V=e.i(972524),S=e.i(241926),w=e.i(415514),L=e.i(444105),k=e.i(915304),R=e.i(112749),A=e.i(199451),_=e.i(648441),j=e.i(140775),G=e.i(510815),M=e.i(830870),F=e.i(47791),H=e
1=>new F.ListCollection(e);H.empty=()=>new F.ListCollection({items:[]});var D=e=>e.ids?.content??`select:${e.id}:content`,U=e=>e.ids?.trigger??`select:${e.id}:trigger`,z=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,B=e=>e.ids?.label??`select:${e.id}:label`,W=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,K=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,$=e=>e.ids?.positioner??`select:${e.id}:positioner`,q=(e,t)=>e.ids?.itemGroupLabel?.(t)??`select:${e.id}:optgroup-label:${t}`,Y=e=>e.getById(K(e)),J=e=>e.getById(D(e)),Z=e=>e.getById(U(e)),Q=e=>e.getById($(e)),X=(e,t)=>null==t?null:e.getById(W(e,t)),{and:ee,not:et,or:ei}=(0,P.createGuards)(),el=(0,P.createMachine)({props:({props:e})=>({loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??H.empty(),translations:{clearTriggerLabel:"Clear value",...e.translations},positioning:{placement:"bottom-start",gutter:8,...e.positioning}}),context({prop:e,bindable:t,getContext:i}){let l=e("value")??e("defaultValue")??[],a=e("collection").findMany(l);return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:G.isEqual,onChange(t){let l=i(),a=e("collection"),o=l.get("selectedItemMap"),r=(0,M.deriveSelectionState)({values:t,collection:a,selectedItemMap:o}),s=e("value")??t,n=s===t?r:(0,M.deriveSelectionState)({values:s,collection:a,selectedItemMap:r.nextSelectedItemMap});return l.set("selectedItemMap",n.nextSelectedItemMap),e("onValueChange")?.({value:t,items:r.selectedItems})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){e("onHighlightChange")?.({highlightedValue:t,highlightedItem:e("collection").find(t),highlightedIndex:e("collection").indexOf(t)})}})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),highlightedItem:t(()=>({defaultValue:null})),selectedItemMap:t(()=>({defaultValue:(0,M.createSelectedItemMap)({selectedItems:a,collection:e("collection")})}))}},refs:()=>({typeahead:{...V.getByTypeahead.defaultOptions}}),computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>""!==e.get("typeahead").keysSoFar,isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),selectedItems:({context:e,prop:t})=>(0,M.resolveSelectedItems)({values:e.get("value"),collection:t("collection"),selectedItemMap:e.get("selectedItemMap")}),valueAsString:({computed:e,prop:t})=>t("collection").stringifyItems(e("selectedItems"))},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"idle",entry:["syncSelectElement"],watch({context:e,prop:t,track:i,action:l}){i([()=>e.get("value").toString()],()=>{l(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])}),i([()=>t("open")],()=>{l(["toggleVisibility"])}),i([()=>e.get("highlightedValue")],()=>{l(["syncHighlightedItem"])}),i([()=>t("collection").toString()],()=>{l(["syncCollection"])})},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:ei("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:ee(et("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:et("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:ee(et("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:et("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:et("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:et("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:et("multiple"),actions:["selectMatchingItem"]}}}
1,open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","trackFocusVisible","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:ee("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:ee("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:ee("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>ea(e),isOpenControlled:({prop:e})=>void 0!==e("open"),isTriggerClickEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.CLICK",isTriggerEnterEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ENTER",isTriggerArrowUpEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_UP",isTriggerArrowDownEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_DOWN"},effects:{trackFocusVisible:({scope:e})=>(0,A.trackFocusVisible)({root:e.getRootNode?.()}),trackFormControlState:({context:e,scope:t})=>(0,w.trackFormControl)(Y(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){let t=e.initial("value");e.set("value",t)}}),trackDismissableElement({scope:e,send:t,prop:i}){let l=!0;return(0,N.trackDismissableElement)(()=>J(e),{type:"listbox",defer:!0,exclude:[Z(e),e.getById(z(e))],onFocusOutside:i("onFocusOutside"),onPointerDownOutside:i("onPointerDownOutside"),onInteractOutside(e){i("onInteractOutside")?.(e),l=!(e.detail.focusable||e.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:l})}})},computePlacement({context:e,prop:t,scope:i}){let l=t("positioning");return e.set("currentPlacement",l.placement),(0,_.getPlacement)(()=>Z(i),()=>Q(i),{defer:!0,...l,onComplete(t){e.set("currentPlacement",t.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:i}){let l=l=>{let a=e.get("highlightedValue");if(null==a||"pointer"===(0,A.getInteractionModality)())return;let o=J(i),r=t("scrollToIndexFn");if(r){let e=t("collection").indexOf(a);r?.({index:e,immediate:l,getElement:()=>X(i,a)});return}let s=X(i,a);(0,R.scrollIntoView)(s,{rootEl:o,block:"nearest"})};return(0,k.raf)(()=>{(0,A.setInteractionModality)("virtual"),l(!0)}),(0,L.observeAttributes)(()=>J(i),{defer:!0,attributes:["data-activedescendant"],callback(){l(!1)}})}},actions:{reposition({context:e,prop:t,scope:i,event:l}){(0,_.getPlacement)(Z(i),()=>Q(i),{...t("positioning"),...l.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility({send:e,prop:t,event:i}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:i})},highlightPreviousItem({context:e,prop:t}){let i=e.get("highlightedValue");if(null==i)return;let l=t("collection").getPreviousValue(i,1,t("loopFocus"));null!=l&&e.set("highlightedValue",l)}
1,highlightNextItem({context:e,prop:t}){let i=e.get("highlightedValue");if(null==i)return;let l=t("collection").getNextValue(i,1,t("loopFocus"));null!=l&&e.set("highlightedValue",l)},highlightFirstItem({context:e,prop:t}){let i=t("collection").firstValue;e.set("highlightedValue",i)},highlightLastItem({context:e,prop:t}){let i=t("collection").lastValue;e.set("highlightedValue",i)},setInitialFocus({scope:e}){(0,k.raf)(()=>{let t=(0,S.getInitialFocus)({root:J(e)});t?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){ea(e)&&(0,k.raf)(()=>{let e=Z(t);e?.focus({preventScroll:!0})})},selectHighlightedItem({context:e,prop:t,event:i}){let l=i.value??e.get("highlightedValue");null!=l&&t("collection").has(l)&&(t("onSelect")?.({value:l}),l=t("deselectable")&&!t("multiple")&&e.get("value").includes(l)?null:l,e.set("value",e=>null==l?[]:t("multiple")?(0,j.addOrRemove)(e,l):[l]))},highlightComputedFirstItem({context:e,prop:t,computed:i}){let l=t("collection"),a=i("hasSelectedItems")?l.sort(e.get("value"))[0]:l.firstValue;e.set("highlightedValue",a)},highlightComputedLastItem({context:e,prop:t,computed:i}){let l=t("collection"),a=i("hasSelectedItems")?l.sort(e.get("value"))[0]:l.lastValue;e.set("highlightedValue",a)},highlightFirstSelectedItem({context:e,prop:t,computed:i}){if(!i("hasSelectedItems"))return;let l=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",l)}
1,highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:i,refs:l}){let a=t("collection").search(i.key,{state:l.get("typeahead"),currentValue:e.get("highlightedValue")});null!=a&&e.set("highlightedValue",a)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:i}){t("onSelect")?.({value:i.value});let l=t("deselectable")&&!t("multiple")&&e.get("value").includes(i.value)?null:i.value;e.set("value",e=>null==l?[]:t("multiple")?(0,j.addOrRemove)(e,l):[l])},clearItem({context:e,event:t}){e.set("value",e=>e.filter(e=>e!==t.value))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){let[i]=e.get("value"),l=t("collection").getPreviousValue(i);l&&e.set("value",[l])},selectNextItem({context:e,prop:t}){let[i]=e.get("value"),l=t("collection").getNextValue(i);l&&e.set("value",[l])},selectFirstItem({context:e,prop:t}){let i=t("collection").firstValue;i&&e.set("value",[i])},selectLastItem({context:e,prop:t}){let i=t("collection").lastValue;i&&e.set("value",[i])},selectMatchingItem({context:e,prop:t,event:i,refs:l}){let a=t("collection").search(i.key,{state:l.get("typeahead"),currentValue:e.get("value")[0]});null!=a&&e.set("value",[a])},scrollContentToTop({prop:e,scope:t}){if(e("scrollToIndexFn")){let i=e("collection").firstValue;e("scrollToIndexFn")?.({index:0,immediate:!0,getElement:()=>X(t,i)})}else J(t)?.scrollTo(0,0)},invokeOnOpen({prop:e,context:t}){e("onOpenChange")?.({open:!0,value:t.get("value")})},invokeOnClose({prop:e,context:t}){e("onOpenChange")?.({open:!1,value:t.get("value")})},syncSelectElement({context:e,prop:t,scope:i}){let l=Y(i);if(l){if(0===e.get("value").length&&!t("multiple")){l.selectedIndex=-1;return}for(let t of l.options)t.selected=e.get("value").includes(t.value)}},syncCollection({context:e,prop:t}){let i=t("collection"),l=i.find(e.get("highlightedValue"));l&&e.set("highlightedItem",l);let a=(0,M.deriveSelectionState)({values:e.get("value"),collection:i,selectedItemMap:e.get("selectedItemMap")});e.set("selectedItemMap",a.nextSelectedItemMap)},syncSelectedItems({context:e,prop:t}){let i=(0,M.deriveSelectionState)({values:e.get("value"),collection:t("collection"),selectedItemMap:e.get("selectedItemMap")});e.set("selectedItemMap",i.nextSelectedItemMap)},syncHighlightedItem({context:e,prop:t}){let i=t("collection"),l=e.get("highlightedValue"),a=l?i.find(l):null;e.set("highlightedItem",a)},dispatchChangeEvent({scope:e}){queueMicrotask(()=>{let t=Y(e);if(!t)return;let i=new(e.getWin()).Event("change",{bubbles:!0,composed:!0});t.dispatchEvent((0,w.markAsInternalChangeEvent)(i))})}}}});function ea(e){let t=e.restoreFocus??e.previousEvent?.restoreFocus;return null==t||!!t}var eo=e.i(154700),er=e.i(193069),es=e.i(771195),en=e.i(79835),ec=e.i(604990),ed=e.i(789282),eu=e.i(692251),eg=(0,e.i(522959).createAnatomy)("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText").build(),em=e.i(271645),ep=e.i(720007),eh=e.i(678124),ev=e.i(541949),ef=e.i(843476),eI=(0,em.forwardRef)((e,t)=>{let[i,l]=(0,b.splitPresenceProps)(e),[a,o]=(0,f.createSplitProps)()(l,["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","disabled","form","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","translations","autoComplete","value"]),r=(e=>{let t=(0,em.useId)(),{dir:i}=(0,O.useLocaleContext)(),{getRootNode:l}=(0,E.useEnvironmentContext)(),a=(0,T.useFieldContext)(),o={id:t,ids:{label:a?.ids.label,hiddenSelect:a?.ids.control},disabled:a?.disabled,readOnly:a?.readOnly,invalid:a?.invalid,required:a?.required,dir:i,getRootNode:l,...e};
1return function(e,t){let{context:i,prop:l,scope:a,state:o,computed:r,send:s}=e,n=l("translations"),c=l("disabled")||i.get("fieldsetDisabled"),d=!!l("invalid"),u=!!l("required"),g=!!l("readOnly"),m=l("composite"),p=l("collection"),h=o.hasTag("open"),v=o.matches("focused"),f=i.get("highlightedValue"),I=i.get("highlightedItem"),b=r("selectedItems"),x=i.get("currentPlacement"),C=x?(0,ec.getPlacementSide)(x):void 0,y=r("isTypingAhead"),E=r("isInteractive"),O=f?W(a,f):void 0;function T(e){let t=p.getItemDisabled(e.item),l=p.getItemValue(e.item);return(0,eu.ensure)(l,()=>`[zag-js] No value found for item ${JSON.stringify(e.item)}`),{value:l,disabled:!!(c||t),highlighted:f===l,selected:i.get("value").includes(l)}}let P=(0,ed.getPlacementStyles)({...l("positioning"),placement:x});return{open:h,focused:v,empty:0===i.get("value").length,highlightedItem:I,highlightedValue:f,selectedItems:b,hasSelectedItems:r("hasSelectedItems"),value:i.get("value"),valueAsString:r("valueAsString"),collection:p,multiple:!!l("multiple"),disabled:!!c,reposition(e={}){s({type:"POSITIONING.SET",options:e})},focus(){Z(a)?.focus({preventScroll:!0})},setOpen(e){o.hasTag("open")!==e&&s({type:e?"OPEN":"CLOSE"})},selectValue(e){s({type:"ITEM.SELECT",value:e})},setValue(e){s({type:"VALUE.SET",value:e})},selectAll(){s({type:"VALUE.SET",value:p.getValues()})},setHighlightValue(e){s({type:"HIGHLIGHTED_VALUE.SET",value:e})},clearHighlightValue(){s({type:"HIGHLIGHTED_VALUE.CLEAR"})},clearValue(e){e?s({type:"ITEM.CLEAR",value:e}):s({type:"VALUE.CLEAR"})},getItemState:T,getRootProps:()=>t.element({...eg.root.attrs,dir:l("dir"),id:a.ids?.root??`select:${a.id}`,"data-invalid":(0,eo.dataAttr)(d),"data-readonly":(0,eo.dataAttr)(g)}),getLabelProps:()=>t.label({dir:l("dir"),id:B(a),...eg.label.attrs,"data-disabled":(0,eo.dataAttr)(c),"data-invalid":(0,eo.dataAttr)(d),"data-readonly":(0,eo.dataAttr)(g),"data-required":(0,eo.dataAttr)(u),htmlFor:K(a),onClick(e){e.defaultPrevented||c||Z(a)?.focus({preventScroll:!0})}}),getControlProps:()=>t.element({...eg.control.attrs,dir:l("dir"),id:a.ids?.control??`select:${a.id}:control`,"data-state":h?"open":"closed","data-focus":(0,eo.dataAttr)(v),"data-disabled":(0,eo.dataAttr)(c),"data-invalid":(0,eo.dataAttr)(d)}),getValueTextProps:()=>t.element({...eg.valueText.attrs,dir:l("dir"),"data-disabled":(0,eo.dataAttr)(c),"data-invalid":(0,eo.dataAttr)(d),"data-focus":(0,eo.dataAttr)(v)}),getTriggerProps:()=>t.button({id:U(a),disabled:c,dir:l("dir"),type:"button",role:"combobox","aria-controls":D(a),"aria-expanded":h,"aria-haspopup":"listbox","data-state":h?"open":"closed","aria-invalid":d,"aria-required":u,"aria-labelledby":B(a),...eg.trigger.attrs,"data-disabled":(0,eo.dataAttr)(c),"data-invalid":(0,eo.dataAttr)(d),"data-readonly":(0,eo.dataAttr)(g),"data-placement":x,"data-side":C,"data-placeholder-shown":(0,eo.dataAttr)(!r("hasSelectedItems")),onClick(e){!E||e.defaultPrevented||s({type:"TRIGGER.CLICK"})},onFocus(){s({type:"TRIGGER.FOCUS"})},onBlur(){s({type:"TRIGGER.BLUR"})},onKeyDown(e){if(e.defaultPrevented||!E)return;let t={ArrowUp(){s({type:"TRIGGER.ARROW_UP"})},ArrowDown(e){s({type:e.altKey?"OPEN":"TRIGGER.ARROW_DOWN"})},ArrowLeft(){s({type:"TRIGGER.ARROW_LEFT"})},ArrowRight(){s({type:"TRIGGER.ARROW_RIGHT"})},Home(){s({type:"TRIGGER.HOME"})},End(){s({type:"TRIGGER.END"})},Enter(){s({type:"TRIGGER.ENTER"})},Space(e){y?s({type:"TRIGGER.TYPEAHEAD",key:e.key}):s({type:"TRIGGER.ENTER"})}}[(0,es.getEventKey)(e,{dir:l("dir"),orientation:"vertical"})];if(t){t(e),e.preventDefault();return}V.getByTypeahead.isValidEvent(e)&&(s({type:"TRIGGER.TYPEAHEAD",key:e.key}),e.preventDefault())}}),getIndicatorProps:()=>t.element({...eg.indicator.attrs,dir:l("dir"),"aria-hidden":!0,"data-state":h?"open":"closed","data-disabled":(0,eo.dataAttr)(c),"data-invalid":(0,eo.dataAttr)(d),"data-readonly":(0,eo.dataAttr)(g)}),getItemProps(i){let o=T(i);return t.element({id:W(a,o.value),role:"option",...eg.item.attrs,dir:l("dir"),"data-value":o.value,"aria-selected":o.selected,"data-state":o.selected?"checked":"unchecked","data-highlighted":(0,eo.dataAttr)(o.highlighted),"data-disabled":(0,eo.dataAttr)(o.disabled),"aria-disabled":(0,eo.ariaAttr)(o.disabled),onPointerMove(e){o.disabled||"mouse"!==e.pointerType||o.value!==f&&s({type:"ITEM.POINTER_MO
1VE",value:o.value})},onClick(e){e.defaultPrevented||o.disabled||s({type:"ITEM.CLICK",src:"pointerup",value:o.value})},onPointerLeave(t){o.disabled||i.persistFocus||"mouse"!==t.pointerType||e.event.previous()?.type.includes("POINTER")&&s({type:"ITEM.POINTER_LEAVE"})}})},getItemTextProps(e){let i=T(e);return t.element({...eg.itemText.attrs,"data-state":i.selected?"checked":"unchecked","data-disabled":(0,eo.dataAttr)(i.disabled),"data-highlighted":(0,eo.dataAttr)(i.highlighted)})},getItemIndicatorProps(e){let i=T(e);return t.element({"aria-hidden":!0,...eg.itemIndicator.attrs,"data-state":i.selected?"checked":"unchecked",hidden:!i.selected})},getItemGroupLabelProps(e){let{htmlFor:i}=e;return t.element({...eg.itemGroupLabel.attrs,id:q(a,i),dir:l("dir"),role:"presentation"})},getItemGroupProps(e){let{id:i}=e;return t.element({...eg.itemGroup.attrs,"data-disabled":(0,eo.dataAttr)(c),id:a.ids?.itemGroup?.(i)??`select:${a.id}:optgroup:${i}`,"aria-labelledby":q(a,i),role:"group",dir:l("dir")})},getClearTriggerProps:()=>t.button({...eg.clearTrigger.attrs,id:z(a),type:"button","aria-label":n.clearTriggerLabel,"data-invalid":(0,eo.dataAttr)(d),disabled:c,hidden:!r("hasSelectedItems"),dir:l("dir"),onClick(e){e.defaultPrevented||s({type:"CLEAR.CLICK"})}}),getHiddenSelectProps(){let e=i.get("value"),o=l("multiple")?e:e?.[0],r=e=>{let t,i=(0,es.getNativeEvent)(e);(0,w.isInternalChangeEvent)(i)||s({type:"VALUE.SET",value:(t=e.currentTarget).multiple?Array.from(t.selectedOptions,e=>e.value):t.value?[t.value]:[]})};return t.select({name:l("name"),form:l("form"),disabled:c,multiple:l("multiple"),required:l("required"),"aria-hidden":!0,id:K(a),defaultValue:o,style:en.visuallyHiddenStyle,tabIndex:-1,autoComplete:l("autoComplete"),onChange:r,onInput:r,onFocus(){Z(a)?.focus({preventScroll:!0})},"aria-labelledby":B(a)})},getPositionerProps:()=>t.element({...eg.positioner.attrs,dir:l("dir"),id:$(a),style:P.floating}),getContentProps:()=>t.element({hidden:!h,dir:l("dir"),id:D(a),role:m?"listbox":"dialog",...eg.content.attrs,"data-state":h?"open":"closed","data-placement":x,"data-side":C,"data-activedescendant":O,"aria-activedescendant":m?O:void 0,"aria-multiselectable":!!l("multiple")&&!!m||void 0,"aria-labelledby":B(a),tabIndex:0,onKeyDown(e){if(!E||!(0,er.contains)(e.currentTarget,(0,es.getEventTarget)(e)))return;if("Tab"===e.key&&!(0,S.isValidTabEvent)(e))return void e.preventDefault();let t={ArrowUp(){s({type:"CONTENT.ARROW_UP"})},ArrowDown(){s({type:"CONTENT.ARROW_DOWN"})},Home(){s({type:"CONTENT.HOME"})},End(){s({type:"CONTENT.END"})},Enter(){s({type:"ITEM.CLICK",src:"keydown.enter"})},Space(e){y?s({type:"CONTENT.TYPEAHEAD",key:e.key}):t.Enter?.(e)}},i=t[(0,es.getEventKey)(e)];if(i){i(e),e.preventDefault();return}let l=(0,es.getEventTarget)(e);!(0,er.isEditableElement)(l)&&V.getByTypeahead.isValidEvent(e)&&(s({type:"CONTENT.TYPEAHEAD",key:e.key}),e.preventDefault())}}),getListProps:()=>t.element({...eg.list.attrs,tabIndex:0,role:m?void 0:"listbox","aria-labelledby":U(a),"aria-activedescendant":m?void 0:O,"aria-multiselectable":!!(!m&&l("multiple"))||void 0})}}((0,eh.useMachine)(el,o),ep.normalizeProps)})(a),s=(0,x.usePresence)((0,ev.mergeProps)({present:r.open},i)),n=(0,ev.mergeProps)(r.getRootProps(),o);return(0,ef.jsx)(y.SelectProvider,{value:r,children:(0,ef.jsx)(C.PresenceProvider,{value:s,children:(0,ef.jsx)(I.ark.div,{...n,ref:t})})})}),eb=(0,em.forwardRef)((e,t)=>{let[i,l]=(0,b.splitPresenceProps)(e),[{value:a},o]=(0,f.createSplitProps)()(l,["value"]),r=(0,x.usePresence)((0,ev.mergeProps)({present:a.open},i)),s=(0,ev.mergeProps)(a.getRootProps(),o);return(0,ef.jsx)(y.SelectProvider,{value:a,children:(0,ef.jsx)(C.PresenceProvider,{value:r,children:(0,ef.jsx)(I.ark.div,{...s,ref:t})})})}),ex=(0,em.forwardRef)((e,t)=>{let i=(0,ev.mergeProps)((0,y.useSelectContext)().getTriggerProps(),e);return(0,ef.jsx)(I.ark.button,{...i,ref:t})});ex.displayName="SelectTrigger";var eC=(0,em.forwardRef)((e,t)=>{let{children:i,placeholder:l,...a}=e,o=(0,y.useSelectContext)(),r=(0,ev.mergeProps)(o.getValueTextProps(),a);return(0,ef.jsx)(I.ark.span,{...r,ref:t,children:i||o.valueAsString||l})});eC.displayName="SelectValueText";var ey=(0,t.__exportAll)({ClearTrigger:()=>i.SelectClearTrigger,Content:()=>l.SelectContent,Context:()=>a.SelectContext,Control:()=>o.SelectControl,HiddenSelect:()=>r.SelectHiddenSelect,Indicator:()=>s.SelectIndicator,Item:()=>n.SelectItem,ItemContext:()=>
1c.SelectItemContext,ItemGroup:()=>d.SelectItemGroup,ItemGroupLabel:()=>u.SelectItemGroupLabel,ItemIndicator:()=>g.SelectItemIndicator,ItemText:()=>m.SelectItemText,Label:()=>p.SelectLabel,List:()=>h.SelectList,Positioner:()=>v.SelectPositioner,Root:()=>eI,RootProvider:()=>eb,Trigger:()=>ex,ValueText:()=>eC});e.s(["Select",0,ey],718876)},320915,e=>{"use strict";var t=e.i(47791);e.s(["createListCollection",0,e=>new t.ListCollection(e)])},395347,e=>{"use strict";e.s(["i18nCache",0,function(e){let t=new Map;return function(i,l){let a=i+(l?Object.entries(l).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(t.has(a))return t.get(a);let o=new e(i,l);return t.set(a,o),o}}])},728384,e=>{"use strict";var t=e.i(962288),i=e.i(271645),l=(0,e.i(395347).i18nCache)(Intl.Collator);e.s(["useFilter",0,function(e){let a=(0,t.useLocaleContext)(),o=e.locale??a.locale;return(0,i.useMemo)(()=>(function(e){let{locale:t,...i}=e||{},a=l(t||"en-US",{usage:"search",...i});function o(e){return e=e.normalize("NFC"),a.resolvedOptions().ignorePunctuation&&(e=e.replace(/\p{P}/gu,"")),e}return{startsWith:function(e,t){return 0===t.length||(e=o(e),t=o(t),0===a.compare(e.slice(0,t.length),t))},endsWith:function(e,t){return 0===t.length||(e=o(e),t=o(t),0===a.compare(e.slice(-t.length),t))},contains:function(e,t){if(0===t.length)return!0;e=o(e);let i=0,l=(t=o(t)).length;for(;i+l<=e.length;i++){let o=e.slice(i,i+l);if(0===a.compare(t,o))return!0}return!1}}})({...e,locale:o}),[o,e])}],728384)},538535,e=>{"use strict";var t=e.i(710868),i=e.i(320915),l=e.i(271645);e.s(["useListCollection",0,function(e){let{initialItems:a=[],filter:o,limit:r,...s}=e,[n,c]=(0,l.useState)(a),[d,u]=(0,l.useState)(""),g=(0,t.useEvent)(e=>{c(e),u("")}),m=(0,l.useRef)(s);m.current=s;let p=(0,l.useCallback)(e=>(0,i.createListCollection)({...m.current,items:e}),[]);return{collection:(0,l.useMemo)(()=>{let e=n;d&&o&&(e=p(n).filter((e,t,i)=>o(e,d,i)).items);let t=null==r?e:e.slice(0,r);return(0,i.createListCollection)({...m.current,items:t})},[n,d,o,r,p]),filter:(0,t.useEvent)(e=>{u(e||"")}),set:(0,t.useEvent)(e=>{g(e)}),reset:(0,t.useEvent)(()=>{g(a)}),clear:(0,t.useEvent)(()=>{g([])}),insert:(0,t.useEvent)((e,...t)=>{g(p(n).insert(e,...t).items)}),insertBefore:(0,t.useEvent)((e,...t)=>{g(p(n).insertBefore(e,...t).items)}),insertAfter:(0,t.useEvent)((e,...t)=>{g(p(n).insertAfter(e,...t).items)}),remove:(0,t.useEvent)((...e)=>{g(p(n).remove(...e).items)}),move:(0,t.useEvent)((e,t)=>{g(p(n).move(e,t).items)}),moveBefore:(0,t.useEvent)((e,...t)=>{g(p(n).moveBefore(e,...t).items)}),moveAfter:(0,t.useEvent)((e,...t)=>{g(p(n).moveAfter(e,...t).items)}),reorder:(0,t.useEvent)((e,t)=>{g(p(n).reorder(e,t).items)}),append:(0,t.useEvent)((...e)=>{g(p(n).append(...e).items)}),upsert:(0,t.useEvent)((e,t,i="append")=>{g(p(n).upsert(e,t,i).items)}),prepend:(0,t.useEvent)((...e)=>{g(p(n).prepend(...e).items)}),update:(0,t.useEvent)((e,t)=>{g(p(n).update(e,t).items)})}}])},390175,e=>{"use strict";e.s(["default",()=>o]);var t=e.i(843476),i=e.i(522016),l=e.i(919056),a=e.i(36815);function o({items:e=[],separator:i=">",ellipsis:a="...",hideMiddleItems:s=!1,ulProps:n={className:""},liProps:c={className:""},navProps:d={className:""}}){let u=e.filter(e=>e.label);if(!u||0===u.length)return null;let g=u.length-1,{className:m="",...p}=n,{className:h,...v}=c,{className:f,...I}=d;return 1===u.length?(0,t.jsx)("nav",{className:(0,l.twMerge)("text-foreground-secondary font-medium",f),...I,children:(0,t.jsx)("ul",{className:(0,l.twMerge)("flex",m),...p,children:(0,t.jsx)("li",{className:(0,l.twMerge)(h,u[0].container?.className),...v,children:(0,t.jsx)(r,{item:u[0]})})})}):(0,t.jsx)("nav",{className:(0,l.twMerge)("text-foreground-secondary font-medium",f),...I,children:(0,t.jsxs)("ul",{...p,className:(0,l.twMerge)("flex items-center",m),onMouseOver:e=>{let t=e.target.closest("span");t&&t.dataset.title&&(t.offsetWidth<t.scrollWidth?t.classList.add("with-title"):t.classList.remove("with-title"))},onMouseLeave:e=>{let t=e.target.closest("span");t?.classList.remove("with-title")},children:[(0,t.jsx)("li",{className:(0,l.twMerge)(u[0].icon?"min-w-6.5":"min-w-0",h,u[0].container?.className),...v,children:(0,t.jsx)(r,{item:u[0]})},0),s?g>1&&(0,t.jsxs)("li",{className:(0,l.twMerge)("flex items-center",h),...v,children:[i,a]}):u.slice(1).map((e,a)=>(0,t.jsxs)("li",{className:(0,l.twMerge)("min-w-0 flex items-center",h,e.container?.className),...v,children:[(0,t.jsx)("span",{className:(0,l.twMerge)("mx-1.5",e.dropdownProps&&"ml-1.5 mr-0",u[a]?.dropdownProps&&"ml-0"),children:i}),(0,t.jsx)(r,{item:e})]},`${e.label}-${a}`)),s&&(0,t.jsxs)("li",{className:(0,l.twMerge)("min-w-0 flex items-center",h,u[g].container?.className),...v,children:[(0,t.jsx)("span",{className:u[g].dropdownProps?"ml-1.5":"mx-1.5",children:i}),(0,t.jsx)(r,{item:u[g]})]})]})})}function r({item:e}){if(e.href)return(0,t.jsxs)(i.default,{className:(0,l.twMerge)("flex items-center gap-1.5 min-w-0 relative"),href:e.href,children:[e.icon,(0,t.jsx)("span",{className:(0,l.twMerge)(e.className,"truncate",e.icon&&"after:left-7.5!"),"data-title":e.label,children:e.label})]});if(e.dropdownProps){let{title:i,...o}=e.dropdownProps;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(a.default,{...o,size:"sm",className:(0,l.twMerge)("[font-weight:inherit]",o.className),triggerProps:{...o?.triggerProps||{},className:(0,l.twMerge)("pl-1! pr-0! text-inherit gap-1 relative",o?.triggerProps?.className),"data-title":o.defaultValue?.[0]},contentProps:{...o.contentProps,className:(0,l.twMerge)("text-base text-foreground-primary",o.contentProps?.className)},positionerProps:{...o.positionerProps,className:(0,l.twMerge)("z-2000!",o.positionerProps?.className)},onMouseOver:e=>{let t=e.target.closest("button"),i=e.target.closest("span");t&&i&&t.dataset.title&&(i.offsetWidth<i.scrollWidth?t.classList.add("with-title"):t.classList.remove("with-title"))},onMouseLeave:e=>{let t=e.target.closest("button");t?.classList.remove("with-title")}})})}return(0,t.jsxs)("span",{className:"flex items-center gap-1.5 min-w-0 relative",children:[e.icon,(0,t.jsx)("span",{className:(0,l.twMerge)(e.className,"truncate min-w-[4ch]",e.icon&&"after:left-7.5!"),"data-title":e.label,children:e.label})]})}},44305,916152,e=>{"use strict";var t=e.i(843476);e.s(["HistoryLineIcon",0,({width:e=20,height:i=21,fill:l="#040B4A"})=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:i,viewBox:"0 0 20 21",fill:"none",children:(0,t.jsx)("path",{d:"M9.99935 2.1665C14.6017 2.1665 18.3327 5.89746 18.3327 10.4998C18.3327 15.1022 14.6017 18.8332 9.99935 18.8332C5.39697 18.8332 1.66602 15.1022 1.66602 10.4998H3.33268C3.33268 14.1818 6.31745 17.1665 9.99935 17.1665C13.6813 17.166
15 16.666 14.1818 16.666 10.4998C16.666 6.81794 13.6813 3.83317 9.99935 3.83317C7.70787 3.83317 5.68641 4.98929 4.48644 6.75004L6.66602 6.74984V8.4165H1.66602V3.4165H3.33268L3.33259 5.49915C4.85297 3.47546 7.27329 2.1665 9.99935 2.1665ZM10.8327 6.33317L10.8325 10.154L13.5348 12.8568L12.3563 14.0353L9.16585 10.844L9.16602 6.33317H10.8327Z",fill:l})})],44305),e.s(["default",0,function({width:e=20,height:i=21,fill:l="#3763E5",className:a}){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:i,viewBox:"0 0 20 21",fill:"none",className:a,children:(0,t.jsx)("path",{d:"M15.0257 14.6812L18.5946 18.2501L17.4161 19.4286L13.8472 15.8597C12.5639 16.8863 10.9365 17.5005 9.1665 17.5005C5.0265 17.5005 1.6665 14.1405 1.6665 10.0005C1.6665 5.86049 5.0265 2.50049 9.1665 2.50049C13.3065 2.50049 16.6665 5.86049 16.6665 10.0005C16.6665 11.7705 16.0523 13.3979 15.0257 14.6812ZM13.3538 14.0628C14.3728 13.0127 14.9998 11.5802 14.9998 10.0005C14.9998 6.77757 12.3894 4.16716 9.1665 4.16716C5.94359 4.16716 3.33317 6.77757 3.33317 10.0005C3.33317 13.2234 5.94359 15.8338 9.1665 15.8338C10.7462 15.8338 12.1787 15.2067 13.2288 14.1877L13.3538 14.0628Z",fill:l})})}],916152)},412023,848776,651434,e=>{"use strict";var t=e.i(978605),[i,l]=(0,e.i(532592).createContext)({name:"ComboboxContext",hookName:"useComboboxContext",providerName:"<ComboboxProvider />"});e.s(["ComboboxProvider",0,i,"useComboboxContext",0,l],848776);var a=e.i(271645),o=e.i(541949),r=e.i(843476),s=(0,a.forwardRef)((e,i)=>{let a=(0,o.mergeProps)(l().getClearTriggerProps(),e);return(0,r.jsx)(t.ark.button,{...a,ref:i})});s.displayName="ComboboxClearTrigger",e.s(["ComboboxClearTrigger",0,s],412023);var n=e.i(216417),c=e.i(664747),d=(0,a.forwardRef)((e,i)=>{let a=l(),s=(0,c.usePresenceContext)(),d=(0,o.mergeProps)(a.getContentProps(),s.getPresenceProps(),e);return s.unmounted?null:(0,r.jsx)(t.ark.div,{...d,ref:(0,n.composeRefs)(s.ref,i)})});d.displayName="ComboboxContent",e.s(["ComboboxContent",0,d],651434)},446904,e=>{"use strict";var t=(0,e.i(522959).createAnatomy)("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger"),i=t.build();e.s(["anatomy",0,t,"parts",0,i])},607878,10667,317527,692894,732985,899528,228077,979300,843100,918722,25548,229128,688971,e=>{"use strict";var t=e.i(446904).anatomy.extendWith("empty"),i=e.i(978605),l=e.i(848776),a=e.i(271645),o=e.i(843476),r=t.build(),s=(0,a.forwardRef)((e,t)=>0!==(0,l.useComboboxContext)().collection.size?null:(0,o.jsx)(i.ark.div,{...r.empty.attrs,...e,role:"presentation",ref:t}));s.displayName="ComboboxEmpty",e.s(["ComboboxEmpty",0,s],607878),e.s(["ComboboxContext",0,e=>e.children((0,l.useComboboxContext)())],10667);var n=e.i(541949),c=(0,a.forwardRef)((e,t)=>{let a=(0,n.mergeProps)((0,l.useComboboxContext)().getControlProps(),e);return(0,o.jsx)(i.ark.div,{...a,ref:t})});c.displayName="ComboboxControl",e.s(["ComboboxControl",0,c],317527);var d=e.i(220668),u=(0,a.forwardRef)((e,t)=>{let a=(0,n.mergeProps)((0,l.useComboboxContext)().getInputProps(),e),r=(0,d.useFieldContext)();return(0,o.jsx)(i.ark.input,{"aria-describedby":r?.ariaDescribedby,...a,ref:t})});u.displayName="ComboboxInput",e.s(["ComboboxInput",0,u],692894);var g=e.i(287942),m=e.i(532592),[p,h]=(0,m.createContext)({name:"ComboboxItemContext",hookName:"useComboboxItemContext",providerName:"<ComboboxItemProvider />"}),[v,f]=(0,m.createContext)({name:"ComboboxItemPropsContext",hookName:"useComboboxItemPropsContext",providerName:"<ComboboxItemPropsProvider />"}),I=(0,g.createSplitProps)(),b=(0,a.forwardRef)((e,t)=>{let[a,r]=I(e,["item","persistFocus"]),s=(0,l.useComboboxContext)(),c=(0,n.mergeProps)(s.getItemProps(a),r);return(0,o.jsx)(v,{value:a,children:(0,o.jsx)(p,{value:s.getItemState(a),children:(0,o.jsx)(i.ark.div,{...c,ref:t})})})});b.displayName="ComboboxItem",e.s(["ComboboxItem",0,b],732985),e.s(["ComboboxItemContext",0,e=>e.children(h())],899528);var[x,C]=(0,m.createContext)({name:"ComboboxItemGroupPropsContext",hookName:"useComboboxItemGroupPropsContext",providerName:"<ComboboxItemGroupPropsProvider />"}),y=(0,g.createSplitProps)(),E=(0,a.forwardRef)((e,t)=>{let r=(0,a.useId)(),[s,c]=y(e,["id"]),d={id:r,...s},u=(0,n.mergeProps)((0,l.useComboboxContext)().getItemGroupProps(d),c);return(0,o.jsx)(x,{value:d,children:(0,o.jsx)(i.ark.div,{...u,ref:t})})});E.displayName="ComboboxItemGroup",e.s(["ComboboxItemGroup",0,E],228077);var O=(0,a.forwardRef)((e,t)=>{let a=(0,l.useComboboxContext)(),r=C(),s=(0,n.mergeProps)(a.getItemGroupLabelProps({htmlFor:r.id}),e);return(0,o.jsx)(i.ark.div,{...s,ref:t})});O.displayName="ComboboxItemGroupLabel",e.s(["ComboboxItemGroupLabel",0,O],979300);var T=(0,a.forwardRef)((e,t)=>{let a=(0,l.useComboboxContext)(),r=f(),s=(0,n.mergeProps)(a.getItemIndicatorProps(r),e);return(0,o.jsx)(i.ark.div,{...s,ref:t})});T.displayName="ComboboxItemIndicator",e.s(["ComboboxItemIndicator",0,T],843100);var P=(0,a.forwardRef)((e,t)=>{let a=(0,l.useComboboxContext)(),r=f(),s=(0,n.mergeProps)(a.getItemTextProps(r),e);return(0,o.jsx)(i.ark.span,{...s,ref:t})});P.displayName="ComboboxItemText",e.s(["ComboboxItemText",0,P],918722);var N=(0,a.forwardRef)((e,t)=>{let a=(0,n.mergeProps)((0,l.useComboboxContext)().getLabelProps(),e);return(0,o.jsx)(i.ark.label,{...a,ref:t})});N.displayName="ComboboxLabel",e.s(["ComboboxLabel",0,N],25548);var V=(0,a.forwardRef)((e,t)=>{let a=(0,n.mergeProps)((0,l.useComboboxContext)().getListProps(),e);return(0,o.jsx)(i.ark.div,{...a,ref:t})});V.displayName="ComboboxList",e.s(["ComboboxList",0,V],229128);var S=e.i(664747),w=(0,a.forwardRef)((e,t)=>{let a=(0,l.useComboboxContext)(),r=(0,S.usePresenceContext)(),s=(0,n.mergeProps)(a.getPositionerProps(),e);return r.unmounted?null:(0,o.jsx)(i.ark.div,{...s,ref:t})});w.displayName="ComboboxPositioner",e.s(["ComboboxPositioner",0,w],688971)},784965,e=>{"use strict";var t=e.i(193069),i=e.i(983756),l=e.i(915304);
1e.s(["clickIfLink",0,function(e){let a=()=>{let i=(0,t.getWindow)(e);e.dispatchEvent(new i.MouseEvent("click"))};(0,i.isFirefox)()?(0,l.queueBeforeEvent)(e,"keyup",a):queueMicrotask(a)}])},187408,865112,e=>{"use strict";e.s(["isCaretAtStart",0,function(e){if(!e)return!1;try{return 0===e.selectionStart&&0===e.selectionEnd}catch{return""===e.value}},"setCaretToEnd",0,function(e){if(e)try{if(e.ownerDocument.activeElement!==e)return;let t=e.value.length;e.setSelectionRange(t,t)}catch{}}],187408);var t="__live-region__",i="__live-region-debug__";e.s(["createLiveRegion",0,function(e={}){let{level:l="polite",document:a=document,root:o,delay:r=0,debug:s=!1}=e,n=a.defaultView??window,c=o??a.body;return{announce:function(e,o){let d=a.getElementById(t);d?.remove(),o=o??r;let u=a.createElement("span");u.id=t,u.dataset.liveAnnouncer="true",u.setAttribute("aria-live",l),u.setAttribute("role","assertive"!==l?"status":"alert"),Object.assign(u.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}),c.appendChild(u),n.setTimeout(()=>{if(!u.isConnected)return;u.textContent=e;let t=function(){if(!s)return;let e=a.getElementById(i);return e||((e=a.createElement("div")).id=i,e.dataset.liveAnnouncerDebug="true",e.setAttribute("aria-hidden","true"),e.style.cssText="position:fixed;inset-inline:0;bottom:0;z-index:2147483647;padding:12px 16px;background:black;color:white;font-size:14px;line-height:20px;text-align:center;pointer-events:none;",c.appendChild(e)),e}();t&&(t.textContent=e)},o)},destroy:function(){let e=a.getElementById(t);e?.remove();let l=a.getElementById(i);l?.remove()},toJSON:()=>t}}],865112)},536166,226702,e=>{"use strict";var t=e.i(830870),i=e.i(489207),l=e.i(732113),a=e.i(784965),o=e.i(983756),r=e.i(915304),s=e.i(444105),n=e.i(112749),c=e.i(187408),d=e.i(199451),u=e.i(865112),g=e.i(648441),m=e.i(140775),p=e.i(219690),h=e.i(510815),v=e.i(679899),f=e.i(47791),I=e=>new f.ListCollection(e);I.empty=()=>new f.ListCollection({items:[]});var b=e.i(226828),x=e=>e.ids?.control??`combobox:${e.id}:control`,C=e=>e.ids?.input??`combobox:${e.id}:input`,y=e=>e.ids?.content??`combobox:${e.id}:content`,E=e=>e.ids?.positioner??`combobox:${e.id}:popper`,O=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,T=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,P=e=>e.getById(y(e)),N=e=>e.getById(C(e)),V=e=>e.getById(E(e)),S=e=>e.getById(x(e)),w=e=>e.getById(O(e)),L=e=>e.getById(T(e)),k=(e,t)=>{if(null==t)return null;let i=`[role=option][data-value="${CSS.escape(t)}"]`;return(0,b.query)(P(e),i)},R=e=>{let t=N(e);e.isActiveElement(t)||t?.focus({preventScroll:!0}),(0,c.setCaretToEnd)(t)},A=e=>{let t=w(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})};e.s(["focusInputEl",0,R,"focusTriggerEl",0,A,"getClearTriggerEl",0,L,"getClearTriggerId",0,T,"getContentEl",0,P,"getContentId",0,y,"getControlEl",0,S,"getControlId",0,x,"getInputEl",0,N,"getInputId",0,C,"getItemEl",0,k,"getItemGroupId",0,(e,t)=>e.ids?.itemGroup?.(t)??`combobox:${e.id}:optgroup:${t}`,"getItemGroupLabelId",0,(e,t)=>e.ids?.itemGroupLabel?.(t)??`combobox:${e.id}:optgroup-label:${t}`,"getItemId",0,(e,t)=>e.ids?.item?.(t)??`combobox:${e.id}:option:${t}`,"getLabelId",0,e=>e.ids?.label??`combobox:${e.id}:label`,"getPositionerEl",0,V,"getPositionerId",0,E,"getRootId",0,e=>e.ids?.root??`combobox:${e.id}`,"getTriggerEl",0,w,"getTriggerId",0,O],226702);var{guards:_,createMachine:j,choose:G}=(0,i.setup)(),{and:M,not:F}=_,H=j({props:({props:e})=>({loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:e}){(0,a.clickIfLink)(e)},collection:I.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open.suggesting":"closed.idle",context({prop:e,bindable:i,getContext:l,getEvent:a}){let o=e("value")??e("defaultValue")??[],r=e("collection").findMany(o);return{currentPlacement:i(()=>({defaultValue:void 0})),value:i(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:h.isEqual,hash:e=>e.join(","),onChange(i){let a=l(),o=e("collection"),r=a.get("selectedItemMap"),s=(0,t.deriveSelectionState)({values:i,collection:o,selectedItemMap:r}),n=e("value")??i,c=n===i?s:(0,t.deriveSelectionState)({values:n,collection:o,selectedItemMap:s.nextSelectedItemMap});a.set("selectedItemMap",c.nextSelectedItemMap),e("onValueChange")?.({value:i,items:s.selectedItems})}})),highlightedValue:i(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){let i=e("collection").find(t);e("onHighlightChange")?.({highlightedValue:t,highlightedItem:i})}})),inputValue:i(()=>{let t=e("inputValue")||e("defaultInputValue"),i=e("value")||e("defaultValue");if(!t.trim()&&!e("multiple")){let l=e("collection").stringifyMany(i);t=(0,v.match)(e("selectionBehavior"),{preserve:t||l,replace:l,clear:""})}return{defaultValue:t,value:e("inputValue"),onChange(t){let i=a(),l=(i.previousEvent||i).src;e("onInputValueChange")?.({inputValue:t,reason:l})}}}),highlightedItem:i(()=>{let t=e("highlightedValue");return{defaultValue:e("collection").find(t)}}),selectedItemMap:i(()=>({defaultValue:(0,t.createSelectedItemMap)({selectedItems:r,collection:e("collection")})}
vendor: 6,305 bytes, line 1
1))}},computed:{isInputValueEmpty:({context:e})=>0===e.get("inputValue").length,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>"autocomplete"===e("inputBehavior"),autoHighlight:({prop:e})=>"autohighlight"===e("inputBehavior"),hasSelectedItems:({context:e})=>e.get("value").length>0,selectedItems:({context:e,prop:i})=>(0,t.resolveSelectedItems)({values:e.get("value"),collection:i("collection"),selectedItemMap:e.get("selectedItemMap")}),valueAsString:({computed:e,prop:t})=>t("collection").stringifyItems(e("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:i,action:l,send:a}){i([()=>e.hash("value")],()=>{l(["syncSelectedItems"])}),i([()=>e.get("inputValue")],()=>{l(["syncInputValue"])}),i([()=>e.get("highlightedValue")],()=>{l(["syncHighlightedItem","autofillInputValue","announceHighlightedItem"])}),i([()=>t("open")],()=>{l(["toggleVisibility"])}),i([()=>t("collection").toString()],()=>{a({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:G([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{closed:{tags:["closed"],initial:"idle",states:{idle:{tags:["idle"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"open.interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open.interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"open.suggesting"},{target:"open.interacting"}],"INPUT.CHANGE":[{guard:M("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"open.suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:M("isCustomValue",F("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:M("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"open.interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:M("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"open.interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"open.interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open.interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}}}},open:{tags:["open","focused"],entry:["setInitialFocus"],effects:["trackFocusVisible","scrollToHighlightedItem","trackDismissableLayer","trackPlacement","trackLiveRegion"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"closed.focused",actions:["setFinalFocus"]},{target:"closed.idle"}],"INPUT.ENTER":[{guard:M("isOpenControlled","isCustomValue",F("hasHighlightedItem"),F("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:M("isCustomValue",F("hasHighlightedItem"),F("allowCustomValue")),target:"closed.focused",actions:["revertInputValue","invokeOnClose"]},{guard:M("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"closed.focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"ITEM.CLICK":[{guard:M("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"closed.focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:M("isOpenControlled","isCustomValue",F("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:M("isCustomValue",F("allowCustomValue")),target:"closed.idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"closed.focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]},initial:"interacting",states:{interacting:{on:{CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]}
1,"INPUT.ARROW_DOWN":[{guard:M("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:M("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.ESCAPE":[{guard:M("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"closed.focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose","setFinalFocus"]}]}},suggesting:{on:{CHILDREN_CHANGE:[{guard:M("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed.focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]}}}}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>null!=e.get("highlightedValue"),closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open"),openOnChange:({prop:e,context:t})=>{let i=e("openOnChange");return(0,p.isBoolean)(i)?i:!!i?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>{let t=e.restoreFocus??e.previousEvent?.restoreFocus;return null==t||!!t},isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackFocusVisible:({scope:e})=>(0,d.trackFocusVisible)({root:e.getRootNode?.()}),trackDismissableLayer({send:e,prop:t,scope:i}){if(!t("disableLayer"))return(0,l.trackDismissableElement)(()=>P(i),{type:"listbox",defer:!0,exclude:()=>[N(i),w(i),L(i)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(t){t.preventDefault(),t.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackLiveRegion({refs:e,scope:t}){let i=(0,u.createLiveRegion)({level:"assertive",document:t.getDoc()});return e.set("liveRegion",i),()=>i.destroy()},trackPlacement:({context:e,prop:t,scope:i})=>(e.set("currentPlacement",t("positioning").placement),(0,g.getPlacement)(()=>S(i)||w(i),()=>V(i),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),scrollToHighlightedItem({context:e,prop:t,scope:i}){let l=N(i),a=[],o=l=>{if("pointer"===(0,d.getInteractionModality)())return;let o=e.get("highlightedValue");if(!o)return;let s=P(i),c=t("scrollToIndexFn");if(c)return void c({index:t("collection").indexOf(o),immediate:l,getElement:()=>k(i,o)});let u=k(i,o),g=(0,r.raf)(()=>{(0,n.scrollIntoView)(u,{rootEl:s,block:"nearest"})});a.push(g)},c=(0,r.raf)(()=>{(0,d.setInteractionModality)("virtual"),o(!0)});a.push(c);let u=(0,s.observeAttributes)(l,{attributes:["aria-activedescendant"],callback:()=>o(!1)});return a.push(u),()=>
1{a.forEach(e=>e())}}},actions:{reposition({context:e,prop:t,scope:i,event:l}){(0,g.getPlacement)(()=>S(i),()=>V(i),{...t("positioning"),...l.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setHighlightedValue({context:e,event:t}){null!=t.value&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){let{context:t,prop:i}=e,l=i("collection"),a=t.get("highlightedValue");if(!a||!l.has(a))return;let o=i("multiple")?(0,m.addOrRemove)(t.get("value"),a):[a];i("onSelect")?.({value:o,itemValue:a}),t.set("value",o);let r=(0,v.match)(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:l.stringifyMany(o),clear:""});t.set("inputValue",r)},scrollToHighlightedItem({context:e,prop:t,scope:i}){(0,r.nextTick)(()=>{let l=e.get("highlightedValue");if(null==l)return;let a=k(i,l),o=P(i),r=t("scrollToIndexFn");r?r({index:t("collection").indexOf(l),immediate:!0,getElement:()=>k(i,l)}):(0,n.scrollIntoView)(a,{rootEl:o,block:"nearest"})})},selectItem(e){let{context:t,event:i,flush:l,prop:a}=e;null!=i.value&&l(()=>{let e=a("multiple")?(0,m.addOrRemove)(t.get("value"),i.value):[i.value];a("onSelect")?.({value:e,itemValue:i.value}),t.set("value",e);let l=(0,v.match)(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(e),clear:""});t.set("inputValue",l)})},clearItem(e){let{context:t,event:i,flush:l,prop:a}=e;null!=i.value&&l(()=>{let e=(0,m.remove)(t.get("value"),i.value);t.set("value",e);let l=(0,v.match)(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(e),clear:""});t.set("inputValue",l)})},setInitialFocus({scope:e}){(0,r.raf)(()=>{R(e)})},setFinalFocus({scope:e}){(0,r.raf)(()=>{let t=w(e);t?.dataset.focusable==null?R(e):A(e)})},syncInputValue({context:e,scope:t,event:i}){let l=N(t);l&&(l.value=e.get("inputValue"),queueMicrotask(()=>{"INPUT.CHANGE"!==i.current().type&&(0,c.setCaretToEnd)(l)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:i}){let l=t("selectionBehavior"),a=(0,v.match)(l,{replace:i("hasSelectedItems")?i("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",a)},setValue(e){let{context:t,flush:i,event:l,prop:a}=e;i(()=>{t.set("value",l.value);let e=(0,v.match)(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:a("collection").stringifyMany(l.value),clear:""});t.set("inputValue",e)})},clearSelectedItems(e){let{context:t,flush:i,prop:l}=e;i(()=>{t.set("value",[]);let e=(0,v.match)(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany([]),clear:""});t.set("inputValue",e)})},scrollContentToTop({prop:e,scope:t}){let i=e("scrollToIndexFn");if(i){let l=e("collection").firstValue;i({index:0,immediate:!0,getElement:()=>k(t,l)})}else{let e=P(t);if(!e)return;e.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:i}){let l=D(t);e("onOpenChange")?.({open:!0,reason:l,value:i.get("value")})},invokeOnClose({prop:e,event:t,context:i}){let l=D(t);e("onOpenChange")?.({open:!1,reason:l,value:i.get("value")})},highlightFirstItem({context:e,prop:t,scope:i}){(P(i)?queueMicrotask:r.raf)(()=>{let i=t("collection").firstValue;i&&e.set("highlightedValue",i)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:i}){(P(i)?queueMicrotask:r.raf)(()=>{let i=t("collection").lastValue;i&&e.set("highlightedValue",i)})},highlightNextItem({context:e,prop:t}){let i=null,l=e.get("highlightedValue"),a=t("collection");l?!(i=a.getNextValue(l))&&t("loopFocus")&&(i=a.firstValue):i=a.firstValue,i&&e.set("highlightedValue",i)},highlightPrevItem({context:e,prop:t}){let i=null,l=e.get("highlightedValue"),a=t("collection");l?!(i=a.getPreviousValue(l))&&t("loopFocus")&&(i=a.lastValue):i=a.lastValue,i&&e.set("highlightedValue",i)},highlightFirstSelectedItem({context:e,prop:t}){(0,r.raf)(()=>{let[i]=t("collection").sort(e.get("value"));i&&e.set("highlightedValue",i)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:i}){(0,r.raf)(()=>{let l=null;(l=i("hasSelectedItems")?t("collection").sort(e.get("value"))[0]:t("collection").firstValue)&&e.set("highlightedValue",l)}
1)},highlightLastOrSelectedItem({context:e,prop:t,computed:i}){(0,r.raf)(()=>{let l=t("collection"),a=null;(a=i("hasSelectedItems")?l.sort(e.get("value"))[0]:l.lastValue)&&e.set("highlightedValue",a)})},autofillInputValue({context:e,computed:t,prop:i,event:l,scope:a}){let o=N(a),s=i("collection");if(!t("autoComplete")||!o||!l.keypress)return;let n=s.stringify(e.get("highlightedValue"));(0,r.raf)(()=>{o.value=n||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{let{context:i,prop:l}=e,a=l("collection"),o=i.get("value"),r=i.get("selectedItemMap"),s=(0,t.deriveSelectionState)({values:o,collection:a,selectedItemMap:r});i.set("selectedItemMap",s.nextSelectedItemMap);let n=(0,v.match)(l("selectionBehavior"),{preserve:i.get("inputValue"),replace:a.stringifyMany(o),clear:""});i.set("inputValue",n)})},syncHighlightedItem({context:e,prop:t}){let i=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",i)},announceHighlightedItem({context:e,prop:t,refs:i}){if(!(0,o.isApple)())return;let l=e.get("highlightedValue"),a=l?t("collection").stringifyItem(t("collection").find(l)):null;if(!a)return;let r=!!l&&e.get("value").includes(l);i.get("liveRegion")?.announce(r?`${a}, selected`:a)},toggleVisibility({event:e,send:t,prop:i}){t({type:i("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function D(e){return(e.previousEvent||e).src}e.s(["machine",0,H],536166)},24133,e=>{"use strict";var t=e.i(7652),i=e.i(962288),l=e.i(220668),a=e.i(536166),o=e.i(154700),r=e.i(771195),s=e.i(193069),n=e.i(604990),c=e.i(789282),d=e.i(692251),u=e.i(446904),g=e.i(226702),m=e.i(271645),p=e.i(720007),h=e.i(678124);e.s(["useCombobox",0,e=>{let v=(0,m.useId)(),{dir:f}=(0,i.useLocaleContext)(),{getRootNode:I}=(0,t.useEnvironmentContext)(),b=(0,l.useFieldContext)(),x={id:v,ids:{label:b?.ids.label,input:b?.ids.control},disabled:b?.disabled,readOnly:b?.readOnly,required:b?.required,invalid:b?.invalid,dir:f,getRootNode:I,...e};return function(e,t){let{context:i,prop:l,state:a,send:m,scope:p,computed:h,event:v}=e,f=l("translations"),I=l("collection"),b=!!l("disabled"),x=h("isInteractive"),C=!!l("invalid"),y=!!l("required"),E=!!l("readOnly"),O=a.hasTag("open"),T=a.hasTag("focused"),P=l("composite"),N=i.get("highlightedValue"),V=i.get("currentPlacement"),S=V?(0,n.getPlacementSide)(V):void 0,w=(0,c.getPlacementStyles)({...l("positioning"),placement:V});function L(e){let t=I.getItemDisabled(e.item),l=I.getItemValue(e.item);return(0,d.ensure)(l,()=>`[zag-js] No value found for item ${JSON.stringify(e.item)}`),{value:l,disabled:!!(b||t),highlighted:N===l,selected:i.get("value").includes(l)}}return{focused:T,open:O,inputValue:i.get("inputValue"),highlightedValue:N,highlightedItem:i.get("highlightedItem"),value:i.get("value"),valueAsString:h("valueAsString"),hasSelectedItems:h("hasSelectedItems"),selectedItems:h("selectedItems"),collection:l("collection"),multiple:!!l("multiple"),disabled:!!b,syncSelectedItems(){m({type:"SELECTED_ITEMS.SYNC"})},reposition(e={}){m({type:"POSITIONING.SET",options:e})},setHighlightValue(e){m({type:"HIGHLIGHTED_VALUE.SET",value:e})},clearHighlightValue(){m({type:"HIGHLIGHTED_VALUE.CLEAR"})},selectValue(e){m({type:"ITEM.SELECT",value:e})},setValue(e){m({type:"VALUE.SET",value:e})},setInputValue(e,t="script"){m({type:"INPUT_VALUE.SET",value:e,src:t})},clearValue(e){null!=e?m({type:"ITEM.CLEAR",value:e}):m({type:"VALUE.CLEAR"})},focus(){g.getInputEl(p)?.focus()},setOpen(e,t="script"){a.hasTag("open")!==e&&m({type:e?"OPEN":"CLOSE",src:t})},getRootProps:()=>t.element({...u.parts.root.attrs,dir:l("dir"),id:g.getRootId(p),"data-invalid":(0,o.dataAttr)(C),"data-readonly":(0,o.dataAttr)(E)}),getLabelProps:()=>t.label({...u.parts.label.attrs,dir:l("dir"),htmlFor:g.getInputId(p),id:g.getLabelId(p),"data-readonly":(0,o.dataAttr)(E),"data-disabled":(0,o.dataAttr)(b),"data-invalid":(0,o.dataAttr)(C),"data-required":(0,o.dataAttr)(y),"data-focus":(0,o.dataAttr)(T),onClick(e){P||(e.preventDefault(),g.getTriggerEl(p)?.focus({preventScroll:!0}))}}),getControlProps:()=>t.element({...u.parts.control.attrs,dir:l("dir"),id:g.getControlId(p),"data-state":O?"open":"closed","data-focus":(0,o.dataAttr)(T),"data-disabled":(0,o.dataAttr)(b),"data-invalid":(0,o.dataAttr)(C)}),getPositionerProps:()=>t.element({...u.parts.positioner.attrs,dir:l("dir"),id:g.getPositionerId(p),style:w.floating}),getInputProps:()=>t.input({...u.parts.input.attrs,dir:l("dir"),"aria-invalid":(0,o.ariaAttr)(C),"data-invalid":(0,o.dataAttr)(C),"data-autofocus":(0,o.dataAttr)(l("autoFocus")),name:l("name"),form:l("form"),disabled:b,required:l("required"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"none",spellCheck:"false",readOnly:E,placeholder:l("placeholder"),id:g.getInputId(p),type:"text",role:"combobox",defaultValue:i.get("inputValue"),"aria-autocomplete":h("autoComplete")?"both":"list","aria-controls":g.getContentId(p),"aria-expanded":O,"data-state":O?"open":"closed","aria-activedescendant":N?g.getItemId(p,N):void 0,onClick(e){e.defaultPrevented||!l("openOnClick")||x&&m({type:"INPUT.CLICK",src:"input-click"})},onFocus(){b||m({type:"INPUT.FOCUS"})},onBlur(){b||m({type:"INPUT.BLUR"})},onChange(e){m({type:"INPUT.CHANGE",value:e.currentTarget.value,src:"input-change"})},onKeyDown(e){if(e.defaultPrevented||!x||e.ctrlKey||e.shiftKey||(0,r.isComposingEvent)(e))return;let t=l("openOnKeyPress"),i=e.ctrlKey||e.metaKey||e.shiftKey,a={ArrowDown(e){(t||O)&&(m({type:e.altKey?"OPEN":"INPUT.ARROW_DOWN",keypress:!0,src:"arrow-key"}),e.preventDefault())},ArrowUp(){(t||O)&&(m({type:e.altKey?"CLOSE":"INPUT.ARROW_UP",keypress:!0,src:"arrow-key"}),e.preventDefault())},Home(e){!i&&(m({type:"INPUT.HOME",keypress:!0}),O&&e.preventDefault())},End(e){!i&&(m({type:"INPUT.END",keypress:!0}),O&&e.preventDefault())},Enter(e){m({type:"INPUT.ENTER",keypress:!0,src:"item-select"});let t=null!=N,i=l("alwaysSubmitOnEnter"),a=h("isCustomValue")&&!l("allowCustomValue");if(O&&!i&&(t||a)&&e.preventDefault(),null==N)return;let o=g.getItemEl(p,N);(0,s.isAnchorElement)(o)&&l("navigate")?.({value:N,node:o,href:o.href})},Escape(){m({type:"INPUT.ESCAPE",keypress:!0,src:"escape-key"}),e.preventDefault()}}[(0,r.getEventKey)(e,{dir:l("dir")})];a?.(e)}}),getTriggerProps:(e={})=>t.button({...u.parts.trigger.attrs,dir:l("dir"),id:g.getTriggerId(p),"aria-haspopup":P?"listbox":"dialog",type:"button",tabIndex:e.focusable?void 0:-1,"aria-label":f.triggerLabel,"aria-expanded":O,"data-state":O?"open":"closed","aria-controls":O?g.getContentId(p):void 0,disabled:b,"data-invalid":(0,o.dataAttr)(C),"data-focusable":(0,o.dataAttr)(e.focusable),"data-readonly":(0,o.dataAttr)(E),"data-disabled":(0,o.dataAttr)(b),onFocus(){e.focusable&&m({type:"INPUT.FOCUS",src:"trigger"})},onClick(e){e.defaultPrevented||!x||(0,r.isLeftClick)(e)&&m({type:"TRIGGER.CLICK",src:"trigger-click"})},onPointerDown(e){!x||"touch"===e.pointerType||(0,r.isLeftClick)(e)&&(e.preventDefault(),queueMicrotask(()=>{g.focusInputEl(p)}))},onKeyDown(e){if(e.defaultPrevented||P)return;let t={ArrowDown(){m({type:"INPUT.ARROW_DOWN",src:"arrow-key"})},ArrowUp(){m({type:"INPUT.ARROW_UP",src:"arrow-key"})}}[(0,r.getEventKey)(e,{dir:l("dir")})];t&&(t(e),e.preventDefault())}}),getContentProps:()=>t.element({...u.parts.content.attrs,dir:l("dir"),id:g.getContentId(p),role:P?"listbox":"dialog",tabIndex:-1,hidden:!O,"data-state":O?"open":"closed","data-
1placement":V,"data-side":S,"aria-labelledby":g.getLabelId(p),"aria-multiselectable":!!l("multiple")&&!!P||void 0,"data-empty":(0,o.dataAttr)(0===I.size),onPointerDown(e){(0,r.isLeftClick)(e)&&e.preventDefault()}}),getListProps:()=>t.element({...u.parts.list.attrs,role:P?void 0:"listbox","data-empty":(0,o.dataAttr)(0===I.size),"aria-labelledby":g.getLabelId(p),"aria-multiselectable":!!l("multiple")&&!P||void 0}),getClearTriggerProps:()=>t.button({...u.parts.clearTrigger.attrs,dir:l("dir"),id:g.getClearTriggerId(p),type:"button",tabIndex:-1,disabled:b,"data-invalid":(0,o.dataAttr)(C),"aria-label":f.clearTriggerLabel,"aria-controls":g.getInputId(p),hidden:!i.get("value").length,onPointerDown(e){(0,r.isLeftClick)(e)&&e.preventDefault()},onClick(e){e.defaultPrevented||x&&m({type:"VALUE.CLEAR",src:"clear-trigger"})}}),getItemState:L,getItemProps(e){let i=L(e),a=i.value;return t.element({...u.parts.item.attrs,dir:l("dir"),id:g.getItemId(p,a),role:"option",tabIndex:-1,"data-highlighted":(0,o.dataAttr)(i.highlighted),"data-state":i.selected?"checked":"unchecked","aria-selected":(0,o.ariaAttr)(i.selected),"aria-disabled":(0,o.ariaAttr)(i.disabled),"data-disabled":(0,o.dataAttr)(i.disabled),"data-value":i.value,onPointerMove(){i.disabled||i.highlighted||m({type:"ITEM.POINTER_MOVE",value:a})},onPointerLeave(){if(e.persistFocus||i.disabled)return;let t=v.previous();t?.type.includes("POINTER")&&m({type:"ITEM.POINTER_LEAVE",value:a})},onClick(e){(0,r.isDownloadingEvent)(e)||(0,r.isOpeningInNewTab)(e)||(0,r.isContextMenuEvent)(e)||i.disabled||m({type:"ITEM.CLICK",src:"item-select",value:a})}})},getItemTextProps(e){let i=L(e);return t.element({...u.parts.itemText.attrs,dir:l("dir"),"data-state":i.selected?"checked":"unchecked","data-disabled":(0,o.dataAttr)(i.disabled),"data-highlighted":(0,o.dataAttr)(i.highlighted)})},getItemIndicatorProps(e){let i=L(e);return t.element({"aria-hidden":!0,...u.parts.itemIndicator.attrs,dir:l("dir"),"data-state":i.selected?"checked":"unchecked",hidden:!i.selected})},getItemGroupProps(e){let{id:i}=e;return t.element({...u.parts.itemGroup.attrs,dir:l("dir"),id:g.getItemGroupId(p,i),"aria-labelledby":g.getItemGroupLabelId(p,i),"data-empty":(0,o.dataAttr)(0===I.size),role:"group"})},getItemGroupLabelProps(e){let{htmlFor:i}=e;return t.element({...u.parts.itemGroupLabel.attrs,dir:l("dir"),id:g.getItemGroupLabelId(p,i),role:"presentation"})}}}((0,h.useMachine)(a.machine,x),p.normalizeProps)}],24133)},651933,e=>{"use strict";var t=e.i(960061),i=e.i(412023),l=e.i(651434),a=e.i(607878),o=e.i(10667),r=e.i(317527),s=e.i(692894),n=e.i(732985),c=e.i(899528),d=e.i(228077),u=e.i(979300),g=e.i(843100),m=e.i(918722),p=e.i(25548),h=e.i(229128),v=e.i(688971),f=e.i(287942),I=e.i(978605),b=e.i(734893),x=e.i(520953),C=e.i(664747),y=e.i(848776),E=e.i(24133),O=e.i(271645),T=e.i(541949),P=e.i(843476),N=(0,O.forwardRef)((e,t)=>{let[i,l]=(0,b.splitPresenceProps)(e),[a,o]=(0,f.createSplitProps)()(l,["allowCustomValue","alwaysSubmitOnEnter","autoF
1ocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","disabled","disableLayer","form","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]),r=(0,E.useCombobox)(a),s=(0,x.usePresence)((0,T.mergeProps)({present:r.open},i)),n=(0,T.mergeProps)(r.getRootProps(),o);return(0,P.jsx)(y.ComboboxProvider,{value:r,children:(0,P.jsx)(C.PresenceProvider,{value:s,children:(0,P.jsx)(I.ark.div,{...n,ref:t})})})}),V=(0,O.forwardRef)((e,t)=>{let[i,l]=(0,b.splitPresenceProps)(e),[{value:a},o]=(0,f.createSplitProps)()(l,["value"]),r=(0,x.usePresence)((0,T.mergeProps)({present:a.open},i)),s=(0,T.mergeProps)(a.getRootProps(),o);return(0,P.jsx)(y.ComboboxProvider,{value:a,children:(0,P.jsx)(C.PresenceProvider,{value:r,children:(0,P.jsx)(I.ark.div,{...s,ref:t})})})}),S=(0,f.createSplitProps)(),w=(0,O.forwardRef)((e,t)=>{let[i,l]=S(e,["focusable"]),a=(0,T.mergeProps)((0,y.useComboboxContext)().getTriggerProps(i),l);return(0,P.jsx)(I.ark.button,{...a,ref:t})});w.displayName="ComboboxTrigger";var L=(0,t.__exportAll)({ClearTrigger:()=>i.ComboboxClearTrigger,Content:()=>l.ComboboxContent,Context:()=>o.ComboboxContext,Control:()=>r.ComboboxControl,Empty:()=>a.ComboboxEmpty,Input:()=>s.ComboboxInput,Item:()=>n.ComboboxItem,ItemContext:()=>c.ComboboxItemContext,ItemGroup:()=>d.ComboboxItemGroup,ItemGroupLabel:()=>u.ComboboxItemGroupLabel,ItemIndicator:()=>g.ComboboxItemIndicator,ItemText:()=>m.ComboboxItemText,Label:()=>p.ComboboxLabel,List:()=>h.ComboboxList,Positioner:()=>v.ComboboxPositioner,Root:()=>N,RootProvider:()=>V,Trigger:()=>w}),k=e.i(393348),R=e.i(826806);let A=(0,k.tv)({base:"combobox",defaultVariants:{size:"md"},slots:{root:"flex flex-col gap-0.375",label:"combobox__label",input:"text-foreground-primary",positioner:"combobox__positioner",control:"relative",trigger:"absolute top-0 right-0 bottom-0",content:"rounded-xl data-[state=open]:animate-fadeIn data-[state=closed]:animate-fadeOut",clearTrigger:"combobox__clearTrigger",item:"combobox__item",itemText:"combobox__itemText",itemIndicator:"combobox__itemIndicator",itemGroup:"combobox__itemGroup",itemGroupLabel:"combobox__itemGroupLabel"},variants:{size:{sm:{root:"combobox__root--size_sm",label:"combobox__label--size_sm",input:"combobox__input--size_sm",positioner:"combobox__positioner--size_sm",control:"combobox__control--size_sm",trigger:"combobox__trigger--size_sm",content:"combobox__content--size_sm",clearTrigger:"combobox__clearTrigger--size_sm",item:"combobox__item--size_sm",itemText:"combobox__itemText--size_sm",itemIndicator:"combobox__itemIndicator--size_sm",itemGroup:"combobox__itemGroup--size_sm",itemGroupLabel:"combobox__itemGroupLabel--size_sm"},md:{root:"combobox__root--size_md",label:"combobox__label--size_md",input:"combobox__input--size_md",positioner:"combobox__positioner--size_md",control:"combobox__control--size_md",trigger:"combobox__trigger--size_md",content:"combobox__content--size_md",clearTrigger:"combobox__clearTrigger--size_md",item:"combobox__item--size_md",itemText:"combobox__itemText--size_md",itemIndicator:"combobox__itemIndicator--size_md",itemGroup:"combobox__itemGroup--size_md",itemGroupLabel:"combobox__itemGroupLabel--size_md"},lg:{root:"combobox__root--size_lg",label:"combobox__label--size_lg",input:"combobox__input--size_lg",positioner:"combobox__positioner--size_lg",control:"combobox__control--size_lg",trigger:"combobox__trigger--size_lg",content:"combobox__content--size_lg",clearTrigger:"combobox__clearTrigger--size_lg",item:"combobox__item--size_lg",itemText:"combobox__itemText--size_lg",itemIndicator:"combobox__itemIndicator--size_lg",itemGroup:"combobox__itemGroup--size_lg",itemGroupLabel:"combobox__itemGroupLabel--size_lg"}}}},{twMerge:!1}),{withProvider:_,withContext:j}=(0,R.createStyleContext)(A),G=L.RootProvider,M=_(L.Root,"root"),F=j(L.ClearTrigger,"clearTrigger"),H=j(L.Content,"content"),D=j(L.Control,"control"),U=j(L.Input,"input"),z=j(L.ItemGroupLabel,"itemGroupLabel"),B=j(L.ItemGroup,"itemGroup");j(L.ItemIndicator,"itemIndicator");let W=j(L.Item,"item"),K=j(L.ItemText,"itemText");j(L.Label,"label");let $=j(L.Positioner,"positioner"),q=j(L.Trigger,"trigger");e.s(["ClearTrigger",0,F,"Content",0,H,"Control",0,D,"Input",0,U,"Item",0,W,"ItemGroup",0,B,"ItemGroupLabel",0,z,"ItemText",0,K,"Positioner",0,$,"Root",0,M,"RootProvider",0,G,"Trigger",0,q],651933)},889684,e=>{"use strict";e.s(["default",()=>
1C],889684),e.i(247167);var t=e.i(843476),i=e.i(271645),l=e.i(97905),a=e.i(728384),o=e.i(538535),r=e.i(257765),s=e.i(919056),n=e.i(390175),c=e.i(728172),d=e.i(508128),u=e.i(775953),g=e.i(44305),m=e.i(916152),p=e.i(984875),h=e.i(651933),v=e.i(40409),f=e.i(929367),I=e.i(570094);let b=(0,e.i(393348).tv)({defaultVariants:{size:"md"},slots:{root:"flex flex-col justify-center p-4.5 items-center text-foreground-primary gap-2",title:"font-semibold",content:"font-medium text-center px-2",action:"w-full"},variants:{size:{md:{title:"text-base",content:"text-sm",action:"mt-3"},xl:{title:"text-xl",content:"text-base",action:"mt-5"}}}});function x({size:e}){let{root:i,title:l,content:a,action:o}=b({size:e});return(0,t.jsxs)("div",{className:i(),children:[(0,t.jsx)("h6",{className:l(),children:"No results found."}),(0,t.jsx)("p",{className:a(),children:"Contact us to connect with your exact target audience."}),(0,t.jsx)(p.default,{variant:"subtle",className:o(),href:"https://solsten.io/contact",onClick:()=>r.default.track("Contact us",{source:"No audience found on search"}),children:"Contact us"})]})}let C=({items:e,history:p=[],selectedItem:b,open:C,onSearch:E,onFocus:O,onSelect:T,onRemoveItemFromHistory:P,controlProps:N,inputProps:V={},children:S,buttons:w,withCraftButton:L,className:k,searchIconProps:R,positionerProps:A,id:_,selectionBehavior:j="preserve",contentDefaultTitle:G="Trending searches",itemProp:M,withClearTrigger:F=!0,clearTriggerProps:H,...D})=>{let{className:U,...z}=V,[B,W]=(0,i.useState)(""),[K,$]=(0,i.useState)(!1),[q,Y]=(0,i.useState)(C),J=(0,I.default)(()=>{$(!1),Y(!1),Z.current?.blur()}),Z=(0,i.useRef)(null),{contains:Q}=(0,a.useFilter)({sensitivity:"base"}),{collection:X,set:ee}=(0,o.useListCollection)({initialItems:e,filter:Q,groupBy:e=>e.type});return(0,i.useEffect)(()=>{ee([...p.map(e=>({...e,value:`${e.slug}-history`,label:e.name,type:"history"})),...e])},[p.length,e.length]),(0,i.useEffect)(()=>{B.length>=f.MIN_SEARCH_TERM_LENGTH&&ee(e)},[B,e]),(0,t.jsxs)(h.Root,{...D,ref:J,id:_,collection:X,inputValue:B,selectionBehavior:j,open:q,className:(0,s.twMerge)(k,"group"),onInputValueChange:e=>{W(e.inputValue),E(e.inputValue),Y(!0)},onSelect:({itemValue:e})=>{let t=X.find(e);t&&(Z.current?.blur(),Y(!1),T?.(t),W(""),r.default.track("Search Menu Engagement",{source:"history"===t.type?"Search history":"Search results",slug:e}))},positioning:{placement:"bottom",flip:!1},unmountOnExit:!0,children:[(0,t.jsxs)(h.Control,{...N,className:(0,s.twMerge)(` 2 relative 3 bg-white 4 w-full 5 rounded-lg 6 [filter:drop-shadow-bull] 7 flex items-center 8 h-11 9 outline-2 outline-transparent hover:outline-stroke-flat-brand-inverted active:bg-white/60 data-[state=open]:outline-brand-300 10 `,N?.className),children:[(0,t.jsx)(m.default,{className:(0,s.twMerge)("absolute left-4 pointer-events-none text-neutral-550",R?.className),fill:"currentColor"}),!B&&S,b??(0,t.jsx)(h.Input,{ref:Z,onClick:()=>{$(!1),Y(!q)},onFocus:()=>{B||O?.()},className:(0,s.twMerge)(`bg-transparent 11 cursor-pointer 12 size-full 13 pl-11 14 outline-0 15 truncate 16 focus:outline-hidden 17 placeholder:font-medium placeholder:text-foreground-secondary 18 disabled:cursor-not-allowed 19 `,U),...z}),N?.indicator&&(0,t.jsx)("div",{className:"group-has-data-[state=open]:rotate-180 transition-transform pointer-events-none",children:N.indicator}),L&&!B&&(0,t.jsxs)("div",{className:"hidden w-40 sm:flex items-center gap-4",children:[(0,t.jsx)("div",{className:"w-px h-11 bg-neutral-450/30"}),(0,t.jsx)(h.Trigger,{onClick:()=>{$(!K),Y(!0)},asChild:!0,children:(0,t.jsx)(c.Button,{variant:"ghost",className:(0,s.twMerge)("bg-layer-neutral-minus-1 w-32 px-1 mr-4 ml-1 relative",K&&"outline group-has-data-[state=open]:outline-stroke-flat-brand-inverted group-has-data-[state=open]:outline-2"),children:"Craft audience"})})]}),F&&(0,t.jsx)(h.ClearTrigger,{...H,className:(0,s.twMerge)(` 20 flex 21 items-center 22 justify-center 23 shrink-0 24 relative 25 m-4 26 size-8 27 focus:bg-layer-neutral-0-hover-and-active 28 hover:bg-layer-neutral-0-hover-and-active 29 active:bg-layer-neutral-0-pressed 30 rounded-sm bg-transparent 31 cursor-pointer 32 `,H?.className),hidden:!B,children:(0,t.jsx)(u.default,{className:"size-5 shrink-0"})})]}),(0,t.jsx)(l.Portal,{children:(0,t.jsx)(h.Positioner,{...A,className:(0,s.twMerge)("z-40! rounded-lg shadow-neutral-l max-h-[min(var(--available-height),536px)] overflow-hidden flex flex-col",A?.className),children:(0,t.jsx)(h.Content,{className:(0,s.twMerge)("with-scrollbar bg-white overflow-y-auto overflow-x-hidden rounded-xl flex-1 data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out",X.items.length>0&&"p-1.5"),children:K&&!B?(0,t.jsx)(y,{buttons:w}):0===X.items.length&&B?(0,t.jsx)(x,{size:"xl"}):X.group().map(([e,i],l)=>(0,t.jsxs)(h.ItemGroup,{children:["search"===e&&B.length<f.MIN_SEARCH_TERM_LENGTH&&(0,t.jsx)(h.ItemGroupLabel,{className:(0,s.twMerge)("pl-2 pt-3 pb-2 text-sm font-medium text-gray-400",0!==l&&"border-t-0.5 border-stroke-flat-standard"),children:G}),i.map(i=>(0,t.jsxs)(h.Item,{item:i,className:(0,s.twMerge)("cursor-pointer group/item flex justify-between p-1.5 pr-3 min-h-14 mb-0.5 hover:bg-layer-neutral-0-hover-and-active data-highlighted:bg-layer-neutral-0-hover-and-active items-center rounded-xl active:bg-layer-neutral-0-pressed",M?.className),children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:["history"===e?(0,t.jsx)("div",{className:"size-8 flex items-center justify-center bg-layer-neutral-minus-1 border-0.5 border-stroke-flat-standard aspect-square row-span-2 md:plborder-stroke-flat-standardace-self-ce
32nter justify-self-start self-center rounded-lg",children:(0,t.jsx)(g.HistoryLineIcon,{})}):!!i.logoURL&&(0,t.jsx)("img",{src:i.logoURL,height:32,width:32,alt:"audience logo",className:"object-cover aspect-square row-span-2 md:place-self-center justify-self-start self-center rounded-lg"}),(0,t.jsxs)("div",{className:"w-full flex flex-col min-w-0",children:[(0,t.jsx)(h.ItemText,{className:"font-medium truncate-3 text-foreground-primary leading-5",children:i.name}),(0,t.jsx)(n.default,{items:i.categories?.map(e=>({label:e.name,href:""})),hideMiddleItems:!0,navProps:{className:"text-gray-400"},ulProps:{className:"items-center leading-6"},separator:(0,t.jsx)(d.default,{fill:"#9ca3af",className:"-rotate-90"})})]})]}),"history"===e&&(0,t.jsx)(v.IconButton,{variant:"ghost",className:"hidden min-w-8 hover:bg-layer-neutral-0-hover-and-active justify-center items-center group-hover/item:flex group-has-data-highlighted/item:flex size-8 rounded-md",onClick:e=>{e.stopPropagation(),e.preventDefault(),P?.({name:i.name,slug:i.slug})},children:(0,t.jsx)(u.default,{})})]},i.value))]},e))})})})]})};function y({buttons:e}){return(0,t.jsxs)("div",{className:"flex flex-col justify-center p-4.5 items-center text-foreground-primary gap-2",children:[(0,t.jsx)("span",{className:"text-xl font-semibold",children:"Craft an audience as unique as your idea"}),(0,t.jsx)("p",{className:"text-base font-medium text-center",children:"An automated tool is coming soon! If you can't wait, contact us to craft your exact audience using our 200,000+ brands, products, interests, traits, and more."}),(0,t.jsxs)("div",{className:"z-0 mt-5 flex flex-col w-full gap-2 space-y-2",children:[e?.craft.primary??(0,t.jsx)(p.default,{variant:"brand",className:"w-full",href:"https://solsten.io/elaris-early-access",children:"Get early access to Elaris"}),(0,t.jsx)(p.default,{variant:"subtle",href:"https://solsten.io/contact",className:"w-full",onClick:()=>r.default.track("Contact us",{source:"Main page search"}),children:"Contact us"})]})]})}},36815,e=>{"use strict";e.s(["default",()=>v]);
32var t=e.i(843476),i=e.i(657688),l=e.i(522016),a=e.i(631477),o=e.i(97905),r=e.i(718876),s=e.i(320915),n=e.i(919056),c=e.i(393348),d=e.i(229322),u=e.i(889684),g=e.i(664979),m=e.i(508128),p=e.i(841612);let h=(0,c.tv)({defaultVariants:{variant:"ghost",size:"md"},slots:{root:"font-semibold flex flex-col gap-1 min-w-0",label:"text-xs text-foreground-primary font-normal",control:"w-full",trigger:"w-full px-2 flex gap-2 rounded-lg justify-between items-center outline outline-0.5 outline-stroke-flat-standard cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",valueText:"overflow-hidden whitespace-nowrap text-ellipsis min-w-[2em]",indicator:"shrink-0 data-[state=open]:rotate-180 transition-all",positioner:"z-10! -mt-0.5",content:"select__content bg-white p-1.5 min-w-48 overflow-y-auto shadow-petermann rounded-lg with-scrollbar max-h-100",itemGroup:"flex flex-col w-full gap-0.5",item:"pl-2 pr-2.5 py-2.5 cursor-pointer hover:bg-layer-neutral-0-hover-and-active active:bg-layer-neutral-0-pressed rounded-lg font-medium data-[state=checked]:font-semibold data-[state=checked]:bg-layer-neutral-0-hover-and-active hover:outline hover:outline-0.5 data-[state=checked]:border-0.5 hover:data-[state=checked]:outline-hidden border-stroke-flat-standard outline-stroke-flat-standard active:data-[state=checked]:bg-layer-neutral-minus-3-hover-and-active hover:data-[state=checked]:bg-layer-neutral-minus-3"},variants:{variant:{ghost:{root:"text-midnight-blue",trigger:"px-4 sm:px-2 py-2.5 text-foreground-secondary sm:hover:bg-layer-neutral-0-hover-and-active hover:bg-white bg-white sm:bg-layer-neutral-0-transparent active:bg-layer-neutral-0-pressed sm:active:bg-layer-neutral-0-pressed outline-2 outline-transparent has-data-[state=open]:outline-stroke-flat-focus"},solid:{trigger:"px-3.5 py-2.5 gap-1 bg-layer-neutral-minus-1 hover:bg-layer-neutral-minus-1-hover-and-active active:bg-layer-neutral-minus-1-pressed has-data-[state=open]:bg-white has-data-[state=open]:active:bg-layer-neutral-minus-1-pressed text-foreground-primary has-data-[state=open]:outline-stroke-flat-focus"},outline:{trigger:"bg-layer-neutral-0-transparent hover:bg-layer-neutral-0-hover-and-active active:bg-layer-neutral-0-pressed has-data-[state=open]:bg-white has-data-[state=open]:active:bg-layer-neutral-0-pressed has-data-[state=open]:outline-stroke-flat-brand-inverted"},subtle:{root:"text-midnight-blue",trigger:"px-1 text-2xl lowercase relative bg-white sm:bg-layer-neutral-0-transparent focus:bg-white sm:focus:bg-layer-neutral-0-transparent hover:bg-white sm:hover:bg-layer-neutral-0-hover-and-active active:bg-layer-neutral-0-pressed sm:active:bg-layer-neutral-0-pressed outline-0 outline-stroke-flat-focus has-data-[state=open]:outline-2 has-data-[state=open]:after:content-none after:content-[''] after:absolute after:bottom-0 after:left-1 after:right-1 after:h-px after:bg-neutral-450/30",positioner:"mt-1",indicator:"hidden"},"label-in-trigger":{label:"text-xl font-semibold text-foreground-primary",trigger:"text-foreground-secondary! text-xs! font-medium h-11",valueText:"text-xs text-foreground-secondary font-medium"}},size:{sm:{trigger:"h-8 text-sm py-1.5",content:"text-sm"},md:{trigger:"h-11"}}}});function v({variant:e,size:i,name:l,label:a,value:c,className:d,items:g,labelProps:p,triggerProps:I={indicatorProps:{className:""},hideIndicator:!0},contentProps:b,positionerProps:x,itemGroupProps:C,itemProps:y,valueText:E,valueTextProps:O,tooltipProps:T,withPortal:P,accordionItemTriggerProps:N,searchProps:V,...S}){let{root:w,label:L,control:k,trigger:R,valueText:A,indicator:_,positioner:j,content:G,itemGroup:M,item:F}=h({variant:e,size:i}),H="label-in-trigger"===e,{indicatorProps:D,badge:U,hideIndicator:z,...B}=I,W=(0,s.createListCollection)({items:g.map(({name:e,value:t,label:i})=>({name:e,value:t,label:i}))});return(0,t.jsxs)(r.Select.Root,{...S,value:c,className:(0,n.twMerge)(w(),d),collection:W,children:[a&&!H&&(0,t.jsx)(r.Select.Label,{...p,className:(0,n.twMerge)(L(),p?.className),children:a}),(0,t.jsx)(r.Select.Control,{className:k(),children:(0,t.jsxs)(r.Select.Trigger,{...B,"aria-label":"filter",className:(0,n.twMerge)(R(),I?.className),children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 min-w-0
32w-full",children:[H&&(0,t.jsx)("div",{className:L(),children:a}),(0,t.jsxs)("div",{className:"flex w-full gap-1.5 items-center min-w-0 justify-between",children:[(0,t.jsxs)("div",{className:"flex gap-2 items-center truncate w-fit",children:["string"==typeof I?.icon?(0,t.jsx)("img",{src:I.icon,alt:"selected item",className:"rounded-sm shrink-0 size-5",width:20,height:20}):I?.icon,(0,t.jsx)(r.Select.ValueText,{...O,className:(0,n.twMerge)(A(),O?.className),children:E})]}),U&&U(c?.[0]??"")]})]}),!z&&(0,t.jsx)(r.Select.Indicator,{className:(0,n.twMerge)(_(),D?.className),children:(0,t.jsx)(m.default,{fill:"currentColor"})})]})}),(0,t.jsx)(o.Portal,{disabled:!P,children:(0,t.jsx)(r.Select.Positioner,{...x,className:(0,n.twMerge)(j(),x?.className),children:(0,t.jsxs)(r.Select.Content,{...b,className:(0,n.twMerge)(G(),b?.className,V&&"pt-0"),children:[b?.header,(0,t.jsxs)(r.Select.ItemGroup,{className:(0,n.twMerge)(M(),C?.className),children:[V&&(0,t.jsx)("div",{className:"sticky top-0 py-1.5 z-10 w-full bg-white",children:(0,t.jsx)(u.default,{...V})}),g.map((e,i)=>(0,t.jsx)(f,{value:c,name:l,item:e,itemProps:{...y,className:(0,n.twMerge)(F(),y?.className,y?.withCheckbox&&"data-[state=checked]:font-medium")},tooltipProps:T,accordionItemTriggerProps:N},e.value+i))]}),b?.footer]})})})]})}function f({name:e,item:l,value:o,itemProps:s,tooltipProps:c,accordionItemTriggerProps:u}){if(l.children)return(0,t.jsx)(a.Accordion.Root,{multiple:!0,defaultValue:[l.children.some(e=>e.value===o?.[0]||e.opened)?l.value:""],className:"p-1.5 text-foreground-primary border-b-0.5 border-stroke-flat-standard last:border-b-zero contents",children:(0,t.jsxs)(a.Accordion.Item,{value:l.value,className:"border-b border-stroke-flat-standard",children:[(0,t.jsx)(a.Accordion.ItemTrigger,{...u,className:(0,n.twMerge)("sticky top-0 z-10 w-full text-sm font-medium capitalize cursor-pointer",u?.className),children:(0,t.jsxs)("span",{className:"relative flex justify-between items-center px-2 h-14 rounded-lg after:absolute after:-inset-x-0.5 after:inset-y-0 after:bg-white after:-z-1 hover:bg-layer-neutral-0-hover-and-active active:bg-layer-neutral-0-pressed",children:[(0,t.jsxs)("span",{className:"flex gap-2",children:["string"==typeof l.image?(0,t.jsx)(i.default,{src:l.image,alt:"accordion icon",width:20,height:20}):l.image?.(),l.name]}),(0,t.jsx)(a.Accordion.ItemIndicator,{className:"data-[state='open']:rotate-180 transition-all",children:(0,t.jsx)(m.default,{fill:"#255BA0"})})]})}),l.children.map((i,l)=>(0,t.jsx)(a.Accordion.ItemContent,{children:(0,t.jsx)(f,{item:i,name:e,value:o,itemProps:s,tooltipProps:c},i.value+l)},i.value+l))]},l.value)},l.value);if(!1!==l.visible){let{icon:e,image:i,...a}=l;return(0,t.jsxs)(r.Select.Item,{item:a,className:(0,n.twMerge)(s?.className,"group/item",l.disabled&&"pointer-events-none"),children:[(0,t.jsx)(I,{item:l,className:"flex gap-2 justify-between items-center w-full",children:(0,t.jsxs)(r.Select.ItemText,{className:"flex relative gap-2 justify-between items-center w-full",children:[(0,t.jsxs)("span",{className:"flex gap-2 items-center min-w-0",children:[i&&("string"==typeof i?(0,t.jsx)("img",{src:i,className:"rounded-sm size-5 aspect-square",width:20,height:20,alt:"dropdown item"}):(0,t.jsx)("span",{className:"flex items-center",children:i()})),(0,t.jsx)("span",{className:"truncate",children:l.name}),s?.badge&&l.badgeTitle&&s.badge(l.badgeTitle)]}),s?.withCheckbox?(0,t.jsx)("span",{className:"border-2 group-data-[state=checked]/item:border-[5px] border-foreground-tertiary group-data-[state=checked]/item:border-foreground-secondary size-[17px] rounded-full aspect-square mr-[1.5px]"}):(0,t.jsxs)(t.Fragment,{children:[s?.indicator&&(0,t.jsx)("span",{className:(0,n.twMerge)("group-data-[state=checked]/item:hidden",s?.indicator&&"absolute top-1/2 -translate-y-1/2 right-0"),children:e}),s?.indicator&&(0,t.jsx)("span",{className:"hidden group-data-[state=checked]/item:inline",children:s.indicator})]})]})}),s?.action&&s?.action([l.value])]},l.value)}function h(){return(0,t.jsxs)("div",{className:(0,n.twMerge)(s?.className,"group/item flex justify-between items-center gap-2"),children:[(0,t.jsxs)("span",{className:"flex gap-2 min-w-0",children:[l.image&&("string"==typeof l.image?(0,t.jsx)(i.default,{src:l.image,alt:"accordion icon",width:20,height:20}):(0,t.jsx)("span",{className:"flex items-center",children:l.image()})),(0,t.jsx)("span",{className:"truncate",children:l.name})]}),(0,t.jsx)("span",{className:"text-foreground-soft group-hover/item:text-layer-colors-brand",children:(0,t.jsx)(p.default,{fill:"currentColor"})})]})}return c?.variant?(0,t.jsx)(g.default,{variant:c?.variant,trigger:h(),popoverProps:{positioning:{placement:"bottom-end"}},arrowProps:{className:"left-auto! right-2.5"},linkProps:{className:"w-full"},tooltipPlacement:c?.placement}):(0,t.jsx)(d.default,{...c,variant:"tappable",title:c?.title||"Unlock advanced insights",content:c?.content||"Supercharge your work with advanced segmentation of our premium, first-party data.",triggerProps:{asChild:!0},trigger:h()})}function I({item:e,children:i,className:a}){return e.href?(0,t.jsx)(l.default,{href:e.href,className:a,children:i}):(0,t.jsx)("div",{className:a,children:i})}}]);
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.