PageSourceSearch

https://www.seeedstudio.com/_next/static/chunks/4924-2285cc53ff314689.js

js seeedstudio.com collected 2026-09-24 08:29:21 UTC 59,248 bytes, 4 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4924],{1703:(e,t,l)=>{l.d(t,{c:()=>s});var i=l(76704);l(5740);var s=(0,i.createContext)(null)},2086:(e,t,l)=>{l.d(t,{o:()=>s});var i=l(5740),s=e=>(0,i.jsx)("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:(0,i.jsx)("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})})},5396:(e,t,l)=>{l.d(t,{v:()=>n});var i=l(31189);let s=new WeakMap;function n(e){let t=s.get(e);if(null!=t)return t;let l=0,n=t=>{for(let s of t)"section"===s.type?n((0,i.iQ)(s,e)):"item"===s.type&&l++};return n(e),s.set(e,l),l}},5798:(e,t,l)=>{l.d(t,{Te:()=>y});var i=l(76704),s=l(9777);function n(e,t,l){let i,s=l.initialDeps??[];return()=>{var n,r,o,a;let u,c;l.key&&(null==(n=l.debug)?void 0:n.call(l))&&(u=Date.now());let d=e();if(!(d.length!==s.length||d.some((e,t)=>s[t]!==e)))return i;if(s=d,l.key&&(null==(r=l.debug)?void 0:r.call(l))&&(c=Date.now()),i=t(...d),l.key&&(null==(o=l.debug)?void 0:o.call(l))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-c)*100)/100,i=t/16,s=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${s(t,5)} /${s(e,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==l?void 0:l.key)}return null==(a=null==l?void 0:l.onChange)||a.call(l,i),i}}function r(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let o=e=>e,a=e=>{let t=Math.max(e.startIndex-e.overscan,0),l=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let e=t;e<=l;e++)i.push(e);return i},u=(e,t)=>{let l=e.scrollElement;if(!l)return;let i=e.targetWindow;if(!i)return;let s=e=>{let{width:l,height:i}=e;t({width:Math.round(l),height:Math.round(i)})};if(s(l.getBoundingClientRect()),!i.ResizeObserver)return()=>{};let n=new i.ResizeObserver(e=>{let t=e[0];if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return void s({width:e.inlineSize,height:e.blockSize})}s(l.getBoundingClientRect())});return n.observe(l,{box:"border-box"}),()=>{n.unobserve(l)}},c={passive:!0},d="undefined"==typeof window||"onscrollend"in window,h=(e,t)=>{let l=e.scrollElement;if(!l)return;let i=e.targetWindow;if(!i)return;let s=0,n=e.options.useScrollendEvent&&d?()=>void 0:((e,t,l)=>{let i;return function(...s){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,s),l)}})(i,()=>{t(s,!1)},e.options.isScrollingResetDelay),r=i=>()=>{let{horizontal:r,isRtl:o}=e.options;s=r?l.scrollLeft*(o&&-1||1):l.scrollTop,n(),t(s,i)},o=r(!0),a=r(!1);return a(),l.addEventListener("scroll",o,c),l.addEventListener("scrollend",a,c),()=>{l.removeEventListener("scroll",o),l.removeEventListener("scrollend",a)}},g=(e,t,l)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[l.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[l.options.horizontal?"width":"height"])},f=(e,{adjustments:t=0,behavior:l},i)=>{var s,n;null==(n=null==(s=i.scrollElement)?void 0:s.scrollTo)||n.call(s,{[i.options.horizontal?"left":"top"]:e+t,behavior:l})};class p{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{this._measureElement(e.target,e)})}):null);return{disconnect:()=>{var l;null==(l=t())||l.disconnect(),e=null},observe:e=>{var l;return null==(l=t())?void 0:l.observe(e,{box:"border-box"})},unobserve:e=>{var l;return null==(l=t())?void 0:l.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,l])=>{void 0===l&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:o,rangeExtractor:a,onChange:()=>{},measureElement:g,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,l;null==(l=(t=this.options).onChange)||l.call(t,this,e)},this.maybeNotify=n(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>
4{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let l=new Map,i=new Map;for(let s=t-1;s>=0;s--){let t=e[s];if(l.has(t.lane))continue;let n=i.get(t.lane);if(null==n||t.end>n.end?i.set(t.lane,t):t.end<n.end&&l.set(t.lane,!0),l.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=n(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,l,i,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:l,getItemKey:i,enabled:s}),{key:!1}),this.getMeasurements=n(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:l,getItemKey:i,enabled:s},n)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let r=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let o=this.measurementsCache.slice(0,r);for(let s=r;s<e;s++){let e=i(s),r=1===this.options.lanes?o[s-1]:this.getFurthestMeasurement(o,s),a=r?r.end+this.options.gap:t+l,u=n.get(e),c="number"==typeof u?u:this.options.estimateSize(s),d=a+c,h=r?r.lane:s%this.options.lanes;o[s]={index:s,start:a,size:c,end:d,key:e,lane:h}}return this.measurementsCache=o,o},{key:!1,debug:()=>this.options.debug}),this.calculateRange=n(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,l)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:l}){let i=e.length-1,s=v(0,i,t=>e[t].start,l),n=s;for(;n<i&&e[n].end<l+t;)n++;return{startIndex:s,endIndex:n}}({measurements:e,outerSize:t,scrollOffset:l}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=n(()=>{let e=null,t=null,l=this.calculateRange();return l&&(e=l.startIndex,t=l.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,l,i,s)=>null===i||null===s?[]:e({startIndex:i,endIndex:s,overscan:t,count:l}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,l=e.getAttribute(t);return l?parseInt(l,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let l=this.indexFromElement(e),i=this.measurementsCache[l];if(!i)return;let s=i.key,n=this.elementsCache.get(s);n!==e&&(n&&this.observer.unobserve(n),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(l,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>
4{let l=this.measurementsCache[e];if(!l)return;let i=t-(this.itemSizeCache.get(l.key)??l.size);0!==i&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(l,i,this):l.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(l.index),this.itemSizeCache=new Map(this.itemSizeCache.set(l.key,t)),this.notify(!1))},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});this._measureElement(e,void 0)},this.getVirtualItems=n(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let l=[];for(let i=0,s=e.length;i<s;i++){let s=t[e[i]];l.push(s)}return l},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return r(t[v(0,t.length-1,e=>r(t[e]).start,e)])},this.getOffsetForAlignment=(e,t)=>{let l=this.getSize(),i=this.getScrollOffset();"auto"===t&&e>=i+l&&(t="end"),"end"===t&&(e-=l);let s=this.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-l,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let l=this.measurementsCache[e];if(!l)return;let i=this.getSize(),s=this.getScrollOffset();if("auto"===t)if(l.end>=s+i-this.options.scrollPaddingEnd)t="end";else{if(!(l.start<=s+this.options.scrollPaddingStart))return[s,t];t="start"}let n=l.start-this.options.scrollPaddingStart+(l.size-i)/2;switch(t){case"center":return[this.getOffsetForAlignment(n,t),t];case"end":return[this.getOffsetForAlignment(l.end+this.options.scrollPaddingEnd,t),t];default:return[this.getOffsetForAlignment(l.start-this.options.scrollPaddingStart,t),t]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:l}={})=>{this.cancelScrollToIndex(),"smooth"===l&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:l})},this.scrollToIndex=(e,{align:t="auto",behavior:l}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===l&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let i=this.getOffsetForIndex(e,t);if(!i)return;let[s,n]=i;this._scrollToOffset(s,{adjustments:void 0,behavior:l}),"smooth"!==l&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[t]=r
4(this.getOffsetForIndex(e,n));1>Math.abs(t-this.getScrollOffset())||this.scrollToIndex(e,{align:n,behavior:l})}else this.scrollToIndex(e,{align:n,behavior:l})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t=this.getMeasurements();return Math.max((0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map(e=>e.end)))-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:l})=>{this.options.scrollToFn(e,{behavior:l,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let v=(e,t,l,i)=>{for(;e<=t;){let s=(e+t)/2|0,n=l(s);if(n<i)e=s+1;else{if(!(n>i))return s;t=s-1}}return e>0?e-1:0},m="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function y(e){return function(e){let t=i.useReducer(()=>({}),{})[1],l={...e,onChange:(l,i)=>{var n;i?(0,s.flushSync)(t):t(),null==(n=e.onChange)||n.call(e,l,i)}},[n]=i.useState(()=>new p(l));return n.setOptions(l),m(()=>n._didMount(),[]),m(()=>n._willUpdate()),n}({observeElementRect:u,observeElementOffset:h,scrollToFn:f,...e})}},7900:(e,t,l)=>{l.d(t,{y:()=>i});var i=l(54860).q},11270:(e,t,l)=>{l.d(t,{Q:()=>n});var i=l(24393);let s=new Map;function n(e){let{locale:t}=(0,i.Y)(),l=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(s.has(l))return s.get(l);let n=new Intl.Collator(t,e);return s.set(l,n),n}},21407:(e,t,l)=>{let i;l.d(t,{_:()=>p});var s=l(35769),n=l(76704),r=l(32472),o=l(14134),a=l(12240);function u(){}var c=l(3128),d=l(89730),h=l(65612),g=l(36501);let f=["refetch","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function p(e,t){let l=(0,h.m)(t?.client),r=n.useRef(void 0),o=n.useRef(void 0),p=(0,c.k)(()=>t,[t]),m=(i||(i=n.createContext(null)),n.useCallback(()=>{let e=console.error;try{return console.error=u,n.useContext(i),!0}catch(e){return!1}finally{console.error=e}},[]));function y(){return l.watchQuery({...t,query:e,initialFetchPolicy:t?.fetchPolicy,fetchPolicy:"standby"})}let[b,x]=n.useState(l),[S,w]=n.useState(y);b!==l&&(x(l),w(y()));let E=n.useCallback((e,t)=>{let l=o.current?.data;l&&!(0,s.L)(l,e.data)&&(r.current=l),o.current=e,t()},[]),M=(0,g.r)(n.useCallback(e=>{let t=S.subscribe(t=>{(0,s.L)(o.current,t)||E(t,e)});return()=>{t.unsubscribe()}},[S,E]),()=>o.current||v,()=>v),C=n.useMemo(()=>{let e={};for(let t of f)e[t]=function(...e){return(0,a.V1)(o.current,29,t),S[t](...e)};return e},[S]);n.useEffect(()=>{let l={query:e,errorPolicy:p?.errorPolicy,refetchWritePolicy:p?.refetchWritePolicy,returnPartialData:p?.returnPartialData,notifyOnNetworkStatusChange:p?.notifyOnNetworkStatusChange,nextFetchPolicy:t?.nextFetchPolicy,skipPollAttempt:t?.skipPollAttempt};"standby"!==S.options.fetchPolicy&&p?.fetchPolicy&&(l.fetchPolicy=p.fetchPolicy),S.applyOptions(l)},[e,S,p,t?.nextFetchPolicy,t?.skipPollAttempt]);let k=n.useCallback((...e)=>{(0,a.V1)(!m(),30);let[t]=e,l=S.options.fetchPolicy;return"standby"===l&&(l=S.options.initialFetchPolicy),S.reobserve({fetchPolicy:l,variables:t?.variables,context:t?.context??{}})},[S,m]),P=n.useRef(k);return(0,d.E)(()=>{P.current=k}),[n.useCallback((...e)=>P.current(...e),[]),n.useMemo(()=>{let{partial:e,...t}=M;return{...C,...t,client:l,previousData:r.current,variables:S.variables,observable:S,called:!!o.current}},[l,M,C,S])]}let v=(0,o.G)({data:void 0,dataState:"empty",loading:!1,networkStatus:r.p.ready,partial:!0})},25151:(e,t,l)=>{l.d(t,{y:()=>u});var i=l(63498),s=(0,l(99604).tv)({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),n=l(76704),r=l(61565),o=l(5740),a=(0,r.Rf)((e,t)=>{let{Component:l,getDividerProps:r}=function(e){var t;let l,r,{as:o,className:a,orientation:u,...c}=e,d=o||"hr";"hr"===d&&"vertical"===u&&(d="div");let{separatorProps:h}=(t={elementType:"string"==typeof d?d:"hr",orientation:u},r=(0,i.$)(t,{enabled:"string"==typeof t.elementType}),("vertical"===t.orientation&&(l="vertical"),"hr"!==t.elementType)?{separatorProps:{...r,role:"separator","aria-orientation":l}}:{separatorProps:r}),g=(0,n.useMemo)(()=>s({orientation:u,className:a}),[u,a]);return{Component:d,getDividerProps:(0,n.useCallback)((e={})=>({className:g,role:"separator","data-orientation":u,...h,...c,...e}),[g,u,h,c])}}({...e});return(0,o.jsx)(l,{ref:t,...r()})});a.displayName="HeroUI.Divider";var u=a},26812:(e,t,l)=>{l.d(t,{p:()=>a});class i{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;let l=this.keyMap.get(e);return l&&null!=(t=l.prevKey)?t:null}getKeyAfter(e){var t;let l=this.keyMap.get(e);return l&&null!=(t=l.nextKey)?t:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!=(t=this.keyMap.get(e))?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){var t;this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let l=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)l(t)};for(let t of e)l(t);let i=null,s=0,n=0;for(let[e,t]of this.keyMap)i?(i.nextKey=e,t.prevKey=i.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=s++),("section"===t.type||"item"===t.type)&&n++,(i=t).nextKey=void 0;this._size=n,this.lastKey=null!=(t=null==i?void 0:i.key)?t:null}}var s=l(1409),n=l(34534),r=l(76704),o=l(9599);function a(e){let{filter:t,layoutDelegate:l}=e,a=(0,s.R)(e),u=(0,r.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),c=(0,r.useCallback)(e=>new i(t?t(e):e),[t]),d=(0,r.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),h=(0,o.G)(e,c,d),g=(0,r.useMemo)(()=>new(0,n.Y)(h,a,{layoutDelegate:l}),[h,a,l]);return function(e,t){let l=(0,r.useRef)(null);(0,r.useEffect)(()=>
4{if(null!=t.focusedKey&&!e.getItem(t.focusedKey)&&l.current){var i,s,n,r,o,a,u;let c=l.current.getItem(t.focusedKey),d=[...l.current.getKeys()].map(e=>{let t=l.current.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),h=[...e.getKeys()].map(t=>{let l=e.getItem(t);return(null==l?void 0:l.type)==="item"?l:null}).filter(e=>null!==e),g=(null!=(i=null==d?void 0:d.length)?i:0)-(null!=(s=null==h?void 0:h.length)?s:0),f=Math.min(g>1?Math.max((null!=(n=null==c?void 0:c.index)?n:0)-g+1,0):null!=(r=null==c?void 0:c.index)?r:0,(null!=(o=null==h?void 0:h.length)?o:0)-1),p=null,v=!1;for(;f>=0;){if(!t.isDisabled(h[f].key)){p=h[f];break}f<h.length-1&&!v?f++:(v=!0,f>(null!=(a=null==c?void 0:c.index)?a:0)&&(f=null!=(u=null==c?void 0:c.index)?u:0),f--)}t.setFocusedKey(p?p.key:null)}l.current=e},[e,t])}(h,g),{collection:h,disabledKeys:u,selectionManager:g}}},27091:(e,t,l)=>{l.d(t,{Zr:()=>s});let i=e=>t=>{try{let l=e(t);if(l instanceof Promise)return l;return{then:e=>i(e)(l),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>i(t)(e)}}},s=(e,t)=>(l,s,n)=>{let r,o={storage:function(e,t){let l;try{l=e()}catch(e){return}return{getItem:e=>{var t;let i=e=>null===e?null:JSON.parse(e,void 0),s=null!=(t=l.getItem(e))?t:null;return s instanceof Promise?s.then(i):i(s)},setItem:(e,t)=>l.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>l.removeItem(e)}}(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1,u=0,c=new Set,d=new Set,h=o.storage;if(!h)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),l(...e)},s,n);let g=()=>{let e=o.partialize({...s()});return h.setItem(o.name,{state:e,version:o.version})},f=n.setState;n.setState=(e,t)=>(f(e,t),g());let p=e((...e)=>(l(...e),g()),s,n);n.getInitialState=()=>p;let v=()=>{var e,t;if(!h)return;let n=++u;a=!1,c.forEach(e=>{var t;return e(null!=(t=s())?t:p)});let f=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=s())?e:p))||void 0;return i(h.getItem.bind(h))(o.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===o.version)return[!1,e.state];else{if(o.migrate){let t=o.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;if(n!==u)return;let[i,a]=e;if(l(r=o.merge(a,null!=(t=s())?t:p),!0),i)return g()}).then(()=>{n===u&&(null==f||f(s(),void 0),r=s(),a=!0,d.forEach(e=>e(r)))}).catch(e=>{n===u&&(null==f||f(void 0,e))})};return n.persist={setOptions:e=>{o={...o,...e},e.storage&&(h=e.storage)},clearStorage:()=>{null==h||h.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>v(),hasHydrated:()=>a,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},o.skipHydration||v(),r||p}},28393:(e,t,l)=>{l.d(t,{n:()=>n});var i=l(48824),s=l(61383);class n{isDisabled(e){var t,l;return"all"===this.disabledBehavior&&((null==(t=e.props)?void 0:t.isDisabled)||this.disabledKeys.has(e.key))&&(null==(l=e.props)?void 0:l.disabledBehavior)!=="selection"}findNextNonDisabled(e,t){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e;for(;null!=i;){let e=this.collection.getItem(i);if((null==e?void 0:e.type)==="item"&&(l||!this.isDisabled(e)))return i;i=t(i)}return null}getNextKey(e,t){let l=e;return l=this.collection.getKeyAfter(l),this.findNextNonDisabled(l,e=>this.collection.getKeyAfter(e),null==t?void 0:t.includeDisabled)}getPreviousKey(e,t){let l=e;return l=this.collection.getKeyBefore(l),this.findNextNonDisabled(l,e=>this.collection.getKeyBefore(e),null==t?void 0:t.includeDisabled)}findKey(e,t,l){let i=e,s=this.layoutDelegate.getItemRect(i);if(!s||null==i)return null;let n=s;do{if(null==(i=t(i)))break;s=this.layoutDelegate.getItemRect(i)}while(s&&l(n,s)&&null!=i);return i}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e,t){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getNextKey(e,t),this.isSameRow):this.getNextKey(e,t)}
4getKeyAbove(e,t){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getPreviousKey(e,t),this.isSameRow):this.getPreviousKey(e,t)}getNextColumn(e,t,l){return t?this.getPreviousKey(e,l):this.getNextKey(e,l)}getKeyRightOf(e,t){let l="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";if(this.layoutDelegate[l])return e=this.layoutDelegate[l](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[l](e),null==t?void 0:t.includeDisabled);if("grid"===this.layout)if("vertical"===this.orientation)return this.getNextColumn(e,"rtl"===this.direction,t);else return this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction,t),this.isSameColumn);return"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction,t):null}getKeyLeftOf(e,t){let l="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";if(this.layoutDelegate[l])return e=this.layoutDelegate[l](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[l](e),null==t?void 0:t.includeDisabled);if("grid"===this.layout)if("vertical"===this.orientation)return this.getNextColumn(e,"ltr"===this.direction,t);else return this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction,t),this.isSameColumn);return"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction,t):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,l=this.layoutDelegate.getItemRect(e);if(!l)return null;if(t&&!(0,s.o)(t))return this.getFirstKey();let i=e;if("horizontal"===this.orientation){let e=Math.max(0,l.x+l.width-this.layoutDelegate.getVisibleRect().width);for(;l&&l.x>e&&null!=i;)l=null==(i=this.getKeyAbove(i))?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.max(0,l.y+l.height-this.layoutDelegate.getVisibleRect().height);for(;l&&l.y>e&&null!=i;)l=null==(i=this.getKeyAbove(i))?null:this.layoutDelegate.getItemRect(i)}return null!=i?i:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,l=this.layoutDelegate.getItemRect(e);if(!l)return null;if(t&&!(0,s.o)(t))return this.getLastKey();let i=e;if("horizontal"===this.orientation){let e=Math.min(this.layoutDelegate.getContentSize().width,l.x-l.width+this.layoutDelegate.getVisibleRect().width);for(;l&&l.x<e&&null!=i;)l=null==(i=this.getKeyBelow(i))?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,l.y-l.height+this.layoutDelegate.getVisibleRect().height);for(;l&&l.y<e&&null!=i;)l=null==(i=this.getKeyBelow(i))?null:this.layoutDelegate.getItemRect(i)}return null!=i?i:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let l=this.collection,i=t||this.getFirstKey();for(;null!=i;){let t=l.getItem(i);if(!t)break;let s=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(s,e))return i;i=this.getNextKey(i)}return null}constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new(0,i.K)(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new(0,i.K)(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}},45738:(e,t,l)=>{l.d(t,{y:()=>o});var i=l(34510),s=l(28393),n=l(74012),r=l(76704);function o(e){let{selectionManager:t,collection:l,disabledKeys:o,ref:a,keyboardDelegate:u,layoutDelegate:c,orientation:d}=e,h=(0,n.Q)({usage:"search",sensitivity:"base"}),g=t.disabledBehavior,f=(0,r.useMemo)(()=>u||new(0,s.n)({collection:l,disabledKeys:o,disabledBehavior:g,ref:a,collator:h,layoutDelegate:c,orientation:d}),[u,c,l,o,a,h,g,d]),{collectionProps:p}=(0,i.y)({...e,ref:a,selectionManager:t,keyboardDelegate:f});return{listProps:p}}},46060:(e,t,l)=>{l.d(t,{D:()=>s});var i=l(5740),s=({strokeWidth:e=1.5,...t})=>
4(0,i.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:(0,i.jsx)("path",{d:"m6 9 6 6 6-6"})})},48124:(e,t,l)=>{l.d(t,{n:()=>n});var i=l(1029),s=l(76704);function n(e){let t=(0,i.o)(),l=null==t?void 0:t.labelPlacement;return(0,s.useMemo)(()=>{var t,i;let s=null!=(i=null!=(t=e.labelPlacement)?t:l)?i:"inside";return"inside"!==s||e.label?s:"outside"},[e.labelPlacement,l,e.label])}},48824:(e,t,l)=>{l.d(t,{K:()=>s});var i=l(9720);class s{getItemRect(e){let t=this.ref.current;if(!t)return null;let l=null!=e?(0,i.au)(this.ref,e):null;if(!l)return null;let s=t.getBoundingClientRect(),n=l.getBoundingClientRect();return{x:n.left-s.left-t.clientLeft+t.scrollLeft,y:n.top-s.top-t.clientTop+t.scrollTop,width:n.width,height:n.height}}getContentSize(){var e,t;let l=this.ref.current;return{width:null!=(e=null==l?void 0:l.scrollWidth)?e:0,height:null!=(t=null==l?void 0:l.scrollHeight)?t:0}}getVisibleRect(){var e,t,l,i;let s=this.ref.current;return{x:null!=(e=null==s?void 0:s.scrollLeft)?e:0,y:null!=(t=null==s?void 0:s.scrollTop)?t:0,width:null!=(l=null==s?void 0:s.clientWidth)?l:0,height:null!=(i=null==s?void 0:s.clientHeight)?i:0}}constructor(e){this.ref=e}}},53772:(e,t,l)=>{l.d(t,{j:()=>y});var i=l(96961),s=l(76704),n=l(45322),r=l(55105),o=l(61565),a=l(42987),u=l(10998),c=l(12345),d=l(28678),h=l(38557),g=l(81648),f=l(5740),p=()=>Promise.all([l.e(6857),l.e(788)]).then(l.bind(l,90788)).then(e=>e.default),v=(0,o.Rf)((e,t)=>{let{children:l,motionProps:i,placement:s,disableAnimation:n,style:r={},transformOrigin:o={},...g}=e,v=r;return void 0!==o.originX||void 0!==o.originY?v={...v,transformOrigin:o}:s&&(v={...v,...(0,d.kn)("center"===s?"top":s)}),n?(0,f.jsx)("div",{...g,ref:t,children:l}):(0,f.jsx)(a.F,{features:p,children:(0,f.jsx)(u.m.div,{ref:t,animate:"enter",exit:"exit",initial:"initial",style:v,variants:h.zF.scaleSpringOpacity,...(0,c.v6)(g,i),children:l})})});v.displayName="HeroUI.FreeSoloPopoverWrapper";var m=(0,o.Rf)((e,t)=>{let{children:l,transformOrigin:o,disableDialogFocus:c=!1,...d}=e,{Component:m,state:y,placement:b,backdrop:x,portalContainer:S,disableAnimation:w,motionProps:E,isNonModal:M,getPopoverProps:C,getBackdropProps:k,getDialogProps:P,getContentProps:O}=(0,i.f)({...d,ref:t}),I=s.useRef(null),{dialogProps:z,titleProps:N}=(0,g.s)({},I),K=P({...!c&&{ref:I},...z}),D=s.useMemo(()=>"transparent"===x?null:w?(0,f.jsx)("div",{...k()}):(0,f.jsx)(a.F,{features:p,children:(0,f.jsx)(u.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:h.zF.fade,...k()})}),[x,w,k]);return(0,f.jsxs)(n.hJ,{portalContainer:S,children:[!M&&D,(0,f.jsx)(m,{...C(),children:(0,f.jsxs)(v,{disableAnimation:w,motionProps:E,placement:b,tabIndex:-1,transformOrigin:o,...K,children:[!M&&(0,f.jsx)(r.R,{onDismiss:y.close}),(0,f.jsx)("div",{...O(),children:"function"==typeof l?l(N):l}),(0,f.jsx)(r.R,{onDismiss:y.close})]})})]})});m.displayName="HeroUI.FreeSoloPopover";var y=m},55665:(e,t,l)=>{l.d(t,{H:()=>c});var i=l(61565),s=l(95238),n=l(10133),r=l(12345),o=l(76704),a=l(5740),u=(0,i.Rf)((e,t)=>{let{Component:l,children:u,getBaseProps:c}=function(e){var t;let[l,a]=(0,i.rE)(e,s.Q.variantKeys),{ref:u,as:c,children:d,className:h,style:g,size:f=40,offset:p=0,visibility:v="auto",isEnabled:m=!0,onVisibilityChange:y,...b}=l,x=(0,n.zD)(u);!function(e={}){let{domRef:t,isEnabled:l=!0,overflowCheck:i="vertical",visibility:s="auto",offset:n=0,onVisibilityChange:a,updateDeps:u=[]}=e,c=(0,o.useRef)(s);(0,o.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e||!l)return;let o=(t,l,i,n,o)=>{if("auto"===s){let t=`${n}${(0,r.ZH)(o)}Scroll`;l&&i?(e.dataset[t]="true",e.removeAttribute(`data-${n}-scroll`),e.removeAttribute(`data-${o}-scroll`)):(e.dataset[`${n}Scroll`]=l.toString(),e.dataset[`${o}Scroll`]=i.toString(),e.removeAttribute(`data-${n}-${o}-scroll`))}else{let e=l&&i?"both":l?n:i?o:"none";e!==c.current&&(null==a||a(e),c.current=e)}},u=()=>{var t,l;let s=e.querySelector('ul[data-slot="list"]'),r=+(null!=(t=null==s?void 0:s.getAttribute("data-virtual-scroll-height"))?t:e.scrollHeight),a=+(null!=(l=null==s?void 0:s.getAttribute("data-virtual-scroll-top"))?l:e.scrollTop);for(let{type:t,prefix:l,suffix:s}of[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}])if(i===t||"both"===i){let i="vertical"===t?a>n:e.scrollLeft>n,u="vertical"===t?a+e.clientHeight+n<r:e.scrollLeft+e.clientWidth+n<e.scrollWidth;o(t,i,u,l,s)}},d=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(t=>{e.removeAttribute(`data-${t}-scroll`)})};return u(),e.addEventListener("scroll",u,!0),"auto"!==s&&(d(),"both"===s?(e.dataset.topBottomScroll=String("vertical"===i),e.dataset.leftRightScroll=String("horizontal"===i)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(t=>{e.dataset[`${t}Scroll`]=String(s===t)}))),()=>{e.removeEventListener("scroll",u,!0),d()}},[...u,l,s,i,a,t])}({domRef:x,offset:p,visibility:v,isEnabled:m,onVisibilityChange:y,updateDeps:[d],overflowCheck:null!=(t=e.orientation)?t:"vertical"});let S=(0,o.useMemo)(()=>(0,s.Q)({...a,className:h}),[(0,r.t6)(a),h]);return{Component:c||"div",styles:S,domRef:x,children:d,getBaseProps:function(){var t;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:x,className:S,"data-orientation":null!=(t=e.orientation)?t:"vertical",style:{"--scroll-shadow-size":"".concat(f,"px"),...g,...l.style},...b,...l}}}}({...e,ref:t});return(0,a.jsx)(l,{...c(),children:u})});u.displayName="HeroUI.ScrollShadow";var c=u},61362:(e,t,l)=>{l.d(t,{M:()=>n});var i=l(40467),s=l(14338);function n(e){let{id:t,label:l,"aria-labelledby":n,"aria-label":r,labelElementType:o="label"}=e;t=(0,i.Bi)(t);let a=(0,i.Bi)(),u={};return l&&(n=n?"".concat(a," ").concat(n):a,u={id:a,htmlFor:"label"===o?t:void 0}),{labelProps:u,fieldProps:(0,s.b)({id:t,"aria-label":r,"aria-labelledby":n})}}},67862:(e,t,l)=>{l.d(t,{CC:()=>n});var i=l(76704),s=Symbol("default");function n(e,t){let l=(0,i.useContext)(e);if(null===t)return null;if(l&&"object"==typeof l&&"slots"in l&&l.slots){let e=new Intl.ListFormat().format(Object.keys(l.slots).map(e=>'"'.concat(e,'"')));if(!t&&!l.slots[s])throw Error("A slot prop is required. Valid slot names are ".concat(e,"."));let i=t||s;if(!l.slots[i])throw Error('Invalid slot "'.concat(t,'". Valid slot names are ').concat(e,"."));return l.slots[i]}return l}},74012:(e,t,l)=>{l.d(t,{Q:()=>n});var i=l(25943);let s=new Map;function n(e){let{locale:t}=(0,i.Y)(),l=t+(e?Object.entries(e).sort((e,t)=>
4e[0]<t[0]?-1:1).join():"");if(s.has(l))return s.get(l);let n=new Intl.Collator(t,e);return s.set(l,n),n}},87925:(e,t,l)=>{l.d(t,{o:()=>r});var i=l(76704);let s=new WeakMap;var n=l(40467);function r(e,t,l){let r,{type:o}=e,{isOpen:a}=t;(0,i.useEffect)(()=>{l&&l.current&&s.set(l.current,t.close)}),"menu"===o?r=!0:"listbox"===o&&(r="listbox");let u=(0,n.Bi)();return{triggerProps:{"aria-haspopup":r,"aria-expanded":a,"aria-controls":a?u:void 0,onPress:t.toggle},overlayProps:{id:u}}}},89730:(e,t,l)=>{l.d(t,{E:()=>s});var i=l(76704);let s=l(10408).S?i.useLayoutEffect:i.useEffect},94883:(e,t,l)=>{l.d(t,{v:()=>a,P:()=>r});var i=l(76704);let s=e=>{let t,l=new Set,i=(e,i)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=i?i:"object"!=typeof s||null===s)?s:Object.assign({},t,s),l.forEach(l=>l(t,e))}},s=()=>t,n={setState:i,getState:s,getInitialState:()=>r,subscribe:e=>(l.add(e),()=>l.delete(e))},r=t=e(i,s,n);return n},n=e=>e;function r(e,t=n){let l=i.useSyncExternalStore(e.subscribe,i.useCallback(()=>t(e.getState()),[e,t]),i.useCallback(()=>t(e.getInitialState()),[e,t]));return i.useDebugValue(l),l}let o=e=>{let t=(e=>e?s(e):s)(e),l=e=>r(t,e);return Object.assign(l,t),l},a=e=>e?o(e):o},95132:(e,t,l)=>{l.d(t,{K:()=>A});let i=new WeakMap;var s=l(35496),n=l(40467),r=l(4255),o=l(45253),a=l(61362),u=l(45738),c=l(1029),d=l(43059),h=l(26812),g=l(10133),f=l(63498),p=l(76704),v=l(55371),m=l(5740);function y(e){let{isSelected:t,disableAnimation:l,...i}=e;return(0,m.jsx)("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...i,children:(0,m.jsx)("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:l?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var b=l(61565),x=l(9422),S=l(12345),w=l(97629),E=l(73017),M=l(26436),C=l(5396),k=l(17666),P=l(31744),O=l(95511),I=l(67980),z=l(73445),N=e=>{let{Component:t,rendered:l,description:o,isSelectable:a,isSelected:u,isDisabled:h,selectedIcon:g,startContent:N,endContent:K,hideSelectedIcon:D,disableAnimation:T,getItemProps:R,getLabelProps:j,getWrapperProps:A,getDescriptionProps:F,getSelectedIconProps:B}=function(e){var t,l;let o=(0,c.o)(),[a,u]=(0,b.rE)(e,d.j$.variantKeys),{as:h,item:g,state:m,description:y,startContent:N,endContent:K,isVirtualized:D,selectedIcon:T,className:R,classNames:j,autoFocus:A,onPress:F,onPressUp:B,onPressStart:L,onPressEnd:_,onPressChange:W,onClick:H,shouldHighlightOnFocus:V,hideSelectedIcon:U=!1,isReadOnly:$=!1,...Q}=a,q=null!=(l=null!=(t=e.disableAnimation)?t:null==o?void 0:o.disableAnimation)&&l,Y=(0,p.useRef)(null),J=h||(e.href?"a":"li"),G="string"==typeof J,{rendered:X,key:Z}=g,ee=m.disabledKeys.has(Z)||e.isDisabled,et="none"!==m.selectionManager.selectionMode,el=(0,z.a)(),{pressProps:ei,isPressed:es}=(0,I.d)({ref:Y,isDisabled:ee,onClick:H,onPress:F,onPressUp:B,onPressStart:L,onPressEnd:_,onPressChange:W}),{isHovered:en,hoverProps:er}=(0,k.M)({isDisabled:ee}),{isFocusVisible:eo,focusProps:ea}=(0,x.o)({autoFocus:A}),{isFocused:eu,isSelected:ec,optionProps:ed,labelProps:eh,descriptionProps:eg}=function(e,t,l){var o,a,u,c,d,h,g,f;let{key:p}=e,v=i.get(t),m=null!=(u=e.isDisabled)?u:t.selectionManager.isDisabled(p),y=null!=(c=e.isSelected)?c:t.selectionManager.isSelected(p),b=null!=(d=e.shouldSelectOnPressUp)?d:null==v?void 0:v.shouldSelectOnPressUp,x=null!=(h=e.shouldFocusOnHover)?h:null==v?void 0:v.shouldFocusOnHover,S=null!=(g=e.shouldUseVirtualFocus)?g:null==v?void 0:v.shouldUseVirtualFocus,I=null!=(f=e.isVirtualized)?f:null==v?void 0:v.isVirtualized,z=(0,n.X1)(),N=(0,n.X1)(),K={role:"option","aria-disabled":m||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?y:void 0};(0,w.cX)()&&(0,w.Tc)()||(K["aria-label"]=e["aria-label"],K["aria-labelledby"]=z,K["aria-describedby"]=N);let D=t.collection.getItem(p);if(I){let e=Number(null==D?void 0:D.index);K["aria-posinset"]=Number.isNaN(e)?void 0:e+1,K["aria-setsize"]=(0,C.v)(t.collection)}let T=(null==v?void 0:v.onAction)?()=>{var e;return null==v||null==(e=v.onAction)?void 0:e.call(v,p)}:void 0,R=function(e,t){let l=i.get(e);if(!l)throw Error("Unknown list");return`${l.id}-option-${"string"==typeof t?t.replace(/\s*/g,""):""+t}`}(t,p),{itemProps:j,isPressed:A,isFocused:F,hasAction:B,allowsSelection:L}=(0,O.p)({selectionManager:t.selectionManager,key:p,ref:l,shouldSelectOnPressUp:b,allowsDifferentPressOrigin:b&&x,isVirtualized:I,shouldUseVirtualFocus:S,isDisabled:m,onAction:T||(null==D||null==(o=D.props)?void 0:o.onAction)?(0,E.c)(null==D||null==(a=D.props)?void 0:a.onAction,T):void 0,linkBehavior:null==v?void 0:v.linkBehavior,UNSTABLE_itemBehavior:null==v?void 0:v.UNSTABLE_itemBehavior,id:R}),{hoverProps:_}=(0,k.M)({isDisabled:m||!x,onHoverStart(){(0,P.pP)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(p))}}),W=(0,s.$)(null==D?void 0:D.props);delete W.id;let H=(0,M._h)(null==D?void 0:D.props);return{optionProps:{...K,...(0,r.v)(W,j,_,H),id:R},labelProps:{id:z},descriptionProps:{id:N},isFocused:F,isFocusVisible:F&&t.selectionManager.isFocused&&(0,P.pP)(),isSelected:y,isDisabled:m,isPressed:A,allowsSelection:L,hasAction:B}}({key:Z,isDisabled:ee,"aria-label":a["aria-label"],isVirtualized:D},m,Y),ef=ed,ep=(0,p.useMemo)(()=>(0,d.j$)({...u,isDisabled:ee,disableAnimation:q,hasTitleTextChild:"string"==typeof X,hasDescriptionTextChild:"string"==typeof y}),[(0,S.t6)(u),ee,q,X,y]),ev=(0,v.cn)(null==j?void 0:j.base,R);$&&(ef=(0,S.GU)(ef));let em=V&&eu||(el?en||es:en||eu&&!eo),ey=e=>{let t=e.target;(t.closest("[data-slot='startContent']")||t.closest("[data-slot='endContent']"))&&e.stopPropagation()},eb=(0,p.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"aria-hidden":(0,S.sE)(!0),"data-disabled":(0,S.sE)(ee),className:ep.selectedIcon({class:null==j?void 0:j.selectedIcon}),...e}},[ee,ep,j]);return{Component:J,domRef:Y,slots:ep,classNames:j,isSelectable:et,isSelected:ec,isDisabled:ee,rendered:X,description:y,startContent:N,endContent:K,selectedIcon:T,hideSelectedIcon:U,disableAnimation:q,getItemProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:Y,onFocusCapture:ey,...(0,S.v6)(ef,$?{}:(0,S.v6)(ea,ei),er,(0,f.$)(Q,{enabled:G}),e),"data-selectable":(0,S.sE)(et),"data-focus":(0,S.sE)(eu),"data-hover":(0,S.sE)(em),"data-disabled":(0,S.sE)(ee),"data-selected":(0,S.sE)(ec),"data-pressed":(0,S.sE)(es),"data-focus-visible":(0,S.sE)(eo),className:ep.base({class:(0,v.cn)(ev,e.className)})}},getLabelProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,S.v6)(eh,e),"data-label":(0,S.sE)(!0),className:ep.title({class:null==j?void 0:j.title})}},getWrapperProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,S.v6)(e),className:ep.wrapper({class:null==j?void 0:j.wrapper})}},getDescriptionProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,S.v6)(eg,e),className:ep.description({class:null==j?void 0:j.description})}},getSelectedIconProps:eb}}(e),L=(0,p.useMemo)(()=>{let e=(0,m.jsx)(y,{disableAnimation:T,isSelected:u});return"function"==typeof g?g({icon:e,isSelected:u,isDisabled:h}):g||e},[g,u,h,T]);return(0,m.jsxs)(t,{...R(),children:[N&&(0,m.jsx)("span",{"data-slot":"startContent",children:N}),o?(0,m.jsxs)("div",{...A(),children:[(0,m.jsx)("span",{...j(),children:l}),(0,m.jsx)("span",{...F(),children:o})]}):(0,m.jsx)("span",{...j(),children:l}),a&&!D&&(0,m.jsx)("span",{...B(),children:L}),K&&(0,m.jsx)("span",{"data-slot":"endContent",children:K})]})};N.displayName="HeroUI.ListboxItem";var K=l(25151),D=(0,b.Rf)((e,t)=>{let{item:l,state:i,as:s,variant:r,color:o,disableAnimation:a,className:u,classNames:c,hideSelectedIcon:h,showDivider:g=!1,dividerProps:f={},itemClasses:y,title:b,items:x,...w}=e,E=(0,p.useMemo)(()=>(0,d.Dt)(),[]),M=(0,v.cn)(null==c?void 0:c.base,u),C=(0,v.cn)(null==c?void 0:c.divider,null==f?void 0:f.className),{itemProps:k,headingProps:P,groupProps:O}=function(e){let{heading:t,"aria-label":l}=e,i=(0,n.Bi)();return{itemProps:{role:"presentation"},headingProps:t?{id:i,role:"presentation",onMouseDown:e=>{e.preventDefault()}}:{},groupProps:{role:"group","aria-label":l,"aria-labelledby":t?i:void 0}}}({heading:l.rendered,"aria-label":l["aria-label"]});return(0,m.jsxs)(s||"li",{"data-slot":"base",...(0,S.v6)(k,w),className:E.base({class:M}),children:[l.rendered&&(0,m.jsx)("span",{...P,className:E.heading({class:null==c?void 0:c.heading}),"data-slot":"heading",children:l.rendered}),(0,m.jsxs)("ul",{...O,className:E.group({class:null==c?void 0:c.group}),"data-has-title":!!l.rendered,"data-slot":"group",children:[[...l.childNodes].map(e=>{let{key:t,props:l}=e,s=(0,m.jsx)(N,{classNames:y,color:o,disableAnimation:a,hideSelectedIcon:h,item:e,state:i,variant:r,...l},t);return e.wrapper&&(s=e.wrapper(s)),s}),g&&(0,m.jsx)(K.y,{as:"li",className:E.divider({class:C}),...f})]})]},l.key)});D.displayName="HeroUI.ListboxSection";var T=l(5798),R=l(95238),j=e=>{var t;let{Component:l,state:i,color:s,variant:n,itemClasses:r,getBaseProps:o,topContent:a,bottomContent:u,hideEmptyContent:c,hideSelectedIcon:d,shouldHighlightOnFocus:h,disableAnimation:v,getEmptyContentProps:y,getListProps:x,scrollShadowProps:w}=e,{virtualization:E}=e;if(!E||!(0,S.Im)(E)&&!E.maxListboxHeight&&!E.itemHeight)throw Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");let{maxListboxHeight:M,itemHeight:C}=E,k=Math.min(M,C*i.collection.size),P=(0,p.useRef)(null),O=(0,p.useMemo)(()=>((e,t)=>{let l=[];
4for(let i of e)"section"===i.type?l.push(([...i.childNodes].length+1)*t):l.push(t);return l})([...i.collection],C),[i.collection,C]),I=(0,T.Te)({count:[...i.collection].length,getScrollElement:()=>P.current,estimateSize:e=>O[e]}),z=I.getVirtualItems(),K=I.getTotalSize(),{getBaseProps:j}=function(e){var t;let[l,i]=(0,b.rE)(e,R.Q.variantKeys),{ref:s,as:n,children:r,className:o,style:a,size:u=40,offset:c=0,visibility:d="auto",isEnabled:h=!0,onVisibilityChange:f,...v}=l,m=(0,g.zD)(s);!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{domRef:t,isEnabled:l=!0,overflowCheck:i="vertical",visibility:s="auto",offset:n=0,onVisibilityChange:r,updateDeps:o=[]}=e,a=(0,p.useRef)(s);(0,p.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e||!l)return;let o=(t,l,i,n,o)=>{if("auto"===s){let t="".concat(n).concat((0,S.ZH)(o),"Scroll");l&&i?(e.dataset[t]="true",e.removeAttribute("data-".concat(n,"-scroll")),e.removeAttribute("data-".concat(o,"-scroll"))):(e.dataset["".concat(n,"Scroll")]=l.toString(),e.dataset["".concat(o,"Scroll")]=i.toString(),e.removeAttribute("data-".concat(n,"-").concat(o,"-scroll")))}else{let e=l&&i?"both":l?n:i?o:"none";e!==a.current&&(null==r||r(e),a.current=e)}},u=()=>{var t,l;let s=e.querySelector('ul[data-slot="list"]'),r=+(null!=(t=null==s?void 0:s.getAttribute("data-virtual-scroll-height"))?t:e.scrollHeight),a=+(null!=(l=null==s?void 0:s.getAttribute("data-virtual-scroll-top"))?l:e.scrollTop);for(let{type:t,prefix:l,suffix:s}of[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}])if(i===t||"both"===i){let i="vertical"===t?a>n:e.scrollLeft>n,u="vertical"===t?a+e.clientHeight+n<r:e.scrollLeft+e.clientWidth+n<e.scrollWidth;o(t,i,u,l,s)}},c=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(t=>{e.removeAttribute("data-".concat(t,"-scroll"))})};return u(),e.addEventListener("scroll",u,!0),"auto"!==s&&(c(),"both"===s?(e.dataset.topBottomScroll=String("vertical"===i),e.dataset.leftRightScroll=String("horizontal"===i)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(t=>{e.dataset["".concat(t,"Scroll")]=String(s===t)}))),()=>{e.removeEventListener("scroll",u,!0),c()}},[...o,l,s,i,r,t])}({domRef:m,offset:c,visibility:d,isEnabled:h,onVisibilityChange:f,updateDeps:[r],overflowCheck:null!=(t=e.orientation)?t:"vertical"});let y=(0,p.useMemo)(()=>(0,R.Q)({...i,className:o}),[(0,S.t6)(i),o]);return{Component:n||"div",styles:y,domRef:m,children:r,getBaseProps:function(){var t;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:m,className:y,"data-orientation":null!=(t=e.orientation)?t:"vertical",style:{"--scroll-shadow-size":"".concat(u,"px"),...a,...l.style},...v,...l}}}}({...w}),[A,F]=(0,p.useState)({isTop:!1,isBottom:!0,isMiddle:!1}),B=(0,m.jsxs)(l,{...x(),"data-virtual-scroll-height":K,"data-virtual-scroll-top":null==(t=null==P?void 0:P.current)?void 0:t.scrollTop,children:[!i.collection.size&&!c&&(0,m.jsx)("li",{children:(0,m.jsx)("div",{...y()})}),(0,m.jsx)("div",{...(0,f.$)(j()),ref:P,style:{height:M,overflow:"auto"},onScroll:e=>{F((e=>{if(!e||void 0===e.scrollTop||void 0===e.clientHeight||void 0===e.scrollHeight)return{isTop:!1,isBottom:!1,isMiddle:!1};let t=0===e.scrollTop,l=Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight;return{isTop:t,isBottom:l,isMiddle:!t&&!l}})(e.target))},children:k>0&&C>0&&(0,m.jsx)("div",{style:{height:"".concat(K,"px"),width:"100%",position:"relative"},children:z.map(e=>(e=>{var t;let l=[...i.collection][e.index];if(!l)return null;let o={color:s,item:l,state:i,variant:n,disableAnimation:v,hideSelectedIcon:d,...l.props},a={position:"absolute",top:0,left:0,width:"100%",height:"".concat(e.size,"px"),transform:"translateY(".concat(e.start,"px)")};if("section"===l.type)return(0,m.jsx)(D,{...o,itemClasses:r,style:{...a,...o.style}},l.key);let u=(0,m.jsx)(N,{...o,classNames:(0,S.v6)(r,null==(t=l.props)?void 0:t.classNames),shouldHighlightOnFocus:h,style:{...a,...o.style}},l.key);return l.wrapper&&(u=l.wrapper(u)),u})(e))})})]});return(0,m.jsxs)("div",{...o(),children:[a,B,u]})},A=(0,b.Rf)(function(e,t){let{isVirtualized:l,...y}=e,b=function(e){var t;let l=(0,c.o)(),{ref:m,as:y,state:b,variant:x,color:S,onAction:w,children:E,onSelectionChange:M,disableAnimation:C=null!=(t=null==l?void 0:l.disableAnimation)&&t,itemClasses:k,className:P,topContent:O,bottomContent:I,emptyContent:z="No items.",hideSelectedIcon:N=!1,hideEmptyContent:K=!1,shouldHighlightOnFocus:D=!1,classNames:T,...R}=e,j=y||"ul",A="string"==typeof j,F=(0,g.zD)(m),B=(0,h.p)({...e,children:E,onSelectionChange:M}),L=b||B,{listBoxProps:_}=function(e,t,l){let c=(0,s.$)(e,{labelable:!0}),d=e.selectionBehavior||"toggle",h=e.linkBehavior||("replace"===d?"action":"override");
4"toggle"===d&&"action"===h&&(h="override");let{listProps:g}=(0,u.y)({...e,ref:l,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:h}),{focusWithinProps:f}=(0,o.R)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),p=(0,n.Bi)(e.id);i.set(t,{id:p,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:h,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:v,fieldProps:m}=(0,a.M)({...e,id:p,labelElementType:"span"});return{labelProps:v,listBoxProps:(0,r.v)(c,f,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,r.v)(m,g)})}}({...e,onAction:w},L,F),W=(0,p.useMemo)(()=>(0,d.MK)(),[]),H=(0,v.cn)(null==T?void 0:T.base,P);return{Component:j,state:L,variant:x,color:S,slots:W,classNames:T,topContent:O,bottomContent:I,emptyContent:z,hideEmptyContent:K,shouldHighlightOnFocus:D,hideSelectedIcon:N,disableAnimation:C,className:P,itemClasses:k,getBaseProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:F,"data-slot":"base",className:W.base({class:H}),...(0,f.$)(R,{enabled:A}),...e}},getListProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"list",className:W.list({class:null==T?void 0:T.list}),..._,...e}},getEmptyContentProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"empty-content",children:z,className:W.emptyContent({class:null==T?void 0:T.emptyContent}),...e}}}}({...y,ref:t}),{Component:x,state:w,color:E,variant:M,itemClasses:C,getBaseProps:k,topContent:P,bottomContent:O,hideEmptyContent:I,hideSelectedIcon:z,shouldHighlightOnFocus:K,disableAnimation:T,getEmptyContentProps:R,getListProps:A}=b;if(l)return(0,m.jsx)(j,{...e,...b});let F=(0,m.jsxs)(x,{...A(),children:[!w.collection.size&&!I&&(0,m.jsx)("li",{children:(0,m.jsx)("div",{...R()})}),[...w.collection].map(e=>{var t;let l={color:E,item:e,state:w,variant:M,disableAnimation:T,hideSelectedIcon:z,...e.props};if("section"===e.type)return(0,m.jsx)(D,{...l,itemClasses:C},e.key);let i=(0,m.jsx)(N,{...l,classNames:(0,S.v6)(C,null==(t=e.props)?void 0:t.classNames),shouldHighlightOnFocus:K},e.key);return e.wrapper&&(i=e.wrapper(i)),i})]});return(0,m.jsxs)("div",{...k(),children:[P,F,O]})})},95238:(e,t,l)=>{l.d(t,{Q:()=>i});var i=(0,l(99604).tv)({base:[],variants:{orientation:{vertical:["overflow-y-auto","data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],horizontal:["overflow-x-auto","data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}})},96961:(e,t,l)=>{l.d(t,{f:()=>S});var i=l(28678),s=new WeakMap,n=[],r=l(38216),o=l(76704),a=l(12345),u=l(34899),c=l(9367),d=l(10133),h=l(21050),g=l(9422),f=l(58262),p=l(40467),v=l(59935),m=l(1029),y=l(61565),b=l(43059),x=l(55371);function S(e){var t,l,S;let w=(0,m.o)(),[E,M]=(0,y.rE)(e,b.oO.variantKeys),{as:C,ref:k,children:P,state:O,triggerRef:I,scrollRef:z,defaultOpen:N,onOpenChange:K,isOpen:D,isNonModal:T=!0,shouldFlip:R=!0,containerPadding:j=12,shouldBlockScroll:A=!1,isDismissable:F=!0,shouldCloseOnBlur:B,portalContainer:L,updatePositionDeps:_,dialogProps:W,placement:H="top",triggerType:V="dialog",showArrow:U=!1,offset:$=7,crossOffset:Q=0,boundaryElement:q,isKeyboardDismissDisabled:Y,shouldCloseOnInteractOutside:J,shouldCloseOnScroll:G,triggerAnchorPoint:X,motionProps:Z,className:ee,classNames:et,onClose:el,...ei}=E,es=(0,d.zD)(k),en=(0,o.useRef)(null),er=(0,o.useRef)(!1),eo=I||en,ea=null!=(l=null!=(t=e.disableAnimation)?t:null==w?void 0:w.disableAnimation)&&l,eu=(0,h.T)({isOpen:D,defaultOpen:N,onOpenChange:e=>{null==K||K(e),e||null==el||el()}}),ec=O||eu,{popoverProps:ed,underlayProps:eh,placement:eg}=function(e,t){let{groupRef:l,triggerRef:d,popoverRef:h,showArrow:g,offset:f=7,crossOffset:p=0,scrollRef:v,shouldFlip:m,boundaryElement:y,isDismissable:b=!0,shouldCloseOnBlur:x=!0,shouldCloseOnScroll:S=!0,placement:w="top",containerPadding:E,shouldCloseOnInteractOutside:M,isNonModal:C,isKeyboardDismissDisabled:k,updatePositionDeps:P=[],...O}=e,I=null==C||C,z="SubmenuTrigger"===O.trigger,{overlayProps:N,underlayProps:K}
4=(0,c.P)({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:x,isDismissable:b||z,isKeyboardDismissDisabled:k,shouldCloseOnInteractOutside:M||(e=>{var t;return!(null==(t=d.current)?void 0:t.contains(e))}),disableOutsideEvents:!I},h),{overlayProps:D,arrowProps:T,placement:R,updatePosition:j,triggerAnchorPoint:A}=(0,r.v)({...O,shouldFlip:m,crossOffset:p,targetRef:d,overlayRef:h,isOpen:t.isOpen,scrollRef:v,boundaryElement:y,containerPadding:E,placement:(0,i.VO)(w),offset:g?f+3:f,onClose:I&&!z&&S?t.close:()=>{}});return(0,u.U)(()=>{P.length&&j()},P),(0,o.useEffect)(()=>{var e,i;if(t.isOpen&&h.current)if(!I)return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,l=new Set(e),i=new Set,r=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(t);let t=e=>{if(l.has(e)||e.parentElement&&i.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of l)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),n=t(e);if(n===NodeFilter.FILTER_ACCEPT&&o(e),n!==NodeFilter.FILTER_REJECT){let e=s.nextNode();for(;null!=e;)o(e),e=s.nextNode()}},o=e=>{var t;let l=null!=(t=s.get(e))?t:0;("true"!==e.getAttribute("aria-hidden")||0!==l)&&(0===l&&e.setAttribute("aria-hidden","true"),i.add(e),s.set(e,l+1))};n.length&&n[n.length-1].disconnect(),r(t);let a=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...l,...i].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(l.delete(e),i.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?l.add(e):e instanceof Element&&r(e)}});a.observe(t,{childList:!0,subtree:!0});let u={visibleNodes:l,hiddenNodes:i,observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return n.push(u),()=>{for(let e of(a.disconnect(),i)){let t=s.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),s.delete(e)):s.set(e,t-1))}u===n[n.length-1]?(n.pop(),n.length&&n[n.length-1].observe()):n.splice(n.indexOf(u),1)}}([null!=(i=null==l?void 0:l.current)?i:h.current]);else{var r=null!=(e=null==l?void 0:l.current)?e:h.current;let t=n[n.length-1];return t&&!t.visibleNodes.has(r)?(t.visibleNodes.add(r),()=>{t.visibleNodes.delete(r)}):void 0}},[I,t.isOpen,h,l]),{popoverProps:(0,a.v6)(N,D),arrowProps:T,underlayProps:K,placement:R,triggerAnchorPoint:A}}({triggerRef:eo,isNonModal:T,popoverRef:es,placement:H,offset:$,scrollRef:z,isDismissable:F,shouldCloseOnBlur:B,boundaryElement:q,crossOffset:Q,shouldFlip:R,containerPadding:j,updatePositionDeps:_,isKeyboardDismissDisabled:Y,shouldCloseOnScroll:G,shouldCloseOnInteractOutside:J,triggerAnchorPoint:X},ec),ef=(0,o.useMemo)(()=>
4eg?(0,i.p8)(eg,H)?eg:H:null,[eg,H]),{triggerProps:ep}=function(e,t,l){let i,{type:s}=e,{isOpen:n}=t;(0,o.useEffect)(()=>{l&&l.current&&f.a.set(l.current,t.close)}),"menu"===s?i=!0:"listbox"===s&&(i="listbox");let r=(0,p.Bi)();return{triggerProps:{"aria-haspopup":i,"aria-expanded":n,"aria-controls":n?r:void 0,onPress:t.toggle},overlayProps:{id:r}}}({type:V},ec,eo),{isFocusVisible:ev,isFocused:em,focusProps:ey}=(0,g.o)(),eb=(0,o.useMemo)(()=>(0,b.oO)({...M}),[(0,a.t6)(M)]),ex=(0,x.cn)(null==et?void 0:et.base,ee),eS={"--trigger-anchor-point":X?"".concat(X.x,"px ").concat(X.y,"px"):void 0};(0,v.H)({isDisabled:!(A&&ec.isOpen)});let ew=(0,o.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"content","data-open":(0,a.sE)(ec.isOpen),"data-arrow":(0,a.sE)(U),"data-placement":eg?(0,i.Fh)(eg,H):void 0,className:eb.content({class:(0,x.cn)(null==et?void 0:et.content,e.className)})}},[eb,ec.isOpen,U,ef,H,et,eg]),eE=(0,o.useCallback)(t=>{var l;let i;return"touch"===t.pointerType&&((null==e?void 0:e.backdrop)==="blur"||(null==e?void 0:e.backdrop)==="opaque")?i=setTimeout(()=>{er.current=!0},100):er.current=!0,null==(l=ep.onPress)||l.call(ep,t),()=>{clearTimeout(i)}},[null==ep?void 0:ep.onPress]),eM=(0,o.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{isDisabled:l,...i}=e;return{"data-slot":"trigger",...(0,a.v6)({"aria-haspopup":"dialog"},ep,i),onPress:eE,isDisabled:l,className:eb.trigger({class:(0,x.cn)(null==et?void 0:et.trigger,e.className),isTriggerDisabled:l}),ref:(0,a.Px)(t,eo)}},[ec,ep,eE,eo]),eC=(0,o.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"backdrop",className:eb.backdrop({class:null==et?void 0:et.backdrop}),onClick:e=>{if(!er.current)return void e.preventDefault();ec.close(),er.current=!1},...eh,...e}},[eb,ec.isOpen,et,eh]);return{state:ec,Component:C||"div",children:P,classNames:et,showArrow:U,triggerRef:eo,placement:ef,isNonModal:T,popoverRef:es,portalContainer:L,isOpen:ec.isOpen,onClose:ec.close,disableAnimation:ea,shouldBlockScroll:A,backdrop:null!=(S=e.backdrop)?S:"transparent",motionProps:Z,getBackdropProps:eC,getPopoverProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:es,...(0,a.v6)(ed,ei,e),style:(0,a.v6)(ed.style,ei.style,e.style)}},getTriggerProps:eM,getDialogProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"base","data-open":(0,a.sE)(ec.isOpen),"data-focus":(0,a.sE)(em),"data-arrow":(0,a.sE)(U),"data-focus-visible":(0,a.sE)(ev),"data-placement":eg?(0,i.Fh)(eg,H):void 0,...(0,a.v6)(ey,W,e),className:eb.base({class:(0,x.cn)(ex)}),style:{outline:"none",...eS}}},getContentProps:ew}}}}]);

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.