@gamecrafters/base-ui 0.0.30 → 0.0.32

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.cjs.js CHANGED
@@ -23,7 +23,7 @@ process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return
23
23
  <%s {...props} />
24
24
  React keys must be passed directly to JSX without using spread:
25
25
  let props = %s;
26
- <%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require("react"),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),q=o(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?Ot():kt()}))();const At={root:`accordion`};function jt(e,t){let{as:n=`div`,className:r,value:i,defaultValue:a,onChange:o,multiple:s=!1,disabled:c,headingLevel:u=`h3`,keepMounted:d=!0,hiddenUntilFound:f=!1,...p}=e,m=i!==void 0,[h,g]=l.useState(()=>a??[]),_=m?i:h,v=(e,t)=>{if(c||_.includes(e)===t)return;let n=t?s?[..._,e]:[e]:_.filter(t=>t!==e);m||g(n),o?.(n)},y={open:_,setOpen:v,toggle:e=>v(e,!_.includes(e)),disabled:c,headingLevel:u,keepMounted:d,hiddenUntilFound:f};return(0,q.jsx)(Dt.Provider,{value:y,children:(0,q.jsx)(n,{ref:t,className:G(At.root,r),"data-component":`Accordion`,"data-multiple":s,"data-disabled":!!c,...p})})}jt.displayName=`Accordion`;var Mt=K(jt);function J(e,t,n){let r=n(),i=Object.keys(r),a=u.default.forwardRef(({"aria-label":e,"aria-labelledby":n,tabIndex:a,className:o=``,fill:s=`currentColor`,size:c=16,id:l,title:d,style:f,...p},m)=>{let h=c,g=Nt(i,h),_=r[g].width,v=_/parseInt(g,10)*h,y=r[g].path,b=e||n,x=b?`img`:void 0,S=`${t} ${o}`.trim();return u.default.createElement(`svg`,{ref:m,...p,"aria-hidden":b?void 0:`true`,tabIndex:a,focusable:(a??-1)>=0?`true`:`false`,"aria-label":e,"aria-labelledby":n,className:S,role:x,viewBox:`0 0 ${_} ${g}`,width:v,height:h,fill:s,id:l,display:`inline-block`,overflow:`visible`,style:f},d?u.default.createElement(`title`,null,d):null,y)});return a.displayName=e,a}function Nt(e,t){return e.map(e=>parseInt(e,10)).reduce((e,n)=>n<=t?n:e,parseInt(e[0],10)).toString()}const Pt=J(`AddRegular`,`icon icon-add-regular`,()=>({24:{width:24,path:u.default.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`})}})),Ft=J(`ArchiveRegular`,`icon icon-archive-regular`,()=>({24:{width:24,path:u.default.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`})}})),It=J(`ArrowClockwiseRegular`,`icon icon-arrow-clockwise-regular`,()=>({24:{width:24,path:u.default.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`})}})),Lt=J(`ArrowDownRegular`,`icon icon-arrow-down-regular`,()=>({24:{width:24,path:u.default.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`})}})),Rt=J(`ArrowLeftRegular`,`icon icon-arrow-left-regular`,()=>({24:{width:24,path:u.default.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`})}})),zt=J(`ArrowMaximizeRegular`,`icon icon-arrow-maximize-regular`,()=>({24:{width:24,path:u.default.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`})}})),Bt=J(`ArrowMinimizeRegular`,`icon icon-arrow-minimize-regular`,()=>({24:{width:24,path:u.default.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`})}})),Vt=J(`ArrowMoveRegular`,`icon icon-arrow-move-regular`,()=>({24:{width:24,path:u.default.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`})}})),Ht=J(`ArrowRedoRegular`,`icon icon-arrow-redo-regular`,()=>({24:{width:24,path:u.default.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`})}})),Ut=J(`ArrowSortDownRegular`,`icon icon-arrow-sort-down-regular`,()=>({24:{width:24,path:u.default.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`})}})),Wt=J(`ArrowSortUpRegular`,`icon icon-arrow-sort-up-regular`,()=>({24:{width:24,path:u.default.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`})}})),Gt=J(`ArrowUndoRegular`,`icon icon-arrow-undo-regular`,()=>({24:{width:24,path:u.default.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`})}})),Kt=J(`ArrowUpRegular`,`icon icon-arrow-up-regular`,()=>({24:{width:24,path:u.default.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`})}})),qt=J(`ArrowUploadRegular`,`icon icon-arrow-upload-regular`,()=>({24:{width:24,path:u.default.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`})}})),Jt=J(`BranchRegular`,`icon icon-branch-regular`,()=>({24:{width:24,path:u.default.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`})}})),Yt=J(`CalendarLtrRegular`,`icon icon-calendar-ltr-regular`,()=>({24:{width:24,path:u.default.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`})}})),Xt=J(`CheckmarkCircleRegular`,`icon icon-checkmark-circle-regular`,()=>({24:{width:24,path:u.default.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`})}})),Zt=J(`CheckmarkRegular`,`icon icon-checkmark-regular`,()=>({24:{width:24,path:u.default.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`})}})),Qt=J(`ChevronDownRegular`,`icon icon-chevron-down-regular`,()=>({24:{width:24,path:u.default.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`})}})),$t=J(`ChevronLeftRegular`,`icon icon-chevron-left-regular`,()=>({24:{width:24,path:u.default.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`})}})),en=J(`ChevronRightRegular`,`icon icon-chevron-right-regular`,()=>({24:{width:24,path:u.default.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`})}})),tn=J(`ChevronUpRegular`,`icon icon-chevron-up-regular`,()=>({24:{width:24,path:u.default.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`})}})),nn=J(`CircleHintRegular`,`icon icon-circle-hint-regular`,()=>({24:{width:24,path:u.default.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`})}})),rn=J(`CircleRegular`,`icon icon-circle-regular`,()=>({24:{width:24,path:u.default.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`})}})),an=J(`CircleSmallRegular`,`icon icon-circle-small-regular`,()=>({24:{width:24,path:u.default.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`})}})),on=J(`ClockRegular`,`icon icon-clock-regular`,()=>({24:{width:24,path:u.default.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`})}})),sn=J(`CodeRegular`,`icon icon-code-regular`,()=>({24:{width:24,path:u.default.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`})}})),cn=J(`CopyRegular`,`icon icon-copy-regular`,()=>({24:{width:24,path:u.default.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`})}})),ln=J(`DismissCircleRegular`,`icon icon-dismiss-circle-regular`,()=>({24:{width:24,path:u.default.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`})}})),un=J(`DismissRegular`,`icon icon-dismiss-regular`,()=>({24:{width:24,path:u.default.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`})}})),dn=J(`DocumentRegular`,`icon icon-document-regular`,()=>({24:{width:24,path:u.default.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`})}})),fn=J(`ErrorCircleRegular`,`icon icon-error-circle-regular`,()=>({24:{width:24,path:u.default.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`})}})),pn=J(`EyeOffRegular`,`icon icon-eye-off-regular`,()=>({24:{width:24,path:u.default.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`})}})),mn=J(`EyeRegular`,`icon icon-eye-regular`,()=>({24:{width:24,path:u.default.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`})}})),hn=J(`FilterDismissRegular`,`icon icon-filter-dismiss-regular`,()=>({24:{width:24,path:u.default.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`})}})),gn=J(`FolderOpenRegular`,`icon icon-folder-open-regular`,()=>({24:{width:24,path:u.default.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`})}})),_n=J(`FolderRegular`,`icon icon-folder-regular`,()=>({24:{width:24,path:u.default.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`})}})),vn=J(`InfoRegular`,`icon icon-info-regular`,()=>({24:{width:24,path:u.default.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`})}})),yn=J(`LayerRegular`,`icon icon-layer-regular`,()=>({24:{width:24,path:u.default.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`})}})),bn=J(`LineRegular`,`icon icon-line-regular`,()=>({24:{width:24,path:u.default.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`})}})),xn=J(`LinkRegular`,`icon icon-link-regular`,()=>({24:{width:24,path:u.default.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`})}})),Sn=J(`MergeRegular`,`icon icon-merge-regular`,()=>({24:{width:24,path:u.default.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`})}})),Cn=J(`MoreHorizontalRegular`,`icon icon-more-horizontal-regular`,()=>({24:{width:24,path:u.default.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`})}})),wn=J(`PauseRegular`,`icon icon-pause-regular`,()=>({24:{width:24,path:u.default.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`})}})),Tn=J(`PlayRegular`,`icon icon-play-regular`,()=>({24:{width:24,path:u.default.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`})}})),En=J(`ProhibitedRegular`,`icon icon-prohibited-regular`,()=>({24:{width:24,path:u.default.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`})}})),Dn=J(`RecordRegular`,`icon icon-record-regular`,()=>({24:{width:24,path:u.default.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`})}})),On=J(`SearchRegular`,`icon icon-search-regular`,()=>({24:{width:24,path:u.default.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`})}})),kn=J(`ShapesRegular`,`icon icon-shapes-regular`,()=>({24:{width:24,path:u.default.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`})}})),An=J(`ShieldCheckmarkRegular`,`icon icon-shield-checkmark-regular`,()=>({24:{width:24,path:u.default.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`})}})),jn=J(`ShieldDismissRegular`,`icon icon-shield-dismiss-regular`,()=>({24:{width:24,path:u.default.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`})}})),Mn=J(`ShieldErrorRegular`,`icon icon-shield-error-regular`,()=>({24:{width:24,path:u.default.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`})}})),Nn=J(`ShieldRegular`,`icon icon-shield-regular`,()=>({24:{width:24,path:u.default.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`})}})),Pn=J(`SubtractRegular`,`icon icon-subtract-regular`,()=>({24:{width:24,path:u.default.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`})}})),Fn=J(`TextBoldRegular`,`icon icon-text-bold-regular`,()=>({24:{width:24,path:u.default.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`})}})),In=J(`TextBulletListLtrRegular`,`icon icon-text-bullet-list-ltr-regular`,()=>({24:{width:24,path:u.default.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`})}})),Ln=J(`TextHeader_1Regular`,`icon icon-text-header-1-regular`,()=>({24:{width:24,path:u.default.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`})}})),Rn=J(`TextHeader_2Regular`,`icon icon-text-header-2-regular`,()=>({24:{width:24,path:u.default.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`})}})),zn=J(`TextHeader_3Regular`,`icon icon-text-header-3-regular`,()=>({24:{width:24,path:u.default.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`})}})),Bn=J(`TextItalicRegular`,`icon icon-text-italic-regular`,()=>({24:{width:24,path:u.default.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`})}})),Vn=J(`TextNumberListLtrRegular`,`icon icon-text-number-list-ltr-regular`,()=>({24:{width:24,path:u.default.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`})}})),Hn=J(`TextQuoteRegular`,`icon icon-text-quote-regular`,()=>({24:{width:24,path:u.default.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`})}})),Un=J(`TextStrikethroughRegular`,`icon icon-text-strikethrough-regular`,()=>({24:{width:24,path:u.default.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`})}})),Wn=J(`TextUnderlineRegular`,`icon icon-text-underline-regular`,()=>({24:{width:24,path:u.default.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`})}})),Gn=J(`WarningRegular`,`icon icon-warning-regular`,()=>({24:{width:24,path:u.default.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`})}})),Kn=(0,l.createContext)({}),qn={heading:`accordion-header`,button:`accordion-header-button`,disabled:`accordion-header-button-disabled`,label:`min-w-0`,indicator:`accordion-header-indicator`,indicatorOpen:`rotate-180`};function Jn(e,t){let{className:n,children:r,headingLevel:i,...a}=e,{headingLevel:o}=l.useContext(Dt),{headerId:s,panelId:c,isOpen:u,disabled:d,isPanelPresent:f,toggle:p}=l.useContext(Kn);return(0,q.jsx)(i??o??`h3`,{className:qn.heading,"data-component":`Accordion.Header`,children:(0,q.jsxs)(`button`,{ref:t,type:`button`,id:s,className:G(qn.button,d&&qn.disabled,n),onClick:p,disabled:d,"aria-expanded":!!u,"aria-controls":f?c:void 0,"data-component":`Accordion.HeaderButton`,"data-open":!!u,...a,children:[(0,q.jsx)(`span`,{className:qn.label,children:r}),(0,q.jsx)(Qt,{className:G(qn.indicator,u&&qn.indicatorOpen),"aria-hidden":`true`})]})})}Jn.displayName=`Accordion.Header`;var Yn=K(Jn);const Y=e=>{let t=(0,l.useId)();return e||t},Xn={root:`accordion-item`};function Zn(e,t){let{as:n=`div`,className:r,value:i,disabled:a,...o}=e,{open:s,setOpen:c,toggle:u,disabled:d,keepMounted:f,hiddenUntilFound:p}=l.useContext(Dt),m=Y(),h=i??m,g=s?.includes(h)??!1,_=a??d??!1,[v,y]=l.useState(!0),b={headerId:`${m}-header`,panelId:`${m}-panel`,isOpen:g,disabled:_,keepMounted:f,hiddenUntilFound:p,isPanelPresent:v,setPanelPresent:y,setOpen:e=>c?.(h,e),toggle:()=>u?.(h)};return(0,q.jsx)(Kn.Provider,{value:b,children:(0,q.jsx)(n,{ref:t,className:G(Xn.root,r),"data-component":`Accordion.Item`,"data-value":h,"data-open":g,"data-disabled":_,...o})})}Zn.displayName=`Accordion.Item`;var Qn=K(Zn);const $n=!!(typeof window<`u`&&window.document&&window.document.createElement),er=l.version.split(`.`),tr=parseInt(er[0],10),nr=/^0\.0\.0-experimental-[a-f0-9]{8}-\d{8}$/.test(l.version),rr=$n?l.useLayoutEffect:l.useEffect,ir=tr>=19||nr,ar=(e,t)=>(0,l.useCallback)(n=>{let r=or(e,n),i=or(t,n);if(ir)return()=>{r?r():or(e,null),i?i():or(t,null)}},[e,t]),or=(e,t)=>{if(typeof e==`function`)return e(t);e&&(e.current=t)},sr={root:`accordion-panel`};function cr(e,t){let{as:n=`div`,className:r,...i}=e,{headerId:a,panelId:o,isOpen:s,keepMounted:c,hiddenUntilFound:u,setOpen:d,setPanelPresent:f}=l.useContext(Kn),p=l.useRef(null),m=ar(t,p),h=(c??!0)||!!u||!!s;return rr(()=>(f?.(h),()=>f?.(!1)),[h,f]),rr(()=>{let e=p.current;!e||!s||e.style.setProperty(`--accordion-panel-height`,`${e.scrollHeight}px`)},[s]),rr(()=>{let e=p.current;!e||!u||s||e.setAttribute(`hidden`,`until-found`)},[u,s]),l.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)(n,{ref:m,id:o,hidden:!s,role:`region`,"aria-labelledby":a,className:G(sr.root,r),"data-component":`Accordion.Panel`,"data-open":!!s,...i}):null}cr.displayName=`Accordion.Panel`;var lr=K(cr);const ur=Object.assign(Mt,{Item:Qn,Header:Yn,Panel:lr}),dr=[`[disabled]`,`[hidden]`,`[inert]`,`[tabindex='-1']`],fr=[`a[href]`,`button`,`summary`,`select`,`input:not([type=hidden])`,`textarea`,`[tabindex='0']`,`audio[controls]`,`video[controls]`,`[contenteditable]`].map(e=>`${e}:not(${dr.join(`):not(`)})`).join(`, `),pr=e=>{if(e.matches(`[disabled], [hidden], [inert]`))return!0;let t=getComputedStyle(e);return t.display===`none`||t.visibility===`hidden`},mr=e=>!e||pr(e)?[]:Array.from(e.querySelectorAll(fr)).filter(e=>!pr(e)),hr=e=>mr(e).length>0,gr={vertical:{previous:`ArrowUp`,next:`ArrowDown`},horizontal:{previous:`ArrowLeft`,next:`ArrowRight`}},_r=({containerRef:e,direction:t=`vertical`,wrap:n=!1,disabled:r,focusableFilter:i})=>{(0,l.useEffect)(()=>{let a=e.current;if(!a||r)return;let{previous:o,next:s}=gr[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=mr(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])},vr=(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},yr=(e,t)=>(t.__SLOT__&&(e.__SLOT__=t.__SLOT__),e),br=(e,t)=>{if(Array.isArray(t)){let[n,r]=t;return(e.type===n||vr(e,n))&&r(e.props)}return e.type===t||vr(e,t)},xr=(e,t)=>{let n=[],r=Object.keys(t),i=Object.values(t),a=r.length,o={};for(let e=0;e<a;e++)o[r[e]]=void 0;let s=0;return l.default.Children.forEach(e,e=>{if(!l.default.isValidElement(e)){n.push(e);return}if(s===a){n.push(e);return}let t=Sr(e,i,a);if(t===-1){n.push(e);return}let c=r[t];o[c]===void 0&&(o[c]=e,s++)}),[o,n]},Sr=(e,t,n)=>{for(let r=0;r<n;r++)if(br(e,t[r]))return r;return-1},Cr=W(`heading`,{variants:{size:{large:`text-title-large`,medium:`text-title-medium`,small:`text-title-small`}}});function wr(e,t){let{as:n=`h2`,className:r,size:i=`large`,...a}=e;return(0,q.jsx)(n,{ref:t,className:G(Cr({size:i}),r),"data-component":`Heading`,"data-size":i,...a})}wr.displayName=`Heading`;var Tr=K(wr);const Er=(0,l.createContext)({}),Dr={root:`action-list-heading`,hidden:`sr-only`};function Or(e,t){let{as:n,className:r,visuallyHidden:i=!1,id:a,...o}=e,{headingId:s}=l.useContext(Er);return(0,q.jsx)(Tr,{ref:t,as:n,id:a??s,className:G(Dr.root,i&&Dr.hidden,r),"data-component":`ActionList.Heading`,...o})}Or.displayName=`ActionList.Heading`;var kr=K(Or);const Ar=(0,l.createContext)({}),jr=W(`action-list`,{variants:{variant:{inset:`action-list-inset`,full:`action-list-full`},dividers:{true:`action-list-dividers`,false:``}}}),Mr={heading:kr},Nr=[`menu`,`menubar`,`listbox`];function Pr(e,t){let{as:n=`ul`,className:r,children:i,variant:a=`inset`,selectionVariant:o,showDividers:s=!1,disableFocusZone:c=!1,role:u,...d}=e,[f,p]=xr(i,Mr),m=Y(),{listRole:h,listLabel:g,listLabelledBy:_,selectionVariant:v,enableFocusZone:y}=l.useContext(Ar),b=u??h,x=o??v,S=f.heading?f.heading.props.id??m:_,C=l.useRef(null),w=ar(t,C),T=y??(b!==void 0&&!c&&Nr.includes(b));_r({containerRef:C,disabled:!T,wrap:b===`menu`});let E=l.useMemo(()=>({variant:a,selectionVariant:x,showDividers:s,role:b,headingId:m}),[a,x,s,b,m]);return(0,q.jsxs)(Er.Provider,{value:E,children:[f.heading,(0,q.jsx)(n,{ref:w,role:b,"aria-label":S?void 0:g,"aria-labelledby":S,className:G(jr({variant:a,dividers:s}),r),"data-component":`ActionList`,"data-variant":a,"data-dividers":s?``:void 0,...d,children:p})]})}Pr.displayName=`ActionList`;var Fr=K(Pr);const Ir=(0,l.createContext)({}),Lr={root:`action-list-description`,inline:`min-w-0 truncate`};function Rr(e){let{className:t,variant:n=`inline`,...r}=e,{blockDescriptionId:i,inlineDescriptionId:a}=l.useContext(Ir);return(0,q.jsx)(`span`,{id:n===`block`?i:a,className:G(Lr.root,n===`inline`&&Lr.inline,t),"data-component":`ActionList.Description`,"data-variant":n,...r})}Rr.displayName=`ActionList.Description`;const zr={root:`action-list-divider`};function Br(e){let{className:t,...n}=e;return(0,q.jsx)(`li`,{"aria-hidden":`true`,className:G(zr.root,t),"data-component":`ActionList.Divider`,...n})}Br.displayName=`ActionList.Divider`;const Vr=(0,l.createContext)({}),Hr={__SLOT__:Symbol(`ActionList.GroupHeading`)},Ur={heading:`action-list-group-heading-label`,auxiliary:`action-list-group-heading-auxiliary`},Wr=W(`action-list-group-heading`,{variants:{variant:{subtle:``,filled:`action-list-group-heading-filled`}}});function Gr(e){let{as:t,className:n,children:r,variant:i=`subtle`,auxiliaryText:a,...o}=e,{role:s}=l.useContext(Er),{groupHeadingId:c}=l.useContext(Vr),u=s!==void 0&&s!==`list`,d=t??`h3`;return(0,q.jsxs)(`div`,{className:G(Wr({variant:i})),"data-component":`ActionList.GroupHeading`,"data-variant":i,...u?{role:`presentation`,"aria-hidden":!0}:{},children:[u?(0,q.jsx)(`span`,{id:c,className:G(Ur.heading,n),...o,children:r}):(0,q.jsx)(d,{id:c,className:G(Ur.heading,n),...o,children:r}),a?(0,q.jsx)(`div`,{className:Ur.auxiliary,children:a}):null]})}Gr.displayName=`ActionList.GroupHeading`;const Kr=yr(Gr,Hr),qr={root:`action-list-group`,list:`action-list-group-items`},Jr={groupHeading:Kr};function Yr(e){let{className:t,children:n,selectionVariant:r,role:i,"aria-label":a,...o}=e,s=Y(),{role:c}=l.useContext(Er),[u,d]=xr(n,Jr),f=u.groupHeading?u.groupHeading.props.id??s:void 0,p=l.useMemo(()=>({selectionVariant:r,groupHeadingId:f}),[r,f]),m=c&&typeof u.groupHeading?.props.children==`string`?u.groupHeading.props.children:void 0;return(0,q.jsx)(`li`,{className:G(qr.root,t),"data-component":`ActionList.Group`,role:c?`none`:void 0,...o,children:(0,q.jsxs)(Vr.Provider,{value:p,children:[u.groupHeading,(0,q.jsx)(`ul`,{className:qr.list,role:i??(c?`group`:void 0),"aria-labelledby":c?void 0:f,"aria-label":a??m,children:d})]})})}Yr.displayName=`ActionList.Group`;const Xr={root:`spinner`,srOnly:`sr-only`},Zr=W(`motion-safe:animate-spin`,{variants:{size:{small:`spinner-small`,medium:`spinner-medium`,large:`spinner-large`}}});function Qr(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(Xr.root,a),"data-component":`Spinner`,...s,children:[(0,q.jsx)(It,{className:G(Zr({size:r})),"aria-hidden":`true`}),i!==null&&o===void 0?(0,q.jsx)(`span`,{className:Xr.srOnly,children:i}):null]})}Qr.displayName=`Spinner`;var $r=K(Qr);const ei={root:`action-list-visual`,muted:`action-list-visual-muted`,inherit:`action-list-visual-inherit`},ti=({className:e,...t})=>{let{variant:n,disabled:r,inactive:i}=l.useContext(Ir),a=n===`danger`||r||i;return(0,q.jsx)(`span`,{className:G(ei.root,a?ei.inherit:ei.muted,e),...t})};function ni(e){return(0,q.jsx)(ti,{"data-component":`ActionList.LeadingVisual`,...e})}ni.displayName=`ActionList.LeadingVisual`;function ri({children:e}){return(0,q.jsx)(q.Fragment,{children:e})}ri.displayName=`ActionList.SubItem`;const ii={srOnly:`sr-only`},ai=W(`counter-label`,{variants:{variant:{primary:`counter-label-primary`,secondary:`counter-label-secondary`}}});function oi(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(ai({variant:i}),r),"data-component":`CounterLabel`,"data-variant":i,...o,children:a}),(0,q.jsxs)(`span`,{className:ii.srOnly,children:[`\xA0(`,a,`)`]})]})}oi.displayName=`CounterLabel`;var si=K(oi);const ci={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`},li=(e,t,n,r)=>{let i=e;return(0,q.jsx)(`span`,{"data-component":t,className:G(ci.visualBase,n&&ci.loadingSpinner,r),children:n?(0,q.jsx)($r,{size:`small`,srText:null,role:`presentation`}):l.isValidElement(e)?e:(0,q.jsx)(i,{})})};function ui(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`?ci.inactiveLink:ci.inactive:ci.variant[u][k?`disabled`:`rest`],F=A?ci.visual[u]:ci.visualMuted,I=A?ci.counter[u]:u===`danger`?ci.counterMutedDanger:G(ci.counter[u],ci.counterMuted),L=(0,q.jsx)(n,{ref:t,className:G(ci.base,ci.size[d],u===`link`&&ci.link,u===`link`&&!j&&ci.linkUnderlines,P,a&&A&&ci.iconTone[u],k&&ci.disabled,p&&ci.block,_&&ci.labelWrapRoot,_&&ci.labelWrapHeight[d],N&&ci.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?li(a,`icon`,O,``):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{"data-component":`buttonContent`,"data-align":f,className:G(ci.content,!M&&ci.contentGap[d],ci.align[f],_&&ci.labelWrapContent[d]),children:[M?li($r,`loadingSpinner`,!0,G(F,ci.standaloneSpinner)):null,o?li(o,`leadingVisual`,O,G(F,ci.leadingVisual)):null,i?(0,q.jsx)(`span`,{"data-component":`text`,id:O?E:void 0,className:G(ci.label,ci.labelLineHeight[d],_&&ci.labelWrapLabel,M&&ci.labelHidden),children:i}):null,l!==void 0&&!s?li((0,q.jsx)(si,{className:I,"data-component":`ButtonCounter`,children:l}),`trailingVisual`,O&&!o,ci.trailingVisual):s?li(s,`trailingVisual`,O&&!o,G(F,ci.trailingVisual)):null]}),c?li(c,`trailingAction`,O&&!o&&!s,G(F,ci.trailingAction)):null]})});return m===void 0?L:(0,q.jsxs)(`span`,{className:p?ci.loadingWrapperBlock:ci.loadingWrapper,"data-loading-wrapper":``,children:[L,(0,q.jsx)(`span`,{id:D,role:`status`,className:ci.srOnly,children:O?h:``})]})}ui.displayName=`ButtonBase`;var di=K(ui);function fi(e,t){let{as:n=`button`,type:r=`button`,...i}=e;return(0,q.jsx)(di,{ref:t,as:n,type:r,...i})}fi.displayName=`Button`;var pi=K(fi);const mi=W(`icon-button`,{variants:{size:{small:`icon-button-small`,medium:`icon-button-medium`,large:`icon-button-large`}}});function hi(e,t){let{as:n=`button`,className:r,size:i=`medium`,...a}=e;return(0,q.jsx)(di,{ref:t,as:n,type:`button`,size:i,"data-component":`IconButton`,className:G(mi({size:i}),r),...a})}hi.displayName=`IconButton`;var gi=K(hi);const _i={root:`action-list-trailing-action`,action:`action-list-trailing-action-button`};function vi(e,t){let{className:n,icon:r,label:i,...a}=e;return(0,q.jsx)(`span`,{className:_i.root,"data-component":`ActionList.TrailingAction`,children:r?(0,q.jsx)(gi,{ref:t,icon:r,"aria-label":i,variant:`invisible`,size:`small`,className:G(_i.action,n),...a}):(0,q.jsx)(pi,{ref:t,variant:`invisible`,size:`small`,className:G(_i.action,n),...a,children:i})})}vi.displayName=`ActionList.TrailingAction`;var yi=K(vi);function bi(e){let{trailingVisualId:t}=l.useContext(Ir);return(0,q.jsx)(ti,{id:t,"data-component":`ActionList.TrailingVisual`,...e})}bi.displayName=`ActionList.TrailingVisual`;const xi={unselected:`invisible`,checkmark:`action-list-selection-checkmark`,checkbox:`action-list-selection-checkbox`,checkboxSelected:`action-list-selection-checkbox-selected`},Si=({selected:e,className:t})=>{let{selectionVariant:n}=l.useContext(Er),{selectionVariant:r}=l.useContext(Vr),i=r===void 0?n:r;return i?i===`multiple`?(0,q.jsx)(ti,{className:t,"data-component":`ActionList.Selection`,children:(0,q.jsx)(`span`,{className:G(xi.checkbox,e&&xi.checkboxSelected),children:(0,q.jsx)(Zt,{className:e?void 0:xi.unselected})})}):(0,q.jsx)(ti,{className:t,"data-component":`ActionList.Selection`,children:(0,q.jsx)(Zt,{className:G(xi.checkmark,!e&&xi.unselected)})}):null},Ci={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`},wi={leadingVisual:ni,trailingVisual:bi,trailingAction:yi,description:Rr,subItem:ri},Ti=[`option`,`menuitem`,`menuitemradio`,`menuitemcheckbox`],Ei=[`listbox`,`menu`,`list`];function Di(e,t){let{as:n,className:r,children:i,id:a,role:o,variant:s=`default`,size:c=`medium`,selected:u,active:d=!1,disabled:f=!1,loading:p=!1,inactiveText:m,onSelect:h,...g}=e,[_,v]=xr(i,wi),{container:y,afterSelect:b,selectionAttribute:x,defaultTrailingVisual:S}=l.useContext(Ar),{role:C,selectionVariant:w}=l.useContext(Er),{selectionVariant:T}=l.useContext(Vr),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=o??O,A=x??(k===`menuitemradio`||k===`menuitemcheckbox`?`aria-checked`:k===`option`?`aria-selected`:void 0),j=C!==void 0&&Ei.includes(C)||E||k!==void 0&&Ti.includes(k),M=n??(j?`div`:`button`),N=n!==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(a),z=`${R}--label`,te=`${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)(bi,{children:S}):null),ae=p&&!E,oe=(0,q.jsx)($r,{size:`small`,srText:null}),se=ae&&_.leadingVisual?(0,q.jsx)(ni,{children:oe}):_.leadingVisual,ce=ae&&!_.leadingVisual?(0,q.jsx)(bi,{children:oe}):ie,le=[_.description?V===`block`?ne:te: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":[z,_.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=l.useMemo(()=>({variant:s,size:c,disabled:f,inactive:E,inlineDescriptionId:te,blockDescriptionId:ne,trailingVisualId:B}),[s,c,f,E,te,ne,B]),pe=G(Ci.content,Ci.size[c],s===`danger`&&!f&&!E&&Ci.danger,d&&Ci.active,p&&Ci.loading,E&&Ci.inactive,f&&Ci.disabled);return(0,q.jsx)(Ir.Provider,{value:fe,children:(0,q.jsxs)(`li`,{ref:N?null:t,className:G(Ci.root,r),"data-component":`ActionList.Item`,"data-variant":s===`danger`?s: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?t:void 0,className:pe,"data-component":`ActionList.Item.Content`,"data-size":c,...N?{...ue,...g,...M===`button`?{type:`button`}:{}}:{},children:[(0,q.jsx)(Si,{selected:u}),se,(0,q.jsxs)(`span`,{className:Ci.main,children:[(0,q.jsxs)(`span`,{className:G(Ci.labelWrap,V===`block`&&Ci.labelWrapBlock),children:[(0,q.jsxs)(`span`,{id:z,className:Ci.label,"data-component":`ActionList.Item.Label`,children:[v,ae?(0,q.jsx)(`span`,{className:Ci.srOnly,children:`Loading`}):null]}),_.description]}),ce]})]}),E?(0,q.jsx)(`span`,{id:re,className:Ci.inactiveWarning,children:m}):null,de,_.subItem]})})}Di.displayName=`ActionList.Item`;var Oi=K(Di);function ki(e,t){let{as:n,...r}=e;return(0,q.jsx)(Oi,{ref:t,as:n??`a`,...r})}ki.displayName=`ActionList.LinkItem`;var Ai=K(ki);const ji=Object.assign(Fr,{Item:Oi,LinkItem:Ai,Group:Yr,GroupHeading:Kr,Heading:kr,Description:Rr,Divider:Br,LeadingVisual:ni,TrailingVisual:bi,TrailingAction:yi,SubItem:ri}),Mi=(0,l.createContext)(void 0);function Ni(e){let{children:t,className:n,onClick:r,onKeyDown:i,...a}=e,o=l.useContext(Mi),s=l.useContext(Ar),c=!!o?.isSubmenu,u=o?.onOpen,d=l.useMemo(()=>c?{...s,defaultTrailingVisual:(0,q.jsx)(en,{}),afterSelect:()=>u?.()}:s,[c,u,s]);if(!l.isValidElement(t))return null;let f=t.props,p=e=>{f.onClick?.(e),r?.(e)},m=e=>{f.onKeyDown?.(e),c&&e.key===`ArrowRight`&&!e.defaultPrevented&&(u?.(),e.preventDefault()),i?.(e)};return(0,q.jsx)(Ar.Provider,{value:d,children:l.cloneElement(t,{...a,ref:o?.anchorRef,className:G(n,f.className),onClick:p,onKeyDown:m})})}Ni.displayName=`ActionMenu.Anchor`;function Pi(e){return(0,q.jsx)(Ni,{children:(0,q.jsx)(pi,{type:`button`,trailingAction:Qt,"data-component":`ActionMenu.Button`,...e})})}Pi.displayName=`ActionMenu.Button`;const Fi=e=>l.isValidElement(e)&&(e.type===Ni||e.type===Pi),Ii=(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 Li(e){let{children:t,open:n,onOpenChange:r,anchorRef:i}=e,a=l.useContext(Mi),o=l.useRef(null),s=i??o,c=n!==void 0,[u,d]=l.useState(!1),f=c?n:u,p=l.useCallback(e=>{d(e),r?.(e)},[r]),m=l.useCallback(()=>p(!0),[p]),h=a?.onClose,g=l.useCallback(e=>{p(!1),(e===`item-select`||e===`tab`)&&h?.(e)},[p,h]),_=l.Children.toArray(t),v=_.find(Fi),y=Y(v?.props.id),b=v?e=>l.cloneElement(v,Ii(e,v.props)):null,x=a!==void 0,S=l.useMemo(()=>({anchorRef:s,renderAnchor:b,anchorId:y,open:f,onOpen:m,onClose:g,isSubmenu:x}),[s,b,y,f,m,g,x]);return(0,q.jsx)(Mi.Provider,{value:S,children:_.filter(e=>e!==v)})}Li.displayName=`ActionMenu`;const Ri=[],zi=({containerRef:e,initialFocusRef:t,returnFocusRef:n,disabled:r})=>{(0,l.useEffect)(()=>{let i=e.current;if(!i||r)return;let a=document.activeElement;Ri.push(i),(t?.current??mr(i)[0]??i).focus();let o=e=>{if(e.key!==`Tab`||Ri[Ri.length-1]!==i)return;let t=mr(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),Ri.splice(Ri.indexOf(i),1);let e=n?.current??a;e instanceof HTMLElement&&e.focus()}},[e,t,n,r])},Bi=[],Vi=e=>{if(!(e.key!==`Escape`||e.defaultPrevented)){for(let t of[...Bi].reverse())if(t(e),e.defaultPrevented)break}},Hi=e=>{let t=(0,l.useRef)(e);(0,l.useEffect)(()=>{t.current=e},[e]),(0,l.useEffect)(()=>{let e=e=>t.current(e);return Bi.length===0&&document.addEventListener(`keydown`,Vi),Bi.push(e),()=>{Bi.splice(Bi.indexOf(e),1),Bi.length===0&&document.removeEventListener(`keydown`,Vi)}},[])},Ui=(e,t)=>{if(t!=null)return Object.fromEntries(typeof t==`object`?Object.entries(t).map(([t,n])=>Wi(`data-${e}-${t}`,n)):[Wi(`data-${e}`,t)])},Wi=(e,t)=>[e,t],Gi=(0,l.createContext)({}),Ki=`__baseUiPortalRoot__`,qi=`__default__`,Ji={root:`portal-root`},Yi={},Xi=(e,t=qi)=>{Yi[t]=e},Zi=()=>{let e=Yi[qi];if(e&&document.body.contains(e))return;let t=document.getElementById(Ki);t||(t=document.createElement(`div`),t.setAttribute(`id`,Ki),t.className=Ji.root,(document.querySelector(`[data-portal-root]`)??document.body).appendChild(t)),Xi(t)},Qi=e=>Yi[e],$i={root:`portal`};function ea({children:e,onMount:t,containerName:n}){let{portalContainerName:r}=l.useContext(Gi),i=l.useRef(null);if(!i.current){let e=document.createElement(`div`);e.setAttribute(`data-component`,`Portal`),e.className=$i.root,i.current=e}let a=i.current;return rr(()=>{let e=n??r;e===void 0&&(e=qi,Zi());let i=Qi(e);if(!i)throw Error(`Portal container '${e}' is not yet registered. Register it with registerPortalRoot before use.`);return i.appendChild(a),t?.(),()=>{i.removeChild(a)}},[a,n,r]),(0,d.createPortal)(e,a)}ea.displayName=`Portal`;const ta={"outside-top":`outside-bottom`,"outside-bottom":`outside-top`,"outside-left":`outside-right`,"outside-right":`outside-left`},na=e=>e===`outside-top`||e===`outside-bottom`,ra=(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,ia=(e,t,n,r,i)=>e===`start`?t+i:e===`end`?t+n-r-i:t+(n-r)/2+i,aa=(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=ra(u,o,s,i),f=na(u)?s.height:s.width,p=na(u)?l:c;if(d<0||d+f>p){let e=ra(ta[n],o,s,i);e>=0&&e+f<=p&&(u=ta[n],d=e)}let m=na(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=ia(r,h,g,_,a);return b<0?(y=`start`,b=ia(y,h,g,_,a)):b+_>v&&(y=`end`,b=ia(y,h,g,_,a)),b=Math.max(0,Math.min(b,v-_)),{top:m?d:b,left:m?b:d,anchorSide:u,anchorAlign:y}},oa={closeButtonContainer:`anchored-overlay-close-button-container`,closeButton:`anchored-overlay-close-button`},sa=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:``}}}),ca={regular:`anchored`,narrow:`anchored`},la=[`ArrowDown`,`ArrowUp`,` `,`Enter`],ua=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign;function da(e){let{renderAnchor:t,anchorRef:n,anchorId:r,children:i,open:a,onOpen:o,onClose:s,side:c=`outside-bottom`,align:u=`start`,anchorOffset:d,alignmentOffset:f,width:p=`auto`,height:m=`auto`,overlayProps:h,focusTrapSettings:g,preventOverflow:_=!0,variant:v=ca,displayCloseButton:y=!0,closeButtonProps:b,onPositionChange:x,className:S}=e,{ref:C,className:w,style:T,portalContainerName:E,...D}=h??{},{className:O,"aria-label":k,...A}=b??{},j=l.useRef(null),M=n??j,N=Y(r),P=l.useRef(null),F=ar(C,P),I=l.useRef(null),[L,ee]=l.useState(null),R=l.useCallback(()=>{let e=M.current,t=P.current;if(!e||!t)return;let n=aa(t,e,{side:c,align:u,anchorOffset:d,alignmentOffset:f});I.current&&ua(I.current,n)||(I.current=n,ee(n),x?.({position:n}))},[M,c,u,d,f,x]);rr(()=>{if(!a){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)}},[a,R]),zi({containerRef:P,returnFocusRef:M,...g,disabled:!a||!L||!!g?.disabled}),Hi(e=>{a&&(e.preventDefault(),s?.(`escape`))}),l.useEffect(()=>{if(!a)return;let e=e=>{let{target:t}=e;t instanceof Node&&(P.current?.contains(t)||M.current?.contains(t)||s?.(`click-outside`))};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[M,a,s]);let z=e=>{e.defaultPrevented||e.button!==0||(a?s?.(`anchor-click`):o?.(`anchor-click`))},te=e=>{e.defaultPrevented||a||!la.includes(e.key)||(o?.(`anchor-key-press`,e),e.preventDefault())},ne=v.narrow===`fullscreen`,B=!!s&&ne&&y;return(0,q.jsxs)(q.Fragment,{children:[t?t({ref:M,id:N,"aria-haspopup":`true`,"aria-expanded":a,tabIndex:0,onClick:z,onKeyDown:te}):null,a?(0,q.jsx)(ea,{containerName:E,children:(0,q.jsxs)(`div`,{ref:F,tabIndex:-1,className:G(sa({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??c,"data-align":L?.anchorAlign??u,"data-width":p,"data-height":m,"data-visibility":L?`visible`:`hidden`,...Ui(`variant`,v),...D,children:[B?(0,q.jsx)(`div`,{className:oa.closeButtonContainer,children:(0,q.jsx)(gi,{icon:un,variant:`invisible`,"aria-label":k??`Close`,onClick:()=>s?.(`close-button`),className:G(oa.closeButton,O),"data-component":`AnchoredOverlay.CloseButton`,...A})}):null,i]})}):null]})}da.displayName=`AnchoredOverlay`;const fa={container:`action-menu-overlay`};function pa(e){let{children:t,align:n=`start`,side:r,className:i,returnFocusRef:a,"aria-labelledby":o,...s}=e,c=l.useContext(Mi),u=!!c?.isSubmenu,d=c?.onClose,f=l.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=l.useMemo(()=>({container:`ActionMenu`,listRole:`menu`,listLabelledBy:o??c?.anchorId,selectionAttribute:`aria-checked`,afterSelect:()=>d?.(`item-select`)}),[o,c?.anchorId,d]);return c?(0,q.jsx)(da,{anchorRef:c.anchorRef,renderAnchor:c.renderAnchor,anchorId:c.anchorId,open:c.open,onOpen:c.onOpen,onClose:f,align:n,side:r??(u?`outside-right`:`outside-bottom`),className:i,focusTrapSettings:a?{returnFocusRef:a}:void 0,...s,children:(0,q.jsx)(`div`,{className:fa.container,onKeyDown:p,"data-component":`ActionMenu.Overlay`,children:(0,q.jsx)(Ar.Provider,{value:m,children:t})})}):null}pa.displayName=`ActionMenu.Overlay`;const ma=Object.assign(Li,{Anchor:Ni,Button:Pi,Overlay:pa,Divider:Br}),ha=(0,l.createContext)(null);function ga({children:e,rootRef:t}){let n=l.useRef(new Map),r=l.useRef(new Set),i=l.useRef(null),a=l.useRef(null),o=l.useCallback(()=>{if(typeof IntersectionObserver>`u`)return null;let e=t.current;return e?i.current&&a.current===e?i.current:(i.current?.disconnect(),r.current.clear(),i.current=new IntersectionObserver(e=>{for(let t of e){let e=n.current.get(t.target);if(!e)continue;let r=t.intersectionRatio<1;for(let t of e)t(r)}},{root:e,threshold:1}),a.current=e,i.current):null},[t]),s=l.useCallback(()=>{let e=o();if(e)for(let t of n.current.keys())r.current.has(t)||(e.observe(t),r.current.add(t))},[o]),c=l.useCallback((e,t)=>{let a=n.current.get(e);return a||(a=new Set,n.current.set(e,a)),a.add(t),s(),()=>{let a=n.current.get(e);a&&(a.delete(t),a.size===0&&(n.current.delete(e),r.current.delete(e),i.current?.unobserve(e)))}},[s]);return rr(()=>{s()}),l.useEffect(()=>()=>{i.current?.disconnect(),i.current=null,a.current=null,r.current.clear(),n.current.clear()},[]),(0,q.jsx)(ha.Provider,{value:c,children:e})}ga.displayName=`OverflowObserverProvider`;const _a=()=>(0,l.useContext)(ha),va=({ref:e,rootRef:t,disabled:n})=>{let[r,i]=(0,l.useState)(!1),a=_a();return(0,l.useEffect)(()=>{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},ya=(0,l.createContext)({size:`medium`}),ba=(0,l.createContext)({}),xa={current:null},Sa=e=>{let{size:t,rootRef:n,setOverflowing:r}=l.useContext(ya),{index:i,inGroup:a}=l.useContext(ba),o=va({ref:e,rootRef:n??xa,disabled:a});return l.useEffect(()=>{i!==void 0&&r?.(i,o)},[i,o,r]),{size:t,isOverflowing:o}},Ca={root:`action-bar-divider`,overflowing:`invisible`};function wa(e){let{className:t,...n}=e,r=l.useRef(null),{isOverflowing:i}=Sa(r);return(0,q.jsx)(`div`,{ref:r,"aria-hidden":`true`,className:G(Ca.root,i&&Ca.overflowing,t),"data-component":`ActionBar.Divider`,"data-overflowing":i?``:void 0,...n})}wa.displayName=`ActionBar.Divider`;const Ta={root:`action-bar-group`,overflowing:`invisible`},Ea={inGroup:!0};function Da(e){let{className:t,children:n,...r}=e,i=l.useRef(null),{isOverflowing:a}=Sa(i);return(0,q.jsx)(`div`,{ref:i,className:G(Ta.root,a&&Ta.overflowing,t),"data-component":`ActionBar.Group`,"data-overflowing":a?``:void 0,...r,children:(0,q.jsx)(ba.Provider,{value:Ea,children:n})})}Da.displayName=`ActionBar.Group`;const Oa={overflowing:`invisible`};function ka(e,t){let{className:n,...r}=e,i=l.useRef(null),a=ar(t,i),{size:o,isOverflowing:s}=Sa(i);return(0,q.jsx)(gi,{ref:a,size:o,variant:`invisible`,className:G(s&&Oa.overflowing,n),"data-component":`ActionBar.IconButton`,"data-overflowing":s?``:void 0,...r})}ka.displayName=`ActionBar.IconButton`;var Aa=K(ka);const ja=e=>typeof e==`string`?(0,q.jsx)(`span`,{children:e}):l.isValidElement(e)?e:(0,q.jsx)(e,{}),Ma=({items:e})=>(0,q.jsx)(q.Fragment,{children:e.map((e,t)=>{if(e.type===`divider`)return(0,q.jsx)(ji.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)(ji.LeadingVisual,{children:ja(a)}):null,n,o?(0,q.jsx)(ji.TrailingVisual,{children:ja(o)}):null]});return e.items&&e.items.length>0?(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(ji.Item,{disabled:r,variant:i,children:c})}),(0,q.jsx)(ma.Overlay,{children:(0,q.jsx)(ji,{children:(0,q.jsx)(Ma,{items:e.items})})})]},t):(0,q.jsx)(ji.Item,{onSelect:s,disabled:r,variant:i,children:c},t)})}),Na={overflowing:`invisible`};function Pa(e,t){let{className:n,icon:r,items:i,returnFocusRef:a,overflowIcon:o,...s}=e,c=l.useRef(null),u=ar(t,c),{size:d,isOverflowing:f}=Sa(c);return(0,q.jsxs)(ma,{anchorRef:c,children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(gi,{ref:u,icon:r,size:d,variant:`invisible`,className:G(f&&Na.overflowing,n),"data-component":`ActionBar.Menu`,"data-overflowing":f?``:void 0,...s})}),(0,q.jsx)(ma.Overlay,{returnFocusRef:a,children:(0,q.jsx)(ji,{children:(0,q.jsx)(Ma,{items:i})})})]})}Pa.displayName=`ActionBar.Menu`;var Fa=K(Pa);const Ia={size:{small:`action-bar-size-small`,medium:`action-bar-size-medium`,large:`action-bar-size-large`},spacer:`shrink-0`,moreButtonEmpty:`invisible`},La=W(`action-bar`,{variants:{flush:{true:``,false:`action-bar-inset`}}}),Ra=W(`action-bar-toolbar`,{variants:{size:Ia.size}}),za=W(`action-bar-items`,{variants:{size:Ia.size,gap:{none:`action-bar-gap-none`,condensed:`action-bar-gap-condensed`}}}),Ba=new Set,Va=e=>l.isValidElement(e)?e:(0,q.jsx)(e,{}),Ha=(e,t)=>{let n=e.props;if(e.type===wa)return(0,q.jsx)(ji.Divider,{},t);if(e.type===Da)return l.Children.toArray(n.children).filter(e=>l.isValidElement(e)).map((e,n)=>Ha(e,`${t}-${n}`));if(e.type===Fa){let e=n.overflowIcon??n.icon;return(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsxs)(ji.Item,{children:[e?(0,q.jsx)(ji.LeadingVisual,{children:Va(e)}):null,n[`aria-label`]]})}),(0,q.jsx)(ma.Overlay,{returnFocusRef:n.returnFocusRef,children:(0,q.jsx)(ji,{children:(0,q.jsx)(Ma,{items:n.items})})})]},t)}let r=e.type===Aa?n.icon:n.leadingVisual,i=e.type===Aa?n[`aria-label`]:n.children;return(0,q.jsxs)(ji.Item,{onSelect:n.onClick,disabled:n.disabled,children:[r?(0,q.jsx)(ji.LeadingVisual,{children:Va(r)}):null,i]},t)};function Ua(e){let{className:t,children:n,size:r=`medium`,flush:i=!1,gap:a=`condensed`,"aria-label":o,"aria-labelledby":s}=e,c=l.useRef(null),u=l.useRef(null),[d,f]=l.useState(Ba),p=l.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})},[]);_r({containerRef:c,direction:`horizontal`,wrap:!0});let m=l.useMemo(()=>({size:r,rootRef:u,setOverflowing:p}),[r,p]),h=l.Children.toArray(n),g=h.length,_=l.useMemo(()=>Array.from({length:g},(e,t)=>({index:t})),[g]),v=h.map((e,t)=>d.has(t)&&l.isValidElement(e)?Ha(e,t):null).filter(Boolean);return(0,q.jsx)(ya.Provider,{value:m,children:(0,q.jsx)(`div`,{className:G(La({flush:i}),t),"data-component":`ActionBar`,"data-flush":i?``:void 0,children:(0,q.jsxs)(`div`,{ref:c,role:`toolbar`,"aria-label":o,"aria-labelledby":s,className:G(Ra({size:r})),"data-size":r,"data-gap":a,"data-has-overflow":v.length>0?``:void 0,children:[(0,q.jsxs)(`div`,{ref:u,className:G(za({size:r,gap:a})),children:[(0,q.jsx)(`div`,{className:Ia.spacer}),h.map((e,t)=>(0,q.jsx)(ba.Provider,{value:_[t],children:e},t))]}),(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(gi,{icon:Cn,"aria-label":`More items`,size:r,variant:`invisible`,className:v.length>0?void 0:Ia.moreButtonEmpty,"data-component":`ActionBar.MoreButton`})}),(0,q.jsx)(ma.Overlay,{children:(0,q.jsx)(ji,{children:v})})]})]})})})}Ua.displayName=`ActionBar`;const Wa={overflowing:`invisible`};function Ga(e,t){let{className:n,...r}=e,i=l.useRef(null),a=ar(t,i),{size:o,isOverflowing:s}=Sa(i);return(0,q.jsx)(pi,{ref:a,size:o,variant:`invisible`,className:G(s&&Wa.overflowing,n),"data-component":`ActionBar.Button`,"data-overflowing":s?``:void 0,...r})}Ga.displayName=`ActionBar.Button`;var Ka=K(Ga);const qa=Object.assign(Ua,{Button:Ka,IconButton:Aa,Divider:wa,Group:Da,Menu:Fa}),Ja=W(`alert`,{variants:{variant:{default:`alert-default`,success:`alert-success`,warning:`alert-warning`,danger:`alert-danger`}}});function Ya(e,t){let{as:n=`div`,className:r,variant:i=`default`,...a}=e;return(0,q.jsx)(n,{ref:t,className:G(Ja({variant:i}),r),"data-component":`Alert`,"data-variant":i,...a})}Ya.displayName=`Alert`;var Xa=K(Ya);const Za={root:`aspect-ratio`};function Qa(e,t){let{as:n=`div`,className:r,ratio:i=1,style:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Za.root,r),style:{...a,"--aspect-ratio":i},"data-component":`AspectRatio`,...o})}Qa.displayName=`AspectRatio`;var $a=K(Qa);const eo=(0,l.createContext)({}),to=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 no(e,t){let{as:n=`div`,className:r,state:i=`done`,size:a=`medium`,orientation:o=`horizontal`,...s}=e,c=l.useMemo(()=>({state:i,size:a,orientation:o}),[i,a,o]);return(0,q.jsx)(eo.Provider,{value:c,children:(0,q.jsx)(n,{ref:t,className:G(to({state:i,size:a,orientation:o}),r),"data-component":`Attachment`,"data-state":i,"data-size":a,"data-orientation":o,...s})})}no.displayName=`Attachment`;var ro=K(no);const io={root:`attachment-action`};function ao(e,t){let{className:n,variant:r=`invisible`,size:i=`small`,...a}=e,o=a;return(0,q.jsx)(gi,{ref:t,variant:r,size:i,className:G(io.root,n),"data-component":`Attachment.Action`,...o})}ao.displayName=`Attachment.Action`;var oo=K(ao);const so={root:`attachment-actions`};function co(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(so.root,n),"data-component":`Attachment.Actions`,...r})}co.displayName=`Attachment.Actions`;var lo=K(co);const uo={root:`attachment-content`};function fo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(uo.root,n),"data-component":`Attachment.Content`,...r})}fo.displayName=`Attachment.Content`;var po=K(fo);const mo={root:`attachment-description`};function ho(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(mo.root,n),"data-component":`Attachment.Description`,...r})}ho.displayName=`Attachment.Description`;var go=K(ho);const _o={root:`attachment-group`};function vo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(_o.root,n),"data-component":`Attachment.Group`,...r})}vo.displayName=`Attachment.Group`;var yo=K(vo);const bo=W(`attachment-media`,{variants:{variant:{icon:``,image:`attachment-media-image`}}});function xo(e,t){let{className:n,variant:r=`icon`,...i}=e;return(0,q.jsx)(`div`,{ref:t,className:G(bo({variant:r}),n),"data-component":`Attachment.Media`,"data-variant":r,...i})}xo.displayName=`Attachment.Media`;var So=K(xo);const Co={root:`attachment-title`};function wo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(Co.root,n),"data-component":`Attachment.Title`,...r})}wo.displayName=`Attachment.Title`;var To=K(wo);const Eo={root:`attachment-trigger`};function Do(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(Eo.root,r),"data-component":`Attachment.Trigger`,...a})}Do.displayName=`Attachment.Trigger`;var Oo=K(Do);const ko=Object.assign(ro,{Group:yo,Media:So,Content:po,Title:To,Description:go,Actions:lo,Action:oo,Trigger:Oo}),Ao=(0,l.createContext)({}),jo=(0,l.createContext)({}),Mo=(0,l.createContext)({});function No({children:e,id:t}){let n=Y(t),r=l.useRef(null),i=l.useRef(null),[a,o]=l.useState(``),[s,c]=l.useState(``),[u,d]=l.useState(),[f,p]=l.useState(!1),m=l.useCallback(e=>{p(e),e||(d(void 0),c(``))},[]),h=l.useMemo(()=>({id:n,inputRef:r,scrollContainerRef:i,activeDescendantId:u,setActiveDescendantId:d,showMenu:f,setShowMenu:m,setInputValue:o,setAutocompleteSuggestion:c}),[n,u,f,m]),g=l.useMemo(()=>({inputValue:a,autocompleteSuggestion:s}),[a,s]),_=l.useDeferredValue(a),v=l.useMemo(()=>({deferredInputValue:_}),[_]);return(0,q.jsx)(Ao.Provider,{value:h,children:(0,q.jsx)(jo.Provider,{value:g,children:(0,q.jsx)(Mo.Provider,{value:v,children:e})})})}No.displayName=`Autocomplete`;const Po=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 Fo(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(Po({size:i,weight:a,whiteSpace:o}),r),"data-component":`Text`,"data-size":i,"data-weight":a,"data-white-space":o,...s})}Fo.displayName=`Text`;var Io=K(Fo);const Lo=(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`}},Ro={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`},zo=[`date`,`time`,`datetime-local`],Bo=e=>typeof e==`string`||!(0,f.isValidElementType)(e)?e:(0,q.jsx)(e,{}),Vo=({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:Ro.visual,"data-component":a,children:(0,q.jsxs)(`span`,{id:e,className:Ro.visualBox,children:[i?(0,q.jsx)(`span`,{className:r?Ro.spinnerHidden:Ro.spinnerVisible,children:i}):null,(0,q.jsx)($r,{srText:null,size:i?void 0:`small`,className:G(r?Ro.spinnerVisible:Ro.spinnerHidden,i&&Ro.spinner,i&&t===`leading`&&Ro.spinnerLeading)})]})}):(0,q.jsx)(`span`,{id:e,className:Ro.visual,"aria-hidden":`true`,"data-component":a,children:i})};function Ho(e,t){let{className:n,type:r=`text`,size:i=`medium`,block:a,contrast:o,monospace:s,disabled:c,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}=e,E=l.useRef(null),D=ar(t,E),O=Y(),k=Y(),A=Y(),j=Y(),[M,N]=l.useState(!1),P=y!==void 0,[F,I]=l.useState(()=>b===void 0?0:String(b).length),L=P?String(y).length:F,ee=v?Lo(L,v):void 0,R=ee?.isOverLimit??!1,z=R?`error`:d,te=l.useRef(!1),[ne,B]=l.useState(``),re=ee?.message;l.useEffect(()=>{if(!te.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=i===`large`,fe=e=>{N(!0),S?.(e)},pe=e=>{N(!1),C?.(e)},me=e=>{te.current=!0,v&&!P&&I(e.target.value.length),x?.(e)},he=e=>{(e.target!==E.current||!zo.includes(r))&&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(Ro.field,Ro.size[i],ue?M&&Ro.focusTracked:Ro.focus,a&&Ro.block,o&&Ro.contrast,s&&Ro.monospace,c&&Ro.disabled,z&&Ro.validation[z],z===`error`&&(ue?M&&Ro.validationFocusTracked:Ro.validationFocus),oe&&(de?Ro.leadingVisualLarge:Ro.leadingVisual),se&&!ce&&(de?Ro.trailingVisualLarge:Ro.trailingVisual),n),onClick:he,"aria-busy":h?!0:void 0,"data-component":`TextInput`,"data-size":i,"data-block":a,"data-contrast":o,"data-monospace":s,"data-disabled":c,"data-validation":z,"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)(Vo,{id:O,position:`leading`,hasLoader:ae,showLoader:V,children:f?Bo(f):null}):null,(0,q.jsx)(`input`,{ref:D,type:r,value:y,defaultValue:b,disabled:c,required:u,"aria-required":u?!0:void 0,"aria-invalid":z===`error`||void 0,"aria-describedby":ge,onChange:me,onFocus:fe,onBlur:pe,className:G(Ro.input,!oe&&(se||ce?Ro.inputPadStart:Ro.inputPadStartWide),!se&&!ce&&(oe?Ro.inputPadEnd:Ro.inputPadEndWide)),"data-component":`TextInput.Input`,...T}),h?(0,q.jsx)(`span`,{id:A,className:Ro.hidden,children:_}):null,le?(0,q.jsx)(Vo,{id:k,position:`trailing`,hasLoader:ae,showLoader:ie,children:p?Bo(p):null}):null,m]}),ee?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Ro.hidden,children:ne}),(0,q.jsxs)(`span`,{id:j,className:Ro.hidden,children:[`You can enter up to `,v,` `,v===1?`character`:`characters`]}),(0,q.jsxs)(Io,{"aria-hidden":`true`,size:`small`,className:G(Ro.counter,R&&Ro.counterOverLimit),"data-component":`TextInput.CharacterCount`,children:[R?(0,q.jsx)(fn,{className:Ro.counterIcon}):null,ee.message]})]}):null]})}Ho.displayName=`TextInput`;var Uo=K(Ho);const Wo={root:`input-action`,button:`input-action-button`};function Go(e,t){let{className:n,icon:r,...i}=e;return(0,q.jsx)(`span`,{className:Wo.root,"data-component":`TextInput.Action`,children:(0,q.jsx)(gi,{ref:t,type:`button`,variant:`invisible`,size:`small`,icon:r,className:G(Wo.button,n),...i})})}Go.displayName=`TextInput.Action`;var Ko=K(Go);const qo=Object.assign(Uo,{Action:Ko}),Jo=[`ArrowDown`,`ArrowUp`],Yo=[`Backspace`,`Delete`];function Xo(e,t){let{as:n=qo,className:r,openOnFocus:i=!1,value:a,onFocus:o,onBlur:s,onClick:c,onChange:u,onKeyDown:d,onKeyUp:f,...p}=e,{id:m,inputRef:h,activeDescendantId:g,showMenu:_,setShowMenu:v,setInputValue:y}=l.useContext(Ao),{inputValue:b=``,autocompleteSuggestion:x=``}=l.useContext(jo),S=ar(t,h),[C,w]=l.useState(!0);return l.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]),l.useEffect(()=>{a!==void 0&&y?.(String(a))},[a,y]),(0,q.jsx)(n,{ref:S,id:m,role:`combobox`,autoComplete:`off`,"aria-autocomplete":`both`,"aria-haspopup":`listbox`,"aria-expanded":!!_,"aria-controls":`${m}-listbox`,"aria-activedescendant":g,className:r,onFocus:e=>{o?.(e),i&&v?.(!0)},onBlur:e=>{s?.(e),v?.(!1)},onClick:e=>{c?.(e),i&&v?.(!0)},onChange:e=>{u?.(e),y?.(e.currentTarget.value),v?.(!0)},onKeyDown:e=>{if(d?.(e),!e.defaultPrevented){if(Yo.includes(e.key)&&w(!1),e.key===`Escape`){_?v?.(!1):e.currentTarget.value&&(y?.(``),e.currentTarget.value=``);return}!_&&!e.altKey&&Jo.includes(e.key)&&v?.(!0)}},onKeyUp:e=>{f?.(e),Yo.includes(e.key)&&w(!0)},"data-component":`Autocomplete.Input`,...p})}Xo.displayName=`Autocomplete.Input`;var Zo=K(Xo);const Qo={loading:`autocomplete-menu-loading`,emptyState:`autocomplete-menu-empty-state`,hidden:`sr-only`},$o=e=>t=>!!t.text?.toLowerCase().startsWith(e.toLowerCase()),es=e=>(t,n)=>e(t)===e(n)?0:e(t)?-1:1,ts=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),ns=e=>typeof e==`string`||!(0,f.isValidElementType)(e)?e:(0,q.jsx)(e,{});function rs(e){let{items:t,selectedItemIds:n=[],selectionVariant:r=`single`,filter:i,sortOnClose:a,emptyStateText:o=`No selectable options`,addNewItem:s,loading:c=!1,onOpenChange:u,onSelectedChange:d,customScrollContainerRef:f,"aria-labelledby":p,className:m}=e,{id:h,inputRef:g,scrollContainerRef:_,activeDescendantId:v,setActiveDescendantId:y,showMenu:b,setShowMenu:x,setInputValue:S,setAutocompleteSuggestion:C}=l.useContext(Ao),{deferredInputValue:w=``}=l.useContext(Mo),T=`${h}-listbox`,E=l.useCallback(e=>`${T}-${e}`,[T]),[D,O]=l.useState(()=>t.map(e=>e.id));l.useEffect(()=>{if(b)return;let e=t.map(e=>e.id).sort(a??es(e=>n.includes(e)));O(t=>ts(e,t)?t:e)},[b,t,n,a]);let k=l.useMemo(()=>new Map(D.map((e,t)=>[e,t])),[D]),A=l.useMemo(()=>t.filter(i??$o(w)).sort((e,t)=>(k.get(e.id)??2**53-1)-(k.get(t.id)??2**53-1)),[t,i,w,k]),j=l.useMemo(()=>s?[...A,s.item]:A,[A,s]),M=l.useMemo(()=>j.filter(e=>!e.disabled),[j]),N=M.findIndex(e=>E(e.id)===v),P=M[N],[F,I]=l.useState(!1),L=e=>{if(s&&e.id===s.item.id)s.onAdd(e);else{let i=r===`single`?[e.id]:n.includes(e.id)?n.filter(t=>t!==e.id):[...n,e.id];d?d(i.map(e=>t.find(t=>t.id===e)).filter(e=>e!==void 0)):r===`single`&&S?.(e.text??``)}if(r===`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))},z=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))},te=l.useRef(z);l.useEffect(()=>{te.current=z}),l.useEffect(()=>{let e=g?.current;if(!e||!b)return;let t=e=>te.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())&&!n.includes(P.id);l.useEffect(()=>{C?.(B?ne:``)},[B,ne,C]),l.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=l.useRef(!1);l.useEffect(()=>{let e=!!b;re.current!==e&&(re.current=e,u?.(e))},[b,u]);let V=typeof o==`string`?o:`No options available`,ie=c?``:j.length===0?V:`${j.length} option${j.length===1?``:`s`} available.`,[ae,oe]=l.useState(``),se=l.useRef(``);l.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=l.useMemo(()=>({container:`Autocomplete`,listRole:`listbox`,listLabelledBy:p,selectionAttribute:`aria-selected`,selectionVariant:r,enableFocusZone:!1}),[p,r]);return(0,q.jsxs)(`div`,{className:G(m),onMouseDown:e=>e.preventDefault(),onMouseMove:R,"data-component":`Autocomplete.Menu`,"data-loading":c?``:void 0,children:[c?(0,q.jsx)(`div`,{className:Qo.loading,"data-component":`Autocomplete.Loading`,children:(0,q.jsx)($r,{})}):j.length===0?o?(0,q.jsx)(`div`,{className:Qo.emptyState,"data-component":`Autocomplete.EmptyState`,children:o}):null:(0,q.jsx)(Ar.Provider,{value:ce,children:(0,q.jsx)(ji,{id:T,children:j.map(e=>{let{id:t,text:r,description:i,descriptionVariant:a,leadingVisual:o,trailingVisual:c,children:l,...u}=e,d=s&&t===s.item.id?Pt:o;return(0,q.jsxs)(ji.Item,{id:E(t),tabIndex:-1,active:E(t)===v,selected:n.includes(t),onSelect:()=>L(e),"data-id":t,...u,children:[d?(0,q.jsx)(ji.LeadingVisual,{children:ns(d)}):null,l,r,i?(0,q.jsx)(ji.Description,{variant:a,children:i}):null,c?(0,q.jsx)(ji.TrailingVisual,{children:ns(c)}):null]},t)})})}),(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Qo.hidden,"data-component":`Autocomplete.Announcement`,children:ae})]})}rs.displayName=`Autocomplete.Menu`;const is={hidden:`sr-only`},as=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:``}}}),os=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign&&e.anchorWidth===t.anchorWidth;function ss(e){let{menuAnchorRef:t,side:n=`outside-bottom`,align:r=`start`,width:i=`anchor`,height:a=`auto`,maxHeight:o=`medium`,portalContainerName:s,children:c,className:u,style:d,...f}=e,{inputRef:p,scrollContainerRef:m,showMenu:h,setShowMenu:g}=l.useContext(Ao),_=l.useRef(null),v=ar(m,_),y=l.useCallback(()=>{let e=p?.current??null;return t?.current??e?.closest(`[data-component="TextInput"]`)??e},[t,p]),b=l.useRef(null),[x,S]=l.useState(null),C=l.useCallback(()=>{let e=y(),t=_.current;if(!e||!t)return;let i={...aa(t,e,{side:n,align:r}),anchorWidth:e.getBoundingClientRect().width};b.current&&os(b.current,i)||(b.current=i,S(i))},[y,n,r]);return rr(()=>{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]),l.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)(ea,{containerName:s,children:(0,q.jsx)(`div`,{ref:v,"aria-hidden":h?void 0:`true`,className:G(h?as({width:i,height:a,maxHeight:o,unplaced:!x}):is.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??n,"data-align":x?.anchorAlign??r,"data-width":i,"data-height":a,...f,children:c})})}ss.displayName=`Autocomplete.Overlay`;const cs=Object.assign(No,{Input:Zo,Menu:rs,Overlay:ss});(0,l.createContext)({});const ls=e=>typeof e==`object`&&Object.keys(e).some(e=>[`narrow`,`regular`,`wide`].includes(e)),us=(0,l.createContext)({}),ds=W(`avatar`,{variants:{shape:{circle:`avatar-circle`,square:`avatar-square`},responsive:{true:`avatar-responsive`,false:``}}});function fs(e,t){let{as:n=`span`,className:r,size:i=20,shape:a=`circle`,style:o,children:s,...c}=e,[u,d]=l.useState(`idle`),f=l.useMemo(()=>({status:u,setStatus:d}),[u]),p=ls(i),m={"--avatar-size-regular":`20px`};if(p)for(let[e,t]of Object.entries(i))t!==void 0&&(m[`--avatar-size-${e}`]=`${t}px`);else m[`--avatar-size-regular`]=`${i}px`;return(0,q.jsx)(us.Provider,{value:f,children:(0,q.jsx)(n,{ref:t,className:G(ds({shape:a,responsive:p}),r),style:{...o,...m},"data-component":`Avatar`,"data-responsive":p||void 0,"data-shape":a,"data-status":u,...c,children:s})})}fs.displayName=`Avatar`;var ps=K(fs);const ms=`en-US`,hs=(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,gs=e=>{let t=new Map;return(n,r)=>{let i=hs(n,r),a=t.get(i);if(a)return a;let o=e(n,r);return t.set(i,o),o}},_s=new Set([`Adlm`,`Arab`,`Armi`,`Avst`,`Hebr`,`Mand`,`Mend`,`Nkoo`,`Rohg`,`Samr`,`Syrc`,`Thaa`]),vs=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),ys=e=>{try{return new Intl.Locale(e).maximize().script}catch{return}},bs=e=>{let t=ys(e);return t?_s.has(t):vs.has(e.split(`-`)[0].toLowerCase())},xs=e=>bs(e)?`rtl`:`ltr`,Ss=()=>{let e=typeof navigator>`u`?void 0:navigator.language;if(!e)return ms;try{return Intl.DateTimeFormat.supportedLocalesOf([e]),e}catch{return ms}},Cs=gs((e,t)=>new Intl.Collator(e,t)),ws=(e=ms,t={})=>Cs(e,t),Ts=RegExp(`\\p{P}`,`gu`),Es=gs((e,t={})=>{let n=Cs(e,{usage:`search`,...t}),r=e=>{let t=e.normalize(`NFC`);return n.resolvedOptions().ignorePunctuation?t.replace(Ts,``):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}}}),Ds=({locale:e,...t}={})=>Es(e??`en-US`,t),Os=gs((e,t)=>new Intl.NumberFormat(e,t)),ks=(e=ms,t={})=>Os(e,t),As=(e,t=ms,n={})=>Os(t,n).format(e),js=gs((e,t)=>new Intl.DateTimeFormat(e,t)),Ms=(e=ms,t={})=>js(e,t),Ns=[``,`kilo`,`mega`,`giga`,`tera`],Ps=[``,`kilo`,`mega`,`giga`,`tera`,`peta`],Fs=(e,t=ms,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`?Ns:Ps,l=Math.abs(e),u=0;for(;l>=s&&u<c.length-1;)l/=s,u++;let d=parseFloat(l.toPrecision(r));return As(e<0?-d:d,t,{style:`unit`,unit:c[u]+a,unitDisplay:o})},Is=(0,l.createContext)({direction:`ltr`}),Ls=(0,l.createContext)({locale:ms,direction:xs(ms)}),Rs=()=>(0,l.useContext)(Ls),zs=e=>(window?.addEventListener?.(`languagechange`,e),()=>window?.removeEventListener?.(`languagechange`,e)),Bs=()=>ms,Vs=()=>l.useSyncExternalStore(zs,Ss,Bs);function Hs({children:e,className:t,...n}){let{locale:r}=Rs(),i=Vs(),a=n.locale??r,o=a===`auto`?i:a,s=xs(o),c=l.useMemo(()=>({locale:o,direction:s}),[o,s]),u=l.useMemo(()=>({direction:s}),[s]);return(0,q.jsx)(Ls.Provider,{value:c,children:(0,q.jsx)(Is.Provider,{value:u,children:(0,q.jsx)(`div`,{className:t,"data-component":`LocaleProvider`,lang:o,dir:s,children:e})})})}Hs.displayName=`LocaleProvider`;const Us=({locale:e,...t}={})=>{let{locale:n}=Rs();return ws(e??n,t)},Ws=({locale:e,...t}={})=>{let{locale:n}=Rs();return Ms(e??n,t)},Gs=({locale:e,...t}={})=>{let{locale:n}=Rs();return Ds({locale:e??n,...t})},Ks=({locale:e,...t}={})=>{let{locale:n}=Rs();return ks(e??n,t)},qs={root:`avatar-fallback`},Js=(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 Ys(e,t){let{className:n,name:r,...i}=e,{status:a=`idle`}=l.useContext(us),{locale:o}=Rs();return a===`loaded`?null:(0,q.jsx)(`span`,{ref:t,role:`img`,"aria-label":r,className:G(qs.root,n),"data-component":`Avatar.Fallback`,"data-status":a,...i,children:Js(r,o)})}Ys.displayName=`Avatar.Fallback`;var Xs=K(Ys);const Zs={root:`avatar-image`};function Qs(e,t){let{className:n,alt:r=``,src:i,onLoad:a,onError:o,...s}=e,{setStatus:c}=l.useContext(us),[u,d]=l.useState(`idle`),f=l.useRef(null),p=ar(f,t),m=l.useCallback(e=>{d(e),c?.(e)},[c]);return rr(()=>{let e=f.current;if(!e||!i){m(`idle`);return}m(e.complete&&e.naturalWidth>0?`loaded`:`loading`)},[m,i]),(0,q.jsx)(`img`,{ref:p,alt:r,src:i,onLoad:e=>{m(`loaded`),a?.(e)},onError:e=>{m(`error`),o?.(e)},className:G(Zs.root,n),"data-component":`Avatar.Image`,"data-status":u,...s})}Qs.displayName=`Avatar.Image`;var $s=K(Qs);const ec=Object.assign(ps,{Image:$s,Fallback:Xs}),tc=[`narrow`,`regular`,`wide`],nc={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`}},rc=e=>{if(!ls(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}},ic=e=>l.isValidElement(e)&&e.type===ps,ac=e=>l.isValidElement(e)&&e.type===l.Fragment,oc=e=>l.Children.toArray(e).flatMap(e=>ac(e)?oc(e.props.children):ic(e)?[e]:[]),sc=e=>{let t={narrow:[],regular:[],wide:[]};for(let n of e){let e=rc(n.props.size);for(let n of tc)t[n].push(e[n])}return Object.fromEntries(tc.map(e=>[e,t[e].length>0?Math.min(...t[e]):20]))};function cc(e,t){let{as:n=`span`,className:r,children:i,variant:a=`cascade`,shape:o=`circle`,size:s,align:c=`left`,disableExpand:u,style:d,...f}=e,p=l.useRef(null),[m,h]=l.useState(!1);l.useEffect(()=>{if(!p.current)return;let e=p.current,t=()=>{h(hr(e))},n=new MutationObserver(t);return n.observe(e,{childList:!0}),t(),()=>{n.disconnect()}},[]);let g=oc(i),_=g.length,v=_>3?`more`:_===3?`three`:_===2?`two`:void 0,y=!s||ls(s),b=!u,x={};if(ls(s)){let e=rc(s);for(let t of tc)x[`--avatar-stack-size-${t}`]=`${e[t]}px`}else if(s)x[`--avatar-stack-size`]=`${s}px`;else{let e=sc(g);for(let t of tc)x[`--avatar-stack-size-${t}`]=`${e[t]}px`}let S=g.map((e,t)=>l.cloneElement(e,{className:G(nc.item.root,t===0?nc.item.first:nc.item.overlapped,nc.item.shape[o],c===`right`&&o===`square`?nc.item.edgeAlignRight:nc.item.edge[o],t>0&&o===`circle`&&nc.item.mask,o===`square`&&nc.item.layer[Math.min(t,4)],a===`cascade`&&nc.item.fade[t],t>4&&nc.item.overflow,b&&nc.item.expanded,b&&t===0&&nc.item.expandedFirst,e.props.className)}));return(0,q.jsx)(n,{ref:t,className:G(nc.root,nc.variant[a],v&&nc.width[a][v],nc.align[c],y&&nc.responsive,r),style:{...d,...x},"data-component":`AvatarStack`,"data-variant":a,"data-shape":o,"data-avatar-count":_>3?`3+`:_,"data-align":c,"data-responsive":y||void 0,...f,children:(0,q.jsx)(`div`,{ref:p,className:b?nc.body.expandable:nc.body.collapsed,tabIndex:b&&!m?0:void 0,"data-component":`AvatarStack.Body`,"data-disable-expand":u,children:S})})}cc.displayName=`AvatarStack`;var lc=K(cc);const uc={indicator:`badge-indicator`,visual:`badge-visual`},dc=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`}}}),fc=e=>l.isValidElement(e)?e:(0,q.jsx)(e,{});function pc(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(dc({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:uc.visual,"data-component":`Badge.LeadingVisual`,children:fc(s)}):null,u?(0,q.jsx)(`span`,{"aria-hidden":`true`,className:uc.indicator}):null,c]})}pc.displayName=`Badge`;var mc=K(pc);const hc=(0,l.createContext)({});function gc(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(n),"data-component":`Banner.Description`,...r})}gc.displayName=`Banner.Description`;var _c=K(gc);const vc={root:`banner-title`};function yc(e,t){let{as:n=`h2`,className:r,id:i,...a}=e,{titleId:o}=l.useContext(hc);return(0,q.jsx)(n,{ref:t,id:i??o,className:G(vc.root,r),"data-component":`Banner.Title`,...a})}yc.displayName=`Banner.Title`;var bc=K(yc);const xc={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`},Sc=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:``}}}),Cc=W(`banner-icon`,{variants:{tight:{true:`banner-icon-tight`,false:``}}}),wc=W(`banner-body`,{variants:{actions:{stacked:`banner-body-stacked`,inline:`banner-body-inline`,responsive:`banner-body-responsive`}}}),Tc=W(`banner-content`,{variants:{tight:{true:`banner-content-tight`,false:``}}}),Ec=W(`banner-dismiss`,{variants:{withActions:{true:`banner-dismiss-with-actions`,false:``}}}),Dc={critical:fn,info:vn,success:Xt,upsell:vn,warning:Gn},Oc=[`info`,`upsell`],kc=({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(xc.actions,n,i),"data-primary-action":`trailing`,children:[t,e]}),(0,q.jsxs)(`div`,{className:G(xc.actions,n,r),"data-primary-action":`leading`,children:[e,t]})]});function Ac(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=Dc[c],C=s&&Oc.includes(c)?s:(0,q.jsx)(S,{}),w=u===`stacked`||y&&!o&&u!==`inline`,T=w?{leading:xc.order.shown,trailing:xc.order.hidden}:u===`inline`?{leading:xc.order.inlineLeading,trailing:xc.order.inlineTrailing}:{leading:xc.order.responsiveLeading,trailing:xc.order.responsiveTrailing},E=i?(0,q.jsx)(bc,{children:i}):null;return(0,q.jsx)(hc.Provider,{value:{titleId:v},children:(0,q.jsx)(`div`,{className:xc.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(Sc({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(Cc({tight:x})),"data-component":`Banner.Icon`,children:C}),(0,q.jsxs)(`div`,{className:G(wc({actions:w?`stacked`:u===`inline`?`inline`:`responsive`})),children:[(0,q.jsxs)(`div`,{className:G(Tc({tight:x})),"data-component":`Banner.Content`,children:[E?o?(0,q.jsx)(`span`,{className:xc.hidden,children:E}):E:null,a?(0,q.jsx)(_c,{children:a}):null,r]}),b?(0,q.jsx)(kc,{primaryAction:p,secondaryAction:m,className:G(u===`inline`&&xc.actionsInline,w&&xc.actionsStacked),leadingClassName:T.leading,trailingClassName:T.trailing}):null]}),y?(0,q.jsx)(gi,{icon:un,"aria-label":`Dismiss banner`,variant:`invisible`,onClick:f,className:G(Ec({withActions:b})),"data-component":`Banner.Dismiss`}):null]})})})}Ac.displayName=`Banner`;var jc=K(Ac);function Mc(e,t){return(0,q.jsx)(pi,{ref:t,variant:`default`,"data-component":`Banner.PrimaryAction`,...e})}Mc.displayName=`Banner.PrimaryAction`;var Nc=K(Mc);function Pc(e,t){return(0,q.jsx)(pi,{ref:t,variant:`invisible`,"data-component":`Banner.SecondaryAction`,...e})}Pc.displayName=`Banner.SecondaryAction`;var Fc=K(Pc);const Ic=Object.assign(jc,{Title:bc,Description:_c,PrimaryAction:Nc,SecondaryAction:Fc}),Lc={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 Rc(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:Lc.container,children:(0,q.jsx)(n,{ref:t,className:G(Lc.root,Lc.size[i],s?Lc.spaciousPadding[i]:Lc.padding[i],Lc.tightType,s?Lc.tightSpaciousPadding:Lc.tightPadding[i],a&&Lc.border,o&&Lc.narrow,r),"data-component":`Blankslate`,"data-size":i,"data-border":a,"data-narrow":o,"data-spacious":s,...c})})}Rc.displayName=`Blankslate`;var zc=K(Rc);const Bc={root:`blankslate-description`};function Vc(e,t){let{className:n,...r}=e;return(0,q.jsx)(`p`,{ref:t,className:G(Bc.root,n),"data-component":`Blankslate.Description`,...r})}Vc.displayName=`Blankslate.Description`;var Hc=K(Vc);const Uc={root:`blankslate-heading`};function Wc(e,t){let{as:n=`h2`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Uc.root,r),"data-component":`Blankslate.Heading`,...i})}Wc.displayName=`Blankslate.Heading`;var Gc=K(Wc);const Kc={root:`blankslate-action`,tight:`blankslate-action-tight`};function qc(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Kc.root,Kc.tight,n),...r})}qc.displayName=`Blankslate.Action`;var Jc=K(qc);function Yc(e,t){return(0,q.jsx)(Jc,{ref:t,"data-component":`Blankslate.PrimaryAction`,...e})}Yc.displayName=`Blankslate.PrimaryAction`;var Xc=K(Yc);const Zc={root:`link`,inline:`link-inline`,muted:`link-muted`};function Qc(e,t){let{as:n=`a`,className:r,muted:i,inline:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Zc.root,a&&Zc.inline,i&&Zc.muted,r),"data-component":`Link`,"data-muted":i,"data-inline":a,...o})}Qc.displayName=`Link`;var $c=K(Qc);function el(e,t){let{href:n,children:r,...i}=e;return(0,q.jsx)(Jc,{ref:t,"data-component":`Blankslate.SecondaryAction`,...i,children:n===void 0?r:(0,q.jsx)($c,{href:n,children:r})})}el.displayName=`Blankslate.SecondaryAction`;var tl=K(el);const nl={root:`blankslate-visual`,tight:`blankslate-visual-tight`};function rl(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(nl.root,nl.tight,n),"data-component":`Blankslate.Visual`,...r})}rl.displayName=`Blankslate.Visual`;var il=K(rl);const al=Object.assign(zc,{Visual:il,Heading:Gc,Description:Hc,PrimaryAction:Xc,SecondaryAction:tl}),ol=W(`blockquote`,{variants:{size:{large:`blockquote-large`,medium:`blockquote-medium`,small:`blockquote-small`},variant:{subtle:`blockquote-subtle`,default:`blockquote-default`,emphasis:`blockquote-emphasis`}}});function sl(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(ol({size:i,variant:a}),r),"data-component":`Blockquote`,"data-size":i,"data-variant":a,...o})}sl.displayName=`Blockquote`;var cl=K(sl);const ll=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 ul(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(ll({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})}ul.displayName=`Box`;var dl=K(ul);function fl({items:e}){return(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(gi,{icon:Cn,"aria-label":`${e.length} more breadcrumb items`,variant:`invisible`,size:`small`,"data-component":`Breadcrumbs.OverflowMenu`})}),(0,q.jsx)(ma.Overlay,{children:(0,q.jsx)(ji,{children:e.map((e,t)=>{let{children:n,selected:r,as:i,...a}=e.props;return(0,q.jsx)(ji.LinkItem,{as:i,"aria-current":r?`page`:void 0,...a,children:n},t)})})})]})}fl.displayName=`Breadcrumbs.OverflowMenu`;const pl=(0,l.createContext)({}),ml={root:`breadcrumbs`,list:`breadcrumbs-list`,listWrap:`breadcrumbs-list-wrap`,listMenu:`breadcrumbs-list-menu`,item:`breadcrumbs-item`,itemMenu:`breadcrumbs-item-menu`,separator:`breadcrumbs-separator`},hl=({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}},gl=e=>l.Children.toArray(e).filter(e=>l.isValidElement(e)),_l=()=>(0,q.jsx)(`span`,{className:ml.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 vl(e){let{className:t,children:n,style:r,overflow:i=`wrap`,variant:a=`normal`}=e,o=l.useRef(null),s=l.useMemo(()=>gl(n),[n]),c=s[0],u=i!==`menu-with-root`,[d,f]=l.useState([]),[p,m]=l.useState(null),[h,g]=l.useState(28),_=l.useCallback(e=>{let t=e?.querySelector(`button`);t&&g(e=>e===t.offsetWidth?e:t.offsetWidth)},[]);rr(()=>{if(i===`wrap`)return;let e=o.current;if(!e)return;m(t=>t===e.offsetWidth?t:e.offsetWidth);let t=e.querySelectorAll(`li[data-crumb]`);t.length===s.length&&f(Array.from(t,e=>e.offsetWidth))},[s,i]),l.useEffect(()=>{let e=o.current;if(i===`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()}},[i]);let{menuItemCount:v,hideRoot:y}=l.useMemo(()=>i===`wrap`||d.length!==s.length?{menuItemCount:0,hideRoot:u}:hl({availableWidth:p??800,itemCount:s.length,itemWidths:d,menuButtonWidth:h,overflow:i,hideRoot:u}),[i,u,s,d,p,h]),b=l.useMemo(()=>({variant:a}),[a]),x=l.useMemo(()=>{let e=(e,t)=>(0,q.jsxs)(`li`,{className:ml.item,"data-crumb":``,children:[e,(0,q.jsx)(_l,{})]},t);if(v===0)return s.map((t,n)=>e(t,n));let t=s.slice(0,v),n=s.slice(v),r=y?t:t.slice(1),i=(0,q.jsxs)(`li`,{ref:_,className:G(ml.item,ml.itemMenu),"data-overflow-menu":``,children:[(0,q.jsx)(fl,{items:r}),(0,q.jsx)(_l,{})]},`overflow-menu`),a=n.map((t,n)=>e(t,`visible-${n}`));return y?[i,...a]:[e(c,`root`),i,...a]},[s,v,y,_,c]);return(0,q.jsx)(pl.Provider,{value:b,children:(0,q.jsx)(`nav`,{ref:o,"aria-label":`Breadcrumbs`,className:G(ml.root,t),style:r,"data-component":`Breadcrumbs`,"data-overflow":i,"data-variant":a,children:(0,q.jsx)(`ol`,{className:G(ml.list,i===`wrap`?ml.listWrap:ml.listMenu),children:x})})})}vl.displayName=`Breadcrumbs`;const yl={root:`breadcrumbs-link`,normal:`breadcrumbs-link-normal`,normalSelected:`breadcrumbs-link-normal-selected`,spacious:`breadcrumbs-link-spacious`,spaciousSelected:`breadcrumbs-link-spacious-selected`};function bl(e,t){let{as:n=`a`,className:r,selected:i,...a}=e,{variant:o=`normal`}=l.useContext(pl),s=o===`spacious`;return(0,q.jsx)(n,{ref:t,"aria-current":i?`page`:void 0,className:G(yl.root,s?yl.spacious:yl.normal,i&&(s?yl.spaciousSelected:yl.normalSelected),r),"data-component":`Breadcrumbs.Item`,"data-selected":i?``:void 0,...a})}bl.displayName=`Breadcrumbs.Item`;var xl=K(bl);const Sl=Object.assign(vl,{Item:xl}),Cl=(0,l.createContext)({}),wl=(0,l.createContext)({}),Tl=(0,l.createContext)({}),El=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 Dl(e,t){let{as:n=`div`,className:r,variant:i=`default`,align:a,...o}=e,{align:s}=l.useContext(Tl),{align:c}=l.useContext(Cl),u=a??s??c??`start`,d={align:u,variant:i};return(0,q.jsx)(wl.Provider,{value:d,children:(0,q.jsx)(n,{ref:t,className:G(El({align:u,variant:i}),r),"data-component":`Bubble`,"data-variant":i,"data-align":u,...o})})}Dl.displayName=`Bubble`;var Ol=K(Dl);const kl={root:`bubble-content`};function Al(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(kl.root,r),"data-component":`Bubble.Content`,...i})}Al.displayName=`Bubble.Content`;var jl=K(Al);const Ml={root:`bubble-group`};function Nl(e,t){let{as:n=`div`,className:r,align:i=`start`,...a}=e;return(0,q.jsx)(Tl.Provider,{value:{align:i},children:(0,q.jsx)(n,{ref:t,className:G(Ml.root,r),"data-component":`Bubble.Group`,"data-align":i,...a})})}Nl.displayName=`Bubble.Group`;var Pl=K(Nl);const Fl=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 Il(e,t){let{as:n=`div`,className:r,side:i=`bottom`,align:a,...o}=e,{align:s}=l.useContext(wl),c=a??s??`end`;return(0,q.jsx)(n,{ref:t,className:G(Fl({side:i,align:c}),r),"data-component":`Bubble.Reactions`,"data-side":i,"data-align":c,...o})}Il.displayName=`Bubble.Reactions`;var Ll=K(Il);const Rl=Object.assign(Ol,{Group:Pl,Content:jl,Reactions:Ll}),zl={root:`button-group`,item:{root:`button-group-item`,first:`button-group-item-first`,last:`button-group-item-last`}},Bl=[`[disabled]`,`[hidden]`,`[inert]`],Vl=[`button`,`a[href]`,`summary`].map(e=>`${e}:not(${Bl.join(`):not(`)})`).join(`, `),Hl=e=>e?Array.from(e.querySelectorAll(Vl)):[],Ul=(e,t)=>{for(let n of e)n.tabIndex=n===t?0:-1};function Wl(e,t){let{as:n=`div`,className:r,children:i,role:a,onFocus:o,onKeyDown:s,...c}=e,u=l.useRef(null),d=ar(t,u),f=a===`toolbar`,p=l.useCallback(()=>{if(!f)return;let e=Hl(u.current),t=e.find(e=>e===document.activeElement);Ul(e,t??e[0])},[f]);l.useEffect(p),l.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 Hl(e))t.removeAttribute(`tabindex`)}},[f,p]);let m=e=>{if(o?.(e),!f)return;let t=Hl(u.current);t.includes(e.target)&&Ul(t,e.target)},h=e=>{s?.(e);let t=e.key===`ArrowRight`?1:e.key===`ArrowLeft`?-1:0;if(!f||t===0||e.defaultPrevented)return;let n=Hl(u.current),r=n.indexOf(document.activeElement);r!==-1&&(e.preventDefault(),n[(r+t+n.length)%n.length].focus())},g=l.Children.toArray(i);return(0,q.jsx)(n,{ref:d,className:G(zl.root,r),role:a,onFocus:m,onKeyDown:h,"data-component":`ButtonGroup`,...c,children:g.map((e,t)=>(0,q.jsx)(`div`,{className:G(zl.item.root,t===0&&zl.item.first,t===g.length-1&&zl.item.last),"data-component":`ButtonGroup.Item`,children:e},l.isValidElement(e)?e.key:t))})}Wl.displayName=`ButtonGroup`;var Gl=K(Wl);const Kl={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 ql(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(Kl.root,!l&&!a&&Kl.interactive,c&&Kl.outside,p&&Kl.between,l&&Kl.unavailable,m&&Kl.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:Kl.hidden,children:r})]})}ql.displayName=`Calendar.Day`;var Jl=K(ql),Yl=o(((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(){"use strict";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}))})),Xl=o(((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(){"use strict";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)}}}))})),Zl=o(((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(){"use strict";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)}}}))})),Ql=o(((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(){"use strict";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)}}}))})),$l=o(((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(){"use strict";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)}}}))})),eu=c(Yl()),tu=c(Xl()),nu=c(Zl()),ru=c(Ql()),iu=c($l());eu.default.extend(tu.default),eu.default.extend(nu.default),eu.default.extend(ru.default),eu.default.extend(iu.default);const au=`YYYY-MM-DD`,ou=e=>(0,eu.default)(e),su=e=>{if(e==null)return null;let t=ou(e);return t.isValid()?t:null},cu=e=>e.format(au),lu={from:null,to:null},uu=(e,t)=>{if(e==null)return lu;if(t){let t=e;return{from:su(t.from),to:su(t.to)}}let n=su(e);return{from:n,to:n}},du=()=>(0,eu.default)().localeData().firstDayOfWeek()??0,fu=e=>{let t=(0,eu.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]}})},pu=(e,t)=>e.subtract((e.day()-t+7)%7,`day`),mu=(e,t,n=!1)=>{let r=e.startOf(`month`),i=pu(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`)))},hu=(e,t,n,r)=>(t===null||!e.isBefore(t,`day`))&&(n===null||!e.isAfter(n,`day`))&&!r?.(e.toDate()),gu=(e,t)=>e.isAfter(t,`day`)?[t,e]:[e,t],_u=(e,t,n)=>{if(t===null)return n!==null&&e.isSame(n,`day`);if(n===null)return e.isSame(t,`day`);let[r,i]=gu(t,n);return!e.isBefore(r,`day`)&&!e.isAfter(i,`day`)},vu=(e,t,n)=>{if(t===null||n===null||t.isSame(n,`day`))return;let[r,i]=gu(t,n);return e.isSame(r,`day`)?`start`:e.isSame(i,`day`)?`end`:e.isAfter(r,`day`)&&e.isBefore(i,`day`)?`middle`:void 0},yu=(e,t,n)=>{if(e===null||t!==null)return{from:n,to:null};if(n.isSame(e,`day`))return lu;let[r,i]=gu(e,n);return{from:r,to:i}},bu=(e,t)=>{let n=(0,eu.default)(e,t,!0);return n.isValid()?n:null},xu=()=>(0,eu.default)(),Su={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 Cu(e,t){let{mode:n=`single`,value:r,defaultValue:i,onChange:a,month:o,defaultMonth:s,onMonthChange:c,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}=e,T=Y(),E=l.useRef(null),D=xu(),O=n===`range`,k=r!==void 0,[A,j]=l.useState(()=>uu(i,O)),M=k?uu(r,O):A,N=o!==void 0,[P,F]=l.useState(()=>(su(s)??uu(i,O).from??uu(r,O).from??xu()).startOf(`month`)),I=(N?ou(o):P).startOf(`month`),L=su(u),ee=su(d),R=p??du(),z=fu(R),te=mu(I,R,m),[ne,B]=l.useState(null),re=l.useRef(null),[V,ie]=l.useState(null),ae=O&&M.from!==null&&M.to===null,oe=ae?V:M.to,se=cu((()=>{for(let e of[ne,M.from,D])if(e&&e.isSame(I,`month`))return e;return I})());l.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),c?.(t.toDate())},le=e=>{B(e),re.current=cu(e),e.isSame(I,`month`)||ce(e)},ue=e=>{if(!hu(e,L,ee,f))return;B(e),e.isSame(I,`month`)||ce(e);let t=O?yu(M.from,M.to,e):{from:e,to:e};if(k||j(t),O){a?.({from:t.from?.toDate()??null,to:t.to?.toDate()??null});return}a?.(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(pu(t,R));case`End`:return n(pu(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:t,className:G(Su.root,C),"data-component":`Calendar`,...w,children:[(0,q.jsxs)(`div`,{className:Su.header,"data-component":`Calendar.Header`,children:[(0,q.jsx)(gi,{icon:$t,"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:Su.caption,"data-component":`Calendar.Caption`,children:I.format(_)}),(0,q.jsx)(gi,{icon:en,"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:Su.grid,onPointerLeave:me,"data-component":`Calendar.Grid`,"data-mode":n,children:[(0,q.jsx)(`thead`,{children:(0,q.jsxs)(`tr`,{children:[g?(0,q.jsx)(`th`,{scope:`col`,className:Su.weekNumberHeader,children:(0,q.jsx)(`span`,{className:Su.hidden,children:S})}):null,z.map(e=>(0,q.jsxs)(`th`,{scope:`col`,className:Su.weekday,"data-component":`Calendar.Weekday`,children:[(0,q.jsx)(`span`,{"aria-hidden":`true`,children:e.narrow}),(0,q.jsx)(`span`,{className:Su.hidden,children:e.full})]},e.day))]})}),(0,q.jsx)(`tbody`,{children:te.map(e=>(0,q.jsxs)(`tr`,{"data-component":`Calendar.Week`,children:[g?(0,q.jsx)(`th`,{scope:`row`,className:Su.weekNumber,"data-component":`Calendar.WeekNumber`,children:e[0].week()}):null,e.map(e=>{let t=cu(e),n=!e.isSame(I,`month`);if(n&&!h)return(0,q.jsx)(`td`,{className:Su.cell},t);let r=t===se,i=vu(e,M.from,oe);return(0,q.jsx)(`td`,{className:G(Su.cell,i&&Su.rangeCell,i===`start`&&Su.rangeCellStart,i===`end`&&Su.rangeCellEnd),children:(0,q.jsx)(Jl,{ref:r?y:void 0,label:e.format(`D`),name:e.format(v),dayKey:t,selected:_u(e,M.from,M.to),range:i,today:e.isSame(D,`day`),outside:n,unavailable:!hu(e,L,ee,f),tabbable:r,onClick:()=>ue(e),onKeyDown:t=>de(t,e),onFocus:()=>fe(e),onPointerEnter:()=>pe(e)})},t)})]},cu(e[0])))})]})]})}Cu.displayName=`Calendar`;var wu=K(Cu);const Tu=Object.assign(wu,{Day:Jl}),Eu={root:`card-action`};function Du(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Eu.root,n),"data-component":`Card.Action`,...r})}Du.displayName=`Card.Action`;var Ou=K(Du);const ku=(0,l.createContext)({}),Au={root:`card-description text-body-medium`};function ju(e,t){let{className:n,...r}=e;return(0,q.jsx)(`p`,{ref:t,className:G(Au.root,n),"data-component":`Card.Description`,...r})}ju.displayName=`Card.Description`;var Mu=K(ju);const Nu={root:`card-heading`,compact:`card-heading-compact`};function Pu(e,t){let{as:n=`h3`,className:r,id:i,...a}=e,{titleId:o,layout:s}=l.useContext(ku);return(0,q.jsx)(n,{ref:t,id:i??o,className:G(Nu.root,s===`compact`&&Nu.compact,r),"data-component":`Card.Heading`,...a})}Pu.displayName=`Card.Heading`;var Fu=K(Pu);const Iu={root:`card-icon`,tile:`card-icon-tile`};function Lu(e,t){let{icon:n,className:r,"aria-label":i,...a}=e,{layout:o}=l.useContext(ku);return(0,q.jsx)(`span`,{ref:t,role:i?`img`:void 0,"aria-label":i,"aria-hidden":!i||void 0,className:G(Iu.root,o!==`compact`&&Iu.tile,r),"data-component":`Card.Icon`,...a,children:(0,q.jsx)(n,{})})}Lu.displayName=`Card.Icon`;var Ru=K(Lu);const zu={root:`card-image`};function Bu(e,t){let{className:n,alt:r=``,...i}=e;return(0,q.jsx)(`img`,{ref:t,alt:r,className:G(zu.root,n),"data-component":`Card.Image`,...i})}Bu.displayName=`Card.Image`;var Vu=K(Bu);const Hu={root:`card-metadata text-body-small`};function Uu(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Hu.root,n),"data-component":`Card.Metadata`,...r})}Uu.displayName=`Card.Metadata`;var Wu=K(Uu);const Gu={content:`card-content`},Ku=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`}]}),qu=W(`card-header`,{variants:{edgeToEdge:{true:`card-header-edge-to-edge`,false:``},layout:{default:``,compact:`card-header-compact`}}}),Ju=W(`card-body`,{variants:{layout:{default:``,compact:`card-body-compact`}}});function Yu(e,t){let{as:n=`div`,className:r,children:i,padding:a=`normal`,borderRadius:o=`large`,layout:s=`default`,"aria-label":c,"aria-labelledby":u,...d}=e,f=Y(),[p]=xr(i,{icon:Ru,image:Vu,heading:Fu,description:Mu,metadata:Wu,action:Ou}),m=n===`section`,h=m?f:void 0,g=u??(m&&!c?h:void 0),_=p.image??p.icon,v=!!(_||p.heading||p.description||p.metadata||p.action);return l.Children.toArray(i).length===0?null:(0,q.jsx)(ku.Provider,{value:{titleId:h,layout:s},children:(0,q.jsx)(n,{ref:t,"aria-label":c,"aria-labelledby":g,className:G(Ku({borderRadius:o,layout:s,padding:a}),r),"data-component":`Card`,"data-padding":a,"data-border-radius":o,"data-layout":s,...d,children:v?(0,q.jsxs)(q.Fragment,{children:[_?(0,q.jsx)(`div`,{className:G(qu({edgeToEdge:!!p.image,layout:s})),children:_}):null,(0,q.jsxs)(`div`,{className:G(Ju({layout:s})),children:[(0,q.jsxs)(`div`,{className:Gu.content,children:[p.heading,p.description]}),p.metadata]}),p.action]}):i})})}Yu.displayName=`Card`;var Xu=K(Yu);const Zu=Object.assign(Xu,{Icon:Ru,Image:Vu,Heading:Fu,Description:Mu,Metadata:Wu,Action:Ou}),Qu={triangle:`caret-triangle`,border:`caret-border`},$u=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`}}}),ed=(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 td(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($u({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:ed(u,r),children:[(0,q.jsx)(`path`,{className:Qu.triangle,d:m}),(0,q.jsx)(`path`,{className:Qu.border,d:h})]})})}td.displayName=`Caret`;var nd=K(td);const rd=()=>{},id=(0,l.createContext)({index:0,count:0,loop:!1,autoPlay:!1,isPlaying:!1,goTo:rd,previous:rd,next:rd,togglePlaying:rd,slidesId:``}),ad=(0,l.createContext)({index:0}),od={root:`carousel-indicators`,dot:`carousel-indicator`,current:`carousel-indicator-current`};function sd(e,t){let{className:n,...r}=e,{index:i,count:a,goTo:o,slidesId:s}=l.useContext(id);return a===0?null:(0,q.jsx)(`div`,{ref:t,className:G(od.root,n),"data-component":`Carousel.Indicators`,...r,children:Array.from({length:a},(e,t)=>{let n=t===i;return(0,q.jsx)(`button`,{type:`button`,"aria-label":`Slide ${t+1}`,"aria-current":n||void 0,"aria-controls":s||void 0,onClick:()=>o(t,`indicator`),className:G(od.dot,n&&od.current),"data-component":`Carousel.Indicator`,"data-current":n||void 0},t)})})}sd.displayName=`Carousel.Indicators`;var cd=K(sd);function ld(e,t){let{className:n,onClick:r,...i}=e,{index:a,count:o,loop:s,next:c,slidesId:u}=l.useContext(id);return(0,q.jsx)(gi,{ref:t,icon:en,"aria-label":`Next slide`,"aria-controls":u||void 0,variant:`invisible`,disabled:!s&&a>=o-1,onClick:e=>{r?.(e),e.defaultPrevented||c()},className:n,"data-component":`Carousel.NextButton`,...i})}ld.displayName=`Carousel.NextButton`;var ud=K(ld);function dd(e,t){let{className:n,onClick:r,...i}=e,{isPlaying:a,togglePlaying:o,slidesId:s}=l.useContext(id);return(0,q.jsx)(gi,{ref:t,icon:a?wn:Tn,"aria-label":a?`Stop automatic slide show`:`Start automatic slide show`,"aria-controls":s||void 0,variant:`invisible`,onClick:e=>{r?.(e),e.defaultPrevented||o()},className:n,"data-component":`Carousel.PlayButton`,"data-playing":a||void 0,...i})}dd.displayName=`Carousel.PlayButton`;var fd=K(dd);function pd(e,t){let{className:n,onClick:r,...i}=e,{index:a,loop:o,previous:s,slidesId:c}=l.useContext(id);return(0,q.jsx)(gi,{ref:t,icon:$t,"aria-label":`Previous slide`,"aria-controls":c||void 0,variant:`invisible`,disabled:!o&&a<=0,onClick:e=>{r?.(e),e.defaultPrevented||s()},className:n,"data-component":`Carousel.PreviousButton`,...i})}pd.displayName=`Carousel.PreviousButton`;var md=K(pd);const hd={root:`carousel-controls`};function gd(e,t){let{className:n,children:r,...i}=e,{autoPlay:a}=l.useContext(id),o=l.Children.toArray(r).length>0;return(0,q.jsx)(`div`,{ref:t,className:G(hd.root,n),"data-component":`Carousel.Controls`,...i,children:o?r:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(md,{}),(0,q.jsx)(cd,{}),(0,q.jsx)(ud,{}),a?(0,q.jsx)(fd,{}):null]})})}gd.displayName=`Carousel.Controls`;var _d=K(gd);const vd={root:`carousel-slide`};function yd(e,t){let{className:n,...r}=e,{index:i,count:a}=l.useContext(id),{index:o}=l.useContext(ad),s=o===i;return(0,q.jsx)(`div`,{ref:t,role:`group`,"aria-roledescription":`slide`,"aria-label":`${o+1} of ${a}`,inert:!s,className:G(vd.root,n),"data-component":`Carousel.Slide`,"data-current":s||void 0,...r})}yd.displayName=`Carousel.Slide`;var bd=K(yd);const xd={root:`carousel`,viewport:`carousel-viewport`,track:`carousel-track`,motion:`motion-safe:[transition:translate_var(--motion-transition-state-change)]`},Sd=(e,t,n)=>t<=0?0:n?(e%t+t)%t:Math.min(Math.max(e,0),t-1);function Cd(e,t){let{className:n,children:r,index:i,defaultIndex:a=0,onChange:o,loop:s=!1,autoPlay:c=!1,interval:u=5e3,...d}=e,f=Y(),p=i!==void 0,[m,h]=l.useState(a),[g,_]=l.useState(c),[v,y]=l.useState(!1),b=l.useRef(o);rr(()=>{b.current=o},[o]);let x=[],S=[],C=null;l.Children.forEach(r,e=>{if(!l.isValidElement(e)){S.push(e);return}if(e.type===bd){x.push(e);return}if(e.type===_d&&C===null){C=e;return}S.push(e)});let w=x.length,T=Sd(p?i:m,w,s),E=(e,t)=>{let n=Sd(e,w,s);p||h(n),b.current?.(n,t)};l.useEffect(()=>{if(!g||v||w<2)return;let e=window.setTimeout(()=>{if(!s&&T>=w-1){_(!1);return}let e=Sd(T+1,w,s);p||h(e),b.current?.(e,`auto`)},u);return()=>{window.clearTimeout(e)}},[g,v,w,T,u,s,p]);let D={index:T,count:w,loop:s,autoPlay:c,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)(id.Provider,{value:D,children:(0,q.jsxs)(`section`,{ref:t,"aria-roledescription":`carousel`,className:G(xd.root,n),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:xd.viewport,"aria-live":L?`off`:`polite`,"aria-atomic":`false`,"data-component":`Carousel.Viewport`,children:(0,q.jsx)(`div`,{className:G(xd.track,xd.motion),style:{"--carousel-index":T},"data-component":`Carousel.Track`,children:x.map((e,t)=>(0,q.jsx)(ad.Provider,{value:{index:t},children:e},e.key??t))})}),C??(0,q.jsx)(_d,{}),S]})})}Cd.displayName=`Carousel`;var wd=K(Cd);const Td=Object.assign(wd,{Slide:bd,Controls:_d,PreviousButton:md,NextButton:ud,Indicators:cd,PlayButton:fd}),Ed=(0,l.createContext)(null),Dd=()=>{let e=(0,l.useContext)(Ed);if(!e)throw Error(`Chart parts have to be rendered inside a Chart`);return e},Od={root:`chart`};function kd(e,t){let{chart:n,className:r,children:i,...a}=e;return(0,q.jsx)(Ed.Provider,{value:n,children:(0,q.jsx)(`div`,{ref:t,className:G(Od.root,r),"data-component":`Chart`,...a,children:(0,q.jsx)(p.ResponsiveContainer,{width:`100%`,height:`100%`,children:i})})})}kd.displayName=`Chart`;var Ad=K(kd);function jd(e){let{id:t,fillOpacity:n,stops:r}=e,i=Dd();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))})}jd.displayName=`Chart.Gradient`;const Md=[`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)`],Nd=`var(--foreground-color-muted)`,Pd={blue:Md[0],orange:Md[1],purple:Md[2],green:Md[3],pink:Md[4],grid:`var(--border-color-muted)`,axis:`var(--border-color-default)`,surface:`var(--background-color-default)`,foreground:`var(--foreground-color-default)`,muted:Nd},Fd=(e,t)=>t??Md[e]??`var(--foreground-color-muted)`,Id=e=>typeof e==`object`&&!!e,Ld=(e,t)=>{if(!(!t||!Id(e)))return e[t]},Rd=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)},zd=(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())},Bd=e=>{let{data:t,series:n=[],sort:r,locale:i}=e,a=`chart-${l.useId().replace(/[^\w-]/g,``)}`,[o,s]=l.useState(null),c=n.map((e,t)=>({...e,color:Fd(t,e.color)})),u=l.useMemo(()=>r?[...t].sort((e,t)=>{let n=Number(e[r.by]),i=Number(t[r.by]);return r.direction===`desc`?i-n:n-i}):t,[t,r]),d=e=>e??`value`,f=e=>{if(e)return Pd[e]??e},p=l.useCallback(e=>{let t=new Intl.NumberFormat(i,e);return e=>t.format(e)},[i]),m=l.useCallback(e=>{let t=new Intl.DateTimeFormat(i,e);return e=>{let n=Rd(e);return Number.isNaN(n.getTime())?String(e):t.format(n)}},[i]),h=e=>{if(!Id(e))return;let t=c.find(t=>t.name===e.name||t.name===Ld(e.payload,`name`)||t.name===e.dataKey||t.name===Ld(e.payload,`dataKey`)),n=t?.name?.toString()??Ld(e.payload,`name`);return{name:n,color:t?.color??Ld(e.payload,`color`),icon:t?.icon,label:t?.label??n}},g=e=>zd(u,e),_=e=>t.reduce((t,n)=>t+Number(n[e]),0),v=e=>Math.min(...t.map(t=>Number(t[e]))),y=e=>Math.max(...t.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=>o===e;return{id:a,key:d,data:u,series:c,getSeries:h,groupBy:g,color:f,formatNumber:p,formatDate:m,highlightedSeries:o,setHighlightedSeries:s,isHighlightedSeries:S,getSeriesOpacity:(e,t=.2)=>{if(e&&o)return S(e)?1:t},getTotal:_,getMin:v,getMax:y,getPayloadTotal:b,getValuePercent:x}},Vd={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 Hd(e){let{payload:t,align:n=`center`,verticalAlign:r=`bottom`,layout:i=`auto`,title:a,nameKey:o,interaction:s=`hover`,className:c}=e,l=Dd(),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(Vd.root,c),"data-component":`Chart.Legend`,"data-align":n,"data-vertical-align":r,children:[a?(0,q.jsx)(`div`,{className:Vd.title,children:a}):null,(0,q.jsx)(`ul`,{className:Vd.list,"data-orientation":u,children:d.map((e,t)=>{let n=l.getSeries(e),r=n?.name,i=Ld(e.payload,o)??n?.label,a=(0,q.jsxs)(q.Fragment,{children:[n?.icon??(0,q.jsx)(`span`,{className:Vd.swatch,style:{background:l.color(n?.color)},"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:Vd.label,children:i})]});return(0,q.jsx)(`li`,{className:Vd.item,"data-component":`Chart.LegendItem`,"data-series":r,style:{opacity:l.getSeriesOpacity(r,.6)},children:s===`click`?(0,q.jsx)(`button`,{type:`button`,className:Vd.control,"aria-pressed":l.isHighlightedSeries(r),onClick:()=>{r&&l.setHighlightedSeries(e=>e===r?null:r)},children:a}):(0,q.jsx)(`span`,{className:Vd.control,onMouseEnter:()=>l.setHighlightedSeries(r??null),onMouseLeave:()=>l.setHighlightedSeries(null),children:a})},`${r??`series`}-${t}`)})})]}):null}Hd.displayName=`Chart.Legend`;const Ud={title:`chart-radial-title`,description:`chart-radial-description`},Wd=e=>`cx`in e&&`cy`in e;function Gd(e){let{viewBox:t,title:n,description:r,gap:i=24,fontSize:a=`2rem`}=e,o=Dd();return!t||!Wd(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:Ud.title,x:t.cx,y:t.cy,style:{fontSize:a,fill:o.color(`foreground`)},children:n}),r?(0,q.jsx)(`tspan`,{className:Ud.description,x:t.cx,y:t.cy+i,style:{fill:o.color(`muted`)},children:r}):null]})}Gd.displayName=`Chart.RadialText`;const Kd={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 qd(e){let{payload:t,label:n,labelFormatter:r,hideLabel:i,hideIndicator:a,hideSeriesLabel:o,showTotal:s,fitContent:c,nameKey:u,indicator:d=`dot`,formatter:f,render:p,className:m}=e,h=Dd(),g=t?.filter(e=>e.color!==`none`||e.type!==`none`),_=l.useMemo(()=>h.getPayloadTotal(g),[h,g]),v=l.useMemo(()=>{let e=g?.[0];if(!e)return;let t=`${Ld(e.payload,u)??n??e.dataKey??`value`}`;return r?.(t,g??[])??t},[n,r,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(Kd.root,m),"data-component":`Chart.Tooltip`,"data-fit-content":c?``:void 0,children:[i?null:(0,q.jsx)(`div`,{className:Kd.label,children:v}),(0,q.jsx)(`div`,{className:Kd.rows,children:g.map((e,t)=>{if(p)return(0,q.jsx)(l.Fragment,{children:p(e.payload)},t);let n=h.getSeries(e),[r,i]=y(e.value,n?.label??e.name);return(0,q.jsxs)(`div`,{className:Kd.row,"data-component":`Chart.TooltipRow`,"data-series":n?.name,children:[n?.icon??(n?.color&&!a?(0,q.jsx)(`span`,{className:Kd.swatch,"data-indicator":d,style:{background:h.color(n.color)},"aria-hidden":`true`}):null),o?null:(0,q.jsx)(`span`,{className:Kd.name,children:i}),(0,q.jsx)(`span`,{className:Kd.value,children:r})]},t)})}),s&&_!==void 0?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`hr`,{className:Kd.divider}),(0,q.jsxs)(`div`,{className:Kd.row,"data-component":`Chart.TooltipTotal`,children:[(0,q.jsx)(`span`,{className:Kd.name,children:`Total`}),(0,q.jsx)(`span`,{className:Kd.value,children:y(_,``)[0]})]})]}):null]})}qd.displayName=`Chart.Tooltip`;const Jd=Object.assign(Ad,{Gradient:jd,Legend:Hd,RadialText:Gd,Tooltip:qd}),Yd=(0,l.createContext)({}),Xd={checkmark:`url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=")`,dash:`url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K")`},Zd={root:`checkbox`,mark:`checkbox-mark`,checked:`checkbox-checked`,disabled:`checkbox-disabled`};function Qd(e,t){let{className:n,style:r,checked:i,indeterminate:a,required:o,validationStatus:s,value:c,onChange:u,...d}=e,f=l.useRef(null),p=ar(t,f),m=l.useContext(Yd);return rr(()=>{f.current&&(f.current.indeterminate=a??!1)},[a,i]),(0,q.jsx)(`input`,{ref:p,type:`checkbox`,checked:a&&i!==void 0?!1:i,required:o,value:c,name:c,"aria-checked":a?`mixed`:void 0,"aria-required":o?!0:void 0,"aria-invalid":s===`error`||void 0,onChange:e=>{m.onChange?.(e),u?.(e)},className:G(Zd.root,Zd.mark,Zd.checked,Zd.disabled,n),style:{...r,"--checkbox-mark":a?Xd.dash:Xd.checkmark},"data-component":`Checkbox`,...d})}Qd.displayName=`Checkbox`;var $d=K(Qd);const ef=(0,l.createContext)({}),tf={root:`checkbox-card-description`};function nf(e,t){let{className:n,id:r,...i}=e,{descriptionId:a}=l.useContext(ef);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(tf.root,n),"data-component":`CheckboxCard.Description`,...i})}nf.displayName=`CheckboxCard.Description`;var rf=K(nf);const af={root:`checkbox-card-label`};function of(e,t){let{className:n,id:r,...i}=e,{labelId:a}=l.useContext(ef);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(af.root,n),"data-component":`CheckboxCard.Label`,...i})}of.displayName=`CheckboxCard.Label`;var sf=K(of);const cf={root:`checkbox-card-leading-visual`};function lf(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(cf.root,n),"data-component":`CheckboxCard.LeadingVisual`,...i})}lf.displayName=`CheckboxCard.LeadingVisual`;var uf=K(lf);const df={body:`checkbox-card-body`,control:`checkbox-card-control`},ff=W(`checkbox-card`,{variants:{disabled:{true:`checkbox-card-disabled`,false:`checkbox-card-interactive`},validation:{error:`checkbox-card-error`,success:`checkbox-card-success`}}});function pf(e,t){let{className:n,children:r,value:i,checked:a,defaultChecked:o,indeterminate:s,disabled:c,required:u,validationStatus:d,onChange:f,id:p,"aria-label":m,"aria-labelledby":h,"aria-describedby":g,..._}=e,v=l.useContext(Yd).disabled||c,y=Y(p),b=`${y}-label`,x=`${y}-description`,[S,C]=xr(r,{leadingVisual:uf,label:sf,description:rf}),w=h??(S.label&&!m?b:void 0),T=[S.description?x:void 0,g].filter(Boolean).join(` `)||void 0;return(0,q.jsx)(ef.Provider,{value:{labelId:b,descriptionId:x},children:(0,q.jsxs)(`label`,{ref:t,className:G(ff({disabled:!!v,validation:d}),n),"data-component":`CheckboxCard`,"data-disabled":v,"data-required":u,"data-validation":d,..._,children:[S.leadingVisual,(0,q.jsxs)(`div`,{className:df.body,children:[S.label,S.description,C]}),(0,q.jsx)($d,{id:y,value:i,checked:a,defaultChecked:o,indeterminate:s,disabled:v,required:u,validationStatus:d,onChange:f,"aria-label":m,"aria-labelledby":w,"aria-describedby":T,className:df.control})]})})}pf.displayName=`CheckboxCard`;var mf=K(pf);const hf=Object.assign(mf,{LeadingVisual:uf,Label:sf,Description:rf}),gf={root:`checkbox-group-caption`};function _f(e,t){let{className:n,...r}=e,{captionId:i}=l.useContext(Yd);return(0,q.jsx)(`span`,{ref:t,id:i,className:G(gf.root,n),"data-component":`CheckboxGroup.Caption`,...r})}_f.displayName=`CheckboxGroup.Caption`;var vf=K(_f);const yf={root:`checkbox-group-label`,disabled:`checkbox-group-label-disabled`,hidden:`sr-only`,required:`checkbox-group-label-required`};function bf(e,t){let{className:n,children:r,visuallyHidden:i,...a}=e,{disabled:o,required:s}=l.useContext(Yd);return(0,q.jsxs)(`span`,{ref:t,title:s?`required field`:void 0,className:G(yf.root,o&&yf.disabled,i&&yf.hidden,n),"data-component":`CheckboxGroup.Label`,"data-label-disabled":o,...a,children:[r,s?(0,q.jsx)(`span`,{className:yf.required,children:`*`}):null]})}bf.displayName=`CheckboxGroup.Label`;var xf=K(bf);const Sf={success:Xt,error:fn},Cf={icon:`checkbox-group-validation-icon`},wf=W(`checkbox-group-validation`,{variants:{variant:{success:`checkbox-group-validation-success`,error:`checkbox-group-validation-error`}}});function Tf(e,t){let{className:n,children:r,variant:i,...a}=e,{validationMessageId:o}=l.useContext(Yd),s=Sf[i];return(0,q.jsxs)(`span`,{ref:t,className:G(wf({variant:i}),n),"data-component":`CheckboxGroup.Validation`,"data-validation-status":i,...a,children:[(0,q.jsx)(s,{className:Cf.icon,"aria-hidden":`true`}),(0,q.jsx)(`span`,{id:o,children:r})]})}Tf.displayName=`CheckboxGroup.Validation`;var Ef=K(Tf);const Df={root:`checkbox-group`,legend:`checkbox-group-legend`,legendVisible:`checkbox-group-legend-visible`,body:`checkbox-group-body`,validation:`checkbox-group-validation-slot`,hidden:`sr-only`},Of=e=>{let t=[],n=e=>{l.Children.forEach(e,e=>{if(l.isValidElement(e)){if(e.type===$d){let{checked:n,defaultChecked:r,value:i}=e.props;(n||r)&&i&&t.push(i);return}n(e.props.children)}})};return n(e),t};function kf(e,t){let{as:n=`fieldset`,className:r,children:i,disabled:a,required:o,onChange:s,id:c,"aria-labelledby":u,...d}=e,[f,p]=xr(i,{label:xf,caption:vf,validation:Ef}),m=Y(c),h=f.caption?`${m}-caption`:void 0,g=f.validation?`${m}-validation`:void 0,[_,v]=l.useState(()=>Of(i)),y=e=>{let{value:t,checked:n}=e.currentTarget,r=n?[..._,t]:_.filter(e=>e!==t);v(r),s?.(r,e)},b=l.isValidElement(f.label)?!f.label.props.visuallyHidden:!1,x={disabled:a,required:o,captionId:h,validationMessageId:g,onChange:y};return(0,q.jsx)(Yd.Provider,{value:x,children:(0,q.jsxs)(n,{ref:t,id:m,disabled:a,"aria-labelledby":f.label?void 0:u,"aria-describedby":[g,h].filter(Boolean).join(` `)||void 0,className:G(Df.root,r),"data-component":`CheckboxGroup`,"data-disabled":a,"data-required":o,...d,children:[f.label?(0,q.jsxs)(`legend`,{className:G(Df.legend,b&&Df.legendVisible),children:[f.label,o?(0,q.jsx)(`span`,{className:Df.hidden,children:`, required`}):null,f.caption]}):f.caption,(0,q.jsx)(`div`,{className:Df.body,children:p}),f.validation?(0,q.jsx)(`div`,{className:Df.validation,children:f.validation}):null]})})}kf.displayName=`CheckboxGroup`;var Af=K(kf);const jf=Object.assign(Af,{Label:xf,Caption:vf,Validation:Ef}),Mf=(0,l.createContext)({}),Nf=()=>(0,l.useContext)(Mf),Pf=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?.()}},Ff=async e=>{if(typeof navigator<`u`&&typeof navigator.clipboard?.writeText==`function`)try{await navigator.clipboard.writeText(e);return}catch(t){if(Pf(e))return;throw t}if(!Pf(e))throw Error(`The clipboard could not be reached`)},If=(e={})=>{let{value:t,defaultValue:n,timeout:r=3e3,disabled:i,onValueChange:a,onStatusChange:o,onCopyError:s}=e,c=t!==void 0,[u,d]=l.useState(n??``),f=c?t:u,[p,m]=l.useState(0),h=p>0,g=l.useRef(o);return l.useEffect(()=>{g.current=o},[o]),l.useEffect(()=>{if(p===0||r<=0)return;let e=window.setTimeout(()=>{m(0),g.current?.(!1)},r);return()=>{window.clearTimeout(e)}},[p,r]),{value:f,copied:h,disabled:!!i,copy:()=>{i||Ff(f).then(()=>{m(e=>e+1),o?.(!0)},e=>{s?.(e)})},setValue:e=>{c||d(e),a?.(e)}}},Lf={root:`clipboard`,hidden:`sr-only`};function Rf(e,t){let{as:n=`div`,className:r,value:i,defaultValue:a,timeout:o,disabled:s,copiedAnnouncement:c=`Copied to clipboard`,onValueChange:u,onStatusChange:d,onCopyError:f,children:p,...m}=e,h=If({value:i,defaultValue:a,timeout:o,disabled:s,onValueChange:u,onStatusChange:d,onCopyError:f}),[g,_]=l.useState(void 0),v={...h,inputId:g,setInputId:_};return(0,q.jsx)(Mf.Provider,{value:v,children:(0,q.jsxs)(n,{ref:t,className:G(Lf.root,r),"data-component":`Clipboard`,"data-copied":h.copied,"data-disabled":h.disabled,...m,children:[p,c===null?null:(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Lf.hidden,"data-component":`Clipboard.Announcement`,children:h.copied?c:``})]})})}Rf.displayName=`Clipboard`;var zf=K(Rf);const Bf={root:`clipboard-control`};function Vf(e,t){let{as:n=`div`,className:r,...i}=e,{copied:a}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(Bf.root,r),"data-component":`Clipboard.Control`,"data-copied":!!a,...i})}Vf.displayName=`Clipboard.Control`;var Hf=K(Vf);const Uf={root:`clipboard-copy-text`,hidden:`sr-only`};function Wf(e,t){let{as:n=`span`,className:r,children:i=`Copy`,copied:a=`Copied`,visuallyHidden:o,...s}=e,{copied:c}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(Uf.root,o&&Uf.hidden,r),"data-component":`Clipboard.CopyText`,"data-copied":!!c,...s,children:c?a:i})}Wf.displayName=`Clipboard.CopyText`;var Gf=K(Wf);const Kf={root:`clipboard-indicator`,copied:`clipboard-indicator-copied`};function qf(e,t){let{as:n=`span`,className:r,children:i,copied:a,...o}=e,{copied:s}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(Kf.root,s&&Kf.copied,r),"aria-hidden":`true`,"data-component":`Clipboard.Indicator`,"data-copied":!!s,...o,children:s?a??(0,q.jsx)(Zt,{}):i??(0,q.jsx)(cn,{})})}qf.displayName=`Clipboard.Indicator`;var Jf=K(qf);const Yf=(0,l.createContext)({}),Xf=e=>{let{id:t,disabled:n,required:r,captionId:i,validationMessageId:a}=l.useContext(Yf);return{id:t,disabled:n,required:r,"aria-describedby":[a,i].filter(Boolean).join(` `)||void 0,...e}},Zf={root:`clipboard-input`};function Qf(e,t){let{required:n,...r}=Xf(e),{className:i,id:a,disabled:o,onFocus:s,...c}=r,{value:u,copied:d,disabled:f,setInputId:p}=l.useContext(Mf),m=Y(a);return rr(()=>(p?.(m),()=>p?.(void 0)),[m,p]),(0,q.jsx)(qo,{ref:t,id:m,value:u??``,readOnly:!0,disabled:o??f,onFocus:e=>{s?.(e),!e.defaultPrevented&&e.target.select()},className:G(Zf.root,i),"data-component":`Clipboard.Input`,"data-copied":!!d,...c})}Qf.displayName=`Clipboard.Input`;var $f=K(Qf);const ep={root:`clipboard-label`,disabled:`clipboard-label-disabled`};function tp(e,t){let{as:n=`label`,className:r,htmlFor:i,...a}=e,{inputId:o,disabled:s}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,htmlFor:n===`label`?i??o:void 0,className:G(ep.root,s&&ep.disabled,r),"data-component":`Clipboard.Label`,"data-disabled":!!s,...a})}tp.displayName=`Clipboard.Label`;var np=K(tp);const rp={root:`clipboard-trigger`};function ip(e,t){let{className:n,children:r,label:i=`Copy`,disabled:a,onClick:o,...s}=e,{copied:c,disabled:u,copy:d}=l.useContext(Mf),[f,p]=xr(r,{indicator:Jf}),m=f.indicator??(0,q.jsx)(Jf,{}),h=p.some(e=>e!=null&&e!==!1),g={disabled:a??u,onClick:e=>{o?.(e),!e.defaultPrevented&&d?.()},className:G(rp.root,n),"data-component":`Clipboard.Trigger`,"data-copied":!!c,...s};return h?(0,q.jsx)(pi,{ref:t,leadingVisual:m,...g,children:p}):(0,q.jsx)(gi,{ref:t,icon:m,"aria-label":i,...g})}ip.displayName=`Clipboard.Trigger`;var ap=K(ip);const op={root:`clipboard-value-text`};function sp(e,t){let{as:n=`span`,className:r,children:i,...a}=e,{value:o,copied:s}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(op.root,r),"data-component":`Clipboard.ValueText`,"data-copied":!!s,...a,children:i??o})}sp.displayName=`Clipboard.ValueText`;var cp=K(sp);const lp=Object.assign(zf,{Root:zf,Label:np,Control:Hf,Input:$f,Trigger:ap,Indicator:Jf,CopyText:Gf,ValueText:cp}),up={root:`code`};function dp(e,t){let{as:n=`code`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(up.root,r),"data-component":`Code`,...i})}dp.displayName=`Code`;var fp=K(dp);const pp=(0,l.createContext)({}),mp=`text`,hp=`github-light`,gp=`github-dark`,_p=e=>e.split(`
26
+ <%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require("react"),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),q=o(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?Ot():kt()}))();const At={root:`accordion`};function jt(e,t){let{as:n=`div`,className:r,value:i,defaultValue:a,onChange:o,multiple:s=!1,disabled:c,headingLevel:u=`h3`,keepMounted:d=!0,hiddenUntilFound:f=!1,...p}=e,m=i!==void 0,[h,g]=l.useState(()=>a??[]),_=m?i:h,v=(e,t)=>{if(c||_.includes(e)===t)return;let n=t?s?[..._,e]:[e]:_.filter(t=>t!==e);m||g(n),o?.(n)},y={open:_,setOpen:v,toggle:e=>v(e,!_.includes(e)),disabled:c,headingLevel:u,keepMounted:d,hiddenUntilFound:f};return(0,q.jsx)(Dt.Provider,{value:y,children:(0,q.jsx)(n,{ref:t,className:G(At.root,r),"data-component":`Accordion`,"data-multiple":s,"data-disabled":!!c,...p})})}jt.displayName=`Accordion`;var Mt=K(jt);function J(e,t,n){let r=n(),i=Object.keys(r),a=u.default.forwardRef(({"aria-label":e,"aria-labelledby":n,tabIndex:a,className:o=``,fill:s=`currentColor`,size:c=16,id:l,title:d,style:f,...p},m)=>{let h=c,g=Nt(i,h),_=r[g].width,v=_/parseInt(g,10)*h,y=r[g].path,b=e||n,x=b?`img`:void 0,S=`${t} ${o}`.trim();return u.default.createElement(`svg`,{ref:m,...p,"aria-hidden":b?void 0:`true`,tabIndex:a,focusable:(a??-1)>=0?`true`:`false`,"aria-label":e,"aria-labelledby":n,className:S,role:x,viewBox:`0 0 ${_} ${g}`,width:v,height:h,fill:s,id:l,display:`inline-block`,overflow:`visible`,style:f},d?u.default.createElement(`title`,null,d):null,y)});return a.displayName=e,a}function Nt(e,t){return e.map(e=>parseInt(e,10)).reduce((e,n)=>n<=t?n:e,parseInt(e[0],10)).toString()}const Pt=J(`AddRegular`,`icon icon-add-regular`,()=>({24:{width:24,path:u.default.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`})}})),Ft=J(`ArchiveRegular`,`icon icon-archive-regular`,()=>({24:{width:24,path:u.default.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`})}})),It=J(`ArrowClockwiseRegular`,`icon icon-arrow-clockwise-regular`,()=>({24:{width:24,path:u.default.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`})}})),Lt=J(`ArrowDownRegular`,`icon icon-arrow-down-regular`,()=>({24:{width:24,path:u.default.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`})}})),Rt=J(`ArrowLeftRegular`,`icon icon-arrow-left-regular`,()=>({24:{width:24,path:u.default.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`})}})),zt=J(`ArrowMaximizeRegular`,`icon icon-arrow-maximize-regular`,()=>({24:{width:24,path:u.default.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`})}})),Bt=J(`ArrowMinimizeRegular`,`icon icon-arrow-minimize-regular`,()=>({24:{width:24,path:u.default.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`})}})),Vt=J(`ArrowMoveRegular`,`icon icon-arrow-move-regular`,()=>({24:{width:24,path:u.default.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`})}})),Ht=J(`ArrowRedoRegular`,`icon icon-arrow-redo-regular`,()=>({24:{width:24,path:u.default.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`})}})),Ut=J(`ArrowSortDownRegular`,`icon icon-arrow-sort-down-regular`,()=>({24:{width:24,path:u.default.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`})}})),Wt=J(`ArrowSortUpRegular`,`icon icon-arrow-sort-up-regular`,()=>({24:{width:24,path:u.default.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`})}})),Gt=J(`ArrowUndoRegular`,`icon icon-arrow-undo-regular`,()=>({24:{width:24,path:u.default.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`})}})),Kt=J(`ArrowUpRegular`,`icon icon-arrow-up-regular`,()=>({24:{width:24,path:u.default.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`})}})),qt=J(`ArrowUploadRegular`,`icon icon-arrow-upload-regular`,()=>({24:{width:24,path:u.default.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`})}})),Jt=J(`BranchRegular`,`icon icon-branch-regular`,()=>({24:{width:24,path:u.default.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`})}})),Yt=J(`CalendarLtrRegular`,`icon icon-calendar-ltr-regular`,()=>({24:{width:24,path:u.default.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`})}})),Xt=J(`CheckmarkCircleRegular`,`icon icon-checkmark-circle-regular`,()=>({24:{width:24,path:u.default.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`})}})),Zt=J(`CheckmarkRegular`,`icon icon-checkmark-regular`,()=>({24:{width:24,path:u.default.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`})}})),Qt=J(`ChevronDownRegular`,`icon icon-chevron-down-regular`,()=>({24:{width:24,path:u.default.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`})}})),$t=J(`ChevronLeftRegular`,`icon icon-chevron-left-regular`,()=>({24:{width:24,path:u.default.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`})}})),en=J(`ChevronRightRegular`,`icon icon-chevron-right-regular`,()=>({24:{width:24,path:u.default.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`})}})),tn=J(`ChevronUpRegular`,`icon icon-chevron-up-regular`,()=>({24:{width:24,path:u.default.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`})}})),nn=J(`CircleHintRegular`,`icon icon-circle-hint-regular`,()=>({24:{width:24,path:u.default.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`})}})),rn=J(`CircleRegular`,`icon icon-circle-regular`,()=>({24:{width:24,path:u.default.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`})}})),an=J(`CircleSmallRegular`,`icon icon-circle-small-regular`,()=>({24:{width:24,path:u.default.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`})}})),on=J(`ClockRegular`,`icon icon-clock-regular`,()=>({24:{width:24,path:u.default.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`})}})),sn=J(`CodeRegular`,`icon icon-code-regular`,()=>({24:{width:24,path:u.default.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`})}})),cn=J(`CopyRegular`,`icon icon-copy-regular`,()=>({24:{width:24,path:u.default.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`})}})),ln=J(`DismissCircleRegular`,`icon icon-dismiss-circle-regular`,()=>({24:{width:24,path:u.default.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`})}})),un=J(`DismissRegular`,`icon icon-dismiss-regular`,()=>({24:{width:24,path:u.default.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`})}})),dn=J(`DocumentRegular`,`icon icon-document-regular`,()=>({24:{width:24,path:u.default.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`})}})),fn=J(`ErrorCircleRegular`,`icon icon-error-circle-regular`,()=>({24:{width:24,path:u.default.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`})}})),pn=J(`EyeOffRegular`,`icon icon-eye-off-regular`,()=>({24:{width:24,path:u.default.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`})}})),mn=J(`EyeRegular`,`icon icon-eye-regular`,()=>({24:{width:24,path:u.default.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`})}})),hn=J(`FilterDismissRegular`,`icon icon-filter-dismiss-regular`,()=>({24:{width:24,path:u.default.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`})}})),gn=J(`FolderOpenRegular`,`icon icon-folder-open-regular`,()=>({24:{width:24,path:u.default.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`})}})),_n=J(`FolderRegular`,`icon icon-folder-regular`,()=>({24:{width:24,path:u.default.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`})}})),vn=J(`InfoRegular`,`icon icon-info-regular`,()=>({24:{width:24,path:u.default.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`})}})),yn=J(`LayerRegular`,`icon icon-layer-regular`,()=>({24:{width:24,path:u.default.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`})}})),bn=J(`LineRegular`,`icon icon-line-regular`,()=>({24:{width:24,path:u.default.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`})}})),xn=J(`LinkRegular`,`icon icon-link-regular`,()=>({24:{width:24,path:u.default.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`})}})),Sn=J(`MergeRegular`,`icon icon-merge-regular`,()=>({24:{width:24,path:u.default.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`})}})),Cn=J(`MoreHorizontalRegular`,`icon icon-more-horizontal-regular`,()=>({24:{width:24,path:u.default.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`})}})),wn=J(`PauseRegular`,`icon icon-pause-regular`,()=>({24:{width:24,path:u.default.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`})}})),Tn=J(`PlayRegular`,`icon icon-play-regular`,()=>({24:{width:24,path:u.default.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`})}})),En=J(`ProhibitedRegular`,`icon icon-prohibited-regular`,()=>({24:{width:24,path:u.default.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`})}})),Dn=J(`RecordRegular`,`icon icon-record-regular`,()=>({24:{width:24,path:u.default.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`})}})),On=J(`SearchRegular`,`icon icon-search-regular`,()=>({24:{width:24,path:u.default.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`})}})),kn=J(`ShapesRegular`,`icon icon-shapes-regular`,()=>({24:{width:24,path:u.default.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`})}})),An=J(`ShieldCheckmarkRegular`,`icon icon-shield-checkmark-regular`,()=>({24:{width:24,path:u.default.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`})}})),jn=J(`ShieldDismissRegular`,`icon icon-shield-dismiss-regular`,()=>({24:{width:24,path:u.default.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`})}})),Mn=J(`ShieldErrorRegular`,`icon icon-shield-error-regular`,()=>({24:{width:24,path:u.default.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`})}})),Nn=J(`ShieldRegular`,`icon icon-shield-regular`,()=>({24:{width:24,path:u.default.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`})}})),Pn=J(`SubtractRegular`,`icon icon-subtract-regular`,()=>({24:{width:24,path:u.default.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`})}})),Fn=J(`TextBoldRegular`,`icon icon-text-bold-regular`,()=>({24:{width:24,path:u.default.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`})}})),In=J(`TextBulletListLtrRegular`,`icon icon-text-bullet-list-ltr-regular`,()=>({24:{width:24,path:u.default.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`})}})),Ln=J(`TextHeader_1Regular`,`icon icon-text-header-1-regular`,()=>({24:{width:24,path:u.default.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`})}})),Rn=J(`TextHeader_2Regular`,`icon icon-text-header-2-regular`,()=>({24:{width:24,path:u.default.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`})}})),zn=J(`TextHeader_3Regular`,`icon icon-text-header-3-regular`,()=>({24:{width:24,path:u.default.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`})}})),Bn=J(`TextItalicRegular`,`icon icon-text-italic-regular`,()=>({24:{width:24,path:u.default.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`})}})),Vn=J(`TextNumberListLtrRegular`,`icon icon-text-number-list-ltr-regular`,()=>({24:{width:24,path:u.default.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`})}})),Hn=J(`TextQuoteRegular`,`icon icon-text-quote-regular`,()=>({24:{width:24,path:u.default.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`})}})),Un=J(`TextStrikethroughRegular`,`icon icon-text-strikethrough-regular`,()=>({24:{width:24,path:u.default.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`})}})),Wn=J(`TextUnderlineRegular`,`icon icon-text-underline-regular`,()=>({24:{width:24,path:u.default.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`})}})),Gn=J(`WarningRegular`,`icon icon-warning-regular`,()=>({24:{width:24,path:u.default.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`})}})),Kn=(0,l.createContext)({}),qn={heading:`accordion-header`,button:`accordion-header-button`,disabled:`accordion-header-button-disabled`,label:`min-w-0`,indicator:`accordion-header-indicator`,indicatorOpen:`rotate-180`};function Jn(e,t){let{className:n,children:r,headingLevel:i,...a}=e,{headingLevel:o}=l.useContext(Dt),{headerId:s,panelId:c,isOpen:u,disabled:d,isPanelPresent:f,toggle:p}=l.useContext(Kn);return(0,q.jsx)(i??o??`h3`,{className:qn.heading,"data-component":`Accordion.Header`,children:(0,q.jsxs)(`button`,{ref:t,type:`button`,id:s,className:G(qn.button,d&&qn.disabled,n),onClick:p,disabled:d,"aria-expanded":!!u,"aria-controls":f?c:void 0,"data-component":`Accordion.HeaderButton`,"data-open":!!u,...a,children:[(0,q.jsx)(`span`,{className:qn.label,children:r}),(0,q.jsx)(Qt,{className:G(qn.indicator,u&&qn.indicatorOpen),"aria-hidden":`true`})]})})}Jn.displayName=`Accordion.Header`;var Yn=K(Jn);const Y=e=>{let t=(0,l.useId)();return e||t},Xn={root:`accordion-item`};function Zn(e,t){let{as:n=`div`,className:r,value:i,disabled:a,...o}=e,{open:s,setOpen:c,toggle:u,disabled:d,keepMounted:f,hiddenUntilFound:p}=l.useContext(Dt),m=Y(),h=i??m,g=s?.includes(h)??!1,_=a??d??!1,[v,y]=l.useState(!0),b={headerId:`${m}-header`,panelId:`${m}-panel`,isOpen:g,disabled:_,keepMounted:f,hiddenUntilFound:p,isPanelPresent:v,setPanelPresent:y,setOpen:e=>c?.(h,e),toggle:()=>u?.(h)};return(0,q.jsx)(Kn.Provider,{value:b,children:(0,q.jsx)(n,{ref:t,className:G(Xn.root,r),"data-component":`Accordion.Item`,"data-value":h,"data-open":g,"data-disabled":_,...o})})}Zn.displayName=`Accordion.Item`;var Qn=K(Zn);const $n=!!(typeof window<`u`&&window.document&&window.document.createElement),er=l.version.split(`.`),tr=parseInt(er[0],10),nr=/^0\.0\.0-experimental-[a-f0-9]{8}-\d{8}$/.test(l.version),rr=$n?l.useLayoutEffect:l.useEffect,ir=tr>=19||nr,ar=(e,t)=>(0,l.useCallback)(n=>{let r=or(e,n),i=or(t,n);if(ir)return()=>{r?r():or(e,null),i?i():or(t,null)}},[e,t]),or=(e,t)=>{if(typeof e==`function`)return e(t);e&&(e.current=t)},sr={root:`accordion-panel`};function cr(e,t){let{as:n=`div`,className:r,...i}=e,{headerId:a,panelId:o,isOpen:s,keepMounted:c,hiddenUntilFound:u,setOpen:d,setPanelPresent:f}=l.useContext(Kn),p=l.useRef(null),m=ar(t,p),h=(c??!0)||!!u||!!s;return rr(()=>(f?.(h),()=>f?.(!1)),[h,f]),rr(()=>{let e=p.current;!e||!s||e.style.setProperty(`--accordion-panel-height`,`${e.scrollHeight}px`)},[s]),rr(()=>{let e=p.current;!e||!u||s||e.setAttribute(`hidden`,`until-found`)},[u,s]),l.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)(n,{ref:m,id:o,hidden:!s,role:`region`,"aria-labelledby":a,className:G(sr.root,r),"data-component":`Accordion.Panel`,"data-open":!!s,...i}):null}cr.displayName=`Accordion.Panel`;var lr=K(cr);const ur=Object.assign(Mt,{Item:Qn,Header:Yn,Panel:lr}),dr=[`[disabled]`,`[hidden]`,`[inert]`,`[tabindex='-1']`],fr=[`a[href]`,`button`,`summary`,`select`,`input:not([type=hidden])`,`textarea`,`[tabindex='0']`,`audio[controls]`,`video[controls]`,`[contenteditable]`].map(e=>`${e}:not(${dr.join(`):not(`)})`).join(`, `),pr=e=>{if(e.matches(`[disabled], [hidden], [inert]`))return!0;let t=getComputedStyle(e);return t.display===`none`||t.visibility===`hidden`},mr=e=>!e||pr(e)?[]:Array.from(e.querySelectorAll(fr)).filter(e=>!pr(e)),hr=e=>mr(e).length>0,gr={vertical:{previous:`ArrowUp`,next:`ArrowDown`},horizontal:{previous:`ArrowLeft`,next:`ArrowRight`}},_r=({containerRef:e,direction:t=`vertical`,wrap:n=!1,disabled:r,focusableFilter:i})=>{(0,l.useEffect)(()=>{let a=e.current;if(!a||r)return;let{previous:o,next:s}=gr[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=mr(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])},vr=(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},yr=(e,t)=>(t.__SLOT__&&(e.__SLOT__=t.__SLOT__),e),br=(e,t)=>{if(Array.isArray(t)){let[n,r]=t;return(e.type===n||vr(e,n))&&r(e.props)}return e.type===t||vr(e,t)},xr=(e,t)=>{let n=[],r=Object.keys(t),i=Object.values(t),a=r.length,o={};for(let e=0;e<a;e++)o[r[e]]=void 0;let s=0;return l.default.Children.forEach(e,e=>{if(!l.default.isValidElement(e)){n.push(e);return}if(s===a){n.push(e);return}let t=Sr(e,i,a);if(t===-1){n.push(e);return}let c=r[t];o[c]===void 0&&(o[c]=e,s++)}),[o,n]},Sr=(e,t,n)=>{for(let r=0;r<n;r++)if(br(e,t[r]))return r;return-1},Cr=W(`heading`,{variants:{size:{large:`text-title-large`,medium:`text-title-medium`,small:`text-title-small`}}});function wr(e,t){let{as:n=`h2`,className:r,size:i=`large`,...a}=e;return(0,q.jsx)(n,{ref:t,className:G(Cr({size:i}),r),"data-component":`Heading`,"data-size":i,...a})}wr.displayName=`Heading`;var Tr=K(wr);const Er=(0,l.createContext)({}),Dr={root:`action-list-heading`,hidden:`sr-only`};function Or(e,t){let{as:n,className:r,visuallyHidden:i=!1,id:a,...o}=e,{headingId:s}=l.useContext(Er);return(0,q.jsx)(Tr,{ref:t,as:n,id:a??s,className:G(Dr.root,i&&Dr.hidden,r),"data-component":`ActionList.Heading`,...o})}Or.displayName=`ActionList.Heading`;var kr=K(Or);const Ar=(0,l.createContext)({}),jr=W(`action-list`,{variants:{variant:{inset:`action-list-inset`,full:`action-list-full`},dividers:{true:`action-list-dividers`,false:``}}}),Mr={heading:kr},Nr=[`menu`,`menubar`,`listbox`];function Pr(e,t){let{as:n=`ul`,className:r,children:i,variant:a=`inset`,selectionVariant:o,showDividers:s=!1,disableFocusZone:c=!1,role:u,...d}=e,[f,p]=xr(i,Mr),m=Y(),{listRole:h,listLabel:g,listLabelledBy:_,selectionVariant:v,enableFocusZone:y}=l.useContext(Ar),b=u??h,x=o??v,S=f.heading?f.heading.props.id??m:_,C=l.useRef(null),w=ar(t,C),T=y??(b!==void 0&&!c&&Nr.includes(b));_r({containerRef:C,disabled:!T,wrap:b===`menu`});let E=l.useMemo(()=>({variant:a,selectionVariant:x,showDividers:s,role:b,headingId:m}),[a,x,s,b,m]);return(0,q.jsxs)(Er.Provider,{value:E,children:[f.heading,(0,q.jsx)(n,{ref:w,role:b,"aria-label":S?void 0:g,"aria-labelledby":S,className:G(jr({variant:a,dividers:s}),r),"data-component":`ActionList`,"data-variant":a,"data-dividers":s?``:void 0,...d,children:p})]})}Pr.displayName=`ActionList`;var Fr=K(Pr);const Ir=(0,l.createContext)({}),Lr={root:`action-list-description`,inline:`min-w-0 truncate`};function Rr(e){let{className:t,variant:n=`inline`,...r}=e,{blockDescriptionId:i,inlineDescriptionId:a}=l.useContext(Ir);return(0,q.jsx)(`span`,{id:n===`block`?i:a,className:G(Lr.root,n===`inline`&&Lr.inline,t),"data-component":`ActionList.Description`,"data-variant":n,...r})}Rr.displayName=`ActionList.Description`;const zr={root:`action-list-divider`};function Br(e){let{className:t,...n}=e;return(0,q.jsx)(`li`,{"aria-hidden":`true`,className:G(zr.root,t),"data-component":`ActionList.Divider`,...n})}Br.displayName=`ActionList.Divider`;const Vr=(0,l.createContext)({}),Hr={__SLOT__:Symbol(`ActionList.GroupHeading`)},Ur={heading:`action-list-group-heading-label`,auxiliary:`action-list-group-heading-auxiliary`},Wr=W(`action-list-group-heading`,{variants:{variant:{subtle:``,filled:`action-list-group-heading-filled`}}});function Gr(e){let{as:t,className:n,children:r,variant:i=`subtle`,auxiliaryText:a,...o}=e,{role:s}=l.useContext(Er),{groupHeadingId:c}=l.useContext(Vr),u=s!==void 0&&s!==`list`,d=t??`h3`;return(0,q.jsxs)(`div`,{className:G(Wr({variant:i})),"data-component":`ActionList.GroupHeading`,"data-variant":i,...u?{role:`presentation`,"aria-hidden":!0}:{},children:[u?(0,q.jsx)(`span`,{id:c,className:G(Ur.heading,n),...o,children:r}):(0,q.jsx)(d,{id:c,className:G(Ur.heading,n),...o,children:r}),a?(0,q.jsx)(`div`,{className:Ur.auxiliary,children:a}):null]})}Gr.displayName=`ActionList.GroupHeading`;const Kr=yr(Gr,Hr),qr={root:`action-list-group`,list:`action-list-group-items`},Jr={groupHeading:Kr};function Yr(e){let{className:t,children:n,selectionVariant:r,role:i,"aria-label":a,...o}=e,s=Y(),{role:c}=l.useContext(Er),[u,d]=xr(n,Jr),f=u.groupHeading?u.groupHeading.props.id??s:void 0,p=l.useMemo(()=>({selectionVariant:r,groupHeadingId:f}),[r,f]),m=c&&typeof u.groupHeading?.props.children==`string`?u.groupHeading.props.children:void 0;return(0,q.jsx)(`li`,{className:G(qr.root,t),"data-component":`ActionList.Group`,role:c?`none`:void 0,...o,children:(0,q.jsxs)(Vr.Provider,{value:p,children:[u.groupHeading,(0,q.jsx)(`ul`,{className:qr.list,role:i??(c?`group`:void 0),"aria-labelledby":c?void 0:f,"aria-label":a??m,children:d})]})})}Yr.displayName=`ActionList.Group`;const Xr={root:`spinner`,srOnly:`sr-only`},Zr=W(`motion-safe:animate-spin`,{variants:{size:{small:`spinner-small`,medium:`spinner-medium`,large:`spinner-large`}}});function Qr(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(Xr.root,a),"data-component":`Spinner`,...s,children:[(0,q.jsx)(It,{className:G(Zr({size:r})),"aria-hidden":`true`}),i!==null&&o===void 0?(0,q.jsx)(`span`,{className:Xr.srOnly,children:i}):null]})}Qr.displayName=`Spinner`;var $r=K(Qr);const ei={root:`action-list-visual`,muted:`action-list-visual-muted`,inherit:`action-list-visual-inherit`},ti=({className:e,...t})=>{let{variant:n,disabled:r,inactive:i}=l.useContext(Ir),a=n===`danger`||r||i;return(0,q.jsx)(`span`,{className:G(ei.root,a?ei.inherit:ei.muted,e),...t})};function ni(e){return(0,q.jsx)(ti,{"data-component":`ActionList.LeadingVisual`,...e})}ni.displayName=`ActionList.LeadingVisual`;function ri({children:e}){return(0,q.jsx)(q.Fragment,{children:e})}ri.displayName=`ActionList.SubItem`;const ii={srOnly:`sr-only`},ai=W(`counter-label`,{variants:{variant:{primary:`counter-label-primary`,secondary:`counter-label-secondary`}}});function oi(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(ai({variant:i}),r),"data-component":`CounterLabel`,"data-variant":i,...o,children:a}),(0,q.jsxs)(`span`,{className:ii.srOnly,children:[`\xA0(`,a,`)`]})]})}oi.displayName=`CounterLabel`;var si=K(oi);const ci={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`},li=(e,t,n,r)=>{let i=e;return(0,q.jsx)(`span`,{"data-component":t,className:G(ci.visualBase,n&&ci.loadingSpinner,r),children:n?(0,q.jsx)($r,{size:`small`,srText:null,role:`presentation`}):l.isValidElement(e)?e:(0,q.jsx)(i,{})})};function ui(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`?ci.inactiveLink:ci.inactive:ci.variant[u][k?`disabled`:`rest`],F=A?ci.visual[u]:ci.visualMuted,I=A?ci.counter[u]:u===`danger`?ci.counterMutedDanger:G(ci.counter[u],ci.counterMuted),L=(0,q.jsx)(n,{ref:t,className:G(ci.base,ci.size[d],u===`link`&&ci.link,u===`link`&&!j&&ci.linkUnderlines,P,a&&A&&ci.iconTone[u],k&&ci.disabled,p&&ci.block,_&&ci.labelWrapRoot,_&&ci.labelWrapHeight[d],N&&ci.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?li(a,`icon`,O,``):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`span`,{"data-component":`buttonContent`,"data-align":f,className:G(ci.content,!M&&ci.contentGap[d],ci.align[f],_&&ci.labelWrapContent[d]),children:[M?li($r,`loadingSpinner`,!0,G(F,ci.standaloneSpinner)):null,o?li(o,`leadingVisual`,O,G(F,ci.leadingVisual)):null,i?(0,q.jsx)(`span`,{"data-component":`text`,id:O?E:void 0,className:G(ci.label,ci.labelLineHeight[d],_&&ci.labelWrapLabel,M&&ci.labelHidden),children:i}):null,l!==void 0&&!s?li((0,q.jsx)(si,{className:I,"data-component":`ButtonCounter`,children:l}),`trailingVisual`,O&&!o,ci.trailingVisual):s?li(s,`trailingVisual`,O&&!o,G(F,ci.trailingVisual)):null]}),c?li(c,`trailingAction`,O&&!o&&!s,G(F,ci.trailingAction)):null]})});return m===void 0?L:(0,q.jsxs)(`span`,{className:p?ci.loadingWrapperBlock:ci.loadingWrapper,"data-loading-wrapper":``,children:[L,(0,q.jsx)(`span`,{id:D,role:`status`,className:ci.srOnly,children:O?h:``})]})}ui.displayName=`ButtonBase`;var di=K(ui);function fi(e,t){let{as:n=`button`,type:r=`button`,...i}=e;return(0,q.jsx)(di,{ref:t,as:n,type:r,...i})}fi.displayName=`Button`;var pi=K(fi);const mi=W(`icon-button`,{variants:{size:{small:`icon-button-small`,medium:`icon-button-medium`,large:`icon-button-large`}}});function hi(e,t){let{as:n=`button`,className:r,size:i=`medium`,...a}=e;return(0,q.jsx)(di,{ref:t,as:n,type:`button`,size:i,"data-component":`IconButton`,className:G(mi({size:i}),r),...a})}hi.displayName=`IconButton`;var gi=K(hi);const _i={root:`action-list-trailing-action`,action:`action-list-trailing-action-button`};function vi(e,t){let{className:n,icon:r,label:i,...a}=e;return(0,q.jsx)(`span`,{className:_i.root,"data-component":`ActionList.TrailingAction`,children:r?(0,q.jsx)(gi,{ref:t,icon:r,"aria-label":i,variant:`invisible`,size:`small`,className:G(_i.action,n),...a}):(0,q.jsx)(pi,{ref:t,variant:`invisible`,size:`small`,className:G(_i.action,n),...a,children:i})})}vi.displayName=`ActionList.TrailingAction`;var yi=K(vi);function bi(e){let{trailingVisualId:t}=l.useContext(Ir);return(0,q.jsx)(ti,{id:t,"data-component":`ActionList.TrailingVisual`,...e})}bi.displayName=`ActionList.TrailingVisual`;const xi={unselected:`invisible`,checkmark:`action-list-selection-checkmark`,checkbox:`action-list-selection-checkbox`,checkboxSelected:`action-list-selection-checkbox-selected`},Si=({selected:e,className:t})=>{let{selectionVariant:n}=l.useContext(Er),{selectionVariant:r}=l.useContext(Vr),i=r===void 0?n:r;return i?i===`multiple`?(0,q.jsx)(ti,{className:t,"data-component":`ActionList.Selection`,children:(0,q.jsx)(`span`,{className:G(xi.checkbox,e&&xi.checkboxSelected),children:(0,q.jsx)(Zt,{className:e?void 0:xi.unselected})})}):(0,q.jsx)(ti,{className:t,"data-component":`ActionList.Selection`,children:(0,q.jsx)(Zt,{className:G(xi.checkmark,!e&&xi.unselected)})}):null},Ci={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`},wi={leadingVisual:ni,trailingVisual:bi,trailingAction:yi,description:Rr,subItem:ri},Ti=[`option`,`menuitem`,`menuitemradio`,`menuitemcheckbox`],Ei=[`listbox`,`menu`,`list`];function Di(e,t){let{as:n,className:r,children:i,id:a,role:o,variant:s=`default`,size:c=`medium`,selected:u,active:d=!1,disabled:f=!1,loading:p=!1,inactiveText:m,onSelect:h,...g}=e,[_,v]=xr(i,wi),{container:y,afterSelect:b,selectionAttribute:x,defaultTrailingVisual:S}=l.useContext(Ar),{role:C,selectionVariant:w}=l.useContext(Er),{selectionVariant:T}=l.useContext(Vr),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=o??O,A=x??(k===`menuitemradio`||k===`menuitemcheckbox`?`aria-checked`:k===`option`?`aria-selected`:void 0),j=C!==void 0&&Ei.includes(C)||E||k!==void 0&&Ti.includes(k),M=n??(j?`div`:`button`),N=n!==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(a),z=`${R}--label`,te=`${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)(bi,{children:S}):null),ae=p&&!E,oe=(0,q.jsx)($r,{size:`small`,srText:null}),se=ae&&_.leadingVisual?(0,q.jsx)(ni,{children:oe}):_.leadingVisual,ce=ae&&!_.leadingVisual?(0,q.jsx)(bi,{children:oe}):ie,le=[_.description?V===`block`?ne:te: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":[z,_.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=l.useMemo(()=>({variant:s,size:c,disabled:f,inactive:E,inlineDescriptionId:te,blockDescriptionId:ne,trailingVisualId:B}),[s,c,f,E,te,ne,B]),pe=G(Ci.content,Ci.size[c],s===`danger`&&!f&&!E&&Ci.danger,d&&Ci.active,p&&Ci.loading,E&&Ci.inactive,f&&Ci.disabled);return(0,q.jsx)(Ir.Provider,{value:fe,children:(0,q.jsxs)(`li`,{ref:N?null:t,className:G(Ci.root,r),"data-component":`ActionList.Item`,"data-variant":s===`danger`?s: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?t:void 0,className:pe,"data-component":`ActionList.Item.Content`,"data-size":c,...N?{...ue,...g,...M===`button`?{type:`button`}:{}}:{},children:[(0,q.jsx)(Si,{selected:u}),se,(0,q.jsxs)(`span`,{className:Ci.main,children:[(0,q.jsxs)(`span`,{className:G(Ci.labelWrap,V===`block`&&Ci.labelWrapBlock),children:[(0,q.jsxs)(`span`,{id:z,className:Ci.label,"data-component":`ActionList.Item.Label`,children:[v,ae?(0,q.jsx)(`span`,{className:Ci.srOnly,children:`Loading`}):null]}),_.description]}),ce]})]}),E?(0,q.jsx)(`span`,{id:re,className:Ci.inactiveWarning,children:m}):null,de,_.subItem]})})}Di.displayName=`ActionList.Item`;var Oi=K(Di);function ki(e,t){let{as:n,...r}=e;return(0,q.jsx)(Oi,{ref:t,as:n??`a`,...r})}ki.displayName=`ActionList.LinkItem`;var Ai=K(ki);const ji=Object.assign(Fr,{Item:Oi,LinkItem:Ai,Group:Yr,GroupHeading:Kr,Heading:kr,Description:Rr,Divider:Br,LeadingVisual:ni,TrailingVisual:bi,TrailingAction:yi,SubItem:ri}),Mi=(0,l.createContext)(void 0);function Ni(e){let{children:t,className:n,onClick:r,onKeyDown:i,...a}=e,o=l.useContext(Mi),s=l.useContext(Ar),c=!!o?.isSubmenu,u=o?.onOpen,d=l.useMemo(()=>c?{...s,defaultTrailingVisual:(0,q.jsx)(en,{}),afterSelect:()=>u?.()}:s,[c,u,s]);if(!l.isValidElement(t))return null;let f=t.props,p=e=>{f.onClick?.(e),r?.(e)},m=e=>{f.onKeyDown?.(e),c&&e.key===`ArrowRight`&&!e.defaultPrevented&&(u?.(),e.preventDefault()),i?.(e)};return(0,q.jsx)(Ar.Provider,{value:d,children:l.cloneElement(t,{...a,ref:o?.anchorRef,className:G(n,f.className),onClick:p,onKeyDown:m})})}Ni.displayName=`ActionMenu.Anchor`;function Pi(e){return(0,q.jsx)(Ni,{children:(0,q.jsx)(pi,{type:`button`,trailingAction:Qt,"data-component":`ActionMenu.Button`,...e})})}Pi.displayName=`ActionMenu.Button`;const Fi=e=>l.isValidElement(e)&&(e.type===Ni||e.type===Pi),Ii=(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 Li(e){let{children:t,open:n,onOpenChange:r,anchorRef:i}=e,a=l.useContext(Mi),o=l.useRef(null),s=i??o,c=n!==void 0,[u,d]=l.useState(!1),f=c?n:u,p=l.useCallback(e=>{d(e),r?.(e)},[r]),m=l.useCallback(()=>p(!0),[p]),h=a?.onClose,g=l.useCallback(e=>{p(!1),(e===`item-select`||e===`tab`)&&h?.(e)},[p,h]),_=l.Children.toArray(t),v=_.find(Fi),y=Y(v?.props.id),b=v?e=>l.cloneElement(v,Ii(e,v.props)):null,x=a!==void 0,S=l.useMemo(()=>({anchorRef:s,renderAnchor:b,anchorId:y,open:f,onOpen:m,onClose:g,isSubmenu:x}),[s,b,y,f,m,g,x]);return(0,q.jsx)(Mi.Provider,{value:S,children:_.filter(e=>e!==v)})}Li.displayName=`ActionMenu`;const Ri=[],zi=({containerRef:e,initialFocusRef:t,returnFocusRef:n,disabled:r})=>{(0,l.useEffect)(()=>{let i=e.current;if(!i||r)return;let a=document.activeElement;Ri.push(i),(t?.current??mr(i)[0]??i).focus();let o=e=>{if(e.key!==`Tab`||Ri[Ri.length-1]!==i)return;let t=mr(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),Ri.splice(Ri.indexOf(i),1);let e=n?.current??a;e instanceof HTMLElement&&e.focus()}},[e,t,n,r])},Bi=[],Vi=e=>{if(!(e.key!==`Escape`||e.defaultPrevented)){for(let t of[...Bi].reverse())if(t(e),e.defaultPrevented)break}},Hi=e=>{let t=(0,l.useRef)(e);(0,l.useEffect)(()=>{t.current=e},[e]),(0,l.useEffect)(()=>{let e=e=>t.current(e);return Bi.length===0&&document.addEventListener(`keydown`,Vi),Bi.push(e),()=>{Bi.splice(Bi.indexOf(e),1),Bi.length===0&&document.removeEventListener(`keydown`,Vi)}},[])},Ui=(e,t)=>{if(t!=null)return Object.fromEntries(typeof t==`object`?Object.entries(t).map(([t,n])=>Wi(`data-${e}-${t}`,n)):[Wi(`data-${e}`,t)])},Wi=(e,t)=>[e,t],Gi=(0,l.createContext)({}),Ki=`__baseUiPortalRoot__`,qi=`__default__`,Ji={root:`portal-root`},Yi={},Xi=(e,t=qi)=>{Yi[t]=e},Zi=()=>{let e=Yi[qi];if(e&&document.body.contains(e))return;let t=document.getElementById(Ki);t||(t=document.createElement(`div`),t.setAttribute(`id`,Ki),t.className=Ji.root,(document.querySelector(`[data-portal-root]`)??document.body).appendChild(t)),Xi(t)},Qi=e=>Yi[e],$i={root:`portal`};function ea({children:e,onMount:t,containerName:n}){let{portalContainerName:r}=l.useContext(Gi),i=l.useRef(null);if(!i.current){let e=document.createElement(`div`);e.setAttribute(`data-component`,`Portal`),e.className=$i.root,i.current=e}let a=i.current;return rr(()=>{let e=n??r;e===void 0&&(e=qi,Zi());let i=Qi(e);if(!i)throw Error(`Portal container '${e}' is not yet registered. Register it with registerPortalRoot before use.`);return i.appendChild(a),t?.(),()=>{i.removeChild(a)}},[a,n,r]),(0,d.createPortal)(e,a)}ea.displayName=`Portal`;const ta={"outside-top":`outside-bottom`,"outside-bottom":`outside-top`,"outside-left":`outside-right`,"outside-right":`outside-left`},na=e=>e===`outside-top`||e===`outside-bottom`,ra=(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,ia=(e,t,n,r,i)=>e===`start`?t+i:e===`end`?t+n-r-i:t+(n-r)/2+i,aa=(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=ra(u,o,s,i),f=na(u)?s.height:s.width,p=na(u)?l:c;if(d<0||d+f>p){let e=ra(ta[n],o,s,i);e>=0&&e+f<=p&&(u=ta[n],d=e)}let m=na(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=ia(r,h,g,_,a);return b<0?(y=`start`,b=ia(y,h,g,_,a)):b+_>v&&(y=`end`,b=ia(y,h,g,_,a)),b=Math.max(0,Math.min(b,v-_)),{top:m?d:b,left:m?b:d,anchorSide:u,anchorAlign:y}},oa={closeButtonContainer:`anchored-overlay-close-button-container`,closeButton:`anchored-overlay-close-button`},sa=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:``}}}),ca={regular:`anchored`,narrow:`anchored`},la=[`ArrowDown`,`ArrowUp`,` `,`Enter`],ua=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign;function da(e){let{renderAnchor:t,anchorRef:n,anchorId:r,children:i,open:a,onOpen:o,onClose:s,side:c=`outside-bottom`,align:u=`start`,anchorOffset:d,alignmentOffset:f,width:p=`auto`,height:m=`auto`,overlayProps:h,focusTrapSettings:g,preventOverflow:_=!0,variant:v=ca,displayCloseButton:y=!0,closeButtonProps:b,onPositionChange:x,className:S}=e,{ref:C,className:w,style:T,portalContainerName:E,...D}=h??{},{className:O,"aria-label":k,...A}=b??{},j=l.useRef(null),M=n??j,N=Y(r),P=l.useRef(null),F=ar(C,P),I=l.useRef(null),[L,ee]=l.useState(null),R=l.useCallback(()=>{let e=M.current,t=P.current;if(!e||!t)return;let n=aa(t,e,{side:c,align:u,anchorOffset:d,alignmentOffset:f});I.current&&ua(I.current,n)||(I.current=n,ee(n),x?.({position:n}))},[M,c,u,d,f,x]);rr(()=>{if(!a){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)}},[a,R]),zi({containerRef:P,returnFocusRef:M,...g,disabled:!a||!L||!!g?.disabled}),Hi(e=>{a&&(e.preventDefault(),s?.(`escape`))}),l.useEffect(()=>{if(!a)return;let e=e=>{let{target:t}=e;t instanceof Node&&(P.current?.contains(t)||M.current?.contains(t)||s?.(`click-outside`))};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[M,a,s]);let z=e=>{e.defaultPrevented||e.button!==0||(a?s?.(`anchor-click`):o?.(`anchor-click`))},te=e=>{e.defaultPrevented||a||!la.includes(e.key)||(o?.(`anchor-key-press`,e),e.preventDefault())},ne=v.narrow===`fullscreen`,B=!!s&&ne&&y;return(0,q.jsxs)(q.Fragment,{children:[t?t({ref:M,id:N,"aria-haspopup":`true`,"aria-expanded":a,tabIndex:0,onClick:z,onKeyDown:te}):null,a?(0,q.jsx)(ea,{containerName:E,children:(0,q.jsxs)(`div`,{ref:F,tabIndex:-1,className:G(sa({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??c,"data-align":L?.anchorAlign??u,"data-width":p,"data-height":m,"data-visibility":L?`visible`:`hidden`,...Ui(`variant`,v),...D,children:[B?(0,q.jsx)(`div`,{className:oa.closeButtonContainer,children:(0,q.jsx)(gi,{icon:un,variant:`invisible`,"aria-label":k??`Close`,onClick:()=>s?.(`close-button`),className:G(oa.closeButton,O),"data-component":`AnchoredOverlay.CloseButton`,...A})}):null,i]})}):null]})}da.displayName=`AnchoredOverlay`;const fa={container:`action-menu-overlay`};function pa(e){let{children:t,align:n=`start`,side:r,className:i,returnFocusRef:a,"aria-labelledby":o,...s}=e,c=l.useContext(Mi),u=!!c?.isSubmenu,d=c?.onClose,f=l.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=l.useMemo(()=>({container:`ActionMenu`,listRole:`menu`,listLabelledBy:o??c?.anchorId,selectionAttribute:`aria-checked`,afterSelect:()=>d?.(`item-select`)}),[o,c?.anchorId,d]);return c?(0,q.jsx)(da,{anchorRef:c.anchorRef,renderAnchor:c.renderAnchor,anchorId:c.anchorId,open:c.open,onOpen:c.onOpen,onClose:f,align:n,side:r??(u?`outside-right`:`outside-bottom`),className:i,focusTrapSettings:a?{returnFocusRef:a}:void 0,...s,children:(0,q.jsx)(`div`,{className:fa.container,onKeyDown:p,"data-component":`ActionMenu.Overlay`,children:(0,q.jsx)(Ar.Provider,{value:m,children:t})})}):null}pa.displayName=`ActionMenu.Overlay`;const ma=Object.assign(Li,{Anchor:Ni,Button:Pi,Overlay:pa,Divider:Br}),ha=(0,l.createContext)(null);function ga({children:e,rootRef:t}){let n=l.useRef(new Map),r=l.useRef(new Set),i=l.useRef(null),a=l.useRef(null),o=l.useCallback(()=>{if(typeof IntersectionObserver>`u`)return null;let e=t.current;return e?i.current&&a.current===e?i.current:(i.current?.disconnect(),r.current.clear(),i.current=new IntersectionObserver(e=>{for(let t of e){let e=n.current.get(t.target);if(!e)continue;let r=t.intersectionRatio<1;for(let t of e)t(r)}},{root:e,threshold:1}),a.current=e,i.current):null},[t]),s=l.useCallback(()=>{let e=o();if(e)for(let t of n.current.keys())r.current.has(t)||(e.observe(t),r.current.add(t))},[o]),c=l.useCallback((e,t)=>{let a=n.current.get(e);return a||(a=new Set,n.current.set(e,a)),a.add(t),s(),()=>{let a=n.current.get(e);a&&(a.delete(t),a.size===0&&(n.current.delete(e),r.current.delete(e),i.current?.unobserve(e)))}},[s]);return rr(()=>{s()}),l.useEffect(()=>()=>{i.current?.disconnect(),i.current=null,a.current=null,r.current.clear(),n.current.clear()},[]),(0,q.jsx)(ha.Provider,{value:c,children:e})}ga.displayName=`OverflowObserverProvider`;const _a=()=>(0,l.useContext)(ha),va=({ref:e,rootRef:t,disabled:n})=>{let[r,i]=(0,l.useState)(!1),a=_a();return(0,l.useEffect)(()=>{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},ya=(0,l.createContext)({size:`medium`}),ba=(0,l.createContext)({}),xa={current:null},Sa=e=>{let{size:t,rootRef:n,setOverflowing:r}=l.useContext(ya),{index:i,inGroup:a}=l.useContext(ba),o=va({ref:e,rootRef:n??xa,disabled:a});return l.useEffect(()=>{i!==void 0&&r?.(i,o)},[i,o,r]),{size:t,isOverflowing:o}},Ca={root:`action-bar-divider`,overflowing:`invisible`};function wa(e){let{className:t,...n}=e,r=l.useRef(null),{isOverflowing:i}=Sa(r);return(0,q.jsx)(`div`,{ref:r,"aria-hidden":`true`,className:G(Ca.root,i&&Ca.overflowing,t),"data-component":`ActionBar.Divider`,"data-overflowing":i?``:void 0,...n})}wa.displayName=`ActionBar.Divider`;const Ta={root:`action-bar-group`,overflowing:`invisible`},Ea={inGroup:!0};function Da(e){let{className:t,children:n,...r}=e,i=l.useRef(null),{isOverflowing:a}=Sa(i);return(0,q.jsx)(`div`,{ref:i,className:G(Ta.root,a&&Ta.overflowing,t),"data-component":`ActionBar.Group`,"data-overflowing":a?``:void 0,...r,children:(0,q.jsx)(ba.Provider,{value:Ea,children:n})})}Da.displayName=`ActionBar.Group`;const Oa={overflowing:`invisible`};function ka(e,t){let{className:n,...r}=e,i=l.useRef(null),a=ar(t,i),{size:o,isOverflowing:s}=Sa(i);return(0,q.jsx)(gi,{ref:a,size:o,variant:`invisible`,className:G(s&&Oa.overflowing,n),"data-component":`ActionBar.IconButton`,"data-overflowing":s?``:void 0,...r})}ka.displayName=`ActionBar.IconButton`;var Aa=K(ka);const ja=e=>typeof e==`string`?(0,q.jsx)(`span`,{children:e}):l.isValidElement(e)?e:(0,q.jsx)(e,{}),Ma=({items:e})=>(0,q.jsx)(q.Fragment,{children:e.map((e,t)=>{if(e.type===`divider`)return(0,q.jsx)(ji.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)(ji.LeadingVisual,{children:ja(a)}):null,n,o?(0,q.jsx)(ji.TrailingVisual,{children:ja(o)}):null]});return e.items&&e.items.length>0?(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(ji.Item,{disabled:r,variant:i,children:c})}),(0,q.jsx)(ma.Overlay,{children:(0,q.jsx)(ji,{children:(0,q.jsx)(Ma,{items:e.items})})})]},t):(0,q.jsx)(ji.Item,{onSelect:s,disabled:r,variant:i,children:c},t)})}),Na={overflowing:`invisible`};function Pa(e,t){let{className:n,icon:r,items:i,returnFocusRef:a,overflowIcon:o,...s}=e,c=l.useRef(null),u=ar(t,c),{size:d,isOverflowing:f}=Sa(c);return(0,q.jsxs)(ma,{anchorRef:c,children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(gi,{ref:u,icon:r,size:d,variant:`invisible`,className:G(f&&Na.overflowing,n),"data-component":`ActionBar.Menu`,"data-overflowing":f?``:void 0,...s})}),(0,q.jsx)(ma.Overlay,{returnFocusRef:a,children:(0,q.jsx)(ji,{children:(0,q.jsx)(Ma,{items:i})})})]})}Pa.displayName=`ActionBar.Menu`;var Fa=K(Pa);const Ia={size:{small:`action-bar-size-small`,medium:`action-bar-size-medium`,large:`action-bar-size-large`},spacer:`shrink-0`,moreButtonEmpty:`invisible`},La=W(`action-bar`,{variants:{flush:{true:``,false:`action-bar-inset`}}}),Ra=W(`action-bar-toolbar`,{variants:{size:Ia.size}}),za=W(`action-bar-items`,{variants:{size:Ia.size,gap:{none:`action-bar-gap-none`,condensed:`action-bar-gap-condensed`}}}),Ba=new Set,Va=e=>l.isValidElement(e)?e:(0,q.jsx)(e,{}),Ha=(e,t)=>{let n=e.props;if(e.type===wa)return(0,q.jsx)(ji.Divider,{},t);if(e.type===Da)return l.Children.toArray(n.children).filter(e=>l.isValidElement(e)).map((e,n)=>Ha(e,`${t}-${n}`));if(e.type===Fa){let e=n.overflowIcon??n.icon;return(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsxs)(ji.Item,{children:[e?(0,q.jsx)(ji.LeadingVisual,{children:Va(e)}):null,n[`aria-label`]]})}),(0,q.jsx)(ma.Overlay,{returnFocusRef:n.returnFocusRef,children:(0,q.jsx)(ji,{children:(0,q.jsx)(Ma,{items:n.items})})})]},t)}let r=e.type===Aa?n.icon:n.leadingVisual,i=e.type===Aa?n[`aria-label`]:n.children;return(0,q.jsxs)(ji.Item,{onSelect:n.onClick,disabled:n.disabled,children:[r?(0,q.jsx)(ji.LeadingVisual,{children:Va(r)}):null,i]},t)};function Ua(e){let{className:t,children:n,size:r=`medium`,flush:i=!1,gap:a=`condensed`,"aria-label":o,"aria-labelledby":s}=e,c=l.useRef(null),u=l.useRef(null),[d,f]=l.useState(Ba),p=l.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})},[]);_r({containerRef:c,direction:`horizontal`,wrap:!0});let m=l.useMemo(()=>({size:r,rootRef:u,setOverflowing:p}),[r,p]),h=l.Children.toArray(n),g=h.length,_=l.useMemo(()=>Array.from({length:g},(e,t)=>({index:t})),[g]),v=h.map((e,t)=>d.has(t)&&l.isValidElement(e)?Ha(e,t):null).filter(Boolean);return(0,q.jsx)(ya.Provider,{value:m,children:(0,q.jsx)(`div`,{className:G(La({flush:i}),t),"data-component":`ActionBar`,"data-flush":i?``:void 0,children:(0,q.jsxs)(`div`,{ref:c,role:`toolbar`,"aria-label":o,"aria-labelledby":s,className:G(Ra({size:r})),"data-size":r,"data-gap":a,"data-has-overflow":v.length>0?``:void 0,children:[(0,q.jsxs)(`div`,{ref:u,className:G(za({size:r,gap:a})),children:[(0,q.jsx)(`div`,{className:Ia.spacer}),h.map((e,t)=>(0,q.jsx)(ba.Provider,{value:_[t],children:e},t))]}),(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(gi,{icon:Cn,"aria-label":`More items`,size:r,variant:`invisible`,className:v.length>0?void 0:Ia.moreButtonEmpty,"data-component":`ActionBar.MoreButton`})}),(0,q.jsx)(ma.Overlay,{children:(0,q.jsx)(ji,{children:v})})]})]})})})}Ua.displayName=`ActionBar`;const Wa={overflowing:`invisible`};function Ga(e,t){let{className:n,...r}=e,i=l.useRef(null),a=ar(t,i),{size:o,isOverflowing:s}=Sa(i);return(0,q.jsx)(pi,{ref:a,size:o,variant:`invisible`,className:G(s&&Wa.overflowing,n),"data-component":`ActionBar.Button`,"data-overflowing":s?``:void 0,...r})}Ga.displayName=`ActionBar.Button`;var Ka=K(Ga);const qa=Object.assign(Ua,{Button:Ka,IconButton:Aa,Divider:wa,Group:Da,Menu:Fa}),Ja=W(`alert`,{variants:{variant:{default:`alert-default`,success:`alert-success`,warning:`alert-warning`,danger:`alert-danger`}}});function Ya(e,t){let{as:n=`div`,className:r,variant:i=`default`,...a}=e;return(0,q.jsx)(n,{ref:t,className:G(Ja({variant:i}),r),"data-component":`Alert`,"data-variant":i,...a})}Ya.displayName=`Alert`;var Xa=K(Ya);const Za={root:`aspect-ratio`};function Qa(e,t){let{as:n=`div`,className:r,ratio:i=1,style:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Za.root,r),style:{...a,"--aspect-ratio":i},"data-component":`AspectRatio`,...o})}Qa.displayName=`AspectRatio`;var $a=K(Qa);const eo=(0,l.createContext)({}),to=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 no(e,t){let{as:n=`div`,className:r,state:i=`done`,size:a=`medium`,orientation:o=`horizontal`,...s}=e,c=l.useMemo(()=>({state:i,size:a,orientation:o}),[i,a,o]);return(0,q.jsx)(eo.Provider,{value:c,children:(0,q.jsx)(n,{ref:t,className:G(to({state:i,size:a,orientation:o}),r),"data-component":`Attachment`,"data-state":i,"data-size":a,"data-orientation":o,...s})})}no.displayName=`Attachment`;var ro=K(no);const io={root:`attachment-action`};function ao(e,t){let{className:n,variant:r=`invisible`,size:i=`small`,...a}=e,o=a;return(0,q.jsx)(gi,{ref:t,variant:r,size:i,className:G(io.root,n),"data-component":`Attachment.Action`,...o})}ao.displayName=`Attachment.Action`;var oo=K(ao);const so={root:`attachment-actions`};function co(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(so.root,n),"data-component":`Attachment.Actions`,...r})}co.displayName=`Attachment.Actions`;var lo=K(co);const uo={root:`attachment-content`};function fo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(uo.root,n),"data-component":`Attachment.Content`,...r})}fo.displayName=`Attachment.Content`;var po=K(fo);const mo={root:`attachment-description`};function ho(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(mo.root,n),"data-component":`Attachment.Description`,...r})}ho.displayName=`Attachment.Description`;var go=K(ho);const _o={root:`attachment-group`};function vo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(_o.root,n),"data-component":`Attachment.Group`,...r})}vo.displayName=`Attachment.Group`;var yo=K(vo);const bo=W(`attachment-media`,{variants:{variant:{icon:``,image:`attachment-media-image`}}});function xo(e,t){let{className:n,variant:r=`icon`,...i}=e;return(0,q.jsx)(`div`,{ref:t,className:G(bo({variant:r}),n),"data-component":`Attachment.Media`,"data-variant":r,...i})}xo.displayName=`Attachment.Media`;var So=K(xo);const Co={root:`attachment-title`};function wo(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(Co.root,n),"data-component":`Attachment.Title`,...r})}wo.displayName=`Attachment.Title`;var To=K(wo);const Eo={root:`attachment-trigger`};function Do(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(Eo.root,r),"data-component":`Attachment.Trigger`,...a})}Do.displayName=`Attachment.Trigger`;var Oo=K(Do);const ko=Object.assign(ro,{Group:yo,Media:So,Content:po,Title:To,Description:go,Actions:lo,Action:oo,Trigger:Oo}),Ao=(0,l.createContext)({}),jo=(0,l.createContext)({}),Mo=(0,l.createContext)({});function No({children:e,id:t}){let n=Y(t),r=l.useRef(null),i=l.useRef(null),[a,o]=l.useState(``),[s,c]=l.useState(``),[u,d]=l.useState(),[f,p]=l.useState(!1),m=l.useCallback(e=>{p(e),e||(d(void 0),c(``))},[]),h=l.useMemo(()=>({id:n,inputRef:r,scrollContainerRef:i,activeDescendantId:u,setActiveDescendantId:d,showMenu:f,setShowMenu:m,setInputValue:o,setAutocompleteSuggestion:c}),[n,u,f,m]),g=l.useMemo(()=>({inputValue:a,autocompleteSuggestion:s}),[a,s]),_=l.useDeferredValue(a),v=l.useMemo(()=>({deferredInputValue:_}),[_]);return(0,q.jsx)(Ao.Provider,{value:h,children:(0,q.jsx)(jo.Provider,{value:g,children:(0,q.jsx)(Mo.Provider,{value:v,children:e})})})}No.displayName=`Autocomplete`;const Po=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 Fo(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(Po({size:i,weight:a,whiteSpace:o}),r),"data-component":`Text`,"data-size":i,"data-weight":a,"data-white-space":o,...s})}Fo.displayName=`Text`;var Io=K(Fo);const Lo=(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`}},Ro={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`},zo=[`date`,`time`,`datetime-local`],Bo=e=>typeof e==`string`||!(0,f.isValidElementType)(e)?e:(0,q.jsx)(e,{}),Vo=({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:Ro.visual,"data-component":a,children:(0,q.jsxs)(`span`,{id:e,className:Ro.visualBox,children:[i?(0,q.jsx)(`span`,{className:r?Ro.spinnerHidden:Ro.spinnerVisible,children:i}):null,(0,q.jsx)($r,{srText:null,size:i?void 0:`small`,className:G(r?Ro.spinnerVisible:Ro.spinnerHidden,i&&Ro.spinner,i&&t===`leading`&&Ro.spinnerLeading)})]})}):(0,q.jsx)(`span`,{id:e,className:Ro.visual,"aria-hidden":`true`,"data-component":a,children:i})};function Ho(e,t){let{className:n,type:r=`text`,size:i=`medium`,block:a,contrast:o,monospace:s,disabled:c,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}=e,E=l.useRef(null),D=ar(t,E),O=Y(),k=Y(),A=Y(),j=Y(),[M,N]=l.useState(!1),P=y!==void 0,[F,I]=l.useState(()=>b===void 0?0:String(b).length),L=P?String(y).length:F,ee=v?Lo(L,v):void 0,R=ee?.isOverLimit??!1,z=R?`error`:d,te=l.useRef(!1),[ne,B]=l.useState(``),re=ee?.message;l.useEffect(()=>{if(!te.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=i===`large`,fe=e=>{N(!0),S?.(e)},pe=e=>{N(!1),C?.(e)},me=e=>{te.current=!0,v&&!P&&I(e.target.value.length),x?.(e)},he=e=>{(e.target!==E.current||!zo.includes(r))&&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(Ro.field,Ro.size[i],ue?M&&Ro.focusTracked:Ro.focus,a&&Ro.block,o&&Ro.contrast,s&&Ro.monospace,c&&Ro.disabled,z&&Ro.validation[z],z===`error`&&(ue?M&&Ro.validationFocusTracked:Ro.validationFocus),oe&&(de?Ro.leadingVisualLarge:Ro.leadingVisual),se&&!ce&&(de?Ro.trailingVisualLarge:Ro.trailingVisual),n),onClick:he,"aria-busy":h?!0:void 0,"data-component":`TextInput`,"data-size":i,"data-block":a,"data-contrast":o,"data-monospace":s,"data-disabled":c,"data-validation":z,"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)(Vo,{id:O,position:`leading`,hasLoader:ae,showLoader:V,children:f?Bo(f):null}):null,(0,q.jsx)(`input`,{ref:D,type:r,value:y,defaultValue:b,disabled:c,required:u,"aria-required":u?!0:void 0,"aria-invalid":z===`error`||void 0,"aria-describedby":ge,onChange:me,onFocus:fe,onBlur:pe,className:G(Ro.input,!oe&&(se||ce?Ro.inputPadStart:Ro.inputPadStartWide),!se&&!ce&&(oe?Ro.inputPadEnd:Ro.inputPadEndWide)),"data-component":`TextInput.Input`,...T}),h?(0,q.jsx)(`span`,{id:A,className:Ro.hidden,children:_}):null,le?(0,q.jsx)(Vo,{id:k,position:`trailing`,hasLoader:ae,showLoader:ie,children:p?Bo(p):null}):null,m]}),ee?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Ro.hidden,children:ne}),(0,q.jsxs)(`span`,{id:j,className:Ro.hidden,children:[`You can enter up to `,v,` `,v===1?`character`:`characters`]}),(0,q.jsxs)(Io,{"aria-hidden":`true`,size:`small`,className:G(Ro.counter,R&&Ro.counterOverLimit),"data-component":`TextInput.CharacterCount`,children:[R?(0,q.jsx)(fn,{className:Ro.counterIcon}):null,ee.message]})]}):null]})}Ho.displayName=`TextInput`;var Uo=K(Ho);const Wo={root:`input-action`,button:`input-action-button`};function Go(e,t){let{className:n,icon:r,...i}=e;return(0,q.jsx)(`span`,{className:Wo.root,"data-component":`TextInput.Action`,children:(0,q.jsx)(gi,{ref:t,type:`button`,variant:`invisible`,size:`small`,icon:r,className:G(Wo.button,n),...i})})}Go.displayName=`TextInput.Action`;var Ko=K(Go);const qo=Object.assign(Uo,{Action:Ko}),Jo=[`ArrowDown`,`ArrowUp`],Yo=[`Backspace`,`Delete`];function Xo(e,t){let{as:n=qo,className:r,openOnFocus:i=!1,value:a,onFocus:o,onBlur:s,onClick:c,onChange:u,onKeyDown:d,onKeyUp:f,...p}=e,{id:m,inputRef:h,activeDescendantId:g,showMenu:_,setShowMenu:v,setInputValue:y}=l.useContext(Ao),{inputValue:b=``,autocompleteSuggestion:x=``}=l.useContext(jo),S=ar(t,h),[C,w]=l.useState(!0);return l.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]),l.useEffect(()=>{a!==void 0&&y?.(String(a))},[a,y]),(0,q.jsx)(n,{ref:S,id:m,role:`combobox`,autoComplete:`off`,"aria-autocomplete":`both`,"aria-haspopup":`listbox`,"aria-expanded":!!_,"aria-controls":`${m}-listbox`,"aria-activedescendant":g,className:r,onFocus:e=>{o?.(e),i&&v?.(!0)},onBlur:e=>{s?.(e),v?.(!1)},onClick:e=>{c?.(e),i&&v?.(!0)},onChange:e=>{u?.(e),y?.(e.currentTarget.value),v?.(!0)},onKeyDown:e=>{if(d?.(e),!e.defaultPrevented){if(Yo.includes(e.key)&&w(!1),e.key===`Escape`){_?v?.(!1):e.currentTarget.value&&(y?.(``),e.currentTarget.value=``);return}!_&&!e.altKey&&Jo.includes(e.key)&&v?.(!0)}},onKeyUp:e=>{f?.(e),Yo.includes(e.key)&&w(!0)},"data-component":`Autocomplete.Input`,...p})}Xo.displayName=`Autocomplete.Input`;var Zo=K(Xo);const Qo={loading:`autocomplete-menu-loading`,emptyState:`autocomplete-menu-empty-state`,hidden:`sr-only`},$o=e=>t=>!!t.text?.toLowerCase().startsWith(e.toLowerCase()),es=e=>(t,n)=>e(t)===e(n)?0:e(t)?-1:1,ts=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),ns=e=>typeof e==`string`||!(0,f.isValidElementType)(e)?e:(0,q.jsx)(e,{});function rs(e){let{items:t,selectedItemIds:n=[],selectionVariant:r=`single`,filter:i,sortOnClose:a,emptyStateText:o=`No selectable options`,addNewItem:s,loading:c=!1,onOpenChange:u,onSelectedChange:d,customScrollContainerRef:f,"aria-labelledby":p,className:m}=e,{id:h,inputRef:g,scrollContainerRef:_,activeDescendantId:v,setActiveDescendantId:y,showMenu:b,setShowMenu:x,setInputValue:S,setAutocompleteSuggestion:C}=l.useContext(Ao),{deferredInputValue:w=``}=l.useContext(Mo),T=`${h}-listbox`,E=l.useCallback(e=>`${T}-${e}`,[T]),[D,O]=l.useState(()=>t.map(e=>e.id));l.useEffect(()=>{if(b)return;let e=t.map(e=>e.id).sort(a??es(e=>n.includes(e)));O(t=>ts(e,t)?t:e)},[b,t,n,a]);let k=l.useMemo(()=>new Map(D.map((e,t)=>[e,t])),[D]),A=l.useMemo(()=>t.filter(i??$o(w)).sort((e,t)=>(k.get(e.id)??2**53-1)-(k.get(t.id)??2**53-1)),[t,i,w,k]),j=l.useMemo(()=>s?[...A,s.item]:A,[A,s]),M=l.useMemo(()=>j.filter(e=>!e.disabled),[j]),N=M.findIndex(e=>E(e.id)===v),P=M[N],[F,I]=l.useState(!1),L=e=>{if(s&&e.id===s.item.id)s.onAdd(e);else{let i=r===`single`?[e.id]:n.includes(e.id)?n.filter(t=>t!==e.id):[...n,e.id];d?d(i.map(e=>t.find(t=>t.id===e)).filter(e=>e!==void 0)):r===`single`&&S?.(e.text??``)}if(r===`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))},z=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))},te=l.useRef(z);l.useEffect(()=>{te.current=z}),l.useEffect(()=>{let e=g?.current;if(!e||!b)return;let t=e=>te.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())&&!n.includes(P.id);l.useEffect(()=>{C?.(B?ne:``)},[B,ne,C]),l.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=l.useRef(!1);l.useEffect(()=>{let e=!!b;re.current!==e&&(re.current=e,u?.(e))},[b,u]);let V=typeof o==`string`?o:`No options available`,ie=c?``:j.length===0?V:`${j.length} option${j.length===1?``:`s`} available.`,[ae,oe]=l.useState(``),se=l.useRef(``);l.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=l.useMemo(()=>({container:`Autocomplete`,listRole:`listbox`,listLabelledBy:p,selectionAttribute:`aria-selected`,selectionVariant:r,enableFocusZone:!1}),[p,r]);return(0,q.jsxs)(`div`,{className:G(m),onMouseDown:e=>e.preventDefault(),onMouseMove:R,"data-component":`Autocomplete.Menu`,"data-loading":c?``:void 0,children:[c?(0,q.jsx)(`div`,{className:Qo.loading,"data-component":`Autocomplete.Loading`,children:(0,q.jsx)($r,{})}):j.length===0?o?(0,q.jsx)(`div`,{className:Qo.emptyState,"data-component":`Autocomplete.EmptyState`,children:o}):null:(0,q.jsx)(Ar.Provider,{value:ce,children:(0,q.jsx)(ji,{id:T,children:j.map(e=>{let{id:t,text:r,description:i,descriptionVariant:a,leadingVisual:o,trailingVisual:c,children:l,...u}=e,d=s&&t===s.item.id?Pt:o;return(0,q.jsxs)(ji.Item,{id:E(t),tabIndex:-1,active:E(t)===v,selected:n.includes(t),onSelect:()=>L(e),"data-id":t,...u,children:[d?(0,q.jsx)(ji.LeadingVisual,{children:ns(d)}):null,l,r,i?(0,q.jsx)(ji.Description,{variant:a,children:i}):null,c?(0,q.jsx)(ji.TrailingVisual,{children:ns(c)}):null]},t)})})}),(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Qo.hidden,"data-component":`Autocomplete.Announcement`,children:ae})]})}rs.displayName=`Autocomplete.Menu`;const is={hidden:`sr-only`},as=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:``}}}),os=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign&&e.anchorWidth===t.anchorWidth;function ss(e){let{menuAnchorRef:t,side:n=`outside-bottom`,align:r=`start`,width:i=`anchor`,height:a=`auto`,maxHeight:o=`medium`,portalContainerName:s,children:c,className:u,style:d,...f}=e,{inputRef:p,scrollContainerRef:m,showMenu:h,setShowMenu:g}=l.useContext(Ao),_=l.useRef(null),v=ar(m,_),y=l.useCallback(()=>{let e=p?.current??null;return t?.current??e?.closest(`[data-component="TextInput"]`)??e},[t,p]),b=l.useRef(null),[x,S]=l.useState(null),C=l.useCallback(()=>{let e=y(),t=_.current;if(!e||!t)return;let i={...aa(t,e,{side:n,align:r}),anchorWidth:e.getBoundingClientRect().width};b.current&&os(b.current,i)||(b.current=i,S(i))},[y,n,r]);return rr(()=>{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]),l.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)(ea,{containerName:s,children:(0,q.jsx)(`div`,{ref:v,"aria-hidden":h?void 0:`true`,className:G(h?as({width:i,height:a,maxHeight:o,unplaced:!x}):is.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??n,"data-align":x?.anchorAlign??r,"data-width":i,"data-height":a,...f,children:c})})}ss.displayName=`Autocomplete.Overlay`;const cs=Object.assign(No,{Input:Zo,Menu:rs,Overlay:ss});(0,l.createContext)({});const ls=e=>typeof e==`object`&&Object.keys(e).some(e=>[`narrow`,`regular`,`wide`].includes(e)),us=(0,l.createContext)({}),ds=W(`avatar`,{variants:{shape:{circle:`avatar-circle`,square:`avatar-square`},responsive:{true:`avatar-responsive`,false:``}}});function fs(e,t){let{as:n=`span`,className:r,size:i=20,shape:a=`circle`,style:o,children:s,...c}=e,[u,d]=l.useState(`idle`),f=l.useMemo(()=>({status:u,setStatus:d}),[u]),p=ls(i),m={"--avatar-size-regular":`20px`};if(p)for(let[e,t]of Object.entries(i))t!==void 0&&(m[`--avatar-size-${e}`]=`${t}px`);else m[`--avatar-size-regular`]=`${i}px`;return(0,q.jsx)(us.Provider,{value:f,children:(0,q.jsx)(n,{ref:t,className:G(ds({shape:a,responsive:p}),r),style:{...o,...m},"data-component":`Avatar`,"data-responsive":p||void 0,"data-shape":a,"data-status":u,...c,children:s})})}fs.displayName=`Avatar`;var ps=K(fs);const ms=`en-US`,hs=(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,gs=e=>{let t=new Map;return(n,r)=>{let i=hs(n,r),a=t.get(i);if(a)return a;let o=e(n,r);return t.set(i,o),o}},_s=new Set([`Adlm`,`Arab`,`Armi`,`Avst`,`Hebr`,`Mand`,`Mend`,`Nkoo`,`Rohg`,`Samr`,`Syrc`,`Thaa`]),vs=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),ys=e=>{try{return new Intl.Locale(e).maximize().script}catch{return}},bs=e=>{let t=ys(e);return t?_s.has(t):vs.has(e.split(`-`)[0].toLowerCase())},xs=e=>bs(e)?`rtl`:`ltr`,Ss=()=>{let e=typeof navigator>`u`?void 0:navigator.language;if(!e)return ms;try{return Intl.DateTimeFormat.supportedLocalesOf([e]),e}catch{return ms}},Cs=gs((e,t)=>new Intl.Collator(e,t)),ws=(e=ms,t={})=>Cs(e,t),Ts=RegExp(`\\p{P}`,`gu`),Es=gs((e,t={})=>{let n=Cs(e,{usage:`search`,...t}),r=e=>{let t=e.normalize(`NFC`);return n.resolvedOptions().ignorePunctuation?t.replace(Ts,``):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}}}),Ds=({locale:e,...t}={})=>Es(e??`en-US`,t),Os=gs((e,t)=>new Intl.NumberFormat(e,t)),ks=(e=ms,t={})=>Os(e,t),As=(e,t=ms,n={})=>Os(t,n).format(e),js=gs((e,t)=>new Intl.DateTimeFormat(e,t)),Ms=(e=ms,t={})=>js(e,t),Ns=[``,`kilo`,`mega`,`giga`,`tera`],Ps=[``,`kilo`,`mega`,`giga`,`tera`,`peta`],Fs=(e,t=ms,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`?Ns:Ps,l=Math.abs(e),u=0;for(;l>=s&&u<c.length-1;)l/=s,u++;let d=parseFloat(l.toPrecision(r));return As(e<0?-d:d,t,{style:`unit`,unit:c[u]+a,unitDisplay:o})},Is=(0,l.createContext)({direction:`ltr`}),Ls=(0,l.createContext)({locale:ms,direction:xs(ms)}),Rs=()=>(0,l.useContext)(Ls),zs=e=>(window?.addEventListener?.(`languagechange`,e),()=>window?.removeEventListener?.(`languagechange`,e)),Bs=()=>ms,Vs=()=>l.useSyncExternalStore(zs,Ss,Bs);function Hs({children:e,className:t,...n}){let{locale:r}=Rs(),i=Vs(),a=n.locale??r,o=a===`auto`?i:a,s=xs(o),c=l.useMemo(()=>({locale:o,direction:s}),[o,s]),u=l.useMemo(()=>({direction:s}),[s]);return(0,q.jsx)(Ls.Provider,{value:c,children:(0,q.jsx)(Is.Provider,{value:u,children:(0,q.jsx)(`div`,{className:t,"data-component":`LocaleProvider`,lang:o,dir:s,children:e})})})}Hs.displayName=`LocaleProvider`;const Us=({locale:e,...t}={})=>{let{locale:n}=Rs();return ws(e??n,t)},Ws=({locale:e,...t}={})=>{let{locale:n}=Rs();return Ms(e??n,t)},Gs=({locale:e,...t}={})=>{let{locale:n}=Rs();return Ds({locale:e??n,...t})},Ks=({locale:e,...t}={})=>{let{locale:n}=Rs();return ks(e??n,t)},qs={root:`avatar-fallback`},Js=(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 Ys(e,t){let{className:n,name:r,...i}=e,{status:a=`idle`}=l.useContext(us),{locale:o}=Rs();return a===`loaded`?null:(0,q.jsx)(`span`,{ref:t,role:`img`,"aria-label":r,className:G(qs.root,n),"data-component":`Avatar.Fallback`,"data-status":a,...i,children:Js(r,o)})}Ys.displayName=`Avatar.Fallback`;var Xs=K(Ys);const Zs={root:`avatar-image`};function Qs(e,t){let{className:n,alt:r=``,src:i,onLoad:a,onError:o,...s}=e,{setStatus:c}=l.useContext(us),[u,d]=l.useState(`idle`),f=l.useRef(null),p=ar(f,t),m=l.useCallback(e=>{d(e),c?.(e)},[c]);return rr(()=>{let e=f.current;if(!e||!i){m(`idle`);return}m(e.complete&&e.naturalWidth>0?`loaded`:`loading`)},[m,i]),(0,q.jsx)(`img`,{ref:p,alt:r,src:i,onLoad:e=>{m(`loaded`),a?.(e)},onError:e=>{m(`error`),o?.(e)},className:G(Zs.root,n),"data-component":`Avatar.Image`,"data-status":u,...s})}Qs.displayName=`Avatar.Image`;var $s=K(Qs);const ec=Object.assign(ps,{Image:$s,Fallback:Xs}),tc=[`narrow`,`regular`,`wide`],nc={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`}},rc=e=>{if(!ls(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}},ic=e=>l.isValidElement(e)&&e.type===ps,ac=e=>l.isValidElement(e)&&e.type===l.Fragment,oc=e=>l.Children.toArray(e).flatMap(e=>ac(e)?oc(e.props.children):ic(e)?[e]:[]),sc=e=>{let t={narrow:[],regular:[],wide:[]};for(let n of e){let e=rc(n.props.size);for(let n of tc)t[n].push(e[n])}return Object.fromEntries(tc.map(e=>[e,t[e].length>0?Math.min(...t[e]):20]))};function cc(e,t){let{as:n=`span`,className:r,children:i,variant:a=`cascade`,shape:o=`circle`,size:s,align:c=`left`,disableExpand:u,style:d,...f}=e,p=l.useRef(null),[m,h]=l.useState(!1);l.useEffect(()=>{if(!p.current)return;let e=p.current,t=()=>{h(hr(e))},n=new MutationObserver(t);return n.observe(e,{childList:!0}),t(),()=>{n.disconnect()}},[]);let g=oc(i),_=g.length,v=_>3?`more`:_===3?`three`:_===2?`two`:void 0,y=!s||ls(s),b=!u,x={};if(ls(s)){let e=rc(s);for(let t of tc)x[`--avatar-stack-size-${t}`]=`${e[t]}px`}else if(s)x[`--avatar-stack-size`]=`${s}px`;else{let e=sc(g);for(let t of tc)x[`--avatar-stack-size-${t}`]=`${e[t]}px`}let S=g.map((e,t)=>l.cloneElement(e,{className:G(nc.item.root,t===0?nc.item.first:nc.item.overlapped,nc.item.shape[o],c===`right`&&o===`square`?nc.item.edgeAlignRight:nc.item.edge[o],t>0&&o===`circle`&&nc.item.mask,o===`square`&&nc.item.layer[Math.min(t,4)],a===`cascade`&&nc.item.fade[t],t>4&&nc.item.overflow,b&&nc.item.expanded,b&&t===0&&nc.item.expandedFirst,e.props.className)}));return(0,q.jsx)(n,{ref:t,className:G(nc.root,nc.variant[a],v&&nc.width[a][v],nc.align[c],y&&nc.responsive,r),style:{...d,...x},"data-component":`AvatarStack`,"data-variant":a,"data-shape":o,"data-avatar-count":_>3?`3+`:_,"data-align":c,"data-responsive":y||void 0,...f,children:(0,q.jsx)(`div`,{ref:p,className:b?nc.body.expandable:nc.body.collapsed,tabIndex:b&&!m?0:void 0,"data-component":`AvatarStack.Body`,"data-disable-expand":u,children:S})})}cc.displayName=`AvatarStack`;var lc=K(cc);const uc={indicator:`badge-indicator`,visual:`badge-visual`},dc=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`}}}),fc=e=>l.isValidElement(e)?e:(0,q.jsx)(e,{});function pc(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(dc({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:uc.visual,"data-component":`Badge.LeadingVisual`,children:fc(s)}):null,u?(0,q.jsx)(`span`,{"aria-hidden":`true`,className:uc.indicator}):null,c]})}pc.displayName=`Badge`;var mc=K(pc);const hc=(0,l.createContext)({});function gc(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(n),"data-component":`Banner.Description`,...r})}gc.displayName=`Banner.Description`;var _c=K(gc);const vc={root:`banner-title`};function yc(e,t){let{as:n=`h2`,className:r,id:i,...a}=e,{titleId:o}=l.useContext(hc);return(0,q.jsx)(n,{ref:t,id:i??o,className:G(vc.root,r),"data-component":`Banner.Title`,...a})}yc.displayName=`Banner.Title`;var bc=K(yc);const xc={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`},Sc=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:``}}}),Cc=W(`banner-icon`,{variants:{tight:{true:`banner-icon-tight`,false:``}}}),wc=W(`banner-body`,{variants:{actions:{stacked:`banner-body-stacked`,inline:`banner-body-inline`,responsive:`banner-body-responsive`}}}),Tc=W(`banner-content`,{variants:{tight:{true:`banner-content-tight`,false:``}}}),Ec=W(`banner-dismiss`,{variants:{withActions:{true:`banner-dismiss-with-actions`,false:``}}}),Dc={critical:fn,info:vn,success:Xt,upsell:vn,warning:Gn},Oc=[`info`,`upsell`],kc=({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(xc.actions,n,i),"data-primary-action":`trailing`,children:[t,e]}),(0,q.jsxs)(`div`,{className:G(xc.actions,n,r),"data-primary-action":`leading`,children:[e,t]})]});function Ac(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=Dc[c],C=s&&Oc.includes(c)?s:(0,q.jsx)(S,{}),w=u===`stacked`||y&&!o&&u!==`inline`,T=w?{leading:xc.order.shown,trailing:xc.order.hidden}:u===`inline`?{leading:xc.order.inlineLeading,trailing:xc.order.inlineTrailing}:{leading:xc.order.responsiveLeading,trailing:xc.order.responsiveTrailing},E=i?(0,q.jsx)(bc,{children:i}):null;return(0,q.jsx)(hc.Provider,{value:{titleId:v},children:(0,q.jsx)(`div`,{className:xc.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(Sc({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(Cc({tight:x})),"data-component":`Banner.Icon`,children:C}),(0,q.jsxs)(`div`,{className:G(wc({actions:w?`stacked`:u===`inline`?`inline`:`responsive`})),children:[(0,q.jsxs)(`div`,{className:G(Tc({tight:x})),"data-component":`Banner.Content`,children:[E?o?(0,q.jsx)(`span`,{className:xc.hidden,children:E}):E:null,a?(0,q.jsx)(_c,{children:a}):null,r]}),b?(0,q.jsx)(kc,{primaryAction:p,secondaryAction:m,className:G(u===`inline`&&xc.actionsInline,w&&xc.actionsStacked),leadingClassName:T.leading,trailingClassName:T.trailing}):null]}),y?(0,q.jsx)(gi,{icon:un,"aria-label":`Dismiss banner`,variant:`invisible`,onClick:f,className:G(Ec({withActions:b})),"data-component":`Banner.Dismiss`}):null]})})})}Ac.displayName=`Banner`;var jc=K(Ac);function Mc(e,t){return(0,q.jsx)(pi,{ref:t,variant:`default`,"data-component":`Banner.PrimaryAction`,...e})}Mc.displayName=`Banner.PrimaryAction`;var Nc=K(Mc);function Pc(e,t){return(0,q.jsx)(pi,{ref:t,variant:`invisible`,"data-component":`Banner.SecondaryAction`,...e})}Pc.displayName=`Banner.SecondaryAction`;var Fc=K(Pc);const Ic=Object.assign(jc,{Title:bc,Description:_c,PrimaryAction:Nc,SecondaryAction:Fc}),Lc={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 Rc(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:Lc.container,children:(0,q.jsx)(n,{ref:t,className:G(Lc.root,Lc.size[i],s?Lc.spaciousPadding[i]:Lc.padding[i],Lc.tightType,s?Lc.tightSpaciousPadding:Lc.tightPadding[i],a&&Lc.border,o&&Lc.narrow,r),"data-component":`Blankslate`,"data-size":i,"data-border":a,"data-narrow":o,"data-spacious":s,...c})})}Rc.displayName=`Blankslate`;var zc=K(Rc);const Bc={root:`blankslate-description`};function Vc(e,t){let{className:n,...r}=e;return(0,q.jsx)(`p`,{ref:t,className:G(Bc.root,n),"data-component":`Blankslate.Description`,...r})}Vc.displayName=`Blankslate.Description`;var Hc=K(Vc);const Uc={root:`blankslate-heading`};function Wc(e,t){let{as:n=`h2`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Uc.root,r),"data-component":`Blankslate.Heading`,...i})}Wc.displayName=`Blankslate.Heading`;var Gc=K(Wc);const Kc={root:`blankslate-action`,tight:`blankslate-action-tight`};function qc(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Kc.root,Kc.tight,n),...r})}qc.displayName=`Blankslate.Action`;var Jc=K(qc);function Yc(e,t){return(0,q.jsx)(Jc,{ref:t,"data-component":`Blankslate.PrimaryAction`,...e})}Yc.displayName=`Blankslate.PrimaryAction`;var Xc=K(Yc);const Zc={root:`link`,inline:`link-inline`,muted:`link-muted`};function Qc(e,t){let{as:n=`a`,className:r,muted:i,inline:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Zc.root,a&&Zc.inline,i&&Zc.muted,r),"data-component":`Link`,"data-muted":i,"data-inline":a,...o})}Qc.displayName=`Link`;var $c=K(Qc);function el(e,t){let{href:n,children:r,...i}=e;return(0,q.jsx)(Jc,{ref:t,"data-component":`Blankslate.SecondaryAction`,...i,children:n===void 0?r:(0,q.jsx)($c,{href:n,children:r})})}el.displayName=`Blankslate.SecondaryAction`;var tl=K(el);const nl={root:`blankslate-visual`,tight:`blankslate-visual-tight`};function rl(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(nl.root,nl.tight,n),"data-component":`Blankslate.Visual`,...r})}rl.displayName=`Blankslate.Visual`;var il=K(rl);const al=Object.assign(zc,{Visual:il,Heading:Gc,Description:Hc,PrimaryAction:Xc,SecondaryAction:tl}),ol=W(`blockquote`,{variants:{size:{large:`blockquote-large`,medium:`blockquote-medium`,small:`blockquote-small`},variant:{subtle:`blockquote-subtle`,default:`blockquote-default`,emphasis:`blockquote-emphasis`}}});function sl(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(ol({size:i,variant:a}),r),"data-component":`Blockquote`,"data-size":i,"data-variant":a,...o})}sl.displayName=`Blockquote`;var cl=K(sl);const ll=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 ul(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(ll({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})}ul.displayName=`Box`;var dl=K(ul);function fl({items:e}){return(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Anchor,{children:(0,q.jsx)(gi,{icon:Cn,"aria-label":`${e.length} more breadcrumb items`,variant:`invisible`,size:`small`,"data-component":`Breadcrumbs.OverflowMenu`})}),(0,q.jsx)(ma.Overlay,{children:(0,q.jsx)(ji,{children:e.map((e,t)=>{let{children:n,selected:r,as:i,...a}=e.props;return(0,q.jsx)(ji.LinkItem,{as:i,"aria-current":r?`page`:void 0,...a,children:n},t)})})})]})}fl.displayName=`Breadcrumbs.OverflowMenu`;const pl=(0,l.createContext)({}),ml={root:`breadcrumbs`,list:`breadcrumbs-list`,listWrap:`breadcrumbs-list-wrap`,listMenu:`breadcrumbs-list-menu`,item:`breadcrumbs-item`,itemMenu:`breadcrumbs-item-menu`,separator:`breadcrumbs-separator`},hl=({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}},gl=e=>l.Children.toArray(e).filter(e=>l.isValidElement(e)),_l=()=>(0,q.jsx)(`span`,{className:ml.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 vl(e){let{className:t,children:n,style:r,overflow:i=`wrap`,variant:a=`normal`}=e,o=l.useRef(null),s=l.useMemo(()=>gl(n),[n]),c=s[0],u=i!==`menu-with-root`,[d,f]=l.useState([]),[p,m]=l.useState(null),[h,g]=l.useState(28),_=l.useCallback(e=>{let t=e?.querySelector(`button`);t&&g(e=>e===t.offsetWidth?e:t.offsetWidth)},[]);rr(()=>{if(i===`wrap`)return;let e=o.current;if(!e)return;m(t=>t===e.offsetWidth?t:e.offsetWidth);let t=e.querySelectorAll(`li[data-crumb]`);t.length===s.length&&f(Array.from(t,e=>e.offsetWidth))},[s,i]),l.useEffect(()=>{let e=o.current;if(i===`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()}},[i]);let{menuItemCount:v,hideRoot:y}=l.useMemo(()=>i===`wrap`||d.length!==s.length?{menuItemCount:0,hideRoot:u}:hl({availableWidth:p??800,itemCount:s.length,itemWidths:d,menuButtonWidth:h,overflow:i,hideRoot:u}),[i,u,s,d,p,h]),b=l.useMemo(()=>({variant:a}),[a]),x=l.useMemo(()=>{let e=(e,t)=>(0,q.jsxs)(`li`,{className:ml.item,"data-crumb":``,children:[e,(0,q.jsx)(_l,{})]},t);if(v===0)return s.map((t,n)=>e(t,n));let t=s.slice(0,v),n=s.slice(v),r=y?t:t.slice(1),i=(0,q.jsxs)(`li`,{ref:_,className:G(ml.item,ml.itemMenu),"data-overflow-menu":``,children:[(0,q.jsx)(fl,{items:r}),(0,q.jsx)(_l,{})]},`overflow-menu`),a=n.map((t,n)=>e(t,`visible-${n}`));return y?[i,...a]:[e(c,`root`),i,...a]},[s,v,y,_,c]);return(0,q.jsx)(pl.Provider,{value:b,children:(0,q.jsx)(`nav`,{ref:o,"aria-label":`Breadcrumbs`,className:G(ml.root,t),style:r,"data-component":`Breadcrumbs`,"data-overflow":i,"data-variant":a,children:(0,q.jsx)(`ol`,{className:G(ml.list,i===`wrap`?ml.listWrap:ml.listMenu),children:x})})})}vl.displayName=`Breadcrumbs`;const yl={root:`breadcrumbs-link`,normal:`breadcrumbs-link-normal`,normalSelected:`breadcrumbs-link-normal-selected`,spacious:`breadcrumbs-link-spacious`,spaciousSelected:`breadcrumbs-link-spacious-selected`};function bl(e,t){let{as:n=`a`,className:r,selected:i,...a}=e,{variant:o=`normal`}=l.useContext(pl),s=o===`spacious`;return(0,q.jsx)(n,{ref:t,"aria-current":i?`page`:void 0,className:G(yl.root,s?yl.spacious:yl.normal,i&&(s?yl.spaciousSelected:yl.normalSelected),r),"data-component":`Breadcrumbs.Item`,"data-selected":i?``:void 0,...a})}bl.displayName=`Breadcrumbs.Item`;var xl=K(bl);const Sl=Object.assign(vl,{Item:xl}),Cl=(0,l.createContext)({}),wl=(0,l.createContext)({}),Tl=(0,l.createContext)({}),El=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 Dl(e,t){let{as:n=`div`,className:r,variant:i=`default`,align:a,...o}=e,{align:s}=l.useContext(Tl),{align:c}=l.useContext(Cl),u=a??s??c??`start`,d={align:u,variant:i};return(0,q.jsx)(wl.Provider,{value:d,children:(0,q.jsx)(n,{ref:t,className:G(El({align:u,variant:i}),r),"data-component":`Bubble`,"data-variant":i,"data-align":u,...o})})}Dl.displayName=`Bubble`;var Ol=K(Dl);const kl={root:`bubble-content`};function Al(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(kl.root,r),"data-component":`Bubble.Content`,...i})}Al.displayName=`Bubble.Content`;var jl=K(Al);const Ml={root:`bubble-group`};function Nl(e,t){let{as:n=`div`,className:r,align:i=`start`,...a}=e;return(0,q.jsx)(Tl.Provider,{value:{align:i},children:(0,q.jsx)(n,{ref:t,className:G(Ml.root,r),"data-component":`Bubble.Group`,"data-align":i,...a})})}Nl.displayName=`Bubble.Group`;var Pl=K(Nl);const Fl=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 Il(e,t){let{as:n=`div`,className:r,side:i=`bottom`,align:a,...o}=e,{align:s}=l.useContext(wl),c=a??s??`end`;return(0,q.jsx)(n,{ref:t,className:G(Fl({side:i,align:c}),r),"data-component":`Bubble.Reactions`,"data-side":i,"data-align":c,...o})}Il.displayName=`Bubble.Reactions`;var Ll=K(Il);const Rl=Object.assign(Ol,{Group:Pl,Content:jl,Reactions:Ll}),zl={root:`button-group`,item:{root:`button-group-item`,first:`button-group-item-first`,last:`button-group-item-last`}},Bl=[`[disabled]`,`[hidden]`,`[inert]`],Vl=[`button`,`a[href]`,`summary`].map(e=>`${e}:not(${Bl.join(`):not(`)})`).join(`, `),Hl=e=>e?Array.from(e.querySelectorAll(Vl)):[],Ul=(e,t)=>{for(let n of e)n.tabIndex=n===t?0:-1};function Wl(e,t){let{as:n=`div`,className:r,children:i,role:a,onFocus:o,onKeyDown:s,...c}=e,u=l.useRef(null),d=ar(t,u),f=a===`toolbar`,p=l.useCallback(()=>{if(!f)return;let e=Hl(u.current),t=e.find(e=>e===document.activeElement);Ul(e,t??e[0])},[f]);l.useEffect(p),l.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 Hl(e))t.removeAttribute(`tabindex`)}},[f,p]);let m=e=>{if(o?.(e),!f)return;let t=Hl(u.current);t.includes(e.target)&&Ul(t,e.target)},h=e=>{s?.(e);let t=e.key===`ArrowRight`?1:e.key===`ArrowLeft`?-1:0;if(!f||t===0||e.defaultPrevented)return;let n=Hl(u.current),r=n.indexOf(document.activeElement);r!==-1&&(e.preventDefault(),n[(r+t+n.length)%n.length].focus())},g=l.Children.toArray(i);return(0,q.jsx)(n,{ref:d,className:G(zl.root,r),role:a,onFocus:m,onKeyDown:h,"data-component":`ButtonGroup`,...c,children:g.map((e,t)=>(0,q.jsx)(`div`,{className:G(zl.item.root,t===0&&zl.item.first,t===g.length-1&&zl.item.last),"data-component":`ButtonGroup.Item`,children:e},l.isValidElement(e)?e.key:t))})}Wl.displayName=`ButtonGroup`;var Gl=K(Wl);const Kl={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 ql(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(Kl.root,!l&&!a&&Kl.interactive,c&&Kl.outside,p&&Kl.between,l&&Kl.unavailable,m&&Kl.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:Kl.hidden,children:r})]})}ql.displayName=`Calendar.Day`;var Jl=K(ql),Yl=o(((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(){"use strict";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}))})),Xl=o(((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(){"use strict";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)}}}))})),Zl=o(((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(){"use strict";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)}}}))})),Ql=o(((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(){"use strict";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)}}}))})),$l=o(((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(){"use strict";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)}}}))})),eu=c(Yl()),tu=c(Xl()),nu=c(Zl()),ru=c(Ql()),iu=c($l());eu.default.extend(tu.default),eu.default.extend(nu.default),eu.default.extend(ru.default),eu.default.extend(iu.default);const au=`YYYY-MM-DD`,ou=e=>(0,eu.default)(e),su=e=>{if(e==null)return null;let t=ou(e);return t.isValid()?t:null},cu=e=>e.format(au),lu={from:null,to:null},uu=(e,t)=>{if(e==null)return lu;if(t){let t=e;return{from:su(t.from),to:su(t.to)}}let n=su(e);return{from:n,to:n}},du=()=>(0,eu.default)().localeData().firstDayOfWeek()??0,fu=e=>{let t=(0,eu.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]}})},pu=(e,t)=>e.subtract((e.day()-t+7)%7,`day`),mu=(e,t,n=!1)=>{let r=e.startOf(`month`),i=pu(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`)))},hu=(e,t,n,r)=>(t===null||!e.isBefore(t,`day`))&&(n===null||!e.isAfter(n,`day`))&&!r?.(e.toDate()),gu=(e,t)=>e.isAfter(t,`day`)?[t,e]:[e,t],_u=(e,t,n)=>{if(t===null)return n!==null&&e.isSame(n,`day`);if(n===null)return e.isSame(t,`day`);let[r,i]=gu(t,n);return!e.isBefore(r,`day`)&&!e.isAfter(i,`day`)},vu=(e,t,n)=>{if(t===null||n===null||t.isSame(n,`day`))return;let[r,i]=gu(t,n);return e.isSame(r,`day`)?`start`:e.isSame(i,`day`)?`end`:e.isAfter(r,`day`)&&e.isBefore(i,`day`)?`middle`:void 0},yu=(e,t,n)=>{if(e===null||t!==null)return{from:n,to:null};if(n.isSame(e,`day`))return lu;let[r,i]=gu(e,n);return{from:r,to:i}},bu=(e,t)=>{let n=(0,eu.default)(e,t,!0);return n.isValid()?n:null},xu=()=>(0,eu.default)(),Su={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 Cu(e,t){let{mode:n=`single`,value:r,defaultValue:i,onChange:a,month:o,defaultMonth:s,onMonthChange:c,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}=e,T=Y(),E=l.useRef(null),D=xu(),O=n===`range`,k=r!==void 0,[A,j]=l.useState(()=>uu(i,O)),M=k?uu(r,O):A,N=o!==void 0,[P,F]=l.useState(()=>(su(s)??uu(i,O).from??uu(r,O).from??xu()).startOf(`month`)),I=(N?ou(o):P).startOf(`month`),L=su(u),ee=su(d),R=p??du(),z=fu(R),te=mu(I,R,m),[ne,B]=l.useState(null),re=l.useRef(null),[V,ie]=l.useState(null),ae=O&&M.from!==null&&M.to===null,oe=ae?V:M.to,se=cu((()=>{for(let e of[ne,M.from,D])if(e&&e.isSame(I,`month`))return e;return I})());l.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),c?.(t.toDate())},le=e=>{B(e),re.current=cu(e),e.isSame(I,`month`)||ce(e)},ue=e=>{if(!hu(e,L,ee,f))return;B(e),e.isSame(I,`month`)||ce(e);let t=O?yu(M.from,M.to,e):{from:e,to:e};if(k||j(t),O){a?.({from:t.from?.toDate()??null,to:t.to?.toDate()??null});return}a?.(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(pu(t,R));case`End`:return n(pu(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:t,className:G(Su.root,C),"data-component":`Calendar`,...w,children:[(0,q.jsxs)(`div`,{className:Su.header,"data-component":`Calendar.Header`,children:[(0,q.jsx)(gi,{icon:$t,"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:Su.caption,"data-component":`Calendar.Caption`,children:I.format(_)}),(0,q.jsx)(gi,{icon:en,"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:Su.grid,onPointerLeave:me,"data-component":`Calendar.Grid`,"data-mode":n,children:[(0,q.jsx)(`thead`,{children:(0,q.jsxs)(`tr`,{children:[g?(0,q.jsx)(`th`,{scope:`col`,className:Su.weekNumberHeader,children:(0,q.jsx)(`span`,{className:Su.hidden,children:S})}):null,z.map(e=>(0,q.jsxs)(`th`,{scope:`col`,className:Su.weekday,"data-component":`Calendar.Weekday`,children:[(0,q.jsx)(`span`,{"aria-hidden":`true`,children:e.narrow}),(0,q.jsx)(`span`,{className:Su.hidden,children:e.full})]},e.day))]})}),(0,q.jsx)(`tbody`,{children:te.map(e=>(0,q.jsxs)(`tr`,{"data-component":`Calendar.Week`,children:[g?(0,q.jsx)(`th`,{scope:`row`,className:Su.weekNumber,"data-component":`Calendar.WeekNumber`,children:e[0].week()}):null,e.map(e=>{let t=cu(e),n=!e.isSame(I,`month`);if(n&&!h)return(0,q.jsx)(`td`,{className:Su.cell},t);let r=t===se,i=vu(e,M.from,oe);return(0,q.jsx)(`td`,{className:G(Su.cell,i&&Su.rangeCell,i===`start`&&Su.rangeCellStart,i===`end`&&Su.rangeCellEnd),children:(0,q.jsx)(Jl,{ref:r?y:void 0,label:e.format(`D`),name:e.format(v),dayKey:t,selected:_u(e,M.from,M.to),range:i,today:e.isSame(D,`day`),outside:n,unavailable:!hu(e,L,ee,f),tabbable:r,onClick:()=>ue(e),onKeyDown:t=>de(t,e),onFocus:()=>fe(e),onPointerEnter:()=>pe(e)})},t)})]},cu(e[0])))})]})]})}Cu.displayName=`Calendar`;var wu=K(Cu);const Tu=Object.assign(wu,{Day:Jl}),Eu={root:`card-action`};function Du(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Eu.root,n),"data-component":`Card.Action`,...r})}Du.displayName=`Card.Action`;var Ou=K(Du);const ku=(0,l.createContext)({}),Au={root:`card-description text-body-medium`};function ju(e,t){let{className:n,...r}=e;return(0,q.jsx)(`p`,{ref:t,className:G(Au.root,n),"data-component":`Card.Description`,...r})}ju.displayName=`Card.Description`;var Mu=K(ju);const Nu={root:`card-heading`,compact:`card-heading-compact`};function Pu(e,t){let{as:n=`h3`,className:r,id:i,...a}=e,{titleId:o,layout:s}=l.useContext(ku);return(0,q.jsx)(n,{ref:t,id:i??o,className:G(Nu.root,s===`compact`&&Nu.compact,r),"data-component":`Card.Heading`,...a})}Pu.displayName=`Card.Heading`;var Fu=K(Pu);const Iu={root:`card-icon`,tile:`card-icon-tile`};function Lu(e,t){let{icon:n,className:r,"aria-label":i,...a}=e,{layout:o}=l.useContext(ku);return(0,q.jsx)(`span`,{ref:t,role:i?`img`:void 0,"aria-label":i,"aria-hidden":!i||void 0,className:G(Iu.root,o!==`compact`&&Iu.tile,r),"data-component":`Card.Icon`,...a,children:(0,q.jsx)(n,{})})}Lu.displayName=`Card.Icon`;var Ru=K(Lu);const zu={root:`card-image`};function Bu(e,t){let{className:n,alt:r=``,...i}=e;return(0,q.jsx)(`img`,{ref:t,alt:r,className:G(zu.root,n),"data-component":`Card.Image`,...i})}Bu.displayName=`Card.Image`;var Vu=K(Bu);const Hu={root:`card-metadata text-body-small`};function Uu(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Hu.root,n),"data-component":`Card.Metadata`,...r})}Uu.displayName=`Card.Metadata`;var Wu=K(Uu);const Gu={content:`card-content`},Ku=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`}]}),qu=W(`card-header`,{variants:{edgeToEdge:{true:`card-header-edge-to-edge`,false:``},layout:{default:``,compact:`card-header-compact`}}}),Ju=W(`card-body`,{variants:{layout:{default:``,compact:`card-body-compact`}}});function Yu(e,t){let{as:n=`div`,className:r,children:i,padding:a=`normal`,borderRadius:o=`large`,layout:s=`default`,"aria-label":c,"aria-labelledby":u,...d}=e,f=Y(),[p]=xr(i,{icon:Ru,image:Vu,heading:Fu,description:Mu,metadata:Wu,action:Ou}),m=n===`section`,h=m?f:void 0,g=u??(m&&!c?h:void 0),_=p.image??p.icon,v=!!(_||p.heading||p.description||p.metadata||p.action);return l.Children.toArray(i).length===0?null:(0,q.jsx)(ku.Provider,{value:{titleId:h,layout:s},children:(0,q.jsx)(n,{ref:t,"aria-label":c,"aria-labelledby":g,className:G(Ku({borderRadius:o,layout:s,padding:a}),r),"data-component":`Card`,"data-padding":a,"data-border-radius":o,"data-layout":s,...d,children:v?(0,q.jsxs)(q.Fragment,{children:[_?(0,q.jsx)(`div`,{className:G(qu({edgeToEdge:!!p.image,layout:s})),children:_}):null,(0,q.jsxs)(`div`,{className:G(Ju({layout:s})),children:[(0,q.jsxs)(`div`,{className:Gu.content,children:[p.heading,p.description]}),p.metadata]}),p.action]}):i})})}Yu.displayName=`Card`;var Xu=K(Yu);const Zu=Object.assign(Xu,{Icon:Ru,Image:Vu,Heading:Fu,Description:Mu,Metadata:Wu,Action:Ou}),Qu={triangle:`caret-triangle`,border:`caret-border`},$u=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`}}}),ed=(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 td(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($u({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:ed(u,r),children:[(0,q.jsx)(`path`,{className:Qu.triangle,d:m}),(0,q.jsx)(`path`,{className:Qu.border,d:h})]})})}td.displayName=`Caret`;var nd=K(td);const rd=()=>{},id=(0,l.createContext)({index:0,count:0,loop:!1,autoPlay:!1,isPlaying:!1,goTo:rd,previous:rd,next:rd,togglePlaying:rd,slidesId:``}),ad=(0,l.createContext)({index:0}),od={root:`carousel-indicators`,dot:`carousel-indicator`,current:`carousel-indicator-current`};function sd(e,t){let{className:n,...r}=e,{index:i,count:a,goTo:o,slidesId:s}=l.useContext(id);return a===0?null:(0,q.jsx)(`div`,{ref:t,className:G(od.root,n),"data-component":`Carousel.Indicators`,...r,children:Array.from({length:a},(e,t)=>{let n=t===i;return(0,q.jsx)(`button`,{type:`button`,"aria-label":`Slide ${t+1}`,"aria-current":n||void 0,"aria-controls":s||void 0,onClick:()=>o(t,`indicator`),className:G(od.dot,n&&od.current),"data-component":`Carousel.Indicator`,"data-current":n||void 0},t)})})}sd.displayName=`Carousel.Indicators`;var cd=K(sd);function ld(e,t){let{className:n,onClick:r,...i}=e,{index:a,count:o,loop:s,next:c,slidesId:u}=l.useContext(id);return(0,q.jsx)(gi,{ref:t,icon:en,"aria-label":`Next slide`,"aria-controls":u||void 0,variant:`invisible`,disabled:!s&&a>=o-1,onClick:e=>{r?.(e),e.defaultPrevented||c()},className:n,"data-component":`Carousel.NextButton`,...i})}ld.displayName=`Carousel.NextButton`;var ud=K(ld);function dd(e,t){let{className:n,onClick:r,...i}=e,{isPlaying:a,togglePlaying:o,slidesId:s}=l.useContext(id);return(0,q.jsx)(gi,{ref:t,icon:a?wn:Tn,"aria-label":a?`Stop automatic slide show`:`Start automatic slide show`,"aria-controls":s||void 0,variant:`invisible`,onClick:e=>{r?.(e),e.defaultPrevented||o()},className:n,"data-component":`Carousel.PlayButton`,"data-playing":a||void 0,...i})}dd.displayName=`Carousel.PlayButton`;var fd=K(dd);function pd(e,t){let{className:n,onClick:r,...i}=e,{index:a,loop:o,previous:s,slidesId:c}=l.useContext(id);return(0,q.jsx)(gi,{ref:t,icon:$t,"aria-label":`Previous slide`,"aria-controls":c||void 0,variant:`invisible`,disabled:!o&&a<=0,onClick:e=>{r?.(e),e.defaultPrevented||s()},className:n,"data-component":`Carousel.PreviousButton`,...i})}pd.displayName=`Carousel.PreviousButton`;var md=K(pd);const hd={root:`carousel-controls`};function gd(e,t){let{className:n,children:r,...i}=e,{autoPlay:a}=l.useContext(id),o=l.Children.toArray(r).length>0;return(0,q.jsx)(`div`,{ref:t,className:G(hd.root,n),"data-component":`Carousel.Controls`,...i,children:o?r:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(md,{}),(0,q.jsx)(cd,{}),(0,q.jsx)(ud,{}),a?(0,q.jsx)(fd,{}):null]})})}gd.displayName=`Carousel.Controls`;var _d=K(gd);const vd={root:`carousel-slide`};function yd(e,t){let{className:n,...r}=e,{index:i,count:a}=l.useContext(id),{index:o}=l.useContext(ad),s=o===i;return(0,q.jsx)(`div`,{ref:t,role:`group`,"aria-roledescription":`slide`,"aria-label":`${o+1} of ${a}`,inert:!s,className:G(vd.root,n),"data-component":`Carousel.Slide`,"data-current":s||void 0,...r})}yd.displayName=`Carousel.Slide`;var bd=K(yd);const xd={root:`carousel`,viewport:`carousel-viewport`,track:`carousel-track`,motion:`motion-safe:[transition:translate_var(--motion-transition-state-change)]`},Sd=(e,t,n)=>t<=0?0:n?(e%t+t)%t:Math.min(Math.max(e,0),t-1);function Cd(e,t){let{className:n,children:r,index:i,defaultIndex:a=0,onChange:o,loop:s=!1,autoPlay:c=!1,interval:u=5e3,...d}=e,f=Y(),p=i!==void 0,[m,h]=l.useState(a),[g,_]=l.useState(c),[v,y]=l.useState(!1),b=l.useRef(o);rr(()=>{b.current=o},[o]);let x=[],S=[],C=null;l.Children.forEach(r,e=>{if(!l.isValidElement(e)){S.push(e);return}if(e.type===bd){x.push(e);return}if(e.type===_d&&C===null){C=e;return}S.push(e)});let w=x.length,T=Sd(p?i:m,w,s),E=(e,t)=>{let n=Sd(e,w,s);p||h(n),b.current?.(n,t)};l.useEffect(()=>{if(!g||v||w<2)return;let e=window.setTimeout(()=>{if(!s&&T>=w-1){_(!1);return}let e=Sd(T+1,w,s);p||h(e),b.current?.(e,`auto`)},u);return()=>{window.clearTimeout(e)}},[g,v,w,T,u,s,p]);let D={index:T,count:w,loop:s,autoPlay:c,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)(id.Provider,{value:D,children:(0,q.jsxs)(`section`,{ref:t,"aria-roledescription":`carousel`,className:G(xd.root,n),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:xd.viewport,"aria-live":L?`off`:`polite`,"aria-atomic":`false`,"data-component":`Carousel.Viewport`,children:(0,q.jsx)(`div`,{className:G(xd.track,xd.motion),style:{"--carousel-index":T},"data-component":`Carousel.Track`,children:x.map((e,t)=>(0,q.jsx)(ad.Provider,{value:{index:t},children:e},e.key??t))})}),C??(0,q.jsx)(_d,{}),S]})})}Cd.displayName=`Carousel`;var wd=K(Cd);const Td=Object.assign(wd,{Slide:bd,Controls:_d,PreviousButton:md,NextButton:ud,Indicators:cd,PlayButton:fd}),Ed=(0,l.createContext)(null),Dd=()=>{let e=(0,l.useContext)(Ed);if(!e)throw Error(`Chart parts have to be rendered inside a Chart`);return e},Od={root:`chart`};function kd(e,t){let{chart:n,className:r,children:i,...a}=e;return(0,q.jsx)(Ed.Provider,{value:n,children:(0,q.jsx)(`div`,{ref:t,className:G(Od.root,r),"data-component":`Chart`,...a,children:(0,q.jsx)(p.ResponsiveContainer,{width:`100%`,height:`100%`,children:i})})})}kd.displayName=`Chart`;var Ad=K(kd);function jd(e){let{id:t,fillOpacity:n,stops:r}=e,i=Dd();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))})}jd.displayName=`Chart.Gradient`;const Md=[`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)`],Nd=`var(--foreground-color-muted)`,Pd={blue:Md[0],orange:Md[1],purple:Md[2],green:Md[3],pink:Md[4],grid:`var(--border-color-muted)`,axis:`var(--border-color-default)`,surface:`var(--background-color-default)`,foreground:`var(--foreground-color-default)`,muted:Nd},Fd=(e,t)=>t??Md[e]??`var(--foreground-color-muted)`,Id=e=>typeof e==`object`&&!!e,Ld=(e,t)=>{if(!(!t||!Id(e)))return e[t]},Rd=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)},zd=(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())},Bd=e=>{let{data:t,series:n=[],sort:r,locale:i}=e,a=`chart-${l.useId().replace(/[^\w-]/g,``)}`,[o,s]=l.useState(null),c=n.map((e,t)=>({...e,color:Fd(t,e.color)})),u=l.useMemo(()=>r?[...t].sort((e,t)=>{let n=Number(e[r.by]),i=Number(t[r.by]);return r.direction===`desc`?i-n:n-i}):t,[t,r]),d=e=>e??`value`,f=e=>{if(e)return Pd[e]??e},p=l.useCallback(e=>{let t=new Intl.NumberFormat(i,e);return e=>t.format(e)},[i]),m=l.useCallback(e=>{let t=new Intl.DateTimeFormat(i,e);return e=>{let n=Rd(e);return Number.isNaN(n.getTime())?String(e):t.format(n)}},[i]),h=e=>{if(!Id(e))return;let t=c.find(t=>t.name===e.name||t.name===Ld(e.payload,`name`)||t.name===e.dataKey||t.name===Ld(e.payload,`dataKey`)),n=t?.name?.toString()??Ld(e.payload,`name`);return{name:n,color:t?.color??Ld(e.payload,`color`),icon:t?.icon,label:t?.label??n}},g=e=>zd(u,e),_=e=>t.reduce((t,n)=>t+Number(n[e]),0),v=e=>Math.min(...t.map(t=>Number(t[e]))),y=e=>Math.max(...t.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=>o===e;return{id:a,key:d,data:u,series:c,getSeries:h,groupBy:g,color:f,formatNumber:p,formatDate:m,highlightedSeries:o,setHighlightedSeries:s,isHighlightedSeries:S,getSeriesOpacity:(e,t=.2)=>{if(e&&o)return S(e)?1:t},getTotal:_,getMin:v,getMax:y,getPayloadTotal:b,getValuePercent:x}},Vd={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 Hd(e){let{payload:t,align:n=`center`,verticalAlign:r=`bottom`,layout:i=`auto`,title:a,nameKey:o,interaction:s=`hover`,className:c}=e,l=Dd(),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(Vd.root,c),"data-component":`Chart.Legend`,"data-align":n,"data-vertical-align":r,children:[a?(0,q.jsx)(`div`,{className:Vd.title,children:a}):null,(0,q.jsx)(`ul`,{className:Vd.list,"data-orientation":u,children:d.map((e,t)=>{let n=l.getSeries(e),r=n?.name,i=Ld(e.payload,o)??n?.label,a=(0,q.jsxs)(q.Fragment,{children:[n?.icon??(0,q.jsx)(`span`,{className:Vd.swatch,style:{background:l.color(n?.color)},"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:Vd.label,children:i})]});return(0,q.jsx)(`li`,{className:Vd.item,"data-component":`Chart.LegendItem`,"data-series":r,style:{opacity:l.getSeriesOpacity(r,.6)},children:s===`click`?(0,q.jsx)(`button`,{type:`button`,className:Vd.control,"aria-pressed":l.isHighlightedSeries(r),onClick:()=>{r&&l.setHighlightedSeries(e=>e===r?null:r)},children:a}):(0,q.jsx)(`span`,{className:Vd.control,onMouseEnter:()=>l.setHighlightedSeries(r??null),onMouseLeave:()=>l.setHighlightedSeries(null),children:a})},`${r??`series`}-${t}`)})})]}):null}Hd.displayName=`Chart.Legend`;const Ud={title:`chart-radial-title`,description:`chart-radial-description`},Wd=e=>`cx`in e&&`cy`in e;function Gd(e){let{viewBox:t,title:n,description:r,gap:i=24,fontSize:a=`2rem`}=e,o=Dd();return!t||!Wd(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:Ud.title,x:t.cx,y:t.cy,style:{fontSize:a,fill:o.color(`foreground`)},children:n}),r?(0,q.jsx)(`tspan`,{className:Ud.description,x:t.cx,y:t.cy+i,style:{fill:o.color(`muted`)},children:r}):null]})}Gd.displayName=`Chart.RadialText`;const Kd={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 qd(e){let{payload:t,label:n,labelFormatter:r,hideLabel:i,hideIndicator:a,hideSeriesLabel:o,showTotal:s,fitContent:c,nameKey:u,indicator:d=`dot`,formatter:f,render:p,className:m}=e,h=Dd(),g=t?.filter(e=>e.color!==`none`||e.type!==`none`),_=l.useMemo(()=>h.getPayloadTotal(g),[h,g]),v=l.useMemo(()=>{let e=g?.[0];if(!e)return;let t=`${Ld(e.payload,u)??n??e.dataKey??`value`}`;return r?.(t,g??[])??t},[n,r,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(Kd.root,m),"data-component":`Chart.Tooltip`,"data-fit-content":c?``:void 0,children:[i?null:(0,q.jsx)(`div`,{className:Kd.label,children:v}),(0,q.jsx)(`div`,{className:Kd.rows,children:g.map((e,t)=>{if(p)return(0,q.jsx)(l.Fragment,{children:p(e.payload)},t);let n=h.getSeries(e),[r,i]=y(e.value,n?.label??e.name);return(0,q.jsxs)(`div`,{className:Kd.row,"data-component":`Chart.TooltipRow`,"data-series":n?.name,children:[n?.icon??(n?.color&&!a?(0,q.jsx)(`span`,{className:Kd.swatch,"data-indicator":d,style:{background:h.color(n.color)},"aria-hidden":`true`}):null),o?null:(0,q.jsx)(`span`,{className:Kd.name,children:i}),(0,q.jsx)(`span`,{className:Kd.value,children:r})]},t)})}),s&&_!==void 0?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`hr`,{className:Kd.divider}),(0,q.jsxs)(`div`,{className:Kd.row,"data-component":`Chart.TooltipTotal`,children:[(0,q.jsx)(`span`,{className:Kd.name,children:`Total`}),(0,q.jsx)(`span`,{className:Kd.value,children:y(_,``)[0]})]})]}):null]})}qd.displayName=`Chart.Tooltip`;const Jd=Object.assign(Ad,{Gradient:jd,Legend:Hd,RadialText:Gd,Tooltip:qd}),Yd=(0,l.createContext)({}),Xd={checkmark:`url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=")`,dash:`url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K")`},Zd={root:`checkbox`,mark:`checkbox-mark`,checked:`checkbox-checked`,disabled:`checkbox-disabled`};function Qd(e,t){let{className:n,style:r,checked:i,indeterminate:a,required:o,validationStatus:s,value:c,onChange:u,...d}=e,f=l.useRef(null),p=ar(t,f),m=l.useContext(Yd);return rr(()=>{f.current&&(f.current.indeterminate=a??!1)},[a,i]),(0,q.jsx)(`input`,{ref:p,type:`checkbox`,checked:a&&i!==void 0?!1:i,required:o,value:c,name:c,"aria-checked":a?`mixed`:void 0,"aria-required":o?!0:void 0,"aria-invalid":s===`error`||void 0,onChange:e=>{m.onChange?.(e),u?.(e)},className:G(Zd.root,Zd.mark,Zd.checked,Zd.disabled,n),style:{...r,"--checkbox-mark":a?Xd.dash:Xd.checkmark},"data-component":`Checkbox`,...d})}Qd.displayName=`Checkbox`;var $d=K(Qd);const ef=(0,l.createContext)({}),tf={root:`checkbox-card-description`};function nf(e,t){let{className:n,id:r,...i}=e,{descriptionId:a}=l.useContext(ef);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(tf.root,n),"data-component":`CheckboxCard.Description`,...i})}nf.displayName=`CheckboxCard.Description`;var rf=K(nf);const af={root:`checkbox-card-label`};function of(e,t){let{className:n,id:r,...i}=e,{labelId:a}=l.useContext(ef);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(af.root,n),"data-component":`CheckboxCard.Label`,...i})}of.displayName=`CheckboxCard.Label`;var sf=K(of);const cf={root:`checkbox-card-leading-visual`};function lf(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(cf.root,n),"data-component":`CheckboxCard.LeadingVisual`,...i})}lf.displayName=`CheckboxCard.LeadingVisual`;var uf=K(lf);const df={body:`checkbox-card-body`,control:`checkbox-card-control`},ff=W(`checkbox-card`,{variants:{disabled:{true:`checkbox-card-disabled`,false:`checkbox-card-interactive`},validation:{error:`checkbox-card-error`,success:`checkbox-card-success`}}});function pf(e,t){let{className:n,children:r,value:i,checked:a,defaultChecked:o,indeterminate:s,disabled:c,required:u,validationStatus:d,onChange:f,id:p,"aria-label":m,"aria-labelledby":h,"aria-describedby":g,..._}=e,v=l.useContext(Yd).disabled||c,y=Y(p),b=`${y}-label`,x=`${y}-description`,[S,C]=xr(r,{leadingVisual:uf,label:sf,description:rf}),w=h??(S.label&&!m?b:void 0),T=[S.description?x:void 0,g].filter(Boolean).join(` `)||void 0;return(0,q.jsx)(ef.Provider,{value:{labelId:b,descriptionId:x},children:(0,q.jsxs)(`label`,{ref:t,className:G(ff({disabled:!!v,validation:d}),n),"data-component":`CheckboxCard`,"data-disabled":v,"data-required":u,"data-validation":d,..._,children:[S.leadingVisual,(0,q.jsxs)(`div`,{className:df.body,children:[S.label,S.description,C]}),(0,q.jsx)($d,{id:y,value:i,checked:a,defaultChecked:o,indeterminate:s,disabled:v,required:u,validationStatus:d,onChange:f,"aria-label":m,"aria-labelledby":w,"aria-describedby":T,className:df.control})]})})}pf.displayName=`CheckboxCard`;var mf=K(pf);const hf=Object.assign(mf,{LeadingVisual:uf,Label:sf,Description:rf}),gf={root:`checkbox-group-caption`};function _f(e,t){let{className:n,...r}=e,{captionId:i}=l.useContext(Yd);return(0,q.jsx)(`span`,{ref:t,id:i,className:G(gf.root,n),"data-component":`CheckboxGroup.Caption`,...r})}_f.displayName=`CheckboxGroup.Caption`;var vf=K(_f);const yf={root:`checkbox-group-label`,disabled:`checkbox-group-label-disabled`,hidden:`sr-only`,required:`checkbox-group-label-required`};function bf(e,t){let{className:n,children:r,visuallyHidden:i,...a}=e,{disabled:o,required:s}=l.useContext(Yd);return(0,q.jsxs)(`span`,{ref:t,title:s?`required field`:void 0,className:G(yf.root,o&&yf.disabled,i&&yf.hidden,n),"data-component":`CheckboxGroup.Label`,"data-label-disabled":o,...a,children:[r,s?(0,q.jsx)(`span`,{className:yf.required,children:`*`}):null]})}bf.displayName=`CheckboxGroup.Label`;var xf=K(bf);const Sf={success:Xt,error:fn},Cf={icon:`checkbox-group-validation-icon`},wf=W(`checkbox-group-validation`,{variants:{variant:{success:`checkbox-group-validation-success`,error:`checkbox-group-validation-error`}}});function Tf(e,t){let{className:n,children:r,variant:i,...a}=e,{validationMessageId:o}=l.useContext(Yd),s=Sf[i];return(0,q.jsxs)(`span`,{ref:t,className:G(wf({variant:i}),n),"data-component":`CheckboxGroup.Validation`,"data-validation-status":i,...a,children:[(0,q.jsx)(s,{className:Cf.icon,"aria-hidden":`true`}),(0,q.jsx)(`span`,{id:o,children:r})]})}Tf.displayName=`CheckboxGroup.Validation`;var Ef=K(Tf);const Df={root:`checkbox-group`,legend:`checkbox-group-legend`,legendVisible:`checkbox-group-legend-visible`,body:`checkbox-group-body`,validation:`checkbox-group-validation-slot`,hidden:`sr-only`},Of=e=>{let t=[],n=e=>{l.Children.forEach(e,e=>{if(l.isValidElement(e)){if(e.type===$d){let{checked:n,defaultChecked:r,value:i}=e.props;(n||r)&&i&&t.push(i);return}n(e.props.children)}})};return n(e),t};function kf(e,t){let{as:n=`fieldset`,className:r,children:i,disabled:a,required:o,onChange:s,id:c,"aria-labelledby":u,...d}=e,[f,p]=xr(i,{label:xf,caption:vf,validation:Ef}),m=Y(c),h=f.caption?`${m}-caption`:void 0,g=f.validation?`${m}-validation`:void 0,[_,v]=l.useState(()=>Of(i)),y=e=>{let{value:t,checked:n}=e.currentTarget,r=n?[..._,t]:_.filter(e=>e!==t);v(r),s?.(r,e)},b=l.isValidElement(f.label)?!f.label.props.visuallyHidden:!1,x={disabled:a,required:o,captionId:h,validationMessageId:g,onChange:y};return(0,q.jsx)(Yd.Provider,{value:x,children:(0,q.jsxs)(n,{ref:t,id:m,disabled:a,"aria-labelledby":f.label?void 0:u,"aria-describedby":[g,h].filter(Boolean).join(` `)||void 0,className:G(Df.root,r),"data-component":`CheckboxGroup`,"data-disabled":a,"data-required":o,...d,children:[f.label?(0,q.jsxs)(`legend`,{className:G(Df.legend,b&&Df.legendVisible),children:[f.label,o?(0,q.jsx)(`span`,{className:Df.hidden,children:`, required`}):null,f.caption]}):f.caption,(0,q.jsx)(`div`,{className:Df.body,children:p}),f.validation?(0,q.jsx)(`div`,{className:Df.validation,children:f.validation}):null]})})}kf.displayName=`CheckboxGroup`;var Af=K(kf);const jf=Object.assign(Af,{Label:xf,Caption:vf,Validation:Ef}),Mf=(0,l.createContext)({}),Nf=()=>(0,l.useContext)(Mf),Pf=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?.()}},Ff=async e=>{if(typeof navigator<`u`&&typeof navigator.clipboard?.writeText==`function`)try{await navigator.clipboard.writeText(e);return}catch(t){if(Pf(e))return;throw t}if(!Pf(e))throw Error(`The clipboard could not be reached`)},If=(e={})=>{let{value:t,defaultValue:n,timeout:r=3e3,disabled:i,onValueChange:a,onStatusChange:o,onCopyError:s}=e,c=t!==void 0,[u,d]=l.useState(n??``),f=c?t:u,[p,m]=l.useState(0),h=p>0,g=l.useRef(o);return l.useEffect(()=>{g.current=o},[o]),l.useEffect(()=>{if(p===0||r<=0)return;let e=window.setTimeout(()=>{m(0),g.current?.(!1)},r);return()=>{window.clearTimeout(e)}},[p,r]),{value:f,copied:h,disabled:!!i,copy:()=>{i||Ff(f).then(()=>{m(e=>e+1),o?.(!0)},e=>{s?.(e)})},setValue:e=>{c||d(e),a?.(e)}}},Lf={root:`clipboard`,hidden:`sr-only`};function Rf(e,t){let{as:n=`div`,className:r,value:i,defaultValue:a,timeout:o,disabled:s,copiedAnnouncement:c=`Copied to clipboard`,onValueChange:u,onStatusChange:d,onCopyError:f,children:p,...m}=e,h=If({value:i,defaultValue:a,timeout:o,disabled:s,onValueChange:u,onStatusChange:d,onCopyError:f}),[g,_]=l.useState(void 0),v={...h,inputId:g,setInputId:_};return(0,q.jsx)(Mf.Provider,{value:v,children:(0,q.jsxs)(n,{ref:t,className:G(Lf.root,r),"data-component":`Clipboard`,"data-copied":h.copied,"data-disabled":h.disabled,...m,children:[p,c===null?null:(0,q.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:Lf.hidden,"data-component":`Clipboard.Announcement`,children:h.copied?c:``})]})})}Rf.displayName=`Clipboard`;var zf=K(Rf);const Bf={root:`clipboard-control`};function Vf(e,t){let{as:n=`div`,className:r,...i}=e,{copied:a}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(Bf.root,r),"data-component":`Clipboard.Control`,"data-copied":!!a,...i})}Vf.displayName=`Clipboard.Control`;var Hf=K(Vf);const Uf={root:`clipboard-copy-text`,hidden:`sr-only`};function Wf(e,t){let{as:n=`span`,className:r,children:i=`Copy`,copied:a=`Copied`,visuallyHidden:o,...s}=e,{copied:c}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(Uf.root,o&&Uf.hidden,r),"data-component":`Clipboard.CopyText`,"data-copied":!!c,...s,children:c?a:i})}Wf.displayName=`Clipboard.CopyText`;var Gf=K(Wf);const Kf={root:`clipboard-indicator`,copied:`clipboard-indicator-copied`};function qf(e,t){let{as:n=`span`,className:r,children:i,copied:a,...o}=e,{copied:s}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(Kf.root,s&&Kf.copied,r),"aria-hidden":`true`,"data-component":`Clipboard.Indicator`,"data-copied":!!s,...o,children:s?a??(0,q.jsx)(Zt,{}):i??(0,q.jsx)(cn,{})})}qf.displayName=`Clipboard.Indicator`;var Jf=K(qf);const Yf=(0,l.createContext)({}),Xf=e=>{let{id:t,disabled:n,required:r,captionId:i,validationMessageId:a}=l.useContext(Yf);return{id:t,disabled:n,required:r,"aria-describedby":[a,i].filter(Boolean).join(` `)||void 0,...e}},Zf={root:`clipboard-input`};function Qf(e,t){let{required:n,...r}=Xf(e),{className:i,id:a,disabled:o,onFocus:s,...c}=r,{value:u,copied:d,disabled:f,setInputId:p}=l.useContext(Mf),m=Y(a);return rr(()=>(p?.(m),()=>p?.(void 0)),[m,p]),(0,q.jsx)(qo,{ref:t,id:m,value:u??``,readOnly:!0,disabled:o??f,onFocus:e=>{s?.(e),!e.defaultPrevented&&e.target.select()},className:G(Zf.root,i),"data-component":`Clipboard.Input`,"data-copied":!!d,...c})}Qf.displayName=`Clipboard.Input`;var $f=K(Qf);const ep={root:`clipboard-label`,disabled:`clipboard-label-disabled`};function tp(e,t){let{as:n=`label`,className:r,htmlFor:i,...a}=e,{inputId:o,disabled:s}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,htmlFor:n===`label`?i??o:void 0,className:G(ep.root,s&&ep.disabled,r),"data-component":`Clipboard.Label`,"data-disabled":!!s,...a})}tp.displayName=`Clipboard.Label`;var np=K(tp);const rp={root:`clipboard-trigger`};function ip(e,t){let{className:n,children:r,label:i=`Copy`,disabled:a,onClick:o,...s}=e,{copied:c,disabled:u,copy:d}=l.useContext(Mf),[f,p]=xr(r,{indicator:Jf}),m=f.indicator??(0,q.jsx)(Jf,{}),h=p.some(e=>e!=null&&e!==!1),g={disabled:a??u,onClick:e=>{o?.(e),!e.defaultPrevented&&d?.()},className:G(rp.root,n),"data-component":`Clipboard.Trigger`,"data-copied":!!c,...s};return h?(0,q.jsx)(pi,{ref:t,leadingVisual:m,...g,children:p}):(0,q.jsx)(gi,{ref:t,icon:m,"aria-label":i,...g})}ip.displayName=`Clipboard.Trigger`;var ap=K(ip);const op={root:`clipboard-value-text`};function sp(e,t){let{as:n=`span`,className:r,children:i,...a}=e,{value:o,copied:s}=l.useContext(Mf);return(0,q.jsx)(n,{ref:t,className:G(op.root,r),"data-component":`Clipboard.ValueText`,"data-copied":!!s,...a,children:i??o})}sp.displayName=`Clipboard.ValueText`;var cp=K(sp);const lp=Object.assign(zf,{Root:zf,Label:np,Control:Hf,Input:$f,Trigger:ap,Indicator:Jf,CopyText:Gf,ValueText:cp}),up={root:`code`};function dp(e,t){let{as:n=`code`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(up.root,r),"data-component":`Code`,...i})}dp.displayName=`Code`;var fp=K(dp);const pp=(0,l.createContext)({}),mp=`text`,hp=`github-light`,gp=`github-dark`,_p=e=>e.split(`
27
27
  `).map(e=>e.length>0?[{content:e}]:[]),vp=async(e,t)=>{let{tokens:n}=await(0,m.codeToTokens)(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})))},yp={root:`code-block`,numbered:`code-block-numbered`,wrap:`code-block-wrap`,nowrap:`code-block-nowrap`};function bp(e,t){let{as:n=`div`,className:r,language:i=mp,lightTheme:a=hp,darkTheme:o=gp,showLineNumbers:s=!1,wrap:c=`nowrap`,...l}=e,u={language:i,lightTheme:a,darkTheme:o,showLineNumbers:s,wrap:c};return(0,q.jsx)(pp.Provider,{value:u,children:(0,q.jsx)(n,{ref:t,className:G(yp.root,s&&yp.numbered,yp[c],r),"data-component":`CodeBlock`,"data-language":i,...l})})}bp.displayName=`CodeBlock`;var xp=K(bp);const Sp={root:`code-block-pre`,code:`code-block-code`,line:`code-block-line`,token:`code-block-token`};function Cp(e,t){let{className:n,children:r=``,language:i,...a}=e,{language:o=mp,lightTheme:s=hp,darkTheme:c=gp}=l.useContext(pp),u=i??o,d=r.replace(/\n$/,``),[f,p]=l.useState(null);l.useEffect(()=>{let e=!1;return vp(d,{language:u,lightTheme:s,darkTheme:c}).then(t=>{e||p({source:d,lines:t})}).catch(()=>{e||p({source:d,lines:_p(d)})}),()=>{e=!0}},[d,u,s,c]);let m=f?.source===d,h=m?f.lines:_p(d);return(0,q.jsx)(`pre`,{ref:t,className:G(Sp.root,n),"data-component":`CodeBlock.Code`,"data-language":u,"data-highlighted":m,...a,children:(0,q.jsx)(`code`,{className:Sp.code,children:h.map((e,t)=>(0,q.jsxs)(l.Fragment,{children:[t>0?`
28
28
  `:null,(0,q.jsx)(`span`,{className:Sp.line,children:e.map((e,t)=>(0,q.jsx)(`span`,{className:Sp.token,style:e.style,children:e.content},t))})]},t))})})}Cp.displayName=`CodeBlock.Code`;var wp=K(Cp);const Tp=e=>{let[t,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{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},Ep={root:`code-block-content`};function Dp(e,t){let{as:n=`div`,className:r,...i}=e,a=l.useRef(null),o=ar(t,a),s=Tp(a);return(0,q.jsx)(n,{ref:o,tabIndex:s?0:void 0,className:G(Ep.root,r),"data-component":`CodeBlock.Content`,...i})}Dp.displayName=`CodeBlock.Content`;var Op=K(Dp);const kp={root:`code-block-header`};function Ap(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(kp.root,r),"data-component":`CodeBlock.Header`,...i})}Ap.displayName=`CodeBlock.Header`;var jp=K(Ap);const Mp={root:`code-block-title`};function Np(e,t){let{as:n=`span`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Mp.root,r),"data-component":`CodeBlock.Title`,...i})}Np.displayName=`CodeBlock.Title`;var Pp=K(Np);const Fp=Object.assign(xp,{Header:jp,Title:Pp,Content:Op,Code:wp}),Ip=(0,l.createContext)({}),Lp={root:`block`};function Rp(e,t){let{as:n=`div`,className:r,open:i,defaultOpen:a,disabled:o,onChange:s,...c}=e,u=Y(),d=i!==void 0,[f,p]=l.useState(!!a),m=d?i:f,[h,g]=l.useState(!0),_=e=>{o||(d||p(e),s?.(e))},v={triggerId:`${u}-trigger`,panelId:`${u}-panel`,isOpen:m,disabled:!!o,isPanelPresent:h,setPanelPresent:g,setOpen:_,toggle:()=>_(!m)};return(0,q.jsx)(Ip.Provider,{value:v,children:(0,q.jsx)(n,{ref:t,className:G(Lp.root,r),"data-component":`Collapsible`,"data-open":m,"data-disabled":!!o,...c})})}Rp.displayName=`Collapsible`;var zp=K(Rp);const Bp={root:`collapsible-panel`};function Vp(e,t){let{as:n=`div`,className:r,keepMounted:i=!0,hiddenUntilFound:a=!1,...o}=e,{panelId:s,isOpen:c,setOpen:u,setPanelPresent:d}=l.useContext(Ip),f=l.useRef(null),p=ar(t,f),m=i||a||!!c;return rr(()=>(d?.(m),()=>d?.(!1)),[m,d]),rr(()=>{let e=f.current;!e||!c||e.style.setProperty(`--collapsible-panel-height`,`${e.scrollHeight}px`)},[c]),rr(()=>{let e=f.current;!e||!a||c||e.setAttribute(`hidden`,`until-found`)},[a,c]),l.useEffect(()=>{let e=f.current;if(!e||!a)return;let t=()=>u?.(!0);return e.addEventListener(`beforematch`,t),()=>e.removeEventListener(`beforematch`,t)},[a,u]),m?(0,q.jsx)(n,{ref:p,id:s,hidden:!c,className:G(Bp.root,r),"data-component":`Collapsible.Panel`,"data-open":!!c,...o}):null}Vp.displayName=`Collapsible.Panel`;var Hp=K(Vp);const Up={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 Wp(e,t){let{className:n,children:r,indicator:i=`end`,onClick:a,...o}=e,{triggerId:s,panelId:c,isOpen:u,disabled:d,isPanelPresent:f,toggle:p}=l.useContext(Ip),m=e=>{a?.(e),!e.defaultPrevented&&p?.()},h=i===`none`?null:(0,q.jsx)(Qt,{className:G(Up.indicator,i===`start`?u?Up.indicatorStartOpen:Up.indicatorStart:u&&Up.indicatorOpen),"aria-hidden":`true`});return(0,q.jsxs)(`button`,{ref:t,type:`button`,id:s,className:G(Up.root,d&&Up.disabled,n),onClick:m,disabled:d,"aria-expanded":!!u,"aria-controls":f?c:void 0,"data-component":`Collapsible.Trigger`,"data-open":!!u,"data-indicator":i,...o,children:[i===`start`?h:null,(0,q.jsx)(`span`,{className:i===`end`?Up.labelEnd:Up.label,children:r}),i===`end`?h:null]})}Wp.displayName=`Collapsible.Trigger`;var Gp=K(Wp);const Kp=Object.assign(zp,{Root:zp,Trigger:Gp,Panel:Hp,Content:Hp}),qp=(0,l.createContext)(null),Jp=(0,l.createContext)(null),Yp=(0,l.createContext)(null),Xp={root:`combobox`};function Zp(e,t){let{value:n,defaultValue:r=[],onValueChange:i,onSelect:a,inputValue:o,defaultInputValue:s=``,onInputValueChange:c,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}=e,R=Y(P),z=`${R}-input`,te=`${R}-label`,ne=`${R}-list`,B=l.useRef(null),re=ar(t,B),V=l.useRef(null),ie=l.useRef(null),ae=l.useRef(null),oe=n!==void 0,[se,ce]=l.useState(r),le=oe?n:se,ue=o!==void 0,[de,fe]=l.useState(s),pe=ue?o:de,me=u!==void 0,[he,ge]=l.useState(d),_e=me?u:he,ve=p!==void 0,[ye,be]=l.useState(m),xe=ve?p:ye,Se=l.useCallback(e=>{oe||ce(e),i?.(e)},[oe,i]),Ce=l.useCallback(e=>{ue||fe(e),c?.(e)},[ue,c]),we=l.useCallback(e=>{ve||be(e)},[ve]),Te=l.useRef(null),Ee=l.useCallback(e=>{me||ge(e),f?.(e),e||(Te.current=null,we(null))},[me,f,we]),[De,Oe]=l.useState(!1),[ke,Ae]=l.useState([]),je=l.useRef(new Map),Me=l.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=l.useCallback(e=>{Ae(t=>t.filter(t=>t.value!==e))},[]),{contains:Pe,startsWith:Fe}=Gs({sensitivity:`base`}),Ie=T??Pe,Le=l.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=l.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=l.useRef(ze);l.useEffect(()=>{He.current!==ze&&(He.current=ze,h?.(ze))},[ze,h]);let Ue=l.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]);l.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=l.useCallback(e=>{Oe(!1),Ee(e)},[Ee]),Ge=l.useCallback(e=>{Te.current=e,We(!0)},[We]),Ke=l.useCallback(e=>{Ce(e),Oe(!0),we(null),C&&!_e&&Ee(!0)},[Ee,_e,C,we,Ce]),H=l.useCallback(e=>le.includes(e),[le]),qe=l.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),a?.(e),v===`replace`?Ce(t.label):v===`clear`&&Ce(``),Oe(!1),_&&Ee(!1),V.current?.focus()},[Ee,_,D,ke,g,a,O,v,Ce,Se,le]),Je=l.useCallback(()=>{D||O||(Se([]),Ce(``),Oe(!1),V.current?.focus())},[D,O,Ce,Se]),Ye=l.useCallback(e=>ke.find(t=>t.value===e)?.id,[ke]),Xe=l.useCallback(e=>Le.includes(e),[Le]),Ze=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)},Qe=l.useMemo(()=>({inputId:z,labelId:te,listId:ne,getItemId:Ye,inputValue:pe,completion:Ve,onType:Ke,setInputValue:Ce,value:le,isSelected:H,select:qe,clear:Je,open:_e,setOpen:We,openAt:Ge,highlightedValue:ze,setHighlightedValue:we,moveHighlight:Ue,entries:ke,register:Me,unregister:Ne,matches:Le,isMatch:Xe,multiple:g,disabled:D,readOnly:O,invalid:k,required:A,placeholder:j,inputBehavior:y,openOnClick:S,openOnKeyPress:w,inputRef:V,controlRef:ie,contentRef:ae}),[Je,Ve,D,ke,Ye,ze,y,z,pe,k,Xe,H,te,ne,Le,Ue,g,Ke,_e,Ge,S,w,j,O,Me,A,qe,we,Ce,We,Ne,le]);return(0,q.jsx)(qp.Provider,{value:Qe,children:(0,q.jsxs)(`div`,{ref:re,className:G(Xp.root,F),onBlur:Ze,"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]})})}Zp.displayName=`Combobox`;var Qp=K(Zp);const $p={root:`combobox-clear-trigger`};function em(e,t){let{className:n,icon:r=un,onClick:i,onMouseDown:a,"aria-label":o=`Clear`,...s}=e,c=l.useContext(qp);return!c||c.inputValue===``&&c.value.length===0?null:(0,q.jsx)(gi,{ref:t,icon:r,variant:`invisible`,size:`small`,tabIndex:-1,"aria-label":o,disabled:c.disabled||c.readOnly,className:G($p.root,n),onMouseDown:e=>{a?.(e),e.defaultPrevented||e.preventDefault()},onClick:e=>{i?.(e),!e.defaultPrevented&&c.clear()},"data-component":`Combobox.ClearTrigger`,...s})}em.displayName=`Combobox.ClearTrigger`;var tm=K(em);const nm={root:`combobox-content`};function rm(e,t){let{className:n,children:r,...i}=e;return(0,q.jsx)(`div`,{ref:t,className:G(nm.root,n),"data-component":`Combobox.Content`,...i,children:r})}rm.displayName=`Combobox.Content`;var im=K(rm);const am={root:`combobox-control`,disabled:`combobox-control-disabled`,invalid:`combobox-control-invalid`};function om(e,t){let{className:n,children:r,...i}=e,a=l.useContext(qp),o=ar(t,a?.controlRef??null);return a?(0,q.jsx)(`div`,{ref:o,className:G(am.root,a.disabled&&am.disabled,a.invalid&&am.invalid,n),"data-component":`Combobox.Control`,"data-open":a.open||void 0,"data-disabled":a.disabled||void 0,"data-readonly":a.readOnly||void 0,"data-invalid":a.invalid||void 0,...i,children:r}):null}om.displayName=`Combobox.Control`;var sm=K(om);const cm={root:`combobox-empty`};function lm(e,t){let{className:n,children:r=`No results found`,...i}=e,a=l.useContext(qp);return!a||a.entries.length===0||a.matches.length>0?null:(0,q.jsx)(`div`,{ref:t,role:`presentation`,className:G(cm.root,n),"data-component":`Combobox.Empty`,...i,children:r})}lm.displayName=`Combobox.Empty`;var um=K(lm);const dm={root:`combobox-input`},fm=[`ArrowDown`,`ArrowUp`],pm=[`Backspace`,`Delete`];function mm(e,t){let{className:n,onChange:r,onClick:i,onKeyDown:a,onKeyUp:o,...s}=e,c=l.useContext(qp),u=c?.inputRef,d=ar(t,u??null),[f,p]=l.useState(!0),m=c?.inputValue??``,h=f?c?.completion??``:``,g=h===``?m:h;l.useEffect(()=>{let e=u?.current;!e||h===``||e.value!==h||document.activeElement===e&&e.setSelectionRange(m.length,h.length)},[h,u,m]);let _=e=>{r?.(e),c?.onType(e.currentTarget.value)},v=e=>{i?.(e),!(e.defaultPrevented||!c||c.disabled)&&c.openOnClick&&!c.open&&c.setOpen(!0)},y=e=>{if(a?.(e),!(!c||e.defaultPrevented)&&(pm.includes(e.key)&&p(!1),!(e.ctrlKey||e.metaKey))){if(e.key===`Escape`){c.open?(e.preventDefault(),c.setOpen(!1)):c.inputValue!==``&&c.setInputValue(``);return}if(e.key===`Tab`){c.open&&c.setOpen(!1);return}if(e.key===`Enter`){c.open&&c.highlightedValue!==null&&(e.preventDefault(),c.select(c.highlightedValue));return}if(fm.includes(e.key)){if(e.preventDefault(),!c.open){c.openOnKeyPress&&!c.disabled&&c.openAt(e.key===`ArrowDown`?`first`:`last`);return}if(e.altKey){e.key===`ArrowUp`&&c.setOpen(!1);return}c.moveHighlight(e.key===`ArrowDown`?1:-1)}}},b=e=>{o?.(e),pm.includes(e.key)&&p(!0)};if(!c)return null;let x=c.open&&c.highlightedValue!==null?c.getItemId(c.highlightedValue):void 0;return(0,q.jsx)(qo,{ref:d,id:c.inputId,type:`text`,block:!0,role:`combobox`,autoComplete:`off`,"aria-autocomplete":c.inputBehavior===`autocomplete`?`both`:`list`,"aria-expanded":c.open,"aria-controls":c.open?c.listId:void 0,"aria-activedescendant":x,disabled:c.disabled,readOnly:c.readOnly,required:c.required,validationStatus:c.invalid?`error`:void 0,placeholder:c.placeholder,value:g,onChange:_,onClick:v,onKeyDown:y,onKeyUp:b,className:G(dm.root,n),"data-component":`Combobox.Input`,...s})}mm.displayName=`Combobox.Input`;var hm=K(mm);const gm={hidden:`hidden`},_m=W(`combobox-item`,{variants:{selected:{true:`combobox-item-selected`,false:``},highlighted:{true:`combobox-item-highlighted`,false:``},disabled:{true:`combobox-item-disabled`,false:``}}});function vm(e,t){let{value:n,label:r,disabled:i=!1,onSelect:a,className:o,children:s,onClick:c,onPointerMove:u,...d}=e,f=Y(),p=l.useContext(qp),m=l.useContext(Jp),h=l.useRef(null),g=ar(t,h),[_,v]=l.useState(r??``);rr(()=>{if(r!==void 0){v(r);return}let e=h.current,t=e?.querySelector(`[data-component="Combobox.ItemText"]`);v(((t??e)?.textContent??``).trim())},[r,s]);let y=p?.register,b=p?.unregister,x=m?.groupId;l.useEffect(()=>{if(!(!y||!b||_===``))return y({value:n,label:_,id:f,groupId:x,disabled:i}),()=>{b(n)}},[i,x,f,_,y,b,n]);let S=p?.isSelected(n)??!1,C=p?.highlightedValue===n,w=!(p?.entries.some(e=>e.value===n)??!1)||(p?.isMatch(n)??!0);l.useEffect(()=>{C&&h.current?.scrollIntoView?.({block:`nearest`})},[C]);let T=l.useMemo(()=>({value:n,selected:S,highlighted:C,disabled:i}),[i,C,S,n]);return(0,q.jsx)(Yp.Provider,{value:T,children:(0,q.jsx)(`div`,{ref:g,id:f,role:`option`,"aria-selected":S,"aria-disabled":i||void 0,className:G(_m({selected:S,highlighted:C,disabled:i}),!w&&gm.hidden,o),onClick:e=>{c?.(e),!(e.defaultPrevented||i)&&(a?.(n),p?.select(n))},onPointerMove:e=>{u?.(e),!e.defaultPrevented&&!i&&!C&&p?.setHighlightedValue(n)},"data-component":`Combobox.Item`,"data-value":n,"data-selected":S||void 0,"data-highlighted":C||void 0,"data-disabled":i||void 0,...d,children:s})})}vm.displayName=`Combobox.Item`;var ym=K(vm);const bm={root:`combobox-item-group`,hidden:`hidden`};function xm(e,t){let{forceMount:n=!1,className:r,children:i,...a}=e,o=Y(),s=Y(),c=l.useContext(qp),u=l.useMemo(()=>({groupId:o,labelId:s}),[o,s]),d=(c?.entries??[]).filter(e=>e.groupId===o),f=n||d.length===0||d.some(e=>c?.isMatch(e.value)??!0);return(0,q.jsx)(Jp.Provider,{value:u,children:(0,q.jsx)(`div`,{ref:t,role:`group`,"aria-labelledby":s,className:G(bm.root,!f&&bm.hidden,r),"data-component":`Combobox.ItemGroup`,...a,children:i})})}xm.displayName=`Combobox.ItemGroup`;var Sm=K(xm);const Cm={root:`combobox-item-group-label`};function wm(e,t){let{className:n,children:r,...i}=e,a=l.useContext(Jp);return(0,q.jsx)(`div`,{ref:t,id:a?.labelId,className:G(Cm.root,n),"data-component":`Combobox.ItemGroupLabel`,...i,children:r})}wm.displayName=`Combobox.ItemGroupLabel`;var Tm=K(wm);const Em={root:`combobox-item-indicator`,unmarked:`invisible`};function Dm(e,t){let{className:n,children:r,...i}=e,a=l.useContext(Yp)?.selected??!1;return(0,q.jsx)(`span`,{ref:t,"aria-hidden":`true`,className:G(Em.root,!a&&Em.unmarked,n),"data-component":`Combobox.ItemIndicator`,"data-selected":a||void 0,...i,children:r??(0,q.jsx)(Zt,{})})}Dm.displayName=`Combobox.ItemIndicator`;var Om=K(Dm);const km={root:`combobox-item-text`};function Am(e,t){let{className:n,children:r,...i}=e;return(0,q.jsx)(`span`,{ref:t,className:G(km.root,n),"data-component":`Combobox.ItemText`,...i,children:r})}Am.displayName=`Combobox.ItemText`;var jm=K(Am);const Mm={root:`combobox-label`,disabled:`combobox-label-disabled`};function Nm(e,t){let{className:n,children:r,...i}=e,a=l.useContext(qp);return a?(0,q.jsx)(`label`,{ref:t,id:a.labelId,htmlFor:a.inputId,className:G(Mm.root,a.disabled&&Mm.disabled,n),"data-component":`Combobox.Label`,"data-disabled":a.disabled||void 0,...i,children:r}):null}Nm.displayName=`Combobox.Label`;var Pm=K(Nm);const Fm={root:`combobox-list`};function Im(e,t){let{className:n,children:r,...i}=e,a=l.useContext(qp);return a?(0,q.jsx)(`div`,{ref:t,id:a.listId,role:`listbox`,"aria-labelledby":a.labelId,"aria-multiselectable":a.multiple||void 0,tabIndex:-1,className:G(Fm.root,n),"data-component":`Combobox.List`,...i,children:r}):null}Im.displayName=`Combobox.List`;var Lm=K(Im);const Rm=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:``}}}),zm=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign&&e.anchorWidth===t.anchorWidth;function Bm(e,t){let{side:n=`outside-bottom`,align:r=`start`,portalContainerName:i,className:a,style:o,children:s,onMouseDown:c,...u}=e,d=l.useContext(qp),f=d?.open??!1,p=d?.controlRef,m=d?.contentRef,h=ar(t,m??null),g=l.useRef(null),[_,v]=l.useState(null),y=l.useCallback(()=>{let e=p?.current,t=m?.current;if(!e||!t)return;let i={...aa(t,e,{side:n,align:r}),anchorWidth:e.getBoundingClientRect().width};g.current&&zm(g.current,i)||(g.current=i,v(i))},[r,p,m,n]);if(rr(()=>{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=>{c?.(e),e.defaultPrevented||e.preventDefault()};return(0,q.jsx)(ea,{containerName:i,children:(0,q.jsx)(`div`,{ref:h,className:G(Rm({unplaced:!_}),a),style:{...o,"--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??n,"data-align":_?.anchorAlign??r,...u,children:s})})}Bm.displayName=`Combobox.Positioner`;var Vm=K(Bm);const Hm={root:`combobox-trigger`};function Um(e,t){let{className:n,icon:r=Qt,onClick:i,onMouseDown:a,"aria-label":o=`Show suggestions`,...s}=e,c=l.useContext(qp);return c?(0,q.jsx)(gi,{ref:t,icon:r,variant:`invisible`,size:`small`,tabIndex:-1,"aria-label":o,"aria-expanded":c.open,"aria-controls":c.open?c.listId:void 0,disabled:c.disabled,className:G(Hm.root,n),onMouseDown:e=>{a?.(e),e.defaultPrevented||e.preventDefault()},onClick:e=>{i?.(e),!(e.defaultPrevented||c.disabled)&&(c.setOpen(!c.open),c.inputRef.current?.focus())},"data-component":`Combobox.Trigger`,...s}):null}Um.displayName=`Combobox.Trigger`;var Wm=K(Um);const Gm=Object.assign(Qp,{Label:Pm,Control:sm,Input:hm,Trigger:Wm,ClearTrigger:tm,Positioner:Vm,Content:im,List:Lm,ItemGroup:Sm,ItemGroupLabel:Tm,Item:ym,ItemText:jm,ItemIndicator:Om,Empty:um}),Km=(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)},qm=(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:Km(e,t)},Jm=(e,t,n=[])=>{let r=t.trim().toLowerCase();return r===``?1:[e,...n].map(e=>qm(e.trim().toLowerCase(),r)).reduce((e,t)=>Math.max(e,t),0)},Ym=(0,l.createContext)(null),Xm=(0,l.createContext)(null),Zm={root:`command-palette`,hidden:`sr-only`},Qm=(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 $m(e,t){let{search:n,defaultSearch:r=``,onSearchChange:i,value:a,defaultValue:o=``,onValueChange:s,onSelect:c,filter:u=Jm,shouldFilter:d=!0,loop:f=!1,label:p=`Command palette`,className:m,children:h,...g}=e,_=Y(),v=Y(),y=n!==void 0,[b,x]=l.useState(r),S=y?n:b,C=a!==void 0,[w,T]=l.useState(o),E=C?a:w,[D,O]=l.useState([]),k=l.useCallback(e=>{O(t=>[...t.filter(t=>t.value!==e.value),e])},[]),A=l.useCallback(e=>{O(t=>t.filter(t=>t.value!==e))},[]),j=l.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=l.useMemo(()=>Qm(D,j),[D,j]),N=l.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=l.useCallback(e=>{C||T(e),s?.(e)},[C,s]),L=l.useRef(P);l.useEffect(()=>{L.current!==P&&(L.current=P,s?.(P))},[s,P]);let ee=l.useCallback(e=>{y||x(e),i?.(e)},[y,i]),R=l.useCallback(e=>{c?.(e)},[c]),z=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])},te=e=>{if(!(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault(),z(e.key===`ArrowDown`?1:-1);return}e.key===`Enter`&&P!==``&&(e.preventDefault(),R(P))}},ne=l.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)(Ym.Provider,{value:ne,children:(0,q.jsxs)(`div`,{ref:t,className:G(Zm.root,m),onKeyDown:te,"data-component":`CommandPalette`,...g,children:[(0,q.jsx)(`span`,{id:v,className:Zm.hidden,children:p}),h]})})}$m.displayName=`CommandPalette`;var eh=K($m);let th=0,nh=``,rh=``;const ih=e=>{(0,l.useEffect)(()=>{if(!e){if(th++,th===1){let e=window.innerWidth-document.body.clientWidth;nh=document.body.style.overflow,rh=document.body.style.paddingRight,document.body.style.overflow=`hidden`,document.body.style.paddingRight=`${e}px`,document.body.setAttribute(`data-scroll-locked`,``)}return()=>{th--,th===0&&(document.body.style.overflow=nh,document.body.style.paddingRight=rh,document.body.removeAttribute(`data-scroll-locked`))}}},[e])},ah={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 oh(e,t){let{open:n,onOpenChange:r,returnFocusRef:i,overlayClassName:a,className:o,children:s,...c}=e,u=l.useRef(null);return zi({containerRef:u,returnFocusRef:i,disabled:!n}),Hi(e=>{n&&(e.preventDefault(),r(!1))}),ih(!n),n?(0,q.jsx)(ea,{children:(0,q.jsx)(`div`,{className:G(ah.backdrop,a),onMouseDown:e=>{e.target===e.currentTarget&&r(!1)},"data-component":`CommandPalette.Backdrop`,children:(0,q.jsx)(`div`,{ref:u,role:`dialog`,"aria-modal":`true`,"aria-label":c.label??`Command palette`,className:ah.panel,"data-component":`CommandPalette.Dialog`,children:(0,q.jsx)(eh,{ref:t,className:o,...c,children:s})})})}):null}oh.displayName=`CommandPalette.Dialog`;var sh=K(oh);const ch={root:`command-palette-empty`};function lh(e,t){let{className:n,children:r=`No results found`,...i}=e,a=l.useContext(Ym);return!a||a.entries.length===0||a.order.length>0?null:(0,q.jsx)(`div`,{ref:t,role:`presentation`,className:G(ch.root,n),"data-component":`CommandPalette.Empty`,...i,children:r})}lh.displayName=`CommandPalette.Empty`;var uh=K(lh);const dh={root:`command-palette-group`,heading:`command-palette-group-heading`,hidden:`hidden`};function fh(e,t){let{heading:n,forceMount:r=!1,className:i,children:a,...o}=e,s=Y(),c=Y(),u=l.useContext(Ym),d=l.useMemo(()=>({groupId:s}),[s]),f=(u?.entries??[]).filter(e=>e.groupId===s),p=f.map(e=>u?.order.indexOf(e.value)??-1).filter(e=>e!==-1),m=r||f.length===0||p.length>0;return(0,q.jsx)(Xm.Provider,{value:d,children:(0,q.jsxs)(`div`,{ref:t,role:`group`,"aria-labelledby":n?c:void 0,className:G(dh.root,!m&&dh.hidden,i),style:{order:p.length>0?Math.min(...p):void 0},"data-component":`CommandPalette.Group`,...o,children:[n?(0,q.jsx)(`div`,{id:c,className:dh.heading,"data-component":`CommandPalette.GroupHeading`,children:n}):null,a]})})}fh.displayName=`CommandPalette.Group`;var ph=K(fh);const mh={root:`command-palette-input`};function hh(e,t){let{className:n,placeholder:r=`Type a command or search`,...i}=e,a=l.useContext(Ym);return a?(0,q.jsx)(qo,{ref:t,type:`text`,size:`large`,block:!0,role:`combobox`,"aria-expanded":`true`,"aria-autocomplete":`list`,"aria-controls":a.listId,"aria-labelledby":a.labelId,"aria-activedescendant":a.activeId,autoComplete:`off`,leadingVisual:On,placeholder:r,value:a.search,onChange:e=>a.setSearch(e.target.value),className:G(mh.root,n),"data-component":`CommandPalette.Input`,...i}):null}hh.displayName=`CommandPalette.Input`;var gh=K(hh);const _h={root:`command-palette-item`,active:`command-palette-item-active`,unavailable:`command-palette-item-unavailable`,hidden:`hidden`};function vh(e,t){let{value:n,keywords:r,disabled:i=!1,forceMount:a=!1,onSelect:o,className:s,children:c,onClick:u,onPointerMove:d,...f}=e,p=Y(),m=l.useContext(Ym),h=l.useContext(Xm),g=l.useRef(null),_=ar(t,g),[v,y]=l.useState(n??``);rr(()=>{y(n??(g.current?.textContent??``).trim())},[n,c]);let b=(r??[]).join(`\0`),x=m?.register,S=m?.unregister,C=h?.groupId;l.useEffect(()=>{if(!(!x||!S||v===``))return x({value:v,id:p,keywords:b===``?[]:b.split(`\0`),groupId:C,disabled:i,forceMount:a}),()=>{S(v)}},[i,a,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 l.useEffect(()=>{T&&g.current?.scrollIntoView?.({block:`nearest`})},[T]),(0,q.jsx)(`div`,{ref:_,id:p,role:`option`,"aria-selected":T,"aria-disabled":i||void 0,className:G(_h.root,T&&_h.active,i&&_h.unavailable,!E&&_h.hidden,s),style:{order:w===-1?void 0:w},onClick:e=>{u?.(e),!(i||e.defaultPrevented)&&(o?.(v),m?.onSelect(v))},onPointerMove:e=>{d?.(e),!i&&!T&&m?.setValue(v)},"data-component":`CommandPalette.Item`,"data-value":v||void 0,"data-active":T||void 0,"data-disabled":i||void 0,...f,children:c})}vh.displayName=`CommandPalette.Item`;var yh=K(vh);const bh={root:`command-palette-list`};function xh(e,t){let{maxHeight:n=400,className:r,style:i,children:a,...o}=e,s=l.useContext(Ym);return s?(0,q.jsx)(`div`,{ref:t,id:s.listId,role:`listbox`,"aria-labelledby":s.labelId,className:G(bh.root,r),style:{...i,maxHeight:`${n}px`},"data-component":`CommandPalette.List`,...o,children:a}):null}xh.displayName=`CommandPalette.List`;var Sh=K(xh);const Ch={root:`command-palette-loading`};function wh(e,t){let{label:n=`Loading`,className:r,children:i,...a}=e;return(0,q.jsx)(`div`,{ref:t,role:`presentation`,className:G(Ch.root,r),"data-component":`CommandPalette.Loading`,...a,children:i??(0,q.jsx)($r,{size:`small`,srText:n})})}wh.displayName=`CommandPalette.Loading`;var Th=K(wh);const Eh={root:`command-palette-separator`};function Dh(e,t){let{alwaysRender:n=!1,className:r,...i}=e,a=l.useContext(Ym);return!n&&a!==null&&a.search.trim()!==``?null:(0,q.jsx)(`div`,{ref:t,role:`separator`,className:G(Eh.root,r),"data-component":`CommandPalette.Separator`,...i})}Dh.displayName=`CommandPalette.Separator`;var Oh=K(Dh);const kh=Object.assign(eh,{Dialog:sh,Input:gh,List:Sh,Group:ph,Item:yh,Separator:Oh,Empty:uh,Loading:Th}),Ah={root:`scrollable-region`};function jh(e,t){let{as:n=`div`,className:r,"aria-label":i,"aria-labelledby":a,...o}=e,s=l.useRef(null),c=ar(t,s),u=Tp(s)?{role:`region`,tabIndex:0,"aria-label":i,"aria-labelledby":a}:{};return(0,q.jsx)(n,{ref:c,className:G(Ah.root,r),"data-component":`ScrollableRegion`,...u,...o})}jh.displayName=`ScrollableRegion`;var Mh=K(jh);const Nh={root:`dialog-body`};function Ph(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Nh.root,r),"data-component":`Dialog.Body`,...i})}Ph.displayName=`Dialog.Body`;var Fh=K(Ph);const Ih=(0,l.createContext)(void 0);function Lh({buttons:e}){let t=l.useContext(Ih),n=e.findIndex(e=>e.autoFocus),r=ar(t?.autoFocusRef,e[n]?.ref);return(0,q.jsx)(q.Fragment,{children:e.map((e,t)=>{let{content:i,buttonType:a=`default`,autoFocus:o,ref:s,...c}=e;return(0,q.jsx)(pi,{ref:o&&t===n?r:s,variant:a===`normal`?`default`:a,"data-component":`Dialog.FooterButton`,...c,children:i},t)})})}Lh.displayName=`Dialog.Buttons`;function Rh(e,t){let{onClose:n,...r}=e;return(0,q.jsx)(gi,{ref:t,icon:un,"aria-label":`Close`,variant:`invisible`,onClick:n,"data-component":`Dialog.CloseButton`,...r})}Rh.displayName=`Dialog.CloseButton`;var zh=K(Rh);const Bh={root:`dialog-footer`,scroll:`dialog-footer-scroll`};function Vh(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Bh.root,Bh.scroll,r),"data-component":`Dialog.Footer`,...i})}Vh.displayName=`Dialog.Footer`;var Hh=K(Vh);const Uh={root:`dialog-header`};function Wh(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Uh.root,r),"data-component":`Dialog.Header`,...i})}Wh.displayName=`Dialog.Header`;var Gh=K(Wh);const Kh={root:`dialog-subtitle`};function qh(e,t){let{as:n=`h2`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Kh.root,r),"data-component":`Dialog.Subtitle`,...i})}qh.displayName=`Dialog.Subtitle`;var Jh=K(qh);const Yh={root:`dialog-title`};function Xh(e,t){let{as:n=`h1`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Yh.root,r),"data-component":`Dialog.Title`,...i})}Xh.displayName=`Dialog.Title`;var Zh=K(Xh);const Qh={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`},$h={narrow:`center`,regular:`center`};let eg=0,tg=``,ng=``;const rg=e=>typeof e==`string`&&e in Qh.width,ig=e=>typeof e==`number`?`${e}px`:e,ag=({title:e,subtitle:t,dialogLabelId:n,dialogDescriptionId:r,onClose:i})=>(0,q.jsx)(Gh,{children:(0,q.jsxs)(`div`,{className:Qh.headerInner,children:[(0,q.jsxs)(`div`,{className:Qh.headerContent,children:[(0,q.jsx)(Zh,{id:n,children:e}),t?(0,q.jsx)(Jh,{id:r,children:t}):null]}),(0,q.jsx)(zh,{onClose:()=>i(`close-button`)})]})}),og=({children:e})=>(0,q.jsx)(Fh,{children:e}),sg=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())},cg=({footerButtons:e})=>e?(0,q.jsx)(Hh,{onKeyDown:sg,children:(0,q.jsx)(Lh,{buttons:e})}):null;function lg(e,t){let{title:n=`Dialog`,subtitle:r=``,renderHeader:i,renderBody:a,renderFooter:o,footerButtons:s,onClose:c,role:u=`dialog`,width:d=`xlarge`,height:f=`auto`,position:p=$h,align:m,returnFocusRef:h,initialFocusRef:g,className:_,style:v,children:y,...b}=e,x=Y(),S=Y(),C=l.useRef(null),w=ar(t,C),T=l.useRef(null),E=l.useRef(null),D=l.useRef(null),[O,k]=l.useState(!1),[A,j]=l.useState(`wrap`),M=Tp(E);zi({containerRef:C,initialFocusRef:g??D,returnFocusRef:h}),Hi(e=>{c(`escape`),e.preventDefault()}),l.useEffect(()=>{if(eg++,eg===1){let e=window.innerWidth-document.body.clientWidth;tg=document.body.style.overflow,ng=document.body.style.paddingRight,document.body.style.overflow=`hidden`,document.body.style.paddingRight=`${e}px`,document.body.setAttribute(`data-dialog-scroll-disabled`,``)}return()=>{eg--,eg===0&&(document.body.style.overflow=tg,document.body.style.paddingRight=ng,document.body.removeAttribute(`data-dialog-scroll-disabled`))}},[]);let[N,P]=xr(y,{header:Gh,body:Fh,footer:Hh}),F={...e,title:n,subtitle:r,role:u,footerButtons:s,dialogLabelId:x,dialogDescriptionId:S},I=N.header??(i??ag)(F),L=N.body??(a??og)({...F,children:P}),ee=N.footer??(o??cg)(F),R=!!ee,z=l.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]);l.useEffect(()=>{let e=T.current;if(!e)return;let t=new ResizeObserver(z);return t.observe(e),()=>{t.disconnect()}},[z]);let te=e=>{e.target===e.currentTarget&&O&&c(`escape`)},ne=typeof p==`string`?{regular:p}:p,B=ne.regular??`center`,re=ne.narrow,V=B===`center`?m:void 0,ie=Ui(`position`,ne),ae=m?{"data-align":m}:void 0;return(0,q.jsx)(Ih.Provider,{value:{autoFocusRef:D},children:(0,q.jsx)(ea,{children:(0,q.jsx)(`div`,{ref:T,className:G(Qh.backdrop,Qh.backdropPosition[B],V&&Qh.backdropAlign[V],re&&Qh.backdropNarrowPosition[re],re===`center`&&V&&Qh.backdropNarrowAlign[V]),onClick:te,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(Qh.root,rg(d)?Qh.width[d]:Qh.customWidth,Qh.height[f],Qh.position[B],V&&Qh.align[V],re&&Qh.narrowPosition[re],_),style:{...v,...rg(d)?{}:{"--dialog-width":ig(d)}},"data-component":`Dialog`,"data-width":rg(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)(Mh,{ref:E,"aria-labelledby":x,className:G(Qh.overflowWrapper,R&&M&&Qh.overflowWrapperBordered),children:L}),ee]})})})})}lg.displayName=`Dialog`;var ug=K(lg);function dg(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)(ug,{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})}dg.displayName=`ConfirmationDialog`;var fg=K(dg);const pg=({content:e,...t})=>new Promise(n=>{let r=document.createElement(`div`);document.body.append(r);let i=(0,h.createRoot)(r);i.render((0,q.jsx)(fg,{...t,onClose:e=>{queueMicrotask(()=>{i.unmount(),r.remove()}),n(e===`confirm`)},children:e}))}),mg=()=>pg,hg=(0,l.createContext)(void 0),gg={x:0,y:0,size:0};function _g(e){let{children:t,open:n,onOpenChange:r,disabled:i=!1,portalContainerName:a}=e,o=l.useRef(null),[s,c]=l.useState(gg),u=n!==void 0,[d,f]=l.useState(!1),p=(u?n:d)&&!i,m=l.useCallback(e=>{f(e),r?.(e)},[r]),h=l.useCallback(e=>{c(e),m(!0)},[m]),g=l.useCallback(()=>m(!1),[m]),_=l.useMemo(()=>({triggerRef:o,point:s,open:p,disabled:i,onOpen:h,onClose:g,portalContainerName:a}),[s,p,i,h,g,a]);return(0,q.jsx)(hg.Provider,{value:_,children:t})}_g.displayName=`ContextMenu`;const vg={point:`context-menu-point`,container:`context-menu-overlay`};function yg(e){let{children:t,align:n=`start`,side:r=`outside-bottom`,className:i,returnFocusRef:a,"aria-label":o=`Context menu`,"aria-labelledby":s,...c}=e,u=l.useContext(hg),d=u?.onClose,f=l.useRef(null),p=l.useCallback(()=>d?.(),[d]),m=e=>{!e.defaultPrevented&&e.key===`Tab`&&d?.()},h=l.useMemo(()=>({container:`ContextMenu`,listRole:`menu`,listLabel:s?void 0:o,listLabelledBy:s,selectionAttribute:`aria-checked`,afterSelect:p}),[o,s,p]),g=l.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)(ea,{containerName:u.portalContainerName,children:(0,q.jsx)(`div`,{ref:f,"aria-hidden":!0,className:vg.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)(da,{renderAnchor:null,anchorRef:f,open:u.open,onClose:p,align:n,side:r,anchorOffset:0,className:i,overlayProps:{portalContainerName:u.portalContainerName},focusTrapSettings:{returnFocusRef:a??u.triggerRef},...c,children:(0,q.jsx)(`div`,{className:vg.container,onKeyDown:m,"data-component":`ContextMenu.Overlay`,children:(0,q.jsx)(Mi.Provider,{value:g,children:(0,q.jsx)(Ar.Provider,{value:h,children:t})})})})]})}yg.displayName=`ContextMenu.Overlay`;const bg={trigger:`context-menu-trigger`};function xg(e){let{children:t,className:n,onContextMenu:r,onTouchStart:i,onTouchMove:a,onTouchEnd:o,onTouchCancel:s,...c}=e,u=l.useContext(hg),d=!!u?.disabled,f=u?.onOpen,p=l.useRef(null),m=l.useRef(null),h=l.useCallback(()=>{m.current!==null&&(window.clearTimeout(m.current),m.current=null),p.current=null},[]);return l.useEffect(()=>h,[h]),(0,q.jsx)(`div`,{ref:u?.triggerRef,tabIndex:-1,className:G(bg.trigger,n),onContextMenu:e=>{r?.(e),!(d||e.defaultPrevented)&&(e.preventDefault(),h(),f?.({x:e.clientX,y:e.clientY,size:0}))},onTouchStart:e=>{if(i?.(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=>{a?.(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=>{o?.(e),h()},onTouchCancel:e=>{s?.(e),h()},"data-component":`ContextMenu.Trigger`,"data-open":u?.open?``:void 0,...c,children:t})}xg.displayName=`ContextMenu.Trigger`;const Sg=Object.assign(_g,{Trigger:xg,Overlay:yg,Divider:Br}),Cg={wrapper:`data-table-wrapper`},wg=W(`data-table`,{variants:{cellPadding:{condensed:`data-table-cell-padding-condensed`,normal:`data-table-cell-padding-normal`,spacious:`data-table-cell-padding-spacious`}}});function Tg(e,t){let{className:n,style:r,cellPadding:i=`normal`,gridTemplateColumns:a,"aria-labelledby":o,...s}=e;return(0,q.jsx)(Mh,{...o?{"aria-labelledby":o}:{"aria-label":`Table`},className:Cg.wrapper,children:(0,q.jsx)(`table`,{ref:t,role:`table`,"aria-labelledby":o,className:G(wg({cellPadding:i}),n),style:{...r,"--table-grid-template-columns":a},"data-component":`Table`,"data-cell-padding":i,...s})})}Tg.displayName=`Table`;var Eg=K(Tg);const Dg={root:`data-table-actions`};function Og(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(Dg.root,n),"data-component":`Table.Actions`,...r})}Og.displayName=`Table.Actions`;var kg=K(Og);const Ag=`data-table-subgrid`,jg=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}),Mg=e=>jg(e).join(` `);function Ng(e,t){let{className:n,...r}=e;return(0,q.jsx)(`tbody`,{ref:t,role:`rowgroup`,className:G(Ag,n),"data-component":`Table.Body`,...r})}Ng.displayName=`Table.Body`;var Pg=K(Ng);const Fg={root:`data-table-cell`,end:`data-table-cell-end`,rowHeader:`data-table-cell-row-header`};function Ig(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(Fg.root,r===`end`&&Fg.end,i&&Fg.rowHeader,n),"data-component":`Table.Cell`,"data-cell-align":r,...a})}Ig.displayName=`Table.Cell`;var Lg=K(Ig);const Rg={root:`data-table-cell-placeholder`};function zg(e,t){let{className:n,...r}=e;return(0,q.jsx)(Io,{ref:t,className:G(Rg.root,n),"data-component":`Table.CellPlaceholder`,...r})}zg.displayName=`Table.CellPlaceholder`;var Bg=K(zg);const Vg={root:`data-table-container`,spacing:`data-table-container-spacing`};function Hg(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(Vg.root,Vg.spacing,r),"data-component":`Table.Container`,...i})}Hg.displayName=`Table.Container`;var Ug=K(Hg);const Wg={root:`data-table-divider`};function Gg(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,role:`presentation`,className:G(Wg.root,n),"data-component":`Table.Divider`,...r})}Gg.displayName=`Table.Divider`;var Kg=K(Gg);function qg(e,t){let{title:n=`Error`,children:r,onRetry:i,onDismiss:a}=e;return(0,q.jsx)(fg,{ref:t,title:n,confirmButtonContent:`Retry`,cancelButtonContent:`Dismiss`,onClose:e=>{if(e===`confirm`){i?.();return}a?.()},children:r})}qg.displayName=`Table.ErrorDialog`;var Jg=K(qg);function Yg(e,t){let{className:n,...r}=e;return(0,q.jsx)(`thead`,{ref:t,role:`rowgroup`,className:G(Ag,n),"data-component":`Table.Head`,...r})}Yg.displayName=`Table.Head`;var Xg=K(Yg);const Zg={root:`data-table-header`,end:`data-table-header-end`,sorted:`data-table-header-sorted`};function Qg(e,t){let{className:n,align:r,...i}=e;return(0,q.jsx)(`th`,{ref:t,role:`columnheader`,scope:`col`,className:G(Zg.root,Zg.sorted,r===`end`&&Zg.end,n),"data-component":`Table.Header`,"data-cell-align":r,...i})}Qg.displayName=`Table.Header`;var $g=K(Qg);const e_=(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]},t_=(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}}},n_=[`narrow`,`regular`,`wide`],r_={narrow:!1},i_=e=>typeof e==`object`?n_.filter(t=>e[t]===!1):e?[]:[...n_],a_={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`},o_=W([a_.button,`data-table-pagination-jump`],{variants:{enabled:{true:`data-table-pagination-jump-enabled`,false:``}}}),s_=W([a_.button,`data-table-pagination-page`],{variants:{active:{true:`data-table-pagination-page-active`,false:``}}}),c_=({defaultPageIndex:e,onChange:t,pageSize:n,totalCount:r})=>{let i=Math.ceil(r/n),a=e=>e!==void 0&&e>=0&&e<i,[o,s]=l.useState(()=>a(e)?e:0),[c,u]=l.useState(o);return a(e)&&o!==e&&(s(e),u(e),t?.({pageIndex:e})),{pageIndex:c,pageCount:i,pageStart:c*n,pageEnd:Math.min((c+1)*n,r),hasPreviousPage:c>0,hasNextPage:c+1<i,selectPage:e=>{c!==e&&(u(e),t?.({pageIndex:e}))}}},l_=({children:e})=>(0,q.jsx)(`li`,{className:a_.step,"data-component":`Table.Pagination.Step`,children:e});function u_(e,t){let{className:n,totalCount:r,pageSize:i=25,defaultPageIndex:a,onChange:o,showPages:s=r_,...c}=e,{pageIndex:u,pageCount:d,pageStart:f,pageEnd:p,hasPreviousPage:m,hasNextPage:h,selectPage:g}=c_({defaultPageIndex:a,onChange:o,pageSize:i,totalCount:r}),_=l.useMemo(()=>e_(d,u+1,!!s,1,2),[d,u,s]),v=i_(s),y=f+1;return(0,q.jsxs)(`nav`,{ref:t,className:G(a_.root,n),"data-component":`Table.Pagination`,...c,children:[(0,q.jsxs)(`span`,{role:`status`,"aria-live":`polite`,className:a_.hidden,children:[`Showing `,y,` through `,p,` of `,r]}),(0,q.jsxs)(`p`,{className:a_.range,"data-component":`Table.Pagination.Range`,children:[y,(0,q.jsx)(`span`,{className:a_.hidden,children:` through `}),(0,q.jsx)(`span`,{"aria-hidden":`true`,children:`‒`}),p,` of `,r]}),(0,q.jsxs)(`ol`,{className:G(a_.steps,v.map(e=>a_.hiddenRange[e])),"data-hidden-viewport-ranges":v.join(` `)||void 0,children:[(0,q.jsx)(l_,{children:(0,q.jsxs)(`button`,{type:`button`,className:G(o_({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)($t,{className:a_.icon}):null,(0,q.jsx)(`span`,{children:`Previous`}),(0,q.jsx)(`span`,{className:a_.hidden,children:`\xA0page`})]})}),_.map((e,t)=>e.type===`break`?(0,q.jsx)(`li`,{"aria-hidden":`true`,className:a_.truncation,"data-component":`Table.Pagination.TruncationStep`,children:`…`},`break-${t}`):e.type===`number`?(0,q.jsx)(l_,{children:(0,q.jsxs)(`button`,{type:`button`,className:G(s_({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:a_.hidden,children:`Page\xA0`}),e.num,e.precedesBreak?(0,q.jsx)(`span`,{className:a_.hidden,children:`…`}):null]})},`page-${e.num}`):null),(0,q.jsx)(l_,{children:(0,q.jsxs)(`button`,{type:`button`,className:G(o_({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:a_.hidden,children:`\xA0page`}),h?(0,q.jsx)(en,{className:a_.icon}):null]})})]})]})}u_.displayName=`Table.Pagination`;var d_=K(u_);function f_(e,t){let{className:n,...r}=e;return(0,q.jsx)(`tr`,{ref:t,role:`row`,className:G(Ag,n),"data-component":`Table.Row`,...r})}f_.displayName=`Table.Row`;var p_=K(f_);const m_={root:`skeleton-box`,shimmer:`motion-safe:shimmer`};function h_(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(m_.root,m_.shimmer,r),style:{...o,"--skeleton-box-width":i,"--skeleton-box-height":a},"data-component":`SkeletonBox`,...s})}h_.displayName=`SkeletonBox`;var g_=K(h_);const __={wrapper:`skeleton-text-wrapper`},v_=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 y_({lines:e=1,maxWidth:t,size:n=`bodyMedium`,className:r,style:i,...a}){return e<2?(0,q.jsx)(g_,{width:`100%`,height:`var(--skeleton-text-font-size)`,className:G(v_({size:n}),r),style:{...i,maxWidth:t},"data-size":n,...a,"data-component":`SkeletonText`}):(0,q.jsx)(`div`,{className:__.wrapper,style:{...i,maxWidth:t},"data-component":`SkeletonText`,children:Array.from({length:e},(e,t)=>(0,q.jsx)(g_,{height:`var(--skeleton-text-font-size)`,className:G(v_({size:n,multiline:!0}),r),"data-size":n,...a},t))})}y_.displayName=`SkeletonText`;const b_={cell:`data-table-skeleton-cell`,items:`data-table-skeleton-items`,item:`data-table-skeleton-item`,hidden:`sr-only`};function x_(e,t){let{columns:n,cellPadding:r,rows:i=10,...a}=e;return(0,q.jsxs)(Eg,{ref:t,cellPadding:r,gridTemplateColumns:Mg(n),"data-component":`Table.Skeleton`,...a,children:[(0,q.jsx)(Xg,{children:(0,q.jsx)(p_,{children:n.map((e,t)=>(0,q.jsx)($g,{children:typeof e.header==`string`?e.header:e.header()},e.id??e.field??t))})}),(0,q.jsx)(Pg,{children:(0,q.jsx)(p_,{children:n.map((e,t)=>(0,q.jsxs)(Lg,{className:b_.cell,"data-cell-skeleton":``,children:[(0,q.jsx)(`span`,{className:b_.hidden,children:`Loading`}),(0,q.jsx)(`div`,{className:b_.items,children:Array.from({length:i},(e,t)=>(0,q.jsx)(`div`,{className:b_.item,"data-cell-skeleton-item":``,children:(0,q.jsx)(y_,{})},t))})]},e.id??e.field??t))})})]})}x_.displayName=`Table.Skeleton`;var S_=K(x_);const C_={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 w_(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`?Ut:Wt;return(0,q.jsx)($g,{ref:t,align:r,"aria-sort":c,className:G(C_.header,n),"data-component":`Table.SortHeader`,...s,children:(0,q.jsxs)(`button`,{type:`button`,onClick:o,className:G(C_.button,r===`end`&&C_.buttonEnd),"data-component":`Table.SortHeader.Button`,children:[i,(0,q.jsx)(l,{className:G(C_.icon,a===`NONE`&&C_.iconResting),"aria-hidden":`true`,"data-sort-icon":a===`DESC`?`descending`:`ascending`}),a===`NONE`?(0,q.jsx)(`span`,{className:C_.hidden,children:`sort ascending`}):null]})})}w_.displayName=`Table.SortHeader`;var T_=K(w_);const E_={root:`data-table-subtitle`};function D_(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(E_.root,r),"data-component":`Table.Subtitle`,...i})}D_.displayName=`Table.Subtitle`;var O_=K(D_);const k_={root:`data-table-title`};function A_(e,t){let{as:n=`h2`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(k_.root,r),"data-component":`Table.Title`,...i})}A_.displayName=`Table.Title`;var j_=K(A_);const M_=e=>e===`ASC`?`DESC`:`ASC`,N_=(e,t)=>e===t?0:e<t?-1:1,P_=(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},F_=e=>{let t=[],n=0;for(;n<e.length;){let r=e[n];if(I_(r)){for(;n+1<e.length&&I_(e[n+1]);)r+=e[n+1],n++;t.push(parseInt(r,10))}else{for(;n+1<e.length&&!I_(e[n+1]);)r+=e[n+1],n++;t.push(r)}n++}return t},I_=e=>!Number.isNaN(parseInt(e,10)),L_={alphanumeric:(e,t)=>{let n=F_(e),r=F_(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:N_,datetime:P_},R_=(e,t)=>{let n=e;for(let e of t.split(`.`))n=n[e];return n},z_=e=>e==null||e===``,B_=(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},V_=({columns:e,data:t,initialSortColumn:n,initialSortDirection:r,externalSorting:i,getRowId:a})=>{let[o,s]=l.useState(t),[c,u]=l.useState(t),[d,f]=l.useState(e),[p,m]=l.useState(()=>B_(e,n,r)),h=Mg(e);e!==d&&(f(e),p&&(e.some(e=>(e.id??e.field)===p.id)||m(null)));let g=e.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(i)return;let a=typeof n==`string`?L_[n]:L_.basic;s(t=>t.slice().sort((t,i)=>{if(typeof n==`function`)return e.direction===`ASC`?n(t,i):n(i,t);if(r===void 0)return 0;let o=R_(t,r),s=R_(i,r),c=z_(o),l=z_(s);return!c&&!l?e.direction===`ASC`?a(o,s):a(s,o):c?+!l:-1}))};return t!==c&&(u(t),s(t),p&&_(p)),{headers:g,rows:o.map(e=>{let t=a(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 R_(e,n.column.field)}}))}}),actions:{sortBy:e=>{let t={id:e.id,direction:p&&p.id===e.id?M_(p.direction):`ASC`};m(t),_(t)}},gridTemplateColumns:h}},H_=e=>typeof e.header==`string`?e.header:e.header(),U_=e=>e.id;function W_(e,t){let{data:n,columns:r,cellPadding:i,initialSortColumn:a,initialSortDirection:o,externalSorting:s,getRowId:c=U_,onToggleSort:l,"aria-labelledby":u,"aria-describedby":d}=e,{headers:f,rows:p,actions:m,gridTemplateColumns:h}=V_({data:n,columns:r,initialSortColumn:a,initialSortDirection:o,externalSorting:s,getRowId:c});return(0,q.jsxs)(Eg,{ref:t,"aria-labelledby":u,"aria-describedby":d,cellPadding:i,gridTemplateColumns:h,children:[(0,q.jsx)(Xg,{children:(0,q.jsx)(p_,{children:f.map(e=>e.isSortable()?(0,q.jsx)(T_,{align:e.column.align,direction:e.getSortDirection(),onToggleSort:()=>{let t=e.getSortDirection()===`ASC`?`DESC`:`ASC`;m.sortBy(e),l?.(e.id,t)},children:H_(e.column)},e.id):(0,q.jsx)($g,{align:e.column.align,children:H_(e.column)},e.id))})}),(0,q.jsx)(Pg,{children:p.map(e=>(0,q.jsx)(p_,{children:e.getCells().map(t=>(0,q.jsx)(Lg,{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))})]})}W_.displayName=`DataTable`;var G_=K(W_);const K_=()=>({column:e=>({...e,id:e.id??e.field})}),q_=Object.assign(Eg,{Container:Ug,Title:j_,Subtitle:O_,Actions:kg,Divider:Kg,Skeleton:S_,Head:Xg,Body:Pg,Header:$g,SortHeader:T_,Row:p_,Cell:Lg,CellPlaceholder:Bg,Pagination:d_,ErrorDialog:Jg}),J_={root:`date-picker`,block:`date-picker-block`,overlay:`date-picker-overlay`};function Y_(e,t){let{mode:n=`single`,value:r,defaultValue:i,onChange:a,format:o=`YYYY-MM-DD`,rangeSeparator:s=` - `,open:c,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}=e,O=Y(),k=l.useRef(null),A=l.useRef(null),j=ar(t,A),M=l.useRef(null),N=su(f),P=su(p),F=n===`range`,I=r!==void 0,[L,ee]=l.useState(()=>uu(i,F)),R=I?uu(r,F):L,z=c!==void 0,[te,ne]=l.useState(u),B=z?c:te,re=({from:e,to:t})=>e===null?``:!F||t===null?e.format(o):`${e.format(o)}${s}${t.format(o)}`,V=e=>{if(e.trim()===``)return lu;let t=(F?e.split(s):[e]).map(e=>bu(e.trim(),o));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]=l.useState(null),oe=ie??re(R),se=(e,t)=>{z||ne(e),d?.(e,t)},ce=e=>{if([e.from,e.to].every(e=>e===null||hu(e,N,P,m))){if(I||ee(e),F){a?.({from:e.from?.toDate()??null,to:e.to?.toDate()??null});return}a?.(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(uu(e,!1)),se(!1,`date-select`)},fe=e=>{ae(null),ce(uu(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(J_.root,C&&J_.block,E),"data-component":`DatePicker`,"data-open":B,children:[(0,q.jsx)(`span`,{ref:k,className:G(J_.root,C&&J_.block),"data-component":`DatePicker.Field`,children:(0,q.jsx)(qo,{ref:j,type:`text`,value:oe,onChange:le,onBlur:ue,placeholder:x??(F?`${o}${s}${o}`:o),disabled:S,block:C,className:T,trailingAction:(0,q.jsx)(qo.Action,{icon:Yt,"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)(da,{renderAnchor:null,anchorRef:k,open:B,onClose:pe,side:`outside-bottom`,align:`start`,className:J_.overlay,overlayProps:{id:O,role:`dialog`,"aria-label":b},focusTrapSettings:{initialFocusRef:M,returnFocusRef:A},children:F?(0,q.jsx)(Tu,{mode:`range`,value:{from:R.from,to:R.to},onChange:fe,...me}):(0,q.jsx)(Tu,{value:R.from,onChange:de,...me})})]})}Y_.displayName=`DatePicker`;var X_=K(Y_);const Z_={root:`details`};function Q_(e,t){let{className:n,open:r,defaultOpen:i,closeOnOutsideClick:a,onChange:o,onToggle:s,...c}=e,u=l.useRef(null),d=ar(t,u),f=r!==void 0,[p,m]=l.useState(!!i),h=f?r:p;return l.useEffect(()=>{let e=u.current;e&&e.open!==h&&(e.open=h)}),l.useEffect(()=>{if(!a||!h)return;let e=e=>{let{target:t}=e;!(t instanceof Element)||t.closest(`details`)===u.current||(m(!1),o?.(!1))};return document.addEventListener(`click`,e),()=>{document.removeEventListener(`click`,e)}},[a,h,o]),(0,q.jsx)(`details`,{ref:d,open:h,onToggle:e=>{s?.(e);let{open:t}=e.currentTarget;m(t),t!==h&&o?.(t)},className:G(Z_.root,n),"data-component":`Details`,...c})}Q_.displayName=`Details`;var $_=K(Q_);const ev={root:`details-summary`};function tv(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(ev.root,r),"data-component":`Details.Summary`,...o,...i})}tv.displayName=`Details.Summary`;var nv=K(tv);const rv=Object.assign($_,{Summary:nv}),iv=Object.assign(ug,{Header:Gh,Title:Zh,Subtitle:Jh,Body:Fh,Footer:Hh,Buttons:Lh,CloseButton:zh}),av={root:`drawer-body`};function ov(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(av.root,r),"data-component":`Drawer.Body`,...i})}ov.displayName=`Drawer.Body`;var sv=K(ov);const cv=(0,l.createContext)({}),lv={root:`drawer-close-button`};function uv(e,t){let{className:n,onClose:r,...i}=e,{onClose:a}=l.useContext(cv);return(0,q.jsx)(gi,{ref:t,icon:un,"aria-label":`Close`,variant:`invisible`,className:G(lv.root,n),onClick:r??a,"data-component":`Drawer.CloseButton`,...i})}uv.displayName=`Drawer.CloseButton`;var dv=K(uv);const fv={root:`drawer-footer`};function pv(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(fv.root,r),"data-component":`Drawer.Footer`,...i})}pv.displayName=`Drawer.Footer`;var mv=K(pv);const hv={root:`drawer-header`,directTitle:`drawer-header-direct-title`};function gv(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(hv.root,hv.directTitle,r),"data-component":`Drawer.Header`,...i})}gv.displayName=`Drawer.Header`;var _v=K(gv);const vv={root:`drawer-subtitle`};function yv(e,t){let{as:n=`h2`,className:r,id:i,...a}=e,{descriptionId:o}=l.useContext(cv);return(0,q.jsx)(n,{ref:t,id:i??o,className:G(vv.root,r),"data-component":`Drawer.Subtitle`,...a})}yv.displayName=`Drawer.Subtitle`;var bv=K(yv);const xv={root:`drawer-title`};function Sv(e,t){let{as:n=`h1`,className:r,id:i,...a}=e,{labelId:o}=l.useContext(cv);return(0,q.jsx)(n,{ref:t,id:i??o,className:G(xv.root,r),"data-component":`Drawer.Title`,...a})}Sv.displayName=`Drawer.Title`;var Cv=K(Sv);const wv={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`},Tv=e=>typeof e==`string`&&e in wv.inlineSize,Ev=e=>typeof e==`number`?`${e}px`:e;function Dv(e,t){let{title:n=`Drawer`,subtitle:r=``,onClose:i,position:a=`right`,size:o=`medium`,modal:s=!0,returnFocusRef:c,initialFocusRef:u,className:d,style:f,children:p,"aria-label":m,"aria-labelledby":h,"aria-describedby":g,..._}=e,v=Y(),y=Y(),b=l.useRef(null),x=ar(t,b),S=l.useRef(null),[C,w]=l.useState(!1),T=Tp(S);zi({containerRef:b,initialFocusRef:u,returnFocusRef:c,disabled:!s}),Hi(e=>{i(`escape`),s&&e.preventDefault()}),ih(!s);let[E,D]=xr(p,{header:_v,body:sv,footer:mv}),O=()=>{i(`close-button`)},k=e=>{s&&e.target===e.currentTarget&&C&&i(`escape`)},A=E.header??(0,q.jsxs)(_v,{children:[(0,q.jsxs)(`div`,{className:wv.headerContent,children:[(0,q.jsx)(Cv,{children:n}),r?(0,q.jsx)(bv,{children:r}):null]}),(0,q.jsx)(dv,{})]}),j=E.body??(0,q.jsx)(sv,{children:D}),M=E.footer,N=!!M,P=a===`left`||a===`right`,F=Tv(o),I=h??(m?void 0:v),L=g??(r?y:void 0);return(0,q.jsx)(cv.Provider,{value:{labelId:v,descriptionId:y,onClose:O},children:(0,q.jsx)(ea,{children:(0,q.jsx)(`div`,{className:G(wv.backdrop,wv.backdropPosition[a],!s&&wv.backdropModeless),onClick:k,onMouseDown:e=>{w(e.target===e.currentTarget)},"data-component":`Drawer.Backdrop`,"data-position":a,"data-modal":s,children:(0,q.jsxs)(`div`,{ref:x,role:`dialog`,"aria-labelledby":I,"aria-describedby":L,"aria-label":m,"aria-modal":s||void 0,className:G(wv.root,wv.position[a],F?P?wv.inlineSize[o]:wv.blockSize[o]:P?wv.customInlineSize:wv.customBlockSize,!s&&wv.rootModeless,d),style:{...f,...F?{}:{"--drawer-size":Ev(o)}},"data-component":`Drawer`,"data-position":a,"data-size":F?o:void 0,"data-modal":s,"data-has-footer":N?``:void 0,..._,children:[A,(0,q.jsx)(Mh,{ref:S,"aria-labelledby":v,className:G(wv.overflowWrapper,N&&T&&wv.overflowWrapperBordered),children:j}),M]})})})})}Dv.displayName=`Drawer`;var Ov=K(Dv);const kv=Object.assign(Ov,{Header:_v,Title:Cv,Subtitle:bv,Body:sv,Footer:mv,CloseButton:dv}),Av=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 jv(e,t){let{as:n=`em`,className:r,size:i,weight:a,...o}=e;return(0,q.jsx)(n,{ref:t,className:G(Av({size:i,weight:a}),r),"data-component":`Em`,"data-size":i,"data-weight":a,...o})}jv.displayName=`Em`;var Mv=K(jv);const Nv=W(`empty-state`,{variants:{size:{small:`empty-state-small`,medium:`empty-state-medium`}}}),Pv={icon:`empty-state-icon`,title:`empty-state-title`,description:`empty-state-description`,actions:`empty-state-actions`},Fv=e=>typeof e==`string`||!(0,f.isValidElementType)(e)?e:(0,q.jsx)(e,{});function Iv(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(Nv({size:c}),r),"data-component":`EmptyState`,"data-size":c,...u,children:[s===void 0?null:(0,q.jsx)(`span`,{className:Pv.icon,"aria-hidden":`true`,"data-component":`EmptyState.Icon`,children:Fv(s)}),(0,q.jsx)(`span`,{className:Pv.title,"data-component":`EmptyState.Title`,children:a}),o?(0,q.jsx)(`span`,{className:Pv.description,"data-component":`EmptyState.Description`,children:o}):null,i,l?(0,q.jsx)(`div`,{className:Pv.actions,"data-component":`EmptyState.Actions`,children:l}):null]})}Iv.displayName=`EmptyState`;var Lv=K(Iv);const Rv=1024,zv=[`bytes`,`KB`,`MB`,`GB`,`TB`],Bv=e=>{if(!Number.isFinite(e)||e<=0)return`0 ${zv[0]}`;let t=e,n=0;for(;t>=Rv&&n<zv.length-1;)t/=Rv,n+=1;return`${n===0?Math.round(t):Math.round(t*10)/10} ${zv[n]}`},Vv=(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)},Hv=(e,t)=>{let{accept:n,maxSize:r,multiple:i}=t,a=[],o=[];return e.forEach(e=>{if(!Vv(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}},Uv=(0,l.createContext)({}),Wv={root:`file-upload-description`};function Gv(e,t){let{className:n,id:r,...i}=e,{descriptionId:a}=l.useContext(Uv);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(Wv.root,n),"data-component":`FileUpload.Description`,...i})}Gv.displayName=`FileUpload.Description`;var Kv=K(Gv);const qv={root:`file-upload-icon`};function Jv(e,t){let{icon:n=qt,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(qv.root,r),"data-component":`FileUpload.Icon`,...a,children:(0,q.jsx)(n,{})})}Jv.displayName=`FileUpload.Icon`;var Yv=K(Jv);const Xv={root:`file-upload-label`};function Zv(e,t){let{className:n,id:r,...i}=e,{labelId:a}=l.useContext(Uv);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(Xv.root,n),"data-component":`FileUpload.Label`,...i})}Zv.displayName=`FileUpload.Label`;var Qv=K(Zv);const $v={root:`file-upload-list`};function ey(e,t){let{className:n,children:r,...i}=e;return l.Children.toArray(r).length===0?null:(0,q.jsx)(`ul`,{ref:t,role:`list`,className:G($v.root,n),"data-component":`FileUpload.List`,...i,children:r})}ey.displayName=`FileUpload.List`;var ty=K(ey);const ny={input:`sr-only`},ry=W(`file-upload`,{variants:{size:{small:`file-upload-small`,medium:`file-upload-medium`,large:`file-upload-large`}}}),iy=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`}}}),ay=(e,t)=>{if(!e||typeof DataTransfer>`u`)return;let n=new DataTransfer;t.forEach(e=>n.items.add(e)),e.files=n.files};function oy(e,t){let{className:n,children:r,size:i=`medium`,accept:a,multiple:o,disabled:s,required:c,name:u,maxSize:d,validationStatus:f,onSelect:p,onReject:m,id:h,"aria-label":g,"aria-labelledby":_,"aria-describedby":v,...y}=e,b=l.useRef(null),x=Y(h),S=Y(),C=Y(),w=l.useRef(0),[T,E]=l.useState(!1),[D,O]=xr(r,{icon:Yv,label:Qv,description:Kv,list:ty}),k=(e,t)=>{let{accepted:n,rejected:r}=Hv(e,{accept:a,maxSize:d,multiple:o});t===`drop`&&n.length>0&&ay(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=>{s||(e.preventDefault(),w.current+=1,E(!0))},M=e=>{s||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`copy`))},N=()=>{s||(w.current=Math.max(w.current-1,0),w.current===0&&E(!1))},P=e=>{s||(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)(Uv.Provider,{value:{labelId:S,descriptionId:C},children:(0,q.jsxs)(`div`,{ref:t,className:G(ry({size:i}),n),"data-component":`FileUpload`,"data-size":i,"data-disabled":s,"data-dragging":T||void 0,"data-validation":f,...y,children:[(0,q.jsxs)(`label`,{className:G(iy({dragging:T,disabled:!!s,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:a,multiple:o,disabled:s,required:c,onChange:A,className:ny.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]})})}oy.displayName=`FileUpload`;var sy=K(oy);const cy=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 ly(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(cy({variant:a,animated:o}),r),style:{...s,"--progress-bar-item-width":`${i}%`},"data-component":`ProgressBar.Item`,"data-variant":a,"data-animated":o,...l})}ly.displayName=`ProgressBar.Item`;var uy=K(ly);const dy=W(`progress-bar`,{variants:{size:{small:`progress-bar-small`,medium:`progress-bar-medium`,large:`progress-bar-large`},inline:{true:`progress-bar-inline`,false:``}}});function fy(e,t){let{as:n=`span`,className:r,progress:i,size:a=`medium`,variant:o=`success`,inline:s,animated:c,children:u,"aria-label":d,"aria-valuenow":f,"aria-valuetext":p,...m}=e;if(u&&i)throw Error("Pass either `progress` or children to ProgressBar, not both.");let h=l.Children.toArray(u).length>0;return(0,q.jsx)(n,{ref:t,className:G(dy({size:a,inline:s}),r),"data-component":`ProgressBar`,"data-size":a,"data-inline":s,...m,children:h?u:(0,q.jsx)(uy,{progress:i,variant:o,animated:c,"aria-label":d,"aria-valuenow":f,"aria-valuetext":p})})}fy.displayName=`ProgressBar`;var py=K(fy);const my=Object.assign(py,{Item:uy}),hy={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`},gy={success:{icon:Xt,className:hy.statusSuccess},error:{icon:fn,className:hy.statusError}};function _y(e,t){let{className:n,name:r,fileSize:i,status:a=`pending`,progress:o,description:s,icon:c=dn,onRemove:l,removeLabel:u,children:d,...f}=e,p=a===`success`||a===`error`?gy[a]:void 0,m=p?.icon;return(0,q.jsxs)(`li`,{ref:t,className:G(hy.root,n),"data-component":`FileUpload.Item`,"data-status":a,...f,children:[(0,q.jsx)(`span`,{className:hy.icon,"aria-hidden":`true`,"data-component":`FileUpload.Item.Icon`,children:(0,q.jsx)(c,{})}),(0,q.jsxs)(`span`,{className:hy.body,children:[(0,q.jsxs)(`span`,{className:hy.heading,children:[(0,q.jsx)(`span`,{className:hy.name,"data-component":`FileUpload.Item.Name`,children:r}),i===void 0?null:(0,q.jsx)(`span`,{className:hy.fileSize,"data-component":`FileUpload.Item.Size`,children:Bv(i)})]}),a===`uploading`?(0,q.jsx)(my,{progress:o,variant:`accent`,size:`small`,animated:!0,"aria-label":`Uploading ${r}`}):null,s?(0,q.jsx)(`span`,{className:G(hy.description,a===`error`&&hy.descriptionError),"data-component":`FileUpload.Item.Description`,children:s}):null,d]}),m?(0,q.jsx)(`span`,{className:G(hy.status,p?.className),"aria-hidden":`true`,"data-component":`FileUpload.Item.Status`,children:(0,q.jsx)(m,{})}):null,l?(0,q.jsx)(gi,{icon:un,variant:`invisible`,size:`small`,"aria-label":u??`Remove ${r}`,onClick:l,"data-component":`FileUpload.Item.RemoveButton`}):null]})}_y.displayName=`FileUpload.Item`;var vy=K(_y);const yy=Object.assign(sy,{Icon:Yv,Label:Qv,Description:Kv,List:ty,Item:vy});function by(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 xy(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o=process.env.NODE_ENV!==`production`&&!!n.key&&!!n.debug?.call(n),s=0;o&&(s=Date.now());let c=e();if(!(c.length!==r.length||c.some((e,t)=>r[t]!==e)))return i;r=c;let l=0;if(o&&(l=Date.now()),i=t(...c),o){let e=Math.round((Date.now()-s)*100)/100,t=Math.round((Date.now()-l)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=` `+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
29
29
  font-size: .6rem;
@@ -817,4 +817,4 @@ ${this.fragmentDiscardExpression_?` if (${this.fragmentDiscardExpression_}) { d
817
817
  gl_FragColor = color;
818
818
  gl_FragColor.rgb *= gl_FragColor.a;
819
819
  gl_FragColor *= ${DV.TRANSITION_ALPHA};
820
- }`,uniforms:o,paletteTextures:i.paletteTextures}}var hU=class extends kz{constructor(e){e=e?Object.assign({},e):{};let t=e.style||{};delete e.style,super(e),this.sources_=e.sources,this.renderedSource_=null,this.renderedResolution_=NaN,this.style_=t,this.styleVariables_=this.style_.variables||{},this.styleBandCount_=NaN,this.styleNodataBandIndex_=void 0,this.handleSourceUpdate_(),this.addChangeListener(jL.SOURCE,this.handleSourceUpdate_)}getSources(e,t){let n=this.getSource();return this.sources_?typeof this.sources_==`function`?this.sources_(e,t):this.sources_:n?[n]:[]}getRenderSource(){return this.renderedSource_||this.getSource()}getSourceState(){let e=this.getRenderSource();return e?e.getState():`undefined`}handleSourceUpdate_(){this.hasRenderer()&&this.getRenderer().clearCache();let e=this.getSource();if(e){if(e.getState()===`loading`){let t=()=>{e.getState()===`ready`&&(e.removeEventListener(`change`,t),this.setStyle(this.style_))};e.addEventListener(`change`,t)}else this.setStyle(this.style_)}}getFirstSource_(){let e=2**53-1,t=this.getSources([-e,-e,e,e],e);return t&&t.length?t[0]:null}usesCoverageBand_(e,t){if(!e||!t||e.hasAlpha!==!1)return!1;let n=e.getProjection();return!!n&&!Vk(n,t)}getSourceBandCount_(e){let t=this.getFirstSource_(),n=t&&`bandCount`in t?t.bandCount:4;return this.usesCoverageBand_(t,e)?n+1:n}getSourceNodataBandIndex_(e){let t=this.getFirstSource_();if(t)return this.usesCoverageBand_(t,e)?t.bandCount+1:`nodataBandIndex`in t?t.nodataBandIndex:void 0}parseStyleForRender_(e){let t=this.getSourceBandCount_(e),n=this.getSourceNodataBandIndex_(e);return this.styleBandCount_=t,this.styleNodataBandIndex_=n,mU(this.style_,t,n)}applyShaders_(e){let t=this.parseStyleForRender_(e);this.getRenderer().reset({vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,paletteTextures:t.paletteTextures})}createRenderer(){let e=this.getMapInternal()?.getView()?.getProjection(),t=this.parseStyleForRender_(e);return new AV(this,{vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,cacheSize:this.getCacheSize(),paletteTextures:t.paletteTextures})}renderSources(e,t){let n=this.getRenderer(),r;for(let i=0,a=t.length;i<a;++i)this.renderedSource_=t[i],n.prepareFrame(e)&&(r=n.renderFrame(e));return r}render(e,t){this.rendered=!0;let n=e.viewState;if(this.hasRenderer()){let e=n.projection;(this.getSourceBandCount_(e)!==this.styleBandCount_||this.getSourceNodataBandIndex_(e)!==this.styleNodataBandIndex_)&&this.applyShaders_(e)}let r=this.getSources(e.extent,n.resolution),i=!0;for(let e=0,t=r.length;e<t;++e){let t=r[e],n=t.getState();if(n==`loading`){let e=()=>{t.getState()==`ready`&&(t.removeEventListener(`change`,e),this.changed())};t.addEventListener(`change`,e)}i&&=n==`ready`}let a=this.renderSources(e,r);if(this.getRenderer().renderComplete&&i)return this.renderedResolution_=n.resolution,a;if(this.renderedResolution_>.5*n.resolution){let t=this.getSources(e.extent,this.renderedResolution_).filter(e=>!r.includes(e));if(t.length>0)return this.renderSources(e,t)}return a}setStyle(e){if(this.styleVariables_=e.variables||{},this.style_=e,this.hasRenderer()){let e=this.getMapInternal()?.getView()?.getProjection();this.applyShaders_(e),this.changed()}}updateStyleVariables(e){Object.assign(this.styleVariables_,e),this.changed()}};hU.prototype.dispose;function gU({name:e,...t}){return DB(()=>new hU(t),e),null}gU.displayName=`MapWebGLTileLayer`;const _U=e=>{let t=sB(),n=l.useRef(null);n.current||=e();let r=n.current;return l.useEffect(()=>{if(t)return t.addControl(r),()=>{t.removeControl(r)}},[t,r]),r},vU=(e,t,n)=>{let r=l.useRef(null);if(!r.current){let t=document.createElement(`div`);t.setAttribute(`data-component`,e),r.current=t}let i=r.current;return _U(()=>new QL({element:i,target:n})),l.useEffect(()=>{i.className=G(`ol-unselectable ol-control`,t)},[i,t]),i};function yU(e){return _U(()=>new $L(e)),null}yU.displayName=`MapAttributionControl`;const bU=[`fullscreenchange`,`webkitfullscreenchange`],xU={ENTERFULLSCREEN:`enterfullscreen`,LEAVEFULLSCREEN:`leavefullscreen`};var SU=class extends QL{constructor(e){e||={},super({element:document.createElement(`div`),target:e.target}),this.on,this.once,this.un,this.keys_=e.keys!==void 0&&e.keys,this.source_=e.source,this.isInFullscreen_=!1,this.boundHandleMapTargetChange_=this.handleMapTargetChange_.bind(this),this.cssClassName_=e.className===void 0?`ol-full-screen`:e.className,this.documentListeners_=[],this.activeClassName_=e.activeClassName===void 0?[this.cssClassName_+`-true`]:e.activeClassName.split(` `),this.inactiveClassName_=e.inactiveClassName===void 0?[this.cssClassName_+`-false`]:e.inactiveClassName.split(` `);let t=e.label===void 0?`⤢`:e.label;this.labelNode_=typeof t==`string`?document.createTextNode(t):t;let n=e.labelActive===void 0?`×`:e.labelActive;this.labelActiveNode_=typeof n==`string`?document.createTextNode(n):n;let r=e.tipLabel?e.tipLabel:`Toggle full-screen`;this.button_=document.createElement(`button`),this.button_.title=r,this.button_.setAttribute(`type`,`button`),this.button_.appendChild(this.labelNode_),this.button_.addEventListener(IE.CLICK,this.handleClick_.bind(this),!1),this.setClassName_(this.button_,this.isInFullscreen_),this.element.className=`${this.cssClassName_} ol-unselectable ol-control`,this.element.appendChild(this.button_)}handleClick_(e){e.preventDefault(),this.handleFullScreen_()}handleFullScreen_(){let e=this.getMap();if(!e)return;let t=e.getOwnerDocument();if(CU(t)){if(wU(t))DU(t);else{let n;n=this.source_?typeof this.source_==`string`?t.getElementById(this.source_):this.source_:e.getTargetElement(),this.keys_?EU(n):TU(n)}}}handleFullScreenChange_(){let e=this.getMap();if(!e)return;let t=this.isInFullscreen_;this.isInFullscreen_=wU(e.getOwnerDocument()),t!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?(Kj(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(xU.ENTERFULLSCREEN)):(Kj(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(xU.LEAVEFULLSCREEN)),e.updateSize())}setClassName_(e,t){t?(e.classList.remove(...this.inactiveClassName_),e.classList.add(...this.activeClassName_)):(e.classList.remove(...this.activeClassName_),e.classList.add(...this.inactiveClassName_))}setMap(e){let t=this.getMap();t&&t.removeChangeListener(JL.TARGET,this.boundHandleMapTargetChange_),super.setMap(e),this.handleMapTargetChange_(),e&&e.addChangeListener(JL.TARGET,this.boundHandleMapTargetChange_)}handleMapTargetChange_(){let e=this.documentListeners_;for(let t=0,n=e.length;t<n;++t)FE(e[t]);e.length=0;let t=this.getMap();if(t){let n=t.getOwnerDocument();CU(n)?this.element.classList.remove(WM):this.element.classList.add(WM);for(let t=0,r=bU.length;t<r;++t)e.push(NE(n,bU[t],this.handleFullScreenChange_,this));this.handleFullScreenChange_()}}};function CU(e){let t=e.body;return!!(t.webkitRequestFullscreen||t.requestFullscreen&&e.fullscreenEnabled)}function wU(e){return!!(e.webkitIsFullScreen||e.fullscreenElement)}function TU(e){e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()}function EU(e){e.webkitRequestFullscreen?e.webkitRequestFullscreen():TU(e)}function DU(e){e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen&&e.webkitExitFullscreen()}function OU(e){return _U(()=>new SU(e)),null}OU.displayName=`MapFullScreenControl`;const kU=`units`,AU=[1,2,5],jU=25.4/.28;var MU=class extends QL{constructor(e){e||={};let t=document.createElement(`div`);t.style.pointerEvents=`none`,super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un;let n=e.className===void 0?e.bar?`ol-scale-bar`:`ol-scale-line`:e.className;this.innerElement_=document.createElement(`div`),this.innerElement_.className=n+`-inner`,this.element.className=n+` ol-unselectable`,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=e.minWidth===void 0?64:e.minWidth,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_=``,this.addChangeListener(kU,this.handleUnitsChanged_),this.setUnits(e.units||`metric`),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(kU)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(kU,e)}setDpi(e){this.dpi_=e}updateElement_(){let e=this.viewState_;if(!e){this.renderedVisible_&&=(this.element.style.display=`none`,!1);return}let t=e.center,n=e.projection,r=this.getUnits(),i=r==`degrees`?`degrees`:`m`,a=Pk(n,e.resolution,t,i),o=this.minWidth_*(this.dpi_||jU)/jU,s=this.maxWidth_===void 0?void 0:this.maxWidth_*(this.dpi_||jU)/jU,c=o*a,l=``;if(r==`degrees`){let e=FO.degrees;c*=e,c<e/60?(l=`″`,a*=3600):c<e?(l=`′`,a*=60):l=`°`}else if(r==`imperial`)c<.9144?(l=`in`,a/=.0254):c<1609.344?(l=`ft`,a/=.3048):(l=`mi`,a/=1609.344);else if(r==`nautical`)a/=1852,l=`NM`;else if(r==`metric`)c<1e-6?(l=`nm`,a*=1e9):c<.001?(l=`μm`,a*=1e6):c<1?(l=`mm`,a*=1e3):c<1e3?l=`m`:(l=`km`,a/=1e3);else if(r==`us`)c<.9144?(l=`in`,a*=39.37):c<1609.344?(l=`ft`,a/=.30480061):(l=`mi`,a/=1609.3472);else throw Error(`Invalid units`);let u=3*Math.floor(Math.log(o*a)/Math.log(10)),d,f,p,m=0,h,g;for(;;){p=Math.floor(u/3);let e=10**p;if(d=AU[(u%3+3)%3]*e,f=Math.round(d/a),isNaN(f)){this.element.style.display=`none`,this.renderedVisible_=!1;return}if(s!==void 0&&f>=s){d=m,f=h,p=g;break}if(f>=o)break;m=d,h=f,g=p,++u}let _=this.scaleBar_?this.createScaleBar(f,d,l):d.toFixed(p<0?-p:0)+` `+l;this.renderedHTML_!=_&&(this.innerElement_.innerHTML=_,this.renderedHTML_=_),this.renderedWidth_!=f&&(this.innerElement_.style.width=f+`px`,this.renderedWidth_=f),this.renderedVisible_||=(this.element.style.display=``,!0)}createScaleBar(e,t,n){let r=this.getScaleForResolution(),i=r<1?Math.round(1/r).toLocaleString()+` : 1`:`1 : `+Math.round(r).toLocaleString(),a=this.scaleBarSteps_,o=e/a,s=[this.createMarker(`absolute`)];for(let r=0;r<a;++r){let i=r%2==0?`ol-scale-singlebar-odd`:`ol-scale-singlebar-even`;s.push(`<div><div class="ol-scale-singlebar ${i}" style="width: ${o}px;"></div>`+this.createMarker(`relative`)+(r%2==0||a===2?this.createStepText(r,e,!1,t,n):``)+`</div>`)}return s.push(this.createStepText(a,e,!0,t,n)),(this.scaleBarText_?`<div class="ol-scale-text" style="width: ${e}px;">`+i+`</div>`:``)+s.join(``)}createMarker(e){return`<div class="ol-scale-step-marker" style="position: ${e}; top: ${e===`absolute`?3:-10}px;"></div>`}createStepText(e,t,n,r,i){let a=(e===0?0:Math.round(r/this.scaleBarSteps_*e*100)/100)+(e===0?``:` `+i),o=e===0?-3:t/this.scaleBarSteps_*-1,s=e===0?0:t/this.scaleBarSteps_*2;return`<div class="ol-scale-step-text" style="margin-left: ${o}px;text-align: ${e===0?`left`:`center`};min-width: ${s}px;left: ${n?t+`px`:`unset`};">`+a+`</div>`}getScaleForResolution(){let e=Pk(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,`m`),t=this.dpi_||jU;return 1e3/25.4*e*t}render(e){let t=e.frameState;this.viewState_=t?t.viewState:null,this.updateElement_()}};function NU(e){return _U(()=>new MU(e)),null}NU.displayName=`MapScaleLineControl`;const PU=`projection`,FU=`coordinateFormat`;var IU=class extends QL{constructor(e){e||={};let t=document.createElement(`div`);t.className=e.className===void 0?`ol-mouse-position`:e.className,super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un,this.addChangeListener(PU,this.handleProjectionChanged_),e.coordinateFormat&&this.setCoordinateFormat(e.coordinateFormat),e.projection&&this.setProjection(e.projection),this.renderOnMouseOut_=e.placeholder!==void 0,this.placeholder_=this.renderOnMouseOut_?e.placeholder:`&#160;`,this.renderedHTML_=t.innerHTML,this.mapProjection_=null,this.transform_=null,this.wrapX_=e.wrapX!==!1}handleProjectionChanged_(){this.transform_=null}getCoordinateFormat(){return this.get(FU)}getProjection(){return this.get(PU)}handleMouseMove(e){let t=this.getMap();this.updateHTML_(t.getEventPixel(e))}handleMouseOut(e){this.updateHTML_(null)}setMap(e){if(super.setMap(e),e){let t=e.getViewport();this.listenerKeys.push(NE(t,GL.POINTERMOVE,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(NE(t,GL.POINTEROUT,this.handleMouseOut,this)),this.updateHTML_(null)}}setCoordinateFormat(e){this.set(FU,e)}setProjection(e){this.set(PU,Nk(e))}updateHTML_(e){let t=this.placeholder_;if(e&&this.mapProjection_){if(!this.transform_){let e=this.getProjection();this.transform_=e?Hk(this.mapProjection_,e):Ak}let n=this.getMap().getCoordinateFromPixelInternal(e);if(n){let e=Kk();e&&(this.transform_=Hk(this.mapProjection_,e)),this.transform_(n,n),this.wrapX_&&MO(n,e||this.getProjection()||this.mapProjection_);let r=this.getCoordinateFormat();t=r?r(n):n.toString()}}(!this.renderedHTML_||t!==this.renderedHTML_)&&(this.element.innerHTML=t,this.renderedHTML_=t)}render(e){let t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null}};function LU(e){return _U(()=>new IU(e)),null}LU.displayName=`MapMousePositionControl`;const RU=.75,zU=.1;var BU=class extends QL{constructor(e){e||={},super({element:document.createElement(`div`),render:e.render,target:e.target}),this.boundHandleRotationChanged_=this.handleRotationChanged_.bind(this),this.collapsed_=e.collapsed===void 0||e.collapsed,this.collapsible_=e.collapsible===void 0||e.collapsible,this.collapsible_||(this.collapsed_=!1),this.rotateWithView_=e.rotateWithView!==void 0&&e.rotateWithView,this.viewExtent_=void 0;let t=e.className===void 0?`ol-overviewmap`:e.className,n=e.tipLabel===void 0?`Overview map`:e.tipLabel,r=e.collapseLabel===void 0?`‹`:e.collapseLabel;typeof r==`string`?(this.collapseLabel_=document.createElement(`span`),this.collapseLabel_.textContent=r):this.collapseLabel_=r;let i=e.label===void 0?`›`:e.label;typeof i==`string`?(this.label_=document.createElement(`span`),this.label_.textContent=i):this.label_=i;let a=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,o=document.createElement(`button`);o.setAttribute(`type`,`button`),o.title=n,o.appendChild(a),o.addEventListener(IE.CLICK,this.handleClick_.bind(this),!1),this.ovmapDiv_=document.createElement(`div`),this.ovmapDiv_.className=`ol-overviewmap-map`,this.view_=e.view;let s=new JR({view:e.view,controls:new sD,interactions:new sD});this.ovmap_=s,e.layers&&e.layers.forEach(function(e){s.addLayer(e)});let c=document.createElement(`div`);c.className=`ol-overviewmap-box`,c.style.boxSizing=`border-box`,this.boxOverlay_=new ZR({position:[0,0],positioning:`center-center`,element:c}),this.ovmap_.addOverlay(this.boxOverlay_);let l=t+` ol-unselectable ol-control`+(this.collapsed_&&this.collapsible_?` ol-collapsed`:``)+(this.collapsible_?``:` ol-uncollapsible`),u=this.element;u.className=l,u.appendChild(this.ovmapDiv_),u.appendChild(o);let d=this.boxOverlay_,f=this.boxOverlay_.getElement(),p=e=>({clientX:e.clientX,clientY:e.clientY}),m=function(e){let t=p(e),n=s.getEventCoordinate(t);d.setPosition(n)},h=e=>{let t=s.getEventCoordinateInternal(e),n=this.getMap();n.getView().setCenterInternal(t);let r=n.getOwnerDocument();r.removeEventListener(`pointermove`,m),r.removeEventListener(`pointerup`,h)};this.ovmapDiv_.addEventListener(`pointerdown`,e=>{let t=this.getMap().getOwnerDocument();e.target===f&&t.addEventListener(`pointermove`,m),t.addEventListener(`pointerup`,h)})}setMap(e){let t=this.getMap();if(e!==t){if(t){let e=t.getView();e&&this.unbindView_(e),this.ovmap_.setTarget(null)}if(super.setMap(e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(NE(e,AE.PROPERTYCHANGE,this.handleMapPropertyChange_,this));let t=e.getView();t&&this.bindView_(t),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}}handleMapPropertyChange_(e){if(e.key===JL.VIEW){let t=e.oldValue;t&&this.unbindView_(t);let n=this.getMap().getView();this.bindView_(n)}else!this.ovmap_.isRendered()&&(e.key===JL.TARGET||e.key===JL.SIZE)&&this.ovmap_.updateSize()}bindView_(e){if(!this.view_){let t=new wL({projection:e.getProjection()});this.ovmap_.setView(t)}e.addChangeListener(fL.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_(),e.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())}unbindView_(e){e.removeChangeListener(fL.ROTATION,this.boundHandleRotationChanged_)}handleRotationChanged_(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())}validateExtent_(){let e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;let n=e.getSize(),r=e.getView().calculateExtentInternal(n);if(this.viewExtent_&&ED(r,this.viewExtent_))return;this.viewExtent_=r;let i=t.getSize(),a=t.getView().calculateExtentInternal(i),o=t.getPixelFromCoordinateInternal(UD(r)),s=t.getPixelFromCoordinateInternal(FD(r)),c=Math.abs(o[0]-s[0]),l=Math.abs(o[1]-s[1]),u=i[0],d=i[1];c<u*zU||l<d*zU||c>u*RU||l>d*RU?this.resetExtent_():vD(a,r)||this.recenter_()}resetExtent_(){let e=this.getMap(),t=this.ovmap_,n=e.getSize(),r=e.getView().calculateExtentInternal(n),i=t.getView();YD(r,1/(2**(Math.log(RU/zU)/Math.LN2/2)*zU)),i.fitInternal(bj(r))}recenter_(){let e=this.getMap(),t=this.ovmap_,n=e.getView();t.getView().setCenterInternal(n.getCenterInternal())}updateBox_(){let e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;let n=e.getSize(),r=e.getView(),i=t.getView(),a=this.rotateWithView_?0:-r.getRotation(),o=this.boxOverlay_,s=this.boxOverlay_.getElement(),c=r.getCenter(),l=r.getResolution(),u=i.getResolution(),d=n[0]*l/u,f=n[1]*l/u;if(o.setPosition(c),s){s.style.width=d+`px`,s.style.height=f+`px`;let e=`rotate(`+a+`rad)`;s.style.transform=e}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||=PE(this.ovmap_,qL.POSTRENDER,e=>{delete this.ovmapPostrenderKey_,this.updateBox_()})}handleClick_(e){e.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(GM),this.collapsed_?Kj(this.collapseLabel_,this.label_):Kj(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;let e=this.ovmap_;if(!this.collapsed_){if(e.isRendered()){this.viewExtent_=void 0,e.render();return}e.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle(`ol-uncollapsible`),!e&&this.collapsed_&&this.handleToggle_())}setCollapsed(e){!this.collapsible_||this.collapsed_===e||this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(e){this.validateExtent_(),this.updateBox_()}};function VU(e){return _U(()=>new BU(e)),null}VU.displayName=`MapOverviewMapControl`;var HU=class e extends wA{constructor(e,t,n){super(),n!==void 0&&t===void 0?this.setFlatCoordinates(n,e):(t||=0,this.setCenterAndRadius(e,t,n))}clone(){let t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t}closestPointXY(e,t,n,r){let i=this.flatCoordinates,a=e-i[0],o=t-i[1],s=a*a+o*o;if(s<r){if(s===0)for(let e=0;e<this.stride;++e)n[e]=i[e];else{let e=this.getRadius()/Math.sqrt(s);n[0]=i[0]+e*a,n[1]=i[1]+e*o;for(let e=2;e<this.stride;++e)n[e]=i[e]}return n.length=this.stride,s}return r}containsXY(e,t){let n=this.flatCoordinates,r=e-n[0],i=t-n[1];return r*r+i*i<=this.getRadiusSquared_()}getCenter(){return this.flatCoordinates.slice(0,this.stride)}computeExtent(e){let t=this.flatCoordinates,n=t[this.stride]-t[0];return SD(t[0]-n,t[1]-n,t[0]+n,t[1]+n,e)}getRadius(){return Math.sqrt(this.getRadiusSquared_())}getRadiusSquared_(){let e=this.flatCoordinates[this.stride]-this.flatCoordinates[0],t=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return e*e+t*t}getType(){return`Circle`}intersectsExtent(e){if(KD(e,this.getExtent())){let t=this.getCenter();return e[0]<=t[0]&&e[2]>=t[0]||e[1]<=t[1]&&e[3]>=t[1]||MD(e,this.intersectsCoordinate.bind(this))}return!1}setCenter(e){let t=this.stride,n=this.flatCoordinates[t]-this.flatCoordinates[0],r=e.slice();r[t]=r[0]+n;for(let n=1;n<t;++n)r[t+n]=e[n];this.setFlatCoordinates(this.layout,r),this.changed()}setCenterAndRadius(e,t,n){this.setLayout(n,e,0),this.flatCoordinates||=[];let r=this.flatCoordinates,i=RA(r,0,e,this.stride);r[i++]=r[0]+t;for(let e=1,t=this.stride;e<t;++e)r[i++]=r[e];r.length=i,this.changed()}getCoordinates(){return null}setCoordinates(e,t){}setRadius(e){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+e,this.changed()}rotate(e,t){let n=this.getCenter(),r=this.getStride();this.setCenter(vA(n,0,n.length,r,e,t,n)),this.changed()}};HU.prototype.transform;var UU=class e extends CA{constructor(e){super(),this.geometries_=e,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(FE),this.changeEventsKeys_.length=0}listenGeometriesChange_(){let e=this.geometries_;for(let t=0,n=e.length;t<n;++t)this.changeEventsKeys_.push(NE(e[t],IE.CHANGE,this.changed,this))}clone(){let t=new e(WU(this.geometries_));return t.applyProperties(this),t}closestPointXY(e,t,n,r){if(r<gD(this.getExtent(),e,t))return r;let i=this.geometries_;for(let a=0,o=i.length;a<o;++a)r=i[a].closestPointXY(e,t,n,r);return r}containsXY(e,t){let n=this.geometries_;for(let r=0,i=n.length;r<i;++r)if(n[r].containsXY(e,t))return!0;return!1}computeExtent(e){CD(e);let t=this.geometries_;for(let n=0,r=t.length;n<r;++n)OD(e,t[n].getExtent());return e}getGeometries(){return WU(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let e=[],t=this.geometries_;for(let n=0,r=t.length;n<r;++n)t[n].getType()===this.getType()?e=e.concat(t[n].getGeometriesArrayRecursive()):e.push(t[n]);return e}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;let n=[],r=this.geometries_,i=!1;for(let e=0,a=r.length;e<a;++e){let a=r[e],o=a.getSimplifiedGeometry(t);n.push(o),o!==a&&(i=!0)}return i?new e(n):(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getType(){return`GeometryCollection`}intersectsExtent(e){let t=this.geometries_;for(let n=0,r=t.length;n<r;++n)if(t[n].intersectsExtent(e))return!0;return!1}isEmpty(){return this.geometries_.length===0}rotate(e,t){let n=this.geometries_;for(let r=0,i=n.length;r<i;++r)n[r].rotate(e,t);this.changed()}scale(e,t,n){n||=ID(this.getExtent());let r=this.geometries_;for(let i=0,a=r.length;i<a;++i)r[i].scale(e,t,n);this.changed()}setGeometries(e){this.setGeometriesArray(WU(e))}setGeometriesArray(e){this.unlistenGeometriesChange_(),this.geometries_=e,this.listenGeometriesChange_(),this.changed()}applyTransform(e){let t=this.geometries_;for(let n=0,r=t.length;n<r;++n)t[n].applyTransform(e);this.changed()}translate(e,t){let n=this.geometries_;for(let r=0,i=n.length;r<i;++r)n[r].translate(e,t);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}};function WU(e){return e.map(e=>e.clone())}function GU(e,t){let n=e.length;return t<0?e[t+n]:t>=n?e[t-n]:e[t]}function KU(e,t){let n=e.length,r=Math.floor(t),i=t-r;r>=n?r-=n:r<0&&(r+=n);let a=r+1;a>=n&&(a-=n);let o=e[r],s=o[0],c=o[1],l=e[a],u=l[0]-s,d=l[1]-c;return[s+u*i,c+d*i]}const qU={index:-1,endIndex:NaN,closestTargetDistance:1/0};function JU(e,t,n,r){let i=e[0],a=e[1],o=1/0,s=-1,c=NaN;for(let e=0;e<t.targets.length;++e){let n=t.targets[e],r=n.coordinates,l=1/0,u;for(let e=0;e<r.length-1;++e){let t=r[e],n=r[e+1],o=tW(i,a,t,n);o.squaredDistance<l&&(l=o.squaredDistance,u=e+o.along)}l<o&&(o=l,n.ring&&t.targetIndex===e&&(n.endIndex>n.startIndex?u<n.startIndex&&(u+=r.length):n.endIndex<n.startIndex&&u>n.startIndex&&(u-=r.length)),c=u,s=e)}let l=t.targets[s],u=l.ring;if(t.targetIndex===s&&u){let e=KU(l.coordinates,c);AO(n.getPixelFromCoordinate(e),n.getPixelFromCoordinate(t.startCoord))>r&&(u=!1)}if(u){let e=l.coordinates,t=e.length,n=l.startIndex,r=c;if(n<r){let i=$U(e,n,r);$U(e,n,r-t)<i&&(c-=t)}else{let i=$U(e,n,r);$U(e,n,r+t)<i&&(c+=t)}}return qU.index=s,qU.endIndex=c,qU.closestTargetDistance=o,qU}function YU(e,t){let n=[];for(let r=0;r<t.length;++r)XU(e,t[r].getGeometry(),n);return n}function XU(e,t,n){if(t instanceof iM){ZU(e,t.getCoordinates(),!1,n);return}if(t instanceof RN){let r=t.getCoordinates();for(let t=0,i=r.length;t<i;++t)ZU(e,r[t],!1,n);return}if(t instanceof yj){let r=t.getCoordinates();for(let t=0,i=r.length;t<i;++t)ZU(e,r[t],!0,n);return}if(t instanceof VN){let r=t.getCoordinates();for(let t=0,i=r.length;t<i;++t){let i=r[t];for(let t=0,r=i.length;t<r;++t)ZU(e,i[t],!0,n)}return}if(t instanceof UU){let r=t.getGeometries();for(let t=0;t<r.length;++t)XU(e,r[t],n);return}}function ZU(e,t,n,r){let i=e[0],a=e[1];for(let e=0,o=t.length-1;e<o;++e){let o=t[e],s=t[e+1],c=tW(i,a,o,s);if(c.squaredDistance===0){let i=e+c.along;r.push({coordinates:t,ring:n,startIndex:i,endIndex:i});return}}}function QU(e,t){return rO(e[0],e[1],t[0],t[1])}function $U(e,t,n){let r,i;t<n?(r=t,i=n):(r=n,i=t);let a=Math.ceil(r),o=Math.floor(i);if(a>o)return QU(KU(e,r),KU(e,i));let s=0;if(r<a){let t=KU(e,r),n=GU(e,a);s+=QU(t,n)}if(o<i){let t=GU(e,o),n=KU(e,i);s+=QU(t,n)}for(let t=a;t<o-1;++t){let n=GU(e,t),r=GU(e,t+1);s+=QU(n,r)}return s}const eW={along:0,squaredDistance:0};function tW(e,t,n,r){let i=n[0],a=n[1],o=r[0],s=r[1],c=o-i,l=s-a,u=0,d=i,f=a;return(c!==0||l!==0)&&(u=tO(((e-i)*c+(t-a)*l)/(c*c+l*l),0,1),d+=c*u,f+=l*u),eW.along=u,eW.squaredDistance=lO(rO(e,t,d,f),10),eW}const nW={DRAWSTART:`drawstart`,DRAWEND:`drawend`,DRAWABORT:`drawabort`};var rW=class extends ZE{constructor(e,t){super(e),this.feature=t}},iW=class extends CR{constructor(e){let t=e;t.stopDown||=qE,super(t),this.on,this.once,this.un,this.options_=e,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=oW(this.type_),this.stopClick_=!!e.stopClick,this.ignoreNextUpEvent_=!1,this.minPoints_=e.minPoints?e.minPoints:this.mode_===`Polygon`?3:2,this.maxPoints_=this.mode_===`Circle`?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:KE,this.geometryLayout_=e.geometryLayout?e.geometryLayout:`XY`;let n=e.geometryFunction;if(!n){let e=this.mode_;if(e===`Circle`)n=(e,t,n)=>{let r=t||new HU([NaN,NaN]),i=Jk(e[0],n),a=kO(i,Jk(e[e.length-1],n));r.setCenterAndRadius(i,Math.sqrt(a),this.geometryLayout_);let o=Kk();return o&&r.transform(n,o),r};else{let t;e===`Point`?t=lj:e===`LineString`?t=iM:e===`Polygon`&&(t=yj),n=(n,r,i)=>(r?e===`Polygon`?n[0].length?r.setCoordinates([n[0].concat([n[0][0]])],this.geometryLayout_):r.setCoordinates([],this.geometryLayout_):r.setCoordinates(n,this.geometryLayout_):r=new t(n,this.geometryLayout_),r)}}this.geometryFunction_=n,this.dragVertexDelay_=e.dragVertexDelay===void 0?500:e.dragVertexDelay,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new RL({source:new pP({useSpatialIndex:!1,wrapX:e.wrapX?e.wrapX:!1}),style:e.style?e.style:aW(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:_R,this.freehandCondition_,this.freehandCondition_=e.freehand?pR:e.freehandCondition?e.freehandCondition:yR,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(rR.ACTIVE,this.updateState_)}setTrace(e){let t;t=e?e===!0?pR:e:hR,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}setFreehand(e){this.freehand_=e,this.freehandCondition_=this.freehand_?pR:this.options_&&this.options_.freehandCondition?this.options_.freehandCondition:yR}getOverlay(){return this.overlay_}getFreehand(){return this.freehand_}handleEvent(e){e.originalEvent.type===IE.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!==`Point`&&this.freehandCondition_(e);let t=e.type===WL.POINTERMOVE,n=!0;return!this.freehand_&&this.lastDragTime_&&e.type===WL.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===WL.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===WL.POINTERDOWN?n=!1:t&&this.getPointerCount()<2?(n=e.type===WL.POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):(e.originalEvent.pointerType===`mouse`||e.type===WL.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(e)):e.type===WL.DBLCLICK&&(n=!1),super.handleEvent(e)&&n}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(()=>{this.handlePointerMove_(new UL(WL.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))},this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active){this.deactivateTrace_();return}let t=this.getMap(),n=fD([t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_])]),r=this.traceSource_.getFeaturesInExtent(n);if(r.length===0)return;let i=YU(e.coordinate,r);i.length&&(this.traceState_={active:!0,startCoord:e.coordinate.slice(),targets:i,targetIndex:-1})}addOrRemoveTracedCoordinates_(e,t){let n=e.startIndex<=e.endIndex;n===e.startIndex<=t?n&&t>e.endIndex||!n&&t<e.endIndex?this.addTracedCoordinates_(e,e.endIndex,t):(n&&t<e.endIndex||!n&&t>e.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let n=0;if(e<t){let r=Math.ceil(e),i=Math.floor(t);i===t&&--i,n=i-r+1}else{let r=Math.floor(e),i=Math.ceil(t);i===t&&(i+=1),n=r-i+1}n>0&&this.removeLastPoints_(n)}addTracedCoordinates_(e,t,n){if(t===n)return;let r=[];if(t<n){let i=Math.ceil(t),a=Math.floor(n);a===n&&--a;for(let t=i;t<=a;++t)r.push(GU(e.coordinates,t))}else{let i=Math.floor(t),a=Math.ceil(n);a===n&&(a+=1);for(let t=i;t>=a;--t)r.push(GU(e.coordinates,t))}r.length&&this.appendCoordinates(r)}updateTrace_(e){let t=this.traceState_;if(!t.active||t.targetIndex===-1&&AO(e.map.getPixelFromCoordinate(t.startCoord),e.pixel)<this.snapTolerance_)return;let n=JU(e.coordinate,t,this.getMap(),this.snapTolerance_);if(t.targetIndex!==n.index){if(t.targetIndex!==-1){let e=t.targets[t.targetIndex];this.removeTracedCoordinates_(e.startIndex,e.endIndex)}let e=t.targets[n.index];this.addTracedCoordinates_(e,e.startIndex,n.endIndex)}else{let e=t.targets[t.targetIndex];this.addOrRemoveTracedCoordinates_(e,n.endIndex)}t.targetIndex=n.index;let r=t.targets[t.targetIndex];r.endIndex=n.endIndex;let i=KU(r.coordinates,r.endIndex),a=this.getMap().getPixelFromCoordinate(i);e.coordinate=i,e.pixel=[Math.round(a[0]),Math.round(a[1])]}handleDragEvent(e){this.ignoreNextUpEvent_=!0,super.handleDragEvent(e)}handleUpEvent(e){let t=!0;if(this.getPointerCount()===0){this.downTimeout_&&=(clearTimeout(this.downTimeout_),void 0),this.handlePointerMove_(e);let n=this.traceState_.active;if(this.ignoreNextUpEvent_||this.toggleTraceState_(e),this.shouldHandle_){let r=!this.finishCoordinate_;r&&this.startDrawing_(e.coordinate),!r&&this.freehand_?this.finishDrawing():!this.freehand_&&(!r||this.mode_===`Point`)&&(this.atFinish_(e.pixel,n)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e.coordinate)),t=!1}else this.freehand_&&this.abortDrawing()}return this.ignoreNextUpEvent_=!1,!t&&this.stopClick_&&e.preventDefault(),t}handlePointerMove_(e){if(this.pointerType_=e.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){let t=this.downPx_,n=e.pixel,r=t[0]-n[0],i=t[1]-n[1],a=r*r+i*i;if(this.shouldHandle_=this.freehand_?a>this.squaredClickTolerance_:a<=this.squaredClickTolerance_,!this.shouldHandle_)return}if(!this.finishCoordinate_){this.createOrUpdateSketchPoint_(e.coordinate.slice());return}this.updateTrace_(e),this.modifyDrawing_(e.coordinate)}atFinish_(e,t){let n=!1;if(this.sketchFeature_){let r=!1,i=[this.finishCoordinate_],a=this.mode_;if(a===`Point`)n=!0;else if(a===`Circle`)n=this.sketchCoords_.length===2;else if(a===`LineString`)r=!t&&this.sketchCoords_.length>this.minPoints_;else if(a===`Polygon`){let e=this.sketchCoords_;r=e[0].length>this.minPoints_,i=[e[0][0],e[0][e[0].length-2]],i=t?[e[0][0]]:[e[0][0],e[0][e[0].length-2]]}if(r){let t=this.getMap();for(let r=0,a=i.length;r<a;r++){let a=i[r],o=t.getPixelFromCoordinate(a),s=e[0]-o[0],c=e[1]-o[1],l=this.freehand_?1:this.snapTolerance_;if(n=Math.sqrt(s*s+c*c)<=l,n){this.finishCoordinate_=a;break}}}}return n}createOrUpdateSketchPoint_(e){this.sketchPoint_?this.sketchPoint_.getGeometry().setCoordinates(e):(this.sketchPoint_=new lD(new lj(e)),this.updateSketchFeatures_())}createOrUpdateCustomSketchLine_(e){this.sketchLine_||=new lD;let t=e.getLinearRing(0),n=this.sketchLine_.getGeometry();n?(n.setFlatCoordinates(t.getLayout(),t.getFlatCoordinates()),n.changed()):(n=new iM(t.getFlatCoordinates(),t.getLayout()),this.sketchLine_.setGeometry(n))}startDrawing_(e){let t=this.getMap().getView().getProjection(),n=EA(this.geometryLayout_);for(;e.length<n;)e.push(0);this.finishCoordinate_=e,this.mode_===`Point`?this.sketchCoords_=e.slice():this.mode_===`Polygon`?(this.sketchCoords_=[[e.slice(),e.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[e.slice(),e.slice()],this.sketchLineCoords_&&(this.sketchLine_=new lD(new iM(this.sketchLineCoords_)));let r=this.geometryFunction_(this.sketchCoords_,void 0,t);this.sketchFeature_=new lD,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(r),this.updateSketchFeatures_(),this.dispatchEvent(new rW(nW.DRAWSTART,this.sketchFeature_))}modifyDrawing_(e){let t=this.getMap(),n=this.sketchFeature_.getGeometry(),r=t.getView().getProjection(),i=EA(this.geometryLayout_),a,o;for(;e.length<i;)e.push(0);this.mode_===`Point`?o=this.sketchCoords_:this.mode_===`Polygon`?(a=this.sketchCoords_[0],o=a[a.length-1],this.atFinish_(t.getPixelFromCoordinate(e))&&(e=this.finishCoordinate_.slice())):(a=this.sketchCoords_,o=a[a.length-1]),o[0]=e[0],o[1]=e[1],this.geometryFunction_(this.sketchCoords_,n,r),this.sketchPoint_&&this.sketchPoint_.getGeometry().setCoordinates(e),n.getType()===`Polygon`&&this.mode_!==`Polygon`?this.createOrUpdateCustomSketchLine_(n):this.sketchLineCoords_&&this.sketchLine_.getGeometry().setCoordinates(this.sketchLineCoords_),this.updateSketchFeatures_()}addToDrawing_(e){let t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r,i,a=this.mode_;return a===`LineString`||a===`Circle`?(this.finishCoordinate_=e.slice(),i=this.sketchCoords_,i.length>=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),this.geometryFunction_(i,t,n)):a===`Polygon`&&(i=this.sketchCoords_[0],i.length>=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),r&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,t,n)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),r?this.finishDrawing():this.sketchFeature_}removeLastPoints_(e){if(!this.sketchFeature_)return;let t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;for(let i=0;i<e;++i){let e;if(r===`LineString`||r===`Circle`){if(e=this.sketchCoords_,e.splice(-2,1),e.length>=2){this.finishCoordinate_=e[e.length-2].slice();let t=this.finishCoordinate_.slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}this.geometryFunction_(e,t,n),t.getType()===`Polygon`&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(r===`Polygon`){e=this.sketchCoords_[0],e.splice(-2,1);let r=this.sketchLine_.getGeometry();if(e.length>=2){let t=e[e.length-2].slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}r.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,n)}if(e.length===1){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){let e=this.abortDrawing_();if(!e)return null;let t=this.sketchCoords_,n=e.getGeometry(),r=this.getMap().getView().getProjection();return this.mode_===`LineString`?(t.pop(),this.geometryFunction_(t,n,r)):this.mode_===`Polygon`&&(t[0].pop(),this.geometryFunction_(t,n,r),t=n.getCoordinates()),this.type_===`MultiPoint`?e.setGeometry(new zN([t])):this.type_===`MultiLineString`?e.setGeometry(new RN([t])):this.type_===`MultiPolygon`&&e.setGeometry(new VN([t])),this.dispatchEvent(new rW(nW.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e),e}abortDrawing_(){this.finishCoordinate_=null;let e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){let e=this.abortDrawing_();e&&this.dispatchEvent(new rW(nW.DRAWABORT,e))}appendCoordinates(e){let t=this.mode_,n=!this.sketchFeature_;n&&this.startDrawing_(e[0]);let r;if(t===`LineString`||t===`Circle`)r=this.sketchCoords_;else if(t===`Polygon`)r=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;n&&r.shift(),r.pop();for(let t=0;t<e.length;t++)this.addToDrawing_(e[t]);let i=e[e.length-1];this.sketchFeature_=this.addToDrawing_(i),this.modifyDrawing_(i)}extend(e){let t=e.getGeometry();this.sketchFeature_=e,this.sketchCoords_=t.getCoordinates();let n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.sketchPoint_=new lD(new lj(n)),this.updateSketchFeatures_(),this.dispatchEvent(new rW(nW.DRAWSTART,this.sketchFeature_))}updateSketchFeatures_(){let e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);let t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)}updateState_(){let e=this.getMap(),t=this.getActive();(!e||!t)&&this.abortDrawing(),this.overlay_.setMap(t?e:null)}};function aW(){let e=EP();return function(t,n){return e[t.getGeometry().getType()]}}function oW(e){switch(e){case`Point`:case`MultiPoint`:return`Point`;case`LineString`:case`MultiLineString`:return`LineString`;case`Polygon`:case`MultiPolygon`:return`Polygon`;case`Circle`:return`Circle`;default:throw Error(`Invalid type: `+e)}}const sW=[0,0,0,0],cW=[],lW={MODIFYSTART:`modifystart`,MODIFYEND:`modifyend`};function uW(e,t,n){let r;switch(t){case`LineString`:r=e;break;case`MultiLineString`:case`Polygon`:r=e[n[0]];break;case`MultiPolygon`:r=e[n[1]][n[0]]}return r}var dW=class extends ZE{constructor(e,t,n){super(e),this.features=t,this.mapBrowserEvent=n}},fW=class extends CR{constructor(e){if(super(e),this.handleSourceAdd_=this.handleSourceAdd_.bind(this),this.handleSourceRemove_=this.handleSourceRemove_.bind(this),this.handleExternalCollectionAdd_=this.handleExternalCollectionAdd_.bind(this),this.handleExternalCollectionRemove_=this.handleExternalCollectionRemove_.bind(this),this.handleFeatureChange_=this.handleFeatureChange_.bind(this),this.on,this.once,this.un,this.condition_=e.condition?e.condition:SR,this.defaultDeleteCondition_=function(e){return lR(e)&&gR(e)},this.deleteCondition_=e.deleteCondition?e.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:pR,this.vertexFeature_=null,this.vertexSegments_=null,this.lastCoordinate_=[0,0],this.ignoreNextSingleClick_=!1,this.featuresBeingModified_=null,this.rBush_=new cP,this.pixelTolerance_=e.pixelTolerance===void 0?10:e.pixelTolerance,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new RL({source:new pP({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:gW(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_.bind(this),LineString:this.writeLineStringGeometry_.bind(this),LinearRing:this.writeLineStringGeometry_.bind(this),Polygon:this.writePolygonGeometry_.bind(this),MultiPoint:this.writeMultiPointGeometry_.bind(this),MultiLineString:this.writeMultiLineStringGeometry_.bind(this),MultiPolygon:this.writeMultiPolygonGeometry_.bind(this),Circle:this.writeCircleGeometry_.bind(this),GeometryCollection:this.writeGeometryCollectionGeometry_.bind(this)},this.source_=null,this.traceSource_=e.traceSource||e.source||null,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSegments_=null,this.hitDetection_=null,this.filterFunctionWasSupplied_=e.filter!=null,this.filter_=e.filter?e.filter:()=>!0,this.coordinatesEqual_=e.sharedVerticesEqual?e.sharedVerticesEqual:EO,!(e.features||e.source))throw Error(`The modify interaction requires features collection or a source`);let t;e.features?(t=e.features.getArray(),e.features.addEventListener(kE.ADD,this.handleExternalCollectionAdd_),e.features.addEventListener(kE.REMOVE,this.handleExternalCollectionRemove_),this.featuresCollection_=e.features):e.source&&(t=e.source.getFeatures(),e.source.addEventListener(dP.ADDFEATURE,this.handleSourceAdd_),e.source.addEventListener(dP.REMOVEFEATURE,this.handleSourceRemove_),this.source_=e.source),t.forEach(e=>{e.addEventListener(IE.CHANGE,this.handleFeatureChange_),this.filterFunctionWasSupplied_&&e.addEventListener(AE.PROPERTYCHANGE,this.handleFeatureChange_)}),e.hitDetection&&(this.hitDetection_=e.hitDetection),this.features_=[],t.filter(this.filter_).forEach(e=>this.addFeature_(e)),this.lastPointerEvent_=null,this.delta_=[0,0],this.snapToPointer_=e.snapToPointer===void 0?!this.hitDetection_:e.snapToPointer}setTrace(e){let t;t=e?e===!0?pR:e:hR,this.traceCondition_=t}addFeature_(e){this.features_.push(e);let t=e.getGeometry();if(t){let n=this.SEGMENT_WRITERS_[t.getType()];n&&n(e,t)}let n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastCoordinate_)}willModifyFeatures_(e,t){if(!this.featuresBeingModified_){this.featuresBeingModified_=new sD;let n=this.featuresBeingModified_.getArray();for(let e=0,r=t.length;e<r;++e){let r=t[e].feature;r&&!n.includes(r)&&this.featuresBeingModified_.push(r)}this.featuresBeingModified_.getLength()===0?this.featuresBeingModified_=null:this.dispatchEvent(new dW(lW.MODIFYSTART,this.featuresBeingModified_,e))}}removeFeature_(e){let t=this.features_.indexOf(e);this.features_.splice(t,1),this.removeFeatureSegmentData_(e),this.vertexFeature_&&this.features_.length===0&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)}removeFeatureSegmentData_(e){let t=this.rBush_,n=[];t.forEach(function(t){e===t.feature&&n.push(t)});for(let e=n.length-1;e>=0;--e){let r=n[e];for(let e=this.dragSegments_.length-1;e>=0;--e)this.dragSegments_[e][0]===r&&this.dragSegments_.splice(e,1);t.remove(r)}}setActive(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),super.setActive(e)}setMap(e){this.overlay_.setMap(e),super.setMap(e)}getOverlay(){return this.overlay_}handleSourceAdd_(e){let t=e.feature;t&&this.externalAddFeatureHandler_(t)}handleSourceRemove_(e){let t=e.feature;t&&this.externalRemoveFeatureHandler_(t)}handleExternalCollectionAdd_(e){let t=e.element;t&&this.externalAddFeatureHandler_(t)}handleExternalCollectionRemove_(e){let t=e.element;t&&this.externalRemoveFeatureHandler_(t)}externalAddFeatureHandler_(e){e.addEventListener(IE.CHANGE,this.handleFeatureChange_),this.filterFunctionWasSupplied_&&e.addEventListener(AE.PROPERTYCHANGE,this.handleFeatureChange_),this.filter_(e)&&this.addFeature_(e)}externalRemoveFeatureHandler_(e){e.removeEventListener(IE.CHANGE,this.handleFeatureChange_),this.filterFunctionWasSupplied_&&e.removeEventListener(AE.PROPERTYCHANGE,this.handleFeatureChange_),this.removeFeature_(e)}handleFeatureChange_(e){if(!this.changingFeature_){let t=e.target;this.removeFeature_(t),this.filter_(t)&&this.addFeature_(t)}}writePointGeometry_(e,t){let n=t.getCoordinates(),r={feature:e,geometry:t,segment:[n,n]};this.rBush_.insert(t.getExtent(),r)}writeMultiPointGeometry_(e,t){let n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){let i=n[r],a={feature:e,geometry:t,depth:[r],index:r,segment:[i,i]};this.rBush_.insert(t.getExtent(),a)}}writeLineStringGeometry_(e,t){let n=t.getCoordinates();for(let r=0,i=n.length-1;r<i;++r){let i=n.slice(r,r+2),a={feature:e,geometry:t,index:r,segment:i};this.rBush_.insert(fD(i),a)}}writeMultiLineStringGeometry_(e,t){let n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){let i=n[r];for(let n=0,a=i.length-1;n<a;++n){let a=i.slice(n,n+2),o={feature:e,geometry:t,depth:[r],index:n,segment:a};this.rBush_.insert(fD(a),o)}}}writePolygonGeometry_(e,t){let n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){let i=n[r];for(let n=0,a=i.length-1;n<a;++n){let a=i.slice(n,n+2),o={feature:e,geometry:t,depth:[r],index:n,segment:a};this.rBush_.insert(fD(a),o)}}}writeMultiPolygonGeometry_(e,t){let n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){let i=n[r];for(let n=0,a=i.length;n<a;++n){let a=i[n];for(let i=0,o=a.length-1;i<o;++i){let o=a.slice(i,i+2),s={feature:e,geometry:t,depth:[n,r],index:i,segment:o};this.rBush_.insert(fD(o),s)}}}}writeCircleGeometry_(e,t){let n=t.getCenter(),r={feature:e,geometry:t,index:0,segment:[n,n]},i={feature:e,geometry:t,index:1,segment:[n,n]},a=[r,i];r.featureSegments=a,i.featureSegments=a,this.rBush_.insert(wD(n),r);let o=t,s=Kk();if(s&&this.getMap()){let e=this.getMap().getView().getProjection();o=o.clone().transform(s,e),o=xj(o).transform(e,s)}this.rBush_.insert(o.getExtent(),i)}writeGeometryCollectionGeometry_(e,t){let n=t.getGeometriesArray();for(let t=0;t<n.length;++t){let r=n[t],i=this.SEGMENT_WRITERS_[r.getType()];i(e,r)}}createOrUpdateVertexFeature_(e,t,n,r){let i=this.vertexFeature_;return i?i.getGeometry().setCoordinates(e):(i=new lD(new lj(e)),this.vertexFeature_=i,this.overlay_.getSource().addFeature(i)),i.set(`features`,t),i.set(`geometries`,n),i.set(`existing`,r),i}handleEvent(e){if(!e.originalEvent)return!0;this.lastPointerEvent_=e;let t;return!e.map.getView().getInteracting()&&e.type==WL.POINTERMOVE&&!this.handlingDownUpSequence&&this.handlePointerMove_(e),this.vertexFeature_&&this.deleteCondition_(e)&&(t=e.type!=WL.SINGLECLICK||!this.ignoreNextSingleClick_?this.removePoint():!0),e.type==WL.SINGLECLICK&&(this.ignoreNextSingleClick_=!1),super.handleEvent(e)&&!t}findInsertVerticesAndUpdateDragSegments_(e){if(this.handlePointerAtPixel_(e),this.dragSegments_.length=0,this.featuresBeingModified_=null,!this.vertexFeature_)return;let t=this.getMap().getView().getProjection(),n=[],r=this.vertexFeature_.getGeometry().getCoordinates(),i=fD([r]),a=this.rBush_.getInExtent(i),o={};a.sort(pW);for(let i=0,s=a.length;i<s;++i){let s=a[i],c=s.segment,l=X(s.geometry),u=s.depth;if(u&&(l+=`-`+u.join(`-`)),o[l]||(o[l]=[,,]),s.geometry.getType()===`Circle`&&s.index===1){let n=hW(e,s,t);this.coordinatesEqual_(n,r)&&!o[l][0]&&(this.dragSegments_.push([s,0]),o[l][0]=s);continue}if(this.coordinatesEqual_(c[0],r)&&!o[l][0]){this.dragSegments_.push([s,0]),o[l][0]=s;continue}if(this.coordinatesEqual_(c[1],r)&&!o[l][1]){if(o[l][0]&&o[l][0].index===0){let e=s.geometry.getCoordinates();switch(s.geometry.getType()){case`LineString`:case`MultiLineString`:continue;case`MultiPolygon`:e=e[u[1]];case`Polygon`:if(s.index!==e[u[0]].length-2)continue}}this.dragSegments_.push([s,1]),o[l][1]=s;continue}X(c)in this.vertexSegments_&&!o[l][0]&&!o[l][1]&&n.push(s)}return n}deactivateTrace_(){this.traceState_={active:!1}}tracePassesVertex_(e,t){if(e===t)return!1;if(e<t){let n=Math.ceil(e),r=Math.floor(t);return r===t&&--r,n<=r}let n=Math.floor(e),r=Math.ceil(t);return r===t&&(r+=1),n>=r}updateTrace_(e){let t=this.traceState_;if(!t.active||t.targetIndex===-1&&AO(e.map.getPixelFromCoordinate(t.startCoord),e.pixel)<this.pixelTolerance_)return;let n=JU(e.coordinate,t,e.map,this.pixelTolerance_);if(t.targetIndex===-1&&Math.sqrt(n.closestTargetDistance)/e.map.getView().getResolution()>this.pixelTolerance_)return;let r=!0;if(t.targetIndex===-1){let e=t.targets[n.index];r=this.tracePassesVertex_(e.startIndex,n.endIndex)}if(r){if(t.targetIndex!==n.index){if(t.targetIndex!==-1){let e=t.targets[t.targetIndex];this.removeTracedCoordinates_(e.startIndex,e.endIndex)}let e=t.targets[n.index];this.addTracedCoordinates_(e,e.startIndex,n.endIndex)}else{let e=t.targets[t.targetIndex];this.addOrRemoveTracedCoordinates_(e,n.endIndex)}t.targetIndex=n.index,t.targets[t.targetIndex].endIndex=n.endIndex}let i=t.targets[n.index],a=KU(i.coordinates,n.endIndex);for(let e of this.dragSegments_)this.updateGeometry_(a.slice(),e);return a}getTraceCandidates_(e){let t=this.getMap(),n=this.pixelTolerance_,r=fD([t.getCoordinateFromPixel([e.pixel[0]-n,e.pixel[1]+n]),t.getCoordinateFromPixel([e.pixel[0]+n,e.pixel[1]-n])]);return this.traceSource_.getFeaturesInExtent(r)}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active){this.deactivateTrace_(),this.traceSegments_=null;return}let t=this.getTraceCandidates_(e);if(t.length===0)return;let n=YU(e.coordinate,t);n.length&&(this.traceState_={active:!0,startCoord:e.coordinate.slice(),targets:n,targetIndex:-1})}addOrRemoveTracedCoordinates_(e,t){let n=e.startIndex<=e.endIndex;n===e.startIndex<=t?n&&t>e.endIndex||!n&&t<e.endIndex?this.addTracedCoordinates_(e,e.endIndex,t):(n&&t<e.endIndex||!n&&t>e.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}shiftTracedSegmentIndices_(e,t,n){for(let r of this.dragSegments_){let i=r[0];i!==e&&i.geometry===e.geometry&&(i.depth===void 0||e.depth===void 0||WE(i.depth,e.depth))&&i.index>=t&&(i.index+=n)}}removeTracedCoordinates_(e,t){if(e===t)return;let n=0;if(e<t){let r=Math.ceil(e),i=Math.floor(t);i===t&&--i,n=i-r+1}else{let r=Math.floor(e),i=Math.ceil(t);i===t&&(i+=1),n=r-i+1}if(n>0)for(let e of this.traceSegments_){let t=e[0],r=t.geometry,i=e[1],a=e[0].index+1;i===1&&(a-=n);let o=r.getCoordinates();uW(o,r.getType(),t.depth).splice(a,n),this.setGeometryCoordinates_(r,o),this.shiftTracedSegmentIndices_(t,a+n,-n),i===1&&(t.index-=n)}}addTracedCoordinates_(e,t,n){if(t===n)return;let r=[];if(t<n){let i=Math.ceil(t),a=Math.floor(n);a===n&&--a;for(let t=i;t<=a;++t)r.push(GU(e.coordinates,t))}else{let i=Math.floor(t),a=Math.ceil(n);a===n&&(a+=1);for(let t=i;t>=a;--t)r.push(GU(e.coordinates,t))}if(r.length)for(let e of this.traceSegments_){let t=e[0],n=t.geometry,i=e[1],a=t.index+1;i===0&&r.reverse();let o=n.getCoordinates();uW(o,n.getType(),t.depth).splice(a,0,...r),this.setGeometryCoordinates_(n,o),this.shiftTracedSegmentIndices_(t,a,r.length),i===1&&(t.index+=r.length)}}updateGeometry_(e,t){let n=t[0],r=n.depth,i,a=n.segment,o=n.geometry,s=t[1],c=o.getStride();for(let t=2;t<c;++t)e[t]=a[s][t];switch(e.length=c,o.getType()){case`Point`:i=e,a[0]=e,a[1]=e;break;case`MultiPoint`:i=o.getCoordinates(),i[n.index]=e,a[0]=e,a[1]=e;break;case`LineString`:i=o.getCoordinates(),i[n.index+s]=e,a[s]=e;break;case`MultiLineString`:i=o.getCoordinates(),i[r[0]][n.index+s]=e,a[s]=e;break;case`Polygon`:{i=o.getCoordinates();let t=i[r[0]],c=n.index+s;t[c][0]===e[0]&&t[c][1]===e[1]?i=null:(t[c]=e,c===0?t[t.length-1]=e:c===t.length-1&&(t[0]=e)),a[s]=e;break}case`MultiPolygon`:{i=o.getCoordinates();let t=i[r[1]][r[0]],c=n.index+s;t[c][0]===e[0]&&t[c][1]===e[1]?i=null:(t[c]=e,c===0?t[t.length-1]=e:c===t.length-1&&(t[0]=e)),a[s]=e;break}case`Circle`:let t=o;if(a[0]=e,a[1]=e,n.index===0)this.changingFeature_=!0,t.setCenter(e),this.changingFeature_=!1;else{this.changingFeature_=!0;let n=this.getMap().getView().getProjection(),r=AO(Jk(t.getCenter(),n),Jk(e,n)),i=Kk();if(i){let e=t.clone().transform(i,n);e.setRadius(r),r=e.transform(n,i).getRadius()}t.setRadius(r),this.changingFeature_=!1}}i&&this.setGeometryCoordinates_(o,i)}handleDragEvent(e){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(e,this.dragSegments_.map(([e])=>e));let t=[e.coordinate[0]+this.delta_[0],e.coordinate[1]+this.delta_[1]],n=[],r=[],i=this.traceState_.active&&!this.traceSegments_?this.traceState_.startCoord:null;if(i){this.traceSegments_=[];for(let t of this.dragSegments_){let n=t[0];AO(wO(i,n.segment),i)/e.map.getView().getResolution()<1&&this.traceSegments_.push(t)}this.traceSegments_.length>1&&(this.deactivateTrace_(),this.traceSegments_=null)}for(let e=0,i=this.dragSegments_.length;e<i;++e){let i=this.dragSegments_[e],a=i[0],o=a.feature;n.includes(o)||n.push(o);let s=a.geometry;r.includes(s)||r.push(s),this.updateGeometry_(t,i)}let a=this.updateTrace_(e);this.createOrUpdateVertexFeature_(a||t,n,r,!0)}handleDownEvent(e){if(!this.condition_(e))return!1;let t=e.coordinate,n=this.findInsertVerticesAndUpdateDragSegments_(t);if(n?.length&&this.insertVertexCondition_(e)&&(this.willModifyFeatures_(e,n),this.vertexFeature_)){let e=this.vertexFeature_.getGeometry().getCoordinates();for(let t=n.length-1;t>=0;--t)this.insertVertex_(n[t],e);this.ignoreNextSingleClick_=!0}return!!this.vertexFeature_}handleUpEvent(e){let t=this.traceState_.active?new Set:null;for(let n=this.dragSegments_.length-1;n>=0;--n){let r=this.dragSegments_[n][0];t&&t.add(r.feature);let i=r.geometry;if(i.getType()===`Circle`){let t=i,n=t.getCenter(),a=r.featureSegments[0],o=r.featureSegments[1];a.segment[0]=n,a.segment[1]=n,o.segment[0]=n,o.segment[1]=n,this.rBush_.update(wD(n),a);let s=t,c=Kk();if(c){let t=e.map.getView().getProjection();s=s.clone().transform(c,t),s=xj(s).transform(t,c)}this.rBush_.update(s.getExtent(),o)}else this.rBush_.update(fD(r.segment),r)}if(t)for(let e of t)this.removeFeature_(e),this.filter_(e)&&this.addFeature_(e);return this.featuresBeingModified_&&=(this.toggleTraceState_(e),this.dispatchEvent(new dW(lW.MODIFYEND,this.featuresBeingModified_,e)),null),!1}handlePointerMove_(e){this.lastCoordinate_=e.coordinate,this.handlePointerAtPixel_(this.lastCoordinate_)}handlePointerAtPixel_(e){let t=this.getMap(),n=t.getPixelFromCoordinate(e),r=t.getView().getProjection(),i=function(t,n){return mW(e,t,r)-mW(e,n,r)},a,o;if(this.hitDetection_){let e=typeof this.hitDetection_==`object`?e=>e===this.hitDetection_:void 0;t.forEachFeatureAtPixel(n,(e,t,n)=>{n&&n.getType()===`Point`&&(n=new lj(qk(n.getCoordinates(),r)));let i=n||e.getGeometry();if(i&&i.getType()===`Point`&&e instanceof lD&&this.features_.includes(e)){o=i;let t=e.getGeometry().getFlatCoordinates().slice(0,2);a=[{feature:e,geometry:o,segment:[t,t]}]}return!0},{layerFilter:e})}if(!a){let n=Yk(mD(Xk(wD(e,sW),r),t.getView().getResolution()*this.pixelTolerance_,sW),r);a=this.rBush_.getInExtent(n)}if(a&&a.length>0){let s=a.sort(i)[0],c=s.segment,l=hW(e,s,r),u=t.getPixelFromCoordinate(l),d=AO(n,u);if(o||d<=this.pixelTolerance_){let n={};if(n[X(c)]=!0,this.snapToPointer_||(this.delta_[0]=l[0]-e[0],this.delta_[1]=l[1]-e[1]),s.geometry.getType()===`Circle`&&s.index===1)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(l,[s.feature],[s.geometry],this.snappedToVertex_);else{let e=t.getPixelFromCoordinate(c[0]),r=t.getPixelFromCoordinate(c[1]),i=kO(u,e),o=kO(u,r);if(d=Math.sqrt(Math.min(i,o)),this.snappedToVertex_=d<=this.pixelTolerance_,!this.snappedToVertex_&&!this.insertVertexCondition_(this.lastPointerEvent_)){this.vertexFeature_&&=(this.overlay_.getSource().removeFeature(this.vertexFeature_),null);return}this.snappedToVertex_&&(l=i>o?c[1]:c[0]),this.createOrUpdateVertexFeature_(l,[s.feature],[s.geometry],this.snappedToVertex_);let f={};f[X(s.geometry)]=!0;for(let e=1,t=a.length;e<t;++e){let t=a[e].segment;if(this.coordinatesEqual_(c[0],t[0])&&this.coordinatesEqual_(c[1],t[1])||this.coordinatesEqual_(c[0],t[1])&&this.coordinatesEqual_(c[1],t[0])){let r=X(a[e].geometry);r in f||(f[r]=!0,n[X(t)]=!0)}else break}}this.vertexSegments_=n;return}}this.vertexFeature_&&=(this.overlay_.getSource().removeFeature(this.vertexFeature_),null)}insertVertex_(e,t){let n=e.segment,r=e.feature,i=e.geometry,a=e.depth,o=e.index,s;for(;t.length<i.getStride();)t.push(0);switch(i.getType()){case`MultiLineString`:s=i.getCoordinates(),s[a[0]].splice(o+1,0,t);break;case`Polygon`:s=i.getCoordinates(),s[a[0]].splice(o+1,0,t);break;case`MultiPolygon`:s=i.getCoordinates(),s[a[1]][a[0]].splice(o+1,0,t);break;case`LineString`:s=i.getCoordinates(),s.splice(o+1,0,t);break;default:return!1}this.setGeometryCoordinates_(i,s);let c=this.rBush_;c.remove(e),this.updateSegmentIndices_(i,o,a,1);let l={segment:[n[0],t],feature:r,geometry:i,depth:a,index:o};c.insert(fD(l.segment),l),this.dragSegments_.push([l,1]);let u={segment:[t,n[1]],feature:r,geometry:i,depth:a,index:o+1};return c.insert(fD(u.segment),u),this.dragSegments_.push([u,0]),!0}updatePointer_(e){return e&&this.findInsertVerticesAndUpdateDragSegments_(e),this.vertexFeature_?.getGeometry().getCoordinates()}getPoint(){let e=this.vertexFeature_?.getGeometry().getCoordinates();return e?qk(e,this.getMap().getView().getProjection()):null}canRemovePoint(){if(!this.vertexFeature_||this.vertexFeature_.get(`geometries`).every(e=>e.getType()===`Circle`||e.getType().endsWith(`Point`)))return!1;let e=this.vertexFeature_.getGeometry().getCoordinates();return this.rBush_.getInExtent(fD([e])).some(({segment:t})=>this.coordinatesEqual_(t[0],e)||this.coordinatesEqual_(t[1],e))}removePoint(e){if(e&&(e=Jk(e,this.getMap().getView().getProjection()),this.updatePointer_(e)),!this.lastPointerEvent_||this.lastPointerEvent_&&this.lastPointerEvent_.type!=WL.POINTERDRAG){let e=this.lastPointerEvent_;this.willModifyFeatures_(e,this.dragSegments_.map(([e])=>e));let t=this.removeVertex_();return this.featuresBeingModified_&&this.dispatchEvent(new dW(lW.MODIFYEND,this.featuresBeingModified_,e)),this.featuresBeingModified_=null,t}return!1}removeVertex_(){let e=this.dragSegments_,t={},n=!1,r,i,a,o,s,c,l,u,d,f,p;for(s=e.length-1;s>=0;--s)a=e[s],f=a[0],p=X(f.feature),f.depth&&(p+=`-`+f.depth.join(`-`)),p in t||(t[p]={}),a[1]===0?(t[p].right=f,t[p].index=f.index):a[1]==1&&(t[p].left=f,t[p].index=f.index+1);for(p in t){switch(d=t[p].right,l=t[p].left,c=t[p].index,u=c-1,f=l===void 0?d:l,u<0&&(u=0),o=f.geometry,i=o.getCoordinates(),r=i,n=!1,o.getType()){case`MultiLineString`:i[f.depth[0]].length>2&&(i[f.depth[0]].splice(c,1),n=!0);break;case`LineString`:i.length>2&&(i.splice(c,1),n=!0);break;case`MultiPolygon`:r=r[f.depth[1]];case`Polygon`:r=r[f.depth[0]],r.length>4&&(c==r.length-1&&(c=0),r.splice(c,1),n=!0,c===0&&(r.pop(),r.push(r[0]),u=r.length-1))}if(n){this.setGeometryCoordinates_(o,i);let t=[];if(l!==void 0&&(this.rBush_.remove(l),t.push(l.segment[0])),d!==void 0&&(this.rBush_.remove(d),t.push(d.segment[1])),l!==void 0&&d!==void 0){let e={depth:f.depth,feature:f.feature,geometry:f.geometry,index:u,segment:t};this.rBush_.insert(fD(e.segment),e)}this.updateSegmentIndices_(o,c,f.depth,-1),this.vertexFeature_&&=(this.overlay_.getSource().removeFeature(this.vertexFeature_),null),e.length=0}}return n}canInsertPoint(){if(!this.vertexFeature_||this.vertexFeature_.get(`geometries`).every(e=>e.getType()===`Circle`||e.getType().endsWith(`Point`)))return!1;let e=this.vertexFeature_.getGeometry().getCoordinates();return this.rBush_.getInExtent(fD([e])).some(({segment:t})=>!(this.coordinatesEqual_(t[0],e)||this.coordinatesEqual_(t[1],e)))}insertPoint(e){let t=e?Jk(e,this.getMap().getView().getProjection()):this.vertexFeature_?.getGeometry().getCoordinates();return t?this.findInsertVerticesAndUpdateDragSegments_(t).reduce((e,n)=>e||this.insertVertex_(n,t),!1):!1}setGeometryCoordinates_(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1}updateSegmentIndices_(e,t,n,r){this.rBush_.forEachInExtent(e.getExtent(),function(i){i.geometry===e&&(n===void 0||i.depth===void 0||WE(i.depth,n))&&i.index>t&&(i.index+=r)})}disposeInternal(){if(super.disposeInternal(),this.featuresCollection_){this.featuresCollection_.removeEventListener(kE.ADD,this.handleExternalCollectionAdd_),this.featuresCollection_.removeEventListener(kE.REMOVE,this.handleExternalCollectionRemove_);for(let e of this.featuresCollection_.getArray())e.removeEventListener(IE.CHANGE,this.handleFeatureChange_),this.filterFunctionWasSupplied_&&e.removeEventListener(AE.PROPERTYCHANGE,this.handleFeatureChange_)}else if(this.source_){this.source_.removeEventListener(dP.ADDFEATURE,this.handleSourceAdd_),this.source_.removeEventListener(dP.REMOVEFEATURE,this.handleSourceRemove_);for(let e of this.source_.getFeatures())e.removeEventListener(IE.CHANGE,this.handleFeatureChange_),this.filterFunctionWasSupplied_&&e.removeEventListener(AE.PROPERTYCHANGE,this.handleFeatureChange_)}}};function pW(e,t){return e.index-t.index}function mW(e,t,n){let r=t.geometry;if(r.getType()===`Circle`){let i=r;if(t.index===1){let t=Kk();t&&(i=i.clone().transform(t,n));let r=kO(i.getCenter(),Jk(e,n)),a=Math.sqrt(r)-i.getRadius();return a*a}}let i=Jk(e,n);return cW[0]=Jk(t.segment[0],n),cW[1]=Jk(t.segment[1],n),jO(i,cW)}function hW(e,t,n){let r=t.geometry;if(r.getType()===`Circle`&&t.index===1){let t=r,i=Kk();return i&&(t=t.clone().transform(i,n)),qk(t.getClosestPoint(Jk(e,n)),n)}let i=Jk(e,n);return cW[0]=Jk(t.segment[0],n),cW[1]=Jk(t.segment[1],n),qk(wO(i,cW),n)}function gW(){let e=EP();return function(t,n){return e.Point}}const _W={SNAP:`snap`,UNSNAP:`unsnap`};var vW=class extends ZE{constructor(e,t){super(e),this.vertex=t.vertex,this.vertexPixel=t.vertexPixel,this.feature=t.feature,this.segment=t.segment}};const yW={Circle(e,t){let n=e,r=Kk();r&&(n=n.clone().transform(r,t));let i=xj(n);return r&&i.transform(t,r),yW.Polygon(i)},GeometryCollection(e,t){let n=[],r=e.getGeometriesArray();for(let e=0;e<r.length;++e){let i=this[r[e].getType()];i&&n.push(i(r[e],t))}return n.flat()},LineString(e){let t=[],n=e.getFlatCoordinates(),r=e.getStride();for(let e=0,i=n.length-r;e<i;e+=r)t.push([n.slice(e,e+2),n.slice(e+r,e+r+2)]);return t},MultiLineString(e){let t=[],n=e.getFlatCoordinates(),r=e.getStride(),i=e.getEnds(),a=0;for(let e=0,o=i.length;e<o;++e){let o=i[e];for(let e=a,i=o-r;e<i;e+=r)t.push([n.slice(e,e+2),n.slice(e+r,e+r+2)]);a=o}return t},MultiPoint(e){let t=[],n=e.getFlatCoordinates(),r=e.getStride();for(let e=0,i=n.length;e<i;e+=r)t.push([n.slice(e,e+2)]);return t},MultiPolygon(e){let t=[],n=e.getFlatCoordinates(),r=e.getStride(),i=e.getEndss(),a=0;for(let e=0,o=i.length;e<o;++e){let o=i[e];for(let e=0,i=o.length;e<i;++e){let i=o[e];for(let e=a,o=i-r;e<o;e+=r)t.push([n.slice(e,e+2),n.slice(e+r,e+r+2)]);a=i}}return t},Point(e){return[[e.getFlatCoordinates().slice(0,2)]]},Polygon(e){let t=[],n=e.getFlatCoordinates(),r=e.getStride(),i=e.getEnds(),a=0;for(let e=0,o=i.length;e<o;++e){let o=i[e];for(let e=a,i=o-r;e<i;e+=r)t.push([n.slice(e,e+2),n.slice(e+r,e+r+2)]);a=o}return t}};function bW(e){return e.feature?e.feature:e.element?e.element:null}const xW=[],SW=[],CW=[];var wW=class extends CR{constructor(e){e||={},super({handleDownEvent:KE,stopDown:qE}),this.on,this.once,this.un,this.source_=e.source?e.source:null,this.vertex_=e.vertex===void 0||e.vertex,this.edge_=e.edge===void 0||e.edge,this.intersection_=e.intersection!==void 0&&e.intersection,this.features_=e.features?e.features:null,this.featuresListenerKeys_=[],this.featureChangeListenerKeys_={},this.indexedFeaturesExtents_={},this.pendingFeatures_={},this.pixelTolerance_=e.pixelTolerance===void 0?10:e.pixelTolerance,this.rBush_=new cP,this.snapped_=null,this.segmenters_=Object.assign({},yW,e.segmenters)}addFeature(e,t){t=t===void 0||t;let n=X(e),r=e.getGeometry();if(r){let t=this.segmenters_[r.getType()];if(t){this.indexedFeaturesExtents_[n]=r.getExtent(xD());let i=t.call(this.segmenters_,r,this.getMap().getView().getProjection()),a=i.length;for(let t=0;t<a;++t){let n=i[t];SW[t]=fD(n),CW[t]={feature:e,segment:n}}if(this.intersection_)for(let t=0,n=i.length;t<n;++t){let n=i[t];if(n.length===1)continue;let r=SW[t];for(let o=0,s=t-1;o<s;++o){let t=i[o];if(t.length===1||!KD(r,SW[o]))continue;let s=XA(n,t);if(!s)continue;let c=[s];SW[a]=fD(c),CW[a++]={feature:e,intersectionFeature:e,segment:c}}let o=this.rBush_.getInExtent(SW[t]);for(let t=0,r=o.length;t<r;++t){let r=o[t].segment;if(r.length===1)continue;let i=XA(n,r);if(!i)continue;let s=[i];SW[a]=fD(s),CW[a++]={feature:e,intersectionFeature:o[t].feature,segment:s}}}a===1?this.rBush_.insert(SW[0],CW[0]):(SW.length=a,CW.length=a,this.rBush_.load(SW,CW))}}t&&(this.featureChangeListenerKeys_[n]&&FE(this.featureChangeListenerKeys_[n]),this.featureChangeListenerKeys_[n]=NE(e,IE.CHANGE,this.handleFeatureChange_,this))}getFeatures_(){let e;return this.features_?e=this.features_:this.source_&&(e=this.source_.getFeatures()),e}areSnapDataEqual_(e,t){return e.segment===t.segment&&e.feature===t.feature}handleEvent(e){let t=this.snapTo(e.pixel,e.coordinate,e.map);return t?(e.coordinate=t.vertex.slice(0,2),e.pixel=t.vertexPixel,this.snapped_&&!this.areSnapDataEqual_(this.snapped_,t)&&this.dispatchEvent(new vW(_W.UNSNAP,this.snapped_)),this.snapped_={vertex:e.coordinate,vertexPixel:e.pixel,feature:t.feature,segment:t.segment},this.dispatchEvent(new vW(_W.SNAP,this.snapped_))):this.snapped_&&=(this.dispatchEvent(new vW(_W.UNSNAP,this.snapped_)),null),super.handleEvent(e)}handleFeatureAdd_(e){let t=bW(e);t&&this.addFeature(t)}handleFeatureRemove_(e){let t=bW(e);t&&(this.removeFeature(t),delete this.pendingFeatures_[X(t)])}handleFeatureChange_(e){let t=e.target;this.handlingDownUpSequence?this.pendingFeatures_[X(t)]=t:this.updateFeature_(t)}handleUpEvent(e){let t=Object.values(this.pendingFeatures_);if(t.length){for(let e of t)this.updateFeature_(e);jE(this.pendingFeatures_)}return!1}removeFeature(e,t){let n=t===void 0||t,r=X(e),i=this.indexedFeaturesExtents_[r];if(i){let t=this.rBush_;t.getInExtent(i).forEach(n=>{(e===n.feature||e===n.intersectionFeature)&&t.remove(n)})}n&&(FE(this.featureChangeListenerKeys_[r]),delete this.featureChangeListenerKeys_[r])}setMap(e){let t=this.getMap(),n=this.featuresListenerKeys_,r=this.getFeatures_();if(Array.isArray(r)||(r=r.getArray()),t&&(n.forEach(FE),n.length=0,this.rBush_.clear(),Object.values(this.featureChangeListenerKeys_).forEach(FE),this.featureChangeListenerKeys_={}),super.setMap(e),e){this.features_?n.push(NE(this.features_,kE.ADD,this.handleFeatureAdd_,this),NE(this.features_,kE.REMOVE,this.handleFeatureRemove_,this)):this.source_&&n.push(NE(this.source_,dP.ADDFEATURE,this.handleFeatureAdd_,this),NE(this.source_,dP.REMOVEFEATURE,this.handleFeatureRemove_,this));for(let e of r)this.addFeature(e)}}snapTo(e,t,n){let r=n.getView().getProjection(),i=Jk(t,r),a=Yk(mD(fD([i]),n.getView().getResolution()*this.pixelTolerance_),r),o=this.rBush_.getInExtent(a),s=o.length;if(s===0)return null;let c,l=1/0,u,d=null,f=this.pixelTolerance_*this.pixelTolerance_,p=()=>{if(!c)return null;let t=n.getPixelFromCoordinate(c);return kO(e,t)>f?null:{vertex:c,vertexPixel:[Math.round(t[0]),Math.round(t[1])],feature:u,segment:d}};if(this.vertex_||this.intersection_){for(let e=0;e<s;++e){let t=o[e];if(t.feature.getGeometry().getType()!==`Circle`)for(let e of t.segment){let n=kO(i,Jk(e,r));n<l&&(this.intersection_&&t.intersectionFeature||this.vertex_&&!t.intersectionFeature)&&(c=e,l=n,u=t.feature)}}let e=p();if(e)return e}if(this.edge_){for(let e=0;e<s;++e){let t=null,n=o[e];if(n.feature.getGeometry().getType()===`Circle`){let e=n.feature.getGeometry(),a=Kk();a&&(e=e.clone().transform(a,r)),t=CO(i,e)}else{let[e,a]=n.segment;a&&(xW[0]=Jk(e,r),xW[1]=Jk(a,r),t=wO(i,xW))}if(t){let e=kO(i,t);e<l&&(c=qk(t,r),d=n.feature.getGeometry().getType()===`Circle`?null:n.segment,l=e,u=n.feature)}}let e=p();if(e)return e}return null}updateFeature_(e){this.removeFeature(e,!1),this.addFeature(e,!1)}},TW=class{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=lD,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let n=t.dataProjection?Nk(t.dataProjection):this.readProjection(e);t.extent&&n&&n.getUnits()===`tile-pixels`&&(n=Nk(n),n.setWorldExtent(t.extent)),t={dataProjection:n,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return tD()}readFeature(e,t){return tD()}readFeatures(e,t){return tD()}readGeometry(e,t){return tD()}readProjection(e){return tD()}writeFeature(e,t){return tD()}writeFeatures(e,t){return tD()}writeGeometry(e,t){return tD()}};function EW(e,t,n){let r=n?Nk(n.featureProjection):null,i=n?Nk(n.dataProjection):null,a=e;if(r&&i&&!Vk(r,i)){t&&(a=e.clone());let n=t?r:i,o=t?i:r;n.getUnits()===`tile-pixels`?a.transform(n,o):a.applyTransform(Wk(n,o))}if(t&&n&&n.decimals!==void 0){let t=10**n.decimals;a===e&&(a=e.clone()),a.applyTransform(function(e){for(let n=0,r=e.length;n<r;++n)e[n]=Math.round(e[n]*t)/t;return e})}return a}const DW={Point:lj,LineString:iM,Polygon:yj,MultiPoint:zN,MultiLineString:RN,MultiPolygon:VN};function OW(e,t,n){return Array.isArray(t[0])?(hj(e,0,t,n)||(e=e.slice(),_j(e,0,t,n)),e):(mj(e,0,t,n)||(e=e.slice(),gj(e,0,t,n)),e)}function kW(e,t){let n=e.geometry;if(!n)return[];if(Array.isArray(n))return n.map(t=>kW({...e,geometry:t})).flat();let r=n.type===`MultiPolygon`?`Polygon`:n.type;if(r===`GeometryCollection`||r===`Circle`)throw Error(`Unsupported geometry type: `+r);let i=n.layout.length;return EW(new UN(r,r===`Polygon`?OW(n.flatCoordinates,n.ends,i):n.flatCoordinates,n.ends?.flat(),i,e.properties||{},e.id).enableSimplifyTransformed(),!1,t)}function AW(e,t){if(!e)return null;if(Array.isArray(e))return new UU(e.map(e=>AW(e,t)));let n=DW[e.type];return EW(new n(e.flatCoordinates,e.layout||`XY`,e.ends),!1,t)}var jW=class extends TW{constructor(){super()}getType(){return`json`}readFeature(e,t){return this.readFeatureFromObject(MW(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(MW(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return tD()}readFeaturesFromObject(e,t){return tD()}readGeometry(e,t){return this.readGeometryFromObject(MW(e),this.getReadOptions(e,t))}readGeometryFromObject(e,t){return tD()}readProjection(e){return this.readProjectionFromObject(MW(e))}readProjectionFromObject(e){return tD()}writeFeature(e,t){return JSON.stringify(this.writeFeatureObject(e,t))}writeFeatureObject(e,t){return tD()}writeFeatures(e,t){return JSON.stringify(this.writeFeaturesObject(e,t))}writeFeaturesObject(e,t){return tD()}writeGeometry(e,t){return JSON.stringify(this.writeGeometryObject(e,t))}writeGeometryObject(e,t){return tD()}};function MW(e){return typeof e==`string`?JSON.parse(e)||null:e===null?null:e}var NW=class extends jW{constructor(e){e||={},super(),this.dataProjection=Nk(e.dataProjection?e.dataProjection:`EPSG:4326`),e.featureProjection&&(this.defaultFeatureProjection=Nk(e.featureProjection)),e.featureClass&&(this.featureClass=e.featureClass),this.geometryName_=e.geometryName,this.extractGeometryName_=e.extractGeometryName,this.supportedMediaTypes=[`application/geo+json`,`application/vnd.geo+json`]}readFeatureFromObject(e,t){let n=null;n=e.type===`Feature`?e:{type:`Feature`,geometry:e,properties:null};let r=PW(n.geometry,t);if(this.featureClass===UN)return kW({geometry:r,id:n.id,properties:n.properties},t);let i=this.featureClass,a=new i;return this.geometryName_?a.setGeometryName(this.geometryName_):this.extractGeometryName_&&n.geometry_name&&a.setGeometryName(n.geometry_name),a.setGeometry(AW(r,t)),`id`in n&&a.setId(n.id),n.properties&&a.setProperties(n.properties,!0),a}readFeaturesFromObject(e,t){let n=e,r=null;if(n.type===`FeatureCollection`){let n=e;r=[];let i=n.features;for(let e=0,n=i.length;e<n;++e){let n=this.readFeatureFromObject(i[e],t);n&&r.push(n)}}else r=[this.readFeatureFromObject(e,t)];return r.flat()}readGeometryFromObject(e,t){return FW(e,t)}readProjectionFromObject(e){let t=e.crs,n;if(t){if(t.type==`name`)n=Nk(t.properties.name);else if(t.type===`EPSG`)n=Nk(`EPSG:`+t.properties.code);else throw Error(`Unknown SRS type`)}else n=this.dataProjection;return n}writeFeatureObject(e,t){t=this.adaptOptions(t);let n={type:`Feature`,geometry:null,properties:null},r=e.getId();if(r!==void 0&&(n.id=r),!e.hasProperties())return n;let i=e.getProperties(),a=e.getGeometry();return a&&(n.geometry=UW(a,t),delete i[e.getGeometryName()]),ME(i)||(n.properties=i),n}writeFeaturesObject(e,t){t=this.adaptOptions(t);let n=[];for(let r=0,i=e.length;r<i;++r)n.push(this.writeFeatureObject(e[r],t));return{type:`FeatureCollection`,features:n}}writeGeometryObject(e,t){return UW(e,this.adaptOptions(t))}};function PW(e,t){if(!e)return null;let n;switch(e.type){case`Point`:n=LW(e);break;case`LineString`:n=RW(e);break;case`Polygon`:n=HW(e);break;case`MultiPoint`:n=BW(e);break;case`MultiLineString`:n=zW(e);break;case`MultiPolygon`:n=VW(e);break;case`GeometryCollection`:n=IW(e);break;default:throw Error(`Unsupported GeoJSON type: `+e.type)}return n}function FW(e,t){return AW(PW(e,t),t)}function IW(e,t){return e.geometries.map(function(e){return PW(e,t)})}function LW(e){let t=e.coordinates;return{type:`Point`,flatCoordinates:t,layout:TA(t.length)}}function RW(e){let t=e.coordinates,n=t.flat();return{type:`LineString`,flatCoordinates:n,ends:[n.length],layout:TA(t[0]?.length||2)}}function zW(e){let t=e.coordinates,n=t[0]?.[0]?.length||2,r=[];return{type:`MultiLineString`,flatCoordinates:r,ends:BA(r,0,t,n),layout:TA(n)}}function BW(e){let t=e.coordinates;return{type:`MultiPoint`,flatCoordinates:t.flat(),layout:TA(t[0]?.length||2)}}function VW(e){let t=e.coordinates,n=[],r=t[0]?.[0]?.[0].length||2;return{type:`MultiPolygon`,flatCoordinates:n,ends:VA(n,0,t,r),layout:TA(r)}}function HW(e){let t=e.coordinates,n=[],r=t[0]?.[0]?.length;return{type:`Polygon`,flatCoordinates:n,ends:BA(n,0,t,r),layout:TA(r)}}function UW(e,t){e=EW(e,!0,t);let n=e.getType(),r;switch(n){case`Point`:r=YW(e,t);break;case`LineString`:r=GW(e,t);break;case`Polygon`:r=XW(e,t);break;case`MultiPoint`:r=qW(e,t);break;case`MultiLineString`:r=KW(e,t);break;case`MultiPolygon`:r=JW(e,t);break;case`GeometryCollection`:r=WW(e,t);break;case`Circle`:r={type:`GeometryCollection`,geometries:[]};break;default:throw Error(`Unsupported geometry type: `+n)}return r}function WW(e,t){return t=Object.assign({},t),delete t.featureProjection,{type:`GeometryCollection`,geometries:e.getGeometriesArray().map(function(e){return UW(e,t)})}}function GW(e,t){return{type:`LineString`,coordinates:e.getCoordinates()}}function KW(e,t){return{type:`MultiLineString`,coordinates:e.getCoordinates()}}function qW(e,t){return{type:`MultiPoint`,coordinates:e.getCoordinates()}}function JW(e,t){let n;return t&&(n=t.rightHanded),{type:`MultiPolygon`,coordinates:e.getCoordinates(n)}}function YW(e,t){return{type:`Point`,coordinates:e.getCoordinates()}}function XW(e,t){let n;return t&&(n=t.rightHanded),{type:`Polygon`,coordinates:e.getCoordinates(n)}}const ZW={root:`draw-control`,toggle:`draw-control-toggle`,shapes:`draw-control-shapes`,shape:`draw-control-shape`},QW={"fill-color":`rgba(255, 255, 255, 0.2)`,"stroke-color":`#8c62ff`,"stroke-width":2,"circle-radius":7,"circle-fill-color":`#8c62ff`},$W={dataProjection:`EPSG:4326`,featureProjection:`EPSG:3857`},eG=[{shape:`Point`,label:`Draw a point`,Icon:an},{shape:`LineString`,label:`Draw a line`,Icon:bn},{shape:`Circle`,label:`Draw a circle`,Icon:rn}];function tG({target:e,className:t,fileName:n=`react-openlayers-geojson.json`}){let r=sB(),i=vU(`MapDrawControl`,G(ZW.root,t),e),[a,o]=l.useState(!1),[s,c]=l.useState(null),u=l.useRef(null),f=l.useRef(null);if(!u.current){let e=new pP;u.current={source:e,layer:new RL({source:e,style:QW,properties:{key:`drawLayer`}}),modify:new fW({source:e})}}let p=u.current,m=l.useCallback(()=>{let e=p.source.getFeatures(),t=new NW().writeFeaturesObject(e,$W),r=new Blob([JSON.stringify(t)],{type:`application/json`}),i=URL.createObjectURL(r),a=document.createElement(`a`);a.href=i,a.download=n,a.click(),URL.revokeObjectURL(i)},[p,n]);l.useEffect(()=>{if(!(!r||!a))return r.addLayer(p.layer),r.addInteraction(p.modify),()=>{r.removeInteraction(p.modify),r.removeLayer(p.layer)}},[r,a,p]),l.useEffect(()=>{if(!r||!a||!s)return;let e=s===`LineString`?new iW({source:p.source,type:s,maxPoints:2}):new iW({source:p.source,type:s}),t=new wW({source:p.source});return f.current=e,r.addInteraction(e),r.addInteraction(t),()=>{r.removeInteraction(t),r.removeInteraction(e),f.current=null}},[r,a,s,p]),l.useEffect(()=>{if(!r||!a)return;let e=r.getTargetElement();if(!e)return;let t=e=>{e.key===`Escape`?f.current?.abortDrawing():e.shiftKey&&e.key===`S`&&m()};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)},[r,a,m]);let h=()=>{o(e=>!e),c(null)},g=e=>{c(t=>t===e?null:e)};return(0,d.createPortal)((0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{type:`button`,className:ZW.toggle,title:`Click here to start drawing. Shift+S to save as GeoJSON`,"aria-expanded":a,onClick:h,children:(0,q.jsx)(kn,{size:12})}),a?(0,q.jsxs)(`div`,{className:ZW.shapes,children:[eG.map(({shape:e,label:t,Icon:n})=>(0,q.jsx)(`button`,{type:`button`,className:ZW.shape,title:`${t}. Hold shift to draw freehand`,"aria-pressed":s===e,onClick:()=>g(e),children:(0,q.jsx)(n,{size:12})},e)),(0,q.jsx)(`button`,{type:`button`,className:ZW.shape,title:`Move and reshape what has been drawn`,"aria-pressed":s===null,onClick:()=>g(null),children:(0,q.jsx)(Vt,{size:12})})]}):null]}),i)}tG.displayName=`MapDrawControl`;const nG={root:`layers-control`,toggle:`layers-control-toggle`,layers:`layers-control-layers`,list:`layers-control-list`,item:`layers-control-item`,label:`layers-control-label`},rG=(e,t)=>e.map((e,n)=>{let r=`${t}${n}`;return{key:r,layer:e,name:e.get(`name`)??e.constructor.name,children:e instanceof HR?rG(e.getLayers().getArray(),`${r}.`):[]}});function iG({target:e,className:t}){let n=sB(),r=vU(`MapLayersControl`,G(nG.root,t),e),[i,a]=l.useState(!1),[o,s]=l.useState(0),c=l.useMemo(()=>n&&i?rG(n.getLayers().getArray(),``):[],[n,i,o]),u=(e,t)=>{e.setVisible(t),s(e=>e+1)},f=e=>(0,q.jsx)(`ul`,{className:nG.list,children:e.map(e=>(0,q.jsxs)(`li`,{className:nG.item,children:[(0,q.jsxs)(`label`,{className:nG.label,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:e.layer.getVisible(),onChange:t=>u(e.layer,t.target.checked)}),e.name]}),e.children.length>0?f(e.children):null]},e.key))});return(0,d.createPortal)((0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{type:`button`,className:nG.toggle,title:`Click here to switch layers`,"aria-expanded":i,onClick:()=>a(e=>!e),children:(0,q.jsx)(yn,{size:24})}),i?(0,q.jsx)(`div`,{className:nG.layers,children:f(c)}):null]}),r)}iG.displayName=`MapLayersControl`;const aG={root:`search-control`,toggle:`search-control-toggle`,input:`search-control-input`};function oG({target:e,className:t,zoom:n=18,color:r=hB,placeholder:i=`Search for a place`}){let a=sB(),o=vU(`MapSearchControl`,G(aG.root,t),e),[s,c]=l.useState(!1),[u,f]=l.useState(``);return(0,d.createPortal)((0,q.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!a||!u)return;let[t]=await pB(u,1);if(!t)return;let i=[Number(t.lon),Number(t.lat)];vB(a,i,r).set(`address`,t.display_name),a.getView().setCenter(zk(i)),a.getView().setZoom(n)},children:[(0,q.jsx)(`button`,{type:`button`,className:aG.toggle,title:i,"aria-expanded":s,onClick:()=>c(e=>!e),children:(0,q.jsx)(On,{size:24})}),s?(0,q.jsx)(`input`,{type:`search`,className:aG.input,value:u,placeholder:i,"aria-label":i,autoComplete:`off`,onChange:e=>f(e.target.value)}):null]}),o)}oG.displayName=`MapSearchControl`;const sG=e=>{let t=sB(),n=l.useRef(null);n.current||=e();let r=n.current;return l.useEffect(()=>{if(t)return t.addInteraction(r),()=>{t.removeInteraction(r)}},[t,r]),r};var cG=class extends CR{constructor(e){e||={},super(e),this.condition_=e.condition?e.condition:yR,this.lastAngle_=void 0,this.lastMagnitude_=void 0,this.lastScaleDelta_=0,this.duration_=e.duration===void 0?400:e.duration}handleDragEvent(e){if(!xR(e))return;let t=e.map,n=t.getSize(),r=e.pixel,i=r[0]-n[0]/2,a=n[1]/2-r[1],o=Math.atan2(a,i),s=Math.sqrt(i*i+a*a),c=t.getView();if(this.lastAngle_!==void 0){let e=this.lastAngle_-o;c.adjustRotationInternal(e)}this.lastAngle_=o,this.lastMagnitude_!==void 0&&c.adjustResolutionInternal(this.lastMagnitude_/s),this.lastMagnitude_!==void 0&&(this.lastScaleDelta_=this.lastMagnitude_/s),this.lastMagnitude_=s}handleUpEvent(e){if(!xR(e))return!0;let t=e.map.getView(),n=this.lastScaleDelta_>1?1:-1;return t.endInteraction(this.duration_,n),this.lastScaleDelta_=0,!1}handleDownEvent(e){return xR(e)&&this.condition_(e)?(e.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0):!1}};function lG(e){return sG(()=>new cG(e)),null}lG.displayName=`MapDragRotateAndZoomInteraction`;const uG={TRANSLATESTART:`translatestart`,TRANSLATING:`translating`,TRANSLATEEND:`translateend`};var dG=class extends ZE{constructor(e,t,n,r,i){super(e),this.features=t,this.coordinate=n,this.startCoordinate=r,this.mapBrowserEvent=i}},fG=class extends CR{constructor(e){e||={},super(e),this.on,this.once,this.un,this.lastCoordinate_=null,this.startCoordinate_=null,this.features_=e.features===void 0?null:e.features;let t;if(e.layers&&!this.features_){if(typeof e.layers==`function`)t=e.layers;else{let n=e.layers;t=function(e){return n.includes(e)}}}else t=KE;this.layerFilter_=t,this.filter_=e.filter&&!this.features_?e.filter:KE,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.condition_=e.condition?e.condition:pR,this.lastFeature_=null,this.addChangeListener(rR.ACTIVE,this.handleActiveChanged_)}handleDownEvent(e){if(!e.originalEvent||!this.condition_(e))return!1;if(this.lastFeature_=this.featuresAtPixel_(e.pixel,e.map),!this.lastCoordinate_&&this.lastFeature_){this.startCoordinate_=e.coordinate,this.lastCoordinate_=e.coordinate,this.handleMoveEvent(e);let t=this.features_||new sD([this.lastFeature_]);return this.dispatchEvent(new dG(uG.TRANSLATESTART,t,e.coordinate,this.startCoordinate_,e)),!0}return!1}handleUpEvent(e){if(this.lastCoordinate_){this.lastCoordinate_=null,this.handleMoveEvent(e);let t=this.features_||new sD([this.lastFeature_]);return this.dispatchEvent(new dG(uG.TRANSLATEEND,t,e.coordinate,this.startCoordinate_,e)),this.startCoordinate_=null,!0}return!1}handleDragEvent(e){if(this.lastCoordinate_){let t=e.coordinate,n=e.map.getView().getProjection(),r=Jk(t,n),i=Jk(this.lastCoordinate_,n),a=r[0]-i[0],o=r[1]-i[1],s=this.features_||new sD([this.lastFeature_]),c=Kk();s.forEach(function(e){let t=e.getGeometry();c?(t.transform(c,n),t.translate(a,o),t.transform(n,c)):t.translate(a,o),e.setGeometry(t)}),this.lastCoordinate_=t,this.dispatchEvent(new dG(uG.TRANSLATING,s,t,this.startCoordinate_,e))}}handleMoveEvent(e){let t=e.map.getViewport();this.featuresAtPixel_(e.pixel,e.map)?(t.classList.remove(this.lastCoordinate_?`ol-grab`:`ol-grabbing`),t.classList.add(this.lastCoordinate_?`ol-grabbing`:`ol-grab`)):t.classList.remove(`ol-grab`,`ol-grabbing`)}featuresAtPixel_(e,t){return t.forEachFeatureAtPixel(e,(e,t)=>{if(!(!(e instanceof lD)||!this.filter_(e,t))&&!(this.features_&&!this.features_.getArray().includes(e)))return e},{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_})}getHitTolerance(){return this.hitTolerance_}setHitTolerance(e){this.hitTolerance_=e}setMap(e){let t=this.getMap();super.setMap(e),this.updateState_(t)}handleActiveChanged_(){this.updateState_(null)}updateState_(e){let t=this.getMap(),n=this.getActive();(!t||!n)&&(t||=e,t&&t.getViewport().classList.remove(`ol-grab`,`ol-grabbing`))}};function pG(e){return sG(()=>new fG(e)),null}pG.displayName=`MapTranslateInteraction`;function mG(e){let t=l.useRef(null),n=e=>{let n=e.map.forEachFeatureAtPixel(e.pixel,e=>e);return n instanceof lD&&(t.current={feature:n,coordinate:e.coordinate},!0)},r=e=>{let n=t.current;if(!n)return;let r=n.feature.getGeometry();r&&(r.translate(e.coordinate[0]-n.coordinate[0],e.coordinate[1]-n.coordinate[1]),n.coordinate=e.coordinate)},i=e=>{let t=e.map.forEachFeatureAtPixel(e.pixel,e=>e),n=e.map.getTargetElement();n&&(n.style.cursor=t?`pointer`:``)},a=()=>(t.current=null,!1);return sG(()=>new CR({handleDownEvent:n,handleDragEvent:r,handleMoveEvent:i,handleUpEvent:a,...e})),null}mG.displayName=`MapPointerInteraction`;const hG={SELECT:`select`};var gG=class extends ZE{constructor(e,t,n,r){super(e),this.selected=t,this.deselected=n,this.mapBrowserEvent=r}};const _G={};var vG=class e extends iR{constructor(e){super(),this.on,this.once,this.un,e||={},this.boundAddFeature_=this.addFeature_.bind(this),this.boundRemoveFeature_=this.removeFeature_.bind(this),this.condition_=e.condition?e.condition:gR,this.addCondition_=e.addCondition?e.addCondition:hR,this.removeCondition_=e.removeCondition?e.removeCondition:hR,this.toggleCondition_=e.toggleCondition?e.toggleCondition:yR,this.multi_=e.multi?e.multi:!1,this.filter_=e.filter?e.filter:KE,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.style_=e.style===void 0?yG():e.style,this.features_=e.features||new sD;let t;if(e.layers){if(typeof e.layers==`function`)t=e.layers;else{let n=e.layers;t=function(e){return n.includes(e)}}}else t=KE;this.layerFilter_=t,this.featureLayerAssociation_={}}addFeatureLayerAssociation_(e,t){this.featureLayerAssociation_[X(e)]=t}getFeatures(){return this.features_}getHitTolerance(){return this.hitTolerance_}getLayer(e){return this.featureLayerAssociation_[X(e)]}setHitTolerance(e){this.hitTolerance_=e}setMap(e){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),super.setMap(e),e?(this.features_.addEventListener(kE.ADD,this.boundAddFeature_),this.features_.addEventListener(kE.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(kE.ADD,this.boundAddFeature_),this.features_.removeEventListener(kE.REMOVE,this.boundRemoveFeature_))}addFeature_(e){let t=e.element;if(this.style_&&this.applySelectedStyle_(t),!this.getLayer(t)){let e=this.findLayerOfFeature_(t);e&&this.addFeatureLayerAssociation_(t,e)}}removeFeature_(e){this.style_&&this.restorePreviousStyle_(e.element),this.removeFeatureLayerAssociation_(e.element)}findLayerOfFeature_(e){return this.getMap().getAllLayers().find(function(t){if(t instanceof RL&&t.getSource()&&t.getSource().hasFeature(e))return t})}getStyle(){return this.style_}applySelectedStyle_(e){let t=X(e);t in _G||(_G[t]=e.getStyle()),e.setStyle(this.style_)}restorePreviousStyle_(t){let n=this.getMap().getInteractions().getArray();for(let r=n.length-1;r>=0;--r){let i=n[r];if(i!==this&&i instanceof e&&i.getStyle()&&i.getFeatures().getArray().lastIndexOf(t)!==-1){t.setStyle(i.getStyle());return}}let r=X(t);t.setStyle(_G[r]),delete _G[r]}removeFeatureLayerAssociation_(e){delete this.featureLayerAssociation_[X(e)]}selectFeature(e){let t=this.findLayerOfFeature_(e);if(!this.layerFilter_(t)||!this.filter_(e,t))return!1;let n=this.getFeatures();return!n.getArray().includes(e)&&(this.addFeatureLayerAssociation_(e,t),n.push(e),this.dispatchEvent(new gG(hG.SELECT,[e],[],void 0)),!0)}deselectFeature(e){let t=this.getFeatures(),n=t.getArray().indexOf(e);return n!==-1&&(t.removeAt(n),this.dispatchEvent(new gG(hG.SELECT,[],[e],void 0)),!0)}toggleFeature(e){this.deselectFeature(e)||this.selectFeature(e)}clearSelection(){let e=this.getFeatures();if(e.getLength()!==0){let t=e.getArray().slice();e.clear(),this.dispatchEvent(new gG(hG.SELECT,[],t,void 0))}}handleEvent(e){if(!this.condition_(e))return!0;let t=this.addCondition_(e),n=this.removeCondition_(e),r=this.toggleCondition_(e),i=!t&&!n&&!r,a=e.map,o=this.getFeatures(),s=[],c=[];if(i){a.forEachFeatureAtPixel(e.pixel,(e,t)=>{if(!(!(e instanceof lD)||!this.filter_(e,t)))return this.addFeatureLayerAssociation_(e,t),c.push(e),!this.multi_},{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let e=o.getLength()-1;e>=0;--e){let t=o.item(e),n=c.indexOf(t);n===-1?(o.removeAt(e),s.push(t)):c.splice(n,1)}c.length!==0&&o.extend(c)}else{a.forEachFeatureAtPixel(e.pixel,(e,i)=>{if(!(e instanceof lD)||!this.filter_(e,i))return;let a=o.getArray().includes(e);return a&&(n||r)?s.push(e):!a&&(t||r)&&(this.addFeatureLayerAssociation_(e,i),c.push(e)),!this.multi_},{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let e=s.length-1;e>=0;--e)o.remove(s[e]);o.extend(c)}return(c.length>0||s.length>0)&&this.dispatchEvent(new gG(hG.SELECT,c,s,e)),!0}};function yG(){let e=EP();return UE(e.Polygon,e.LineString),UE(e.GeometryCollection,e.LineString),function(t){return t.getGeometry()?e[t.getGeometry().getType()]:null}}const bG=`#ff0000`,xG=`rgba(255, 0, 0, 0.4)`,SG=e=>new OP({text:e,font:`12px Calibri,sans-serif`,fill:new mP({color:`#000`}),stroke:new hP({color:`#fff`,width:3}),offsetY:-10}),CG=e=>{let t=e.getGeometry();if(!(t instanceof CA))return;let n=t.getType();if(n===`Point`)return new SP({image:new xP({radius:6,fill:new mP({color:xG}),stroke:new hP({color:bG,width:2})})});if(n===`LineString`){let e=new SP({stroke:new hP({color:bG,width:3})}),n=hO(t)/1e3;return n>0&&e.setText(SG(`Length: ${n.toFixed(2)} km`)),e}let r=new SP({fill:new mP({color:xG}),stroke:new hP({color:bG,width:2})});try{let e=_O(t)/1e6;e>0&&r.setText(SG(`Area: ${e.toFixed(2)} km²`))}catch{}return r};function wG({onSelect:e,style:t=CG,...n}){let r=sB(),i=sG(()=>new vG({...n,style:t})),a=l.useRef(e);return l.useEffect(()=>{a.current=e},[e]),l.useEffect(()=>{let e=i.on(`select`,e=>{e.deselected.forEach(e=>e.setStyle(void 0)),e.selected.length>0&&a.current?.(e)});return()=>eD(e)},[i]),l.useEffect(()=>{if(!r)return;let e=r.getTargetElement();if(!e)return;let t=e=>{if(e.key!==`Backspace`)return;let t=i.getFeatures();t.forEach(e=>{i.getLayer(e)?.getSource()?.removeFeature(e)}),t.clear()};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)},[r,i]),null}wG.displayName=`MapSelectInteraction`;function TG(e){return lO(e,5)}function EG(e){return parseFloat(e)}function DG(e){return TG(e).toString()}function OG(e,t){return!isNaN(e)&&e!==EG(DG(t))}function kG(e,t){return OG(e[0],t[0])||OG(e[1],t[1])}var AG=class extends iR{constructor(e){super(),e=Object.assign({animate:!0,params:[`x`,`y`,`z`,`r`,`l`],replace:!1,prefix:``},e||{});let t;t=e.animate===!0?{duration:250}:e.animate?e.animate:null,this.animationOptions_=t,this.params_=e.params.reduce((e,t)=>(e[t]=!0,e),{}),this.replace_=e.replace,this.prefix_=e.prefix,this.listenerKeys_=[],this.initial_=!0,this.updateState_=this.updateState_.bind(this),this.trackedCallbacks_={},this.trackedValues_={}}getParamName_(e){return this.prefix_?this.prefix_+e:e}get_(e,t){return e.get(this.getParamName_(t))}set_(e,t,n){t in this.params_&&e.set(this.getParamName_(t),n)}delete_(e,t){t in this.params_&&e.delete(this.getParamName_(t))}setMap(e){let t=this.getMap();super.setMap(e),e!==t&&(t&&this.unregisterListeners_(t),e&&(this.initial_=!0,this.updateState_(),this.registerListeners_(e)))}registerListeners_(e){this.listenerKeys_.push(NE(e,qL.MOVEEND,this.updateUrl_,this),NE(e.getLayerGroup(),IE.CHANGE,this.updateUrl_,this),NE(e,`change:layergroup`,this.handleChangeLayerGroup_,this)),this.replace_||addEventListener(`popstate`,this.updateState_)}unregisterListeners_(e){for(let e=0,t=this.listenerKeys_.length;e<t;++e)FE(this.listenerKeys_[e]);this.listenerKeys_.length=0,this.replace_||removeEventListener(`popstate`,this.updateState_);let t=new URL(window.location.href),n=t.searchParams;this.delete_(n,`x`),this.delete_(n,`y`),this.delete_(n,`z`),this.delete_(n,`r`),this.delete_(n,`l`),window.history.replaceState(null,``,t)}handleChangeLayerGroup_(){let e=this.getMap();e&&(this.unregisterListeners_(e),this.registerListeners_(e),this.initial_=!0,this.updateUrl_())}updateState_(){let e=new URL(window.location.href).searchParams;for(let t in this.trackedCallbacks_){let n=e.get(t);t in this.trackedCallbacks_&&n!==this.trackedValues_[t]&&(this.trackedValues_[t]=n,this.trackedCallbacks_[t](n))}let t=this.getMap();if(!t)return;let n=t.getView();if(!n||!n.isDef())return;let r=!1,i={},a=EG(this.get_(e,`z`));`z`in this.params_&&OG(a,n.getZoom())&&(r=!0,i.zoom=a);let o=EG(this.get_(e,`r`));`r`in this.params_&&OG(o,n.getRotation())&&(r=!0,i.rotation=o);let s=[EG(this.get_(e,`x`)),EG(this.get_(e,`y`))];(`x`in this.params_||`y`in this.params_)&&kG(s,n.getCenter())&&(r=!0,i.center=s),r&&(!this.initial_&&this.animationOptions_?n.animate(Object.assign(i,this.animationOptions_)):(i.center&&n.setCenter(i.center),`zoom`in i&&n.setZoom(i.zoom),`rotation`in i&&n.setRotation(i.rotation)));let c=t.getAllLayers(),l=this.get_(e,`l`);if(`l`in this.params_&&l&&l.length===c.length)for(let e=0,t=c.length;e<t;++e){let t=parseInt(l[e]);if(!isNaN(t)){let n=!!t,r=c[e];r.getVisible()!==n&&r.setVisible(n)}}}track(e,t){this.trackedCallbacks_[e]=t;let n=new URL(window.location.href).searchParams.get(e);return this.trackedValues_[e]=n,n}update(e,t){let n=new URL(window.location.href),r=n.searchParams;t===null?r.delete(e):r.set(e,t),e in this.trackedValues_&&(this.trackedValues_[e]=t),this.updateHistory_(n)}updateUrl_(){let e=this.getMap();if(!e)return;let t=e.getView();if(!t||!t.isDef())return;let n=t.getCenter(),r=t.getZoom(),i=t.getRotation(),a=e.getAllLayers(),o=Array(a.length);for(let e=0,t=a.length;e<t;++e)o[e]=a[e].getVisible()?`1`:`0`;let s=new URL(window.location.href),c=s.searchParams;this.set_(c,`x`,DG(n[0])),this.set_(c,`y`,DG(n[1])),this.set_(c,`z`,DG(r)),this.set_(c,`r`,DG(i)),this.set_(c,`l`,o.join(``)),this.updateHistory_(s),this.initial_=!1}updateHistory_(e){e.href!==window.location.href&&(this.initial_||this.replace_?window.history.replaceState(history.state,``,e):window.history.pushState(null,``,e))}};function jG(e){return sG(()=>new AG(e)),null}jG.displayName=`MapLinkInteraction`;const MG={root:`map`,surface:`map-surface`,toolbar:`map-toolbar`},NG=37.7649804,PG=-122.4323829,FG=[];function IG({latitude:e,longitude:t,zoom:n,marker:r,markerColor:i,markerLabel:a}){let o=sB(),s=l.useRef(!1);return l.useEffect(()=>{if(!o)return;let r=o.getView(),i=zk([t,e]);if(s.current){r.animate({center:i,zoom:n,duration:500});return}s.current=!0,r.setCenter(i),r.setZoom(n)},[o,e,t,n]),l.useEffect(()=>{if(!o||!r)return;let n=vB(o,[t,e],i,a);return()=>yB(o,n)},[o,e,t,r,i,a]),null}IG.displayName=`MapLocation`;function LG(e,t){let{latitude:n=NG,longitude:r=PG,zoom:i=16,width:a,height:o,controls:s=FG,marker:c=!0,markerColor:u,markerLabel:d,id:f,className:p,style:m,children:h,"aria-label":g,"aria-labelledby":_,...v}=e,y=Y(f),b=l.useRef(null),x=ar(t,b),S=l.useRef(null);if(!S.current){let e=document.createElement(`div`);e.className=MG.toolbar,S.current=e}let C=S.current;l.useEffect(()=>(b.current?.append(C),()=>C.remove()),[C]);let w=_?void 0:g??`Map`,T=e=>{switch(e){case`scaleLine`:return(0,q.jsx)(NU,{},e);case`fullScreen`:return(0,q.jsx)(OU,{target:C,source:y},e);case`search`:return(0,q.jsx)(oG,{target:C},e);case`layers`:return(0,q.jsx)(iG,{target:C},e);case`draw`:return(0,q.jsx)(tG,{target:C},e)}};return(0,q.jsx)(`div`,{ref:x,id:y,role:`region`,tabIndex:0,"aria-label":w,"aria-labelledby":_,className:G(MG.root,p),style:{...m,"--map-width":typeof a==`number`?`${a}px`:a,"--map-height":typeof o==`number`?`${o}px`:o},"data-component":`Map`,...v,children:(0,q.jsxs)(oB,{className:MG.surface,keyboardEventTarget:y,children:[(0,q.jsx)(IG,{latitude:n,longitude:r,zoom:i,marker:c,markerColor:u,markerLabel:d}),s.map(T),h]})})}LG.displayName=`Map`;var RG=K(LG);const zG=Object.assign(RG,{View:cB,Marker:SB,Overlay:wB,LayerGroup:OB,TileLayer:kB,ImageLayer:NB,VectorLayer:PB,GraticuleLayer:FB,HeatmapLayer:pU,WebGLTileLayer:gU,AttributionControl:yU,DrawControl:tG,FullScreenControl:OU,LayersControl:iG,MousePositionControl:LU,OverviewMapControl:VU,ScaleLineControl:NU,SearchControl:oG,DragRotateAndZoomInteraction:lG,LinkInteraction:jG,PointerInteraction:mG,SelectInteraction:wG,TranslateInteraction:pG}),BG={root:`markdown`};function VG(e,t){let{className:n,source:r,transformers:i,preserveNewLines:a=!1,...o}=e,[s]=(0,y.useLexicalComposerContext)(),c=l.useCallback(e=>{s.setRootElement(e)},[s]),u=ar(t,c);return rr(()=>{s.update(()=>{(0,v.$convertFromMarkdownString)(r,i,void 0,a)},{discrete:!0})},[s,r,i,a]),(0,q.jsx)(`div`,{ref:u,className:G(BG.root,n),"data-component":`Markdown`,...o})}VG.displayName=`MarkdownProse`;var HG=K(VG);const UG=`Markdown`,WG=[C.HeadingNode,C.QuoteNode,S.ListNode,S.ListItemNode,x.LinkNode,b.CodeNode,b.CodeHighlightNode],GG=[v.CHECK_LIST,...v.TRANSFORMERS],KG={paragraph:`markdown-paragraph`,heading:{h1:`markdown-heading-1`,h2:`markdown-heading-2`,h3:`markdown-heading-3`,h4:`markdown-heading-4`,h5:`markdown-heading-5`,h6:`markdown-heading-6`},quote:`markdown-quote`,link:`markdown-link`,code:`markdown-code-block`,list:{ul:`markdown-list-bullet`,ol:`markdown-list-number`,listitem:`markdown-list-item`,checklist:`markdown-list-check`,listitemChecked:`markdown-list-item-checked`,listitemUnchecked:`markdown-list-item-unchecked`,nested:{listitem:`markdown-list-item-nested`}},text:{bold:`markdown-bold`,italic:`markdown-italic`,strikethrough:`markdown-strikethrough`,highlight:`markdown-highlight`,code:`markdown-code-inline`},ltr:`markdown-ltr`,rtl:`markdown-rtl`};function qG(e,t){let{className:n,children:r=``,transformers:i=GG,preserveNewLines:a=!1,namespace:o=UG,onError:s,...c}=e;return(0,q.jsx)(_.LexicalComposer,{initialConfig:{namespace:o,theme:KG,nodes:WG,editable:!1,onError:s??(e=>{throw e})},children:(0,q.jsx)(HG,{ref:t,className:n,source:r,transformers:i,preserveNewLines:a,...c})})}qG.displayName=`Markdown`;var JG=K(qG);const YG=(0,l.createContext)({}),XG=()=>(0,l.useContext)(YG),ZG=(e={})=>{let{paused:t,defaultPaused:n,onPauseChange:r}=e,i=t!==void 0,[a,o]=l.useState(n??!1),s=i?t:a,c=e=>{e!==s&&(i||o(e),r?.(e))};return{paused:s,pause:()=>c(!0),resume:()=>c(!1),toggle:()=>c(!s),setPaused:c}},QG={root:`marquee`},$G=e=>e===`top`||e===`bottom`;function eK(e,t){let{as:n=`div`,className:r,side:i=`start`,speed:a=50,delay:o=0,loopCount:s=0,autoFill:c=!1,spacing:u,reverse:d=!1,paused:f,defaultPaused:p,pauseOnInteraction:m=!0,onPauseChange:h,onLoopComplete:g,onComplete:_,children:v,...y}=e,b=ZG({paused:f,defaultPaused:p,onPauseChange:h}),x=$G(i),S=l.useRef(null),C=l.useRef(null),[w,T]=l.useState(0),[E,D]=l.useState(0);rr(()=>{let e=S.current,t=C.current;if(e===null||t===null)return;let n=()=>{let n=x?e.clientHeight:e.clientWidth,r=x?t.offsetHeight:t.offsetWidth;T(e=>e===n?e:n),D(e=>e===r?e:r)};n();let r=new ResizeObserver(n);return r.observe(e),r.observe(t),()=>{r.disconnect()}},[x]);let O=c&&E>0?Math.max(Math.ceil(w/E)+1,2):2,k=E>0&&a>0?E/a:0,{style:A,onMouseEnter:j,onMouseLeave:M,onFocus:N,onBlur:P,...F}=y,[I,L]=l.useState(!1),ee=e=>{j?.(e),m&&L(!0)},R=e=>{M?.(e),L(!1)},z=e=>{N?.(e),m&&L(!0)},te=e=>{P?.(e),e.currentTarget.contains(e.relatedTarget)||L(!1)},ne=b.paused||I,B={...b,side:i,orientation:x?`vertical`:`horizontal`,copyCount:O,viewportRef:S,copyRef:C,onLoopComplete:g,onComplete:_};return(0,q.jsx)(YG.Provider,{value:B,children:(0,q.jsx)(n,{ref:t,className:G(QG.root,r),style:{...A,"--marquee-duration":`${k}s`,"--marquee-delay":`${o}ms`,"--marquee-loop-count":s>0?`${s}`:`infinite`,...u===void 0?null:{"--marquee-spacing":u}},onMouseEnter:ee,onMouseLeave:R,onFocus:z,onBlur:te,"data-component":`Marquee`,"data-orientation":x?`vertical`:`horizontal`,"data-side":i,"data-reverse":d||void 0,"data-paused":ne||void 0,"data-running":E>0||void 0,...F,children:v})})}eK.displayName=`Marquee`;var tK=K(eK);const nK={root:`marquee-content`};function rK(e,t){let{as:n=`div`,className:r,children:i,...a}=e,{copyCount:o=1,copyRef:s,onLoopComplete:c,onComplete:u}=l.useContext(YG),d=ar(t,s),f=l.useRef(0),p=e=>e.target===e.currentTarget,m=e=>{p(e)&&(f.current+=1,c?.(f.current))},h=e=>{p(e)&&(f.current+=1,c?.(f.current),u?.())};return(0,q.jsx)(q.Fragment,{children:Array.from({length:o},(e,t)=>{let o=t===0;return(0,q.jsx)(n,{ref:o?d:void 0,className:G(nK.root,r),"aria-hidden":!o||void 0,inert:!o,onAnimationIteration:o?m:void 0,onAnimationEnd:o?h:void 0,"data-component":`Marquee.Content`,...a,children:i},t)})})}rK.displayName=`Marquee.Content`;var iK=K(rK);const aK={root:`marquee-edge`};function oK(e,t){let{as:n=`div`,className:r,side:i,...a}=e;return(0,q.jsx)(n,{ref:t,"aria-hidden":`true`,className:G(aK.root,r),"data-component":`Marquee.Edge`,"data-side":i,...a})}oK.displayName=`Marquee.Edge`;var sK=K(oK);const cK={root:`marquee-item`};function lK(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(cK.root,r),"data-component":`Marquee.Item`,...i})}lK.displayName=`Marquee.Item`;var uK=K(lK);const dK={root:`marquee-viewport`};function fK(e,t){let{as:n=`div`,className:r,...i}=e,{viewportRef:a}=l.useContext(YG),o=ar(t,a);return(0,q.jsx)(n,{ref:o,className:G(dK.root,r),"data-component":`Marquee.Viewport`,...i})}fK.displayName=`Marquee.Viewport`;var pK=K(fK);const mK=Object.assign(tK,{Root:tK,Viewport:pK,Content:iK,Item:uK,Edge:sK}),hK=(0,l.createContext)({}),gK=W(`message`,{variants:{align:{start:`message-align-start`,end:`message-align-end`}}});function _K(e,t){let{as:n=`div`,className:r,align:i,...a}=e,{align:o}=l.useContext(hK),s=i??o??`start`,c={align:s};return(0,q.jsx)(Cl.Provider,{value:c,children:(0,q.jsx)(n,{ref:t,className:G(gK({align:s}),r),"data-component":`Message`,"data-align":s,...a})})}_K.displayName=`Message`;var vK=K(_K);const yK={root:`message-avatar`};function bK(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(yK.root,r),"data-component":`Message.Avatar`,...i})}bK.displayName=`Message.Avatar`;var xK=K(bK);const SK={root:`message-content`};function CK(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(SK.root,r),"data-component":`Message.Content`,...i})}CK.displayName=`Message.Content`;var wK=K(CK);const TK={root:`message-footer`};function EK(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(TK.root,r),"data-component":`Message.Footer`,...i})}EK.displayName=`Message.Footer`;var DK=K(EK);const OK={root:`message-group`};function kK(e,t){let{as:n=`div`,className:r,align:i=`start`,...a}=e;return(0,q.jsx)(hK.Provider,{value:{align:i},children:(0,q.jsx)(n,{ref:t,className:G(OK.root,r),"data-component":`Message.Group`,"data-align":i,...a})})}kK.displayName=`Message.Group`;var AK=K(kK);const jK={root:`message-header`};function MK(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(jK.root,r),"data-component":`Message.Header`,...i})}MK.displayName=`Message.Header`;var NK=K(MK);const PK=Object.assign(vK,{Group:AK,Avatar:xK,Content:wK,Header:NK,Footer:DK}),FK=e=>{let t=String(e),n=t.indexOf(`.`);return n===-1?0:t.length-n-1},IK=(e,t,n)=>t!==void 0&&e<t?t:n!==void 0&&e>n?n:e,LK=(e,t,{step:n=1,min:r,max:i}={})=>{if(e===null)return IK(r??0,r,i);let a=e+t*n,o=Math.max(FK(n),FK(e)),s=o===0?a:Number(a.toFixed(o));return IK(s,r,i)},RK=e=>{if(e.value===``)return null;let t=Number(e.value);return Number.isNaN(t)?null:t},zK=(0,l.createContext)({}),BK={root:`meter-indicator`};function VK(e,t){let{as:n=`span`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(BK.root,r),"data-component":`Meter.Indicator`,...i})}VK.displayName=`Meter.Indicator`;var HK=K(VK);const UK={root:`meter-label`};function WK(e,t){let{as:n=`span`,className:r,id:i,...a}=e,{labelId:o}=l.useContext(zK);return(0,q.jsx)(n,{ref:t,id:i??o,className:G(UK.root,r),"data-component":`Meter.Label`,...a})}WK.displayName=`Meter.Label`;var GK=K(WK);const KK={root:`meter-track`};function qK(e,t){let{as:n=`span`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(KK.root,r),"data-component":`Meter.Track`,...i})}qK.displayName=`Meter.Track`;var JK=K(qK);const YK={root:`meter-value`};function XK(e,t){let{className:n,children:r,...i}=e,{formattedValue:a=``,value:o=0}=l.useContext(zK);return(0,q.jsx)(`span`,{ref:t,"aria-hidden":`true`,className:G(YK.root,n),"data-component":`Meter.Value`,...i,children:typeof r==`function`?r({formattedValue:a,value:o}):r??a})}XK.displayName=`Meter.Value`;var ZK=K(XK);const QK=(e,t,n)=>n===t?0:(e-t)/(n-t)*100,$K=(e,t,n)=>n?new Intl.NumberFormat(void 0,n).format(e):new Intl.NumberFormat(void 0,{style:`percent`}).format(t/100),eq={header:`meter-header`,hidden:`sr-only`},tq=W(`meter`,{variants:{size:{small:`meter-small`,medium:`meter-medium`,large:`meter-large`},variant:{accent:`meter-accent`,attention:`meter-attention`,danger:`meter-danger`,done:`meter-done`,neutral:`meter-neutral`,severe:`meter-severe`,sponsors:`meter-sponsors`,success:`meter-success`}}});function nq(e,t){let{as:n=`div`,className:r,style:i,value:a,min:o=0,max:s=100,format:c,getAriaValueText:l,size:u=`medium`,variant:d=`success`,children:f,id:p,"aria-label":m,"aria-labelledby":h,...g}=e,_=`${Y(p)}-label`,[v,y]=xr(f,{label:GK,value:ZK,track:JK}),b=IK(Number.isNaN(a)?o:a,o,s),x=IK(QK(b,o,s),0,100),S=$K(b,x,c),C=l?l(S,a):S,w=h??(v.label&&!m?_:void 0),T={value:b,percentage:x,formattedValue:S,labelId:_};return(0,q.jsx)(zK.Provider,{value:T,children:(0,q.jsxs)(n,{ref:t,id:p,role:`meter`,"aria-valuenow":b,"aria-valuemin":o,"aria-valuemax":s,"aria-valuetext":C,"aria-label":m,"aria-labelledby":w,className:G(tq({size:u,variant:d}),r),style:{...i,"--meter-percentage":`${x}%`},"data-component":`Meter`,"data-size":u,"data-variant":d,"data-value":b,...g,children:[v.label||v.value?(0,q.jsxs)(`span`,{className:eq.header,children:[v.label,v.value]}):null,v.track??(0,q.jsx)(JK,{children:(0,q.jsx)(HK,{})}),y,(0,q.jsx)(`span`,{role:`presentation`,className:eq.hidden,children:`x`})]})})}nq.displayName=`Meter`;var rq=K(nq);const iq=Object.assign(rq,{Label:GK,Value:ZK,Track:JK,Indicator:HK});function aq(e,t){return(0,q.jsx)(`optgroup`,{ref:t,"data-component":`NativeSelect.OptGroup`,...e})}aq.displayName=`NativeSelect.OptGroup`;var oq=K(aq);function sq(e,t){return(0,q.jsx)(`option`,{ref:t,"data-component":`NativeSelect.Option`,...e})}sq.displayName=`NativeSelect.Option`;var cq=K(sq);const lq=Object.assign(Rx,{Option:cq,OptGroup:oq}),uq={root:`navigation-list-heading`,hidden:`sr-only`};function dq(e){let{as:t=`h2`,visuallyHidden:n=!1,className:r,...i}=e;return(0,q.jsx)(Tr,{as:t,size:`small`,className:G(n?uq.hidden:uq.root,r),"data-component":`NavigationList.Heading`,...i})}dq.displayName=`NavigationList.Heading`;const fq=l.createContext(null),pq=l.createContext({depth:0}),mq=l.createContext({buttonId:``,subNavigationId:``,isOpen:!1}),hq=e=>Number.parseInt(e.slice(1),10),gq=e=>{let t=e===null?3:e+1;return`h${Math.min(Math.max(t,1),4)}`},_q={heading:dq},vq={container:`NavigationList`};function yq(e,t){let{children:n,className:r,"aria-label":i,"aria-labelledby":a,...o}=e,[s,c]=xr(n,_q),u=Y(),d=s.heading,f=d?d.props.id??u:void 0,p=d?hq(d.props.as??`h2`):null;return(0,q.jsx)(`nav`,{ref:t,"aria-label":i,"aria-labelledby":a??(i?void 0:f),className:G(r),"data-component":`NavigationList`,...o,children:(0,q.jsxs)(fq.Provider,{value:p,children:[d?l.cloneElement(d,{id:f}):null,(0,q.jsx)(Ar.Provider,{value:vq,children:(0,q.jsx)(ji,{children:c})})]})})}yq.displayName=`NavigationList`;var bq=l.forwardRef(yq);function xq(e){let{title:t,children:n,hideDivider:r=!1,...i}=e,a=l.useContext(fq);return(0,q.jsxs)(q.Fragment,{children:[r?null:(0,q.jsx)(ji.Divider,{}),(0,q.jsxs)(ji.Group,{"data-component":`NavigationList.Group`,...i,children:[t?(0,q.jsx)(ji.GroupHeading,{as:gq(a),children:t}):null,n]})]})}xq.displayName=`NavigationList.Group`;const Sq={chevron:`navigation-list-chevron`},Cq={trailingVisual:ji.TrailingVisual},wq=e=>{if(!l.isValidElement(e))return!1;let t=e.props[`aria-current`];return t&&t!==`false`?!0:l.Children.toArray(e.props.children).some(wq)};function Tq(e){let{children:t,subNavigation:n,defaultOpen:r,className:i}=e,a=Y(),o=Y(),s=l.useRef(null),c=l.useMemo(()=>wq(n),[n]),[u,d]=l.useState(r??c),[f,p]=l.useState(c);rr(()=>{let e=c||!!s.current?.querySelector(`[aria-current]:not([aria-current='false'])`);p(e),e&&d(!0)},[c,n]);let m=l.useMemo(()=>({buttonId:a,subNavigationId:o,isOpen:u}),[a,o,u]),[h,g]=xr(t,Cq);return(0,q.jsx)(mq.Provider,{value:m,children:(0,q.jsxs)(ji.Item,{id:a,active:!u&&f,"aria-expanded":u,"aria-controls":o,onSelect:()=>d(e=>!e),className:i,"data-component":`NavigationList.Item`,children:[g,(0,q.jsxs)(ji.TrailingVisual,{children:[h.trailingVisual?.props.children,(0,q.jsx)(Qt,{className:Sq.chevron})]}),(0,q.jsx)(ji.SubItem,{children:l.cloneElement(n,{ref:s})})]})})}Tq.displayName=`NavigationList.ItemWithSubNavigation`;const Eq={root:`navigation-list-sub-navigation`,items:`navigation-list-sub-navigation-items`};function Dq(e,t){let{className:n,children:r,...i}=e,{buttonId:a,subNavigationId:o,isOpen:s}=l.useContext(mq),{depth:c}=l.useContext(pq),u=l.useMemo(()=>({depth:c+1}),[c]);return!a||!o||c>=4?null:(0,q.jsx)(pq.Provider,{value:u,children:(0,q.jsx)(`ul`,{ref:t,id:o,hidden:!s,"aria-labelledby":a,className:G(Eq.root,Eq.items,n),"data-component":`NavigationList.SubNavigation`,"data-depth":c+1,...i,children:r})})}Dq.displayName=`NavigationList.SubNavigation`;var Oq=K(Dq);const kq={subNavigation:Oq},Aq=ji.LinkItem;function jq(e,t){let{as:n,children:r,className:i,defaultOpen:a,"aria-current":o,...s}=e,[c,l]=xr(r,kq);return c.subNavigation?(0,q.jsx)(Tq,{subNavigation:c.subNavigation,defaultOpen:a,className:i,children:l}):(0,q.jsx)(Aq,{ref:t,as:n,"aria-current":o,active:!!o&&o!==`false`,className:i,"data-component":`NavigationList.Item`,...s,children:r})}jq.displayName=`NavigationList.Item`;var Mq=K(jq);const Nq=e=>typeof e==`string`||!(0,f.isValidElementType)(e)?e:(0,q.jsx)(e,{});function Pq(e,t){let{label:n=`Show more`,pages:r=0,items:i,renderItem:a,...o}=e,[s,c]=l.useState(0),u=Y(),d=i.length/r,f=r===0?i.length:Math.ceil(d*s),p=s===1?0:f-Math.floor(d);return rr(()=>{s!==0&&document.querySelector(`[data-expand-focus-target="${u}"]`)?.focus()},[s,u]),(0,q.jsxs)(q.Fragment,{children:[s>0?i.slice(0,f).map((e,t)=>{let{text:n,leadingVisual:r,trailingVisual:i,trailingAction:o,...s}=e,c=t===p?u:void 0;return a?a({...e,"data-expand-focus-target":c}):(0,q.jsxs)(Mq,{"data-expand-focus-target":c,...s,children:[r?(0,q.jsx)(ji.LeadingVisual,{children:(0,q.jsx)(r,{})}):null,n,i?(0,q.jsx)(ji.TrailingVisual,{children:Nq(i)}):null,o?(0,q.jsx)(ji.TrailingAction,{...o}):null]},e.id??t)}):null,s<r||s===0?(0,q.jsxs)(ji.Item,{ref:t,as:`button`,"aria-expanded":!1,onSelect:()=>c(e=>e+1),"data-component":`NavigationList.GroupExpand`,...o,children:[n,(0,q.jsx)(ji.TrailingVisual,{children:(0,q.jsx)(Pt,{})})]}):null]})}Pq.displayName=`NavigationList.GroupExpand`;var Fq=l.forwardRef(Pq);const Iq={root:`navigation-list-group-heading`};function Lq(e){let{as:t,className:n,...r}=e,i=l.useContext(fq);return(0,q.jsx)(ji.GroupHeading,{as:t??gq(i),className:G(Iq.root,n),"data-component":`NavigationList.GroupHeading`,...r})}Lq.displayName=`NavigationList.GroupHeading`;const Rq=yr(Lq,Hr),zq=Object.assign(bq,{Heading:dq,Item:Mq,SubNavigation:Oq,Group:xq,GroupHeading:Rq,GroupExpand:Fq,Description:Rr,LeadingVisual:ni,TrailingVisual:bi,TrailingAction:yi,Divider:Br}),Bq={root:`navigation-menu-heading`,hidden:`sr-only`};function Vq(e){let{as:t=`h2`,visuallyHidden:n=!1,className:r,...i}=e;return(0,q.jsx)(Tr,{as:t,size:`small`,className:G(n?Bq.hidden:Bq.root,r),"data-component":`NavigationMenu.Heading`,...i})}Vq.displayName=`NavigationMenu.Heading`;const Hq=(0,l.createContext)({openValue:null,setOpenValue:()=>{},orientation:`horizontal`,openOn:`click`,openAfterDelay:()=>{},closeAfterDelay:()=>{}}),Uq=(0,l.createContext)({value:``,triggerId:``,contentId:``,isOpen:!1}),Wq=(0,l.createContext)({linkId:``,descriptionId:``}),Gq=(0,l.createContext)(null),Kq=(0,l.createContext)({depth:0}),qq=e=>Number.parseInt(e.slice(1),10),Jq=e=>{let t=e===null?3:e+1;return`h${Math.min(Math.max(t,1),4)}`},Yq={root:`navigation-menu`},Xq={heading:Vq};function Zq(e,t){let{children:n,className:r,value:i,defaultValue:a=null,onValueChange:o,orientation:s=`horizontal`,openOn:c=`click`,openDelay:u=200,closeDelay:d=300,onBlur:f,"aria-label":p,"aria-labelledby":m,...h}=e,g=l.useRef(null),_=ar(t,g),[v,y]=xr(n,Xq),b=Y(),x=v.heading,S=x?x.props.id??b:void 0,C=x?qq(x.props.as??`h2`):null,w=m??(p?void 0:S),T=i!==void 0,[E,D]=l.useState(a),O=T?i:E,k=l.useRef(o);rr(()=>{k.current=o},[o]);let A=l.useRef(null),j=l.useRef(null),M=l.useCallback(()=>{A.current!==null&&(window.clearTimeout(A.current),A.current=null),j.current!==null&&(window.clearTimeout(j.current),j.current=null)},[]);l.useEffect(()=>M,[M]);let N=l.useCallback(e=>{M(),T||D(e),k.current?.(e)},[M,T]),P=l.useCallback(e=>{if(M(),O!==null){N(e);return}A.current=window.setTimeout(()=>{A.current=null,N(e)},u)},[M,u,O,N]),F=l.useCallback(()=>{M(),j.current=window.setTimeout(()=>{j.current=null,N(null)},d)},[M,d,N]);Hi(e=>{if(O===null)return;let t=g.current?.querySelector(`[aria-expanded='true']`);N(null),t?.focus(),e.preventDefault()}),l.useEffect(()=>{if(O===null)return;let e=e=>{let{target:t}=e;!(t instanceof Node)||g.current?.contains(t)||N(null)};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[O,N]);let I=e=>{f?.(e),O!==null&&(e.relatedTarget instanceof Node&&g.current?.contains(e.relatedTarget)||N(null))},L=l.useMemo(()=>({openValue:O,setOpenValue:N,orientation:s,openOn:c,openAfterDelay:P,closeAfterDelay:F}),[O,N,s,c,P,F]);return(0,q.jsx)(Hq.Provider,{value:L,children:(0,q.jsx)(`nav`,{ref:_,"aria-label":p,"aria-labelledby":w,className:G(Yq.root,r),"data-component":`NavigationMenu`,"data-orientation":s,...h,onBlur:I,children:(0,q.jsxs)(Gq.Provider,{value:C,children:[x?l.cloneElement(x,{id:S}):null,y]})})})}Zq.displayName=`NavigationMenu`;var Qq=l.forwardRef(Zq);const $q=W(`navigation-menu-content`,{variants:{open:{true:`motion-safe:data-[orientation=horizontal]:animate-in motion-safe:data-[orientation=horizontal]:fade-in motion-safe:data-[orientation=horizontal]:duration-short motion-safe:data-[orientation=horizontal]:slide-in-from-top-1`,false:``},align:{start:`navigation-menu-content-align-start`,center:`navigation-menu-content-align-center`,end:`navigation-menu-content-align-end`}}});function eJ(e,t){let{as:n=`div`,className:r,align:i=`start`,...a}=e,{orientation:o}=l.useContext(Hq),{triggerId:s,contentId:c,isOpen:u}=l.useContext(Uq);if(!c)return null;let d=o===`vertical`?void 0:i;return(0,q.jsx)(n,{ref:t,id:c,hidden:!u,"aria-labelledby":s,className:G($q({open:u,align:d}),r),"data-component":`NavigationMenu.Content`,"data-orientation":o,"data-align":d,"data-open":u?``:void 0,...a})}eJ.displayName=`NavigationMenu.Content`;var tJ=K(eJ);const nJ={root:`navigation-menu-description`};function rJ(e){let{className:t,...n}=e,{descriptionId:r}=l.useContext(Wq);return(0,q.jsx)(`span`,{id:r,className:G(nJ.root,t),"data-component":`NavigationMenu.Description`,...n})}rJ.displayName=`NavigationMenu.Description`;const iJ={root:`navigation-menu-divider`};function aJ(e){let{className:t,...n}=e;return(0,q.jsx)(`div`,{"aria-hidden":`true`,className:G(iJ.root,t),"data-component":`NavigationMenu.Divider`,...n})}aJ.displayName=`NavigationMenu.Divider`;const oJ={root:`navigation-menu-group-heading`};function sJ(e){let{as:t,className:n,...r}=e,i=l.useContext(Gq),a=t??Jq(i);return(0,q.jsx)(a,{className:G(oJ.root,n),"data-component":`NavigationMenu.GroupHeading`,...r})}sJ.displayName=`NavigationMenu.GroupHeading`;const cJ={root:`navigation-menu-group`},lJ={groupHeading:sJ};function uJ(e){let{title:t,children:n,className:r,hideDivider:i=!1,...a}=e,o=Y(),[s,c]=xr(n,lJ),u=s.groupHeading??(t?(0,q.jsx)(sJ,{children:t}):null),d=u?u.props.id??o:void 0;return(0,q.jsxs)(q.Fragment,{children:[i?null:(0,q.jsx)(aJ,{}),(0,q.jsxs)(`div`,{role:`group`,"aria-labelledby":d,className:G(cJ.root,r),"data-component":`NavigationMenu.Group`,...a,children:[u?l.cloneElement(u,{id:d}):null,c]})]})}uJ.displayName=`NavigationMenu.Group`;const dJ={root:`navigation-menu-item`};function fJ(e,t){let{children:n,className:r,value:i,onPointerEnter:a,onPointerLeave:o,...s}=e,c=Y(),u=i??c,d=Y(),f=Y(),{openValue:p,openOn:m,openAfterDelay:h,closeAfterDelay:g}=l.useContext(Hq),_=p===u,v=e=>{a?.(e),m===`hover`&&e.pointerType!==`touch`&&h(u)},y=e=>{o?.(e),m===`hover`&&e.pointerType!==`touch`&&g()},b=l.useMemo(()=>({value:u,triggerId:d,contentId:f,isOpen:_}),[u,d,f,_]);return(0,q.jsx)(Uq.Provider,{value:b,children:(0,q.jsx)(`li`,{ref:t,className:G(dJ.root,r),"data-component":`NavigationMenu.Item`,"data-open":_?``:void 0,...s,onPointerEnter:v,onPointerLeave:y,children:n})})}fJ.displayName=`NavigationMenu.Item`;var pJ=l.forwardRef(fJ);const mJ={root:`navigation-menu-visual`},hJ=({className:e,...t})=>(0,q.jsx)(`span`,{className:G(mJ.root,e),...t});function gJ(e){return(0,q.jsx)(hJ,{"data-component":`NavigationMenu.LeadingVisual`,...e})}gJ.displayName=`NavigationMenu.LeadingVisual`;const _J={root:`navigation-menu-sub-navigation`};function vJ(e,t){let{className:n,children:r,...i}=e,{linkId:a}=l.useContext(Wq),{depth:o}=l.useContext(Kq),s=l.useMemo(()=>({depth:o+1}),[o]);return!a||o>=4?null:(0,q.jsx)(Kq.Provider,{value:s,children:(0,q.jsx)(`ul`,{ref:t,"aria-labelledby":a,className:G(_J.root,n),"data-component":`NavigationMenu.SubNavigation`,"data-depth":o+1,...i,children:r})})}vJ.displayName=`NavigationMenu.SubNavigation`;var yJ=K(vJ);const bJ={root:`navigation-menu-visual-trailing`};function xJ(e){let{className:t,...n}=e;return(0,q.jsx)(hJ,{className:G(bJ.root,t),"data-component":`NavigationMenu.TrailingVisual`,...n})}xJ.displayName=`NavigationMenu.TrailingVisual`;const SJ={root:`navigation-menu-link`,active:`navigation-menu-link-active`,label:`navigation-menu-link-label`,item:`navigation-menu-sub-navigation-item`},CJ={leadingVisual:gJ,trailingVisual:xJ,description:rJ,subNavigation:yJ};function wJ(e,t){let{as:n=`a`,id:r,className:i,active:a,children:o,onClick:s,...c}=e,{setOpenValue:u}=l.useContext(Hq),{depth:d}=l.useContext(Kq),f=Y(r),p=Y(),[m,h]=xr(o,CJ),g=l.useMemo(()=>({linkId:f,descriptionId:p}),[f,p]),_=e=>{s?.(e),!e.defaultPrevented&&u(null)},v=(0,q.jsxs)(n,{ref:t,id:f,"aria-current":a?`page`:void 0,"aria-describedby":m.description?p:void 0,className:G(SJ.root,a&&SJ.active,i),"data-component":`NavigationMenu.Link`,"data-active":a?``:void 0,"data-has-description":m.description?``:void 0,...c,onClick:_,children:[m.leadingVisual,(0,q.jsxs)(`span`,{className:SJ.label,children:[h,m.description]}),m.trailingVisual]}),y=(0,q.jsxs)(Wq.Provider,{value:g,children:[v,m.subNavigation]});return d===0?y:(0,q.jsx)(`li`,{className:SJ.item,children:y})}wJ.displayName=`NavigationMenu.Link`;var TJ=K(wJ);const EJ={root:`navigation-menu-list`},DJ=(e,t)=>Array.from(e.querySelectorAll(`[data-component='NavigationMenu.Trigger'], [data-component='NavigationMenu.Link']`)).filter(e=>{let n=e.closest(`[data-component='NavigationMenu.Content']`);return n&&(t===`horizontal`||n.hasAttribute(`hidden`))?!1:!e.hasAttribute(`disabled`)&&e.getAttribute(`aria-disabled`)!==`true`});function OJ(e,t){let{children:n,className:r,onKeyDown:i,...a}=e,{orientation:o,openValue:s,setOpenValue:c}=l.useContext(Hq),u=l.useRef(null),d=ar(t,u),f=e=>{i?.(e);let t=u.current;if(e.defaultPrevented||!t)return;let n=o===`vertical`,r=n?`ArrowDown`:`ArrowRight`,a=n?`ArrowUp`:`ArrowLeft`;if(n&&e.key===`ArrowLeft`){let n=document.activeElement;if(s===null||!(n instanceof HTMLElement)||!t.contains(n))return;e.preventDefault(),e.stopPropagation(),n.closest(`[data-component='NavigationMenu.Content']`)?.closest(`li`)?.querySelector(`[data-component='NavigationMenu.Trigger']`)?.focus(),c(null);return}let l=e.key===`Home`||e.key===`End`,d=e.key===r?1:e.key===a?-1:0;if(d===0&&!l)return;let f=DJ(t,o),p=f.indexOf(document.activeElement);if(p!==-1){if(e.preventDefault(),e.stopPropagation(),!n&&s!==null&&c(null),l){f[e.key===`Home`?0:f.length-1].focus();return}f[(p+d+f.length)%f.length].focus()}};return(0,q.jsx)(`ul`,{ref:d,className:G(EJ.root,r),"data-component":`NavigationMenu.List`,"data-orientation":o,...a,onKeyDown:f,children:n})}OJ.displayName=`NavigationMenu.List`;var kJ=l.forwardRef(OJ);const AJ={root:`navigation-menu-trigger`,chevron:`navigation-menu-chevron`};function jJ(e,t){let{children:n,className:r,onClick:i,onKeyDown:a,...o}=e,{setOpenValue:s,orientation:c}=l.useContext(Hq),{value:u,triggerId:d,contentId:f,isOpen:p}=l.useContext(Uq),m=l.useRef(!1);if(rr(()=>{!p||!m.current||(m.current=!1,mr(document.getElementById(f))[0]?.focus())},[p,f]),!d)return null;let h=e=>{i?.(e),!e.defaultPrevented&&s(p?null:u)},g=e=>{if(a?.(e),e.defaultPrevented)return;let t=c===`vertical`?`ArrowRight`:`ArrowDown`;if(e.key===t){if(e.preventDefault(),!p){m.current=!0,s(u);return}mr(document.getElementById(f))[0]?.focus()}};return(0,q.jsxs)(`button`,{ref:t,type:`button`,id:d,"aria-expanded":p,"aria-controls":f,className:G(AJ.root,r),"data-component":`NavigationMenu.Trigger`,"data-open":p?``:void 0,...o,onClick:h,onKeyDown:g,children:[n,(0,q.jsx)(Qt,{className:AJ.chevron})]})}jJ.displayName=`NavigationMenu.Trigger`;var MJ=l.forwardRef(jJ);const NJ=Object.assign(Qq,{Heading:Vq,List:kJ,Item:pJ,Trigger:MJ,Content:tJ,Link:TJ,SubNavigation:yJ,Group:uJ,GroupHeading:sJ,Description:rJ,LeadingVisual:gJ,TrailingVisual:xJ,Divider:aJ}),PJ={root:`number-input`,stepper:`number-input-stepper`,step:`number-input-step`},FJ=({incrementLabel:e,decrementLabel:t,canIncrement:n,canDecrement:r,onIncrement:i,onDecrement:a})=>(0,q.jsxs)(`span`,{className:PJ.stepper,"data-component":`NumberInput.Stepper`,children:[(0,q.jsx)(gi,{type:`button`,variant:`invisible`,size:`small`,icon:tn,"aria-label":e,disabled:!n,tabIndex:-1,onClick:i,className:PJ.step,"data-component":`NumberInput.Increment`}),(0,q.jsx)(gi,{type:`button`,variant:`invisible`,size:`small`,icon:Qt,"aria-label":t,disabled:!r,tabIndex:-1,onClick:a,className:PJ.step,"data-component":`NumberInput.Decrement`})]});function IJ(e,t){let{className:n,value:r,defaultValue:i,min:a,max:o,step:s=1,disabled:c,readOnly:u,hideStepper:d=!1,incrementLabel:f=`Increase`,decrementLabel:p=`Decrease`,onChange:m,...h}=e,g=l.useRef(null),_=ar(t,g),v=r!==void 0,[y,b]=l.useState(i??null),x=v?r:y,S=(e,t)=>{v||b(e),m?.(e,t)},C=e=>{S(RK(e.target),e)},w=e=>{let t=LK(x,e,{step:s,min:a,max:o});!v&&g.current&&(g.current.value=String(t)),S(t),g.current?.focus()},T=x!=null&&o!==void 0&&x>=o,E=x!=null&&a!==void 0&&x<=a,D=!!c||!!u;return(0,q.jsx)(qo,{ref:_,type:`number`,value:v?x??``:void 0,defaultValue:v?void 0:i,min:a,max:o,step:s,disabled:c,readOnly:u,onChange:C,className:G(PJ.root,n),trailingAction:d?void 0:(0,q.jsx)(FJ,{incrementLabel:f,decrementLabel:p,canIncrement:!D&&!T,canDecrement:!D&&!E,onIncrement:()=>w(1),onDecrement:()=>w(-1)}),"data-component":`NumberInput`,...h})}IJ.displayName=`NumberInput`;var LJ=K(IJ);const RJ={current:null},zJ=(0,l.createContext)({padding:`normal`,rowGap:`normal`,columnGap:`normal`,paneRef:RJ,contentWrapperRef:RJ,sidebarRef:RJ,sidebarContentWrapperRef:RJ}),BJ={root:`page-layout-horizontal-divider`};function VJ(e,t){let{className:n,style:r,variant:i=`none`,position:a,...o}=e,{padding:s}=l.useContext(zJ);return(0,q.jsx)(`div`,{ref:t,className:G(BJ.root,n),style:{"--spacing-divider":`var(--page-layout-spacing-${s})`,...r},"data-component":`PageLayout.HorizontalDivider`,...Ui(`variant`,i),...Ui(`position`,a),...o})}VJ.displayName=`PageLayout.HorizontalDivider`;var HJ=K(VJ);const UJ={root:`page-layout-footer`,hidden:`page-layout-hidden`,divider:`page-layout-footer-divider`,content:`page-layout-region-content`};function WJ(e,t){let{className:n,style:r,children:i,padding:a=`none`,divider:o=`none`,hidden:s=!1,...c}=e,{rowGap:u}=l.useContext(zJ);return(0,q.jsxs)(`footer`,{ref:t,className:G(UJ.root,UJ.hidden,n),style:{"--spacing":`var(--page-layout-spacing-${u})`,...r},"data-component":`PageLayout.Footer`,...Ui(`hidden`,s),...c,children:[(0,q.jsx)(HJ,{variant:o,className:UJ.divider,style:{"--spacing":`var(--page-layout-spacing-${u})`}}),(0,q.jsx)(`div`,{className:UJ.content,style:{"--spacing":`var(--page-layout-spacing-${a})`},children:i})]})}WJ.displayName=`PageLayout.Footer`;var GJ=K(WJ);const KJ={root:`page-layout-header`,hidden:`page-layout-hidden`,content:`page-layout-region-content`,divider:`page-layout-header-divider`};function qJ(e,t){let{className:n,style:r,children:i,padding:a=`none`,divider:o=`none`,hidden:s=!1,...c}=e,{rowGap:u}=l.useContext(zJ);return(0,q.jsxs)(`header`,{ref:t,className:G(KJ.root,KJ.hidden,n),style:{"--spacing":`var(--page-layout-spacing-${u})`,...r},"data-component":`PageLayout.Header`,...Ui(`hidden`,s),...c,children:[(0,q.jsx)(`div`,{className:KJ.content,style:{"--spacing":`var(--page-layout-spacing-${a})`},children:i}),(0,q.jsx)(HJ,{variant:o,className:KJ.divider,style:{"--spacing":`var(--page-layout-spacing-${u})`}})]})}qJ.displayName=`PageLayout.Header`;var JJ=K(qJ);const YJ=1280,XJ={small:256,medium:296,large:320},ZJ=e=>typeof e==`object`&&`min`in e&&`default`in e&&`max`in e,QJ=e=>e===`small`||e===`medium`||e===`large`,$J=e=>QJ(e)?XJ[e]:ZJ(e)?parseInt(e.default,10):0,eY=()=>$n&&window.innerWidth>=1280?959:511,tY=e=>`Pane width ${e} pixels`,nY=(e,t,n=tY)=>{e&&(t.min!==void 0&&e.setAttribute(`aria-valuemin`,String(t.min)),t.max!==void 0&&e.setAttribute(`aria-valuemax`,String(t.max)),t.current!==void 0&&(e.setAttribute(`aria-valuenow`,String(t.current)),e.setAttribute(`aria-valuetext`,n(t.current))))},rY=({handle:e,pane:t,contentWrapper:n})=>{e?.style.setProperty(`--drag-handle-background-color`,`var(--background-color-accent-emphasis)`),e?.style.setProperty(`--drag-handle-opacity`,`1`),e?.style.setProperty(`--drag-handle-transition`,`none`),t?.setAttribute(`data-dragging`,`true`),n?.setAttribute(`data-dragging`,`true`)},iY=({handle:e,pane:t,contentWrapper:n})=>{e?.style.removeProperty(`--drag-handle-background-color`),e?.style.removeProperty(`--drag-handle-opacity`),e?.style.removeProperty(`--drag-handle-transition`),t?.removeAttribute(`data-dragging`),n?.removeAttribute(`data-dragging`)},aY={save:(e,t)=>{try{localStorage.setItem(e,String(t))}catch{}},get:e=>{try{let t=localStorage.getItem(e);if(t!==null){let e=Number(t);if(!Number.isNaN(e)&&e>0)return Math.round(e)}}catch{}return null}},oY={root:`page-layout-drag-handle`},sY=e=>e===`ArrowLeft`||e===`ArrowRight`||e===`ArrowUp`||e===`ArrowDown`,cY=e=>e===`ArrowLeft`||e===`ArrowDown`;function lY(e){let{className:t,handleRef:n,onDragStart:r,onDrag:i,onDragEnd:a,onDoubleClick:o,"aria-label":s,"aria-labelledby":c,"aria-valuemin":u,"aria-valuemax":d,"aria-valuenow":f,dragTargetRef:p,contentWrapperRef:m,formatValueText:h=tY}=e,g=l.useRef({onDragStart:r,onDrag:i,onDragEnd:a});l.useEffect(()=>{g.current={onDragStart:r,onDrag:i,onDragEnd:a}});let _=l.useRef(!1),v=l.useRef(null),y=l.useRef(null),b=l.useCallback(()=>{_.current||=(rY({handle:n.current,pane:p?.current??null,contentWrapper:m?.current??null}),!0)},[n,p,m]),x=l.useCallback(()=>{_.current&&=(iY({handle:n.current,pane:p?.current??null,contentWrapper:m?.current??null}),!1)},[n,p,m]);return l.useEffect(()=>()=>{v.current!==null&&(cancelAnimationFrame(v.current),v.current=null)},[]),(0,q.jsx)(`div`,{ref:n,role:`slider`,tabIndex:0,"aria-label":c?void 0:s??`Draggable pane splitter`,"aria-labelledby":c,"aria-valuemin":u,"aria-valuemax":d,"aria-valuenow":f,"aria-valuetext":f===void 0?void 0:h(f),className:G(oY.root,t),onPointerDown:e=>{if(e.button===0){e.preventDefault();try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}g.current.onDragStart(e.clientX),b()}},onPointerMove:e=>{_.current&&(e.preventDefault(),y.current=e.clientX,v.current===null&&(v.current=requestAnimationFrame(()=>{v.current=null,y.current!==null&&(g.current.onDrag(y.current,!1),y.current=null)})))},onPointerUp:e=>{_.current&&e.preventDefault()},onLostPointerCapture:()=>{_.current&&(v.current!==null&&(cancelAnimationFrame(v.current),v.current=null,y.current=null),x(),g.current.onDragEnd())},onKeyDown:e=>{sY(e.key)&&(e.preventDefault(),b(),g.current.onDrag(cY(e.key)?-3:3,!0))},onKeyUp:e=>{sY(e.key)&&(e.preventDefault(),x(),g.current.onDragEnd())},onDoubleClick:o,"data-component":`PageLayout.DragHandle`})}lY.displayName=`PageLayout.DragHandle`;const uY={root:`page-layout-vertical-divider`};function dY(e,t){let{className:n,variant:r=`none`,position:i,...a}=e;return(0,q.jsx)(`div`,{ref:t,className:G(uY.root,n),"data-component":`PageLayout.VerticalDivider`,...Ui(`variant`,r),...Ui(`position`,i),...a})}dY.displayName=`PageLayout.VerticalDivider`;var fY=K(dY);const pY=({width:e,minWidth:t,resizable:n,widthStorageKey:r,paneRef:i,handleRef:a,contentWrapperRef:o,constrainToViewport:s=!1,onResizeEnd:c,currentWidth:u,formatValueText:d})=>{let f=ZJ(e),p=f?parseInt(e.min,10):t,m=f?parseInt(e.max,10):null,h=l.useMemo(()=>$J(e),[e]),g=l.useRef(r),_=l.useRef(c),v=l.useRef(d);rr(()=>{g.current=r,_.current=c,v.current=d});let y=l.useRef(s?256:511),b=l.useCallback(()=>{let e=window.innerWidth,t=e>0?Math.max(p,e-y.current):p;return m===null?t:s?Math.min(m,t):m},[m,p,s]),[x,S]=l.useState(()=>typeof u==`number`?u:c===void 0&&n===!0&&r!==void 0?aY.get(r)??h:h),[C,w]=l.useState(h),[T,E]=l.useState(u),D=u!==T;D&&(E(u),typeof u==`number`?S(u):T!==void 0&&S(h)),h!==C&&(w(h),u===void 0&&!D&&S(h));let O=u??x,k=l.useRef(O),[A,j]=l.useState(()=>m??600),M=l.useRef(A);rr(()=>{k.current=O},[O]);let N=l.useCallback(()=>$J(e),[e]),P=l.useCallback(e=>{let t=Math.round(e);if(k.current=t,l.startTransition(()=>{S(t)}),_.current){try{_.current(t)}catch{}return}n&&g.current&&aY.save(g.current,t)},[n]),F=l.useRef(b);return rr(()=>{F.current=b}),rr(()=>{if(!n)return;let e=window.innerWidth,t=()=>{let t=window.innerWidth,n=e<YJ!=t<YJ;e=t,n&&(y.current=eY());let r=F.current();i.current?.style.setProperty(`--pane-max-width`,`${r}px`);let o=k.current>r;o&&(k.current=r,i.current?.style.setProperty(`--pane-width`,`${r}px`)),nY(a.current,{max:r,current:k.current},v.current),(r!==M.current||o)&&(M.current=r,l.startTransition(()=>{j(r),o&&S(r)}))};y.current=eY();let r=F.current();if(M.current=r,i.current?.style.setProperty(`--pane-max-width`,`${r}px`),nY(a.current,{min:p,max:r,current:k.current},v.current),l.startTransition(()=>{j(r)}),m!==null&&!s)return;let c=0,u=null,d=null,f=!1,h=()=>{f||(f=!0,i.current?.setAttribute(`data-dragging`,`true`),o?.current?.setAttribute(`data-dragging`,`true`))},g=()=>{f&&(f=!1,i.current?.removeAttribute(`data-dragging`),o?.current?.removeAttribute(`data-dragging`))},_=()=>{h();let e=performance.now();e-c>=16?(c=e,t()):u===null&&(u=requestAnimationFrame(()=>{u=null,c=performance.now(),t()})),d!==null&&clearTimeout(d),d=setTimeout(g,150)};return window.addEventListener(`resize`,_),()=>{u!==null&&cancelAnimationFrame(u),d!==null&&clearTimeout(d),g(),window.removeEventListener(`resize`,_)}},[n,m,s,p,i,a,o]),{currentWidth:O,currentWidthRef:k,minPaneWidth:p,maxPaneWidth:A,getMaxPaneWidth:b,getDefaultWidth:N,saveWidth:P}},mY={wrapper:`page-layout-sidebar-wrapper`,hidden:`page-layout-hidden`,position:`page-layout-sidebar-position`,sticky:`page-layout-sidebar-sticky`,fullscreen:`page-layout-sidebar-fullscreen`,sidebar:`page-layout-sidebar`,sidebarResizable:`page-layout-sidebar-resizable`,dragging:`page-layout-dragging`,sidebarFullscreen:`page-layout-sidebar-fullscreen-inner`,divider:`page-layout-sidebar-divider`};function hY(e,t){let{className:n,style:r,children:i,id:a,position:o=`start`,width:s=`medium`,minWidth:c=256,currentWidth:u,onResizeEnd:d,widthStorageKey:f,padding:p=`none`,divider:m=`none`,resizable:h=!1,sticky:g=!1,responsiveVariant:_=`default`,hidden:v=!1,"aria-label":y,"aria-labelledby":b,...x}=e,{columnGap:S,sidebarRef:C,sidebarContentWrapperRef:w}=l.useContext(zJ),T=l.useRef(null),E=l.useRef(0),D=l.useRef(0),O=l.useRef(0),{currentWidth:k,currentWidthRef:A,minPaneWidth:j,maxPaneWidth:M,getMaxPaneWidth:N,getDefaultWidth:P,saveWidth:F}=pY({width:s,minWidth:c,resizable:h,widthStorageKey:f,paneRef:C,handleRef:T,contentWrapperRef:w,constrainToViewport:!0,onResizeEnd:d,currentWidth:u}),I=ar(t,C),L=Tp(C),ee=Y(a),R=L?{role:`region`,tabIndex:0,...b?{"aria-labelledby":b}:y?{"aria-label":y}:{}}:{},z=e=>{C.current?.style.setProperty(`--pane-width`,`${e}px`),A.current=e},te=(0,q.jsx)(fY,{variant:h?`line`:m,position:o,className:mY.divider,children:h?(0,q.jsx)(lY,{handleRef:T,dragTargetRef:C,contentWrapperRef:w,"aria-valuemin":j,"aria-valuemax":M,"aria-valuenow":k,onDragStart:e=>{E.current=e,D.current=C.current?.getBoundingClientRect().width??A.current,O.current=N()},onDrag:(e,t)=>{let n=t?N():O.current;if(t){let t=o===`end`?-e:e,r=Math.max(j,Math.min(n,A.current+t));r!==A.current&&(z(r),nY(T.current,{current:r,max:n}));return}if(!C.current)return;let r=e-E.current,i=Math.max(j,Math.min(n,D.current+(o===`end`?-r:r)));Math.round(i)!==Math.round(A.current)&&(z(i),nY(T.current,{current:Math.round(i),max:n}))},onDragEnd:()=>F(A.current),onDoubleClick:()=>{let e=P();z(e),nY(T.current,{current:e}),F(e)}}):null});return(0,q.jsxs)(`div`,{className:G(mY.wrapper,mY.hidden,mY.position,mY.sticky,mY.fullscreen,n),style:{"--spacing-column":`var(--page-layout-spacing-${S})`,...r},"data-position":o,"data-sticky":g||void 0,"data-responsive-variant":_==="default"?void 0:_,...Ui(`is-hidden`,v),children:[o===`end`?te:null,(0,q.jsx)(`div`,{ref:I,suppressHydrationWarning:h&&!!f&&!d,className:G(mY.sidebar,mY.sidebarResizable,mY.sidebarFullscreen,mY.dragging),style:{"--spacing":`var(--page-layout-spacing-${p})`,"--pane-min-width":ZJ(s)?s.min:`${c}px`,"--pane-max-width":ZJ(s)?s.max:`calc(100vw - var(--sidebar-max-width-diff))`,"--pane-width-custom":ZJ(s)?s.default:void 0,"--pane-width-size":`var(--pane-width-${QJ(s)?s:`custom`})`,"--pane-width":`${k}px`},"data-component":`PageLayout.Sidebar`,"data-resizable":h||void 0,...R,...a?{id:ee}:{},...x,children:i}),o===`start`?te:null]})}hY.displayName=`PageLayout.Sidebar`;var gY=K(hY);const _Y={content:`page-layout-content-row`},vY=W(`page-layout`,{variants:{hasSidebar:{true:`page-layout-has-sidebar`,false:``}}}),yY=W(`page-layout-wrapper`,{variants:{width:{full:`page-layout-width-full`,medium:`page-layout-width-medium`,large:`page-layout-width-large`,xlarge:`page-layout-width-xlarge`}}});function bY(e,t){let{className:n,style:r,children:i,containerWidth:a=`xlarge`,padding:o=`normal`,rowGap:s=`normal`,columnGap:c=`normal`,...u}=e,d=l.useRef(null),f=l.useRef(null),p=l.useRef(null),m=l.useRef(null),[h,g]=xr(i,{header:JJ,footer:GJ,sidebar:gY}),_=l.useMemo(()=>({padding:o,rowGap:s,columnGap:c,paneRef:d,contentWrapperRef:f,sidebarRef:p,sidebarContentWrapperRef:m}),[o,s,c]);return(0,q.jsx)(zJ.Provider,{value:_,children:(0,q.jsxs)(`div`,{ref:t,className:G(vY({hasSidebar:!!h.sidebar}),n),style:{"--spacing":`var(--page-layout-spacing-${o})`,...r},"data-component":`PageLayout`,"data-has-sidebar":h.sidebar?``:void 0,...u,children:[h.sidebar,(0,q.jsxs)(`div`,{ref:m,className:G(yY({width:a})),"data-page-layout-wrapper":``,"data-width":a,children:[h.header,(0,q.jsx)(`div`,{className:_Y.content,children:g}),h.footer]})]})})}bY.displayName=`PageLayout`;var xY=K(bY);const SY={wrapper:`page-layout-content-wrapper`,hidden:`page-layout-hidden`,dragging:`page-layout-dragging`},CY=W(`page-layout-content`,{variants:{width:{full:`page-layout-content-width-full`,medium:`page-layout-content-width-medium`,large:`page-layout-content-width-large`,xlarge:`page-layout-content-width-xlarge`}}});function wY(e,t){let{as:n=`main`,className:r,children:i,width:a=`full`,padding:o=`none`,hidden:s=!1,...c}=e,{contentWrapperRef:u}=l.useContext(zJ),d=ar(t,u);return(0,q.jsx)(n,{ref:d,className:G(SY.wrapper,SY.hidden,SY.dragging,r),"data-component":`PageLayout.Content`,...Ui(`is-hidden`,s),...c,children:(0,q.jsx)(`div`,{className:G(CY({width:a})),"data-width":a,style:{"--spacing":`var(--page-layout-spacing-${o})`},children:i})})}wY.displayName=`PageLayout.Content`;var TY=K(wY);const EY={wrapper:`page-layout-pane-wrapper`,hidden:`page-layout-hidden`,position:`page-layout-pane-position`,sticky:`page-layout-pane-sticky`,pane:`page-layout-pane`,paneResizable:`page-layout-pane-resizable`,dragging:`page-layout-dragging`,horizontalDivider:`page-layout-pane-horizontal-divider`,verticalDivider:`page-layout-pane-vertical-divider`};function DY(e,t){let{className:n,style:r,children:i,id:a,position:o=`end`,width:s=`medium`,minWidth:c=256,currentWidth:u,onResizeEnd:d,widthStorageKey:f=`paneWidth`,padding:p=`none`,divider:m=`none`,resizable:h=!1,sticky:g=!1,offsetHeader:_=0,hidden:v=!1,"aria-label":y,"aria-labelledby":b,...x}=e,S=ls(o)?`end`:o,C=ls(m)?`none`:m,{rowGap:w,columnGap:T,paneRef:E,contentWrapperRef:D}=l.useContext(zJ),O=l.useRef(null),k=l.useRef(0),A=l.useRef(0),j=l.useRef(0),{currentWidth:M,currentWidthRef:N,minPaneWidth:P,maxPaneWidth:F,getMaxPaneWidth:I,getDefaultWidth:L,saveWidth:ee}=pY({width:s,minWidth:c,resizable:h,widthStorageKey:f,paneRef:E,handleRef:O,contentWrapperRef:D,onResizeEnd:d,currentWidth:u}),R=ar(t,E),z=Tp(E),te=Y(a),ne=z?{role:`region`,tabIndex:0,...b?{"aria-labelledby":b}:y?{"aria-label":y}:{}}:{},B=e=>{E.current?.style.setProperty(`--pane-width`,`${e}px`),N.current=e};return(0,q.jsxs)(`div`,{className:G(EY.wrapper,EY.hidden,EY.position,EY.sticky,n),style:{"--offset-header":typeof _==`number`?`${_}px`:_,"--spacing-row":`var(--page-layout-spacing-${w})`,"--spacing-column":`var(--page-layout-spacing-${T})`,...r},"data-sticky":g||void 0,...Ui(`is-hidden`,v),...Ui(`position`,o),children:[(0,q.jsx)(HJ,{variant:ls(m)?m:{narrow:C,regular:`none`},position:o,className:EY.horizontalDivider,style:{"--spacing":`var(--page-layout-spacing-${w})`}}),(0,q.jsx)(`div`,{ref:R,suppressHydrationWarning:h&&!d,className:G(EY.pane,EY.paneResizable,EY.dragging),style:{"--spacing":`var(--page-layout-spacing-${p})`,"--pane-min-width":ZJ(s)?s.min:`${c}px`,"--pane-max-width":ZJ(s)?s.max:`calc(100vw - var(--pane-max-width-diff))`,"--pane-width-custom":ZJ(s)?s.default:void 0,"--pane-width-size":`var(--pane-width-${QJ(s)?s:`custom`})`,"--pane-width":`${M}px`},"data-component":`PageLayout.Pane`,"data-resizable":h||void 0,...ne,...a?{id:te}:{},...x,children:i}),(0,q.jsx)(fY,{variant:ls(m)?{narrow:`none`,regular:h?`line`:m.regular??`none`,wide:h?`line`:m.wide??m.regular??`none`}:{narrow:`none`,regular:h?`line`:C},position:o,className:EY.verticalDivider,style:{"--spacing":`var(--page-layout-spacing-${T})`},children:h?(0,q.jsx)(lY,{handleRef:O,dragTargetRef:E,contentWrapperRef:D,"aria-valuemin":P,"aria-valuemax":F,"aria-valuenow":M,onDragStart:e=>{k.current=e,A.current=E.current?.getBoundingClientRect().width??N.current,j.current=I()},onDrag:(e,t)=>{let n=t?I():j.current;if(t){let t=Math.max(P,Math.min(n,N.current+e));t!==N.current&&(B(t),nY(O.current,{current:t,max:n}));return}if(!E.current)return;let r=e-k.current,i=Math.max(P,Math.min(n,A.current+(S===`end`?-r:r)));Math.round(i)!==Math.round(N.current)&&(B(i),nY(O.current,{current:Math.round(i),max:n}))},onDragEnd:()=>ee(N.current),onDoubleClick:()=>{let e=L();B(e),nY(O.current,{current:e}),ee(e)}}):null})]})}DY.displayName=`PageLayout.Pane`;var OY=K(DY);const kY=Object.assign(xY,{Header:JJ,Content:TY,Pane:OY,Sidebar:gY,Footer:GJ}),AY=[`narrow`,`regular`,`wide`],jY={root:`pagination`,steps:`pagination-steps`,hidden:{narrow:`pagination-hidden-narrow`,regular:`pagination-hidden-regular`,wide:`pagination-hidden-wide`}},MY=W(`pagination-step`,{variants:{step:{previous:`pagination-step-previous`,next:`pagination-step-next`},current:{true:`pagination-step-current`,false:``},inert:{true:`pagination-step-inert`,false:``}}}),NY=e=>typeof e==`object`?AY.filter(t=>e[t]===!1):e?[]:[...AY],PY=({page:e,children:t})=>(0,q.jsxs)(q.Fragment,{children:[e.type===`previous`?(0,q.jsx)($t,{"data-component":`Pagination.PreviousPageIcon`}):null,t,e.type===`next`?(0,q.jsx)(en,{"data-component":`Pagination.NextPageIcon`}):null]}),FY=e=>`#${e}`;function IY(e,t){let{as:n=`nav`,className:r,pageCount:i,currentPage:a,onPageChange:o,hrefBuilder:s=FY,marginPageCount:c=1,surroundingPageCount:u=2,showPages:d=!0,renderPage:f,...p}=e,m=l.useMemo(()=>e_(i,a,!!d,c,u),[i,a,d,c,u]),h=NY(d),g=m.map(e=>{let{key:t,content:n,presentational:r,props:i}=t_(e,s,t=>o?.(t,e.num)),a=e.type===`previous`||e.type===`next`,c=!!r||!!i[`aria-hidden`],l=G(MY({step:a?e.type:void 0,current:e.selected,inert:c}));if(f&&!r)return f({key:t,children:(0,q.jsx)(PY,{page:e,children:n}),number:e.num,className:l,"data-component":`Pagination.Page`,...i});let u=r?`span`:`a`,d=a?e.type===`previous`?`Pagination.PreviousPage`:`Pagination.NextPage`:`Pagination.Page`;return(0,q.jsx)(u,{role:r?`presentation`:void 0,className:l,"data-component":d,...i,children:(0,q.jsx)(PY,{page:e,children:n})},t)});return(0,q.jsx)(n,{ref:t,"aria-label":`Pagination`,className:G(jY.root,r),"data-component":`Pagination`,...p,children:(0,q.jsx)(`div`,{className:G(jY.steps,h.map(e=>jY.hidden[e])),"data-hidden-viewport-ranges":h.join(` `)||void 0,children:g})})}IY.displayName=`Pagination`;var LY=K(IY);const RY={root:`password-input`,toggle:`password-input-toggle`};function zY(e,t){let{className:n,visible:r,defaultVisible:i=!1,onVisibilityChange:a,hideToggle:o=!1,showLabel:s=`Show password`,hideLabel:c=`Hide password`,disabled:u,...d}=e,f=r!==void 0,[p,m]=l.useState(i),h=f?r:p;return(0,q.jsx)(qo,{ref:t,type:h?`text`:`password`,disabled:u,className:G(RY.root,n),trailingAction:o?void 0:(0,q.jsx)(qo.Action,{icon:h?pn:mn,"aria-label":h?c:s,disabled:u,onClick:e=>{e.stopPropagation();let t=!h;f||m(t),a?.(t)},className:RY.toggle,"data-component":`PasswordInput.Toggle`}),"data-component":`PasswordInput`,...d})}zY.displayName=`PasswordInput`;var BY=K(zY);const VY={root:`pin-input`},HY=W(`pin-input-box`,{variants:{size:{small:`pin-input-box-small`,medium:`pin-input-box-medium`,large:`pin-input-box-large`}}}),UY={numeric:/[0-9]/,alphanumeric:/[0-9a-zA-Z]/},WY=(e,t)=>Array.from(e).filter(e=>UY[t].test(e)).join(``);function GY(e,t){let{className:n,length:r=6,value:i,defaultValue:a=``,type:o=`numeric`,mask:s=!1,size:c=`medium`,disabled:u,readOnly:d,required:f,validationStatus:p,autoFocus:m,autoComplete:h,boxLabel:g=`Digit`,onChange:_,onComplete:v,"aria-label":y,"aria-labelledby":b,...x}=e,S=l.useRef([]),C=i!==void 0,[w,T]=l.useState(()=>WY(a,o).slice(0,r)),E=C?i:w,D=Array.from({length:r},(e,t)=>E[t]??``),O=D.findIndex(e=>e===``),k=l.useRef(!1),A=e=>{let t=S.current[e];k.current=!0,t?.focus(),t?.select(),k.current=!1},j=e=>{C||T(e),_?.(e),e.length===r&&v?.(e)},M=(e,t)=>{let n=WY(t,o);if(n.length===0)return;let i=O===-1?e:Math.min(e,O),a=[...D],s=i;Array.from(n).forEach(e=>{s<r&&(a[s]=e,s+=1)}),j(a.join(``)),A(Math.min(s,r-1))},N=e=>{let t=[...D];t[e]=``,j(t.join(``))},P=e=>{if(k.current)return;let t=O===-1?e:Math.min(e,O);t!==e&&A(t)},F=(e,t)=>{if(t.target.value===``){N(e);return}M(e,t.target.value)},I=(e,t)=>{u||d||(t.preventDefault(),M(e,t.clipboardData.getData(`text`)))},L=(e,t)=>{if(!(u||d)){if(t.key===`Backspace`){if(t.preventDefault(),D[e]!==``){N(e);return}e>0&&(N(e-1),A(e-1));return}if(t.key===`Delete`){t.preventDefault(),N(e);return}if(t.key===`ArrowLeft`&&e>0){t.preventDefault(),A(e-1);return}if(t.key===`ArrowRight`&&e<r-1){t.preventDefault(),A(e+1);return}if(t.key===`Home`){t.preventDefault(),A(0);return}t.key===`End`&&(t.preventDefault(),A(r-1))}};return(0,q.jsx)(`div`,{ref:t,role:y||b?`group`:void 0,"aria-label":y,"aria-labelledby":b,className:G(VY.root,n),"data-component":`PINInput`,"data-size":c,"data-disabled":u,"data-validation":p,...x,children:D.map((e,t)=>(0,q.jsx)(qo,{ref:e=>{S.current[t]=e},type:s?`password`:`text`,inputMode:o===`numeric`?`numeric`:`text`,size:c,value:e,maxLength:1,disabled:u,readOnly:d,required:f,validationStatus:p,autoFocus:m&&t===0,autoComplete:t===0?h:`off`,"aria-label":`${g} ${t+1} of ${r}`,onChange:e=>F(t,e),onKeyDown:e=>L(t,e),onPaste:e=>I(t,e),onFocus:()=>P(t),className:G(HY({size:c})),"data-component":`PINInput.Box`},t))})}GY.displayName=`PINInput`;var KY=K(GY);const qY={root:`placeholder`};function JY(e,t){let{as:n=`div`,className:r,width:i,height:a,label:o,style:s,children:c,...l}=e;return(0,q.jsx)(n,{ref:t,className:G(qY.root,r),style:{...s,"--placeholder-width":i,"--placeholder-height":a},"data-component":`Placeholder`,...l,children:c??o})}JY.displayName=`Placeholder`;var YY=K(JY);const XY=(0,l.createContext)({}),ZY=W(`popover`,{variants:{open:{true:`popover-open`,false:``},relative:{true:`popover-relative`,false:``}}});function QY(e,t){let{as:n=`div`,className:r,caret:i=`top`,open:a=!1,relative:o=!1,...s}=e,c={open:a,caret:i};return(0,q.jsx)(XY.Provider,{value:c,children:(0,q.jsx)(n,{ref:t,className:G(ZY({open:a,relative:o}),r),"data-component":`Popover`,"data-caret":i,"data-open":a?``:void 0,"data-relative":o?``:void 0,...s})})}QY.displayName=`Popover`;var $Y=K(QY);const eX=W(`popover-content`,{variants:{caret:{top:`popover-content-caret-top`,bottom:`popover-content-caret-bottom`,left:`popover-content-caret-left`,right:`popover-content-caret-right`,"top-left":`popover-content-caret-top-left`,"top-right":`popover-content-caret-top-right`,"bottom-left":`popover-content-caret-bottom-left`,"bottom-right":`popover-content-caret-bottom-right`,"left-top":`popover-content-caret-left-top`,"left-bottom":`popover-content-caret-left-bottom`,"right-top":`popover-content-caret-right-top`,"right-bottom":`popover-content-caret-right-bottom`},width:{xsmall:`popover-content-width-xsmall`,small:`popover-content-width-small`,medium:`popover-content-width-medium`,large:`popover-content-width-large`,xlarge:`popover-content-width-xlarge`,auto:`popover-content-width-auto`},height:{small:`popover-content-height-small`,medium:`popover-content-height-medium`,large:`popover-content-height-large`,xlarge:`popover-content-height-xlarge`,auto:`popover-content-height-auto`,"fit-content":`popover-content-height-fit-content`},overflow:{auto:`popover-content-overflow-auto`,hidden:`popover-content-overflow-hidden`,scroll:`popover-content-overflow-scroll`,visible:`popover-content-overflow-visible`}}}),tX=[];function nX(e,t){let{as:n=`div`,className:r,width:i=`small`,height:a=`fit-content`,overflow:o=`visible`,onClickOutside:s,onEscape:c,ignoreClickRefs:u=tX,...d}=e,{open:f=!1,caret:p=`top`}=l.useContext(XY),m=l.useRef(null),h=ar(t,m);return l.useEffect(()=>{if(!f||!s)return;let e=e=>{if(e instanceof MouseEvent&&e.button>0)return;let{target:t}=e;t instanceof Node&&(m.current?.contains(t)||u.some(({current:e})=>e?.contains(t))||s(e))};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[f,s,u]),Hi(e=>{!f||!c||(c(e),e.preventDefault())}),(0,q.jsx)(n,{ref:h,className:G(eX({caret:p,width:i,height:a,overflow:o}),r),"data-component":`Popover.Content`,"data-caret":p,"data-width":i,"data-height":a,"data-overflow":o,...d})}nX.displayName=`Popover.Content`;var rX=K(nX);const iX=Object.assign($Y,{Content:rX}),aX={ring:`progress-circle-ring`,track:`progress-circle-track`,indicator:`progress-circle-indicator`,label:`progress-circle-label`},oX=W(`progress-circle`,{variants:{size:{small:`progress-circle-small`,medium:`progress-circle-medium`,large:`progress-circle-large`},variant:{accent:`progress-circle-accent`,attention:`progress-circle-attention`,danger:`progress-circle-danger`,done:`progress-circle-done`,neutral:`progress-circle-neutral`,severe:`progress-circle-severe`,sponsors:`progress-circle-sponsors`,success:`progress-circle-success`}}});function sX(e,t){let{as:n=`span`,className:r,progress:i=0,size:a=`medium`,variant:o=`success`,style:s,children:c,"aria-valuenow":u,...d}=e,f=Math.min(Math.max(i,0),100),p=l.Children.toArray(c).length>0;return(0,q.jsxs)(n,{ref:t,role:`progressbar`,"aria-valuenow":u??Math.round(f),"aria-valuemin":0,"aria-valuemax":100,className:G(oX({size:a,variant:o}),r),style:{...s,"--progress-circle-progress":f},"data-component":`ProgressCircle`,"data-size":a,"data-variant":o,...d,children:[(0,q.jsxs)(`svg`,{className:aX.ring,viewBox:`0 0 32 32`,"aria-hidden":`true`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,q.jsx)(`circle`,{className:aX.track,cx:16,cy:16,r:14,pathLength:100}),(0,q.jsx)(`circle`,{className:aX.indicator,cx:16,cy:16,r:14,pathLength:100})]}),p?(0,q.jsx)(`span`,{className:aX.label,children:c}):null]})}sX.displayName=`ProgressCircle`;var cX=K(sX);const lX={L:1,M:0,Q:3,H:2},uX={numeric:1,alphanumeric:2,byte:4,kanji:8,eci:7,structuredAppend:3,fnc1First:5,fnc1Second:9,terminator:0},dX={numeric:[10,12,14],alphanumeric:[9,11,13],byte:[8,16,16],kanji:[8,10,12]};function fX(e,t){let n=dX[t];return n?e<=9?n[0]:e<=26?n[1]:n[2]:8}const pX={L:[{totalDataCodewords:0,ecCodewordsPerBlock:0,group1Blocks:0,group1DataCW:0,group2Blocks:0,group2DataCW:0},{totalDataCodewords:19,ecCodewordsPerBlock:7,group1Blocks:1,group1DataCW:19,group2Blocks:0,group2DataCW:0},{totalDataCodewords:34,ecCodewordsPerBlock:10,group1Blocks:1,group1DataCW:34,group2Blocks:0,group2DataCW:0},{totalDataCodewords:55,ecCodewordsPerBlock:15,group1Blocks:1,group1DataCW:55,group2Blocks:0,group2DataCW:0},{totalDataCodewords:80,ecCodewordsPerBlock:20,group1Blocks:1,group1DataCW:80,group2Blocks:0,group2DataCW:0},{totalDataCodewords:108,ecCodewordsPerBlock:26,group1Blocks:1,group1DataCW:108,group2Blocks:0,group2DataCW:0},{totalDataCodewords:136,ecCodewordsPerBlock:18,group1Blocks:2,group1DataCW:68,group2Blocks:0,group2DataCW:0},{totalDataCodewords:156,ecCodewordsPerBlock:20,group1Blocks:2,group1DataCW:78,group2Blocks:0,group2DataCW:0},{totalDataCodewords:194,ecCodewordsPerBlock:24,group1Blocks:2,group1DataCW:97,group2Blocks:0,group2DataCW:0},{totalDataCodewords:232,ecCodewordsPerBlock:30,group1Blocks:2,group1DataCW:116,group2Blocks:0,group2DataCW:0},{totalDataCodewords:274,ecCodewordsPerBlock:18,group1Blocks:2,group1DataCW:68,group2Blocks:2,group2DataCW:69},{totalDataCodewords:324,ecCodewordsPerBlock:20,group1Blocks:4,group1DataCW:81,group2Blocks:0,group2DataCW:0},{totalDataCodewords:370,ecCodewordsPerBlock:24,group1Blocks:2,group1DataCW:92,group2Blocks:2,group2DataCW:93},{totalDataCodewords:428,ecCodewordsPerBlock:26,group1Blocks:4,group1DataCW:107,group2Blocks:0,group2DataCW:0},{totalDataCodewords:461,ecCodewordsPerBlock:30,group1Blocks:3,group1DataCW:115,group2Blocks:1,group2DataCW:116},{totalDataCodewords:523,ecCodewordsPerBlock:22,group1Blocks:5,group1DataCW:87,group2Blocks:1,group2DataCW:88},{totalDataCodewords:589,ecCodewordsPerBlock:24,group1Blocks:5,group1DataCW:98,group2Blocks:1,group2DataCW:99},{totalDataCodewords:647,ecCodewordsPerBlock:28,group1Blocks:1,group1DataCW:107,group2Blocks:5,group2DataCW:108},{totalDataCodewords:721,ecCodewordsPerBlock:30,group1Blocks:5,group1DataCW:120,group2Blocks:1,group2DataCW:121},{totalDataCodewords:795,ecCodewordsPerBlock:28,group1Blocks:3,group1DataCW:113,group2Blocks:4,group2DataCW:114},{totalDataCodewords:861,ecCodewordsPerBlock:28,group1Blocks:3,group1DataCW:107,group2Blocks:5,group2DataCW:108},{totalDataCodewords:932,ecCodewordsPerBlock:28,group1Blocks:4,group1DataCW:116,group2Blocks:4,group2DataCW:117},{totalDataCodewords:1006,ecCodewordsPerBlock:28,group1Blocks:2,group1DataCW:111,group2Blocks:7,group2DataCW:112},{totalDataCodewords:1094,ecCodewordsPerBlock:30,group1Blocks:4,group1DataCW:121,group2Blocks:5,group2DataCW:122},{totalDataCodewords:1174,ecCodewordsPerBlock:30,group1Blocks:6,group1DataCW:117,group2Blocks:4,group2DataCW:118},{totalDataCodewords:1276,ecCodewordsPerBlock:26,group1Blocks:8,group1DataCW:106,group2Blocks:4,group2DataCW:107},{totalDataCodewords:1370,ecCodewordsPerBlock:28,group1Blocks:10,group1DataCW:114,group2Blocks:2,group2DataCW:115},{totalDataCodewords:1468,ecCodewordsPerBlock:30,group1Blocks:8,group1DataCW:122,group2Blocks:4,group2DataCW:123},{totalDataCodewords:1531,ecCodewordsPerBlock:30,group1Blocks:3,group1DataCW:117,group2Blocks:10,group2DataCW:118},{totalDataCodewords:1631,ecCodewordsPerBlock:30,group1Blocks:7,group1DataCW:116,group2Blocks:7,group2DataCW:117},{totalDataCodewords:1735,ecCodewordsPerBlock:30,group1Blocks:5,group1DataCW:115,group2Blocks:10,group2DataCW:116},{totalDataCodewords:1843,ecCodewordsPerBlock:30,group1Blocks:13,group1DataCW:115,group2Blocks:3,group2DataCW:116},{totalDataCodewords:1955,ecCodewordsPerBlock:30,group1Blocks:17,group1DataCW:115,group2Blocks:0,group2DataCW:0},{totalDataCodewords:2071,ecCodewordsPerBlock:30,group1Blocks:17,group1DataCW:115,group2Blocks:1,group2DataCW:116},{totalDataCodewords:2191,ecCodewordsPerBlock:30,group1Blocks:13,group1DataCW:115,group2Blocks:6,group2DataCW:116},{totalDataCodewords:2306,ecCodewordsPerBlock:30,group1Blocks:12,group1DataCW:121,group2Blocks:7,group2DataCW:122},{totalDataCodewords:2434,ecCodewordsPerBlock:30,group1Blocks:6,group1DataCW:121,group2Blocks:14,group2DataCW:122},{totalDataCodewords:2566,ecCodewordsPerBlock:30,group1Blocks:17,group1DataCW:122,group2Blocks:4,group2DataCW:123},{totalDataCodewords:2702,ecCodewordsPerBlock:30,group1Blocks:4,group1DataCW:122,group2Blocks:18,group2DataCW:123},{totalDataCodewords:2812,ecCodewordsPerBlock:30,group1Blocks:20,group1DataCW:117,group2Blocks:4,group2DataCW:118},{totalDataCodewords:2956,ecCodewordsPerBlock:30,group1Blocks:19,group1DataCW:118,group2Blocks:6,group2DataCW:119}],M:[{totalDataCodewords:0,ecCodewordsPerBlock:0,group1Blocks:0,group1DataCW:0,group2Blocks:0,group2DataCW:0},{totalDataCodewords:16,ecCodewordsPerBlock:10,group1Blocks:1,group1DataCW:16,group2Blocks:0,group2DataCW:0},{totalDataCodewords:28,ecCodewordsPerBlock:16,group1Blocks:1,group1DataCW:28,group2Blocks:0,group2DataCW:0},{totalDataCodewords:44,ecCodewordsPerBlock:26,group1Blocks:1,group1DataCW:44,group2Blocks:0,group2DataCW:0},{totalDataCodewords:64,ecCodewordsPerBlock:18,group1Blocks:2,group1DataCW:32,group2Blocks:0,group2DataCW:0},{totalDataCodewords:86,ecCodewordsPerBlock:24,group1Blocks:2,group1DataCW:43,group2Blocks:0,group2DataCW:0},{totalDataCodewords:108,ecCodewordsPerBlock:16,group1Blocks:4,group1DataCW:27,group2Blocks:0,group2DataCW:0},{totalDataCodewords:124,ecCodewordsPerBlock:18,group1Blocks:4,group1DataCW:31,group2Blocks:0,group2DataCW:0},{totalDataCodewords:154,ecCodewordsPerBlock:22,group1Blocks:2,group1DataCW:38,group2Blocks:2,group2DataCW:39},{totalDataCodewords:182,ecCodewordsPerBlock:22,group1Blocks:3,group1DataCW:36,group2Blocks:2,group2DataCW:37},{totalDataCodewords:216,ecCodewordsPerBlock:26,group1Blocks:4,group1DataCW:43,group2Blocks:1,group2DataCW:44},{totalDataCodewords:254,ecCodewordsPerBlock:30,group1Blocks:1,group1DataCW:50,group2Blocks:4,group2DataCW:51},{totalDataCodewords:290,ecCodewordsPerBlock:22,group1Blocks:6,group1DataCW:36,group2Blocks:2,group2DataCW:37},{totalDataCodewords:334,ecCodewordsPerBlock:22,group1Blocks:8,group1DataCW:37,group2Blocks:1,group2DataCW:38},{totalDataCodewords:365,ecCodewordsPerBlock:24,group1Blocks:4,group1DataCW:40,group2Blocks:5,group2DataCW:41},{totalDataCodewords:415,ecCodewordsPerBlock:24,group1Blocks:5,group1DataCW:41,group2Blocks:5,group2DataCW:42},{totalDataCodewords:453,ecCodewordsPerBlock:28,group1Blocks:7,group1DataCW:45,group2Blocks:3,group2DataCW:46},{totalDataCodewords:507,ecCodewordsPerBlock:28,group1Blocks:10,group1DataCW:46,group2Blocks:1,group2DataCW:47},{totalDataCodewords:563,ecCodewordsPerBlock:26,group1Blocks:9,group1DataCW:43,group2Blocks:4,group2DataCW:44},{totalDataCodewords:627,ecCodewordsPerBlock:26,group1Blocks:3,group1DataCW:44,group2Blocks:11,group2DataCW:45},{totalDataCodewords:669,ecCodewordsPerBlock:26,group1Blocks:3,group1DataCW:41,group2Blocks:13,group2DataCW:42},{totalDataCodewords:714,ecCodewordsPerBlock:26,group1Blocks:17,group1DataCW:42,group2Blocks:0,group2DataCW:0},{totalDataCodewords:782,ecCodewordsPerBlock:28,group1Blocks:17,group1DataCW:46,group2Blocks:0,group2DataCW:0},{totalDataCodewords:860,ecCodewordsPerBlock:28,group1Blocks:4,group1DataCW:47,group2Blocks:14,group2DataCW:48},{totalDataCodewords:914,ecCodewordsPerBlock:28,group1Blocks:6,group1DataCW:45,group2Blocks:14,group2DataCW:46},{totalDataCodewords:1e3,ecCodewordsPerBlock:28,group1Blocks:8,group1DataCW:47,group2Blocks:13,group2DataCW:48},{totalDataCodewords:1062,ecCodewordsPerBlock:28,group1Blocks:19,group1DataCW:46,group2Blocks:4,group2DataCW:47},{totalDataCodewords:1128,ecCodewordsPerBlock:28,group1Blocks:22,group1DataCW:45,group2Blocks:3,group2DataCW:46},{totalDataCodewords:1193,ecCodewordsPerBlock:28,group1Blocks:3,group1DataCW:45,group2Blocks:23,group2DataCW:46},{totalDataCodewords:1267,ecCodewordsPerBlock:28,group1Blocks:21,group1DataCW:45,group2Blocks:7,group2DataCW:46},{totalDataCodewords:1373,ecCodewordsPerBlock:28,group1Blocks:19,group1DataCW:47,group2Blocks:10,group2DataCW:48},{totalDataCodewords:1455,ecCodewordsPerBlock:28,group1Blocks:2,group1DataCW:46,group2Blocks:29,group2DataCW:47},{totalDataCodewords:1541,ecCodewordsPerBlock:28,group1Blocks:10,group1DataCW:46,group2Blocks:23,group2DataCW:47},{totalDataCodewords:1631,ecCodewordsPerBlock:28,group1Blocks:14,group1DataCW:46,group2Blocks:21,group2DataCW:47},{totalDataCodewords:1725,ecCodewordsPerBlock:28,group1Blocks:14,group1DataCW:46,group2Blocks:23,group2DataCW:47},{totalDataCodewords:1812,ecCodewordsPerBlock:28,group1Blocks:12,group1DataCW:47,group2Blocks:26,group2DataCW:48},{totalDataCodewords:1914,ecCodewordsPerBlock:28,group1Blocks:6,group1DataCW:47,group2Blocks:34,group2DataCW:48},{totalDataCodewords:1992,ecCodewordsPerBlock:28,group1Blocks:29,group1DataCW:46,group2Blocks:14,group2DataCW:47},{totalDataCodewords:2102,ecCodewordsPerBlock:28,group1Blocks:13,group1DataCW:46,group2Blocks:32,group2DataCW:47},{totalDataCodewords:2216,ecCodewordsPerBlock:28,group1Blocks:40,group1DataCW:47,group2Blocks:7,group2DataCW:48},{totalDataCodewords:2334,ecCodewordsPerBlock:28,group1Blocks:18,group1DataCW:47,group2Blocks:31,group2DataCW:48}],Q:[{totalDataCodewords:0,ecCodewordsPerBlock:0,group1Blocks:0,group1DataCW:0,group2Blocks:0,group2DataCW:0},{totalDataCodewords:13,ecCodewordsPerBlock:13,group1Blocks:1,group1DataCW:13,group2Blocks:0,group2DataCW:0},{totalDataCodewords:22,ecCodewordsPerBlock:22,group1Blocks:1,group1DataCW:22,group2Blocks:0,group2DataCW:0},{totalDataCodewords:34,ecCodewordsPerBlock:18,group1Blocks:2,group1DataCW:17,group2Blocks:0,group2DataCW:0},{totalDataCodewords:48,ecCodewordsPerBlock:26,group1Blocks:2,group1DataCW:24,group2Blocks:0,group2DataCW:0},{totalDataCodewords:62,ecCodewordsPerBlock:18,group1Blocks:2,group1DataCW:15,group2Blocks:2,group2DataCW:16},{totalDataCodewords:76,ecCodewordsPerBlock:24,group1Blocks:4,group1DataCW:19,group2Blocks:0,group2DataCW:0},{totalDataCodewords:88,ecCodewordsPerBlock:18,group1Blocks:2,group1DataCW:14,group2Blocks:4,group2DataCW:15},{totalDataCodewords:110,ecCodewordsPerBlock:22,group1Blocks:4,group1DataCW:18,group2Blocks:2,group2DataCW:19},{totalDataCodewords:132,ecCodewordsPerBlock:20,group1Blocks:4,group1DataCW:16,group2Blocks:4,group2DataCW:17},{totalDataCodewords:154,ecCodewordsPerBlock:24,group1Blocks:6,group1DataCW:19,group2Blocks:2,group2DataCW:20},{totalDataCodewords:180,ecCodewordsPerBlock:28,group1Blocks:4,group1DataCW:22,group2Blocks:4,group2DataCW:23},{totalDataCodewords:206,ecCodewordsPerBlock:26,group1Blocks:4,group1DataCW:20,group2Blocks:6,group2DataCW:21},{totalDataCodewords:244,ecCodewordsPerBlock:24,group1Blocks:8,group1DataCW:20,group2Blocks:4,group2DataCW:21},{totalDataCodewords:261,ecCodewordsPerBlock:20,group1Blocks:11,group1DataCW:16,group2Blocks:5,group2DataCW:17},{totalDataCodewords:295,ecCodewordsPerBlock:30,group1Blocks:5,group1DataCW:24,group2Blocks:7,group2DataCW:25},{totalDataCodewords:325,ecCodewordsPerBlock:24,group1Blocks:15,group1DataCW:19,group2Blocks:2,group2DataCW:20},{totalDataCodewords:367,ecCodewordsPerBlock:28,group1Blocks:1,group1DataCW:22,group2Blocks:15,group2DataCW:23},{totalDataCodewords:397,ecCodewordsPerBlock:28,group1Blocks:17,group1DataCW:22,group2Blocks:1,group2DataCW:23},{totalDataCodewords:445,ecCodewordsPerBlock:26,group1Blocks:17,group1DataCW:21,group2Blocks:4,group2DataCW:22},{totalDataCodewords:485,ecCodewordsPerBlock:30,group1Blocks:15,group1DataCW:24,group2Blocks:5,group2DataCW:25},{totalDataCodewords:512,ecCodewordsPerBlock:28,group1Blocks:17,group1DataCW:22,group2Blocks:6,group2DataCW:23},{totalDataCodewords:568,ecCodewordsPerBlock:30,group1Blocks:7,group1DataCW:24,group2Blocks:16,group2DataCW:25},{totalDataCodewords:614,ecCodewordsPerBlock:30,group1Blocks:11,group1DataCW:24,group2Blocks:14,group2DataCW:25},{totalDataCodewords:664,ecCodewordsPerBlock:30,group1Blocks:11,group1DataCW:24,group2Blocks:16,group2DataCW:25},{totalDataCodewords:718,ecCodewordsPerBlock:30,group1Blocks:7,group1DataCW:24,group2Blocks:22,group2DataCW:25},{totalDataCodewords:754,ecCodewordsPerBlock:28,group1Blocks:28,group1DataCW:22,group2Blocks:6,group2DataCW:23},{totalDataCodewords:808,ecCodewordsPerBlock:30,group1Blocks:8,group1DataCW:23,group2Blocks:26,group2DataCW:24},{totalDataCodewords:871,ecCodewordsPerBlock:30,group1Blocks:4,group1DataCW:24,group2Blocks:31,group2DataCW:25},{totalDataCodewords:911,ecCodewordsPerBlock:30,group1Blocks:1,group1DataCW:23,group2Blocks:37,group2DataCW:24},{totalDataCodewords:985,ecCodewordsPerBlock:30,group1Blocks:15,group1DataCW:24,group2Blocks:25,group2DataCW:25},{totalDataCodewords:1033,ecCodewordsPerBlock:30,group1Blocks:42,group1DataCW:24,group2Blocks:1,group2DataCW:25},{totalDataCodewords:1115,ecCodewordsPerBlock:30,group1Blocks:10,group1DataCW:24,group2Blocks:35,group2DataCW:25},{totalDataCodewords:1171,ecCodewordsPerBlock:30,group1Blocks:29,group1DataCW:24,group2Blocks:19,group2DataCW:25},{totalDataCodewords:1231,ecCodewordsPerBlock:30,group1Blocks:44,group1DataCW:24,group2Blocks:7,group2DataCW:25},{totalDataCodewords:1286,ecCodewordsPerBlock:30,group1Blocks:39,group1DataCW:24,group2Blocks:14,group2DataCW:25},{totalDataCodewords:1354,ecCodewordsPerBlock:30,group1Blocks:46,group1DataCW:24,group2Blocks:10,group2DataCW:25},{totalDataCodewords:1426,ecCodewordsPerBlock:30,group1Blocks:49,group1DataCW:24,group2Blocks:10,group2DataCW:25},{totalDataCodewords:1502,ecCodewordsPerBlock:30,group1Blocks:48,group1DataCW:24,group2Blocks:14,group2DataCW:25},{totalDataCodewords:1582,ecCodewordsPerBlock:30,group1Blocks:43,group1DataCW:24,group2Blocks:22,group2DataCW:25},{totalDataCodewords:1666,ecCodewordsPerBlock:30,group1Blocks:34,group1DataCW:24,group2Blocks:34,group2DataCW:25}],H:[{totalDataCodewords:0,ecCodewordsPerBlock:0,group1Blocks:0,group1DataCW:0,group2Blocks:0,group2DataCW:0},{totalDataCodewords:9,ecCodewordsPerBlock:17,group1Blocks:1,group1DataCW:9,group2Blocks:0,group2DataCW:0},{totalDataCodewords:16,ecCodewordsPerBlock:28,group1Blocks:1,group1DataCW:16,group2Blocks:0,group2DataCW:0},{totalDataCodewords:26,ecCodewordsPerBlock:22,group1Blocks:2,group1DataCW:13,group2Blocks:0,group2DataCW:0},{totalDataCodewords:36,ecCodewordsPerBlock:16,group1Blocks:4,group1DataCW:9,group2Blocks:0,group2DataCW:0},{totalDataCodewords:46,ecCodewordsPerBlock:22,group1Blocks:2,group1DataCW:11,group2Blocks:2,group2DataCW:12},{totalDataCodewords:60,ecCodewordsPerBlock:28,group1Blocks:4,group1DataCW:15,group2Blocks:0,group2DataCW:0},{totalDataCodewords:66,ecCodewordsPerBlock:26,group1Blocks:4,group1DataCW:13,group2Blocks:1,group2DataCW:14},{totalDataCodewords:86,ecCodewordsPerBlock:26,group1Blocks:4,group1DataCW:14,group2Blocks:2,group2DataCW:15},{totalDataCodewords:100,ecCodewordsPerBlock:24,group1Blocks:4,group1DataCW:12,group2Blocks:4,group2DataCW:13},{totalDataCodewords:122,ecCodewordsPerBlock:28,group1Blocks:6,group1DataCW:15,group2Blocks:2,group2DataCW:16},{totalDataCodewords:140,ecCodewordsPerBlock:24,group1Blocks:3,group1DataCW:12,group2Blocks:8,group2DataCW:13},{totalDataCodewords:158,ecCodewordsPerBlock:28,group1Blocks:7,group1DataCW:14,group2Blocks:4,group2DataCW:15},{totalDataCodewords:180,ecCodewordsPerBlock:22,group1Blocks:12,group1DataCW:11,group2Blocks:4,group2DataCW:12},{totalDataCodewords:197,ecCodewordsPerBlock:24,group1Blocks:11,group1DataCW:12,group2Blocks:5,group2DataCW:13},{totalDataCodewords:223,ecCodewordsPerBlock:24,group1Blocks:11,group1DataCW:12,group2Blocks:7,group2DataCW:13},{totalDataCodewords:253,ecCodewordsPerBlock:30,group1Blocks:3,group1DataCW:15,group2Blocks:13,group2DataCW:16},{totalDataCodewords:283,ecCodewordsPerBlock:28,group1Blocks:2,group1DataCW:14,group2Blocks:17,group2DataCW:15},{totalDataCodewords:313,ecCodewordsPerBlock:28,group1Blocks:2,group1DataCW:14,group2Blocks:19,group2DataCW:15},{totalDataCodewords:341,ecCodewordsPerBlock:26,group1Blocks:9,group1DataCW:13,group2Blocks:16,group2DataCW:14},{totalDataCodewords:385,ecCodewordsPerBlock:28,group1Blocks:15,group1DataCW:15,group2Blocks:10,group2DataCW:16},{totalDataCodewords:406,ecCodewordsPerBlock:30,group1Blocks:19,group1DataCW:16,group2Blocks:6,group2DataCW:17},{totalDataCodewords:442,ecCodewordsPerBlock:24,group1Blocks:34,group1DataCW:13,group2Blocks:0,group2DataCW:0},{totalDataCodewords:464,ecCodewordsPerBlock:30,group1Blocks:16,group1DataCW:15,group2Blocks:14,group2DataCW:16},{totalDataCodewords:514,ecCodewordsPerBlock:30,group1Blocks:30,group1DataCW:16,group2Blocks:2,group2DataCW:17},{totalDataCodewords:538,ecCodewordsPerBlock:30,group1Blocks:22,group1DataCW:15,group2Blocks:13,group2DataCW:16},{totalDataCodewords:596,ecCodewordsPerBlock:30,group1Blocks:33,group1DataCW:16,group2Blocks:4,group2DataCW:17},{totalDataCodewords:628,ecCodewordsPerBlock:30,group1Blocks:12,group1DataCW:15,group2Blocks:28,group2DataCW:16},{totalDataCodewords:661,ecCodewordsPerBlock:30,group1Blocks:11,group1DataCW:15,group2Blocks:31,group2DataCW:16},{totalDataCodewords:701,ecCodewordsPerBlock:30,group1Blocks:19,group1DataCW:15,group2Blocks:26,group2DataCW:16},{totalDataCodewords:745,ecCodewordsPerBlock:30,group1Blocks:23,group1DataCW:15,group2Blocks:25,group2DataCW:16},{totalDataCodewords:793,ecCodewordsPerBlock:30,group1Blocks:23,group1DataCW:15,group2Blocks:28,group2DataCW:16},{totalDataCodewords:845,ecCodewordsPerBlock:30,group1Blocks:19,group1DataCW:15,group2Blocks:35,group2DataCW:16},{totalDataCodewords:901,ecCodewordsPerBlock:30,group1Blocks:11,group1DataCW:15,group2Blocks:46,group2DataCW:16},{totalDataCodewords:961,ecCodewordsPerBlock:30,group1Blocks:59,group1DataCW:16,group2Blocks:1,group2DataCW:17},{totalDataCodewords:986,ecCodewordsPerBlock:30,group1Blocks:22,group1DataCW:15,group2Blocks:41,group2DataCW:16},{totalDataCodewords:1054,ecCodewordsPerBlock:30,group1Blocks:2,group1DataCW:15,group2Blocks:64,group2DataCW:16},{totalDataCodewords:1096,ecCodewordsPerBlock:30,group1Blocks:24,group1DataCW:15,group2Blocks:46,group2DataCW:16},{totalDataCodewords:1142,ecCodewordsPerBlock:30,group1Blocks:42,group1DataCW:15,group2Blocks:32,group2DataCW:16},{totalDataCodewords:1222,ecCodewordsPerBlock:30,group1Blocks:10,group1DataCW:15,group2Blocks:67,group2DataCW:16},{totalDataCodewords:1276,ecCodewordsPerBlock:30,group1Blocks:20,group1DataCW:15,group2Blocks:61,group2DataCW:16}]};function mX(e,t){return pX[t][e]}const hX=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],gX=[0,0,0,0,0,0,0,31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017];function _X(e){return/^\d+$/.test(e)}function vX(e){for(let t=0;t<e.length;t++)if(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.indexOf(e[t])===-1)return!1;return!0}function yX(e){return _X(e)?`numeric`:vX(e)?`alphanumeric`:`byte`}function bX(e){let t=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.indexOf(e);if(t===-1)throw Error(`Invalid alphanumeric character: ${e}`);return t}function xX(e){let t=[],n=0;for(;n+2<e.length;)EX(t,Number.parseInt(e.substring(n,n+3),10),10),n+=3;return n+1<e.length&&(EX(t,Number.parseInt(e.substring(n,n+2),10),7),n+=2),n<e.length&&EX(t,Number.parseInt(e[n],10),4),t}function SX(e){let t=[],n=0;for(;n+1<e.length;)EX(t,bX(e[n])*45+bX(e[n+1]),11),n+=2;return n<e.length&&EX(t,bX(e[n]),6),t}function CX(e){let t=[];for(let n of e)EX(t,n,8);return t}function wX(e){let t=[];for(let n of e){let e;if(n>=33088&&n<=40956)e=n-33088;else if(n>=57408&&n<=60351)e=n-49472;else throw Error(`Invalid Shift JIS kanji value: 0x${n.toString(16)}`);let r=e>>8&255,i=e&255;EX(t,r*192+i,13)}return t}function TX(e){let t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>=12288&&r<=40959){let e=33088+(r-12288);e<=40956?t.push(e):t.push(57408+(r-12288-7868))}else throw Error(`Character U+${r.toString(16)} cannot be encoded as Kanji`)}return t}function EX(e,t,n){for(let r=n-1;r>=0;r--)e.push(t>>r&1)}function DX(e,t){return mX(e,t).totalDataCodewords*8}function OX(e,t,n,r){let i=n===`auto`||!n?yX(e):n,a=new TextEncoder().encode(e);if(r){let n=DX(r,t);if(kX(e,a,i,r)>n)throw Error(`Data too long for QR version ${r} with EC level ${t}`);return r}for(let n=1;n<=40;n++){let r=DX(n,t);if(kX(e,a,i,n)<=r)return n}throw Error(`Data too long for any QR code version with EC level ${t}`)}function kX(e,t,n,r){let i=fX(r,n),a;switch(n){case`numeric`:return a=Math.floor(e.length/3)*10+(e.length%3==2?7:e.length%3==1?4:0),4+i+a;case`alphanumeric`:return a=Math.floor(e.length/2)*11+(e.length%2==1?6:0),4+i+a;case`byte`:return 4+i+t.length*8;case`kanji`:return 4+i+e.length*13;default:return 4+i+t.length*8}}function AX(e,t){return t&&t!==`auto`?t:_X(e)?`numeric`:vX(e)?`alphanumeric`:`byte`}const jX=new Uint8Array(512),MX=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)jX[t]=e,MX[e]=t,e<<=1,e>=256&&(e^=285);for(let e=255;e<512;e++)jX[e]=jX[e-255]})();function NX(e,t){return e===0||t===0?0:jX[(MX[e]+MX[t])%255]}function PX(e,t){let n=new Uint8Array([1]);for(let e=0;e<t;e++){let t=new Uint8Array([1,jX[e]]),r=new Uint8Array(n.length+1);for(let e=0;e<n.length;e++)for(let i=0;i<t.length;i++)r[e+i]^=NX(n[e],t[i]);n=r}let r=Array.from({length:t},()=>0);for(let i of e){let e=i^r[0];for(let i=0;i<t-1;i++)r[i]=r[i+1]^NX(e,n[i+1]);r[t-1]=NX(e,n[t])}return r}function FX(e,t,n,r,i,a){let o=[],s=[],c=0;for(let i=0;i<n;i++){let n=e.slice(c,c+r);o.push(n),s.push(PX(n,t)),c+=r}for(let n=0;n<i;n++){let n=e.slice(c,c+a);o.push(n),s.push(PX(n,t)),c+=a}let l=[],u=Math.max(r,a);for(let e=0;e<u;e++)for(let t of o)e<t.length&&l.push(t[e]);for(let e=0;e<t;e++)for(let t of s)e<t.length&&l.push(t[e]);return l}function IX(e,t={}){let n=t.ecLevel??`M`,r=AX(e,t.mode),i=OX(e,n,r,t.version),a=mX(i,n),o=FX(RX(LX(e,r,i,a.totalDataCodewords)),a.ecCodewordsPerBlock,a.group1Blocks,a.group1DataCW,a.group2Blocks,a.group2DataCW),s=[];for(let e of o)EX(s,e,8);return{version:i,ecLevel:n,bits:s}}function LX(e,t,n,r){let i=[],a=fX(n,t),o=new TextEncoder().encode(e);switch(EX(i,uX[t],4),EX(i,t===`byte`?o.length:e.length,a),t){case`numeric`:i.push(...xX(e));break;case`alphanumeric`:i.push(...SX(e));break;case`byte`:i.push(...CX(o));break;case`kanji`:{let t=TX(e);i.push(...wX(t));break}}let s=r*8,c=Math.min(4,s-i.length);for(c>0&&EX(i,0,c);i.length%8!=0;)i.push(0);let l=!0;for(;i.length<s;)EX(i,l?236:17,8),l=!l;return i}function RX(e){let t=[];for(let n=0;n<e.length;n+=8){let r=0;for(let t=0;t<8&&n+t<e.length;t++)r=r<<1|e[n+t];t.push(r)}return t}function zX(e){return Array.from({length:e},()=>Array.from({length:e}).fill(null))}function BX(e,t){let n=e.length;VX(e,0,0),VX(e,n-7,0),VX(e,0,n-7),UX(e,n),WX(e,t),e[4*t+9][8]=!0,KX(e,n),t>=7&&qX(e,n)}function VX(e,t,n){let r=e.length;for(let r=0;r<7;r++)for(let i=0;i<7;i++){let a=r===0||r===6||i===0||i===6,o=r>=2&&r<=4&&i>=2&&i<=4;e[t+r][n+i]=a||o}for(let i=-1;i<=7;i++)HX(e,t-1,n+i,!1,r),HX(e,t+7,n+i,!1,r),HX(e,t+i,n-1,!1,r),HX(e,t+i,n+7,!1,r)}function HX(e,t,n,r,i){t>=0&&t<i&&n>=0&&n<i&&(e[t][n]=r)}function UX(e,t){for(let n=8;n<t-8;n++)e[6][n]===null&&(e[6][n]=n%2==0),e[n][6]===null&&(e[n][6]=n%2==0)}function WX(e,t){if(t<2)return;let n=hX[t-1],r=n.length-1;for(let t=0;t<n.length;t++)for(let i=0;i<n.length;i++)(t!==0||i!==0)&&(t!==0||i!==r)&&(t!==r||i!==0)&&GX(e,n[t],n[i])}function GX(e,t,n){for(let r=-2;r<=2;r++)for(let i=-2;i<=2;i++){let a=Math.abs(r)===2||Math.abs(i)===2,o=r===0&&i===0;e[t+r][n+i]=a||o}}function KX(e,t){for(let n=0;n<=8;n++)n<t&&e[8][n]===null&&(e[8][n]=!1),n<t&&e[n][8]===null&&(e[n][8]=!1);for(let n=0;n<7;n++)e[t-1-n][8]===null&&(e[t-1-n][8]=!1);for(let n=0;n<8;n++)e[8][t-1-n]===null&&(e[8][t-1-n]=!1)}function qX(e,t){for(let n=0;n<6;n++)for(let r=0;r<3;r++)e[t-11+r][n]===null&&(e[t-11+r][n]=!1);for(let n=0;n<6;n++)for(let r=0;r<3;r++)e[n][t-11+r]===null&&(e[n][t-11+r]=!1)}function JX(e,t,n){let r=e.length,i=0,a=!0;for(let n=r-1;n>=1;n-=2){n===6&&(n=5);let o=a?Array.from({length:r},(e,t)=>r-1-t):Array.from({length:r},(e,t)=>t);for(let r of o)for(let a of[n,n-1])e[r][a]===null&&(e[r][a]=i<t.length&&t[i]===1,i++);a=!a}}function YX(e,t,n,r){if(e<9&&t<9||e<9&&t>=n-8||e>=n-8&&t<9||e===6||t===6)return!1;if(r>=2){let i=hX[r-1];for(let r of i)for(let a of i)if(!(r<9&&a<9)&&!(r<9&&a>=n-8)&&!(r>=n-8&&a<9)&&e>=r-2&&e<=r+2&&t>=a-2&&t<=a+2)return!1}return!(r>=7&&(e<6&&t>=n-11&&t<=n-9||t<6&&e>=n-11&&e<=n-9)||e===8||t===8||e>=n-8&&t===8||e===8&&t>=n-8)}function XX(e){switch(e){case 0:return(e,t)=>(e+t)%2==0;case 1:return e=>e%2==0;case 2:return(e,t)=>t%3==0;case 3:return(e,t)=>(e+t)%3==0;case 4:return(e,t)=>(Math.floor(e/2)+Math.floor(t/3))%2==0;case 5:return(e,t)=>e*t%2+e*t%3==0;case 6:return(e,t)=>(e*t%2+e*t%3)%2==0;case 7:return(e,t)=>((e+t)%2+e*t%3)%2==0;default:return()=>!1}}function ZX(e,t,n,r){let i=XX(t);for(let t=0;t<n;t++)for(let a=0;a<n;a++)YX(t,a,n,r)&&i(t,a)&&(e[t][a]=!e[t][a])}function QX(e,t,n,r){if(r!==void 0&&r>=0&&r<=7)return r;let i=0,a=1/0;for(let r=0;r<8;r++){let o=e.map(e=>[...e]);ZX(o,r,t,n);let s=$X(o,t);s<a&&(a=s,i=r)}return i}function $X(e,t){return eZ(e,t)+tZ(e,t)+nZ(e,t)+rZ(e,t)}function eZ(e,t){let n=0;for(let r=0;r<t;r++){let i=1;for(let a=1;a<t;a++)!!e[r][a]==!!e[r][a-1]?(i++,i===5?n+=3:i>5&&n++):i=1}for(let r=0;r<t;r++){let i=1;for(let a=1;a<t;a++)!!e[a][r]==!!e[a-1][r]?(i++,i===5?n+=3:i>5&&n++):i=1}return n}function tZ(e,t){let n=0;for(let r=0;r<t-1;r++)for(let i=0;i<t-1;i++){let t=!!e[r][i];t===!!e[r][i+1]&&t===!!e[r+1][i]&&t===!!e[r+1][i+1]&&(n+=3)}return n}function nZ(e,t){let n=0,r=[!0,!1,!0,!0,!0,!1,!0,!1,!1,!1,!1],i=[!1,!1,!1,!1,!0,!1,!0,!0,!0,!1,!0];for(let a=0;a<t;a++)for(let o=0;o<=t-11;o++){let t=!0,s=!0;for(let n=0;n<11;n++)!!e[a][o+n]!==r[n]&&(t=!1),!!e[a][o+n]!==i[n]&&(s=!1);(t||s)&&(n+=40)}for(let a=0;a<t;a++)for(let o=0;o<=t-11;o++){let t=!0,s=!0;for(let n=0;n<11;n++)!!e[o+n][a]!==r[n]&&(t=!1),!!e[o+n][a]!==i[n]&&(s=!1);(t||s)&&(n+=40)}return n}function rZ(e,t){let n=0,r=t*t;for(let r=0;r<t;r++)for(let i=0;i<t;i++)e[r][i]&&n++;let i=n/r,a=Math.floor(i*20)*5,o=Math.ceil(i*20)*5;return Math.min(Math.abs(a-50),Math.abs(o-50))*2}function iZ(e,t){let n=lX[e]<<3|t,r=n<<10;for(let e=4;e>=0;e--)r&1<<e+10&&(r^=1335<<e);return(n<<10|r)^21522}function aZ(e,t,n){let r=e.length,i=iZ(t,n),a=[[8,0],[8,1],[8,2],[8,3],[8,4],[8,5],[8,7],[8,8],[7,8],[5,8],[4,8],[3,8],[2,8],[1,8],[0,8]];for(let t=0;t<15;t++){let n=(i>>14-t&1)==1,[r,o]=a[t];e[r][o]=n}for(let t=0;t<7;t++){let n=(i>>14-t&1)==1;e[r-1-t][8]=n}for(let t=0;t<8;t++){let n=(i>>7-t&1)==1;e[8][r-8+t]=n}}function oZ(e,t){if(t<7)return;let n=e.length,r=gX[t];for(let t=0;t<18;t++){let i=(r>>t&1)==1,a=Math.floor(t/3),o=t%3;e[n-11+o][a]=i,e[a][n-11+o]=i}}var sZ=class extends Error{constructor(...e){super(...e),this.name=`QRCodeError`}},cZ=class extends sZ{constructor(...e){super(...e),this.name=`InvalidInputError`}};function lZ(e,t={}){let{version:n,ecLevel:r,bits:i}=IX(e,t),a=n*4+17,o=zX(a);BX(o,n),JX(o,i,n);let s=QX(o,a,n,t.mask);return ZX(o,s,a,n),aZ(o,r,s),n>=7&&oZ(o,n),o.map(e=>e.map(e=>e===!0))}function uZ(e){return e.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}const dZ=(()=>{let e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n}return e})();function fZ(e){let t=4294967295;for(let n=0;n<e.length;n++)t=dZ[(t^e[n])&255]^t>>>8;return(t^4294967295)>>>0}function pZ(e){let t=1,n=0;for(let r=0;r<e.length;r++)t=(t+e[r])%65521,n=(n+t)%65521;return(n<<16|t)>>>0}function mZ(e){let t=65535,n=Math.ceil(e.length/t)||1,r=new Uint8Array(n*5+e.length),i=0,a=0;for(;a<e.length||i===0;){let n=e.length-a,o=Math.min(n,t),s=a+o>=e.length;r[i++]=+!!s,r[i++]=o&255,r[i++]=o>>8&255,r[i++]=~o&255,r[i++]=~o>>8&255,r.set(e.subarray(a,a+o),i),i+=o,a+=o}return r.subarray(0,i)}function hZ(e){let t=mZ(e),n=pZ(e),r=new Uint8Array(2+t.length+4);r[0]=120,r[1]=1,r.set(t,2);let i=2+t.length;return r[i]=n>>24&255,r[i+1]=n>>16&255,r[i+2]=n>>8&255,r[i+3]=n&255,r}const gZ=new Uint8Array([137,80,78,71,13,10,26,10]);function _Z(e,t){let n=new Uint8Array([e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]),r=new Uint8Array(8+t.length+4),i=new DataView(r.buffer);i.setUint32(0,t.length),r.set(n,4),r.set(t,8);let a=new Uint8Array(4+t.length);return a.set(n,0),a.set(t,4),i.setUint32(8+t.length,fZ(a)),r}function vZ(e,t,n){let r=new Uint8Array(13),i=new DataView(r.buffer);i.setUint32(0,e),i.setUint32(4,t),r[8]=8,r[9]=6,r[10]=0,r[11]=0,r[12]=0;let a=e*4,o=t*(1+a),s=new Uint8Array(o),c=0;for(let e=0;e<t;e++)s[c++]=0,s.set(n.subarray(e*a,e*a+a),c),c+=a;let l=hZ(s),u=_Z(`IHDR`,r),d=_Z(`IDAT`,l),f=_Z(`IEND`,new Uint8Array),p=gZ.length+u.length+d.length+f.length,m=new Uint8Array(p),h=0;return m.set(gZ,h),h+=gZ.length,m.set(u,h),h+=u.length,m.set(d,h),h+=d.length,m.set(f,h),m}function yZ(e){let t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint16(0,!0),r=t.getUint16(2,!0),i=t.getUint16(4,!0);if(n!==0||r!==1&&r!==2||i===0)throw Error(`Invalid ICO file`);let a;for(let e=0;e<i;e++){let n=6+e*16,r=t.getUint8(n)||256,i=t.getUint8(n+1)||256,o=t.getUint32(n+8,!0),s=t.getUint32(n+12,!0);(!a||r*i>a.width*a.height)&&(a={width:r,height:i,size:o,offset:s})}let o=a,s=e.subarray(o.offset,o.offset+o.size);return s.length>=4&&t.getUint32(o.offset)===2303741511?`data:image/png;base64,${DZ(s)}`:bZ(s,o.width,o.height)}function bZ(e,t,n){let r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=r.getUint32(0,!0),a=r.getInt32(4,!0)||t,o=n,s=r.getUint16(14,!0),c=r.getUint32(16,!0);if(c!==0&&c!==3)throw Error(`Unsupported BMP compression: ${c}`);let l=new Uint8Array(a*o*4);if(s===32)xZ(e,i,a,o,l);else if(s===24)SZ(e,i,a,o,l);else if(s<=8)CZ(e,i,a,o,s,l);else throw Error(`Unsupported BMP bit depth: ${s}`);if(s<32){let t=TZ(a,o,s),n=i+wZ(e,i,s)+t;n<e.length&&EZ(e,n,a,o,l)}return`data:image/png;base64,${DZ(vZ(a,o,l))}`}function xZ(e,t,n,r,i){let a=t,o=n*4;for(let t=0;t<r;t++){let s=a+(r-1-t)*o,c=t*n*4;for(let t=0;t<n;t++){let n=s+t*4,r=c+t*4;i[r]=e[n+2],i[r+1]=e[n+1],i[r+2]=e[n],i[r+3]=e[n+3]}}}function SZ(e,t,n,r,i){let a=t+wZ(e,t,24),o=Math.ceil(n*3/4)*4;for(let t=0;t<r;t++){let s=a+(r-1-t)*o,c=t*n*4;for(let t=0;t<n;t++){let n=s+t*3,r=c+t*4;i[r]=e[n+2],i[r+1]=e[n+1],i[r+2]=e[n],i[r+3]=255}}}function CZ(e,t,n,r,i,a){let o=wZ(e,t,i),s=e.subarray(t,t+o),c=t+o,l=Math.ceil(n*i/32)*4;for(let t=0;t<r;t++){let o=c+(r-1-t)*l,u=t*n*4;for(let t=0;t<n;t++){let n;if(i===8)n=e[o+t];else if(i===4){let r=e[o+(t>>1)];n=t&1?r&15:r>>4&15}else n=e[o+(t>>3)]>>7-(t&7)&1;let r=n*4,c=u+t*4;a[c]=s[r+2],a[c+1]=s[r+1],a[c+2]=s[r],a[c+3]=255}}}function wZ(e,t,n){if(n>=16)return 0;let r=new DataView(e.buffer,e.byteOffset,e.byteLength);return((t>=36?r.getUint32(32,!0):0)||1<<n)*4}function TZ(e,t,n){return Math.ceil(e*n/32)*4*t}function EZ(e,t,n,r,i){let a=Math.ceil(n/32)*4;for(let o=0;o<r;o++){let s=t+(r-1-o)*a,c=o*n*4;for(let t=0;t<n;t++){let n=s+(t>>3);if(n>=e.length)return;(e[n]>>7-(t&7)&1)==1&&(i[c+t*4+3]=0)}}}function DZ(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}const OZ=/<script[\s>]|javascript:|on[a-z]+\s*=|<foreignObject[\s>]/i;function kZ(e,t,n,r){let i=e.size??.3,a=e.margin??0,o=e.hideBackgroundDots??!0,s=t*n,c=s*i,l=r*n+(s-c)/2,u=r*n+(s-c)/2,d=new Set;if(o){let e=Math.floor((t-t*i)/2-a/n),r=Math.ceil((t+t*i)/2+a/n);for(let n=Math.max(0,e);n<Math.min(t,r);n++)for(let i=Math.max(0,e);i<Math.min(t,r);i++)d.add(`${n},${i}`)}let f=``;if(e.backgroundColor){let t=a,n=c+2*t,r=`x="${l-t}" y="${u-t}"`,i=`fill="${uZ(e.backgroundColor)}"`;f+=`<rect ${r} width="${n}" height="${n}" ${i} rx="4"/>`}if(e.svg){if(OZ.test(e.svg))throw new cZ(`logo.svg contains potentially dangerous content (script, event handlers, or foreignObject)`);let t=`x="${l}" y="${u}"`,n=`width="${c}" height="${c}"`;f+=`<svg ${t} ${n} viewBox="0 0 1 1">`,f+=`<g transform="scale(1)">${e.svg}</g></svg>`}else if(e.path){let t=uZ(e.path),n=`translate(${l},${u}) scale(${c/100})`;f+=`<path d="${t}" transform="${n}" fill="currentColor"/>`}else if(e.imageUrl){if(!/^(https?:|data:image\/)/i.test(e.imageUrl))throw new cZ(`imageUrl must use https:, http:, or data:image/ scheme`);let t=e.imageUrl.match(/^data:image\/(x-icon|vnd\.microsoft\.icon);base64,(.+)$/i),n=e.imageUrl;if(t){let e=atob(t[2]),r=new Uint8Array(e.length);for(let t=0;t<e.length;t++)r[t]=e.charCodeAt(t);n=yZ(r)}let r=e.imageWidth??c,i=e.imageHeight??c,a=l+(c-r)/2,o=u+(c-i)/2,s=`href="${uZ(n)}"`,d=`x="${a}" y="${o}"`;f+=`<image ${s} ${d} width="${r}" height="${i}"/>`}return{svg:f,hiddenModules:d}}function AZ(e,t,n,r,i=1){let a=n*i,o=(n-a)/2;switch(r){case`square`:return jZ(e+o,t+o,a);case`rounded`:return MZ(e+o,t+o,a,a*.25);case`dots`:return NZ(e+n/2,t+n/2,a/2);case`diamond`:return PZ(e+n/2,t+n/2,a);case`classy`:return FZ(e+o,t+o,a);case`classy-rounded`:return IZ(e+o,t+o,a);case`extra-rounded`:return MZ(e+o,t+o,a,a*.5);case`vertical-line`:return LZ(e+o,t,n,a);case`horizontal-line`:return RZ(e,t+o,n,a);case`small-square`:return jZ(e+n*.15,t+n*.15,n*.7);case`tiny-square`:return jZ(e+n*.25,t+n*.25,n*.5);default:return jZ(e+o,t+o,a)}}function jZ(e,t,n){return`M${e},${t}h${n}v${n}h-${n}z`}function MZ(e,t,n,r){return r=Math.min(r,n/2),`M${e+r},${t}h${n-2*r}a${r},${r},0,0,1,${r},${r}v${n-2*r}a${r},${r},0,0,1,-${r},${r}h-${n-2*r}a${r},${r},0,0,1,-${r},-${r}v-${n-2*r}a${r},${r},0,0,1,${r},-${r}z`}function NZ(e,t,n){return`M${e-n},${t}a${n},${n},0,1,0,${2*n},0a${n},${n},0,1,0,-${2*n},0z`}function PZ(e,t,n){let r=n/2;return`M${e},${t-r}l${r},${r}l-${r},${r}l-${r},-${r}z`}function FZ(e,t,n){let r=n*.35;return`M${e},${t}h${n-r}a${r},${r},0,0,1,${r},${r}v${n-r}h-${n}v-${n}z`}function IZ(e,t,n){let r=n*.35;return`M${e},${t}h${n-r}a${r},${r},0,0,1,${r},${r}v${n-2*r}a${r},${r},0,0,1,-${r},${r}h-${n-r}v-${n}z`}function LZ(e,t,n,r){return`M${e},${t}h${r}v${n}h-${r}z`}function RZ(e,t,n,r){return`M${e},${t}h${n}v${r}h-${n}z`}function zZ(e,t,n,r=`square`){let i=n*7;switch(r){case`rounded`:{let r=n*1.5;return VZ(e,t,i,i,r)+HZ(e+n,t+n,i-2*n,i-2*n,r*.5)}case`dots`:{let r=i/2,a=r-n;return NZ(e+r,t+r,r)+NZ(e+r,t+r,a)}case`extra-rounded`:{let r=n*2.5;return VZ(e,t,i,i,r)+HZ(e+n,t+n,i-2*n,i-2*n,r*.6)}case`classy`:{let r=n*1.5;return VZ(e,t,i,i,r)+HZ(e+n,t+n,i-2*n,i-2*n,r*.5)}default:{let r=i-2*n;return`M${e},${t}h${i}v${i}h-${i}zM${e+n},${t+n}v${r}h${r}v-${r}z`}}}function BZ(e,t,n,r=`square`){let i=n*3,a=e+n*3.5,o=t+n*3.5;switch(r){case`dots`:return NZ(a,o,i/2);case`rounded`:return MZ(e+n*2,t+n*2,i,n*.75);default:return jZ(e+n*2,t+n*2,i)}}function VZ(e,t,n,r,i){return`M${e+i},${t}h${n-2*i}a${i},${i},0,0,1,${i},${i}v${r-2*i}a${i},${i},0,0,1,-${i},${i}h-${n-2*i}a${i},${i},0,0,1,-${i},-${i}v-${r-2*i}a${i},${i},0,0,1,${i},-${i}z`}function HZ(e,t,n,r,i){return VZ(e,t,n,r,i)}const UZ={root:`qr-code`,canvas:`qr-code-canvas`,background:`qr-code-background`,modules:`qr-code-modules`,corner:`qr-code-corner`,logo:`qr-code-logo`,fallback:`qr-code-fallback`},WZ=e=>[{key:`topLeft`,row:0,col:0},{key:`topRight`,row:0,col:e-7},{key:`bottomLeft`,row:e-7,col:0}];function GZ(e,t){let{value:n,size:r=200,margin:i=4,ecLevel:a,version:o,mode:s,mask:c,dotType:u=`square`,dotSize:d=1,corners:f,color:p,background:m,logo:h,logoSize:g=.3,label:_,fallback:v=null,className:y,style:b,...x}=e,S=a??(h?`H`:void 0),C=l.useMemo(()=>{if(!n)return null;try{return lZ(n,{ecLevel:S,version:o,mode:s,mask:c})}catch{return null}},[n,S,o,s,c]);if(!C)return(0,q.jsx)(`div`,{ref:t,className:G(UZ.root,y),style:b,"data-component":`QRCode`,"data-empty":`true`,...x,children:v?(0,q.jsx)(`span`,{className:UZ.fallback,children:v}):null});let w=C.length,T=w+i*2,E=r/T,D=h?kZ({size:g},w,E,i).hiddenModules:void 0,O=WZ(w),k=new Set;if(f)for(let e of O)for(let t=0;t<7;t++)for(let n=0;n<7;n++)k.add(`${e.row+t},${e.col+n}`);let A=[];for(let e=0;e<w;e++)for(let t=0;t<w;t++){if(!C[e][t])continue;let n=`${e},${t}`;D?.has(n)||k.has(n)||A.push(AZ((t+i)*E,(e+i)*E,E,u,d))}let j=(e,t,n)=>{let r=(n+i)*E,a=(t+i)*E;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`path`,{className:UZ.corner,d:zZ(r,a,E,e?.outerShape),fillRule:`evenodd`,style:{fill:e?.outerColor}}),(0,q.jsx)(`path`,{className:UZ.corner,d:BZ(r,a,E,e?.innerShape),style:{fill:e?.innerColor}})]})},M=g*w/T;return(0,q.jsxs)(`div`,{ref:t,role:`img`,"aria-label":_??n,className:G(UZ.root,y),style:{...b,"--qr-code-color":p,"--qr-code-background":m,"--qr-code-logo-size":h?`${M*100}%`:void 0},"data-component":`QRCode`,"data-dot-type":u,...x,children:[(0,q.jsxs)(`svg`,{className:UZ.canvas,width:r,height:r,viewBox:`0 0 ${r} ${r}`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`,children:[(0,q.jsx)(`rect`,{className:UZ.background,width:`100%`,height:`100%`}),f?O.map(e=>(0,q.jsx)(l.Fragment,{children:j(f[e.key],e.row,e.col)},e.key)):null,A.length>0?(0,q.jsx)(`path`,{className:UZ.modules,d:A.join(``)}):null]}),h?(0,q.jsx)(`span`,{className:UZ.logo,"aria-hidden":`true`,children:h}):null]})}GZ.displayName=`QRCode`;var KZ=K(GZ);const qZ=(0,l.createContext)({}),JZ={root:`radio-card-description`};function YZ(e,t){let{className:n,id:r,...i}=e,{descriptionId:a}=l.useContext(qZ);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(JZ.root,n),"data-component":`RadioCard.Description`,...i})}YZ.displayName=`RadioCard.Description`;var XZ=K(YZ);const ZZ={root:`radio-card-label`};function QZ(e,t){let{className:n,id:r,...i}=e,{labelId:a}=l.useContext(qZ);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(ZZ.root,n),"data-component":`RadioCard.Label`,...i})}QZ.displayName=`RadioCard.Label`;var $Z=K(QZ);const eQ={root:`radio-card-leading-visual`};function tQ(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(eQ.root,n),"data-component":`RadioCard.LeadingVisual`,...i})}tQ.displayName=`RadioCard.LeadingVisual`;var nQ=K(tQ);const rQ={body:`radio-card-body`,control:`radio-card-control`},iQ=W(`radio-card`,{variants:{disabled:{true:`radio-card-disabled`,false:`radio-card-interactive`},validation:{error:`radio-card-error`,success:`radio-card-success`}}});function aQ(e,t){let{className:n,children:r,value:i,name:a,checked:o,defaultChecked:s,disabled:c,required:u,validationStatus:d,onChange:f,id:p,"aria-label":m,"aria-labelledby":h,"aria-describedby":g,..._}=e,v=l.useContext(zx).disabled||c,y=Y(p),b=`${y}-label`,x=`${y}-description`,[S,C]=xr(r,{leadingVisual:nQ,label:$Z,description:XZ}),w=h??(S.label&&!m?b:void 0),T=[S.description?x:void 0,g].filter(Boolean).join(` `)||void 0;return(0,q.jsx)(qZ.Provider,{value:{labelId:b,descriptionId:x},children:(0,q.jsxs)(`label`,{ref:t,className:G(iQ({disabled:!!v,validation:d}),n),"data-component":`RadioCard`,"data-disabled":v,"data-required":u,"data-validation":d,..._,children:[S.leadingVisual,(0,q.jsxs)(`div`,{className:rQ.body,children:[S.label,S.description,C]}),(0,q.jsx)(Hx,{id:y,value:i,name:a,checked:o,defaultChecked:s,disabled:v,required:u,validationStatus:d,onChange:f,"aria-label":m,"aria-labelledby":w,"aria-describedby":T,className:rQ.control})]})})}aQ.displayName=`RadioCard`;var oQ=K(aQ);const sQ=Object.assign(oQ,{LeadingVisual:nQ,Label:$Z,Description:XZ}),cQ={root:`radio-group-caption`};function lQ(e,t){let{className:n,...r}=e,{captionId:i}=l.useContext(zx);return(0,q.jsx)(`span`,{ref:t,id:i,className:G(cQ.root,n),"data-component":`RadioGroup.Caption`,...r})}lQ.displayName=`RadioGroup.Caption`;var uQ=K(lQ);const dQ={root:`radio-group-label`,disabled:`radio-group-label-disabled`,hidden:`sr-only`,required:`radio-group-label-required`};function fQ(e,t){let{className:n,children:r,visuallyHidden:i,...a}=e,{disabled:o,required:s}=l.useContext(zx);return(0,q.jsxs)(`span`,{ref:t,title:s?`required field`:void 0,className:G(dQ.root,o&&dQ.disabled,i&&dQ.hidden,n),"data-component":`RadioGroup.Label`,"data-label-disabled":o,...a,children:[r,s?(0,q.jsx)(`span`,{className:dQ.required,children:`*`}):null]})}fQ.displayName=`RadioGroup.Label`;var pQ=K(fQ);const mQ={success:Xt,error:fn},hQ={icon:`radio-group-validation-icon`},gQ=W(`radio-group-validation`,{variants:{variant:{success:`radio-group-validation-success`,error:`radio-group-validation-error`}}});function _Q(e,t){let{className:n,children:r,variant:i,...a}=e,{validationMessageId:o}=l.useContext(zx),s=mQ[i];return(0,q.jsxs)(`span`,{ref:t,className:G(gQ({variant:i}),n),"data-component":`RadioGroup.Validation`,"data-validation-status":i,...a,children:[(0,q.jsx)(s,{className:hQ.icon,"aria-hidden":`true`}),(0,q.jsx)(`span`,{id:o,children:r})]})}_Q.displayName=`RadioGroup.Validation`;var vQ=K(_Q);const yQ={root:`radio-group`,legend:`radio-group-legend`,legendVisible:`radio-group-legend-visible`,body:`radio-group-body`,validation:`radio-group-validation-slot`,hidden:`sr-only`};function bQ(e,t){let{as:n=`fieldset`,className:r,children:i,name:a,disabled:o,required:s,onChange:c,id:u,"aria-labelledby":d,...f}=e,[p,m]=xr(i,{label:pQ,caption:uQ,validation:vQ}),h=Y(u),g=p.caption?`${h}-caption`:void 0,_=p.validation?`${h}-validation`:void 0,v=e=>{let{value:t,checked:n}=e.currentTarget;n&&c?.(t,e)},y=l.isValidElement(p.label)?!p.label.props.visuallyHidden:!1,b={name:a,disabled:o,required:s,captionId:g,validationMessageId:_,onChange:v};return(0,q.jsx)(zx.Provider,{value:b,children:(0,q.jsxs)(n,{ref:t,id:h,disabled:o,"aria-labelledby":p.label?void 0:d,"aria-describedby":[_,g].filter(Boolean).join(` `)||void 0,className:G(yQ.root,r),"data-component":`RadioGroup`,"data-disabled":o,"data-required":s,...f,children:[p.label?(0,q.jsxs)(`legend`,{className:G(yQ.legend,y&&yQ.legendVisible),children:[p.label,s?(0,q.jsx)(`span`,{className:yQ.hidden,children:`, required`}):null,p.caption]}):p.caption,(0,q.jsx)(`div`,{className:yQ.body,children:m}),p.validation?(0,q.jsx)(`div`,{className:yQ.validation,children:p.validation}):null]})})}bQ.displayName=`RadioGroup`;var xQ=K(bQ);const SQ=Object.assign(xQ,{Label:pQ,Caption:uQ,Validation:vQ}),CQ={item:`rating-item`,input:`rating-input`,srOnly:`sr-only`,star:`rating-star`,starTrack:`rating-star-track`,starFill:`rating-star-fill`,starFillIcon:`rating-star-fill-icon`},wQ=W(`rating`,{variants:{size:{small:`rating-small`,medium:`rating-medium`,large:`rating-large`},interactive:{true:`rating-interactive`,false:``},disabled:{true:`rating-disabled`,false:``}}}),TQ=e=>e===1?`1 star`:`${e} stars`,EQ=(e,t)=>`${e} out of ${t} stars`,DQ=({className:e})=>(0,q.jsx)(`svg`,{className:e,"aria-hidden":`true`,viewBox:`0 0 16 16`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,children:(0,q.jsx)(`path`,{d:`M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Z`})});function OQ(e,t){let{className:n,style:r,count:i=5,value:a,defaultValue:o,size:s=`medium`,readOnly:c,disabled:u,clearable:d,name:f,onChange:p,itemLabel:m=TQ,valueLabel:h=EQ,"aria-label":g,..._}=e,v=a!==void 0,[y,b]=l.useState(()=>o??0),x=v?a:y,S=Math.max(Math.trunc(i),0),C=Math.min(Math.max(x,0),S),w=Y(f),T=!c&&!u,E=e=>{T&&(v||b(e),p?.(e))},D=e=>{E(Number(e.currentTarget.value))},O=e=>{d&&Number(e.currentTarget.value)===C&&E(0)},k=c?`span`:`label`;return(0,q.jsx)(`span`,{ref:t,role:c?`img`:`radiogroup`,"aria-label":c?g??h(C,S):g,className:G(wQ({size:s,interactive:T,disabled:!!u}),n),style:{...r,"--rating-value":C},"data-component":`Rating`,"data-size":s,"data-value":C,"data-count":S,"data-readonly":c,"data-disabled":u,..._,children:Array.from({length:S},(e,t)=>{let n=t+1;return(0,q.jsxs)(k,{className:CQ.item,style:{"--rating-item-index":t},"data-component":`Rating.Item`,children:[c?null:(0,q.jsx)(`input`,{type:`radio`,className:G(CQ.input,CQ.srOnly),name:w,value:n,checked:n===C,disabled:u,"aria-label":m(n,S),onChange:D,onClick:O,"data-component":`Rating.Input`}),(0,q.jsxs)(`span`,{className:CQ.star,"aria-hidden":`true`,children:[(0,q.jsx)(DQ,{className:CQ.starTrack}),(0,q.jsx)(`span`,{className:CQ.starFill,children:(0,q.jsx)(DQ,{className:CQ.starFillIcon})})]})]},n)})})}OQ.displayName=`Rating`;var kQ=K(OQ);const AQ=1e3,jQ=60*AQ,MQ=60*jQ,NQ=24*MQ,PQ=7*NQ,FQ=30*NQ,IQ=12*FQ,LQ=`P30D`,RQ=[{unit:`year`,length:IQ},{unit:`month`,length:FQ},{unit:`week`,length:PQ},{unit:`day`,length:NQ},{unit:`hour`,length:MQ},{unit:`minute`,length:jQ},{unit:`second`,length:AQ}],zQ=[`year`,`month`,`day`,`hour`,`minute`,`second`],BQ={year:`y`,month:`mo`,week:`w`,day:`d`,hour:`h`,minute:`m`,second:`s`},VQ=RegExp(`^P(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)W)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+(?:\\.\\d+)?)S)?)?$`),HQ=e=>{let t=VQ.exec(e);if(!t||t.slice(1).every(e=>e===void 0))return null;let[,n,r,i,a,o,s,c]=t;return Number(n??0)*IQ+Number(r??0)*FQ+Number(i??0)*PQ+Number(a??0)*NQ+Number(o??0)*MQ+Number(s??0)*jQ+Number(c??0)*AQ},UQ=e=>{let t=Math.abs(e),{unit:n,length:r}=RQ.find(({length:e})=>t>=e)??RQ[RQ.length-1];return{value:Math.sign(e)*Math.round(t/r),unit:n,length:r}},WQ=(e,t)=>{let n=Math.floor(Math.abs(e)/AQ),r=Math.floor(n/60),i=Math.floor(r/60),a=Math.floor(i/24),o=Math.floor(a/30),s=Math.floor(o/12),c={year:s,month:o-s*12,day:a-o*30,hour:i-a*24,minute:r-i*60,second:n-r*60};return zQ.slice(0,zQ.indexOf(t)+1).map(e=>({unit:e,count:c[e]}))},GQ=e=>{let{value:t,unit:n}=UQ(e);return n===`second`?`1m`:`${Math.abs(t)}${BQ[n]}`},KQ=(e,t)=>{let n=WQ(e,t).filter(({count:e})=>e>0);return n.length===0?`0${BQ[t]}`:n.map(({unit:e,count:t})=>`${t}${BQ[e]}`).join(` `)},qQ=(e,t)=>{let{value:n,unit:r}=UQ(e);return new Intl.RelativeTimeFormat(t,{numeric:`auto`}).format(n,r)},JQ=(e,t,n)=>{let r=e.getFullYear()===new Date(t).getFullYear();return{weekday:n.weekday,year:n.year??(r?void 0:`numeric`),month:n.month??`short`,day:n.day??`numeric`,hour:n.hour,minute:n.minute,second:n.second,timeZoneName:n.timeZoneName}},YQ=(e,t,n,r)=>new Intl.DateTimeFormat(r,JQ(e,t,n)).format(e),XQ=(e,t)=>new Intl.DateTimeFormat(t,{day:`numeric`,month:`short`,year:`numeric`,hour:`numeric`,minute:`2-digit`,timeZoneName:`short`}).format(e),ZQ=(e,t,n)=>{let{format:r,tense:i,precision:a,threshold:o,prefix:s,dateOptions:c,locale:l}=n,u=e.getTime()-t;if(r===`elapsed`)return{text:KQ(u,a),updateDelay:RQ.find(({unit:e})=>e===a)?.length??AQ};let d=HQ(o)??2592e6;if(Math.abs(u)<=d&&(i===`auto`||i===`past`&&u<=0||i===`future`&&u>=0)){let{length:e}=UQ(u);return{text:r===`micro`?GQ(u):qQ(u,l),updateDelay:e}}let f=YQ(e,t,c,l),p=u-d;return{text:s?`${s} ${f}`:f,updateDelay:u<=0?null:p>0?p:u}},QQ=(e,t)=>{let n=e??(t===void 0?void 0:new Date(t));return n&&!Number.isNaN(n.getTime())?n:void 0};function $Q(e,t){let{as:n=`time`,children:r,date:i,datetime:a,format:o=`auto`,tense:s=`auto`,precision:c=`second`,threshold:u=LQ,prefix:d=`on`,noTitle:f,weekday:p,year:m,month:h,day:g,hour:_,minute:v,second:y,timeZoneName:b,...x}=e,S=QQ(i,a),[C,w]=l.useState(()=>Date.now()),{text:T,updateDelay:E}=S?ZQ(S,C,{format:o,tense:s,precision:c,threshold:u,prefix:d,dateOptions:{weekday:p,year:m,month:h,day:g,hour:_,minute:v,second:y,timeZoneName:b}}):{text:``,updateDelay:null};return l.useEffect(()=>{if(E===null)return;let e=window.setTimeout(()=>{w(Date.now())},E);return()=>{window.clearTimeout(e)}},[C,E]),(0,q.jsx)(n,{ref:t,dateTime:S?.toISOString(),title:f||!S?void 0:XQ(S),"data-component":`RelativeTime`,"data-format":o,"data-tense":s,...x,children:r??T})}$Q.displayName=`RelativeTime`;var e$=K($Q);const t$={root:`resizable`};function n$(e,t){let{className:n,orientation:r=`horizontal`,resizableRef:i,...a}=e;return(0,q.jsx)(w.Group,{elementRef:t,groupRef:i,orientation:r,className:G(t$.root,n),"data-component":`Resizable`,"data-orientation":r,...a})}n$.displayName=`Resizable`;var r$=K(n$);const i$={root:`resizable-panel`};function a$(e,t){let{className:n,...r}=e;return(0,q.jsx)(w.Panel,{elementRef:t,className:G(i$.root,n),"data-component":`Resizable.Panel`,...r})}a$.displayName=`Resizable.Panel`;var o$=K(a$);const s$={root:`resizable-resize-trigger`};function c$(e,t){let{className:n,...r}=e;return(0,q.jsx)(w.Separator,{elementRef:t,className:G(s$.root,n),"data-component":`Resizable.ResizeTrigger`,...r})}c$.displayName=`Resizable.ResizeTrigger`;var l$=K(c$);const u$={root:`resizable-resize-trigger-indicator`};function d$(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(u$.root,n),"data-component":`Resizable.ResizeTriggerIndicator`,"aria-hidden":`true`,...r})}d$.displayName=`Resizable.ResizeTriggerIndicator`;var f$=K(d$);const p$={root:`resizable-resize-trigger-separator`};function m$(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(p$.root,n),"data-component":`Resizable.ResizeTriggerSeparator`,"aria-hidden":`true`,...r})}m$.displayName=`Resizable.ResizeTriggerSeparator`;var h$=K(m$);const g$=Object.assign(r$,{Panel:o$,ResizeTrigger:l$,ResizeTriggerSeparator:h$,ResizeTriggerIndicator:f$}),_$=(0,l.createContext)({}),v$=`RichTextEditor`,y$=[C.HeadingNode,C.QuoteNode,S.ListNode,S.ListItemNode,x.LinkNode,x.AutoLinkNode],b$={paragraph:`rich-text-editor-paragraph`,heading:{h1:`rich-text-editor-heading-1`,h2:`rich-text-editor-heading-2`,h3:`rich-text-editor-heading-3`},quote:`rich-text-editor-quote`,link:`rich-text-editor-link`,list:{ul:`rich-text-editor-list-bullet`,ol:`rich-text-editor-list-number`,listitem:`rich-text-editor-list-item`,nested:{listitem:`rich-text-editor-list-item-nested`}},text:{bold:`rich-text-editor-bold`,italic:`rich-text-editor-italic`,underline:`rich-text-editor-underline`,strikethrough:`rich-text-editor-strikethrough`,underlineStrikethrough:`rich-text-editor-underline-strikethrough`,code:`rich-text-editor-inline-code`},ltr:`rich-text-editor-ltr`,rtl:`rich-text-editor-rtl`},x$={root:`rich-text-editor`,readOnly:`rich-text-editor-read-only`},S$=({readOnly:e})=>{let[t]=(0,y.useLexicalComposerContext)();return l.useEffect(()=>{t.setEditable(!e)},[t,e]),null};function C$(e,t){let{className:n,children:r,defaultValue:i,onChange:a,placeholder:o,readOnly:s,nodes:c,namespace:l=v$,onError:u,minHeight:d,maxHeight:f,"aria-label":p,"aria-labelledby":m,"aria-describedby":h,...g}=e,v={namespace:l,theme:b$,nodes:c?[...y$,...c]:y$,editable:!s,editorState:i,onError:u??(e=>{throw e})},y={readOnly:s,placeholder:o,minHeight:d,maxHeight:f,ariaLabel:p,ariaLabelledBy:m,ariaDescribedBy:h};return(0,q.jsx)(`div`,{ref:t,className:G(x$.root,s&&x$.readOnly,n),"data-component":`RichTextEditor`,"data-read-only":s,...g,children:(0,q.jsx)(_.LexicalComposer,{initialConfig:v,children:(0,q.jsxs)(_$.Provider,{value:y,children:[(0,q.jsx)(T.HistoryPlugin,{}),(0,q.jsx)(D.ListPlugin,{}),(0,q.jsx)(E.LinkPlugin,{}),(0,q.jsx)(k.TabIndentationPlugin,{}),(0,q.jsx)(S$,{readOnly:s}),a?(0,q.jsx)(O.OnChangePlugin,{onChange:(e,t)=>a(e,t)}):null,r]})})})}C$.displayName=`RichTextEditor`;var w$=K(C$);const T$={scroll:`rich-text-editor-scroll`,content:`rich-text-editor-content`,placeholder:`rich-text-editor-placeholder`};function E$(e,t){let{className:n,style:r,...i}=e,{placeholder:a,minHeight:o,maxHeight:s,ariaLabel:c,ariaLabelledBy:u,ariaDescribedBy:d}=l.useContext(_$),f=(0,q.jsx)(`div`,{className:T$.scroll,style:{minHeight:o===void 0?void 0:`${o}px`,maxHeight:s===void 0?void 0:`${s}px`},"data-component":`RichTextEditor.Scroll`,children:a?(0,q.jsx)(A.ContentEditable,{ref:t,className:G(T$.content,n),style:r,ariaLabel:c,ariaLabelledBy:u,ariaDescribedBy:d,"aria-placeholder":a,placeholder:(0,q.jsx)(`div`,{className:T$.placeholder,children:a}),"data-component":`RichTextEditor.Content`,...i}):(0,q.jsx)(A.ContentEditable,{ref:t,className:G(T$.content,n),style:r,ariaLabel:c,ariaLabelledBy:u,ariaDescribedBy:d,placeholder:null,"data-component":`RichTextEditor.Content`,...i})});return(0,q.jsx)(M.RichTextPlugin,{contentEditable:f,ErrorBoundary:j.LexicalErrorBoundary})}E$.displayName=`RichTextEditor.Content`;var D$=K(E$);const O$=[`history`,`inline`,`block`,`list`,`link`],k$={root:`rich-text-editor-toolbar`,controls:`rich-text-editor-toolbar-controls`,group:`rich-text-editor-toolbar-group`,divider:`rich-text-editor-toolbar-divider`,linkField:`rich-text-editor-link-field`,linkInput:`rich-text-editor-link-input`},A$=[{format:`bold`,icon:Fn,label:`Bold`},{format:`italic`,icon:Bn,label:`Italic`},{format:`underline`,icon:Wn,label:`Underline`},{format:`strikethrough`,icon:Un,label:`Strikethrough`},{format:`code`,icon:sn,label:`Code`}],j$=[{tag:`h1`,icon:Ln,label:`Heading 1`},{tag:`h2`,icon:Rn,label:`Heading 2`},{tag:`h3`,icon:zn,label:`Heading 3`}],M$={bold:!1,italic:!1,underline:!1,strikethrough:!1,code:!1};function N$(e){let{className:t,children:n,controls:r=O$,"aria-label":i=`Formatting`,...a}=e,[o]=(0,y.useLexicalComposerContext)(),{readOnly:s}=l.useContext(_$),c=l.useRef(null);_r({containerRef:c,direction:`horizontal`,wrap:!0});let[u,d]=l.useState(M$),[f,p]=l.useState(`paragraph`),[m,h]=l.useState(!1),[g,_]=l.useState(!1),[v,b]=l.useState(!1),[w,T]=l.useState(null),E=l.useCallback(()=>{let e=(0,F.$getSelection)();if(!(0,F.$isRangeSelection)(e))return;d({bold:e.hasFormat(`bold`),italic:e.hasFormat(`italic`),underline:e.hasFormat(`underline`),strikethrough:e.hasFormat(`strikethrough`),code:e.hasFormat(`code`)});let t=e.anchor.getNode(),n=t.getKey()===`root`?t:t.getTopLevelElement();if((0,S.$isListNode)(n))p(n.getListType()===`number`?`number`:`bullet`);else if((0,C.$isHeadingNode)(n)){let e=n.getTag();p(e===`h1`||e===`h2`||e===`h3`?e:`paragraph`)}else(0,C.$isQuoteNode)(n)?p(`quote`):p(`paragraph`);h((0,x.$isLinkNode)(t)||(0,x.$isLinkNode)(t.getParent()))},[]);l.useEffect(()=>(0,P.mergeRegister)(o.registerUpdateListener(({editorState:e})=>{e.read(E)}),o.registerCommand(F.SELECTION_CHANGE_COMMAND,()=>(E(),!1),F.COMMAND_PRIORITY_CRITICAL),o.registerCommand(F.CAN_UNDO_COMMAND,e=>(_(e),!1),F.COMMAND_PRIORITY_CRITICAL),o.registerCommand(F.CAN_REDO_COMMAND,e=>(b(e),!1),F.COMMAND_PRIORITY_CRITICAL)),[o,E]);let D=e=>{o.update(()=>{let t=(0,F.$getSelection)();if((0,F.$isRangeSelection)(t)){if(f===e){(0,N.$setBlocksType)(t,()=>(0,F.$createParagraphNode)());return}(0,N.$setBlocksType)(t,()=>e===`quote`?(0,C.$createQuoteNode)():(0,C.$createHeadingNode)(e))}})},O=e=>{if(f===e){o.dispatchCommand(S.REMOVE_LIST_COMMAND,void 0);return}o.dispatchCommand(e===`bullet`?S.INSERT_UNORDERED_LIST_COMMAND:S.INSERT_ORDERED_LIST_COMMAND,void 0)},k=()=>{if(m){o.dispatchCommand(x.TOGGLE_LINK_COMMAND,null);return}T(e=>e===null?``:null)},A=()=>{w&&o.dispatchCommand(x.TOGGLE_LINK_COMMAND,w),T(null),o.focus()},j=(e,t,n,r,i,a)=>(0,q.jsx)(gi,{icon:n,size:`small`,variant:`invisible`,"aria-label":t,"aria-pressed":r,disabled:s||a,onClick:i,"data-component":`RichTextEditor.${e}`},e),M={history:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(gi,{icon:Gt,size:`small`,variant:`invisible`,"aria-label":`Undo`,disabled:s||!g,onClick:()=>o.dispatchCommand(F.UNDO_COMMAND,void 0),"data-component":`RichTextEditor.Undo`}),(0,q.jsx)(gi,{icon:Ht,size:`small`,variant:`invisible`,"aria-label":`Redo`,disabled:s||!v,onClick:()=>o.dispatchCommand(F.REDO_COMMAND,void 0),"data-component":`RichTextEditor.Redo`})]}),inline:(0,q.jsx)(q.Fragment,{children:A$.map(({format:e,icon:t,label:n})=>j(n,n,t,u[e],()=>o.dispatchCommand(F.FORMAT_TEXT_COMMAND,e)))}),block:(0,q.jsxs)(q.Fragment,{children:[j$.map(({tag:e,icon:t,label:n})=>j(n,n,t,f===e,()=>D(e))),j(`Quote`,`Quote`,Hn,f===`quote`,()=>D(`quote`))]}),list:(0,q.jsxs)(q.Fragment,{children:[j(`Bulleted list`,`Bulleted list`,In,f===`bullet`,()=>O(`bullet`)),j(`Numbered list`,`Numbered list`,Vn,f===`number`,()=>O(`number`))]}),link:j(`Link`,m?`Remove link`:`Link`,xn,m||w!==null,k)};return(0,q.jsxs)(`div`,{className:G(k$.root,t),"data-component":`RichTextEditor.Toolbar`,children:[(0,q.jsxs)(`div`,{ref:c,role:`toolbar`,"aria-label":i,"aria-orientation":`horizontal`,className:k$.controls,...a,children:[r.map((e,t)=>(0,q.jsxs)(l.Fragment,{children:[t>0?(0,q.jsx)(`span`,{"aria-hidden":`true`,className:k$.divider,"data-component":`RichTextEditor.ToolbarDivider`}):null,(0,q.jsx)(`div`,{className:k$.group,"data-control":e,children:M[e]})]},e)),n]}),w===null?null:(0,q.jsxs)(`div`,{className:k$.linkField,"data-component":`RichTextEditor.LinkField`,children:[(0,q.jsx)(qo,{autoFocus:!0,size:`small`,type:`url`,value:w,placeholder:`https://example.com`,"aria-label":`Link address`,className:k$.linkInput,onChange:e=>T(e.currentTarget.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),A()),e.key===`Escape`&&(T(null),o.focus())}}),(0,q.jsx)(pi,{size:`small`,onClick:A,children:`Apply`})]})]})}N$.displayName=`RichTextEditor.Toolbar`;const P$=Object.assign(w$,{Toolbar:N$,Content:D$}),F$={item:`segmented-control-segment`,separator:`segmented-control-segment-separator`,separatorHidden:`segmented-control-segment-separator-hidden`,button:`segmented-control-button`,buttonSelected:`segmented-control-button-selected`,buttonDisabled:`segmented-control-button-disabled`,content:`segmented-control-content`,contentSelected:`segmented-control-content-selected`,contentInteractive:`segmented-control-content-interactive`},I$=e=>{let t=e;return l.isValidElement(e)?e:(0,q.jsx)(t,{})};function L$(e){let{component:t,className:n,children:r,selected:i,disabled:a,tooltip:o,tooltipType:s,tooltipDirection:c,"aria-disabled":l,...u}=e,d=!!a||l===!0||l===`true`,f=(0,q.jsx)(`button`,{type:`button`,"aria-pressed":i,"aria-disabled":d||void 0,className:G(F$.button,i&&F$.buttonSelected,d&&!i&&F$.buttonDisabled,n),...u,children:(0,q.jsx)(`span`,{className:G(F$.content,i&&F$.contentSelected,!i&&!d&&F$.contentInteractive),children:r})});return(0,q.jsx)(`li`,{className:G(F$.item,F$.separator,F$.separatorHidden),"data-component":t,"data-selected":i?``:void 0,children:o?(0,q.jsx)(lT,{text:o,type:s,direction:c,children:f}):f})}L$.displayName=`SegmentedControlSegment`;const R$={visual:`segmented-control-visual`,visualDisabled:`segmented-control-visual-disabled`,text:`segmented-control-text`,textHidden:`segmented-control-text-hidden`,counter:`segmented-control-counter`};function z$(e){let{children:t,className:n,count:r,leadingVisual:i,selected:a,disabled:o,defaultSelected:s,...c}=e;return(0,q.jsxs)(L$,{component:`SegmentedControl.Button`,className:n,selected:a,disabled:o,...c,children:[i?(0,q.jsx)(`span`,{className:G(R$.visual,o&&R$.visualDisabled),"data-component":`SegmentedControl.LeadingVisual`,children:I$(i)}):null,(0,q.jsx)(`span`,{className:G(R$.text,R$.textHidden),"data-component":`SegmentedControl.Text`,"data-text":t,children:t}),r===void 0?null:(0,q.jsx)(`span`,{className:R$.counter,children:(0,q.jsx)(si,{children:r})})]})}z$.displayName=`SegmentedControl.Button`;const B$={button:`segmented-control-icon-button`,visual:`segmented-control-icon-visual`,visualDisabled:`segmented-control-visual-disabled`};function V$(e){let{"aria-label":t,className:n,description:r,icon:i,selected:a,disabled:o,tooltipDirection:s,defaultSelected:c,...l}=e;return(0,q.jsx)(L$,{component:`SegmentedControl.IconButton`,className:G(B$.button,n),selected:a,disabled:o,"aria-label":r?t:void 0,tooltip:r??t,tooltipType:r?void 0:`label`,tooltipDirection:s,...l,children:(0,q.jsx)(`span`,{className:G(B$.visual,o&&B$.visualDisabled),"data-component":`SegmentedControl.Icon`,children:I$(i)})})}V$.displayName=`SegmentedControl.IconButton`;const H$={dropdown:`segmented-control-dropdown`},U$=W(`segmented-control`,{variants:{size:{small:`segmented-control-small`,medium:``}}}),W$=e=>l.Children.toArray(e).filter(e=>l.isValidElement(e)),G$=e=>e.type===z$,K$=e=>e.type===V$,q$=e=>{if(e!==void 0)return G$(e)?e.props.children:K$(e)?e.props[`aria-label`]:void 0},J$=e=>e===void 0?null:G$(e)?e.props.leadingVisual??null:K$(e)?e.props.icon:null,Y$=e=>{let t=e.props[`aria-disabled`];return e.props.disabled===!0||t===!0||t===`true`};function X$(e){let{"aria-label":t,"aria-labelledby":n,className:r,children:i,fullWidth:a,onChange:o,size:s=`medium`,variant:c=`default`,...u}=e,d=W$(i),f=o===void 0||d.some(e=>e.props.defaultSelected!==void 0),p=d.findIndex(e=>e.props.defaultSelected||e.props.selected),m=p===-1?0:p,[h,g]=l.useState(m),_=f?h:m,v=d[_],y=(e,t,n)=>{Y$(t)||(f&&g(e),o?.(e),t.props.onClick?.(n))},b=(0,q.jsx)(`ul`,{"aria-label":t,"aria-labelledby":n,className:G(U$({size:s}),r),"data-component":`SegmentedControl`,"data-size":s,...Ui(`full-width`,a),...Ui(`variant`,c),...u,children:d.map((e,t)=>l.cloneElement(e,{selected:t===_,onClick:n=>y(t,e,n)}))});return ls(c)&&Object.values(c).includes(`dropdown`)?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:H$.dropdown,"data-component":`SegmentedControl.Dropdown`,...Ui(`variant`,c),children:(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Button,{"aria-label":t&&`${q$(v)}, ${t}`,leadingVisual:J$(v),children:q$(v)}),(0,q.jsx)(ma.Overlay,{"aria-labelledby":n,children:(0,q.jsx)(ji,{selectionVariant:`single`,children:d.map((e,t)=>{let n=J$(e);return(0,q.jsxs)(ji.Item,{selected:t===_,disabled:Y$(e),onSelect:n=>y(t,e,n),children:[n?(0,q.jsx)(ji.LeadingVisual,{children:I$(n)}):null,q$(e)]},t)})})})]})}),b]}):b}X$.displayName=`SegmentedControl`;const Z$=Object.assign(X$,{Button:z$,IconButton:V$}),Q$=Object.assign(lS,{Option:Zx,OptGroup:qx});function $$(e,t){let{className:n,children:r,...i}=e,{required:a,...o}=Xf(i),{labelId:s}=l.useContext(Yf),c=Y();return(0,q.jsx)(pi,{ref:t,type:`button`,"aria-labelledby":s?`${c} ${s}`:void 0,className:G(n),"data-component":`SelectPanel.Button`,...o,children:s?(0,q.jsx)(`span`,{id:c,children:r}):r})}$$.displayName=`SelectPanel.Button`;var e1=K($$);const t1=(0,l.createContext)({}),n1={root:`select-panel-footer`,rootWithoutActions:`select-panel-footer-without-actions`,content:`select-panel-footer-content`,contentWithoutActions:`select-panel-footer-content-without-actions`,actions:`select-panel-footer-actions`};function r1(e,t){let{className:n,children:r,...i}=e,{selectionVariant:a,onCancel:o}=l.useContext(t1),s=a!==`instant`;return!s&&!r?null:(0,q.jsxs)(`div`,{ref:t,className:G(n1.root,!s&&n1.rootWithoutActions,n),"data-component":`SelectPanel.Footer`,"data-has-actions":s?``:void 0,...i,children:[(0,q.jsx)(`div`,{className:G(n1.content,!s&&n1.contentWithoutActions),children:r}),s?(0,q.jsxs)(`div`,{className:n1.actions,children:[(0,q.jsx)(pi,{type:`button`,size:`small`,onClick:o,children:`Cancel`}),(0,q.jsx)(pi,{type:`submit`,size:`small`,variant:`primary`,children:`Save`})]}):null]})}r1.displayName=`SelectPanel.Footer`;var i1=K(r1);const a1={root:`select-panel-search-input`};function o1(e,t){let{className:n,value:r,onChange:i,onKeyDown:a,...o}=e,{searchQuery:s,setSearchQuery:c,searchInputRef:u,moveFocusToList:d}=l.useContext(t1),f=l.useRef(null),p=ar(u,f),m=ar(t,p),h=r??s??``;return(0,q.jsx)(qo,{ref:m,block:!0,leadingVisual:On,placeholder:`Search`,value:h,onChange:e=>{c?.(e.currentTarget.value),i?.(e.currentTarget.value,e)},onKeyDown:e=>{e.key===`ArrowDown`&&(e.preventDefault(),d?.()),a?.(e)},trailingAction:h?(0,q.jsx)(qo.Action,{icon:ln,"aria-label":`Clear`,onClick:()=>{c?.(``),i?.(``,null),f.current?.focus()}}):void 0,className:G(a1.root,n),"data-component":`SelectPanel.SearchInput`,...o})}o1.displayName=`SelectPanel.SearchInput`;var s1=K(o1);const c1={root:`select-panel-header`,content:`select-panel-header-content`,contentWithSearchInput:`select-panel-header-content-with-search`,titleRow:`select-panel-header-title-row`,title:`select-panel-header-title`,heading:`select-panel-header-heading`,description:`select-panel-header-description`,actions:`select-panel-header-actions`},l1={searchInput:s1};function u1(e,t){let{className:n,children:r,onBack:i,...a}=e,[o,s]=xr(r,l1),{panelId:c,title:u,description:d,onCancel:f,onClearSelection:p}=l.useContext(t1);return(0,q.jsxs)(`div`,{ref:t,className:G(c1.root,n),"data-component":`SelectPanel.Header`,...a,children:[(0,q.jsxs)(`div`,{className:G(c1.content,o.searchInput&&c1.contentWithSearchInput),"data-has-description":d?``:void 0,"data-has-search-input":o.searchInput?``:void 0,children:[(0,q.jsxs)(`div`,{className:c1.titleRow,children:[i?(0,q.jsx)(gi,{type:`button`,variant:`invisible`,icon:Rt,"aria-label":`Back`,onClick:i,"data-component":`SelectPanel.BackButton`}):null,(0,q.jsxs)(`div`,{className:c1.title,"data-has-description":d?``:void 0,"data-has-back":i?``:void 0,children:[(0,q.jsx)(Tr,{as:`h1`,id:c?`${c}-title`:void 0,className:c1.heading,children:u}),d?(0,q.jsx)(`span`,{id:c?`${c}-description`:void 0,className:c1.description,children:d}):null]})]}),(0,q.jsxs)(`div`,{className:c1.actions,children:[p?(0,q.jsx)(gi,{type:`button`,variant:`invisible`,icon:hn,"aria-label":`Clear selection`,onClick:p,"data-component":`SelectPanel.ClearSelectionButton`}):null,(0,q.jsx)(gi,{type:`button`,variant:`invisible`,icon:un,"aria-label":`Close`,onClick:f,"data-component":`SelectPanel.CloseButton`})]})]}),o.searchInput,s]})}u1.displayName=`SelectPanel.Header`;var d1=K(u1);const f1={form:`select-panel-form`,container:`select-panel-container`},p1=W(`select-panel-backdrop`,{variants:{variant:{anchored:``,modal:`select-panel-backdrop-modal motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short`},narrowVariant:{anchored:``,modal:`select-panel-backdrop-narrow-modal`,"full-screen":``,"bottom-sheet":`select-panel-backdrop-narrow-bottom-sheet`}}}),m1=W(`select-panel motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short`,{variants:{width:{small:`select-panel-width-small`,medium:`select-panel-width-medium`,large:`select-panel-width-large`,xlarge:`select-panel-width-xlarge`,auto:`select-panel-width-auto`},maxHeight:{small:`select-panel-max-height-small`,medium:`select-panel-max-height-medium`,large:`select-panel-max-height-large`,xlarge:`select-panel-max-height-xlarge`,"fit-content":`select-panel-max-height-fit-content`},variant:{anchored:`select-panel-anchored`,modal:``},narrowVariant:{anchored:`select-panel-narrow-anchored`,modal:`select-panel-narrow-modal`,"full-screen":`select-panel-narrow-full-screen`,"bottom-sheet":`select-panel-narrow-bottom-sheet`},unplaced:{true:`invisible`,false:``}}}),h1={regular:`anchored`,narrow:`full-screen`},g1=e=>l.isValidElement(e)&&e.type===e1,_1=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign;function v1(e,t){let{className:n,children:r,title:i,description:a,variant:o=h1,selectionVariant:s=`multiple`,id:c,defaultOpen:u=!1,open:d,anchorRef:f,side:p=`outside-bottom`,align:m=`start`,onCancel:h,onClearSelection:g,onSubmit:_,width:v=`medium`,maxHeight:y=`large`,...b}=e,x=Y(c),S=l.useRef(null),C=f??S,w=l.useRef(null),T=ar(t,w),E=l.useRef(null),D=d!==void 0,[O,k]=l.useState(u),A=D?d:O,j=l.useCallback(()=>{D||k(!1)},[D]),M=l.useCallback(()=>{j(),h?.()},[j,h]),N=l.useCallback(()=>g?.(),[g]),P=l.useCallback(e=>{e?.preventDefault(),j(),_?.(e)},[j,_]),F=l.useCallback(()=>{w.current?.querySelector(`[role="option"]`)?.focus()},[]),I=l.useCallback(()=>{s===`instant`&&P()},[s,P]),[L,ee]=l.useState(``),R=l.Children.toArray(r),z=R.find(g1),[te,ne]=xr(R.filter(e=>e!==z),{header:d1,footer:i1}),B=z?.props.onClick,re=z?l.cloneElement(z,{ref:C,onClick:e=>{B?.(e),!e.defaultPrevented&&(A?M():D||k(!0))},"aria-haspopup":!0,"aria-expanded":A}):null,V={...h1,...typeof o==`string`?{regular:o}:o},ie=V.regular??`anchored`,ae=V.narrow,oe=ie===`anchored`||ae===`anchored`,se=l.useRef(null),[ce,le]=l.useState(null),ue=l.useCallback(()=>{let e=C.current,t=w.current;if(!e||!t)return;let n=aa(t,e,{side:p,align:m});se.current&&_1(se.current,n)||(se.current=n,le(n))},[C,p,m]);rr(()=>{if(!A||!oe){se.current=null,le(null);return}ue();let e=new ResizeObserver(ue);return w.current&&e.observe(w.current),window.addEventListener(`resize`,ue),window.addEventListener(`scroll`,ue,!0),()=>{e.disconnect(),window.removeEventListener(`resize`,ue),window.removeEventListener(`scroll`,ue,!0)}},[A,oe,ue]),zi({containerRef:w,initialFocusRef:E,returnFocusRef:C,disabled:!A}),l.useEffect(()=>{A&&!E.current&&F()},[A,F]),Hi(e=>{A&&(e.preventDefault(),M())});let de=l.useMemo(()=>({panelId:x,title:i,description:a,selectionVariant:s,searchQuery:L,setSearchQuery:ee,searchInputRef:E,onCancel:M,onClearSelection:g?N:void 0,moveFocusToList:F}),[x,i,a,s,L,M,g,N,F]),fe=l.useMemo(()=>({container:`SelectPanel`,listRole:`listbox`,listLabelledBy:`${x}-title`,selectionAttribute:`aria-selected`,selectionVariant:s===`instant`?`single`:s,afterSelect:I,enableFocusZone:!0}),[x,s,I]);return(0,q.jsxs)(q.Fragment,{children:[re,A?(0,q.jsx)(ea,{children:(0,q.jsx)(`div`,{className:G(p1({variant:ie,narrowVariant:ae})),onClick:e=>{e.target===e.currentTarget&&M()},"data-component":`SelectPanel.Backdrop`,...Ui(`variant`,V),children:(0,q.jsx)(`div`,{ref:T,role:`dialog`,"aria-modal":!0,"aria-labelledby":`${x}-title`,"aria-describedby":a?`${x}-description`:void 0,className:G(m1({width:v,maxHeight:y,variant:ie,narrowVariant:ae,unplaced:oe&&!ce}),n),style:{"--select-panel-top":`${ce?.top??0}px`,"--select-panel-left":`${ce?.left??0}px`},"data-component":`SelectPanel`,"data-width":v,"data-max-height":y,"data-side":ce?.anchorSide??p,"data-align":ce?.anchorAlign??m,...Ui(`variant`,V),...b,children:(0,q.jsx)(`form`,{className:f1.form,onSubmit:P,children:(0,q.jsxs)(t1.Provider,{value:de,children:[te.header??(0,q.jsx)(d1,{}),(0,q.jsx)(`div`,{className:f1.container,children:(0,q.jsx)(Ar.Provider,{value:fe,children:ne})}),te.footer]})})})})}):null]})}v1.displayName=`SelectPanel`;var y1=K(v1);const b1={root:`select-panel-loading`,text:`select-panel-loading-text`};function x1(e,t){let{className:n,children:r=`Fetching items...`,...i}=e;return(0,q.jsxs)(`div`,{ref:t,role:`status`,"aria-live":`polite`,className:G(b1.root,n),"data-component":`SelectPanel.Loading`,...i,children:[(0,q.jsx)($r,{size:`medium`,srText:null,role:`presentation`}),(0,q.jsx)(`span`,{className:b1.text,children:r})]})}x1.displayName=`SelectPanel.Loading`;var S1=K(x1);const C1={full:`select-panel-message-full`,fullIcon:`select-panel-message-full-icon`,fullTitle:`select-panel-message-full-title`,fullContent:`select-panel-message-full-content`,inline:`select-panel-message-inline`,inlineIcon:`select-panel-message-inline-icon`,variant:{warning:`select-panel-message-warning`,error:`select-panel-message-error`,empty:``},inlineVariant:{warning:`select-panel-message-inline-warning`,error:`select-panel-message-inline-error`,empty:``}};function w1(e,t){let{className:n,children:r,variant:i,size:a,title:o,...s}=e,c=a??(i===`empty`?`full`:`inline`),l=i===`empty`?void 0:{role:`status`,"aria-live":`polite`};return c===`full`?(0,q.jsxs)(`div`,{ref:t,className:G(C1.full,n),"data-component":`SelectPanel.Message`,"data-variant":i,"data-size":`full`,...l,...s,children:[i===`empty`?null:(0,q.jsx)(Gn,{className:G(C1.fullIcon,C1.variant[i]),"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:C1.fullTitle,children:o}),(0,q.jsx)(`span`,{className:C1.fullContent,children:r})]}):(0,q.jsxs)(`div`,{ref:t,className:G(C1.inline,C1.variant[i],C1.inlineVariant[i],n),"data-component":`SelectPanel.Message`,"data-variant":i,"data-size":`inline`,...l,...s,children:[(0,q.jsx)(Gn,{className:C1.inlineIcon,"aria-hidden":`true`}),(0,q.jsx)(`div`,{children:r})]})}w1.displayName=`SelectPanel.Message`;var T1=K(w1);const E1={small:`select-panel-secondary-action-small`,checkbox:`select-panel-secondary-action-checkbox`,box:`select-panel-secondary-action-box`},D1=e=>{let{id:t,children:n,className:r,...i}=e,a=Y(t);return(0,q.jsxs)(`span`,{className:E1.checkbox,"data-component":`SelectPanel.SecondaryAction`,children:[(0,q.jsx)($d,{id:a,className:G(E1.box,r),...i}),(0,q.jsx)(`label`,{htmlFor:a,className:E1.small,children:n})]})};function O1(e){if(e.variant===`checkbox`){let{variant:t,...n}=e;return(0,q.jsx)(D1,{...n})}if(e.variant===`link`){let{variant:t,className:n,...r}=e;return(0,q.jsx)($c,{className:G(E1.small,n),"data-component":`SelectPanel.SecondaryAction`,...r})}let{variant:t,...n}=e;return(0,q.jsx)(pi,{type:`button`,size:`small`,block:!0,"data-component":`SelectPanel.SecondaryAction`,...n})}O1.displayName=`SelectPanel.SecondaryAction`;const k1=Object.assign(y1,{Button:e1,Header:d1,SearchInput:s1,Footer:i1,SecondaryAction:O1,Loading:S1,Message:T1}),A1=W(`separator`,{variants:{orientation:{horizontal:`separator-horizontal`,vertical:`separator-vertical`},variant:{subtle:`separator-subtle`,default:`separator-default`,emphasis:`separator-emphasis`}}});function j1(e,t){let{as:n=`div`,className:r,orientation:i=`horizontal`,variant:a=`default`,...o}=e;return(0,q.jsx)(n,{ref:t,role:`separator`,"aria-orientation":i,className:G(A1({orientation:i,variant:a}),r),"data-component":`Separator`,"data-orientation":i,"data-variant":a,...o})}j1.displayName=`Separator`;var M1=K(j1);const N1=W(`slider`,{variants:{size:{small:`slider-small`,medium:`slider-medium`,large:`slider-large`},orientation:{horizontal:`slider-horizontal`,vertical:`slider-vertical`},block:{true:``,false:``}},compoundVariants:[{block:!0,orientation:`horizontal`,class:`slider-block-horizontal`},{block:!0,orientation:`vertical`,class:`slider-block-vertical`}]}),P1=(e,t,n)=>{if(n<=t)return 0;let r=(e-t)/(n-t)*100;return Math.min(Math.max(r,0),100)};function F1(e,t){let{className:n,style:r,size:i=`medium`,orientation:a=`horizontal`,block:o,min:s=0,max:c=100,step:u=1,value:d,defaultValue:f,disabled:p,onChange:m,...h}=e,g=d!==void 0,[_,v]=l.useState(()=>f??s),y=g?d:_;return(0,q.jsx)(`input`,{ref:t,type:`range`,min:s,max:c,step:u,value:y,disabled:p,onChange:e=>{let t=Number(e.currentTarget.value);g||v(t),m?.(t,e)},className:G(N1({size:i,orientation:a,block:o}),n),style:{...r,"--slider-fill":`${P1(y,s,c)}%`},"aria-orientation":a===`vertical`?`vertical`:void 0,"data-component":`Slider`,"data-size":i,"data-orientation":a,"data-block":o,"data-disabled":p,...h})}F1.displayName=`Slider`;var I1=K(F1);const L1={open:`open`,issueOpened:`open`,pullOpened:`open`,alertOpened:`open`,closed:`done`,issueClosed:`done`,pullMerged:`done`,alertFixed:`done`,pullClosed:`closed`,alertClosed:`closed`,issueClosedNotPlanned:`neutral`,unavailable:`neutral`,archived:`neutral`,pullQueued:`attention`,draft:`draft`,issueDraft:`draft`,alertDismissed:`draft`},R1={open:null,closed:null,draft:nn,archived:Ft,unavailable:Gn,issueOpened:Dn,issueClosed:Xt,issueClosedNotPlanned:En,issueDraft:nn,pullOpened:Jt,pullClosed:ln,pullMerged:Sn,pullQueued:on,alertOpened:Nn,alertClosed:Mn,alertFixed:An,alertDismissed:jn},z1={open:``,closed:``,draft:`Pull request`,archived:`Archived`,unavailable:``,issueOpened:`Issue`,issueClosed:`Issue`,issueClosedNotPlanned:`Issue, not planned`,issueDraft:`Issue`,pullOpened:`Pull request`,pullClosed:`Pull request`,pullMerged:`Pull request`,pullQueued:`Pull request`,alertOpened:`Alert`,alertClosed:`Alert`,alertFixed:`Alert`,alertDismissed:`Alert`},B1=W(`state-label`,{variants:{size:{small:`state-label-small`,medium:`state-label-medium`},tone:{open:`state-label-open`,closed:`state-label-closed`,done:`state-label-done`,draft:`state-label-draft`,attention:`state-label-attention`,neutral:`state-label-neutral`}}}),V1=W(`state-label-visual`,{variants:{size:{small:`state-label-visual-small`,medium:`state-label-visual-medium`}}});function H1(e,t){let{as:n=`span`,className:r,status:i,size:a=`medium`,children:o,...s}=e,c=R1[i],l=z1[i];return(0,q.jsxs)(n,{ref:t,className:G(B1({size:a,tone:L1[i]}),r),"data-component":`StateLabel`,"data-status":i,"data-size":a,...s,children:[c?(0,q.jsx)(c,{className:G(V1({size:a})),role:l?`img`:void 0,"aria-label":l||void 0,"aria-hidden":!l||void 0}):null,o]})}H1.displayName=`StateLabel`;var U1=K(H1);const W1=(0,l.createContext)({}),G1={root:`statistic-card-description`};function K1(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(G1.root,n),"data-component":`StatisticCard.Description`,...r})}K1.displayName=`StatisticCard.Description`;var q1=K(K1);const J1={root:`statistic-card-label`};function Y1(e,t){let{className:n,id:r,...i}=e,{labelId:a}=l.useContext(W1);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(J1.root,n),"data-component":`StatisticCard.Label`,...i})}Y1.displayName=`StatisticCard.Label`;var X1=K(Y1);const Z1={root:`statistic-card-trailing-visual`};function Q1(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(Z1.root,n),"data-component":`StatisticCard.TrailingVisual`,...i})}Q1.displayName=`StatisticCard.TrailingVisual`;var $1=K(Q1);const e0={hidden:`sr-only`},t0={increase:Kt,decrease:Lt,neutral:Pn},n0={increase:`Up`,decrease:`Down`,neutral:`No change`},r0={increase:`positive`,decrease:`negative`,neutral:`neutral`},i0=W(`statistic-card-trend`,{variants:{sentiment:{positive:`statistic-card-trend-positive`,negative:`statistic-card-trend-negative`,neutral:`statistic-card-trend-neutral`}}});function a0(e,t){let{className:n,children:r,direction:i,sentiment:a,...o}=e,s=t0[i],c=a??r0[i];return(0,q.jsxs)(`span`,{ref:t,className:G(i0({sentiment:c}),n),"data-component":`StatisticCard.Trend`,"data-direction":i,"data-sentiment":c,...o,children:[(0,q.jsx)(s,{"aria-hidden":!0}),(0,q.jsx)(`span`,{className:e0.hidden,children:n0[i]}),r]})}a0.displayName=`StatisticCard.Trend`;var o0=K(a0);const s0={root:`statistic-card-value`};function c0(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(s0.root,n),"data-component":`StatisticCard.Value`,...r})}c0.displayName=`StatisticCard.Value`;var l0=K(c0);const u0={root:`statistic-card`,body:`statistic-card-body`,figure:`statistic-card-figure`};function d0(e,t){let{className:n,children:r,id:i,"aria-label":a,"aria-labelledby":o,...s}=e,c=`${Y(i)}-label`,[l,u]=xr(r,{trailingVisual:$1,label:X1,value:l0,trend:o0,description:q1}),d=o??(l.label&&!a?c:void 0);return(0,q.jsx)(W1.Provider,{value:{labelId:c},children:(0,q.jsxs)(`div`,{ref:t,id:i,role:d||a?`group`:void 0,"aria-label":a,"aria-labelledby":d,className:G(u0.root,n),"data-component":`StatisticCard`,...s,children:[(0,q.jsxs)(`div`,{className:u0.body,children:[l.label,l.value||l.trend?(0,q.jsxs)(`div`,{className:u0.figure,children:[l.value,l.trend]}):null,l.description,u]}),l.trailingVisual]})})}d0.displayName=`StatisticCard`;var f0=K(d0);const p0=Object.assign(f0,{Label:X1,Value:l0,Trend:o0,Description:q1,TrailingVisual:$1}),m0=(0,l.createContext)({}),h0={srOnly:`sr-only`},g0=W(`status`,{variants:{variant:{accent:`status-accent`,success:`status-success`,attention:`status-attention`,severe:`status-severe`,danger:`status-danger`,done:`status-done`,neutral:`status-neutral`},size:{small:`status-small`,medium:`status-medium`,large:`status-large`}}});function _0(e,t){let{as:n=`span`,className:r,variant:i=`neutral`,size:a=`medium`,srText:o,children:s,...c}=e;return(0,q.jsx)(m0.Provider,{value:{variant:i,size:a},children:(0,q.jsxs)(n,{ref:t,className:G(g0({variant:i,size:a}),r),"data-component":`Status`,"data-variant":i,"data-size":a,...c,children:[o?(0,q.jsx)(`span`,{className:h0.srOnly,children:o}):null,s]})})}_0.displayName=`Status`;var v0=K(_0);const y0=W(`status-indicator`,{variants:{variant:{accent:`status-indicator-accent`,success:`status-indicator-success`,attention:`status-indicator-attention`,severe:`status-indicator-severe`,danger:`status-indicator-danger`,done:`status-indicator-done`,neutral:`status-indicator-neutral`},size:{small:`status-indicator-small`,medium:`status-indicator-medium`,large:`status-indicator-large`}}});function b0(e,t){let{className:n,variant:r,size:i,...a}=e,o=l.useContext(m0),s=r??o.variant??`neutral`,c=i??o.size??`medium`;return(0,q.jsx)(`span`,{ref:t,"aria-hidden":`true`,className:G(y0({variant:s,size:c}),n),"data-component":`Status.Indicator`,"data-variant":s,"data-size":c,...a})}b0.displayName=`Status.Indicator`;var x0=K(b0);const S0=Object.assign(v0,{Indicator:x0}),C0=(0,l.createContext)(null),w0=W(`steps`,{variants:{orientation:{horizontal:`steps-horizontal`,vertical:`steps-vertical`},size:{small:`steps-small`,medium:``}}}),T0=e=>l.Children.toArray(e).filter(e=>l.isValidElement(e)),E0=(e,t)=>{let n=e+1;return n<t?`complete`:n===t?`current`:`incomplete`};function D0(e,t){let{className:n,children:r,currentStep:i=1,orientation:a=`horizontal`,size:o=`medium`,...s}=e,c=T0(r);return(0,q.jsx)(`ol`,{ref:t,role:`list`,className:G(w0({orientation:a,size:o}),n),"data-component":`Steps`,"data-orientation":a,"data-size":o,"data-count":c.length,...s,children:c.map((e,t)=>(0,q.jsx)(C0.Provider,{value:{index:t,status:E0(t,i)},children:e},e.key))})}D0.displayName=`Steps`;var O0=K(D0);const k0={root:`steps-body`};function A0(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(k0.root,n),"data-component":`Steps.Body`,...r})}A0.displayName=`Steps.Body`;var j0=K(A0);const M0={root:`steps-description`};function N0(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(M0.root,n),"data-component":`Steps.Description`,...r})}N0.displayName=`Steps.Description`;var P0=K(N0);const F0=()=>{let e=(0,l.useContext)(C0);if(!e)throw Error("A step and its parts all have to stand within a `Steps` component.");return e},I0={root:`steps-indicator`,icon:`steps-indicator-icon`};function L0(e,t){let{className:n,children:r,...i}=e,{index:a,status:o}=F0();return(0,q.jsx)(`span`,{ref:t,"aria-hidden":`true`,className:G(I0.root,n),"data-component":`Steps.Indicator`,"data-status":o,...i,children:r??(o===`complete`?(0,q.jsx)(Zt,{className:I0.icon}):a+1)})}L0.displayName=`Steps.Indicator`;var R0=K(L0);const z0={root:`steps-item`,status:`sr-only`},B0={complete:`Completed`,current:``,incomplete:`Not completed`};function V0(e,t){let{className:n,children:r,status:i,statusLabel:a,...o}=e,{index:s,status:c}=F0(),u=i??c,d=a??B0[u],f=l.useMemo(()=>({index:s,status:u}),[s,u]);return(0,q.jsx)(C0.Provider,{value:f,children:(0,q.jsxs)(`li`,{ref:t,"aria-current":u===`current`?`step`:void 0,className:G(z0.root,n),"data-component":`Steps.Item`,"data-status":u,"data-index":s,...o,children:[r,d?(0,q.jsx)(`span`,{className:z0.status,children:d}):null]})})}V0.displayName=`Steps.Item`;var H0=K(V0);const U0={root:`steps-title`};function W0(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(U0.root,n),"data-component":`Steps.Title`,...r})}W0.displayName=`Steps.Title`;var G0=K(W0);const K0=Object.assign(O0,{Item:H0,Indicator:R0,Body:j0,Title:G0,Description:P0}),q0=(0,l.createContext)({}),J0=W(`swap`,{variants:{transition:{fade:`swap-fade`,flip:`swap-flip`,rotate:`swap-rotate`,scale:`swap-scale`,none:`swap-none`}}});function Y0(e,t){let{as:n=`span`,className:r,swap:i=!1,transition:a=`fade`,children:o,...s}=e,c=l.useMemo(()=>({swap:i}),[i]);return(0,q.jsx)(q0.Provider,{value:c,children:(0,q.jsx)(n,{ref:t,className:G(J0({transition:a}),r),"data-component":`Swap`,"data-swap":i?`on`:`off`,"data-transition":a,...s,children:o})})}Y0.displayName=`Swap`;var X0=K(Y0);const Z0={root:`swap-indicator`,active:`swap-indicator-active`};function Q0(e,t){let{as:n=`span`,className:r,type:i,...a}=e,{swap:o}=l.useContext(q0),s=i===(o?`on`:`off`);return(0,q.jsx)(n,{ref:t,"aria-hidden":s?void 0:`true`,className:G(Z0.root,s&&Z0.active,r),"data-component":`Swap.Indicator`,"data-type":i,"data-active":s,...a})}Q0.displayName=`Swap.Indicator`;var $0=K(Q0);const e2=Object.assign(X0,{Indicator:$0}),t2=(0,l.createContext)({}),n2=()=>(0,l.useContext)(t2),r2=(0,l.createContext)(null),i2=()=>(0,l.useContext)(r2),a2=e=>typeof document>`u`?null:document.getElementById(e),o2=(e,t={})=>{let{scrollElement:n,behavior:r}=t,i=a2(e);if(!i)return!1;if(!n)return i.scrollIntoView?.({behavior:r,block:`start`}),!0;if(!n.contains(i))return!1;let a=i.getBoundingClientRect(),o=n.getBoundingClientRect(),s=f2(getComputedStyle(n).scrollPaddingBlockStart||getComputedStyle(n).scrollPaddingTop),c=f2(getComputedStyle(i).scrollMarginBlockStart||getComputedStyle(i).scrollMarginTop),l=a.top-o.top+n.scrollTop-s-c;return n.scrollTo({top:l,...r&&{behavior:r}}),!0},s2=e=>{let t=e.getAttribute(`href`);if(!t)return null;let n=new URL(t,window.location.href);if(n.origin!==window.location.origin||n.pathname!==window.location.pathname||n.search!==window.location.search)return null;try{return decodeURIComponent(n.hash.slice(1))||null}catch{return null}},c2=e=>{let t=window.location.href;window.history.pushState(null,``,`#${e}`),window.dispatchEvent(new HashChangeEvent(`hashchange`,{oldURL:t,newURL:window.location.href}))},l2=e=>{if(e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return!1;let t=e.currentTarget;if(t.hasAttribute(`download`))return!1;let n=t.getAttribute(`target`);return n===null||n===``||n===`_self`},u2=e=>e===null||e.x===0&&e.y===0&&e.width===0&&e.height===0,d2=(e,t)=>e!==null&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,f2=e=>{let t=Number.parseFloat(e);return Number.isNaN(t)?0:t},p2=`-20px 0% -40% 0%`,m2=[],h2=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),g2=(e={})=>{let{items:t=m2,activeIds:n,defaultActiveIds:r,onActiveChange:i,rootMargin:a=p2,threshold:o=0,scrollElement:s=null,scrollBehavior:c=`smooth`}=e,u=n!==void 0,[d,f]=l.useState(r??[]),p=u?n:d,m=t.filter(e=>p.includes(e.value)),h=l.useRef({items:t,currentActiveIds:p,onActiveChange:i,isControlled:u});l.useEffect(()=>{h.current={items:t,currentActiveIds:p,onActiveChange:i,isControlled:u}});let g=l.useCallback(e=>{let t=h.current;h2(t.currentActiveIds,e)||(t.isControlled||f(e),t.onActiveChange?.({activeIds:e,activeItems:t.items.filter(t=>e.includes(t.value))}))},[]),_=t.map(e=>e.value).join(),v=Array.isArray(o)?o.join():String(o);return l.useEffect(()=>{let e=h.current.items;if(e.length===0||typeof IntersectionObserver>`u`)return;let t=new Map,n=new IntersectionObserver(e=>{for(let n of e)t.set(n.target.id,n.isIntersecting);let n=h.current.items.filter(e=>t.get(e.value)).map(e=>e.value);n.length!==0&&g(n)},{rootMargin:a,threshold:o,root:s});for(let t of e){let e=a2(t.value);e&&n.observe(e)}return()=>{n.disconnect()}},[_,a,v,s,g]),{items:t,activeIds:p,activeItems:m,setActiveIds:g,scrollTo:(e,t)=>o2(e,{scrollElement:s,behavior:t?.behavior??c}),getItemState:e=>({active:p.includes(e.value),first:e.value===p[0],last:e.value===p[p.length-1],depth:e.depth})}},_2={root:`table-of-contents`};function v2(e,t){let{as:n=`div`,className:r,id:i,items:a,activeIds:o,defaultActiveIds:s,rootMargin:c,threshold:u,scrollElement:d,scrollBehavior:f=`smooth`,autoScroll:p=!0,onActiveChange:m,children:h,...g}=e,_=Y(i),v=l.useMemo(()=>({root:_,title:`${_}-title`,list:`${_}-list`,indicator:`${_}-indicator`,item:e=>`${_}-item-${e}`,link:e=>`${_}-link-${e}`}),[_]),[y,b]=l.useState(null),x=d===void 0?y:d,[S,C]=l.useState(!1),w=g2({items:a,activeIds:o,defaultActiveIds:s,onActiveChange:m,rootMargin:c,threshold:u,scrollElement:x,scrollBehavior:f}),T=w.activeIds[0];l.useEffect(()=>{!p||T===void 0||document.getElementById(v.item(T))?.scrollIntoView?.({behavior:f,block:`nearest`})},[p,T,v,f]);let E={...w,ids:v,scrollElement:x,setScrollElement:b,hasTitle:S,setHasTitle:C};return(0,q.jsx)(t2.Provider,{value:E,children:(0,q.jsx)(n,{ref:t,id:v.root,className:G(_2.root,r),"data-component":`TableOfContents`,...g,children:h})})}v2.displayName=`TableOfContents`;var y2=K(v2);const b2={root:`table-of-contents-content`};function x2(e,t){let{as:n=`article`,className:r,...i}=e,{setScrollElement:a}=n2(),o=ar(t,a);return(0,q.jsx)(n,{ref:o,className:G(b2.root,r),"data-component":`TableOfContents.Content`,...i})}x2.displayName=`TableOfContents.Content`;var S2=K(x2);const C2={root:`table-of-contents-indicator`},w2=e=>e===void 0?void 0:`${e}px`;function T2(e,t){let{as:n=`div`,className:r,style:i,...a}=e,{ids:o,activeIds:s}=n2(),[c,u]=l.useState(null),d=s?.join()??``;return rr(()=>{let e=s??[];if(!o||e.length===0){u(null);return}let t=document.getElementById(o.list),n=document.getElementById(o.item(e[0])),r=document.getElementById(o.item(e[e.length-1]));if(!n){u(null);return}let i=()=>{let e=n.getBoundingClientRect(),i=t?.getBoundingClientRect(),a=t&&i?e.left-i.left+t.scrollLeft:0,o=t&&i?e.top-i.top+t.scrollTop:0,s=r&&r!==n?r.getBoundingClientRect().bottom-e.top:e.height,c={x:a,y:o,width:e.width,height:s};u(e=>d2(e,c)?e:c)};if(i(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(i);return a.observe(n),r&&r!==n&&a.observe(r),t&&a.observe(t),()=>{a.disconnect()}},[d,o]),(0,q.jsx)(n,{ref:t,id:o?.indicator,"aria-hidden":`true`,hidden:u2(c),className:G(C2.root,r),style:{...i,"--table-of-contents-indicator-x":w2(c?.x),"--table-of-contents-indicator-y":w2(c?.y),"--table-of-contents-indicator-width":w2(c?.width),"--table-of-contents-indicator-height":w2(c?.height)},"data-component":`TableOfContents.Indicator`,...a})}T2.displayName=`TableOfContents.Indicator`;var E2=K(T2);const D2={root:`table-of-contents-item`};function O2(e,t){let{as:n=`li`,className:r,item:i,style:a,...o}=e,{ids:s,getItemState:c}=n2(),l=c?.(i);return(0,q.jsx)(r2.Provider,{value:i,children:(0,q.jsx)(n,{ref:t,id:s?.item(i.value),className:G(D2.root,r),style:{...a,"--table-of-contents-item-depth":i.depth},"data-component":`TableOfContents.Item`,"data-value":i.value,"data-depth":i.depth,"data-active":l?.active?``:void 0,"data-first":l?.first?``:void 0,"data-last":l?.last?``:void 0,...o})})}O2.displayName=`TableOfContents.Item`;var k2=K(O2);const A2={root:`table-of-contents-link`};function j2(e,t){let{as:n=`a`,className:r,onClick:i,...a}=e,{ids:o,scrollElement:s,scrollTo:c,getItemState:l}=n2(),u=i2(),d=u&&l?.(u);return(0,q.jsx)(n,{ref:t,id:u?o?.link(u.value):void 0,className:G(A2.root,r),"aria-current":d?.active?`location`:void 0,"data-component":`TableOfContents.Link`,"data-value":u?.value,"data-active":d?.active?``:void 0,onClick:e=>{if(i?.(e),e.defaultPrevented||!s||!l2(e))return;let t=s2(e.currentTarget);!t||!c?.(t)||(e.preventDefault(),c2(t))},...a})}j2.displayName=`TableOfContents.Link`;var M2=K(j2);const N2={root:`table-of-contents-list`};function P2(e,t){let{as:n=`ul`,className:r,...i}=e,{ids:a}=n2();return(0,q.jsx)(n,{ref:t,id:a?.list,className:G(N2.root,r),"data-component":`TableOfContents.List`,...i})}P2.displayName=`TableOfContents.List`;var F2=K(P2);const I2={root:`table-of-contents-nav`};function L2(e,t){let{as:n=`nav`,className:r,placement:i,...a}=e,{ids:o,hasTitle:s}=n2();return(0,q.jsx)(n,{ref:t,"aria-labelledby":s?o?.title:void 0,className:G(I2.root,r),"data-component":`TableOfContents.Nav`,"data-placement":i,...a})}L2.displayName=`TableOfContents.Nav`;var R2=K(L2);const z2={root:`table-of-contents-title`};function B2(e,t){let{as:n=`h2`,className:r,...i}=e,{ids:a,setHasTitle:o}=n2();return rr(()=>(o?.(!0),()=>o?.(!1)),[o]),(0,q.jsx)(n,{ref:t,id:a?.title,className:G(z2.root,r),"data-component":`TableOfContents.Title`,...i})}B2.displayName=`TableOfContents.Title`;var V2=K(B2);const H2=Object.assign(y2,{Root:y2,Content:S2,Nav:R2,Title:V2,List:F2,Item:k2,Link:M2,Indicator:E2}),U2=(0,l.createContext)(null);function W2(e){let{children:t,id:n,value:r,defaultValue:i,onChange:a}=e,o=Y(n),s=r!==void 0,[c,u]=l.useState(i),d=s?r:c,f=l.useRef(a);rr(()=>{f.current=a},[a]);let p=l.useMemo(()=>({groupId:o,selectedValue:d,selectTab:e=>{s||u(e),f.current?.(e)}}),[o,d,s]);return(0,q.jsx)(U2.Provider,{value:p,children:t})}W2.displayName=`Tabs`;const G2=(...e)=>t=>{for(let n of e)if(n?.(t),t.defaultPrevented)break},K2=()=>{let e=(0,l.useContext)(U2);if(!e)throw Error("A tablist, a tab and a panel all have to stand within a `Tabs` component.");return e},q2=e=>{let{value:t,disabled:n}=e,r=K2(),i=r.selectedValue===t;return{selected:i,tabProps:{id:`${r.groupId}-tab-${t}`,role:`tab`,"aria-controls":`${r.groupId}-panel-${t}`,"aria-selected":i,"aria-disabled":n?!0:void 0,tabIndex:i?0:-1,onKeyDown:e=>{(e.key===` `||e.key===`Enter`)&&r.selectTab(t)},onMouseDown:e=>{if(n||e.button!==0||e.ctrlKey){e.preventDefault();return}r.selectTab(t)},onFocus:()=>{!i&&!n&&r.selectTab(t)}}}},J2={root:`tab`,vertical:`tab-vertical`,hover:`tab-hover`,selected:`tab-selected`,disabled:`tab-disabled`};function Y2(e,t){let{className:n,value:r,disabled:i,onKeyDown:a,onMouseDown:o,onFocus:s,...c}=e,{selected:l,tabProps:u}=q2({value:r,disabled:i});return(0,q.jsx)(`button`,{...c,...u,ref:t,type:`button`,onKeyDown:G2(a,u.onKeyDown),onMouseDown:G2(o,u.onMouseDown),onFocus:G2(s,u.onFocus),className:G(J2.root,J2.vertical,J2.hover,l&&J2.selected,i&&J2.disabled,n),"data-component":`Tabs.Tab`,"data-value":r,"data-selected":l?``:void 0})}Y2.displayName=`Tabs.Tab`;var X2=K(Y2);const Z2=e=>Array.from(e.querySelectorAll(`[role='tab']:not([aria-disabled])`)),Q2=e=>{let{"aria-label":t,"aria-labelledby":n,"aria-orientation":r,ref:i}=e,a=l.useRef(null),o=ar(i,a),s=r??`horizontal`;return{tabListProps:{ref:o,role:`tablist`,"aria-label":t,"aria-labelledby":n,"aria-orientation":s,onKeyDown:e=>{let t=a.current;if(!t)return;let n=s===`vertical`,r=n?`ArrowDown`:`ArrowRight`,i=n?`ArrowUp`:`ArrowLeft`,o=e.key===`Home`||e.key===`End`,c=e.key===r?1:e.key===i?-1:0;if(c===0&&!o)return;e.preventDefault(),e.stopPropagation();let l=Z2(t);if(l.length===0)return;if(o){l[e.key===`Home`?0:l.length-1].focus();return}let u=l.findIndex(e=>e.getAttribute(`aria-selected`)===`true`);l[u===-1?0:(u+c+l.length)%l.length].focus()}}}},$2={root:`tab-list`,vertical:`tab-list-vertical`};function e4(e,t){let{className:n,onKeyDown:r,"aria-label":i,"aria-labelledby":a,"aria-orientation":o,...s}=e,{tabListProps:c}=Q2({"aria-label":i,"aria-labelledby":a,"aria-orientation":o,ref:t}),l=c[`aria-orientation`]===`vertical`;return(0,q.jsx)(`div`,{...s,...c,onKeyDown:G2(r,c.onKeyDown),className:G($2.root,l&&$2.vertical,n),"data-component":`Tabs.List`,"data-orientation":c[`aria-orientation`]})}e4.displayName=`Tabs.List`;var t4=K(e4);const n4=e=>{let{value:t}=e,n=K2(),r=n.selectedValue===t;return{tabPanelProps:{id:`${n.groupId}-panel-${t}`,role:`tabpanel`,"aria-labelledby":`${n.groupId}-tab-${t}`,hidden:!r,"data-selected":r?``:void 0}}};function r4(e,t){let{className:n,value:r,...i}=e,{tabPanelProps:a}=n4({value:r});return(0,q.jsx)(`div`,{...i,...a,ref:t,className:n,"data-component":`Tabs.Panel`,"data-value":r})}r4.displayName=`Tabs.Panel`;var i4=K(r4);const a4=Object.assign(W2,{List:t4,Tab:X2,Panel:i4}),o4={root:`timeline`,clipStart:`timeline-clip-start`,clipEnd:`timeline-clip-end`},s4=e=>{if(e===!0||e===`both`)return`both`;if(e===`start`||e===`end`)return e};function c4(e,t){let{className:n,clipSidebar:r,...i}=e,a=s4(r);return(0,q.jsx)(`ol`,{ref:t,role:`list`,className:G(o4.root,(a===`start`||a===`both`)&&o4.clipStart,(a===`end`||a===`both`)&&o4.clipEnd,n),"data-component":`Timeline`,"data-clip-sidebar":a,...i})}c4.displayName=`Timeline`;var l4=K(c4);const u4={root:`timeline-actions`,narrow:`timeline-actions-narrow`};function d4(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(u4.root,u4.narrow,n),"data-component":`Timeline.Actions`,...r})}d4.displayName=`Timeline.Actions`;var f4=K(d4);const p4={root:`timeline-avatar`};function m4(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(p4.root,n),"data-component":`Timeline.Avatar`,...r})}m4.displayName=`Timeline.Avatar`;var h4=K(m4);const g4={wrapper:`timeline-badge-wrapper`},_4=W(`timeline-badge`,{variants:{variant:{accent:`timeline-badge-accent`,success:`timeline-badge-success`,attention:`timeline-badge-attention`,severe:`timeline-badge-severe`,danger:`timeline-badge-danger`,done:`timeline-badge-done`,open:`timeline-badge-open`,closed:`timeline-badge-closed`,sponsors:`timeline-badge-sponsors`}}});function v4(e,t){let{className:n,variant:r,...i}=e;return(0,q.jsx)(`div`,{className:g4.wrapper,children:(0,q.jsx)(`div`,{ref:t,className:G(_4({variant:r}),n),"data-component":`Timeline.Badge`,"data-variant":r,...i})})}v4.displayName=`Timeline.Badge`;var y4=K(v4);const b4={root:`timeline-body`};function x4(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(b4.root,n),"data-component":`Timeline.Body`,...r})}x4.displayName=`Timeline.Body`;var S4=K(x4);const C4={root:`timeline-break`,beforeCondensed:`timeline-break-before-condensed`};function w4(e,t){let{className:n,...r}=e;return(0,q.jsx)(`li`,{ref:t,role:`presentation`,className:G(C4.root,C4.beforeCondensed,n),"data-component":`Timeline.Break`,...r})}w4.displayName=`Timeline.Break`;var T4=K(w4);const E4={root:`timeline-item`,rail:`timeline-item-rail`,condensed:`timeline-item-condensed`,condensedBadge:`timeline-item-condensed-badge`,condensedAvatar:`timeline-item-condensed-avatar`,narrow:`timeline-item-narrow`};function D4(e,t){let{className:n,condensed:r,...i}=e;return(0,q.jsx)(`li`,{ref:t,className:G(E4.root,E4.rail,E4.narrow,r&&E4.condensed,r&&E4.condensedBadge,r&&E4.condensedAvatar,n),"data-component":`Timeline.Item`,"data-timeline-item":``,"data-condensed":r?``:void 0,...i})}D4.displayName=`Timeline.Item`;var O4=K(D4);const k4=Object.assign(l4,{Item:O4,Avatar:h4,Badge:y4,Body:S4,Break:T4,Actions:f4}),A4=(0,l.createContext)({}),j4=()=>(0,l.useContext)(A4);var M4=c(o(((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_duration=r()})(e,(function(){"use strict";var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,u={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(c);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/o),e%=o,this.$d.months=h(e/s),e%=s,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(l,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r;return r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms,f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))}))());eu.default.extend(M4.default);const N4=e=>{let t=eu.default.duration(Math.max(e,0));return{days:Math.floor(t.asDays()),hours:Math.floor(t.asHours())%24,minutes:Math.floor(t.asMinutes())%60,seconds:Math.floor(t.asSeconds())%60,milliseconds:Math.floor(t.asMilliseconds())%1e3}},P4=e=>{let t=eu.default.duration(e);return{days:t.format(`DD`),hours:t.format(`HH`),minutes:t.format(`mm`),seconds:t.format(`ss`),milliseconds:t.format(`SSS`)}},F4=()=>(0,eu.default)(),I4=1e3,L4=(e,t)=>t>0?Math.floor(e/t)*t:e,R4=(e,t,n,r)=>r?Math.max(t-e,n??0):n===void 0?t+e:Math.min(t+e,n),z4=(e={})=>{let{countdown:t=!1,startMs:n=0,targetMs:r,interval:i=I4,autoStart:a=!1,onTick:o,onComplete:s}=e,[c,u]=l.useState(a?`running`:`idle`),[d,f]=l.useState(0),[p,m]=l.useState(F4),h=t?r??0:r,g=R4(L4(d,i),n,h,t),_=N4(g),v=P4(_),y=h!==void 0&&(t?g<=h:g>=h),b=l.useRef(o),x=l.useRef(s);return l.useEffect(()=>{b.current=o,x.current=s},[o,s]),l.useEffect(()=>{if(c!==`running`)return;let e=window.setInterval(()=>{let e=F4().diff(p),r=R4(L4(e,i),n,h,t),a=N4(r);f(e),b.current?.({value:r,time:a,formattedTime:P4(a)})},i);return()=>{window.clearInterval(e)}},[c,i,p,n,h,t]),l.useEffect(()=>{c!==`running`||!y||(u(`completed`),x.current?.())},[c,y]),{value:g,time:_,formattedTime:v,status:c,running:c===`running`,paused:c===`paused`,completed:c===`completed`,start:()=>{m(F4()),f(0),u(`running`)},pause:()=>{c===`running`&&(f(F4().diff(p)),u(`paused`))},resume:()=>{c===`paused`&&(m(F4().subtract(d,`millisecond`)),u(`running`))},reset:()=>{m(F4()),f(0),u(`idle`)}}},B4={root:`timer`};function V4(e,t){let{as:n=`div`,className:r,countdown:i,startMs:a,targetMs:o,interval:s,autoStart:c,onTick:l,onComplete:u,children:d,...f}=e,p=z4({countdown:i,startMs:a,targetMs:o,interval:s,autoStart:c,onTick:l,onComplete:u});return(0,q.jsx)(A4.Provider,{value:p,children:(0,q.jsx)(n,{ref:t,className:G(B4.root,r),"data-component":`Timer`,"data-status":p.status,...f,children:d})})}V4.displayName=`Timer`;var H4=K(V4);const U4={root:`timer-action-trigger`},W4={start:e=>e!==`running`,pause:e=>e===`running`,resume:e=>e===`paused`,reset:e=>e!==`idle`};function G4(e,t){let{className:n,action:r,disabled:i,onClick:a,children:o,...s}=e,c=l.useContext(A4),u=c.status??`idle`,d={start:c.start,pause:c.pause,resume:c.resume,reset:c.reset}[r];return(0,q.jsx)(pi,{ref:t,disabled:i??!W4[r](u),onClick:e=>{a?.(e),!e.defaultPrevented&&d?.()},className:G(U4.root,n),"data-component":`Timer.ActionTrigger`,"data-action":r,...s,children:o})}G4.displayName=`Timer.ActionTrigger`;var K4=K(G4);const q4={root:`timer-area`};function J4(e,t){let{as:n=`div`,className:r,...i}=e,{status:a}=l.useContext(A4);return(0,q.jsx)(n,{ref:t,role:`timer`,className:G(q4.root,r),"data-component":`Timer.Area`,"data-status":a,...i})}J4.displayName=`Timer.Area`;var Y4=K(J4);const X4={root:`timer-control`};function Z4(e,t){let{as:n=`div`,className:r,...i}=e,{status:a}=l.useContext(A4);return(0,q.jsx)(n,{ref:t,className:G(X4.root,r),"data-component":`Timer.Control`,"data-status":a,...i})}Z4.displayName=`Timer.Control`;var Q4=K(Z4);const $4={root:`timer-item`};function e3(e,t){let{as:n=`div`,className:r,type:i,children:a,...o}=e,{formattedTime:s}=l.useContext(A4);return(0,q.jsx)(n,{ref:t,className:G($4.root,r),"data-component":`Timer.Item`,"data-unit":i,...o,children:a??s?.[i]})}e3.displayName=`Timer.Item`;var t3=K(e3);const n3={root:`timer-separator`};function r3(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,"aria-hidden":`true`,className:G(n3.root,r),"data-component":`Timer.Separator`,...i})}r3.displayName=`Timer.Separator`;var i3=K(r3);const a3=Object.assign(H4,{Root:H4,Area:Y4,Item:t3,Separator:i3,Control:Q4,ActionTrigger:K4});let o3=[],s3=0;const c3=new Set,l3=()=>{for(let e of c3)e()},u3=e=>(c3.add(e),()=>{c3.delete(e)}),d3=()=>o3,f3=[],p3=()=>f3,m3=e=>(o3=o3.some(t=>t.id===e.id)?o3.map(t=>t.id===e.id?{...t,...e,dismissed:!1,revision:t.revision+1}:t):[{...e,revision:0},...o3],l3(),e.id),h3=e=>(o3=o3.map(t=>e===void 0||t.id===e?{...t,dismissed:!0}:t),l3(),e),g3=e=>{o3=o3.filter(t=>t.id!==e),l3()},_3=()=>`toast-${++s3}`,v3=(e,t,n={})=>m3({...n,id:n.id??_3(),title:t,variant:e}),y3=(e,t)=>typeof e==`function`?e(t):e,b3=(e,t,n={})=>{let r=n.id??_3();v3(`loading`,t.loading,{...n,id:r,duration:1/0});let i=(e,t)=>{if(t==null){h3(r);return}v3(e,t,{...n,id:r,duration:n.duration})};return(typeof e==`function`?e():e).then(e=>i(`success`,y3(t.success,e)),e=>i(`error`,y3(t.error,e))),r},x3=(e,t)=>v3(`default`,e,t),S3=Object.assign(x3,{message:x3,success:(e,t)=>v3(`success`,e,t),error:(e,t)=>v3(`error`,e,t),warning:(e,t)=>v3(`warning`,e,t),info:(e,t)=>v3(`info`,e,t),loading:(e,t)=>v3(`loading`,e,{duration:1/0,...t}),custom:(e,t={})=>m3({...t,id:t.id??_3(),variant:`default`,render:e}),promise:b3,dismiss:h3,getToasts:d3}),C3={root:`toast`,animated:`motion-safe:[transition:transform_var(--motion-transition-state-change),opacity_var(--motion-transition-state-change),height_var(--motion-transition-state-change)]`,grabbable:`toast-grabbable`,lift:{top:`toast-lift-top`,bottom:`toast-lift-bottom`},bridge:`toast-bridge`,bridgeTop:`toast-bridge-top`,bridgeBottom:`toast-bridge-bottom`,card:`toast-card`,iconColor:{default:``,success:`toast-icon-success`,error:`toast-icon-error`,warning:`toast-icon-warning`,info:`toast-icon-info`,loading:``},richColors:{default:``,success:`toast-rich-success`,error:`toast-rich-error`,warning:`toast-rich-warning`,info:`toast-rich-info`,loading:``},hidden:`opacity-0`,waiting:`pointer-events-none`,dragging:`select-none`,body:`toast-body motion-safe:[transition:opacity_var(--motion-transition-state-change)]`,bodyStacked:`opacity-0`,icon:`toast-icon`,content:`toast-content`,title:`toast-title`,description:`toast-description`,actions:`toast-actions`},w3={default:null,success:Xt,error:fn,warning:Gn,info:vn,loading:null},T3=e=>typeof e==`object`&&!!e&&`label`in e&&!l.isValidElement(e);function E3(e){let{toast:t,place:n,position:r,height:i,frontHeight:a,stackSize:o,expanded:s,visible:c,paused:u,swipeDirections:d,icons:f,defaults:p,onHeight:m}=e,{id:h,variant:g,title:_,description:v,render:y}=t,b=t.duration??p.duration,x=t.dismissible??p.dismissible,S=t.closeButton??p.closeButton,C=t.richColors??p.richColors,w=t.important??p.important??!1,T=l.useRef(null),[E,D]=l.useState(!1),[O,k]=l.useState({x:0,y:0}),[A,j]=l.useState(!1),[M,N]=l.useState(!1),P=l.useRef(null),F=!!t.dismissed,I=n.index===0,L=E&&!s&&!I,ee=!!y,R=r.startsWith(`top`)?`top`:`bottom`,z=e=>{t.dismissed||(h3(h),e===`timeout`?t.onAutoClose?.(t):t.onDismiss?.(t))};l.useEffect(()=>{D(!0)},[]);let te=l.useRef({revision:-1,time:b});l.useEffect(()=>{if(te.current.revision!==t.revision&&(te.current={revision:t.revision,time:b}),u||F||b===1/0)return;let e=Date.now(),n=window.setTimeout(()=>z(`timeout`),Math.max(te.current.time,0));return()=>{window.clearTimeout(n),te.current.time-=Date.now()-e}},[t,b,u,F]),l.useEffect(()=>{if(!F)return;let e=window.setTimeout(()=>g3(h),200);return()=>{window.clearTimeout(e)}},[F,h]),rr(()=>{let e=T.current;if(!e)return;let t=e.style.height;e.style.height=`auto`;let n=e.getBoundingClientRect().height;e.style.height=t,m(h,n)},[m,h,t.revision,_,v,s]);let ne=e=>d.includes(e),B=(e,t,n)=>e<0?ne(t)?e:0:ne(n)?e:0,re=e=>{!x||e.button!==0||e.target.closest(`button`)||(P.current={pointerId:e.pointerId,x:e.clientX,y:e.clientY},e.currentTarget.setPointerCapture?.(e.pointerId),j(!0))},V=e=>{let t=P.current;!t||t.pointerId!==e.pointerId||k({x:B(e.clientX-t.x,`left`,`right`),y:B(e.clientY-t.y,`top`,`bottom`)})},ie=e=>{let t=P.current;if(!t||t.pointerId!==e.pointerId)return;if(P.current=null,j(!1),Math.max(Math.abs(O.x),Math.abs(O.y))<45){k({x:0,y:0});return}let n=e.currentTarget.getBoundingClientRect(),r=(e,t)=>e===0?0:Math.sign(e)*(t+32);k({x:r(O.x,n.width),y:r(O.y,n.height)}),N(!0),z(`swipe`)},ae=()=>{P.current=null,j(!1),k({x:0,y:0})},oe=s?`calc(var(--toast-lift) * var(--toast-offset))`:`calc(var(--toast-lift) * var(--toaster-gap) * var(--toast-index))`,se=`calc(var(--toast-lift) * -100%)`,ce={"--toast-index":n.index,"--toast-offset":`${n.offset}px`,"--toast-z-index":o-n.index,"--toast-height":(e=>e>0?`${e}px`:`auto`)(L?a:i),"--toast-shift":E?!F||M?oe:I?se:s?`calc(${oe} + ${se})`:oe:se,"--toast-scale":L?Math.max(1-n.index*.05,0):1,"--toast-swipe-x":`${O.x}px`,"--toast-swipe-y":`${O.y}px`},le=w3[g],ue=t.icon===void 0?f?.[g]:t.icon,de=ue===void 0?g===`loading`?(0,q.jsx)($r,{size:`small`,srText:null}):le?(0,q.jsx)(le,{}):null:ue,fe=(e,t,n)=>T3(e)?(0,q.jsx)(pi,{size:`small`,variant:n,onClick:n=>{e.onClick?.(n),n.defaultPrevented||z(t)},"data-component":`Toast.${t===`action`?`Action`:`Cancel`}`,children:e.label}):e,pe=t.action!==void 0||t.cancel!==void 0;return(0,q.jsx)(`li`,{ref:T,role:w?`alert`:`status`,"aria-live":w?`assertive`:`polite`,"aria-atomic":`true`,className:G(C3.root,C3.lift[R],C3.bridge,R===`top`?C3.bridgeTop:C3.bridgeBottom,x&&C3.grabbable,!ee&&C3.card,!ee&&C3.iconColor[g],!ee&&C&&C3.richColors[g],(!E||F||!c)&&C3.hidden,!c&&C3.waiting,A?C3.dragging:C3.animated,p.className,t.className),style:ce,"data-component":`Toast`,"data-variant":g,"data-position":r,"data-mounted":E,"data-removed":F,"data-front":I,"data-expanded":s,"data-stacked":L,"data-visible":c,"data-dragging":A,"data-swiped-out":M,"data-rich-colors":C||void 0,onPointerDown:re,onPointerMove:V,onPointerUp:ie,onPointerCancel:ae,children:ee?y?.(t):(0,q.jsxs)(`div`,{className:G(C3.body,L&&C3.bodyStacked),"data-component":`Toast.Body`,children:[de===null?null:(0,q.jsx)(`span`,{className:C3.icon,"aria-hidden":`true`,"data-component":`Toast.Icon`,children:de}),(0,q.jsxs)(`div`,{className:C3.content,"data-component":`Toast.Content`,children:[(0,q.jsx)(`div`,{className:C3.title,"data-component":`Toast.Title`,children:_}),v===void 0?null:(0,q.jsx)(`div`,{className:C3.description,"data-component":`Toast.Description`,children:v})]}),pe?(0,q.jsxs)(`div`,{className:C3.actions,"data-component":`Toast.Actions`,children:[fe(t.cancel,`cancel`,`invisible`),fe(t.action,`action`,`default`)]}):null,S&&x?(0,q.jsx)(gi,{icon:un,"aria-label":`Close`,variant:`invisible`,size:`small`,onClick:()=>z(`close-button`),"data-component":`Toast.CloseButton`}):null]})})}E3.displayName=`Toast`;const D3=W(`toaster z-popover`,{variants:{position:{"top-left":`toaster-top-left`,"top-center":`toaster-top-center`,"top-right":`toaster-top-right`,"bottom-left":`toaster-bottom-left`,"bottom-center":`toaster-bottom-center`,"bottom-right":`toaster-bottom-right`}}}),O3=[`altKey`,`KeyT`],k3=e=>typeof e==`number`?`${e}px`:e,A3=e=>{let[t,n]=e.split(`-`),r=[t];return(n===`left`||n===`right`)&&r.push(n),r},j3=e=>(document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}),M3=()=>document.visibilityState===`hidden`,N3=()=>!1;function P3(e,t){let{position:n=`bottom-right`,expand:r=!1,visibleToasts:i=3,toastOptions:a,duration:o=4e3,closeButton:s=!1,richColors:c=!1,gap:u=14,offset:d=24,mobileOffset:f=16,width:p=356,hotkey:m=O3,swipeDirections:h,icons:g,containerAriaLabel:_=`Notifications`,className:v,style:y,...b}=e,x=l.useSyncExternalStore(u3,d3,p3),S=l.useSyncExternalStore(j3,M3,N3),C=l.useRef(null),w=ar(t,C),[T,E]=l.useState({}),[D,O]=l.useState(!1),k=r||D,A=l.useCallback((e,t)=>{E(n=>n[e]===t?n:{...n,[e]:t})},[]);l.useEffect(()=>{E(e=>{let t=Object.keys(e).filter(e=>x.some(t=>t.id===e));return t.length===Object.keys(e).length?e:Object.fromEntries(t.map(t=>[t,e[t]]))})},[x]);let j=x.filter(e=>!e.dismissed),M=new Map,N=0;j.forEach((e,t)=>{M.set(e.id,{index:t,offset:N}),N+=(T[e.id]??0)+u});let P=l.useRef(M);for(let e of x)if(!M.has(e.id)){let t=P.current.get(e.id);t&&M.set(e.id,t)}P.current=M;let F=j.length>0?T[j[0].id]??0:0;l.useEffect(()=>{let e=e=>{let t=C.current,n=t!==null&&(document.activeElement===t||t.contains(document.activeElement));if(e.code===`Escape`&&n){O(!1);return}m.every(t=>!!e[t]||e.code===t)&&(O(!0),C.current?.focus())};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[m]);let I={duration:o,closeButton:s,richColors:c,dismissible:!0,...a},L=h??A3(n);return(0,q.jsx)(ea,{children:(0,q.jsx)(`section`,{"aria-label":_,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,tabIndex:-1,"data-component":`Toaster.Region`,children:(0,q.jsx)(`ol`,{ref:w,tabIndex:-1,className:G(D3({position:n}),v),style:{...y,"--toaster-width":k3(p),"--toaster-viewport-offset":k3(d),"--toaster-mobile-offset":k3(f),"--toaster-gap":`${u}px`},"data-component":`Toaster`,"data-position":n,"data-expanded":k,onPointerEnter:()=>O(!0),onPointerLeave:()=>O(!1),onFocus:()=>O(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||O(!1)},...b,children:x.map(e=>{let t=M.get(e.id)??{index:0,offset:0};return(0,q.jsx)(E3,{toast:e,place:t,position:n,height:T[e.id]??0,frontHeight:F,stackSize:x.length,expanded:k,visible:t.index<i,paused:D||S,swipeDirections:L,icons:g,defaults:I,onHeight:A},e.id)})})})})}P3.displayName=`Toaster`;var F3=K(P3);const I3=2e3,L3={content:`toggle-switch-content`,srOnly:`sr-only`},R3=`toggle-switch-icon`,z3=W(`toggle-switch`,{variants:{statusLabelPosition:{start:`toggle-switch-label-start`,end:`toggle-switch-label-end`}}}),B3=W(`toggle-switch-status`,{variants:{statusLabelPosition:{start:``,end:`toggle-switch-status-end`}}}),V3=W(`toggle-switch-status-label`,{variants:{size:{small:`toggle-switch-status-label-small`,medium:`toggle-switch-status-label-medium`},disabled:{true:`toggle-switch-status-label-disabled`,false:``}}}),H3=W(`toggle-switch-status-text`,{variants:{hidden:{true:`toggle-switch-status-text-hidden`,false:``}}}),U3=W(`toggle-switch-track`,{variants:{size:{small:`toggle-switch-track-small`,medium:`toggle-switch-track-medium`},track:{off:`toggle-switch-track-off`,on:`toggle-switch-track-on`,disabled:`toggle-switch-track-disabled`}}}),W3=W(R3,{variants:{disabled:{true:`toggle-switch-circle-icon-disabled`,false:`toggle-switch-circle-icon`},checked:{true:`translate-x-0`,false:`-translate-x-full`}}}),G3=W(R3,{variants:{disabled:{true:`toggle-switch-line-icon-disabled`,false:`toggle-switch-line-icon`},checked:{true:`translate-x-full`,false:`translate-x-0`}}}),K3=W(`toggle-switch-knob`,{variants:{checked:{true:`toggle-switch-knob-checked`,false:`translate-x-0`},disabled:{true:`toggle-switch-knob-disabled`,false:``}}}),q3={small:12,medium:16},J3=({size:e})=>(0,q.jsx)(`svg`,{"aria-hidden":`true`,width:q3[e],height:q3[e],viewBox:`0 0 16 16`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,children:(0,q.jsx)(`path`,{fillRule:`evenodd`,d:`M8 12.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12Z`})}),Y3=({size:e})=>(0,q.jsx)(`svg`,{"aria-hidden":`true`,width:q3[e],height:q3[e],viewBox:`0 0 16 16`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,children:(0,q.jsx)(`path`,{fillRule:`evenodd`,d:`M8 2a.75.75 0 0 1 .75.75v11.5a.75.75 0 0 1-1.5 0V2.75A.75.75 0 0 1 8 2Z`})});function X3(e,t){let{className:n,checked:r,defaultChecked:i,disabled:a,loading:o,onChange:s,onClick:c,size:u=`medium`,statusLabelPosition:d=`start`,buttonType:f=`button`,loadingLabel:p=`Loading`,loadingLabelDelay:m=I3,buttonLabelOn:h=`On`,buttonLabelOff:g=`Off`,"aria-labelledby":_,"aria-describedby":v,...y}=e,b=r!==void 0,[x,S]=l.useState(!!i),C=b?r:x,w=!a&&!o,T=`${Y()}-loading-label`,[E,D]=l.useState(!1);l.useEffect(()=>{if(!o){D(!1);return}let e=window.setTimeout(()=>{D(!0)},m);return()=>{window.clearTimeout(e)}},[o,m]);let O=e=>{w&&(b||S(!C),s?.(!C),c?.(e))},k=[E?T:void 0,v].filter(Boolean).join(` `);return(0,q.jsxs)(`div`,{className:G(z3({statusLabelPosition:d}),n),"data-component":`ToggleSwitch`,"data-size":u,"data-status-label-position":d,"data-checked":C,"data-disabled":!w,"data-loading":o?`true`:void 0,...y,children:[(0,q.jsx)(`span`,{id:T,role:`status`,className:L3.srOnly,children:E?p:``}),o?(0,q.jsx)(`span`,{className:G(B3({statusLabelPosition:d})),"data-component":`ToggleSwitch.LoadingSpinner`,children:(0,q.jsx)($r,{size:`small`,srText:null,role:`presentation`})}):null,(0,q.jsxs)(`span`,{className:G(V3({size:u,disabled:!w})),"aria-hidden":`true`,onClick:O,"data-component":`ToggleSwitch.StatusText`,children:[(0,q.jsx)(`span`,{className:G(H3({hidden:!C})),children:h}),(0,q.jsx)(`span`,{className:G(H3({hidden:C})),children:g})]}),(0,q.jsxs)(`button`,{ref:t,type:f,className:G(U3({size:u,track:w?C?`on`:`off`:`disabled`})),onClick:O,"aria-labelledby":_,"aria-describedby":k||void 0,"aria-pressed":C,"aria-disabled":!w,"data-component":`ToggleSwitch.SwitchButton`,children:[(0,q.jsxs)(`span`,{className:L3.content,"aria-hidden":`true`,children:[(0,q.jsx)(`span`,{className:G(W3({disabled:!w,checked:C})),"data-component":`ToggleSwitch.LineIcon`,children:(0,q.jsx)(Y3,{size:u})}),(0,q.jsx)(`span`,{className:G(G3({disabled:!w,checked:C})),"data-component":`ToggleSwitch.CircleIcon`,children:(0,q.jsx)(J3,{size:u})})]}),(0,q.jsx)(`span`,{className:G(K3({checked:C,disabled:!w})),"aria-hidden":`true`,"data-component":`ToggleSwitch.ToggleKnob`})]})]})}X3.displayName=`ToggleSwitch`;var Z3=K(X3);const Q3=W(`token`,{variants:{size:{small:`token-small`,medium:`token-medium`,large:`token-large`,xlarge:`token-xlarge`},interactive:{true:`token-interactive`,false:`token-static`}}}),$3=`medium`,e6=({as:e=`span`,onClick:t,onFocus:n,tabIndex:r=-1,disabled:i})=>!i&&!!(n||t||r>-1||e===`a`||e===`button`);function t6(e,t){let{as:n=`span`,className:r,size:i=$3,isSelected:a,onRemove:o,onKeyDown:s,...c}=e,l=e6({as:n,onClick:c.onClick,onFocus:c.onFocus,tabIndex:c.tabIndex,disabled:c.disabled});return(0,q.jsx)(n,{ref:t,onKeyDown:e=>{s?.(e),(e.key===`Backspace`||e.key===`Delete`)&&o?.()},className:G(Q3({size:i,interactive:l}),r),"data-component":`Token`,"data-size":i,"data-interactive":l?``:void 0,"data-selected":a?``:void 0,...n===`button`?{type:`button`}:{},...c})}t6.displayName=`TokenBase`;var n6=K(t6);const r6=W(`token-remove-button`,{variants:{size:{small:`token-remove-button-small`,medium:`token-remove-button-medium`,large:`token-remove-button-large`,xlarge:`token-remove-button-xlarge`},raised:{true:`token-remove-button-raised`,false:``}}});function i6(e){let{className:t,size:n=$3,isParentInteractive:r,...i}=e,a=G(r6({size:n,raised:r}),t);return r?(0,q.jsx)(`span`,{"aria-hidden":`true`,tabIndex:-1,className:a,"data-component":`Token.RemoveButton`,"data-size":n,...i,children:(0,q.jsx)(un,{})}):(0,q.jsx)(`button`,{type:`button`,"aria-label":`Remove token`,className:a,"data-component":`Token.RemoveButton`,"data-size":n,...i,children:(0,q.jsx)(un,{})})}i6.displayName=`Token.RemoveButton`;const a6={root:`token-text`,interactive:`token-text-interactive`};function o6(e,t){let{as:n=`span`,className:r,interactive:i,...a}=e;return(0,q.jsx)(n,{ref:t,className:G(a6.root,i&&a6.interactive,r),"data-component":`Token.Text`,...n===`button`?{type:`button`}:{},...a})}o6.displayName=`Token.Text`;var s6=K(o6);const c6={srOnly:`sr-only`},l6=W(`token-default`,{variants:{interactive:{true:`token-default-interactive`,false:``},selected:{true:`token-default-selected`,false:``},withRemoveButton:{true:`token-with-remove-button`,false:``}}}),u6=W(`token-visual`,{variants:{size:{small:``,medium:`token-visual-medium`,large:`token-visual-large`,xlarge:`token-visual-xlarge`}}}),d6=e=>l.isValidElement(e)?e:(0,q.jsx)(e,{});function f6(e,t){let{as:n,className:r,text:i,size:a=$3,leadingVisual:o,onRemove:s,hideRemoveButton:c,isSelected:l,href:u,onClick:d,...f}=e,p=e6({as:n,onClick:d,onFocus:f.onFocus,tabIndex:f.tabIndex,disabled:f.disabled}),m=!!s&&!c,h=p&&m,g={as:n,href:u,onClick:d},_=e=>{e.stopPropagation(),s?.()};return(0,q.jsxs)(n6,{ref:t,size:a,isSelected:l,onRemove:s,className:G(l6({interactive:p,selected:l,withRemoveButton:m}),r),"data-has-remove-button":m?``:void 0,...h?{}:g,...f,children:[o&&a!==`small`?(0,q.jsx)(`span`,{className:G(u6({size:a})),"data-component":`Token.LeadingVisual`,children:d6(o)}):null,(0,q.jsxs)(s6,{interactive:h,...h?g:{},children:[i,s?(0,q.jsx)(`span`,{className:c6.srOnly,children:` (press backspace or delete to remove)`}):null]}),m?(0,q.jsx)(i6,{size:a,isParentInteractive:p,onClick:_}):null]})}f6.displayName=`Token`;var p6=K(f6);const m6=`#999999`,h6=.6,g6=(e,t,n)=>Math.max(t,Math.min(e,n)),_6=e=>g6(Math.round(e),0,100),v6=e=>{let t=e.trim();if(t.startsWith(`#`)){let e=t.slice(1);if(e.length===3){let[t,n,r]=[...e].map(e=>parseInt(e+e,16));return Number.isNaN(t+n+r)?null:{r:t,g:n,b:r}}if(e.length===6){let t=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),r=parseInt(e.slice(4,6),16);return Number.isNaN(t+n+r)?null:{r:t,g:n,b:r}}return null}let n=t.match(/^rgba?\(([^)]+)\)$/i);if(!n)return null;let r=n[1].split(/[\s,/]+/).filter(Boolean).map(Number);if(r.length<3||r.slice(0,3).some(Number.isNaN))return null;let[i,a,o]=r;return{r:i,g:a,b:o}},y6=({r:e,g:t,b:n})=>{let r=e/255,i=t/255,a=n/255,o=Math.max(r,i,a),s=Math.min(r,i,a),c=o-s,l=(o+s)/2;if(c===0)return{h:0,s:0,l:Math.round(l*100)};let u=c/(1-Math.abs(2*l-1)),d;return d=o===r?(i-a)/c%6:o===i?(a-r)/c+2:(r-i)/c+4,d=Math.round(d*60),{h:d<0?d+360:d,s:Math.round(u*100),l:Math.round(l*100)}},b6=({r:e,g:t,b:n})=>(e*.2126+t*.7152+n*.0722)/255,x6=e=>{let t=v6(e)??v6(`#999999`),{h:n,s:r,l:i}=y6(t),a=b6(t),{r:o,g:s,b:c}=t,l=g6(1/(.453-a),0,1),u=g6((a-.96)*100,0,1),d=(h6-a)*100*g6(1/(h6-a),0,1),f=_6(i+d);return{light:{background:`rgb(${o}, ${s}, ${c})`,foreground:`hsl(0deg, 0%, ${Math.round(l*100)}%)`,border:`hsla(${n}deg, ${r}%, ${_6(i-25)}%, ${u})`,ring:`rgb(${o}, ${s}, ${c})`,backgroundHover:`hsl(${n}deg, ${r}%, ${_6(i-5)}%)`},dark:{background:`rgba(${o}, ${s}, ${c}, 0.18)`,foreground:`hsl(${n}deg, ${r}%, ${f}%)`,border:`hsla(${n}deg, ${r}%, ${f}%, 0.3)`,ring:`hsl(${n}deg, ${r}%, ${f}%)`,backgroundHover:`hsla(${n}deg, ${r}%, ${_6(i+10)}%, 0.3)`}}},S6={root:`issue-label-token`,interactive:`issue-label-token-interactive`,selected:`issue-label-token-selected`,withRemoveButton:`token-with-remove-button`,srOnly:`sr-only`};function C6(e,t){let{as:n,className:r,style:i,text:a,size:o=$3,fillColor:s=m6,onRemove:c,hideRemoveButton:u,isSelected:d,href:f,onClick:p,...m}=e,h=l.useMemo(()=>x6(s),[s]),g=e6({as:n,onClick:p,onFocus:m.onFocus,tabIndex:m.tabIndex,disabled:m.disabled}),_=!!c&&!u,v=g&&_,y={as:n,href:f,onClick:p},b=e=>{e.stopPropagation(),c?.()};return(0,q.jsxs)(n6,{ref:t,size:o,isSelected:d,onRemove:c,className:G(S6.root,g&&S6.interactive,d&&S6.selected,_&&S6.withRemoveButton,r),style:{...i,"--issue-label-background":h.light.background,"--issue-label-foreground":h.light.foreground,"--issue-label-border":h.light.border,"--issue-label-ring":h.light.ring,"--issue-label-background-hover":h.light.backgroundHover,"--issue-label-dark-background":h.dark.background,"--issue-label-dark-foreground":h.dark.foreground,"--issue-label-dark-border":h.dark.border,"--issue-label-dark-ring":h.dark.ring,"--issue-label-dark-background-hover":h.dark.backgroundHover},"data-component":`IssueLabelToken`,"data-has-remove-button":_?``:void 0,...v?{}:y,...m,children:[(0,q.jsxs)(s6,{interactive:v,...v?y:{},children:[a,c?(0,q.jsx)(`span`,{className:S6.srOnly,children:` (press backspace or delete to remove)`}):null]}),_?(0,q.jsx)(i6,{size:o,isParentInteractive:g,onClick:b}):null]})}C6.displayName=`IssueLabelToken`;var w6=K(C6);const T6={root:`topic-tag`,interactive:`topic-tag-interactive`,hover:`topic-tag-hover`};function E6(e,t){let{as:n=`a`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(T6.root,T6.interactive,T6.hover,r),"data-component":`TopicTag`,...i})}E6.displayName=`TopicTag`;var D6=K(E6);const O6={root:`topic-tag-group`};function k6(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(O6.root,r),"data-component":`TopicTag.Group`,...i})}k6.displayName=`TopicTag.Group`;var A6=K(k6);const j6=Object.assign(D6,{Group:A6}),M6=(0,l.createContext)(null),N6=(0,l.createContext)(null),P6=e=>e?e.type??(e.target?`tooltip`:`dialog`):`dialog`,F6=e=>e!==null&&e.effect===void 0,I6=(e,t)=>e.top===t.top&&e.left===t.left&&e.width===t.width&&e.height===t.height;function L6(e){let{steps:t,step:n,defaultStep:r=null,onStepChange:i,open:a,defaultOpen:o=!1,onOpenChange:s,onStatusChange:c,keyboardNavigation:u=!1,closeOnEscape:d=!0,closeOnInteractOutside:f=!0,spotlightOffset:p=4,spotlightRadius:m=8,id:h,children:g}=e,_=Y(h),v=`${_}-title`,y=`${_}-description`,b=l.useRef(null),x=a!==void 0,[S,C]=l.useState(o),w=x?a:S,T=n!==void 0,[E,D]=l.useState(r),O=T?n:E,k=t.length,A=t.findIndex(e=>e.id===O),j=A===-1?null:t[A],M=l.useCallback(e=>{T||D(e),i?.({stepId:e,stepIndex:t.findIndex(t=>t.id===e),count:t.length})},[T,i,t]),N=l.useCallback(e=>{x||C(e),s?.(e)},[x,s]),P=l.useCallback(e=>{let n=e??t[0]?.id??null;M(n),N(!0),c?.({status:`started`})},[N,M,c,t]),F=l.useCallback(e=>{t.some(t=>t.id===e)&&M(e)},[M,t]),I=l.useCallback(()=>{M(null),N(!1)},[N,M]),L=l.useCallback(()=>{I(),c?.({status:`dismissed`})},[I,c]),ee=l.useCallback(()=>{let e=t[A+1];if(!e){I(),c?.({status:`completed`});return}M(e.id)},[M,I,c,A,t]),R=l.useCallback(()=>{let e=A>0?t[A-1]:void 0;e&&M(e.id)},[M,A,t]),[z,te]=l.useState(()=>({stepId:O,ready:F6(j),patch:null}));z.stepId!==O&&te({stepId:O,ready:F6(j),patch:null});let ne=z.stepId===O?z:null,B=ne?.ready??F6(j),re=ne?.patch??null,V=l.useMemo(()=>j&&re?{...j,...re}:j,[j,re]),ie=P6(V),ae=l.useRef({next:ee,prev:R,goto:F,dismiss:L,step:j});rr(()=>{ae.current={next:ee,prev:R,goto:F,dismiss:L,step:j}});let oe=l.useMemo(()=>({next:()=>ae.current.next(),prev:()=>ae.current.prev(),goto:e=>ae.current.goto(e),dismiss:()=>ae.current.dismiss(),show:()=>te(e=>e.stepId===O?{...e,ready:!0}:e),update:e=>te(t=>t.stepId===O?{...t,patch:{...t.patch,...e}}:t),target:()=>ae.current.step?.target?.()??null}),[O]);l.useEffect(()=>{if(w)return ae.current.step?.effect?.(oe)??void 0},[oe,w]);let se=l.useCallback(()=>ae.current.step?.target?.()??null,[]),[ce,le]=l.useState(null),ue=l.useCallback(()=>{let e=se();if(!e){le(null);return}let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),a={top:t,left:n,width:r,height:i};le(e=>e&&I6(e,a)?e:a)},[se]);rr(()=>{if(!w||!B){le(null);return}ue();let e=se();e?.scrollIntoView?.({block:`center`,inline:`nearest`});let t=new ResizeObserver(ue);return e&&t.observe(e),window.addEventListener(`resize`,ue),window.addEventListener(`scroll`,ue,!0),()=>{t.disconnect(),window.removeEventListener(`resize`,ue),window.removeEventListener(`scroll`,ue,!0)}},[se,ue,w,B,O]),Hi(e=>{!w||!d||(e.preventDefault(),L())}),l.useEffect(()=>{if(!w||!B||!u)return;let e=e=>{e.defaultPrevented||(e.key===`ArrowRight`?(e.preventDefault(),ee()):e.key===`ArrowLeft`&&(e.preventDefault(),R()))};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[u,ee,w,R,B]),l.useEffect(()=>{if(!w||!B||!f)return;let e=e=>{if(e instanceof MouseEvent&&e.button>0)return;let{target:t}=e;t instanceof Node&&(b.current?.contains(t)||se()?.contains(t)||L())};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[f,L,se,w,B]),l.useEffect(()=>{if(!w)return;let e=document.activeElement;return()=>{e instanceof HTMLElement&&e.focus()}},[w]);let de=l.useMemo(()=>({open:w,step:V,stepIndex:A,steps:t,start:P,next:ee,prev:R,goto:F,dismiss:L,progressText:`${A+1} of ${k}`,progressPercent:k===0?0:(A+1)/k*100,hasNext:A>-1&&A<k-1,hasPrev:A>0}),[k,L,F,ee,w,R,P,V,A,t]),fe=l.useMemo(()=>({...de,titleId:v,descriptionId:y,stepType:ie,ready:B,targetRect:ce,getTarget:se,spotlightOffset:p,spotlightRadius:m,contentRef:b}),[de,y,se,B,p,m,ie,ce,v]);return(0,q.jsx)(M6.Provider,{value:fe,children:g})}L6.displayName=`Tour`;const R6=[];function z6(e){let t=l.useContext(M6);return(0,q.jsx)(q.Fragment,{children:e.children(t?.step?.actions??R6)})}z6.displayName=`Tour.Actions`;const B6={root:`tour-action-trigger`};function V6(e,t){let{action:n,className:r,children:i,onClick:a,variant:o=`default`,...s}=e,c=l.useContext(M6);return c?(0,q.jsx)(pi,{ref:t,variant:o,className:G(B6.root,r),onClick:e=>{if(a?.(e),!e.defaultPrevented){if(typeof n.action==`function`){n.action(c);return}n.action===`next`?c.next():n.action===`prev`?c.prev():c.dismiss()}},"data-component":`Tour.ActionTrigger`,"data-action":typeof n.action==`string`?n.action:`custom`,...s,children:i??n.label}):null}V6.displayName=`Tour.ActionTrigger`;var H6=K(V6);const U6={"outside-top":`bottom`,"outside-bottom":`top`,"outside-left":`right`,"outside-right":`left`},W6={top:{start:`-left`,center:``,end:`-right`},bottom:{start:`-left`,center:``,end:`-right`},left:{start:`-top`,center:``,end:`-bottom`},right:{start:`-top`,center:``,end:`-bottom`}};function G6(e,t){let n=l.useContext(M6),r=l.useContext(N6);if(!n||!r||n.stepType!==`tooltip`||n.step?.arrow===!1)return null;let i=U6[r.side],a=`${i}${W6[i][r.align]}`;return(0,q.jsx)(nd,{ref:t,location:a,"data-component":`Tour.Arrow`,...e})}G6.displayName=`Tour.Arrow`;var K6=K(G6);const q6=W([`tour-backdrop`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short`],{variants:{spotlit:{true:`tour-backdrop-spotlit`,false:``}}});function J6(e,t){let{className:n,style:r,portalContainerName:i,...a}=e,o=l.useContext(M6);if(!o||!o.open||!o.ready||o.step?.backdrop===!1)return null;let{targetRect:s,spotlightOffset:c,spotlightRadius:u}=o;return(0,q.jsx)(ea,{containerName:i,children:(0,q.jsx)(`div`,{ref:t,"aria-hidden":`true`,className:G(q6({spotlit:s!==null}),n),style:{...r,"--tour-target-top":`${(s?.top??0)-c}px`,"--tour-target-left":`${(s?.left??0)-c}px`,"--tour-target-width":`${(s?.width??0)+c*2}px`,"--tour-target-height":`${(s?.height??0)+c*2}px`,"--tour-target-radius":`${u}px`},"data-component":`Tour.Backdrop`,"data-spotlit":s?``:void 0,...a})})}J6.displayName=`Tour.Backdrop`;var Y6=K(J6);const X6={root:`tour-close-trigger`};function Z6(e,t){let{className:n,icon:r=un,onClick:i,"aria-label":a=`Close tour`,...o}=e,s=l.useContext(M6);return s?(0,q.jsx)(gi,{ref:t,icon:r,variant:`invisible`,size:`small`,"aria-label":a,className:G(X6.root,n),onClick:e=>{i?.(e),!e.defaultPrevented&&s.dismiss()},"data-component":`Tour.CloseTrigger`,...o}):null}Z6.displayName=`Tour.CloseTrigger`;var Q6=K(Z6);const $6={root:`tour-content`};function e8(e,t){let{className:n,...r}=e,i=l.useContext(M6),a=ar(t,i?.contentRef??null),o=i?.step?.id??null,s=i?.ready??!1,c=i?.contentRef;return l.useEffect(()=>{!s||!o||c?.current?.focus()},[c,s,o]),!i||!i.open||!i.ready||!i.step?null:(0,q.jsx)(`div`,{ref:a,role:`dialog`,"aria-labelledby":i.step.title?i.titleId:void 0,"aria-describedby":i.step.description?i.descriptionId:void 0,tabIndex:-1,className:G($6.root,n),"data-component":`Tour.Content`,"data-type":i.stepType,"data-step":i.step.id,...r})}e8.displayName=`Tour.Content`;var t8=K(e8);const n8={root:`tour-control`};function r8(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(n8.root,n),"data-component":`Tour.Control`,...r})}r8.displayName=`Tour.Control`;var i8=K(r8);const a8={root:`tour-description`};function o8(e,t){let{className:n,children:r,...i}=e,a=l.useContext(M6);return a?(0,q.jsx)(`div`,{ref:t,id:a.descriptionId,className:G(a8.root,n),"data-component":`Tour.Description`,...i,children:r??a.step?.description}):null}o8.displayName=`Tour.Description`;var s8=K(o8);const c8=W([`tour-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 motion-safe:data-[side=outside-right]:slide-in-from-left-2 motion-safe:data-[side=outside-left]:slide-in-from-right-2`],{variants:{type:{dialog:`tour-positioner-dialog`,tooltip:`tour-positioner-tooltip`,floating:`tour-positioner-floating`},unplaced:{true:`invisible`,false:``}}}),l8=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign;function u8(e,t){let{side:n=`outside-bottom`,align:r=`center`,placement:i=`bottom-end`,portalContainerName:a,className:o,style:s,children:c,...u}=e,d=l.useContext(M6),f=d?.step??null,p=d?.stepType??`dialog`,m=p===`tooltip`,h=f?.side??n,g=f?.align??r,_=f?.placement??i,v=!!(d?.open&&d.ready&&f),y=l.useRef(null),b=ar(t,y),x=l.useRef(null),[S,C]=l.useState(null),w=d?.getTarget,T=d?.spotlightOffset??0,E=l.useCallback(()=>{let e=w?.(),t=y.current;if(!e||!t)return;let n=aa(t,e,{side:h,align:g,anchorOffset:T+8});x.current&&l8(x.current,n)||(x.current=n,C(n))},[g,w,h,T]);return rr(()=>{if(!v||!m){x.current=null,C(null);return}E();let e=new ResizeObserver(E);return y.current&&e.observe(y.current),()=>{e.disconnect()}},[m,v,d?.targetRect,E]),!d||!v?null:(0,q.jsx)(ea,{containerName:a,children:(0,q.jsx)(`div`,{ref:b,className:G(c8({type:p,unplaced:m&&!S}),o),style:{...s,"--tour-positioner-top":`${S?.top??0}px`,"--tour-positioner-left":`${S?.left??0}px`},"data-component":`Tour.Positioner`,"data-type":p,"data-side":S?.anchorSide??h,"data-align":S?.anchorAlign??g,"data-placement":p===`floating`?_:void 0,...u,children:(0,q.jsx)(N6.Provider,{value:{side:S?.anchorSide??h,align:S?.anchorAlign??g},children:c})})})}u8.displayName=`Tour.Positioner`;var d8=K(u8);const f8={root:`tour-progress-text`};function p8(e,t){let{className:n,children:r,...i}=e,a=l.useContext(M6);return a?(0,q.jsx)(`div`,{ref:t,className:G(f8.root,n),"data-component":`Tour.ProgressText`,...i,children:r??a.progressText}):null}p8.displayName=`Tour.ProgressText`;var m8=K(p8);const h8={root:[`tour-spotlight`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short`]};function g8(e,t){let{className:n,style:r,portalContainerName:i,...a}=e,o=l.useContext(M6);if(!o||!o.open||!o.ready||!o.targetRect)return null;let{targetRect:s,spotlightOffset:c,spotlightRadius:u}=o;return(0,q.jsx)(ea,{containerName:i,children:(0,q.jsx)(`div`,{ref:t,"aria-hidden":`true`,className:G(h8.root,n),style:{...r,"--tour-target-top":`${s.top-c}px`,"--tour-target-left":`${s.left-c}px`,"--tour-target-width":`${s.width+c*2}px`,"--tour-target-height":`${s.height+c*2}px`,"--tour-target-radius":`${u}px`},"data-component":`Tour.Spotlight`,...a})})}g8.displayName=`Tour.Spotlight`;var _8=K(g8);const v8={root:`tour-title`};function y8(e,t){let{className:n,children:r,...i}=e,a=l.useContext(M6);return a?(0,q.jsx)(`h2`,{ref:t,id:a.titleId,className:G(v8.root,n),"data-component":`Tour.Title`,...i,children:r??a.step?.title}):null}y8.displayName=`Tour.Title`;var b8=K(y8);const x8=()=>{let e=(0,l.useContext)(M6);if(!e)throw Error("`useTour` has to be called from within a `Tour` component.");return e},S8=(e,{timeout:t=1e4}={})=>{let n=null,r=!1,i=()=>{r=!0,n!==null&&(cancelAnimationFrame(n),n=null)};return[new Promise(a=>{let o=Date.now()+t,s=()=>{if(r)return;let t=e();if(t){i(),a(t);return}if(Date.now()>=o){i(),a(null);return}n=requestAnimationFrame(s)};s()}),i]},C8=(e,t,n={})=>{let{predicate:r,...i}=n,a=()=>{};return[new Promise(n=>{let o=e?.();if(!o){n(null);return}let s=e=>{r&&!r(o)||(a(),n(e))};o.addEventListener(t,s,i),a=()=>o.removeEventListener(t,s,i)}),()=>a()]},w8=(e,t)=>S8(e,t),T8=(e,t,n)=>S8(()=>{let n=e();return n&&n.value===t?n:null},n),E8=Object.assign(L6,{Backdrop:Y6,Spotlight:_8,Positioner:d8,Content:t8,Arrow:K6,CloseTrigger:Q6,ProgressText:m8,Title:b8,Description:s8,Control:i8,Actions:z6,ActionTrigger:H6}),D8={root:`truncate-text`,block:`truncate-text-block`,inline:`inline-block align-top`,expandable:`truncate-text-expandable`};function O8(e,t){let{as:n=`div`,className:r,title:i,maxWidth:a=125,inline:o,expandable:s,style:c,...l}=e;return(0,q.jsx)(n,{ref:t,title:i,className:G(D8.root,o?D8.inline:D8.block,s&&D8.expandable,r),style:{...c,"--truncate-max-width":typeof a==`number`?`${a}px`:a},"data-component":`Truncate`,"data-inline":o,"data-expandable":s,...l})}O8.displayName=`Truncate`;var k8=K(O8);const A8=(e,{isPropUpdateDisabled:t=!1,isEqual:n=Object.is}={})=>{let[r,i]=(0,l.useState)(e),[a,o]=(0,l.useState)(e),s=e instanceof Function?e():e;return!t&&!n(a,s)&&(o(s),i(s)),[r,i]},j8=(0,l.createContext)({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),M8=()=>(0,l.useContext)(j8),N8=(e,t)=>{let{colorScheme:n}=M8();return(n?e[n]:void 0)??t},P8=`(prefers-color-scheme: dark)`,F8=e=>{let t=window?.matchMedia?.(P8);return t?.addEventListener(`change`,e),()=>t?.removeEventListener(`change`,e)},I8=()=>window?.matchMedia?.(P8)?.matches?`night`:`day`,L8=()=>`day`,R8=()=>l.useSyncExternalStore(F8,I8,L8),z8=(e,t)=>e===`auto`?t:e,B8=(e,t,n)=>{switch(e){case`day`:case`light`:return t;case`night`:case`dark`:return n}};function V8({children:e,className:t,contextOnly:n,...r}){let{colorMode:i,dayScheme:a,nightScheme:o}=M8(),[s,c]=A8(r.colorMode??i??`day`),[u,d]=A8(r.dayScheme??a??`light`),[f,p]=A8(r.nightScheme??o??`dark`),m=R8(),h=z8(s,m),g=B8(h,u,f),_=l.useMemo(()=>({colorScheme:g,colorMode:s,resolvedColorMode:h,dayScheme:u,nightScheme:f,setColorMode:c,setDayScheme:d,setNightScheme:p}),[g,s,h,u,f,c,d,p]);return n?(0,q.jsx)(j8.Provider,{value:_,children:e}):(0,q.jsx)(j8.Provider,{value:_,children:(0,q.jsx)(`div`,{className:t,"data-component":`ThemeProvider`,"data-theme":g,"data-color-mode":s,children:e})})}V8.displayName=`ThemeProvider`,exports.ARROW_KEY_STEP=3,exports.AUTO_LOCALE=`auto`,exports.Accordion=ur,exports.AccordionContext=Dt,exports.AccordionHeader=Yn,exports.AccordionItem=Qn,exports.AccordionItemContext=Kn,exports.AccordionPanel=lr,exports.ActionBar=qa,exports.ActionBarButton=Ka,exports.ActionBarContext=ya,exports.ActionBarDivider=wa,exports.ActionBarGroup=Da,exports.ActionBarIconButton=Aa,exports.ActionBarItemContext=ba,exports.ActionBarMenu=Fa,exports.ActionList=ji,exports.ActionListContainerContext=Ar,exports.ActionListContext=Er,exports.ActionListDescription=Rr,exports.ActionListDivider=Br,exports.ActionListGroup=Yr,exports.ActionListGroupContext=Vr,exports.ActionListGroupHeading=Kr,exports.ActionListHeading=kr,exports.ActionListItem=Oi,exports.ActionListItemContext=Ir,exports.ActionListLeadingVisual=ni,exports.ActionListLinkItem=Ai,exports.ActionListSubItem=ri,exports.ActionListTrailingAction=yi,exports.ActionListTrailingVisual=bi,exports.ActionMenu=ma,exports.ActionMenuAnchor=Ni,exports.ActionMenuButton=Pi,exports.ActionMenuContext=Mi,exports.ActionMenuOverlay=pa,exports.Alert=Xa,exports.AnchoredOverlay=da,exports.AspectRatio=$a,exports.Attachment=ko,exports.AttachmentAction=oo,exports.AttachmentActions=lo,exports.AttachmentContent=po,exports.AttachmentContext=eo,exports.AttachmentDescription=go,exports.AttachmentGroup=yo,exports.AttachmentMedia=So,exports.AttachmentTitle=To,exports.AttachmentTrigger=Oo,exports.Autocomplete=cs,exports.AutocompleteContext=Ao,exports.AutocompleteDeferredInputContext=Mo,exports.AutocompleteInput=Zo,exports.AutocompleteInputContext=jo,exports.AutocompleteMenu=rs,exports.AutocompleteOverlay=ss,exports.Avatar=ec,exports.AvatarContext=us,exports.AvatarFallback=Xs,exports.AvatarImage=$s,exports.AvatarStack=lc,exports.Badge=mc,exports.Banner=Ic,exports.BannerContext=hc,exports.BannerDescription=_c,exports.BannerPrimaryAction=Nc,exports.BannerSecondaryAction=Fc,exports.BannerTitle=bc,exports.Blankslate=al,exports.BlankslateDescription=Hc,exports.BlankslateHeading=Gc,exports.BlankslatePrimaryAction=Xc,exports.BlankslateSecondaryAction=tl,exports.BlankslateVisual=il,exports.Blockquote=cl,exports.Box=dl,exports.Breadcrumbs=Sl,exports.BreadcrumbsContext=pl,exports.BreadcrumbsItem=xl,exports.Bubble=Rl,exports.BubbleContent=jl,exports.BubbleContext=wl,exports.BubbleGroup=Pl,exports.BubbleGroupContext=Tl,exports.BubbleReactions=Ll,exports.Button=pi,exports.ButtonGroup=Gl,exports.CHART_COLORS=Pd,exports.CHART_OVERFLOW_COLOR=Nd,exports.CHART_SERIES_COLORS=Md,exports.Calendar=Tu,exports.CalendarDay=Jl,exports.Card=Zu,exports.CardAction=Ou,exports.CardDescription=Mu,exports.CardHeading=Fu,exports.CardIcon=Ru,exports.CardImage=Vu,exports.CardMetadata=Wu,exports.Caret=nd,exports.Carousel=Td,exports.CarouselContext=id,exports.CarouselControls=_d,exports.CarouselIndicators=cd,exports.CarouselNextButton=ud,exports.CarouselPlayButton=fd,exports.CarouselPreviousButton=md,exports.CarouselSlide=bd,exports.CarouselSlideContext=ad,exports.Chart=Jd,exports.ChartContext=Ed,exports.ChartGradient=jd,exports.ChartLegend=Hd,exports.ChartRadialText=Gd,exports.ChartTooltip=qd,exports.Checkbox=$d,exports.CheckboxCard=hf,exports.CheckboxCardContext=ef,exports.CheckboxCardDescription=rf,exports.CheckboxCardLabel=sf,exports.CheckboxCardLeadingVisual=uf,exports.CheckboxGroup=jf,exports.CheckboxGroupCaption=vf,exports.CheckboxGroupContext=Yd,exports.CheckboxGroupLabel=xf,exports.CheckboxGroupValidation=Ef,exports.Clipboard=lp,exports.ClipboardContext=Mf,exports.ClipboardControl=Hf,exports.ClipboardCopyText=Gf,exports.ClipboardIndicator=Jf,exports.ClipboardInput=$f,exports.ClipboardLabel=np,exports.ClipboardTrigger=ap,exports.ClipboardValueText=cp,exports.Code=fp,exports.CodeBlock=Fp,exports.CodeBlockCode=wp,exports.CodeBlockContent=Op,exports.CodeBlockContext=pp,exports.CodeBlockHeader=jp,exports.CodeBlockTitle=Pp,exports.Collapsible=Kp,exports.CollapsibleContent=Hp,exports.CollapsiblePanel=Hp,exports.CollapsibleContext=Ip,exports.CollapsibleTrigger=Gp,exports.Combobox=Gm,exports.ComboboxClearTrigger=tm,exports.ComboboxContent=im,exports.ComboboxContext=qp,exports.ComboboxControl=sm,exports.ComboboxEmpty=um,exports.ComboboxInput=hm,exports.ComboboxItem=ym,exports.ComboboxItemContext=Yp,exports.ComboboxItemGroup=Sm,exports.ComboboxItemGroupContext=Jp,exports.ComboboxItemGroupLabel=Tm,exports.ComboboxItemIndicator=Om,exports.ComboboxItemText=jm,exports.ComboboxLabel=Pm,exports.ComboboxList=Lm,exports.ComboboxPositioner=Vm,exports.ComboboxTrigger=Wm,exports.CommandPalette=kh,exports.CommandPaletteContext=Ym,exports.CommandPaletteDialog=sh,exports.CommandPaletteEmpty=uh,exports.CommandPaletteGroup=ph,exports.CommandPaletteGroupContext=Xm,exports.CommandPaletteInput=gh,exports.CommandPaletteItem=yh,exports.CommandPaletteList=Sh,exports.CommandPaletteLoading=Th,exports.CommandPaletteSeparator=Oh,exports.ConfirmationDialog=fg,exports.ContextMenu=Sg,exports.ContextMenuContext=hg,exports.ContextMenuOverlay=yg,exports.ContextMenuTrigger=xg,exports.CounterLabel=si,exports.DAYS_IN_WEEK=7,exports.DAY_KEY_FORMAT=au,exports.DEFAULT_AVATAR_SIZE=20,exports.DEFAULT_COLOR_MODE=`day`,exports.DEFAULT_CURRENT_STEP=1,exports.DEFAULT_DIRECTION=`ltr`,exports.DEFAULT_FLOATING_PANEL_MIN_SIZE=fb,exports.DEFAULT_FLOATING_PANEL_POSITION=db,exports.DEFAULT_FLOATING_PANEL_SIZE=ub,exports.DEFAULT_ISSUE_LABEL_FILL_COLOR=m6,exports.DEFAULT_LOCALE=ms,exports.DEFAULT_MAP_LATITUDE=NG,exports.DEFAULT_MAP_LONGITUDE=PG,exports.DEFAULT_MAP_ZOOM=16,exports.DEFAULT_MARKDOWN_NAMESPACE=UG,exports.DEFAULT_MARKER_COLOR=hB,exports.DEFAULT_MARQUEE_SPEED=50,exports.DEFAULT_MAX_PREVIEW_ITEMS=5,exports.DEFAULT_RATING_COUNT=5,exports.DEFAULT_RELATIVE_TIME_PREFIX=`on`,exports.DEFAULT_RELATIVE_TIME_THRESHOLD=LQ,exports.DEFAULT_RICH_TEXT_EDITOR_CONTROLS=O$,exports.DEFAULT_RICH_TEXT_EDITOR_NAMESPACE=v$,exports.DEFAULT_SORT_DIRECTION=`ASC`,exports.DEFAULT_SPOTLIGHT_OFFSET=4,exports.DEFAULT_SPOTLIGHT_RADIUS=8,exports.DEFAULT_TABLE_OF_CONTENTS_ROOT_MARGIN=p2,exports.DEFAULT_TABLE_PAGE_SIZE=25,exports.DEFAULT_TABLE_SKELETON_ROWS=10,exports.DEFAULT_TEXTAREA_COLS=30,exports.DEFAULT_TEXTAREA_RESIZE=uS,exports.DEFAULT_TEXTAREA_ROWS=7,exports.DEFAULT_TIMER_INTERVAL=I4,exports.DEFAULT_TOGGLE_SWITCH_LOADING_LABEL_DELAY=I3,exports.DEFAULT_TOKEN_SIZE=$3,exports.DEFAULT_TRUNCATE_MAX_WIDTH=125,exports.DataTable=G_,exports.DatePicker=X_,exports.Details=rv,exports.DetailsSummary=nv,exports.Dialog=iv,exports.DialogBody=Fh,exports.DialogButtons=Lh,exports.DialogCloseButton=zh,exports.DialogContext=Ih,exports.DialogFooter=Hh,exports.DialogHeader=Gh,exports.DialogSubtitle=Jh,exports.DialogTitle=Zh,exports.DirectionContext=Is,exports.DirectionProvider=eE,exports.DragHandle=lY,exports.Drawer=kv,exports.DrawerBody=sv,exports.DrawerCloseButton=dv,exports.DrawerContext=cv,exports.DrawerFooter=mv,exports.DrawerHeader=_v,exports.DrawerSubtitle=bv,exports.DrawerTitle=Cv,exports.Em=Mv,exports.EmptyState=Lv,exports.FLOATING_PANEL_LARGE_STEP=40,exports.FLOATING_PANEL_STEP=8,exports.FRAME_ROOT_CLASS=HS,exports.FileUpload=yy,exports.FileUploadContext=Uv,exports.FileUploadDescription=Kv,exports.FileUploadIcon=Yv,exports.FileUploadItem=vy,exports.FileUploadLabel=Qv,exports.FileUploadList=ty,exports.FilteredActionList=lb,exports.FilteredActionListBodyLoader=ib,exports.FilteredActionListInput=Gy,exports.FilteredActionListItem=Jy,exports.FloatingPanel=ax,exports.FloatingPanelBody=Eb,exports.FloatingPanelCloseTrigger=Ob,exports.FloatingPanelContent=Mb,exports.FloatingPanelContext=xb,exports.FloatingPanelControl=Fb,exports.FloatingPanelDragTrigger=Rb,exports.FloatingPanelHeader=Vb,exports.FloatingPanelPositioner=Wb,exports.FloatingPanelResizeTrigger=Yb,exports.FloatingPanelStageTrigger=Qb,exports.FloatingPanelTitle=tx,exports.FloatingPanelTrigger=ix,exports.Flow=Px,exports.FlowContext=dx,exports.FlowList=mx,exports.FlowNode=_x,exports.FlowParallel=bx,exports.FormControl=FS,exports.FormControlCaption=vS,exports.FormControlContext=Yf,exports.FormControlLabel=xS,exports.FormControlLeadingVisual=wS,exports.FormControlValidation=kS,exports.FormatByte=LS,exports.FormatNumber=zS,exports.Frame=KS,exports.Header=nC,exports.HeaderItem=QS,exports.HeaderLink=tC,exports.Heading=Tr,exports.Hidden=aC,exports.Highlight=fC,exports.HoverCard=xC,exports.HoverCardContent=gC,exports.HoverCardContext=pC,exports.HoverCardTrigger=_C,exports.IconButton=gi,exports.Image=wC,exports.InlineMessage=AC,exports.IssueLabelToken=w6,exports.JSONTreeView=JT,exports.JSONTreeViewContext=yT,exports.KeybindingHint=Pw,exports.Label=ZT,exports.LabelGroup=cE,exports.LayerCard=yE,exports.LayerCardPrimary=dE,exports.LayerCardSecondary=mE,exports.Link=$c,exports.LinkButton=xE,exports.List=OE,exports.ListItem=DE,exports.LocaleContext=Ls,exports.LocaleProvider=Hs,exports.MARKDOWN_NODES=WG,exports.MARKDOWN_TRANSFORMERS=GG,exports.Map=zG,exports.MapAttributionControl=yU,exports.MapDragRotateAndZoomInteraction=lG,exports.MapDrawControl=tG,exports.MapFullScreenControl=OU,exports.MapGraticuleLayer=FB,exports.MapHeatmapLayer=pU,exports.MapImageLayer=NB,exports.MapLayerGroup=OB,exports.MapLayersControl=iG,exports.MapLinkInteraction=jG,exports.MapMarker=SB,exports.MapMousePositionControl=LU,exports.MapOverlay=wB,exports.MapOverviewMapControl=VU,exports.MapPointerInteraction=mG,exports.MapScaleLineControl=NU,exports.MapSearchControl=oG,exports.MapSelectInteraction=wG,exports.MapTileLayer=kB,exports.MapTranslateInteraction=pG,exports.MapVectorLayer=PB,exports.MapView=cB,exports.MapWebGLTileLayer=gU,exports.Mark=cC,exports.Markdown=JG,exports.Marquee=mK,exports.MarqueeContent=iK,exports.MarqueeContext=YG,exports.MarqueeEdge=sK,exports.MarqueeItem=uK,exports.MarqueeViewport=pK,exports.Message=PK,exports.MessageAvatar=xK,exports.MessageContent=wK,exports.MessageContext=Cl,exports.MessageFooter=DK,exports.MessageGroup=AK,exports.MessageGroupContext=hK,exports.MessageHeader=NK,exports.Meter=iq,exports.MeterContext=zK,exports.MeterIndicator=HK,exports.MeterLabel=GK,exports.MeterTrack=JK,exports.MeterValue=ZK,exports.NativeSelect=lq,exports.NativeSelectOptGroup=oq,exports.NativeSelectOption=cq,exports.NavigationList=zq,exports.NavigationListGroup=xq,exports.NavigationListGroupExpand=Fq,exports.NavigationListGroupHeading=Rq,exports.NavigationListHeading=dq,exports.NavigationListItem=Mq,exports.NavigationListSubNavigation=Oq,exports.NavigationMenu=NJ,exports.NavigationMenuContent=tJ,exports.NavigationMenuContext=Hq,exports.NavigationMenuDepthContext=Kq,exports.NavigationMenuDescription=rJ,exports.NavigationMenuDivider=aJ,exports.NavigationMenuGroup=uJ,exports.NavigationMenuGroupHeading=sJ,exports.NavigationMenuHeading=Vq,exports.NavigationMenuHeadingLevelContext=Gq,exports.NavigationMenuItem=pJ,exports.NavigationMenuItemContext=Uq,exports.NavigationMenuLeadingVisual=gJ,exports.NavigationMenuLink=TJ,exports.NavigationMenuLinkContext=Wq,exports.NavigationMenuList=kJ,exports.NavigationMenuSubNavigation=yJ,exports.NavigationMenuTrailingVisual=xJ,exports.NavigationMenuTrigger=MJ,exports.NumberInput=LJ,exports.OverflowObserverContext=ha,exports.OverflowObserverProvider=ga,exports.PINInput=KY,exports.PageLayout=kY,exports.PageLayoutContent=TY,exports.PageLayoutContext=zJ,exports.PageLayoutFooter=GJ,exports.PageLayoutHeader=JJ,exports.PageLayoutPane=OY,exports.PageLayoutSidebar=gY,exports.Pagination=LY,exports.PasswordInput=BY,exports.Placeholder=YY,exports.PlatformContext=Sw,exports.Popover=iX,exports.PopoverContent=rX,exports.PopoverContext=XY,exports.Portal=ea,exports.PortalContext=Gi,exports.ProgressBar=my,exports.ProgressBarItem=uy,exports.ProgressCircle=cX,exports.QRCode=KZ,exports.RICH_TEXT_EDITOR_NODES=y$,exports.Radio=Hx,exports.RadioCard=sQ,exports.RadioCardContext=qZ,exports.RadioCardDescription=XZ,exports.RadioCardLabel=$Z,exports.RadioCardLeadingVisual=nQ,exports.RadioGroup=SQ,exports.RadioGroupCaption=uQ,exports.RadioGroupContext=zx,exports.RadioGroupLabel=pQ,exports.RadioGroupValidation=vQ,exports.Rating=kQ,exports.RelativeTime=e$,exports.Resizable=g$,exports.ResizablePanel=o$,exports.ResizableResizeTrigger=l$,exports.ResizableResizeTriggerIndicator=f$,exports.ResizableResizeTriggerSeparator=h$,exports.RichTextEditor=P$,exports.RichTextEditorContent=D$,exports.RichTextEditorToolbar=N$,exports.SCREEN_READER_DELAY=500,exports.ScrollableRegion=Mh,exports.SegmentedControl=Z$,exports.SegmentedControlButton=z$,exports.SegmentedControlIconButton=V$,exports.Select=Q$,exports.SelectContext=Ux,exports.SelectOptGroup=qx,exports.SelectOptGroupContext=Wx,exports.SelectOption=Zx,exports.SelectPanel=k1,exports.SelectPanelButton=e1,exports.SelectPanelContext=t1,exports.SelectPanelFooter=i1,exports.SelectPanelHeader=d1,exports.SelectPanelLoading=S1,exports.SelectPanelMessage=T1,exports.SelectPanelSearchInput=s1,exports.SelectPanelSecondaryAction=O1,exports.Separator=M1,exports.SkeletonAvatar=Kw,exports.SkeletonBox=g_,exports.SkeletonText=y_,exports.Slider=I1,exports.Spinner=$r,exports.Stack=tb,exports.StackItem=eb,exports.StateLabel=U1,exports.StatisticCard=p0,exports.StatisticCardContext=W1,exports.StatisticCardDescription=q1,exports.StatisticCardLabel=X1,exports.StatisticCardTrailingVisual=$1,exports.StatisticCardTrend=o0,exports.StatisticCardValue=l0,exports.Status=S0,exports.StatusIndicator=x0,exports.Steps=K0,exports.StepsBody=j0,exports.StepsDescription=P0,exports.StepsIndicator=R0,exports.StepsItem=H0,exports.StepsItemContext=C0,exports.StepsTitle=G0,exports.Swap=e2,exports.SwapContext=q0,exports.SwapIndicator=$0,exports.Tab=X2,exports.TabList=t4,exports.TabPanel=i4,exports.Table=q_,exports.TableActions=kg,exports.TableBody=Pg,exports.TableCell=Lg,exports.TableCellPlaceholder=Bg,exports.TableContainer=Ug,exports.TableDivider=Kg,exports.TableErrorDialog=Jg,exports.TableHead=Xg,exports.TableHeader=$g,exports.TableOfContents=H2,exports.TableOfContentsContent=S2,exports.TableOfContentsContext=t2,exports.TableOfContentsIndicator=E2,exports.TableOfContentsItem=k2,exports.TableOfContentsItemContext=r2,exports.TableOfContentsLink=M2,exports.TableOfContentsList=F2,exports.TableOfContentsNav=R2,exports.TableOfContentsTitle=V2,exports.TablePagination=d_,exports.TableRow=p_,exports.TableSkeleton=S_,exports.TableSortHeader=T_,exports.TableSubtitle=O_,exports.TableTitle=j_,exports.Tabs=a4,exports.TabsContext=U2,exports.Text=Io,exports.TextInput=qo,exports.TextInputAction=Ko,exports.Textarea=hS,exports.ThemeContext=j8,exports.ThemeProvider=V8,exports.Timeline=k4,exports.TimelineActions=f4,exports.TimelineAvatar=h4,exports.TimelineBadge=y4,exports.TimelineBody=S4,exports.TimelineBreak=T4,exports.TimelineItem=O4,exports.Timer=a3,exports.TimerActionTrigger=K4,exports.TimerArea=Y4,exports.TimerContext=A4,exports.TimerControl=Q4,exports.TimerItem=t3,exports.TimerSeparator=i3,exports.Toaster=F3,exports.ToggleSwitch=Z3,exports.Token=p6,exports.TokenBase=n6,exports.TokenRemoveButton=i6,exports.TokenText=s6,exports.Tooltip=lT,exports.TooltipContext=eT,exports.TopicTag=j6,exports.TopicTagGroup=A6,exports.Tour=E8,exports.TourActionTrigger=H6,exports.TourActions=z6,exports.TourArrow=K6,exports.TourBackdrop=Y6,exports.TourCloseTrigger=Q6,exports.TourContent=t8,exports.TourContext=M6,exports.TourControl=i8,exports.TourDescription=s8,exports.TourPositioner=d8,exports.TourPositionerContext=N6,exports.TourProgressText=m8,exports.TourSpotlight=_8,exports.TourTitle=b8,exports.TreeView=vT,exports.TreeViewDirectoryIcon=aw,exports.TreeViewErrorDialog=sw,exports.TreeViewItem=_T,exports.TreeViewItemContext=MC,exports.TreeViewLeadingAction=Uw,exports.TreeViewLeadingVisual=Ww,exports.TreeViewRootContext=jC,exports.TreeViewSubTree=$w,exports.TreeViewTrailingVisual=fT,exports.Truncate=k8,exports.buildPaginationModel=e_,exports.buildPaginationPageData=t_,exports.clampToRange=IK,exports.commandScore=Jm,exports.computeEdges=Ox,exports.computeFlowRect=kx,exports.computePositions=Cx,exports.connectorPath=sx,exports.copyText=Ff,exports.createColumnHelper=K_,exports.defaultPaneWidth=XJ,exports.entryIds=wx,exports.exitIds=Tx,exports.extendRange=yu,exports.formatFileSize=Bv,exports.formatMeterValue=$K,exports.formatRelativeTime=ZQ,exports.formatTime=P4,exports.formatTitle=XQ,exports.getAccessibleKeybindingHintString=xw,exports.getAddress=fB,exports.getAnchoredPosition=aa,exports.getCharacterCount=Lo,exports.getFirstDayOfWeek=du,exports.getIssueLabelColors=x6,exports.getLonLat=pB,exports.getMonthWeeks=mu,exports.getPlatform=Tw,exports.getProp=Ld,exports.getRangePosition=vu,exports.getSeriesColor=Fd,exports.getWeekdays=fu,exports.isDateSelectable=hu,exports.isDateWithinRange=_u,exports.isFileAccepted=Vv,exports.isTokenInteractive=e6,exports.markdownTheme=KG,exports.nodeIds=Ex,exports.parseDate=bu,exports.registerPortalRoot=Xi,exports.richTextEditorTheme=b$,exports.scrollToHeading=o2,exports.sortStrategies=L_,exports.splitHighlightChunks=uC,exports.splitTime=N4,exports.startOfWeek=pu,exports.stepValue=LK,exports.toDayKey=cu,exports.toJSONNodes=NT,exports.toValueTokens=BT,exports.toast=S3,exports.transitionSortDirection=M_,exports.triageFiles=Hv,exports.updateAriaValues=nY,exports.useAnnouncements=ab,exports.useChart=Bd,exports.useChartContext=Dd,exports.useClipboard=If,exports.useClipboardContext=Nf,exports.useClippedChildren=rE,exports.useCollator=Us,exports.useColorSchemeVar=N8,exports.useConfirm=mg,exports.useDateFormatter=Ws,exports.useDirection=QT,exports.useFilter=Gs,exports.useFloatingPanelContext=Sb,exports.useFormControlForwardedProps=Xf,exports.useIsRtl=$T,exports.useJSONTreeViewContext=bT,exports.useLocaleContext=Rs,exports.useMap=sB,exports.useMarquee=ZG,exports.useMarqueeContext=XG,exports.useNumberFormatter=Ks,exports.useOverflowObserver=_a,exports.usePaneWidth=pY,exports.usePlatform=Dw,exports.useStepsItem=F0,exports.useTab=q2,exports.useTabList=Q2,exports.useTabPanel=n4,exports.useTableOfContents=g2,exports.useTableOfContentsContext=n2,exports.useTableOfContentsItemContext=i2,exports.useTabs=K2,exports.useTheme=M8,exports.useTimer=z4,exports.useTimerContext=j4,exports.useTour=x8,exports.valueToPercent=QK,exports.waitForElement=w8,exports.waitForElementValue=T8,exports.waitForEvent=C8;
820
+ }`,uniforms:o,paletteTextures:i.paletteTextures}}var hU=class extends kz{constructor(e){e=e?Object.assign({},e):{};let t=e.style||{};delete e.style,super(e),this.sources_=e.sources,this.renderedSource_=null,this.renderedResolution_=NaN,this.style_=t,this.styleVariables_=this.style_.variables||{},this.styleBandCount_=NaN,this.styleNodataBandIndex_=void 0,this.handleSourceUpdate_(),this.addChangeListener(jL.SOURCE,this.handleSourceUpdate_)}getSources(e,t){let n=this.getSource();return this.sources_?typeof this.sources_==`function`?this.sources_(e,t):this.sources_:n?[n]:[]}getRenderSource(){return this.renderedSource_||this.getSource()}getSourceState(){let e=this.getRenderSource();return e?e.getState():`undefined`}handleSourceUpdate_(){this.hasRenderer()&&this.getRenderer().clearCache();let e=this.getSource();if(e){if(e.getState()===`loading`){let t=()=>{e.getState()===`ready`&&(e.removeEventListener(`change`,t),this.setStyle(this.style_))};e.addEventListener(`change`,t)}else this.setStyle(this.style_)}}getFirstSource_(){let e=2**53-1,t=this.getSources([-e,-e,e,e],e);return t&&t.length?t[0]:null}usesCoverageBand_(e,t){if(!e||!t||e.hasAlpha!==!1)return!1;let n=e.getProjection();return!!n&&!Vk(n,t)}getSourceBandCount_(e){let t=this.getFirstSource_(),n=t&&`bandCount`in t?t.bandCount:4;return this.usesCoverageBand_(t,e)?n+1:n}getSourceNodataBandIndex_(e){let t=this.getFirstSource_();if(t)return this.usesCoverageBand_(t,e)?t.bandCount+1:`nodataBandIndex`in t?t.nodataBandIndex:void 0}parseStyleForRender_(e){let t=this.getSourceBandCount_(e),n=this.getSourceNodataBandIndex_(e);return this.styleBandCount_=t,this.styleNodataBandIndex_=n,mU(this.style_,t,n)}applyShaders_(e){let t=this.parseStyleForRender_(e);this.getRenderer().reset({vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,paletteTextures:t.paletteTextures})}createRenderer(){let e=this.getMapInternal()?.getView()?.getProjection(),t=this.parseStyleForRender_(e);return new AV(this,{vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,uniforms:t.uniforms,cacheSize:this.getCacheSize(),paletteTextures:t.paletteTextures})}renderSources(e,t){let n=this.getRenderer(),r;for(let i=0,a=t.length;i<a;++i)this.renderedSource_=t[i],n.prepareFrame(e)&&(r=n.renderFrame(e));return r}render(e,t){this.rendered=!0;let n=e.viewState;if(this.hasRenderer()){let e=n.projection;(this.getSourceBandCount_(e)!==this.styleBandCount_||this.getSourceNodataBandIndex_(e)!==this.styleNodataBandIndex_)&&this.applyShaders_(e)}let r=this.getSources(e.extent,n.resolution),i=!0;for(let e=0,t=r.length;e<t;++e){let t=r[e],n=t.getState();if(n==`loading`){let e=()=>{t.getState()==`ready`&&(t.removeEventListener(`change`,e),this.changed())};t.addEventListener(`change`,e)}i&&=n==`ready`}let a=this.renderSources(e,r);if(this.getRenderer().renderComplete&&i)return this.renderedResolution_=n.resolution,a;if(this.renderedResolution_>.5*n.resolution){let t=this.getSources(e.extent,this.renderedResolution_).filter(e=>!r.includes(e));if(t.length>0)return this.renderSources(e,t)}return a}setStyle(e){if(this.styleVariables_=e.variables||{},this.style_=e,this.hasRenderer()){let e=this.getMapInternal()?.getView()?.getProjection();this.applyShaders_(e),this.changed()}}updateStyleVariables(e){Object.assign(this.styleVariables_,e),this.changed()}};hU.prototype.dispose;function gU({name:e,...t}){return DB(()=>new hU(t),e),null}gU.displayName=`MapWebGLTileLayer`;const _U=e=>{let t=sB(),n=l.useRef(null);n.current||=e();let r=n.current;return l.useEffect(()=>{if(t)return t.addControl(r),()=>{t.removeControl(r)}},[t,r]),r},vU=(e,t,n)=>{let r=l.useRef(null);if(!r.current){let t=document.createElement(`div`);t.setAttribute(`data-component`,e),r.current=t}let i=r.current;return _U(()=>new QL({element:i,target:n})),l.useEffect(()=>{i.className=G(`ol-unselectable ol-control`,t)},[i,t]),i};function yU(e){return _U(()=>new $L(e)),null}yU.displayName=`MapAttributionControl`;const bU=[`fullscreenchange`,`webkitfullscreenchange`],xU={ENTERFULLSCREEN:`enterfullscreen`,LEAVEFULLSCREEN:`leavefullscreen`};var SU=class extends QL{constructor(e){e||={},super({element:document.createElement(`div`),target:e.target}),this.on,this.once,this.un,this.keys_=e.keys!==void 0&&e.keys,this.source_=e.source,this.isInFullscreen_=!1,this.boundHandleMapTargetChange_=this.handleMapTargetChange_.bind(this),this.cssClassName_=e.className===void 0?`ol-full-screen`:e.className,this.documentListeners_=[],this.activeClassName_=e.activeClassName===void 0?[this.cssClassName_+`-true`]:e.activeClassName.split(` `),this.inactiveClassName_=e.inactiveClassName===void 0?[this.cssClassName_+`-false`]:e.inactiveClassName.split(` `);let t=e.label===void 0?`⤢`:e.label;this.labelNode_=typeof t==`string`?document.createTextNode(t):t;let n=e.labelActive===void 0?`×`:e.labelActive;this.labelActiveNode_=typeof n==`string`?document.createTextNode(n):n;let r=e.tipLabel?e.tipLabel:`Toggle full-screen`;this.button_=document.createElement(`button`),this.button_.title=r,this.button_.setAttribute(`type`,`button`),this.button_.appendChild(this.labelNode_),this.button_.addEventListener(IE.CLICK,this.handleClick_.bind(this),!1),this.setClassName_(this.button_,this.isInFullscreen_),this.element.className=`${this.cssClassName_} ol-unselectable ol-control`,this.element.appendChild(this.button_)}handleClick_(e){e.preventDefault(),this.handleFullScreen_()}handleFullScreen_(){let e=this.getMap();if(!e)return;let t=e.getOwnerDocument();if(CU(t)){if(wU(t))DU(t);else{let n;n=this.source_?typeof this.source_==`string`?t.getElementById(this.source_):this.source_:e.getTargetElement(),this.keys_?EU(n):TU(n)}}}handleFullScreenChange_(){let e=this.getMap();if(!e)return;let t=this.isInFullscreen_;this.isInFullscreen_=wU(e.getOwnerDocument()),t!==this.isInFullscreen_&&(this.setClassName_(this.button_,this.isInFullscreen_),this.isInFullscreen_?(Kj(this.labelActiveNode_,this.labelNode_),this.dispatchEvent(xU.ENTERFULLSCREEN)):(Kj(this.labelNode_,this.labelActiveNode_),this.dispatchEvent(xU.LEAVEFULLSCREEN)),e.updateSize())}setClassName_(e,t){t?(e.classList.remove(...this.inactiveClassName_),e.classList.add(...this.activeClassName_)):(e.classList.remove(...this.activeClassName_),e.classList.add(...this.inactiveClassName_))}setMap(e){let t=this.getMap();t&&t.removeChangeListener(JL.TARGET,this.boundHandleMapTargetChange_),super.setMap(e),this.handleMapTargetChange_(),e&&e.addChangeListener(JL.TARGET,this.boundHandleMapTargetChange_)}handleMapTargetChange_(){let e=this.documentListeners_;for(let t=0,n=e.length;t<n;++t)FE(e[t]);e.length=0;let t=this.getMap();if(t){let n=t.getOwnerDocument();CU(n)?this.element.classList.remove(WM):this.element.classList.add(WM);for(let t=0,r=bU.length;t<r;++t)e.push(NE(n,bU[t],this.handleFullScreenChange_,this));this.handleFullScreenChange_()}}};function CU(e){let t=e.body;return!!(t.webkitRequestFullscreen||t.requestFullscreen&&e.fullscreenEnabled)}function wU(e){return!!(e.webkitIsFullScreen||e.fullscreenElement)}function TU(e){e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()}function EU(e){e.webkitRequestFullscreen?e.webkitRequestFullscreen():TU(e)}function DU(e){e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen&&e.webkitExitFullscreen()}function OU(e){return _U(()=>new SU(e)),null}OU.displayName=`MapFullScreenControl`;const kU=`units`,AU=[1,2,5],jU=25.4/.28;var MU=class extends QL{constructor(e){e||={};let t=document.createElement(`div`);t.style.pointerEvents=`none`,super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un;let n=e.className===void 0?e.bar?`ol-scale-bar`:`ol-scale-line`:e.className;this.innerElement_=document.createElement(`div`),this.innerElement_.className=n+`-inner`,this.element.className=n+` ol-unselectable`,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=e.minWidth===void 0?64:e.minWidth,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_=``,this.addChangeListener(kU,this.handleUnitsChanged_),this.setUnits(e.units||`metric`),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(kU)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(kU,e)}setDpi(e){this.dpi_=e}updateElement_(){let e=this.viewState_;if(!e){this.renderedVisible_&&=(this.element.style.display=`none`,!1);return}let t=e.center,n=e.projection,r=this.getUnits(),i=r==`degrees`?`degrees`:`m`,a=Pk(n,e.resolution,t,i),o=this.minWidth_*(this.dpi_||jU)/jU,s=this.maxWidth_===void 0?void 0:this.maxWidth_*(this.dpi_||jU)/jU,c=o*a,l=``;if(r==`degrees`){let e=FO.degrees;c*=e,c<e/60?(l=`″`,a*=3600):c<e?(l=`′`,a*=60):l=`°`}else if(r==`imperial`)c<.9144?(l=`in`,a/=.0254):c<1609.344?(l=`ft`,a/=.3048):(l=`mi`,a/=1609.344);else if(r==`nautical`)a/=1852,l=`NM`;else if(r==`metric`)c<1e-6?(l=`nm`,a*=1e9):c<.001?(l=`μm`,a*=1e6):c<1?(l=`mm`,a*=1e3):c<1e3?l=`m`:(l=`km`,a/=1e3);else if(r==`us`)c<.9144?(l=`in`,a*=39.37):c<1609.344?(l=`ft`,a/=.30480061):(l=`mi`,a/=1609.3472);else throw Error(`Invalid units`);let u=3*Math.floor(Math.log(o*a)/Math.log(10)),d,f,p,m=0,h,g;for(;;){p=Math.floor(u/3);let e=10**p;if(d=AU[(u%3+3)%3]*e,f=Math.round(d/a),isNaN(f)){this.element.style.display=`none`,this.renderedVisible_=!1;return}if(s!==void 0&&f>=s){d=m,f=h,p=g;break}if(f>=o)break;m=d,h=f,g=p,++u}let _=this.scaleBar_?this.createScaleBar(f,d,l):d.toFixed(p<0?-p:0)+` `+l;this.renderedHTML_!=_&&(this.innerElement_.innerHTML=_,this.renderedHTML_=_),this.renderedWidth_!=f&&(this.innerElement_.style.width=f+`px`,this.renderedWidth_=f),this.renderedVisible_||=(this.element.style.display=``,!0)}createScaleBar(e,t,n){let r=this.getScaleForResolution(),i=r<1?Math.round(1/r).toLocaleString()+` : 1`:`1 : `+Math.round(r).toLocaleString(),a=this.scaleBarSteps_,o=e/a,s=[this.createMarker(`absolute`)];for(let r=0;r<a;++r){let i=r%2==0?`ol-scale-singlebar-odd`:`ol-scale-singlebar-even`;s.push(`<div><div class="ol-scale-singlebar ${i}" style="width: ${o}px;"></div>`+this.createMarker(`relative`)+(r%2==0||a===2?this.createStepText(r,e,!1,t,n):``)+`</div>`)}return s.push(this.createStepText(a,e,!0,t,n)),(this.scaleBarText_?`<div class="ol-scale-text" style="width: ${e}px;">`+i+`</div>`:``)+s.join(``)}createMarker(e){return`<div class="ol-scale-step-marker" style="position: ${e}; top: ${e===`absolute`?3:-10}px;"></div>`}createStepText(e,t,n,r,i){let a=(e===0?0:Math.round(r/this.scaleBarSteps_*e*100)/100)+(e===0?``:` `+i),o=e===0?-3:t/this.scaleBarSteps_*-1,s=e===0?0:t/this.scaleBarSteps_*2;return`<div class="ol-scale-step-text" style="margin-left: ${o}px;text-align: ${e===0?`left`:`center`};min-width: ${s}px;left: ${n?t+`px`:`unset`};">`+a+`</div>`}getScaleForResolution(){let e=Pk(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,`m`),t=this.dpi_||jU;return 1e3/25.4*e*t}render(e){let t=e.frameState;this.viewState_=t?t.viewState:null,this.updateElement_()}};function NU(e){return _U(()=>new MU(e)),null}NU.displayName=`MapScaleLineControl`;const PU=`projection`,FU=`coordinateFormat`;var IU=class extends QL{constructor(e){e||={};let t=document.createElement(`div`);t.className=e.className===void 0?`ol-mouse-position`:e.className,super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un,this.addChangeListener(PU,this.handleProjectionChanged_),e.coordinateFormat&&this.setCoordinateFormat(e.coordinateFormat),e.projection&&this.setProjection(e.projection),this.renderOnMouseOut_=e.placeholder!==void 0,this.placeholder_=this.renderOnMouseOut_?e.placeholder:`&#160;`,this.renderedHTML_=t.innerHTML,this.mapProjection_=null,this.transform_=null,this.wrapX_=e.wrapX!==!1}handleProjectionChanged_(){this.transform_=null}getCoordinateFormat(){return this.get(FU)}getProjection(){return this.get(PU)}handleMouseMove(e){let t=this.getMap();this.updateHTML_(t.getEventPixel(e))}handleMouseOut(e){this.updateHTML_(null)}setMap(e){if(super.setMap(e),e){let t=e.getViewport();this.listenerKeys.push(NE(t,GL.POINTERMOVE,this.handleMouseMove,this)),this.renderOnMouseOut_&&this.listenerKeys.push(NE(t,GL.POINTEROUT,this.handleMouseOut,this)),this.updateHTML_(null)}}setCoordinateFormat(e){this.set(FU,e)}setProjection(e){this.set(PU,Nk(e))}updateHTML_(e){let t=this.placeholder_;if(e&&this.mapProjection_){if(!this.transform_){let e=this.getProjection();this.transform_=e?Hk(this.mapProjection_,e):Ak}let n=this.getMap().getCoordinateFromPixelInternal(e);if(n){let e=Kk();e&&(this.transform_=Hk(this.mapProjection_,e)),this.transform_(n,n),this.wrapX_&&MO(n,e||this.getProjection()||this.mapProjection_);let r=this.getCoordinateFormat();t=r?r(n):n.toString()}}(!this.renderedHTML_||t!==this.renderedHTML_)&&(this.element.innerHTML=t,this.renderedHTML_=t)}render(e){let t=e.frameState;t?this.mapProjection_!=t.viewState.projection&&(this.mapProjection_=t.viewState.projection,this.transform_=null):this.mapProjection_=null}};function LU(e){return _U(()=>new IU(e)),null}LU.displayName=`MapMousePositionControl`;const RU=.75,zU=.1;var BU=class extends QL{constructor(e){e||={},super({element:document.createElement(`div`),render:e.render,target:e.target}),this.boundHandleRotationChanged_=this.handleRotationChanged_.bind(this),this.collapsed_=e.collapsed===void 0||e.collapsed,this.collapsible_=e.collapsible===void 0||e.collapsible,this.collapsible_||(this.collapsed_=!1),this.rotateWithView_=e.rotateWithView!==void 0&&e.rotateWithView,this.viewExtent_=void 0;let t=e.className===void 0?`ol-overviewmap`:e.className,n=e.tipLabel===void 0?`Overview map`:e.tipLabel,r=e.collapseLabel===void 0?`‹`:e.collapseLabel;typeof r==`string`?(this.collapseLabel_=document.createElement(`span`),this.collapseLabel_.textContent=r):this.collapseLabel_=r;let i=e.label===void 0?`›`:e.label;typeof i==`string`?(this.label_=document.createElement(`span`),this.label_.textContent=i):this.label_=i;let a=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,o=document.createElement(`button`);o.setAttribute(`type`,`button`),o.title=n,o.appendChild(a),o.addEventListener(IE.CLICK,this.handleClick_.bind(this),!1),this.ovmapDiv_=document.createElement(`div`),this.ovmapDiv_.className=`ol-overviewmap-map`,this.view_=e.view;let s=new JR({view:e.view,controls:new sD,interactions:new sD});this.ovmap_=s,e.layers&&e.layers.forEach(function(e){s.addLayer(e)});let c=document.createElement(`div`);c.className=`ol-overviewmap-box`,c.style.boxSizing=`border-box`,this.boxOverlay_=new ZR({position:[0,0],positioning:`center-center`,element:c}),this.ovmap_.addOverlay(this.boxOverlay_);let l=t+` ol-unselectable ol-control`+(this.collapsed_&&this.collapsible_?` ol-collapsed`:``)+(this.collapsible_?``:` ol-uncollapsible`),u=this.element;u.className=l,u.appendChild(this.ovmapDiv_),u.appendChild(o);let d=this.boxOverlay_,f=this.boxOverlay_.getElement(),p=e=>({clientX:e.clientX,clientY:e.clientY}),m=function(e){let t=p(e),n=s.getEventCoordinate(t);d.setPosition(n)},h=e=>{let t=s.getEventCoordinateInternal(e),n=this.getMap();n.getView().setCenterInternal(t);let r=n.getOwnerDocument();r.removeEventListener(`pointermove`,m),r.removeEventListener(`pointerup`,h)};this.ovmapDiv_.addEventListener(`pointerdown`,e=>{let t=this.getMap().getOwnerDocument();e.target===f&&t.addEventListener(`pointermove`,m),t.addEventListener(`pointerup`,h)})}setMap(e){let t=this.getMap();if(e!==t){if(t){let e=t.getView();e&&this.unbindView_(e),this.ovmap_.setTarget(null)}if(super.setMap(e),e){this.ovmap_.setTarget(this.ovmapDiv_),this.listenerKeys.push(NE(e,AE.PROPERTYCHANGE,this.handleMapPropertyChange_,this));let t=e.getView();t&&this.bindView_(t),this.ovmap_.isRendered()||this.updateBoxAfterOvmapIsRendered_()}}}handleMapPropertyChange_(e){if(e.key===JL.VIEW){let t=e.oldValue;t&&this.unbindView_(t);let n=this.getMap().getView();this.bindView_(n)}else!this.ovmap_.isRendered()&&(e.key===JL.TARGET||e.key===JL.SIZE)&&this.ovmap_.updateSize()}bindView_(e){if(!this.view_){let t=new wL({projection:e.getProjection()});this.ovmap_.setView(t)}e.addChangeListener(fL.ROTATION,this.boundHandleRotationChanged_),this.handleRotationChanged_(),e.isDef()&&(this.ovmap_.updateSize(),this.resetExtent_())}unbindView_(e){e.removeChangeListener(fL.ROTATION,this.boundHandleRotationChanged_)}handleRotationChanged_(){this.rotateWithView_&&this.ovmap_.getView().setRotation(this.getMap().getView().getRotation())}validateExtent_(){let e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;let n=e.getSize(),r=e.getView().calculateExtentInternal(n);if(this.viewExtent_&&ED(r,this.viewExtent_))return;this.viewExtent_=r;let i=t.getSize(),a=t.getView().calculateExtentInternal(i),o=t.getPixelFromCoordinateInternal(UD(r)),s=t.getPixelFromCoordinateInternal(FD(r)),c=Math.abs(o[0]-s[0]),l=Math.abs(o[1]-s[1]),u=i[0],d=i[1];c<u*zU||l<d*zU||c>u*RU||l>d*RU?this.resetExtent_():vD(a,r)||this.recenter_()}resetExtent_(){let e=this.getMap(),t=this.ovmap_,n=e.getSize(),r=e.getView().calculateExtentInternal(n),i=t.getView();YD(r,1/(2**(Math.log(RU/zU)/Math.LN2/2)*zU)),i.fitInternal(bj(r))}recenter_(){let e=this.getMap(),t=this.ovmap_,n=e.getView();t.getView().setCenterInternal(n.getCenterInternal())}updateBox_(){let e=this.getMap(),t=this.ovmap_;if(!e.isRendered()||!t.isRendered())return;let n=e.getSize(),r=e.getView(),i=t.getView(),a=this.rotateWithView_?0:-r.getRotation(),o=this.boxOverlay_,s=this.boxOverlay_.getElement(),c=r.getCenter(),l=r.getResolution(),u=i.getResolution(),d=n[0]*l/u,f=n[1]*l/u;if(o.setPosition(c),s){s.style.width=d+`px`,s.style.height=f+`px`;let e=`rotate(`+a+`rad)`;s.style.transform=e}}updateBoxAfterOvmapIsRendered_(){this.ovmapPostrenderKey_||=PE(this.ovmap_,qL.POSTRENDER,e=>{delete this.ovmapPostrenderKey_,this.updateBox_()})}handleClick_(e){e.preventDefault(),this.handleToggle_()}handleToggle_(){this.element.classList.toggle(GM),this.collapsed_?Kj(this.collapseLabel_,this.label_):Kj(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;let e=this.ovmap_;if(!this.collapsed_){if(e.isRendered()){this.viewExtent_=void 0,e.render();return}e.updateSize(),this.resetExtent_(),this.updateBoxAfterOvmapIsRendered_()}}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle(`ol-uncollapsible`),!e&&this.collapsed_&&this.handleToggle_())}setCollapsed(e){!this.collapsible_||this.collapsed_===e||this.handleToggle_()}getCollapsed(){return this.collapsed_}getRotateWithView(){return this.rotateWithView_}setRotateWithView(e){this.rotateWithView_!==e&&(this.rotateWithView_=e,this.getMap().getView().getRotation()!==0&&(this.rotateWithView_?this.handleRotationChanged_():this.ovmap_.getView().setRotation(0),this.viewExtent_=void 0,this.validateExtent_(),this.updateBox_()))}getOverviewMap(){return this.ovmap_}render(e){this.validateExtent_(),this.updateBox_()}};function VU(e){return _U(()=>new BU(e)),null}VU.displayName=`MapOverviewMapControl`;var HU=class e extends wA{constructor(e,t,n){super(),n!==void 0&&t===void 0?this.setFlatCoordinates(n,e):(t||=0,this.setCenterAndRadius(e,t,n))}clone(){let t=new e(this.flatCoordinates.slice(),void 0,this.layout);return t.applyProperties(this),t}closestPointXY(e,t,n,r){let i=this.flatCoordinates,a=e-i[0],o=t-i[1],s=a*a+o*o;if(s<r){if(s===0)for(let e=0;e<this.stride;++e)n[e]=i[e];else{let e=this.getRadius()/Math.sqrt(s);n[0]=i[0]+e*a,n[1]=i[1]+e*o;for(let e=2;e<this.stride;++e)n[e]=i[e]}return n.length=this.stride,s}return r}containsXY(e,t){let n=this.flatCoordinates,r=e-n[0],i=t-n[1];return r*r+i*i<=this.getRadiusSquared_()}getCenter(){return this.flatCoordinates.slice(0,this.stride)}computeExtent(e){let t=this.flatCoordinates,n=t[this.stride]-t[0];return SD(t[0]-n,t[1]-n,t[0]+n,t[1]+n,e)}getRadius(){return Math.sqrt(this.getRadiusSquared_())}getRadiusSquared_(){let e=this.flatCoordinates[this.stride]-this.flatCoordinates[0],t=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return e*e+t*t}getType(){return`Circle`}intersectsExtent(e){if(KD(e,this.getExtent())){let t=this.getCenter();return e[0]<=t[0]&&e[2]>=t[0]||e[1]<=t[1]&&e[3]>=t[1]||MD(e,this.intersectsCoordinate.bind(this))}return!1}setCenter(e){let t=this.stride,n=this.flatCoordinates[t]-this.flatCoordinates[0],r=e.slice();r[t]=r[0]+n;for(let n=1;n<t;++n)r[t+n]=e[n];this.setFlatCoordinates(this.layout,r),this.changed()}setCenterAndRadius(e,t,n){this.setLayout(n,e,0),this.flatCoordinates||=[];let r=this.flatCoordinates,i=RA(r,0,e,this.stride);r[i++]=r[0]+t;for(let e=1,t=this.stride;e<t;++e)r[i++]=r[e];r.length=i,this.changed()}getCoordinates(){return null}setCoordinates(e,t){}setRadius(e){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+e,this.changed()}rotate(e,t){let n=this.getCenter(),r=this.getStride();this.setCenter(vA(n,0,n.length,r,e,t,n)),this.changed()}};HU.prototype.transform;var UU=class e extends CA{constructor(e){super(),this.geometries_=e,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(FE),this.changeEventsKeys_.length=0}listenGeometriesChange_(){let e=this.geometries_;for(let t=0,n=e.length;t<n;++t)this.changeEventsKeys_.push(NE(e[t],IE.CHANGE,this.changed,this))}clone(){let t=new e(WU(this.geometries_));return t.applyProperties(this),t}closestPointXY(e,t,n,r){if(r<gD(this.getExtent(),e,t))return r;let i=this.geometries_;for(let a=0,o=i.length;a<o;++a)r=i[a].closestPointXY(e,t,n,r);return r}containsXY(e,t){let n=this.geometries_;for(let r=0,i=n.length;r<i;++r)if(n[r].containsXY(e,t))return!0;return!1}computeExtent(e){CD(e);let t=this.geometries_;for(let n=0,r=t.length;n<r;++n)OD(e,t[n].getExtent());return e}getGeometries(){return WU(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let e=[],t=this.geometries_;for(let n=0,r=t.length;n<r;++n)t[n].getType()===this.getType()?e=e.concat(t[n].getGeometriesArrayRecursive()):e.push(t[n]);return e}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;let n=[],r=this.geometries_,i=!1;for(let e=0,a=r.length;e<a;++e){let a=r[e],o=a.getSimplifiedGeometry(t);n.push(o),o!==a&&(i=!0)}return i?new e(n):(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getType(){return`GeometryCollection`}intersectsExtent(e){let t=this.geometries_;for(let n=0,r=t.length;n<r;++n)if(t[n].intersectsExtent(e))return!0;return!1}isEmpty(){return this.geometries_.length===0}rotate(e,t){let n=this.geometries_;for(let r=0,i=n.length;r<i;++r)n[r].rotate(e,t);this.changed()}scale(e,t,n){n||=ID(this.getExtent());let r=this.geometries_;for(let i=0,a=r.length;i<a;++i)r[i].scale(e,t,n);this.changed()}setGeometries(e){this.setGeometriesArray(WU(e))}setGeometriesArray(e){this.unlistenGeometriesChange_(),this.geometries_=e,this.listenGeometriesChange_(),this.changed()}applyTransform(e){let t=this.geometries_;for(let n=0,r=t.length;n<r;++n)t[n].applyTransform(e);this.changed()}translate(e,t){let n=this.geometries_;for(let r=0,i=n.length;r<i;++r)n[r].translate(e,t);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}};function WU(e){return e.map(e=>e.clone())}function GU(e,t){let n=e.length;return t<0?e[t+n]:t>=n?e[t-n]:e[t]}function KU(e,t){let n=e.length,r=Math.floor(t),i=t-r;r>=n?r-=n:r<0&&(r+=n);let a=r+1;a>=n&&(a-=n);let o=e[r],s=o[0],c=o[1],l=e[a],u=l[0]-s,d=l[1]-c;return[s+u*i,c+d*i]}const qU={index:-1,endIndex:NaN,closestTargetDistance:1/0};function JU(e,t,n,r){let i=e[0],a=e[1],o=1/0,s=-1,c=NaN;for(let e=0;e<t.targets.length;++e){let n=t.targets[e],r=n.coordinates,l=1/0,u;for(let e=0;e<r.length-1;++e){let t=r[e],n=r[e+1],o=tW(i,a,t,n);o.squaredDistance<l&&(l=o.squaredDistance,u=e+o.along)}l<o&&(o=l,n.ring&&t.targetIndex===e&&(n.endIndex>n.startIndex?u<n.startIndex&&(u+=r.length):n.endIndex<n.startIndex&&u>n.startIndex&&(u-=r.length)),c=u,s=e)}let l=t.targets[s],u=l.ring;if(t.targetIndex===s&&u){let e=KU(l.coordinates,c);AO(n.getPixelFromCoordinate(e),n.getPixelFromCoordinate(t.startCoord))>r&&(u=!1)}if(u){let e=l.coordinates,t=e.length,n=l.startIndex,r=c;if(n<r){let i=$U(e,n,r);$U(e,n,r-t)<i&&(c-=t)}else{let i=$U(e,n,r);$U(e,n,r+t)<i&&(c+=t)}}return qU.index=s,qU.endIndex=c,qU.closestTargetDistance=o,qU}function YU(e,t){let n=[];for(let r=0;r<t.length;++r)XU(e,t[r].getGeometry(),n);return n}function XU(e,t,n){if(t instanceof iM){ZU(e,t.getCoordinates(),!1,n);return}if(t instanceof RN){let r=t.getCoordinates();for(let t=0,i=r.length;t<i;++t)ZU(e,r[t],!1,n);return}if(t instanceof yj){let r=t.getCoordinates();for(let t=0,i=r.length;t<i;++t)ZU(e,r[t],!0,n);return}if(t instanceof VN){let r=t.getCoordinates();for(let t=0,i=r.length;t<i;++t){let i=r[t];for(let t=0,r=i.length;t<r;++t)ZU(e,i[t],!0,n)}return}if(t instanceof UU){let r=t.getGeometries();for(let t=0;t<r.length;++t)XU(e,r[t],n);return}}function ZU(e,t,n,r){let i=e[0],a=e[1];for(let e=0,o=t.length-1;e<o;++e){let o=t[e],s=t[e+1],c=tW(i,a,o,s);if(c.squaredDistance===0){let i=e+c.along;r.push({coordinates:t,ring:n,startIndex:i,endIndex:i});return}}}function QU(e,t){return rO(e[0],e[1],t[0],t[1])}function $U(e,t,n){let r,i;t<n?(r=t,i=n):(r=n,i=t);let a=Math.ceil(r),o=Math.floor(i);if(a>o)return QU(KU(e,r),KU(e,i));let s=0;if(r<a){let t=KU(e,r),n=GU(e,a);s+=QU(t,n)}if(o<i){let t=GU(e,o),n=KU(e,i);s+=QU(t,n)}for(let t=a;t<o-1;++t){let n=GU(e,t),r=GU(e,t+1);s+=QU(n,r)}return s}const eW={along:0,squaredDistance:0};function tW(e,t,n,r){let i=n[0],a=n[1],o=r[0],s=r[1],c=o-i,l=s-a,u=0,d=i,f=a;return(c!==0||l!==0)&&(u=tO(((e-i)*c+(t-a)*l)/(c*c+l*l),0,1),d+=c*u,f+=l*u),eW.along=u,eW.squaredDistance=lO(rO(e,t,d,f),10),eW}const nW={DRAWSTART:`drawstart`,DRAWEND:`drawend`,DRAWABORT:`drawabort`};var rW=class extends ZE{constructor(e,t){super(e),this.feature=t}},iW=class extends CR{constructor(e){let t=e;t.stopDown||=qE,super(t),this.on,this.once,this.un,this.options_=e,this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.pointerType_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=oW(this.type_),this.stopClick_=!!e.stopClick,this.ignoreNextUpEvent_=!1,this.minPoints_=e.minPoints?e.minPoints:this.mode_===`Polygon`?3:2,this.maxPoints_=this.mode_===`Circle`?2:e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:KE,this.geometryLayout_=e.geometryLayout?e.geometryLayout:`XY`;let n=e.geometryFunction;if(!n){let e=this.mode_;if(e===`Circle`)n=(e,t,n)=>{let r=t||new HU([NaN,NaN]),i=Jk(e[0],n),a=kO(i,Jk(e[e.length-1],n));r.setCenterAndRadius(i,Math.sqrt(a),this.geometryLayout_);let o=Kk();return o&&r.transform(n,o),r};else{let t;e===`Point`?t=lj:e===`LineString`?t=iM:e===`Polygon`&&(t=yj),n=(n,r,i)=>(r?e===`Polygon`?n[0].length?r.setCoordinates([n[0].concat([n[0][0]])],this.geometryLayout_):r.setCoordinates([],this.geometryLayout_):r.setCoordinates(n,this.geometryLayout_):r=new t(n,this.geometryLayout_),r)}}this.geometryFunction_=n,this.dragVertexDelay_=e.dragVertexDelay===void 0?500:e.dragVertexDelay,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new RL({source:new pP({useSpatialIndex:!1,wrapX:e.wrapX?e.wrapX:!1}),style:e.style?e.style:aW(),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:_R,this.freehandCondition_,this.freehandCondition_=e.freehand?pR:e.freehandCondition?e.freehandCondition:yR,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSource_=e.traceSource||e.source||null,this.addChangeListener(rR.ACTIVE,this.updateState_)}setTrace(e){let t;t=e?e===!0?pR:e:hR,this.traceCondition_=t}setMap(e){super.setMap(e),this.updateState_()}setFreehand(e){this.freehand_=e,this.freehandCondition_=this.freehand_?pR:this.options_&&this.options_.freehandCondition?this.options_.freehandCondition:yR}getOverlay(){return this.overlay_}getFreehand(){return this.freehand_}handleEvent(e){e.originalEvent.type===IE.CONTEXTMENU&&e.originalEvent.preventDefault(),this.freehand_=this.mode_!==`Point`&&this.freehandCondition_(e);let t=e.type===WL.POINTERMOVE,n=!0;return!this.freehand_&&this.lastDragTime_&&e.type===WL.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,t=!0):this.lastDragTime_=void 0,this.shouldHandle_&&this.downTimeout_!==void 0&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0)),this.freehand_&&e.type===WL.POINTERDRAG&&this.sketchFeature_!==null?(this.addToDrawing_(e.coordinate),n=!1):this.freehand_&&e.type===WL.POINTERDOWN?n=!1:t&&this.getPointerCount()<2?(n=e.type===WL.POINTERMOVE,n&&this.freehand_?(this.handlePointerMove_(e),this.shouldHandle_&&e.originalEvent.preventDefault()):(e.originalEvent.pointerType===`mouse`||e.type===WL.POINTERDRAG&&this.downTimeout_===void 0)&&this.handlePointerMove_(e)):e.type===WL.DBLCLICK&&(n=!1),super.handleEvent(e)&&n}handleDownEvent(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e.coordinate),!0):this.condition_(e)?(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(()=>{this.handlePointerMove_(new UL(WL.POINTERMOVE,e.map,e.originalEvent,!1,e.frameState))},this.dragVertexDelay_),this.downPx_=e.pixel,!0):(this.lastDragTime_=void 0,!1)}deactivateTrace_(){this.traceState_={active:!1}}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active){this.deactivateTrace_();return}let t=this.getMap(),n=fD([t.getCoordinateFromPixel([e.pixel[0]-this.snapTolerance_,e.pixel[1]+this.snapTolerance_]),t.getCoordinateFromPixel([e.pixel[0]+this.snapTolerance_,e.pixel[1]-this.snapTolerance_])]),r=this.traceSource_.getFeaturesInExtent(n);if(r.length===0)return;let i=YU(e.coordinate,r);i.length&&(this.traceState_={active:!0,startCoord:e.coordinate.slice(),targets:i,targetIndex:-1})}addOrRemoveTracedCoordinates_(e,t){let n=e.startIndex<=e.endIndex;n===e.startIndex<=t?n&&t>e.endIndex||!n&&t<e.endIndex?this.addTracedCoordinates_(e,e.endIndex,t):(n&&t<e.endIndex||!n&&t>e.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}removeTracedCoordinates_(e,t){if(e===t)return;let n=0;if(e<t){let r=Math.ceil(e),i=Math.floor(t);i===t&&--i,n=i-r+1}else{let r=Math.floor(e),i=Math.ceil(t);i===t&&(i+=1),n=r-i+1}n>0&&this.removeLastPoints_(n)}addTracedCoordinates_(e,t,n){if(t===n)return;let r=[];if(t<n){let i=Math.ceil(t),a=Math.floor(n);a===n&&--a;for(let t=i;t<=a;++t)r.push(GU(e.coordinates,t))}else{let i=Math.floor(t),a=Math.ceil(n);a===n&&(a+=1);for(let t=i;t>=a;--t)r.push(GU(e.coordinates,t))}r.length&&this.appendCoordinates(r)}updateTrace_(e){let t=this.traceState_;if(!t.active||t.targetIndex===-1&&AO(e.map.getPixelFromCoordinate(t.startCoord),e.pixel)<this.snapTolerance_)return;let n=JU(e.coordinate,t,this.getMap(),this.snapTolerance_);if(t.targetIndex!==n.index){if(t.targetIndex!==-1){let e=t.targets[t.targetIndex];this.removeTracedCoordinates_(e.startIndex,e.endIndex)}let e=t.targets[n.index];this.addTracedCoordinates_(e,e.startIndex,n.endIndex)}else{let e=t.targets[t.targetIndex];this.addOrRemoveTracedCoordinates_(e,n.endIndex)}t.targetIndex=n.index;let r=t.targets[t.targetIndex];r.endIndex=n.endIndex;let i=KU(r.coordinates,r.endIndex),a=this.getMap().getPixelFromCoordinate(i);e.coordinate=i,e.pixel=[Math.round(a[0]),Math.round(a[1])]}handleDragEvent(e){this.ignoreNextUpEvent_=!0,super.handleDragEvent(e)}handleUpEvent(e){let t=!0;if(this.getPointerCount()===0){this.downTimeout_&&=(clearTimeout(this.downTimeout_),void 0),this.handlePointerMove_(e);let n=this.traceState_.active;if(this.ignoreNextUpEvent_||this.toggleTraceState_(e),this.shouldHandle_){let r=!this.finishCoordinate_;r&&this.startDrawing_(e.coordinate),!r&&this.freehand_?this.finishDrawing():!this.freehand_&&(!r||this.mode_===`Point`)&&(this.atFinish_(e.pixel,n)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e.coordinate)),t=!1}else this.freehand_&&this.abortDrawing()}return this.ignoreNextUpEvent_=!1,!t&&this.stopClick_&&e.preventDefault(),t}handlePointerMove_(e){if(this.pointerType_=e.originalEvent.pointerType,this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){let t=this.downPx_,n=e.pixel,r=t[0]-n[0],i=t[1]-n[1],a=r*r+i*i;if(this.shouldHandle_=this.freehand_?a>this.squaredClickTolerance_:a<=this.squaredClickTolerance_,!this.shouldHandle_)return}if(!this.finishCoordinate_){this.createOrUpdateSketchPoint_(e.coordinate.slice());return}this.updateTrace_(e),this.modifyDrawing_(e.coordinate)}atFinish_(e,t){let n=!1;if(this.sketchFeature_){let r=!1,i=[this.finishCoordinate_],a=this.mode_;if(a===`Point`)n=!0;else if(a===`Circle`)n=this.sketchCoords_.length===2;else if(a===`LineString`)r=!t&&this.sketchCoords_.length>this.minPoints_;else if(a===`Polygon`){let e=this.sketchCoords_;r=e[0].length>this.minPoints_,i=[e[0][0],e[0][e[0].length-2]],i=t?[e[0][0]]:[e[0][0],e[0][e[0].length-2]]}if(r){let t=this.getMap();for(let r=0,a=i.length;r<a;r++){let a=i[r],o=t.getPixelFromCoordinate(a),s=e[0]-o[0],c=e[1]-o[1],l=this.freehand_?1:this.snapTolerance_;if(n=Math.sqrt(s*s+c*c)<=l,n){this.finishCoordinate_=a;break}}}}return n}createOrUpdateSketchPoint_(e){this.sketchPoint_?this.sketchPoint_.getGeometry().setCoordinates(e):(this.sketchPoint_=new lD(new lj(e)),this.updateSketchFeatures_())}createOrUpdateCustomSketchLine_(e){this.sketchLine_||=new lD;let t=e.getLinearRing(0),n=this.sketchLine_.getGeometry();n?(n.setFlatCoordinates(t.getLayout(),t.getFlatCoordinates()),n.changed()):(n=new iM(t.getFlatCoordinates(),t.getLayout()),this.sketchLine_.setGeometry(n))}startDrawing_(e){let t=this.getMap().getView().getProjection(),n=EA(this.geometryLayout_);for(;e.length<n;)e.push(0);this.finishCoordinate_=e,this.mode_===`Point`?this.sketchCoords_=e.slice():this.mode_===`Polygon`?(this.sketchCoords_=[[e.slice(),e.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[e.slice(),e.slice()],this.sketchLineCoords_&&(this.sketchLine_=new lD(new iM(this.sketchLineCoords_)));let r=this.geometryFunction_(this.sketchCoords_,void 0,t);this.sketchFeature_=new lD,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(r),this.updateSketchFeatures_(),this.dispatchEvent(new rW(nW.DRAWSTART,this.sketchFeature_))}modifyDrawing_(e){let t=this.getMap(),n=this.sketchFeature_.getGeometry(),r=t.getView().getProjection(),i=EA(this.geometryLayout_),a,o;for(;e.length<i;)e.push(0);this.mode_===`Point`?o=this.sketchCoords_:this.mode_===`Polygon`?(a=this.sketchCoords_[0],o=a[a.length-1],this.atFinish_(t.getPixelFromCoordinate(e))&&(e=this.finishCoordinate_.slice())):(a=this.sketchCoords_,o=a[a.length-1]),o[0]=e[0],o[1]=e[1],this.geometryFunction_(this.sketchCoords_,n,r),this.sketchPoint_&&this.sketchPoint_.getGeometry().setCoordinates(e),n.getType()===`Polygon`&&this.mode_!==`Polygon`?this.createOrUpdateCustomSketchLine_(n):this.sketchLineCoords_&&this.sketchLine_.getGeometry().setCoordinates(this.sketchLineCoords_),this.updateSketchFeatures_()}addToDrawing_(e){let t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r,i,a=this.mode_;return a===`LineString`||a===`Circle`?(this.finishCoordinate_=e.slice(),i=this.sketchCoords_,i.length>=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),this.geometryFunction_(i,t,n)):a===`Polygon`&&(i=this.sketchCoords_[0],i.length>=this.maxPoints_&&(this.freehand_?i.pop():r=!0),i.push(e.slice()),r&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,t,n)),this.createOrUpdateSketchPoint_(e.slice()),this.updateSketchFeatures_(),r?this.finishDrawing():this.sketchFeature_}removeLastPoints_(e){if(!this.sketchFeature_)return;let t=this.sketchFeature_.getGeometry(),n=this.getMap().getView().getProjection(),r=this.mode_;for(let i=0;i<e;++i){let e;if(r===`LineString`||r===`Circle`){if(e=this.sketchCoords_,e.splice(-2,1),e.length>=2){this.finishCoordinate_=e[e.length-2].slice();let t=this.finishCoordinate_.slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}this.geometryFunction_(e,t,n),t.getType()===`Polygon`&&this.sketchLine_&&this.createOrUpdateCustomSketchLine_(t)}else if(r===`Polygon`){e=this.sketchCoords_[0],e.splice(-2,1);let r=this.sketchLine_.getGeometry();if(e.length>=2){let t=e[e.length-2].slice();e[e.length-1]=t,this.createOrUpdateSketchPoint_(t)}r.setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t,n)}if(e.length===1){this.abortDrawing();break}}this.updateSketchFeatures_()}removeLastPoint(){this.removeLastPoints_(1)}finishDrawing(){let e=this.abortDrawing_();if(!e)return null;let t=this.sketchCoords_,n=e.getGeometry(),r=this.getMap().getView().getProjection();return this.mode_===`LineString`?(t.pop(),this.geometryFunction_(t,n,r)):this.mode_===`Polygon`&&(t[0].pop(),this.geometryFunction_(t,n,r),t=n.getCoordinates()),this.type_===`MultiPoint`?e.setGeometry(new zN([t])):this.type_===`MultiLineString`?e.setGeometry(new RN([t])):this.type_===`MultiPolygon`&&e.setGeometry(new VN([t])),this.dispatchEvent(new rW(nW.DRAWEND,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e),e}abortDrawing_(){this.finishCoordinate_=null;let e=this.sketchFeature_;return this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0),this.deactivateTrace_(),e}abortDrawing(){let e=this.abortDrawing_();e&&this.dispatchEvent(new rW(nW.DRAWABORT,e))}appendCoordinates(e){let t=this.mode_,n=!this.sketchFeature_;n&&this.startDrawing_(e[0]);let r;if(t===`LineString`||t===`Circle`)r=this.sketchCoords_;else if(t===`Polygon`)r=this.sketchCoords_&&this.sketchCoords_.length?this.sketchCoords_[0]:[];else return;n&&r.shift(),r.pop();for(let t=0;t<e.length;t++)this.addToDrawing_(e[t]);let i=e[e.length-1];this.sketchFeature_=this.addToDrawing_(i),this.modifyDrawing_(i)}extend(e){let t=e.getGeometry();this.sketchFeature_=e,this.sketchCoords_=t.getCoordinates();let n=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=n.slice(),this.sketchCoords_.push(n.slice()),this.sketchPoint_=new lD(new lj(n)),this.updateSketchFeatures_(),this.dispatchEvent(new rW(nW.DRAWSTART,this.sketchFeature_))}updateSketchFeatures_(){let e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);let t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)}updateState_(){let e=this.getMap(),t=this.getActive();(!e||!t)&&this.abortDrawing(),this.overlay_.setMap(t?e:null)}};function aW(){let e=EP();return function(t,n){return e[t.getGeometry().getType()]}}function oW(e){switch(e){case`Point`:case`MultiPoint`:return`Point`;case`LineString`:case`MultiLineString`:return`LineString`;case`Polygon`:case`MultiPolygon`:return`Polygon`;case`Circle`:return`Circle`;default:throw Error(`Invalid type: `+e)}}const sW=[0,0,0,0],cW=[],lW={MODIFYSTART:`modifystart`,MODIFYEND:`modifyend`};function uW(e,t,n){let r;switch(t){case`LineString`:r=e;break;case`MultiLineString`:case`Polygon`:r=e[n[0]];break;case`MultiPolygon`:r=e[n[1]][n[0]]}return r}var dW=class extends ZE{constructor(e,t,n){super(e),this.features=t,this.mapBrowserEvent=n}},fW=class extends CR{constructor(e){if(super(e),this.handleSourceAdd_=this.handleSourceAdd_.bind(this),this.handleSourceRemove_=this.handleSourceRemove_.bind(this),this.handleExternalCollectionAdd_=this.handleExternalCollectionAdd_.bind(this),this.handleExternalCollectionRemove_=this.handleExternalCollectionRemove_.bind(this),this.handleFeatureChange_=this.handleFeatureChange_.bind(this),this.on,this.once,this.un,this.condition_=e.condition?e.condition:SR,this.defaultDeleteCondition_=function(e){return lR(e)&&gR(e)},this.deleteCondition_=e.deleteCondition?e.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:pR,this.vertexFeature_=null,this.vertexSegments_=null,this.lastCoordinate_=[0,0],this.ignoreNextSingleClick_=!1,this.featuresBeingModified_=null,this.rBush_=new cP,this.pixelTolerance_=e.pixelTolerance===void 0?10:e.pixelTolerance,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new RL({source:new pP({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:gW(),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_.bind(this),LineString:this.writeLineStringGeometry_.bind(this),LinearRing:this.writeLineStringGeometry_.bind(this),Polygon:this.writePolygonGeometry_.bind(this),MultiPoint:this.writeMultiPointGeometry_.bind(this),MultiLineString:this.writeMultiLineStringGeometry_.bind(this),MultiPolygon:this.writeMultiPolygonGeometry_.bind(this),Circle:this.writeCircleGeometry_.bind(this),GeometryCollection:this.writeGeometryCollectionGeometry_.bind(this)},this.source_=null,this.traceSource_=e.traceSource||e.source||null,this.traceCondition_,this.setTrace(e.trace||!1),this.traceState_={active:!1},this.traceSegments_=null,this.hitDetection_=null,this.filterFunctionWasSupplied_=e.filter!=null,this.filter_=e.filter?e.filter:()=>!0,this.coordinatesEqual_=e.sharedVerticesEqual?e.sharedVerticesEqual:EO,!(e.features||e.source))throw Error(`The modify interaction requires features collection or a source`);let t;e.features?(t=e.features.getArray(),e.features.addEventListener(kE.ADD,this.handleExternalCollectionAdd_),e.features.addEventListener(kE.REMOVE,this.handleExternalCollectionRemove_),this.featuresCollection_=e.features):e.source&&(t=e.source.getFeatures(),e.source.addEventListener(dP.ADDFEATURE,this.handleSourceAdd_),e.source.addEventListener(dP.REMOVEFEATURE,this.handleSourceRemove_),this.source_=e.source),t.forEach(e=>{e.addEventListener(IE.CHANGE,this.handleFeatureChange_),this.filterFunctionWasSupplied_&&e.addEventListener(AE.PROPERTYCHANGE,this.handleFeatureChange_)}),e.hitDetection&&(this.hitDetection_=e.hitDetection),this.features_=[],t.filter(this.filter_).forEach(e=>this.addFeature_(e)),this.lastPointerEvent_=null,this.delta_=[0,0],this.snapToPointer_=e.snapToPointer===void 0?!this.hitDetection_:e.snapToPointer}setTrace(e){let t;t=e?e===!0?pR:e:hR,this.traceCondition_=t}addFeature_(e){this.features_.push(e);let t=e.getGeometry();if(t){let n=this.SEGMENT_WRITERS_[t.getType()];n&&n(e,t)}let n=this.getMap();n&&n.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastCoordinate_)}willModifyFeatures_(e,t){if(!this.featuresBeingModified_){this.featuresBeingModified_=new sD;let n=this.featuresBeingModified_.getArray();for(let e=0,r=t.length;e<r;++e){let r=t[e].feature;r&&!n.includes(r)&&this.featuresBeingModified_.push(r)}this.featuresBeingModified_.getLength()===0?this.featuresBeingModified_=null:this.dispatchEvent(new dW(lW.MODIFYSTART,this.featuresBeingModified_,e))}}removeFeature_(e){let t=this.features_.indexOf(e);this.features_.splice(t,1),this.removeFeatureSegmentData_(e),this.vertexFeature_&&this.features_.length===0&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)}removeFeatureSegmentData_(e){let t=this.rBush_,n=[];t.forEach(function(t){e===t.feature&&n.push(t)});for(let e=n.length-1;e>=0;--e){let r=n[e];for(let e=this.dragSegments_.length-1;e>=0;--e)this.dragSegments_[e][0]===r&&this.dragSegments_.splice(e,1);t.remove(r)}}setActive(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),super.setActive(e)}setMap(e){this.overlay_.setMap(e),super.setMap(e)}getOverlay(){return this.overlay_}handleSourceAdd_(e){let t=e.feature;t&&this.externalAddFeatureHandler_(t)}handleSourceRemove_(e){let t=e.feature;t&&this.externalRemoveFeatureHandler_(t)}handleExternalCollectionAdd_(e){let t=e.element;t&&this.externalAddFeatureHandler_(t)}handleExternalCollectionRemove_(e){let t=e.element;t&&this.externalRemoveFeatureHandler_(t)}externalAddFeatureHandler_(e){e.addEventListener(IE.CHANGE,this.handleFeatureChange_),this.filterFunctionWasSupplied_&&e.addEventListener(AE.PROPERTYCHANGE,this.handleFeatureChange_),this.filter_(e)&&this.addFeature_(e)}externalRemoveFeatureHandler_(e){e.removeEventListener(IE.CHANGE,this.handleFeatureChange_),this.filterFunctionWasSupplied_&&e.removeEventListener(AE.PROPERTYCHANGE,this.handleFeatureChange_),this.removeFeature_(e)}handleFeatureChange_(e){if(!this.changingFeature_){let t=e.target;this.removeFeature_(t),this.filter_(t)&&this.addFeature_(t)}}writePointGeometry_(e,t){let n=t.getCoordinates(),r={feature:e,geometry:t,segment:[n,n]};this.rBush_.insert(t.getExtent(),r)}writeMultiPointGeometry_(e,t){let n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){let i=n[r],a={feature:e,geometry:t,depth:[r],index:r,segment:[i,i]};this.rBush_.insert(t.getExtent(),a)}}writeLineStringGeometry_(e,t){let n=t.getCoordinates();for(let r=0,i=n.length-1;r<i;++r){let i=n.slice(r,r+2),a={feature:e,geometry:t,index:r,segment:i};this.rBush_.insert(fD(i),a)}}writeMultiLineStringGeometry_(e,t){let n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){let i=n[r];for(let n=0,a=i.length-1;n<a;++n){let a=i.slice(n,n+2),o={feature:e,geometry:t,depth:[r],index:n,segment:a};this.rBush_.insert(fD(a),o)}}}writePolygonGeometry_(e,t){let n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){let i=n[r];for(let n=0,a=i.length-1;n<a;++n){let a=i.slice(n,n+2),o={feature:e,geometry:t,depth:[r],index:n,segment:a};this.rBush_.insert(fD(a),o)}}}writeMultiPolygonGeometry_(e,t){let n=t.getCoordinates();for(let r=0,i=n.length;r<i;++r){let i=n[r];for(let n=0,a=i.length;n<a;++n){let a=i[n];for(let i=0,o=a.length-1;i<o;++i){let o=a.slice(i,i+2),s={feature:e,geometry:t,depth:[n,r],index:i,segment:o};this.rBush_.insert(fD(o),s)}}}}writeCircleGeometry_(e,t){let n=t.getCenter(),r={feature:e,geometry:t,index:0,segment:[n,n]},i={feature:e,geometry:t,index:1,segment:[n,n]},a=[r,i];r.featureSegments=a,i.featureSegments=a,this.rBush_.insert(wD(n),r);let o=t,s=Kk();if(s&&this.getMap()){let e=this.getMap().getView().getProjection();o=o.clone().transform(s,e),o=xj(o).transform(e,s)}this.rBush_.insert(o.getExtent(),i)}writeGeometryCollectionGeometry_(e,t){let n=t.getGeometriesArray();for(let t=0;t<n.length;++t){let r=n[t],i=this.SEGMENT_WRITERS_[r.getType()];i(e,r)}}createOrUpdateVertexFeature_(e,t,n,r){let i=this.vertexFeature_;return i?i.getGeometry().setCoordinates(e):(i=new lD(new lj(e)),this.vertexFeature_=i,this.overlay_.getSource().addFeature(i)),i.set(`features`,t),i.set(`geometries`,n),i.set(`existing`,r),i}handleEvent(e){if(!e.originalEvent)return!0;this.lastPointerEvent_=e;let t;return!e.map.getView().getInteracting()&&e.type==WL.POINTERMOVE&&!this.handlingDownUpSequence&&this.handlePointerMove_(e),this.vertexFeature_&&this.deleteCondition_(e)&&(t=e.type!=WL.SINGLECLICK||!this.ignoreNextSingleClick_?this.removePoint():!0),e.type==WL.SINGLECLICK&&(this.ignoreNextSingleClick_=!1),super.handleEvent(e)&&!t}findInsertVerticesAndUpdateDragSegments_(e){if(this.handlePointerAtPixel_(e),this.dragSegments_.length=0,this.featuresBeingModified_=null,!this.vertexFeature_)return;let t=this.getMap().getView().getProjection(),n=[],r=this.vertexFeature_.getGeometry().getCoordinates(),i=fD([r]),a=this.rBush_.getInExtent(i),o={};a.sort(pW);for(let i=0,s=a.length;i<s;++i){let s=a[i],c=s.segment,l=X(s.geometry),u=s.depth;if(u&&(l+=`-`+u.join(`-`)),o[l]||(o[l]=[,,]),s.geometry.getType()===`Circle`&&s.index===1){let n=hW(e,s,t);this.coordinatesEqual_(n,r)&&!o[l][0]&&(this.dragSegments_.push([s,0]),o[l][0]=s);continue}if(this.coordinatesEqual_(c[0],r)&&!o[l][0]){this.dragSegments_.push([s,0]),o[l][0]=s;continue}if(this.coordinatesEqual_(c[1],r)&&!o[l][1]){if(o[l][0]&&o[l][0].index===0){let e=s.geometry.getCoordinates();switch(s.geometry.getType()){case`LineString`:case`MultiLineString`:continue;case`MultiPolygon`:e=e[u[1]];case`Polygon`:if(s.index!==e[u[0]].length-2)continue}}this.dragSegments_.push([s,1]),o[l][1]=s;continue}X(c)in this.vertexSegments_&&!o[l][0]&&!o[l][1]&&n.push(s)}return n}deactivateTrace_(){this.traceState_={active:!1}}tracePassesVertex_(e,t){if(e===t)return!1;if(e<t){let n=Math.ceil(e),r=Math.floor(t);return r===t&&--r,n<=r}let n=Math.floor(e),r=Math.ceil(t);return r===t&&(r+=1),n>=r}updateTrace_(e){let t=this.traceState_;if(!t.active||t.targetIndex===-1&&AO(e.map.getPixelFromCoordinate(t.startCoord),e.pixel)<this.pixelTolerance_)return;let n=JU(e.coordinate,t,e.map,this.pixelTolerance_);if(t.targetIndex===-1&&Math.sqrt(n.closestTargetDistance)/e.map.getView().getResolution()>this.pixelTolerance_)return;let r=!0;if(t.targetIndex===-1){let e=t.targets[n.index];r=this.tracePassesVertex_(e.startIndex,n.endIndex)}if(r){if(t.targetIndex!==n.index){if(t.targetIndex!==-1){let e=t.targets[t.targetIndex];this.removeTracedCoordinates_(e.startIndex,e.endIndex)}let e=t.targets[n.index];this.addTracedCoordinates_(e,e.startIndex,n.endIndex)}else{let e=t.targets[t.targetIndex];this.addOrRemoveTracedCoordinates_(e,n.endIndex)}t.targetIndex=n.index,t.targets[t.targetIndex].endIndex=n.endIndex}let i=t.targets[n.index],a=KU(i.coordinates,n.endIndex);for(let e of this.dragSegments_)this.updateGeometry_(a.slice(),e);return a}getTraceCandidates_(e){let t=this.getMap(),n=this.pixelTolerance_,r=fD([t.getCoordinateFromPixel([e.pixel[0]-n,e.pixel[1]+n]),t.getCoordinateFromPixel([e.pixel[0]+n,e.pixel[1]-n])]);return this.traceSource_.getFeaturesInExtent(r)}toggleTraceState_(e){if(!this.traceSource_||!this.traceCondition_(e))return;if(this.traceState_.active){this.deactivateTrace_(),this.traceSegments_=null;return}let t=this.getTraceCandidates_(e);if(t.length===0)return;let n=YU(e.coordinate,t);n.length&&(this.traceState_={active:!0,startCoord:e.coordinate.slice(),targets:n,targetIndex:-1})}addOrRemoveTracedCoordinates_(e,t){let n=e.startIndex<=e.endIndex;n===e.startIndex<=t?n&&t>e.endIndex||!n&&t<e.endIndex?this.addTracedCoordinates_(e,e.endIndex,t):(n&&t<e.endIndex||!n&&t>e.endIndex)&&this.removeTracedCoordinates_(t,e.endIndex):(this.removeTracedCoordinates_(e.startIndex,e.endIndex),this.addTracedCoordinates_(e,e.startIndex,t))}shiftTracedSegmentIndices_(e,t,n){for(let r of this.dragSegments_){let i=r[0];i!==e&&i.geometry===e.geometry&&(i.depth===void 0||e.depth===void 0||WE(i.depth,e.depth))&&i.index>=t&&(i.index+=n)}}removeTracedCoordinates_(e,t){if(e===t)return;let n=0;if(e<t){let r=Math.ceil(e),i=Math.floor(t);i===t&&--i,n=i-r+1}else{let r=Math.floor(e),i=Math.ceil(t);i===t&&(i+=1),n=r-i+1}if(n>0)for(let e of this.traceSegments_){let t=e[0],r=t.geometry,i=e[1],a=e[0].index+1;i===1&&(a-=n);let o=r.getCoordinates();uW(o,r.getType(),t.depth).splice(a,n),this.setGeometryCoordinates_(r,o),this.shiftTracedSegmentIndices_(t,a+n,-n),i===1&&(t.index-=n)}}addTracedCoordinates_(e,t,n){if(t===n)return;let r=[];if(t<n){let i=Math.ceil(t),a=Math.floor(n);a===n&&--a;for(let t=i;t<=a;++t)r.push(GU(e.coordinates,t))}else{let i=Math.floor(t),a=Math.ceil(n);a===n&&(a+=1);for(let t=i;t>=a;--t)r.push(GU(e.coordinates,t))}if(r.length)for(let e of this.traceSegments_){let t=e[0],n=t.geometry,i=e[1],a=t.index+1;i===0&&r.reverse();let o=n.getCoordinates();uW(o,n.getType(),t.depth).splice(a,0,...r),this.setGeometryCoordinates_(n,o),this.shiftTracedSegmentIndices_(t,a,r.length),i===1&&(t.index+=r.length)}}updateGeometry_(e,t){let n=t[0],r=n.depth,i,a=n.segment,o=n.geometry,s=t[1],c=o.getStride();for(let t=2;t<c;++t)e[t]=a[s][t];switch(e.length=c,o.getType()){case`Point`:i=e,a[0]=e,a[1]=e;break;case`MultiPoint`:i=o.getCoordinates(),i[n.index]=e,a[0]=e,a[1]=e;break;case`LineString`:i=o.getCoordinates(),i[n.index+s]=e,a[s]=e;break;case`MultiLineString`:i=o.getCoordinates(),i[r[0]][n.index+s]=e,a[s]=e;break;case`Polygon`:{i=o.getCoordinates();let t=i[r[0]],c=n.index+s;t[c][0]===e[0]&&t[c][1]===e[1]?i=null:(t[c]=e,c===0?t[t.length-1]=e:c===t.length-1&&(t[0]=e)),a[s]=e;break}case`MultiPolygon`:{i=o.getCoordinates();let t=i[r[1]][r[0]],c=n.index+s;t[c][0]===e[0]&&t[c][1]===e[1]?i=null:(t[c]=e,c===0?t[t.length-1]=e:c===t.length-1&&(t[0]=e)),a[s]=e;break}case`Circle`:let t=o;if(a[0]=e,a[1]=e,n.index===0)this.changingFeature_=!0,t.setCenter(e),this.changingFeature_=!1;else{this.changingFeature_=!0;let n=this.getMap().getView().getProjection(),r=AO(Jk(t.getCenter(),n),Jk(e,n)),i=Kk();if(i){let e=t.clone().transform(i,n);e.setRadius(r),r=e.transform(n,i).getRadius()}t.setRadius(r),this.changingFeature_=!1}}i&&this.setGeometryCoordinates_(o,i)}handleDragEvent(e){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(e,this.dragSegments_.map(([e])=>e));let t=[e.coordinate[0]+this.delta_[0],e.coordinate[1]+this.delta_[1]],n=[],r=[],i=this.traceState_.active&&!this.traceSegments_?this.traceState_.startCoord:null;if(i){this.traceSegments_=[];for(let t of this.dragSegments_){let n=t[0];AO(wO(i,n.segment),i)/e.map.getView().getResolution()<1&&this.traceSegments_.push(t)}this.traceSegments_.length>1&&(this.deactivateTrace_(),this.traceSegments_=null)}for(let e=0,i=this.dragSegments_.length;e<i;++e){let i=this.dragSegments_[e],a=i[0],o=a.feature;n.includes(o)||n.push(o);let s=a.geometry;r.includes(s)||r.push(s),this.updateGeometry_(t,i)}let a=this.updateTrace_(e);this.createOrUpdateVertexFeature_(a||t,n,r,!0)}handleDownEvent(e){if(!this.condition_(e))return!1;let t=e.coordinate,n=this.findInsertVerticesAndUpdateDragSegments_(t);if(n?.length&&this.insertVertexCondition_(e)&&(this.willModifyFeatures_(e,n),this.vertexFeature_)){let e=this.vertexFeature_.getGeometry().getCoordinates();for(let t=n.length-1;t>=0;--t)this.insertVertex_(n[t],e);this.ignoreNextSingleClick_=!0}return!!this.vertexFeature_}handleUpEvent(e){let t=this.traceState_.active?new Set:null;for(let n=this.dragSegments_.length-1;n>=0;--n){let r=this.dragSegments_[n][0];t&&t.add(r.feature);let i=r.geometry;if(i.getType()===`Circle`){let t=i,n=t.getCenter(),a=r.featureSegments[0],o=r.featureSegments[1];a.segment[0]=n,a.segment[1]=n,o.segment[0]=n,o.segment[1]=n,this.rBush_.update(wD(n),a);let s=t,c=Kk();if(c){let t=e.map.getView().getProjection();s=s.clone().transform(c,t),s=xj(s).transform(t,c)}this.rBush_.update(s.getExtent(),o)}else this.rBush_.update(fD(r.segment),r)}if(t)for(let e of t)this.removeFeature_(e),this.filter_(e)&&this.addFeature_(e);return this.featuresBeingModified_&&=(this.toggleTraceState_(e),this.dispatchEvent(new dW(lW.MODIFYEND,this.featuresBeingModified_,e)),null),!1}handlePointerMove_(e){this.lastCoordinate_=e.coordinate,this.handlePointerAtPixel_(this.lastCoordinate_)}handlePointerAtPixel_(e){let t=this.getMap(),n=t.getPixelFromCoordinate(e),r=t.getView().getProjection(),i=function(t,n){return mW(e,t,r)-mW(e,n,r)},a,o;if(this.hitDetection_){let e=typeof this.hitDetection_==`object`?e=>e===this.hitDetection_:void 0;t.forEachFeatureAtPixel(n,(e,t,n)=>{n&&n.getType()===`Point`&&(n=new lj(qk(n.getCoordinates(),r)));let i=n||e.getGeometry();if(i&&i.getType()===`Point`&&e instanceof lD&&this.features_.includes(e)){o=i;let t=e.getGeometry().getFlatCoordinates().slice(0,2);a=[{feature:e,geometry:o,segment:[t,t]}]}return!0},{layerFilter:e})}if(!a){let n=Yk(mD(Xk(wD(e,sW),r),t.getView().getResolution()*this.pixelTolerance_,sW),r);a=this.rBush_.getInExtent(n)}if(a&&a.length>0){let s=a.sort(i)[0],c=s.segment,l=hW(e,s,r),u=t.getPixelFromCoordinate(l),d=AO(n,u);if(o||d<=this.pixelTolerance_){let n={};if(n[X(c)]=!0,this.snapToPointer_||(this.delta_[0]=l[0]-e[0],this.delta_[1]=l[1]-e[1]),s.geometry.getType()===`Circle`&&s.index===1)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(l,[s.feature],[s.geometry],this.snappedToVertex_);else{let e=t.getPixelFromCoordinate(c[0]),r=t.getPixelFromCoordinate(c[1]),i=kO(u,e),o=kO(u,r);if(d=Math.sqrt(Math.min(i,o)),this.snappedToVertex_=d<=this.pixelTolerance_,!this.snappedToVertex_&&!this.insertVertexCondition_(this.lastPointerEvent_)){this.vertexFeature_&&=(this.overlay_.getSource().removeFeature(this.vertexFeature_),null);return}this.snappedToVertex_&&(l=i>o?c[1]:c[0]),this.createOrUpdateVertexFeature_(l,[s.feature],[s.geometry],this.snappedToVertex_);let f={};f[X(s.geometry)]=!0;for(let e=1,t=a.length;e<t;++e){let t=a[e].segment;if(this.coordinatesEqual_(c[0],t[0])&&this.coordinatesEqual_(c[1],t[1])||this.coordinatesEqual_(c[0],t[1])&&this.coordinatesEqual_(c[1],t[0])){let r=X(a[e].geometry);r in f||(f[r]=!0,n[X(t)]=!0)}else break}}this.vertexSegments_=n;return}}this.vertexFeature_&&=(this.overlay_.getSource().removeFeature(this.vertexFeature_),null)}insertVertex_(e,t){let n=e.segment,r=e.feature,i=e.geometry,a=e.depth,o=e.index,s;for(;t.length<i.getStride();)t.push(0);switch(i.getType()){case`MultiLineString`:s=i.getCoordinates(),s[a[0]].splice(o+1,0,t);break;case`Polygon`:s=i.getCoordinates(),s[a[0]].splice(o+1,0,t);break;case`MultiPolygon`:s=i.getCoordinates(),s[a[1]][a[0]].splice(o+1,0,t);break;case`LineString`:s=i.getCoordinates(),s.splice(o+1,0,t);break;default:return!1}this.setGeometryCoordinates_(i,s);let c=this.rBush_;c.remove(e),this.updateSegmentIndices_(i,o,a,1);let l={segment:[n[0],t],feature:r,geometry:i,depth:a,index:o};c.insert(fD(l.segment),l),this.dragSegments_.push([l,1]);let u={segment:[t,n[1]],feature:r,geometry:i,depth:a,index:o+1};return c.insert(fD(u.segment),u),this.dragSegments_.push([u,0]),!0}updatePointer_(e){return e&&this.findInsertVerticesAndUpdateDragSegments_(e),this.vertexFeature_?.getGeometry().getCoordinates()}getPoint(){let e=this.vertexFeature_?.getGeometry().getCoordinates();return e?qk(e,this.getMap().getView().getProjection()):null}canRemovePoint(){if(!this.vertexFeature_||this.vertexFeature_.get(`geometries`).every(e=>e.getType()===`Circle`||e.getType().endsWith(`Point`)))return!1;let e=this.vertexFeature_.getGeometry().getCoordinates();return this.rBush_.getInExtent(fD([e])).some(({segment:t})=>this.coordinatesEqual_(t[0],e)||this.coordinatesEqual_(t[1],e))}removePoint(e){if(e&&(e=Jk(e,this.getMap().getView().getProjection()),this.updatePointer_(e)),!this.lastPointerEvent_||this.lastPointerEvent_&&this.lastPointerEvent_.type!=WL.POINTERDRAG){let e=this.lastPointerEvent_;this.willModifyFeatures_(e,this.dragSegments_.map(([e])=>e));let t=this.removeVertex_();return this.featuresBeingModified_&&this.dispatchEvent(new dW(lW.MODIFYEND,this.featuresBeingModified_,e)),this.featuresBeingModified_=null,t}return!1}removeVertex_(){let e=this.dragSegments_,t={},n=!1,r,i,a,o,s,c,l,u,d,f,p;for(s=e.length-1;s>=0;--s)a=e[s],f=a[0],p=X(f.feature),f.depth&&(p+=`-`+f.depth.join(`-`)),p in t||(t[p]={}),a[1]===0?(t[p].right=f,t[p].index=f.index):a[1]==1&&(t[p].left=f,t[p].index=f.index+1);for(p in t){switch(d=t[p].right,l=t[p].left,c=t[p].index,u=c-1,f=l===void 0?d:l,u<0&&(u=0),o=f.geometry,i=o.getCoordinates(),r=i,n=!1,o.getType()){case`MultiLineString`:i[f.depth[0]].length>2&&(i[f.depth[0]].splice(c,1),n=!0);break;case`LineString`:i.length>2&&(i.splice(c,1),n=!0);break;case`MultiPolygon`:r=r[f.depth[1]];case`Polygon`:r=r[f.depth[0]],r.length>4&&(c==r.length-1&&(c=0),r.splice(c,1),n=!0,c===0&&(r.pop(),r.push(r[0]),u=r.length-1))}if(n){this.setGeometryCoordinates_(o,i);let t=[];if(l!==void 0&&(this.rBush_.remove(l),t.push(l.segment[0])),d!==void 0&&(this.rBush_.remove(d),t.push(d.segment[1])),l!==void 0&&d!==void 0){let e={depth:f.depth,feature:f.feature,geometry:f.geometry,index:u,segment:t};this.rBush_.insert(fD(e.segment),e)}this.updateSegmentIndices_(o,c,f.depth,-1),this.vertexFeature_&&=(this.overlay_.getSource().removeFeature(this.vertexFeature_),null),e.length=0}}return n}canInsertPoint(){if(!this.vertexFeature_||this.vertexFeature_.get(`geometries`).every(e=>e.getType()===`Circle`||e.getType().endsWith(`Point`)))return!1;let e=this.vertexFeature_.getGeometry().getCoordinates();return this.rBush_.getInExtent(fD([e])).some(({segment:t})=>!(this.coordinatesEqual_(t[0],e)||this.coordinatesEqual_(t[1],e)))}insertPoint(e){let t=e?Jk(e,this.getMap().getView().getProjection()):this.vertexFeature_?.getGeometry().getCoordinates();return t?this.findInsertVerticesAndUpdateDragSegments_(t).reduce((e,n)=>e||this.insertVertex_(n,t),!1):!1}setGeometryCoordinates_(e,t){this.changingFeature_=!0,e.setCoordinates(t),this.changingFeature_=!1}updateSegmentIndices_(e,t,n,r){this.rBush_.forEachInExtent(e.getExtent(),function(i){i.geometry===e&&(n===void 0||i.depth===void 0||WE(i.depth,n))&&i.index>t&&(i.index+=r)})}disposeInternal(){if(super.disposeInternal(),this.featuresCollection_){this.featuresCollection_.removeEventListener(kE.ADD,this.handleExternalCollectionAdd_),this.featuresCollection_.removeEventListener(kE.REMOVE,this.handleExternalCollectionRemove_);for(let e of this.featuresCollection_.getArray())e.removeEventListener(IE.CHANGE,this.handleFeatureChange_),this.filterFunctionWasSupplied_&&e.removeEventListener(AE.PROPERTYCHANGE,this.handleFeatureChange_)}else if(this.source_){this.source_.removeEventListener(dP.ADDFEATURE,this.handleSourceAdd_),this.source_.removeEventListener(dP.REMOVEFEATURE,this.handleSourceRemove_);for(let e of this.source_.getFeatures())e.removeEventListener(IE.CHANGE,this.handleFeatureChange_),this.filterFunctionWasSupplied_&&e.removeEventListener(AE.PROPERTYCHANGE,this.handleFeatureChange_)}}};function pW(e,t){return e.index-t.index}function mW(e,t,n){let r=t.geometry;if(r.getType()===`Circle`){let i=r;if(t.index===1){let t=Kk();t&&(i=i.clone().transform(t,n));let r=kO(i.getCenter(),Jk(e,n)),a=Math.sqrt(r)-i.getRadius();return a*a}}let i=Jk(e,n);return cW[0]=Jk(t.segment[0],n),cW[1]=Jk(t.segment[1],n),jO(i,cW)}function hW(e,t,n){let r=t.geometry;if(r.getType()===`Circle`&&t.index===1){let t=r,i=Kk();return i&&(t=t.clone().transform(i,n)),qk(t.getClosestPoint(Jk(e,n)),n)}let i=Jk(e,n);return cW[0]=Jk(t.segment[0],n),cW[1]=Jk(t.segment[1],n),qk(wO(i,cW),n)}function gW(){let e=EP();return function(t,n){return e.Point}}const _W={SNAP:`snap`,UNSNAP:`unsnap`};var vW=class extends ZE{constructor(e,t){super(e),this.vertex=t.vertex,this.vertexPixel=t.vertexPixel,this.feature=t.feature,this.segment=t.segment}};const yW={Circle(e,t){let n=e,r=Kk();r&&(n=n.clone().transform(r,t));let i=xj(n);return r&&i.transform(t,r),yW.Polygon(i)},GeometryCollection(e,t){let n=[],r=e.getGeometriesArray();for(let e=0;e<r.length;++e){let i=this[r[e].getType()];i&&n.push(i(r[e],t))}return n.flat()},LineString(e){let t=[],n=e.getFlatCoordinates(),r=e.getStride();for(let e=0,i=n.length-r;e<i;e+=r)t.push([n.slice(e,e+2),n.slice(e+r,e+r+2)]);return t},MultiLineString(e){let t=[],n=e.getFlatCoordinates(),r=e.getStride(),i=e.getEnds(),a=0;for(let e=0,o=i.length;e<o;++e){let o=i[e];for(let e=a,i=o-r;e<i;e+=r)t.push([n.slice(e,e+2),n.slice(e+r,e+r+2)]);a=o}return t},MultiPoint(e){let t=[],n=e.getFlatCoordinates(),r=e.getStride();for(let e=0,i=n.length;e<i;e+=r)t.push([n.slice(e,e+2)]);return t},MultiPolygon(e){let t=[],n=e.getFlatCoordinates(),r=e.getStride(),i=e.getEndss(),a=0;for(let e=0,o=i.length;e<o;++e){let o=i[e];for(let e=0,i=o.length;e<i;++e){let i=o[e];for(let e=a,o=i-r;e<o;e+=r)t.push([n.slice(e,e+2),n.slice(e+r,e+r+2)]);a=i}}return t},Point(e){return[[e.getFlatCoordinates().slice(0,2)]]},Polygon(e){let t=[],n=e.getFlatCoordinates(),r=e.getStride(),i=e.getEnds(),a=0;for(let e=0,o=i.length;e<o;++e){let o=i[e];for(let e=a,i=o-r;e<i;e+=r)t.push([n.slice(e,e+2),n.slice(e+r,e+r+2)]);a=o}return t}};function bW(e){return e.feature?e.feature:e.element?e.element:null}const xW=[],SW=[],CW=[];var wW=class extends CR{constructor(e){e||={},super({handleDownEvent:KE,stopDown:qE}),this.on,this.once,this.un,this.source_=e.source?e.source:null,this.vertex_=e.vertex===void 0||e.vertex,this.edge_=e.edge===void 0||e.edge,this.intersection_=e.intersection!==void 0&&e.intersection,this.features_=e.features?e.features:null,this.featuresListenerKeys_=[],this.featureChangeListenerKeys_={},this.indexedFeaturesExtents_={},this.pendingFeatures_={},this.pixelTolerance_=e.pixelTolerance===void 0?10:e.pixelTolerance,this.rBush_=new cP,this.snapped_=null,this.segmenters_=Object.assign({},yW,e.segmenters)}addFeature(e,t){t=t===void 0||t;let n=X(e),r=e.getGeometry();if(r){let t=this.segmenters_[r.getType()];if(t){this.indexedFeaturesExtents_[n]=r.getExtent(xD());let i=t.call(this.segmenters_,r,this.getMap().getView().getProjection()),a=i.length;for(let t=0;t<a;++t){let n=i[t];SW[t]=fD(n),CW[t]={feature:e,segment:n}}if(this.intersection_)for(let t=0,n=i.length;t<n;++t){let n=i[t];if(n.length===1)continue;let r=SW[t];for(let o=0,s=t-1;o<s;++o){let t=i[o];if(t.length===1||!KD(r,SW[o]))continue;let s=XA(n,t);if(!s)continue;let c=[s];SW[a]=fD(c),CW[a++]={feature:e,intersectionFeature:e,segment:c}}let o=this.rBush_.getInExtent(SW[t]);for(let t=0,r=o.length;t<r;++t){let r=o[t].segment;if(r.length===1)continue;let i=XA(n,r);if(!i)continue;let s=[i];SW[a]=fD(s),CW[a++]={feature:e,intersectionFeature:o[t].feature,segment:s}}}a===1?this.rBush_.insert(SW[0],CW[0]):(SW.length=a,CW.length=a,this.rBush_.load(SW,CW))}}t&&(this.featureChangeListenerKeys_[n]&&FE(this.featureChangeListenerKeys_[n]),this.featureChangeListenerKeys_[n]=NE(e,IE.CHANGE,this.handleFeatureChange_,this))}getFeatures_(){let e;return this.features_?e=this.features_:this.source_&&(e=this.source_.getFeatures()),e}areSnapDataEqual_(e,t){return e.segment===t.segment&&e.feature===t.feature}handleEvent(e){let t=this.snapTo(e.pixel,e.coordinate,e.map);return t?(e.coordinate=t.vertex.slice(0,2),e.pixel=t.vertexPixel,this.snapped_&&!this.areSnapDataEqual_(this.snapped_,t)&&this.dispatchEvent(new vW(_W.UNSNAP,this.snapped_)),this.snapped_={vertex:e.coordinate,vertexPixel:e.pixel,feature:t.feature,segment:t.segment},this.dispatchEvent(new vW(_W.SNAP,this.snapped_))):this.snapped_&&=(this.dispatchEvent(new vW(_W.UNSNAP,this.snapped_)),null),super.handleEvent(e)}handleFeatureAdd_(e){let t=bW(e);t&&this.addFeature(t)}handleFeatureRemove_(e){let t=bW(e);t&&(this.removeFeature(t),delete this.pendingFeatures_[X(t)])}handleFeatureChange_(e){let t=e.target;this.handlingDownUpSequence?this.pendingFeatures_[X(t)]=t:this.updateFeature_(t)}handleUpEvent(e){let t=Object.values(this.pendingFeatures_);if(t.length){for(let e of t)this.updateFeature_(e);jE(this.pendingFeatures_)}return!1}removeFeature(e,t){let n=t===void 0||t,r=X(e),i=this.indexedFeaturesExtents_[r];if(i){let t=this.rBush_;t.getInExtent(i).forEach(n=>{(e===n.feature||e===n.intersectionFeature)&&t.remove(n)})}n&&(FE(this.featureChangeListenerKeys_[r]),delete this.featureChangeListenerKeys_[r])}setMap(e){let t=this.getMap(),n=this.featuresListenerKeys_,r=this.getFeatures_();if(Array.isArray(r)||(r=r.getArray()),t&&(n.forEach(FE),n.length=0,this.rBush_.clear(),Object.values(this.featureChangeListenerKeys_).forEach(FE),this.featureChangeListenerKeys_={}),super.setMap(e),e){this.features_?n.push(NE(this.features_,kE.ADD,this.handleFeatureAdd_,this),NE(this.features_,kE.REMOVE,this.handleFeatureRemove_,this)):this.source_&&n.push(NE(this.source_,dP.ADDFEATURE,this.handleFeatureAdd_,this),NE(this.source_,dP.REMOVEFEATURE,this.handleFeatureRemove_,this));for(let e of r)this.addFeature(e)}}snapTo(e,t,n){let r=n.getView().getProjection(),i=Jk(t,r),a=Yk(mD(fD([i]),n.getView().getResolution()*this.pixelTolerance_),r),o=this.rBush_.getInExtent(a),s=o.length;if(s===0)return null;let c,l=1/0,u,d=null,f=this.pixelTolerance_*this.pixelTolerance_,p=()=>{if(!c)return null;let t=n.getPixelFromCoordinate(c);return kO(e,t)>f?null:{vertex:c,vertexPixel:[Math.round(t[0]),Math.round(t[1])],feature:u,segment:d}};if(this.vertex_||this.intersection_){for(let e=0;e<s;++e){let t=o[e];if(t.feature.getGeometry().getType()!==`Circle`)for(let e of t.segment){let n=kO(i,Jk(e,r));n<l&&(this.intersection_&&t.intersectionFeature||this.vertex_&&!t.intersectionFeature)&&(c=e,l=n,u=t.feature)}}let e=p();if(e)return e}if(this.edge_){for(let e=0;e<s;++e){let t=null,n=o[e];if(n.feature.getGeometry().getType()===`Circle`){let e=n.feature.getGeometry(),a=Kk();a&&(e=e.clone().transform(a,r)),t=CO(i,e)}else{let[e,a]=n.segment;a&&(xW[0]=Jk(e,r),xW[1]=Jk(a,r),t=wO(i,xW))}if(t){let e=kO(i,t);e<l&&(c=qk(t,r),d=n.feature.getGeometry().getType()===`Circle`?null:n.segment,l=e,u=n.feature)}}let e=p();if(e)return e}return null}updateFeature_(e){this.removeFeature(e,!1),this.addFeature(e,!1)}},TW=class{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=lD,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let n=t.dataProjection?Nk(t.dataProjection):this.readProjection(e);t.extent&&n&&n.getUnits()===`tile-pixels`&&(n=Nk(n),n.setWorldExtent(t.extent)),t={dataProjection:n,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return tD()}readFeature(e,t){return tD()}readFeatures(e,t){return tD()}readGeometry(e,t){return tD()}readProjection(e){return tD()}writeFeature(e,t){return tD()}writeFeatures(e,t){return tD()}writeGeometry(e,t){return tD()}};function EW(e,t,n){let r=n?Nk(n.featureProjection):null,i=n?Nk(n.dataProjection):null,a=e;if(r&&i&&!Vk(r,i)){t&&(a=e.clone());let n=t?r:i,o=t?i:r;n.getUnits()===`tile-pixels`?a.transform(n,o):a.applyTransform(Wk(n,o))}if(t&&n&&n.decimals!==void 0){let t=10**n.decimals;a===e&&(a=e.clone()),a.applyTransform(function(e){for(let n=0,r=e.length;n<r;++n)e[n]=Math.round(e[n]*t)/t;return e})}return a}const DW={Point:lj,LineString:iM,Polygon:yj,MultiPoint:zN,MultiLineString:RN,MultiPolygon:VN};function OW(e,t,n){return Array.isArray(t[0])?(hj(e,0,t,n)||(e=e.slice(),_j(e,0,t,n)),e):(mj(e,0,t,n)||(e=e.slice(),gj(e,0,t,n)),e)}function kW(e,t){let n=e.geometry;if(!n)return[];if(Array.isArray(n))return n.map(t=>kW({...e,geometry:t})).flat();let r=n.type===`MultiPolygon`?`Polygon`:n.type;if(r===`GeometryCollection`||r===`Circle`)throw Error(`Unsupported geometry type: `+r);let i=n.layout.length;return EW(new UN(r,r===`Polygon`?OW(n.flatCoordinates,n.ends,i):n.flatCoordinates,n.ends?.flat(),i,e.properties||{},e.id).enableSimplifyTransformed(),!1,t)}function AW(e,t){if(!e)return null;if(Array.isArray(e))return new UU(e.map(e=>AW(e,t)));let n=DW[e.type];return EW(new n(e.flatCoordinates,e.layout||`XY`,e.ends),!1,t)}var jW=class extends TW{constructor(){super()}getType(){return`json`}readFeature(e,t){return this.readFeatureFromObject(MW(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(MW(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return tD()}readFeaturesFromObject(e,t){return tD()}readGeometry(e,t){return this.readGeometryFromObject(MW(e),this.getReadOptions(e,t))}readGeometryFromObject(e,t){return tD()}readProjection(e){return this.readProjectionFromObject(MW(e))}readProjectionFromObject(e){return tD()}writeFeature(e,t){return JSON.stringify(this.writeFeatureObject(e,t))}writeFeatureObject(e,t){return tD()}writeFeatures(e,t){return JSON.stringify(this.writeFeaturesObject(e,t))}writeFeaturesObject(e,t){return tD()}writeGeometry(e,t){return JSON.stringify(this.writeGeometryObject(e,t))}writeGeometryObject(e,t){return tD()}};function MW(e){return typeof e==`string`?JSON.parse(e)||null:e===null?null:e}var NW=class extends jW{constructor(e){e||={},super(),this.dataProjection=Nk(e.dataProjection?e.dataProjection:`EPSG:4326`),e.featureProjection&&(this.defaultFeatureProjection=Nk(e.featureProjection)),e.featureClass&&(this.featureClass=e.featureClass),this.geometryName_=e.geometryName,this.extractGeometryName_=e.extractGeometryName,this.supportedMediaTypes=[`application/geo+json`,`application/vnd.geo+json`]}readFeatureFromObject(e,t){let n=null;n=e.type===`Feature`?e:{type:`Feature`,geometry:e,properties:null};let r=PW(n.geometry,t);if(this.featureClass===UN)return kW({geometry:r,id:n.id,properties:n.properties},t);let i=this.featureClass,a=new i;return this.geometryName_?a.setGeometryName(this.geometryName_):this.extractGeometryName_&&n.geometry_name&&a.setGeometryName(n.geometry_name),a.setGeometry(AW(r,t)),`id`in n&&a.setId(n.id),n.properties&&a.setProperties(n.properties,!0),a}readFeaturesFromObject(e,t){let n=e,r=null;if(n.type===`FeatureCollection`){let n=e;r=[];let i=n.features;for(let e=0,n=i.length;e<n;++e){let n=this.readFeatureFromObject(i[e],t);n&&r.push(n)}}else r=[this.readFeatureFromObject(e,t)];return r.flat()}readGeometryFromObject(e,t){return FW(e,t)}readProjectionFromObject(e){let t=e.crs,n;if(t){if(t.type==`name`)n=Nk(t.properties.name);else if(t.type===`EPSG`)n=Nk(`EPSG:`+t.properties.code);else throw Error(`Unknown SRS type`)}else n=this.dataProjection;return n}writeFeatureObject(e,t){t=this.adaptOptions(t);let n={type:`Feature`,geometry:null,properties:null},r=e.getId();if(r!==void 0&&(n.id=r),!e.hasProperties())return n;let i=e.getProperties(),a=e.getGeometry();return a&&(n.geometry=UW(a,t),delete i[e.getGeometryName()]),ME(i)||(n.properties=i),n}writeFeaturesObject(e,t){t=this.adaptOptions(t);let n=[];for(let r=0,i=e.length;r<i;++r)n.push(this.writeFeatureObject(e[r],t));return{type:`FeatureCollection`,features:n}}writeGeometryObject(e,t){return UW(e,this.adaptOptions(t))}};function PW(e,t){if(!e)return null;let n;switch(e.type){case`Point`:n=LW(e);break;case`LineString`:n=RW(e);break;case`Polygon`:n=HW(e);break;case`MultiPoint`:n=BW(e);break;case`MultiLineString`:n=zW(e);break;case`MultiPolygon`:n=VW(e);break;case`GeometryCollection`:n=IW(e);break;default:throw Error(`Unsupported GeoJSON type: `+e.type)}return n}function FW(e,t){return AW(PW(e,t),t)}function IW(e,t){return e.geometries.map(function(e){return PW(e,t)})}function LW(e){let t=e.coordinates;return{type:`Point`,flatCoordinates:t,layout:TA(t.length)}}function RW(e){let t=e.coordinates,n=t.flat();return{type:`LineString`,flatCoordinates:n,ends:[n.length],layout:TA(t[0]?.length||2)}}function zW(e){let t=e.coordinates,n=t[0]?.[0]?.length||2,r=[];return{type:`MultiLineString`,flatCoordinates:r,ends:BA(r,0,t,n),layout:TA(n)}}function BW(e){let t=e.coordinates;return{type:`MultiPoint`,flatCoordinates:t.flat(),layout:TA(t[0]?.length||2)}}function VW(e){let t=e.coordinates,n=[],r=t[0]?.[0]?.[0].length||2;return{type:`MultiPolygon`,flatCoordinates:n,ends:VA(n,0,t,r),layout:TA(r)}}function HW(e){let t=e.coordinates,n=[],r=t[0]?.[0]?.length;return{type:`Polygon`,flatCoordinates:n,ends:BA(n,0,t,r),layout:TA(r)}}function UW(e,t){e=EW(e,!0,t);let n=e.getType(),r;switch(n){case`Point`:r=YW(e,t);break;case`LineString`:r=GW(e,t);break;case`Polygon`:r=XW(e,t);break;case`MultiPoint`:r=qW(e,t);break;case`MultiLineString`:r=KW(e,t);break;case`MultiPolygon`:r=JW(e,t);break;case`GeometryCollection`:r=WW(e,t);break;case`Circle`:r={type:`GeometryCollection`,geometries:[]};break;default:throw Error(`Unsupported geometry type: `+n)}return r}function WW(e,t){return t=Object.assign({},t),delete t.featureProjection,{type:`GeometryCollection`,geometries:e.getGeometriesArray().map(function(e){return UW(e,t)})}}function GW(e,t){return{type:`LineString`,coordinates:e.getCoordinates()}}function KW(e,t){return{type:`MultiLineString`,coordinates:e.getCoordinates()}}function qW(e,t){return{type:`MultiPoint`,coordinates:e.getCoordinates()}}function JW(e,t){let n;return t&&(n=t.rightHanded),{type:`MultiPolygon`,coordinates:e.getCoordinates(n)}}function YW(e,t){return{type:`Point`,coordinates:e.getCoordinates()}}function XW(e,t){let n;return t&&(n=t.rightHanded),{type:`Polygon`,coordinates:e.getCoordinates(n)}}const ZW={root:`draw-control`,toggle:`draw-control-toggle`,shapes:`draw-control-shapes`,shape:`draw-control-shape`},QW={"fill-color":`rgba(255, 255, 255, 0.2)`,"stroke-color":`#8c62ff`,"stroke-width":2,"circle-radius":7,"circle-fill-color":`#8c62ff`},$W={dataProjection:`EPSG:4326`,featureProjection:`EPSG:3857`},eG=[{shape:`Point`,label:`Draw a point`,Icon:an},{shape:`LineString`,label:`Draw a line`,Icon:bn},{shape:`Circle`,label:`Draw a circle`,Icon:rn}];function tG({target:e,className:t,fileName:n=`react-openlayers-geojson.json`}){let r=sB(),i=vU(`MapDrawControl`,G(ZW.root,t),e),[a,o]=l.useState(!1),[s,c]=l.useState(null),u=l.useRef(null),f=l.useRef(null);if(!u.current){let e=new pP;u.current={source:e,layer:new RL({source:e,style:QW,properties:{key:`drawLayer`}}),modify:new fW({source:e})}}let p=u.current,m=l.useCallback(()=>{let e=p.source.getFeatures(),t=new NW().writeFeaturesObject(e,$W),r=new Blob([JSON.stringify(t)],{type:`application/json`}),i=URL.createObjectURL(r),a=document.createElement(`a`);a.href=i,a.download=n,a.click(),URL.revokeObjectURL(i)},[p,n]);l.useEffect(()=>{if(!(!r||!a))return r.addLayer(p.layer),r.addInteraction(p.modify),()=>{r.removeInteraction(p.modify),r.removeLayer(p.layer)}},[r,a,p]),l.useEffect(()=>{if(!r||!a||!s)return;let e=s===`LineString`?new iW({source:p.source,type:s,maxPoints:2}):new iW({source:p.source,type:s}),t=new wW({source:p.source});return f.current=e,r.addInteraction(e),r.addInteraction(t),()=>{r.removeInteraction(t),r.removeInteraction(e),f.current=null}},[r,a,s,p]),l.useEffect(()=>{if(!r||!a)return;let e=r.getTargetElement();if(!e)return;let t=e=>{e.key===`Escape`?f.current?.abortDrawing():e.shiftKey&&e.key===`S`&&m()};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)},[r,a,m]);let h=()=>{o(e=>!e),c(null)},g=e=>{c(t=>t===e?null:e)};return(0,d.createPortal)((0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{type:`button`,className:ZW.toggle,title:`Click here to start drawing. Shift+S to save as GeoJSON`,"aria-expanded":a,onClick:h,children:(0,q.jsx)(kn,{size:12})}),a?(0,q.jsxs)(`div`,{className:ZW.shapes,children:[eG.map(({shape:e,label:t,Icon:n})=>(0,q.jsx)(`button`,{type:`button`,className:ZW.shape,title:`${t}. Hold shift to draw freehand`,"aria-pressed":s===e,onClick:()=>g(e),children:(0,q.jsx)(n,{size:12})},e)),(0,q.jsx)(`button`,{type:`button`,className:ZW.shape,title:`Move and reshape what has been drawn`,"aria-pressed":s===null,onClick:()=>g(null),children:(0,q.jsx)(Vt,{size:12})})]}):null]}),i)}tG.displayName=`MapDrawControl`;const nG={root:`layers-control`,toggle:`layers-control-toggle`,layers:`layers-control-layers`,list:`layers-control-list`,item:`layers-control-item`,label:`layers-control-label`},rG=(e,t)=>e.map((e,n)=>{let r=`${t}${n}`;return{key:r,layer:e,name:e.get(`name`)??e.constructor.name,children:e instanceof HR?rG(e.getLayers().getArray(),`${r}.`):[]}});function iG({target:e,className:t}){let n=sB(),r=vU(`MapLayersControl`,G(nG.root,t),e),[i,a]=l.useState(!1),[o,s]=l.useState(0),c=l.useMemo(()=>n&&i?rG(n.getLayers().getArray(),``):[],[n,i,o]),u=(e,t)=>{e.setVisible(t),s(e=>e+1)},f=e=>(0,q.jsx)(`ul`,{className:nG.list,children:e.map(e=>(0,q.jsxs)(`li`,{className:nG.item,children:[(0,q.jsxs)(`label`,{className:nG.label,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:e.layer.getVisible(),onChange:t=>u(e.layer,t.target.checked)}),e.name]}),e.children.length>0?f(e.children):null]},e.key))});return(0,d.createPortal)((0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`button`,{type:`button`,className:nG.toggle,title:`Click here to switch layers`,"aria-expanded":i,onClick:()=>a(e=>!e),children:(0,q.jsx)(yn,{size:24})}),i?(0,q.jsx)(`div`,{className:nG.layers,children:f(c)}):null]}),r)}iG.displayName=`MapLayersControl`;const aG={root:`search-control`,toggle:`search-control-toggle`,input:`search-control-input`};function oG({target:e,className:t,zoom:n=18,color:r=hB,placeholder:i=`Search for a place`}){let a=sB(),o=vU(`MapSearchControl`,G(aG.root,t),e),[s,c]=l.useState(!1),[u,f]=l.useState(``);return(0,d.createPortal)((0,q.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!a||!u)return;let[t]=await pB(u,1);if(!t)return;let i=[Number(t.lon),Number(t.lat)];vB(a,i,r).set(`address`,t.display_name),a.getView().setCenter(zk(i)),a.getView().setZoom(n)},children:[(0,q.jsx)(`button`,{type:`button`,className:aG.toggle,title:i,"aria-expanded":s,onClick:()=>c(e=>!e),children:(0,q.jsx)(On,{size:24})}),s?(0,q.jsx)(`input`,{type:`search`,className:aG.input,value:u,placeholder:i,"aria-label":i,autoComplete:`off`,onChange:e=>f(e.target.value)}):null]}),o)}oG.displayName=`MapSearchControl`;const sG=e=>{let t=sB(),n=l.useRef(null);n.current||=e();let r=n.current;return l.useEffect(()=>{if(t)return t.addInteraction(r),()=>{t.removeInteraction(r)}},[t,r]),r};var cG=class extends CR{constructor(e){e||={},super(e),this.condition_=e.condition?e.condition:yR,this.lastAngle_=void 0,this.lastMagnitude_=void 0,this.lastScaleDelta_=0,this.duration_=e.duration===void 0?400:e.duration}handleDragEvent(e){if(!xR(e))return;let t=e.map,n=t.getSize(),r=e.pixel,i=r[0]-n[0]/2,a=n[1]/2-r[1],o=Math.atan2(a,i),s=Math.sqrt(i*i+a*a),c=t.getView();if(this.lastAngle_!==void 0){let e=this.lastAngle_-o;c.adjustRotationInternal(e)}this.lastAngle_=o,this.lastMagnitude_!==void 0&&c.adjustResolutionInternal(this.lastMagnitude_/s),this.lastMagnitude_!==void 0&&(this.lastScaleDelta_=this.lastMagnitude_/s),this.lastMagnitude_=s}handleUpEvent(e){if(!xR(e))return!0;let t=e.map.getView(),n=this.lastScaleDelta_>1?1:-1;return t.endInteraction(this.duration_,n),this.lastScaleDelta_=0,!1}handleDownEvent(e){return xR(e)&&this.condition_(e)?(e.map.getView().beginInteraction(),this.lastAngle_=void 0,this.lastMagnitude_=void 0,!0):!1}};function lG(e){return sG(()=>new cG(e)),null}lG.displayName=`MapDragRotateAndZoomInteraction`;const uG={TRANSLATESTART:`translatestart`,TRANSLATING:`translating`,TRANSLATEEND:`translateend`};var dG=class extends ZE{constructor(e,t,n,r,i){super(e),this.features=t,this.coordinate=n,this.startCoordinate=r,this.mapBrowserEvent=i}},fG=class extends CR{constructor(e){e||={},super(e),this.on,this.once,this.un,this.lastCoordinate_=null,this.startCoordinate_=null,this.features_=e.features===void 0?null:e.features;let t;if(e.layers&&!this.features_){if(typeof e.layers==`function`)t=e.layers;else{let n=e.layers;t=function(e){return n.includes(e)}}}else t=KE;this.layerFilter_=t,this.filter_=e.filter&&!this.features_?e.filter:KE,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.condition_=e.condition?e.condition:pR,this.lastFeature_=null,this.addChangeListener(rR.ACTIVE,this.handleActiveChanged_)}handleDownEvent(e){if(!e.originalEvent||!this.condition_(e))return!1;if(this.lastFeature_=this.featuresAtPixel_(e.pixel,e.map),!this.lastCoordinate_&&this.lastFeature_){this.startCoordinate_=e.coordinate,this.lastCoordinate_=e.coordinate,this.handleMoveEvent(e);let t=this.features_||new sD([this.lastFeature_]);return this.dispatchEvent(new dG(uG.TRANSLATESTART,t,e.coordinate,this.startCoordinate_,e)),!0}return!1}handleUpEvent(e){if(this.lastCoordinate_){this.lastCoordinate_=null,this.handleMoveEvent(e);let t=this.features_||new sD([this.lastFeature_]);return this.dispatchEvent(new dG(uG.TRANSLATEEND,t,e.coordinate,this.startCoordinate_,e)),this.startCoordinate_=null,!0}return!1}handleDragEvent(e){if(this.lastCoordinate_){let t=e.coordinate,n=e.map.getView().getProjection(),r=Jk(t,n),i=Jk(this.lastCoordinate_,n),a=r[0]-i[0],o=r[1]-i[1],s=this.features_||new sD([this.lastFeature_]),c=Kk();s.forEach(function(e){let t=e.getGeometry();c?(t.transform(c,n),t.translate(a,o),t.transform(n,c)):t.translate(a,o),e.setGeometry(t)}),this.lastCoordinate_=t,this.dispatchEvent(new dG(uG.TRANSLATING,s,t,this.startCoordinate_,e))}}handleMoveEvent(e){let t=e.map.getViewport();this.featuresAtPixel_(e.pixel,e.map)?(t.classList.remove(this.lastCoordinate_?`ol-grab`:`ol-grabbing`),t.classList.add(this.lastCoordinate_?`ol-grabbing`:`ol-grab`)):t.classList.remove(`ol-grab`,`ol-grabbing`)}featuresAtPixel_(e,t){return t.forEachFeatureAtPixel(e,(e,t)=>{if(!(!(e instanceof lD)||!this.filter_(e,t))&&!(this.features_&&!this.features_.getArray().includes(e)))return e},{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_})}getHitTolerance(){return this.hitTolerance_}setHitTolerance(e){this.hitTolerance_=e}setMap(e){let t=this.getMap();super.setMap(e),this.updateState_(t)}handleActiveChanged_(){this.updateState_(null)}updateState_(e){let t=this.getMap(),n=this.getActive();(!t||!n)&&(t||=e,t&&t.getViewport().classList.remove(`ol-grab`,`ol-grabbing`))}};function pG(e){return sG(()=>new fG(e)),null}pG.displayName=`MapTranslateInteraction`;function mG(e){let t=l.useRef(null),n=e=>{let n=e.map.forEachFeatureAtPixel(e.pixel,e=>e);return n instanceof lD&&(t.current={feature:n,coordinate:e.coordinate},!0)},r=e=>{let n=t.current;if(!n)return;let r=n.feature.getGeometry();r&&(r.translate(e.coordinate[0]-n.coordinate[0],e.coordinate[1]-n.coordinate[1]),n.coordinate=e.coordinate)},i=e=>{let t=e.map.forEachFeatureAtPixel(e.pixel,e=>e),n=e.map.getTargetElement();n&&(n.style.cursor=t?`pointer`:``)},a=()=>(t.current=null,!1);return sG(()=>new CR({handleDownEvent:n,handleDragEvent:r,handleMoveEvent:i,handleUpEvent:a,...e})),null}mG.displayName=`MapPointerInteraction`;const hG={SELECT:`select`};var gG=class extends ZE{constructor(e,t,n,r){super(e),this.selected=t,this.deselected=n,this.mapBrowserEvent=r}};const _G={};var vG=class e extends iR{constructor(e){super(),this.on,this.once,this.un,e||={},this.boundAddFeature_=this.addFeature_.bind(this),this.boundRemoveFeature_=this.removeFeature_.bind(this),this.condition_=e.condition?e.condition:gR,this.addCondition_=e.addCondition?e.addCondition:hR,this.removeCondition_=e.removeCondition?e.removeCondition:hR,this.toggleCondition_=e.toggleCondition?e.toggleCondition:yR,this.multi_=e.multi?e.multi:!1,this.filter_=e.filter?e.filter:KE,this.hitTolerance_=e.hitTolerance?e.hitTolerance:0,this.style_=e.style===void 0?yG():e.style,this.features_=e.features||new sD;let t;if(e.layers){if(typeof e.layers==`function`)t=e.layers;else{let n=e.layers;t=function(e){return n.includes(e)}}}else t=KE;this.layerFilter_=t,this.featureLayerAssociation_={}}addFeatureLayerAssociation_(e,t){this.featureLayerAssociation_[X(e)]=t}getFeatures(){return this.features_}getHitTolerance(){return this.hitTolerance_}getLayer(e){return this.featureLayerAssociation_[X(e)]}setHitTolerance(e){this.hitTolerance_=e}setMap(e){this.getMap()&&this.style_&&this.features_.forEach(this.restorePreviousStyle_.bind(this)),super.setMap(e),e?(this.features_.addEventListener(kE.ADD,this.boundAddFeature_),this.features_.addEventListener(kE.REMOVE,this.boundRemoveFeature_),this.style_&&this.features_.forEach(this.applySelectedStyle_.bind(this))):(this.features_.removeEventListener(kE.ADD,this.boundAddFeature_),this.features_.removeEventListener(kE.REMOVE,this.boundRemoveFeature_))}addFeature_(e){let t=e.element;if(this.style_&&this.applySelectedStyle_(t),!this.getLayer(t)){let e=this.findLayerOfFeature_(t);e&&this.addFeatureLayerAssociation_(t,e)}}removeFeature_(e){this.style_&&this.restorePreviousStyle_(e.element),this.removeFeatureLayerAssociation_(e.element)}findLayerOfFeature_(e){return this.getMap().getAllLayers().find(function(t){if(t instanceof RL&&t.getSource()&&t.getSource().hasFeature(e))return t})}getStyle(){return this.style_}applySelectedStyle_(e){let t=X(e);t in _G||(_G[t]=e.getStyle()),e.setStyle(this.style_)}restorePreviousStyle_(t){let n=this.getMap().getInteractions().getArray();for(let r=n.length-1;r>=0;--r){let i=n[r];if(i!==this&&i instanceof e&&i.getStyle()&&i.getFeatures().getArray().lastIndexOf(t)!==-1){t.setStyle(i.getStyle());return}}let r=X(t);t.setStyle(_G[r]),delete _G[r]}removeFeatureLayerAssociation_(e){delete this.featureLayerAssociation_[X(e)]}selectFeature(e){let t=this.findLayerOfFeature_(e);if(!this.layerFilter_(t)||!this.filter_(e,t))return!1;let n=this.getFeatures();return!n.getArray().includes(e)&&(this.addFeatureLayerAssociation_(e,t),n.push(e),this.dispatchEvent(new gG(hG.SELECT,[e],[],void 0)),!0)}deselectFeature(e){let t=this.getFeatures(),n=t.getArray().indexOf(e);return n!==-1&&(t.removeAt(n),this.dispatchEvent(new gG(hG.SELECT,[],[e],void 0)),!0)}toggleFeature(e){this.deselectFeature(e)||this.selectFeature(e)}clearSelection(){let e=this.getFeatures();if(e.getLength()!==0){let t=e.getArray().slice();e.clear(),this.dispatchEvent(new gG(hG.SELECT,[],t,void 0))}}handleEvent(e){if(!this.condition_(e))return!0;let t=this.addCondition_(e),n=this.removeCondition_(e),r=this.toggleCondition_(e),i=!t&&!n&&!r,a=e.map,o=this.getFeatures(),s=[],c=[];if(i){a.forEachFeatureAtPixel(e.pixel,(e,t)=>{if(!(!(e instanceof lD)||!this.filter_(e,t)))return this.addFeatureLayerAssociation_(e,t),c.push(e),!this.multi_},{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let e=o.getLength()-1;e>=0;--e){let t=o.item(e),n=c.indexOf(t);n===-1?(o.removeAt(e),s.push(t)):c.splice(n,1)}c.length!==0&&o.extend(c)}else{a.forEachFeatureAtPixel(e.pixel,(e,i)=>{if(!(e instanceof lD)||!this.filter_(e,i))return;let a=o.getArray().includes(e);return a&&(n||r)?s.push(e):!a&&(t||r)&&(this.addFeatureLayerAssociation_(e,i),c.push(e)),!this.multi_},{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(let e=s.length-1;e>=0;--e)o.remove(s[e]);o.extend(c)}return(c.length>0||s.length>0)&&this.dispatchEvent(new gG(hG.SELECT,c,s,e)),!0}};function yG(){let e=EP();return UE(e.Polygon,e.LineString),UE(e.GeometryCollection,e.LineString),function(t){return t.getGeometry()?e[t.getGeometry().getType()]:null}}const bG=`#ff0000`,xG=`rgba(255, 0, 0, 0.4)`,SG=e=>new OP({text:e,font:`12px Calibri,sans-serif`,fill:new mP({color:`#000`}),stroke:new hP({color:`#fff`,width:3}),offsetY:-10}),CG=e=>{let t=e.getGeometry();if(!(t instanceof CA))return;let n=t.getType();if(n===`Point`)return new SP({image:new xP({radius:6,fill:new mP({color:xG}),stroke:new hP({color:bG,width:2})})});if(n===`LineString`){let e=new SP({stroke:new hP({color:bG,width:3})}),n=hO(t)/1e3;return n>0&&e.setText(SG(`Length: ${n.toFixed(2)} km`)),e}let r=new SP({fill:new mP({color:xG}),stroke:new hP({color:bG,width:2})});try{let e=_O(t)/1e6;e>0&&r.setText(SG(`Area: ${e.toFixed(2)} km²`))}catch{}return r};function wG({onSelect:e,style:t=CG,...n}){let r=sB(),i=sG(()=>new vG({...n,style:t})),a=l.useRef(e);return l.useEffect(()=>{a.current=e},[e]),l.useEffect(()=>{let e=i.on(`select`,e=>{e.deselected.forEach(e=>e.setStyle(void 0)),e.selected.length>0&&a.current?.(e)});return()=>eD(e)},[i]),l.useEffect(()=>{if(!r)return;let e=r.getTargetElement();if(!e)return;let t=e=>{if(e.key!==`Backspace`)return;let t=i.getFeatures();t.forEach(e=>{i.getLayer(e)?.getSource()?.removeFeature(e)}),t.clear()};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)},[r,i]),null}wG.displayName=`MapSelectInteraction`;function TG(e){return lO(e,5)}function EG(e){return parseFloat(e)}function DG(e){return TG(e).toString()}function OG(e,t){return!isNaN(e)&&e!==EG(DG(t))}function kG(e,t){return OG(e[0],t[0])||OG(e[1],t[1])}var AG=class extends iR{constructor(e){super(),e=Object.assign({animate:!0,params:[`x`,`y`,`z`,`r`,`l`],replace:!1,prefix:``},e||{});let t;t=e.animate===!0?{duration:250}:e.animate?e.animate:null,this.animationOptions_=t,this.params_=e.params.reduce((e,t)=>(e[t]=!0,e),{}),this.replace_=e.replace,this.prefix_=e.prefix,this.listenerKeys_=[],this.initial_=!0,this.updateState_=this.updateState_.bind(this),this.trackedCallbacks_={},this.trackedValues_={}}getParamName_(e){return this.prefix_?this.prefix_+e:e}get_(e,t){return e.get(this.getParamName_(t))}set_(e,t,n){t in this.params_&&e.set(this.getParamName_(t),n)}delete_(e,t){t in this.params_&&e.delete(this.getParamName_(t))}setMap(e){let t=this.getMap();super.setMap(e),e!==t&&(t&&this.unregisterListeners_(t),e&&(this.initial_=!0,this.updateState_(),this.registerListeners_(e)))}registerListeners_(e){this.listenerKeys_.push(NE(e,qL.MOVEEND,this.updateUrl_,this),NE(e.getLayerGroup(),IE.CHANGE,this.updateUrl_,this),NE(e,`change:layergroup`,this.handleChangeLayerGroup_,this)),this.replace_||addEventListener(`popstate`,this.updateState_)}unregisterListeners_(e){for(let e=0,t=this.listenerKeys_.length;e<t;++e)FE(this.listenerKeys_[e]);this.listenerKeys_.length=0,this.replace_||removeEventListener(`popstate`,this.updateState_);let t=new URL(window.location.href),n=t.searchParams;this.delete_(n,`x`),this.delete_(n,`y`),this.delete_(n,`z`),this.delete_(n,`r`),this.delete_(n,`l`),window.history.replaceState(null,``,t)}handleChangeLayerGroup_(){let e=this.getMap();e&&(this.unregisterListeners_(e),this.registerListeners_(e),this.initial_=!0,this.updateUrl_())}updateState_(){let e=new URL(window.location.href).searchParams;for(let t in this.trackedCallbacks_){let n=e.get(t);t in this.trackedCallbacks_&&n!==this.trackedValues_[t]&&(this.trackedValues_[t]=n,this.trackedCallbacks_[t](n))}let t=this.getMap();if(!t)return;let n=t.getView();if(!n||!n.isDef())return;let r=!1,i={},a=EG(this.get_(e,`z`));`z`in this.params_&&OG(a,n.getZoom())&&(r=!0,i.zoom=a);let o=EG(this.get_(e,`r`));`r`in this.params_&&OG(o,n.getRotation())&&(r=!0,i.rotation=o);let s=[EG(this.get_(e,`x`)),EG(this.get_(e,`y`))];(`x`in this.params_||`y`in this.params_)&&kG(s,n.getCenter())&&(r=!0,i.center=s),r&&(!this.initial_&&this.animationOptions_?n.animate(Object.assign(i,this.animationOptions_)):(i.center&&n.setCenter(i.center),`zoom`in i&&n.setZoom(i.zoom),`rotation`in i&&n.setRotation(i.rotation)));let c=t.getAllLayers(),l=this.get_(e,`l`);if(`l`in this.params_&&l&&l.length===c.length)for(let e=0,t=c.length;e<t;++e){let t=parseInt(l[e]);if(!isNaN(t)){let n=!!t,r=c[e];r.getVisible()!==n&&r.setVisible(n)}}}track(e,t){this.trackedCallbacks_[e]=t;let n=new URL(window.location.href).searchParams.get(e);return this.trackedValues_[e]=n,n}update(e,t){let n=new URL(window.location.href),r=n.searchParams;t===null?r.delete(e):r.set(e,t),e in this.trackedValues_&&(this.trackedValues_[e]=t),this.updateHistory_(n)}updateUrl_(){let e=this.getMap();if(!e)return;let t=e.getView();if(!t||!t.isDef())return;let n=t.getCenter(),r=t.getZoom(),i=t.getRotation(),a=e.getAllLayers(),o=Array(a.length);for(let e=0,t=a.length;e<t;++e)o[e]=a[e].getVisible()?`1`:`0`;let s=new URL(window.location.href),c=s.searchParams;this.set_(c,`x`,DG(n[0])),this.set_(c,`y`,DG(n[1])),this.set_(c,`z`,DG(r)),this.set_(c,`r`,DG(i)),this.set_(c,`l`,o.join(``)),this.updateHistory_(s),this.initial_=!1}updateHistory_(e){e.href!==window.location.href&&(this.initial_||this.replace_?window.history.replaceState(history.state,``,e):window.history.pushState(null,``,e))}};function jG(e){return sG(()=>new AG(e)),null}jG.displayName=`MapLinkInteraction`;const MG={root:`map`,surface:`map-surface`,toolbar:`map-toolbar`},NG=37.7649804,PG=-122.4323829,FG=[];function IG({latitude:e,longitude:t,zoom:n,marker:r,markerColor:i,markerLabel:a}){let o=sB(),s=l.useRef(!1);return l.useEffect(()=>{if(!o)return;let r=o.getView(),i=zk([t,e]);if(s.current){r.animate({center:i,zoom:n,duration:500});return}s.current=!0,r.setCenter(i),r.setZoom(n)},[o,e,t,n]),l.useEffect(()=>{if(!o||!r)return;let n=vB(o,[t,e],i,a);return()=>yB(o,n)},[o,e,t,r,i,a]),null}IG.displayName=`MapLocation`;function LG(e,t){let{latitude:n=NG,longitude:r=PG,zoom:i=16,width:a,height:o,controls:s=FG,marker:c=!0,markerColor:u,markerLabel:d,id:f,className:p,style:m,children:h,"aria-label":g,"aria-labelledby":_,...v}=e,y=Y(f),b=l.useRef(null),x=ar(t,b),S=l.useRef(null);if(!S.current){let e=document.createElement(`div`);e.className=MG.toolbar,S.current=e}let C=S.current;l.useEffect(()=>(b.current?.append(C),()=>C.remove()),[C]);let w=_?void 0:g??`Map`,T=e=>{switch(e){case`scaleLine`:return(0,q.jsx)(NU,{},e);case`fullScreen`:return(0,q.jsx)(OU,{target:C,source:y},e);case`search`:return(0,q.jsx)(oG,{target:C},e);case`layers`:return(0,q.jsx)(iG,{target:C},e);case`draw`:return(0,q.jsx)(tG,{target:C},e)}};return(0,q.jsx)(`div`,{ref:x,id:y,role:`region`,tabIndex:0,"aria-label":w,"aria-labelledby":_,className:G(MG.root,p),style:{...m,"--map-width":typeof a==`number`?`${a}px`:a,"--map-height":typeof o==`number`?`${o}px`:o},"data-component":`Map`,...v,children:(0,q.jsxs)(oB,{className:MG.surface,keyboardEventTarget:y,children:[(0,q.jsx)(IG,{latitude:n,longitude:r,zoom:i,marker:c,markerColor:u,markerLabel:d}),s.map(T),h]})})}LG.displayName=`Map`;var RG=K(LG);const zG=Object.assign(RG,{View:cB,Marker:SB,Overlay:wB,LayerGroup:OB,TileLayer:kB,ImageLayer:NB,VectorLayer:PB,GraticuleLayer:FB,HeatmapLayer:pU,WebGLTileLayer:gU,AttributionControl:yU,DrawControl:tG,FullScreenControl:OU,LayersControl:iG,MousePositionControl:LU,OverviewMapControl:VU,ScaleLineControl:NU,SearchControl:oG,DragRotateAndZoomInteraction:lG,LinkInteraction:jG,PointerInteraction:mG,SelectInteraction:wG,TranslateInteraction:pG}),BG={root:`markdown`};function VG(e,t){let{className:n,source:r,transformers:i,preserveNewLines:a=!1,...o}=e,[s]=(0,y.useLexicalComposerContext)(),c=l.useCallback(e=>{s.setRootElement(e)},[s]),u=ar(t,c);return rr(()=>{s.update(()=>{(0,v.$convertFromMarkdownString)(r,i,void 0,a)},{discrete:!0})},[s,r,i,a]),(0,q.jsx)(`div`,{ref:u,className:G(BG.root,n),"data-component":`Markdown`,...o})}VG.displayName=`MarkdownProse`;var HG=K(VG);const UG=`Markdown`,WG=[C.HeadingNode,C.QuoteNode,S.ListNode,S.ListItemNode,x.LinkNode,b.CodeNode,b.CodeHighlightNode],GG=[v.CHECK_LIST,...v.TRANSFORMERS],KG={paragraph:`markdown-paragraph`,heading:{h1:`markdown-heading-1`,h2:`markdown-heading-2`,h3:`markdown-heading-3`,h4:`markdown-heading-4`,h5:`markdown-heading-5`,h6:`markdown-heading-6`},quote:`markdown-quote`,link:`markdown-link`,code:`markdown-code-block`,list:{ul:`markdown-list-bullet`,ol:`markdown-list-number`,listitem:`markdown-list-item`,checklist:`markdown-list-check`,listitemChecked:`markdown-list-item-checked`,listitemUnchecked:`markdown-list-item-unchecked`,nested:{listitem:`markdown-list-item-nested`}},text:{bold:`markdown-bold`,italic:`markdown-italic`,strikethrough:`markdown-strikethrough`,highlight:`markdown-highlight`,code:`markdown-code-inline`},ltr:`markdown-ltr`,rtl:`markdown-rtl`};function qG(e,t){let{className:n,children:r=``,transformers:i=GG,preserveNewLines:a=!1,namespace:o=UG,onError:s,...c}=e;return(0,q.jsx)(_.LexicalComposer,{initialConfig:{namespace:o,theme:KG,nodes:WG,editable:!1,onError:s??(e=>{throw e})},children:(0,q.jsx)(HG,{ref:t,className:n,source:r,transformers:i,preserveNewLines:a,...c})})}qG.displayName=`Markdown`;var JG=K(qG);const YG=(0,l.createContext)({}),XG=()=>(0,l.useContext)(YG),ZG=(e={})=>{let{paused:t,defaultPaused:n,onPauseChange:r}=e,i=t!==void 0,[a,o]=l.useState(n??!1),s=i?t:a,c=e=>{e!==s&&(i||o(e),r?.(e))};return{paused:s,pause:()=>c(!0),resume:()=>c(!1),toggle:()=>c(!s),setPaused:c}},QG={root:`marquee`},$G=e=>e===`top`||e===`bottom`;function eK(e,t){let{as:n=`div`,className:r,side:i=`start`,speed:a=50,delay:o=0,loopCount:s=0,autoFill:c=!1,spacing:u,reverse:d=!1,paused:f,defaultPaused:p,pauseOnInteraction:m=!0,onPauseChange:h,onLoopComplete:g,onComplete:_,children:v,...y}=e,b=ZG({paused:f,defaultPaused:p,onPauseChange:h}),x=$G(i),S=l.useRef(null),C=l.useRef(null),[w,T]=l.useState(0),[E,D]=l.useState(0);rr(()=>{let e=S.current,t=C.current;if(e===null||t===null)return;let n=()=>{let n=x?e.clientHeight:e.clientWidth,r=x?t.offsetHeight:t.offsetWidth;T(e=>e===n?e:n),D(e=>e===r?e:r)};n();let r=new ResizeObserver(n);return r.observe(e),r.observe(t),()=>{r.disconnect()}},[x]);let O=c&&E>0?Math.max(Math.ceil(w/E)+1,2):2,k=E>0&&a>0?E/a:0,{style:A,onMouseEnter:j,onMouseLeave:M,onFocus:N,onBlur:P,...F}=y,[I,L]=l.useState(!1),ee=e=>{j?.(e),m&&L(!0)},R=e=>{M?.(e),L(!1)},z=e=>{N?.(e),m&&L(!0)},te=e=>{P?.(e),e.currentTarget.contains(e.relatedTarget)||L(!1)},ne=b.paused||I,B={...b,side:i,orientation:x?`vertical`:`horizontal`,copyCount:O,viewportRef:S,copyRef:C,onLoopComplete:g,onComplete:_};return(0,q.jsx)(YG.Provider,{value:B,children:(0,q.jsx)(n,{ref:t,className:G(QG.root,r),style:{...A,"--marquee-duration":`${k}s`,"--marquee-delay":`${o}ms`,"--marquee-loop-count":s>0?`${s}`:`infinite`,...u===void 0?null:{"--marquee-spacing":u}},onMouseEnter:ee,onMouseLeave:R,onFocus:z,onBlur:te,"data-component":`Marquee`,"data-orientation":x?`vertical`:`horizontal`,"data-side":i,"data-reverse":d||void 0,"data-paused":ne||void 0,"data-running":E>0||void 0,...F,children:v})})}eK.displayName=`Marquee`;var tK=K(eK);const nK={root:`marquee-content`};function rK(e,t){let{as:n=`div`,className:r,children:i,...a}=e,{copyCount:o=1,copyRef:s,onLoopComplete:c,onComplete:u}=l.useContext(YG),d=ar(t,s),f=l.useRef(0),p=e=>e.target===e.currentTarget,m=e=>{p(e)&&(f.current+=1,c?.(f.current))},h=e=>{p(e)&&(f.current+=1,c?.(f.current),u?.())};return(0,q.jsx)(q.Fragment,{children:Array.from({length:o},(e,t)=>{let o=t===0;return(0,q.jsx)(n,{ref:o?d:void 0,className:G(nK.root,r),"aria-hidden":!o||void 0,inert:!o,onAnimationIteration:o?m:void 0,onAnimationEnd:o?h:void 0,"data-component":`Marquee.Content`,...a,children:i},t)})})}rK.displayName=`Marquee.Content`;var iK=K(rK);const aK={root:`marquee-edge`};function oK(e,t){let{as:n=`div`,className:r,side:i,...a}=e;return(0,q.jsx)(n,{ref:t,"aria-hidden":`true`,className:G(aK.root,r),"data-component":`Marquee.Edge`,"data-side":i,...a})}oK.displayName=`Marquee.Edge`;var sK=K(oK);const cK={root:`marquee-item`};function lK(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(cK.root,r),"data-component":`Marquee.Item`,...i})}lK.displayName=`Marquee.Item`;var uK=K(lK);const dK={root:`marquee-viewport`};function fK(e,t){let{as:n=`div`,className:r,...i}=e,{viewportRef:a}=l.useContext(YG),o=ar(t,a);return(0,q.jsx)(n,{ref:o,className:G(dK.root,r),"data-component":`Marquee.Viewport`,...i})}fK.displayName=`Marquee.Viewport`;var pK=K(fK);const mK=Object.assign(tK,{Root:tK,Viewport:pK,Content:iK,Item:uK,Edge:sK}),hK=(0,l.createContext)({}),gK=W(`message`,{variants:{align:{start:`message-align-start`,end:`message-align-end`}}});function _K(e,t){let{as:n=`div`,className:r,align:i,...a}=e,{align:o}=l.useContext(hK),s=i??o??`start`,c={align:s};return(0,q.jsx)(Cl.Provider,{value:c,children:(0,q.jsx)(n,{ref:t,className:G(gK({align:s}),r),"data-component":`Message`,"data-align":s,...a})})}_K.displayName=`Message`;var vK=K(_K);const yK={root:`message-avatar`};function bK(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(yK.root,r),"data-component":`Message.Avatar`,...i})}bK.displayName=`Message.Avatar`;var xK=K(bK);const SK={root:`message-content`};function CK(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(SK.root,r),"data-component":`Message.Content`,...i})}CK.displayName=`Message.Content`;var wK=K(CK);const TK={root:`message-footer`};function EK(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(TK.root,r),"data-component":`Message.Footer`,...i})}EK.displayName=`Message.Footer`;var DK=K(EK);const OK={root:`message-group`};function kK(e,t){let{as:n=`div`,className:r,align:i=`start`,...a}=e;return(0,q.jsx)(hK.Provider,{value:{align:i},children:(0,q.jsx)(n,{ref:t,className:G(OK.root,r),"data-component":`Message.Group`,"data-align":i,...a})})}kK.displayName=`Message.Group`;var AK=K(kK);const jK={root:`message-header`};function MK(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(jK.root,r),"data-component":`Message.Header`,...i})}MK.displayName=`Message.Header`;var NK=K(MK);const PK=Object.assign(vK,{Group:AK,Avatar:xK,Content:wK,Header:NK,Footer:DK}),FK=e=>{let t=String(e),n=t.indexOf(`.`);return n===-1?0:t.length-n-1},IK=(e,t,n)=>t!==void 0&&e<t?t:n!==void 0&&e>n?n:e,LK=(e,t,{step:n=1,min:r,max:i}={})=>{if(e===null)return IK(r??0,r,i);let a=e+t*n,o=Math.max(FK(n),FK(e)),s=o===0?a:Number(a.toFixed(o));return IK(s,r,i)},RK=e=>{if(e.value===``)return null;let t=Number(e.value);return Number.isNaN(t)?null:t},zK=(0,l.createContext)({}),BK={root:`meter-indicator`};function VK(e,t){let{as:n=`span`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(BK.root,r),"data-component":`Meter.Indicator`,...i})}VK.displayName=`Meter.Indicator`;var HK=K(VK);const UK={root:`meter-label`};function WK(e,t){let{as:n=`span`,className:r,id:i,...a}=e,{labelId:o}=l.useContext(zK);return(0,q.jsx)(n,{ref:t,id:i??o,className:G(UK.root,r),"data-component":`Meter.Label`,...a})}WK.displayName=`Meter.Label`;var GK=K(WK);const KK={root:`meter-track`};function qK(e,t){let{as:n=`span`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(KK.root,r),"data-component":`Meter.Track`,...i})}qK.displayName=`Meter.Track`;var JK=K(qK);const YK={root:`meter-value`};function XK(e,t){let{className:n,children:r,...i}=e,{formattedValue:a=``,value:o=0}=l.useContext(zK);return(0,q.jsx)(`span`,{ref:t,"aria-hidden":`true`,className:G(YK.root,n),"data-component":`Meter.Value`,...i,children:typeof r==`function`?r({formattedValue:a,value:o}):r??a})}XK.displayName=`Meter.Value`;var ZK=K(XK);const QK=(e,t,n)=>n===t?0:(e-t)/(n-t)*100,$K=(e,t,n)=>n?new Intl.NumberFormat(void 0,n).format(e):new Intl.NumberFormat(void 0,{style:`percent`}).format(t/100),eq={header:`meter-header`,hidden:`sr-only`},tq=W(`meter`,{variants:{size:{small:`meter-small`,medium:`meter-medium`,large:`meter-large`},variant:{accent:`meter-accent`,attention:`meter-attention`,danger:`meter-danger`,done:`meter-done`,neutral:`meter-neutral`,severe:`meter-severe`,sponsors:`meter-sponsors`,success:`meter-success`}}});function nq(e,t){let{as:n=`div`,className:r,style:i,value:a,min:o=0,max:s=100,format:c,getAriaValueText:l,size:u=`medium`,variant:d=`success`,children:f,id:p,"aria-label":m,"aria-labelledby":h,...g}=e,_=`${Y(p)}-label`,[v,y]=xr(f,{label:GK,value:ZK,track:JK}),b=IK(Number.isNaN(a)?o:a,o,s),x=IK(QK(b,o,s),0,100),S=$K(b,x,c),C=l?l(S,a):S,w=h??(v.label&&!m?_:void 0),T={value:b,percentage:x,formattedValue:S,labelId:_};return(0,q.jsx)(zK.Provider,{value:T,children:(0,q.jsxs)(n,{ref:t,id:p,role:`meter`,"aria-valuenow":b,"aria-valuemin":o,"aria-valuemax":s,"aria-valuetext":C,"aria-label":m,"aria-labelledby":w,className:G(tq({size:u,variant:d}),r),style:{...i,"--meter-percentage":`${x}%`},"data-component":`Meter`,"data-size":u,"data-variant":d,"data-value":b,...g,children:[v.label||v.value?(0,q.jsxs)(`span`,{className:eq.header,children:[v.label,v.value]}):null,v.track??(0,q.jsx)(JK,{children:(0,q.jsx)(HK,{})}),y,(0,q.jsx)(`span`,{role:`presentation`,className:eq.hidden,children:`x`})]})})}nq.displayName=`Meter`;var rq=K(nq);const iq=Object.assign(rq,{Label:GK,Value:ZK,Track:JK,Indicator:HK});function aq(e,t){return(0,q.jsx)(`optgroup`,{ref:t,"data-component":`NativeSelect.OptGroup`,...e})}aq.displayName=`NativeSelect.OptGroup`;var oq=K(aq);function sq(e,t){return(0,q.jsx)(`option`,{ref:t,"data-component":`NativeSelect.Option`,...e})}sq.displayName=`NativeSelect.Option`;var cq=K(sq);const lq=Object.assign(Rx,{Option:cq,OptGroup:oq}),uq={root:`navigation-list-heading`,hidden:`sr-only`};function dq(e){let{as:t=`h2`,visuallyHidden:n=!1,className:r,...i}=e;return(0,q.jsx)(Tr,{as:t,size:`small`,className:G(n?uq.hidden:uq.root,r),"data-component":`NavigationList.Heading`,...i})}dq.displayName=`NavigationList.Heading`;const fq=l.createContext(null),pq=l.createContext({depth:0}),mq=l.createContext({buttonId:``,subNavigationId:``,isOpen:!1}),hq=e=>Number.parseInt(e.slice(1),10),gq=e=>{let t=e===null?3:e+1;return`h${Math.min(Math.max(t,1),4)}`},_q={heading:dq},vq={container:`NavigationList`};function yq(e,t){let{children:n,className:r,"aria-label":i,"aria-labelledby":a,...o}=e,[s,c]=xr(n,_q),u=Y(),d=s.heading,f=d?d.props.id??u:void 0,p=d?hq(d.props.as??`h2`):null;return(0,q.jsx)(`nav`,{ref:t,"aria-label":i,"aria-labelledby":a??(i?void 0:f),className:G(r),"data-component":`NavigationList`,...o,children:(0,q.jsxs)(fq.Provider,{value:p,children:[d?l.cloneElement(d,{id:f}):null,(0,q.jsx)(Ar.Provider,{value:vq,children:(0,q.jsx)(ji,{children:c})})]})})}yq.displayName=`NavigationList`;var bq=l.forwardRef(yq);function xq(e){let{title:t,children:n,hideDivider:r=!1,...i}=e,a=l.useContext(fq);return(0,q.jsxs)(q.Fragment,{children:[r?null:(0,q.jsx)(ji.Divider,{}),(0,q.jsxs)(ji.Group,{"data-component":`NavigationList.Group`,...i,children:[t?(0,q.jsx)(ji.GroupHeading,{as:gq(a),children:t}):null,n]})]})}xq.displayName=`NavigationList.Group`;const Sq={chevron:`navigation-list-chevron`},Cq={trailingVisual:ji.TrailingVisual},wq=e=>{if(!l.isValidElement(e))return!1;let t=e.props[`aria-current`];return t&&t!==`false`?!0:l.Children.toArray(e.props.children).some(wq)};function Tq(e){let{children:t,subNavigation:n,defaultOpen:r,className:i}=e,a=Y(),o=Y(),s=l.useRef(null),c=l.useMemo(()=>wq(n),[n]),[u,d]=l.useState(r??c),[f,p]=l.useState(c);rr(()=>{let e=c||!!s.current?.querySelector(`[aria-current]:not([aria-current='false'])`);p(e),e&&d(!0)},[c,n]);let m=l.useMemo(()=>({buttonId:a,subNavigationId:o,isOpen:u}),[a,o,u]),[h,g]=xr(t,Cq);return(0,q.jsx)(mq.Provider,{value:m,children:(0,q.jsxs)(ji.Item,{id:a,active:!u&&f,"aria-expanded":u,"aria-controls":o,onSelect:()=>d(e=>!e),className:i,"data-component":`NavigationList.Item`,children:[g,(0,q.jsxs)(ji.TrailingVisual,{children:[h.trailingVisual?.props.children,(0,q.jsx)(Qt,{className:Sq.chevron})]}),(0,q.jsx)(ji.SubItem,{children:l.cloneElement(n,{ref:s})})]})})}Tq.displayName=`NavigationList.ItemWithSubNavigation`;const Eq={root:`navigation-list-sub-navigation`,items:`navigation-list-sub-navigation-items`};function Dq(e,t){let{className:n,children:r,...i}=e,{buttonId:a,subNavigationId:o,isOpen:s}=l.useContext(mq),{depth:c}=l.useContext(pq),u=l.useMemo(()=>({depth:c+1}),[c]);return!a||!o||c>=4?null:(0,q.jsx)(pq.Provider,{value:u,children:(0,q.jsx)(`ul`,{ref:t,id:o,hidden:!s,"aria-labelledby":a,className:G(Eq.root,Eq.items,n),"data-component":`NavigationList.SubNavigation`,"data-depth":c+1,...i,children:r})})}Dq.displayName=`NavigationList.SubNavigation`;var Oq=K(Dq);const kq={subNavigation:Oq},Aq=ji.LinkItem;function jq(e,t){let{as:n,children:r,className:i,defaultOpen:a,"aria-current":o,...s}=e,[c,l]=xr(r,kq);return c.subNavigation?(0,q.jsx)(Tq,{subNavigation:c.subNavigation,defaultOpen:a,className:i,children:l}):(0,q.jsx)(Aq,{ref:t,as:n,"aria-current":o,active:!!o&&o!==`false`,className:i,"data-component":`NavigationList.Item`,...s,children:r})}jq.displayName=`NavigationList.Item`;var Mq=K(jq);const Nq=e=>typeof e==`string`||!(0,f.isValidElementType)(e)?e:(0,q.jsx)(e,{});function Pq(e,t){let{label:n=`Show more`,pages:r=0,items:i,renderItem:a,...o}=e,[s,c]=l.useState(0),u=Y(),d=i.length/r,f=r===0?i.length:Math.ceil(d*s),p=s===1?0:f-Math.floor(d);return rr(()=>{s!==0&&document.querySelector(`[data-expand-focus-target="${u}"]`)?.focus()},[s,u]),(0,q.jsxs)(q.Fragment,{children:[s>0?i.slice(0,f).map((e,t)=>{let{text:n,leadingVisual:r,trailingVisual:i,trailingAction:o,...s}=e,c=t===p?u:void 0;return a?a({...e,"data-expand-focus-target":c}):(0,q.jsxs)(Mq,{"data-expand-focus-target":c,...s,children:[r?(0,q.jsx)(ji.LeadingVisual,{children:(0,q.jsx)(r,{})}):null,n,i?(0,q.jsx)(ji.TrailingVisual,{children:Nq(i)}):null,o?(0,q.jsx)(ji.TrailingAction,{...o}):null]},e.id??t)}):null,s<r||s===0?(0,q.jsxs)(ji.Item,{ref:t,as:`button`,"aria-expanded":!1,onSelect:()=>c(e=>e+1),"data-component":`NavigationList.GroupExpand`,...o,children:[n,(0,q.jsx)(ji.TrailingVisual,{children:(0,q.jsx)(Pt,{})})]}):null]})}Pq.displayName=`NavigationList.GroupExpand`;var Fq=l.forwardRef(Pq);const Iq={root:`navigation-list-group-heading`};function Lq(e){let{as:t,className:n,...r}=e,i=l.useContext(fq);return(0,q.jsx)(ji.GroupHeading,{as:t??gq(i),className:G(Iq.root,n),"data-component":`NavigationList.GroupHeading`,...r})}Lq.displayName=`NavigationList.GroupHeading`;const Rq=yr(Lq,Hr),zq=Object.assign(bq,{Heading:dq,Item:Mq,SubNavigation:Oq,Group:xq,GroupHeading:Rq,GroupExpand:Fq,Description:Rr,LeadingVisual:ni,TrailingVisual:bi,TrailingAction:yi,Divider:Br}),Bq={root:`navigation-menu-heading`,hidden:`sr-only`};function Vq(e){let{as:t=`h2`,visuallyHidden:n=!1,className:r,...i}=e;return(0,q.jsx)(Tr,{as:t,size:`small`,className:G(n?Bq.hidden:Bq.root,r),"data-component":`NavigationMenu.Heading`,...i})}Vq.displayName=`NavigationMenu.Heading`;const Hq=(0,l.createContext)({openValue:null,setOpenValue:()=>{},orientation:`horizontal`,openOn:`click`,openAfterDelay:()=>{},closeAfterDelay:()=>{}}),Uq=(0,l.createContext)({value:``,triggerId:``,contentId:``,isOpen:!1}),Wq=(0,l.createContext)({linkId:``,descriptionId:``}),Gq=(0,l.createContext)(null),Kq=(0,l.createContext)({depth:0}),qq=e=>Number.parseInt(e.slice(1),10),Jq=e=>{let t=e===null?3:e+1;return`h${Math.min(Math.max(t,1),4)}`},Yq={root:`navigation-menu`},Xq={heading:Vq};function Zq(e,t){let{children:n,className:r,value:i,defaultValue:a=null,onValueChange:o,orientation:s=`horizontal`,openOn:c=`click`,openDelay:u=200,closeDelay:d=300,onBlur:f,"aria-label":p,"aria-labelledby":m,...h}=e,g=l.useRef(null),_=ar(t,g),[v,y]=xr(n,Xq),b=Y(),x=v.heading,S=x?x.props.id??b:void 0,C=x?qq(x.props.as??`h2`):null,w=m??(p?void 0:S),T=i!==void 0,[E,D]=l.useState(a),O=T?i:E,k=l.useRef(o);rr(()=>{k.current=o},[o]);let A=l.useRef(null),j=l.useRef(null),M=l.useCallback(()=>{A.current!==null&&(window.clearTimeout(A.current),A.current=null),j.current!==null&&(window.clearTimeout(j.current),j.current=null)},[]);l.useEffect(()=>M,[M]);let N=l.useCallback(e=>{M(),T||D(e),k.current?.(e)},[M,T]),P=l.useCallback(e=>{if(M(),O!==null){N(e);return}A.current=window.setTimeout(()=>{A.current=null,N(e)},u)},[M,u,O,N]),F=l.useCallback(()=>{M(),j.current=window.setTimeout(()=>{j.current=null,N(null)},d)},[M,d,N]);Hi(e=>{if(O===null)return;let t=g.current?.querySelector(`[aria-expanded='true']`);N(null),t?.focus(),e.preventDefault()}),l.useEffect(()=>{if(O===null)return;let e=e=>{let{target:t}=e;!(t instanceof Node)||g.current?.contains(t)||N(null)};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[O,N]);let I=e=>{f?.(e),O!==null&&(e.relatedTarget instanceof Node&&g.current?.contains(e.relatedTarget)||N(null))},L=l.useMemo(()=>({openValue:O,setOpenValue:N,orientation:s,openOn:c,openAfterDelay:P,closeAfterDelay:F}),[O,N,s,c,P,F]);return(0,q.jsx)(Hq.Provider,{value:L,children:(0,q.jsx)(`nav`,{ref:_,"aria-label":p,"aria-labelledby":w,className:G(Yq.root,r),"data-component":`NavigationMenu`,"data-orientation":s,...h,onBlur:I,children:(0,q.jsxs)(Gq.Provider,{value:C,children:[x?l.cloneElement(x,{id:S}):null,y]})})})}Zq.displayName=`NavigationMenu`;var Qq=l.forwardRef(Zq);const $q=W(`navigation-menu-content`,{variants:{open:{true:`motion-safe:data-[orientation=horizontal]:animate-in motion-safe:data-[orientation=horizontal]:fade-in motion-safe:data-[orientation=horizontal]:duration-short motion-safe:data-[orientation=horizontal]:slide-in-from-top-1`,false:``},align:{start:`navigation-menu-content-align-start`,center:`navigation-menu-content-align-center`,end:`navigation-menu-content-align-end`}}});function eJ(e,t){let{as:n=`div`,className:r,align:i=`start`,...a}=e,{orientation:o}=l.useContext(Hq),{triggerId:s,contentId:c,isOpen:u}=l.useContext(Uq);if(!c)return null;let d=o===`vertical`?void 0:i;return(0,q.jsx)(n,{ref:t,id:c,hidden:!u,"aria-labelledby":s,className:G($q({open:u,align:d}),r),"data-component":`NavigationMenu.Content`,"data-orientation":o,"data-align":d,"data-open":u?``:void 0,...a})}eJ.displayName=`NavigationMenu.Content`;var tJ=K(eJ);const nJ={root:`navigation-menu-description`};function rJ(e){let{className:t,...n}=e,{descriptionId:r}=l.useContext(Wq);return(0,q.jsx)(`span`,{id:r,className:G(nJ.root,t),"data-component":`NavigationMenu.Description`,...n})}rJ.displayName=`NavigationMenu.Description`;const iJ={root:`navigation-menu-divider`};function aJ(e){let{className:t,...n}=e;return(0,q.jsx)(`div`,{"aria-hidden":`true`,className:G(iJ.root,t),"data-component":`NavigationMenu.Divider`,...n})}aJ.displayName=`NavigationMenu.Divider`;const oJ={root:`navigation-menu-group-heading`};function sJ(e){let{as:t,className:n,...r}=e,i=l.useContext(Gq),a=t??Jq(i);return(0,q.jsx)(a,{className:G(oJ.root,n),"data-component":`NavigationMenu.GroupHeading`,...r})}sJ.displayName=`NavigationMenu.GroupHeading`;const cJ={root:`navigation-menu-group`},lJ={groupHeading:sJ};function uJ(e){let{title:t,children:n,className:r,hideDivider:i=!1,...a}=e,o=Y(),[s,c]=xr(n,lJ),u=s.groupHeading??(t?(0,q.jsx)(sJ,{children:t}):null),d=u?u.props.id??o:void 0;return(0,q.jsxs)(q.Fragment,{children:[i?null:(0,q.jsx)(aJ,{}),(0,q.jsxs)(`div`,{role:`group`,"aria-labelledby":d,className:G(cJ.root,r),"data-component":`NavigationMenu.Group`,...a,children:[u?l.cloneElement(u,{id:d}):null,c]})]})}uJ.displayName=`NavigationMenu.Group`;const dJ={root:`navigation-menu-item`};function fJ(e,t){let{children:n,className:r,value:i,onPointerEnter:a,onPointerLeave:o,...s}=e,c=Y(),u=i??c,d=Y(),f=Y(),{openValue:p,openOn:m,openAfterDelay:h,closeAfterDelay:g}=l.useContext(Hq),_=p===u,v=e=>{a?.(e),m===`hover`&&e.pointerType!==`touch`&&h(u)},y=e=>{o?.(e),m===`hover`&&e.pointerType!==`touch`&&g()},b=l.useMemo(()=>({value:u,triggerId:d,contentId:f,isOpen:_}),[u,d,f,_]);return(0,q.jsx)(Uq.Provider,{value:b,children:(0,q.jsx)(`li`,{ref:t,className:G(dJ.root,r),"data-component":`NavigationMenu.Item`,"data-open":_?``:void 0,...s,onPointerEnter:v,onPointerLeave:y,children:n})})}fJ.displayName=`NavigationMenu.Item`;var pJ=l.forwardRef(fJ);const mJ={root:`navigation-menu-visual`},hJ=({className:e,...t})=>(0,q.jsx)(`span`,{className:G(mJ.root,e),...t});function gJ(e){return(0,q.jsx)(hJ,{"data-component":`NavigationMenu.LeadingVisual`,...e})}gJ.displayName=`NavigationMenu.LeadingVisual`;const _J={root:`navigation-menu-sub-navigation`};function vJ(e,t){let{className:n,children:r,...i}=e,{linkId:a}=l.useContext(Wq),{depth:o}=l.useContext(Kq),s=l.useMemo(()=>({depth:o+1}),[o]);return!a||o>=4?null:(0,q.jsx)(Kq.Provider,{value:s,children:(0,q.jsx)(`ul`,{ref:t,"aria-labelledby":a,className:G(_J.root,n),"data-component":`NavigationMenu.SubNavigation`,"data-depth":o+1,...i,children:r})})}vJ.displayName=`NavigationMenu.SubNavigation`;var yJ=K(vJ);const bJ={root:`navigation-menu-visual-trailing`};function xJ(e){let{className:t,...n}=e;return(0,q.jsx)(hJ,{className:G(bJ.root,t),"data-component":`NavigationMenu.TrailingVisual`,...n})}xJ.displayName=`NavigationMenu.TrailingVisual`;const SJ={root:`navigation-menu-link`,active:`navigation-menu-link-active`,label:`navigation-menu-link-label`,item:`navigation-menu-sub-navigation-item`},CJ={leadingVisual:gJ,trailingVisual:xJ,description:rJ,subNavigation:yJ};function wJ(e,t){let{as:n=`a`,id:r,className:i,active:a,children:o,onClick:s,...c}=e,{setOpenValue:u}=l.useContext(Hq),{depth:d}=l.useContext(Kq),f=Y(r),p=Y(),[m,h]=xr(o,CJ),g=l.useMemo(()=>({linkId:f,descriptionId:p}),[f,p]),_=e=>{s?.(e),!e.defaultPrevented&&u(null)},v=(0,q.jsxs)(n,{ref:t,id:f,"aria-current":a?`page`:void 0,"aria-describedby":m.description?p:void 0,className:G(SJ.root,a&&SJ.active,i),"data-component":`NavigationMenu.Link`,"data-active":a?``:void 0,"data-has-description":m.description?``:void 0,...c,onClick:_,children:[m.leadingVisual,(0,q.jsxs)(`span`,{className:SJ.label,children:[h,m.description]}),m.trailingVisual]}),y=(0,q.jsxs)(Wq.Provider,{value:g,children:[v,m.subNavigation]});return d===0?y:(0,q.jsx)(`li`,{className:SJ.item,children:y})}wJ.displayName=`NavigationMenu.Link`;var TJ=K(wJ);const EJ={root:`navigation-menu-list`},DJ=(e,t)=>Array.from(e.querySelectorAll(`[data-component='NavigationMenu.Trigger'], [data-component='NavigationMenu.Link']`)).filter(e=>{let n=e.closest(`[data-component='NavigationMenu.Content']`);return n&&(t===`horizontal`||n.hasAttribute(`hidden`))?!1:!e.hasAttribute(`disabled`)&&e.getAttribute(`aria-disabled`)!==`true`});function OJ(e,t){let{children:n,className:r,onKeyDown:i,...a}=e,{orientation:o,openValue:s,setOpenValue:c}=l.useContext(Hq),u=l.useRef(null),d=ar(t,u),f=e=>{i?.(e);let t=u.current;if(e.defaultPrevented||!t)return;let n=o===`vertical`,r=n?`ArrowDown`:`ArrowRight`,a=n?`ArrowUp`:`ArrowLeft`;if(n&&e.key===`ArrowLeft`){let n=document.activeElement;if(s===null||!(n instanceof HTMLElement)||!t.contains(n))return;e.preventDefault(),e.stopPropagation(),n.closest(`[data-component='NavigationMenu.Content']`)?.closest(`li`)?.querySelector(`[data-component='NavigationMenu.Trigger']`)?.focus(),c(null);return}let l=e.key===`Home`||e.key===`End`,d=e.key===r?1:e.key===a?-1:0;if(d===0&&!l)return;let f=DJ(t,o),p=f.indexOf(document.activeElement);if(p!==-1){if(e.preventDefault(),e.stopPropagation(),!n&&s!==null&&c(null),l){f[e.key===`Home`?0:f.length-1].focus();return}f[(p+d+f.length)%f.length].focus()}};return(0,q.jsx)(`ul`,{ref:d,className:G(EJ.root,r),"data-component":`NavigationMenu.List`,"data-orientation":o,...a,onKeyDown:f,children:n})}OJ.displayName=`NavigationMenu.List`;var kJ=l.forwardRef(OJ);const AJ={root:`navigation-menu-trigger`,chevron:`navigation-menu-chevron`};function jJ(e,t){let{children:n,className:r,onClick:i,onKeyDown:a,...o}=e,{setOpenValue:s,orientation:c}=l.useContext(Hq),{value:u,triggerId:d,contentId:f,isOpen:p}=l.useContext(Uq),m=l.useRef(!1);if(rr(()=>{!p||!m.current||(m.current=!1,mr(document.getElementById(f))[0]?.focus())},[p,f]),!d)return null;let h=e=>{i?.(e),!e.defaultPrevented&&s(p?null:u)},g=e=>{if(a?.(e),e.defaultPrevented)return;let t=c===`vertical`?`ArrowRight`:`ArrowDown`;if(e.key===t){if(e.preventDefault(),!p){m.current=!0,s(u);return}mr(document.getElementById(f))[0]?.focus()}};return(0,q.jsxs)(`button`,{ref:t,type:`button`,id:d,"aria-expanded":p,"aria-controls":f,className:G(AJ.root,r),"data-component":`NavigationMenu.Trigger`,"data-open":p?``:void 0,...o,onClick:h,onKeyDown:g,children:[n,(0,q.jsx)(Qt,{className:AJ.chevron})]})}jJ.displayName=`NavigationMenu.Trigger`;var MJ=l.forwardRef(jJ);const NJ=Object.assign(Qq,{Heading:Vq,List:kJ,Item:pJ,Trigger:MJ,Content:tJ,Link:TJ,SubNavigation:yJ,Group:uJ,GroupHeading:sJ,Description:rJ,LeadingVisual:gJ,TrailingVisual:xJ,Divider:aJ}),PJ={root:`number-input`,stepper:`number-input-stepper`,step:`number-input-step`},FJ=({incrementLabel:e,decrementLabel:t,canIncrement:n,canDecrement:r,onIncrement:i,onDecrement:a})=>(0,q.jsxs)(`span`,{className:PJ.stepper,"data-component":`NumberInput.Stepper`,children:[(0,q.jsx)(gi,{type:`button`,variant:`invisible`,size:`small`,icon:tn,"aria-label":e,disabled:!n,tabIndex:-1,onClick:i,className:PJ.step,"data-component":`NumberInput.Increment`}),(0,q.jsx)(gi,{type:`button`,variant:`invisible`,size:`small`,icon:Qt,"aria-label":t,disabled:!r,tabIndex:-1,onClick:a,className:PJ.step,"data-component":`NumberInput.Decrement`})]});function IJ(e,t){let{className:n,value:r,defaultValue:i,min:a,max:o,step:s=1,disabled:c,readOnly:u,hideStepper:d=!1,incrementLabel:f=`Increase`,decrementLabel:p=`Decrease`,onChange:m,...h}=e,g=l.useRef(null),_=ar(t,g),v=r!==void 0,[y,b]=l.useState(i??null),x=v?r:y,S=(e,t)=>{v||b(e),m?.(e,t)},C=e=>{S(RK(e.target),e)},w=e=>{let t=LK(x,e,{step:s,min:a,max:o});!v&&g.current&&(g.current.value=String(t)),S(t),g.current?.focus()},T=x!=null&&o!==void 0&&x>=o,E=x!=null&&a!==void 0&&x<=a,D=!!c||!!u;return(0,q.jsx)(qo,{ref:_,type:`number`,value:v?x??``:void 0,defaultValue:v?void 0:i,min:a,max:o,step:s,disabled:c,readOnly:u,onChange:C,className:G(PJ.root,n),trailingAction:d?void 0:(0,q.jsx)(FJ,{incrementLabel:f,decrementLabel:p,canIncrement:!D&&!T,canDecrement:!D&&!E,onIncrement:()=>w(1),onDecrement:()=>w(-1)}),"data-component":`NumberInput`,...h})}IJ.displayName=`NumberInput`;var LJ=K(IJ);const RJ={current:null},zJ=(0,l.createContext)({padding:`normal`,rowGap:`normal`,columnGap:`normal`,paneRef:RJ,contentWrapperRef:RJ,sidebarRef:RJ,sidebarContentWrapperRef:RJ}),BJ={root:`page-layout-horizontal-divider`};function VJ(e,t){let{className:n,style:r,variant:i=`none`,position:a,...o}=e,{padding:s}=l.useContext(zJ);return(0,q.jsx)(`div`,{ref:t,className:G(BJ.root,n),style:{"--spacing-divider":`var(--page-layout-spacing-${s})`,...r},"data-component":`PageLayout.HorizontalDivider`,...Ui(`variant`,i),...Ui(`position`,a),...o})}VJ.displayName=`PageLayout.HorizontalDivider`;var HJ=K(VJ);const UJ={root:`page-layout-footer`,hidden:`page-layout-hidden`,divider:`page-layout-footer-divider`,content:`page-layout-region-content`};function WJ(e,t){let{className:n,style:r,children:i,padding:a=`none`,divider:o=`none`,hidden:s=!1,...c}=e,{rowGap:u}=l.useContext(zJ);return(0,q.jsxs)(`footer`,{ref:t,className:G(UJ.root,UJ.hidden,n),style:{"--spacing":`var(--page-layout-spacing-${u})`,...r},"data-component":`PageLayout.Footer`,...Ui(`hidden`,s),...c,children:[(0,q.jsx)(HJ,{variant:o,className:UJ.divider,style:{"--spacing":`var(--page-layout-spacing-${u})`}}),(0,q.jsx)(`div`,{className:UJ.content,style:{"--spacing":`var(--page-layout-spacing-${a})`},children:i})]})}WJ.displayName=`PageLayout.Footer`;var GJ=K(WJ);const KJ={root:`page-layout-header`,hidden:`page-layout-hidden`,content:`page-layout-region-content`,divider:`page-layout-header-divider`};function qJ(e,t){let{className:n,style:r,children:i,padding:a=`none`,divider:o=`none`,hidden:s=!1,...c}=e,{rowGap:u}=l.useContext(zJ);return(0,q.jsxs)(`header`,{ref:t,className:G(KJ.root,KJ.hidden,n),style:{"--spacing":`var(--page-layout-spacing-${u})`,...r},"data-component":`PageLayout.Header`,...Ui(`hidden`,s),...c,children:[(0,q.jsx)(`div`,{className:KJ.content,style:{"--spacing":`var(--page-layout-spacing-${a})`},children:i}),(0,q.jsx)(HJ,{variant:o,className:KJ.divider,style:{"--spacing":`var(--page-layout-spacing-${u})`}})]})}qJ.displayName=`PageLayout.Header`;var JJ=K(qJ);const YJ=1280,XJ={small:256,medium:296,large:320},ZJ=e=>typeof e==`object`&&`min`in e&&`default`in e&&`max`in e,QJ=e=>e===`small`||e===`medium`||e===`large`,$J=e=>QJ(e)?XJ[e]:ZJ(e)?parseInt(e.default,10):0,eY=()=>$n&&window.innerWidth>=1280?959:511,tY=e=>`Pane width ${e} pixels`,nY=(e,t,n=tY)=>{e&&(t.min!==void 0&&e.setAttribute(`aria-valuemin`,String(t.min)),t.max!==void 0&&e.setAttribute(`aria-valuemax`,String(t.max)),t.current!==void 0&&(e.setAttribute(`aria-valuenow`,String(t.current)),e.setAttribute(`aria-valuetext`,n(t.current))))},rY=({handle:e,pane:t,contentWrapper:n})=>{e?.style.setProperty(`--drag-handle-background-color`,`var(--background-color-accent-emphasis)`),e?.style.setProperty(`--drag-handle-opacity`,`1`),e?.style.setProperty(`--drag-handle-transition`,`none`),t?.setAttribute(`data-dragging`,`true`),n?.setAttribute(`data-dragging`,`true`)},iY=({handle:e,pane:t,contentWrapper:n})=>{e?.style.removeProperty(`--drag-handle-background-color`),e?.style.removeProperty(`--drag-handle-opacity`),e?.style.removeProperty(`--drag-handle-transition`),t?.removeAttribute(`data-dragging`),n?.removeAttribute(`data-dragging`)},aY={save:(e,t)=>{try{localStorage.setItem(e,String(t))}catch{}},get:e=>{try{let t=localStorage.getItem(e);if(t!==null){let e=Number(t);if(!Number.isNaN(e)&&e>0)return Math.round(e)}}catch{}return null}},oY={root:`page-layout-drag-handle`},sY=e=>e===`ArrowLeft`||e===`ArrowRight`||e===`ArrowUp`||e===`ArrowDown`,cY=e=>e===`ArrowLeft`||e===`ArrowDown`;function lY(e){let{className:t,handleRef:n,onDragStart:r,onDrag:i,onDragEnd:a,onDoubleClick:o,"aria-label":s,"aria-labelledby":c,"aria-valuemin":u,"aria-valuemax":d,"aria-valuenow":f,dragTargetRef:p,contentWrapperRef:m,formatValueText:h=tY}=e,g=l.useRef({onDragStart:r,onDrag:i,onDragEnd:a});l.useEffect(()=>{g.current={onDragStart:r,onDrag:i,onDragEnd:a}});let _=l.useRef(!1),v=l.useRef(null),y=l.useRef(null),b=l.useCallback(()=>{_.current||=(rY({handle:n.current,pane:p?.current??null,contentWrapper:m?.current??null}),!0)},[n,p,m]),x=l.useCallback(()=>{_.current&&=(iY({handle:n.current,pane:p?.current??null,contentWrapper:m?.current??null}),!1)},[n,p,m]);return l.useEffect(()=>()=>{v.current!==null&&(cancelAnimationFrame(v.current),v.current=null)},[]),(0,q.jsx)(`div`,{ref:n,role:`slider`,tabIndex:0,"aria-label":c?void 0:s??`Draggable pane splitter`,"aria-labelledby":c,"aria-valuemin":u,"aria-valuemax":d,"aria-valuenow":f,"aria-valuetext":f===void 0?void 0:h(f),className:G(oY.root,t),onPointerDown:e=>{if(e.button===0){e.preventDefault();try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}g.current.onDragStart(e.clientX),b()}},onPointerMove:e=>{_.current&&(e.preventDefault(),y.current=e.clientX,v.current===null&&(v.current=requestAnimationFrame(()=>{v.current=null,y.current!==null&&(g.current.onDrag(y.current,!1),y.current=null)})))},onPointerUp:e=>{_.current&&e.preventDefault()},onLostPointerCapture:()=>{_.current&&(v.current!==null&&(cancelAnimationFrame(v.current),v.current=null,y.current=null),x(),g.current.onDragEnd())},onKeyDown:e=>{sY(e.key)&&(e.preventDefault(),b(),g.current.onDrag(cY(e.key)?-3:3,!0))},onKeyUp:e=>{sY(e.key)&&(e.preventDefault(),x(),g.current.onDragEnd())},onDoubleClick:o,"data-component":`PageLayout.DragHandle`})}lY.displayName=`PageLayout.DragHandle`;const uY={root:`page-layout-vertical-divider`};function dY(e,t){let{className:n,variant:r=`none`,position:i,...a}=e;return(0,q.jsx)(`div`,{ref:t,className:G(uY.root,n),"data-component":`PageLayout.VerticalDivider`,...Ui(`variant`,r),...Ui(`position`,i),...a})}dY.displayName=`PageLayout.VerticalDivider`;var fY=K(dY);const pY=({width:e,minWidth:t,resizable:n,widthStorageKey:r,paneRef:i,handleRef:a,contentWrapperRef:o,constrainToViewport:s=!1,onResizeEnd:c,currentWidth:u,formatValueText:d})=>{let f=ZJ(e),p=f?parseInt(e.min,10):t,m=f?parseInt(e.max,10):null,h=l.useMemo(()=>$J(e),[e]),g=l.useRef(r),_=l.useRef(c),v=l.useRef(d);rr(()=>{g.current=r,_.current=c,v.current=d});let y=l.useRef(s?256:511),b=l.useCallback(()=>{let e=window.innerWidth,t=e>0?Math.max(p,e-y.current):p;return m===null?t:s?Math.min(m,t):m},[m,p,s]),[x,S]=l.useState(()=>typeof u==`number`?u:c===void 0&&n===!0&&r!==void 0?aY.get(r)??h:h),[C,w]=l.useState(h),[T,E]=l.useState(u),D=u!==T;D&&(E(u),typeof u==`number`?S(u):T!==void 0&&S(h)),h!==C&&(w(h),u===void 0&&!D&&S(h));let O=u??x,k=l.useRef(O),[A,j]=l.useState(()=>m??600),M=l.useRef(A);rr(()=>{k.current=O},[O]);let N=l.useCallback(()=>$J(e),[e]),P=l.useCallback(e=>{let t=Math.round(e);if(k.current=t,l.startTransition(()=>{S(t)}),_.current){try{_.current(t)}catch{}return}n&&g.current&&aY.save(g.current,t)},[n]),F=l.useRef(b);return rr(()=>{F.current=b}),rr(()=>{if(!n)return;let e=window.innerWidth,t=()=>{let t=window.innerWidth,n=e<YJ!=t<YJ;e=t,n&&(y.current=eY());let r=F.current();i.current?.style.setProperty(`--pane-max-width`,`${r}px`);let o=k.current>r;o&&(k.current=r,i.current?.style.setProperty(`--pane-width`,`${r}px`)),nY(a.current,{max:r,current:k.current},v.current),(r!==M.current||o)&&(M.current=r,l.startTransition(()=>{j(r),o&&S(r)}))};y.current=eY();let r=F.current();if(M.current=r,i.current?.style.setProperty(`--pane-max-width`,`${r}px`),nY(a.current,{min:p,max:r,current:k.current},v.current),l.startTransition(()=>{j(r)}),m!==null&&!s)return;let c=0,u=null,d=null,f=!1,h=()=>{f||(f=!0,i.current?.setAttribute(`data-dragging`,`true`),o?.current?.setAttribute(`data-dragging`,`true`))},g=()=>{f&&(f=!1,i.current?.removeAttribute(`data-dragging`),o?.current?.removeAttribute(`data-dragging`))},_=()=>{h();let e=performance.now();e-c>=16?(c=e,t()):u===null&&(u=requestAnimationFrame(()=>{u=null,c=performance.now(),t()})),d!==null&&clearTimeout(d),d=setTimeout(g,150)};return window.addEventListener(`resize`,_),()=>{u!==null&&cancelAnimationFrame(u),d!==null&&clearTimeout(d),g(),window.removeEventListener(`resize`,_)}},[n,m,s,p,i,a,o]),{currentWidth:O,currentWidthRef:k,minPaneWidth:p,maxPaneWidth:A,getMaxPaneWidth:b,getDefaultWidth:N,saveWidth:P}},mY={wrapper:`page-layout-sidebar-wrapper`,hidden:`page-layout-hidden`,position:`page-layout-sidebar-position`,sticky:`page-layout-sidebar-sticky`,fullscreen:`page-layout-sidebar-fullscreen`,sidebar:`page-layout-sidebar`,sidebarResizable:`page-layout-sidebar-resizable`,dragging:`page-layout-dragging`,sidebarFullscreen:`page-layout-sidebar-fullscreen-inner`,divider:`page-layout-sidebar-divider`};function hY(e,t){let{className:n,style:r,children:i,id:a,position:o=`start`,width:s=`medium`,minWidth:c=256,currentWidth:u,onResizeEnd:d,widthStorageKey:f,padding:p=`none`,divider:m=`none`,resizable:h=!1,sticky:g=!1,responsiveVariant:_=`default`,hidden:v=!1,"aria-label":y,"aria-labelledby":b,...x}=e,{columnGap:S,sidebarRef:C,sidebarContentWrapperRef:w}=l.useContext(zJ),T=l.useRef(null),E=l.useRef(0),D=l.useRef(0),O=l.useRef(0),{currentWidth:k,currentWidthRef:A,minPaneWidth:j,maxPaneWidth:M,getMaxPaneWidth:N,getDefaultWidth:P,saveWidth:F}=pY({width:s,minWidth:c,resizable:h,widthStorageKey:f,paneRef:C,handleRef:T,contentWrapperRef:w,constrainToViewport:!0,onResizeEnd:d,currentWidth:u}),I=ar(t,C),L=Tp(C),ee=Y(a),R=L?{role:`region`,tabIndex:0,...b?{"aria-labelledby":b}:y?{"aria-label":y}:{}}:{},z=e=>{C.current?.style.setProperty(`--pane-width`,`${e}px`),A.current=e},te=(0,q.jsx)(fY,{variant:h?`line`:m,position:o,className:mY.divider,children:h?(0,q.jsx)(lY,{handleRef:T,dragTargetRef:C,contentWrapperRef:w,"aria-valuemin":j,"aria-valuemax":M,"aria-valuenow":k,onDragStart:e=>{E.current=e,D.current=C.current?.getBoundingClientRect().width??A.current,O.current=N()},onDrag:(e,t)=>{let n=t?N():O.current;if(t){let t=o===`end`?-e:e,r=Math.max(j,Math.min(n,A.current+t));r!==A.current&&(z(r),nY(T.current,{current:r,max:n}));return}if(!C.current)return;let r=e-E.current,i=Math.max(j,Math.min(n,D.current+(o===`end`?-r:r)));Math.round(i)!==Math.round(A.current)&&(z(i),nY(T.current,{current:Math.round(i),max:n}))},onDragEnd:()=>F(A.current),onDoubleClick:()=>{let e=P();z(e),nY(T.current,{current:e}),F(e)}}):null});return(0,q.jsxs)(`div`,{className:G(mY.wrapper,mY.hidden,mY.position,mY.sticky,mY.fullscreen,n),style:{"--spacing-column":`var(--page-layout-spacing-${S})`,...r},"data-position":o,"data-sticky":g||void 0,"data-responsive-variant":_==="default"?void 0:_,...Ui(`is-hidden`,v),children:[o===`end`?te:null,(0,q.jsx)(`div`,{ref:I,suppressHydrationWarning:h&&!!f&&!d,className:G(mY.sidebar,mY.sidebarResizable,mY.sidebarFullscreen,mY.dragging),style:{"--spacing":`var(--page-layout-spacing-${p})`,"--pane-min-width":ZJ(s)?s.min:`${c}px`,"--pane-max-width":ZJ(s)?s.max:`calc(100vw - var(--sidebar-max-width-diff))`,"--pane-width-custom":ZJ(s)?s.default:void 0,"--pane-width-size":`var(--pane-width-${QJ(s)?s:`custom`})`,"--pane-width":`${k}px`},"data-component":`PageLayout.Sidebar`,"data-resizable":h||void 0,...R,...a?{id:ee}:{},...x,children:i}),o===`start`?te:null]})}hY.displayName=`PageLayout.Sidebar`;var gY=K(hY);const _Y={content:`page-layout-content-row`},vY=W(`page-layout`,{variants:{hasSidebar:{true:`page-layout-has-sidebar`,false:``}}}),yY=W(`page-layout-wrapper`,{variants:{width:{full:`page-layout-width-full`,medium:`page-layout-width-medium`,large:`page-layout-width-large`,xlarge:`page-layout-width-xlarge`}}});function bY(e,t){let{className:n,style:r,children:i,containerWidth:a=`xlarge`,padding:o=`normal`,rowGap:s=`normal`,columnGap:c=`normal`,...u}=e,d=l.useRef(null),f=l.useRef(null),p=l.useRef(null),m=l.useRef(null),[h,g]=xr(i,{header:JJ,footer:GJ,sidebar:gY}),_=l.useMemo(()=>({padding:o,rowGap:s,columnGap:c,paneRef:d,contentWrapperRef:f,sidebarRef:p,sidebarContentWrapperRef:m}),[o,s,c]);return(0,q.jsx)(zJ.Provider,{value:_,children:(0,q.jsxs)(`div`,{ref:t,className:G(vY({hasSidebar:!!h.sidebar}),n),style:{"--spacing":`var(--page-layout-spacing-${o})`,...r},"data-component":`PageLayout`,"data-has-sidebar":h.sidebar?``:void 0,...u,children:[h.sidebar,(0,q.jsxs)(`div`,{ref:m,className:G(yY({width:a})),"data-page-layout-wrapper":``,"data-width":a,children:[h.header,(0,q.jsx)(`div`,{className:_Y.content,children:g}),h.footer]})]})})}bY.displayName=`PageLayout`;var xY=K(bY);const SY={wrapper:`page-layout-content-wrapper`,hidden:`page-layout-hidden`,dragging:`page-layout-dragging`},CY=W(`page-layout-content`,{variants:{width:{full:`page-layout-content-width-full`,medium:`page-layout-content-width-medium`,large:`page-layout-content-width-large`,xlarge:`page-layout-content-width-xlarge`}}});function wY(e,t){let{as:n=`main`,className:r,children:i,width:a=`full`,padding:o=`none`,hidden:s=!1,...c}=e,{contentWrapperRef:u}=l.useContext(zJ),d=ar(t,u);return(0,q.jsx)(n,{ref:d,className:G(SY.wrapper,SY.hidden,SY.dragging,r),"data-component":`PageLayout.Content`,...Ui(`is-hidden`,s),...c,children:(0,q.jsx)(`div`,{className:G(CY({width:a})),"data-width":a,style:{"--spacing":`var(--page-layout-spacing-${o})`},children:i})})}wY.displayName=`PageLayout.Content`;var TY=K(wY);const EY={wrapper:`page-layout-pane-wrapper`,hidden:`page-layout-hidden`,position:`page-layout-pane-position`,sticky:`page-layout-pane-sticky`,pane:`page-layout-pane`,paneResizable:`page-layout-pane-resizable`,dragging:`page-layout-dragging`,horizontalDivider:`page-layout-pane-horizontal-divider`,verticalDivider:`page-layout-pane-vertical-divider`};function DY(e,t){let{className:n,style:r,children:i,id:a,position:o=`end`,width:s=`medium`,minWidth:c=256,currentWidth:u,onResizeEnd:d,widthStorageKey:f=`paneWidth`,padding:p=`none`,divider:m=`none`,resizable:h=!1,sticky:g=!1,offsetHeader:_=0,hidden:v=!1,"aria-label":y,"aria-labelledby":b,...x}=e,S=ls(o)?`end`:o,C=ls(m)?`none`:m,{rowGap:w,columnGap:T,paneRef:E,contentWrapperRef:D}=l.useContext(zJ),O=l.useRef(null),k=l.useRef(0),A=l.useRef(0),j=l.useRef(0),{currentWidth:M,currentWidthRef:N,minPaneWidth:P,maxPaneWidth:F,getMaxPaneWidth:I,getDefaultWidth:L,saveWidth:ee}=pY({width:s,minWidth:c,resizable:h,widthStorageKey:f,paneRef:E,handleRef:O,contentWrapperRef:D,onResizeEnd:d,currentWidth:u}),R=ar(t,E),z=Tp(E),te=Y(a),ne=z?{role:`region`,tabIndex:0,...b?{"aria-labelledby":b}:y?{"aria-label":y}:{}}:{},B=e=>{E.current?.style.setProperty(`--pane-width`,`${e}px`),N.current=e};return(0,q.jsxs)(`div`,{className:G(EY.wrapper,EY.hidden,EY.position,EY.sticky,n),style:{"--offset-header":typeof _==`number`?`${_}px`:_,"--spacing-row":`var(--page-layout-spacing-${w})`,"--spacing-column":`var(--page-layout-spacing-${T})`,...r},"data-sticky":g||void 0,...Ui(`is-hidden`,v),...Ui(`position`,o),children:[(0,q.jsx)(HJ,{variant:ls(m)?m:{narrow:C,regular:`none`},position:o,className:EY.horizontalDivider,style:{"--spacing":`var(--page-layout-spacing-${w})`}}),(0,q.jsx)(`div`,{ref:R,suppressHydrationWarning:h&&!d,className:G(EY.pane,EY.paneResizable,EY.dragging),style:{"--spacing":`var(--page-layout-spacing-${p})`,"--pane-min-width":ZJ(s)?s.min:`${c}px`,"--pane-max-width":ZJ(s)?s.max:`calc(100vw - var(--pane-max-width-diff))`,"--pane-width-custom":ZJ(s)?s.default:void 0,"--pane-width-size":`var(--pane-width-${QJ(s)?s:`custom`})`,"--pane-width":`${M}px`},"data-component":`PageLayout.Pane`,"data-resizable":h||void 0,...ne,...a?{id:te}:{},...x,children:i}),(0,q.jsx)(fY,{variant:ls(m)?{narrow:`none`,regular:h?`line`:m.regular??`none`,wide:h?`line`:m.wide??m.regular??`none`}:{narrow:`none`,regular:h?`line`:C},position:o,className:EY.verticalDivider,style:{"--spacing":`var(--page-layout-spacing-${T})`},children:h?(0,q.jsx)(lY,{handleRef:O,dragTargetRef:E,contentWrapperRef:D,"aria-valuemin":P,"aria-valuemax":F,"aria-valuenow":M,onDragStart:e=>{k.current=e,A.current=E.current?.getBoundingClientRect().width??N.current,j.current=I()},onDrag:(e,t)=>{let n=t?I():j.current;if(t){let t=Math.max(P,Math.min(n,N.current+e));t!==N.current&&(B(t),nY(O.current,{current:t,max:n}));return}if(!E.current)return;let r=e-k.current,i=Math.max(P,Math.min(n,A.current+(S===`end`?-r:r)));Math.round(i)!==Math.round(N.current)&&(B(i),nY(O.current,{current:Math.round(i),max:n}))},onDragEnd:()=>ee(N.current),onDoubleClick:()=>{let e=L();B(e),nY(O.current,{current:e}),ee(e)}}):null})]})}DY.displayName=`PageLayout.Pane`;var OY=K(DY);const kY=Object.assign(xY,{Header:JJ,Content:TY,Pane:OY,Sidebar:gY,Footer:GJ}),AY=[`narrow`,`regular`,`wide`],jY={root:`pagination`,steps:`pagination-steps`,hidden:{narrow:`pagination-hidden-narrow`,regular:`pagination-hidden-regular`,wide:`pagination-hidden-wide`}},MY=W(`pagination-step`,{variants:{step:{previous:`pagination-step-previous`,next:`pagination-step-next`},current:{true:`pagination-step-current`,false:``},inert:{true:`pagination-step-inert`,false:``}}}),NY=e=>typeof e==`object`?AY.filter(t=>e[t]===!1):e?[]:[...AY],PY=({page:e,children:t})=>(0,q.jsxs)(q.Fragment,{children:[e.type===`previous`?(0,q.jsx)($t,{"data-component":`Pagination.PreviousPageIcon`}):null,t,e.type===`next`?(0,q.jsx)(en,{"data-component":`Pagination.NextPageIcon`}):null]}),FY=e=>`#${e}`;function IY(e,t){let{as:n=`nav`,className:r,pageCount:i,currentPage:a,onPageChange:o,hrefBuilder:s=FY,marginPageCount:c=1,surroundingPageCount:u=2,showPages:d=!0,renderPage:f,...p}=e,m=l.useMemo(()=>e_(i,a,!!d,c,u),[i,a,d,c,u]),h=NY(d),g=m.map(e=>{let{key:t,content:n,presentational:r,props:i}=t_(e,s,t=>o?.(t,e.num)),a=e.type===`previous`||e.type===`next`,c=!!r||!!i[`aria-hidden`],l=G(MY({step:a?e.type:void 0,current:e.selected,inert:c}));if(f&&!r)return f({key:t,children:(0,q.jsx)(PY,{page:e,children:n}),number:e.num,className:l,"data-component":`Pagination.Page`,...i});let u=r?`span`:`a`,d=a?e.type===`previous`?`Pagination.PreviousPage`:`Pagination.NextPage`:`Pagination.Page`;return(0,q.jsx)(u,{role:r?`presentation`:void 0,className:l,"data-component":d,...i,children:(0,q.jsx)(PY,{page:e,children:n})},t)});return(0,q.jsx)(n,{ref:t,"aria-label":`Pagination`,className:G(jY.root,r),"data-component":`Pagination`,...p,children:(0,q.jsx)(`div`,{className:G(jY.steps,h.map(e=>jY.hidden[e])),"data-hidden-viewport-ranges":h.join(` `)||void 0,children:g})})}IY.displayName=`Pagination`;var LY=K(IY);const RY={root:`password-input`,toggle:`password-input-toggle`};function zY(e,t){let{className:n,visible:r,defaultVisible:i=!1,onVisibilityChange:a,hideToggle:o=!1,showLabel:s=`Show password`,hideLabel:c=`Hide password`,disabled:u,...d}=e,f=r!==void 0,[p,m]=l.useState(i),h=f?r:p;return(0,q.jsx)(qo,{ref:t,type:h?`text`:`password`,disabled:u,className:G(RY.root,n),trailingAction:o?void 0:(0,q.jsx)(qo.Action,{icon:h?pn:mn,"aria-label":h?c:s,disabled:u,onClick:e=>{e.stopPropagation();let t=!h;f||m(t),a?.(t)},className:RY.toggle,"data-component":`PasswordInput.Toggle`}),"data-component":`PasswordInput`,...d})}zY.displayName=`PasswordInput`;var BY=K(zY);const VY={root:`pin-input`},HY=W(`pin-input-box`,{variants:{size:{small:`pin-input-box-small`,medium:`pin-input-box-medium`,large:`pin-input-box-large`}}}),UY={numeric:/[0-9]/,alphanumeric:/[0-9a-zA-Z]/},WY=(e,t)=>Array.from(e).filter(e=>UY[t].test(e)).join(``);function GY(e,t){let{className:n,length:r=6,value:i,defaultValue:a=``,type:o=`numeric`,mask:s=!1,size:c=`medium`,disabled:u,readOnly:d,required:f,validationStatus:p,autoFocus:m,autoComplete:h,boxLabel:g=`Digit`,onChange:_,onComplete:v,"aria-label":y,"aria-labelledby":b,...x}=e,S=l.useRef([]),C=i!==void 0,[w,T]=l.useState(()=>WY(a,o).slice(0,r)),E=C?i:w,D=Array.from({length:r},(e,t)=>E[t]??``),O=D.findIndex(e=>e===``),k=l.useRef(!1),A=e=>{let t=S.current[e];k.current=!0,t?.focus(),t?.select(),k.current=!1},j=e=>{C||T(e),_?.(e),e.length===r&&v?.(e)},M=(e,t)=>{let n=WY(t,o);if(n.length===0)return;let i=O===-1?e:Math.min(e,O),a=[...D],s=i;Array.from(n).forEach(e=>{s<r&&(a[s]=e,s+=1)}),j(a.join(``)),A(Math.min(s,r-1))},N=e=>{let t=[...D];t[e]=``,j(t.join(``))},P=e=>{if(k.current)return;let t=O===-1?e:Math.min(e,O);t!==e&&A(t)},F=(e,t)=>{if(t.target.value===``){N(e);return}M(e,t.target.value)},I=(e,t)=>{u||d||(t.preventDefault(),M(e,t.clipboardData.getData(`text`)))},L=(e,t)=>{if(!(u||d)){if(t.key===`Backspace`){if(t.preventDefault(),D[e]!==``){N(e);return}e>0&&(N(e-1),A(e-1));return}if(t.key===`Delete`){t.preventDefault(),N(e);return}if(t.key===`ArrowLeft`&&e>0){t.preventDefault(),A(e-1);return}if(t.key===`ArrowRight`&&e<r-1){t.preventDefault(),A(e+1);return}if(t.key===`Home`){t.preventDefault(),A(0);return}t.key===`End`&&(t.preventDefault(),A(r-1))}};return(0,q.jsx)(`div`,{ref:t,role:y||b?`group`:void 0,"aria-label":y,"aria-labelledby":b,className:G(VY.root,n),"data-component":`PINInput`,"data-size":c,"data-disabled":u,"data-validation":p,...x,children:D.map((e,t)=>(0,q.jsx)(qo,{ref:e=>{S.current[t]=e},type:s?`password`:`text`,inputMode:o===`numeric`?`numeric`:`text`,size:c,value:e,maxLength:1,disabled:u,readOnly:d,required:f,validationStatus:p,autoFocus:m&&t===0,autoComplete:t===0?h:`off`,"aria-label":`${g} ${t+1} of ${r}`,onChange:e=>F(t,e),onKeyDown:e=>L(t,e),onPaste:e=>I(t,e),onFocus:()=>P(t),className:G(HY({size:c})),"data-component":`PINInput.Box`},t))})}GY.displayName=`PINInput`;var KY=K(GY);const qY={root:`placeholder`};function JY(e,t){let{as:n=`div`,className:r,width:i,height:a,label:o,style:s,children:c,...l}=e;return(0,q.jsx)(n,{ref:t,className:G(qY.root,r),style:{...s,"--placeholder-width":i,"--placeholder-height":a},"data-component":`Placeholder`,...l,children:c??o})}JY.displayName=`Placeholder`;var YY=K(JY);const XY=(0,l.createContext)({}),ZY=W(`popover`,{variants:{open:{true:`popover-open`,false:``},relative:{true:`popover-relative`,false:``}}});function QY(e,t){let{as:n=`div`,className:r,caret:i=`top`,open:a=!1,relative:o=!1,...s}=e,c={open:a,caret:i};return(0,q.jsx)(XY.Provider,{value:c,children:(0,q.jsx)(n,{ref:t,className:G(ZY({open:a,relative:o}),r),"data-component":`Popover`,"data-caret":i,"data-open":a?``:void 0,"data-relative":o?``:void 0,...s})})}QY.displayName=`Popover`;var $Y=K(QY);const eX=W(`popover-content`,{variants:{caret:{top:`popover-content-caret-top`,bottom:`popover-content-caret-bottom`,left:`popover-content-caret-left`,right:`popover-content-caret-right`,"top-left":`popover-content-caret-top-left`,"top-right":`popover-content-caret-top-right`,"bottom-left":`popover-content-caret-bottom-left`,"bottom-right":`popover-content-caret-bottom-right`,"left-top":`popover-content-caret-left-top`,"left-bottom":`popover-content-caret-left-bottom`,"right-top":`popover-content-caret-right-top`,"right-bottom":`popover-content-caret-right-bottom`},width:{xsmall:`popover-content-width-xsmall`,small:`popover-content-width-small`,medium:`popover-content-width-medium`,large:`popover-content-width-large`,xlarge:`popover-content-width-xlarge`,auto:`popover-content-width-auto`},height:{small:`popover-content-height-small`,medium:`popover-content-height-medium`,large:`popover-content-height-large`,xlarge:`popover-content-height-xlarge`,auto:`popover-content-height-auto`,"fit-content":`popover-content-height-fit-content`},overflow:{auto:`popover-content-overflow-auto`,hidden:`popover-content-overflow-hidden`,scroll:`popover-content-overflow-scroll`,visible:`popover-content-overflow-visible`}}}),tX=[];function nX(e,t){let{as:n=`div`,className:r,width:i=`small`,height:a=`fit-content`,overflow:o=`visible`,onClickOutside:s,onEscape:c,ignoreClickRefs:u=tX,...d}=e,{open:f=!1,caret:p=`top`}=l.useContext(XY),m=l.useRef(null),h=ar(t,m);return l.useEffect(()=>{if(!f||!s)return;let e=e=>{if(e instanceof MouseEvent&&e.button>0)return;let{target:t}=e;t instanceof Node&&(m.current?.contains(t)||u.some(({current:e})=>e?.contains(t))||s(e))};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[f,s,u]),Hi(e=>{!f||!c||(c(e),e.preventDefault())}),(0,q.jsx)(n,{ref:h,className:G(eX({caret:p,width:i,height:a,overflow:o}),r),"data-component":`Popover.Content`,"data-caret":p,"data-width":i,"data-height":a,"data-overflow":o,...d})}nX.displayName=`Popover.Content`;var rX=K(nX);const iX=Object.assign($Y,{Content:rX}),aX={ring:`progress-circle-ring`,track:`progress-circle-track`,indicator:`progress-circle-indicator`,label:`progress-circle-label`},oX=W(`progress-circle`,{variants:{size:{small:`progress-circle-small`,medium:`progress-circle-medium`,large:`progress-circle-large`},variant:{accent:`progress-circle-accent`,attention:`progress-circle-attention`,danger:`progress-circle-danger`,done:`progress-circle-done`,neutral:`progress-circle-neutral`,severe:`progress-circle-severe`,sponsors:`progress-circle-sponsors`,success:`progress-circle-success`}}});function sX(e,t){let{as:n=`span`,className:r,progress:i=0,size:a=`medium`,variant:o=`success`,style:s,children:c,"aria-valuenow":u,...d}=e,f=Math.min(Math.max(i,0),100),p=l.Children.toArray(c).length>0;return(0,q.jsxs)(n,{ref:t,role:`progressbar`,"aria-valuenow":u??Math.round(f),"aria-valuemin":0,"aria-valuemax":100,className:G(oX({size:a,variant:o}),r),style:{...s,"--progress-circle-progress":f},"data-component":`ProgressCircle`,"data-size":a,"data-variant":o,...d,children:[(0,q.jsxs)(`svg`,{className:aX.ring,viewBox:`0 0 32 32`,"aria-hidden":`true`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,q.jsx)(`circle`,{className:aX.track,cx:16,cy:16,r:14,pathLength:100}),(0,q.jsx)(`circle`,{className:aX.indicator,cx:16,cy:16,r:14,pathLength:100})]}),p?(0,q.jsx)(`span`,{className:aX.label,children:c}):null]})}sX.displayName=`ProgressCircle`;var cX=K(sX);const lX={L:1,M:0,Q:3,H:2},uX={numeric:1,alphanumeric:2,byte:4,kanji:8,eci:7,structuredAppend:3,fnc1First:5,fnc1Second:9,terminator:0},dX={numeric:[10,12,14],alphanumeric:[9,11,13],byte:[8,16,16],kanji:[8,10,12]};function fX(e,t){let n=dX[t];return n?e<=9?n[0]:e<=26?n[1]:n[2]:8}const pX={L:[{totalDataCodewords:0,ecCodewordsPerBlock:0,group1Blocks:0,group1DataCW:0,group2Blocks:0,group2DataCW:0},{totalDataCodewords:19,ecCodewordsPerBlock:7,group1Blocks:1,group1DataCW:19,group2Blocks:0,group2DataCW:0},{totalDataCodewords:34,ecCodewordsPerBlock:10,group1Blocks:1,group1DataCW:34,group2Blocks:0,group2DataCW:0},{totalDataCodewords:55,ecCodewordsPerBlock:15,group1Blocks:1,group1DataCW:55,group2Blocks:0,group2DataCW:0},{totalDataCodewords:80,ecCodewordsPerBlock:20,group1Blocks:1,group1DataCW:80,group2Blocks:0,group2DataCW:0},{totalDataCodewords:108,ecCodewordsPerBlock:26,group1Blocks:1,group1DataCW:108,group2Blocks:0,group2DataCW:0},{totalDataCodewords:136,ecCodewordsPerBlock:18,group1Blocks:2,group1DataCW:68,group2Blocks:0,group2DataCW:0},{totalDataCodewords:156,ecCodewordsPerBlock:20,group1Blocks:2,group1DataCW:78,group2Blocks:0,group2DataCW:0},{totalDataCodewords:194,ecCodewordsPerBlock:24,group1Blocks:2,group1DataCW:97,group2Blocks:0,group2DataCW:0},{totalDataCodewords:232,ecCodewordsPerBlock:30,group1Blocks:2,group1DataCW:116,group2Blocks:0,group2DataCW:0},{totalDataCodewords:274,ecCodewordsPerBlock:18,group1Blocks:2,group1DataCW:68,group2Blocks:2,group2DataCW:69},{totalDataCodewords:324,ecCodewordsPerBlock:20,group1Blocks:4,group1DataCW:81,group2Blocks:0,group2DataCW:0},{totalDataCodewords:370,ecCodewordsPerBlock:24,group1Blocks:2,group1DataCW:92,group2Blocks:2,group2DataCW:93},{totalDataCodewords:428,ecCodewordsPerBlock:26,group1Blocks:4,group1DataCW:107,group2Blocks:0,group2DataCW:0},{totalDataCodewords:461,ecCodewordsPerBlock:30,group1Blocks:3,group1DataCW:115,group2Blocks:1,group2DataCW:116},{totalDataCodewords:523,ecCodewordsPerBlock:22,group1Blocks:5,group1DataCW:87,group2Blocks:1,group2DataCW:88},{totalDataCodewords:589,ecCodewordsPerBlock:24,group1Blocks:5,group1DataCW:98,group2Blocks:1,group2DataCW:99},{totalDataCodewords:647,ecCodewordsPerBlock:28,group1Blocks:1,group1DataCW:107,group2Blocks:5,group2DataCW:108},{totalDataCodewords:721,ecCodewordsPerBlock:30,group1Blocks:5,group1DataCW:120,group2Blocks:1,group2DataCW:121},{totalDataCodewords:795,ecCodewordsPerBlock:28,group1Blocks:3,group1DataCW:113,group2Blocks:4,group2DataCW:114},{totalDataCodewords:861,ecCodewordsPerBlock:28,group1Blocks:3,group1DataCW:107,group2Blocks:5,group2DataCW:108},{totalDataCodewords:932,ecCodewordsPerBlock:28,group1Blocks:4,group1DataCW:116,group2Blocks:4,group2DataCW:117},{totalDataCodewords:1006,ecCodewordsPerBlock:28,group1Blocks:2,group1DataCW:111,group2Blocks:7,group2DataCW:112},{totalDataCodewords:1094,ecCodewordsPerBlock:30,group1Blocks:4,group1DataCW:121,group2Blocks:5,group2DataCW:122},{totalDataCodewords:1174,ecCodewordsPerBlock:30,group1Blocks:6,group1DataCW:117,group2Blocks:4,group2DataCW:118},{totalDataCodewords:1276,ecCodewordsPerBlock:26,group1Blocks:8,group1DataCW:106,group2Blocks:4,group2DataCW:107},{totalDataCodewords:1370,ecCodewordsPerBlock:28,group1Blocks:10,group1DataCW:114,group2Blocks:2,group2DataCW:115},{totalDataCodewords:1468,ecCodewordsPerBlock:30,group1Blocks:8,group1DataCW:122,group2Blocks:4,group2DataCW:123},{totalDataCodewords:1531,ecCodewordsPerBlock:30,group1Blocks:3,group1DataCW:117,group2Blocks:10,group2DataCW:118},{totalDataCodewords:1631,ecCodewordsPerBlock:30,group1Blocks:7,group1DataCW:116,group2Blocks:7,group2DataCW:117},{totalDataCodewords:1735,ecCodewordsPerBlock:30,group1Blocks:5,group1DataCW:115,group2Blocks:10,group2DataCW:116},{totalDataCodewords:1843,ecCodewordsPerBlock:30,group1Blocks:13,group1DataCW:115,group2Blocks:3,group2DataCW:116},{totalDataCodewords:1955,ecCodewordsPerBlock:30,group1Blocks:17,group1DataCW:115,group2Blocks:0,group2DataCW:0},{totalDataCodewords:2071,ecCodewordsPerBlock:30,group1Blocks:17,group1DataCW:115,group2Blocks:1,group2DataCW:116},{totalDataCodewords:2191,ecCodewordsPerBlock:30,group1Blocks:13,group1DataCW:115,group2Blocks:6,group2DataCW:116},{totalDataCodewords:2306,ecCodewordsPerBlock:30,group1Blocks:12,group1DataCW:121,group2Blocks:7,group2DataCW:122},{totalDataCodewords:2434,ecCodewordsPerBlock:30,group1Blocks:6,group1DataCW:121,group2Blocks:14,group2DataCW:122},{totalDataCodewords:2566,ecCodewordsPerBlock:30,group1Blocks:17,group1DataCW:122,group2Blocks:4,group2DataCW:123},{totalDataCodewords:2702,ecCodewordsPerBlock:30,group1Blocks:4,group1DataCW:122,group2Blocks:18,group2DataCW:123},{totalDataCodewords:2812,ecCodewordsPerBlock:30,group1Blocks:20,group1DataCW:117,group2Blocks:4,group2DataCW:118},{totalDataCodewords:2956,ecCodewordsPerBlock:30,group1Blocks:19,group1DataCW:118,group2Blocks:6,group2DataCW:119}],M:[{totalDataCodewords:0,ecCodewordsPerBlock:0,group1Blocks:0,group1DataCW:0,group2Blocks:0,group2DataCW:0},{totalDataCodewords:16,ecCodewordsPerBlock:10,group1Blocks:1,group1DataCW:16,group2Blocks:0,group2DataCW:0},{totalDataCodewords:28,ecCodewordsPerBlock:16,group1Blocks:1,group1DataCW:28,group2Blocks:0,group2DataCW:0},{totalDataCodewords:44,ecCodewordsPerBlock:26,group1Blocks:1,group1DataCW:44,group2Blocks:0,group2DataCW:0},{totalDataCodewords:64,ecCodewordsPerBlock:18,group1Blocks:2,group1DataCW:32,group2Blocks:0,group2DataCW:0},{totalDataCodewords:86,ecCodewordsPerBlock:24,group1Blocks:2,group1DataCW:43,group2Blocks:0,group2DataCW:0},{totalDataCodewords:108,ecCodewordsPerBlock:16,group1Blocks:4,group1DataCW:27,group2Blocks:0,group2DataCW:0},{totalDataCodewords:124,ecCodewordsPerBlock:18,group1Blocks:4,group1DataCW:31,group2Blocks:0,group2DataCW:0},{totalDataCodewords:154,ecCodewordsPerBlock:22,group1Blocks:2,group1DataCW:38,group2Blocks:2,group2DataCW:39},{totalDataCodewords:182,ecCodewordsPerBlock:22,group1Blocks:3,group1DataCW:36,group2Blocks:2,group2DataCW:37},{totalDataCodewords:216,ecCodewordsPerBlock:26,group1Blocks:4,group1DataCW:43,group2Blocks:1,group2DataCW:44},{totalDataCodewords:254,ecCodewordsPerBlock:30,group1Blocks:1,group1DataCW:50,group2Blocks:4,group2DataCW:51},{totalDataCodewords:290,ecCodewordsPerBlock:22,group1Blocks:6,group1DataCW:36,group2Blocks:2,group2DataCW:37},{totalDataCodewords:334,ecCodewordsPerBlock:22,group1Blocks:8,group1DataCW:37,group2Blocks:1,group2DataCW:38},{totalDataCodewords:365,ecCodewordsPerBlock:24,group1Blocks:4,group1DataCW:40,group2Blocks:5,group2DataCW:41},{totalDataCodewords:415,ecCodewordsPerBlock:24,group1Blocks:5,group1DataCW:41,group2Blocks:5,group2DataCW:42},{totalDataCodewords:453,ecCodewordsPerBlock:28,group1Blocks:7,group1DataCW:45,group2Blocks:3,group2DataCW:46},{totalDataCodewords:507,ecCodewordsPerBlock:28,group1Blocks:10,group1DataCW:46,group2Blocks:1,group2DataCW:47},{totalDataCodewords:563,ecCodewordsPerBlock:26,group1Blocks:9,group1DataCW:43,group2Blocks:4,group2DataCW:44},{totalDataCodewords:627,ecCodewordsPerBlock:26,group1Blocks:3,group1DataCW:44,group2Blocks:11,group2DataCW:45},{totalDataCodewords:669,ecCodewordsPerBlock:26,group1Blocks:3,group1DataCW:41,group2Blocks:13,group2DataCW:42},{totalDataCodewords:714,ecCodewordsPerBlock:26,group1Blocks:17,group1DataCW:42,group2Blocks:0,group2DataCW:0},{totalDataCodewords:782,ecCodewordsPerBlock:28,group1Blocks:17,group1DataCW:46,group2Blocks:0,group2DataCW:0},{totalDataCodewords:860,ecCodewordsPerBlock:28,group1Blocks:4,group1DataCW:47,group2Blocks:14,group2DataCW:48},{totalDataCodewords:914,ecCodewordsPerBlock:28,group1Blocks:6,group1DataCW:45,group2Blocks:14,group2DataCW:46},{totalDataCodewords:1e3,ecCodewordsPerBlock:28,group1Blocks:8,group1DataCW:47,group2Blocks:13,group2DataCW:48},{totalDataCodewords:1062,ecCodewordsPerBlock:28,group1Blocks:19,group1DataCW:46,group2Blocks:4,group2DataCW:47},{totalDataCodewords:1128,ecCodewordsPerBlock:28,group1Blocks:22,group1DataCW:45,group2Blocks:3,group2DataCW:46},{totalDataCodewords:1193,ecCodewordsPerBlock:28,group1Blocks:3,group1DataCW:45,group2Blocks:23,group2DataCW:46},{totalDataCodewords:1267,ecCodewordsPerBlock:28,group1Blocks:21,group1DataCW:45,group2Blocks:7,group2DataCW:46},{totalDataCodewords:1373,ecCodewordsPerBlock:28,group1Blocks:19,group1DataCW:47,group2Blocks:10,group2DataCW:48},{totalDataCodewords:1455,ecCodewordsPerBlock:28,group1Blocks:2,group1DataCW:46,group2Blocks:29,group2DataCW:47},{totalDataCodewords:1541,ecCodewordsPerBlock:28,group1Blocks:10,group1DataCW:46,group2Blocks:23,group2DataCW:47},{totalDataCodewords:1631,ecCodewordsPerBlock:28,group1Blocks:14,group1DataCW:46,group2Blocks:21,group2DataCW:47},{totalDataCodewords:1725,ecCodewordsPerBlock:28,group1Blocks:14,group1DataCW:46,group2Blocks:23,group2DataCW:47},{totalDataCodewords:1812,ecCodewordsPerBlock:28,group1Blocks:12,group1DataCW:47,group2Blocks:26,group2DataCW:48},{totalDataCodewords:1914,ecCodewordsPerBlock:28,group1Blocks:6,group1DataCW:47,group2Blocks:34,group2DataCW:48},{totalDataCodewords:1992,ecCodewordsPerBlock:28,group1Blocks:29,group1DataCW:46,group2Blocks:14,group2DataCW:47},{totalDataCodewords:2102,ecCodewordsPerBlock:28,group1Blocks:13,group1DataCW:46,group2Blocks:32,group2DataCW:47},{totalDataCodewords:2216,ecCodewordsPerBlock:28,group1Blocks:40,group1DataCW:47,group2Blocks:7,group2DataCW:48},{totalDataCodewords:2334,ecCodewordsPerBlock:28,group1Blocks:18,group1DataCW:47,group2Blocks:31,group2DataCW:48}],Q:[{totalDataCodewords:0,ecCodewordsPerBlock:0,group1Blocks:0,group1DataCW:0,group2Blocks:0,group2DataCW:0},{totalDataCodewords:13,ecCodewordsPerBlock:13,group1Blocks:1,group1DataCW:13,group2Blocks:0,group2DataCW:0},{totalDataCodewords:22,ecCodewordsPerBlock:22,group1Blocks:1,group1DataCW:22,group2Blocks:0,group2DataCW:0},{totalDataCodewords:34,ecCodewordsPerBlock:18,group1Blocks:2,group1DataCW:17,group2Blocks:0,group2DataCW:0},{totalDataCodewords:48,ecCodewordsPerBlock:26,group1Blocks:2,group1DataCW:24,group2Blocks:0,group2DataCW:0},{totalDataCodewords:62,ecCodewordsPerBlock:18,group1Blocks:2,group1DataCW:15,group2Blocks:2,group2DataCW:16},{totalDataCodewords:76,ecCodewordsPerBlock:24,group1Blocks:4,group1DataCW:19,group2Blocks:0,group2DataCW:0},{totalDataCodewords:88,ecCodewordsPerBlock:18,group1Blocks:2,group1DataCW:14,group2Blocks:4,group2DataCW:15},{totalDataCodewords:110,ecCodewordsPerBlock:22,group1Blocks:4,group1DataCW:18,group2Blocks:2,group2DataCW:19},{totalDataCodewords:132,ecCodewordsPerBlock:20,group1Blocks:4,group1DataCW:16,group2Blocks:4,group2DataCW:17},{totalDataCodewords:154,ecCodewordsPerBlock:24,group1Blocks:6,group1DataCW:19,group2Blocks:2,group2DataCW:20},{totalDataCodewords:180,ecCodewordsPerBlock:28,group1Blocks:4,group1DataCW:22,group2Blocks:4,group2DataCW:23},{totalDataCodewords:206,ecCodewordsPerBlock:26,group1Blocks:4,group1DataCW:20,group2Blocks:6,group2DataCW:21},{totalDataCodewords:244,ecCodewordsPerBlock:24,group1Blocks:8,group1DataCW:20,group2Blocks:4,group2DataCW:21},{totalDataCodewords:261,ecCodewordsPerBlock:20,group1Blocks:11,group1DataCW:16,group2Blocks:5,group2DataCW:17},{totalDataCodewords:295,ecCodewordsPerBlock:30,group1Blocks:5,group1DataCW:24,group2Blocks:7,group2DataCW:25},{totalDataCodewords:325,ecCodewordsPerBlock:24,group1Blocks:15,group1DataCW:19,group2Blocks:2,group2DataCW:20},{totalDataCodewords:367,ecCodewordsPerBlock:28,group1Blocks:1,group1DataCW:22,group2Blocks:15,group2DataCW:23},{totalDataCodewords:397,ecCodewordsPerBlock:28,group1Blocks:17,group1DataCW:22,group2Blocks:1,group2DataCW:23},{totalDataCodewords:445,ecCodewordsPerBlock:26,group1Blocks:17,group1DataCW:21,group2Blocks:4,group2DataCW:22},{totalDataCodewords:485,ecCodewordsPerBlock:30,group1Blocks:15,group1DataCW:24,group2Blocks:5,group2DataCW:25},{totalDataCodewords:512,ecCodewordsPerBlock:28,group1Blocks:17,group1DataCW:22,group2Blocks:6,group2DataCW:23},{totalDataCodewords:568,ecCodewordsPerBlock:30,group1Blocks:7,group1DataCW:24,group2Blocks:16,group2DataCW:25},{totalDataCodewords:614,ecCodewordsPerBlock:30,group1Blocks:11,group1DataCW:24,group2Blocks:14,group2DataCW:25},{totalDataCodewords:664,ecCodewordsPerBlock:30,group1Blocks:11,group1DataCW:24,group2Blocks:16,group2DataCW:25},{totalDataCodewords:718,ecCodewordsPerBlock:30,group1Blocks:7,group1DataCW:24,group2Blocks:22,group2DataCW:25},{totalDataCodewords:754,ecCodewordsPerBlock:28,group1Blocks:28,group1DataCW:22,group2Blocks:6,group2DataCW:23},{totalDataCodewords:808,ecCodewordsPerBlock:30,group1Blocks:8,group1DataCW:23,group2Blocks:26,group2DataCW:24},{totalDataCodewords:871,ecCodewordsPerBlock:30,group1Blocks:4,group1DataCW:24,group2Blocks:31,group2DataCW:25},{totalDataCodewords:911,ecCodewordsPerBlock:30,group1Blocks:1,group1DataCW:23,group2Blocks:37,group2DataCW:24},{totalDataCodewords:985,ecCodewordsPerBlock:30,group1Blocks:15,group1DataCW:24,group2Blocks:25,group2DataCW:25},{totalDataCodewords:1033,ecCodewordsPerBlock:30,group1Blocks:42,group1DataCW:24,group2Blocks:1,group2DataCW:25},{totalDataCodewords:1115,ecCodewordsPerBlock:30,group1Blocks:10,group1DataCW:24,group2Blocks:35,group2DataCW:25},{totalDataCodewords:1171,ecCodewordsPerBlock:30,group1Blocks:29,group1DataCW:24,group2Blocks:19,group2DataCW:25},{totalDataCodewords:1231,ecCodewordsPerBlock:30,group1Blocks:44,group1DataCW:24,group2Blocks:7,group2DataCW:25},{totalDataCodewords:1286,ecCodewordsPerBlock:30,group1Blocks:39,group1DataCW:24,group2Blocks:14,group2DataCW:25},{totalDataCodewords:1354,ecCodewordsPerBlock:30,group1Blocks:46,group1DataCW:24,group2Blocks:10,group2DataCW:25},{totalDataCodewords:1426,ecCodewordsPerBlock:30,group1Blocks:49,group1DataCW:24,group2Blocks:10,group2DataCW:25},{totalDataCodewords:1502,ecCodewordsPerBlock:30,group1Blocks:48,group1DataCW:24,group2Blocks:14,group2DataCW:25},{totalDataCodewords:1582,ecCodewordsPerBlock:30,group1Blocks:43,group1DataCW:24,group2Blocks:22,group2DataCW:25},{totalDataCodewords:1666,ecCodewordsPerBlock:30,group1Blocks:34,group1DataCW:24,group2Blocks:34,group2DataCW:25}],H:[{totalDataCodewords:0,ecCodewordsPerBlock:0,group1Blocks:0,group1DataCW:0,group2Blocks:0,group2DataCW:0},{totalDataCodewords:9,ecCodewordsPerBlock:17,group1Blocks:1,group1DataCW:9,group2Blocks:0,group2DataCW:0},{totalDataCodewords:16,ecCodewordsPerBlock:28,group1Blocks:1,group1DataCW:16,group2Blocks:0,group2DataCW:0},{totalDataCodewords:26,ecCodewordsPerBlock:22,group1Blocks:2,group1DataCW:13,group2Blocks:0,group2DataCW:0},{totalDataCodewords:36,ecCodewordsPerBlock:16,group1Blocks:4,group1DataCW:9,group2Blocks:0,group2DataCW:0},{totalDataCodewords:46,ecCodewordsPerBlock:22,group1Blocks:2,group1DataCW:11,group2Blocks:2,group2DataCW:12},{totalDataCodewords:60,ecCodewordsPerBlock:28,group1Blocks:4,group1DataCW:15,group2Blocks:0,group2DataCW:0},{totalDataCodewords:66,ecCodewordsPerBlock:26,group1Blocks:4,group1DataCW:13,group2Blocks:1,group2DataCW:14},{totalDataCodewords:86,ecCodewordsPerBlock:26,group1Blocks:4,group1DataCW:14,group2Blocks:2,group2DataCW:15},{totalDataCodewords:100,ecCodewordsPerBlock:24,group1Blocks:4,group1DataCW:12,group2Blocks:4,group2DataCW:13},{totalDataCodewords:122,ecCodewordsPerBlock:28,group1Blocks:6,group1DataCW:15,group2Blocks:2,group2DataCW:16},{totalDataCodewords:140,ecCodewordsPerBlock:24,group1Blocks:3,group1DataCW:12,group2Blocks:8,group2DataCW:13},{totalDataCodewords:158,ecCodewordsPerBlock:28,group1Blocks:7,group1DataCW:14,group2Blocks:4,group2DataCW:15},{totalDataCodewords:180,ecCodewordsPerBlock:22,group1Blocks:12,group1DataCW:11,group2Blocks:4,group2DataCW:12},{totalDataCodewords:197,ecCodewordsPerBlock:24,group1Blocks:11,group1DataCW:12,group2Blocks:5,group2DataCW:13},{totalDataCodewords:223,ecCodewordsPerBlock:24,group1Blocks:11,group1DataCW:12,group2Blocks:7,group2DataCW:13},{totalDataCodewords:253,ecCodewordsPerBlock:30,group1Blocks:3,group1DataCW:15,group2Blocks:13,group2DataCW:16},{totalDataCodewords:283,ecCodewordsPerBlock:28,group1Blocks:2,group1DataCW:14,group2Blocks:17,group2DataCW:15},{totalDataCodewords:313,ecCodewordsPerBlock:28,group1Blocks:2,group1DataCW:14,group2Blocks:19,group2DataCW:15},{totalDataCodewords:341,ecCodewordsPerBlock:26,group1Blocks:9,group1DataCW:13,group2Blocks:16,group2DataCW:14},{totalDataCodewords:385,ecCodewordsPerBlock:28,group1Blocks:15,group1DataCW:15,group2Blocks:10,group2DataCW:16},{totalDataCodewords:406,ecCodewordsPerBlock:30,group1Blocks:19,group1DataCW:16,group2Blocks:6,group2DataCW:17},{totalDataCodewords:442,ecCodewordsPerBlock:24,group1Blocks:34,group1DataCW:13,group2Blocks:0,group2DataCW:0},{totalDataCodewords:464,ecCodewordsPerBlock:30,group1Blocks:16,group1DataCW:15,group2Blocks:14,group2DataCW:16},{totalDataCodewords:514,ecCodewordsPerBlock:30,group1Blocks:30,group1DataCW:16,group2Blocks:2,group2DataCW:17},{totalDataCodewords:538,ecCodewordsPerBlock:30,group1Blocks:22,group1DataCW:15,group2Blocks:13,group2DataCW:16},{totalDataCodewords:596,ecCodewordsPerBlock:30,group1Blocks:33,group1DataCW:16,group2Blocks:4,group2DataCW:17},{totalDataCodewords:628,ecCodewordsPerBlock:30,group1Blocks:12,group1DataCW:15,group2Blocks:28,group2DataCW:16},{totalDataCodewords:661,ecCodewordsPerBlock:30,group1Blocks:11,group1DataCW:15,group2Blocks:31,group2DataCW:16},{totalDataCodewords:701,ecCodewordsPerBlock:30,group1Blocks:19,group1DataCW:15,group2Blocks:26,group2DataCW:16},{totalDataCodewords:745,ecCodewordsPerBlock:30,group1Blocks:23,group1DataCW:15,group2Blocks:25,group2DataCW:16},{totalDataCodewords:793,ecCodewordsPerBlock:30,group1Blocks:23,group1DataCW:15,group2Blocks:28,group2DataCW:16},{totalDataCodewords:845,ecCodewordsPerBlock:30,group1Blocks:19,group1DataCW:15,group2Blocks:35,group2DataCW:16},{totalDataCodewords:901,ecCodewordsPerBlock:30,group1Blocks:11,group1DataCW:15,group2Blocks:46,group2DataCW:16},{totalDataCodewords:961,ecCodewordsPerBlock:30,group1Blocks:59,group1DataCW:16,group2Blocks:1,group2DataCW:17},{totalDataCodewords:986,ecCodewordsPerBlock:30,group1Blocks:22,group1DataCW:15,group2Blocks:41,group2DataCW:16},{totalDataCodewords:1054,ecCodewordsPerBlock:30,group1Blocks:2,group1DataCW:15,group2Blocks:64,group2DataCW:16},{totalDataCodewords:1096,ecCodewordsPerBlock:30,group1Blocks:24,group1DataCW:15,group2Blocks:46,group2DataCW:16},{totalDataCodewords:1142,ecCodewordsPerBlock:30,group1Blocks:42,group1DataCW:15,group2Blocks:32,group2DataCW:16},{totalDataCodewords:1222,ecCodewordsPerBlock:30,group1Blocks:10,group1DataCW:15,group2Blocks:67,group2DataCW:16},{totalDataCodewords:1276,ecCodewordsPerBlock:30,group1Blocks:20,group1DataCW:15,group2Blocks:61,group2DataCW:16}]};function mX(e,t){return pX[t][e]}const hX=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],gX=[0,0,0,0,0,0,0,31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017];function _X(e){return/^\d+$/.test(e)}function vX(e){for(let t=0;t<e.length;t++)if(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.indexOf(e[t])===-1)return!1;return!0}function yX(e){return _X(e)?`numeric`:vX(e)?`alphanumeric`:`byte`}function bX(e){let t=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.indexOf(e);if(t===-1)throw Error(`Invalid alphanumeric character: ${e}`);return t}function xX(e){let t=[],n=0;for(;n+2<e.length;)EX(t,Number.parseInt(e.substring(n,n+3),10),10),n+=3;return n+1<e.length&&(EX(t,Number.parseInt(e.substring(n,n+2),10),7),n+=2),n<e.length&&EX(t,Number.parseInt(e[n],10),4),t}function SX(e){let t=[],n=0;for(;n+1<e.length;)EX(t,bX(e[n])*45+bX(e[n+1]),11),n+=2;return n<e.length&&EX(t,bX(e[n]),6),t}function CX(e){let t=[];for(let n of e)EX(t,n,8);return t}function wX(e){let t=[];for(let n of e){let e;if(n>=33088&&n<=40956)e=n-33088;else if(n>=57408&&n<=60351)e=n-49472;else throw Error(`Invalid Shift JIS kanji value: 0x${n.toString(16)}`);let r=e>>8&255,i=e&255;EX(t,r*192+i,13)}return t}function TX(e){let t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>=12288&&r<=40959){let e=33088+(r-12288);e<=40956?t.push(e):t.push(57408+(r-12288-7868))}else throw Error(`Character U+${r.toString(16)} cannot be encoded as Kanji`)}return t}function EX(e,t,n){for(let r=n-1;r>=0;r--)e.push(t>>r&1)}function DX(e,t){return mX(e,t).totalDataCodewords*8}function OX(e,t,n,r){let i=n===`auto`||!n?yX(e):n,a=new TextEncoder().encode(e);if(r){let n=DX(r,t);if(kX(e,a,i,r)>n)throw Error(`Data too long for QR version ${r} with EC level ${t}`);return r}for(let n=1;n<=40;n++){let r=DX(n,t);if(kX(e,a,i,n)<=r)return n}throw Error(`Data too long for any QR code version with EC level ${t}`)}function kX(e,t,n,r){let i=fX(r,n),a;switch(n){case`numeric`:return a=Math.floor(e.length/3)*10+(e.length%3==2?7:e.length%3==1?4:0),4+i+a;case`alphanumeric`:return a=Math.floor(e.length/2)*11+(e.length%2==1?6:0),4+i+a;case`byte`:return 4+i+t.length*8;case`kanji`:return 4+i+e.length*13;default:return 4+i+t.length*8}}function AX(e,t){return t&&t!==`auto`?t:_X(e)?`numeric`:vX(e)?`alphanumeric`:`byte`}const jX=new Uint8Array(512),MX=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)jX[t]=e,MX[e]=t,e<<=1,e>=256&&(e^=285);for(let e=255;e<512;e++)jX[e]=jX[e-255]})();function NX(e,t){return e===0||t===0?0:jX[(MX[e]+MX[t])%255]}function PX(e,t){let n=new Uint8Array([1]);for(let e=0;e<t;e++){let t=new Uint8Array([1,jX[e]]),r=new Uint8Array(n.length+1);for(let e=0;e<n.length;e++)for(let i=0;i<t.length;i++)r[e+i]^=NX(n[e],t[i]);n=r}let r=Array.from({length:t},()=>0);for(let i of e){let e=i^r[0];for(let i=0;i<t-1;i++)r[i]=r[i+1]^NX(e,n[i+1]);r[t-1]=NX(e,n[t])}return r}function FX(e,t,n,r,i,a){let o=[],s=[],c=0;for(let i=0;i<n;i++){let n=e.slice(c,c+r);o.push(n),s.push(PX(n,t)),c+=r}for(let n=0;n<i;n++){let n=e.slice(c,c+a);o.push(n),s.push(PX(n,t)),c+=a}let l=[],u=Math.max(r,a);for(let e=0;e<u;e++)for(let t of o)e<t.length&&l.push(t[e]);for(let e=0;e<t;e++)for(let t of s)e<t.length&&l.push(t[e]);return l}function IX(e,t={}){let n=t.ecLevel??`M`,r=AX(e,t.mode),i=OX(e,n,r,t.version),a=mX(i,n),o=FX(RX(LX(e,r,i,a.totalDataCodewords)),a.ecCodewordsPerBlock,a.group1Blocks,a.group1DataCW,a.group2Blocks,a.group2DataCW),s=[];for(let e of o)EX(s,e,8);return{version:i,ecLevel:n,bits:s}}function LX(e,t,n,r){let i=[],a=fX(n,t),o=new TextEncoder().encode(e);switch(EX(i,uX[t],4),EX(i,t===`byte`?o.length:e.length,a),t){case`numeric`:i.push(...xX(e));break;case`alphanumeric`:i.push(...SX(e));break;case`byte`:i.push(...CX(o));break;case`kanji`:{let t=TX(e);i.push(...wX(t));break}}let s=r*8,c=Math.min(4,s-i.length);for(c>0&&EX(i,0,c);i.length%8!=0;)i.push(0);let l=!0;for(;i.length<s;)EX(i,l?236:17,8),l=!l;return i}function RX(e){let t=[];for(let n=0;n<e.length;n+=8){let r=0;for(let t=0;t<8&&n+t<e.length;t++)r=r<<1|e[n+t];t.push(r)}return t}function zX(e){return Array.from({length:e},()=>Array.from({length:e}).fill(null))}function BX(e,t){let n=e.length;VX(e,0,0),VX(e,n-7,0),VX(e,0,n-7),UX(e,n),WX(e,t),e[4*t+9][8]=!0,KX(e,n),t>=7&&qX(e,n)}function VX(e,t,n){let r=e.length;for(let r=0;r<7;r++)for(let i=0;i<7;i++){let a=r===0||r===6||i===0||i===6,o=r>=2&&r<=4&&i>=2&&i<=4;e[t+r][n+i]=a||o}for(let i=-1;i<=7;i++)HX(e,t-1,n+i,!1,r),HX(e,t+7,n+i,!1,r),HX(e,t+i,n-1,!1,r),HX(e,t+i,n+7,!1,r)}function HX(e,t,n,r,i){t>=0&&t<i&&n>=0&&n<i&&(e[t][n]=r)}function UX(e,t){for(let n=8;n<t-8;n++)e[6][n]===null&&(e[6][n]=n%2==0),e[n][6]===null&&(e[n][6]=n%2==0)}function WX(e,t){if(t<2)return;let n=hX[t-1],r=n.length-1;for(let t=0;t<n.length;t++)for(let i=0;i<n.length;i++)(t!==0||i!==0)&&(t!==0||i!==r)&&(t!==r||i!==0)&&GX(e,n[t],n[i])}function GX(e,t,n){for(let r=-2;r<=2;r++)for(let i=-2;i<=2;i++){let a=Math.abs(r)===2||Math.abs(i)===2,o=r===0&&i===0;e[t+r][n+i]=a||o}}function KX(e,t){for(let n=0;n<=8;n++)n<t&&e[8][n]===null&&(e[8][n]=!1),n<t&&e[n][8]===null&&(e[n][8]=!1);for(let n=0;n<7;n++)e[t-1-n][8]===null&&(e[t-1-n][8]=!1);for(let n=0;n<8;n++)e[8][t-1-n]===null&&(e[8][t-1-n]=!1)}function qX(e,t){for(let n=0;n<6;n++)for(let r=0;r<3;r++)e[t-11+r][n]===null&&(e[t-11+r][n]=!1);for(let n=0;n<6;n++)for(let r=0;r<3;r++)e[n][t-11+r]===null&&(e[n][t-11+r]=!1)}function JX(e,t,n){let r=e.length,i=0,a=!0;for(let n=r-1;n>=1;n-=2){n===6&&(n=5);let o=a?Array.from({length:r},(e,t)=>r-1-t):Array.from({length:r},(e,t)=>t);for(let r of o)for(let a of[n,n-1])e[r][a]===null&&(e[r][a]=i<t.length&&t[i]===1,i++);a=!a}}function YX(e,t,n,r){if(e<9&&t<9||e<9&&t>=n-8||e>=n-8&&t<9||e===6||t===6)return!1;if(r>=2){let i=hX[r-1];for(let r of i)for(let a of i)if(!(r<9&&a<9)&&!(r<9&&a>=n-8)&&!(r>=n-8&&a<9)&&e>=r-2&&e<=r+2&&t>=a-2&&t<=a+2)return!1}return!(r>=7&&(e<6&&t>=n-11&&t<=n-9||t<6&&e>=n-11&&e<=n-9)||e===8||t===8||e>=n-8&&t===8||e===8&&t>=n-8)}function XX(e){switch(e){case 0:return(e,t)=>(e+t)%2==0;case 1:return e=>e%2==0;case 2:return(e,t)=>t%3==0;case 3:return(e,t)=>(e+t)%3==0;case 4:return(e,t)=>(Math.floor(e/2)+Math.floor(t/3))%2==0;case 5:return(e,t)=>e*t%2+e*t%3==0;case 6:return(e,t)=>(e*t%2+e*t%3)%2==0;case 7:return(e,t)=>((e+t)%2+e*t%3)%2==0;default:return()=>!1}}function ZX(e,t,n,r){let i=XX(t);for(let t=0;t<n;t++)for(let a=0;a<n;a++)YX(t,a,n,r)&&i(t,a)&&(e[t][a]=!e[t][a])}function QX(e,t,n,r){if(r!==void 0&&r>=0&&r<=7)return r;let i=0,a=1/0;for(let r=0;r<8;r++){let o=e.map(e=>[...e]);ZX(o,r,t,n);let s=$X(o,t);s<a&&(a=s,i=r)}return i}function $X(e,t){return eZ(e,t)+tZ(e,t)+nZ(e,t)+rZ(e,t)}function eZ(e,t){let n=0;for(let r=0;r<t;r++){let i=1;for(let a=1;a<t;a++)!!e[r][a]==!!e[r][a-1]?(i++,i===5?n+=3:i>5&&n++):i=1}for(let r=0;r<t;r++){let i=1;for(let a=1;a<t;a++)!!e[a][r]==!!e[a-1][r]?(i++,i===5?n+=3:i>5&&n++):i=1}return n}function tZ(e,t){let n=0;for(let r=0;r<t-1;r++)for(let i=0;i<t-1;i++){let t=!!e[r][i];t===!!e[r][i+1]&&t===!!e[r+1][i]&&t===!!e[r+1][i+1]&&(n+=3)}return n}function nZ(e,t){let n=0,r=[!0,!1,!0,!0,!0,!1,!0,!1,!1,!1,!1],i=[!1,!1,!1,!1,!0,!1,!0,!0,!0,!1,!0];for(let a=0;a<t;a++)for(let o=0;o<=t-11;o++){let t=!0,s=!0;for(let n=0;n<11;n++)!!e[a][o+n]!==r[n]&&(t=!1),!!e[a][o+n]!==i[n]&&(s=!1);(t||s)&&(n+=40)}for(let a=0;a<t;a++)for(let o=0;o<=t-11;o++){let t=!0,s=!0;for(let n=0;n<11;n++)!!e[o+n][a]!==r[n]&&(t=!1),!!e[o+n][a]!==i[n]&&(s=!1);(t||s)&&(n+=40)}return n}function rZ(e,t){let n=0,r=t*t;for(let r=0;r<t;r++)for(let i=0;i<t;i++)e[r][i]&&n++;let i=n/r,a=Math.floor(i*20)*5,o=Math.ceil(i*20)*5;return Math.min(Math.abs(a-50),Math.abs(o-50))*2}function iZ(e,t){let n=lX[e]<<3|t,r=n<<10;for(let e=4;e>=0;e--)r&1<<e+10&&(r^=1335<<e);return(n<<10|r)^21522}function aZ(e,t,n){let r=e.length,i=iZ(t,n),a=[[8,0],[8,1],[8,2],[8,3],[8,4],[8,5],[8,7],[8,8],[7,8],[5,8],[4,8],[3,8],[2,8],[1,8],[0,8]];for(let t=0;t<15;t++){let n=(i>>14-t&1)==1,[r,o]=a[t];e[r][o]=n}for(let t=0;t<7;t++){let n=(i>>14-t&1)==1;e[r-1-t][8]=n}for(let t=0;t<8;t++){let n=(i>>7-t&1)==1;e[8][r-8+t]=n}}function oZ(e,t){if(t<7)return;let n=e.length,r=gX[t];for(let t=0;t<18;t++){let i=(r>>t&1)==1,a=Math.floor(t/3),o=t%3;e[n-11+o][a]=i,e[a][n-11+o]=i}}var sZ=class extends Error{constructor(...e){super(...e),this.name=`QRCodeError`}},cZ=class extends sZ{constructor(...e){super(...e),this.name=`InvalidInputError`}};function lZ(e,t={}){let{version:n,ecLevel:r,bits:i}=IX(e,t),a=n*4+17,o=zX(a);BX(o,n),JX(o,i,n);let s=QX(o,a,n,t.mask);return ZX(o,s,a,n),aZ(o,r,s),n>=7&&oZ(o,n),o.map(e=>e.map(e=>e===!0))}function uZ(e){return e.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}const dZ=(()=>{let e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n}return e})();function fZ(e){let t=4294967295;for(let n=0;n<e.length;n++)t=dZ[(t^e[n])&255]^t>>>8;return(t^4294967295)>>>0}function pZ(e){let t=1,n=0;for(let r=0;r<e.length;r++)t=(t+e[r])%65521,n=(n+t)%65521;return(n<<16|t)>>>0}function mZ(e){let t=65535,n=Math.ceil(e.length/t)||1,r=new Uint8Array(n*5+e.length),i=0,a=0;for(;a<e.length||i===0;){let n=e.length-a,o=Math.min(n,t),s=a+o>=e.length;r[i++]=+!!s,r[i++]=o&255,r[i++]=o>>8&255,r[i++]=~o&255,r[i++]=~o>>8&255,r.set(e.subarray(a,a+o),i),i+=o,a+=o}return r.subarray(0,i)}function hZ(e){let t=mZ(e),n=pZ(e),r=new Uint8Array(2+t.length+4);r[0]=120,r[1]=1,r.set(t,2);let i=2+t.length;return r[i]=n>>24&255,r[i+1]=n>>16&255,r[i+2]=n>>8&255,r[i+3]=n&255,r}const gZ=new Uint8Array([137,80,78,71,13,10,26,10]);function _Z(e,t){let n=new Uint8Array([e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]),r=new Uint8Array(8+t.length+4),i=new DataView(r.buffer);i.setUint32(0,t.length),r.set(n,4),r.set(t,8);let a=new Uint8Array(4+t.length);return a.set(n,0),a.set(t,4),i.setUint32(8+t.length,fZ(a)),r}function vZ(e,t,n){let r=new Uint8Array(13),i=new DataView(r.buffer);i.setUint32(0,e),i.setUint32(4,t),r[8]=8,r[9]=6,r[10]=0,r[11]=0,r[12]=0;let a=e*4,o=t*(1+a),s=new Uint8Array(o),c=0;for(let e=0;e<t;e++)s[c++]=0,s.set(n.subarray(e*a,e*a+a),c),c+=a;let l=hZ(s),u=_Z(`IHDR`,r),d=_Z(`IDAT`,l),f=_Z(`IEND`,new Uint8Array),p=gZ.length+u.length+d.length+f.length,m=new Uint8Array(p),h=0;return m.set(gZ,h),h+=gZ.length,m.set(u,h),h+=u.length,m.set(d,h),h+=d.length,m.set(f,h),m}function yZ(e){let t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint16(0,!0),r=t.getUint16(2,!0),i=t.getUint16(4,!0);if(n!==0||r!==1&&r!==2||i===0)throw Error(`Invalid ICO file`);let a;for(let e=0;e<i;e++){let n=6+e*16,r=t.getUint8(n)||256,i=t.getUint8(n+1)||256,o=t.getUint32(n+8,!0),s=t.getUint32(n+12,!0);(!a||r*i>a.width*a.height)&&(a={width:r,height:i,size:o,offset:s})}let o=a,s=e.subarray(o.offset,o.offset+o.size);return s.length>=4&&t.getUint32(o.offset)===2303741511?`data:image/png;base64,${DZ(s)}`:bZ(s,o.width,o.height)}function bZ(e,t,n){let r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=r.getUint32(0,!0),a=r.getInt32(4,!0)||t,o=n,s=r.getUint16(14,!0),c=r.getUint32(16,!0);if(c!==0&&c!==3)throw Error(`Unsupported BMP compression: ${c}`);let l=new Uint8Array(a*o*4);if(s===32)xZ(e,i,a,o,l);else if(s===24)SZ(e,i,a,o,l);else if(s<=8)CZ(e,i,a,o,s,l);else throw Error(`Unsupported BMP bit depth: ${s}`);if(s<32){let t=TZ(a,o,s),n=i+wZ(e,i,s)+t;n<e.length&&EZ(e,n,a,o,l)}return`data:image/png;base64,${DZ(vZ(a,o,l))}`}function xZ(e,t,n,r,i){let a=t,o=n*4;for(let t=0;t<r;t++){let s=a+(r-1-t)*o,c=t*n*4;for(let t=0;t<n;t++){let n=s+t*4,r=c+t*4;i[r]=e[n+2],i[r+1]=e[n+1],i[r+2]=e[n],i[r+3]=e[n+3]}}}function SZ(e,t,n,r,i){let a=t+wZ(e,t,24),o=Math.ceil(n*3/4)*4;for(let t=0;t<r;t++){let s=a+(r-1-t)*o,c=t*n*4;for(let t=0;t<n;t++){let n=s+t*3,r=c+t*4;i[r]=e[n+2],i[r+1]=e[n+1],i[r+2]=e[n],i[r+3]=255}}}function CZ(e,t,n,r,i,a){let o=wZ(e,t,i),s=e.subarray(t,t+o),c=t+o,l=Math.ceil(n*i/32)*4;for(let t=0;t<r;t++){let o=c+(r-1-t)*l,u=t*n*4;for(let t=0;t<n;t++){let n;if(i===8)n=e[o+t];else if(i===4){let r=e[o+(t>>1)];n=t&1?r&15:r>>4&15}else n=e[o+(t>>3)]>>7-(t&7)&1;let r=n*4,c=u+t*4;a[c]=s[r+2],a[c+1]=s[r+1],a[c+2]=s[r],a[c+3]=255}}}function wZ(e,t,n){if(n>=16)return 0;let r=new DataView(e.buffer,e.byteOffset,e.byteLength);return((t>=36?r.getUint32(32,!0):0)||1<<n)*4}function TZ(e,t,n){return Math.ceil(e*n/32)*4*t}function EZ(e,t,n,r,i){let a=Math.ceil(n/32)*4;for(let o=0;o<r;o++){let s=t+(r-1-o)*a,c=o*n*4;for(let t=0;t<n;t++){let n=s+(t>>3);if(n>=e.length)return;(e[n]>>7-(t&7)&1)==1&&(i[c+t*4+3]=0)}}}function DZ(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}const OZ=/<script[\s>]|javascript:|on[a-z]+\s*=|<foreignObject[\s>]/i;function kZ(e,t,n,r){let i=e.size??.3,a=e.margin??0,o=e.hideBackgroundDots??!0,s=t*n,c=s*i,l=r*n+(s-c)/2,u=r*n+(s-c)/2,d=new Set;if(o){let e=Math.floor((t-t*i)/2-a/n),r=Math.ceil((t+t*i)/2+a/n);for(let n=Math.max(0,e);n<Math.min(t,r);n++)for(let i=Math.max(0,e);i<Math.min(t,r);i++)d.add(`${n},${i}`)}let f=``;if(e.backgroundColor){let t=a,n=c+2*t,r=`x="${l-t}" y="${u-t}"`,i=`fill="${uZ(e.backgroundColor)}"`;f+=`<rect ${r} width="${n}" height="${n}" ${i} rx="4"/>`}if(e.svg){if(OZ.test(e.svg))throw new cZ(`logo.svg contains potentially dangerous content (script, event handlers, or foreignObject)`);let t=`x="${l}" y="${u}"`,n=`width="${c}" height="${c}"`;f+=`<svg ${t} ${n} viewBox="0 0 1 1">`,f+=`<g transform="scale(1)">${e.svg}</g></svg>`}else if(e.path){let t=uZ(e.path),n=`translate(${l},${u}) scale(${c/100})`;f+=`<path d="${t}" transform="${n}" fill="currentColor"/>`}else if(e.imageUrl){if(!/^(https?:|data:image\/)/i.test(e.imageUrl))throw new cZ(`imageUrl must use https:, http:, or data:image/ scheme`);let t=e.imageUrl.match(/^data:image\/(x-icon|vnd\.microsoft\.icon);base64,(.+)$/i),n=e.imageUrl;if(t){let e=atob(t[2]),r=new Uint8Array(e.length);for(let t=0;t<e.length;t++)r[t]=e.charCodeAt(t);n=yZ(r)}let r=e.imageWidth??c,i=e.imageHeight??c,a=l+(c-r)/2,o=u+(c-i)/2,s=`href="${uZ(n)}"`,d=`x="${a}" y="${o}"`;f+=`<image ${s} ${d} width="${r}" height="${i}"/>`}return{svg:f,hiddenModules:d}}function AZ(e,t,n,r,i=1){let a=n*i,o=(n-a)/2;switch(r){case`square`:return jZ(e+o,t+o,a);case`rounded`:return MZ(e+o,t+o,a,a*.25);case`dots`:return NZ(e+n/2,t+n/2,a/2);case`diamond`:return PZ(e+n/2,t+n/2,a);case`classy`:return FZ(e+o,t+o,a);case`classy-rounded`:return IZ(e+o,t+o,a);case`extra-rounded`:return MZ(e+o,t+o,a,a*.5);case`vertical-line`:return LZ(e+o,t,n,a);case`horizontal-line`:return RZ(e,t+o,n,a);case`small-square`:return jZ(e+n*.15,t+n*.15,n*.7);case`tiny-square`:return jZ(e+n*.25,t+n*.25,n*.5);default:return jZ(e+o,t+o,a)}}function jZ(e,t,n){return`M${e},${t}h${n}v${n}h-${n}z`}function MZ(e,t,n,r){return r=Math.min(r,n/2),`M${e+r},${t}h${n-2*r}a${r},${r},0,0,1,${r},${r}v${n-2*r}a${r},${r},0,0,1,-${r},${r}h-${n-2*r}a${r},${r},0,0,1,-${r},-${r}v-${n-2*r}a${r},${r},0,0,1,${r},-${r}z`}function NZ(e,t,n){return`M${e-n},${t}a${n},${n},0,1,0,${2*n},0a${n},${n},0,1,0,-${2*n},0z`}function PZ(e,t,n){let r=n/2;return`M${e},${t-r}l${r},${r}l-${r},${r}l-${r},-${r}z`}function FZ(e,t,n){let r=n*.35;return`M${e},${t}h${n-r}a${r},${r},0,0,1,${r},${r}v${n-r}h-${n}v-${n}z`}function IZ(e,t,n){let r=n*.35;return`M${e},${t}h${n-r}a${r},${r},0,0,1,${r},${r}v${n-2*r}a${r},${r},0,0,1,-${r},${r}h-${n-r}v-${n}z`}function LZ(e,t,n,r){return`M${e},${t}h${r}v${n}h-${r}z`}function RZ(e,t,n,r){return`M${e},${t}h${n}v${r}h-${n}z`}function zZ(e,t,n,r=`square`){let i=n*7;switch(r){case`rounded`:{let r=n*1.5;return VZ(e,t,i,i,r)+HZ(e+n,t+n,i-2*n,i-2*n,r*.5)}case`dots`:{let r=i/2,a=r-n;return NZ(e+r,t+r,r)+NZ(e+r,t+r,a)}case`extra-rounded`:{let r=n*2.5;return VZ(e,t,i,i,r)+HZ(e+n,t+n,i-2*n,i-2*n,r*.6)}case`classy`:{let r=n*1.5;return VZ(e,t,i,i,r)+HZ(e+n,t+n,i-2*n,i-2*n,r*.5)}default:{let r=i-2*n;return`M${e},${t}h${i}v${i}h-${i}zM${e+n},${t+n}v${r}h${r}v-${r}z`}}}function BZ(e,t,n,r=`square`){let i=n*3,a=e+n*3.5,o=t+n*3.5;switch(r){case`dots`:return NZ(a,o,i/2);case`rounded`:return MZ(e+n*2,t+n*2,i,n*.75);default:return jZ(e+n*2,t+n*2,i)}}function VZ(e,t,n,r,i){return`M${e+i},${t}h${n-2*i}a${i},${i},0,0,1,${i},${i}v${r-2*i}a${i},${i},0,0,1,-${i},${i}h-${n-2*i}a${i},${i},0,0,1,-${i},-${i}v-${r-2*i}a${i},${i},0,0,1,${i},-${i}z`}function HZ(e,t,n,r,i){return VZ(e,t,n,r,i)}const UZ={root:`qr-code`,canvas:`qr-code-canvas`,background:`qr-code-background`,modules:`qr-code-modules`,corner:`qr-code-corner`,logo:`qr-code-logo`,fallback:`qr-code-fallback`},WZ=e=>[{key:`topLeft`,row:0,col:0},{key:`topRight`,row:0,col:e-7},{key:`bottomLeft`,row:e-7,col:0}];function GZ(e,t){let{value:n,size:r=200,margin:i=4,ecLevel:a,version:o,mode:s,mask:c,dotType:u=`square`,dotSize:d=1,corners:f,color:p,background:m,logo:h,logoSize:g=.3,label:_,fallback:v=null,className:y,style:b,...x}=e,S=a??(h?`H`:void 0),C=l.useMemo(()=>{if(!n)return null;try{return lZ(n,{ecLevel:S,version:o,mode:s,mask:c})}catch{return null}},[n,S,o,s,c]);if(!C)return(0,q.jsx)(`div`,{ref:t,className:G(UZ.root,y),style:b,"data-component":`QRCode`,"data-empty":`true`,...x,children:v?(0,q.jsx)(`span`,{className:UZ.fallback,children:v}):null});let w=C.length,T=w+i*2,E=r/T,D=h?kZ({size:g},w,E,i).hiddenModules:void 0,O=WZ(w),k=new Set;if(f)for(let e of O)for(let t=0;t<7;t++)for(let n=0;n<7;n++)k.add(`${e.row+t},${e.col+n}`);let A=[];for(let e=0;e<w;e++)for(let t=0;t<w;t++){if(!C[e][t])continue;let n=`${e},${t}`;D?.has(n)||k.has(n)||A.push(AZ((t+i)*E,(e+i)*E,E,u,d))}let j=(e,t,n)=>{let r=(n+i)*E,a=(t+i)*E;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`path`,{className:UZ.corner,d:zZ(r,a,E,e?.outerShape),fillRule:`evenodd`,style:{fill:e?.outerColor}}),(0,q.jsx)(`path`,{className:UZ.corner,d:BZ(r,a,E,e?.innerShape),style:{fill:e?.innerColor}})]})},M=g*w/T;return(0,q.jsxs)(`div`,{ref:t,role:`img`,"aria-label":_??n,className:G(UZ.root,y),style:{...b,"--qr-code-color":p,"--qr-code-background":m,"--qr-code-logo-size":h?`${M*100}%`:void 0},"data-component":`QRCode`,"data-dot-type":u,...x,children:[(0,q.jsxs)(`svg`,{className:UZ.canvas,width:r,height:r,viewBox:`0 0 ${r} ${r}`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,focusable:`false`,children:[(0,q.jsx)(`rect`,{className:UZ.background,width:`100%`,height:`100%`}),f?O.map(e=>(0,q.jsx)(l.Fragment,{children:j(f[e.key],e.row,e.col)},e.key)):null,A.length>0?(0,q.jsx)(`path`,{className:UZ.modules,d:A.join(``)}):null]}),h?(0,q.jsx)(`span`,{className:UZ.logo,"aria-hidden":`true`,children:h}):null]})}GZ.displayName=`QRCode`;var KZ=K(GZ);const qZ=(0,l.createContext)({}),JZ={root:`radio-card-description`};function YZ(e,t){let{className:n,id:r,...i}=e,{descriptionId:a}=l.useContext(qZ);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(JZ.root,n),"data-component":`RadioCard.Description`,...i})}YZ.displayName=`RadioCard.Description`;var XZ=K(YZ);const ZZ={root:`radio-card-label`};function QZ(e,t){let{className:n,id:r,...i}=e,{labelId:a}=l.useContext(qZ);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(ZZ.root,n),"data-component":`RadioCard.Label`,...i})}QZ.displayName=`RadioCard.Label`;var $Z=K(QZ);const eQ={root:`radio-card-leading-visual`};function tQ(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(eQ.root,n),"data-component":`RadioCard.LeadingVisual`,...i})}tQ.displayName=`RadioCard.LeadingVisual`;var nQ=K(tQ);const rQ={body:`radio-card-body`,control:`radio-card-control`},iQ=W(`radio-card`,{variants:{disabled:{true:`radio-card-disabled`,false:`radio-card-interactive`},validation:{error:`radio-card-error`,success:`radio-card-success`}}});function aQ(e,t){let{className:n,children:r,value:i,name:a,checked:o,defaultChecked:s,disabled:c,required:u,validationStatus:d,onChange:f,id:p,"aria-label":m,"aria-labelledby":h,"aria-describedby":g,..._}=e,v=l.useContext(zx).disabled||c,y=Y(p),b=`${y}-label`,x=`${y}-description`,[S,C]=xr(r,{leadingVisual:nQ,label:$Z,description:XZ}),w=h??(S.label&&!m?b:void 0),T=[S.description?x:void 0,g].filter(Boolean).join(` `)||void 0;return(0,q.jsx)(qZ.Provider,{value:{labelId:b,descriptionId:x},children:(0,q.jsxs)(`label`,{ref:t,className:G(iQ({disabled:!!v,validation:d}),n),"data-component":`RadioCard`,"data-disabled":v,"data-required":u,"data-validation":d,..._,children:[S.leadingVisual,(0,q.jsxs)(`div`,{className:rQ.body,children:[S.label,S.description,C]}),(0,q.jsx)(Hx,{id:y,value:i,name:a,checked:o,defaultChecked:s,disabled:v,required:u,validationStatus:d,onChange:f,"aria-label":m,"aria-labelledby":w,"aria-describedby":T,className:rQ.control})]})})}aQ.displayName=`RadioCard`;var oQ=K(aQ);const sQ=Object.assign(oQ,{LeadingVisual:nQ,Label:$Z,Description:XZ}),cQ={root:`radio-group-caption`};function lQ(e,t){let{className:n,...r}=e,{captionId:i}=l.useContext(zx);return(0,q.jsx)(`span`,{ref:t,id:i,className:G(cQ.root,n),"data-component":`RadioGroup.Caption`,...r})}lQ.displayName=`RadioGroup.Caption`;var uQ=K(lQ);const dQ={root:`radio-group-label`,disabled:`radio-group-label-disabled`,hidden:`sr-only`,required:`radio-group-label-required`};function fQ(e,t){let{className:n,children:r,visuallyHidden:i,...a}=e,{disabled:o,required:s}=l.useContext(zx);return(0,q.jsxs)(`span`,{ref:t,title:s?`required field`:void 0,className:G(dQ.root,o&&dQ.disabled,i&&dQ.hidden,n),"data-component":`RadioGroup.Label`,"data-label-disabled":o,...a,children:[r,s?(0,q.jsx)(`span`,{className:dQ.required,children:`*`}):null]})}fQ.displayName=`RadioGroup.Label`;var pQ=K(fQ);const mQ={success:Xt,error:fn},hQ={icon:`radio-group-validation-icon`},gQ=W(`radio-group-validation`,{variants:{variant:{success:`radio-group-validation-success`,error:`radio-group-validation-error`}}});function _Q(e,t){let{className:n,children:r,variant:i,...a}=e,{validationMessageId:o}=l.useContext(zx),s=mQ[i];return(0,q.jsxs)(`span`,{ref:t,className:G(gQ({variant:i}),n),"data-component":`RadioGroup.Validation`,"data-validation-status":i,...a,children:[(0,q.jsx)(s,{className:hQ.icon,"aria-hidden":`true`}),(0,q.jsx)(`span`,{id:o,children:r})]})}_Q.displayName=`RadioGroup.Validation`;var vQ=K(_Q);const yQ={root:`radio-group`,legend:`radio-group-legend`,legendVisible:`radio-group-legend-visible`,body:`radio-group-body`,validation:`radio-group-validation-slot`,hidden:`sr-only`};function bQ(e,t){let{as:n=`fieldset`,className:r,children:i,name:a,disabled:o,required:s,onChange:c,id:u,"aria-labelledby":d,...f}=e,[p,m]=xr(i,{label:pQ,caption:uQ,validation:vQ}),h=Y(u),g=p.caption?`${h}-caption`:void 0,_=p.validation?`${h}-validation`:void 0,v=e=>{let{value:t,checked:n}=e.currentTarget;n&&c?.(t,e)},y=l.isValidElement(p.label)?!p.label.props.visuallyHidden:!1,b={name:a,disabled:o,required:s,captionId:g,validationMessageId:_,onChange:v};return(0,q.jsx)(zx.Provider,{value:b,children:(0,q.jsxs)(n,{ref:t,id:h,disabled:o,"aria-labelledby":p.label?void 0:d,"aria-describedby":[_,g].filter(Boolean).join(` `)||void 0,className:G(yQ.root,r),"data-component":`RadioGroup`,"data-disabled":o,"data-required":s,...f,children:[p.label?(0,q.jsxs)(`legend`,{className:G(yQ.legend,y&&yQ.legendVisible),children:[p.label,s?(0,q.jsx)(`span`,{className:yQ.hidden,children:`, required`}):null,p.caption]}):p.caption,(0,q.jsx)(`div`,{className:yQ.body,children:m}),p.validation?(0,q.jsx)(`div`,{className:yQ.validation,children:p.validation}):null]})})}bQ.displayName=`RadioGroup`;var xQ=K(bQ);const SQ=Object.assign(xQ,{Label:pQ,Caption:uQ,Validation:vQ}),CQ={item:`rating-item`,input:`rating-input`,srOnly:`sr-only`,star:`rating-star`,starTrack:`rating-star-track`,starFill:`rating-star-fill`,starFillIcon:`rating-star-fill-icon`},wQ=W(`rating`,{variants:{size:{small:`rating-small`,medium:`rating-medium`,large:`rating-large`},interactive:{true:`rating-interactive`,false:``},disabled:{true:`rating-disabled`,false:``}}}),TQ=e=>e===1?`1 star`:`${e} stars`,EQ=(e,t)=>`${e} out of ${t} stars`,DQ=({className:e})=>(0,q.jsx)(`svg`,{className:e,"aria-hidden":`true`,viewBox:`0 0 16 16`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,children:(0,q.jsx)(`path`,{d:`M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.751.751 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25Z`})});function OQ(e,t){let{className:n,style:r,count:i=5,value:a,defaultValue:o,size:s=`medium`,readOnly:c,disabled:u,clearable:d,name:f,onChange:p,itemLabel:m=TQ,valueLabel:h=EQ,"aria-label":g,..._}=e,v=a!==void 0,[y,b]=l.useState(()=>o??0),x=v?a:y,S=Math.max(Math.trunc(i),0),C=Math.min(Math.max(x,0),S),w=Y(f),T=!c&&!u,E=e=>{T&&(v||b(e),p?.(e))},D=e=>{E(Number(e.currentTarget.value))},O=e=>{d&&Number(e.currentTarget.value)===C&&E(0)},k=c?`span`:`label`;return(0,q.jsx)(`span`,{ref:t,role:c?`img`:`radiogroup`,"aria-label":c?g??h(C,S):g,className:G(wQ({size:s,interactive:T,disabled:!!u}),n),style:{...r,"--rating-value":C},"data-component":`Rating`,"data-size":s,"data-value":C,"data-count":S,"data-readonly":c,"data-disabled":u,..._,children:Array.from({length:S},(e,t)=>{let n=t+1;return(0,q.jsxs)(k,{className:CQ.item,style:{"--rating-item-index":t},"data-component":`Rating.Item`,children:[c?null:(0,q.jsx)(`input`,{type:`radio`,className:G(CQ.input,CQ.srOnly),name:w,value:n,checked:n===C,disabled:u,"aria-label":m(n,S),onChange:D,onClick:O,"data-component":`Rating.Input`}),(0,q.jsxs)(`span`,{className:CQ.star,"aria-hidden":`true`,children:[(0,q.jsx)(DQ,{className:CQ.starTrack}),(0,q.jsx)(`span`,{className:CQ.starFill,children:(0,q.jsx)(DQ,{className:CQ.starFillIcon})})]})]},n)})})}OQ.displayName=`Rating`;var kQ=K(OQ);const AQ=1e3,jQ=60*AQ,MQ=60*jQ,NQ=24*MQ,PQ=7*NQ,FQ=30*NQ,IQ=12*FQ,LQ=`P30D`,RQ=[{unit:`year`,length:IQ},{unit:`month`,length:FQ},{unit:`week`,length:PQ},{unit:`day`,length:NQ},{unit:`hour`,length:MQ},{unit:`minute`,length:jQ},{unit:`second`,length:AQ}],zQ=[`year`,`month`,`day`,`hour`,`minute`,`second`],BQ={year:`y`,month:`mo`,week:`w`,day:`d`,hour:`h`,minute:`m`,second:`s`},VQ=RegExp(`^P(?:(\\d+)Y)?(?:(\\d+)M)?(?:(\\d+)W)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+(?:\\.\\d+)?)S)?)?$`),HQ=e=>{let t=VQ.exec(e);if(!t||t.slice(1).every(e=>e===void 0))return null;let[,n,r,i,a,o,s,c]=t;return Number(n??0)*IQ+Number(r??0)*FQ+Number(i??0)*PQ+Number(a??0)*NQ+Number(o??0)*MQ+Number(s??0)*jQ+Number(c??0)*AQ},UQ=e=>{let t=Math.abs(e),{unit:n,length:r}=RQ.find(({length:e})=>t>=e)??RQ[RQ.length-1];return{value:Math.sign(e)*Math.round(t/r),unit:n,length:r}},WQ=(e,t)=>{let n=Math.floor(Math.abs(e)/AQ),r=Math.floor(n/60),i=Math.floor(r/60),a=Math.floor(i/24),o=Math.floor(a/30),s=Math.floor(o/12),c={year:s,month:o-s*12,day:a-o*30,hour:i-a*24,minute:r-i*60,second:n-r*60};return zQ.slice(0,zQ.indexOf(t)+1).map(e=>({unit:e,count:c[e]}))},GQ=e=>{let{value:t,unit:n}=UQ(e);return n===`second`?`1m`:`${Math.abs(t)}${BQ[n]}`},KQ=(e,t)=>{let n=WQ(e,t).filter(({count:e})=>e>0);return n.length===0?`0${BQ[t]}`:n.map(({unit:e,count:t})=>`${t}${BQ[e]}`).join(` `)},qQ=(e,t)=>{let{value:n,unit:r}=UQ(e);return new Intl.RelativeTimeFormat(t,{numeric:`auto`}).format(n,r)},JQ=(e,t,n)=>{let r=e.getFullYear()===new Date(t).getFullYear();return{weekday:n.weekday,year:n.year??(r?void 0:`numeric`),month:n.month??`short`,day:n.day??`numeric`,hour:n.hour,minute:n.minute,second:n.second,timeZoneName:n.timeZoneName}},YQ=(e,t,n,r)=>new Intl.DateTimeFormat(r,JQ(e,t,n)).format(e),XQ=(e,t)=>new Intl.DateTimeFormat(t,{day:`numeric`,month:`short`,year:`numeric`,hour:`numeric`,minute:`2-digit`,timeZoneName:`short`}).format(e),ZQ=(e,t,n)=>{let{format:r,tense:i,precision:a,threshold:o,prefix:s,dateOptions:c,locale:l}=n,u=e.getTime()-t;if(r===`elapsed`)return{text:KQ(u,a),updateDelay:RQ.find(({unit:e})=>e===a)?.length??AQ};let d=HQ(o)??2592e6;if(Math.abs(u)<=d&&(i===`auto`||i===`past`&&u<=0||i===`future`&&u>=0)){let{length:e}=UQ(u);return{text:r===`micro`?GQ(u):qQ(u,l),updateDelay:e}}let f=YQ(e,t,c,l),p=u-d;return{text:s?`${s} ${f}`:f,updateDelay:u<=0?null:p>0?p:u}},QQ=(e,t)=>{let n=e??(t===void 0?void 0:new Date(t));return n&&!Number.isNaN(n.getTime())?n:void 0};function $Q(e,t){let{as:n=`time`,children:r,date:i,datetime:a,format:o=`auto`,tense:s=`auto`,precision:c=`second`,threshold:u=LQ,prefix:d=`on`,noTitle:f,weekday:p,year:m,month:h,day:g,hour:_,minute:v,second:y,timeZoneName:b,...x}=e,S=QQ(i,a),[C,w]=l.useState(()=>Date.now()),{text:T,updateDelay:E}=S?ZQ(S,C,{format:o,tense:s,precision:c,threshold:u,prefix:d,dateOptions:{weekday:p,year:m,month:h,day:g,hour:_,minute:v,second:y,timeZoneName:b}}):{text:``,updateDelay:null};return l.useEffect(()=>{if(E===null)return;let e=window.setTimeout(()=>{w(Date.now())},E);return()=>{window.clearTimeout(e)}},[C,E]),(0,q.jsx)(n,{ref:t,dateTime:S?.toISOString(),title:f||!S?void 0:XQ(S),"data-component":`RelativeTime`,"data-format":o,"data-tense":s,...x,children:r??T})}$Q.displayName=`RelativeTime`;var e$=K($Q);const t$={root:`resizable`};function n$(e,t){let{className:n,orientation:r=`horizontal`,resizableRef:i,...a}=e;return(0,q.jsx)(w.Group,{elementRef:t,groupRef:i,orientation:r,className:G(t$.root,n),"data-component":`Resizable`,"data-orientation":r,...a})}n$.displayName=`Resizable`;var r$=K(n$);const i$={root:`resizable-panel`};function a$(e,t){let{className:n,...r}=e;return(0,q.jsx)(w.Panel,{elementRef:t,className:G(i$.root,n),"data-component":`Resizable.Panel`,...r})}a$.displayName=`Resizable.Panel`;var o$=K(a$);const s$={root:`resizable-resize-trigger`};function c$(e,t){let{className:n,...r}=e;return(0,q.jsx)(w.Separator,{elementRef:t,className:G(s$.root,n),"data-component":`Resizable.ResizeTrigger`,...r})}c$.displayName=`Resizable.ResizeTrigger`;var l$=K(c$);const u$={root:`resizable-resize-trigger-indicator`};function d$(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(u$.root,n),"data-component":`Resizable.ResizeTriggerIndicator`,"aria-hidden":`true`,...r})}d$.displayName=`Resizable.ResizeTriggerIndicator`;var f$=K(d$);const p$={root:`resizable-resize-trigger-separator`};function m$(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(p$.root,n),"data-component":`Resizable.ResizeTriggerSeparator`,"aria-hidden":`true`,...r})}m$.displayName=`Resizable.ResizeTriggerSeparator`;var h$=K(m$);const g$=Object.assign(r$,{Panel:o$,ResizeTrigger:l$,ResizeTriggerSeparator:h$,ResizeTriggerIndicator:f$}),_$=(0,l.createContext)({}),v$=`RichTextEditor`,y$=[C.HeadingNode,C.QuoteNode,S.ListNode,S.ListItemNode,x.LinkNode,x.AutoLinkNode],b$={paragraph:`rich-text-editor-paragraph`,heading:{h1:`rich-text-editor-heading-1`,h2:`rich-text-editor-heading-2`,h3:`rich-text-editor-heading-3`},quote:`rich-text-editor-quote`,link:`rich-text-editor-link`,list:{ul:`rich-text-editor-list-bullet`,ol:`rich-text-editor-list-number`,listitem:`rich-text-editor-list-item`,nested:{listitem:`rich-text-editor-list-item-nested`}},text:{bold:`rich-text-editor-bold`,italic:`rich-text-editor-italic`,underline:`rich-text-editor-underline`,strikethrough:`rich-text-editor-strikethrough`,underlineStrikethrough:`rich-text-editor-underline-strikethrough`,code:`rich-text-editor-inline-code`},ltr:`rich-text-editor-ltr`,rtl:`rich-text-editor-rtl`},x$={root:`rich-text-editor`,readOnly:`rich-text-editor-read-only`},S$=({readOnly:e})=>{let[t]=(0,y.useLexicalComposerContext)();return l.useEffect(()=>{t.setEditable(!e)},[t,e]),null};function C$(e,t){let{className:n,children:r,defaultValue:i,onChange:a,placeholder:o,readOnly:s,nodes:c,namespace:l=v$,onError:u,minHeight:d,maxHeight:f,"aria-label":p,"aria-labelledby":m,"aria-describedby":h,...g}=e,v={namespace:l,theme:b$,nodes:c?[...y$,...c]:y$,editable:!s,editorState:i,onError:u??(e=>{throw e})},y={readOnly:s,placeholder:o,minHeight:d,maxHeight:f,ariaLabel:p,ariaLabelledBy:m,ariaDescribedBy:h};return(0,q.jsx)(`div`,{ref:t,className:G(x$.root,s&&x$.readOnly,n),"data-component":`RichTextEditor`,"data-read-only":s,...g,children:(0,q.jsx)(_.LexicalComposer,{initialConfig:v,children:(0,q.jsxs)(_$.Provider,{value:y,children:[(0,q.jsx)(T.HistoryPlugin,{}),(0,q.jsx)(D.ListPlugin,{}),(0,q.jsx)(E.LinkPlugin,{}),(0,q.jsx)(k.TabIndentationPlugin,{}),(0,q.jsx)(S$,{readOnly:s}),a?(0,q.jsx)(O.OnChangePlugin,{onChange:(e,t)=>a(e,t)}):null,r]})})})}C$.displayName=`RichTextEditor`;var w$=K(C$);const T$={scroll:`rich-text-editor-scroll`,content:`rich-text-editor-content`,placeholder:`rich-text-editor-placeholder`};function E$(e,t){let{className:n,style:r,...i}=e,{placeholder:a,minHeight:o,maxHeight:s,ariaLabel:c,ariaLabelledBy:u,ariaDescribedBy:d}=l.useContext(_$),f=(0,q.jsx)(`div`,{className:T$.scroll,style:{minHeight:o===void 0?void 0:`${o}px`,maxHeight:s===void 0?void 0:`${s}px`},"data-component":`RichTextEditor.Scroll`,children:a?(0,q.jsx)(A.ContentEditable,{ref:t,className:G(T$.content,n),style:r,ariaLabel:c,ariaLabelledBy:u,ariaDescribedBy:d,"aria-placeholder":a,placeholder:(0,q.jsx)(`div`,{className:T$.placeholder,children:a}),"data-component":`RichTextEditor.Content`,...i}):(0,q.jsx)(A.ContentEditable,{ref:t,className:G(T$.content,n),style:r,ariaLabel:c,ariaLabelledBy:u,ariaDescribedBy:d,placeholder:null,"data-component":`RichTextEditor.Content`,...i})});return(0,q.jsx)(M.RichTextPlugin,{contentEditable:f,ErrorBoundary:j.LexicalErrorBoundary})}E$.displayName=`RichTextEditor.Content`;var D$=K(E$);const O$=[`history`,`inline`,`block`,`list`,`link`],k$={root:`rich-text-editor-toolbar`,controls:`rich-text-editor-toolbar-controls`,group:`rich-text-editor-toolbar-group`,divider:`rich-text-editor-toolbar-divider`,linkField:`rich-text-editor-link-field`,linkInput:`rich-text-editor-link-input`},A$=[{format:`bold`,icon:Fn,label:`Bold`},{format:`italic`,icon:Bn,label:`Italic`},{format:`underline`,icon:Wn,label:`Underline`},{format:`strikethrough`,icon:Un,label:`Strikethrough`},{format:`code`,icon:sn,label:`Code`}],j$=[{tag:`h1`,icon:Ln,label:`Heading 1`},{tag:`h2`,icon:Rn,label:`Heading 2`},{tag:`h3`,icon:zn,label:`Heading 3`}],M$={bold:!1,italic:!1,underline:!1,strikethrough:!1,code:!1};function N$(e){let{className:t,children:n,controls:r=O$,"aria-label":i=`Formatting`,...a}=e,[o]=(0,y.useLexicalComposerContext)(),{readOnly:s}=l.useContext(_$),c=l.useRef(null);_r({containerRef:c,direction:`horizontal`,wrap:!0});let[u,d]=l.useState(M$),[f,p]=l.useState(`paragraph`),[m,h]=l.useState(!1),[g,_]=l.useState(!1),[v,b]=l.useState(!1),[w,T]=l.useState(null),E=l.useCallback(()=>{let e=(0,F.$getSelection)();if(!(0,F.$isRangeSelection)(e))return;d({bold:e.hasFormat(`bold`),italic:e.hasFormat(`italic`),underline:e.hasFormat(`underline`),strikethrough:e.hasFormat(`strikethrough`),code:e.hasFormat(`code`)});let t=e.anchor.getNode(),n=t.getKey()===`root`?t:t.getTopLevelElement();if((0,S.$isListNode)(n))p(n.getListType()===`number`?`number`:`bullet`);else if((0,C.$isHeadingNode)(n)){let e=n.getTag();p(e===`h1`||e===`h2`||e===`h3`?e:`paragraph`)}else(0,C.$isQuoteNode)(n)?p(`quote`):p(`paragraph`);h((0,x.$isLinkNode)(t)||(0,x.$isLinkNode)(t.getParent()))},[]);l.useEffect(()=>(0,P.mergeRegister)(o.registerUpdateListener(({editorState:e})=>{e.read(E)}),o.registerCommand(F.SELECTION_CHANGE_COMMAND,()=>(E(),!1),F.COMMAND_PRIORITY_CRITICAL),o.registerCommand(F.CAN_UNDO_COMMAND,e=>(_(e),!1),F.COMMAND_PRIORITY_CRITICAL),o.registerCommand(F.CAN_REDO_COMMAND,e=>(b(e),!1),F.COMMAND_PRIORITY_CRITICAL)),[o,E]);let D=e=>{o.update(()=>{let t=(0,F.$getSelection)();if((0,F.$isRangeSelection)(t)){if(f===e){(0,N.$setBlocksType)(t,()=>(0,F.$createParagraphNode)());return}(0,N.$setBlocksType)(t,()=>e===`quote`?(0,C.$createQuoteNode)():(0,C.$createHeadingNode)(e))}})},O=e=>{if(f===e){o.dispatchCommand(S.REMOVE_LIST_COMMAND,void 0);return}o.dispatchCommand(e===`bullet`?S.INSERT_UNORDERED_LIST_COMMAND:S.INSERT_ORDERED_LIST_COMMAND,void 0)},k=()=>{if(m){o.dispatchCommand(x.TOGGLE_LINK_COMMAND,null);return}T(e=>e===null?``:null)},A=()=>{w&&o.dispatchCommand(x.TOGGLE_LINK_COMMAND,w),T(null),o.focus()},j=(e,t,n,r,i,a)=>(0,q.jsx)(gi,{icon:n,size:`small`,variant:`invisible`,"aria-label":t,"aria-pressed":r,disabled:s||a,onClick:i,"data-component":`RichTextEditor.${e}`},e),M={history:(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(gi,{icon:Gt,size:`small`,variant:`invisible`,"aria-label":`Undo`,disabled:s||!g,onClick:()=>o.dispatchCommand(F.UNDO_COMMAND,void 0),"data-component":`RichTextEditor.Undo`}),(0,q.jsx)(gi,{icon:Ht,size:`small`,variant:`invisible`,"aria-label":`Redo`,disabled:s||!v,onClick:()=>o.dispatchCommand(F.REDO_COMMAND,void 0),"data-component":`RichTextEditor.Redo`})]}),inline:(0,q.jsx)(q.Fragment,{children:A$.map(({format:e,icon:t,label:n})=>j(n,n,t,u[e],()=>o.dispatchCommand(F.FORMAT_TEXT_COMMAND,e)))}),block:(0,q.jsxs)(q.Fragment,{children:[j$.map(({tag:e,icon:t,label:n})=>j(n,n,t,f===e,()=>D(e))),j(`Quote`,`Quote`,Hn,f===`quote`,()=>D(`quote`))]}),list:(0,q.jsxs)(q.Fragment,{children:[j(`Bulleted list`,`Bulleted list`,In,f===`bullet`,()=>O(`bullet`)),j(`Numbered list`,`Numbered list`,Vn,f===`number`,()=>O(`number`))]}),link:j(`Link`,m?`Remove link`:`Link`,xn,m||w!==null,k)};return(0,q.jsxs)(`div`,{className:G(k$.root,t),"data-component":`RichTextEditor.Toolbar`,children:[(0,q.jsxs)(`div`,{ref:c,role:`toolbar`,"aria-label":i,"aria-orientation":`horizontal`,className:k$.controls,...a,children:[r.map((e,t)=>(0,q.jsxs)(l.Fragment,{children:[t>0?(0,q.jsx)(`span`,{"aria-hidden":`true`,className:k$.divider,"data-component":`RichTextEditor.ToolbarDivider`}):null,(0,q.jsx)(`div`,{className:k$.group,"data-control":e,children:M[e]})]},e)),n]}),w===null?null:(0,q.jsxs)(`div`,{className:k$.linkField,"data-component":`RichTextEditor.LinkField`,children:[(0,q.jsx)(qo,{autoFocus:!0,size:`small`,type:`url`,value:w,placeholder:`https://example.com`,"aria-label":`Link address`,className:k$.linkInput,onChange:e=>T(e.currentTarget.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),A()),e.key===`Escape`&&(T(null),o.focus())}}),(0,q.jsx)(pi,{size:`small`,onClick:A,children:`Apply`})]})]})}N$.displayName=`RichTextEditor.Toolbar`;const P$=Object.assign(w$,{Toolbar:N$,Content:D$}),F$={item:`segmented-control-segment`,separator:`segmented-control-segment-separator`,separatorHidden:`segmented-control-segment-separator-hidden`,button:`segmented-control-button`,buttonSelected:`segmented-control-button-selected`,buttonDisabled:`segmented-control-button-disabled`,content:`segmented-control-content`,contentSelected:`segmented-control-content-selected`,contentInteractive:`segmented-control-content-interactive`},I$=e=>{let t=e;return l.isValidElement(e)?e:(0,q.jsx)(t,{})};function L$(e){let{component:t,className:n,children:r,selected:i,disabled:a,tooltip:o,tooltipType:s,tooltipDirection:c,"aria-disabled":l,...u}=e,d=!!a||l===!0||l===`true`,f=(0,q.jsx)(`button`,{type:`button`,"aria-pressed":i,"aria-disabled":d||void 0,className:G(F$.button,i&&F$.buttonSelected,d&&!i&&F$.buttonDisabled,n),...u,children:(0,q.jsx)(`span`,{className:G(F$.content,i&&F$.contentSelected,!i&&!d&&F$.contentInteractive),children:r})});return(0,q.jsx)(`li`,{className:G(F$.item,F$.separator,F$.separatorHidden),"data-component":t,"data-selected":i?``:void 0,children:o?(0,q.jsx)(lT,{text:o,type:s,direction:c,children:f}):f})}L$.displayName=`SegmentedControlSegment`;const R$={visual:`segmented-control-visual`,visualDisabled:`segmented-control-visual-disabled`,text:`segmented-control-text`,textHidden:`segmented-control-text-hidden`,counter:`segmented-control-counter`};function z$(e){let{children:t,className:n,count:r,leadingVisual:i,selected:a,disabled:o,defaultSelected:s,...c}=e;return(0,q.jsxs)(L$,{component:`SegmentedControl.Button`,className:n,selected:a,disabled:o,...c,children:[i?(0,q.jsx)(`span`,{className:G(R$.visual,o&&R$.visualDisabled),"data-component":`SegmentedControl.LeadingVisual`,children:I$(i)}):null,(0,q.jsx)(`span`,{className:G(R$.text,R$.textHidden),"data-component":`SegmentedControl.Text`,"data-text":t,children:t}),r===void 0?null:(0,q.jsx)(`span`,{className:R$.counter,children:(0,q.jsx)(si,{children:r})})]})}z$.displayName=`SegmentedControl.Button`;const B$={button:`segmented-control-icon-button`,visual:`segmented-control-icon-visual`,visualDisabled:`segmented-control-visual-disabled`};function V$(e){let{"aria-label":t,className:n,description:r,icon:i,selected:a,disabled:o,tooltipDirection:s,defaultSelected:c,...l}=e;return(0,q.jsx)(L$,{component:`SegmentedControl.IconButton`,className:G(B$.button,n),selected:a,disabled:o,"aria-label":r?t:void 0,tooltip:r??t,tooltipType:r?void 0:`label`,tooltipDirection:s,...l,children:(0,q.jsx)(`span`,{className:G(B$.visual,o&&B$.visualDisabled),"data-component":`SegmentedControl.Icon`,children:I$(i)})})}V$.displayName=`SegmentedControl.IconButton`;const H$={dropdown:`segmented-control-dropdown`},U$=W(`segmented-control`,{variants:{size:{small:`segmented-control-small`,medium:``}}}),W$=e=>l.Children.toArray(e).filter(e=>l.isValidElement(e)),G$=e=>e.type===z$,K$=e=>e.type===V$,q$=e=>{if(e!==void 0)return G$(e)?e.props.children:K$(e)?e.props[`aria-label`]:void 0},J$=e=>e===void 0?null:G$(e)?e.props.leadingVisual??null:K$(e)?e.props.icon:null,Y$=e=>{let t=e.props[`aria-disabled`];return e.props.disabled===!0||t===!0||t===`true`};function X$(e){let{"aria-label":t,"aria-labelledby":n,className:r,children:i,fullWidth:a,onChange:o,size:s=`medium`,variant:c=`default`,...u}=e,d=W$(i),f=o===void 0||d.some(e=>e.props.defaultSelected!==void 0),p=d.findIndex(e=>e.props.defaultSelected||e.props.selected),m=p===-1?0:p,[h,g]=l.useState(m),_=f?h:m,v=d[_],y=(e,t,n)=>{Y$(t)||(f&&g(e),o?.(e),t.props.onClick?.(n))},b=(0,q.jsx)(`ul`,{"aria-label":t,"aria-labelledby":n,className:G(U$({size:s}),r),"data-component":`SegmentedControl`,"data-size":s,...Ui(`full-width`,a),...Ui(`variant`,c),...u,children:d.map((e,t)=>l.cloneElement(e,{selected:t===_,onClick:n=>y(t,e,n)}))});return ls(c)&&Object.values(c).includes(`dropdown`)?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`div`,{className:H$.dropdown,"data-component":`SegmentedControl.Dropdown`,...Ui(`variant`,c),children:(0,q.jsxs)(ma,{children:[(0,q.jsx)(ma.Button,{"aria-label":t&&`${q$(v)}, ${t}`,leadingVisual:J$(v),children:q$(v)}),(0,q.jsx)(ma.Overlay,{"aria-labelledby":n,children:(0,q.jsx)(ji,{selectionVariant:`single`,children:d.map((e,t)=>{let n=J$(e);return(0,q.jsxs)(ji.Item,{selected:t===_,disabled:Y$(e),onSelect:n=>y(t,e,n),children:[n?(0,q.jsx)(ji.LeadingVisual,{children:I$(n)}):null,q$(e)]},t)})})})]})}),b]}):b}X$.displayName=`SegmentedControl`;const Z$=Object.assign(X$,{Button:z$,IconButton:V$}),Q$=Object.assign(lS,{Option:Zx,OptGroup:qx});function $$(e,t){let{className:n,children:r,...i}=e,{required:a,...o}=Xf(i),{labelId:s}=l.useContext(Yf),c=Y();return(0,q.jsx)(pi,{ref:t,type:`button`,"aria-labelledby":s?`${c} ${s}`:void 0,className:G(n),"data-component":`SelectPanel.Button`,...o,children:s?(0,q.jsx)(`span`,{id:c,children:r}):r})}$$.displayName=`SelectPanel.Button`;var e1=K($$);const t1=(0,l.createContext)({}),n1={root:`select-panel-footer`,rootWithoutActions:`select-panel-footer-without-actions`,content:`select-panel-footer-content`,contentWithoutActions:`select-panel-footer-content-without-actions`,actions:`select-panel-footer-actions`};function r1(e,t){let{className:n,children:r,...i}=e,{selectionVariant:a,onCancel:o}=l.useContext(t1),s=a!==`instant`;return!s&&!r?null:(0,q.jsxs)(`div`,{ref:t,className:G(n1.root,!s&&n1.rootWithoutActions,n),"data-component":`SelectPanel.Footer`,"data-has-actions":s?``:void 0,...i,children:[(0,q.jsx)(`div`,{className:G(n1.content,!s&&n1.contentWithoutActions),children:r}),s?(0,q.jsxs)(`div`,{className:n1.actions,children:[(0,q.jsx)(pi,{type:`button`,size:`small`,onClick:o,children:`Cancel`}),(0,q.jsx)(pi,{type:`submit`,size:`small`,variant:`primary`,children:`Save`})]}):null]})}r1.displayName=`SelectPanel.Footer`;var i1=K(r1);const a1={root:`select-panel-search-input`};function o1(e,t){let{className:n,value:r,onChange:i,onKeyDown:a,...o}=e,{searchQuery:s,setSearchQuery:c,searchInputRef:u,moveFocusToList:d}=l.useContext(t1),f=l.useRef(null),p=ar(u,f),m=ar(t,p),h=r??s??``;return(0,q.jsx)(qo,{ref:m,block:!0,leadingVisual:On,placeholder:`Search`,value:h,onChange:e=>{c?.(e.currentTarget.value),i?.(e.currentTarget.value,e)},onKeyDown:e=>{e.key===`ArrowDown`&&(e.preventDefault(),d?.()),a?.(e)},trailingAction:h?(0,q.jsx)(qo.Action,{icon:ln,"aria-label":`Clear`,onClick:()=>{c?.(``),i?.(``,null),f.current?.focus()}}):void 0,className:G(a1.root,n),"data-component":`SelectPanel.SearchInput`,...o})}o1.displayName=`SelectPanel.SearchInput`;var s1=K(o1);const c1={root:`select-panel-header`,content:`select-panel-header-content`,contentWithSearchInput:`select-panel-header-content-with-search`,titleRow:`select-panel-header-title-row`,title:`select-panel-header-title`,heading:`select-panel-header-heading`,description:`select-panel-header-description`,actions:`select-panel-header-actions`},l1={searchInput:s1};function u1(e,t){let{className:n,children:r,onBack:i,...a}=e,[o,s]=xr(r,l1),{panelId:c,title:u,description:d,onCancel:f,onClearSelection:p}=l.useContext(t1);return(0,q.jsxs)(`div`,{ref:t,className:G(c1.root,n),"data-component":`SelectPanel.Header`,...a,children:[(0,q.jsxs)(`div`,{className:G(c1.content,o.searchInput&&c1.contentWithSearchInput),"data-has-description":d?``:void 0,"data-has-search-input":o.searchInput?``:void 0,children:[(0,q.jsxs)(`div`,{className:c1.titleRow,children:[i?(0,q.jsx)(gi,{type:`button`,variant:`invisible`,icon:Rt,"aria-label":`Back`,onClick:i,"data-component":`SelectPanel.BackButton`}):null,(0,q.jsxs)(`div`,{className:c1.title,"data-has-description":d?``:void 0,"data-has-back":i?``:void 0,children:[(0,q.jsx)(Tr,{as:`h1`,id:c?`${c}-title`:void 0,className:c1.heading,children:u}),d?(0,q.jsx)(`span`,{id:c?`${c}-description`:void 0,className:c1.description,children:d}):null]})]}),(0,q.jsxs)(`div`,{className:c1.actions,children:[p?(0,q.jsx)(gi,{type:`button`,variant:`invisible`,icon:hn,"aria-label":`Clear selection`,onClick:p,"data-component":`SelectPanel.ClearSelectionButton`}):null,(0,q.jsx)(gi,{type:`button`,variant:`invisible`,icon:un,"aria-label":`Close`,onClick:f,"data-component":`SelectPanel.CloseButton`})]})]}),o.searchInput,s]})}u1.displayName=`SelectPanel.Header`;var d1=K(u1);const f1={form:`select-panel-form`,container:`select-panel-container`},p1=W(`select-panel-backdrop`,{variants:{variant:{anchored:``,modal:`select-panel-backdrop-modal motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short`},narrowVariant:{anchored:``,modal:`select-panel-backdrop-narrow-modal`,"full-screen":``,"bottom-sheet":`select-panel-backdrop-narrow-bottom-sheet`}}}),m1=W(`select-panel motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short`,{variants:{width:{small:`select-panel-width-small`,medium:`select-panel-width-medium`,large:`select-panel-width-large`,xlarge:`select-panel-width-xlarge`,auto:`select-panel-width-auto`},maxHeight:{small:`select-panel-max-height-small`,medium:`select-panel-max-height-medium`,large:`select-panel-max-height-large`,xlarge:`select-panel-max-height-xlarge`,"fit-content":`select-panel-max-height-fit-content`},variant:{anchored:`select-panel-anchored`,modal:``},narrowVariant:{anchored:`select-panel-narrow-anchored`,modal:`select-panel-narrow-modal`,"full-screen":`select-panel-narrow-full-screen`,"bottom-sheet":`select-panel-narrow-bottom-sheet`},unplaced:{true:`invisible`,false:``}}}),h1={regular:`anchored`,narrow:`full-screen`},g1=e=>l.isValidElement(e)&&e.type===e1,_1=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign;function v1(e,t){let{className:n,children:r,title:i,description:a,variant:o=h1,selectionVariant:s=`multiple`,id:c,defaultOpen:u=!1,open:d,anchorRef:f,side:p=`outside-bottom`,align:m=`start`,onCancel:h,onClearSelection:g,onSubmit:_,width:v=`medium`,maxHeight:y=`large`,...b}=e,x=Y(c),S=l.useRef(null),C=f??S,w=l.useRef(null),T=ar(t,w),E=l.useRef(null),D=d!==void 0,[O,k]=l.useState(u),A=D?d:O,j=l.useCallback(()=>{D||k(!1)},[D]),M=l.useCallback(()=>{j(),h?.()},[j,h]),N=l.useCallback(()=>g?.(),[g]),P=l.useCallback(e=>{e?.preventDefault(),j(),_?.(e)},[j,_]),F=l.useCallback(()=>{w.current?.querySelector(`[role="option"]`)?.focus()},[]),I=l.useCallback(()=>{s===`instant`&&P()},[s,P]),[L,ee]=l.useState(``),R=l.Children.toArray(r),z=R.find(g1),[te,ne]=xr(R.filter(e=>e!==z),{header:d1,footer:i1}),B=z?.props.onClick,re=z?l.cloneElement(z,{ref:C,onClick:e=>{B?.(e),!e.defaultPrevented&&(A?M():D||k(!0))},"aria-haspopup":!0,"aria-expanded":A}):null,V={...h1,...typeof o==`string`?{regular:o}:o},ie=V.regular??`anchored`,ae=V.narrow,oe=ie===`anchored`||ae===`anchored`,se=l.useRef(null),[ce,le]=l.useState(null),ue=l.useCallback(()=>{let e=C.current,t=w.current;if(!e||!t)return;let n=aa(t,e,{side:p,align:m});se.current&&_1(se.current,n)||(se.current=n,le(n))},[C,p,m]);rr(()=>{if(!A||!oe){se.current=null,le(null);return}ue();let e=new ResizeObserver(ue);return w.current&&e.observe(w.current),window.addEventListener(`resize`,ue),window.addEventListener(`scroll`,ue,!0),()=>{e.disconnect(),window.removeEventListener(`resize`,ue),window.removeEventListener(`scroll`,ue,!0)}},[A,oe,ue]),zi({containerRef:w,initialFocusRef:E,returnFocusRef:C,disabled:!A}),l.useEffect(()=>{A&&!E.current&&F()},[A,F]),Hi(e=>{A&&(e.preventDefault(),M())});let de=l.useMemo(()=>({panelId:x,title:i,description:a,selectionVariant:s,searchQuery:L,setSearchQuery:ee,searchInputRef:E,onCancel:M,onClearSelection:g?N:void 0,moveFocusToList:F}),[x,i,a,s,L,M,g,N,F]),fe=l.useMemo(()=>({container:`SelectPanel`,listRole:`listbox`,listLabelledBy:`${x}-title`,selectionAttribute:`aria-selected`,selectionVariant:s===`instant`?`single`:s,afterSelect:I,enableFocusZone:!0}),[x,s,I]);return(0,q.jsxs)(q.Fragment,{children:[re,A?(0,q.jsx)(ea,{children:(0,q.jsx)(`div`,{className:G(p1({variant:ie,narrowVariant:ae})),onClick:e=>{e.target===e.currentTarget&&M()},"data-component":`SelectPanel.Backdrop`,...Ui(`variant`,V),children:(0,q.jsx)(`div`,{ref:T,role:`dialog`,"aria-modal":!0,"aria-labelledby":`${x}-title`,"aria-describedby":a?`${x}-description`:void 0,className:G(m1({width:v,maxHeight:y,variant:ie,narrowVariant:ae,unplaced:oe&&!ce}),n),style:{"--select-panel-top":`${ce?.top??0}px`,"--select-panel-left":`${ce?.left??0}px`},"data-component":`SelectPanel`,"data-width":v,"data-max-height":y,"data-side":ce?.anchorSide??p,"data-align":ce?.anchorAlign??m,...Ui(`variant`,V),...b,children:(0,q.jsx)(`form`,{className:f1.form,onSubmit:P,children:(0,q.jsxs)(t1.Provider,{value:de,children:[te.header??(0,q.jsx)(d1,{}),(0,q.jsx)(`div`,{className:f1.container,children:(0,q.jsx)(Ar.Provider,{value:fe,children:ne})}),te.footer]})})})})}):null]})}v1.displayName=`SelectPanel`;var y1=K(v1);const b1={root:`select-panel-loading`,text:`select-panel-loading-text`};function x1(e,t){let{className:n,children:r=`Fetching items...`,...i}=e;return(0,q.jsxs)(`div`,{ref:t,role:`status`,"aria-live":`polite`,className:G(b1.root,n),"data-component":`SelectPanel.Loading`,...i,children:[(0,q.jsx)($r,{size:`medium`,srText:null,role:`presentation`}),(0,q.jsx)(`span`,{className:b1.text,children:r})]})}x1.displayName=`SelectPanel.Loading`;var S1=K(x1);const C1={full:`select-panel-message-full`,fullIcon:`select-panel-message-full-icon`,fullTitle:`select-panel-message-full-title`,fullContent:`select-panel-message-full-content`,inline:`select-panel-message-inline`,inlineIcon:`select-panel-message-inline-icon`,variant:{warning:`select-panel-message-warning`,error:`select-panel-message-error`,empty:``},inlineVariant:{warning:`select-panel-message-inline-warning`,error:`select-panel-message-inline-error`,empty:``}};function w1(e,t){let{className:n,children:r,variant:i,size:a,title:o,...s}=e,c=a??(i===`empty`?`full`:`inline`),l=i===`empty`?void 0:{role:`status`,"aria-live":`polite`};return c===`full`?(0,q.jsxs)(`div`,{ref:t,className:G(C1.full,n),"data-component":`SelectPanel.Message`,"data-variant":i,"data-size":`full`,...l,...s,children:[i===`empty`?null:(0,q.jsx)(Gn,{className:G(C1.fullIcon,C1.variant[i]),"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:C1.fullTitle,children:o}),(0,q.jsx)(`span`,{className:C1.fullContent,children:r})]}):(0,q.jsxs)(`div`,{ref:t,className:G(C1.inline,C1.variant[i],C1.inlineVariant[i],n),"data-component":`SelectPanel.Message`,"data-variant":i,"data-size":`inline`,...l,...s,children:[(0,q.jsx)(Gn,{className:C1.inlineIcon,"aria-hidden":`true`}),(0,q.jsx)(`div`,{children:r})]})}w1.displayName=`SelectPanel.Message`;var T1=K(w1);const E1={small:`select-panel-secondary-action-small`,checkbox:`select-panel-secondary-action-checkbox`,box:`select-panel-secondary-action-box`},D1=e=>{let{id:t,children:n,className:r,...i}=e,a=Y(t);return(0,q.jsxs)(`span`,{className:E1.checkbox,"data-component":`SelectPanel.SecondaryAction`,children:[(0,q.jsx)($d,{id:a,className:G(E1.box,r),...i}),(0,q.jsx)(`label`,{htmlFor:a,className:E1.small,children:n})]})};function O1(e){if(e.variant===`checkbox`){let{variant:t,...n}=e;return(0,q.jsx)(D1,{...n})}if(e.variant===`link`){let{variant:t,className:n,...r}=e;return(0,q.jsx)($c,{className:G(E1.small,n),"data-component":`SelectPanel.SecondaryAction`,...r})}let{variant:t,...n}=e;return(0,q.jsx)(pi,{type:`button`,size:`small`,block:!0,"data-component":`SelectPanel.SecondaryAction`,...n})}O1.displayName=`SelectPanel.SecondaryAction`;const k1=Object.assign(y1,{Button:e1,Header:d1,SearchInput:s1,Footer:i1,SecondaryAction:O1,Loading:S1,Message:T1}),A1=W(`separator`,{variants:{orientation:{horizontal:`separator-horizontal`,vertical:`separator-vertical`},variant:{subtle:`separator-subtle`,default:`separator-default`,emphasis:`separator-emphasis`}}});function j1(e,t){let{as:n=`div`,className:r,orientation:i=`horizontal`,variant:a=`default`,...o}=e;return(0,q.jsx)(n,{ref:t,role:`separator`,"aria-orientation":i,className:G(A1({orientation:i,variant:a}),r),"data-component":`Separator`,"data-orientation":i,"data-variant":a,...o})}j1.displayName=`Separator`;var M1=K(j1);const N1=W(`slider`,{variants:{size:{small:`slider-small`,medium:`slider-medium`,large:`slider-large`},orientation:{horizontal:`slider-horizontal`,vertical:`slider-vertical`},block:{true:``,false:``}},compoundVariants:[{block:!0,orientation:`horizontal`,class:`slider-block-horizontal`},{block:!0,orientation:`vertical`,class:`slider-block-vertical`}]}),P1=(e,t,n)=>{if(n<=t)return 0;let r=(e-t)/(n-t)*100;return Math.min(Math.max(r,0),100)};function F1(e,t){let{className:n,style:r,size:i=`medium`,orientation:a=`horizontal`,block:o,min:s=0,max:c=100,step:u=1,value:d,defaultValue:f,disabled:p,onChange:m,...h}=e,g=d!==void 0,[_,v]=l.useState(()=>f??s),y=g?d:_;return(0,q.jsx)(`input`,{ref:t,type:`range`,min:s,max:c,step:u,value:y,disabled:p,onChange:e=>{let t=Number(e.currentTarget.value);g||v(t),m?.(t,e)},className:G(N1({size:i,orientation:a,block:o}),n),style:{...r,"--slider-fill":`${P1(y,s,c)}%`},"aria-orientation":a===`vertical`?`vertical`:void 0,"data-component":`Slider`,"data-size":i,"data-orientation":a,"data-block":o,"data-disabled":p,...h})}F1.displayName=`Slider`;var I1=K(F1);const L1={open:`open`,issueOpened:`open`,pullOpened:`open`,alertOpened:`open`,closed:`done`,issueClosed:`done`,pullMerged:`done`,alertFixed:`done`,pullClosed:`closed`,alertClosed:`closed`,issueClosedNotPlanned:`neutral`,unavailable:`neutral`,archived:`neutral`,pullQueued:`attention`,draft:`draft`,issueDraft:`draft`,alertDismissed:`draft`},R1={open:null,closed:null,draft:nn,archived:Ft,unavailable:Gn,issueOpened:Dn,issueClosed:Xt,issueClosedNotPlanned:En,issueDraft:nn,pullOpened:Jt,pullClosed:ln,pullMerged:Sn,pullQueued:on,alertOpened:Nn,alertClosed:Mn,alertFixed:An,alertDismissed:jn},z1={open:``,closed:``,draft:`Pull request`,archived:`Archived`,unavailable:``,issueOpened:`Issue`,issueClosed:`Issue`,issueClosedNotPlanned:`Issue, not planned`,issueDraft:`Issue`,pullOpened:`Pull request`,pullClosed:`Pull request`,pullMerged:`Pull request`,pullQueued:`Pull request`,alertOpened:`Alert`,alertClosed:`Alert`,alertFixed:`Alert`,alertDismissed:`Alert`},B1=W(`state-label`,{variants:{size:{small:`state-label-small`,medium:`state-label-medium`},tone:{open:`state-label-open`,closed:`state-label-closed`,done:`state-label-done`,draft:`state-label-draft`,attention:`state-label-attention`,neutral:`state-label-neutral`}}}),V1=W(`state-label-visual`,{variants:{size:{small:`state-label-visual-small`,medium:`state-label-visual-medium`}}});function H1(e,t){let{as:n=`span`,className:r,status:i,size:a=`medium`,children:o,...s}=e,c=R1[i],l=z1[i];return(0,q.jsxs)(n,{ref:t,className:G(B1({size:a,tone:L1[i]}),r),"data-component":`StateLabel`,"data-status":i,"data-size":a,...s,children:[c?(0,q.jsx)(c,{className:G(V1({size:a})),role:l?`img`:void 0,"aria-label":l||void 0,"aria-hidden":!l||void 0}):null,o]})}H1.displayName=`StateLabel`;var U1=K(H1);const W1=(0,l.createContext)({}),G1={root:`statistic-card-description`};function K1(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(G1.root,n),"data-component":`StatisticCard.Description`,...r})}K1.displayName=`StatisticCard.Description`;var q1=K(K1);const J1={root:`statistic-card-label`};function Y1(e,t){let{className:n,id:r,...i}=e,{labelId:a}=l.useContext(W1);return(0,q.jsx)(`span`,{ref:t,id:r??a,className:G(J1.root,n),"data-component":`StatisticCard.Label`,...i})}Y1.displayName=`StatisticCard.Label`;var X1=K(Y1);const Z1={root:`statistic-card-trailing-visual`};function Q1(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(Z1.root,n),"data-component":`StatisticCard.TrailingVisual`,...i})}Q1.displayName=`StatisticCard.TrailingVisual`;var $1=K(Q1);const e0={hidden:`sr-only`},t0={increase:Kt,decrease:Lt,neutral:Pn},n0={increase:`Up`,decrease:`Down`,neutral:`No change`},r0={increase:`positive`,decrease:`negative`,neutral:`neutral`},i0=W(`statistic-card-trend`,{variants:{sentiment:{positive:`statistic-card-trend-positive`,negative:`statistic-card-trend-negative`,neutral:`statistic-card-trend-neutral`}}});function a0(e,t){let{className:n,children:r,direction:i,sentiment:a,...o}=e,s=t0[i],c=a??r0[i];return(0,q.jsxs)(`span`,{ref:t,className:G(i0({sentiment:c}),n),"data-component":`StatisticCard.Trend`,"data-direction":i,"data-sentiment":c,...o,children:[(0,q.jsx)(s,{"aria-hidden":!0}),(0,q.jsx)(`span`,{className:e0.hidden,children:n0[i]}),r]})}a0.displayName=`StatisticCard.Trend`;var o0=K(a0);const s0={root:`statistic-card-value`};function c0(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(s0.root,n),"data-component":`StatisticCard.Value`,...r})}c0.displayName=`StatisticCard.Value`;var l0=K(c0);const u0={root:`statistic-card`,body:`statistic-card-body`,figure:`statistic-card-figure`};function d0(e,t){let{className:n,children:r,id:i,"aria-label":a,"aria-labelledby":o,...s}=e,c=`${Y(i)}-label`,[l,u]=xr(r,{trailingVisual:$1,label:X1,value:l0,trend:o0,description:q1}),d=o??(l.label&&!a?c:void 0);return(0,q.jsx)(W1.Provider,{value:{labelId:c},children:(0,q.jsxs)(`div`,{ref:t,id:i,role:d||a?`group`:void 0,"aria-label":a,"aria-labelledby":d,className:G(u0.root,n),"data-component":`StatisticCard`,...s,children:[(0,q.jsxs)(`div`,{className:u0.body,children:[l.label,l.value||l.trend?(0,q.jsxs)(`div`,{className:u0.figure,children:[l.value,l.trend]}):null,l.description,u]}),l.trailingVisual]})})}d0.displayName=`StatisticCard`;var f0=K(d0);const p0=Object.assign(f0,{Label:X1,Value:l0,Trend:o0,Description:q1,TrailingVisual:$1}),m0=(0,l.createContext)({}),h0={srOnly:`sr-only`},g0=W(`status`,{variants:{variant:{accent:`status-accent`,success:`status-success`,attention:`status-attention`,severe:`status-severe`,danger:`status-danger`,done:`status-done`,neutral:`status-neutral`},size:{small:`status-small`,medium:`status-medium`,large:`status-large`}}});function _0(e,t){let{as:n=`span`,className:r,variant:i=`neutral`,size:a=`medium`,srText:o,children:s,...c}=e;return(0,q.jsx)(m0.Provider,{value:{variant:i,size:a},children:(0,q.jsxs)(n,{ref:t,className:G(g0({variant:i,size:a}),r),"data-component":`Status`,"data-variant":i,"data-size":a,...c,children:[o?(0,q.jsx)(`span`,{className:h0.srOnly,children:o}):null,s]})})}_0.displayName=`Status`;var v0=K(_0);const y0=W(`status-indicator`,{variants:{variant:{accent:`status-indicator-accent`,success:`status-indicator-success`,attention:`status-indicator-attention`,severe:`status-indicator-severe`,danger:`status-indicator-danger`,done:`status-indicator-done`,neutral:`status-indicator-neutral`},size:{small:`status-indicator-small`,medium:`status-indicator-medium`,large:`status-indicator-large`}}});function b0(e,t){let{className:n,variant:r,size:i,...a}=e,o=l.useContext(m0),s=r??o.variant??`neutral`,c=i??o.size??`medium`;return(0,q.jsx)(`span`,{ref:t,"aria-hidden":`true`,className:G(y0({variant:s,size:c}),n),"data-component":`Status.Indicator`,"data-variant":s,"data-size":c,...a})}b0.displayName=`Status.Indicator`;var x0=K(b0);const S0=Object.assign(v0,{Indicator:x0}),C0=(0,l.createContext)(null),w0=W(`steps`,{variants:{orientation:{horizontal:`steps-horizontal`,vertical:`steps-vertical`},size:{small:`steps-small`,medium:``}}}),T0=e=>l.Children.toArray(e).filter(e=>l.isValidElement(e)),E0=(e,t)=>{let n=e+1;return n<t?`complete`:n===t?`current`:`incomplete`};function D0(e,t){let{className:n,children:r,currentStep:i=1,orientation:a=`horizontal`,size:o=`medium`,...s}=e,c=T0(r);return(0,q.jsx)(`ol`,{ref:t,role:`list`,className:G(w0({orientation:a,size:o}),n),"data-component":`Steps`,"data-orientation":a,"data-size":o,"data-count":c.length,...s,children:c.map((e,t)=>(0,q.jsx)(C0.Provider,{value:{index:t,status:E0(t,i)},children:e},e.key))})}D0.displayName=`Steps`;var O0=K(D0);const k0={root:`steps-body`};function A0(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(k0.root,n),"data-component":`Steps.Body`,...r})}A0.displayName=`Steps.Body`;var j0=K(A0);const M0={root:`steps-description`};function N0(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(M0.root,n),"data-component":`Steps.Description`,...r})}N0.displayName=`Steps.Description`;var P0=K(N0);const F0=()=>{let e=(0,l.useContext)(C0);if(!e)throw Error("A step and its parts all have to stand within a `Steps` component.");return e},I0={root:`steps-indicator`,icon:`steps-indicator-icon`};function L0(e,t){let{className:n,children:r,...i}=e,{index:a,status:o}=F0();return(0,q.jsx)(`span`,{ref:t,"aria-hidden":`true`,className:G(I0.root,n),"data-component":`Steps.Indicator`,"data-status":o,...i,children:r??(o===`complete`?(0,q.jsx)(Zt,{className:I0.icon}):a+1)})}L0.displayName=`Steps.Indicator`;var R0=K(L0);const z0={root:`steps-item`,status:`sr-only`},B0={complete:`Completed`,current:``,incomplete:`Not completed`};function V0(e,t){let{className:n,children:r,status:i,statusLabel:a,...o}=e,{index:s,status:c}=F0(),u=i??c,d=a??B0[u],f=l.useMemo(()=>({index:s,status:u}),[s,u]);return(0,q.jsx)(C0.Provider,{value:f,children:(0,q.jsxs)(`li`,{ref:t,"aria-current":u===`current`?`step`:void 0,className:G(z0.root,n),"data-component":`Steps.Item`,"data-status":u,"data-index":s,...o,children:[r,d?(0,q.jsx)(`span`,{className:z0.status,children:d}):null]})})}V0.displayName=`Steps.Item`;var H0=K(V0);const U0={root:`steps-title`};function W0(e,t){let{className:n,...r}=e;return(0,q.jsx)(`span`,{ref:t,className:G(U0.root,n),"data-component":`Steps.Title`,...r})}W0.displayName=`Steps.Title`;var G0=K(W0);const K0=Object.assign(O0,{Item:H0,Indicator:R0,Body:j0,Title:G0,Description:P0}),q0=(0,l.createContext)({}),J0=W(`swap`,{variants:{transition:{fade:`swap-fade`,flip:`swap-flip`,rotate:`swap-rotate`,scale:`swap-scale`,none:`swap-none`}}});function Y0(e,t){let{as:n=`span`,className:r,swap:i=!1,transition:a=`fade`,children:o,...s}=e,c=l.useMemo(()=>({swap:i}),[i]);return(0,q.jsx)(q0.Provider,{value:c,children:(0,q.jsx)(n,{ref:t,className:G(J0({transition:a}),r),"data-component":`Swap`,"data-swap":i?`on`:`off`,"data-transition":a,...s,children:o})})}Y0.displayName=`Swap`;var X0=K(Y0);const Z0={root:`swap-indicator`,active:`swap-indicator-active`};function Q0(e,t){let{as:n=`span`,className:r,type:i,...a}=e,{swap:o}=l.useContext(q0),s=i===(o?`on`:`off`);return(0,q.jsx)(n,{ref:t,"aria-hidden":s?void 0:`true`,className:G(Z0.root,s&&Z0.active,r),"data-component":`Swap.Indicator`,"data-type":i,"data-active":s,...a})}Q0.displayName=`Swap.Indicator`;var $0=K(Q0);const e2=Object.assign(X0,{Indicator:$0}),t2=(0,l.createContext)({}),n2=()=>(0,l.useContext)(t2),r2=({checked:e,disabled:t,readOnly:n,required:r,invalid:i})=>({"data-state":e?`checked`:`unchecked`,"data-disabled":t||void 0,"data-readonly":n||void 0,"data-required":r||void 0,"data-invalid":i||void 0}),i2={root:`switch`};function a2(e,t){let{className:n,value:r,onClick:i,...a}=e,o=l.useRef(r.checked),s={...r,initialChecked:o.current};return(0,q.jsx)(t2.Provider,{value:s,children:(0,q.jsx)(`label`,{ref:t,id:r.ids.root,htmlFor:r.ids.hiddenInput,className:G(i2.root,n),onClick:e=>{i?.(e),e.target.id===r.ids.hiddenInput&&e.stopPropagation()},"data-component":`Switch`,...r2(r),...a})})}a2.displayName=`Switch.RootProvider`;var o2=K(a2);const s2=(e={})=>{let{checked:t,defaultChecked:n,disabled:r,readOnly:i,required:a,invalid:o,name:s,value:c,form:u,id:d,ids:f,onCheckedChange:p}=e,m=l.useContext(Yf),h=t!==void 0,[g,_]=l.useState(!!n),v=h?t:g,y=Y(d),b=e=>{h||_(e),p?.(e)};return{checked:v,disabled:!!(r??m.disabled),readOnly:!!i,required:!!(a??m.required),invalid:!!o,name:s,value:c,form:u,ids:{root:f?.root??y,label:f?.label??`${y}-label`,control:f?.control??`${y}-control`,thumb:f?.thumb??`${y}-thumb`,hiddenInput:f?.hiddenInput??m.id??`${y}-input`},describedBy:[m.validationMessageId,m.captionId].filter(Boolean).join(` `)||void 0,setChecked:b,toggleChecked:()=>b(!v)}};function c2(e,t){let{checked:n,defaultChecked:r,disabled:i,readOnly:a,required:o,invalid:s,name:c,value:l,form:u,id:d,ids:f,onCheckedChange:p,...m}=e,h=s2({checked:n,defaultChecked:r,disabled:i,readOnly:a,required:o,invalid:s,name:c,value:l,form:u,id:d,ids:f,onCheckedChange:p});return(0,q.jsx)(o2,{ref:t,value:h,...m})}c2.displayName=`Switch`;var l2=K(c2);const u2={root:`switch-control`};function d2(e,t){let{className:n,...r}=e,i=l.useContext(t2);return(0,q.jsx)(`span`,{ref:t,id:i.ids?.control,className:G(u2.root,n),"aria-hidden":`true`,"data-component":`Switch.Control`,...r2(i),...r})}d2.displayName=`Switch.Control`;var f2=K(d2);const p2={root:`switch-hidden-input`,hidden:`sr-only`};function m2(e,t){let{className:n,onChange:r,...i}=e,{checked:a=!1,disabled:o,readOnly:s,required:c,invalid:u,name:d,value:f,form:p,ids:m,describedBy:h,initialChecked:g,setChecked:_}=l.useContext(t2),v=l.useRef(null),y=ar(t,v),b=l.useRef(()=>{});return l.useEffect(()=>{b.current=()=>_?.(!!g)},[g,_]),l.useEffect(()=>{let e=v.current?.form;if(!e)return;let t=()=>b.current();return e.addEventListener(`reset`,t),()=>{e.removeEventListener(`reset`,t)}},[p]),(0,q.jsx)(`input`,{ref:y,id:m?.hiddenInput,type:`checkbox`,role:`switch`,className:G(p2.root,p2.hidden,n),checked:a,disabled:o,required:c,name:d,value:f,form:p,"aria-labelledby":m?.label,"aria-describedby":h,"aria-invalid":u||void 0,onChange:e=>{r?.(e),!(s||e.nativeEvent.defaultPrevented)&&_?.(e.currentTarget.checked)},"data-component":`Switch.HiddenInput`,...i})}m2.displayName=`Switch.HiddenInput`;var h2=K(m2);const g2={root:`switch-label`};function _2(e,t){let{className:n,...r}=e,i=l.useContext(t2);return(0,q.jsx)(`span`,{ref:t,id:i.ids?.label,className:G(g2.root,n),"data-component":`Switch.Label`,...r2(i),...r})}_2.displayName=`Switch.Label`;var v2=K(_2);const y2={root:`switch-thumb`};function b2(e,t){let{className:n,...r}=e,i=l.useContext(t2);return(0,q.jsx)(`span`,{ref:t,id:i.ids?.thumb,className:G(y2.root,n),"aria-hidden":`true`,"data-component":`Switch.Thumb`,...r2(i),...r})}b2.displayName=`Switch.Thumb`;var x2=K(b2);const S2=Object.assign(l2,{Root:l2,RootProvider:o2,Control:f2,Thumb:x2,Label:v2,HiddenInput:h2}),C2=(0,l.createContext)({}),w2=()=>(0,l.useContext)(C2),T2=(0,l.createContext)(null),E2=()=>(0,l.useContext)(T2),D2=e=>typeof document>`u`?null:document.getElementById(e),O2=(e,t={})=>{let{scrollElement:n,behavior:r}=t,i=D2(e);if(!i)return!1;if(!n)return i.scrollIntoView?.({behavior:r,block:`start`}),!0;if(!n.contains(i))return!1;let a=i.getBoundingClientRect(),o=n.getBoundingClientRect(),s=P2(getComputedStyle(n).scrollPaddingBlockStart||getComputedStyle(n).scrollPaddingTop),c=P2(getComputedStyle(i).scrollMarginBlockStart||getComputedStyle(i).scrollMarginTop),l=a.top-o.top+n.scrollTop-s-c;return n.scrollTo({top:l,...r&&{behavior:r}}),!0},k2=e=>{let t=e.getAttribute(`href`);if(!t)return null;let n=new URL(t,window.location.href);if(n.origin!==window.location.origin||n.pathname!==window.location.pathname||n.search!==window.location.search)return null;try{return decodeURIComponent(n.hash.slice(1))||null}catch{return null}},A2=e=>{let t=window.location.href;window.history.pushState(null,``,`#${e}`),window.dispatchEvent(new HashChangeEvent(`hashchange`,{oldURL:t,newURL:window.location.href}))},j2=e=>{if(e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return!1;let t=e.currentTarget;if(t.hasAttribute(`download`))return!1;let n=t.getAttribute(`target`);return n===null||n===``||n===`_self`},M2=e=>e===null||e.x===0&&e.y===0&&e.width===0&&e.height===0,N2=(e,t)=>e!==null&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,P2=e=>{let t=Number.parseFloat(e);return Number.isNaN(t)?0:t},F2=`-20px 0% -40% 0%`,I2=[],L2=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),R2=(e={})=>{let{items:t=I2,activeIds:n,defaultActiveIds:r,onActiveChange:i,rootMargin:a=F2,threshold:o=0,scrollElement:s=null,scrollBehavior:c=`smooth`}=e,u=n!==void 0,[d,f]=l.useState(r??[]),p=u?n:d,m=t.filter(e=>p.includes(e.value)),h=l.useRef({items:t,currentActiveIds:p,onActiveChange:i,isControlled:u});l.useEffect(()=>{h.current={items:t,currentActiveIds:p,onActiveChange:i,isControlled:u}});let g=l.useCallback(e=>{let t=h.current;L2(t.currentActiveIds,e)||(t.isControlled||f(e),t.onActiveChange?.({activeIds:e,activeItems:t.items.filter(t=>e.includes(t.value))}))},[]),_=t.map(e=>e.value).join(),v=Array.isArray(o)?o.join():String(o);return l.useEffect(()=>{let e=h.current.items;if(e.length===0||typeof IntersectionObserver>`u`)return;let t=new Map,n=new IntersectionObserver(e=>{for(let n of e)t.set(n.target.id,n.isIntersecting);let n=h.current.items.filter(e=>t.get(e.value)).map(e=>e.value);n.length!==0&&g(n)},{rootMargin:a,threshold:o,root:s});for(let t of e){let e=D2(t.value);e&&n.observe(e)}return()=>{n.disconnect()}},[_,a,v,s,g]),{items:t,activeIds:p,activeItems:m,setActiveIds:g,scrollTo:(e,t)=>O2(e,{scrollElement:s,behavior:t?.behavior??c}),getItemState:e=>({active:p.includes(e.value),first:e.value===p[0],last:e.value===p[p.length-1],depth:e.depth})}},z2={root:`table-of-contents`};function B2(e,t){let{as:n=`div`,className:r,id:i,items:a,activeIds:o,defaultActiveIds:s,rootMargin:c,threshold:u,scrollElement:d,scrollBehavior:f=`smooth`,autoScroll:p=!0,onActiveChange:m,children:h,...g}=e,_=Y(i),v=l.useMemo(()=>({root:_,title:`${_}-title`,list:`${_}-list`,indicator:`${_}-indicator`,item:e=>`${_}-item-${e}`,link:e=>`${_}-link-${e}`}),[_]),[y,b]=l.useState(null),x=d===void 0?y:d,[S,C]=l.useState(!1),w=R2({items:a,activeIds:o,defaultActiveIds:s,onActiveChange:m,rootMargin:c,threshold:u,scrollElement:x,scrollBehavior:f}),T=w.activeIds[0];l.useEffect(()=>{!p||T===void 0||document.getElementById(v.item(T))?.scrollIntoView?.({behavior:f,block:`nearest`})},[p,T,v,f]);let E={...w,ids:v,scrollElement:x,setScrollElement:b,hasTitle:S,setHasTitle:C};return(0,q.jsx)(C2.Provider,{value:E,children:(0,q.jsx)(n,{ref:t,id:v.root,className:G(z2.root,r),"data-component":`TableOfContents`,...g,children:h})})}B2.displayName=`TableOfContents`;var V2=K(B2);const H2={root:`table-of-contents-content`};function U2(e,t){let{as:n=`article`,className:r,...i}=e,{setScrollElement:a}=w2(),o=ar(t,a);return(0,q.jsx)(n,{ref:o,className:G(H2.root,r),"data-component":`TableOfContents.Content`,...i})}U2.displayName=`TableOfContents.Content`;var W2=K(U2);const G2={root:`table-of-contents-indicator`},K2=e=>e===void 0?void 0:`${e}px`;function q2(e,t){let{as:n=`div`,className:r,style:i,...a}=e,{ids:o,activeIds:s}=w2(),[c,u]=l.useState(null),d=s?.join()??``;return rr(()=>{let e=s??[];if(!o||e.length===0){u(null);return}let t=document.getElementById(o.list),n=document.getElementById(o.item(e[0])),r=document.getElementById(o.item(e[e.length-1]));if(!n){u(null);return}let i=()=>{let e=n.getBoundingClientRect(),i=t?.getBoundingClientRect(),a=t&&i?e.left-i.left+t.scrollLeft:0,o=t&&i?e.top-i.top+t.scrollTop:0,s=r&&r!==n?r.getBoundingClientRect().bottom-e.top:e.height,c={x:a,y:o,width:e.width,height:s};u(e=>N2(e,c)?e:c)};if(i(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(i);return a.observe(n),r&&r!==n&&a.observe(r),t&&a.observe(t),()=>{a.disconnect()}},[d,o]),(0,q.jsx)(n,{ref:t,id:o?.indicator,"aria-hidden":`true`,hidden:M2(c),className:G(G2.root,r),style:{...i,"--table-of-contents-indicator-x":K2(c?.x),"--table-of-contents-indicator-y":K2(c?.y),"--table-of-contents-indicator-width":K2(c?.width),"--table-of-contents-indicator-height":K2(c?.height)},"data-component":`TableOfContents.Indicator`,...a})}q2.displayName=`TableOfContents.Indicator`;var J2=K(q2);const Y2={root:`table-of-contents-item`};function X2(e,t){let{as:n=`li`,className:r,item:i,style:a,...o}=e,{ids:s,getItemState:c}=w2(),l=c?.(i);return(0,q.jsx)(T2.Provider,{value:i,children:(0,q.jsx)(n,{ref:t,id:s?.item(i.value),className:G(Y2.root,r),style:{...a,"--table-of-contents-item-depth":i.depth},"data-component":`TableOfContents.Item`,"data-value":i.value,"data-depth":i.depth,"data-active":l?.active?``:void 0,"data-first":l?.first?``:void 0,"data-last":l?.last?``:void 0,...o})})}X2.displayName=`TableOfContents.Item`;var Z2=K(X2);const Q2={root:`table-of-contents-link`};function $2(e,t){let{as:n=`a`,className:r,onClick:i,...a}=e,{ids:o,scrollElement:s,scrollTo:c,getItemState:l}=w2(),u=E2(),d=u&&l?.(u);return(0,q.jsx)(n,{ref:t,id:u?o?.link(u.value):void 0,className:G(Q2.root,r),"aria-current":d?.active?`location`:void 0,"data-component":`TableOfContents.Link`,"data-value":u?.value,"data-active":d?.active?``:void 0,onClick:e=>{if(i?.(e),e.defaultPrevented||!s||!j2(e))return;let t=k2(e.currentTarget);!t||!c?.(t)||(e.preventDefault(),A2(t))},...a})}$2.displayName=`TableOfContents.Link`;var e4=K($2);const t4={root:`table-of-contents-list`};function n4(e,t){let{as:n=`ul`,className:r,...i}=e,{ids:a}=w2();return(0,q.jsx)(n,{ref:t,id:a?.list,className:G(t4.root,r),"data-component":`TableOfContents.List`,...i})}n4.displayName=`TableOfContents.List`;var r4=K(n4);const i4={root:`table-of-contents-nav`};function a4(e,t){let{as:n=`nav`,className:r,placement:i,...a}=e,{ids:o,hasTitle:s}=w2();return(0,q.jsx)(n,{ref:t,"aria-labelledby":s?o?.title:void 0,className:G(i4.root,r),"data-component":`TableOfContents.Nav`,"data-placement":i,...a})}a4.displayName=`TableOfContents.Nav`;var o4=K(a4);const s4={root:`table-of-contents-title`};function c4(e,t){let{as:n=`h2`,className:r,...i}=e,{ids:a,setHasTitle:o}=w2();return rr(()=>(o?.(!0),()=>o?.(!1)),[o]),(0,q.jsx)(n,{ref:t,id:a?.title,className:G(s4.root,r),"data-component":`TableOfContents.Title`,...i})}c4.displayName=`TableOfContents.Title`;var l4=K(c4);const u4=Object.assign(V2,{Root:V2,Content:W2,Nav:o4,Title:l4,List:r4,Item:Z2,Link:e4,Indicator:J2}),d4=(0,l.createContext)(null);function f4(e){let{children:t,id:n,value:r,defaultValue:i,onChange:a}=e,o=Y(n),s=r!==void 0,[c,u]=l.useState(i),d=s?r:c,f=l.useRef(a);rr(()=>{f.current=a},[a]);let p=l.useMemo(()=>({groupId:o,selectedValue:d,selectTab:e=>{s||u(e),f.current?.(e)}}),[o,d,s]);return(0,q.jsx)(d4.Provider,{value:p,children:t})}f4.displayName=`Tabs`;const p4=(...e)=>t=>{for(let n of e)if(n?.(t),t.defaultPrevented)break},m4=()=>{let e=(0,l.useContext)(d4);if(!e)throw Error("A tablist, a tab and a panel all have to stand within a `Tabs` component.");return e},h4=e=>{let{value:t,disabled:n}=e,r=m4(),i=r.selectedValue===t;return{selected:i,tabProps:{id:`${r.groupId}-tab-${t}`,role:`tab`,"aria-controls":`${r.groupId}-panel-${t}`,"aria-selected":i,"aria-disabled":n?!0:void 0,tabIndex:i?0:-1,onKeyDown:e=>{(e.key===` `||e.key===`Enter`)&&r.selectTab(t)},onMouseDown:e=>{if(n||e.button!==0||e.ctrlKey){e.preventDefault();return}r.selectTab(t)},onFocus:()=>{!i&&!n&&r.selectTab(t)}}}},g4={root:`tab`,vertical:`tab-vertical`,hover:`tab-hover`,selected:`tab-selected`,disabled:`tab-disabled`};function _4(e,t){let{className:n,value:r,disabled:i,onKeyDown:a,onMouseDown:o,onFocus:s,...c}=e,{selected:l,tabProps:u}=h4({value:r,disabled:i});return(0,q.jsx)(`button`,{...c,...u,ref:t,type:`button`,onKeyDown:p4(a,u.onKeyDown),onMouseDown:p4(o,u.onMouseDown),onFocus:p4(s,u.onFocus),className:G(g4.root,g4.vertical,g4.hover,l&&g4.selected,i&&g4.disabled,n),"data-component":`Tabs.Tab`,"data-value":r,"data-selected":l?``:void 0})}_4.displayName=`Tabs.Tab`;var v4=K(_4);const y4=e=>Array.from(e.querySelectorAll(`[role='tab']:not([aria-disabled])`)),b4=e=>{let{"aria-label":t,"aria-labelledby":n,"aria-orientation":r,ref:i}=e,a=l.useRef(null),o=ar(i,a),s=r??`horizontal`;return{tabListProps:{ref:o,role:`tablist`,"aria-label":t,"aria-labelledby":n,"aria-orientation":s,onKeyDown:e=>{let t=a.current;if(!t)return;let n=s===`vertical`,r=n?`ArrowDown`:`ArrowRight`,i=n?`ArrowUp`:`ArrowLeft`,o=e.key===`Home`||e.key===`End`,c=e.key===r?1:e.key===i?-1:0;if(c===0&&!o)return;e.preventDefault(),e.stopPropagation();let l=y4(t);if(l.length===0)return;if(o){l[e.key===`Home`?0:l.length-1].focus();return}let u=l.findIndex(e=>e.getAttribute(`aria-selected`)===`true`);l[u===-1?0:(u+c+l.length)%l.length].focus()}}}},x4={root:`tab-list`,vertical:`tab-list-vertical`};function S4(e,t){let{className:n,onKeyDown:r,"aria-label":i,"aria-labelledby":a,"aria-orientation":o,...s}=e,{tabListProps:c}=b4({"aria-label":i,"aria-labelledby":a,"aria-orientation":o,ref:t}),l=c[`aria-orientation`]===`vertical`;return(0,q.jsx)(`div`,{...s,...c,onKeyDown:p4(r,c.onKeyDown),className:G(x4.root,l&&x4.vertical,n),"data-component":`Tabs.List`,"data-orientation":c[`aria-orientation`]})}S4.displayName=`Tabs.List`;var C4=K(S4);const w4=e=>{let{value:t}=e,n=m4(),r=n.selectedValue===t;return{tabPanelProps:{id:`${n.groupId}-panel-${t}`,role:`tabpanel`,"aria-labelledby":`${n.groupId}-tab-${t}`,hidden:!r,"data-selected":r?``:void 0}}};function T4(e,t){let{className:n,value:r,...i}=e,{tabPanelProps:a}=w4({value:r});return(0,q.jsx)(`div`,{...i,...a,ref:t,className:n,"data-component":`Tabs.Panel`,"data-value":r})}T4.displayName=`Tabs.Panel`;var E4=K(T4);const D4=Object.assign(f4,{List:C4,Tab:v4,Panel:E4}),O4={root:`timeline`,clipStart:`timeline-clip-start`,clipEnd:`timeline-clip-end`},k4=e=>{if(e===!0||e===`both`)return`both`;if(e===`start`||e===`end`)return e};function A4(e,t){let{className:n,clipSidebar:r,...i}=e,a=k4(r);return(0,q.jsx)(`ol`,{ref:t,role:`list`,className:G(O4.root,(a===`start`||a===`both`)&&O4.clipStart,(a===`end`||a===`both`)&&O4.clipEnd,n),"data-component":`Timeline`,"data-clip-sidebar":a,...i})}A4.displayName=`Timeline`;var j4=K(A4);const M4={root:`timeline-actions`,narrow:`timeline-actions-narrow`};function N4(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(M4.root,M4.narrow,n),"data-component":`Timeline.Actions`,...r})}N4.displayName=`Timeline.Actions`;var P4=K(N4);const F4={root:`timeline-avatar`};function I4(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(F4.root,n),"data-component":`Timeline.Avatar`,...r})}I4.displayName=`Timeline.Avatar`;var L4=K(I4);const R4={wrapper:`timeline-badge-wrapper`},z4=W(`timeline-badge`,{variants:{variant:{accent:`timeline-badge-accent`,success:`timeline-badge-success`,attention:`timeline-badge-attention`,severe:`timeline-badge-severe`,danger:`timeline-badge-danger`,done:`timeline-badge-done`,open:`timeline-badge-open`,closed:`timeline-badge-closed`,sponsors:`timeline-badge-sponsors`}}});function B4(e,t){let{className:n,variant:r,...i}=e;return(0,q.jsx)(`div`,{className:R4.wrapper,children:(0,q.jsx)(`div`,{ref:t,className:G(z4({variant:r}),n),"data-component":`Timeline.Badge`,"data-variant":r,...i})})}B4.displayName=`Timeline.Badge`;var V4=K(B4);const H4={root:`timeline-body`};function U4(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(H4.root,n),"data-component":`Timeline.Body`,...r})}U4.displayName=`Timeline.Body`;var W4=K(U4);const G4={root:`timeline-break`,beforeCondensed:`timeline-break-before-condensed`};function K4(e,t){let{className:n,...r}=e;return(0,q.jsx)(`li`,{ref:t,role:`presentation`,className:G(G4.root,G4.beforeCondensed,n),"data-component":`Timeline.Break`,...r})}K4.displayName=`Timeline.Break`;var q4=K(K4);const J4={root:`timeline-item`,rail:`timeline-item-rail`,condensed:`timeline-item-condensed`,condensedBadge:`timeline-item-condensed-badge`,condensedAvatar:`timeline-item-condensed-avatar`,narrow:`timeline-item-narrow`};function Y4(e,t){let{className:n,condensed:r,...i}=e;return(0,q.jsx)(`li`,{ref:t,className:G(J4.root,J4.rail,J4.narrow,r&&J4.condensed,r&&J4.condensedBadge,r&&J4.condensedAvatar,n),"data-component":`Timeline.Item`,"data-timeline-item":``,"data-condensed":r?``:void 0,...i})}Y4.displayName=`Timeline.Item`;var X4=K(Y4);const Z4=Object.assign(j4,{Item:X4,Avatar:L4,Badge:V4,Body:W4,Break:q4,Actions:P4}),Q4=(0,l.createContext)({}),$4=()=>(0,l.useContext)(Q4);var e3=c(o(((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_duration=r()})(e,(function(){"use strict";var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,u={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(c);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/o),e%=o,this.$d.months=h(e/s),e%=s,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(l,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r;return r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms,f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))}))());eu.default.extend(e3.default);const t3=e=>{let t=eu.default.duration(Math.max(e,0));return{days:Math.floor(t.asDays()),hours:Math.floor(t.asHours())%24,minutes:Math.floor(t.asMinutes())%60,seconds:Math.floor(t.asSeconds())%60,milliseconds:Math.floor(t.asMilliseconds())%1e3}},n3=e=>{let t=eu.default.duration(e);return{days:t.format(`DD`),hours:t.format(`HH`),minutes:t.format(`mm`),seconds:t.format(`ss`),milliseconds:t.format(`SSS`)}},r3=()=>(0,eu.default)(),i3=1e3,a3=(e,t)=>t>0?Math.floor(e/t)*t:e,o3=(e,t,n,r)=>r?Math.max(t-e,n??0):n===void 0?t+e:Math.min(t+e,n),s3=(e={})=>{let{countdown:t=!1,startMs:n=0,targetMs:r,interval:i=i3,autoStart:a=!1,onTick:o,onComplete:s}=e,[c,u]=l.useState(a?`running`:`idle`),[d,f]=l.useState(0),[p,m]=l.useState(r3),h=t?r??0:r,g=o3(a3(d,i),n,h,t),_=t3(g),v=n3(_),y=h!==void 0&&(t?g<=h:g>=h),b=l.useRef(o),x=l.useRef(s);return l.useEffect(()=>{b.current=o,x.current=s},[o,s]),l.useEffect(()=>{if(c!==`running`)return;let e=window.setInterval(()=>{let e=r3().diff(p),r=o3(a3(e,i),n,h,t),a=t3(r);f(e),b.current?.({value:r,time:a,formattedTime:n3(a)})},i);return()=>{window.clearInterval(e)}},[c,i,p,n,h,t]),l.useEffect(()=>{c!==`running`||!y||(u(`completed`),x.current?.())},[c,y]),{value:g,time:_,formattedTime:v,status:c,running:c===`running`,paused:c===`paused`,completed:c===`completed`,start:()=>{m(r3()),f(0),u(`running`)},pause:()=>{c===`running`&&(f(r3().diff(p)),u(`paused`))},resume:()=>{c===`paused`&&(m(r3().subtract(d,`millisecond`)),u(`running`))},reset:()=>{m(r3()),f(0),u(`idle`)}}},c3={root:`timer`};function l3(e,t){let{as:n=`div`,className:r,countdown:i,startMs:a,targetMs:o,interval:s,autoStart:c,onTick:l,onComplete:u,children:d,...f}=e,p=s3({countdown:i,startMs:a,targetMs:o,interval:s,autoStart:c,onTick:l,onComplete:u});return(0,q.jsx)(Q4.Provider,{value:p,children:(0,q.jsx)(n,{ref:t,className:G(c3.root,r),"data-component":`Timer`,"data-status":p.status,...f,children:d})})}l3.displayName=`Timer`;var u3=K(l3);const d3={root:`timer-action-trigger`},f3={start:e=>e!==`running`,pause:e=>e===`running`,resume:e=>e===`paused`,reset:e=>e!==`idle`};function p3(e,t){let{className:n,action:r,disabled:i,onClick:a,children:o,...s}=e,c=l.useContext(Q4),u=c.status??`idle`,d={start:c.start,pause:c.pause,resume:c.resume,reset:c.reset}[r];return(0,q.jsx)(pi,{ref:t,disabled:i??!f3[r](u),onClick:e=>{a?.(e),!e.defaultPrevented&&d?.()},className:G(d3.root,n),"data-component":`Timer.ActionTrigger`,"data-action":r,...s,children:o})}p3.displayName=`Timer.ActionTrigger`;var m3=K(p3);const h3={root:`timer-area`};function g3(e,t){let{as:n=`div`,className:r,...i}=e,{status:a}=l.useContext(Q4);return(0,q.jsx)(n,{ref:t,role:`timer`,className:G(h3.root,r),"data-component":`Timer.Area`,"data-status":a,...i})}g3.displayName=`Timer.Area`;var _3=K(g3);const v3={root:`timer-control`};function y3(e,t){let{as:n=`div`,className:r,...i}=e,{status:a}=l.useContext(Q4);return(0,q.jsx)(n,{ref:t,className:G(v3.root,r),"data-component":`Timer.Control`,"data-status":a,...i})}y3.displayName=`Timer.Control`;var b3=K(y3);const x3={root:`timer-item`};function S3(e,t){let{as:n=`div`,className:r,type:i,children:a,...o}=e,{formattedTime:s}=l.useContext(Q4);return(0,q.jsx)(n,{ref:t,className:G(x3.root,r),"data-component":`Timer.Item`,"data-unit":i,...o,children:a??s?.[i]})}S3.displayName=`Timer.Item`;var C3=K(S3);const w3={root:`timer-separator`};function T3(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,"aria-hidden":`true`,className:G(w3.root,r),"data-component":`Timer.Separator`,...i})}T3.displayName=`Timer.Separator`;var E3=K(T3);const D3=Object.assign(u3,{Root:u3,Area:_3,Item:C3,Separator:E3,Control:b3,ActionTrigger:m3});let O3=[],k3=0;const A3=new Set,j3=()=>{for(let e of A3)e()},M3=e=>(A3.add(e),()=>{A3.delete(e)}),N3=()=>O3,P3=[],F3=()=>P3,I3=e=>(O3=O3.some(t=>t.id===e.id)?O3.map(t=>t.id===e.id?{...t,...e,dismissed:!1,revision:t.revision+1}:t):[{...e,revision:0},...O3],j3(),e.id),L3=e=>(O3=O3.map(t=>e===void 0||t.id===e?{...t,dismissed:!0}:t),j3(),e),R3=e=>{O3=O3.filter(t=>t.id!==e),j3()},z3=()=>`toast-${++k3}`,B3=(e,t,n={})=>I3({...n,id:n.id??z3(),title:t,variant:e}),V3=(e,t)=>typeof e==`function`?e(t):e,H3=(e,t,n={})=>{let r=n.id??z3();B3(`loading`,t.loading,{...n,id:r,duration:1/0});let i=(e,t)=>{if(t==null){L3(r);return}B3(e,t,{...n,id:r,duration:n.duration})};return(typeof e==`function`?e():e).then(e=>i(`success`,V3(t.success,e)),e=>i(`error`,V3(t.error,e))),r},U3=(e,t)=>B3(`default`,e,t),W3=Object.assign(U3,{message:U3,success:(e,t)=>B3(`success`,e,t),error:(e,t)=>B3(`error`,e,t),warning:(e,t)=>B3(`warning`,e,t),info:(e,t)=>B3(`info`,e,t),loading:(e,t)=>B3(`loading`,e,{duration:1/0,...t}),custom:(e,t={})=>I3({...t,id:t.id??z3(),variant:`default`,render:e}),promise:H3,dismiss:L3,getToasts:N3}),G3={root:`toast`,animated:`motion-safe:[transition:transform_var(--motion-transition-state-change),opacity_var(--motion-transition-state-change),height_var(--motion-transition-state-change)]`,grabbable:`toast-grabbable`,lift:{top:`toast-lift-top`,bottom:`toast-lift-bottom`},bridge:`toast-bridge`,bridgeTop:`toast-bridge-top`,bridgeBottom:`toast-bridge-bottom`,card:`toast-card`,iconColor:{default:``,success:`toast-icon-success`,error:`toast-icon-error`,warning:`toast-icon-warning`,info:`toast-icon-info`,loading:``},richColors:{default:``,success:`toast-rich-success`,error:`toast-rich-error`,warning:`toast-rich-warning`,info:`toast-rich-info`,loading:``},hidden:`opacity-0`,waiting:`pointer-events-none`,dragging:`select-none`,body:`toast-body motion-safe:[transition:opacity_var(--motion-transition-state-change)]`,bodyStacked:`opacity-0`,icon:`toast-icon`,content:`toast-content`,title:`toast-title`,description:`toast-description`,actions:`toast-actions`},K3={default:null,success:Xt,error:fn,warning:Gn,info:vn,loading:null},q3=e=>typeof e==`object`&&!!e&&`label`in e&&!l.isValidElement(e);function J3(e){let{toast:t,place:n,position:r,height:i,frontHeight:a,stackSize:o,expanded:s,visible:c,paused:u,swipeDirections:d,icons:f,defaults:p,onHeight:m}=e,{id:h,variant:g,title:_,description:v,render:y}=t,b=t.duration??p.duration,x=t.dismissible??p.dismissible,S=t.closeButton??p.closeButton,C=t.richColors??p.richColors,w=t.important??p.important??!1,T=l.useRef(null),[E,D]=l.useState(!1),[O,k]=l.useState({x:0,y:0}),[A,j]=l.useState(!1),[M,N]=l.useState(!1),P=l.useRef(null),F=!!t.dismissed,I=n.index===0,L=E&&!s&&!I,ee=!!y,R=r.startsWith(`top`)?`top`:`bottom`,z=e=>{t.dismissed||(L3(h),e===`timeout`?t.onAutoClose?.(t):t.onDismiss?.(t))};l.useEffect(()=>{D(!0)},[]);let te=l.useRef({revision:-1,time:b});l.useEffect(()=>{if(te.current.revision!==t.revision&&(te.current={revision:t.revision,time:b}),u||F||b===1/0)return;let e=Date.now(),n=window.setTimeout(()=>z(`timeout`),Math.max(te.current.time,0));return()=>{window.clearTimeout(n),te.current.time-=Date.now()-e}},[t,b,u,F]),l.useEffect(()=>{if(!F)return;let e=window.setTimeout(()=>R3(h),200);return()=>{window.clearTimeout(e)}},[F,h]),rr(()=>{let e=T.current;if(!e)return;let t=e.style.height;e.style.height=`auto`;let n=e.getBoundingClientRect().height;e.style.height=t,m(h,n)},[m,h,t.revision,_,v,s]);let ne=e=>d.includes(e),B=(e,t,n)=>e<0?ne(t)?e:0:ne(n)?e:0,re=e=>{!x||e.button!==0||e.target.closest(`button`)||(P.current={pointerId:e.pointerId,x:e.clientX,y:e.clientY},e.currentTarget.setPointerCapture?.(e.pointerId),j(!0))},V=e=>{let t=P.current;!t||t.pointerId!==e.pointerId||k({x:B(e.clientX-t.x,`left`,`right`),y:B(e.clientY-t.y,`top`,`bottom`)})},ie=e=>{let t=P.current;if(!t||t.pointerId!==e.pointerId)return;if(P.current=null,j(!1),Math.max(Math.abs(O.x),Math.abs(O.y))<45){k({x:0,y:0});return}let n=e.currentTarget.getBoundingClientRect(),r=(e,t)=>e===0?0:Math.sign(e)*(t+32);k({x:r(O.x,n.width),y:r(O.y,n.height)}),N(!0),z(`swipe`)},ae=()=>{P.current=null,j(!1),k({x:0,y:0})},oe=s?`calc(var(--toast-lift) * var(--toast-offset))`:`calc(var(--toast-lift) * var(--toaster-gap) * var(--toast-index))`,se=`calc(var(--toast-lift) * -100%)`,ce={"--toast-index":n.index,"--toast-offset":`${n.offset}px`,"--toast-z-index":o-n.index,"--toast-height":(e=>e>0?`${e}px`:`auto`)(L?a:i),"--toast-shift":E?!F||M?oe:I?se:s?`calc(${oe} + ${se})`:oe:se,"--toast-scale":L?Math.max(1-n.index*.05,0):1,"--toast-swipe-x":`${O.x}px`,"--toast-swipe-y":`${O.y}px`},le=K3[g],ue=t.icon===void 0?f?.[g]:t.icon,de=ue===void 0?g===`loading`?(0,q.jsx)($r,{size:`small`,srText:null}):le?(0,q.jsx)(le,{}):null:ue,fe=(e,t,n)=>q3(e)?(0,q.jsx)(pi,{size:`small`,variant:n,onClick:n=>{e.onClick?.(n),n.defaultPrevented||z(t)},"data-component":`Toast.${t===`action`?`Action`:`Cancel`}`,children:e.label}):e,pe=t.action!==void 0||t.cancel!==void 0;return(0,q.jsx)(`li`,{ref:T,role:w?`alert`:`status`,"aria-live":w?`assertive`:`polite`,"aria-atomic":`true`,className:G(G3.root,G3.lift[R],G3.bridge,R===`top`?G3.bridgeTop:G3.bridgeBottom,x&&G3.grabbable,!ee&&G3.card,!ee&&G3.iconColor[g],!ee&&C&&G3.richColors[g],(!E||F||!c)&&G3.hidden,!c&&G3.waiting,A?G3.dragging:G3.animated,p.className,t.className),style:ce,"data-component":`Toast`,"data-variant":g,"data-position":r,"data-mounted":E,"data-removed":F,"data-front":I,"data-expanded":s,"data-stacked":L,"data-visible":c,"data-dragging":A,"data-swiped-out":M,"data-rich-colors":C||void 0,onPointerDown:re,onPointerMove:V,onPointerUp:ie,onPointerCancel:ae,children:ee?y?.(t):(0,q.jsxs)(`div`,{className:G(G3.body,L&&G3.bodyStacked),"data-component":`Toast.Body`,children:[de===null?null:(0,q.jsx)(`span`,{className:G3.icon,"aria-hidden":`true`,"data-component":`Toast.Icon`,children:de}),(0,q.jsxs)(`div`,{className:G3.content,"data-component":`Toast.Content`,children:[(0,q.jsx)(`div`,{className:G3.title,"data-component":`Toast.Title`,children:_}),v===void 0?null:(0,q.jsx)(`div`,{className:G3.description,"data-component":`Toast.Description`,children:v})]}),pe?(0,q.jsxs)(`div`,{className:G3.actions,"data-component":`Toast.Actions`,children:[fe(t.cancel,`cancel`,`invisible`),fe(t.action,`action`,`default`)]}):null,S&&x?(0,q.jsx)(gi,{icon:un,"aria-label":`Close`,variant:`invisible`,size:`small`,onClick:()=>z(`close-button`),"data-component":`Toast.CloseButton`}):null]})})}J3.displayName=`Toast`;const Y3=W(`toaster z-popover`,{variants:{position:{"top-left":`toaster-top-left`,"top-center":`toaster-top-center`,"top-right":`toaster-top-right`,"bottom-left":`toaster-bottom-left`,"bottom-center":`toaster-bottom-center`,"bottom-right":`toaster-bottom-right`}}}),X3=[`altKey`,`KeyT`],Z3=e=>typeof e==`number`?`${e}px`:e,Q3=e=>{let[t,n]=e.split(`-`),r=[t];return(n===`left`||n===`right`)&&r.push(n),r},$3=e=>(document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}),e6=()=>document.visibilityState===`hidden`,t6=()=>!1;function n6(e,t){let{position:n=`bottom-right`,expand:r=!1,visibleToasts:i=3,toastOptions:a,duration:o=4e3,closeButton:s=!1,richColors:c=!1,gap:u=14,offset:d=24,mobileOffset:f=16,width:p=356,hotkey:m=X3,swipeDirections:h,icons:g,containerAriaLabel:_=`Notifications`,className:v,style:y,...b}=e,x=l.useSyncExternalStore(M3,N3,F3),S=l.useSyncExternalStore($3,e6,t6),C=l.useRef(null),w=ar(t,C),[T,E]=l.useState({}),[D,O]=l.useState(!1),k=r||D,A=l.useCallback((e,t)=>{E(n=>n[e]===t?n:{...n,[e]:t})},[]);l.useEffect(()=>{E(e=>{let t=Object.keys(e).filter(e=>x.some(t=>t.id===e));return t.length===Object.keys(e).length?e:Object.fromEntries(t.map(t=>[t,e[t]]))})},[x]);let j=x.filter(e=>!e.dismissed),M=new Map,N=0;j.forEach((e,t)=>{M.set(e.id,{index:t,offset:N}),N+=(T[e.id]??0)+u});let P=l.useRef(M);for(let e of x)if(!M.has(e.id)){let t=P.current.get(e.id);t&&M.set(e.id,t)}P.current=M;let F=j.length>0?T[j[0].id]??0:0;l.useEffect(()=>{let e=e=>{let t=C.current,n=t!==null&&(document.activeElement===t||t.contains(document.activeElement));if(e.code===`Escape`&&n){O(!1);return}m.every(t=>!!e[t]||e.code===t)&&(O(!0),C.current?.focus())};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[m]);let I={duration:o,closeButton:s,richColors:c,dismissible:!0,...a},L=h??Q3(n);return(0,q.jsx)(ea,{children:(0,q.jsx)(`section`,{"aria-label":_,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,tabIndex:-1,"data-component":`Toaster.Region`,children:(0,q.jsx)(`ol`,{ref:w,tabIndex:-1,className:G(Y3({position:n}),v),style:{...y,"--toaster-width":Z3(p),"--toaster-viewport-offset":Z3(d),"--toaster-mobile-offset":Z3(f),"--toaster-gap":`${u}px`},"data-component":`Toaster`,"data-position":n,"data-expanded":k,onPointerEnter:()=>O(!0),onPointerLeave:()=>O(!1),onFocus:()=>O(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||O(!1)},...b,children:x.map(e=>{let t=M.get(e.id)??{index:0,offset:0};return(0,q.jsx)(J3,{toast:e,place:t,position:n,height:T[e.id]??0,frontHeight:F,stackSize:x.length,expanded:k,visible:t.index<i,paused:D||S,swipeDirections:L,icons:g,defaults:I,onHeight:A},e.id)})})})})}n6.displayName=`Toaster`;var r6=K(n6);const i6=W(`token`,{variants:{size:{small:`token-small`,medium:`token-medium`,large:`token-large`,xlarge:`token-xlarge`},interactive:{true:`token-interactive`,false:`token-static`}}}),a6=`medium`,o6=({as:e=`span`,onClick:t,onFocus:n,tabIndex:r=-1,disabled:i})=>!i&&!!(n||t||r>-1||e===`a`||e===`button`);function s6(e,t){let{as:n=`span`,className:r,size:i=a6,isSelected:a,onRemove:o,onKeyDown:s,...c}=e,l=o6({as:n,onClick:c.onClick,onFocus:c.onFocus,tabIndex:c.tabIndex,disabled:c.disabled});return(0,q.jsx)(n,{ref:t,onKeyDown:e=>{s?.(e),(e.key===`Backspace`||e.key===`Delete`)&&o?.()},className:G(i6({size:i,interactive:l}),r),"data-component":`Token`,"data-size":i,"data-interactive":l?``:void 0,"data-selected":a?``:void 0,...n===`button`?{type:`button`}:{},...c})}s6.displayName=`TokenBase`;var c6=K(s6);const l6=W(`token-remove-button`,{variants:{size:{small:`token-remove-button-small`,medium:`token-remove-button-medium`,large:`token-remove-button-large`,xlarge:`token-remove-button-xlarge`},raised:{true:`token-remove-button-raised`,false:``}}});function u6(e){let{className:t,size:n=a6,isParentInteractive:r,...i}=e,a=G(l6({size:n,raised:r}),t);return r?(0,q.jsx)(`span`,{"aria-hidden":`true`,tabIndex:-1,className:a,"data-component":`Token.RemoveButton`,"data-size":n,...i,children:(0,q.jsx)(un,{})}):(0,q.jsx)(`button`,{type:`button`,"aria-label":`Remove token`,className:a,"data-component":`Token.RemoveButton`,"data-size":n,...i,children:(0,q.jsx)(un,{})})}u6.displayName=`Token.RemoveButton`;const d6={root:`token-text`,interactive:`token-text-interactive`};function f6(e,t){let{as:n=`span`,className:r,interactive:i,...a}=e;return(0,q.jsx)(n,{ref:t,className:G(d6.root,i&&d6.interactive,r),"data-component":`Token.Text`,...n===`button`?{type:`button`}:{},...a})}f6.displayName=`Token.Text`;var p6=K(f6);const m6={srOnly:`sr-only`},h6=W(`token-default`,{variants:{interactive:{true:`token-default-interactive`,false:``},selected:{true:`token-default-selected`,false:``},withRemoveButton:{true:`token-with-remove-button`,false:``}}}),g6=W(`token-visual`,{variants:{size:{small:``,medium:`token-visual-medium`,large:`token-visual-large`,xlarge:`token-visual-xlarge`}}}),_6=e=>l.isValidElement(e)?e:(0,q.jsx)(e,{});function v6(e,t){let{as:n,className:r,text:i,size:a=a6,leadingVisual:o,onRemove:s,hideRemoveButton:c,isSelected:l,href:u,onClick:d,...f}=e,p=o6({as:n,onClick:d,onFocus:f.onFocus,tabIndex:f.tabIndex,disabled:f.disabled}),m=!!s&&!c,h=p&&m,g={as:n,href:u,onClick:d},_=e=>{e.stopPropagation(),s?.()};return(0,q.jsxs)(c6,{ref:t,size:a,isSelected:l,onRemove:s,className:G(h6({interactive:p,selected:l,withRemoveButton:m}),r),"data-has-remove-button":m?``:void 0,...h?{}:g,...f,children:[o&&a!==`small`?(0,q.jsx)(`span`,{className:G(g6({size:a})),"data-component":`Token.LeadingVisual`,children:_6(o)}):null,(0,q.jsxs)(p6,{interactive:h,...h?g:{},children:[i,s?(0,q.jsx)(`span`,{className:m6.srOnly,children:` (press backspace or delete to remove)`}):null]}),m?(0,q.jsx)(u6,{size:a,isParentInteractive:p,onClick:_}):null]})}v6.displayName=`Token`;var y6=K(v6);const b6=`#999999`,x6=.6,S6=(e,t,n)=>Math.max(t,Math.min(e,n)),C6=e=>S6(Math.round(e),0,100),w6=e=>{let t=e.trim();if(t.startsWith(`#`)){let e=t.slice(1);if(e.length===3){let[t,n,r]=[...e].map(e=>parseInt(e+e,16));return Number.isNaN(t+n+r)?null:{r:t,g:n,b:r}}if(e.length===6){let t=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),r=parseInt(e.slice(4,6),16);return Number.isNaN(t+n+r)?null:{r:t,g:n,b:r}}return null}let n=t.match(/^rgba?\(([^)]+)\)$/i);if(!n)return null;let r=n[1].split(/[\s,/]+/).filter(Boolean).map(Number);if(r.length<3||r.slice(0,3).some(Number.isNaN))return null;let[i,a,o]=r;return{r:i,g:a,b:o}},T6=({r:e,g:t,b:n})=>{let r=e/255,i=t/255,a=n/255,o=Math.max(r,i,a),s=Math.min(r,i,a),c=o-s,l=(o+s)/2;if(c===0)return{h:0,s:0,l:Math.round(l*100)};let u=c/(1-Math.abs(2*l-1)),d;return d=o===r?(i-a)/c%6:o===i?(a-r)/c+2:(r-i)/c+4,d=Math.round(d*60),{h:d<0?d+360:d,s:Math.round(u*100),l:Math.round(l*100)}},E6=({r:e,g:t,b:n})=>(e*.2126+t*.7152+n*.0722)/255,D6=e=>{let t=w6(e)??w6(`#999999`),{h:n,s:r,l:i}=T6(t),a=E6(t),{r:o,g:s,b:c}=t,l=S6(1/(.453-a),0,1),u=S6((a-.96)*100,0,1),d=(x6-a)*100*S6(1/(x6-a),0,1),f=C6(i+d);return{light:{background:`rgb(${o}, ${s}, ${c})`,foreground:`hsl(0deg, 0%, ${Math.round(l*100)}%)`,border:`hsla(${n}deg, ${r}%, ${C6(i-25)}%, ${u})`,ring:`rgb(${o}, ${s}, ${c})`,backgroundHover:`hsl(${n}deg, ${r}%, ${C6(i-5)}%)`},dark:{background:`rgba(${o}, ${s}, ${c}, 0.18)`,foreground:`hsl(${n}deg, ${r}%, ${f}%)`,border:`hsla(${n}deg, ${r}%, ${f}%, 0.3)`,ring:`hsl(${n}deg, ${r}%, ${f}%)`,backgroundHover:`hsla(${n}deg, ${r}%, ${C6(i+10)}%, 0.3)`}}},O6={root:`issue-label-token`,interactive:`issue-label-token-interactive`,selected:`issue-label-token-selected`,withRemoveButton:`token-with-remove-button`,srOnly:`sr-only`};function k6(e,t){let{as:n,className:r,style:i,text:a,size:o=a6,fillColor:s=b6,onRemove:c,hideRemoveButton:u,isSelected:d,href:f,onClick:p,...m}=e,h=l.useMemo(()=>D6(s),[s]),g=o6({as:n,onClick:p,onFocus:m.onFocus,tabIndex:m.tabIndex,disabled:m.disabled}),_=!!c&&!u,v=g&&_,y={as:n,href:f,onClick:p},b=e=>{e.stopPropagation(),c?.()};return(0,q.jsxs)(c6,{ref:t,size:o,isSelected:d,onRemove:c,className:G(O6.root,g&&O6.interactive,d&&O6.selected,_&&O6.withRemoveButton,r),style:{...i,"--issue-label-background":h.light.background,"--issue-label-foreground":h.light.foreground,"--issue-label-border":h.light.border,"--issue-label-ring":h.light.ring,"--issue-label-background-hover":h.light.backgroundHover,"--issue-label-dark-background":h.dark.background,"--issue-label-dark-foreground":h.dark.foreground,"--issue-label-dark-border":h.dark.border,"--issue-label-dark-ring":h.dark.ring,"--issue-label-dark-background-hover":h.dark.backgroundHover},"data-component":`IssueLabelToken`,"data-has-remove-button":_?``:void 0,...v?{}:y,...m,children:[(0,q.jsxs)(p6,{interactive:v,...v?y:{},children:[a,c?(0,q.jsx)(`span`,{className:O6.srOnly,children:` (press backspace or delete to remove)`}):null]}),_?(0,q.jsx)(u6,{size:o,isParentInteractive:g,onClick:b}):null]})}k6.displayName=`IssueLabelToken`;var A6=K(k6);const j6={root:`topic-tag`,interactive:`topic-tag-interactive`,hover:`topic-tag-hover`};function M6(e,t){let{as:n=`a`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(j6.root,j6.interactive,j6.hover,r),"data-component":`TopicTag`,...i})}M6.displayName=`TopicTag`;var N6=K(M6);const P6={root:`topic-tag-group`};function F6(e,t){let{as:n=`div`,className:r,...i}=e;return(0,q.jsx)(n,{ref:t,className:G(P6.root,r),"data-component":`TopicTag.Group`,...i})}F6.displayName=`TopicTag.Group`;var I6=K(F6);const L6=Object.assign(N6,{Group:I6}),R6=(0,l.createContext)(null),z6=(0,l.createContext)(null),B6=e=>e?e.type??(e.target?`tooltip`:`dialog`):`dialog`,V6=e=>e!==null&&e.effect===void 0,H6=(e,t)=>e.top===t.top&&e.left===t.left&&e.width===t.width&&e.height===t.height;function U6(e){let{steps:t,step:n,defaultStep:r=null,onStepChange:i,open:a,defaultOpen:o=!1,onOpenChange:s,onStatusChange:c,keyboardNavigation:u=!1,closeOnEscape:d=!0,closeOnInteractOutside:f=!0,spotlightOffset:p=4,spotlightRadius:m=8,id:h,children:g}=e,_=Y(h),v=`${_}-title`,y=`${_}-description`,b=l.useRef(null),x=a!==void 0,[S,C]=l.useState(o),w=x?a:S,T=n!==void 0,[E,D]=l.useState(r),O=T?n:E,k=t.length,A=t.findIndex(e=>e.id===O),j=A===-1?null:t[A],M=l.useCallback(e=>{T||D(e),i?.({stepId:e,stepIndex:t.findIndex(t=>t.id===e),count:t.length})},[T,i,t]),N=l.useCallback(e=>{x||C(e),s?.(e)},[x,s]),P=l.useCallback(e=>{let n=e??t[0]?.id??null;M(n),N(!0),c?.({status:`started`})},[N,M,c,t]),F=l.useCallback(e=>{t.some(t=>t.id===e)&&M(e)},[M,t]),I=l.useCallback(()=>{M(null),N(!1)},[N,M]),L=l.useCallback(()=>{I(),c?.({status:`dismissed`})},[I,c]),ee=l.useCallback(()=>{let e=t[A+1];if(!e){I(),c?.({status:`completed`});return}M(e.id)},[M,I,c,A,t]),R=l.useCallback(()=>{let e=A>0?t[A-1]:void 0;e&&M(e.id)},[M,A,t]),[z,te]=l.useState(()=>({stepId:O,ready:V6(j),patch:null}));z.stepId!==O&&te({stepId:O,ready:V6(j),patch:null});let ne=z.stepId===O?z:null,B=ne?.ready??V6(j),re=ne?.patch??null,V=l.useMemo(()=>j&&re?{...j,...re}:j,[j,re]),ie=B6(V),ae=l.useRef({next:ee,prev:R,goto:F,dismiss:L,step:j});rr(()=>{ae.current={next:ee,prev:R,goto:F,dismiss:L,step:j}});let oe=l.useMemo(()=>({next:()=>ae.current.next(),prev:()=>ae.current.prev(),goto:e=>ae.current.goto(e),dismiss:()=>ae.current.dismiss(),show:()=>te(e=>e.stepId===O?{...e,ready:!0}:e),update:e=>te(t=>t.stepId===O?{...t,patch:{...t.patch,...e}}:t),target:()=>ae.current.step?.target?.()??null}),[O]);l.useEffect(()=>{if(w)return ae.current.step?.effect?.(oe)??void 0},[oe,w]);let se=l.useCallback(()=>ae.current.step?.target?.()??null,[]),[ce,le]=l.useState(null),ue=l.useCallback(()=>{let e=se();if(!e){le(null);return}let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),a={top:t,left:n,width:r,height:i};le(e=>e&&H6(e,a)?e:a)},[se]);rr(()=>{if(!w||!B){le(null);return}ue();let e=se();e?.scrollIntoView?.({block:`center`,inline:`nearest`});let t=new ResizeObserver(ue);return e&&t.observe(e),window.addEventListener(`resize`,ue),window.addEventListener(`scroll`,ue,!0),()=>{t.disconnect(),window.removeEventListener(`resize`,ue),window.removeEventListener(`scroll`,ue,!0)}},[se,ue,w,B,O]),Hi(e=>{!w||!d||(e.preventDefault(),L())}),l.useEffect(()=>{if(!w||!B||!u)return;let e=e=>{e.defaultPrevented||(e.key===`ArrowRight`?(e.preventDefault(),ee()):e.key===`ArrowLeft`&&(e.preventDefault(),R()))};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[u,ee,w,R,B]),l.useEffect(()=>{if(!w||!B||!f)return;let e=e=>{if(e instanceof MouseEvent&&e.button>0)return;let{target:t}=e;t instanceof Node&&(b.current?.contains(t)||se()?.contains(t)||L())};return document.addEventListener(`mousedown`,e),document.addEventListener(`touchstart`,e),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`touchstart`,e)}},[f,L,se,w,B]),l.useEffect(()=>{if(!w)return;let e=document.activeElement;return()=>{e instanceof HTMLElement&&e.focus()}},[w]);let de=l.useMemo(()=>({open:w,step:V,stepIndex:A,steps:t,start:P,next:ee,prev:R,goto:F,dismiss:L,progressText:`${A+1} of ${k}`,progressPercent:k===0?0:(A+1)/k*100,hasNext:A>-1&&A<k-1,hasPrev:A>0}),[k,L,F,ee,w,R,P,V,A,t]),fe=l.useMemo(()=>({...de,titleId:v,descriptionId:y,stepType:ie,ready:B,targetRect:ce,getTarget:se,spotlightOffset:p,spotlightRadius:m,contentRef:b}),[de,y,se,B,p,m,ie,ce,v]);return(0,q.jsx)(R6.Provider,{value:fe,children:g})}U6.displayName=`Tour`;const W6=[];function G6(e){let t=l.useContext(R6);return(0,q.jsx)(q.Fragment,{children:e.children(t?.step?.actions??W6)})}G6.displayName=`Tour.Actions`;const K6={root:`tour-action-trigger`};function q6(e,t){let{action:n,className:r,children:i,onClick:a,variant:o=`default`,...s}=e,c=l.useContext(R6);return c?(0,q.jsx)(pi,{ref:t,variant:o,className:G(K6.root,r),onClick:e=>{if(a?.(e),!e.defaultPrevented){if(typeof n.action==`function`){n.action(c);return}n.action===`next`?c.next():n.action===`prev`?c.prev():c.dismiss()}},"data-component":`Tour.ActionTrigger`,"data-action":typeof n.action==`string`?n.action:`custom`,...s,children:i??n.label}):null}q6.displayName=`Tour.ActionTrigger`;var J6=K(q6);const Y6={"outside-top":`bottom`,"outside-bottom":`top`,"outside-left":`right`,"outside-right":`left`},X6={top:{start:`-left`,center:``,end:`-right`},bottom:{start:`-left`,center:``,end:`-right`},left:{start:`-top`,center:``,end:`-bottom`},right:{start:`-top`,center:``,end:`-bottom`}};function Z6(e,t){let n=l.useContext(R6),r=l.useContext(z6);if(!n||!r||n.stepType!==`tooltip`||n.step?.arrow===!1)return null;let i=Y6[r.side],a=`${i}${X6[i][r.align]}`;return(0,q.jsx)(nd,{ref:t,location:a,"data-component":`Tour.Arrow`,...e})}Z6.displayName=`Tour.Arrow`;var Q6=K(Z6);const $6=W([`tour-backdrop`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short`],{variants:{spotlit:{true:`tour-backdrop-spotlit`,false:``}}});function e8(e,t){let{className:n,style:r,portalContainerName:i,...a}=e,o=l.useContext(R6);if(!o||!o.open||!o.ready||o.step?.backdrop===!1)return null;let{targetRect:s,spotlightOffset:c,spotlightRadius:u}=o;return(0,q.jsx)(ea,{containerName:i,children:(0,q.jsx)(`div`,{ref:t,"aria-hidden":`true`,className:G($6({spotlit:s!==null}),n),style:{...r,"--tour-target-top":`${(s?.top??0)-c}px`,"--tour-target-left":`${(s?.left??0)-c}px`,"--tour-target-width":`${(s?.width??0)+c*2}px`,"--tour-target-height":`${(s?.height??0)+c*2}px`,"--tour-target-radius":`${u}px`},"data-component":`Tour.Backdrop`,"data-spotlit":s?``:void 0,...a})})}e8.displayName=`Tour.Backdrop`;var t8=K(e8);const n8={root:`tour-close-trigger`};function r8(e,t){let{className:n,icon:r=un,onClick:i,"aria-label":a=`Close tour`,...o}=e,s=l.useContext(R6);return s?(0,q.jsx)(gi,{ref:t,icon:r,variant:`invisible`,size:`small`,"aria-label":a,className:G(n8.root,n),onClick:e=>{i?.(e),!e.defaultPrevented&&s.dismiss()},"data-component":`Tour.CloseTrigger`,...o}):null}r8.displayName=`Tour.CloseTrigger`;var i8=K(r8);const a8={root:`tour-content`};function o8(e,t){let{className:n,...r}=e,i=l.useContext(R6),a=ar(t,i?.contentRef??null),o=i?.step?.id??null,s=i?.ready??!1,c=i?.contentRef;return l.useEffect(()=>{!s||!o||c?.current?.focus()},[c,s,o]),!i||!i.open||!i.ready||!i.step?null:(0,q.jsx)(`div`,{ref:a,role:`dialog`,"aria-labelledby":i.step.title?i.titleId:void 0,"aria-describedby":i.step.description?i.descriptionId:void 0,tabIndex:-1,className:G(a8.root,n),"data-component":`Tour.Content`,"data-type":i.stepType,"data-step":i.step.id,...r})}o8.displayName=`Tour.Content`;var s8=K(o8);const c8={root:`tour-control`};function l8(e,t){let{className:n,...r}=e;return(0,q.jsx)(`div`,{ref:t,className:G(c8.root,n),"data-component":`Tour.Control`,...r})}l8.displayName=`Tour.Control`;var u8=K(l8);const d8={root:`tour-description`};function f8(e,t){let{className:n,children:r,...i}=e,a=l.useContext(R6);return a?(0,q.jsx)(`div`,{ref:t,id:a.descriptionId,className:G(d8.root,n),"data-component":`Tour.Description`,...i,children:r??a.step?.description}):null}f8.displayName=`Tour.Description`;var p8=K(f8);const m8=W([`tour-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 motion-safe:data-[side=outside-right]:slide-in-from-left-2 motion-safe:data-[side=outside-left]:slide-in-from-right-2`],{variants:{type:{dialog:`tour-positioner-dialog`,tooltip:`tour-positioner-tooltip`,floating:`tour-positioner-floating`},unplaced:{true:`invisible`,false:``}}}),h8=(e,t)=>e.top===t.top&&e.left===t.left&&e.anchorSide===t.anchorSide&&e.anchorAlign===t.anchorAlign;function g8(e,t){let{side:n=`outside-bottom`,align:r=`center`,placement:i=`bottom-end`,portalContainerName:a,className:o,style:s,children:c,...u}=e,d=l.useContext(R6),f=d?.step??null,p=d?.stepType??`dialog`,m=p===`tooltip`,h=f?.side??n,g=f?.align??r,_=f?.placement??i,v=!!(d?.open&&d.ready&&f),y=l.useRef(null),b=ar(t,y),x=l.useRef(null),[S,C]=l.useState(null),w=d?.getTarget,T=d?.spotlightOffset??0,E=l.useCallback(()=>{let e=w?.(),t=y.current;if(!e||!t)return;let n=aa(t,e,{side:h,align:g,anchorOffset:T+8});x.current&&h8(x.current,n)||(x.current=n,C(n))},[g,w,h,T]);return rr(()=>{if(!v||!m){x.current=null,C(null);return}E();let e=new ResizeObserver(E);return y.current&&e.observe(y.current),()=>{e.disconnect()}},[m,v,d?.targetRect,E]),!d||!v?null:(0,q.jsx)(ea,{containerName:a,children:(0,q.jsx)(`div`,{ref:b,className:G(m8({type:p,unplaced:m&&!S}),o),style:{...s,"--tour-positioner-top":`${S?.top??0}px`,"--tour-positioner-left":`${S?.left??0}px`},"data-component":`Tour.Positioner`,"data-type":p,"data-side":S?.anchorSide??h,"data-align":S?.anchorAlign??g,"data-placement":p===`floating`?_:void 0,...u,children:(0,q.jsx)(z6.Provider,{value:{side:S?.anchorSide??h,align:S?.anchorAlign??g},children:c})})})}g8.displayName=`Tour.Positioner`;var _8=K(g8);const v8={root:`tour-progress-text`};function y8(e,t){let{className:n,children:r,...i}=e,a=l.useContext(R6);return a?(0,q.jsx)(`div`,{ref:t,className:G(v8.root,n),"data-component":`Tour.ProgressText`,...i,children:r??a.progressText}):null}y8.displayName=`Tour.ProgressText`;var b8=K(y8);const x8={root:[`tour-spotlight`,`motion-safe:animate-in motion-safe:fade-in motion-safe:duration-short`]};function S8(e,t){let{className:n,style:r,portalContainerName:i,...a}=e,o=l.useContext(R6);if(!o||!o.open||!o.ready||!o.targetRect)return null;let{targetRect:s,spotlightOffset:c,spotlightRadius:u}=o;return(0,q.jsx)(ea,{containerName:i,children:(0,q.jsx)(`div`,{ref:t,"aria-hidden":`true`,className:G(x8.root,n),style:{...r,"--tour-target-top":`${s.top-c}px`,"--tour-target-left":`${s.left-c}px`,"--tour-target-width":`${s.width+c*2}px`,"--tour-target-height":`${s.height+c*2}px`,"--tour-target-radius":`${u}px`},"data-component":`Tour.Spotlight`,...a})})}S8.displayName=`Tour.Spotlight`;var C8=K(S8);const w8={root:`tour-title`};function T8(e,t){let{className:n,children:r,...i}=e,a=l.useContext(R6);return a?(0,q.jsx)(`h2`,{ref:t,id:a.titleId,className:G(w8.root,n),"data-component":`Tour.Title`,...i,children:r??a.step?.title}):null}T8.displayName=`Tour.Title`;var E8=K(T8);const D8=()=>{let e=(0,l.useContext)(R6);if(!e)throw Error("`useTour` has to be called from within a `Tour` component.");return e},O8=(e,{timeout:t=1e4}={})=>{let n=null,r=!1,i=()=>{r=!0,n!==null&&(cancelAnimationFrame(n),n=null)};return[new Promise(a=>{let o=Date.now()+t,s=()=>{if(r)return;let t=e();if(t){i(),a(t);return}if(Date.now()>=o){i(),a(null);return}n=requestAnimationFrame(s)};s()}),i]},k8=(e,t,n={})=>{let{predicate:r,...i}=n,a=()=>{};return[new Promise(n=>{let o=e?.();if(!o){n(null);return}let s=e=>{r&&!r(o)||(a(),n(e))};o.addEventListener(t,s,i),a=()=>o.removeEventListener(t,s,i)}),()=>a()]},A8=(e,t)=>O8(e,t),j8=(e,t,n)=>O8(()=>{let n=e();return n&&n.value===t?n:null},n),M8=Object.assign(U6,{Backdrop:t8,Spotlight:C8,Positioner:_8,Content:s8,Arrow:Q6,CloseTrigger:i8,ProgressText:b8,Title:E8,Description:p8,Control:u8,Actions:G6,ActionTrigger:J6}),N8={root:`truncate-text`,block:`truncate-text-block`,inline:`inline-block align-top`,expandable:`truncate-text-expandable`};function P8(e,t){let{as:n=`div`,className:r,title:i,maxWidth:a=125,inline:o,expandable:s,style:c,...l}=e;return(0,q.jsx)(n,{ref:t,title:i,className:G(N8.root,o?N8.inline:N8.block,s&&N8.expandable,r),style:{...c,"--truncate-max-width":typeof a==`number`?`${a}px`:a},"data-component":`Truncate`,"data-inline":o,"data-expandable":s,...l})}P8.displayName=`Truncate`;var F8=K(P8);const I8=(e,{isPropUpdateDisabled:t=!1,isEqual:n=Object.is}={})=>{let[r,i]=(0,l.useState)(e),[a,o]=(0,l.useState)(e),s=e instanceof Function?e():e;return!t&&!n(a,s)&&(o(s),i(s)),[r,i]},L8=(0,l.createContext)({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),R8=()=>(0,l.useContext)(L8),z8=(e,t)=>{let{colorScheme:n}=R8();return(n?e[n]:void 0)??t},B8=`(prefers-color-scheme: dark)`,V8=e=>{let t=window?.matchMedia?.(B8);return t?.addEventListener(`change`,e),()=>t?.removeEventListener(`change`,e)},H8=()=>window?.matchMedia?.(B8)?.matches?`night`:`day`,U8=()=>`day`,W8=()=>l.useSyncExternalStore(V8,H8,U8),G8=(e,t)=>e===`auto`?t:e,K8=(e,t,n)=>{switch(e){case`day`:case`light`:return t;case`night`:case`dark`:return n}};function q8({children:e,className:t,contextOnly:n,...r}){let{colorMode:i,dayScheme:a,nightScheme:o}=R8(),[s,c]=I8(r.colorMode??i??`day`),[u,d]=I8(r.dayScheme??a??`light`),[f,p]=I8(r.nightScheme??o??`dark`),m=W8(),h=G8(s,m),g=K8(h,u,f),_=l.useMemo(()=>({colorScheme:g,colorMode:s,resolvedColorMode:h,dayScheme:u,nightScheme:f,setColorMode:c,setDayScheme:d,setNightScheme:p}),[g,s,h,u,f,c,d,p]);return n?(0,q.jsx)(L8.Provider,{value:_,children:e}):(0,q.jsx)(L8.Provider,{value:_,children:(0,q.jsx)(`div`,{className:t,"data-component":`ThemeProvider`,"data-theme":g,"data-color-mode":s,children:e})})}q8.displayName=`ThemeProvider`,exports.ARROW_KEY_STEP=3,exports.AUTO_LOCALE=`auto`,exports.Accordion=ur,exports.AccordionContext=Dt,exports.AccordionHeader=Yn,exports.AccordionItem=Qn,exports.AccordionItemContext=Kn,exports.AccordionPanel=lr,exports.ActionBar=qa,exports.ActionBarButton=Ka,exports.ActionBarContext=ya,exports.ActionBarDivider=wa,exports.ActionBarGroup=Da,exports.ActionBarIconButton=Aa,exports.ActionBarItemContext=ba,exports.ActionBarMenu=Fa,exports.ActionList=ji,exports.ActionListContainerContext=Ar,exports.ActionListContext=Er,exports.ActionListDescription=Rr,exports.ActionListDivider=Br,exports.ActionListGroup=Yr,exports.ActionListGroupContext=Vr,exports.ActionListGroupHeading=Kr,exports.ActionListHeading=kr,exports.ActionListItem=Oi,exports.ActionListItemContext=Ir,exports.ActionListLeadingVisual=ni,exports.ActionListLinkItem=Ai,exports.ActionListSubItem=ri,exports.ActionListTrailingAction=yi,exports.ActionListTrailingVisual=bi,exports.ActionMenu=ma,exports.ActionMenuAnchor=Ni,exports.ActionMenuButton=Pi,exports.ActionMenuContext=Mi,exports.ActionMenuOverlay=pa,exports.Alert=Xa,exports.AnchoredOverlay=da,exports.AspectRatio=$a,exports.Attachment=ko,exports.AttachmentAction=oo,exports.AttachmentActions=lo,exports.AttachmentContent=po,exports.AttachmentContext=eo,exports.AttachmentDescription=go,exports.AttachmentGroup=yo,exports.AttachmentMedia=So,exports.AttachmentTitle=To,exports.AttachmentTrigger=Oo,exports.Autocomplete=cs,exports.AutocompleteContext=Ao,exports.AutocompleteDeferredInputContext=Mo,exports.AutocompleteInput=Zo,exports.AutocompleteInputContext=jo,exports.AutocompleteMenu=rs,exports.AutocompleteOverlay=ss,exports.Avatar=ec,exports.AvatarContext=us,exports.AvatarFallback=Xs,exports.AvatarImage=$s,exports.AvatarStack=lc,exports.Badge=mc,exports.Banner=Ic,exports.BannerContext=hc,exports.BannerDescription=_c,exports.BannerPrimaryAction=Nc,exports.BannerSecondaryAction=Fc,exports.BannerTitle=bc,exports.Blankslate=al,exports.BlankslateDescription=Hc,exports.BlankslateHeading=Gc,exports.BlankslatePrimaryAction=Xc,exports.BlankslateSecondaryAction=tl,exports.BlankslateVisual=il,exports.Blockquote=cl,exports.Box=dl,exports.Breadcrumbs=Sl,exports.BreadcrumbsContext=pl,exports.BreadcrumbsItem=xl,exports.Bubble=Rl,exports.BubbleContent=jl,exports.BubbleContext=wl,exports.BubbleGroup=Pl,exports.BubbleGroupContext=Tl,exports.BubbleReactions=Ll,exports.Button=pi,exports.ButtonGroup=Gl,exports.CHART_COLORS=Pd,exports.CHART_OVERFLOW_COLOR=Nd,exports.CHART_SERIES_COLORS=Md,exports.Calendar=Tu,exports.CalendarDay=Jl,exports.Card=Zu,exports.CardAction=Ou,exports.CardDescription=Mu,exports.CardHeading=Fu,exports.CardIcon=Ru,exports.CardImage=Vu,exports.CardMetadata=Wu,exports.Caret=nd,exports.Carousel=Td,exports.CarouselContext=id,exports.CarouselControls=_d,exports.CarouselIndicators=cd,exports.CarouselNextButton=ud,exports.CarouselPlayButton=fd,exports.CarouselPreviousButton=md,exports.CarouselSlide=bd,exports.CarouselSlideContext=ad,exports.Chart=Jd,exports.ChartContext=Ed,exports.ChartGradient=jd,exports.ChartLegend=Hd,exports.ChartRadialText=Gd,exports.ChartTooltip=qd,exports.Checkbox=$d,exports.CheckboxCard=hf,exports.CheckboxCardContext=ef,exports.CheckboxCardDescription=rf,exports.CheckboxCardLabel=sf,exports.CheckboxCardLeadingVisual=uf,exports.CheckboxGroup=jf,exports.CheckboxGroupCaption=vf,exports.CheckboxGroupContext=Yd,exports.CheckboxGroupLabel=xf,exports.CheckboxGroupValidation=Ef,exports.Clipboard=lp,exports.ClipboardContext=Mf,exports.ClipboardControl=Hf,exports.ClipboardCopyText=Gf,exports.ClipboardIndicator=Jf,exports.ClipboardInput=$f,exports.ClipboardLabel=np,exports.ClipboardTrigger=ap,exports.ClipboardValueText=cp,exports.Code=fp,exports.CodeBlock=Fp,exports.CodeBlockCode=wp,exports.CodeBlockContent=Op,exports.CodeBlockContext=pp,exports.CodeBlockHeader=jp,exports.CodeBlockTitle=Pp,exports.Collapsible=Kp,exports.CollapsibleContent=Hp,exports.CollapsiblePanel=Hp,exports.CollapsibleContext=Ip,exports.CollapsibleTrigger=Gp,exports.Combobox=Gm,exports.ComboboxClearTrigger=tm,exports.ComboboxContent=im,exports.ComboboxContext=qp,exports.ComboboxControl=sm,exports.ComboboxEmpty=um,exports.ComboboxInput=hm,exports.ComboboxItem=ym,exports.ComboboxItemContext=Yp,exports.ComboboxItemGroup=Sm,exports.ComboboxItemGroupContext=Jp,exports.ComboboxItemGroupLabel=Tm,exports.ComboboxItemIndicator=Om,exports.ComboboxItemText=jm,exports.ComboboxLabel=Pm,exports.ComboboxList=Lm,exports.ComboboxPositioner=Vm,exports.ComboboxTrigger=Wm,exports.CommandPalette=kh,exports.CommandPaletteContext=Ym,exports.CommandPaletteDialog=sh,exports.CommandPaletteEmpty=uh,exports.CommandPaletteGroup=ph,exports.CommandPaletteGroupContext=Xm,exports.CommandPaletteInput=gh,exports.CommandPaletteItem=yh,exports.CommandPaletteList=Sh,exports.CommandPaletteLoading=Th,exports.CommandPaletteSeparator=Oh,exports.ConfirmationDialog=fg,exports.ContextMenu=Sg,exports.ContextMenuContext=hg,exports.ContextMenuOverlay=yg,exports.ContextMenuTrigger=xg,exports.CounterLabel=si,exports.DAYS_IN_WEEK=7,exports.DAY_KEY_FORMAT=au,exports.DEFAULT_AVATAR_SIZE=20,exports.DEFAULT_COLOR_MODE=`day`,exports.DEFAULT_CURRENT_STEP=1,exports.DEFAULT_DIRECTION=`ltr`,exports.DEFAULT_FLOATING_PANEL_MIN_SIZE=fb,exports.DEFAULT_FLOATING_PANEL_POSITION=db,exports.DEFAULT_FLOATING_PANEL_SIZE=ub,exports.DEFAULT_ISSUE_LABEL_FILL_COLOR=b6,exports.DEFAULT_LOCALE=ms,exports.DEFAULT_MAP_LATITUDE=NG,exports.DEFAULT_MAP_LONGITUDE=PG,exports.DEFAULT_MAP_ZOOM=16,exports.DEFAULT_MARKDOWN_NAMESPACE=UG,exports.DEFAULT_MARKER_COLOR=hB,exports.DEFAULT_MARQUEE_SPEED=50,exports.DEFAULT_MAX_PREVIEW_ITEMS=5,exports.DEFAULT_RATING_COUNT=5,exports.DEFAULT_RELATIVE_TIME_PREFIX=`on`,exports.DEFAULT_RELATIVE_TIME_THRESHOLD=LQ,exports.DEFAULT_RICH_TEXT_EDITOR_CONTROLS=O$,exports.DEFAULT_RICH_TEXT_EDITOR_NAMESPACE=v$,exports.DEFAULT_SORT_DIRECTION=`ASC`,exports.DEFAULT_SPOTLIGHT_OFFSET=4,exports.DEFAULT_SPOTLIGHT_RADIUS=8,exports.DEFAULT_TABLE_OF_CONTENTS_ROOT_MARGIN=F2,exports.DEFAULT_TABLE_PAGE_SIZE=25,exports.DEFAULT_TABLE_SKELETON_ROWS=10,exports.DEFAULT_TEXTAREA_COLS=30,exports.DEFAULT_TEXTAREA_RESIZE=uS,exports.DEFAULT_TEXTAREA_ROWS=7,exports.DEFAULT_TIMER_INTERVAL=i3,exports.DEFAULT_TOKEN_SIZE=a6,exports.DEFAULT_TRUNCATE_MAX_WIDTH=125,exports.DataTable=G_,exports.DatePicker=X_,exports.Details=rv,exports.DetailsSummary=nv,exports.Dialog=iv,exports.DialogBody=Fh,exports.DialogButtons=Lh,exports.DialogCloseButton=zh,exports.DialogContext=Ih,exports.DialogFooter=Hh,exports.DialogHeader=Gh,exports.DialogSubtitle=Jh,exports.DialogTitle=Zh,exports.DirectionContext=Is,exports.DirectionProvider=eE,exports.DragHandle=lY,exports.Drawer=kv,exports.DrawerBody=sv,exports.DrawerCloseButton=dv,exports.DrawerContext=cv,exports.DrawerFooter=mv,exports.DrawerHeader=_v,exports.DrawerSubtitle=bv,exports.DrawerTitle=Cv,exports.Em=Mv,exports.EmptyState=Lv,exports.FLOATING_PANEL_LARGE_STEP=40,exports.FLOATING_PANEL_STEP=8,exports.FRAME_ROOT_CLASS=HS,exports.FileUpload=yy,exports.FileUploadContext=Uv,exports.FileUploadDescription=Kv,exports.FileUploadIcon=Yv,exports.FileUploadItem=vy,exports.FileUploadLabel=Qv,exports.FileUploadList=ty,exports.FilteredActionList=lb,exports.FilteredActionListBodyLoader=ib,exports.FilteredActionListInput=Gy,exports.FilteredActionListItem=Jy,exports.FloatingPanel=ax,exports.FloatingPanelBody=Eb,exports.FloatingPanelCloseTrigger=Ob,exports.FloatingPanelContent=Mb,exports.FloatingPanelContext=xb,exports.FloatingPanelControl=Fb,exports.FloatingPanelDragTrigger=Rb,exports.FloatingPanelHeader=Vb,exports.FloatingPanelPositioner=Wb,exports.FloatingPanelResizeTrigger=Yb,exports.FloatingPanelStageTrigger=Qb,exports.FloatingPanelTitle=tx,exports.FloatingPanelTrigger=ix,exports.Flow=Px,exports.FlowContext=dx,exports.FlowList=mx,exports.FlowNode=_x,exports.FlowParallel=bx,exports.FormControl=FS,exports.FormControlCaption=vS,exports.FormControlContext=Yf,exports.FormControlLabel=xS,exports.FormControlLeadingVisual=wS,exports.FormControlValidation=kS,exports.FormatByte=LS,exports.FormatNumber=zS,exports.Frame=KS,exports.Header=nC,exports.HeaderItem=QS,exports.HeaderLink=tC,exports.Heading=Tr,exports.Hidden=aC,exports.Highlight=fC,exports.HoverCard=xC,exports.HoverCardContent=gC,exports.HoverCardContext=pC,exports.HoverCardTrigger=_C,exports.IconButton=gi,exports.Image=wC,exports.InlineMessage=AC,exports.IssueLabelToken=A6,exports.JSONTreeView=JT,exports.JSONTreeViewContext=yT,exports.KeybindingHint=Pw,exports.Label=ZT,exports.LabelGroup=cE,exports.LayerCard=yE,exports.LayerCardPrimary=dE,exports.LayerCardSecondary=mE,exports.Link=$c,exports.LinkButton=xE,exports.List=OE,exports.ListItem=DE,exports.LocaleContext=Ls,exports.LocaleProvider=Hs,exports.MARKDOWN_NODES=WG,exports.MARKDOWN_TRANSFORMERS=GG,exports.Map=zG,exports.MapAttributionControl=yU,exports.MapDragRotateAndZoomInteraction=lG,exports.MapDrawControl=tG,exports.MapFullScreenControl=OU,exports.MapGraticuleLayer=FB,exports.MapHeatmapLayer=pU,exports.MapImageLayer=NB,exports.MapLayerGroup=OB,exports.MapLayersControl=iG,exports.MapLinkInteraction=jG,exports.MapMarker=SB,exports.MapMousePositionControl=LU,exports.MapOverlay=wB,exports.MapOverviewMapControl=VU,exports.MapPointerInteraction=mG,exports.MapScaleLineControl=NU,exports.MapSearchControl=oG,exports.MapSelectInteraction=wG,exports.MapTileLayer=kB,exports.MapTranslateInteraction=pG,exports.MapVectorLayer=PB,exports.MapView=cB,exports.MapWebGLTileLayer=gU,exports.Mark=cC,exports.Markdown=JG,exports.Marquee=mK,exports.MarqueeContent=iK,exports.MarqueeContext=YG,exports.MarqueeEdge=sK,exports.MarqueeItem=uK,exports.MarqueeViewport=pK,exports.Message=PK,exports.MessageAvatar=xK,exports.MessageContent=wK,exports.MessageContext=Cl,exports.MessageFooter=DK,exports.MessageGroup=AK,exports.MessageGroupContext=hK,exports.MessageHeader=NK,exports.Meter=iq,exports.MeterContext=zK,exports.MeterIndicator=HK,exports.MeterLabel=GK,exports.MeterTrack=JK,exports.MeterValue=ZK,exports.NativeSelect=lq,exports.NativeSelectOptGroup=oq,exports.NativeSelectOption=cq,exports.NavigationList=zq,exports.NavigationListGroup=xq,exports.NavigationListGroupExpand=Fq,exports.NavigationListGroupHeading=Rq,exports.NavigationListHeading=dq,exports.NavigationListItem=Mq,exports.NavigationListSubNavigation=Oq,exports.NavigationMenu=NJ,exports.NavigationMenuContent=tJ,exports.NavigationMenuContext=Hq,exports.NavigationMenuDepthContext=Kq,exports.NavigationMenuDescription=rJ,exports.NavigationMenuDivider=aJ,exports.NavigationMenuGroup=uJ,exports.NavigationMenuGroupHeading=sJ,exports.NavigationMenuHeading=Vq,exports.NavigationMenuHeadingLevelContext=Gq,exports.NavigationMenuItem=pJ,exports.NavigationMenuItemContext=Uq,exports.NavigationMenuLeadingVisual=gJ,exports.NavigationMenuLink=TJ,exports.NavigationMenuLinkContext=Wq,exports.NavigationMenuList=kJ,exports.NavigationMenuSubNavigation=yJ,exports.NavigationMenuTrailingVisual=xJ,exports.NavigationMenuTrigger=MJ,exports.NumberInput=LJ,exports.OverflowObserverContext=ha,exports.OverflowObserverProvider=ga,exports.PINInput=KY,exports.PageLayout=kY,exports.PageLayoutContent=TY,exports.PageLayoutContext=zJ,exports.PageLayoutFooter=GJ,exports.PageLayoutHeader=JJ,exports.PageLayoutPane=OY,exports.PageLayoutSidebar=gY,exports.Pagination=LY,exports.PasswordInput=BY,exports.Placeholder=YY,exports.PlatformContext=Sw,exports.Popover=iX,exports.PopoverContent=rX,exports.PopoverContext=XY,exports.Portal=ea,exports.PortalContext=Gi,exports.ProgressBar=my,exports.ProgressBarItem=uy,exports.ProgressCircle=cX,exports.QRCode=KZ,exports.RICH_TEXT_EDITOR_NODES=y$,exports.Radio=Hx,exports.RadioCard=sQ,exports.RadioCardContext=qZ,exports.RadioCardDescription=XZ,exports.RadioCardLabel=$Z,exports.RadioCardLeadingVisual=nQ,exports.RadioGroup=SQ,exports.RadioGroupCaption=uQ,exports.RadioGroupContext=zx,exports.RadioGroupLabel=pQ,exports.RadioGroupValidation=vQ,exports.Rating=kQ,exports.RelativeTime=e$,exports.Resizable=g$,exports.ResizablePanel=o$,exports.ResizableResizeTrigger=l$,exports.ResizableResizeTriggerIndicator=f$,exports.ResizableResizeTriggerSeparator=h$,exports.RichTextEditor=P$,exports.RichTextEditorContent=D$,exports.RichTextEditorToolbar=N$,exports.SCREEN_READER_DELAY=500,exports.ScrollableRegion=Mh,exports.SegmentedControl=Z$,exports.SegmentedControlButton=z$,exports.SegmentedControlIconButton=V$,exports.Select=Q$,exports.SelectContext=Ux,exports.SelectOptGroup=qx,exports.SelectOptGroupContext=Wx,exports.SelectOption=Zx,exports.SelectPanel=k1,exports.SelectPanelButton=e1,exports.SelectPanelContext=t1,exports.SelectPanelFooter=i1,exports.SelectPanelHeader=d1,exports.SelectPanelLoading=S1,exports.SelectPanelMessage=T1,exports.SelectPanelSearchInput=s1,exports.SelectPanelSecondaryAction=O1,exports.Separator=M1,exports.SkeletonAvatar=Kw,exports.SkeletonBox=g_,exports.SkeletonText=y_,exports.Slider=I1,exports.Spinner=$r,exports.Stack=tb,exports.StackItem=eb,exports.StateLabel=U1,exports.StatisticCard=p0,exports.StatisticCardContext=W1,exports.StatisticCardDescription=q1,exports.StatisticCardLabel=X1,exports.StatisticCardTrailingVisual=$1,exports.StatisticCardTrend=o0,exports.StatisticCardValue=l0,exports.Status=S0,exports.StatusIndicator=x0,exports.Steps=K0,exports.StepsBody=j0,exports.StepsDescription=P0,exports.StepsIndicator=R0,exports.StepsItem=H0,exports.StepsItemContext=C0,exports.StepsTitle=G0,exports.Swap=e2,exports.SwapContext=q0,exports.SwapIndicator=$0,exports.Switch=S2,exports.SwitchContext=t2,exports.SwitchControl=f2,exports.SwitchHiddenInput=h2,exports.SwitchLabel=v2,exports.SwitchRootProvider=o2,exports.SwitchThumb=x2,exports.Tab=v4,exports.TabList=C4,exports.TabPanel=E4,exports.Table=q_,exports.TableActions=kg,exports.TableBody=Pg,exports.TableCell=Lg,exports.TableCellPlaceholder=Bg,exports.TableContainer=Ug,exports.TableDivider=Kg,exports.TableErrorDialog=Jg,exports.TableHead=Xg,exports.TableHeader=$g,exports.TableOfContents=u4,exports.TableOfContentsContent=W2,exports.TableOfContentsContext=C2,exports.TableOfContentsIndicator=J2,exports.TableOfContentsItem=Z2,exports.TableOfContentsItemContext=T2,exports.TableOfContentsLink=e4,exports.TableOfContentsList=r4,exports.TableOfContentsNav=o4,exports.TableOfContentsTitle=l4,exports.TablePagination=d_,exports.TableRow=p_,exports.TableSkeleton=S_,exports.TableSortHeader=T_,exports.TableSubtitle=O_,exports.TableTitle=j_,exports.Tabs=D4,exports.TabsContext=d4,exports.Text=Io,exports.TextInput=qo,exports.TextInputAction=Ko,exports.Textarea=hS,exports.ThemeContext=L8,exports.ThemeProvider=q8,exports.Timeline=Z4,exports.TimelineActions=P4,exports.TimelineAvatar=L4,exports.TimelineBadge=V4,exports.TimelineBody=W4,exports.TimelineBreak=q4,exports.TimelineItem=X4,exports.Timer=D3,exports.TimerActionTrigger=m3,exports.TimerArea=_3,exports.TimerContext=Q4,exports.TimerControl=b3,exports.TimerItem=C3,exports.TimerSeparator=E3,exports.Toaster=r6,exports.Token=y6,exports.TokenBase=c6,exports.TokenRemoveButton=u6,exports.TokenText=p6,exports.Tooltip=lT,exports.TooltipContext=eT,exports.TopicTag=L6,exports.TopicTagGroup=I6,exports.Tour=M8,exports.TourActionTrigger=J6,exports.TourActions=G6,exports.TourArrow=Q6,exports.TourBackdrop=t8,exports.TourCloseTrigger=i8,exports.TourContent=s8,exports.TourContext=R6,exports.TourControl=u8,exports.TourDescription=p8,exports.TourPositioner=_8,exports.TourPositionerContext=z6,exports.TourProgressText=b8,exports.TourSpotlight=C8,exports.TourTitle=E8,exports.TreeView=vT,exports.TreeViewDirectoryIcon=aw,exports.TreeViewErrorDialog=sw,exports.TreeViewItem=_T,exports.TreeViewItemContext=MC,exports.TreeViewLeadingAction=Uw,exports.TreeViewLeadingVisual=Ww,exports.TreeViewRootContext=jC,exports.TreeViewSubTree=$w,exports.TreeViewTrailingVisual=fT,exports.Truncate=F8,exports.buildPaginationModel=e_,exports.buildPaginationPageData=t_,exports.clampToRange=IK,exports.commandScore=Jm,exports.computeEdges=Ox,exports.computeFlowRect=kx,exports.computePositions=Cx,exports.connectorPath=sx,exports.copyText=Ff,exports.createColumnHelper=K_,exports.defaultPaneWidth=XJ,exports.entryIds=wx,exports.exitIds=Tx,exports.extendRange=yu,exports.formatFileSize=Bv,exports.formatMeterValue=$K,exports.formatRelativeTime=ZQ,exports.formatTime=n3,exports.formatTitle=XQ,exports.getAccessibleKeybindingHintString=xw,exports.getAddress=fB,exports.getAnchoredPosition=aa,exports.getCharacterCount=Lo,exports.getFirstDayOfWeek=du,exports.getIssueLabelColors=D6,exports.getLonLat=pB,exports.getMonthWeeks=mu,exports.getPlatform=Tw,exports.getProp=Ld,exports.getRangePosition=vu,exports.getSeriesColor=Fd,exports.getWeekdays=fu,exports.isDateSelectable=hu,exports.isDateWithinRange=_u,exports.isFileAccepted=Vv,exports.isTokenInteractive=o6,exports.markdownTheme=KG,exports.nodeIds=Ex,exports.parseDate=bu,exports.registerPortalRoot=Xi,exports.richTextEditorTheme=b$,exports.scrollToHeading=O2,exports.sortStrategies=L_,exports.splitHighlightChunks=uC,exports.splitTime=t3,exports.startOfWeek=pu,exports.stepValue=LK,exports.toDayKey=cu,exports.toJSONNodes=NT,exports.toValueTokens=BT,exports.toast=W3,exports.transitionSortDirection=M_,exports.triageFiles=Hv,exports.updateAriaValues=nY,exports.useAnnouncements=ab,exports.useChart=Bd,exports.useChartContext=Dd,exports.useClipboard=If,exports.useClipboardContext=Nf,exports.useClippedChildren=rE,exports.useCollator=Us,exports.useColorSchemeVar=z8,exports.useConfirm=mg,exports.useDateFormatter=Ws,exports.useDirection=QT,exports.useFilter=Gs,exports.useFloatingPanelContext=Sb,exports.useFormControlForwardedProps=Xf,exports.useIsRtl=$T,exports.useJSONTreeViewContext=bT,exports.useLocaleContext=Rs,exports.useMap=sB,exports.useMarquee=ZG,exports.useMarqueeContext=XG,exports.useNumberFormatter=Ks,exports.useOverflowObserver=_a,exports.usePaneWidth=pY,exports.usePlatform=Dw,exports.useStepsItem=F0,exports.useSwitch=s2,exports.useSwitchContext=n2,exports.useTab=h4,exports.useTabList=b4,exports.useTabPanel=w4,exports.useTableOfContents=R2,exports.useTableOfContentsContext=w2,exports.useTableOfContentsItemContext=E2,exports.useTabs=m4,exports.useTheme=R8,exports.useTimer=s3,exports.useTimerContext=$4,exports.useTour=D8,exports.valueToPercent=QK,exports.waitForElement=A8,exports.waitForElementValue=j8,exports.waitForEvent=k8;