@gamecrafters/base-ui 0.0.30 → 0.0.31

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.
package/build/main.esm.js CHANGED
@@ -8,7 +8,7 @@ import*as e from"react";import t,{createContext as n,createElement as r,forwardR
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  */
11
- var gn=Me((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),q=Me(((e,t)=>{t.exports=gn()}))();const _n={root:`accordion`};function vn(t,n){let{as:r=`div`,className:i,value:a,defaultValue:o,onChange:s,multiple:c=!1,disabled:l,headingLevel:u=`h3`,keepMounted:d=!0,hiddenUntilFound:f=!1,...p}=t,m=a!==void 0,[h,g]=e.useState(()=>o??[]),_=m?a:h,v=(e,t)=>{if(l||_.includes(e)===t)return;let n=t?c?[..._,e]:[e]:_.filter(t=>t!==e);m||g(n),s?.(n)},y={open:_,setOpen:v,toggle:e=>v(e,!_.includes(e)),disabled:l,headingLevel:u,keepMounted:d,hiddenUntilFound:f};return(0,q.jsx)(hn.Provider,{value:y,children:(0,q.jsx)(r,{ref:n,className:G(_n.root,i),"data-component":`Accordion`,"data-multiple":c,"data-disabled":!!l,...p})})}vn.displayName=`Accordion`;var yn=K(vn);function J(e,n,r){let i=r(),a=Object.keys(i),o=t.forwardRef(({"aria-label":e,"aria-labelledby":r,tabIndex:o,className:s=``,fill:c=`currentColor`,size:l=16,id:u,title:d,style:f,...p},m)=>{let h=l,g=bn(a,h),_=i[g].width,v=_/parseInt(g,10)*h,y=i[g].path,b=e||r,x=b?`img`:void 0,S=`${n} ${s}`.trim();return t.createElement(`svg`,{ref:m,...p,"aria-hidden":b?void 0:`true`,tabIndex:o,focusable:(o??-1)>=0?`true`:`false`,"aria-label":e,"aria-labelledby":r,className:S,role:x,viewBox:`0 0 ${_} ${g}`,width:v,height:h,fill:c,id:u,display:`inline-block`,overflow:`visible`,style:f},d?t.createElement(`title`,null,d):null,y)});return o.displayName=e,o}function bn(e,t){return e.map(e=>parseInt(e,10)).reduce((e,n)=>n<=t?n:e,parseInt(e[0],10)).toString()}const xn=J(`AddRegular`,`icon icon-add-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 3.25a.75.75 0 0 1 .75.75v7.25H20a.75.75 0 0 1 0 1.5h-7.25V20a.75.75 0 0 1-1.5 0v-7.25H4a.75.75 0 0 1 0-1.5h7.25V4a.75.75 0 0 1 .75-.75`})}})),Sn=J(`ArchiveRegular`,`icon icon-archive-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M10.25 11a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5zM3 5.25A2.25 2.25 0 0 1 5.25 3h13.5A2.25 2.25 0 0 1 21 5.25v1.5c0 .78-.397 1.467-1 1.871v8.629A3.75 3.75 0 0 1 16.25 21h-8.5A3.75 3.75 0 0 1 4 17.25V8.621A2.25 2.25 0 0 1 3 6.75zM5.5 9v8.25a2.25 2.25 0 0 0 2.25 2.25h8.5a2.25 2.25 0 0 0 2.25-2.25V9zm-.25-4.5a.75.75 0 0 0-.75.75v1.5c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-1.5a.75.75 0 0 0-.75-.75z`})}})),Cn=J(`ArrowClockwiseRegular`,`icon icon-arrow-clockwise-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 4.5a7.5 7.5 0 1 0 7.419 6.392c-.067-.454.265-.892.724-.892.37 0 .696.256.752.623Q21 11.297 21 12a9 9 0 1 1-3-6.708V4.25a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.47 7.47 0 0 0-5.1-2`})}})),wn=J(`ArrowDownRegular`,`icon icon-arrow-down-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M19.79 13.267a.75.75 0 0 0-1.086-1.034l-5.954 6.251V3.75a.75.75 0 1 0-1.5 0v14.734l-5.955-6.251a.75.75 0 1 0-1.086 1.034l7.067 7.42c.16.168.366.268.58.3a.8.8 0 0 0 .29-.001 1 1 0 0 0 .578-.3z`})}})),Tn=J(`ArrowLeftRegular`,`icon icon-arrow-left-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M10.733 19.79a.75.75 0 0 0 1.034-1.086L5.516 12.75H20.25a.75.75 0 0 0 0-1.5H5.516l6.251-5.955a.75.75 0 0 0-1.034-1.086l-7.42 7.067a1 1 0 0 0-.3.58.8.8 0 0 0 .001.289 1 1 0 0 0 .3.579z`})}})),En=J(`ArrowMaximizeRegular`,`icon icon-arrow-maximize-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M19.25 4a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0V6.56L6.56 18.5h5.69a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 1.5 0v5.69L17.44 5.5h-5.69a.75.75 0 0 1 0-1.5z`})}})),Dn=J(`ArrowMinimizeRegular`,`icon icon-arrow-minimize-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M10.25 13a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0v-5.69l-6.22 6.22a.75.75 0 1 1-1.06-1.06l6.22-6.22H2.75a.75.75 0 0 1 0-1.5zM20.72 2.22a.75.75 0 1 1 1.06 1.06L15.56 9.5h5.69a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 1.5 0v5.69z`})}})),On=J(`ArrowMoveRegular`,`icon icon-arrow-move-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M15.28 6.03a.75.75 0 0 1-1.06 0l-1.47-1.47v3.69a.75.75 0 0 1-1.5 0V4.56L9.78 6.03a.75.75 0 0 1-1.06-1.06l2.75-2.75a.75.75 0 0 1 1.06 0l2.75 2.75a.75.75 0 0 1 0 1.06m-9.25 8.19a.75.75 0 1 1-1.06 1.06l-2.75-2.75a.75.75 0 0 1 0-1.06l2.75-2.75a.75.75 0 0 1 1.06 1.06l-1.47 1.47h3.69a.75.75 0 0 1 0 1.5H4.56zm11.94 1.06a.75.75 0 0 1 0-1.06l1.47-1.47h-3.69a.75.75 0 0 1 0-1.5h3.69l-1.47-1.47a.75.75 0 0 1 1.06-1.06l2.75 2.75a.75.75 0 0 1 0 1.06l-2.75 2.75a.75.75 0 0 1-1.06 0m-2.69 2.69a.75.75 0 0 0-1.06 0l-1.47 1.47v-3.69a.75.75 0 0 0-1.5 0v3.69l-1.47-1.47a.75.75 0 0 0-1.06 1.06l2.75 2.75a.75.75 0 0 0 1.06 0l2.75-2.75a.75.75 0 0 0 0-1.06`})}})),kn=J(`ArrowRedoRegular`,`icon icon-arrow-redo-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M19.25 2a.75.75 0 0 0-.743.648l-.007.102v5.69l-4.574-4.56a6.41 6.41 0 0 0-8.878-.179l-.186.18a6.41 6.41 0 0 0 0 9.063l8.845 8.84a.75.75 0 0 0 1.06-1.062l-8.845-8.838a4.91 4.91 0 0 1 6.766-7.112l.178.17L17.438 9.5H11.75a.75.75 0 0 0-.743.648L11 10.25c0 .38.282.694.648.743l.102.007h7.5a.75.75 0 0 0 .743-.648L20 10.25v-7.5a.75.75 0 0 0-.75-.75`})}})),An=J(`ArrowSortDownRegular`,`icon icon-arrow-sort-down-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`m11.65 4.007.1-.007a.75.75 0 0 1 .744.648l.007.102-.001 12.696 3.22-3.221a.75.75 0 0 1 .976-.073l.084.072a.75.75 0 0 1 .073.977l-.072.084-4.497 4.5a.75.75 0 0 1-.976.073l-.084-.073-4.504-4.5a.75.75 0 0 1 .976-1.133l.084.072L11 17.442V4.75a.75.75 0 0 1 .65-.743l.1-.007z`})}})),jn=J(`ArrowSortUpRegular`,`icon icon-arrow-sort-up-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`m6.72 8.715 4.494-4.495a.75.75 0 0 1 .976-.073l.085.072 4.504 4.495a.75.75 0 0 1-.975 1.134l-.084-.072-3.223-3.217v12.696a.75.75 0 0 1-.648.743l-.101.007a.75.75 0 0 1-.743-.648l-.007-.102-.001-12.698L7.78 9.775a.75.75 0 0 1-.976.073l-.084-.073a.75.75 0 0 1-.073-.976zl4.494-4.495z`})}})),Mn=J(`ArrowUndoRegular`,`icon icon-arrow-undo-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M4.75 2a.75.75 0 0 1 .743.648l.007.102v5.69l4.574-4.56a6.41 6.41 0 0 1 8.879-.179l.186.18a6.41 6.41 0 0 1 0 9.063l-8.846 8.84a.75.75 0 0 1-1.06-1.062l8.845-8.838a4.91 4.91 0 0 0-6.766-7.112l-.178.17L6.562 9.5h5.688a.75.75 0 0 1 .743.648l.007.102a.75.75 0 0 1-.648.743L12.25 11h-7.5a.75.75 0 0 1-.743-.648L4 10.25v-7.5A.75.75 0 0 1 4.75 2`})}})),Nn=J(`ArrowUpRegular`,`icon icon-arrow-up-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M4.209 10.733a.75.75 0 0 0 1.086 1.034l5.954-6.251V20.25a.75.75 0 0 0 1.5 0V5.516l5.955 6.251a.75.75 0 0 0 1.087-1.034l-7.067-7.42a1 1 0 0 0-.58-.3.8.8 0 0 0-.29.001 1 1 0 0 0-.578.3z`})}})),Pn=J(`ArrowUploadRegular`,`icon icon-arrow-upload-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M18.25 3.51a.75.75 0 1 0 0-1.5l-13-.004a.75.75 0 1 0 0 1.5zm-6.602 18.488.102.007a.75.75 0 0 0 .743-.649l.007-.101-.001-13.685 3.722 3.72a.75.75 0 0 0 .976.073l.085-.073a.75.75 0 0 0 .072-.977l-.073-.084-4.997-4.996a.75.75 0 0 0-.976-.073l-.085.072L6.22 10.23a.75.75 0 0 0 .976 1.134l.084-.073 3.719-3.713L11 21.255c0 .38.282.693.648.743`})}})),Fn=J(`BranchRegular`,`icon icon-branch-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M4 5.5a3.5 3.5 0 1 1 4.489 3.358 5.5 5.5 0 0 0 5.261 3.892h.33a3.501 3.501 0 0 1 6.92.75 3.5 3.5 0 0 1-6.92.75h-.33a6.99 6.99 0 0 1-5.5-2.67v3.5A3.501 3.501 0 0 1 7.5 22a3.5 3.5 0 0 1-.75-6.92V8.92A3.5 3.5 0 0 1 4 5.5m3.5-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 13a2 2 0 1 0 0 4 2 2 0 0 0 0-4m8-3a2 2 0 1 0 4 0 2 2 0 0 0-4 0`})}})),In=J(`CalendarLtrRegular`,`icon icon-calendar-ltr-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M17.75 3A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3zm1.75 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h11.5a1.75 1.75 0 0 0 1.75-1.75zm-11.75 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m-4.25-4a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m1.5-6H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75`})}})),Ln=J(`CheckmarkCircleRegular`,`icon icon-checkmark-circle-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-1.25 9.94 4.47-4.47a.75.75 0 0 1 1.133.976l-.073.084-5 5a.75.75 0 0 1-.976.073l-.084-.073-2.5-2.5a.75.75 0 0 1 .976-1.133l.084.073zl4.47-4.47z`})}})),Rn=J(`CheckmarkRegular`,`icon icon-checkmark-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M4.53 12.97a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l11-11a.75.75 0 0 0-1.06-1.06L8.5 16.94z`})}})),zn=J(`ChevronDownRegular`,`icon icon-chevron-down-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M4.22 8.47a.75.75 0 0 1 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06`})}})),Bn=J(`ChevronLeftRegular`,`icon icon-chevron-left-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0`})}})),Vn=J(`ChevronRightRegular`,`icon icon-chevron-right-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M8.47 4.22a.75.75 0 0 0 0 1.06L15.19 12l-6.72 6.72a.75.75 0 1 0 1.06 1.06l7.25-7.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0`})}})),Hn=J(`ChevronUpRegular`,`icon icon-chevron-up-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M4.22 15.53a.75.75 0 0 0 1.06 0L12 8.81l6.72 6.72a.75.75 0 1 0 1.06-1.06l-7.25-7.25a.75.75 0 0 0-1.06 0l-7.25 7.25a.75.75 0 0 0 0 1.06`})}})),Un=J(`CircleHintRegular`,`icon icon-circle-hint-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M7.59 3.963c-.172-.414-.666-.591-1.041-.347a10.05 10.05 0 0 0-2.93 2.931c-.246.376-.069.87.345 1.04.355.147.76.004.973-.315a8.6 8.6 0 0 1 2.337-2.337c.319-.213.462-.618.315-.972m2.758-.302c-.377.074-.765-.11-.911-.465-.172-.414.052-.888.49-.98a10 10 0 0 1 4.146-.001c.439.092.663.566.491.98a.806.806 0 0 1-.91.465 8.5 8.5 0 0 0-3.306.001m9.69 3.925c-.354.147-.758.003-.972-.315a8.6 8.6 0 0 0-2.339-2.338c-.318-.213-.462-.618-.315-.972.171-.414.665-.591 1.04-.347 1.17.762 2.17 1.762 2.933 2.931.245.376.068.87-.347 1.041m.768 6.978c-.354-.147-.539-.535-.465-.911a8.6 8.6 0 0 0 0-3.309c-.075-.376.11-.764.465-.91.413-.172.887.051.98.49a10 10 0 0 1 0 4.15c-.092.438-.566.661-.98.49m-4.393 5.474c-.147-.354-.003-.759.315-.972a8.6 8.6 0 0 0 2.34-2.34c.213-.318.618-.461.972-.315.414.172.591.665.347 1.04a10.05 10.05 0 0 1-2.934 2.934c-.375.244-.869.067-1.04-.347m-6.978.766c.147-.355.535-.54.911-.465a8.5 8.5 0 0 0 3.309 0c.376-.074.764.111.91.465.172.414-.052.889-.49.98a10 10 0 0 1-4.15 0c-.438-.092-.661-.566-.49-.98M3.963 16.41c.354-.147.759-.003.972.315a8.6 8.6 0 0 0 2.338 2.34c.318.213.462.618.315.972-.171.414-.665.59-1.04.346a10.05 10.05 0 0 1-2.932-2.933c-.244-.375-.067-.869.347-1.04m-.765-6.975c.354.147.539.535.465.91a8.5 8.5 0 0 0 0 3.306c.073.376-.112.764-.466.91-.414.172-.888-.051-.98-.49a10 10 0 0 1 0-4.146c.093-.438.567-.662.98-.49`})}})),Wn=J(`CircleRegular`,`icon icon-circle-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12`})}})),Gn=J(`CircleSmallRegular`,`icon icon-circle-small-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 9.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M8 12a4 4 0 1 1 8 0 4 4 0 0 1-8 0`})}})),Kn=J(`ClockRegular`,`icon icon-clock-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-.007 4.648a.75.75 0 0 0-1.493.102v6l.007.102a.75.75 0 0 0 .743.648h4l.102-.007A.75.75 0 0 0 15.25 12H12V6.75z`})}})),qn=J(`CodeRegular`,`icon icon-code-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`m8.066 18.943 6.5-14.5a.75.75 0 0 1 1.404.518l-.036.096-6.5 14.5a.75.75 0 0 1-1.404-.518zl6.5-14.5zM2.22 11.47l4.25-4.25a.75.75 0 0 1 1.133.976l-.073.085L3.81 12l3.72 3.719a.75.75 0 0 1-.976 1.133l-.084-.073-4.25-4.25a.75.75 0 0 1-.073-.976zl4.25-4.25zm14.25-4.25a.75.75 0 0 1 .976-.073l.084.073 4.25 4.25a.75.75 0 0 1 .073.976l-.073.085-4.25 4.25a.75.75 0 0 1-1.133-.977l.073-.084L20.19 12l-3.72-3.72a.75.75 0 0 1 0-1.06`})}})),Jn=J(`CopyRegular`,`icon icon-copy-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M8.5 8.5H6.25a1.75 1.75 0 0 0-1.75 1.75v7.5c0 .966.784 1.75 1.75 1.75h5c.882 0 1.61-.652 1.73-1.5h1.51a3.25 3.25 0 0 1-3.24 3h-5A3.25 3.25 0 0 1 3 17.75v-7.5A3.25 3.25 0 0 1 6.25 7H8.5zM17.75 3A3.25 3.25 0 0 1 21 6.25v7.5A3.25 3.25 0 0 1 17.75 17h-5a3.25 3.25 0 0 1-3.25-3.25v-7.5A3.25 3.25 0 0 1 12.75 3zm-5 1.5A1.75 1.75 0 0 0 11 6.25v7.5c0 .966.784 1.75 1.75 1.75h5a1.75 1.75 0 0 0 1.75-1.75v-7.5a1.75 1.75 0 0 0-1.75-1.75z`})}})),Yn=J(`DismissCircleRegular`,`icon icon-dismiss-circle-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m3.446 4.897.084.073a.75.75 0 0 1 .073.976l-.073.084L13.061 12l2.47 2.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-2.47 2.47a.75.75 0 0 1-.976.072l-.084-.073a.75.75 0 0 1-.073-.976l.073-.084L10.939 12l-2.47-2.47a.75.75 0 0 1-.072-.976l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l2.47-2.47a.75.75 0 0 1 .976-.072`})}})),Xn=J(`DismissRegular`,`icon icon-dismiss-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`m4.397 4.554.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l6.47-6.47a.75.75 0 1 1 1.06 1.061L13.061 12l6.47 6.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-6.47 6.47a.75.75 0 0 1-1.06-1.061L10.939 12l-6.47-6.47a.75.75 0 0 1-.072-.976l.073-.084z`})}})),Zn=J(`DocumentRegular`,`icon icon-document-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 12.172 2zm-.5 2a.5.5 0 0 1 .5-.5h6V8a2 2 0 0 0 2 2h4.5v10a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5zm11.88 4.5H14a.5.5 0 0 1-.5-.5V4.62z`})}})),Qn=J(`ErrorCircleRegular`,`icon icon-error-circle-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-.001 11.002a.999.999 0 1 1-.001 1.997.999.999 0 0 1 .001-1.997M11.994 7a.75.75 0 0 1 .744.647l.007.102.004 4.502a.75.75 0 0 1-1.493.103l-.007-.102-.004-4.501a.75.75 0 0 1 .75-.751`})}})),$n=J(`EyeOffRegular`,`icon icon-eye-off-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M2.22 2.22a.75.75 0 0 0-.073.976l.073.084 4.034 4.035a10 10 0 0 0-3.955 5.75.75.75 0 0 0 1.455.364 8.5 8.5 0 0 1 3.58-5.034l1.81 1.81A4 4 0 0 0 14.8 15.86l5.919 5.92a.75.75 0 0 0 1.133-.977l-.073-.084-6.113-6.114.001-.002-1.2-1.198-2.87-2.87h.002l-2.88-2.877.001-.002-1.133-1.13L3.28 2.22a.75.75 0 0 0-1.06 0m7.984 9.045 3.535 3.536a2.5 2.5 0 0 1-3.535-3.535M12 5.5c-1 0-1.97.148-2.889.425l1.237 1.236a8.503 8.503 0 0 1 9.899 6.272.75.75 0 0 0 1.455-.363A10 10 0 0 0 12 5.5m.195 3.51 3.801 3.8a4.003 4.003 0 0 0-3.801-3.8`})}})),er=J(`EyeRegular`,`icon icon-eye-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 9.005a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 1.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M12 5.5c4.613 0 8.596 3.15 9.701 7.564a.75.75 0 1 1-1.455.365 8.504 8.504 0 0 0-16.493.004.75.75 0 0 1-1.456-.363A10 10 0 0 1 12 5.5`})}})),tr=J(`FilterDismissRegular`,`icon icon-filter-dismiss-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M23 7.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-7.146-2.354a.5.5 0 0 0-.708.708L16.793 7.5l-1.647 1.646a.5.5 0 0 0 .708.708L17.5 8.207l1.646 1.647a.5.5 0 0 0 .708-.708L18.207 7.5l1.647-1.646a.5.5 0 0 0-.708-.708L17.5 6.793zM13.346 12.5a6.5 6.5 0 0 1-1.324-1.5H7.5a.75.75 0 0 0 0 1.5zM11 7.5q.002-.776.174-1.5H4.5a.75.75 0 0 0 0 1.5zm2.5 8.5a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5z`})}})),nr=J(`FolderOpenRegular`,`icon icon-folder-open-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3.5 6.25c0-.966.784-1.75 1.75-1.75h2.88a.75.75 0 0 1 .53.22l2.06 2.06c.142.141.332.22.531.22h5.5c.967 0 1.75.784 1.75 1.75q.001.13.041.246H8.72a3.75 3.75 0 0 0-3.25 1.874L3.5 14.283zM2 17.788A3.25 3.25 0 0 0 5.25 21H11q.044 0 .086-.005h5.195a3.75 3.75 0 0 0 3.248-1.875l3.03-5.25c1.216-2.104-.225-4.72-2.602-4.868A.8.8 0 0 0 20 8.75a3.25 3.25 0 0 0-3.25-3.25h-5.19L9.72 3.659A2.25 2.25 0 0 0 8.129 3H5.25A3.25 3.25 0 0 0 2 6.25zm6.719-7.292h11.026c1.347 0 2.19 1.458 1.515 2.625l-3.03 5.25a2.25 2.25 0 0 1-1.949 1.124H5.255c-1.347 0-2.19-1.458-1.516-2.625l3.031-5.25a2.25 2.25 0 0 1 1.949-1.124`})}})),rr=J(`FolderRegular`,`icon icon-folder-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3.5 6.25V8h4.629a.75.75 0 0 0 .53-.22l1.53-1.53-1.53-1.53a.75.75 0 0 0-.53-.22H5.25A1.75 1.75 0 0 0 3.5 6.25m-1.5 0A3.25 3.25 0 0 1 5.25 3h2.879a2.25 2.25 0 0 1 1.59.659L11.562 5.5h7.189A3.25 3.25 0 0 1 22 8.75v9A3.25 3.25 0 0 1 18.75 21H5.25A3.25 3.25 0 0 1 2 17.75zM3.5 9.5v8.25c0 .966.784 1.75 1.75 1.75h13.5a1.75 1.75 0 0 0 1.75-1.75v-9A1.75 1.75 0 0 0 18.75 7h-7.19L9.72 8.841a2.25 2.25 0 0 1-1.591.659z`})}})),ir=J(`InfoRegular`,`icon icon-info-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12.002 1.999c5.523 0 10.001 4.478 10.001 10.002 0 5.523-4.478 10.001-10.001 10.001C6.478 22.002 2 17.524 2 12.001 2 6.477 6.478 1.999 12.002 1.999m0 1.5a8.502 8.502 0 1 0 0 17.003 8.502 8.502 0 0 0 0-17.003M12 10.5a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75M12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2`})}})),ar=J(`LayerRegular`,`icon icon-layer-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M20.026 12.192a2 2 0 0 1-.577.598l-6.05 4.084a2.5 2.5 0 0 1-2.798 0l-6.05-4.084a2 2 0 0 1-.779-2.29l6.841 4.56a2.5 2.5 0 0 0 2.613.098l.16-.098 6.841-4.56a2 2 0 0 1-.201 1.692m.201 1.558a1.996 1.996 0 0 1-.778 2.29l-6.05 4.084a2.5 2.5 0 0 1-2.798 0l-6.05-4.084a2 2 0 0 1-.779-2.29l6.841 4.56a2.5 2.5 0 0 0 2.613.098l.16-.098zm-6.84-10.325 6.365 4.243a1 1 0 0 1 0 1.664l-6.365 4.244a2.5 2.5 0 0 1-2.774 0L4.248 9.332a1 1 0 0 1 0-1.664l6.365-4.243a2.5 2.5 0 0 1 2.774 0M11.56 4.606l-.116.067L5.705 8.5l5.74 3.828a1 1 0 0 0 .994.066l.116-.066L18.294 8.5l-5.74-3.827a1 1 0 0 0-.993-.067`})}})),or=J(`LineRegular`,`icon icon-line-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M21.784 2.22a.75.75 0 0 1 0 1.06L3.28 21.784a.75.75 0 1 1-1.06-1.06L20.723 2.22a.75.75 0 0 1 1.06 0`})}})),sr=J(`LinkRegular`,`icon icon-link-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M9.25 7a.75.75 0 0 1 .11 1.492l-.11.008H7a3.5 3.5 0 0 0-.206 6.994L7 15.5h2.25a.75.75 0 0 1 .11 1.492L9.25 17H7a5 5 0 0 1-.25-9.994L7 7zM17 7a5 5 0 0 1 .25 9.994L17 17h-2.25a.75.75 0 0 1-.11-1.492l.11-.008H17a3.5 3.5 0 0 0 .206-6.994L17 8.5h-2.25a.75.75 0 0 1-.11-1.492L14.75 7zM7 11.25h10a.75.75 0 0 1 .102 1.493L17 12.75H7a.75.75 0 0 1-.102-1.493zh10z`})}})),cr=J(`MergeRegular`,`icon icon-merge-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3 6.75A.75.75 0 0 1 3.75 6h3.257A3.75 3.75 0 0 1 9.66 7.098l2.95 2.95a3.25 3.25 0 0 0 2.298.952h4.53L15.72 7.28a.75.75 0 1 1 1.06-1.06l4.999 5a.75.75 0 0 1 0 1.06l-4.999 5a.75.75 0 1 1-1.06-1.06l3.718-3.72h-4.47a3.25 3.25 0 0 0-2.357 1.012l-2.68 2.82A3.75 3.75 0 0 1 7.212 17.5H3.75a.75.75 0 0 1 0-1.5h3.462a2.25 2.25 0 0 0 1.631-.7l2.68-2.822q.388-.406.853-.709a4.8 4.8 0 0 1-.828-.66l-2.95-2.95a2.25 2.25 0 0 0-1.59-.659H3.75A.75.75 0 0 1 3 6.75`})}})),lr=J(`MoreHorizontalRegular`,`icon icon-more-horizontal-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M7.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0m6 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M18 13.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5`})}})),ur=J(`PauseRegular`,`icon icon-pause-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M6.25 3A2.25 2.25 0 0 0 4 5.25v13.5A2.25 2.25 0 0 0 6.25 21h2.5A2.25 2.25 0 0 0 11 18.75V5.25A2.25 2.25 0 0 0 8.75 3zM5.5 5.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75zM15.25 3A2.25 2.25 0 0 0 13 5.25v13.5A2.25 2.25 0 0 0 15.25 21h2.5A2.25 2.25 0 0 0 20 18.75V5.25A2.25 2.25 0 0 0 17.75 3zm-.75 2.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75z`})}})),dr=J(`PlayRegular`,`icon icon-play-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M7.608 4.615a.75.75 0 0 0-1.108.659v13.452a.75.75 0 0 0 1.108.659l12.362-6.726a.75.75 0 0 0 0-1.318zM5 5.274c0-1.707 1.826-2.792 3.325-1.977l12.362 6.727c1.566.852 1.566 3.1 0 3.952L8.325 20.702C6.826 21.518 5 20.432 5 18.726z`})}})),fr=J(`ProhibitedRegular`,`icon icon-prohibited-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m6.517 4.543L6.543 18.517A8.5 8.5 0 0 0 18.517 6.543M12 3.5a8.5 8.5 0 0 0-6.517 13.957L17.457 5.483A8.47 8.47 0 0 0 12 3.5`})}})),pr=J(`RecordRegular`,`icon icon-record-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12m0-16C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0`})}})),mr=J(`SearchRegular`,`icon icon-search-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M16.102 17.162a8 8 0 1 1 1.06-1.06l4.618 4.618a.75.75 0 1 1-1.06 1.06zM17.5 11a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0`})}})),hr=J(`ShapesRegular`,`icon icon-shapes-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M8.75 3.5A5.25 5.25 0 0 0 8 13.947v1.512A6.751 6.751 0 1 1 15.459 8h-1.512A5.25 5.25 0 0 0 8.75 3.5m3.5 5.5A3.25 3.25 0 0 0 9 12.25v6.5A3.25 3.25 0 0 0 12.25 22h6.5A3.25 3.25 0 0 0 22 18.75v-6.5A3.25 3.25 0 0 0 18.75 9zm-1.75 3.25c0-.966.784-1.75 1.75-1.75h6.5c.966 0 1.75.784 1.75 1.75v6.5a1.75 1.75 0 0 1-1.75 1.75h-6.5a1.75 1.75 0 0 1-1.75-1.75z`})}})),gr=J(`ShieldCheckmarkRegular`,`icon icon-shield-checkmark-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11q0 .507-.04.996a6.5 6.5 0 0 0-1.465-.684q.005-.155.005-.312V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.149 2.332 7.221 7.125 9.285a6.5 6.5 0 0 0 1.005 1.52l-.355.143a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-2.146-2.354a.5.5 0 0 0-.708 0L16.5 18.793l-1.646-1.647a.5.5 0 0 0-.708.708l2 2a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708`})}})),_r=J(`ShieldDismissRegular`,`icon icon-shield-dismiss-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12.45 2.15C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11V5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0M12 3.678c-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8M9.28 8.222l2.724 2.723 2.725-2.723a.75.75 0 0 1 .975-.073l.084.073a.75.75 0 0 1 .073.975l-.073.084-2.724 2.723 2.724 2.725a.749.749 0 1 1-1.06 1.059l-2.724-2.724-2.723 2.724a.75.75 0 0 1-.975.073l-.084-.073a.75.75 0 0 1-.073-.975l.073-.084 2.723-2.725-2.723-2.723A.75.75 0 0 1 9.28 8.22`})}})),vr=J(`ShieldErrorRegular`,`icon icon-shield-error-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M20.25 5c-2.663 0-5.258-.943-7.8-2.85a.75.75 0 0 0-.9 0C9.008 4.057 6.413 5 3.75 5a.75.75 0 0 0-.75.75V11c0 5.001 2.958 8.676 8.725 10.948a.75.75 0 0 0 .55 0C18.042 19.676 21 16 21 11V5.75a.75.75 0 0 0-.75-.75M4.5 6.478c2.577-.152 5.08-1.09 7.5-2.8 2.42 1.71 4.923 2.648 7.5 2.8V11c0 4.256-2.453 7.379-7.5 9.442C6.953 18.379 4.5 15.256 4.5 11zm8.243 1.174a.75.75 0 0 0-1.493.102v6.498l.007.102a.75.75 0 0 0 1.493-.102V7.754zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2`})}})),yr=J(`ShieldRegular`,`icon icon-shield-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zm1.5.728V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8`})}})),br=J(`SubtractRegular`,`icon icon-subtract-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3.754 12.5h16.492a.75.75 0 0 0 0-1.5H3.754a.75.75 0 0 0 0 1.5`})}})),xr=J(`TextBoldRegular`,`icon icon-text-bold-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M6.935 4.44A1.5 1.5 0 0 1 7.996 4h4.384C15.016 4 17 6.182 17 8.625a4.63 4.63 0 0 1-.866 2.682c1.077.827 1.866 2.12 1.866 3.813 0 3.112-2.7 4.88-4.88 4.88H8a1.5 1.5 0 0 1-1.5-1.5l-.004-13c0-.397.158-.779.44-1.06M9.5 10.25h2.88c.903 0 1.62-.76 1.62-1.625S13.282 7 12.38 7H9.498zm0 3V17h3.62c.874 0 1.88-.754 1.88-1.88 0-1.13-.974-1.87-1.88-1.87z`})}})),Sr=J(`TextBulletListLtrRegular`,`icon icon-text-bullet-list-ltr-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3.25 17.5a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh14.5zm-3.5-7a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493L21.25 13H6.75a.75.75 0 0 1-.102-1.493zh14.5zm-3.5-7a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh14.5z`})}})),Cr=J(`TextHeader_1Regular`,`icon icon-text-header-1-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M19.59 5.082a.75.75 0 0 0-.809.083.75.75 0 0 0-.249.367c-.69 2.051-2.057 3.409-3.168 4.075a.75.75 0 0 0 .772 1.286c.774-.464 1.623-1.18 2.364-2.146v9.503a.75.75 0 0 0 1.5 0V5.772a.75.75 0 0 0-.41-.69M3.5 5.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V12.5H10v5.75a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-1.5 0V11H3.5z`})}})),wr=J(`TextHeader_2Regular`,`icon icon-text-header-2-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M10.75 5a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-1.5 0V12.5H3.5v5.75a.75.75 0 0 1-1.5 0V5.75a.75.75 0 0 1 1.5 0V11H10V5.75a.75.75 0 0 1 .75-.75m7-.5A4.25 4.25 0 0 1 22 8.75c0 1.299-.545 2.3-1.29 3.115-.722.79-1.673 1.45-2.524 2.058-1.554 1.11-2.799 2.084-3.11 3.577h6.174a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75c0-2.812 2.114-4.333 3.814-5.548.899-.642 1.698-1.201 2.288-1.848.568-.622.898-1.278.898-2.104a2.75 2.75 0 0 0-5.473-.393.75.75 0 0 1-1.484-.211A4.25 4.25 0 0 1 17.75 4.5`})}})),Tr=J(`TextHeader_3Regular`,`icon icon-text-header-3-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M17.751 4.5c2.321 0 4.25 1.822 4.25 4.125 0 1.407-.721 2.633-1.81 3.375 1.089.742 1.81 1.968 1.81 3.375 0 2.303-1.929 4.125-4.25 4.125-.85 0-1.715-.243-2.447-.654-.73-.41-1.38-1.015-1.735-1.782a.75.75 0 0 1 1.362-.63c.19.412.578.808 1.106 1.104a3.6 3.6 0 0 0 1.714.462c1.544 0 2.75-1.2 2.75-2.625 0-1.424-1.206-2.625-2.75-2.625H16.75a.75.75 0 0 1 0-1.5h1.001c1.544 0 2.75-1.2 2.75-2.625 0-1.424-1.206-2.625-2.75-2.625-.575 0-1.19.167-1.714.462-.528.296-.915.692-1.106 1.104a.75.75 0 0 1-1.362-.63c.355-.767 1.005-1.372 1.735-1.782A5.1 5.1 0 0 1 17.75 4.5m-7 .5a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-1.5 0V12.5H3.5v5.75a.75.75 0 0 1-1.5 0V5.75a.75.75 0 0 1 1.5 0V11H10V5.75a.75.75 0 0 1 .75-.75`})}})),Er=J(`TextItalicRegular`,`icon icon-text-italic-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M18.75 4a.75.75 0 0 1 0 1.5h-3.482l-4.932 13h3.414a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5h3.482l4.932-13H10.25a.75.75 0 0 1 0-1.5z`})}})),Dr=J(`TextNumberListLtrRegular`,`icon icon-text-number-list-ltr-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M6 2.75a.75.75 0 0 0-1.434-.307l-.002.003-.011.024-.056.108a4 4 0 0 1-.238.385c-.217.312-.524.662-.906.901a.75.75 0 1 0 .794 1.272q.188-.117.353-.248V7.25a.75.75 0 1 0 1.5 0zm14.5 16a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75m0-6.506a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75m0-6.494a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75M5.15 10.52c-.3-.053-.676.066-.87.26a.75.75 0 0 1-1.06-1.06c.556-.556 1.43-.812 2.192-.677.397.07.805.254 1.115.605.316.358.473.825.473 1.352 0 .62-.271 1.08-.606 1.42-.278.283-.63.511-.906.689l-.08.051a6 6 0 0 0-.481.34H6.25a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75c0-1.313.984-1.953 1.575-2.337l.06-.04c.318-.205.533-.345.69-.504.134-.136.175-.238.175-.369 0-.223-.061-.318-.098-.36a.42.42 0 0 0-.251-.12M2.97 21.28s.093.084.004.005l.006.005.013.013a1.4 1.4 0 0 0 .15.125c.095.071.227.158.397.243.341.17.83.33 1.46.33.64 0 1.196-.182 1.601-.54.408-.36.61-.858.595-1.36a1.78 1.78 0 0 0-.426-1.1c.259-.306.412-.686.426-1.102a1.73 1.73 0 0 0-.595-1.36C6.196 16.182 5.64 16 5 16c-.63 0-1.119.158-1.46.33a2.6 2.6 0 0 0-.51.334l-.037.033-.013.013-.006.005-.002.003H2.97l-.001.002a.75.75 0 0 0 1.048 1.072l.026-.02a1 1 0 0 1 .166-.101c.159-.08.42-.17.79-.17.36 0 .536.099.608.163a.23.23 0 0 1 .088.187.33.33 0 0 1-.123.23c-.089.078-.263.17-.573.17a.75.75 0 0 0 0 1.5c.31 0 .484.09.573.167.091.08.121.166.123.231a.23.23 0 0 1-.088.188c-.072.063-.247.163-.608.163a1.75 1.75 0 0 1-.79-.17 1 1 0 0 1-.192-.122.75.75 0 0 0-1.048 1.072m.002-4.562c.007-.005.2-.166 0 0`})}})),Or=J(`TextQuoteRegular`,`icon icon-text-quote-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M8 5a3 3 0 0 1 2.997 2.916l.006.084c0 2.933-1.067 5.382-2.113 7.081a16 16 0 0 1-1.446 1.985 12 12 0 0 1-.664.714l-.011.012-.004.003-.001.002a.75.75 0 0 1-1.027-1.094l.005-.005.028-.026.113-.115c.1-.104.246-.26.423-.467.354-.414.83-1.023 1.306-1.796a13 13 0 0 0 1.526-3.519A3 3 0 1 1 8 5m8 0a3 3 0 0 1 2.997 2.916l.006.084c0 2.933-1.067 5.382-2.113 7.081a16 16 0 0 1-1.446 1.985 12 12 0 0 1-.664.714l-.011.012-.004.003-.001.002a.75.75 0 0 1-1.027-1.094l.005-.005.027-.026.114-.115c.1-.104.246-.26.423-.467.354-.414.83-1.023 1.306-1.796a13 13 0 0 0 1.526-3.519A3 3 0 1 1 16 5M8 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m8 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3`})}})),kr=J(`TextStrikethroughRegular`,`icon icon-text-strikethrough-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M4.75 12h14.5a.75.75 0 0 1 .102 1.493l-.101.007h-2.975c.88.813 1.336 1.793 1.336 2.935 0 2.825-3.232 4.64-6.754 4.23-2.235-.26-3.809-1.155-4.635-2.702a.75.75 0 0 1 1.323-.707c.57 1.068 1.702 1.712 3.485 1.92 2.743.318 5.081-.995 5.081-2.741 0-1.172-.805-2.127-2.565-2.886l-.116-.049H4.75a.75.75 0 0 1-.743-.648L4 12.75a.75.75 0 0 1 .648-.743zh14.5zm1.511-3.877c.152-2.83 2.822-4.468 6.324-4.061 2.188.254 3.863 1.053 4.982 2.409a.75.75 0 1 1-1.157.955c-.852-1.033-2.17-1.662-3.999-1.874-2.717-.316-4.65.804-4.65 2.571 0 .772.234 1.348.83 1.982l.128.132c.094.096.197.195.25.24l.031.02H7.08l-.024-.038c-.143-.206-.856-1.195-.795-2.336`})}})),Ar=J(`TextUnderlineRegular`,`icon icon-text-underline-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M6.75 19h10.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh10.5zm10.5-15a.75.75 0 0 1 .743.648L18 4.75v6c0 4.394-2.063 6.75-6.003 6.75-3.855 0-5.91-2.255-5.994-6.466L6 10.75v-6a.75.75 0 0 1 1.493-.102l.007.102v6C7.496 14.358 8.933 16 11.997 16c2.985 0 4.428-1.56 4.5-4.976l.003-.274v-6a.75.75 0 0 1 .75-.75`})}})),jr=J(`WarningRegular`,`icon icon-warning-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M9.138 3.707c1.228-2.276 4.494-2.276 5.721 0l6.743 12.502c1.168 2.165-.4 4.792-2.86 4.793H5.255c-2.46 0-4.028-2.628-2.86-4.793zm4.4.712c-.66-1.225-2.419-1.225-3.08 0L3.715 16.921a1.75 1.75 0 0 0 1.54 2.581h13.487a1.75 1.75 0 0 0 1.54-2.581zM12 15a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-7.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 12 7.5`})}})),Mr=n({}),Nr={heading:`accordion-header`,button:`accordion-header-button`,disabled:`accordion-header-button-disabled`,label:`min-w-0`,indicator:`accordion-header-indicator`,indicatorOpen:`rotate-180`};function Pr(t,n){let{className:r,children:i,headingLevel:a,...o}=t,{headingLevel:s}=e.useContext(hn),{headerId:c,panelId:l,isOpen:u,disabled:d,isPanelPresent:f,toggle:p}=e.useContext(Mr);return(0,q.jsx)(a??s??`h3`,{className:Nr.heading,"data-component":`Accordion.Header`,children:(0,q.jsxs)(`button`,{ref:n,type:`button`,id:c,className:G(Nr.button,d&&Nr.disabled,r),onClick:p,disabled:d,"aria-expanded":!!u,"aria-controls":f?l:void 0,"data-component":`Accordion.HeaderButton`,"data-open":!!u,...o,children:[(0,q.jsx)(`span`,{className:Nr.label,children:i}),(0,q.jsx)(zn,{className:G(Nr.indicator,u&&Nr.indicatorOpen),"aria-hidden":`true`})]})})}Pr.displayName=`Accordion.Header`;var Fr=K(Pr);const Y=e=>{let t=c();return e||t},Ir={root:`accordion-item`};function Lr(t,n){let{as:r=`div`,className:i,value:a,disabled:o,...s}=t,{open:c,setOpen:l,toggle:u,disabled:d,keepMounted:f,hiddenUntilFound:p}=e.useContext(hn),m=Y(),h=a??m,g=c?.includes(h)??!1,_=o??d??!1,[v,y]=e.useState(!0),b={headerId:`${m}-header`,panelId:`${m}-panel`,isOpen:g,disabled:_,keepMounted:f,hiddenUntilFound:p,isPanelPresent:v,setPanelPresent:y,setOpen:e=>l?.(h,e),toggle:()=>u?.(h)};return(0,q.jsx)(Mr.Provider,{value:b,children:(0,q.jsx)(r,{ref:n,className:G(Ir.root,i),"data-component":`Accordion.Item`,"data-value":h,"data-open":g,"data-disabled":_,...s})})}Lr.displayName=`Accordion.Item`;var Rr=K(Lr);const zr=!!(typeof window<`u`&&window.document&&window.document.createElement),Br=p.split(`.`),Vr=parseInt(Br[0],10),Hr=/^0\.0\.0-experimental-[a-f0-9]{8}-\d{8}$/.test(p),Ur=zr?l:s,Wr=Vr>=19||Hr,Gr=(e,t)=>a(n=>{let r=Kr(e,n),i=Kr(t,n);if(Wr)return()=>{r?r():Kr(e,null),i?i():Kr(t,null)}},[e,t]),Kr=(e,t)=>{if(typeof e==`function`)return e(t);e&&(e.current=t)},qr={root:`accordion-panel`};function Jr(t,n){let{as:r=`div`,className:i,...a}=t,{headerId:o,panelId:s,isOpen:c,keepMounted:l,hiddenUntilFound:u,setOpen:d,setPanelPresent:f}=e.useContext(Mr),p=e.useRef(null),m=Gr(n,p),h=(l??!0)||!!u||!!c;return Ur(()=>(f?.(h),()=>f?.(!1)),[h,f]),Ur(()=>{let e=p.current;!e||!c||e.style.setProperty(`--accordion-panel-height`,`${e.scrollHeight}px`)},[c]),Ur(()=>{let e=p.current;!e||!u||c||e.setAttribute(`hidden`,`until-found`)},[u,c]),e.useEffect(()=>{let e=p.current;if(!e||!u)return;let t=()=>d?.(!0);return e.addEventListener(`beforematch`,t),()=>e.removeEventListener(`beforematch`,t)},[u,d]),h?(0,q.jsx)(r,{ref:m,id:s,hidden:!c,role:`region`,"aria-labelledby":o,className:G(qr.root,i),"data-component":`Accordion.Panel`,"data-open":!!c,...a}):null}Jr.displayName=`Accordion.Panel`;var Yr=K(Jr);const Xr=Object.assign(yn,{Item:Rr,Header:Fr,Panel:Yr}),Zr=[`[disabled]`,`[hidden]`,`[inert]`,`[tabindex='-1']`],Qr=[`a[href]`,`button`,`summary`,`select`,`input:not([type=hidden])`,`textarea`,`[tabindex='0']`,`audio[controls]`,`video[controls]`,`[contenteditable]`].map(e=>`${e}:not(${Zr.join(`):not(`)})`).join(`, `),$r=e=>{if(e.matches(`[disabled], [hidden], [inert]`))return!0;let t=getComputedStyle(e);return t.display===`none`||t.visibility===`hidden`},ei=e=>!e||$r(e)?[]:Array.from(e.querySelectorAll(Qr)).filter(e=>!$r(e)),ti=e=>ei(e).length>0,ni={vertical:{previous:`ArrowUp`,next:`ArrowDown`},horizontal:{previous:`ArrowLeft`,next:`ArrowRight`}},ri=({containerRef:e,direction:t=`vertical`,wrap:n=!1,disabled:r,focusableFilter:i})=>{s(()=>{let a=e.current;if(!a||r)return;let{previous:o,next:s}=ni[t],c=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;let t=e.key===`End`,r=e.key===`Home`,c=e.key===s?1:e.key===o?-1:0;if(c===0&&!r&&!t)return;let l=ei(a).filter(e=>i?.(e)??!0);if(l.length===0)return;if(e.preventDefault(),r||t){l[r?0:l.length-1].focus();return}let u=l.indexOf(document.activeElement),d=u===-1?0:u+c;if(d>=0&&d<l.length){l[d].focus();return}n&&l[(d+l.length)%l.length].focus()};return a.addEventListener(`keydown`,c),()=>{a.removeEventListener(`keydown`,c)}},[e,t,n,r,i])},ii=(e,t)=>{let n=typeof e;if(n!==`object`&&n!==`function`&&e!==null)return!1;let r=e,i=r.__SLOT__??r.type?.__SLOT__;return t.__SLOT__?i===t.__SLOT__:!1},ai=(e,t)=>(t.__SLOT__&&(e.__SLOT__=t.__SLOT__),e),oi=(e,t)=>{if(Array.isArray(t)){let[n,r]=t;return(e.type===n||ii(e,n))&&r(e.props)}return e.type===t||ii(e,t)},si=(e,n)=>{let r=[],i=Object.keys(n),a=Object.values(n),o=i.length,s={};for(let e=0;e<o;e++)s[i[e]]=void 0;let c=0;return t.Children.forEach(e,e=>{if(!t.isValidElement(e)){r.push(e);return}if(c===o){r.push(e);return}let n=ci(e,a,o);if(n===-1){r.push(e);return}let l=i[n];s[l]===void 0&&(s[l]=e,c++)}),[s,r]},ci=(e,t,n)=>{for(let r=0;r<n;r++)if(oi(e,t[r]))return r;return-1},li=W(`heading`,{variants:{size:{large:`text-title-large`,medium:`text-title-medium`,small:`text-title-small`}}});function ui(e,t){let{as:n=`h2`,className:r,size:i=`large`,...a}=e;return(0,q.jsx)(n,{ref:t,className:G(li({size:i}),r),"data-component":`Heading`,"data-size":i,...a})}ui.displayName=`Heading`;var di=K(ui);const fi=n({}),pi={root:`action-list-heading`,hidden:`sr-only`};function mi(t,n){let{as:r,className:i,visuallyHidden:a=!1,id:o,...s}=t,{headingId:c}=e.useContext(fi);return(0,q.jsx)(di,{ref:n,as:r,id:o??c,className:G(pi.root,a&&pi.hidden,i),"data-component":`ActionList.Heading`,...s})}mi.displayName=`ActionList.Heading`;var hi=K(mi);const gi=n({}),_i=W(`action-list`,{variants:{variant:{inset:`action-list-inset`,full:`action-list-full`},dividers:{true:`action-list-dividers`,false:``}}}),vi={heading:hi},yi=[`menu`,`menubar`,`listbox`];function bi(t,n){let{as:r=`ul`,className:i,children:a,variant:o=`inset`,selectionVariant:s,showDividers:c=!1,disableFocusZone:l=!1,role:u,...d}=t,[f,p]=si(a,vi),m=Y(),{listRole:h,listLabel:g,listLabelledBy:_,selectionVariant:v,enableFocusZone:y}=e.useContext(gi),b=u??h,x=s??v,S=f.heading?f.heading.props.id??m:_,C=e.useRef(null),w=Gr(n,C),T=y??(b!==void 0&&!l&&yi.includes(b));ri({containerRef:C,disabled:!T,wrap:b===`menu`});let E=e.useMemo(()=>({variant:o,selectionVariant:x,showDividers:c,role:b,headingId:m}),[o,x,c,b,m]);return(0,q.jsxs)(fi.Provider,{value:E,children:[f.heading,(0,q.jsx)(r,{ref:w,role:b,"aria-label":S?void 0:g,"aria-labelledby":S,className:G(_i({variant:o,dividers:c}),i),"data-component":`ActionList`,"data-variant":o,"data-dividers":c?``:void 0,...d,children:p})]})}bi.displayName=`ActionList`;var xi=K(bi);const Si=n({}),Ci={root:`action-list-description`,inline:`min-w-0 truncate`};function wi(t){let{className:n,variant:r=`inline`,...i}=t,{blockDescriptionId:a,inlineDescriptionId:o}=e.useContext(Si);return(0,q.jsx)(`span`,{id:r===`block`?a:o,className:G(Ci.root,r===`inline`&&Ci.inline,n),"data-component":`ActionList.Description`,"data-variant":r,...i})}wi.displayName=`ActionList.Description`;const Ti={root:`action-list-divider`};function Ei(e){let{className:t,...n}=e;return(0,q.jsx)(`li`,{"aria-hidden":`true`,className:G(Ti.root,t),"data-component":`ActionList.Divider`,...n})}Ei.displayName=`ActionList.Divider`;const Di=n({}),Oi={__SLOT__:Symbol(`ActionList.GroupHeading`)},ki={heading:`action-list-group-heading-label`,auxiliary:`action-list-group-heading-auxiliary`},Ai=W(`action-list-group-heading`,{variants:{variant:{subtle:``,filled:`action-list-group-heading-filled`}}});function ji(t){let{as:n,className:r,children:i,variant:a=`subtle`,auxiliaryText:o,...s}=t,{role:c}=e.useContext(fi),{groupHeadingId:l}=e.useContext(Di),u=c!==void 0&&c!==`list`,d=n??`h3`;return(0,q.jsxs)(`div`,{className:G(Ai({variant:a})),"data-component":`ActionList.GroupHeading`,"data-variant":a,...u?{role:`presentation`,"aria-hidden":!0}:{},children:[u?(0,q.jsx)(`span`,{id:l,className:G(ki.heading,r),...s,children:i}):(0,q.jsx)(d,{id:l,className:G(ki.heading,r),...s,children:i}),o?(0,q.jsx)(`div`,{className:ki.auxiliary,children:o}):null]})}ji.displayName=`ActionList.GroupHeading`;const Mi=ai(ji,Oi),Ni={root:`action-list-group`,list:`action-list-group-items`},Pi={groupHeading:Mi};function Fi(t){let{className:n,children:r,selectionVariant:i,role:a,"aria-label":o,...s}=t,c=Y(),{role:l}=e.useContext(fi),[u,d]=si(r,Pi),f=u.groupHeading?u.groupHeading.props.id??c:void 0,p=e.useMemo(()=>({selectionVariant:i,groupHeadingId:f}),[i,f]),m=l&&typeof u.groupHeading?.props.children==`string`?u.groupHeading.props.children:void 0;return(0,q.jsx)(`li`,{className:G(Ni.root,n),"data-component":`ActionList.Group`,role:l?`none`:void 0,...s,children:(0,q.jsxs)(Di.Provider,{value:p,children:[u.groupHeading,(0,q.jsx)(`ul`,{className:Ni.list,role:a??(l?`group`:void 0),"aria-labelledby":l?void 0:f,"aria-label":o??m,children:d})]})})}Fi.displayName=`ActionList.Group`;const Ii={root:`spinner`,srOnly:`sr-only`},Li=W(`motion-safe:animate-spin`,{variants:{size:{small:`spinner-small`,medium:`spinner-medium`,large:`spinner-large`}}});function Ri(e,t){let{as:n=`span`,size:r=`medium`,srText:i=`Loading`,className:a,"aria-label":o,...s}=e;return(0,q.jsxs)(n,{ref:t,role:`status`,"aria-label":o??void 0,className:G(Ii.root,a),"data-component":`Spinner`,...s,children:[(0,q.jsx)(Cn,{className:G(Li({size:r})),"aria-hidden":`true`}),i!==null&&o===void 0?(0,q.jsx)(`span`,{className:Ii.srOnly,children:i}):null]})}Ri.displayName=`Spinner`;var zi=K(Ri);const Bi={root:`action-list-visual`,muted:`action-list-visual-muted`,inherit:`action-list-visual-inherit`},Vi=({className:t,...n})=>{let{variant:r,disabled:i,inactive:a}=e.useContext(Si),o=r===`danger`||i||a;return(0,q.jsx)(`span`,{className:G(Bi.root,o?Bi.inherit:Bi.muted,t),...n})};function Hi(e){return(0,q.jsx)(Vi,{"data-component":`ActionList.LeadingVisual`,...e})}Hi.displayName=`ActionList.LeadingVisual`;function Ui({children:e}){return(0,q.jsx)(q.Fragment,{children:e})}Ui.displayName=`ActionList.SubItem`;const Wi={srOnly:`sr-only`},Gi=W(`counter-label`,{variants:{variant:{primary:`counter-label-primary`,secondary:`counter-label-secondary`}}});function Ki(e,t){let{as:n=`span`,className:r,variant:i=`secondary`,children:a,...o}=e;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(n,{ref:t,"aria-hidden":`true`,className:G(Gi({variant:i}),r),"data-component":`CounterLabel`,"data-variant":i,...o,children:a}),(0,q.jsxs)(`span`,{className:Wi.srOnly,children:[`\xA0(`,a,`)`]})]})}Ki.displayName=`CounterLabel`;var qi=K(Ki);const Ji={base:`button`,disabled:`button-disabled`,block:`button-block`,size:{small:`button-small`,medium:``,large:`button-large`},variant:{default:{rest:`button-default`,disabled:`button-default-disabled`},primary:{rest:`button-primary`,disabled:`button-primary-disabled`},danger:{rest:`button-danger`,disabled:`button-danger-disabled`},invisible:{rest:`button-invisible`,disabled:`button-invisible-disabled`},link:{rest:`button-link`,disabled:`button-link-disabled`}},link:`button-link-shape`,linkUnderlines:`button-link-underlines`,inactive:`button-inactive`,inactiveLink:`button-inactive-link`,iconTone:{default:`button-icon-tone-default`,primary:``,danger:``,invisible:`button-icon-tone-invisible`,link:``},labelWrapRoot:`button-label-wrap`,labelWrapHeight:{small:`button-label-wrap-small`,medium:`button-label-wrap-medium`,large:`button-label-wrap-large`},labelWrapContent:{small:`button-label-wrap-content-small`,medium:`button-label-wrap-content-medium`,large:`button-label-wrap-content-large`},labelWrapLabel:`button-label-wrap-label`,iconOnlyCounter:{small:`button-icon-only-counter-small`,medium:`button-icon-only-counter-medium`,large:`button-icon-only-counter-large`},content:`button-content`,contentGap:{small:`button-content-gap-small`,medium:`button-content-gap-medium`,large:`button-content-gap-large`},align:{start:`justify-start`,center:`justify-center`},label:`button-label`,labelLineHeight:{small:`button-label-small`,medium:`button-label-medium`,large:`button-label-large`},labelHidden:`invisible`,visualBase:`button-visual`,visual:{default:`button-visual-default`,primary:`button-visual-primary`,danger:`button-visual-danger`,invisible:`button-visual-invisible`,link:`button-visual-link`},visualMuted:`button-visual-muted`,counter:{default:`button-counter-default`,primary:`button-counter-primary`,danger:`button-counter-danger`,invisible:`button-counter-invisible`,link:``},counterMuted:`button-counter-muted`,counterMutedDanger:`button-counter-muted-danger`,leadingVisual:`button-leading-visual`,trailingVisual:`button-trailing-visual`,trailingAction:`button-trailing-action`,loadingSpinner:`items-center justify-center`,standaloneSpinner:`button-standalone-spinner`,loadingWrapper:`inline-flex`,loadingWrapperBlock:`block`,srOnly:`sr-only`},Yi=(t,n,r,i)=>{let a=t;return(0,q.jsx)(`span`,{"data-component":n,className:G(Ji.visualBase,r&&Ji.loadingSpinner,i),children:r?(0,q.jsx)(zi,{size:`small`,srText:null,role:`presentation`}):e.isValidElement(t)?t:(0,q.jsx)(a,{})})};function Xi(e,t){let{as:n=`button`,className:r,children:i,icon:a,leadingVisual:o,trailingVisual:s,trailingAction:c,count:l,variant:u=`default`,size:d=`medium`,alignContent:f=`center`,block:p=!1,loading:m,loadingAnnouncement:h=`Loading`,inactive:g,labelWrap:_,disabled:v,id:y,onClick:b,"aria-describedby":x,"aria-labelledby":S,"aria-disabled":C,...w}=e,T=Y(y),E=`${T}-label`,D=`${T}-loading-announcement`,O=!!m,k=!!v||(C===!0||C===`true`)&&!O,A=!k&&!g,j=!!(o||s||c),M=O&&!j&&l===void 0,N=l!==void 0&&!!o&&!i,P=g?u===`link`?Ji.inactiveLink:Ji.inactive:Ji.variant[u][k?`disabled`:`rest`],F=A?Ji.visual[u]:Ji.visualMuted,I=A?Ji.counter[u]:u===`danger`?Ji.counterMutedDanger:G(Ji.counter[u],Ji.counterMuted),L=(0,q.jsx)(n,{ref:t,className:G(Ji.base,Ji.size[d],u===`link`&&Ji.link,u===`link`&&!j&&Ji.linkUnderlines,P,a&&A&&Ji.iconTone[u],k&&Ji.disabled,p&&Ji.block,_&&Ji.labelWrapRoot,_&&Ji.labelWrapHeight[d],N&&Ji.iconOnlyCounter[d],r),"data-component":`Button`,"data-block":p?`block`:void 0,"data-inactive":g?``:void 0,"data-loading":O?`true`:void 0,"data-no-visuals":j?void 0:``,"data-size":d,"data-variant":u,"data-label-wrap":_?`true`:void 0,"data-has-count":l===void 0?void 0:`true`,"data-icon-only-counter":N?`true`:void 0,disabled:v,id:y,"aria-disabled":O?!0:C,"aria-describedby":O?[D,x].filter(Boolean).join(` `):x,"aria-labelledby":O&&i?[E,S].filter(Boolean).join(` `):S,onClick:O?void 0:b,...w,children:a?Yi(a,`icon`,O,``):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{"data-component":`buttonContent`,"data-align":f,className:G(Ji.content,!M&&Ji.contentGap[d],Ji.align[f],_&&Ji.labelWrapContent[d]),children:[M?Yi(zi,`loadingSpinner`,!0,G(F,Ji.standaloneSpinner)):null,o?Yi(o,`leadingVisual`,O,G(F,Ji.leadingVisual)):null,i?(0,q.jsx)(`span`,{"data-component":`text`,id:O?E:void 0,className:G(Ji.label,Ji.labelLineHeight[d],_&&Ji.labelWrapLabel,M&&Ji.labelHidden),children:i}):null,l!==void 0&&!s?Yi((0,q.jsx)(qi,{className:I,"data-component":`ButtonCounter`,children:l}),`trailingVisual`,O&&!o,Ji.trailingVisual):s?Yi(s,`trailingVisual`,O&&!o,G(F,Ji.trailingVisual)):null]}),c?Yi(c,`trailingAction`,O&&!o&&!s,G(F,Ji.trailingAction)):null]})});return m===void 0?L:(0,q.jsxs)(`span`,{className:p?Ji.loadingWrapperBlock:Ji.loadingWrapper,"data-loading-wrapper":``,children:[L,(0,q.jsx)(`span`,{id:D,role:`status`,className:Ji.srOnly,children:O?h:``})]})}Xi.displayName=`ButtonBase`;var Zi=K(Xi);function Qi(e,t){let{as:n=`button`,type:r=`button`,...i}=e;return(0,q.jsx)(Zi,{ref:t,as:n,type:r,...i})}Qi.displayName=`Button`;var $i=K(Qi);const ea=W(`icon-button`,{variants:{size:{small:`icon-button-small`,medium:`icon-button-medium`,large:`icon-button-large`}}});function ta(e,t){let{as:n=`button`,className:r,size:i=`medium`,...a}=e;return(0,q.jsx)(Zi,{ref:t,as:n,type:`button`,size:i,"data-component":`IconButton`,className:G(ea({size:i}),r),...a})}ta.displayName=`IconButton`;var na=K(ta);const ra={root:`action-list-trailing-action`,action:`action-list-trailing-action-button`};function ia(e,t){let{className:n,icon:r,label:i,...a}=e;return(0,q.jsx)(`span`,{className:ra.root,"data-component":`ActionList.TrailingAction`,children:r?(0,q.jsx)(na,{ref:t,icon:r,"aria-label":i,variant:`invisible`,size:`small`,className:G(ra.action,n),...a}):(0,q.jsx)($i,{ref:t,variant:`invisible`,size:`small`,className:G(ra.action,n),...a,children:i})})}ia.displayName=`ActionList.TrailingAction`;var aa=K(ia);function oa(t){let{trailingVisualId:n}=e.useContext(Si);return(0,q.jsx)(Vi,{id:n,"data-component":`ActionList.TrailingVisual`,...t})}oa.displayName=`ActionList.TrailingVisual`;const sa={unselected:`invisible`,checkmark:`action-list-selection-checkmark`,checkbox:`action-list-selection-checkbox`,checkboxSelected:`action-list-selection-checkbox-selected`},ca=({selected:t,className:n})=>{let{selectionVariant:r}=e.useContext(fi),{selectionVariant:i}=e.useContext(Di),a=i===void 0?r:i;return a?a===`multiple`?(0,q.jsx)(Vi,{className:n,"data-component":`ActionList.Selection`,children:(0,q.jsx)(`span`,{className:G(sa.checkbox,t&&sa.checkboxSelected),children:(0,q.jsx)(Rn,{className:t?void 0:sa.unselected})})}):(0,q.jsx)(Vi,{className:n,"data-component":`ActionList.Selection`,children:(0,q.jsx)(Rn,{className:G(sa.checkmark,!t&&sa.unselected)})}):null},la={root:`action-list-item`,content:`action-list-item-content`,size:{medium:``,large:`action-list-item-content-large`},danger:`action-list-item-content-danger`,disabled:`action-list-item-content-disabled`,inactive:`action-list-item-content-inactive`,loading:`cursor-default`,active:`action-list-item-content-active`,main:`action-list-item-main`,labelWrap:`action-list-item-label-wrap`,labelWrapBlock:`flex-col gap-0`,label:`min-w-0`,inactiveWarning:`action-list-item-inactive-warning`,srOnly:`sr-only`},ua={leadingVisual:Hi,trailingVisual:oa,trailingAction:aa,description:wi,subItem:Ui},da=[`option`,`menuitem`,`menuitemradio`,`menuitemcheckbox`],fa=[`listbox`,`menu`,`list`];function pa(t,n){let{as:r,className:i,children:a,id:o,role:s,variant:c=`default`,size:l=`medium`,selected:u,active:d=!1,disabled:f=!1,loading:p=!1,inactiveText:m,onSelect:h,...g}=t,[_,v]=si(a,ua),{container:y,afterSelect:b,selectionAttribute:x,defaultTrailingVisual:S}=e.useContext(gi),{role:C,selectionVariant:w}=e.useContext(fi),{selectionVariant:T}=e.useContext(Di),E=!!m,D=T===void 0?w:T||void 0,O;y===`ActionMenu`||C===`menu`?O=D===`single`?`menuitemradio`:D===`multiple`?`menuitemcheckbox`:`menuitem`:C===`listbox`&&D&&(O=`option`);let k=s??O,A=x??(k===`menuitemradio`||k===`menuitemcheckbox`?`aria-checked`:k===`option`?`aria-selected`:void 0),j=C!==void 0&&fa.includes(C)||E||k!==void 0&&da.includes(k),M=r??(j?`div`:`button`),N=r!==void 0||!j,P=!N||M!==`button`&&M!==`a`,F=y===`ActionMenu`||C===`menu`||C===`listbox`,I=!f&&!E&&!p,L=e=>{I&&(h?.(e),!e.defaultPrevented&&b?.(e))},ee=e=>{(e.key===` `||e.key===`Enter`)&&(e.key===` `&&e.preventDefault(),L(e))},R=Y(o),te=`${R}--label`,z=`${R}--inline-description`,ne=`${R}--block-description`,B=`${R}--trailing-visual`,re=E?`${R}--inactive-warning`:void 0,V=_.description?.props.variant??`inline`,ie=_.trailingVisual??(S?(0,q.jsx)(oa,{children:S}):null),ae=p&&!E,oe=(0,q.jsx)(zi,{size:`small`,srText:null}),se=ae&&_.leadingVisual?(0,q.jsx)(Hi,{children:oe}):_.leadingVisual,ce=ae&&!_.leadingVisual?(0,q.jsx)(oa,{children:oe}):ie,le=[_.description?V===`block`?ne:z:void 0,re].filter(Boolean),ue={id:R,role:k,tabIndex:0,onClick:L,onKeyDown:P?ee:void 0,"aria-disabled":f||E||p?!0:void 0,"aria-labelledby":[te,_.trailingVisual?B:void 0].filter(Boolean).join(` `),"aria-describedby":le.length>0?le.join(` `):void 0,...A&&D?{[A]:!!u}:{}},de=!F&&!E&&!p?_.trailingAction:null,fe=e.useMemo(()=>({variant:c,size:l,disabled:f,inactive:E,inlineDescriptionId:z,blockDescriptionId:ne,trailingVisualId:B}),[c,l,f,E,z,ne,B]),pe=G(la.content,la.size[l],c===`danger`&&!f&&!E&&la.danger,d&&la.active,p&&la.loading,E&&la.inactive,f&&la.disabled);return(0,q.jsx)(Si.Provider,{value:fe,children:(0,q.jsxs)(`li`,{ref:N?null:n,className:G(la.root,i),"data-component":`ActionList.Item`,"data-variant":c===`danger`?c:void 0,"data-active":d?``:void 0,"data-inactive":E?``:void 0,"data-disabled":f?``:void 0,"data-loading":p?``:void 0,"data-has-description":_.description?``:void 0,"data-has-trailing-action":de?``:void 0,"data-has-sub-item":_.subItem?``:void 0,...N?{role:k?`none`:void 0}:{...ue,...g},children:[(0,q.jsxs)(M,{ref:N?n:void 0,className:pe,"data-component":`ActionList.Item.Content`,"data-size":l,...N?{...ue,...g,...M===`button`?{type:`button`}:{}}:{},children:[(0,q.jsx)(ca,{selected:u}),se,(0,q.jsxs)(`span`,{className:la.main,children:[(0,q.jsxs)(`span`,{className:G(la.labelWrap,V===`block`&&la.labelWrapBlock),children:[(0,q.jsxs)(`span`,{id:te,className:la.label,"data-component":`ActionList.Item.Label`,children:[v,ae?(0,q.jsx)(`span`,{className:la.srOnly,children:`Loading`}):null]}),_.description]}),ce]})]}),E?(0,q.jsx)(`span`,{id:re,className:la.inactiveWarning,children:m}):null,de,_.subItem]})})}pa.displayName=`ActionList.Item`;var ma=K(pa);function ha(e,t){let{as:n,...r}=e;return(0,q.jsx)(ma,{ref:t,as:n??`a`,...r})}ha.displayName=`ActionList.LinkItem`;var ga=K(ha);const _a=Object.assign(xi,{Item:ma,LinkItem:ga,Group:Fi,GroupHeading:Mi,Heading:hi,Description:wi,Divider:Ei,LeadingVisual:Hi,TrailingVisual:oa,TrailingAction:aa,SubItem:Ui}),va=n(void 0);function ya(t){let{children:n,className:r,onClick:i,onKeyDown:a,...o}=t,s=e.useContext(va),c=e.useContext(gi),l=!!s?.isSubmenu,u=s?.onOpen,d=e.useMemo(()=>l?{...c,defaultTrailingVisual:(0,q.jsx)(Vn,{}),afterSelect:()=>u?.()}:c,[l,u,c]);if(!e.isValidElement(n))return null;let f=n.props,p=e=>{f.onClick?.(e),i?.(e)},m=e=>{f.onKeyDown?.(e),l&&e.key===`ArrowRight`&&!e.defaultPrevented&&(u?.(),e.preventDefault()),a?.(e)};return(0,q.jsx)(gi.Provider,{value:d,children:e.cloneElement(n,{...o,ref:s?.anchorRef,className:G(r,f.className),onClick:p,onKeyDown:m})})}ya.displayName=`ActionMenu.Anchor`;function ba(e){return(0,q.jsx)(ya,{children:(0,q.jsx)($i,{type:`button`,trailingAction:zn,"data-component":`ActionMenu.Button`,...e})})}ba.displayName=`ActionMenu.Button`;const xa=t=>e.isValidElement(t)&&(t.type===ya||t.type===ba),Sa=(e,t)=>({id:e.id,"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],tabIndex:e.tabIndex,onClick:n=>{t.onClick?.(n),e.onClick(n)},onKeyDown:n=>{t.onKeyDown?.(n),e.onKeyDown(n)}});function Ca(t){let{children:n,open:r,onOpenChange:i,anchorRef:a}=t,o=e.useContext(va),s=e.useRef(null),c=a??s,l=r!==void 0,[u,d]=e.useState(!1),f=l?r:u,p=e.useCallback(e=>{d(e),i?.(e)},[i]),m=e.useCallback(()=>p(!0),[p]),h=o?.onClose,g=e.useCallback(e=>{p(!1),(e===`item-select`||e===`tab`)&&h?.(e)},[p,h]),_=e.Children.toArray(n),v=_.find(xa),y=Y(v?.props.id),b=v?t=>e.cloneElement(v,Sa(t,v.props)):null,x=o!==void 0,S=e.useMemo(()=>({anchorRef:c,renderAnchor:b,anchorId:y,open:f,onOpen:m,onClose:g,isSubmenu:x}),[c,b,y,f,m,g,x]);return(0,q.jsx)(va.Provider,{value:S,children:_.filter(e=>e!==v)})}Ca.displayName=`ActionMenu`;const wa=[],Ta=({containerRef:e,initialFocusRef:t,returnFocusRef:n,disabled:r})=>{s(()=>{let i=e.current;if(!i||r)return;let a=document.activeElement;wa.push(i),(t?.current??ei(i)[0]??i).focus();let o=e=>{if(e.key!==`Tab`||wa[wa.length-1]!==i)return;let t=ei(i);if(t.length===0){e.preventDefault();return}let n=t[0],r=t[t.length-1],a=document.activeElement;((e.shiftKey?a===n:a===r)||!i.contains(a))&&(e.preventDefault(),(e.shiftKey?r:n).focus())};return document.addEventListener(`keydown`,o),()=>{document.removeEventListener(`keydown`,o),wa.splice(wa.indexOf(i),1);let e=n?.current??a;e instanceof HTMLElement&&e.focus()}},[e,t,n,r])},Ea=[],Da=e=>{if(!(e.key!==`Escape`||e.defaultPrevented)){for(let t of[...Ea].reverse())if(t(e),e.defaultPrevented)break}},Oa=e=>{let t=u(e);s(()=>{t.current=e},[e]),s(()=>{let e=e=>t.current(e);return Ea.length===0&&document.addEventListener(`keydown`,Da),Ea.push(e),()=>{Ea.splice(Ea.indexOf(e),1),Ea.length===0&&document.removeEventListener(`keydown`,Da)}},[])},ka=(e,t)=>{if(t!=null)return Object.fromEntries(typeof t==`object`?Object.entries(t).map(([t,n])=>Aa(`data-${e}-${t}`,n)):[Aa(`data-${e}`,t)])},Aa=(e,t)=>[e,t],ja=n({}),Ma=`__baseUiPortalRoot__`,Na=`__default__`,Pa={root:`portal-root`},Fa={},Ia=(e,t=Na)=>{Fa[t]=e},La=()=>{let e=Fa[Na];if(e&&document.body.contains(e))return;let t=document.getElementById(Ma);t||(t=document.createElement(`div`),t.setAttribute(`id`,Ma),t.className=Pa.root,(document.querySelector(`[data-portal-root]`)??document.body).appendChild(t)),Ia(t)},Ra=e=>Fa[e],za={root:`portal`};function Ba({children:t,onMount:n,containerName:r}){let{portalContainerName:i}=e.useContext(ja),a=e.useRef(null);if(!a.current){let e=document.createElement(`div`);e.setAttribute(`data-component`,`Portal`),e.className=za.root,a.current=e}let o=a.current;return Ur(()=>{let e=r??i;e===void 0&&(e=Na,La());let t=Ra(e);if(!t)throw Error(`Portal container '${e}' is not yet registered. Register it with registerPortalRoot before use.`);return t.appendChild(o),n?.(),()=>{t.removeChild(o)}},[o,r,i]),m(t,o)}Ba.displayName=`Portal`;const Va={"outside-top":`outside-bottom`,"outside-bottom":`outside-top`,"outside-left":`outside-right`,"outside-right":`outside-left`},Ha=e=>e===`outside-top`||e===`outside-bottom`,Ua=(e,t,n,r)=>e===`outside-top`?t.top-n.height-r:e===`outside-bottom`?t.bottom+r:e===`outside-left`?t.left-n.width-r:t.right+r,Wa=(e,t,n,r,i)=>e===`start`?t+i:e===`end`?t+n-r-i:t+(n-r)/2+i,Ga=(e,t,{side:n,align:r,anchorOffset:i=4,alignmentOffset:a=0})=>{let o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),c=window.innerWidth,l=window.innerHeight,u=n,d=Ua(u,o,s,i),f=Ha(u)?s.height:s.width,p=Ha(u)?l:c;if(d<0||d+f>p){let e=Ua(Va[n],o,s,i);e>=0&&e+f<=p&&(u=Va[n],d=e)}let m=Ha(u),h=m?o.left:o.top,g=m?o.width:o.height,_=m?s.width:s.height,v=m?c:l,y=r,b=Wa(r,h,g,_,a);return b<0?(y=`start`,b=Wa(y,h,g,_,a)):b+_>v&&(y=`end`,b=Wa(y,h,g,_,a)),b=Math.max(0,Math.min(b,v-_)),{top:m?d:b,left:m?b:d,anchorSide:u,anchorAlign:y}},Ka={closeButtonContainer:`anchored-overlay-close-button-container`,closeButton:`anchored-overlay-close-button`},qa=W([`anchored-overlay`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2 motion-safe:data-[side=outside-right]:slide-in-from-left-2 motion-safe:data-[side=outside-left]:slide-in-from-right-2`],{variants:{width:{xsmall:`anchored-overlay-width-xsmall`,small:`anchored-overlay-width-small`,medium:`anchored-overlay-width-medium`,large:`anchored-overlay-width-large`,xlarge:`anchored-overlay-width-xlarge`,auto:`anchored-overlay-width-auto`},height:{small:`anchored-overlay-height-small`,medium:`anchored-overlay-height-medium`,large:`anchored-overlay-height-large`,xlarge:`anchored-overlay-height-xlarge`,auto:`anchored-overlay-height-auto`},reflow:{true:`anchored-overlay-reflow`,false:``},fullscreen:{true:`anchored-overlay-fullscreen`,false:``},unplaced:{true:`invisible`,false:``}}}),Ja={regular:`anchored`,narrow:`anchored`},Ya=[`ArrowDown`,`ArrowUp`,` `,`Enter`],Xa=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign;function Za(t){let{renderAnchor:n,anchorRef:r,anchorId:i,children:a,open:o,onOpen:s,onClose:c,side:l=`outside-bottom`,align:u=`start`,anchorOffset:d,alignmentOffset:f,width:p=`auto`,height:m=`auto`,overlayProps:h,focusTrapSettings:g,preventOverflow:_=!0,variant:v=Ja,displayCloseButton:y=!0,closeButtonProps:b,onPositionChange:x,className:S}=t,{ref:C,className:w,style:T,portalContainerName:E,...D}=h??{},{className:O,"aria-label":k,...A}=b??{},j=e.useRef(null),M=r??j,N=Y(i),P=e.useRef(null),F=Gr(C,P),I=e.useRef(null),[L,ee]=e.useState(null),R=e.useCallback(()=>{let e=M.current,t=P.current;if(!e||!t)return;let n=Ga(t,e,{side:l,align:u,anchorOffset:d,alignmentOffset:f});I.current&&Xa(I.current,n)||(I.current=n,ee(n),x?.({position:n}))},[M,l,u,d,f,x]);Ur(()=>{if(!o){I.current=null,ee(null);return}R();let e=new ResizeObserver(R);return P.current&&e.observe(P.current),window.addEventListener(`resize`,R),window.addEventListener(`scroll`,R,!0),()=>{e.disconnect(),window.removeEventListener(`resize`,R),window.removeEventListener(`scroll`,R,!0)}},[o,R]),Ta({containerRef:P,returnFocusRef:M,...g,disabled:!o||!L||!!g?.disabled}),Oa(e=>{o&&(e.preventDefault(),c?.(`escape`))}),e.useEffect(()=>{if(!o)return;let e=e=>{let{target:t}=e;t instanceof Node&&(P.current?.contains(t)||M.current?.contains(t)||c?.(`click-outside`))};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[M,o,c]);let te=e=>{e.defaultPrevented||e.button!==0||(o?c?.(`anchor-click`):s?.(`anchor-click`))},z=e=>{e.defaultPrevented||o||!Ya.includes(e.key)||(s?.(`anchor-key-press`,e),e.preventDefault())},ne=v.narrow===`fullscreen`,B=!!c&&ne&&y;return(0,q.jsxs)(q.Fragment,{children:[n?n({ref:M,id:N,"aria-haspopup":`true`,"aria-expanded":o,tabIndex:0,onClick:te,onKeyDown:z}):null,o?(0,q.jsx)(Ba,{containerName:E,children:(0,q.jsxs)(`div`,{ref:F,tabIndex:-1,className:G(qa({width:p,height:m,reflow:!_,fullscreen:ne,unplaced:!L}),S,w),style:{...T,"--anchored-overlay-top":`${L?.top??0}px`,"--anchored-overlay-left":`${L?.left??0}px`},"data-component":`AnchoredOverlay`,"data-side":L?.anchorSide??l,"data-align":L?.anchorAlign??u,"data-width":p,"data-height":m,"data-visibility":L?`visible`:`hidden`,...ka(`variant`,v),...D,children:[B?(0,q.jsx)(`div`,{className:Ka.closeButtonContainer,children:(0,q.jsx)(na,{icon:Xn,variant:`invisible`,"aria-label":k??`Close`,onClick:()=>c?.(`close-button`),className:G(Ka.closeButton,O),"data-component":`AnchoredOverlay.CloseButton`,...A})}):null,a]})}):null]})}Za.displayName=`AnchoredOverlay`;const Qa={container:`action-menu-overlay`};function $a(t){let{children:n,align:r=`start`,side:i,className:a,returnFocusRef:o,"aria-labelledby":s,...c}=t,l=e.useContext(va),u=!!l?.isSubmenu,d=l?.onClose,f=e.useCallback(e=>d?.(e),[d]),p=e=>{if(!e.defaultPrevented){if(e.key===`Tab`){d?.(`tab`);return}u&&e.key===`ArrowLeft`&&(d?.(`arrow-left`),e.preventDefault())}},m=e.useMemo(()=>({container:`ActionMenu`,listRole:`menu`,listLabelledBy:s??l?.anchorId,selectionAttribute:`aria-checked`,afterSelect:()=>d?.(`item-select`)}),[s,l?.anchorId,d]);return l?(0,q.jsx)(Za,{anchorRef:l.anchorRef,renderAnchor:l.renderAnchor,anchorId:l.anchorId,open:l.open,onOpen:l.onOpen,onClose:f,align:r,side:i??(u?`outside-right`:`outside-bottom`),className:a,focusTrapSettings:o?{returnFocusRef:o}:void 0,...c,children:(0,q.jsx)(`div`,{className:Qa.container,onKeyDown:p,"data-component":`ActionMenu.Overlay`,children:(0,q.jsx)(gi.Provider,{value:m,children:n})})}):null}$a.displayName=`ActionMenu.Overlay`;const eo=Object.assign(Ca,{Anchor:ya,Button:ba,Overlay:$a,Divider:Ei}),to=n(null);function no({children:t,rootRef:n}){let r=e.useRef(new Map),i=e.useRef(new Set),a=e.useRef(null),o=e.useRef(null),s=e.useCallback(()=>{if(typeof IntersectionObserver>`u`)return null;let e=n.current;return e?a.current&&o.current===e?a.current:(a.current?.disconnect(),i.current.clear(),a.current=new IntersectionObserver(e=>{for(let t of e){let e=r.current.get(t.target);if(!e)continue;let n=t.intersectionRatio<1;for(let t of e)t(n)}},{root:e,threshold:1}),o.current=e,a.current):null},[n]),c=e.useCallback(()=>{let e=s();if(e)for(let t of r.current.keys())i.current.has(t)||(e.observe(t),i.current.add(t))},[s]),l=e.useCallback((e,t)=>{let n=r.current.get(e);return n||(n=new Set,r.current.set(e,n)),n.add(t),c(),()=>{let n=r.current.get(e);n&&(n.delete(t),n.size===0&&(r.current.delete(e),i.current.delete(e),a.current?.unobserve(e)))}},[c]);return Ur(()=>{c()}),e.useEffect(()=>()=>{a.current?.disconnect(),a.current=null,o.current=null,i.current.clear(),r.current.clear()},[]),(0,q.jsx)(to.Provider,{value:l,children:t})}no.displayName=`OverflowObserverProvider`;const ro=()=>o(to),io=({ref:e,rootRef:t,disabled:n})=>{let[r,i]=d(!1),a=ro();return s(()=>{let r=e.current;if(!r||n){i(!1);return}if(a)return a(r,i);let o=t?.current;if(!o){i(!1);return}let s=new IntersectionObserver(e=>{for(let t of e)i(t.intersectionRatio<1)},{root:o,threshold:1});return s.observe(r),()=>{s.disconnect()}},[e,t,n,a]),r},ao=n({size:`medium`}),oo=n({}),so={current:null},co=t=>{let{size:n,rootRef:r,setOverflowing:i}=e.useContext(ao),{index:a,inGroup:o}=e.useContext(oo),s=io({ref:t,rootRef:r??so,disabled:o});return e.useEffect(()=>{a!==void 0&&i?.(a,s)},[a,s,i]),{size:n,isOverflowing:s}},lo={root:`action-bar-divider`,overflowing:`invisible`};function uo(t){let{className:n,...r}=t,i=e.useRef(null),{isOverflowing:a}=co(i);return(0,q.jsx)(`div`,{ref:i,"aria-hidden":`true`,className:G(lo.root,a&&lo.overflowing,n),"data-component":`ActionBar.Divider`,"data-overflowing":a?``:void 0,...r})}uo.displayName=`ActionBar.Divider`;const fo={root:`action-bar-group`,overflowing:`invisible`},po={inGroup:!0};function mo(t){let{className:n,children:r,...i}=t,a=e.useRef(null),{isOverflowing:o}=co(a);return(0,q.jsx)(`div`,{ref:a,className:G(fo.root,o&&fo.overflowing,n),"data-component":`ActionBar.Group`,"data-overflowing":o?``:void 0,...i,children:(0,q.jsx)(oo.Provider,{value:po,children:r})})}mo.displayName=`ActionBar.Group`;const ho={overflowing:`invisible`};function go(t,n){let{className:r,...i}=t,a=e.useRef(null),o=Gr(n,a),{size:s,isOverflowing:c}=co(a);return(0,q.jsx)(na,{ref:o,size:s,variant:`invisible`,className:G(c&&ho.overflowing,r),"data-component":`ActionBar.IconButton`,"data-overflowing":c?``:void 0,...i})}go.displayName=`ActionBar.IconButton`;var _o=K(go);const vo=t=>typeof t==`string`?(0,q.jsx)(`span`,{children:t}):e.isValidElement(t)?t:(0,q.jsx)(t,{}),yo=({items:e})=>(0,q.jsx)(q.Fragment,{children:e.map((e,t)=>{if(e.type===`divider`)return(0,q.jsx)(_a.Divider,{},t);let{label:n,disabled:r,variant:i,leadingVisual:a,trailingVisual:o,onClick:s}=e,c=(0,q.jsxs)(q.Fragment,{children:[a?(0,q.jsx)(_a.LeadingVisual,{children:vo(a)}):null,n,o?(0,q.jsx)(_a.TrailingVisual,{children:vo(o)}):null]});return e.items&&e.items.length>0?(0,q.jsxs)(eo,{children:[(0,q.jsx)(eo.Anchor,{children:(0,q.jsx)(_a.Item,{disabled:r,variant:i,children:c})}),(0,q.jsx)(eo.Overlay,{children:(0,q.jsx)(_a,{children:(0,q.jsx)(yo,{items:e.items})})})]},t):(0,q.jsx)(_a.Item,{onSelect:s,disabled:r,variant:i,children:c},t)})}),bo={overflowing:`invisible`};function xo(t,n){let{className:r,icon:i,items:a,returnFocusRef:o,overflowIcon:s,...c}=t,l=e.useRef(null),u=Gr(n,l),{size:d,isOverflowing:f}=co(l);return(0,q.jsxs)(eo,{anchorRef:l,children:[(0,q.jsx)(eo.Anchor,{children:(0,q.jsx)(na,{ref:u,icon:i,size:d,variant:`invisible`,className:G(f&&bo.overflowing,r),"data-component":`ActionBar.Menu`,"data-overflowing":f?``:void 0,...c})}),(0,q.jsx)(eo.Overlay,{returnFocusRef:o,children:(0,q.jsx)(_a,{children:(0,q.jsx)(yo,{items:a})})})]})}xo.displayName=`ActionBar.Menu`;var So=K(xo);const Co={size:{small:`action-bar-size-small`,medium:`action-bar-size-medium`,large:`action-bar-size-large`},spacer:`shrink-0`,moreButtonEmpty:`invisible`},wo=W(`action-bar`,{variants:{flush:{true:``,false:`action-bar-inset`}}}),To=W(`action-bar-toolbar`,{variants:{size:Co.size}}),Eo=W(`action-bar-items`,{variants:{size:Co.size,gap:{none:`action-bar-gap-none`,condensed:`action-bar-gap-condensed`}}}),Do=new Set,Oo=t=>e.isValidElement(t)?t:(0,q.jsx)(t,{}),ko=(t,n)=>{let r=t.props;if(t.type===uo)return(0,q.jsx)(_a.Divider,{},n);if(t.type===mo)return e.Children.toArray(r.children).filter(t=>e.isValidElement(t)).map((e,t)=>ko(e,`${n}-${t}`));if(t.type===So){let e=r.overflowIcon??r.icon;return(0,q.jsxs)(eo,{children:[(0,q.jsx)(eo.Anchor,{children:(0,q.jsxs)(_a.Item,{children:[e?(0,q.jsx)(_a.LeadingVisual,{children:Oo(e)}):null,r[`aria-label`]]})}),(0,q.jsx)(eo.Overlay,{returnFocusRef:r.returnFocusRef,children:(0,q.jsx)(_a,{children:(0,q.jsx)(yo,{items:r.items})})})]},n)}let i=t.type===_o?r.icon:r.leadingVisual,a=t.type===_o?r[`aria-label`]:r.children;return(0,q.jsxs)(_a.Item,{onSelect:r.onClick,disabled:r.disabled,children:[i?(0,q.jsx)(_a.LeadingVisual,{children:Oo(i)}):null,a]},n)};function Ao(t){let{className:n,children:r,size:i=`medium`,flush:a=!1,gap:o=`condensed`,"aria-label":s,"aria-labelledby":c}=t,l=e.useRef(null),u=e.useRef(null),[d,f]=e.useState(Do),p=e.useCallback((e,t)=>{f(n=>{if(n.has(e)===t)return n;let r=new Set(n);return t?r.add(e):r.delete(e),r})},[]);ri({containerRef:l,direction:`horizontal`,wrap:!0});let m=e.useMemo(()=>({size:i,rootRef:u,setOverflowing:p}),[i,p]),h=e.Children.toArray(r),g=h.length,_=e.useMemo(()=>Array.from({length:g},(e,t)=>({index:t})),[g]),v=h.map((t,n)=>d.has(n)&&e.isValidElement(t)?ko(t,n):null).filter(Boolean);return(0,q.jsx)(ao.Provider,{value:m,children:(0,q.jsx)(`div`,{className:G(wo({flush:a}),n),"data-component":`ActionBar`,"data-flush":a?``:void 0,children:(0,q.jsxs)(`div`,{ref:l,role:`toolbar`,"aria-label":s,"aria-labelledby":c,className:G(To({size:i})),"data-size":i,"data-gap":o,"data-has-overflow":v.length>0?``:void 0,children:[(0,q.jsxs)(`div`,{ref:u,className:G(Eo({size:i,gap:o})),children:[(0,q.jsx)(`div`,{className:Co.spacer}),h.map((e,t)=>(0,q.jsx)(oo.Provider,{value:_[t],children:e},t))]}),(0,q.jsxs)(eo,{children:[(0,q.jsx)(eo.Anchor,{children:(0,q.jsx)(na,{icon:lr,"aria-label":`More items`,size:i,variant:`invisible`,className:v.length>0?void 0:Co.moreButtonEmpty,"data-component":`ActionBar.MoreButton`})}),(0,q.jsx)(eo.Overlay,{children:(0,q.jsx)(_a,{children:v})})]})]})})})}Ao.displayName=`ActionBar`;const jo={overflowing:`invisible`};function Mo(t,n){let{className:r,...i}=t,a=e.useRef(null),o=Gr(n,a),{size:s,isOverflowing:c}=co(a);return(0,q.jsx)($i,{ref:o,size:s,variant:`invisible`,className:G(c&&jo.overflowing,r),"data-component":`ActionBar.Button`,"data-overflowing":c?``:void 0,...i})}Mo.displayName=`ActionBar.Button`;var No=K(Mo);const Po=Object.assign(Ao,{Button:No,IconButton:_o,Divider:uo,Group:mo,Menu:So}),Fo=W(`alert`,{variants:{variant:{default:`alert-default`,success:`alert-success`,warning:`alert-warning`,danger:`alert-danger`}}});function Io(e,t){let{as:n=`div`,className:r,variant:i=`default`,...a}=e;return(0,q.jsx)(n,{ref:t,className:G(Fo({variant:i}),r),"data-component":`Alert`,"data-variant":i,...a})}Io.displayName=`Alert`;var Lo=K(Io);const Ro={root:`aspect-ratio`};function zo(e,t){let{as:n=`div`,className:r,ratio:i=1,style:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Ro.root,r),style:{...a,"--aspect-ratio":i},"data-component":`AspectRatio`,...o})}zo.displayName=`AspectRatio`;var Bo=K(zo);const Vo=n({}),Ho=W(`attachment`,{variants:{state:{idle:`attachment-state-idle`,uploading:``,processing:``,error:`attachment-state-error`,done:``},size:{small:`attachment-size-small`,medium:`attachment-size-medium`,large:`attachment-size-large`},orientation:{horizontal:`attachment-horizontal`,vertical:`attachment-vertical`}}});function Uo(t,n){let{as:r=`div`,className:i,state:a=`done`,size:o=`medium`,orientation:s=`horizontal`,...c}=t,l=e.useMemo(()=>({state:a,size:o,orientation:s}),[a,o,s]);return(0,q.jsx)(Vo.Provider,{value:l,children:(0,q.jsx)(r,{ref:n,className:G(Ho({state:a,size:o,orientation:s}),i),"data-component":`Attachment`,"data-state":a,"data-size":o,"data-orientation":s,...c})})}Uo.displayName=`Attachment`;var Wo=K(Uo);const Go={root:`attachment-action`};function Ko(e,t){let{className:n,variant:r=`invisible`,size:i=`small`,...a}=e,o=a;return(0,q.jsx)(na,{ref:t,variant:r,size:i,className:G(Go.root,n),"data-component":`Attachment.Action`,...o})}Ko.displayName=`Attachment.Action`;var qo=K(Ko);const Jo={root:`attachment-actions`};function Yo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Jo.root,n),"data-component":`Attachment.Actions`,...r})}Yo.displayName=`Attachment.Actions`;var Xo=K(Yo);const Zo={root:`attachment-content`};function Qo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Zo.root,n),"data-component":`Attachment.Content`,...r})}Qo.displayName=`Attachment.Content`;var $o=K(Qo);const es={root:`attachment-description`};function ts(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(es.root,n),"data-component":`Attachment.Description`,...r})}ts.displayName=`Attachment.Description`;var ns=K(ts);const rs={root:`attachment-group`};function is(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(rs.root,n),"data-component":`Attachment.Group`,...r})}is.displayName=`Attachment.Group`;var as=K(is);const os=W(`attachment-media`,{variants:{variant:{icon:``,image:`attachment-media-image`}}});function ss(e,t){let{className:n,variant:r=`icon`,...i}=e;return(0,q.jsx)(`div`,{ref:t,className:G(os({variant:r}),n),"data-component":`Attachment.Media`,"data-variant":r,...i})}ss.displayName=`Attachment.Media`;var cs=K(ss);const ls={root:`attachment-title`};function us(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(ls.root,n),"data-component":`Attachment.Title`,...r})}us.displayName=`Attachment.Title`;var ds=K(us);const fs={root:`attachment-trigger`};function ps(e,t){let{as:n=`button`,className:r,type:i,...a}=e;return(0,q.jsx)(n,{ref:t,type:n===`button`?i??`button`:i,className:G(fs.root,r),"data-component":`Attachment.Trigger`,...a})}ps.displayName=`Attachment.Trigger`;var ms=K(ps);const hs=Object.assign(Wo,{Group:as,Media:cs,Content:$o,Title:ds,Description:ns,Actions:Xo,Action:qo,Trigger:ms}),gs=n({}),_s=n({}),vs=n({});function ys({children:t,id:n}){let r=Y(n),i=e.useRef(null),a=e.useRef(null),[o,s]=e.useState(``),[c,l]=e.useState(``),[u,d]=e.useState(),[f,p]=e.useState(!1),m=e.useCallback(e=>{p(e),e||(d(void 0),l(``))},[]),h=e.useMemo(()=>({id:r,inputRef:i,scrollContainerRef:a,activeDescendantId:u,setActiveDescendantId:d,showMenu:f,setShowMenu:m,setInputValue:s,setAutocompleteSuggestion:l}),[r,u,f,m]),g=e.useMemo(()=>({inputValue:o,autocompleteSuggestion:c}),[o,c]),_=e.useDeferredValue(o),v=e.useMemo(()=>({deferredInputValue:_}),[_]);return(0,q.jsx)(gs.Provider,{value:h,children:(0,q.jsx)(_s.Provider,{value:g,children:(0,q.jsx)(vs.Provider,{value:v,children:t})})})}ys.displayName=`Autocomplete`;const bs=W(`text`,{variants:{size:{large:`text-size-large`,medium:`text-size-medium`,small:`text-size-small`},weight:{light:`text-weight-light`,normal:`text-weight-normal`,medium:`text-weight-medium`,semibold:`text-weight-semibold`},whiteSpace:{pre:`whitespace-pre`,normal:`whitespace-normal`,nowrap:`whitespace-nowrap`,"pre-wrap":`whitespace-pre-wrap`,"pre-line":`whitespace-pre-line`}}});function xs(e,t){let{as:n=`span`,className:r,size:i=`medium`,weight:a,whiteSpace:o,...s}=e;return(0,q.jsx)(n,{ref:t,className:G(bs({size:i,weight:a,whiteSpace:o}),r),"data-component":`Text`,"data-size":i,"data-weight":a,"data-white-space":o,...s})}xs.displayName=`Text`;var Ss=K(xs);const Cs=500,ws=(e,t)=>{let n=t-e;if(n>=0)return{count:n,isOverLimit:!1,message:`${n} ${n===1?`character`:`characters`} remaining`};let r=-n;return{count:r,isOverLimit:!0,message:`${r} ${r===1?`character`:`characters`} over`}},Ts={field:`input`,size:{small:`input-small`,medium:`input-medium`,large:`input-large`},focus:`input-focus`,focusTracked:`input-focus-tracked`,block:`input-block`,contrast:`input-contrast`,monospace:`input-monospace`,disabled:`input-disabled`,validation:{error:`input-error`,success:`input-success`},validationFocus:`input-validation-focus`,validationFocusTracked:`input-validation-focus-tracked`,leadingVisual:`input-leading-visual-padding`,leadingVisualLarge:`input-leading-visual-padding-wide`,trailingVisual:`input-trailing-visual-padding`,trailingVisualLarge:`input-trailing-visual-padding-wide`,input:`input-control`,inputPadStart:`input-control-pad-start`,inputPadStartWide:`input-control-pad-start-wide`,inputPadEnd:`input-control-pad-end`,inputPadEndWide:`input-control-pad-end-wide`,visual:`input-visual`,visualBox:`input-visual-box`,spinner:`input-spinner`,spinnerLeading:`input-spinner-leading`,spinnerHidden:`invisible`,spinnerVisible:`visible`,counter:`input-counter`,counterOverLimit:`input-counter-over-limit`,counterIcon:`input-counter-icon`,hidden:`sr-only`},Es=[`date`,`time`,`datetime-local`],Ds=e=>typeof e==`string`||!g(e)?e:(0,q.jsx)(e,{}),Os=({id:e,position:t,hasLoader:n,showLoader:r,children:i})=>{let a=t===`leading`?`TextInput.LeadingVisual`:`TextInput.TrailingVisual`;return n?(0,q.jsx)(`span`,{className:Ts.visual,"data-component":a,children:(0,q.jsxs)(`span`,{id:e,className:Ts.visualBox,children:[i?(0,q.jsx)(`span`,{className:r?Ts.spinnerHidden:Ts.spinnerVisible,children:i}):null,(0,q.jsx)(zi,{srText:null,size:i?void 0:`small`,className:G(r?Ts.spinnerVisible:Ts.spinnerHidden,i&&Ts.spinner,i&&t===`leading`&&Ts.spinnerLeading)})]})}):(0,q.jsx)(`span`,{id:e,className:Ts.visual,"aria-hidden":`true`,"data-component":a,children:i})};function ks(t,n){let{className:r,type:i=`text`,size:a=`medium`,block:o,contrast:s,monospace:c,disabled:l,required:u,validationStatus:d,leadingVisual:f,trailingVisual:p,trailingAction:m,loading:h,loaderPosition:g=`auto`,loaderText:_=`Loading`,characterLimit:v,value:y,defaultValue:b,onChange:x,onFocus:S,onBlur:C,"aria-describedby":w,...T}=t,E=e.useRef(null),D=Gr(n,E),O=Y(),k=Y(),A=Y(),j=Y(),[M,N]=e.useState(!1),P=y!==void 0,[F,I]=e.useState(()=>b===void 0?0:String(b).length),L=P?String(y).length:F,ee=v?ws(L,v):void 0,R=ee?.isOverLimit??!1,te=R?`error`:d,z=e.useRef(!1),[ne,B]=e.useState(``),re=ee?.message;e.useEffect(()=>{if(!z.current)return;let e=window.setTimeout(()=>{B(re??``)},500);return()=>{window.clearTimeout(e)}},[re]);let V=!!(h&&(g===`leading`||f&&g!==`trailing`)),ie=!!(h&&(g===`trailing`||g===`auto`&&!f)),ae=typeof h==`boolean`,oe=!!f||V,se=!!p||ie,ce=!!m,le=!!p||ae,ue=ce,de=a===`large`,fe=e=>{N(!0),S?.(e)},pe=e=>{N(!1),C?.(e)},me=e=>{z.current=!0,v&&!P&&I(e.target.value.length),x?.(e)},he=e=>{(e.target!==E.current||!Es.includes(i))&&E.current?.focus()},ge=[v?j:void 0,w,f?O:void 0,p?k:void 0,h?A:void 0].filter(Boolean).join(` `)||void 0;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{className:G(Ts.field,Ts.size[a],ue?M&&Ts.focusTracked:Ts.focus,o&&Ts.block,s&&Ts.contrast,c&&Ts.monospace,l&&Ts.disabled,te&&Ts.validation[te],te===`error`&&(ue?M&&Ts.validationFocusTracked:Ts.validationFocus),oe&&(de?Ts.leadingVisualLarge:Ts.leadingVisual),se&&!ce&&(de?Ts.trailingVisualLarge:Ts.trailingVisual),r),onClick:he,"aria-busy":h?!0:void 0,"data-component":`TextInput`,"data-size":a,"data-block":o,"data-contrast":s,"data-monospace":c,"data-disabled":l,"data-validation":te,"data-focused":M||void 0,"data-leading-visual":oe||void 0,"data-trailing-visual":se||void 0,"data-trailing-action":ce||void 0,children:[oe?(0,q.jsx)(Os,{id:O,position:`leading`,hasLoader:ae,showLoader:V,children:f?Ds(f):null}):null,(0,q.jsx)(`input`,{ref:D,type:i,value:y,defaultValue:b,disabled:l,required:u,"aria-required":u?!0:void 0,"aria-invalid":te===`error`||void 0,"aria-describedby":ge,onChange:me,onFocus:fe,onBlur:pe,className:G(Ts.input,!oe&&(se||ce?Ts.inputPadStart:Ts.inputPadStartWide),!se&&!ce&&(oe?Ts.inputPadEnd:Ts.inputPadEndWide)),"data-component":`TextInput.Input`,...T}),h?(0,q.jsx)(`span`,{id:A,className:Ts.hidden,children:_}):null,le?(0,q.jsx)(Os,{id:k,position:`trailing`,hasLoader:ae,showLoader:ie,children:p?Ds(p):null}):null,m]}),ee?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Ts.hidden,children:ne}),(0,q.jsxs)(`span`,{id:j,className:Ts.hidden,children:[`You can enter up to `,v,` `,v===1?`character`:`characters`]}),(0,q.jsxs)(Ss,{"aria-hidden":`true`,size:`small`,className:G(Ts.counter,R&&Ts.counterOverLimit),"data-component":`TextInput.CharacterCount`,children:[R?(0,q.jsx)(Qn,{className:Ts.counterIcon}):null,ee.message]})]}):null]})}ks.displayName=`TextInput`;var As=K(ks);const js={root:`input-action`,button:`input-action-button`};function Ms(e,t){let{className:n,icon:r,...i}=e;return(0,q.jsx)(`span`,{className:js.root,"data-component":`TextInput.Action`,children:(0,q.jsx)(na,{ref:t,type:`button`,variant:`invisible`,size:`small`,icon:r,className:G(js.button,n),...i})})}Ms.displayName=`TextInput.Action`;var Ns=K(Ms);const Ps=Object.assign(As,{Action:Ns}),Fs=[`ArrowDown`,`ArrowUp`],Is=[`Backspace`,`Delete`];function Ls(t,n){let{as:r=Ps,className:i,openOnFocus:a=!1,value:o,onFocus:s,onBlur:c,onClick:l,onChange:u,onKeyDown:d,onKeyUp:f,...p}=t,{id:m,inputRef:h,activeDescendantId:g,showMenu:_,setShowMenu:v,setInputValue:y}=e.useContext(gs),{inputValue:b=``,autocompleteSuggestion:x=``}=e.useContext(_s),S=Gr(n,h),[C,w]=e.useState(!0);return e.useEffect(()=>{let e=h?.current;if(e){if(!x){e.value=b;return}!C||document.activeElement!==e||(e.value=x,x.toLowerCase().startsWith(b.toLowerCase())&&e.setSelectionRange(b.length,x.length))}},[x,b,h,C]),e.useEffect(()=>{o!==void 0&&y?.(String(o))},[o,y]),(0,q.jsx)(r,{ref:S,id:m,role:`combobox`,autoComplete:`off`,"aria-autocomplete":`both`,"aria-haspopup":`listbox`,"aria-expanded":!!_,"aria-controls":`${m}-listbox`,"aria-activedescendant":g,className:i,onFocus:e=>{s?.(e),a&&v?.(!0)},onBlur:e=>{c?.(e),v?.(!1)},onClick:e=>{l?.(e),a&&v?.(!0)},onChange:e=>{u?.(e),y?.(e.currentTarget.value),v?.(!0)},onKeyDown:e=>{if(d?.(e),!e.defaultPrevented){if(Is.includes(e.key)&&w(!1),e.key===`Escape`){_?v?.(!1):e.currentTarget.value&&(y?.(``),e.currentTarget.value=``);return}!_&&!e.altKey&&Fs.includes(e.key)&&v?.(!0)}},onKeyUp:e=>{f?.(e),Is.includes(e.key)&&w(!0)},"data-component":`Autocomplete.Input`,...p})}Ls.displayName=`Autocomplete.Input`;var Rs=K(Ls);const zs={loading:`autocomplete-menu-loading`,emptyState:`autocomplete-menu-empty-state`,hidden:`sr-only`},Bs=e=>t=>!!t.text?.toLowerCase().startsWith(e.toLowerCase()),Vs=e=>(t,n)=>e(t)===e(n)?0:e(t)?-1:1,Hs=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),Us=e=>typeof e==`string`||!g(e)?e:(0,q.jsx)(e,{});function Ws(t){let{items:n,selectedItemIds:r=[],selectionVariant:i=`single`,filter:a,sortOnClose:o,emptyStateText:s=`No selectable options`,addNewItem:c,loading:l=!1,onOpenChange:u,onSelectedChange:d,customScrollContainerRef:f,"aria-labelledby":p,className:m}=t,{id:h,inputRef:g,scrollContainerRef:_,activeDescendantId:v,setActiveDescendantId:y,showMenu:b,setShowMenu:x,setInputValue:S,setAutocompleteSuggestion:C}=e.useContext(gs),{deferredInputValue:w=``}=e.useContext(vs),T=`${h}-listbox`,E=e.useCallback(e=>`${T}-${e}`,[T]),[D,O]=e.useState(()=>n.map(e=>e.id));e.useEffect(()=>{if(b)return;let e=n.map(e=>e.id).sort(o??Vs(e=>r.includes(e)));O(t=>Hs(e,t)?t:e)},[b,n,r,o]);let k=e.useMemo(()=>new Map(D.map((e,t)=>[e,t])),[D]),A=e.useMemo(()=>n.filter(a??Bs(w)).sort((e,t)=>(k.get(e.id)??2**53-1)-(k.get(t.id)??2**53-1)),[n,a,w,k]),j=e.useMemo(()=>c?[...A,c.item]:A,[A,c]),M=e.useMemo(()=>j.filter(e=>!e.disabled),[j]),N=M.findIndex(e=>E(e.id)===v),P=M[N],[F,I]=e.useState(!1),L=e=>{if(c&&e.id===c.item.id)c.onAdd(e);else{let t=i===`single`?[e.id]:r.includes(e.id)?r.filter(t=>t!==e.id):[...r,e.id];d?d(t.map(e=>n.find(t=>t.id===e)).filter(e=>e!==void 0)):i===`single`&&S?.(e.text??``)}if(i===`multiple`){S?.(``),C?.(``);return}x?.(!1)},ee=e=>{if(M.length===0)return;let t=(e+M.length)%M.length;I(!0),y?.(E(M[t].id))},R=e=>{let t=e.target.closest(`[role="option"]`);!t||t.id===v||M.some(e=>E(e.id)===t.id)&&(I(!1),y?.(t.id))},te=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;if(e.key===`Enter`){if(!P)return;e.preventDefault(),L(P);return}let t=e.key===`ArrowDown`?1:e.key===`ArrowUp`?-1:0;t!==0&&(e.preventDefault(),ee(N===-1?t===1?0:-1:N+t))},z=e.useRef(te);e.useEffect(()=>{z.current=te}),e.useEffect(()=>{let e=g?.current;if(!e||!b)return;let t=e=>z.current(e);return e.addEventListener(`keydown`,t),()=>{e.removeEventListener(`keydown`,t)}},[g,b]);let ne=P?.text??``,B=F&&!!P&&ne.toLowerCase().startsWith(w.toLowerCase())&&!r.includes(P.id);e.useEffect(()=>{C?.(B?ne:``)},[B,ne,C]),e.useEffect(()=>{if(!v||!F)return;let e=f?.current??_?.current,t=document.getElementById(v);if(!e||!t||!e.contains(t))return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();r.top<n.top?e.scrollTop-=n.top-r.top:r.bottom>n.bottom&&(e.scrollTop+=r.bottom-n.bottom)},[v,F,f,_]);let re=e.useRef(!1);e.useEffect(()=>{let e=!!b;re.current!==e&&(re.current=e,u?.(e))},[b,u]);let V=typeof s==`string`?s:`No options available`,ie=l?``:j.length===0?V:`${j.length} option${j.length===1?``:`s`} available.`,[ae,oe]=e.useState(``),se=e.useRef(``);e.useEffect(()=>{if(!b){se.current=``,oe(``);return}if(ie===se.current)return;se.current=ie;let e=window.setTimeout(()=>oe(ie),500);return()=>{window.clearTimeout(e)}},[b,ie]);let ce=e.useMemo(()=>({container:`Autocomplete`,listRole:`listbox`,listLabelledBy:p,selectionAttribute:`aria-selected`,selectionVariant:i,enableFocusZone:!1}),[p,i]);return(0,q.jsxs)(`div`,{className:G(m),onMouseDown:e=>e.preventDefault(),onMouseMove:R,"data-component":`Autocomplete.Menu`,"data-loading":l?``:void 0,children:[l?(0,q.jsx)(`div`,{className:zs.loading,"data-component":`Autocomplete.Loading`,children:(0,q.jsx)(zi,{})}):j.length===0?s?(0,q.jsx)(`div`,{className:zs.emptyState,"data-component":`Autocomplete.EmptyState`,children:s}):null:(0,q.jsx)(gi.Provider,{value:ce,children:(0,q.jsx)(_a,{id:T,children:j.map(e=>{let{id:t,text:n,description:i,descriptionVariant:a,leadingVisual:o,trailingVisual:s,children:l,...u}=e,d=c&&t===c.item.id?xn:o;return(0,q.jsxs)(_a.Item,{id:E(t),tabIndex:-1,active:E(t)===v,selected:r.includes(t),onSelect:()=>L(e),"data-id":t,...u,children:[d?(0,q.jsx)(_a.LeadingVisual,{children:Us(d)}):null,l,n,i?(0,q.jsx)(_a.Description,{variant:a,children:i}):null,s?(0,q.jsx)(_a.TrailingVisual,{children:Us(s)}):null]},t)})})}),(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:zs.hidden,"data-component":`Autocomplete.Announcement`,children:ae})]})}Ws.displayName=`Autocomplete.Menu`;const Gs={hidden:`sr-only`},Ks=W([`autocomplete-overlay`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2`],{variants:{width:{xsmall:`autocomplete-overlay-width-xsmall`,small:`autocomplete-overlay-width-small`,medium:`autocomplete-overlay-width-medium`,large:`autocomplete-overlay-width-large`,xlarge:`autocomplete-overlay-width-xlarge`,auto:`autocomplete-overlay-width-auto`,anchor:`autocomplete-overlay-width-anchor`},height:{small:`autocomplete-overlay-height-small`,medium:`autocomplete-overlay-height-medium`,large:`autocomplete-overlay-height-large`,xlarge:`autocomplete-overlay-height-xlarge`,auto:`autocomplete-overlay-height-auto`},maxHeight:{small:`autocomplete-overlay-max-height-small`,medium:`autocomplete-overlay-max-height-medium`,large:`autocomplete-overlay-max-height-large`,xlarge:`autocomplete-overlay-max-height-xlarge`},unplaced:{true:`invisible`,false:``}}}),qs=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign&&e.anchorWidth===t.anchorWidth;function Js(t){let{menuAnchorRef:n,side:r=`outside-bottom`,align:i=`start`,width:a=`anchor`,height:o=`auto`,maxHeight:s=`medium`,portalContainerName:c,children:l,className:u,style:d,...f}=t,{inputRef:p,scrollContainerRef:m,showMenu:h,setShowMenu:g}=e.useContext(gs),_=e.useRef(null),v=Gr(m,_),y=e.useCallback(()=>{let e=p?.current??null;return n?.current??e?.closest(`[data-component="TextInput"]`)??e},[n,p]),b=e.useRef(null),[x,S]=e.useState(null),C=e.useCallback(()=>{let e=y(),t=_.current;if(!e||!t)return;let n={...Ga(t,e,{side:r,align:i}),anchorWidth:e.getBoundingClientRect().width};b.current&&qs(b.current,n)||(b.current=n,S(n))},[y,r,i]);return Ur(()=>{if(!h){b.current=null,S(null);return}C();let e=new ResizeObserver(C),t=y();return _.current&&e.observe(_.current),t&&e.observe(t),window.addEventListener(`resize`,C),window.addEventListener(`scroll`,C,!0),()=>{e.disconnect(),window.removeEventListener(`resize`,C),window.removeEventListener(`scroll`,C,!0)}},[h,C,y]),e.useEffect(()=>{if(!h)return;let e=e=>{let{target:t}=e;t instanceof Node&&(_.current?.contains(t)||y()?.contains(t)||g?.(!1))};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[h,g,y]),(0,q.jsx)(Ba,{containerName:c,children:(0,q.jsx)(`div`,{ref:v,"aria-hidden":h?void 0:`true`,className:G(h?Ks({width:a,height:o,maxHeight:s,unplaced:!x}):Gs.hidden,u),style:{...d,"--autocomplete-overlay-top":`${x?.top??0}px`,"--autocomplete-overlay-left":`${x?.left??0}px`,"--autocomplete-overlay-anchor-width":`${x?.anchorWidth??0}px`},"data-component":`Autocomplete.Overlay`,"data-open":h?``:void 0,"data-side":x?.anchorSide??r,"data-align":x?.anchorAlign??i,"data-width":a,"data-height":o,...f,children:l})})}Js.displayName=`Autocomplete.Overlay`;const Ys=Object.assign(ys,{Input:Rs,Menu:Ws,Overlay:Js});n({});const Xs=e=>typeof e==`object`&&Object.keys(e).some(e=>[`narrow`,`regular`,`wide`].includes(e)),Zs=n({}),Qs=20,$s=W(`avatar`,{variants:{shape:{circle:`avatar-circle`,square:`avatar-square`},responsive:{true:`avatar-responsive`,false:``}}});function ec(t,n){let{as:r=`span`,className:i,size:a=20,shape:o=`circle`,style:s,children:c,...l}=t,[u,d]=e.useState(`idle`),f=e.useMemo(()=>({status:u,setStatus:d}),[u]),p=Xs(a),m={"--avatar-size-regular":`20px`};if(p)for(let[e,t]of Object.entries(a))t!==void 0&&(m[`--avatar-size-${e}`]=`${t}px`);else m[`--avatar-size-regular`]=`${a}px`;return(0,q.jsx)(Zs.Provider,{value:f,children:(0,q.jsx)(r,{ref:n,className:G($s({shape:o,responsive:p}),i),style:{...s,...m},"data-component":`Avatar`,"data-responsive":p||void 0,"data-shape":o,"data-status":u,...l,children:c})})}ec.displayName=`Avatar`;var tc=K(ec);const nc=`en-US`,rc=(e,t)=>t?`${e}|${Object.entries(t).filter(([,e])=>e!==void 0).sort(([e],[t])=>e<t?-1:1).map(([e,t])=>`${e}=${String(t)}`).join(`,`)}`:e,ic=e=>{let t=new Map;return(n,r)=>{let i=rc(n,r),a=t.get(i);if(a)return a;let o=e(n,r);return t.set(i,o),o}},ac=new Set([`Adlm`,`Arab`,`Armi`,`Avst`,`Hebr`,`Mand`,`Mend`,`Nkoo`,`Rohg`,`Samr`,`Syrc`,`Thaa`]),oc=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),sc=e=>{try{return new Intl.Locale(e).maximize().script}catch{return}},cc=e=>{let t=sc(e);return t?ac.has(t):oc.has(e.split(`-`)[0].toLowerCase())},lc=e=>cc(e)?`rtl`:`ltr`,uc=()=>{let e=typeof navigator>`u`?void 0:navigator.language;if(!e)return nc;try{return Intl.DateTimeFormat.supportedLocalesOf([e]),e}catch{return nc}},dc=ic((e,t)=>new Intl.Collator(e,t)),fc=(e=nc,t={})=>dc(e,t),pc=RegExp(`\\p{P}`,`gu`),mc=ic((e,t={})=>{let n=dc(e,{usage:`search`,...t}),r=e=>{let t=e.normalize(`NFC`);return n.resolvedOptions().ignorePunctuation?t.replace(pc,``):t},i=(e,t)=>n.compare(e,t)===0;return{startsWith:(e,t)=>{if(t.length===0)return!0;let[n,a]=[r(e),r(t)];return i(n.slice(0,a.length),a)},endsWith:(e,t)=>{if(t.length===0)return!0;let[n,a]=[r(e),r(t)];return i(n.slice(-a.length),a)},contains:(e,t)=>{if(t.length===0)return!0;let[n,a]=[r(e),r(t)];for(let e=0;e+a.length<=n.length;e++)if(i(n.slice(e,e+a.length),a))return!0;return!1}}}),hc=({locale:e,...t}={})=>mc(e??`en-US`,t),gc=ic((e,t)=>new Intl.NumberFormat(e,t)),_c=(e=nc,t={})=>gc(e,t),vc=(e,t=nc,n={})=>gc(t,n).format(e),yc=ic((e,t)=>new Intl.DateTimeFormat(e,t)),bc=(e=nc,t={})=>yc(e,t),xc=[``,`kilo`,`mega`,`giga`,`tera`],Sc=[``,`kilo`,`mega`,`giga`,`tera`,`peta`],Cc=(e,t=nc,n={})=>{if(Number.isNaN(e))return``;if(e===0)return`0 B`;let{precision:r=3,unitSystem:i=`decimal`,unit:a=`byte`,unitDisplay:o=`short`}=n,s=i===`binary`?1024:1e3,c=a===`bit`?xc:Sc,l=Math.abs(e),u=0;for(;l>=s&&u<c.length-1;)l/=s,u++;let d=parseFloat(l.toPrecision(r));return vc(e<0?-d:d,t,{style:`unit`,unit:c[u]+a,unitDisplay:o})},wc=`ltr`,Tc=n({direction:`ltr`}),Ec=n({locale:nc,direction:lc(nc)}),Dc=()=>o(Ec),Oc=`auto`,kc=e=>(window?.addEventListener?.(`languagechange`,e),()=>window?.removeEventListener?.(`languagechange`,e)),Ac=()=>nc,jc=()=>e.useSyncExternalStore(kc,uc,Ac);function Mc({children:t,className:n,...r}){let{locale:i}=Dc(),a=jc(),o=r.locale??i,s=o===`auto`?a:o,c=lc(s),l=e.useMemo(()=>({locale:s,direction:c}),[s,c]),u=e.useMemo(()=>({direction:c}),[c]);return(0,q.jsx)(Ec.Provider,{value:l,children:(0,q.jsx)(Tc.Provider,{value:u,children:(0,q.jsx)(`div`,{className:n,"data-component":`LocaleProvider`,lang:s,dir:c,children:t})})})}Mc.displayName=`LocaleProvider`;const Nc=({locale:e,...t}={})=>{let{locale:n}=Dc();return fc(e??n,t)},Pc=({locale:e,...t}={})=>{let{locale:n}=Dc();return bc(e??n,t)},Fc=({locale:e,...t}={})=>{let{locale:n}=Dc();return hc({locale:e??n,...t})},Ic=({locale:e,...t}={})=>{let{locale:n}=Dc();return _c(e??n,t)},Lc={root:`avatar-fallback`},Rc=(e,t)=>{let n=e.trim().split(/\s+/).filter(Boolean);if(n.length===0)return``;let[r]=[...n[0]],[i]=[...n[n.length-1]];return(n.length>1?`${r}${i}`:r).toLocaleUpperCase(t)};function zc(t,n){let{className:r,name:i,...a}=t,{status:o=`idle`}=e.useContext(Zs),{locale:s}=Dc();return o===`loaded`?null:(0,q.jsx)(`span`,{ref:n,role:`img`,"aria-label":i,className:G(Lc.root,r),"data-component":`Avatar.Fallback`,"data-status":o,...a,children:Rc(i,s)})}zc.displayName=`Avatar.Fallback`;var Bc=K(zc);const Vc={root:`avatar-image`};function Hc(t,n){let{className:r,alt:i=``,src:a,onLoad:o,onError:s,...c}=t,{setStatus:l}=e.useContext(Zs),[u,d]=e.useState(`idle`),f=e.useRef(null),p=Gr(f,n),m=e.useCallback(e=>{d(e),l?.(e)},[l]);return Ur(()=>{let e=f.current;if(!e||!a){m(`idle`);return}m(e.complete&&e.naturalWidth>0?`loaded`:`loading`)},[m,a]),(0,q.jsx)(`img`,{ref:p,alt:i,src:a,onLoad:e=>{m(`loaded`),o?.(e)},onError:e=>{m(`error`),s?.(e)},className:G(Vc.root,r),"data-component":`Avatar.Image`,"data-status":u,...c})}Hc.displayName=`Avatar.Image`;var Uc=K(Hc);const Wc=Object.assign(tc,{Image:Uc,Fallback:Bc}),Gc=[`narrow`,`regular`,`wide`],Kc={root:`avatar-stack`,responsive:`avatar-stack-responsive`,align:{left:`avatar-stack-align-left`,right:`avatar-stack-align-right`},variant:{cascade:`avatar-stack-cascade`,stack:`avatar-stack-stack`},width:{cascade:{two:`avatar-stack-cascade-two`,three:`avatar-stack-cascade-three`,more:`avatar-stack-cascade-more`},stack:{two:`avatar-stack-stack-two`,three:`avatar-stack-stack-three`,more:`avatar-stack-stack-more`}},body:{collapsed:`avatar-stack-body`,expandable:`avatar-stack-body-expandable`},item:{root:`avatar-stack-item`,first:`avatar-stack-item-first`,overlapped:`avatar-stack-item-overlapped`,mask:`avatar-stack-item-mask`,shape:{circle:`avatar-stack-item-circle`,square:`avatar-stack-item-square`},edge:{circle:`avatar-stack-item-edge-circle`,square:`avatar-stack-item-edge-square`},edgeAlignRight:`avatar-stack-item-edge-align-right`,layer:[`z-5`,`z-4`,`z-3`,`z-2`,`z-1`],fade:[``,``,`avatar-stack-item-fade-third`,`avatar-stack-item-fade-fourth`,`avatar-stack-item-fade-fifth`],overflow:`avatar-stack-item-overflow`,expanded:`avatar-stack-item-expanded`,expandedFirst:`avatar-stack-item-expanded-first`}},qc=e=>{if(!Xs(e)){let t=e??20;return{narrow:t,regular:t,wide:t}}let t=e.regular??20;return{narrow:e.narrow??t,regular:t,wide:e.wide??t}},Jc=t=>e.isValidElement(t)&&t.type===tc,Yc=t=>e.isValidElement(t)&&t.type===e.Fragment,Xc=t=>e.Children.toArray(t).flatMap(e=>Yc(e)?Xc(e.props.children):Jc(e)?[e]:[]),Zc=e=>{let t={narrow:[],regular:[],wide:[]};for(let n of e){let e=qc(n.props.size);for(let n of Gc)t[n].push(e[n])}return Object.fromEntries(Gc.map(e=>[e,t[e].length>0?Math.min(...t[e]):20]))};function Qc(t,n){let{as:r=`span`,className:i,children:a,variant:o=`cascade`,shape:s=`circle`,size:c,align:l=`left`,disableExpand:u,style:d,...f}=t,p=e.useRef(null),[m,h]=e.useState(!1);e.useEffect(()=>{if(!p.current)return;let e=p.current,t=()=>{h(ti(e))},n=new MutationObserver(t);return n.observe(e,{childList:!0}),t(),()=>{n.disconnect()}},[]);let g=Xc(a),_=g.length,v=_>3?`more`:_===3?`three`:_===2?`two`:void 0,y=!c||Xs(c),b=!u,x={};if(Xs(c)){let e=qc(c);for(let t of Gc)x[`--avatar-stack-size-${t}`]=`${e[t]}px`}else if(c)x[`--avatar-stack-size`]=`${c}px`;else{let e=Zc(g);for(let t of Gc)x[`--avatar-stack-size-${t}`]=`${e[t]}px`}let S=g.map((t,n)=>e.cloneElement(t,{className:G(Kc.item.root,n===0?Kc.item.first:Kc.item.overlapped,Kc.item.shape[s],l===`right`&&s===`square`?Kc.item.edgeAlignRight:Kc.item.edge[s],n>0&&s===`circle`&&Kc.item.mask,s===`square`&&Kc.item.layer[Math.min(n,4)],o===`cascade`&&Kc.item.fade[n],n>4&&Kc.item.overflow,b&&Kc.item.expanded,b&&n===0&&Kc.item.expandedFirst,t.props.className)}));return(0,q.jsx)(r,{ref:n,className:G(Kc.root,Kc.variant[o],v&&Kc.width[o][v],Kc.align[l],y&&Kc.responsive,i),style:{...d,...x},"data-component":`AvatarStack`,"data-variant":o,"data-shape":s,"data-avatar-count":_>3?`3+`:_,"data-align":l,"data-responsive":y||void 0,...f,children:(0,q.jsx)(`div`,{ref:p,className:b?Kc.body.expandable:Kc.body.collapsed,tabIndex:b&&!m?0:void 0,"data-component":`AvatarStack.Body`,"data-disable-expand":u,children:S})})}Qc.displayName=`AvatarStack`;var $c=K(Qc);const el={indicator:`badge-indicator`,visual:`badge-visual`},tl=W(`badge`,{variants:{size:{small:`badge-small`,medium:`badge-medium`,large:`badge-large`},variant:{default:`badge-default`,primary:`badge-primary`,accent:`badge-accent`,success:`badge-success`,attention:`badge-attention`,severe:`badge-severe`,danger:`badge-danger`,done:`badge-done`,sponsors:`badge-sponsors`},appearance:{filled:``,dot:`badge-dot`}}}),nl=t=>e.isValidElement(t)?t:(0,q.jsx)(t,{});function rl(e,t){let{as:n=`span`,className:r,variant:i=`default`,appearance:a=`filled`,size:o=`small`,leadingVisual:s,children:c,...l}=e,u=a===`dot`&&!s;return(0,q.jsxs)(n,{ref:t,className:G(tl({size:o,variant:i,appearance:a}),r),"data-component":`Badge`,"data-variant":i,"data-appearance":a,"data-size":o,...l,children:[s?(0,q.jsx)(`span`,{className:el.visual,"data-component":`Badge.LeadingVisual`,children:nl(s)}):null,u?(0,q.jsx)(`span`,{"aria-hidden":`true`,className:el.indicator}):null,c]})}rl.displayName=`Badge`;var il=K(rl);const al=n({});function ol(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(n),"data-component":`Banner.Description`,...r})}ol.displayName=`Banner.Description`;var sl=K(ol);const cl={root:`banner-title`};function ll(t,n){let{as:r=`h2`,className:i,id:a,...o}=t,{titleId:s}=e.useContext(al);return(0,q.jsx)(r,{ref:n,id:a??s,className:G(cl.root,i),"data-component":`Banner.Title`,...o})}ll.displayName=`Banner.Title`;var ul=K(ll);const dl={container:`banner-container`,actions:`banner-actions`,actionsInline:`banner-actions-inline`,actionsStacked:`banner-actions-stacked`,order:{shown:`banner-actions-shown`,hidden:`banner-actions-hidden`,inlineLeading:`banner-actions-inline-leading`,inlineTrailing:`banner-actions-inline-trailing`,responsiveLeading:`banner-actions-responsive-leading`,responsiveTrailing:`banner-actions-responsive-trailing`},hidden:`sr-only`},fl=W(`banner`,{variants:{layout:{default:`banner-default`,compact:`banner-compact`},variant:{critical:`banner-critical`,info:`banner-info`,success:`banner-success`,upsell:`banner-upsell`,warning:`banner-warning`},flush:{true:`banner-flush`,false:``}}}),pl=W(`banner-icon`,{variants:{tight:{true:`banner-icon-tight`,false:``}}}),ml=W(`banner-body`,{variants:{actions:{stacked:`banner-body-stacked`,inline:`banner-body-inline`,responsive:`banner-body-responsive`}}}),hl=W(`banner-content`,{variants:{tight:{true:`banner-content-tight`,false:``}}}),gl=W(`banner-dismiss`,{variants:{withActions:{true:`banner-dismiss-with-actions`,false:``}}}),_l={critical:Qn,info:ir,success:Ln,upsell:ir,warning:jr},vl=[`info`,`upsell`],yl=({primaryAction:e,secondaryAction:t,className:n,leadingClassName:r,trailingClassName:i})=>(0,q.jsxs)(`div`,{"data-component":`Banner.Actions`,children:[(0,q.jsxs)(`div`,{className:G(dl.actions,n,i),"data-primary-action":`trailing`,children:[t,e]}),(0,q.jsxs)(`div`,{className:G(dl.actions,n,r),"data-primary-action":`leading`,children:[e,t]})]});function bl(e,t){let{className:n,children:r,title:i,description:a,hideTitle:o,leadingVisual:s,variant:c=`info`,layout:l=`default`,actionsLayout:u=`default`,flush:d=!1,onDismiss:f,primaryAction:p,secondaryAction:m,"aria-label":h,"aria-labelledby":g,..._}=e,v=Y(),y=!!f,b=!!(p||m),x=!!o&&!b,S=_l[c],C=s&&vl.includes(c)?s:(0,q.jsx)(S,{}),w=u===`stacked`||y&&!o&&u!==`inline`,T=w?{leading:dl.order.shown,trailing:dl.order.hidden}:u===`inline`?{leading:dl.order.inlineLeading,trailing:dl.order.inlineTrailing}:{leading:dl.order.responsiveLeading,trailing:dl.order.responsiveTrailing},E=i?(0,q.jsx)(ul,{children:i}):null;return(0,q.jsx)(al.Provider,{value:{titleId:v},children:(0,q.jsx)(`div`,{className:dl.container,children:(0,q.jsxs)(`section`,{ref:t,"aria-labelledby":g??(h?void 0:v),"aria-label":g?void 0:h,tabIndex:-1,className:G(fl({layout:l,variant:c,flush:d}),n),"data-component":`Banner`,"data-variant":c,"data-layout":l,"data-actions-layout":u,"data-dismissible":y||void 0,"data-has-actions":b||void 0,"data-title-hidden":o||void 0,"data-flush":d||void 0,..._,children:[(0,q.jsx)(`div`,{className:G(pl({tight:x})),"data-component":`Banner.Icon`,children:C}),(0,q.jsxs)(`div`,{className:G(ml({actions:w?`stacked`:u===`inline`?`inline`:`responsive`})),children:[(0,q.jsxs)(`div`,{className:G(hl({tight:x})),"data-component":`Banner.Content`,children:[E?o?(0,q.jsx)(`span`,{className:dl.hidden,children:E}):E:null,a?(0,q.jsx)(sl,{children:a}):null,r]}),b?(0,q.jsx)(yl,{primaryAction:p,secondaryAction:m,className:G(u===`inline`&&dl.actionsInline,w&&dl.actionsStacked),leadingClassName:T.leading,trailingClassName:T.trailing}):null]}),y?(0,q.jsx)(na,{icon:Xn,"aria-label":`Dismiss banner`,variant:`invisible`,onClick:f,className:G(gl({withActions:b})),"data-component":`Banner.Dismiss`}):null]})})})}bl.displayName=`Banner`;var xl=K(bl);function Sl(e,t){return(0,q.jsx)($i,{ref:t,variant:`default`,"data-component":`Banner.PrimaryAction`,...e})}Sl.displayName=`Banner.PrimaryAction`;var Cl=K(Sl);function wl(e,t){return(0,q.jsx)($i,{ref:t,variant:`invisible`,"data-component":`Banner.SecondaryAction`,...e})}wl.displayName=`Banner.SecondaryAction`;var Tl=K(wl);const El=Object.assign(xl,{Title:ul,Description:sl,PrimaryAction:Cl,SecondaryAction:Tl}),Dl={container:`blankslate-container`,root:`blankslate`,border:`blankslate-border`,narrow:`blankslate-narrow`,size:{small:`blankslate-small`,medium:`blankslate-medium`,large:`blankslate-large`},padding:{small:`blankslate-padding-small`,medium:`blankslate-padding-medium`,large:`blankslate-padding-large`},spaciousPadding:{small:`blankslate-padding-spacious-small`,medium:`blankslate-padding-spacious-medium`,large:`blankslate-padding-spacious-large`},tightType:`blankslate-tight-type`,tightPadding:{small:`blankslate-tight-padding-small`,medium:`blankslate-tight-padding-medium`,large:`blankslate-tight-padding-large`},tightSpaciousPadding:`blankslate-tight-padding-spacious`};function Ol(e,t){let{as:n=`div`,className:r,size:i=`medium`,border:a,narrow:o,spacious:s,...c}=e;return(0,q.jsx)(`div`,{className:Dl.container,children:(0,q.jsx)(n,{ref:t,className:G(Dl.root,Dl.size[i],s?Dl.spaciousPadding[i]:Dl.padding[i],Dl.tightType,s?Dl.tightSpaciousPadding:Dl.tightPadding[i],a&&Dl.border,o&&Dl.narrow,r),"data-component":`Blankslate`,"data-size":i,"data-border":a,"data-narrow":o,"data-spacious":s,...c})})}Ol.displayName=`Blankslate`;var kl=K(Ol);const Al={root:`blankslate-description`};function jl(e,t){let{className:n,...r}=e;return(0,q.jsx)(`p`,{ref:t,className:G(Al.root,n),"data-component":`Blankslate.Description`,...r})}jl.displayName=`Blankslate.Description`;var Ml=K(jl);const Nl={root:`blankslate-heading`};function Pl(e,t){let{as:n=`h2`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Nl.root,r),"data-component":`Blankslate.Heading`,...i})}Pl.displayName=`Blankslate.Heading`;var Fl=K(Pl);const Il={root:`blankslate-action`,tight:`blankslate-action-tight`};function Ll(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Il.root,Il.tight,n),...r})}Ll.displayName=`Blankslate.Action`;var Rl=K(Ll);function zl(e,t){return(0,q.jsx)(Rl,{ref:t,"data-component":`Blankslate.PrimaryAction`,...e})}zl.displayName=`Blankslate.PrimaryAction`;var Bl=K(zl);const Vl={root:`link`,inline:`link-inline`,muted:`link-muted`};function Hl(e,t){let{as:n=`a`,className:r,muted:i,inline:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Vl.root,a&&Vl.inline,i&&Vl.muted,r),"data-component":`Link`,"data-muted":i,"data-inline":a,...o})}Hl.displayName=`Link`;var Ul=K(Hl);function Wl(e,t){let{href:n,children:r,...i}=e;return(0,q.jsx)(Rl,{ref:t,"data-component":`Blankslate.SecondaryAction`,...i,children:n===void 0?r:(0,q.jsx)(Ul,{href:n,children:r})})}Wl.displayName=`Blankslate.SecondaryAction`;var Gl=K(Wl);const Kl={root:`blankslate-visual`,tight:`blankslate-visual-tight`};function ql(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(Kl.root,Kl.tight,n),"data-component":`Blankslate.Visual`,...r})}ql.displayName=`Blankslate.Visual`;var Jl=K(ql);const Yl=Object.assign(kl,{Visual:Jl,Heading:Fl,Description:Ml,PrimaryAction:Bl,SecondaryAction:Gl}),Xl=W(`blockquote`,{variants:{size:{large:`blockquote-large`,medium:`blockquote-medium`,small:`blockquote-small`},variant:{subtle:`blockquote-subtle`,default:`blockquote-default`,emphasis:`blockquote-emphasis`}}});function Zl(e,t){let{as:n=`blockquote`,className:r,size:i=`medium`,variant:a=`default`,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Xl({size:i,variant:a}),r),"data-component":`Blockquote`,"data-size":i,"data-variant":a,...o})}Zl.displayName=`Blockquote`;var Ql=K(Zl);const $l=W(`box`,{variants:{padding:{none:`box-padding-none`,tight:`box-padding-tight`,condensed:`box-padding-condensed`,cozy:`box-padding-cozy`,normal:`box-padding-normal`,spacious:`box-padding-spacious`},paddingBlock:{none:`box-padding-block-none`,tight:`box-padding-block-tight`,condensed:`box-padding-block-condensed`,cozy:`box-padding-block-cozy`,normal:`box-padding-block-normal`,spacious:`box-padding-block-spacious`},paddingInline:{none:`box-padding-inline-none`,tight:`box-padding-inline-tight`,condensed:`box-padding-inline-condensed`,cozy:`box-padding-inline-cozy`,normal:`box-padding-inline-normal`,spacious:`box-padding-inline-spacious`},background:{none:`box-background-none`,default:`box-background-default`,muted:`box-background-muted`,inset:`box-background-inset`,emphasis:`box-background-emphasis`},border:{none:`box-border-none`,default:`box-border-default`,muted:`box-border-muted`},radius:{none:`box-radius-none`,small:`box-radius-small`,medium:`box-radius-medium`,large:`box-radius-large`,full:`box-radius-full`},shadow:{none:`box-shadow-none`,xsmall:`box-shadow-xsmall`,small:`box-shadow-small`,medium:`box-shadow-medium`},overflow:{visible:`box-overflow-visible`,hidden:`box-overflow-hidden`}}});function eu(e,t){let{as:n=`div`,className:r,padding:i=`none`,paddingBlock:a,paddingInline:o,background:s=`none`,border:c=`none`,radius:l=`none`,shadow:u=`none`,overflow:d=`visible`,...f}=e;return(0,q.jsx)(n,{ref:t,className:G($l({padding:i,paddingBlock:a,paddingInline:o,background:s,border:c,radius:l,shadow:u,overflow:d}),r),"data-component":`Box`,"data-padding":i,"data-padding-block":a,"data-padding-inline":o,"data-background":s,"data-border":c,"data-radius":l,"data-shadow":u,"data-overflow":d,...f})}eu.displayName=`Box`;var tu=K(eu);function nu({items:e}){return(0,q.jsxs)(eo,{children:[(0,q.jsx)(eo.Anchor,{children:(0,q.jsx)(na,{icon:lr,"aria-label":`${e.length} more breadcrumb items`,variant:`invisible`,size:`small`,"data-component":`Breadcrumbs.OverflowMenu`})}),(0,q.jsx)(eo.Overlay,{children:(0,q.jsx)(_a,{children:e.map((e,t)=>{let{children:n,selected:r,as:i,...a}=e.props;return(0,q.jsx)(_a.LinkItem,{as:i,"aria-current":r?`page`:void 0,...a,children:n},t)})})})]})}nu.displayName=`Breadcrumbs.OverflowMenu`;const ru=n({}),iu={root:`breadcrumbs`,list:`breadcrumbs-list`,listWrap:`breadcrumbs-list-wrap`,listMenu:`breadcrumbs-list-menu`,item:`breadcrumbs-item`,itemMenu:`breadcrumbs-item-menu`,separator:`breadcrumbs-separator`},au=({availableWidth:e,itemCount:t,itemWidths:n,menuButtonWidth:r,overflow:i,hideRoot:a})=>{let o=a,s=n[0]??0,c=e<544,l=4;o?c&&t>2&&(l=1):l=3;let u=e=>{let t=e.reduce((e,t)=>e+t+16,0);return o?t:s+t},d=[...n],f=0;if(e>0&&d.length>0){let t=u(d);for(;i!==`wrap`&&(t>e||d.length>l);){if(f+=1,d=d.slice(1),t=u(d)+r,d.length===1&&t>e){o=!0;break}o=a}}return{menuItemCount:f,hideRoot:o}},ou=t=>e.Children.toArray(t).filter(t=>e.isValidElement(t)),su=()=>(0,q.jsx)(`span`,{className:iu.separator,"aria-hidden":`true`,"data-component":`Breadcrumbs.Separator`,children:(0,q.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,children:(0,q.jsx)(`path`,{d:`M10.956 1.27994L6.06418 14.7201L5 14.7201L9.89181 1.27994L10.956 1.27994Z`,fill:`currentcolor`})})});function cu(t){let{className:n,children:r,style:i,overflow:a=`wrap`,variant:o=`normal`}=t,s=e.useRef(null),c=e.useMemo(()=>ou(r),[r]),l=c[0],u=a!==`menu-with-root`,[d,f]=e.useState([]),[p,m]=e.useState(null),[h,g]=e.useState(28),_=e.useCallback(e=>{let t=e?.querySelector(`button`);t&&g(e=>e===t.offsetWidth?e:t.offsetWidth)},[]);Ur(()=>{if(a===`wrap`)return;let e=s.current;if(!e)return;m(t=>t===e.offsetWidth?t:e.offsetWidth);let t=e.querySelectorAll(`li[data-crumb]`);t.length===c.length&&f(Array.from(t,e=>e.offsetWidth))},[c,a]),e.useEffect(()=>{let e=s.current;if(a===`wrap`||!e)return;let t=new ResizeObserver(e=>{for(let t of e){let e=Math.round(t.contentRect.width);m(t=>t===e?t:e)}});return t.observe(e),()=>{t.disconnect()}},[a]);let{menuItemCount:v,hideRoot:y}=e.useMemo(()=>a===`wrap`||d.length!==c.length?{menuItemCount:0,hideRoot:u}:au({availableWidth:p??800,itemCount:c.length,itemWidths:d,menuButtonWidth:h,overflow:a,hideRoot:u}),[a,u,c,d,p,h]),b=e.useMemo(()=>({variant:o}),[o]),x=e.useMemo(()=>{let e=(e,t)=>(0,q.jsxs)(`li`,{className:iu.item,"data-crumb":``,children:[e,(0,q.jsx)(su,{})]},t);if(v===0)return c.map((t,n)=>e(t,n));let t=c.slice(0,v),n=c.slice(v),r=y?t:t.slice(1),i=(0,q.jsxs)(`li`,{ref:_,className:G(iu.item,iu.itemMenu),"data-overflow-menu":``,children:[(0,q.jsx)(nu,{items:r}),(0,q.jsx)(su,{})]},`overflow-menu`),a=n.map((t,n)=>e(t,`visible-${n}`));return y?[i,...a]:[e(l,`root`),i,...a]},[c,v,y,_,l]);return(0,q.jsx)(ru.Provider,{value:b,children:(0,q.jsx)(`nav`,{ref:s,"aria-label":`Breadcrumbs`,className:G(iu.root,n),style:i,"data-component":`Breadcrumbs`,"data-overflow":a,"data-variant":o,children:(0,q.jsx)(`ol`,{className:G(iu.list,a===`wrap`?iu.listWrap:iu.listMenu),children:x})})})}cu.displayName=`Breadcrumbs`;const lu={root:`breadcrumbs-link`,normal:`breadcrumbs-link-normal`,normalSelected:`breadcrumbs-link-normal-selected`,spacious:`breadcrumbs-link-spacious`,spaciousSelected:`breadcrumbs-link-spacious-selected`};function uu(t,n){let{as:r=`a`,className:i,selected:a,...o}=t,{variant:s=`normal`}=e.useContext(ru),c=s===`spacious`;return(0,q.jsx)(r,{ref:n,"aria-current":a?`page`:void 0,className:G(lu.root,c?lu.spacious:lu.normal,a&&(c?lu.spaciousSelected:lu.normalSelected),i),"data-component":`Breadcrumbs.Item`,"data-selected":a?``:void 0,...o})}uu.displayName=`Breadcrumbs.Item`;var du=K(uu);const fu=Object.assign(cu,{Item:du}),pu=n({}),mu=n({}),hu=n({}),gu=W(`bubble`,{variants:{align:{start:`bubble-align-start`,end:`bubble-align-end`},variant:{default:`bubble-default`,secondary:`bubble-secondary`,muted:`bubble-muted`,tinted:`bubble-tinted`,outline:`bubble-outline`,ghost:`bubble-ghost`,danger:`bubble-danger`}}});function _u(t,n){let{as:r=`div`,className:i,variant:a=`default`,align:o,...s}=t,{align:c}=e.useContext(hu),{align:l}=e.useContext(pu),u=o??c??l??`start`,d={align:u,variant:a};return(0,q.jsx)(mu.Provider,{value:d,children:(0,q.jsx)(r,{ref:n,className:G(gu({align:u,variant:a}),i),"data-component":`Bubble`,"data-variant":a,"data-align":u,...s})})}_u.displayName=`Bubble`;var vu=K(_u);const yu={root:`bubble-content`};function bu(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(yu.root,r),"data-component":`Bubble.Content`,...i})}bu.displayName=`Bubble.Content`;var xu=K(bu);const Su={root:`bubble-group`};function Cu(e,t){let{as:n=`div`,className:r,align:i=`start`,...a}=e;return(0,q.jsx)(hu.Provider,{value:{align:i},children:(0,q.jsx)(n,{ref:t,className:G(Su.root,r),"data-component":`Bubble.Group`,"data-align":i,...a})})}Cu.displayName=`Bubble.Group`;var wu=K(Cu);const Tu=W(`bubble-reactions`,{variants:{side:{top:`bubble-reactions-top`,bottom:`bubble-reactions-bottom`},align:{start:`bubble-reactions-align-start`,end:`bubble-reactions-align-end`}}});function Eu(t,n){let{as:r=`div`,className:i,side:a=`bottom`,align:o,...s}=t,{align:c}=e.useContext(mu),l=o??c??`end`;return(0,q.jsx)(r,{ref:n,className:G(Tu({side:a,align:l}),i),"data-component":`Bubble.Reactions`,"data-side":a,"data-align":l,...s})}Eu.displayName=`Bubble.Reactions`;var Du=K(Eu);const Ou=Object.assign(vu,{Group:wu,Content:xu,Reactions:Du}),ku={root:`button-group`,item:{root:`button-group-item`,first:`button-group-item-first`,last:`button-group-item-last`}},Au=[`[disabled]`,`[hidden]`,`[inert]`],ju=[`button`,`a[href]`,`summary`].map(e=>`${e}:not(${Au.join(`):not(`)})`).join(`, `),Mu=e=>e?Array.from(e.querySelectorAll(ju)):[],Nu=(e,t)=>{for(let n of e)n.tabIndex=n===t?0:-1};function Pu(t,n){let{as:r=`div`,className:i,children:a,role:o,onFocus:s,onKeyDown:c,...l}=t,u=e.useRef(null),d=Gr(n,u),f=o===`toolbar`,p=e.useCallback(()=>{if(!f)return;let e=Mu(u.current),t=e.find(e=>e===document.activeElement);Nu(e,t??e[0])},[f]);e.useEffect(p),e.useEffect(()=>{if(!f||u.current===null)return;let e=u.current,t=new MutationObserver(p);return t.observe(e,{childList:!0,subtree:!0}),()=>{t.disconnect();for(let t of Mu(e))t.removeAttribute(`tabindex`)}},[f,p]);let m=e=>{if(s?.(e),!f)return;let t=Mu(u.current);t.includes(e.target)&&Nu(t,e.target)},h=e=>{c?.(e);let t=e.key===`ArrowRight`?1:e.key===`ArrowLeft`?-1:0;if(!f||t===0||e.defaultPrevented)return;let n=Mu(u.current),r=n.indexOf(document.activeElement);r!==-1&&(e.preventDefault(),n[(r+t+n.length)%n.length].focus())},g=e.Children.toArray(a);return(0,q.jsx)(r,{ref:d,className:G(ku.root,i),role:o,onFocus:m,onKeyDown:h,"data-component":`ButtonGroup`,...l,children:g.map((t,n)=>(0,q.jsx)(`div`,{className:G(ku.item.root,n===0&&ku.item.first,n===g.length-1&&ku.item.last),"data-component":`ButtonGroup.Item`,children:t},e.isValidElement(t)?t.key:n))})}Pu.displayName=`ButtonGroup`;var Fu=K(Pu);const Iu={root:`calendar-day`,interactive:`calendar-day-interactive`,selected:`calendar-day-selected`,between:`calendar-day-between`,outside:`calendar-day-outside`,unavailable:`calendar-day-unavailable`,hidden:`sr-only`};function Lu(e,t){let{label:n,name:r,dayKey:i,selected:a,range:o,today:s,outside:c,unavailable:l,tabbable:u,className:d,...f}=e,p=o===`middle`,m=a&&!p;return(0,q.jsxs)(`button`,{ref:t,type:`button`,tabIndex:u?0:-1,"aria-pressed":a,"aria-current":s?`date`:void 0,"aria-disabled":l||void 0,className:G(Iu.root,!l&&!a&&Iu.interactive,c&&Iu.outside,p&&Iu.between,l&&Iu.unavailable,m&&Iu.selected,d),"data-component":`Calendar.Day`,"data-date":i,"data-selected":a,"data-range":o,"data-today":s||void 0,"data-outside":c||void 0,"data-unavailable":l||void 0,"data-tabbable":u,...f,children:[(0,q.jsx)(`span`,{"aria-hidden":`true`,children:n}),(0,q.jsx)(`span`,{className:Iu.hidden,children:r})]})}Lu.displayName=`Calendar.Day`;var Ru=K(Lu),zu=Me(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),Bu=Me(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Vu=Me(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),Hu=Me(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),Uu=Me(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),Wu=Pe(zu()),Gu=Pe(Bu()),Ku=Pe(Vu()),qu=Pe(Hu()),Ju=Pe(Uu());Wu.default.extend(Gu.default),Wu.default.extend(Ku.default),Wu.default.extend(qu.default),Wu.default.extend(Ju.default);const Yu=7,Xu=`YYYY-MM-DD`,Zu=e=>(0,Wu.default)(e),Qu=e=>{if(e==null)return null;let t=Zu(e);return t.isValid()?t:null},$u=e=>e.format(Xu),ed={from:null,to:null},td=(e,t)=>{if(e==null)return ed;if(t){let t=e;return{from:Qu(t.from),to:Qu(t.to)}}let n=Qu(e);return{from:n,to:n}},nd=()=>(0,Wu.default)().localeData().firstDayOfWeek()??0,rd=e=>{let t=(0,Wu.default)().localeData(),n=t.weekdaysMin(),r=t.weekdays();return Array.from({length:7},(t,i)=>{let a=(e+i)%7;return{day:a,narrow:n[a],full:r[a]}})},id=(e,t)=>e.subtract((e.day()-t+7)%7,`day`),ad=(e,t,n=!1)=>{let r=e.startOf(`month`),i=id(r,t),a=(r.day()-t+7)%7,o=(t+7-1-e.endOf(`month`).day())%7,s=a+e.daysInMonth()+o,c=n?6:s/7;return Array.from({length:c},(e,t)=>Array.from({length:7},(e,n)=>i.add(t*7+n,`day`)))},od=(e,t,n,r)=>(t===null||!e.isBefore(t,`day`))&&(n===null||!e.isAfter(n,`day`))&&!r?.(e.toDate()),sd=(e,t)=>e.isAfter(t,`day`)?[t,e]:[e,t],cd=(e,t,n)=>{if(t===null)return n!==null&&e.isSame(n,`day`);if(n===null)return e.isSame(t,`day`);let[r,i]=sd(t,n);return!e.isBefore(r,`day`)&&!e.isAfter(i,`day`)},ld=(e,t,n)=>{if(t===null||n===null||t.isSame(n,`day`))return;let[r,i]=sd(t,n);return e.isSame(r,`day`)?`start`:e.isSame(i,`day`)?`end`:e.isAfter(r,`day`)&&e.isBefore(i,`day`)?`middle`:void 0},ud=(e,t,n)=>{if(e===null||t!==null)return{from:n,to:null};if(n.isSame(e,`day`))return ed;let[r,i]=sd(e,n);return{from:r,to:i}},dd=(e,t)=>{let n=(0,Wu.default)(e,t,!0);return n.isValid()?n:null},fd=()=>(0,Wu.default)(),pd={root:`calendar`,header:`calendar-header`,caption:`calendar-caption`,grid:`calendar-grid`,weekday:`calendar-weekday`,weekNumberHeader:`calendar-week-number-header`,weekNumber:`calendar-week-number`,cell:`calendar-cell`,rangeCell:`calendar-cell-range`,rangeCellStart:`calendar-cell-range-start`,rangeCellEnd:`calendar-cell-range-end`,hidden:`sr-only`};function md(t,n){let{mode:r=`single`,value:i,defaultValue:a,onChange:o,month:s,defaultMonth:c,onMonthChange:l,min:u,max:d,isDateDisabled:f,weekStartsOn:p,fixedWeeks:m=!1,showOutsideDays:h=!0,showWeekNumbers:g=!1,monthFormat:_=`MMMM YYYY`,dayFormat:v=`LL`,focusableDayRef:y,previousMonthLabel:b=`Previous month`,nextMonthLabel:x=`Next month`,weekNumberLabel:S=`Week`,className:C,...w}=t,T=Y(),E=e.useRef(null),D=fd(),O=r===`range`,k=i!==void 0,[A,j]=e.useState(()=>td(a,O)),M=k?td(i,O):A,N=s!==void 0,[P,F]=e.useState(()=>(Qu(c)??td(a,O).from??td(i,O).from??fd()).startOf(`month`)),I=(N?Zu(s):P).startOf(`month`),L=Qu(u),ee=Qu(d),R=p??nd(),te=rd(R),z=ad(I,R,m),[ne,B]=e.useState(null),re=e.useRef(null),[V,ie]=e.useState(null),ae=O&&M.from!==null&&M.to===null,oe=ae?V:M.to,se=$u((()=>{for(let e of[ne,M.from,D])if(e&&e.isSame(I,`month`))return e;return I})());e.useEffect(()=>{let e=re.current;e!==null&&(re.current=null,E.current?.querySelector(`[data-date='${e}']`)?.focus())});let ce=e=>{let t=e.startOf(`month`);N||F(t),l?.(t.toDate())},le=e=>{B(e),re.current=$u(e),e.isSame(I,`month`)||ce(e)},ue=e=>{if(!od(e,L,ee,f))return;B(e),e.isSame(I,`month`)||ce(e);let t=O?ud(M.from,M.to,e):{from:e,to:e};if(k||j(t),O){o?.({from:t.from?.toDate()??null,to:t.to?.toDate()??null});return}o?.(e.toDate())},de=(e,t)=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;let n=t=>{e.preventDefault(),le(t)};switch(e.key){case`ArrowLeft`:return n(t.subtract(1,`day`));case`ArrowRight`:return n(t.add(1,`day`));case`ArrowUp`:return n(t.subtract(7,`day`));case`ArrowDown`:return n(t.add(7,`day`));case`Home`:return n(id(t,R));case`End`:return n(id(t,R).add(6,`day`));case`PageUp`:return n(t.subtract(1,e.shiftKey?`year`:`month`));case`PageDown`:return n(t.add(1,e.shiftKey?`year`:`month`));default:return}},fe=e=>{B(t=>t?.isSame(e,`day`)?t:e),ae&&ie(e)},pe=e=>{ae&&ie(e)},me=()=>{ie(null)},he=I.subtract(1,`month`),ge=I.add(1,`month`),_e=L===null||!he.endOf(`month`).isBefore(L,`day`),ve=ee===null||!ge.isAfter(ee,`day`);return(0,q.jsxs)(`div`,{ref:n,className:G(pd.root,C),"data-component":`Calendar`,...w,children:[(0,q.jsxs)(`div`,{className:pd.header,"data-component":`Calendar.Header`,children:[(0,q.jsx)(na,{icon:Bn,"aria-label":b,variant:`invisible`,size:`small`,disabled:!_e,onClick:()=>ce(he),"data-component":`Calendar.PreviousMonth`}),(0,q.jsx)(`div`,{id:T,"aria-live":`polite`,className:pd.caption,"data-component":`Calendar.Caption`,children:I.format(_)}),(0,q.jsx)(na,{icon:Vn,"aria-label":x,variant:`invisible`,size:`small`,disabled:!ve,onClick:()=>ce(ge),"data-component":`Calendar.NextMonth`})]}),(0,q.jsxs)(`table`,{ref:E,"aria-labelledby":T,className:pd.grid,onPointerLeave:me,"data-component":`Calendar.Grid`,"data-mode":r,children:[(0,q.jsx)(`thead`,{children:(0,q.jsxs)(`tr`,{children:[g?(0,q.jsx)(`th`,{scope:`col`,className:pd.weekNumberHeader,children:(0,q.jsx)(`span`,{className:pd.hidden,children:S})}):null,te.map(e=>(0,q.jsxs)(`th`,{scope:`col`,className:pd.weekday,"data-component":`Calendar.Weekday`,children:[(0,q.jsx)(`span`,{"aria-hidden":`true`,children:e.narrow}),(0,q.jsx)(`span`,{className:pd.hidden,children:e.full})]},e.day))]})}),(0,q.jsx)(`tbody`,{children:z.map(e=>(0,q.jsxs)(`tr`,{"data-component":`Calendar.Week`,children:[g?(0,q.jsx)(`th`,{scope:`row`,className:pd.weekNumber,"data-component":`Calendar.WeekNumber`,children:e[0].week()}):null,e.map(e=>{let t=$u(e),n=!e.isSame(I,`month`);if(n&&!h)return(0,q.jsx)(`td`,{className:pd.cell},t);let r=t===se,i=ld(e,M.from,oe);return(0,q.jsx)(`td`,{className:G(pd.cell,i&&pd.rangeCell,i===`start`&&pd.rangeCellStart,i===`end`&&pd.rangeCellEnd),children:(0,q.jsx)(Ru,{ref:r?y:void 0,label:e.format(`D`),name:e.format(v),dayKey:t,selected:cd(e,M.from,M.to),range:i,today:e.isSame(D,`day`),outside:n,unavailable:!od(e,L,ee,f),tabbable:r,onClick:()=>ue(e),onKeyDown:t=>de(t,e),onFocus:()=>fe(e),onPointerEnter:()=>pe(e)})},t)})]},$u(e[0])))})]})]})}md.displayName=`Calendar`;var hd=K(md);const gd=Object.assign(hd,{Day:Ru}),_d={root:`card-action`};function vd(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(_d.root,n),"data-component":`Card.Action`,...r})}vd.displayName=`Card.Action`;var yd=K(vd);const bd=n({}),xd={root:`card-description text-body-medium`};function Sd(e,t){let{className:n,...r}=e;return(0,q.jsx)(`p`,{ref:t,className:G(xd.root,n),"data-component":`Card.Description`,...r})}Sd.displayName=`Card.Description`;var Cd=K(Sd);const wd={root:`card-heading`,compact:`card-heading-compact`};function Td(t,n){let{as:r=`h3`,className:i,id:a,...o}=t,{titleId:s,layout:c}=e.useContext(bd);return(0,q.jsx)(r,{ref:n,id:a??s,className:G(wd.root,c===`compact`&&wd.compact,i),"data-component":`Card.Heading`,...o})}Td.displayName=`Card.Heading`;var Ed=K(Td);const Dd={root:`card-icon`,tile:`card-icon-tile`};function Od(t,n){let{icon:r,className:i,"aria-label":a,...o}=t,{layout:s}=e.useContext(bd);return(0,q.jsx)(`span`,{ref:n,role:a?`img`:void 0,"aria-label":a,"aria-hidden":!a||void 0,className:G(Dd.root,s!==`compact`&&Dd.tile,i),"data-component":`Card.Icon`,...o,children:(0,q.jsx)(r,{})})}Od.displayName=`Card.Icon`;var kd=K(Od);const Ad={root:`card-image`};function jd(e,t){let{className:n,alt:r=``,...i}=e;return(0,q.jsx)(`img`,{ref:t,alt:r,className:G(Ad.root,n),"data-component":`Card.Image`,...i})}jd.displayName=`Card.Image`;var Md=K(jd);const Nd={root:`card-metadata text-body-small`};function Pd(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Nd.root,n),"data-component":`Card.Metadata`,...r})}Pd.displayName=`Card.Metadata`;var Fd=K(Pd);const Id={content:`card-content`},Ld=W(`card`,{variants:{borderRadius:{medium:`card-radius-medium`,large:`card-radius-large`},layout:{default:``,compact:`card-compact`},padding:{none:`card-padding-none`,condensed:`card-padding-condensed`,normal:`card-padding-normal`}},compoundVariants:[{layout:`compact`,padding:`normal`,class:`card-compact-padding-normal`}]}),Rd=W(`card-header`,{variants:{edgeToEdge:{true:`card-header-edge-to-edge`,false:``},layout:{default:``,compact:`card-header-compact`}}}),zd=W(`card-body`,{variants:{layout:{default:``,compact:`card-body-compact`}}});function Bd(t,n){let{as:r=`div`,className:i,children:a,padding:o=`normal`,borderRadius:s=`large`,layout:c=`default`,"aria-label":l,"aria-labelledby":u,...d}=t,f=Y(),[p]=si(a,{icon:kd,image:Md,heading:Ed,description:Cd,metadata:Fd,action:yd}),m=r===`section`,h=m?f:void 0,g=u??(m&&!l?h:void 0),_=p.image??p.icon,v=!!(_||p.heading||p.description||p.metadata||p.action);return e.Children.toArray(a).length===0?null:(0,q.jsx)(bd.Provider,{value:{titleId:h,layout:c},children:(0,q.jsx)(r,{ref:n,"aria-label":l,"aria-labelledby":g,className:G(Ld({borderRadius:s,layout:c,padding:o}),i),"data-component":`Card`,"data-padding":o,"data-border-radius":s,"data-layout":c,...d,children:v?(0,q.jsxs)(q.Fragment,{children:[_?(0,q.jsx)(`div`,{className:G(Rd({edgeToEdge:!!p.image,layout:c})),children:_}):null,(0,q.jsxs)(`div`,{className:G(zd({layout:c})),children:[(0,q.jsxs)(`div`,{className:Id.content,children:[p.heading,p.description]}),p.metadata]}),p.action]}):a})})}Bd.displayName=`Card`;var Vd=K(Bd);const Hd=Object.assign(Vd,{Icon:kd,Image:Md,Heading:Ed,Description:Cd,Metadata:Fd,Action:yd}),Ud={triangle:`caret-triangle`,border:`caret-border`},Wd=W(`caret`,{variants:{location:{top:`caret-top`,bottom:`caret-bottom`,left:`caret-left`,right:`caret-right`,"top-left":`caret-top-left`,"top-right":`caret-top-right`,"bottom-left":`caret-bottom-left`,"bottom-right":`caret-bottom-right`,"left-top":`caret-left-top`,"left-bottom":`caret-left-bottom`,"right-top":`caret-right-top`,"right-bottom":`caret-right-bottom`}}}),Gd=(e,t)=>({top:`translate(${t},${t*2}) rotate(180)`,right:`translate(0,${t}) rotate(-90)`,bottom:`translate(${t},0)`,left:`translate(${t*2},${t}) rotate(90)`})[e];function Kd(e,t){let{location:n=`bottom`,size:r=8,background:i,borderColor:a,borderWidth:o,className:s,style:c,...l}=e,u=n.split(`-`)[0],d=[-r,0],f=[0,r],p=[r,0],m=`M${d}L${f}L${p}L${d}Z`,h=`M${d}L${f}L${p}`;return(0,q.jsx)(`svg`,{ref:t,width:r*2,height:r*2,className:G(Wd({location:n}),s),style:{...c,"--caret-size":`${r}px`,"--caret-background":i,"--caret-border-color":a,"--caret-border-width":o},"data-component":`Caret`,"data-location":n,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...l,children:(0,q.jsxs)(`g`,{transform:Gd(u,r),children:[(0,q.jsx)(`path`,{className:Ud.triangle,d:m}),(0,q.jsx)(`path`,{className:Ud.border,d:h})]})})}Kd.displayName=`Caret`;var qd=K(Kd);const Jd=()=>{},Yd=n({index:0,count:0,loop:!1,autoPlay:!1,isPlaying:!1,goTo:Jd,previous:Jd,next:Jd,togglePlaying:Jd,slidesId:``}),Xd=n({index:0}),Zd={root:`carousel-indicators`,dot:`carousel-indicator`,current:`carousel-indicator-current`};function Qd(t,n){let{className:r,...i}=t,{index:a,count:o,goTo:s,slidesId:c}=e.useContext(Yd);return o===0?null:(0,q.jsx)(`div`,{ref:n,className:G(Zd.root,r),"data-component":`Carousel.Indicators`,...i,children:Array.from({length:o},(e,t)=>{let n=t===a;return(0,q.jsx)(`button`,{type:`button`,"aria-label":`Slide ${t+1}`,"aria-current":n||void 0,"aria-controls":c||void 0,onClick:()=>s(t,`indicator`),className:G(Zd.dot,n&&Zd.current),"data-component":`Carousel.Indicator`,"data-current":n||void 0},t)})})}Qd.displayName=`Carousel.Indicators`;var $d=K(Qd);function ef(t,n){let{className:r,onClick:i,...a}=t,{index:o,count:s,loop:c,next:l,slidesId:u}=e.useContext(Yd);return(0,q.jsx)(na,{ref:n,icon:Vn,"aria-label":`Next slide`,"aria-controls":u||void 0,variant:`invisible`,disabled:!c&&o>=s-1,onClick:e=>{i?.(e),e.defaultPrevented||l()},className:r,"data-component":`Carousel.NextButton`,...a})}ef.displayName=`Carousel.NextButton`;var tf=K(ef);function nf(t,n){let{className:r,onClick:i,...a}=t,{isPlaying:o,togglePlaying:s,slidesId:c}=e.useContext(Yd);return(0,q.jsx)(na,{ref:n,icon:o?ur:dr,"aria-label":o?`Stop automatic slide show`:`Start automatic slide show`,"aria-controls":c||void 0,variant:`invisible`,onClick:e=>{i?.(e),e.defaultPrevented||s()},className:r,"data-component":`Carousel.PlayButton`,"data-playing":o||void 0,...a})}nf.displayName=`Carousel.PlayButton`;var rf=K(nf);function af(t,n){let{className:r,onClick:i,...a}=t,{index:o,loop:s,previous:c,slidesId:l}=e.useContext(Yd);return(0,q.jsx)(na,{ref:n,icon:Bn,"aria-label":`Previous slide`,"aria-controls":l||void 0,variant:`invisible`,disabled:!s&&o<=0,onClick:e=>{i?.(e),e.defaultPrevented||c()},className:r,"data-component":`Carousel.PreviousButton`,...a})}af.displayName=`Carousel.PreviousButton`;var of=K(af);const sf={root:`carousel-controls`};function cf(t,n){let{className:r,children:i,...a}=t,{autoPlay:o}=e.useContext(Yd),s=e.Children.toArray(i).length>0;return(0,q.jsx)(`div`,{ref:n,className:G(sf.root,r),"data-component":`Carousel.Controls`,...a,children:s?i:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(of,{}),(0,q.jsx)($d,{}),(0,q.jsx)(tf,{}),o?(0,q.jsx)(rf,{}):null]})})}cf.displayName=`Carousel.Controls`;var lf=K(cf);const uf={root:`carousel-slide`};function df(t,n){let{className:r,...i}=t,{index:a,count:o}=e.useContext(Yd),{index:s}=e.useContext(Xd),c=s===a;return(0,q.jsx)(`div`,{ref:n,role:`group`,"aria-roledescription":`slide`,"aria-label":`${s+1} of ${o}`,inert:!c,className:G(uf.root,r),"data-component":`Carousel.Slide`,"data-current":c||void 0,...i})}df.displayName=`Carousel.Slide`;var ff=K(df);const pf={root:`carousel`,viewport:`carousel-viewport`,track:`carousel-track`,motion:`motion-safe:[transition:translate_var(--motion-transition-state-change)]`},mf=(e,t,n)=>t<=0?0:n?(e%t+t)%t:Math.min(Math.max(e,0),t-1);function hf(t,n){let{className:r,children:i,index:a,defaultIndex:o=0,onChange:s,loop:c=!1,autoPlay:l=!1,interval:u=5e3,...d}=t,f=Y(),p=a!==void 0,[m,h]=e.useState(o),[g,_]=e.useState(l),[v,y]=e.useState(!1),b=e.useRef(s);Ur(()=>{b.current=s},[s]);let x=[],S=[],C=null;e.Children.forEach(i,t=>{if(!e.isValidElement(t)){S.push(t);return}if(t.type===ff){x.push(t);return}if(t.type===lf&&C===null){C=t;return}S.push(t)});let w=x.length,T=mf(p?a:m,w,c),E=(e,t)=>{let n=mf(e,w,c);p||h(n),b.current?.(n,t)};e.useEffect(()=>{if(!g||v||w<2)return;let e=window.setTimeout(()=>{if(!c&&T>=w-1){_(!1);return}let e=mf(T+1,w,c);p||h(e),b.current?.(e,`auto`)},u);return()=>{window.clearTimeout(e)}},[g,v,w,T,u,c,p]);let D={index:T,count:w,loop:c,autoPlay:l,isPlaying:g,goTo:E,previous:()=>E(T-1,`previous`),next:()=>E(T+1,`next`),togglePlaying:()=>_(e=>!e),slidesId:f},{onMouseEnter:O,onMouseLeave:k,onFocus:A,onBlur:j,...M}=d,N=e=>{O?.(e),y(!0)},P=e=>{k?.(e),y(!1)},F=e=>{A?.(e),y(!0)},I=e=>{j?.(e),e.currentTarget.contains(e.relatedTarget)||y(!1)},L=g&&!v;return(0,q.jsx)(Yd.Provider,{value:D,children:(0,q.jsxs)(`section`,{ref:n,"aria-roledescription":`carousel`,className:G(pf.root,r),onMouseEnter:N,onMouseLeave:P,onFocus:F,onBlur:I,"data-component":`Carousel`,"data-count":w,"data-index":T,"data-playing":L||void 0,...M,children:[(0,q.jsx)(`div`,{id:f,className:pf.viewport,"aria-live":L?`off`:`polite`,"aria-atomic":`false`,"data-component":`Carousel.Viewport`,children:(0,q.jsx)(`div`,{className:G(pf.track,pf.motion),style:{"--carousel-index":T},"data-component":`Carousel.Track`,children:x.map((e,t)=>(0,q.jsx)(Xd.Provider,{value:{index:t},children:e},e.key??t))})}),C??(0,q.jsx)(lf,{}),S]})})}hf.displayName=`Carousel`;var gf=K(hf);const _f=Object.assign(gf,{Slide:ff,Controls:lf,PreviousButton:of,NextButton:tf,Indicators:$d,PlayButton:rf}),vf=n(null),yf=()=>{let e=o(vf);if(!e)throw Error(`Chart parts have to be rendered inside a Chart`);return e},bf={root:`chart`};function xf(e,t){let{chart:n,className:r,children:i,...a}=e;return(0,q.jsx)(vf.Provider,{value:n,children:(0,q.jsx)(`div`,{ref:t,className:G(bf.root,r),"data-component":`Chart`,...a,children:(0,q.jsx)(_,{width:`100%`,height:`100%`,children:i})})})}xf.displayName=`Chart`;var Sf=K(xf);function Cf(e){let{id:t,fillOpacity:n,stops:r}=e,i=yf();return(0,q.jsx)(`linearGradient`,{id:t,x1:`0`,y1:`0`,x2:`0`,y2:`1`,"data-component":`Chart.Gradient`,children:r.map((e,t)=>(0,q.jsx)(`stop`,{offset:e.offset,stopColor:i.color(e.color),stopOpacity:e.opacity??n},t))})}Cf.displayName=`Chart.Gradient`;const wf=[`var(--base-display-color-blue-5)`,`var(--base-display-color-orange-5)`,`var(--base-display-color-purple-5)`,`var(--base-display-color-green-5)`,`var(--base-display-color-pink-5)`],Tf=`var(--foreground-color-muted)`,Ef={blue:wf[0],orange:wf[1],purple:wf[2],green:wf[3],pink:wf[4],grid:`var(--border-color-muted)`,axis:`var(--border-color-default)`,surface:`var(--background-color-default)`,foreground:`var(--foreground-color-default)`,muted:Tf},Df=(e,t)=>t??wf[e]??`var(--foreground-color-muted)`,Of=e=>typeof e==`object`&&!!e,kf=(e,t)=>{if(!(!t||!Of(e)))return e[t]},Af=e=>{if(typeof e==`string`){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(t)return new Date(Number(t[1]),Number(t[2])-1,Number(t[3]))}return new Date(e)},jf=(e,t)=>{let n=new Map;for(let r of e){let e=r[t],i=n.get(e)??[];i.push(r),n.set(e,i)}return Array.from(n.values())},Mf=t=>{let{data:n,series:r=[],sort:i,locale:a}=t,o=`chart-${e.useId().replace(/[^\w-]/g,``)}`,[s,c]=e.useState(null),l=r.map((e,t)=>({...e,color:Df(t,e.color)})),u=e.useMemo(()=>i?[...n].sort((e,t)=>{let n=Number(e[i.by]),r=Number(t[i.by]);return i.direction===`desc`?r-n:n-r}):n,[n,i]),d=e=>e??`value`,f=e=>{if(e)return Ef[e]??e},p=e.useCallback(e=>{let t=new Intl.NumberFormat(a,e);return e=>t.format(e)},[a]),m=e.useCallback(e=>{let t=new Intl.DateTimeFormat(a,e);return e=>{let n=Af(e);return Number.isNaN(n.getTime())?String(e):t.format(n)}},[a]),h=e=>{if(!Of(e))return;let t=l.find(t=>t.name===e.name||t.name===kf(e.payload,`name`)||t.name===e.dataKey||t.name===kf(e.payload,`dataKey`)),n=t?.name?.toString()??kf(e.payload,`name`);return{name:n,color:t?.color??kf(e.payload,`color`),icon:t?.icon,label:t?.label??n}},g=e=>jf(u,e),_=e=>n.reduce((t,n)=>t+Number(n[e]),0),v=e=>Math.min(...n.map(t=>Number(t[e]))),y=e=>Math.max(...n.map(t=>Number(t[e]))),b=e=>e?.reduce((e,t)=>{if(t.value===null||t.value===void 0||t.value===``)return e;let n=Number(t.value);return e+(Number.isNaN(n)?0:n)},0),x=(e,t,n)=>{let r=v(e),i=y(e);if(n){let[e,a]=typeof n==`function`?n({min:r,max:i}):n;return(t-e)/(a-e)*100}return t/_(e)*100},S=e=>s===e;return{id:o,key:d,data:u,series:l,getSeries:h,groupBy:g,color:f,formatNumber:p,formatDate:m,highlightedSeries:s,setHighlightedSeries:c,isHighlightedSeries:S,getSeriesOpacity:(e,t=.2)=>{if(e&&s)return S(e)?1:t},getTotal:_,getMin:v,getMax:y,getPayloadTotal:b,getValuePercent:x}},Nf={root:`chart-legend`,title:`chart-legend-title`,list:`chart-legend-list`,item:`chart-legend-item`,control:`chart-legend-control`,swatch:`chart-swatch`,label:`chart-legend-label`};function Pf(e){let{payload:t,align:n=`center`,verticalAlign:r=`bottom`,layout:i=`auto`,title:a,nameKey:o,interaction:s=`hover`,className:c}=e,l=yf(),u=i===`auto`?n===`center`?`horizontal`:`vertical`:i,d=t?.filter(e=>e.color!==`none`||e.type!==`none`);return d?.length?(0,q.jsxs)(`div`,{className:G(Nf.root,c),"data-component":`Chart.Legend`,"data-align":n,"data-vertical-align":r,children:[a?(0,q.jsx)(`div`,{className:Nf.title,children:a}):null,(0,q.jsx)(`ul`,{className:Nf.list,"data-orientation":u,children:d.map((e,t)=>{let n=l.getSeries(e),r=n?.name,i=kf(e.payload,o)??n?.label,a=(0,q.jsxs)(q.Fragment,{children:[n?.icon??(0,q.jsx)(`span`,{className:Nf.swatch,style:{background:l.color(n?.color)},"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:Nf.label,children:i})]});return(0,q.jsx)(`li`,{className:Nf.item,"data-component":`Chart.LegendItem`,"data-series":r,style:{opacity:l.getSeriesOpacity(r,.6)},children:s===`click`?(0,q.jsx)(`button`,{type:`button`,className:Nf.control,"aria-pressed":l.isHighlightedSeries(r),onClick:()=>{r&&l.setHighlightedSeries(e=>e===r?null:r)},children:a}):(0,q.jsx)(`span`,{className:Nf.control,onMouseEnter:()=>l.setHighlightedSeries(r??null),onMouseLeave:()=>l.setHighlightedSeries(null),children:a})},`${r??`series`}-${t}`)})})]}):null}Pf.displayName=`Chart.Legend`;const Ff={title:`chart-radial-title`,description:`chart-radial-description`},If=e=>`cx`in e&&`cy`in e;function Lf(e){let{viewBox:t,title:n,description:r,gap:i=24,fontSize:a=`2rem`}=e,o=yf();return!t||!If(t)?null:(0,q.jsxs)(`text`,{x:t.cx,y:t.cy,textAnchor:`middle`,dominantBaseline:`middle`,"data-component":`Chart.RadialText`,children:[(0,q.jsx)(`tspan`,{className:Ff.title,x:t.cx,y:t.cy,style:{fontSize:a,fill:o.color(`foreground`)},children:n}),r?(0,q.jsx)(`tspan`,{className:Ff.description,x:t.cx,y:t.cy+i,style:{fill:o.color(`muted`)},children:r}):null]})}Lf.displayName=`Chart.RadialText`;const Rf={root:`chart-tooltip`,label:`chart-tooltip-label`,rows:`chart-tooltip-rows`,row:`chart-tooltip-row`,swatch:`chart-swatch`,name:`chart-tooltip-name`,value:`chart-tooltip-value`,divider:`chart-tooltip-divider`};function zf(t){let{payload:n,label:r,labelFormatter:i,hideLabel:a,hideIndicator:o,hideSeriesLabel:s,showTotal:c,fitContent:l,nameKey:u,indicator:d=`dot`,formatter:f,render:p,className:m}=t,h=yf(),g=n?.filter(e=>e.color!==`none`||e.type!==`none`),_=e.useMemo(()=>h.getPayloadTotal(g),[h,g]),v=e.useMemo(()=>{let e=g?.[0];if(!e)return;let t=`${kf(e.payload,u)??r??e.dataKey??`value`}`;return i?.(t,g??[])??t},[r,i,u,g]);if(!g?.length)return null;let y=(e,t)=>{let n=f?f(e,t):e?.toLocaleString?.();return Array.isArray(n)?n:[n,t]};return(0,q.jsxs)(`div`,{className:G(Rf.root,m),"data-component":`Chart.Tooltip`,"data-fit-content":l?``:void 0,children:[a?null:(0,q.jsx)(`div`,{className:Rf.label,children:v}),(0,q.jsx)(`div`,{className:Rf.rows,children:g.map((t,n)=>{if(p)return(0,q.jsx)(e.Fragment,{children:p(t.payload)},n);let r=h.getSeries(t),[i,a]=y(t.value,r?.label??t.name);return(0,q.jsxs)(`div`,{className:Rf.row,"data-component":`Chart.TooltipRow`,"data-series":r?.name,children:[r?.icon??(r?.color&&!o?(0,q.jsx)(`span`,{className:Rf.swatch,"data-indicator":d,style:{background:h.color(r.color)},"aria-hidden":`true`}):null),s?null:(0,q.jsx)(`span`,{className:Rf.name,children:a}),(0,q.jsx)(`span`,{className:Rf.value,children:i})]},n)})}),c&&_!==void 0?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`hr`,{className:Rf.divider}),(0,q.jsxs)(`div`,{className:Rf.row,"data-component":`Chart.TooltipTotal`,children:[(0,q.jsx)(`span`,{className:Rf.name,children:`Total`}),(0,q.jsx)(`span`,{className:Rf.value,children:y(_,``)[0]})]})]}):null]})}zf.displayName=`Chart.Tooltip`;const Bf=Object.assign(Sf,{Gradient:Cf,Legend:Pf,RadialText:Lf,Tooltip:zf}),Vf=n({}),Hf={checkmark:`url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=")`,dash:`url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K")`},Uf={root:`checkbox`,mark:`checkbox-mark`,checked:`checkbox-checked`,disabled:`checkbox-disabled`};function Wf(t,n){let{className:r,style:i,checked:a,indeterminate:o,required:s,validationStatus:c,value:l,onChange:u,...d}=t,f=e.useRef(null),p=Gr(n,f),m=e.useContext(Vf);return Ur(()=>{f.current&&(f.current.indeterminate=o??!1)},[o,a]),(0,q.jsx)(`input`,{ref:p,type:`checkbox`,checked:o&&a!==void 0?!1:a,required:s,value:l,name:l,"aria-checked":o?`mixed`:void 0,"aria-required":s?!0:void 0,"aria-invalid":c===`error`||void 0,onChange:e=>{m.onChange?.(e),u?.(e)},className:G(Uf.root,Uf.mark,Uf.checked,Uf.disabled,r),style:{...i,"--checkbox-mark":o?Hf.dash:Hf.checkmark},"data-component":`Checkbox`,...d})}Wf.displayName=`Checkbox`;var Gf=K(Wf);const Kf=n({}),qf={root:`checkbox-card-description`};function Jf(t,n){let{className:r,id:i,...a}=t,{descriptionId:o}=e.useContext(Kf);return(0,q.jsx)(`span`,{ref:n,id:i??o,className:G(qf.root,r),"data-component":`CheckboxCard.Description`,...a})}Jf.displayName=`CheckboxCard.Description`;var Yf=K(Jf);const Xf={root:`checkbox-card-label`};function Zf(t,n){let{className:r,id:i,...a}=t,{labelId:o}=e.useContext(Kf);return(0,q.jsx)(`span`,{ref:n,id:i??o,className:G(Xf.root,r),"data-component":`CheckboxCard.Label`,...a})}Zf.displayName=`CheckboxCard.Label`;var Qf=K(Zf);const $f={root:`checkbox-card-leading-visual`};function ep(e,t){let{className:n,"aria-label":r,...i}=e;return(0,q.jsx)(`span`,{ref:t,role:r?`img`:void 0,"aria-label":r,"aria-hidden":!r||void 0,className:G($f.root,n),"data-component":`CheckboxCard.LeadingVisual`,...i})}ep.displayName=`CheckboxCard.LeadingVisual`;var tp=K(ep);const np={body:`checkbox-card-body`,control:`checkbox-card-control`},rp=W(`checkbox-card`,{variants:{disabled:{true:`checkbox-card-disabled`,false:`checkbox-card-interactive`},validation:{error:`checkbox-card-error`,success:`checkbox-card-success`}}});function ip(t,n){let{className:r,children:i,value:a,checked:o,defaultChecked:s,indeterminate:c,disabled:l,required:u,validationStatus:d,onChange:f,id:p,"aria-label":m,"aria-labelledby":h,"aria-describedby":g,..._}=t,v=e.useContext(Vf).disabled||l,y=Y(p),b=`${y}-label`,x=`${y}-description`,[S,C]=si(i,{leadingVisual:tp,label:Qf,description:Yf}),w=h??(S.label&&!m?b:void 0),T=[S.description?x:void 0,g].filter(Boolean).join(` `)||void 0;return(0,q.jsx)(Kf.Provider,{value:{labelId:b,descriptionId:x},children:(0,q.jsxs)(`label`,{ref:n,className:G(rp({disabled:!!v,validation:d}),r),"data-component":`CheckboxCard`,"data-disabled":v,"data-required":u,"data-validation":d,..._,children:[S.leadingVisual,(0,q.jsxs)(`div`,{className:np.body,children:[S.label,S.description,C]}),(0,q.jsx)(Gf,{id:y,value:a,checked:o,defaultChecked:s,indeterminate:c,disabled:v,required:u,validationStatus:d,onChange:f,"aria-label":m,"aria-labelledby":w,"aria-describedby":T,className:np.control})]})})}ip.displayName=`CheckboxCard`;var ap=K(ip);const op=Object.assign(ap,{LeadingVisual:tp,Label:Qf,Description:Yf}),sp={root:`checkbox-group-caption`};function cp(t,n){let{className:r,...i}=t,{captionId:a}=e.useContext(Vf);return(0,q.jsx)(`span`,{ref:n,id:a,className:G(sp.root,r),"data-component":`CheckboxGroup.Caption`,...i})}cp.displayName=`CheckboxGroup.Caption`;var lp=K(cp);const up={root:`checkbox-group-label`,disabled:`checkbox-group-label-disabled`,hidden:`sr-only`,required:`checkbox-group-label-required`};function dp(t,n){let{className:r,children:i,visuallyHidden:a,...o}=t,{disabled:s,required:c}=e.useContext(Vf);return(0,q.jsxs)(`span`,{ref:n,title:c?`required field`:void 0,className:G(up.root,s&&up.disabled,a&&up.hidden,r),"data-component":`CheckboxGroup.Label`,"data-label-disabled":s,...o,children:[i,c?(0,q.jsx)(`span`,{className:up.required,children:`*`}):null]})}dp.displayName=`CheckboxGroup.Label`;var fp=K(dp);const pp={success:Ln,error:Qn},mp={icon:`checkbox-group-validation-icon`},hp=W(`checkbox-group-validation`,{variants:{variant:{success:`checkbox-group-validation-success`,error:`checkbox-group-validation-error`}}});function gp(t,n){let{className:r,children:i,variant:a,...o}=t,{validationMessageId:s}=e.useContext(Vf),c=pp[a];return(0,q.jsxs)(`span`,{ref:n,className:G(hp({variant:a}),r),"data-component":`CheckboxGroup.Validation`,"data-validation-status":a,...o,children:[(0,q.jsx)(c,{className:mp.icon,"aria-hidden":`true`}),(0,q.jsx)(`span`,{id:s,children:i})]})}gp.displayName=`CheckboxGroup.Validation`;var _p=K(gp);const vp={root:`checkbox-group`,legend:`checkbox-group-legend`,legendVisible:`checkbox-group-legend-visible`,body:`checkbox-group-body`,validation:`checkbox-group-validation-slot`,hidden:`sr-only`},yp=t=>{let n=[],r=t=>{e.Children.forEach(t,t=>{if(e.isValidElement(t)){if(t.type===Gf){let{checked:e,defaultChecked:r,value:i}=t.props;(e||r)&&i&&n.push(i);return}r(t.props.children)}})};return r(t),n};function bp(t,n){let{as:r=`fieldset`,className:i,children:a,disabled:o,required:s,onChange:c,id:l,"aria-labelledby":u,...d}=t,[f,p]=si(a,{label:fp,caption:lp,validation:_p}),m=Y(l),h=f.caption?`${m}-caption`:void 0,g=f.validation?`${m}-validation`:void 0,[_,v]=e.useState(()=>yp(a)),y=e=>{let{value:t,checked:n}=e.currentTarget,r=n?[..._,t]:_.filter(e=>e!==t);v(r),c?.(r,e)},b=e.isValidElement(f.label)?!f.label.props.visuallyHidden:!1,x={disabled:o,required:s,captionId:h,validationMessageId:g,onChange:y};return(0,q.jsx)(Vf.Provider,{value:x,children:(0,q.jsxs)(r,{ref:n,id:m,disabled:o,"aria-labelledby":f.label?void 0:u,"aria-describedby":[g,h].filter(Boolean).join(` `)||void 0,className:G(vp.root,i),"data-component":`CheckboxGroup`,"data-disabled":o,"data-required":s,...d,children:[f.label?(0,q.jsxs)(`legend`,{className:G(vp.legend,b&&vp.legendVisible),children:[f.label,s?(0,q.jsx)(`span`,{className:vp.hidden,children:`, required`}):null,f.caption]}):f.caption,(0,q.jsx)(`div`,{className:vp.body,children:p}),f.validation?(0,q.jsx)(`div`,{className:vp.validation,children:f.validation}):null]})})}bp.displayName=`CheckboxGroup`;var xp=K(bp);const Sp=Object.assign(xp,{Label:fp,Caption:lp,Validation:_p}),Cp=n({}),wp=()=>o(Cp),Tp=e=>{if(typeof document>`u`||typeof document.execCommand!=`function`)return!1;let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.top=`0`,t.style.insetInlineStart=`-9999px`,t.style.opacity=`0`;let n=document.activeElement;document.body.appendChild(t),t.select();try{return document.execCommand(`copy`)}finally{t.remove(),n?.focus?.()}},Ep=async e=>{if(typeof navigator<`u`&&typeof navigator.clipboard?.writeText==`function`)try{await navigator.clipboard.writeText(e);return}catch(t){if(Tp(e))return;throw t}if(!Tp(e))throw Error(`The clipboard could not be reached`)},Dp=(t={})=>{let{value:n,defaultValue:r,timeout:i=3e3,disabled:a,onValueChange:o,onStatusChange:s,onCopyError:c}=t,l=n!==void 0,[u,d]=e.useState(r??``),f=l?n:u,[p,m]=e.useState(0),h=p>0,g=e.useRef(s);return e.useEffect(()=>{g.current=s},[s]),e.useEffect(()=>{if(p===0||i<=0)return;let e=window.setTimeout(()=>{m(0),g.current?.(!1)},i);return()=>{window.clearTimeout(e)}},[p,i]),{value:f,copied:h,disabled:!!a,copy:()=>{a||Ep(f).then(()=>{m(e=>e+1),s?.(!0)},e=>{c?.(e)})},setValue:e=>{l||d(e),o?.(e)}}},Op={root:`clipboard`,hidden:`sr-only`};function kp(t,n){let{as:r=`div`,className:i,value:a,defaultValue:o,timeout:s,disabled:c,copiedAnnouncement:l=`Copied to clipboard`,onValueChange:u,onStatusChange:d,onCopyError:f,children:p,...m}=t,h=Dp({value:a,defaultValue:o,timeout:s,disabled:c,onValueChange:u,onStatusChange:d,onCopyError:f}),[g,_]=e.useState(void 0),v={...h,inputId:g,setInputId:_};return(0,q.jsx)(Cp.Provider,{value:v,children:(0,q.jsxs)(r,{ref:n,className:G(Op.root,i),"data-component":`Clipboard`,"data-copied":h.copied,"data-disabled":h.disabled,...m,children:[p,l===null?null:(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Op.hidden,"data-component":`Clipboard.Announcement`,children:h.copied?l:``})]})})}kp.displayName=`Clipboard`;var Ap=K(kp);const jp={root:`clipboard-control`};function Mp(t,n){let{as:r=`div`,className:i,...a}=t,{copied:o}=e.useContext(Cp);return(0,q.jsx)(r,{ref:n,className:G(jp.root,i),"data-component":`Clipboard.Control`,"data-copied":!!o,...a})}Mp.displayName=`Clipboard.Control`;var Np=K(Mp);const Pp={root:`clipboard-copy-text`,hidden:`sr-only`};function Fp(t,n){let{as:r=`span`,className:i,children:a=`Copy`,copied:o=`Copied`,visuallyHidden:s,...c}=t,{copied:l}=e.useContext(Cp);return(0,q.jsx)(r,{ref:n,className:G(Pp.root,s&&Pp.hidden,i),"data-component":`Clipboard.CopyText`,"data-copied":!!l,...c,children:l?o:a})}Fp.displayName=`Clipboard.CopyText`;var Ip=K(Fp);const Lp={root:`clipboard-indicator`,copied:`clipboard-indicator-copied`};function Rp(t,n){let{as:r=`span`,className:i,children:a,copied:o,...s}=t,{copied:c}=e.useContext(Cp);return(0,q.jsx)(r,{ref:n,className:G(Lp.root,c&&Lp.copied,i),"aria-hidden":`true`,"data-component":`Clipboard.Indicator`,"data-copied":!!c,...s,children:c?o??(0,q.jsx)(Rn,{}):a??(0,q.jsx)(Jn,{})})}Rp.displayName=`Clipboard.Indicator`;var zp=K(Rp);const Bp=n({}),Vp=t=>{let{id:n,disabled:r,required:i,captionId:a,validationMessageId:o}=e.useContext(Bp);return{id:n,disabled:r,required:i,"aria-describedby":[o,a].filter(Boolean).join(` `)||void 0,...t}},Hp={root:`clipboard-input`};function Up(t,n){let{required:r,...i}=Vp(t),{className:a,id:o,disabled:s,onFocus:c,...l}=i,{value:u,copied:d,disabled:f,setInputId:p}=e.useContext(Cp),m=Y(o);return Ur(()=>(p?.(m),()=>p?.(void 0)),[m,p]),(0,q.jsx)(Ps,{ref:n,id:m,value:u??``,readOnly:!0,disabled:s??f,onFocus:e=>{c?.(e),!e.defaultPrevented&&e.target.select()},className:G(Hp.root,a),"data-component":`Clipboard.Input`,"data-copied":!!d,...l})}Up.displayName=`Clipboard.Input`;var Wp=K(Up);const Gp={root:`clipboard-label`,disabled:`clipboard-label-disabled`};function Kp(t,n){let{as:r=`label`,className:i,htmlFor:a,...o}=t,{inputId:s,disabled:c}=e.useContext(Cp);return(0,q.jsx)(r,{ref:n,htmlFor:r===`label`?a??s:void 0,className:G(Gp.root,c&&Gp.disabled,i),"data-component":`Clipboard.Label`,"data-disabled":!!c,...o})}Kp.displayName=`Clipboard.Label`;var qp=K(Kp);const Jp={root:`clipboard-trigger`};function Yp(t,n){let{className:r,children:i,label:a=`Copy`,disabled:o,onClick:s,...c}=t,{copied:l,disabled:u,copy:d}=e.useContext(Cp),[f,p]=si(i,{indicator:zp}),m=f.indicator??(0,q.jsx)(zp,{}),h=p.some(e=>e!=null&&e!==!1),g={disabled:o??u,onClick:e=>{s?.(e),!e.defaultPrevented&&d?.()},className:G(Jp.root,r),"data-component":`Clipboard.Trigger`,"data-copied":!!l,...c};return h?(0,q.jsx)($i,{ref:n,leadingVisual:m,...g,children:p}):(0,q.jsx)(na,{ref:n,icon:m,"aria-label":a,...g})}Yp.displayName=`Clipboard.Trigger`;var Xp=K(Yp);const Zp={root:`clipboard-value-text`};function Qp(t,n){let{as:r=`span`,className:i,children:a,...o}=t,{value:s,copied:c}=e.useContext(Cp);return(0,q.jsx)(r,{ref:n,className:G(Zp.root,i),"data-component":`Clipboard.ValueText`,"data-copied":!!c,...o,children:a??s})}Qp.displayName=`Clipboard.ValueText`;var $p=K(Qp);const em=Object.assign(Ap,{Root:Ap,Label:qp,Control:Np,Input:Wp,Trigger:Xp,Indicator:zp,CopyText:Ip,ValueText:$p}),tm={root:`code`};function nm(e,t){let{as:n=`code`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(tm.root,r),"data-component":`Code`,...i})}nm.displayName=`Code`;var rm=K(nm);const im=n({}),am=`text`,om=`github-light`,sm=`github-dark`,cm=e=>e.split(`
11
+ var gn=Me((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),q=Me(((e,t)=>{t.exports=gn()}))();const _n={root:`accordion`};function vn(t,n){let{as:r=`div`,className:i,value:a,defaultValue:o,onChange:s,multiple:c=!1,disabled:l,headingLevel:u=`h3`,keepMounted:d=!0,hiddenUntilFound:f=!1,...p}=t,m=a!==void 0,[h,g]=e.useState(()=>o??[]),_=m?a:h,v=(e,t)=>{if(l||_.includes(e)===t)return;let n=t?c?[..._,e]:[e]:_.filter(t=>t!==e);m||g(n),s?.(n)},y={open:_,setOpen:v,toggle:e=>v(e,!_.includes(e)),disabled:l,headingLevel:u,keepMounted:d,hiddenUntilFound:f};return(0,q.jsx)(hn.Provider,{value:y,children:(0,q.jsx)(r,{ref:n,className:G(_n.root,i),"data-component":`Accordion`,"data-multiple":c,"data-disabled":!!l,...p})})}vn.displayName=`Accordion`;var yn=K(vn);function J(e,n,r){let i=r(),a=Object.keys(i),o=t.forwardRef(({"aria-label":e,"aria-labelledby":r,tabIndex:o,className:s=``,fill:c=`currentColor`,size:l=16,id:u,title:d,style:f,...p},m)=>{let h=l,g=bn(a,h),_=i[g].width,v=_/parseInt(g,10)*h,y=i[g].path,b=e||r,x=b?`img`:void 0,S=`${n} ${s}`.trim();return t.createElement(`svg`,{ref:m,...p,"aria-hidden":b?void 0:`true`,tabIndex:o,focusable:(o??-1)>=0?`true`:`false`,"aria-label":e,"aria-labelledby":r,className:S,role:x,viewBox:`0 0 ${_} ${g}`,width:v,height:h,fill:c,id:u,display:`inline-block`,overflow:`visible`,style:f},d?t.createElement(`title`,null,d):null,y)});return o.displayName=e,o}function bn(e,t){return e.map(e=>parseInt(e,10)).reduce((e,n)=>n<=t?n:e,parseInt(e[0],10)).toString()}const xn=J(`AddRegular`,`icon icon-add-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 3.25a.75.75 0 0 1 .75.75v7.25H20a.75.75 0 0 1 0 1.5h-7.25V20a.75.75 0 0 1-1.5 0v-7.25H4a.75.75 0 0 1 0-1.5h7.25V4a.75.75 0 0 1 .75-.75`})}})),Sn=J(`ArchiveRegular`,`icon icon-archive-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M10.25 11a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5zM3 5.25A2.25 2.25 0 0 1 5.25 3h13.5A2.25 2.25 0 0 1 21 5.25v1.5c0 .78-.397 1.467-1 1.871v8.629A3.75 3.75 0 0 1 16.25 21h-8.5A3.75 3.75 0 0 1 4 17.25V8.621A2.25 2.25 0 0 1 3 6.75zM5.5 9v8.25a2.25 2.25 0 0 0 2.25 2.25h8.5a2.25 2.25 0 0 0 2.25-2.25V9zm-.25-4.5a.75.75 0 0 0-.75.75v1.5c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-1.5a.75.75 0 0 0-.75-.75z`})}})),Cn=J(`ArrowClockwiseRegular`,`icon icon-arrow-clockwise-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 4.5a7.5 7.5 0 1 0 7.419 6.392c-.067-.454.265-.892.724-.892.37 0 .696.256.752.623Q21 11.297 21 12a9 9 0 1 1-3-6.708V4.25a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.47 7.47 0 0 0-5.1-2`})}})),wn=J(`ArrowDownRegular`,`icon icon-arrow-down-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M19.79 13.267a.75.75 0 0 0-1.086-1.034l-5.954 6.251V3.75a.75.75 0 1 0-1.5 0v14.734l-5.955-6.251a.75.75 0 1 0-1.086 1.034l7.067 7.42c.16.168.366.268.58.3a.8.8 0 0 0 .29-.001 1 1 0 0 0 .578-.3z`})}})),Tn=J(`ArrowLeftRegular`,`icon icon-arrow-left-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M10.733 19.79a.75.75 0 0 0 1.034-1.086L5.516 12.75H20.25a.75.75 0 0 0 0-1.5H5.516l6.251-5.955a.75.75 0 0 0-1.034-1.086l-7.42 7.067a1 1 0 0 0-.3.58.8.8 0 0 0 .001.289 1 1 0 0 0 .3.579z`})}})),En=J(`ArrowMaximizeRegular`,`icon icon-arrow-maximize-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M19.25 4a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0V6.56L6.56 18.5h5.69a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 1.5 0v5.69L17.44 5.5h-5.69a.75.75 0 0 1 0-1.5z`})}})),Dn=J(`ArrowMinimizeRegular`,`icon icon-arrow-minimize-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M10.25 13a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-1.5 0v-5.69l-6.22 6.22a.75.75 0 1 1-1.06-1.06l6.22-6.22H2.75a.75.75 0 0 1 0-1.5zM20.72 2.22a.75.75 0 1 1 1.06 1.06L15.56 9.5h5.69a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 1.5 0v5.69z`})}})),On=J(`ArrowMoveRegular`,`icon icon-arrow-move-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M15.28 6.03a.75.75 0 0 1-1.06 0l-1.47-1.47v3.69a.75.75 0 0 1-1.5 0V4.56L9.78 6.03a.75.75 0 0 1-1.06-1.06l2.75-2.75a.75.75 0 0 1 1.06 0l2.75 2.75a.75.75 0 0 1 0 1.06m-9.25 8.19a.75.75 0 1 1-1.06 1.06l-2.75-2.75a.75.75 0 0 1 0-1.06l2.75-2.75a.75.75 0 0 1 1.06 1.06l-1.47 1.47h3.69a.75.75 0 0 1 0 1.5H4.56zm11.94 1.06a.75.75 0 0 1 0-1.06l1.47-1.47h-3.69a.75.75 0 0 1 0-1.5h3.69l-1.47-1.47a.75.75 0 0 1 1.06-1.06l2.75 2.75a.75.75 0 0 1 0 1.06l-2.75 2.75a.75.75 0 0 1-1.06 0m-2.69 2.69a.75.75 0 0 0-1.06 0l-1.47 1.47v-3.69a.75.75 0 0 0-1.5 0v3.69l-1.47-1.47a.75.75 0 0 0-1.06 1.06l2.75 2.75a.75.75 0 0 0 1.06 0l2.75-2.75a.75.75 0 0 0 0-1.06`})}})),kn=J(`ArrowRedoRegular`,`icon icon-arrow-redo-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M19.25 2a.75.75 0 0 0-.743.648l-.007.102v5.69l-4.574-4.56a6.41 6.41 0 0 0-8.878-.179l-.186.18a6.41 6.41 0 0 0 0 9.063l8.845 8.84a.75.75 0 0 0 1.06-1.062l-8.845-8.838a4.91 4.91 0 0 1 6.766-7.112l.178.17L17.438 9.5H11.75a.75.75 0 0 0-.743.648L11 10.25c0 .38.282.694.648.743l.102.007h7.5a.75.75 0 0 0 .743-.648L20 10.25v-7.5a.75.75 0 0 0-.75-.75`})}})),An=J(`ArrowSortDownRegular`,`icon icon-arrow-sort-down-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`m11.65 4.007.1-.007a.75.75 0 0 1 .744.648l.007.102-.001 12.696 3.22-3.221a.75.75 0 0 1 .976-.073l.084.072a.75.75 0 0 1 .073.977l-.072.084-4.497 4.5a.75.75 0 0 1-.976.073l-.084-.073-4.504-4.5a.75.75 0 0 1 .976-1.133l.084.072L11 17.442V4.75a.75.75 0 0 1 .65-.743l.1-.007z`})}})),jn=J(`ArrowSortUpRegular`,`icon icon-arrow-sort-up-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`m6.72 8.715 4.494-4.495a.75.75 0 0 1 .976-.073l.085.072 4.504 4.495a.75.75 0 0 1-.975 1.134l-.084-.072-3.223-3.217v12.696a.75.75 0 0 1-.648.743l-.101.007a.75.75 0 0 1-.743-.648l-.007-.102-.001-12.698L7.78 9.775a.75.75 0 0 1-.976.073l-.084-.073a.75.75 0 0 1-.073-.976zl4.494-4.495z`})}})),Mn=J(`ArrowUndoRegular`,`icon icon-arrow-undo-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M4.75 2a.75.75 0 0 1 .743.648l.007.102v5.69l4.574-4.56a6.41 6.41 0 0 1 8.879-.179l.186.18a6.41 6.41 0 0 1 0 9.063l-8.846 8.84a.75.75 0 0 1-1.06-1.062l8.845-8.838a4.91 4.91 0 0 0-6.766-7.112l-.178.17L6.562 9.5h5.688a.75.75 0 0 1 .743.648l.007.102a.75.75 0 0 1-.648.743L12.25 11h-7.5a.75.75 0 0 1-.743-.648L4 10.25v-7.5A.75.75 0 0 1 4.75 2`})}})),Nn=J(`ArrowUpRegular`,`icon icon-arrow-up-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M4.209 10.733a.75.75 0 0 0 1.086 1.034l5.954-6.251V20.25a.75.75 0 0 0 1.5 0V5.516l5.955 6.251a.75.75 0 0 0 1.087-1.034l-7.067-7.42a1 1 0 0 0-.58-.3.8.8 0 0 0-.29.001 1 1 0 0 0-.578.3z`})}})),Pn=J(`ArrowUploadRegular`,`icon icon-arrow-upload-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M18.25 3.51a.75.75 0 1 0 0-1.5l-13-.004a.75.75 0 1 0 0 1.5zm-6.602 18.488.102.007a.75.75 0 0 0 .743-.649l.007-.101-.001-13.685 3.722 3.72a.75.75 0 0 0 .976.073l.085-.073a.75.75 0 0 0 .072-.977l-.073-.084-4.997-4.996a.75.75 0 0 0-.976-.073l-.085.072L6.22 10.23a.75.75 0 0 0 .976 1.134l.084-.073 3.719-3.713L11 21.255c0 .38.282.693.648.743`})}})),Fn=J(`BranchRegular`,`icon icon-branch-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M4 5.5a3.5 3.5 0 1 1 4.489 3.358 5.5 5.5 0 0 0 5.261 3.892h.33a3.501 3.501 0 0 1 6.92.75 3.5 3.5 0 0 1-6.92.75h-.33a6.99 6.99 0 0 1-5.5-2.67v3.5A3.501 3.501 0 0 1 7.5 22a3.5 3.5 0 0 1-.75-6.92V8.92A3.5 3.5 0 0 1 4 5.5m3.5-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 13a2 2 0 1 0 0 4 2 2 0 0 0 0-4m8-3a2 2 0 1 0 4 0 2 2 0 0 0-4 0`})}})),In=J(`CalendarLtrRegular`,`icon icon-calendar-ltr-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M17.75 3A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3zm1.75 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h11.5a1.75 1.75 0 0 0 1.75-1.75zm-11.75 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m-4.25-4a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m4.25 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m1.5-6H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75`})}})),Ln=J(`CheckmarkCircleRegular`,`icon icon-checkmark-circle-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-1.25 9.94 4.47-4.47a.75.75 0 0 1 1.133.976l-.073.084-5 5a.75.75 0 0 1-.976.073l-.084-.073-2.5-2.5a.75.75 0 0 1 .976-1.133l.084.073zl4.47-4.47z`})}})),Rn=J(`CheckmarkRegular`,`icon icon-checkmark-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M4.53 12.97a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l11-11a.75.75 0 0 0-1.06-1.06L8.5 16.94z`})}})),zn=J(`ChevronDownRegular`,`icon icon-chevron-down-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M4.22 8.47a.75.75 0 0 1 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06`})}})),Bn=J(`ChevronLeftRegular`,`icon icon-chevron-left-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0`})}})),Vn=J(`ChevronRightRegular`,`icon icon-chevron-right-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M8.47 4.22a.75.75 0 0 0 0 1.06L15.19 12l-6.72 6.72a.75.75 0 1 0 1.06 1.06l7.25-7.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0`})}})),Hn=J(`ChevronUpRegular`,`icon icon-chevron-up-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M4.22 15.53a.75.75 0 0 0 1.06 0L12 8.81l6.72 6.72a.75.75 0 1 0 1.06-1.06l-7.25-7.25a.75.75 0 0 0-1.06 0l-7.25 7.25a.75.75 0 0 0 0 1.06`})}})),Un=J(`CircleHintRegular`,`icon icon-circle-hint-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M7.59 3.963c-.172-.414-.666-.591-1.041-.347a10.05 10.05 0 0 0-2.93 2.931c-.246.376-.069.87.345 1.04.355.147.76.004.973-.315a8.6 8.6 0 0 1 2.337-2.337c.319-.213.462-.618.315-.972m2.758-.302c-.377.074-.765-.11-.911-.465-.172-.414.052-.888.49-.98a10 10 0 0 1 4.146-.001c.439.092.663.566.491.98a.806.806 0 0 1-.91.465 8.5 8.5 0 0 0-3.306.001m9.69 3.925c-.354.147-.758.003-.972-.315a8.6 8.6 0 0 0-2.339-2.338c-.318-.213-.462-.618-.315-.972.171-.414.665-.591 1.04-.347 1.17.762 2.17 1.762 2.933 2.931.245.376.068.87-.347 1.041m.768 6.978c-.354-.147-.539-.535-.465-.911a8.6 8.6 0 0 0 0-3.309c-.075-.376.11-.764.465-.91.413-.172.887.051.98.49a10 10 0 0 1 0 4.15c-.092.438-.566.661-.98.49m-4.393 5.474c-.147-.354-.003-.759.315-.972a8.6 8.6 0 0 0 2.34-2.34c.213-.318.618-.461.972-.315.414.172.591.665.347 1.04a10.05 10.05 0 0 1-2.934 2.934c-.375.244-.869.067-1.04-.347m-6.978.766c.147-.355.535-.54.911-.465a8.5 8.5 0 0 0 3.309 0c.376-.074.764.111.91.465.172.414-.052.889-.49.98a10 10 0 0 1-4.15 0c-.438-.092-.661-.566-.49-.98M3.963 16.41c.354-.147.759-.003.972.315a8.6 8.6 0 0 0 2.338 2.34c.318.213.462.618.315.972-.171.414-.665.59-1.04.346a10.05 10.05 0 0 1-2.932-2.933c-.244-.375-.067-.869.347-1.04m-.765-6.975c.354.147.539.535.465.91a8.5 8.5 0 0 0 0 3.306c.073.376-.112.764-.466.91-.414.172-.888-.051-.98-.49a10 10 0 0 1 0-4.146c.093-.438.567-.662.98-.49`})}})),Wn=J(`CircleRegular`,`icon icon-circle-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12`})}})),Gn=J(`CircleSmallRegular`,`icon icon-circle-small-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 9.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M8 12a4 4 0 1 1 8 0 4 4 0 0 1-8 0`})}})),Kn=J(`ClockRegular`,`icon icon-clock-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m-.007 4.648a.75.75 0 0 0-1.493.102v6l.007.102a.75.75 0 0 0 .743.648h4l.102-.007A.75.75 0 0 0 15.25 12H12V6.75z`})}})),qn=J(`CodeRegular`,`icon icon-code-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`m8.066 18.943 6.5-14.5a.75.75 0 0 1 1.404.518l-.036.096-6.5 14.5a.75.75 0 0 1-1.404-.518zl6.5-14.5zM2.22 11.47l4.25-4.25a.75.75 0 0 1 1.133.976l-.073.085L3.81 12l3.72 3.719a.75.75 0 0 1-.976 1.133l-.084-.073-4.25-4.25a.75.75 0 0 1-.073-.976zl4.25-4.25zm14.25-4.25a.75.75 0 0 1 .976-.073l.084.073 4.25 4.25a.75.75 0 0 1 .073.976l-.073.085-4.25 4.25a.75.75 0 0 1-1.133-.977l.073-.084L20.19 12l-3.72-3.72a.75.75 0 0 1 0-1.06`})}})),Jn=J(`CopyRegular`,`icon icon-copy-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M8.5 8.5H6.25a1.75 1.75 0 0 0-1.75 1.75v7.5c0 .966.784 1.75 1.75 1.75h5c.882 0 1.61-.652 1.73-1.5h1.51a3.25 3.25 0 0 1-3.24 3h-5A3.25 3.25 0 0 1 3 17.75v-7.5A3.25 3.25 0 0 1 6.25 7H8.5zM17.75 3A3.25 3.25 0 0 1 21 6.25v7.5A3.25 3.25 0 0 1 17.75 17h-5a3.25 3.25 0 0 1-3.25-3.25v-7.5A3.25 3.25 0 0 1 12.75 3zm-5 1.5A1.75 1.75 0 0 0 11 6.25v7.5c0 .966.784 1.75 1.75 1.75h5a1.75 1.75 0 0 0 1.75-1.75v-7.5a1.75 1.75 0 0 0-1.75-1.75z`})}})),Yn=J(`DismissCircleRegular`,`icon icon-dismiss-circle-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m3.446 4.897.084.073a.75.75 0 0 1 .073.976l-.073.084L13.061 12l2.47 2.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-2.47 2.47a.75.75 0 0 1-.976.072l-.084-.073a.75.75 0 0 1-.073-.976l.073-.084L10.939 12l-2.47-2.47a.75.75 0 0 1-.072-.976l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l2.47-2.47a.75.75 0 0 1 .976-.072`})}})),Xn=J(`DismissRegular`,`icon icon-dismiss-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`m4.397 4.554.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l6.47-6.47a.75.75 0 1 1 1.06 1.061L13.061 12l6.47 6.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-6.47 6.47a.75.75 0 0 1-1.06-1.061L10.939 12l-6.47-6.47a.75.75 0 0 1-.072-.976l.073-.084z`})}})),Zn=J(`DocumentRegular`,`icon icon-document-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 12.172 2zm-.5 2a.5.5 0 0 1 .5-.5h6V8a2 2 0 0 0 2 2h4.5v10a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5zm11.88 4.5H14a.5.5 0 0 1-.5-.5V4.62z`})}})),Qn=J(`ErrorCircleRegular`,`icon icon-error-circle-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17m-.001 11.002a.999.999 0 1 1-.001 1.997.999.999 0 0 1 .001-1.997M11.994 7a.75.75 0 0 1 .744.647l.007.102.004 4.502a.75.75 0 0 1-1.493.103l-.007-.102-.004-4.501a.75.75 0 0 1 .75-.751`})}})),$n=J(`EyeOffRegular`,`icon icon-eye-off-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M2.22 2.22a.75.75 0 0 0-.073.976l.073.084 4.034 4.035a10 10 0 0 0-3.955 5.75.75.75 0 0 0 1.455.364 8.5 8.5 0 0 1 3.58-5.034l1.81 1.81A4 4 0 0 0 14.8 15.86l5.919 5.92a.75.75 0 0 0 1.133-.977l-.073-.084-6.113-6.114.001-.002-1.2-1.198-2.87-2.87h.002l-2.88-2.877.001-.002-1.133-1.13L3.28 2.22a.75.75 0 0 0-1.06 0m7.984 9.045 3.535 3.536a2.5 2.5 0 0 1-3.535-3.535M12 5.5c-1 0-1.97.148-2.889.425l1.237 1.236a8.503 8.503 0 0 1 9.899 6.272.75.75 0 0 0 1.455-.363A10 10 0 0 0 12 5.5m.195 3.51 3.801 3.8a4.003 4.003 0 0 0-3.801-3.8`})}})),er=J(`EyeRegular`,`icon icon-eye-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 9.005a4 4 0 1 1 0 8 4 4 0 0 1 0-8m0 1.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M12 5.5c4.613 0 8.596 3.15 9.701 7.564a.75.75 0 1 1-1.455.365 8.504 8.504 0 0 0-16.493.004.75.75 0 0 1-1.456-.363A10 10 0 0 1 12 5.5`})}})),tr=J(`FilterDismissRegular`,`icon icon-filter-dismiss-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M23 7.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-7.146-2.354a.5.5 0 0 0-.708.708L16.793 7.5l-1.647 1.646a.5.5 0 0 0 .708.708L17.5 8.207l1.646 1.647a.5.5 0 0 0 .708-.708L18.207 7.5l1.647-1.646a.5.5 0 0 0-.708-.708L17.5 6.793zM13.346 12.5a6.5 6.5 0 0 1-1.324-1.5H7.5a.75.75 0 0 0 0 1.5zM11 7.5q.002-.776.174-1.5H4.5a.75.75 0 0 0 0 1.5zm2.5 8.5a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5z`})}})),nr=J(`FolderOpenRegular`,`icon icon-folder-open-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3.5 6.25c0-.966.784-1.75 1.75-1.75h2.88a.75.75 0 0 1 .53.22l2.06 2.06c.142.141.332.22.531.22h5.5c.967 0 1.75.784 1.75 1.75q.001.13.041.246H8.72a3.75 3.75 0 0 0-3.25 1.874L3.5 14.283zM2 17.788A3.25 3.25 0 0 0 5.25 21H11q.044 0 .086-.005h5.195a3.75 3.75 0 0 0 3.248-1.875l3.03-5.25c1.216-2.104-.225-4.72-2.602-4.868A.8.8 0 0 0 20 8.75a3.25 3.25 0 0 0-3.25-3.25h-5.19L9.72 3.659A2.25 2.25 0 0 0 8.129 3H5.25A3.25 3.25 0 0 0 2 6.25zm6.719-7.292h11.026c1.347 0 2.19 1.458 1.515 2.625l-3.03 5.25a2.25 2.25 0 0 1-1.949 1.124H5.255c-1.347 0-2.19-1.458-1.516-2.625l3.031-5.25a2.25 2.25 0 0 1 1.949-1.124`})}})),rr=J(`FolderRegular`,`icon icon-folder-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3.5 6.25V8h4.629a.75.75 0 0 0 .53-.22l1.53-1.53-1.53-1.53a.75.75 0 0 0-.53-.22H5.25A1.75 1.75 0 0 0 3.5 6.25m-1.5 0A3.25 3.25 0 0 1 5.25 3h2.879a2.25 2.25 0 0 1 1.59.659L11.562 5.5h7.189A3.25 3.25 0 0 1 22 8.75v9A3.25 3.25 0 0 1 18.75 21H5.25A3.25 3.25 0 0 1 2 17.75zM3.5 9.5v8.25c0 .966.784 1.75 1.75 1.75h13.5a1.75 1.75 0 0 0 1.75-1.75v-9A1.75 1.75 0 0 0 18.75 7h-7.19L9.72 8.841a2.25 2.25 0 0 1-1.591.659z`})}})),ir=J(`InfoRegular`,`icon icon-info-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12.002 1.999c5.523 0 10.001 4.478 10.001 10.002 0 5.523-4.478 10.001-10.001 10.001C6.478 22.002 2 17.524 2 12.001 2 6.477 6.478 1.999 12.002 1.999m0 1.5a8.502 8.502 0 1 0 0 17.003 8.502 8.502 0 0 0 0-17.003M12 10.5a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75M12 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2`})}})),ar=J(`LayerRegular`,`icon icon-layer-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M20.026 12.192a2 2 0 0 1-.577.598l-6.05 4.084a2.5 2.5 0 0 1-2.798 0l-6.05-4.084a2 2 0 0 1-.779-2.29l6.841 4.56a2.5 2.5 0 0 0 2.613.098l.16-.098 6.841-4.56a2 2 0 0 1-.201 1.692m.201 1.558a1.996 1.996 0 0 1-.778 2.29l-6.05 4.084a2.5 2.5 0 0 1-2.798 0l-6.05-4.084a2 2 0 0 1-.779-2.29l6.841 4.56a2.5 2.5 0 0 0 2.613.098l.16-.098zm-6.84-10.325 6.365 4.243a1 1 0 0 1 0 1.664l-6.365 4.244a2.5 2.5 0 0 1-2.774 0L4.248 9.332a1 1 0 0 1 0-1.664l6.365-4.243a2.5 2.5 0 0 1 2.774 0M11.56 4.606l-.116.067L5.705 8.5l5.74 3.828a1 1 0 0 0 .994.066l.116-.066L18.294 8.5l-5.74-3.827a1 1 0 0 0-.993-.067`})}})),or=J(`LineRegular`,`icon icon-line-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M21.784 2.22a.75.75 0 0 1 0 1.06L3.28 21.784a.75.75 0 1 1-1.06-1.06L20.723 2.22a.75.75 0 0 1 1.06 0`})}})),sr=J(`LinkRegular`,`icon icon-link-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M9.25 7a.75.75 0 0 1 .11 1.492l-.11.008H7a3.5 3.5 0 0 0-.206 6.994L7 15.5h2.25a.75.75 0 0 1 .11 1.492L9.25 17H7a5 5 0 0 1-.25-9.994L7 7zM17 7a5 5 0 0 1 .25 9.994L17 17h-2.25a.75.75 0 0 1-.11-1.492l.11-.008H17a3.5 3.5 0 0 0 .206-6.994L17 8.5h-2.25a.75.75 0 0 1-.11-1.492L14.75 7zM7 11.25h10a.75.75 0 0 1 .102 1.493L17 12.75H7a.75.75 0 0 1-.102-1.493zh10z`})}})),cr=J(`MergeRegular`,`icon icon-merge-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3 6.75A.75.75 0 0 1 3.75 6h3.257A3.75 3.75 0 0 1 9.66 7.098l2.95 2.95a3.25 3.25 0 0 0 2.298.952h4.53L15.72 7.28a.75.75 0 1 1 1.06-1.06l4.999 5a.75.75 0 0 1 0 1.06l-4.999 5a.75.75 0 1 1-1.06-1.06l3.718-3.72h-4.47a3.25 3.25 0 0 0-2.357 1.012l-2.68 2.82A3.75 3.75 0 0 1 7.212 17.5H3.75a.75.75 0 0 1 0-1.5h3.462a2.25 2.25 0 0 0 1.631-.7l2.68-2.822q.388-.406.853-.709a4.8 4.8 0 0 1-.828-.66l-2.95-2.95a2.25 2.25 0 0 0-1.59-.659H3.75A.75.75 0 0 1 3 6.75`})}})),lr=J(`MoreHorizontalRegular`,`icon icon-more-horizontal-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M7.75 12a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0m6 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0M18 13.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5`})}})),ur=J(`PauseRegular`,`icon icon-pause-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M6.25 3A2.25 2.25 0 0 0 4 5.25v13.5A2.25 2.25 0 0 0 6.25 21h2.5A2.25 2.25 0 0 0 11 18.75V5.25A2.25 2.25 0 0 0 8.75 3zM5.5 5.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75zM15.25 3A2.25 2.25 0 0 0 13 5.25v13.5A2.25 2.25 0 0 0 15.25 21h2.5A2.25 2.25 0 0 0 20 18.75V5.25A2.25 2.25 0 0 0 17.75 3zm-.75 2.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 .75.75v13.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75z`})}})),dr=J(`PlayRegular`,`icon icon-play-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M7.608 4.615a.75.75 0 0 0-1.108.659v13.452a.75.75 0 0 0 1.108.659l12.362-6.726a.75.75 0 0 0 0-1.318zM5 5.274c0-1.707 1.826-2.792 3.325-1.977l12.362 6.727c1.566.852 1.566 3.1 0 3.952L8.325 20.702C6.826 21.518 5 20.432 5 18.726z`})}})),fr=J(`ProhibitedRegular`,`icon icon-prohibited-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m6.517 4.543L6.543 18.517A8.5 8.5 0 0 0 18.517 6.543M12 3.5a8.5 8.5 0 0 0-6.517 13.957L17.457 5.483A8.47 8.47 0 0 0 12 3.5`})}})),pr=J(`RecordRegular`,`icon icon-record-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12m0-16C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2M3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0`})}})),mr=J(`SearchRegular`,`icon icon-search-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M16.102 17.162a8 8 0 1 1 1.06-1.06l4.618 4.618a.75.75 0 1 1-1.06 1.06zM17.5 11a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0`})}})),hr=J(`ShapesRegular`,`icon icon-shapes-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M8.75 3.5A5.25 5.25 0 0 0 8 13.947v1.512A6.751 6.751 0 1 1 15.459 8h-1.512A5.25 5.25 0 0 0 8.75 3.5m3.5 5.5A3.25 3.25 0 0 0 9 12.25v6.5A3.25 3.25 0 0 0 12.25 22h6.5A3.25 3.25 0 0 0 22 18.75v-6.5A3.25 3.25 0 0 0 18.75 9zm-1.75 3.25c0-.966.784-1.75 1.75-1.75h6.5c.966 0 1.75.784 1.75 1.75v6.5a1.75 1.75 0 0 1-1.75 1.75h-6.5a1.75 1.75 0 0 1-1.75-1.75z`})}})),gr=J(`ShieldCheckmarkRegular`,`icon icon-shield-checkmark-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11q0 .507-.04.996a6.5 6.5 0 0 0-1.465-.684q.005-.155.005-.312V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.149 2.332 7.221 7.125 9.285a6.5 6.5 0 0 0 1.005 1.52l-.355.143a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zM23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0m-2.146-2.354a.5.5 0 0 0-.708 0L16.5 18.793l-1.646-1.647a.5.5 0 0 0-.708.708l2 2a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708`})}})),_r=J(`ShieldDismissRegular`,`icon icon-shield-dismiss-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M12.45 2.15C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11V5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0M12 3.678c-2.42 1.71-4.923 2.648-7.5 2.8V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8M9.28 8.222l2.724 2.723 2.725-2.723a.75.75 0 0 1 .975-.073l.084.073a.75.75 0 0 1 .073.975l-.073.084-2.724 2.723 2.724 2.725a.749.749 0 1 1-1.06 1.059l-2.724-2.724-2.723 2.724a.75.75 0 0 1-.975.073l-.084-.073a.75.75 0 0 1-.073-.975l.073-.084 2.723-2.725-2.723-2.723A.75.75 0 0 1 9.28 8.22`})}})),vr=J(`ShieldErrorRegular`,`icon icon-shield-error-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M20.25 5c-2.663 0-5.258-.943-7.8-2.85a.75.75 0 0 0-.9 0C9.008 4.057 6.413 5 3.75 5a.75.75 0 0 0-.75.75V11c0 5.001 2.958 8.676 8.725 10.948a.75.75 0 0 0 .55 0C18.042 19.676 21 16 21 11V5.75a.75.75 0 0 0-.75-.75M4.5 6.478c2.577-.152 5.08-1.09 7.5-2.8 2.42 1.71 4.923 2.648 7.5 2.8V11c0 4.256-2.453 7.379-7.5 9.442C6.953 18.379 4.5 15.256 4.5 11zm8.243 1.174a.75.75 0 0 0-1.493.102v6.498l.007.102a.75.75 0 0 0 1.493-.102V7.754zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2`})}})),yr=J(`ShieldRegular`,`icon icon-shield-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3 5.75A.75.75 0 0 1 3.75 5c2.663 0 5.258-.943 7.8-2.85a.75.75 0 0 1 .9 0C14.992 4.057 17.587 5 20.25 5a.75.75 0 0 1 .75.75V11c0 5.001-2.958 8.676-8.725 10.948a.75.75 0 0 1-.55 0C5.958 19.676 3 16 3 11zm1.5.728V11c0 4.256 2.453 7.379 7.5 9.442 5.047-2.063 7.5-5.186 7.5-9.442V6.478c-2.577-.152-5.08-1.09-7.5-2.8-2.42 1.71-4.923 2.648-7.5 2.8`})}})),br=J(`SubtractRegular`,`icon icon-subtract-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3.754 12.5h16.492a.75.75 0 0 0 0-1.5H3.754a.75.75 0 0 0 0 1.5`})}})),xr=J(`TextBoldRegular`,`icon icon-text-bold-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M6.935 4.44A1.5 1.5 0 0 1 7.996 4h4.384C15.016 4 17 6.182 17 8.625a4.63 4.63 0 0 1-.866 2.682c1.077.827 1.866 2.12 1.866 3.813 0 3.112-2.7 4.88-4.88 4.88H8a1.5 1.5 0 0 1-1.5-1.5l-.004-13c0-.397.158-.779.44-1.06M9.5 10.25h2.88c.903 0 1.62-.76 1.62-1.625S13.282 7 12.38 7H9.498zm0 3V17h3.62c.874 0 1.88-.754 1.88-1.88 0-1.13-.974-1.87-1.88-1.87z`})}})),Sr=J(`TextBulletListLtrRegular`,`icon icon-text-bullet-list-ltr-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M3.25 17.5a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh14.5zm-3.5-7a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493L21.25 13H6.75a.75.75 0 0 1-.102-1.493zh14.5zm-3.5-7a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499m3.5.5h14.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh14.5z`})}})),Cr=J(`TextHeader_1Regular`,`icon icon-text-header-1-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M19.59 5.082a.75.75 0 0 0-.809.083.75.75 0 0 0-.249.367c-.69 2.051-2.057 3.409-3.168 4.075a.75.75 0 0 0 .772 1.286c.774-.464 1.623-1.18 2.364-2.146v9.503a.75.75 0 0 0 1.5 0V5.772a.75.75 0 0 0-.41-.69M3.5 5.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V12.5H10v5.75a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-1.5 0V11H3.5z`})}})),wr=J(`TextHeader_2Regular`,`icon icon-text-header-2-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M10.75 5a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-1.5 0V12.5H3.5v5.75a.75.75 0 0 1-1.5 0V5.75a.75.75 0 0 1 1.5 0V11H10V5.75a.75.75 0 0 1 .75-.75m7-.5A4.25 4.25 0 0 1 22 8.75c0 1.299-.545 2.3-1.29 3.115-.722.79-1.673 1.45-2.524 2.058-1.554 1.11-2.799 2.084-3.11 3.577h6.174a.75.75 0 0 1 0 1.5h-7a.75.75 0 0 1-.75-.75c0-2.812 2.114-4.333 3.814-5.548.899-.642 1.698-1.201 2.288-1.848.568-.622.898-1.278.898-2.104a2.75 2.75 0 0 0-5.473-.393.75.75 0 0 1-1.484-.211A4.25 4.25 0 0 1 17.75 4.5`})}})),Tr=J(`TextHeader_3Regular`,`icon icon-text-header-3-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M17.751 4.5c2.321 0 4.25 1.822 4.25 4.125 0 1.407-.721 2.633-1.81 3.375 1.089.742 1.81 1.968 1.81 3.375 0 2.303-1.929 4.125-4.25 4.125-.85 0-1.715-.243-2.447-.654-.73-.41-1.38-1.015-1.735-1.782a.75.75 0 0 1 1.362-.63c.19.412.578.808 1.106 1.104a3.6 3.6 0 0 0 1.714.462c1.544 0 2.75-1.2 2.75-2.625 0-1.424-1.206-2.625-2.75-2.625H16.75a.75.75 0 0 1 0-1.5h1.001c1.544 0 2.75-1.2 2.75-2.625 0-1.424-1.206-2.625-2.75-2.625-.575 0-1.19.167-1.714.462-.528.296-.915.692-1.106 1.104a.75.75 0 0 1-1.362-.63c.355-.767 1.005-1.372 1.735-1.782A5.1 5.1 0 0 1 17.75 4.5m-7 .5a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-1.5 0V12.5H3.5v5.75a.75.75 0 0 1-1.5 0V5.75a.75.75 0 0 1 1.5 0V11H10V5.75a.75.75 0 0 1 .75-.75`})}})),Er=J(`TextItalicRegular`,`icon icon-text-italic-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M18.75 4a.75.75 0 0 1 0 1.5h-3.482l-4.932 13h3.414a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5h3.482l4.932-13H10.25a.75.75 0 0 1 0-1.5z`})}})),Dr=J(`TextNumberListLtrRegular`,`icon icon-text-number-list-ltr-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M6 2.75a.75.75 0 0 0-1.434-.307l-.002.003-.011.024-.056.108a4 4 0 0 1-.238.385c-.217.312-.524.662-.906.901a.75.75 0 1 0 .794 1.272q.188-.117.353-.248V7.25a.75.75 0 1 0 1.5 0zm14.5 16a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75m0-6.506a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75m0-6.494a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75M5.15 10.52c-.3-.053-.676.066-.87.26a.75.75 0 0 1-1.06-1.06c.556-.556 1.43-.812 2.192-.677.397.07.805.254 1.115.605.316.358.473.825.473 1.352 0 .62-.271 1.08-.606 1.42-.278.283-.63.511-.906.689l-.08.051a6 6 0 0 0-.481.34H6.25a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75c0-1.313.984-1.953 1.575-2.337l.06-.04c.318-.205.533-.345.69-.504.134-.136.175-.238.175-.369 0-.223-.061-.318-.098-.36a.42.42 0 0 0-.251-.12M2.97 21.28s.093.084.004.005l.006.005.013.013a1.4 1.4 0 0 0 .15.125c.095.071.227.158.397.243.341.17.83.33 1.46.33.64 0 1.196-.182 1.601-.54.408-.36.61-.858.595-1.36a1.78 1.78 0 0 0-.426-1.1c.259-.306.412-.686.426-1.102a1.73 1.73 0 0 0-.595-1.36C6.196 16.182 5.64 16 5 16c-.63 0-1.119.158-1.46.33a2.6 2.6 0 0 0-.51.334l-.037.033-.013.013-.006.005-.002.003H2.97l-.001.002a.75.75 0 0 0 1.048 1.072l.026-.02a1 1 0 0 1 .166-.101c.159-.08.42-.17.79-.17.36 0 .536.099.608.163a.23.23 0 0 1 .088.187.33.33 0 0 1-.123.23c-.089.078-.263.17-.573.17a.75.75 0 0 0 0 1.5c.31 0 .484.09.573.167.091.08.121.166.123.231a.23.23 0 0 1-.088.188c-.072.063-.247.163-.608.163a1.75 1.75 0 0 1-.79-.17 1 1 0 0 1-.192-.122.75.75 0 0 0-1.048 1.072m.002-4.562c.007-.005.2-.166 0 0`})}})),Or=J(`TextQuoteRegular`,`icon icon-text-quote-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M8 5a3 3 0 0 1 2.997 2.916l.006.084c0 2.933-1.067 5.382-2.113 7.081a16 16 0 0 1-1.446 1.985 12 12 0 0 1-.664.714l-.011.012-.004.003-.001.002a.75.75 0 0 1-1.027-1.094l.005-.005.028-.026.113-.115c.1-.104.246-.26.423-.467.354-.414.83-1.023 1.306-1.796a13 13 0 0 0 1.526-3.519A3 3 0 1 1 8 5m8 0a3 3 0 0 1 2.997 2.916l.006.084c0 2.933-1.067 5.382-2.113 7.081a16 16 0 0 1-1.446 1.985 12 12 0 0 1-.664.714l-.011.012-.004.003-.001.002a.75.75 0 0 1-1.027-1.094l.005-.005.027-.026.114-.115c.1-.104.246-.26.423-.467.354-.414.83-1.023 1.306-1.796a13 13 0 0 0 1.526-3.519A3 3 0 1 1 16 5M8 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m8 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3`})}})),kr=J(`TextStrikethroughRegular`,`icon icon-text-strikethrough-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M4.75 12h14.5a.75.75 0 0 1 .102 1.493l-.101.007h-2.975c.88.813 1.336 1.793 1.336 2.935 0 2.825-3.232 4.64-6.754 4.23-2.235-.26-3.809-1.155-4.635-2.702a.75.75 0 0 1 1.323-.707c.57 1.068 1.702 1.712 3.485 1.92 2.743.318 5.081-.995 5.081-2.741 0-1.172-.805-2.127-2.565-2.886l-.116-.049H4.75a.75.75 0 0 1-.743-.648L4 12.75a.75.75 0 0 1 .648-.743zh14.5zm1.511-3.877c.152-2.83 2.822-4.468 6.324-4.061 2.188.254 3.863 1.053 4.982 2.409a.75.75 0 1 1-1.157.955c-.852-1.033-2.17-1.662-3.999-1.874-2.717-.316-4.65.804-4.65 2.571 0 .772.234 1.348.83 1.982l.128.132c.094.096.197.195.25.24l.031.02H7.08l-.024-.038c-.143-.206-.856-1.195-.795-2.336`})}})),Ar=J(`TextUnderlineRegular`,`icon icon-text-underline-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M6.75 19h10.5a.75.75 0 0 1 .102 1.493l-.102.007H6.75a.75.75 0 0 1-.102-1.493zh10.5zm10.5-15a.75.75 0 0 1 .743.648L18 4.75v6c0 4.394-2.063 6.75-6.003 6.75-3.855 0-5.91-2.255-5.994-6.466L6 10.75v-6a.75.75 0 0 1 1.493-.102l.007.102v6C7.496 14.358 8.933 16 11.997 16c2.985 0 4.428-1.56 4.5-4.976l.003-.274v-6a.75.75 0 0 1 .75-.75`})}})),jr=J(`WarningRegular`,`icon icon-warning-regular`,()=>({24:{width:24,path:t.createElement(`path`,{d:`M9.138 3.707c1.228-2.276 4.494-2.276 5.721 0l6.743 12.502c1.168 2.165-.4 4.792-2.86 4.793H5.255c-2.46 0-4.028-2.628-2.86-4.793zm4.4.712c-.66-1.225-2.419-1.225-3.08 0L3.715 16.921a1.75 1.75 0 0 0 1.54 2.581h13.487a1.75 1.75 0 0 0 1.54-2.581zM12 15a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-7.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 12 7.5`})}})),Mr=n({}),Nr={heading:`accordion-header`,button:`accordion-header-button`,disabled:`accordion-header-button-disabled`,label:`min-w-0`,indicator:`accordion-header-indicator`,indicatorOpen:`rotate-180`};function Pr(t,n){let{className:r,children:i,headingLevel:a,...o}=t,{headingLevel:s}=e.useContext(hn),{headerId:c,panelId:l,isOpen:u,disabled:d,isPanelPresent:f,toggle:p}=e.useContext(Mr);return(0,q.jsx)(a??s??`h3`,{className:Nr.heading,"data-component":`Accordion.Header`,children:(0,q.jsxs)(`button`,{ref:n,type:`button`,id:c,className:G(Nr.button,d&&Nr.disabled,r),onClick:p,disabled:d,"aria-expanded":!!u,"aria-controls":f?l:void 0,"data-component":`Accordion.HeaderButton`,"data-open":!!u,...o,children:[(0,q.jsx)(`span`,{className:Nr.label,children:i}),(0,q.jsx)(zn,{className:G(Nr.indicator,u&&Nr.indicatorOpen),"aria-hidden":`true`})]})})}Pr.displayName=`Accordion.Header`;var Fr=K(Pr);const Y=e=>{let t=c();return e||t},Ir={root:`accordion-item`};function Lr(t,n){let{as:r=`div`,className:i,value:a,disabled:o,...s}=t,{open:c,setOpen:l,toggle:u,disabled:d,keepMounted:f,hiddenUntilFound:p}=e.useContext(hn),m=Y(),h=a??m,g=c?.includes(h)??!1,_=o??d??!1,[v,y]=e.useState(!0),b={headerId:`${m}-header`,panelId:`${m}-panel`,isOpen:g,disabled:_,keepMounted:f,hiddenUntilFound:p,isPanelPresent:v,setPanelPresent:y,setOpen:e=>l?.(h,e),toggle:()=>u?.(h)};return(0,q.jsx)(Mr.Provider,{value:b,children:(0,q.jsx)(r,{ref:n,className:G(Ir.root,i),"data-component":`Accordion.Item`,"data-value":h,"data-open":g,"data-disabled":_,...s})})}Lr.displayName=`Accordion.Item`;var Rr=K(Lr);const zr=!!(typeof window<`u`&&window.document&&window.document.createElement),Br=p.split(`.`),Vr=parseInt(Br[0],10),Hr=/^0\.0\.0-experimental-[a-f0-9]{8}-\d{8}$/.test(p),Ur=zr?l:s,Wr=Vr>=19||Hr,Gr=(e,t)=>a(n=>{let r=Kr(e,n),i=Kr(t,n);if(Wr)return()=>{r?r():Kr(e,null),i?i():Kr(t,null)}},[e,t]),Kr=(e,t)=>{if(typeof e==`function`)return e(t);e&&(e.current=t)},qr={root:`accordion-panel`};function Jr(t,n){let{as:r=`div`,className:i,...a}=t,{headerId:o,panelId:s,isOpen:c,keepMounted:l,hiddenUntilFound:u,setOpen:d,setPanelPresent:f}=e.useContext(Mr),p=e.useRef(null),m=Gr(n,p),h=(l??!0)||!!u||!!c;return Ur(()=>(f?.(h),()=>f?.(!1)),[h,f]),Ur(()=>{let e=p.current;!e||!c||e.style.setProperty(`--accordion-panel-height`,`${e.scrollHeight}px`)},[c]),Ur(()=>{let e=p.current;!e||!u||c||e.setAttribute(`hidden`,`until-found`)},[u,c]),e.useEffect(()=>{let e=p.current;if(!e||!u)return;let t=()=>d?.(!0);return e.addEventListener(`beforematch`,t),()=>e.removeEventListener(`beforematch`,t)},[u,d]),h?(0,q.jsx)(r,{ref:m,id:s,hidden:!c,role:`region`,"aria-labelledby":o,className:G(qr.root,i),"data-component":`Accordion.Panel`,"data-open":!!c,...a}):null}Jr.displayName=`Accordion.Panel`;var Yr=K(Jr);const Xr=Object.assign(yn,{Item:Rr,Header:Fr,Panel:Yr}),Zr=[`[disabled]`,`[hidden]`,`[inert]`,`[tabindex='-1']`],Qr=[`a[href]`,`button`,`summary`,`select`,`input:not([type=hidden])`,`textarea`,`[tabindex='0']`,`audio[controls]`,`video[controls]`,`[contenteditable]`].map(e=>`${e}:not(${Zr.join(`):not(`)})`).join(`, `),$r=e=>{if(e.matches(`[disabled], [hidden], [inert]`))return!0;let t=getComputedStyle(e);return t.display===`none`||t.visibility===`hidden`},ei=e=>!e||$r(e)?[]:Array.from(e.querySelectorAll(Qr)).filter(e=>!$r(e)),ti=e=>ei(e).length>0,ni={vertical:{previous:`ArrowUp`,next:`ArrowDown`},horizontal:{previous:`ArrowLeft`,next:`ArrowRight`}},ri=({containerRef:e,direction:t=`vertical`,wrap:n=!1,disabled:r,focusableFilter:i})=>{s(()=>{let a=e.current;if(!a||r)return;let{previous:o,next:s}=ni[t],c=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;let t=e.key===`End`,r=e.key===`Home`,c=e.key===s?1:e.key===o?-1:0;if(c===0&&!r&&!t)return;let l=ei(a).filter(e=>i?.(e)??!0);if(l.length===0)return;if(e.preventDefault(),r||t){l[r?0:l.length-1].focus();return}let u=l.indexOf(document.activeElement),d=u===-1?0:u+c;if(d>=0&&d<l.length){l[d].focus();return}n&&l[(d+l.length)%l.length].focus()};return a.addEventListener(`keydown`,c),()=>{a.removeEventListener(`keydown`,c)}},[e,t,n,r,i])},ii=(e,t)=>{let n=typeof e;if(n!==`object`&&n!==`function`&&e!==null)return!1;let r=e,i=r.__SLOT__??r.type?.__SLOT__;return t.__SLOT__?i===t.__SLOT__:!1},ai=(e,t)=>(t.__SLOT__&&(e.__SLOT__=t.__SLOT__),e),oi=(e,t)=>{if(Array.isArray(t)){let[n,r]=t;return(e.type===n||ii(e,n))&&r(e.props)}return e.type===t||ii(e,t)},si=(e,n)=>{let r=[],i=Object.keys(n),a=Object.values(n),o=i.length,s={};for(let e=0;e<o;e++)s[i[e]]=void 0;let c=0;return t.Children.forEach(e,e=>{if(!t.isValidElement(e)){r.push(e);return}if(c===o){r.push(e);return}let n=ci(e,a,o);if(n===-1){r.push(e);return}let l=i[n];s[l]===void 0&&(s[l]=e,c++)}),[s,r]},ci=(e,t,n)=>{for(let r=0;r<n;r++)if(oi(e,t[r]))return r;return-1},li=W(`heading`,{variants:{size:{large:`text-title-large`,medium:`text-title-medium`,small:`text-title-small`}}});function ui(e,t){let{as:n=`h2`,className:r,size:i=`large`,...a}=e;return(0,q.jsx)(n,{ref:t,className:G(li({size:i}),r),"data-component":`Heading`,"data-size":i,...a})}ui.displayName=`Heading`;var di=K(ui);const fi=n({}),pi={root:`action-list-heading`,hidden:`sr-only`};function mi(t,n){let{as:r,className:i,visuallyHidden:a=!1,id:o,...s}=t,{headingId:c}=e.useContext(fi);return(0,q.jsx)(di,{ref:n,as:r,id:o??c,className:G(pi.root,a&&pi.hidden,i),"data-component":`ActionList.Heading`,...s})}mi.displayName=`ActionList.Heading`;var hi=K(mi);const gi=n({}),_i=W(`action-list`,{variants:{variant:{inset:`action-list-inset`,full:`action-list-full`},dividers:{true:`action-list-dividers`,false:``}}}),vi={heading:hi},yi=[`menu`,`menubar`,`listbox`];function bi(t,n){let{as:r=`ul`,className:i,children:a,variant:o=`inset`,selectionVariant:s,showDividers:c=!1,disableFocusZone:l=!1,role:u,...d}=t,[f,p]=si(a,vi),m=Y(),{listRole:h,listLabel:g,listLabelledBy:_,selectionVariant:v,enableFocusZone:y}=e.useContext(gi),b=u??h,x=s??v,S=f.heading?f.heading.props.id??m:_,C=e.useRef(null),w=Gr(n,C),T=y??(b!==void 0&&!l&&yi.includes(b));ri({containerRef:C,disabled:!T,wrap:b===`menu`});let E=e.useMemo(()=>({variant:o,selectionVariant:x,showDividers:c,role:b,headingId:m}),[o,x,c,b,m]);return(0,q.jsxs)(fi.Provider,{value:E,children:[f.heading,(0,q.jsx)(r,{ref:w,role:b,"aria-label":S?void 0:g,"aria-labelledby":S,className:G(_i({variant:o,dividers:c}),i),"data-component":`ActionList`,"data-variant":o,"data-dividers":c?``:void 0,...d,children:p})]})}bi.displayName=`ActionList`;var xi=K(bi);const Si=n({}),Ci={root:`action-list-description`,inline:`min-w-0 truncate`};function wi(t){let{className:n,variant:r=`inline`,...i}=t,{blockDescriptionId:a,inlineDescriptionId:o}=e.useContext(Si);return(0,q.jsx)(`span`,{id:r===`block`?a:o,className:G(Ci.root,r===`inline`&&Ci.inline,n),"data-component":`ActionList.Description`,"data-variant":r,...i})}wi.displayName=`ActionList.Description`;const Ti={root:`action-list-divider`};function Ei(e){let{className:t,...n}=e;return(0,q.jsx)(`li`,{"aria-hidden":`true`,className:G(Ti.root,t),"data-component":`ActionList.Divider`,...n})}Ei.displayName=`ActionList.Divider`;const Di=n({}),Oi={__SLOT__:Symbol(`ActionList.GroupHeading`)},ki={heading:`action-list-group-heading-label`,auxiliary:`action-list-group-heading-auxiliary`},Ai=W(`action-list-group-heading`,{variants:{variant:{subtle:``,filled:`action-list-group-heading-filled`}}});function ji(t){let{as:n,className:r,children:i,variant:a=`subtle`,auxiliaryText:o,...s}=t,{role:c}=e.useContext(fi),{groupHeadingId:l}=e.useContext(Di),u=c!==void 0&&c!==`list`,d=n??`h3`;return(0,q.jsxs)(`div`,{className:G(Ai({variant:a})),"data-component":`ActionList.GroupHeading`,"data-variant":a,...u?{role:`presentation`,"aria-hidden":!0}:{},children:[u?(0,q.jsx)(`span`,{id:l,className:G(ki.heading,r),...s,children:i}):(0,q.jsx)(d,{id:l,className:G(ki.heading,r),...s,children:i}),o?(0,q.jsx)(`div`,{className:ki.auxiliary,children:o}):null]})}ji.displayName=`ActionList.GroupHeading`;const Mi=ai(ji,Oi),Ni={root:`action-list-group`,list:`action-list-group-items`},Pi={groupHeading:Mi};function Fi(t){let{className:n,children:r,selectionVariant:i,role:a,"aria-label":o,...s}=t,c=Y(),{role:l}=e.useContext(fi),[u,d]=si(r,Pi),f=u.groupHeading?u.groupHeading.props.id??c:void 0,p=e.useMemo(()=>({selectionVariant:i,groupHeadingId:f}),[i,f]),m=l&&typeof u.groupHeading?.props.children==`string`?u.groupHeading.props.children:void 0;return(0,q.jsx)(`li`,{className:G(Ni.root,n),"data-component":`ActionList.Group`,role:l?`none`:void 0,...s,children:(0,q.jsxs)(Di.Provider,{value:p,children:[u.groupHeading,(0,q.jsx)(`ul`,{className:Ni.list,role:a??(l?`group`:void 0),"aria-labelledby":l?void 0:f,"aria-label":o??m,children:d})]})})}Fi.displayName=`ActionList.Group`;const Ii={root:`spinner`,srOnly:`sr-only`},Li=W(`motion-safe:animate-spin`,{variants:{size:{small:`spinner-small`,medium:`spinner-medium`,large:`spinner-large`}}});function Ri(e,t){let{as:n=`span`,size:r=`medium`,srText:i=`Loading`,className:a,"aria-label":o,...s}=e;return(0,q.jsxs)(n,{ref:t,role:`status`,"aria-label":o??void 0,className:G(Ii.root,a),"data-component":`Spinner`,...s,children:[(0,q.jsx)(Cn,{className:G(Li({size:r})),"aria-hidden":`true`}),i!==null&&o===void 0?(0,q.jsx)(`span`,{className:Ii.srOnly,children:i}):null]})}Ri.displayName=`Spinner`;var zi=K(Ri);const Bi={root:`action-list-visual`,muted:`action-list-visual-muted`,inherit:`action-list-visual-inherit`},Vi=({className:t,...n})=>{let{variant:r,disabled:i,inactive:a}=e.useContext(Si),o=r===`danger`||i||a;return(0,q.jsx)(`span`,{className:G(Bi.root,o?Bi.inherit:Bi.muted,t),...n})};function Hi(e){return(0,q.jsx)(Vi,{"data-component":`ActionList.LeadingVisual`,...e})}Hi.displayName=`ActionList.LeadingVisual`;function Ui({children:e}){return(0,q.jsx)(q.Fragment,{children:e})}Ui.displayName=`ActionList.SubItem`;const Wi={srOnly:`sr-only`},Gi=W(`counter-label`,{variants:{variant:{primary:`counter-label-primary`,secondary:`counter-label-secondary`}}});function Ki(e,t){let{as:n=`span`,className:r,variant:i=`secondary`,children:a,...o}=e;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(n,{ref:t,"aria-hidden":`true`,className:G(Gi({variant:i}),r),"data-component":`CounterLabel`,"data-variant":i,...o,children:a}),(0,q.jsxs)(`span`,{className:Wi.srOnly,children:[`\xA0(`,a,`)`]})]})}Ki.displayName=`CounterLabel`;var qi=K(Ki);const Ji={base:`button`,disabled:`button-disabled`,block:`button-block`,size:{small:`button-small`,medium:``,large:`button-large`},variant:{default:{rest:`button-default`,disabled:`button-default-disabled`},primary:{rest:`button-primary`,disabled:`button-primary-disabled`},danger:{rest:`button-danger`,disabled:`button-danger-disabled`},invisible:{rest:`button-invisible`,disabled:`button-invisible-disabled`},link:{rest:`button-link`,disabled:`button-link-disabled`}},link:`button-link-shape`,linkUnderlines:`button-link-underlines`,inactive:`button-inactive`,inactiveLink:`button-inactive-link`,iconTone:{default:`button-icon-tone-default`,primary:``,danger:``,invisible:`button-icon-tone-invisible`,link:``},labelWrapRoot:`button-label-wrap`,labelWrapHeight:{small:`button-label-wrap-small`,medium:`button-label-wrap-medium`,large:`button-label-wrap-large`},labelWrapContent:{small:`button-label-wrap-content-small`,medium:`button-label-wrap-content-medium`,large:`button-label-wrap-content-large`},labelWrapLabel:`button-label-wrap-label`,iconOnlyCounter:{small:`button-icon-only-counter-small`,medium:`button-icon-only-counter-medium`,large:`button-icon-only-counter-large`},content:`button-content`,contentGap:{small:`button-content-gap-small`,medium:`button-content-gap-medium`,large:`button-content-gap-large`},align:{start:`justify-start`,center:`justify-center`},label:`button-label`,labelLineHeight:{small:`button-label-small`,medium:`button-label-medium`,large:`button-label-large`},labelHidden:`invisible`,visualBase:`button-visual`,visual:{default:`button-visual-default`,primary:`button-visual-primary`,danger:`button-visual-danger`,invisible:`button-visual-invisible`,link:`button-visual-link`},visualMuted:`button-visual-muted`,counter:{default:`button-counter-default`,primary:`button-counter-primary`,danger:`button-counter-danger`,invisible:`button-counter-invisible`,link:``},counterMuted:`button-counter-muted`,counterMutedDanger:`button-counter-muted-danger`,leadingVisual:`button-leading-visual`,trailingVisual:`button-trailing-visual`,trailingAction:`button-trailing-action`,loadingSpinner:`items-center justify-center`,standaloneSpinner:`button-standalone-spinner`,loadingWrapper:`inline-flex`,loadingWrapperBlock:`block`,srOnly:`sr-only`},Yi=(t,n,r,i)=>{let a=t;return(0,q.jsx)(`span`,{"data-component":n,className:G(Ji.visualBase,r&&Ji.loadingSpinner,i),children:r?(0,q.jsx)(zi,{size:`small`,srText:null,role:`presentation`}):e.isValidElement(t)?t:(0,q.jsx)(a,{})})};function Xi(e,t){let{as:n=`button`,className:r,children:i,icon:a,leadingVisual:o,trailingVisual:s,trailingAction:c,count:l,variant:u=`default`,size:d=`medium`,alignContent:f=`center`,block:p=!1,loading:m,loadingAnnouncement:h=`Loading`,inactive:g,labelWrap:_,disabled:v,id:y,onClick:b,"aria-describedby":x,"aria-labelledby":S,"aria-disabled":C,...w}=e,T=Y(y),E=`${T}-label`,D=`${T}-loading-announcement`,O=!!m,k=!!v||(C===!0||C===`true`)&&!O,A=!k&&!g,j=!!(o||s||c),M=O&&!j&&l===void 0,N=l!==void 0&&!!o&&!i,P=g?u===`link`?Ji.inactiveLink:Ji.inactive:Ji.variant[u][k?`disabled`:`rest`],F=A?Ji.visual[u]:Ji.visualMuted,I=A?Ji.counter[u]:u===`danger`?Ji.counterMutedDanger:G(Ji.counter[u],Ji.counterMuted),L=(0,q.jsx)(n,{ref:t,className:G(Ji.base,Ji.size[d],u===`link`&&Ji.link,u===`link`&&!j&&Ji.linkUnderlines,P,a&&A&&Ji.iconTone[u],k&&Ji.disabled,p&&Ji.block,_&&Ji.labelWrapRoot,_&&Ji.labelWrapHeight[d],N&&Ji.iconOnlyCounter[d],r),"data-component":`Button`,"data-block":p?`block`:void 0,"data-inactive":g?``:void 0,"data-loading":O?`true`:void 0,"data-no-visuals":j?void 0:``,"data-size":d,"data-variant":u,"data-label-wrap":_?`true`:void 0,"data-has-count":l===void 0?void 0:`true`,"data-icon-only-counter":N?`true`:void 0,disabled:v,id:y,"aria-disabled":O?!0:C,"aria-describedby":O?[D,x].filter(Boolean).join(` `):x,"aria-labelledby":O&&i?[E,S].filter(Boolean).join(` `):S,onClick:O?void 0:b,...w,children:a?Yi(a,`icon`,O,``):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{"data-component":`buttonContent`,"data-align":f,className:G(Ji.content,!M&&Ji.contentGap[d],Ji.align[f],_&&Ji.labelWrapContent[d]),children:[M?Yi(zi,`loadingSpinner`,!0,G(F,Ji.standaloneSpinner)):null,o?Yi(o,`leadingVisual`,O,G(F,Ji.leadingVisual)):null,i?(0,q.jsx)(`span`,{"data-component":`text`,id:O?E:void 0,className:G(Ji.label,Ji.labelLineHeight[d],_&&Ji.labelWrapLabel,M&&Ji.labelHidden),children:i}):null,l!==void 0&&!s?Yi((0,q.jsx)(qi,{className:I,"data-component":`ButtonCounter`,children:l}),`trailingVisual`,O&&!o,Ji.trailingVisual):s?Yi(s,`trailingVisual`,O&&!o,G(F,Ji.trailingVisual)):null]}),c?Yi(c,`trailingAction`,O&&!o&&!s,G(F,Ji.trailingAction)):null]})});return m===void 0?L:(0,q.jsxs)(`span`,{className:p?Ji.loadingWrapperBlock:Ji.loadingWrapper,"data-loading-wrapper":``,children:[L,(0,q.jsx)(`span`,{id:D,role:`status`,className:Ji.srOnly,children:O?h:``})]})}Xi.displayName=`ButtonBase`;var Zi=K(Xi);function Qi(e,t){let{as:n=`button`,type:r=`button`,...i}=e;return(0,q.jsx)(Zi,{ref:t,as:n,type:r,...i})}Qi.displayName=`Button`;var $i=K(Qi);const ea=W(`icon-button`,{variants:{size:{small:`icon-button-small`,medium:`icon-button-medium`,large:`icon-button-large`}}});function ta(e,t){let{as:n=`button`,className:r,size:i=`medium`,...a}=e;return(0,q.jsx)(Zi,{ref:t,as:n,type:`button`,size:i,"data-component":`IconButton`,className:G(ea({size:i}),r),...a})}ta.displayName=`IconButton`;var na=K(ta);const ra={root:`action-list-trailing-action`,action:`action-list-trailing-action-button`};function ia(e,t){let{className:n,icon:r,label:i,...a}=e;return(0,q.jsx)(`span`,{className:ra.root,"data-component":`ActionList.TrailingAction`,children:r?(0,q.jsx)(na,{ref:t,icon:r,"aria-label":i,variant:`invisible`,size:`small`,className:G(ra.action,n),...a}):(0,q.jsx)($i,{ref:t,variant:`invisible`,size:`small`,className:G(ra.action,n),...a,children:i})})}ia.displayName=`ActionList.TrailingAction`;var aa=K(ia);function oa(t){let{trailingVisualId:n}=e.useContext(Si);return(0,q.jsx)(Vi,{id:n,"data-component":`ActionList.TrailingVisual`,...t})}oa.displayName=`ActionList.TrailingVisual`;const sa={unselected:`invisible`,checkmark:`action-list-selection-checkmark`,checkbox:`action-list-selection-checkbox`,checkboxSelected:`action-list-selection-checkbox-selected`},ca=({selected:t,className:n})=>{let{selectionVariant:r}=e.useContext(fi),{selectionVariant:i}=e.useContext(Di),a=i===void 0?r:i;return a?a===`multiple`?(0,q.jsx)(Vi,{className:n,"data-component":`ActionList.Selection`,children:(0,q.jsx)(`span`,{className:G(sa.checkbox,t&&sa.checkboxSelected),children:(0,q.jsx)(Rn,{className:t?void 0:sa.unselected})})}):(0,q.jsx)(Vi,{className:n,"data-component":`ActionList.Selection`,children:(0,q.jsx)(Rn,{className:G(sa.checkmark,!t&&sa.unselected)})}):null},la={root:`action-list-item`,content:`action-list-item-content`,size:{medium:``,large:`action-list-item-content-large`},danger:`action-list-item-content-danger`,disabled:`action-list-item-content-disabled`,inactive:`action-list-item-content-inactive`,loading:`cursor-default`,active:`action-list-item-content-active`,main:`action-list-item-main`,labelWrap:`action-list-item-label-wrap`,labelWrapBlock:`flex-col gap-0`,label:`min-w-0`,inactiveWarning:`action-list-item-inactive-warning`,srOnly:`sr-only`},ua={leadingVisual:Hi,trailingVisual:oa,trailingAction:aa,description:wi,subItem:Ui},da=[`option`,`menuitem`,`menuitemradio`,`menuitemcheckbox`],fa=[`listbox`,`menu`,`list`];function pa(t,n){let{as:r,className:i,children:a,id:o,role:s,variant:c=`default`,size:l=`medium`,selected:u,active:d=!1,disabled:f=!1,loading:p=!1,inactiveText:m,onSelect:h,...g}=t,[_,v]=si(a,ua),{container:y,afterSelect:b,selectionAttribute:x,defaultTrailingVisual:S}=e.useContext(gi),{role:C,selectionVariant:w}=e.useContext(fi),{selectionVariant:T}=e.useContext(Di),E=!!m,D=T===void 0?w:T||void 0,O;y===`ActionMenu`||C===`menu`?O=D===`single`?`menuitemradio`:D===`multiple`?`menuitemcheckbox`:`menuitem`:C===`listbox`&&D&&(O=`option`);let k=s??O,A=x??(k===`menuitemradio`||k===`menuitemcheckbox`?`aria-checked`:k===`option`?`aria-selected`:void 0),j=C!==void 0&&fa.includes(C)||E||k!==void 0&&da.includes(k),M=r??(j?`div`:`button`),N=r!==void 0||!j,P=!N||M!==`button`&&M!==`a`,F=y===`ActionMenu`||C===`menu`||C===`listbox`,I=!f&&!E&&!p,L=e=>{I&&(h?.(e),!e.defaultPrevented&&b?.(e))},ee=e=>{(e.key===` `||e.key===`Enter`)&&(e.key===` `&&e.preventDefault(),L(e))},R=Y(o),te=`${R}--label`,z=`${R}--inline-description`,ne=`${R}--block-description`,B=`${R}--trailing-visual`,re=E?`${R}--inactive-warning`:void 0,V=_.description?.props.variant??`inline`,ie=_.trailingVisual??(S?(0,q.jsx)(oa,{children:S}):null),ae=p&&!E,oe=(0,q.jsx)(zi,{size:`small`,srText:null}),se=ae&&_.leadingVisual?(0,q.jsx)(Hi,{children:oe}):_.leadingVisual,ce=ae&&!_.leadingVisual?(0,q.jsx)(oa,{children:oe}):ie,le=[_.description?V===`block`?ne:z:void 0,re].filter(Boolean),ue={id:R,role:k,tabIndex:0,onClick:L,onKeyDown:P?ee:void 0,"aria-disabled":f||E||p?!0:void 0,"aria-labelledby":[te,_.trailingVisual?B:void 0].filter(Boolean).join(` `),"aria-describedby":le.length>0?le.join(` `):void 0,...A&&D?{[A]:!!u}:{}},de=!F&&!E&&!p?_.trailingAction:null,fe=e.useMemo(()=>({variant:c,size:l,disabled:f,inactive:E,inlineDescriptionId:z,blockDescriptionId:ne,trailingVisualId:B}),[c,l,f,E,z,ne,B]),pe=G(la.content,la.size[l],c===`danger`&&!f&&!E&&la.danger,d&&la.active,p&&la.loading,E&&la.inactive,f&&la.disabled);return(0,q.jsx)(Si.Provider,{value:fe,children:(0,q.jsxs)(`li`,{ref:N?null:n,className:G(la.root,i),"data-component":`ActionList.Item`,"data-variant":c===`danger`?c:void 0,"data-active":d?``:void 0,"data-inactive":E?``:void 0,"data-disabled":f?``:void 0,"data-loading":p?``:void 0,"data-has-description":_.description?``:void 0,"data-has-trailing-action":de?``:void 0,"data-has-sub-item":_.subItem?``:void 0,...N?{role:k?`none`:void 0}:{...ue,...g},children:[(0,q.jsxs)(M,{ref:N?n:void 0,className:pe,"data-component":`ActionList.Item.Content`,"data-size":l,...N?{...ue,...g,...M===`button`?{type:`button`}:{}}:{},children:[(0,q.jsx)(ca,{selected:u}),se,(0,q.jsxs)(`span`,{className:la.main,children:[(0,q.jsxs)(`span`,{className:G(la.labelWrap,V===`block`&&la.labelWrapBlock),children:[(0,q.jsxs)(`span`,{id:te,className:la.label,"data-component":`ActionList.Item.Label`,children:[v,ae?(0,q.jsx)(`span`,{className:la.srOnly,children:`Loading`}):null]}),_.description]}),ce]})]}),E?(0,q.jsx)(`span`,{id:re,className:la.inactiveWarning,children:m}):null,de,_.subItem]})})}pa.displayName=`ActionList.Item`;var ma=K(pa);function ha(e,t){let{as:n,...r}=e;return(0,q.jsx)(ma,{ref:t,as:n??`a`,...r})}ha.displayName=`ActionList.LinkItem`;var ga=K(ha);const _a=Object.assign(xi,{Item:ma,LinkItem:ga,Group:Fi,GroupHeading:Mi,Heading:hi,Description:wi,Divider:Ei,LeadingVisual:Hi,TrailingVisual:oa,TrailingAction:aa,SubItem:Ui}),va=n(void 0);function ya(t){let{children:n,className:r,onClick:i,onKeyDown:a,...o}=t,s=e.useContext(va),c=e.useContext(gi),l=!!s?.isSubmenu,u=s?.onOpen,d=e.useMemo(()=>l?{...c,defaultTrailingVisual:(0,q.jsx)(Vn,{}),afterSelect:()=>u?.()}:c,[l,u,c]);if(!e.isValidElement(n))return null;let f=n.props,p=e=>{f.onClick?.(e),i?.(e)},m=e=>{f.onKeyDown?.(e),l&&e.key===`ArrowRight`&&!e.defaultPrevented&&(u?.(),e.preventDefault()),a?.(e)};return(0,q.jsx)(gi.Provider,{value:d,children:e.cloneElement(n,{...o,ref:s?.anchorRef,className:G(r,f.className),onClick:p,onKeyDown:m})})}ya.displayName=`ActionMenu.Anchor`;function ba(e){return(0,q.jsx)(ya,{children:(0,q.jsx)($i,{type:`button`,trailingAction:zn,"data-component":`ActionMenu.Button`,...e})})}ba.displayName=`ActionMenu.Button`;const xa=t=>e.isValidElement(t)&&(t.type===ya||t.type===ba),Sa=(e,t)=>({id:e.id,"aria-haspopup":e[`aria-haspopup`],"aria-expanded":e[`aria-expanded`],tabIndex:e.tabIndex,onClick:n=>{t.onClick?.(n),e.onClick(n)},onKeyDown:n=>{t.onKeyDown?.(n),e.onKeyDown(n)}});function Ca(t){let{children:n,open:r,onOpenChange:i,anchorRef:a}=t,o=e.useContext(va),s=e.useRef(null),c=a??s,l=r!==void 0,[u,d]=e.useState(!1),f=l?r:u,p=e.useCallback(e=>{d(e),i?.(e)},[i]),m=e.useCallback(()=>p(!0),[p]),h=o?.onClose,g=e.useCallback(e=>{p(!1),(e===`item-select`||e===`tab`)&&h?.(e)},[p,h]),_=e.Children.toArray(n),v=_.find(xa),y=Y(v?.props.id),b=v?t=>e.cloneElement(v,Sa(t,v.props)):null,x=o!==void 0,S=e.useMemo(()=>({anchorRef:c,renderAnchor:b,anchorId:y,open:f,onOpen:m,onClose:g,isSubmenu:x}),[c,b,y,f,m,g,x]);return(0,q.jsx)(va.Provider,{value:S,children:_.filter(e=>e!==v)})}Ca.displayName=`ActionMenu`;const wa=[],Ta=({containerRef:e,initialFocusRef:t,returnFocusRef:n,disabled:r})=>{s(()=>{let i=e.current;if(!i||r)return;let a=document.activeElement;wa.push(i),(t?.current??ei(i)[0]??i).focus();let o=e=>{if(e.key!==`Tab`||wa[wa.length-1]!==i)return;let t=ei(i);if(t.length===0){e.preventDefault();return}let n=t[0],r=t[t.length-1],a=document.activeElement;((e.shiftKey?a===n:a===r)||!i.contains(a))&&(e.preventDefault(),(e.shiftKey?r:n).focus())};return document.addEventListener(`keydown`,o),()=>{document.removeEventListener(`keydown`,o),wa.splice(wa.indexOf(i),1);let e=n?.current??a;e instanceof HTMLElement&&e.focus()}},[e,t,n,r])},Ea=[],Da=e=>{if(!(e.key!==`Escape`||e.defaultPrevented)){for(let t of[...Ea].reverse())if(t(e),e.defaultPrevented)break}},Oa=e=>{let t=u(e);s(()=>{t.current=e},[e]),s(()=>{let e=e=>t.current(e);return Ea.length===0&&document.addEventListener(`keydown`,Da),Ea.push(e),()=>{Ea.splice(Ea.indexOf(e),1),Ea.length===0&&document.removeEventListener(`keydown`,Da)}},[])},ka=(e,t)=>{if(t!=null)return Object.fromEntries(typeof t==`object`?Object.entries(t).map(([t,n])=>Aa(`data-${e}-${t}`,n)):[Aa(`data-${e}`,t)])},Aa=(e,t)=>[e,t],ja=n({}),Ma=`__baseUiPortalRoot__`,Na=`__default__`,Pa={root:`portal-root`},Fa={},Ia=(e,t=Na)=>{Fa[t]=e},La=()=>{let e=Fa[Na];if(e&&document.body.contains(e))return;let t=document.getElementById(Ma);t||(t=document.createElement(`div`),t.setAttribute(`id`,Ma),t.className=Pa.root,(document.querySelector(`[data-portal-root]`)??document.body).appendChild(t)),Ia(t)},Ra=e=>Fa[e],za={root:`portal`};function Ba({children:t,onMount:n,containerName:r}){let{portalContainerName:i}=e.useContext(ja),a=e.useRef(null);if(!a.current){let e=document.createElement(`div`);e.setAttribute(`data-component`,`Portal`),e.className=za.root,a.current=e}let o=a.current;return Ur(()=>{let e=r??i;e===void 0&&(e=Na,La());let t=Ra(e);if(!t)throw Error(`Portal container '${e}' is not yet registered. Register it with registerPortalRoot before use.`);return t.appendChild(o),n?.(),()=>{t.removeChild(o)}},[o,r,i]),m(t,o)}Ba.displayName=`Portal`;const Va={"outside-top":`outside-bottom`,"outside-bottom":`outside-top`,"outside-left":`outside-right`,"outside-right":`outside-left`},Ha=e=>e===`outside-top`||e===`outside-bottom`,Ua=(e,t,n,r)=>e===`outside-top`?t.top-n.height-r:e===`outside-bottom`?t.bottom+r:e===`outside-left`?t.left-n.width-r:t.right+r,Wa=(e,t,n,r,i)=>e===`start`?t+i:e===`end`?t+n-r-i:t+(n-r)/2+i,Ga=(e,t,{side:n,align:r,anchorOffset:i=4,alignmentOffset:a=0})=>{let o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),c=window.innerWidth,l=window.innerHeight,u=n,d=Ua(u,o,s,i),f=Ha(u)?s.height:s.width,p=Ha(u)?l:c;if(d<0||d+f>p){let e=Ua(Va[n],o,s,i);e>=0&&e+f<=p&&(u=Va[n],d=e)}let m=Ha(u),h=m?o.left:o.top,g=m?o.width:o.height,_=m?s.width:s.height,v=m?c:l,y=r,b=Wa(r,h,g,_,a);return b<0?(y=`start`,b=Wa(y,h,g,_,a)):b+_>v&&(y=`end`,b=Wa(y,h,g,_,a)),b=Math.max(0,Math.min(b,v-_)),{top:m?d:b,left:m?b:d,anchorSide:u,anchorAlign:y}},Ka={closeButtonContainer:`anchored-overlay-close-button-container`,closeButton:`anchored-overlay-close-button`},qa=W([`anchored-overlay`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2 motion-safe:data-[side=outside-right]:slide-in-from-left-2 motion-safe:data-[side=outside-left]:slide-in-from-right-2`],{variants:{width:{xsmall:`anchored-overlay-width-xsmall`,small:`anchored-overlay-width-small`,medium:`anchored-overlay-width-medium`,large:`anchored-overlay-width-large`,xlarge:`anchored-overlay-width-xlarge`,auto:`anchored-overlay-width-auto`},height:{small:`anchored-overlay-height-small`,medium:`anchored-overlay-height-medium`,large:`anchored-overlay-height-large`,xlarge:`anchored-overlay-height-xlarge`,auto:`anchored-overlay-height-auto`},reflow:{true:`anchored-overlay-reflow`,false:``},fullscreen:{true:`anchored-overlay-fullscreen`,false:``},unplaced:{true:`invisible`,false:``}}}),Ja={regular:`anchored`,narrow:`anchored`},Ya=[`ArrowDown`,`ArrowUp`,` `,`Enter`],Xa=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign;function Za(t){let{renderAnchor:n,anchorRef:r,anchorId:i,children:a,open:o,onOpen:s,onClose:c,side:l=`outside-bottom`,align:u=`start`,anchorOffset:d,alignmentOffset:f,width:p=`auto`,height:m=`auto`,overlayProps:h,focusTrapSettings:g,preventOverflow:_=!0,variant:v=Ja,displayCloseButton:y=!0,closeButtonProps:b,onPositionChange:x,className:S}=t,{ref:C,className:w,style:T,portalContainerName:E,...D}=h??{},{className:O,"aria-label":k,...A}=b??{},j=e.useRef(null),M=r??j,N=Y(i),P=e.useRef(null),F=Gr(C,P),I=e.useRef(null),[L,ee]=e.useState(null),R=e.useCallback(()=>{let e=M.current,t=P.current;if(!e||!t)return;let n=Ga(t,e,{side:l,align:u,anchorOffset:d,alignmentOffset:f});I.current&&Xa(I.current,n)||(I.current=n,ee(n),x?.({position:n}))},[M,l,u,d,f,x]);Ur(()=>{if(!o){I.current=null,ee(null);return}R();let e=new ResizeObserver(R);return P.current&&e.observe(P.current),window.addEventListener(`resize`,R),window.addEventListener(`scroll`,R,!0),()=>{e.disconnect(),window.removeEventListener(`resize`,R),window.removeEventListener(`scroll`,R,!0)}},[o,R]),Ta({containerRef:P,returnFocusRef:M,...g,disabled:!o||!L||!!g?.disabled}),Oa(e=>{o&&(e.preventDefault(),c?.(`escape`))}),e.useEffect(()=>{if(!o)return;let e=e=>{let{target:t}=e;t instanceof Node&&(P.current?.contains(t)||M.current?.contains(t)||c?.(`click-outside`))};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[M,o,c]);let te=e=>{e.defaultPrevented||e.button!==0||(o?c?.(`anchor-click`):s?.(`anchor-click`))},z=e=>{e.defaultPrevented||o||!Ya.includes(e.key)||(s?.(`anchor-key-press`,e),e.preventDefault())},ne=v.narrow===`fullscreen`,B=!!c&&ne&&y;return(0,q.jsxs)(q.Fragment,{children:[n?n({ref:M,id:N,"aria-haspopup":`true`,"aria-expanded":o,tabIndex:0,onClick:te,onKeyDown:z}):null,o?(0,q.jsx)(Ba,{containerName:E,children:(0,q.jsxs)(`div`,{ref:F,tabIndex:-1,className:G(qa({width:p,height:m,reflow:!_,fullscreen:ne,unplaced:!L}),S,w),style:{...T,"--anchored-overlay-top":`${L?.top??0}px`,"--anchored-overlay-left":`${L?.left??0}px`},"data-component":`AnchoredOverlay`,"data-side":L?.anchorSide??l,"data-align":L?.anchorAlign??u,"data-width":p,"data-height":m,"data-visibility":L?`visible`:`hidden`,...ka(`variant`,v),...D,children:[B?(0,q.jsx)(`div`,{className:Ka.closeButtonContainer,children:(0,q.jsx)(na,{icon:Xn,variant:`invisible`,"aria-label":k??`Close`,onClick:()=>c?.(`close-button`),className:G(Ka.closeButton,O),"data-component":`AnchoredOverlay.CloseButton`,...A})}):null,a]})}):null]})}Za.displayName=`AnchoredOverlay`;const Qa={container:`action-menu-overlay`};function $a(t){let{children:n,align:r=`start`,side:i,className:a,returnFocusRef:o,"aria-labelledby":s,...c}=t,l=e.useContext(va),u=!!l?.isSubmenu,d=l?.onClose,f=e.useCallback(e=>d?.(e),[d]),p=e=>{if(!e.defaultPrevented){if(e.key===`Tab`){d?.(`tab`);return}u&&e.key===`ArrowLeft`&&(d?.(`arrow-left`),e.preventDefault())}},m=e.useMemo(()=>({container:`ActionMenu`,listRole:`menu`,listLabelledBy:s??l?.anchorId,selectionAttribute:`aria-checked`,afterSelect:()=>d?.(`item-select`)}),[s,l?.anchorId,d]);return l?(0,q.jsx)(Za,{anchorRef:l.anchorRef,renderAnchor:l.renderAnchor,anchorId:l.anchorId,open:l.open,onOpen:l.onOpen,onClose:f,align:r,side:i??(u?`outside-right`:`outside-bottom`),className:a,focusTrapSettings:o?{returnFocusRef:o}:void 0,...c,children:(0,q.jsx)(`div`,{className:Qa.container,onKeyDown:p,"data-component":`ActionMenu.Overlay`,children:(0,q.jsx)(gi.Provider,{value:m,children:n})})}):null}$a.displayName=`ActionMenu.Overlay`;const eo=Object.assign(Ca,{Anchor:ya,Button:ba,Overlay:$a,Divider:Ei}),to=n(null);function no({children:t,rootRef:n}){let r=e.useRef(new Map),i=e.useRef(new Set),a=e.useRef(null),o=e.useRef(null),s=e.useCallback(()=>{if(typeof IntersectionObserver>`u`)return null;let e=n.current;return e?a.current&&o.current===e?a.current:(a.current?.disconnect(),i.current.clear(),a.current=new IntersectionObserver(e=>{for(let t of e){let e=r.current.get(t.target);if(!e)continue;let n=t.intersectionRatio<1;for(let t of e)t(n)}},{root:e,threshold:1}),o.current=e,a.current):null},[n]),c=e.useCallback(()=>{let e=s();if(e)for(let t of r.current.keys())i.current.has(t)||(e.observe(t),i.current.add(t))},[s]),l=e.useCallback((e,t)=>{let n=r.current.get(e);return n||(n=new Set,r.current.set(e,n)),n.add(t),c(),()=>{let n=r.current.get(e);n&&(n.delete(t),n.size===0&&(r.current.delete(e),i.current.delete(e),a.current?.unobserve(e)))}},[c]);return Ur(()=>{c()}),e.useEffect(()=>()=>{a.current?.disconnect(),a.current=null,o.current=null,i.current.clear(),r.current.clear()},[]),(0,q.jsx)(to.Provider,{value:l,children:t})}no.displayName=`OverflowObserverProvider`;const ro=()=>o(to),io=({ref:e,rootRef:t,disabled:n})=>{let[r,i]=d(!1),a=ro();return s(()=>{let r=e.current;if(!r||n){i(!1);return}if(a)return a(r,i);let o=t?.current;if(!o){i(!1);return}let s=new IntersectionObserver(e=>{for(let t of e)i(t.intersectionRatio<1)},{root:o,threshold:1});return s.observe(r),()=>{s.disconnect()}},[e,t,n,a]),r},ao=n({size:`medium`}),oo=n({}),so={current:null},co=t=>{let{size:n,rootRef:r,setOverflowing:i}=e.useContext(ao),{index:a,inGroup:o}=e.useContext(oo),s=io({ref:t,rootRef:r??so,disabled:o});return e.useEffect(()=>{a!==void 0&&i?.(a,s)},[a,s,i]),{size:n,isOverflowing:s}},lo={root:`action-bar-divider`,overflowing:`invisible`};function uo(t){let{className:n,...r}=t,i=e.useRef(null),{isOverflowing:a}=co(i);return(0,q.jsx)(`div`,{ref:i,"aria-hidden":`true`,className:G(lo.root,a&&lo.overflowing,n),"data-component":`ActionBar.Divider`,"data-overflowing":a?``:void 0,...r})}uo.displayName=`ActionBar.Divider`;const fo={root:`action-bar-group`,overflowing:`invisible`},po={inGroup:!0};function mo(t){let{className:n,children:r,...i}=t,a=e.useRef(null),{isOverflowing:o}=co(a);return(0,q.jsx)(`div`,{ref:a,className:G(fo.root,o&&fo.overflowing,n),"data-component":`ActionBar.Group`,"data-overflowing":o?``:void 0,...i,children:(0,q.jsx)(oo.Provider,{value:po,children:r})})}mo.displayName=`ActionBar.Group`;const ho={overflowing:`invisible`};function go(t,n){let{className:r,...i}=t,a=e.useRef(null),o=Gr(n,a),{size:s,isOverflowing:c}=co(a);return(0,q.jsx)(na,{ref:o,size:s,variant:`invisible`,className:G(c&&ho.overflowing,r),"data-component":`ActionBar.IconButton`,"data-overflowing":c?``:void 0,...i})}go.displayName=`ActionBar.IconButton`;var _o=K(go);const vo=t=>typeof t==`string`?(0,q.jsx)(`span`,{children:t}):e.isValidElement(t)?t:(0,q.jsx)(t,{}),yo=({items:e})=>(0,q.jsx)(q.Fragment,{children:e.map((e,t)=>{if(e.type===`divider`)return(0,q.jsx)(_a.Divider,{},t);let{label:n,disabled:r,variant:i,leadingVisual:a,trailingVisual:o,onClick:s}=e,c=(0,q.jsxs)(q.Fragment,{children:[a?(0,q.jsx)(_a.LeadingVisual,{children:vo(a)}):null,n,o?(0,q.jsx)(_a.TrailingVisual,{children:vo(o)}):null]});return e.items&&e.items.length>0?(0,q.jsxs)(eo,{children:[(0,q.jsx)(eo.Anchor,{children:(0,q.jsx)(_a.Item,{disabled:r,variant:i,children:c})}),(0,q.jsx)(eo.Overlay,{children:(0,q.jsx)(_a,{children:(0,q.jsx)(yo,{items:e.items})})})]},t):(0,q.jsx)(_a.Item,{onSelect:s,disabled:r,variant:i,children:c},t)})}),bo={overflowing:`invisible`};function xo(t,n){let{className:r,icon:i,items:a,returnFocusRef:o,overflowIcon:s,...c}=t,l=e.useRef(null),u=Gr(n,l),{size:d,isOverflowing:f}=co(l);return(0,q.jsxs)(eo,{anchorRef:l,children:[(0,q.jsx)(eo.Anchor,{children:(0,q.jsx)(na,{ref:u,icon:i,size:d,variant:`invisible`,className:G(f&&bo.overflowing,r),"data-component":`ActionBar.Menu`,"data-overflowing":f?``:void 0,...c})}),(0,q.jsx)(eo.Overlay,{returnFocusRef:o,children:(0,q.jsx)(_a,{children:(0,q.jsx)(yo,{items:a})})})]})}xo.displayName=`ActionBar.Menu`;var So=K(xo);const Co={size:{small:`action-bar-size-small`,medium:`action-bar-size-medium`,large:`action-bar-size-large`},spacer:`shrink-0`,moreButtonEmpty:`invisible`},wo=W(`action-bar`,{variants:{flush:{true:``,false:`action-bar-inset`}}}),To=W(`action-bar-toolbar`,{variants:{size:Co.size}}),Eo=W(`action-bar-items`,{variants:{size:Co.size,gap:{none:`action-bar-gap-none`,condensed:`action-bar-gap-condensed`}}}),Do=new Set,Oo=t=>e.isValidElement(t)?t:(0,q.jsx)(t,{}),ko=(t,n)=>{let r=t.props;if(t.type===uo)return(0,q.jsx)(_a.Divider,{},n);if(t.type===mo)return e.Children.toArray(r.children).filter(t=>e.isValidElement(t)).map((e,t)=>ko(e,`${n}-${t}`));if(t.type===So){let e=r.overflowIcon??r.icon;return(0,q.jsxs)(eo,{children:[(0,q.jsx)(eo.Anchor,{children:(0,q.jsxs)(_a.Item,{children:[e?(0,q.jsx)(_a.LeadingVisual,{children:Oo(e)}):null,r[`aria-label`]]})}),(0,q.jsx)(eo.Overlay,{returnFocusRef:r.returnFocusRef,children:(0,q.jsx)(_a,{children:(0,q.jsx)(yo,{items:r.items})})})]},n)}let i=t.type===_o?r.icon:r.leadingVisual,a=t.type===_o?r[`aria-label`]:r.children;return(0,q.jsxs)(_a.Item,{onSelect:r.onClick,disabled:r.disabled,children:[i?(0,q.jsx)(_a.LeadingVisual,{children:Oo(i)}):null,a]},n)};function Ao(t){let{className:n,children:r,size:i=`medium`,flush:a=!1,gap:o=`condensed`,"aria-label":s,"aria-labelledby":c}=t,l=e.useRef(null),u=e.useRef(null),[d,f]=e.useState(Do),p=e.useCallback((e,t)=>{f(n=>{if(n.has(e)===t)return n;let r=new Set(n);return t?r.add(e):r.delete(e),r})},[]);ri({containerRef:l,direction:`horizontal`,wrap:!0});let m=e.useMemo(()=>({size:i,rootRef:u,setOverflowing:p}),[i,p]),h=e.Children.toArray(r),g=h.length,_=e.useMemo(()=>Array.from({length:g},(e,t)=>({index:t})),[g]),v=h.map((t,n)=>d.has(n)&&e.isValidElement(t)?ko(t,n):null).filter(Boolean);return(0,q.jsx)(ao.Provider,{value:m,children:(0,q.jsx)(`div`,{className:G(wo({flush:a}),n),"data-component":`ActionBar`,"data-flush":a?``:void 0,children:(0,q.jsxs)(`div`,{ref:l,role:`toolbar`,"aria-label":s,"aria-labelledby":c,className:G(To({size:i})),"data-size":i,"data-gap":o,"data-has-overflow":v.length>0?``:void 0,children:[(0,q.jsxs)(`div`,{ref:u,className:G(Eo({size:i,gap:o})),children:[(0,q.jsx)(`div`,{className:Co.spacer}),h.map((e,t)=>(0,q.jsx)(oo.Provider,{value:_[t],children:e},t))]}),(0,q.jsxs)(eo,{children:[(0,q.jsx)(eo.Anchor,{children:(0,q.jsx)(na,{icon:lr,"aria-label":`More items`,size:i,variant:`invisible`,className:v.length>0?void 0:Co.moreButtonEmpty,"data-component":`ActionBar.MoreButton`})}),(0,q.jsx)(eo.Overlay,{children:(0,q.jsx)(_a,{children:v})})]})]})})})}Ao.displayName=`ActionBar`;const jo={overflowing:`invisible`};function Mo(t,n){let{className:r,...i}=t,a=e.useRef(null),o=Gr(n,a),{size:s,isOverflowing:c}=co(a);return(0,q.jsx)($i,{ref:o,size:s,variant:`invisible`,className:G(c&&jo.overflowing,r),"data-component":`ActionBar.Button`,"data-overflowing":c?``:void 0,...i})}Mo.displayName=`ActionBar.Button`;var No=K(Mo);const Po=Object.assign(Ao,{Button:No,IconButton:_o,Divider:uo,Group:mo,Menu:So}),Fo=W(`alert`,{variants:{variant:{default:`alert-default`,success:`alert-success`,warning:`alert-warning`,danger:`alert-danger`}}});function Io(e,t){let{as:n=`div`,className:r,variant:i=`default`,...a}=e;return(0,q.jsx)(n,{ref:t,className:G(Fo({variant:i}),r),"data-component":`Alert`,"data-variant":i,...a})}Io.displayName=`Alert`;var Lo=K(Io);const Ro={root:`aspect-ratio`};function zo(e,t){let{as:n=`div`,className:r,ratio:i=1,style:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Ro.root,r),style:{...a,"--aspect-ratio":i},"data-component":`AspectRatio`,...o})}zo.displayName=`AspectRatio`;var Bo=K(zo);const Vo=n({}),Ho=W(`attachment`,{variants:{state:{idle:`attachment-state-idle`,uploading:``,processing:``,error:`attachment-state-error`,done:``},size:{small:`attachment-size-small`,medium:`attachment-size-medium`,large:`attachment-size-large`},orientation:{horizontal:`attachment-horizontal`,vertical:`attachment-vertical`}}});function Uo(t,n){let{as:r=`div`,className:i,state:a=`done`,size:o=`medium`,orientation:s=`horizontal`,...c}=t,l=e.useMemo(()=>({state:a,size:o,orientation:s}),[a,o,s]);return(0,q.jsx)(Vo.Provider,{value:l,children:(0,q.jsx)(r,{ref:n,className:G(Ho({state:a,size:o,orientation:s}),i),"data-component":`Attachment`,"data-state":a,"data-size":o,"data-orientation":s,...c})})}Uo.displayName=`Attachment`;var Wo=K(Uo);const Go={root:`attachment-action`};function Ko(e,t){let{className:n,variant:r=`invisible`,size:i=`small`,...a}=e,o=a;return(0,q.jsx)(na,{ref:t,variant:r,size:i,className:G(Go.root,n),"data-component":`Attachment.Action`,...o})}Ko.displayName=`Attachment.Action`;var qo=K(Ko);const Jo={root:`attachment-actions`};function Yo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Jo.root,n),"data-component":`Attachment.Actions`,...r})}Yo.displayName=`Attachment.Actions`;var Xo=K(Yo);const Zo={root:`attachment-content`};function Qo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Zo.root,n),"data-component":`Attachment.Content`,...r})}Qo.displayName=`Attachment.Content`;var $o=K(Qo);const es={root:`attachment-description`};function ts(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(es.root,n),"data-component":`Attachment.Description`,...r})}ts.displayName=`Attachment.Description`;var ns=K(ts);const rs={root:`attachment-group`};function is(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(rs.root,n),"data-component":`Attachment.Group`,...r})}is.displayName=`Attachment.Group`;var as=K(is);const os=W(`attachment-media`,{variants:{variant:{icon:``,image:`attachment-media-image`}}});function ss(e,t){let{className:n,variant:r=`icon`,...i}=e;return(0,q.jsx)(`div`,{ref:t,className:G(os({variant:r}),n),"data-component":`Attachment.Media`,"data-variant":r,...i})}ss.displayName=`Attachment.Media`;var cs=K(ss);const ls={root:`attachment-title`};function us(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(ls.root,n),"data-component":`Attachment.Title`,...r})}us.displayName=`Attachment.Title`;var ds=K(us);const fs={root:`attachment-trigger`};function ps(e,t){let{as:n=`button`,className:r,type:i,...a}=e;return(0,q.jsx)(n,{ref:t,type:n===`button`?i??`button`:i,className:G(fs.root,r),"data-component":`Attachment.Trigger`,...a})}ps.displayName=`Attachment.Trigger`;var ms=K(ps);const hs=Object.assign(Wo,{Group:as,Media:cs,Content:$o,Title:ds,Description:ns,Actions:Xo,Action:qo,Trigger:ms}),gs=n({}),_s=n({}),vs=n({});function ys({children:t,id:n}){let r=Y(n),i=e.useRef(null),a=e.useRef(null),[o,s]=e.useState(``),[c,l]=e.useState(``),[u,d]=e.useState(),[f,p]=e.useState(!1),m=e.useCallback(e=>{p(e),e||(d(void 0),l(``))},[]),h=e.useMemo(()=>({id:r,inputRef:i,scrollContainerRef:a,activeDescendantId:u,setActiveDescendantId:d,showMenu:f,setShowMenu:m,setInputValue:s,setAutocompleteSuggestion:l}),[r,u,f,m]),g=e.useMemo(()=>({inputValue:o,autocompleteSuggestion:c}),[o,c]),_=e.useDeferredValue(o),v=e.useMemo(()=>({deferredInputValue:_}),[_]);return(0,q.jsx)(gs.Provider,{value:h,children:(0,q.jsx)(_s.Provider,{value:g,children:(0,q.jsx)(vs.Provider,{value:v,children:t})})})}ys.displayName=`Autocomplete`;const bs=W(`text`,{variants:{size:{large:`text-size-large`,medium:`text-size-medium`,small:`text-size-small`},weight:{light:`text-weight-light`,normal:`text-weight-normal`,medium:`text-weight-medium`,semibold:`text-weight-semibold`},whiteSpace:{pre:`whitespace-pre`,normal:`whitespace-normal`,nowrap:`whitespace-nowrap`,"pre-wrap":`whitespace-pre-wrap`,"pre-line":`whitespace-pre-line`}}});function xs(e,t){let{as:n=`span`,className:r,size:i=`medium`,weight:a,whiteSpace:o,...s}=e;return(0,q.jsx)(n,{ref:t,className:G(bs({size:i,weight:a,whiteSpace:o}),r),"data-component":`Text`,"data-size":i,"data-weight":a,"data-white-space":o,...s})}xs.displayName=`Text`;var Ss=K(xs);const Cs=500,ws=(e,t)=>{let n=t-e;if(n>=0)return{count:n,isOverLimit:!1,message:`${n} ${n===1?`character`:`characters`} remaining`};let r=-n;return{count:r,isOverLimit:!0,message:`${r} ${r===1?`character`:`characters`} over`}},Ts={field:`input`,size:{small:`input-small`,medium:`input-medium`,large:`input-large`},focus:`input-focus`,focusTracked:`input-focus-tracked`,block:`input-block`,contrast:`input-contrast`,monospace:`input-monospace`,disabled:`input-disabled`,validation:{error:`input-error`,success:`input-success`},validationFocus:`input-validation-focus`,validationFocusTracked:`input-validation-focus-tracked`,leadingVisual:`input-leading-visual-padding`,leadingVisualLarge:`input-leading-visual-padding-wide`,trailingVisual:`input-trailing-visual-padding`,trailingVisualLarge:`input-trailing-visual-padding-wide`,input:`input-control`,inputPadStart:`input-control-pad-start`,inputPadStartWide:`input-control-pad-start-wide`,inputPadEnd:`input-control-pad-end`,inputPadEndWide:`input-control-pad-end-wide`,visual:`input-visual`,visualBox:`input-visual-box`,spinner:`input-spinner`,spinnerLeading:`input-spinner-leading`,spinnerHidden:`invisible`,spinnerVisible:`visible`,counter:`input-counter`,counterOverLimit:`input-counter-over-limit`,counterIcon:`input-counter-icon`,hidden:`sr-only`},Es=[`date`,`time`,`datetime-local`],Ds=e=>typeof e==`string`||!g(e)?e:(0,q.jsx)(e,{}),Os=({id:e,position:t,hasLoader:n,showLoader:r,children:i})=>{let a=t===`leading`?`TextInput.LeadingVisual`:`TextInput.TrailingVisual`;return n?(0,q.jsx)(`span`,{className:Ts.visual,"data-component":a,children:(0,q.jsxs)(`span`,{id:e,className:Ts.visualBox,children:[i?(0,q.jsx)(`span`,{className:r?Ts.spinnerHidden:Ts.spinnerVisible,children:i}):null,(0,q.jsx)(zi,{srText:null,size:i?void 0:`small`,className:G(r?Ts.spinnerVisible:Ts.spinnerHidden,i&&Ts.spinner,i&&t===`leading`&&Ts.spinnerLeading)})]})}):(0,q.jsx)(`span`,{id:e,className:Ts.visual,"aria-hidden":`true`,"data-component":a,children:i})};function ks(t,n){let{className:r,type:i=`text`,size:a=`medium`,block:o,contrast:s,monospace:c,disabled:l,required:u,validationStatus:d,leadingVisual:f,trailingVisual:p,trailingAction:m,loading:h,loaderPosition:g=`auto`,loaderText:_=`Loading`,characterLimit:v,value:y,defaultValue:b,onChange:x,onFocus:S,onBlur:C,"aria-describedby":w,...T}=t,E=e.useRef(null),D=Gr(n,E),O=Y(),k=Y(),A=Y(),j=Y(),[M,N]=e.useState(!1),P=y!==void 0,[F,I]=e.useState(()=>b===void 0?0:String(b).length),L=P?String(y).length:F,ee=v?ws(L,v):void 0,R=ee?.isOverLimit??!1,te=R?`error`:d,z=e.useRef(!1),[ne,B]=e.useState(``),re=ee?.message;e.useEffect(()=>{if(!z.current)return;let e=window.setTimeout(()=>{B(re??``)},500);return()=>{window.clearTimeout(e)}},[re]);let V=!!(h&&(g===`leading`||f&&g!==`trailing`)),ie=!!(h&&(g===`trailing`||g===`auto`&&!f)),ae=typeof h==`boolean`,oe=!!f||V,se=!!p||ie,ce=!!m,le=!!p||ae,ue=ce,de=a===`large`,fe=e=>{N(!0),S?.(e)},pe=e=>{N(!1),C?.(e)},me=e=>{z.current=!0,v&&!P&&I(e.target.value.length),x?.(e)},he=e=>{(e.target!==E.current||!Es.includes(i))&&E.current?.focus()},ge=[v?j:void 0,w,f?O:void 0,p?k:void 0,h?A:void 0].filter(Boolean).join(` `)||void 0;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{className:G(Ts.field,Ts.size[a],ue?M&&Ts.focusTracked:Ts.focus,o&&Ts.block,s&&Ts.contrast,c&&Ts.monospace,l&&Ts.disabled,te&&Ts.validation[te],te===`error`&&(ue?M&&Ts.validationFocusTracked:Ts.validationFocus),oe&&(de?Ts.leadingVisualLarge:Ts.leadingVisual),se&&!ce&&(de?Ts.trailingVisualLarge:Ts.trailingVisual),r),onClick:he,"aria-busy":h?!0:void 0,"data-component":`TextInput`,"data-size":a,"data-block":o,"data-contrast":s,"data-monospace":c,"data-disabled":l,"data-validation":te,"data-focused":M||void 0,"data-leading-visual":oe||void 0,"data-trailing-visual":se||void 0,"data-trailing-action":ce||void 0,children:[oe?(0,q.jsx)(Os,{id:O,position:`leading`,hasLoader:ae,showLoader:V,children:f?Ds(f):null}):null,(0,q.jsx)(`input`,{ref:D,type:i,value:y,defaultValue:b,disabled:l,required:u,"aria-required":u?!0:void 0,"aria-invalid":te===`error`||void 0,"aria-describedby":ge,onChange:me,onFocus:fe,onBlur:pe,className:G(Ts.input,!oe&&(se||ce?Ts.inputPadStart:Ts.inputPadStartWide),!se&&!ce&&(oe?Ts.inputPadEnd:Ts.inputPadEndWide)),"data-component":`TextInput.Input`,...T}),h?(0,q.jsx)(`span`,{id:A,className:Ts.hidden,children:_}):null,le?(0,q.jsx)(Os,{id:k,position:`trailing`,hasLoader:ae,showLoader:ie,children:p?Ds(p):null}):null,m]}),ee?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Ts.hidden,children:ne}),(0,q.jsxs)(`span`,{id:j,className:Ts.hidden,children:[`You can enter up to `,v,` `,v===1?`character`:`characters`]}),(0,q.jsxs)(Ss,{"aria-hidden":`true`,size:`small`,className:G(Ts.counter,R&&Ts.counterOverLimit),"data-component":`TextInput.CharacterCount`,children:[R?(0,q.jsx)(Qn,{className:Ts.counterIcon}):null,ee.message]})]}):null]})}ks.displayName=`TextInput`;var As=K(ks);const js={root:`input-action`,button:`input-action-button`};function Ms(e,t){let{className:n,icon:r,...i}=e;return(0,q.jsx)(`span`,{className:js.root,"data-component":`TextInput.Action`,children:(0,q.jsx)(na,{ref:t,type:`button`,variant:`invisible`,size:`small`,icon:r,className:G(js.button,n),...i})})}Ms.displayName=`TextInput.Action`;var Ns=K(Ms);const Ps=Object.assign(As,{Action:Ns}),Fs=[`ArrowDown`,`ArrowUp`],Is=[`Backspace`,`Delete`];function Ls(t,n){let{as:r=Ps,className:i,openOnFocus:a=!1,value:o,onFocus:s,onBlur:c,onClick:l,onChange:u,onKeyDown:d,onKeyUp:f,...p}=t,{id:m,inputRef:h,activeDescendantId:g,showMenu:_,setShowMenu:v,setInputValue:y}=e.useContext(gs),{inputValue:b=``,autocompleteSuggestion:x=``}=e.useContext(_s),S=Gr(n,h),[C,w]=e.useState(!0);return e.useEffect(()=>{let e=h?.current;if(e){if(!x){e.value=b;return}!C||document.activeElement!==e||(e.value=x,x.toLowerCase().startsWith(b.toLowerCase())&&e.setSelectionRange(b.length,x.length))}},[x,b,h,C]),e.useEffect(()=>{o!==void 0&&y?.(String(o))},[o,y]),(0,q.jsx)(r,{ref:S,id:m,role:`combobox`,autoComplete:`off`,"aria-autocomplete":`both`,"aria-haspopup":`listbox`,"aria-expanded":!!_,"aria-controls":`${m}-listbox`,"aria-activedescendant":g,className:i,onFocus:e=>{s?.(e),a&&v?.(!0)},onBlur:e=>{c?.(e),v?.(!1)},onClick:e=>{l?.(e),a&&v?.(!0)},onChange:e=>{u?.(e),y?.(e.currentTarget.value),v?.(!0)},onKeyDown:e=>{if(d?.(e),!e.defaultPrevented){if(Is.includes(e.key)&&w(!1),e.key===`Escape`){_?v?.(!1):e.currentTarget.value&&(y?.(``),e.currentTarget.value=``);return}!_&&!e.altKey&&Fs.includes(e.key)&&v?.(!0)}},onKeyUp:e=>{f?.(e),Is.includes(e.key)&&w(!0)},"data-component":`Autocomplete.Input`,...p})}Ls.displayName=`Autocomplete.Input`;var Rs=K(Ls);const zs={loading:`autocomplete-menu-loading`,emptyState:`autocomplete-menu-empty-state`,hidden:`sr-only`},Bs=e=>t=>!!t.text?.toLowerCase().startsWith(e.toLowerCase()),Vs=e=>(t,n)=>e(t)===e(n)?0:e(t)?-1:1,Hs=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),Us=e=>typeof e==`string`||!g(e)?e:(0,q.jsx)(e,{});function Ws(t){let{items:n,selectedItemIds:r=[],selectionVariant:i=`single`,filter:a,sortOnClose:o,emptyStateText:s=`No selectable options`,addNewItem:c,loading:l=!1,onOpenChange:u,onSelectedChange:d,customScrollContainerRef:f,"aria-labelledby":p,className:m}=t,{id:h,inputRef:g,scrollContainerRef:_,activeDescendantId:v,setActiveDescendantId:y,showMenu:b,setShowMenu:x,setInputValue:S,setAutocompleteSuggestion:C}=e.useContext(gs),{deferredInputValue:w=``}=e.useContext(vs),T=`${h}-listbox`,E=e.useCallback(e=>`${T}-${e}`,[T]),[D,O]=e.useState(()=>n.map(e=>e.id));e.useEffect(()=>{if(b)return;let e=n.map(e=>e.id).sort(o??Vs(e=>r.includes(e)));O(t=>Hs(e,t)?t:e)},[b,n,r,o]);let k=e.useMemo(()=>new Map(D.map((e,t)=>[e,t])),[D]),A=e.useMemo(()=>n.filter(a??Bs(w)).sort((e,t)=>(k.get(e.id)??2**53-1)-(k.get(t.id)??2**53-1)),[n,a,w,k]),j=e.useMemo(()=>c?[...A,c.item]:A,[A,c]),M=e.useMemo(()=>j.filter(e=>!e.disabled),[j]),N=M.findIndex(e=>E(e.id)===v),P=M[N],[F,I]=e.useState(!1),L=e=>{if(c&&e.id===c.item.id)c.onAdd(e);else{let t=i===`single`?[e.id]:r.includes(e.id)?r.filter(t=>t!==e.id):[...r,e.id];d?d(t.map(e=>n.find(t=>t.id===e)).filter(e=>e!==void 0)):i===`single`&&S?.(e.text??``)}if(i===`multiple`){S?.(``),C?.(``);return}x?.(!1)},ee=e=>{if(M.length===0)return;let t=(e+M.length)%M.length;I(!0),y?.(E(M[t].id))},R=e=>{let t=e.target.closest(`[role="option"]`);!t||t.id===v||M.some(e=>E(e.id)===t.id)&&(I(!1),y?.(t.id))},te=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;if(e.key===`Enter`){if(!P)return;e.preventDefault(),L(P);return}let t=e.key===`ArrowDown`?1:e.key===`ArrowUp`?-1:0;t!==0&&(e.preventDefault(),ee(N===-1?t===1?0:-1:N+t))},z=e.useRef(te);e.useEffect(()=>{z.current=te}),e.useEffect(()=>{let e=g?.current;if(!e||!b)return;let t=e=>z.current(e);return e.addEventListener(`keydown`,t),()=>{e.removeEventListener(`keydown`,t)}},[g,b]);let ne=P?.text??``,B=F&&!!P&&ne.toLowerCase().startsWith(w.toLowerCase())&&!r.includes(P.id);e.useEffect(()=>{C?.(B?ne:``)},[B,ne,C]),e.useEffect(()=>{if(!v||!F)return;let e=f?.current??_?.current,t=document.getElementById(v);if(!e||!t||!e.contains(t))return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();r.top<n.top?e.scrollTop-=n.top-r.top:r.bottom>n.bottom&&(e.scrollTop+=r.bottom-n.bottom)},[v,F,f,_]);let re=e.useRef(!1);e.useEffect(()=>{let e=!!b;re.current!==e&&(re.current=e,u?.(e))},[b,u]);let V=typeof s==`string`?s:`No options available`,ie=l?``:j.length===0?V:`${j.length} option${j.length===1?``:`s`} available.`,[ae,oe]=e.useState(``),se=e.useRef(``);e.useEffect(()=>{if(!b){se.current=``,oe(``);return}if(ie===se.current)return;se.current=ie;let e=window.setTimeout(()=>oe(ie),500);return()=>{window.clearTimeout(e)}},[b,ie]);let ce=e.useMemo(()=>({container:`Autocomplete`,listRole:`listbox`,listLabelledBy:p,selectionAttribute:`aria-selected`,selectionVariant:i,enableFocusZone:!1}),[p,i]);return(0,q.jsxs)(`div`,{className:G(m),onMouseDown:e=>e.preventDefault(),onMouseMove:R,"data-component":`Autocomplete.Menu`,"data-loading":l?``:void 0,children:[l?(0,q.jsx)(`div`,{className:zs.loading,"data-component":`Autocomplete.Loading`,children:(0,q.jsx)(zi,{})}):j.length===0?s?(0,q.jsx)(`div`,{className:zs.emptyState,"data-component":`Autocomplete.EmptyState`,children:s}):null:(0,q.jsx)(gi.Provider,{value:ce,children:(0,q.jsx)(_a,{id:T,children:j.map(e=>{let{id:t,text:n,description:i,descriptionVariant:a,leadingVisual:o,trailingVisual:s,children:l,...u}=e,d=c&&t===c.item.id?xn:o;return(0,q.jsxs)(_a.Item,{id:E(t),tabIndex:-1,active:E(t)===v,selected:r.includes(t),onSelect:()=>L(e),"data-id":t,...u,children:[d?(0,q.jsx)(_a.LeadingVisual,{children:Us(d)}):null,l,n,i?(0,q.jsx)(_a.Description,{variant:a,children:i}):null,s?(0,q.jsx)(_a.TrailingVisual,{children:Us(s)}):null]},t)})})}),(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:zs.hidden,"data-component":`Autocomplete.Announcement`,children:ae})]})}Ws.displayName=`Autocomplete.Menu`;const Gs={hidden:`sr-only`},Ks=W([`autocomplete-overlay`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2`],{variants:{width:{xsmall:`autocomplete-overlay-width-xsmall`,small:`autocomplete-overlay-width-small`,medium:`autocomplete-overlay-width-medium`,large:`autocomplete-overlay-width-large`,xlarge:`autocomplete-overlay-width-xlarge`,auto:`autocomplete-overlay-width-auto`,anchor:`autocomplete-overlay-width-anchor`},height:{small:`autocomplete-overlay-height-small`,medium:`autocomplete-overlay-height-medium`,large:`autocomplete-overlay-height-large`,xlarge:`autocomplete-overlay-height-xlarge`,auto:`autocomplete-overlay-height-auto`},maxHeight:{small:`autocomplete-overlay-max-height-small`,medium:`autocomplete-overlay-max-height-medium`,large:`autocomplete-overlay-max-height-large`,xlarge:`autocomplete-overlay-max-height-xlarge`},unplaced:{true:`invisible`,false:``}}}),qs=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign&&e.anchorWidth===t.anchorWidth;function Js(t){let{menuAnchorRef:n,side:r=`outside-bottom`,align:i=`start`,width:a=`anchor`,height:o=`auto`,maxHeight:s=`medium`,portalContainerName:c,children:l,className:u,style:d,...f}=t,{inputRef:p,scrollContainerRef:m,showMenu:h,setShowMenu:g}=e.useContext(gs),_=e.useRef(null),v=Gr(m,_),y=e.useCallback(()=>{let e=p?.current??null;return n?.current??e?.closest(`[data-component="TextInput"]`)??e},[n,p]),b=e.useRef(null),[x,S]=e.useState(null),C=e.useCallback(()=>{let e=y(),t=_.current;if(!e||!t)return;let n={...Ga(t,e,{side:r,align:i}),anchorWidth:e.getBoundingClientRect().width};b.current&&qs(b.current,n)||(b.current=n,S(n))},[y,r,i]);return Ur(()=>{if(!h){b.current=null,S(null);return}C();let e=new ResizeObserver(C),t=y();return _.current&&e.observe(_.current),t&&e.observe(t),window.addEventListener(`resize`,C),window.addEventListener(`scroll`,C,!0),()=>{e.disconnect(),window.removeEventListener(`resize`,C),window.removeEventListener(`scroll`,C,!0)}},[h,C,y]),e.useEffect(()=>{if(!h)return;let e=e=>{let{target:t}=e;t instanceof Node&&(_.current?.contains(t)||y()?.contains(t)||g?.(!1))};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[h,g,y]),(0,q.jsx)(Ba,{containerName:c,children:(0,q.jsx)(`div`,{ref:v,"aria-hidden":h?void 0:`true`,className:G(h?Ks({width:a,height:o,maxHeight:s,unplaced:!x}):Gs.hidden,u),style:{...d,"--autocomplete-overlay-top":`${x?.top??0}px`,"--autocomplete-overlay-left":`${x?.left??0}px`,"--autocomplete-overlay-anchor-width":`${x?.anchorWidth??0}px`},"data-component":`Autocomplete.Overlay`,"data-open":h?``:void 0,"data-side":x?.anchorSide??r,"data-align":x?.anchorAlign??i,"data-width":a,"data-height":o,...f,children:l})})}Js.displayName=`Autocomplete.Overlay`;const Ys=Object.assign(ys,{Input:Rs,Menu:Ws,Overlay:Js});n({});const Xs=e=>typeof e==`object`&&Object.keys(e).some(e=>[`narrow`,`regular`,`wide`].includes(e)),Zs=n({}),Qs=20,$s=W(`avatar`,{variants:{shape:{circle:`avatar-circle`,square:`avatar-square`},responsive:{true:`avatar-responsive`,false:``}}});function ec(t,n){let{as:r=`span`,className:i,size:a=20,shape:o=`circle`,style:s,children:c,...l}=t,[u,d]=e.useState(`idle`),f=e.useMemo(()=>({status:u,setStatus:d}),[u]),p=Xs(a),m={"--avatar-size-regular":`20px`};if(p)for(let[e,t]of Object.entries(a))t!==void 0&&(m[`--avatar-size-${e}`]=`${t}px`);else m[`--avatar-size-regular`]=`${a}px`;return(0,q.jsx)(Zs.Provider,{value:f,children:(0,q.jsx)(r,{ref:n,className:G($s({shape:o,responsive:p}),i),style:{...s,...m},"data-component":`Avatar`,"data-responsive":p||void 0,"data-shape":o,"data-status":u,...l,children:c})})}ec.displayName=`Avatar`;var tc=K(ec);const nc=`en-US`,rc=(e,t)=>t?`${e}|${Object.entries(t).filter(([,e])=>e!==void 0).sort(([e],[t])=>e<t?-1:1).map(([e,t])=>`${e}=${String(t)}`).join(`,`)}`:e,ic=e=>{let t=new Map;return(n,r)=>{let i=rc(n,r),a=t.get(i);if(a)return a;let o=e(n,r);return t.set(i,o),o}},ac=new Set([`Adlm`,`Arab`,`Armi`,`Avst`,`Hebr`,`Mand`,`Mend`,`Nkoo`,`Rohg`,`Samr`,`Syrc`,`Thaa`]),oc=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),sc=e=>{try{return new Intl.Locale(e).maximize().script}catch{return}},cc=e=>{let t=sc(e);return t?ac.has(t):oc.has(e.split(`-`)[0].toLowerCase())},lc=e=>cc(e)?`rtl`:`ltr`,uc=()=>{let e=typeof navigator>`u`?void 0:navigator.language;if(!e)return nc;try{return Intl.DateTimeFormat.supportedLocalesOf([e]),e}catch{return nc}},dc=ic((e,t)=>new Intl.Collator(e,t)),fc=(e=nc,t={})=>dc(e,t),pc=RegExp(`\\p{P}`,`gu`),mc=ic((e,t={})=>{let n=dc(e,{usage:`search`,...t}),r=e=>{let t=e.normalize(`NFC`);return n.resolvedOptions().ignorePunctuation?t.replace(pc,``):t},i=(e,t)=>n.compare(e,t)===0;return{startsWith:(e,t)=>{if(t.length===0)return!0;let[n,a]=[r(e),r(t)];return i(n.slice(0,a.length),a)},endsWith:(e,t)=>{if(t.length===0)return!0;let[n,a]=[r(e),r(t)];return i(n.slice(-a.length),a)},contains:(e,t)=>{if(t.length===0)return!0;let[n,a]=[r(e),r(t)];for(let e=0;e+a.length<=n.length;e++)if(i(n.slice(e,e+a.length),a))return!0;return!1}}}),hc=({locale:e,...t}={})=>mc(e??`en-US`,t),gc=ic((e,t)=>new Intl.NumberFormat(e,t)),_c=(e=nc,t={})=>gc(e,t),vc=(e,t=nc,n={})=>gc(t,n).format(e),yc=ic((e,t)=>new Intl.DateTimeFormat(e,t)),bc=(e=nc,t={})=>yc(e,t),xc=[``,`kilo`,`mega`,`giga`,`tera`],Sc=[``,`kilo`,`mega`,`giga`,`tera`,`peta`],Cc=(e,t=nc,n={})=>{if(Number.isNaN(e))return``;if(e===0)return`0 B`;let{precision:r=3,unitSystem:i=`decimal`,unit:a=`byte`,unitDisplay:o=`short`}=n,s=i===`binary`?1024:1e3,c=a===`bit`?xc:Sc,l=Math.abs(e),u=0;for(;l>=s&&u<c.length-1;)l/=s,u++;let d=parseFloat(l.toPrecision(r));return vc(e<0?-d:d,t,{style:`unit`,unit:c[u]+a,unitDisplay:o})},wc=`ltr`,Tc=n({direction:`ltr`}),Ec=n({locale:nc,direction:lc(nc)}),Dc=()=>o(Ec),Oc=`auto`,kc=e=>(window?.addEventListener?.(`languagechange`,e),()=>window?.removeEventListener?.(`languagechange`,e)),Ac=()=>nc,jc=()=>e.useSyncExternalStore(kc,uc,Ac);function Mc({children:t,className:n,...r}){let{locale:i}=Dc(),a=jc(),o=r.locale??i,s=o===`auto`?a:o,c=lc(s),l=e.useMemo(()=>({locale:s,direction:c}),[s,c]),u=e.useMemo(()=>({direction:c}),[c]);return(0,q.jsx)(Ec.Provider,{value:l,children:(0,q.jsx)(Tc.Provider,{value:u,children:(0,q.jsx)(`div`,{className:n,"data-component":`LocaleProvider`,lang:s,dir:c,children:t})})})}Mc.displayName=`LocaleProvider`;const Nc=({locale:e,...t}={})=>{let{locale:n}=Dc();return fc(e??n,t)},Pc=({locale:e,...t}={})=>{let{locale:n}=Dc();return bc(e??n,t)},Fc=({locale:e,...t}={})=>{let{locale:n}=Dc();return hc({locale:e??n,...t})},Ic=({locale:e,...t}={})=>{let{locale:n}=Dc();return _c(e??n,t)},Lc={root:`avatar-fallback`},Rc=(e,t)=>{let n=e.trim().split(/\s+/).filter(Boolean);if(n.length===0)return``;let[r]=[...n[0]],[i]=[...n[n.length-1]];return(n.length>1?`${r}${i}`:r).toLocaleUpperCase(t)};function zc(t,n){let{className:r,name:i,...a}=t,{status:o=`idle`}=e.useContext(Zs),{locale:s}=Dc();return o===`loaded`?null:(0,q.jsx)(`span`,{ref:n,role:`img`,"aria-label":i,className:G(Lc.root,r),"data-component":`Avatar.Fallback`,"data-status":o,...a,children:Rc(i,s)})}zc.displayName=`Avatar.Fallback`;var Bc=K(zc);const Vc={root:`avatar-image`};function Hc(t,n){let{className:r,alt:i=``,src:a,onLoad:o,onError:s,...c}=t,{setStatus:l}=e.useContext(Zs),[u,d]=e.useState(`idle`),f=e.useRef(null),p=Gr(f,n),m=e.useCallback(e=>{d(e),l?.(e)},[l]);return Ur(()=>{let e=f.current;if(!e||!a){m(`idle`);return}m(e.complete&&e.naturalWidth>0?`loaded`:`loading`)},[m,a]),(0,q.jsx)(`img`,{ref:p,alt:i,src:a,onLoad:e=>{m(`loaded`),o?.(e)},onError:e=>{m(`error`),s?.(e)},className:G(Vc.root,r),"data-component":`Avatar.Image`,"data-status":u,...c})}Hc.displayName=`Avatar.Image`;var Uc=K(Hc);const Wc=Object.assign(tc,{Image:Uc,Fallback:Bc}),Gc=[`narrow`,`regular`,`wide`],Kc={root:`avatar-stack`,responsive:`avatar-stack-responsive`,align:{left:`avatar-stack-align-left`,right:`avatar-stack-align-right`},variant:{cascade:`avatar-stack-cascade`,stack:`avatar-stack-stack`},width:{cascade:{two:`avatar-stack-cascade-two`,three:`avatar-stack-cascade-three`,more:`avatar-stack-cascade-more`},stack:{two:`avatar-stack-stack-two`,three:`avatar-stack-stack-three`,more:`avatar-stack-stack-more`}},body:{collapsed:`avatar-stack-body`,expandable:`avatar-stack-body-expandable`},item:{root:`avatar-stack-item`,first:`avatar-stack-item-first`,overlapped:`avatar-stack-item-overlapped`,mask:`avatar-stack-item-mask`,shape:{circle:`avatar-stack-item-circle`,square:`avatar-stack-item-square`},edge:{circle:`avatar-stack-item-edge-circle`,square:`avatar-stack-item-edge-square`},edgeAlignRight:`avatar-stack-item-edge-align-right`,layer:[`z-5`,`z-4`,`z-3`,`z-2`,`z-1`],fade:[``,``,`avatar-stack-item-fade-third`,`avatar-stack-item-fade-fourth`,`avatar-stack-item-fade-fifth`],overflow:`avatar-stack-item-overflow`,expanded:`avatar-stack-item-expanded`,expandedFirst:`avatar-stack-item-expanded-first`}},qc=e=>{if(!Xs(e)){let t=e??20;return{narrow:t,regular:t,wide:t}}let t=e.regular??20;return{narrow:e.narrow??t,regular:t,wide:e.wide??t}},Jc=t=>e.isValidElement(t)&&t.type===tc,Yc=t=>e.isValidElement(t)&&t.type===e.Fragment,Xc=t=>e.Children.toArray(t).flatMap(e=>Yc(e)?Xc(e.props.children):Jc(e)?[e]:[]),Zc=e=>{let t={narrow:[],regular:[],wide:[]};for(let n of e){let e=qc(n.props.size);for(let n of Gc)t[n].push(e[n])}return Object.fromEntries(Gc.map(e=>[e,t[e].length>0?Math.min(...t[e]):20]))};function Qc(t,n){let{as:r=`span`,className:i,children:a,variant:o=`cascade`,shape:s=`circle`,size:c,align:l=`left`,disableExpand:u,style:d,...f}=t,p=e.useRef(null),[m,h]=e.useState(!1);e.useEffect(()=>{if(!p.current)return;let e=p.current,t=()=>{h(ti(e))},n=new MutationObserver(t);return n.observe(e,{childList:!0}),t(),()=>{n.disconnect()}},[]);let g=Xc(a),_=g.length,v=_>3?`more`:_===3?`three`:_===2?`two`:void 0,y=!c||Xs(c),b=!u,x={};if(Xs(c)){let e=qc(c);for(let t of Gc)x[`--avatar-stack-size-${t}`]=`${e[t]}px`}else if(c)x[`--avatar-stack-size`]=`${c}px`;else{let e=Zc(g);for(let t of Gc)x[`--avatar-stack-size-${t}`]=`${e[t]}px`}let S=g.map((t,n)=>e.cloneElement(t,{className:G(Kc.item.root,n===0?Kc.item.first:Kc.item.overlapped,Kc.item.shape[s],l===`right`&&s===`square`?Kc.item.edgeAlignRight:Kc.item.edge[s],n>0&&s===`circle`&&Kc.item.mask,s===`square`&&Kc.item.layer[Math.min(n,4)],o===`cascade`&&Kc.item.fade[n],n>4&&Kc.item.overflow,b&&Kc.item.expanded,b&&n===0&&Kc.item.expandedFirst,t.props.className)}));return(0,q.jsx)(r,{ref:n,className:G(Kc.root,Kc.variant[o],v&&Kc.width[o][v],Kc.align[l],y&&Kc.responsive,i),style:{...d,...x},"data-component":`AvatarStack`,"data-variant":o,"data-shape":s,"data-avatar-count":_>3?`3+`:_,"data-align":l,"data-responsive":y||void 0,...f,children:(0,q.jsx)(`div`,{ref:p,className:b?Kc.body.expandable:Kc.body.collapsed,tabIndex:b&&!m?0:void 0,"data-component":`AvatarStack.Body`,"data-disable-expand":u,children:S})})}Qc.displayName=`AvatarStack`;var $c=K(Qc);const el={indicator:`badge-indicator`,visual:`badge-visual`},tl=W(`badge`,{variants:{size:{small:`badge-small`,medium:`badge-medium`,large:`badge-large`},variant:{default:`badge-default`,primary:`badge-primary`,accent:`badge-accent`,success:`badge-success`,attention:`badge-attention`,severe:`badge-severe`,danger:`badge-danger`,done:`badge-done`,sponsors:`badge-sponsors`,outline:`badge-outline`,invisible:`badge-invisible`,link:`badge-link`},appearance:{filled:``,dot:`badge-dot`}}}),nl=t=>e.isValidElement(t)?t:(0,q.jsx)(t,{});function rl(e,t){let{as:n=`span`,className:r,variant:i=`default`,appearance:a=`filled`,size:o=`small`,leadingVisual:s,children:c,...l}=e,u=a===`dot`&&!s;return(0,q.jsxs)(n,{ref:t,className:G(tl({size:o,variant:i,appearance:a}),r),"data-component":`Badge`,"data-variant":i,"data-appearance":a,"data-size":o,...l,children:[s?(0,q.jsx)(`span`,{className:el.visual,"data-component":`Badge.LeadingVisual`,children:nl(s)}):null,u?(0,q.jsx)(`span`,{"aria-hidden":`true`,className:el.indicator}):null,c]})}rl.displayName=`Badge`;var il=K(rl);const al=n({});function ol(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(n),"data-component":`Banner.Description`,...r})}ol.displayName=`Banner.Description`;var sl=K(ol);const cl={root:`banner-title`};function ll(t,n){let{as:r=`h2`,className:i,id:a,...o}=t,{titleId:s}=e.useContext(al);return(0,q.jsx)(r,{ref:n,id:a??s,className:G(cl.root,i),"data-component":`Banner.Title`,...o})}ll.displayName=`Banner.Title`;var ul=K(ll);const dl={container:`banner-container`,actions:`banner-actions`,actionsInline:`banner-actions-inline`,actionsStacked:`banner-actions-stacked`,order:{shown:`banner-actions-shown`,hidden:`banner-actions-hidden`,inlineLeading:`banner-actions-inline-leading`,inlineTrailing:`banner-actions-inline-trailing`,responsiveLeading:`banner-actions-responsive-leading`,responsiveTrailing:`banner-actions-responsive-trailing`},hidden:`sr-only`},fl=W(`banner`,{variants:{layout:{default:`banner-default`,compact:`banner-compact`},variant:{critical:`banner-critical`,info:`banner-info`,success:`banner-success`,upsell:`banner-upsell`,warning:`banner-warning`},flush:{true:`banner-flush`,false:``}}}),pl=W(`banner-icon`,{variants:{tight:{true:`banner-icon-tight`,false:``}}}),ml=W(`banner-body`,{variants:{actions:{stacked:`banner-body-stacked`,inline:`banner-body-inline`,responsive:`banner-body-responsive`}}}),hl=W(`banner-content`,{variants:{tight:{true:`banner-content-tight`,false:``}}}),gl=W(`banner-dismiss`,{variants:{withActions:{true:`banner-dismiss-with-actions`,false:``}}}),_l={critical:Qn,info:ir,success:Ln,upsell:ir,warning:jr},vl=[`info`,`upsell`],yl=({primaryAction:e,secondaryAction:t,className:n,leadingClassName:r,trailingClassName:i})=>(0,q.jsxs)(`div`,{"data-component":`Banner.Actions`,children:[(0,q.jsxs)(`div`,{className:G(dl.actions,n,i),"data-primary-action":`trailing`,children:[t,e]}),(0,q.jsxs)(`div`,{className:G(dl.actions,n,r),"data-primary-action":`leading`,children:[e,t]})]});function bl(e,t){let{className:n,children:r,title:i,description:a,hideTitle:o,leadingVisual:s,variant:c=`info`,layout:l=`default`,actionsLayout:u=`default`,flush:d=!1,onDismiss:f,primaryAction:p,secondaryAction:m,"aria-label":h,"aria-labelledby":g,..._}=e,v=Y(),y=!!f,b=!!(p||m),x=!!o&&!b,S=_l[c],C=s&&vl.includes(c)?s:(0,q.jsx)(S,{}),w=u===`stacked`||y&&!o&&u!==`inline`,T=w?{leading:dl.order.shown,trailing:dl.order.hidden}:u===`inline`?{leading:dl.order.inlineLeading,trailing:dl.order.inlineTrailing}:{leading:dl.order.responsiveLeading,trailing:dl.order.responsiveTrailing},E=i?(0,q.jsx)(ul,{children:i}):null;return(0,q.jsx)(al.Provider,{value:{titleId:v},children:(0,q.jsx)(`div`,{className:dl.container,children:(0,q.jsxs)(`section`,{ref:t,"aria-labelledby":g??(h?void 0:v),"aria-label":g?void 0:h,tabIndex:-1,className:G(fl({layout:l,variant:c,flush:d}),n),"data-component":`Banner`,"data-variant":c,"data-layout":l,"data-actions-layout":u,"data-dismissible":y||void 0,"data-has-actions":b||void 0,"data-title-hidden":o||void 0,"data-flush":d||void 0,..._,children:[(0,q.jsx)(`div`,{className:G(pl({tight:x})),"data-component":`Banner.Icon`,children:C}),(0,q.jsxs)(`div`,{className:G(ml({actions:w?`stacked`:u===`inline`?`inline`:`responsive`})),children:[(0,q.jsxs)(`div`,{className:G(hl({tight:x})),"data-component":`Banner.Content`,children:[E?o?(0,q.jsx)(`span`,{className:dl.hidden,children:E}):E:null,a?(0,q.jsx)(sl,{children:a}):null,r]}),b?(0,q.jsx)(yl,{primaryAction:p,secondaryAction:m,className:G(u===`inline`&&dl.actionsInline,w&&dl.actionsStacked),leadingClassName:T.leading,trailingClassName:T.trailing}):null]}),y?(0,q.jsx)(na,{icon:Xn,"aria-label":`Dismiss banner`,variant:`invisible`,onClick:f,className:G(gl({withActions:b})),"data-component":`Banner.Dismiss`}):null]})})})}bl.displayName=`Banner`;var xl=K(bl);function Sl(e,t){return(0,q.jsx)($i,{ref:t,variant:`default`,"data-component":`Banner.PrimaryAction`,...e})}Sl.displayName=`Banner.PrimaryAction`;var Cl=K(Sl);function wl(e,t){return(0,q.jsx)($i,{ref:t,variant:`invisible`,"data-component":`Banner.SecondaryAction`,...e})}wl.displayName=`Banner.SecondaryAction`;var Tl=K(wl);const El=Object.assign(xl,{Title:ul,Description:sl,PrimaryAction:Cl,SecondaryAction:Tl}),Dl={container:`blankslate-container`,root:`blankslate`,border:`blankslate-border`,narrow:`blankslate-narrow`,size:{small:`blankslate-small`,medium:`blankslate-medium`,large:`blankslate-large`},padding:{small:`blankslate-padding-small`,medium:`blankslate-padding-medium`,large:`blankslate-padding-large`},spaciousPadding:{small:`blankslate-padding-spacious-small`,medium:`blankslate-padding-spacious-medium`,large:`blankslate-padding-spacious-large`},tightType:`blankslate-tight-type`,tightPadding:{small:`blankslate-tight-padding-small`,medium:`blankslate-tight-padding-medium`,large:`blankslate-tight-padding-large`},tightSpaciousPadding:`blankslate-tight-padding-spacious`};function Ol(e,t){let{as:n=`div`,className:r,size:i=`medium`,border:a,narrow:o,spacious:s,...c}=e;return(0,q.jsx)(`div`,{className:Dl.container,children:(0,q.jsx)(n,{ref:t,className:G(Dl.root,Dl.size[i],s?Dl.spaciousPadding[i]:Dl.padding[i],Dl.tightType,s?Dl.tightSpaciousPadding:Dl.tightPadding[i],a&&Dl.border,o&&Dl.narrow,r),"data-component":`Blankslate`,"data-size":i,"data-border":a,"data-narrow":o,"data-spacious":s,...c})})}Ol.displayName=`Blankslate`;var kl=K(Ol);const Al={root:`blankslate-description`};function jl(e,t){let{className:n,...r}=e;return(0,q.jsx)(`p`,{ref:t,className:G(Al.root,n),"data-component":`Blankslate.Description`,...r})}jl.displayName=`Blankslate.Description`;var Ml=K(jl);const Nl={root:`blankslate-heading`};function Pl(e,t){let{as:n=`h2`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Nl.root,r),"data-component":`Blankslate.Heading`,...i})}Pl.displayName=`Blankslate.Heading`;var Fl=K(Pl);const Il={root:`blankslate-action`,tight:`blankslate-action-tight`};function Ll(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Il.root,Il.tight,n),...r})}Ll.displayName=`Blankslate.Action`;var Rl=K(Ll);function zl(e,t){return(0,q.jsx)(Rl,{ref:t,"data-component":`Blankslate.PrimaryAction`,...e})}zl.displayName=`Blankslate.PrimaryAction`;var Bl=K(zl);const Vl={root:`link`,inline:`link-inline`,muted:`link-muted`};function Hl(e,t){let{as:n=`a`,className:r,muted:i,inline:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Vl.root,a&&Vl.inline,i&&Vl.muted,r),"data-component":`Link`,"data-muted":i,"data-inline":a,...o})}Hl.displayName=`Link`;var Ul=K(Hl);function Wl(e,t){let{href:n,children:r,...i}=e;return(0,q.jsx)(Rl,{ref:t,"data-component":`Blankslate.SecondaryAction`,...i,children:n===void 0?r:(0,q.jsx)(Ul,{href:n,children:r})})}Wl.displayName=`Blankslate.SecondaryAction`;var Gl=K(Wl);const Kl={root:`blankslate-visual`,tight:`blankslate-visual-tight`};function ql(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(Kl.root,Kl.tight,n),"data-component":`Blankslate.Visual`,...r})}ql.displayName=`Blankslate.Visual`;var Jl=K(ql);const Yl=Object.assign(kl,{Visual:Jl,Heading:Fl,Description:Ml,PrimaryAction:Bl,SecondaryAction:Gl}),Xl=W(`blockquote`,{variants:{size:{large:`blockquote-large`,medium:`blockquote-medium`,small:`blockquote-small`},variant:{subtle:`blockquote-subtle`,default:`blockquote-default`,emphasis:`blockquote-emphasis`}}});function Zl(e,t){let{as:n=`blockquote`,className:r,size:i=`medium`,variant:a=`default`,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Xl({size:i,variant:a}),r),"data-component":`Blockquote`,"data-size":i,"data-variant":a,...o})}Zl.displayName=`Blockquote`;var Ql=K(Zl);const $l=W(`box`,{variants:{padding:{none:`box-padding-none`,tight:`box-padding-tight`,condensed:`box-padding-condensed`,cozy:`box-padding-cozy`,normal:`box-padding-normal`,spacious:`box-padding-spacious`},paddingBlock:{none:`box-padding-block-none`,tight:`box-padding-block-tight`,condensed:`box-padding-block-condensed`,cozy:`box-padding-block-cozy`,normal:`box-padding-block-normal`,spacious:`box-padding-block-spacious`},paddingInline:{none:`box-padding-inline-none`,tight:`box-padding-inline-tight`,condensed:`box-padding-inline-condensed`,cozy:`box-padding-inline-cozy`,normal:`box-padding-inline-normal`,spacious:`box-padding-inline-spacious`},background:{none:`box-background-none`,default:`box-background-default`,muted:`box-background-muted`,inset:`box-background-inset`,emphasis:`box-background-emphasis`},border:{none:`box-border-none`,default:`box-border-default`,muted:`box-border-muted`},radius:{none:`box-radius-none`,small:`box-radius-small`,medium:`box-radius-medium`,large:`box-radius-large`,full:`box-radius-full`},shadow:{none:`box-shadow-none`,xsmall:`box-shadow-xsmall`,small:`box-shadow-small`,medium:`box-shadow-medium`},overflow:{visible:`box-overflow-visible`,hidden:`box-overflow-hidden`}}});function eu(e,t){let{as:n=`div`,className:r,padding:i=`none`,paddingBlock:a,paddingInline:o,background:s=`none`,border:c=`none`,radius:l=`none`,shadow:u=`none`,overflow:d=`visible`,...f}=e;return(0,q.jsx)(n,{ref:t,className:G($l({padding:i,paddingBlock:a,paddingInline:o,background:s,border:c,radius:l,shadow:u,overflow:d}),r),"data-component":`Box`,"data-padding":i,"data-padding-block":a,"data-padding-inline":o,"data-background":s,"data-border":c,"data-radius":l,"data-shadow":u,"data-overflow":d,...f})}eu.displayName=`Box`;var tu=K(eu);function nu({items:e}){return(0,q.jsxs)(eo,{children:[(0,q.jsx)(eo.Anchor,{children:(0,q.jsx)(na,{icon:lr,"aria-label":`${e.length} more breadcrumb items`,variant:`invisible`,size:`small`,"data-component":`Breadcrumbs.OverflowMenu`})}),(0,q.jsx)(eo.Overlay,{children:(0,q.jsx)(_a,{children:e.map((e,t)=>{let{children:n,selected:r,as:i,...a}=e.props;return(0,q.jsx)(_a.LinkItem,{as:i,"aria-current":r?`page`:void 0,...a,children:n},t)})})})]})}nu.displayName=`Breadcrumbs.OverflowMenu`;const ru=n({}),iu={root:`breadcrumbs`,list:`breadcrumbs-list`,listWrap:`breadcrumbs-list-wrap`,listMenu:`breadcrumbs-list-menu`,item:`breadcrumbs-item`,itemMenu:`breadcrumbs-item-menu`,separator:`breadcrumbs-separator`},au=({availableWidth:e,itemCount:t,itemWidths:n,menuButtonWidth:r,overflow:i,hideRoot:a})=>{let o=a,s=n[0]??0,c=e<544,l=4;o?c&&t>2&&(l=1):l=3;let u=e=>{let t=e.reduce((e,t)=>e+t+16,0);return o?t:s+t},d=[...n],f=0;if(e>0&&d.length>0){let t=u(d);for(;i!==`wrap`&&(t>e||d.length>l);){if(f+=1,d=d.slice(1),t=u(d)+r,d.length===1&&t>e){o=!0;break}o=a}}return{menuItemCount:f,hideRoot:o}},ou=t=>e.Children.toArray(t).filter(t=>e.isValidElement(t)),su=()=>(0,q.jsx)(`span`,{className:iu.separator,"aria-hidden":`true`,"data-component":`Breadcrumbs.Separator`,children:(0,q.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,children:(0,q.jsx)(`path`,{d:`M10.956 1.27994L6.06418 14.7201L5 14.7201L9.89181 1.27994L10.956 1.27994Z`,fill:`currentcolor`})})});function cu(t){let{className:n,children:r,style:i,overflow:a=`wrap`,variant:o=`normal`}=t,s=e.useRef(null),c=e.useMemo(()=>ou(r),[r]),l=c[0],u=a!==`menu-with-root`,[d,f]=e.useState([]),[p,m]=e.useState(null),[h,g]=e.useState(28),_=e.useCallback(e=>{let t=e?.querySelector(`button`);t&&g(e=>e===t.offsetWidth?e:t.offsetWidth)},[]);Ur(()=>{if(a===`wrap`)return;let e=s.current;if(!e)return;m(t=>t===e.offsetWidth?t:e.offsetWidth);let t=e.querySelectorAll(`li[data-crumb]`);t.length===c.length&&f(Array.from(t,e=>e.offsetWidth))},[c,a]),e.useEffect(()=>{let e=s.current;if(a===`wrap`||!e)return;let t=new ResizeObserver(e=>{for(let t of e){let e=Math.round(t.contentRect.width);m(t=>t===e?t:e)}});return t.observe(e),()=>{t.disconnect()}},[a]);let{menuItemCount:v,hideRoot:y}=e.useMemo(()=>a===`wrap`||d.length!==c.length?{menuItemCount:0,hideRoot:u}:au({availableWidth:p??800,itemCount:c.length,itemWidths:d,menuButtonWidth:h,overflow:a,hideRoot:u}),[a,u,c,d,p,h]),b=e.useMemo(()=>({variant:o}),[o]),x=e.useMemo(()=>{let e=(e,t)=>(0,q.jsxs)(`li`,{className:iu.item,"data-crumb":``,children:[e,(0,q.jsx)(su,{})]},t);if(v===0)return c.map((t,n)=>e(t,n));let t=c.slice(0,v),n=c.slice(v),r=y?t:t.slice(1),i=(0,q.jsxs)(`li`,{ref:_,className:G(iu.item,iu.itemMenu),"data-overflow-menu":``,children:[(0,q.jsx)(nu,{items:r}),(0,q.jsx)(su,{})]},`overflow-menu`),a=n.map((t,n)=>e(t,`visible-${n}`));return y?[i,...a]:[e(l,`root`),i,...a]},[c,v,y,_,l]);return(0,q.jsx)(ru.Provider,{value:b,children:(0,q.jsx)(`nav`,{ref:s,"aria-label":`Breadcrumbs`,className:G(iu.root,n),style:i,"data-component":`Breadcrumbs`,"data-overflow":a,"data-variant":o,children:(0,q.jsx)(`ol`,{className:G(iu.list,a===`wrap`?iu.listWrap:iu.listMenu),children:x})})})}cu.displayName=`Breadcrumbs`;const lu={root:`breadcrumbs-link`,normal:`breadcrumbs-link-normal`,normalSelected:`breadcrumbs-link-normal-selected`,spacious:`breadcrumbs-link-spacious`,spaciousSelected:`breadcrumbs-link-spacious-selected`};function uu(t,n){let{as:r=`a`,className:i,selected:a,...o}=t,{variant:s=`normal`}=e.useContext(ru),c=s===`spacious`;return(0,q.jsx)(r,{ref:n,"aria-current":a?`page`:void 0,className:G(lu.root,c?lu.spacious:lu.normal,a&&(c?lu.spaciousSelected:lu.normalSelected),i),"data-component":`Breadcrumbs.Item`,"data-selected":a?``:void 0,...o})}uu.displayName=`Breadcrumbs.Item`;var du=K(uu);const fu=Object.assign(cu,{Item:du}),pu=n({}),mu=n({}),hu=n({}),gu=W(`bubble`,{variants:{align:{start:`bubble-align-start`,end:`bubble-align-end`},variant:{default:`bubble-default`,secondary:`bubble-secondary`,muted:`bubble-muted`,tinted:`bubble-tinted`,outline:`bubble-outline`,ghost:`bubble-ghost`,danger:`bubble-danger`}}});function _u(t,n){let{as:r=`div`,className:i,variant:a=`default`,align:o,...s}=t,{align:c}=e.useContext(hu),{align:l}=e.useContext(pu),u=o??c??l??`start`,d={align:u,variant:a};return(0,q.jsx)(mu.Provider,{value:d,children:(0,q.jsx)(r,{ref:n,className:G(gu({align:u,variant:a}),i),"data-component":`Bubble`,"data-variant":a,"data-align":u,...s})})}_u.displayName=`Bubble`;var vu=K(_u);const yu={root:`bubble-content`};function bu(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(yu.root,r),"data-component":`Bubble.Content`,...i})}bu.displayName=`Bubble.Content`;var xu=K(bu);const Su={root:`bubble-group`};function Cu(e,t){let{as:n=`div`,className:r,align:i=`start`,...a}=e;return(0,q.jsx)(hu.Provider,{value:{align:i},children:(0,q.jsx)(n,{ref:t,className:G(Su.root,r),"data-component":`Bubble.Group`,"data-align":i,...a})})}Cu.displayName=`Bubble.Group`;var wu=K(Cu);const Tu=W(`bubble-reactions`,{variants:{side:{top:`bubble-reactions-top`,bottom:`bubble-reactions-bottom`},align:{start:`bubble-reactions-align-start`,end:`bubble-reactions-align-end`}}});function Eu(t,n){let{as:r=`div`,className:i,side:a=`bottom`,align:o,...s}=t,{align:c}=e.useContext(mu),l=o??c??`end`;return(0,q.jsx)(r,{ref:n,className:G(Tu({side:a,align:l}),i),"data-component":`Bubble.Reactions`,"data-side":a,"data-align":l,...s})}Eu.displayName=`Bubble.Reactions`;var Du=K(Eu);const Ou=Object.assign(vu,{Group:wu,Content:xu,Reactions:Du}),ku={root:`button-group`,item:{root:`button-group-item`,first:`button-group-item-first`,last:`button-group-item-last`}},Au=[`[disabled]`,`[hidden]`,`[inert]`],ju=[`button`,`a[href]`,`summary`].map(e=>`${e}:not(${Au.join(`):not(`)})`).join(`, `),Mu=e=>e?Array.from(e.querySelectorAll(ju)):[],Nu=(e,t)=>{for(let n of e)n.tabIndex=n===t?0:-1};function Pu(t,n){let{as:r=`div`,className:i,children:a,role:o,onFocus:s,onKeyDown:c,...l}=t,u=e.useRef(null),d=Gr(n,u),f=o===`toolbar`,p=e.useCallback(()=>{if(!f)return;let e=Mu(u.current),t=e.find(e=>e===document.activeElement);Nu(e,t??e[0])},[f]);e.useEffect(p),e.useEffect(()=>{if(!f||u.current===null)return;let e=u.current,t=new MutationObserver(p);return t.observe(e,{childList:!0,subtree:!0}),()=>{t.disconnect();for(let t of Mu(e))t.removeAttribute(`tabindex`)}},[f,p]);let m=e=>{if(s?.(e),!f)return;let t=Mu(u.current);t.includes(e.target)&&Nu(t,e.target)},h=e=>{c?.(e);let t=e.key===`ArrowRight`?1:e.key===`ArrowLeft`?-1:0;if(!f||t===0||e.defaultPrevented)return;let n=Mu(u.current),r=n.indexOf(document.activeElement);r!==-1&&(e.preventDefault(),n[(r+t+n.length)%n.length].focus())},g=e.Children.toArray(a);return(0,q.jsx)(r,{ref:d,className:G(ku.root,i),role:o,onFocus:m,onKeyDown:h,"data-component":`ButtonGroup`,...l,children:g.map((t,n)=>(0,q.jsx)(`div`,{className:G(ku.item.root,n===0&&ku.item.first,n===g.length-1&&ku.item.last),"data-component":`ButtonGroup.Item`,children:t},e.isValidElement(t)?t.key:n))})}Pu.displayName=`ButtonGroup`;var Fu=K(Pu);const Iu={root:`calendar-day`,interactive:`calendar-day-interactive`,selected:`calendar-day-selected`,between:`calendar-day-between`,outside:`calendar-day-outside`,unavailable:`calendar-day-unavailable`,hidden:`sr-only`};function Lu(e,t){let{label:n,name:r,dayKey:i,selected:a,range:o,today:s,outside:c,unavailable:l,tabbable:u,className:d,...f}=e,p=o===`middle`,m=a&&!p;return(0,q.jsxs)(`button`,{ref:t,type:`button`,tabIndex:u?0:-1,"aria-pressed":a,"aria-current":s?`date`:void 0,"aria-disabled":l||void 0,className:G(Iu.root,!l&&!a&&Iu.interactive,c&&Iu.outside,p&&Iu.between,l&&Iu.unavailable,m&&Iu.selected,d),"data-component":`Calendar.Day`,"data-date":i,"data-selected":a,"data-range":o,"data-today":s||void 0,"data-outside":c||void 0,"data-unavailable":l||void 0,"data-tabbable":u,...f,children:[(0,q.jsx)(`span`,{"aria-hidden":`true`,children:n}),(0,q.jsx)(`span`,{className:Iu.hidden,children:r})]})}Lu.displayName=`Calendar.Day`;var Ru=K(Lu),zu=Me(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),Bu=Me(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Vu=Me(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),Hu=Me(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),Uu=Me(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),Wu=Pe(zu()),Gu=Pe(Bu()),Ku=Pe(Vu()),qu=Pe(Hu()),Ju=Pe(Uu());Wu.default.extend(Gu.default),Wu.default.extend(Ku.default),Wu.default.extend(qu.default),Wu.default.extend(Ju.default);const Yu=7,Xu=`YYYY-MM-DD`,Zu=e=>(0,Wu.default)(e),Qu=e=>{if(e==null)return null;let t=Zu(e);return t.isValid()?t:null},$u=e=>e.format(Xu),ed={from:null,to:null},td=(e,t)=>{if(e==null)return ed;if(t){let t=e;return{from:Qu(t.from),to:Qu(t.to)}}let n=Qu(e);return{from:n,to:n}},nd=()=>(0,Wu.default)().localeData().firstDayOfWeek()??0,rd=e=>{let t=(0,Wu.default)().localeData(),n=t.weekdaysMin(),r=t.weekdays();return Array.from({length:7},(t,i)=>{let a=(e+i)%7;return{day:a,narrow:n[a],full:r[a]}})},id=(e,t)=>e.subtract((e.day()-t+7)%7,`day`),ad=(e,t,n=!1)=>{let r=e.startOf(`month`),i=id(r,t),a=(r.day()-t+7)%7,o=(t+7-1-e.endOf(`month`).day())%7,s=a+e.daysInMonth()+o,c=n?6:s/7;return Array.from({length:c},(e,t)=>Array.from({length:7},(e,n)=>i.add(t*7+n,`day`)))},od=(e,t,n,r)=>(t===null||!e.isBefore(t,`day`))&&(n===null||!e.isAfter(n,`day`))&&!r?.(e.toDate()),sd=(e,t)=>e.isAfter(t,`day`)?[t,e]:[e,t],cd=(e,t,n)=>{if(t===null)return n!==null&&e.isSame(n,`day`);if(n===null)return e.isSame(t,`day`);let[r,i]=sd(t,n);return!e.isBefore(r,`day`)&&!e.isAfter(i,`day`)},ld=(e,t,n)=>{if(t===null||n===null||t.isSame(n,`day`))return;let[r,i]=sd(t,n);return e.isSame(r,`day`)?`start`:e.isSame(i,`day`)?`end`:e.isAfter(r,`day`)&&e.isBefore(i,`day`)?`middle`:void 0},ud=(e,t,n)=>{if(e===null||t!==null)return{from:n,to:null};if(n.isSame(e,`day`))return ed;let[r,i]=sd(e,n);return{from:r,to:i}},dd=(e,t)=>{let n=(0,Wu.default)(e,t,!0);return n.isValid()?n:null},fd=()=>(0,Wu.default)(),pd={root:`calendar`,header:`calendar-header`,caption:`calendar-caption`,grid:`calendar-grid`,weekday:`calendar-weekday`,weekNumberHeader:`calendar-week-number-header`,weekNumber:`calendar-week-number`,cell:`calendar-cell`,rangeCell:`calendar-cell-range`,rangeCellStart:`calendar-cell-range-start`,rangeCellEnd:`calendar-cell-range-end`,hidden:`sr-only`};function md(t,n){let{mode:r=`single`,value:i,defaultValue:a,onChange:o,month:s,defaultMonth:c,onMonthChange:l,min:u,max:d,isDateDisabled:f,weekStartsOn:p,fixedWeeks:m=!1,showOutsideDays:h=!0,showWeekNumbers:g=!1,monthFormat:_=`MMMM YYYY`,dayFormat:v=`LL`,focusableDayRef:y,previousMonthLabel:b=`Previous month`,nextMonthLabel:x=`Next month`,weekNumberLabel:S=`Week`,className:C,...w}=t,T=Y(),E=e.useRef(null),D=fd(),O=r===`range`,k=i!==void 0,[A,j]=e.useState(()=>td(a,O)),M=k?td(i,O):A,N=s!==void 0,[P,F]=e.useState(()=>(Qu(c)??td(a,O).from??td(i,O).from??fd()).startOf(`month`)),I=(N?Zu(s):P).startOf(`month`),L=Qu(u),ee=Qu(d),R=p??nd(),te=rd(R),z=ad(I,R,m),[ne,B]=e.useState(null),re=e.useRef(null),[V,ie]=e.useState(null),ae=O&&M.from!==null&&M.to===null,oe=ae?V:M.to,se=$u((()=>{for(let e of[ne,M.from,D])if(e&&e.isSame(I,`month`))return e;return I})());e.useEffect(()=>{let e=re.current;e!==null&&(re.current=null,E.current?.querySelector(`[data-date='${e}']`)?.focus())});let ce=e=>{let t=e.startOf(`month`);N||F(t),l?.(t.toDate())},le=e=>{B(e),re.current=$u(e),e.isSame(I,`month`)||ce(e)},ue=e=>{if(!od(e,L,ee,f))return;B(e),e.isSame(I,`month`)||ce(e);let t=O?ud(M.from,M.to,e):{from:e,to:e};if(k||j(t),O){o?.({from:t.from?.toDate()??null,to:t.to?.toDate()??null});return}o?.(e.toDate())},de=(e,t)=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;let n=t=>{e.preventDefault(),le(t)};switch(e.key){case`ArrowLeft`:return n(t.subtract(1,`day`));case`ArrowRight`:return n(t.add(1,`day`));case`ArrowUp`:return n(t.subtract(7,`day`));case`ArrowDown`:return n(t.add(7,`day`));case`Home`:return n(id(t,R));case`End`:return n(id(t,R).add(6,`day`));case`PageUp`:return n(t.subtract(1,e.shiftKey?`year`:`month`));case`PageDown`:return n(t.add(1,e.shiftKey?`year`:`month`));default:return}},fe=e=>{B(t=>t?.isSame(e,`day`)?t:e),ae&&ie(e)},pe=e=>{ae&&ie(e)},me=()=>{ie(null)},he=I.subtract(1,`month`),ge=I.add(1,`month`),_e=L===null||!he.endOf(`month`).isBefore(L,`day`),ve=ee===null||!ge.isAfter(ee,`day`);return(0,q.jsxs)(`div`,{ref:n,className:G(pd.root,C),"data-component":`Calendar`,...w,children:[(0,q.jsxs)(`div`,{className:pd.header,"data-component":`Calendar.Header`,children:[(0,q.jsx)(na,{icon:Bn,"aria-label":b,variant:`invisible`,size:`small`,disabled:!_e,onClick:()=>ce(he),"data-component":`Calendar.PreviousMonth`}),(0,q.jsx)(`div`,{id:T,"aria-live":`polite`,className:pd.caption,"data-component":`Calendar.Caption`,children:I.format(_)}),(0,q.jsx)(na,{icon:Vn,"aria-label":x,variant:`invisible`,size:`small`,disabled:!ve,onClick:()=>ce(ge),"data-component":`Calendar.NextMonth`})]}),(0,q.jsxs)(`table`,{ref:E,"aria-labelledby":T,className:pd.grid,onPointerLeave:me,"data-component":`Calendar.Grid`,"data-mode":r,children:[(0,q.jsx)(`thead`,{children:(0,q.jsxs)(`tr`,{children:[g?(0,q.jsx)(`th`,{scope:`col`,className:pd.weekNumberHeader,children:(0,q.jsx)(`span`,{className:pd.hidden,children:S})}):null,te.map(e=>(0,q.jsxs)(`th`,{scope:`col`,className:pd.weekday,"data-component":`Calendar.Weekday`,children:[(0,q.jsx)(`span`,{"aria-hidden":`true`,children:e.narrow}),(0,q.jsx)(`span`,{className:pd.hidden,children:e.full})]},e.day))]})}),(0,q.jsx)(`tbody`,{children:z.map(e=>(0,q.jsxs)(`tr`,{"data-component":`Calendar.Week`,children:[g?(0,q.jsx)(`th`,{scope:`row`,className:pd.weekNumber,"data-component":`Calendar.WeekNumber`,children:e[0].week()}):null,e.map(e=>{let t=$u(e),n=!e.isSame(I,`month`);if(n&&!h)return(0,q.jsx)(`td`,{className:pd.cell},t);let r=t===se,i=ld(e,M.from,oe);return(0,q.jsx)(`td`,{className:G(pd.cell,i&&pd.rangeCell,i===`start`&&pd.rangeCellStart,i===`end`&&pd.rangeCellEnd),children:(0,q.jsx)(Ru,{ref:r?y:void 0,label:e.format(`D`),name:e.format(v),dayKey:t,selected:cd(e,M.from,M.to),range:i,today:e.isSame(D,`day`),outside:n,unavailable:!od(e,L,ee,f),tabbable:r,onClick:()=>ue(e),onKeyDown:t=>de(t,e),onFocus:()=>fe(e),onPointerEnter:()=>pe(e)})},t)})]},$u(e[0])))})]})]})}md.displayName=`Calendar`;var hd=K(md);const gd=Object.assign(hd,{Day:Ru}),_d={root:`card-action`};function vd(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(_d.root,n),"data-component":`Card.Action`,...r})}vd.displayName=`Card.Action`;var yd=K(vd);const bd=n({}),xd={root:`card-description text-body-medium`};function Sd(e,t){let{className:n,...r}=e;return(0,q.jsx)(`p`,{ref:t,className:G(xd.root,n),"data-component":`Card.Description`,...r})}Sd.displayName=`Card.Description`;var Cd=K(Sd);const wd={root:`card-heading`,compact:`card-heading-compact`};function Td(t,n){let{as:r=`h3`,className:i,id:a,...o}=t,{titleId:s,layout:c}=e.useContext(bd);return(0,q.jsx)(r,{ref:n,id:a??s,className:G(wd.root,c===`compact`&&wd.compact,i),"data-component":`Card.Heading`,...o})}Td.displayName=`Card.Heading`;var Ed=K(Td);const Dd={root:`card-icon`,tile:`card-icon-tile`};function Od(t,n){let{icon:r,className:i,"aria-label":a,...o}=t,{layout:s}=e.useContext(bd);return(0,q.jsx)(`span`,{ref:n,role:a?`img`:void 0,"aria-label":a,"aria-hidden":!a||void 0,className:G(Dd.root,s!==`compact`&&Dd.tile,i),"data-component":`Card.Icon`,...o,children:(0,q.jsx)(r,{})})}Od.displayName=`Card.Icon`;var kd=K(Od);const Ad={root:`card-image`};function jd(e,t){let{className:n,alt:r=``,...i}=e;return(0,q.jsx)(`img`,{ref:t,alt:r,className:G(Ad.root,n),"data-component":`Card.Image`,...i})}jd.displayName=`Card.Image`;var Md=K(jd);const Nd={root:`card-metadata text-body-small`};function Pd(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Nd.root,n),"data-component":`Card.Metadata`,...r})}Pd.displayName=`Card.Metadata`;var Fd=K(Pd);const Id={content:`card-content`},Ld=W(`card`,{variants:{borderRadius:{medium:`card-radius-medium`,large:`card-radius-large`},layout:{default:``,compact:`card-compact`},padding:{none:`card-padding-none`,condensed:`card-padding-condensed`,normal:`card-padding-normal`}},compoundVariants:[{layout:`compact`,padding:`normal`,class:`card-compact-padding-normal`}]}),Rd=W(`card-header`,{variants:{edgeToEdge:{true:`card-header-edge-to-edge`,false:``},layout:{default:``,compact:`card-header-compact`}}}),zd=W(`card-body`,{variants:{layout:{default:``,compact:`card-body-compact`}}});function Bd(t,n){let{as:r=`div`,className:i,children:a,padding:o=`normal`,borderRadius:s=`large`,layout:c=`default`,"aria-label":l,"aria-labelledby":u,...d}=t,f=Y(),[p]=si(a,{icon:kd,image:Md,heading:Ed,description:Cd,metadata:Fd,action:yd}),m=r===`section`,h=m?f:void 0,g=u??(m&&!l?h:void 0),_=p.image??p.icon,v=!!(_||p.heading||p.description||p.metadata||p.action);return e.Children.toArray(a).length===0?null:(0,q.jsx)(bd.Provider,{value:{titleId:h,layout:c},children:(0,q.jsx)(r,{ref:n,"aria-label":l,"aria-labelledby":g,className:G(Ld({borderRadius:s,layout:c,padding:o}),i),"data-component":`Card`,"data-padding":o,"data-border-radius":s,"data-layout":c,...d,children:v?(0,q.jsxs)(q.Fragment,{children:[_?(0,q.jsx)(`div`,{className:G(Rd({edgeToEdge:!!p.image,layout:c})),children:_}):null,(0,q.jsxs)(`div`,{className:G(zd({layout:c})),children:[(0,q.jsxs)(`div`,{className:Id.content,children:[p.heading,p.description]}),p.metadata]}),p.action]}):a})})}Bd.displayName=`Card`;var Vd=K(Bd);const Hd=Object.assign(Vd,{Icon:kd,Image:Md,Heading:Ed,Description:Cd,Metadata:Fd,Action:yd}),Ud={triangle:`caret-triangle`,border:`caret-border`},Wd=W(`caret`,{variants:{location:{top:`caret-top`,bottom:`caret-bottom`,left:`caret-left`,right:`caret-right`,"top-left":`caret-top-left`,"top-right":`caret-top-right`,"bottom-left":`caret-bottom-left`,"bottom-right":`caret-bottom-right`,"left-top":`caret-left-top`,"left-bottom":`caret-left-bottom`,"right-top":`caret-right-top`,"right-bottom":`caret-right-bottom`}}}),Gd=(e,t)=>({top:`translate(${t},${t*2}) rotate(180)`,right:`translate(0,${t}) rotate(-90)`,bottom:`translate(${t},0)`,left:`translate(${t*2},${t}) rotate(90)`})[e];function Kd(e,t){let{location:n=`bottom`,size:r=8,background:i,borderColor:a,borderWidth:o,className:s,style:c,...l}=e,u=n.split(`-`)[0],d=[-r,0],f=[0,r],p=[r,0],m=`M${d}L${f}L${p}L${d}Z`,h=`M${d}L${f}L${p}`;return(0,q.jsx)(`svg`,{ref:t,width:r*2,height:r*2,className:G(Wd({location:n}),s),style:{...c,"--caret-size":`${r}px`,"--caret-background":i,"--caret-border-color":a,"--caret-border-width":o},"data-component":`Caret`,"data-location":n,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...l,children:(0,q.jsxs)(`g`,{transform:Gd(u,r),children:[(0,q.jsx)(`path`,{className:Ud.triangle,d:m}),(0,q.jsx)(`path`,{className:Ud.border,d:h})]})})}Kd.displayName=`Caret`;var qd=K(Kd);const Jd=()=>{},Yd=n({index:0,count:0,loop:!1,autoPlay:!1,isPlaying:!1,goTo:Jd,previous:Jd,next:Jd,togglePlaying:Jd,slidesId:``}),Xd=n({index:0}),Zd={root:`carousel-indicators`,dot:`carousel-indicator`,current:`carousel-indicator-current`};function Qd(t,n){let{className:r,...i}=t,{index:a,count:o,goTo:s,slidesId:c}=e.useContext(Yd);return o===0?null:(0,q.jsx)(`div`,{ref:n,className:G(Zd.root,r),"data-component":`Carousel.Indicators`,...i,children:Array.from({length:o},(e,t)=>{let n=t===a;return(0,q.jsx)(`button`,{type:`button`,"aria-label":`Slide ${t+1}`,"aria-current":n||void 0,"aria-controls":c||void 0,onClick:()=>s(t,`indicator`),className:G(Zd.dot,n&&Zd.current),"data-component":`Carousel.Indicator`,"data-current":n||void 0},t)})})}Qd.displayName=`Carousel.Indicators`;var $d=K(Qd);function ef(t,n){let{className:r,onClick:i,...a}=t,{index:o,count:s,loop:c,next:l,slidesId:u}=e.useContext(Yd);return(0,q.jsx)(na,{ref:n,icon:Vn,"aria-label":`Next slide`,"aria-controls":u||void 0,variant:`invisible`,disabled:!c&&o>=s-1,onClick:e=>{i?.(e),e.defaultPrevented||l()},className:r,"data-component":`Carousel.NextButton`,...a})}ef.displayName=`Carousel.NextButton`;var tf=K(ef);function nf(t,n){let{className:r,onClick:i,...a}=t,{isPlaying:o,togglePlaying:s,slidesId:c}=e.useContext(Yd);return(0,q.jsx)(na,{ref:n,icon:o?ur:dr,"aria-label":o?`Stop automatic slide show`:`Start automatic slide show`,"aria-controls":c||void 0,variant:`invisible`,onClick:e=>{i?.(e),e.defaultPrevented||s()},className:r,"data-component":`Carousel.PlayButton`,"data-playing":o||void 0,...a})}nf.displayName=`Carousel.PlayButton`;var rf=K(nf);function af(t,n){let{className:r,onClick:i,...a}=t,{index:o,loop:s,previous:c,slidesId:l}=e.useContext(Yd);return(0,q.jsx)(na,{ref:n,icon:Bn,"aria-label":`Previous slide`,"aria-controls":l||void 0,variant:`invisible`,disabled:!s&&o<=0,onClick:e=>{i?.(e),e.defaultPrevented||c()},className:r,"data-component":`Carousel.PreviousButton`,...a})}af.displayName=`Carousel.PreviousButton`;var of=K(af);const sf={root:`carousel-controls`};function cf(t,n){let{className:r,children:i,...a}=t,{autoPlay:o}=e.useContext(Yd),s=e.Children.toArray(i).length>0;return(0,q.jsx)(`div`,{ref:n,className:G(sf.root,r),"data-component":`Carousel.Controls`,...a,children:s?i:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(of,{}),(0,q.jsx)($d,{}),(0,q.jsx)(tf,{}),o?(0,q.jsx)(rf,{}):null]})})}cf.displayName=`Carousel.Controls`;var lf=K(cf);const uf={root:`carousel-slide`};function df(t,n){let{className:r,...i}=t,{index:a,count:o}=e.useContext(Yd),{index:s}=e.useContext(Xd),c=s===a;return(0,q.jsx)(`div`,{ref:n,role:`group`,"aria-roledescription":`slide`,"aria-label":`${s+1} of ${o}`,inert:!c,className:G(uf.root,r),"data-component":`Carousel.Slide`,"data-current":c||void 0,...i})}df.displayName=`Carousel.Slide`;var ff=K(df);const pf={root:`carousel`,viewport:`carousel-viewport`,track:`carousel-track`,motion:`motion-safe:[transition:translate_var(--motion-transition-state-change)]`},mf=(e,t,n)=>t<=0?0:n?(e%t+t)%t:Math.min(Math.max(e,0),t-1);function hf(t,n){let{className:r,children:i,index:a,defaultIndex:o=0,onChange:s,loop:c=!1,autoPlay:l=!1,interval:u=5e3,...d}=t,f=Y(),p=a!==void 0,[m,h]=e.useState(o),[g,_]=e.useState(l),[v,y]=e.useState(!1),b=e.useRef(s);Ur(()=>{b.current=s},[s]);let x=[],S=[],C=null;e.Children.forEach(i,t=>{if(!e.isValidElement(t)){S.push(t);return}if(t.type===ff){x.push(t);return}if(t.type===lf&&C===null){C=t;return}S.push(t)});let w=x.length,T=mf(p?a:m,w,c),E=(e,t)=>{let n=mf(e,w,c);p||h(n),b.current?.(n,t)};e.useEffect(()=>{if(!g||v||w<2)return;let e=window.setTimeout(()=>{if(!c&&T>=w-1){_(!1);return}let e=mf(T+1,w,c);p||h(e),b.current?.(e,`auto`)},u);return()=>{window.clearTimeout(e)}},[g,v,w,T,u,c,p]);let D={index:T,count:w,loop:c,autoPlay:l,isPlaying:g,goTo:E,previous:()=>E(T-1,`previous`),next:()=>E(T+1,`next`),togglePlaying:()=>_(e=>!e),slidesId:f},{onMouseEnter:O,onMouseLeave:k,onFocus:A,onBlur:j,...M}=d,N=e=>{O?.(e),y(!0)},P=e=>{k?.(e),y(!1)},F=e=>{A?.(e),y(!0)},I=e=>{j?.(e),e.currentTarget.contains(e.relatedTarget)||y(!1)},L=g&&!v;return(0,q.jsx)(Yd.Provider,{value:D,children:(0,q.jsxs)(`section`,{ref:n,"aria-roledescription":`carousel`,className:G(pf.root,r),onMouseEnter:N,onMouseLeave:P,onFocus:F,onBlur:I,"data-component":`Carousel`,"data-count":w,"data-index":T,"data-playing":L||void 0,...M,children:[(0,q.jsx)(`div`,{id:f,className:pf.viewport,"aria-live":L?`off`:`polite`,"aria-atomic":`false`,"data-component":`Carousel.Viewport`,children:(0,q.jsx)(`div`,{className:G(pf.track,pf.motion),style:{"--carousel-index":T},"data-component":`Carousel.Track`,children:x.map((e,t)=>(0,q.jsx)(Xd.Provider,{value:{index:t},children:e},e.key??t))})}),C??(0,q.jsx)(lf,{}),S]})})}hf.displayName=`Carousel`;var gf=K(hf);const _f=Object.assign(gf,{Slide:ff,Controls:lf,PreviousButton:of,NextButton:tf,Indicators:$d,PlayButton:rf}),vf=n(null),yf=()=>{let e=o(vf);if(!e)throw Error(`Chart parts have to be rendered inside a Chart`);return e},bf={root:`chart`};function xf(e,t){let{chart:n,className:r,children:i,...a}=e;return(0,q.jsx)(vf.Provider,{value:n,children:(0,q.jsx)(`div`,{ref:t,className:G(bf.root,r),"data-component":`Chart`,...a,children:(0,q.jsx)(_,{width:`100%`,height:`100%`,children:i})})})}xf.displayName=`Chart`;var Sf=K(xf);function Cf(e){let{id:t,fillOpacity:n,stops:r}=e,i=yf();return(0,q.jsx)(`linearGradient`,{id:t,x1:`0`,y1:`0`,x2:`0`,y2:`1`,"data-component":`Chart.Gradient`,children:r.map((e,t)=>(0,q.jsx)(`stop`,{offset:e.offset,stopColor:i.color(e.color),stopOpacity:e.opacity??n},t))})}Cf.displayName=`Chart.Gradient`;const wf=[`var(--base-display-color-blue-5)`,`var(--base-display-color-orange-5)`,`var(--base-display-color-purple-5)`,`var(--base-display-color-green-5)`,`var(--base-display-color-pink-5)`],Tf=`var(--foreground-color-muted)`,Ef={blue:wf[0],orange:wf[1],purple:wf[2],green:wf[3],pink:wf[4],grid:`var(--border-color-muted)`,axis:`var(--border-color-default)`,surface:`var(--background-color-default)`,foreground:`var(--foreground-color-default)`,muted:Tf},Df=(e,t)=>t??wf[e]??`var(--foreground-color-muted)`,Of=e=>typeof e==`object`&&!!e,kf=(e,t)=>{if(!(!t||!Of(e)))return e[t]},Af=e=>{if(typeof e==`string`){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(t)return new Date(Number(t[1]),Number(t[2])-1,Number(t[3]))}return new Date(e)},jf=(e,t)=>{let n=new Map;for(let r of e){let e=r[t],i=n.get(e)??[];i.push(r),n.set(e,i)}return Array.from(n.values())},Mf=t=>{let{data:n,series:r=[],sort:i,locale:a}=t,o=`chart-${e.useId().replace(/[^\w-]/g,``)}`,[s,c]=e.useState(null),l=r.map((e,t)=>({...e,color:Df(t,e.color)})),u=e.useMemo(()=>i?[...n].sort((e,t)=>{let n=Number(e[i.by]),r=Number(t[i.by]);return i.direction===`desc`?r-n:n-r}):n,[n,i]),d=e=>e??`value`,f=e=>{if(e)return Ef[e]??e},p=e.useCallback(e=>{let t=new Intl.NumberFormat(a,e);return e=>t.format(e)},[a]),m=e.useCallback(e=>{let t=new Intl.DateTimeFormat(a,e);return e=>{let n=Af(e);return Number.isNaN(n.getTime())?String(e):t.format(n)}},[a]),h=e=>{if(!Of(e))return;let t=l.find(t=>t.name===e.name||t.name===kf(e.payload,`name`)||t.name===e.dataKey||t.name===kf(e.payload,`dataKey`)),n=t?.name?.toString()??kf(e.payload,`name`);return{name:n,color:t?.color??kf(e.payload,`color`),icon:t?.icon,label:t?.label??n}},g=e=>jf(u,e),_=e=>n.reduce((t,n)=>t+Number(n[e]),0),v=e=>Math.min(...n.map(t=>Number(t[e]))),y=e=>Math.max(...n.map(t=>Number(t[e]))),b=e=>e?.reduce((e,t)=>{if(t.value===null||t.value===void 0||t.value===``)return e;let n=Number(t.value);return e+(Number.isNaN(n)?0:n)},0),x=(e,t,n)=>{let r=v(e),i=y(e);if(n){let[e,a]=typeof n==`function`?n({min:r,max:i}):n;return(t-e)/(a-e)*100}return t/_(e)*100},S=e=>s===e;return{id:o,key:d,data:u,series:l,getSeries:h,groupBy:g,color:f,formatNumber:p,formatDate:m,highlightedSeries:s,setHighlightedSeries:c,isHighlightedSeries:S,getSeriesOpacity:(e,t=.2)=>{if(e&&s)return S(e)?1:t},getTotal:_,getMin:v,getMax:y,getPayloadTotal:b,getValuePercent:x}},Nf={root:`chart-legend`,title:`chart-legend-title`,list:`chart-legend-list`,item:`chart-legend-item`,control:`chart-legend-control`,swatch:`chart-swatch`,label:`chart-legend-label`};function Pf(e){let{payload:t,align:n=`center`,verticalAlign:r=`bottom`,layout:i=`auto`,title:a,nameKey:o,interaction:s=`hover`,className:c}=e,l=yf(),u=i===`auto`?n===`center`?`horizontal`:`vertical`:i,d=t?.filter(e=>e.color!==`none`||e.type!==`none`);return d?.length?(0,q.jsxs)(`div`,{className:G(Nf.root,c),"data-component":`Chart.Legend`,"data-align":n,"data-vertical-align":r,children:[a?(0,q.jsx)(`div`,{className:Nf.title,children:a}):null,(0,q.jsx)(`ul`,{className:Nf.list,"data-orientation":u,children:d.map((e,t)=>{let n=l.getSeries(e),r=n?.name,i=kf(e.payload,o)??n?.label,a=(0,q.jsxs)(q.Fragment,{children:[n?.icon??(0,q.jsx)(`span`,{className:Nf.swatch,style:{background:l.color(n?.color)},"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:Nf.label,children:i})]});return(0,q.jsx)(`li`,{className:Nf.item,"data-component":`Chart.LegendItem`,"data-series":r,style:{opacity:l.getSeriesOpacity(r,.6)},children:s===`click`?(0,q.jsx)(`button`,{type:`button`,className:Nf.control,"aria-pressed":l.isHighlightedSeries(r),onClick:()=>{r&&l.setHighlightedSeries(e=>e===r?null:r)},children:a}):(0,q.jsx)(`span`,{className:Nf.control,onMouseEnter:()=>l.setHighlightedSeries(r??null),onMouseLeave:()=>l.setHighlightedSeries(null),children:a})},`${r??`series`}-${t}`)})})]}):null}Pf.displayName=`Chart.Legend`;const Ff={title:`chart-radial-title`,description:`chart-radial-description`},If=e=>`cx`in e&&`cy`in e;function Lf(e){let{viewBox:t,title:n,description:r,gap:i=24,fontSize:a=`2rem`}=e,o=yf();return!t||!If(t)?null:(0,q.jsxs)(`text`,{x:t.cx,y:t.cy,textAnchor:`middle`,dominantBaseline:`middle`,"data-component":`Chart.RadialText`,children:[(0,q.jsx)(`tspan`,{className:Ff.title,x:t.cx,y:t.cy,style:{fontSize:a,fill:o.color(`foreground`)},children:n}),r?(0,q.jsx)(`tspan`,{className:Ff.description,x:t.cx,y:t.cy+i,style:{fill:o.color(`muted`)},children:r}):null]})}Lf.displayName=`Chart.RadialText`;const Rf={root:`chart-tooltip`,label:`chart-tooltip-label`,rows:`chart-tooltip-rows`,row:`chart-tooltip-row`,swatch:`chart-swatch`,name:`chart-tooltip-name`,value:`chart-tooltip-value`,divider:`chart-tooltip-divider`};function zf(t){let{payload:n,label:r,labelFormatter:i,hideLabel:a,hideIndicator:o,hideSeriesLabel:s,showTotal:c,fitContent:l,nameKey:u,indicator:d=`dot`,formatter:f,render:p,className:m}=t,h=yf(),g=n?.filter(e=>e.color!==`none`||e.type!==`none`),_=e.useMemo(()=>h.getPayloadTotal(g),[h,g]),v=e.useMemo(()=>{let e=g?.[0];if(!e)return;let t=`${kf(e.payload,u)??r??e.dataKey??`value`}`;return i?.(t,g??[])??t},[r,i,u,g]);if(!g?.length)return null;let y=(e,t)=>{let n=f?f(e,t):e?.toLocaleString?.();return Array.isArray(n)?n:[n,t]};return(0,q.jsxs)(`div`,{className:G(Rf.root,m),"data-component":`Chart.Tooltip`,"data-fit-content":l?``:void 0,children:[a?null:(0,q.jsx)(`div`,{className:Rf.label,children:v}),(0,q.jsx)(`div`,{className:Rf.rows,children:g.map((t,n)=>{if(p)return(0,q.jsx)(e.Fragment,{children:p(t.payload)},n);let r=h.getSeries(t),[i,a]=y(t.value,r?.label??t.name);return(0,q.jsxs)(`div`,{className:Rf.row,"data-component":`Chart.TooltipRow`,"data-series":r?.name,children:[r?.icon??(r?.color&&!o?(0,q.jsx)(`span`,{className:Rf.swatch,"data-indicator":d,style:{background:h.color(r.color)},"aria-hidden":`true`}):null),s?null:(0,q.jsx)(`span`,{className:Rf.name,children:a}),(0,q.jsx)(`span`,{className:Rf.value,children:i})]},n)})}),c&&_!==void 0?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`hr`,{className:Rf.divider}),(0,q.jsxs)(`div`,{className:Rf.row,"data-component":`Chart.TooltipTotal`,children:[(0,q.jsx)(`span`,{className:Rf.name,children:`Total`}),(0,q.jsx)(`span`,{className:Rf.value,children:y(_,``)[0]})]})]}):null]})}zf.displayName=`Chart.Tooltip`;const Bf=Object.assign(Sf,{Gradient:Cf,Legend:Pf,RadialText:Lf,Tooltip:zf}),Vf=n({}),Hf={checkmark:`url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=")`,dash:`url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K")`},Uf={root:`checkbox`,mark:`checkbox-mark`,checked:`checkbox-checked`,disabled:`checkbox-disabled`};function Wf(t,n){let{className:r,style:i,checked:a,indeterminate:o,required:s,validationStatus:c,value:l,onChange:u,...d}=t,f=e.useRef(null),p=Gr(n,f),m=e.useContext(Vf);return Ur(()=>{f.current&&(f.current.indeterminate=o??!1)},[o,a]),(0,q.jsx)(`input`,{ref:p,type:`checkbox`,checked:o&&a!==void 0?!1:a,required:s,value:l,name:l,"aria-checked":o?`mixed`:void 0,"aria-required":s?!0:void 0,"aria-invalid":c===`error`||void 0,onChange:e=>{m.onChange?.(e),u?.(e)},className:G(Uf.root,Uf.mark,Uf.checked,Uf.disabled,r),style:{...i,"--checkbox-mark":o?Hf.dash:Hf.checkmark},"data-component":`Checkbox`,...d})}Wf.displayName=`Checkbox`;var Gf=K(Wf);const Kf=n({}),qf={root:`checkbox-card-description`};function Jf(t,n){let{className:r,id:i,...a}=t,{descriptionId:o}=e.useContext(Kf);return(0,q.jsx)(`span`,{ref:n,id:i??o,className:G(qf.root,r),"data-component":`CheckboxCard.Description`,...a})}Jf.displayName=`CheckboxCard.Description`;var Yf=K(Jf);const Xf={root:`checkbox-card-label`};function Zf(t,n){let{className:r,id:i,...a}=t,{labelId:o}=e.useContext(Kf);return(0,q.jsx)(`span`,{ref:n,id:i??o,className:G(Xf.root,r),"data-component":`CheckboxCard.Label`,...a})}Zf.displayName=`CheckboxCard.Label`;var Qf=K(Zf);const $f={root:`checkbox-card-leading-visual`};function ep(e,t){let{className:n,"aria-label":r,...i}=e;return(0,q.jsx)(`span`,{ref:t,role:r?`img`:void 0,"aria-label":r,"aria-hidden":!r||void 0,className:G($f.root,n),"data-component":`CheckboxCard.LeadingVisual`,...i})}ep.displayName=`CheckboxCard.LeadingVisual`;var tp=K(ep);const np={body:`checkbox-card-body`,control:`checkbox-card-control`},rp=W(`checkbox-card`,{variants:{disabled:{true:`checkbox-card-disabled`,false:`checkbox-card-interactive`},validation:{error:`checkbox-card-error`,success:`checkbox-card-success`}}});function ip(t,n){let{className:r,children:i,value:a,checked:o,defaultChecked:s,indeterminate:c,disabled:l,required:u,validationStatus:d,onChange:f,id:p,"aria-label":m,"aria-labelledby":h,"aria-describedby":g,..._}=t,v=e.useContext(Vf).disabled||l,y=Y(p),b=`${y}-label`,x=`${y}-description`,[S,C]=si(i,{leadingVisual:tp,label:Qf,description:Yf}),w=h??(S.label&&!m?b:void 0),T=[S.description?x:void 0,g].filter(Boolean).join(` `)||void 0;return(0,q.jsx)(Kf.Provider,{value:{labelId:b,descriptionId:x},children:(0,q.jsxs)(`label`,{ref:n,className:G(rp({disabled:!!v,validation:d}),r),"data-component":`CheckboxCard`,"data-disabled":v,"data-required":u,"data-validation":d,..._,children:[S.leadingVisual,(0,q.jsxs)(`div`,{className:np.body,children:[S.label,S.description,C]}),(0,q.jsx)(Gf,{id:y,value:a,checked:o,defaultChecked:s,indeterminate:c,disabled:v,required:u,validationStatus:d,onChange:f,"aria-label":m,"aria-labelledby":w,"aria-describedby":T,className:np.control})]})})}ip.displayName=`CheckboxCard`;var ap=K(ip);const op=Object.assign(ap,{LeadingVisual:tp,Label:Qf,Description:Yf}),sp={root:`checkbox-group-caption`};function cp(t,n){let{className:r,...i}=t,{captionId:a}=e.useContext(Vf);return(0,q.jsx)(`span`,{ref:n,id:a,className:G(sp.root,r),"data-component":`CheckboxGroup.Caption`,...i})}cp.displayName=`CheckboxGroup.Caption`;var lp=K(cp);const up={root:`checkbox-group-label`,disabled:`checkbox-group-label-disabled`,hidden:`sr-only`,required:`checkbox-group-label-required`};function dp(t,n){let{className:r,children:i,visuallyHidden:a,...o}=t,{disabled:s,required:c}=e.useContext(Vf);return(0,q.jsxs)(`span`,{ref:n,title:c?`required field`:void 0,className:G(up.root,s&&up.disabled,a&&up.hidden,r),"data-component":`CheckboxGroup.Label`,"data-label-disabled":s,...o,children:[i,c?(0,q.jsx)(`span`,{className:up.required,children:`*`}):null]})}dp.displayName=`CheckboxGroup.Label`;var fp=K(dp);const pp={success:Ln,error:Qn},mp={icon:`checkbox-group-validation-icon`},hp=W(`checkbox-group-validation`,{variants:{variant:{success:`checkbox-group-validation-success`,error:`checkbox-group-validation-error`}}});function gp(t,n){let{className:r,children:i,variant:a,...o}=t,{validationMessageId:s}=e.useContext(Vf),c=pp[a];return(0,q.jsxs)(`span`,{ref:n,className:G(hp({variant:a}),r),"data-component":`CheckboxGroup.Validation`,"data-validation-status":a,...o,children:[(0,q.jsx)(c,{className:mp.icon,"aria-hidden":`true`}),(0,q.jsx)(`span`,{id:s,children:i})]})}gp.displayName=`CheckboxGroup.Validation`;var _p=K(gp);const vp={root:`checkbox-group`,legend:`checkbox-group-legend`,legendVisible:`checkbox-group-legend-visible`,body:`checkbox-group-body`,validation:`checkbox-group-validation-slot`,hidden:`sr-only`},yp=t=>{let n=[],r=t=>{e.Children.forEach(t,t=>{if(e.isValidElement(t)){if(t.type===Gf){let{checked:e,defaultChecked:r,value:i}=t.props;(e||r)&&i&&n.push(i);return}r(t.props.children)}})};return r(t),n};function bp(t,n){let{as:r=`fieldset`,className:i,children:a,disabled:o,required:s,onChange:c,id:l,"aria-labelledby":u,...d}=t,[f,p]=si(a,{label:fp,caption:lp,validation:_p}),m=Y(l),h=f.caption?`${m}-caption`:void 0,g=f.validation?`${m}-validation`:void 0,[_,v]=e.useState(()=>yp(a)),y=e=>{let{value:t,checked:n}=e.currentTarget,r=n?[..._,t]:_.filter(e=>e!==t);v(r),c?.(r,e)},b=e.isValidElement(f.label)?!f.label.props.visuallyHidden:!1,x={disabled:o,required:s,captionId:h,validationMessageId:g,onChange:y};return(0,q.jsx)(Vf.Provider,{value:x,children:(0,q.jsxs)(r,{ref:n,id:m,disabled:o,"aria-labelledby":f.label?void 0:u,"aria-describedby":[g,h].filter(Boolean).join(` `)||void 0,className:G(vp.root,i),"data-component":`CheckboxGroup`,"data-disabled":o,"data-required":s,...d,children:[f.label?(0,q.jsxs)(`legend`,{className:G(vp.legend,b&&vp.legendVisible),children:[f.label,s?(0,q.jsx)(`span`,{className:vp.hidden,children:`, required`}):null,f.caption]}):f.caption,(0,q.jsx)(`div`,{className:vp.body,children:p}),f.validation?(0,q.jsx)(`div`,{className:vp.validation,children:f.validation}):null]})})}bp.displayName=`CheckboxGroup`;var xp=K(bp);const Sp=Object.assign(xp,{Label:fp,Caption:lp,Validation:_p}),Cp=n({}),wp=()=>o(Cp),Tp=e=>{if(typeof document>`u`||typeof document.execCommand!=`function`)return!1;let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`readonly`,``),t.style.position=`fixed`,t.style.top=`0`,t.style.insetInlineStart=`-9999px`,t.style.opacity=`0`;let n=document.activeElement;document.body.appendChild(t),t.select();try{return document.execCommand(`copy`)}finally{t.remove(),n?.focus?.()}},Ep=async e=>{if(typeof navigator<`u`&&typeof navigator.clipboard?.writeText==`function`)try{await navigator.clipboard.writeText(e);return}catch(t){if(Tp(e))return;throw t}if(!Tp(e))throw Error(`The clipboard could not be reached`)},Dp=(t={})=>{let{value:n,defaultValue:r,timeout:i=3e3,disabled:a,onValueChange:o,onStatusChange:s,onCopyError:c}=t,l=n!==void 0,[u,d]=e.useState(r??``),f=l?n:u,[p,m]=e.useState(0),h=p>0,g=e.useRef(s);return e.useEffect(()=>{g.current=s},[s]),e.useEffect(()=>{if(p===0||i<=0)return;let e=window.setTimeout(()=>{m(0),g.current?.(!1)},i);return()=>{window.clearTimeout(e)}},[p,i]),{value:f,copied:h,disabled:!!a,copy:()=>{a||Ep(f).then(()=>{m(e=>e+1),s?.(!0)},e=>{c?.(e)})},setValue:e=>{l||d(e),o?.(e)}}},Op={root:`clipboard`,hidden:`sr-only`};function kp(t,n){let{as:r=`div`,className:i,value:a,defaultValue:o,timeout:s,disabled:c,copiedAnnouncement:l=`Copied to clipboard`,onValueChange:u,onStatusChange:d,onCopyError:f,children:p,...m}=t,h=Dp({value:a,defaultValue:o,timeout:s,disabled:c,onValueChange:u,onStatusChange:d,onCopyError:f}),[g,_]=e.useState(void 0),v={...h,inputId:g,setInputId:_};return(0,q.jsx)(Cp.Provider,{value:v,children:(0,q.jsxs)(r,{ref:n,className:G(Op.root,i),"data-component":`Clipboard`,"data-copied":h.copied,"data-disabled":h.disabled,...m,children:[p,l===null?null:(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Op.hidden,"data-component":`Clipboard.Announcement`,children:h.copied?l:``})]})})}kp.displayName=`Clipboard`;var Ap=K(kp);const jp={root:`clipboard-control`};function Mp(t,n){let{as:r=`div`,className:i,...a}=t,{copied:o}=e.useContext(Cp);return(0,q.jsx)(r,{ref:n,className:G(jp.root,i),"data-component":`Clipboard.Control`,"data-copied":!!o,...a})}Mp.displayName=`Clipboard.Control`;var Np=K(Mp);const Pp={root:`clipboard-copy-text`,hidden:`sr-only`};function Fp(t,n){let{as:r=`span`,className:i,children:a=`Copy`,copied:o=`Copied`,visuallyHidden:s,...c}=t,{copied:l}=e.useContext(Cp);return(0,q.jsx)(r,{ref:n,className:G(Pp.root,s&&Pp.hidden,i),"data-component":`Clipboard.CopyText`,"data-copied":!!l,...c,children:l?o:a})}Fp.displayName=`Clipboard.CopyText`;var Ip=K(Fp);const Lp={root:`clipboard-indicator`,copied:`clipboard-indicator-copied`};function Rp(t,n){let{as:r=`span`,className:i,children:a,copied:o,...s}=t,{copied:c}=e.useContext(Cp);return(0,q.jsx)(r,{ref:n,className:G(Lp.root,c&&Lp.copied,i),"aria-hidden":`true`,"data-component":`Clipboard.Indicator`,"data-copied":!!c,...s,children:c?o??(0,q.jsx)(Rn,{}):a??(0,q.jsx)(Jn,{})})}Rp.displayName=`Clipboard.Indicator`;var zp=K(Rp);const Bp=n({}),Vp=t=>{let{id:n,disabled:r,required:i,captionId:a,validationMessageId:o}=e.useContext(Bp);return{id:n,disabled:r,required:i,"aria-describedby":[o,a].filter(Boolean).join(` `)||void 0,...t}},Hp={root:`clipboard-input`};function Up(t,n){let{required:r,...i}=Vp(t),{className:a,id:o,disabled:s,onFocus:c,...l}=i,{value:u,copied:d,disabled:f,setInputId:p}=e.useContext(Cp),m=Y(o);return Ur(()=>(p?.(m),()=>p?.(void 0)),[m,p]),(0,q.jsx)(Ps,{ref:n,id:m,value:u??``,readOnly:!0,disabled:s??f,onFocus:e=>{c?.(e),!e.defaultPrevented&&e.target.select()},className:G(Hp.root,a),"data-component":`Clipboard.Input`,"data-copied":!!d,...l})}Up.displayName=`Clipboard.Input`;var Wp=K(Up);const Gp={root:`clipboard-label`,disabled:`clipboard-label-disabled`};function Kp(t,n){let{as:r=`label`,className:i,htmlFor:a,...o}=t,{inputId:s,disabled:c}=e.useContext(Cp);return(0,q.jsx)(r,{ref:n,htmlFor:r===`label`?a??s:void 0,className:G(Gp.root,c&&Gp.disabled,i),"data-component":`Clipboard.Label`,"data-disabled":!!c,...o})}Kp.displayName=`Clipboard.Label`;var qp=K(Kp);const Jp={root:`clipboard-trigger`};function Yp(t,n){let{className:r,children:i,label:a=`Copy`,disabled:o,onClick:s,...c}=t,{copied:l,disabled:u,copy:d}=e.useContext(Cp),[f,p]=si(i,{indicator:zp}),m=f.indicator??(0,q.jsx)(zp,{}),h=p.some(e=>e!=null&&e!==!1),g={disabled:o??u,onClick:e=>{s?.(e),!e.defaultPrevented&&d?.()},className:G(Jp.root,r),"data-component":`Clipboard.Trigger`,"data-copied":!!l,...c};return h?(0,q.jsx)($i,{ref:n,leadingVisual:m,...g,children:p}):(0,q.jsx)(na,{ref:n,icon:m,"aria-label":a,...g})}Yp.displayName=`Clipboard.Trigger`;var Xp=K(Yp);const Zp={root:`clipboard-value-text`};function Qp(t,n){let{as:r=`span`,className:i,children:a,...o}=t,{value:s,copied:c}=e.useContext(Cp);return(0,q.jsx)(r,{ref:n,className:G(Zp.root,i),"data-component":`Clipboard.ValueText`,"data-copied":!!c,...o,children:a??s})}Qp.displayName=`Clipboard.ValueText`;var $p=K(Qp);const em=Object.assign(Ap,{Root:Ap,Label:qp,Control:Np,Input:Wp,Trigger:Xp,Indicator:zp,CopyText:Ip,ValueText:$p}),tm={root:`code`};function nm(e,t){let{as:n=`code`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(tm.root,r),"data-component":`Code`,...i})}nm.displayName=`Code`;var rm=K(nm);const im=n({}),am=`text`,om=`github-light`,sm=`github-dark`,cm=e=>e.split(`
12
12
  `).map(e=>e.length>0?[{content:e}]:[]),lm=async(e,t)=>{let{tokens:n}=await v(e,{lang:t.language,themes:{light:t.lightTheme,dark:t.darkTheme},defaultColor:!1});return n.map(e=>e.map(e=>({content:e.content,style:e.htmlStyle})))},um={root:`code-block`,numbered:`code-block-numbered`,wrap:`code-block-wrap`,nowrap:`code-block-nowrap`};function dm(e,t){let{as:n=`div`,className:r,language:i=am,lightTheme:a=om,darkTheme:o=sm,showLineNumbers:s=!1,wrap:c=`nowrap`,...l}=e,u={language:i,lightTheme:a,darkTheme:o,showLineNumbers:s,wrap:c};return(0,q.jsx)(im.Provider,{value:u,children:(0,q.jsx)(n,{ref:t,className:G(um.root,s&&um.numbered,um[c],r),"data-component":`CodeBlock`,"data-language":i,...l})})}dm.displayName=`CodeBlock`;var fm=K(dm);const pm={root:`code-block-pre`,code:`code-block-code`,line:`code-block-line`,token:`code-block-token`};function mm(t,n){let{className:r,children:i=``,language:a,...o}=t,{language:s=am,lightTheme:c=om,darkTheme:l=sm}=e.useContext(im),u=a??s,d=i.replace(/\n$/,``),[f,p]=e.useState(null);e.useEffect(()=>{let e=!1;return lm(d,{language:u,lightTheme:c,darkTheme:l}).then(t=>{e||p({source:d,lines:t})}).catch(()=>{e||p({source:d,lines:cm(d)})}),()=>{e=!0}},[d,u,c,l]);let m=f?.source===d,h=m?f.lines:cm(d);return(0,q.jsx)(`pre`,{ref:n,className:G(pm.root,r),"data-component":`CodeBlock.Code`,"data-language":u,"data-highlighted":m,...o,children:(0,q.jsx)(`code`,{className:pm.code,children:h.map((t,n)=>(0,q.jsxs)(e.Fragment,{children:[n>0?`
13
13
  `:null,(0,q.jsx)(`span`,{className:pm.line,children:t.map((e,t)=>(0,q.jsx)(`span`,{className:pm.token,style:e.style,children:e.content},t))})]},n))})})}mm.displayName=`CodeBlock.Code`;var hm=K(mm);const gm=e=>{let[t,n]=d(!1);return s(()=>{if(e.current===null)return;let t=new ResizeObserver(e=>{for(let t of e)if(t.target.scrollHeight>t.target.clientHeight||t.target.scrollWidth>t.target.clientWidth){n(!0);break}});return t.observe(e.current),()=>{t.disconnect()}},[e]),t},_m={root:`code-block-content`};function vm(t,n){let{as:r=`div`,className:i,...a}=t,o=e.useRef(null),s=Gr(n,o),c=gm(o);return(0,q.jsx)(r,{ref:s,tabIndex:c?0:void 0,className:G(_m.root,i),"data-component":`CodeBlock.Content`,...a})}vm.displayName=`CodeBlock.Content`;var ym=K(vm);const bm={root:`code-block-header`};function xm(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(bm.root,r),"data-component":`CodeBlock.Header`,...i})}xm.displayName=`CodeBlock.Header`;var Sm=K(xm);const Cm={root:`code-block-title`};function wm(e,t){let{as:n=`span`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Cm.root,r),"data-component":`CodeBlock.Title`,...i})}wm.displayName=`CodeBlock.Title`;var Tm=K(wm);const Em=Object.assign(fm,{Header:Sm,Title:Tm,Content:ym,Code:hm}),Dm=n({}),Om={root:`block`};function km(t,n){let{as:r=`div`,className:i,open:a,defaultOpen:o,disabled:s,onChange:c,...l}=t,u=Y(),d=a!==void 0,[f,p]=e.useState(!!o),m=d?a:f,[h,g]=e.useState(!0),_=e=>{s||(d||p(e),c?.(e))},v={triggerId:`${u}-trigger`,panelId:`${u}-panel`,isOpen:m,disabled:!!s,isPanelPresent:h,setPanelPresent:g,setOpen:_,toggle:()=>_(!m)};return(0,q.jsx)(Dm.Provider,{value:v,children:(0,q.jsx)(r,{ref:n,className:G(Om.root,i),"data-component":`Collapsible`,"data-open":m,"data-disabled":!!s,...l})})}km.displayName=`Collapsible`;var Am=K(km);const jm={root:`collapsible-panel`};function Mm(t,n){let{as:r=`div`,className:i,keepMounted:a=!0,hiddenUntilFound:o=!1,...s}=t,{panelId:c,isOpen:l,setOpen:u,setPanelPresent:d}=e.useContext(Dm),f=e.useRef(null),p=Gr(n,f),m=a||o||!!l;return Ur(()=>(d?.(m),()=>d?.(!1)),[m,d]),Ur(()=>{let e=f.current;!e||!l||e.style.setProperty(`--collapsible-panel-height`,`${e.scrollHeight}px`)},[l]),Ur(()=>{let e=f.current;!e||!o||l||e.setAttribute(`hidden`,`until-found`)},[o,l]),e.useEffect(()=>{let e=f.current;if(!e||!o)return;let t=()=>u?.(!0);return e.addEventListener(`beforematch`,t),()=>e.removeEventListener(`beforematch`,t)},[o,u]),m?(0,q.jsx)(r,{ref:p,id:c,hidden:!l,className:G(jm.root,i),"data-component":`Collapsible.Panel`,"data-open":!!l,...s}):null}Mm.displayName=`Collapsible.Panel`;var Nm=K(Mm);const Pm={root:`collapsible-trigger`,disabled:`collapsible-trigger-disabled`,labelEnd:`min-w-0 grow`,label:`min-w-0`,indicator:`collapsible-trigger-indicator`,indicatorOpen:`rotate-180`,indicatorStart:`-rotate-90`,indicatorStartOpen:`rotate-0`};function Fm(t,n){let{className:r,children:i,indicator:a=`end`,onClick:o,...s}=t,{triggerId:c,panelId:l,isOpen:u,disabled:d,isPanelPresent:f,toggle:p}=e.useContext(Dm),m=e=>{o?.(e),!e.defaultPrevented&&p?.()},h=a===`none`?null:(0,q.jsx)(zn,{className:G(Pm.indicator,a===`start`?u?Pm.indicatorStartOpen:Pm.indicatorStart:u&&Pm.indicatorOpen),"aria-hidden":`true`});return(0,q.jsxs)(`button`,{ref:n,type:`button`,id:c,className:G(Pm.root,d&&Pm.disabled,r),onClick:m,disabled:d,"aria-expanded":!!u,"aria-controls":f?l:void 0,"data-component":`Collapsible.Trigger`,"data-open":!!u,"data-indicator":a,...s,children:[a===`start`?h:null,(0,q.jsx)(`span`,{className:a===`end`?Pm.labelEnd:Pm.label,children:i}),a===`end`?h:null]})}Fm.displayName=`Collapsible.Trigger`;var Im=K(Fm);const Lm=Object.assign(Am,{Root:Am,Trigger:Im,Panel:Nm,Content:Nm}),Rm=n(null),zm=n(null),Bm=n(null),Vm={root:`combobox`};function Hm(t,n){let{value:r,defaultValue:i=[],onValueChange:a,onSelect:o,inputValue:s,defaultInputValue:c=``,onInputValueChange:l,open:u,defaultOpen:d=!1,onOpenChange:f,highlightedValue:p,defaultHighlightedValue:m=null,onHighlightChange:h,multiple:g=!1,closeOnSelect:_=!g,selectionBehavior:v=g?`clear`:`replace`,inputBehavior:y=`none`,allowCustomValue:b=!1,loopFocus:x=!1,openOnClick:S=!1,openOnChange:C=!0,openOnKeyPress:w=!0,filter:T,shouldFilter:E=!0,disabled:D=!1,readOnly:O=!1,invalid:k=!1,required:A=!1,placeholder:j,name:M,form:N,id:P,className:F,children:I,onBlur:L,...ee}=t,R=Y(P),te=`${R}-input`,z=`${R}-label`,ne=`${R}-list`,B=e.useRef(null),re=Gr(n,B),V=e.useRef(null),ie=e.useRef(null),ae=e.useRef(null),oe=r!==void 0,[se,ce]=e.useState(i),le=oe?r:se,ue=s!==void 0,[de,fe]=e.useState(c),pe=ue?s:de,me=u!==void 0,[he,ge]=e.useState(d),_e=me?u:he,ve=p!==void 0,[ye,be]=e.useState(m),xe=ve?p:ye,Se=e.useCallback(e=>{oe||ce(e),a?.(e)},[oe,a]),Ce=e.useCallback(e=>{ue||fe(e),l?.(e)},[ue,l]),we=e.useCallback(e=>{ve||be(e)},[ve]),Te=e.useRef(null),Ee=e.useCallback(e=>{me||ge(e),f?.(e),e||(Te.current=null,we(null))},[me,f,we]),[De,Oe]=e.useState(!1),[ke,Ae]=e.useState([]),je=e.useRef(new Map),Me=e.useCallback(e=>{je.current.set(e.value,e.label),Ae(t=>{let n=t.findIndex(t=>t.value===e.value);if(n===-1)return[...t,e];let r=[...t];return r[n]=e,r})},[]),Ne=e.useCallback(e=>{Ae(t=>t.filter(t=>t.value!==e))},[]),{contains:Pe,startsWith:Fe}=Fc({sensitivity:`base`}),Ie=T??Pe,Le=e.useMemo(()=>!E||!De||pe===``?ke.map(e=>e.value):ke.filter(e=>Ie(e.label,pe)).map(e=>e.value),[ke,Ie,pe,De,E]),Re=e.useMemo(()=>Le.filter(e=>!ke.find(t=>t.value===e)?.disabled),[ke,Le]),ze=(xe!==null&&Re.includes(xe)?xe:null)??(y!==`none`&&_e&&De&&pe!==``?Re[0]??null:null),Be=ke.find(e=>e.value===ze),Ve=y===`autocomplete`&&_e&&Be!==void 0&&pe!==``&&Fe(Be.label,pe)?Be.label:``,He=e.useRef(ze);e.useEffect(()=>{He.current!==ze&&(He.current=ze,h?.(ze))},[ze,h]);let Ue=e.useCallback(e=>{if(Re.length===0)return;let t=ze===null?-1:Re.indexOf(ze);if(t===-1){we(e>0?Re[0]:Re[Re.length-1]);return}let n=t+e,r=x?(n+Re.length)%Re.length:Math.min(Math.max(n,0),Re.length-1);we(Re[r])},[ze,x,Re,we]);e.useEffect(()=>{if(Te.current===null||Re.length===0)return;let e=Te.current;Te.current=null;let t=le.find(e=>Re.includes(e));we(t??(e===`first`?Re[0]:Re[Re.length-1]))},[Re,we,le]);let We=e.useCallback(e=>{Oe(!1),Ee(e)},[Ee]),Ge=e.useCallback(e=>{Te.current=e,We(!0)},[We]),Ke=e.useCallback(e=>{Ce(e),Oe(!0),we(null),C&&!_e&&Ee(!0)},[Ee,_e,C,we,Ce]),qe=e.useCallback(e=>le.includes(e),[le]),Je=e.useCallback(e=>{let t=ke.find(t=>t.value===e);if(!t||t.disabled||D||O)return;let n=g?le.includes(e)?le.filter(t=>t!==e):[...le,e]:[e];Se(n),o?.(e),v===`replace`?Ce(t.label):v===`clear`&&Ce(``),Oe(!1),_&&Ee(!1),V.current?.focus()},[Ee,_,D,ke,g,o,O,v,Ce,Se,le]),Ye=e.useCallback(()=>{D||O||(Se([]),Ce(``),Oe(!1),V.current?.focus())},[D,O,Ce,Se]),Xe=e.useCallback(e=>ke.find(t=>t.value===e)?.id,[ke]),Ze=e.useCallback(e=>Le.includes(e),[Le]),Qe=e=>{L?.(e);let t=e.relatedTarget;if(t instanceof Node&&(B.current?.contains(t)||ae.current?.contains(t))||(Ee(!1),Oe(!1),b))return;let n=le.length===0?``:je.current.get(le[0]),r=g?``:n;r!==void 0&&pe!==r&&Ce(r)},$e=e.useMemo(()=>({inputId:te,labelId:z,listId:ne,getItemId:Xe,inputValue:pe,completion:Ve,onType:Ke,setInputValue:Ce,value:le,isSelected:qe,select:Je,clear:Ye,open:_e,setOpen:We,openAt:Ge,highlightedValue:ze,setHighlightedValue:we,moveHighlight:Ue,entries:ke,register:Me,unregister:Ne,matches:Le,isMatch:Ze,multiple:g,disabled:D,readOnly:O,invalid:k,required:A,placeholder:j,inputBehavior:y,openOnClick:S,openOnKeyPress:w,inputRef:V,controlRef:ie,contentRef:ae}),[Ye,Ve,D,ke,Xe,ze,y,te,pe,k,Ze,qe,z,ne,Le,Ue,g,Ke,_e,Ge,S,w,j,O,Me,A,Je,we,Ce,We,Ne,le]);return(0,q.jsx)(Rm.Provider,{value:$e,children:(0,q.jsxs)(`div`,{ref:re,className:G(Vm.root,F),onBlur:Qe,"data-component":`Combobox`,"data-open":_e||void 0,"data-multiple":g||void 0,"data-disabled":D||void 0,"data-readonly":O||void 0,"data-invalid":k||void 0,...ee,children:[I,M?le.map(e=>(0,q.jsx)(`input`,{type:`hidden`,name:M,value:e,form:N},e)):null]})})}Hm.displayName=`Combobox`;var Um=K(Hm);const Wm={root:`combobox-clear-trigger`};function Gm(t,n){let{className:r,icon:i=Xn,onClick:a,onMouseDown:o,"aria-label":s=`Clear`,...c}=t,l=e.useContext(Rm);return!l||l.inputValue===``&&l.value.length===0?null:(0,q.jsx)(na,{ref:n,icon:i,variant:`invisible`,size:`small`,tabIndex:-1,"aria-label":s,disabled:l.disabled||l.readOnly,className:G(Wm.root,r),onMouseDown:e=>{o?.(e),e.defaultPrevented||e.preventDefault()},onClick:e=>{a?.(e),!e.defaultPrevented&&l.clear()},"data-component":`Combobox.ClearTrigger`,...c})}Gm.displayName=`Combobox.ClearTrigger`;var Km=K(Gm);const qm={root:`combobox-content`};function Jm(e,t){let{className:n,children:r,...i}=e;return(0,q.jsx)(`div`,{ref:t,className:G(qm.root,n),"data-component":`Combobox.Content`,...i,children:r})}Jm.displayName=`Combobox.Content`;var Ym=K(Jm);const Xm={root:`combobox-control`,disabled:`combobox-control-disabled`,invalid:`combobox-control-invalid`};function Zm(t,n){let{className:r,children:i,...a}=t,o=e.useContext(Rm),s=Gr(n,o?.controlRef??null);return o?(0,q.jsx)(`div`,{ref:s,className:G(Xm.root,o.disabled&&Xm.disabled,o.invalid&&Xm.invalid,r),"data-component":`Combobox.Control`,"data-open":o.open||void 0,"data-disabled":o.disabled||void 0,"data-readonly":o.readOnly||void 0,"data-invalid":o.invalid||void 0,...a,children:i}):null}Zm.displayName=`Combobox.Control`;var Qm=K(Zm);const $m={root:`combobox-empty`};function eh(t,n){let{className:r,children:i=`No results found`,...a}=t,o=e.useContext(Rm);return!o||o.entries.length===0||o.matches.length>0?null:(0,q.jsx)(`div`,{ref:n,role:`presentation`,className:G($m.root,r),"data-component":`Combobox.Empty`,...a,children:i})}eh.displayName=`Combobox.Empty`;var th=K(eh);const nh={root:`combobox-input`},rh=[`ArrowDown`,`ArrowUp`],ih=[`Backspace`,`Delete`];function ah(t,n){let{className:r,onChange:i,onClick:a,onKeyDown:o,onKeyUp:s,...c}=t,l=e.useContext(Rm),u=l?.inputRef,d=Gr(n,u??null),[f,p]=e.useState(!0),m=l?.inputValue??``,h=f?l?.completion??``:``,g=h===``?m:h;e.useEffect(()=>{let e=u?.current;!e||h===``||e.value!==h||document.activeElement===e&&e.setSelectionRange(m.length,h.length)},[h,u,m]);let _=e=>{i?.(e),l?.onType(e.currentTarget.value)},v=e=>{a?.(e),!(e.defaultPrevented||!l||l.disabled)&&l.openOnClick&&!l.open&&l.setOpen(!0)},y=e=>{if(o?.(e),!(!l||e.defaultPrevented)&&(ih.includes(e.key)&&p(!1),!(e.ctrlKey||e.metaKey))){if(e.key===`Escape`){l.open?(e.preventDefault(),l.setOpen(!1)):l.inputValue!==``&&l.setInputValue(``);return}if(e.key===`Tab`){l.open&&l.setOpen(!1);return}if(e.key===`Enter`){l.open&&l.highlightedValue!==null&&(e.preventDefault(),l.select(l.highlightedValue));return}if(rh.includes(e.key)){if(e.preventDefault(),!l.open){l.openOnKeyPress&&!l.disabled&&l.openAt(e.key===`ArrowDown`?`first`:`last`);return}if(e.altKey){e.key===`ArrowUp`&&l.setOpen(!1);return}l.moveHighlight(e.key===`ArrowDown`?1:-1)}}},b=e=>{s?.(e),ih.includes(e.key)&&p(!0)};if(!l)return null;let x=l.open&&l.highlightedValue!==null?l.getItemId(l.highlightedValue):void 0;return(0,q.jsx)(Ps,{ref:d,id:l.inputId,type:`text`,block:!0,role:`combobox`,autoComplete:`off`,"aria-autocomplete":l.inputBehavior===`autocomplete`?`both`:`list`,"aria-expanded":l.open,"aria-controls":l.open?l.listId:void 0,"aria-activedescendant":x,disabled:l.disabled,readOnly:l.readOnly,required:l.required,validationStatus:l.invalid?`error`:void 0,placeholder:l.placeholder,value:g,onChange:_,onClick:v,onKeyDown:y,onKeyUp:b,className:G(nh.root,r),"data-component":`Combobox.Input`,...c})}ah.displayName=`Combobox.Input`;var oh=K(ah);const sh={hidden:`hidden`},ch=W(`combobox-item`,{variants:{selected:{true:`combobox-item-selected`,false:``},highlighted:{true:`combobox-item-highlighted`,false:``},disabled:{true:`combobox-item-disabled`,false:``}}});function lh(t,n){let{value:r,label:i,disabled:a=!1,onSelect:o,className:s,children:c,onClick:l,onPointerMove:u,...d}=t,f=Y(),p=e.useContext(Rm),m=e.useContext(zm),h=e.useRef(null),g=Gr(n,h),[_,v]=e.useState(i??``);Ur(()=>{if(i!==void 0){v(i);return}let e=h.current,t=e?.querySelector(`[data-component="Combobox.ItemText"]`);v(((t??e)?.textContent??``).trim())},[i,c]);let y=p?.register,b=p?.unregister,x=m?.groupId;e.useEffect(()=>{if(!(!y||!b||_===``))return y({value:r,label:_,id:f,groupId:x,disabled:a}),()=>{b(r)}},[a,x,f,_,y,b,r]);let S=p?.isSelected(r)??!1,C=p?.highlightedValue===r,w=!(p?.entries.some(e=>e.value===r)??!1)||(p?.isMatch(r)??!0);e.useEffect(()=>{C&&h.current?.scrollIntoView?.({block:`nearest`})},[C]);let T=e.useMemo(()=>({value:r,selected:S,highlighted:C,disabled:a}),[a,C,S,r]);return(0,q.jsx)(Bm.Provider,{value:T,children:(0,q.jsx)(`div`,{ref:g,id:f,role:`option`,"aria-selected":S,"aria-disabled":a||void 0,className:G(ch({selected:S,highlighted:C,disabled:a}),!w&&sh.hidden,s),onClick:e=>{l?.(e),!(e.defaultPrevented||a)&&(o?.(r),p?.select(r))},onPointerMove:e=>{u?.(e),!e.defaultPrevented&&!a&&!C&&p?.setHighlightedValue(r)},"data-component":`Combobox.Item`,"data-value":r,"data-selected":S||void 0,"data-highlighted":C||void 0,"data-disabled":a||void 0,...d,children:c})})}lh.displayName=`Combobox.Item`;var uh=K(lh);const dh={root:`combobox-item-group`,hidden:`hidden`};function fh(t,n){let{forceMount:r=!1,className:i,children:a,...o}=t,s=Y(),c=Y(),l=e.useContext(Rm),u=e.useMemo(()=>({groupId:s,labelId:c}),[s,c]),d=(l?.entries??[]).filter(e=>e.groupId===s),f=r||d.length===0||d.some(e=>l?.isMatch(e.value)??!0);return(0,q.jsx)(zm.Provider,{value:u,children:(0,q.jsx)(`div`,{ref:n,role:`group`,"aria-labelledby":c,className:G(dh.root,!f&&dh.hidden,i),"data-component":`Combobox.ItemGroup`,...o,children:a})})}fh.displayName=`Combobox.ItemGroup`;var ph=K(fh);const mh={root:`combobox-item-group-label`};function hh(t,n){let{className:r,children:i,...a}=t,o=e.useContext(zm);return(0,q.jsx)(`div`,{ref:n,id:o?.labelId,className:G(mh.root,r),"data-component":`Combobox.ItemGroupLabel`,...a,children:i})}hh.displayName=`Combobox.ItemGroupLabel`;var gh=K(hh);const _h={root:`combobox-item-indicator`,unmarked:`invisible`};function vh(t,n){let{className:r,children:i,...a}=t,o=e.useContext(Bm)?.selected??!1;return(0,q.jsx)(`span`,{ref:n,"aria-hidden":`true`,className:G(_h.root,!o&&_h.unmarked,r),"data-component":`Combobox.ItemIndicator`,"data-selected":o||void 0,...a,children:i??(0,q.jsx)(Rn,{})})}vh.displayName=`Combobox.ItemIndicator`;var yh=K(vh);const bh={root:`combobox-item-text`};function xh(e,t){let{className:n,children:r,...i}=e;return(0,q.jsx)(`span`,{ref:t,className:G(bh.root,n),"data-component":`Combobox.ItemText`,...i,children:r})}xh.displayName=`Combobox.ItemText`;var Sh=K(xh);const Ch={root:`combobox-label`,disabled:`combobox-label-disabled`};function wh(t,n){let{className:r,children:i,...a}=t,o=e.useContext(Rm);return o?(0,q.jsx)(`label`,{ref:n,id:o.labelId,htmlFor:o.inputId,className:G(Ch.root,o.disabled&&Ch.disabled,r),"data-component":`Combobox.Label`,"data-disabled":o.disabled||void 0,...a,children:i}):null}wh.displayName=`Combobox.Label`;var Th=K(wh);const Eh={root:`combobox-list`};function Dh(t,n){let{className:r,children:i,...a}=t,o=e.useContext(Rm);return o?(0,q.jsx)(`div`,{ref:n,id:o.listId,role:`listbox`,"aria-labelledby":o.labelId,"aria-multiselectable":o.multiple||void 0,tabIndex:-1,className:G(Eh.root,r),"data-component":`Combobox.List`,...a,children:i}):null}Dh.displayName=`Combobox.List`;var Oh=K(Dh);const kh=W([`combobox-positioner`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2`],{variants:{unplaced:{true:`invisible`,false:``}}}),Ah=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign&&e.anchorWidth===t.anchorWidth;function jh(t,n){let{side:r=`outside-bottom`,align:i=`start`,portalContainerName:a,className:o,style:s,children:c,onMouseDown:l,...u}=t,d=e.useContext(Rm),f=d?.open??!1,p=d?.controlRef,m=d?.contentRef,h=Gr(n,m??null),g=e.useRef(null),[_,v]=e.useState(null),y=e.useCallback(()=>{let e=p?.current,t=m?.current;if(!e||!t)return;let n={...Ga(t,e,{side:r,align:i}),anchorWidth:e.getBoundingClientRect().width};g.current&&Ah(g.current,n)||(g.current=n,v(n))},[i,p,m,r]);if(Ur(()=>{if(!f){g.current=null,v(null);return}y();let e=new ResizeObserver(y),t=p?.current;return m?.current&&e.observe(m.current),t&&e.observe(t),window.addEventListener(`resize`,y),window.addEventListener(`scroll`,y,!0),()=>{e.disconnect(),window.removeEventListener(`resize`,y),window.removeEventListener(`scroll`,y,!0)}},[p,f,m,y]),!d||!f)return null;let b=e=>{l?.(e),e.defaultPrevented||e.preventDefault()};return(0,q.jsx)(Ba,{containerName:a,children:(0,q.jsx)(`div`,{ref:h,className:G(kh({unplaced:!_}),o),style:{...s,"--combobox-positioner-top":`${_?.top??0}px`,"--combobox-positioner-left":`${_?.left??0}px`,"--combobox-positioner-anchor-width":`${_?.anchorWidth??0}px`},onMouseDown:b,"data-component":`Combobox.Positioner`,"data-side":_?.anchorSide??r,"data-align":_?.anchorAlign??i,...u,children:c})})}jh.displayName=`Combobox.Positioner`;var Mh=K(jh);const Nh={root:`combobox-trigger`};function Ph(t,n){let{className:r,icon:i=zn,onClick:a,onMouseDown:o,"aria-label":s=`Show suggestions`,...c}=t,l=e.useContext(Rm);return l?(0,q.jsx)(na,{ref:n,icon:i,variant:`invisible`,size:`small`,tabIndex:-1,"aria-label":s,"aria-expanded":l.open,"aria-controls":l.open?l.listId:void 0,disabled:l.disabled,className:G(Nh.root,r),onMouseDown:e=>{o?.(e),e.defaultPrevented||e.preventDefault()},onClick:e=>{a?.(e),!(e.defaultPrevented||l.disabled)&&(l.setOpen(!l.open),l.inputRef.current?.focus())},"data-component":`Combobox.Trigger`,...c}):null}Ph.displayName=`Combobox.Trigger`;var Fh=K(Ph);const Ih=Object.assign(Um,{Label:Th,Control:Qm,Input:oh,Trigger:Fh,ClearTrigger:Km,Positioner:Mh,Content:Ym,List:Oh,ItemGroup:ph,ItemGroupLabel:gh,Item:uh,ItemText:Sh,ItemIndicator:yh,Empty:th}),Lh=(e,t)=>{let n=0,r=0;for(let i of t){let t=e.indexOf(i,n);if(t===-1)return 0;r+=t-n,n=t+1}return Math.max(.5-r*.01,.1)},Rh=(e,t)=>{if(e===t)return 1;if(e.startsWith(t))return .9;let n=e.indexOf(t);return n>0?/\s|[-_/]/.test(e[n-1])?.8:.6:Lh(e,t)},zh=(e,t,n=[])=>{let r=t.trim().toLowerCase();return r===``?1:[e,...n].map(e=>Rh(e.trim().toLowerCase(),r)).reduce((e,t)=>Math.max(e,t),0)},Bh=n(null),Vh=n(null),Hh={root:`command-palette`,hidden:`sr-only`},Uh=(e,t)=>e.map((e,t)=>({entry:e,index:t})).filter(({entry:e})=>e.forceMount||(t[e.value]??0)>0).sort((e,n)=>{let r=(t[n.entry.value]??0)-(t[e.entry.value]??0);return r===0?e.index-n.index:r}).map(({entry:e})=>e.value);function Wh(t,n){let{search:r,defaultSearch:i=``,onSearchChange:a,value:o,defaultValue:s=``,onValueChange:c,onSelect:l,filter:u=zh,shouldFilter:d=!0,loop:f=!1,label:p=`Command palette`,className:m,children:h,...g}=t,_=Y(),v=Y(),y=r!==void 0,[b,x]=e.useState(i),S=y?r:b,C=o!==void 0,[w,T]=e.useState(s),E=C?o:w,[D,O]=e.useState([]),k=e.useCallback(e=>{O(t=>[...t.filter(t=>t.value!==e.value),e])},[]),A=e.useCallback(e=>{O(t=>t.filter(t=>t.value!==e))},[]),j=e.useMemo(()=>{let e={};for(let t of D)e[t.value]=d?u(t.value,S,t.keywords):1;return e},[D,u,S,d]),M=e.useMemo(()=>Uh(D,j),[D,j]),N=e.useMemo(()=>M.filter(e=>!D.find(t=>t.value===e)?.disabled),[D,M]),P=N.includes(E)?E:N[0]??``,F=D.find(e=>e.value===P)?.id,I=e.useCallback(e=>{C||T(e),c?.(e)},[C,c]),L=e.useRef(P);e.useEffect(()=>{L.current!==P&&(L.current=P,c?.(P))},[c,P]);let ee=e.useCallback(e=>{y||x(e),a?.(e)},[y,a]),R=e.useCallback(e=>{l?.(e)},[l]),te=e=>{if(N.length===0)return;let t=N.indexOf(P)+e,n=f?(t+N.length)%N.length:Math.min(Math.max(t,0),N.length-1);I(N[n])},z=e=>{if(!(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),te(e.key===`ArrowDown`?1:-1);return}e.key===`Enter`&&P!==``&&(e.preventDefault(),R(P))}},ne=e.useMemo(()=>({search:S,setSearch:ee,value:P,activeId:F,setValue:I,order:M,entries:D,scores:j,register:k,unregister:A,onSelect:R,listId:_,labelId:v,shouldFilter:d}),[F,D,R,v,_,M,k,j,S,ee,I,d,A,P]);return(0,q.jsx)(Bh.Provider,{value:ne,children:(0,q.jsxs)(`div`,{ref:n,className:G(Hh.root,m),onKeyDown:z,"data-component":`CommandPalette`,...g,children:[(0,q.jsx)(`span`,{id:v,className:Hh.hidden,children:p}),h]})})}Wh.displayName=`CommandPalette`;var Gh=K(Wh);let Kh=0,qh=``,Jh=``;const Yh=e=>{s(()=>{if(!e){if(Kh++,Kh===1){let e=window.innerWidth-document.body.clientWidth;qh=document.body.style.overflow,Jh=document.body.style.paddingRight,document.body.style.overflow=`hidden`,document.body.style.paddingRight=`${e}px`,document.body.setAttribute(`data-scroll-locked`,``)}return()=>{Kh--,Kh===0&&(document.body.style.overflow=qh,document.body.style.paddingRight=Jh,document.body.removeAttribute(`data-scroll-locked`))}}},[e])},Xh={backdrop:`command-palette-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short`,panel:`command-palette-panel motion-safe:animate-in motion-safe:fade-in motion-safe:zoom-in-95 motion-safe:duration-short`};function Zh(t,n){let{open:r,onOpenChange:i,returnFocusRef:a,overlayClassName:o,className:s,children:c,...l}=t,u=e.useRef(null);return Ta({containerRef:u,returnFocusRef:a,disabled:!r}),Oa(e=>{r&&(e.preventDefault(),i(!1))}),Yh(!r),r?(0,q.jsx)(Ba,{children:(0,q.jsx)(`div`,{className:G(Xh.backdrop,o),onMouseDown:e=>{e.target===e.currentTarget&&i(!1)},"data-component":`CommandPalette.Backdrop`,children:(0,q.jsx)(`div`,{ref:u,role:`dialog`,"aria-modal":`true`,"aria-label":l.label??`Command palette`,className:Xh.panel,"data-component":`CommandPalette.Dialog`,children:(0,q.jsx)(Gh,{ref:n,className:s,...l,children:c})})})}):null}Zh.displayName=`CommandPalette.Dialog`;var Qh=K(Zh);const $h={root:`command-palette-empty`};function eg(t,n){let{className:r,children:i=`No results found`,...a}=t,o=e.useContext(Bh);return!o||o.entries.length===0||o.order.length>0?null:(0,q.jsx)(`div`,{ref:n,role:`presentation`,className:G($h.root,r),"data-component":`CommandPalette.Empty`,...a,children:i})}eg.displayName=`CommandPalette.Empty`;var tg=K(eg);const ng={root:`command-palette-group`,heading:`command-palette-group-heading`,hidden:`hidden`};function rg(t,n){let{heading:r,forceMount:i=!1,className:a,children:o,...s}=t,c=Y(),l=Y(),u=e.useContext(Bh),d=e.useMemo(()=>({groupId:c}),[c]),f=(u?.entries??[]).filter(e=>e.groupId===c),p=f.map(e=>u?.order.indexOf(e.value)??-1).filter(e=>e!==-1),m=i||f.length===0||p.length>0;return(0,q.jsx)(Vh.Provider,{value:d,children:(0,q.jsxs)(`div`,{ref:n,role:`group`,"aria-labelledby":r?l:void 0,className:G(ng.root,!m&&ng.hidden,a),style:{order:p.length>0?Math.min(...p):void 0},"data-component":`CommandPalette.Group`,...s,children:[r?(0,q.jsx)(`div`,{id:l,className:ng.heading,"data-component":`CommandPalette.GroupHeading`,children:r}):null,o]})})}rg.displayName=`CommandPalette.Group`;var ig=K(rg);const ag={root:`command-palette-input`};function og(t,n){let{className:r,placeholder:i=`Type a command or search`,...a}=t,o=e.useContext(Bh);return o?(0,q.jsx)(Ps,{ref:n,type:`text`,size:`large`,block:!0,role:`combobox`,"aria-expanded":`true`,"aria-autocomplete":`list`,"aria-controls":o.listId,"aria-labelledby":o.labelId,"aria-activedescendant":o.activeId,autoComplete:`off`,leadingVisual:mr,placeholder:i,value:o.search,onChange:e=>o.setSearch(e.target.value),className:G(ag.root,r),"data-component":`CommandPalette.Input`,...a}):null}og.displayName=`CommandPalette.Input`;var sg=K(og);const cg={root:`command-palette-item`,active:`command-palette-item-active`,unavailable:`command-palette-item-unavailable`,hidden:`hidden`};function lg(t,n){let{value:r,keywords:i,disabled:a=!1,forceMount:o=!1,onSelect:s,className:c,children:l,onClick:u,onPointerMove:d,...f}=t,p=Y(),m=e.useContext(Bh),h=e.useContext(Vh),g=e.useRef(null),_=Gr(n,g),[v,y]=e.useState(r??``);Ur(()=>{y(r??(g.current?.textContent??``).trim())},[r,l]);let b=(i??[]).join(`\0`),x=m?.register,S=m?.unregister,C=h?.groupId;e.useEffect(()=>{if(!(!x||!S||v===``))return x({value:v,id:p,keywords:b===``?[]:b.split(`\0`),groupId:C,disabled:a,forceMount:o}),()=>{S(v)}},[a,o,C,p,b,x,S,v]);let w=m?.order.indexOf(v)??-1,T=m?.value===v&&v!==``,E=m===null||v===``||m.scores[v]===void 0||w!==-1;return e.useEffect(()=>{T&&g.current?.scrollIntoView?.({block:`nearest`})},[T]),(0,q.jsx)(`div`,{ref:_,id:p,role:`option`,"aria-selected":T,"aria-disabled":a||void 0,className:G(cg.root,T&&cg.active,a&&cg.unavailable,!E&&cg.hidden,c),style:{order:w===-1?void 0:w},onClick:e=>{u?.(e),!(a||e.defaultPrevented)&&(s?.(v),m?.onSelect(v))},onPointerMove:e=>{d?.(e),!a&&!T&&m?.setValue(v)},"data-component":`CommandPalette.Item`,"data-value":v||void 0,"data-active":T||void 0,"data-disabled":a||void 0,...f,children:l})}lg.displayName=`CommandPalette.Item`;var ug=K(lg);const dg={root:`command-palette-list`};function fg(t,n){let{maxHeight:r=400,className:i,style:a,children:o,...s}=t,c=e.useContext(Bh);return c?(0,q.jsx)(`div`,{ref:n,id:c.listId,role:`listbox`,"aria-labelledby":c.labelId,className:G(dg.root,i),style:{...a,maxHeight:`${r}px`},"data-component":`CommandPalette.List`,...s,children:o}):null}fg.displayName=`CommandPalette.List`;var pg=K(fg);const mg={root:`command-palette-loading`};function hg(e,t){let{label:n=`Loading`,className:r,children:i,...a}=e;return(0,q.jsx)(`div`,{ref:t,role:`presentation`,className:G(mg.root,r),"data-component":`CommandPalette.Loading`,...a,children:i??(0,q.jsx)(zi,{size:`small`,srText:n})})}hg.displayName=`CommandPalette.Loading`;var gg=K(hg);const _g={root:`command-palette-separator`};function vg(t,n){let{alwaysRender:r=!1,className:i,...a}=t,o=e.useContext(Bh);return!r&&o!==null&&o.search.trim()!==``?null:(0,q.jsx)(`div`,{ref:n,role:`separator`,className:G(_g.root,i),"data-component":`CommandPalette.Separator`,...a})}vg.displayName=`CommandPalette.Separator`;var yg=K(vg);const bg=Object.assign(Gh,{Dialog:Qh,Input:sg,List:pg,Group:ig,Item:ug,Separator:yg,Empty:tg,Loading:gg}),xg={root:`scrollable-region`};function Sg(t,n){let{as:r=`div`,className:i,"aria-label":a,"aria-labelledby":o,...s}=t,c=e.useRef(null),l=Gr(n,c),u=gm(c)?{role:`region`,tabIndex:0,"aria-label":a,"aria-labelledby":o}:{};return(0,q.jsx)(r,{ref:l,className:G(xg.root,i),"data-component":`ScrollableRegion`,...u,...s})}Sg.displayName=`ScrollableRegion`;var Cg=K(Sg);const wg={root:`dialog-body`};function Tg(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(wg.root,r),"data-component":`Dialog.Body`,...i})}Tg.displayName=`Dialog.Body`;var Eg=K(Tg);const Dg=n(void 0);function Og({buttons:t}){let n=e.useContext(Dg),r=t.findIndex(e=>e.autoFocus),i=Gr(n?.autoFocusRef,t[r]?.ref);return(0,q.jsx)(q.Fragment,{children:t.map((e,t)=>{let{content:n,buttonType:a=`default`,autoFocus:o,ref:s,...c}=e;return(0,q.jsx)($i,{ref:o&&t===r?i:s,variant:a===`normal`?`default`:a,"data-component":`Dialog.FooterButton`,...c,children:n},t)})})}Og.displayName=`Dialog.Buttons`;function kg(e,t){let{onClose:n,...r}=e;return(0,q.jsx)(na,{ref:t,icon:Xn,"aria-label":`Close`,variant:`invisible`,onClick:n,"data-component":`Dialog.CloseButton`,...r})}kg.displayName=`Dialog.CloseButton`;var Ag=K(kg);const jg={root:`dialog-footer`,scroll:`dialog-footer-scroll`};function Mg(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(jg.root,jg.scroll,r),"data-component":`Dialog.Footer`,...i})}Mg.displayName=`Dialog.Footer`;var Ng=K(Mg);const Pg={root:`dialog-header`};function Fg(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Pg.root,r),"data-component":`Dialog.Header`,...i})}Fg.displayName=`Dialog.Header`;var Ig=K(Fg);const Lg={root:`dialog-subtitle`};function Rg(e,t){let{as:n=`h2`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Lg.root,r),"data-component":`Dialog.Subtitle`,...i})}Rg.displayName=`Dialog.Subtitle`;var zg=K(Rg);const Bg={root:`dialog-title`};function Vg(e,t){let{as:n=`h1`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Bg.root,r),"data-component":`Dialog.Title`,...i})}Vg.displayName=`Dialog.Title`;var Hg=K(Vg);const Ug={backdrop:`dialog-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short`,backdropPosition:{center:`dialog-backdrop-center`,left:`dialog-backdrop-left`,right:`dialog-backdrop-right`},backdropNarrowPosition:{center:`dialog-backdrop-narrow-center`,bottom:`dialog-backdrop-narrow-bottom`,fullscreen:`dialog-backdrop-narrow-fullscreen`},backdropAlign:{top:`dialog-backdrop-align-top`,center:`dialog-backdrop-align-center`,bottom:`dialog-backdrop-align-bottom`},backdropNarrowAlign:{top:`dialog-backdrop-narrow-align-top`,center:`dialog-backdrop-narrow-align-center`,bottom:`dialog-backdrop-narrow-align-bottom`},root:`dialog motion-safe:animate-in motion-safe:duration-short`,width:{small:`dialog-width-small`,medium:`dialog-width-medium`,large:`dialog-width-large`,xlarge:`dialog-width-xlarge`},customWidth:`dialog-width-custom`,height:{small:`dialog-height-small`,large:`dialog-height-large`,auto:`dialog-height-auto`},position:{center:`motion-safe:fade-in motion-safe:zoom-in-50`,left:`dialog-left motion-safe:slide-in-from-left`,right:`dialog-right motion-safe:slide-in-from-right`},narrowPosition:{center:``,bottom:`dialog-narrow-bottom max-medium:motion-safe:zoom-in-100 max-medium:motion-safe:slide-in-from-bottom`,fullscreen:`dialog-narrow-fullscreen`},align:{top:`dialog-align-top`,center:``,bottom:`dialog-align-bottom`},headerInner:`dialog-header-inner`,headerContent:`dialog-header-content`,overflowWrapper:`dialog-overflow-wrapper`,overflowWrapperBordered:`dialog-overflow-wrapper-bordered`},Wg={narrow:`center`,regular:`center`};let Gg=0,Kg=``,qg=``;const Jg=e=>typeof e==`string`&&e in Ug.width,Yg=e=>typeof e==`number`?`${e}px`:e,Xg=({title:e,subtitle:t,dialogLabelId:n,dialogDescriptionId:r,onClose:i})=>(0,q.jsx)(Ig,{children:(0,q.jsxs)(`div`,{className:Ug.headerInner,children:[(0,q.jsxs)(`div`,{className:Ug.headerContent,children:[(0,q.jsx)(Hg,{id:n,children:e}),t?(0,q.jsx)(zg,{id:r,children:t}):null]}),(0,q.jsx)(Ag,{onClose:()=>i(`close-button`)})]})}),Zg=({children:e})=>(0,q.jsx)(Eg,{children:e}),Qg=e=>{let t=e.key===`ArrowRight`?1:e.key===`ArrowLeft`?-1:0;if(e.defaultPrevented||t===0)return;let n=Array.from(e.currentTarget.querySelectorAll(`[data-component='Dialog.FooterButton']:not([disabled])`)),r=n.indexOf(document.activeElement);r!==-1&&(e.preventDefault(),n[(r+t+n.length)%n.length].focus())},$g=({footerButtons:e})=>e?(0,q.jsx)(Ng,{onKeyDown:Qg,children:(0,q.jsx)(Og,{buttons:e})}):null;function e_(t,n){let{title:r=`Dialog`,subtitle:i=``,renderHeader:a,renderBody:o,renderFooter:s,footerButtons:c,onClose:l,role:u=`dialog`,width:d=`xlarge`,height:f=`auto`,position:p=Wg,align:m,returnFocusRef:h,initialFocusRef:g,className:_,style:v,children:y,...b}=t,x=Y(),S=Y(),C=e.useRef(null),w=Gr(n,C),T=e.useRef(null),E=e.useRef(null),D=e.useRef(null),[O,k]=e.useState(!1),[A,j]=e.useState(`wrap`),M=gm(E);Ta({containerRef:C,initialFocusRef:g??D,returnFocusRef:h}),Oa(e=>{l(`escape`),e.preventDefault()}),e.useEffect(()=>{if(Gg++,Gg===1){let e=window.innerWidth-document.body.clientWidth;Kg=document.body.style.overflow,qg=document.body.style.paddingRight,document.body.style.overflow=`hidden`,document.body.style.paddingRight=`${e}px`,document.body.setAttribute(`data-dialog-scroll-disabled`,``)}return()=>{Gg--,Gg===0&&(document.body.style.overflow=Kg,document.body.style.paddingRight=qg,document.body.removeAttribute(`data-dialog-scroll-disabled`))}},[]);let[N,P]=si(y,{header:Ig,body:Eg,footer:Ng}),F={...t,title:r,subtitle:i,role:u,footerButtons:c,dialogLabelId:x,dialogDescriptionId:S},I=N.header??(a??Xg)(F),L=N.body??(o??Zg)({...F,children:P}),ee=N.footer??(s??$g)(F),R=!!ee,te=e.useCallback(()=>{let e=C.current,t=E.current;if(!R||!e||!t)return;e.setAttribute(`data-footer-button-layout`,`wrap`);let n=t.clientHeight>=48?`wrap`:`scroll`;e.setAttribute(`data-footer-button-layout`,n),j(n)},[R]);e.useEffect(()=>{let e=T.current;if(!e)return;let t=new ResizeObserver(te);return t.observe(e),()=>{t.disconnect()}},[te]);let z=e=>{e.target===e.currentTarget&&O&&l(`escape`)},ne=typeof p==`string`?{regular:p}:p,B=ne.regular??`center`,re=ne.narrow,V=B===`center`?m:void 0,ie=ka(`position`,ne),ae=m?{"data-align":m}:void 0;return(0,q.jsx)(Dg.Provider,{value:{autoFocusRef:D},children:(0,q.jsx)(Ba,{children:(0,q.jsx)(`div`,{ref:T,className:G(Ug.backdrop,Ug.backdropPosition[B],V&&Ug.backdropAlign[V],re&&Ug.backdropNarrowPosition[re],re===`center`&&V&&Ug.backdropNarrowAlign[V]),onClick:z,onMouseDown:e=>{k(e.target===e.currentTarget)},"data-component":`Dialog.Backdrop`,...ie,...ae,children:(0,q.jsxs)(`div`,{ref:w,role:u,"aria-labelledby":x,"aria-describedby":S,"aria-modal":!0,className:G(Ug.root,Jg(d)?Ug.width[d]:Ug.customWidth,Ug.height[f],Ug.position[B],V&&Ug.align[V],re&&Ug.narrowPosition[re],_),style:{...v,...Jg(d)?{}:{"--dialog-width":Yg(d)}},"data-component":`Dialog`,"data-width":Jg(d)?d:void 0,"data-height":f,"data-has-footer":R?``:void 0,"data-footer-button-layout":R?A:void 0,...ie,...ae,...b,children:[I,(0,q.jsx)(Cg,{ref:E,"aria-labelledby":x,className:G(Ug.overflowWrapper,R&&M&&Ug.overflowWrapperBordered),children:L}),ee]})})})})}e_.displayName=`Dialog`;var t_=K(e_);function n_(e,t){let{onClose:n,title:r,cancelButtonContent:i=`Cancel`,confirmButtonContent:a=`OK`,confirmButtonType:o=`normal`,cancelButtonLoading:s=!1,confirmButtonLoading:c=!1,overrideButtonFocus:l,width:u=`medium`,height:d,className:f,children:p}=e,m=l??(o===`danger`?`cancel`:`confirm`);return(0,q.jsx)(t_,{ref:t,title:r,onClose:n,footerButtons:[{content:i,onClick:()=>n(`cancel`),autoFocus:m===`cancel`,loading:s},{content:a,buttonType:o,onClick:()=>n(`confirm`),autoFocus:m===`confirm`,loading:c}],role:`alertdialog`,width:u,height:d,className:f,"data-component":`ConfirmationDialog`,children:p})}n_.displayName=`ConfirmationDialog`;var r_=K(n_);const i_=({content:e,...t})=>new Promise(n=>{let r=document.createElement(`div`);document.body.append(r);let i=y(r);i.render((0,q.jsx)(r_,{...t,onClose:e=>{queueMicrotask(()=>{i.unmount(),r.remove()}),n(e===`confirm`)},children:e}))}),a_=()=>i_,o_=n(void 0),s_={x:0,y:0,size:0};function c_(t){let{children:n,open:r,onOpenChange:i,disabled:a=!1,portalContainerName:o}=t,s=e.useRef(null),[c,l]=e.useState(s_),u=r!==void 0,[d,f]=e.useState(!1),p=(u?r:d)&&!a,m=e.useCallback(e=>{f(e),i?.(e)},[i]),h=e.useCallback(e=>{l(e),m(!0)},[m]),g=e.useCallback(()=>m(!1),[m]),_=e.useMemo(()=>({triggerRef:s,point:c,open:p,disabled:a,onOpen:h,onClose:g,portalContainerName:o}),[c,p,a,h,g,o]);return(0,q.jsx)(o_.Provider,{value:_,children:n})}c_.displayName=`ContextMenu`;const l_={point:`context-menu-point`,container:`context-menu-overlay`};function u_(t){let{children:n,align:r=`start`,side:i=`outside-bottom`,className:a,returnFocusRef:o,"aria-label":s=`Context menu`,"aria-labelledby":c,...l}=t,u=e.useContext(o_),d=u?.onClose,f=e.useRef(null),p=e.useCallback(()=>d?.(),[d]),m=e=>{!e.defaultPrevented&&e.key===`Tab`&&d?.()},h=e.useMemo(()=>({container:`ContextMenu`,listRole:`menu`,listLabel:c?void 0:s,listLabelledBy:c,selectionAttribute:`aria-checked`,afterSelect:p}),[s,c,p]),g=e.useMemo(()=>({anchorRef:f,renderAnchor:null,open:!!u?.open,onClose:p}),[u?.open,p]);if(!u||!u.open)return null;let{point:_}=u;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Ba,{containerName:u.portalContainerName,children:(0,q.jsx)(`div`,{ref:f,"aria-hidden":!0,className:l_.point,style:{"--context-menu-point-top":`${_.y}px`,"--context-menu-point-left":`${_.x}px`,"--context-menu-point-size":`${_.size}px`},"data-component":`ContextMenu.Point`})}),(0,q.jsx)(Za,{renderAnchor:null,anchorRef:f,open:u.open,onClose:p,align:r,side:i,anchorOffset:0,className:a,overlayProps:{portalContainerName:u.portalContainerName},focusTrapSettings:{returnFocusRef:o??u.triggerRef},...l,children:(0,q.jsx)(`div`,{className:l_.container,onKeyDown:m,"data-component":`ContextMenu.Overlay`,children:(0,q.jsx)(va.Provider,{value:g,children:(0,q.jsx)(gi.Provider,{value:h,children:n})})})})]})}u_.displayName=`ContextMenu.Overlay`;const d_={trigger:`context-menu-trigger`};function f_(t){let{children:n,className:r,onContextMenu:i,onTouchStart:a,onTouchMove:o,onTouchEnd:s,onTouchCancel:c,...l}=t,u=e.useContext(o_),d=!!u?.disabled,f=u?.onOpen,p=e.useRef(null),m=e.useRef(null),h=e.useCallback(()=>{m.current!==null&&(window.clearTimeout(m.current),m.current=null),p.current=null},[]);return e.useEffect(()=>h,[h]),(0,q.jsx)(`div`,{ref:u?.triggerRef,tabIndex:-1,className:G(d_.trigger,r),onContextMenu:e=>{i?.(e),!(d||e.defaultPrevented)&&(e.preventDefault(),h(),f?.({x:e.clientX,y:e.clientY,size:0}))},onTouchStart:e=>{if(a?.(e),h(),d||e.defaultPrevented||e.touches.length!==1)return;e.stopPropagation();let t=e.touches[0],n={x:t.clientX,y:t.clientY};p.current=n,m.current=window.setTimeout(()=>{m.current=null,f?.({...n,size:10})},500)},onTouchMove:e=>{o?.(e);let t=p.current;if(!t)return;if(e.touches.length!==1){h();return}let n=e.touches[0];(Math.abs(n.clientX-t.x)>10||Math.abs(n.clientY-t.y)>10)&&h()},onTouchEnd:e=>{s?.(e),h()},onTouchCancel:e=>{c?.(e),h()},"data-component":`ContextMenu.Trigger`,"data-open":u?.open?``:void 0,...l,children:n})}f_.displayName=`ContextMenu.Trigger`;const p_=Object.assign(c_,{Trigger:f_,Overlay:u_,Divider:Ei}),m_={wrapper:`data-table-wrapper`},h_=W(`data-table`,{variants:{cellPadding:{condensed:`data-table-cell-padding-condensed`,normal:`data-table-cell-padding-normal`,spacious:`data-table-cell-padding-spacious`}}});function g_(e,t){let{className:n,style:r,cellPadding:i=`normal`,gridTemplateColumns:a,"aria-labelledby":o,...s}=e;return(0,q.jsx)(Cg,{...o?{"aria-labelledby":o}:{"aria-label":`Table`},className:m_.wrapper,children:(0,q.jsx)(`table`,{ref:t,role:`table`,"aria-labelledby":o,className:G(h_({cellPadding:i}),n),style:{...r,"--table-grid-template-columns":a},"data-component":`Table`,"data-cell-padding":i,...s})})}g_.displayName=`Table`;var __=K(g_);const v_={root:`data-table-actions`};function y_(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(v_.root,n),"data-component":`Table.Actions`,...r})}y_.displayName=`Table.Actions`;var b_=K(y_);const x_=`data-table-subgrid`,S_=e=>e.map(e=>{let t=e.width??`grow`,n=`auto`,r=`1fr`;return t===`auto`&&(r=`auto`),t===`grow`&&!e.maxWidth&&(n=`max-content`),t===`growCollapse`&&(n=`0`),e.minWidth&&(n=typeof e.minWidth==`number`?`${e.minWidth}px`:e.minWidth),e.maxWidth&&(r=typeof e.maxWidth==`number`?`${e.maxWidth}px`:e.maxWidth),typeof t!=`number`&&[`grow`,`growCollapse`,`auto`].includes(t)?n===r?n:`minmax(${n}, ${r})`:typeof t==`number`?`${t}px`:t}),C_=e=>S_(e).join(` `);function w_(e,t){let{className:n,...r}=e;return(0,q.jsx)(`tbody`,{ref:t,role:`rowgroup`,className:G(x_,n),"data-component":`Table.Body`,...r})}w_.displayName=`Table.Body`;var T_=K(w_);const E_={root:`data-table-cell`,end:`data-table-cell-end`,rowHeader:`data-table-cell-row-header`};function D_(e,t){let{className:n,align:r,scope:i,...a}=e;return(0,q.jsx)(i?`th`:`td`,{ref:t,scope:i,role:i?`rowheader`:`cell`,className:G(E_.root,r===`end`&&E_.end,i&&E_.rowHeader,n),"data-component":`Table.Cell`,"data-cell-align":r,...a})}D_.displayName=`Table.Cell`;var O_=K(D_);const k_={root:`data-table-cell-placeholder`};function A_(e,t){let{className:n,...r}=e;return(0,q.jsx)(Ss,{ref:t,className:G(k_.root,n),"data-component":`Table.CellPlaceholder`,...r})}A_.displayName=`Table.CellPlaceholder`;var j_=K(A_);const M_={root:`data-table-container`,spacing:`data-table-container-spacing`};function N_(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(M_.root,M_.spacing,r),"data-component":`Table.Container`,...i})}N_.displayName=`Table.Container`;var P_=K(N_);const F_={root:`data-table-divider`};function I_(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,role:`presentation`,className:G(F_.root,n),"data-component":`Table.Divider`,...r})}I_.displayName=`Table.Divider`;var L_=K(I_);function R_(e,t){let{title:n=`Error`,children:r,onRetry:i,onDismiss:a}=e;return(0,q.jsx)(r_,{ref:t,title:n,confirmButtonContent:`Retry`,cancelButtonContent:`Dismiss`,onClose:e=>{if(e===`confirm`){i?.();return}a?.()},children:r})}R_.displayName=`Table.ErrorDialog`;var z_=K(R_);function B_(e,t){let{className:n,...r}=e;return(0,q.jsx)(`thead`,{ref:t,role:`rowgroup`,className:G(x_,n),"data-component":`Table.Head`,...r})}B_.displayName=`Table.Head`;var V_=K(B_);const H_={root:`data-table-header`,end:`data-table-header-end`,sorted:`data-table-header-sorted`};function U_(e,t){let{className:n,align:r,...i}=e;return(0,q.jsx)(`th`,{ref:t,role:`columnheader`,scope:`col`,className:G(H_.root,H_.sorted,r===`end`&&H_.end,n),"data-component":`Table.Header`,"data-cell-align":r,...i})}U_.displayName=`Table.Header`;var W_=K(U_);const G_=(e,t,n,r,i)=>{let a={type:`previous`,num:t-1,disabled:t===1},o={type:`next`,num:t+1,disabled:t===e};if(!n)return[a,o];if(e<=0)return[a,{...o,disabled:!0}];let s=[],c=(e,n,r=!1)=>{for(let i=e;i<=n;i++)s.push({type:`number`,num:i,selected:i===t,precedesBreak:i===n&&r})},l=e=>{s.push({type:`break`,num:e+1})},u=i+r;if(e<=u+u+3)return c(1,e),[a,...s,o];let d=0,f=0;t-u-1<=1?f=t-u-2:d=t-u-1;let p=0,m=0;e-t-u<=1?m=e-t-u-1:p=e-t-u;let h=d>0,g=p>0;return c(1,r,h),h&&l(r),c(r+d+m+1,e-f-p-r,g),g&&l(e-f-p-r),c(e-r+1,e),[a,...s,o]},K_=(e,t,n)=>{if(e.type===`break`)return{key:`page-${e.num}-break`,content:`…`,presentational:!0,props:{}};if(e.type===`number`)return{key:`page-${e.num}`,content:String(e.num),props:{href:t(e.num),"aria-label":`Page ${e.num}${e.precedesBreak?`...`:``}`,"aria-current":e.selected?`page`:void 0,onClick:n}};let r=e.type===`previous`?`prev`:`next`,i=e.type===`previous`?`Previous`:`Next`,a=`page-${r}`;return e.disabled?{key:a,content:i,props:{rel:r,"aria-hidden":!0,"aria-disabled":!0}}:{key:a,content:i,props:{rel:r,href:t(e.num),"aria-label":`${i} Page`,onClick:n}}},q_=[`narrow`,`regular`,`wide`],J_=25,Y_={narrow:!1},X_=e=>typeof e==`object`?q_.filter(t=>e[t]===!1):e?[]:[...q_],Z_={root:`data-table-pagination`,range:`data-table-pagination-range`,steps:`data-table-pagination-steps`,step:`data-table-pagination-step`,button:`data-table-pagination-button`,truncation:`data-table-pagination-truncation`,icon:`data-table-pagination-icon`,hiddenRange:{narrow:`data-table-pagination-hidden-range-narrow`,regular:`data-table-pagination-hidden-range-regular`,wide:`data-table-pagination-hidden-range-wide`},hidden:`sr-only`},Q_=W([Z_.button,`data-table-pagination-jump`],{variants:{enabled:{true:`data-table-pagination-jump-enabled`,false:``}}}),$_=W([Z_.button,`data-table-pagination-page`],{variants:{active:{true:`data-table-pagination-page-active`,false:``}}}),ev=({defaultPageIndex:t,onChange:n,pageSize:r,totalCount:i})=>{let a=Math.ceil(i/r),o=e=>e!==void 0&&e>=0&&e<a,[s,c]=e.useState(()=>o(t)?t:0),[l,u]=e.useState(s);return o(t)&&s!==t&&(c(t),u(t),n?.({pageIndex:t})),{pageIndex:l,pageCount:a,pageStart:l*r,pageEnd:Math.min((l+1)*r,i),hasPreviousPage:l>0,hasNextPage:l+1<a,selectPage:e=>{l!==e&&(u(e),n?.({pageIndex:e}))}}},tv=({children:e})=>(0,q.jsx)(`li`,{className:Z_.step,"data-component":`Table.Pagination.Step`,children:e});function nv(t,n){let{className:r,totalCount:i,pageSize:a=25,defaultPageIndex:o,onChange:s,showPages:c=Y_,...l}=t,{pageIndex:u,pageCount:d,pageStart:f,pageEnd:p,hasPreviousPage:m,hasNextPage:h,selectPage:g}=ev({defaultPageIndex:o,onChange:s,pageSize:a,totalCount:i}),_=e.useMemo(()=>G_(d,u+1,!!c,1,2),[d,u,c]),v=X_(c),y=f+1;return(0,q.jsxs)(`nav`,{ref:n,className:G(Z_.root,r),"data-component":`Table.Pagination`,...l,children:[(0,q.jsxs)(`span`,{role:`status`,"aria-live":`polite`,className:Z_.hidden,children:[`Showing `,y,` through `,p,` of `,i]}),(0,q.jsxs)(`p`,{className:Z_.range,"data-component":`Table.Pagination.Range`,children:[y,(0,q.jsx)(`span`,{className:Z_.hidden,children:` through `}),(0,q.jsx)(`span`,{"aria-hidden":`true`,children:`‒`}),p,` of `,i]}),(0,q.jsxs)(`ol`,{className:G(Z_.steps,v.map(e=>Z_.hiddenRange[e])),"data-hidden-viewport-ranges":v.join(` `)||void 0,children:[(0,q.jsx)(tv,{children:(0,q.jsxs)(`button`,{type:`button`,className:G(Q_({enabled:m})),"data-has-page":m||void 0,"aria-disabled":!m||void 0,onClick:()=>{m&&g(u-1)},"data-component":`Table.Pagination.PreviousPageButton`,children:[m?(0,q.jsx)(Bn,{className:Z_.icon}):null,(0,q.jsx)(`span`,{children:`Previous`}),(0,q.jsx)(`span`,{className:Z_.hidden,children:`\xA0page`})]})}),_.map((e,t)=>e.type===`break`?(0,q.jsx)(`li`,{"aria-hidden":`true`,className:Z_.truncation,"data-component":`Table.Pagination.TruncationStep`,children:`…`},`break-${t}`):e.type===`number`?(0,q.jsx)(tv,{children:(0,q.jsxs)(`button`,{type:`button`,className:G($_({active:e.selected})),"data-active":e.selected||void 0,"aria-current":e.selected||void 0,onClick:()=>g(e.num-1),"data-component":`Table.Pagination.Page`,children:[(0,q.jsx)(`span`,{className:Z_.hidden,children:`Page\xA0`}),e.num,e.precedesBreak?(0,q.jsx)(`span`,{className:Z_.hidden,children:`…`}):null]})},`page-${e.num}`):null),(0,q.jsx)(tv,{children:(0,q.jsxs)(`button`,{type:`button`,className:G(Q_({enabled:h})),"data-has-page":h||void 0,"aria-disabled":!h||void 0,onClick:()=>{h&&g(u+1)},"data-component":`Table.Pagination.NextPageButton`,children:[(0,q.jsx)(`span`,{children:`Next`}),(0,q.jsx)(`span`,{className:Z_.hidden,children:`\xA0page`}),h?(0,q.jsx)(Vn,{className:Z_.icon}):null]})})]})]})}nv.displayName=`Table.Pagination`;var rv=K(nv);function iv(e,t){let{className:n,...r}=e;return(0,q.jsx)(`tr`,{ref:t,role:`row`,className:G(x_,n),"data-component":`Table.Row`,...r})}iv.displayName=`Table.Row`;var av=K(iv);const ov={root:`skeleton-box`,shimmer:`motion-safe:shimmer`};function sv(e,t){let{as:n=`div`,className:r,width:i,height:a,style:o,...s}=e;return(0,q.jsx)(n,{ref:t,className:G(ov.root,ov.shimmer,r),style:{...o,"--skeleton-box-width":i,"--skeleton-box-height":a},"data-component":`SkeletonBox`,...s})}sv.displayName=`SkeletonBox`;var cv=K(sv);const lv={wrapper:`skeleton-text-wrapper`},uv=W(`skeleton-text`,{variants:{size:{display:`skeleton-text-display`,titleLarge:`skeleton-text-title-large`,titleMedium:`skeleton-text-title-medium`,titleSmall:`skeleton-text-title-small`,bodyLarge:`skeleton-text-body-large`,bodyMedium:`skeleton-text-body-medium`,bodySmall:`skeleton-text-body-small`,subtitle:`skeleton-text-subtitle`},multiline:{true:`skeleton-text-multiline`,false:``}}});function dv({lines:e=1,maxWidth:t,size:n=`bodyMedium`,className:r,style:i,...a}){return e<2?(0,q.jsx)(cv,{width:`100%`,height:`var(--skeleton-text-font-size)`,className:G(uv({size:n}),r),style:{...i,maxWidth:t},"data-size":n,...a,"data-component":`SkeletonText`}):(0,q.jsx)(`div`,{className:lv.wrapper,style:{...i,maxWidth:t},"data-component":`SkeletonText`,children:Array.from({length:e},(e,t)=>(0,q.jsx)(cv,{height:`var(--skeleton-text-font-size)`,className:G(uv({size:n,multiline:!0}),r),"data-size":n,...a},t))})}dv.displayName=`SkeletonText`;const fv={cell:`data-table-skeleton-cell`,items:`data-table-skeleton-items`,item:`data-table-skeleton-item`,hidden:`sr-only`},pv=10;function mv(e,t){let{columns:n,cellPadding:r,rows:i=10,...a}=e;return(0,q.jsxs)(__,{ref:t,cellPadding:r,gridTemplateColumns:C_(n),"data-component":`Table.Skeleton`,...a,children:[(0,q.jsx)(V_,{children:(0,q.jsx)(av,{children:n.map((e,t)=>(0,q.jsx)(W_,{children:typeof e.header==`string`?e.header:e.header()},e.id??e.field??t))})}),(0,q.jsx)(T_,{children:(0,q.jsx)(av,{children:n.map((e,t)=>(0,q.jsxs)(O_,{className:fv.cell,"data-cell-skeleton":``,children:[(0,q.jsx)(`span`,{className:fv.hidden,children:`Loading`}),(0,q.jsx)(`div`,{className:fv.items,children:Array.from({length:i},(e,t)=>(0,q.jsx)(`div`,{className:fv.item,"data-cell-skeleton-item":``,children:(0,q.jsx)(dv,{})},t))})]},e.id??e.field??t))})})]})}mv.displayName=`Table.Skeleton`;var hv=K(mv);const gv={header:`data-table-sort-header`,button:`data-table-sort-header-button`,buttonEnd:`data-table-sort-header-button-end`,icon:`data-table-sort-header-icon`,iconResting:`data-table-sort-header-icon-resting`,hidden:`sr-only`};function _v(e,t){let{className:n,align:r,children:i,direction:a,onToggleSort:o,...s}=e,c=a===`ASC`?`ascending`:a===`DESC`?`descending`:void 0,l=a===`DESC`?An:jn;return(0,q.jsx)(W_,{ref:t,align:r,"aria-sort":c,className:G(gv.header,n),"data-component":`Table.SortHeader`,...s,children:(0,q.jsxs)(`button`,{type:`button`,onClick:o,className:G(gv.button,r===`end`&&gv.buttonEnd),"data-component":`Table.SortHeader.Button`,children:[i,(0,q.jsx)(l,{className:G(gv.icon,a===`NONE`&&gv.iconResting),"aria-hidden":`true`,"data-sort-icon":a===`DESC`?`descending`:`ascending`}),a===`NONE`?(0,q.jsx)(`span`,{className:gv.hidden,children:`sort ascending`}):null]})})}_v.displayName=`Table.SortHeader`;var vv=K(_v);const yv={root:`data-table-subtitle`};function bv(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(yv.root,r),"data-component":`Table.Subtitle`,...i})}bv.displayName=`Table.Subtitle`;var xv=K(bv);const Sv={root:`data-table-title`};function Cv(e,t){let{as:n=`h2`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Sv.root,r),"data-component":`Table.Title`,...i})}Cv.displayName=`Table.Title`;var wv=K(Cv);const Tv=`ASC`,Ev=e=>e===`ASC`?`DESC`:`ASC`,Dv=(e,t)=>e===t?0:e<t?-1:1,Ov=(e,t)=>{let n=e instanceof Date?e.getTime():e,r=t instanceof Date?t.getTime():t;return n>r?1:n<r?-1:0},kv=e=>{let t=[],n=0;for(;n<e.length;){let r=e[n];if(Av(r)){for(;n+1<e.length&&Av(e[n+1]);)r+=e[n+1],n++;t.push(parseInt(r,10))}else{for(;n+1<e.length&&!Av(e[n+1]);)r+=e[n+1],n++;t.push(r)}n++}return t},Av=e=>!Number.isNaN(parseInt(e,10)),jv={alphanumeric:(e,t)=>{let n=kv(e),r=kv(t);for(;n.length!==0&&r.length!==0;){let e=n.shift(),t=r.shift();if(e!==t){if(typeof e==`string`&&typeof t==`string`)return e.localeCompare(t);if(typeof e==`number`&&typeof t==`number`)return e>t?1:-1;if(typeof e==`number`&&typeof t==`string`)return-1;if(typeof e==`string`&&typeof t==`number`)return 1;if(e===void 0||t===void 0)break}}return n.length>r.length?1:-1},basic:Dv,datetime:Ov},Mv=(e,t)=>{let n=e;for(let e of t.split(`.`))n=n[e];return n},Nv=e=>e==null||e===``,Pv=(e,t,n)=>{let r=e=>e.sortBy!==void 0&&e.sortBy!==!1;if(t!==void 0){let i=e.find(e=>e.id===t||e.field===t);return!i||!r(i)?null:{id:`${t}`,direction:n??`ASC`}}if(n!==void 0){let t=e.find(r),i=t?.id??t?.field;return i===void 0?null:{id:i,direction:n}}return null},Fv=({columns:t,data:n,initialSortColumn:r,initialSortDirection:i,externalSorting:a,getRowId:o})=>{let[s,c]=e.useState(n),[l,u]=e.useState(n),[d,f]=e.useState(t),[p,m]=e.useState(()=>Pv(t,r,i)),h=C_(t);t!==d&&(f(t),p&&(t.some(e=>(e.id??e.field)===p.id)||m(null)));let g=t.map(e=>{let t=e.id??e.field;if(t===void 0)throw Error("Expected either an `id` or a `field` to be given for a Column");let n=e.sortBy!==void 0&&e.sortBy!==!1;return{id:t,column:e,isSortable:()=>n,getSortDirection:()=>p&&p.id===t?p.direction:`NONE`}}),_=e=>{let t=g.find(t=>t.id===e.id);if(!t)throw Error(`Unable to find a header with the id: ${e.id}`);let{sortBy:n,field:r}=t.column;if(n===!1||n===void 0)throw Error(`The column for this header cannot be sorted`);if(a)return;let i=typeof n==`string`?jv[n]:jv.basic;c(t=>t.slice().sort((t,a)=>{if(typeof n==`function`)return e.direction===`ASC`?n(t,a):n(a,t);if(r===void 0)return 0;let o=Mv(t,r),s=Mv(a,r),c=Nv(o),l=Nv(s);return!c&&!l?e.direction===`ASC`?i(o,s):i(s,o):c?+!l:-1}))};return n!==l&&(u(n),c(n),p&&_(p)),{headers:g,rows:s.map(e=>{let t=o(e);return{id:`${t}`,getValue:()=>e,getCells:()=>g.map(n=>({id:`${t}:${n.id}`,column:n.column,rowHeader:n.column.rowHeader??!1,getValue:()=>{if(n.column.field===void 0)throw Error(`Unable to get a value for the column: ${n.id}`);return Mv(e,n.column.field)}}))}}),actions:{sortBy:e=>{let t={id:e.id,direction:p&&p.id===e.id?Ev(p.direction):`ASC`};m(t),_(t)}},gridTemplateColumns:h}},Iv=e=>typeof e.header==`string`?e.header:e.header(),Lv=e=>e.id;function Rv(e,t){let{data:n,columns:r,cellPadding:i,initialSortColumn:a,initialSortDirection:o,externalSorting:s,getRowId:c=Lv,onToggleSort:l,"aria-labelledby":u,"aria-describedby":d}=e,{headers:f,rows:p,actions:m,gridTemplateColumns:h}=Fv({data:n,columns:r,initialSortColumn:a,initialSortDirection:o,externalSorting:s,getRowId:c});return(0,q.jsxs)(__,{ref:t,"aria-labelledby":u,"aria-describedby":d,cellPadding:i,gridTemplateColumns:h,children:[(0,q.jsx)(V_,{children:(0,q.jsx)(av,{children:f.map(e=>e.isSortable()?(0,q.jsx)(vv,{align:e.column.align,direction:e.getSortDirection(),onToggleSort:()=>{let t=e.getSortDirection()===`ASC`?`DESC`:`ASC`;m.sortBy(e),l?.(e.id,t)},children:Iv(e.column)},e.id):(0,q.jsx)(W_,{align:e.column.align,children:Iv(e.column)},e.id))})}),(0,q.jsx)(T_,{children:p.map(e=>(0,q.jsx)(av,{children:e.getCells().map(t=>(0,q.jsx)(O_,{scope:t.rowHeader?`row`:void 0,align:t.column.align,children:t.column.renderCell?t.column.renderCell(e.getValue()):t.getValue()},t.id))},e.id))})]})}Rv.displayName=`DataTable`;var zv=K(Rv);const Bv=()=>({column:e=>({...e,id:e.id??e.field})}),Vv=Object.assign(__,{Container:P_,Title:wv,Subtitle:xv,Actions:b_,Divider:L_,Skeleton:hv,Head:V_,Body:T_,Header:W_,SortHeader:vv,Row:av,Cell:O_,CellPlaceholder:j_,Pagination:rv,ErrorDialog:z_}),Hv={root:`date-picker`,block:`date-picker-block`,overlay:`date-picker-overlay`};function Uv(t,n){let{mode:r=`single`,value:i,defaultValue:a,onChange:o,format:s=`YYYY-MM-DD`,rangeSeparator:c=` - `,open:l,defaultOpen:u=!1,onOpenChange:d,min:f,max:p,isDateDisabled:m,weekStartsOn:h,fixedWeeks:g=!0,showWeekNumbers:_,monthFormat:v,calendarButtonLabel:y=`Choose a date`,calendarLabel:b=`Choose a date`,placeholder:x,disabled:S,block:C,onBlur:w,inputClassName:T,className:E,...D}=t,O=Y(),k=e.useRef(null),A=e.useRef(null),j=Gr(n,A),M=e.useRef(null),N=Qu(f),P=Qu(p),F=r===`range`,I=i!==void 0,[L,ee]=e.useState(()=>td(a,F)),R=I?td(i,F):L,te=l!==void 0,[z,ne]=e.useState(u),B=te?l:z,re=({from:e,to:t})=>e===null?``:!F||t===null?e.format(s):`${e.format(s)}${c}${t.format(s)}`,V=e=>{if(e.trim()===``)return ed;let t=(F?e.split(c):[e]).map(e=>dd(e.trim(),s));if(t.length>2||t.some(e=>e===null))return;let[n,r=null]=t;return F?r&&n.isAfter(r,`day`)?{from:r,to:n}:{from:n,to:r}:{from:n,to:n}},[ie,ae]=e.useState(null),oe=ie??re(R),se=(e,t)=>{te||ne(e),d?.(e,t)},ce=e=>{if([e.from,e.to].every(e=>e===null||od(e,N,P,m))){if(I||ee(e),F){o?.({from:e.from?.toDate()??null,to:e.to?.toDate()??null});return}o?.(e.from?.toDate()??null)}},le=e=>{let t=e.target.value;ae(t);let n=V(t);n&&ce(n)},ue=e=>{ae(null),w?.(e)},de=e=>{ae(null),ce(td(e,!1)),se(!1,`date-select`)},fe=e=>{ae(null),ce(td(e,!0)),e.from&&e.to&&se(!1,`date-select`)},pe=e=>{se(!1,e===`escape`?`escape`:`click-outside`)},me={min:f,max:p,isDateDisabled:m,weekStartsOn:h,fixedWeeks:g,showWeekNumbers:_,monthFormat:v,focusableDayRef:M,"data-component":`DatePicker.Calendar`};return(0,q.jsxs)(`span`,{className:G(Hv.root,C&&Hv.block,E),"data-component":`DatePicker`,"data-open":B,children:[(0,q.jsx)(`span`,{ref:k,className:G(Hv.root,C&&Hv.block),"data-component":`DatePicker.Field`,children:(0,q.jsx)(Ps,{ref:j,type:`text`,value:oe,onChange:le,onBlur:ue,placeholder:x??(F?`${s}${c}${s}`:s),disabled:S,block:C,className:T,trailingAction:(0,q.jsx)(Ps.Action,{icon:In,"aria-label":y,"aria-haspopup":`dialog`,"aria-expanded":B,"aria-controls":B?O:void 0,disabled:S,onClick:()=>se(!B,`button`),"data-component":`DatePicker.CalendarButton`}),...D})}),(0,q.jsx)(Za,{renderAnchor:null,anchorRef:k,open:B,onClose:pe,side:`outside-bottom`,align:`start`,className:Hv.overlay,overlayProps:{id:O,role:`dialog`,"aria-label":b},focusTrapSettings:{initialFocusRef:M,returnFocusRef:A},children:F?(0,q.jsx)(gd,{mode:`range`,value:{from:R.from,to:R.to},onChange:fe,...me}):(0,q.jsx)(gd,{value:R.from,onChange:de,...me})})]})}Uv.displayName=`DatePicker`;var Wv=K(Uv);const Gv={root:`details`};function Kv(t,n){let{className:r,open:i,defaultOpen:a,closeOnOutsideClick:o,onChange:s,onToggle:c,...l}=t,u=e.useRef(null),d=Gr(n,u),f=i!==void 0,[p,m]=e.useState(!!a),h=f?i:p;return e.useEffect(()=>{let e=u.current;e&&e.open!==h&&(e.open=h)}),e.useEffect(()=>{if(!o||!h)return;let e=e=>{let{target:t}=e;!(t instanceof Element)||t.closest(`details`)===u.current||(m(!1),s?.(!1))};return document.addEventListener(`click`,e),()=>{document.removeEventListener(`click`,e)}},[o,h,s]),(0,q.jsx)(`details`,{ref:d,open:h,onToggle:e=>{c?.(e);let{open:t}=e.currentTarget;m(t),t!==h&&s?.(t)},className:G(Gv.root,r),"data-component":`Details`,...l})}Kv.displayName=`Details`;var qv=K(Kv);const Jv={root:`details-summary`};function Yv(e,t){let{as:n,className:r,...i}=e,a=n??`summary`,o=a===`summary`?{}:{as:`summary`};return(0,q.jsx)(a,{ref:t,className:G(Jv.root,r),"data-component":`Details.Summary`,...o,...i})}Yv.displayName=`Details.Summary`;var Xv=K(Yv);const Zv=Object.assign(qv,{Summary:Xv}),Qv=Object.assign(t_,{Header:Ig,Title:Hg,Subtitle:zg,Body:Eg,Footer:Ng,Buttons:Og,CloseButton:Ag}),$v={root:`drawer-body`};function ey(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G($v.root,r),"data-component":`Drawer.Body`,...i})}ey.displayName=`Drawer.Body`;var ty=K(ey);const ny=n({}),ry={root:`drawer-close-button`};function iy(t,n){let{className:r,onClose:i,...a}=t,{onClose:o}=e.useContext(ny);return(0,q.jsx)(na,{ref:n,icon:Xn,"aria-label":`Close`,variant:`invisible`,className:G(ry.root,r),onClick:i??o,"data-component":`Drawer.CloseButton`,...a})}iy.displayName=`Drawer.CloseButton`;var ay=K(iy);const oy={root:`drawer-footer`};function sy(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(oy.root,r),"data-component":`Drawer.Footer`,...i})}sy.displayName=`Drawer.Footer`;var cy=K(sy);const ly={root:`drawer-header`,directTitle:`drawer-header-direct-title`};function uy(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(ly.root,ly.directTitle,r),"data-component":`Drawer.Header`,...i})}uy.displayName=`Drawer.Header`;var dy=K(uy);const fy={root:`drawer-subtitle`};function py(t,n){let{as:r=`h2`,className:i,id:a,...o}=t,{descriptionId:s}=e.useContext(ny);return(0,q.jsx)(r,{ref:n,id:a??s,className:G(fy.root,i),"data-component":`Drawer.Subtitle`,...o})}py.displayName=`Drawer.Subtitle`;var my=K(py);const hy={root:`drawer-title`};function gy(t,n){let{as:r=`h1`,className:i,id:a,...o}=t,{labelId:s}=e.useContext(ny);return(0,q.jsx)(r,{ref:n,id:a??s,className:G(hy.root,i),"data-component":`Drawer.Title`,...o})}gy.displayName=`Drawer.Title`;var _y=K(gy);const vy={backdrop:`drawer-backdrop motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short`,backdropModeless:`drawer-backdrop-modeless`,backdropPosition:{left:`drawer-backdrop-left`,right:`drawer-backdrop-right`,top:`drawer-backdrop-top`,bottom:`drawer-backdrop-bottom`},root:`drawer motion-safe:animate-in motion-safe:duration-short`,rootModeless:`drawer-modeless`,position:{left:`drawer-left motion-safe:slide-in-from-left`,right:`drawer-right motion-safe:slide-in-from-right`,top:`drawer-top motion-safe:slide-in-from-top`,bottom:`drawer-bottom motion-safe:slide-in-from-bottom`},inlineSize:{small:`drawer-inline-size-small`,medium:`drawer-inline-size-medium`,large:`drawer-inline-size-large`,xlarge:`drawer-inline-size-xlarge`},blockSize:{small:`drawer-block-size-small`,medium:`drawer-block-size-medium`,large:`drawer-block-size-large`,xlarge:`drawer-block-size-xlarge`},customInlineSize:`drawer-inline-size-custom`,customBlockSize:`drawer-block-size-custom`,headerContent:`drawer-header-content`,overflowWrapper:`drawer-overflow-wrapper`,overflowWrapperBordered:`drawer-overflow-wrapper-bordered`},yy=e=>typeof e==`string`&&e in vy.inlineSize,by=e=>typeof e==`number`?`${e}px`:e;function xy(t,n){let{title:r=`Drawer`,subtitle:i=``,onClose:a,position:o=`right`,size:s=`medium`,modal:c=!0,returnFocusRef:l,initialFocusRef:u,className:d,style:f,children:p,"aria-label":m,"aria-labelledby":h,"aria-describedby":g,..._}=t,v=Y(),y=Y(),b=e.useRef(null),x=Gr(n,b),S=e.useRef(null),[C,w]=e.useState(!1),T=gm(S);Ta({containerRef:b,initialFocusRef:u,returnFocusRef:l,disabled:!c}),Oa(e=>{a(`escape`),c&&e.preventDefault()}),Yh(!c);let[E,D]=si(p,{header:dy,body:ty,footer:cy}),O=()=>{a(`close-button`)},k=e=>{c&&e.target===e.currentTarget&&C&&a(`escape`)},A=E.header??(0,q.jsxs)(dy,{children:[(0,q.jsxs)(`div`,{className:vy.headerContent,children:[(0,q.jsx)(_y,{children:r}),i?(0,q.jsx)(my,{children:i}):null]}),(0,q.jsx)(ay,{})]}),j=E.body??(0,q.jsx)(ty,{children:D}),M=E.footer,N=!!M,P=o===`left`||o===`right`,F=yy(s),I=h??(m?void 0:v),L=g??(i?y:void 0);return(0,q.jsx)(ny.Provider,{value:{labelId:v,descriptionId:y,onClose:O},children:(0,q.jsx)(Ba,{children:(0,q.jsx)(`div`,{className:G(vy.backdrop,vy.backdropPosition[o],!c&&vy.backdropModeless),onClick:k,onMouseDown:e=>{w(e.target===e.currentTarget)},"data-component":`Drawer.Backdrop`,"data-position":o,"data-modal":c,children:(0,q.jsxs)(`div`,{ref:x,role:`dialog`,"aria-labelledby":I,"aria-describedby":L,"aria-label":m,"aria-modal":c||void 0,className:G(vy.root,vy.position[o],F?P?vy.inlineSize[s]:vy.blockSize[s]:P?vy.customInlineSize:vy.customBlockSize,!c&&vy.rootModeless,d),style:{...f,...F?{}:{"--drawer-size":by(s)}},"data-component":`Drawer`,"data-position":o,"data-size":F?s:void 0,"data-modal":c,"data-has-footer":N?``:void 0,..._,children:[A,(0,q.jsx)(Cg,{ref:S,"aria-labelledby":v,className:G(vy.overflowWrapper,N&&T&&vy.overflowWrapperBordered),children:j}),M]})})})})}xy.displayName=`Drawer`;var Sy=K(xy);const Cy=Object.assign(Sy,{Header:dy,Title:_y,Subtitle:my,Body:ty,Footer:cy,CloseButton:ay}),wy=W(`em`,{variants:{size:{large:`em-size-large`,medium:`em-size-medium`,small:`em-size-small`},weight:{light:`em-weight-light`,normal:`em-weight-normal`,medium:`em-weight-medium`,semibold:`em-weight-semibold`}}});function Ty(e,t){let{as:n=`em`,className:r,size:i,weight:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(wy({size:i,weight:a}),r),"data-component":`Em`,"data-size":i,"data-weight":a,...o})}Ty.displayName=`Em`;var Ey=K(Ty);const Dy=W(`empty-state`,{variants:{size:{small:`empty-state-small`,medium:`empty-state-medium`}}}),Oy={icon:`empty-state-icon`,title:`empty-state-title`,description:`empty-state-description`,actions:`empty-state-actions`},ky=e=>typeof e==`string`||!g(e)?e:(0,q.jsx)(e,{});function Ay(e,t){let{as:n=`div`,className:r,children:i,title:a,description:o,icon:s,size:c=`medium`,actions:l,...u}=e;return(0,q.jsxs)(n,{ref:t,className:G(Dy({size:c}),r),"data-component":`EmptyState`,"data-size":c,...u,children:[s===void 0?null:(0,q.jsx)(`span`,{className:Oy.icon,"aria-hidden":`true`,"data-component":`EmptyState.Icon`,children:ky(s)}),(0,q.jsx)(`span`,{className:Oy.title,"data-component":`EmptyState.Title`,children:a}),o?(0,q.jsx)(`span`,{className:Oy.description,"data-component":`EmptyState.Description`,children:o}):null,i,l?(0,q.jsx)(`div`,{className:Oy.actions,"data-component":`EmptyState.Actions`,children:l}):null]})}Ay.displayName=`EmptyState`;var jy=K(Ay);const My=1024,Ny=[`bytes`,`KB`,`MB`,`GB`,`TB`],Py=e=>{if(!Number.isFinite(e)||e<=0)return`0 ${Ny[0]}`;let t=e,n=0;for(;t>=My&&n<Ny.length-1;)t/=My,n+=1;return`${n===0?Math.round(t):Math.round(t*10)/10} ${Ny[n]}`},Fy=(e,t)=>{let n=(t??``).split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean);if(n.length===0)return!0;let r=e.name.toLowerCase(),i=e.type.toLowerCase();return n.some(e=>e.startsWith(`.`)?r.endsWith(e):e.endsWith(`/*`)?i.startsWith(e.slice(0,-1)):i===e)},Iy=(e,t)=>{let{accept:n,maxSize:r,multiple:i}=t,a=[],o=[];return e.forEach(e=>{if(!Fy(e,n)){o.push({file:e,reason:`type`});return}if(r!==void 0&&e.size>r){o.push({file:e,reason:`size`});return}if(!i&&a.length>0){o.push({file:e,reason:`count`});return}a.push(e)}),{accepted:a,rejected:o}},Ly=n({}),Ry={root:`file-upload-description`};function zy(t,n){let{className:r,id:i,...a}=t,{descriptionId:o}=e.useContext(Ly);return(0,q.jsx)(`span`,{ref:n,id:i??o,className:G(Ry.root,r),"data-component":`FileUpload.Description`,...a})}zy.displayName=`FileUpload.Description`;var By=K(zy);const Vy={root:`file-upload-icon`};function Hy(e,t){let{icon:n=Pn,className:r,"aria-label":i,...a}=e;return(0,q.jsx)(`span`,{ref:t,role:i?`img`:void 0,"aria-label":i,"aria-hidden":!i||void 0,className:G(Vy.root,r),"data-component":`FileUpload.Icon`,...a,children:(0,q.jsx)(n,{})})}Hy.displayName=`FileUpload.Icon`;var Uy=K(Hy);const Wy={root:`file-upload-label`};function Gy(t,n){let{className:r,id:i,...a}=t,{labelId:o}=e.useContext(Ly);return(0,q.jsx)(`span`,{ref:n,id:i??o,className:G(Wy.root,r),"data-component":`FileUpload.Label`,...a})}Gy.displayName=`FileUpload.Label`;var Ky=K(Gy);const qy={root:`file-upload-list`};function Jy(t,n){let{className:r,children:i,...a}=t;return e.Children.toArray(i).length===0?null:(0,q.jsx)(`ul`,{ref:n,role:`list`,className:G(qy.root,r),"data-component":`FileUpload.List`,...a,children:i})}Jy.displayName=`FileUpload.List`;var Yy=K(Jy);const Xy={input:`sr-only`},Zy=W(`file-upload`,{variants:{size:{small:`file-upload-small`,medium:`file-upload-medium`,large:`file-upload-large`}}}),Qy=W(`file-upload-zone`,{variants:{dragging:{true:`file-upload-zone-dragging`,false:``},disabled:{true:`file-upload-zone-disabled`,false:`file-upload-zone-interactive`},validation:{error:`file-upload-zone-error`,success:`file-upload-zone-success`}}}),$y=(e,t)=>{if(!e||typeof DataTransfer>`u`)return;let n=new DataTransfer;t.forEach(e=>n.items.add(e)),e.files=n.files};function eb(t,n){let{className:r,children:i,size:a=`medium`,accept:o,multiple:s,disabled:c,required:l,name:u,maxSize:d,validationStatus:f,onSelect:p,onReject:m,id:h,"aria-label":g,"aria-labelledby":_,"aria-describedby":v,...y}=t,b=e.useRef(null),x=Y(h),S=Y(),C=Y(),w=e.useRef(0),[T,E]=e.useState(!1),[D,O]=si(i,{icon:Uy,label:Ky,description:By,list:Yy}),k=(e,t)=>{let{accepted:n,rejected:r}=Iy(e,{accept:o,maxSize:d,multiple:s});t===`drop`&&n.length>0&&$y(b.current,n),r.length>0&&m?.(r,t),n.length>0&&p?.(n,t)},A=e=>{k(Array.from(e.target.files??[]),`input`)},j=e=>{c||(e.preventDefault(),w.current+=1,E(!0))},M=e=>{c||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`))},N=()=>{c||(w.current=Math.max(w.current-1,0),w.current===0&&E(!1))},P=e=>{c||(e.preventDefault(),w.current=0,E(!1),k(Array.from(e.dataTransfer?.files??[]),`drop`))},F=_??(D.label&&!g?S:void 0),I=[D.description?C:void 0,v].filter(Boolean).join(` `)||void 0;return(0,q.jsx)(Ly.Provider,{value:{labelId:S,descriptionId:C},children:(0,q.jsxs)(`div`,{ref:n,className:G(Zy({size:a}),r),"data-component":`FileUpload`,"data-size":a,"data-disabled":c,"data-dragging":T||void 0,"data-validation":f,...y,children:[(0,q.jsxs)(`label`,{className:G(Qy({dragging:T,disabled:!!c,validation:f})),onDragEnter:j,onDragOver:M,onDragLeave:N,onDrop:P,"data-component":`FileUpload.Zone`,children:[(0,q.jsx)(`input`,{ref:b,id:x,type:`file`,name:u,accept:o,multiple:s,disabled:c,required:l,onChange:A,className:Xy.input,"aria-label":g,"aria-labelledby":F,"aria-describedby":I,"aria-invalid":f===`error`||void 0,"data-component":`FileUpload.Input`}),D.icon,D.label,D.description]}),D.list,O]})})}eb.displayName=`FileUpload`;var tb=K(eb);const nb=W(`progress-bar-item`,{variants:{variant:{accent:`progress-bar-item-accent`,attention:`progress-bar-item-attention`,danger:`progress-bar-item-danger`,done:`progress-bar-item-done`,neutral:`progress-bar-item-neutral`,severe:`progress-bar-item-severe`,sponsors:`progress-bar-item-sponsors`,success:`progress-bar-item-success`},animated:{true:`motion-safe:shimmer`,false:``}}});function rb(e,t){let{as:n=`span`,className:r,progress:i=0,variant:a=`success`,animated:o,style:s,"aria-valuenow":c,...l}=e;return(0,q.jsx)(n,{ref:t,role:`progressbar`,"aria-valuenow":c??Math.round(Math.max(i,0)),"aria-valuemin":0,"aria-valuemax":100,className:G(nb({variant:a,animated:o}),r),style:{...s,"--progress-bar-item-width":`${i}%`},"data-component":`ProgressBar.Item`,"data-variant":a,"data-animated":o,...l})}rb.displayName=`ProgressBar.Item`;var ib=K(rb);const ab=W(`progress-bar`,{variants:{size:{small:`progress-bar-small`,medium:`progress-bar-medium`,large:`progress-bar-large`},inline:{true:`progress-bar-inline`,false:``}}});function ob(t,n){let{as:r=`span`,className:i,progress:a,size:o=`medium`,variant:s=`success`,inline:c,animated:l,children:u,"aria-label":d,"aria-valuenow":f,"aria-valuetext":p,...m}=t;if(u&&a)throw Error("Pass either `progress` or children to ProgressBar, not both.");let h=e.Children.toArray(u).length>0;return(0,q.jsx)(r,{ref:n,className:G(ab({size:o,inline:c}),i),"data-component":`ProgressBar`,"data-size":o,"data-inline":c,...m,children:h?u:(0,q.jsx)(ib,{progress:a,variant:s,animated:l,"aria-label":d,"aria-valuenow":f,"aria-valuetext":p})})}ob.displayName=`ProgressBar`;var sb=K(ob);const cb=Object.assign(sb,{Item:ib}),lb={root:`file-upload-item`,icon:`file-upload-item-icon`,body:`file-upload-item-body`,heading:`file-upload-item-heading`,name:`file-upload-item-name`,fileSize:`file-upload-item-file-size`,description:`file-upload-item-description`,descriptionError:`file-upload-item-description-error`,status:`file-upload-item-status`,statusSuccess:`file-upload-item-status-success`,statusError:`file-upload-item-status-error`},ub={success:{icon:Ln,className:lb.statusSuccess},error:{icon:Qn,className:lb.statusError}};function db(e,t){let{className:n,name:r,fileSize:i,status:a=`pending`,progress:o,description:s,icon:c=Zn,onRemove:l,removeLabel:u,children:d,...f}=e,p=a===`success`||a===`error`?ub[a]:void 0,m=p?.icon;return(0,q.jsxs)(`li`,{ref:t,className:G(lb.root,n),"data-component":`FileUpload.Item`,"data-status":a,...f,children:[(0,q.jsx)(`span`,{className:lb.icon,"aria-hidden":`true`,"data-component":`FileUpload.Item.Icon`,children:(0,q.jsx)(c,{})}),(0,q.jsxs)(`span`,{className:lb.body,children:[(0,q.jsxs)(`span`,{className:lb.heading,children:[(0,q.jsx)(`span`,{className:lb.name,"data-component":`FileUpload.Item.Name`,children:r}),i===void 0?null:(0,q.jsx)(`span`,{className:lb.fileSize,"data-component":`FileUpload.Item.Size`,children:Py(i)})]}),a===`uploading`?(0,q.jsx)(cb,{progress:o,variant:`accent`,size:`small`,animated:!0,"aria-label":`Uploading ${r}`}):null,s?(0,q.jsx)(`span`,{className:G(lb.description,a===`error`&&lb.descriptionError),"data-component":`FileUpload.Item.Description`,children:s}):null,d]}),m?(0,q.jsx)(`span`,{className:G(lb.status,p?.className),"aria-hidden":`true`,"data-component":`FileUpload.Item.Status`,children:(0,q.jsx)(m,{})}):null,l?(0,q.jsx)(na,{icon:Xn,variant:`invisible`,size:`small`,"aria-label":u??`Remove ${r}`,onClick:l,"data-component":`FileUpload.Item.RemoveButton`}):null]})}db.displayName=`FileUpload.Item`;var fb=K(db);const pb=Object.assign(tb,{Icon:Uy,Label:Ky,Description:By,List:Yy,Item:fb});function mb(e,t,n){let r=Array(e);return new Proxy(r,{get(r,i,a){if(typeof i==`string`){let a=i.charCodeAt(0);if(a>=48&&a<=57){let a=+i;if(Number.isInteger(a)&&a>=0&&a<e){let e=r[a];if(!e){let i=t[a*2];e=r[a]={index:a,key:n(a),start:i,size:t[a*2+1],end:i+t[a*2+1],lane:0}}return e}}if(i===`length`)return e}return Reflect.get(r,i,a)}})}function hb(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o=e();return o.length!==r.length||o.some((e,t)=>r[t]!==e)?(r=o,i=t(...o),n?.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1,i):i}return o.updateDeps=e=>{r=e},o}function gb(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}const _b=(e,t)=>Math.abs(e-t)<1.01,vb=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}};let yb;const bb=()=>{if(yb!==void 0)return yb;if(typeof navigator>`u`)return yb=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return yb=!0;let e=navigator.maxTouchPoints;return yb=navigator.platform===`MacIntel`&&e!==void 0&&e>0},xb=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Sb=e=>e,Cb=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},wb=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(xb(n)),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(e?.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(xb(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n)}},Tb={passive:!0},Eb=typeof window>`u`||`onscrollend`in window,Db=(e,t,n)=>{let r=e.scrollElement;if(!r)return;let i=e.targetWindow;if(!i)return;let a=e.options.useScrollendEvent&&Eb,o=0,s=a?null:vb(i,()=>t(o,!1),e.options.isScrollingResetDelay),c=e=>()=>{o=n(r),s?.(),t(o,e)},l=c(!0),u=c(!1);return r.addEventListener(`scroll`,l,Tb),a&&r.addEventListener(`scrollend`,u,Tb),()=>{r.removeEventListener(`scroll`,l),a&&r.removeEventListener(`scrollend`,u)}},Ob=(e,t)=>Db(e,t,t=>{let{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r&&-1||1):t.scrollTop}),kb=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}if(!t){let t=n.indexFromElement(e),r=n.options.getItemKey(t),i=n.itemSizeCache.get(r);if(i!==void 0)return i}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},Ab=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:e+t,behavior:n})};var jb=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e;return((e=this.targetWindow?.performance)?.now)?.call(e)??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,n=this.indexFromElement(t);if(!t.isConnected){this.observer.unobserve(t);for(let[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}return}this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{let t={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Sb,rangeExtractor:Cb,onChange:()=>{},measureElement:kb,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,anchorTo:`start`,followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:`estimate`,useCachedMeasurements:!1};for(let n in e){let r=e[n];r!==void 0&&(t[n]=r)}let n=this.options,r=null,i=null,a=!1;if(n!==void 0&&n.enabled&&t.enabled&&t.anchorTo===`end`&&this.scrollElement!==null){let e=n.count,o=t.count,s=this.getMeasurements(),c=e>0?s[0]?.key??n.getItemKey(0):null,l=e>0?s[e-1]?.key??n.getItemKey(e-1):null;if(o!==e||e>0&&o>0&&(t.getItemKey(0)!==c||t.getItemKey(o-1)!==l)){a=!0;let c=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??s[0]:null;c&&(r=[c.key,this.getScrollOffset()-c.start]);let u=t.followOnAppend===!0?`auto`:t.followOnAppend||null;u&&o>e&&this.isAtEnd(n.scrollEndThreshold)&&(e===0||t.getItemKey(o-1)!==l)&&(i=u)}}this.options=t,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let o=!1,s=0;if(r&&this.scrollOffset!==null){let[e,t]=r,n=this.getMeasurements(),{count:i,getItemKey:a}=this.options,c=0;for(;c<i&&a(c)!==e;)c++;if(c<i){let e=n[c];if(e){let n=Math.max(0,e.start+t);n!==this.scrollOffset&&(s=n-this.scrollOffset,this.scrollOffset=n,o=!0)}}}(o||i)&&(this.pendingScrollAnchor=[o?r[0]:null,o?r[1]:0,i,s])},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=hb(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}if(this.scrollElement=e,this.targetWindow=this.scrollElement&&`ownerDocument`in this.scrollElement?this.scrollElement.ownerDocument.defaultView:this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&this._intendedScrollOffset===null&&e===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;let n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n<e?`forward`:`backward`:null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),`addEventListener`in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,!(!bb()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener(`touchstart`,t,Tb),e.addEventListener(`touchend`,n,Tb),this.unsubs.push(()=>{e.removeEventListener(`touchstart`,t),e.removeEventListener(`touchend`,n),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let t=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,t&&this.scrollElement&&this.options.enabled){let[e,n,r,i]=t;e!==null&&!r&&(bb()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?i!==0&&(this._iosDeferredAdjustment+=i):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),r&&this.scrollToEnd({behavior:r})}},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1){this._iosDeferredAdjustment=0;return}let n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,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.getMeasurementOptions=hb(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,i,a,o,s)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s}),{key:!1}),this.getMeasurements=hb(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s},c)=>{let l=this.itemSizeCache;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let u=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),a===1){let i=e*2,a=this._flatMeasurements;if(!a||a.length<i){let e=new Float64Array(i);a&&u>0&&e.set(a.subarray(0,u*2)),a=e,this._flatMeasurements=a}let o;if(u===0)o=t+n;else{let e=u-1;o=a[e*2]+a[e*2+1]+s}for(let t=u;t<e;t++){let e=r(t),n=l.get(e),i=typeof n==`number`?n:this.options.estimateSize(t);a[t*2]=o,a[t*2+1]=i,o+=i+s}let c=mb(e,a,r);return this.measurementsCache=c,c}let d=this.measurementsCache.slice(0,u),f=Array(a).fill(void 0),p=new Float64Array(a),m=0;for(let e=0;e<u;e++){let t=d[e];t&&(f[t.lane]===void 0&&m++,f[t.lane]=e,p[t.lane]=t.end)}for(let i=u;i<e;i++){let e=r(i),c=this.laneAssignments.get(i),u,h,g=o===`estimate`||l.has(e);if(c!==void 0&&this.options.lanes>1){u=c;let e=f[u],r=e===void 0?void 0:d[e];h=r?r.end+s:t+n}else if(m===a){let e=0,t=p[0],n=f[0];for(let r=1;r<a;r++){let i=p[r];(i<t||i===t&&f[r]<n)&&(e=r,t=i,n=f[r])}u=e,h=t+s,g&&this.laneAssignments.set(i,u)}else u=i%this.options.lanes,h=t+n,g&&this.laneAssignments.set(i,u);let _=l.get(e),v=typeof _==`number`?_:this.options.estimateSize(i),y=h+v;d[i]={index:i,start:h,size:v,end:y,key:e,lane:u},f[u]===void 0&&m++,f[u]=i,p[u]=y}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=hb(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>e.length===0||t===0?(this.range=null,null):(this.range=Pb(e,t,n,r,r===1&&this._flatMeasurements!=null?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=hb(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{if(!this.scrollState||this.scrollState.behavior!==`smooth`)return!0;let t=this.scrollState.index??this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;if(t!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,t-n),i=Math.min(this.options.count-1,t+n);return e>=r&&e<=i}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}let t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{if(e<0||e>=this.options.count)return;let n,r,i,a=this._flatMeasurements;if(this.options.lanes===1&&a!==null)i=this.options.getItemKey(e),r=a[e*2],n=a[e*2+1];else{let t=this.measurementsCache[e];if(!t)return;i=t.key,r=t.start,n=t.size}let o=this.itemSizeCache.get(i)??n,s=t-o;if(s!==0){let a=this.options.anchorTo===`end`&&this.scrollState?.behavior!==`smooth`&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,c=a?this.getTotalSize():0,l=this.getScrollOffset()+this.scrollAdjustments,u=this.itemSizeCache.has(i)?r+o<=l&&this.scrollDirection!==`backward`:r<l,d=this.scrollState?.behavior!==`smooth`&&(this.shouldAdjustScrollPositionOnItemSizeChange===void 0?u:this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:i,start:r,size:n,end:r+n,lane:0},s,this));(this.pendingMin===null||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(i,t),this.itemSizeCacheVersion++;let f=!1;a?f=this.applyScrollAdjustment(this.getTotalSize()-c):d&&(f=this.applyScrollAdjustment(s)),this.notify(f)}},this.getVirtualItems=hb(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length===0)return;let n=this._flatMeasurements,r=this.options.lanes===1&&n!=null;return gb(t[Mb(0,t.length-1,r?e=>n[e*2]:e=>gb(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if(`scrollHeight`in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if(t===`auto`){if(i.end>=r+n-this.options.scrollPaddingEnd)t=`end`;else if(i.start<=r+this.options.scrollPaddingStart)t=`start`;else return[r,t]}if(t===`end`&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let a=t===`end`?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,i.size),t]},this.scrollToOffset=(e,{align:t=`start`,behavior:n=`auto`}={})=>{this._iosDeferredAdjustment=0;let r=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:i,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t=`auto`,behavior:n=`auto`}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,a]=r,o=this.now();this.scrollState={index:e,align:a,behavior:n,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t=`auto`}={})=>{let n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:`start`,behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e=`auto`}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:`end`,behavior:e});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1){let n=e.length-1,r=this._flatMeasurements;t=r==null?e[n]?.end??0:r[n*2]+r[n*2+1]}else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(this.itemSizeCache.size===0)return e;let t=this.getMeasurements();for(let n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){return e===0?!1:bb()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?(this._iosDeferredAdjustment+=e,!1):(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId??=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=this.scrollState.index==null?void 0:this.getOffsetForIndex(this.scrollState.index,this.scrollState.align),t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&_b(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:`auto`}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r=this.scrollState.behavior===`smooth`&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior=`auto`),this._scrollToOffset(t,{adjustments:void 0,behavior:r?`smooth`:`auto`})}this.scheduleScrollReconcile()}};const Mb=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function Nb(e,t,n){let r=0;for(;r<=t;){let i=(r+t)/2|0,a=e[i*2];if(a<n)r=i+1;else if(a>n)t=i-1;else return i}return r>0?r-1:0}function Pb(e,t,n,r,i){let a=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:a};if(r===1&&i!==null){let e=Nb(i,a,n),r=e,o=n+t;for(;r<a&&i[r*2]+i[r*2+1]<o;)r++;return{startIndex:e,endIndex:r}}let o=Mb(0,a,t=>e[t].start,n),s=o;if(r===1)for(;s<a&&e[s].end<n+t;)s++;else if(r>1){let i=Array(r).fill(0);for(;s<a&&i.some(e=>e<n+t);){let t=e[s];i[t.lane]=t.end,s++}let c=Array(r).fill(n+t);for(;o>=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(a,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}const Fb=typeof document<`u`?e.useLayoutEffect:e.useEffect;function Ib({useFlushSync:t=!0,directDomUpdates:n=!1,directDomUpdatesMode:r=`transform`,...i}){let a=e.useReducer(e=>e+1,0)[1],o=e.useRef({enabled:n,mode:r,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});o.current.enabled=n,o.current.mode=r;let s=e=>{let t=o.current;if(!t.enabled||!t.container)return;let n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;let r=e.options.horizontal?`width`:`height`;t.container.style[r]=`${n}px`}},c=e=>{let t=o.current;if(!t.enabled||!t.container)return;s(e);let n=!!e.options.horizontal,r=t.mode===`transform`,i=n?`left`:`top`,a=e.options.scrollMargin,c=e.getVirtualItems();for(let o of c){let s=o.start-a,c=e.elementsCache.get(o.key);c&&t.lastPositions.get(c)!==s&&(t.lastPositions.set(c,s),r?c.style.transform=n?`translate3d(${s}px, 0, 0)`:`translate3d(0, ${s}px, 0)`:c.style[i]=`${s}px`)}},l={...i,onChange:(e,n)=>{var r;let s=o.current,l=!0;if(s.enabled){c(e);let t=e.range,n=s.prevRange;l=!n||n.isScrolling!==e.isScrolling||n.startIndex!==t?.startIndex||n.endIndex!==t?.endIndex,l&&(s.prevRange=t?{startIndex:t.startIndex,endIndex:t.endIndex,isScrolling:e.isScrolling}:null)}l&&(t&&n?h(a):a()),(r=i.onChange)==null||r.call(i,e,n)}},[u]=e.useState(()=>{let e=new jb(l);return Object.assign(e,{containerRef:t=>{let n=o.current;if(n.container=t,n.lastSize=null,t&&n.enabled){let r=e.getTotalSize();n.lastSize=r;let i=e.options.horizontal?`width`:`height`;t.style[i]=`${r}px`}}})});return u.setOptions(l),Fb(()=>u._didMount(),[]),Fb(()=>(s(u),u._willUpdate())),Fb(()=>{c(u)}),u}function Lb(e){return Ib({observeElementRect:wb,observeElementOffset:Ob,scrollToFn:Ab,...e})}const Rb={root:`filtered-action-list-input`};function zb(e){let{inputRef:t,value:n,onInputChange:r,onInputKeyDown:i,placeholderText:a,listId:o,inputDescriptionId:s,loading:c=!1,...l}=e;return(0,q.jsx)(`div`,{className:Rb.root,"data-component":`FilteredActionList.Header`,children:(0,q.jsx)(Ps,{ref:t,block:!0,value:n,onChange:r,onKeyDown:i,placeholder:a,role:`combobox`,"aria-expanded":`true`,"aria-autocomplete":`list`,"aria-controls":o,"aria-label":a,"aria-describedby":s,loading:c,loaderPosition:`leading`,...l})})}zb.displayName=`FilteredActionList.Input`;const Bb=e=>typeof e==`string`||!g(e)?e:(0,q.jsx)(e,{});function Vb(e,t){if(typeof e.renderItem==`function`)return e.renderItem(e);let{id:n,text:r,description:i,descriptionVariant:a,leadingVisual:o,trailingVisual:s,onAction:c,children:l,groupId:u,renderItem:d,...f}=e;return(0,q.jsxs)(_a.Item,{ref:t,role:`option`,onSelect:t=>c?.(e,t),"data-id":n,...f,children:[o?(0,q.jsx)(_a.LeadingVisual,{children:(0,q.jsx)(o,{})}):null,l,r,i?(0,q.jsx)(_a.Description,{variant:a,children:i}):null,s?(0,q.jsx)(_a.TrailingVisual,{children:Bb(s)}):null]})}Vb.displayName=`FilteredActionList.Item`;var Hb=K(Vb);const Ub=W(`stack`,{variants:{gap:{none:`stack-gap-none`,tight:`stack-gap-tight`,condensed:`stack-gap-condensed`,cozy:`stack-gap-cozy`,normal:`stack-gap-normal`,spacious:`stack-gap-spacious`},direction:{horizontal:`stack-horizontal`,vertical:`stack-vertical`},align:{stretch:`stack-align-stretch`,start:`stack-align-start`,center:`stack-align-center`,end:`stack-align-end`,baseline:`stack-align-baseline`},wrap:{wrap:`stack-wrap`,nowrap:`stack-nowrap`},justify:{start:`stack-justify-start`,center:`stack-justify-center`,end:`stack-justify-end`,"space-between":`stack-justify-space-between`,"space-evenly":`stack-justify-space-evenly`},padding:{none:`stack-padding-none`,tight:`stack-padding-tight`,condensed:`stack-padding-condensed`,cozy:`stack-padding-cozy`,normal:`stack-padding-normal`,spacious:`stack-padding-spacious`},paddingBlock:{none:`stack-padding-block-none`,tight:`stack-padding-block-tight`,condensed:`stack-padding-block-condensed`,cozy:`stack-padding-block-cozy`,normal:`stack-padding-block-normal`,spacious:`stack-padding-block-spacious`},paddingInline:{none:`stack-padding-inline-none`,tight:`stack-padding-inline-tight`,condensed:`stack-padding-inline-condensed`,cozy:`stack-padding-inline-cozy`,normal:`stack-padding-inline-normal`,spacious:`stack-padding-inline-spacious`}}});function Wb(e,t){let{as:n=`div`,className:r,gap:i,direction:a=`vertical`,align:o=`stretch`,wrap:s=`nowrap`,justify:c=`start`,padding:l=`none`,paddingBlock:u,paddingInline:d,...f}=e;return(0,q.jsx)(n,{ref:t,className:G(Ub({gap:i,direction:a,align:o,wrap:s,justify:c,padding:l,paddingBlock:u,paddingInline:d}),r),"data-component":`Stack`,"data-gap":i,"data-direction":a,"data-align":o,"data-wrap":s,"data-justify":c,"data-padding":l,"data-padding-block":u,"data-padding-inline":d,...f})}Wb.displayName=`Stack`;var Gb=K(Wb);const Kb=W(`stack-item`,{variants:{grow:{true:`stack-item-grow`,false:`stack-item-no-grow`},shrink:{true:`stack-item-shrink`,false:`stack-item-no-shrink`}}});function qb(e,t){let{as:n=`div`,className:r,grow:i,shrink:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Kb({grow:i,shrink:a}),r),"data-component":`StackItem`,"data-grow":i,"data-shrink":a,...o})}qb.displayName=`StackItem`;var Jb=K(qb);const Yb=Object.assign(Gb,{Item:Jb}),Xb={spinner:`filtered-action-list-spinner`,skeleton:`filtered-action-list-skeleton`},Zb=[`80%`,`52.5%`,`67.5%`,`40%`,`72.5%`];function Qb(e){let{loadingType:t,height:n=0,className:r,...i}=e;if(t===`input`)return null;if(t===`body-skeleton`){let e=Math.max(Math.floor(n/24),3);return(0,q.jsx)(Yb,{gap:`condensed`,justify:`center`,className:G(Xb.skeleton,r),"data-component":`FilteredActionList.Skeleton`,...i,children:Array.from({length:e},(e,t)=>(0,q.jsxs)(Yb,{direction:`horizontal`,gap:`condensed`,align:`center`,children:[(0,q.jsx)(cv,{width:`16px`,height:`16px`}),(0,q.jsx)(cv,{width:Zb[t%Zb.length],height:`10px`})]},t))})}return(0,q.jsx)(`div`,{className:G(Xb.spinner,r),"data-component":`FilteredActionList.Spinner`,...i,children:(0,q.jsx)(zi,{})})}Qb.displayName=`FilteredActionList.BodyLoader`;const $b=({items:t,enabled:n=!0,loading:r=!1,messageText:i})=>{let[a,o]=e.useState(``),s=t.length,c=t.filter(e=>e.selected).length,l=s===0&&!r,u=i?`${i.title}. ${i.description}`:``,d=l?u:`${s} item${s===1?``:`s`} available, ${c} selected.`,f=e.useRef(d);return e.useEffect(()=>{if(!n||d===f.current)return;f.current=d;let e=window.setTimeout(()=>o(d),500);return()=>{window.clearTimeout(e)}},[n,d]),n?a:``},ex={root:`filtered-action-list`,container:`filtered-action-list-container`,list:`filtered-action-list-list`,message:`filtered-action-list-message`,virtualList:`filtered-action-list-virtual-list`,virtualItem:`filtered-action-list-virtual-item`,selectAll:`filtered-action-list-select-all`,selectAllLabel:`filtered-action-list-select-all-label`,hidden:`sr-only`},tx=(e,t)=>e.key??e.id?.toString()??t.toString();function nx(t){let{items:n,groupMetadata:i,filterValue:a,onFilterChange:o,placeholderText:s,loading:c=!1,loadingType:l=`body-spinner`,message:u,messageText:d,selectionVariant:f,showItemDividers:p,onSelectAllChange:m,renderItem:h,announcementsEnabled:g=!0,virtualized:_=!1,textInputProps:v,actionListProps:y,inputRef:b,scrollContainerRef:x,onListContainerRefChanged:S,onInputRefChanged:C,className:w}=t,T=a!==void 0,[E,D]=e.useState(``),O=T?a:E,k=e.useRef(null),A=Gr(b,k),j=e.useRef(null),M=Gr(x,j),N=e.useRef(null),P=e.useCallback(e=>{N.current=e,S?.(e)},[S]);e.useEffect(()=>{C?.(k)},[C]);let F=c&&l!==`input`,[I,L]=e.useState(0);Ur(()=>{let e=j.current;if(!e||!F)return;let t=()=>L(e.clientHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[F]);let ee=Y(y?.id),R=Y(),te=Y(),z=_&&!i?.length,ne=Lb({count:n.length,getScrollElement:()=>j.current,estimateSize:()=>32,overscan:10,enabled:z,getItemKey:e=>{let t=n[e];return t?tx(t,e):e.toString()},measureElement:e=>e.scrollHeight}),B=z?ne.getVirtualItems():void 0,[re,V]=e.useState(null);e.useEffect(()=>{if(re===null)return;let e=N.current?.querySelector(`[data-index="${re}"]`);e&&(e.focus(),V(null))},[re,B]);let ie=e.useCallback(e=>{if(!(e<0||e>=n.length)){if(z){ne.scrollToIndex(e,{align:`auto`}),V(e);return}(N.current?.querySelectorAll(`[role="option"]`))?.[e]?.focus()}},[z,n.length,ne]),ae=e.useCallback(e=>n.filter(t=>t.groupId===e),[n]),oe=i?.length?i.map(e=>ae(e.groupId)[0]).find(Boolean):n[0],se=e=>{let{value:t}=e.target;T||D(t),o(t,e)},ce=e=>{if(e.key===`ArrowDown`){e.preventDefault(),ie(0);return}e.key===`Enter`&&oe?.onAction&&(e.preventDefault(),oe.onAction(oe,e))},le=e=>{if(!z||e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;let t=e.target.closest(`[data-index]`),r=t?Number(t.dataset.index):-1,i=e.key===`ArrowDown`?r+1:e.key===`ArrowUp`?r-1:e.key===`Home`?0:e.key===`End`?n.length-1:null;i!==null&&(e.preventDefault(),ie(i))},ue=n.length>0&&n.every(e=>e.selected),de=!ue&&n.some(e=>e.selected),fe=$b({items:n,enabled:g,loading:c,messageText:d}),pe=e.useMemo(()=>({container:`FilteredActionList`,listRole:`listbox`,selectionAttribute:`aria-selected`,enableFocusZone:!z}),[z]),me=()=>i?.length?i.map(e=>(0,q.jsxs)(_a.Group,{children:[(0,q.jsx)(_a.GroupHeading,{variant:e.header?.variant,children:e.header?.title??`Group ${e.groupId}`}),ae(e.groupId).map((e,t)=>r(Hb,{...e,key:tx(e,t),renderItem:e.renderItem??h}))]},e.groupId)):B?B.map(e=>{let t=n[e.index];return r(Hb,{...t,key:e.key,ref:ne.measureElement,renderItem:t.renderItem??h,"data-index":e.index,className:G(ex.virtualItem,t.className),style:{...t.style,transform:`translateY(${e.start}px)`}})}):n.map((e,t)=>r(Hb,{...e,key:tx(e,t),renderItem:e.renderItem??h})),he=()=>F?(0,q.jsx)(Qb,{loadingType:l,height:I}):u?(0,q.jsx)(`div`,{className:ex.message,"data-component":`FilteredActionList.Message`,children:u}):(0,q.jsx)(gi.Provider,{value:pe,children:(0,q.jsx)(_a,{ref:P,id:ee,selectionVariant:f,showDividers:p,...y,className:G(ex.list,z&&ex.virtualList,y?.className),style:z?{...y?.style,height:ne.getTotalSize()}:y?.style,children:me()})});return(0,q.jsxs)(`div`,{className:G(ex.root,w),"data-component":`FilteredActionList`,"data-virtualized":z?``:void 0,children:[(0,q.jsx)(zb,{inputRef:A,value:O,onInputChange:se,onInputKeyDown:ce,placeholderText:s,listId:ee,inputDescriptionId:R,loading:c&&l===`input`,...v}),(0,q.jsx)(`span`,{id:R,className:ex.hidden,children:`Items will be filtered as you type`}),m?(0,q.jsxs)(`div`,{className:ex.selectAll,"data-component":`FilteredActionList.SelectAll`,children:[(0,q.jsx)(Gf,{id:te,checked:ue,indeterminate:de,onChange:e=>m(e.target.checked),"data-component":`FilteredActionList.SelectAllCheckbox`}),(0,q.jsx)(`label`,{htmlFor:te,className:ex.selectAllLabel,children:ue?`Deselect all`:`Select all`})]}):null,(0,q.jsx)(`div`,{ref:M,className:ex.container,onKeyDown:le,"data-component":`FilteredActionList.Container`,children:he()}),(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:ex.hidden,"data-component":`FilteredActionList.Announcement`,children:fe})]})}nx.displayName=`FilteredActionList`;const rx=Object.assign(nx,{Input:zb,Item:Hb,BodyLoader:Qb}),ix={width:320,height:240},ax={x:24,y:24},ox={width:200,height:120},sx=8,cx=40,lx=(e,t,n)=>Math.min(Math.max(e,t),n),ux=(e,t)=>t&&t>0?Math.round(e/t)*t:e,dx=(e,t,n)=>({width:lx(e.width,t.width,Math.max(t.width,n?.width??1/0)),height:lx(e.height,t.height,Math.max(t.height,n?.height??1/0))}),fx=(e,t,n,r)=>!n||r?e:{x:lx(e.x,n.x,Math.max(n.x,n.x+n.width-t.width)),y:lx(e.y,n.y,Math.max(n.y,n.y+n.height-t.height))},px=e=>e.includes(`e`)||e.includes(`w`),mx=(e,t,n,r)=>{let{minSize:i,maxSize:a,boundary:o,allowOverflow:s,lockAspectRatio:c,gridSize:l}=r,u=e.width,d=e.height;if(t.includes(`e`)&&(u=e.width+n.x),t.includes(`w`)&&(u=e.width-n.x),t.includes(`s`)&&(d=e.height+n.y),t.includes(`n`)&&(d=e.height-n.y),u=ux(u,l),d=ux(d,l),c&&e.width>0&&e.height>0){let n=e.width/e.height;px(t)?d=u/n:u=d*n}let f=dx({width:u,height:d},i,a),p={x:t.includes(`w`)?e.x+e.width-f.width:e.x,y:t.includes(`n`)?e.y+e.height-f.height:e.y};return{...fx(p,f,o,s),...f}},hx=(e,t,n)=>{let{boundary:r,allowOverflow:i,gridSize:a}=n,o={x:ux(e.x+t.x,a),y:ux(e.y+t.y,a)};return fx(o,e,r,i)},gx=e=>{if(e){let{left:t,top:n,width:r,height:i}=e.getBoundingClientRect();return{x:t,y:n,width:r,height:i}}if(!(typeof window>`u`))return{x:0,y:0,width:window.innerWidth,height:window.innerHeight}},_x=n({open:!1,setOpen:()=>void 0,position:ax,size:ix,stage:`default`,setStage:()=>void 0,dragging:!1,resizing:!1,draggable:!1,resizable:!1,canDrag:!1,canResize:!1,disabled:!1,strategy:`fixed`,triggerId:``,contentId:``,titleId:``,startDrag:()=>void 0,startResize:()=>void 0,moveBy:()=>void 0,resizeBy:()=>void 0}),vx=()=>o(_x);function yx(t){let{open:n,defaultOpen:r,onOpenChange:i,position:a,defaultPosition:o,onPositionChange:s,onPositionChangeEnd:c,size:l,defaultSize:u,onSizeChange:d,onSizeChangeEnd:f,stage:p,defaultStage:m,onStageChange:h,minSize:g=ox,maxSize:_,draggable:v=!0,resizable:y=!0,disabled:b=!1,closeOnEscape:x=!0,lockAspectRatio:S,allowOverflow:C,gridSize:w,strategy:T=`fixed`,getBoundaryElement:E,children:D}=t,O=Y(),k=n!==void 0,[A,j]=e.useState(!!r),M=k?n:A,N=a!==void 0,[P,F]=e.useState(()=>o??ax),I=N?a:P,L=l!==void 0,[ee,R]=e.useState(()=>u??ix),te=L?l:ee,z=p!==void 0,[ne,B]=e.useState(()=>m??`default`),re=z?p:ne,[V,ie]=e.useState(!1),[ae,oe]=e.useState(!1),se=e.useRef(null),ce=e=>{k||j(e),i?.(e)},le=e=>{z||B(e),h?.(e)},ue=e=>{N||F(e),s?.(e)},de=e=>{L||R(e),d?.(e)},fe=()=>({boundary:gx(E?.()),allowOverflow:C,gridSize:w});Oa(e=>{!M||!x||(ce(!1),e.preventDefault())});let pe=!b&&v&&re!==`maximized`,me=!b&&y&&re==="default",he=(e,t)=>{e.preventDefault(),se.current=t,t.kind===`drag`?ie(!0):oe(!0)},ge=e=>{if(!pe)return;let t={...I,...te};he(e,{kind:`drag`,origin:{x:e.clientX,y:e.clientY},rect:t,latest:t})},_e=(e,t)=>{if(!me)return;let n={...I,...te};he(e,{kind:`resize`,axis:t,origin:{x:e.clientX,y:e.clientY},rect:n,latest:n})};e.useEffect(()=>{if(!V&&!ae)return;let e=e=>{let t=se.current;if(!t)return;let n={x:e.clientX-t.origin.x,y:e.clientY-t.origin.y};if(t.kind===`drag`){let e=hx(t.rect,n,fe());t.latest={...t.rect,...e},ue(e);return}let r=mx(t.rect,t.axis,n,{...fe(),minSize:g,maxSize:_,lockAspectRatio:S});t.latest=r,ue({x:r.x,y:r.y}),de({width:r.width,height:r.height})},t=()=>{let e=se.current;se.current=null,ie(!1),oe(!1),e&&(c?.({x:e.latest.x,y:e.latest.y}),e.kind===`resize`&&f?.({width:e.latest.width,height:e.latest.height}))};return window.addEventListener(`pointermove`,e),window.addEventListener(`pointerup`,t),window.addEventListener(`pointercancel`,t),()=>{window.removeEventListener(`pointermove`,e),window.removeEventListener(`pointerup`,t),window.removeEventListener(`pointercancel`,t)}});let ve={open:M,setOpen:ce,position:I,size:te,stage:re,setStage:le,dragging:V,resizing:ae,draggable:v,resizable:y,canDrag:pe,canResize:me,disabled:b,strategy:T,triggerId:`${O}-trigger`,contentId:`${O}-content`,titleId:`${O}-title`,startDrag:ge,startResize:_e,moveBy:e=>{if(!pe)return;let t={...I,...te},n=hx(t,e,fe());ue(n),c?.(n)},resizeBy:(e,t)=>{if(!me)return;let n={...I,...te},r=mx(n,e,t,{...fe(),minSize:g,maxSize:_,lockAspectRatio:S});ue({x:r.x,y:r.y}),de({width:r.width,height:r.height}),c?.({x:r.x,y:r.y}),f?.({width:r.width,height:r.height})}};return(0,q.jsx)(_x.Provider,{value:ve,children:D})}yx.displayName=`FloatingPanel`;const bx={root:`floating-panel-body`};function xx(e,t){let{as:n=`div`,className:r,...i}=e,{stage:a}=vx();return a===`minimized`?null:(0,q.jsx)(n,{ref:t,className:G(bx.root,r),"data-component":`FloatingPanel.Body`,...i})}xx.displayName=`FloatingPanel.Body`;var Sx=K(xx);function Cx(e,t){let{onClick:n,...r}=e,{setOpen:i}=vx();return(0,q.jsx)(na,{ref:t,icon:Xn,"aria-label":`Close panel`,variant:`invisible`,size:`small`,onClick:e=>{n?.(e),!e.defaultPrevented&&i(!1)},"data-component":`FloatingPanel.CloseTrigger`,...r})}Cx.displayName=`FloatingPanel.CloseTrigger`;var wx=K(Cx);const Tx={root:`floating-panel-content`},Ex={ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0},ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1}};function Dx(e,t){let{as:n=`div`,className:r,onKeyDown:i,...a}=e,{stage:o,dragging:s,resizing:c,disabled:l,contentId:u,titleId:d,moveBy:f}=vx();return(0,q.jsx)(n,{ref:t,role:`dialog`,id:u,"aria-labelledby":d,tabIndex:-1,className:G(Tx.root,r),onKeyDown:e=>{i?.(e);let t=Ex[e.key];if(e.defaultPrevented||!t||e.target!==e.currentTarget)return;let n=e.shiftKey?40:8;e.preventDefault(),f({x:t.x*n,y:t.y*n})},"data-component":`FloatingPanel.Content`,"data-stage":o,"data-dragging":s?``:void 0,"data-resizing":c?``:void 0,"data-disabled":l?``:void 0,...a})}Dx.displayName=`FloatingPanel.Content`;var Ox=K(Dx);const kx={root:`floating-panel-control`};function Ax(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(kx.root,r),"data-component":`FloatingPanel.Control`,...i})}Ax.displayName=`FloatingPanel.Control`;var jx=K(Ax);const Mx={root:`floating-panel-drag-trigger`};function Nx(e,t){let{as:n=`div`,className:r,onPointerDown:i,...a}=e,{startDrag:o,dragging:s,canDrag:c}=vx();return(0,q.jsx)(n,{ref:t,className:G(Mx.root,r),onPointerDown:e=>{i?.(e),!e.defaultPrevented&&e.button===0&&(e.target.closest(`button, a, input, select, textarea`)||o(e))},"data-component":`FloatingPanel.DragTrigger`,"data-draggable":c?``:void 0,"data-dragging":s?``:void 0,...a})}Nx.displayName=`FloatingPanel.DragTrigger`;var Px=K(Nx);const Fx={root:`floating-panel-header`};function Ix(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Fx.root,r),"data-component":`FloatingPanel.Header`,...i})}Ix.displayName=`FloatingPanel.Header`;var Lx=K(Ix);const Rx={root:`floating-panel-positioner`};function zx(e,t){let{as:n=`div`,className:r,style:i,...a}=e,{open:o,position:s,size:c,stage:l,strategy:u,dragging:d,resizing:f,contentId:p}=vx();if(!o)return null;let m=(0,q.jsx)(n,{ref:t,className:G(Rx.root,r),style:{...i,"--floating-panel-x":`${s.x}px`,"--floating-panel-y":`${s.y}px`,"--floating-panel-width":`${c.width}px`,"--floating-panel-height":`${c.height}px`},"data-component":`FloatingPanel.Positioner`,"data-strategy":u,"data-stage":l,"data-dragging":d?``:void 0,"data-resizing":f?``:void 0,"data-panel":p,...a});return u===`fixed`?(0,q.jsx)(Ba,{children:m}):m}zx.displayName=`FloatingPanel.Positioner`;var Bx=K(zx);const Vx={root:`floating-panel-resize-trigger`},Hx={n:`top`,e:`right`,s:`bottom`,w:`left`,ne:`top right`,nw:`top left`,se:`bottom right`,sw:`bottom left`},Ux={ArrowLeft:{x:-8,y:0},ArrowRight:{x:8,y:0},ArrowUp:{x:0,y:-8},ArrowDown:{x:0,y:8}};function Wx(e,t){let{axis:n,className:r,onPointerDown:i,onKeyDown:a,...o}=e,{startResize:s,resizeBy:c,resizing:l,canResize:u}=vx();return(0,q.jsx)(`div`,{ref:t,role:`button`,tabIndex:u?0:-1,"aria-label":`Resize panel from the ${Hx[n]}`,"aria-disabled":!u||void 0,className:G(Vx.root,r),onPointerDown:e=>{i?.(e),!(e.defaultPrevented||e.button!==0)&&s(e,n)},onKeyDown:e=>{a?.(e);let t=Ux[e.key];e.defaultPrevented||!t||(e.preventDefault(),c(n,t))},"data-component":`FloatingPanel.ResizeTrigger`,"data-axis":n,"data-resizing":l?``:void 0,...o})}Wx.displayName=`FloatingPanel.ResizeTrigger`;var Gx=K(Wx);const Kx={minimized:{icon:br,label:`Minimize panel`},maximized:{icon:En,label:`Maximize panel`},default:{icon:Dn,label:`Restore panel`}};function qx(e,t){let{stage:n,onClick:r,...i}=e,{stage:a,setStage:o,disabled:s}=vx(),c=a===n,l=c?`default`:n,{icon:u,label:d}=Kx[l];return(0,q.jsx)(na,{ref:t,icon:u,"aria-label":d,variant:`invisible`,size:`small`,disabled:s,onClick:e=>{r?.(e),!e.defaultPrevented&&o(l)},"data-component":`FloatingPanel.StageTrigger`,"data-stage":n,"data-active":c?``:void 0,...i})}qx.displayName=`FloatingPanel.StageTrigger`;var Jx=K(qx);const Yx={root:`floating-panel-title`};function Xx(e,t){let{as:n=`h2`,className:r,...i}=e,{titleId:a}=vx();return(0,q.jsx)(n,{ref:t,id:a,className:G(Yx.root,r),"data-component":`FloatingPanel.Title`,...i})}Xx.displayName=`FloatingPanel.Title`;var Zx=K(Xx);const Qx={root:`floating-panel-trigger`};function $x(e,t){let{className:n,onClick:r,...i}=e,{open:a,setOpen:o,triggerId:s,contentId:c}=vx();return(0,q.jsx)(`button`,{ref:t,type:`button`,id:s,className:G(Qx.root,n),onClick:e=>{r?.(e),!e.defaultPrevented&&o(!a)},"aria-expanded":a,"aria-controls":a?c:void 0,"data-component":`FloatingPanel.Trigger`,"data-open":a?``:void 0,...i})}$x.displayName=`FloatingPanel.Trigger`;var eS=K($x);const tS=Object.assign(yx,{Trigger:eS,Positioner:Bx,Content:Ox,DragTrigger:Px,Header:Lx,Title:Zx,Control:jx,StageTrigger:Jx,CloseTrigger:wx,Body:Sx,ResizeTrigger:Gx}),nS=e=>Math.round(e*100)/100,rS=(e,t,n,r)=>{if(n===`vertical`){let n=nS(e.x+e.width/2),i=nS(e.y+e.height),a=nS(t.x+t.width/2),o=nS(t.y),s=a-n,c=o-i;if(Math.abs(s)<=2||Math.abs(c)<=2)return`M ${n} ${i} L ${a} ${o}`;let l=nS(i+c/2),u=nS(Math.min(r,Math.abs(s)/2,Math.abs(c)/2)),d=s>0?u:-u;return[`M ${n} ${i}`,`V ${nS(l-u)}`,`Q ${n} ${l} ${nS(n+d)} ${l}`,`H ${nS(a-d)}`,`Q ${a} ${l} ${a} ${nS(l+u)}`,`V ${o}`].join(` `)}let i=nS(e.x+e.width),a=nS(e.y+e.height/2),o=nS(t.x),s=nS(t.y+t.height/2),c=o-i,l=s-a;if(Math.abs(l)<=2||Math.abs(c)<=2)return`M ${i} ${a} L ${o} ${s}`;let u=nS(i+c/2),d=nS(Math.min(r,Math.abs(c)/2,Math.abs(l)/2)),f=l>0?d:-d;return[`M ${i} ${a}`,`H ${nS(u-d)}`,`Q ${u} ${a} ${u} ${nS(a+f)}`,`V ${nS(s-f)}`,`Q ${u} ${s} ${nS(u+d)} ${s}`,`H ${o}`].join(` `)},iS={root:`flow-connectors`,path:`flow-connector`,disabled:`flow-connector-disabled`,arrowhead:`flow-arrowhead`},aS={width:0,height:0},oS=({edges:e,positions:t,sizes:n,orientation:r,cornerRadius:i,width:a,height:o,markerId:s,className:c})=>{let l=e.map(e=>{let a=t[e.from],o=t[e.to];return!a||!o?null:{edge:e,d:rS({...a,...n[e.from]??aS},{...o,...n[e.to]??aS},r,i)}}).filter(e=>e!==null),u=[...l.filter(e=>e.edge.disabled),...l.filter(e=>!e.edge.disabled)];return(0,q.jsxs)(`svg`,{className:G(iS.root,c),width:a,height:o,viewBox:`0 0 ${a} ${o}`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,"data-component":`Flow.Connectors`,children:[(0,q.jsx)(`defs`,{children:(0,q.jsx)(`marker`,{id:s,className:iS.arrowhead,markerWidth:`6`,markerHeight:`6`,refX:`5`,refY:`3`,orient:`auto`,markerUnits:`userSpaceOnUse`,children:(0,q.jsx)(`path`,{d:`M 0 0 L 6 3 L 0 6 Z`})})}),u.map(({edge:e,d:t})=>(0,q.jsx)(`path`,{className:G(iS.path,e.disabled&&iS.disabled),d:t,markerEnd:`url(#${s})`,"data-component":`Flow.Connector`,"data-from":e.from,"data-to":e.to,"data-disabled":e.disabled},`${e.from}--${e.to}`))]})};oS.displayName=`Flow.Connectors`;const sS=n({}),cS={root:`flow-group`,list:`flow-group-list`};function lS(e,t){let{className:n,children:r,...i}=e;return(0,q.jsx)(`li`,{ref:t,role:`listitem`,className:G(cS.root,n),"data-component":`Flow.List`,...i,children:(0,q.jsx)(`ol`,{role:`list`,className:cS.list,children:r})})}lS.displayName=`Flow.List`;var uS=K(lS);const dS={root:`flow-node`,disabled:`flow-node-disabled`};function fS(t,n){let{className:r,id:i,disabled:a,style:o,...s}=t,{positions:c,reportSize:l,measured:u}=e.useContext(sS),d=e.useRef(null),f=Gr(n,d),p=i??``;Ur(()=>{let e=d.current;if(!e||!l||p===``)return;let t=()=>{l(p,{width:e.offsetWidth,height:e.offsetHeight})};if(t(),typeof ResizeObserver>`u`)return()=>{l(p,null)};let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect(),l(p,null)}},[p,l]);let m=c?.[p];return(0,q.jsx)(`li`,{ref:f,className:G(dS.root,a&&dS.disabled,r),style:{...o,insetInlineStart:m?`${m.x}px`:void 0,insetBlockStart:m?`${m.y}px`:void 0},"data-component":`Flow.Node`,"data-node-id":p||void 0,"data-disabled":a,"aria-hidden":!u||void 0,...s})}fS.displayName=`Flow.Node`;var pS=K(fS);const mS={root:`flow-group`,list:`flow-group-list`};function hS(e,t){let{className:n,children:r,align:i=`start`,...a}=e;return(0,q.jsx)(`li`,{ref:t,role:`listitem`,className:G(mS.root,n),"data-component":`Flow.Parallel`,"data-align":i,...a,children:(0,q.jsx)(`ol`,{role:`list`,className:mS.list,children:r})})}hS.displayName=`Flow.Parallel`;var gS=K(hS);const _S={width:0,height:0},vS=({sizes:e,orientation:t,columnGap:n,rowGap:r})=>{let i=new Map,a=o=>{let s=i.get(o);if(s)return s;let c;if(o.kind===`node`){let n=e[o.id]??_S;c=t===`horizontal`?{main:n.width,cross:n.height}:{main:n.height,cross:n.width}}else c=o.kind===`list`?o.children.reduce((e,t,r)=>{let i=a(t);return{main:e.main+i.main+(r>0?n:0),cross:Math.max(e.cross,i.cross)}},{main:0,cross:0}):o.children.reduce((e,t,n)=>{let i=a(t);return{main:Math.max(e.main,i.main),cross:e.cross+i.cross+(n>0?r:0)}},{main:0,cross:0});return i.set(o,c),c};return a},yS=(e,t)=>{let{orientation:n,align:r,columnGap:i,rowGap:a}=t,o=vS(t),s={},c=(e,t,l)=>{if(e.kind===`node`){s[e.id]=n===`horizontal`?{x:t,y:l}:{x:l,y:t};return}let u=o(e);if(e.kind===`list`){let n=t;e.children.forEach(e=>{let t=o(e),a=r===`center`?l+(u.cross-t.cross)/2:l;c(e,n,a),n+=t.main+i});return}let d=l;e.children.forEach(n=>{let r=o(n),i=e.align===`end`?t+(u.main-r.main):t;c(n,i,d),d+=r.cross+a})};return c(e,0,0),s},bS=e=>{if(e.kind===`node`)return[e.id];if(e.kind===`parallel`)return e.children.flatMap(bS);for(let t of e.children){let e=bS(t);if(e.length>0)return e}return[]},xS=e=>{if(e.kind===`node`)return[e.id];if(e.kind===`parallel`)return e.children.flatMap(xS);for(let t=e.children.length-1;t>=0;--t){let n=xS(e.children[t]);if(n.length>0)return n}return[]},SS=e=>e.kind===`node`?[e.id]:e.children.flatMap(SS),CS=(e,t=new Set)=>e.kind===`node`?(e.disabled&&t.add(e.id),t):(e.children.forEach(e=>CS(e,t)),t),wS=e=>{let t=CS(e),n=[],r=e=>{if(e.kind!==`node`&&(e.children.forEach(r),e.kind===`list`))for(let r=0;r<e.children.length-1;r+=1){let i=e.children[r],a=e.children[r+1];(i.kind!==`parallel`||a.kind!==`parallel`)&&xS(i).forEach(e=>{bS(a).forEach(r=>{n.push({from:e,to:r,disabled:t.has(e)||t.has(r)||void 0})})})}};return r(e),n},TS=(e,t)=>Object.entries(e).reduce((e,[n,r])=>{let i=t[n]??_S;return{width:Math.max(e.width,r.x+i.width),height:Math.max(e.height,r.y+i.height)}},{width:0,height:0}),ES={root:`flow`,canvas:`flow-canvas`,list:`flow-list`},DS=(t,n)=>{let r=[],i=[];return e.Children.toArray(t).forEach((t,a)=>{if(!e.isValidElement(t)){i.push(t);return}let o=n===``?`${a}`:`${n}-${a}`;if(t.type===pS){let n=t,a=n.props.id??`node-${o}`;r.push({kind:`node`,id:a,disabled:n.props.disabled}),i.push(e.cloneElement(n,{id:a}));return}if(t.type===uS){let n=t,a=DS(n.props.children,o);r.push({kind:`list`,children:a.branches}),i.push(e.cloneElement(n,void 0,a.elements));return}if(t.type===gS){let n=t,a=DS(n.props.children,o);r.push({kind:`parallel`,align:n.props.align,children:a.branches}),i.push(e.cloneElement(n,void 0,a.elements));return}i.push(t)}),{branches:r,elements:i}};function OS(t,n){let{as:r=`div`,className:i,orientation:a=`horizontal`,align:o=`start`,columnGap:s=64,rowGap:c=16,cornerRadius:l=8,children:u,"aria-label":d,"aria-labelledby":f,...p}=t,m=`${Y().replace(/[^a-zA-Z0-9-]/g,``)}-flow-arrowhead`,h=e.useRef(null),g=Gr(n,h),_=gm(h),[v,y]=e.useState({}),b=e.useCallback((e,t)=>{y(n=>{if(t===null){if(!(e in n))return n;let t={...n};return delete t[e],t}let r=n[e];return r&&r.width===t.width&&r.height===t.height?n:{...n,[e]:t}})},[]),{tree:x,elements:S}=e.useMemo(()=>{let e=DS(u,``);return{tree:{kind:`list`,children:e.branches},elements:e.elements}},[u]),C=e.useMemo(()=>SS(x).every(e=>e in v),[x,v]),w=e.useMemo(()=>yS(x,{sizes:v,orientation:a,align:o,columnGap:s,rowGap:c}),[x,v,a,o,s,c]),T=e.useMemo(()=>wS(x),[x]),E=e.useMemo(()=>TS(w,v),[w,v]),D={orientation:a,positions:w,measured:C,reportSize:b},O=_?{role:d||f?`region`:void 0,tabIndex:0}:{};return(0,q.jsx)(sS.Provider,{value:D,children:(0,q.jsx)(r,{ref:g,className:G(ES.root,i),"aria-label":d,"aria-labelledby":f,"data-component":`Flow`,"data-orientation":a,"data-align":o,"data-measured":C,...O,...p,children:(0,q.jsxs)(`div`,{className:ES.canvas,style:{width:`${E.width}px`,height:`${E.height}px`},"data-component":`Flow.Canvas`,children:[(0,q.jsx)(oS,{edges:T,positions:w,sizes:v,orientation:a,cornerRadius:l,width:E.width,height:E.height,markerId:m}),(0,q.jsx)(`ol`,{role:`list`,className:ES.list,"data-component":`Flow.Steps`,children:S})]})})})}OS.displayName=`Flow`;var kS=K(OS);const AS=Object.assign(kS,{Node:pS,List:uS,Parallel:gS}),jS={select:`native-select-control`,indicator:`native-select-indicator`},MS=W(`native-select`,{variants:{size:{small:`native-select-small`,medium:`native-select-medium`,large:`native-select-large`},block:{true:`native-select-block`,false:``},disabled:{true:`native-select-disabled`,false:``},validation:{error:`native-select-error`,success:`native-select-success`}}});function NS(e,t){let{className:n,children:r,placeholder:i,size:a=`medium`,block:o,disabled:s,required:c,validationStatus:l,defaultValue:u,...d}=e,f=`value`in d;return(0,q.jsxs)(`span`,{className:G(MS({size:a,block:o,disabled:s,validation:l}),n),"data-component":`NativeSelect`,"data-size":a,"data-block":o,"data-disabled":s,"data-validation":l,children:[(0,q.jsxs)(`select`,{ref:t,disabled:s,required:c,"aria-invalid":l===`error`||void 0,className:jS.select,defaultValue:f?void 0:u??(i?``:void 0),"data-has-placeholder":!!i||void 0,...d,children:[i?(0,q.jsx)(`option`,{value:``,disabled:c,hidden:c,"data-component":`NativeSelect.Option`,children:i}):null,r]}),(0,q.jsx)(zn,{className:jS.indicator,"aria-hidden":`true`})]})}NS.displayName=`NativeSelect`;var PS=K(NS);const FS=n({}),IS={root:`radio`,checked:`radio-checked`,disabled:`radio-disabled`};function LS(t,n){let{className:r,name:i,required:a,validationStatus:o,value:s,onChange:c,...l}=t,u=e.useContext(FS);return(0,q.jsx)(`input`,{ref:n,type:`radio`,value:s,name:i??u.name,required:a,"aria-required":a?!0:void 0,"aria-invalid":o===`error`||void 0,onChange:e=>{u.onChange?.(e),c?.(e)},className:G(IS.root,IS.checked,IS.disabled,r),"data-component":`Radio`,...l})}LS.displayName=`Radio`;var RS=K(LS);const zS=n({}),BS=n({}),VS={group:`select-optgroup`,label:`select-optgroup-label`};function HS(t,n){let{className:r,children:i,label:a,disabled:o,id:s,...c}=t,l=Y(s),u=`${l}-label`,d=e.useMemo(()=>({disabled:o}),[o]);return(0,q.jsxs)(`div`,{ref:n,id:l,role:`group`,"aria-labelledby":u,className:G(VS.group,r),"data-component":`Select.OptGroup`,"data-disabled":o||void 0,...c,children:[(0,q.jsx)(`div`,{id:u,className:VS.label,children:a}),(0,q.jsx)(BS.Provider,{value:d,children:i})]})}HS.displayName=`Select.OptGroup`;var US=K(HS);const WS={unmarked:`invisible`,checkmark:`select-option-checkmark`,label:`select-option-label`},GS=W(`select-option`,{variants:{size:{small:`select-option-small`,medium:`select-option-medium`,large:`select-option-large`},selected:{true:`select-option-selected`,false:``},active:{true:`select-option-active`,false:``},disabled:{true:`select-option-disabled`,false:``}}});function KS(t,n){let{className:r,children:i,value:a,disabled:o,onClick:s,onMouseMove:c,...l}=t,{size:u=`medium`,value:d,activeValue:f,onSelect:p,setActiveValue:m,getOptionId:h}=e.useContext(zS),g=e.useContext(BS).disabled||o,_=d===a,v=f===a;return(0,q.jsxs)(`div`,{ref:n,id:h?.(a),role:`option`,"aria-selected":_,"aria-disabled":g||void 0,className:G(GS({size:u,selected:_,active:v,disabled:g}),r),onClick:e=>{s?.(e),!(e.defaultPrevented||g)&&p?.(a)},onMouseMove:e=>{c?.(e),!(e.defaultPrevented||g||v)&&m?.(a)},"data-component":`Select.Option`,"data-value":a,"data-selected":_||void 0,"data-active":v||void 0,"data-disabled":g||void 0,...l,children:[(0,q.jsx)(`span`,{className:WS.label,children:i}),(0,q.jsx)(Rn,{className:G(WS.checkmark,!_&&WS.unmarked),"aria-hidden":`true`})]})}KS.displayName=`Select.Option`;var qS=K(KS);const JS={control:`select-control`,value:`select-value`,placeholder:`select-placeholder`,indicator:`select-indicator`},YS=W(`select`,{variants:{size:{small:`select-small`,medium:`select-medium`,large:`select-large`},block:{true:`select-block`,false:``},disabled:{true:`select-disabled`,false:``},validation:{error:`select-error`,success:`select-success`}}}),XS=W([`select-list`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2`],{variants:{size:{small:`select-list-small`,medium:`select-list-medium`,large:`select-list-large`},unplaced:{true:`invisible`,false:``}}}),ZS=[`ArrowDown`,`ArrowUp`,` `,`Enter`],QS=t=>e.isValidElement(t)&&t.type===qS,$S=t=>e.isValidElement(t)&&t.type===US,eC=t=>e.isValidElement(t)&&t.type===e.Fragment,tC=t=>e.Children.toArray(t).map(t=>typeof t==`string`||typeof t==`number`?String(t):e.isValidElement(t)?tC(t.props.children):``).join(``),nC=(t,n=!1)=>e.Children.toArray(t).flatMap(e=>{if(eC(e))return nC(e.props.children,n);if($S(e)){let{children:t,disabled:r}=e.props;return nC(t,n||!!r)}if(QS(e)){let{value:t,children:r,disabled:i}=e.props;return[{value:t,label:r,text:tC(r),disabled:n||!!i}]}return[]}),rC=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign;function iC(t,n){let{className:r,children:i,placeholder:a,size:o=`medium`,block:s,disabled:c,required:l,validationStatus:u,value:d,defaultValue:f,onChange:p,name:m,open:h,defaultOpen:g=!1,onOpenChange:_,side:v=`outside-bottom`,align:y=`start`,id:b,onClick:x,onKeyDown:S,"aria-label":C,"aria-labelledby":w,...T}=t,E=Y(b),D=`${E}-list`,O=e.useRef(null),k=e.useRef(null),A=Gr(n,k),j=e.useRef(null),M=e.useMemo(()=>nC(i),[i]),N=e.useMemo(()=>M.filter(e=>!e.disabled),[M]),P=d!==void 0,[F,I]=e.useState(f),L=P?d:F,ee=M.find(e=>e.value===L),R=e.useCallback(e=>{P||I(e),p?.(e)},[P,p]),te=h!==void 0,[z,ne]=e.useState(g),B=te?h:z,re=e.useCallback(e=>{te||ne(e),_?.(e)},[te,_]),[V,ie]=e.useState(),ae=N.findIndex(e=>e.value===V),oe=e.useCallback(e=>{let t=M.findIndex(t=>t.value===e);return t===-1?void 0:`${D}-option-${t}`},[M,D]),se=e=>ee&&!ee.disabled?ee.value:(e===`first`?N[0]:N.at(-1))?.value,ce=e=>{if(N.length===0)return;let t=Math.min(Math.max(e,0),N.length-1);ie(N[t].value)},le=e.useCallback(()=>{re(!1),k.current?.focus()},[re]),ue=e.useCallback(e=>{R(e),ie(e),le()},[R,le]),de=e.useRef({query:``,at:0}),fe=e=>{let t=Date.now(),n=t-de.current.at<=500,r=(n?de.current.query:``)+e;de.current={query:r,at:t};let i=n?Math.max(ae,0):ae+1,a=r.toLowerCase();return[...N.slice(i),...N.slice(0,i)].find(e=>e.text.toLowerCase().startsWith(a))},pe=e=>{if(x?.(e),!e.defaultPrevented){if(B){re(!1);return}ie(se(`first`)),re(!0)}},me=e=>{if(S?.(e),e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;if(B){if(e.key===`Tab`){re(!1);return}if(e.key===`Enter`||e.key===` `){e.preventDefault(),V!==void 0&&ue(V);return}if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=e.key===`ArrowDown`?1:-1;ce(ae===-1?t===1?0:N.length-1:ae+t);return}if(e.key===`Home`||e.key===`End`){e.preventDefault(),ce(e.key===`Home`?0:N.length-1);return}}else if(ZS.includes(e.key)){e.preventDefault(),ie(se(e.key===`ArrowUp`?`last`:`first`)),re(!0);return}if(e.key.length!==1)return;let t=fe(e.key);if(t){if(e.preventDefault(),B){ie(t.value);return}R(t.value)}};Oa(e=>{B&&(e.preventDefault(),le())}),e.useEffect(()=>{if(!B)return;let e=e=>{let{target:t}=e;t instanceof Node&&(j.current?.contains(t)||O.current?.contains(t)||re(!1))};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[B,re]);let he=e.useRef(null),[ge,_e]=e.useState(null),[ve,ye]=e.useState(0),be=e.useCallback(()=>{let e=O.current,t=j.current;if(!e||!t)return;ye(e.getBoundingClientRect().width);let n=Ga(t,e,{side:v,align:y});he.current&&rC(he.current,n)||(he.current=n,_e(n))},[v,y]);Ur(()=>{if(!B){he.current=null,_e(null);return}be();let e=new ResizeObserver(be);return j.current&&e.observe(j.current),window.addEventListener(`resize`,be),window.addEventListener(`scroll`,be,!0),()=>{e.disconnect(),window.removeEventListener(`resize`,be),window.removeEventListener(`scroll`,be,!0)}},[B,be]),e.useEffect(()=>{if(!B||V===void 0)return;let e=j.current,t=oe(V),n=t?document.getElementById(t):null;if(!e||!n)return;let r=e.getBoundingClientRect(),i=n.getBoundingClientRect();i.top<r.top?e.scrollTop-=r.top-i.top:i.bottom>r.bottom&&(e.scrollTop+=i.bottom-r.bottom)},[B,V,oe]);let xe=e.useMemo(()=>({size:o,value:L,activeValue:V,onSelect:ue,setActiveValue:ie,getOptionId:oe}),[o,L,V,ue,oe]);return(0,q.jsxs)(`span`,{ref:O,className:G(YS({size:o,block:s,disabled:c,validation:u}),r),"data-component":`Select`,"data-size":o,"data-block":s,"data-disabled":c,"data-validation":u,"data-open":B||void 0,children:[(0,q.jsxs)(`button`,{ref:A,id:E,type:`button`,role:`combobox`,disabled:c,"aria-label":C,"aria-labelledby":w,"aria-haspopup":`listbox`,"aria-expanded":B,"aria-controls":B?D:void 0,"aria-activedescendant":B&&V!==void 0?oe(V):void 0,"aria-required":l||void 0,"aria-invalid":u===`error`||void 0,className:JS.control,onClick:pe,onKeyDown:me,"data-has-placeholder":!!a||void 0,...T,children:[(0,q.jsx)(`span`,{className:G(JS.value,!ee&&JS.placeholder),children:ee?ee.label:a}),(0,q.jsx)(zn,{className:JS.indicator,"aria-hidden":`true`})]}),m?(0,q.jsx)(`input`,{type:`hidden`,name:m,value:L??``}):null,B?(0,q.jsx)(Ba,{children:(0,q.jsx)(`div`,{ref:j,id:D,role:`listbox`,"aria-label":C,"aria-labelledby":w,tabIndex:-1,className:G(XS({size:o,unplaced:!ge})),style:{"--select-list-top":`${ge?.top??0}px`,"--select-list-left":`${ge?.left??0}px`,"--select-list-field-width":`${ve}px`},onMouseDown:e=>e.preventDefault(),"data-component":`Select.List`,"data-size":o,"data-side":ge?.anchorSide??v,"data-align":ge?.anchorAlign??y,children:(0,q.jsx)(zS.Provider,{value:xe,children:i})})}):null]})}iC.displayName=`Select`;var aC=K(iC);const oC=7,sC=30,cC=`both`,lC={counter:`textarea-counter`,counterOverLimit:`textarea-counter-over-limit`,counterIcon:`textarea-counter-icon`,hidden:`sr-only`},uC=W(`textarea-field`,{variants:{block:{true:`textarea-field-block`,false:``},contrast:{true:`textarea-field-contrast`,false:``},disabled:{true:`textarea-field-disabled`,false:``},validation:{error:`textarea-field-error`,success:`textarea-field-success`}}}),dC=W(`textarea`,{variants:{resize:{none:`textarea-resize-none`,both:`textarea-resize-both`,horizontal:`textarea-resize-horizontal`,vertical:`textarea-resize-vertical`}}});function fC(t,n){let{className:r,style:i,value:a,defaultValue:o,onChange:s,rows:c=7,cols:l=30,resize:u=cC,block:d,contrast:f,disabled:p,required:m,validationStatus:h,minHeight:g,maxHeight:_,characterLimit:v,"aria-describedby":y,...b}=t,x=Y(),S=a!==void 0,[C,w]=e.useState(()=>o===void 0?0:String(o).length),T=S?String(a).length:C,E=v?ws(T,v):void 0,D=E?.isOverLimit??!1,O=D?`error`:h,k=e.useRef(!1),[A,j]=e.useState(``),M=E?.message;return e.useEffect(()=>{if(!k.current)return;let e=window.setTimeout(()=>{j(M??``)},500);return()=>{window.clearTimeout(e)}},[M]),(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{className:G(uC({block:d,contrast:f,disabled:p,validation:O}),r),"data-component":`Textarea`,"data-block":d,"data-contrast":f,"data-disabled":p,"data-validation":O,children:(0,q.jsx)(`textarea`,{ref:n,value:a,defaultValue:o,rows:c,cols:l,disabled:p,required:m,"aria-required":m?!0:void 0,"aria-invalid":O===`error`||void 0,"aria-describedby":v?[x,y].filter(Boolean).join(` `):y,onChange:e=>{k.current=!0,v&&!S&&w(e.target.value.length),s?.(e)},className:G(dC({resize:u})),style:{minHeight:g,maxHeight:_,...i},"data-resize":u,...b})}),E?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:lC.hidden,children:A}),(0,q.jsxs)(`span`,{id:x,className:lC.hidden,children:[`You can enter up to `,v,` `,v===1?`character`:`characters`]}),(0,q.jsxs)(Ss,{"aria-hidden":`true`,size:`small`,className:G(lC.counter,D&&lC.counterOverLimit),"data-component":`Textarea.CharacterCount`,children:[D?(0,q.jsx)(Qn,{className:lC.counterIcon}):null,E.message]})]}):null]})}fC.displayName=`Textarea`;var pC=K(fC);const mC={root:`form-control-caption`,disabled:`form-control-caption-disabled`};function hC(t,n){let{className:r,id:i,...a}=t,{captionId:o,disabled:s}=e.useContext(Bp);return(0,q.jsx)(`span`,{ref:n,id:i??o,className:G(mC.root,s&&mC.disabled,r),"data-component":`FormControl.Caption`,"data-control-disabled":s,...a})}hC.displayName=`FormControl.Caption`;var gC=K(hC);const _C={root:`form-control-label`,disabled:`form-control-label-disabled`,hidden:`sr-only`,required:`form-control-label-required`};function vC(t,n){let{as:r=`label`,className:i,children:a,htmlFor:o,id:s,visuallyHidden:c,requiredIndicator:l=!0,requiredText:u,...d}=t,{id:f,disabled:p,required:m,labelId:h}=e.useContext(Bp);return(0,q.jsx)(r,{ref:n,id:s??h,htmlFor:r===`label`?o??f:void 0,className:G(_C.root,p&&_C.disabled,c&&_C.hidden,i),"data-component":`FormControl.Label`,"data-control-disabled":p,...d,children:m||u?(0,q.jsxs)(`span`,{className:_C.required,children:[(0,q.jsx)(`span`,{children:a}),(0,q.jsx)(`span`,{"aria-hidden":!l||void 0,children:u??`*`})]}):a})}vC.displayName=`FormControl.Label`;var yC=K(vC);const bC={root:`form-control-leading-visual`,disabled:`form-control-leading-visual-disabled`,withCaption:`form-control-leading-visual-with-caption`};function xC(t,n){let{className:r,...i}=t,{captionId:a,disabled:o}=e.useContext(Bp);return(0,q.jsx)(`div`,{ref:n,className:G(bC.root,a&&bC.withCaption,o&&bC.disabled,r),"data-component":`FormControl.LeadingVisual`,"data-control-disabled":o,"data-has-caption":a?!0:void 0,...i})}xC.displayName=`FormControl.LeadingVisual`;var SC=K(xC);const CC={success:Ln,error:Qn},wC={icon:`form-control-validation-icon`},TC=W(`form-control-validation`,{variants:{variant:{success:`form-control-validation-success`,error:`form-control-validation-error`}}});function EC(t,n){let{className:r,children:i,variant:a,id:o,...s}=t,{validationMessageId:c}=e.useContext(Bp),l=CC[a];return(0,q.jsxs)(`span`,{ref:n,className:G(TC({variant:a}),r),"data-component":`FormControl.Validation`,"data-validation-status":a,...s,children:[(0,q.jsx)(`span`,{className:wC.icon,"data-component":`FormControl.Validation.Icon`,"aria-hidden":`true`,children:(0,q.jsx)(l,{})}),(0,q.jsx)(`span`,{id:o??c,children:i})]})}EC.displayName=`FormControl.Validation`;var DC=K(EC);const OC={vertical:`form-control-vertical`,verticalWithLabel:`form-control-vertical-with-label`,horizontal:`form-control-horizontal`,horizontalWithLeadingVisual:`form-control-horizontal-with-leading-visual`,choiceInput:`form-control-choice-input`,labelContainer:`form-control-label-container`},kC=[Gf,PS,RS,aC,pC,As],AC=(t,n)=>e.isValidElement(t)&&(t.type===n||ii(t,n));function jC(t,n){let{className:r,children:i,disabled:a,required:o,layout:s=`vertical`,id:c,...l}=t,[u,d]=si(i,{label:yC,caption:gC,leadingVisual:SC,validation:DC}),f=e.useContext(Vf),p=e.useContext(FS),m=f.disabled||p.disabled||a,h=Y(c),g=u.caption?`${h}-caption`:void 0,_=u.validation?`${h}-validation`:void 0,v=e.isValidElement(u.label)?u.label:void 0,y=v?v.props.id??`${h}-label`:void 0,b=v?!v.props.visuallyHidden:!1,x=e.isValidElement(u.validation)?u.validation.props.variant:void 0,S=d.find(e=>kC.some(t=>AC(e,t))),C=AC(S,Gf)||AC(S,RS),w=AC(S,RS),T=C||s===`horizontal`,E=d.filter(e=>e!==S),D={id:h,disabled:m,required:o,captionId:g,validationMessageId:_,labelId:y},O=e.isValidElement(S)?e.cloneElement(S,T?{id:h,disabled:m,required:o&&!w,"aria-describedby":g}:{id:h,disabled:m,required:o,validationStatus:x,"aria-describedby":[_,g].filter(Boolean).join(` `)||void 0,...S.props}):null;return(0,q.jsx)(Bp.Provider,{value:D,children:T?(0,q.jsxs)(`div`,{ref:n,className:G(OC.horizontal,u.leadingVisual&&OC.horizontalWithLeadingVisual,r),"data-component":`FormControl`,"data-layout":`horizontal`,"data-disabled":m,"data-required":o,"data-has-leading-visual":u.leadingVisual?!0:void 0,...l,children:[(0,q.jsxs)(`div`,{className:OC.choiceInput,children:[O,E]}),u.leadingVisual,(0,q.jsxs)(`div`,{className:OC.labelContainer,children:[u.label,u.caption]})]}):(0,q.jsxs)(`div`,{ref:n,className:G(OC.vertical,b&&OC.verticalWithLabel,r),"data-component":`FormControl`,"data-layout":`vertical`,"data-disabled":m,"data-required":o,"data-has-label":b?!0:void 0,...l,children:[u.label,O,E,u.validation,u.caption]})})}jC.displayName=`FormControl`;var MC=K(jC);const NC=Object.assign(MC,{Label:yC,Caption:gC,LeadingVisual:SC,Validation:DC});function PC(e,t){let{as:n=`span`,children:r,value:i,format:a,locale:o,...s}=e,{locale:c}=Dc();return(0,q.jsx)(n,{ref:t,"data-component":`FormatByte`,...s,children:r??Cc(i,o??c,a)})}PC.displayName=`FormatByte`;var FC=K(PC);function IC(e,t){let{as:n=`span`,children:r,value:i,format:a,locale:o,...s}=e,c=Ic({locale:o,...a});return(0,q.jsx)(n,{ref:t,"data-component":`FormatNumber`,...s,children:r??c.format(i)})}IC.displayName=`FormatNumber`;var LC=K(IC);function RC({onMount:t,onUnmount:n,children:r}){let i=e.useRef({onMount:t,onUnmount:n});return e.useEffect(()=>{i.current={onMount:t,onUnmount:n}},[t,n]),e.useEffect(()=>(i.current.onMount?.(),()=>{i.current.onUnmount?.()}),[]),(0,q.jsx)(q.Fragment,{children:r})}RC.displayName=`Frame.Content`;const zC={root:`frame`},BC=`frame-root`,VC=`<!doctype html><html><head><style>*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}</style></head><body><div class="${BC}"></div></body></html>`,HC=e=>{let t=e.contentWindow?.document;return t?t.body.querySelector(`.frame-root`)??t.body:null};function UC(t,n){let{children:r,head:i,onMount:a,onUnmount:o,srcDoc:s=VC,className:c,title:l,...u}=t,d=Y(),[f,p]=e.useState(null),[h,g]=e.useState(null),[_,v]=e.useState(null),y=e.useCallback(e=>{p(e)},[]),b=Gr(n,y);return Ur(()=>{if(!f)return;let e=f.contentWindow?.document;e&&(e.open(),e.write(s),e.close(),g(HC(f)),v(e.head))},[f,s]),e.useEffect(()=>{if(!f||!h)return;let e=f.contentWindow;if(!e?.ResizeObserver)return;let t=()=>{f.style.setProperty(`--frame-content-width`,`${h.scrollWidth}px`),f.style.setProperty(`--frame-content-height`,`${h.scrollHeight}px`)},n=new e.ResizeObserver(()=>{e.requestAnimationFrame(t)});return t(),n.observe(h),()=>{n.disconnect()}},[f,h]),(0,q.jsxs)(`iframe`,{ref:b,title:l??`Frame ${d}`,className:G(zC.root,c),"data-component":`Frame`,...u,children:[h?m((0,q.jsx)(RC,{onMount:a,onUnmount:o,children:r}),h):null,i&&_?m(i,_):null]})}UC.displayName=`Frame`;var WC=K(UC);const GC={root:`header`};function KC(e,t){let{as:n=`header`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(GC.root,r),"data-component":`Header`,...i})}KC.displayName=`Header`;var qC=K(KC);const JC={root:`header-item`,full:`header-item-full`};function YC(e,t){let{className:n,full:r,...i}=e;return(0,q.jsx)(`div`,{ref:t,className:G(JC.root,r&&JC.full,n),"data-component":`Header.Item`,"data-full":r?``:void 0,...i})}YC.displayName=`Header.Item`;var XC=K(YC);const ZC={root:`header-link`};function QC(e,t){let{as:n=`a`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(ZC.root,r),"data-component":`Header.Link`,...i})}QC.displayName=`Header.Link`;var $C=K(QC);const ew=Object.assign(qC,{Item:XC,Link:$C}),tw={when:{narrow:`hidden-narrow`,regular:`hidden-regular`,wide:`hidden-wide`}};function nw(e,t){let{as:n=`div`,className:r,when:i,...a}=e,o=Array.isArray(i)?i:[i];return(0,q.jsx)(n,{ref:t,className:G(o.map(e=>tw.when[e]),r),"data-component":`Hidden`,"data-when":o.join(` `),...a})}nw.displayName=`Hidden`;var rw=K(nw);const iw=W(`mark`,{variants:{variant:{attention:`mark-attention`,accent:`mark-accent`,success:`mark-success`,danger:`mark-danger`,neutral:`mark-neutral`},size:{large:`mark-size-large`,medium:`mark-size-medium`,small:`mark-size-small`},weight:{light:`mark-weight-light`,normal:`mark-weight-normal`,medium:`mark-weight-medium`,semibold:`mark-weight-semibold`}}});function aw(e,t){let{as:n=`mark`,className:r,variant:i=`attention`,size:a,weight:o,...s}=e;return(0,q.jsx)(n,{ref:t,className:G(iw({variant:i,size:a,weight:o}),r),"data-component":`Mark`,"data-variant":i,"data-size":a,"data-weight":o,...s})}aw.displayName=`Mark`;var ow=K(aw);const sw=e=>(typeof e==`string`?[e]:e??[]).filter(e=>e.length>0).sort((e,t)=>t.length-e.length),cw=(e,t,n=!1)=>{let r=sw(t);if(e.length===0)return[];if(r.length===0)return[{text:e,matched:!1}];let i=n?e:e.toLowerCase(),a=n?r:r.map(e=>e.toLowerCase()),o=[],s=0,c=0,l=t=>{t>c&&o.push({text:e.slice(c,t),matched:!1})};for(;s<e.length;){let t=a.find(e=>i.startsWith(e,s));if(t===void 0){s+=1;continue}l(s);let n=s+t.length,r=o[o.length-1];r?.matched?r.text+=e.slice(s,n):o.push({text:e.slice(s,n),matched:!0}),s=n,c=n}return l(e.length),o};function lw(t,n){let{as:r=`span`,children:i=``,match:a,caseSensitive:o=!1,variant:s=`attention`,...c}=t,l=e.useMemo(()=>cw(i,a,o),[i,a,o]);return(0,q.jsx)(r,{ref:n,"data-component":`Highlight`,"data-variant":s,"data-case-sensitive":o,...c,children:l.map((e,t)=>e.matched?(0,q.jsx)(ow,{variant:s,children:e.text},t):e.text)})}lw.displayName=`Highlight`;var uw=K(lw);const dw=n({}),fw={root:`hover-card-content`};function pw(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(fw.root,n),"data-component":`HoverCard.Content`,...r})}pw.displayName=`HoverCard.Content`;var mw=K(pw);function hw(t){let{children:n}=t,{triggerHandlers:r}=e.useContext(dw),i=e.Children.only(n);if(!e.isValidElement(i)||!r)return null;let a=i.props;return e.cloneElement(i,{ref:r.ref,"aria-describedby":[a[`aria-describedby`],r[`aria-describedby`]].filter(Boolean).join(` `)||void 0,onPointerEnter:e=>{r.onPointerEnter(e),a.onPointerEnter?.(e)},onPointerLeave:e=>{r.onPointerLeave(e),a.onPointerLeave?.(e)},onFocus:e=>{r.onFocus(e),a.onFocus?.(e)},onBlur:e=>{r.onBlur(e),a.onBlur?.(e)}})}hw.displayName=`HoverCard.Trigger`;const gw={root:[`hover-card`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short motion-safe:data-[side=outside-bottom]:slide-in-from-top-2 motion-safe:data-[side=outside-top]:slide-in-from-bottom-2 motion-safe:data-[side=outside-right]:slide-in-from-left-2 motion-safe:data-[side=outside-left]:slide-in-from-right-2`],unplaced:`invisible`},_w=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign;function vw(t){let{className:n,children:r,side:i=`outside-bottom`,align:a=`start`,anchorOffset:o,alignmentOffset:s,openDelay:c=500,closeDelay:l=300,open:u,onOpenChange:d,disabled:f=!1,portalContainerName:p}=t,m=Y(),[h]=si(r,{trigger:hw,content:mw}),g=e.useRef(null),_=e.useRef(null),v=e.useRef(null),y=e.useRef(null),[b,x]=e.useState(!1),S=u!==void 0,C=(S?u:b)&&!f,w=e.useRef(null),[T,E]=e.useState(null),D=e.useCallback(()=>{v.current!==null&&(window.clearTimeout(v.current),v.current=null),y.current!==null&&(window.clearTimeout(y.current),y.current=null)},[]);e.useEffect(()=>D,[D]);let O=e=>{D(),S||x(e),d?.(e)},k=()=>{f||(D(),v.current=window.setTimeout(()=>{v.current=null,O(!0)},c))},A=()=>{D(),y.current=window.setTimeout(()=>{y.current=null,O(!1)},l)},j=e.useCallback(()=>{let e=g.current,t=_.current;if(!e||!t)return;let n=Ga(t,e,{side:i,align:a,anchorOffset:o,alignmentOffset:s});w.current&&_w(w.current,n)||(w.current=n,E(n))},[i,a,o,s]);Ur(()=>{if(!C){w.current=null,E(null);return}j();let e=new ResizeObserver(j);return _.current&&e.observe(_.current),window.addEventListener(`resize`,j),window.addEventListener(`scroll`,j,!0),()=>{e.disconnect(),window.removeEventListener(`resize`,j),window.removeEventListener(`scroll`,j,!0)}},[C,j]),Oa(e=>{C&&(e.preventDefault(),O(!1))});let M={ref:g,"aria-describedby":C?m:void 0,onPointerEnter:e=>{e.pointerType!==`touch`&&k()},onPointerLeave:e=>{e.pointerType!==`touch`&&A()},onFocus:e=>{try{if(!e.target.matches(`:focus-visible`))return}catch{}O(!0)},onBlur:e=>{e.relatedTarget instanceof Node&&_.current?.contains(e.relatedTarget)||O(!1)}};return(0,q.jsxs)(dw.Provider,{value:{triggerHandlers:M},children:[h.trigger,C?(0,q.jsx)(Ba,{containerName:p,children:(0,q.jsx)(`div`,{ref:_,id:m,className:G(gw.root,!T&&gw.unplaced,n),style:{"--hover-card-top":`${T?.top??0}px`,"--hover-card-left":`${T?.left??0}px`},onPointerEnter:D,onPointerLeave:A,"data-component":`HoverCard`,"data-side":T?.anchorSide??i,"data-align":T?.anchorAlign??a,"data-visibility":T?`visible`:`hidden`,children:h.content})}):null]})}vw.displayName=`HoverCard`;const yw=Object.assign(vw,{Trigger:hw,Content:mw}),bw=W(`image`,{variants:{fit:{contain:`image-fit-contain`,cover:`image-fit-cover`,fill:`image-fit-fill`,none:`image-fit-none`,"scale-down":`image-fit-scale-down`},borderRadius:{none:`image-radius-none`,small:`image-radius-small`,medium:`image-radius-medium`,large:`image-radius-large`,full:`image-radius-full`}}});function xw(t,n){let{as:r=`img`,className:i,alt:a=``,borderRadius:o=`none`,fit:s=`cover`,fallbackSrc:c,loading:l=`lazy`,src:u,onError:d,...f}=t,[p,m]=e.useState(void 0),h=c!==void 0&&u!==void 0&&u===p;return(0,q.jsx)(r,{ref:n,alt:a,src:h?c:u,loading:l,onError:e=>{m(u),d?.(e)},className:G(bw({borderRadius:o,fit:s}),i),"data-component":`Image`,"data-border-radius":o,"data-fit":s,"data-fallback":h||void 0,...f})}xw.displayName=`Image`;var Sw=K(xw);const Cw={icon:`inline-message-icon`},ww=W(`inline-message`,{variants:{size:{small:`inline-message-small`,medium:`inline-message-medium`},variant:{critical:`inline-message-critical`,success:`inline-message-success`,unavailable:`inline-message-unavailable`,warning:`inline-message-warning`}}}),Tw={critical:Qn,success:Ln,unavailable:jr,warning:jr},Ew=e=>typeof e==`string`||!g(e)?e:(0,q.jsx)(e,{});function Dw(e,t){let{className:n,children:r,size:i=`medium`,variant:a,leadingVisual:o,...s}=e,c=a?Tw[a]:ir;return(0,q.jsxs)(`div`,{ref:t,className:G(ww({size:i,variant:a}),n),"data-component":`InlineMessage`,"data-size":i,"data-variant":a,...s,children:[(0,q.jsx)(`span`,{className:Cw.icon,"data-component":`InlineMessage.Icon`,children:o===void 0?(0,q.jsx)(c,{}):Ew(o)}),(0,q.jsx)(`span`,{"data-component":`InlineMessage.Content`,children:r})]})}Dw.displayName=`InlineMessage`;var Ow=K(Dw);const kw=e.createContext({announceUpdate:()=>{},expandedStateCache:{current:new Map},scrollElementIntoView:()=>{}}),Aw=e.createContext({itemId:``,level:1,isSubTreeEmpty:!1,setIsSubTreeEmpty:()=>{},isExpanded:!1,setIsExpanded:()=>{},leadingVisualId:``,trailingVisualId:``,trailingActionId:``}),jw=e.createContext(!1),Mw=`[role=tree]`,Nw=`[role=treeitem]`,Pw=e=>{let t=e.getAttribute(`aria-label`);if(t)return t;let n=e.getAttribute(`aria-labelledby`);return n?document.getElementById(n)?.textContent??``:e.textContent??``},Fw=e=>{let t=e.getAttribute(`aria-expanded`);return t===`true`?`open`:t===`false`?`closed`:`end`},Iw=e=>!!e.parentElement?.closest(`[role=treeitem][aria-expanded=false]`),Lw=e=>{let t=e.querySelector(Nw);return t instanceof HTMLElement?t:void 0},Rw=e=>{let t=e.closest(`[role=group]`)?.closest(Nw);return t instanceof HTMLElement?t:void 0},zw=e=>{let t=e.closest(Mw)?.querySelector(Nw);return t instanceof HTMLElement?t:void 0},Bw=e=>{let t=e.closest(Mw);if(!t)return;let n=Array.from(t.querySelectorAll(Nw));for(let e=n.length-1;e>=0;e--)if(!Iw(n[e]))return n[e]},Vw=(e,t)=>{let n=e.closest(Mw);if(!n)return;let r=Array.from(n.querySelectorAll(Nw)),i=t===`next`?1:-1;for(let t=r.indexOf(e)+i;t>=0&&t<r.length;t+=i)if(!Iw(r[t]))return r[t]},Hw=e=>{let t=e.parentElement;for(;t;){let{overflowY:e}=getComputedStyle(t);if(e===`auto`||e===`scroll`)return t;t=t.parentElement}},Uw=(e,t)=>{let n=t?.getBoundingClientRect().height||32,r=Hw(e)?.clientHeight??window.innerHeight;return Math.max(Math.floor(r/n),1)},Ww=(e,t)=>{let n=e.closest(Mw);if(!n)return;let r=Array.from(n.querySelectorAll(Nw));if(r.length===0)return;let i=Uw(n,r[0].firstElementChild),a=r.indexOf(e),o=Math.floor(a/i),s=a-i*o,c=(o+(t===`next`?1:-1))*i+s;return r[Math.min(Math.max(c,0),r.length-1)]},Gw={"open ArrowRight":Lw,"closed ArrowLeft":Rw,"end ArrowLeft":Rw},Kw=new Set([`ArrowLeft`,`ArrowRight`]),qw={ArrowUp:e=>Vw(e,`previous`),ArrowDown:e=>Vw(e,`next`),Backspace:Rw,Home:zw,End:Bw,PageUp:e=>Ww(e,`previous`),PageDown:e=>Ww(e,`next`)},Jw=(e,t)=>Kw.has(t)?Gw[`${Fw(e)} ${t}`]?.(e):qw[t]?.(e),Yw=`[role=treeitem]`,Xw=({containerRef:e})=>{Ur(()=>{let t=e.current;if(!t)return;let n=e=>{let n=Array.from(t.querySelectorAll(Yw));if(n.length===0)return;let r=(e instanceof HTMLElement&&t.contains(e)?e.closest(Yw):null)??n.find(e=>e.tabIndex===0)??n.find(e=>e.getAttribute(`aria-current`)===`true`)??n[0];for(let e of n)e.tabIndex=e===r?0:-1};n();let r=e=>{n(e.target)},i=e=>{if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)return;let n=e.target?.closest(Yw);if(!n||!t.contains(n))return;let r=Jw(n,e.key);r&&(e.preventDefault(),r.focus())},a=new MutationObserver(()=>n(document.activeElement));return a.observe(t,{childList:!0,subtree:!0}),t.addEventListener(`focusin`,r),t.addEventListener(`keydown`,i),()=>{a.disconnect(),t.removeEventListener(`focusin`,r),t.removeEventListener(`keydown`,i)}},[e])},Zw=(e,t)=>e.map((n,r)=>e[(t+r)%e.length]),Qw=({containerRef:t,onFocusChange:n})=>{let r=e.useRef(``),i=e.useRef(0),a=e.useRef(n);e.useEffect(()=>{a.current=n},[n]),e.useEffect(()=>{let e=t.current;if(!e)return;let n=null,o=()=>(n??=Array.from(e.querySelectorAll(`[role=treeitem]`)),n),s=new MutationObserver(()=>{n=null});s.observe(e,{childList:!0,subtree:!0});let c=e=>{if(!e.key||e.key.length>1||e.key===` `||e.ctrlKey||e.altKey||e.metaKey)return;r.current+=e.key;let t=o(),n=t.findIndex(e=>e===document.activeElement),s=Zw(t,Math.max(n,0)),c=r.current.length===1?s.slice(1):s,l=r.current.toLowerCase(),u=c.find(e=>Pw(e).trim().toLowerCase().startsWith(l));u&&a.current(u),window.clearTimeout(i.current),i.current=window.setTimeout(()=>{r.current=``},300),e.preventDefault(),e.stopPropagation()};return e.addEventListener(`keydown`,c),()=>{s.disconnect(),e.removeEventListener(`keydown`,c),window.clearTimeout(i.current)}},[t])},$w={root:`tree-view`,hover:`tree-view-hover`,coarse:`tree-view-coarse`,hidden:`sr-only`};function eT(t,n){let{children:r,className:i,flat:a,truncate:o=!0,...s}=t,c=e.useRef(null),l=Gr(n,c),[u,d]=e.useState(``),f=e.useCallback(e=>d(e),[]);Xw({containerRef:c}),Qw({containerRef:c,onFocusChange:e=>e.focus()});let p=e.useRef(null),m=e.useCallback(e=>{e&&(p.current!==null&&cancelAnimationFrame(p.current),p.current=requestAnimationFrame(()=>{p.current=null,e.isConnected&&e.scrollIntoView({block:`nearest`,inline:`nearest`})}))},[]);e.useEffect(()=>()=>{p.current!==null&&cancelAnimationFrame(p.current)},[]);let h=e.useRef(null);h.current??=new Map;let g=e.useMemo(()=>({announceUpdate:f,expandedStateCache:h,scrollElementIntoView:m}),[f,m]);return(0,q.jsxs)(kw.Provider,{value:g,children:[(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:$w.hidden,"data-component":`TreeView.Announcement`,children:u}),(0,q.jsx)(`ul`,{ref:l,role:`tree`,className:G($w.root,$w.hover,$w.coarse,i),"data-component":`TreeView`,"data-omit-spacer":a?`true`:void 0,"data-truncate-text":o?`true`:`false`,...s,children:r})]})}eT.displayName=`TreeView`;var tT=e.forwardRef(eT);const nT={root:`tree-view-directory-icon`};function rT(){let{isExpanded:t}=e.useContext(Aw),n=t?nr:rr;return(0,q.jsx)(`span`,{className:nT.root,"data-component":`TreeView.DirectoryIcon`,children:(0,q.jsx)(n,{})})}rT.displayName=`TreeView.DirectoryIcon`;const iT=[`Backspace`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Enter`];function aT(t){let{title:n=`Error`,children:r,onRetry:i,onDismiss:a}=t,{itemId:o,setIsExpanded:s}=e.useContext(Aw);return(0,q.jsx)(`div`,{onKeyDown:e=>{iT.includes(e.key)&&e.stopPropagation()},"data-component":`TreeView.ErrorDialog`,children:(0,q.jsx)(r_,{title:n,confirmButtonContent:`Retry`,cancelButtonContent:`Dismiss`,onClose:e=>{if(window.setTimeout(()=>document.getElementById(o)?.focus()),e===`confirm`){i?.();return}s(!1),a?.()},children:r})})}aT.displayName=`TreeView.ErrorDialog`;const oT=([e,...t])=>(e?.toUpperCase()??``)+t.join(``).toLowerCase(),sT=e=>({alt:e===`apple`?`⌥`:`Alt`,control:`⌃`,shift:`⇧`,meta:e===`apple`?`⌘`:e===`windows`?`Win`:`Meta`,mod:e===`apple`?`⌘`:`⌃`,pageup:`PgUp`,pagedown:`PgDn`,arrowup:`↑`,arrowdown:`↓`,arrowleft:`←`,arrowright:`→`,plus:`+`,backspace:`⌫`,delete:`Del`,space:`␣`,tab:`⇥`,enter:`⏎`,escape:`Esc`,function:`Fn`,capslock:`CapsLock`,insert:`Ins`,printscreen:`PrtScn`}),cT=e=>({alt:e===`apple`?`Option`:`Alt`,meta:e===`apple`?`Command`:e===`windows`?`Windows`:`Meta`,mod:e===`apple`?`Command`:`Control`,"+":`Plus`,pageup:`Page Up`,pagedown:`Page Down`,arrowup:`Up Arrow`,arrowdown:`Down Arrow`,arrowleft:`Left Arrow`,arrowright:`Right Arrow`,capslock:`Caps Lock`,printscreen:`Print Screen`}),lT=e=>({alt:e===`apple`?`option`:`alt`,meta:e===`apple`?`command`:e===`windows`?`Windows`:`meta`,mod:e===`apple`?`command`:`control`,pageup:`page up`,pagedown:`page down`,arrowup:`up arrow`,arrowdown:`down arrow`,arrowleft:`left arrow`,arrowright:`right arrow`,capslock:`caps lock`,printscreen:`print screen`,"`":`backtick`,"~":`tilde`,"!":`exclamation point`,"@":`at`,"#":`hash`,$:`dollar sign`,"%":`percent`,"^":`caret`,"&":`ampersand`,"*":`asterisk`,"(":`left parenthesis`,")":`right parenthesis`,_:`underscore`,"-":`dash`,"+":`plus`,"=":`equals`,"[":`left bracket`,"{":`left curly brace`,"]":`right bracket`,"}":`right curly brace`,"\\":`backslash`,"|":`pipe`,";":`semicolon`,":":`colon`,"'":`single quote`,'"':`double quote`,",":`comma`,"<":`left angle bracket`,".":`period`,">":`right angle bracket`,"/":`forward slash`,"?":`question mark`," ":`space`}),uT=(e,t)=>sT(t)[e]??oT(e),dT=(e,t)=>cT(t)[e]??oT(e),fT=(e,t)=>lT(t)[e]??e.toLowerCase(),pT={control:1,meta:2,alt:3,option:4,shift:5,function:6},mT=e=>pT[e]??1/0,hT=e=>e.split(`+`).map(e=>e.toLowerCase()).sort((e,t)=>mT(e)-mT(t)),gT=e=>e.split(` `),_T=(e,t)=>hT(e).map(e=>fT(e,t)).join(` `),vT=(e,t)=>gT(e).map(e=>_T(e,t)).join(` then `),yT=(e,t)=>vT(e,t),bT=n(null),xT=()=>()=>{},ST=()=>typeof navigator>`u`?``:`${navigator.platform} ${navigator.userAgent}`,CT=()=>{let e=ST();return/mac|iphone|ipad|ipod/i.test(e)?`apple`:/win/i.test(e)?`windows`:`other`},wT=()=>`other`,TT=()=>{let e=o(bT),t=f(xT,CT,wT);return e??t},ET={hidden:`sr-only`};function DT(e){let{name:t,format:n=`condensed`}=e,r=TT();return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{className:ET.hidden,children:fT(t,r)}),(0,q.jsx)(`span`,{"aria-hidden":`true`,children:n===`condensed`?uT(t,r):dT(t,r)})]})}DT.displayName=`KeybindingHint.Key`;const OT=W(`keybinding-hint-chord`,{variants:{variant:{normal:`keybinding-hint-chord-normal`,onEmphasis:`keybinding-hint-chord-on-emphasis`,onPrimary:`keybinding-hint-chord-on-primary`},size:{normal:`keybinding-hint-chord-size-normal`,small:`keybinding-hint-chord-size-small`}}});function kT(t){let{keys:n,format:r=`condensed`,variant:i=`normal`,size:a=`normal`}=t;return(0,q.jsx)(`span`,{className:G(OT({variant:i,size:a})),"data-component":`KeybindingHint.Chord`,children:hT(n).map((t,n)=>(0,q.jsxs)(e.Fragment,{children:[n>0&&r===`full`?(0,q.jsx)(`span`,{"aria-hidden":`true`,children:` + `}):` `,(0,q.jsx)(DT,{name:t,format:r})]},n))})}kT.displayName=`KeybindingHint.Chord`;const AT={root:`keybinding-hint`,hidden:`sr-only`};function jT(t,n){let{className:r,keys:i,format:a=`condensed`,variant:o=`normal`,size:s=`normal`,...c}=t;return(0,q.jsx)(`kbd`,{ref:n,className:G(AT.root,r),"data-component":`KeybindingHint`,"data-format":a,"data-variant":o,"data-size":s,...c,children:gT(i).map((t,n)=>(0,q.jsxs)(e.Fragment,{children:[n>0?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{className:AT.hidden,children:`then`}),` `]}):null,(0,q.jsx)(kT,{keys:t,format:a,variant:o,size:s})]},n))})}jT.displayName=`KeybindingHint`;var MT=K(jT);const NT={hidden:`sr-only`},PT=[`Backspace`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Enter`],FT=e=>g(e)?(0,q.jsx)(e,{}):e;function IT(t){let{items:n,onClose:r}=t,{itemId:i}=e.useContext(Aw);return(0,q.jsx)(`div`,{onClick:e=>e.stopPropagation(),onKeyDown:e=>{PT.includes(e.key)&&e.stopPropagation()},"data-component":`TreeView.ActionDialog`,children:(0,q.jsx)(Qv,{title:`Supplemental actions`,onClose:()=>{r?.(),window.setTimeout(()=>document.getElementById(i)?.focus())},children:(0,q.jsx)(_a,{children:n.map(({label:e,onClick:t,icon:n,count:r},i)=>(0,q.jsxs)(_a.Item,{onSelect:t,children:[(0,q.jsx)(_a.LeadingVisual,{children:FT(n)}),e,r?(0,q.jsxs)(_a.TrailingVisual,{children:[r,(0,q.jsx)(`span`,{className:NT.hidden,children:` items`})]}):null]},i))})})})}IT.displayName=`TreeView.ActionDialog`;const LT={visual:`tree-view-visual`,hidden:`sr-only`},RT=(e,t)=>typeof e==`function`?e({isExpanded:t}):e,zT=t=>{let{children:n,label:r,labelId:i,className:a,"data-component":o}=t,{isExpanded:s}=e.useContext(Aw);return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{id:i,className:LT.hidden,"aria-hidden":`true`,children:r}),(0,q.jsx)(`span`,{className:a,"aria-hidden":`true`,"data-component":o,children:RT(n,s)})]})},BT={root:`tree-view-leading-action`};function VT(e){return(0,q.jsx)(zT,{label:e.label,className:BT.root,"data-component":`TreeView.LeadingAction`,children:e.children})}VT.displayName=`TreeView.LeadingAction`;function HT(t){let{leadingVisualId:n}=e.useContext(Aw);return(0,q.jsx)(zT,{label:t.label,labelId:n,className:LT.visual,"data-component":`TreeView.LeadingVisual`,children:t.children})}HT.displayName=`TreeView.LeadingVisual`;const UT=W(`skeleton-avatar`,{variants:{shape:{circle:`skeleton-avatar-circle`,square:`skeleton-avatar-square`},responsive:{true:`skeleton-avatar-responsive`,false:``}}});function WT({size:e=20,shape:t=`circle`,className:n,style:r,...i}){let a=Xs(e),o={"--avatar-size-regular":`20px`};if(a)for(let[t,n]of Object.entries(e))n!==void 0&&(o[`--avatar-size-${t}`]=`${n}px`);else o[`--avatar-size-regular`]=`${e}px`;return(0,q.jsx)(cv,{width:`var(--avatar-size-regular)`,height:`var(--avatar-size-regular)`,className:G(UT({shape:t,responsive:a}),n),style:{...r,...o},...i,"data-component":`SkeletonAvatar`,"data-responsive":a||void 0,"data-shape":t})}WT.displayName=`SkeletonAvatar`;const GT={root:`tree-view-sub-tree`,skeletonRow:`tree-view-skeleton-row`,skeletonText:`tree-view-skeleton-text`,muted:`tree-view-muted`,hidden:`sr-only`},KT=[`67%`,`47%`,`73%`,`64%`,`50%`],qT=t=>{let n=e.useRef(t);return e.useEffect(()=>{n.current=t},[t]),n.current},JT=({index:e})=>(0,q.jsxs)(`span`,{className:GT.skeletonRow,style:{"--tree-view-skeleton-width":KT[e%KT.length]},"aria-hidden":`true`,children:[(0,q.jsx)(WT,{size:16,shape:`square`}),(0,q.jsx)(dv,{className:GT.skeletonText})]}),YT=e.forwardRef(({count:e},t)=>{let n=Y();return(0,q.jsx)(jw.Provider,{value:!0,children:(0,q.jsx)(hE,{ref:t,id:n,children:e?(0,q.jsxs)(q.Fragment,{children:[Array.from({length:e},(e,t)=>(0,q.jsx)(JT,{index:t},t)),(0,q.jsxs)(`span`,{className:GT.hidden,children:[`Loading `,e,` items`]})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(HT,{children:(0,q.jsx)(zi,{size:`small`,srText:null})}),(0,q.jsx)(Ss,{className:GT.muted,children:`Loading...`})]})})})});YT.displayName=`TreeView.LoadingItem`;const XT=()=>(0,q.jsx)(hE,{id:Y(),expanded:null,children:(0,q.jsx)(Ss,{className:GT.muted,children:`No items found`})});function ZT(t){let{count:n,state:r,children:i,"aria-label":a}=t,{announceUpdate:o}=e.useContext(kw),{itemId:s,isExpanded:c,isSubTreeEmpty:l,setIsSubTreeEmpty:u}=e.useContext(Aw),d=e.useRef(null),f=e.useRef(null),[p,m]=e.useState(!1),[h,g]=e.useState(``),_=qT(r);return e.useEffect(()=>{(r===void 0||r===`done`)&&u(!i)},[r,i,u]),e.useEffect(()=>{let e=document.getElementById(s);if(!e)return;let t=Pw(e);if(g(t),r===`loading`){o(`${t} content loading`);return}if(_!==`loading`||r!==`done`||(o(d.current?.childElementCount?`${t} content loaded`:`${t} is empty`),!p))return;let n=window.setTimeout(()=>{(Lw(e)??e).focus()});return m(!1),()=>{window.clearTimeout(n)}},[s,r,_,p,o]),e.useEffect(()=>{let e=f.current;if(!e)return;let t=()=>m(!0),n=e=>{e.relatedTarget&&m(!1)};return e.addEventListener(`focus`,t),e.addEventListener(`blur`,n),()=>{e.removeEventListener(`focus`,t),e.removeEventListener(`blur`,n)}},[r]),c?(0,q.jsxs)(`ul`,{ref:d,role:`group`,"aria-label":a||h,className:G(GT.root),"data-component":`TreeView.SubTree`,children:[r===`loading`?(0,q.jsx)(YT,{ref:f,count:n}):i,l&&r!==`loading`?(0,q.jsx)(XT,{}):null]}):null}ZT.displayName=`TreeView.SubTree`;const QT=n({}),$T={root:`tooltip`,open:`tooltip-open motion-safe:[&:popover-open]:animate-in motion-safe:[&:popover-open]:fade-in motion-safe:[&:popover-open]:duration-100`,openPolyfilled:`tooltip-open-polyfilled motion-safe:[&[class~=':popover-open']]:animate-in motion-safe:[&[class~=':popover-open']]:fade-in motion-safe:[&[class~=':popover-open']]:duration-100`,bridge:`tooltip-bridge`,bridgeVertical:`tooltip-bridge-vertical`,bridgeHorizontal:`tooltip-bridge-horizontal`},eE={nw:{side:`outside-top`,align:`end`},n:{side:`outside-top`,align:`center`},ne:{side:`outside-top`,align:`start`},e:{side:`outside-right`,align:`center`},se:{side:`outside-bottom`,align:`start`},s:{side:`outside-bottom`,align:`center`},sw:{side:`outside-bottom`,align:`end`},w:{side:`outside-left`,align:`center`}},tE={"outside-top-end":`nw`,"outside-top-center":`n`,"outside-top-start":`ne`,"outside-right-center":`e`,"outside-bottom-start":`se`,"outside-bottom-center":`s`,"outside-bottom-end":`sw`,"outside-left-center":`w`},nE={short:50,medium:400,long:1200},rE=[`a[href]`,`button:not([disabled])`,`summary`,`select`,`input:not([type=hidden])`,`textarea`],iE=e=>rE.some(t=>e.matches(t))||e.getAttribute(`role`)===`button`,aE=e=>iE(e)||Array.from(e.childNodes).some(e=>e instanceof HTMLElement&&iE(e)||Array.from(e.childNodes).some(e=>e instanceof HTMLElement&&iE(e)));function oE(t,n){let{className:r,children:i,text:a,id:o,direction:s=`s`,type:c=`description`,delay:l=`short`,...u}=t,d=Y(o),f=e.Children.only(i),p=e.useRef(null),m=Gr(n,p),h=e.useRef(null),g=e.useRef(null),_=e.useRef(null),[v,y]=e.useState(!1),[S,C]=e.useState(s),w=()=>{g.current!==null&&(window.clearTimeout(g.current),g.current=null),_.current!==null&&(window.clearTimeout(_.current),_.current=null)};e.useEffect(()=>w,[]);let T=()=>{let e=h.current,t=p.current;if(!e||!t)return;try{e.showPopover()}catch{return}y(!0);let{side:n,align:r}=eE[s],{top:i,left:a,anchorSide:o,anchorAlign:c}=Ga(e,t,{side:n,align:r});C(tE[`${o}-${c}`]??s),e.style.top=`${i}px`,e.style.left=`${a}px`},E=()=>{w(),y(!1);try{h.current?.hidePopover()}catch{}};e.useEffect(()=>{let e=h.current,t=p.current;if(!(!e||!t)){if(!aE(t))throw Error("The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or an equivalent element instead.");typeof window<`u`&&!x()&&b(),e.setAttribute(`popover`,`manual`)}},[]),Oa(e=>{v&&(e.preventDefault(),E())});let D=e.useMemo(()=>({tooltipId:d}),[d]);if(!e.isValidElement(f))return null;let O=f.props,k=e.cloneElement(f,{ref:m,"aria-describedby":c===`description`?[O[`aria-describedby`],d].filter(Boolean).join(` `):O[`aria-describedby`],"aria-labelledby":c===`label`?d:O[`aria-labelledby`],onFocus:e=>{try{if(!e.target.matches(`:focus-visible`))return}catch{}T(),O.onFocus?.(e)},onBlur:e=>{E(),O.onBlur?.(e)},onMouseOverCapture:e=>{g.current=window.setTimeout(()=>{g.current!==null&&(T(),O.onMouseEnter?.(e))},nE[l])},onMouseLeave:e=>{E(),O.onMouseLeave?.(e)},onTouchEnd:e=>{O.onTouchEnd?.(e),_.current=window.setTimeout(E,10)}});return(0,q.jsxs)(QT.Provider,{value:D,children:[k,(0,q.jsx)(`span`,{ref:h,id:d,role:c===`description`?`tooltip`:void 0,"aria-hidden":`true`,className:G($T.root,$T.open,$T.openPolyfilled,$T.bridge,$T.bridgeVertical,$T.bridgeHorizontal,r),onMouseEnter:T,onMouseLeave:E,"data-component":`Tooltip`,"data-direction":S,...u,children:a})]})}oE.displayName=`Tooltip`;var sE=K(oE);const cE={root:`tree-view-trailing-action`,button:`shrink`,hidden:`sr-only`};function lE(t){let{items:n,shortcutText:r}=t,{itemId:i,trailingActionId:a}=e.useContext(Aw),o=()=>{document.getElementById(i)?.focus()};return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{id:a,className:cE.hidden,children:r}),(0,q.jsx)(`span`,{className:cE.root,"aria-hidden":`true`,onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),"data-component":`TreeView.TrailingAction`,children:n.map(({label:e,onClick:t,icon:n,count:r,className:i},a)=>r?(0,q.jsx)(sE,{text:e,children:(0,q.jsx)($i,{variant:`invisible`,leadingVisual:n,count:r,"aria-label":e,"aria-hidden":`true`,tabIndex:-1,onClick:t,onKeyDown:o,className:G(cE.button,i)})},a):(0,q.jsx)(na,{icon:n,variant:`invisible`,"aria-label":e,"aria-hidden":`true`,tabIndex:-1,onClick:t,onKeyDown:o,className:G(cE.button,i)},a))})]})}lE.displayName=`TreeView.TrailingAction`;function uE(t){let{trailingVisualId:n}=e.useContext(Aw);return(0,q.jsx)(zT,{label:t.label,labelId:n,className:LT.visual,"data-component":`TreeView.TrailingVisual`,children:t.children})}uE.displayName=`TreeView.TrailingVisual`;const dE={root:`tree-view-item`,container:`tree-view-item-container`,flat:`tree-view-item-container-flat`,hasLeadingAction:`tree-view-item-container-has-leading-action`,current:`tree-view-item-container-current`,loading:`tree-view-item-container-loading`,spacer:`tree-view-item-spacer`,levelLines:`tree-view-item-level-lines`,levelLine:`tree-view-item-level-line`,toggle:`tree-view-item-toggle`,toggleHover:`tree-view-item-toggle-hover`,toggleEnd:`tree-view-item-toggle-end`,content:`tree-view-item-content`,label:`tree-view-item-label`},fE=e=>si(e,{leadingAction:VT,leadingVisual:HT,trailingVisual:uE,subTree:ZT}),pE=({level:e})=>(0,q.jsx)(`span`,{className:dE.levelLines,children:Array.from({length:e-1},(e,t)=>(0,q.jsx)(`span`,{className:dE.levelLine},t))});function mE(t,n){let{as:r,id:i,children:a,className:o,current:s=!1,defaultExpanded:c,expanded:l,onExpandedChange:u,onSelect:d,containIntrinsicSize:f,secondaryActions:p,"aria-label":m,"aria-labelledby":h,...g}=t,{expandedStateCache:_,scrollElementIntoView:v}=e.useContext(kw),{level:y}=e.useContext(Aw),b=e.useContext(jw),x=TT(),[S,C]=fE(a),w=!!S.subTree,T=Y(),E=Y(),D=Y(),O=Y(),k=l!==void 0,[A,j]=e.useState(()=>_.current?.get(i)??c??s),M=k?l===!0:A,[N,P]=e.useState(!w),[F,I]=e.useState(!1),[L,ee]=e.useState(!1),R=e.useCallback(e=>{j(e),_.current?.set(i,e),u?.(e)},[i,_,u]),te=e.useCallback(e=>{R(!M),e?.stopPropagation()},[M,R]),z=e.useCallback(()=>{if(p?.length){if(p.length===1){p[0].onClick();return}ee(!0)}},[p]),ne=e=>{switch(e.key){case`Enter`:case` `:d?d(e):te(e),e.stopPropagation();break;case`ArrowRight`:if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),R(!0);break;case`ArrowLeft`:if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),R(!1);break;case`U`:case`u`:if(!(e.shiftKey&&(e.metaKey||e.ctrlKey)))return;z()}},B=e=>{d?d(e):te(e),e.stopPropagation()},re=`Press (${yT(`Shift+${x===`apple`?`Meta`:`Control`}+U`,x)}) for more actions.`,V=[S.leadingVisual?E:void 0,S.trailingVisual?D:void 0].filter(Boolean),ie=e.useMemo(()=>({itemId:i,level:y+1,isSubTreeEmpty:N,setIsSubTreeEmpty:P,isExpanded:M,setIsExpanded:R,leadingVisualId:E,trailingVisualId:D,trailingActionId:O}),[i,y,N,M,R,E,D,O]),ae=N&&(!M||!w)||l===null?void 0:M,oe=r??`li`,se=r!==void 0&&r!==`li`,ce=(0,q.jsxs)(oe,{ref:n,id:i,role:`treeitem`,tabIndex:-1,"aria-label":p&&m?`${m}. ${re}`:m,"aria-labelledby":m?void 0:`${h||T} ${p?O:``}`.trim(),"aria-describedby":V.length>0?V.join(` `):void 0,"aria-level":y,"aria-expanded":ae,"aria-current":s?`true`:void 0,"aria-selected":F?`true`:`false`,className:G(dE.root,o),"data-component":`TreeView.Item`,"data-has-leading-action":S.leadingAction?``:void 0,"data-loading":b?``:void 0,onKeyDown:ne,onClick:B,onAuxClick:e=>{d&&e.button===1&&d(e),e.stopPropagation()},onFocus:e=>{v(e.currentTarget.firstElementChild),I(!0),e.stopPropagation()},onBlur:()=>I(!1),...g,children:[(0,q.jsxs)(`span`,{className:G(dE.container,dE.flat,S.leadingAction&&dE.hasLeadingAction,s&&dE.current,b&&dE.loading),style:{"--tree-view-level":y,contentVisibility:f?`auto`:void 0,containIntrinsicSize:f},children:[(0,q.jsx)(`span`,{className:dE.spacer,children:(0,q.jsx)(pE,{level:y})}),S.leadingAction,w?(0,q.jsx)(`span`,{className:G(dE.toggle,d&&dE.toggleHover,y===1&&dE.toggleEnd),onClick:e=>{d&&te(e)},"data-component":`TreeView.Item.Toggle`,children:M?(0,q.jsx)(zn,{size:12}):(0,q.jsx)(Vn,{size:12})}):null,(0,q.jsxs)(`span`,{id:T,className:dE.content,children:[S.leadingVisual,(0,q.jsx)(`span`,{className:dE.label,"data-component":`TreeView.Item.Label`,children:C}),S.trailingVisual]}),p?.length?(0,q.jsx)(lE,{items:p,shortcutText:re}):null]}),S.subTree,L&&p?(0,q.jsx)(IT,{items:p,onClose:()=>ee(!1)}):null]});return(0,q.jsx)(Aw.Provider,{value:ie,children:se?(0,q.jsx)(`li`,{role:`none`,children:ce}):ce})}mE.displayName=`TreeView.Item`;var hE=K(mE);const gE=Object.assign(tT,{Item:hE,SubTree:ZT,LeadingAction:VT,LeadingVisual:HT,TrailingVisual:uE,DirectoryIcon:rT,ErrorDialog:aT}),_E=n({}),vE=()=>o(_E),yE={root:`json-tree-view-key`,colon:`json-tree-view-colon`};function bE(e){let{node:t}=e,{quotesOnKeys:n}=vE();return t.key===void 0?null:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{className:yE.root,"data-component":`JSONTreeView.Key`,"data-non-enumerable":t.nonEnumerable?`true`:void 0,children:n?`"${t.key}"`:t.key}),(0,q.jsx)(`span`,{"aria-hidden":`true`,className:yE.colon,"data-component":`JSONTreeView.Colon`,children:`:`})]})}bE.displayName=`JSONTreeView.Key`;const xE=5,SE=new Set([`object`,`array`,`map`,`set`,`class`,`error`]),CE=[`name`,`message`,`stack`,`cause`],wE=e=>{let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},TE=e=>{if(e===null)return`null`;switch(typeof e){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return`number`;case`bigint`:return`bigint`;case`boolean`:return`boolean`;case`symbol`:return`symbol`;case`function`:return`function`}return Array.isArray(e)?`array`:e instanceof Map?`map`:e instanceof Set?`set`:e instanceof Date?`date`:e instanceof RegExp?`regex`:e instanceof Error?`error`:wE(e)?`object`:`class`},EE=e=>{let t=e?.constructor?.name;return t===void 0||t===``?`Object`:t},DE=e=>{let t=TE(e);return t===`string`?e:t===`class`||t===`object`?EE(e):String(e)},OE=(e,t)=>(t?Object.getOwnPropertyNames(e):Object.keys(e)).map(t=>({key:t,value:e[t],nonEnumerable:!Object.prototype.propertyIsEnumerable.call(e,t)})),kE=(e,t,n)=>{if(t===`map`)return Array.from(e,([e,t])=>({key:DE(e),value:t}));if(t===`set`)return Array.from(e,(e,t)=>({key:String(t),value:e}));if(t===`error`){let t=e;return[...CE.filter(e=>e in t&&t[e]!==void 0).map(e=>({key:e,value:t[e]})),...OE(e,n).filter(e=>!CE.includes(e.key))]}return OE(e,n)},AE=(e,t,n)=>t<=0||e.length<=t?null:Array.from({length:Math.ceil(e.length/t)},(r,i)=>{let a=i*t,o=e.slice(a,a+t);return{id:`${n}.r${i}`,key:`${a} … ${a+o.length-1}`,type:`array`,value:o.map(e=>e.value),children:o}}),jE=(e,t,n,r)=>{let i=TE(e.value),a={id:t,key:e.key,type:i,value:e.value,nonEnumerable:e.nonEnumerable};if(!SE.has(i))return a;let o=e.value;if(r.has(o))return{...a,type:`circular`};r.add(o);let s=kE(e.value,i,n.showNonEnumerable??!1).map((e,i)=>jE(e,`${t}.${i}`,n,r));r.delete(o);let c=i===`array`||i===`set`?AE(s,n.groupArraysAfterLength??0,t):null;return s.length>0&&(a.children=c??s),a},ME=(e,t={})=>{let n=TE(e);if(!SE.has(n))return[jE({value:e},`0`,t,new Set)];let r=new Set([e]);return kE(e,n,t.showNonEnumerable??!1).map((e,n)=>jE(e,String(n),t,r))},NE={object:[`{`,`}`],class:[`{`,`}`],error:[`{`,`}`],map:[`{`,`}`],set:[`{`,`}`],array:[`[`,`]`]},PE=e=>{let t=e.name,n=t===void 0||t===``?`anonymous`:t,r=Object.prototype.toString.call(e);return r===`[object AsyncFunction]`?`async ƒ ${n}()`:r===`[object GeneratorFunction]`||r===`[object AsyncGeneratorFunction]`?`ƒ* ${n}()`:`ƒ ${n}()`},FE=(e,t)=>t>0&&e.length>t?`${e.slice(0,t)}…`:e,IE=(e,t={})=>{let{collapseStringsAfterLength:n=0}=t,r=NE[e.type];if(r!==void 0)return`${LE(e)}${r[0]}${r[1]}`;switch(e.type){case`string`:return`"${FE(e.value,n)}"`;case`bigint`:return`${String(e.value)}n`;case`function`:return PE(e.value);case`date`:return e.value.toISOString();case`regex`:case`symbol`:return String(e.value);case`circular`:return`[Circular]`;default:return String(e.value)}},LE=e=>{let t=e.children?.length??0;return e.type===`map`||e.type===`set`?`${EE(e.value)}(${t})`:e.type===`class`||e.type===`error`?EE(e.value):``},RE=(e,t)=>{if(e.children===void 0)return IE(e,t);let[n,r]=NE[e.type]??[`{`,`}`];return`${LE(e)}${n}…${r}`},zE=(e,t={},n=!1)=>{if(e.children===void 0)return[{text:IE(e,t),type:e.type}];let{maxPreviewItems:r=5}=t,[i,a]=NE[e.type]??[`{`,`}`],o=LE(e),s=[];if(o!==``&&s.push({text:o,kind:`constructor`}),s.push({text:i,kind:`bracket`}),n)return s.push({text:`…`,kind:`more`},{text:a,kind:`bracket`}),s;let c=e.children.slice(0,Math.max(r,0));return c.forEach((n,r)=>{r>0&&s.push({text:`, `,kind:`separator`}),e.type!==`array`&&e.type!==`set`&&n.key!==void 0&&s.push({text:`${n.key}: `,kind:`separator`}),s.push({text:RE(n,t),type:n.type})}),c.length<e.children.length&&s.push({text:c.length>0?`, …`:`…`,kind:`more`}),s.push({text:a,kind:`bracket`}),s},BE=(e,t={})=>{let n=e.key===void 0?``:`${e.key}, `;if(e.children===void 0)return`${n}${e.type}, ${IE(e,t)}`;let r=e.children.length;return`${n}${e.type}, ${r} ${r===1?`item`:`items`}`},VE={root:`json-tree-view-value`};function HE(t){let{node:n}=t,r=vE(),{isExpanded:i}=e.useContext(Aw),a=zE(n,r,i);return(0,q.jsx)(`span`,{className:VE.root,"data-component":`JSONTreeView.Value`,children:a.map((e,t)=>(0,q.jsx)(`span`,{"data-component":`JSONTreeView.Token`,"data-type":e.type,"data-kind":e.kind,children:r.renderValue?.(e,n)??e.text},t))})}HE.displayName=`JSONTreeView.Value`;const UE={root:`json-tree-view-node`};function WE(e){let{node:t,depth:n}=e,r=vE(),{defaultExpandedDepth:i=0}=r;return(0,q.jsxs)(gE.Item,{id:t.id,className:UE.root,"aria-label":BE(t,r),defaultExpanded:n<=i,"data-node-type":t.type,children:[(0,q.jsx)(bE,{node:t}),(0,q.jsx)(HE,{node:t}),t.children===void 0?null:(0,q.jsx)(gE.SubTree,{children:t.children.map(e=>(0,q.jsx)(WE,{node:e,depth:n+1},e.id))})]})}WE.displayName=`JSONTreeView.Node`;const GE={root:`json-tree-view`};function KE(t,n){let{className:r,data:i,defaultExpandedDepth:a=1,maxPreviewItems:o,collapseStringsAfterLength:s,quotesOnKeys:c,groupArraysAfterLength:l,showNonEnumerable:u,renderValue:d,"aria-label":f=`JSON data`,...p}=t,m=e.useMemo(()=>ME(i,{groupArraysAfterLength:l,showNonEnumerable:u}),[i,l,u]),h=e.useMemo(()=>({defaultExpandedDepth:a,maxPreviewItems:o,collapseStringsAfterLength:s,quotesOnKeys:c,groupArraysAfterLength:l,showNonEnumerable:u,renderValue:d}),[a,o,s,c,l,u,d]);return(0,q.jsx)(_E.Provider,{value:h,children:(0,q.jsx)(gE,{ref:n,"aria-label":f,className:G(GE.root,r),"data-component":`JSONTreeView`,...p,children:m.map(e=>(0,q.jsx)(WE,{node:e,depth:1},e.id))})})}KE.displayName=`JSONTreeView`;var qE=K(KE);const JE=W(`label`,{variants:{size:{small:`label-small`,medium:`label-medium`,large:`label-large`},variant:{default:`label-default`,primary:`label-primary`,secondary:`label-secondary`,accent:`label-accent`,success:`label-success`,attention:`label-attention`,severe:`label-severe`,danger:`label-danger`,done:`label-done`,sponsors:`label-sponsors`}}});function YE(e,t){let{as:n=`span`,className:r,size:i=`small`,variant:a=`default`,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(JE({size:i,variant:a}),r),"data-component":`Label`,"data-size":i,"data-variant":a,...o})}YE.displayName=`Label`;var XE=K(YE);const ZE=()=>o(Tc).direction,QE=()=>ZE()===`rtl`;function $E({children:t,className:n,contextOnly:r,...i}){let a=ZE(),o=i.direction??a,s=e.useMemo(()=>({direction:o}),[o]);return r?(0,q.jsx)(Tc.Provider,{value:s,children:t}):(0,q.jsx)(Tc.Provider,{value:s,children:(0,q.jsx)(`div`,{className:n,"data-component":`DirectionProvider`,dir:o,children:t})})}$E.displayName=`DirectionProvider`;const eD=new Set,tD=(e,t)=>e.size===t.size&&[...e].every(e=>t.has(e)),nD=({containerRef:t,childCount:n,reservedWidth:r,disabled:i})=>{let[a,o]=e.useState(eD),s=QE();return e.useEffect(()=>{let e=t.current;if(!e||i)return;let n=new IntersectionObserver(e=>{o(t=>{let n=new Set(t);for(let t of e){let e=Number(t.target.getAttribute(`data-index`));t.intersectionRatio<1?n.add(e):n.delete(e)}return tD(t,n)?t:n})},{root:e,rootMargin:s?`0px 0px 0px ${-r}px`:`0px ${-r}px 0px 0px`,threshold:1});for(let t of e.querySelectorAll(`[data-index]`))n.observe(t);return()=>{n.disconnect()}},[t,n,r,i,s]),a},rD={item:`label-group-item`,hidden:`label-group-item-hidden`,toggle:`label-group-toggle`,overlay:`label-group-overlay`,overlayItems:`label-group-overlay-items`,overlayCloseButton:`label-group-overlay-close-button`,srOnly:`sr-only`},iD=W(`label-group`,{variants:{wrap:{true:`label-group-wrap`,false:``},list:{true:`label-group-list`,false:``}}}),aD=new Set;function oD(t,n){let{as:r=`ul`,className:i,children:a,overflowStyle:o=`overlay`,visibleChildCount:s,...c}=t,l=e.useRef(null),u=Gr(n,l),d=e.useRef(null),f=e.useRef(null),p=e.useRef(null),m=e.useRef(void 0),[h,g]=e.useState(!1),[_,v]=e.useState(0),y=e.useCallback(e=>{d.current=e},[]),b=e.Children.toArray(a),x=b.length,S=r===`ul`||r===`ol`,C=S?`li`:`span`,w=s!==void 0,T=h&&o===`inline`;Ur(()=>{let e=d.current;if(!e||s!==`auto`||T)return;let t=()=>v(e.getBoundingClientRect().width);t();let n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[s,T]);let E=nD({containerRef:l,childCount:x,reservedWidth:_,disabled:s!==`auto`||T}),D=e.useMemo(()=>{if(s===void 0||T)return aD;if(s===`auto`)return E;let e=Math.max(x-s,0);return new Set(Array.from({length:e},(e,t)=>s+t))},[s,T,E,x]),O=D.size;e.useEffect(()=>{O>0&&(m.current=Math.min(...D))},[D,O]);let k=e.useRef(h);e.useEffect(()=>{let e=k.current;if(k.current=h,o===`overlay`||e===h)return;if(!h){f.current?.focus();return}let t=l.current?.querySelector(`[data-index="${m.current}"]`);(ei(t??null)[0]??p.current)?.focus()},[h,o]);let A=()=>g(!0),j=()=>g(!1),M=()=>(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{className:rD.srOnly,children:[`Show +`,O,` more`]}),(0,q.jsxs)(`span`,{"aria-hidden":`true`,children:[`+`,O]})]}),N=()=>o===`inline`?h?(0,q.jsx)($i,{ref:p,size:`small`,variant:`invisible`,onClick:j,children:`Show less`}):O>0?(0,q.jsx)($i,{ref:f,size:`small`,variant:`invisible`,onClick:A,children:M()}):null:O>0?(0,q.jsx)(Za,{open:h,onOpen:A,onClose:j,side:`outside-bottom`,align:`end`,width:`auto`,height:`auto`,overlayProps:{role:`dialog`,"aria-modal":!0,"aria-label":`All ${x} labels`},renderAnchor:e=>(0,q.jsx)($i,{...e,size:`small`,variant:`invisible`,children:M()}),children:(0,q.jsxs)(`div`,{className:rD.overlay,children:[(0,q.jsx)(`div`,{className:rD.overlayItems,children:a}),(0,q.jsx)(na,{icon:Xn,"aria-label":`Close`,size:`small`,variant:`invisible`,onClick:j,className:rD.overlayCloseButton,"data-component":`LabelGroup.CloseButton`})]})}):null,P=!w||T;return(0,q.jsxs)(r,{ref:u,className:G(iD({wrap:P,list:S}),i),"data-component":`LabelGroup`,"data-overflow":P?`inline`:void 0,"data-list":S||void 0,...c,children:[b.map((e,t)=>(0,q.jsx)(C,{"data-index":t,"data-hidden":D.has(t)?``:void 0,className:G(rD.item,D.has(t)&&rD.hidden),children:e},t)),w?(0,q.jsx)(C,{ref:y,className:rD.toggle,"data-component":`LabelGroup.Toggle`,children:N()}):null]})}oD.displayName=`LabelGroup`;var sD=K(oD);const cD={root:`layer-card-primary`};function lD(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(cD.root,r),"data-component":`LayerCard.Primary`,...i})}lD.displayName=`LayerCard.Primary`;var uD=K(lD);const dD={root:`layer-card-secondary`};function fD(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(dD.root,r),"data-component":`LayerCard.Secondary`,...i})}fD.displayName=`LayerCard.Secondary`;var pD=K(fD);const mD={surface:`layer-card`,layered:`layer-card-layered`},hD=t=>e.Children.toArray(t).some(t=>{if(!e.isValidElement(t))return!1;if(t.type===uD||t.type===pD)return!0;if(t.type===e.Fragment){let{children:e}=t.props;return hD(e)}return!1});function gD(e,t){let{as:n=`div`,className:r,children:i,...a}=e,o=hD(i);return(0,q.jsx)(n,{ref:t,className:G(o?mD.layered:mD.surface,r),"data-component":`LayerCard`,"data-layered":o?``:void 0,...a,children:i})}gD.displayName=`LayerCard`;var _D=K(gD);const vD=Object.assign(_D,{Secondary:pD,Primary:uD});function yD(e,t){let{as:n=`a`,...r}=e;return(0,q.jsx)(Zi,{ref:t,as:n,"data-component":`LinkButton`,...r})}yD.displayName=`LinkButton`;var bD=K(yD);const xD=W(`list`,{variants:{variant:{bullet:`list-bullet`,number:`list-number`,plain:`list-plain`},spacing:{condensed:`list-condensed`,normal:`list-normal`,spacious:`list-spacious`}}});function SD(e,t){let{as:n,className:r,variant:i=`bullet`,spacing:a=`normal`,...o}=e;return(0,q.jsx)(n??(i===`number`?`ol`:`ul`),{ref:t,role:i===`plain`?`list`:void 0,className:G(xD({variant:i,spacing:a}),r),"data-component":`List`,"data-variant":i,"data-spacing":a,...o})}SD.displayName=`List`;var CD=K(SD);const wD={root:`list-item`};function TD(e,t){let{as:n=`li`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(wD.root,r),"data-component":`List.Item`,...i})}TD.displayName=`List.Item`;var ED=K(TD);const DD=Object.assign(CD,{Item:ED});var OD={ADD:`add`,REMOVE:`remove`},kD={PROPERTYCHANGE:`propertychange`};function AD(e){for(let t in e)delete e[t]}function jD(e){let t;for(t in e)return!1;return!t}function MD(e,t,n,r,i){if(i){let i=n;n=function(a){return e.removeEventListener(t,n),i.call(r??this,a)}}else r&&r!==e&&(n=n.bind(r));let a={target:e,type:t,listener:n};return e.addEventListener(t,n),a}function ND(e,t,n,r){return MD(e,t,n,r,!0)}function PD(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),AD(e))}var FD={CHANGE:`change`,ERROR:`error`,BLUR:`blur`,CLEAR:`clear`,CONTEXTMENU:`contextmenu`,CLICK:`click`,DBLCLICK:`dblclick`,DRAGENTER:`dragenter`,DRAGOVER:`dragover`,DROP:`drop`,FOCUS:`focus`,KEYDOWN:`keydown`,KEYPRESS:`keypress`,LOAD:`load`,RESIZE:`resize`,TOUCHMOVE:`touchmove`,WHEEL:`wheel`},ID=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}};function LD(e,t,n){let r,i;n||=RD;let a=0,o=e.length,s=!1;for(;a<o;)r=a+(o-a>>1),i=+n(e[r],t),i<0?a=r+1:(o=r,s=!i);return s?a:~a}function RD(e,t){return e>t?1:e<t?-1:0}function zD(e,t){return e<t?1:e>t?-1:0}function BD(e,t,n){if(e[0]<=t)return 0;let r=e.length;if(t<=e[r-1])return r-1;if(typeof n==`function`){for(let i=1;i<r;++i){let r=e[i];if(r===t)return i;if(r<t)return n(t,e[i-1],r)>0?i-1:i}return r-1}if(n>0){for(let n=1;n<r;++n)if(e[n]<t)return n-1;return r-1}if(n<0){for(let n=1;n<r;++n)if(e[n]<=t)return n;return r-1}for(let n=1;n<r;++n){if(e[n]==t)return n;if(e[n]<t)return e[n-1]-t<t-e[n]?n-1:n}return r-1}function VD(e,t,n){for(;t<n;){let r=e[t];e[t]=e[n],e[n]=r,++t,--n}}function HD(e,t){let n=Array.isArray(t)?t:[t],r=n.length;for(let t=0;t<r;t++)e[e.length]=n[t]}function UD(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function WD(e,t,n){let r=t||RD;return e.every(function(t,i){if(i===0)return!0;let a=r(e[i-1],t);return!(a>0||n&&a===0)})}function GD(){return!0}function KD(){return!1}function qD(){}function JD(e){let t,n,r;return function(){let i=Array.prototype.slice.call(arguments);return(!n||this!==r||!UD(i,n))&&(r=this,n=i,t=e.apply(this,arguments)),t}}function YD(e){function t(){let t;try{t=e()}catch(e){return Promise.reject(e)}return t instanceof Promise?t:Promise.resolve(t)}return t()}var XD=class{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}},ZD=class extends ID{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,t){if(!e||!t)return;let n=this.listeners_||={},r=n[e]||(n[e]=[]);r.includes(t)||r.push(t)}dispatchEvent(e){let t=typeof e==`string`,n=t?e:e.type,r=this.listeners_&&this.listeners_[n];if(!r)return;let i=t?new XD(e):e;i.target||=this.eventTarget_||this;let a=this.dispatching_||={},o=this.pendingRemovals_||={};n in a||(a[n]=0,o[n]=0),++a[n];let s;for(let e=0,t=r.length;e<t;++e)if(s=`handleEvent`in r[e]?r[e].handleEvent(i):r[e].call(this,i),s===!1||i.propagationStopped){s=!1;break}if(--a[n]===0){let e=o[n];for(delete o[n];e--;)this.removeEventListener(n,qD);delete a[n]}return s}disposeInternal(){this.listeners_&&AD(this.listeners_)}getListeners(e){return this.listeners_&&this.listeners_[e]||void 0}hasListener(e){return this.listeners_?e?e in this.listeners_:Object.keys(this.listeners_).length>0:!1}removeEventListener(e,t){if(!this.listeners_)return;let n=this.listeners_[e];if(!n)return;let r=n.indexOf(t);r!==-1&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=qD,++this.pendingRemovals_[e]):(n.splice(r,1),n.length===0&&delete this.listeners_[e]))}},QD=class extends ZD{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(FD.CHANGE)}getRevision(){return this.revision_}onInternal(e,t){if(Array.isArray(e)){let n=e.length,r=Array(n);for(let i=0;i<n;++i)r[i]=MD(this,e[i],t);return r}return MD(this,e,t)}onceInternal(e,t){let n;if(Array.isArray(e)){let r=e.length;n=Array(r);for(let i=0;i<r;++i)n[i]=ND(this,e[i],t)}else n=ND(this,e,t);return t.ol_key=n,n}unInternal(e,t){let n=t.ol_key;if(n)$D(n);else if(Array.isArray(e))for(let n=0,r=e.length;n<r;++n)this.removeEventListener(e[n],t);else this.removeEventListener(e,t)}};QD.prototype.on,QD.prototype.once,QD.prototype.un;function $D(e){if(Array.isArray(e))for(let t=0,n=e.length;t<n;++t)PD(e[t]);else PD(e)}function eO(){throw Error(`Unimplemented abstract method.`)}let tO=0;function X(e){return e.ol_uid||=String(++tO)}var nO=class extends XD{constructor(e,t,n){super(e),this.key=t,this.oldValue=n}},rO=class extends QD{constructor(e){super(),this.on,this.once,this.un,X(this),this.values_=null,e!==void 0&&this.setProperties(e)}get(e){let t;return this.values_&&this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(e,t){let n;n=`change:${e}`,this.hasListener(n)&&this.dispatchEvent(new nO(n,e,t)),n=kD.PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new nO(n,e,t))}addChangeListener(e,t){this.addEventListener(`change:${e}`,t)}removeChangeListener(e,t){this.removeEventListener(`change:${e}`,t)}set(e,t,n){let r=this.values_||={};if(n)r[e]=t;else{let n=r[e];r[e]=t,n!==t&&this.notify(e,n)}}setProperties(e,t){for(let n in e)this.set(n,e[n],t)}applyProperties(e){e.values_&&Object.assign(this.values_||={},e.values_)}unset(e,t){if(this.values_&&e in this.values_){let n=this.values_[e];delete this.values_[e],jD(this.values_)&&(this.values_=null),t||this.notify(e,n)}}};const iO={LENGTH:`length`};var aO=class extends XD{constructor(e,t,n){super(e),this.element=t,this.index=n}},oO=class extends rO{constructor(e,t){if(super(),this.on,this.once,this.un,t||={},this.unique_=!!t.unique,this.array_=e??[],this.unique_)for(let e=1,t=this.array_.length;e<t;++e)this.assertUnique_(this.array_[e],e);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(e){for(let t=0,n=e.length;t<n;++t)this.push(e[t]);return this}forEach(e){let t=this.array_;for(let n=0,r=t.length;n<r;++n)e(t[n],n,t)}getArray(){return this.array_}item(e){return this.array_[e]}getLength(){return this.get(iO.LENGTH)}insertAt(e,t){if(e<0||e>this.getLength())throw Error(`Index out of bounds: `+e);this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new aO(OD.ADD,t,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){let t=this.getLength();return this.insertAt(t,e),this.getLength()}remove(e){let t=this.array_;for(let n=0,r=t.length;n<r;++n)if(t[n]===e)return this.removeAt(n)}removeAt(e){if(e<0||e>=this.getLength())return;let t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new aO(OD.REMOVE,t,e)),t}setAt(e,t){if(e>=this.getLength()){this.insertAt(e,t);return}if(e<0)throw Error(`Index out of bounds: `+e);this.unique_&&this.assertUnique_(t,e);let n=this.array_[e];this.array_[e]=t,this.dispatchEvent(new aO(OD.REMOVE,n,e)),this.dispatchEvent(new aO(OD.ADD,t,e))}updateLength_(){this.set(iO.LENGTH,this.array_.length)}assertUnique_(e,t){let n=this.array_;for(let r=0,i=n.length;r<i;++r)if(n[r]===e&&r!==t)throw Error(`Duplicate item added to a unique collection`)}};function sO(e,t){if(!e)throw Error(t)}var cO=class e extends rO{constructor(e){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_=`geometry`,this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),e){if(typeof e.getSimplifiedGeometry==`function`){let t=e;this.setGeometry(t)}else{let t=e;this.setProperties(t)}}}clone(){let t=new e,n=this.geometryName_;t.setGeometryName(n);let r=this.getPropertiesInternal();if(r){let e=this.getGeometry();for(let i in r)i===n&&e?t.set(i,e.clone()):t.set(i,r[i],!0)}let i=this.getStyle();return i&&t.setStyle(i),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&=(PD(this.geometryChangeKey_),null);let e=this.getGeometry();e&&(this.geometryChangeKey_=MD(e,FD.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(e){this.set(this.geometryName_,e)}setStyle(e){this.style_=e,this.styleFunction_=e?lO(e):void 0,this.changed()}setId(e){this.id_=e,this.changed()}setGeometryName(e){e!==this.geometryName_&&(this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_())}};function lO(e){if(typeof e==`function`)return e;let t;return Array.isArray(e)?t=e:(sO(typeof e.getZIndex==`function`,"Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),t=[e]),function(){return t}}var uO={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function dO(e){let t=bO();for(let n=0,r=e.length;n<r;++n)OO(t,e[n]);return t}function fO(e,t,n){return xO(Math.min.apply(null,e),Math.min.apply(null,t),Math.max.apply(null,e),Math.max.apply(null,t),n)}function pO(e,t,n){return n?(n[0]=e[0]-t,n[1]=e[1]-t,n[2]=e[2]+t,n[3]=e[3]+t,n):[e[0]-t,e[1]-t,e[2]+t,e[3]+t]}function mO(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e.slice()}function hO(e,t,n){let r,i;return r=t<e[0]?e[0]-t:e[2]<t?t-e[2]:0,i=n<e[1]?e[1]-n:e[3]<n?n-e[3]:0,r*r+i*i}function gO(e,t){return vO(e,t[0],t[1])}function _O(e,t){return e[0]<=t[0]&&t[2]<=e[2]&&e[1]<=t[1]&&t[3]<=e[3]}function vO(e,t,n){return e[0]<=t&&t<=e[2]&&e[1]<=n&&n<=e[3]}function yO(e,t){let n=e[0],r=e[1],i=e[2],a=e[3],o=t[0],s=t[1],c=uO.UNKNOWN;return o<n?c|=uO.LEFT:o>i&&(c|=uO.RIGHT),s<r?c|=uO.BELOW:s>a&&(c|=uO.ABOVE),c===uO.UNKNOWN&&(c=uO.INTERSECTING),c}function bO(){return[1/0,1/0,-1/0,-1/0]}function xO(e,t,n,r,i){return i?(i[0]=e,i[1]=t,i[2]=n,i[3]=r,i):[e,t,n,r]}function SO(e){return xO(1/0,1/0,-1/0,-1/0,e)}function CO(e,t){let n=e[0],r=e[1];return xO(n,r,n,r,t)}function wO(e,t,n,r,i){return kO(SO(i),e,t,n,r)}function TO(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function EO(e,t,n){return Math.abs(e[0]-t[0])<n&&Math.abs(e[2]-t[2])<n&&Math.abs(e[1]-t[1])<n&&Math.abs(e[3]-t[3])<n}function DO(e,t){return t[0]<e[0]&&(e[0]=t[0]),t[2]>e[2]&&(e[2]=t[2]),t[1]<e[1]&&(e[1]=t[1]),t[3]>e[3]&&(e[3]=t[3]),e}function OO(e,t){t[0]<e[0]&&(e[0]=t[0]),t[0]>e[2]&&(e[2]=t[0]),t[1]<e[1]&&(e[1]=t[1]),t[1]>e[3]&&(e[3]=t[1])}function kO(e,t,n,r,i){for(;n<r;n+=i)AO(e,t[n],t[n+1]);return e}function AO(e,t,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],n)}function jO(e,t){let n;return n=t(NO(e)),n||(n=t(PO(e)),n)||(n=t(UO(e)),n)||(n=t(HO(e)),n)?n:!1}function MO(e){let t=0;return KO(e)||(t=WO(e)*zO(e)),t}function NO(e){return[e[0],e[1]]}function PO(e){return[e[2],e[1]]}function FO(e){return[(e[0]+e[2])/2,(e[1]+e[3])/2]}function IO(e,t){let n;if(t===`bottom-left`)n=NO(e);else if(t===`bottom-right`)n=PO(e);else if(t===`top-left`)n=HO(e);else if(t===`top-right`)n=UO(e);else throw Error(`Invalid corner`);return n}function LO(e,t,n,r,i){let[a,o,s,c,l,u,d,f]=RO(e,t,n,r);return xO(Math.min(a,s,l,d),Math.min(o,c,u,f),Math.max(a,s,l,d),Math.max(o,c,u,f),i)}function RO(e,t,n,r){let i=t*r[0]/2,a=t*r[1]/2,o=Math.cos(n),s=Math.sin(n),c=i*o,l=i*s,u=a*o,d=a*s,f=e[0],p=e[1];return[f-c+d,p-l-u,f-c-d,p-l+u,f+c-d,p+l+u,f+c+d,p+l-u,f-c+d,p-l-u]}function zO(e){return e[3]-e[1]}function BO(e,t,n){let r=n||bO();return GO(e,t)?(r[0]=e[0]>t[0]?e[0]:t[0],r[1]=e[1]>t[1]?e[1]:t[1],r[2]=e[2]<t[2]?e[2]:t[2],r[3]=e[3]<t[3]?e[3]:t[3]):SO(r),r}function VO(e,t){if(!GO(e,t))return[e.slice()];if(_O(t,e))return[];let[n,r,i,a]=e,o=Math.max(n,t[0]),s=Math.max(r,t[1]),c=Math.min(i,t[2]),l=Math.min(a,t[3]),u=[];return o>n&&u.push([n,r,o,a]),c<i&&u.push([c,r,i,a]),s>r&&u.push([o,r,c,s]),l<a&&u.push([o,l,c,a]),u}function HO(e){return[e[0],e[3]]}function UO(e){return[e[2],e[3]]}function WO(e){return e[2]-e[0]}function GO(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function KO(e){return e[2]<e[0]||e[3]<e[1]}function qO(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}function JO(e,t){let n=(e[2]-e[0])/2*(t-1),r=(e[3]-e[1])/2*(t-1);e[0]-=n,e[2]+=n,e[1]-=r,e[3]+=r}function YO(e,t,n){let r=!1,i=yO(e,t),a=yO(e,n);if(i===uO.INTERSECTING||a===uO.INTERSECTING)r=!0;else{let o=e[0],s=e[1],c=e[2],l=e[3],u=t[0],d=t[1],f=n[0],p=n[1],m=(p-d)/(f-u),h,g;a&uO.ABOVE&&!(i&uO.ABOVE)&&(h=f-(p-l)/m,r=h>=o&&h<=c),!r&&a&uO.RIGHT&&!(i&uO.RIGHT)&&(g=p-(f-c)*m,r=g>=s&&g<=l),!r&&a&uO.BELOW&&!(i&uO.BELOW)&&(h=f-(p-s)/m,r=h>=o&&h<=c),!r&&a&uO.LEFT&&!(i&uO.LEFT)&&(g=p-(f-o)*m,r=g>=s&&g<=l)}return r}function XO(e,t,n,r){if(KO(e))return SO(n);let i=[];if(r>1){let t=e[2]-e[0],n=e[3]-e[1];for(let a=0;a<r;++a)i.push(e[0]+t*a/r,e[1],e[2],e[1]+n*a/r,e[2]-t*a/r,e[3],e[0],e[3]-n*a/r)}else i=[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]];t(i,i,2);let a=[],o=[];for(let e=0,t=i.length;e<t;e+=2)a.push(i[e]),o.push(i[e+1]);return fO(a,o,n)}function ZO(e,t){let n=t.getExtent(),r=FO(e);if(t.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){let t=WO(n),i=Math.floor((r[0]-n[0])/t)*t;e[0]-=i,e[2]-=i}return e}function QO(e,t,n){if(t.canWrapX()){let r=t.getExtent();if(!isFinite(e[0])||!isFinite(e[2]))return[[r[0],e[1],r[2],e[3]]];ZO(e,t);let i=WO(r);if(WO(e)>i&&!n)return[[r[0],e[1],r[2],e[3]]];if(e[0]<r[0])return[[e[0]+i,e[1],r[2],e[3]],[r[0],e[1],e[2],e[3]]];if(e[2]>r[2])return[[e[0],e[1],r[2],e[3]],[r[0],e[1],e[2]-i,e[3]]]}return[e]}function $O(e,t){let n=[e];for(let e=0,r=t.length;e<r&&n.length>0;++e){let r=[];for(let i=0,a=n.length;i<a;++i)r.push(...VO(n[i],t[e]));n=r}return n}function ek(e,t,n){return Math.min(Math.max(e,t),n)}function tk(e,t,n,r,i,a){let o=i-n,s=a-r;if(o!==0||s!==0){let c=((e-n)*o+(t-r)*s)/(o*o+s*s);c>1?(n=i,r=a):c>0&&(n+=o*c,r+=s*c)}return nk(e,t,n,r)}function nk(e,t,n,r){let i=n-e,a=r-t;return i*i+a*a}function rk(e){let t=e.length;for(let n=0;n<t;n++){let r=n,i=Math.abs(e[n][n]);for(let a=n+1;a<t;a++){let t=Math.abs(e[a][n]);t>i&&(i=t,r=a)}if(i===0)return null;let a=e[r];e[r]=e[n],e[n]=a;for(let r=n+1;r<t;r++){let i=-e[r][n]/e[n][n];for(let a=n;a<t+1;a++)n==a?e[r][a]=0:e[r][a]+=i*e[n][a]}}let n=Array(t);for(let r=t-1;r>=0;r--){n[r]=e[r][t]/e[r][r];for(let i=r-1;i>=0;i--)e[i][t]-=e[i][r]*n[r]}return n}function ik(e){return e*180/Math.PI}function ak(e){return e*Math.PI/180}function ok(e,t){let n=e%t;return n*t<0?n+t:n}function sk(e,t,n){return e+n*(t-e)}function ck(e,t){let n=10**t;return Math.round(e*n)/n}function lk(e,t){return Math.floor(ck(e,t))}function uk(e,t){return Math.ceil(ck(e,t))}function dk(e,t,n){if(e>=t&&e<n)return e;let r=n-t;return((e-t)%r+r)%r+t}function fk(e,t,n){n||=6371008.8;let r=ak(e[1]),i=ak(t[1]),a=(i-r)/2,o=ak(t[0]-e[0])/2,s=Math.sin(a)*Math.sin(a)+Math.sin(o)*Math.sin(o)*Math.cos(r)*Math.cos(i);return 2*n*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))}function pk(e,t){let n=0;for(let r=0,i=e.length;r<i-1;++r)n+=fk(e[r],e[r+1],t);return n}function mk(e,t){t||={};let n=t.radius||6371008.8,r=t.projection||`EPSG:3857`,i=e.getType();i!==`GeometryCollection`&&(e=e.clone().transform(r,`EPSG:4326`));let a=0,o,s,c,l,u,d;switch(i){case`Point`:case`MultiPoint`:break;case`LineString`:case`LinearRing`:o=e.getCoordinates(),a=pk(o,n);break;case`MultiLineString`:case`Polygon`:for(o=e.getCoordinates(),c=0,l=o.length;c<l;++c)a+=pk(o[c],n);break;case`MultiPolygon`:for(o=e.getCoordinates(),c=0,l=o.length;c<l;++c)for(s=o[c],u=0,d=s.length;u<d;++u)a+=pk(s[u],n);break;case`GeometryCollection`:{let n=e.getGeometries();for(c=0,l=n.length;c<l;++c)a+=mk(n[c],t);break}default:throw Error(`Unsupported geometry type: `+i)}return a}function hk(e,t){let n=0,r=e.length,i=e[r-1][0],a=e[r-1][1];for(let t=0;t<r;t++){let r=e[t][0],o=e[t][1];n+=ak(r-i)*(2+Math.sin(ak(a))+Math.sin(ak(o))),i=r,a=o}return n*t*t/2}function gk(e,t){t||={};let n=t.radius||6371008.8,r=t.projection||`EPSG:3857`,i=e.getType();i!==`GeometryCollection`&&(e=e.clone().transform(r,`EPSG:4326`));let a=0,o,s,c,l,u,d;switch(i){case`Point`:case`MultiPoint`:case`LineString`:case`MultiLineString`:case`LinearRing`:break;case`Polygon`:for(o=e.getCoordinates(),a=Math.abs(hk(o[0],n)),c=1,l=o.length;c<l;++c)a-=Math.abs(hk(o[c],n));break;case`MultiPolygon`:for(o=e.getCoordinates(),c=0,l=o.length;c<l;++c)for(s=o[c],a+=Math.abs(hk(s[0],n)),u=1,d=s.length;u<d;++u)a-=Math.abs(hk(s[u],n));break;case`GeometryCollection`:{let n=e.getGeometries();for(c=0,l=n.length;c<l;++c)a+=gk(n[c],t);break}default:throw Error(`Unsupported geometry type: `+i)}return a}const _k={info:1,warn:2,error:3,none:4};let vk=_k.info;function yk(...e){vk>_k.warn||console.warn(...e)}function bk(e,t,n){let r=n===void 0?``+e:e.toFixed(n),i=r.indexOf(`.`);return i=i===-1?r.length:i,i>t?r:Array(1+t-i).join(`0`)+r}function xk(e,t){return e[0]+=+t[0],e[1]+=+t[1],e}function Sk(e,t){let n=t.getRadius(),r=t.getCenter(),i=r[0],a=r[1],o=e[0],s=e[1],c=o-i,l=s-a;c===0&&l===0&&(c=1);let u=Math.sqrt(c*c+l*l);return[i+n*c/u,a+n*l/u]}function Ck(e,t){let n=e[0],r=e[1],i=t[0],a=t[1],o=i[0],s=i[1],c=a[0],l=a[1],u=c-o,d=l-s,f=u===0&&d===0?0:(u*(n-o)+d*(r-s))/(u*u+d*d||0),p,m;return f<=0?(p=o,m=s):f>=1?(p=c,m=l):(p=o+f*u,m=s+f*d),[p,m]}function wk(e,t,n){let r=ok(t+180,360)-180,i=Math.abs(3600*r),a=n||0,o=Math.floor(i/3600),s=Math.floor((i-o*3600)/60),c=ck(i-o*3600-s*60,a);c>=60&&(c=0,s+=1),s>=60&&(s=0,o+=1);let l=o+`°`;return(s!==0||c!==0)&&(l+=` `+bk(s,2)+`′`),c!==0&&(l+=` `+bk(c,2,a)+`″`),r!==0&&(l+=` `+e.charAt(+(r<0))),l}function Tk(e,t){let n=!0;for(let r=e.length-1;r>=0;--r)if(e[r]!=t[r]){n=!1;break}return n}function Ek(e,t){let n=Math.cos(t),r=Math.sin(t),i=e[0]*n-e[1]*r,a=e[1]*n+e[0]*r;return e[0]=i,e[1]=a,e}function Dk(e,t){return e[0]*=t,e[1]*=t,e}function Ok(e,t){let n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function kk(e,t){return Math.sqrt(Ok(e,t))}function Ak(e,t){return Ok(e,Ck(e,t))}function jk(e,t){if(t.canWrapX()){let n=WO(t.getExtent()),r=Mk(e,t,n);r&&(e[0]-=r*n)}return e}function Mk(e,t,n){let r=t.getExtent(),i=0;return t.canWrapX()&&(e[0]<r[0]||e[0]>r[2])&&(n||=WO(r),i=Math.floor((e[0]-r[0])/n)),i}function Nk(e,t,n){let r=Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])),i=[(t[0]-e[0])/r,(t[1]-e[1])/r],a=[-i[1],i[0]],o=Math.sqrt((n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1])),s=[(n[0]-e[0])/o,(n[1]-e[1])/o],c=r===0||o===0?0:Math.acos(ek(s[0]*i[0]+s[1]*i[1],-1,1));return c=Math.max(c,1e-5),s[0]*a[0]+s[1]*a[1]>0?c:Math.PI*2-c}const Pk={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};var Fk=class{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent===void 0?null:e.extent,this.worldExtent_=e.worldExtent===void 0?null:e.worldExtent,this.axisOrientation_=e.axisOrientation===void 0?`enu`:e.axisOrientation,this.global_=e.global!==void 0&&e.global,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Pk[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}};const Ik=6378137,Lk=Math.PI*Ik,Rk=[-Lk,-Lk,Lk,Lk],zk=[-180,-85,180,85],Bk=Ik*Math.log(Math.tan(Math.PI/2));var Vk=class extends Fk{constructor(e){super({code:e,units:`m`,extent:Rk,global:!0,worldExtent:zk,getPointResolution:function(e,t){return e/Math.cosh(t[1]/Ik)}})}};const Hk=[new Vk(`EPSG:3857`),new Vk(`EPSG:102100`),new Vk(`EPSG:102113`),new Vk(`EPSG:900913`),new Vk(`http://www.opengis.net/def/crs/EPSG/0/3857`),new Vk(`http://www.opengis.net/gml/srs/epsg.xml#3857`)];function Uk(e,t,n,r){let i=e.length;n=n>1?n:2,r??=n,t===void 0&&(t=n>2?e.slice():Array(i));for(let n=0;n<i;n+=r){t[n]=Lk*e[n]/180;let r=Ik*Math.log(Math.tan(Math.PI*(+e[n+1]+90)/360));r>Bk?r=Bk:r<-Bk&&(r=-Bk),t[n+1]=r}return t}function Wk(e,t,n,r){let i=e.length;n=n>1?n:2,r??=n,t===void 0&&(t=n>2?e.slice():Array(i));for(let n=0;n<i;n+=r)t[n]=180*e[n]/Lk,t[n+1]=360*Math.atan(Math.exp(e[n+1]/Ik))/Math.PI-90;return t}const Gk=[-180,-90,180,90],Kk=Math.PI*6378137/180;var qk=class extends Fk{constructor(e,t){super({code:e,units:`degrees`,extent:Gk,axisOrientation:t,global:!0,metersPerUnit:Kk,worldExtent:Gk})}};const Jk=[new qk(`CRS:84`),new qk(`EPSG:4326`,`neu`),new qk(`urn:ogc:def:crs:OGC:1.3:CRS84`),new qk(`urn:ogc:def:crs:OGC:2:84`),new qk(`http://www.opengis.net/def/crs/OGC/1.3/CRS84`),new qk(`http://www.opengis.net/gml/srs/epsg.xml#4326`,`neu`),new qk(`http://www.opengis.net/def/crs/EPSG/0/4326`,`neu`)];let Yk={};function Xk(e){return Yk[e]||Yk[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,`EPSG:$3`)]||null}function Zk(e,t){Yk[e]=t}let Qk={};function $k(e,t,n){let r=e.getCode(),i=t.getCode();r in Qk||(Qk[r]={}),Qk[r][i]=n}function eA(e,t){return e in Qk&&t in Qk[e]?Qk[e][t]:null}const tA=.9996,nA=.00669438,rA=nA/.99330562,iA=Math.sqrt(.99330562),aA=(1-iA)/(1+iA),oA=aA*aA,sA=oA*aA,cA=sA*aA,lA=cA*aA,uA=1-nA/4-.0001344441707532/64-15000339463446782e-22/256,dA=3/2*aA-27/32*sA+269/512*lA,fA=21/16*oA-55/32*cA,pA=151/96*sA-417/128*lA,mA=1097/512*cA,hA=6378137;function gA(e,t,n){let r=e-5e5,i=(n.north?t:t-1e7)/tA/(hA*uA),a=i+dA*Math.sin(2*i)+fA*Math.sin(4*i)+pA*Math.sin(6*i)+mA*Math.sin(8*i),o=Math.sin(a),s=o*o,c=Math.cos(a),l=o/c,u=l*l,d=u*u,f=1-nA*s,p=Math.sqrt(1-nA*s),m=hA/p,h=.99330562/f,g=rA*c**2,_=g*g,v=r/(m*tA),y=v*v,b=y*v,x=b*v,S=x*v,C=S*v,w=a-l/h*(y/2-x/24*(5+3*u+10*g-4*_-9*rA))+C/720*(61+90*u+298*g+45*d-252*rA-3*_),T=(v-b/6*(1+2*u+g)+S/120*(5-2*g+28*u-3*_+8*rA+24*d))/c;return T=dk(T+ak(vA(n.number)),-Math.PI,Math.PI),[ik(T),ik(w)]}function _A(e,t,n){e=dk(e,-180,180),t<-80?t=-80:t>84&&(t=84);let r=ak(t),i=Math.sin(r),a=Math.cos(r),o=i/a,s=o*o,c=s*s,l=ak(e),u=ak(vA(n.number)),d=hA/Math.sqrt(1-nA*i**2),f=rA*a**2,p=a*dk(l-u,-Math.PI,Math.PI),m=p*p,h=m*p,g=h*p,_=g*p,v=_*p,y=hA*(uA*r-.002514607064228144*Math.sin(2*r)+26390466021299826e-22*Math.sin(4*r)-3.418046101696858e-9*Math.sin(6*r)),b=tA*d*(p+h/6*(1-s+f)+_/120*(5-18*s+c+72*f-58*rA))+5e5,x=tA*(y+d*o*(m/2+g/24*(5-s+9*f+4*f**2)+v/720*(61-58*s+c+600*f-330*rA)));return n.north||(x+=1e7),[b,x]}function vA(e){return(e-1)*6-180+3}const yA=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function bA(e){let t=0;for(let n of yA){let r=e.match(n);if(r){t=parseInt(r[1]);break}}if(!t)return null;let n=0,r=!1;return t>32700&&t<32761?n=t-32700:t>32600&&t<32661&&(r=!0,n=t-32600),n?{number:n,north:r}:null}function xA(e,t){return function(n,r,i,a){let o=n.length;i=i>1?i:2,a??=i,r||=i>2?n.slice():Array(o);for(let i=0;i<o;i+=a){let a=n[i],o=n[i+1],s=e(a,o,t);r[i]=s[0],r[i+1]=s[1]}return r}}function SA(e){return bA(e)?new Fk({code:e,units:`m`}):null}function CA(e){let t=bA(e.getCode());return t?{forward:xA(_A,t),inverse:xA(gA,t)}:null}const wA=[CA],TA=[SA];let EA=!0;function DA(e){EA=!(e===void 0||e)}function OA(e,t){if(t!==void 0){for(let n=0,r=e.length;n<r;++n)t[n]=e[n];t=t}else t=e.slice();return t}function kA(e,t){if(t!==void 0&&e!==t){for(let n=0,r=e.length;n<r;++n)t[n]=e[n];e=t}return e}function AA(e){Zk(e.getCode(),e),$k(e,e,OA)}function jA(e){e.forEach(AA)}function MA(e){if(typeof e!=`string`)return e;let t=Xk(e);if(t)return t;for(let t of TA){let n=t(e);if(n)return n}return null}function NA(e,t,n,r){e=MA(e);let i,a=e.getPointResolutionFunc();if(a){if(i=a(t,n),r&&r!==e.getUnits()){let t=e.getMetersPerUnit();t&&(i=i*t/Pk[r])}}else{let a=e.getUnits();if(a==`degrees`&&!r||r==`degrees`)i=t;else{let o=VA(e,MA(`EPSG:4326`));if(!o&&a!==`degrees`)i=t*e.getMetersPerUnit();else{let e=[n[0]-t/2,n[1],n[0]+t/2,n[1],n[0],n[1]-t/2,n[0],n[1]+t/2];e=o(e,e,2),i=(fk(e.slice(0,2),e.slice(2,4))+fk(e.slice(4,6),e.slice(6,8)))/2}let s=r?Pk[r]:e.getMetersPerUnit();s!==void 0&&(i/=s)}}return i}function PA(e){jA(e),e.forEach(function(t){e.forEach(function(e){t!==e&&$k(t,e,OA)})})}function FA(e,t,n,r){e.forEach(function(e){t.forEach(function(t){$k(e,t,n),$k(t,e,r)})})}function IA(e,t){return e?typeof e==`string`?MA(e):e:MA(t)}function LA(e){return(function(t,n,r,i){let a=t.length;r=r===void 0?2:r,i??=r,n=n===void 0?Array(a):n;for(let o=0;o<a;o+=i){let a=e(t.slice(o,o+r)),s=a.length;for(let e=0,r=i;e<r;++e)n[o+e]=e>=s?t[o+e]:a[e]}return n})}function RA(e,t){return DA(),WA(e,`EPSG:4326`,t===void 0?`EPSG:3857`:t)}function zA(e,t){let n=WA(e,t===void 0?`EPSG:3857`:t,`EPSG:4326`),r=n[0];return(r<-180||r>180)&&(n[0]=ok(r+180,360)-180),n}function BA(e,t){if(e===t)return!0;let n=e.getUnits()===t.getUnits();return(e.getCode()===t.getCode()||VA(e,t)===OA)&&n}function VA(e,t){let n=e.getCode(),r=t.getCode(),i=eA(n,r);if(i)return i;let a=null,o=null;for(let n of wA)a||=n(e),o||=n(t);if(!a&&!o)return null;let s=`EPSG:4326`;if(!o){let e=eA(s,r);e&&(i=HA(a.inverse,e))}else if(a)i=HA(a.inverse,o.forward);else{let e=eA(n,s);e&&(i=HA(e,o.forward))}return i&&(AA(e),AA(t),$k(e,t,i)),i}function HA(e,t){return function(n,r,i,a){return r=e(n,r,i,a),t(r,r,i,a)}}function UA(e,t){return VA(MA(e),MA(t))}function WA(e,t,n){let r=UA(t,n);if(!r){let e=MA(t).getCode(),r=MA(n).getCode();throw Error(`No transform available between ${e} and ${r}`)}return r(e,void 0,e.length)}function GA(){return null}function KA(e,t){return e}function qA(e,t){return EA&&!Tk(e,[0,0])&&e[0]>=-180&&e[0]<=180&&e[1]>=-90&&e[1]<=90&&(EA=!1,yk(`Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.`)),e}function JA(e,t){return e}function YA(e,t){return e}function XA(e,t){return e}function ZA(){PA(Hk),PA(Jk),FA(Jk,Hk,Uk,Wk)}ZA();const QA=[1,0,0,1,0,0],$A=[,,,,,,];function ej(){return QA.slice(0)}function tj(e){return rj(e,1,0,0,1,0,0)}function nj(e,t){let n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=t[0],l=t[1],u=t[2],d=t[3],f=t[4],p=t[5];return e[0]=n*c+i*l,e[1]=r*c+a*l,e[2]=n*u+i*d,e[3]=r*u+a*d,e[4]=n*f+i*p+o,e[5]=r*f+a*p+s,e}function rj(e,t,n,r,i,a,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=a,e[5]=o,e}function ij(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function aj(e,t){let n=t[0],r=t[1];return t[0]=e[0]*n+e[2]*r+e[4],t[1]=e[1]*n+e[3]*r+e[5],t}function oj(e,t){let n=Math.cos(t),r=Math.sin(t);return nj(e,rj($A,n,r,-r,n,0,0))}function sj(e,t,n){return nj(e,rj($A,t,0,0,n,0,0))}function cj(e,t,n){return nj(e,rj($A,1,0,0,1,t,n))}function lj(e,t,n,r,i,a,o,s){let c=Math.sin(a),l=Math.cos(a);return e[0]=r*l,e[1]=i*c,e[2]=-r*c,e[3]=i*l,e[4]=o*r*l-s*r*c+t,e[5]=o*i*c+s*i*l+n,e}function uj(e,t){let n=dj(t);sO(n!==0,`Transformation matrix cannot be inverted`);let r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5];return e[0]=o/n,e[1]=-i/n,e[2]=-a/n,e[3]=r/n,e[4]=(a*c-o*s)/n,e[5]=-(r*c-i*s)/n,e}function dj(e){return e[0]*e[3]-e[1]*e[2]}const fj=[1e5,1e5,1e5,1e5,2,2];function pj(e){return`matrix(`+e.join(`, `)+`)`}function mj(e){return e.substring(7,e.length-1).split(`,`).map(parseFloat)}function hj(e,t){let n=mj(e),r=mj(t);for(let e=0;e<6;++e)if(Math.round((n[e]-r[e])*fj[e])!==0)return!1;return!0}function gj(e,t,n,r,i,a,o){a||=[],o||=2;let s=0;for(let c=t;c<n;c+=r){let t=e[c],n=e[c+1];a[s++]=i[0]*t+i[2]*n+i[4],a[s++]=i[1]*t+i[3]*n+i[5];for(let t=2;t<o;t++)a[s++]=e[c+t]}return a&&a.length!=s&&(a.length=s),a}function _j(e,t,n,r,i,a,o){o||=[];let s=Math.cos(i),c=Math.sin(i),l=a[0],u=a[1],d=0;for(let i=t;i<n;i+=r){let t=e[i]-l,n=e[i+1]-u;o[d++]=l+t*s-n*c,o[d++]=u+t*c+n*s;for(let t=i+2;t<i+r;++t)o[d++]=e[t]}return o&&o.length!=d&&(o.length=d),o}function vj(e,t,n,r,i,a,o,s){s||=[];let c=o[0],l=o[1],u=0;for(let o=t;o<n;o+=r){let t=e[o]-c,n=e[o+1]-l;s[u++]=c+i*t,s[u++]=l+a*n;for(let t=o+2;t<o+r;++t)s[u++]=e[t]}return s&&s.length!=u&&(s.length=u),s}function yj(e,t,n,r,i,a,o){o||=[];let s=0;for(let c=t;c<n;c+=r){o[s++]=e[c]+i,o[s++]=e[c+1]+a;for(let t=c+2;t<c+r;++t)o[s++]=e[t]}return o&&o.length!=s&&(o.length=s),o}const bj=ej(),xj=[NaN,NaN];var Sj=class extends rO{constructor(){super(),this.extent_=bO(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=JD((e,t,n)=>{if(!n)return this.getSimplifiedGeometry(t);let r=this.clone();return r.applyTransform(n),r.getSimplifiedGeometry(t)})}simplifyTransformed(e,t){return this.simplifyTransformedInternal(this.getRevision(),e,t)}clone(){return eO()}closestPointXY(e,t,n,r){return eO()}containsXY(e,t){return this.closestPointXY(e,t,xj,Number.MIN_VALUE)===0}getClosestPoint(e,t){return t||=[NaN,NaN],this.closestPointXY(e[0],e[1],t,1/0),t}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return eO()}getExtent(e){if(this.extentRevision_!=this.getRevision()){let e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&SO(e),this.extentRevision_=this.getRevision()}return qO(this.extent_,e)}rotate(e,t){eO()}scale(e,t,n){eO()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return eO()}getType(){return eO()}applyTransform(e){eO()}intersectsExtent(e){return eO()}translate(e,t){eO()}transform(e,t){let n=MA(e),r=n.getUnits()==`tile-pixels`?function(e,r,i){let a=n.getExtent(),o=n.getWorldExtent(),s=zO(o)/zO(a);lj(bj,o[0],o[3],s,-s,0,0,0);let c=gj(e,0,e.length,i,bj,r),l=UA(n,t);return l?l(c,c,i):c}:UA(n,t);return this.applyTransform(r),this}},Cj=class extends Sj{constructor(){super(),this.layout=`XY`,this.stride=2,this.flatCoordinates}computeExtent(e){return wO(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return eO()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;let t=this.getSimplifiedGeometryInternal(e);return t.getFlatCoordinates().length<this.flatCoordinates.length?t:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)}getSimplifiedGeometryInternal(e){return this}getStride(){return this.stride}setFlatCoordinates(e,t){this.stride=Tj(e),this.layout=e,this.flatCoordinates=t}setCoordinates(e,t){eO()}setLayout(e,t,n){let r;if(e)r=Tj(e);else{for(let e=0;e<n;++e){if(t.length===0){this.layout=`XY`,this.stride=2;return}t=t[0]}r=t.length,e=wj(r)}this.layout=e,this.stride=r}applyTransform(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith(`XYZ`)?3:2,this.stride),this.changed())}rotate(e,t){let n=this.getFlatCoordinates();if(n){let r=this.getStride();_j(n,0,n.length,r,e,t,n),this.changed()}}scale(e,t,n){t===void 0&&(t=e),n||=FO(this.getExtent());let r=this.getFlatCoordinates();if(r){let i=this.getStride();vj(r,0,r.length,i,e,t,n,r),this.changed()}}translate(e,t){let n=this.getFlatCoordinates();if(n){let r=this.getStride();yj(n,0,n.length,r,e,t,n),this.changed()}}};function wj(e){let t;return e==2?t=`XY`:e==3?t=`XYZ`:e==4&&(t=`XYZM`),t}function Tj(e){let t;return e==`XY`?t=2:e==`XYZ`||e==`XYM`?t=3:e==`XYZM`&&(t=4),t}function Ej(e,t,n){let r=e.getFlatCoordinates();if(!r)return null;let i=e.getStride();return gj(r,0,r.length,i,t,n)}function Dj(e,t,n,r){let i=0,a=e[n-r],o=e[n-r+1],s=0,c=0;for(;t<n;t+=r){let n=e[t]-a,r=e[t+1]-o;i+=c*n-s*r,s=n,c=r}return i/2}function Oj(e,t,n,r){let i=0;for(let a=0,o=n.length;a<o;++a){let o=n[a];i+=Dj(e,t,o,r),t=o}return i}function kj(e,t,n,r){let i=0;for(let a=0,o=n.length;a<o;++a){let o=n[a];i+=Oj(e,t,o,r),t=o[o.length-1]}return i}function Aj(e,t,n,r,i,a,o){let s=e[t],c=e[t+1],l=e[n]-s,u=e[n+1]-c,d;if(l===0&&u===0)d=t;else{let f=((i-s)*l+(a-c)*u)/(l*l+u*u);if(f>1)d=n;else if(f>0){for(let i=0;i<r;++i)o[i]=sk(e[t+i],e[n+i],f);o.length=r;return}else d=t}for(let t=0;t<r;++t)o[t]=e[d+t];o.length=r}function jj(e,t,n,r,i){let a=e[t],o=e[t+1];for(t+=r;t<n;t+=r){let n=e[t],r=e[t+1],s=nk(a,o,n,r);s>i&&(i=s),a=n,o=r}return i}function Mj(e,t,n,r,i){for(let a=0,o=n.length;a<o;++a){let o=n[a];i=jj(e,t,o,r,i),t=o}return i}function Nj(e,t,n,r,i){for(let a=0,o=n.length;a<o;++a){let o=n[a];i=Mj(e,t,o,r,i),t=o[o.length-1]}return i}function Pj(e,t,n,r,i,a,o,s,c,l,u){if(t==n)return l;let d,f;if(i===0){if(f=nk(o,s,e[t],e[t+1]),f<l){for(d=0;d<r;++d)c[d]=e[t+d];return c.length=r,f}return l}u||=[NaN,NaN];let p=t+r;for(;p<n;)if(Aj(e,p-r,p,r,o,s,u),f=nk(o,s,u[0],u[1]),f<l){for(l=f,d=0;d<r;++d)c[d]=u[d];c.length=r,p+=r}else p+=r*Math.max((Math.sqrt(f)-Math.sqrt(l))/i|0,1);if(a&&(Aj(e,n-r,t,r,o,s,u),f=nk(o,s,u[0],u[1]),f<l)){for(l=f,d=0;d<r;++d)c[d]=u[d];c.length=r}return l}function Fj(e,t,n,r,i,a,o,s,c,l,u){u||=[NaN,NaN];for(let d=0,f=n.length;d<f;++d){let f=n[d];l=Pj(e,t,f,r,i,a,o,s,c,l,u),t=f}return l}function Ij(e,t,n,r,i,a,o,s,c,l,u){u||=[NaN,NaN];for(let d=0,f=n.length;d<f;++d){let f=n[d];l=Fj(e,t,f,r,i,a,o,s,c,l,u),t=f[f.length-1]}return l}function Lj(e,t,n,r){for(let r=0,i=n.length;r<i;++r)e[t++]=n[r];return t}function Rj(e,t,n,r){for(let i=0,a=n.length;i<a;++i){let a=n[i];for(let n=0;n<r;++n)e[t++]=a[n]}return t}function zj(e,t,n,r,i){i||=[];let a=0;for(let o=0,s=n.length;o<s;++o){let s=Rj(e,t,n[o],r);i[a++]=s,t=s}return i.length=a,i}function Bj(e,t,n,r,i){i||=[];let a=0;for(let o=0,s=n.length;o<s;++o){let s=zj(e,t,n[o],r,i[a]);s.length===0&&(s[0]=t),i[a++]=s,t=s[s.length-1]}return i.length=a,i}function Vj(e,t,n,r,i){i=i===void 0?[]:i;let a=0;for(let o=t;o<n;o+=r)i[a++]=e.slice(o,o+r);return i.length=a,i}function Hj(e,t,n,r,i){i=i===void 0?[]:i;let a=0;for(let o=0,s=n.length;o<s;++o){let s=n[o];i[a++]=Vj(e,t,s,r,i[a]),t=s}return i.length=a,i}function Uj(e,t,n,r,i){i=i===void 0?[]:i;let a=0;for(let o=0,s=n.length;o<s;++o){let s=n[o];i[a++]=s.length===1&&s[0]===t?[]:Hj(e,t,s,r,i[a]),t=s[s.length-1]}return i.length=a,i}function Wj(e,t,n,r,i){return!jO(i,function(i){return!Gj(e,t,n,r,i[0],i[1])})}function Gj(e,t,n,r,i,a){let o=0,s=e[n-r],c=e[n-r+1];for(;t<n;t+=r){let n=e[t],r=e[t+1];c<=a?r>a&&(n-s)*(a-c)-(i-s)*(r-c)>0&&o++:r<=a&&(n-s)*(a-c)-(i-s)*(r-c)<0&&o--,s=n,c=r}return o!==0}function Kj(e,t,n,r,i,a){if(n.length===0||!Gj(e,t,n[0],r,i,a))return!1;for(let t=1,o=n.length;t<o;++t)if(Gj(e,n[t-1],n[t],r,i,a))return!1;return!0}function qj(e,t,n,r,i,a){if(n.length===0)return!1;for(let o=0,s=n.length;o<s;++o){let s=n[o];if(Kj(e,t,s,r,i,a))return!0;t=s[s.length-1]}return!1}function Jj(e,t,n,r,i){let a;for(t+=r;t<n;t+=r)if(a=i(e.slice(t-r,t),e.slice(t,t+r)),a)return a;return!1}function Yj(e,t){let[n,r]=e,[i,a]=t,o=((n[0]-i[0])*(i[1]-a[1])-(n[1]-i[1])*(i[0]-a[0]))/((n[0]-r[0])*(i[1]-a[1])-(n[1]-r[1])*(i[0]-a[0])),s=((n[0]-i[0])*(n[1]-r[1])-(n[1]-i[1])*(n[0]-r[0]))/((n[0]-r[0])*(i[1]-a[1])-(n[1]-r[1])*(i[0]-a[0]));if(0<=o&&o<=1&&0<=s&&s<=1)return[n[0]+o*(r[0]-n[0]),n[1]+o*(r[1]-n[1])]}function Xj(e,t,n,r,i,a){return a??=kO(bO(),e,t,n,r),GO(i,a)?a[0]>=i[0]&&a[2]<=i[2]||a[1]>=i[1]&&a[3]<=i[3]||Jj(e,t,n,r,function(e,t){return YO(i,e,t)}):!1}function Zj(e,t,n,r,i){for(let a=0,o=n.length;a<o;++a){if(Xj(e,t,n[a],r,i))return!0;t=n[a]}return!1}function Qj(e,t,n,r,i){return!!(Xj(e,t,n,r,i)||Gj(e,t,n,r,i[0],i[1])||Gj(e,t,n,r,i[0],i[3])||Gj(e,t,n,r,i[2],i[1])||Gj(e,t,n,r,i[2],i[3]))}function $j(e,t,n,r,i){if(!Qj(e,t,n[0],r,i))return!1;if(n.length===1)return!0;for(let t=1,a=n.length;t<a;++t)if(Wj(e,n[t-1],n[t],r,i)&&!Xj(e,n[t-1],n[t],r,i))return!1;return!0}function eM(e,t,n,r,i){for(let a=0,o=n.length;a<o;++a){let o=n[a];if($j(e,t,o,r,i))return!0;t=o[o.length-1]}return!1}function tM(e,t,n,r,i,a,o){let s=(n-t)/r;if(s<3){for(;t<n;t+=r)a[o++]=e[t],a[o++]=e[t+1];return o}let c=Array(s);c[0]=1,c[s-1]=1;let l=[t,n-r],u=0;for(;l.length>0;){let n=l.pop(),a=l.pop(),o=0,s=e[a],d=e[a+1],f=e[n],p=e[n+1];for(let t=a+r;t<n;t+=r){let n=e[t],r=e[t+1],i=tk(n,r,s,d,f,p);i>o&&(u=t,o=i)}o>i&&(c[(u-t)/r]=1,a+r<u&&l.push(a,u),u+r<n&&l.push(u,n))}for(let n=0;n<s;++n)c[n]&&(a[o++]=e[t+n*r],a[o++]=e[t+n*r+1]);return o}function nM(e,t,n,r,i,a,o,s){for(let c=0,l=n.length;c<l;++c){let l=n[c];o=tM(e,t,l,r,i,a,o),s.push(o),t=l}return o}function rM(e,t){return t*Math.round(e/t)}function iM(e,t,n,r,i,a,o){if(t==n)return o;let s=rM(e[t],i),c=rM(e[t+1],i);t+=r,a[o++]=s,a[o++]=c;let l,u;do if(l=rM(e[t],i),u=rM(e[t+1],i),t+=r,t==n)return a[o++]=l,a[o++]=u,o;while(l==s&&u==c);for(;t<n;){let n=rM(e[t],i),d=rM(e[t+1],i);if(t+=r,n==l&&d==u)continue;let f=l-s,p=u-c,m=n-s,h=d-c;if(f*h==p*m&&(f<0&&m<f||f==m||f>0&&m>f)&&(p<0&&h<p||p==h||p>0&&h>p)){l=n,u=d;continue}a[o++]=l,a[o++]=u,s=l,c=u,l=n,u=d}return a[o++]=l,a[o++]=u,o}function aM(e,t,n,r,i,a,o,s){for(let c=0,l=n.length;c<l;++c){let l=n[c];o=iM(e,t,l,r,i,a,o),s.push(o),t=l}return o}function oM(e,t,n,r,i,a,o,s){for(let c=0,l=n.length;c<l;++c){let l=n[c],u=[];o=aM(e,t,l,r,i,a,o,u),s.push(u),t=l[l.length-1]}return o}var sM=class e extends Cj{constructor(e,t){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,t!==void 0&&!Array.isArray(e[0])?this.setFlatCoordinates(t,e):this.setCoordinates(e,t)}clone(){return new e(this.flatCoordinates.slice(),this.layout)}closestPointXY(e,t,n,r){return r<hO(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(jj(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Pj(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,t,n,r))}getArea(){return Dj(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return Vj(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){let n=[];return n.length=tM(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,`XY`)}getType(){return`LinearRing`}intersectsExtent(e){return Xj(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||=[],this.flatCoordinates.length=Rj(this.flatCoordinates,0,e,this.stride),this.changed()}},cM=class e extends Cj{constructor(e,t){super(),this.setCoordinates(e,t)}clone(){let t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(e,t,n,r){let i=this.flatCoordinates,a=nk(e,t,i[0],i[1]);if(a<r){let e=this.stride;for(let t=0;t<e;++t)n[t]=i[t];return n.length=e,a}return r}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(e){return CO(this.flatCoordinates,e)}getType(){return`Point`}intersectsExtent(e){return vO(e,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(e,t){this.setLayout(t,e,0),this.flatCoordinates||=[],this.flatCoordinates.length=Lj(this.flatCoordinates,0,e,this.stride),this.changed()}};function lM(e,t,n,r,i,a,o){let s,c,l,u,d,f,p,m=i[a+1],h=[];for(let i=0,a=n.length;i<a;++i){let a=n[i];for(u=e[a-r],f=e[a-r+1],s=t;s<a;s+=r)d=e[s],p=e[s+1],(m<=f&&p<=m||f<=m&&m<=p)&&(l=(m-f)/(p-f)*(d-u)+u,h.push(l)),u=d,f=p}let g=NaN,_=-1/0;for(h.sort(RD),u=h[0],s=1,c=h.length;s<c;++s){d=h[s];let i=Math.abs(d-u);i>_&&(l=(u+d)/2,Kj(e,t,n,r,l,m)&&(g=l,_=i)),u=d}return isNaN(g)&&(g=i[a]),o?(o.push(g,m,_),o):[g,m,_]}function uM(e,t,n,r,i){let a=[];for(let o=0,s=n.length;o<s;++o){let s=n[o];a=lM(e,t,s,r,i,2*o,a),t=s[s.length-1]}return a}function dM(e,t,n,r){for(;t<n-r;){for(let i=0;i<r;++i){let a=e[t+i];e[t+i]=e[n-r+i],e[n-r+i]=a}t+=r,n-=r}}function fM(e,t,n,r){let i=0,a=e[n-r],o=e[n-r+1];for(;t<n;t+=r){let n=e[t],r=e[t+1];i+=(n-a)*(r+o),a=n,o=r}return i===0?void 0:i>0}function pM(e,t,n,r,i){i=i!==void 0&&i;for(let a=0,o=n.length;a<o;++a){let o=n[a],s=fM(e,t,o,r);if(a===0){if(i&&s||!i&&!s)return!1}else if(i&&!s||!i&&s)return!1;t=o}return!0}function mM(e,t,n,r,i){for(let a=0,o=n.length;a<o;++a){let o=n[a];if(!pM(e,t,o,r,i))return!1;o.length&&(t=o[o.length-1])}return!0}function hM(e,t,n,r,i){i=i!==void 0&&i;for(let a=0,o=n.length;a<o;++a){let o=n[a],s=fM(e,t,o,r);(a===0?i&&s||!i&&!s:i&&!s||!i&&s)&&dM(e,t,o,r),t=o}return t}function gM(e,t,n,r,i){for(let a=0,o=n.length;a<o;++a)t=hM(e,t,n[a],r,i);return t}function _M(e,t){let n=[],r=0,i=0,a;for(let o=0,s=t.length;o<s;++o){let s=t[o],c=fM(e,r,s,2);if(a===void 0&&(a=c),c===a)n.push(t.slice(i,o+1));else{if(n.length===0)continue;n[n.length-1].push(t[i])}i=o+1,r=s}return n}var vM=class e extends Cj{constructor(e,t,n){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,t!==void 0&&n?(this.setFlatCoordinates(t,e),this.ends_=n):this.setCoordinates(e,t)}appendLinearRing(e){this.flatCoordinates?HD(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){let t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(e,t,n,r){return r<hO(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Mj(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Fj(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,t,n,r))}containsXY(e,t){return Kj(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,t)}getArea(){return Oj(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(e){let t;return e===void 0?t=this.flatCoordinates:(t=this.getOrientedFlatCoordinates().slice(),hM(t,0,this.ends_,this.stride,e)),Hj(t,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){let e=FO(this.getExtent());this.flatInteriorPoint_=lM(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new cM(this.getFlatInteriorPoint(),`XYM`)}getLinearRingCount(){return this.ends_.length}getLinearRing(e){return e<0||this.ends_.length<=e?null:new sM(this.flatCoordinates.slice(e===0?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLinearRings(){let e=this.layout,t=this.flatCoordinates,n=this.ends_,r=[],i=0;for(let a=0,o=n.length;a<o;++a){let o=n[a],s=new sM(t.slice(i,o),e);r.push(s),i=o}return r}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){let e=this.flatCoordinates;pM(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=hM(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){let n=[],r=[];return n.length=aM(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),n,0,r),new e(n,`XY`,r)}getType(){return`Polygon`}intersectsExtent(e){return $j(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,2),this.flatCoordinates||=[];let n=zj(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=n.length===0?0:n[n.length-1],this.changed()}};function yM(e){if(KO(e))throw Error(`Cannot create polygon from empty extent`);let t=e[0],n=e[1],r=e[2],i=e[3],a=[t,n,t,i,r,i,r,n,t,n];return new vM(a,`XY`,[a.length])}function bM(e,t,n){t||=32;let r=e.getStride(),i=e.getLayout(),a=e.getCenter(),o=r*(t+1),s=Array(o);for(let e=0;e<o;e+=r){s[e]=0,s[e+1]=0;for(let t=2;t<r;t++)s[e+t]=a[t]}let c=new vM(s,i,[s.length]);return xM(c,a,e.getRadius(),n),c}function xM(e,t,n,r){let i=e.getFlatCoordinates(),a=e.getStride(),o=i.length/a-1,s=r||0;for(let e=0;e<=o;++e){let r=e*a,c=s+ok(e,o)*2*Math.PI/o;i[r]=t[0]+n*Math.cos(c),i[r+1]=t[1]+n*Math.sin(c)}e.changed()}var SM={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};const CM=typeof navigator<`u`&&navigator.userAgent!==void 0?navigator.userAgent.toLowerCase():``,wM=CM.includes(`safari`)&&!CM.includes(`chrom`)&&(CM.includes(`version/15.4`)||/cpu (os|iphone os) 15_4 like mac os x/.test(CM)),TM=CM.includes(`webkit`)&&!CM.includes(`edge`),EM=CM.includes(`macintosh`),DM=typeof devicePixelRatio<`u`?devicePixelRatio:1,OM=typeof WorkerGlobalScope<`u`&&typeof OffscreenCanvas<`u`&&self instanceof WorkerGlobalScope,kM=typeof Image<`u`&&Image.prototype.decode,AM=(function(){let e=!1;try{let t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener(`_`,null,t),window.removeEventListener(`_`,null,t)}catch{}return e})();function jM(e,t,n){let r=e,i=!0,a=!1,o=!1,s=[ND(r,FD.LOAD,function(){o=!0,a||t()})];return r.src&&kM?(a=!0,r.decode().then(function(){i&&t()}).catch(function(e){i&&(o?t():n())})):s.push(ND(r,FD.ERROR,n)),function(){i=!1,s.forEach(PD)}}function MM(e,t){return new Promise((n,r)=>{function i(){o(),n(e)}function a(){o(),r(Error(`Image load error`))}function o(){e.removeEventListener(`load`,i),e.removeEventListener(`error`,a)}e.addEventListener(`load`,i),e.addEventListener(`error`,a),t&&(e.src=t)})}function NM(e,t){return t&&(e.src=t),e.src&&kM?new Promise((t,n)=>e.decode().then(()=>t(e)).catch(r=>e.complete&&e.width?t(e):n(r))):MM(e)}var Z={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function PM(e){return e**3}function FM(e){return 1-PM(1-e)}function IM(e){return 3*e*e-2*e*e*e}function LM(e){return e}var RM=class extends ZD{constructor(e,t,n){super(),n||={},this.tileCoord=e,this.state=t,this.key=``,this.transition_=n.transition===void 0?250:n.transition,this.transitionStarts_={},this.interpolate=!!n.interpolate}changed(){this.dispatchEvent(FD.CHANGE)}release(){this.setState(Z.EMPTY)}getKey(){return this.key+`/`+this.tileCoord}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(e){if(this.state!==Z.EMPTY){if(this.state!==Z.ERROR&&this.state>e)throw Error(`Tile load sequence violation`);this.state=e,this.changed()}}load(){eO()}getAlpha(e,t){if(!this.transition_)return 1;let n=this.transitionStarts_[e];if(!n)n=t,this.transitionStarts_[e]=n;else if(n===-1)return 1;let r=t-n+1e3/60;return r>=this.transition_?1:PM(r/this.transition_)}inTransition(e){return this.transition_?this.transitionStarts_[e]!==-1:!1}endTransition(e){this.transition_&&(this.transitionStarts_[e]=-1)}disposeInternal(){this.release(),super.disposeInternal()}};function zM(e,t,n,r){let i;return i=n&&n.length?n.shift():OM?new class extends OffscreenCanvas{style={}}(e??300,t??150):document.createElement(`canvas`),e&&(i.width=e),t&&(i.height=t),i.getContext(`2d`,r)}let BM;function VM(){return BM||=zM(1,1),BM}function HM(e){let t=e.canvas;t.width=1,t.height=1,e.clearRect(0,0,1,1)}function UM(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),t}function WM(e){let t=e.offsetHeight,n=getComputedStyle(e);return t+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),t}function GM(e,t){let n=t.parentNode;n&&n.replaceChild(e,t)}function KM(e){for(;e.lastChild;)e.lastChild.remove()}function qM(e,t){let n=e.childNodes;for(let r=0;;++r){let i=n[r],a=t[r];if(!i&&!a)break;if(i!==a){if(!i){e.appendChild(a);continue}if(!a){e.removeChild(i),--r;continue}e.insertBefore(a,i)}}}function JM(){return new Proxy({childNodes:[],appendChild:function(e){return this.childNodes.push(e),e},remove:function(){},removeChild:function(e){let t=this.childNodes.indexOf(e);if(t===-1)throw Error(`Node to remove was not found`);return this.childNodes.splice(t,1),e},insertBefore:function(e,t){let n=this.childNodes.indexOf(t);if(n===-1)throw Error(`Reference node not found`);return this.childNodes.splice(n,0,e),e},style:{}},{get(e,t,n){return t===`firstElementChild`?e.childNodes.length>0?e.childNodes[0]:null:Reflect.get(e,t,n)}})}function YM(e){return typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas}var XM=class extends RM{constructor(e,t,n,r,i,a){super(e,t,a),this.crossOrigin_=r?.crossOrigin,this.referrerPolicy_=r?.referrerPolicy,this.src_=n,this.key=n,this.image_,OM?this.image_=new OffscreenCanvas(1,1):(this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_),this.referrerPolicy_!==void 0&&(this.image_.referrerPolicy=this.referrerPolicy_)),this.unlisten_=null,this.tileLoadFunction_=i}getImage(){return this.image_}setImage(e){this.image_=e,this.state=Z.LOADED,this.unlistenImage_(),this.changed()}getCrossOrigin(){return this.crossOrigin_}getReferrerPolicy(){return this.referrerPolicy_}handleImageError_(){this.state=Z.ERROR,this.unlistenImage_(),this.image_=ZM(),this.changed()}handleImageLoad_(){if(OM)this.state=Z.LOADED;else{let e=this.image_;this.state=e.naturalWidth&&e.naturalHeight?Z.LOADED:Z.EMPTY}this.unlistenImage_(),this.changed()}load(){this.state==Z.ERROR&&(this.state=Z.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_),this.referrerPolicy_!==void 0&&(this.image_.referrerPolicy=this.referrerPolicy_)),this.state==Z.IDLE&&(this.state=Z.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=jM(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&=(this.unlisten_(),null)}disposeInternal(){this.unlistenImage_(),this.image_=null,super.disposeInternal()}};function ZM(){let e=zM(1,1);return e.fillStyle=`rgba(0,0,0,0)`,e.fillRect(0,0,1,1),e.canvas}var QM=class{constructor(e,t,n){this.decay_=e,this.minVelocity_=t,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(e,t){this.points_.push(e,t,Date.now())}end(){if(this.points_.length<6)return!1;let e=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]<e)return!1;let n=t-3;for(;n>0&&this.points_[n+2]>e;)n-=3;let r=this.points_[t+2]-this.points_[n+2];if(r<1e3/60)return!1;let i=this.points_[t]-this.points_[n],a=this.points_[t+1]-this.points_[n+1];return this.angle_=Math.atan2(a,i),this.initialVelocity_=Math.sqrt(i*i+a*a)/r,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}};function $M(e,t,n,r,i,a,o){let s,c,l=(n-t)/r;if(l===1)s=t;else if(l===2)s=t,c=i;else if(l!==0){let a=e[t],o=e[t+1],l=0,u=[0];for(let i=t+r;i<n;i+=r){let t=e[i],n=e[i+1];l+=Math.sqrt((t-a)*(t-a)+(n-o)*(n-o)),u.push(l),a=t,o=n}let d=i*l,f=LD(u,d);f<0?(c=(d-u[-f-2])/(u[-f-1]-u[-f-2]),s=t+(-f-2)*r):s=t+f*r}o=o>1?o:2,a||=Array(o);for(let t=0;t<o;++t)a[t]=s===void 0?NaN:c===void 0?e[s+t]:sk(e[s+t],e[s+r+t],c);return a}function eN(e,t,n,r,i,a){if(n==t)return null;let o;if(i<e[t+r-1])return a?(o=e.slice(t,t+r),o[r-1]=i,o):null;if(e[n-1]<i)return a?(o=e.slice(n-r,n),o[r-1]=i,o):null;if(i==e[t+r-1])return e.slice(t,t+r);let s=t/r,c=n/r;for(;s<c;){let t=s+c>>1;i<e[(t+1)*r-1]?c=t:s=t+1}let l=e[s*r-1];if(i==l)return e.slice((s-1)*r,(s-1)*r+r);let u=e[(s+1)*r-1],d=(i-l)/(u-l);o=[];for(let t=0;t<r-1;++t)o.push(sk(e[(s-1)*r+t],e[s*r+t],d));return o.push(i),o}function tN(e,t,n,r,i,a,o){if(o)return eN(e,t,n[n.length-1],r,i,a);let s;if(i<e[r-1])return a?(s=e.slice(0,r),s[r-1]=i,s):null;if(e[e.length-1]<i)return a?(s=e.slice(e.length-r),s[r-1]=i,s):null;for(let a=0,o=n.length;a<o;++a){let o=n[a];if(t!=o){if(i<e[t+r-1])return null;if(i<=e[o-1])return eN(e,t,o,r,i,!1);t=o}}return null}function nN(e,t,n,r){let i=e[t],a=e[t+1],o=0;for(let s=t+r;s<n;s+=r){let t=e[s],n=e[s+1];o+=Math.sqrt((t-i)*(t-i)+(n-a)*(n-a)),i=t,a=n}return o}var rN=class e extends Cj{constructor(e,t){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,t!==void 0&&!Array.isArray(e[0])?this.setFlatCoordinates(t,e):this.setCoordinates(e,t)}appendCoordinate(e){HD(this.flatCoordinates,e),this.changed()}clone(){let t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(e,t,n,r){return r<hO(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(jj(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Pj(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,t,n,r))}forEachSegment(e){return Jj(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinateAtM(e,t){return this.layout!=`XYM`&&this.layout!=`XYZM`?null:(t=t!==void 0&&t,eN(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t))}getCoordinates(){return Vj(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(e,t){return $M(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,t,this.stride)}getLength(){return nN(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_??void 0),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(t){let n=[];return n.length=tM(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,`XY`)}getType(){return`LineString`}intersectsExtent(e){return Xj(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,this.getExtent())}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||=[],this.flatCoordinates.length=Rj(this.flatCoordinates,0,e,this.stride),this.changed()}};function iN(e,t,n){let r=[],i=e(0),a=e(1),o=t(i),s=t(a),c=[a,i],l=[s,o],u=[1,0],d={},f=1e5,p,m,h,g,_,v;for(;--f>0&&u.length>0;)h=u.pop(),i=c.pop(),o=l.pop(),v=h.toString(),v in d||(r.push(o[0],o[1]),d[v]=!0),g=u.pop(),a=c.pop(),s=l.pop(),_=(h+g)/2,p=e(_),m=t(p),tk(m[0],m[1],o[0],o[1],s[0],s[1])<n?(r.push(s[0],s[1]),v=g.toString(),d[v]=!0):(u.push(g,_,_,h),l.push(s,m,m,o),c.push(a,p,p,i));return r}function aN(e,t,n,r,i){return iN(function(r){return[e,t+(n-t)*r]},UA(MA(`EPSG:4326`),r),i)}function oN(e,t,n,r,i){return iN(function(r){return[t+(n-t)*r,e]},UA(MA(`EPSG:4326`),r),i)}const sN=[NaN,NaN,NaN,0];let cN;function lN(){return cN||=zM(1,1,void 0,{willReadFrequently:!0,desynchronized:!0}),cN}const uN=/^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,dN=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,fN=/^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,pN=/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;function mN(e,t){return e.endsWith(`%`)?Number(e.substring(0,e.length-1))/t:Number(e)}function hN(e){throw Error(`failed to parse "`+e+`" as color`)}function gN(e){if(e.toLowerCase().startsWith(`rgb`)){let t=e.match(dN)||e.match(uN)||e.match(fN);if(t){let e=t[4],n=100/255;return[ek(mN(t[1],n)+.5|0,0,255),ek(mN(t[2],n)+.5|0,0,255),ek(mN(t[3],n)+.5|0,0,255),e===void 0?1:ek(mN(e,100),0,1)]}hN(e)}if(e.startsWith(`#`)){if(pN.test(e)){let t=e.substring(1),n=t.length<=4?1:2,r=[0,0,0,255];for(let e=0,i=t.length;e<i;e+=n){let i=parseInt(t.substring(e,e+n),16);n===1&&(i+=i<<4),r[e/n]=i}return r[3]/=255,r}hN(e)}let t=lN();t.fillStyle=`#abcdef`;let n=t.fillStyle;t.fillStyle=e,t.fillStyle===n&&(t.fillStyle=`#fedcba`,n=t.fillStyle,t.fillStyle=e,t.fillStyle===n&&hN(e));let r=t.fillStyle;if(r.startsWith(`#`)||r.startsWith(`rgba`))return gN(r);t.clearRect(0,0,1,1),t.fillRect(0,0,1,1);let i=Array.from(t.getImageData(0,0,1,1).data);return i[3]=ck(i[3]/255,3),i}function _N(e){return typeof e==`string`?e:kN(e)}const vN={};let yN=0;function bN(e){if(e.length===4)return e;let t=e.slice();return t[3]=1,t}function xN(e){return e>.0031308?e**(1/2.4)*269.025-14.025:e*3294.6}function SN(e){return e>.2068965?e**3:(e-4/29)*(108/841)}function CN(e){return e>10.314724?((e+14.025)/269.025)**2.4:e/3294.6}function wN(e){return e>.0088564?e**(1/3):e/(108/841)+4/29}function TN(e){let t=CN(e[0]),n=CN(e[1]),r=CN(e[2]),i=wN(t*.222488403+n*.716873169+r*.06060791),a=500*(wN(t*.452247074+n*.399439023+r*.148375274)-i),o=200*(i-wN(t*.016863605+n*.117638439+r*.865350722)),s=180/Math.PI*Math.atan2(o,a);return[116*i-16,Math.sqrt(a*a+o*o),s<0?s+360:s,e[3]]}function EN(e){let t=(e[0]+16)/116,n=e[1],r=e[2]*Math.PI/180,i=SN(t),a=SN(t+n/500*Math.cos(r)),o=SN(t-n/200*Math.sin(r)),s=xN(a*3.021973625-i*1.617392459-o*.404875592),c=xN(a*-.943766287+i*1.916279586+o*.027607165),l=xN(a*.069407491-i*.22898585+o*1.159737864);return[ek(s+.5|0,0,255),ek(c+.5|0,0,255),ek(l+.5|0,0,255),e[3]]}function DN(e){if(e===`none`)return sN;if(vN.hasOwnProperty(e))return vN[e];if(yN>=1024){let e=0;for(let t in vN)e++&3||(delete vN[t],--yN)}let t=gN(e);t.length!==4&&hN(e);for(let n of t)isNaN(n)&&hN(e);return vN[e]=t,++yN,t}function ON(e){return Array.isArray(e)?e:DN(e)}function kN(e){let t=e[0];t!=(t|0)&&(t=t+.5|0);let n=e[1];n!=(n|0)&&(n=n+.5|0);let r=e[2];r!=(r|0)&&(r=r+.5|0);let i=e[3]===void 0?1:Math.round(e[3]*1e3)/1e3;return`rgba(`+t+`,`+n+`,`+r+`,`+i+`)`}var AN=class{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=1024}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(let t in this.cache_){let n=this.cache_[t];!(e++&3)&&!n.hasListener()&&(delete this.cache_[t],delete this.patternCache_[t],--this.cacheSize_)}}}get(e,t){let n=jN(e,t);return n in this.cache_?this.cache_[n]:null}getPattern(e,t){let n=jN(e,t);return n in this.patternCache_?this.patternCache_[n]:null}set(e,t,n,r){let i=jN(e,t),a=i in this.cache_;this.cache_[i]=n,r&&(n.getImageState()===SM.IDLE&&n.load(),n.getImageState()===SM.LOADING?n.ready().then(()=>{this.patternCache_[i]=VM().createPattern(n.getImage(1),`repeat`)}):this.patternCache_[i]=VM().createPattern(n.getImage(1),`repeat`)),a||++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}};function jN(e,t){let n=t?ON(t):`null`;return e+`:`+n}const MN=new AN;let NN=null;var PN=class extends ZD{constructor(e,t,n,r,i){super(),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=n?.crossOrigin,this.referrerPolicy_=n?.referrerPolicy,this.canvas_={},this.color_=i,this.imageState_=r===void 0?SM.IDLE:r,this.size_=e&&e.width&&e.height?[e.width,e.height]:null,this.src_=t,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_),this.referrerPolicy_!==void 0&&(this.image_.referrerPolicy=this.referrerPolicy_)}isTainted_(){if(this.tainted_===void 0&&this.imageState_===SM.LOADED){NN||=zM(1,1,void 0,{willReadFrequently:!0}),NN.drawImage(this.image_,0,0);try{NN.getImageData(0,0,1,1),this.tainted_=!1}catch{NN=null,this.tainted_=!0}}return this.tainted_===!0}dispatchChangeEvent_(){this.dispatchEvent(FD.CHANGE)}handleImageError_(){this.imageState_=SM.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=SM.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(e){return this.image_||this.initializeImage_(),this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_}setImage(e){this.image_=e}getPixelRatio(e){return this.replaceColor_(e),this.canvas_[e]?e:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_){if(this.isTainted_()){let e=this.size_[0],t=this.size_[1],n=zM(e,t);n.fillRect(0,0,e,t),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_}return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===SM.IDLE){this.image_||this.initializeImage_(),this.imageState_=SM.LOADING;try{this.src_!==void 0&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&NM(this.image_,this.src_).then(e=>{this.image_=e,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(e){if(!this.color_||this.canvas_[e]||this.imageState_!==SM.LOADED)return;let t=this.image_,n=zM(Math.ceil(t.width*e),Math.ceil(t.height*e)),r=n.canvas;n.scale(e,e),n.drawImage(t,0,0),n.globalCompositeOperation=`multiply`,n.fillStyle=_N(this.color_),n.fillRect(0,0,r.width/e,r.height/e),n.globalCompositeOperation=`destination-in`,n.drawImage(t,0,0),this.canvas_[e]=r}ready(){return this.ready_||=new Promise(e=>{if(this.imageState_===SM.LOADED||this.imageState_===SM.ERROR)e();else{let t=()=>{(this.imageState_===SM.LOADED||this.imageState_===SM.ERROR)&&(this.removeEventListener(FD.CHANGE,t),e())};this.addEventListener(FD.CHANGE,t)}}),this.ready_}};function FN(e,t,n,r,i,a){let o=t===void 0?void 0:MN.get(t,i);return o||(o=new PN(e,e&&`src`in e?e.src||void 0:t,n,r,i),MN.set(t,i,o,a)),a&&o&&!MN.getPattern(t,i)&&MN.set(t,i,o,a),o}function IN(e){return e?Array.isArray(e)?kN(e):typeof e==`object`&&`src`in e?LN(e):e:null}function LN(e){if(!e.offset||!e.size)return MN.getPattern(e.src,e.color);let t=e.src+`:`+e.offset,n=MN.getPattern(t,e.color);if(n)return n;let r=MN.get(e.src,null);if(r.getImageState()!==SM.LOADED)return null;let i=zM(e.size[0],e.size[1]);return i.drawImage(r.getImage(1),e.offset[0],e.offset[1],e.size[0],e.size[1],0,0,e.size[0],e.size[1]),FN(i.canvas,t,void 0,SM.LOADED,e.color,!0),MN.getPattern(t,e.color)}function RN(e,t,n,r,i,a,o,s){o??=[],s??=r;let c=e[t+r],l=e[t+r+1],u=e[n-2*r],d=e[n-2*r+1],f,p,m,h,g,_,v,y,b=0;for(let x=t;x<n;x+=r){m=f,h=p,g=void 0,_=void 0,x+r<n&&(g=e[x+r],_=e[x+r+1]),a&&x===t&&(m=u,h=d),a&&x===n-r&&(g=c,_=l),f=e[x],p=e[x+1],[v,y]=zN(f,p,m,h,g,_,i),o[b++]=v,o[b++]=y;for(let t=2;t<s;t++)o[b++]=e[x+t]}return o.length!=b&&(o.length=b),o}function zN(e,t,n,r,i,a,o){let s,c;n!==void 0&&r!==void 0?(s=e-n,c=t-r):i!==void 0&&a!==void 0?(s=i-e,c=a-t):(s=1,c=0);let l=Math.hypot(s,c),u=s/l,d=c/l;if(s=-d,c=u,n===void 0||r===void 0||i===void 0||a===void 0)return[e+s*o,t+c*o];let f=Nk([e,t],[n,r],[i,a]);if(Math.cos(f)>.998)return[e+u*o,t+d*o];let p=Math.cos(f/2),m=Math.sin(f/2),h=m*s+p*c,g=-p*s+m*c,_=1/m*h,v=1/m*g;return[e+_*o,t+v*o]}function BN(e,t,n=!1){for(let r=0,i=e.length-2;r<i;r+=t){let i=n&&r===0?e.length-3*t:e.length-2*t;for(let n=i;n>r+t;n-=t){let i=e[r],a=e[r+1],o=e[r+t],s=e[r+t+1],c=e[n],l=e[n+1],u=e[n+t],d=e[n+t+1],f=(d-l)*(o-i)-(u-c)*(s-a);if(f===0)continue;let p=((u-c)*(a-l)-(d-l)*(i-c))/f,m=((o-i)*(a-l)-(s-a)*(i-c))/f;if(p>0&&p<1&&m>0&&m<1){let c=i+p*(o-i),l=a+p*(s-a);e[r+t]=c,e[r+t+1]=l,e.splice(r+2*t,n-r-t);break}}}return e}var VN=class{drawCustom(e,t,n,r,i){}drawGeometry(e){}setStyle(e){}drawCircle(e,t,n){}drawFeature(e,t,n){}drawGeometryCollection(e,t,n){}drawLineString(e,t,n){}drawMultiLineString(e,t,n){}drawMultiPoint(e,t,n){}drawMultiPolygon(e,t,n){}drawPoint(e,t,n){}drawPolygon(e,t,n){}drawText(e,t,n){}setFillStrokeStyle(e,t){}setImageStyle(e,t){}setTextStyle(e,t){}};const HN=`ol-hidden`,UN=`ol-unsupported`,WN=`ol-collapsed`,GN=new RegExp([`^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)`,`(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)`,`(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)`,`(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?`,`(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))`,`(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))`,`?\\s*([-,\\"\\'\\sa-z0-9]+?)\\s*$`].join(``),`i`),KN=[`style`,`variant`,`weight`,`size`,`lineHeight`,`family`],qN={normal:400,bold:700},JN=function(e){let t=e.match(GN);if(!t)return null;let n={lineHeight:`normal`,size:`1.2em`,style:`normal`,weight:`400`,variant:`normal`};for(let e=0,r=KN.length;e<r;++e){let r=t[e+1];r!==void 0&&(n[KN[e]]=typeof r==`string`?r.trim():r)}return isNaN(Number(n.weight))&&n.weight in qN&&(n.weight=qN[n.weight]),n.families=n.family.split(/,\s?/).map(e=>e.trim().replace(/^['"]|['"]$/g,``)),n},YN=`#000`,XN=`round`,ZN=[],QN=`round`,$N=`#000`,eP=`center`,tP=[0,0,0,0],nP=new rO;let rP=null,iP;const aP={},oP=new Set([`serif`,`sans-serif`,`monospace`,`cursive`,`fantasy`,`system-ui`,`ui-serif`,`ui-sans-serif`,`ui-monospace`,`ui-rounded`,`emoji`,`math`,`fangsong`]);function sP(e,t,n){return`${e} ${t} 16px "${n}"`}const cP=(function(){let e,t;async function n(e){await t.ready;let n=JN(e),r=n.families[0].toLowerCase(),i=n.weight,a=[];return t.forEach(e=>{let t=e.family.replace(/^['"]|['"]$/g,``).toLowerCase(),o=qN[e.weight]||e.weight;t===r&&e.style===n.style&&o==i&&a.push(e)}),a.length!==0&&(await Promise.all(a.map(e=>e.load().then(()=>!0,()=>!1)))).some(e=>e)}async function r(){await t.ready;let i=!0,a=nP.getProperties(),o=Object.keys(a).filter(e=>a[e]<100);for(let e=o.length-1;e>=0;--e){let t=o[e],r=a[t];r<100&&(await n(t)?(AD(aP),nP.set(t,100)):(r+=10,nP.set(t,r,!0),r<100&&(i=!1)))}e=void 0,i||(e=setTimeout(r,100))}return async function(n){t||=OM?self.fonts:document.fonts;let i=JN(n);if(!i)return;let a=i.families,o=!1;for(let e of a){if(oP.has(e))continue;let t=sP(i.style,i.weight,e);nP.get(t)===void 0&&(nP.set(t,0,!0),o=!0)}o&&(clearTimeout(e),e=setTimeout(r,100))}})(),lP=(function(){let e;return function(t){let n=aP[t];if(n==null){if(OM){let e=JN(t),r=uP(t,`Žg`);n=(isNaN(Number(e.lineHeight))?1.2:Number(e.lineHeight))*(r.actualBoundingBoxAscent+r.actualBoundingBoxDescent)}else e||(e=document.createElement(`div`),e.innerHTML=`M`,e.style.minHeight=`0`,e.style.maxHeight=`none`,e.style.height=`auto`,e.style.padding=`0`,e.style.border=`none`,e.style.position=`absolute`,e.style.display=`block`,e.style.left=`-99999px`),e.style.font=t,document.body.appendChild(e),n=e.offsetHeight,document.body.removeChild(e);aP[t]=n}return n}})();function uP(e,t){return rP||=zM(1,1),e!=iP&&(rP.font=e,iP=rP.font),rP.measureText(t)}function dP(e,t){return uP(e,t).width}function fP(e,t,n){if(t in n)return n[t];let r=t.split(`
14
14
  `).reduce((t,n)=>Math.max(t,dP(e,n)),0);return n[t]=r,r}function pP(e,t){let n=[],r=[],i=[],a=0,o=0,s=0,c=0;for(let l=0,u=t.length;l<=u;l+=2){let d=t[l];if(d===`