@workday/canvas-kit-mcp 15.0.1 → 15.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -293,7 +293,7 @@ ${s}
293
293
  color: hsl(${Math.max(0,Math.min(120-120*I,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(u=n==null?void 0:n.onChange)==null||u.call(n,r),r}return i.updateDeps=o=>{a=o},i}function wN(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Iee=(e,t)=>Math.abs(e-t)<=1,Tee=(e,t,n)=>{let a;return function(...r){e.clearTimeout(a),a=e.setTimeout(()=>t.apply(this,r),n)}},kN=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},xee=e=>e,Ree=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),a=[];for(let r=t;r<=n;r++)a.push(r);return a},Aee=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;const r=o=>{const{width:s,height:l}=o;t({width:Math.round(s),height:Math.round(l)})};if(r(kN(n)),!a.ResizeObserver)return()=>{};const i=new a.ResizeObserver(o=>{const s=()=>{const l=o[0];if(l!=null&&l.borderBoxSize){const u=l.borderBoxSize[0];if(u){r({width:u.inlineSize,height:u.blockSize});return}}r(kN(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},IN={passive:!0},TN=typeof window>"u"?!0:"onscrollend"in window,Nee=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;let r=0;const i=e.options.useScrollendEvent&&TN?()=>{}:Tee(a,()=>{t(r,!1)},e.options.isScrollingResetDelay),o=c=>()=>{const{horizontal:d,isRtl:p}=e.options;r=d?n.scrollLeft*(p&&-1||1):n.scrollTop,i(),t(r,c)},s=o(!0),l=o(!1);l(),n.addEventListener("scroll",s,IN);const u=e.options.useScrollendEvent&&TN;return u&&n.addEventListener("scrollend",l,IN),()=>{n.removeEventListener("scroll",s),u&&n.removeEventListener("scrollend",l)}},Cee=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const a=t.borderBoxSize[0];if(a)return Math.round(a[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Oee=(e,{adjustments:t=0,behavior:n},a)=>{var r,i;const o=e+t;(i=(r=a.scrollElement)==null?void 0:r.scrollTo)==null||i.call(r,{[a.options.horizontal?"left":"top"]:o,behavior:n})};class Lee{constructor(t){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 n=null;const a=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(r=>{r.forEach(i=>{const o=()=>{this._measureElement(i.target,i)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var r;(r=a())==null||r.disconnect(),n=null},observe:r=>{var i;return(i=a())==null?void 0:i.observe(r,{box:"border-box"})},unobserve:r=>{var i;return(i=a())==null?void 0:i.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([a,r])=>{typeof r>"u"&&delete n[a]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:xee,rangeExtractor:Ree,onChange:()=>{},measureElement:Cee,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var a,r;(r=(a=this.options).onChange)==null||r.call(a,this,n)},this.maybeNotify=za(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const a=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==a){if(this.cleanup(),!a){this.maybeNotify();return}this.scrollElement=a,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=i,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??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,a)=>{const r=new Map,i=new Map;for(let o=a-1;o>=0;o--){const s=n[o];if(r.has(s.lane))continue;const l=i.get(s.lane);if(l==null||s.end>l.end?i.set(s.lane,s):s.end<l.end&&r.set(s.lane,!0),r.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((o,s)=>o.end===s.end?o.index-s.index:o.end-s.end)[0]:void 0},this.getMeasurementOptions=za(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,a,r,i,o)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:a,scrollMargin:r,getItemKey:i,enabled:o}),{key:!1}),this.getMeasurements=za(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:a,scrollMargin:r,getItemKey:i,enabled:o},s)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;c<n;c++){const d=i(c),p=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),g=p?p.end+this.options.gap:a+r,v=s.get(d),y=typeof v=="number"?v:this.options.estimateSize(c),I=g+y,h=p?p.lane:c%this.options.lanes;u[c]={index:c,start:g,size:y,end:I,key:d,lane:h}}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=za(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,a,r,i)=>this.range=n.length>0&&a>0?$ee({measurements:n,outerSize:a,scrollOffset:r,lanes:i}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=za(()=>{let n=null,a=null;const r=this.calculateRange();return r&&(n=r.startIndex,a=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,a]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,a]},(n,a,r,i,o)=>i===null||o===null?[]:n({startIndex:i,endIndex:o,overscan:a,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const a=this.options.indexAttribute,r=n.getAttribute(a);return r?parseInt(r,10):(console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1)},this._measureElement=(n,a)=>{const r=this.indexFromElement(n),i=this.measurementsCache[r];if(!i)return;const o=i.key,s=this.elementsCache.get(o);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(o,n)),n.isConnected&&this.resizeItem(r,this.options.measureElement(n,a,this))},this.resizeItem=(n,a)=>{const r=this.measurementsCache[n];if(!r)return;const i=this.itemSizeCache.get(r.key)??r.size,o=a-i;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(r,o,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,a)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((a,r)=>{a.isConnected||(this.observer.unobserve(a),this.elementsCache.delete(r))});return}this._measureElement(n,void 0)},this.getVirtualItems=za(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,a)=>{const r=[];for(let i=0,o=n.length;i<o;i++){const s=n[i],l=a[s];r.push(l)}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const a=this.getMeasurements();if(a.length!==0)return wN(a[YU(0,a.length-1,r=>wN(a[r]).start,n)])},this.getOffsetForAlignment=(n,a,r=0)=>{const i=this.getSize(),o=this.getScrollOffset();a==="auto"&&(a=n>=o+i?"end":"start"),a==="center"?n+=(r-i)/2:a==="end"&&(n-=i);const s=this.getTotalSize()-i;return Math.max(Math.min(s,n),0)},this.getOffsetForIndex=(n,a="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=this.measurementsCache[n];if(!r)return;const i=this.getSize(),o=this.getScrollOffset();if(a==="auto")if(r.end>=o+i-this.options.scrollPaddingEnd)a="end";else if(r.start<=o+this.options.scrollPaddingStart)a="start";else return[o,a];const s=a==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,a,r.size),a]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:a="start",behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,a),{adjustments:void 0,behavior:r})},this.scrollToIndex=(n,{align:a="auto",behavior:r}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(n,a);if(!i)return;const[o,s]=i;this._scrollToOffset(o,{adjustments:void 0,behavior:r}),r!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const u=this.getOffsetForIndex(n,s);if(!u)return;const[c]=u,d=this.getScrollOffset();Iee(c,d)||this.scrollToIndex(n,{align:s,behavior:r})}else this.scrollToIndex(n,{align:s,behavior:r})}))},this.scrollBy=(n,{behavior:a}={})=>{this.cancelScrollToIndex(),a==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:a})},this.getTotalSize=()=>{var n;const a=this.getMeasurements();let r;if(a.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((n=a[a.length-1])==null?void 0:n.end)??0;else{const i=Array(this.options.lanes).fill(null);let o=a.length-1;for(;o>=0&&i.some(s=>s===null);){const s=a[o];i[s.lane]===null&&(i[s.lane]=s.end),o--}r=Math.max(...i.filter(s=>s!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:a,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:a},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const YU=(e,t,n,a)=>{for(;e<=t;){const r=(e+t)/2|0,i=n(r);if(i<a)e=r+1;else if(i>a)t=r-1;else return r}return e>0?e-1:0};function $ee({measurements:e,outerSize:t,scrollOffset:n,lanes:a}){const r=e.length-1,i=l=>e[l].start;if(e.length<=a)return{startIndex:0,endIndex:r};let o=YU(0,r,i,n),s=o;if(a===1)for(;s<r&&e[s].end<n+t;)s++;else if(a>1){const l=Array(a).fill(0);for(;s<r&&l.some(c=>c<n+t);){const c=e[s];l[c.lane]=c.end,s++}const u=Array(a).fill(n+t);for(;o>=0&&u.some(c=>c>=n);){const c=e[o];u[c.lane]=c.start,o--}o=Math.max(0,o-o%a),s=Math.min(r,s+(a-1-s%a))}return{startIndex:o,endIndex:s}}const xN=typeof document<"u"?W.useLayoutEffect:W.useEffect;function Dee(e){const t=W.useReducer(()=>({}),{})[1],n={...e,onChange:(r,i)=>{var o;i?Jy.flushSync(t):t(),(o=e.onChange)==null||o.call(e,r,i)}},[a]=W.useState(()=>new Lee(n));return a.setOptions(n),xN(()=>a._didMount(),[]),xN(()=>a._willUpdate()),a}function Mee(e){return Dee({observeElementRect:Aee,observeElementOffset:Nee,scrollToFn:Oee,...e})}const zo=e=>e===void 0?"":typeof e=="string"?e:e.id||"",Hv=e=>typeof e=="string"?e:e===void 0?"":e.text||"",Pee={items:[]},lu=Pn({defaultConfig:{...Pee,id:"",getId:zo,getTextValue:Hv,nonInteractiveIds:[],orientation:"vertical",defaultItemHeight:50,shouldVirtualize:!0}})(e=>{var h;const t=rp(e.id),n=U.useRef(zo),a=U.useRef(Hv);n.current=e.getId||zo,a.current=e.getTextValue||e.getId||Hv;const[r]=U.useState(e.orientation||"vertical"),[i,o]=U.useState(e.defaultItemHeight),s=e.shouldVirtualize&&!!((h=e.items)!=null&&h.length),l=U.useRef(0),u=U.useRef(null),c=U.useMemo(()=>(e.items||[]).map((f,m)=>({id:n.current(f),index:m,value:f,textValue:a.current(f)})),[e.items]),[d,p]=U.useState([]),g=Mee({count:c.length,getScrollElement:()=>u.current,estimateSize:U.useCallback(()=>i,[i]),horizontal:e.orientation==="horizontal",overscan:3});return{state:{...{items:c.length?c:d},UNSTABLE_virtual:g,UNSTABLE_defaultItemHeight:i,containerRef:u,id:t,orientation:r,indexRef:l,nonInteractiveIds:e.nonInteractiveIds||[],isVirtualized:s},events:{registerItem(f){l.current++,p(m=>m.concat({...f,value:f,index:m.length}))},unregisterItem(f){p(m=>m.find(b=>b.id===f.id)?m.filter(b=>b.id!==f.id):m)},updateItemHeight(f){o(f.value)}},getId:e.getId,getTextValue:e.getTextValue}}),Uee=e=>e,ip=()=>0,op=(e,{state:t})=>t.items.length-1,zee=(e,{state:t})=>{if(t.columnCount){const n=e%t.columnCount;return e-n}return ip()},Fee=(e,{state:t})=>{if(t.columnCount){const n=e%t.columnCount-t.columnCount+1;let a=e-n;return a>=t.items.length&&(a=t.items.length-1),a}return op(e,{state:t})},Bee=(e,{state:t})=>t.columnCount?e%t.columnCount:ip(),jee=(e,{state:t})=>t.columnCount?t.items.length-t.columnCount+e%t.columnCount:op(e,{state:t}),qee=(e,{state:t})=>t.items.find(n=>n.id===e),Gee=e=>typeof e.cursorId=="string"?e.cursorId:e.cursorId.slice(-1)[0]||"",yc=(e,t)=>e.cursorId&&typeof e.cursorId=="string"?e.cursorId===t:e.cursorId.includes(t),Ro=e=>(t,{state:n},a=n.items.length)=>{if(Number.isNaN(t)){if(e===1)return ip();if(e===-1)return op(t,{state:n})}const r=n.items;let i=t+e;const s=Math.ceil(r.length/n.columnCount)*n.columnCount;return i<0?e===-1?i=r.length-1:(s+i>=r.length&&(i-=n.columnCount),i=s+i):i>=r.length&&(e===1?i=0:(i-s<0&&(i+=n.columnCount),i=i-s)),r.length>1&&n.nonInteractiveIds.includes(r[i].id)&&a>0?Ro(e)(i,{state:n},a-1):i},Hee=Uee({getFirst:ip,getLast:op,getItem:qee,getNext:Ro(1),getNextRow:(e,{state:t})=>Ro(t.columnCount)(e,{state:t}),getPrevious:Ro(-1),getPreviousRow:(e,{state:t})=>Ro(-t.columnCount)(e,{state:t}),getPreviousPage:Bee,getNextPage:jee,getFirstOfRow:zee,getLastOfRow:Fee}),uu=Pn({defaultConfig:{...lu.defaultConfig,initialCursorId:"",columnCount:0,navigation:Hee,pageSize:0},requiredConfig:lu.requiredConfig,contextOverride:lu.Context})(e=>{var d;const[t,n]=U.useState(e.initialCursorId),a=U.useRef(e.pageSize),r=e.columnCount||0,i=lu(e),o=e.navigation,s=U.useRef(-1),l=p=>{var v;const g=((v=u.items[p])==null?void 0:v.id)||"";n(g)};t&&((d=i.state.items[s.current])==null?void 0:d.id)!==t?s.current=i.state.items.findIndex(p=>p.id===t):t||(s.current=-1);const u={...i.state,cursorId:t,columnCount:r,pageSizeRef:a,cursorIndexRef:s},c={...i.events,goTo(p){const g=u.items.findIndex(v=>v.id===p.id);l(g)},goToNext(){const p=o.getNext(s.current,{state:u});l(p)},goToPrevious(){const p=o.getPrevious(s.current,{state:u});l(p)},goToPreviousRow(){const p=o.getPreviousRow(s.current,{state:u});l(p)},goToNextRow(){const p=o.getNextRow(s.current,{state:u});l(p)},goToFirst(){const p=o.getFirst(s.current,{state:u});l(p)},goToLast(){const p=o.getLast(s.current,{state:u});l(p)},goToFirstOfRow(){const p=o.getFirstOfRow(s.current,{state:u});l(p)},goToLastOfRow(){const p=o.getLastOfRow(s.current,{state:u});l(p)},goToNextPage(){const p=o.getNextPage(s.current,{state:u});l(p)},goToPreviousPage(){const p=o.getPreviousPage(s.current,{state:u});l(p)}};return{...i,state:u,events:c,navigation:o}}),KU=(e,{selectedIds:t,unselectedIds:n})=>t==="all"?!n.includes(e):t.includes(e),XU={select(e){return{selectedIds:[e],unselectedIds:[]}}},Wee={select(e,{selectedIds:t,unselectedIds:n}){return t==="all"?{selectedIds:"all",unselectedIds:n.includes(e)?n.filter(r=>r!==e):n.concat(e)}:{selectedIds:t.includes(e)?t.filter(r=>r!==e):t.concat(e),unselectedIds:[]}}},ua=Pn({defaultConfig:{...uu.defaultConfig,initialSelectedIds:[],initialUnselectedIds:[],selection:XU},requiredConfig:uu.requiredConfig,contextOverride:uu.Context})(e=>{const t=uu(e),[n,a]=U.useState(e.initialSelectedIds),[r,i]=U.useState(e.initialUnselectedIds),o=e.selection,s={...t.state,selectedIds:n,unselectedIds:r},l={...t.events,select(u){const{selectedIds:c,unselectedIds:d}=o.select(u.id,s);a(c),i(d)},selectAll(){a("all")},unselectAll(){a([])},setSelectedIds(u){a(u)},remove(u){}};return{...t,state:s,events:l,selection:o}}),Yn=Pn({defaultConfig:{UNSTABLE_parentModel:void 0,...ua.defaultConfig},requiredConfig:ua.requiredConfig})(e=>({UNSTABLE_parentModel:e.UNSTABLE_parentModel,...ua(e)})),Cu=U.createContext({});function ww(e,t){return typeof t=="function"?e.state.isVirtualized?e.state.UNSTABLE_virtual.getVirtualItems().map(a=>{const r=e.state.items[a.index],i=t(r.value,a.index);return k.jsx(Cu.Provider,{value:{item:r,virtual:a},children:i},r.id||r.index)}):e.state.items.map(a=>{const r=t(a.value,a.index);return k.jsx(Cu.Provider,{value:{item:a},children:r},a.id||a.index)}):k.jsx(Cu.Provider,{value:{},children:t})}const Ca=ye()((e,t,n={})=>{const{state:a,events:r}=e,{item:i,virtual:o}=U.useContext(Cu),[s,l]=U.useState(n["data-id"]||(i==null?void 0:i.id)||""),{localRef:u,elementRef:c}=Tr(Na(t,o?e.state.UNSTABLE_virtual.measureElement:null)),d=o?{position:"absolute",top:0,left:0,transform:`translateY(${o.start}px)`}:{};return ap(()=>{var y;if((o==null?void 0:o.index)===0&&((y=u.current)!=null&&y.clientHeight),i)return;const p=a.indexRef.current,g=s||(n["data-has-children"]?`${a.id}-`:"")+String(p);if(a.items.find(I=>I.id===g))return;const v={id:g,textValue:n["data-text"]?n["data-text"]:typeof n.children=="string"?n.children:""};return r.registerItem(v),l(g),()=>{r.unregisterItem({id:g})}}),{ref:c,"data-id":s,disabled:n.disabled||a.nonInteractiveIds.includes(s)?!0:void 0,"aria-setsize":o?a.UNSTABLE_virtual.options.count:void 0,"aria-posinset":o?i.index+1:void 0,"data-index":o?i.index:void 0,style:d,id:jU(`${a.id}-${s}`)}});function bo(e,t,n,a,r,i){let o,s=0;const l=[];let u=!1;if(r!=="all"&&r.length&&i.length&&(o=i.find(c=>c.id===r[0])?r[0]:i[0].id),Object.keys(a).reduce((c,d,p)=>c+a[d]+(p>0?t:0),0)<=e)return[];if(o){if(a[o]+n>e)return Object.keys(a);s+=a[o]+n,u=!0}else s+=n;for(const c in a)c!==o&&(s+=a[c]+(u?t:0),u=!0,s>e&&l.push(c));return l}const cu=Pn({defaultConfig:{...ua.defaultConfig,initialHiddenIds:[],containerWidth:0,shouldCalculateOverflow:!0},requiredConfig:ua.requiredConfig,contextOverride:ua.Context})(e=>{const t=e.shouldCalculateOverflow===void 0?!0:e.shouldCalculateOverflow,[n,a]=U.useState(e.initialHiddenIds),[r,i]=U.useState({}),[o,s]=U.useState(0),[l,u]=U.useState(0),c=U.useRef(0),d=U.useRef(r),[p,g]=U.useState(0),v=U.useRef(0),y=t?n:[],I=(e.nonInteractiveIds||[]).concat(y),h=ua({...e,nonInteractiveIds:I}),f={...h.state,hiddenIds:y,itemSizeCache:r,itemWidthCache:r,containerSize:o,containerWidth:o,containerGap:l,overflowTargetWidth:p},m={...h.events,select(b){const{selectedIds:E}=h.selection.select(b.id,f),w=bo(c.current,l,v.current,d.current,E,e.items);h.events.select(b),a(w)},setContainerSize(b){c.current=h.state.orientation==="horizontal"?b.width||0:b.height||0,s(c.current);const E=bo(c.current,l,v.current,d.current,f.selectedIds,e.items);a(E)},setContainerWidth(b){m.setContainerSize({width:b.width,height:0})},setContainerGap(b){u(b.size);const E=bo(c.current,b.size,v.current,d.current,f.selectedIds,e.items);a(E)},setOverflowTargetSize(b){v.current=h.state.orientation==="horizontal"?b.width||0:b.height||0,g(v.current)},setOverflowTargetWidth(b){v.current=b.width,m.setOverflowTargetSize({width:v.current,height:0})},addItemWidth(b){m.addItemSize({id:b.id,width:b.width,height:0})},addItemSize(b){d.current={...d.current,[b.id]:h.state.orientation==="horizontal"?b.width:b.height},i(d.current);const E=bo(c.current,l,v.current,d.current,f.selectedIds,e.items);a(E)},removeItemSize(b){const E={...d.current};delete E[b.id],d.current=E,i(d.current);const w=bo(c.current,l,v.current,d.current,f.selectedIds!=="all"?f.selectedIds.filter(T=>b.id!==T):f.selectedIds,e.items);a(w)},removeItemWidth(b){m.removeItemSize({id:b.id})},addHiddenKey(b){a(E=>E.concat(b.id))},removeHiddenKey(b){a(E=>E.filter(w=>w!==b.id))}};return{...h,state:f,events:m}}),Vee=ye()((e,t)=>{const{elementRef:n,localRef:a}=Tr(t),r=e.state.orientation==="horizontal"?"columnGap":"rowGap";return yee({ref:a,onResize:e.events.setContainerSize}),ap(()=>{if(a.current){const i=getComputedStyle(a.current);e.events.setContainerGap({size:i.gap==="normal"?0:Number(i[r].replace("px",""))})}}),{ref:n}}),Zee={position:"absolute",left:-99999},JU=ye()((e,t,n={})=>{const{elementRef:a,localRef:r}=Tr(t),i=n["data-id"]||"";ap(()=>{if(r.current){const s=getComputedStyle(r.current);e.events.addItemSize({id:i,width:r.current.offsetWidth+parseFloat(s.marginLeft)+parseFloat(s.marginRight),height:r.current.offsetHeight+parseFloat(s.marginTop)+parseFloat(s.marginBottom)})}return()=>{e.events.removeItemSize({id:i})}});const o=e.state.hiddenIds.includes(i);return{ref:a,"aria-hidden":o||void 0,style:o?Zee:{},inert:U.use?o:o?"":void 0}}),Yee={position:"absolute",left:-99999},Kee=ye()((e,t)=>{const{elementRef:n,localRef:a}=Tr(t),r=U.useRef(!0);ap(()=>{if(r.current=!1,a.current){const o=getComputedStyle(a.current);e.events.setOverflowTargetSize({width:a.current.offsetWidth+parseFloat(o.marginLeft)+parseFloat(o.marginRight),height:a.current.offsetHeight+parseFloat(o.marginTop)+parseFloat(o.marginBottom)})}});const i=!e.state.hiddenIds.length;return{ref:n,"aria-hidden":i,tabIndex:i?-1:0,style:i?Yee:void 0}}),ny={horizontal:{ArrowLeft:"goToPrevious",Left:"goToPrevious",ArrowRight:"goToNext",Right:"goToNext",Home:"goToFirst",End:"goToLast",PageDown:"goToNextPage",PageUp:"goToPreviousPage"},vertical:{ArrowUp:"goToPrevious",Up:"goToPrevious",ArrowDown:"goToNext",Down:"goToNext",Home:"goToFirst",End:"goToLast",PageDown:"goToNextPage",PageUp:"goToPreviousPage"}},Xee={ArrowLeft:"ArrowRight",Left:"Right",ArrowRight:"ArrowLeft",Right:"Left",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",Home:"Home",End:"End",PageDown:"PageDown",PageUp:"PageUp"},RN={...ny.horizontal,Home:"goToFirstOfRow",End:"goToLastOfRow",ArrowUp:"goToPreviousRow",Up:"goToPreviousRow",ArrowDown:"goToNextRow",Down:"goToNextRow"},Wv={Home:"goToFirst",End:"goToLast"},AN=(e,t)=>e.hasOwnProperty(t);function Jee(e,t){var r,i,o,s;if(e.ctrlKey){for(const l in Wv)if(AN(Wv,l)&&e.key===l)return(i=(r=t.events)[Wv[l]])==null||i.call(r),!0}const n=t.state.columnCount>0?RN:ny[t.state.orientation],a=UU(e.currentTarget);for(const l in n)if(AN(n,l)&&(a?e.key===Xee[l]:e.key===l)){const u=t.state.columnCount>0?RN[l]:ny[t.state.orientation][l];if(t.events[u])return(s=(o=t.events)[u])==null||s.call(o),!0}return!1}const QU=(e,t,n)=>{e()===!1&&t>1&&requestAnimationFrame(()=>QU(e,t-1)),n==null||n("Retry timeout")},Qee=(e,t,n)=>new Promise((a,r)=>{var s;const i=(((s=n==null?void 0:n.dataset)==null?void 0:s.focusId)||"").split("-")[0]||e.state.id,o=e.navigation.getItem(t,e);if(o){e.state.isVirtualized&&e.state.UNSTABLE_virtual.scrollToIndex(o.index);const l=u=>document.querySelector(`[data-focus-id="${MU(`${u}-${o.id}`)}"]`);QU(()=>{const u=l(i)||l(e.state.id);return u&&(u.focus(),a(u)),!!u},5,r)}}),ez=ye()((e,t,n={})=>{const a=U.useRef(e.state);a.current=e.state;const r=U.useRef(null);return U.useEffect(()=>{r.current&&Qee(e,Gee(e.state),r.current).then(()=>{r.current=null})},[e.state.cursorId]),U.useEffect(()=>{!e.state.cursorId&&e.state.items.length&&e.events.goTo({id:e.state.items[0].id})},[e.state.cursorId,e.state.items,e.events]),{onKeyDown(i){Jee(i,e)&&(i.preventDefault(),r.current=i.currentTarget)},onClick(){e.events.goTo({id:n["data-id"]})},"data-focus-id":jU(`${e.state.id}-${n["data-id"]}`),tabIndex:e.state.cursorId?n["data-id"]&&yc(e.state,n["data-id"])?0:-1:0}}),tz=ye()(({state:e,events:t},n,a={})=>{const r=a["data-id"]||"";return{onClick:o=>{!e.nonInteractiveIds.includes(r)&&o.currentTarget.getAttribute("aria-disabled")!=="true"&&t.select({id:r})}}}),ete=ye()((e,t,n={})=>{const a=n["data-id"]||"";return{className:yc(e.state,a)?"focus":""}}),tte=e=>HQ[e]||er(e),nte=e=>WQ[e],rte=e=>VQ[e]||er(e),ate=e=>ZQ[e]||er(e),ite=e=>Sw.properties.fontFamilies[e]||er(e),ote=e=>Sw.properties.fontSizes[e]||er(e),ste=e=>Sw.properties.fontWeights[e]||er(e);function bt(e){return e.reduce((t={},n)=>{const a=r=>n.properties.reduce((i={},o)=>{if(n.system==="color")return{...i,[o]:tte(r)};if(n.system==="depth"){const s=nte(r);return{...i,...s}}return n.system==="font"?{...i,[o]:ite(r)}:n.system==="fontSize"?{...i,[o]:ote(r)}:n.system==="fontWeight"?{...i,[o]:ste(r)}:n.system==="shape"?{...i,[o]:rte(r)}:n.system==="space"?{...i,[o]:ate(r)}:{...i,[o]:r}},{});return{...t,[n.name]:a}},{})}function ln(e){return t=>{let n={};for(const a in t)if(a in t&&a in e){const r=e[a],i=t[a],o=r(i);n={...n,...o};continue}return n}}const nz=[{name:"background",properties:["background"],system:"color"},{name:"backgroundAttachment",properties:["backgroundAttachment"],system:"none"},{name:"backgroundColor",properties:["backgroundColor"],system:"color"},{name:"backgroundImage",properties:["backgroundImage"],system:"none"},{name:"backgroundPosition",properties:["backgroundPosition"],system:"none"},{name:"backgroundRepeat",properties:["backgroundRepeat"],system:"none"},{name:"backgroundSize",properties:["backgroundSize"],system:"none"}],lte=bt(nz),ute=ln(lte),rz=[{name:"borderColor",properties:["borderColor"],system:"color"},{name:"borderTopColor",properties:["borderTopColor"],system:"color"},{name:"borderRightColor",properties:["borderRightColor"],system:"color"},{name:"borderBottomColor",properties:["borderBottomColor"],system:"color"},{name:"borderLeftColor",properties:["borderLeftColor"],system:"color"},{name:"borderInlineStartColor",properties:["borderInlineStartColor"],system:"color"},{name:"borderInlineEndColor",properties:["borderInlineEndColor"],system:"color"}],cte=bt(rz),az=[{name:"borderCollapse",properties:["borderCollapse"],system:"none"},{name:"borderSpacing",properties:["borderSpacing"],system:"none"},{name:"borderStyle",properties:["borderStyle"],system:"none"},{name:"borderTopStyle",properties:["borderTopStyle"],system:"none"},{name:"borderRightStyle",properties:["borderRightStyle"],system:"none"},{name:"borderBottomStyle",properties:["borderBottomStyle"],system:"none"},{name:"borderLeftStyle",properties:["borderLeftStyle"],system:"none"},{name:"borderInlineStartStyle",properties:["borderInlineStartStyle"],system:"none"},{name:"borderInlineEndStyle",properties:["borderInlineEndStyle"],system:"none"}],dte=bt(az),iz=[{name:"borderRadius",properties:["borderRadius"],system:"shape"},{name:"borderTopLeftRadius",properties:["borderTopLeftRadius"],system:"shape"},{name:"borderTopRightRadius",properties:["borderTopRightRadius"],system:"shape"},{name:"borderBottomLeftRadius",properties:["borderBottomLeftRadius"],system:"shape"},{name:"borderBottomRightRadius",properties:["borderBottomRightRadius"],system:"shape"}],pte=bt(iz),oz=[{name:"border",properties:["border"],system:"none"},{name:"borderTop",properties:["borderTop"],system:"none"},{name:"borderRight",properties:["borderRight"],system:"none"},{name:"borderBottom",properties:["borderBottom"],system:"none"},{name:"borderLeft",properties:["borderLeft"],system:"none"},{name:"borderInlineStart",properties:["borderInlineStart"],system:"none"},{name:"borderInlineEnd",properties:["borderInlineEnd"],system:"none"}],fte=bt(oz),sz=[{name:"borderWidth",properties:["borderWidth"],system:"none"},{name:"borderTopWidth",properties:["borderTopWidth"],system:"none"},{name:"borderRightWidth",properties:["borderRightWidth"],system:"none"},{name:"borderBottomWidth",properties:["borderBottomWidth"],system:"none"},{name:"borderLeftWidth",properties:["borderLeftWidth"],system:"none"},{name:"borderInlineStartWidth",properties:["borderInlineStartWidth"],system:"none"},{name:"borderInlineEndWidth",properties:["borderInlineEndWidth"],system:"none"}],mte=bt(sz),gte=ln({...cte,...dte,...pte,...fte,...mte}),hte=[...rz,...az,...iz,...oz,...sz],lz=[{name:"backgroundColor",properties:["backgroundColor"],system:"color"},{name:"color",properties:["color"],system:"color"},{name:"opacity",properties:["opacity"],system:"none"}],vte=bt(lz),bte=ln(vte),uz=[{name:"boxShadow",properties:["boxShadow"],system:"none"},{name:"depth",properties:["boxShadow"],system:"depth"}],yte=bt(uz),Ste=ln(yte),cz=[{name:"flex",properties:["flex"],system:"none"},{name:"flexGrow",properties:["flexGrow"],system:"none"},{name:"flexShrink",properties:["flexShrink"],system:"none"},{name:"flexBasis",properties:["flexBasis"],system:"none"},{name:"justifySelf",properties:["justifySelf"],system:"none"},{name:"alignSelf",properties:["alignSelf"],system:"none"},{name:"order",properties:["order"],system:"none"}],Ete=bt(cz),_te=ln(Ete),dz=[{name:"gridColumnStart",properties:["gridColumnStart"],system:"none"},{name:"gridColumnEnd",properties:["gridColumnEnd"],system:"none"},{name:"gridRowStart",properties:["gridRowStart"],system:"none"},{name:"gridRowEnd",properties:["gridRowEnd"],system:"none"},{name:"gridColumn",properties:["gridColumn"],system:"none"},{name:"gridRow",properties:["gridRow"],system:"none"},{name:"gridArea",properties:["gridArea"],system:"none"},{name:"justifySelf",properties:["justifySelf"],system:"none"},{name:"alignSelf",properties:["alignSelf"],system:"none"},{name:"placeSelf",properties:["placeSelf"],system:"none"}],wte=bt(dz),kte=ln(wte),pz=[{name:"display",properties:["display"],system:"none"},{name:"height",properties:["height"],system:"space"},{name:"listStyle",properties:["listStyle"],system:"none"},{name:"maxHeight",properties:["maxHeight"],system:"space"},{name:"maxWidth",properties:["maxWidth"],system:"space"},{name:"minHeight",properties:["minHeight"],system:"space"},{name:"minWidth",properties:["minWidth"],system:"space"},{name:"overflow",properties:["overflow"],system:"none"},{name:"overflowX",properties:["overflowX"],system:"none"},{name:"overflowY",properties:["overflowY"],system:"none"},{name:"verticalAlign",properties:["verticalAlign"],system:"none"},{name:"width",properties:["width"],system:"space"}],Ite=bt(pz),Tte=ln(Ite),fz=[{name:"animation",properties:["animation"],system:"none"},{name:"appearance",properties:["appearance"],system:"none"},{name:"boxSizing",properties:["boxSizing"],system:"none"},{name:"content",properties:["content"],system:"none"},{name:"cursor",properties:["cursor"],system:"none"},{name:"fill",properties:["fill"],system:"none"},{name:"float",properties:["float"],system:"none"},{name:"objectFit",properties:["objectFit"],system:"none"},{name:"objectPosition",properties:["objectPosition"],system:"none"},{name:"outline",properties:["outline"],system:"none"},{name:"outlineOffset",properties:["outlineOffset"],system:"none"},{name:"overflowWrap",properties:["overflowWrap"],system:"none"},{name:"pointerEvents",properties:["pointerEvents"],system:"none"},{name:"resize",properties:["resize"],system:"none"},{name:"stroke",properties:["stroke"],system:"none"},{name:"transform",properties:["transform"],system:"none"},{name:"transition",properties:["transition"],system:"none"},{name:"userSelect",properties:["userSelect"],system:"none"},{name:"visibility",properties:["visibility"],system:"none"}],xte=bt(fz),Rte=ln(xte),mz=[{name:"position",properties:["position"],system:"none"},{name:"zIndex",properties:["zIndex"],system:"none"},{name:"top",properties:["top"],system:"none"},{name:"right",properties:["right"],system:"none"},{name:"bottom",properties:["bottom"],system:"none"},{name:"left",properties:["left"],system:"none"},{name:"inset",properties:["inset"],system:"none"},{name:"insetInlineStart",properties:["insetInlineStart"],system:"none"},{name:"insetInlineEnd",properties:["insetInlineEnd"],system:"none"}],Ate=bt(mz),Nte=ln(Ate),gz=[{name:"marginInlineStart",properties:["marginInlineStart"],system:"space"},{name:"marginInlineEnd",properties:["marginInlineEnd"],system:"space"},{name:"paddingInlineStart",properties:["paddingInlineStart"],system:"space"},{name:"paddingInlineEnd",properties:["paddingInlineEnd"],system:"space"},{name:"margin",properties:["margin"],system:"space"},{name:"marginX",properties:["marginInline"],system:"space"},{name:"marginY",properties:["marginBlock"],system:"space"},{name:"marginTop",properties:["marginTop"],system:"space"},{name:"marginRight",properties:["marginRight"],system:"space"},{name:"marginBottom",properties:["marginBottom"],system:"space"},{name:"marginLeft",properties:["marginLeft"],system:"space"},{name:"padding",properties:["padding"],system:"space"},{name:"paddingX",properties:["paddingInline"],system:"space"},{name:"paddingY",properties:["paddingBlock"],system:"space"},{name:"paddingTop",properties:["paddingTop"],system:"space"},{name:"paddingRight",properties:["paddingRight"],system:"space"},{name:"paddingBottom",properties:["paddingBottom"],system:"space"},{name:"paddingLeft",properties:["paddingLeft"],system:"space"}],Cte=bt(gz),Ote=ln(Cte),hz=[{name:"fontFamily",properties:["fontFamily"],system:"font"},{name:"fontSize",properties:["fontSize"],system:"fontSize"},{name:"fontStyle",properties:["fontStyle"],system:"none"},{name:"fontWeight",properties:["fontWeight"],system:"fontWeight"},{name:"lineHeight",properties:["lineHeight"],system:"none"},{name:"letterSpacing",properties:["letterSpacing"],system:"none"},{name:"textAlign",properties:["textAlign"],system:"none"},{name:"textDecoration",properties:["textDecoration"],system:"none"},{name:"textOverflow",properties:["textOverflow"],system:"none"},{name:"textTransform",properties:["textTransform"],system:"none"},{name:"textShadow",properties:["textShadow"],system:"none"},{name:"whiteSpace",properties:["whiteSpace"],system:"none"},{name:"wordBreak",properties:["wordBreak"],system:"none"}],Lte=bt(hz),$te=ln(Lte),Dte=["display","color","height","overflow","width","border","background","fontSize","fontWeight","fontFamily","letterSpacing","lineHeight","textAlign","opacity","textDecoration","textOverflow","textTransform","textShadow","whiteSpace","wordBreak"],Mte=e=>UP(e)&&!Dte.includes(e),kw=e=>[{boxSizing:"border-box"},ute,gte,bte,Ste,_te,kte,Tte,Rte,Nte,Ote,$te].reduce((t,n)=>{const a=typeof n=="function"?n(e):n;for(const r in a)t[r]=a[r];return t},{}),Pte=fs("div",{shouldForwardProp:Mte})(kw),Ute=fs("div")(kw),Iw=je("div")({displayName:"Box",Component:({children:e,...t},n,a)=>{const r=zU(()=>typeof a=="string"?Pte:Ute);return k.jsx(r,{as:a,ref:n,...et(t),children:e})}}),vz=[{name:"alignContent",properties:["alignContent"],system:"none"},{name:"alignItems",properties:["alignItems"],system:"none"},{name:"display",properties:["display"],system:"none"},{name:"flexDirection",properties:["flexDirection"],system:"none"},{name:"flexWrap",properties:["flexWrap"],system:"none"},{name:"justifyContent",properties:["justifyContent"],system:"none"},{name:"justifyItems",properties:["justifyItems"],system:"none"},{name:"gap",properties:["gap"],system:"space"},{name:"columnGap",properties:["columnGap"],system:"space"},{name:"rowGap",properties:["rowGap"],system:"space"}],zte=bt(vz),Fte=ln(zte),bz=[{name:"gridGap",properties:["gridGap"],system:"space"},{name:"gridRowGap",properties:["gridRowGap"],system:"space"},{name:"gridColumnGap",properties:["gridColumnGap"],system:"space"},{name:"alignContent",properties:["alignContent"],system:"none"},{name:"alignItems",properties:["alignItems"],system:"none"},{name:"display",properties:["display"],system:"none"},{name:"justifyContent",properties:["justifyContent"],system:"none"},{name:"justifyItems",properties:["justifyItems"],system:"none"},{name:"gridTemplateAreas",properties:["gridTemplateAreas"],system:"none"},{name:"gridTemplate",properties:["gridTemplate"],system:"none"},{name:"gridTemplateColumns",properties:["gridTemplateColumns"],system:"none"},{name:"gridTemplateRows",properties:["gridTemplateRows"],system:"none"},{name:"gridPlaceItems",properties:["gridPlaceItems"],system:"none"},{name:"gridAutoColumns",properties:["gridAutoColumns"],system:"none"},{name:"gridAutoRows",properties:["gridAutoRows"],system:"none"},{name:"gridAutoFlow",properties:["gridAutoFlow"],system:"none"},{name:"gridArea",properties:["gridArea"],system:"none"},{name:"grid",properties:["grid"],system:"none"}],Bte=bt(bz),jte=ln(Bte),qte=[...nz,...hte,...lz,...uz,...vz,...cz,...bz,...dz,...pz,...fz,...mz,...gz,...hz].reduce((e,t)=>(e[t.name]=!0,e),{});function Gte(e){return qte[e]||!1}function Zt(e,t){const n={};let a=!1;const r=Object.keys(e).reduce((o,s)=>(Gte(s)?(a=!0,n[s]=e[s]):o[s]=e[s],o),{});let i={};return a&&(i={...kw(n),...Fte(n),...jte(n)}),et(r,[t,i])}const Hte=ot("li")({displayName:"Item",modelHook:Yn,elemPropsHook:Ca})((e,t)=>k.jsx(t,{...Zt(e)})),Wte=ye()(e=>({style:{position:"relative",height:e.state.isVirtualized?e.state.UNSTABLE_virtual.getTotalSize():void 0}})),NN=Le({parts:{listBoxContainer:"list-box-container"},base:{'& :where([data-part="list"])':{display:"flex",flexDirection:"column",marginBlock:0}},modifiers:{orientation:{vertical:{overflowY:"auto"},horizontal:{overflowY:void 0,'& :where([data-part="list"])':{flexDirection:"row"}}}}}),Vte=Aa("ul")({displayName:"ListBox",modelHook:Yn,elemPropsHook:Wte,subComponents:{Item:Hte}})(({height:e,maxHeight:t,marginY:n,marginBottom:a,overflowY:r,marginTop:i,...o},s,l)=>k.jsx("div",{ref:l.state.containerRef,...NN.parts.listBoxContainer,...et({style:{height:e,maxHeight:t,marginBottom:a??n,marginTop:i??n}},NN({orientation:l.state.orientation})),children:k.jsx(s,{...Zt(o),"data-part":"list",children:ww(l,o.children)})})),Tw=Le({base:{},modifiers:{typeLevel:{"title.large":{fontFamily:We.default,fontWeight:Ve.bold,fontSize:_.fontSize.title.lg,lineHeight:_.lineHeight.title.lg,color:O.fg.strong},"title.medium":{fontFamily:We.default,fontWeight:Ve.bold,fontSize:_.fontSize.title.md,lineHeight:_.lineHeight.title.md,color:O.fg.strong},"title.small":{fontFamily:We.default,fontWeight:Ve.bold,lineHeight:_.lineHeight.title.sm,fontSize:_.fontSize.title.sm,color:O.fg.strong},"heading.large":{fontFamily:We.default,fontWeight:Ve.bold,fontSize:_.fontSize.heading.lg,lineHeight:_.lineHeight.heading.lg,color:O.fg.strong},"heading.medium":{fontFamily:We.default,fontWeight:Ve.bold,fontSize:_.fontSize.heading.md,lineHeight:_.lineHeight.heading.md,color:O.fg.strong},"heading.small":{fontFamily:We.default,fontWeight:Ve.bold,fontSize:_.fontSize.heading.sm,lineHeight:_.lineHeight.heading.sm,color:O.fg.strong},"body.large":{fontFamily:We.default,fontWeight:Ve.normal,fontSize:_.fontSize.body.lg,lineHeight:_.lineHeight.body.lg,color:O.fg.default},"body.medium":{fontFamily:We.default,fontWeight:Ve.normal,fontSize:_.fontSize.body.md,lineHeight:_.lineHeight.body.md,color:O.fg.default},"body.small":{fontFamily:We.default,fontWeight:Ve.normal,fontSize:_.fontSize.body.sm,lineHeight:_.lineHeight.body.sm,letterSpacing:_.letterSpacing.body.sm,color:O.fg.default},"subtext.large":{fontFamily:We.default,fontWeight:Ve.normal,fontSize:_.fontSize.subtext.lg,lineHeight:_.lineHeight.subtext.lg,letterSpacing:_.letterSpacing.subtext.lg,color:O.fg.default},"subtext.medium":{fontFamily:We.default,fontWeight:Ve.normal,fontSize:_.fontSize.subtext.md,lineHeight:_.lineHeight.subtext.md,letterSpacing:_.letterSpacing.subtext.md,color:O.fg.default},"subtext.small":{fontFamily:We.default,fontWeight:Ve.normal,fontSize:_.fontSize.subtext.sm,lineHeight:_.lineHeight.subtext.sm,letterSpacing:_.letterSpacing.subtext.sm,color:O.fg.default}},variant:{error:{color:_.color.brand.fg.critical.default},hint:{color:O.fg.muted.default},inverse:{color:O.fg.inverse}}}}),yz=je("span")({displayName:"Text",Component:({children:e,typeLevel:t,variant:n,...a},r,i)=>k.jsx(i,{ref:r,...Zt(a,Tw({typeLevel:t,variant:n})),children:e})}),Zte=Le({extends:Tw,base:{},defaultModifiers:{typeLevel:"subtext.large"}}),Yte=je("div")({displayName:"Card.Body",Component:({children:e,...t},n,a)=>k.jsx(a,{ref:n,...Zt(t,Zte()),children:e})}),Kte=Le({extends:Tw,base:{color:O.fg.strong,fontWeight:Ve.bold,marginBlock:_.padding.none},defaultModifiers:{typeLevel:"body.large"}}),Xte=je("h3")({displayName:"Card.Heading",Component:({children:e,...t},n,a)=>k.jsx(a,{ref:n,...Zt(t,Kte()),children:e})}),Jte=Le({base:{display:"flex",flexDirection:"column",gap:_.gap.lg,padding:_.padding.xl,backgroundColor:_.color.surface.default,borderRadius:_.shape.xxl,border:`${ce(1)} solid ${_.color.border.default}`},modifiers:{variant:{borderless:{borderColor:"transparent"},tonal:{backgroundColor:_.color.surface.alt.default,borderColor:O.border.transparent}}}}),Qte=je("div")({displayName:"Card",Component:({children:e,variant:t,...n},a,r)=>k.jsx(r,{ref:a,...Zt(n,Jte({variant:t})),children:e}),subComponents:{Heading:Xte,Body:Yte}});function ene(e){return e.length?e[e.length-1]:null}function Sz(e,t){const{min:n,max:a}=xw.zIndex;return t<=a-n?e+n:Math.max(n,a-(t-e)+1)}function Vv(e){const t=e.length;e.forEach((n,a)=>{n.style.zIndex=String(Sz(a,t))})}function tne(e,t){let n=e;do{const a=t.find(r=>r.element===n);if(a)return a.element}while(n=n.parentElement)}function nne(e,t){return t.filter(a=>a.owner).map(a=>({element:a.element,parent:tne(a.owner,t)})).filter(a=>a.parent===e.element)}function Ez(e,t){const n=t.split("."),a=n.splice(0,1)[0];return n.length&&e[a]?Ez(e[a],n.join(".")):e[a]}function _z(e,t,n){const a=t.split("."),r=a.splice(0,1)[0];return a.length?(e[r]===void 0&&(e[r]={}),_z(e[r],a.join("."),n)):e[r]=n,n}typeof window<"u"&&(window.workday=window.workday||{});const wz=e=>{if(typeof window<"u")return Ez(window,e)},kz=(e,t)=>{typeof window<"u"&&_z(window,e,t)},CN=(e,t)=>{var a;let n=(a=e.container)==null?void 0:a.call(e);return n===document.body&&(n=t==null?void 0:t.ownerDocument.body),n||document.body},xw=wz("workday.__popupStack")||{description:"Global popup stack from @workday/canvas-kit/popup-stack",container:e=>(e==null?void 0:e.ownerDocument.body)||document.body,items:[],zIndex:{min:30,max:50,getValue:Sz},_adapter:{}};kz("workday.__popupStack",xw);const dr=wz("workday.__popupStackOfStacks")||[xw];dr.description="Global stack of popup stacks from @workday/canvas-kit/popup-stack";kz("workday.__popupStackOfStacks",dr);function sr(){return dr[dr.length-1]}const wt={createContainer(){var n;const e=sr();if((n=e._adapter)!=null&&n.createContainer)return e._adapter.createContainer();const t=document.createElement("div");return t.style.position="relative",t},add(e){var n;const t=sr();if((n=t._adapter)!=null&&n.add){t._adapter.add(e);return}t.items.push(e),CN(t,e.owner).appendChild(e.element),Vv(wt.getElements())},remove(e){var n;const t=dr.find(a=>!!wt.getElements(a).find(r=>r===e));if(t){if((n=t._adapter)!=null&&n.remove){t._adapter.remove(e);return}const a=t.items.find(r=>r.element===e);t.items=t.items.filter(r=>r.element!==e),CN(t,a==null?void 0:a.owner).removeChild(e),Vv(wt.getElements(t))}},isTopmost(e){var a;const t=sr();if((a=t._adapter)!=null&&a.isTopmost)return t._adapter.isTopmost(e);const n=ene(t.items);return n?n.element===e:!1},getElements(e){var n;const t=e||sr();return(n=t._adapter)!=null&&n.getElements?t._adapter.getElements():t.items.map(a=>a.element)},bringToTop(e){var a;const t=sr();if((a=t._adapter)!=null&&a.bringToTop){t._adapter.bringToTop(e);return}const n=t.items.find(r=>r.element===e);if(n)t.items=[...t.items.filter(r=>r!==n),n],nne(n,t.items).forEach(r=>{wt.bringToTop(r.element)}),Vv(wt.getElements());else{const r=new Error;console.warn("Could not find item",r.stack)}},contains(e,t){var i;const n=sr();if((i=n._adapter)!=null&&i.contains)return n._adapter.contains(e,t);const a=n.items.find(o=>o.element===e);if(a)return r(a,t);return!1;function r(o,s,l=0){var c;if(l>30)return!1;if(o.element===s||o.owner===s||o.element.contains(s)||(c=o.owner)!=null&&c.contains(s))return!0;const u=n.items.find(d=>d.owner&&o.element.contains(d.owner));return u?r(u,s,l+1):!1}},pushStackContext(e){var a,r;const t=sr();if((a=t._adapter)!=null&&a.pushStackContext)return t._adapter.pushStackContext(e);if(((r=t.container)==null?void 0:r.call(t))===e)return;const n={items:[],zIndex:t.zIndex,container:()=>e,_adapter:{}};dr.push(n)},popStackContext(e){var n,a;const t=sr();if((n=t._adapter)!=null&&n.popStackContext)return t._adapter.popStackContext(e);((a=t.container)==null?void 0:a.call(t))===e&&dr.length>1&&dr.pop()},transferToCurrentContext(e){var a;const t=sr();if((a=t._adapter)!=null&&a.transferToCurrentContext)return t._adapter.transferToCurrentContext(e);if(t.items.find(r=>r.element===e.element))return;dr.find(r=>!!r.items.find(i=>i.element===e.element))&&wt.remove(e.element),wt.add(e)}};let du=null;cr.isEnabled&&cr.on("change",()=>{cr.isFullscreen?cr.element&&(du=cr.element,wt.pushStackContext(du)):du&&wt.popStackContext(du)});const Zv=Pn({defaultConfig:{id:"",initialVisibility:"hidden"}})(e=>{const t=rp(e.id),[n,a]=U.useState(e.initialVisibility||"hidden");return{state:{id:t,visibility:n},events:{show(o){a("visible")},hide(o){a("hidden")}}}}),ON=()=>{},ia=Pn({defaultContext:{state:{},events:{show:ON,hide:ON}},defaultConfig:{...Zv.defaultConfig,returnFocusRef:void 0,initialFocusRef:void 0},requiredConfig:Zv.requiredConfig})(e=>{const t=W.useRef(null),n=W.useRef(null),[a,r]=W.useState("bottom"),i=Zv(e),o={...i.state,stackRef:t,targetRef:n,initialFocusRef:e.initialFocusRef,returnFocusRef:e.returnFocusRef,placement:a},s={...i.events,updatePlacement(l){r(l.placement)}};return{state:o,events:s}});ia.Context;const Iz=ye()(e=>{const t=U.useCallback(a=>{e.state.stackRef.current&&document.contains(a.target)&&!wt.contains(e.state.stackRef.current,a.target)&&e.events.hide(a)},[e.events,e.state.stackRef]),n=e.state.visibility!=="hidden";return U.useLayoutEffect(()=>{var a;if(n)return document.addEventListener("mousedown",t),(a=e.state.stackRef.current)==null||a.setAttribute("data-behavior-click-outside-close","always"),()=>{document.removeEventListener("mousedown",t)}},[e.state.stackRef,n,t]),{}}),Tz=ye()(e=>{const t=U.useCallback(a=>{(a.key==="Esc"||a.key==="Escape")&&wt.isTopmost(e.state.stackRef.current)&&e.events.hide(a)},[e.state.stackRef,e.events]),n=e.state.visibility!=="hidden";return U.useLayoutEffect(()=>{if(n)return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[t,n]),{}}),rne=ye()(e=>{const t=U.useCallback(a=>{cr.isFullscreen||e.events.hide(a)},[e.events]),n=e.state.visibility!=="hidden";return U.useEffect(()=>{if(n&&cr.isEnabled)return cr.on("change",t),()=>{cr.off("change",t)}},[t,n]),{}});function xz(e){if(e===document.body||!e.parentElement)return e;const t=getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"||t.overflowX==="scroll"||t.overflowX==="auto"?e:xz(e.parentElement)}const ane=ye()(e=>{const t=e.state.visibility!=="hidden",n=U.useCallback(a=>{a[0].intersectionRatio<.5&&e.events.hide()},[e.events]);return U.useLayoutEffect(()=>{if(!t||!e.state.targetRef.current)return;const a=e.state.targetRef.current,r=xz(a),i=new IntersectionObserver(n,{root:r,threshold:.5});return i.observe(e.state.targetRef.current),()=>{i.disconnect()}},[n,e.state.targetRef,t]),{}}),ine=ye()(e=>{const t=U.useCallback(a=>{if(e.state.stackRef.current&&a.key==="Tab"){const r=gee(e.state.stackRef.current),i=hee(e.state.stackRef.current);a.getModifierState("Shift")&&document.activeElement===r?(a.preventDefault(),e.events.hide(a)):!a.getModifierState("Shift")&&(Array.isArray(i)&&document.activeElement&&i.includes(document.activeElement)||document.activeElement===i)&&e.events.hide(a)}},[e.events,e.state.stackRef]),n=e.state.visibility!=="hidden";return U.useLayoutEffect(()=>{if(n)return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[n,t]),{}}),one=ye()(({state:e,events:t},n)=>{const a=Na(n,e.stackRef),r=U.useRef(e.placement);r.current=e.placement;const i=U.useCallback(o=>{o!==r.current&&t.updatePlacement({placement:o})},[t]);return{open:e.visibility!=="hidden",anchorElement:e.targetRef,ref:a,onPlacementChange:i}}),sne=(e,t)=>{const{elementRef:n,localRef:a}=Tr(e),r=U.useContext(ps),{style:i}=ZU(r,{}),o=U.useRef(!0),[s]=U.useState(()=>{if(o.current){const l=wt.createContainer();return n(l),o.current=!1,l}return a.current});return U.useLayoutEffect(()=>{const l=a.current;if(!l)return;const u=Object.keys(i);if(u.length!==0)for(const c of u)l.style.setProperty(c,i[c])},[a,i]),U.useLayoutEffect(()=>{if(s!==a.current)throw Error("The 'ref' passed to usePopupStack should not be applied to a React element. This will cause a runtime error where the PopupStack and React compete for the element. Instead use ReactDOM.createPortal(<YourComponent />, ref.current)");const l=t?"current"in t?t.current||void 0:t:void 0,u=a.current;return wt.add({element:u,owner:l}),()=>{wt.remove(u)}},[a,t,s]),U.useLayoutEffect(()=>{var c,d;let u=(t?"current"in t?t.current:t:void 0)??void 0;if(u==null&&typeof document<"u"){const p=document.activeElement,g=a.current;u=(p&&g&&!g.contains(p)?p:document.body).closest("[dir]")??document.documentElement}if(u){const p=u.getAttribute("dir");(p!=null?p.toLowerCase()==="rtl":UU(u))?(c=a.current)==null||c.setAttribute("dir","rtl"):(d=a.current)==null||d.setAttribute("dir","ltr")}},[a,t]),a},lne=ye()(({events:e,state:t},n)=>({ref:Na(n,t.targetRef),onClick:r=>{t.targetRef.current instanceof Element||(t.targetRef.current=r.currentTarget),t.visibility!=="hidden"?e.hide(r):e.show(r)}})),une=ye()(({events:e,state:t},n)=>({ref:Na(n,t.targetRef),onContextMenu:r=>{t.targetRef.current||(t.targetRef.current=r.currentTarget),t.visibility!=="hidden"?e.hide(r):e.show(r),r.preventDefault()}}));function Rz(e){if(e===document.body||!e.parentElement)return e;const t=getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"?e:Rz(e.parentElement)}function Az(e){return e===null||e===document.body||!e.parentElement?null:mee(e)?e:Az(e.parentElement)}function LN(e,t){const n=e.getBoundingClientRect();return n.top+n.height/2<t.top||n.bottom-n.height/2>t.bottom||n.left+n.width/2<t.left||n.right-n.width/2>t.right}const cne=ye()(e=>{const t=e.state.visibility!=="hidden",n=U.useRef(null),a=U.useRef(!1),r=U.useCallback(o=>{o.key==="Tab"&&(a.current=!0)},[]),i=U.useCallback(o=>{e.state.stackRef.current&&o.target instanceof Element&&(wt.contains(e.state.stackRef.current,o.target)||(n.current=o.target))},[e.state.stackRef]);return U.useLayoutEffect(()=>{if(!t)return;const o=(e.state.returnFocusRef||e.state.targetRef).current;return document.addEventListener("mousedown",i,!0),document.addEventListener("keydown",r,!0),()=>{if(document.removeEventListener("mousedown",i,!0),document.removeEventListener("keydown",r,!0),!o)return;const l=Rz(o).getBoundingClientRect(),u={left:0,top:0,right:window.innerWidth,bottom:window.innerHeight};if(n.current&&Az(n.current)||LN(o,l)||LN(o,u)){n.current=null;return}document.activeElement!==document.body&&e.state.stackRef.current&&document.activeElement instanceof Element&&!wt.contains(e.state.stackRef.current,document.activeElement)||a.current?gN(o):requestAnimationFrame(()=>{gN(o)}),n.current=null}},[e.state.returnFocusRef,e.state.targetRef,t,i,r,e.state.stackRef]),{}}),Rw=e=>{const[t,n]=e.split("-");return{vertical:t==="top"?"bottom":t==="bottom"||n==="end"?"top":n==="start"?"bottom":"center",horizontal:t==="left"?"right":t==="right"||n==="end"?"left":n==="start"?"right":"center"}},Nz=Le({vars:{width:"",height:"",size:""},base:({height:e,size:t,width:n})=>({display:"inline-block","> svg":{display:"block",width:B(n,t),height:B(e,t)}}),modifiers:{shouldMirror:{true:{transform:"scaleX(-1)"}},shouldMirrorInRTL:{true:{"&:dir(rtl)":{transform:"scaleX(-1)"}}}}}),dne=(e,t)=>e?e in t?t[e]:typeof e=="number"?ce(e):e:"",pne=je("span")({displayName:"Svg",Component:({shouldMirror:e,shouldMirrorInRTL:t,src:n,type:a,...r},i,o)=>(n==null?void 0:n.type)!==a?(console.error(`Icon type "${n.type}" does not match expected type "${a}"`),null):k.jsx(o,{ref:i,dangerouslySetInnerHTML:{__html:n.svg},...et(r,Nz({shouldMirror:e,shouldMirrorInRTL:t}))})}),sp={System:"system"},fne={name:"check-small",type:sp.System,svg:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon wd-icon-check-small" viewBox="0 0 24 24" role="presentation" focusable="false"><path fill="oklch(0.3523 0 0 / 1)" d="M16.44 7.646a.5.5 0 0 1 .706 0l.707.707a.5.5 0 0 1 0 .707l-.646.645v.001l-6 6a1 1 0 0 1-1.413 0l-1.35-1.35-.005-.003-1.793-1.793a.5.5 0 0 1 0-.707l.707-.707a.5.5 0 0 1 .707 0l2.44 2.44z" class="wd-icon-fill"/>
294
294
  </svg>`,filename:"wd-icon-check-small.svg",category:"Notification",tags:["success","complete","check mark","check box"]},Aw={name:"chevron-right-small",type:sp.System,svg:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon wd-icon-chevron-right-small" viewBox="0 0 24 24" role="presentation" focusable="false"><path fill="oklch(0.3523 0 0 / 1)" d="M9.958 6.112a.5.5 0 0 1 .704.07l1.617 1.976.007.01 2.56 3.128a1 1 0 0 1 0 1.266l-4.184 5.113a.5.5 0 0 1-.704.071l-.775-.633a.5.5 0 0 1-.07-.704l3.666-4.48L9.92 8.437l.001-.001-.808-.988a.5.5 0 0 1 .07-.703z" class="wd-icon-fill"/>
295
295
  </svg>`,filename:"wd-icon-chevron-right-small.svg",category:"Navigation",tags:["navigation","arrow"]},mne={name:"related-actions",type:sp.System,svg:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon wd-icon-related-actions" viewBox="0 0 24 24" role="presentation" focusable="false"><path fill="oklch(0.3523 0 0 / 1)" d="M4 9.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5M12 9.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5M20 9.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5" class="wd-icon-fill"/>
296
- </svg>`,filename:"wd-icon-related-actions.svg",category:"Core",tags:["three","dots","twinkie","more","kebob","menu","dropdown","select","meatballs"]},ee=Le({extends:Nz,vars:{color:"",accentColor:"",backgroundColor:""},base:({size:e,accentColor:t,backgroundColor:n,color:a})=>({"& svg":{width:B(e,Cn.systemIcon.size.lg),height:B(e,Cn.systemIcon.size.lg)},".wd-icon .wd-icon-fill":{fill:B(a,Cn.systemIcon.color.fill)},".wd-icon .wd-icon-accent, & .wd-icon-accent2":{fill:B(t,B(a,Cn.systemIcon.color.accent))},".wd-icon .wd-icon-background":{fill:B(n,"transparent")},"@media (prefers-contrast: more)":{".wd-icon .wd-icon-fill, .wd-icon .wd-icon-accent":{color:"currentColor",fill:"currentColor"}}}),modifiers:{}}),Al=je("span")({displayName:"SystemIcon",Component:({accent:e,background:t,color:n,icon:a,size:r,...i},o,s)=>k.jsx(pne,{as:s,src:a,type:sp.System,ref:o,...et(i,ee({size:dne(r,Cn.systemIcon.size),color:n,accentColor:e,backgroundColor:t}))})}),gne=SX(Iw.as("span"))({position:"relative",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),hne=je("span")({displayName:"ButtonLabel",Component:({children:e,...t},n,a)=>k.jsx(gne,{as:a,ref:n,...t,children:e})}),vne=Le({base:{display:"inline-block"},modifiers:{size:{extraSmall:{[ee.vars.size]:Cn.systemIcon.size.xs},small:{[ee.vars.size]:Cn.systemIcon.size.md},medium:{[ee.vars.size]:Cn.systemIcon.size.md},large:{[ee.vars.size]:Cn.systemIcon.size.lg}}}}),bne=je("span")({Component:({icon:e,size:t="medium",shouldMirrorIcon:n=!1,shouldMirrorIconInRTL:a=!1,...r},i,o)=>e===void 0?null:k.jsx(Al,{ref:i,as:o,icon:e,shouldMirror:n,shouldMirrorInRTL:a,...et(r,vne({size:t}))})}),X={default:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),focus:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),hover:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),active:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),disabled:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius")},j=Le({vars:{background:"",border:"",boxShadowInner:"",boxShadowOuter:"",label:"",opacity:"",borderRadius:""},base:({background:e,border:t,boxShadowInner:n,boxShadowOuter:a,label:r,opacity:i,borderRadius:o})=>({fontFamily:We.default,fontSize:_.fontSize.subtext.lg,lineHeight:_.lineHeight.subtext.lg,letterSpacing:_.letterSpacing.subtext.lg,fontWeight:Ve.bold,backgroundColor:B(X.default.background,B(e,"transparent")),color:B(X.default.label,B(r,O.fg.strong)),borderWidth:ce(1),borderStyle:"solid",gap:_.gap.sm,borderColor:B(X.default.border,B(t,"transparent")),cursor:"pointer",display:"inline-flex",boxShadow:"none",alignItems:"center",justifyContent:"center",outline:`${ce(2)} transparent`,whiteSpace:"nowrap",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",borderRadius:B(X.default.borderRadius,B(o,_.shape.full)),position:"relative",verticalAlign:"middle",overflow:"hidden",[ee.vars.color]:B(X.default.icon,O.fg.strong),transition:"box-shadow 120ms linear, border 120ms linear, background-color 120ms linear, color 120ms linear","&:disabled, &:disabled:active, &.disabled":{cursor:"default",boxShadow:"none",opacity:B(X.default.opacity,B(i,Bt.full))},"&:focus-visible, &.focus":{backgroundColor:B(X.focus.background,B(e,"transparent")),borderColor:B(X.focus.border,B(t,"transparent")),color:B(X.focus.label,B(r,O.fg.strong)),[ee.vars.color]:B(X.focus.icon,O.fg.strong),outline:`${ce(2)} solid transparent`,outlineOffset:ce(2),boxShadow:`0 0 0 ${ce(2)} ${B(X.focus.boxShadowInner,B(n,_.color.border.inverse.default))},0 0 0 ${ce(4)} ${B(X.focus.boxShadowOuter,B(a,_.color.brand.focus.primary))}`},"&:hover, &.hover":{backgroundColor:B(X.hover.background,B(e,_.color.surface.contrast.strong)),borderColor:B(X.hover.border,B(t,"transparent")),color:B(X.hover.label,B(r,O.fg.stronger)),[ee.vars.color]:B(X.hover.icon,O.fg.stronger)},"&:hover:active":{transitionDuration:"40ms"},"&:active, &.active":{backgroundColor:B(X.active.background,B(e,"transparent")),borderColor:B(X.active.border,B(t,"transparent")),color:B(X.active.label,B(r,O.fg.strong)),[ee.vars.color]:B(X.active.icon,O.fg.strong)},"&:disabled, &.disabled":{backgroundColor:B(X.disabled.background,B(e,"transparent")),borderColor:B(X.disabled.border,B(t,"transparent")),color:B(X.disabled.label,B(r,O.fg.strong)),[ee.vars.color]:B(X.disabled.icon,"currentColor")},"@media (prefers-contrast: more)":{'&[aria-pressed="true"]':{outline:`${ce(2)} solid transparent`,outlineOffset:`-${ce(1)}`},'&[aria-pressed="true"]:focus-visible, &[aria-pressed="true"].focus':{outline:`${ce(4)} double transparent`,outlineOffset:0}},svg:{pointerEvents:"none"}}),modifiers:{size:{large:{fontSize:_.fontSize.body.sm,lineHeight:_.lineHeight.body.sm,letterSpacing:_.letterSpacing.body.sm,height:_.size.lg,paddingInline:_.padding.xxl,minWidth:$r.size1400},medium:{fontSize:_.fontSize.subtext.lg,lineHeight:_.lineHeight.subtext.lg,letterSpacing:_.letterSpacing.subtext.lg,minWidth:$r.size1200,paddingInline:_.padding.xl,height:_.size.md},small:{fontSize:_.fontSize.subtext.lg,lineHeight:_.lineHeight.subtext.lg,letterSpacing:_.letterSpacing.subtext.lg,height:_.size.sm,minWidth:$r.size1000,paddingInline:_.padding.md,gap:_.gap.xs},extraSmall:{fontSize:_.fontSize.subtext.md,lineHeight:_.lineHeight.subtext.md,letterSpacing:_.letterSpacing.subtext.md,height:_.size.xs,minWidth:"auto",paddingInline:_.padding.sm,gap:_.gap.xs}},grow:{true:{width:"100%",maxWidth:"100%"}},iconPosition:{only:{padding:0},start:{},end:{}}},compound:[{modifiers:{size:"large",iconPosition:"only"},styles:{minWidth:_.size.lg}},{modifiers:{size:"large",iconPosition:"start"},styles:{paddingInlineStart:_.padding.xl,paddingInlineEnd:_.padding.xxl}},{modifiers:{size:"large",iconPosition:"end"},styles:{paddingInlineStart:_.padding.xxl,paddingInlineEnd:_.padding.xl}},{modifiers:{size:"medium",iconPosition:"only"},styles:{minWidth:_.size.md}},{modifiers:{size:"medium",iconPosition:"start"},styles:{paddingInlineStart:_.padding.lg,paddingInlineEnd:_.padding.xl}},{modifiers:{size:"medium",iconPosition:"end"},styles:{paddingInlineStart:_.padding.xl,paddingInlineEnd:_.padding.lg}},{modifiers:{size:"small",iconPosition:"only"},styles:{minWidth:_.size.sm}},{modifiers:{size:"small",iconPosition:"start"},styles:{paddingInlineStart:_.padding.sm,paddingInlineEnd:_.padding.md}},{modifiers:{size:"small",iconPosition:"end"},styles:{paddingInlineStart:_.padding.md,paddingInlineEnd:_.padding.sm}},{modifiers:{size:"extraSmall",iconPosition:"only"},styles:{minWidth:_.size.xs}},{modifiers:{size:"extraSmall",iconPosition:"start"},styles:{paddingInlineStart:_.padding.xs,paddingInlineEnd:_.padding.sm}},{modifiers:{size:"extraSmall",iconPosition:"end"},styles:{paddingInlineStart:_.padding.sm,paddingInlineEnd:_.padding.xs}}]}),ri=je("button")({displayName:"BaseButton",Component:({children:e,size:t,fillIcon:n,grow:a,iconPosition:r,icon:i,colors:o,...s},l,u)=>k.jsx(u,{ref:l,type:"button",...Zt(s,[j({size:t,iconPosition:r,grow:a}),X.default((o==null?void 0:o.default)||{}),X.focus((o==null?void 0:o.focus)||{}),X.hover((o==null?void 0:o.hover)||{}),X.active((o==null?void 0:o.active)||{}),X.disabled((o==null?void 0:o.disabled)||{})]),children:e}),subComponents:{Icon:bne,Label:hne}}),yne=Le({base:{fontFamily:We.default,textDecoration:"underline",color:_.color.fg.info.default,cursor:"pointer",borderRadius:ce(2),padding:`0 ${ce(2)} `,margin:"0 -2px",transition:"color 0.15s,background-color 0.15s",wordBreak:"break-word","&:hover, &.hover":{color:_.color.fg.info.strong,background:_.color.surface.alt.default},"&:focus, &.focus, &:focus-visible":{boxShadow:`0 0 0 ${ce(2)} ${_.color.brand.focus.primary}`,outline:"none"},"&:active, &.active":{color:_.color.fg.info.strong,background:_.color.surface.alt.default}},modifiers:{variant:{inverse:{color:O.fg.inverse,"&:hover, &.hover":{color:O.fg.inverse,background:"rgba(255, 255, 255, 0.1)"},"&:focus, &.focus, &:focus-visible":{boxShadow:`0 0 0 ${ce(2)} ${O.fg.inverse}`},"&:active, &.active":{color:_.color.fg.info.strong,background:_.color.surface.navigation}},standalone:{textDecoration:"none"},standaloneInverse:{textDecoration:"none",color:O.fg.inverse,"&:hover, &.hover":{color:O.fg.inverse,background:"rgba(255, 255, 255, 0.1)"},"&:focus, &.focus, &:focus-visible":{boxShadow:`0 0 0 ${ce(2)} ${_.color.focus.inverse}`},"&:active, &.active":{color:_.color.fg.info.strong,background:_.color.surface.navigation}}}}}),Sne=je("a")({displayName:"Hyperlink",Component:({children:e,variant:t,...n},a,r)=>k.jsx(r,{ref:a,...et(n,yne({variant:t})),children:e})}),Cz=je("button")({displayName:"Button",Component:({children:e,icon:t,colors:n,iconPosition:a,shouldMirrorIcon:r,shouldMirrorIconInRTL:i,size:o="medium",...s},l,u)=>{const c=a||(t?e?"start":"only":void 0);return k.jsxs(ri,{as:u,ref:l,size:o,icon:t,colors:n,iconPosition:c,...s,children:[t&&c==="start"&&k.jsx(ri.Icon,{size:o,icon:t,shouldMirrorIcon:r,shouldMirrorIconInRTL:i}),e&&k.jsx(ri.Label,{children:e}),t&&c&&["only","end"].includes(c)&&k.jsx(ri.Icon,{size:o,icon:t,shouldMirrorIcon:r,shouldMirrorIconInRTL:i})]})}}),Ene=Le({extends:j,base:{[j.vars.background]:_.color.surface.transparent,[j.vars.borderRadius]:_.shape.full,[j.vars.border]:O.border.input.default,[j.vars.label]:O.fg.default,[ee.vars.color]:B(X.default.icon,"currentColor"),"&:focus-visible, &.focus":{[j.vars.background]:_.color.surface.default,[j.vars.label]:O.fg.strong,[j.vars.boxShadowInner]:_.color.focus.inverse,[j.vars.boxShadowOuter]:_.color.brand.focus.primary,[ee.vars.color]:B(X.focus.icon,"currentColor")},"&:hover, &.hover":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.hover}),[j.vars.label]:O.fg.strong,[j.vars.border]:_.color.border.input.hover,[ee.vars.color]:B(X.hover.icon,"currentColor")},"&:active, &.active":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.pressed}),[j.vars.label]:O.fg.strong,[j.vars.border]:_.color.border.input.hover,[ee.vars.color]:B(X.active.icon,"currentColor")},"&:disabled, &.disabled":{[j.vars.opacity]:Bt.disabled,[j.vars.background]:_.color.surface.transparent,[j.vars.label]:O.fg.default,[ee.vars.color]:B(X.default.icon,"currentColor")}},modifiers:{variant:{inverse:{[j.vars.background]:_.color.surface.transparent,[j.vars.border]:_.color.border.inverse.default,[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.default.icon,"currentColor"),"&:hover, &.hover":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.hover}),[j.vars.border]:_.color.border.inverse.default,[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.hover.icon,"currentColor")},"&:focus-visible, &.focus":{[j.vars.background]:_.color.surface.inverse,[j.vars.border]:O.border.transparent,[j.vars.label]:O.fg.contrast.default,[j.vars.boxShadowInner]:O.border.contrast.default,[j.vars.boxShadowOuter]:_.color.focus.inverse,[ee.vars.color]:B(X.focus.icon,"currentColor")},"&:active, &.active":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.pressed}),[j.vars.border]:_.color.border.inverse.default,[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.active.icon,"currentColor")},"&:disabled, &.disabled":{[j.vars.opacity]:Bt.disabled,[j.vars.background]:_.color.surface.transparent,[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.default.icon,"currentColor")}}}}}),Oz=je("button")({displayName:"SecondaryButton",Component:({children:e,variant:t,size:n,iconPosition:a,grow:r,cs:i,...o},s,l)=>k.jsx(Cz,{as:l,ref:s,iconPosition:a,size:n,grow:r,cs:[Ene({variant:t,iconPosition:a,grow:r,size:n}),i],...o,children:e})}),_ne=Le({extends:j,base:{paddingInline:_.padding.xs,minWidth:"auto",borderWidth:ce(2),[j.vars.borderRadius]:_.shape.full,[j.vars.background]:_.color.surface.transparent,[j.vars.label]:O.fg.default,[ee.vars.color]:B(X.default.icon,"currentColor"),"&:focus-visible, &.focus":{[j.vars.background]:_.color.surface.transparent,[j.vars.label]:O.fg.default,[ee.vars.color]:B(X.focus.icon,"currentColor"),[j.vars.border]:O.border.transparent,[j.vars.label]:O.fg.contrast.default,...pN({width:2,separation:0,innerColor:_.color.focus.inverse,outerColor:_.color.brand.focus.primary})},"&:hover, &.hover":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.hover}),[j.vars.label]:O.fg.strong,[ee.vars.color]:O.fg.strong,textDecoration:"underline"},"&:active, &.active":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.pressed}),[j.vars.label]:O.fg.strong,[ee.vars.color]:B(X.active.icon,"currentColor"),textDecoration:"underline"},"&:disabled, &.disabled":{textDecoration:"none",[j.vars.opacity]:Bt.disabled,[j.vars.background]:_.color.surface.transparent,[j.vars.label]:O.fg.default,[ee.vars.color]:B(X.default.icon,"currentColor")}},modifiers:{iconPosition:{only:{padding:0,[ee.vars.color]:B(X.default.icon,O.fg.default),"&:focus-visible, &.focus":{[ee.vars.color]:B(X.focus.icon,O.fg.strong)},"&:hover, &.hover":{[ee.vars.color]:B(X.hover.icon,O.fg.strong)},"&:active, &.active":{[ee.vars.color]:B(X.active.icon,O.fg.strong)},"&:disabled, &.disabled":{[j.vars.opacity]:Bt.disabled,[ee.vars.color]:B(X.disabled.icon,O.fg.default)}},start:{},end:{}},variant:{inverse:{[j.vars.background]:_.color.surface.transparent,[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.default.icon,"currentColor"),"&:hover, &.hover":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.hover}),[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.hover.icon,"currentColor")},"&:focus-visible, &.focus":{[j.vars.background]:_.color.surface.inverse,[j.vars.label]:O.fg.contrast.default,[ee.vars.color]:B(X.focus.icon,"currentColor"),...pN({width:2,separation:2,innerColor:O.border.contrast.default,outerColor:_.color.focus.inverse})},"&:active, &.active":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.pressed}),[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.active.icon,"currentColor")},"&:disabled, &.disabled":{[j.vars.opacity]:Bt.disabled,[j.vars.background]:_.color.surface.transparent,[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.default.icon,"currentColor")}}}},compound:[{modifiers:{size:"large",iconPosition:"only"},styles:{minWidth:_.size.lg}},{modifiers:{size:"large",iconPosition:"start"},styles:{paddingInlineStart:_.padding.xs,paddingInlineEnd:_.padding.sm}},{modifiers:{size:"large",iconPosition:"end"},styles:{paddingInlineStart:_.padding.sm,paddingInlineEnd:_.padding.xs}},{modifiers:{size:"medium",iconPosition:"only"},styles:{minWidth:_.size.md}},{modifiers:{size:"medium",iconPosition:"start"},styles:{paddingInlineStart:_.padding.xs,paddingInlineEnd:_.padding.sm}},{modifiers:{size:"medium",iconPosition:"end"},styles:{paddingInlineStart:_.padding.sm,paddingInlineEnd:_.padding.xs}},{modifiers:{size:"small",iconPosition:"only"},styles:{minWidth:_.size.sm}},{modifiers:{size:"small",iconPosition:"start"},styles:{paddingInlineStart:_.padding.xs,paddingInlineEnd:_.padding.sm}},{modifiers:{size:"small",iconPosition:"end"},styles:{paddingInlineStart:_.padding.sm,paddingInlineEnd:_.padding.xs}},{modifiers:{size:"extraSmall",iconPosition:"only"},styles:{minWidth:_.size.xs}},{modifiers:{size:"extraSmall",iconPosition:"start"},styles:{paddingInlineStart:_.padding.xxs,paddingInlineEnd:_.padding.xs}},{modifiers:{size:"extraSmall",iconPosition:"end"},styles:{paddingInlineStart:_.padding.xs,paddingInlineEnd:_.padding.xxs}}]}),wne=je("button")({displayName:"TertiaryButton",Component:({children:e,icon:t,size:n="medium",variant:a,iconPosition:r,grow:i,cs:o,...s},l,u)=>{const c=r||(t?e?"start":"only":void 0);return k.jsx(Cz,{as:u,ref:l,icon:t,size:n,iconPosition:r,grow:i,cs:[_ne({size:n,variant:a,grow:i,iconPosition:c}),o],...s,children:e})}});var yn="top",Dn="bottom",Mn="right",Sn="left",Nw="auto",Nl=[yn,Dn,Mn,Sn],$i="start",Cw="end",kne="clippingParents",Lz="viewport",yo="popper",Ine="reference",$N=Nl.reduce(function(e,t){return e.concat([t+"-"+$i,t+"-"+Cw])},[]),$z=[].concat(Nl,[Nw]).reduce(function(e,t){return e.concat([t,t+"-"+$i,t+"-"+Cw])},[]),Tne="beforeRead",xne="read",Rne="afterRead",Ane="beforeMain",Nne="main",Cne="afterMain",One="beforeWrite",Lne="write",$ne="afterWrite",Dne=[Tne,xne,Rne,Ane,Nne,Cne,One,Lne,$ne];function Un(e){return e?(e.nodeName||"").toLowerCase():null}function zn(e){if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ms(e){var t=zn(e).Element;return e instanceof t||e instanceof Element}function tr(e){var t=zn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Mne(e){var t=zn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Pne(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!tr(i)||!Un(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(o){var s=r[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function Une(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var r=t.elements[a],i=t.attributes[a]||{},o=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),s=o.reduce(function(l,u){return l[u]="",l},{});!tr(r)||!Un(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const zne={name:"applyStyles",enabled:!0,phase:"write",fn:Pne,effect:Une,requires:["computeStyles"]};function Qn(e){return e.split("-")[0]}function Ow(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Dz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Mne(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function hr(e){return zn(e).getComputedStyle(e)}function Fne(e){return["table","td","th"].indexOf(Un(e))>=0}function xr(e){return((ms(e)?e.ownerDocument:e.document)||window.document).documentElement}function lp(e){return Un(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||xr(e)}function DN(e){if(!tr(e)||hr(e).position==="fixed")return null;var t=e.offsetParent;if(t){var n=xr(t);if(Un(t)==="body"&&hr(t).position==="static"&&hr(n).position!=="static")return n}return t}function Bne(e){for(var t=lp(e);tr(t)&&["html","body"].indexOf(Un(t))<0;){var n=hr(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function Cl(e){for(var t=zn(e),n=DN(e);n&&Fne(n)&&hr(n).position==="static";)n=DN(n);return n&&Un(n)==="body"&&hr(n).position==="static"?t:n||Bne(e)||t}function Lw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ou(e,t,n){return Math.max(e,Math.min(t,n))}function Mz(){return{top:0,right:0,bottom:0,left:0}}function Pz(e){return Object.assign(Object.assign({},Mz()),e)}function Uz(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}function jne(e){var t,n=e.state,a=e.name,r=n.elements.arrow,i=n.modifiersData.popperOffsets,o=Qn(n.placement),s=Lw(o),l=[Sn,Mn].indexOf(o)>=0,u=l?"height":"width";if(!(!r||!i)){var c=n.modifiersData[a+"#persistent"].padding,d=Ow(r),p=s==="y"?yn:Sn,g=s==="y"?Dn:Mn,v=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],y=i[s]-n.rects.reference[s],I=Cl(r),h=I?s==="y"?I.clientHeight||0:I.clientWidth||0:0,f=v/2-y/2,m=c[p],b=h-d[u]-c[g],E=h/2-d[u]/2+f,w=Ou(m,E,b),T=s;n.modifiersData[a]=(t={},t[T]=w,t.centerOffset=w-E,t)}}function qne(e){var t=e.state,n=e.options,a=e.name,r=n.element,i=r===void 0?"[data-popper-arrow]":r,o=n.padding,s=o===void 0?0:o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Dz(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[a+"#persistent"]={padding:Pz(typeof s!="number"?s:Uz(s,Nl))}))}const Gne={name:"arrow",enabled:!0,phase:"main",fn:jne,effect:qne,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var Hne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wne(e){var t=e.x,n=e.y,a=window,r=a.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}function MN(e){var t,n=e.popper,a=e.popperRect,r=e.placement,i=e.offsets,o=e.position,s=e.gpuAcceleration,l=e.adaptive,u=Wne(i),c=u.x,d=u.y,p=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),v=Sn,y=yn,I=window;if(l){var h=Cl(n);h===zn(n)&&(h=xr(n)),r===yn&&(y=Dn,d-=h.clientHeight-a.height,d*=s?1:-1),r===Sn&&(v=Mn,c-=h.clientWidth-a.width,c*=s?1:-1)}var f=Object.assign({position:o},l&&Hne);if(s){var m;return Object.assign(Object.assign({},f),{},(m={},m[y]=g?"0":"",m[v]=p?"0":"",m.transform=(I.devicePixelRatio||1)<2?"translate("+c+"px, "+d+"px)":"translate3d("+c+"px, "+d+"px, 0)",m))}return Object.assign(Object.assign({},f),{},(t={},t[y]=g?d+"px":"",t[v]=p?c+"px":"",t.transform="",t))}function Vne(e){var t=e.state,n=e.options,a=n.gpuAcceleration,r=a===void 0?!0:a,i=n.adaptive,o=i===void 0?!0:i,s={placement:Qn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),MN(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),MN(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})}const Zne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vne,data:{}};var pu={passive:!0};function Yne(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,i=r===void 0?!0:r,o=a.resize,s=o===void 0?!0:o,l=zn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,pu)}),s&&l.addEventListener("resize",n.update,pu),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,pu)}),s&&l.removeEventListener("resize",n.update,pu)}}const Kne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Yne,data:{}};var Xne={left:"right",right:"left",bottom:"top",top:"bottom"};function Lu(e){return e.replace(/left|right|bottom|top/g,function(t){return Xne[t]})}var Jne={start:"end",end:"start"};function PN(e){return e.replace(/start|end/g,function(t){return Jne[t]})}function gs(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function $w(e){var t=zn(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function Dw(e){return gs(xr(e)).left+$w(e).scrollLeft}function Qne(e){var t=zn(e),n=xr(e),a=t.visualViewport,r=n.clientWidth,i=n.clientHeight,o=0,s=0;return a&&(r=a.width,i=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=a.offsetLeft,s=a.offsetTop)),{width:r,height:i,x:o+Dw(e),y:s}}function ere(e){var t=xr(e),n=$w(e),a=e.ownerDocument.body,r=Math.max(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-n.scrollLeft+Dw(e),s=-n.scrollTop;return hr(a||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,a?a.clientWidth:0)-r),{width:r,height:i,x:o,y:s}}function Mw(e){var t=hr(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function zz(e){return["html","body","#document"].indexOf(Un(e))>=0?e.ownerDocument.body:tr(e)&&Mw(e)?e:zz(lp(e))}function Fo(e,t){t===void 0&&(t=[]);var n=zz(e),a=Un(n)==="body",r=zn(n),i=a?[r].concat(r.visualViewport||[],Mw(n)?n:[]):n,o=t.concat(i);return a?o:o.concat(Fo(lp(i)))}function ry(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tre(e){var t=gs(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function UN(e,t){return t===Lz?ry(Qne(e)):tr(t)?tre(t):ry(ere(xr(e)))}function nre(e){var t=Fo(lp(e)),n=["absolute","fixed"].indexOf(hr(e).position)>=0,a=n&&tr(e)?Cl(e):e;return ms(a)?t.filter(function(r){return ms(r)&&Dz(r,a)&&Un(r)!=="body"}):[]}function rre(e,t,n){var a=t==="clippingParents"?nre(e):[].concat(t),r=[].concat(a,[n]),i=r[0],o=r.reduce(function(s,l){var u=UN(e,l);return s.top=Math.max(u.top,s.top),s.right=Math.min(u.right,s.right),s.bottom=Math.min(u.bottom,s.bottom),s.left=Math.max(u.left,s.left),s},UN(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function hs(e){return e.split("-")[1]}function Fz(e){var t=e.reference,n=e.element,a=e.placement,r=a?Qn(a):null,i=a?hs(a):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(r){case yn:l={x:o,y:t.y-n.height};break;case Dn:l={x:o,y:t.y+t.height};break;case Mn:l={x:t.x+t.width,y:s};break;case Sn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=r?Lw(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case $i:l[u]=Math.floor(l[u])-Math.floor(t[c]/2-n[c]/2);break;case Cw:l[u]=Math.floor(l[u])+Math.ceil(t[c]/2-n[c]/2);break}}return l}function Di(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=a===void 0?e.placement:a,i=n.boundary,o=i===void 0?kne:i,s=n.rootBoundary,l=s===void 0?Lz:s,u=n.elementContext,c=u===void 0?yo:u,d=n.altBoundary,p=d===void 0?!1:d,g=n.padding,v=g===void 0?0:g,y=Pz(typeof v!="number"?v:Uz(v,Nl)),I=c===yo?Ine:yo,h=e.elements.reference,f=e.rects.popper,m=e.elements[p?I:c],b=rre(ms(m)?m:m.contextElement||xr(e.elements.popper),o,l),E=gs(h),w=Fz({reference:E,element:f,placement:r}),T=ry(Object.assign(Object.assign({},f),w)),C=c===yo?T:E,L={top:b.top-C.top+y.top,bottom:C.bottom-b.bottom+y.bottom,left:b.left-C.left+y.left,right:C.right-b.right+y.right},M=e.modifiersData.offset;if(c===yo&&M){var V=M[r];Object.keys(L).forEach(function(ne){var re=[Mn,Dn].indexOf(ne)>=0?1:-1,Ee=[yn,Dn].indexOf(ne)>=0?"y":"x";L[ne]+=V[Ee]*re})}return L}function are(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?$z:l,c=hs(a),d=c?s?$N:$N.filter(function(v){return hs(v)===c}):Nl,p=d.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=d);var g=p.reduce(function(v,y){return v[y]=Di(e,{placement:y,boundary:r,rootBoundary:i,padding:o})[Qn(y)],v},{});return Object.keys(g).sort(function(v,y){return g[v]-g[y]})}function ire(e){if(Qn(e)===Nw)return[];var t=Lu(e);return[PN(e),t,PN(t)]}function ore(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,v=g===void 0?!0:g,y=n.allowedAutoPlacements,I=t.options.placement,h=Qn(I),f=h===I,m=l||(f||!v?[Lu(I)]:ire(I)),b=[I].concat(m).reduce(function(ve,$e){return ve.concat(Qn($e)===Nw?are(t,{placement:$e,boundary:c,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:y}):$e)},[]),E=t.rects.reference,w=t.rects.popper,T=new Map,C=!0,L=b[0],M=0;M<b.length;M++){var V=b[M],ne=Qn(V),re=hs(V)===$i,Ee=[yn,Dn].indexOf(ne)>=0,Ie=Ee?"width":"height",he=Di(t,{placement:V,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),Te=Ee?re?Mn:Sn:re?Dn:yn;E[Ie]>w[Ie]&&(Te=Lu(Te));var D=Lu(Te),q=[];if(i&&q.push(he[ne]<=0),s&&q.push(he[Te]<=0,he[D]<=0),q.every(function(ve){return ve})){L=V,C=!1;break}T.set(V,q)}if(C)for(var G=v?3:1,Z=function($e){var Me=b.find(function(tt){var un=T.get(tt);if(un)return un.slice(0,$e).every(function(Oa){return Oa})});if(Me)return L=Me,"break"},K=G;K>0;K--){var Ye=Z(K);if(Ye==="break")break}t.placement!==L&&(t.modifiersData[a]._skip=!0,t.placement=L,t.reset=!0)}}const sre={name:"flip",enabled:!0,phase:"main",fn:ore,requiresIfExists:["offset"],data:{_skip:!1}};function zN(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function FN(e){return[yn,Mn,Dn,Sn].some(function(t){return e[t]>=0})}function lre(e){var t=e.state,n=e.name,a=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=Di(t,{elementContext:"reference"}),s=Di(t,{altBoundary:!0}),l=zN(o,a),u=zN(s,r,i),c=FN(l),d=FN(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const ure={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lre};function cre(e,t,n){var a=Qn(e),r=[Sn,yn].indexOf(a)>=0?-1:1,i=typeof n=="function"?n(Object.assign(Object.assign({},t),{},{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*r,[Sn,Mn].indexOf(a)>=0?{x:s,y:o}:{x:o,y:s}}function dre(e){var t=e.state,n=e.options,a=e.name,r=n.offset,i=r===void 0?[0,0]:r,o=$z.reduce(function(c,d){return c[d]=cre(d,t.rects,i),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[a]=o}const pre={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dre};function fre(e){var t=e.state,n=e.name;t.modifiersData[n]=Fz({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const mre={name:"popperOffsets",enabled:!0,phase:"read",fn:fre,data:{}};function gre(e){return e==="x"?"y":"x"}function hre(e){var t=e.state,n=e.options,a=e.name,r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,g=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,I=Di(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),h=Qn(t.placement),f=hs(t.placement),m=!f,b=Lw(h),E=gre(b),w=t.modifiersData.popperOffsets,T=t.rects.reference,C=t.rects.popper,L=typeof y=="function"?y(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):y,M={x:0,y:0};if(w){if(i){var V=b==="y"?yn:Sn,ne=b==="y"?Dn:Mn,re=b==="y"?"height":"width",Ee=w[b],Ie=w[b]+I[V],he=w[b]-I[ne],Te=g?-C[re]/2:0,D=f===$i?T[re]:C[re],q=f===$i?-C[re]:-T[re],G=t.elements.arrow,Z=g&&G?Ow(G):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Mz(),Ye=K[V],ve=K[ne],$e=Ou(0,T[re],Z[re]),Me=m?T[re]/2-Te-$e-Ye-L:D-$e-Ye-L,tt=m?-T[re]/2+Te+$e+ve+L:q+$e+ve+L,un=t.elements.arrow&&Cl(t.elements.arrow),Oa=un?b==="y"?un.clientTop||0:un.clientLeft||0:0,La=t.modifiersData.offset?t.modifiersData.offset[t.placement][b]:0,$a=w[b]+Me-La-Oa,cp=w[b]+tt-La,Da=Ou(g?Math.min(Ie,$a):Ie,Ee,g?Math.max(he,cp):he);w[b]=Da,M[b]=Da-Ee}if(s){var hF=b==="x"?yn:Sn,vF=b==="x"?Dn:Mn,$l=w[E],bF=$l+I[hF],yF=$l-I[vF],zw=Ou(bF,$l,yF);w[E]=zw,M[E]=zw-$l}t.modifiersData[a]=M}}const vre={name:"preventOverflow",enabled:!0,phase:"main",fn:hre,requiresIfExists:["offset"]};function bre(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yre(e){return e===zn(e)||!tr(e)?$w(e):bre(e)}function Sre(e,t,n){n===void 0&&(n=!1);var a=xr(t),r=gs(e),i=tr(t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!n)&&((Un(t)!=="body"||Mw(a))&&(o=yre(t)),tr(t)?(s=gs(t),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Dw(a))),{x:r.left+o.scrollLeft-s.x,y:r.top+o.scrollTop-s.y,width:r.width,height:r.height}}function Ere(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&r(l)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),a}function _re(e){var t=Ere(e);return Dne.reduce(function(n,a){return n.concat(t.filter(function(r){return r.phase===a}))},[])}function wre(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kre(e){var t=e.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign(Object.assign(Object.assign({},r),a),{},{options:Object.assign(Object.assign({},r.options),a.options),data:Object.assign(Object.assign({},r.data),a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var BN={placement:"bottom",modifiers:[],strategy:"absolute"};function jN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Ire(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?BN:r;return function(s,l,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},BN),i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,g={state:c,setOptions:function(h){y(),c.options=Object.assign(Object.assign(Object.assign({},i),c.options),h),c.scrollParents={reference:ms(s)?Fo(s):s.contextElement?Fo(s.contextElement):[],popper:Fo(l)};var f=_re(kre([].concat(a,c.options.modifiers)));return c.orderedModifiers=f.filter(function(m){return m.enabled}),v(),g.update()},forceUpdate:function(){if(!p){var h=c.elements,f=h.reference,m=h.popper;if(jN(f,m)){c.rects={reference:Sre(f,Cl(m),c.options.strategy==="fixed"),popper:Ow(m)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(M){return c.modifiersData[M.name]=Object.assign({},M.data)});for(var b=0;b<c.orderedModifiers.length;b++){if(c.reset===!0){c.reset=!1,b=-1;continue}var E=c.orderedModifiers[b],w=E.fn,T=E.options,C=T===void 0?{}:T,L=E.name;typeof w=="function"&&(c=w({state:c,options:C,name:L,instance:g})||c)}}}},update:wre(function(){return new Promise(function(I){g.forceUpdate(),I(c)})}),destroy:function(){y(),p=!0}};if(!jN(s,l))return g;g.setOptions(u).then(function(I){!p&&u.onFirstUpdate&&u.onFirstUpdate(I)});function v(){c.orderedModifiers.forEach(function(I){var h=I.name,f=I.options,m=f===void 0?{}:f,b=I.effect;if(typeof b=="function"){var E=b({state:c,name:h,instance:g,options:m}),w=function(){};d.push(E||w)}})}function y(){d.forEach(function(I){return I()}),d=[]}return g}}var Tre=[Kne,mre,Zne,zne,pre,sre,vre,Gne,ure],xre=Ire({defaultModifiers:Tre});const Rre=["top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","auto","auto-start","auto-end"],Are=e=>{const[t,n]=e.split("-");let a;switch(t){case"top":a="bottom";break;case"bottom":a="top";break;case"left":a="right";break;case"right":a="left";break;default:a="auto"}return n&&(a=Rre.find(r=>r.includes(`${a}-${n}`))??a),a},Bz=(e,t,n)=>{if(e.length===0||e[0].split("-")[0]==="auto")return n;const{reference:a,popper:r}=t.rects,i=Di({...t,placement:e[0]}),o=/left|right/.test(e[0].split("-")[0])?"horizontal":"vertical",s=(i.top>0||i.bottom>0||i.left>0||i.right>0)&&(o==="horizontal"?r.height/2-i.top<a.height||r.height/2-i.bottom<a.height:r.width-i.left<a.width||r.width-i.right<a.width),l=e[0].split("-")[0];return!s&&i[l]<=0?e[0]:Bz(e.slice(1),t,n)},qN="fallbackModifier",GN={name:qN,enabled:!0,phase:"main",data:{_skip:!1},fn({state:e,options:t}){const n=e.options.placement,{fallbackPlacements:a}=t,r=[n,Are(n),...a||[]],i=Bz(r,e,n);e.placement!==i&&(e.modifiersData[qN]._skip=!0,e.placement=i,e.reset=!0)}},Pw=["top","right","bottom","left"],up=W.forwardRef(({portal:e=!0,open:t=!0,...n},a)=>t?k.jsx(Ore,{ref:a,portal:e,...n}):null),Nre=e=>{if(e!==null)return"current"in e?e.current||void 0:e},Cre={},Ore=W.forwardRef(({anchorElement:e,getAnchorClientRect:t,popperOptions:n=Cre,placement:a="bottom",fallbackPlacements:r=Pw,onPlacementChange:i,children:o,portal:s,popperInstanceRef:l},u)=>{const c=W.useRef(!0),{localRef:d,elementRef:p}=Tr(l),[g,v]=W.useState(a),y=sne(u,e),I=W.useRef(a);I.current=g;const h=W.useMemo(()=>({name:"setPlacement",enabled:!0,phase:"afterWrite",fn({state:m}){v(m.placement),i==null||i(m.placement)}}),[v,i]);W.useLayoutEffect(()=>{const m=t?{getBoundingClientRect:t}:Nre(e??null);if(!m){console.warn("Popper: neither anchorElement or getAnchorClientRect was defined. A valid anchorElement or getAnchorClientRect callback must be provided to render a Popper");return}if(y.current){const b=xre(m,y.current,{placement:a,...n,modifiers:[h,{...GN,options:{fallbackPlacements:r}},...n.modifiers||[]]});return p(b),()=>{b==null||b.destroy()}}},[e,t,y]),W.useLayoutEffect(()=>{var m;c.current||(m=d.current)==null||m.setOptions({placement:a,...n,modifiers:[h,{...GN,options:{fallbackPlacements:r}},...n.modifiers||[]]}),c.current=!1},[n,a,r,h,d]);const f=k.jsx(k.Fragment,{children:Lre(o)?o({placement:g}):o});return s?Jy.createPortal(f,y.current):f});function Lre(e){return typeof e=="function"}const pt=Pn({defaultConfig:{...Yn.defaultConfig,...ia.defaultConfig,mode:"single",shouldVirtualize:!1},requiredConfig:{...Yn.requiredConfig,...ia.requiredConfig},contextOverride:ia.Context})(e=>{const t=Yn(Yn.mergeConfig(e,{selection:e.mode==="single"?XU:Wee})),n=ia(ia.mergeConfig(e,{id:t.state.id,onHide(){t.state.indexRef.current=0}}));Iz(n),Tz(n);const a={mode:e.mode,...t.state,...n.state},r={...t.events,...n.events};return{...t,...n,state:a,events:r,UNSTABLE_parentModel:e.UNSTABLE_parentModel}}),$re=Le({vars:{minWidth:ce(1),transformOriginVertical:"top",transformOriginHorizontal:"left",maxHeight:""},base:({transformOriginVertical:e,transformOriginHorizontal:t,minWidth:n,maxHeight:a})=>({fontFamily:We.default,fontWeight:Ve.normal,fontSize:_.fontSize.subtext.lg,lineHeight:_.lineHeight.subtext.lg,letterSpacing:_.letterSpacing.subtext.lg,color:O.fg.default,position:"relative",display:"flex",flexDirection:"column",transition:"transform ease-out 150ms",padding:_.padding.xxs,borderRadius:_.shape.xxl,maxWidth:Hn.subtract("100vw",_.size.sm),boxShadow:OU[3],minWidth:n,maxHeight:a,transformOrigin:`${e} ${t}`,".wd-no-animation &":{animation:"none"}})}),Dre=ye()(()=>({})),jz=ot("div")({displayName:"Menu.Card",modelHook:pt,elemPropsHook:Dre})(({minWidth:e,maxHeight:t,...n},a,r)=>{const i=W.useMemo(()=>Rw(r.state.placement||"bottom"),[r.state.placement]);return k.jsx(Qte,{as:a,...Zt(n,$re({minWidth:typeof e=="number"?ce(e):e,maxHeight:typeof t=="number"?ce(t):t,transformOriginVertical:i.vertical,transformOriginHorizontal:i.horizontal})),children:n.children})}),Mre=Le({base:{display:"block",height:ce(1),border:"none",borderTop:`${ce(1)} solid ${_.color.border.default}`,margin:`${_.gap.sm} ${_.gap.md}`}}),qz=je("hr")({displayName:"Menu.Divider",Component({...e},t,n){return k.jsx(n,{ref:t,...et(e,Mre())})}});var Pre=function(e){return Object.prototype.hasOwnProperty.call(e,"props")},Ure=function(e,t){return e+vs(t)},vs=function(e){return e===null||typeof e=="boolean"||typeof e>"u"?"":typeof e=="number"?e.toString():typeof e=="string"?e:Array.isArray(e)?e.reduce(Ure,""):Pre(e)&&Object.prototype.hasOwnProperty.call(e.props,"children")?vs(e.props.children):""};vs.default=vs;var zre=vs;const Fre=Ec(zre),HN={vertical:"bottom",horizontal:"center"},ay=qa("positionX","positionY"),Bre=DQ({"0%":{opacity:0,transform:`translate(${ay.positionX}, ${ay.positionY})`},"100%":{opacity:1,transform:"translate(0)"}}),jre=Le({vars:{tooltipTransformOriginHorizontal:"",tooltipTransformOriginVertical:""},base:({tooltipTransformOriginHorizontal:e,tooltipTransformOriginVertical:t})=>({fontFamily:We.default,fontWeight:Ve.normal,fontSize:_.fontSize.subtext.md,lineHeight:_.lineHeight.subtext.md,letterSpacing:_.letterSpacing.subtext.md,display:"inline-flex",position:"relative",padding:_.padding.sm,color:O.fg.inverse,animationName:Bre,animationDuration:"150ms",animationTimingFunction:"ease-out",transformOrigin:`${t} ${e}`,a:{color:O.fg.inverse,textDecoration:"underline"},"&:before":{content:'""',borderRadius:_.shape.md,outline:`${ce(1)} solid transparent`,outlineOffset:`-${ce(1)}`,zIndex:-1,margin:_.gap.xs,backgroundColor:_.color.surface.contrast.default,position:"absolute",top:0,left:0,right:0,bottom:0,boxShadow:OU[2]},"[data-popper-reference-hidden] &":{visibility:"hidden",pointerEvents:"none"},'[data-popper-placement="top-start"] &, [data-popper-placement="bottom-start"] &':{left:Hn.negate($r.size50)},'[data-popper-placement="top-end"] &, [data-popper-placement="bottom-end"] &':{right:Hn.negate($r.size50)},'[data-popper-placement="left-start"] &, [data-popper-placement="right-start"] &':{top:Hn.negate($r.size50)},'[data-popper-placement="left-end"] &, [data-popper-placement="right-end"] &':{bottom:Hn.negate($r.size50)}}),modifiers:{elementHasFocus:{true:{padding:Hn.subtract(_.padding.md,Hn.divide(_.padding.xxs,2)),"&:before":{margin:$r.size75}}}}}),Gz=je("div")({displayName:"TooltipContainer",Component:({children:e,transformOrigin:t=HN,elementHasFocus:n=!1,...a},r,i)=>{const o=nee(t||HN,_.gap.sm);return k.jsx(i,{ref:r,...Zt(a,[jre({tooltipTransformOriginHorizontal:t==null?void 0:t.horizontal,tooltipTransformOriginVertical:t==null?void 0:t.vertical,elementHasFocus:n}),ay({positionX:o.x,positionY:o.y})]),children:e})}}),WN=(e,t=0)=>{const n=W.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return W.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},qre=e=>{const t=e.tagName.toLowerCase(),n=e.getAttribute("tabindex");switch(t){case"button":case"input":case"select":case"textarea":case"details":return!0;default:return n?Number(n)>=0:!1}};function Hz({type:e="label",titleText:t="",showDelay:n=300,hideDelay:a=100}={}){const r=W.useRef(!1),i=ia(),[o,s]=W.useState(null),l=rp(),u=WN(i.events.hide,a),c=WN(i.events.show,n),d=()=>{u.start(),c.clear()},p=()=>{c.start(),u.clear()},g=f=>{s(f.currentTarget),p()},v=f=>{r.current||g(f),r.current=!1},y=f=>{r.current=!0,qre(f.currentTarget)&&i.events.hide()};Tz(i),Iz(i),rne(i),ane(i);const I=i.state.visibility!=="hidden",h={"aria-describedby":e==="describe"&&I?l:void 0,"aria-description":e==="description"?t:void 0,"aria-label":e==="label"?t:void 0,onMouseEnter:g,onMouseLeave:d,onMouseDown:y,onFocus:v,onBlur:d};return h["aria-describedby"]===void 0&&delete h["aria-describedby"],{targetProps:h,popperProps:{open:I,anchorElement:o,ref:i.state.stackRef},tooltipProps:{id:e==="describe"&&I?l:void 0,role:"tooltip",onMouseEnter:p,onMouseLeave:d}}}function Gre(e,t,n=Object.keys(t)){return n.reduce((a,r)=>(typeof e[r]=="function"?a[r]=Ew(t[r],e[r]):a[r]=t[r],a),{})}const Hre=je("div")({displayName:"Tooltip",Component({type:e="label",placement:t="top",title:n,children:a,showDelay:r=300,hideDelay:i=100,fallbackPlacements:o=Pw,...s}){const l=Fre(n),{targetProps:u,popperProps:c,tooltipProps:d}=Hz({type:e,titleText:l,showDelay:r,hideDelay:i}),[p,g]=W.useState(!1),{localRef:v}=Tr();return W.useEffect(()=>{const y=v.current;if(!y)return;const I=()=>{g(y.matches(":focus-visible")||y.classList.contains("focus"))};return I(),y.addEventListener("focus",I),y.addEventListener("blur",I),()=>{y.removeEventListener("focus",I),y.removeEventListener("blur",I)}},[v]),k.jsxs(W.Fragment,{children:[W.cloneElement(a,{...u,...Gre(a.props,u),.../^(muted|describe)$/.test(e)&&a.props["aria-label"]?{"aria-label":a.props["aria-label"]}:{}}),k.jsx(up,{placement:t,fallbackPlacements:o,...c,children:({placement:y})=>{const I=Rw(y);return k.jsx(Gz,{transformOrigin:I,...et(s),...d,elementHasFocus:p,children:n})}})]})}}),Wz=e=>{const t=getComputedStyle(e);if(t.overflow==="auto"||t.overflow==="scroll"||t.overflow==="clip"||t.overflow==="hidden")return e;if(e.children){for(let n=0;n<e.children.length;n++){const a=Wz(e.children[n]);if(a)return a}return null}return null},Vz=e=>{const t=getComputedStyle(e);if(t.textOverflow==="ellipsis"||Number(t.webkitLineClamp)>0)return e;for(let n=0;n<e.children.length;n++){const a=Vz(e.children[n]);if(a)return a}return null},VN=e=>{const t=Vz(e)||Wz(e);return t?t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight:!1};function Wre(e,t,n=Object.keys(t)){return n.reduce((a,r)=>(typeof e[r]=="function"?a[r]=Ew(t[r],e[r]):a[r]=t[r],a),{})}const Ol=({placement:e="top",fallbackPlacements:t=Pw,children:n,...a})=>{const[r,i]=W.useState(""),{targetProps:o,popperProps:s,tooltipProps:l}=Hz({type:"muted"}),u=d=>{const p=d.currentTarget;i(p instanceof HTMLElement?p.innerText:""),VN(p)&&o.onMouseEnter(d)},c=d=>{const p=d.currentTarget;i(p instanceof HTMLElement?p.innerText:""),VN(p)&&o.onFocus(d)};return k.jsxs(W.Fragment,{children:[W.cloneElement(n,{...o,onMouseEnter:u,onFocus:c,"aria-label":void 0,...Wre({...o,onMouseEnter:u,onFocus:c},n.props)}),k.jsx(up,{placement:e,fallbackPlacements:t,...s,children:({placement:d})=>{const p=Rw(d);return k.jsx(Gz,{transformOrigin:p,...l,...a,children:r})}})]})},Zz=Pn({defaultConfig:{id:void 0},requiredConfig:{}})(e=>({state:{id:rp(e.id)},events:{}})),Vre=Le({base:{fontFamily:We.default,fontSize:_.fontSize.subtext.lg,lineHeight:_.lineHeight.subtext.lg,letterSpacing:_.letterSpacing.subtext.lg,fontWeight:Ve.bold,display:"flex",alignItems:"center",width:"100%",gap:_.gap.md,padding:`${_.padding.xs} ${_.padding.md}`}}),Zre=ye()(e=>({"data-type":"group",role:"group","aria-labelledby":e.state.id})),Yre=ye()(e=>({id:e.state.id})),ZN=ot("div")({modelHook:Zz,elemPropsHook:Yre})(({children:e,...t},n)=>k.jsx(Ol,{children:k.jsx(n,{...Zt(t,Vre()),children:e})})),Yz=Aa("div")({displayName:"Menu.Group",modelHook:Zz,elemPropsHook:Zre,subComponents:{Heading:ZN}})(({children:e,title:t,...n},a)=>k.jsxs(a,{...Zt(n),children:[t?k.jsx(ZN,{children:t}):null,e]})),Ll=Le({parts:{text:"menu-item-text",icon:"menu-item-icon",selected:"menu-item-selected"},base:({textPart:e,iconPart:t,selectedPart:n})=>({fontFamily:We.default,fontWeight:Ve.normal,fontSize:_.fontSize.subtext.lg,lineHeight:_.lineHeight.subtext.lg,letterSpacing:_.letterSpacing.subtext.lg,display:"flex",alignItems:"center",width:"100%",gap:_.gap.md,padding:`${_.padding.sm} ${_.padding.md}`,boxSizing:"border-box",cursor:"pointer",color:O.fg.default,borderWidth:0,borderRadius:_.shape.xxl,textAlign:"start",transition:"background-color 80ms, color 80ms",backgroundColor:"inherit",minHeight:_.size.md,overflowWrap:"anywhere",[ee.vars.color]:"currentColor",[`& :where(${n})`]:{transition:"opacity 80ms linear",opacity:Bt.zero},"&:where(:has(span))":{display:"flex"},"&[aria-selected=true]":{color:_.color.brand.fg.primary.strong,backgroundColor:_.color.brand.surface.primary.strong,[`& :where(${n})`]:{opacity:Bt.full},"&:where(.focus, :focus-visible)":{[ee.vars.color]:"currentColor",outline:"none",backgroundColor:_.color.brand.accent.primary,color:O.fg.inverse}},"&:is(.hover, :hover)":{color:O.fg.strong,backgroundColor:_.color.surface.overlay.hover.default},"&:is(.focus, :focus-visible)":{color:O.fg.inverse,backgroundColor:_.color.brand.accent.primary,outline:`${ce(2)} solid transparent`,outlineOffset:`-${ce(2)}`},"&:is(:disabled, [aria-disabled=true])":{cursor:"default",opacity:Bt.disabled,"&:where(.hover, :hover, [aria-selected=true])":{background:"none"},"&:where(.focus, :focus-visible)":{backgroundColor:_.color.brand.accent.primary,opacity:Bt.disabled}},[`& :where(${e})`]:{flexGrow:1,alignSelf:"center"},[`& :where(${t})`]:{alignSelf:"start"}})}),Kre=e=>k.jsx(Al,{...Ll.parts.icon,...e}),Kz=je("span")({Component:({...e},t,n)=>k.jsx(n,{ref:t,...Ll.parts.text,...et(e)})}),Xz=je("button")({displayName:"MenuItem",Component:({children:e,isDisabled:t,...n},a,r)=>k.jsx(r,{ref:a,"aria-disabled":t,...Zt(n,Ll({})),children:typeof e=="string"?k.jsx(Kz,{children:e}):e})}),Jz=ye()(e=>({onKeyDown(t){const n=getComputedStyle(t.currentTarget);t.key==="ArrowLeft"&&n.direction==="ltr"&&e.UNSTABLE_parentModel&&e.events.hide(t)}})),Qz=ye()((e,t,n={"data-id":""})=>{const{localRef:a,elementRef:r}=Tr(t),i=n["data-id"];return W.useLayoutEffect(()=>{e.state.mode==="single"&&yc(e.state,i)&&requestAnimationFrame(()=>{var o;(o=a.current)==null||o.focus()})},[i,a,e.state.cursorId,e.state.mode]),{ref:r,className:yc(e.state,n["data-id"])?"focus":void 0}});function eF(e){e.UNSTABLE_parentModel&&(e.UNSTABLE_parentModel.events.hide(),eF(e.UNSTABLE_parentModel))}const Xre=or(ye()(e=>({role:"menuitem",onMouseDown(t){e.events.goTo({id:t.currentTarget.getAttribute("data-id")})},onClick:e.state.mode==="single"?t=>{t.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.hide(t),eF(e))}:void 0})),Qz,Jz,tz,ez,Ca),Mi=ot("button")({displayName:"Menu.Item",modelHook:pt,elemPropsHook:Xre,subComponents:{Icon:Kre,Text:Kz}})(({children:e,...t},n)=>k.jsx(Ol,{placement:"left",children:k.jsx(Xz,{as:n,...t,children:e})})),Jre=or(ye()(e=>({role:"menu","aria-labelledby":e.state.id,"aria-orientation":e.state.orientation})),cne,ine),Qre=Le({base:{background:_.color.surface.popover,borderRadius:_.shape.xxl,padding:0,gap:_.gap.xs},modifiers:{orientation:{vertical:{flexDirection:"column"},horizontal:{flexDirection:"row"}}}}),tF=ot("div")({displayName:"Menu.List",modelHook:pt,elemPropsHook:Jre})(({children:e,...t},n,a)=>k.jsx(Vte,{as:n,model:a,marginY:_.gap.none,...et(t,Qre({orientation:a.state.orientation})),children:e})),nF=je("span")({Component:({...e},t,n)=>k.jsxs(k.Fragment,{children:[k.jsx(Mi.Text,{ref:t,as:n,...e}),k.jsx(Al,{...Ll.parts.selected,icon:fne})]})}),eae=je("li")({displayName:"MenuOption",Component:({children:e,...t},n,a)=>k.jsx(a,{ref:n,...Zt(t,Ll()),children:typeof e=="string"?k.jsx(nF,{children:e}):e})}),tae=or(ye()((e,t,n={})=>{const a=n["data-id"]||"";return{role:"option","aria-selected":KU(a,e.state),onMouseDown:o=>{o.button===0&&o.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.select({id:a}),e.state.mode==="single"&&e.events.hide(o)),o.preventDefault()}}}),ete,Ca),rF=ot("li")({displayName:"Menu.Item",modelHook:pt,elemPropsHook:tae,subComponents:{Icon:Mi.Icon,Text:nF}})(({children:e,...t},n)=>k.jsx(Ol,{placement:"left",children:k.jsx(eae,{as:n,...t,children:e})})),aF=one,iF={modifiers:[{name:"offset",options:{offset:()=>[0,4]}}]},nae=ot("div")({modelHook:pt,elemPropsHook:aF})(({children:e,...t})=>k.jsx(up,{placement:"bottom-start",popperOptions:iF,...t,children:e})),oF=ye()(e=>({id:e.state.id,"aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onKeyDown(t){switch(t.key){case"ArrowDown":case"ArrowUp":e.events.show(t)}}})),sF=or(oF,lne),rae=or(oF,une),aae=ot(Oz)({displayName:"Menu.Target",modelHook:pt,elemPropsHook:sF})(({children:e,...t},n)=>k.jsx(n,{...t,children:e})),iae=ot(Oz)({displayName:"Menu.Target",modelHook:pt,elemPropsHook:rae})(({children:e,...t},n)=>k.jsx(n,{...t,children:e})),oae=ot("div")({modelHook:pt,elemPropsHook:aF})(({children:e,...t})=>k.jsx(up,{placement:"right-start",popperOptions:iF,...t,children:e})),sae=(e,t=0)=>{const n=U.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return U.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},lae=or(xo(e=>e.UNSTABLE_parentModel,Qz),xo(e=>e.UNSTABLE_parentModel,Jz),xo(e=>e.UNSTABLE_parentModel,ez),ye()((e,t)=>({ref:Na(t,e.state.targetRef)})),xo(e=>e.UNSTABLE_parentModel,Ca),ye()(e=>{const t=U.useRef(),n=sae(()=>{e.UNSTABLE_parentModel.events.goTo({id:t.current||""}),e.events.show(event)},300);return{id:e.state.id,role:"menuitem","aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onMouseDown(a){e.UNSTABLE_parentModel.events.goTo({id:a.currentTarget.getAttribute("data-id")})},onMouseEnter(a){t.current=a.currentTarget.getAttribute("data-id"),n.start()},onMouseLeave(){n.clear()},onClick(a){e.state.targetRef.current instanceof Element||(e.state.targetRef.current=a.currentTarget),e.state.visibility!=="hidden"?e.events.hide(a):e.events.show(a)},"data-has-children":!0,onKeyDown(a){if(e.state.orientation==="vertical")switch(a.key){case"ArrowRight":case"Enter":case" ":e.events.show(a);break}}}})),uae=ot("button")({modelHook:pt,elemPropsHook:lae})(({children:e,...t},n)=>k.jsxs(Xz,{as:n,...t,children:[typeof e=="string"?k.jsx(Mi.Text,{children:e}):e,k.jsx(Mi.Icon,{icon:Aw})]})),cae=ot()({modelHook:pt,subComponents:{Card:jz,List:tF,Item:Mi,TargetItem:uae,Group:Yz,Option:rF,Divider:qz,Popper:oae}})(({children:e,model:t,...n},a,r)=>{const i=pt(pt.mergeConfig(n,{getId:r.getId,getTextValue:r.getTextValue,UNSTABLE_parentModel:r,mode:r.state.mode,orientation:r.state.orientation,onSelect(s){r.events.select(s)},onSelectAll(){r.events.selectAll()}})),o=pt.Context;return k.jsx(o.Provider,{value:i,children:e})}),Dr=Aa()({displayName:"Menu",modelHook:pt,subComponents:{Target:aae,Card:jz,List:tF,Item:Mi,Group:Yz,Option:rF,Divider:qz,TargetContext:iae,Popper:nae,Submenu:cae}})(({children:e})=>k.jsx(k.Fragment,{children:e})),dae=(e,t,n)=>{let a=t;const r=e.length,i=r-t.length;return r>2&&i<=2?a=e.slice(0,r-1).map(n):r>3&&i===3?a=e.slice(1,r-1).map(n):i>3&&i<r&&(a=e.slice(1,r-2).map(n)),a},no=Pn({defaultConfig:{...cu.defaultConfig,id:"",orientation:"horizontal",menuConfig:{}},requiredConfig:cu.requiredConfig})(e=>{const t=e.getId||zo,n=e.items,a=cu(cu.mergeConfig(e,{orientation:e.orientation||"horizontal",items:n,shouldVirtualize:!1}));let r=a.state.hiddenIds,i=a.state.nonInteractiveIds;r=dae(n,r,t),i=r;const o={...a.state,hiddenIds:r,nonInteractiveIds:i,orientation:e.orientation||"horizontal"},s=U.useMemo(()=>n?n.filter(c=>o.hiddenIds.includes(t(c))):void 0,[o.hiddenIds,n]),l={...a.events},u=pt(pt.mergeConfig(e.menuConfig,{id:`breadcrumbs-menu-${a.state.id}`,items:s,nonInteractiveIds:o.nonInteractiveIds.filter(c=>!o.hiddenIds.includes(c)),onShow(){u.events.goToFirst()}}));return{...a,state:o,events:l,menu:u}}),pae=Le({vars:{maxWidth:""},base:({maxWidth:e})=>({fontFamily:We.default,fontSize:_.fontSize.subtext.lg,fontWeight:Ve.medium,letterSpacing:_.letterSpacing.subtext.lg,lineHeight:_.lineHeight.subtext.lg,color:O.fg.default,display:"inline-block",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",maxWidth:e})}),fae=or(ye()((e,t)=>{const{localRef:n}=Tr(Na(t));let a=!1;const r=n.current;if(r){const{scrollWidth:i,clientWidth:o}=r;a=i>o}return{tabIndex:a?0:void 0,ref:n}}),JU,Ca),mae=ot("li")({displayName:"Breadcrumbs.Item",modelHook:no,elemPropsHook:fae})(({children:e,tooltipProps:t={},maxWidth:n="350px",...a},r)=>k.jsx(Ol,{...t,children:k.jsx(yz,{as:r,...et(a,pae({maxWidth:typeof n=="number"?ce(n):n})),children:e})})),gae=Le({vars:{maxWidth:""},base:({maxWidth:e})=>({fontFamily:We.default,fontSize:_.fontSize.subtext.lg,fontWeight:Ve.normal,letterSpacing:_.letterSpacing.subtext.lg,lineHeight:_.lineHeight.subtext.lg,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",maxWidth:e})}),lF=je("a")({displayName:"Breadcrumbs.Link",Component:({maxWidth:e=350,href:t,tooltipProps:n={},children:a,...r},i,o)=>k.jsx(Ol,{...n,children:k.jsx(Sne,{href:t,ref:i,as:o,role:"link",variant:"standalone",...et(r,gae({maxWidth:typeof e=="number"?ce(e):e})),children:a})})}),YN=Le({parts:{chevronRightIcon:"breadcrumbs-item-chevron-right-icon"},base:({chevronRightIconPart:e})=>({alignItems:"center",display:"inline-flex",whiteSpace:"nowrap",[ee.vars.size]:Cn.systemIcon.size.md,[ee.vars.color]:O.fg.default,[e]:{height:_.size.sm,width:_.size.sm,justifyContent:"center",alignItems:"center",display:"inline-flex",":dir(rtl)":{transform:"scaleX(-1)"}}})}),hae=or(JU,Ca),vae=ot("li")({displayName:"Breadcrumbs.Item",modelHook:no,elemPropsHook:hae,subComponents:{Link:lF}})(({children:e,...t},n)=>k.jsxs(n,{...Zt(t,YN()),children:[e,k.jsx(Al,{icon:Aw,...YN.parts.chevronRightIcon,"aria-hidden":!0})]})),bae=Le({base:{padding:`${_.padding.xs} 0`,margin:0,display:"inline-flex",alignItems:"center",minHeight:_.size.lg,listStyle:"none",width:"100%"}}),yae=ot("ul")({displayName:"Breadcrumbs.List",modelHook:no,elemPropsHook:Vee})(({overflowButton:e,children:t,...n},a,r)=>{const i=ww(r,t),o=i.length-2;return k.jsxs(a,{role:"list",...et(n,bae()),children:[i.length?i.slice(0,o):i,e,i.length?i.slice(o,i.length):null]})}),Sae=Le({base:{textDecoration:"none"}}),Eae=je("a")({displayName:"Breadcrumbs.Menu.Item",Component:(e,t,n)=>k.jsx(Dr.Item,{as:n,...et(e,Sae()),ref:t})}),_ae=Le({base:{width:ce(280),maxWidth:ce(280),maxHeight:ce(296)}}),wae=e=>k.jsx(Dr.Card,{...et(e,_ae())}),kae=Aa()({displayName:"Breadcrumbs.Menu",modelHook:pt,subComponents:{Card:wae,List:Dr.List,Item:Eae,Divider:Dr.Divider,Target:Dr.Target,TargetContext:Dr.TargetContext,Popper:Dr.Popper}})(({children:e})=>k.jsx(k.Fragment,{children:e})),Yv=Le({parts:{overflowButton:"breadcrumbs-overflow-button",chevronRightIcon:"breadcrumbs-overflow-button-chevron-right-icon"},base:({chevronRightIconPart:e})=>({alignItems:"center",display:"flex",[ee.vars.color]:O.fg.default,[ee.vars.size]:Cn.systemIcon.size.md,[e]:{height:_.size.sm,width:_.size.sm,justifyContent:"center",alignItems:"center",display:"inline-flex",":dir(rtl)":{transform:"scaleX(-1)"}}})}),Iae=or(ye()(()=>({"aria-haspopup":!0,"aria-controls":"menu"})),Kee,xo(e=>e.menu,sF)),Tae=ot("button")({displayName:"Breadcrumbs.OverflowButton",modelHook:no,elemPropsHook:Iae})(({style:e,...t},n)=>k.jsxs("li",{...Yv(),...e,children:[k.jsx(wne,{as:n,icon:mne,...Yv.parts.overflowButton,...et(t)}),k.jsx(Al,{icon:Aw,...Yv.parts.chevronRightIcon,"aria-hidden":!0})]})),pe=Aa("nav")({displayName:"Breadcrumbs",modelHook:no,subComponents:{List:yae,Item:vae,Link:lF,CurrentItem:mae,OverflowButton:Tae,Menu:kae}})(({children:e,...t},n,a)=>k.jsx(Dr,{model:a.menu,children:k.jsx("nav",{role:"navigation",...et(t),children:e})})),uF=()=>k.jsx(pe,{"aria-label":"Breadcrumbs",children:k.jsxs(pe.List,{children:[k.jsx(pe.Item,{children:k.jsx(pe.Link,{href:"/",children:"Home"})}),k.jsx(pe.Item,{children:k.jsx(pe.Link,{href:"/menus",children:"Menus"})}),k.jsx(pe.Item,{children:k.jsx(pe.Link,{href:"/lunch",children:"Lunch"})}),k.jsx(pe.Item,{children:k.jsx(pe.Link,{href:"/house-specialty-pies",maxWidth:100,children:"House Specialty Pies"})}),k.jsx(pe.CurrentItem,{maxWidth:100,children:"Canvas Supreme"})]})});uF.__RAW__=`import {Breadcrumbs} from '@workday/canvas-kit-react/breadcrumbs';
296
+ </svg>`,filename:"wd-icon-related-actions.svg",category:"Core",tags:["three","dots","twinkie","more","kebob","menu","dropdown","select","meatballs"]},ee=Le({extends:Nz,vars:{color:"",accentColor:"",backgroundColor:""},base:({size:e,accentColor:t,backgroundColor:n,color:a})=>({"& svg":{width:B(e,Cn.systemIcon.size.lg),height:B(e,Cn.systemIcon.size.lg)},".wd-icon .wd-icon-fill":{fill:B(a,Cn.systemIcon.color.fill)},".wd-icon .wd-icon-accent, & .wd-icon-accent2":{fill:B(t,B(a,Cn.systemIcon.color.accent))},".wd-icon .wd-icon-background":{fill:B(n,"transparent")},"@media (prefers-contrast: more)":{".wd-icon .wd-icon-fill, .wd-icon .wd-icon-accent":{color:"currentColor",fill:"currentColor"}}}),modifiers:{}}),Al=je("span")({displayName:"SystemIcon",Component:({accent:e,background:t,color:n,icon:a,size:r,...i},o,s)=>k.jsx(pne,{as:s,src:a,type:sp.System,ref:o,...et(i,ee({size:dne(r,Cn.systemIcon.size),color:n,accentColor:e,backgroundColor:t}))})}),gne=SX(Iw.as("span"))({position:"relative",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),hne=je("span")({displayName:"ButtonLabel",Component:({children:e,...t},n,a)=>k.jsx(gne,{as:a,ref:n,...t,children:e})}),vne=Le({base:{display:"inline-block"},modifiers:{size:{extraSmall:{[ee.vars.size]:Cn.systemIcon.size.xs},small:{[ee.vars.size]:Cn.systemIcon.size.md},medium:{[ee.vars.size]:Cn.systemIcon.size.md},large:{[ee.vars.size]:Cn.systemIcon.size.lg}}}}),bne=je("span")({Component:({icon:e,size:t="medium",shouldMirrorIcon:n=!1,shouldMirrorIconInRTL:a=!1,...r},i,o)=>e===void 0?null:k.jsx(Al,{ref:i,as:o,icon:e,shouldMirror:n,shouldMirrorInRTL:a,...et(r,vne({size:t}))})}),X={default:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),focus:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),hover:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),active:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),disabled:qa("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius")},j=Le({vars:{background:"",border:"",boxShadowInner:"",boxShadowOuter:"",label:"",opacity:"",borderRadius:""},base:({background:e,border:t,boxShadowInner:n,boxShadowOuter:a,label:r,opacity:i,borderRadius:o})=>({fontFamily:We.default,fontSize:_.fontSize.subtext.lg,lineHeight:_.lineHeight.subtext.lg,letterSpacing:_.letterSpacing.subtext.lg,fontWeight:Ve.bold,backgroundColor:B(X.default.background,B(e,"transparent")),color:B(X.default.label,B(r,O.fg.strong)),borderWidth:ce(1),borderStyle:"solid",gap:_.gap.sm,borderColor:B(X.default.border,B(t,"transparent")),cursor:"pointer",display:"inline-flex",boxShadow:"none",alignItems:"center",justifyContent:"center",outline:`${ce(2)} transparent`,whiteSpace:"nowrap",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",borderRadius:B(X.default.borderRadius,B(o,_.shape.full)),position:"relative",verticalAlign:"middle",overflow:"hidden",[ee.vars.color]:B(X.default.icon,O.fg.strong),transition:"box-shadow 120ms linear, border 120ms linear, background-color 120ms linear, color 120ms linear","&:disabled, &:disabled:active, &.disabled":{cursor:"default",boxShadow:"none",opacity:B(X.default.opacity,B(i,Bt.full))},"&:focus-visible, &.focus":{backgroundColor:B(X.focus.background,B(e,"transparent")),borderColor:B(X.focus.border,B(t,"transparent")),color:B(X.focus.label,B(r,O.fg.strong)),[ee.vars.color]:B(X.focus.icon,O.fg.strong),outline:`${ce(2)} solid transparent`,outlineOffset:ce(2),boxShadow:`0 0 0 ${ce(2)} ${B(X.focus.boxShadowInner,B(n,_.color.border.inverse.default))},0 0 0 ${ce(4)} ${B(X.focus.boxShadowOuter,B(a,_.color.brand.focus.primary))}`},"&:hover, &.hover":{backgroundColor:B(X.hover.background,B(e,_.color.surface.contrast.strong)),borderColor:B(X.hover.border,B(t,"transparent")),color:B(X.hover.label,B(r,O.fg.stronger)),[ee.vars.color]:B(X.hover.icon,O.fg.stronger)},"&:hover:active":{transitionDuration:"40ms"},"&:active, &.active":{backgroundColor:B(X.active.background,B(e,"transparent")),borderColor:B(X.active.border,B(t,"transparent")),color:B(X.active.label,B(r,O.fg.strong)),[ee.vars.color]:B(X.active.icon,O.fg.strong)},"&:disabled, &.disabled":{backgroundColor:B(X.disabled.background,B(e,"transparent")),borderColor:B(X.disabled.border,B(t,"transparent")),color:B(X.disabled.label,B(r,O.fg.strong)),[ee.vars.color]:B(X.disabled.icon,"currentColor")},"@media (prefers-contrast: more)":{'&[aria-pressed="true"]':{outline:`${ce(2)} solid transparent`,outlineOffset:`-${ce(1)}`},'&[aria-pressed="true"]:focus-visible, &[aria-pressed="true"].focus':{outline:`${ce(4)} double transparent`,outlineOffset:0}},svg:{pointerEvents:"none"}}),modifiers:{size:{large:{fontSize:_.fontSize.body.sm,lineHeight:_.lineHeight.body.sm,letterSpacing:_.letterSpacing.body.sm,height:_.size.lg,paddingInline:_.padding.xxl,minWidth:$r.size1400},medium:{fontSize:_.fontSize.subtext.lg,lineHeight:_.lineHeight.subtext.lg,letterSpacing:_.letterSpacing.subtext.lg,minWidth:$r.size1200,paddingInline:_.padding.xl,height:_.size.md},small:{fontSize:_.fontSize.subtext.lg,lineHeight:_.lineHeight.subtext.lg,letterSpacing:_.letterSpacing.subtext.lg,height:_.size.sm,minWidth:$r.size1000,paddingInline:_.padding.md,gap:_.gap.xs},extraSmall:{fontSize:_.fontSize.subtext.md,lineHeight:_.lineHeight.subtext.md,letterSpacing:_.letterSpacing.subtext.md,height:_.size.xs,minWidth:"auto",paddingInline:_.padding.sm,gap:_.gap.xs}},grow:{true:{width:"100%",maxWidth:"100%"}},iconPosition:{only:{padding:0},start:{},end:{}}},compound:[{modifiers:{size:"large",iconPosition:"only"},styles:{minWidth:_.size.lg}},{modifiers:{size:"large",iconPosition:"start"},styles:{paddingInlineStart:_.padding.xl,paddingInlineEnd:_.padding.xxl}},{modifiers:{size:"large",iconPosition:"end"},styles:{paddingInlineStart:_.padding.xxl,paddingInlineEnd:_.padding.xl}},{modifiers:{size:"medium",iconPosition:"only"},styles:{minWidth:_.size.md}},{modifiers:{size:"medium",iconPosition:"start"},styles:{paddingInlineStart:_.padding.lg,paddingInlineEnd:_.padding.xl}},{modifiers:{size:"medium",iconPosition:"end"},styles:{paddingInlineStart:_.padding.xl,paddingInlineEnd:_.padding.lg}},{modifiers:{size:"small",iconPosition:"only"},styles:{minWidth:_.size.sm}},{modifiers:{size:"small",iconPosition:"start"},styles:{paddingInlineStart:_.padding.sm,paddingInlineEnd:_.padding.md}},{modifiers:{size:"small",iconPosition:"end"},styles:{paddingInlineStart:_.padding.md,paddingInlineEnd:_.padding.sm}},{modifiers:{size:"extraSmall",iconPosition:"only"},styles:{minWidth:_.size.xs}},{modifiers:{size:"extraSmall",iconPosition:"start"},styles:{paddingInlineStart:_.padding.xs,paddingInlineEnd:_.padding.sm}},{modifiers:{size:"extraSmall",iconPosition:"end"},styles:{paddingInlineStart:_.padding.sm,paddingInlineEnd:_.padding.xs}}]}),ri=je("button")({displayName:"BaseButton",Component:({children:e,size:t,fillIcon:n,grow:a,iconPosition:r,icon:i,colors:o,...s},l,u)=>k.jsx(u,{ref:l,type:"button",...Zt(s,[j({size:t,iconPosition:r,grow:a}),X.default((o==null?void 0:o.default)||{}),X.focus((o==null?void 0:o.focus)||{}),X.hover((o==null?void 0:o.hover)||{}),X.active((o==null?void 0:o.active)||{}),X.disabled((o==null?void 0:o.disabled)||{})]),children:e}),subComponents:{Icon:bne,Label:hne}}),yne=Le({base:{fontFamily:We.default,textDecoration:"underline",color:_.color.fg.info.default,cursor:"pointer",borderRadius:ce(2),padding:`0 ${ce(2)} `,margin:"0 -2px",transition:"color 0.15s,background-color 0.15s",wordBreak:"break-word","&:hover, &.hover":{color:_.color.fg.info.strong,background:_.color.surface.alt.default},"&:focus, &.focus, &:focus-visible":{boxShadow:`0 0 0 ${ce(2)} ${_.color.brand.focus.primary}`,outline:"none"},"&:active, &.active":{color:_.color.fg.info.strong,background:_.color.surface.alt.default}},modifiers:{variant:{inverse:{color:O.fg.inverse,"&:hover, &.hover":{color:O.fg.inverse,background:"rgba(255, 255, 255, 0.1)"},"&:focus, &.focus, &:focus-visible":{boxShadow:`0 0 0 ${ce(2)} ${O.fg.inverse}`},"&:active, &.active":{color:_.color.fg.info.strong,background:_.color.surface.navigation}},standalone:{textDecoration:"none"},standaloneInverse:{textDecoration:"none",color:O.fg.inverse,"&:hover, &.hover":{color:O.fg.inverse,background:"rgba(255, 255, 255, 0.1)"},"&:focus, &.focus, &:focus-visible":{boxShadow:`0 0 0 ${ce(2)} ${_.color.focus.inverse}`},"&:active, &.active":{color:_.color.fg.info.strong,background:_.color.surface.navigation}}}}}),Sne=je("a")({displayName:"Hyperlink",Component:({children:e,variant:t,...n},a,r)=>k.jsx(r,{ref:a,...et(n,yne({variant:t})),children:e})}),Cz=je("button")({displayName:"Button",Component:({children:e,icon:t,colors:n,iconPosition:a,shouldMirrorIcon:r,shouldMirrorIconInRTL:i,size:o="medium",...s},l,u)=>{const c=a||(t?e?"start":"only":void 0);return k.jsxs(ri,{as:u,ref:l,size:o,icon:t,colors:n,iconPosition:c,...s,children:[t&&c==="start"&&k.jsx(ri.Icon,{size:o,icon:t,shouldMirrorIcon:r,shouldMirrorIconInRTL:i}),e&&k.jsx(ri.Label,{children:e}),t&&c&&["only","end"].includes(c)&&k.jsx(ri.Icon,{size:o,icon:t,shouldMirrorIcon:r,shouldMirrorIconInRTL:i})]})}}),Ene=Le({extends:j,base:{[j.vars.background]:_.color.surface.transparent,[j.vars.borderRadius]:_.shape.full,[j.vars.border]:O.border.input.default,[j.vars.label]:O.fg.default,[ee.vars.color]:B(X.default.icon,"currentColor"),"&:focus-visible, &.focus":{[j.vars.background]:_.color.surface.default,[j.vars.label]:O.fg.strong,[j.vars.boxShadowInner]:_.color.focus.inverse,[j.vars.boxShadowOuter]:_.color.brand.focus.primary,[ee.vars.color]:B(X.focus.icon,"currentColor")},"&:hover, &.hover":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.hover}),[j.vars.label]:O.fg.strong,[j.vars.border]:_.color.border.input.hover,[ee.vars.color]:B(X.hover.icon,"currentColor")},"&:active, &.active":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.pressed}),[j.vars.label]:O.fg.strong,[j.vars.border]:_.color.border.input.hover,[ee.vars.color]:B(X.active.icon,"currentColor")},"&:disabled, &.disabled":{[j.vars.opacity]:Bt.disabled,[j.vars.background]:_.color.surface.transparent,[j.vars.label]:O.fg.default,[ee.vars.color]:B(X.default.icon,"currentColor")}},modifiers:{variant:{inverse:{[j.vars.background]:_.color.surface.transparent,[j.vars.border]:_.color.border.inverse.default,[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.default.icon,"currentColor"),"&:hover, &.hover":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.hover}),[j.vars.border]:_.color.border.inverse.default,[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.hover.icon,"currentColor")},"&:focus-visible, &.focus":{[j.vars.background]:_.color.surface.inverse,[j.vars.border]:O.border.transparent,[j.vars.label]:O.fg.contrast.default,[j.vars.boxShadowInner]:O.border.contrast.default,[j.vars.boxShadowOuter]:_.color.focus.inverse,[ee.vars.color]:B(X.focus.icon,"currentColor")},"&:active, &.active":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.pressed}),[j.vars.border]:_.color.border.inverse.default,[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.active.icon,"currentColor")},"&:disabled, &.disabled":{[j.vars.opacity]:Bt.disabled,[j.vars.background]:_.color.surface.transparent,[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.default.icon,"currentColor")}}}}}),Oz=je("button")({displayName:"SecondaryButton",Component:({children:e,variant:t,size:n,iconPosition:a,grow:r,cs:i,...o},s,l)=>k.jsx(Cz,{as:l,ref:s,iconPosition:a,size:n,grow:r,cs:[Ene({variant:t,iconPosition:a,grow:r,size:n}),i],...o,children:e})}),_ne=Le({extends:j,base:{paddingInline:_.padding.xs,minWidth:"auto",borderWidth:ce(2),[j.vars.borderRadius]:_.shape.full,[j.vars.background]:_.color.surface.transparent,[j.vars.label]:O.fg.default,[ee.vars.color]:B(X.default.icon,"currentColor"),"&:focus-visible, &.focus":{[j.vars.background]:_.color.surface.transparent,[j.vars.label]:O.fg.default,[ee.vars.color]:B(X.focus.icon,"currentColor"),[j.vars.border]:O.border.transparent,[j.vars.label]:O.fg.contrast.default,...pN({width:2,separation:0,innerColor:_.color.focus.inverse,outerColor:_.color.brand.focus.primary})},"&:hover, &.hover":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.hover}),[j.vars.label]:O.fg.strong,[ee.vars.color]:O.fg.strong,textDecoration:"underline"},"&:active, &.active":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.pressed}),[j.vars.label]:O.fg.strong,[ee.vars.color]:B(X.active.icon,"currentColor"),textDecoration:"underline"},"&:disabled, &.disabled":{textDecoration:"none",[j.vars.opacity]:Bt.disabled,[j.vars.background]:_.color.surface.transparent,[j.vars.label]:O.fg.default,[ee.vars.color]:B(X.default.icon,"currentColor")}},modifiers:{iconPosition:{only:{padding:0,[ee.vars.color]:B(X.default.icon,O.fg.default),"&:focus-visible, &.focus":{[ee.vars.color]:B(X.focus.icon,O.fg.strong)},"&:hover, &.hover":{[ee.vars.color]:B(X.hover.icon,O.fg.strong)},"&:active, &.active":{[ee.vars.color]:B(X.active.icon,O.fg.strong)},"&:disabled, &.disabled":{[j.vars.opacity]:Bt.disabled,[ee.vars.color]:B(X.disabled.icon,O.fg.default)}},start:{},end:{}},variant:{inverse:{[j.vars.background]:_.color.surface.transparent,[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.default.icon,"currentColor"),"&:hover, &.hover":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.hover}),[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.hover.icon,"currentColor")},"&:focus-visible, &.focus":{[j.vars.background]:_.color.surface.inverse,[j.vars.label]:O.fg.contrast.default,[ee.vars.color]:B(X.focus.icon,"currentColor"),...pN({width:2,separation:2,innerColor:O.border.contrast.default,outerColor:_.color.focus.inverse})},"&:active, &.active":{[j.vars.background]:Zn.darken({color:_.color.surface.transparent,mixinColor:_.color.surface.overlay.mixin,mixinValue:_.opacity.surface.pressed}),[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.active.icon,"currentColor")},"&:disabled, &.disabled":{[j.vars.opacity]:Bt.disabled,[j.vars.background]:_.color.surface.transparent,[j.vars.label]:O.fg.inverse,[ee.vars.color]:B(X.default.icon,"currentColor")}}}},compound:[{modifiers:{size:"large",iconPosition:"only"},styles:{minWidth:_.size.lg}},{modifiers:{size:"large",iconPosition:"start"},styles:{paddingInlineStart:_.padding.xs,paddingInlineEnd:_.padding.sm}},{modifiers:{size:"large",iconPosition:"end"},styles:{paddingInlineStart:_.padding.sm,paddingInlineEnd:_.padding.xs}},{modifiers:{size:"medium",iconPosition:"only"},styles:{minWidth:_.size.md}},{modifiers:{size:"medium",iconPosition:"start"},styles:{paddingInlineStart:_.padding.xs,paddingInlineEnd:_.padding.sm}},{modifiers:{size:"medium",iconPosition:"end"},styles:{paddingInlineStart:_.padding.sm,paddingInlineEnd:_.padding.xs}},{modifiers:{size:"small",iconPosition:"only"},styles:{minWidth:_.size.sm}},{modifiers:{size:"small",iconPosition:"start"},styles:{paddingInlineStart:_.padding.xs,paddingInlineEnd:_.padding.sm}},{modifiers:{size:"small",iconPosition:"end"},styles:{paddingInlineStart:_.padding.sm,paddingInlineEnd:_.padding.xs}},{modifiers:{size:"extraSmall",iconPosition:"only"},styles:{minWidth:_.size.xs}},{modifiers:{size:"extraSmall",iconPosition:"start"},styles:{paddingInlineStart:_.padding.xxs,paddingInlineEnd:_.padding.xs}},{modifiers:{size:"extraSmall",iconPosition:"end"},styles:{paddingInlineStart:_.padding.xs,paddingInlineEnd:_.padding.xxs}}]}),wne=je("button")({displayName:"TertiaryButton",Component:({children:e,icon:t,size:n="medium",variant:a,iconPosition:r,grow:i,cs:o,...s},l,u)=>{const c=r||(t?e?"start":"only":void 0);return k.jsx(Cz,{as:u,ref:l,icon:t,size:n,iconPosition:r,grow:i,cs:[_ne({size:n,variant:a,grow:i,iconPosition:c}),o],...s,children:e})}});var yn="top",Dn="bottom",Mn="right",Sn="left",Nw="auto",Nl=[yn,Dn,Mn,Sn],$i="start",Cw="end",kne="clippingParents",Lz="viewport",yo="popper",Ine="reference",$N=Nl.reduce(function(e,t){return e.concat([t+"-"+$i,t+"-"+Cw])},[]),$z=[].concat(Nl,[Nw]).reduce(function(e,t){return e.concat([t,t+"-"+$i,t+"-"+Cw])},[]),Tne="beforeRead",xne="read",Rne="afterRead",Ane="beforeMain",Nne="main",Cne="afterMain",One="beforeWrite",Lne="write",$ne="afterWrite",Dne=[Tne,xne,Rne,Ane,Nne,Cne,One,Lne,$ne];function Un(e){return e?(e.nodeName||"").toLowerCase():null}function zn(e){if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ms(e){var t=zn(e).Element;return e instanceof t||e instanceof Element}function tr(e){var t=zn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Mne(e){var t=zn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Pne(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!tr(i)||!Un(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(o){var s=r[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function Une(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var r=t.elements[a],i=t.attributes[a]||{},o=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),s=o.reduce(function(l,u){return l[u]="",l},{});!tr(r)||!Un(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const zne={name:"applyStyles",enabled:!0,phase:"write",fn:Pne,effect:Une,requires:["computeStyles"]};function Qn(e){return e.split("-")[0]}function Ow(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Dz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Mne(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function hr(e){return zn(e).getComputedStyle(e)}function Fne(e){return["table","td","th"].indexOf(Un(e))>=0}function xr(e){return((ms(e)?e.ownerDocument:e.document)||window.document).documentElement}function lp(e){return Un(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||xr(e)}function DN(e){if(!tr(e)||hr(e).position==="fixed")return null;var t=e.offsetParent;if(t){var n=xr(t);if(Un(t)==="body"&&hr(t).position==="static"&&hr(n).position!=="static")return n}return t}function Bne(e){for(var t=lp(e);tr(t)&&["html","body"].indexOf(Un(t))<0;){var n=hr(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function Cl(e){for(var t=zn(e),n=DN(e);n&&Fne(n)&&hr(n).position==="static";)n=DN(n);return n&&Un(n)==="body"&&hr(n).position==="static"?t:n||Bne(e)||t}function Lw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ou(e,t,n){return Math.max(e,Math.min(t,n))}function Mz(){return{top:0,right:0,bottom:0,left:0}}function Pz(e){return Object.assign(Object.assign({},Mz()),e)}function Uz(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}function jne(e){var t,n=e.state,a=e.name,r=n.elements.arrow,i=n.modifiersData.popperOffsets,o=Qn(n.placement),s=Lw(o),l=[Sn,Mn].indexOf(o)>=0,u=l?"height":"width";if(!(!r||!i)){var c=n.modifiersData[a+"#persistent"].padding,d=Ow(r),p=s==="y"?yn:Sn,g=s==="y"?Dn:Mn,v=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],y=i[s]-n.rects.reference[s],I=Cl(r),h=I?s==="y"?I.clientHeight||0:I.clientWidth||0:0,f=v/2-y/2,m=c[p],b=h-d[u]-c[g],E=h/2-d[u]/2+f,w=Ou(m,E,b),T=s;n.modifiersData[a]=(t={},t[T]=w,t.centerOffset=w-E,t)}}function qne(e){var t=e.state,n=e.options,a=e.name,r=n.element,i=r===void 0?"[data-popper-arrow]":r,o=n.padding,s=o===void 0?0:o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Dz(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[a+"#persistent"]={padding:Pz(typeof s!="number"?s:Uz(s,Nl))}))}const Gne={name:"arrow",enabled:!0,phase:"main",fn:jne,effect:qne,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var Hne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wne(e){var t=e.x,n=e.y,a=window,r=a.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}function MN(e){var t,n=e.popper,a=e.popperRect,r=e.placement,i=e.offsets,o=e.position,s=e.gpuAcceleration,l=e.adaptive,u=Wne(i),c=u.x,d=u.y,p=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),v=Sn,y=yn,I=window;if(l){var h=Cl(n);h===zn(n)&&(h=xr(n)),r===yn&&(y=Dn,d-=h.clientHeight-a.height,d*=s?1:-1),r===Sn&&(v=Mn,c-=h.clientWidth-a.width,c*=s?1:-1)}var f=Object.assign({position:o},l&&Hne);if(s){var m;return Object.assign(Object.assign({},f),{},(m={},m[y]=g?"0":"",m[v]=p?"0":"",m.transform=(I.devicePixelRatio||1)<2?"translate("+c+"px, "+d+"px)":"translate3d("+c+"px, "+d+"px, 0)",m))}return Object.assign(Object.assign({},f),{},(t={},t[y]=g?d+"px":"",t[v]=p?c+"px":"",t.transform="",t))}function Vne(e){var t=e.state,n=e.options,a=n.gpuAcceleration,r=a===void 0?!0:a,i=n.adaptive,o=i===void 0?!0:i,s={placement:Qn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),MN(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),MN(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})}const Zne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vne,data:{}};var pu={passive:!0};function Yne(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,i=r===void 0?!0:r,o=a.resize,s=o===void 0?!0:o,l=zn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,pu)}),s&&l.addEventListener("resize",n.update,pu),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,pu)}),s&&l.removeEventListener("resize",n.update,pu)}}const Kne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Yne,data:{}};var Xne={left:"right",right:"left",bottom:"top",top:"bottom"};function Lu(e){return e.replace(/left|right|bottom|top/g,function(t){return Xne[t]})}var Jne={start:"end",end:"start"};function PN(e){return e.replace(/start|end/g,function(t){return Jne[t]})}function gs(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function $w(e){var t=zn(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function Dw(e){return gs(xr(e)).left+$w(e).scrollLeft}function Qne(e){var t=zn(e),n=xr(e),a=t.visualViewport,r=n.clientWidth,i=n.clientHeight,o=0,s=0;return a&&(r=a.width,i=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=a.offsetLeft,s=a.offsetTop)),{width:r,height:i,x:o+Dw(e),y:s}}function ere(e){var t=xr(e),n=$w(e),a=e.ownerDocument.body,r=Math.max(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-n.scrollLeft+Dw(e),s=-n.scrollTop;return hr(a||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,a?a.clientWidth:0)-r),{width:r,height:i,x:o,y:s}}function Mw(e){var t=hr(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function zz(e){return["html","body","#document"].indexOf(Un(e))>=0?e.ownerDocument.body:tr(e)&&Mw(e)?e:zz(lp(e))}function Fo(e,t){t===void 0&&(t=[]);var n=zz(e),a=Un(n)==="body",r=zn(n),i=a?[r].concat(r.visualViewport||[],Mw(n)?n:[]):n,o=t.concat(i);return a?o:o.concat(Fo(lp(i)))}function ry(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tre(e){var t=gs(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function UN(e,t){return t===Lz?ry(Qne(e)):tr(t)?tre(t):ry(ere(xr(e)))}function nre(e){var t=Fo(lp(e)),n=["absolute","fixed"].indexOf(hr(e).position)>=0,a=n&&tr(e)?Cl(e):e;return ms(a)?t.filter(function(r){return ms(r)&&Dz(r,a)&&Un(r)!=="body"}):[]}function rre(e,t,n){var a=t==="clippingParents"?nre(e):[].concat(t),r=[].concat(a,[n]),i=r[0],o=r.reduce(function(s,l){var u=UN(e,l);return s.top=Math.max(u.top,s.top),s.right=Math.min(u.right,s.right),s.bottom=Math.min(u.bottom,s.bottom),s.left=Math.max(u.left,s.left),s},UN(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function hs(e){return e.split("-")[1]}function Fz(e){var t=e.reference,n=e.element,a=e.placement,r=a?Qn(a):null,i=a?hs(a):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(r){case yn:l={x:o,y:t.y-n.height};break;case Dn:l={x:o,y:t.y+t.height};break;case Mn:l={x:t.x+t.width,y:s};break;case Sn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=r?Lw(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case $i:l[u]=Math.floor(l[u])-Math.floor(t[c]/2-n[c]/2);break;case Cw:l[u]=Math.floor(l[u])+Math.ceil(t[c]/2-n[c]/2);break}}return l}function Di(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=a===void 0?e.placement:a,i=n.boundary,o=i===void 0?kne:i,s=n.rootBoundary,l=s===void 0?Lz:s,u=n.elementContext,c=u===void 0?yo:u,d=n.altBoundary,p=d===void 0?!1:d,g=n.padding,v=g===void 0?0:g,y=Pz(typeof v!="number"?v:Uz(v,Nl)),I=c===yo?Ine:yo,h=e.elements.reference,f=e.rects.popper,m=e.elements[p?I:c],b=rre(ms(m)?m:m.contextElement||xr(e.elements.popper),o,l),E=gs(h),w=Fz({reference:E,element:f,placement:r}),T=ry(Object.assign(Object.assign({},f),w)),C=c===yo?T:E,L={top:b.top-C.top+y.top,bottom:C.bottom-b.bottom+y.bottom,left:b.left-C.left+y.left,right:C.right-b.right+y.right},M=e.modifiersData.offset;if(c===yo&&M){var V=M[r];Object.keys(L).forEach(function(ne){var re=[Mn,Dn].indexOf(ne)>=0?1:-1,Ee=[yn,Dn].indexOf(ne)>=0?"y":"x";L[ne]+=V[Ee]*re})}return L}function are(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?$z:l,c=hs(a),d=c?s?$N:$N.filter(function(v){return hs(v)===c}):Nl,p=d.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=d);var g=p.reduce(function(v,y){return v[y]=Di(e,{placement:y,boundary:r,rootBoundary:i,padding:o})[Qn(y)],v},{});return Object.keys(g).sort(function(v,y){return g[v]-g[y]})}function ire(e){if(Qn(e)===Nw)return[];var t=Lu(e);return[PN(e),t,PN(t)]}function ore(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,v=g===void 0?!0:g,y=n.allowedAutoPlacements,I=t.options.placement,h=Qn(I),f=h===I,m=l||(f||!v?[Lu(I)]:ire(I)),b=[I].concat(m).reduce(function(ve,$e){return ve.concat(Qn($e)===Nw?are(t,{placement:$e,boundary:c,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:y}):$e)},[]),E=t.rects.reference,w=t.rects.popper,T=new Map,C=!0,L=b[0],M=0;M<b.length;M++){var V=b[M],ne=Qn(V),re=hs(V)===$i,Ee=[yn,Dn].indexOf(ne)>=0,Ie=Ee?"width":"height",he=Di(t,{placement:V,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),Te=Ee?re?Mn:Sn:re?Dn:yn;E[Ie]>w[Ie]&&(Te=Lu(Te));var D=Lu(Te),q=[];if(i&&q.push(he[ne]<=0),s&&q.push(he[Te]<=0,he[D]<=0),q.every(function(ve){return ve})){L=V,C=!1;break}T.set(V,q)}if(C)for(var G=v?3:1,Z=function($e){var Me=b.find(function(tt){var un=T.get(tt);if(un)return un.slice(0,$e).every(function(Oa){return Oa})});if(Me)return L=Me,"break"},K=G;K>0;K--){var Ye=Z(K);if(Ye==="break")break}t.placement!==L&&(t.modifiersData[a]._skip=!0,t.placement=L,t.reset=!0)}}const sre={name:"flip",enabled:!0,phase:"main",fn:ore,requiresIfExists:["offset"],data:{_skip:!1}};function zN(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function FN(e){return[yn,Mn,Dn,Sn].some(function(t){return e[t]>=0})}function lre(e){var t=e.state,n=e.name,a=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=Di(t,{elementContext:"reference"}),s=Di(t,{altBoundary:!0}),l=zN(o,a),u=zN(s,r,i),c=FN(l),d=FN(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const ure={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lre};function cre(e,t,n){var a=Qn(e),r=[Sn,yn].indexOf(a)>=0?-1:1,i=typeof n=="function"?n(Object.assign(Object.assign({},t),{},{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*r,[Sn,Mn].indexOf(a)>=0?{x:s,y:o}:{x:o,y:s}}function dre(e){var t=e.state,n=e.options,a=e.name,r=n.offset,i=r===void 0?[0,0]:r,o=$z.reduce(function(c,d){return c[d]=cre(d,t.rects,i),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[a]=o}const pre={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dre};function fre(e){var t=e.state,n=e.name;t.modifiersData[n]=Fz({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const mre={name:"popperOffsets",enabled:!0,phase:"read",fn:fre,data:{}};function gre(e){return e==="x"?"y":"x"}function hre(e){var t=e.state,n=e.options,a=e.name,r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,g=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,I=Di(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),h=Qn(t.placement),f=hs(t.placement),m=!f,b=Lw(h),E=gre(b),w=t.modifiersData.popperOffsets,T=t.rects.reference,C=t.rects.popper,L=typeof y=="function"?y(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):y,M={x:0,y:0};if(w){if(i){var V=b==="y"?yn:Sn,ne=b==="y"?Dn:Mn,re=b==="y"?"height":"width",Ee=w[b],Ie=w[b]+I[V],he=w[b]-I[ne],Te=g?-C[re]/2:0,D=f===$i?T[re]:C[re],q=f===$i?-C[re]:-T[re],G=t.elements.arrow,Z=g&&G?Ow(G):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Mz(),Ye=K[V],ve=K[ne],$e=Ou(0,T[re],Z[re]),Me=m?T[re]/2-Te-$e-Ye-L:D-$e-Ye-L,tt=m?-T[re]/2+Te+$e+ve+L:q+$e+ve+L,un=t.elements.arrow&&Cl(t.elements.arrow),Oa=un?b==="y"?un.clientTop||0:un.clientLeft||0:0,La=t.modifiersData.offset?t.modifiersData.offset[t.placement][b]:0,$a=w[b]+Me-La-Oa,cp=w[b]+tt-La,Da=Ou(g?Math.min(Ie,$a):Ie,Ee,g?Math.max(he,cp):he);w[b]=Da,M[b]=Da-Ee}if(s){var hF=b==="x"?yn:Sn,vF=b==="x"?Dn:Mn,$l=w[E],bF=$l+I[hF],yF=$l-I[vF],zw=Ou(bF,$l,yF);w[E]=zw,M[E]=zw-$l}t.modifiersData[a]=M}}const vre={name:"preventOverflow",enabled:!0,phase:"main",fn:hre,requiresIfExists:["offset"]};function bre(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yre(e){return e===zn(e)||!tr(e)?$w(e):bre(e)}function Sre(e,t,n){n===void 0&&(n=!1);var a=xr(t),r=gs(e),i=tr(t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!n)&&((Un(t)!=="body"||Mw(a))&&(o=yre(t)),tr(t)?(s=gs(t),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Dw(a))),{x:r.left+o.scrollLeft-s.x,y:r.top+o.scrollTop-s.y,width:r.width,height:r.height}}function Ere(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&r(l)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),a}function _re(e){var t=Ere(e);return Dne.reduce(function(n,a){return n.concat(t.filter(function(r){return r.phase===a}))},[])}function wre(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kre(e){var t=e.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign(Object.assign(Object.assign({},r),a),{},{options:Object.assign(Object.assign({},r.options),a.options),data:Object.assign(Object.assign({},r.data),a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var BN={placement:"bottom",modifiers:[],strategy:"absolute"};function jN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Ire(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?BN:r;return function(s,l,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},BN),i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,g={state:c,setOptions:function(h){y(),c.options=Object.assign(Object.assign(Object.assign({},i),c.options),h),c.scrollParents={reference:ms(s)?Fo(s):s.contextElement?Fo(s.contextElement):[],popper:Fo(l)};var f=_re(kre([].concat(a,c.options.modifiers)));return c.orderedModifiers=f.filter(function(m){return m.enabled}),v(),g.update()},forceUpdate:function(){if(!p){var h=c.elements,f=h.reference,m=h.popper;if(jN(f,m)){c.rects={reference:Sre(f,Cl(m),c.options.strategy==="fixed"),popper:Ow(m)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(M){return c.modifiersData[M.name]=Object.assign({},M.data)});for(var b=0;b<c.orderedModifiers.length;b++){if(c.reset===!0){c.reset=!1,b=-1;continue}var E=c.orderedModifiers[b],w=E.fn,T=E.options,C=T===void 0?{}:T,L=E.name;typeof w=="function"&&(c=w({state:c,options:C,name:L,instance:g})||c)}}}},update:wre(function(){return new Promise(function(I){g.forceUpdate(),I(c)})}),destroy:function(){y(),p=!0}};if(!jN(s,l))return g;g.setOptions(u).then(function(I){!p&&u.onFirstUpdate&&u.onFirstUpdate(I)});function v(){c.orderedModifiers.forEach(function(I){var h=I.name,f=I.options,m=f===void 0?{}:f,b=I.effect;if(typeof b=="function"){var E=b({state:c,name:h,instance:g,options:m}),w=function(){};d.push(E||w)}})}function y(){d.forEach(function(I){return I()}),d=[]}return g}}var Tre=[Kne,mre,Zne,zne,pre,sre,vre,Gne,ure],xre=Ire({defaultModifiers:Tre});const Rre=["top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","auto","auto-start","auto-end"],Are=e=>{const[t,n]=e.split("-");let a;switch(t){case"top":a="bottom";break;case"bottom":a="top";break;case"left":a="right";break;case"right":a="left";break;default:a="auto"}return n&&(a=Rre.find(r=>r.includes(`${a}-${n}`))??a),a},Bz=(e,t,n)=>{if(e.length===0||e[0].split("-")[0]==="auto")return n;const{reference:a,popper:r}=t.rects,i=Di({...t,placement:e[0]}),o=/left|right/.test(e[0].split("-")[0])?"horizontal":"vertical",s=(i.top>0||i.bottom>0||i.left>0||i.right>0)&&(o==="horizontal"?r.height/2-i.top<a.height||r.height/2-i.bottom<a.height:r.width-i.left<a.width||r.width-i.right<a.width),l=e[0].split("-")[0];return!s&&i[l]<=0?e[0]:Bz(e.slice(1),t,n)},qN="fallbackModifier",GN={name:qN,enabled:!0,phase:"main",data:{_skip:!1},fn({state:e,options:t}){const n=e.options.placement,{fallbackPlacements:a}=t,r=[n,Are(n),...a||[]],i=Bz(r,e,n);e.placement!==i&&(e.modifiersData[qN]._skip=!0,e.placement=i,e.reset=!0)}},Pw=["top","right","bottom","left"],up=W.forwardRef(({portal:e=!0,open:t=!0,...n},a)=>t?k.jsx(Ore,{ref:a,portal:e,...n}):null),Nre=e=>{if(e!==null)return"current"in e?e.current||void 0:e},Cre={},Ore=W.forwardRef(({anchorElement:e,getAnchorClientRect:t,popperOptions:n=Cre,placement:a="bottom",fallbackPlacements:r=Pw,onPlacementChange:i,children:o,portal:s,popperInstanceRef:l},u)=>{const c=W.useRef(!0),{localRef:d,elementRef:p}=Tr(l),[g,v]=W.useState(a),y=sne(u,e),I=W.useRef(a);I.current=g;const h=W.useMemo(()=>({name:"setPlacement",enabled:!0,phase:"afterWrite",fn({state:m}){v(m.placement),i==null||i(m.placement)}}),[v,i]);W.useLayoutEffect(()=>{const m=t?{getBoundingClientRect:t}:Nre(e??null);if(!m){console.warn("Popper: neither anchorElement or getAnchorClientRect was defined. A valid anchorElement or getAnchorClientRect callback must be provided to render a Popper");return}if(y.current){const b=xre(m,y.current,{placement:a,...n,modifiers:[h,{...GN,options:{fallbackPlacements:r}},...n.modifiers||[]]});return p(b),()=>{b==null||b.destroy()}}},[e,t,y]),W.useLayoutEffect(()=>{var m;c.current||(m=d.current)==null||m.setOptions({placement:a,...n,modifiers:[h,{...GN,options:{fallbackPlacements:r}},...n.modifiers||[]]}),c.current=!1},[n,a,r,h,d]);const f=k.jsx(k.Fragment,{children:Lre(o)?o({placement:g}):o});return s?Jy.createPortal(f,y.current):f});function Lre(e){return typeof e=="function"}const pt=Pn({defaultConfig:{...Yn.defaultConfig,...ia.defaultConfig,mode:"single",shouldVirtualize:!1},requiredConfig:{...Yn.requiredConfig,...ia.requiredConfig},contextOverride:ia.Context})(e=>{const t=Yn(Yn.mergeConfig(e,{selection:e.mode==="single"?XU:Wee})),n=ia(ia.mergeConfig(e,{id:t.state.id,onHide(){t.state.indexRef.current=0}}));Iz(n),Tz(n);const a={mode:e.mode,...t.state,...n.state},r={...t.events,...n.events};return{...t,...n,state:a,events:r,UNSTABLE_parentModel:e.UNSTABLE_parentModel}}),$re=Le({vars:{minWidth:ce(1),transformOriginVertical:"top",transformOriginHorizontal:"left",maxHeight:""},base:({transformOriginVertical:e,transformOriginHorizontal:t,minWidth:n,maxHeight:a})=>({fontFamily:We.default,fontWeight:Ve.normal,fontSize:_.fontSize.subtext.lg,lineHeight:_.lineHeight.subtext.lg,letterSpacing:_.letterSpacing.subtext.lg,color:O.fg.default,position:"relative",display:"flex",flexDirection:"column",transition:"transform ease-out 150ms",padding:_.padding.xxs,borderRadius:_.shape.xxl,maxWidth:Hn.subtract("100vw",_.size.sm),boxShadow:OU[3],minWidth:n,maxHeight:a,transformOrigin:`${e} ${t}`,".wd-no-animation &":{animation:"none"}})}),Dre=ye()(()=>({})),jz=ot("div")({displayName:"Menu.Card",modelHook:pt,elemPropsHook:Dre})(({minWidth:e,maxHeight:t,...n},a,r)=>{const i=W.useMemo(()=>Rw(r.state.placement||"bottom"),[r.state.placement]);return k.jsx(Qte,{as:a,...Zt(n,$re({minWidth:typeof e=="number"?ce(e):e,maxHeight:typeof t=="number"?ce(t):t,transformOriginVertical:i.vertical,transformOriginHorizontal:i.horizontal})),children:n.children})}),Mre=Le({base:{display:"block",height:ce(1),border:"none",borderTop:`${ce(1)} solid ${_.color.border.default}`,margin:`${_.gap.sm} ${_.gap.md}`}}),qz=je("hr")({displayName:"Menu.Divider",Component({...e},t,n){return k.jsx(n,{ref:t,...et(e,Mre())})}});var Pre=function(e){return Object.prototype.hasOwnProperty.call(e,"props")},Ure=function(e,t){return e+vs(t)},vs=function(e){return e===null||typeof e=="boolean"||typeof e>"u"?"":typeof e=="number"?e.toString():typeof e=="string"?e:Array.isArray(e)?e.reduce(Ure,""):Pre(e)&&Object.prototype.hasOwnProperty.call(e.props,"children")?vs(e.props.children):""};vs.default=vs;var zre=vs;const Fre=Ec(zre),HN={vertical:"bottom",horizontal:"center"},ay=qa("positionX","positionY"),Bre=DQ({"0%":{opacity:0,transform:`translate(${ay.positionX}, ${ay.positionY})`},"100%":{opacity:1,transform:"translate(0)"}}),jre=Le({vars:{tooltipTransformOriginHorizontal:"",tooltipTransformOriginVertical:""},base:({tooltipTransformOriginHorizontal:e,tooltipTransformOriginVertical:t})=>({fontFamily:We.default,fontWeight:Ve.normal,fontSize:_.fontSize.subtext.md,lineHeight:_.lineHeight.subtext.md,letterSpacing:_.letterSpacing.subtext.md,display:"inline-flex",position:"relative",padding:_.padding.sm,color:O.fg.inverse,animationName:Bre,animationDuration:"150ms",animationTimingFunction:"ease-out",transformOrigin:`${t} ${e}`,a:{color:O.fg.inverse,textDecoration:"underline"},"&:before":{content:'""',borderRadius:_.shape.md,outline:`${ce(1)} solid transparent`,outlineOffset:`-${ce(1)}`,zIndex:-1,margin:_.gap.xs,backgroundColor:_.color.surface.contrast.default,position:"absolute",top:0,left:0,right:0,bottom:0,boxShadow:OU[2]},"[data-popper-reference-hidden] &":{visibility:"hidden",pointerEvents:"none"},'[data-popper-placement="top-start"] &, [data-popper-placement="bottom-start"] &':{left:Hn.negate($r.size50)},'[data-popper-placement="top-end"] &, [data-popper-placement="bottom-end"] &':{right:Hn.negate($r.size50)},'[data-popper-placement="left-start"] &, [data-popper-placement="right-start"] &':{top:Hn.negate($r.size50)},'[data-popper-placement="left-end"] &, [data-popper-placement="right-end"] &':{bottom:Hn.negate($r.size50)}}),modifiers:{elementHasFocus:{true:{padding:Hn.subtract(_.padding.md,Hn.divide(_.padding.xxs,2)),"&:before":{margin:$r.size75}}}}}),Gz=je("div")({displayName:"TooltipContainer",Component:({children:e,transformOrigin:t=HN,elementHasFocus:n=!1,...a},r,i)=>{const o=nee(t||HN,_.gap.sm);return k.jsx(i,{ref:r,...Zt(a,[jre({tooltipTransformOriginHorizontal:t==null?void 0:t.horizontal,tooltipTransformOriginVertical:t==null?void 0:t.vertical,elementHasFocus:n}),ay({positionX:o.x,positionY:o.y})]),children:e})}}),WN=(e,t=0)=>{const n=W.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return W.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},qre=e=>{const t=e.tagName.toLowerCase(),n=e.getAttribute("tabindex");switch(t){case"button":case"input":case"select":case"textarea":case"details":return!0;default:return n?Number(n)>=0:!1}};function Hz({type:e="label",titleText:t="",showDelay:n=300,hideDelay:a=100}={}){const r=W.useRef(!1),i=ia(),[o,s]=W.useState(null),l=rp(),u=WN(i.events.hide,a),c=WN(i.events.show,n),d=()=>{u.start(),c.clear()},p=()=>{c.start(),u.clear()},g=f=>{s(f.currentTarget),p()},v=f=>{r.current||g(f),r.current=!1},y=f=>{r.current=!0,qre(f.currentTarget)&&i.events.hide()};Tz(i),Iz(i),rne(i),ane(i);const I=i.state.visibility!=="hidden",h={"aria-describedby":e==="describe"&&I?l:void 0,"aria-description":e==="description"?t:void 0,"aria-label":e==="label"?t:void 0,onMouseEnter:g,onMouseLeave:d,onMouseDown:y,onFocus:v,onBlur:d};return h["aria-describedby"]===void 0&&delete h["aria-describedby"],{targetProps:h,popperProps:{open:I,anchorElement:o,ref:i.state.stackRef},tooltipProps:{id:e==="describe"&&I?l:void 0,role:"tooltip",onMouseEnter:p,onMouseLeave:d}}}function Gre(e,t,n=Object.keys(t)){return n.reduce((a,r)=>(typeof e[r]=="function"?a[r]=Ew(t[r],e[r]):a[r]=t[r],a),{})}const Hre=je("div")({displayName:"Tooltip",Component({type:e="label",placement:t="top",title:n,children:a,showDelay:r=300,hideDelay:i=100,fallbackPlacements:o=Pw,...s}){const l=Fre(n),{targetProps:u,popperProps:c,tooltipProps:d}=Hz({type:e,titleText:l,showDelay:r,hideDelay:i}),[p,g]=W.useState(!1),{localRef:v}=Tr();return W.useEffect(()=>{const y=v.current;if(!y)return;const I=()=>{g(y.matches(":focus-visible")||y.classList.contains("focus"))};return I(),y.addEventListener("focus",I),y.addEventListener("blur",I),()=>{y.removeEventListener("focus",I),y.removeEventListener("blur",I)}},[v]),k.jsxs(W.Fragment,{children:[W.cloneElement(a,{...u,...Gre(a.props,u),.../^(muted|describe)$/.test(e)&&a.props["aria-label"]?{"aria-label":a.props["aria-label"]}:{}}),k.jsx(up,{placement:t,fallbackPlacements:o,...c,children:({placement:y})=>{const I=Rw(y);return k.jsx(Gz,{transformOrigin:I,...et(s),...d,elementHasFocus:p,children:n})}})]})}}),Wz=e=>{const t=getComputedStyle(e);if(t.overflow==="auto"||t.overflow==="scroll"||t.overflow==="clip"||t.overflow==="hidden")return e;if(e.children){for(let n=0;n<e.children.length;n++){const a=Wz(e.children[n]);if(a)return a}return null}return null},Vz=e=>{const t=getComputedStyle(e);if(t.textOverflow==="ellipsis"||Number(t.webkitLineClamp)>0)return e;for(let n=0;n<e.children.length;n++){const a=Vz(e.children[n]);if(a)return a}return null},VN=e=>{const t=Vz(e)||Wz(e);return t?t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight:!1};function Wre(e,t,n=Object.keys(t)){return n.reduce((a,r)=>(typeof e[r]=="function"?a[r]=Ew(t[r],e[r]):a[r]=t[r],a),{})}const Ol=({placement:e="top",fallbackPlacements:t=Pw,children:n,...a})=>{const[r,i]=W.useState(""),{targetProps:o,popperProps:s,tooltipProps:l}=Hz({type:"muted"}),u=d=>{const p=d.currentTarget;i(p instanceof HTMLElement?p.innerText:""),VN(p)&&o.onMouseEnter(d)},c=d=>{const p=d.currentTarget;i(p instanceof HTMLElement?p.innerText:""),VN(p)&&o.onFocus(d)};return k.jsxs(W.Fragment,{children:[W.cloneElement(n,{...o,onMouseEnter:u,onFocus:c,"aria-label":void 0,...Wre({...o,onMouseEnter:u,onFocus:c},n.props)}),k.jsx(up,{placement:e,fallbackPlacements:t,...s,children:({placement:d})=>{const p=Rw(d);return k.jsx(Gz,{transformOrigin:p,...l,...a,children:r})}})]})},Zz=Pn({defaultConfig:{id:void 0},requiredConfig:{}})(e=>({state:{id:rp(e.id)},events:{}})),Vre=Le({base:{fontFamily:We.default,fontSize:_.fontSize.subtext.lg,lineHeight:_.lineHeight.subtext.lg,letterSpacing:_.letterSpacing.subtext.lg,fontWeight:Ve.bold,display:"flex",alignItems:"center",width:"100%",gap:_.gap.md,padding:`${_.padding.xs} ${_.padding.md}`}}),Zre=ye()(e=>({"data-type":"group",role:"group","aria-labelledby":e.state.id})),Yre=ye()(e=>({id:e.state.id})),ZN=ot("div")({modelHook:Zz,elemPropsHook:Yre})(({children:e,...t},n)=>k.jsx(Ol,{children:k.jsx(n,{...Zt(t,Vre()),children:e})})),Yz=Aa("div")({displayName:"Menu.Group",modelHook:Zz,elemPropsHook:Zre,subComponents:{Heading:ZN}})(({children:e,title:t,...n},a)=>k.jsxs(a,{...Zt(n),children:[t?k.jsx(ZN,{children:t}):null,e]})),Ll=Le({parts:{text:"menu-item-text",icon:"menu-item-icon",selected:"menu-item-selected"},base:({textPart:e,iconPart:t,selectedPart:n})=>({fontFamily:We.default,fontWeight:Ve.normal,fontSize:_.fontSize.subtext.lg,lineHeight:_.lineHeight.subtext.lg,letterSpacing:_.letterSpacing.subtext.lg,display:"flex",alignItems:"center",width:"100%",gap:_.gap.md,padding:`${_.padding.sm} ${_.padding.md}`,boxSizing:"border-box",cursor:"pointer",color:O.fg.default,borderWidth:0,borderRadius:_.shape.xxl,textAlign:"start",transition:"background-color 80ms, color 80ms",backgroundColor:"inherit",minHeight:_.size.md,overflowWrap:"anywhere",[ee.vars.color]:"currentColor",[`& :where(${n})`]:{transition:"opacity 80ms linear",opacity:Bt.zero},"&:where(:has(span))":{display:"flex"},"&[aria-selected=true]":{color:_.color.brand.fg.primary.strong,backgroundColor:_.color.brand.surface.primary.strong,[`& :where(${n})`]:{opacity:Bt.full},"&:where(.focus, :focus-visible)":{[ee.vars.color]:"currentColor",outline:"none",backgroundColor:_.color.brand.accent.primary,color:O.fg.inverse}},"&:is(.hover, :hover)":{color:O.fg.strong,backgroundColor:_.color.surface.overlay.hover.default},"&:is(.focus, :focus-visible)":{color:O.fg.inverse,backgroundColor:_.color.brand.accent.primary,outline:`${ce(2)} solid transparent`,outlineOffset:`-${ce(2)}`},"&:is(:disabled, [aria-disabled=true])":{cursor:"default",opacity:Bt.disabled,"&:where(.hover, :hover, [aria-selected=true])":{background:"none"},"&:where(.focus, :focus-visible)":{backgroundColor:_.color.brand.accent.primary,opacity:Bt.disabled}},[`& :where(${e})`]:{flexGrow:1,alignSelf:"center"},[`& :where(${t})`]:{alignSelf:"start"}})}),Kre=e=>k.jsx(Al,{...Ll.parts.icon,...e}),Kz=je("span")({Component:({...e},t,n)=>k.jsx(n,{ref:t,...Ll.parts.text,...et(e)})}),Xz=je("button")({displayName:"MenuItem",Component:({children:e,isDisabled:t,...n},a,r)=>k.jsx(r,{ref:a,"aria-disabled":t,...Zt(n,Ll({})),children:typeof e=="string"?k.jsx(Kz,{children:e}):e})}),Jz=ye()(e=>({onKeyDown(t){const n=getComputedStyle(t.currentTarget);t.key==="ArrowLeft"&&n.direction==="ltr"&&e.UNSTABLE_parentModel&&e.events.hide(t)}})),Qz=ye()((e,t,n={"data-id":""})=>{const{localRef:a,elementRef:r}=Tr(t),i=n["data-id"];return W.useLayoutEffect(()=>{e.state.mode==="single"&&yc(e.state,i)&&requestAnimationFrame(()=>{var o;(o=a.current)==null||o.focus()})},[i,a,e.state.cursorId,e.state.mode]),{ref:r,className:yc(e.state,n["data-id"])?"focus":void 0}});function eF(e){e.UNSTABLE_parentModel&&(e.UNSTABLE_parentModel.events.hide(),eF(e.UNSTABLE_parentModel))}const Xre=or(ye()(e=>({role:"menuitem",onMouseDown(t){e.events.goTo({id:t.currentTarget.getAttribute("data-id")})},onClick:e.state.mode==="single"?t=>{t.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.hide(t),eF(e))}:void 0})),Qz,Jz,tz,ez,Ca),Mi=ot("button")({displayName:"Menu.Item",modelHook:pt,elemPropsHook:Xre,subComponents:{Icon:Kre,Text:Kz}})(({children:e,...t},n)=>k.jsx(Ol,{placement:"left",children:k.jsx(Xz,{as:n,...t,children:e})})),Jre=or(ye()(e=>({role:"menu","aria-labelledby":e.state.id,"aria-orientation":e.state.orientation})),cne,ine),Qre=Le({base:{background:_.color.surface.popover,borderRadius:_.shape.xxl,padding:0,gap:_.gap.xs},modifiers:{orientation:{vertical:{flexDirection:"column"},horizontal:{flexDirection:"row"}}}}),tF=ot("div")({displayName:"Menu.List",modelHook:pt,elemPropsHook:Jre})(({children:e,...t},n,a)=>k.jsx(Vte,{as:n,model:a,marginY:_.gap.none,...et(t,Qre({orientation:a.state.orientation})),children:e})),nF=je("span")({Component:({...e},t,n)=>k.jsxs(k.Fragment,{children:[k.jsx(Mi.Text,{ref:t,as:n,...e}),k.jsx(Al,{...Ll.parts.selected,icon:fne})]})}),eae=je("li")({displayName:"MenuOption",Component:({children:e,...t},n,a)=>k.jsx(a,{ref:n,...Zt(t,Ll()),children:typeof e=="string"?k.jsx(nF,{children:e}):e})}),tae=or(ye()((e,t,n={})=>{const a=n["data-id"]||"";return{role:"option","aria-selected":KU(a,e.state),onMouseDown:o=>{o.button===0&&o.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.goTo({id:a}),e.events.select({id:a}),e.state.mode==="single"&&e.events.hide(o)),o.preventDefault()}}}),ete,Ca),rF=ot("li")({displayName:"Menu.Item",modelHook:pt,elemPropsHook:tae,subComponents:{Icon:Mi.Icon,Text:nF}})(({children:e,...t},n)=>k.jsx(Ol,{placement:"left",children:k.jsx(eae,{as:n,...t,children:e})})),aF=one,iF={modifiers:[{name:"offset",options:{offset:()=>[0,4]}}]},nae=ot("div")({modelHook:pt,elemPropsHook:aF})(({children:e,...t})=>k.jsx(up,{placement:"bottom-start",popperOptions:iF,...t,children:e})),oF=ye()(e=>({id:e.state.id,"aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onKeyDown(t){switch(t.key){case"ArrowDown":case"ArrowUp":e.events.show(t)}}})),sF=or(oF,lne),rae=or(oF,une),aae=ot(Oz)({displayName:"Menu.Target",modelHook:pt,elemPropsHook:sF})(({children:e,...t},n)=>k.jsx(n,{...t,children:e})),iae=ot(Oz)({displayName:"Menu.Target",modelHook:pt,elemPropsHook:rae})(({children:e,...t},n)=>k.jsx(n,{...t,children:e})),oae=ot("div")({modelHook:pt,elemPropsHook:aF})(({children:e,...t})=>k.jsx(up,{placement:"right-start",popperOptions:iF,...t,children:e})),sae=(e,t=0)=>{const n=U.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return U.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},lae=or(xo(e=>e.UNSTABLE_parentModel,Qz),xo(e=>e.UNSTABLE_parentModel,Jz),xo(e=>e.UNSTABLE_parentModel,ez),ye()((e,t)=>({ref:Na(t,e.state.targetRef)})),xo(e=>e.UNSTABLE_parentModel,Ca),ye()(e=>{const t=U.useRef(),n=sae(()=>{e.UNSTABLE_parentModel.events.goTo({id:t.current||""}),e.events.show(event)},300);return{id:e.state.id,role:"menuitem","aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onMouseDown(a){e.UNSTABLE_parentModel.events.goTo({id:a.currentTarget.getAttribute("data-id")})},onMouseEnter(a){t.current=a.currentTarget.getAttribute("data-id"),n.start()},onMouseLeave(){n.clear()},onClick(a){e.state.targetRef.current instanceof Element||(e.state.targetRef.current=a.currentTarget),e.state.visibility!=="hidden"?e.events.hide(a):e.events.show(a)},"data-has-children":!0,onKeyDown(a){if(e.state.orientation==="vertical")switch(a.key){case"ArrowRight":case"Enter":case" ":e.events.show(a);break}}}})),uae=ot("button")({modelHook:pt,elemPropsHook:lae})(({children:e,...t},n)=>k.jsxs(Xz,{as:n,...t,children:[typeof e=="string"?k.jsx(Mi.Text,{children:e}):e,k.jsx(Mi.Icon,{icon:Aw})]})),cae=ot()({modelHook:pt,subComponents:{Card:jz,List:tF,Item:Mi,TargetItem:uae,Group:Yz,Option:rF,Divider:qz,Popper:oae}})(({children:e,model:t,...n},a,r)=>{const i=pt(pt.mergeConfig(n,{getId:r.getId,getTextValue:r.getTextValue,UNSTABLE_parentModel:r,mode:r.state.mode,orientation:r.state.orientation,onSelect(s){r.events.select(s)},onSelectAll(){r.events.selectAll()}})),o=pt.Context;return k.jsx(o.Provider,{value:i,children:e})}),Dr=Aa()({displayName:"Menu",modelHook:pt,subComponents:{Target:aae,Card:jz,List:tF,Item:Mi,Group:Yz,Option:rF,Divider:qz,TargetContext:iae,Popper:nae,Submenu:cae}})(({children:e})=>k.jsx(k.Fragment,{children:e})),dae=(e,t,n)=>{let a=t;const r=e.length,i=r-t.length;return r>2&&i<=2?a=e.slice(0,r-1).map(n):r>3&&i===3?a=e.slice(1,r-1).map(n):i>3&&i<r&&(a=e.slice(1,r-2).map(n)),a},no=Pn({defaultConfig:{...cu.defaultConfig,id:"",orientation:"horizontal",menuConfig:{}},requiredConfig:cu.requiredConfig})(e=>{const t=e.getId||zo,n=e.items,a=cu(cu.mergeConfig(e,{orientation:e.orientation||"horizontal",items:n,shouldVirtualize:!1}));let r=a.state.hiddenIds,i=a.state.nonInteractiveIds;r=dae(n,r,t),i=r;const o={...a.state,hiddenIds:r,nonInteractiveIds:i,orientation:e.orientation||"horizontal"},s=U.useMemo(()=>n?n.filter(c=>o.hiddenIds.includes(t(c))):void 0,[o.hiddenIds,n]),l={...a.events},u=pt(pt.mergeConfig(e.menuConfig,{id:`breadcrumbs-menu-${a.state.id}`,items:s,nonInteractiveIds:o.nonInteractiveIds.filter(c=>!o.hiddenIds.includes(c)),onShow(){u.events.goToFirst()}}));return{...a,state:o,events:l,menu:u}}),pae=Le({vars:{maxWidth:""},base:({maxWidth:e})=>({fontFamily:We.default,fontSize:_.fontSize.subtext.lg,fontWeight:Ve.medium,letterSpacing:_.letterSpacing.subtext.lg,lineHeight:_.lineHeight.subtext.lg,color:O.fg.default,display:"inline-block",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",maxWidth:e})}),fae=or(ye()((e,t)=>{const{localRef:n}=Tr(Na(t));let a=!1;const r=n.current;if(r){const{scrollWidth:i,clientWidth:o}=r;a=i>o}return{tabIndex:a?0:void 0,ref:n}}),JU,Ca),mae=ot("li")({displayName:"Breadcrumbs.Item",modelHook:no,elemPropsHook:fae})(({children:e,tooltipProps:t={},maxWidth:n="350px",...a},r)=>k.jsx(Ol,{...t,children:k.jsx(yz,{as:r,...et(a,pae({maxWidth:typeof n=="number"?ce(n):n})),children:e})})),gae=Le({vars:{maxWidth:""},base:({maxWidth:e})=>({fontFamily:We.default,fontSize:_.fontSize.subtext.lg,fontWeight:Ve.normal,letterSpacing:_.letterSpacing.subtext.lg,lineHeight:_.lineHeight.subtext.lg,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",maxWidth:e})}),lF=je("a")({displayName:"Breadcrumbs.Link",Component:({maxWidth:e=350,href:t,tooltipProps:n={},children:a,...r},i,o)=>k.jsx(Ol,{...n,children:k.jsx(Sne,{href:t,ref:i,as:o,role:"link",variant:"standalone",...et(r,gae({maxWidth:typeof e=="number"?ce(e):e})),children:a})})}),YN=Le({parts:{chevronRightIcon:"breadcrumbs-item-chevron-right-icon"},base:({chevronRightIconPart:e})=>({alignItems:"center",display:"inline-flex",whiteSpace:"nowrap",[ee.vars.size]:Cn.systemIcon.size.md,[ee.vars.color]:O.fg.default,[e]:{height:_.size.sm,width:_.size.sm,justifyContent:"center",alignItems:"center",display:"inline-flex",":dir(rtl)":{transform:"scaleX(-1)"}}})}),hae=or(JU,Ca),vae=ot("li")({displayName:"Breadcrumbs.Item",modelHook:no,elemPropsHook:hae,subComponents:{Link:lF}})(({children:e,...t},n)=>k.jsxs(n,{...Zt(t,YN()),children:[e,k.jsx(Al,{icon:Aw,...YN.parts.chevronRightIcon,"aria-hidden":!0})]})),bae=Le({base:{padding:`${_.padding.xs} 0`,margin:0,display:"inline-flex",alignItems:"center",minHeight:_.size.lg,listStyle:"none",width:"100%"}}),yae=ot("ul")({displayName:"Breadcrumbs.List",modelHook:no,elemPropsHook:Vee})(({overflowButton:e,children:t,...n},a,r)=>{const i=ww(r,t),o=i.length-2;return k.jsxs(a,{role:"list",...et(n,bae()),children:[i.length?i.slice(0,o):i,e,i.length?i.slice(o,i.length):null]})}),Sae=Le({base:{textDecoration:"none"}}),Eae=je("a")({displayName:"Breadcrumbs.Menu.Item",Component:(e,t,n)=>k.jsx(Dr.Item,{as:n,...et(e,Sae()),ref:t})}),_ae=Le({base:{width:ce(280),maxWidth:ce(280),maxHeight:ce(296)}}),wae=e=>k.jsx(Dr.Card,{...et(e,_ae())}),kae=Aa()({displayName:"Breadcrumbs.Menu",modelHook:pt,subComponents:{Card:wae,List:Dr.List,Item:Eae,Divider:Dr.Divider,Target:Dr.Target,TargetContext:Dr.TargetContext,Popper:Dr.Popper}})(({children:e})=>k.jsx(k.Fragment,{children:e})),Yv=Le({parts:{overflowButton:"breadcrumbs-overflow-button",chevronRightIcon:"breadcrumbs-overflow-button-chevron-right-icon"},base:({chevronRightIconPart:e})=>({alignItems:"center",display:"flex",[ee.vars.color]:O.fg.default,[ee.vars.size]:Cn.systemIcon.size.md,[e]:{height:_.size.sm,width:_.size.sm,justifyContent:"center",alignItems:"center",display:"inline-flex",":dir(rtl)":{transform:"scaleX(-1)"}}})}),Iae=or(ye()(()=>({"aria-haspopup":!0,"aria-controls":"menu"})),Kee,xo(e=>e.menu,sF)),Tae=ot("button")({displayName:"Breadcrumbs.OverflowButton",modelHook:no,elemPropsHook:Iae})(({style:e,...t},n)=>k.jsxs("li",{...Yv(),...e,children:[k.jsx(wne,{as:n,icon:mne,...Yv.parts.overflowButton,...et(t)}),k.jsx(Al,{icon:Aw,...Yv.parts.chevronRightIcon,"aria-hidden":!0})]})),pe=Aa("nav")({displayName:"Breadcrumbs",modelHook:no,subComponents:{List:yae,Item:vae,Link:lF,CurrentItem:mae,OverflowButton:Tae,Menu:kae}})(({children:e,...t},n,a)=>k.jsx(Dr,{model:a.menu,children:k.jsx("nav",{role:"navigation",...et(t),children:e})})),uF=()=>k.jsx(pe,{"aria-label":"Breadcrumbs",children:k.jsxs(pe.List,{children:[k.jsx(pe.Item,{children:k.jsx(pe.Link,{href:"/",children:"Home"})}),k.jsx(pe.Item,{children:k.jsx(pe.Link,{href:"/menus",children:"Menus"})}),k.jsx(pe.Item,{children:k.jsx(pe.Link,{href:"/lunch",children:"Lunch"})}),k.jsx(pe.Item,{children:k.jsx(pe.Link,{href:"/house-specialty-pies",maxWidth:100,children:"House Specialty Pies"})}),k.jsx(pe.CurrentItem,{maxWidth:100,children:"Canvas Supreme"})]})});uF.__RAW__=`import {Breadcrumbs} from '@workday/canvas-kit-react/breadcrumbs';
297
297
 
298
298
  export const Basic = () => {
299
299
  return (