@spteck/react-controls-v2 2.5.14 → 2.5.16
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/dist/components/buttonMenu/ButtonMenu.d.ts +28 -2
- package/dist/components/buttonMenu/IButtonMenuOption.d.ts +13 -1
- package/dist/index.cjs +26 -26
- package/dist/index.js +2017 -1937
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -28,7 +28,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
|
|
|
28
28
|
&::-webkit-scrollbar-thumb:hover {
|
|
29
29
|
background: ${i.tokens.colorBrandBackgroundHover} !important;
|
|
30
30
|
}
|
|
31
|
-
`},[u])}},$e=e=>{let{children:r,className:i,onScroll:a}=e,{gridStyles:o,scrollbarClassName:s}=Qe(e),l=t.useRef(null),[u,d]=t.useState(0),[f,p]=t.useState(0);return t.useEffect(()=>{let e;return l.current&&(e=new c.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;d(e),p(n)}}),e.observe(l.current)),()=>{e&&e.disconnect()}},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{className:[i,s].filter(Boolean).join(` `),style:o(u,f),ref:l,onScroll:t.useCallback(e=>{if(!a)return;let{scrollTop:t,scrollHeight:n,clientHeight:r}=e.currentTarget;(t+r)/n>=.95&&a(e)},[a]),children:r})})},et=e=>{let{maxWith:n}=e,{getBaseStyles:r}=Se();return{rootStyles:t.useCallback((t,i)=>({...r(e,t,i),maxWidth:n}),[r,n,e]),layoutGridStyles:(0,l.css)({display:`grid`,overflow:`hidden`})}},tt={areas:[`header header header`,`sidebar content sidebar`,`footer footer footer`],columns:`1fr 3fr 1fr`,rows:`auto 1fr auto`},nt=e=>{let{className:r,children:a,layoutConfig:o=tt}=e,s=t.useRef(null),[l,u]=t.useState(0),[d,f]=t.useState(0),{rootStyles:p,layoutGridStyles:m}=et({...e,layoutConfig:o}),h=((e,n)=>{let r;return t.useCallback((...t)=>{clearTimeout(r),r=setTimeout(()=>e(...t),n)},[e,n])})((e,t)=>{u(e),f(t)},200);return t.useEffect(()=>{if(!s.current)return;let e=new c.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;h(e,n)}});return e.observe(s.current),()=>e.disconnect()},[h]),(0,n.jsx)(`div`,{id:`-Layout`,className:(0,i.mergeClasses)(r,m),style:{...p(l,d),gridTemplateAreas:o.areas.join(` `),gridTemplateColumns:o.columns,gridTemplateRows:o.rows},ref:s,children:t.Children.map(a,(e,r)=>t.isValidElement(e)?(0,n.jsx)(`div`,{style:{gridArea:e.props?.area??`area-${r}`},children:e},r):e)})},rt=e=>{let{area:t,children:r}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{style:{gridArea:t},children:r})})},it=e=>{let{verticalSpacing:n,horizontalSpacing:r}=e,{getSpacing:i}=Se();return{spaceStyles:t.useCallback(e=>e?r?{width:i(r,e,`horizontal`)}:n?{height:i(n,e,`vertical`)}:{}:{},[i,r,n])}},at=e=>{let r=t.useRef(null),[i,a]=t.useState(0),{spaceStyles:o}=it(e);return t.useEffect(()=>{let e;return r.current&&(e=new c.ResizeObserver(e=>{for(let t of e){let{width:e}=t.contentRect;a(e)}}),e.observe(r.current)),()=>{e&&e.disconnect()}},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{id:`-space`,style:o(i),ref:r})})},ot=e=>{let{horizontal:n,horizontalAlign:r,verticalAlign:i,verticalFill:a,wrap:o,columnGap:s,RowGap:c}=e,{getBaseStyles:l}=Se();return{stackStyles:t.useCallback((t,u)=>{let d=i||`start`,f=n?r:`start`,p=n?{flexFlow:o?`row wrap`:`row nowrap`,height:`100%`}:{height:`100%`,maxHeight:`100%`},m=l(e,t,u);return{columnGap:s,rowGap:c,display:`flex`,flexDirection:n?`row`:`column`,alignItems:d,justifyContent:f,...p,height:a?`100%`:m.height,...m,...e.styles}},[l,n,r,e,i,a,o])}},B=e=>{let{children:r,className:i}=e,{stackStyles:a}=ot(e),o=t.useRef(null),[s,l]=t.useState(0),[u,d]=t.useState(0);return t.useEffect(()=>{let e;return o.current&&(e=new c.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;l(e),d(n)}}),e.observe(o.current)),()=>{e&&e.disconnect()}},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{className:i,style:a(s,u),ref:o,children:r})})},st=e=>{let{children:r,grow:i,disableShrink:a,shrink:o,order:s,alignSelf:l,verticalFill:u}=e,{getBaseStyles:d}=Se(),f=t.useRef(null),[p,m]=t.useState(0),[h,g]=t.useState(0),_=d(e,p,h);return t.useEffect(()=>{let e;return f.current&&(e=new c.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;m(e),g(n)}}),e.observe(f.current)),()=>{e&&e.disconnect()}},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{ref:f,style:{..._,alignSelf:l,order:s,height:u?`100%`:`auto`,flexGrow:i?typeof i==`boolean`?1:i:void 0,flexShrink:a||!i&&!o?0:1,minWidth:0,minHeight:0,width:`auto`},children:r})})},ct=({ratio:e,children:t,maxWidth:r,maxHeight:i,style:a={},...o})=>{let s={position:`relative`,width:`100%`,paddingTop:`${100/e}%`,maxWidth:r||`none`,maxHeight:i||`none`,...a},c={position:`absolute`,top:0,left:0,width:`100%`,height:`100%`};return(0,n.jsx)(`div`,{style:s,...o,children:(0,n.jsx)(`div`,{style:c,children:t})})},lt=e=>{let{styles:n}=e,{getBaseStyles:r}=Se();return{aspectRatioStyles:t.useCallback((t,i)=>({...r(e,t,i),...n}),[r,e,n])}},ut=e=>{let{styles:n}=e,{getBaseStyles:r}=Se();return{centerStyles:t.useCallback((t,i)=>({...r(e,t,i),...n,overflow:`hidden`,display:`flex`,justifyContent:`center`,alignItems:`center`,width:`100%`,height:`100%`}),[r,e,n]),childrenStyles:(0,l.css)({justifyContent:`center`,textAlign:`center`})}},dt=e=>{let{className:r,children:i}=e,a=t.useRef(null),[o,s]=t.useState(0),[l,u]=t.useState(0),{centerStyles:d}=ut(e),f=(e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}};return t.useEffect(()=>{let e=f(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;s(e),u(n)}},200),t=new c.ResizeObserver(t=>{e(t)});return a.current&&t.observe(a.current),()=>{t.disconnect()}},[]),(0,n.jsx)(`div`,{id:`center`,className:r,style:{...d(o,l),display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`,width:`100%`},ref:a,children:i})},ft=e=>{let{maxWidth:n}=e,{getBaseStyles:r}=Se();return{containerStyles:t.useCallback((t,i)=>!t||!i?{}:{...r(e,t,i),maxWidth:n},[r,n,e])}},pt=e=>{let{className:r,children:i,style:a,alignItems:o=`center`,justifyContent:l=`center`,flexDirection:u=`row`,centerContent:d=!0}=e,f=t.useRef(null),[p,m]=t.useState(0),[h,g]=t.useState(0),{containerStyles:_}=ft(e),v=t.useMemo(()=>(0,s.debounce)(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;m(e),g(n)}},200),[]);t.useEffect(()=>{let e=new c.ResizeObserver(e=>{v(e)});return f.current&&e.observe(f.current),()=>{e.disconnect(),v.cancel()}},[v]);let y=t.useMemo(()=>{if(!a)return;let{padding:e,margin:t,...n}=a;return n},[a]);return(0,n.jsx)(`div`,{id:`container`,className:r,style:{..._(p,h),display:`flex`,justifyContent:l,alignItems:o,flexDirection:u,...y},ref:f,children:d?(0,n.jsx)(dt,{children:i}):i})},mt=e=>{let[n,r]=(0,t.useState)(!0),[i,a]=(0,t.useState)(!0),o=(0,t.useCallback)(()=>{e&&e.scrollPrev()},[e]),s=(0,t.useCallback)(()=>{e&&e.scrollNext()},[e]),c=(0,t.useCallback)(e=>{r(!e.canScrollPrev()),a(!e.canScrollNext())},[]);return(0,t.useEffect)(()=>{e&&(c(e),e.on(`reInit`,c),e.on(`select`,c))},[e,c]),{prevBtnDisabled:n,nextBtnDisabled:i,onPrevButtonClick:o,onNextButtonClick:s}},ht=(e,n)=>{let{getCurrentDevice:r}=Se(),a=t.useCallback(()=>{let e=r(n),t=`95%`;switch(e){case`Medium`:t=`45%`;break;case`Large`:t=`calc(95% / 4)`;break;case`ExtraLarge`:t=`calc(95% / 5)`;break;case`ExtraExtraLarge`:t=`calc(95% / 6)`;break;default:t=`95%`;break}return t},[n,r]),o=t.useCallback(()=>{let e=r(n),t=i.tokens.spacingVerticalM;switch(e){case`Medium`:t=i.tokens.spacingVerticalM;break;case`Large`:t=i.tokens.spacingVerticalL;break;case`ExtraLarge`:t=i.tokens.spacingVerticalXL;break;default:t=i.tokens.spacingVerticalM;break}return t},[n,r]);return{enableControls:(0,l.css)({display:`flex`,justifyContent:`space-between`,alignItems:`stretch`,gap:10,padding:5}),embla__viewport:(0,l.css)({overflow:`hidden`,paddingTop:`10px`,paddingBottom:`20px`}),embla__container:(0,l.css)({backfaceVisibility:`hidden`,display:`flex`,touchAction:`pan-y`}),embla:(0,l.css)({".embla":{}}),embla__slide:(0,l.css)({minWidth:0,flex:`0 0 ${a()}`,paddingLeft:`${o()}`}),embla__buttons:(0,l.css)({display:`grid`,gridTemplateColumns:`repeat(2, 1fr)`,gap:0,alignItems:`center`})}},gt=e=>{let{styles:n}=e,{getBaseStyles:r}=Se();return{carouselStyles:t.useCallback((t,i)=>({...r(e,t,i),...n}),[r,e,n])}},_t=()=>({titleStyles:(0,l.css)({display:`-webkit-box`,overflow:`hidden`,textOverflow:`ellipsis`,WebkitLineClamp:`1`,WebkitBoxOrient:`vertical`,textAlign:`start`})}),vt=e=>{let{className:r,items:a,title:o}=e,s=t.useRef(null),[l,f]=t.useState(0),[p,m]=t.useState(0),{carouselStyles:h}=gt(e),[g,_]=(0,u.default)(),v=_t(),{enableControls:y,embla__slide:b,embla__container:x,embla__viewport:S,embla__buttons:C}=ht(e,l),{prevBtnDisabled:w,nextBtnDisabled:T,onPrevButtonClick:E,onNextButtonClick:D}=mt(_);return t.useEffect(()=>{let e;return s.current&&(e=new c.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;f(e),m(n)}}),f(s.current.clientWidth),m(s.current.clientHeight),e.observe(s.current)),()=>{e&&e.disconnect()}},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(`div`,{id:`-carousel`,role:`region`,"aria-roledescription":`carousel`,"aria-label":o||`Carousel`,className:(0,i.mergeClasses)(r,`embla`),style:{...h(l,p)},ref:s,children:[(0,n.jsxs)(`div`,{className:y,children:[(0,n.jsx)(i.Subtitle2,{className:v.titleStyles,children:o}),(0,n.jsxs)(`div`,{className:C,children:[(0,n.jsx)(i.Button,{onClick:E,disabled:w,appearance:`subtle`,icon:(0,n.jsx)(d.ChevronLeftRegular,{}),"aria-label":`Previous slide`}),(0,n.jsx)(i.Button,{onClick:D,disabled:T,appearance:`subtle`,icon:(0,n.jsx)(d.ChevronRightRegular,{}),"aria-label":`Next slide`})]})]}),(0,n.jsx)(`div`,{className:S,ref:g,children:(0,n.jsx)(`div`,{className:x,children:a.map((e,t)=>(0,n.jsx)(`div`,{className:b,role:`group`,"aria-roledescription":`slide`,"aria-label":`Slide ${t+1} of ${a.length}`,children:e},t))})})]})})},yt=e=>{let{direction:t=`horizontal`,resizerSize:n=6}=e,r=t===`horizontal`;return{root:(0,l.css)({position:`relative`,width:`100%`,height:`100%`}),pane:e=>{let t=e===void 0?void 0:typeof e==`number`?`${e}px`:e;return(0,l.css)({overflow:`auto`,position:`relative`,...r?{width:t,height:`100%`}:{height:t,width:`100%`}})},secondaryPane:(0,l.css)({flex:1,overflow:`auto`,position:`relative`,minWidth:0,minHeight:0}),resizer:(0,l.css)({flex:`0 0 auto`,...r?{width:n,cursor:`col-resize`,height:`100%`}:{height:n,cursor:`row-resize`,width:`100%`},backgroundColor:i.tokens.colorNeutralStroke1,transition:`background-color 150ms ease`,userSelect:`none`,zIndex:1}),resizerActive:(0,l.css)({backgroundColor:i.tokens.colorBrandStroke1}),resizerGrip:(0,l.css)({gap:`2px`}),gripDot:(0,l.css)({width:3,height:3,borderRadius:`50%`,backgroundColor:i.tokens.colorNeutralForeground3})}},V={xs:i.tokens.spacingHorizontalXS,s:i.tokens.spacingHorizontalS,m:i.tokens.spacingHorizontalM,l:i.tokens.spacingHorizontalL,xl:i.tokens.spacingHorizontalXL,xxl:i.tokens.spacingHorizontalXXL},H=t.default.memo(t.default.forwardRef(({direction:e=`vertical`,justifyContent:t=`flex-start`,alignItems:r=`stretch`,gap:a,columnGap:o,rowGap:s,margin:c,padding:u,marginTop:d,marginBottom:f,marginLeft:p,marginRight:m,paddingTop:h,paddingBottom:g,paddingLeft:_,paddingRight:v,width:y,height:b,wrap:x=!1,children:S,style:C,className:w,overflow:T,background:E},D)=>(0,n.jsx)(`div`,{ref:D,className:(0,i.mergeClasses)(w,(0,l.css)({display:`flex`,flexDirection:e===`horizontal`?`row`:`column`,justifyContent:t,alignItems:r,gap:a&&V[a]?V[a]:a,columnGap:o&&V[o]?V[o]:o,rowGap:s&&V[s]?V[s]:s,margin:c&&V[c]?V[c]:c,padding:u&&V[u]?V[u]:u,marginTop:d&&V[d]?V[d]:d,marginBottom:f&&V[f]?V[f]:f,marginLeft:p&&V[p]?V[p]:p,marginRight:m&&V[m]?V[m]:m,paddingTop:h&&V[h]?V[h]:h,paddingBottom:g&&V[g]?V[g]:g,paddingLeft:_&&V[_]?V[_]:_,paddingRight:v&&V[v]?V[v]:v,width:y,height:b,overflow:T,flexWrap:x?`wrap`:`nowrap`,backgroundColor:E,...C})),children:S}))),bt=e=>{let{direction:r=`horizontal`,defaultSize:i=`50%`,minSize:a=100,maxSize:o=1/0,minSecondarySize:s=100,resizable:c=!0,onResize:l,onResizeEnd:u,primaryContent:d,secondaryContent:f,className:p,styles:m}=e,h=yt(e),g=r===`horizontal`,_=t.useRef(null),v=t.useRef(null),[y,b]=t.useState(null),[x,S]=t.useState(!1),[C,w]=t.useState(!1);t.useEffect(()=>{if(y!==null||!_.current)return;let e=_.current.getBoundingClientRect(),t=g?e.width:e.height;if(typeof i==`number`)b(Math.min(Math.max(i,a),o));else if(typeof i==`string`&&i.endsWith(`%`)){let e=parseFloat(i)/100;b(Math.min(Math.max(t*e,a),o))}else b(t/2)},[i,a,o,g,y]);let T=t.useCallback(t=>{if(!_.current)return t;let n=_.current.getBoundingClientRect(),r=(g?n.width:n.height)-(e.resizerSize??6)-s;return Math.min(Math.max(t,a),Math.min(o,r))},[g,o,a,s,e.resizerSize]),E=t.useCallback(e=>{if(!c)return;e.preventDefault(),S(!0);let t=g?e.clientX:e.clientY,n=y??0,r=e=>{let r=T(n+((g?e.clientX:e.clientY)-t));b(r),l?.(r)},i=()=>{if(S(!1),document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i),v.current){let e=g?v.current.getBoundingClientRect().width:v.current.getBoundingClientRect().height;u?.(e)}};document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)},[c,g,y,T,l,u]),D=t.useCallback(e=>{if(!c)return;S(!0);let t=e.touches[0],n=g?t.clientX:t.clientY,r=y??0,i=e=>{let t=e.touches[0],i=T(r+((g?t.clientX:t.clientY)-n));b(i),l?.(i)},a=()=>{if(S(!1),document.removeEventListener(`touchmove`,i),document.removeEventListener(`touchend`,a),v.current){let e=g?v.current.getBoundingClientRect().width:v.current.getBoundingClientRect().height;u?.(e)}};document.addEventListener(`touchmove`,i,{passive:!1}),document.addEventListener(`touchend`,a)},[c,g,y,T,l,u]),O=t.useCallback(e=>{if(!c||y===null)return;let t=e.shiftKey?50:10,n=0;if(g?e.key===`ArrowLeft`?n=-t:e.key===`ArrowRight`&&(n=t):e.key===`ArrowUp`?n=-t:e.key===`ArrowDown`&&(n=t),n!==0){e.preventDefault();let t=T(y+n);b(t),l?.(t),u?.(t)}},[c,y,g,T,l,u]);t.useEffect(()=>(x?(document.body.style.userSelect=`none`,document.body.style.cursor=g?`col-resize`:`row-resize`):(document.body.style.userSelect=``,document.body.style.cursor=``),()=>{document.body.style.userSelect=``,document.body.style.cursor=``}),[x,g]);let k=t.useRef(null),A=[h.resizer,C||x?h.resizerActive:``].filter(Boolean).join(` `);return t.useEffect(()=>{if(!c||!k.current)return;let e=k.current,t=e=>E(e),n=e=>D(e),r=e=>O(e),i=()=>w(!0),a=()=>w(!1);return e.addEventListener(`mousedown`,t),e.addEventListener(`touchstart`,n),e.addEventListener(`keydown`,r),e.addEventListener(`mouseenter`,i),e.addEventListener(`mouseleave`,a),()=>{e.removeEventListener(`mousedown`,t),e.removeEventListener(`touchstart`,n),e.removeEventListener(`keydown`,r),e.removeEventListener(`mouseenter`,i),e.removeEventListener(`mouseleave`,a)}},[c,E,D,O]),(0,n.jsxs)(H,{ref:_,className:[h.root,p].filter(Boolean).join(` `),style:{height:`100%`,width:`100%`,...m},direction:g?`horizontal`:`vertical`,overflow:`hidden`,children:[(0,n.jsx)(H,{ref:v,className:h.pane(y??void 0),style:{flex:`0 0 auto`},children:d}),c&&(0,n.jsx)(`div`,{ref:k,className:A,style:{flex:`0 0 auto`,display:`flex`,alignItems:`center`,justifyContent:`center`},role:`separator`,"aria-orientation":g?`vertical`:`horizontal`,"aria-valuenow":Math.round(y??a),"aria-valuemin":a,"aria-valuemax":o===1/0?void 0:o,"aria-label":`Resize pane`,tabIndex:0,children:(0,n.jsxs)(H,{className:h.resizerGrip,direction:g?`vertical`:`horizontal`,alignItems:`center`,justifyContent:`center`,children:[(0,n.jsx)(H,{className:h.gripDot,children:``}),(0,n.jsx)(H,{className:h.gripDot,children:``}),(0,n.jsx)(H,{className:h.gripDot,children:``})]})}),(0,n.jsx)(H,{className:h.secondaryPane,style:{flex:1,minWidth:0,minHeight:0},children:f})]})},xt=({anchorPoint:e,isOpen:r,onClose:a,excludeRefs:o,children:s,theme:c,className:l,styles:u})=>{let d=(0,t.useRef)(null),[p,m]=(0,t.useState)(null);(0,t.useLayoutEffect)(()=>{if(!r){m(null);return}if(d.current){let t=d.current.getBoundingClientRect(),n=e.left,r=e.top;n+t.width>window.innerWidth&&(n=window.innerWidth-t.width-10),r+t.height>window.innerHeight&&(r=window.innerHeight-t.height-10),m({left:n,top:r})}},[e,r,s]);let h=t.default.useCallback(e=>{let t=e.target;if(d.current&&!d.current.contains(t)){if(o&&o.some(e=>e.current&&e.current.contains(t)))return;a()}},[a,o]);if((0,t.useEffect)(()=>{if(!r)return;let e=requestAnimationFrame(()=>{document.addEventListener(`mousedown`,h)}),t=e=>{e.key===`Escape`&&a()};return document.addEventListener(`keydown`,t),()=>{cancelAnimationFrame(e),document.removeEventListener(`mousedown`,h),document.removeEventListener(`keydown`,t)}},[r,h,a]),!r)return null;let g=p||e;return f.default.createPortal(c?(0,n.jsx)(i.FluentProvider,{theme:c,children:(0,n.jsx)(i.Card,{ref:d,role:`dialog`,"aria-modal":`true`,className:l,style:{position:`fixed`,zIndex:1e3,top:g.top,left:g.left,...u},children:s})}):(0,n.jsx)(i.Card,{ref:d,role:`dialog`,"aria-modal":`true`,className:l,style:{position:`fixed`,zIndex:1e3,top:g.top,left:g.left,...u},children:s}),document.body)},St=(0,i.makeStyles)({labelContainer:{display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignItems:`center`,...i.shorthands.gap(`6px`)},iconStyles:{width:`26px`},item:{paddingLeft:`15px`}}),Ct=e=>{let{label:r,icon:a,isRequired:o}=e,s=St();return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(`div`,{className:s.labelContainer,children:[a&&t.isValidElement(a)?a:(0,n.jsx)(p.Icon,{icon:a,className:s.iconStyles,width:`20px`,height:`20px`,color:i.tokens.colorBrandForeground1,"aria-hidden":`true`}),(0,n.jsx)(i.Caption1,{style:{color:i.tokens.colorBrandForeground1},children:r}),(0,n.jsx)(i.Caption1,{style:{color:i.tokens.colorPaletteRedForeground1},children:o?` *`:``})]})})},wt=(0,i.makeStyles)({root:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`,width:`100%`},spinner:{width:`100px`,height:`100px`}}),Tt=e=>{let{size:t,label:r,labelPosition:a,style:o,className:s}=e,c=wt();return(0,n.jsx)(`div`,{className:c.root,children:(0,n.jsx)(i.Spinner,{style:o,className:(0,i.mergeClasses)(c.spinner,s),size:t,label:r,labelPosition:a,"aria-label":r?void 0:`Loading`})})},Et={xs:i.tokens.fontSizeBase200,s:i.tokens.fontSizeBase300,m:i.tokens.fontSizeBase400,l:i.tokens.fontSizeBase500,xl:i.tokens.fontSizeBase600,xxl:i.tokens.fontSizeHero700},U={xs:i.tokens.spacingHorizontalXS,s:i.tokens.spacingHorizontalS,m:i.tokens.spacingHorizontalM,l:i.tokens.spacingHorizontalL,xl:i.tokens.spacingHorizontalXL,xxl:i.tokens.spacingHorizontalXXL},Dt={regular:i.tokens.fontWeightRegular,semibold:i.tokens.fontWeightSemibold,bold:i.tokens.fontWeightBold},Ot=e=>{let{fontSize:t,fontFamily:r,fontWeight:a,numberOfLines:o,as:s,padding:c,paddingTop:u,paddingBottom:d,paddingLeft:f,paddingRight:p,margin:m,marginTop:h,marginBottom:g,marginLeft:_,marginRight:v,children:y,style:b,className:x,color:S,block:C,truncate:w,wrap:T}=e,E=(0,l.css)({color:S,padding:c&&U[c]?U[c]:c,paddingTop:u&&U[u]?U[u]:u,paddingBottom:d&&U[d]?U[d]:d,paddingLeft:f&&U[f]?U[f]:f,paddingRight:p&&U[p]?U[p]:p,margin:m&&U[m]?U[m]:m,marginTop:h&&U[h]?U[h]:h,marginBottom:g&&U[g]?U[g]:g,marginLeft:_&&U[_]?U[_]:_,marginRight:v&&U[v]?U[v]:v}),D={...b,...r?{fontFamily:r}:{},...t?{fontSize:Et[t]?Et[t]:t}:{},...a?{fontWeight:Dt[a]?Dt[a]:a}:{},...o?{display:`-webkit-box`,WebkitBoxOrient:`vertical`,overflow:`hidden`,WebkitLineClamp:o}:{}};return(0,n.jsx)(i.Text,{as:s,className:(0,i.mergeClasses)(x,E),style:D,block:C,truncate:w,wrap:T,children:y})},kt=e=>{let{onSelected:r,value:a,styles:o,options:s,apparence:c,shape:l,label:u,buttonText:d,size:f}=e,p=t.useRef(),m=!!d,h=!!o&&typeof o==`object`&&(`root`in o||`menulist`in o||`menuitem`in o),g=h?o.root:o,_=h?o.menulist:void 0,v=h?o.menuitem:void 0,[y,b]=t.useState(m?void 0:a??s?.[0]),[x,S]=t.useState({option:m||!(a?.key??s?.[0]?.key)?[]:[a?.key??s?.[0]?.key]}),C=t.useRef(null);t.useEffect(()=>{if(m){b(void 0),S({option:[]}),p.current=void 0;return}let e=a??s?.[0];b(e),S({option:e?.key?[e.key]:[]}),p.current=s.find(t=>t.key===e?.key)?.icon},[m,s,a]);let[w,T]=t.useState(!1),E=t.useCallback((e,t)=>{T(t.open)},[]),D=t.useCallback(e=>e?.text??``,[]),O=t.useCallback((e,{name:t,checkedItems:n})=>{if(t===`option`){let e=n[0],t=s.find(t=>t.key===e);if(!t)return;m?(b(void 0),S({option:[]}),p.current=void 0):(b(t),S({option:n}),p.current=t.icon),r(t)}},[m,s,r]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.Field,{label:u,style:g,ref:C,children:(0,n.jsxs)(i.Menu,{open:w,onOpenChange:E,children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{shape:l??`circular`,icon:p.current,appearance:c??`secondary`,size:f??`medium`,children:d??D(y)??`No data available`})}),(0,n.jsx)(i.MenuPopover,{style:{minWidth:C.current?.offsetWidth,marginTop:3,..._},children:(0,n.jsx)(i.MenuList,{onCheckedValueChange:O,checkedValues:x,children:s.map(e=>(0,n.jsx)(i.MenuItemRadio,{name:`option`,value:e.key,icon:e.icon,disabled:e.disabled,style:v,children:D(e)},e.key))})})]})})})},At=()=>({styles:{container:(0,l.css)({display:`flex`,alignItems:`center`,alignContent:`center`,overflow:`hidden`,whiteSpace:`nowrap`,padding:`8px`,backgroundColor:`transparent`}),breadcrumbItem:(0,l.css)({minWidth:`fit-content`,padding:0,margin:`0px`}),separator:(0,l.css)({marginRight:`8px`})},getStyles:(e,t)=>{let{icon:n}=e;switch(t){case`small`:return(0,l.css)({fontSize:`12px`,padding:`4px`,paddingLeft:n?`0px`:`4px`});case`medium`:return(0,l.css)({fontSize:`14px`,padding:`6px`,paddingLeft:n?`0px`:`6px`});case`large`:return(0,l.css)({fontSize:`16px`,padding:`8px`,paddingLeft:n?`0px`:`8px`});case`current`:return(0,l.css)({fontWeight:i.tokens.fontWeightBold,cursor:`default`,display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,overflow:`hidden`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`,fontFamily:i.tokens.fontFamilyBase});default:return(0,l.css)({fontSize:`14px`,padding:`6px`,paddingLeft:n?`0px`:`6px`})}}}),jt=({items:e,theme:r,size:a=`medium`})=>{let[o,s]=(0,t.useState)(!1),c=(0,t.useRef)(null),l=(0,t.useRef)(null),[u,p]=(0,t.useState)({top:0,left:0,position:`absolute`}),{getStyles:m}=At();return(0,t.useEffect)(()=>{let e=e=>{!c.current?.contains(e.target)&&!l.current?.contains(e.target)&&o&&s(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[o]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Button,{ref:c,icon:(0,n.jsx)(d.MoreHorizontalRegular,{}),appearance:`transparent`,onClick:()=>{if(c.current){let e=c.current.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight,r=l.current?.offsetWidth||200,i=l.current?.offsetHeight||100,a=e.bottom+window.scrollY,o=e.left+window.scrollX;o+r>t&&(o=t-r-10),a+i>n&&(a=e.top+window.scrollY-i),p({top:a,left:o,position:`absolute`}),s(e=>!e)}},"aria-label":`More items`}),o&&(0,f.createPortal)(r?(0,n.jsx)(i.FluentProvider,{theme:r,children:(0,n.jsx)(i.Card,{ref:l,style:{...u,zIndex:1e3,padding:`8px`,minWidth:`150px`},children:e.map((e,t)=>(0,n.jsx)(i.Button,{icon:e.icon?e.icon:null,appearance:`transparent`,onClick:()=>{e.onClick?.(),s(!1)},children:(0,n.jsx)(i.Text,{className:m(e,a),children:e.label})},`overflow-${t}`))})}):(0,n.jsx)(i.Card,{ref:l,style:{...u,zIndex:1e3,padding:`8px`,minWidth:`150px`},children:e.map((e,t)=>(0,n.jsx)(i.Button,{icon:e.icon?e.icon:null,appearance:`transparent`,onClick:()=>{e.onClick?.(),s(!1)},children:(0,n.jsx)(i.Text,{className:m(e,a),children:e.label})},`overflow-${t}`))}),document.body)]})},Mt=(e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}},Nt=({items:e,maxWidth:r=`100%`,styles:a,theme:o,size:s=`medium`,currentIndex:l=e.length-1,className:u})=>{let{styles:f,getStyles:p}=At(),m=(0,t.useRef)(null),[h,g]=(0,t.useState)([]),[_,v]=(0,t.useState)([]);return(0,t.useEffect)(()=>{let t=()=>{if(!m.current)return;let t=m.current.offsetWidth,n=0,r=[],i=[];e.forEach(e=>{n+80<=t-50?(r.push(e),n+=80):i.push(e)}),g(r),v(i)},n=Mt(t,100),r=new c.ResizeObserver(()=>{n()});return m.current&&r.observe(m.current),t(),()=>{r.disconnect()}},[e]),(0,n.jsx)(`div`,{ref:m,className:(0,i.mergeClasses)(f.container,u),style:{maxWidth:r,...a},children:(0,n.jsxs)(B,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`start`,children:[h.map((e,r)=>(0,n.jsxs)(t.default.Fragment,{children:[r===l?(0,n.jsxs)(B,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`start`,columnGap:5,styles:{overflow:`hidden`},children:[e.icon?t.default.cloneElement(e.icon,{style:{fontSize:s===`large`?`20px`:s===`medium`?`16px`:`12px`}}):null,(0,n.jsx)(i.Text,{className:(0,i.mergeClasses)(f.breadcrumbItem,p(e,s),p(e,`current`)),"aria-current":`page`,children:e.label},e.label)]}):(0,n.jsx)(i.Button,{icon:e.icon?e.icon:null,appearance:`transparent`,className:`${f.breadcrumbItem}`,onClick:e.onClick,children:(0,n.jsx)(i.Text,{className:p(e,s),children:e.label})},e.label),r<h.length-1&&(0,n.jsx)(d.ChevronRightRegular,{style:{fontSize:s===`large`?`20px`:s===`medium`?`16px`:`12px`}})]},e.label??`breadcrumb-${r}`)),_.length>0&&(0,n.jsx)(jt,{items:_,theme:o})]})})},Pt=({icon:e,hoverIcon:r,imageSrc:a,width:o=24,height:s=24,color:c,hoverColor:l,onClick:u,enabled:d=!0,ariaLabel:f})=>{let p=c||i.tokens.colorBrandBackground,m=l||i.tokens.colorBrandBackgroundHover,h=i.tokens.fontFamilyBase,[g,_]=(0,t.useState)(!1),v=(0,t.useCallback)(()=>{d&&_(!0)},[d]),y=(0,t.useCallback)(()=>{d&&_(!1)},[d]),b=(0,t.useMemo)(()=>d&&g&&r?r:e,[g,r,e,d]),x=(0,t.useMemo)(()=>({width:o,height:s,color:g?m:p,display:`flex`,alignItems:`center`,justifyContent:`center`,opacity:d?1:.5,fontFamily:h,fontSize:`inherit`}),[o,s,g,m,p,d,h]),S=(0,t.useMemo)(()=>({border:`none`,background:`none`,padding:0,cursor:d?`pointer`:`default`}),[d]),C=(0,t.useMemo)(()=>({width:o,height:s,objectFit:`contain`,opacity:d?1:.5}),[o,s,d]);return(0,n.jsx)(i.Button,{onClick:d?u:void 0,onMouseEnter:v,onMouseLeave:y,disabled:!d,style:S,"aria-label":f??`Icon Button`,children:a?(0,n.jsx)(`img`,{src:a,alt:`icon`,style:C}):t.default.cloneElement(b,{style:{...b.props.style,...x}})})},Ft=t.default.memo(Pt),It=()=>({getSpanSlots:t.useCallback((e,t)=>{let n=new Date(e),r=new Date(t),i=n.getHours(),a=n.getMinutes(),o=i*2+(a>=1?1:0),s=r.getHours(),c=r.getMinutes(),l=s*2+(c>=1?2:0);return{spanSlots:l-o,startSlot:o,endSlot:l}},[]),generateLightAndHoverColors:t.useCallback((e,t=20,n=10)=>{let r=e=>{let t=parseInt(e.slice(1,3),16)/255,n=parseInt(e.slice(3,5),16)/255,r=parseInt(e.slice(5,7),16)/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=i-a,s=0,c=0,l=(i+a)/2;if(o!==0){switch(c=l>.5?o/(2-i-a):o/(i+a),i){case t:s=(n-r)/o+(n<r?6:0);break;case n:s=(r-t)/o+2;break;case r:s=(t-n)/o+4;break}s/=6}return{h:s*360,s:c*100,l:l*100}},i=(e,t,n)=>{let r=t*Math.min(n,100-n)/100,i=t=>{let i=(t+e/30)%12,a=n-r*Math.max(Math.min(i-3,9-i,1),-1);return Math.round(255*a).toString(16).padStart(2,`0`)};return`#${i(0)}${i(8)}${i(4)}`},{h:a,s:o,l:s}=r(e);return{lightColor:i(a,o,Math.min(s+t,100)),hoverColor:i(a,o,Math.min(s+n,100))}},[]),getEventColors:t.useCallback(e=>{let t={backgroundColor:i.tokens.colorNeutralBackground3,hoverColor:i.tokens.colorNeutralBackground3Hover};return{"no category":t,meeting:{backgroundColor:i.tokens.colorPaletteBlueBackground2,hoverColor:i.tokens.colorPaletteBlueBorderActive},appointment:{backgroundColor:i.tokens.colorPaletteGreenBackground2,hoverColor:i.tokens.colorPaletteGreenBorderActive},task:{backgroundColor:i.tokens.colorPaletteRedBackground2,hoverColor:i.tokens.colorPaletteRedBorderActive},deadline:{backgroundColor:i.tokens.colorPaletteYellowBackground2,hoverColor:i.tokens.colorPaletteYellowBorderActive},holiday:{backgroundColor:i.tokens.colorPalettePurpleBackground2,hoverColor:i.tokens.colorPalettePurpleBorderActive},celebration:{backgroundColor:i.tokens.colorPaletteDarkOrangeBackground2,hoverColor:i.tokens.colorPaletteDarkOrangeBorderActive},reminder:{backgroundColor:i.tokens.colorPaletteTealBackground2,hoverColor:i.tokens.colorPaletteTealBorderActive},workshop:{backgroundColor:i.tokens.colorPaletteTealBackground2,hoverColor:i.tokens.colorPaletteTealBorderActive},webinar:{backgroundColor:i.tokens.colorPaletteMagentaBackground2,hoverColor:i.tokens.colorPaletteMagentaBorderActive},conference:{backgroundColor:i.tokens.colorPaletteBrownBackground2,hoverColor:i.tokens.colorPaletteBrownBorderActive}}[e.toLowerCase()]||t},[]),generateColor:t.useCallback(e=>{let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);let n=(t&16777215).toString(16).toUpperCase();return`#${`00000`.substring(0,6-n.length)+n}`},[]),getCalendarColors:t.useCallback(e=>{let t={beige:{backgroundColor:i.tokens.colorPaletteBeigeBackground2,hoverColor:i.tokens.colorPaletteBeigeBorderActive},blue:{backgroundColor:i.tokens.colorPaletteBlueBackground2,hoverColor:i.tokens.colorPaletteBlueBorderActive},brown:{backgroundColor:i.tokens.colorPaletteBrownBackground2,hoverColor:i.tokens.colorPaletteBrownBorderActive},gold:{backgroundColor:i.tokens.colorPaletteGoldBackground2,hoverColor:i.tokens.colorPaletteGoldBorderActive},lavender:{backgroundColor:i.tokens.colorPaletteLavenderBackground2,hoverColor:i.tokens.colorPaletteLavenderBorderActive},magenta:{backgroundColor:i.tokens.colorPaletteMagentaBackground2,hoverColor:i.tokens.colorPaletteMagentaBorderActive},navy:{backgroundColor:i.tokens.colorPaletteNavyBackground2,hoverColor:i.tokens.colorPaletteNavyBorderActive},pink:{backgroundColor:i.tokens.colorPalettePinkBackground2,hoverColor:i.tokens.colorPalettePinkBorderActive},plum:{backgroundColor:i.tokens.colorPalettePlumBackground2,hoverColor:i.tokens.colorPalettePlumBorderActive},purple:{backgroundColor:i.tokens.colorPalettePurpleBackground2,hoverColor:i.tokens.colorPalettePurpleBorderActive},red:{backgroundColor:i.tokens.colorPaletteRedBackground2,hoverColor:i.tokens.colorPaletteRedBorderActive},teal:{backgroundColor:i.tokens.colorPaletteTealBackground2,hoverColor:i.tokens.colorPaletteTealBorderActive},anchor:{backgroundColor:i.tokens.colorPaletteAnchorBackground2,hoverColor:i.tokens.colorPaletteAnchorBorderActive},"dark-red":{backgroundColor:i.tokens.colorPaletteDarkRedBackground2,hoverColor:i.tokens.colorPaletteDarkRedBorderActive},cranberry:{backgroundColor:i.tokens.colorPaletteCranberryBackground2,hoverColor:i.tokens.colorPaletteCranberryBorderActive},pumpkin:{backgroundColor:i.tokens.colorPalettePumpkinBackground2,hoverColor:i.tokens.colorPalettePumpkinBorderActive},peach:{backgroundColor:i.tokens.colorPalettePeachBackground2,hoverColor:i.tokens.colorPalettePeachBorderActive},marigold:{backgroundColor:i.tokens.colorPaletteMarigoldBackground2,hoverColor:i.tokens.colorPaletteMarigoldBorderActive},brass:{backgroundColor:i.tokens.colorPaletteBrassBackground2,hoverColor:i.tokens.colorPaletteBrassBorderActive},forest:{backgroundColor:i.tokens.colorPaletteForestBackground2,hoverColor:i.tokens.colorPaletteForestBorderActive},seafoam:{backgroundColor:i.tokens.colorPaletteSeafoamBackground2,hoverColor:i.tokens.colorPaletteSeafoamBorderActive},"dark-green":{backgroundColor:i.tokens.colorPaletteDarkGreenBackground2,hoverColor:i.tokens.colorPaletteDarkGreenBorderActive},"light-teal":{backgroundColor:i.tokens.colorPaletteLightTealBackground2,hoverColor:i.tokens.colorPaletteLightTealBorderActive},steel:{backgroundColor:i.tokens.colorPaletteSteelBackground2,hoverColor:i.tokens.colorPaletteSteelBorderActive},"royal-blue":{backgroundColor:i.tokens.colorPaletteRoyalBlueBackground2,hoverColor:i.tokens.colorPaletteRoyalBlueBorderActive},cornflower:{backgroundColor:i.tokens.colorPaletteCornflowerBackground2,hoverColor:i.tokens.colorPaletteCornflowerBorderActive},grape:{backgroundColor:i.tokens.colorPaletteGrapeBackground2,hoverColor:i.tokens.colorPaletteGrapeBorderActive},lilac:{backgroundColor:i.tokens.colorPaletteLilacBackground2,hoverColor:i.tokens.colorPaletteLilacBorderActive},mink:{backgroundColor:i.tokens.colorPaletteMinkBackground2,hoverColor:i.tokens.colorPaletteMinkBorderActive},platinum:{backgroundColor:i.tokens.colorPalettePlatinumBackground2,hoverColor:i.tokens.colorPalettePlatinumBorderActive}},n=t[`royal-blue`];return t[e]||n},[]),formatDate:t.useCallback((e,t)=>(0,a.format)((0,a.parseISO)(e),t),[])}),Lt={start:`Start`,end:`End`,location:`Location`,attendees:`Attendees`,details:`Details`},Rt=`32px`,zt=e=>({styles:{banner:(0,l.css)({display:`flex`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,padding:`5px 10px 0px 10px`}),fieldContainer:(0,l.css)({paddingLeft:Rt}),title:(0,l.css)({lineClamp:2,overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,wordBreak:`break-word`,WebkitLineClamp:2})}}),Bt=({fieldLabel:e,fieldValue:t,icon:r})=>(0,n.jsxs)(B,{children:[(0,n.jsx)(Ct,{label:e,icon:r}),(0,n.jsx)(B,{paddingLeft:Rt,children:(0,n.jsx)(i.Body1,{children:t})})]}),Vt=e=>{let{event:r,strings:a=Lt}=e,{title:o,start:s,end:c,location:l,category:u,attendees:d,weblink:f}=r,{styles:p}=zt(r),{formatDate:m}=It(),h=m(s,`PPp`),g=m(c,`PPp`),_=(0,i.partitionAvatarGroupItems)({items:d?.map(e=>e.id)||[]}),v=t.useCallback(e=>d?.find(t=>t.id===e)||void 0,[d]),y=t.useCallback(()=>(0,n.jsxs)(B,{children:[(0,n.jsx)(Ct,{label:a.attendees,icon:`ph:users-three`}),(0,n.jsx)(B,{paddingLeft:Rt,children:(0,n.jsxs)(i.AvatarGroup,{layout:`stack`,children:[_.inlineItems.map(e=>(0,n.jsx)(i.AvatarGroupItem,{name:v(e)?.name,image:{src:v(e)?.imageUrl}},e)),_.overflowItems&&(0,n.jsx)(i.AvatarGroupPopover,{children:_.overflowItems.map(e=>(0,n.jsx)(i.AvatarGroupItem,{name:v(e)?.name,image:{src:v(e)?.imageUrl}},e))})]})})]}),[_,v,a.attendees]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Ze,{appearance:`subtle`,padding:`m`,paddingTop:`s`,width:`250px`,cardBody:(0,n.jsxs)(B,{RowGap:10,children:[(0,n.jsx)(`div`,{className:p.banner,children:(0,n.jsx)(i.Subtitle1,{className:p.title,children:o})}),(0,n.jsx)(i.Divider,{}),u&&(0,n.jsx)(B,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:(0,n.jsx)(i.Badge,{appearance:`filled`,children:u})}),(0,n.jsx)(Bt,{fieldLabel:a.start,fieldValue:h,icon:`mingcute:time-line`}),(0,n.jsx)(Bt,{fieldLabel:a.end,fieldValue:g,icon:`mingcute:time-line`}),(0,n.jsx)(Bt,{fieldLabel:a.location,fieldValue:l,icon:`mingcute:location-line`}),(0,n.jsx)(y,{})]}),cardFooterContent:(0,n.jsx)(B,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:(0,n.jsx)(i.Button,{appearance:`subtle`,onClick:()=>{window.open(f,`_blank`)},children:a.details})})})})},Ht=()=>({styles:{calendarWrapper:(0,l.css)({padding:`20px`,paddingTop:`10px`,overflow:`auto`,flex:1,display:`grid`,gridTemplateColumns:`repeat(7, 1fr)`,gridTemplateRows:`auto`,gridAutoRows:`minmax(100px, 1fr)`,gap:`1px`,width:`calc(100% - 40px)`}),header:(0,l.css)({display:`flex`,justifyContent:`start`,gap:`10px`,alignItems:`center`,padding:`16px`}),dayHeader:(0,l.css)({textAlign:`start`,padding:`8px`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`}),day:(0,l.css)({display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,border:`1px solid ${i.tokens.colorNeutralStroke1}`,backgroundColor:i.tokens.colorNeutralBackground1,position:`relative`}),otherMonthDay:(0,l.css)({color:i.tokens.colorNeutralStroke2,backgroundColor:i.tokens.colorNeutralBackground2}),cardDay:(0,l.css)({height:`100%`,minHeight:100,borderRadius:0,overflow:`hidden !important`,rowGap:5}),cardDayOnHover:(0,l.css)({":hover":{backgroundColor:i.tokens.colorNeutralBackground2}}),currentDay:(0,l.css)({borderTop:`5px solid ${i.tokens.colorBrandBackground}`}),currentDayLabel:(0,l.css)({color:i.tokens.colorBrandBackground,fontWeight:600}),eventCard:(0,l.css)({display:`flex`,flexDirection:`column`,alignItems:`flex-start`,zIndex:1}),eventContainer:(0,l.css)({display:`flex`,flexDirection:`column`,overflowY:`auto`,paddingTop:`5px`,paddingBottom:`5px`,paddingLeft:`5px`,paddingRight:`5px`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorNeutralStroke2}}),eventCardWeekView:(0,l.css)({backgroundColor:i.tokens.colorBrandBackground,color:i.tokens.colorNeutralForegroundOnBrand,borderRadius:`4px`,padding:`4px`,margin:`2px`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,height:`100%`}),popoverContent:(0,l.css)({padding:0,borderTopWidth:20,borderTopStyle:`solid`}),cardMonthTitle:(0,l.css)({display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingLeft:`8px`,wordBreak:`break-word`,overflow:`hidden`})},applyEventHouverColorClass:(e,t)=>(0,l.css)({backgroundColor:e??i.tokens.colorBrandBackground,":hover":{backgroundColor:t??i.tokens.colorBrandBackgroundHover}})}),Ut=e=>{let r=(0,i.useId)(),{events:o,date:s,onCardHoverChange:c,columnHeight:l}=e,{styles:u,applyEventHouverColorClass:d}=Ht(),f=t.useRef(null),{getEventColors:p,getCalendarColors:m}=It(),h=t.useCallback(e=>{c&&c(!0,e)},[c]),g=t.useCallback(e=>{c&&c(!1,e)},[c]),_=t.useCallback(e=>{f.current?.setTarget(e)},[f]),v=t.useCallback((e,t,r)=>(0,n.jsx)(`div`,{ref:_,children:(0,n.jsx)(Ze,{className:(0,i.mergeClasses)(u.eventCard,d(r.backgroundColor,r.backgroundColor)),paddingTop:`4px`,paddingBottom:`4px`,paddingLeft:`8px`,paddingRight:`8px`,marginTop:e===0?`0px`:`5px`,cardHeader:(0,n.jsx)(i.Caption1,{className:u.cardMonthTitle,children:t.title}),onMouseEnter:()=>h(t.title),onMouseLeave:()=>g(t.title)})},t.id??`card-${e}`),[h,g,d]),y=t.useCallback((e,t,a)=>(0,n.jsxs)(i.Popover,{withArrow:!0,mouseLeaveDelay:30,closeOnScroll:!0,closeOnIframeFocus:!0,openOnHover:!0,children:[(0,n.jsx)(i.PopoverTrigger,{children:v(t,e,a)}),(0,n.jsx)(i.PopoverSurface,{"aria-labelledby":r,className:(0,i.mergeClasses)(u.popoverContent),children:(0,n.jsx)(Vt,{event:e})})]},t),[v,r,u.popoverContent]);return!o||!o?.length?(0,n.jsx)(n.Fragment,{children:` `}):(0,n.jsx)(`div`,{style:{height:l},className:u.eventContainer,children:o.map((e,n)=>{if(!(0,a.isWithinInterval)(s,{start:(0,a.startOfDay)(new Date(e.start)),end:(0,a.endOfDay)(new Date(e.end))}))return null;let r;r=e.hexColor?{backgroundColor:e.hexColor,hoverColor:e.hexColor}:e.color?m(e.color):p(e.category);let o=e.onRenderInMonthView?.(e),c=e.id??`event-${n}`;return t.isValidElement(o)?t.cloneElement(o,{key:c,className:(0,i.mergeClasses)(o.props.className,u.eventCard)}):e.enableOnHouver?y(e,n,r):v(n,e,r)})})},Wt=e=>{let{day:r,currentMonth:o,events:s,date:c,columnHeight:l,onDayClick:u}=e,{styles:d}=Ht(),f=new Date,[p,m]=t.useState(!1),h=c.getDay()===0||c.getDay()===6,g=t.useMemo(()=>(0,a.isSameDay)(c,f),[c,f]),_=t.useMemo(()=>(0,n.jsx)(B,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,paddingLeft:`m`,paddingRight:`m`,children:(0,n.jsxs)(i.Body2,{className:d.currentDayLabel,style:{color:h?`${i.tokens.colorPaletteRedForeground1} !important`:``},children:[r,` `,f.toLocaleString(`default`,{month:`short`})]})}),[r,h,f,d.currentDayLabel]),v=t.useCallback(e=>{m(e)},[]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Ze,{onClick:u?()=>u(c):void 0,className:(0,i.mergeClasses)(d.cardDay,o?``:d.otherMonthDay,g?d.currentDay:``,p?``:d.cardDayOnHover),cardHeader:g?_:(0,n.jsx)(B,{horizontal:!0,paddingLeft:`m`,paddingRight:`m`,children:(0,n.jsx)(i.Body2,{style:{color:h?`${i.tokens.colorPaletteRedForeground1} !important`:``},children:r})}),paddingTop:`m`,paddingBottom:`m`,paddingLeft:`0px`,paddingRight:`0px`,cardBody:(0,n.jsx)(Ut,{events:s,date:c,onCardHoverChange:v,columnHeight:l-60})})})},Gt=()=>({styles:{container:(0,l.css)({display:`flex`,flexDirection:`column`,width:`calc(100% - 40px)`,height:`100vh`,overflow:`hidden`,padding:`20px`}),header:(0,l.css)({display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:`16px`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`}),weekGrid:(0,l.css)({display:`grid`,gridTemplateColumns:`80px repeat(7, 1fr)`,gridTemplateRows:`50px 40px repeat(48, 33px)`,height:`fit-content`,overflowY:`auto`,border:`1px solid ${i.tokens.colorNeutralStroke1}`,maxHeight:`calc(100vh - 100px)`,scrollbarWidth:`thin`,scrollbarColor:`${i.tokens.colorBrandBackground} ${i.tokens.colorNeutralBackground1}`,"&::-webkit-scrollbar":{width:`8px`},"&::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground1},"&::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandBackground,borderRadius:`4px`},"&::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorBrandBackgroundHover}}),blankHeader:(0,l.css)({gridColumn:`1`,backgroundColor:i.tokens.colorNeutralBackground3,borderBottom:`3px solid ${i.tokens.colorNeutralStroke3}`,position:`sticky`,top:0,zIndex:10}),timeColumn:(0,l.css)({gridColumn:`1`,gridRow:`3 / span 49`,display:`flex`,flexDirection:`column`,backgroundColor:i.tokens.colorNeutralBackground1,borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`}),timeCell:(0,l.css)({height:`100%`,display:`flex`,alignItems:`center`,fontSize:`12px`,color:i.tokens.colorNeutralForeground3,borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`,justifyContent:`center`}),fullDayRow:(0,l.css)({gridRow:`2`,display:`grid`,gridTemplateColumns:`80px repeat(7, 1fr)`,gap:`0`,padding:`0`,backgroundColor:i.tokens.colorNeutralBackground2,borderBottom:`3px solid ${i.tokens.colorNeutralStroke2}`}),fullDayLabel:(0,l.css)({gridColumn:`1`,display:`flex`,alignItems:`center`,justifyContent:`center`,alignContent:`center`,color:i.tokens.colorBrandBackground,padding:`5px`,borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`,borderBottom:`3px solid ${i.tokens.colorNeutralStroke2}`}),fullDayCell:(0,l.css)({borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`,display:`flex`,flexDirection:`row`,gap:`0px`,padding:`4px`,borderBottom:`3px solid ${i.tokens.colorNeutralStroke2}`,overflow:`hidden`}),fullDayEvent:(0,l.css)({flex:`1 1 auto`,minWidth:`24px`,height:`24px`,padding:`4px 8px`,backgroundColor:i.tokens.colorBrandBackground,borderRadius:`4px`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`}),dayHeaderCell:(0,l.css)({textAlign:`center`,backgroundColor:i.tokens.colorNeutralBackground2,padding:`8px`,fontWeight:`bold`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`,position:`sticky`,top:0,zIndex:10}),todayHeaderCell:(0,l.css)({borderTop:`5px solid ${i.tokens.colorBrandBackground}`}),eventCard:(0,l.css)({padding:2,alignItems:`center`,justifyContent:`center`,marginRight:`2px`,zIndex:1,position:`absolute`,alignContent:`center`,overflow:`hidden`,":hover":{pointerEvents:`auto`,cursor:`pointer`}}),event:(0,l.css)({height:`100%`,backgroundColor:i.tokens.colorBrandBackground,borderRadius:`4px`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`,marginRight:`2px`,zIndex:1,position:`absolute`,alignContent:`center`,":hover":{pointerEvents:`auto`,cursor:`pointer`}}),dayCell:(0,l.css)({borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`,position:`relative`,overflow:`visible`,FlexDirection:`column`,gap:`4px`}),currentTimeIndicator:(0,l.css)({position:`absolute`,left:0,height:`2px`,backgroundColor:i.tokens.colorPaletteRedBorderActive,width:`100%`,zIndex:1}),currentHalfHourCell:(0,l.css)({border:`2px solid ${i.tokens.colorPaletteRedBorderActive}`}),eventTitle:(0,l.css)({display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingLeft:`8px`,wordBreak:`break-word`,overflow:`hidden`}),popoverContent:(0,l.css)({padding:0,borderTopWidth:20,borderTopStyle:`solid`})},applyEventHouverColorClass:t.default.useCallback((e,t)=>(0,l.css)({backgroundColor:e??i.tokens.colorBrandBackground,":hover":{backgroundColor:t??i.tokens.colorBrandBackgroundHover}}),[i.tokens.colorBrandBackground,i.tokens.colorBrandBackgroundHover]),appyDynamicStyles:t.default.useCallback((e,t,n,r)=>(0,l.css)({flex:`0 0 calc(100% / ${t})`,height:`${n*r}px`,left:`${e*10}%`,width:`calc(${100-e*10}% - 8px)`,margin:4,marginTop:0,marginBottom:0}),[])}),Kt={timeSeparator:` - `,hourSuffix:`H`},qt=({event:e,colors:r,spanSlots:a,rowHeight:o,eventIndex:s,eventCount:c,strings:l=Kt})=>{let u=(0,i.useId)(),{styles:d,applyEventHouverColorClass:f,appyDynamicStyles:p}=Gt(),m=t.useRef(null),{formatDate:h}=It(),g=t.useMemo(()=>(0,n.jsx)(`div`,{children:(0,n.jsxs)(B,{columnGap:4,verticalAlign:`center`,children:[(0,n.jsx)(i.Caption1Strong,{className:d.eventTitle,children:e.title}),(0,n.jsxs)(B,{columnGap:4,horizontal:!0,verticalAlign:`center`,horizontalAlign:`start`,children:[(0,n.jsxs)(i.Caption1,{children:[h(e.start,`HH:mm`),l.hourSuffix]}),l.timeSeparator,(0,n.jsxs)(i.Caption1,{children:[h(e.end,`HH:mm`),l.hourSuffix]})]})]})}),[e,h,l,d.eventTitle]);return(0,n.jsx)(i.Card,{ref:m,className:(0,i.mergeClasses)(d.eventCard,f(r.backgroundColor,r.backgroundColor),p(s,c,o,a)),children:e.enableOnHouver?(0,n.jsxs)(i.Popover,{withArrow:!0,mouseLeaveDelay:50,closeOnScroll:!0,closeOnIframeFocus:!0,openOnHover:!0,children:[(0,n.jsx)(i.PopoverTrigger,{children:g}),(0,n.jsx)(i.PopoverSurface,{"aria-labelledby":u,className:(0,i.mergeClasses)(d.popoverContent),children:(0,n.jsx)(Vt,{event:e})})]}):g},e.id)},Jt=({event:e,eventCount:r,spanSlots:a,rowHeight:o,eventIndex:s,view:c})=>{let{styles:l,appyDynamicStyles:u}=Gt(),{getEventColors:d,getCalendarColors:f}=It(),p=e.hexColor?{backgroundColor:e.hexColor,hoverColor:e.hexColor}:e.color?f(e.color):d(e.category),m=c===`day`?e.onRenderInDayView?.(e):e.onRenderInWeekView?.(e);return t.isValidElement(m)?t.cloneElement(m,{event:e,className:(0,i.mergeClasses)(m.props.className,l.eventCard,u(s,r,o,a)),style:{...m.props.style}}):(0,n.jsx)(qt,{event:e,colors:p,spanSlots:a,rowHeight:o,eventIndex:s,eventCount:r},e.id)},Yt=e=>{let n=(0,t.useCallback)(e=>e.map(e=>({...e,id:e.id||(0,m.v4)()})),[]),r=(0,t.useCallback)(t=>new Date(new Date(t).toLocaleString(void 0,{timeZone:e})),[e]);return{getMonthCalendar:(0,t.useCallback)((e,t,i)=>{let o=n(e),s=new Date(t,i+1,0).getDate(),c={};for(let e=1;e<=s;e++){let n=(0,a.format)(new Date(t,i,e),`yyyy-MM-dd`);c[n]=[]}return o.forEach(e=>{let t=r(e.start),n=r(e.end),i=new Date(t);for(;i<=n;){let t=(0,a.format)(i,`yyyy-MM-dd`);c[t]&&c[t].push(e),i.setDate(i.getDate()+1)}}),c},[r]),getWeekEvents:(0,t.useCallback)((e,t)=>{let i=[],o=r(t),s=n(e);for(let e=0;e<7;e++){let t=new Date(o);t.setDate(o.getDate()+e);let n=(0,a.format)(t,`yyyy-MM-dd`),c=Array.from({length:48},(e,t)=>({time:`${String(Math.floor(t/2)).padStart(2,`0`)}:${t%2==0?`00`:`30`}`,events:[]})),l=[];s.forEach(e=>{let t=r(e.start),i=r(e.end);if(e.isFullDay){(0,a.format)(t,`yyyy-MM-dd`)<=n&&(0,a.format)(i,`yyyy-MM-dd`)>=n&&l.push(e);return}if((0,a.format)(t,`yyyy-MM-dd`)<=n&&(0,a.format)(i,`yyyy-MM-dd`)>=n){let r=new Date(t);for(;r<=i;){if((0,a.format)(r,`yyyy-MM-dd`)===n){let t=r.getHours()*2+(r.getMinutes()>=30?1:0);c[t]&&c[t].events.push(e)}r.setMinutes(r.getMinutes()+30)}}}),i.push({date:n,fullDayEvents:l,timeSlots:c})}return i},[r])}},Xt=()=>({styles:{container:(0,l.css)({display:`flex`,flexDirection:`column`,width:`calc(100% - 40px)`,height:`100vh`,overflow:`hidden`,padding:`20px`}),header:(0,l.css)({display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:`16px`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`}),dayGrid:(0,l.css)({display:`grid`,gridTemplateColumns:`80px 1fr`,gridTemplateRows:`50px 40px repeat(48, 33px)`,height:`calc(100vh - 100px)`,overflowY:`auto`,border:`1px solid ${i.tokens.colorNeutralStroke1}`,maxHeight:`fit-content`,scrollbarWidth:`thin`,scrollbarColor:`${i.tokens.colorBrandBackground} ${i.tokens.colorNeutralBackground1}`,"&::-webkit-scrollbar":{width:`8px`},"&::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground1},"&::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandBackground,borderRadius:`4px`},"&::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorBrandBackgroundHover}}),blankHeader:(0,l.css)({gridColumn:`1`,backgroundColor:i.tokens.colorNeutralBackground3,borderBottom:`3px solid ${i.tokens.colorNeutralStroke3}`}),timeColumn:(0,l.css)({gridColumn:`1`,gridRow:`3 / span 49`,display:`flex`,flexDirection:`column`,backgroundColor:i.tokens.colorNeutralBackground1,borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`}),timeCell:(0,l.css)({height:`100%`,maxHeight:`32px`,minHeight:`32px`,display:`flex`,alignItems:`center`,fontSize:`12px`,color:i.tokens.colorNeutralForeground3,borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`,justifyContent:`center`}),fullDayRow:(0,l.css)({gridRow:`2`,display:`grid`,gridTemplateColumns:`80px 33px`,gap:`0`,padding:`0`,backgroundColor:i.tokens.colorNeutralBackground2,borderBottom:`3px solid ${i.tokens.colorNeutralStroke2}`}),fullDayLabel:(0,l.css)({gridColumn:`1`,display:`flex`,alignItems:`center`,justifyContent:`center`,alignContent:`center`,color:i.tokens.colorBrandBackground,padding:`5px`,borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`,borderBottom:`3px solid ${i.tokens.colorNeutralStroke2}`}),fullDayCell:(0,l.css)({borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`,display:`flex`,flexDirection:`row`,gap:`2px`,padding:`4px`,borderBottom:`3px solid ${i.tokens.colorNeutralStroke2}`,overflow:`hidden`}),fullDayEvent:(0,l.css)({flex:`1 1 auto`,minWidth:`24px`,height:`24px`,padding:`4px 8px`,backgroundColor:i.tokens.colorBrandBackground,color:i.tokens.colorNeutralForegroundOnBrand,borderRadius:`4px`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`}),dayHeaderCell:(0,l.css)({textAlign:`center`,backgroundColor:i.tokens.colorNeutralBackground2,padding:`8px`,fontWeight:`bold`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`}),todayHeaderCell:(0,l.css)({borderTop:`5px solid ${i.tokens.colorBrandBackground}`}),eventCard:(0,l.css)({alignItems:`center`,justifyContent:`center`,marginRight:`2px`,zIndex:1,position:`absolute`,alignContent:`center`,overflow:`hidden`}),dayCell:(0,l.css)({borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`,position:`relative`,overflow:`visible`,FlexDirection:`column`,gap:`4px`}),currentTimeIndicator:(0,l.css)({position:`absolute`,left:0,height:`2px`,backgroundColor:i.tokens.colorPaletteRedBorderActive,width:`100%`,zIndex:1}),currentHalfHourCell:(0,l.css)({border:`2px solid ${i.tokens.colorPaletteRedBorderActive}`}),eventTitle:(0,l.css)({display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingLeft:`8px`,wordBreak:`break-word`,overflow:`hidden`})},applyEventHouverColorClass:(e,t)=>(0,l.css)({backgroundColor:e??i.tokens.colorBrandBackground,":hover":{backgroundColor:t??i.tokens.colorBrandBackgroundHover}})}),Zt={allDay:`All Day`},Qt=33,$t=e=>{let{events:r,currentDay:o,height:s,strings:c=Zt}=e,{styles:l}=Xt(),u=(0,t.useRef)(null),{getSpanSlots:d,getEventColors:f,getCalendarColors:p}=It(),m=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:h}=Yt(m),g=t.useCallback(()=>Array.from({length:24},(e,r)=>(0,n.jsxs)(t.Fragment,{children:[(0,n.jsx)(`div`,{className:l.timeCell,children:(0,n.jsxs)(i.Body1Strong,{children:[r,`:00`]})}),(0,n.jsx)(`div`,{className:l.timeCell})]},r)),[l.timeCell]),_=t.useCallback(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:l.blankHeader}),Array.from({length:1},(e,t)=>{let r=(0,a.addDays)(o,t),s=(0,a.isToday)(r)?l.todayHeaderCell:``;return(0,n.jsxs)(`div`,{className:(0,i.mergeClasses)(l.dayHeaderCell,s),children:[(0,n.jsx)(i.Text,{weight:`semibold`,size:600,style:{paddingRight:10},children:(0,a.format)(r,`dd`)}),(0,n.jsx)(i.Subtitle1,{children:(0,a.format)(r,`LLLL, yyyy`)})]},t)})]}),[o,l.blankHeader,l.dayHeaderCell,l.todayHeaderCell]),v=t.useCallback(()=>{let e=h(r,o.toISOString());return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:l.fullDayLabel,children:(0,n.jsx)(i.Body1,{children:c.allDay})}),Array.from({length:1},(t,r)=>{let s=(0,a.format)((0,a.addDays)(o,r),`yyyy-MM-dd`),c=e.find(e=>e.date===s)?.fullDayEvents||[];return(0,n.jsx)(`div`,{className:l.fullDayCell,children:c.map(e=>(0,n.jsx)(`div`,{className:l.fullDayEvent,style:{gridColumn:`${r+2}`,backgroundColor:e.color?p(e.color).backgroundColor:f(e.category).backgroundColor},children:(0,n.jsx)(i.Caption1Strong,{className:l.eventTitle,children:e.title})},e.id))},r)})]})},[o,h,l.fullDayCell,l.fullDayEvent,l.fullDayLabel,l.eventTitle,p,f,r,c.allDay]),y=t.useCallback(()=>{let e=h(r,o.toISOString());return Array.from({length:1},(r,i)=>{let s=(0,a.format)((0,a.addDays)(o,i),`yyyy-MM-dd`),c=e.find(e=>e.date===s);return(0,n.jsx)(t.Fragment,{children:c?.timeSlots.map((e,t)=>{let r=e.events.length;return(0,n.jsx)(`div`,{className:l.dayCell,style:{gridRow:t+3},children:e.events.map((e,i)=>{let{spanSlots:a,startSlot:o}=d(new Date(e.start),new Date(e.end));return t===o?(0,n.jsx)(Jt,{event:e,eventCount:r,spanSlots:a,rowHeight:Qt,eventIndex:i,view:`day`},e.id):null})},t)})},i)})},[o,d,h,l.dayCell,r]);return(0,n.jsx)(`div`,{className:l.container,style:{height:s},children:(0,n.jsxs)(`div`,{ref:u,className:l.dayGrid,children:[(0,n.jsx)(`div`,{className:l.timeColumn,children:g()}),_(),v(),y()]})})},W=function(e){return e.Day=`day`,e.Week=`week`,e.Month=`month`,e}({}),en={month:`Month`,week:`Week`,day:`Day`},tn=e=>{let{onSelected:r,value:a,strings:o=en}=e,[s,c]=t.useState(a??W.Month),[l,u]=t.useState({view:[a??W.Month]}),f=t.useMemo(()=>(0,d.bundleIcon)(d.CalendarDayFilled,d.CalendarDayRegular),[]),p=t.useMemo(()=>(0,d.bundleIcon)(d.CalendarMonthFilled,d.CalendarMonthRegular),[]),m=t.useMemo(()=>(0,d.bundleIcon)(d.CalendarWorkWeekFilled,d.CalendarWorkWeekRegular),[]);t.useEffect(()=>{a!==void 0&&(c(a),u({view:[a]}))},[a]);let[h,g]=t.useState(!1),_=t.useCallback((e,t)=>{g(t.open)},[]),v=t.useCallback(()=>{switch(s){case W.Month:return(0,n.jsx)(p,{});case W.Week:return(0,n.jsx)(m,{});case W.Day:return(0,n.jsx)(f,{});default:return(0,n.jsx)(p,{})}},[s]),y=t.useCallback(e=>{switch(e){case W.Month:return o.month;case W.Week:return o.week;case W.Day:return o.day;default:return o.month}},[o]),b=t.useCallback((e,{name:t,checkedItems:n})=>{if(t===`view`){let e=n[0];c(e),u({view:n}),r(e)}},[r]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(i.Menu,{open:h,onOpenChange:_,children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{shape:`circular`,icon:v(),style:{minWidth:`150px`},children:y(s)})}),(0,n.jsx)(i.MenuPopover,{children:(0,n.jsxs)(i.MenuList,{onCheckedValueChange:b,checkedValues:l,children:[(0,n.jsx)(i.MenuItemRadio,{icon:(0,n.jsx)(f,{}),name:`view`,value:W.Day,children:o.day}),(0,n.jsx)(i.MenuItemRadio,{icon:(0,n.jsx)(m,{}),name:`view`,value:W.Week,children:o.week}),(0,n.jsx)(i.MenuItemRadio,{icon:(0,n.jsx)(p,{}),name:`view`,value:W.Month,children:o.month})]})})]})})},nn=t.memo(e=>{let{onSelected:a,value:o}=e,[s,c]=t.useState(o??new Date),[l,u]=t.useState(()=>(0,r.format)(o??new Date,`dd MMM, yyyy`)),[f,p]=t.useState(!1),m=t.useCallback((e,t)=>{p(t.open)},[]),g=t.useMemo(()=>(0,d.bundleIcon)(d.CalendarMonthFilled,d.CalendarMonthRegular),[]),_=t.useCallback(e=>{if(e){let t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=(0,r.utcToZonedTime)(e,t);c(n),u((0,r.format)(n,`dd MMM, yyyy`)),a(n),p(!1)}},[a]);return(0,n.jsxs)(i.Menu,{open:f,onOpenChange:m,children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{shape:`circular`,icon:(0,n.jsx)(g,{}),style:{minWidth:`200px`},"aria-label":`Select date: ${l}`,children:l})}),(0,n.jsx)(i.MenuPopover,{style:{maxWidth:`fit-content`},children:(0,n.jsx)(i.MenuList,{children:(0,n.jsx)(h.Calendar,{highlightSelectedMonth:!0,showGoToToday:!0,onSelectDate:_,value:s})})})]})}),rn=()=>({root:(0,l.css)({outline:`none`})}),an={months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],goToToday:`Go to today`},on=e=>{let{onDateChange:r,defaultSelectedDate:i,onDismiss:a,strings:o=an}=e,s=rn(),[c,l]=t.useState(i??new Date),u=t.useCallback((e,t)=>{l(e),r(e),a()},[r,a]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(h.Calendar,{className:s.root,dateRangeType:h.DateRangeType.Month,highlightSelectedMonth:!0,isDayPickerVisible:!1,onSelectDate:u,value:c,onDismiss:a,showGoToToday:!1,allFocusable:!1,strings:o})})},sn=e=>{let{onSelected:r,value:o}=e,s=(0,d.bundleIcon)(d.CalendarMonthFilled,d.CalendarMonthRegular),[c,l]=t.useState(o??new Date);t.useEffect(()=>{r(o??new Date),l(o??new Date)},[o]);let[u,f]=t.useState(!1),p=(e,t)=>{f(t.open)},m=t.useCallback(e=>{r(e),l(e)},[]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(i.Menu,{open:u,onOpenChange:p,children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{shape:`circular`,icon:(0,n.jsx)(s,{}),style:{minWidth:`200px`},"aria-label":`Select month: ${(0,a.format)(c,`MMMM yyyy`)}`,children:(0,a.format)(c,`MMMM yyyy`)})}),(0,n.jsx)(i.MenuPopover,{children:(0,n.jsx)(i.MenuList,{children:(0,n.jsx)(on,{onDateChange:m,defaultSelectedDate:c,onDismiss:()=>{f(!1)}})})})]})})},cn={selectWeekPlaceholder:`Select a week`},ln=e=>{let t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=(0,r.format)(e.start,`MMM`,{timeZone:t}),i=(0,r.format)(e.end,`MMM`,{timeZone:t});return(0,r.format)(e.start,`yyyy`,{timeZone:t})===(0,r.format)(e.end,`yyyy`,{timeZone:t})?n===i?`${(0,r.format)(e.start,`dd`,{timeZone:t})} - ${(0,r.format)(e.end,`dd MMM yyyy`,{timeZone:t})}`:`${(0,r.format)(e.start,`dd MMM`,{timeZone:t})} - ${(0,r.format)(e.end,`dd MMM yyyy`,{timeZone:t})}`:`${(0,r.format)(e.start,`dd MMM yyyy`,{timeZone:t})} - ${(0,r.format)(e.end,`dd MMM yyyy`,{timeZone:t})}`},un=e=>{let t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=(0,r.utcToZonedTime)(e,t),i=new Date(n);i.setDate(n.getDate()-n.getDay());let a=new Date(i);return a.setDate(i.getDate()+6),{start:(0,r.utcToZonedTime)(i,t),end:(0,r.utcToZonedTime)(a,t)}},dn=t.memo(e=>{let{onSelected:r,value:a,strings:o=cn}=e,s=h.DateRangeType.Week,[c,l]=t.useState(a??new Date),[u,f]=t.useState(()=>{let e=a??new Date;return e?ln(un(e)):o.selectWeekPlaceholder}),[p,m]=t.useState(!1),g=t.useCallback((e,t)=>{m(t.open)},[]),_=t.useMemo(()=>(0,d.bundleIcon)(d.CalendarMonthFilled,d.CalendarMonthRegular),[]),v=t.useCallback(e=>{if(e){l(e);let t=un(e);f(ln(t)),r({startDate:t.start,endDate:t.end}),m(!1)}},[r]),y=t.useMemo(()=>0,[]);return(0,n.jsxs)(i.Menu,{open:p,onOpenChange:g,children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{shape:`circular`,icon:(0,n.jsx)(_,{}),style:{minWidth:`200px`},"aria-label":`Select week: ${u}`,children:u})}),(0,n.jsx)(i.MenuPopover,{style:{maxWidth:`fit-content`},children:(0,n.jsx)(i.MenuList,{children:(0,n.jsx)(h.Calendar,{dateRangeType:s,highlightSelectedMonth:!0,showGoToToday:!0,onSelectDate:v,value:c,firstDayOfWeek:y})})})]})}),fn={today:`Today`,previous:`Previous`,next:`Next`},pn=t.memo(({selectedView:e,onSelectedView:r,currentDate:a,setCurrentDate:o,onWeekChange:s,onMonthChange:c,onDayChange:l,strings:u=fn})=>{let f=t.useMemo(()=>(0,d.bundleIcon)(d.ArrowDownFilled,d.ArrowDownRegular),[]),p=t.useMemo(()=>(0,d.bundleIcon)(d.ArrowUpFilled,d.ArrowUpRegular),[]),m=t.useCallback(e=>{s(e.startDate),o(e.startDate)},[s,o]),h=t.useCallback(e=>{c(e),o(e)},[c,o]),g=t.useCallback(e=>{l(e),o(e)},[l,o]),_=t.useCallback(()=>{switch(e){case W.Month:return(0,n.jsx)(sn,{onSelected:h,value:a});case W.Week:return(0,n.jsx)(dn,{onSelected:m,value:a});case W.Day:return(0,n.jsx)(nn,{onSelected:g,value:a});default:return(0,n.jsx)(sn,{onSelected:h,value:a})}},[e,h,m,g,a]),v=t.useCallback(()=>(0,n.jsx)(i.Tooltip,{content:u.today,relationship:`label`,children:(0,n.jsx)(i.Button,{shape:`circular`,icon:(0,n.jsx)(d.CalendarTodayRegular,{}),size:`medium`,onClick:()=>l(new Date),children:u.today})}),[l,u.today]),y=t.useCallback(t=>{let n=new Date(a);switch(e){case W.Month:n.setMonth(n.getMonth()+t),c(n);break;case W.Week:n.setDate(n.getDate()+t*7),s(n);break;case W.Day:n.setDate(n.getDate()+t),l(n);break;default:break}o(n)},[a,e,c,s,l,o]);return(0,n.jsxs)(B,{width:`calc(100% - 40px)`,height:`fit-content`,horizontal:!0,horizontalAlign:`space-between`,verticalAlign:`center`,paddingLeft:`20px`,paddingRight:`20px`,paddingBottom:`10px`,paddingTop:`10px`,columnGap:10,styles:{overflow:`hidden`},children:[(0,n.jsxs)(B,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,columnGap:10,children:[(0,n.jsx)(v,{}),(0,n.jsx)(_,{}),(0,n.jsx)(i.Tooltip,{content:u.previous,relationship:`label`,children:(0,n.jsx)(i.Button,{size:`medium`,icon:(0,n.jsx)(p,{fontSize:14}),onClick:()=>y(-1)})}),(0,n.jsx)(i.Tooltip,{content:u.next,relationship:`label`,children:(0,n.jsx)(i.Button,{size:`medium`,icon:(0,n.jsx)(f,{fontSize:14}),onClick:()=>y(1)})})]}),(0,n.jsx)(B,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,columnGap:10,children:(0,n.jsx)(tn,{onSelected:r,value:e})})]})}),mn={allDay:`All Day`},hn=e=>{let{events:r,currentDay:o,height:s,strings:l=mn}=e,{styles:u}=Gt(),[d]=(0,t.useState)(o),[f,p]=(0,t.useState)(32),m=(0,t.useRef)(null),{getSpanSlots:h,getEventColors:g,getCalendarColors:_,formatDate:v}=It(),y=(0,a.startOfWeek)(d,{weekStartsOn:0}),b=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:x}=Yt(b);(0,t.useEffect)(()=>{let e=new c.ResizeObserver(()=>{if(m.current){let e=m.current.querySelector(`.dayCell`);e&&p(e.offsetHeight)}});return m.current&&e.observe(m.current),()=>{e.disconnect()}},[]);let S=t.useCallback(()=>Array.from({length:24},(e,r)=>(0,n.jsxs)(t.Fragment,{children:[(0,n.jsx)(`div`,{className:u.timeCell,children:(0,n.jsxs)(i.Body1Strong,{children:[r,`:00`]})}),(0,n.jsx)(`div`,{className:u.timeCell})]},r)),[u.timeCell]),C=t.useCallback(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:u.blankHeader}),Array.from({length:7},(e,t)=>{let r=(0,a.addDays)(y,t),o=(0,a.isToday)(r)?u.todayHeaderCell:``;return(0,n.jsxs)(`div`,{className:(0,i.mergeClasses)(u.dayHeaderCell,o),children:[(0,n.jsx)(i.Text,{weight:`regular`,size:600,style:{paddingRight:10},children:v(r.toISOString(),`dd`)}),(0,n.jsx)(i.Body1,{children:v(r.toISOString(),`EEE`)})]},t)})]}),[y,u,v]),w=t.useCallback(()=>{let e=x(r,y.toISOString());return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:u.fullDayLabel,children:(0,n.jsx)(i.Body1,{children:l.allDay})}),Array.from({length:7},(t,r)=>{let o=v((0,a.addDays)(y,r).toISOString(),`yyyy-MM-dd`),s=e.find(e=>e.date===o)?.fullDayEvents||[];return(0,n.jsx)(`div`,{className:u.fullDayCell,children:s.map(e=>(0,n.jsx)(`div`,{className:u.fullDayEvent,style:{gridColumn:`${r+2}`,backgroundColor:e.color?_(e.color).backgroundColor:g(e.category).backgroundColor},children:(0,n.jsx)(i.Caption1Strong,{className:u.eventTitle,children:e.title})},e.id))},r)})]})},[y,u,x,_,g,r,v,l.allDay]),T=t.useCallback(()=>{let e=x(r,y.toISOString());return Array.from({length:7},(t,r)=>{let i=(0,a.format)((0,a.addDays)(y,r),`yyyy-MM-dd`);return(0,n.jsx)(n.Fragment,{children:e.find(e=>e.date===i)?.timeSlots.map((e,t)=>{let r=e.events.length;return(0,n.jsx)(`div`,{className:u.dayCell,style:{gridRow:t+3},children:e.events.map((e,i)=>{let{spanSlots:a,startSlot:o}=h(new Date(e.start),new Date(e.end));return t===o?(0,n.jsx)(Jt,{event:e,eventCount:r,spanSlots:a,rowHeight:f,eventIndex:i,view:`week`},e.id):null})},t)})})})},[y,u,x,h,f,r]);return(0,n.jsx)(`div`,{className:u.container,style:{height:s},children:(0,n.jsxs)(`div`,{ref:m,className:u.weekGrid,children:[(0,n.jsx)(`div`,{className:u.timeColumn,children:S()}),C(),w(),T()]})})},gn={daysOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},_n=({currentDate:e,rowHeight:t,getCalendarDays:r,getEventsForDay:a,styles:o,onDaySlotClick:s,height:c,calendarRef:l,strings:u})=>{let d=u?.daysOfWeek||gn.daysOfWeek;return(0,n.jsx)(B,{height:c,width:`100%`,verticalAlign:`start`,horizontalAlign:`start`,children:(0,n.jsxs)(`div`,{className:o.calendarWrapper,ref:l,role:`grid`,"aria-label":`Calendar`,children:[d.map((e,t)=>{let r=t===0||t===6;return(0,n.jsx)(i.Body1,{className:o.dayHeader,style:{color:r?i.tokens.colorPaletteRedForeground1:void 0},role:`columnheader`,children:e},e)}),r(e).map((e,r)=>{let{day:i,currentMonth:o}=e,c=o?a(e):[];return(0,n.jsx)(Wt,{day:i,date:e.date,currentMonth:e.currentMonth,events:c,columnHeight:t||0,onDayClick:s},r)})]})})},vn=t.memo(({events:e,currentDay:t,height:r,strings:i})=>(0,n.jsx)(hn,{events:e,currentDay:t,height:r,strings:i})),yn=t.memo(({events:e,currentDay:t,height:r,strings:i})=>(0,n.jsx)($t,{currentDay:t,events:e,height:r,strings:i})),bn=({events:e,height:r=800,theme:o,onDayChange:s,onMonthChange:l,onWeekChange:u,onViewChange:d,onDaySlotClick:f,defaultView:p,strings:m})=>{let{styles:h}=Ht(),g=(0,t.useRef)(null),[_,v]=(0,t.useState)(null),y=(0,t.useRef)(0),[b,x]=(0,t.useState)(new Date),[S,C]=(0,t.useState)(p??W.Month),{getMonthCalendar:w}=Yt(Intl.DateTimeFormat().resolvedOptions().timeZone),T=t.useCallback(e=>{let t=e.getMonth(),n=(0,a.startOfWeek)((0,a.startOfMonth)(e));return Array.from({length:42},(e,r)=>{let i=(0,a.addDays)(n,r);return{day:i.getDate(),currentMonth:i.getMonth()===t,date:i}})},[42]),E=t.useCallback(e=>{l&&l(e),x(e)},[l]),D=t.useCallback(e=>{s&&s(e),x(e)},[s]),O=t.useCallback(e=>{u&&u(e),x(e)},[u]),k=t.useCallback(e=>{d&&d(e),C(e)},[d]),A=t.useCallback(t=>{let{date:n}=t;return w(e,b.getFullYear(),b.getMonth())[(0,a.format)(n,`yyyy-MM-dd`)]?.flatMap(e=>e)||[]},[b,e]),j=t.useCallback(()=>{g.current&&requestAnimationFrame(()=>{if(g.current){let e=g.current.querySelector(`.${h.calendarWrapper} > div:nth-child(8)`);e&&(v(e.offsetHeight),y.current=e.offsetHeight)}})},[h.calendarWrapper]);(0,t.useEffect)(()=>{let e=new c.ResizeObserver(j);return g.current&&e.observe(g.current),j(),window.addEventListener(`resize`,j),()=>{e.disconnect(),window.removeEventListener(`resize`,j)}},[j,S]),(0,t.useEffect)(()=>{C(p||W.Month)},[p]);let M=t.useCallback(()=>{switch(S){case W.Month:return(0,n.jsx)(_n,{events:e,currentDate:b,rowHeight:_,getCalendarDays:T,getEventsForDay:A,styles:h,onDaySlotClick:f,height:r,calendarRef:g,strings:m?.calendarControl});case W.Week:return(0,n.jsx)(vn,{events:e,currentDay:b,height:r,strings:m?.weekView});case W.Day:return(0,n.jsx)(yn,{events:e,currentDay:b,height:r,strings:m?.dayView});default:return(0,n.jsx)(_n,{events:e,currentDate:b,rowHeight:_,getCalendarDays:T,getEventsForDay:A,styles:h,onDaySlotClick:f,height:r,calendarRef:g,strings:m?.calendarControl})}},[S,e,b,_,T,A,h,f,r]),N=(0,n.jsxs)(B,{height:`100%`,verticalAlign:`start`,children:[(0,n.jsx)(pn,{selectedView:S,onSelectedView:k,currentDate:b,setCurrentDate:x,onWeekChange:O,onMonthChange:E,onDayChange:D,strings:m?.toolbar}),(0,n.jsx)(M,{})]});return(0,n.jsx)(i.IdPrefixProvider,{value:`calendarControl-`,children:o?(0,n.jsx)(i.FluentProvider,{theme:o,applyStylesToPortals:!0,style:{width:`100%`},children:N}):(0,n.jsx)(`div`,{style:{width:`100%`},children:N})})},xn=()=>({styles:{root:(0,l.css)({marginLeft:i.tokens.spacingHorizontalM,marginRight:i.tokens.spacingHorizontalM,marginBottom:i.tokens.spacingVerticalM,marginTop:i.tokens.spacingVerticalM,containerType:`inline-size`,backgroundColor:i.tokens.colorNeutralBackground1,borderRadius:8,border:`1px solid ${i.tokens.colorNeutralStroke2}`}),header:(0,l.css)({borderBottom:`1px solid ${i.tokens.colorNeutralStroke2}`}),headerBackButton:(0,l.css)({fontSize:`clamp(6px, 3.5cqw, 22px)`}),headerLabel:(0,l.css)({textTransform:`capitalize`}),calendar:(0,l.css)({borderBottom:`1px solid ${i.tokens.colorNeutralStroke2}`,backgroundColor:i.tokens.colorNeutralBackground2}),weekdaysCorner:(0,l.css)({flex:`0 0 32px`}),weekday:(0,l.css)({flex:`1 1 calc(100% / 7)`,maxWidth:`calc(100% / 7)`,textAlign:`center`,textTransform:`capitalize`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`default`,userSelect:`none`,paddingBlock:`4px`,boxSizing:`border-box`}),weekNumber:(0,l.css)({flex:`0 0 28px`,marginInlineEnd:`4px`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`default`,userSelect:`none`}),day:(0,l.css)({flex:`1 1 calc(100% / 7)`,maxWidth:`calc(100% / 7)`,height:`48px`,minWidth:`0 !important`,padding:`4px !important`,fontWeight:500,fontSize:`clamp(6px, 3.5cqw, 22px)`,color:`${i.tokens.colorNeutralForeground1} !important`,cursor:`pointer`,userSelect:`none`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,position:`relative`,zIndex:0,borderRadius:0,"::before":{width:`32px`,height:`32px`,borderRadius:`100%`,content:`""`,position:`absolute`,top:`7px`,left:`calc(50% - 16px)`,zIndex:-1,pointerEvents:`none`},":focus-visible":{zIndex:1,outline:`2px solid ${i.tokens.colorBrandStroke1}`,outlineOffset:`-2px`,borderRadius:i.tokens.borderRadiusMedium},":hover::before":{backgroundColor:i.tokens.colorNeutralBackground1Hover}}),dayHidden:(0,l.css)({visibility:`hidden`,pointerEvents:`none`}),dayWeekend:(0,l.css)({color:`${i.tokens.colorPaletteRedForeground1} !important`}),dayOutside:(0,l.css)({color:`${i.tokens.colorNeutralForeground3} !important`}),dayToday:(0,l.css)({"::before":{backgroundColor:i.tokens.colorNeutralBackground3}}),daySelected:(0,l.css)({color:`${i.tokens.colorNeutralForegroundOnBrand} !important`,"::before":{backgroundColor:i.tokens.colorBrandBackground},":hover::before":{backgroundColor:i.tokens.colorBrandBackgroundHover}}),dayIndicators:(0,l.css)({position:`absolute`,bottom:`2px`,insetInline:0,paddingInlineStart:`2px`}),dayIndicator:(0,l.css)({width:`5px`,height:`5px`,borderRadius:`100%`,marginInlineStart:`-1px`}),eventsList:(0,l.css)({flex:1,minHeight:0,overflowY:`auto`,scrollbarWidth:`thin`,scrollbarColor:`${i.tokens.colorBrandBackground} ${i.tokens.colorNeutralBackground3}`,"&::-webkit-scrollbar":{width:`3px`,height:`3px`},"&::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground3,borderRadius:i.tokens.borderRadiusMedium},"&::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandBackground,borderRadius:i.tokens.borderRadiusMedium},"&::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorBrandBackgroundHover}}),eventsHeader:(0,l.css)({textTransform:`capitalize`}),event:(0,l.css)({cursor:`pointer`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke2}`,padding:`0 !important`,borderRadius:0,boxShadow:`none`,":last-child":{borderBottom:`none`},":hover":{backgroundColor:i.tokens.colorNeutralBackground1Hover},":focus-visible":{outline:`2px solid ${i.tokens.colorBrandStroke1}`,outlineOffset:`-2px`,borderRadius:i.tokens.borderRadiusMedium}}),eventColor:(0,l.css)({width:`4px`,borderRadius:`2px`,flexShrink:0,alignSelf:`stretch`}),eventTimeColor:i.tokens.colorNeutralForeground3}}),Sn=e=>(0,a.getISOWeek)(e[0]),Cn=t.memo(e=>{let{weeks:r,date:o,selectedDate:s,today:c,orderedShortDays:l,groupedEvents:u,weekendDays:d,firstDayOfWeek:f,highlightToday:p,withOutsideDays:m,withWeekNumbers:h,onDayClick:g,getEventColor:_,locale:v}=e,{styles:y}=xn(),b=t.useRef([]),x=t.useRef(null);x.current=null;let S=t.useCallback((e,t,n)=>{let r=e,i=t;switch(n.key){case`ArrowRight`:i+=1,i>=7&&(i=0,r+=1);break;case`ArrowLeft`:--i,i<0&&(i=6,--r);break;case`ArrowDown`:r+=1;break;case`ArrowUp`:--r;break;default:return}n.preventDefault();let a=b.current[r]?.[i];a&&a instanceof HTMLElement&&a.focus()},[]),C=t.useMemo(()=>(0,n.jsxs)(H,{direction:`horizontal`,marginBottom:i.tokens.spacingVerticalXS,children:[h&&(0,n.jsx)(`div`,{className:y.weekdaysCorner}),l.map((e,t)=>{let r=(f+t)%7,a=d.includes(r);return(0,n.jsx)(Ot,{as:`span`,fontSize:i.tokens.fontSizeBase200,fontWeight:`semibold`,color:a?i.tokens.colorPaletteRedForeground1:i.tokens.colorNeutralForeground3,className:y.weekday,style:{textAlign:`center`,width:`100%`},children:e},t)})]}),[l,h,y.weekdaysCorner,y.weekday]),w=t.useMemo(()=>r.map((e,t)=>{let r=e.map((e,r)=>{let l=!(0,a.isSameMonth)(e,o),f=d.includes((0,a.getDay)(e)),h=(0,a.isSameDay)(e,c)&&p,C=s?(0,a.isSameDay)(e,s):!1,w=u[(0,a.format)(e,`yyyy-MM-dd`)]||[],T=m||!l;T&&x.current===null&&(x.current={weekIndex:t,dayIndex:r});let E=x.current?.weekIndex===t&&x.current?.dayIndex===r,D=w.slice(0,3).map(e=>(0,n.jsx)(`div`,{className:y.dayIndicator,style:{backgroundColor:_(e)}},e.id));return(0,n.jsxs)(i.Button,{appearance:`transparent`,className:(0,i.mergeClasses)(y.day,!T&&y.dayHidden,l&&T&&!C&&!f&&y.dayOutside,f&&T&&!C&&y.dayWeekend,h&&!C&&y.dayToday,C&&y.daySelected),"aria-label":(0,a.format)(e,`MMMM d, yyyy`,{locale:v}),"aria-selected":C||void 0,tabIndex:T&&E?0:-1,onClick:T?()=>g(e):void 0,onKeyDown:T?e=>S(t,r,e):void 0,ref:e=>{b.current[t]||(b.current[t]=[]),b.current[t][r]=e},children:[T?e.getDate():null,T&&(0,n.jsx)(H,{direction:`horizontal`,justifyContent:`center`,className:y.dayIndicators,children:D})]},e.toISOString())}),l=Sn(e);return(0,n.jsxs)(H,{direction:`horizontal`,children:[h&&(0,n.jsx)(Ot,{fontSize:`xs`,color:i.tokens.colorNeutralForeground3,className:y.weekNumber,children:l}),r]},t)}),[r,o,s,c,d,p,m,h,u,_,g,S,y,v]);return(0,n.jsxs)(H,{direction:`vertical`,padding:i.tokens.spacingVerticalS,className:y.calendar,children:[C,w]})}),wn=t.memo(e=>{let{date:r,renderHeader:o,onYearClick:s,locale:c}=e,{styles:l}=xn(),u=(0,a.format)(r,`MMMM yyyy`,{locale:c}),f=t.useMemo(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Button,{appearance:`subtle`,className:l.headerBackButton,onClick:s,icon:(0,n.jsx)(d.ChevronRight20Regular,{style:{transform:`rotate(90deg)`}}),children:(0,a.format)(r,`yyyy`)}),(0,n.jsx)(Ot,{fontWeight:`bold`,className:l.headerLabel,children:u})]}),[r,s,l]),p=t.useMemo(()=>typeof o==`function`?o({date:r,defaultHeader:f}):f,[o,r,f]);return(0,n.jsx)(H,{direction:`horizontal`,alignItems:`center`,justifyContent:`space-between`,padding:i.tokens.spacingVerticalS,className:l.header,children:p})}),Tn=t.memo(({currentDate:e,onDateChange:r,todayLabel:a=`Today`,previousLabel:o=`Previous`,nextLabel:s=`Next`})=>{let c=t.useMemo(()=>(0,d.bundleIcon)(d.ArrowDownFilled,d.ArrowDownRegular),[]),l=t.useMemo(()=>(0,d.bundleIcon)(d.ArrowUpFilled,d.ArrowUpRegular),[]),u=t.useCallback(()=>{r(new Date)},[r]),f=t.useCallback(e=>{r(e)},[r]),p=t.useCallback(t=>{let n=new Date(e);n.setMonth(n.getMonth()+t),r(n)},[e,r]);return(0,n.jsxs)(H,{direction:`horizontal`,justifyContent:`flex-start`,alignItems:`center`,gap:`s`,padding:`10px 20px`,style:{overflow:`hidden`},children:[(0,n.jsx)(i.Tooltip,{content:a,relationship:`label`,children:(0,n.jsx)(i.Button,{shape:`circular`,icon:(0,n.jsx)(d.CalendarTodayRegular,{}),size:`medium`,onClick:u,"aria-label":a,children:a})}),(0,n.jsx)(sn,{onSelected:f,value:e}),(0,n.jsx)(i.Tooltip,{content:o,relationship:`label`,children:(0,n.jsx)(i.Button,{size:`medium`,icon:(0,n.jsx)(l,{fontSize:14}),onClick:()=>p(-1)})}),(0,n.jsx)(i.Tooltip,{content:s,relationship:`label`,children:(0,n.jsx)(i.Button,{size:`medium`,icon:(0,n.jsx)(c,{fontSize:14}),onClick:()=>p(1)})})]})}),En=e=>{let{events:r,header:o,allDayLabel:s,noEventsLabel:c,onEventClick:l,renderEvent:u,getEventColor:d,locale:f}=e,{styles:p}=xn(),m=t.useCallback(e=>{let t=(0,a.format)(new Date(e.start),`p`,{locale:f}),r=(0,a.format)(new Date(e.end),`p`,{locale:f}),o=e.isFullDay||t===`00:00`&&r===`00:00`;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ze,{padding:`0px`,appearance:`subtle`,onClick:t=>l?.(e,t),cardBody:(0,n.jsxs)(H,{direction:`horizontal`,gap:`s`,paddingTop:i.tokens.spacingVerticalXS,paddingBottom:i.tokens.spacingVerticalXS,children:[(0,n.jsx)(`div`,{className:p.eventColor,style:{backgroundColor:d(e)}}),(0,n.jsxs)(H,{direction:`vertical`,children:[(0,n.jsx)(Ot,{as:`span`,fontWeight:`semibold`,fontSize:`s`,children:e.title}),(0,n.jsx)(Ot,{as:`span`,fontSize:`xs`,color:p.eventTimeColor,children:o?s:`${t} – ${r}`})]})]})},e.id),(0,n.jsx)(i.Divider,{style:{margin:0}})]})},[s,d,l,p]);return(0,n.jsxs)(H,{direction:`vertical`,padding:i.tokens.spacingVerticalS,className:p.eventsList,children:[(0,n.jsx)(Ot,{as:`span`,fontWeight:`bold`,marginBottom:i.tokens.spacingVerticalS,marginLeft:i.tokens.spacingHorizontalS,className:p.eventsHeader,children:o}),(0,n.jsx)(i.Divider,{style:{paddingLeft:i.tokens.spacingHorizontalS,paddingRight:i.tokens.spacingHorizontalS,paddingTop:i.tokens.spacingVerticalS}}),(0,n.jsx)(H,{direction:`vertical`,gap:`s`,style:{backgroundColor:`transparent`},padding:`s`,children:r.length>0?r.map(e=>u?u(e,m(e)):m(e)):(0,n.jsx)(Ot,{block:!0,color:i.tokens.colorNeutralForeground3,paddingTop:i.tokens.spacingVerticalXXL,paddingBottom:i.tokens.spacingVerticalXXL,style:{textAlign:`center`},children:c})})]})},Dn=e=>{let t=(0,a.startOfDay)(new Date(e.start)),n=(0,a.startOfDay)(new Date(e.end));return t.getTime()!==n.getTime()},On=(e,t)=>{if(Dn(e)){let n=(0,a.startOfDay)(new Date(e.start)),r=(0,a.startOfDay)(new Date(e.end)),i=n;for(;(0,a.isBefore)(i,r)||(0,a.isEqual)(i,r);){let n=(0,a.format)(i,`yyyy-MM-dd`);t[n]||(t[n]=[]),t[n].push(e),i=(0,a.addDays)(i,1)}return}let n=(0,a.format)(new Date(e.start),`yyyy-MM-dd`);t[n]||(t[n]=[]),t[n].push(e)},kn=(e,t)=>{let n={};if(!t)return n;let r=new Set;for(let i of t)if((0,a.isSameMonth)(new Date(i.start),e)){if(r.has(i.id)){console.warn(`[CompactCalendar] Duplicate event id found: ${i.id}`);continue}r.add(i.id),On(i,n)}return n},An=(e,n)=>(0,t.useMemo)(()=>kn(e,n),[e,n]),jn={en:o.enUS,"en-US":o.enUS,"en-us":o.enUS,ar:o.ar,"ar-SA":o.arSA,"ar-sa":o.arSA,az:o.az,"az-AZ":o.az,bg:o.bg,"bg-BG":o.bg,bs:o.bs,"bs-BA":o.bs,ca:o.ca,"ca-ES":o.ca,cs:o.cs,"cs-CZ":o.cs,cy:o.cy,da:o.da,"da-DK":o.da,de:o.de,"de-DE":o.de,el:o.el,"el-GR":o.el,es:o.es,"es-ES":o.es,et:o.et,"et-EE":o.et,eu:o.eu,fi:o.fi,"fi-FI":o.fi,fr:o.fr,"fr-FR":o.fr,gl:o.gl,he:o.he,"he-IL":o.he,hi:o.hi,"hi-IN":o.hi,hr:o.hr,"hr-HR":o.hr,hu:o.hu,"hu-HU":o.hu,id:o.id,"id-ID":o.id,it:o.it,"it-IT":o.it,ja:o.ja,"ja-JP":o.ja,kk:o.kk,"kk-KZ":o.kk,ko:o.ko,"ko-KR":o.ko,lt:o.lt,"lt-LT":o.lt,lv:o.lv,"lv-LV":o.lv,mk:o.mk,"mk-MK":o.mk,ms:o.ms,"ms-MY":o.ms,nb:o.nb,"nb-NO":o.nb,nl:o.nl,"nl-NL":o.nl,pl:o.pl,"pl-PL":o.pl,pt:o.pt,"pt-PT":o.pt,"pt-BR":o.ptBR,ro:o.ro,"ro-RO":o.ro,ru:o.ru,"ru-RU":o.ru,sk:o.sk,"sk-SK":o.sk,sl:o.sl,"sl-SI":o.sl,sr:o.sr,"sr-RS":o.sr,sv:o.sv,"sv-SE":o.sv,th:o.th,"th-TH":o.th,tr:o.tr,"tr-TR":o.tr,uk:o.uk,"uk-UA":o.uk,vi:o.vi,"vi-VN":o.vi,zh:o.zhCN,"zh-CN":o.zhCN};function Mn(e){return e?typeof e==`object`&&e?e:jn[e]||(jn[e.split(`-`)[0].toLowerCase()]??o.enUS):o.enUS}var Nn=[0,6],Pn=(e,t,n)=>{let r=(0,a.startOfMonth)(e),i=(0,a.getDay)(r),o=(0,a.getDaysInMonth)(e),s=(i-t+7)%7,c=(0,a.subDays)(r,s),l=n?42:Math.ceil((s+o)/7)*7,u=[],d=c;for(let e=0;e<l;e++){let t=Math.floor(e/7);u[t]||(u[t]=[]),u[t].push(d),d=(0,a.addDays)(d,1)}return u},Fn=r=>{let{date:o,selectedDate:s,defaultSelectedDate:c,onSelectedDateChange:l,withWeekNumbers:u=!1,firstDayOfWeek:d=1,weekendDays:f=Nn,consistentWeeks:p=!0,highlightToday:m=!0,withOutsideDays:h=!1,showToolbar:g=!1,events:_,onDayClick:v,onEventClick:y,onYearClick:b,renderHeader:x,renderEvent:S,eventsHeaderFormat:C=`EEEE, MMMM d`,locale:w,height:T,className:E,strings:D}=r,{styles:O}=xn(),{getCalendarColors:k}=It(),A=e.s(),j=e.m(),M=t.useMemo(()=>Mn(w??j?.locale),[w,j?.locale]),[N,ee]=t.useState(c??new Date),P=s===void 0?N:s,F=t.useCallback(e=>{s===void 0&&ee(e),l?.(e)},[s,l]),I=t.useMemo(()=>new Date,[]),L=An(o,_),R=D?.shortDays??A.shortDays,te=t.useMemo(()=>{let e=[];for(let t=0;t<7;t++)e.push(R[(d+t)%7]);return e},[R,d]),ne=t.useMemo(()=>Pn(o,d,p),[o,d,p]),re=t.useCallback(e=>e.hexColor?e.hexColor:e.color?k(e.color).backgroundColor:k(`royal-blue`).backgroundColor,[k]),ie=t.useCallback(e=>{F(e),v?.(e)},[F,v]),z=P?(0,a.format)(P,`yyyy-MM-dd`):``,ae=z?(L[z]||[]).sort((e,t)=>new Date(e.start).getTime()-new Date(t.start).getTime()):[],oe=P?(0,a.format)(P,C,{locale:M}):``;return(0,n.jsxs)(H,{direction:`vertical`,height:T??`100%`,className:(0,i.mergeClasses)(O.root,E),children:[g?(0,n.jsx)(Tn,{currentDate:o,onDateChange:e=>r.onDateChange?.(e),todayLabel:D?.today??A.today??`Today`,previousLabel:D?.previous??A.previous??`Previous`,nextLabel:D?.next??A.next??`Next`}):(0,n.jsx)(wn,{date:o,renderHeader:x,onYearClick:b,locale:M}),(0,n.jsx)(Cn,{weeks:ne,date:o,selectedDate:P,today:I,orderedShortDays:te,groupedEvents:L,weekendDays:f,firstDayOfWeek:d,highlightToday:m,withOutsideDays:h,withWeekNumbers:u,onDayClick:ie,getEventColor:re,locale:M}),(0,n.jsx)(En,{events:ae,header:oe,allDayLabel:D?.allDay??A.allDay,noEventsLabel:D?.noEvents??A.noEvents,onEventClick:y,renderEvent:S,getEventColor:re,locale:M})]})},In=(0,g.atom)(!1),Ln=(0,g.atom)(-1),Rn=(0,g.atom)(``),zn=(0,g.atom)(``),Bn=(0,g.atom)(new Set),Vn=(0,g.atom)(!0),Hn=(0,g.atom)(void 0);function Un(){return(0,g.createStore)()}var Wn=Un();function Gn(e){return{opened:e.get(In),selected:e.get(Ln),listId:e.get(Rn),query:e.get(zn),registeredActions:e.get(Bn)}}var G={open(e){e.set(In,!0),e.set(Ln,-1)},close(e){e.set(In,!1)},toggle(e){e.get(In)?e.set(In,!1):(e.set(In,!0),e.set(Ln,-1))},setQuery(e,t){t.get(Hn)?.(e),t.set(zn,e),Promise.resolve().then(()=>{G.selectAction(0,t)})},setListId(e,t){t.set(Rn,e)},selectAction(e,t){let n=t.get(Rn),r=n?document.getElementById(n):null,i=r?.querySelector(`[data-spotlight-selected]`),a=r?.querySelectorAll(`[data-spotlight-action]`)??[];if(a.length===0)return t.set(Ln,-1),-1;let o=e<0?a.length-1:e>=a.length?0:e,s=Math.max(0,Math.min(o,a.length-1));return i?.removeAttribute(`data-spotlight-selected`),a[s]?.scrollIntoView({block:`nearest`}),a[s]?.setAttribute(`data-spotlight-selected`,`true`),t.set(Ln,s),s},selectNextAction(e){return G.selectAction(e.get(Ln)+1,e)},selectPreviousAction(e){return G.selectAction(e.get(Ln)-1,e)},triggerSelectedAction(e){let t=e.get(Rn);(t?document.querySelector(`#${t} [data-spotlight-selected]`):null)?.click()},clearState(e,t){t.set(Ln,-1),e.clearQuery&&t.set(zn,``)}},Kn={open:()=>G.open(Wn),close:()=>G.close(Wn),toggle:()=>G.toggle(Wn)},qn=Kn.open,Jn=Kn.close,Yn=Kn.toggle;function Xn(){let e=Un();return[e,{open:()=>G.open(e),close:()=>G.close(e),toggle:()=>G.toggle(e)}]}function Zn(e=Wn){let[n,r]=(0,t.useState)(()=>Gn(e));return(0,t.useEffect)(()=>{let t=()=>r(Gn(e)),n=[e.sub(In,t),e.sub(Ln,t),e.sub(Rn,t),e.sub(zn,t),e.sub(Bn,t)];return t(),()=>n.forEach(e=>e())},[e]),n}function Qn(e){let t=e.toLowerCase().split(`+`).map(e=>e.trim()),n=typeof navigator<`u`&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent);return{key:t[t.length-1],ctrlKey:t.includes(`ctrl`)||!n&&t.includes(`mod`),metaKey:t.includes(`meta`)||n&&t.includes(`mod`),shiftKey:t.includes(`shift`),altKey:t.includes(`alt`)}}function $n(e,n=Wn,r=[`INPUT`,`TEXTAREA`,`SELECT`]){let i=(0,t.useCallback)(t=>{if(!e)return;let i=t.target;if(r.includes(i.tagName)||i.isContentEditable)return;let a=Array.isArray(e)?e:[e];for(let e of a){let r=Qn(e);if(t.key.toLowerCase()===r.key&&t.ctrlKey===r.ctrlKey&&t.metaKey===r.metaKey&&t.shiftKey===r.shiftKey&&t.altKey===r.altKey){t.preventDefault(),G.toggle(n);return}}},[e,n,r]);(0,t.useEffect)(()=>{if(e)return document.addEventListener(`keydown`,i),()=>document.removeEventListener(`keydown`,i)},[e,i])}var er=()=>({backdrop:(0,l.css)({position:`fixed`,inset:0,backgroundColor:`rgba(0, 0, 0, 0.35)`,backdropFilter:`blur(4px)`,zIndex:999999}),surface:(0,l.css)({padding:`0 !important`,overflow:`hidden`,borderRadius:i.tokens.borderRadiusXLarge,boxShadow:i.tokens.shadow64}),search:(0,l.css)({padding:i.tokens.spacingVerticalM,paddingInline:i.tokens.spacingHorizontalL,width:`100%`,boxSizing:`border-box`,"& > div":{width:`100%`}}),actionsList:(0,l.css)({borderTop:`1px solid ${i.tokens.colorNeutralStroke2}`,overflowY:`auto`}),action:(0,l.css)({alignItems:`flex-start`,width:`100%`,padding:`${i.tokens.spacingVerticalS} ${i.tokens.spacingHorizontalL}`,textAlign:`left`,gap:i.tokens.spacingHorizontalM,transition:`background-color 0.1s ease`,"&:hover":{backgroundColor:i.tokens.colorNeutralBackground1Hover},'&[data-spotlight-selected="true"]':{backgroundColor:i.tokens.colorBrandBackground,color:i.tokens.colorNeutralForegroundOnBrand}}),actionBody:(0,l.css)({flex:1,minWidth:0}),actionSectionLeft:(0,l.css)({flexShrink:0,fontSize:`30px`,paddingTop:`2px`,color:i.tokens.colorNeutralForeground3,'[data-spotlight-selected="true"] &':{color:i.tokens.colorNeutralForegroundOnBrand,opacity:.85}}),actionSectionRight:(0,l.css)({flexShrink:0,color:i.tokens.colorNeutralForeground3,'[data-spotlight-selected="true"] &':{color:i.tokens.colorNeutralForegroundOnBrand,opacity:.7}}),actionDescription:(0,l.css)({'[data-spotlight-selected="true"] &':{color:i.tokens.colorNeutralForegroundOnBrand,opacity:.7}}),actionsGroup:(0,l.css)({"&:not(:first-child)":{marginTop:i.tokens.spacingVerticalM}}),actionsGroupLabel:(0,l.css)({textTransform:`uppercase`,paddingInline:i.tokens.spacingHorizontalL,paddingBlock:i.tokens.spacingVerticalXS}),empty:(0,l.css)({padding:i.tokens.spacingVerticalL}),footer:(0,l.css)({borderTop:`1px solid ${i.tokens.colorNeutralStroke2}`}),highlight:(0,l.css)({backgroundColor:i.tokens.colorPaletteYellowBackground2,color:`inherit`,borderRadius:i.tokens.borderRadiusSmall,padding:`0 1px`,'[data-spotlight-selected="true"] &':{backgroundColor:`rgba(255, 255, 255, 0.3)`}})}),tr=({store:e=Wn,query:r,onQueryChange:a,clearQueryOnClose:o=!0,shortcut:s=`mod+K`,tagsToIgnore:c=[`INPUT`,`TEXTAREA`,`SELECT`],disabled:l=!1,onSpotlightOpen:u,onSpotlightClose:d,forceOpened:f=!1,closeOnActionTrigger:p=!0,maxWidth:m=600,yOffset:h=80,maxHeight:_=400,scrollable:v=!0,children:y,className:b})=>{let x=er(),{opened:S}=Zn(e),C=(0,t.useRef)(S);(0,t.useEffect)(()=>{e.set(Vn,p)},[e,p]),(0,t.useEffect)(()=>{e.set(Hn,a)},[e,a]),(0,t.useEffect)(()=>{typeof r==`string`&&e.set(zn,r)},[e,r]),$n(s,e,c),(0,t.useEffect)(()=>{C.current!==S&&(C.current=S,S?u?.():(d?.(),o&&G.setQuery(``,e),G.clearState({clearQuery:o},e)))},[S,u,d,o,e]);let w=(0,t.useCallback)(()=>{G.close(e)},[e]);if(l)return null;let T=S||f,E={position:`fixed`,top:typeof h==`number`?`${h}px`:h,left:`50%`,transform:`translateX(-50%)`,maxWidth:typeof m==`number`?`${m}px`:m,width:`100%`,zIndex:1e6,maxHeight:v?`calc(100vh - ${typeof h==`number`?`${h*2}px`:h})`:void 0,display:`flex`,flexDirection:`column`},D={display:`flex`,flexDirection:`column`,overflow:`hidden`,maxHeight:v?typeof _==`number`?`${_}px`:_:void 0,gap:0,padding:0};return(0,n.jsx)(g.Provider,{store:e,children:T&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:x.backdrop,onClick:w,"aria-hidden":`true`}),(0,n.jsx)(i.Dialog,{open:!0,modalType:`non-modal`,onOpenChange:(t,n)=>{n.open||G.close(e)},children:(0,n.jsx)(i.DialogSurface,{className:`${x.surface}${b?` ${b}`:``}`,style:E,"aria-label":`Spotlight search`,children:(0,n.jsx)(i.DialogBody,{style:D,children:y})})})]})})},nr=()=>({searchBoxStyles:_.css`
|
|
31
|
+
`},[u])}},$e=e=>{let{children:r,className:i,onScroll:a}=e,{gridStyles:o,scrollbarClassName:s}=Qe(e),l=t.useRef(null),[u,d]=t.useState(0),[f,p]=t.useState(0);return t.useEffect(()=>{let e;return l.current&&(e=new c.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;d(e),p(n)}}),e.observe(l.current)),()=>{e&&e.disconnect()}},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{className:[i,s].filter(Boolean).join(` `),style:o(u,f),ref:l,onScroll:t.useCallback(e=>{if(!a)return;let{scrollTop:t,scrollHeight:n,clientHeight:r}=e.currentTarget;(t+r)/n>=.95&&a(e)},[a]),children:r})})},et=e=>{let{maxWith:n}=e,{getBaseStyles:r}=Se();return{rootStyles:t.useCallback((t,i)=>({...r(e,t,i),maxWidth:n}),[r,n,e]),layoutGridStyles:(0,l.css)({display:`grid`,overflow:`hidden`})}},tt={areas:[`header header header`,`sidebar content sidebar`,`footer footer footer`],columns:`1fr 3fr 1fr`,rows:`auto 1fr auto`},nt=e=>{let{className:r,children:a,layoutConfig:o=tt}=e,s=t.useRef(null),[l,u]=t.useState(0),[d,f]=t.useState(0),{rootStyles:p,layoutGridStyles:m}=et({...e,layoutConfig:o}),h=((e,n)=>{let r;return t.useCallback((...t)=>{clearTimeout(r),r=setTimeout(()=>e(...t),n)},[e,n])})((e,t)=>{u(e),f(t)},200);return t.useEffect(()=>{if(!s.current)return;let e=new c.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;h(e,n)}});return e.observe(s.current),()=>e.disconnect()},[h]),(0,n.jsx)(`div`,{id:`-Layout`,className:(0,i.mergeClasses)(r,m),style:{...p(l,d),gridTemplateAreas:o.areas.join(` `),gridTemplateColumns:o.columns,gridTemplateRows:o.rows},ref:s,children:t.Children.map(a,(e,r)=>t.isValidElement(e)?(0,n.jsx)(`div`,{style:{gridArea:e.props?.area??`area-${r}`},children:e},r):e)})},rt=e=>{let{area:t,children:r}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{style:{gridArea:t},children:r})})},it=e=>{let{verticalSpacing:n,horizontalSpacing:r}=e,{getSpacing:i}=Se();return{spaceStyles:t.useCallback(e=>e?r?{width:i(r,e,`horizontal`)}:n?{height:i(n,e,`vertical`)}:{}:{},[i,r,n])}},at=e=>{let r=t.useRef(null),[i,a]=t.useState(0),{spaceStyles:o}=it(e);return t.useEffect(()=>{let e;return r.current&&(e=new c.ResizeObserver(e=>{for(let t of e){let{width:e}=t.contentRect;a(e)}}),e.observe(r.current)),()=>{e&&e.disconnect()}},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{id:`-space`,style:o(i),ref:r})})},ot=e=>{let{horizontal:n,horizontalAlign:r,verticalAlign:i,verticalFill:a,wrap:o,columnGap:s,RowGap:c}=e,{getBaseStyles:l}=Se();return{stackStyles:t.useCallback((t,u)=>{let d=i||`start`,f=n?r:`start`,p=n?{flexFlow:o?`row wrap`:`row nowrap`,height:`100%`}:{height:`100%`,maxHeight:`100%`},m=l(e,t,u);return{columnGap:s,rowGap:c,display:`flex`,flexDirection:n?`row`:`column`,alignItems:d,justifyContent:f,...p,height:a?`100%`:m.height,...m,...e.styles}},[l,n,r,e,i,a,o])}},B=e=>{let{children:r,className:i}=e,{stackStyles:a}=ot(e),o=t.useRef(null),[s,l]=t.useState(0),[u,d]=t.useState(0);return t.useEffect(()=>{let e;return o.current&&(e=new c.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;l(e),d(n)}}),e.observe(o.current)),()=>{e&&e.disconnect()}},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{className:i,style:a(s,u),ref:o,children:r})})},st=e=>{let{children:r,grow:i,disableShrink:a,shrink:o,order:s,alignSelf:l,verticalFill:u}=e,{getBaseStyles:d}=Se(),f=t.useRef(null),[p,m]=t.useState(0),[h,g]=t.useState(0),_=d(e,p,h);return t.useEffect(()=>{let e;return f.current&&(e=new c.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;m(e),g(n)}}),e.observe(f.current)),()=>{e&&e.disconnect()}},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{ref:f,style:{..._,alignSelf:l,order:s,height:u?`100%`:`auto`,flexGrow:i?typeof i==`boolean`?1:i:void 0,flexShrink:a||!i&&!o?0:1,minWidth:0,minHeight:0,width:`auto`},children:r})})},ct=({ratio:e,children:t,maxWidth:r,maxHeight:i,style:a={},...o})=>{let s={position:`relative`,width:`100%`,paddingTop:`${100/e}%`,maxWidth:r||`none`,maxHeight:i||`none`,...a},c={position:`absolute`,top:0,left:0,width:`100%`,height:`100%`};return(0,n.jsx)(`div`,{style:s,...o,children:(0,n.jsx)(`div`,{style:c,children:t})})},lt=e=>{let{styles:n}=e,{getBaseStyles:r}=Se();return{aspectRatioStyles:t.useCallback((t,i)=>({...r(e,t,i),...n}),[r,e,n])}},ut=e=>{let{styles:n}=e,{getBaseStyles:r}=Se();return{centerStyles:t.useCallback((t,i)=>({...r(e,t,i),...n,overflow:`hidden`,display:`flex`,justifyContent:`center`,alignItems:`center`,width:`100%`,height:`100%`}),[r,e,n]),childrenStyles:(0,l.css)({justifyContent:`center`,textAlign:`center`})}},dt=e=>{let{className:r,children:i}=e,a=t.useRef(null),[o,s]=t.useState(0),[l,u]=t.useState(0),{centerStyles:d}=ut(e),f=(e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}};return t.useEffect(()=>{let e=f(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;s(e),u(n)}},200),t=new c.ResizeObserver(t=>{e(t)});return a.current&&t.observe(a.current),()=>{t.disconnect()}},[]),(0,n.jsx)(`div`,{id:`center`,className:r,style:{...d(o,l),display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`,width:`100%`},ref:a,children:i})},ft=e=>{let{maxWidth:n}=e,{getBaseStyles:r}=Se();return{containerStyles:t.useCallback((t,i)=>!t||!i?{}:{...r(e,t,i),maxWidth:n},[r,n,e])}},pt=e=>{let{className:r,children:i,style:a,alignItems:o=`center`,justifyContent:l=`center`,flexDirection:u=`row`,centerContent:d=!0}=e,f=t.useRef(null),[p,m]=t.useState(0),[h,g]=t.useState(0),{containerStyles:_}=ft(e),v=t.useMemo(()=>(0,s.debounce)(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;m(e),g(n)}},200),[]);t.useEffect(()=>{let e=new c.ResizeObserver(e=>{v(e)});return f.current&&e.observe(f.current),()=>{e.disconnect(),v.cancel()}},[v]);let y=t.useMemo(()=>{if(!a)return;let{padding:e,margin:t,...n}=a;return n},[a]);return(0,n.jsx)(`div`,{id:`container`,className:r,style:{..._(p,h),display:`flex`,justifyContent:l,alignItems:o,flexDirection:u,...y},ref:f,children:d?(0,n.jsx)(dt,{children:i}):i})},mt=e=>{let[n,r]=(0,t.useState)(!0),[i,a]=(0,t.useState)(!0),o=(0,t.useCallback)(()=>{e&&e.scrollPrev()},[e]),s=(0,t.useCallback)(()=>{e&&e.scrollNext()},[e]),c=(0,t.useCallback)(e=>{r(!e.canScrollPrev()),a(!e.canScrollNext())},[]);return(0,t.useEffect)(()=>{e&&(c(e),e.on(`reInit`,c),e.on(`select`,c))},[e,c]),{prevBtnDisabled:n,nextBtnDisabled:i,onPrevButtonClick:o,onNextButtonClick:s}},ht=(e,n)=>{let{getCurrentDevice:r}=Se(),a=t.useCallback(()=>{let e=r(n),t=`95%`;switch(e){case`Medium`:t=`45%`;break;case`Large`:t=`calc(95% / 4)`;break;case`ExtraLarge`:t=`calc(95% / 5)`;break;case`ExtraExtraLarge`:t=`calc(95% / 6)`;break;default:t=`95%`;break}return t},[n,r]),o=t.useCallback(()=>{let e=r(n),t=i.tokens.spacingVerticalM;switch(e){case`Medium`:t=i.tokens.spacingVerticalM;break;case`Large`:t=i.tokens.spacingVerticalL;break;case`ExtraLarge`:t=i.tokens.spacingVerticalXL;break;default:t=i.tokens.spacingVerticalM;break}return t},[n,r]);return{enableControls:(0,l.css)({display:`flex`,justifyContent:`space-between`,alignItems:`stretch`,gap:10,padding:5}),embla__viewport:(0,l.css)({overflow:`hidden`,paddingTop:`10px`,paddingBottom:`20px`}),embla__container:(0,l.css)({backfaceVisibility:`hidden`,display:`flex`,touchAction:`pan-y`}),embla:(0,l.css)({".embla":{}}),embla__slide:(0,l.css)({minWidth:0,flex:`0 0 ${a()}`,paddingLeft:`${o()}`}),embla__buttons:(0,l.css)({display:`grid`,gridTemplateColumns:`repeat(2, 1fr)`,gap:0,alignItems:`center`})}},gt=e=>{let{styles:n}=e,{getBaseStyles:r}=Se();return{carouselStyles:t.useCallback((t,i)=>({...r(e,t,i),...n}),[r,e,n])}},_t=()=>({titleStyles:(0,l.css)({display:`-webkit-box`,overflow:`hidden`,textOverflow:`ellipsis`,WebkitLineClamp:`1`,WebkitBoxOrient:`vertical`,textAlign:`start`})}),vt=e=>{let{className:r,items:a,title:o}=e,s=t.useRef(null),[l,f]=t.useState(0),[p,m]=t.useState(0),{carouselStyles:h}=gt(e),[g,_]=(0,u.default)(),v=_t(),{enableControls:y,embla__slide:b,embla__container:x,embla__viewport:S,embla__buttons:C}=ht(e,l),{prevBtnDisabled:w,nextBtnDisabled:T,onPrevButtonClick:E,onNextButtonClick:D}=mt(_);return t.useEffect(()=>{let e;return s.current&&(e=new c.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;f(e),m(n)}}),f(s.current.clientWidth),m(s.current.clientHeight),e.observe(s.current)),()=>{e&&e.disconnect()}},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(`div`,{id:`-carousel`,role:`region`,"aria-roledescription":`carousel`,"aria-label":o||`Carousel`,className:(0,i.mergeClasses)(r,`embla`),style:{...h(l,p)},ref:s,children:[(0,n.jsxs)(`div`,{className:y,children:[(0,n.jsx)(i.Subtitle2,{className:v.titleStyles,children:o}),(0,n.jsxs)(`div`,{className:C,children:[(0,n.jsx)(i.Button,{onClick:E,disabled:w,appearance:`subtle`,icon:(0,n.jsx)(d.ChevronLeftRegular,{}),"aria-label":`Previous slide`}),(0,n.jsx)(i.Button,{onClick:D,disabled:T,appearance:`subtle`,icon:(0,n.jsx)(d.ChevronRightRegular,{}),"aria-label":`Next slide`})]})]}),(0,n.jsx)(`div`,{className:S,ref:g,children:(0,n.jsx)(`div`,{className:x,children:a.map((e,t)=>(0,n.jsx)(`div`,{className:b,role:`group`,"aria-roledescription":`slide`,"aria-label":`Slide ${t+1} of ${a.length}`,children:e},t))})})]})})},yt=e=>{let{direction:t=`horizontal`,resizerSize:n=6}=e,r=t===`horizontal`;return{root:(0,l.css)({position:`relative`,width:`100%`,height:`100%`}),pane:e=>{let t=e===void 0?void 0:typeof e==`number`?`${e}px`:e;return(0,l.css)({overflow:`auto`,position:`relative`,...r?{width:t,height:`100%`}:{height:t,width:`100%`}})},secondaryPane:(0,l.css)({flex:1,overflow:`auto`,position:`relative`,minWidth:0,minHeight:0}),resizer:(0,l.css)({flex:`0 0 auto`,...r?{width:n,cursor:`col-resize`,height:`100%`}:{height:n,cursor:`row-resize`,width:`100%`},backgroundColor:i.tokens.colorNeutralStroke1,transition:`background-color 150ms ease`,userSelect:`none`,zIndex:1}),resizerActive:(0,l.css)({backgroundColor:i.tokens.colorBrandStroke1}),resizerGrip:(0,l.css)({gap:`2px`}),gripDot:(0,l.css)({width:3,height:3,borderRadius:`50%`,backgroundColor:i.tokens.colorNeutralForeground3})}},V={xs:i.tokens.spacingHorizontalXS,s:i.tokens.spacingHorizontalS,m:i.tokens.spacingHorizontalM,l:i.tokens.spacingHorizontalL,xl:i.tokens.spacingHorizontalXL,xxl:i.tokens.spacingHorizontalXXL},H=t.default.memo(t.default.forwardRef(({direction:e=`vertical`,justifyContent:t=`flex-start`,alignItems:r=`stretch`,gap:a,columnGap:o,rowGap:s,margin:c,padding:u,marginTop:d,marginBottom:f,marginLeft:p,marginRight:m,paddingTop:h,paddingBottom:g,paddingLeft:_,paddingRight:v,width:y,height:b,wrap:x=!1,children:S,style:C,className:w,overflow:T,background:E},D)=>(0,n.jsx)(`div`,{ref:D,className:(0,i.mergeClasses)(w,(0,l.css)({display:`flex`,flexDirection:e===`horizontal`?`row`:`column`,justifyContent:t,alignItems:r,gap:a&&V[a]?V[a]:a,columnGap:o&&V[o]?V[o]:o,rowGap:s&&V[s]?V[s]:s,margin:c&&V[c]?V[c]:c,padding:u&&V[u]?V[u]:u,marginTop:d&&V[d]?V[d]:d,marginBottom:f&&V[f]?V[f]:f,marginLeft:p&&V[p]?V[p]:p,marginRight:m&&V[m]?V[m]:m,paddingTop:h&&V[h]?V[h]:h,paddingBottom:g&&V[g]?V[g]:g,paddingLeft:_&&V[_]?V[_]:_,paddingRight:v&&V[v]?V[v]:v,width:y,height:b,overflow:T,flexWrap:x?`wrap`:`nowrap`,backgroundColor:E,...C})),children:S}))),bt=e=>{let{direction:r=`horizontal`,defaultSize:i=`50%`,minSize:a=100,maxSize:o=1/0,minSecondarySize:s=100,resizable:c=!0,onResize:l,onResizeEnd:u,primaryContent:d,secondaryContent:f,className:p,styles:m}=e,h=yt(e),g=r===`horizontal`,_=t.useRef(null),v=t.useRef(null),[y,b]=t.useState(null),[x,S]=t.useState(!1),[C,w]=t.useState(!1);t.useEffect(()=>{if(y!==null||!_.current)return;let e=_.current.getBoundingClientRect(),t=g?e.width:e.height;if(typeof i==`number`)b(Math.min(Math.max(i,a),o));else if(typeof i==`string`&&i.endsWith(`%`)){let e=parseFloat(i)/100;b(Math.min(Math.max(t*e,a),o))}else b(t/2)},[i,a,o,g,y]);let T=t.useCallback(t=>{if(!_.current)return t;let n=_.current.getBoundingClientRect(),r=(g?n.width:n.height)-(e.resizerSize??6)-s;return Math.min(Math.max(t,a),Math.min(o,r))},[g,o,a,s,e.resizerSize]),E=t.useCallback(e=>{if(!c)return;e.preventDefault(),S(!0);let t=g?e.clientX:e.clientY,n=y??0,r=e=>{let r=T(n+((g?e.clientX:e.clientY)-t));b(r),l?.(r)},i=()=>{if(S(!1),document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i),v.current){let e=g?v.current.getBoundingClientRect().width:v.current.getBoundingClientRect().height;u?.(e)}};document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)},[c,g,y,T,l,u]),D=t.useCallback(e=>{if(!c)return;S(!0);let t=e.touches[0],n=g?t.clientX:t.clientY,r=y??0,i=e=>{let t=e.touches[0],i=T(r+((g?t.clientX:t.clientY)-n));b(i),l?.(i)},a=()=>{if(S(!1),document.removeEventListener(`touchmove`,i),document.removeEventListener(`touchend`,a),v.current){let e=g?v.current.getBoundingClientRect().width:v.current.getBoundingClientRect().height;u?.(e)}};document.addEventListener(`touchmove`,i,{passive:!1}),document.addEventListener(`touchend`,a)},[c,g,y,T,l,u]),O=t.useCallback(e=>{if(!c||y===null)return;let t=e.shiftKey?50:10,n=0;if(g?e.key===`ArrowLeft`?n=-t:e.key===`ArrowRight`&&(n=t):e.key===`ArrowUp`?n=-t:e.key===`ArrowDown`&&(n=t),n!==0){e.preventDefault();let t=T(y+n);b(t),l?.(t),u?.(t)}},[c,y,g,T,l,u]);t.useEffect(()=>(x?(document.body.style.userSelect=`none`,document.body.style.cursor=g?`col-resize`:`row-resize`):(document.body.style.userSelect=``,document.body.style.cursor=``),()=>{document.body.style.userSelect=``,document.body.style.cursor=``}),[x,g]);let k=t.useRef(null),A=[h.resizer,C||x?h.resizerActive:``].filter(Boolean).join(` `);return t.useEffect(()=>{if(!c||!k.current)return;let e=k.current,t=e=>E(e),n=e=>D(e),r=e=>O(e),i=()=>w(!0),a=()=>w(!1);return e.addEventListener(`mousedown`,t),e.addEventListener(`touchstart`,n),e.addEventListener(`keydown`,r),e.addEventListener(`mouseenter`,i),e.addEventListener(`mouseleave`,a),()=>{e.removeEventListener(`mousedown`,t),e.removeEventListener(`touchstart`,n),e.removeEventListener(`keydown`,r),e.removeEventListener(`mouseenter`,i),e.removeEventListener(`mouseleave`,a)}},[c,E,D,O]),(0,n.jsxs)(H,{ref:_,className:[h.root,p].filter(Boolean).join(` `),style:{height:`100%`,width:`100%`,...m},direction:g?`horizontal`:`vertical`,overflow:`hidden`,children:[(0,n.jsx)(H,{ref:v,className:h.pane(y??void 0),style:{flex:`0 0 auto`},children:d}),c&&(0,n.jsx)(`div`,{ref:k,className:A,style:{flex:`0 0 auto`,display:`flex`,alignItems:`center`,justifyContent:`center`},role:`separator`,"aria-orientation":g?`vertical`:`horizontal`,"aria-valuenow":Math.round(y??a),"aria-valuemin":a,"aria-valuemax":o===1/0?void 0:o,"aria-label":`Resize pane`,tabIndex:0,children:(0,n.jsxs)(H,{className:h.resizerGrip,direction:g?`vertical`:`horizontal`,alignItems:`center`,justifyContent:`center`,children:[(0,n.jsx)(H,{className:h.gripDot,children:``}),(0,n.jsx)(H,{className:h.gripDot,children:``}),(0,n.jsx)(H,{className:h.gripDot,children:``})]})}),(0,n.jsx)(H,{className:h.secondaryPane,style:{flex:1,minWidth:0,minHeight:0},children:f})]})},xt=({anchorPoint:e,isOpen:r,onClose:a,excludeRefs:o,children:s,theme:c,className:l,styles:u})=>{let d=(0,t.useRef)(null),[p,m]=(0,t.useState)(null);(0,t.useLayoutEffect)(()=>{if(!r){m(null);return}if(d.current){let t=d.current.getBoundingClientRect(),n=e.left,r=e.top;n+t.width>window.innerWidth&&(n=window.innerWidth-t.width-10),r+t.height>window.innerHeight&&(r=window.innerHeight-t.height-10),m({left:n,top:r})}},[e,r,s]);let h=t.default.useCallback(e=>{let t=e.target;if(d.current&&!d.current.contains(t)){if(o&&o.some(e=>e.current&&e.current.contains(t)))return;a()}},[a,o]);if((0,t.useEffect)(()=>{if(!r)return;let e=requestAnimationFrame(()=>{document.addEventListener(`mousedown`,h)}),t=e=>{e.key===`Escape`&&a()};return document.addEventListener(`keydown`,t),()=>{cancelAnimationFrame(e),document.removeEventListener(`mousedown`,h),document.removeEventListener(`keydown`,t)}},[r,h,a]),!r)return null;let g=p||e;return f.default.createPortal(c?(0,n.jsx)(i.FluentProvider,{theme:c,children:(0,n.jsx)(i.Card,{ref:d,role:`dialog`,"aria-modal":`true`,className:l,style:{position:`fixed`,zIndex:1e3,top:g.top,left:g.left,...u},children:s})}):(0,n.jsx)(i.Card,{ref:d,role:`dialog`,"aria-modal":`true`,className:l,style:{position:`fixed`,zIndex:1e3,top:g.top,left:g.left,...u},children:s}),document.body)},St=(0,i.makeStyles)({labelContainer:{display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignItems:`center`,...i.shorthands.gap(`6px`)},iconStyles:{width:`26px`},item:{paddingLeft:`15px`}}),Ct=e=>{let{label:r,icon:a,isRequired:o}=e,s=St();return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(`div`,{className:s.labelContainer,children:[a&&t.isValidElement(a)?a:(0,n.jsx)(p.Icon,{icon:a,className:s.iconStyles,width:`20px`,height:`20px`,color:i.tokens.colorBrandForeground1,"aria-hidden":`true`}),(0,n.jsx)(i.Caption1,{style:{color:i.tokens.colorBrandForeground1},children:r}),(0,n.jsx)(i.Caption1,{style:{color:i.tokens.colorPaletteRedForeground1},children:o?` *`:``})]})})},wt=(0,i.makeStyles)({root:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`,width:`100%`},spinner:{width:`100px`,height:`100px`}}),Tt=e=>{let{size:t,label:r,labelPosition:a,style:o,className:s}=e,c=wt();return(0,n.jsx)(`div`,{className:c.root,children:(0,n.jsx)(i.Spinner,{style:o,className:(0,i.mergeClasses)(c.spinner,s),size:t,label:r,labelPosition:a,"aria-label":r?void 0:`Loading`})})},Et={xs:i.tokens.fontSizeBase200,s:i.tokens.fontSizeBase300,m:i.tokens.fontSizeBase400,l:i.tokens.fontSizeBase500,xl:i.tokens.fontSizeBase600,xxl:i.tokens.fontSizeHero700},U={xs:i.tokens.spacingHorizontalXS,s:i.tokens.spacingHorizontalS,m:i.tokens.spacingHorizontalM,l:i.tokens.spacingHorizontalL,xl:i.tokens.spacingHorizontalXL,xxl:i.tokens.spacingHorizontalXXL},Dt={regular:i.tokens.fontWeightRegular,semibold:i.tokens.fontWeightSemibold,bold:i.tokens.fontWeightBold},Ot=e=>{let{fontSize:t,fontFamily:r,fontWeight:a,numberOfLines:o,as:s,padding:c,paddingTop:u,paddingBottom:d,paddingLeft:f,paddingRight:p,margin:m,marginTop:h,marginBottom:g,marginLeft:_,marginRight:v,children:y,style:b,className:x,color:S,block:C,truncate:w,wrap:T}=e,E=(0,l.css)({color:S,padding:c&&U[c]?U[c]:c,paddingTop:u&&U[u]?U[u]:u,paddingBottom:d&&U[d]?U[d]:d,paddingLeft:f&&U[f]?U[f]:f,paddingRight:p&&U[p]?U[p]:p,margin:m&&U[m]?U[m]:m,marginTop:h&&U[h]?U[h]:h,marginBottom:g&&U[g]?U[g]:g,marginLeft:_&&U[_]?U[_]:_,marginRight:v&&U[v]?U[v]:v}),D={...b,...r?{fontFamily:r}:{},...t?{fontSize:Et[t]?Et[t]:t}:{},...a?{fontWeight:Dt[a]?Dt[a]:a}:{},...o?{display:`-webkit-box`,WebkitBoxOrient:`vertical`,overflow:`hidden`,WebkitLineClamp:o}:{}};return(0,n.jsx)(i.Text,{as:s,className:(0,i.mergeClasses)(x,E),style:D,block:C,truncate:w,wrap:T,children:y})},kt=e=>e===`radio`||e===`checkbox`||e===`item`,At=e=>{let{onSelected:r,onSelectionChange:a,value:o,selectedKeys:s,styles:c,options:l,apparence:u,shape:d,label:f,buttonText:p,size:m,defaultItemType:h=`radio`,onRenderItem:g}=e,_=!!p,v=!!c&&typeof c==`object`&&(`root`in c||`menulist`in c||`menuitem`in c),y=v?c.root:c,b=v?c.menulist:void 0,x=v?c.menuitem:void 0,S=t.useCallback(e=>e.itemType??h,[h]),C=t.useMemo(()=>{if(_)return;if(o)return o;let e=l?.find(e=>kt(S(e))&&e.key);return l?.find(e=>kt(S(e))&&e.selected)??e},[_,o,l,S]),[w,T]=t.useState(C),E=t.useMemo(()=>s||(l??[]).filter(e=>S(e)===`checkbox`&&e.selected&&e.key).map(e=>e.key),[s,l,S]),[D,O]=t.useState(E),k=!_&&w&&S(w)===`radio`?w.key:void 0,A={radio:k?[k]:[],checkbox:D},j=t.useRef(null);t.useEffect(()=>{if(_){T(void 0);return}T(C)},[_,C]),t.useEffect(()=>{s&&O(s)},[s]);let M=t.useMemo(()=>p||(w?.text?w.text:`No data available`),[p,w]),N=_?void 0:w?.icon,[ee,P]=t.useState(!1),F=t.useCallback((e,t)=>P(t.open),[]),I=t.useCallback((e,{name:t,checkedItems:n})=>{if(t===`radio`){let e=n[0],t=l.find(t=>t.key===e);if(!t)return;_||T(t),r?.(t);return}if(t===`checkbox`){O(n);let e=n.map(e=>l.find(t=>t.key===e)).filter(Boolean);a?.(e)}},[_,l,r,a]),L=t.useCallback(e=>{_||T(e),r?.(e)},[_,r]),R=t.useCallback((e,t)=>{let r=x;switch(t){case`divider`:return(0,n.jsx)(i.MenuDivider,{},`divider-${e.key}`);case`header`:return(0,n.jsx)(i.MenuGroupHeader,{children:e.text},`header-${e.key}`);case`checkbox`:return(0,n.jsx)(i.MenuItemCheckbox,{name:`checkbox`,value:e.key,icon:e.icon,disabled:e.disabled,secondaryContent:e.secondaryContent,style:r,children:e.text},e.key);case`item`:return(0,n.jsx)(i.MenuItem,{icon:e.icon,disabled:e.disabled,secondaryContent:e.secondaryContent,onClick:()=>L(e),style:r,children:e.text},e.key);default:return(0,n.jsx)(i.MenuItemRadio,{name:`radio`,value:e.key,icon:e.icon,disabled:e.disabled,secondaryContent:e.secondaryContent,style:r,children:e.text},e.key)}},[x,L]),te=t.useCallback(e=>{let r=S(e),i={isSelected:r===`radio`?k===e.key:r===`checkbox`?D.includes(e.key):!1,isDisabled:!!e.disabled,itemType:r},a=()=>R(e,r);if(g&&r!==`divider`&&r!==`header`){let r=g(e,a,i);return(0,n.jsx)(t.Fragment,{children:r},e.key)}return a()},[S,k,D,g,R]),ne=t.useMemo(()=>{let e=[],t=null,r=()=>{t&&=(e.push((0,n.jsx)(i.MenuGroup,{children:t.nodes},`group-${t.headerKey}`)),null)};return l?.forEach(n=>{if(S(n)===`header`){r(),t={headerKey:n.key||`${e.length}`,nodes:[te(n)]};return}let i=te(n);t?t.nodes.push(i):e.push(i)}),r(),e},[l,S,te]);return(0,n.jsx)(i.Field,{label:f,style:y,ref:j,children:(0,n.jsxs)(i.Menu,{open:ee,onOpenChange:F,positioning:{offset:3},checkedValues:A,onCheckedValueChange:I,children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{shape:d??`circular`,icon:N,appearance:u??`secondary`,size:m??`medium`,children:M})}),(0,n.jsx)(i.MenuPopover,{style:{minWidth:j.current?.offsetWidth},children:(0,n.jsx)(i.MenuList,{style:b,children:ne})})]})})},jt=()=>({styles:{container:(0,l.css)({display:`flex`,alignItems:`center`,alignContent:`center`,overflow:`hidden`,whiteSpace:`nowrap`,padding:`8px`,backgroundColor:`transparent`}),breadcrumbItem:(0,l.css)({minWidth:`fit-content`,padding:0,margin:`0px`}),separator:(0,l.css)({marginRight:`8px`})},getStyles:(e,t)=>{let{icon:n}=e;switch(t){case`small`:return(0,l.css)({fontSize:`12px`,padding:`4px`,paddingLeft:n?`0px`:`4px`});case`medium`:return(0,l.css)({fontSize:`14px`,padding:`6px`,paddingLeft:n?`0px`:`6px`});case`large`:return(0,l.css)({fontSize:`16px`,padding:`8px`,paddingLeft:n?`0px`:`8px`});case`current`:return(0,l.css)({fontWeight:i.tokens.fontWeightBold,cursor:`default`,display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,overflow:`hidden`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`,fontFamily:i.tokens.fontFamilyBase});default:return(0,l.css)({fontSize:`14px`,padding:`6px`,paddingLeft:n?`0px`:`6px`})}}}),Mt=({items:e,theme:r,size:a=`medium`})=>{let[o,s]=(0,t.useState)(!1),c=(0,t.useRef)(null),l=(0,t.useRef)(null),[u,p]=(0,t.useState)({top:0,left:0,position:`absolute`}),{getStyles:m}=jt();return(0,t.useEffect)(()=>{let e=e=>{!c.current?.contains(e.target)&&!l.current?.contains(e.target)&&o&&s(!1)};return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[o]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Button,{ref:c,icon:(0,n.jsx)(d.MoreHorizontalRegular,{}),appearance:`transparent`,onClick:()=>{if(c.current){let e=c.current.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight,r=l.current?.offsetWidth||200,i=l.current?.offsetHeight||100,a=e.bottom+window.scrollY,o=e.left+window.scrollX;o+r>t&&(o=t-r-10),a+i>n&&(a=e.top+window.scrollY-i),p({top:a,left:o,position:`absolute`}),s(e=>!e)}},"aria-label":`More items`}),o&&(0,f.createPortal)(r?(0,n.jsx)(i.FluentProvider,{theme:r,children:(0,n.jsx)(i.Card,{ref:l,style:{...u,zIndex:1e3,padding:`8px`,minWidth:`150px`},children:e.map((e,t)=>(0,n.jsx)(i.Button,{icon:e.icon?e.icon:null,appearance:`transparent`,onClick:()=>{e.onClick?.(),s(!1)},children:(0,n.jsx)(i.Text,{className:m(e,a),children:e.label})},`overflow-${t}`))})}):(0,n.jsx)(i.Card,{ref:l,style:{...u,zIndex:1e3,padding:`8px`,minWidth:`150px`},children:e.map((e,t)=>(0,n.jsx)(i.Button,{icon:e.icon?e.icon:null,appearance:`transparent`,onClick:()=>{e.onClick?.(),s(!1)},children:(0,n.jsx)(i.Text,{className:m(e,a),children:e.label})},`overflow-${t}`))}),document.body)]})},Nt=(e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}},Pt=({items:e,maxWidth:r=`100%`,styles:a,theme:o,size:s=`medium`,currentIndex:l=e.length-1,className:u})=>{let{styles:f,getStyles:p}=jt(),m=(0,t.useRef)(null),[h,g]=(0,t.useState)([]),[_,v]=(0,t.useState)([]);return(0,t.useEffect)(()=>{let t=()=>{if(!m.current)return;let t=m.current.offsetWidth,n=0,r=[],i=[];e.forEach(e=>{n+80<=t-50?(r.push(e),n+=80):i.push(e)}),g(r),v(i)},n=Nt(t,100),r=new c.ResizeObserver(()=>{n()});return m.current&&r.observe(m.current),t(),()=>{r.disconnect()}},[e]),(0,n.jsx)(`div`,{ref:m,className:(0,i.mergeClasses)(f.container,u),style:{maxWidth:r,...a},children:(0,n.jsxs)(B,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`start`,children:[h.map((e,r)=>(0,n.jsxs)(t.default.Fragment,{children:[r===l?(0,n.jsxs)(B,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`start`,columnGap:5,styles:{overflow:`hidden`},children:[e.icon?t.default.cloneElement(e.icon,{style:{fontSize:s===`large`?`20px`:s===`medium`?`16px`:`12px`}}):null,(0,n.jsx)(i.Text,{className:(0,i.mergeClasses)(f.breadcrumbItem,p(e,s),p(e,`current`)),"aria-current":`page`,children:e.label},e.label)]}):(0,n.jsx)(i.Button,{icon:e.icon?e.icon:null,appearance:`transparent`,className:`${f.breadcrumbItem}`,onClick:e.onClick,children:(0,n.jsx)(i.Text,{className:p(e,s),children:e.label})},e.label),r<h.length-1&&(0,n.jsx)(d.ChevronRightRegular,{style:{fontSize:s===`large`?`20px`:s===`medium`?`16px`:`12px`}})]},e.label??`breadcrumb-${r}`)),_.length>0&&(0,n.jsx)(Mt,{items:_,theme:o})]})})},Ft=({icon:e,hoverIcon:r,imageSrc:a,width:o=24,height:s=24,color:c,hoverColor:l,onClick:u,enabled:d=!0,ariaLabel:f})=>{let p=c||i.tokens.colorBrandBackground,m=l||i.tokens.colorBrandBackgroundHover,h=i.tokens.fontFamilyBase,[g,_]=(0,t.useState)(!1),v=(0,t.useCallback)(()=>{d&&_(!0)},[d]),y=(0,t.useCallback)(()=>{d&&_(!1)},[d]),b=(0,t.useMemo)(()=>d&&g&&r?r:e,[g,r,e,d]),x=(0,t.useMemo)(()=>({width:o,height:s,color:g?m:p,display:`flex`,alignItems:`center`,justifyContent:`center`,opacity:d?1:.5,fontFamily:h,fontSize:`inherit`}),[o,s,g,m,p,d,h]),S=(0,t.useMemo)(()=>({border:`none`,background:`none`,padding:0,cursor:d?`pointer`:`default`}),[d]),C=(0,t.useMemo)(()=>({width:o,height:s,objectFit:`contain`,opacity:d?1:.5}),[o,s,d]);return(0,n.jsx)(i.Button,{onClick:d?u:void 0,onMouseEnter:v,onMouseLeave:y,disabled:!d,style:S,"aria-label":f??`Icon Button`,children:a?(0,n.jsx)(`img`,{src:a,alt:`icon`,style:C}):t.default.cloneElement(b,{style:{...b.props.style,...x}})})},It=t.default.memo(Ft),Lt=()=>({getSpanSlots:t.useCallback((e,t)=>{let n=new Date(e),r=new Date(t),i=n.getHours(),a=n.getMinutes(),o=i*2+(a>=1?1:0),s=r.getHours(),c=r.getMinutes(),l=s*2+(c>=1?2:0);return{spanSlots:l-o,startSlot:o,endSlot:l}},[]),generateLightAndHoverColors:t.useCallback((e,t=20,n=10)=>{let r=e=>{let t=parseInt(e.slice(1,3),16)/255,n=parseInt(e.slice(3,5),16)/255,r=parseInt(e.slice(5,7),16)/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=i-a,s=0,c=0,l=(i+a)/2;if(o!==0){switch(c=l>.5?o/(2-i-a):o/(i+a),i){case t:s=(n-r)/o+(n<r?6:0);break;case n:s=(r-t)/o+2;break;case r:s=(t-n)/o+4;break}s/=6}return{h:s*360,s:c*100,l:l*100}},i=(e,t,n)=>{let r=t*Math.min(n,100-n)/100,i=t=>{let i=(t+e/30)%12,a=n-r*Math.max(Math.min(i-3,9-i,1),-1);return Math.round(255*a).toString(16).padStart(2,`0`)};return`#${i(0)}${i(8)}${i(4)}`},{h:a,s:o,l:s}=r(e);return{lightColor:i(a,o,Math.min(s+t,100)),hoverColor:i(a,o,Math.min(s+n,100))}},[]),getEventColors:t.useCallback(e=>{let t={backgroundColor:i.tokens.colorNeutralBackground3,hoverColor:i.tokens.colorNeutralBackground3Hover};return{"no category":t,meeting:{backgroundColor:i.tokens.colorPaletteBlueBackground2,hoverColor:i.tokens.colorPaletteBlueBorderActive},appointment:{backgroundColor:i.tokens.colorPaletteGreenBackground2,hoverColor:i.tokens.colorPaletteGreenBorderActive},task:{backgroundColor:i.tokens.colorPaletteRedBackground2,hoverColor:i.tokens.colorPaletteRedBorderActive},deadline:{backgroundColor:i.tokens.colorPaletteYellowBackground2,hoverColor:i.tokens.colorPaletteYellowBorderActive},holiday:{backgroundColor:i.tokens.colorPalettePurpleBackground2,hoverColor:i.tokens.colorPalettePurpleBorderActive},celebration:{backgroundColor:i.tokens.colorPaletteDarkOrangeBackground2,hoverColor:i.tokens.colorPaletteDarkOrangeBorderActive},reminder:{backgroundColor:i.tokens.colorPaletteTealBackground2,hoverColor:i.tokens.colorPaletteTealBorderActive},workshop:{backgroundColor:i.tokens.colorPaletteTealBackground2,hoverColor:i.tokens.colorPaletteTealBorderActive},webinar:{backgroundColor:i.tokens.colorPaletteMagentaBackground2,hoverColor:i.tokens.colorPaletteMagentaBorderActive},conference:{backgroundColor:i.tokens.colorPaletteBrownBackground2,hoverColor:i.tokens.colorPaletteBrownBorderActive}}[e.toLowerCase()]||t},[]),generateColor:t.useCallback(e=>{let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);let n=(t&16777215).toString(16).toUpperCase();return`#${`00000`.substring(0,6-n.length)+n}`},[]),getCalendarColors:t.useCallback(e=>{let t={beige:{backgroundColor:i.tokens.colorPaletteBeigeBackground2,hoverColor:i.tokens.colorPaletteBeigeBorderActive},blue:{backgroundColor:i.tokens.colorPaletteBlueBackground2,hoverColor:i.tokens.colorPaletteBlueBorderActive},brown:{backgroundColor:i.tokens.colorPaletteBrownBackground2,hoverColor:i.tokens.colorPaletteBrownBorderActive},gold:{backgroundColor:i.tokens.colorPaletteGoldBackground2,hoverColor:i.tokens.colorPaletteGoldBorderActive},lavender:{backgroundColor:i.tokens.colorPaletteLavenderBackground2,hoverColor:i.tokens.colorPaletteLavenderBorderActive},magenta:{backgroundColor:i.tokens.colorPaletteMagentaBackground2,hoverColor:i.tokens.colorPaletteMagentaBorderActive},navy:{backgroundColor:i.tokens.colorPaletteNavyBackground2,hoverColor:i.tokens.colorPaletteNavyBorderActive},pink:{backgroundColor:i.tokens.colorPalettePinkBackground2,hoverColor:i.tokens.colorPalettePinkBorderActive},plum:{backgroundColor:i.tokens.colorPalettePlumBackground2,hoverColor:i.tokens.colorPalettePlumBorderActive},purple:{backgroundColor:i.tokens.colorPalettePurpleBackground2,hoverColor:i.tokens.colorPalettePurpleBorderActive},red:{backgroundColor:i.tokens.colorPaletteRedBackground2,hoverColor:i.tokens.colorPaletteRedBorderActive},teal:{backgroundColor:i.tokens.colorPaletteTealBackground2,hoverColor:i.tokens.colorPaletteTealBorderActive},anchor:{backgroundColor:i.tokens.colorPaletteAnchorBackground2,hoverColor:i.tokens.colorPaletteAnchorBorderActive},"dark-red":{backgroundColor:i.tokens.colorPaletteDarkRedBackground2,hoverColor:i.tokens.colorPaletteDarkRedBorderActive},cranberry:{backgroundColor:i.tokens.colorPaletteCranberryBackground2,hoverColor:i.tokens.colorPaletteCranberryBorderActive},pumpkin:{backgroundColor:i.tokens.colorPalettePumpkinBackground2,hoverColor:i.tokens.colorPalettePumpkinBorderActive},peach:{backgroundColor:i.tokens.colorPalettePeachBackground2,hoverColor:i.tokens.colorPalettePeachBorderActive},marigold:{backgroundColor:i.tokens.colorPaletteMarigoldBackground2,hoverColor:i.tokens.colorPaletteMarigoldBorderActive},brass:{backgroundColor:i.tokens.colorPaletteBrassBackground2,hoverColor:i.tokens.colorPaletteBrassBorderActive},forest:{backgroundColor:i.tokens.colorPaletteForestBackground2,hoverColor:i.tokens.colorPaletteForestBorderActive},seafoam:{backgroundColor:i.tokens.colorPaletteSeafoamBackground2,hoverColor:i.tokens.colorPaletteSeafoamBorderActive},"dark-green":{backgroundColor:i.tokens.colorPaletteDarkGreenBackground2,hoverColor:i.tokens.colorPaletteDarkGreenBorderActive},"light-teal":{backgroundColor:i.tokens.colorPaletteLightTealBackground2,hoverColor:i.tokens.colorPaletteLightTealBorderActive},steel:{backgroundColor:i.tokens.colorPaletteSteelBackground2,hoverColor:i.tokens.colorPaletteSteelBorderActive},"royal-blue":{backgroundColor:i.tokens.colorPaletteRoyalBlueBackground2,hoverColor:i.tokens.colorPaletteRoyalBlueBorderActive},cornflower:{backgroundColor:i.tokens.colorPaletteCornflowerBackground2,hoverColor:i.tokens.colorPaletteCornflowerBorderActive},grape:{backgroundColor:i.tokens.colorPaletteGrapeBackground2,hoverColor:i.tokens.colorPaletteGrapeBorderActive},lilac:{backgroundColor:i.tokens.colorPaletteLilacBackground2,hoverColor:i.tokens.colorPaletteLilacBorderActive},mink:{backgroundColor:i.tokens.colorPaletteMinkBackground2,hoverColor:i.tokens.colorPaletteMinkBorderActive},platinum:{backgroundColor:i.tokens.colorPalettePlatinumBackground2,hoverColor:i.tokens.colorPalettePlatinumBorderActive}},n=t[`royal-blue`];return t[e]||n},[]),formatDate:t.useCallback((e,t)=>(0,a.format)((0,a.parseISO)(e),t),[])}),Rt={start:`Start`,end:`End`,location:`Location`,attendees:`Attendees`,details:`Details`},zt=`32px`,Bt=e=>({styles:{banner:(0,l.css)({display:`flex`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,padding:`5px 10px 0px 10px`}),fieldContainer:(0,l.css)({paddingLeft:zt}),title:(0,l.css)({lineClamp:2,overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,wordBreak:`break-word`,WebkitLineClamp:2})}}),Vt=({fieldLabel:e,fieldValue:t,icon:r})=>(0,n.jsxs)(B,{children:[(0,n.jsx)(Ct,{label:e,icon:r}),(0,n.jsx)(B,{paddingLeft:zt,children:(0,n.jsx)(i.Body1,{children:t})})]}),Ht=e=>{let{event:r,strings:a=Rt}=e,{title:o,start:s,end:c,location:l,category:u,attendees:d,weblink:f}=r,{styles:p}=Bt(r),{formatDate:m}=Lt(),h=m(s,`PPp`),g=m(c,`PPp`),_=(0,i.partitionAvatarGroupItems)({items:d?.map(e=>e.id)||[]}),v=t.useCallback(e=>d?.find(t=>t.id===e)||void 0,[d]),y=t.useCallback(()=>(0,n.jsxs)(B,{children:[(0,n.jsx)(Ct,{label:a.attendees,icon:`ph:users-three`}),(0,n.jsx)(B,{paddingLeft:zt,children:(0,n.jsxs)(i.AvatarGroup,{layout:`stack`,children:[_.inlineItems.map(e=>(0,n.jsx)(i.AvatarGroupItem,{name:v(e)?.name,image:{src:v(e)?.imageUrl}},e)),_.overflowItems&&(0,n.jsx)(i.AvatarGroupPopover,{children:_.overflowItems.map(e=>(0,n.jsx)(i.AvatarGroupItem,{name:v(e)?.name,image:{src:v(e)?.imageUrl}},e))})]})})]}),[_,v,a.attendees]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Ze,{appearance:`subtle`,padding:`m`,paddingTop:`s`,width:`250px`,cardBody:(0,n.jsxs)(B,{RowGap:10,children:[(0,n.jsx)(`div`,{className:p.banner,children:(0,n.jsx)(i.Subtitle1,{className:p.title,children:o})}),(0,n.jsx)(i.Divider,{}),u&&(0,n.jsx)(B,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:(0,n.jsx)(i.Badge,{appearance:`filled`,children:u})}),(0,n.jsx)(Vt,{fieldLabel:a.start,fieldValue:h,icon:`mingcute:time-line`}),(0,n.jsx)(Vt,{fieldLabel:a.end,fieldValue:g,icon:`mingcute:time-line`}),(0,n.jsx)(Vt,{fieldLabel:a.location,fieldValue:l,icon:`mingcute:location-line`}),(0,n.jsx)(y,{})]}),cardFooterContent:(0,n.jsx)(B,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:(0,n.jsx)(i.Button,{appearance:`subtle`,onClick:()=>{window.open(f,`_blank`)},children:a.details})})})})},Ut=()=>({styles:{calendarWrapper:(0,l.css)({padding:`20px`,paddingTop:`10px`,overflow:`auto`,flex:1,display:`grid`,gridTemplateColumns:`repeat(7, 1fr)`,gridTemplateRows:`auto`,gridAutoRows:`minmax(100px, 1fr)`,gap:`1px`,width:`calc(100% - 40px)`}),header:(0,l.css)({display:`flex`,justifyContent:`start`,gap:`10px`,alignItems:`center`,padding:`16px`}),dayHeader:(0,l.css)({textAlign:`start`,padding:`8px`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`}),day:(0,l.css)({display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,border:`1px solid ${i.tokens.colorNeutralStroke1}`,backgroundColor:i.tokens.colorNeutralBackground1,position:`relative`}),otherMonthDay:(0,l.css)({color:i.tokens.colorNeutralStroke2,backgroundColor:i.tokens.colorNeutralBackground2}),cardDay:(0,l.css)({height:`100%`,minHeight:100,borderRadius:0,overflow:`hidden !important`,rowGap:5}),cardDayOnHover:(0,l.css)({":hover":{backgroundColor:i.tokens.colorNeutralBackground2}}),currentDay:(0,l.css)({borderTop:`5px solid ${i.tokens.colorBrandBackground}`}),currentDayLabel:(0,l.css)({color:i.tokens.colorBrandBackground,fontWeight:600}),eventCard:(0,l.css)({display:`flex`,flexDirection:`column`,alignItems:`flex-start`,zIndex:1}),eventContainer:(0,l.css)({display:`flex`,flexDirection:`column`,overflowY:`auto`,paddingTop:`5px`,paddingBottom:`5px`,paddingLeft:`5px`,paddingRight:`5px`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorNeutralStroke2}}),eventCardWeekView:(0,l.css)({backgroundColor:i.tokens.colorBrandBackground,color:i.tokens.colorNeutralForegroundOnBrand,borderRadius:`4px`,padding:`4px`,margin:`2px`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,height:`100%`}),popoverContent:(0,l.css)({padding:0,borderTopWidth:20,borderTopStyle:`solid`}),cardMonthTitle:(0,l.css)({display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingLeft:`8px`,wordBreak:`break-word`,overflow:`hidden`})},applyEventHouverColorClass:(e,t)=>(0,l.css)({backgroundColor:e??i.tokens.colorBrandBackground,":hover":{backgroundColor:t??i.tokens.colorBrandBackgroundHover}})}),Wt=e=>{let r=(0,i.useId)(),{events:o,date:s,onCardHoverChange:c,columnHeight:l}=e,{styles:u,applyEventHouverColorClass:d}=Ut(),f=t.useRef(null),{getEventColors:p,getCalendarColors:m}=Lt(),h=t.useCallback(e=>{c&&c(!0,e)},[c]),g=t.useCallback(e=>{c&&c(!1,e)},[c]),_=t.useCallback(e=>{f.current?.setTarget(e)},[f]),v=t.useCallback((e,t,r)=>(0,n.jsx)(`div`,{ref:_,children:(0,n.jsx)(Ze,{className:(0,i.mergeClasses)(u.eventCard,d(r.backgroundColor,r.backgroundColor)),paddingTop:`4px`,paddingBottom:`4px`,paddingLeft:`8px`,paddingRight:`8px`,marginTop:e===0?`0px`:`5px`,cardHeader:(0,n.jsx)(i.Caption1,{className:u.cardMonthTitle,children:t.title}),onMouseEnter:()=>h(t.title),onMouseLeave:()=>g(t.title)})},t.id??`card-${e}`),[h,g,d]),y=t.useCallback((e,t,a)=>(0,n.jsxs)(i.Popover,{withArrow:!0,mouseLeaveDelay:30,closeOnScroll:!0,closeOnIframeFocus:!0,openOnHover:!0,children:[(0,n.jsx)(i.PopoverTrigger,{children:v(t,e,a)}),(0,n.jsx)(i.PopoverSurface,{"aria-labelledby":r,className:(0,i.mergeClasses)(u.popoverContent),children:(0,n.jsx)(Ht,{event:e})})]},t),[v,r,u.popoverContent]);return!o||!o?.length?(0,n.jsx)(n.Fragment,{children:` `}):(0,n.jsx)(`div`,{style:{height:l},className:u.eventContainer,children:o.map((e,n)=>{if(!(0,a.isWithinInterval)(s,{start:(0,a.startOfDay)(new Date(e.start)),end:(0,a.endOfDay)(new Date(e.end))}))return null;let r;r=e.hexColor?{backgroundColor:e.hexColor,hoverColor:e.hexColor}:e.color?m(e.color):p(e.category);let o=e.onRenderInMonthView?.(e),c=e.id??`event-${n}`;return t.isValidElement(o)?t.cloneElement(o,{key:c,className:(0,i.mergeClasses)(o.props.className,u.eventCard)}):e.enableOnHouver?y(e,n,r):v(n,e,r)})})},Gt=e=>{let{day:r,currentMonth:o,events:s,date:c,columnHeight:l,onDayClick:u}=e,{styles:d}=Ut(),f=new Date,[p,m]=t.useState(!1),h=c.getDay()===0||c.getDay()===6,g=t.useMemo(()=>(0,a.isSameDay)(c,f),[c,f]),_=t.useMemo(()=>(0,n.jsx)(B,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,paddingLeft:`m`,paddingRight:`m`,children:(0,n.jsxs)(i.Body2,{className:d.currentDayLabel,style:{color:h?`${i.tokens.colorPaletteRedForeground1} !important`:``},children:[r,` `,f.toLocaleString(`default`,{month:`short`})]})}),[r,h,f,d.currentDayLabel]),v=t.useCallback(e=>{m(e)},[]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Ze,{onClick:u?()=>u(c):void 0,className:(0,i.mergeClasses)(d.cardDay,o?``:d.otherMonthDay,g?d.currentDay:``,p?``:d.cardDayOnHover),cardHeader:g?_:(0,n.jsx)(B,{horizontal:!0,paddingLeft:`m`,paddingRight:`m`,children:(0,n.jsx)(i.Body2,{style:{color:h?`${i.tokens.colorPaletteRedForeground1} !important`:``},children:r})}),paddingTop:`m`,paddingBottom:`m`,paddingLeft:`0px`,paddingRight:`0px`,cardBody:(0,n.jsx)(Wt,{events:s,date:c,onCardHoverChange:v,columnHeight:l-60})})})},Kt=()=>({styles:{container:(0,l.css)({display:`flex`,flexDirection:`column`,width:`calc(100% - 40px)`,height:`100vh`,overflow:`hidden`,padding:`20px`}),header:(0,l.css)({display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:`16px`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`}),weekGrid:(0,l.css)({display:`grid`,gridTemplateColumns:`80px repeat(7, 1fr)`,gridTemplateRows:`50px 40px repeat(48, 33px)`,height:`fit-content`,overflowY:`auto`,border:`1px solid ${i.tokens.colorNeutralStroke1}`,maxHeight:`calc(100vh - 100px)`,scrollbarWidth:`thin`,scrollbarColor:`${i.tokens.colorBrandBackground} ${i.tokens.colorNeutralBackground1}`,"&::-webkit-scrollbar":{width:`8px`},"&::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground1},"&::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandBackground,borderRadius:`4px`},"&::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorBrandBackgroundHover}}),blankHeader:(0,l.css)({gridColumn:`1`,backgroundColor:i.tokens.colorNeutralBackground3,borderBottom:`3px solid ${i.tokens.colorNeutralStroke3}`,position:`sticky`,top:0,zIndex:10}),timeColumn:(0,l.css)({gridColumn:`1`,gridRow:`3 / span 49`,display:`flex`,flexDirection:`column`,backgroundColor:i.tokens.colorNeutralBackground1,borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`}),timeCell:(0,l.css)({height:`100%`,display:`flex`,alignItems:`center`,fontSize:`12px`,color:i.tokens.colorNeutralForeground3,borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`,justifyContent:`center`}),fullDayRow:(0,l.css)({gridRow:`2`,display:`grid`,gridTemplateColumns:`80px repeat(7, 1fr)`,gap:`0`,padding:`0`,backgroundColor:i.tokens.colorNeutralBackground2,borderBottom:`3px solid ${i.tokens.colorNeutralStroke2}`}),fullDayLabel:(0,l.css)({gridColumn:`1`,display:`flex`,alignItems:`center`,justifyContent:`center`,alignContent:`center`,color:i.tokens.colorBrandBackground,padding:`5px`,borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`,borderBottom:`3px solid ${i.tokens.colorNeutralStroke2}`}),fullDayCell:(0,l.css)({borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`,display:`flex`,flexDirection:`row`,gap:`0px`,padding:`4px`,borderBottom:`3px solid ${i.tokens.colorNeutralStroke2}`,overflow:`hidden`}),fullDayEvent:(0,l.css)({flex:`1 1 auto`,minWidth:`24px`,height:`24px`,padding:`4px 8px`,backgroundColor:i.tokens.colorBrandBackground,borderRadius:`4px`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`}),dayHeaderCell:(0,l.css)({textAlign:`center`,backgroundColor:i.tokens.colorNeutralBackground2,padding:`8px`,fontWeight:`bold`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`,position:`sticky`,top:0,zIndex:10}),todayHeaderCell:(0,l.css)({borderTop:`5px solid ${i.tokens.colorBrandBackground}`}),eventCard:(0,l.css)({padding:2,alignItems:`center`,justifyContent:`center`,marginRight:`2px`,zIndex:1,position:`absolute`,alignContent:`center`,overflow:`hidden`,":hover":{pointerEvents:`auto`,cursor:`pointer`}}),event:(0,l.css)({height:`100%`,backgroundColor:i.tokens.colorBrandBackground,borderRadius:`4px`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`,marginRight:`2px`,zIndex:1,position:`absolute`,alignContent:`center`,":hover":{pointerEvents:`auto`,cursor:`pointer`}}),dayCell:(0,l.css)({borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`,position:`relative`,overflow:`visible`,FlexDirection:`column`,gap:`4px`}),currentTimeIndicator:(0,l.css)({position:`absolute`,left:0,height:`2px`,backgroundColor:i.tokens.colorPaletteRedBorderActive,width:`100%`,zIndex:1}),currentHalfHourCell:(0,l.css)({border:`2px solid ${i.tokens.colorPaletteRedBorderActive}`}),eventTitle:(0,l.css)({display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingLeft:`8px`,wordBreak:`break-word`,overflow:`hidden`}),popoverContent:(0,l.css)({padding:0,borderTopWidth:20,borderTopStyle:`solid`})},applyEventHouverColorClass:t.default.useCallback((e,t)=>(0,l.css)({backgroundColor:e??i.tokens.colorBrandBackground,":hover":{backgroundColor:t??i.tokens.colorBrandBackgroundHover}}),[i.tokens.colorBrandBackground,i.tokens.colorBrandBackgroundHover]),appyDynamicStyles:t.default.useCallback((e,t,n,r)=>(0,l.css)({flex:`0 0 calc(100% / ${t})`,height:`${n*r}px`,left:`${e*10}%`,width:`calc(${100-e*10}% - 8px)`,margin:4,marginTop:0,marginBottom:0}),[])}),qt={timeSeparator:` - `,hourSuffix:`H`},Jt=({event:e,colors:r,spanSlots:a,rowHeight:o,eventIndex:s,eventCount:c,strings:l=qt})=>{let u=(0,i.useId)(),{styles:d,applyEventHouverColorClass:f,appyDynamicStyles:p}=Kt(),m=t.useRef(null),{formatDate:h}=Lt(),g=t.useMemo(()=>(0,n.jsx)(`div`,{children:(0,n.jsxs)(B,{columnGap:4,verticalAlign:`center`,children:[(0,n.jsx)(i.Caption1Strong,{className:d.eventTitle,children:e.title}),(0,n.jsxs)(B,{columnGap:4,horizontal:!0,verticalAlign:`center`,horizontalAlign:`start`,children:[(0,n.jsxs)(i.Caption1,{children:[h(e.start,`HH:mm`),l.hourSuffix]}),l.timeSeparator,(0,n.jsxs)(i.Caption1,{children:[h(e.end,`HH:mm`),l.hourSuffix]})]})]})}),[e,h,l,d.eventTitle]);return(0,n.jsx)(i.Card,{ref:m,className:(0,i.mergeClasses)(d.eventCard,f(r.backgroundColor,r.backgroundColor),p(s,c,o,a)),children:e.enableOnHouver?(0,n.jsxs)(i.Popover,{withArrow:!0,mouseLeaveDelay:50,closeOnScroll:!0,closeOnIframeFocus:!0,openOnHover:!0,children:[(0,n.jsx)(i.PopoverTrigger,{children:g}),(0,n.jsx)(i.PopoverSurface,{"aria-labelledby":u,className:(0,i.mergeClasses)(d.popoverContent),children:(0,n.jsx)(Ht,{event:e})})]}):g},e.id)},Yt=({event:e,eventCount:r,spanSlots:a,rowHeight:o,eventIndex:s,view:c})=>{let{styles:l,appyDynamicStyles:u}=Kt(),{getEventColors:d,getCalendarColors:f}=Lt(),p=e.hexColor?{backgroundColor:e.hexColor,hoverColor:e.hexColor}:e.color?f(e.color):d(e.category),m=c===`day`?e.onRenderInDayView?.(e):e.onRenderInWeekView?.(e);return t.isValidElement(m)?t.cloneElement(m,{event:e,className:(0,i.mergeClasses)(m.props.className,l.eventCard,u(s,r,o,a)),style:{...m.props.style}}):(0,n.jsx)(Jt,{event:e,colors:p,spanSlots:a,rowHeight:o,eventIndex:s,eventCount:r},e.id)},Xt=e=>{let n=(0,t.useCallback)(e=>e.map(e=>({...e,id:e.id||(0,m.v4)()})),[]),r=(0,t.useCallback)(t=>new Date(new Date(t).toLocaleString(void 0,{timeZone:e})),[e]);return{getMonthCalendar:(0,t.useCallback)((e,t,i)=>{let o=n(e),s=new Date(t,i+1,0).getDate(),c={};for(let e=1;e<=s;e++){let n=(0,a.format)(new Date(t,i,e),`yyyy-MM-dd`);c[n]=[]}return o.forEach(e=>{let t=r(e.start),n=r(e.end),i=new Date(t);for(;i<=n;){let t=(0,a.format)(i,`yyyy-MM-dd`);c[t]&&c[t].push(e),i.setDate(i.getDate()+1)}}),c},[r]),getWeekEvents:(0,t.useCallback)((e,t)=>{let i=[],o=r(t),s=n(e);for(let e=0;e<7;e++){let t=new Date(o);t.setDate(o.getDate()+e);let n=(0,a.format)(t,`yyyy-MM-dd`),c=Array.from({length:48},(e,t)=>({time:`${String(Math.floor(t/2)).padStart(2,`0`)}:${t%2==0?`00`:`30`}`,events:[]})),l=[];s.forEach(e=>{let t=r(e.start),i=r(e.end);if(e.isFullDay){(0,a.format)(t,`yyyy-MM-dd`)<=n&&(0,a.format)(i,`yyyy-MM-dd`)>=n&&l.push(e);return}if((0,a.format)(t,`yyyy-MM-dd`)<=n&&(0,a.format)(i,`yyyy-MM-dd`)>=n){let r=new Date(t);for(;r<=i;){if((0,a.format)(r,`yyyy-MM-dd`)===n){let t=r.getHours()*2+(r.getMinutes()>=30?1:0);c[t]&&c[t].events.push(e)}r.setMinutes(r.getMinutes()+30)}}}),i.push({date:n,fullDayEvents:l,timeSlots:c})}return i},[r])}},Zt=()=>({styles:{container:(0,l.css)({display:`flex`,flexDirection:`column`,width:`calc(100% - 40px)`,height:`100vh`,overflow:`hidden`,padding:`20px`}),header:(0,l.css)({display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:`16px`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`}),dayGrid:(0,l.css)({display:`grid`,gridTemplateColumns:`80px 1fr`,gridTemplateRows:`50px 40px repeat(48, 33px)`,height:`calc(100vh - 100px)`,overflowY:`auto`,border:`1px solid ${i.tokens.colorNeutralStroke1}`,maxHeight:`fit-content`,scrollbarWidth:`thin`,scrollbarColor:`${i.tokens.colorBrandBackground} ${i.tokens.colorNeutralBackground1}`,"&::-webkit-scrollbar":{width:`8px`},"&::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground1},"&::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandBackground,borderRadius:`4px`},"&::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorBrandBackgroundHover}}),blankHeader:(0,l.css)({gridColumn:`1`,backgroundColor:i.tokens.colorNeutralBackground3,borderBottom:`3px solid ${i.tokens.colorNeutralStroke3}`}),timeColumn:(0,l.css)({gridColumn:`1`,gridRow:`3 / span 49`,display:`flex`,flexDirection:`column`,backgroundColor:i.tokens.colorNeutralBackground1,borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`}),timeCell:(0,l.css)({height:`100%`,maxHeight:`32px`,minHeight:`32px`,display:`flex`,alignItems:`center`,fontSize:`12px`,color:i.tokens.colorNeutralForeground3,borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`,justifyContent:`center`}),fullDayRow:(0,l.css)({gridRow:`2`,display:`grid`,gridTemplateColumns:`80px 33px`,gap:`0`,padding:`0`,backgroundColor:i.tokens.colorNeutralBackground2,borderBottom:`3px solid ${i.tokens.colorNeutralStroke2}`}),fullDayLabel:(0,l.css)({gridColumn:`1`,display:`flex`,alignItems:`center`,justifyContent:`center`,alignContent:`center`,color:i.tokens.colorBrandBackground,padding:`5px`,borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`,borderBottom:`3px solid ${i.tokens.colorNeutralStroke2}`}),fullDayCell:(0,l.css)({borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`,display:`flex`,flexDirection:`row`,gap:`2px`,padding:`4px`,borderBottom:`3px solid ${i.tokens.colorNeutralStroke2}`,overflow:`hidden`}),fullDayEvent:(0,l.css)({flex:`1 1 auto`,minWidth:`24px`,height:`24px`,padding:`4px 8px`,backgroundColor:i.tokens.colorBrandBackground,color:i.tokens.colorNeutralForegroundOnBrand,borderRadius:`4px`,overflow:`hidden`,display:`flex`,alignItems:`center`,justifyContent:`center`}),dayHeaderCell:(0,l.css)({textAlign:`center`,backgroundColor:i.tokens.colorNeutralBackground2,padding:`8px`,fontWeight:`bold`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`}),todayHeaderCell:(0,l.css)({borderTop:`5px solid ${i.tokens.colorBrandBackground}`}),eventCard:(0,l.css)({alignItems:`center`,justifyContent:`center`,marginRight:`2px`,zIndex:1,position:`absolute`,alignContent:`center`,overflow:`hidden`}),dayCell:(0,l.css)({borderBottom:`1px solid ${i.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${i.tokens.colorNeutralStroke1}`,position:`relative`,overflow:`visible`,FlexDirection:`column`,gap:`4px`}),currentTimeIndicator:(0,l.css)({position:`absolute`,left:0,height:`2px`,backgroundColor:i.tokens.colorPaletteRedBorderActive,width:`100%`,zIndex:1}),currentHalfHourCell:(0,l.css)({border:`2px solid ${i.tokens.colorPaletteRedBorderActive}`}),eventTitle:(0,l.css)({display:`-webkit-box`,"-webkit-line-clamp":`1`,"-webkit-box-orient":`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingLeft:`8px`,wordBreak:`break-word`,overflow:`hidden`})},applyEventHouverColorClass:(e,t)=>(0,l.css)({backgroundColor:e??i.tokens.colorBrandBackground,":hover":{backgroundColor:t??i.tokens.colorBrandBackgroundHover}})}),Qt={allDay:`All Day`},$t=33,en=e=>{let{events:r,currentDay:o,height:s,strings:c=Qt}=e,{styles:l}=Zt(),u=(0,t.useRef)(null),{getSpanSlots:d,getEventColors:f,getCalendarColors:p}=Lt(),m=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:h}=Xt(m),g=t.useCallback(()=>Array.from({length:24},(e,r)=>(0,n.jsxs)(t.Fragment,{children:[(0,n.jsx)(`div`,{className:l.timeCell,children:(0,n.jsxs)(i.Body1Strong,{children:[r,`:00`]})}),(0,n.jsx)(`div`,{className:l.timeCell})]},r)),[l.timeCell]),_=t.useCallback(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:l.blankHeader}),Array.from({length:1},(e,t)=>{let r=(0,a.addDays)(o,t),s=(0,a.isToday)(r)?l.todayHeaderCell:``;return(0,n.jsxs)(`div`,{className:(0,i.mergeClasses)(l.dayHeaderCell,s),children:[(0,n.jsx)(i.Text,{weight:`semibold`,size:600,style:{paddingRight:10},children:(0,a.format)(r,`dd`)}),(0,n.jsx)(i.Subtitle1,{children:(0,a.format)(r,`LLLL, yyyy`)})]},t)})]}),[o,l.blankHeader,l.dayHeaderCell,l.todayHeaderCell]),v=t.useCallback(()=>{let e=h(r,o.toISOString());return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:l.fullDayLabel,children:(0,n.jsx)(i.Body1,{children:c.allDay})}),Array.from({length:1},(t,r)=>{let s=(0,a.format)((0,a.addDays)(o,r),`yyyy-MM-dd`),c=e.find(e=>e.date===s)?.fullDayEvents||[];return(0,n.jsx)(`div`,{className:l.fullDayCell,children:c.map(e=>(0,n.jsx)(`div`,{className:l.fullDayEvent,style:{gridColumn:`${r+2}`,backgroundColor:e.color?p(e.color).backgroundColor:f(e.category).backgroundColor},children:(0,n.jsx)(i.Caption1Strong,{className:l.eventTitle,children:e.title})},e.id))},r)})]})},[o,h,l.fullDayCell,l.fullDayEvent,l.fullDayLabel,l.eventTitle,p,f,r,c.allDay]),y=t.useCallback(()=>{let e=h(r,o.toISOString());return Array.from({length:1},(r,i)=>{let s=(0,a.format)((0,a.addDays)(o,i),`yyyy-MM-dd`),c=e.find(e=>e.date===s);return(0,n.jsx)(t.Fragment,{children:c?.timeSlots.map((e,t)=>{let r=e.events.length;return(0,n.jsx)(`div`,{className:l.dayCell,style:{gridRow:t+3},children:e.events.map((e,i)=>{let{spanSlots:a,startSlot:o}=d(new Date(e.start),new Date(e.end));return t===o?(0,n.jsx)(Yt,{event:e,eventCount:r,spanSlots:a,rowHeight:$t,eventIndex:i,view:`day`},e.id):null})},t)})},i)})},[o,d,h,l.dayCell,r]);return(0,n.jsx)(`div`,{className:l.container,style:{height:s},children:(0,n.jsxs)(`div`,{ref:u,className:l.dayGrid,children:[(0,n.jsx)(`div`,{className:l.timeColumn,children:g()}),_(),v(),y()]})})},W=function(e){return e.Day=`day`,e.Week=`week`,e.Month=`month`,e}({}),tn={month:`Month`,week:`Week`,day:`Day`},nn=e=>{let{onSelected:r,value:a,strings:o=tn}=e,[s,c]=t.useState(a??W.Month),[l,u]=t.useState({view:[a??W.Month]}),f=t.useMemo(()=>(0,d.bundleIcon)(d.CalendarDayFilled,d.CalendarDayRegular),[]),p=t.useMemo(()=>(0,d.bundleIcon)(d.CalendarMonthFilled,d.CalendarMonthRegular),[]),m=t.useMemo(()=>(0,d.bundleIcon)(d.CalendarWorkWeekFilled,d.CalendarWorkWeekRegular),[]);t.useEffect(()=>{a!==void 0&&(c(a),u({view:[a]}))},[a]);let[h,g]=t.useState(!1),_=t.useCallback((e,t)=>{g(t.open)},[]),v=t.useCallback(()=>{switch(s){case W.Month:return(0,n.jsx)(p,{});case W.Week:return(0,n.jsx)(m,{});case W.Day:return(0,n.jsx)(f,{});default:return(0,n.jsx)(p,{})}},[s]),y=t.useCallback(e=>{switch(e){case W.Month:return o.month;case W.Week:return o.week;case W.Day:return o.day;default:return o.month}},[o]),b=t.useCallback((e,{name:t,checkedItems:n})=>{if(t===`view`){let e=n[0];c(e),u({view:n}),r(e)}},[r]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(i.Menu,{open:h,onOpenChange:_,children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{shape:`circular`,icon:v(),style:{minWidth:`150px`},children:y(s)})}),(0,n.jsx)(i.MenuPopover,{children:(0,n.jsxs)(i.MenuList,{onCheckedValueChange:b,checkedValues:l,children:[(0,n.jsx)(i.MenuItemRadio,{icon:(0,n.jsx)(f,{}),name:`view`,value:W.Day,children:o.day}),(0,n.jsx)(i.MenuItemRadio,{icon:(0,n.jsx)(m,{}),name:`view`,value:W.Week,children:o.week}),(0,n.jsx)(i.MenuItemRadio,{icon:(0,n.jsx)(p,{}),name:`view`,value:W.Month,children:o.month})]})})]})})},rn=t.memo(e=>{let{onSelected:a,value:o}=e,[s,c]=t.useState(o??new Date),[l,u]=t.useState(()=>(0,r.format)(o??new Date,`dd MMM, yyyy`)),[f,p]=t.useState(!1),m=t.useCallback((e,t)=>{p(t.open)},[]),g=t.useMemo(()=>(0,d.bundleIcon)(d.CalendarMonthFilled,d.CalendarMonthRegular),[]),_=t.useCallback(e=>{if(e){let t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=(0,r.utcToZonedTime)(e,t);c(n),u((0,r.format)(n,`dd MMM, yyyy`)),a(n),p(!1)}},[a]);return(0,n.jsxs)(i.Menu,{open:f,onOpenChange:m,children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{shape:`circular`,icon:(0,n.jsx)(g,{}),style:{minWidth:`200px`},"aria-label":`Select date: ${l}`,children:l})}),(0,n.jsx)(i.MenuPopover,{style:{maxWidth:`fit-content`},children:(0,n.jsx)(i.MenuList,{children:(0,n.jsx)(h.Calendar,{highlightSelectedMonth:!0,showGoToToday:!0,onSelectDate:_,value:s})})})]})}),an=()=>({root:(0,l.css)({outline:`none`})}),on={months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],goToToday:`Go to today`},sn=e=>{let{onDateChange:r,defaultSelectedDate:i,onDismiss:a,strings:o=on}=e,s=an(),[c,l]=t.useState(i??new Date),u=t.useCallback((e,t)=>{l(e),r(e),a()},[r,a]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(h.Calendar,{className:s.root,dateRangeType:h.DateRangeType.Month,highlightSelectedMonth:!0,isDayPickerVisible:!1,onSelectDate:u,value:c,onDismiss:a,showGoToToday:!1,allFocusable:!1,strings:o})})},cn=e=>{let{onSelected:r,value:o}=e,s=(0,d.bundleIcon)(d.CalendarMonthFilled,d.CalendarMonthRegular),[c,l]=t.useState(o??new Date);t.useEffect(()=>{r(o??new Date),l(o??new Date)},[o]);let[u,f]=t.useState(!1),p=(e,t)=>{f(t.open)},m=t.useCallback(e=>{r(e),l(e)},[]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(i.Menu,{open:u,onOpenChange:p,children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{shape:`circular`,icon:(0,n.jsx)(s,{}),style:{minWidth:`200px`},"aria-label":`Select month: ${(0,a.format)(c,`MMMM yyyy`)}`,children:(0,a.format)(c,`MMMM yyyy`)})}),(0,n.jsx)(i.MenuPopover,{children:(0,n.jsx)(i.MenuList,{children:(0,n.jsx)(sn,{onDateChange:m,defaultSelectedDate:c,onDismiss:()=>{f(!1)}})})})]})})},ln={selectWeekPlaceholder:`Select a week`},un=e=>{let t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=(0,r.format)(e.start,`MMM`,{timeZone:t}),i=(0,r.format)(e.end,`MMM`,{timeZone:t});return(0,r.format)(e.start,`yyyy`,{timeZone:t})===(0,r.format)(e.end,`yyyy`,{timeZone:t})?n===i?`${(0,r.format)(e.start,`dd`,{timeZone:t})} - ${(0,r.format)(e.end,`dd MMM yyyy`,{timeZone:t})}`:`${(0,r.format)(e.start,`dd MMM`,{timeZone:t})} - ${(0,r.format)(e.end,`dd MMM yyyy`,{timeZone:t})}`:`${(0,r.format)(e.start,`dd MMM yyyy`,{timeZone:t})} - ${(0,r.format)(e.end,`dd MMM yyyy`,{timeZone:t})}`},dn=e=>{let t=Intl.DateTimeFormat().resolvedOptions().timeZone,n=(0,r.utcToZonedTime)(e,t),i=new Date(n);i.setDate(n.getDate()-n.getDay());let a=new Date(i);return a.setDate(i.getDate()+6),{start:(0,r.utcToZonedTime)(i,t),end:(0,r.utcToZonedTime)(a,t)}},fn=t.memo(e=>{let{onSelected:r,value:a,strings:o=ln}=e,s=h.DateRangeType.Week,[c,l]=t.useState(a??new Date),[u,f]=t.useState(()=>{let e=a??new Date;return e?un(dn(e)):o.selectWeekPlaceholder}),[p,m]=t.useState(!1),g=t.useCallback((e,t)=>{m(t.open)},[]),_=t.useMemo(()=>(0,d.bundleIcon)(d.CalendarMonthFilled,d.CalendarMonthRegular),[]),v=t.useCallback(e=>{if(e){l(e);let t=dn(e);f(un(t)),r({startDate:t.start,endDate:t.end}),m(!1)}},[r]),y=t.useMemo(()=>0,[]);return(0,n.jsxs)(i.Menu,{open:p,onOpenChange:g,children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{shape:`circular`,icon:(0,n.jsx)(_,{}),style:{minWidth:`200px`},"aria-label":`Select week: ${u}`,children:u})}),(0,n.jsx)(i.MenuPopover,{style:{maxWidth:`fit-content`},children:(0,n.jsx)(i.MenuList,{children:(0,n.jsx)(h.Calendar,{dateRangeType:s,highlightSelectedMonth:!0,showGoToToday:!0,onSelectDate:v,value:c,firstDayOfWeek:y})})})]})}),pn={today:`Today`,previous:`Previous`,next:`Next`},mn=t.memo(({selectedView:e,onSelectedView:r,currentDate:a,setCurrentDate:o,onWeekChange:s,onMonthChange:c,onDayChange:l,strings:u=pn})=>{let f=t.useMemo(()=>(0,d.bundleIcon)(d.ArrowDownFilled,d.ArrowDownRegular),[]),p=t.useMemo(()=>(0,d.bundleIcon)(d.ArrowUpFilled,d.ArrowUpRegular),[]),m=t.useCallback(e=>{s(e.startDate),o(e.startDate)},[s,o]),h=t.useCallback(e=>{c(e),o(e)},[c,o]),g=t.useCallback(e=>{l(e),o(e)},[l,o]),_=t.useCallback(()=>{switch(e){case W.Month:return(0,n.jsx)(cn,{onSelected:h,value:a});case W.Week:return(0,n.jsx)(fn,{onSelected:m,value:a});case W.Day:return(0,n.jsx)(rn,{onSelected:g,value:a});default:return(0,n.jsx)(cn,{onSelected:h,value:a})}},[e,h,m,g,a]),v=t.useCallback(()=>(0,n.jsx)(i.Tooltip,{content:u.today,relationship:`label`,children:(0,n.jsx)(i.Button,{shape:`circular`,icon:(0,n.jsx)(d.CalendarTodayRegular,{}),size:`medium`,onClick:()=>l(new Date),children:u.today})}),[l,u.today]),y=t.useCallback(t=>{let n=new Date(a);switch(e){case W.Month:n.setMonth(n.getMonth()+t),c(n);break;case W.Week:n.setDate(n.getDate()+t*7),s(n);break;case W.Day:n.setDate(n.getDate()+t),l(n);break;default:break}o(n)},[a,e,c,s,l,o]);return(0,n.jsxs)(B,{width:`calc(100% - 40px)`,height:`fit-content`,horizontal:!0,horizontalAlign:`space-between`,verticalAlign:`center`,paddingLeft:`20px`,paddingRight:`20px`,paddingBottom:`10px`,paddingTop:`10px`,columnGap:10,styles:{overflow:`hidden`},children:[(0,n.jsxs)(B,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,columnGap:10,children:[(0,n.jsx)(v,{}),(0,n.jsx)(_,{}),(0,n.jsx)(i.Tooltip,{content:u.previous,relationship:`label`,children:(0,n.jsx)(i.Button,{size:`medium`,icon:(0,n.jsx)(p,{fontSize:14}),onClick:()=>y(-1)})}),(0,n.jsx)(i.Tooltip,{content:u.next,relationship:`label`,children:(0,n.jsx)(i.Button,{size:`medium`,icon:(0,n.jsx)(f,{fontSize:14}),onClick:()=>y(1)})})]}),(0,n.jsx)(B,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,columnGap:10,children:(0,n.jsx)(nn,{onSelected:r,value:e})})]})}),hn={allDay:`All Day`},gn=e=>{let{events:r,currentDay:o,height:s,strings:l=hn}=e,{styles:u}=Kt(),[d]=(0,t.useState)(o),[f,p]=(0,t.useState)(32),m=(0,t.useRef)(null),{getSpanSlots:h,getEventColors:g,getCalendarColors:_,formatDate:v}=Lt(),y=(0,a.startOfWeek)(d,{weekStartsOn:0}),b=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:x}=Xt(b);(0,t.useEffect)(()=>{let e=new c.ResizeObserver(()=>{if(m.current){let e=m.current.querySelector(`.dayCell`);e&&p(e.offsetHeight)}});return m.current&&e.observe(m.current),()=>{e.disconnect()}},[]);let S=t.useCallback(()=>Array.from({length:24},(e,r)=>(0,n.jsxs)(t.Fragment,{children:[(0,n.jsx)(`div`,{className:u.timeCell,children:(0,n.jsxs)(i.Body1Strong,{children:[r,`:00`]})}),(0,n.jsx)(`div`,{className:u.timeCell})]},r)),[u.timeCell]),C=t.useCallback(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:u.blankHeader}),Array.from({length:7},(e,t)=>{let r=(0,a.addDays)(y,t),o=(0,a.isToday)(r)?u.todayHeaderCell:``;return(0,n.jsxs)(`div`,{className:(0,i.mergeClasses)(u.dayHeaderCell,o),children:[(0,n.jsx)(i.Text,{weight:`regular`,size:600,style:{paddingRight:10},children:v(r.toISOString(),`dd`)}),(0,n.jsx)(i.Body1,{children:v(r.toISOString(),`EEE`)})]},t)})]}),[y,u,v]),w=t.useCallback(()=>{let e=x(r,y.toISOString());return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:u.fullDayLabel,children:(0,n.jsx)(i.Body1,{children:l.allDay})}),Array.from({length:7},(t,r)=>{let o=v((0,a.addDays)(y,r).toISOString(),`yyyy-MM-dd`),s=e.find(e=>e.date===o)?.fullDayEvents||[];return(0,n.jsx)(`div`,{className:u.fullDayCell,children:s.map(e=>(0,n.jsx)(`div`,{className:u.fullDayEvent,style:{gridColumn:`${r+2}`,backgroundColor:e.color?_(e.color).backgroundColor:g(e.category).backgroundColor},children:(0,n.jsx)(i.Caption1Strong,{className:u.eventTitle,children:e.title})},e.id))},r)})]})},[y,u,x,_,g,r,v,l.allDay]),T=t.useCallback(()=>{let e=x(r,y.toISOString());return Array.from({length:7},(t,r)=>{let i=(0,a.format)((0,a.addDays)(y,r),`yyyy-MM-dd`);return(0,n.jsx)(n.Fragment,{children:e.find(e=>e.date===i)?.timeSlots.map((e,t)=>{let r=e.events.length;return(0,n.jsx)(`div`,{className:u.dayCell,style:{gridRow:t+3},children:e.events.map((e,i)=>{let{spanSlots:a,startSlot:o}=h(new Date(e.start),new Date(e.end));return t===o?(0,n.jsx)(Yt,{event:e,eventCount:r,spanSlots:a,rowHeight:f,eventIndex:i,view:`week`},e.id):null})},t)})})})},[y,u,x,h,f,r]);return(0,n.jsx)(`div`,{className:u.container,style:{height:s},children:(0,n.jsxs)(`div`,{ref:m,className:u.weekGrid,children:[(0,n.jsx)(`div`,{className:u.timeColumn,children:S()}),C(),w(),T()]})})},_n={daysOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},vn=({currentDate:e,rowHeight:t,getCalendarDays:r,getEventsForDay:a,styles:o,onDaySlotClick:s,height:c,calendarRef:l,strings:u})=>{let d=u?.daysOfWeek||_n.daysOfWeek;return(0,n.jsx)(B,{height:c,width:`100%`,verticalAlign:`start`,horizontalAlign:`start`,children:(0,n.jsxs)(`div`,{className:o.calendarWrapper,ref:l,role:`grid`,"aria-label":`Calendar`,children:[d.map((e,t)=>{let r=t===0||t===6;return(0,n.jsx)(i.Body1,{className:o.dayHeader,style:{color:r?i.tokens.colorPaletteRedForeground1:void 0},role:`columnheader`,children:e},e)}),r(e).map((e,r)=>{let{day:i,currentMonth:o}=e,c=o?a(e):[];return(0,n.jsx)(Gt,{day:i,date:e.date,currentMonth:e.currentMonth,events:c,columnHeight:t||0,onDayClick:s},r)})]})})},yn=t.memo(({events:e,currentDay:t,height:r,strings:i})=>(0,n.jsx)(gn,{events:e,currentDay:t,height:r,strings:i})),bn=t.memo(({events:e,currentDay:t,height:r,strings:i})=>(0,n.jsx)(en,{currentDay:t,events:e,height:r,strings:i})),xn=({events:e,height:r=800,theme:o,onDayChange:s,onMonthChange:l,onWeekChange:u,onViewChange:d,onDaySlotClick:f,defaultView:p,strings:m})=>{let{styles:h}=Ut(),g=(0,t.useRef)(null),[_,v]=(0,t.useState)(null),y=(0,t.useRef)(0),[b,x]=(0,t.useState)(new Date),[S,C]=(0,t.useState)(p??W.Month),{getMonthCalendar:w}=Xt(Intl.DateTimeFormat().resolvedOptions().timeZone),T=t.useCallback(e=>{let t=e.getMonth(),n=(0,a.startOfWeek)((0,a.startOfMonth)(e));return Array.from({length:42},(e,r)=>{let i=(0,a.addDays)(n,r);return{day:i.getDate(),currentMonth:i.getMonth()===t,date:i}})},[42]),E=t.useCallback(e=>{l&&l(e),x(e)},[l]),D=t.useCallback(e=>{s&&s(e),x(e)},[s]),O=t.useCallback(e=>{u&&u(e),x(e)},[u]),k=t.useCallback(e=>{d&&d(e),C(e)},[d]),A=t.useCallback(t=>{let{date:n}=t;return w(e,b.getFullYear(),b.getMonth())[(0,a.format)(n,`yyyy-MM-dd`)]?.flatMap(e=>e)||[]},[b,e]),j=t.useCallback(()=>{g.current&&requestAnimationFrame(()=>{if(g.current){let e=g.current.querySelector(`.${h.calendarWrapper} > div:nth-child(8)`);e&&(v(e.offsetHeight),y.current=e.offsetHeight)}})},[h.calendarWrapper]);(0,t.useEffect)(()=>{let e=new c.ResizeObserver(j);return g.current&&e.observe(g.current),j(),window.addEventListener(`resize`,j),()=>{e.disconnect(),window.removeEventListener(`resize`,j)}},[j,S]),(0,t.useEffect)(()=>{C(p||W.Month)},[p]);let M=t.useCallback(()=>{switch(S){case W.Month:return(0,n.jsx)(vn,{events:e,currentDate:b,rowHeight:_,getCalendarDays:T,getEventsForDay:A,styles:h,onDaySlotClick:f,height:r,calendarRef:g,strings:m?.calendarControl});case W.Week:return(0,n.jsx)(yn,{events:e,currentDay:b,height:r,strings:m?.weekView});case W.Day:return(0,n.jsx)(bn,{events:e,currentDay:b,height:r,strings:m?.dayView});default:return(0,n.jsx)(vn,{events:e,currentDate:b,rowHeight:_,getCalendarDays:T,getEventsForDay:A,styles:h,onDaySlotClick:f,height:r,calendarRef:g,strings:m?.calendarControl})}},[S,e,b,_,T,A,h,f,r]),N=(0,n.jsxs)(B,{height:`100%`,verticalAlign:`start`,children:[(0,n.jsx)(mn,{selectedView:S,onSelectedView:k,currentDate:b,setCurrentDate:x,onWeekChange:O,onMonthChange:E,onDayChange:D,strings:m?.toolbar}),(0,n.jsx)(M,{})]});return(0,n.jsx)(i.IdPrefixProvider,{value:`calendarControl-`,children:o?(0,n.jsx)(i.FluentProvider,{theme:o,applyStylesToPortals:!0,style:{width:`100%`},children:N}):(0,n.jsx)(`div`,{style:{width:`100%`},children:N})})},Sn=()=>({styles:{root:(0,l.css)({marginLeft:i.tokens.spacingHorizontalM,marginRight:i.tokens.spacingHorizontalM,marginBottom:i.tokens.spacingVerticalM,marginTop:i.tokens.spacingVerticalM,containerType:`inline-size`,backgroundColor:i.tokens.colorNeutralBackground1,borderRadius:8,border:`1px solid ${i.tokens.colorNeutralStroke2}`}),header:(0,l.css)({borderBottom:`1px solid ${i.tokens.colorNeutralStroke2}`}),headerBackButton:(0,l.css)({fontSize:`clamp(6px, 3.5cqw, 22px)`}),headerLabel:(0,l.css)({textTransform:`capitalize`}),calendar:(0,l.css)({borderBottom:`1px solid ${i.tokens.colorNeutralStroke2}`,backgroundColor:i.tokens.colorNeutralBackground2}),weekdaysCorner:(0,l.css)({flex:`0 0 32px`}),weekday:(0,l.css)({flex:`1 1 calc(100% / 7)`,maxWidth:`calc(100% / 7)`,textAlign:`center`,textTransform:`capitalize`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`default`,userSelect:`none`,paddingBlock:`4px`,boxSizing:`border-box`}),weekNumber:(0,l.css)({flex:`0 0 28px`,marginInlineEnd:`4px`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`default`,userSelect:`none`}),day:(0,l.css)({flex:`1 1 calc(100% / 7)`,maxWidth:`calc(100% / 7)`,height:`48px`,minWidth:`0 !important`,padding:`4px !important`,fontWeight:500,fontSize:`clamp(6px, 3.5cqw, 22px)`,color:`${i.tokens.colorNeutralForeground1} !important`,cursor:`pointer`,userSelect:`none`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,position:`relative`,zIndex:0,borderRadius:0,"::before":{width:`32px`,height:`32px`,borderRadius:`100%`,content:`""`,position:`absolute`,top:`7px`,left:`calc(50% - 16px)`,zIndex:-1,pointerEvents:`none`},":focus-visible":{zIndex:1,outline:`2px solid ${i.tokens.colorBrandStroke1}`,outlineOffset:`-2px`,borderRadius:i.tokens.borderRadiusMedium},":hover::before":{backgroundColor:i.tokens.colorNeutralBackground1Hover}}),dayHidden:(0,l.css)({visibility:`hidden`,pointerEvents:`none`}),dayWeekend:(0,l.css)({color:`${i.tokens.colorPaletteRedForeground1} !important`}),dayOutside:(0,l.css)({color:`${i.tokens.colorNeutralForeground3} !important`}),dayToday:(0,l.css)({"::before":{backgroundColor:i.tokens.colorNeutralBackground3}}),daySelected:(0,l.css)({color:`${i.tokens.colorNeutralForegroundOnBrand} !important`,"::before":{backgroundColor:i.tokens.colorBrandBackground},":hover::before":{backgroundColor:i.tokens.colorBrandBackgroundHover}}),dayIndicators:(0,l.css)({position:`absolute`,bottom:`2px`,insetInline:0,paddingInlineStart:`2px`}),dayIndicator:(0,l.css)({width:`5px`,height:`5px`,borderRadius:`100%`,marginInlineStart:`-1px`}),eventsList:(0,l.css)({flex:1,minHeight:0,overflowY:`auto`,scrollbarWidth:`thin`,scrollbarColor:`${i.tokens.colorBrandBackground} ${i.tokens.colorNeutralBackground3}`,"&::-webkit-scrollbar":{width:`3px`,height:`3px`},"&::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground3,borderRadius:i.tokens.borderRadiusMedium},"&::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandBackground,borderRadius:i.tokens.borderRadiusMedium},"&::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorBrandBackgroundHover}}),eventsHeader:(0,l.css)({textTransform:`capitalize`}),event:(0,l.css)({cursor:`pointer`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke2}`,padding:`0 !important`,borderRadius:0,boxShadow:`none`,":last-child":{borderBottom:`none`},":hover":{backgroundColor:i.tokens.colorNeutralBackground1Hover},":focus-visible":{outline:`2px solid ${i.tokens.colorBrandStroke1}`,outlineOffset:`-2px`,borderRadius:i.tokens.borderRadiusMedium}}),eventColor:(0,l.css)({width:`4px`,borderRadius:`2px`,flexShrink:0,alignSelf:`stretch`}),eventTimeColor:i.tokens.colorNeutralForeground3}}),Cn=e=>(0,a.getISOWeek)(e[0]),wn=t.memo(e=>{let{weeks:r,date:o,selectedDate:s,today:c,orderedShortDays:l,groupedEvents:u,weekendDays:d,firstDayOfWeek:f,highlightToday:p,withOutsideDays:m,withWeekNumbers:h,onDayClick:g,getEventColor:_,locale:v}=e,{styles:y}=Sn(),b=t.useRef([]),x=t.useRef(null);x.current=null;let S=t.useCallback((e,t,n)=>{let r=e,i=t;switch(n.key){case`ArrowRight`:i+=1,i>=7&&(i=0,r+=1);break;case`ArrowLeft`:--i,i<0&&(i=6,--r);break;case`ArrowDown`:r+=1;break;case`ArrowUp`:--r;break;default:return}n.preventDefault();let a=b.current[r]?.[i];a&&a instanceof HTMLElement&&a.focus()},[]),C=t.useMemo(()=>(0,n.jsxs)(H,{direction:`horizontal`,marginBottom:i.tokens.spacingVerticalXS,children:[h&&(0,n.jsx)(`div`,{className:y.weekdaysCorner}),l.map((e,t)=>{let r=(f+t)%7,a=d.includes(r);return(0,n.jsx)(Ot,{as:`span`,fontSize:i.tokens.fontSizeBase200,fontWeight:`semibold`,color:a?i.tokens.colorPaletteRedForeground1:i.tokens.colorNeutralForeground3,className:y.weekday,style:{textAlign:`center`,width:`100%`},children:e},t)})]}),[l,h,y.weekdaysCorner,y.weekday]),w=t.useMemo(()=>r.map((e,t)=>{let r=e.map((e,r)=>{let l=!(0,a.isSameMonth)(e,o),f=d.includes((0,a.getDay)(e)),h=(0,a.isSameDay)(e,c)&&p,C=s?(0,a.isSameDay)(e,s):!1,w=u[(0,a.format)(e,`yyyy-MM-dd`)]||[],T=m||!l;T&&x.current===null&&(x.current={weekIndex:t,dayIndex:r});let E=x.current?.weekIndex===t&&x.current?.dayIndex===r,D=w.slice(0,3).map(e=>(0,n.jsx)(`div`,{className:y.dayIndicator,style:{backgroundColor:_(e)}},e.id));return(0,n.jsxs)(i.Button,{appearance:`transparent`,className:(0,i.mergeClasses)(y.day,!T&&y.dayHidden,l&&T&&!C&&!f&&y.dayOutside,f&&T&&!C&&y.dayWeekend,h&&!C&&y.dayToday,C&&y.daySelected),"aria-label":(0,a.format)(e,`MMMM d, yyyy`,{locale:v}),"aria-selected":C||void 0,tabIndex:T&&E?0:-1,onClick:T?()=>g(e):void 0,onKeyDown:T?e=>S(t,r,e):void 0,ref:e=>{b.current[t]||(b.current[t]=[]),b.current[t][r]=e},children:[T?e.getDate():null,T&&(0,n.jsx)(H,{direction:`horizontal`,justifyContent:`center`,className:y.dayIndicators,children:D})]},e.toISOString())}),l=Cn(e);return(0,n.jsxs)(H,{direction:`horizontal`,children:[h&&(0,n.jsx)(Ot,{fontSize:`xs`,color:i.tokens.colorNeutralForeground3,className:y.weekNumber,children:l}),r]},t)}),[r,o,s,c,d,p,m,h,u,_,g,S,y,v]);return(0,n.jsxs)(H,{direction:`vertical`,padding:i.tokens.spacingVerticalS,className:y.calendar,children:[C,w]})}),Tn=t.memo(e=>{let{date:r,renderHeader:o,onYearClick:s,locale:c}=e,{styles:l}=Sn(),u=(0,a.format)(r,`MMMM yyyy`,{locale:c}),f=t.useMemo(()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Button,{appearance:`subtle`,className:l.headerBackButton,onClick:s,icon:(0,n.jsx)(d.ChevronRight20Regular,{style:{transform:`rotate(90deg)`}}),children:(0,a.format)(r,`yyyy`)}),(0,n.jsx)(Ot,{fontWeight:`bold`,className:l.headerLabel,children:u})]}),[r,s,l]),p=t.useMemo(()=>typeof o==`function`?o({date:r,defaultHeader:f}):f,[o,r,f]);return(0,n.jsx)(H,{direction:`horizontal`,alignItems:`center`,justifyContent:`space-between`,padding:i.tokens.spacingVerticalS,className:l.header,children:p})}),En=t.memo(({currentDate:e,onDateChange:r,todayLabel:a=`Today`,previousLabel:o=`Previous`,nextLabel:s=`Next`})=>{let c=t.useMemo(()=>(0,d.bundleIcon)(d.ArrowDownFilled,d.ArrowDownRegular),[]),l=t.useMemo(()=>(0,d.bundleIcon)(d.ArrowUpFilled,d.ArrowUpRegular),[]),u=t.useCallback(()=>{r(new Date)},[r]),f=t.useCallback(e=>{r(e)},[r]),p=t.useCallback(t=>{let n=new Date(e);n.setMonth(n.getMonth()+t),r(n)},[e,r]);return(0,n.jsxs)(H,{direction:`horizontal`,justifyContent:`flex-start`,alignItems:`center`,gap:`s`,padding:`10px 20px`,style:{overflow:`hidden`},children:[(0,n.jsx)(i.Tooltip,{content:a,relationship:`label`,children:(0,n.jsx)(i.Button,{shape:`circular`,icon:(0,n.jsx)(d.CalendarTodayRegular,{}),size:`medium`,onClick:u,"aria-label":a,children:a})}),(0,n.jsx)(cn,{onSelected:f,value:e}),(0,n.jsx)(i.Tooltip,{content:o,relationship:`label`,children:(0,n.jsx)(i.Button,{size:`medium`,icon:(0,n.jsx)(l,{fontSize:14}),onClick:()=>p(-1)})}),(0,n.jsx)(i.Tooltip,{content:s,relationship:`label`,children:(0,n.jsx)(i.Button,{size:`medium`,icon:(0,n.jsx)(c,{fontSize:14}),onClick:()=>p(1)})})]})}),Dn=e=>{let{events:r,header:o,allDayLabel:s,noEventsLabel:c,onEventClick:l,renderEvent:u,getEventColor:d,locale:f}=e,{styles:p}=Sn(),m=t.useCallback(e=>{let t=(0,a.format)(new Date(e.start),`p`,{locale:f}),r=(0,a.format)(new Date(e.end),`p`,{locale:f}),o=e.isFullDay||t===`00:00`&&r===`00:00`;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ze,{padding:`0px`,appearance:`subtle`,onClick:t=>l?.(e,t),cardBody:(0,n.jsxs)(H,{direction:`horizontal`,gap:`s`,paddingTop:i.tokens.spacingVerticalXS,paddingBottom:i.tokens.spacingVerticalXS,children:[(0,n.jsx)(`div`,{className:p.eventColor,style:{backgroundColor:d(e)}}),(0,n.jsxs)(H,{direction:`vertical`,children:[(0,n.jsx)(Ot,{as:`span`,fontWeight:`semibold`,fontSize:`s`,children:e.title}),(0,n.jsx)(Ot,{as:`span`,fontSize:`xs`,color:p.eventTimeColor,children:o?s:`${t} – ${r}`})]})]})},e.id),(0,n.jsx)(i.Divider,{style:{margin:0}})]})},[s,d,l,p]);return(0,n.jsxs)(H,{direction:`vertical`,padding:i.tokens.spacingVerticalS,className:p.eventsList,children:[(0,n.jsx)(Ot,{as:`span`,fontWeight:`bold`,marginBottom:i.tokens.spacingVerticalS,marginLeft:i.tokens.spacingHorizontalS,className:p.eventsHeader,children:o}),(0,n.jsx)(i.Divider,{style:{paddingLeft:i.tokens.spacingHorizontalS,paddingRight:i.tokens.spacingHorizontalS,paddingTop:i.tokens.spacingVerticalS}}),(0,n.jsx)(H,{direction:`vertical`,gap:`s`,style:{backgroundColor:`transparent`},padding:`s`,children:r.length>0?r.map(e=>u?u(e,m(e)):m(e)):(0,n.jsx)(Ot,{block:!0,color:i.tokens.colorNeutralForeground3,paddingTop:i.tokens.spacingVerticalXXL,paddingBottom:i.tokens.spacingVerticalXXL,style:{textAlign:`center`},children:c})})]})},On=e=>{let t=(0,a.startOfDay)(new Date(e.start)),n=(0,a.startOfDay)(new Date(e.end));return t.getTime()!==n.getTime()},kn=(e,t)=>{if(On(e)){let n=(0,a.startOfDay)(new Date(e.start)),r=(0,a.startOfDay)(new Date(e.end)),i=n;for(;(0,a.isBefore)(i,r)||(0,a.isEqual)(i,r);){let n=(0,a.format)(i,`yyyy-MM-dd`);t[n]||(t[n]=[]),t[n].push(e),i=(0,a.addDays)(i,1)}return}let n=(0,a.format)(new Date(e.start),`yyyy-MM-dd`);t[n]||(t[n]=[]),t[n].push(e)},An=(e,t)=>{let n={};if(!t)return n;let r=new Set;for(let i of t)if((0,a.isSameMonth)(new Date(i.start),e)){if(r.has(i.id)){console.warn(`[CompactCalendar] Duplicate event id found: ${i.id}`);continue}r.add(i.id),kn(i,n)}return n},jn=(e,n)=>(0,t.useMemo)(()=>An(e,n),[e,n]),Mn={en:o.enUS,"en-US":o.enUS,"en-us":o.enUS,ar:o.ar,"ar-SA":o.arSA,"ar-sa":o.arSA,az:o.az,"az-AZ":o.az,bg:o.bg,"bg-BG":o.bg,bs:o.bs,"bs-BA":o.bs,ca:o.ca,"ca-ES":o.ca,cs:o.cs,"cs-CZ":o.cs,cy:o.cy,da:o.da,"da-DK":o.da,de:o.de,"de-DE":o.de,el:o.el,"el-GR":o.el,es:o.es,"es-ES":o.es,et:o.et,"et-EE":o.et,eu:o.eu,fi:o.fi,"fi-FI":o.fi,fr:o.fr,"fr-FR":o.fr,gl:o.gl,he:o.he,"he-IL":o.he,hi:o.hi,"hi-IN":o.hi,hr:o.hr,"hr-HR":o.hr,hu:o.hu,"hu-HU":o.hu,id:o.id,"id-ID":o.id,it:o.it,"it-IT":o.it,ja:o.ja,"ja-JP":o.ja,kk:o.kk,"kk-KZ":o.kk,ko:o.ko,"ko-KR":o.ko,lt:o.lt,"lt-LT":o.lt,lv:o.lv,"lv-LV":o.lv,mk:o.mk,"mk-MK":o.mk,ms:o.ms,"ms-MY":o.ms,nb:o.nb,"nb-NO":o.nb,nl:o.nl,"nl-NL":o.nl,pl:o.pl,"pl-PL":o.pl,pt:o.pt,"pt-PT":o.pt,"pt-BR":o.ptBR,ro:o.ro,"ro-RO":o.ro,ru:o.ru,"ru-RU":o.ru,sk:o.sk,"sk-SK":o.sk,sl:o.sl,"sl-SI":o.sl,sr:o.sr,"sr-RS":o.sr,sv:o.sv,"sv-SE":o.sv,th:o.th,"th-TH":o.th,tr:o.tr,"tr-TR":o.tr,uk:o.uk,"uk-UA":o.uk,vi:o.vi,"vi-VN":o.vi,zh:o.zhCN,"zh-CN":o.zhCN};function Nn(e){return e?typeof e==`object`&&e?e:Mn[e]||(Mn[e.split(`-`)[0].toLowerCase()]??o.enUS):o.enUS}var Pn=[0,6],Fn=(e,t,n)=>{let r=(0,a.startOfMonth)(e),i=(0,a.getDay)(r),o=(0,a.getDaysInMonth)(e),s=(i-t+7)%7,c=(0,a.subDays)(r,s),l=n?42:Math.ceil((s+o)/7)*7,u=[],d=c;for(let e=0;e<l;e++){let t=Math.floor(e/7);u[t]||(u[t]=[]),u[t].push(d),d=(0,a.addDays)(d,1)}return u},In=r=>{let{date:o,selectedDate:s,defaultSelectedDate:c,onSelectedDateChange:l,withWeekNumbers:u=!1,firstDayOfWeek:d=1,weekendDays:f=Pn,consistentWeeks:p=!0,highlightToday:m=!0,withOutsideDays:h=!1,showToolbar:g=!1,events:_,onDayClick:v,onEventClick:y,onYearClick:b,renderHeader:x,renderEvent:S,eventsHeaderFormat:C=`EEEE, MMMM d`,locale:w,height:T,className:E,strings:D}=r,{styles:O}=Sn(),{getCalendarColors:k}=Lt(),A=e.s(),j=e.m(),M=t.useMemo(()=>Nn(w??j?.locale),[w,j?.locale]),[N,ee]=t.useState(c??new Date),P=s===void 0?N:s,F=t.useCallback(e=>{s===void 0&&ee(e),l?.(e)},[s,l]),I=t.useMemo(()=>new Date,[]),L=jn(o,_),R=D?.shortDays??A.shortDays,te=t.useMemo(()=>{let e=[];for(let t=0;t<7;t++)e.push(R[(d+t)%7]);return e},[R,d]),ne=t.useMemo(()=>Fn(o,d,p),[o,d,p]),re=t.useCallback(e=>e.hexColor?e.hexColor:e.color?k(e.color).backgroundColor:k(`royal-blue`).backgroundColor,[k]),ie=t.useCallback(e=>{F(e),v?.(e)},[F,v]),z=P?(0,a.format)(P,`yyyy-MM-dd`):``,ae=z?(L[z]||[]).sort((e,t)=>new Date(e.start).getTime()-new Date(t.start).getTime()):[],oe=P?(0,a.format)(P,C,{locale:M}):``;return(0,n.jsxs)(H,{direction:`vertical`,height:T??`100%`,className:(0,i.mergeClasses)(O.root,E),children:[g?(0,n.jsx)(En,{currentDate:o,onDateChange:e=>r.onDateChange?.(e),todayLabel:D?.today??A.today??`Today`,previousLabel:D?.previous??A.previous??`Previous`,nextLabel:D?.next??A.next??`Next`}):(0,n.jsx)(Tn,{date:o,renderHeader:x,onYearClick:b,locale:M}),(0,n.jsx)(wn,{weeks:ne,date:o,selectedDate:P,today:I,orderedShortDays:te,groupedEvents:L,weekendDays:f,firstDayOfWeek:d,highlightToday:m,withOutsideDays:h,withWeekNumbers:u,onDayClick:ie,getEventColor:re,locale:M}),(0,n.jsx)(Dn,{events:ae,header:oe,allDayLabel:D?.allDay??A.allDay,noEventsLabel:D?.noEvents??A.noEvents,onEventClick:y,renderEvent:S,getEventColor:re,locale:M})]})},Ln=(0,g.atom)(!1),Rn=(0,g.atom)(-1),zn=(0,g.atom)(``),Bn=(0,g.atom)(``),Vn=(0,g.atom)(new Set),Hn=(0,g.atom)(!0),Un=(0,g.atom)(void 0);function Wn(){return(0,g.createStore)()}var Gn=Wn();function Kn(e){return{opened:e.get(Ln),selected:e.get(Rn),listId:e.get(zn),query:e.get(Bn),registeredActions:e.get(Vn)}}var G={open(e){e.set(Ln,!0),e.set(Rn,-1)},close(e){e.set(Ln,!1)},toggle(e){e.get(Ln)?e.set(Ln,!1):(e.set(Ln,!0),e.set(Rn,-1))},setQuery(e,t){t.get(Un)?.(e),t.set(Bn,e),Promise.resolve().then(()=>{G.selectAction(0,t)})},setListId(e,t){t.set(zn,e)},selectAction(e,t){let n=t.get(zn),r=n?document.getElementById(n):null,i=r?.querySelector(`[data-spotlight-selected]`),a=r?.querySelectorAll(`[data-spotlight-action]`)??[];if(a.length===0)return t.set(Rn,-1),-1;let o=e<0?a.length-1:e>=a.length?0:e,s=Math.max(0,Math.min(o,a.length-1));return i?.removeAttribute(`data-spotlight-selected`),a[s]?.scrollIntoView({block:`nearest`}),a[s]?.setAttribute(`data-spotlight-selected`,`true`),t.set(Rn,s),s},selectNextAction(e){return G.selectAction(e.get(Rn)+1,e)},selectPreviousAction(e){return G.selectAction(e.get(Rn)-1,e)},triggerSelectedAction(e){let t=e.get(zn);(t?document.querySelector(`#${t} [data-spotlight-selected]`):null)?.click()},clearState(e,t){t.set(Rn,-1),e.clearQuery&&t.set(Bn,``)}},qn={open:()=>G.open(Gn),close:()=>G.close(Gn),toggle:()=>G.toggle(Gn)},Jn=qn.open,Yn=qn.close,Xn=qn.toggle;function Zn(){let e=Wn();return[e,{open:()=>G.open(e),close:()=>G.close(e),toggle:()=>G.toggle(e)}]}function Qn(e=Gn){let[n,r]=(0,t.useState)(()=>Kn(e));return(0,t.useEffect)(()=>{let t=()=>r(Kn(e)),n=[e.sub(Ln,t),e.sub(Rn,t),e.sub(zn,t),e.sub(Bn,t),e.sub(Vn,t)];return t(),()=>n.forEach(e=>e())},[e]),n}function $n(e){let t=e.toLowerCase().split(`+`).map(e=>e.trim()),n=typeof navigator<`u`&&/Mac|iPhone|iPad|iPod/i.test(navigator.userAgent);return{key:t[t.length-1],ctrlKey:t.includes(`ctrl`)||!n&&t.includes(`mod`),metaKey:t.includes(`meta`)||n&&t.includes(`mod`),shiftKey:t.includes(`shift`),altKey:t.includes(`alt`)}}function er(e,n=Gn,r=[`INPUT`,`TEXTAREA`,`SELECT`]){let i=(0,t.useCallback)(t=>{if(!e)return;let i=t.target;if(r.includes(i.tagName)||i.isContentEditable)return;let a=Array.isArray(e)?e:[e];for(let e of a){let r=$n(e);if(t.key.toLowerCase()===r.key&&t.ctrlKey===r.ctrlKey&&t.metaKey===r.metaKey&&t.shiftKey===r.shiftKey&&t.altKey===r.altKey){t.preventDefault(),G.toggle(n);return}}},[e,n,r]);(0,t.useEffect)(()=>{if(e)return document.addEventListener(`keydown`,i),()=>document.removeEventListener(`keydown`,i)},[e,i])}var tr=()=>({backdrop:(0,l.css)({position:`fixed`,inset:0,backgroundColor:`rgba(0, 0, 0, 0.35)`,backdropFilter:`blur(4px)`,zIndex:999999}),surface:(0,l.css)({padding:`0 !important`,overflow:`hidden`,borderRadius:i.tokens.borderRadiusXLarge,boxShadow:i.tokens.shadow64}),search:(0,l.css)({padding:i.tokens.spacingVerticalM,paddingInline:i.tokens.spacingHorizontalL,width:`100%`,boxSizing:`border-box`,"& > div":{width:`100%`}}),actionsList:(0,l.css)({borderTop:`1px solid ${i.tokens.colorNeutralStroke2}`,overflowY:`auto`}),action:(0,l.css)({alignItems:`flex-start`,width:`100%`,padding:`${i.tokens.spacingVerticalS} ${i.tokens.spacingHorizontalL}`,textAlign:`left`,gap:i.tokens.spacingHorizontalM,transition:`background-color 0.1s ease`,"&:hover":{backgroundColor:i.tokens.colorNeutralBackground1Hover},'&[data-spotlight-selected="true"]':{backgroundColor:i.tokens.colorBrandBackground,color:i.tokens.colorNeutralForegroundOnBrand}}),actionBody:(0,l.css)({flex:1,minWidth:0}),actionSectionLeft:(0,l.css)({flexShrink:0,fontSize:`30px`,paddingTop:`2px`,color:i.tokens.colorNeutralForeground3,'[data-spotlight-selected="true"] &':{color:i.tokens.colorNeutralForegroundOnBrand,opacity:.85}}),actionSectionRight:(0,l.css)({flexShrink:0,color:i.tokens.colorNeutralForeground3,'[data-spotlight-selected="true"] &':{color:i.tokens.colorNeutralForegroundOnBrand,opacity:.7}}),actionDescription:(0,l.css)({'[data-spotlight-selected="true"] &':{color:i.tokens.colorNeutralForegroundOnBrand,opacity:.7}}),actionsGroup:(0,l.css)({"&:not(:first-child)":{marginTop:i.tokens.spacingVerticalM}}),actionsGroupLabel:(0,l.css)({textTransform:`uppercase`,paddingInline:i.tokens.spacingHorizontalL,paddingBlock:i.tokens.spacingVerticalXS}),empty:(0,l.css)({padding:i.tokens.spacingVerticalL}),footer:(0,l.css)({borderTop:`1px solid ${i.tokens.colorNeutralStroke2}`}),highlight:(0,l.css)({backgroundColor:i.tokens.colorPaletteYellowBackground2,color:`inherit`,borderRadius:i.tokens.borderRadiusSmall,padding:`0 1px`,'[data-spotlight-selected="true"] &':{backgroundColor:`rgba(255, 255, 255, 0.3)`}})}),nr=({store:e=Gn,query:r,onQueryChange:a,clearQueryOnClose:o=!0,shortcut:s=`mod+K`,tagsToIgnore:c=[`INPUT`,`TEXTAREA`,`SELECT`],disabled:l=!1,onSpotlightOpen:u,onSpotlightClose:d,forceOpened:f=!1,closeOnActionTrigger:p=!0,maxWidth:m=600,yOffset:h=80,maxHeight:_=400,scrollable:v=!0,children:y,className:b})=>{let x=tr(),{opened:S}=Qn(e),C=(0,t.useRef)(S);(0,t.useEffect)(()=>{e.set(Hn,p)},[e,p]),(0,t.useEffect)(()=>{e.set(Un,a)},[e,a]),(0,t.useEffect)(()=>{typeof r==`string`&&e.set(Bn,r)},[e,r]),er(s,e,c),(0,t.useEffect)(()=>{C.current!==S&&(C.current=S,S?u?.():(d?.(),o&&G.setQuery(``,e),G.clearState({clearQuery:o},e)))},[S,u,d,o,e]);let w=(0,t.useCallback)(()=>{G.close(e)},[e]);if(l)return null;let T=S||f,E={position:`fixed`,top:typeof h==`number`?`${h}px`:h,left:`50%`,transform:`translateX(-50%)`,maxWidth:typeof m==`number`?`${m}px`:m,width:`100%`,zIndex:1e6,maxHeight:v?`calc(100vh - ${typeof h==`number`?`${h*2}px`:h})`:void 0,display:`flex`,flexDirection:`column`},D={display:`flex`,flexDirection:`column`,overflow:`hidden`,maxHeight:v?typeof _==`number`?`${_}px`:_:void 0,gap:0,padding:0};return(0,n.jsx)(g.Provider,{store:e,children:T&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:x.backdrop,onClick:w,"aria-hidden":`true`}),(0,n.jsx)(i.Dialog,{open:!0,modalType:`non-modal`,onOpenChange:(t,n)=>{n.open||G.close(e)},children:(0,n.jsx)(i.DialogSurface,{className:`${x.surface}${b?` ${b}`:``}`,style:E,"aria-label":`Spotlight search`,children:(0,n.jsx)(i.DialogBody,{style:D,children:y})})})]})})},rr=()=>({searchBoxStyles:_.css`
|
|
32
32
|
border: 1px solid ${i.tokens.colorNeutralStroke2};
|
|
33
33
|
border-radius: 50px;
|
|
34
34
|
background-color: ${i.tokens.colorNeutralBackground1};
|
|
@@ -141,7 +141,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
|
|
|
141
141
|
align-items: center;
|
|
142
142
|
padding: 2px;
|
|
143
143
|
margin-right: 8px;
|
|
144
|
-
`}),rr=({placeholder:n,onSearch:r,onChange:a,onClear:o,disabled:s=!1,className:c,width:l,value:u,shape:f=`circular`,contentBefore:p,size:m})=>{let[h,g]=(0,t.useState)(``),_=(0,t.useRef)(null),{searchBoxStyles:y,searchBoxNormalStyles:b,iconWrapperStyles:x}=nr(),S=e.v(),C=n||S.placeholder,w=u!==void 0,T=w?u:h,E=f===`circular`?y:b,D=(0,t.useCallback)((e,t)=>{w||g(t.value),a?.(t.value)},[w,a]),O=(0,t.useCallback)(()=>{w||g(``),_.current?.blur(),o?.(),r?.(``)},[w,o,r]),k=(0,t.useCallback)(e=>{e.key===`Enter`&&T.trim()?r?.(T.trim()):e.key===`Escape`&&(_.current?.blur(),w||g(``),o?.())},[T,w,r,o]);return(0,v.jsx)(i.SearchBox,{ref:_,css:E,className:c,style:{width:l},placeholder:C,value:T,onChange:D,onKeyDown:k,disabled:s,size:m,contentBefore:p??(0,v.jsx)(`span`,{css:x,children:(0,v.jsx)(d.SearchRegular,{})}),dismiss:{onClick:O}})},ir=t.memo(function({placeholder:r,size:i=`large`,onKeyDown:a,onChange:o,className:s}){let c=(0,g.useStore)(),u=(0,g.useAtomValue)(zn),d=er(),f=e.b(),[p,m]=(0,t.useState)(!1),h=(0,t.useRef)(null),_=(0,t.useRef)(p),v=r||f.searchPlaceholder,y=t.useCallback(e=>{G.setQuery(e,c),o?.(e)},[c,o]);return _.current=p,(0,t.useEffect)(()=>{let e=h.current;if(!e)return;let t=e=>{a?.(e),!_.current&&(e.key===`ArrowDown`&&(e.preventDefault(),G.selectNextAction(c)),e.key===`ArrowUp`&&(e.preventDefault(),G.selectPreviousAction(c)),e.key===`Enter`&&(e.preventDefault(),G.triggerSelectedAction(c)))},n=()=>m(!0),r=()=>m(!1);return e.addEventListener(`keydown`,t),e.addEventListener(`compositionstart`,n),e.addEventListener(`compositionend`,r),()=>{e.removeEventListener(`keydown`,t),e.removeEventListener(`compositionstart`,n),e.removeEventListener(`compositionend`,r)}},[a,c]),(0,n.jsx)(H,{ref:h,className:`${d.search}${s?` ${s}`:``}`,children:(0,n.jsx)(rr,{value:u,onChange:y,placeholder:v,size:i,shape:`circular`,className:(0,l.css)({maxWidth:`100% !important`})})})});function ar({text:e,query:r,highlightClassName:i}){if(!r.trim())return(0,n.jsx)(n.Fragment,{children:e});let a=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);return(0,n.jsx)(n.Fragment,{children:e.split(RegExp(`(${a})`,`gi`)).map((e,a)=>e.toLowerCase()===r.toLowerCase()?(0,n.jsx)(`mark`,{className:i,children:e},a):(0,n.jsx)(t.Fragment,{children:e},a))})}var or=t.memo(function({label:e,description:r,leftSection:a,rightSection:o,children:s,highlightQuery:c=!1,closeSpotlightOnTrigger:l,onClick:u,className:d}){let f=(0,g.useStore)(),p=(0,g.useAtomValue)(zn),m=(0,g.useAtomValue)(Vn),h=er(),_=(0,t.useMemo)(()=>e=>{u?.(e),(l??m)&&G.close(f)},[u,l,m,f]),v=(0,t.useMemo)(()=>e=>{e.preventDefault()},[]),y=(0,t.useMemo)(()=>e?c&&typeof e==`string`?(0,n.jsx)(Ot,{as:`span`,fontSize:`m`,fontWeight:`regular`,children:(0,n.jsx)(ar,{text:e,query:p,highlightClassName:h.highlight})}):(0,n.jsx)(Ot,{as:`span`,fontSize:`m`,fontWeight:`regular`,children:e}):null,[e,c,p,h.highlight]);return(0,n.jsx)(i.Button,{"data-spotlight-action":!0,role:`option`,appearance:`subtle`,className:`${h.action}${d?` ${d}`:``}`,onClick:_,onMouseDown:v,tabIndex:-1,children:s||(0,n.jsxs)(n.Fragment,{children:[a&&(0,n.jsx)(H,{direction:`horizontal`,alignItems:`start`,justifyContent:`start`,className:h.actionSectionLeft,children:a}),(0,n.jsxs)(H,{direction:`vertical`,gap:`none`,className:h.actionBody,children:[y,r&&(0,n.jsx)(Ot,{as:`span`,fontSize:`xs`,color:`dimmed`,className:h.actionDescription,numberOfLines:1,children:r})]}),o&&(0,n.jsx)(H,{direction:`horizontal`,alignItems:`center`,justifyContent:`center`,className:h.actionSectionRight,children:o})]})})}),sr=t.memo(function({label:e,children:t,className:r}){let i=er();return(0,n.jsxs)(H,{direction:`vertical`,className:`${i.actionsGroup}${r?` ${r}`:``}`,children:[e&&(0,n.jsx)(Ot,{as:`span`,fontSize:`xs`,fontWeight:`bold`,color:`dimmed`,className:i.actionsGroupLabel,children:e}),t]})}),cr=t.memo(function({children:e,className:r,id:i}){let a=(0,g.useStore)(),o=er(),s=(0,t.useId)().replace(/:/g,``),c=i||`spotlight-${s}`,l=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let e=l.current;e&&(e.id=c,e.setAttribute(`role`,`listbox`),e.setAttribute(`aria-label`,`Actions`))},[c]),(0,t.useEffect)(()=>(G.setListId(c,a),()=>G.setListId(``,a)),[c,a]),(0,n.jsx)(H,{ref:l,direction:`vertical`,padding:`xs`,className:`${o.actionsList}${r?` ${r}`:``}`,children:e})}),lr=t.memo(function({children:e,className:t}){return(0,n.jsx)(H,{direction:`vertical`,alignItems:`center`,justifyContent:`center`,padding:`l`,className:t,children:(0,n.jsx)(Ot,{as:`p`,fontSize:`s`,color:`dimmed`,children:e})})}),ur=t.memo(function({children:e,className:t}){let r=er();return(0,n.jsx)(H,{padding:`${i.tokens.spacingVerticalS} ${i.tokens.spacingHorizontalL}`,className:`${r.footer}${t?` ${t}`:``}`,children:e})}),dr=e=>Array.isArray(e)?e.map(e=>e.trim()).join(`,`).toLowerCase().trim():typeof e==`string`?e.toLowerCase().trim():``,fr=e=>e.group!==void 0&&Array.isArray(e.actions),pr=e=>e.reduce((e,t)=>fr(t)?[...e,...t.actions.map(e=>({...e,group:t.group}))]:[...e,t],[]),mr=e=>{let t={},n=[];return e.forEach(e=>{e.group?(t[e.group]||(t[e.group]={pushed:!1,data:{group:e.group,actions:[]}}),t[e.group].data.actions.push(e),t[e.group].pushed||(t[e.group].pushed=!0,n.push(t[e.group].data))):n.push(e)}),n},hr=(e,t)=>{let n=(e??``).trim().toLowerCase();if(!n)return t;let r=[[],[]];return pr(t).forEach(e=>{e.label?.toLowerCase().includes(n)?r[0].push(e):(e.description?.toLowerCase().includes(n)||dr(e.keywords).includes(n))&&r[1].push(e)}),mr(r.flat())},gr=(e,t)=>{if(!Array.isArray(e))return[];let n=0;return e.reduce((e,r)=>{if(n>=t)return e;if(fr(r)){let i=gr(r.actions,t-n);e.push({group:r.group,actions:i}),n+=i.length}else e.push(r),n+=1;return e},[])},_r=({searchProps:r,actions:i,filter:a=hr,nothingFound:o,highlightQuery:s=!1,limit:c=1/0,query:l,onQueryChange:u,store:d=Wn,...f})=>{let p=e.b(),[m,h]=(0,t.useState)(``),g=typeof l==`string`,_=(g?l:m)??``,v=(0,t.useCallback)(e=>{g||h(e),u?.(e)},[g,u]),y=(0,t.useMemo)(()=>gr(a(_,i),c),[_,i,a,c]),b=o??p.nothingFound,x=(0,t.useMemo)(()=>y.map(e=>{if(fr(e)){let t=e.actions.map(({id:e,...t})=>(0,n.jsx)(or,{highlightQuery:s,...t},e));return(0,n.jsx)(sr,{label:e.group,children:t},e.group)}return(0,n.jsx)(or,{highlightQuery:s,...e},e.id)}),[y,s]);return(0,n.jsxs)(tr,{...f,store:d,query:_,onQueryChange:v,children:[(0,n.jsx)(ir,{...r}),x.length>0&&(0,n.jsx)(cr,{children:x}),x.length===0&&b&&(0,n.jsx)(lr,{children:b})]})};_r.Root=tr,_r.Search=ir,_r.Action=or,_r.ActionsGroup=sr,_r.ActionsList=cr,_r.Empty=lr,_r.Footer=ur;var vr=(0,t.createContext)(null),yr=vr.Provider,br=()=>{let e=(0,t.useContext)(vr);if(!e)throw Error(`useDropzoneContext must be used within a <Dropzone> component`);return e};function xr(e){let t=({children:t})=>br()[e]?(0,n.jsx)(n.Fragment,{children:t}):null;return t.displayName=`Dropzone${e.charAt(0).toUpperCase()+e.slice(1)}`,t}var Sr=xr(`accept`),Cr=xr(`reject`),wr=xr(`idle`),Tr=(e=`outline`,t)=>{let n=t??i.tokens.borderRadiusMedium;return{root:(0,l.css)({position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,border:e===`outline`?`2px dashed ${i.tokens.colorNeutralStroke2}`:`none`,borderRadius:n,backgroundColor:e===`filled`?i.tokens.colorNeutralBackground3:i.tokens.colorNeutralBackground1,padding:i.tokens.spacingVerticalL+` `+i.tokens.spacingHorizontalL,cursor:`pointer`,userSelect:`none`,transition:`background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease`,outline:`none`,"&:hover":{borderColor:e===`outline`?i.tokens.colorBrandStroke1:void 0,backgroundColor:e===`filled`?i.tokens.colorNeutralBackground3Hover:i.tokens.colorNeutralBackground1Hover},"&:focus-visible":{borderColor:i.tokens.colorBrandStroke1,boxShadow:`0 0 0 2px ${i.tokens.colorStrokeFocus2}`}}),rootAccept:(0,l.css)({borderColor:i.tokens.colorPaletteGreenBorder1,backgroundColor:i.tokens.colorPaletteGreenBackground1,"&:hover":{borderColor:i.tokens.colorPaletteGreenBorder1,backgroundColor:i.tokens.colorPaletteGreenBackground1}}),rootReject:(0,l.css)({borderColor:i.tokens.colorPaletteRedBorder1,backgroundColor:i.tokens.colorPaletteRedBackground1,"&:hover":{borderColor:i.tokens.colorPaletteRedBorder1,backgroundColor:i.tokens.colorPaletteRedBackground1}}),rootDisabled:(0,l.css)({opacity:.5,cursor:`default`,pointerEvents:`none`}),inner:(0,l.css)({display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,width:`100%`,pointerEvents:`none`}),loadingOverlay:(0,l.css)({position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,backgroundColor:i.tokens.colorNeutralBackgroundAlpha,borderRadius:n,zIndex:1}),fullScreen:(0,l.css)({position:`fixed`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:i.tokens.spacingVerticalXXXL+` `+i.tokens.spacingHorizontalXXXL,backgroundColor:i.tokens.colorNeutralBackgroundAlpha})}},Er=(e,t)=>{typeof e==`function`?e(t):e&&typeof e==`object`&&`current`in e&&(e.current=t)},Dr=Object.assign(t.forwardRef((t,r)=>{let{onDrop:a,onDropAny:o,onReject:s,accept:c,multiple:l=!0,maxSize:u=1/0,maxFiles:d,name:f,disabled:p=!1,loading:m=!1,openRef:h,activateOnClick:g=!0,activateOnDrag:_=!0,activateOnKeyboard:v=!0,dragEventsBubbling:b=!0,onDragEnter:x,onDragLeave:S,onDragOver:C,onFileDialogCancel:w,onFileDialogOpen:T,preventDropOnDocument:E=!0,useFsAccessApi:D=!0,getFilesFromEvent:O,validator:k,enablePointerEvents:A=!1,spinnerProps:j,inputProps:M,appearance:N=`outline`,borderRadius:ee,className:P,styles:F,children:I,"aria-label":L,...R}=t,te=e.l(),ne=Tr(N,ee),re=Array.isArray(c)?c.reduce((e,t)=>(e[t]=[],e),{}):c,{getRootProps:ie,getInputProps:z,isDragActive:ae,isDragAccept:oe,isDragReject:se,open:ce}=(0,y.useDropzone)({onDrop:o,onDropAccepted:a,onDropRejected:s,disabled:p||m,accept:re,multiple:l,maxSize:u,maxFiles:d,noClick:!g,noDrag:!_,noDragEventsBubbling:!b,noKeyboard:!v,onDragEnter:x,onDragLeave:S,onDragOver:C,onFileDialogCancel:w,onFileDialogOpen:T,preventDropOnDocument:E,useFsAccessApi:D,validator:k,...O?{getFilesFromEvent:O}:null});Er(h,ce);let le=ae&&oe,ue=ae&&se,de=!le&&!ue,fe=(0,i.mergeClasses)(ne.root,le&&ne.rootAccept,ue&&ne.rootReject,(p||m)&&ne.rootDisabled,P),{verticalSpacing:pe,horizontalSpacing:me,paddingLeft:he,paddingRight:ge,paddingTop:_e,paddingBottom:ve,padding:ye,margin:be,marginLeft:xe,marginRight:Se,marginTop:Ce,marginBottom:we,background:Te,width:Ee,height:De,maxWidth:Oe,maxHeight:ke,...Ae}=R;return(0,n.jsx)(yr,{value:{accept:le,reject:ue,idle:de},children:(0,n.jsxs)(`div`,{...ie({ref:r,className:fe,style:F,role:`button`,tabIndex:0,"aria-label":L??te.dropHere,"aria-disabled":p||m||void 0,...Ae}),children:[m&&(0,n.jsx)(`div`,{className:ne.loadingOverlay,children:(0,n.jsx)(i.Spinner,{size:`medium`,label:te.loading,...j})}),(0,n.jsx)(`input`,{...z(M),name:f}),(0,n.jsx)(`div`,{className:ne.inner,style:A?{pointerEvents:`auto`}:void 0,children:I})]})})}),{Accept:Sr,Reject:Cr,Idle:wr,displayName:`Dropzone`}),Or=t.forwardRef((e,r)=>{let{active:a=!0,zIndex:o=9999,onDrop:s,onReject:c,children:u,className:d,...f}=e,[p,m]=t.useState(0),[h,g]=t.useState(!1);t.useEffect(()=>{p===0&&g(!1)},[p]),t.useEffect(()=>{if(!a)return;let e=e=>{e.dataTransfer?.types.includes(`Files`)&&(e.preventDefault(),m(e=>e+1),g(!0))},t=()=>{m(e=>e-1)},n=e=>{e.dataTransfer?.types.includes(`Files`)&&e.preventDefault()},r=e=>{e.preventDefault(),m(0),g(!1)};return document.addEventListener(`dragenter`,e,!1),document.addEventListener(`dragleave`,t,!1),document.addEventListener(`dragover`,n,!1),document.addEventListener(`drop`,r,!1),()=>{document.removeEventListener(`dragenter`,e,!1),document.removeEventListener(`dragleave`,t,!1),document.removeEventListener(`dragover`,n,!1),document.removeEventListener(`drop`,r,!1)}},[a]);let _=t.useCallback(e=>{s?.(e),g(!1),m(0)},[s]),v=t.useCallback(e=>{c?.(e),g(!1),m(0)},[c]);if(!h)return null;let y=(0,l.css)({position:`fixed`,inset:0,display:h?`flex`:`none`,alignItems:`center`,justifyContent:`center`,padding:i.tokens.spacingVerticalXXXL+` `+i.tokens.spacingHorizontalXXXL,backgroundColor:i.tokens.colorBackgroundOverlay,zIndex:o}),b=(0,l.css)({width:`100%`,maxWidth:`600px`,minHeight:`200px`});return(0,n.jsx)(i.Portal,{children:(0,n.jsx)(`div`,{ref:r,className:y,children:(0,n.jsx)(Dr,{...f,activateOnClick:!1,onDrop:_,onReject:v,className:b,children:u})})})});Or.displayName=`DropzoneFullScreen`;var kr={png:`image/png`,gif:`image/gif`,jpeg:`image/jpeg`,svg:`image/svg+xml`,webp:`image/webp`,avif:`image/avif`,heic:`image/heic`,heif:`image/heif`,mp4:`video/mp4`,zip:`application/zip`,rar:`application/x-rar`,"7z":`application/x-7z-compressed`,csv:`text/csv`,pdf:`application/pdf`,doc:`application/msword`,docx:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,xls:`application/vnd.ms-excel`,xlsx:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,ppt:`application/vnd.ms-powerpoint`,pptx:`application/vnd.openxmlformats-officedocument.presentationml.presentation`,exe:`application/vnd.microsoft.portable-executable`},Ar=[kr.png,kr.gif,kr.jpeg,kr.svg,kr.webp,kr.avif,kr.heic,kr.heif],jr=[kr.pdf],Mr=[kr.doc,kr.docx],Nr=[kr.xls,kr.xlsx],Pr=[kr.ppt,kr.pptx],Fr=[kr.exe],Ir=(0,t.createContext)(null),Lr=Ir.Provider;function Rr(){let e=(0,t.useContext)(Ir);if(!e)throw Error(`RichTextEditor component was not found in tree`);return e}var zr=(e=`default`)=>{let t=e===`subtle`,n=t?`32px`:`26px`,r=t?`32px`:`26px`,a=t?`20px`:`16px`;return{root:(0,l.css)({position:`relative`,border:`1px solid ${i.tokens.colorNeutralStroke2}`,borderRadius:i.tokens.borderRadiusMedium}),toolbar:(0,l.css)({display:`flex`,alignItems:`center`,flexWrap:`wrap`,gap:i.tokens.spacingHorizontalS,backgroundColor:i.tokens.colorNeutralBackground1,zIndex:1,borderTopLeftRadius:i.tokens.borderRadiusMedium,borderTopRightRadius:i.tokens.borderRadiusMedium,borderBottom:`1px solid ${i.tokens.colorNeutralStroke2}`,padding:t?`4px`:`${i.tokens.spacingVerticalXS} ${i.tokens.spacingHorizontalM}`,...t&&{rowGap:0}}),toolbarSticky:(0,l.css)({position:`sticky`,zIndex:2}),controlsGroup:(0,l.css)({display:`flex`,backgroundColor:i.tokens.colorNeutralBackground1,...!t&&{"& > button":{borderRadius:0,"&:not(:last-of-type)":{borderInlineEndWidth:0},"&:last-of-type":{borderStartEndRadius:i.tokens.borderRadiusMedium,borderEndEndRadius:i.tokens.borderRadiusMedium},"&:first-of-type":{borderStartStartRadius:i.tokens.borderRadiusMedium,borderEndStartRadius:i.tokens.borderRadiusMedium}}}}),control:(0,l.css)({display:`flex`,justifyContent:`center`,alignItems:`center`,borderRadius:i.tokens.borderRadiusMedium,cursor:`default`,border:t?`none`:`1px solid ${i.tokens.colorNeutralStroke2}`,minWidth:n,height:r,backgroundColor:t?i.tokens.colorNeutralBackground3:i.tokens.colorNeutralBackground1,color:i.tokens.colorNeutralForeground2,padding:0,outline:`none`,fontFamily:`inherit`,fontSize:`inherit`,lineHeight:1,transition:`background-color 100ms ease, color 100ms ease`,"&[data-interactive]:not([data-disabled])":{cursor:`pointer`,"&:hover":{color:i.tokens.colorNeutralForeground1,backgroundColor:t?i.tokens.colorNeutralBackground3Hover:i.tokens.colorNeutralBackground1Hover}},"&:focus-visible":{outlineOffset:`2px`,outline:`2px solid ${i.tokens.colorStrokeFocus2}`}}),controlActive:(0,l.css)({backgroundColor:i.tokens.colorBrandBackground2,color:i.tokens.colorBrandForeground1,"&:hover":{backgroundColor:i.tokens.colorBrandBackground2Hover}}),controlDisabled:(0,l.css)({cursor:`not-allowed`,color:i.tokens.colorNeutralForegroundDisabled,backgroundColor:i.tokens.colorNeutralBackgroundDisabled}),controlIcon:(0,l.css)({width:a,height:a}),content:(0,l.css)({backgroundColor:i.tokens.colorNeutralBackground1,borderBottomLeftRadius:i.tokens.borderRadiusMedium,borderBottomRightRadius:i.tokens.borderRadiusMedium,"& .ProseMirror":{outline:0,padding:i.tokens.spacingVerticalM+` `+i.tokens.spacingHorizontalM,fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase300,fontWeight:i.tokens.fontWeightRegular,lineHeight:i.tokens.lineHeightBase300,color:i.tokens.colorNeutralForeground1},"& .ProseMirror > *:last-child":{marginBottom:0},"& .ProseMirror a":{color:i.tokens.colorBrandForeground1,textDecorationLine:`underline`,textDecorationColor:i.tokens.colorBrandStroke1,cursor:`pointer`,transition:`color 100ms ease, text-decoration-color 100ms ease`,"&:hover":{color:i.tokens.colorBrandForeground2Hover,textDecorationColor:i.tokens.colorBrandForeground2Hover},"&:active":{color:i.tokens.colorBrandForeground2Pressed},"&:visited":{color:i.tokens.colorBrandForeground1}},"& .ProseMirror p.is-editor-empty:first-of-type::before":{content:`attr(data-placeholder)`,pointerEvents:`none`,userSelect:`none`,float:`left`,height:0,color:i.tokens.colorNeutralForeground4},"& div:not(.ProseMirror)":{zIndex:2},"& pre":{fontFamily:i.tokens.fontFamilyMonospace,borderRadius:i.tokens.borderRadiusMedium,padding:`${i.tokens.spacingVerticalS} ${i.tokens.spacingHorizontalM}`,backgroundColor:i.tokens.colorNeutralBackground3,color:i.tokens.colorNeutralForeground1,"& code":{background:`none !important`,color:`inherit`,fontSize:i.tokens.fontSizeBase300,padding:0}}}),typography:(0,l.css)({padding:0,margin:0,"& li > p":{margin:0},"& ul li, & ol li":{marginTop:`2px`},"& p":{marginBottom:`7px`,fontSize:i.tokens.fontSizeBase300,lineHeight:i.tokens.lineHeightBase300},"& h1, & h2, & h3, & h4, & h5, & h6, & p":{marginTop:0},"& h1":{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeHero800,fontWeight:i.tokens.fontWeightBold,lineHeight:i.tokens.lineHeightHero800},"& h2":{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeHero700,fontWeight:i.tokens.fontWeightSemibold,lineHeight:i.tokens.lineHeightHero700},"& h3":{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase600,fontWeight:i.tokens.fontWeightSemibold,lineHeight:i.tokens.lineHeightBase600},"& h4":{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase500,fontWeight:i.tokens.fontWeightSemibold,lineHeight:i.tokens.lineHeightBase500},"& h5":{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase400,fontWeight:i.tokens.fontWeightSemibold,lineHeight:i.tokens.lineHeightBase400},"& h6":{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase300,fontWeight:i.tokens.fontWeightSemibold,lineHeight:i.tokens.lineHeightBase300},"& blockquote":{fontFamily:i.tokens.fontFamilyBase,fontStyle:`italic`,color:i.tokens.colorNeutralForeground2,borderInlineStart:`3px solid ${i.tokens.colorBrandStroke1}`,paddingInlineStart:i.tokens.spacingHorizontalM,margin:`${i.tokens.spacingVerticalS} 0`},"& code":{fontFamily:i.tokens.fontFamilyMonospace,fontSize:i.tokens.fontSizeBase200,backgroundColor:i.tokens.colorNeutralBackground3,borderRadius:i.tokens.borderRadiusSmall,padding:`1px ${i.tokens.spacingHorizontalXS}`}}),linkEditorDropdown:(0,l.css)({backgroundColor:i.tokens.colorNeutralBackground1}),linkEditor:(0,l.css)({display:`flex`,gap:0}),linkEditorInput:(0,l.css)({borderStartEndRadius:0,borderEndEndRadius:0,borderInlineEnd:0,flex:1}),linkEditorExternalControl:(0,l.css)({border:`1px solid ${i.tokens.colorNeutralStroke2}`,color:i.tokens.colorNeutralForeground1,height:`24px`,width:`24px`,display:`flex`,justifyContent:`center`,alignItems:`center`,borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,cursor:`pointer`,padding:0,outline:`none`}),linkEditorExternalControlActive:(0,l.css)({backgroundColor:i.tokens.colorBrandBackground2,color:i.tokens.colorBrandForeground1,"&:hover":{backgroundColor:i.tokens.colorBrandBackground2Hover}}),linkEditorSave:(0,l.css)({borderStartStartRadius:0,borderEndStartRadius:0}),colorSwatch:(0,l.css)({width:`26px`,height:`26px`,borderRadius:i.tokens.borderRadiusSmall,border:`1px solid ${i.tokens.colorNeutralStroke2}`,cursor:`pointer`,padding:0,outline:`none`,transition:`transform 100ms ease`,"&:hover":{transform:`scale(1.1)`},"&:focus-visible":{outlineOffset:`2px`,outline:`2px solid ${i.tokens.colorStrokeFocus2}`}}),colorSwatchGrid:(0,l.css)({display:`grid`,gridTemplateColumns:`repeat(7, 1fr)`,gap:`2px`}),colorPickerActions:(0,l.css)({display:`flex`,justifyContent:`flex-end`,gap:i.tokens.spacingHorizontalXS,marginTop:i.tokens.spacingVerticalS}),taskList:(0,l.css)({listStyleType:`none`,padding:0,paddingInlineStart:0,"& li":{margin:0,padding:0,display:`flex`},"& li[data-checked] > div":{flex:`1 1 auto`,minWidth:0},"& ul":{marginTop:`5px`},"& p":{margin:0,padding:0},"& label":{display:`inline-block`},"& input":{cursor:`pointer`,appearance:`none`,width:`18px`,height:`18px`,border:`1px solid ${i.tokens.colorNeutralStroke2}`,borderRadius:i.tokens.borderRadiusSmall,verticalAlign:`middle`,position:`relative`,backgroundColor:i.tokens.colorNeutralBackground1,"&:checked":{backgroundColor:i.tokens.colorBrandBackground,borderColor:i.tokens.colorBrandBackground,"&::before":{position:`absolute`,content:`''`,inset:0,backgroundImage:`url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAxMCA3Ij48cGF0aCBmaWxsPSIjZmZmIiBkPSJNNCA0LjU4NkwxLjcwNyAyLjI5M0ExIDEgMCAxMC4yOTMgMy43MDdsMyAzYS45OTcuOTk3IDAgMDAxLjQxNCAwbDUtNUExIDEgMCAxMDguMjkzLjI5M0w0IDQuNTg2eiIvPjwvc3ZnPg==')`,backgroundRepeat:`no-repeat`,backgroundSize:`10px`,backgroundPosition:`center`}}},"& li > label":{marginInlineEnd:i.tokens.spacingHorizontalS}}),fontFamilyList:(0,l.css)({listStyleType:`none`,margin:0,padding:`${i.tokens.spacingVerticalXS} 0`,maxHeight:`280px`,overflowY:`auto`,minWidth:`200px`}),fontFamilyItem:(0,l.css)({display:`flex`,alignItems:`center`,width:`100%`,padding:`${i.tokens.spacingVerticalXS} ${i.tokens.spacingHorizontalM}`,border:`none`,backgroundColor:`transparent`,color:i.tokens.colorNeutralForeground1,fontSize:i.tokens.fontSizeBase300,cursor:`pointer`,outline:`none`,textAlign:`start`,transition:`background-color 100ms ease`,"&:hover":{backgroundColor:i.tokens.colorNeutralBackground1Hover},"&:focus-visible":{outlineOffset:`-2px`,outline:`2px solid ${i.tokens.colorStrokeFocus2}`}}),fontFamilyItemActive:(0,l.css)({backgroundColor:i.tokens.colorBrandBackground2,color:i.tokens.colorBrandForeground1,fontWeight:i.tokens.fontWeightSemibold,"&:hover":{backgroundColor:i.tokens.colorBrandBackground2Hover}})}},Br=({sticky:e=!1,stickyOffset:t=0,children:r,className:i,style:a})=>{let{variant:o}=Rr(),s=zr(o);return(0,n.jsx)(`div`,{className:(0,l.cx)(s.toolbar,e&&s.toolbarSticky,i),style:e?{...a,top:t}:a,role:`toolbar`,"aria-label":`Text formatting`,children:r})};Br.displayName=`RichTextEditorToolbar`;var Vr=({className:e,style:r})=>{let{editor:i,withTypographyStyles:a,variant:o,onContentChange:s,onFocus:c,onBlur:u,onCreate:d,onSelectionChange:f,fontFamily:p}=Rr(),m=zr(o),h=t.useRef(s),g=t.useRef(c),_=t.useRef(u),v=t.useRef(d),y=t.useRef(f);return t.useEffect(()=>{h.current=s},[s]),t.useEffect(()=>{g.current=c},[c]),t.useEffect(()=>{_.current=u},[u]),t.useEffect(()=>{v.current=d},[d]),t.useEffect(()=>{y.current=f},[f]),t.useEffect(()=>{if(!i)return;let e=()=>{h.current?.(i.getHTML(),i.getJSON())},t=({event:e})=>{g.current?.(e)},n=({event:e})=>{_.current?.(e)},r=()=>{v.current?.()},a=()=>{y.current?.()};return i.on(`update`,e),i.on(`focus`,t),i.on(`blur`,n),i.on(`create`,r),i.on(`selectionUpdate`,a),()=>{i.off(`update`,e),i.off(`focus`,t),i.off(`blur`,n),i.off(`create`,r),i.off(`selectionUpdate`,a)}},[i]),(0,n.jsx)(`div`,{className:(0,l.cx)(m.content,a&&m.typography,e),style:{...r,...p?{fontFamily:p}:{}},children:(0,n.jsx)(b.EditorContent,{editor:i})})};Vr.displayName=`RichTextEditorContent`;var Hr=({children:e,className:t,style:r})=>{let{variant:i}=Rr();return(0,n.jsx)(`div`,{className:(0,l.cx)(zr(i).controlsGroup,t),style:r,role:`group`,children:e})};Hr.displayName=`RichTextEditorControlsGroup`;var Ur=t.forwardRef((e,t)=>{let{interactive:r=!0,active:a,disabled:o,onClick:s,onMouseDown:c,children:l,className:u,style:d,...f}=e,{variant:p}=Rr(),m=zr(p);return(0,n.jsx)(`button`,{ref:t,type:`button`,...f,className:(0,i.mergeClasses)(m.control,a&&m.controlActive,o&&m.controlDisabled,u),style:d,disabled:o,tabIndex:r?0:-1,"data-interactive":r||void 0,"data-disabled":o||void 0,"data-active":a||void 0,"aria-pressed":a&&r?!0:void 0,"aria-hidden":!r||void 0,onMouseDown:e=>{e.preventDefault(),c?.(e)},onClick:s,children:l})});Ur.displayName=`RichTextEditorControl`;var Wr=t.forwardRef(({icon:e,className:t,...r},i)=>{let{variant:a}=Rr(),o=zr(a),s=a===`subtle`?`16px`:`20px`;return(0,n.jsx)(Ur,{ref:i,className:t,...r,children:(0,n.jsx)(`span`,{className:o.controlIcon,children:(0,n.jsx)(e,{style:{width:s,height:s}})})})});Wr.displayName=`RichTextEditorControlBase`;function K({label:e,isActive:t,operation:r,icon:i,isDisabled:a}){let o=o=>{let{editor:s,labels:c}=Rr(),l=c[e],u=typeof l==`function`?``:l;return(0,n.jsx)(Wr,{"aria-label":u,title:u,active:t?.name?s?.isActive(t.name,t.attributes):!1,icon:o.icon||i,disabled:a?.(s)||!1,...o,onClick:()=>s?.chain().focus()[r.name](r.attributes).run()})};return o.displayName=`RichTextEditorControl_${e}`,o}function q(e){return(0,n.jsx)(`svg`,{...e,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,strokeWidth:`1.5`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`})}function Gr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M7 5h6a3.5 3.5 0 0 1 0 7h-6z`}),(0,n.jsx)(`path`,{d:`M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7`})]})}function Kr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M11 5l6 0`}),(0,n.jsx)(`path`,{d:`M7 19l6 0`}),(0,n.jsx)(`path`,{d:`M14 5l-4 14`})]})}function qr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M7 5v5a5 5 0 0 0 10 0v-5`}),(0,n.jsx)(`path`,{d:`M5 19h14`})]})}function Jr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M5 12l14 0`}),(0,n.jsx)(`path`,{d:`M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5`})]})}function Yr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M17 15l4 4m0 -4l-4 4`}),(0,n.jsx)(`path`,{d:`M7 6v-1h11v1`}),(0,n.jsx)(`path`,{d:`M7 19l4 0`}),(0,n.jsx)(`path`,{d:`M13 5l-4 14`})]})}function Xr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M19 18v-8l-2 2`}),(0,n.jsx)(`path`,{d:`M4 6v12`}),(0,n.jsx)(`path`,{d:`M12 6v12`}),(0,n.jsx)(`path`,{d:`M11 18h2`}),(0,n.jsx)(`path`,{d:`M3 18h2`}),(0,n.jsx)(`path`,{d:`M4 12h8`}),(0,n.jsx)(`path`,{d:`M3 6h2`}),(0,n.jsx)(`path`,{d:`M11 6h2`})]})}function Zr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M17 12a2 2 0 1 1 4 0c0 .591 -.417 1.318 -.816 1.858l-3.184 4.143l4 0`}),(0,n.jsx)(`path`,{d:`M4 6v12`}),(0,n.jsx)(`path`,{d:`M12 6v12`}),(0,n.jsx)(`path`,{d:`M11 18h2`}),(0,n.jsx)(`path`,{d:`M3 18h2`}),(0,n.jsx)(`path`,{d:`M4 12h8`}),(0,n.jsx)(`path`,{d:`M3 6h2`}),(0,n.jsx)(`path`,{d:`M11 6h2`})]})}function Qr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M19 14a2 2 0 1 0 -2 -2`}),(0,n.jsx)(`path`,{d:`M17 16a2 2 0 1 0 2 -2`}),(0,n.jsx)(`path`,{d:`M4 6v12`}),(0,n.jsx)(`path`,{d:`M12 6v12`}),(0,n.jsx)(`path`,{d:`M11 18h2`}),(0,n.jsx)(`path`,{d:`M3 18h2`}),(0,n.jsx)(`path`,{d:`M4 12h8`}),(0,n.jsx)(`path`,{d:`M3 6h2`}),(0,n.jsx)(`path`,{d:`M11 6h2`})]})}function $r(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M20 18v-8l-4 6h5`}),(0,n.jsx)(`path`,{d:`M4 6v12`}),(0,n.jsx)(`path`,{d:`M12 6v12`}),(0,n.jsx)(`path`,{d:`M11 18h2`}),(0,n.jsx)(`path`,{d:`M3 18h2`}),(0,n.jsx)(`path`,{d:`M4 12h8`}),(0,n.jsx)(`path`,{d:`M3 6h2`}),(0,n.jsx)(`path`,{d:`M11 6h2`})]})}function ei(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M17 18h2a2 2 0 1 0 0 -4h-2v-4h4`}),(0,n.jsx)(`path`,{d:`M4 6v12`}),(0,n.jsx)(`path`,{d:`M12 6v12`}),(0,n.jsx)(`path`,{d:`M11 18h2`}),(0,n.jsx)(`path`,{d:`M3 18h2`}),(0,n.jsx)(`path`,{d:`M4 12h8`}),(0,n.jsx)(`path`,{d:`M3 6h2`}),(0,n.jsx)(`path`,{d:`M11 6h2`})]})}function ti(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M19 14a2 2 0 1 0 0 4a2 2 0 0 0 0 -4z`}),(0,n.jsx)(`path`,{d:`M21 12a2 2 0 1 0 -4 0v4`}),(0,n.jsx)(`path`,{d:`M4 6v12`}),(0,n.jsx)(`path`,{d:`M12 6v12`}),(0,n.jsx)(`path`,{d:`M11 18h2`}),(0,n.jsx)(`path`,{d:`M3 18h2`}),(0,n.jsx)(`path`,{d:`M4 12h8`}),(0,n.jsx)(`path`,{d:`M3 6h2`}),(0,n.jsx)(`path`,{d:`M11 6h2`})]})}function ni(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M9 6l11 0`}),(0,n.jsx)(`path`,{d:`M9 12l11 0`}),(0,n.jsx)(`path`,{d:`M9 18l11 0`}),(0,n.jsx)(`path`,{d:`M5 6l0 .01`}),(0,n.jsx)(`path`,{d:`M5 12l0 .01`}),(0,n.jsx)(`path`,{d:`M5 18l0 .01`})]})}function ri(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M11 6h9`}),(0,n.jsx)(`path`,{d:`M11 12h9`}),(0,n.jsx)(`path`,{d:`M12 18h8`}),(0,n.jsx)(`path`,{d:`M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4`}),(0,n.jsx)(`path`,{d:`M6 10v-6l-2 2`})]})}function ii(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M17 22v-2`}),(0,n.jsx)(`path`,{d:`M9 15l6 -6`}),(0,n.jsx)(`path`,{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`}),(0,n.jsx)(`path`,{d:`M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463`}),(0,n.jsx)(`path`,{d:`M20 17h2`}),(0,n.jsx)(`path`,{d:`M2 7h2`}),(0,n.jsx)(`path`,{d:`M7 2v2`})]})}function ai(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M6 15h15`}),(0,n.jsx)(`path`,{d:`M21 19h-15`}),(0,n.jsx)(`path`,{d:`M15 11h6`}),(0,n.jsx)(`path`,{d:`M21 7h-6`}),(0,n.jsx)(`path`,{d:`M9 9h1a1 1 0 1 1 -1 1v-2.5a2 2 0 0 1 2 -2`}),(0,n.jsx)(`path`,{d:`M3 9h1a1 1 0 1 1 -1 1v-2.5a2 2 0 0 1 2 -2`})]})}function oi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M4 6l16 0`}),(0,n.jsx)(`path`,{d:`M4 12l10 0`}),(0,n.jsx)(`path`,{d:`M4 18l14 0`})]})}function si(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M4 6l16 0`}),(0,n.jsx)(`path`,{d:`M10 12l10 0`}),(0,n.jsx)(`path`,{d:`M6 18l14 0`})]})}function ci(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M4 6l16 0`}),(0,n.jsx)(`path`,{d:`M8 12l8 0`}),(0,n.jsx)(`path`,{d:`M6 18l12 0`})]})}function li(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M4 6l16 0`}),(0,n.jsx)(`path`,{d:`M4 12l16 0`}),(0,n.jsx)(`path`,{d:`M4 18l12 0`})]})}function ui(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M5 7l8 10m-8 0l8 -10`}),(0,n.jsx)(`path`,{d:`M21 20h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2`})]})}function di(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M5 7l8 10m-8 0l8 -10`}),(0,n.jsx)(`path`,{d:`M21 11h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2`})]})}function fi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M7 8l-4 4l4 4`}),(0,n.jsx)(`path`,{d:`M17 8l4 4l-4 4`}),(0,n.jsx)(`path`,{d:`M14 4l-4 16`})]})}function pi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4`}),(0,n.jsx)(`path`,{d:`M12.5 5.5l4 4`}),(0,n.jsx)(`path`,{d:`M4.5 13.5l4 4`}),(0,n.jsx)(`path`,{d:`M21 15v4h-8l4 -4z`})]})}function mi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M5 12h2`}),(0,n.jsx)(`path`,{d:`M17 12h2`}),(0,n.jsx)(`path`,{d:`M11 12h2`})]})}function hi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M20.042 16.045a9 9 0 0 0 -12.087 -12.087m-2.318 1.677a9 9 0 1 0 12.725 12.73`}),(0,n.jsx)(`path`,{d:`M3 3l18 18`})]})}function gi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M11 7l6 6`}),(0,n.jsx)(`path`,{d:`M4 16l11.7 -11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4l-11.7 11.7h-4v-4z`})]})}function _i(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M18 6l-12 12`}),(0,n.jsx)(`path`,{d:`M6 6l12 12`})]})}function vi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25`}),(0,n.jsx)(`path`,{d:`M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}),(0,n.jsx)(`path`,{d:`M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}),(0,n.jsx)(`path`,{d:`M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`})]})}function yi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M5 12l5 5l10 -10`})]})}function bi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M9 15l6 -6`}),(0,n.jsx)(`path`,{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`}),(0,n.jsx)(`path`,{d:`M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463`})]})}function xi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6`}),(0,n.jsx)(`path`,{d:`M11 13l9 -9`}),(0,n.jsx)(`path`,{d:`M15 4h5v5`})]})}function Si(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M9 14l-4 -4l4 -4`}),(0,n.jsx)(`path`,{d:`M5 10h11a4 4 0 1 1 0 8h-1`})]})}function Ci(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M15 14l4 -4l-4 -4`}),(0,n.jsx)(`path`,{d:`M19 10h-11a4 4 0 1 0 0 8h1`})]})}function wi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M3.5 5.5l1.5 1.5l2.5 -2.5`}),(0,n.jsx)(`path`,{d:`M3.5 11.5l1.5 1.5l2.5 -2.5`}),(0,n.jsx)(`path`,{d:`M3.5 17.5l1.5 1.5l2.5 -2.5`}),(0,n.jsx)(`path`,{d:`M11 6l9 0`}),(0,n.jsx)(`path`,{d:`M11 12l9 0`}),(0,n.jsx)(`path`,{d:`M11 18l9 0`})]})}function Ti(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M20 6l-11 0`}),(0,n.jsx)(`path`,{d:`M20 12l-7 0`}),(0,n.jsx)(`path`,{d:`M20 18l-11 0`}),(0,n.jsx)(`path`,{d:`M4 8l4 4l-4 4`})]})}function Ei(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M20 6l-7 0`}),(0,n.jsx)(`path`,{d:`M20 12l-9 0`}),(0,n.jsx)(`path`,{d:`M20 18l-7 0`}),(0,n.jsx)(`path`,{d:`M8 8l-4 4l4 4`})]})}function Di(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M19 3v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V7.914a1 1 0 0 1 .293-.707l3.914-3.914A1 1 0 0 1 9.914 3H18a1 1 0 0 1 1 1Z`}),(0,n.jsx)(`path`,{d:`M10 11l-2 2 2 2`}),(0,n.jsx)(`path`,{d:`M14 11l2 2-2 2`})]})}function Oi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M4 20l3 0`}),(0,n.jsx)(`path`,{d:`M14 20l7 0`}),(0,n.jsx)(`path`,{d:`M6.9 15l6.9 0`}),(0,n.jsx)(`path`,{d:`M10.2 6.3l5.8 13.7`}),(0,n.jsx)(`path`,{d:`M5 20l6 -16l2 0l7 16`})]})}var ki=({disableTooltips:e=!1,initialExternal:r=!1,className:a,style:o,...s})=>{let{editor:c,labels:u,variant:d}=Rr(),f=zr(d),[p,m]=t.useState(``),[h,g]=t.useState(r),[_,v]=t.useState(!1),y=t.useCallback(()=>{v(!0);let e=c?.getAttributes(`link`);m(e?.href||``),g(typeof e?.target==`string`?e.target===`_blank`:r)},[c,r]),b=t.useCallback(()=>{v(!1),m(``),g(r)},[r]),x=t.useCallback(()=>{b(),(c?.chain().focus().extendMarkRange(`link`)).setLink({href:p,target:h?`_blank`:null}).run()},[c,p,h,b]),S=t.useCallback(e=>{e.key===`Enter`&&(e.preventDefault(),x())},[x]);return t.useEffect(()=>{let e=()=>y();return window.addEventListener(`edit-link`,e),()=>window.removeEventListener(`edit-link`,e)},[y]),(0,n.jsxs)(i.Popover,{open:_,onOpenChange:(e,t)=>{t.open||b()},positioning:`below`,trapFocus:!0,children:[(0,n.jsx)(i.PopoverTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(Wr,{icon:e=>(0,n.jsx)(bi,{...e}),"aria-label":u.linkControlLabel,title:u.linkControlLabel,active:c?.isActive(`link`),onClick:y,className:a,style:o,...s})}),(0,n.jsx)(i.PopoverSurface,{className:f.linkEditorDropdown,children:(0,n.jsxs)(`div`,{className:f.linkEditor,children:[(0,n.jsx)(i.Input,{placeholder:u.linkEditorInputPlaceholder,"aria-label":u.linkEditorInputLabel,type:`url`,value:p,onChange:(e,t)=>m(t.value),onKeyDown:S,className:f.linkEditorInput,size:`small`}),e?(0,n.jsx)(i.Button,{appearance:`subtle`,size:`small`,className:(0,l.cx)(f.linkEditorExternalControl,h&&f.linkEditorExternalControlActive),onClick:()=>g(e=>!e),"aria-label":h?u.linkEditorExternalLink:u.linkEditorInternalLink,icon:(0,n.jsx)(xi,{style:{width:14,height:14}})}):(0,n.jsx)(i.Tooltip,{content:h?u.linkEditorExternalLink:u.linkEditorInternalLink,relationship:`label`,children:(0,n.jsx)(i.Button,{appearance:`subtle`,size:`small`,className:(0,l.cx)(f.linkEditorExternalControl,h&&f.linkEditorExternalControlActive),onClick:()=>g(e=>!e),icon:(0,n.jsx)(xi,{style:{width:14,height:14}})})}),(0,n.jsx)(i.Button,{size:`small`,appearance:`primary`,className:f.linkEditorSave,onClick:x,children:u.linkEditorSave})]})})]})};ki.displayName=`RichTextEditorLinkControl`;var Ai=({color:e,className:t,style:r})=>{let{editor:i,labels:a,variant:o}=Rr(),s=zr(o),c=typeof a.colorControlLabel==`function`?a.colorControlLabel(e):`${a.colorControlLabel} ${e}`;return(0,n.jsx)(`button`,{type:`button`,className:(0,l.cx)(s.control,t),style:r,"aria-label":c,title:c,onClick:()=>(i?.chain().focus()).setColor(e).run(),children:(0,n.jsx)(`span`,{className:s.colorSwatch,style:{backgroundColor:e}})})};Ai.displayName=`RichTextEditorColorControl`;var ji=({colors:e,className:r,style:a})=>{let{editor:o,labels:s,variant:c}=Rr(),l=zr(c),[u,d]=t.useState(!1),[f,p]=t.useState(`palette`),[m,h]=t.useState(``),g=t.useRef(null),_=t.useCallback(()=>{d(!1)},[]),v=t.useCallback(()=>{(o?.chain().focus()).setColor(m).run(),_()},[o,m,_]),y=t.useCallback(()=>{(o?.chain().focus()).unsetColor().run(),_()},[o,_]),b=t.useCallback(e=>{(o?.chain().focus()).setColor(e).run(),_()},[o,_]);return(0,n.jsxs)(i.Popover,{open:u,onOpenChange:(e,t)=>{t.open?(d(!0),p(`palette`),h(``)):_()},positioning:`below`,trapFocus:!0,children:[(0,n.jsx)(i.PopoverTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(Wr,{icon:e=>(0,n.jsx)(gi,{...e}),"aria-label":s.colorPickerControlLabel,title:s.colorPickerControlLabel,className:r,style:a})}),(0,n.jsxs)(i.PopoverSurface,{className:l.linkEditorDropdown,children:[f===`palette`?(0,n.jsx)(`div`,{className:l.colorSwatchGrid,children:e.map(e=>{let t=typeof s.colorPickerColorLabel==`function`?s.colorPickerColorLabel(e):`${s.colorPickerColorLabel} ${e}`;return(0,n.jsx)(`button`,{type:`button`,className:l.colorSwatch,style:{backgroundColor:e},"aria-label":t,title:t,onClick:()=>b(e)},e)})}):(0,n.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,padding:8},children:(0,n.jsx)(`input`,{ref:g,type:`color`,value:m||`#000000`,onChange:e=>h(e.target.value),style:{width:200,height:40,border:`none`,cursor:`pointer`},"aria-label":s.colorPickerColorPicker})}),(0,n.jsxs)(`div`,{className:l.colorPickerActions,children:[(0,n.jsx)(i.Button,{size:`small`,appearance:`subtle`,icon:(0,n.jsx)(_i,{style:{width:14,height:14}}),onClick:_,title:s.colorPickerCancel,"aria-label":s.colorPickerCancel}),(0,n.jsx)(i.Button,{size:`small`,appearance:`subtle`,icon:(0,n.jsx)(hi,{style:{width:14,height:14}}),onClick:y,title:s.colorPickerClear,"aria-label":s.colorPickerClear}),(0,n.jsx)(i.Button,{size:`small`,appearance:`subtle`,icon:f===`palette`?(0,n.jsx)(gi,{style:{width:14,height:14}}):(0,n.jsx)(vi,{style:{width:14,height:14}}),onClick:()=>p(e=>e===`palette`?`colorPicker`:`palette`),title:f===`palette`?s.colorPickerColorPicker:s.colorPickerPalette,"aria-label":f===`palette`?s.colorPickerColorPicker:s.colorPickerPalette}),f===`colorPicker`&&(0,n.jsx)(i.Button,{size:`small`,appearance:`subtle`,icon:(0,n.jsx)(yi,{style:{width:14,height:14}}),onClick:v,title:s.colorPickerSave,"aria-label":s.colorPickerSave})]})]})]})};ji.displayName=`RichTextEditorColorPickerControl`;var Mi=({className:e,style:r})=>{let{labels:i,editor:a}=Rr(),o=t.useCallback(()=>{if(!a)return;let e=a.getHTML(),t=a.storage;t?.sourceCode?.active?(a.commands.setContent(a.getText()),t.sourceCode={active:!1}):(a.commands.setContent(`<pre><code>${e}</code></pre>`),t.sourceCode={active:!0})},[a]);return(0,n.jsx)(Wr,{icon:e=>(0,n.jsx)(Di,{...e}),"aria-label":i.sourceCodeControlLabel,title:i.sourceCodeControlLabel,onClick:o,className:e,style:r})};Mi.displayName=`RichTextEditorSourceCodeControl`;var Ni=[`Arial`,`Verdana`,`Tahoma`,`Trebuchet MS`,`Georgia`,`Times New Roman`,`Courier New`,`Segoe UI`],Pi=({fontFamilies:e,className:r,style:a})=>{let{editor:o,labels:s,variant:c,fontFamilies:u}=Rr(),d=zr(c),[f,p]=t.useState(!1),m=e??u??Ni,h=t.useMemo(()=>{let e=new Set;return m.filter(t=>{let n=t.toLowerCase();return e.has(n)?!1:(e.add(n),!0)})},[m]),g=o?.getAttributes(`textStyle`)?.fontFamily,_=t.useCallback(e=>{(o?.chain().focus()).setFontFamily(e).run(),p(!1)},[o]),v=t.useCallback(()=>{(o?.chain().focus()).unsetFontFamily().run(),p(!1)},[o]);return(0,n.jsxs)(i.Popover,{open:f,onOpenChange:(e,t)=>p(t.open),positioning:`below`,trapFocus:!0,children:[(0,n.jsx)(i.PopoverTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(Wr,{icon:e=>(0,n.jsx)(Oi,{...e}),"aria-label":s.fontFamilyControlLabel,title:s.fontFamilyControlLabel,className:r,style:a})}),(0,n.jsx)(i.PopoverSurface,{className:d.linkEditorDropdown,children:(0,n.jsxs)(`div`,{className:d.fontFamilyList,role:`menu`,"aria-label":s.fontFamilyControlLabel,children:[(0,n.jsx)(`button`,{type:`button`,role:`menuitem`,className:(0,l.cx)(d.fontFamilyItem,!g&&d.fontFamilyItemActive),onClick:v,children:`Default`}),h.map(e=>{let t=e.split(`,`)[0].replace(/['"]/g,``).trim(),r=g===e;return(0,n.jsx)(`button`,{type:`button`,role:`menuitem`,className:(0,l.cx)(d.fontFamilyItem,r&&d.fontFamilyItemActive),style:{fontFamily:e},onClick:()=>_(e),children:t},e)})]})})]})};Pi.displayName=`RichTextEditorFontFamilyControl`;var Fi=K({label:`boldControlLabel`,icon:e=>(0,n.jsx)(Gr,{...e}),isActive:{name:`bold`},operation:{name:`toggleBold`}}),Ii=K({label:`italicControlLabel`,icon:e=>(0,n.jsx)(Kr,{...e}),isActive:{name:`italic`},operation:{name:`toggleItalic`}}),Li=K({label:`underlineControlLabel`,icon:e=>(0,n.jsx)(qr,{...e}),isActive:{name:`underline`},operation:{name:`toggleUnderline`}}),Ri=K({label:`strikeControlLabel`,icon:e=>(0,n.jsx)(Jr,{...e}),isActive:{name:`strike`},operation:{name:`toggleStrike`}}),zi=K({label:`clearFormattingControlLabel`,icon:e=>(0,n.jsx)(Yr,{...e}),operation:{name:`unsetAllMarks`}}),Bi=K({label:`unlinkControlLabel`,icon:e=>(0,n.jsx)(ii,{...e}),operation:{name:`unsetLink`}}),Vi=K({label:`bulletListControlLabel`,icon:e=>(0,n.jsx)(ni,{...e}),isActive:{name:`bulletList`},operation:{name:`toggleBulletList`}}),Hi=K({label:`orderedListControlLabel`,icon:e=>(0,n.jsx)(ri,{...e}),isActive:{name:`orderedList`},operation:{name:`toggleOrderedList`}}),Ui=K({label:`h1ControlLabel`,icon:e=>(0,n.jsx)(Xr,{...e}),isActive:{name:`heading`,attributes:{level:1}},operation:{name:`toggleHeading`,attributes:{level:1}}}),Wi=K({label:`h2ControlLabel`,icon:e=>(0,n.jsx)(Zr,{...e}),isActive:{name:`heading`,attributes:{level:2}},operation:{name:`toggleHeading`,attributes:{level:2}}}),Gi=K({label:`h3ControlLabel`,icon:e=>(0,n.jsx)(Qr,{...e}),isActive:{name:`heading`,attributes:{level:3}},operation:{name:`toggleHeading`,attributes:{level:3}}}),Ki=K({label:`h4ControlLabel`,icon:e=>(0,n.jsx)($r,{...e}),isActive:{name:`heading`,attributes:{level:4}},operation:{name:`toggleHeading`,attributes:{level:4}}}),qi=K({label:`h5ControlLabel`,icon:e=>(0,n.jsx)(ei,{...e}),isActive:{name:`heading`,attributes:{level:5}},operation:{name:`toggleHeading`,attributes:{level:5}}}),Ji=K({label:`h6ControlLabel`,icon:e=>(0,n.jsx)(ti,{...e}),isActive:{name:`heading`,attributes:{level:6}},operation:{name:`toggleHeading`,attributes:{level:6}}}),Yi=K({label:`blockquoteControlLabel`,icon:e=>(0,n.jsx)(ai,{...e}),isActive:{name:`blockquote`},operation:{name:`toggleBlockquote`}}),Xi=K({label:`alignLeftControlLabel`,icon:e=>(0,n.jsx)(oi,{...e}),operation:{name:`setTextAlign`,attributes:`left`}}),Zi=K({label:`alignRightControlLabel`,icon:e=>(0,n.jsx)(si,{...e}),operation:{name:`setTextAlign`,attributes:`right`}}),Qi=K({label:`alignCenterControlLabel`,icon:e=>(0,n.jsx)(ci,{...e}),operation:{name:`setTextAlign`,attributes:`center`}}),$i=K({label:`alignJustifyControlLabel`,icon:e=>(0,n.jsx)(li,{...e}),operation:{name:`setTextAlign`,attributes:`justify`}}),ea=K({label:`subscriptControlLabel`,icon:e=>(0,n.jsx)(ui,{...e}),isActive:{name:`subscript`},operation:{name:`toggleSubscript`}}),ta=K({label:`superscriptControlLabel`,icon:e=>(0,n.jsx)(di,{...e}),isActive:{name:`superscript`},operation:{name:`toggleSuperscript`}}),na=K({label:`codeControlLabel`,icon:e=>(0,n.jsx)(fi,{...e}),isActive:{name:`code`},operation:{name:`toggleCode`}}),ra=K({label:`codeBlockControlLabel`,icon:e=>(0,n.jsx)(fi,{...e}),isActive:{name:`codeBlock`},operation:{name:`toggleCodeBlock`}}),ia=K({label:`highlightControlLabel`,icon:e=>(0,n.jsx)(pi,{...e}),isActive:{name:`highlight`},operation:{name:`toggleHighlight`}}),aa=K({label:`hrControlLabel`,icon:e=>(0,n.jsx)(mi,{...e}),operation:{name:`setHorizontalRule`}}),oa=K({label:`unsetColorControlLabel`,icon:e=>(0,n.jsx)(hi,{...e}),operation:{name:`unsetColor`}}),sa=K({label:`undoControlLabel`,icon:e=>(0,n.jsx)(Si,{...e}),operation:{name:`undo`}}),ca=K({label:`redoControlLabel`,icon:e=>(0,n.jsx)(Ci,{...e}),operation:{name:`redo`}}),la=K({label:`tasksControlLabel`,icon:e=>(0,n.jsx)(wi,{...e}),isActive:{name:`taskList`},operation:{name:`toggleTaskList`}}),ua=K({label:`tasksSinkLabel`,icon:e=>(0,n.jsx)(Ti,{...e}),operation:{name:`sinkListItem`,attributes:`taskItem`},isDisabled:e=>!e?.can().sinkListItem(`taskItem`)}),da=K({label:`tasksLiftLabel`,icon:e=>(0,n.jsx)(Ei,{...e}),operation:{name:`liftListItem`,attributes:`taskItem`},isDisabled:e=>!e?.can().liftListItem(`taskItem`)}),fa={boldControlLabel:`Bold`,italicControlLabel:`Italic`,underlineControlLabel:`Underline`,strikeControlLabel:`Strikethrough`,clearFormattingControlLabel:`Clear formatting`,linkControlLabel:`Link`,unlinkControlLabel:`Unlink`,bulletListControlLabel:`Bullet list`,orderedListControlLabel:`Ordered list`,h1ControlLabel:`Heading 1`,h2ControlLabel:`Heading 2`,h3ControlLabel:`Heading 3`,h4ControlLabel:`Heading 4`,h5ControlLabel:`Heading 5`,h6ControlLabel:`Heading 6`,blockquoteControlLabel:`Blockquote`,alignLeftControlLabel:`Align left`,alignCenterControlLabel:`Align center`,alignRightControlLabel:`Align right`,alignJustifyControlLabel:`Align justify`,codeControlLabel:`Code`,codeBlockControlLabel:`Code block`,subscriptControlLabel:`Subscript`,superscriptControlLabel:`Superscript`,colorPickerControlLabel:`Text color`,unsetColorControlLabel:`Unset color`,highlightControlLabel:`Highlight`,hrControlLabel:`Horizontal rule`,undoControlLabel:`Undo`,redoControlLabel:`Redo`,colorControlLabel:e=>`Set text color ${e}`,sourceCodeControlLabel:`Source code`,linkEditorInputLabel:`Enter URL`,linkEditorInputPlaceholder:`https://example.com`,linkEditorExternalLink:`Open link in a new tab`,linkEditorInternalLink:`Open link in the same tab`,linkEditorSave:`Save`,colorPickerCancel:`Cancel`,colorPickerClear:`Clear color`,colorPickerColorPicker:`Color picker`,colorPickerPalette:`Color palette`,colorPickerSave:`Save`,colorPickerColorLabel:e=>`Set text color ${e}`,tasksControlLabel:`Task list`,tasksSinkLabel:`Increase indent`,tasksLiftLabel:`Decrease indent`,fontFamilyControlLabel:`Font family`},pa=({editor:e,withCodeHighlightStyles:r=!0,withTypographyStyles:i=!0,labels:a,variant:o=`default`,onSourceCodeTextSwitch:s,onContentChange:c,onFocus:u,onBlur:d,onCreate:f,onSelectionChange:p,fontFamily:m,fontFamilies:h,children:g,className:_,style:v})=>{let y=zr(o),b=t.useMemo(()=>({...fa,...a}),[a]);return(0,n.jsx)(Lr,{value:t.useMemo(()=>({editor:e,labels:b,withCodeHighlightStyles:r,withTypographyStyles:i,variant:o,onSourceCodeTextSwitch:s,onContentChange:c,onFocus:u,onBlur:d,onCreate:f,onSelectionChange:p,fontFamily:m,fontFamilies:h}),[e,b,r,i,o,s,c,u,d,f,p,m,h]),children:(0,n.jsx)(`div`,{className:(0,l.cx)(y.root,_),style:v,children:g})})};pa.displayName=`RichTextEditor`;var ma=Object.assign(pa,{Toolbar:Br,Content:Vr,ControlsGroup:Hr,Control:Ur,ControlBase:Wr,Bold:Fi,Italic:Ii,Underline:Li,Strikethrough:Ri,ClearFormatting:zi,H1:Ui,H2:Wi,H3:Gi,H4:Ki,H5:qi,H6:Ji,BulletList:Vi,OrderedList:Hi,Blockquote:Yi,Link:ki,Unlink:Bi,AlignLeft:Xi,AlignRight:Zi,AlignCenter:Qi,AlignJustify:$i,Code:na,CodeBlock:ra,Subscript:ea,Superscript:ta,Color:Ai,ColorPicker:ji,Highlight:ia,UnsetColor:oa,Hr:aa,Undo:sa,Redo:ca,TaskList:la,TaskListSink:ua,TaskListLift:da,SourceCode:Mi,FontFamily:Pi}),ha=x.default.extend({addKeyboardShortcuts(){return{"Mod-k":()=>(window.dispatchEvent(new Event(`edit-link`)),!0)}}});function ga(e){return e.extend({addKeyboardShortcuts(){return{"Mod-]":()=>this.editor.commands.sinkListItem?.(`taskItem`)??!1,"Mod-[":()=>this.editor.commands.liftListItem?.(`taskItem`)??!1}}})}var _a=()=>({dropdownRoot:(0,l.css)({border:`1px solid ${i.tokens.colorNeutralStroke2} !important`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke2} !important`,borderRadius:`50px !important`,backgroundColor:`${i.tokens.colorNeutralBackground1} !important`,padding:`0px 10px !important`,boxShadow:`none !important`,transition:`all 0.2s ease`,"&::after":{display:`none !important`,borderWidth:`0 !important`,content:`"none !important"`},"&:hover":{borderColor:`${i.tokens.colorBrandStroke1} !important`},"&:focus-within":{borderColor:`${i.tokens.colorBrandStroke1} !important`,boxShadow:`0 0 0 2px ${i.tokens.colorBrandBackground2} !important`}})}),va=({options:e,onChange:r,renderItem:a,validate:o,label:s,placeholder:c,defaultValue:l,message:u,messageType:f,required:p,size:m,hint:h})=>{let g=l?e.find(e=>e.value===l):void 0,[_,v]=(0,t.useState)(l||``),[y,b]=(0,t.useState)(g?.text||``),[x,S]=(0,t.useState)(``),C=_a(),w=(e,t)=>{let n=t.optionValue||``,i=t.optionText||``;v(n),b(i);let a=o?o(n):``;S(a),!a&&r&&r(n)},T=t.useMemo(()=>x?`error`:f===`warning`?`warning`:f===`info`?`success`:`none`,[x,f]);return(0,n.jsx)(i.Field,{label:s,required:p,validationMessage:t.useMemo(()=>x||u,[x,u]),validationMessageIcon:t.useCallback(()=>{switch(T){case`error`:return(0,n.jsx)(d.ErrorCircle12Filled,{});case`warning`:return(0,n.jsx)(d.Warning12Filled,{});case`success`:return(0,n.jsx)(d.CheckmarkCircle12Filled,{});default:return null}},[T])(),size:m,hint:h,validationState:T,children:(0,n.jsx)(i.Dropdown,{placeholder:c,onOptionSelect:w,value:y,selectedOptions:_?[_]:[],className:C.dropdownRoot,children:e.map(e=>{let t=e.icon??e.checkIcon;return(0,n.jsx)(i.Option,{value:e.value,disabled:e.disabled,as:e.as,text:e.text||``,children:a?a(e):(0,n.jsxs)(n.Fragment,{children:[t&&(0,n.jsx)(`span`,{style:{marginRight:4,display:`inline-flex`,alignItems:`center`},children:t}),e.text]})},e.value)})})})},ya=()=>({inputRoot:(0,l.css)({border:`1px solid ${i.tokens.colorNeutralStroke2} !important`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke2} !important`,borderRadius:`50px !important`,backgroundColor:`${i.tokens.colorNeutralBackground1} !important`,padding:`0px 10px !important`,boxShadow:`none !important`,transition:`all 0.2s ease`,"&::after":{display:`none !important`,borderWidth:`0 !important`,content:`"none !important"`},"&:hover":{borderColor:`${i.tokens.colorBrandStroke1} !important`},"&:focus-within":{borderColor:`${i.tokens.colorBrandStroke1} !important`,boxShadow:`0 0 0 2px ${i.tokens.colorBrandBackground2} !important`}})}),ba=({value:r,type:a=`text`,shape:o=`normal`,onChange:s,validate:c,label:l,placeholder:u,message:f,messageType:p,required:m,size:h,hint:g,disabled:_,readOnly:v,min:y,max:b,step:x,contentBefore:S,contentAfter:C})=>{let[w,T]=(0,t.useState)(r===void 0?``:String(r)),[E,D]=(0,t.useState)(``),O=ya(),k=e.u(),A=r!==void 0,j=A?String(r):w,M=(0,t.useCallback)(e=>{if(m&&e.trim()===``)return a===`number`?k.numberRequired:k.fieldRequired;if(a===`number`&&e.trim()!==``){let t=Number(e);if(isNaN(t))return k.invalidNumber;if(y!==void 0&&t<y)return k.valueMustBeAtLeast.replace(`{0}`,String(y));if(b!==void 0&&t>b)return k.valueMustBeAtMost.replace(`{0}`,String(b))}return c?c(a===`number`&&e.trim()!==``?Number(e):e):``},[m,a,c,y,b,k]),N=(0,t.useCallback)((e,t)=>{let n=t.value;if(a===`number`&&n!==``&&!/^-?\d*\.?\d*$/.test(n))return;A||T(n);let r=M(n);D(r),!r&&s&&s(a===`number`&&n.trim()!==``?Number(n):n)},[a,A,M,s]),ee=(0,t.useCallback)(()=>{D(M(j))},[M,j]),P=(0,t.useMemo)(()=>E?`error`:p===`warning`?`warning`:p===`info`?`success`:`none`,[E,p]),F=(0,t.useMemo)(()=>E||f,[E,f]),I=(0,t.useCallback)(()=>{switch(P){case`error`:return(0,n.jsx)(d.ErrorCircle12Filled,{});case`warning`:return(0,n.jsx)(d.Warning12Filled,{});case`success`:return(0,n.jsx)(d.CheckmarkCircle12Filled,{});default:return null}},[P]),L=o===`circular`?O.inputRoot:void 0;return(0,n.jsx)(i.Field,{label:l,required:m,validationMessage:F,validationMessageIcon:I(),size:h,hint:g,validationState:P,children:(0,n.jsx)(i.Input,{value:j,placeholder:u,onChange:N,onBlur:ee,disabled:_,readOnly:v,type:`text`,inputMode:a===`number`?`decimal`:`text`,step:a===`number`?x:void 0,className:L,contentBefore:S,contentAfter:C})})},xa=({onChange:e,defaultKey:r,label:a,options:o=[],minWidth:s,styles:c})=>{let[l,u]=(0,t.useState)(()=>o.map(e=>({...e,selected:e.key===(r??`status`)})));(0,t.useEffect)(()=>{let t=l.find(e=>e.selected);t&&e(t.key)},[]);let d=t.default.useCallback(t=>{u(l.map(e=>({...e,selected:e.key===t.key}))),e(t.key)},[l,e]);return(0,n.jsxs)(H,{gap:`s`,children:[a&&(0,n.jsx)(i.Label,{children:a}),(0,n.jsx)(kt,{options:l,onSelected:d,styles:s?{minWidth:s}:c??{}})]})},Sa=()=>({menuButton:(0,l.css)({minWidth:200}),popover:(0,l.css)({padding:i.tokens.spacingVerticalS,minWidth:200}),timePicker:(0,l.css)({width:`100%`})}),Ca=()=>({root:(0,l.css)({maxHeight:280,overflowY:`auto`,padding:`${i.tokens.spacingVerticalXS} 0`}),item:(0,l.css)({cursor:`pointer`})}),wa=`time`,Ta=(e,t,n)=>{let r=new Date(e);return r.setHours(t,n,0,0),r},Ea=(e,t,n)=>{let r={hour:`numeric`,minute:`2-digit`,...n&&{second:`2-digit`},...t&&{hourCycle:t}};return new Intl.DateTimeFormat(void 0,r).format(e)},Da=e=>`${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`,Oa=(e,t,n,r)=>{let i=[],a=e*60,o=t*60;for(let e=a;e<o;e+=n){let t=Math.floor(e/60),n=e%60;i.push(Ta(r,t,n))}return i},ka=t.memo(e=>{let{onTimeSelect:r,hourCycle:a,showSeconds:o=!1,startHour:s=0,endHour:c=24,increment:l=30,dateAnchor:u}=e,f=Ca(),p=t.useMemo(()=>u??new Date,[u]),m=t.useMemo(()=>Oa(s,c,l,p),[s,c,l,p]),h=t.useCallback((e,t)=>()=>{r(e,t)},[r]);return(0,n.jsx)(`div`,{className:f.root,children:m.map(e=>{let t=Ea(e,a,o),r=Da(e);return(0,n.jsx)(i.MenuItemRadio,{name:wa,value:r,onClick:h(e,t),icon:(0,n.jsx)(d.ClockRegular,{}),className:f.item,children:t},r)})})}),Aa=(e,t)=>{let n=t?new Date(t):new Date,r=n.getHours()*60+n.getMinutes(),i=Math.ceil(r/e)*e,a=new Date(n);return a.setHours(Math.floor(i/60),i%60,0,0),a},ja=t.memo(e=>{let{onSelected:r,value:a,placeholder:o=`Select a time`,hourCycle:s,showSeconds:c=!1,startHour:l,endHour:u,increment:f=30,dateAnchor:p}=e,m=Sa(),h=t.useMemo(()=>Aa(f,p),[f,p]),g=a??h,[_,v]=t.useState(g),[y,b]=t.useState(()=>Ea(g,s,c)),[x,S]=t.useState(!1);t.useEffect(()=>{a&&(v(a),b(Ea(a,s,c)))},[a,s,c]);let C=t.useCallback((e,t)=>{S(t.open)},[]),w=t.useMemo(()=>(0,d.bundleIcon)(d.ClockFilled,d.ClockRegular),[]),T=t.useMemo(()=>_?{[wa]:[Da(_)]}:{[wa]:[]},[_]),E=t.useCallback((e,t)=>{v(e),b(t),r(e),S(!1)},[r]);return(0,n.jsxs)(i.Menu,{open:x,onOpenChange:C,checkedValues:T,onCheckedValueChange:t.useCallback((e,t)=>{},[]),children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{shape:`circular`,icon:(0,n.jsx)(w,{}),className:m.menuButton,"aria-label":`Select time: ${y||o}`,children:y||o})}),(0,n.jsx)(i.MenuPopover,{className:m.popover,children:(0,n.jsx)(i.MenuList,{children:(0,n.jsx)(ka,{value:_,onTimeSelect:E,hourCycle:s,showSeconds:c,startHour:l,endHour:u,increment:f,dateAnchor:p})})})]})}),Ma=()=>({container:(0,l.css)({display:`flex`,flexDirection:`column`,gap:i.tokens.spacingVerticalS,position:`relative`}),pickerList:(0,l.css)({maxHeight:300,overflowY:`auto`,backgroundColor:i.tokens.colorNeutralBackground1,border:`1px solid ${i.tokens.colorNeutralStroke2}`,borderRadius:i.tokens.borderRadiusMedium,boxShadow:i.tokens.shadow16,scrollbarColor:`${i.tokens.colorBrandForeground1} ${i.tokens.colorNeutralBackground1}`,scrollbarWidth:`thin`,"&::-webkit-scrollbar-track":{borderRadius:10,borderWidth:1},"&::-webkit-scrollbar-thumb":{borderRadius:10,borderWidth:1},"&::-webkit-scrollbar":{height:7,width:7}}),optionContent:(0,l.css)({display:`flex`,flexDirection:`column`,gap:i.tokens.spacingVerticalXXS}),optionSecondary:(0,l.css)({fontSize:i.tokens.fontSizeBase200,color:i.tokens.colorNeutralForeground3,fontWeight:i.tokens.fontWeightRegular}),tagPickerControl:(0,l.css)({}),tagPickerInput:(0,l.css)({backgroundColor:`transparent`,border:`none`,outline:`none`,fontSize:i.tokens.fontSizeBase300,"&::placeholder":{color:i.tokens.colorNeutralForeground4},"&:focus":{outline:`none`}})}),Na=({options:r,selectedOptions:a=[],onSelectionChange:o,onSearchChange:s,onLoadMore:c,pagingInfo:l,placeholder:u,disabled:d=!1,maxSelectedOptions:f,width:p,className:m,noResultsMessage:h,loadingMessage:g,loadingMoreMessage:_,searchDebounceMs:v=300})=>{let y=Ma(),b=e.d(),x=u||b.placeholder,S=h||b.noResultsFound,C=g||b.searching,w=_||b.loadingMore,[T,E]=(0,t.useState)(``),D=(0,t.useRef)(null),O=(0,t.useRef)(null),k=a.map(e=>e.value),A=l?.isLoading??!1,j=l?.isLoadingMore??!1,M=l?.hasMore??!1,N=r.filter(e=>!k.includes(e.value)),ee=(0,t.useCallback)(e=>{E(e),D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{s?.(e)},v)},[s,v]),P=(0,t.useCallback)(e=>{if(!M||j)return;let{scrollTop:t,scrollHeight:n,clientHeight:r}=e.currentTarget;t+r>=n-100&&c?.()},[M,j,c]),F=(0,t.useCallback)((e,t)=>{if(t.value===`no-options`||t.value===`loading`||t.value===`loading-more`)return;let n=t.selectedOptions,i=a.filter(e=>n.includes(e.value));if(n.length>k.length){let e=n.find(e=>!k.includes(e));if(e){let t=r.find(t=>t.value===e);if(t){if(f&&a.length>=f)return;i.push(t)}}E(``),s?.(``)}o?.(i)},[r,a,k,o,s,f]);return(0,t.useEffect)(()=>()=>{D.current&&clearTimeout(D.current)},[]),(0,n.jsx)(`div`,{className:`${y.container} ${m||``}`,...p&&{style:{width:p}},children:(0,n.jsxs)(i.TagPicker,{onOptionSelect:F,selectedOptions:k,disabled:d,children:[(0,n.jsxs)(i.TagPickerControl,{className:y.tagPickerControl,children:[(0,n.jsx)(i.TagPickerGroup,{"aria-label":b.selectedItems,children:a.map(e=>(0,n.jsx)(i.Tag,{shape:`circular`,media:e.tagMedia??e.media,value:e.value,dismissible:!0,disabled:d,style:{minHeight:30},children:e.text},e.value))}),(0,n.jsx)(i.TagPickerInput,{className:y.tagPickerInput,"aria-label":b.searchItems,placeholder:x,value:T,onChange:e=>ee(e.target.value),disabled:d})]}),(0,n.jsx)(i.TagPickerList,{ref:O,onScroll:P,className:y.pickerList,children:A?(0,n.jsx)(i.TagPickerOption,{value:`loading`,children:C}):N.length>0?(0,n.jsxs)(n.Fragment,{children:[N.map(e=>(0,n.jsx)(i.TagPickerOption,{value:e.value,text:e.text,media:e.media,children:(0,n.jsxs)(`div`,{className:y.optionContent,children:[(0,n.jsx)(i.Text,{weight:`semibold`,children:e.text}),e.secondaryText&&(0,n.jsx)(i.Text,{size:200,className:y.optionSecondary,children:e.secondaryText})]})},e.value)),j&&(0,n.jsx)(i.TagPickerOption,{value:`loading-more`,children:w})]}):(0,n.jsx)(i.TagPickerOption,{value:`no-options`,children:S})})]})})},Pa=(e,t=0,n=10**t)=>Math.round(n*e)/n,Fa=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Ia=({h:e,s:t,v:n,a:r})=>{let i=e/360*6,a=t/100,o=n/100,s=Math.floor(i),c=o*(1-a),l=o*(1-(i-s)*a),u=o*(1-(1-i+s)*a),d=s%6,f=[o,l,c,c,u,o][d],p=[u,o,o,l,c,c][d],m=[c,c,u,o,o,l][d];return{r:Pa(f*255),g:Pa(p*255),b:Pa(m*255),a:Pa(r,2)}},La=({r:e,g:t,b:n,a:r})=>{let i=Math.max(e,t,n),a=i-Math.min(e,t,n),o=a?i===e?(t-n)/a:i===t?2+(n-e)/a:4+(e-t)/a:0;return{h:Pa(60*(o<0?o+6:o)),s:Pa(i?a/i*100:0),v:Pa(i/255*100),a:r}},Ra=({h:e,s:t,v:n,a:r})=>{let i=(200-t)*n/100;return{h:Pa(e),s:Pa(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:Pa(i/2),a:Pa(r,2)}},za=({h:e,s:t,l:n,a:r})=>(t*=(n<50?n:100-n)/100,{h:e,s:t>0?2*t/(n+t)*100:0,v:n+t,a:r}),Ba=e=>La(Ua(e)),Va=e=>Wa(Ia(e)),Ha=e=>{let t=Math.round(e.a*255).toString(16).padStart(2,`0`);return`${Va(e)}${t}`},Ua=e=>{let t=e.startsWith(`#`)?e.slice(1):e;return t.length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?Pa(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:t.length>=8?Pa(parseInt(t.slice(6,8),16)/255,2):1}},Wa=({r:e,g:t,b:n})=>`#${[e,t,n].map(e=>e.toString(16).padStart(2,`0`)).join(``)}`,Ga=({r:e,g:t,b:n,a:r})=>{let i=Math.round(r*255).toString(16).padStart(2,`0`);return`#${[e,t,n].map(e=>e.toString(16).padStart(2,`0`)).join(``)}${i}`},Ka=e=>{let{h:t,s:n,l:r}=Ra(e);return`hsl(${t}, ${n}%, ${r}%)`},qa=e=>{let{h:t,s:n,l:r,a:i}=Ra(e);return`hsla(${t}, ${n}%, ${r}%, ${i})`},Ja=e=>{let{r:t,g:n,b:r}=Ia(e);return`rgb(${t}, ${n}, ${r})`},Ya=e=>{let{r:t,g:n,b:r,a:i}=Ia(e);return`rgba(${t}, ${n}, ${r}, ${i})`},Xa=(e,t=`deg`)=>Number(e.replace(RegExp(`${t}$`),``)),Za=e=>{let t=e.match(/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?\s*[,/ ]?\s*(-?\d*\.?\d+)%?\s*[,/ ]?\s*(-?\d*\.?\d+)%?\s*[,/ ]?\s*(-?\d*\.?\d+)?\s*\)?/i);return t?za({h:Xa(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])}):{h:0,s:0,v:0,a:1}},Qa=e=>{let t=e.match(/rgba?\(?\s*(-?\d*\.?\d+)(%?)?\s*[,/ ]?\s*(-?\d*\.?\d+)(%?)?\s*[,/ ]?\s*(-?\d*\.?\d+)(%?)?\s*[,/ ]?\s*(-?\d*\.?\d+)?\s*\)?/i);return t?La({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])}):{h:0,s:0,v:0,a:1}},$a={aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyan:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,gold:`#ffd700`,goldenrod:`#daa520`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,lavender:`#e6e6fa`,lavenderblush:`#fff0f5`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,steelblue:`#4682b4`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,tomato:`#ff6347`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`},J=e=>{let t;if(typeof e!=`string`)t=e;else{let n=e.trim().toLowerCase();t=n in $a?Ba($a[n]):n.startsWith(`#`)?Ba(n):n.startsWith(`rgb`)?Qa(n):n.startsWith(`hsl`)?Za(n):Ba(n)}let n=Ia(t),r=Ra(t);return{hsva:t,hsla:r,rgba:n,hex:Wa(n),hexa:Ga(n)}},eo=e=>/^#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(e),to=e=>{let{r:t,g:n,b:r}=Ia(typeof e==`string`?J(e).hsva:e);return(.299*t+.587*n+.114*r)/255>.5?`#000000`:`#ffffff`},no=(e,t)=>e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a,ro=(e,t)=>{if(e===t)return!0;let n=e=>e.replace(`#`,``).toLowerCase();return n(e)===n(t)},io=e=>({h:Fa(e.h,0,360),s:Fa(e.s,0,100),v:Fa(e.v,0,100),a:Fa(e.a,0,1)}),Y=()=>({pointer:(0,l.css)({position:`absolute`,width:12,height:12,borderRadius:`50%`,border:`2px solid ${i.tokens.colorNeutralBackground1}`,boxShadow:i.tokens.shadow4,transform:`translate(-50%, -50%)`,pointerEvents:`none`,boxSizing:`border-box`}),interactiveContainer:(0,l.css)({position:`relative`,touchAction:`none`,userSelect:`none`,outline:`none`,cursor:`crosshair`,"&:focus-visible":{outline:`2px solid ${i.tokens.colorBrandStroke1}`,outlineOffset:2}}),saturation:(0,l.css)({position:`relative`,width:`100%`,borderRadius:i.tokens.borderRadiusMedium,overflow:`hidden`,cursor:`crosshair`}),bar:(0,l.css)({position:`relative`,borderRadius:i.tokens.borderRadiusMedium,overflow:`hidden`,cursor:`crosshair`}),checkerboard:(0,l.css)({backgroundImage:`url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAADFJREFUOE9jZGBgEGHAD97gk2YcNYBhmIQBgWSAP52AwoaFBQJouucRlsGnBCgGDAYAAIpGBAWLkEGCAAAAAElFTkSuQmCC")`,backgroundSize:`8px 8px`,backgroundPosition:`0 0, 4px 4px`,position:`absolute`,inset:0,borderRadius:`inherit`}),swatchContainer:(0,l.css)({display:`flex`,flexWrap:`wrap`,gap:i.tokens.spacingHorizontalXS}),swatch:(0,l.css)({position:`relative`,borderRadius:i.tokens.borderRadiusSmall,cursor:`pointer`,border:`1px solid ${i.tokens.colorNeutralStroke2}`,boxSizing:`border-box`,transition:`transform 120ms ease, box-shadow 120ms ease`,outline:`none`,"&:hover":{transform:`scale(1.2)`,zIndex:1,boxShadow:`0 0 0 2px rgba(255,255,255,0.8), 0 2px 6px rgba(0,0,0,0.3)`},"&:focus-visible":{outline:`2px solid ${i.tokens.colorBrandStroke1}`,outlineOffset:2}}),swatchSelected:(0,l.css)({transform:`scale(1.2)`,zIndex:1,boxShadow:`0 0 0 1px ${i.tokens.colorBrandStroke1}`}),editableInputContainer:(0,l.css)({display:`flex`,flexDirection:`column`,alignItems:`center`,gap:i.tokens.spacingVerticalXXS,flex:1,minWidth:36,overflow:`hidden`}),editableInputLabel:(0,l.css)({fontSize:i.tokens.fontSizeBase200,color:i.tokens.colorNeutralForeground3,lineHeight:i.tokens.lineHeightBase200,textTransform:`uppercase`}),sketchContainer:(0,l.css)({padding:i.tokens.spacingHorizontalM,borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,boxShadow:i.tokens.shadow8,boxSizing:`border-box`}),chromeContainer:(0,l.css)({padding:i.tokens.spacingHorizontalM,borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,boxShadow:i.tokens.shadow8,boxSizing:`border-box`}),chromePreview:(0,l.css)({width:28,height:28,borderRadius:`50%`,border:`1px solid ${i.tokens.colorNeutralStroke2}`,boxSizing:`border-box`,flexShrink:0}),colorfulContainer:(0,l.css)({borderRadius:i.tokens.borderRadiusMedium,overflow:`hidden`}),wheelContainer:(0,l.css)({position:`relative`,borderRadius:`50%`,overflow:`hidden`}),circleContainer:(0,l.css)({display:`flex`,flexWrap:`wrap`,gap:i.tokens.spacingHorizontalS,justifyContent:`center`}),circlePoint:(0,l.css)({borderRadius:`50%`,cursor:`pointer`,border:`2px solid transparent`,transition:`border-color ${i.tokens.durationNormal} ${i.tokens.curveEasyEase}`,outline:`none`,"&:hover":{opacity:.85},"&:focus-visible":{outline:`2px solid ${i.tokens.colorBrandStroke1}`,outlineOffset:2}}),circlePointSelected:(0,l.css)({borderColor:i.tokens.colorNeutralBackground1,boxShadow:`0 0 0 2px ${i.tokens.colorNeutralStroke1}`}),compactContainer:(0,l.css)({padding:i.tokens.spacingHorizontalS,borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,boxShadow:i.tokens.shadow4,boxSizing:`border-box`,width:`fit-content`}),blockContainer:(0,l.css)({borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,boxShadow:i.tokens.shadow8,overflow:`hidden`,boxSizing:`border-box`}),blockHeader:(0,l.css)({display:`flex`,alignItems:`center`,justifyContent:`center`,height:110,position:`relative`,fontSize:i.tokens.fontSizeHero800,fontWeight:i.tokens.fontWeightBold}),blockTriangle:(0,l.css)({position:`absolute`,bottom:-6,left:`50%`,transform:`translateX(-50%)`,width:0,height:0,borderLeft:`6px solid transparent`,borderRight:`6px solid transparent`}),materialContainer:(0,l.css)({width:98,padding:i.tokens.spacingHorizontalM,borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,boxShadow:i.tokens.shadow8,boxSizing:`border-box`}),materialInputUnderline:(0,l.css)({width:`100%`,height:2,marginTop:i.tokens.spacingVerticalXXS,borderRadius:i.tokens.borderRadiusSmall}),githubContainer:(0,l.css)({padding:i.tokens.spacingHorizontalM,borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,boxShadow:i.tokens.shadow8,boxSizing:`border-box`,position:`relative`}),githubArrow:(0,l.css)({position:`absolute`,width:0,height:0}),sliderContainer:(0,l.css)({display:`flex`,flexDirection:`column`,gap:i.tokens.spacingVerticalXS})}),ao=(e,t,n)=>{let r=e.getBoundingClientRect();return{left:Math.max(0,Math.min(1,(t-r.left)/r.width)),top:Math.max(0,Math.min(1,(n-r.top)/r.height))}},oo=({onMove:e,onDown:r,className:a,style:o,children:s})=>{let c=(0,t.useRef)(null),l=(0,t.useRef)(!1),u=Y(),d=(0,t.useCallback)((t,n)=>{c.current&&e?.(ao(c.current,t,n))},[e]),f=(0,t.useCallback)(()=>{let e=e=>d(e.clientX,e.clientY),t=()=>{document.removeEventListener(`mousemove`,e),document.removeEventListener(`mouseup`,t)};return{onMouseMove:e,onMouseUp:t}},[d]),p=(0,t.useCallback)(t=>{if(l.current){l.current=!1;return}if(t.preventDefault(),!c.current)return;let n=ao(c.current,t.clientX,t.clientY);r?.(n),e?.(n);let{onMouseMove:i,onMouseUp:a}=f();document.addEventListener(`mousemove`,i),document.addEventListener(`mouseup`,a)},[r,e,f]),m=(0,t.useCallback)(t=>{if(l.current=!0,!c.current||!t.touches[0])return;let n=ao(c.current,t.touches[0].clientX,t.touches[0].clientY);r?.(n),e?.(n)},[r,e]),h=(0,t.useCallback)(e=>{e.touches[0]&&d(e.touches[0].clientX,e.touches[0].clientY)},[d]);return(0,n.jsx)(`div`,{ref:c,className:(0,i.mergeClasses)(u.interactiveContainer,a),style:o,onMouseDown:p,onTouchStart:m,onTouchMove:h,role:`none`,children:s})},so=({color:e,left:t,top:r})=>(0,n.jsx)(`div`,{className:Y().pointer,style:{left:`${(t??0)*100}%`,top:`${(r??0)*100}%`,backgroundColor:e}}),co=({hsva:e,onChange:r,pointer:a=so,radius:o=6,className:s,style:c})=>{let u=Y(),d=(0,t.useCallback)(t=>{let n=io({h:e.h,s:t.left*100,v:(1-t.top)*100,a:e.a});r?.(J(n))},[e.h,e.a,r]),f=(0,t.useCallback)(t=>{let{s:n,v:i}=e,a=t.shiftKey?10:1;switch(t.key){case`ArrowRight`:n=Math.min(100,n+a);break;case`ArrowLeft`:n=Math.max(0,n-a);break;case`ArrowUp`:i=Math.min(100,i+a);break;case`ArrowDown`:i=Math.max(0,i-a);break;default:return}t.preventDefault(),r?.(J(io({...e,s:n,v:i})))},[e,r]),p=(0,t.useMemo)(()=>(0,l.css)({height:typeof c?.height==`number`?c.height:150,...c,backgroundImage:`linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, transparent)`,backgroundColor:`hsl(${e.h}, 100%, 50%)`}),[e.h,c]);return(0,n.jsx)(oo,{onMove:d,className:(0,i.mergeClasses)(u.saturation,s),children:(0,n.jsx)(`div`,{className:p,onKeyDown:f,tabIndex:0,role:`slider`,"aria-label":`Saturation and brightness`,"aria-valuetext":`Saturation ${Math.round(e.s)}%, Brightness ${Math.round(e.v)}%`,style:{borderRadius:o},children:(0,n.jsx)(a,{color:J(e).hex,left:e.s/100,top:1-e.v/100})})})},lo=`linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)`,uo=`linear-gradient(to bottom, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)`,fo=({color:e,left:t,top:r})=>(0,n.jsx)(`div`,{className:Y().pointer,style:{left:`${(t??0)*100}%`,top:`${(r??0)*100}%`,backgroundColor:e}}),po=({hsva:e,onChange:r,width:a=`100%`,height:o=12,direction:s=`horizontal`,pointer:c=fo,radius:u=6,className:d,style:f})=>{let p=Y(),m=s===`horizontal`,h=(0,t.useCallback)(t=>{let n=m?t.left:t.top,i=io({...e,h:n*360});r?.(J(i))},[e,r,m]),g=(0,t.useCallback)(t=>{let{h:n}=e,i=t.shiftKey?10:1,a=m?`ArrowRight`:`ArrowDown`,o=m?`ArrowLeft`:`ArrowUp`;if(t.key===a)n=(n+i)%360;else if(t.key===o)n=(n-i+360)%360;else return;t.preventDefault(),r?.(J(io({...e,h:n})))},[e,r,m]),_=(0,t.useMemo)(()=>(0,l.css)({width:a,height:o,backgroundImage:m?lo:uo,borderRadius:u,...f}),[a,o,m,u,f]),v=e.h/360;return(0,n.jsx)(oo,{onMove:h,className:(0,i.mergeClasses)(p.bar,d),children:(0,n.jsx)(`div`,{className:_,onKeyDown:g,tabIndex:0,role:`slider`,"aria-label":`Hue`,"aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":Math.round(e.h),children:(0,n.jsx)(c,{color:`hsl(${e.h}, 100%, 50%)`,left:m?v:.5,top:m?.5:v})})})},mo=({color:e,left:t,top:r})=>(0,n.jsx)(`div`,{className:Y().pointer,style:{left:`${(t??0)*100}%`,top:`${(r??0)*100}%`,backgroundColor:e}}),ho=({hsva:e,onChange:r,width:a=`100%`,height:o=12,direction:s=`horizontal`,pointer:c=mo,radius:u=6,className:d,style:f})=>{let p=Y(),m=s===`horizontal`,h=(0,t.useCallback)(t=>{let n=m?t.left:t.top,i=io({...e,a:Math.round(n*100)/100});r?.(J(i))},[e,r,m]),g=(0,t.useCallback)(t=>{let{a:n}=e,i=t.shiftKey?.1:.01,a=m?`ArrowRight`:`ArrowDown`,o=m?`ArrowLeft`:`ArrowUp`;if(t.key===a)n=Math.min(1,n+i);else if(t.key===o)n=Math.max(0,n-i);else return;t.preventDefault(),r?.(J(io({...e,a:Math.round(n*100)/100})))},[e,r,m]),_=Ya({...e,a:0}),v=Ya({...e,a:1}),y=m?`linear-gradient(to right, ${_}, ${v})`:`linear-gradient(to bottom, ${_}, ${v})`,b=(0,t.useMemo)(()=>(0,l.css)({width:a,height:o,position:`relative`,borderRadius:u,...f}),[a,o,u,f]),x=(0,t.useMemo)(()=>(0,l.css)({position:`absolute`,inset:0,backgroundImage:y,borderRadius:`inherit`}),[y]),S=e.a;return(0,n.jsx)(oo,{onMove:h,className:(0,i.mergeClasses)(p.bar,d),children:(0,n.jsxs)(`div`,{className:b,onKeyDown:g,tabIndex:0,role:`slider`,"aria-label":`Alpha`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(e.a*100),children:[(0,n.jsx)(`div`,{className:p.checkerboard}),(0,n.jsx)(`div`,{className:x,children:(0,n.jsx)(c,{color:Ya(e),left:m?S:.5,top:m?.5:S})})]})})},go=({color:e,left:t})=>(0,n.jsx)(`div`,{className:Y().pointer,style:{left:`${(t??0)*100}%`,top:`50%`,backgroundColor:e}}),_o=({hsva:e,onChange:r,width:a=`100%`,height:o=12,pointer:s=go,radius:c=6,className:u,style:d})=>{let f=Y(),p=(0,t.useCallback)(t=>{let n=(1-t.left)*100,i=io({...e,v:n});r?.(J(i))},[e,r]),m=(0,t.useCallback)(t=>{let{v:n}=e,i=t.shiftKey?10:1;if(t.key===`ArrowRight`)n=Math.max(0,n-i);else if(t.key===`ArrowLeft`)n=Math.min(100,n+i);else return;t.preventDefault(),r?.(J(io({...e,v:n})))},[e,r]),{h,s:g}=Ra(e),_=`linear-gradient(to right, hsl(${h}, ${g}%, 50%), hsl(${h}, ${g}%, 0%))`,v=(0,t.useMemo)(()=>(0,l.css)({width:a,height:o,backgroundImage:_,borderRadius:c,position:`relative`,...d}),[a,o,_,c,d]),y=1-e.v/100;return(0,n.jsx)(oo,{onMove:p,className:(0,i.mergeClasses)(f.bar,u),children:(0,n.jsx)(`div`,{className:v,onKeyDown:m,tabIndex:0,role:`slider`,"aria-label":`Shade`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(e.v),children:(0,n.jsx)(s,{color:J(e).hex,left:y})})})},vo=e=>typeof e==`string`?{color:e}:e,yo=({color:e,title:r,checked:a,disabled:o,size:s=24,radius:c=4,onClick:u,rectRender:d,addonBefore:f,addonAfter:p,colors:m=[],className:h,style:g})=>{let _=Y(),v=(0,t.useCallback)(e=>{o||u?.(e)},[o,u]);if(m.length===0&&e){let t=a??!1,o=(0,l.css)({width:s,height:s,borderRadius:c,backgroundColor:e}),u=d?d({className:(0,i.mergeClasses)(_.swatch,t?_.swatchSelected:!1,o,h),style:g,onClick:()=>v(e),role:`button`,"aria-pressed":t?`true`:`false`,tabIndex:0}):(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(_.swatch,t?_.swatchSelected:!1,o,h),style:g,onClick:()=>v(e),role:`button`,"aria-pressed":t?`true`:`false`,"aria-label":r??e,tabIndex:0,onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),v(e))}});return r?(0,n.jsx)(i.Tooltip,{content:r,relationship:`label`,children:u}):u}let y=(0,t.useMemo)(()=>new Map(m.map(e=>{let{color:t}=vo(e);return[t,Va(J(t).hsva)]})),[m]);return(0,n.jsxs)(H,{direction:`vertical`,gap:`xs`,children:[f,(0,n.jsx)(`div`,{className:_.swatchContainer,role:`listbox`,"aria-label":`Color swatches`,children:m.map((t,r)=>{let{color:a,title:o}=vo(t),u=y.get(a)||a,d=e?ro(u,e):!1,f=(0,l.css)({width:s,height:s,borderRadius:c,backgroundColor:a}),p=(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(_.swatch,d?_.swatchSelected:`false`,f),onClick:()=>v(a),role:`option`,"aria-selected":d?`true`:`false`,"aria-label":o??a,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),v(a))},children:d&&(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,width:s*.6,height:s*.6,style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,fill:to(Ba(a))},children:(0,n.jsx)(`path`,{d:`M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z`})})},`${a}-${r}`);return o?(0,n.jsx)(i.Tooltip,{content:o,relationship:`label`,children:p},`${a}-${r}`):p})}),p]})},bo={width:`100%`,minWidth:0,textAlign:`center`},xo=({label:e,value:r,onChange:a,placeholder:o,className:s,style:c})=>{let l=Y(),[u,d]=(0,t.useState)(String(r??``));(0,t.useEffect)(()=>{d(String(r??``))},[r]);let f=(0,t.useCallback)((e,t)=>{d(t.value)},[]),p=(0,t.useCallback)(()=>{a?.(u)},[u,a]),m=(0,t.useCallback)(e=>{e.key===`Enter`&&a?.(u)},[u,a]);return(0,n.jsxs)(`div`,{className:l.editableInputContainer,style:c,children:[(0,n.jsx)(i.Input,{size:`small`,value:u,onChange:f,onBlur:p,onKeyDown:m,placeholder:o,className:s,"aria-label":e,style:bo}),e&&(0,n.jsx)(`span`,{className:l.editableInputLabel,children:e})]})},So=({hsva:e,onChange:r,showAlpha:i=!0,className:a,style:o})=>{let s=Ia(e),c=(0,t.useCallback)((e,t)=>{let n=Number(t);if(isNaN(n))return;let i={...s};e===`a`?i.a=Math.max(0,Math.min(1,n/100)):i[e]=Math.max(0,Math.min(255,Math.round(n)));let a=La(i);r?.(J(a))},[s,r]);return(0,n.jsxs)(H,{direction:`horizontal`,gap:`xs`,className:a,style:(0,t.useMemo)(()=>({flex:3,minWidth:0,...o}),[o]),children:[(0,n.jsx)(xo,{label:`R`,value:s.r,onChange:e=>c(`r`,e)}),(0,n.jsx)(xo,{label:`G`,value:s.g,onChange:e=>c(`g`,e)}),(0,n.jsx)(xo,{label:`B`,value:s.b,onChange:e=>c(`b`,e)}),i&&(0,n.jsx)(xo,{label:`A`,value:Math.round(s.a*100),onChange:e=>c(`a`,e)})]})},Co=({hsva:e,onChange:r,showAlpha:i=!0,className:a,style:o})=>{let s=Ra(e),c=(0,t.useCallback)((e,t)=>{let n=Number(t);if(isNaN(n))return;let i={...s};e===`a`?i.a=Math.max(0,Math.min(1,n/100)):e===`h`?i.h=Math.max(0,Math.min(360,Math.round(n))):i[e]=Math.max(0,Math.min(100,Math.round(n)));let a=za(i);r?.(J(a))},[s,r]);return(0,n.jsxs)(H,{direction:`horizontal`,gap:`xs`,className:a,style:(0,t.useMemo)(()=>({flex:3,minWidth:0,...o}),[o]),children:[(0,n.jsx)(xo,{label:`H`,value:Math.round(s.h),onChange:e=>c(`h`,e)}),(0,n.jsx)(xo,{label:`S`,value:Math.round(s.s),onChange:e=>c(`s`,e)}),(0,n.jsx)(xo,{label:`L`,value:Math.round(s.l),onChange:e=>c(`l`,e)}),i&&(0,n.jsx)(xo,{label:`A`,value:Math.round(s.a*100),onChange:e=>c(`a`,e)})]})},wo=[`#D0021B`,`#F5A623`,`#F8E71C`,`#8B572A`,`#7ED321`,`#417505`,`#BD10E0`,`#9013FE`,`#4A90D9`,`#50E3C2`,`#B8E986`,`#000000`,`#4A4A4A`,`#9B9B9B`,`#FFFFFF`],To=({color:e,onChange:r,width:a=320,presetColors:o=wo,editableDisable:s=!1,disableAlpha:c=!1,className:l,style:u})=>{let d=Y(),f=e=>e?typeof e==`string`?J(e).hsva:e:{h:0,s:0,v:100,a:1},[p,m]=(0,t.useState)(()=>f(e));(0,t.useEffect)(()=>{e!==void 0&&m(f(e))},[e]);let h=(0,t.useCallback)(e=>{m(e.hsva),r?.(e)},[r]),g=(0,t.useCallback)(e=>{let t=e.startsWith(`#`)?e:`#${e}`;if(eo(t)){let e=J(t);m(e.hsva),r?.(e)}},[r]),_=(0,t.useCallback)(e=>{let t=J(e);m(t.hsva),r?.(t)},[r]),v=Va(p),y=(0,t.useMemo)(()=>({width:a,...u}),[a,u]);return(0,n.jsxs)(H,{direction:`vertical`,gap:`m`,className:(0,i.mergeClasses)(d.sketchContainer,l),style:y,children:[(0,n.jsx)(co,{hsva:p,onChange:h}),(0,n.jsxs)(H,{direction:`vertical`,gap:`s`,children:[(0,n.jsx)(po,{hsva:p,onChange:h}),!c&&(0,n.jsx)(ho,{hsva:p,onChange:h})]}),!s&&(0,n.jsxs)(H,{direction:`horizontal`,gap:`xs`,alignItems:`flex-end`,children:[(0,n.jsx)(xo,{label:`Hex`,value:v.replace(`#`,``),onChange:g}),(0,n.jsx)(So,{hsva:p,onChange:h,showAlpha:!c})]}),o.length>0&&(0,n.jsx)(yo,{colors:o,color:v,onClick:_,size:16,radius:3})]})},Eo=function(e){return e.HEXA=`hexa`,e.RGBA=`rgba`,e.HSLA=`hsla`,e}({}),Do={flex:1},Oo={flex:`none`},ko={minWidth:28,width:28,padding:0},Ao=[Eo.HEXA,Eo.RGBA,Eo.HSLA],jo=({color:e,onChange:r,width:a=320,showAlpha:o=!0,showColorPreview:s=!0,showEditableInput:c=!0,showEyeDropper:l=!0,inputType:u=Eo.HEXA,className:d,style:f})=>{let p=Y(),m=e=>e?typeof e==`string`?J(e).hsva:e:{h:0,s:68,v:100,a:1},[h,g]=(0,t.useState)(()=>m(e)),[_,v]=(0,t.useState)(u);(0,t.useEffect)(()=>{e!==void 0&&g(m(e))},[e]);let y=(0,t.useCallback)(e=>{g(e.hsva),r?.(e)},[r]),b=(0,t.useCallback)(e=>{let t=e.startsWith(`#`)?e:`#${e}`;if(eo(t)){let e=J(t);g(e.hsva),r?.(e)}},[r]),x=(0,t.useCallback)(()=>{v(e=>Ao[(Ao.indexOf(e)+1)%Ao.length])},[]),S=(0,t.useCallback)(async()=>{if(`EyeDropper`in window)try{let e=await new window.EyeDropper().open();if(e?.sRGBHex){let t=J(e.sRGBHex);g(t.hsva),r?.(t)}}catch{}},[r]),C=Va(h),w=Ha(h),T=(0,t.useMemo)(()=>({width:a,...f}),[a,f]);return(0,n.jsxs)(H,{direction:`vertical`,gap:`m`,className:(0,i.mergeClasses)(p.chromeContainer,d),style:T,children:[(0,n.jsx)(co,{hsva:h,onChange:y}),(0,n.jsxs)(H,{direction:`horizontal`,gap:`m`,alignItems:`center`,children:[s&&(0,n.jsx)(`div`,{className:p.chromePreview,style:{backgroundColor:Ya(h)},"aria-label":`Selected color: ${C}`}),(0,n.jsxs)(H,{direction:`vertical`,gap:`xs`,style:Do,children:[(0,n.jsx)(po,{hsva:h,onChange:y}),o&&(0,n.jsx)(ho,{hsva:h,onChange:y})]})]}),c&&(0,n.jsxs)(H,{direction:`horizontal`,gap:`xs`,alignItems:`flex-start`,children:[_===Eo.HEXA&&(0,n.jsx)(xo,{label:`HEX`,value:o?w.replace(`#`,``):C.replace(`#`,``),onChange:b}),_===Eo.RGBA&&(0,n.jsx)(So,{hsva:h,onChange:y,showAlpha:o}),_===Eo.HSLA&&(0,n.jsx)(Co,{hsva:h,onChange:y,showAlpha:o}),(0,n.jsxs)(H,{direction:`horizontal`,gap:`xs`,style:Oo,children:[(0,n.jsx)(i.Button,{appearance:`subtle`,size:`small`,icon:(0,n.jsx)(`span`,{children:`⇅`}),onClick:x,"aria-label":`Toggle color format`,style:ko}),l&&`EyeDropper`in window&&(0,n.jsx)(i.Button,{appearance:`subtle`,size:`small`,icon:(0,n.jsx)(`span`,{children:`💧`}),onClick:S,"aria-label":`Pick color from screen`,style:ko})]})]})]})},Mo=({color:e,onChange:r,disableAlpha:a=!1,className:o,style:s})=>{let c=Y(),l=e=>e?typeof e==`string`?J(e).hsva:e:{h:0,s:100,v:100,a:1},[u,d]=(0,t.useState)(()=>l(e));(0,t.useEffect)(()=>{e!==void 0&&d(l(e))},[e]);let f=(0,t.useCallback)(e=>{d(e.hsva),r?.(e)},[r]);return(0,n.jsxs)(H,{direction:`vertical`,gap:`m`,className:(0,i.mergeClasses)(c.colorfulContainer,o),style:s,children:[(0,n.jsx)(co,{hsva:u,onChange:f}),(0,n.jsx)(po,{hsva:u,onChange:f}),!a&&(0,n.jsx)(ho,{hsva:u,onChange:f})]})},No=({color:e,left:t,top:r})=>(0,n.jsx)(`div`,{className:Y().pointer,style:{left:`${(t??0)*100}%`,top:`${(r??0)*100}%`,backgroundColor:e}}),Po=(e,t)=>{let n=t/2,r=n*(e.s/100),i=e.h*Math.PI/180;return{x:n+r*Math.cos(i),y:n+r*Math.sin(i)}},Fo=(e,t,n)=>{let r=n/2,i=e-r,a=t-r,o=Math.atan2(a,i)*180/Math.PI;o<0&&(o+=360);let s=Math.min(Math.sqrt(i*i+a*a),r);return{h:o,s:s/r*100}},Io=({color:e,onChange:r,width:a=200,height:o,pointer:s=No,className:c,style:u})=>{let d=Y(),f=o??a,p=(0,t.useRef)(null),m=e=>e?typeof e==`string`?J(e).hsva:e:{h:0,s:100,v:100,a:1},[h,g]=(0,t.useState)(()=>m(e));(0,t.useEffect)(()=>{e!==void 0&&g(m(e))},[e]);let _=(0,t.useCallback)(e=>{let{h:t,s:n}=Fo(e.left*a,e.top*f,Math.min(a,f)),i=J({h:t,s:n,v:h.v,a:h.a});g(i.hsva),r?.(i)},[a,f,h.v,h.a,r]),v=Po(h,Math.min(a,f)),y=(0,t.useMemo)(()=>(0,l.css)({width:a,height:f,background:`conic-gradient(
|
|
144
|
+
`}),ir=({placeholder:n,onSearch:r,onChange:a,onClear:o,disabled:s=!1,className:c,width:l,value:u,shape:f=`circular`,contentBefore:p,size:m})=>{let[h,g]=(0,t.useState)(``),_=(0,t.useRef)(null),{searchBoxStyles:y,searchBoxNormalStyles:b,iconWrapperStyles:x}=rr(),S=e.v(),C=n||S.placeholder,w=u!==void 0,T=w?u:h,E=f===`circular`?y:b,D=(0,t.useCallback)((e,t)=>{w||g(t.value),a?.(t.value)},[w,a]),O=(0,t.useCallback)(()=>{w||g(``),_.current?.blur(),o?.(),r?.(``)},[w,o,r]),k=(0,t.useCallback)(e=>{e.key===`Enter`&&T.trim()?r?.(T.trim()):e.key===`Escape`&&(_.current?.blur(),w||g(``),o?.())},[T,w,r,o]);return(0,v.jsx)(i.SearchBox,{ref:_,css:E,className:c,style:{width:l},placeholder:C,value:T,onChange:D,onKeyDown:k,disabled:s,size:m,contentBefore:p??(0,v.jsx)(`span`,{css:x,children:(0,v.jsx)(d.SearchRegular,{})}),dismiss:{onClick:O}})},ar=t.memo(function({placeholder:r,size:i=`large`,onKeyDown:a,onChange:o,className:s}){let c=(0,g.useStore)(),u=(0,g.useAtomValue)(Bn),d=tr(),f=e.b(),[p,m]=(0,t.useState)(!1),h=(0,t.useRef)(null),_=(0,t.useRef)(p),v=r||f.searchPlaceholder,y=t.useCallback(e=>{G.setQuery(e,c),o?.(e)},[c,o]);return _.current=p,(0,t.useEffect)(()=>{let e=h.current;if(!e)return;let t=e=>{a?.(e),!_.current&&(e.key===`ArrowDown`&&(e.preventDefault(),G.selectNextAction(c)),e.key===`ArrowUp`&&(e.preventDefault(),G.selectPreviousAction(c)),e.key===`Enter`&&(e.preventDefault(),G.triggerSelectedAction(c)))},n=()=>m(!0),r=()=>m(!1);return e.addEventListener(`keydown`,t),e.addEventListener(`compositionstart`,n),e.addEventListener(`compositionend`,r),()=>{e.removeEventListener(`keydown`,t),e.removeEventListener(`compositionstart`,n),e.removeEventListener(`compositionend`,r)}},[a,c]),(0,n.jsx)(H,{ref:h,className:`${d.search}${s?` ${s}`:``}`,children:(0,n.jsx)(ir,{value:u,onChange:y,placeholder:v,size:i,shape:`circular`,className:(0,l.css)({maxWidth:`100% !important`})})})});function or({text:e,query:r,highlightClassName:i}){if(!r.trim())return(0,n.jsx)(n.Fragment,{children:e});let a=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);return(0,n.jsx)(n.Fragment,{children:e.split(RegExp(`(${a})`,`gi`)).map((e,a)=>e.toLowerCase()===r.toLowerCase()?(0,n.jsx)(`mark`,{className:i,children:e},a):(0,n.jsx)(t.Fragment,{children:e},a))})}var sr=t.memo(function({label:e,description:r,leftSection:a,rightSection:o,children:s,highlightQuery:c=!1,closeSpotlightOnTrigger:l,onClick:u,className:d}){let f=(0,g.useStore)(),p=(0,g.useAtomValue)(Bn),m=(0,g.useAtomValue)(Hn),h=tr(),_=(0,t.useMemo)(()=>e=>{u?.(e),(l??m)&&G.close(f)},[u,l,m,f]),v=(0,t.useMemo)(()=>e=>{e.preventDefault()},[]),y=(0,t.useMemo)(()=>e?c&&typeof e==`string`?(0,n.jsx)(Ot,{as:`span`,fontSize:`m`,fontWeight:`regular`,children:(0,n.jsx)(or,{text:e,query:p,highlightClassName:h.highlight})}):(0,n.jsx)(Ot,{as:`span`,fontSize:`m`,fontWeight:`regular`,children:e}):null,[e,c,p,h.highlight]);return(0,n.jsx)(i.Button,{"data-spotlight-action":!0,role:`option`,appearance:`subtle`,className:`${h.action}${d?` ${d}`:``}`,onClick:_,onMouseDown:v,tabIndex:-1,children:s||(0,n.jsxs)(n.Fragment,{children:[a&&(0,n.jsx)(H,{direction:`horizontal`,alignItems:`start`,justifyContent:`start`,className:h.actionSectionLeft,children:a}),(0,n.jsxs)(H,{direction:`vertical`,gap:`none`,className:h.actionBody,children:[y,r&&(0,n.jsx)(Ot,{as:`span`,fontSize:`xs`,color:`dimmed`,className:h.actionDescription,numberOfLines:1,children:r})]}),o&&(0,n.jsx)(H,{direction:`horizontal`,alignItems:`center`,justifyContent:`center`,className:h.actionSectionRight,children:o})]})})}),cr=t.memo(function({label:e,children:t,className:r}){let i=tr();return(0,n.jsxs)(H,{direction:`vertical`,className:`${i.actionsGroup}${r?` ${r}`:``}`,children:[e&&(0,n.jsx)(Ot,{as:`span`,fontSize:`xs`,fontWeight:`bold`,color:`dimmed`,className:i.actionsGroupLabel,children:e}),t]})}),lr=t.memo(function({children:e,className:r,id:i}){let a=(0,g.useStore)(),o=tr(),s=(0,t.useId)().replace(/:/g,``),c=i||`spotlight-${s}`,l=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let e=l.current;e&&(e.id=c,e.setAttribute(`role`,`listbox`),e.setAttribute(`aria-label`,`Actions`))},[c]),(0,t.useEffect)(()=>(G.setListId(c,a),()=>G.setListId(``,a)),[c,a]),(0,n.jsx)(H,{ref:l,direction:`vertical`,padding:`xs`,className:`${o.actionsList}${r?` ${r}`:``}`,children:e})}),ur=t.memo(function({children:e,className:t}){return(0,n.jsx)(H,{direction:`vertical`,alignItems:`center`,justifyContent:`center`,padding:`l`,className:t,children:(0,n.jsx)(Ot,{as:`p`,fontSize:`s`,color:`dimmed`,children:e})})}),dr=t.memo(function({children:e,className:t}){let r=tr();return(0,n.jsx)(H,{padding:`${i.tokens.spacingVerticalS} ${i.tokens.spacingHorizontalL}`,className:`${r.footer}${t?` ${t}`:``}`,children:e})}),fr=e=>Array.isArray(e)?e.map(e=>e.trim()).join(`,`).toLowerCase().trim():typeof e==`string`?e.toLowerCase().trim():``,pr=e=>e.group!==void 0&&Array.isArray(e.actions),mr=e=>e.reduce((e,t)=>pr(t)?[...e,...t.actions.map(e=>({...e,group:t.group}))]:[...e,t],[]),hr=e=>{let t={},n=[];return e.forEach(e=>{e.group?(t[e.group]||(t[e.group]={pushed:!1,data:{group:e.group,actions:[]}}),t[e.group].data.actions.push(e),t[e.group].pushed||(t[e.group].pushed=!0,n.push(t[e.group].data))):n.push(e)}),n},gr=(e,t)=>{let n=(e??``).trim().toLowerCase();if(!n)return t;let r=[[],[]];return mr(t).forEach(e=>{e.label?.toLowerCase().includes(n)?r[0].push(e):(e.description?.toLowerCase().includes(n)||fr(e.keywords).includes(n))&&r[1].push(e)}),hr(r.flat())},_r=(e,t)=>{if(!Array.isArray(e))return[];let n=0;return e.reduce((e,r)=>{if(n>=t)return e;if(pr(r)){let i=_r(r.actions,t-n);e.push({group:r.group,actions:i}),n+=i.length}else e.push(r),n+=1;return e},[])},vr=({searchProps:r,actions:i,filter:a=gr,nothingFound:o,highlightQuery:s=!1,limit:c=1/0,query:l,onQueryChange:u,store:d=Gn,...f})=>{let p=e.b(),[m,h]=(0,t.useState)(``),g=typeof l==`string`,_=(g?l:m)??``,v=(0,t.useCallback)(e=>{g||h(e),u?.(e)},[g,u]),y=(0,t.useMemo)(()=>_r(a(_,i),c),[_,i,a,c]),b=o??p.nothingFound,x=(0,t.useMemo)(()=>y.map(e=>{if(pr(e)){let t=e.actions.map(({id:e,...t})=>(0,n.jsx)(sr,{highlightQuery:s,...t},e));return(0,n.jsx)(cr,{label:e.group,children:t},e.group)}return(0,n.jsx)(sr,{highlightQuery:s,...e},e.id)}),[y,s]);return(0,n.jsxs)(nr,{...f,store:d,query:_,onQueryChange:v,children:[(0,n.jsx)(ar,{...r}),x.length>0&&(0,n.jsx)(lr,{children:x}),x.length===0&&b&&(0,n.jsx)(ur,{children:b})]})};vr.Root=nr,vr.Search=ar,vr.Action=sr,vr.ActionsGroup=cr,vr.ActionsList=lr,vr.Empty=ur,vr.Footer=dr;var yr=(0,t.createContext)(null),br=yr.Provider,xr=()=>{let e=(0,t.useContext)(yr);if(!e)throw Error(`useDropzoneContext must be used within a <Dropzone> component`);return e};function Sr(e){let t=({children:t})=>xr()[e]?(0,n.jsx)(n.Fragment,{children:t}):null;return t.displayName=`Dropzone${e.charAt(0).toUpperCase()+e.slice(1)}`,t}var Cr=Sr(`accept`),wr=Sr(`reject`),Tr=Sr(`idle`),Er=(e=`outline`,t)=>{let n=t??i.tokens.borderRadiusMedium;return{root:(0,l.css)({position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,border:e===`outline`?`2px dashed ${i.tokens.colorNeutralStroke2}`:`none`,borderRadius:n,backgroundColor:e===`filled`?i.tokens.colorNeutralBackground3:i.tokens.colorNeutralBackground1,padding:i.tokens.spacingVerticalL+` `+i.tokens.spacingHorizontalL,cursor:`pointer`,userSelect:`none`,transition:`background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease`,outline:`none`,"&:hover":{borderColor:e===`outline`?i.tokens.colorBrandStroke1:void 0,backgroundColor:e===`filled`?i.tokens.colorNeutralBackground3Hover:i.tokens.colorNeutralBackground1Hover},"&:focus-visible":{borderColor:i.tokens.colorBrandStroke1,boxShadow:`0 0 0 2px ${i.tokens.colorStrokeFocus2}`}}),rootAccept:(0,l.css)({borderColor:i.tokens.colorPaletteGreenBorder1,backgroundColor:i.tokens.colorPaletteGreenBackground1,"&:hover":{borderColor:i.tokens.colorPaletteGreenBorder1,backgroundColor:i.tokens.colorPaletteGreenBackground1}}),rootReject:(0,l.css)({borderColor:i.tokens.colorPaletteRedBorder1,backgroundColor:i.tokens.colorPaletteRedBackground1,"&:hover":{borderColor:i.tokens.colorPaletteRedBorder1,backgroundColor:i.tokens.colorPaletteRedBackground1}}),rootDisabled:(0,l.css)({opacity:.5,cursor:`default`,pointerEvents:`none`}),inner:(0,l.css)({display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,width:`100%`,pointerEvents:`none`}),loadingOverlay:(0,l.css)({position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,backgroundColor:i.tokens.colorNeutralBackgroundAlpha,borderRadius:n,zIndex:1}),fullScreen:(0,l.css)({position:`fixed`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:i.tokens.spacingVerticalXXXL+` `+i.tokens.spacingHorizontalXXXL,backgroundColor:i.tokens.colorNeutralBackgroundAlpha})}},Dr=(e,t)=>{typeof e==`function`?e(t):e&&typeof e==`object`&&`current`in e&&(e.current=t)},Or=Object.assign(t.forwardRef((t,r)=>{let{onDrop:a,onDropAny:o,onReject:s,accept:c,multiple:l=!0,maxSize:u=1/0,maxFiles:d,name:f,disabled:p=!1,loading:m=!1,openRef:h,activateOnClick:g=!0,activateOnDrag:_=!0,activateOnKeyboard:v=!0,dragEventsBubbling:b=!0,onDragEnter:x,onDragLeave:S,onDragOver:C,onFileDialogCancel:w,onFileDialogOpen:T,preventDropOnDocument:E=!0,useFsAccessApi:D=!0,getFilesFromEvent:O,validator:k,enablePointerEvents:A=!1,spinnerProps:j,inputProps:M,appearance:N=`outline`,borderRadius:ee,className:P,styles:F,children:I,"aria-label":L,...R}=t,te=e.l(),ne=Er(N,ee),re=Array.isArray(c)?c.reduce((e,t)=>(e[t]=[],e),{}):c,{getRootProps:ie,getInputProps:z,isDragActive:ae,isDragAccept:oe,isDragReject:se,open:ce}=(0,y.useDropzone)({onDrop:o,onDropAccepted:a,onDropRejected:s,disabled:p||m,accept:re,multiple:l,maxSize:u,maxFiles:d,noClick:!g,noDrag:!_,noDragEventsBubbling:!b,noKeyboard:!v,onDragEnter:x,onDragLeave:S,onDragOver:C,onFileDialogCancel:w,onFileDialogOpen:T,preventDropOnDocument:E,useFsAccessApi:D,validator:k,...O?{getFilesFromEvent:O}:null});Dr(h,ce);let le=ae&&oe,ue=ae&&se,de=!le&&!ue,fe=(0,i.mergeClasses)(ne.root,le&&ne.rootAccept,ue&&ne.rootReject,(p||m)&&ne.rootDisabled,P),{verticalSpacing:pe,horizontalSpacing:me,paddingLeft:he,paddingRight:ge,paddingTop:_e,paddingBottom:ve,padding:ye,margin:be,marginLeft:xe,marginRight:Se,marginTop:Ce,marginBottom:we,background:Te,width:Ee,height:De,maxWidth:Oe,maxHeight:ke,...Ae}=R;return(0,n.jsx)(br,{value:{accept:le,reject:ue,idle:de},children:(0,n.jsxs)(`div`,{...ie({ref:r,className:fe,style:F,role:`button`,tabIndex:0,"aria-label":L??te.dropHere,"aria-disabled":p||m||void 0,...Ae}),children:[m&&(0,n.jsx)(`div`,{className:ne.loadingOverlay,children:(0,n.jsx)(i.Spinner,{size:`medium`,label:te.loading,...j})}),(0,n.jsx)(`input`,{...z(M),name:f}),(0,n.jsx)(`div`,{className:ne.inner,style:A?{pointerEvents:`auto`}:void 0,children:I})]})})}),{Accept:Cr,Reject:wr,Idle:Tr,displayName:`Dropzone`}),kr=t.forwardRef((e,r)=>{let{active:a=!0,zIndex:o=9999,onDrop:s,onReject:c,children:u,className:d,...f}=e,[p,m]=t.useState(0),[h,g]=t.useState(!1);t.useEffect(()=>{p===0&&g(!1)},[p]),t.useEffect(()=>{if(!a)return;let e=e=>{e.dataTransfer?.types.includes(`Files`)&&(e.preventDefault(),m(e=>e+1),g(!0))},t=()=>{m(e=>e-1)},n=e=>{e.dataTransfer?.types.includes(`Files`)&&e.preventDefault()},r=e=>{e.preventDefault(),m(0),g(!1)};return document.addEventListener(`dragenter`,e,!1),document.addEventListener(`dragleave`,t,!1),document.addEventListener(`dragover`,n,!1),document.addEventListener(`drop`,r,!1),()=>{document.removeEventListener(`dragenter`,e,!1),document.removeEventListener(`dragleave`,t,!1),document.removeEventListener(`dragover`,n,!1),document.removeEventListener(`drop`,r,!1)}},[a]);let _=t.useCallback(e=>{s?.(e),g(!1),m(0)},[s]),v=t.useCallback(e=>{c?.(e),g(!1),m(0)},[c]);if(!h)return null;let y=(0,l.css)({position:`fixed`,inset:0,display:h?`flex`:`none`,alignItems:`center`,justifyContent:`center`,padding:i.tokens.spacingVerticalXXXL+` `+i.tokens.spacingHorizontalXXXL,backgroundColor:i.tokens.colorBackgroundOverlay,zIndex:o}),b=(0,l.css)({width:`100%`,maxWidth:`600px`,minHeight:`200px`});return(0,n.jsx)(i.Portal,{children:(0,n.jsx)(`div`,{ref:r,className:y,children:(0,n.jsx)(Or,{...f,activateOnClick:!1,onDrop:_,onReject:v,className:b,children:u})})})});kr.displayName=`DropzoneFullScreen`;var Ar={png:`image/png`,gif:`image/gif`,jpeg:`image/jpeg`,svg:`image/svg+xml`,webp:`image/webp`,avif:`image/avif`,heic:`image/heic`,heif:`image/heif`,mp4:`video/mp4`,zip:`application/zip`,rar:`application/x-rar`,"7z":`application/x-7z-compressed`,csv:`text/csv`,pdf:`application/pdf`,doc:`application/msword`,docx:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,xls:`application/vnd.ms-excel`,xlsx:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,ppt:`application/vnd.ms-powerpoint`,pptx:`application/vnd.openxmlformats-officedocument.presentationml.presentation`,exe:`application/vnd.microsoft.portable-executable`},jr=[Ar.png,Ar.gif,Ar.jpeg,Ar.svg,Ar.webp,Ar.avif,Ar.heic,Ar.heif],Mr=[Ar.pdf],Nr=[Ar.doc,Ar.docx],Pr=[Ar.xls,Ar.xlsx],Fr=[Ar.ppt,Ar.pptx],Ir=[Ar.exe],Lr=(0,t.createContext)(null),Rr=Lr.Provider;function zr(){let e=(0,t.useContext)(Lr);if(!e)throw Error(`RichTextEditor component was not found in tree`);return e}var Br=(e=`default`)=>{let t=e===`subtle`,n=t?`32px`:`26px`,r=t?`32px`:`26px`,a=t?`20px`:`16px`;return{root:(0,l.css)({position:`relative`,border:`1px solid ${i.tokens.colorNeutralStroke2}`,borderRadius:i.tokens.borderRadiusMedium}),toolbar:(0,l.css)({display:`flex`,alignItems:`center`,flexWrap:`wrap`,gap:i.tokens.spacingHorizontalS,backgroundColor:i.tokens.colorNeutralBackground1,zIndex:1,borderTopLeftRadius:i.tokens.borderRadiusMedium,borderTopRightRadius:i.tokens.borderRadiusMedium,borderBottom:`1px solid ${i.tokens.colorNeutralStroke2}`,padding:t?`4px`:`${i.tokens.spacingVerticalXS} ${i.tokens.spacingHorizontalM}`,...t&&{rowGap:0}}),toolbarSticky:(0,l.css)({position:`sticky`,zIndex:2}),controlsGroup:(0,l.css)({display:`flex`,backgroundColor:i.tokens.colorNeutralBackground1,...!t&&{"& > button":{borderRadius:0,"&:not(:last-of-type)":{borderInlineEndWidth:0},"&:last-of-type":{borderStartEndRadius:i.tokens.borderRadiusMedium,borderEndEndRadius:i.tokens.borderRadiusMedium},"&:first-of-type":{borderStartStartRadius:i.tokens.borderRadiusMedium,borderEndStartRadius:i.tokens.borderRadiusMedium}}}}),control:(0,l.css)({display:`flex`,justifyContent:`center`,alignItems:`center`,borderRadius:i.tokens.borderRadiusMedium,cursor:`default`,border:t?`none`:`1px solid ${i.tokens.colorNeutralStroke2}`,minWidth:n,height:r,backgroundColor:t?i.tokens.colorNeutralBackground3:i.tokens.colorNeutralBackground1,color:i.tokens.colorNeutralForeground2,padding:0,outline:`none`,fontFamily:`inherit`,fontSize:`inherit`,lineHeight:1,transition:`background-color 100ms ease, color 100ms ease`,"&[data-interactive]:not([data-disabled])":{cursor:`pointer`,"&:hover":{color:i.tokens.colorNeutralForeground1,backgroundColor:t?i.tokens.colorNeutralBackground3Hover:i.tokens.colorNeutralBackground1Hover}},"&:focus-visible":{outlineOffset:`2px`,outline:`2px solid ${i.tokens.colorStrokeFocus2}`}}),controlActive:(0,l.css)({backgroundColor:i.tokens.colorBrandBackground2,color:i.tokens.colorBrandForeground1,"&:hover":{backgroundColor:i.tokens.colorBrandBackground2Hover}}),controlDisabled:(0,l.css)({cursor:`not-allowed`,color:i.tokens.colorNeutralForegroundDisabled,backgroundColor:i.tokens.colorNeutralBackgroundDisabled}),controlIcon:(0,l.css)({width:a,height:a}),content:(0,l.css)({backgroundColor:i.tokens.colorNeutralBackground1,borderBottomLeftRadius:i.tokens.borderRadiusMedium,borderBottomRightRadius:i.tokens.borderRadiusMedium,"& .ProseMirror":{outline:0,padding:i.tokens.spacingVerticalM+` `+i.tokens.spacingHorizontalM,fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase300,fontWeight:i.tokens.fontWeightRegular,lineHeight:i.tokens.lineHeightBase300,color:i.tokens.colorNeutralForeground1},"& .ProseMirror > *:last-child":{marginBottom:0},"& .ProseMirror a":{color:i.tokens.colorBrandForeground1,textDecorationLine:`underline`,textDecorationColor:i.tokens.colorBrandStroke1,cursor:`pointer`,transition:`color 100ms ease, text-decoration-color 100ms ease`,"&:hover":{color:i.tokens.colorBrandForeground2Hover,textDecorationColor:i.tokens.colorBrandForeground2Hover},"&:active":{color:i.tokens.colorBrandForeground2Pressed},"&:visited":{color:i.tokens.colorBrandForeground1}},"& .ProseMirror p.is-editor-empty:first-of-type::before":{content:`attr(data-placeholder)`,pointerEvents:`none`,userSelect:`none`,float:`left`,height:0,color:i.tokens.colorNeutralForeground4},"& div:not(.ProseMirror)":{zIndex:2},"& pre":{fontFamily:i.tokens.fontFamilyMonospace,borderRadius:i.tokens.borderRadiusMedium,padding:`${i.tokens.spacingVerticalS} ${i.tokens.spacingHorizontalM}`,backgroundColor:i.tokens.colorNeutralBackground3,color:i.tokens.colorNeutralForeground1,"& code":{background:`none !important`,color:`inherit`,fontSize:i.tokens.fontSizeBase300,padding:0}}}),typography:(0,l.css)({padding:0,margin:0,"& li > p":{margin:0},"& ul li, & ol li":{marginTop:`2px`},"& p":{marginBottom:`7px`,fontSize:i.tokens.fontSizeBase300,lineHeight:i.tokens.lineHeightBase300},"& h1, & h2, & h3, & h4, & h5, & h6, & p":{marginTop:0},"& h1":{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeHero800,fontWeight:i.tokens.fontWeightBold,lineHeight:i.tokens.lineHeightHero800},"& h2":{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeHero700,fontWeight:i.tokens.fontWeightSemibold,lineHeight:i.tokens.lineHeightHero700},"& h3":{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase600,fontWeight:i.tokens.fontWeightSemibold,lineHeight:i.tokens.lineHeightBase600},"& h4":{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase500,fontWeight:i.tokens.fontWeightSemibold,lineHeight:i.tokens.lineHeightBase500},"& h5":{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase400,fontWeight:i.tokens.fontWeightSemibold,lineHeight:i.tokens.lineHeightBase400},"& h6":{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase300,fontWeight:i.tokens.fontWeightSemibold,lineHeight:i.tokens.lineHeightBase300},"& blockquote":{fontFamily:i.tokens.fontFamilyBase,fontStyle:`italic`,color:i.tokens.colorNeutralForeground2,borderInlineStart:`3px solid ${i.tokens.colorBrandStroke1}`,paddingInlineStart:i.tokens.spacingHorizontalM,margin:`${i.tokens.spacingVerticalS} 0`},"& code":{fontFamily:i.tokens.fontFamilyMonospace,fontSize:i.tokens.fontSizeBase200,backgroundColor:i.tokens.colorNeutralBackground3,borderRadius:i.tokens.borderRadiusSmall,padding:`1px ${i.tokens.spacingHorizontalXS}`}}),linkEditorDropdown:(0,l.css)({backgroundColor:i.tokens.colorNeutralBackground1}),linkEditor:(0,l.css)({display:`flex`,gap:0}),linkEditorInput:(0,l.css)({borderStartEndRadius:0,borderEndEndRadius:0,borderInlineEnd:0,flex:1}),linkEditorExternalControl:(0,l.css)({border:`1px solid ${i.tokens.colorNeutralStroke2}`,color:i.tokens.colorNeutralForeground1,height:`24px`,width:`24px`,display:`flex`,justifyContent:`center`,alignItems:`center`,borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,cursor:`pointer`,padding:0,outline:`none`}),linkEditorExternalControlActive:(0,l.css)({backgroundColor:i.tokens.colorBrandBackground2,color:i.tokens.colorBrandForeground1,"&:hover":{backgroundColor:i.tokens.colorBrandBackground2Hover}}),linkEditorSave:(0,l.css)({borderStartStartRadius:0,borderEndStartRadius:0}),colorSwatch:(0,l.css)({width:`26px`,height:`26px`,borderRadius:i.tokens.borderRadiusSmall,border:`1px solid ${i.tokens.colorNeutralStroke2}`,cursor:`pointer`,padding:0,outline:`none`,transition:`transform 100ms ease`,"&:hover":{transform:`scale(1.1)`},"&:focus-visible":{outlineOffset:`2px`,outline:`2px solid ${i.tokens.colorStrokeFocus2}`}}),colorSwatchGrid:(0,l.css)({display:`grid`,gridTemplateColumns:`repeat(7, 1fr)`,gap:`2px`}),colorPickerActions:(0,l.css)({display:`flex`,justifyContent:`flex-end`,gap:i.tokens.spacingHorizontalXS,marginTop:i.tokens.spacingVerticalS}),taskList:(0,l.css)({listStyleType:`none`,padding:0,paddingInlineStart:0,"& li":{margin:0,padding:0,display:`flex`},"& li[data-checked] > div":{flex:`1 1 auto`,minWidth:0},"& ul":{marginTop:`5px`},"& p":{margin:0,padding:0},"& label":{display:`inline-block`},"& input":{cursor:`pointer`,appearance:`none`,width:`18px`,height:`18px`,border:`1px solid ${i.tokens.colorNeutralStroke2}`,borderRadius:i.tokens.borderRadiusSmall,verticalAlign:`middle`,position:`relative`,backgroundColor:i.tokens.colorNeutralBackground1,"&:checked":{backgroundColor:i.tokens.colorBrandBackground,borderColor:i.tokens.colorBrandBackground,"&::before":{position:`absolute`,content:`''`,inset:0,backgroundImage:`url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAxMCA3Ij48cGF0aCBmaWxsPSIjZmZmIiBkPSJNNCA0LjU4NkwxLjcwNyAyLjI5M0ExIDEgMCAxMC4yOTMgMy43MDdsMyAzYS45OTcuOTk3IDAgMDAxLjQxNCAwbDUtNUExIDEgMCAxMDguMjkzLjI5M0w0IDQuNTg2eiIvPjwvc3ZnPg==')`,backgroundRepeat:`no-repeat`,backgroundSize:`10px`,backgroundPosition:`center`}}},"& li > label":{marginInlineEnd:i.tokens.spacingHorizontalS}}),fontFamilyList:(0,l.css)({listStyleType:`none`,margin:0,padding:`${i.tokens.spacingVerticalXS} 0`,maxHeight:`280px`,overflowY:`auto`,minWidth:`200px`}),fontFamilyItem:(0,l.css)({display:`flex`,alignItems:`center`,width:`100%`,padding:`${i.tokens.spacingVerticalXS} ${i.tokens.spacingHorizontalM}`,border:`none`,backgroundColor:`transparent`,color:i.tokens.colorNeutralForeground1,fontSize:i.tokens.fontSizeBase300,cursor:`pointer`,outline:`none`,textAlign:`start`,transition:`background-color 100ms ease`,"&:hover":{backgroundColor:i.tokens.colorNeutralBackground1Hover},"&:focus-visible":{outlineOffset:`-2px`,outline:`2px solid ${i.tokens.colorStrokeFocus2}`}}),fontFamilyItemActive:(0,l.css)({backgroundColor:i.tokens.colorBrandBackground2,color:i.tokens.colorBrandForeground1,fontWeight:i.tokens.fontWeightSemibold,"&:hover":{backgroundColor:i.tokens.colorBrandBackground2Hover}})}},Vr=({sticky:e=!1,stickyOffset:t=0,children:r,className:i,style:a})=>{let{variant:o}=zr(),s=Br(o);return(0,n.jsx)(`div`,{className:(0,l.cx)(s.toolbar,e&&s.toolbarSticky,i),style:e?{...a,top:t}:a,role:`toolbar`,"aria-label":`Text formatting`,children:r})};Vr.displayName=`RichTextEditorToolbar`;var Hr=({className:e,style:r})=>{let{editor:i,withTypographyStyles:a,variant:o,onContentChange:s,onFocus:c,onBlur:u,onCreate:d,onSelectionChange:f,fontFamily:p}=zr(),m=Br(o),h=t.useRef(s),g=t.useRef(c),_=t.useRef(u),v=t.useRef(d),y=t.useRef(f);return t.useEffect(()=>{h.current=s},[s]),t.useEffect(()=>{g.current=c},[c]),t.useEffect(()=>{_.current=u},[u]),t.useEffect(()=>{v.current=d},[d]),t.useEffect(()=>{y.current=f},[f]),t.useEffect(()=>{if(!i)return;let e=()=>{h.current?.(i.getHTML(),i.getJSON())},t=({event:e})=>{g.current?.(e)},n=({event:e})=>{_.current?.(e)},r=()=>{v.current?.()},a=()=>{y.current?.()};return i.on(`update`,e),i.on(`focus`,t),i.on(`blur`,n),i.on(`create`,r),i.on(`selectionUpdate`,a),()=>{i.off(`update`,e),i.off(`focus`,t),i.off(`blur`,n),i.off(`create`,r),i.off(`selectionUpdate`,a)}},[i]),(0,n.jsx)(`div`,{className:(0,l.cx)(m.content,a&&m.typography,e),style:{...r,...p?{fontFamily:p}:{}},children:(0,n.jsx)(b.EditorContent,{editor:i})})};Hr.displayName=`RichTextEditorContent`;var Ur=({children:e,className:t,style:r})=>{let{variant:i}=zr();return(0,n.jsx)(`div`,{className:(0,l.cx)(Br(i).controlsGroup,t),style:r,role:`group`,children:e})};Ur.displayName=`RichTextEditorControlsGroup`;var Wr=t.forwardRef((e,t)=>{let{interactive:r=!0,active:a,disabled:o,onClick:s,onMouseDown:c,children:l,className:u,style:d,...f}=e,{variant:p}=zr(),m=Br(p);return(0,n.jsx)(`button`,{ref:t,type:`button`,...f,className:(0,i.mergeClasses)(m.control,a&&m.controlActive,o&&m.controlDisabled,u),style:d,disabled:o,tabIndex:r?0:-1,"data-interactive":r||void 0,"data-disabled":o||void 0,"data-active":a||void 0,"aria-pressed":a&&r?!0:void 0,"aria-hidden":!r||void 0,onMouseDown:e=>{e.preventDefault(),c?.(e)},onClick:s,children:l})});Wr.displayName=`RichTextEditorControl`;var Gr=t.forwardRef(({icon:e,className:t,...r},i)=>{let{variant:a}=zr(),o=Br(a),s=a===`subtle`?`16px`:`20px`;return(0,n.jsx)(Wr,{ref:i,className:t,...r,children:(0,n.jsx)(`span`,{className:o.controlIcon,children:(0,n.jsx)(e,{style:{width:s,height:s}})})})});Gr.displayName=`RichTextEditorControlBase`;function K({label:e,isActive:t,operation:r,icon:i,isDisabled:a}){let o=o=>{let{editor:s,labels:c}=zr(),l=c[e],u=typeof l==`function`?``:l;return(0,n.jsx)(Gr,{"aria-label":u,title:u,active:t?.name?s?.isActive(t.name,t.attributes):!1,icon:o.icon||i,disabled:a?.(s)||!1,...o,onClick:()=>s?.chain().focus()[r.name](r.attributes).run()})};return o.displayName=`RichTextEditorControl_${e}`,o}function q(e){return(0,n.jsx)(`svg`,{...e,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,strokeWidth:`1.5`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`})}function Kr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M7 5h6a3.5 3.5 0 0 1 0 7h-6z`}),(0,n.jsx)(`path`,{d:`M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7`})]})}function qr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M11 5l6 0`}),(0,n.jsx)(`path`,{d:`M7 19l6 0`}),(0,n.jsx)(`path`,{d:`M14 5l-4 14`})]})}function Jr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M7 5v5a5 5 0 0 0 10 0v-5`}),(0,n.jsx)(`path`,{d:`M5 19h14`})]})}function Yr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M5 12l14 0`}),(0,n.jsx)(`path`,{d:`M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5`})]})}function Xr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M17 15l4 4m0 -4l-4 4`}),(0,n.jsx)(`path`,{d:`M7 6v-1h11v1`}),(0,n.jsx)(`path`,{d:`M7 19l4 0`}),(0,n.jsx)(`path`,{d:`M13 5l-4 14`})]})}function Zr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M19 18v-8l-2 2`}),(0,n.jsx)(`path`,{d:`M4 6v12`}),(0,n.jsx)(`path`,{d:`M12 6v12`}),(0,n.jsx)(`path`,{d:`M11 18h2`}),(0,n.jsx)(`path`,{d:`M3 18h2`}),(0,n.jsx)(`path`,{d:`M4 12h8`}),(0,n.jsx)(`path`,{d:`M3 6h2`}),(0,n.jsx)(`path`,{d:`M11 6h2`})]})}function Qr(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M17 12a2 2 0 1 1 4 0c0 .591 -.417 1.318 -.816 1.858l-3.184 4.143l4 0`}),(0,n.jsx)(`path`,{d:`M4 6v12`}),(0,n.jsx)(`path`,{d:`M12 6v12`}),(0,n.jsx)(`path`,{d:`M11 18h2`}),(0,n.jsx)(`path`,{d:`M3 18h2`}),(0,n.jsx)(`path`,{d:`M4 12h8`}),(0,n.jsx)(`path`,{d:`M3 6h2`}),(0,n.jsx)(`path`,{d:`M11 6h2`})]})}function $r(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M19 14a2 2 0 1 0 -2 -2`}),(0,n.jsx)(`path`,{d:`M17 16a2 2 0 1 0 2 -2`}),(0,n.jsx)(`path`,{d:`M4 6v12`}),(0,n.jsx)(`path`,{d:`M12 6v12`}),(0,n.jsx)(`path`,{d:`M11 18h2`}),(0,n.jsx)(`path`,{d:`M3 18h2`}),(0,n.jsx)(`path`,{d:`M4 12h8`}),(0,n.jsx)(`path`,{d:`M3 6h2`}),(0,n.jsx)(`path`,{d:`M11 6h2`})]})}function ei(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M20 18v-8l-4 6h5`}),(0,n.jsx)(`path`,{d:`M4 6v12`}),(0,n.jsx)(`path`,{d:`M12 6v12`}),(0,n.jsx)(`path`,{d:`M11 18h2`}),(0,n.jsx)(`path`,{d:`M3 18h2`}),(0,n.jsx)(`path`,{d:`M4 12h8`}),(0,n.jsx)(`path`,{d:`M3 6h2`}),(0,n.jsx)(`path`,{d:`M11 6h2`})]})}function ti(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M17 18h2a2 2 0 1 0 0 -4h-2v-4h4`}),(0,n.jsx)(`path`,{d:`M4 6v12`}),(0,n.jsx)(`path`,{d:`M12 6v12`}),(0,n.jsx)(`path`,{d:`M11 18h2`}),(0,n.jsx)(`path`,{d:`M3 18h2`}),(0,n.jsx)(`path`,{d:`M4 12h8`}),(0,n.jsx)(`path`,{d:`M3 6h2`}),(0,n.jsx)(`path`,{d:`M11 6h2`})]})}function ni(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M19 14a2 2 0 1 0 0 4a2 2 0 0 0 0 -4z`}),(0,n.jsx)(`path`,{d:`M21 12a2 2 0 1 0 -4 0v4`}),(0,n.jsx)(`path`,{d:`M4 6v12`}),(0,n.jsx)(`path`,{d:`M12 6v12`}),(0,n.jsx)(`path`,{d:`M11 18h2`}),(0,n.jsx)(`path`,{d:`M3 18h2`}),(0,n.jsx)(`path`,{d:`M4 12h8`}),(0,n.jsx)(`path`,{d:`M3 6h2`}),(0,n.jsx)(`path`,{d:`M11 6h2`})]})}function ri(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M9 6l11 0`}),(0,n.jsx)(`path`,{d:`M9 12l11 0`}),(0,n.jsx)(`path`,{d:`M9 18l11 0`}),(0,n.jsx)(`path`,{d:`M5 6l0 .01`}),(0,n.jsx)(`path`,{d:`M5 12l0 .01`}),(0,n.jsx)(`path`,{d:`M5 18l0 .01`})]})}function ii(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M11 6h9`}),(0,n.jsx)(`path`,{d:`M11 12h9`}),(0,n.jsx)(`path`,{d:`M12 18h8`}),(0,n.jsx)(`path`,{d:`M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4`}),(0,n.jsx)(`path`,{d:`M6 10v-6l-2 2`})]})}function ai(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M17 22v-2`}),(0,n.jsx)(`path`,{d:`M9 15l6 -6`}),(0,n.jsx)(`path`,{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`}),(0,n.jsx)(`path`,{d:`M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463`}),(0,n.jsx)(`path`,{d:`M20 17h2`}),(0,n.jsx)(`path`,{d:`M2 7h2`}),(0,n.jsx)(`path`,{d:`M7 2v2`})]})}function oi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M6 15h15`}),(0,n.jsx)(`path`,{d:`M21 19h-15`}),(0,n.jsx)(`path`,{d:`M15 11h6`}),(0,n.jsx)(`path`,{d:`M21 7h-6`}),(0,n.jsx)(`path`,{d:`M9 9h1a1 1 0 1 1 -1 1v-2.5a2 2 0 0 1 2 -2`}),(0,n.jsx)(`path`,{d:`M3 9h1a1 1 0 1 1 -1 1v-2.5a2 2 0 0 1 2 -2`})]})}function si(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M4 6l16 0`}),(0,n.jsx)(`path`,{d:`M4 12l10 0`}),(0,n.jsx)(`path`,{d:`M4 18l14 0`})]})}function ci(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M4 6l16 0`}),(0,n.jsx)(`path`,{d:`M10 12l10 0`}),(0,n.jsx)(`path`,{d:`M6 18l14 0`})]})}function li(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M4 6l16 0`}),(0,n.jsx)(`path`,{d:`M8 12l8 0`}),(0,n.jsx)(`path`,{d:`M6 18l12 0`})]})}function ui(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M4 6l16 0`}),(0,n.jsx)(`path`,{d:`M4 12l16 0`}),(0,n.jsx)(`path`,{d:`M4 18l12 0`})]})}function di(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M5 7l8 10m-8 0l8 -10`}),(0,n.jsx)(`path`,{d:`M21 20h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2`})]})}function fi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M5 7l8 10m-8 0l8 -10`}),(0,n.jsx)(`path`,{d:`M21 11h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2`})]})}function pi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M7 8l-4 4l4 4`}),(0,n.jsx)(`path`,{d:`M17 8l4 4l-4 4`}),(0,n.jsx)(`path`,{d:`M14 4l-4 16`})]})}function mi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M3 19h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4`}),(0,n.jsx)(`path`,{d:`M12.5 5.5l4 4`}),(0,n.jsx)(`path`,{d:`M4.5 13.5l4 4`}),(0,n.jsx)(`path`,{d:`M21 15v4h-8l4 -4z`})]})}function hi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M5 12h2`}),(0,n.jsx)(`path`,{d:`M17 12h2`}),(0,n.jsx)(`path`,{d:`M11 12h2`})]})}function gi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M20.042 16.045a9 9 0 0 0 -12.087 -12.087m-2.318 1.677a9 9 0 1 0 12.725 12.73`}),(0,n.jsx)(`path`,{d:`M3 3l18 18`})]})}function _i(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M11 7l6 6`}),(0,n.jsx)(`path`,{d:`M4 16l11.7 -11.7a1 1 0 0 1 1.4 0l2.6 2.6a1 1 0 0 1 0 1.4l-11.7 11.7h-4v-4z`})]})}function vi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M18 6l-12 12`}),(0,n.jsx)(`path`,{d:`M6 6l12 12`})]})}function yi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25`}),(0,n.jsx)(`path`,{d:`M8.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}),(0,n.jsx)(`path`,{d:`M12.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}),(0,n.jsx)(`path`,{d:`M16.5 10.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`})]})}function bi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M5 12l5 5l10 -10`})]})}function xi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M9 15l6 -6`}),(0,n.jsx)(`path`,{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`}),(0,n.jsx)(`path`,{d:`M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463`})]})}function Si(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6`}),(0,n.jsx)(`path`,{d:`M11 13l9 -9`}),(0,n.jsx)(`path`,{d:`M15 4h5v5`})]})}function Ci(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M9 14l-4 -4l4 -4`}),(0,n.jsx)(`path`,{d:`M5 10h11a4 4 0 1 1 0 8h-1`})]})}function wi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M15 14l4 -4l-4 -4`}),(0,n.jsx)(`path`,{d:`M19 10h-11a4 4 0 1 0 0 8h1`})]})}function Ti(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M3.5 5.5l1.5 1.5l2.5 -2.5`}),(0,n.jsx)(`path`,{d:`M3.5 11.5l1.5 1.5l2.5 -2.5`}),(0,n.jsx)(`path`,{d:`M3.5 17.5l1.5 1.5l2.5 -2.5`}),(0,n.jsx)(`path`,{d:`M11 6l9 0`}),(0,n.jsx)(`path`,{d:`M11 12l9 0`}),(0,n.jsx)(`path`,{d:`M11 18l9 0`})]})}function Ei(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M20 6l-11 0`}),(0,n.jsx)(`path`,{d:`M20 12l-7 0`}),(0,n.jsx)(`path`,{d:`M20 18l-11 0`}),(0,n.jsx)(`path`,{d:`M4 8l4 4l-4 4`})]})}function Di(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M20 6l-7 0`}),(0,n.jsx)(`path`,{d:`M20 12l-9 0`}),(0,n.jsx)(`path`,{d:`M20 18l-7 0`}),(0,n.jsx)(`path`,{d:`M8 8l-4 4l4 4`})]})}function Oi(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M19 3v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V7.914a1 1 0 0 1 .293-.707l3.914-3.914A1 1 0 0 1 9.914 3H18a1 1 0 0 1 1 1Z`}),(0,n.jsx)(`path`,{d:`M10 11l-2 2 2 2`}),(0,n.jsx)(`path`,{d:`M14 11l2 2-2 2`})]})}function ki(e){return(0,n.jsxs)(q,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M4 20l3 0`}),(0,n.jsx)(`path`,{d:`M14 20l7 0`}),(0,n.jsx)(`path`,{d:`M6.9 15l6.9 0`}),(0,n.jsx)(`path`,{d:`M10.2 6.3l5.8 13.7`}),(0,n.jsx)(`path`,{d:`M5 20l6 -16l2 0l7 16`})]})}var Ai=({disableTooltips:e=!1,initialExternal:r=!1,className:a,style:o,...s})=>{let{editor:c,labels:u,variant:d}=zr(),f=Br(d),[p,m]=t.useState(``),[h,g]=t.useState(r),[_,v]=t.useState(!1),y=t.useCallback(()=>{v(!0);let e=c?.getAttributes(`link`);m(e?.href||``),g(typeof e?.target==`string`?e.target===`_blank`:r)},[c,r]),b=t.useCallback(()=>{v(!1),m(``),g(r)},[r]),x=t.useCallback(()=>{b(),(c?.chain().focus().extendMarkRange(`link`)).setLink({href:p,target:h?`_blank`:null}).run()},[c,p,h,b]),S=t.useCallback(e=>{e.key===`Enter`&&(e.preventDefault(),x())},[x]);return t.useEffect(()=>{let e=()=>y();return window.addEventListener(`edit-link`,e),()=>window.removeEventListener(`edit-link`,e)},[y]),(0,n.jsxs)(i.Popover,{open:_,onOpenChange:(e,t)=>{t.open||b()},positioning:`below`,trapFocus:!0,children:[(0,n.jsx)(i.PopoverTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(Gr,{icon:e=>(0,n.jsx)(xi,{...e}),"aria-label":u.linkControlLabel,title:u.linkControlLabel,active:c?.isActive(`link`),onClick:y,className:a,style:o,...s})}),(0,n.jsx)(i.PopoverSurface,{className:f.linkEditorDropdown,children:(0,n.jsxs)(`div`,{className:f.linkEditor,children:[(0,n.jsx)(i.Input,{placeholder:u.linkEditorInputPlaceholder,"aria-label":u.linkEditorInputLabel,type:`url`,value:p,onChange:(e,t)=>m(t.value),onKeyDown:S,className:f.linkEditorInput,size:`small`}),e?(0,n.jsx)(i.Button,{appearance:`subtle`,size:`small`,className:(0,l.cx)(f.linkEditorExternalControl,h&&f.linkEditorExternalControlActive),onClick:()=>g(e=>!e),"aria-label":h?u.linkEditorExternalLink:u.linkEditorInternalLink,icon:(0,n.jsx)(Si,{style:{width:14,height:14}})}):(0,n.jsx)(i.Tooltip,{content:h?u.linkEditorExternalLink:u.linkEditorInternalLink,relationship:`label`,children:(0,n.jsx)(i.Button,{appearance:`subtle`,size:`small`,className:(0,l.cx)(f.linkEditorExternalControl,h&&f.linkEditorExternalControlActive),onClick:()=>g(e=>!e),icon:(0,n.jsx)(Si,{style:{width:14,height:14}})})}),(0,n.jsx)(i.Button,{size:`small`,appearance:`primary`,className:f.linkEditorSave,onClick:x,children:u.linkEditorSave})]})})]})};Ai.displayName=`RichTextEditorLinkControl`;var ji=({color:e,className:t,style:r})=>{let{editor:i,labels:a,variant:o}=zr(),s=Br(o),c=typeof a.colorControlLabel==`function`?a.colorControlLabel(e):`${a.colorControlLabel} ${e}`;return(0,n.jsx)(`button`,{type:`button`,className:(0,l.cx)(s.control,t),style:r,"aria-label":c,title:c,onClick:()=>(i?.chain().focus()).setColor(e).run(),children:(0,n.jsx)(`span`,{className:s.colorSwatch,style:{backgroundColor:e}})})};ji.displayName=`RichTextEditorColorControl`;var Mi=({colors:e,className:r,style:a})=>{let{editor:o,labels:s,variant:c}=zr(),l=Br(c),[u,d]=t.useState(!1),[f,p]=t.useState(`palette`),[m,h]=t.useState(``),g=t.useRef(null),_=t.useCallback(()=>{d(!1)},[]),v=t.useCallback(()=>{(o?.chain().focus()).setColor(m).run(),_()},[o,m,_]),y=t.useCallback(()=>{(o?.chain().focus()).unsetColor().run(),_()},[o,_]),b=t.useCallback(e=>{(o?.chain().focus()).setColor(e).run(),_()},[o,_]);return(0,n.jsxs)(i.Popover,{open:u,onOpenChange:(e,t)=>{t.open?(d(!0),p(`palette`),h(``)):_()},positioning:`below`,trapFocus:!0,children:[(0,n.jsx)(i.PopoverTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(Gr,{icon:e=>(0,n.jsx)(_i,{...e}),"aria-label":s.colorPickerControlLabel,title:s.colorPickerControlLabel,className:r,style:a})}),(0,n.jsxs)(i.PopoverSurface,{className:l.linkEditorDropdown,children:[f===`palette`?(0,n.jsx)(`div`,{className:l.colorSwatchGrid,children:e.map(e=>{let t=typeof s.colorPickerColorLabel==`function`?s.colorPickerColorLabel(e):`${s.colorPickerColorLabel} ${e}`;return(0,n.jsx)(`button`,{type:`button`,className:l.colorSwatch,style:{backgroundColor:e},"aria-label":t,title:t,onClick:()=>b(e)},e)})}):(0,n.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,padding:8},children:(0,n.jsx)(`input`,{ref:g,type:`color`,value:m||`#000000`,onChange:e=>h(e.target.value),style:{width:200,height:40,border:`none`,cursor:`pointer`},"aria-label":s.colorPickerColorPicker})}),(0,n.jsxs)(`div`,{className:l.colorPickerActions,children:[(0,n.jsx)(i.Button,{size:`small`,appearance:`subtle`,icon:(0,n.jsx)(vi,{style:{width:14,height:14}}),onClick:_,title:s.colorPickerCancel,"aria-label":s.colorPickerCancel}),(0,n.jsx)(i.Button,{size:`small`,appearance:`subtle`,icon:(0,n.jsx)(gi,{style:{width:14,height:14}}),onClick:y,title:s.colorPickerClear,"aria-label":s.colorPickerClear}),(0,n.jsx)(i.Button,{size:`small`,appearance:`subtle`,icon:f===`palette`?(0,n.jsx)(_i,{style:{width:14,height:14}}):(0,n.jsx)(yi,{style:{width:14,height:14}}),onClick:()=>p(e=>e===`palette`?`colorPicker`:`palette`),title:f===`palette`?s.colorPickerColorPicker:s.colorPickerPalette,"aria-label":f===`palette`?s.colorPickerColorPicker:s.colorPickerPalette}),f===`colorPicker`&&(0,n.jsx)(i.Button,{size:`small`,appearance:`subtle`,icon:(0,n.jsx)(bi,{style:{width:14,height:14}}),onClick:v,title:s.colorPickerSave,"aria-label":s.colorPickerSave})]})]})]})};Mi.displayName=`RichTextEditorColorPickerControl`;var Ni=({className:e,style:r})=>{let{labels:i,editor:a}=zr(),o=t.useCallback(()=>{if(!a)return;let e=a.getHTML(),t=a.storage;t?.sourceCode?.active?(a.commands.setContent(a.getText()),t.sourceCode={active:!1}):(a.commands.setContent(`<pre><code>${e}</code></pre>`),t.sourceCode={active:!0})},[a]);return(0,n.jsx)(Gr,{icon:e=>(0,n.jsx)(Oi,{...e}),"aria-label":i.sourceCodeControlLabel,title:i.sourceCodeControlLabel,onClick:o,className:e,style:r})};Ni.displayName=`RichTextEditorSourceCodeControl`;var Pi=[`Arial`,`Verdana`,`Tahoma`,`Trebuchet MS`,`Georgia`,`Times New Roman`,`Courier New`,`Segoe UI`],Fi=({fontFamilies:e,className:r,style:a})=>{let{editor:o,labels:s,variant:c,fontFamilies:u}=zr(),d=Br(c),[f,p]=t.useState(!1),m=e??u??Pi,h=t.useMemo(()=>{let e=new Set;return m.filter(t=>{let n=t.toLowerCase();return e.has(n)?!1:(e.add(n),!0)})},[m]),g=o?.getAttributes(`textStyle`)?.fontFamily,_=t.useCallback(e=>{(o?.chain().focus()).setFontFamily(e).run(),p(!1)},[o]),v=t.useCallback(()=>{(o?.chain().focus()).unsetFontFamily().run(),p(!1)},[o]);return(0,n.jsxs)(i.Popover,{open:f,onOpenChange:(e,t)=>p(t.open),positioning:`below`,trapFocus:!0,children:[(0,n.jsx)(i.PopoverTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(Gr,{icon:e=>(0,n.jsx)(ki,{...e}),"aria-label":s.fontFamilyControlLabel,title:s.fontFamilyControlLabel,className:r,style:a})}),(0,n.jsx)(i.PopoverSurface,{className:d.linkEditorDropdown,children:(0,n.jsxs)(`div`,{className:d.fontFamilyList,role:`menu`,"aria-label":s.fontFamilyControlLabel,children:[(0,n.jsx)(`button`,{type:`button`,role:`menuitem`,className:(0,l.cx)(d.fontFamilyItem,!g&&d.fontFamilyItemActive),onClick:v,children:`Default`}),h.map(e=>{let t=e.split(`,`)[0].replace(/['"]/g,``).trim(),r=g===e;return(0,n.jsx)(`button`,{type:`button`,role:`menuitem`,className:(0,l.cx)(d.fontFamilyItem,r&&d.fontFamilyItemActive),style:{fontFamily:e},onClick:()=>_(e),children:t},e)})]})})]})};Fi.displayName=`RichTextEditorFontFamilyControl`;var Ii=K({label:`boldControlLabel`,icon:e=>(0,n.jsx)(Kr,{...e}),isActive:{name:`bold`},operation:{name:`toggleBold`}}),Li=K({label:`italicControlLabel`,icon:e=>(0,n.jsx)(qr,{...e}),isActive:{name:`italic`},operation:{name:`toggleItalic`}}),Ri=K({label:`underlineControlLabel`,icon:e=>(0,n.jsx)(Jr,{...e}),isActive:{name:`underline`},operation:{name:`toggleUnderline`}}),zi=K({label:`strikeControlLabel`,icon:e=>(0,n.jsx)(Yr,{...e}),isActive:{name:`strike`},operation:{name:`toggleStrike`}}),Bi=K({label:`clearFormattingControlLabel`,icon:e=>(0,n.jsx)(Xr,{...e}),operation:{name:`unsetAllMarks`}}),Vi=K({label:`unlinkControlLabel`,icon:e=>(0,n.jsx)(ai,{...e}),operation:{name:`unsetLink`}}),Hi=K({label:`bulletListControlLabel`,icon:e=>(0,n.jsx)(ri,{...e}),isActive:{name:`bulletList`},operation:{name:`toggleBulletList`}}),Ui=K({label:`orderedListControlLabel`,icon:e=>(0,n.jsx)(ii,{...e}),isActive:{name:`orderedList`},operation:{name:`toggleOrderedList`}}),Wi=K({label:`h1ControlLabel`,icon:e=>(0,n.jsx)(Zr,{...e}),isActive:{name:`heading`,attributes:{level:1}},operation:{name:`toggleHeading`,attributes:{level:1}}}),Gi=K({label:`h2ControlLabel`,icon:e=>(0,n.jsx)(Qr,{...e}),isActive:{name:`heading`,attributes:{level:2}},operation:{name:`toggleHeading`,attributes:{level:2}}}),Ki=K({label:`h3ControlLabel`,icon:e=>(0,n.jsx)($r,{...e}),isActive:{name:`heading`,attributes:{level:3}},operation:{name:`toggleHeading`,attributes:{level:3}}}),qi=K({label:`h4ControlLabel`,icon:e=>(0,n.jsx)(ei,{...e}),isActive:{name:`heading`,attributes:{level:4}},operation:{name:`toggleHeading`,attributes:{level:4}}}),Ji=K({label:`h5ControlLabel`,icon:e=>(0,n.jsx)(ti,{...e}),isActive:{name:`heading`,attributes:{level:5}},operation:{name:`toggleHeading`,attributes:{level:5}}}),Yi=K({label:`h6ControlLabel`,icon:e=>(0,n.jsx)(ni,{...e}),isActive:{name:`heading`,attributes:{level:6}},operation:{name:`toggleHeading`,attributes:{level:6}}}),Xi=K({label:`blockquoteControlLabel`,icon:e=>(0,n.jsx)(oi,{...e}),isActive:{name:`blockquote`},operation:{name:`toggleBlockquote`}}),Zi=K({label:`alignLeftControlLabel`,icon:e=>(0,n.jsx)(si,{...e}),operation:{name:`setTextAlign`,attributes:`left`}}),Qi=K({label:`alignRightControlLabel`,icon:e=>(0,n.jsx)(ci,{...e}),operation:{name:`setTextAlign`,attributes:`right`}}),$i=K({label:`alignCenterControlLabel`,icon:e=>(0,n.jsx)(li,{...e}),operation:{name:`setTextAlign`,attributes:`center`}}),ea=K({label:`alignJustifyControlLabel`,icon:e=>(0,n.jsx)(ui,{...e}),operation:{name:`setTextAlign`,attributes:`justify`}}),ta=K({label:`subscriptControlLabel`,icon:e=>(0,n.jsx)(di,{...e}),isActive:{name:`subscript`},operation:{name:`toggleSubscript`}}),na=K({label:`superscriptControlLabel`,icon:e=>(0,n.jsx)(fi,{...e}),isActive:{name:`superscript`},operation:{name:`toggleSuperscript`}}),ra=K({label:`codeControlLabel`,icon:e=>(0,n.jsx)(pi,{...e}),isActive:{name:`code`},operation:{name:`toggleCode`}}),ia=K({label:`codeBlockControlLabel`,icon:e=>(0,n.jsx)(pi,{...e}),isActive:{name:`codeBlock`},operation:{name:`toggleCodeBlock`}}),aa=K({label:`highlightControlLabel`,icon:e=>(0,n.jsx)(mi,{...e}),isActive:{name:`highlight`},operation:{name:`toggleHighlight`}}),oa=K({label:`hrControlLabel`,icon:e=>(0,n.jsx)(hi,{...e}),operation:{name:`setHorizontalRule`}}),sa=K({label:`unsetColorControlLabel`,icon:e=>(0,n.jsx)(gi,{...e}),operation:{name:`unsetColor`}}),ca=K({label:`undoControlLabel`,icon:e=>(0,n.jsx)(Ci,{...e}),operation:{name:`undo`}}),la=K({label:`redoControlLabel`,icon:e=>(0,n.jsx)(wi,{...e}),operation:{name:`redo`}}),ua=K({label:`tasksControlLabel`,icon:e=>(0,n.jsx)(Ti,{...e}),isActive:{name:`taskList`},operation:{name:`toggleTaskList`}}),da=K({label:`tasksSinkLabel`,icon:e=>(0,n.jsx)(Ei,{...e}),operation:{name:`sinkListItem`,attributes:`taskItem`},isDisabled:e=>!e?.can().sinkListItem(`taskItem`)}),fa=K({label:`tasksLiftLabel`,icon:e=>(0,n.jsx)(Di,{...e}),operation:{name:`liftListItem`,attributes:`taskItem`},isDisabled:e=>!e?.can().liftListItem(`taskItem`)}),pa={boldControlLabel:`Bold`,italicControlLabel:`Italic`,underlineControlLabel:`Underline`,strikeControlLabel:`Strikethrough`,clearFormattingControlLabel:`Clear formatting`,linkControlLabel:`Link`,unlinkControlLabel:`Unlink`,bulletListControlLabel:`Bullet list`,orderedListControlLabel:`Ordered list`,h1ControlLabel:`Heading 1`,h2ControlLabel:`Heading 2`,h3ControlLabel:`Heading 3`,h4ControlLabel:`Heading 4`,h5ControlLabel:`Heading 5`,h6ControlLabel:`Heading 6`,blockquoteControlLabel:`Blockquote`,alignLeftControlLabel:`Align left`,alignCenterControlLabel:`Align center`,alignRightControlLabel:`Align right`,alignJustifyControlLabel:`Align justify`,codeControlLabel:`Code`,codeBlockControlLabel:`Code block`,subscriptControlLabel:`Subscript`,superscriptControlLabel:`Superscript`,colorPickerControlLabel:`Text color`,unsetColorControlLabel:`Unset color`,highlightControlLabel:`Highlight`,hrControlLabel:`Horizontal rule`,undoControlLabel:`Undo`,redoControlLabel:`Redo`,colorControlLabel:e=>`Set text color ${e}`,sourceCodeControlLabel:`Source code`,linkEditorInputLabel:`Enter URL`,linkEditorInputPlaceholder:`https://example.com`,linkEditorExternalLink:`Open link in a new tab`,linkEditorInternalLink:`Open link in the same tab`,linkEditorSave:`Save`,colorPickerCancel:`Cancel`,colorPickerClear:`Clear color`,colorPickerColorPicker:`Color picker`,colorPickerPalette:`Color palette`,colorPickerSave:`Save`,colorPickerColorLabel:e=>`Set text color ${e}`,tasksControlLabel:`Task list`,tasksSinkLabel:`Increase indent`,tasksLiftLabel:`Decrease indent`,fontFamilyControlLabel:`Font family`},ma=({editor:e,withCodeHighlightStyles:r=!0,withTypographyStyles:i=!0,labels:a,variant:o=`default`,onSourceCodeTextSwitch:s,onContentChange:c,onFocus:u,onBlur:d,onCreate:f,onSelectionChange:p,fontFamily:m,fontFamilies:h,children:g,className:_,style:v})=>{let y=Br(o),b=t.useMemo(()=>({...pa,...a}),[a]);return(0,n.jsx)(Rr,{value:t.useMemo(()=>({editor:e,labels:b,withCodeHighlightStyles:r,withTypographyStyles:i,variant:o,onSourceCodeTextSwitch:s,onContentChange:c,onFocus:u,onBlur:d,onCreate:f,onSelectionChange:p,fontFamily:m,fontFamilies:h}),[e,b,r,i,o,s,c,u,d,f,p,m,h]),children:(0,n.jsx)(`div`,{className:(0,l.cx)(y.root,_),style:v,children:g})})};ma.displayName=`RichTextEditor`;var ha=Object.assign(ma,{Toolbar:Vr,Content:Hr,ControlsGroup:Ur,Control:Wr,ControlBase:Gr,Bold:Ii,Italic:Li,Underline:Ri,Strikethrough:zi,ClearFormatting:Bi,H1:Wi,H2:Gi,H3:Ki,H4:qi,H5:Ji,H6:Yi,BulletList:Hi,OrderedList:Ui,Blockquote:Xi,Link:Ai,Unlink:Vi,AlignLeft:Zi,AlignRight:Qi,AlignCenter:$i,AlignJustify:ea,Code:ra,CodeBlock:ia,Subscript:ta,Superscript:na,Color:ji,ColorPicker:Mi,Highlight:aa,UnsetColor:sa,Hr:oa,Undo:ca,Redo:la,TaskList:ua,TaskListSink:da,TaskListLift:fa,SourceCode:Ni,FontFamily:Fi}),ga=x.default.extend({addKeyboardShortcuts(){return{"Mod-k":()=>(window.dispatchEvent(new Event(`edit-link`)),!0)}}});function _a(e){return e.extend({addKeyboardShortcuts(){return{"Mod-]":()=>this.editor.commands.sinkListItem?.(`taskItem`)??!1,"Mod-[":()=>this.editor.commands.liftListItem?.(`taskItem`)??!1}}})}var va=()=>({dropdownRoot:(0,l.css)({border:`1px solid ${i.tokens.colorNeutralStroke2} !important`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke2} !important`,borderRadius:`50px !important`,backgroundColor:`${i.tokens.colorNeutralBackground1} !important`,padding:`0px 10px !important`,boxShadow:`none !important`,transition:`all 0.2s ease`,"&::after":{display:`none !important`,borderWidth:`0 !important`,content:`"none !important"`},"&:hover":{borderColor:`${i.tokens.colorBrandStroke1} !important`},"&:focus-within":{borderColor:`${i.tokens.colorBrandStroke1} !important`,boxShadow:`0 0 0 2px ${i.tokens.colorBrandBackground2} !important`}})}),ya=({options:e,onChange:r,renderItem:a,validate:o,label:s,placeholder:c,defaultValue:l,message:u,messageType:f,required:p,size:m,hint:h})=>{let g=l?e.find(e=>e.value===l):void 0,[_,v]=(0,t.useState)(l||``),[y,b]=(0,t.useState)(g?.text||``),[x,S]=(0,t.useState)(``),C=va(),w=(e,t)=>{let n=t.optionValue||``,i=t.optionText||``;v(n),b(i);let a=o?o(n):``;S(a),!a&&r&&r(n)},T=t.useMemo(()=>x?`error`:f===`warning`?`warning`:f===`info`?`success`:`none`,[x,f]);return(0,n.jsx)(i.Field,{label:s,required:p,validationMessage:t.useMemo(()=>x||u,[x,u]),validationMessageIcon:t.useCallback(()=>{switch(T){case`error`:return(0,n.jsx)(d.ErrorCircle12Filled,{});case`warning`:return(0,n.jsx)(d.Warning12Filled,{});case`success`:return(0,n.jsx)(d.CheckmarkCircle12Filled,{});default:return null}},[T])(),size:m,hint:h,validationState:T,children:(0,n.jsx)(i.Dropdown,{placeholder:c,onOptionSelect:w,value:y,selectedOptions:_?[_]:[],className:C.dropdownRoot,children:e.map(e=>{let t=e.icon??e.checkIcon;return(0,n.jsx)(i.Option,{value:e.value,disabled:e.disabled,as:e.as,text:e.text||``,children:a?a(e):(0,n.jsxs)(n.Fragment,{children:[t&&(0,n.jsx)(`span`,{style:{marginRight:4,display:`inline-flex`,alignItems:`center`},children:t}),e.text]})},e.value)})})})},ba=()=>({inputRoot:(0,l.css)({border:`1px solid ${i.tokens.colorNeutralStroke2} !important`,borderBottom:`1px solid ${i.tokens.colorNeutralStroke2} !important`,borderRadius:`50px !important`,backgroundColor:`${i.tokens.colorNeutralBackground1} !important`,padding:`0px 10px !important`,boxShadow:`none !important`,transition:`all 0.2s ease`,"&::after":{display:`none !important`,borderWidth:`0 !important`,content:`"none !important"`},"&:hover":{borderColor:`${i.tokens.colorBrandStroke1} !important`},"&:focus-within":{borderColor:`${i.tokens.colorBrandStroke1} !important`,boxShadow:`0 0 0 2px ${i.tokens.colorBrandBackground2} !important`}})}),xa=({value:r,type:a=`text`,shape:o=`normal`,onChange:s,validate:c,label:l,placeholder:u,message:f,messageType:p,required:m,size:h,hint:g,disabled:_,readOnly:v,min:y,max:b,step:x,contentBefore:S,contentAfter:C})=>{let[w,T]=(0,t.useState)(r===void 0?``:String(r)),[E,D]=(0,t.useState)(``),O=ba(),k=e.u(),A=r!==void 0,j=A?String(r):w,M=(0,t.useCallback)(e=>{if(m&&e.trim()===``)return a===`number`?k.numberRequired:k.fieldRequired;if(a===`number`&&e.trim()!==``){let t=Number(e);if(isNaN(t))return k.invalidNumber;if(y!==void 0&&t<y)return k.valueMustBeAtLeast.replace(`{0}`,String(y));if(b!==void 0&&t>b)return k.valueMustBeAtMost.replace(`{0}`,String(b))}return c?c(a===`number`&&e.trim()!==``?Number(e):e):``},[m,a,c,y,b,k]),N=(0,t.useCallback)((e,t)=>{let n=t.value;if(a===`number`&&n!==``&&!/^-?\d*\.?\d*$/.test(n))return;A||T(n);let r=M(n);D(r),!r&&s&&s(a===`number`&&n.trim()!==``?Number(n):n)},[a,A,M,s]),ee=(0,t.useCallback)(()=>{D(M(j))},[M,j]),P=(0,t.useMemo)(()=>E?`error`:p===`warning`?`warning`:p===`info`?`success`:`none`,[E,p]),F=(0,t.useMemo)(()=>E||f,[E,f]),I=(0,t.useCallback)(()=>{switch(P){case`error`:return(0,n.jsx)(d.ErrorCircle12Filled,{});case`warning`:return(0,n.jsx)(d.Warning12Filled,{});case`success`:return(0,n.jsx)(d.CheckmarkCircle12Filled,{});default:return null}},[P]),L=o===`circular`?O.inputRoot:void 0;return(0,n.jsx)(i.Field,{label:l,required:m,validationMessage:F,validationMessageIcon:I(),size:h,hint:g,validationState:P,children:(0,n.jsx)(i.Input,{value:j,placeholder:u,onChange:N,onBlur:ee,disabled:_,readOnly:v,type:`text`,inputMode:a===`number`?`decimal`:`text`,step:a===`number`?x:void 0,className:L,contentBefore:S,contentAfter:C})})},Sa=({onChange:e,defaultKey:r,label:a,options:o=[],minWidth:s,styles:c})=>{let[l,u]=(0,t.useState)(()=>o.map(e=>({...e,selected:e.key===(r??`status`)})));(0,t.useEffect)(()=>{let t=l.find(e=>e.selected);t&&e(t.key)},[]);let d=t.default.useCallback(t=>{u(l.map(e=>({...e,selected:e.key===t.key}))),e(t.key)},[l,e]);return(0,n.jsxs)(H,{gap:`s`,children:[a&&(0,n.jsx)(i.Label,{children:a}),(0,n.jsx)(At,{options:l,onSelected:d,styles:s?{minWidth:s}:c??{}})]})},Ca=()=>({menuButton:(0,l.css)({minWidth:200}),popover:(0,l.css)({padding:i.tokens.spacingVerticalS,minWidth:200}),timePicker:(0,l.css)({width:`100%`})}),wa=()=>({root:(0,l.css)({maxHeight:280,overflowY:`auto`,padding:`${i.tokens.spacingVerticalXS} 0`}),item:(0,l.css)({cursor:`pointer`})}),Ta=`time`,Ea=(e,t,n)=>{let r=new Date(e);return r.setHours(t,n,0,0),r},Da=(e,t,n)=>{let r={hour:`numeric`,minute:`2-digit`,...n&&{second:`2-digit`},...t&&{hourCycle:t}};return new Intl.DateTimeFormat(void 0,r).format(e)},Oa=e=>`${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`,ka=(e,t,n,r)=>{let i=[],a=e*60,o=t*60;for(let e=a;e<o;e+=n){let t=Math.floor(e/60),n=e%60;i.push(Ea(r,t,n))}return i},Aa=t.memo(e=>{let{onTimeSelect:r,hourCycle:a,showSeconds:o=!1,startHour:s=0,endHour:c=24,increment:l=30,dateAnchor:u}=e,f=wa(),p=t.useMemo(()=>u??new Date,[u]),m=t.useMemo(()=>ka(s,c,l,p),[s,c,l,p]),h=t.useCallback((e,t)=>()=>{r(e,t)},[r]);return(0,n.jsx)(`div`,{className:f.root,children:m.map(e=>{let t=Da(e,a,o),r=Oa(e);return(0,n.jsx)(i.MenuItemRadio,{name:Ta,value:r,onClick:h(e,t),icon:(0,n.jsx)(d.ClockRegular,{}),className:f.item,children:t},r)})})}),ja=(e,t)=>{let n=t?new Date(t):new Date,r=n.getHours()*60+n.getMinutes(),i=Math.ceil(r/e)*e,a=new Date(n);return a.setHours(Math.floor(i/60),i%60,0,0),a},Ma=t.memo(e=>{let{onSelected:r,value:a,placeholder:o=`Select a time`,hourCycle:s,showSeconds:c=!1,startHour:l,endHour:u,increment:f=30,dateAnchor:p}=e,m=Ca(),h=t.useMemo(()=>ja(f,p),[f,p]),g=a??h,[_,v]=t.useState(g),[y,b]=t.useState(()=>Da(g,s,c)),[x,S]=t.useState(!1);t.useEffect(()=>{a&&(v(a),b(Da(a,s,c)))},[a,s,c]);let C=t.useCallback((e,t)=>{S(t.open)},[]),w=t.useMemo(()=>(0,d.bundleIcon)(d.ClockFilled,d.ClockRegular),[]),T=t.useMemo(()=>_?{[Ta]:[Oa(_)]}:{[Ta]:[]},[_]),E=t.useCallback((e,t)=>{v(e),b(t),r(e),S(!1)},[r]);return(0,n.jsxs)(i.Menu,{open:x,onOpenChange:C,checkedValues:T,onCheckedValueChange:t.useCallback((e,t)=>{},[]),children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{shape:`circular`,icon:(0,n.jsx)(w,{}),className:m.menuButton,"aria-label":`Select time: ${y||o}`,children:y||o})}),(0,n.jsx)(i.MenuPopover,{className:m.popover,children:(0,n.jsx)(i.MenuList,{children:(0,n.jsx)(Aa,{value:_,onTimeSelect:E,hourCycle:s,showSeconds:c,startHour:l,endHour:u,increment:f,dateAnchor:p})})})]})}),Na=()=>({container:(0,l.css)({display:`flex`,flexDirection:`column`,gap:i.tokens.spacingVerticalS,position:`relative`}),pickerList:(0,l.css)({maxHeight:300,overflowY:`auto`,backgroundColor:i.tokens.colorNeutralBackground1,border:`1px solid ${i.tokens.colorNeutralStroke2}`,borderRadius:i.tokens.borderRadiusMedium,boxShadow:i.tokens.shadow16,scrollbarColor:`${i.tokens.colorBrandForeground1} ${i.tokens.colorNeutralBackground1}`,scrollbarWidth:`thin`,"&::-webkit-scrollbar-track":{borderRadius:10,borderWidth:1},"&::-webkit-scrollbar-thumb":{borderRadius:10,borderWidth:1},"&::-webkit-scrollbar":{height:7,width:7}}),optionContent:(0,l.css)({display:`flex`,flexDirection:`column`,gap:i.tokens.spacingVerticalXXS}),optionSecondary:(0,l.css)({fontSize:i.tokens.fontSizeBase200,color:i.tokens.colorNeutralForeground3,fontWeight:i.tokens.fontWeightRegular}),tagPickerControl:(0,l.css)({}),tagPickerInput:(0,l.css)({backgroundColor:`transparent`,border:`none`,outline:`none`,fontSize:i.tokens.fontSizeBase300,"&::placeholder":{color:i.tokens.colorNeutralForeground4},"&:focus":{outline:`none`}})}),Pa=({options:r,selectedOptions:a=[],onSelectionChange:o,onSearchChange:s,onLoadMore:c,pagingInfo:l,placeholder:u,disabled:d=!1,maxSelectedOptions:f,width:p,className:m,noResultsMessage:h,loadingMessage:g,loadingMoreMessage:_,searchDebounceMs:v=300})=>{let y=Na(),b=e.d(),x=u||b.placeholder,S=h||b.noResultsFound,C=g||b.searching,w=_||b.loadingMore,[T,E]=(0,t.useState)(``),D=(0,t.useRef)(null),O=(0,t.useRef)(null),k=a.map(e=>e.value),A=l?.isLoading??!1,j=l?.isLoadingMore??!1,M=l?.hasMore??!1,N=r.filter(e=>!k.includes(e.value)),ee=(0,t.useCallback)(e=>{E(e),D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{s?.(e)},v)},[s,v]),P=(0,t.useCallback)(e=>{if(!M||j)return;let{scrollTop:t,scrollHeight:n,clientHeight:r}=e.currentTarget;t+r>=n-100&&c?.()},[M,j,c]),F=(0,t.useCallback)((e,t)=>{if(t.value===`no-options`||t.value===`loading`||t.value===`loading-more`)return;let n=t.selectedOptions,i=a.filter(e=>n.includes(e.value));if(n.length>k.length){let e=n.find(e=>!k.includes(e));if(e){let t=r.find(t=>t.value===e);if(t){if(f&&a.length>=f)return;i.push(t)}}E(``),s?.(``)}o?.(i)},[r,a,k,o,s,f]);return(0,t.useEffect)(()=>()=>{D.current&&clearTimeout(D.current)},[]),(0,n.jsx)(`div`,{className:`${y.container} ${m||``}`,...p&&{style:{width:p}},children:(0,n.jsxs)(i.TagPicker,{onOptionSelect:F,selectedOptions:k,disabled:d,children:[(0,n.jsxs)(i.TagPickerControl,{className:y.tagPickerControl,children:[(0,n.jsx)(i.TagPickerGroup,{"aria-label":b.selectedItems,children:a.map(e=>(0,n.jsx)(i.Tag,{shape:`circular`,media:e.tagMedia??e.media,value:e.value,dismissible:!0,disabled:d,style:{minHeight:30},children:e.text},e.value))}),(0,n.jsx)(i.TagPickerInput,{className:y.tagPickerInput,"aria-label":b.searchItems,placeholder:x,value:T,onChange:e=>ee(e.target.value),disabled:d})]}),(0,n.jsx)(i.TagPickerList,{ref:O,onScroll:P,className:y.pickerList,children:A?(0,n.jsx)(i.TagPickerOption,{value:`loading`,children:C}):N.length>0?(0,n.jsxs)(n.Fragment,{children:[N.map(e=>(0,n.jsx)(i.TagPickerOption,{value:e.value,text:e.text,media:e.media,children:(0,n.jsxs)(`div`,{className:y.optionContent,children:[(0,n.jsx)(i.Text,{weight:`semibold`,children:e.text}),e.secondaryText&&(0,n.jsx)(i.Text,{size:200,className:y.optionSecondary,children:e.secondaryText})]})},e.value)),j&&(0,n.jsx)(i.TagPickerOption,{value:`loading-more`,children:w})]}):(0,n.jsx)(i.TagPickerOption,{value:`no-options`,children:S})})]})})},Fa=(e,t=0,n=10**t)=>Math.round(n*e)/n,Ia=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),La=({h:e,s:t,v:n,a:r})=>{let i=e/360*6,a=t/100,o=n/100,s=Math.floor(i),c=o*(1-a),l=o*(1-(i-s)*a),u=o*(1-(1-i+s)*a),d=s%6,f=[o,l,c,c,u,o][d],p=[u,o,o,l,c,c][d],m=[c,c,u,o,o,l][d];return{r:Fa(f*255),g:Fa(p*255),b:Fa(m*255),a:Fa(r,2)}},Ra=({r:e,g:t,b:n,a:r})=>{let i=Math.max(e,t,n),a=i-Math.min(e,t,n),o=a?i===e?(t-n)/a:i===t?2+(n-e)/a:4+(e-t)/a:0;return{h:Fa(60*(o<0?o+6:o)),s:Fa(i?a/i*100:0),v:Fa(i/255*100),a:r}},za=({h:e,s:t,v:n,a:r})=>{let i=(200-t)*n/100;return{h:Fa(e),s:Fa(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:Fa(i/2),a:Fa(r,2)}},Ba=({h:e,s:t,l:n,a:r})=>(t*=(n<50?n:100-n)/100,{h:e,s:t>0?2*t/(n+t)*100:0,v:n+t,a:r}),Va=e=>Ra(Wa(e)),Ha=e=>Ga(La(e)),Ua=e=>{let t=Math.round(e.a*255).toString(16).padStart(2,`0`);return`${Ha(e)}${t}`},Wa=e=>{let t=e.startsWith(`#`)?e.slice(1):e;return t.length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?Fa(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:t.length>=8?Fa(parseInt(t.slice(6,8),16)/255,2):1}},Ga=({r:e,g:t,b:n})=>`#${[e,t,n].map(e=>e.toString(16).padStart(2,`0`)).join(``)}`,Ka=({r:e,g:t,b:n,a:r})=>{let i=Math.round(r*255).toString(16).padStart(2,`0`);return`#${[e,t,n].map(e=>e.toString(16).padStart(2,`0`)).join(``)}${i}`},qa=e=>{let{h:t,s:n,l:r}=za(e);return`hsl(${t}, ${n}%, ${r}%)`},Ja=e=>{let{h:t,s:n,l:r,a:i}=za(e);return`hsla(${t}, ${n}%, ${r}%, ${i})`},Ya=e=>{let{r:t,g:n,b:r}=La(e);return`rgb(${t}, ${n}, ${r})`},Xa=e=>{let{r:t,g:n,b:r,a:i}=La(e);return`rgba(${t}, ${n}, ${r}, ${i})`},Za=(e,t=`deg`)=>Number(e.replace(RegExp(`${t}$`),``)),Qa=e=>{let t=e.match(/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?\s*[,/ ]?\s*(-?\d*\.?\d+)%?\s*[,/ ]?\s*(-?\d*\.?\d+)%?\s*[,/ ]?\s*(-?\d*\.?\d+)?\s*\)?/i);return t?Ba({h:Za(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])}):{h:0,s:0,v:0,a:1}},$a=e=>{let t=e.match(/rgba?\(?\s*(-?\d*\.?\d+)(%?)?\s*[,/ ]?\s*(-?\d*\.?\d+)(%?)?\s*[,/ ]?\s*(-?\d*\.?\d+)(%?)?\s*[,/ ]?\s*(-?\d*\.?\d+)?\s*\)?/i);return t?Ra({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])}):{h:0,s:0,v:0,a:1}},eo={aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyan:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,gold:`#ffd700`,goldenrod:`#daa520`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,lavender:`#e6e6fa`,lavenderblush:`#fff0f5`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,steelblue:`#4682b4`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,tomato:`#ff6347`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`},J=e=>{let t;if(typeof e!=`string`)t=e;else{let n=e.trim().toLowerCase();t=n in eo?Va(eo[n]):n.startsWith(`#`)?Va(n):n.startsWith(`rgb`)?$a(n):n.startsWith(`hsl`)?Qa(n):Va(n)}let n=La(t),r=za(t);return{hsva:t,hsla:r,rgba:n,hex:Ga(n),hexa:Ka(n)}},to=e=>/^#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(e),no=e=>{let{r:t,g:n,b:r}=La(typeof e==`string`?J(e).hsva:e);return(.299*t+.587*n+.114*r)/255>.5?`#000000`:`#ffffff`},ro=(e,t)=>e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a,io=(e,t)=>{if(e===t)return!0;let n=e=>e.replace(`#`,``).toLowerCase();return n(e)===n(t)},ao=e=>({h:Ia(e.h,0,360),s:Ia(e.s,0,100),v:Ia(e.v,0,100),a:Ia(e.a,0,1)}),Y=()=>({pointer:(0,l.css)({position:`absolute`,width:12,height:12,borderRadius:`50%`,border:`2px solid ${i.tokens.colorNeutralBackground1}`,boxShadow:i.tokens.shadow4,transform:`translate(-50%, -50%)`,pointerEvents:`none`,boxSizing:`border-box`}),interactiveContainer:(0,l.css)({position:`relative`,touchAction:`none`,userSelect:`none`,outline:`none`,cursor:`crosshair`,"&:focus-visible":{outline:`2px solid ${i.tokens.colorBrandStroke1}`,outlineOffset:2}}),saturation:(0,l.css)({position:`relative`,width:`100%`,borderRadius:i.tokens.borderRadiusMedium,overflow:`hidden`,cursor:`crosshair`}),bar:(0,l.css)({position:`relative`,borderRadius:i.tokens.borderRadiusMedium,overflow:`hidden`,cursor:`crosshair`}),checkerboard:(0,l.css)({backgroundImage:`url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAADFJREFUOE9jZGBgEGHAD97gk2YcNYBhmIQBgWSAP52AwoaFBQJouucRlsGnBCgGDAYAAIpGBAWLkEGCAAAAAElFTkSuQmCC")`,backgroundSize:`8px 8px`,backgroundPosition:`0 0, 4px 4px`,position:`absolute`,inset:0,borderRadius:`inherit`}),swatchContainer:(0,l.css)({display:`flex`,flexWrap:`wrap`,gap:i.tokens.spacingHorizontalXS}),swatch:(0,l.css)({position:`relative`,borderRadius:i.tokens.borderRadiusSmall,cursor:`pointer`,border:`1px solid ${i.tokens.colorNeutralStroke2}`,boxSizing:`border-box`,transition:`transform 120ms ease, box-shadow 120ms ease`,outline:`none`,"&:hover":{transform:`scale(1.2)`,zIndex:1,boxShadow:`0 0 0 2px rgba(255,255,255,0.8), 0 2px 6px rgba(0,0,0,0.3)`},"&:focus-visible":{outline:`2px solid ${i.tokens.colorBrandStroke1}`,outlineOffset:2}}),swatchSelected:(0,l.css)({transform:`scale(1.2)`,zIndex:1,boxShadow:`0 0 0 1px ${i.tokens.colorBrandStroke1}`}),editableInputContainer:(0,l.css)({display:`flex`,flexDirection:`column`,alignItems:`center`,gap:i.tokens.spacingVerticalXXS,flex:1,minWidth:36,overflow:`hidden`}),editableInputLabel:(0,l.css)({fontSize:i.tokens.fontSizeBase200,color:i.tokens.colorNeutralForeground3,lineHeight:i.tokens.lineHeightBase200,textTransform:`uppercase`}),sketchContainer:(0,l.css)({padding:i.tokens.spacingHorizontalM,borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,boxShadow:i.tokens.shadow8,boxSizing:`border-box`}),chromeContainer:(0,l.css)({padding:i.tokens.spacingHorizontalM,borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,boxShadow:i.tokens.shadow8,boxSizing:`border-box`}),chromePreview:(0,l.css)({width:28,height:28,borderRadius:`50%`,border:`1px solid ${i.tokens.colorNeutralStroke2}`,boxSizing:`border-box`,flexShrink:0}),colorfulContainer:(0,l.css)({borderRadius:i.tokens.borderRadiusMedium,overflow:`hidden`}),wheelContainer:(0,l.css)({position:`relative`,borderRadius:`50%`,overflow:`hidden`}),circleContainer:(0,l.css)({display:`flex`,flexWrap:`wrap`,gap:i.tokens.spacingHorizontalS,justifyContent:`center`}),circlePoint:(0,l.css)({borderRadius:`50%`,cursor:`pointer`,border:`2px solid transparent`,transition:`border-color ${i.tokens.durationNormal} ${i.tokens.curveEasyEase}`,outline:`none`,"&:hover":{opacity:.85},"&:focus-visible":{outline:`2px solid ${i.tokens.colorBrandStroke1}`,outlineOffset:2}}),circlePointSelected:(0,l.css)({borderColor:i.tokens.colorNeutralBackground1,boxShadow:`0 0 0 2px ${i.tokens.colorNeutralStroke1}`}),compactContainer:(0,l.css)({padding:i.tokens.spacingHorizontalS,borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,boxShadow:i.tokens.shadow4,boxSizing:`border-box`,width:`fit-content`}),blockContainer:(0,l.css)({borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,boxShadow:i.tokens.shadow8,overflow:`hidden`,boxSizing:`border-box`}),blockHeader:(0,l.css)({display:`flex`,alignItems:`center`,justifyContent:`center`,height:110,position:`relative`,fontSize:i.tokens.fontSizeHero800,fontWeight:i.tokens.fontWeightBold}),blockTriangle:(0,l.css)({position:`absolute`,bottom:-6,left:`50%`,transform:`translateX(-50%)`,width:0,height:0,borderLeft:`6px solid transparent`,borderRight:`6px solid transparent`}),materialContainer:(0,l.css)({width:98,padding:i.tokens.spacingHorizontalM,borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,boxShadow:i.tokens.shadow8,boxSizing:`border-box`}),materialInputUnderline:(0,l.css)({width:`100%`,height:2,marginTop:i.tokens.spacingVerticalXXS,borderRadius:i.tokens.borderRadiusSmall}),githubContainer:(0,l.css)({padding:i.tokens.spacingHorizontalM,borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,boxShadow:i.tokens.shadow8,boxSizing:`border-box`,position:`relative`}),githubArrow:(0,l.css)({position:`absolute`,width:0,height:0}),sliderContainer:(0,l.css)({display:`flex`,flexDirection:`column`,gap:i.tokens.spacingVerticalXS})}),oo=(e,t,n)=>{let r=e.getBoundingClientRect();return{left:Math.max(0,Math.min(1,(t-r.left)/r.width)),top:Math.max(0,Math.min(1,(n-r.top)/r.height))}},so=({onMove:e,onDown:r,className:a,style:o,children:s})=>{let c=(0,t.useRef)(null),l=(0,t.useRef)(!1),u=Y(),d=(0,t.useCallback)((t,n)=>{c.current&&e?.(oo(c.current,t,n))},[e]),f=(0,t.useCallback)(()=>{let e=e=>d(e.clientX,e.clientY),t=()=>{document.removeEventListener(`mousemove`,e),document.removeEventListener(`mouseup`,t)};return{onMouseMove:e,onMouseUp:t}},[d]),p=(0,t.useCallback)(t=>{if(l.current){l.current=!1;return}if(t.preventDefault(),!c.current)return;let n=oo(c.current,t.clientX,t.clientY);r?.(n),e?.(n);let{onMouseMove:i,onMouseUp:a}=f();document.addEventListener(`mousemove`,i),document.addEventListener(`mouseup`,a)},[r,e,f]),m=(0,t.useCallback)(t=>{if(l.current=!0,!c.current||!t.touches[0])return;let n=oo(c.current,t.touches[0].clientX,t.touches[0].clientY);r?.(n),e?.(n)},[r,e]),h=(0,t.useCallback)(e=>{e.touches[0]&&d(e.touches[0].clientX,e.touches[0].clientY)},[d]);return(0,n.jsx)(`div`,{ref:c,className:(0,i.mergeClasses)(u.interactiveContainer,a),style:o,onMouseDown:p,onTouchStart:m,onTouchMove:h,role:`none`,children:s})},co=({color:e,left:t,top:r})=>(0,n.jsx)(`div`,{className:Y().pointer,style:{left:`${(t??0)*100}%`,top:`${(r??0)*100}%`,backgroundColor:e}}),lo=({hsva:e,onChange:r,pointer:a=co,radius:o=6,className:s,style:c})=>{let u=Y(),d=(0,t.useCallback)(t=>{let n=ao({h:e.h,s:t.left*100,v:(1-t.top)*100,a:e.a});r?.(J(n))},[e.h,e.a,r]),f=(0,t.useCallback)(t=>{let{s:n,v:i}=e,a=t.shiftKey?10:1;switch(t.key){case`ArrowRight`:n=Math.min(100,n+a);break;case`ArrowLeft`:n=Math.max(0,n-a);break;case`ArrowUp`:i=Math.min(100,i+a);break;case`ArrowDown`:i=Math.max(0,i-a);break;default:return}t.preventDefault(),r?.(J(ao({...e,s:n,v:i})))},[e,r]),p=(0,t.useMemo)(()=>(0,l.css)({height:typeof c?.height==`number`?c.height:150,...c,backgroundImage:`linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, transparent)`,backgroundColor:`hsl(${e.h}, 100%, 50%)`}),[e.h,c]);return(0,n.jsx)(so,{onMove:d,className:(0,i.mergeClasses)(u.saturation,s),children:(0,n.jsx)(`div`,{className:p,onKeyDown:f,tabIndex:0,role:`slider`,"aria-label":`Saturation and brightness`,"aria-valuetext":`Saturation ${Math.round(e.s)}%, Brightness ${Math.round(e.v)}%`,style:{borderRadius:o},children:(0,n.jsx)(a,{color:J(e).hex,left:e.s/100,top:1-e.v/100})})})},uo=`linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)`,fo=`linear-gradient(to bottom, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)`,po=({color:e,left:t,top:r})=>(0,n.jsx)(`div`,{className:Y().pointer,style:{left:`${(t??0)*100}%`,top:`${(r??0)*100}%`,backgroundColor:e}}),mo=({hsva:e,onChange:r,width:a=`100%`,height:o=12,direction:s=`horizontal`,pointer:c=po,radius:u=6,className:d,style:f})=>{let p=Y(),m=s===`horizontal`,h=(0,t.useCallback)(t=>{let n=m?t.left:t.top,i=ao({...e,h:n*360});r?.(J(i))},[e,r,m]),g=(0,t.useCallback)(t=>{let{h:n}=e,i=t.shiftKey?10:1,a=m?`ArrowRight`:`ArrowDown`,o=m?`ArrowLeft`:`ArrowUp`;if(t.key===a)n=(n+i)%360;else if(t.key===o)n=(n-i+360)%360;else return;t.preventDefault(),r?.(J(ao({...e,h:n})))},[e,r,m]),_=(0,t.useMemo)(()=>(0,l.css)({width:a,height:o,backgroundImage:m?uo:fo,borderRadius:u,...f}),[a,o,m,u,f]),v=e.h/360;return(0,n.jsx)(so,{onMove:h,className:(0,i.mergeClasses)(p.bar,d),children:(0,n.jsx)(`div`,{className:_,onKeyDown:g,tabIndex:0,role:`slider`,"aria-label":`Hue`,"aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":Math.round(e.h),children:(0,n.jsx)(c,{color:`hsl(${e.h}, 100%, 50%)`,left:m?v:.5,top:m?.5:v})})})},ho=({color:e,left:t,top:r})=>(0,n.jsx)(`div`,{className:Y().pointer,style:{left:`${(t??0)*100}%`,top:`${(r??0)*100}%`,backgroundColor:e}}),go=({hsva:e,onChange:r,width:a=`100%`,height:o=12,direction:s=`horizontal`,pointer:c=ho,radius:u=6,className:d,style:f})=>{let p=Y(),m=s===`horizontal`,h=(0,t.useCallback)(t=>{let n=m?t.left:t.top,i=ao({...e,a:Math.round(n*100)/100});r?.(J(i))},[e,r,m]),g=(0,t.useCallback)(t=>{let{a:n}=e,i=t.shiftKey?.1:.01,a=m?`ArrowRight`:`ArrowDown`,o=m?`ArrowLeft`:`ArrowUp`;if(t.key===a)n=Math.min(1,n+i);else if(t.key===o)n=Math.max(0,n-i);else return;t.preventDefault(),r?.(J(ao({...e,a:Math.round(n*100)/100})))},[e,r,m]),_=Xa({...e,a:0}),v=Xa({...e,a:1}),y=m?`linear-gradient(to right, ${_}, ${v})`:`linear-gradient(to bottom, ${_}, ${v})`,b=(0,t.useMemo)(()=>(0,l.css)({width:a,height:o,position:`relative`,borderRadius:u,...f}),[a,o,u,f]),x=(0,t.useMemo)(()=>(0,l.css)({position:`absolute`,inset:0,backgroundImage:y,borderRadius:`inherit`}),[y]),S=e.a;return(0,n.jsx)(so,{onMove:h,className:(0,i.mergeClasses)(p.bar,d),children:(0,n.jsxs)(`div`,{className:b,onKeyDown:g,tabIndex:0,role:`slider`,"aria-label":`Alpha`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(e.a*100),children:[(0,n.jsx)(`div`,{className:p.checkerboard}),(0,n.jsx)(`div`,{className:x,children:(0,n.jsx)(c,{color:Xa(e),left:m?S:.5,top:m?.5:S})})]})})},_o=({color:e,left:t})=>(0,n.jsx)(`div`,{className:Y().pointer,style:{left:`${(t??0)*100}%`,top:`50%`,backgroundColor:e}}),vo=({hsva:e,onChange:r,width:a=`100%`,height:o=12,pointer:s=_o,radius:c=6,className:u,style:d})=>{let f=Y(),p=(0,t.useCallback)(t=>{let n=(1-t.left)*100,i=ao({...e,v:n});r?.(J(i))},[e,r]),m=(0,t.useCallback)(t=>{let{v:n}=e,i=t.shiftKey?10:1;if(t.key===`ArrowRight`)n=Math.max(0,n-i);else if(t.key===`ArrowLeft`)n=Math.min(100,n+i);else return;t.preventDefault(),r?.(J(ao({...e,v:n})))},[e,r]),{h,s:g}=za(e),_=`linear-gradient(to right, hsl(${h}, ${g}%, 50%), hsl(${h}, ${g}%, 0%))`,v=(0,t.useMemo)(()=>(0,l.css)({width:a,height:o,backgroundImage:_,borderRadius:c,position:`relative`,...d}),[a,o,_,c,d]),y=1-e.v/100;return(0,n.jsx)(so,{onMove:p,className:(0,i.mergeClasses)(f.bar,u),children:(0,n.jsx)(`div`,{className:v,onKeyDown:m,tabIndex:0,role:`slider`,"aria-label":`Shade`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(e.v),children:(0,n.jsx)(s,{color:J(e).hex,left:y})})})},yo=e=>typeof e==`string`?{color:e}:e,bo=({color:e,title:r,checked:a,disabled:o,size:s=24,radius:c=4,onClick:u,rectRender:d,addonBefore:f,addonAfter:p,colors:m=[],className:h,style:g})=>{let _=Y(),v=(0,t.useCallback)(e=>{o||u?.(e)},[o,u]);if(m.length===0&&e){let t=a??!1,o=(0,l.css)({width:s,height:s,borderRadius:c,backgroundColor:e}),u=d?d({className:(0,i.mergeClasses)(_.swatch,t?_.swatchSelected:!1,o,h),style:g,onClick:()=>v(e),role:`button`,"aria-pressed":t?`true`:`false`,tabIndex:0}):(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(_.swatch,t?_.swatchSelected:!1,o,h),style:g,onClick:()=>v(e),role:`button`,"aria-pressed":t?`true`:`false`,"aria-label":r??e,tabIndex:0,onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),v(e))}});return r?(0,n.jsx)(i.Tooltip,{content:r,relationship:`label`,children:u}):u}let y=(0,t.useMemo)(()=>new Map(m.map(e=>{let{color:t}=yo(e);return[t,Ha(J(t).hsva)]})),[m]);return(0,n.jsxs)(H,{direction:`vertical`,gap:`xs`,children:[f,(0,n.jsx)(`div`,{className:_.swatchContainer,role:`listbox`,"aria-label":`Color swatches`,children:m.map((t,r)=>{let{color:a,title:o}=yo(t),u=y.get(a)||a,d=e?io(u,e):!1,f=(0,l.css)({width:s,height:s,borderRadius:c,backgroundColor:a}),p=(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(_.swatch,d?_.swatchSelected:`false`,f),onClick:()=>v(a),role:`option`,"aria-selected":d?`true`:`false`,"aria-label":o??a,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),v(a))},children:d&&(0,n.jsx)(`svg`,{viewBox:`0 0 16 16`,width:s*.6,height:s*.6,style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,fill:no(Va(a))},children:(0,n.jsx)(`path`,{d:`M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z`})})},`${a}-${r}`);return o?(0,n.jsx)(i.Tooltip,{content:o,relationship:`label`,children:p},`${a}-${r}`):p})}),p]})},xo={width:`100%`,minWidth:0,textAlign:`center`},So=({label:e,value:r,onChange:a,placeholder:o,className:s,style:c})=>{let l=Y(),[u,d]=(0,t.useState)(String(r??``));(0,t.useEffect)(()=>{d(String(r??``))},[r]);let f=(0,t.useCallback)((e,t)=>{d(t.value)},[]),p=(0,t.useCallback)(()=>{a?.(u)},[u,a]),m=(0,t.useCallback)(e=>{e.key===`Enter`&&a?.(u)},[u,a]);return(0,n.jsxs)(`div`,{className:l.editableInputContainer,style:c,children:[(0,n.jsx)(i.Input,{size:`small`,value:u,onChange:f,onBlur:p,onKeyDown:m,placeholder:o,className:s,"aria-label":e,style:xo}),e&&(0,n.jsx)(`span`,{className:l.editableInputLabel,children:e})]})},Co=({hsva:e,onChange:r,showAlpha:i=!0,className:a,style:o})=>{let s=La(e),c=(0,t.useCallback)((e,t)=>{let n=Number(t);if(isNaN(n))return;let i={...s};e===`a`?i.a=Math.max(0,Math.min(1,n/100)):i[e]=Math.max(0,Math.min(255,Math.round(n)));let a=Ra(i);r?.(J(a))},[s,r]);return(0,n.jsxs)(H,{direction:`horizontal`,gap:`xs`,className:a,style:(0,t.useMemo)(()=>({flex:3,minWidth:0,...o}),[o]),children:[(0,n.jsx)(So,{label:`R`,value:s.r,onChange:e=>c(`r`,e)}),(0,n.jsx)(So,{label:`G`,value:s.g,onChange:e=>c(`g`,e)}),(0,n.jsx)(So,{label:`B`,value:s.b,onChange:e=>c(`b`,e)}),i&&(0,n.jsx)(So,{label:`A`,value:Math.round(s.a*100),onChange:e=>c(`a`,e)})]})},wo=({hsva:e,onChange:r,showAlpha:i=!0,className:a,style:o})=>{let s=za(e),c=(0,t.useCallback)((e,t)=>{let n=Number(t);if(isNaN(n))return;let i={...s};e===`a`?i.a=Math.max(0,Math.min(1,n/100)):e===`h`?i.h=Math.max(0,Math.min(360,Math.round(n))):i[e]=Math.max(0,Math.min(100,Math.round(n)));let a=Ba(i);r?.(J(a))},[s,r]);return(0,n.jsxs)(H,{direction:`horizontal`,gap:`xs`,className:a,style:(0,t.useMemo)(()=>({flex:3,minWidth:0,...o}),[o]),children:[(0,n.jsx)(So,{label:`H`,value:Math.round(s.h),onChange:e=>c(`h`,e)}),(0,n.jsx)(So,{label:`S`,value:Math.round(s.s),onChange:e=>c(`s`,e)}),(0,n.jsx)(So,{label:`L`,value:Math.round(s.l),onChange:e=>c(`l`,e)}),i&&(0,n.jsx)(So,{label:`A`,value:Math.round(s.a*100),onChange:e=>c(`a`,e)})]})},To=[`#D0021B`,`#F5A623`,`#F8E71C`,`#8B572A`,`#7ED321`,`#417505`,`#BD10E0`,`#9013FE`,`#4A90D9`,`#50E3C2`,`#B8E986`,`#000000`,`#4A4A4A`,`#9B9B9B`,`#FFFFFF`],Eo=({color:e,onChange:r,width:a=320,presetColors:o=To,editableDisable:s=!1,disableAlpha:c=!1,className:l,style:u})=>{let d=Y(),f=e=>e?typeof e==`string`?J(e).hsva:e:{h:0,s:0,v:100,a:1},[p,m]=(0,t.useState)(()=>f(e));(0,t.useEffect)(()=>{e!==void 0&&m(f(e))},[e]);let h=(0,t.useCallback)(e=>{m(e.hsva),r?.(e)},[r]),g=(0,t.useCallback)(e=>{let t=e.startsWith(`#`)?e:`#${e}`;if(to(t)){let e=J(t);m(e.hsva),r?.(e)}},[r]),_=(0,t.useCallback)(e=>{let t=J(e);m(t.hsva),r?.(t)},[r]),v=Ha(p),y=(0,t.useMemo)(()=>({width:a,...u}),[a,u]);return(0,n.jsxs)(H,{direction:`vertical`,gap:`m`,className:(0,i.mergeClasses)(d.sketchContainer,l),style:y,children:[(0,n.jsx)(lo,{hsva:p,onChange:h}),(0,n.jsxs)(H,{direction:`vertical`,gap:`s`,children:[(0,n.jsx)(mo,{hsva:p,onChange:h}),!c&&(0,n.jsx)(go,{hsva:p,onChange:h})]}),!s&&(0,n.jsxs)(H,{direction:`horizontal`,gap:`xs`,alignItems:`flex-end`,children:[(0,n.jsx)(So,{label:`Hex`,value:v.replace(`#`,``),onChange:g}),(0,n.jsx)(Co,{hsva:p,onChange:h,showAlpha:!c})]}),o.length>0&&(0,n.jsx)(bo,{colors:o,color:v,onClick:_,size:16,radius:3})]})},Do=function(e){return e.HEXA=`hexa`,e.RGBA=`rgba`,e.HSLA=`hsla`,e}({}),Oo={flex:1},ko={flex:`none`},Ao={minWidth:28,width:28,padding:0},jo=[Do.HEXA,Do.RGBA,Do.HSLA],Mo=({color:e,onChange:r,width:a=320,showAlpha:o=!0,showColorPreview:s=!0,showEditableInput:c=!0,showEyeDropper:l=!0,inputType:u=Do.HEXA,className:d,style:f})=>{let p=Y(),m=e=>e?typeof e==`string`?J(e).hsva:e:{h:0,s:68,v:100,a:1},[h,g]=(0,t.useState)(()=>m(e)),[_,v]=(0,t.useState)(u);(0,t.useEffect)(()=>{e!==void 0&&g(m(e))},[e]);let y=(0,t.useCallback)(e=>{g(e.hsva),r?.(e)},[r]),b=(0,t.useCallback)(e=>{let t=e.startsWith(`#`)?e:`#${e}`;if(to(t)){let e=J(t);g(e.hsva),r?.(e)}},[r]),x=(0,t.useCallback)(()=>{v(e=>jo[(jo.indexOf(e)+1)%jo.length])},[]),S=(0,t.useCallback)(async()=>{if(`EyeDropper`in window)try{let e=await new window.EyeDropper().open();if(e?.sRGBHex){let t=J(e.sRGBHex);g(t.hsva),r?.(t)}}catch{}},[r]),C=Ha(h),w=Ua(h),T=(0,t.useMemo)(()=>({width:a,...f}),[a,f]);return(0,n.jsxs)(H,{direction:`vertical`,gap:`m`,className:(0,i.mergeClasses)(p.chromeContainer,d),style:T,children:[(0,n.jsx)(lo,{hsva:h,onChange:y}),(0,n.jsxs)(H,{direction:`horizontal`,gap:`m`,alignItems:`center`,children:[s&&(0,n.jsx)(`div`,{className:p.chromePreview,style:{backgroundColor:Xa(h)},"aria-label":`Selected color: ${C}`}),(0,n.jsxs)(H,{direction:`vertical`,gap:`xs`,style:Oo,children:[(0,n.jsx)(mo,{hsva:h,onChange:y}),o&&(0,n.jsx)(go,{hsva:h,onChange:y})]})]}),c&&(0,n.jsxs)(H,{direction:`horizontal`,gap:`xs`,alignItems:`flex-start`,children:[_===Do.HEXA&&(0,n.jsx)(So,{label:`HEX`,value:o?w.replace(`#`,``):C.replace(`#`,``),onChange:b}),_===Do.RGBA&&(0,n.jsx)(Co,{hsva:h,onChange:y,showAlpha:o}),_===Do.HSLA&&(0,n.jsx)(wo,{hsva:h,onChange:y,showAlpha:o}),(0,n.jsxs)(H,{direction:`horizontal`,gap:`xs`,style:ko,children:[(0,n.jsx)(i.Button,{appearance:`subtle`,size:`small`,icon:(0,n.jsx)(`span`,{children:`⇅`}),onClick:x,"aria-label":`Toggle color format`,style:Ao}),l&&`EyeDropper`in window&&(0,n.jsx)(i.Button,{appearance:`subtle`,size:`small`,icon:(0,n.jsx)(`span`,{children:`💧`}),onClick:S,"aria-label":`Pick color from screen`,style:Ao})]})]})]})},No=({color:e,onChange:r,disableAlpha:a=!1,className:o,style:s})=>{let c=Y(),l=e=>e?typeof e==`string`?J(e).hsva:e:{h:0,s:100,v:100,a:1},[u,d]=(0,t.useState)(()=>l(e));(0,t.useEffect)(()=>{e!==void 0&&d(l(e))},[e]);let f=(0,t.useCallback)(e=>{d(e.hsva),r?.(e)},[r]);return(0,n.jsxs)(H,{direction:`vertical`,gap:`m`,className:(0,i.mergeClasses)(c.colorfulContainer,o),style:s,children:[(0,n.jsx)(lo,{hsva:u,onChange:f}),(0,n.jsx)(mo,{hsva:u,onChange:f}),!a&&(0,n.jsx)(go,{hsva:u,onChange:f})]})},Po=({color:e,left:t,top:r})=>(0,n.jsx)(`div`,{className:Y().pointer,style:{left:`${(t??0)*100}%`,top:`${(r??0)*100}%`,backgroundColor:e}}),Fo=(e,t)=>{let n=t/2,r=n*(e.s/100),i=e.h*Math.PI/180;return{x:n+r*Math.cos(i),y:n+r*Math.sin(i)}},Io=(e,t,n)=>{let r=n/2,i=e-r,a=t-r,o=Math.atan2(a,i)*180/Math.PI;o<0&&(o+=360);let s=Math.min(Math.sqrt(i*i+a*a),r);return{h:o,s:s/r*100}},Lo=({color:e,onChange:r,width:a=200,height:o,pointer:s=Po,className:c,style:u})=>{let d=Y(),f=o??a,p=(0,t.useRef)(null),m=e=>e?typeof e==`string`?J(e).hsva:e:{h:0,s:100,v:100,a:1},[h,g]=(0,t.useState)(()=>m(e));(0,t.useEffect)(()=>{e!==void 0&&g(m(e))},[e]);let _=(0,t.useCallback)(e=>{let{h:t,s:n}=Io(e.left*a,e.top*f,Math.min(a,f)),i=J({h:t,s:n,v:h.v,a:h.a});g(i.hsva),r?.(i)},[a,f,h.v,h.a,r]),v=Fo(h,Math.min(a,f)),y=(0,t.useMemo)(()=>(0,l.css)({width:a,height:f,background:`conic-gradient(
|
|
145
145
|
from 90deg,
|
|
146
146
|
hsl(0, 100%, 50%),
|
|
147
147
|
hsl(30, 100%, 50%),
|
|
@@ -156,7 +156,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
|
|
|
156
156
|
hsl(300, 100%, 50%),
|
|
157
157
|
hsl(330, 100%, 50%),
|
|
158
158
|
hsl(360, 100%, 50%)
|
|
159
|
-
)`,borderRadius:`50%`,position:`relative`,"&::after":{content:`""`,position:`absolute`,inset:0,borderRadius:`50%`,background:`radial-gradient(circle, #fff 0%, transparent 70%)`}}),[a,f]),b=(0,t.useMemo)(()=>({width:a,height:f,...u}),[a,f,u]);return(0,n.jsx)(oo,{onMove:_,className:(0,i.mergeClasses)(d.wheelContainer,c),style:b,children:(0,n.jsx)(`div`,{ref:p,className:y,children:(0,n.jsx)(s,{color:J(h).hex,left:v.x/a,top:v.y/f})})})},Lo=[`#f44336`,`#e91e63`,`#9c27b0`,`#673ab7`,`#3f51b5`,`#2196f3`,`#03a9f4`,`#00bcd4`,`#009688`,`#4caf50`,`#8bc34a`,`#cddc39`,`#ffeb3b`,`#ffc107`,`#ff9800`,`#ff5722`,`#795548`,`#607d8b`],Ro=t.default.memo(({hex:e,selected:r,size:a,onClick:o})=>{let s=Y(),c=(0,t.useMemo)(()=>(0,l.css)({width:a,height:a,borderRadius:`50%`,backgroundColor:e,cursor:`pointer`,transition:`transform 100ms ease`,transform:r?`scale(1.2)`:`scale(1)`,boxShadow:r?`0 0 0 3px ${i.tokens.colorNeutralBackground1}, 0 0 0 5px ${e}`:`inset 0 0 0 1px rgba(0,0,0,0.1)`,display:`flex`,alignItems:`center`,justifyContent:`center`}),[e,r,a]),u=(0,t.useCallback)(()=>o(e),[o,e]),d=(0,t.useCallback)(t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),o(e))},[o,e]);return(0,n.jsx)(`div`,{role:`button`,tabIndex:0,className:(0,i.mergeClasses)(s.circlePoint,c),onClick:u,onKeyDown:d,title:e,"aria-label":e,children:r&&(0,n.jsx)(`svg`,{width:a*.45,height:a*.45,viewBox:`0 0 24 24`,children:(0,n.jsx)(`path`,{fill:to(e),d:`M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z`})})})}),zo=({color:e,onChange:r,colors:a=Lo,pointSize:o=28,className:s,style:c})=>{let l=Y(),u=e=>e?typeof e==`string`?J(e).hex:Va(e):`#f44336`,[d,f]=(0,t.useState)(()=>u(e));(0,t.useEffect)(()=>{e!==void 0&&f(u(e))},[e]);let p=(0,t.useCallback)(e=>{f(e);let t=J(e);r?.(t)},[r]),m=(0,t.useMemo)(()=>a.map(e=>typeof e==`string`?e:e.color),[a]),h=(0,t.useMemo)(()=>({padding:8,...c}),[c]);return(0,n.jsx)(H,{direction:`horizontal`,wrap:!0,gap:`s`,className:(0,i.mergeClasses)(l.circleContainer,s),style:h,children:m.map(e=>(0,n.jsx)(Ro,{hex:e,selected:ro(e,d),size:o,onClick:p},e))})},Bo=`#4D4D4D.#999999.#FFFFFF.#F44E3B.#FE9200.#FCDC00.#DBDF00.#A4DD00.#68CCCA.#73D8FF.#AEA1FF.#FDA1FF.#333333.#808080.#CCCCCC.#D33115.#E27300.#FCC400.#B0BC00.#68BC00.#16A5A5.#009CE0.#7B64FF.#FA28FF.#000000.#666666.#B3B3B3.#9F0500.#C45100.#FB9E00.#808900.#194D33.#0C797D.#0062B1.#653294.#AB149E`.split(`.`),Vo=t.default.memo(({hex:e,selected:r,onClick:a})=>{let o=(0,t.useMemo)(()=>(0,l.css)({width:15,height:15,position:`relative`,cursor:`pointer`,overflow:`visible`,transition:`transform 120ms ease, box-shadow 120ms ease`,borderRadius:2,...r&&{transform:`scale(1.2)`,zIndex:1,boxShadow:`0 0 0 2px rgba(255,255,255,0.8), 0 2px 6px rgba(0,0,0,0.3)`},"&:hover":{transform:`scale(1.2)`,zIndex:1,boxShadow:`0 0 0 2px rgba(255,255,255,0.8), 0 2px 6px rgba(0,0,0,0.3)`},"&:focus-visible":{outline:`2px solid #005fb8`,outlineOffset:2}}),[r]),s=(0,t.useMemo)(()=>(0,l.css)({width:`100%`,height:`100%`,backgroundColor:e,boxShadow:`inset 0 0 0 1px rgba(0,0,0,0.1)`,borderRadius:`inherit`}),[e]),c=(0,t.useMemo)(()=>(0,l.css)({position:`absolute`,inset:-1,borderRadius:3,border:`1px solid ${i.tokens.colorBrandStroke1}`,pointerEvents:`none`}),[]);return(0,n.jsxs)(`div`,{role:`button`,tabIndex:0,className:o,onClick:(0,t.useCallback)(()=>a(e),[a,e]),onKeyDown:(0,t.useCallback)(t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),a(e))},[a,e]),title:e,"aria-label":e,children:[(0,n.jsx)(`div`,{className:s}),r&&(0,n.jsx)(`div`,{className:c})]})}),Ho=({color:e,onChange:r,colors:a=Bo,className:o,style:s})=>{let c=Y(),l=e=>e?typeof e==`string`?J(e).hsva:e:{h:0,s:100,v:100,a:1},[u,d]=(0,t.useState)(()=>l(e));(0,t.useEffect)(()=>{e!==void 0&&d(l(e))},[e]);let f=Va(u),p=(0,t.useCallback)(e=>{let t=J(e);d(t.hsva),r?.(t)},[r]),m=(0,t.useCallback)(e=>{let t=e.startsWith(`#`)?e:`#${e}`;if(/^#[0-9a-fA-F]{3,8}$/.test(t)){let e=J(t);d(e.hsva),r?.(e)}},[r]),h=(0,t.useCallback)(e=>t=>{let n=Math.max(0,Math.min(255,parseInt(t,10)||0)),i={...Ia(u),[e]:n},a=J(`rgba(${i.r}, ${i.g}, ${i.b}, ${i.a})`);d(a.hsva),r?.(a)},[u,r]),g=Ia(u),_=(0,t.useMemo)(()=>a.map(e=>typeof e==`string`?e:e.color),[a]),v=(0,t.useMemo)(()=>new Map(_.map(e=>[e,Va(J(e).hsva)])),[_]),y=(0,t.useMemo)(()=>({width:240,gap:5}),[]),b=(0,t.useMemo)(()=>({paddingTop:4,width:240}),[]);return(0,n.jsxs)(H,{direction:`vertical`,gap:`xs`,className:(0,i.mergeClasses)(c.compactContainer,o),style:s,children:[(0,n.jsx)(H,{direction:`horizontal`,wrap:!0,style:y,children:_.map(e=>(0,n.jsx)(Vo,{hex:e,selected:ro(v.get(e)||e,f),onClick:p},e))}),(0,n.jsxs)(H,{direction:`horizontal`,gap:`xs`,style:b,children:[(0,n.jsx)(xo,{label:`#`,value:f.replace(`#`,``),onChange:m}),(0,n.jsx)(xo,{label:`R`,value:String(g.r),onChange:h(`r`)}),(0,n.jsx)(xo,{label:`G`,value:String(g.g),onChange:h(`g`)}),(0,n.jsx)(xo,{label:`B`,value:String(g.b),onChange:h(`b`)})]})]})},Uo=[`#D9E3F0`,`#F47373`,`#697689`,`#37D67A`,`#2CCCE4`,`#555555`,`#dce775`,`#ff8a65`,`#ba68c8`],Wo=({color:e,onChange:r,colors:a=Uo,showTriangle:o=!0,className:s,style:c})=>{let u=Y(),d=e=>e?typeof e==`string`?J(e).hsva:e:{h:214,s:13,v:100,a:1},[f,p]=(0,t.useState)(()=>d(e));(0,t.useEffect)(()=>{e!==void 0&&p(d(e))},[e]);let m=Va(f),h=(0,t.useCallback)(e=>{let t=J(e);p(t.hsva),r?.(t)},[r]),g=(0,t.useCallback)(e=>{let t=e.startsWith(`#`)?e:`#${e}`;if(/^#[0-9a-fA-F]{3,8}$/.test(t)){let e=J(t);p(e.hsva),r?.(e)}},[r]),_=(0,t.useMemo)(()=>a.map(e=>typeof e==`string`?e:e.color),[a]),v=(0,t.useMemo)(()=>(0,l.css)({width:`100%`,height:110,borderRadius:`${i.tokens.borderRadiusMedium} ${i.tokens.borderRadiusMedium} 0 0`,backgroundColor:m,display:`flex`,alignItems:`flex-end`,justifyContent:`flex-start`,padding:10,position:`relative`,boxSizing:`border-box`}),[m]),y=(0,t.useMemo)(()=>(0,l.css)({color:to(m),fontSize:i.tokens.fontSizeBase400,fontWeight:i.tokens.fontWeightSemibold}),[m]),b=(0,t.useMemo)(()=>(0,l.css)({width:0,height:0,borderStyle:`solid`,borderWidth:`0 10px 10px 10px`,borderColor:`transparent transparent ${m} transparent`,position:`absolute`,top:-10,left:12}),[m]),x=(0,t.useMemo)(()=>(0,l.css)({width:22,height:22,borderRadius:i.tokens.borderRadiusSmall,cursor:`pointer`,boxShadow:`inset 0 0 0 1px rgba(0,0,0,0.15)`,position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 120ms ease, box-shadow 120ms ease`,"&:hover":{transform:`scale(1.2)`,zIndex:1,boxShadow:`0 0 0 2px rgba(255,255,255,0.8), 0 2px 6px rgba(0,0,0,0.3)`},"&:focus-visible":{outline:`2px solid #005fb8`,outlineOffset:2}}),[]),S=(0,t.useMemo)(()=>({width:170,...c}),[c]),C=(0,t.useMemo)(()=>({padding:10}),[]);return(0,n.jsxs)(H,{direction:`vertical`,className:(0,i.mergeClasses)(u.blockContainer,s),style:S,children:[(0,n.jsxs)(`div`,{className:v,children:[o&&(0,n.jsx)(`div`,{className:b}),(0,n.jsx)(`span`,{className:y,children:m.toUpperCase()})]}),(0,n.jsxs)(H,{direction:`vertical`,gap:`s`,style:C,children:[(0,n.jsx)(H,{direction:`horizontal`,wrap:!0,gap:`xs`,children:_.map(e=>(0,n.jsx)(`div`,{role:`button`,tabIndex:0,className:x,style:{backgroundColor:e},onClick:()=>h(e),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),h(e))},title:e,"aria-label":e,children:ro(e,m)&&(0,n.jsx)(`svg`,{width:12,height:12,viewBox:`0 0 24 24`,children:(0,n.jsx)(`path`,{fill:to(e),d:`M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z`})})},e))}),(0,n.jsx)(xo,{label:`#`,value:m.replace(`#`,``),onChange:g})]})]})},Go=12,Ko=({color:e,onChange:r,swatchCount:a=Go,className:o,style:s})=>{let c=Y(),u=e=>e?typeof e==`string`?J(e).hsva:e:{h:0,s:100,v:100,a:1},[d,f]=(0,t.useState)(()=>u(e)),[p,m]=(0,t.useState)(null);(0,t.useEffect)(()=>{if(e!==void 0){let t=u(e);f(e=>ro(Va(e),Va(t))?e:t)}},[e]);let h=Ra(d),g=(0,t.useMemo)(()=>{let e=[];for(let t=0;t<a;t++)e.push(Math.round(t/(a-1)*100));return e},[a]),_=(0,t.useCallback)(e=>{let t=J(`hsl(${h.h}, ${h.s}%, ${e}%)`);f(t.hsva),m(e),r?.(t)},[h.h,h.s,r]),v=(0,t.useMemo)(()=>(0,l.css)({flex:1,height:12,cursor:`pointer`,outline:`none`,":focus-visible":{outline:`2px solid currentColor`,outlineOffset:1}}),[]),y=(0,t.useMemo)(()=>(0,l.css)({height:16,marginTop:-2,borderRadius:2}),[]);return(0,n.jsx)(H,{direction:`vertical`,gap:`xs`,className:(0,i.mergeClasses)(c.sliderContainer,o),style:s,children:(0,n.jsx)(H,{direction:`horizontal`,children:g.map(e=>(0,n.jsx)(`div`,{role:`button`,tabIndex:0,className:(0,i.mergeClasses)(v,e===p&&y),style:{backgroundColor:`hsl(${h.h}, ${h.s}%, ${e}%)`},onClick:()=>_(e),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),_(e))},title:`L: ${e}%`,"aria-label":`Lightness ${e}%`},e))})})},qo=[{label:`Brand`,colors:[{color:i.tokens.colorBrandBackground,title:`Brand`},{color:i.tokens.colorBrandBackground2,title:`Brand 2`},{color:i.tokens.colorBrandBackgroundHover,title:`Brand Hover`},{color:i.tokens.colorBrandBackgroundPressed,title:`Brand Pressed`},{color:i.tokens.colorBrandBackgroundSelected,title:`Brand Selected`},{color:i.tokens.colorBrandForeground1,title:`Brand Foreground`},{color:i.tokens.colorBrandForeground2,title:`Brand Foreground 2`}]},{label:`Neutral`,colors:[{color:i.tokens.colorNeutralBackground1,title:`Background 1`},{color:i.tokens.colorNeutralBackground2,title:`Background 2`},{color:i.tokens.colorNeutralBackground3,title:`Background 3`},{color:i.tokens.colorNeutralBackground4,title:`Background 4`},{color:i.tokens.colorNeutralBackground5,title:`Background 5`},{color:i.tokens.colorNeutralBackground6,title:`Background 6`},{color:i.tokens.colorNeutralForeground1,title:`Foreground 1`},{color:i.tokens.colorNeutralForeground2,title:`Foreground 2`},{color:i.tokens.colorNeutralForeground3,title:`Foreground 3`},{color:i.tokens.colorNeutralStroke1,title:`Stroke 1`},{color:i.tokens.colorNeutralStroke2,title:`Stroke 2`}]},{label:`Status`,colors:[{color:i.tokens.colorPaletteRedBackground3,title:`Red`},{color:i.tokens.colorPaletteRedForeground1,title:`Red Foreground`},{color:i.tokens.colorPaletteGreenBackground3,title:`Green`},{color:i.tokens.colorPaletteGreenForeground1,title:`Green Foreground`},{color:i.tokens.colorPaletteYellowBackground3,title:`Yellow`},{color:i.tokens.colorPaletteYellowForeground1,title:`Yellow Foreground`},{color:i.tokens.colorPaletteBlueBorderActive,title:`Blue`},{color:i.tokens.colorPaletteBlueForeground2,title:`Blue Foreground`}]}];function Jo(e,t){let n=document.createElement(`span`);n.style.display=`none`,t.appendChild(n);let r=e.map(e=>({label:e.label,colors:e.colors.map(e=>{let t=typeof e==`string`?e:e.color,r=typeof e==`string`?t:e.title??t;if(t.startsWith(`#`))return{hex:t,title:r};n.style.color=t;let i=getComputedStyle(n).color;return{hex:es(i),title:r}})}));return t.removeChild(n),r}var Yo=t.default.memo(({hex:e,title:r,selected:a,size:o,onClick:s})=>(0,n.jsx)(`div`,{role:`button`,tabIndex:0,className:(0,t.useMemo)(()=>(0,l.css)({width:o,height:o,borderRadius:i.tokens.borderRadiusSmall,backgroundColor:e,cursor:`pointer`,position:`relative`,overflow:`visible`,transition:`transform 120ms ease, box-shadow 120ms ease`,border:`1px solid ${i.tokens.colorNeutralStroke2}`,boxSizing:`border-box`,...a&&{transform:`scale(1.2)`,zIndex:1,boxShadow:`0 0 0 2px ${i.tokens.colorNeutralBackground1}, 0 0 0 4px ${i.tokens.colorBrandStroke1}`},"&:hover":{transform:`scale(1.2)`,zIndex:1,boxShadow:`0 0 0 2px rgba(255,255,255,0.8), 0 2px 6px rgba(0,0,0,0.3)`},"&:focus-visible":{outline:`2px solid ${i.tokens.colorBrandStroke1}`,outlineOffset:2}}),[e,a,o]),onClick:(0,t.useCallback)(()=>s(e),[s,e]),onKeyDown:(0,t.useCallback)(t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),s(e))},[s,e]),title:r,"aria-label":`${r}${a?` (selected)`:``}`,children:a&&(0,n.jsx)(`svg`,{width:o*.5,height:o*.5,viewBox:`0 0 24 24`,style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`},children:(0,n.jsx)(`path`,{fill:to(e),d:`M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z`})})})),Xo=(0,l.css)({padding:i.tokens.spacingHorizontalM,borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,boxShadow:i.tokens.shadow8,boxSizing:`border-box`,width:`fit-content`}),Zo=(0,l.css)({fontSize:i.tokens.fontSizeBase200,fontWeight:i.tokens.fontWeightSemibold,color:i.tokens.colorNeutralForeground3,lineHeight:i.tokens.lineHeightBase200,textTransform:`uppercase`,letterSpacing:`0.5px`,margin:0,padding:0}),Qo=(0,l.css)({display:`flex`,flexWrap:`wrap`,gap:i.tokens.spacingHorizontalXS}),$o=({color:e,onChange:r,groups:a=qo,swatchSize:o=28,className:s,style:c})=>{let l=(0,t.useRef)(null),u=e=>e?typeof e==`string`?J(e).hex:Va(e):``,[d,f]=(0,t.useState)(()=>u(e)),[p,m]=(0,t.useState)([]);(0,t.useEffect)(()=>{e!==void 0&&f(u(e))},[e]),(0,t.useEffect)(()=>{l.current&&m(Jo(a,l.current))},[a]);let h=(0,t.useCallback)(e=>{f(e);let t=J(e);r?.(t)},[r]);return(0,n.jsx)(H,{ref:l,direction:`vertical`,gap:`m`,className:(0,i.mergeClasses)(Xo,s),style:c,children:p.map(e=>(0,n.jsxs)(H,{direction:`vertical`,gap:`xs`,children:[(0,n.jsx)(`p`,{className:Zo,children:e.label}),(0,n.jsx)(`div`,{className:Qo,role:`group`,"aria-label":`${e.label} colors`,children:e.colors.map(t=>(0,n.jsx)(Yo,{hex:t.hex,title:t.title,selected:ro(t.hex,d),size:o,onClick:h},`${e.label}-${t.title}`))})]},e.label))})};function es(e){let t=e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return t?`#`+[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)].map(e=>e.toString(16).padStart(2,`0`)).join(``):`#000000`}var X=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});X.displayName=`ColorPicker`,X.Saturation=co,X.Hue=po,X.Alpha=ho,X.ShadeSlider=_o,X.Swatch=yo,X.EditableInput=xo,X.EditableInputRGBA=So,X.EditableInputHSLA=Co,X.Interactive=oo,X.Sketch=To,X.Chrome=jo,X.Colorful=Mo,X.Wheel=Io,X.Circle=zo,X.Compact=Ho,X.Block=Wo,X.Slider=Ko,X.Theme=$o;var Z={xs:i.tokens.spacingHorizontalXS,s:i.tokens.spacingHorizontalS,m:i.tokens.spacingHorizontalM,l:i.tokens.spacingHorizontalL,xl:i.tokens.spacingHorizontalXL,xxl:i.tokens.spacingHorizontalXXL},ts=t.default.memo(({direction:e=`vertical`,justifyContent:t=`flex-start`,alignItems:r=`stretch`,gap:a,columnGap:o,rowGap:s,margin:c,padding:u,marginTop:d,marginBottom:f,marginLeft:p,marginRight:m,paddingTop:h,paddingBottom:g,paddingLeft:_,paddingRight:v,width:y,height:b,wrap:x=!1,children:S,style:C,className:w,overflow:T,background:E})=>(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(w,(0,l.css)({display:`flex`,flexDirection:e===`horizontal`?`row`:`column`,justifyContent:t,alignItems:r,gap:a&&Z[a]?Z[a]:a,columnGap:o&&Z[o]?Z[o]:o,rowGap:s&&Z[s]?Z[s]:s,margin:c&&Z[c]?Z[c]:c,padding:u&&Z[u]?Z[u]:u,marginTop:d&&Z[d]?Z[d]:d,marginBottom:f&&Z[f]?Z[f]:f,marginLeft:p&&Z[p]?Z[p]:p,marginRight:m&&Z[m]?Z[m]:m,paddingTop:h&&Z[h]?Z[h]:h,paddingBottom:g&&Z[g]?Z[g]:g,paddingLeft:_&&Z[_]?Z[_]:_,paddingRight:v&&Z[v]?Z[v]:v,width:y,height:b,overflow:T,flexWrap:x?`wrap`:`nowrap`,backgroundColor:E,...C})),children:S})),ns=e=>({styles:{loadingContainer:(0,l.css)({display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`}),noItemsMessage:(0,l.css)({textAlign:`center`,marginTop:20}),rowSelection:(0,l.css)({":hover":{cursor:`pointer`}})}}),rs=e=>{let{items:r,columns:a,defaultSelectedItems:o=[],enableSorting:s=!1,selectionMode:c=`none`,onSelectionChange:l,onSortChange:u,defaultSortState:d,columnSizingOptions:f,enableResizing:p=!1,noItemsMessage:m,isLoadingData:h,isLoadingDataMessage:g,dataGridBodyClassName:_,dataGridBodyStyles:v,refreshData:y}=e,b=e=>r.findIndex(t=>t===e),[x,S]=t.useState(new Set(o.map(e=>b(e)))),C=t.useRef(null),{styles:w}=ns(e);t.useEffect(()=>{o.length>0&&S(new Set(o.map(e=>b(e))))},[o,r]),t.useEffect(()=>{y&&S(new Set)},[y]);let T=a.map(e=>(0,i.createTableColumn)({columnId:e.column,renderHeaderCell:()=>(0,n.jsx)(i.Body1Strong,{children:e.header}),renderCell:t=>(0,n.jsx)(i.TableCellLayout,{media:e.media?e.media(t):void 0,className:e?.className,style:e?.style,children:e.onRender?e.onRender(t):String(t[e?.column]??``)}),compare:e.order})),E=(e,t)=>{let n=new Set;t.selectedItems.forEach(e=>{let t=Number(e);isNaN(t)||n.add(t)}),S(n),l&&l(Array.from(n).map(e=>r[e]))},D=(e,t)=>{u&&u(t)},O=t.useCallback((e,t)=>{e.stopPropagation(),c===`row`&&l&&l([t])},[c,l]),k=t.useMemo(()=>c===`row`?w.rowSelection:``,[c,w.rowSelection]),A=t.useCallback(()=>(0,n.jsx)(i.DataGridBody,{style:v??{},className:_??``,children:({item:e,rowId:t})=>(0,n.jsx)(i.DataGridRow,{className:k,onClick:t=>O(t,e),onKeyDown:t=>{c===`row`&&(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),l?.([e]))},children:({renderCell:t})=>(0,n.jsx)(i.DataGridCell,{children:t(e)})},t)}),[O,k,v,_]),j=t.useMemo(()=>r.length&&!h,[r,h]),M=t.useCallback(()=>h?(0,n.jsx)(n.Fragment,{children:g??(0,n.jsx)(ts,{direction:`vertical`,gap:`s`,justifyContent:`center`,alignItems:`center`,style:{height:`100%`,minHeight:200,width:`100%`},children:(0,n.jsx)(i.Spinner,{})})}):j?(0,n.jsx)(A,{}):!h&&!r.length?(0,n.jsx)(`div`,{children:m}):(0,n.jsx)(n.Fragment,{}),[j,h,r,m]);return(0,n.jsx)(`div`,{ref:C,children:(0,n.jsxs)(i.DataGrid,{as:`div`,items:r,onSelectionChange:E,sortable:s,columns:T,selectionMode:c===`none`||c===`row`?void 0:c===`multiple`?`multiselect`:c===`single`?`single`:void 0,selectedItems:x,defaultSortState:d,onSortChange:D,columnSizingOptions:f,resizableColumns:p,resizableColumnsOptions:{autoFitColumns:!1},children:[(0,n.jsx)(i.DataGridHeader,{children:(0,n.jsx)(i.DataGridRow,{children:({renderHeaderCell:e})=>(0,n.jsx)(i.DataGridHeaderCell,{children:e()})})}),(0,n.jsx)(M,{})]})})},is=(0,i.makeStyles)({scrollbar:{scrollbarWidth:`thin`,scrollbarColor:`${i.tokens.colorBrandBackground} ${i.tokens.colorNeutralBackground3}`,"&::-webkit-scrollbar":{width:`3px`,height:`3px`},"&::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground3,borderRadius:i.tokens.borderRadiusMedium},"&::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandBackground,borderRadius:i.tokens.borderRadiusMedium},"&::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorBrandBackgroundHover}}});function as(e,r){let a=is().scrollbar,{columns:o,items:s,enableSorting:c=!1,enableResizing:l=!1,selectionMode:u=`none`,onSelectionChange:d,defaultSelectedItems:f=[],defaultSortState:p,onSortChange:m,columnSizingOptions:h,resizableColumnsOptions:g,noItemsMessage:_,isLoadingData:v,isLoadingDataMessage:y,dataGridBodyClassName:b,dataGridBodyStyles:x,refreshData:C,enableInfiniteScroll:w,onLoadMore:T,infiniteScrollPageSize:E,hasNextPage:D,isLoadingMore:O,autoShowLastPage:k=!0,virtualizedHeight:A=600,virtualizedItemSize:j=44,startIndex:M,onRowClick:N}=e,ee=t.useMemo(()=>o.map(e=>(0,i.createTableColumn)({columnId:e.column,renderHeaderCell:()=>(0,n.jsx)(i.Body1Strong,{children:e.header}),renderCell:t=>(0,n.jsx)(i.TableCellLayout,{media:e.media?e.media(t):void 0,className:e?.className,style:e?.style,children:e.onRender?e.onRender(t):String(t[e.column]??``)}),compare:e.order})),[o]),P=t.useCallback(e=>s.findIndex(t=>t===e),[s]),[F,I]=t.useState(new Set(f.map(e=>P(e)))),[L,R]=t.useState(0);t.useEffect(()=>{f.length&&I(new Set(f.map(e=>P(e))))},[f,s,P]),t.useEffect(()=>{C&&I(new Set)},[C]);let te=(e,t)=>{let n=new Set;t.selectedItems.forEach(e=>{let t=Number(e);isNaN(t)||n.add(t)}),I(n),d&&d(Array.from(n).map(e=>s[e]))},ne=(e,t)=>{m&&m(t)},[re,ie]=t.useState(null),z=t.useMemo(()=>new Map(s.map((e,t)=>[e,t])),[s]);t.useEffect(()=>{u===`row`&&re!=null&&re>=s.length&&ie(null)},[s,re,u]),t.useEffect(()=>{C&&u===`row`&&ie(null)},[C,u]);let ae=t.useRef(null),oe=t.useRef(s.length),se=t.useRef(!1),ce=t.useRef(!1),le=t.useRef(!1);t.useImperativeHandle(r,()=>({scrollToIndex:(e,t=`auto`)=>{let n=ae.current;n&&`scrollToItem`in n&&n.scrollToItem(Math.max(0,e),t)},resetGrid:()=>{R(e=>e+1),oe.current=0,se.current=!1,ce.current=!1,le.current=!1,ue.current=-1,I(new Set),ie(null)},getSelectedRow:()=>re!==null&&re<s.length?{item:s[re],index:re}:null,setSelectedRow:e=>{let t=s.findIndex(t=>t===e);t!==-1&&(ie(t),d?.([e]))}})),t.useEffect(()=>{if(!se.current&&typeof M==`number`&&ae.current){let e=ae.current;`scrollToItem`in e&&e.scrollToItem(Math.min(M,Math.max(s.length-1,0)),`start`),se.current=!0}},[M,s.length]),t.useEffect(()=>{let e=oe.current,t=s.length,n=t>e;if(oe.current=t,!k||!n||e===0)return;let r=ae.current;r&&`scrollToItem`in r&&r.scrollToItem(Math.max(t-1,0),`end`)},[s.length,k]);let ue=t.useRef(-1),de=t.useCallback(({visibleStopIndex:e})=>{if(!w||!T||O||le.current)return;if(!ce.current){ce.current=!0;return}let t=E??20;if(s.length<t)return;let n=Math.max(5,Math.ceil(t/5));e>=s.length-n&&D&&ue.current!==s.length&&(ue.current=s.length,le.current=!0,T())},[w,T,D,O,s.length,E]);return t.useEffect(()=>{le.current&&s.length>ue.current&&(le.current=!1)},[s.length]),(0,n.jsxs)(`div`,{style:t.useMemo(()=>({overflowX:`auto`,overflowY:`hidden`,position:`relative`}),[]),className:a,children:[v&&(0,n.jsx)(H,{alignItems:`center`,justifyContent:`center`,height:`${A}px`,children:t.isValidElement(y)?y:(0,n.jsxs)(i.Spinner,{size:`extra-tiny`,children:[` `,y??`Loading data...`,` `]})}),!v&&s.length?(0,n.jsxs)(S.DataGrid,{items:s,columns:ee,sortable:c,onSortChange:c?ne:void 0,selectionMode:u===`none`||u===`row`?void 0:u===`multiple`?`multiselect`:u===`single`?`single`:void 0,selectedItems:F,onSelectionChange:te,defaultSortState:p,resizableColumns:l,columnSizingOptions:h,resizableColumnsOptions:g,focusMode:`cell`,className:(0,i.mergeClasses)(b,a),style:x,children:[(0,n.jsx)(S.DataGridHeader,{children:(0,n.jsx)(S.DataGridRow,{children:({renderHeaderCell:e})=>(0,n.jsx)(S.DataGridHeaderCell,{children:e()})})}),(0,n.jsx)(S.DataGridBody,{itemSize:j,height:A,width:`100%`,listProps:{onItemsRendered:de},className:a,children:(e,t)=>(()=>{let r=e.item,a=z.get(r)??s.indexOf(r),o=u===`row`,c=o&&re===a,l=e=>{ie(a),d?.([r]),N?.(r,a)};return(0,n.jsx)(S.DataGridRow,{style:{...t,cursor:o?`pointer`:void 0,background:c?i.tokens.colorSubtleBackgroundSelected:void 0},onClick:l,"aria-selected":c||void 0,children:({renderCell:e})=>(0,n.jsx)(S.DataGridCell,{children:e(r)})})})()})]},L):!v&&!s.length?(0,n.jsx)(`div`,{children:_}):null]})}var os=t.forwardRef(as);os.displayName=`DataGridV2`;var ss=200,cs=(0,i.makeStyles)({dialog:{overflow:`visible`},dialogBody:{overflow:`visible`}}),ls=e=>{let{isOpen:t,dialogTitle:r,dialogActions:a,children:o,maxWidth:s,className:c,minHeight:l,minWidth:u,maxHeight:d}=e,f=cs();return t?(0,n.jsx)(i.Dialog,{open:t,modalType:`modal`,children:(0,n.jsxs)(i.DialogSurface,{className:(0,i.mergeClasses)(f.dialog,c),style:{maxWidth:s??600,minWidth:u??ss,...l?{minHeight:l}:{},...d?{maxHeight:d}:{}},children:[(0,n.jsx)(i.DialogTitle,{children:r}),(0,n.jsx)(i.DialogBody,{className:f.dialogBody,children:(0,n.jsx)(i.DialogContent,{children:o})}),(0,n.jsx)(i.DialogActions,{fluid:!0,position:`end`,children:a})]})}):(0,n.jsx)(n.Fragment,{})},us=e=>{let{isOpen:r,onOpenChange:a,title:o,headerActions:s,footerActions:c,size:l,separator:u,type:d,style:f,children:p,position:m,classNameHeader:h=``,classNameBody:g=``,classNameFooter:_=``}=e,v=t.useCallback((e,t)=>{a&&a(t.open)},[a]),y=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.DrawerHeader,{className:h,children:(0,n.jsx)(i.DrawerHeaderTitle,{style:{width:`100%`},action:s,children:o})}),(0,n.jsx)(i.DrawerBody,{className:g,children:p}),(0,n.jsx)(i.DrawerFooter,{className:_,children:c})]});return d===`inline`?(0,n.jsx)(i.InlineDrawer,{separator:u,open:r,size:l,style:f,position:m,children:y}):(0,n.jsx)(i.OverlayDrawer,{open:r,onOpenChange:v,size:l,style:f,position:m,children:y})},ds=e=>{let{onDismiss:r,title:a,description:o,icon:s,showCloseButton:c=!0}=e;return(0,n.jsxs)(H,{direction:`vertical`,width:`100%`,children:[(0,n.jsx)(H,{direction:`horizontal`,padding:`s`,gap:`l`,justifyContent:`space-between`,children:(0,n.jsxs)(H,{direction:`horizontal`,alignItems:`center`,width:`100%`,gap:`m`,children:[s?t.isValidElement(s)?s:(0,n.jsx)(p.Icon,{icon:s}):null,(0,n.jsxs)(H,{direction:`vertical`,justifyContent:`flex-start`,alignItems:`flex-start`,width:`100%`,children:[t.isValidElement(a)?a:(0,n.jsxs)(H,{direction:`horizontal`,justifyContent:`space-between`,gap:`l`,width:`100%`,children:[(0,n.jsx)(Ot,{fontSize:`l`,block:!0,truncate:!0,numberOfLines:1,children:a}),c&&(0,n.jsx)(i.Button,{appearance:`transparent`,onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1)},icon:(0,n.jsx)(d.Dismiss24Regular,{style:{width:18,height:18}}),color:i.tokens.colorBrandBackground,"aria-label":`Close`})]}),t.isValidElement(o)?o:(0,n.jsx)(i.Caption1,{style:{display:`-webkit-box`,WebkitLineClamp:4,WebkitBoxOrient:`vertical`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`},children:o})]})]})}),(0,n.jsx)(i.Divider,{style:{marginTop:6}})]})},fs=()=>({closeButton:(0,l.css)({marginLeft:`auto`,position:`absolute`,top:`10px`,right:`10px`,zIndex:99999}),divider:(0,l.css)({width:`100%`,height:`1px`,backgroundColor:i.tokens.colorNeutralStroke1,marginTop:`6px`}),renderHeaderContent:(0,l.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,alignItems:`stretch`,width:`100%`}),renderHeaderHeader:(0,l.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,padding:`10px`,gap:`20px`}),renderHeaderFooter:(0,l.css)({display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,padding:`20px`,gap:`20px`}),renderHeaderBody:(0,l.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,padding:`20px`,gap:`20px`}),renderHeaderTitleContainer:(0,l.css)({display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignContent:`center`,alignItems:`center`,width:`100%`}),renderHeaderTitle:(0,l.css)({display:`-webkit-box`,WebkitLineClamp:`1`,WebkitBoxOrient:`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingTop:0,wordBreak:`break-word`}),renderHeaderDescription:(0,l.css)({display:`-webkit-box`,WebkitLineClamp:`4`,WebkitBoxOrient:`vertical`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`}),dialogTitleAndDescriptionContainer:(0,l.css)({display:`flex`,flexDirection:`column`,justifyContent:`start`,alignItems:`start`,paddingLeft:`10px`,paddingRight:`20px`,width:`100%`})}),ps=({isOpen:e,options:r,onClose:i})=>{let{log:a}=z(),[o,s]=(0,t.useState)(void 0);a(o||``);let c=(0,t.useRef)(null),[l,u]=(0,t.useState)(400),{siteUrl:d,listId:f,itemId:p,name:m}=r,h=(0,t.useCallback)(()=>{i()},[i]),g=(0,t.useCallback)(e=>{if(e.origin!==window.location.origin)return;a(`Message from iframe:`,e.data);let{name:t,height:n}=JSON.parse(e.data);switch(t){case`share_dismiss`:h();break;case`share_resize`:u(n);break;case`share_scriptsLoaded`:break;case`share_uiReady`:break;case`share_ready`:break;default:break}},[h]);return(0,t.useEffect)(()=>(window.addEventListener(`message`,g),()=>{window.removeEventListener(`message`,g)}),[g]),(0,t.useEffect)(()=>{if(e){let e=new Date().getTime(),t=encodeURIComponent(window.location.origin),n=`${d}/_layouts/15/sharedialog.aspx?listId=${f}&listItemId=${p}&clientId=sharePoint&policyTip=0&folderColor=&clickTime=${e}&ma=0&fullScreenMode=false&itemName= ${encodeURIComponent(m)}&channelId=&origin=${t}`;a(n),s(n)}else s(void 0)},[e,d,f,p]),(0,n.jsx)(ls,{isOpen:e,onDismiss:h,maxHeight:`fit-content`,children:(0,n.jsx)(`iframe`,{ref:c,src:o||``,title:`Share dialog`,style:{width:`100%`,height:l,border:`none`},onLoad:()=>a(`Iframe loaded`)})})},ms=()=>(0,t.useMemo)(()=>({container:(0,l.css)({display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`200px`,textAlign:`center`,backgroundColor:i.tokens.colorNeutralBackground1,border:`1px solid ${i.tokens.colorNeutralStroke2}`,borderRadius:i.tokens.borderRadiusLarge,padding:`${i.tokens.spacingVerticalXXL} ${i.tokens.spacingHorizontalXXL}`,boxShadow:i.tokens.shadow4,maxWidth:`500px`,margin:`20px auto`}),icon:(0,l.css)({fontSize:`48px`,color:i.tokens.colorPaletteRedForeground1,animation:`pulse 2s infinite`,"@keyframes pulse":{"0%":{transform:`scale(1)`},"50%":{transform:`scale(1.05)`},"100%":{transform:`scale(1)`}}}),title:(0,l.css)({color:i.tokens.colorNeutralForeground1,fontWeight:i.tokens.fontWeightSemibold,textAlign:`center`}),message:(0,l.css)({color:i.tokens.colorNeutralForeground2,textAlign:`center`,lineHeight:i.tokens.lineHeightBase400})}),[]),hs=({title:e,message:t})=>{let r=ms();return(0,n.jsx)(i.Card,{className:r.container,role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`,children:(0,n.jsxs)(H,{gap:`l`,alignItems:`center`,children:[(0,n.jsx)(d.ErrorCircleRegular,{className:r.icon,"aria-hidden":`true`,focusable:!1}),(0,n.jsxs)(H,{gap:`s`,alignItems:`center`,children:[(0,n.jsx)(i.Title3,{className:r.title,children:e}),(0,n.jsx)(i.Body1,{className:r.message,children:t})]})]})})},gs=(0,i.makeStyles)({root:{display:`flex`,flexDirection:`row`,justifyContent:`center`,alignItems:`center`,...i.shorthands.padding(`10px`),gap:`10px`},iconClass:{width:`32px`,height:`32px`},errorContainer:{display:`flex`,flexDirection:`row`,justifyContent:`start`,alignItems:`center`,gap:`10px`,...i.shorthands.padding(`10px`),backgroundColor:i.tokens.colorStatusDangerBackground1},errorIcon:{height:`100%`}}),_s=e=>{let{messageType:r,children:a,message:o}=e,s=gs(),[c,l]=t.useState(null),u=t.useCallback(()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(`div`,{className:s.errorContainer,role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`,children:[(0,n.jsx)(`div`,{className:s.errorIcon,children:(0,n.jsx)(p.Icon,{icon:`fluent:error-circle-12-regular`,width:`32`,height:`32`,color:i.tokens.colorStatusDangerForeground1,"aria-hidden":`true`,focusable:`false`})}),(0,n.jsx)(i.Body1,{children:o})]})}),[o,s.errorContainer,s.errorIcon]);return t.useEffect(()=>{switch(r){case te.SUCCESS:l((0,n.jsx)(d.CheckmarkCircle32Regular,{primaryFill:i.tokens.colorStatusSuccessForeground1}));break;case te.INFO:l((0,n.jsx)(d.Info32Regular,{primaryFill:i.tokens.colorStatusWarningForeground1}));break;default:break}},[r]),r===te.ERROR?(0,n.jsx)(u,{}):(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(`div`,{className:s.root,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:[c,(0,n.jsx)(i.Body1Strong,{children:o}),a]})})},vs=()=>({container:(0,l.css)({display:`flex`,flexWrap:`nowrap`,minWidth:0,overflow:`hidden`,gap:10,marginBottom:20,width:`100%`}),text1LineStyle:(0,l.css)({display:`-webkit-box`,WebkitLineClamp:1,WebkitBoxOrient:`vertical`,overflow:`hidden`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`}),button:(0,l.css)({cursor:`pointer`,minWidth:107})}),ys=({items:e,selectedItemId:r,onSelectedItem:a,renderControl:o,theme:s})=>{let c=vs(),l=t.useCallback(e=>{a&&a(e)},[a]);return(0,n.jsx)(i.Overflow,{children:(0,n.jsxs)(i.FluentProvider,{theme:s,children:[` `,(0,n.jsxs)(`div`,{className:(0,i.mergeClasses)(c.container),role:`toolbar`,"aria-label":`Control bar`,children:[e.map(e=>{let t=e.id===r;return(0,n.jsx)(i.OverflowItem,{id:e.id,priority:t?2:1,children:o(e,t,()=>l(e.id))},e.id)}),(0,n.jsx)(xs,{items:e,onSelectedItem:l,theme:s}),` `]})]})})},bs=({item:e,onSelectedItem:t})=>(0,i.useIsOverflowItemVisible)(e.id)?null:(0,n.jsx)(i.MenuItem,{icon:e.icon,onClick:()=>t(e.id),children:(0,n.jsx)(`div`,{children:e.name})},e.id),xs=({items:e,onSelectedItem:r,theme:a})=>{let{ref:o,overflowCount:s,isOverflowing:c}=(0,i.useOverflowMenu)(),l=t.useMemo(()=>(0,d.bundleIcon)(d.MoreHorizontalFilled,d.MoreHorizontalRegular),[]);return c?(0,n.jsx)(i.IdPrefixProvider,{value:`menu-over-`,children:(0,n.jsx)(i.FluentProvider,{theme:a,children:(0,n.jsxs)(i.Menu,{children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{appearance:`transparent`,ref:o,icon:(0,n.jsx)(l,{}),"aria-label":`${s} more options`,role:`button`})}),(0,n.jsx)(i.MenuPopover,{children:(0,n.jsx)(i.MenuList,{children:e.map(e=>(0,n.jsx)(bs,{item:e,onSelectedItem:r},e.id))})})]})})}):null},Ss=({id:e,children:t})=>(0,i.useIsOverflowItemVisible)(e)?null:(0,n.jsx)(i.MenuItem,{children:t}),Cs=({items:e,renderItem:t,keyExtractor:r})=>{let{ref:a,overflowCount:o,isOverflowing:s}=(0,i.useOverflowMenu)();return s?(0,n.jsxs)(i.Menu,{children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsxs)(i.MenuButton,{ref:a,"aria-label":`+${o} more items`,children:[`+`,o,` items`]})}),(0,n.jsx)(i.MenuPopover,{children:(0,n.jsx)(i.MenuList,{children:e.map(e=>(0,n.jsx)(Ss,{id:r(e),children:t(e)},r(e)))})})]}):null},ws=t.default.memo(({items:e,open:r=!0,defaultOpen:a,drawerType:o=`inline`,size:s=`small`,appItem:c,header:l,footer:u,selectedKey:d,defaultSelectedKey:f,selectedCategoryKey:p,onNavigate:m,multiple:h=!0,density:g=`medium`,defaultOpenCategories:_,openCategories:v,onCategoryToggle:y,className:b,style:x})=>{let S=t.default.useMemo(()=>{let t=new Map,n=e=>{for(let r of e)t.set(r.key,r),r.children&&n(r.children)};return n(e),t},[e]),C=(0,t.useCallback)(e=>t=>{e.href&&t.preventDefault(),m?.(e.key,e.href)},[m]),w=(0,t.useCallback)((e,t)=>{if(!m)return;let n=S.get(t.value);n&&m(t.value,n.href)},[m,S]),T=(0,t.useCallback)((e,t)=>{y?.(t.value)},[y]),E=e=>(0,n.jsx)(i.NavItem,{value:e.key,href:e.href,icon:e.icon,onClick:C(e),children:e.name},e.key),D=e=>(0,n.jsxs)(i.NavCategory,{value:e.key,children:[(0,n.jsx)(i.NavCategoryItem,{icon:e.icon,children:e.name}),(0,n.jsx)(i.NavSubItemGroup,{children:e.children.map(e=>e.icon?(0,n.jsx)(i.NavItem,{value:e.key,href:e.href,icon:e.icon,onClick:C(e),children:e.name},e.key):(0,n.jsx)(i.NavSubItem,{value:e.key,href:e.href,onClick:C(e),children:e.name},e.key))})]},e.key),O=e=>(0,n.jsxs)(t.default.Fragment,{children:[(0,n.jsx)(i.NavSectionHeader,{children:e.name}),e.children.map(e=>e.children&&e.children.length>0?D(e):E(e))]},e.key);return(0,n.jsxs)(i.NavDrawer,{open:r,defaultOpen:a,type:o,size:s,className:b,style:t.default.useMemo(()=>({flexShrink:0,...x}),[x]),selectedValue:d,defaultSelectedValue:f,selectedCategoryValue:p,multiple:h,density:g,defaultOpenCategories:_,openCategories:v,onNavItemSelect:w,onNavCategoryItemToggle:T,children:[l!==void 0&&(0,n.jsx)(i.NavDrawerHeader,{children:l}),(0,n.jsxs)(i.NavDrawerBody,{children:[c&&(c.href?(0,n.jsx)(i.AppItem,{icon:c.icon,href:c.href,children:c.name}):(0,n.jsx)(i.AppItemStatic,{icon:c.icon,children:c.name})),e.map(e=>e.isSectionHeader&&e.children&&e.children.length>0?O(e):e.children&&e.children.length>0?D(e):E(e))]}),u!==void 0&&(0,n.jsx)(i.NavDrawerFooter,{children:u})]})});ws.displayName=`Navigation`;var Ts=()=>({root:(0,l.css)({width:`100%`}),sectionHeader:(0,l.css)({color:i.tokens.colorNeutralForeground3,fontSize:i.tokens.fontSizeBase200,fontWeight:i.tokens.fontWeightSemibold,padding:`${i.tokens.spacingVerticalS} ${i.tokens.spacingHorizontalM}`,textTransform:`uppercase`,letterSpacing:`0.5px`})}),Es=e=>({videoPlayerContainer:(0,l.css)({position:`relative`,width:e.width,height:e.height}),reactPlayer:(0,l.css)({position:`absolute`,top:0,left:0,width:`100%`,height:`100%`}),playButton:(0,l.css)({position:`absolute`,left:`50%`,top:`50%`,zIndex:1,userSelect:`none`})}),Ds=e=>{let{url:r,controls:i=!0,width:a=`100%`,height:o=`100%`,loop:s=!1,muted:c=!1}=e,[l,u]=(0,t.useState)(!1),d=Es(e);return(0,n.jsx)(`div`,{className:d.videoPlayerContainer,role:`region`,"aria-label":`Video player`,children:(0,n.jsx)(C.default,{url:r,controls:i,width:a,height:o,playing:l,loop:s,muted:c,onPause:()=>u(!1),onPlay:()=>u(!0),className:d.reactPlayer})})},Os=`.maplibregl-map{-webkit-tap-highlight-color:#0000;font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;position:relative;overflow:hidden}.maplibregl-canvas{position:absolute;top:0;left:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;z-index:2;position:absolute}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px buttontext}}.maplibregl-ctrl-group button{box-sizing:border-box;cursor:pointer;background-color:#0000;border:0;outline:none;width:29px;height:29px;padding:0;display:block}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;width:100%;height:100%;display:block}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:#0000}.maplibregl-ctrl-group button+button{border-top:1px solid buttontext}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}}.maplibregl-ctrl button:not(:disabled):active{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23333' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2333b5e5' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:2s linear infinite maplibregl-spin}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{cursor:pointer;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;width:88px;height:23px;margin:0 0 -4px -4px;display:block;overflow:hidden}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:#0000;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{box-sizing:content-box;color:#000;background-color:#fff;border-radius:12px;min-height:20px;margin:10px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{visibility:visible;padding:2px 28px 2px 8px}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{box-sizing:border-box;cursor:pointer;background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;outline:none;width:24px;height:24px;display:none;position:absolute;top:0;right:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{box-sizing:border-box;color:#333;white-space:nowrap;background-color:#ffffffbf;border:2px solid #333;border-top:#333;padding:0 5px;font-size:10px}.maplibregl-popup{pointer-events:none;will-change:transform;display:flex;position:absolute;top:0;left:0}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{z-index:1;border:10px solid #0000;width:0;height:0}.maplibregl-popup-anchor-top .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;align-self:center}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;border-left:none;align-self:flex-start}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;border-right:none;align-self:flex-end}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;align-self:center}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;border-left:none;align-self:flex-start}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;border-right:none;align-self:flex-end}.maplibregl-popup-anchor-left .maplibregl-popup-tip{border-left:none;border-right-color:#fff;align-self:center}.maplibregl-popup-anchor-right .maplibregl-popup-tip{border-left-color:#fff;border-right:none;align-self:center}.maplibregl-popup-close-button{cursor:pointer;background-color:#0000;border:0;border-radius:0 3px 0 0;position:absolute;top:0;right:0}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{pointer-events:auto;background:#fff;border-radius:3px;padding:15px 10px;position:relative;box-shadow:0 1px 2px #0000001a}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{will-change:transform;transition:opacity .2s;position:absolute;top:0;left:0}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;width:15px;height:15px}.maplibregl-user-location-dot:before{content:"";animation:2s infinite maplibregl-user-location-dot-pulse;position:absolute}.maplibregl-user-location-dot:after{box-sizing:border-box;content:"";border:2px solid #fff;border-radius:50%;width:19px;height:19px;position:absolute;top:-2px;left:-2px;box-shadow:0 0 3px #00000059}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;width:1px;height:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{opacity:.5;background:#fff;border:2px dotted #202020;width:0;height:0;position:absolute;top:0;left:0}.maplibregl-cooperative-gesture-screen{color:#fff;opacity:0;pointer-events:none;z-index:99999;background:#0006;justify-content:center;align-items:center;padding:1rem;font-size:1.4em;line-height:1.2;transition:opacity 1s 1s;display:flex;position:absolute;inset:0}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity 50ms}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{z-index:99999;width:100%!important;height:100%!important;position:fixed!important;top:0!important;left:0!important}`,ks=`spteck-react-controls-maplibre-styles`,As=e=>{let t=e??(typeof document<`u`?document:void 0);if(!t||t.getElementById(ks))return;let n=t.createElement(`style`);n.id=ks,n.textContent=Os,t.head.appendChild(n)},js=l.css`
|
|
159
|
+
)`,borderRadius:`50%`,position:`relative`,"&::after":{content:`""`,position:`absolute`,inset:0,borderRadius:`50%`,background:`radial-gradient(circle, #fff 0%, transparent 70%)`}}),[a,f]),b=(0,t.useMemo)(()=>({width:a,height:f,...u}),[a,f,u]);return(0,n.jsx)(so,{onMove:_,className:(0,i.mergeClasses)(d.wheelContainer,c),style:b,children:(0,n.jsx)(`div`,{ref:p,className:y,children:(0,n.jsx)(s,{color:J(h).hex,left:v.x/a,top:v.y/f})})})},Ro=[`#f44336`,`#e91e63`,`#9c27b0`,`#673ab7`,`#3f51b5`,`#2196f3`,`#03a9f4`,`#00bcd4`,`#009688`,`#4caf50`,`#8bc34a`,`#cddc39`,`#ffeb3b`,`#ffc107`,`#ff9800`,`#ff5722`,`#795548`,`#607d8b`],zo=t.default.memo(({hex:e,selected:r,size:a,onClick:o})=>{let s=Y(),c=(0,t.useMemo)(()=>(0,l.css)({width:a,height:a,borderRadius:`50%`,backgroundColor:e,cursor:`pointer`,transition:`transform 100ms ease`,transform:r?`scale(1.2)`:`scale(1)`,boxShadow:r?`0 0 0 3px ${i.tokens.colorNeutralBackground1}, 0 0 0 5px ${e}`:`inset 0 0 0 1px rgba(0,0,0,0.1)`,display:`flex`,alignItems:`center`,justifyContent:`center`}),[e,r,a]),u=(0,t.useCallback)(()=>o(e),[o,e]),d=(0,t.useCallback)(t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),o(e))},[o,e]);return(0,n.jsx)(`div`,{role:`button`,tabIndex:0,className:(0,i.mergeClasses)(s.circlePoint,c),onClick:u,onKeyDown:d,title:e,"aria-label":e,children:r&&(0,n.jsx)(`svg`,{width:a*.45,height:a*.45,viewBox:`0 0 24 24`,children:(0,n.jsx)(`path`,{fill:no(e),d:`M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z`})})})}),Bo=({color:e,onChange:r,colors:a=Ro,pointSize:o=28,className:s,style:c})=>{let l=Y(),u=e=>e?typeof e==`string`?J(e).hex:Ha(e):`#f44336`,[d,f]=(0,t.useState)(()=>u(e));(0,t.useEffect)(()=>{e!==void 0&&f(u(e))},[e]);let p=(0,t.useCallback)(e=>{f(e);let t=J(e);r?.(t)},[r]),m=(0,t.useMemo)(()=>a.map(e=>typeof e==`string`?e:e.color),[a]),h=(0,t.useMemo)(()=>({padding:8,...c}),[c]);return(0,n.jsx)(H,{direction:`horizontal`,wrap:!0,gap:`s`,className:(0,i.mergeClasses)(l.circleContainer,s),style:h,children:m.map(e=>(0,n.jsx)(zo,{hex:e,selected:io(e,d),size:o,onClick:p},e))})},Vo=`#4D4D4D.#999999.#FFFFFF.#F44E3B.#FE9200.#FCDC00.#DBDF00.#A4DD00.#68CCCA.#73D8FF.#AEA1FF.#FDA1FF.#333333.#808080.#CCCCCC.#D33115.#E27300.#FCC400.#B0BC00.#68BC00.#16A5A5.#009CE0.#7B64FF.#FA28FF.#000000.#666666.#B3B3B3.#9F0500.#C45100.#FB9E00.#808900.#194D33.#0C797D.#0062B1.#653294.#AB149E`.split(`.`),Ho=t.default.memo(({hex:e,selected:r,onClick:a})=>{let o=(0,t.useMemo)(()=>(0,l.css)({width:15,height:15,position:`relative`,cursor:`pointer`,overflow:`visible`,transition:`transform 120ms ease, box-shadow 120ms ease`,borderRadius:2,...r&&{transform:`scale(1.2)`,zIndex:1,boxShadow:`0 0 0 2px rgba(255,255,255,0.8), 0 2px 6px rgba(0,0,0,0.3)`},"&:hover":{transform:`scale(1.2)`,zIndex:1,boxShadow:`0 0 0 2px rgba(255,255,255,0.8), 0 2px 6px rgba(0,0,0,0.3)`},"&:focus-visible":{outline:`2px solid #005fb8`,outlineOffset:2}}),[r]),s=(0,t.useMemo)(()=>(0,l.css)({width:`100%`,height:`100%`,backgroundColor:e,boxShadow:`inset 0 0 0 1px rgba(0,0,0,0.1)`,borderRadius:`inherit`}),[e]),c=(0,t.useMemo)(()=>(0,l.css)({position:`absolute`,inset:-1,borderRadius:3,border:`1px solid ${i.tokens.colorBrandStroke1}`,pointerEvents:`none`}),[]);return(0,n.jsxs)(`div`,{role:`button`,tabIndex:0,className:o,onClick:(0,t.useCallback)(()=>a(e),[a,e]),onKeyDown:(0,t.useCallback)(t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),a(e))},[a,e]),title:e,"aria-label":e,children:[(0,n.jsx)(`div`,{className:s}),r&&(0,n.jsx)(`div`,{className:c})]})}),Uo=({color:e,onChange:r,colors:a=Vo,className:o,style:s})=>{let c=Y(),l=e=>e?typeof e==`string`?J(e).hsva:e:{h:0,s:100,v:100,a:1},[u,d]=(0,t.useState)(()=>l(e));(0,t.useEffect)(()=>{e!==void 0&&d(l(e))},[e]);let f=Ha(u),p=(0,t.useCallback)(e=>{let t=J(e);d(t.hsva),r?.(t)},[r]),m=(0,t.useCallback)(e=>{let t=e.startsWith(`#`)?e:`#${e}`;if(/^#[0-9a-fA-F]{3,8}$/.test(t)){let e=J(t);d(e.hsva),r?.(e)}},[r]),h=(0,t.useCallback)(e=>t=>{let n=Math.max(0,Math.min(255,parseInt(t,10)||0)),i={...La(u),[e]:n},a=J(`rgba(${i.r}, ${i.g}, ${i.b}, ${i.a})`);d(a.hsva),r?.(a)},[u,r]),g=La(u),_=(0,t.useMemo)(()=>a.map(e=>typeof e==`string`?e:e.color),[a]),v=(0,t.useMemo)(()=>new Map(_.map(e=>[e,Ha(J(e).hsva)])),[_]),y=(0,t.useMemo)(()=>({width:240,gap:5}),[]),b=(0,t.useMemo)(()=>({paddingTop:4,width:240}),[]);return(0,n.jsxs)(H,{direction:`vertical`,gap:`xs`,className:(0,i.mergeClasses)(c.compactContainer,o),style:s,children:[(0,n.jsx)(H,{direction:`horizontal`,wrap:!0,style:y,children:_.map(e=>(0,n.jsx)(Ho,{hex:e,selected:io(v.get(e)||e,f),onClick:p},e))}),(0,n.jsxs)(H,{direction:`horizontal`,gap:`xs`,style:b,children:[(0,n.jsx)(So,{label:`#`,value:f.replace(`#`,``),onChange:m}),(0,n.jsx)(So,{label:`R`,value:String(g.r),onChange:h(`r`)}),(0,n.jsx)(So,{label:`G`,value:String(g.g),onChange:h(`g`)}),(0,n.jsx)(So,{label:`B`,value:String(g.b),onChange:h(`b`)})]})]})},Wo=[`#D9E3F0`,`#F47373`,`#697689`,`#37D67A`,`#2CCCE4`,`#555555`,`#dce775`,`#ff8a65`,`#ba68c8`],Go=({color:e,onChange:r,colors:a=Wo,showTriangle:o=!0,className:s,style:c})=>{let u=Y(),d=e=>e?typeof e==`string`?J(e).hsva:e:{h:214,s:13,v:100,a:1},[f,p]=(0,t.useState)(()=>d(e));(0,t.useEffect)(()=>{e!==void 0&&p(d(e))},[e]);let m=Ha(f),h=(0,t.useCallback)(e=>{let t=J(e);p(t.hsva),r?.(t)},[r]),g=(0,t.useCallback)(e=>{let t=e.startsWith(`#`)?e:`#${e}`;if(/^#[0-9a-fA-F]{3,8}$/.test(t)){let e=J(t);p(e.hsva),r?.(e)}},[r]),_=(0,t.useMemo)(()=>a.map(e=>typeof e==`string`?e:e.color),[a]),v=(0,t.useMemo)(()=>(0,l.css)({width:`100%`,height:110,borderRadius:`${i.tokens.borderRadiusMedium} ${i.tokens.borderRadiusMedium} 0 0`,backgroundColor:m,display:`flex`,alignItems:`flex-end`,justifyContent:`flex-start`,padding:10,position:`relative`,boxSizing:`border-box`}),[m]),y=(0,t.useMemo)(()=>(0,l.css)({color:no(m),fontSize:i.tokens.fontSizeBase400,fontWeight:i.tokens.fontWeightSemibold}),[m]),b=(0,t.useMemo)(()=>(0,l.css)({width:0,height:0,borderStyle:`solid`,borderWidth:`0 10px 10px 10px`,borderColor:`transparent transparent ${m} transparent`,position:`absolute`,top:-10,left:12}),[m]),x=(0,t.useMemo)(()=>(0,l.css)({width:22,height:22,borderRadius:i.tokens.borderRadiusSmall,cursor:`pointer`,boxShadow:`inset 0 0 0 1px rgba(0,0,0,0.15)`,position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`transform 120ms ease, box-shadow 120ms ease`,"&:hover":{transform:`scale(1.2)`,zIndex:1,boxShadow:`0 0 0 2px rgba(255,255,255,0.8), 0 2px 6px rgba(0,0,0,0.3)`},"&:focus-visible":{outline:`2px solid #005fb8`,outlineOffset:2}}),[]),S=(0,t.useMemo)(()=>({width:170,...c}),[c]),C=(0,t.useMemo)(()=>({padding:10}),[]);return(0,n.jsxs)(H,{direction:`vertical`,className:(0,i.mergeClasses)(u.blockContainer,s),style:S,children:[(0,n.jsxs)(`div`,{className:v,children:[o&&(0,n.jsx)(`div`,{className:b}),(0,n.jsx)(`span`,{className:y,children:m.toUpperCase()})]}),(0,n.jsxs)(H,{direction:`vertical`,gap:`s`,style:C,children:[(0,n.jsx)(H,{direction:`horizontal`,wrap:!0,gap:`xs`,children:_.map(e=>(0,n.jsx)(`div`,{role:`button`,tabIndex:0,className:x,style:{backgroundColor:e},onClick:()=>h(e),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),h(e))},title:e,"aria-label":e,children:io(e,m)&&(0,n.jsx)(`svg`,{width:12,height:12,viewBox:`0 0 24 24`,children:(0,n.jsx)(`path`,{fill:no(e),d:`M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z`})})},e))}),(0,n.jsx)(So,{label:`#`,value:m.replace(`#`,``),onChange:g})]})]})},Ko=12,qo=({color:e,onChange:r,swatchCount:a=Ko,className:o,style:s})=>{let c=Y(),u=e=>e?typeof e==`string`?J(e).hsva:e:{h:0,s:100,v:100,a:1},[d,f]=(0,t.useState)(()=>u(e)),[p,m]=(0,t.useState)(null);(0,t.useEffect)(()=>{if(e!==void 0){let t=u(e);f(e=>io(Ha(e),Ha(t))?e:t)}},[e]);let h=za(d),g=(0,t.useMemo)(()=>{let e=[];for(let t=0;t<a;t++)e.push(Math.round(t/(a-1)*100));return e},[a]),_=(0,t.useCallback)(e=>{let t=J(`hsl(${h.h}, ${h.s}%, ${e}%)`);f(t.hsva),m(e),r?.(t)},[h.h,h.s,r]),v=(0,t.useMemo)(()=>(0,l.css)({flex:1,height:12,cursor:`pointer`,outline:`none`,":focus-visible":{outline:`2px solid currentColor`,outlineOffset:1}}),[]),y=(0,t.useMemo)(()=>(0,l.css)({height:16,marginTop:-2,borderRadius:2}),[]);return(0,n.jsx)(H,{direction:`vertical`,gap:`xs`,className:(0,i.mergeClasses)(c.sliderContainer,o),style:s,children:(0,n.jsx)(H,{direction:`horizontal`,children:g.map(e=>(0,n.jsx)(`div`,{role:`button`,tabIndex:0,className:(0,i.mergeClasses)(v,e===p&&y),style:{backgroundColor:`hsl(${h.h}, ${h.s}%, ${e}%)`},onClick:()=>_(e),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),_(e))},title:`L: ${e}%`,"aria-label":`Lightness ${e}%`},e))})})},Jo=[{label:`Brand`,colors:[{color:i.tokens.colorBrandBackground,title:`Brand`},{color:i.tokens.colorBrandBackground2,title:`Brand 2`},{color:i.tokens.colorBrandBackgroundHover,title:`Brand Hover`},{color:i.tokens.colorBrandBackgroundPressed,title:`Brand Pressed`},{color:i.tokens.colorBrandBackgroundSelected,title:`Brand Selected`},{color:i.tokens.colorBrandForeground1,title:`Brand Foreground`},{color:i.tokens.colorBrandForeground2,title:`Brand Foreground 2`}]},{label:`Neutral`,colors:[{color:i.tokens.colorNeutralBackground1,title:`Background 1`},{color:i.tokens.colorNeutralBackground2,title:`Background 2`},{color:i.tokens.colorNeutralBackground3,title:`Background 3`},{color:i.tokens.colorNeutralBackground4,title:`Background 4`},{color:i.tokens.colorNeutralBackground5,title:`Background 5`},{color:i.tokens.colorNeutralBackground6,title:`Background 6`},{color:i.tokens.colorNeutralForeground1,title:`Foreground 1`},{color:i.tokens.colorNeutralForeground2,title:`Foreground 2`},{color:i.tokens.colorNeutralForeground3,title:`Foreground 3`},{color:i.tokens.colorNeutralStroke1,title:`Stroke 1`},{color:i.tokens.colorNeutralStroke2,title:`Stroke 2`}]},{label:`Status`,colors:[{color:i.tokens.colorPaletteRedBackground3,title:`Red`},{color:i.tokens.colorPaletteRedForeground1,title:`Red Foreground`},{color:i.tokens.colorPaletteGreenBackground3,title:`Green`},{color:i.tokens.colorPaletteGreenForeground1,title:`Green Foreground`},{color:i.tokens.colorPaletteYellowBackground3,title:`Yellow`},{color:i.tokens.colorPaletteYellowForeground1,title:`Yellow Foreground`},{color:i.tokens.colorPaletteBlueBorderActive,title:`Blue`},{color:i.tokens.colorPaletteBlueForeground2,title:`Blue Foreground`}]}];function Yo(e,t){let n=document.createElement(`span`);n.style.display=`none`,t.appendChild(n);let r=e.map(e=>({label:e.label,colors:e.colors.map(e=>{let t=typeof e==`string`?e:e.color,r=typeof e==`string`?t:e.title??t;if(t.startsWith(`#`))return{hex:t,title:r};n.style.color=t;let i=getComputedStyle(n).color;return{hex:ts(i),title:r}})}));return t.removeChild(n),r}var Xo=t.default.memo(({hex:e,title:r,selected:a,size:o,onClick:s})=>(0,n.jsx)(`div`,{role:`button`,tabIndex:0,className:(0,t.useMemo)(()=>(0,l.css)({width:o,height:o,borderRadius:i.tokens.borderRadiusSmall,backgroundColor:e,cursor:`pointer`,position:`relative`,overflow:`visible`,transition:`transform 120ms ease, box-shadow 120ms ease`,border:`1px solid ${i.tokens.colorNeutralStroke2}`,boxSizing:`border-box`,...a&&{transform:`scale(1.2)`,zIndex:1,boxShadow:`0 0 0 2px ${i.tokens.colorNeutralBackground1}, 0 0 0 4px ${i.tokens.colorBrandStroke1}`},"&:hover":{transform:`scale(1.2)`,zIndex:1,boxShadow:`0 0 0 2px rgba(255,255,255,0.8), 0 2px 6px rgba(0,0,0,0.3)`},"&:focus-visible":{outline:`2px solid ${i.tokens.colorBrandStroke1}`,outlineOffset:2}}),[e,a,o]),onClick:(0,t.useCallback)(()=>s(e),[s,e]),onKeyDown:(0,t.useCallback)(t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),s(e))},[s,e]),title:r,"aria-label":`${r}${a?` (selected)`:``}`,children:a&&(0,n.jsx)(`svg`,{width:o*.5,height:o*.5,viewBox:`0 0 24 24`,style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`},children:(0,n.jsx)(`path`,{fill:no(e),d:`M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z`})})})),Zo=(0,l.css)({padding:i.tokens.spacingHorizontalM,borderRadius:i.tokens.borderRadiusMedium,backgroundColor:i.tokens.colorNeutralBackground1,boxShadow:i.tokens.shadow8,boxSizing:`border-box`,width:`fit-content`}),Qo=(0,l.css)({fontSize:i.tokens.fontSizeBase200,fontWeight:i.tokens.fontWeightSemibold,color:i.tokens.colorNeutralForeground3,lineHeight:i.tokens.lineHeightBase200,textTransform:`uppercase`,letterSpacing:`0.5px`,margin:0,padding:0}),$o=(0,l.css)({display:`flex`,flexWrap:`wrap`,gap:i.tokens.spacingHorizontalXS}),es=({color:e,onChange:r,groups:a=Jo,swatchSize:o=28,className:s,style:c})=>{let l=(0,t.useRef)(null),u=e=>e?typeof e==`string`?J(e).hex:Ha(e):``,[d,f]=(0,t.useState)(()=>u(e)),[p,m]=(0,t.useState)([]);(0,t.useEffect)(()=>{e!==void 0&&f(u(e))},[e]),(0,t.useEffect)(()=>{l.current&&m(Yo(a,l.current))},[a]);let h=(0,t.useCallback)(e=>{f(e);let t=J(e);r?.(t)},[r]);return(0,n.jsx)(H,{ref:l,direction:`vertical`,gap:`m`,className:(0,i.mergeClasses)(Zo,s),style:c,children:p.map(e=>(0,n.jsxs)(H,{direction:`vertical`,gap:`xs`,children:[(0,n.jsx)(`p`,{className:Qo,children:e.label}),(0,n.jsx)(`div`,{className:$o,role:`group`,"aria-label":`${e.label} colors`,children:e.colors.map(t=>(0,n.jsx)(Xo,{hex:t.hex,title:t.title,selected:io(t.hex,d),size:o,onClick:h},`${e.label}-${t.title}`))})]},e.label))})};function ts(e){let t=e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return t?`#`+[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)].map(e=>e.toString(16).padStart(2,`0`)).join(``):`#000000`}var X=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});X.displayName=`ColorPicker`,X.Saturation=lo,X.Hue=mo,X.Alpha=go,X.ShadeSlider=vo,X.Swatch=bo,X.EditableInput=So,X.EditableInputRGBA=Co,X.EditableInputHSLA=wo,X.Interactive=so,X.Sketch=Eo,X.Chrome=Mo,X.Colorful=No,X.Wheel=Lo,X.Circle=Bo,X.Compact=Uo,X.Block=Go,X.Slider=qo,X.Theme=es;var Z={xs:i.tokens.spacingHorizontalXS,s:i.tokens.spacingHorizontalS,m:i.tokens.spacingHorizontalM,l:i.tokens.spacingHorizontalL,xl:i.tokens.spacingHorizontalXL,xxl:i.tokens.spacingHorizontalXXL},ns=t.default.memo(({direction:e=`vertical`,justifyContent:t=`flex-start`,alignItems:r=`stretch`,gap:a,columnGap:o,rowGap:s,margin:c,padding:u,marginTop:d,marginBottom:f,marginLeft:p,marginRight:m,paddingTop:h,paddingBottom:g,paddingLeft:_,paddingRight:v,width:y,height:b,wrap:x=!1,children:S,style:C,className:w,overflow:T,background:E})=>(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(w,(0,l.css)({display:`flex`,flexDirection:e===`horizontal`?`row`:`column`,justifyContent:t,alignItems:r,gap:a&&Z[a]?Z[a]:a,columnGap:o&&Z[o]?Z[o]:o,rowGap:s&&Z[s]?Z[s]:s,margin:c&&Z[c]?Z[c]:c,padding:u&&Z[u]?Z[u]:u,marginTop:d&&Z[d]?Z[d]:d,marginBottom:f&&Z[f]?Z[f]:f,marginLeft:p&&Z[p]?Z[p]:p,marginRight:m&&Z[m]?Z[m]:m,paddingTop:h&&Z[h]?Z[h]:h,paddingBottom:g&&Z[g]?Z[g]:g,paddingLeft:_&&Z[_]?Z[_]:_,paddingRight:v&&Z[v]?Z[v]:v,width:y,height:b,overflow:T,flexWrap:x?`wrap`:`nowrap`,backgroundColor:E,...C})),children:S})),rs=e=>({styles:{loadingContainer:(0,l.css)({display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`}),noItemsMessage:(0,l.css)({textAlign:`center`,marginTop:20}),rowSelection:(0,l.css)({":hover":{cursor:`pointer`}})}}),is=e=>{let{items:r,columns:a,defaultSelectedItems:o=[],enableSorting:s=!1,selectionMode:c=`none`,onSelectionChange:l,onSortChange:u,defaultSortState:d,columnSizingOptions:f,enableResizing:p=!1,noItemsMessage:m,isLoadingData:h,isLoadingDataMessage:g,dataGridBodyClassName:_,dataGridBodyStyles:v,refreshData:y}=e,b=e=>r.findIndex(t=>t===e),[x,S]=t.useState(new Set(o.map(e=>b(e)))),C=t.useRef(null),{styles:w}=rs(e);t.useEffect(()=>{o.length>0&&S(new Set(o.map(e=>b(e))))},[o,r]),t.useEffect(()=>{y&&S(new Set)},[y]);let T=a.map(e=>(0,i.createTableColumn)({columnId:e.column,renderHeaderCell:()=>(0,n.jsx)(i.Body1Strong,{children:e.header}),renderCell:t=>(0,n.jsx)(i.TableCellLayout,{media:e.media?e.media(t):void 0,className:e?.className,style:e?.style,children:e.onRender?e.onRender(t):String(t[e?.column]??``)}),compare:e.order})),E=(e,t)=>{let n=new Set;t.selectedItems.forEach(e=>{let t=Number(e);isNaN(t)||n.add(t)}),S(n),l&&l(Array.from(n).map(e=>r[e]))},D=(e,t)=>{u&&u(t)},O=t.useCallback((e,t)=>{e.stopPropagation(),c===`row`&&l&&l([t])},[c,l]),k=t.useMemo(()=>c===`row`?w.rowSelection:``,[c,w.rowSelection]),A=t.useCallback(()=>(0,n.jsx)(i.DataGridBody,{style:v??{},className:_??``,children:({item:e,rowId:t})=>(0,n.jsx)(i.DataGridRow,{className:k,onClick:t=>O(t,e),onKeyDown:t=>{c===`row`&&(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),l?.([e]))},children:({renderCell:t})=>(0,n.jsx)(i.DataGridCell,{children:t(e)})},t)}),[O,k,v,_]),j=t.useMemo(()=>r.length&&!h,[r,h]),M=t.useCallback(()=>h?(0,n.jsx)(n.Fragment,{children:g??(0,n.jsx)(ns,{direction:`vertical`,gap:`s`,justifyContent:`center`,alignItems:`center`,style:{height:`100%`,minHeight:200,width:`100%`},children:(0,n.jsx)(i.Spinner,{})})}):j?(0,n.jsx)(A,{}):!h&&!r.length?(0,n.jsx)(`div`,{children:m}):(0,n.jsx)(n.Fragment,{}),[j,h,r,m]);return(0,n.jsx)(`div`,{ref:C,children:(0,n.jsxs)(i.DataGrid,{as:`div`,items:r,onSelectionChange:E,sortable:s,columns:T,selectionMode:c===`none`||c===`row`?void 0:c===`multiple`?`multiselect`:c===`single`?`single`:void 0,selectedItems:x,defaultSortState:d,onSortChange:D,columnSizingOptions:f,resizableColumns:p,resizableColumnsOptions:{autoFitColumns:!1},children:[(0,n.jsx)(i.DataGridHeader,{children:(0,n.jsx)(i.DataGridRow,{children:({renderHeaderCell:e})=>(0,n.jsx)(i.DataGridHeaderCell,{children:e()})})}),(0,n.jsx)(M,{})]})})},as=(0,i.makeStyles)({scrollbar:{scrollbarWidth:`thin`,scrollbarColor:`${i.tokens.colorBrandBackground} ${i.tokens.colorNeutralBackground3}`,"&::-webkit-scrollbar":{width:`3px`,height:`3px`},"&::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground3,borderRadius:i.tokens.borderRadiusMedium},"&::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandBackground,borderRadius:i.tokens.borderRadiusMedium},"&::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorBrandBackgroundHover}}});function os(e,r){let a=as().scrollbar,{columns:o,items:s,enableSorting:c=!1,enableResizing:l=!1,selectionMode:u=`none`,onSelectionChange:d,defaultSelectedItems:f=[],defaultSortState:p,onSortChange:m,columnSizingOptions:h,resizableColumnsOptions:g,noItemsMessage:_,isLoadingData:v,isLoadingDataMessage:y,dataGridBodyClassName:b,dataGridBodyStyles:x,refreshData:C,enableInfiniteScroll:w,onLoadMore:T,infiniteScrollPageSize:E,hasNextPage:D,isLoadingMore:O,autoShowLastPage:k=!0,virtualizedHeight:A=600,virtualizedItemSize:j=44,startIndex:M,onRowClick:N}=e,ee=t.useMemo(()=>o.map(e=>(0,i.createTableColumn)({columnId:e.column,renderHeaderCell:()=>(0,n.jsx)(i.Body1Strong,{children:e.header}),renderCell:t=>(0,n.jsx)(i.TableCellLayout,{media:e.media?e.media(t):void 0,className:e?.className,style:e?.style,children:e.onRender?e.onRender(t):String(t[e.column]??``)}),compare:e.order})),[o]),P=t.useCallback(e=>s.findIndex(t=>t===e),[s]),[F,I]=t.useState(new Set(f.map(e=>P(e)))),[L,R]=t.useState(0);t.useEffect(()=>{f.length&&I(new Set(f.map(e=>P(e))))},[f,s,P]),t.useEffect(()=>{C&&I(new Set)},[C]);let te=(e,t)=>{let n=new Set;t.selectedItems.forEach(e=>{let t=Number(e);isNaN(t)||n.add(t)}),I(n),d&&d(Array.from(n).map(e=>s[e]))},ne=(e,t)=>{m&&m(t)},[re,ie]=t.useState(null),z=t.useMemo(()=>new Map(s.map((e,t)=>[e,t])),[s]);t.useEffect(()=>{u===`row`&&re!=null&&re>=s.length&&ie(null)},[s,re,u]),t.useEffect(()=>{C&&u===`row`&&ie(null)},[C,u]);let ae=t.useRef(null),oe=t.useRef(s.length),se=t.useRef(!1),ce=t.useRef(!1),le=t.useRef(!1);t.useImperativeHandle(r,()=>({scrollToIndex:(e,t=`auto`)=>{let n=ae.current;n&&`scrollToItem`in n&&n.scrollToItem(Math.max(0,e),t)},resetGrid:()=>{R(e=>e+1),oe.current=0,se.current=!1,ce.current=!1,le.current=!1,ue.current=-1,I(new Set),ie(null)},getSelectedRow:()=>re!==null&&re<s.length?{item:s[re],index:re}:null,setSelectedRow:e=>{let t=s.findIndex(t=>t===e);t!==-1&&(ie(t),d?.([e]))}})),t.useEffect(()=>{if(!se.current&&typeof M==`number`&&ae.current){let e=ae.current;`scrollToItem`in e&&e.scrollToItem(Math.min(M,Math.max(s.length-1,0)),`start`),se.current=!0}},[M,s.length]),t.useEffect(()=>{let e=oe.current,t=s.length,n=t>e;if(oe.current=t,!k||!n||e===0)return;let r=ae.current;r&&`scrollToItem`in r&&r.scrollToItem(Math.max(t-1,0),`end`)},[s.length,k]);let ue=t.useRef(-1),de=t.useCallback(({visibleStopIndex:e})=>{if(!w||!T||O||le.current)return;if(!ce.current){ce.current=!0;return}let t=E??20;if(s.length<t)return;let n=Math.max(5,Math.ceil(t/5));e>=s.length-n&&D&&ue.current!==s.length&&(ue.current=s.length,le.current=!0,T())},[w,T,D,O,s.length,E]);return t.useEffect(()=>{le.current&&s.length>ue.current&&(le.current=!1)},[s.length]),(0,n.jsxs)(`div`,{style:t.useMemo(()=>({overflowX:`auto`,overflowY:`hidden`,position:`relative`}),[]),className:a,children:[v&&(0,n.jsx)(H,{alignItems:`center`,justifyContent:`center`,height:`${A}px`,children:t.isValidElement(y)?y:(0,n.jsxs)(i.Spinner,{size:`extra-tiny`,children:[` `,y??`Loading data...`,` `]})}),!v&&s.length?(0,n.jsxs)(S.DataGrid,{items:s,columns:ee,sortable:c,onSortChange:c?ne:void 0,selectionMode:u===`none`||u===`row`?void 0:u===`multiple`?`multiselect`:u===`single`?`single`:void 0,selectedItems:F,onSelectionChange:te,defaultSortState:p,resizableColumns:l,columnSizingOptions:h,resizableColumnsOptions:g,focusMode:`cell`,className:(0,i.mergeClasses)(b,a),style:x,children:[(0,n.jsx)(S.DataGridHeader,{children:(0,n.jsx)(S.DataGridRow,{children:({renderHeaderCell:e})=>(0,n.jsx)(S.DataGridHeaderCell,{children:e()})})}),(0,n.jsx)(S.DataGridBody,{itemSize:j,height:A,width:`100%`,listProps:{onItemsRendered:de},className:a,children:(e,t)=>(()=>{let r=e.item,a=z.get(r)??s.indexOf(r),o=u===`row`,c=o&&re===a,l=e=>{ie(a),d?.([r]),N?.(r,a)};return(0,n.jsx)(S.DataGridRow,{style:{...t,cursor:o?`pointer`:void 0,background:c?i.tokens.colorSubtleBackgroundSelected:void 0},onClick:l,"aria-selected":c||void 0,children:({renderCell:e})=>(0,n.jsx)(S.DataGridCell,{children:e(r)})})})()})]},L):!v&&!s.length?(0,n.jsx)(`div`,{children:_}):null]})}var ss=t.forwardRef(os);ss.displayName=`DataGridV2`;var cs=200,ls=(0,i.makeStyles)({dialog:{overflow:`visible`},dialogBody:{overflow:`visible`}}),us=e=>{let{isOpen:t,dialogTitle:r,dialogActions:a,children:o,maxWidth:s,className:c,minHeight:l,minWidth:u,maxHeight:d}=e,f=ls();return t?(0,n.jsx)(i.Dialog,{open:t,modalType:`modal`,children:(0,n.jsxs)(i.DialogSurface,{className:(0,i.mergeClasses)(f.dialog,c),style:{maxWidth:s??600,minWidth:u??cs,...l?{minHeight:l}:{},...d?{maxHeight:d}:{}},children:[(0,n.jsx)(i.DialogTitle,{children:r}),(0,n.jsx)(i.DialogBody,{className:f.dialogBody,children:(0,n.jsx)(i.DialogContent,{children:o})}),(0,n.jsx)(i.DialogActions,{fluid:!0,position:`end`,children:a})]})}):(0,n.jsx)(n.Fragment,{})},ds=e=>{let{isOpen:r,onOpenChange:a,title:o,headerActions:s,footerActions:c,size:l,separator:u,type:d,style:f,children:p,position:m,classNameHeader:h=``,classNameBody:g=``,classNameFooter:_=``}=e,v=t.useCallback((e,t)=>{a&&a(t.open)},[a]),y=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.DrawerHeader,{className:h,children:(0,n.jsx)(i.DrawerHeaderTitle,{style:{width:`100%`},action:s,children:o})}),(0,n.jsx)(i.DrawerBody,{className:g,children:p}),(0,n.jsx)(i.DrawerFooter,{className:_,children:c})]});return d===`inline`?(0,n.jsx)(i.InlineDrawer,{separator:u,open:r,size:l,style:f,position:m,children:y}):(0,n.jsx)(i.OverlayDrawer,{open:r,onOpenChange:v,size:l,style:f,position:m,children:y})},fs=e=>{let{onDismiss:r,title:a,description:o,icon:s,showCloseButton:c=!0}=e;return(0,n.jsxs)(H,{direction:`vertical`,width:`100%`,children:[(0,n.jsx)(H,{direction:`horizontal`,padding:`s`,gap:`l`,justifyContent:`space-between`,children:(0,n.jsxs)(H,{direction:`horizontal`,alignItems:`center`,width:`100%`,gap:`m`,children:[s?t.isValidElement(s)?s:(0,n.jsx)(p.Icon,{icon:s}):null,(0,n.jsxs)(H,{direction:`vertical`,justifyContent:`flex-start`,alignItems:`flex-start`,width:`100%`,children:[t.isValidElement(a)?a:(0,n.jsxs)(H,{direction:`horizontal`,justifyContent:`space-between`,gap:`l`,width:`100%`,children:[(0,n.jsx)(Ot,{fontSize:`l`,block:!0,truncate:!0,numberOfLines:1,children:a}),c&&(0,n.jsx)(i.Button,{appearance:`transparent`,onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1)},icon:(0,n.jsx)(d.Dismiss24Regular,{style:{width:18,height:18}}),color:i.tokens.colorBrandBackground,"aria-label":`Close`})]}),t.isValidElement(o)?o:(0,n.jsx)(i.Caption1,{style:{display:`-webkit-box`,WebkitLineClamp:4,WebkitBoxOrient:`vertical`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`},children:o})]})]})}),(0,n.jsx)(i.Divider,{style:{marginTop:6}})]})},ps=()=>({closeButton:(0,l.css)({marginLeft:`auto`,position:`absolute`,top:`10px`,right:`10px`,zIndex:99999}),divider:(0,l.css)({width:`100%`,height:`1px`,backgroundColor:i.tokens.colorNeutralStroke1,marginTop:`6px`}),renderHeaderContent:(0,l.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,alignItems:`stretch`,width:`100%`}),renderHeaderHeader:(0,l.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,padding:`10px`,gap:`20px`}),renderHeaderFooter:(0,l.css)({display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,padding:`20px`,gap:`20px`}),renderHeaderBody:(0,l.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,padding:`20px`,gap:`20px`}),renderHeaderTitleContainer:(0,l.css)({display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignContent:`center`,alignItems:`center`,width:`100%`}),renderHeaderTitle:(0,l.css)({display:`-webkit-box`,WebkitLineClamp:`1`,WebkitBoxOrient:`vertical`,textAlign:`start`,textOverflow:`ellipsis`,paddingTop:0,wordBreak:`break-word`}),renderHeaderDescription:(0,l.css)({display:`-webkit-box`,WebkitLineClamp:`4`,WebkitBoxOrient:`vertical`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`}),dialogTitleAndDescriptionContainer:(0,l.css)({display:`flex`,flexDirection:`column`,justifyContent:`start`,alignItems:`start`,paddingLeft:`10px`,paddingRight:`20px`,width:`100%`})}),ms=({isOpen:e,options:r,onClose:i})=>{let{log:a}=z(),[o,s]=(0,t.useState)(void 0);a(o||``);let c=(0,t.useRef)(null),[l,u]=(0,t.useState)(400),{siteUrl:d,listId:f,itemId:p,name:m}=r,h=(0,t.useCallback)(()=>{i()},[i]),g=(0,t.useCallback)(e=>{if(e.origin!==window.location.origin)return;a(`Message from iframe:`,e.data);let{name:t,height:n}=JSON.parse(e.data);switch(t){case`share_dismiss`:h();break;case`share_resize`:u(n);break;case`share_scriptsLoaded`:break;case`share_uiReady`:break;case`share_ready`:break;default:break}},[h]);return(0,t.useEffect)(()=>(window.addEventListener(`message`,g),()=>{window.removeEventListener(`message`,g)}),[g]),(0,t.useEffect)(()=>{if(e){let e=new Date().getTime(),t=encodeURIComponent(window.location.origin),n=`${d}/_layouts/15/sharedialog.aspx?listId=${f}&listItemId=${p}&clientId=sharePoint&policyTip=0&folderColor=&clickTime=${e}&ma=0&fullScreenMode=false&itemName= ${encodeURIComponent(m)}&channelId=&origin=${t}`;a(n),s(n)}else s(void 0)},[e,d,f,p]),(0,n.jsx)(us,{isOpen:e,onDismiss:h,maxHeight:`fit-content`,children:(0,n.jsx)(`iframe`,{ref:c,src:o||``,title:`Share dialog`,style:{width:`100%`,height:l,border:`none`},onLoad:()=>a(`Iframe loaded`)})})},hs=()=>(0,t.useMemo)(()=>({container:(0,l.css)({display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`200px`,textAlign:`center`,backgroundColor:i.tokens.colorNeutralBackground1,border:`1px solid ${i.tokens.colorNeutralStroke2}`,borderRadius:i.tokens.borderRadiusLarge,padding:`${i.tokens.spacingVerticalXXL} ${i.tokens.spacingHorizontalXXL}`,boxShadow:i.tokens.shadow4,maxWidth:`500px`,margin:`20px auto`}),icon:(0,l.css)({fontSize:`48px`,color:i.tokens.colorPaletteRedForeground1,animation:`pulse 2s infinite`,"@keyframes pulse":{"0%":{transform:`scale(1)`},"50%":{transform:`scale(1.05)`},"100%":{transform:`scale(1)`}}}),title:(0,l.css)({color:i.tokens.colorNeutralForeground1,fontWeight:i.tokens.fontWeightSemibold,textAlign:`center`}),message:(0,l.css)({color:i.tokens.colorNeutralForeground2,textAlign:`center`,lineHeight:i.tokens.lineHeightBase400})}),[]),gs=({title:e,message:t})=>{let r=hs();return(0,n.jsx)(i.Card,{className:r.container,role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`,children:(0,n.jsxs)(H,{gap:`l`,alignItems:`center`,children:[(0,n.jsx)(d.ErrorCircleRegular,{className:r.icon,"aria-hidden":`true`,focusable:!1}),(0,n.jsxs)(H,{gap:`s`,alignItems:`center`,children:[(0,n.jsx)(i.Title3,{className:r.title,children:e}),(0,n.jsx)(i.Body1,{className:r.message,children:t})]})]})})},_s=(0,i.makeStyles)({root:{display:`flex`,flexDirection:`row`,justifyContent:`center`,alignItems:`center`,...i.shorthands.padding(`10px`),gap:`10px`},iconClass:{width:`32px`,height:`32px`},errorContainer:{display:`flex`,flexDirection:`row`,justifyContent:`start`,alignItems:`center`,gap:`10px`,...i.shorthands.padding(`10px`),backgroundColor:i.tokens.colorStatusDangerBackground1},errorIcon:{height:`100%`}}),vs=e=>{let{messageType:r,children:a,message:o}=e,s=_s(),[c,l]=t.useState(null),u=t.useCallback(()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(`div`,{className:s.errorContainer,role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`,children:[(0,n.jsx)(`div`,{className:s.errorIcon,children:(0,n.jsx)(p.Icon,{icon:`fluent:error-circle-12-regular`,width:`32`,height:`32`,color:i.tokens.colorStatusDangerForeground1,"aria-hidden":`true`,focusable:`false`})}),(0,n.jsx)(i.Body1,{children:o})]})}),[o,s.errorContainer,s.errorIcon]);return t.useEffect(()=>{switch(r){case te.SUCCESS:l((0,n.jsx)(d.CheckmarkCircle32Regular,{primaryFill:i.tokens.colorStatusSuccessForeground1}));break;case te.INFO:l((0,n.jsx)(d.Info32Regular,{primaryFill:i.tokens.colorStatusWarningForeground1}));break;default:break}},[r]),r===te.ERROR?(0,n.jsx)(u,{}):(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(`div`,{className:s.root,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:[c,(0,n.jsx)(i.Body1Strong,{children:o}),a]})})},ys=()=>({container:(0,l.css)({display:`flex`,flexWrap:`nowrap`,minWidth:0,overflow:`hidden`,gap:10,marginBottom:20,width:`100%`}),text1LineStyle:(0,l.css)({display:`-webkit-box`,WebkitLineClamp:1,WebkitBoxOrient:`vertical`,overflow:`hidden`,textAlign:`start`,textOverflow:`ellipsis`,wordBreak:`break-word`}),button:(0,l.css)({cursor:`pointer`,minWidth:107})}),bs=({items:e,selectedItemId:r,onSelectedItem:a,renderControl:o,theme:s})=>{let c=ys(),l=t.useCallback(e=>{a&&a(e)},[a]);return(0,n.jsx)(i.Overflow,{children:(0,n.jsxs)(i.FluentProvider,{theme:s,children:[` `,(0,n.jsxs)(`div`,{className:(0,i.mergeClasses)(c.container),role:`toolbar`,"aria-label":`Control bar`,children:[e.map(e=>{let t=e.id===r;return(0,n.jsx)(i.OverflowItem,{id:e.id,priority:t?2:1,children:o(e,t,()=>l(e.id))},e.id)}),(0,n.jsx)(Ss,{items:e,onSelectedItem:l,theme:s}),` `]})]})})},xs=({item:e,onSelectedItem:t})=>(0,i.useIsOverflowItemVisible)(e.id)?null:(0,n.jsx)(i.MenuItem,{icon:e.icon,onClick:()=>t(e.id),children:(0,n.jsx)(`div`,{children:e.name})},e.id),Ss=({items:e,onSelectedItem:r,theme:a})=>{let{ref:o,overflowCount:s,isOverflowing:c}=(0,i.useOverflowMenu)(),l=t.useMemo(()=>(0,d.bundleIcon)(d.MoreHorizontalFilled,d.MoreHorizontalRegular),[]);return c?(0,n.jsx)(i.IdPrefixProvider,{value:`menu-over-`,children:(0,n.jsx)(i.FluentProvider,{theme:a,children:(0,n.jsxs)(i.Menu,{children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{appearance:`transparent`,ref:o,icon:(0,n.jsx)(l,{}),"aria-label":`${s} more options`,role:`button`})}),(0,n.jsx)(i.MenuPopover,{children:(0,n.jsx)(i.MenuList,{children:e.map(e=>(0,n.jsx)(xs,{item:e,onSelectedItem:r},e.id))})})]})})}):null},Cs=({id:e,children:t})=>(0,i.useIsOverflowItemVisible)(e)?null:(0,n.jsx)(i.MenuItem,{children:t}),ws=({items:e,renderItem:t,keyExtractor:r})=>{let{ref:a,overflowCount:o,isOverflowing:s}=(0,i.useOverflowMenu)();return s?(0,n.jsxs)(i.Menu,{children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsxs)(i.MenuButton,{ref:a,"aria-label":`+${o} more items`,children:[`+`,o,` items`]})}),(0,n.jsx)(i.MenuPopover,{children:(0,n.jsx)(i.MenuList,{children:e.map(e=>(0,n.jsx)(Cs,{id:r(e),children:t(e)},r(e)))})})]}):null},Ts=t.default.memo(({items:e,open:r=!0,defaultOpen:a,drawerType:o=`inline`,size:s=`small`,appItem:c,header:l,footer:u,selectedKey:d,defaultSelectedKey:f,selectedCategoryKey:p,onNavigate:m,multiple:h=!0,density:g=`medium`,defaultOpenCategories:_,openCategories:v,onCategoryToggle:y,className:b,style:x})=>{let S=t.default.useMemo(()=>{let t=new Map,n=e=>{for(let r of e)t.set(r.key,r),r.children&&n(r.children)};return n(e),t},[e]),C=(0,t.useCallback)(e=>t=>{e.href&&t.preventDefault(),m?.(e.key,e.href)},[m]),w=(0,t.useCallback)((e,t)=>{if(!m)return;let n=S.get(t.value);n&&m(t.value,n.href)},[m,S]),T=(0,t.useCallback)((e,t)=>{y?.(t.value)},[y]),E=e=>(0,n.jsx)(i.NavItem,{value:e.key,href:e.href,icon:e.icon,onClick:C(e),children:e.name},e.key),D=e=>(0,n.jsxs)(i.NavCategory,{value:e.key,children:[(0,n.jsx)(i.NavCategoryItem,{icon:e.icon,children:e.name}),(0,n.jsx)(i.NavSubItemGroup,{children:e.children.map(e=>e.icon?(0,n.jsx)(i.NavItem,{value:e.key,href:e.href,icon:e.icon,onClick:C(e),children:e.name},e.key):(0,n.jsx)(i.NavSubItem,{value:e.key,href:e.href,onClick:C(e),children:e.name},e.key))})]},e.key),O=e=>(0,n.jsxs)(t.default.Fragment,{children:[(0,n.jsx)(i.NavSectionHeader,{children:e.name}),e.children.map(e=>e.children&&e.children.length>0?D(e):E(e))]},e.key);return(0,n.jsxs)(i.NavDrawer,{open:r,defaultOpen:a,type:o,size:s,className:b,style:t.default.useMemo(()=>({flexShrink:0,...x}),[x]),selectedValue:d,defaultSelectedValue:f,selectedCategoryValue:p,multiple:h,density:g,defaultOpenCategories:_,openCategories:v,onNavItemSelect:w,onNavCategoryItemToggle:T,children:[l!==void 0&&(0,n.jsx)(i.NavDrawerHeader,{children:l}),(0,n.jsxs)(i.NavDrawerBody,{children:[c&&(c.href?(0,n.jsx)(i.AppItem,{icon:c.icon,href:c.href,children:c.name}):(0,n.jsx)(i.AppItemStatic,{icon:c.icon,children:c.name})),e.map(e=>e.isSectionHeader&&e.children&&e.children.length>0?O(e):e.children&&e.children.length>0?D(e):E(e))]}),u!==void 0&&(0,n.jsx)(i.NavDrawerFooter,{children:u})]})});Ts.displayName=`Navigation`;var Es=()=>({root:(0,l.css)({width:`100%`}),sectionHeader:(0,l.css)({color:i.tokens.colorNeutralForeground3,fontSize:i.tokens.fontSizeBase200,fontWeight:i.tokens.fontWeightSemibold,padding:`${i.tokens.spacingVerticalS} ${i.tokens.spacingHorizontalM}`,textTransform:`uppercase`,letterSpacing:`0.5px`})}),Ds=e=>({videoPlayerContainer:(0,l.css)({position:`relative`,width:e.width,height:e.height}),reactPlayer:(0,l.css)({position:`absolute`,top:0,left:0,width:`100%`,height:`100%`}),playButton:(0,l.css)({position:`absolute`,left:`50%`,top:`50%`,zIndex:1,userSelect:`none`})}),Os=e=>{let{url:r,controls:i=!0,width:a=`100%`,height:o=`100%`,loop:s=!1,muted:c=!1}=e,[l,u]=(0,t.useState)(!1),d=Ds(e);return(0,n.jsx)(`div`,{className:d.videoPlayerContainer,role:`region`,"aria-label":`Video player`,children:(0,n.jsx)(C.default,{url:r,controls:i,width:a,height:o,playing:l,loop:s,muted:c,onPause:()=>u(!1),onPlay:()=>u(!0),className:d.reactPlayer})})},ks=`.maplibregl-map{-webkit-tap-highlight-color:#0000;font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;position:relative;overflow:hidden}.maplibregl-canvas{position:absolute;top:0;left:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;z-index:2;position:absolute}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px buttontext}}.maplibregl-ctrl-group button{box-sizing:border-box;cursor:pointer;background-color:#0000;border:0;outline:none;width:29px;height:29px;padding:0;display:block}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;width:100%;height:100%;display:block}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:#0000}.maplibregl-ctrl-group button+button{border-top:1px solid buttontext}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}}.maplibregl-ctrl button:not(:disabled):active{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23333' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2333b5e5' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:2s linear infinite maplibregl-spin}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{cursor:pointer;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;width:88px;height:23px;margin:0 0 -4px -4px;display:block;overflow:hidden}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:#0000;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{box-sizing:content-box;color:#000;background-color:#fff;border-radius:12px;min-height:20px;margin:10px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{visibility:visible;padding:2px 28px 2px 8px}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{box-sizing:border-box;cursor:pointer;background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;outline:none;width:24px;height:24px;display:none;position:absolute;top:0;right:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{box-sizing:border-box;color:#333;white-space:nowrap;background-color:#ffffffbf;border:2px solid #333;border-top:#333;padding:0 5px;font-size:10px}.maplibregl-popup{pointer-events:none;will-change:transform;display:flex;position:absolute;top:0;left:0}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{z-index:1;border:10px solid #0000;width:0;height:0}.maplibregl-popup-anchor-top .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;align-self:center}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;border-left:none;align-self:flex-start}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;border-right:none;align-self:flex-end}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;align-self:center}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;border-left:none;align-self:flex-start}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;border-right:none;align-self:flex-end}.maplibregl-popup-anchor-left .maplibregl-popup-tip{border-left:none;border-right-color:#fff;align-self:center}.maplibregl-popup-anchor-right .maplibregl-popup-tip{border-left-color:#fff;border-right:none;align-self:center}.maplibregl-popup-close-button{cursor:pointer;background-color:#0000;border:0;border-radius:0 3px 0 0;position:absolute;top:0;right:0}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{pointer-events:auto;background:#fff;border-radius:3px;padding:15px 10px;position:relative;box-shadow:0 1px 2px #0000001a}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{will-change:transform;transition:opacity .2s;position:absolute;top:0;left:0}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;width:15px;height:15px}.maplibregl-user-location-dot:before{content:"";animation:2s infinite maplibregl-user-location-dot-pulse;position:absolute}.maplibregl-user-location-dot:after{box-sizing:border-box;content:"";border:2px solid #fff;border-radius:50%;width:19px;height:19px;position:absolute;top:-2px;left:-2px;box-shadow:0 0 3px #00000059}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;width:1px;height:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{opacity:.5;background:#fff;border:2px dotted #202020;width:0;height:0;position:absolute;top:0;left:0}.maplibregl-cooperative-gesture-screen{color:#fff;opacity:0;pointer-events:none;z-index:99999;background:#0006;justify-content:center;align-items:center;padding:1rem;font-size:1.4em;line-height:1.2;transition:opacity 1s 1s;display:flex;position:absolute;inset:0}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity 50ms}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{z-index:99999;width:100%!important;height:100%!important;position:fixed!important;top:0!important;left:0!important}`,As=`spteck-react-controls-maplibre-styles`,js=e=>{let t=e??(typeof document<`u`?document:void 0);if(!t||t.getElementById(As))return;let n=t.createElement(`style`);n.id=As,n.textContent=ks,t.head.appendChild(n)},Ms=l.css`
|
|
160
160
|
position: absolute;
|
|
161
161
|
top: 16px;
|
|
162
162
|
right: 16px;
|
|
@@ -167,13 +167,13 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
|
|
|
167
167
|
padding: 4px;
|
|
168
168
|
display: flex;
|
|
169
169
|
gap: 8px;
|
|
170
|
-
`,Ms=l.css`
|
|
171
|
-
flex-direction: column;
|
|
172
170
|
`,Ns=l.css`
|
|
171
|
+
flex-direction: column;
|
|
172
|
+
`,Ps=l.css`
|
|
173
173
|
min-width: 32px;
|
|
174
174
|
min-height: 32px;
|
|
175
175
|
${i.shorthands.padding(`4px`)}
|
|
176
|
-
`,
|
|
176
|
+
`,Fs=({mapRef:r,initialViewState:a={longitude:0,latitude:20,zoom:1},vertical:o=!0})=>{let s=t.useCallback(()=>{r.current?.getMap().zoomIn()},[r]),c=t.useCallback(()=>{r.current?.getMap().zoomOut()},[r]),l=t.useCallback(()=>{r.current?.flyTo({center:[a.longitude,a.latitude],zoom:a.zoom,essential:!0})},[r,a]),u=e.C();return(0,n.jsxs)(`div`,{className:o?`${Ms} ${Ns}`:Ms,children:[(0,n.jsx)(i.Tooltip,{content:u.zoomIn,relationship:`label`,children:(0,n.jsx)(i.Button,{appearance:`subtle`,icon:(0,n.jsx)(d.ZoomIn24Regular,{}),"aria-label":u.zoomIn,className:Ps,onClick:s})}),(0,n.jsx)(i.Tooltip,{content:u.zoomOut,relationship:`label`,children:(0,n.jsx)(i.Button,{appearance:`subtle`,icon:(0,n.jsx)(d.ZoomOut24Regular,{}),"aria-label":u.zoomOut,className:Ps,onClick:c})}),(0,n.jsx)(i.Tooltip,{content:u.resetMap,relationship:`label`,children:(0,n.jsx)(i.Button,{appearance:`subtle`,icon:(0,n.jsx)(d.ArrowReset24Regular,{}),"aria-label":u.reset,className:Ps,onClick:l})})]})},Is=l.css`
|
|
177
177
|
width: 32px;
|
|
178
178
|
height: 20px;
|
|
179
179
|
border-radius: 4px;
|
|
@@ -182,25 +182,25 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
|
|
|
182
182
|
cursor: pointer;
|
|
183
183
|
display: block;
|
|
184
184
|
margin: 0 auto;
|
|
185
|
-
`,
|
|
185
|
+
`,Ls=l.css`
|
|
186
186
|
padding: 12px;
|
|
187
187
|
min-width: 120px;
|
|
188
188
|
display: flex;
|
|
189
189
|
flex-direction: column;
|
|
190
190
|
align-items: center;
|
|
191
191
|
gap: 6px;
|
|
192
|
-
`,
|
|
192
|
+
`,Rs=l.css`
|
|
193
193
|
font-weight: 600;
|
|
194
194
|
text-align: center;
|
|
195
195
|
margin-top: 6px;
|
|
196
|
-
`,Rs=({data:e,flagClass:t,onClick:r})=>(0,n.jsx)(i.Tooltip,{relationship:`label`,content:(0,n.jsxs)(i.Card,{className:Is,children:[(0,n.jsx)(`img`,{src:e.imageUrl,alt:e.name,className:Fs}),(0,n.jsx)(i.Text,{className:Ls,children:e.name})]}),withArrow:!0,positioning:`above`,children:(0,n.jsx)(`img`,{src:e.imageUrl,alt:e.name,className:t||Fs,role:`button`,tabIndex:0,onClick:()=>r?.(e),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),r?.(e))}})}),zs=e=>{let[n,r]=(0,t.useState)(void 0),{error:i}=z();return(0,t.useEffect)(()=>{let t=!1;return(async()=>{try{let n=await(await fetch(e)).json();t||r(n)}catch(e){i(`Error loading style:`,e instanceof Error?e:void 0)}})(),()=>{t=!0}},[e]),n},Bs=e=>({defaultMapStyles:(0,t.useMemo)(()=>({width:`100%`,height:`600px`,fontFamily:i.tokens.fontFamilyBase}),[]),flagClass:(0,t.useMemo)(()=>(0,l.css)({width:`32px`,height:`20px`,border:`1px solid ${i.tokens.colorNeutralBackground1}`,borderRadius:i.tokens.borderRadiusSmall,boxShadow:i.tokens.shadow4,transition:`transform 0.1s ease`}),[])}),Vs=`https://api.maptiler.com/maps/topo-v2/style.json?key=fYK99t1qjkKbINH0saMD`,Hs=({data:r,onClick:a,mapStyleUrl:o=Vs,style:s,fitPadding:c=20})=>{As();let l=(0,t.useRef)(null),u=zs(o),d=r,{defaultMapStyles:f,flagClass:p}=Bs(),m=e.C();return(0,t.useEffect)(()=>{if(!l.current||d.length===0)return;let e=d.map(e=>e.coordinates[0]),t=d.map(e=>e.coordinates[1]);l.current.getMap().fitBounds([[Math.min(...e),Math.min(...t)],[Math.max(...e),Math.max(...t)]],{padding:c})},[d,c]),u?(0,n.jsxs)(w.default,{ref:l,initialViewState:{longitude:0,latitude:20,zoom:1},style:{...s??f},mapStyle:u,pixelRatio:window.devicePixelRatio,children:[(0,n.jsx)(Ps,{mapRef:l,initialViewState:{longitude:0,latitude:20,zoom:1}}),d.map(e=>(0,n.jsx)(w.Marker,{longitude:e.coordinates[0],latitude:e.coordinates[1],anchor:`center`,children:(0,n.jsx)(Rs,{data:e,onClick:a,flagClass:p})},e.id))]}):(0,n.jsx)(i.Text,{children:m.loadingMapStyle})},Us=function(e){return e[e.SharePoint=0]=`SharePoint`,e[e.Teams=1]=`Teams`,e[e.TeamsDark=2]=`TeamsDark`,e[e.TeamsHighContrast=3]=`TeamsHighContrast`,e}({}),Ws=(e,t)=>{let n=(0,E.create)();n.put(`.${t}-ac-container:focus`,{outline:`none !important`}),n.put(`.${t}-ac-adaptiveCard:focus`,{outline:`none !important`}),n.put(`.${t}-ac-pushButton`,{overflow:`hidden`,textOverflow:`ellipsis`,textAlign:`center`,verticalAlign:`middle`,cursor:`pointer`,fontFamily:`inherit`,fontSize:`14px`,fontWeight:`600`,padding:`4px 10px 5px 10px`,WebkitUserSelect:`none`,MozUserSelect:`none`,MsUserSelect:`none`,userSelect:`none`,height:`32px`,borderRadius:`2px`,border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground1,color:e.colorNeutralForeground1}),n.put(`.${t}-ac-pushButton:hover`,{border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground2,color:e.colorNeutralForeground2}),n.put(`.${t}-ac-pushButton:active`,{border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground3,color:e.colorNeutralForeground3}),n.put(`.${t}-ac-pushButton-disabled`,{overflow:`hidden`,textOverflow:`ellipsis`,textAlign:`center`,verticalAlign:`middle`,cursor:`pointer`,fontFamily:`inherit`,fontSize:`14px`,fontWeight:`600`,padding:`4px 10px 5px 10px`,WebkitUserSelect:`none`,MozUserSelect:`none`,MsUserSelect:`none`,userSelect:`none`,height:`32px`,borderRadius:`2px`,border:`1px solid ${e.colorNeutralStrokeDisabled}`,backgroundColor:e.colorNeutralBackgroundDisabled,color:e.colorNeutralForegroundDisabled}),n.put(`.${t}-ac-ctrl-overlay`,{fontFamily:e.fontFamilyBase,position:`absolute`,left:`0`,top:`0`,zIndex:`10000`}),n.put(`.${t}-ac-ctrl`,{boxSizing:`border-box`,fontSize:`14px`,fontWeight:`normal`}),n.put(`.${t}-ac-ctrl-popup-container`,{backgroundColor:e.colorNeutralBackground1,position:`absolute`,overflowY:`auto`,boxShadow:`0px 3.2px 7.2px rgba(0,0,0,0.13), 0px 0.6px 1.8px rgba(0,0,0,0.11)`,borderRadius:`2px`}),n.put(`.${t}-ac-ctrl-popup-container:focus`,{outline:`0`}),n.put(`.${t}-ac-ctrl-slide`,{animationDuration:`0.5s`,animationTimingFunction:`cubic-bezier(0.1, 0.9, 0.2, 1)`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideTopToBottom`,{animationName:`fadeIn, slideTopToBottom`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideBottomToTop`,{animationName:`fadeIn, slideBottomToTop`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideLeftToRight`,{animationName:`fadeIn, slideLeftToRight`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideRightToLeft`,{animationName:`fadeIn, slideRightToLeft`}),n.put(`.${t}-ac-ctrl-dropdown-item`,{width:`100%`,textOverflow:`ellipsis`,overflow:`hidden`,whiteSpace:`nowrap`,display:`block`,padding:`0px 12px`,lineHeight:`30px`,cursor:`pointer`,backgroundColor:e.colorNeutralBackground1,color:e.colorNeutralForeground1}),n.put(`.${t}-ac-ctrl-dropdown-item:hover`,{backgroundColor:e.colorNeutralBackground2,color:e.colorNeutralForeground2}),n.put(`.${t}-ac-ctrl-dropdown-item:focus`,{outline:`0`,backgroundColor:e.colorNeutralBackground3,color:e.colorNeutralForeground3}),n.put(`.${t}-ac-ctrl-dropdown-item-disabled`,{width:`100%`,textOverflow:`ellipsis`,overflow:`hidden`,whiteSpace:`nowrap`,display:`block`,padding:`0px 12px`,lineHeight:`30px`,cursor:`pointer`,backgroundColor:e.colorNeutralBackgroundDisabled,color:e.colorNeutralForegroundDisabled})},Gs=e=>new T.HostConfig({fontFamily:e.fontFamilyBase,separator:{lineThickness:1,lineColor:e.colorNeutralStroke2},containerStyles:{default:{backgroundColor:e.colorNeutralBackground1,foregroundColors:{default:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},dark:{default:e.colorNeutralForeground3,subtle:e.colorNeutralForeground4},light:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},accent:{default:e.colorBrandForeground1,subtle:e.colorBrandForeground2},attention:{default:e.colorPaletteRedBackground3,subtle:e.colorPaletteRedBackground2},good:{default:e.colorPaletteGreenBackground3,subtle:e.colorPaletteGreenBackground2},warning:{default:e.colorPaletteYellowBackground3,subtle:e.colorPaletteYellowBackground2}}},emphasis:{backgroundColor:e.colorNeutralBackground3,foregroundColors:{default:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},dark:{default:e.colorNeutralForeground3,subtle:e.colorNeutralForeground4},light:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},accent:{default:e.colorBrandForeground1,subtle:e.colorBrandForeground2},attention:{default:e.colorPaletteRedBackground3,subtle:e.colorPaletteRedBackground2},good:{default:e.colorPaletteGreenBackground3,subtle:e.colorPaletteGreenBackground2},warning:{default:e.colorPaletteYellowBackground3,subtle:e.colorPaletteYellowBackground2}}}},inputs:{label:{requiredInputs:{weight:`bold`},optionalInputs:{weight:`bold`}},errorMessage:{color:`attention`,weight:`bold`}},actions:{buttonSpacing:10,actionAlignment:`right`}}),Ks=`fluentUITheme`,qs=(e,t)=>{e.hostCapabilities.setCustomProperty(Ks,t)},Js=e=>{let t=e.hostCapabilities.getCustomProperty(Ks);return t||=i.webLightTheme,t},Ys=(e,t)=>{let n;switch(e){case Us.SharePoint:n={theme:t,hostConfig:Gs(t)};break;case Us.Teams:n={theme:i.teamsLightTheme,hostConfig:Gs(i.teamsLightTheme)};break;case Us.TeamsDark:n={theme:i.teamsDarkTheme,hostConfig:Gs(i.teamsDarkTheme)};break;case Us.TeamsHighContrast:n={theme:i.teamsHighContrastTheme,hostConfig:Gs(i.teamsHighContrastTheme)};break;default:n={theme:t,hostConfig:Gs(t)};break}return n.hostConfig.cssClassNamePrefix=`ach${Math.random().toString().replace(/\./g,``)}`,qs(n.hostConfig,n.theme),Ws(n.theme,n.hostConfig.cssClassNamePrefix),n},Xs=e=>{T.AdaptiveCard.onProcessMarkdown||(T.AdaptiveCard.onProcessMarkdown=(t,n)=>{n.outputHtml=new D.default().render(t),n.didProcess=!0;try{n.outputHtml=new D.default().render(t),n.didProcess=!0}catch(t){e&&e(`AdaptiveCardHost: Error parsing Markdown`,t instanceof Error?t:void 0),n.didProcess=!1}})},Zs=(e,t,n)=>{let r,i;return i=n?{theme:t,aadInfo:n?.pageContext?.aadInfo?{instanceUrl:n.pageContext.aadInfo.instanceUrl||``,tenantId:n.pageContext.aadInfo.tenantId||``,userId:n.pageContext.aadInfo.userId||``}:void 0,cultureInfo:n?.pageContext?.cultureInfo?{currentCultureName:n.pageContext.cultureInfo.currentCultureName,currentUICultureName:n.pageContext.cultureInfo.currentUICultureName,isRightToLeft:n.pageContext.cultureInfo.isRightToLeft||!1}:void 0,userInfo:n?.pageContext?.user?{displayName:n.pageContext.user.displayName,email:n.pageContext.user.email,isAnonymousGuestUser:n.pageContext.user.isAnonymousGuestUser||!1,isExternalGuestUser:n.pageContext.user.isExternalGuestUser||!1,loginName:n.pageContext.user.loginName,preferUserTimeZone:n.pageContext.user.preferUserTimeZone||!1}:void 0,spListInfo:n?.pageContext?.list?{id:n.pageContext.list.id,serverRelativeUrl:n.pageContext.list.serverRelativeUrl||``,title:n.pageContext.list.title}:void 0,spListItemInfo:n?.pageContext?.listItem?{id:n.pageContext.listItem.id.toString()}:void 0,spSiteInfo:n?.pageContext?.site?{absoluteUrl:n.pageContext.site.absoluteUrl,cdnPrefix:n.pageContext.site.cdnPrefix||``,classification:n.pageContext.site.classification||``,correlationId:n.pageContext.site.correlationId||``,id:n.pageContext.site.id,isNoScriptEnabled:n.pageContext.site.isNoScriptEnabled||!1,recycleBinItemCount:n.pageContext.site.recycleBinItemCount||0,serverRelativeUrl:n.pageContext.site.serverRelativeUrl||``,serverRequestPath:n.pageContext.site.serverRequestPath||``,sitePagesEnabled:n.pageContext.site.sitePagesEnabled||!1}:void 0,spWebInfo:n?.pageContext?.web?{absoluteUrl:n.pageContext.web.absoluteUrl,id:n.pageContext.web.id,isAppWeb:n.pageContext.web.isAppWeb||!1,language:n.pageContext.web.language||0,languageName:n.pageContext.web.languageName||``,logoUrl:n.pageContext.web.logoUrl||``,serverRelativeUrl:n.pageContext.web.serverRelativeUrl||``,templateName:n.pageContext.web.templateName||``,title:n.pageContext.web.title,description:n.pageContext.web.description||``}:void 0}:{theme:t},r=e?{$root:{...e?.$root,"@context":i}}:{$root:{"@context":i}},r};function Qs(e){return(0,O.createRoot)(e)}var $s=e=>{let t;return t=e.iconUrl?(0,n.jsx)(i.Button,{className:e.className,onClick:e.actionClickHandler,appearance:`primary`,children:(0,n.jsxs)(`div`,{style:{display:`flex`,flexDirection:e.iconPlacement===A.ActionIconPlacement.LeftOfTitle?`row`:`column`,justifyContent:`center`,alignItems:`center`},children:[(0,n.jsx)(`img`,{src:e.iconUrl,style:{width:e.iconSize,height:e.iconSize,flexShrink:0,marginRight:e.iconPlacement===A.ActionIconPlacement.LeftOfTitle?4:0,marginBottom:e.iconPlacement===A.ActionIconPlacement.LeftOfTitle?0:4},alt:``}),(0,n.jsx)(`span`,{children:e.text})]})}):e.style.toLocaleLowerCase().trim()===`positive`||e.style.toLocaleLowerCase().trim()===`destructive`?(0,n.jsx)(i.Button,{className:e.className,onClick:e.actionClickHandler,appearance:`primary`,children:e.text}):(0,n.jsx)(i.Button,{className:e.className,onClick:e.actionClickHandler,children:e.text}),t},ec=(e,t,r,a,o,s,c,l)=>{let u=document.createElement(`div`);u.className=`fluentUI`;let d=Qs(u);d.render((0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:l,children:(0,n.jsx)($s,{text:e,className:r,iconUrl:t,iconPlacement:a,iconSize:o,actionClickHandler:s,style:c,theme:l})})}));let f=new MutationObserver(e=>{for(let t of e)for(let e of Array.from(t.removedNodes))if(e===u||u.contains(e)){d.unmount(),f.disconnect();return}});if(u.parentNode)f.observe(u.parentNode,{childList:!0});else{let e=new MutationObserver(()=>{u.parentNode&&(f.observe(u.parentNode,{childList:!0}),e.disconnect())});e.observe(document.body,{childList:!0,subtree:!0})}return u},tc=class extends k.ExecuteAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Ks),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=ec(this.title??``,this.iconUrl||``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},nc=class extends k.OpenUrlAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Ks),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=ec(this.title??``,this.iconUrl||``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},rc=class extends k.ShowCardAction{updateCssClasses(){if(this.renderedElement){let e=this.state===1;this.renderedElement.setAttribute(`aria-expanded`,e.toString())}}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=ec(this.title||`Default Title`,this.iconUrl||``,this.iconUrl??``,t.iconPlacement,t.iconSize,this.actionClickHandler,this.style)}},ic=class extends k.SubmitAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Ks),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=ec(this.title??``,this.iconUrl??``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},ac=class extends k.ToggleVisibilityAction{updateCssClasses(){if(this.renderedElement){let e=this.state===1;this.renderedElement.setAttribute(`aria-expanded`,e.toString())}}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Ks),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=ec(this.title??``,this.iconUrl??``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}};function oc(e){e.register(`Action.Submit`,ic),e.register(`Action.OpenUrl`,nc),e.register(`Action.ShowCard`,rc),e.register(`Action.ToggleVisibility`,ac),e.register(`Action.Execute`,tc)}var sc=e=>{let t=document.createElement(`div`);return Qs(t).render(e()),t};function Q(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function $(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var cc=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_5,`value`);static choicesProperty=new T.SerializableObjectCollectionProperty(T.Versions.v1_5,`choices`,T.Choice);static styleProperty=new T.ValueSetProperty(T.Versions.v1_5,`style`,[{value:`compact`},{value:`expanded`},{value:`filtered`,targetVersion:T.Versions.v1_5}],`compact`);static isMultiSelectProperty=new T.BoolProperty(T.Versions.v1_5,`isMultiSelect`,!1);static placeholderProperty=new T.StringProperty(T.Versions.v1_5,`placeholder`);static wrapProperty=new T.BoolProperty(T.Versions.v1_5,`wrap`,!1);defaultValue;style;get isCompact(){return!this.style||this.style===`compact`}set isCompact(e){this.style=e?void 0:`expanded`}isMultiSelect=!1;placeholder;wrap=!1;choices=[];element;refControl;selectedValues=[];defaultSelectedValues=[];updateSelectedValues=(e,t,n)=>{t?n?this.selectedValues.includes(e)||this.selectedValues.push(e):this.removeItemFromArray(this.selectedValues,e):this.selectedValues=[e]};removeItemFromArray=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)};internalRender(){let e=Js(this.hostConfig),r=this.choices?this.choices.map(e=>({key:e.value,text:e.title})):[];this.defaultValue&&(this.defaultSelectedValues=this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator),this.selectedValues=[...this.defaultSelectedValues]);let a=()=>{let[e,a]=t.useState(this.selectedValues);return t.useEffect(()=>{a(this.selectedValues)},[this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator)]),(0,n.jsx)(i.Combobox,{style:{width:`100%`},placeholder:this.placeholder,multiselect:this.isMultiSelect,value:this.isMultiSelect?e.map(e=>r.find(t=>t.key===e)?.text).join(this.hostConfig.choiceSetInputValueSeparator):r.find(t=>e[0]===t.key)?.text,selectedOptions:this.isMultiSelect?e:[e[0]],autoComplete:this.style===`filtered`?`on`:`off`,onOptionSelect:(e,t)=>{if(this.isMultiSelect)a(t.selectedOptions),this.selectedValues=t.selectedOptions;else{let e=t.optionValue??``;a([e]),this.selectedValues=[e]}this.valueChanged()},ref:e=>{this.refControl=e},children:r.map(e=>(0,n.jsx)(i.Option,{value:e.key,children:e.text??``},e.key))})};return this.element=sc(()=>(0,n.jsxs)(n.Fragment,{children:[!this.isMultiSelect&&this.style===`expanded`&&(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:(0,n.jsx)(i.RadioGroup,{defaultValue:this.defaultValue,onChange:(e,t)=>{this.updateSelectedValues(t.value,this.isMultiSelect,!0),this.valueChanged()},ref:e=>{this.refControl=e},children:this.choices.map((e,t)=>(0,n.jsx)(i.Radio,{value:e.value,label:e.title,style:{marginTop:t>0?this.hostConfig.spacing.default:0}},e.value))})})}),this.isMultiSelect&&this.style===`expanded`&&(0,n.jsx)(`div`,{style:{display:`flex`,gap:this.hostConfig.spacing.default},children:this.choices.map((t,r)=>{let a=this.defaultSelectedValues.indexOf(t.value??``)>-1;return(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:(0,n.jsx)(i.Checkbox,{label:t.title,defaultChecked:a,onChange:(e,n)=>{this.updateSelectedValues(t.value??``,this.isMultiSelect,!!n),this.valueChanged()},ref:e=>{r===0&&(this.refControl=e)}})})},t.value)})}),(this.style===`compact`||this.style===`filtered`)&&(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:(0,n.jsx)(a,{})})})]})),this.element.style.width=`100%`,this.element}getJsonTypeName(){return`Input.ChoiceSet`}focus(){this.refControl&&this.refControl.focus&&this.refControl.focus()}internalValidateProperties(e){super.internalValidateProperties(e),this.choices.length===0&&e.addFailure(this,T.ValidationEvent.CollectionCantBeEmpty,T.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(let t of this.choices)(!t.title||!t.value)&&e.addFailure(this,T.ValidationEvent.PropertyCantBeNull,T.Strings.errors.choiceSetChoicesMustHaveTitleAndValue())}isSet(){return!!this.value}isValid(){return this.value?!0:!this.isRequired}get value(){if(this.selectedValues)return this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator)}};$([(0,T.property)(cc.valueProperty),Q(`design:type`,String)],cc.prototype,`defaultValue`,void 0),$([(0,T.property)(cc.styleProperty),Q(`design:type`,String)],cc.prototype,`style`,void 0),$([(0,T.property)(cc.isMultiSelectProperty),Q(`design:type`,Boolean)],cc.prototype,`isMultiSelect`,void 0),$([(0,T.property)(cc.placeholderProperty),Q(`design:type`,String)],cc.prototype,`placeholder`,void 0),$([(0,T.property)(cc.wrapProperty),Q(`design:type`,Boolean)],cc.prototype,`wrap`,void 0),$([(0,T.property)(cc.choicesProperty),Q(`design:type`,Array)],cc.prototype,`choices`,void 0);var lc=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_5,`value`);static placeholderProperty=new T.StringProperty(T.Versions.v1_5,`placeholder`);static minProperty=new T.StringProperty(T.Versions.v1_0,`min`);static maxProperty=new T.StringProperty(T.Versions.v1_0,`max`);defaultValue;min;max;placeholder;_value;refControl;element;internalRender(){let e=Js(this.hostConfig);return this.element=sc(()=>(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:(0,n.jsx)(j.DatePicker,{id:this.id,placeholder:this.placeholder,minDate:this.convertStringToDate(this.min),maxDate:this.convertStringToDate(this.max),onSelectDate:e=>{this._value=e??void 0,this.valueChanged()},ref:e=>{this.refControl=e},style:{width:`100%`}})})})),this.element.style.width=`100%`,this.element}convertStringToDate(e){if(e)try{let t=new Date(e);return isNaN(t.getTime())?void 0:t}catch{return}}getJsonTypeName(){return`Input.Date`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){return!!this.value}isValid(){if(!this.value)return!this.isRequired;let e=new Date(this.value),t=!0;if(this.min){let n=new Date(this.min);t&&=e>=n}if(this.max){let n=new Date(this.max);t&&=e<=n}return t}get value(){if(this._value){let e=this._value.getTimezoneOffset();return new Date(this._value.getTime()-e*60*1e3).toISOString().split(`T`)[0]}}};$([(0,T.property)(lc.valueProperty),Q(`design:type`,String)],lc.prototype,`defaultValue`,void 0),$([(0,T.property)(lc.minProperty),Q(`design:type`,String)],lc.prototype,`min`,void 0),$([(0,T.property)(lc.maxProperty),Q(`design:type`,String)],lc.prototype,`max`,void 0),$([(0,T.property)(lc.placeholderProperty),Q(`design:type`,String)],lc.prototype,`placeholder`,void 0);var uc=class extends T.Input{static valueProperty=new T.NumProperty(T.Versions.v1_5,`value`);static placeholderProperty=new T.StringProperty(T.Versions.v1_5,`placeholder`);static minProperty=new T.NumProperty(T.Versions.v1_0,`min`);static maxProperty=new T.NumProperty(T.Versions.v1_0,`max`);defaultValue;min;max;placeholder;refControl=null;element;internalRender(){let e=Js(this.hostConfig);return this.element=sc(()=>(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:(0,n.jsx)(i.SpinButton,{style:{width:`calc(100% - 10px)`},id:this.id,defaultValue:this.defaultValue===void 0?void 0:this.defaultValue,placeholder:this.placeholder,min:this.min,max:this.max,onChange:()=>{this.valueChanged()},ref:e=>{this.refControl=e}})})})),this.element.style.width=`100%`,this.element}getJsonTypeName(){return`Input.Number`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){let e=this.value;return e!==void 0&&!isNaN(e)}isValid(){let e=this.value;if(e===void 0)return!this.isRequired;let t=!0;return this.min!==void 0&&(t&&=e>=this.min),this.max!==void 0&&(t&&=e<=this.max),t}get value(){return this.refControl?Number(this.refControl.value):void 0}};$([(0,T.property)(uc.valueProperty),Q(`design:type`,Number)],uc.prototype,`defaultValue`,void 0),$([(0,T.property)(uc.minProperty),Q(`design:type`,Number)],uc.prototype,`min`,void 0),$([(0,T.property)(uc.maxProperty),Q(`design:type`,Number)],uc.prototype,`max`,void 0),$([(0,T.property)(uc.placeholderProperty),Q(`design:type`,String)],uc.prototype,`placeholder`,void 0);var dc=e=>{let{ariaLabel:t,iconProps:r,styles:a,className:o,onClick:s,...c}=e;return(0,n.jsx)(i.Button,{appearance:`transparent`,"aria-label":t,className:o,onClick:s,style:a,...c,children:(0,n.jsx)(`img`,{src:r.src,alt:t,style:{height:r.height||`100%`,width:r.width||`auto`}})})},fc={marginLeft:8},pc,mc,hc=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_0,`value`);static maxLengthProperty=new T.NumProperty(T.Versions.v1_0,`maxLength`);static isMultilineProperty=new T.BoolProperty(T.Versions.v1_0,`isMultiline`,!1);static placeholderProperty=new T.StringProperty(T.Versions.v1_0,`placeholder`);static styleProperty=new T.EnumProperty(T.Versions.v1_0,`style`,T.InputTextStyle,T.InputTextStyle.Text);static inlineActionProperty=new T.ActionProperty(T.Versions.v1_0,`inlineAction`,[`Action.ShowCard`]);static regexProperty=new T.StringProperty(T.Versions.v1_3,`regex`,!0);defaultValue;maxLength;isMultiline=!1;placeholder;style=T.InputTextStyle.Text;inlineAction;regex;refControl=null;element;_value=this.defaultValue||``;internalRender(){let e=Js(this.hostConfig);return this.element=sc(()=>(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:this.isMultiline?(0,n.jsx)(i.Textarea,{resize:`vertical`,style:{width:`100%`},id:this.id,defaultValue:this.defaultValue,placeholder:this.placeholder,maxLength:this.maxLength,onChange:(e,t)=>{this._value=t.value,this.valueChanged()},onKeyDown:this.handleKeyDown,ref:e=>{this.refControl=e}}):(0,n.jsx)(i.Input,{id:this.id,style:{width:`100%`},type:T.InputTextStyle[this.style].toLowerCase(),defaultValue:this.defaultValue,placeholder:this.placeholder,maxLength:this.maxLength,onChange:(e,t)=>{this._value=t.value,this.valueChanged()},onKeyDown:this.handleKeyDown,ref:e=>{this.refControl=e?e.inputElement:null}})})})),this.element.style.width=`100%`,this.element}handleKeyDown=e=>{e.key===`Enter`&&this.inlineAction&&this.inlineAction?.execute()};overrideInternalRender(){let e=super.overrideInternalRender();return this.inlineAction&&this.inputControlContainerElement.appendChild(this.buildInlineActionButton()),e||document.createElement(`div`)}buildInlineActionButton=()=>sc(this.inlineAction?.iconUrl?this.inlineIconActionButton:this.buildTextOnlyInlineActionActionButton);inlineActionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.inlineAction?.execute()};inlineIconActionButton=()=>(0,n.jsx)(i.FluentProvider,{theme:this.hostConfig.hostCapabilities.getCustomProperty(Ks),children:(0,n.jsx)(dc,{ariaLabel:this.inlineAction?.title||`Inline action`,className:this.hostConfig.makeCssClassName(`ac-inlineActionButton`,`iconOnly`),iconProps:{src:this.inlineAction?.iconUrl??``},onClick:this.inlineActionClickHandler,styles:fc})});buildTextOnlyInlineActionActionButton=()=>{let e=this.hostConfig.hostCapabilities.getCustomProperty(Ks);return(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:(0,n.jsx)(i.Button,{appearance:`primary`,className:this.hostConfig.makeCssClassName(`ac-inlineActionButton`,`textOnly`),onClick:this.inlineActionClickHandler,style:fc,children:this.inlineAction?.title??``})})})};getJsonTypeName(){return`Input.Text`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}getActionById(e){let t=super.getActionById(e);if(!t&&this.inlineAction&&(t=this.inlineAction.getActionById(e)),!t)throw Error(`Action with id '${e}' not found.`);return t}isSet(){return!!this.value}isValid(){return this.value?this.regex?new RegExp(this.regex,`g`).test(this.value):!0:!this.isRequired}get value(){if(this._value)return this._value}};$([(0,T.property)(hc.valueProperty),Q(`design:type`,String)],hc.prototype,`defaultValue`,void 0),$([(0,T.property)(hc.maxLengthProperty),Q(`design:type`,Number)],hc.prototype,`maxLength`,void 0),$([(0,T.property)(hc.isMultilineProperty),Q(`design:type`,Boolean)],hc.prototype,`isMultiline`,void 0),$([(0,T.property)(hc.placeholderProperty),Q(`design:type`,String)],hc.prototype,`placeholder`,void 0),$([(0,T.property)(hc.styleProperty),Q(`design:type`,typeof(pc=T.InputTextStyle!==void 0&&T.InputTextStyle)==`function`?pc:Object)],hc.prototype,`style`,void 0),$([(0,T.property)(hc.inlineActionProperty),Q(`design:type`,typeof(mc=T.Action!==void 0&&T.Action)==`function`?mc:Object)],hc.prototype,`inlineAction`,void 0),$([(0,T.property)(hc.regexProperty),Q(`design:type`,String)],hc.prototype,`regex`,void 0);var gc=e=>{let{id:r,defaultTime:a,minTime:o,maxTime:s,placeholder:c,theme:l,onTimeChange:u}=e,[f,p]=t.useState(a),[m,h]=t.useState(a?(0,M.formatDateToTimeString)(a??new Date):``);return(0,n.jsx)(i.IdPrefixProvider,{value:r,children:(0,n.jsx)(i.FluentProvider,{theme:l,children:(0,n.jsx)(M.TimePicker,{style:{width:`100%`},expandIcon:(0,n.jsx)(d.ClockRegular,{}),id:r,freeform:!0,min:o?(0,M.formatDateToTimeString)(o):void 0,max:s?(0,M.formatDateToTimeString)(s):void 0,placeholder:c,value:f?(0,M.formatDateToTimeString)(f):m,onTimeChange:(e,t)=>{let n=t.selectedTime??void 0,r=t.selectedTimeText??``;p(n),h(r),u&&n&&u(n,r)},onInput:e=>{h(e.target.value)}})})})},_c=class e extends T.Input{static convertTimeStringToDate(e){return new Date(`1973-09-04T`+e+`:00Z`)}static valueProperty=new T.TimeProperty(T.Versions.v1_0,`value`);static placeholderProperty=new T.StringProperty(T.Versions.v1_0,`placeholder`);static minProperty=new T.TimeProperty(T.Versions.v1_0,`min`);static maxProperty=new T.TimeProperty(T.Versions.v1_0,`max`);defaultValue;min;max;placeholder;_time;element;internalRender(){let t=Js(this.hostConfig),r=this.defaultValue?e.convertTimeStringToDate(this.defaultValue):void 0,i=this.min?e.convertTimeStringToDate(this.min):void 0,a=this.max?e.convertTimeStringToDate(this.max):void 0;return this.element=sc(()=>(0,n.jsx)(gc,{id:(0,T.generateUniqueId)(),defaultTime:r,minTime:i,maxTime:a,placeholder:this.placeholder,theme:t,onTimeChange:e=>{this._time=e,this.valueChanged()}})),this.element.style.width=`100%`,this.element}getJsonTypeName(){return`Input.Time`}focus(){}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){return!!this.value}isValid(){if(!this.value)return!this.isRequired;if(!this._time)return!1;let t=!0;if(this.min){let n=e.convertTimeStringToDate(this.min);t&&=this._time>=n}if(this.max){let n=e.convertTimeStringToDate(this.max);t&&=this._time<=n}return t}get value(){return this._time?(0,M.formatDateToTimeString)(this._time):void 0}};$([(0,T.property)(_c.valueProperty),Q(`design:type`,String)],_c.prototype,`defaultValue`,void 0),$([(0,T.property)(_c.minProperty),Q(`design:type`,String)],_c.prototype,`min`,void 0),$([(0,T.property)(_c.maxProperty),Q(`design:type`,String)],_c.prototype,`max`,void 0),$([(0,T.property)(_c.placeholderProperty),Q(`design:type`,String)],_c.prototype,`placeholder`,void 0);var vc=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_5,`value`);static titleProperty=new T.StringProperty(T.Versions.v1_5,`title`);static valueOnProperty=new T.StringProperty(T.Versions.v1_5,`valueOn`,!0,void 0,`true`,e=>`true`);static valueOffProperty=new T.StringProperty(T.Versions.v1_5,`valueOff`,!0,void 0,`false`,e=>`false`);static wrapProperty=new T.BoolProperty(T.Versions.v1_2,`wrap`,!1);defaultValue;title;valueOn=`true`;valueOff=`false`;wrap=!1;_value;refControl=null;element;internalRender(){let e=Js(this.hostConfig);return this.element=sc(()=>(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,style:{backgroundColor:`transparent`},children:(0,n.jsx)(i.Switch,{id:this.id,label:this.title,onChange:(e,t)=>{this._value=t.checked,this.valueChanged()},defaultChecked:this.defaultValue===this.valueOn,style:{marginBottom:0,marginTop:0},ref:e=>{this.refControl=e}})})})),this.element.style.width=`100%`,this.element}get isNullable(){return!1}getJsonTypeName(){return`Input.Toggle`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){return this.isRequired?this.value===this.valueOn:!!this.value}get value(){return this._value!==null&&this._value!==void 0?this._value?this.valueOn:this.valueOff:this.isRequired?void 0:this.valueOff}};$([(0,T.property)(vc.valueProperty),Q(`design:type`,String)],vc.prototype,`defaultValue`,void 0),$([(0,T.property)(vc.titleProperty),Q(`design:type`,String)],vc.prototype,`title`,void 0),$([(0,T.property)(vc.valueOnProperty),Q(`design:type`,String)],vc.prototype,`valueOn`,void 0),$([(0,T.property)(vc.valueOffProperty),Q(`design:type`,String)],vc.prototype,`valueOff`,void 0),$([(0,T.property)(vc.wrapProperty),Q(`design:type`,Boolean)],vc.prototype,`wrap`,void 0);function yc(e){e.register(`Input.Text`,hc),e.register(`Input.Number`,uc),e.register(`Input.Time`,_c),e.register(`Input.Date`,lc),e.register(`Input.Toggle`,vc),e.register(`Input.ChoiceSet`,cc)}var bc=e=>{switch(e){case Us.SharePoint:return i.webLightTheme;case Us.Teams:return i.teamsLightTheme;case Us.TeamsDark:return i.teamsDarkTheme;case Us.TeamsHighContrast:return i.teamsHighContrastTheme;default:return i.webLightTheme}},xc=e=>{let r=(0,t.useRef)(null),{log:a,error:o,LogLevel:s}=z(),c=(0,t.useRef)(null),l=(0,t.useRef)(null),u=(0,t.useRef)(null);(0,t.useEffect)(()=>{Xs((e,t)=>o(e,t))},[]),(0,t.useEffect)(()=>{c.current=null,c.current=new T.AdaptiveCard,l.current=new T.SerializationContext},[e]);let d=(0,t.useCallback)(t=>{if(e.onInvokeAction){let n={type:``,title:``},r=t.getJsonTypeName();switch(r){case T.OpenUrlAction.JsonTypeName:{let e=t;n={type:r,title:e.title,url:e.url}}break;case T.SubmitAction.JsonTypeName:{let e=t;n={type:r,title:e.title,data:e.data}}break;case T.ExecuteAction.JsonTypeName:{let e=t;n={type:r,title:e.title,data:e.data,verb:e.verb}}break;default:n={type:r,title:`Unknown Action`};break}e.onInvokeAction(n)}},[e.onInvokeAction]);return(0,t.useEffect)(()=>{let t,n=e.themeType;u.current=null,n||=Us.SharePoint,t=e.theme?e.theme:bc(n);let r=Ys(n,t),i=r.hostConfig;a(`hostconfig:`,s.Info,i),u.current=t,c.current&&(c.current.hostConfig=r.hostConfig),e.onUpdateHostCapabilities&&e.onUpdateHostCapabilities(i.hostCapabilities)},[e]),(0,t.useEffect)(()=>{c.current&&(c.current.onExecuteAction=d)},[e,d]),(0,t.useEffect)(()=>{let t=new T.CardObjectRegistry,n=new T.CardObjectRegistry;T.GlobalRegistry.populateWithDefaultElements(t),T.GlobalRegistry.populateWithDefaultActions(n),yc(t),oc(n),e.onSetCustomElements&&e.onSetCustomElements(t),e.onSetCustomActions&&e.onSetCustomActions(n);let r=l.current;r&&r.setElementRegistry(t),r&&r.setActionRegistry(n)},[e]),(0,t.useEffect)(()=>{for(;r?.current?.firstChild;)r.current.lastChild&&r.current.removeChild(r.current.lastChild);let t=r.current;if(!t)return;let n=c.current;try{let r=new N.Template(e.card),i=Zs(e.data??{$root:{}},bc(e.themeType??Us.SharePoint),e.context),a=r.expand(i);if(n&&n.parse(a,l.current??void 0),n){let e=n.render();e&&e.outerHTML!==t.innerHTML&&e.outerHTML!==t.innerHTML&&(t.innerHTML=``,t.appendChild(e))}}catch(t){e.onError&&e.onError(t)}},[e,bc]),(0,n.jsx)(i.IdPrefixProvider,{value:`adaptiveCardHost`,children:(0,n.jsx)(i.FluentProvider,{theme:u.current?u.current:bc(e.themeType??Us.SharePoint),children:(0,n.jsx)(`div`,{ref:r,className:`${e.className?e.className:``}`,style:e.style})})})},Sc=({card:e,data:r})=>{let i=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(!i.current)return;i.current.innerHTML=``;let t=new N.Template(e).expand({$root:r}),n=new T.AdaptiveCard;n?.parse(t);let a=n.render();a&&i.current.appendChild(a)},[e,r]),(0,n.jsx)(`div`,{ref:i,role:`region`,"aria-label":`Adaptive Card`})},Cc=_.css`
|
|
196
|
+
`,zs=({data:e,flagClass:t,onClick:r})=>(0,n.jsx)(i.Tooltip,{relationship:`label`,content:(0,n.jsxs)(i.Card,{className:Ls,children:[(0,n.jsx)(`img`,{src:e.imageUrl,alt:e.name,className:Is}),(0,n.jsx)(i.Text,{className:Rs,children:e.name})]}),withArrow:!0,positioning:`above`,children:(0,n.jsx)(`img`,{src:e.imageUrl,alt:e.name,className:t||Is,role:`button`,tabIndex:0,onClick:()=>r?.(e),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),r?.(e))}})}),Bs=e=>{let[n,r]=(0,t.useState)(void 0),{error:i}=z();return(0,t.useEffect)(()=>{let t=!1;return(async()=>{try{let n=await(await fetch(e)).json();t||r(n)}catch(e){i(`Error loading style:`,e instanceof Error?e:void 0)}})(),()=>{t=!0}},[e]),n},Vs=e=>({defaultMapStyles:(0,t.useMemo)(()=>({width:`100%`,height:`600px`,fontFamily:i.tokens.fontFamilyBase}),[]),flagClass:(0,t.useMemo)(()=>(0,l.css)({width:`32px`,height:`20px`,border:`1px solid ${i.tokens.colorNeutralBackground1}`,borderRadius:i.tokens.borderRadiusSmall,boxShadow:i.tokens.shadow4,transition:`transform 0.1s ease`}),[])}),Hs=`https://api.maptiler.com/maps/topo-v2/style.json?key=fYK99t1qjkKbINH0saMD`,Us=({data:r,onClick:a,mapStyleUrl:o=Hs,style:s,fitPadding:c=20})=>{js();let l=(0,t.useRef)(null),u=Bs(o),d=r,{defaultMapStyles:f,flagClass:p}=Vs(),m=e.C();return(0,t.useEffect)(()=>{if(!l.current||d.length===0)return;let e=d.map(e=>e.coordinates[0]),t=d.map(e=>e.coordinates[1]);l.current.getMap().fitBounds([[Math.min(...e),Math.min(...t)],[Math.max(...e),Math.max(...t)]],{padding:c})},[d,c]),u?(0,n.jsxs)(w.default,{ref:l,initialViewState:{longitude:0,latitude:20,zoom:1},style:{...s??f},mapStyle:u,pixelRatio:window.devicePixelRatio,children:[(0,n.jsx)(Fs,{mapRef:l,initialViewState:{longitude:0,latitude:20,zoom:1}}),d.map(e=>(0,n.jsx)(w.Marker,{longitude:e.coordinates[0],latitude:e.coordinates[1],anchor:`center`,children:(0,n.jsx)(zs,{data:e,onClick:a,flagClass:p})},e.id))]}):(0,n.jsx)(i.Text,{children:m.loadingMapStyle})},Ws=function(e){return e[e.SharePoint=0]=`SharePoint`,e[e.Teams=1]=`Teams`,e[e.TeamsDark=2]=`TeamsDark`,e[e.TeamsHighContrast=3]=`TeamsHighContrast`,e}({}),Gs=(e,t)=>{let n=(0,E.create)();n.put(`.${t}-ac-container:focus`,{outline:`none !important`}),n.put(`.${t}-ac-adaptiveCard:focus`,{outline:`none !important`}),n.put(`.${t}-ac-pushButton`,{overflow:`hidden`,textOverflow:`ellipsis`,textAlign:`center`,verticalAlign:`middle`,cursor:`pointer`,fontFamily:`inherit`,fontSize:`14px`,fontWeight:`600`,padding:`4px 10px 5px 10px`,WebkitUserSelect:`none`,MozUserSelect:`none`,MsUserSelect:`none`,userSelect:`none`,height:`32px`,borderRadius:`2px`,border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground1,color:e.colorNeutralForeground1}),n.put(`.${t}-ac-pushButton:hover`,{border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground2,color:e.colorNeutralForeground2}),n.put(`.${t}-ac-pushButton:active`,{border:`1px solid ${e.colorNeutralStrokeAccessible}`,backgroundColor:e.colorNeutralBackground3,color:e.colorNeutralForeground3}),n.put(`.${t}-ac-pushButton-disabled`,{overflow:`hidden`,textOverflow:`ellipsis`,textAlign:`center`,verticalAlign:`middle`,cursor:`pointer`,fontFamily:`inherit`,fontSize:`14px`,fontWeight:`600`,padding:`4px 10px 5px 10px`,WebkitUserSelect:`none`,MozUserSelect:`none`,MsUserSelect:`none`,userSelect:`none`,height:`32px`,borderRadius:`2px`,border:`1px solid ${e.colorNeutralStrokeDisabled}`,backgroundColor:e.colorNeutralBackgroundDisabled,color:e.colorNeutralForegroundDisabled}),n.put(`.${t}-ac-ctrl-overlay`,{fontFamily:e.fontFamilyBase,position:`absolute`,left:`0`,top:`0`,zIndex:`10000`}),n.put(`.${t}-ac-ctrl`,{boxSizing:`border-box`,fontSize:`14px`,fontWeight:`normal`}),n.put(`.${t}-ac-ctrl-popup-container`,{backgroundColor:e.colorNeutralBackground1,position:`absolute`,overflowY:`auto`,boxShadow:`0px 3.2px 7.2px rgba(0,0,0,0.13), 0px 0.6px 1.8px rgba(0,0,0,0.11)`,borderRadius:`2px`}),n.put(`.${t}-ac-ctrl-popup-container:focus`,{outline:`0`}),n.put(`.${t}-ac-ctrl-slide`,{animationDuration:`0.5s`,animationTimingFunction:`cubic-bezier(0.1, 0.9, 0.2, 1)`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideTopToBottom`,{animationName:`fadeIn, slideTopToBottom`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideBottomToTop`,{animationName:`fadeIn, slideBottomToTop`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideLeftToRight`,{animationName:`fadeIn, slideLeftToRight`}),n.put(`.${t}-ac-ctrl-slide.${t}-ac-ctrl-slideRightToLeft`,{animationName:`fadeIn, slideRightToLeft`}),n.put(`.${t}-ac-ctrl-dropdown-item`,{width:`100%`,textOverflow:`ellipsis`,overflow:`hidden`,whiteSpace:`nowrap`,display:`block`,padding:`0px 12px`,lineHeight:`30px`,cursor:`pointer`,backgroundColor:e.colorNeutralBackground1,color:e.colorNeutralForeground1}),n.put(`.${t}-ac-ctrl-dropdown-item:hover`,{backgroundColor:e.colorNeutralBackground2,color:e.colorNeutralForeground2}),n.put(`.${t}-ac-ctrl-dropdown-item:focus`,{outline:`0`,backgroundColor:e.colorNeutralBackground3,color:e.colorNeutralForeground3}),n.put(`.${t}-ac-ctrl-dropdown-item-disabled`,{width:`100%`,textOverflow:`ellipsis`,overflow:`hidden`,whiteSpace:`nowrap`,display:`block`,padding:`0px 12px`,lineHeight:`30px`,cursor:`pointer`,backgroundColor:e.colorNeutralBackgroundDisabled,color:e.colorNeutralForegroundDisabled})},Ks=e=>new T.HostConfig({fontFamily:e.fontFamilyBase,separator:{lineThickness:1,lineColor:e.colorNeutralStroke2},containerStyles:{default:{backgroundColor:e.colorNeutralBackground1,foregroundColors:{default:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},dark:{default:e.colorNeutralForeground3,subtle:e.colorNeutralForeground4},light:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},accent:{default:e.colorBrandForeground1,subtle:e.colorBrandForeground2},attention:{default:e.colorPaletteRedBackground3,subtle:e.colorPaletteRedBackground2},good:{default:e.colorPaletteGreenBackground3,subtle:e.colorPaletteGreenBackground2},warning:{default:e.colorPaletteYellowBackground3,subtle:e.colorPaletteYellowBackground2}}},emphasis:{backgroundColor:e.colorNeutralBackground3,foregroundColors:{default:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},dark:{default:e.colorNeutralForeground3,subtle:e.colorNeutralForeground4},light:{default:e.colorNeutralForeground1,subtle:e.colorNeutralForeground2},accent:{default:e.colorBrandForeground1,subtle:e.colorBrandForeground2},attention:{default:e.colorPaletteRedBackground3,subtle:e.colorPaletteRedBackground2},good:{default:e.colorPaletteGreenBackground3,subtle:e.colorPaletteGreenBackground2},warning:{default:e.colorPaletteYellowBackground3,subtle:e.colorPaletteYellowBackground2}}}},inputs:{label:{requiredInputs:{weight:`bold`},optionalInputs:{weight:`bold`}},errorMessage:{color:`attention`,weight:`bold`}},actions:{buttonSpacing:10,actionAlignment:`right`}}),qs=`fluentUITheme`,Js=(e,t)=>{e.hostCapabilities.setCustomProperty(qs,t)},Ys=e=>{let t=e.hostCapabilities.getCustomProperty(qs);return t||=i.webLightTheme,t},Xs=(e,t)=>{let n;switch(e){case Ws.SharePoint:n={theme:t,hostConfig:Ks(t)};break;case Ws.Teams:n={theme:i.teamsLightTheme,hostConfig:Ks(i.teamsLightTheme)};break;case Ws.TeamsDark:n={theme:i.teamsDarkTheme,hostConfig:Ks(i.teamsDarkTheme)};break;case Ws.TeamsHighContrast:n={theme:i.teamsHighContrastTheme,hostConfig:Ks(i.teamsHighContrastTheme)};break;default:n={theme:t,hostConfig:Ks(t)};break}return n.hostConfig.cssClassNamePrefix=`ach${Math.random().toString().replace(/\./g,``)}`,Js(n.hostConfig,n.theme),Gs(n.theme,n.hostConfig.cssClassNamePrefix),n},Zs=e=>{T.AdaptiveCard.onProcessMarkdown||(T.AdaptiveCard.onProcessMarkdown=(t,n)=>{n.outputHtml=new D.default().render(t),n.didProcess=!0;try{n.outputHtml=new D.default().render(t),n.didProcess=!0}catch(t){e&&e(`AdaptiveCardHost: Error parsing Markdown`,t instanceof Error?t:void 0),n.didProcess=!1}})},Qs=(e,t,n)=>{let r,i;return i=n?{theme:t,aadInfo:n?.pageContext?.aadInfo?{instanceUrl:n.pageContext.aadInfo.instanceUrl||``,tenantId:n.pageContext.aadInfo.tenantId||``,userId:n.pageContext.aadInfo.userId||``}:void 0,cultureInfo:n?.pageContext?.cultureInfo?{currentCultureName:n.pageContext.cultureInfo.currentCultureName,currentUICultureName:n.pageContext.cultureInfo.currentUICultureName,isRightToLeft:n.pageContext.cultureInfo.isRightToLeft||!1}:void 0,userInfo:n?.pageContext?.user?{displayName:n.pageContext.user.displayName,email:n.pageContext.user.email,isAnonymousGuestUser:n.pageContext.user.isAnonymousGuestUser||!1,isExternalGuestUser:n.pageContext.user.isExternalGuestUser||!1,loginName:n.pageContext.user.loginName,preferUserTimeZone:n.pageContext.user.preferUserTimeZone||!1}:void 0,spListInfo:n?.pageContext?.list?{id:n.pageContext.list.id,serverRelativeUrl:n.pageContext.list.serverRelativeUrl||``,title:n.pageContext.list.title}:void 0,spListItemInfo:n?.pageContext?.listItem?{id:n.pageContext.listItem.id.toString()}:void 0,spSiteInfo:n?.pageContext?.site?{absoluteUrl:n.pageContext.site.absoluteUrl,cdnPrefix:n.pageContext.site.cdnPrefix||``,classification:n.pageContext.site.classification||``,correlationId:n.pageContext.site.correlationId||``,id:n.pageContext.site.id,isNoScriptEnabled:n.pageContext.site.isNoScriptEnabled||!1,recycleBinItemCount:n.pageContext.site.recycleBinItemCount||0,serverRelativeUrl:n.pageContext.site.serverRelativeUrl||``,serverRequestPath:n.pageContext.site.serverRequestPath||``,sitePagesEnabled:n.pageContext.site.sitePagesEnabled||!1}:void 0,spWebInfo:n?.pageContext?.web?{absoluteUrl:n.pageContext.web.absoluteUrl,id:n.pageContext.web.id,isAppWeb:n.pageContext.web.isAppWeb||!1,language:n.pageContext.web.language||0,languageName:n.pageContext.web.languageName||``,logoUrl:n.pageContext.web.logoUrl||``,serverRelativeUrl:n.pageContext.web.serverRelativeUrl||``,templateName:n.pageContext.web.templateName||``,title:n.pageContext.web.title,description:n.pageContext.web.description||``}:void 0}:{theme:t},r=e?{$root:{...e?.$root,"@context":i}}:{$root:{"@context":i}},r};function $s(e){return(0,O.createRoot)(e)}var ec=e=>{let t;return t=e.iconUrl?(0,n.jsx)(i.Button,{className:e.className,onClick:e.actionClickHandler,appearance:`primary`,children:(0,n.jsxs)(`div`,{style:{display:`flex`,flexDirection:e.iconPlacement===A.ActionIconPlacement.LeftOfTitle?`row`:`column`,justifyContent:`center`,alignItems:`center`},children:[(0,n.jsx)(`img`,{src:e.iconUrl,style:{width:e.iconSize,height:e.iconSize,flexShrink:0,marginRight:e.iconPlacement===A.ActionIconPlacement.LeftOfTitle?4:0,marginBottom:e.iconPlacement===A.ActionIconPlacement.LeftOfTitle?0:4},alt:``}),(0,n.jsx)(`span`,{children:e.text})]})}):e.style.toLocaleLowerCase().trim()===`positive`||e.style.toLocaleLowerCase().trim()===`destructive`?(0,n.jsx)(i.Button,{className:e.className,onClick:e.actionClickHandler,appearance:`primary`,children:e.text}):(0,n.jsx)(i.Button,{className:e.className,onClick:e.actionClickHandler,children:e.text}),t},tc=(e,t,r,a,o,s,c,l)=>{let u=document.createElement(`div`);u.className=`fluentUI`;let d=$s(u);d.render((0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:l,children:(0,n.jsx)(ec,{text:e,className:r,iconUrl:t,iconPlacement:a,iconSize:o,actionClickHandler:s,style:c,theme:l})})}));let f=new MutationObserver(e=>{for(let t of e)for(let e of Array.from(t.removedNodes))if(e===u||u.contains(e)){d.unmount(),f.disconnect();return}});if(u.parentNode)f.observe(u.parentNode,{childList:!0});else{let e=new MutationObserver(()=>{u.parentNode&&(f.observe(u.parentNode,{childList:!0}),e.disconnect())});e.observe(document.body,{childList:!0,subtree:!0})}return u},nc=class extends k.ExecuteAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(qs),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=tc(this.title??``,this.iconUrl||``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},rc=class extends k.OpenUrlAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(qs),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=tc(this.title??``,this.iconUrl||``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},ic=class extends k.ShowCardAction{updateCssClasses(){if(this.renderedElement){let e=this.state===1;this.renderedElement.setAttribute(`aria-expanded`,e.toString())}}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=tc(this.title||`Default Title`,this.iconUrl||``,this.iconUrl??``,t.iconPlacement,t.iconSize,this.actionClickHandler,this.style)}},ac=class extends k.SubmitAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(qs),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=tc(this.title??``,this.iconUrl??``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},oc=class extends k.ToggleVisibilityAction{updateCssClasses(){if(this.renderedElement){let e=this.state===1;this.renderedElement.setAttribute(`aria-expanded`,e.toString())}}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(qs),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=tc(this.title??``,this.iconUrl??``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}};function sc(e){e.register(`Action.Submit`,ac),e.register(`Action.OpenUrl`,rc),e.register(`Action.ShowCard`,ic),e.register(`Action.ToggleVisibility`,oc),e.register(`Action.Execute`,nc)}var cc=e=>{let t=document.createElement(`div`);return $s(t).render(e()),t};function Q(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function $(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var lc=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_5,`value`);static choicesProperty=new T.SerializableObjectCollectionProperty(T.Versions.v1_5,`choices`,T.Choice);static styleProperty=new T.ValueSetProperty(T.Versions.v1_5,`style`,[{value:`compact`},{value:`expanded`},{value:`filtered`,targetVersion:T.Versions.v1_5}],`compact`);static isMultiSelectProperty=new T.BoolProperty(T.Versions.v1_5,`isMultiSelect`,!1);static placeholderProperty=new T.StringProperty(T.Versions.v1_5,`placeholder`);static wrapProperty=new T.BoolProperty(T.Versions.v1_5,`wrap`,!1);defaultValue;style;get isCompact(){return!this.style||this.style===`compact`}set isCompact(e){this.style=e?void 0:`expanded`}isMultiSelect=!1;placeholder;wrap=!1;choices=[];element;refControl;selectedValues=[];defaultSelectedValues=[];updateSelectedValues=(e,t,n)=>{t?n?this.selectedValues.includes(e)||this.selectedValues.push(e):this.removeItemFromArray(this.selectedValues,e):this.selectedValues=[e]};removeItemFromArray=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)};internalRender(){let e=Ys(this.hostConfig),r=this.choices?this.choices.map(e=>({key:e.value,text:e.title})):[];this.defaultValue&&(this.defaultSelectedValues=this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator),this.selectedValues=[...this.defaultSelectedValues]);let a=()=>{let[e,a]=t.useState(this.selectedValues);return t.useEffect(()=>{a(this.selectedValues)},[this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator)]),(0,n.jsx)(i.Combobox,{style:{width:`100%`},placeholder:this.placeholder,multiselect:this.isMultiSelect,value:this.isMultiSelect?e.map(e=>r.find(t=>t.key===e)?.text).join(this.hostConfig.choiceSetInputValueSeparator):r.find(t=>e[0]===t.key)?.text,selectedOptions:this.isMultiSelect?e:[e[0]],autoComplete:this.style===`filtered`?`on`:`off`,onOptionSelect:(e,t)=>{if(this.isMultiSelect)a(t.selectedOptions),this.selectedValues=t.selectedOptions;else{let e=t.optionValue??``;a([e]),this.selectedValues=[e]}this.valueChanged()},ref:e=>{this.refControl=e},children:r.map(e=>(0,n.jsx)(i.Option,{value:e.key,children:e.text??``},e.key))})};return this.element=cc(()=>(0,n.jsxs)(n.Fragment,{children:[!this.isMultiSelect&&this.style===`expanded`&&(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:(0,n.jsx)(i.RadioGroup,{defaultValue:this.defaultValue,onChange:(e,t)=>{this.updateSelectedValues(t.value,this.isMultiSelect,!0),this.valueChanged()},ref:e=>{this.refControl=e},children:this.choices.map((e,t)=>(0,n.jsx)(i.Radio,{value:e.value,label:e.title,style:{marginTop:t>0?this.hostConfig.spacing.default:0}},e.value))})})}),this.isMultiSelect&&this.style===`expanded`&&(0,n.jsx)(`div`,{style:{display:`flex`,gap:this.hostConfig.spacing.default},children:this.choices.map((t,r)=>{let a=this.defaultSelectedValues.indexOf(t.value??``)>-1;return(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:(0,n.jsx)(i.Checkbox,{label:t.title,defaultChecked:a,onChange:(e,n)=>{this.updateSelectedValues(t.value??``,this.isMultiSelect,!!n),this.valueChanged()},ref:e=>{r===0&&(this.refControl=e)}})})},t.value)})}),(this.style===`compact`||this.style===`filtered`)&&(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:(0,n.jsx)(a,{})})})]})),this.element.style.width=`100%`,this.element}getJsonTypeName(){return`Input.ChoiceSet`}focus(){this.refControl&&this.refControl.focus&&this.refControl.focus()}internalValidateProperties(e){super.internalValidateProperties(e),this.choices.length===0&&e.addFailure(this,T.ValidationEvent.CollectionCantBeEmpty,T.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(let t of this.choices)(!t.title||!t.value)&&e.addFailure(this,T.ValidationEvent.PropertyCantBeNull,T.Strings.errors.choiceSetChoicesMustHaveTitleAndValue())}isSet(){return!!this.value}isValid(){return this.value?!0:!this.isRequired}get value(){if(this.selectedValues)return this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator)}};$([(0,T.property)(lc.valueProperty),Q(`design:type`,String)],lc.prototype,`defaultValue`,void 0),$([(0,T.property)(lc.styleProperty),Q(`design:type`,String)],lc.prototype,`style`,void 0),$([(0,T.property)(lc.isMultiSelectProperty),Q(`design:type`,Boolean)],lc.prototype,`isMultiSelect`,void 0),$([(0,T.property)(lc.placeholderProperty),Q(`design:type`,String)],lc.prototype,`placeholder`,void 0),$([(0,T.property)(lc.wrapProperty),Q(`design:type`,Boolean)],lc.prototype,`wrap`,void 0),$([(0,T.property)(lc.choicesProperty),Q(`design:type`,Array)],lc.prototype,`choices`,void 0);var uc=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_5,`value`);static placeholderProperty=new T.StringProperty(T.Versions.v1_5,`placeholder`);static minProperty=new T.StringProperty(T.Versions.v1_0,`min`);static maxProperty=new T.StringProperty(T.Versions.v1_0,`max`);defaultValue;min;max;placeholder;_value;refControl;element;internalRender(){let e=Ys(this.hostConfig);return this.element=cc(()=>(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:(0,n.jsx)(j.DatePicker,{id:this.id,placeholder:this.placeholder,minDate:this.convertStringToDate(this.min),maxDate:this.convertStringToDate(this.max),onSelectDate:e=>{this._value=e??void 0,this.valueChanged()},ref:e=>{this.refControl=e},style:{width:`100%`}})})})),this.element.style.width=`100%`,this.element}convertStringToDate(e){if(e)try{let t=new Date(e);return isNaN(t.getTime())?void 0:t}catch{return}}getJsonTypeName(){return`Input.Date`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){return!!this.value}isValid(){if(!this.value)return!this.isRequired;let e=new Date(this.value),t=!0;if(this.min){let n=new Date(this.min);t&&=e>=n}if(this.max){let n=new Date(this.max);t&&=e<=n}return t}get value(){if(this._value){let e=this._value.getTimezoneOffset();return new Date(this._value.getTime()-e*60*1e3).toISOString().split(`T`)[0]}}};$([(0,T.property)(uc.valueProperty),Q(`design:type`,String)],uc.prototype,`defaultValue`,void 0),$([(0,T.property)(uc.minProperty),Q(`design:type`,String)],uc.prototype,`min`,void 0),$([(0,T.property)(uc.maxProperty),Q(`design:type`,String)],uc.prototype,`max`,void 0),$([(0,T.property)(uc.placeholderProperty),Q(`design:type`,String)],uc.prototype,`placeholder`,void 0);var dc=class extends T.Input{static valueProperty=new T.NumProperty(T.Versions.v1_5,`value`);static placeholderProperty=new T.StringProperty(T.Versions.v1_5,`placeholder`);static minProperty=new T.NumProperty(T.Versions.v1_0,`min`);static maxProperty=new T.NumProperty(T.Versions.v1_0,`max`);defaultValue;min;max;placeholder;refControl=null;element;internalRender(){let e=Ys(this.hostConfig);return this.element=cc(()=>(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:(0,n.jsx)(i.SpinButton,{style:{width:`calc(100% - 10px)`},id:this.id,defaultValue:this.defaultValue===void 0?void 0:this.defaultValue,placeholder:this.placeholder,min:this.min,max:this.max,onChange:()=>{this.valueChanged()},ref:e=>{this.refControl=e}})})})),this.element.style.width=`100%`,this.element}getJsonTypeName(){return`Input.Number`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){let e=this.value;return e!==void 0&&!isNaN(e)}isValid(){let e=this.value;if(e===void 0)return!this.isRequired;let t=!0;return this.min!==void 0&&(t&&=e>=this.min),this.max!==void 0&&(t&&=e<=this.max),t}get value(){return this.refControl?Number(this.refControl.value):void 0}};$([(0,T.property)(dc.valueProperty),Q(`design:type`,Number)],dc.prototype,`defaultValue`,void 0),$([(0,T.property)(dc.minProperty),Q(`design:type`,Number)],dc.prototype,`min`,void 0),$([(0,T.property)(dc.maxProperty),Q(`design:type`,Number)],dc.prototype,`max`,void 0),$([(0,T.property)(dc.placeholderProperty),Q(`design:type`,String)],dc.prototype,`placeholder`,void 0);var fc=e=>{let{ariaLabel:t,iconProps:r,styles:a,className:o,onClick:s,...c}=e;return(0,n.jsx)(i.Button,{appearance:`transparent`,"aria-label":t,className:o,onClick:s,style:a,...c,children:(0,n.jsx)(`img`,{src:r.src,alt:t,style:{height:r.height||`100%`,width:r.width||`auto`}})})},pc={marginLeft:8},mc,hc,gc=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_0,`value`);static maxLengthProperty=new T.NumProperty(T.Versions.v1_0,`maxLength`);static isMultilineProperty=new T.BoolProperty(T.Versions.v1_0,`isMultiline`,!1);static placeholderProperty=new T.StringProperty(T.Versions.v1_0,`placeholder`);static styleProperty=new T.EnumProperty(T.Versions.v1_0,`style`,T.InputTextStyle,T.InputTextStyle.Text);static inlineActionProperty=new T.ActionProperty(T.Versions.v1_0,`inlineAction`,[`Action.ShowCard`]);static regexProperty=new T.StringProperty(T.Versions.v1_3,`regex`,!0);defaultValue;maxLength;isMultiline=!1;placeholder;style=T.InputTextStyle.Text;inlineAction;regex;refControl=null;element;_value=this.defaultValue||``;internalRender(){let e=Ys(this.hostConfig);return this.element=cc(()=>(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:this.isMultiline?(0,n.jsx)(i.Textarea,{resize:`vertical`,style:{width:`100%`},id:this.id,defaultValue:this.defaultValue,placeholder:this.placeholder,maxLength:this.maxLength,onChange:(e,t)=>{this._value=t.value,this.valueChanged()},onKeyDown:this.handleKeyDown,ref:e=>{this.refControl=e}}):(0,n.jsx)(i.Input,{id:this.id,style:{width:`100%`},type:T.InputTextStyle[this.style].toLowerCase(),defaultValue:this.defaultValue,placeholder:this.placeholder,maxLength:this.maxLength,onChange:(e,t)=>{this._value=t.value,this.valueChanged()},onKeyDown:this.handleKeyDown,ref:e=>{this.refControl=e?e.inputElement:null}})})})),this.element.style.width=`100%`,this.element}handleKeyDown=e=>{e.key===`Enter`&&this.inlineAction&&this.inlineAction?.execute()};overrideInternalRender(){let e=super.overrideInternalRender();return this.inlineAction&&this.inputControlContainerElement.appendChild(this.buildInlineActionButton()),e||document.createElement(`div`)}buildInlineActionButton=()=>cc(this.inlineAction?.iconUrl?this.inlineIconActionButton:this.buildTextOnlyInlineActionActionButton);inlineActionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.inlineAction?.execute()};inlineIconActionButton=()=>(0,n.jsx)(i.FluentProvider,{theme:this.hostConfig.hostCapabilities.getCustomProperty(qs),children:(0,n.jsx)(fc,{ariaLabel:this.inlineAction?.title||`Inline action`,className:this.hostConfig.makeCssClassName(`ac-inlineActionButton`,`iconOnly`),iconProps:{src:this.inlineAction?.iconUrl??``},onClick:this.inlineActionClickHandler,styles:pc})});buildTextOnlyInlineActionActionButton=()=>{let e=this.hostConfig.hostCapabilities.getCustomProperty(qs);return(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:(0,n.jsx)(i.Button,{appearance:`primary`,className:this.hostConfig.makeCssClassName(`ac-inlineActionButton`,`textOnly`),onClick:this.inlineActionClickHandler,style:pc,children:this.inlineAction?.title??``})})})};getJsonTypeName(){return`Input.Text`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}getActionById(e){let t=super.getActionById(e);if(!t&&this.inlineAction&&(t=this.inlineAction.getActionById(e)),!t)throw Error(`Action with id '${e}' not found.`);return t}isSet(){return!!this.value}isValid(){return this.value?this.regex?new RegExp(this.regex,`g`).test(this.value):!0:!this.isRequired}get value(){if(this._value)return this._value}};$([(0,T.property)(gc.valueProperty),Q(`design:type`,String)],gc.prototype,`defaultValue`,void 0),$([(0,T.property)(gc.maxLengthProperty),Q(`design:type`,Number)],gc.prototype,`maxLength`,void 0),$([(0,T.property)(gc.isMultilineProperty),Q(`design:type`,Boolean)],gc.prototype,`isMultiline`,void 0),$([(0,T.property)(gc.placeholderProperty),Q(`design:type`,String)],gc.prototype,`placeholder`,void 0),$([(0,T.property)(gc.styleProperty),Q(`design:type`,typeof(mc=T.InputTextStyle!==void 0&&T.InputTextStyle)==`function`?mc:Object)],gc.prototype,`style`,void 0),$([(0,T.property)(gc.inlineActionProperty),Q(`design:type`,typeof(hc=T.Action!==void 0&&T.Action)==`function`?hc:Object)],gc.prototype,`inlineAction`,void 0),$([(0,T.property)(gc.regexProperty),Q(`design:type`,String)],gc.prototype,`regex`,void 0);var _c=e=>{let{id:r,defaultTime:a,minTime:o,maxTime:s,placeholder:c,theme:l,onTimeChange:u}=e,[f,p]=t.useState(a),[m,h]=t.useState(a?(0,M.formatDateToTimeString)(a??new Date):``);return(0,n.jsx)(i.IdPrefixProvider,{value:r,children:(0,n.jsx)(i.FluentProvider,{theme:l,children:(0,n.jsx)(M.TimePicker,{style:{width:`100%`},expandIcon:(0,n.jsx)(d.ClockRegular,{}),id:r,freeform:!0,min:o?(0,M.formatDateToTimeString)(o):void 0,max:s?(0,M.formatDateToTimeString)(s):void 0,placeholder:c,value:f?(0,M.formatDateToTimeString)(f):m,onTimeChange:(e,t)=>{let n=t.selectedTime??void 0,r=t.selectedTimeText??``;p(n),h(r),u&&n&&u(n,r)},onInput:e=>{h(e.target.value)}})})})},vc=class e extends T.Input{static convertTimeStringToDate(e){return new Date(`1973-09-04T`+e+`:00Z`)}static valueProperty=new T.TimeProperty(T.Versions.v1_0,`value`);static placeholderProperty=new T.StringProperty(T.Versions.v1_0,`placeholder`);static minProperty=new T.TimeProperty(T.Versions.v1_0,`min`);static maxProperty=new T.TimeProperty(T.Versions.v1_0,`max`);defaultValue;min;max;placeholder;_time;element;internalRender(){let t=Ys(this.hostConfig),r=this.defaultValue?e.convertTimeStringToDate(this.defaultValue):void 0,i=this.min?e.convertTimeStringToDate(this.min):void 0,a=this.max?e.convertTimeStringToDate(this.max):void 0;return this.element=cc(()=>(0,n.jsx)(_c,{id:(0,T.generateUniqueId)(),defaultTime:r,minTime:i,maxTime:a,placeholder:this.placeholder,theme:t,onTimeChange:e=>{this._time=e,this.valueChanged()}})),this.element.style.width=`100%`,this.element}getJsonTypeName(){return`Input.Time`}focus(){}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){return!!this.value}isValid(){if(!this.value)return!this.isRequired;if(!this._time)return!1;let t=!0;if(this.min){let n=e.convertTimeStringToDate(this.min);t&&=this._time>=n}if(this.max){let n=e.convertTimeStringToDate(this.max);t&&=this._time<=n}return t}get value(){return this._time?(0,M.formatDateToTimeString)(this._time):void 0}};$([(0,T.property)(vc.valueProperty),Q(`design:type`,String)],vc.prototype,`defaultValue`,void 0),$([(0,T.property)(vc.minProperty),Q(`design:type`,String)],vc.prototype,`min`,void 0),$([(0,T.property)(vc.maxProperty),Q(`design:type`,String)],vc.prototype,`max`,void 0),$([(0,T.property)(vc.placeholderProperty),Q(`design:type`,String)],vc.prototype,`placeholder`,void 0);var yc=class extends T.Input{static valueProperty=new T.StringProperty(T.Versions.v1_5,`value`);static titleProperty=new T.StringProperty(T.Versions.v1_5,`title`);static valueOnProperty=new T.StringProperty(T.Versions.v1_5,`valueOn`,!0,void 0,`true`,e=>`true`);static valueOffProperty=new T.StringProperty(T.Versions.v1_5,`valueOff`,!0,void 0,`false`,e=>`false`);static wrapProperty=new T.BoolProperty(T.Versions.v1_2,`wrap`,!1);defaultValue;title;valueOn=`true`;valueOff=`false`;wrap=!1;_value;refControl=null;element;internalRender(){let e=Ys(this.hostConfig);return this.element=cc(()=>(0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,style:{backgroundColor:`transparent`},children:(0,n.jsx)(i.Switch,{id:this.id,label:this.title,onChange:(e,t)=>{this._value=t.checked,this.valueChanged()},defaultChecked:this.defaultValue===this.valueOn,style:{marginBottom:0,marginTop:0},ref:e=>{this.refControl=e}})})})),this.element.style.width=`100%`,this.element}get isNullable(){return!1}getJsonTypeName(){return`Input.Toggle`}focus(){this.refControl?.focus()}updateInputControlAriaLabelledBy(){if(this.element){let e=this.getAllLabelIds().join(` `);e?this.element.setAttribute(`aria-labelledby`,e):this.element.removeAttribute(`aria-labelledby`)}}isSet(){return this.isRequired?this.value===this.valueOn:!!this.value}get value(){return this._value!==null&&this._value!==void 0?this._value?this.valueOn:this.valueOff:this.isRequired?void 0:this.valueOff}};$([(0,T.property)(yc.valueProperty),Q(`design:type`,String)],yc.prototype,`defaultValue`,void 0),$([(0,T.property)(yc.titleProperty),Q(`design:type`,String)],yc.prototype,`title`,void 0),$([(0,T.property)(yc.valueOnProperty),Q(`design:type`,String)],yc.prototype,`valueOn`,void 0),$([(0,T.property)(yc.valueOffProperty),Q(`design:type`,String)],yc.prototype,`valueOff`,void 0),$([(0,T.property)(yc.wrapProperty),Q(`design:type`,Boolean)],yc.prototype,`wrap`,void 0);function bc(e){e.register(`Input.Text`,gc),e.register(`Input.Number`,dc),e.register(`Input.Time`,vc),e.register(`Input.Date`,uc),e.register(`Input.Toggle`,yc),e.register(`Input.ChoiceSet`,lc)}var xc=e=>{switch(e){case Ws.SharePoint:return i.webLightTheme;case Ws.Teams:return i.teamsLightTheme;case Ws.TeamsDark:return i.teamsDarkTheme;case Ws.TeamsHighContrast:return i.teamsHighContrastTheme;default:return i.webLightTheme}},Sc=e=>{let r=(0,t.useRef)(null),{log:a,error:o,LogLevel:s}=z(),c=(0,t.useRef)(null),l=(0,t.useRef)(null),u=(0,t.useRef)(null);(0,t.useEffect)(()=>{Zs((e,t)=>o(e,t))},[]),(0,t.useEffect)(()=>{c.current=null,c.current=new T.AdaptiveCard,l.current=new T.SerializationContext},[e]);let d=(0,t.useCallback)(t=>{if(e.onInvokeAction){let n={type:``,title:``},r=t.getJsonTypeName();switch(r){case T.OpenUrlAction.JsonTypeName:{let e=t;n={type:r,title:e.title,url:e.url}}break;case T.SubmitAction.JsonTypeName:{let e=t;n={type:r,title:e.title,data:e.data}}break;case T.ExecuteAction.JsonTypeName:{let e=t;n={type:r,title:e.title,data:e.data,verb:e.verb}}break;default:n={type:r,title:`Unknown Action`};break}e.onInvokeAction(n)}},[e.onInvokeAction]);return(0,t.useEffect)(()=>{let t,n=e.themeType;u.current=null,n||=Ws.SharePoint,t=e.theme?e.theme:xc(n);let r=Xs(n,t),i=r.hostConfig;a(`hostconfig:`,s.Info,i),u.current=t,c.current&&(c.current.hostConfig=r.hostConfig),e.onUpdateHostCapabilities&&e.onUpdateHostCapabilities(i.hostCapabilities)},[e]),(0,t.useEffect)(()=>{c.current&&(c.current.onExecuteAction=d)},[e,d]),(0,t.useEffect)(()=>{let t=new T.CardObjectRegistry,n=new T.CardObjectRegistry;T.GlobalRegistry.populateWithDefaultElements(t),T.GlobalRegistry.populateWithDefaultActions(n),bc(t),sc(n),e.onSetCustomElements&&e.onSetCustomElements(t),e.onSetCustomActions&&e.onSetCustomActions(n);let r=l.current;r&&r.setElementRegistry(t),r&&r.setActionRegistry(n)},[e]),(0,t.useEffect)(()=>{for(;r?.current?.firstChild;)r.current.lastChild&&r.current.removeChild(r.current.lastChild);let t=r.current;if(!t)return;let n=c.current;try{let r=new N.Template(e.card),i=Qs(e.data??{$root:{}},xc(e.themeType??Ws.SharePoint),e.context),a=r.expand(i);if(n&&n.parse(a,l.current??void 0),n){let e=n.render();e&&e.outerHTML!==t.innerHTML&&e.outerHTML!==t.innerHTML&&(t.innerHTML=``,t.appendChild(e))}}catch(t){e.onError&&e.onError(t)}},[e,xc]),(0,n.jsx)(i.IdPrefixProvider,{value:`adaptiveCardHost`,children:(0,n.jsx)(i.FluentProvider,{theme:u.current?u.current:xc(e.themeType??Ws.SharePoint),children:(0,n.jsx)(`div`,{ref:r,className:`${e.className?e.className:``}`,style:e.style})})})},Cc=({card:e,data:r})=>{let i=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(!i.current)return;i.current.innerHTML=``;let t=new N.Template(e).expand({$root:r}),n=new T.AdaptiveCard;n?.parse(t);let a=n.render();a&&i.current.appendChild(a)},[e,r]),(0,n.jsx)(`div`,{ref:i,role:`region`,"aria-label":`Adaptive Card`})},wc=_.css`
|
|
197
197
|
position: relative;
|
|
198
198
|
display: inline-block;
|
|
199
199
|
line-height: 0;
|
|
200
200
|
|
|
201
|
-
`,wc=_.css`
|
|
202
|
-
display: block;
|
|
203
201
|
`,Tc=_.css`
|
|
202
|
+
display: block;
|
|
203
|
+
`,Ec=_.css`
|
|
204
204
|
position: absolute;
|
|
205
205
|
top: -1px;
|
|
206
206
|
right: -6px;
|
|
@@ -224,32 +224,32 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
|
|
|
224
224
|
box-shadow: ${i.tokens.shadow8};
|
|
225
225
|
background: ${i.tokens.colorBrandBackgroundHover};
|
|
226
226
|
}
|
|
227
|
-
`,
|
|
228
|
-
${
|
|
227
|
+
`,Dc=_.css`
|
|
228
|
+
${Ec};
|
|
229
229
|
font-size: 9px;
|
|
230
230
|
padding: 2px 4px;
|
|
231
231
|
border-radius: 8px;
|
|
232
232
|
top: -2px;
|
|
233
233
|
right: -7px;
|
|
234
|
-
`,
|
|
235
|
-
${
|
|
234
|
+
`,Oc=_.css`
|
|
235
|
+
${Ec};
|
|
236
236
|
font-size: 6px;
|
|
237
237
|
padding: 1px 2px;
|
|
238
238
|
border-radius: 4px;
|
|
239
239
|
top: 0px;
|
|
240
240
|
right: -4px;
|
|
241
241
|
letter-spacing: 0.1px;
|
|
242
|
-
`,
|
|
243
|
-
${e>=24?
|
|
242
|
+
`,kc=({size:e=20,className:t,color:n,aiIndicatorColor:r})=>{let i=_.css`
|
|
243
|
+
${e>=24?Dc:e<=16?Oc:Ec};
|
|
244
244
|
${r?`
|
|
245
245
|
background: ${r};
|
|
246
246
|
border-color: ${r};
|
|
247
247
|
`:``}
|
|
248
248
|
`,a=_.css`
|
|
249
|
-
${
|
|
249
|
+
${Tc};
|
|
250
250
|
font-size: ${e}px;
|
|
251
251
|
${n?`color: ${n};`:`color: inherit;`}
|
|
252
|
-
`;return(0,v.jsxs)(`span`,{css:[
|
|
252
|
+
`;return(0,v.jsxs)(`span`,{css:[wc,t&&_.css`${t}`],children:[(0,v.jsx)(d.SearchRegular,{css:a}),(0,v.jsx)(`span`,{css:i,children:`AI`})]})},Ac=()=>({searchBoxStyles:_.css`
|
|
253
253
|
border: 1px solid ${i.tokens.colorNeutralStroke2};
|
|
254
254
|
border-radius: 50px; /* Fully circular/pill shape */
|
|
255
255
|
background-color: ${i.tokens.colorNeutralBackground1};
|
|
@@ -313,7 +313,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
|
|
|
313
313
|
align-items: center;
|
|
314
314
|
padding: 2px;
|
|
315
315
|
margin-right: 8px;
|
|
316
|
-
`}),
|
|
316
|
+
`}),jc=e=>({generateText:async(e,t)=>`Azure OpenAI not configured - please provide configuration`,isConfigured:!1}),Mc=e=>JSON.stringify(e),Nc=({systemPromptTemplate:n,azureOpenAIConfig:r,placeholder:a,onSearchQueryGenerated:o,onSearchStart:s,onSearchError:c,disabled:l=!1,className:u,width:d})=>{let{error:f}=z(),p=e.r(),m=a||p.placeholder,{generateText:h,isConfigured:g}=jc({config:r}),[_,y]=(0,t.useState)(!1),[b,x]=(0,t.useState)(``),S=(0,t.useRef)(null),{searchBoxStyles:C,iconWrapperStyles:w}=Ac(),T=(0,t.useCallback)(async e=>{if(!e.trim())return;if(!g){let t=p.notConfiguredError;c?.(t,e.trim());return}let t=e.trim();y(!0);try{s?.(t);let e=await h(n,t);o?.(e,t)}catch(e){let n=e instanceof Error?e.message:p.generationError;f(`AISearchControl - Error generating AI search query: `+Mc({operation:`handleAISearch`,userInput:t,errorMessage:n,isConfigured:g})),c?.(n,t)}finally{y(!1)}},[h,n,o,s,c,f,g]),E=(0,t.useCallback)((e,t)=>{x(t.value)},[]),D=(0,t.useCallback)(()=>{x(``),S.current?.blur(),o?.(``,``)},[o]),O=(0,t.useCallback)(e=>{e.key===`Enter`&&!_&&b.trim()?T(b).catch(e=>{f(`Error in handleAISearch:`,e)}):e.key===`Escape`&&(S.current?.blur(),x(``),o?.(``,``))},[T,_,b,o]);return(0,v.jsx)(i.SearchBox,{ref:S,css:C,className:u,style:{width:d},placeholder:m,value:b,onChange:E,onKeyDown:O,disabled:l||_,contentBefore:(0,v.jsx)(`span`,{css:w,children:(0,v.jsx)(kc,{size:20})}),dismiss:{onClick:D}})},Pc=(0,i.makeStyles)({container:{display:`flex`,flexDirection:`column`,gap:`20px`,padding:`20px`},section:{display:`flex`,flexDirection:`column`,gap:`10px`},iconRow:{display:`flex`,alignItems:`center`,gap:`15px`,padding:`10px`,border:`1px solid ${i.tokens.colorNeutralStroke2}`,borderRadius:`8px`},label:{minWidth:`150px`,fontWeight:600},buttonExample:{display:`flex`,alignItems:`center`,gap:`8px`},codeBlock:{background:i.tokens.colorNeutralBackground2,padding:`10px`,borderRadius:`4px`,fontSize:`12px`,overflow:`auto`,border:`1px solid ${i.tokens.colorNeutralStroke2}`}}),Fc=()=>{let e=Pc();return(0,n.jsxs)(`div`,{className:e.container,children:[(0,n.jsx)(`h2`,{children:`AI Search Icon Examples`}),(0,n.jsxs)(`div`,{className:e.section,children:[(0,n.jsx)(`h3`,{children:`Standard AI Search Icon`}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Small (16px):`}),(0,n.jsx)(kc,{size:16})]}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Medium (20px):`}),(0,n.jsx)(kc,{size:20})]}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Large (24px):`}),(0,n.jsx)(kc,{size:24})]}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Extra Large (32px):`}),(0,n.jsx)(kc,{size:32})]}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Custom Colors:`}),(0,n.jsx)(kc,{size:24,color:i.tokens.colorPaletteBlueForeground2,aiIndicatorColor:i.tokens.colorPaletteGreenForeground2})]})]}),(0,n.jsxs)(`div`,{className:e.section,children:[(0,n.jsx)(`h3`,{children:`Usage in Buttons`}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Primary Button:`}),(0,n.jsx)(i.Button,{appearance:`primary`,icon:(0,n.jsx)(kc,{size:16}),children:`AI Search`})]}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Secondary Button:`}),(0,n.jsx)(i.Button,{appearance:`secondary`,icon:(0,n.jsx)(kc,{size:16}),children:`Smart Search`})]}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Icon Only Button:`}),(0,n.jsx)(i.Button,{appearance:`subtle`,icon:(0,n.jsx)(kc,{size:20}),title:`AI Search`})]})]}),(0,n.jsxs)(`div`,{className:e.section,children:[(0,n.jsx)(`h3`,{children:`Usage Example Code`}),(0,n.jsx)(`pre`,{className:e.codeBlock,children:`// Basic usage
|
|
317
317
|
import { AISearchIcon } from './AISearchIcon';
|
|
318
318
|
|
|
319
319
|
// Standard icon with AI badge
|
|
@@ -332,7 +332,7 @@ import { AISearchIcon } from './AISearchIcon';
|
|
|
332
332
|
icon={<AISearchIcon size={16} />}
|
|
333
333
|
>
|
|
334
334
|
AI Search
|
|
335
|
-
</Button>`})]})]})},
|
|
335
|
+
</Button>`})]})]})},Ic=()=>({container:(0,l.css)({backgroundColor:i.tokens.colorNeutralBackground1,border:`1px solid `+i.tokens.colorNeutralStroke1,borderRadius:i.tokens.borderRadiusLarge,padding:`${i.tokens.spacingVerticalXS} ${i.tokens.spacingHorizontalS}`,minHeight:`40px`,":focus-within::after":{borderBottom:`2px solid ${i.tokens.colorBrandStroke1}`}}),textarea:(0,l.css)({width:`calc(100% - 5px)`,flex:1,border:`none`,outline:`none`,backgroundColor:`transparent`,fontSize:i.tokens.fontSizeBase300,color:i.tokens.colorNeutralForeground1,resize:`none`,"::placeholder":{color:i.tokens.colorNeutralForegroundDisabled},"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorNeutralStroke2}}),iconContainer:(0,l.css)({display:`flex`,alignItems:`center`,gap:i.tokens.spacingHorizontalXS,marginLeft:i.tokens.spacingHorizontalXS}),buttonSend:(0,l.css)({width:`36px !important`,height:`36px !important`,maxWidth:`36px !important`,maxHeight:`36px !important`,minWidth:`36px !important`,minHeight:`36px !important`})}),Lc=t.forwardRef(({value:r,onChange:i,onSend:a,placeholder:o,isRunning:s,onAbort:c},l)=>{let u=Ic(),f=e.n(),p=o||f.typeAMessage,m=t.useCallback(()=>{let e=r.trim();e.length>0&&a(e)},[r,a]),h=e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),m())};return(0,n.jsxs)(B,{width:`100%`,className:u.container,children:[(0,n.jsx)(`textarea`,{ref:l,className:u.textarea,placeholder:p,"aria-label":p,value:r,onChange:e=>i(e.target.value),onKeyDown:h,rows:3}),(0,n.jsx)(B,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:s?(0,n.jsx)(It,{icon:(0,n.jsx)(d.RecordStopRegular,{}),hoverIcon:(0,n.jsx)(d.RecordStopFilled,{}),width:32,height:32,onClick:c,ariaLabel:`Stop generating`}):(0,n.jsx)(It,{icon:(0,n.jsx)(d.ArrowCircleUp32Regular,{}),hoverIcon:(0,n.jsx)(d.ArrowCircleUp32Filled,{}),width:32,height:32,onClick:m,enabled:r.trim().length>0,ariaLabel:`Send message`})})]})}),Rc=()=>({listContainer:(0,l.css)({display:`grid`,gridTemplateColumns:`1fr`,gap:i.tokens.spacingVerticalXXS,maxHeight:`400px`,overflowY:`auto`,overflowX:`hidden`,padding:i.tokens.spacingVerticalS,minWidth:`280px`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorNeutralStroke2}}),suggestionsHeader:(0,l.css)({color:i.tokens.colorBrandBackground,padding:i.tokens.spacingVerticalXS}),noResults:(0,l.css)({padding:i.tokens.spacingVerticalS,textAlign:`center`,color:i.tokens.colorNeutralForeground3})}),zc=({context:r,inputValue:a,parentRef:o,mentionChars:s,onUserSelect:c,theme:l,suggestionsHeader:u,maxSuggestions:d=100,userFilter:f})=>{let p=ie(),m=r||p,h=m?.graphClient,g=m?.pageContext?.web?.absoluteUrl||``,_=e.h(),v=e.S(),{verbose:y,warn:b,error:x}=z(),[S,C]=(0,t.useState)(!1),[w,T]=(0,t.useState)({top:0,left:0}),[E,D]=(0,t.useState)([]),[O,k]=(0,t.useState)(``),[A,j]=(0,t.useState)(``),M=(0,t.useRef)({}),N=Rc(),P=(0,t.useCallback)(async e=>{if(!h)return b(`Graph client not available`),[];let t=`${e}_${d}`;if(M.current[t])return M.current[t];try{let n=e&&e.length>0?`startswith(displayName,'${e}') or startswith(givenName,'${e}') or startswith(surname,'${e}')`:``,r=n?`/users?$filter=${n}&$select=id,displayName,mail,userPrincipalName&$top=${d}`:`/users?$select=id,displayName,mail,userPrincipalName&$orderby=displayName&$top=${d}`;y(`[fetchUsers]: API query:`,r);let i=await h.get(r);y(`[fetchUsers]: Graph response:`,i);let a=(i.value||[]).map(e=>({id:e.id||``,displayName:e.displayName||e.userPrincipalName||v.unknownUser,mail:e.mail||e.userPrincipalName||``,avatar:g?`${g}/_layouts/15/userphoto.aspx?size=S&accountname=${e.mail||e.userPrincipalName}`:void 0})).filter(e=>e.id&&e.displayName);return y(`[fetchUsers]: Processed users:`,a),M.current[t]=a,a}catch(e){return x(`[fetchUsers]: Error fetching users from Graph:`,e instanceof Error?e:void 0),[]}},[h,g,d]),F=(0,t.useCallback)(ke(async(e,t)=>{y(`[debouncedFetch]: Fetching users for query:`,e);let n=await P(e),r=f?n.filter(t=>f(t,e)):n;y(`[debouncedFetch]: Filtered users:`,r),r.sort((e,t)=>e.displayName.localeCompare(t.displayName)),D(r),k(t),j(e),C(!0),y(`[debouncedFetch]: Menu should be shown now`)},300),[m,d,f,P]),I=e=>{let t=o.current;if(!t)return{top:0,left:0};if(t.tagName===`TEXTAREA`){let n=t,r=(0,ee.default)(n,e),i=n.getBoundingClientRect();return{top:i.top+r.top+22,left:i.left+r.left+16}}let n=t.getBoundingClientRect();return{top:n.bottom+5,left:n.left}};(0,t.useEffect)(()=>{if(!a){C(!1);return}y(`[Mensions]: Analyzing input:`,a);let e=!1;for(let t of s){let n=a.lastIndexOf(t);if(y(`[Mensions]: Checking mention char:`,t),n!==-1&&(n===0||a[n-1]===` `)){let r=a.slice(n+1);if(y(`[Mensions]: Search text:`,r),!r.includes(` `)){e=!0;let i=I(n);y(`[Mensions]: Menu position:`,i),T(i),F(r,t);break}}}e||(y(`[Mensions]: No mention found, hiding menu`),C(!1))},[a,s,o,F]);let L=e=>{c(e,O),C(!1),D([])},R=(0,t.useCallback)(({users:e})=>(0,n.jsxs)(`div`,{className:N.listContainer,role:`listbox`,"aria-label":`User suggestions`,children:[e.length===0&&(0,n.jsxs)(i.Caption1,{className:N.noResults,children:[_.noResults,` "`,A,`"`]}),e.map(e=>(0,n.jsx)(i.Card,{appearance:`subtle`,role:`option`,tabIndex:0,onMouseDown:e=>e.preventDefault(),onClick:()=>L(e),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),L(e))},children:(0,n.jsx)(i.Persona,{name:e.displayName||v.unknownUser,secondaryText:e.mail||e.userPrincipalName||``,avatar:{image:{src:e.avatar}}})},e.id))]}),[N,A,L]);return(0,n.jsxs)(xt,{theme:l,anchorPoint:w,isOpen:S,onClose:()=>C(!1),excludeRefs:o?[o]:[],children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsx)(i.Body1Strong,{className:N.suggestionsHeader,children:u})}),(0,n.jsx)(i.Divider,{}),(0,n.jsx)(R,{users:E})]})},Bc=({context:e})=>{let[r,a]=(0,t.useState)(``),[o,s]=(0,t.useState)(``),c=(0,t.useRef)(null),l=(0,t.useRef)(null);return(0,n.jsxs)(B,{RowGap:20,children:[(0,n.jsxs)(`div`,{children:[(0,n.jsx)(`h3`,{children:`Input with @ mentions`}),(0,n.jsx)(i.Input,{ref:c,value:r,onChange:(e,t)=>a(t.value),placeholder:`Type @ to mention someone...`}),(0,n.jsx)(zc,{context:e,inputValue:r,parentRef:c,mentionChars:[`@`],onUserSelect:(e,t)=>{let n=RegExp(`${t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}(\\w*)$`);a(r.replace(n,`${t}${e.displayName} `)),setTimeout(()=>{c.current?.focus()},0)},theme:i.webLightTheme,suggestionsHeader:`Mention User`,maxSuggestions:8})]}),(0,n.jsxs)(`div`,{children:[(0,n.jsx)(`h3`,{children:`Textarea with @ and # mentions`}),(0,n.jsx)(i.Textarea,{ref:l,value:o,onChange:(e,t)=>s(t.value),placeholder:`Type @ to mention someone or # for tags...`,rows:4}),(0,n.jsx)(zc,{context:e,inputValue:o,parentRef:l,mentionChars:[`@`,`#`],onUserSelect:(e,t)=>{let n=RegExp(`${t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}(\\w*)$`);s(o.replace(n,`${t}${e.displayName} `)),setTimeout(()=>{l.current?.focus()},0)},theme:i.webLightTheme,suggestionsHeader:`Select User or Tag`,maxSuggestions:10,userFilter:(e,t)=>e.displayName.toLowerCase().includes(t.toLowerCase())||(e.mail?.toLowerCase().includes(t.toLowerCase())??!1)})]})]})},Vc=()=>({inputContainer:(0,l.css)({marginTop:`auto`,marginLeft:`auto`,"::after":{content:`""`,position:`absolute`,bottom:0,left:0,right:0,borderBottom:`2px solid transparent`,pointerEvents:`none`,borderRadius:i.tokens.borderRadiusMedium}}),listContainer:(0,l.css)({maxHeight:`400px`,overflowY:`auto`,overflowX:`hidden`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorNeutralStroke2}}),sugestionsHeader:(0,l.css)({color:i.tokens.colorBrandBackground})}),Hc=({context:e,onChange:r,value:a,placeholder:o,onSend:s,theme:c=i.webLightTheme,isRunning:l,onAbort:u})=>{let[d,f]=(0,t.useState)(a||``),p=(0,t.useRef)(null),m=Vc();return(0,t.useEffect)(()=>{p.current?.focus(),f(a||``)},[a]),(0,n.jsxs)(B,{horizontal:!0,width:`100%`,className:m.inputContainer,children:[(0,n.jsx)(Lc,{ref:p,onSend:s,value:d,onChange:e=>{f(e),r&&r(e)},theme:c,placeholder:o,isRunning:l,onAbort:u}),(0,n.jsx)(zc,{context:e,inputValue:d,parentRef:p,mentionChars:[`@`],onUserSelect:(e,t)=>{let n=RegExp(`${t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}(\\w*)$`),i=d.replace(n,`${t}${e.mail} `);f(i),r&&r(i),setTimeout(()=>{p.current?.focus()},0)},theme:c,suggestionsHeader:`Suggestions`,maxSuggestions:10})]})},Uc=()=>{let e=i.tokens.colorBrandBackground,t=l.keyframes`
|
|
336
336
|
0%, 80%, 100% {
|
|
337
337
|
opacity: 0;
|
|
338
338
|
transform: scale(0.8);
|
|
@@ -360,7 +360,7 @@ import { AISearchIcon } from './AISearchIcon';
|
|
|
360
360
|
animation-delay: 0.2s;
|
|
361
361
|
`,dot3:l.css`
|
|
362
362
|
animation-delay: 0.4s;
|
|
363
|
-
`}},Uc=()=>{let e=Hc();return(0,n.jsxs)(`div`,{className:e.root,role:`status`,"aria-label":`Loading response`,children:[(0,n.jsx)(`div`,{className:`${e.dot} ${e.dot1}`}),(0,n.jsx)(`div`,{className:`${e.dot} ${e.dot2}`}),(0,n.jsx)(`div`,{className:`${e.dot} ${e.dot3}`})]})},Wc=(e,t)=>{switch(t.type){case`INIT`:return{...e,messages:[t.welcomeMessage],isLoading:!1};case`SET_INPUT`:return{...e,inputText:t.inputText};case`ADD_USER_MESSAGE`:return{...e,messages:[...e.messages,t.message]};case`ADD_ASSISTANT_MESSAGE`:return{...e,messages:[...e.messages,t.message]};case`UPDATE_LAST_ASSISTANT_MESSAGE`:{let n=[...e.messages],r=n.length-1;return r>=0&&n[r].senderName===`Assistant`&&(n[r]=t.message),{...e,messages:n}}case`SET_ERROR`:return{...e,error:t.error};case`CLEAR_INPUT`:return{...e,inputText:``};case`SET_IS_RUNNING`:return{...e,isRunning:!e.isRunning};default:return e}},Gc=()=>({markdown:(0,l.css)({fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase300,lineHeight:i.tokens.lineHeightBase300,color:i.tokens.colorNeutralForeground1,"& p":{marginTop:`0`,marginBottom:i.tokens.spacingVerticalM},"& h1, & h2, & h3, & h4, & h5, & h6":{marginTop:i.tokens.spacingVerticalL,marginBottom:i.tokens.spacingVerticalM,fontWeight:i.tokens.fontWeightSemibold},"& h1":{fontSize:i.tokens.fontSizeBase500},"& h2":{fontSize:i.tokens.fontSizeBase400},"& h3":{fontSize:i.tokens.fontSizeBase300},"& ul, & ol":{marginTop:`0`,marginBottom:i.tokens.spacingVerticalM,paddingLeft:i.tokens.spacingHorizontalXXL},"& li":{marginBottom:i.tokens.spacingVerticalXS},"& code":{fontFamily:i.tokens.fontFamilyMonospace,fontSize:i.tokens.fontSizeBase200,backgroundColor:i.tokens.colorNeutralBackground3,padding:`2px 4px`,borderRadius:i.tokens.borderRadiusSmall},"& pre":{backgroundColor:i.tokens.colorNeutralBackground3,padding:i.tokens.spacingVerticalM,borderRadius:i.tokens.borderRadiusMedium,overflowX:`auto`,marginBottom:i.tokens.spacingVerticalM},"& pre code":{backgroundColor:`transparent`,padding:`0`},"& table":{borderCollapse:`collapse`,width:`100%`,marginBottom:i.tokens.spacingVerticalM,border:`1px solid ${i.tokens.colorNeutralStroke1}`},"& thead":{backgroundColor:i.tokens.colorNeutralBackground3},"& th":{padding:i.tokens.spacingVerticalS+` `+i.tokens.spacingHorizontalM,textAlign:`left`,fontWeight:i.tokens.fontWeightSemibold,borderBottom:`2px solid ${i.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${i.tokens.colorNeutralStroke2}`},"& td":{padding:i.tokens.spacingVerticalS+` `+i.tokens.spacingHorizontalM,borderBottom:`1px solid ${i.tokens.colorNeutralStroke2}`,borderRight:`1px solid ${i.tokens.colorNeutralStroke2}`},"& tr:last-child td":{borderBottom:`none`},"& th:last-child, & td:last-child":{borderRight:`none`},"& blockquote":{borderLeft:`4px solid ${i.tokens.colorBrandStroke1}`,paddingLeft:i.tokens.spacingHorizontalM,marginLeft:`0`,marginBottom:i.tokens.spacingVerticalM,color:i.tokens.colorNeutralForeground2},"& a":{color:i.tokens.colorBrandForeground1,textDecoration:`none`,":hover":{textDecoration:`underline`}},"& hr":{border:`none`,borderTop:`1px solid ${i.tokens.colorNeutralStroke2}`,marginTop:i.tokens.spacingVerticalL,marginBottom:i.tokens.spacingVerticalL}})}),Kc=({content:e,className:r})=>{let i=Gc(),[a,o]=t.useState(``);return t.useEffect(()=>{o(new D.default({html:!1,linkify:!0,typographer:!0,breaks:!0}).render(e))},[e]),(0,n.jsx)(`div`,{className:`${i.markdown} ${r||``}`,dangerouslySetInnerHTML:{__html:F.default.sanitize(a)}})},qc=(0,i.makeStyles)({plainText:{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase300,lineHeight:i.tokens.lineHeightBase300,color:i.tokens.colorNeutralForeground1,whiteSpace:`pre-wrap`,wordBreak:`break-word`},htmlContent:{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase300,lineHeight:i.tokens.lineHeightBase300,color:i.tokens.colorNeutralForeground1,"& p":{marginTop:`0`,marginBottom:i.tokens.spacingVerticalM},"& h1, & h2, & h3, & h4, & h5, & h6":{marginTop:i.tokens.spacingVerticalL,marginBottom:i.tokens.spacingVerticalM,fontWeight:i.tokens.fontWeightSemibold},"& table":{borderCollapse:`collapse`,width:`100%`,marginBottom:i.tokens.spacingVerticalM},"& th, & td":{border:`1px solid ${i.tokens.colorNeutralStroke1}`,padding:i.tokens.spacingHorizontalS,textAlign:`left`},"& th":{backgroundColor:i.tokens.colorNeutralBackground3,fontWeight:i.tokens.fontWeightSemibold},"& a":{color:i.tokens.colorBrandForegroundLink}},debugBadge:{display:`inline-block`,padding:`${i.tokens.spacingVerticalXS} ${i.tokens.spacingHorizontalS}`,marginBottom:i.tokens.spacingVerticalS,backgroundColor:i.tokens.colorNeutralBackground3,borderRadius:i.tokens.borderRadiusSmall,fontSize:i.tokens.fontSizeBase200,fontFamily:i.tokens.fontFamilyMonospace,color:i.tokens.colorNeutralForeground2},adaptiveCardWrapper:{width:`100%`}}),Jc=({content:e,forceType:r,onTypeDetected:i,context:a,theme:o=Us.SharePoint,fluentTheme:s,onAdaptiveCardAction:c,className:l,debug:u=!1})=>{let d=qc(),{error:f}=z(),[p,m]=t.useState(null);if(t.useEffect(()=>{if(t.isValidElement(e)||typeof e!=`string`&&typeof e!=`object`)return;let n=Je(e);m(n),i&&i(n)},[e,i]),t.isValidElement(e))return(0,n.jsx)(n.Fragment,{children:e});let h=r||p?.type,g=p?.content||e;return(0,n.jsxs)(n.Fragment,{children:[!u||!p?null:(0,n.jsxs)(`div`,{className:d.debugBadge,children:[`Type: `,p.type,` | Confidence: `,(p.confidence*100).toFixed(0),`%`]}),(()=>{switch(h){case He.MARKDOWN:return(0,n.jsx)(Kc,{content:g,className:l});case He.HTML:return(0,n.jsx)(`div`,{className:` ${l||``}`,dangerouslySetInnerHTML:{__html:F.default.sanitize(g)}});case He.ADAPTIVE_CARD:return(0,n.jsx)(`div`,{className:`${d.adaptiveCardWrapper} ${l||``}`,children:(0,n.jsx)(xc,{card:typeof g==`string`?JSON.parse(g):g,context:a,theme:s,themeType:o,onInvokeAction:c||(()=>{}),onError:e=>f(`Adaptive Card Error:`,e instanceof Error?e:void 0)})});case He.PLAIN_TEXT:default:return(0,n.jsx)(`div`,{className:`${d.plainText} ${l||``}`,children:g})}})()]})},Yc=t.forwardRef((e,r)=>{let{messages:a,context:o}=e,s=e=>t.isValidElement(e)?e:typeof e==`string`?e.replace(/\{"status"\s*:\s*"executing"\}/gi,``).replace(/\{'status'\s*:\s*'executing'\}/gi,``).trim():e,c=(0,l.css)({flex:`1 1 0`,overflowY:`auto`,overflowX:`hidden`,padding:`16px`,paddingRight:`25px`,"::-webkit-scrollbar":{width:`6px`},"::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorNeutralStroke2}}),u=(0,l.css)({display:`flex`,flexDirection:`column`,gap:`10px`,paddingRight:`30px`});return(0,n.jsx)(`div`,{ref:r,className:c,role:`log`,"aria-live":`polite`,"aria-label":`Chat history`,children:(0,n.jsx)(P.Chat,{className:u,children:a.map((e,t)=>e.senderName===`User`?(0,n.jsx)(P.ChatMyMessage,{status:e.status,author:e.senderName,children:s(e.message)},t):(0,n.jsx)(P.ChatMessage,{decoration:e.status===`failed`?`important`:void 0,avatar:(0,n.jsx)(p.Icon,{icon:`carbon:ibm-consulting-advantage-assistant`,width:`32`,height:`32`,"aria-hidden":`true`,style:{color:i.tokens.colorBrandBackground}}),author:e.senderName,children:(0,n.jsx)(Jc,{content:s(e.message),context:o})},t))})})});Yc.displayName=`ChatList`;var Xc=()=>({container:(0,l.css)({display:`flex`,flexDirection:`column`,padding:`10px`,width:`100%`,height:`600px`,borderRadius:`8px`,boxShadow:`0 2px 10px rgba(0, 0, 0, 0.1)`,overflowY:`auto`,overflowX:`hidden`,position:`relative`,zIndex:1e3}),chatList:(0,l.css)({display:`flex`,flexDirection:`column`,gap:`10px`,paddingRight:`30px`,width:`100%`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorNeutralStroke2}}),chatAIAssistantRoot:(0,l.css)({padding:`10px`,display:`flex`,flexDirection:`column`,position:`relative`,height:`calc(100% - 20px)`}),inputContainer:(0,l.css)({display:`flex`,flexDirection:`row`,flex:1,marginTop:`10px`,gap:`10px`,alignItems:`center`}),input:(0,l.css)({width:`100%`,fontSize:`14px`}),aiAssistantContainer:(0,l.css)({display:`flex`,flexDirection:`column`,height:`100%`,width:`100%`,boxSizing:`border-box`}),aiAssistantInputContainer:(0,l.css)({flex:`0 0 auto`,padding:`16px`,paddingBottom:`20px`,borderTop:`1px solid ${i.tokens.colorNeutralStroke2}`,backgroundColor:i.tokens.colorNeutralBackground1,boxSizing:`border-box`})}),Zc=(e,t)=>{let{getFormatRelative:n}=we(e,t);return n(new Date)},Qc=r=>{let{instrutions:a,timezone:o,locale:s,onResponse:c,openAIConfig:l,theme:u,placeholder:d,context:f}=r,[p,m]=t.useReducer(Wc,{messages:[],inputText:``,isLoading:!0,error:void 0,isRunning:!1}),{messages:h,inputText:g,isLoading:_,error:v,isRunning:y}=p,b=t.useRef([]),x=t.useRef(null),S=Xc(),C=e.n(),{error:w}=z(),{sendMessage:T,cancelRequest:E}=ue({endpoint:l?.endpoint,mcpServers:l?.mcpServers,requestHeaders:l?.requestHeaders}),D=t.useCallback(()=>{x.current&&(x.current.scrollTop=x.current.scrollHeight-x.current.clientHeight)},[]);t.useEffect(()=>{let e=setTimeout(()=>{D()},100);return()=>clearTimeout(e)},[h,D]),t.useEffect(()=>{m({type:`INIT`,welcomeMessage:{message:`Welcome to AI Assistant! How can I help you today?`,senderName:`Assistant`,timeStamp:Zc(o,f?.pageContext?.cultureInfo?.currentUICultureName||`en-US`),status:`received`}})},[]);let O=t.useCallback(async()=>{if(!g.trim())return;let e={message:g,senderName:`User`,timeStamp:Zc(o,f?.pageContext?.cultureInfo?.currentUICultureName||`en-US`),status:`received`},t=g;m({type:`ADD_USER_MESSAGE`,message:e}),m({type:`CLEAR_INPUT`}),m({type:`SET_IS_RUNNING`});let r={message:(0,n.jsx)(Uc,{}),senderName:`Assistant`,timeStamp:Zc(o,f?.pageContext?.cultureInfo?.currentUICultureName||`en-US`),status:`sending`};m({type:`ADD_ASSISTANT_MESSAGE`,message:r});try{let e=await T({instructions:a,input:t,timezone:o,locale:s,history:b.current,mcpServers:l?.mcpServers});if(c){let{message:t,status:n}=await c(e);m({type:`UPDATE_LAST_ASSISTANT_MESSAGE`,message:{...r,message:t||e,status:n||`received`}})}else m({type:`UPDATE_LAST_ASSISTANT_MESSAGE`,message:{...r,message:e,status:`received`}});m({type:`SET_IS_RUNNING`}),b.current.push(t),b.current.push(e)}catch(e){w(`Error during streaming:`,e instanceof Error?e:void 0);let t=`Error occurred while processing your request.`;e instanceof Error&&(t=e.message.includes(`Rate limit`)||e.message.includes(`429`)?`Rate limit exceeded. Please wait a moment before sending another message.`:e.message.includes(`quota`)?`API quota exceeded. Please try again later.`:e.message.includes(`abort`)?`Request was cancelled.`:e.message),m({type:`UPDATE_LAST_ASSISTANT_MESSAGE`,message:{...r,message:t,status:`failed`}}),m({type:`SET_IS_RUNNING`})}},[g,a,s,c,l,o,T,D,f]),k=t.useCallback(e=>{m({type:`SET_INPUT`,inputText:e})},[]);return _?(0,n.jsx)(i.Spinner,{size:`medium`}):v?(0,n.jsx)(_s,{message:C.processingError,messageType:te.INFO}):(0,n.jsxs)(`div`,{className:S.aiAssistantContainer,children:[(0,n.jsx)(Yc,{ref:x,messages:h,context:f}),(0,n.jsx)(`div`,{className:S.aiAssistantInputContainer,children:(0,n.jsx)(Vc,{context:f,value:g,onChange:k,placeholder:d,onSend:O,onAbort:E,theme:u,isRunning:y})})]})},$c=({context:r,onChange:a,value:o,placeholder:s,onSend:c,theme:l,isRunning:u,onAbort:d})=>{let[f,p]=(0,t.useState)(o||``),[m,h]=(0,t.useState)(!1),g=(0,t.useRef)(null),_=e.n(),[v,y]=(0,t.useState)({top:0,left:0}),[b,x]=(0,t.useState)([]),S=(0,t.useRef)({}),C=Bc(),{warn:w,error:T}=z();t.default.useEffect(()=>{g.current?.focus(),p(o||``)},[o]);let E=async e=>{if(S.current[e])return S.current[e];if(!r?.graphClient)return w(`Graph client not available`),[];try{let t=e&&e.length>0?`/users?$filter=startswith(displayName,'${e}')`:`/users?$orderby=displayName&$top=10`,n=(await r.graphClient.get(t))?.value||[],i=r.pageContext?.web?.absoluteUrl||``;return n.forEach(e=>{i?e.avatar=`${i}/_layouts/15/userphoto.aspx?size=S&accountname=${e.mail}`:e.avatar=`https://graph.microsoft.com/v1.0/users/${e.id}/photo/$value`}),S.current[e]=n,n}catch(e){return T(`Error fetching users from Graph:`,e instanceof Error?e:void 0),[]}},D=(0,t.useCallback)(ke(async e=>{let t=await E(e);t.sort((e,t)=>e.displayName.localeCompare(t.displayName)),x(t),h(!0),setTimeout(()=>{g.current?.focus()},0)},300),[r]),O=async e=>{p(e),a&&a(e),g.current?.focus();let t=e.lastIndexOf(`@`);if(t!==-1&&(t===0||e[t-1]===` `)){await D(e.slice(t+1));let n=g.current;if(n){let e=(0,ee.default)(n,t),r=n.getBoundingClientRect();y({top:r.top+e.top+22,left:r.left+e.left+16})}}else h(!1)},k=e=>{let t=f.replace(/@(\w*)$/,`@${e} `);p(t),a&&a(t),h(!1),x([]),g.current?.focus()},A=(0,t.useCallback)(({users:e})=>(0,n.jsxs)(`div`,{className:C.listContainer,children:[e.length===0&&(0,n.jsx)(i.Caption1,{children:_.noUsersFound}),e.map(e=>(0,n.jsx)(i.Card,{size:`small`,appearance:`subtle`,onMouseDown:e=>e.preventDefault(),onClick:()=>k(e.mail),children:(0,n.jsx)(i.Persona,{name:e.displayName,role:`gridcell`,secondaryText:e.mail,avatar:{image:{src:e.avatar}}})},e.id))]}),[C.listContainer,k]);return(0,n.jsxs)(B,{horizontal:!0,width:`100%`,className:C.inputContainer,children:[(0,n.jsx)(Ic,{ref:g,onSend:c,value:f,onChange:O,theme:l,placeholder:s,isRunning:u,onAbort:d}),(0,n.jsxs)(xt,{theme:l,anchorPoint:v,isOpen:m,onClose:()=>h(!1),excludeRefs:[g],children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsx)(i.Body1Strong,{className:C.sugestionsHeader,children:`Sugestions`})}),(0,n.jsx)(i.Divider,{}),(0,n.jsx)(A,{users:b})]})]})},el=()=>({inputContainer:(0,l.css)({marginTop:`auto`,marginLeft:`auto`,"::after":{content:`""`,position:`absolute`,bottom:0,left:0,right:0,borderBottom:`2px solid transparent`,pointerEvents:`none`,borderRadius:i.tokens.borderRadiusMedium}}),listContainer:(0,l.css)({maxHeight:`400px`,overflowY:`auto`,overflowX:`hidden`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorNeutralStroke2}}),sugestionsHeader:(0,l.css)({color:i.tokens.colorBrandBackground})}),tl=e=>{let{width:t,height:n,zoomable:r=!1}=e;return{root:(0,l.css)({position:`relative`,borderRadius:i.tokens.borderRadiusMedium,border:`1px solid ${i.tokens.colorNeutralStroke2}`,width:t??`100%`,height:n??`auto`,...r?{cursor:`grab`}:{}}),svgContainer:(0,l.css)({width:`100%`}),loading:(0,l.css)({color:i.tokens.colorNeutralForeground3,fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase300})}},nl=0,rl=e=>{let[n,r]=t.useState(!1);return t.useEffect(()=>{let t=e.current;if(!t)return;let n=getComputedStyle(t).getPropertyValue(`--colorNeutralBackground1`).trim();if(n&&n.startsWith(`#`)&&n.length>=7){let e=parseInt(n.substring(1,3),16),t=parseInt(n.substring(3,5),16),i=parseInt(n.substring(5,7),16);r(.299*e+.587*t+.114*i<128)}}),n},il=r=>{let{source:a,url:o,theme:s,backgroundColor:c,className:l,styles:u,zoomable:d=!1,onRendered:f,onError:p,loadingContent:m,errorContent:h}=r,g=tl(r),_=t.useRef(null),v=t.useRef(null),y=rl(_),b=s??(y?`dark`:`default`),[x,S]=t.useState(null),[C,w]=t.useState(null),[T,E]=t.useState(!1),[D,O]=t.useState(null),{loading:k,errorMessage:A,noSource:j}=e.g();t.useEffect(()=>{if(a){O(a),w(null);return}if(o){let e=!1;return E(!0),w(null),fetch(o).then(e=>{if(!e.ok)throw Error(`Failed to fetch ${o}: ${e.status} ${e.statusText}`);return e.text()}).then(t=>{e||(O(t),E(!1))}).catch(t=>{if(!e){let e=t instanceof Error?t:Error(String(t));w(e),E(!1),p?.(e)}}),()=>{e=!0}}O(null)},[a,o,p]),t.useEffect(()=>{if(!D){S(null);return}let e=!1,t=`mermaid-diagram-${++nl}`;return I.default.initialize({startOnLoad:!1,theme:b,securityLevel:`loose`,fontFamily:i.tokens.fontFamilyBase,suppressErrorRendering:!0}),I.default.render(t,D).then(({svg:t})=>{e||(S(t),w(null),f?.(t))}).catch(n=>{if(!e){let e=n instanceof Error?n:Error(String(n));w(e),S(null),p?.(e)}document.getElementById(t)?.remove()}),()=>{e=!0,document.getElementById(t)?.remove()}},[D,b,f,p]);let[M,N]=t.useState(1),[ee,P]=t.useState({x:0,y:0}),F=t.useRef(!1),L=t.useRef({x:0,y:0});t.useEffect(()=>{let e=_.current;if(!e||!d)return;let t=e=>{e.preventDefault();let t=e.deltaY>0?-.1:.1;N(e=>Math.min(Math.max(e+t,.25),4))},n=e=>{F.current=!0,L.current={x:e.clientX,y:e.clientY}},r=e=>{if(!F.current)return;let t=e.clientX-L.current.x,n=e.clientY-L.current.y;L.current={x:e.clientX,y:e.clientY},P(e=>({x:e.x+t,y:e.y+n}))},i=()=>{F.current=!1};return e.addEventListener(`wheel`,t,{passive:!1}),e.addEventListener(`mousedown`,n),e.addEventListener(`mousemove`,r),e.addEventListener(`mouseup`,i),e.addEventListener(`mouseleave`,i),()=>{e.removeEventListener(`wheel`,t),e.removeEventListener(`mousedown`,n),e.removeEventListener(`mousemove`,r),e.removeEventListener(`mouseup`,i),e.removeEventListener(`mouseleave`,i)}},[d]),t.useEffect(()=>{N(1),P({x:0,y:0})},[D]),t.useEffect(()=>{let e=v.current;e&&(e.innerHTML=x??``,e.setAttribute(`role`,`img`),e.setAttribute(`aria-label`,`Mermaid diagram`))},[x]);let R=[g.root,l].filter(Boolean).join(` `);if(T)return(0,n.jsx)(H,{className:R,style:u,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:c,children:(0,n.jsx)(H,{className:g.loading,alignItems:`center`,justifyContent:`center`,padding:`xxl`,children:m??(0,n.jsx)(Tt,{size:`small`,label:k})})});if(C)return(0,n.jsx)(H,{className:R,style:u,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:c,children:h?h(C):(0,n.jsx)(_s,{message:A,messageType:te.ERROR})});if(!x)return(0,n.jsx)(H,{className:R,style:u,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:c,children:(0,n.jsx)(H,{className:g.loading,alignItems:`center`,justifyContent:`center`,padding:`xxl`,children:(0,n.jsx)(i.Text,{children:j})})});let ne=d?{transform:`translate(${ee.x}px, ${ee.y}px) scale(${M})`,transformOrigin:`center center`}:void 0;return(0,n.jsx)(H,{ref:_,className:R,style:u,alignItems:`center`,justifyContent:`center`,overflow:d?`auto`:`hidden`,background:c,children:(0,n.jsx)(H,{ref:v,className:g.svgContainer,alignItems:`center`,justifyContent:`center`,style:ne,children:(0,n.jsx)(n.Fragment,{})})})},al={small:i.tokens.borderRadiusSmall,medium:i.tokens.borderRadiusMedium,large:i.tokens.borderRadiusLarge,xLarge:i.tokens.borderRadiusXLarge},ol={brand:{border:i.tokens.colorBrandStroke1,bg:i.tokens.colorBrandBackground2},subtle:{border:i.tokens.colorNeutralStroke1,bg:i.tokens.colorNeutralBackground3},success:{border:i.tokens.colorPaletteGreenBorder2,bg:i.tokens.colorPaletteGreenBackground2},warning:{border:i.tokens.colorPaletteYellowBorder2,bg:i.tokens.colorPaletteYellowBackground2},danger:{border:i.tokens.colorPaletteRedBorder2,bg:i.tokens.colorPaletteRedBackground2},info:{border:i.tokens.colorPaletteBlueBorderActive,bg:i.tokens.colorPaletteBlueBackground2}},sl=e=>ol[e]??{border:e,bg:`transparent`},cl=e=>al[e]??e,ll=(e,n,r)=>{let{border:a,bg:o}=sl(e),s=cl(n),c=r/-2;return{root:(0,t.useMemo)(()=>(0,l.css)({position:`relative`,margin:0,borderInlineStart:`3px solid ${a}`,borderStartEndRadius:s,borderEndEndRadius:s,backgroundColor:o,padding:`${i.tokens.spacingVerticalXL} ${i.tokens.spacingHorizontalXXL}`,fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase300,lineHeight:i.tokens.lineHeightBase300,color:i.tokens.colorNeutralForeground1}),[a,s,o]),icon:(0,t.useMemo)(()=>(0,l.css)({position:`absolute`,color:a,backgroundColor:i.tokens.colorNeutralBackground1,display:`flex`,alignItems:`center`,justifyContent:`center`,top:c,insetInlineStart:c,width:r,height:r,borderRadius:`50%`}),[a,c,r]),cite:(0,t.useMemo)(()=>(0,l.css)({display:`block`,marginTop:i.tokens.spacingVerticalM,opacity:.6,fontSize:i.tokens.fontSizeBase200,lineHeight:i.tokens.lineHeightBase200,fontStyle:`normal`}),[])}},ul=48,dl=`brand`,fl=`medium`,pl=(0,t.memo)(({icon:e,iconSize:t=ul,color:r=dl,radius:a=fl,cite:o,className:s,style:c,children:l})=>{let u=ll(r,a,t);return(0,n.jsxs)(`blockquote`,{className:(0,i.mergeClasses)(u.root,s),style:c,role:`blockquote`,children:[e&&(0,n.jsx)(`span`,{className:u.icon,"aria-hidden":`true`,children:e}),l,o&&(0,n.jsx)(`cite`,{className:u.cite,children:o})]})});pl.displayName=`Blockquote`;var ml={spacingHorizontalXS:i.tokens.spacingHorizontalXS,spacingHorizontalS:i.tokens.spacingHorizontalS,spacingHorizontalM:i.tokens.spacingHorizontalM,spacingHorizontalL:i.tokens.spacingHorizontalL,spacingHorizontalXL:i.tokens.spacingHorizontalXL,spacingHorizontalXXL:i.tokens.spacingHorizontalXXL},hl=e=>ml[e]??e,gl=(e,n,r,i,a,o,s,c,u)=>{let d=hl(o),f=e===`horizontal`,p=(0,t.useMemo)(()=>(0,l.keyframes)({from:{transform:f?`translateX(0)`:`translateY(0)`},to:{transform:f?`translateX(calc(-100% / ${i} - ${d} / ${i}))`:`translateY(calc(-100% / ${i} - ${d} / ${i}))`}}),[f,i,d]);return{root:(0,t.useMemo)(()=>(0,l.css)({position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:f?`row`:`column`,maxHeight:`100%`,maxWidth:`100%`,...s&&{"&::before, &::after":{content:`""`,position:`absolute`,zIndex:1,pointerEvents:`none`},...f?{"&::before":{top:0,bottom:0,left:0,width:u,background:`linear-gradient(to right, ${c}, transparent)`},"&::after":{top:0,bottom:0,right:0,width:u,background:`linear-gradient(to left, ${c}, transparent)`}}:{"&::before":{left:0,right:0,top:0,height:u,background:`linear-gradient(to bottom, ${c}, transparent)`},"&::after":{left:0,right:0,bottom:0,height:u,background:`linear-gradient(to top, ${c}, transparent)`}}}}),[f,s,c,u]),content:(0,t.useMemo)(()=>(0,l.css)({display:`flex`,flexDirection:f?`row`:`column`,gap:d,animation:`${p} ${a}ms linear infinite`,animationDirection:n?`reverse`:`normal`,...r&&{"*:hover > &":{animationPlayState:`paused`}}}),[f,d,p,a,n,r]),group:(0,t.useMemo)(()=>(0,l.css)({display:`flex`,flexShrink:0,flexDirection:f?`row`:`column`,gap:d}),[f,d])}},_l=4,vl=1e5,yl=`spacingHorizontalM`,bl=`5%`,xl=(0,t.memo)(({children:e,orientation:r=`horizontal`,reverse:a=!1,pauseOnHover:o=!1,repeat:s=_l,duration:c=vl,gap:l=yl,fadeEdges:u=!0,fadeEdgeColor:d=i.tokens.colorNeutralBackground1,fadeEdgeSize:f=bl,className:p,style:m})=>{let h=gl(r,a,o,s,c,l,u,d,f),g=(0,t.useMemo)(()=>Array.from({length:s},(t,r)=>(0,n.jsx)(`div`,{className:h.group,...r>0?{"aria-hidden":!0}:{},children:e},r)),[s,e,h.group]);return(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(h.root,p),style:m,role:`marquee`,"aria-live":`off`,children:(0,n.jsx)(`div`,{className:h.content,children:g})})});xl.displayName=`Marquee`;var Sl=e=>{let{maxHeight:n,expanded:r,contentHeight:a,hasSpoiler:o,transitionDuration:s}=e;return(0,t.useMemo)(()=>({root:(0,l.css)({position:`relative`,...o&&{marginBottom:28}}),content:(0,l.css)({display:`flex`,flexDirection:`column`,overflow:`hidden`,maxHeight:r?a>0?a:void 0:n,transition:`max-height ${s}ms ease`}),control:(0,l.css)({position:`absolute`,insetInlineStart:0,top:`100%`,height:28,padding:0,fontWeight:Number(i.tokens.fontWeightSemibold)})}),[n,r,a,o,s])},Cl=()=>{let e=(0,t.useRef)(null),[n,r]=(0,t.useState)(0);return(0,t.useEffect)(()=>{if(!e.current)return;let t=new ResizeObserver(([e])=>{r(e.contentRect.height)});return t.observe(e.current),()=>t.disconnect()},[]),{ref:e,height:n}},wl=t.default.memo(({children:e,maxHeight:r=100,showLabel:a,hideLabel:o,defaultExpanded:s=!1,expanded:c,onExpandedChange:l,transitionDuration:u=200,showAriaLabel:d,hideAriaLabel:f,controlRef:p,className:m,style:h})=>{let g=(0,t.useId)(),_=`${g}-region`,{ref:v,height:y}=Cl(),b=c!==void 0,[x,S]=(0,t.useState)(s),C=b?c:x,w=r<y,T=Sl({maxHeight:r,expanded:C,contentHeight:y,hasSpoiler:w,transitionDuration:u}),E=(0,t.useCallback)(()=>{let e=!C;b||S(e),l?.(e)},[C,b,l]),D=C?f:d;return(0,n.jsxs)(`div`,{id:g,className:(0,i.mergeClasses)(T.root,m),style:h,children:[w&&(0,n.jsx)(i.Link,{ref:p,className:T.control,onClick:E,"aria-expanded":C,"aria-controls":_,...D?{"aria-label":D}:{},children:C?o:a}),(0,n.jsx)(`div`,{className:T.content,role:`region`,id:_,children:(0,n.jsx)(`div`,{ref:v,children:e})})]})});wl.displayName=`Spoiler`;var Tl={none:`0`,small:i.tokens.borderRadiusSmall,medium:i.tokens.borderRadiusMedium,large:i.tokens.borderRadiusLarge,xLarge:i.tokens.borderRadiusXLarge,circular:i.tokens.borderRadiusCircular},El=(e,n)=>(0,t.useMemo)(()=>{let t=Tl[n]??n;return{root:(0,l.css)({backgroundImage:`url(${CSS.escape?CSS.escape(e):e})`,backgroundSize:`cover`,backgroundPosition:`center`,display:`block`,width:`100%`,border:0,textDecoration:`none`,borderRadius:t})}},[e,n]),Dl=t.default.memo(({src:e,children:t,radius:r=`none`,className:a,style:o})=>(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(El(e,r).root,a),style:o,role:`img`,"aria-label":e,children:t}));Dl.displayName=`BackgroundImage`;var Ol=({bulletSize:e,lineWidth:n,align:r})=>(0,t.useMemo)(()=>{let t=e/2+n/2;return{root:(0,l.css)({position:`relative`,...r===`left`&&{paddingInlineStart:t},...r===`right`&&{paddingInlineEnd:t}})}},[e,n,r]),kl=e=>{let{bulletSize:n,lineWidth:r,align:a,active:o,lineActive:s,isLast:c,isFirst:u,color:d,lineVariant:f,hasBulletContent:p}=e;return(0,t.useMemo)(()=>{let e=n/2+r/2,t=d||i.tokens.colorBrandForeground1,m=i.tokens.colorNeutralStroke1;return{item:(0,l.css)({position:`relative`,color:i.tokens.colorNeutralForeground1,...!u&&{marginTop:i.tokens.spacingVerticalXL},...!c&&{"&::before":{content:`""`,position:`absolute`,top:0,bottom:`calc(${i.tokens.spacingVerticalXL} * -1)`,pointerEvents:`none`,borderInlineStart:`${r}px ${f} ${s?t:m}`,...a===`left`&&{insetInlineStart:-r,insetInlineEnd:`auto`},...a===`right`&&{insetInlineStart:`auto`,insetInlineEnd:-r}}}}),bullet:(0,l.css)({width:n,height:n,borderRadius:`50%`,border:`${r}px solid ${o?t:m}`,backgroundColor:o?p?t:i.tokens.colorNeutralBackground1:p?i.tokens.colorNeutralStroke2:i.tokens.colorNeutralBackground1,position:`absolute`,top:0,display:`flex`,alignItems:`center`,justifyContent:`center`,color:o?i.tokens.colorNeutralForegroundOnBrand:i.tokens.colorNeutralForeground2,boxSizing:`border-box`,...a===`left`&&{insetInlineStart:-(n/2+r/2)},...a===`right`&&{insetInlineEnd:-(n/2+r/2)}}),body:(0,l.css)({...a===`left`&&{paddingInlineStart:e+8,textAlign:`left`},...a===`right`&&{paddingInlineEnd:e+8,textAlign:`right`}}),title:(0,l.css)({lineHeight:`1 !important`,marginBottom:i.tokens.spacingVerticalXXS,"& span":{lineHeight:`1 !important`}})}},[n,r,a,o,s,c,u,d,f,p])},Al=t.default.memo(({title:e,children:t,bullet:r,color:a,lineVariant:o=`solid`,active:s,lineActive:c,__active:l,__lineActive:u,__align:d=`left`,__bulletSize:f=16,__lineWidth:p=2,__color:m,__isFirst:h=!1,__isLast:g=!1,className:_,style:v})=>{let y=kl({bulletSize:f,lineWidth:p,align:d,active:s??l??!1,lineActive:c??u??!1,isLast:g,isFirst:h,color:a||m,lineVariant:o,hasBulletContent:!!r});return(0,n.jsxs)(`div`,{className:(0,i.mergeClasses)(y.item,_),style:v,children:[(0,n.jsx)(`div`,{className:y.bullet,children:r}),(0,n.jsxs)(`div`,{className:y.body,children:[e&&(0,n.jsx)(i.Text,{block:!0,weight:`semibold`,size:300,className:y.title,children:e}),t]})]})});Al.displayName=`TimelineItem`;var jl=t.default.memo(({children:e,active:r=-1,color:a,bulletSize:o=16,lineWidth:s=2,align:c=`left`,reverseActive:l=!1,className:u,style:d})=>{let f=Ol({bulletSize:o,lineWidth:s,align:c}),p=t.Children.toArray(e),m=p.map((e,n)=>{if(!t.default.isValidElement(e))return e;let i=e.props,u=l?r>=p.length-n-1:r>=n,d=l?r>=p.length-n-1:r-1>=n;return(0,t.cloneElement)(e,{__active:i.active===void 0?u:i.active,__lineActive:i.lineActive===void 0?d:i.lineActive,__align:c,__bulletSize:o,__lineWidth:s,__color:a,__isFirst:n===0,__isLast:n===p.length-1})});return(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(f.root,u),style:d,children:m})});jl.displayName=`Timeline`;var Ml=Object.assign(jl,{Item:Al}),Nl=({orientation:e,iconSize:n,iconPosition:r})=>(0,t.useMemo)(()=>({root:(0,l.css)({display:`flex`,flexDirection:`column`}),steps:(0,l.css)({display:`flex`,flexDirection:e===`horizontal`?`row`:`column`,alignItems:e===`horizontal`?`flex-start`:void 0,gap:0}),content:(0,l.css)({paddingTop:i.tokens.spacingVerticalL})}),[e,n,r]),Pl=e=>{let{iconSize:n,state:r,color:a,orientation:o,iconPosition:s,allowClick:c,isLast:u,separatorActive:d}=e;return(0,t.useMemo)(()=>{let e=a||i.tokens.colorBrandForeground1,t=i.tokens.colorNeutralStroke1;return{step:(0,l.css)({cursor:c?`pointer`:`default`,...o===`horizontal`&&{display:`grid`,gridTemplateColumns:u?`${n}px`:`${n}px 1fr`,gridTemplateRows:`auto auto`,flex:u?`0 0 auto`:`1 1 0`},...o===`vertical`&&{display:`flex`,flexDirection:s===`right`?`row-reverse`:`row`,gap:i.tokens.spacingHorizontalS,alignItems:`flex-start`},"&:focus-visible":{outline:`2px solid ${i.tokens.colorStrokeFocus2}`,outlineOffset:2,borderRadius:i.tokens.borderRadiusMedium}}),stepHeader:(0,l.css)({...o===`horizontal`&&{display:`contents`},...o===`vertical`&&{display:`flex`,flexDirection:`column`,alignItems:`center`}}),stepIcon:(0,l.css)({width:n,height:n,minWidth:n,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontWeight:i.tokens.fontWeightBold,fontSize:n*.36,boxSizing:`border-box`,flexShrink:0,transition:`background-color 150ms ease, border-color 150ms ease, color 150ms ease`,...o===`horizontal`&&{gridColumn:1,gridRow:1},...r===`stepCompleted`&&{backgroundColor:e,border:`2px solid ${e}`,color:i.tokens.colorNeutralForegroundOnBrand},...r===`stepProgress`&&{backgroundColor:i.tokens.colorNeutralBackground1,border:`2px solid ${e}`,color:e},...r===`stepInactive`&&{backgroundColor:i.tokens.colorNeutralBackground1,border:`2px solid ${t}`,color:i.tokens.colorNeutralForeground3}}),separator:(0,l.css)({transition:`background-color 150ms ease`,backgroundColor:d?e:t,...o===`horizontal`&&{gridColumn:2,gridRow:1,alignSelf:`center`,height:2,marginInline:i.tokens.spacingHorizontalS},...o===`vertical`&&{flex:1,width:2,minHeight:i.tokens.spacingVerticalL,marginBlock:i.tokens.spacingVerticalXXS}}),stepBody:(0,l.css)({display:`flex`,flexDirection:`column`,...o===`horizontal`&&{gridColumn:1,gridRow:2,alignItems:`center`,justifySelf:`center`,width:`max-content`,textAlign:`center`,whiteSpace:`nowrap`,marginTop:i.tokens.spacingVerticalXS},...o===`vertical`&&{paddingTop:2}}),stepLabel:(0,l.css)({lineHeight:1.3}),stepDescription:(0,l.css)({marginTop:i.tokens.spacingVerticalXXS})}},[n,r,a,o,s,c,u,d])},Fl=t.default.memo(({label:e,description:r,icon:a,completedIcon:o,progressIcon:s,color:c,withIcon:l=!0,allowStepSelect:u=!0,loading:f=!1,children:p,className:m,style:h,__step:g=0,__state:_=`stepInactive`,__color:v,__iconSize:y=34,__orientation:b=`horizontal`,__iconPosition:x=`left`,__completedIcon:S,__progressIcon:C,__allowClick:w=!1,__onStepClick:T,__isLast:E=!1,__separatorActive:D=!1})=>{let O=c||v,k=w&&u,A=Pl({iconSize:y,state:_,color:O,orientation:b,iconPosition:x,allowClick:k,isLast:E,separatorActive:D}),j=t.default.useCallback(()=>{k&&T&&T(g)},[k,T,g]),M=t.default.useCallback(e=>{(e.key===`Enter`||e.key===` `)&&k&&T&&(e.preventDefault(),T(g))},[k,T,g]),N=()=>l?f?(0,n.jsx)(i.Spinner,{size:`tiny`}):_===`stepCompleted`?o||S||(0,n.jsx)(d.Checkmark12Regular,{}):_===`stepProgress`&&(s||C)?s||C:a||(0,n.jsx)(i.Text,{size:200,weight:`bold`,children:g+1}):null;return(0,n.jsxs)(`div`,{className:(0,i.mergeClasses)(A.step,m),style:h,onClick:j,onKeyDown:M,...k?{role:`button`}:{},tabIndex:k?0:void 0,...k?{"aria-label":typeof e==`string`?`Step ${g+1}: ${e}`:`Step ${g+1}`}:{},children:[(0,n.jsxs)(`div`,{className:A.stepHeader,children:[(0,n.jsx)(`div`,{className:A.stepIcon,children:N()}),!E&&(0,n.jsx)(`div`,{className:A.separator})]}),(e||r)&&(0,n.jsxs)(`div`,{className:A.stepBody,children:[e&&(0,n.jsx)(i.Text,{weight:`semibold`,size:300,className:A.stepLabel,children:e}),r&&(0,n.jsx)(i.Text,{size:200,className:A.stepDescription,children:r})]})]})});Fl.displayName=`StepperStep`;var Il=e=>null;Il.displayName=`StepperCompleted`;var Ll=t.default.memo(({children:e,active:r,onStepClick:a,color:o,iconSize:s=34,orientation:c=`horizontal`,iconPosition:l=`left`,allowNextStepsSelect:u=!0,completedIcon:d,progressIcon:f,className:p,style:m})=>{let h=Nl({orientation:c,iconSize:s,iconPosition:l}),{stepElements:g,completedContent:_,activeStepContent:v}=(0,t.useMemo)(()=>{let n=[],i=null,p=null,m=0;return t.Children.forEach(e,e=>{if(!t.default.isValidElement(e))return;if(e.type?.displayName===`StepperCompleted`){i=e.props.children;return}let h=m,g=h<r?`stepCompleted`:h===r?`stepProgress`:`stepInactive`,_=(0,t.cloneElement)(e,{__step:h,__state:g,__color:o,__iconSize:s,__orientation:c,__iconPosition:l,__completedIcon:d,__progressIcon:f,__allowClick:!!a&&(g===`stepCompleted`||u&&g===`stepInactive`||g===`stepProgress`),__onStepClick:a,__isLast:!1,__separatorActive:h<r}),v=e.props;h===r&&v.children&&(p=v.children),n.push(_),m++}),{stepElements:n,completedContent:i,activeStepContent:p}},[e,r,a,o,s,c,l,u,d,f]),y=(0,t.useMemo)(()=>g.length===0?g:g.map((e,n)=>n===g.length-1&&t.default.isValidElement(e)?(0,t.cloneElement)(e,{__isLast:!0}):e),[g]),b=r>=g.length&&_;return(0,n.jsxs)(`div`,{className:(0,i.mergeClasses)(h.root,p),style:m,children:[(0,n.jsx)(`div`,{className:h.steps,role:`group`,"aria-label":`Progress steps`,children:y}),(b||v)&&(0,n.jsx)(`div`,{className:h.content,children:b?_:v})]})});Ll.displayName=`Stepper`;var Rl=Object.assign(Ll,{Step:Fl,Completed:Il}),zl={content:``,isCached:!1,status:`idle`},Bl=()=>(0,g.atom)(zl),Vl=new Map,Hl=()=>{Vl.clear()},Ul=({src:e,cacheRequests:n,fetchOptions:r,onError:i})=>{let a=(0,t.useRef)(i),o=(0,t.useRef)(r);a.current=i,o.current=r;let s=(0,t.useRef)(Bl()),c=(0,g.useAtomValue)(s.current),l=(0,g.useSetAtom)(s.current);return(0,t.useEffect)(()=>{if(typeof window>`u`){l({content:``,isCached:!1,status:`unsupported`});return}if(!e){l({content:``,isCached:!1,status:`failed`}),a.current?.(Error(`Missing src`));return}let t=/^data:image\/svg[^,]*?(;base64)?,(.*)/.exec(e);if(t){try{l({content:t[1]?window.atob(t[2]):decodeURIComponent(t[2]),isCached:!1,status:`loaded`})}catch{l({content:``,isCached:!1,status:`failed`}),a.current?.(Error(`Invalid data URI`))}return}if(e.includes(`<svg`)){l({content:e,isCached:!1,status:`loaded`});return}if(n&&Vl.has(e)){l({content:Vl.get(e),isCached:!0,status:`loaded`});return}l({content:``,isCached:!1,status:`loading`});let r=new AbortController;return fetch(e,{...o.current,signal:r.signal}).then(async t=>{if(!t.ok)throw Error(`Failed to fetch SVG: ${t.status}`);let[r]=(t.headers.get(`content-type`)??``).split(/ ?; ?/);if(r&&![`image/svg+xml`,`text/plain`,`application/xml`].some(e=>r.includes(e)))throw Error(`Invalid content type: ${r}`);let i=await t.text();n&&Vl.set(e,i),l({content:i,isCached:!1,status:`loaded`})}).catch(e=>{e.name!==`AbortError`&&(l({content:``,isCached:!1,status:`failed`}),a.current?.(e))}),()=>r.abort()},[e,n]),c},Wl=e=>{let t=``;for(let n=0;n<e;n++)t+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`.charAt(Math.floor(Math.random()*62));return t},Gl=e=>{e.querySelectorAll(`script`).forEach(e=>e.remove()),e.querySelectorAll(`foreignObject`).forEach(e=>e.remove());let t=[e,...Array.from(e.querySelectorAll(`*`))];for(let e of t)for(let t of Array.from(e.attributes))(/^on/i.test(t.name)||/^\s*javascript\s*:/i.test(t.value))&&e.removeAttribute(t.name)},Kl=(e,t,n)=>{let r=[...new XMLSerializer().serializeToString(e).matchAll(/\bid=["']([^"']+)["']/g)],i=[...new Set(r.map(e=>e[1]))];if(!i.length)return;i.sort((e,t)=>t.length-e.length);let a=[e,...Array.from(e.querySelectorAll(`*`))];for(let e of a)for(let r of Array.from(e.attributes)){let a=r.value,o=!1;for(let e of i){let i=`${e}__${t}`,s=e.replace(/[$()*+.?[\\\]^{|}]/g,`\\$&`);r.name===`id`&&a===e&&(a=i,o=!0);let c=RegExp(`url\\((['"]?)#${s}\\1\\)`,`g`);c.test(a)&&(a=a.replace(c,`url($1${n}#${i}$1)`),o=!0),[`href`,`xlink:href`].includes(r.name)&&a===`#${e}`&&(a=`${n}#${i}`,o=!0)}o&&e.setAttribute(r.name,a)}},ql=e=>{let{content:t,preProcessor:n,title:r,description:i,uniquifyIDs:a=!1,uniqueHash:o,baseURL:s=``,width:c,height:l}=e,u=n?n(t):t,d=new DOMParser().parseFromString(u,`image/svg+xml`);if(d.querySelector(`parsererror`))return null;let f=d.querySelector(`svg`);if(!f)return null;if(Gl(f),r!==void 0){let e=f.querySelector(`title`);if(e&&e.remove(),r){let e=d.createElementNS(`http://www.w3.org/2000/svg`,`title`);e.textContent=r,f.prepend(e)}}if(i){let e=f.querySelector(`desc`);e&&e.remove();let t=d.createElementNS(`http://www.w3.org/2000/svg`,`desc`);t.textContent=i;let n=f.querySelector(`title`);n?n.after(t):f.prepend(t)}return c!==void 0&&f.setAttribute(`width`,String(c)),l!==void 0&&f.setAttribute(`height`,String(l)),a&&Kl(f,o||Wl(8),s),new XMLSerializer().serializeToString(f)},Jl=()=>(0,t.useMemo)(()=>({root:(0,l.css)({display:`inline-flex`,lineHeight:0,"& svg":{display:`block`}})}),[]),Yl=t.default.memo(({src:e,cacheRequests:r=!0,title:a,description:o,uniquifyIDs:s=!1,uniqueHash:c,baseURL:l,preProcessor:u,fetchOptions:d,loader:f,children:p,innerRef:m,onLoad:h,onError:g,width:_,height:v,className:y,style:b})=>{let x=Jl(),S=(0,t.useRef)(null),C=(0,t.useRef)(h);C.current=h;let{content:w,status:T,isCached:E}=Ul({src:e,cacheRequests:r,fetchOptions:d,onError:g}),D=(0,t.useMemo)(()=>w?ql({content:w,preProcessor:u,title:a,description:o,uniquifyIDs:s,uniqueHash:c,baseURL:l,width:_,height:v}):null,[w,u,a,o,s,c,l,_,v]);return(0,t.useEffect)(()=>{if(!S.current||!D)return;let e=S.current.querySelector(`svg`);!e||!m||(typeof m==`function`?m(e):m.current=e)},[D,m]),(0,t.useEffect)(()=>{D&&T===`loaded`&&C.current?.(e,E)},[D,T,e,E]),T===`loading`||T===`idle`&&!D?(0,n.jsx)(n.Fragment,{children:f??null}):T===`failed`||T===`unsupported`||!D?(0,n.jsx)(n.Fragment,{children:p??null}):(0,n.jsx)(`div`,{ref:S,className:(0,i.mergeClasses)(x.root,y),style:b,dangerouslySetInnerHTML:{__html:D}})});Yl.displayName=`InlineSVG`;var Xl={numeric:/[^\d]/g,alpha:/[^a-zA-Z]/g,alphanumeric:/[^a-zA-Z0-9]/g},Zl={numeric:`numeric`,alpha:`text`,alphanumeric:`text`,none:`text`},Ql=(e,t,n,r)=>{let i=e.replace(/\s/g,``);return n===`none`?r&&(i=r(i)):i=i.replace(Xl[n],``),i.slice(0,t)},$l=e=>(0,g.atom)({value:e,focusedIndex:-1}),eu=e=>{let{length:n,value:r,defaultValue:i=``,validationType:a,sanitizeValue:o,onChange:s,onComplete:c,disabled:l=!1,readOnly:u=!1}=e,d=r!==void 0,f=(0,t.useRef)(s),p=(0,t.useRef)(c);f.current=s,p.current=c;let m=(0,t.useRef)($l(Ql(i,n,a,o))),h=(0,g.useAtomValue)(m.current),_=(0,g.useSetAtom)(m.current),v=d?Ql(r,n,a,o):h.value,y=(0,t.useRef)([]),b=(0,t.useCallback)(e=>{let t=Math.max(0,Math.min(e,n-1));y.current[t]?.focus(),y.current[t]?.select()},[n]),x=(0,t.useCallback)(e=>{let t=Ql(e,n,a,o);d||_(e=>({...e,value:t})),f.current?.(t),t.length===n&&p.current?.(t)},[n,a,o,d,_]),S=(0,t.useCallback)((e,t)=>{if(l||u)return;let r=t.currentTarget.value,i=Ql(r,n,a,o);if(i===``){x(v.slice(0,e)+v.slice(e+1));return}x(Ql(`${v.slice(0,e)}${i}${v.slice(e+i.length)}`,n,a,o));let s=Math.min(e+i.length,n-1);requestAnimationFrame(()=>b(s))},[v,n,a,o,l,u,x,b]),C=(0,t.useCallback)((e,t)=>{if(l)return;let{key:r}=t;if(r===`Backspace`){if(t.preventDefault(),u)return;(v[e]??``)===``?e>0&&(x(v.slice(0,e-1)+v.slice(e)),b(e-1)):(x(v.slice(0,e)+v.slice(e+1)),b(e));return}if(r===`Delete`){if(t.preventDefault(),u)return;x(v.slice(0,e)+v.slice(e+1));return}if(r===`ArrowLeft`){t.preventDefault(),b(Math.max(0,e-1));return}if(r===`ArrowRight`){t.preventDefault(),b(Math.min(n-1,e+1));return}if(r===`Home`){t.preventDefault(),b(0);return}if(r===`End`){t.preventDefault(),b(Math.max(v.length-1,0));return}},[v,n,l,u,x,b]),w=(0,t.useCallback)((e,t)=>{if(l||u)return;t.preventDefault();let r=Ql(t.clipboardData?.getData(`text/plain`)??``,n,a,o);if(!r)return;x(Ql(`${v.slice(0,e)}${r}`,n,a,o));let i=Math.min(e+r.length,n-1);requestAnimationFrame(()=>b(i))},[v,n,a,o,l,u,x,b]),T=(0,t.useCallback)(e=>{if(e>v.length){b(Math.min(v.length,n-1));return}_(t=>({...t,focusedIndex:e})),y.current[e]?.select()},[v.length,n,b,_]),E=(0,t.useCallback)(()=>{_(e=>({...e,focusedIndex:-1}))},[_]),D=(0,t.useMemo)(()=>Zl[a],[a]);return{value:v,focusedIndex:h.focusedIndex,inputRefs:y,inputMode:D,handleChange:S,handleKeyDown:C,handlePaste:w,handleFocus:T,handleBlur:E,focusSlot:b}},tu=e=>(0,t.useMemo)(()=>({root:(0,l.css)({display:`flex`,flexDirection:`column`,gap:i.tokens.spacingVerticalXS}),inputGroup:(0,l.css)({display:`flex`,alignItems:`center`,gap:e}),input:(0,l.css)({textAlign:`center`,fontFamily:i.tokens.fontFamilyBase,fontWeight:Number(i.tokens.fontWeightSemibold),color:i.tokens.colorNeutralForeground1,backgroundColor:i.tokens.colorNeutralBackground1,border:`1px solid ${i.tokens.colorNeutralStroke1}`,borderRadius:i.tokens.borderRadiusMedium,outline:`none`,transition:`border-color 0.15s ease, box-shadow 0.15s ease`,caretColor:i.tokens.colorBrandForeground1,"&::placeholder":{color:i.tokens.colorNeutralForeground4},"&:hover:not(:disabled)":{borderColor:i.tokens.colorBrandStroke1},"&:focus":{borderColor:i.tokens.colorBrandStroke1,boxShadow:`0 0 0 2px ${i.tokens.colorBrandBackground2}`}}),inputSmall:(0,l.css)({width:32,height:32,fontSize:i.tokens.fontSizeBase300}),inputMedium:(0,l.css)({width:40,height:40,fontSize:i.tokens.fontSizeBase400}),inputLarge:(0,l.css)({width:48,height:48,fontSize:i.tokens.fontSizeBase500}),inputFilled:(0,l.css)({borderColor:i.tokens.colorBrandStroke1}),inputActive:(0,l.css)({borderColor:i.tokens.colorBrandStroke1,boxShadow:`0 0 0 2px ${i.tokens.colorBrandBackground2}`}),inputDisabled:(0,l.css)({backgroundColor:i.tokens.colorNeutralBackgroundDisabled,borderColor:i.tokens.colorNeutralStrokeDisabled,color:i.tokens.colorNeutralForegroundDisabled,cursor:`not-allowed`}),inputError:(0,l.css)({borderColor:i.tokens.colorPaletteRedBorder2,"&:focus":{borderColor:i.tokens.colorPaletteRedBorder2,boxShadow:`0 0 0 2px ${i.tokens.colorPaletteRedBackground2}`}}),inputSuccess:(0,l.css)({borderColor:i.tokens.colorPaletteGreenBorder2,"&:focus":{borderColor:i.tokens.colorPaletteGreenBorder2,boxShadow:`0 0 0 2px ${i.tokens.colorPaletteGreenBackground2}`}}),inputWarning:(0,l.css)({borderColor:i.tokens.colorPaletteYellowBorder2,"&:focus":{borderColor:i.tokens.colorPaletteYellowBorder2,boxShadow:`0 0 0 2px ${i.tokens.colorPaletteYellowBackground2}`}}),separator:(0,l.css)({display:`flex`,alignItems:`center`,justifyContent:`center`,color:i.tokens.colorNeutralForeground3,fontSize:i.tokens.fontSizeBase400,fontWeight:Number(i.tokens.fontWeightSemibold),userSelect:`none`,flexShrink:0,width:12}),label:(0,l.css)({fontSize:i.tokens.fontSizeBase300,fontWeight:Number(i.tokens.fontWeightSemibold),color:i.tokens.colorNeutralForeground1,fontFamily:i.tokens.fontFamilyBase}),message:(0,l.css)({fontSize:i.tokens.fontSizeBase200,fontFamily:i.tokens.fontFamilyBase}),messageError:(0,l.css)({color:i.tokens.colorPaletteRedForeground1}),messageWarning:(0,l.css)({color:i.tokens.colorPaletteYellowForeground2}),messageInfo:(0,l.css)({color:i.tokens.colorNeutralForeground3}),messageSuccess:(0,l.css)({color:i.tokens.colorPaletteGreenForeground1})}),[e]),nu=t.default.memo(({length:e,value:r,defaultValue:a,onChange:o,onComplete:s,validationType:c=`numeric`,sanitizeValue:l,mask:u=!1,autoComplete:d=`one-time-code`,disabled:f=!1,readOnly:p=!1,label:m,message:h,messageType:g,required:_=!1,size:v=`medium`,gap:y=8,separatorAfter:b,separator:x=`–`,placeholder:S=``,className:C,style:w})=>{let T=tu(y),{value:E,focusedIndex:D,inputRefs:O,inputMode:k,handleChange:A,handleKeyDown:j,handlePaste:M,handleFocus:N,handleBlur:ee}=eu({length:e,value:r,defaultValue:a,validationType:c,sanitizeValue:l,onChange:o,onComplete:s,disabled:f,readOnly:p}),P=(0,t.useMemo)(()=>new Set(b??[]),[b]),F=v===`small`?T.inputSmall:v===`large`?T.inputLarge:T.inputMedium,I=g?T[`message${g.charAt(0).toUpperCase()}${g.slice(1)}`]:T.messageInfo,L=g===`error`?T.inputError:g===`success`?T.inputSuccess:g===`warning`?T.inputWarning:void 0,R=(0,t.useMemo)(()=>{let t=[];for(let r=0;r<e;r++){let a=E[r]??``,o=D===r,s=a!==``;t.push((0,n.jsx)(`input`,{ref:e=>{O.current[r]=e},type:u?`password`:`text`,inputMode:k,autoComplete:r===0?d:`off`,autoCorrect:`off`,spellCheck:!1,maxLength:r===0?e:1,tabIndex:r===0||o?0:-1,disabled:f,readOnly:p,required:_,placeholder:S,"aria-label":`Digit ${r+1} of ${e}`,value:a,className:(0,i.mergeClasses)(T.input,F,s&&T.inputFilled,o&&T.inputActive,f&&T.inputDisabled,L),onChange:e=>A(r,e),onKeyDown:e=>j(r,e),onPaste:e=>M(r,e),onFocus:()=>N(r),onBlur:ee},r)),P.has(r)&&t.push((0,n.jsx)(`span`,{className:T.separator,"aria-hidden":!0,children:x},`sep-${r}`))}return t},[e,E,D,u,k,d,f,p,_,S,T,F,L,P,x,A,j,M,N,ee,O]);return(0,n.jsxs)(`div`,{className:(0,i.mergeClasses)(T.root,C),style:w,role:`group`,"aria-label":m??`One-time password`,children:[m&&(0,n.jsxs)(`label`,{className:T.label,children:[m,_&&(0,n.jsx)(`span`,{"aria-hidden":!0,children:` *`})]}),(0,n.jsx)(`div`,{className:T.inputGroup,children:R}),h&&(0,n.jsx)(`span`,{className:(0,i.mergeClasses)(T.message,I),role:`status`,children:h})]})});nu.displayName=`OTPField`;var ru=e=>{let{template:t}=e;return(0,n.jsx)(n.Fragment,{children:t})},iu=()=>({toolbar:l.css`
|
|
363
|
+
`}},Wc=()=>{let e=Uc();return(0,n.jsxs)(`div`,{className:e.root,role:`status`,"aria-label":`Loading response`,children:[(0,n.jsx)(`div`,{className:`${e.dot} ${e.dot1}`}),(0,n.jsx)(`div`,{className:`${e.dot} ${e.dot2}`}),(0,n.jsx)(`div`,{className:`${e.dot} ${e.dot3}`})]})},Gc=(e,t)=>{switch(t.type){case`INIT`:return{...e,messages:[t.welcomeMessage],isLoading:!1};case`SET_INPUT`:return{...e,inputText:t.inputText};case`ADD_USER_MESSAGE`:return{...e,messages:[...e.messages,t.message]};case`ADD_ASSISTANT_MESSAGE`:return{...e,messages:[...e.messages,t.message]};case`UPDATE_LAST_ASSISTANT_MESSAGE`:{let n=[...e.messages],r=n.length-1;return r>=0&&n[r].senderName===`Assistant`&&(n[r]=t.message),{...e,messages:n}}case`SET_ERROR`:return{...e,error:t.error};case`CLEAR_INPUT`:return{...e,inputText:``};case`SET_IS_RUNNING`:return{...e,isRunning:!e.isRunning};default:return e}},Kc=()=>({markdown:(0,l.css)({fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase300,lineHeight:i.tokens.lineHeightBase300,color:i.tokens.colorNeutralForeground1,"& p":{marginTop:`0`,marginBottom:i.tokens.spacingVerticalM},"& h1, & h2, & h3, & h4, & h5, & h6":{marginTop:i.tokens.spacingVerticalL,marginBottom:i.tokens.spacingVerticalM,fontWeight:i.tokens.fontWeightSemibold},"& h1":{fontSize:i.tokens.fontSizeBase500},"& h2":{fontSize:i.tokens.fontSizeBase400},"& h3":{fontSize:i.tokens.fontSizeBase300},"& ul, & ol":{marginTop:`0`,marginBottom:i.tokens.spacingVerticalM,paddingLeft:i.tokens.spacingHorizontalXXL},"& li":{marginBottom:i.tokens.spacingVerticalXS},"& code":{fontFamily:i.tokens.fontFamilyMonospace,fontSize:i.tokens.fontSizeBase200,backgroundColor:i.tokens.colorNeutralBackground3,padding:`2px 4px`,borderRadius:i.tokens.borderRadiusSmall},"& pre":{backgroundColor:i.tokens.colorNeutralBackground3,padding:i.tokens.spacingVerticalM,borderRadius:i.tokens.borderRadiusMedium,overflowX:`auto`,marginBottom:i.tokens.spacingVerticalM},"& pre code":{backgroundColor:`transparent`,padding:`0`},"& table":{borderCollapse:`collapse`,width:`100%`,marginBottom:i.tokens.spacingVerticalM,border:`1px solid ${i.tokens.colorNeutralStroke1}`},"& thead":{backgroundColor:i.tokens.colorNeutralBackground3},"& th":{padding:i.tokens.spacingVerticalS+` `+i.tokens.spacingHorizontalM,textAlign:`left`,fontWeight:i.tokens.fontWeightSemibold,borderBottom:`2px solid ${i.tokens.colorNeutralStroke1}`,borderRight:`1px solid ${i.tokens.colorNeutralStroke2}`},"& td":{padding:i.tokens.spacingVerticalS+` `+i.tokens.spacingHorizontalM,borderBottom:`1px solid ${i.tokens.colorNeutralStroke2}`,borderRight:`1px solid ${i.tokens.colorNeutralStroke2}`},"& tr:last-child td":{borderBottom:`none`},"& th:last-child, & td:last-child":{borderRight:`none`},"& blockquote":{borderLeft:`4px solid ${i.tokens.colorBrandStroke1}`,paddingLeft:i.tokens.spacingHorizontalM,marginLeft:`0`,marginBottom:i.tokens.spacingVerticalM,color:i.tokens.colorNeutralForeground2},"& a":{color:i.tokens.colorBrandForeground1,textDecoration:`none`,":hover":{textDecoration:`underline`}},"& hr":{border:`none`,borderTop:`1px solid ${i.tokens.colorNeutralStroke2}`,marginTop:i.tokens.spacingVerticalL,marginBottom:i.tokens.spacingVerticalL}})}),qc=({content:e,className:r})=>{let i=Kc(),[a,o]=t.useState(``);return t.useEffect(()=>{o(new D.default({html:!1,linkify:!0,typographer:!0,breaks:!0}).render(e))},[e]),(0,n.jsx)(`div`,{className:`${i.markdown} ${r||``}`,dangerouslySetInnerHTML:{__html:F.default.sanitize(a)}})},Jc=(0,i.makeStyles)({plainText:{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase300,lineHeight:i.tokens.lineHeightBase300,color:i.tokens.colorNeutralForeground1,whiteSpace:`pre-wrap`,wordBreak:`break-word`},htmlContent:{fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase300,lineHeight:i.tokens.lineHeightBase300,color:i.tokens.colorNeutralForeground1,"& p":{marginTop:`0`,marginBottom:i.tokens.spacingVerticalM},"& h1, & h2, & h3, & h4, & h5, & h6":{marginTop:i.tokens.spacingVerticalL,marginBottom:i.tokens.spacingVerticalM,fontWeight:i.tokens.fontWeightSemibold},"& table":{borderCollapse:`collapse`,width:`100%`,marginBottom:i.tokens.spacingVerticalM},"& th, & td":{border:`1px solid ${i.tokens.colorNeutralStroke1}`,padding:i.tokens.spacingHorizontalS,textAlign:`left`},"& th":{backgroundColor:i.tokens.colorNeutralBackground3,fontWeight:i.tokens.fontWeightSemibold},"& a":{color:i.tokens.colorBrandForegroundLink}},debugBadge:{display:`inline-block`,padding:`${i.tokens.spacingVerticalXS} ${i.tokens.spacingHorizontalS}`,marginBottom:i.tokens.spacingVerticalS,backgroundColor:i.tokens.colorNeutralBackground3,borderRadius:i.tokens.borderRadiusSmall,fontSize:i.tokens.fontSizeBase200,fontFamily:i.tokens.fontFamilyMonospace,color:i.tokens.colorNeutralForeground2},adaptiveCardWrapper:{width:`100%`}}),Yc=({content:e,forceType:r,onTypeDetected:i,context:a,theme:o=Ws.SharePoint,fluentTheme:s,onAdaptiveCardAction:c,className:l,debug:u=!1})=>{let d=Jc(),{error:f}=z(),[p,m]=t.useState(null);if(t.useEffect(()=>{if(t.isValidElement(e)||typeof e!=`string`&&typeof e!=`object`)return;let n=Je(e);m(n),i&&i(n)},[e,i]),t.isValidElement(e))return(0,n.jsx)(n.Fragment,{children:e});let h=r||p?.type,g=p?.content||e;return(0,n.jsxs)(n.Fragment,{children:[!u||!p?null:(0,n.jsxs)(`div`,{className:d.debugBadge,children:[`Type: `,p.type,` | Confidence: `,(p.confidence*100).toFixed(0),`%`]}),(()=>{switch(h){case He.MARKDOWN:return(0,n.jsx)(qc,{content:g,className:l});case He.HTML:return(0,n.jsx)(`div`,{className:` ${l||``}`,dangerouslySetInnerHTML:{__html:F.default.sanitize(g)}});case He.ADAPTIVE_CARD:return(0,n.jsx)(`div`,{className:`${d.adaptiveCardWrapper} ${l||``}`,children:(0,n.jsx)(Sc,{card:typeof g==`string`?JSON.parse(g):g,context:a,theme:s,themeType:o,onInvokeAction:c||(()=>{}),onError:e=>f(`Adaptive Card Error:`,e instanceof Error?e:void 0)})});case He.PLAIN_TEXT:default:return(0,n.jsx)(`div`,{className:`${d.plainText} ${l||``}`,children:g})}})()]})},Xc=t.forwardRef((e,r)=>{let{messages:a,context:o}=e,s=e=>t.isValidElement(e)?e:typeof e==`string`?e.replace(/\{"status"\s*:\s*"executing"\}/gi,``).replace(/\{'status'\s*:\s*'executing'\}/gi,``).trim():e,c=(0,l.css)({flex:`1 1 0`,overflowY:`auto`,overflowX:`hidden`,padding:`16px`,paddingRight:`25px`,"::-webkit-scrollbar":{width:`6px`},"::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorNeutralStroke2}}),u=(0,l.css)({display:`flex`,flexDirection:`column`,gap:`10px`,paddingRight:`30px`});return(0,n.jsx)(`div`,{ref:r,className:c,role:`log`,"aria-live":`polite`,"aria-label":`Chat history`,children:(0,n.jsx)(P.Chat,{className:u,children:a.map((e,t)=>e.senderName===`User`?(0,n.jsx)(P.ChatMyMessage,{status:e.status,author:e.senderName,children:s(e.message)},t):(0,n.jsx)(P.ChatMessage,{decoration:e.status===`failed`?`important`:void 0,avatar:(0,n.jsx)(p.Icon,{icon:`carbon:ibm-consulting-advantage-assistant`,width:`32`,height:`32`,"aria-hidden":`true`,style:{color:i.tokens.colorBrandBackground}}),author:e.senderName,children:(0,n.jsx)(Yc,{content:s(e.message),context:o})},t))})})});Xc.displayName=`ChatList`;var Zc=()=>({container:(0,l.css)({display:`flex`,flexDirection:`column`,padding:`10px`,width:`100%`,height:`600px`,borderRadius:`8px`,boxShadow:`0 2px 10px rgba(0, 0, 0, 0.1)`,overflowY:`auto`,overflowX:`hidden`,position:`relative`,zIndex:1e3}),chatList:(0,l.css)({display:`flex`,flexDirection:`column`,gap:`10px`,paddingRight:`30px`,width:`100%`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorNeutralStroke2}}),chatAIAssistantRoot:(0,l.css)({padding:`10px`,display:`flex`,flexDirection:`column`,position:`relative`,height:`calc(100% - 20px)`}),inputContainer:(0,l.css)({display:`flex`,flexDirection:`row`,flex:1,marginTop:`10px`,gap:`10px`,alignItems:`center`}),input:(0,l.css)({width:`100%`,fontSize:`14px`}),aiAssistantContainer:(0,l.css)({display:`flex`,flexDirection:`column`,height:`100%`,width:`100%`,boxSizing:`border-box`}),aiAssistantInputContainer:(0,l.css)({flex:`0 0 auto`,padding:`16px`,paddingBottom:`20px`,borderTop:`1px solid ${i.tokens.colorNeutralStroke2}`,backgroundColor:i.tokens.colorNeutralBackground1,boxSizing:`border-box`})}),Qc=(e,t)=>{let{getFormatRelative:n}=we(e,t);return n(new Date)},$c=r=>{let{instrutions:a,timezone:o,locale:s,onResponse:c,openAIConfig:l,theme:u,placeholder:d,context:f}=r,[p,m]=t.useReducer(Gc,{messages:[],inputText:``,isLoading:!0,error:void 0,isRunning:!1}),{messages:h,inputText:g,isLoading:_,error:v,isRunning:y}=p,b=t.useRef([]),x=t.useRef(null),S=Zc(),C=e.n(),{error:w}=z(),{sendMessage:T,cancelRequest:E}=ue({endpoint:l?.endpoint,mcpServers:l?.mcpServers,requestHeaders:l?.requestHeaders}),D=t.useCallback(()=>{x.current&&(x.current.scrollTop=x.current.scrollHeight-x.current.clientHeight)},[]);t.useEffect(()=>{let e=setTimeout(()=>{D()},100);return()=>clearTimeout(e)},[h,D]),t.useEffect(()=>{m({type:`INIT`,welcomeMessage:{message:`Welcome to AI Assistant! How can I help you today?`,senderName:`Assistant`,timeStamp:Qc(o,f?.pageContext?.cultureInfo?.currentUICultureName||`en-US`),status:`received`}})},[]);let O=t.useCallback(async()=>{if(!g.trim())return;let e={message:g,senderName:`User`,timeStamp:Qc(o,f?.pageContext?.cultureInfo?.currentUICultureName||`en-US`),status:`received`},t=g;m({type:`ADD_USER_MESSAGE`,message:e}),m({type:`CLEAR_INPUT`}),m({type:`SET_IS_RUNNING`});let r={message:(0,n.jsx)(Wc,{}),senderName:`Assistant`,timeStamp:Qc(o,f?.pageContext?.cultureInfo?.currentUICultureName||`en-US`),status:`sending`};m({type:`ADD_ASSISTANT_MESSAGE`,message:r});try{let e=await T({instructions:a,input:t,timezone:o,locale:s,history:b.current,mcpServers:l?.mcpServers});if(c){let{message:t,status:n}=await c(e);m({type:`UPDATE_LAST_ASSISTANT_MESSAGE`,message:{...r,message:t||e,status:n||`received`}})}else m({type:`UPDATE_LAST_ASSISTANT_MESSAGE`,message:{...r,message:e,status:`received`}});m({type:`SET_IS_RUNNING`}),b.current.push(t),b.current.push(e)}catch(e){w(`Error during streaming:`,e instanceof Error?e:void 0);let t=`Error occurred while processing your request.`;e instanceof Error&&(t=e.message.includes(`Rate limit`)||e.message.includes(`429`)?`Rate limit exceeded. Please wait a moment before sending another message.`:e.message.includes(`quota`)?`API quota exceeded. Please try again later.`:e.message.includes(`abort`)?`Request was cancelled.`:e.message),m({type:`UPDATE_LAST_ASSISTANT_MESSAGE`,message:{...r,message:t,status:`failed`}}),m({type:`SET_IS_RUNNING`})}},[g,a,s,c,l,o,T,D,f]),k=t.useCallback(e=>{m({type:`SET_INPUT`,inputText:e})},[]);return _?(0,n.jsx)(i.Spinner,{size:`medium`}):v?(0,n.jsx)(vs,{message:C.processingError,messageType:te.INFO}):(0,n.jsxs)(`div`,{className:S.aiAssistantContainer,children:[(0,n.jsx)(Xc,{ref:x,messages:h,context:f}),(0,n.jsx)(`div`,{className:S.aiAssistantInputContainer,children:(0,n.jsx)(Hc,{context:f,value:g,onChange:k,placeholder:d,onSend:O,onAbort:E,theme:u,isRunning:y})})]})},el=({context:r,onChange:a,value:o,placeholder:s,onSend:c,theme:l,isRunning:u,onAbort:d})=>{let[f,p]=(0,t.useState)(o||``),[m,h]=(0,t.useState)(!1),g=(0,t.useRef)(null),_=e.n(),[v,y]=(0,t.useState)({top:0,left:0}),[b,x]=(0,t.useState)([]),S=(0,t.useRef)({}),C=Vc(),{warn:w,error:T}=z();t.default.useEffect(()=>{g.current?.focus(),p(o||``)},[o]);let E=async e=>{if(S.current[e])return S.current[e];if(!r?.graphClient)return w(`Graph client not available`),[];try{let t=e&&e.length>0?`/users?$filter=startswith(displayName,'${e}')`:`/users?$orderby=displayName&$top=10`,n=(await r.graphClient.get(t))?.value||[],i=r.pageContext?.web?.absoluteUrl||``;return n.forEach(e=>{i?e.avatar=`${i}/_layouts/15/userphoto.aspx?size=S&accountname=${e.mail}`:e.avatar=`https://graph.microsoft.com/v1.0/users/${e.id}/photo/$value`}),S.current[e]=n,n}catch(e){return T(`Error fetching users from Graph:`,e instanceof Error?e:void 0),[]}},D=(0,t.useCallback)(ke(async e=>{let t=await E(e);t.sort((e,t)=>e.displayName.localeCompare(t.displayName)),x(t),h(!0),setTimeout(()=>{g.current?.focus()},0)},300),[r]),O=async e=>{p(e),a&&a(e),g.current?.focus();let t=e.lastIndexOf(`@`);if(t!==-1&&(t===0||e[t-1]===` `)){await D(e.slice(t+1));let n=g.current;if(n){let e=(0,ee.default)(n,t),r=n.getBoundingClientRect();y({top:r.top+e.top+22,left:r.left+e.left+16})}}else h(!1)},k=e=>{let t=f.replace(/@(\w*)$/,`@${e} `);p(t),a&&a(t),h(!1),x([]),g.current?.focus()},A=(0,t.useCallback)(({users:e})=>(0,n.jsxs)(`div`,{className:C.listContainer,children:[e.length===0&&(0,n.jsx)(i.Caption1,{children:_.noUsersFound}),e.map(e=>(0,n.jsx)(i.Card,{size:`small`,appearance:`subtle`,onMouseDown:e=>e.preventDefault(),onClick:()=>k(e.mail),children:(0,n.jsx)(i.Persona,{name:e.displayName,role:`gridcell`,secondaryText:e.mail,avatar:{image:{src:e.avatar}}})},e.id))]}),[C.listContainer,k]);return(0,n.jsxs)(B,{horizontal:!0,width:`100%`,className:C.inputContainer,children:[(0,n.jsx)(Lc,{ref:g,onSend:c,value:f,onChange:O,theme:l,placeholder:s,isRunning:u,onAbort:d}),(0,n.jsxs)(xt,{theme:l,anchorPoint:v,isOpen:m,onClose:()=>h(!1),excludeRefs:[g],children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsx)(i.Body1Strong,{className:C.sugestionsHeader,children:`Sugestions`})}),(0,n.jsx)(i.Divider,{}),(0,n.jsx)(A,{users:b})]})]})},tl=()=>({inputContainer:(0,l.css)({marginTop:`auto`,marginLeft:`auto`,"::after":{content:`""`,position:`absolute`,bottom:0,left:0,right:0,borderBottom:`2px solid transparent`,pointerEvents:`none`,borderRadius:i.tokens.borderRadiusMedium}}),listContainer:(0,l.css)({maxHeight:`400px`,overflowY:`auto`,overflowX:`hidden`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorNeutralStroke2}}),sugestionsHeader:(0,l.css)({color:i.tokens.colorBrandBackground})}),nl=e=>{let{width:t,height:n,zoomable:r=!1}=e;return{root:(0,l.css)({position:`relative`,borderRadius:i.tokens.borderRadiusMedium,border:`1px solid ${i.tokens.colorNeutralStroke2}`,width:t??`100%`,height:n??`auto`,...r?{cursor:`grab`}:{}}),svgContainer:(0,l.css)({width:`100%`}),loading:(0,l.css)({color:i.tokens.colorNeutralForeground3,fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase300})}},rl=0,il=e=>{let[n,r]=t.useState(!1);return t.useEffect(()=>{let t=e.current;if(!t)return;let n=getComputedStyle(t).getPropertyValue(`--colorNeutralBackground1`).trim();if(n&&n.startsWith(`#`)&&n.length>=7){let e=parseInt(n.substring(1,3),16),t=parseInt(n.substring(3,5),16),i=parseInt(n.substring(5,7),16);r(.299*e+.587*t+.114*i<128)}}),n},al=r=>{let{source:a,url:o,theme:s,backgroundColor:c,className:l,styles:u,zoomable:d=!1,onRendered:f,onError:p,loadingContent:m,errorContent:h}=r,g=nl(r),_=t.useRef(null),v=t.useRef(null),y=il(_),b=s??(y?`dark`:`default`),[x,S]=t.useState(null),[C,w]=t.useState(null),[T,E]=t.useState(!1),[D,O]=t.useState(null),{loading:k,errorMessage:A,noSource:j}=e.g();t.useEffect(()=>{if(a){O(a),w(null);return}if(o){let e=!1;return E(!0),w(null),fetch(o).then(e=>{if(!e.ok)throw Error(`Failed to fetch ${o}: ${e.status} ${e.statusText}`);return e.text()}).then(t=>{e||(O(t),E(!1))}).catch(t=>{if(!e){let e=t instanceof Error?t:Error(String(t));w(e),E(!1),p?.(e)}}),()=>{e=!0}}O(null)},[a,o,p]),t.useEffect(()=>{if(!D){S(null);return}let e=!1,t=`mermaid-diagram-${++rl}`;return I.default.initialize({startOnLoad:!1,theme:b,securityLevel:`loose`,fontFamily:i.tokens.fontFamilyBase,suppressErrorRendering:!0}),I.default.render(t,D).then(({svg:t})=>{e||(S(t),w(null),f?.(t))}).catch(n=>{if(!e){let e=n instanceof Error?n:Error(String(n));w(e),S(null),p?.(e)}document.getElementById(t)?.remove()}),()=>{e=!0,document.getElementById(t)?.remove()}},[D,b,f,p]);let[M,N]=t.useState(1),[ee,P]=t.useState({x:0,y:0}),F=t.useRef(!1),L=t.useRef({x:0,y:0});t.useEffect(()=>{let e=_.current;if(!e||!d)return;let t=e=>{e.preventDefault();let t=e.deltaY>0?-.1:.1;N(e=>Math.min(Math.max(e+t,.25),4))},n=e=>{F.current=!0,L.current={x:e.clientX,y:e.clientY}},r=e=>{if(!F.current)return;let t=e.clientX-L.current.x,n=e.clientY-L.current.y;L.current={x:e.clientX,y:e.clientY},P(e=>({x:e.x+t,y:e.y+n}))},i=()=>{F.current=!1};return e.addEventListener(`wheel`,t,{passive:!1}),e.addEventListener(`mousedown`,n),e.addEventListener(`mousemove`,r),e.addEventListener(`mouseup`,i),e.addEventListener(`mouseleave`,i),()=>{e.removeEventListener(`wheel`,t),e.removeEventListener(`mousedown`,n),e.removeEventListener(`mousemove`,r),e.removeEventListener(`mouseup`,i),e.removeEventListener(`mouseleave`,i)}},[d]),t.useEffect(()=>{N(1),P({x:0,y:0})},[D]),t.useEffect(()=>{let e=v.current;e&&(e.innerHTML=x??``,e.setAttribute(`role`,`img`),e.setAttribute(`aria-label`,`Mermaid diagram`))},[x]);let R=[g.root,l].filter(Boolean).join(` `);if(T)return(0,n.jsx)(H,{className:R,style:u,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:c,children:(0,n.jsx)(H,{className:g.loading,alignItems:`center`,justifyContent:`center`,padding:`xxl`,children:m??(0,n.jsx)(Tt,{size:`small`,label:k})})});if(C)return(0,n.jsx)(H,{className:R,style:u,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:c,children:h?h(C):(0,n.jsx)(vs,{message:A,messageType:te.ERROR})});if(!x)return(0,n.jsx)(H,{className:R,style:u,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:c,children:(0,n.jsx)(H,{className:g.loading,alignItems:`center`,justifyContent:`center`,padding:`xxl`,children:(0,n.jsx)(i.Text,{children:j})})});let ne=d?{transform:`translate(${ee.x}px, ${ee.y}px) scale(${M})`,transformOrigin:`center center`}:void 0;return(0,n.jsx)(H,{ref:_,className:R,style:u,alignItems:`center`,justifyContent:`center`,overflow:d?`auto`:`hidden`,background:c,children:(0,n.jsx)(H,{ref:v,className:g.svgContainer,alignItems:`center`,justifyContent:`center`,style:ne,children:(0,n.jsx)(n.Fragment,{})})})},ol={small:i.tokens.borderRadiusSmall,medium:i.tokens.borderRadiusMedium,large:i.tokens.borderRadiusLarge,xLarge:i.tokens.borderRadiusXLarge},sl={brand:{border:i.tokens.colorBrandStroke1,bg:i.tokens.colorBrandBackground2},subtle:{border:i.tokens.colorNeutralStroke1,bg:i.tokens.colorNeutralBackground3},success:{border:i.tokens.colorPaletteGreenBorder2,bg:i.tokens.colorPaletteGreenBackground2},warning:{border:i.tokens.colorPaletteYellowBorder2,bg:i.tokens.colorPaletteYellowBackground2},danger:{border:i.tokens.colorPaletteRedBorder2,bg:i.tokens.colorPaletteRedBackground2},info:{border:i.tokens.colorPaletteBlueBorderActive,bg:i.tokens.colorPaletteBlueBackground2}},cl=e=>sl[e]??{border:e,bg:`transparent`},ll=e=>ol[e]??e,ul=(e,n,r)=>{let{border:a,bg:o}=cl(e),s=ll(n),c=r/-2;return{root:(0,t.useMemo)(()=>(0,l.css)({position:`relative`,margin:0,borderInlineStart:`3px solid ${a}`,borderStartEndRadius:s,borderEndEndRadius:s,backgroundColor:o,padding:`${i.tokens.spacingVerticalXL} ${i.tokens.spacingHorizontalXXL}`,fontFamily:i.tokens.fontFamilyBase,fontSize:i.tokens.fontSizeBase300,lineHeight:i.tokens.lineHeightBase300,color:i.tokens.colorNeutralForeground1}),[a,s,o]),icon:(0,t.useMemo)(()=>(0,l.css)({position:`absolute`,color:a,backgroundColor:i.tokens.colorNeutralBackground1,display:`flex`,alignItems:`center`,justifyContent:`center`,top:c,insetInlineStart:c,width:r,height:r,borderRadius:`50%`}),[a,c,r]),cite:(0,t.useMemo)(()=>(0,l.css)({display:`block`,marginTop:i.tokens.spacingVerticalM,opacity:.6,fontSize:i.tokens.fontSizeBase200,lineHeight:i.tokens.lineHeightBase200,fontStyle:`normal`}),[])}},dl=48,fl=`brand`,pl=`medium`,ml=(0,t.memo)(({icon:e,iconSize:t=dl,color:r=fl,radius:a=pl,cite:o,className:s,style:c,children:l})=>{let u=ul(r,a,t);return(0,n.jsxs)(`blockquote`,{className:(0,i.mergeClasses)(u.root,s),style:c,role:`blockquote`,children:[e&&(0,n.jsx)(`span`,{className:u.icon,"aria-hidden":`true`,children:e}),l,o&&(0,n.jsx)(`cite`,{className:u.cite,children:o})]})});ml.displayName=`Blockquote`;var hl={spacingHorizontalXS:i.tokens.spacingHorizontalXS,spacingHorizontalS:i.tokens.spacingHorizontalS,spacingHorizontalM:i.tokens.spacingHorizontalM,spacingHorizontalL:i.tokens.spacingHorizontalL,spacingHorizontalXL:i.tokens.spacingHorizontalXL,spacingHorizontalXXL:i.tokens.spacingHorizontalXXL},gl=e=>hl[e]??e,_l=(e,n,r,i,a,o,s,c,u)=>{let d=gl(o),f=e===`horizontal`,p=(0,t.useMemo)(()=>(0,l.keyframes)({from:{transform:f?`translateX(0)`:`translateY(0)`},to:{transform:f?`translateX(calc(-100% / ${i} - ${d} / ${i}))`:`translateY(calc(-100% / ${i} - ${d} / ${i}))`}}),[f,i,d]);return{root:(0,t.useMemo)(()=>(0,l.css)({position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:f?`row`:`column`,maxHeight:`100%`,maxWidth:`100%`,...s&&{"&::before, &::after":{content:`""`,position:`absolute`,zIndex:1,pointerEvents:`none`},...f?{"&::before":{top:0,bottom:0,left:0,width:u,background:`linear-gradient(to right, ${c}, transparent)`},"&::after":{top:0,bottom:0,right:0,width:u,background:`linear-gradient(to left, ${c}, transparent)`}}:{"&::before":{left:0,right:0,top:0,height:u,background:`linear-gradient(to bottom, ${c}, transparent)`},"&::after":{left:0,right:0,bottom:0,height:u,background:`linear-gradient(to top, ${c}, transparent)`}}}}),[f,s,c,u]),content:(0,t.useMemo)(()=>(0,l.css)({display:`flex`,flexDirection:f?`row`:`column`,gap:d,animation:`${p} ${a}ms linear infinite`,animationDirection:n?`reverse`:`normal`,...r&&{"*:hover > &":{animationPlayState:`paused`}}}),[f,d,p,a,n,r]),group:(0,t.useMemo)(()=>(0,l.css)({display:`flex`,flexShrink:0,flexDirection:f?`row`:`column`,gap:d}),[f,d])}},vl=4,yl=1e5,bl=`spacingHorizontalM`,xl=`5%`,Sl=(0,t.memo)(({children:e,orientation:r=`horizontal`,reverse:a=!1,pauseOnHover:o=!1,repeat:s=vl,duration:c=yl,gap:l=bl,fadeEdges:u=!0,fadeEdgeColor:d=i.tokens.colorNeutralBackground1,fadeEdgeSize:f=xl,className:p,style:m})=>{let h=_l(r,a,o,s,c,l,u,d,f),g=(0,t.useMemo)(()=>Array.from({length:s},(t,r)=>(0,n.jsx)(`div`,{className:h.group,...r>0?{"aria-hidden":!0}:{},children:e},r)),[s,e,h.group]);return(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(h.root,p),style:m,role:`marquee`,"aria-live":`off`,children:(0,n.jsx)(`div`,{className:h.content,children:g})})});Sl.displayName=`Marquee`;var Cl=e=>{let{maxHeight:n,expanded:r,contentHeight:a,hasSpoiler:o,transitionDuration:s}=e;return(0,t.useMemo)(()=>({root:(0,l.css)({position:`relative`,...o&&{marginBottom:28}}),content:(0,l.css)({display:`flex`,flexDirection:`column`,overflow:`hidden`,maxHeight:r?a>0?a:void 0:n,transition:`max-height ${s}ms ease`}),control:(0,l.css)({position:`absolute`,insetInlineStart:0,top:`100%`,height:28,padding:0,fontWeight:Number(i.tokens.fontWeightSemibold)})}),[n,r,a,o,s])},wl=()=>{let e=(0,t.useRef)(null),[n,r]=(0,t.useState)(0);return(0,t.useEffect)(()=>{if(!e.current)return;let t=new ResizeObserver(([e])=>{r(e.contentRect.height)});return t.observe(e.current),()=>t.disconnect()},[]),{ref:e,height:n}},Tl=t.default.memo(({children:e,maxHeight:r=100,showLabel:a,hideLabel:o,defaultExpanded:s=!1,expanded:c,onExpandedChange:l,transitionDuration:u=200,showAriaLabel:d,hideAriaLabel:f,controlRef:p,className:m,style:h})=>{let g=(0,t.useId)(),_=`${g}-region`,{ref:v,height:y}=wl(),b=c!==void 0,[x,S]=(0,t.useState)(s),C=b?c:x,w=r<y,T=Cl({maxHeight:r,expanded:C,contentHeight:y,hasSpoiler:w,transitionDuration:u}),E=(0,t.useCallback)(()=>{let e=!C;b||S(e),l?.(e)},[C,b,l]),D=C?f:d;return(0,n.jsxs)(`div`,{id:g,className:(0,i.mergeClasses)(T.root,m),style:h,children:[w&&(0,n.jsx)(i.Link,{ref:p,className:T.control,onClick:E,"aria-expanded":C,"aria-controls":_,...D?{"aria-label":D}:{},children:C?o:a}),(0,n.jsx)(`div`,{className:T.content,role:`region`,id:_,children:(0,n.jsx)(`div`,{ref:v,children:e})})]})});Tl.displayName=`Spoiler`;var El={none:`0`,small:i.tokens.borderRadiusSmall,medium:i.tokens.borderRadiusMedium,large:i.tokens.borderRadiusLarge,xLarge:i.tokens.borderRadiusXLarge,circular:i.tokens.borderRadiusCircular},Dl=(e,n)=>(0,t.useMemo)(()=>{let t=El[n]??n;return{root:(0,l.css)({backgroundImage:`url(${CSS.escape?CSS.escape(e):e})`,backgroundSize:`cover`,backgroundPosition:`center`,display:`block`,width:`100%`,border:0,textDecoration:`none`,borderRadius:t})}},[e,n]),Ol=t.default.memo(({src:e,children:t,radius:r=`none`,className:a,style:o})=>(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(Dl(e,r).root,a),style:o,role:`img`,"aria-label":e,children:t}));Ol.displayName=`BackgroundImage`;var kl=({bulletSize:e,lineWidth:n,align:r})=>(0,t.useMemo)(()=>{let t=e/2+n/2;return{root:(0,l.css)({position:`relative`,...r===`left`&&{paddingInlineStart:t},...r===`right`&&{paddingInlineEnd:t}})}},[e,n,r]),Al=e=>{let{bulletSize:n,lineWidth:r,align:a,active:o,lineActive:s,isLast:c,isFirst:u,color:d,lineVariant:f,hasBulletContent:p}=e;return(0,t.useMemo)(()=>{let e=n/2+r/2,t=d||i.tokens.colorBrandForeground1,m=i.tokens.colorNeutralStroke1;return{item:(0,l.css)({position:`relative`,color:i.tokens.colorNeutralForeground1,...!u&&{marginTop:i.tokens.spacingVerticalXL},...!c&&{"&::before":{content:`""`,position:`absolute`,top:0,bottom:`calc(${i.tokens.spacingVerticalXL} * -1)`,pointerEvents:`none`,borderInlineStart:`${r}px ${f} ${s?t:m}`,...a===`left`&&{insetInlineStart:-r,insetInlineEnd:`auto`},...a===`right`&&{insetInlineStart:`auto`,insetInlineEnd:-r}}}}),bullet:(0,l.css)({width:n,height:n,borderRadius:`50%`,border:`${r}px solid ${o?t:m}`,backgroundColor:o?p?t:i.tokens.colorNeutralBackground1:p?i.tokens.colorNeutralStroke2:i.tokens.colorNeutralBackground1,position:`absolute`,top:0,display:`flex`,alignItems:`center`,justifyContent:`center`,color:o?i.tokens.colorNeutralForegroundOnBrand:i.tokens.colorNeutralForeground2,boxSizing:`border-box`,...a===`left`&&{insetInlineStart:-(n/2+r/2)},...a===`right`&&{insetInlineEnd:-(n/2+r/2)}}),body:(0,l.css)({...a===`left`&&{paddingInlineStart:e+8,textAlign:`left`},...a===`right`&&{paddingInlineEnd:e+8,textAlign:`right`}}),title:(0,l.css)({lineHeight:`1 !important`,marginBottom:i.tokens.spacingVerticalXXS,"& span":{lineHeight:`1 !important`}})}},[n,r,a,o,s,c,u,d,f,p])},jl=t.default.memo(({title:e,children:t,bullet:r,color:a,lineVariant:o=`solid`,active:s,lineActive:c,__active:l,__lineActive:u,__align:d=`left`,__bulletSize:f=16,__lineWidth:p=2,__color:m,__isFirst:h=!1,__isLast:g=!1,className:_,style:v})=>{let y=Al({bulletSize:f,lineWidth:p,align:d,active:s??l??!1,lineActive:c??u??!1,isLast:g,isFirst:h,color:a||m,lineVariant:o,hasBulletContent:!!r});return(0,n.jsxs)(`div`,{className:(0,i.mergeClasses)(y.item,_),style:v,children:[(0,n.jsx)(`div`,{className:y.bullet,children:r}),(0,n.jsxs)(`div`,{className:y.body,children:[e&&(0,n.jsx)(i.Text,{block:!0,weight:`semibold`,size:300,className:y.title,children:e}),t]})]})});jl.displayName=`TimelineItem`;var Ml=t.default.memo(({children:e,active:r=-1,color:a,bulletSize:o=16,lineWidth:s=2,align:c=`left`,reverseActive:l=!1,className:u,style:d})=>{let f=kl({bulletSize:o,lineWidth:s,align:c}),p=t.Children.toArray(e),m=p.map((e,n)=>{if(!t.default.isValidElement(e))return e;let i=e.props,u=l?r>=p.length-n-1:r>=n,d=l?r>=p.length-n-1:r-1>=n;return(0,t.cloneElement)(e,{__active:i.active===void 0?u:i.active,__lineActive:i.lineActive===void 0?d:i.lineActive,__align:c,__bulletSize:o,__lineWidth:s,__color:a,__isFirst:n===0,__isLast:n===p.length-1})});return(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(f.root,u),style:d,children:m})});Ml.displayName=`Timeline`;var Nl=Object.assign(Ml,{Item:jl}),Pl=({orientation:e,iconSize:n,iconPosition:r})=>(0,t.useMemo)(()=>({root:(0,l.css)({display:`flex`,flexDirection:`column`}),steps:(0,l.css)({display:`flex`,flexDirection:e===`horizontal`?`row`:`column`,alignItems:e===`horizontal`?`flex-start`:void 0,gap:0}),content:(0,l.css)({paddingTop:i.tokens.spacingVerticalL})}),[e,n,r]),Fl=e=>{let{iconSize:n,state:r,color:a,orientation:o,iconPosition:s,allowClick:c,isLast:u,separatorActive:d}=e;return(0,t.useMemo)(()=>{let e=a||i.tokens.colorBrandForeground1,t=i.tokens.colorNeutralStroke1;return{step:(0,l.css)({cursor:c?`pointer`:`default`,...o===`horizontal`&&{display:`grid`,gridTemplateColumns:u?`${n}px`:`${n}px 1fr`,gridTemplateRows:`auto auto`,flex:u?`0 0 auto`:`1 1 0`},...o===`vertical`&&{display:`flex`,flexDirection:s===`right`?`row-reverse`:`row`,gap:i.tokens.spacingHorizontalS,alignItems:`flex-start`},"&:focus-visible":{outline:`2px solid ${i.tokens.colorStrokeFocus2}`,outlineOffset:2,borderRadius:i.tokens.borderRadiusMedium}}),stepHeader:(0,l.css)({...o===`horizontal`&&{display:`contents`},...o===`vertical`&&{display:`flex`,flexDirection:`column`,alignItems:`center`}}),stepIcon:(0,l.css)({width:n,height:n,minWidth:n,borderRadius:`50%`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontWeight:i.tokens.fontWeightBold,fontSize:n*.36,boxSizing:`border-box`,flexShrink:0,transition:`background-color 150ms ease, border-color 150ms ease, color 150ms ease`,...o===`horizontal`&&{gridColumn:1,gridRow:1},...r===`stepCompleted`&&{backgroundColor:e,border:`2px solid ${e}`,color:i.tokens.colorNeutralForegroundOnBrand},...r===`stepProgress`&&{backgroundColor:i.tokens.colorNeutralBackground1,border:`2px solid ${e}`,color:e},...r===`stepInactive`&&{backgroundColor:i.tokens.colorNeutralBackground1,border:`2px solid ${t}`,color:i.tokens.colorNeutralForeground3}}),separator:(0,l.css)({transition:`background-color 150ms ease`,backgroundColor:d?e:t,...o===`horizontal`&&{gridColumn:2,gridRow:1,alignSelf:`center`,height:2,marginInline:i.tokens.spacingHorizontalS},...o===`vertical`&&{flex:1,width:2,minHeight:i.tokens.spacingVerticalL,marginBlock:i.tokens.spacingVerticalXXS}}),stepBody:(0,l.css)({display:`flex`,flexDirection:`column`,...o===`horizontal`&&{gridColumn:1,gridRow:2,alignItems:`center`,justifySelf:`center`,width:`max-content`,textAlign:`center`,whiteSpace:`nowrap`,marginTop:i.tokens.spacingVerticalXS},...o===`vertical`&&{paddingTop:2}}),stepLabel:(0,l.css)({lineHeight:1.3}),stepDescription:(0,l.css)({marginTop:i.tokens.spacingVerticalXXS})}},[n,r,a,o,s,c,u,d])},Il=t.default.memo(({label:e,description:r,icon:a,completedIcon:o,progressIcon:s,color:c,withIcon:l=!0,allowStepSelect:u=!0,loading:f=!1,children:p,className:m,style:h,__step:g=0,__state:_=`stepInactive`,__color:v,__iconSize:y=34,__orientation:b=`horizontal`,__iconPosition:x=`left`,__completedIcon:S,__progressIcon:C,__allowClick:w=!1,__onStepClick:T,__isLast:E=!1,__separatorActive:D=!1})=>{let O=c||v,k=w&&u,A=Fl({iconSize:y,state:_,color:O,orientation:b,iconPosition:x,allowClick:k,isLast:E,separatorActive:D}),j=t.default.useCallback(()=>{k&&T&&T(g)},[k,T,g]),M=t.default.useCallback(e=>{(e.key===`Enter`||e.key===` `)&&k&&T&&(e.preventDefault(),T(g))},[k,T,g]),N=()=>l?f?(0,n.jsx)(i.Spinner,{size:`tiny`}):_===`stepCompleted`?o||S||(0,n.jsx)(d.Checkmark12Regular,{}):_===`stepProgress`&&(s||C)?s||C:a||(0,n.jsx)(i.Text,{size:200,weight:`bold`,children:g+1}):null;return(0,n.jsxs)(`div`,{className:(0,i.mergeClasses)(A.step,m),style:h,onClick:j,onKeyDown:M,...k?{role:`button`}:{},tabIndex:k?0:void 0,...k?{"aria-label":typeof e==`string`?`Step ${g+1}: ${e}`:`Step ${g+1}`}:{},children:[(0,n.jsxs)(`div`,{className:A.stepHeader,children:[(0,n.jsx)(`div`,{className:A.stepIcon,children:N()}),!E&&(0,n.jsx)(`div`,{className:A.separator})]}),(e||r)&&(0,n.jsxs)(`div`,{className:A.stepBody,children:[e&&(0,n.jsx)(i.Text,{weight:`semibold`,size:300,className:A.stepLabel,children:e}),r&&(0,n.jsx)(i.Text,{size:200,className:A.stepDescription,children:r})]})]})});Il.displayName=`StepperStep`;var Ll=e=>null;Ll.displayName=`StepperCompleted`;var Rl=t.default.memo(({children:e,active:r,onStepClick:a,color:o,iconSize:s=34,orientation:c=`horizontal`,iconPosition:l=`left`,allowNextStepsSelect:u=!0,completedIcon:d,progressIcon:f,className:p,style:m})=>{let h=Pl({orientation:c,iconSize:s,iconPosition:l}),{stepElements:g,completedContent:_,activeStepContent:v}=(0,t.useMemo)(()=>{let n=[],i=null,p=null,m=0;return t.Children.forEach(e,e=>{if(!t.default.isValidElement(e))return;if(e.type?.displayName===`StepperCompleted`){i=e.props.children;return}let h=m,g=h<r?`stepCompleted`:h===r?`stepProgress`:`stepInactive`,_=(0,t.cloneElement)(e,{__step:h,__state:g,__color:o,__iconSize:s,__orientation:c,__iconPosition:l,__completedIcon:d,__progressIcon:f,__allowClick:!!a&&(g===`stepCompleted`||u&&g===`stepInactive`||g===`stepProgress`),__onStepClick:a,__isLast:!1,__separatorActive:h<r}),v=e.props;h===r&&v.children&&(p=v.children),n.push(_),m++}),{stepElements:n,completedContent:i,activeStepContent:p}},[e,r,a,o,s,c,l,u,d,f]),y=(0,t.useMemo)(()=>g.length===0?g:g.map((e,n)=>n===g.length-1&&t.default.isValidElement(e)?(0,t.cloneElement)(e,{__isLast:!0}):e),[g]),b=r>=g.length&&_;return(0,n.jsxs)(`div`,{className:(0,i.mergeClasses)(h.root,p),style:m,children:[(0,n.jsx)(`div`,{className:h.steps,role:`group`,"aria-label":`Progress steps`,children:y}),(b||v)&&(0,n.jsx)(`div`,{className:h.content,children:b?_:v})]})});Rl.displayName=`Stepper`;var zl=Object.assign(Rl,{Step:Il,Completed:Ll}),Bl={content:``,isCached:!1,status:`idle`},Vl=()=>(0,g.atom)(Bl),Hl=new Map,Ul=()=>{Hl.clear()},Wl=({src:e,cacheRequests:n,fetchOptions:r,onError:i})=>{let a=(0,t.useRef)(i),o=(0,t.useRef)(r);a.current=i,o.current=r;let s=(0,t.useRef)(Vl()),c=(0,g.useAtomValue)(s.current),l=(0,g.useSetAtom)(s.current);return(0,t.useEffect)(()=>{if(typeof window>`u`){l({content:``,isCached:!1,status:`unsupported`});return}if(!e){l({content:``,isCached:!1,status:`failed`}),a.current?.(Error(`Missing src`));return}let t=/^data:image\/svg[^,]*?(;base64)?,(.*)/.exec(e);if(t){try{l({content:t[1]?window.atob(t[2]):decodeURIComponent(t[2]),isCached:!1,status:`loaded`})}catch{l({content:``,isCached:!1,status:`failed`}),a.current?.(Error(`Invalid data URI`))}return}if(e.includes(`<svg`)){l({content:e,isCached:!1,status:`loaded`});return}if(n&&Hl.has(e)){l({content:Hl.get(e),isCached:!0,status:`loaded`});return}l({content:``,isCached:!1,status:`loading`});let r=new AbortController;return fetch(e,{...o.current,signal:r.signal}).then(async t=>{if(!t.ok)throw Error(`Failed to fetch SVG: ${t.status}`);let[r]=(t.headers.get(`content-type`)??``).split(/ ?; ?/);if(r&&![`image/svg+xml`,`text/plain`,`application/xml`].some(e=>r.includes(e)))throw Error(`Invalid content type: ${r}`);let i=await t.text();n&&Hl.set(e,i),l({content:i,isCached:!1,status:`loaded`})}).catch(e=>{e.name!==`AbortError`&&(l({content:``,isCached:!1,status:`failed`}),a.current?.(e))}),()=>r.abort()},[e,n]),c},Gl=e=>{let t=``;for(let n=0;n<e;n++)t+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`.charAt(Math.floor(Math.random()*62));return t},Kl=e=>{e.querySelectorAll(`script`).forEach(e=>e.remove()),e.querySelectorAll(`foreignObject`).forEach(e=>e.remove());let t=[e,...Array.from(e.querySelectorAll(`*`))];for(let e of t)for(let t of Array.from(e.attributes))(/^on/i.test(t.name)||/^\s*javascript\s*:/i.test(t.value))&&e.removeAttribute(t.name)},ql=(e,t,n)=>{let r=[...new XMLSerializer().serializeToString(e).matchAll(/\bid=["']([^"']+)["']/g)],i=[...new Set(r.map(e=>e[1]))];if(!i.length)return;i.sort((e,t)=>t.length-e.length);let a=[e,...Array.from(e.querySelectorAll(`*`))];for(let e of a)for(let r of Array.from(e.attributes)){let a=r.value,o=!1;for(let e of i){let i=`${e}__${t}`,s=e.replace(/[$()*+.?[\\\]^{|}]/g,`\\$&`);r.name===`id`&&a===e&&(a=i,o=!0);let c=RegExp(`url\\((['"]?)#${s}\\1\\)`,`g`);c.test(a)&&(a=a.replace(c,`url($1${n}#${i}$1)`),o=!0),[`href`,`xlink:href`].includes(r.name)&&a===`#${e}`&&(a=`${n}#${i}`,o=!0)}o&&e.setAttribute(r.name,a)}},Jl=e=>{let{content:t,preProcessor:n,title:r,description:i,uniquifyIDs:a=!1,uniqueHash:o,baseURL:s=``,width:c,height:l}=e,u=n?n(t):t,d=new DOMParser().parseFromString(u,`image/svg+xml`);if(d.querySelector(`parsererror`))return null;let f=d.querySelector(`svg`);if(!f)return null;if(Kl(f),r!==void 0){let e=f.querySelector(`title`);if(e&&e.remove(),r){let e=d.createElementNS(`http://www.w3.org/2000/svg`,`title`);e.textContent=r,f.prepend(e)}}if(i){let e=f.querySelector(`desc`);e&&e.remove();let t=d.createElementNS(`http://www.w3.org/2000/svg`,`desc`);t.textContent=i;let n=f.querySelector(`title`);n?n.after(t):f.prepend(t)}return c!==void 0&&f.setAttribute(`width`,String(c)),l!==void 0&&f.setAttribute(`height`,String(l)),a&&ql(f,o||Gl(8),s),new XMLSerializer().serializeToString(f)},Yl=()=>(0,t.useMemo)(()=>({root:(0,l.css)({display:`inline-flex`,lineHeight:0,"& svg":{display:`block`}})}),[]),Xl=t.default.memo(({src:e,cacheRequests:r=!0,title:a,description:o,uniquifyIDs:s=!1,uniqueHash:c,baseURL:l,preProcessor:u,fetchOptions:d,loader:f,children:p,innerRef:m,onLoad:h,onError:g,width:_,height:v,className:y,style:b})=>{let x=Yl(),S=(0,t.useRef)(null),C=(0,t.useRef)(h);C.current=h;let{content:w,status:T,isCached:E}=Wl({src:e,cacheRequests:r,fetchOptions:d,onError:g}),D=(0,t.useMemo)(()=>w?Jl({content:w,preProcessor:u,title:a,description:o,uniquifyIDs:s,uniqueHash:c,baseURL:l,width:_,height:v}):null,[w,u,a,o,s,c,l,_,v]);return(0,t.useEffect)(()=>{if(!S.current||!D)return;let e=S.current.querySelector(`svg`);!e||!m||(typeof m==`function`?m(e):m.current=e)},[D,m]),(0,t.useEffect)(()=>{D&&T===`loaded`&&C.current?.(e,E)},[D,T,e,E]),T===`loading`||T===`idle`&&!D?(0,n.jsx)(n.Fragment,{children:f??null}):T===`failed`||T===`unsupported`||!D?(0,n.jsx)(n.Fragment,{children:p??null}):(0,n.jsx)(`div`,{ref:S,className:(0,i.mergeClasses)(x.root,y),style:b,dangerouslySetInnerHTML:{__html:D}})});Xl.displayName=`InlineSVG`;var Zl={numeric:/[^\d]/g,alpha:/[^a-zA-Z]/g,alphanumeric:/[^a-zA-Z0-9]/g},Ql={numeric:`numeric`,alpha:`text`,alphanumeric:`text`,none:`text`},$l=(e,t,n,r)=>{let i=e.replace(/\s/g,``);return n===`none`?r&&(i=r(i)):i=i.replace(Zl[n],``),i.slice(0,t)},eu=e=>(0,g.atom)({value:e,focusedIndex:-1}),tu=e=>{let{length:n,value:r,defaultValue:i=``,validationType:a,sanitizeValue:o,onChange:s,onComplete:c,disabled:l=!1,readOnly:u=!1}=e,d=r!==void 0,f=(0,t.useRef)(s),p=(0,t.useRef)(c);f.current=s,p.current=c;let m=(0,t.useRef)(eu($l(i,n,a,o))),h=(0,g.useAtomValue)(m.current),_=(0,g.useSetAtom)(m.current),v=d?$l(r,n,a,o):h.value,y=(0,t.useRef)([]),b=(0,t.useCallback)(e=>{let t=Math.max(0,Math.min(e,n-1));y.current[t]?.focus(),y.current[t]?.select()},[n]),x=(0,t.useCallback)(e=>{let t=$l(e,n,a,o);d||_(e=>({...e,value:t})),f.current?.(t),t.length===n&&p.current?.(t)},[n,a,o,d,_]),S=(0,t.useCallback)((e,t)=>{if(l||u)return;let r=t.currentTarget.value,i=$l(r,n,a,o);if(i===``){x(v.slice(0,e)+v.slice(e+1));return}x($l(`${v.slice(0,e)}${i}${v.slice(e+i.length)}`,n,a,o));let s=Math.min(e+i.length,n-1);requestAnimationFrame(()=>b(s))},[v,n,a,o,l,u,x,b]),C=(0,t.useCallback)((e,t)=>{if(l)return;let{key:r}=t;if(r===`Backspace`){if(t.preventDefault(),u)return;(v[e]??``)===``?e>0&&(x(v.slice(0,e-1)+v.slice(e)),b(e-1)):(x(v.slice(0,e)+v.slice(e+1)),b(e));return}if(r===`Delete`){if(t.preventDefault(),u)return;x(v.slice(0,e)+v.slice(e+1));return}if(r===`ArrowLeft`){t.preventDefault(),b(Math.max(0,e-1));return}if(r===`ArrowRight`){t.preventDefault(),b(Math.min(n-1,e+1));return}if(r===`Home`){t.preventDefault(),b(0);return}if(r===`End`){t.preventDefault(),b(Math.max(v.length-1,0));return}},[v,n,l,u,x,b]),w=(0,t.useCallback)((e,t)=>{if(l||u)return;t.preventDefault();let r=$l(t.clipboardData?.getData(`text/plain`)??``,n,a,o);if(!r)return;x($l(`${v.slice(0,e)}${r}`,n,a,o));let i=Math.min(e+r.length,n-1);requestAnimationFrame(()=>b(i))},[v,n,a,o,l,u,x,b]),T=(0,t.useCallback)(e=>{if(e>v.length){b(Math.min(v.length,n-1));return}_(t=>({...t,focusedIndex:e})),y.current[e]?.select()},[v.length,n,b,_]),E=(0,t.useCallback)(()=>{_(e=>({...e,focusedIndex:-1}))},[_]),D=(0,t.useMemo)(()=>Ql[a],[a]);return{value:v,focusedIndex:h.focusedIndex,inputRefs:y,inputMode:D,handleChange:S,handleKeyDown:C,handlePaste:w,handleFocus:T,handleBlur:E,focusSlot:b}},nu=e=>(0,t.useMemo)(()=>({root:(0,l.css)({display:`flex`,flexDirection:`column`,gap:i.tokens.spacingVerticalXS}),inputGroup:(0,l.css)({display:`flex`,alignItems:`center`,gap:e}),input:(0,l.css)({textAlign:`center`,fontFamily:i.tokens.fontFamilyBase,fontWeight:Number(i.tokens.fontWeightSemibold),color:i.tokens.colorNeutralForeground1,backgroundColor:i.tokens.colorNeutralBackground1,border:`1px solid ${i.tokens.colorNeutralStroke1}`,borderRadius:i.tokens.borderRadiusMedium,outline:`none`,transition:`border-color 0.15s ease, box-shadow 0.15s ease`,caretColor:i.tokens.colorBrandForeground1,"&::placeholder":{color:i.tokens.colorNeutralForeground4},"&:hover:not(:disabled)":{borderColor:i.tokens.colorBrandStroke1},"&:focus":{borderColor:i.tokens.colorBrandStroke1,boxShadow:`0 0 0 2px ${i.tokens.colorBrandBackground2}`}}),inputSmall:(0,l.css)({width:32,height:32,fontSize:i.tokens.fontSizeBase300}),inputMedium:(0,l.css)({width:40,height:40,fontSize:i.tokens.fontSizeBase400}),inputLarge:(0,l.css)({width:48,height:48,fontSize:i.tokens.fontSizeBase500}),inputFilled:(0,l.css)({borderColor:i.tokens.colorBrandStroke1}),inputActive:(0,l.css)({borderColor:i.tokens.colorBrandStroke1,boxShadow:`0 0 0 2px ${i.tokens.colorBrandBackground2}`}),inputDisabled:(0,l.css)({backgroundColor:i.tokens.colorNeutralBackgroundDisabled,borderColor:i.tokens.colorNeutralStrokeDisabled,color:i.tokens.colorNeutralForegroundDisabled,cursor:`not-allowed`}),inputError:(0,l.css)({borderColor:i.tokens.colorPaletteRedBorder2,"&:focus":{borderColor:i.tokens.colorPaletteRedBorder2,boxShadow:`0 0 0 2px ${i.tokens.colorPaletteRedBackground2}`}}),inputSuccess:(0,l.css)({borderColor:i.tokens.colorPaletteGreenBorder2,"&:focus":{borderColor:i.tokens.colorPaletteGreenBorder2,boxShadow:`0 0 0 2px ${i.tokens.colorPaletteGreenBackground2}`}}),inputWarning:(0,l.css)({borderColor:i.tokens.colorPaletteYellowBorder2,"&:focus":{borderColor:i.tokens.colorPaletteYellowBorder2,boxShadow:`0 0 0 2px ${i.tokens.colorPaletteYellowBackground2}`}}),separator:(0,l.css)({display:`flex`,alignItems:`center`,justifyContent:`center`,color:i.tokens.colorNeutralForeground3,fontSize:i.tokens.fontSizeBase400,fontWeight:Number(i.tokens.fontWeightSemibold),userSelect:`none`,flexShrink:0,width:12}),label:(0,l.css)({fontSize:i.tokens.fontSizeBase300,fontWeight:Number(i.tokens.fontWeightSemibold),color:i.tokens.colorNeutralForeground1,fontFamily:i.tokens.fontFamilyBase}),message:(0,l.css)({fontSize:i.tokens.fontSizeBase200,fontFamily:i.tokens.fontFamilyBase}),messageError:(0,l.css)({color:i.tokens.colorPaletteRedForeground1}),messageWarning:(0,l.css)({color:i.tokens.colorPaletteYellowForeground2}),messageInfo:(0,l.css)({color:i.tokens.colorNeutralForeground3}),messageSuccess:(0,l.css)({color:i.tokens.colorPaletteGreenForeground1})}),[e]),ru=t.default.memo(({length:e,value:r,defaultValue:a,onChange:o,onComplete:s,validationType:c=`numeric`,sanitizeValue:l,mask:u=!1,autoComplete:d=`one-time-code`,disabled:f=!1,readOnly:p=!1,label:m,message:h,messageType:g,required:_=!1,size:v=`medium`,gap:y=8,separatorAfter:b,separator:x=`–`,placeholder:S=``,className:C,style:w})=>{let T=nu(y),{value:E,focusedIndex:D,inputRefs:O,inputMode:k,handleChange:A,handleKeyDown:j,handlePaste:M,handleFocus:N,handleBlur:ee}=tu({length:e,value:r,defaultValue:a,validationType:c,sanitizeValue:l,onChange:o,onComplete:s,disabled:f,readOnly:p}),P=(0,t.useMemo)(()=>new Set(b??[]),[b]),F=v===`small`?T.inputSmall:v===`large`?T.inputLarge:T.inputMedium,I=g?T[`message${g.charAt(0).toUpperCase()}${g.slice(1)}`]:T.messageInfo,L=g===`error`?T.inputError:g===`success`?T.inputSuccess:g===`warning`?T.inputWarning:void 0,R=(0,t.useMemo)(()=>{let t=[];for(let r=0;r<e;r++){let a=E[r]??``,o=D===r,s=a!==``;t.push((0,n.jsx)(`input`,{ref:e=>{O.current[r]=e},type:u?`password`:`text`,inputMode:k,autoComplete:r===0?d:`off`,autoCorrect:`off`,spellCheck:!1,maxLength:r===0?e:1,tabIndex:r===0||o?0:-1,disabled:f,readOnly:p,required:_,placeholder:S,"aria-label":`Digit ${r+1} of ${e}`,value:a,className:(0,i.mergeClasses)(T.input,F,s&&T.inputFilled,o&&T.inputActive,f&&T.inputDisabled,L),onChange:e=>A(r,e),onKeyDown:e=>j(r,e),onPaste:e=>M(r,e),onFocus:()=>N(r),onBlur:ee},r)),P.has(r)&&t.push((0,n.jsx)(`span`,{className:T.separator,"aria-hidden":!0,children:x},`sep-${r}`))}return t},[e,E,D,u,k,d,f,p,_,S,T,F,L,P,x,A,j,M,N,ee,O]);return(0,n.jsxs)(`div`,{className:(0,i.mergeClasses)(T.root,C),style:w,role:`group`,"aria-label":m??`One-time password`,children:[m&&(0,n.jsxs)(`label`,{className:T.label,children:[m,_&&(0,n.jsx)(`span`,{"aria-hidden":!0,children:` *`})]}),(0,n.jsx)(`div`,{className:T.inputGroup,children:R}),h&&(0,n.jsx)(`span`,{className:(0,i.mergeClasses)(T.message,I),role:`status`,children:h})]})});ru.displayName=`OTPField`;var iu=e=>{let{template:t}=e;return(0,n.jsx)(n.Fragment,{children:t})},au=()=>({toolbar:l.css`
|
|
364
364
|
display: flex !important;
|
|
365
365
|
flex-wrap: nowrap !important;
|
|
366
366
|
align-items: center !important;
|
|
@@ -426,7 +426,7 @@ import { AISearchIcon } from './AISearchIcon';
|
|
|
426
426
|
@media (max-width: 768px) {
|
|
427
427
|
display: none;
|
|
428
428
|
}
|
|
429
|
-
`}),au=[{minWidth:1280,gap:100},{minWidth:1024,gap:60},{minWidth:768,gap:40},{minWidth:480,gap:24},{minWidth:0,gap:12}];function ou(e){for(let t of au)if(e>t.minWidth)return t.gap;return au[au.length-1].gap}function su(e,n,r,i,a=48){let[o,s]=t.useState(i);return t.useEffect(()=>{let t=e.current,o=n.current,c=r.current;if(!t||!c)return;let l=()=>{let e=t.offsetWidth;if(e===0)return;let n=getComputedStyle(t),r=parseFloat(n.paddingLeft||`0`),l=parseFloat(n.paddingRight||`0`),u=parseFloat(n.columnGap||n.gap||`0`),d=ou(e),f=o?o.offsetWidth:0,p=f>0?f+d+u:0,m=e-r-l-p;if(m<=0)return;let h=Array.from(c.children);if(h.length===0){s(i);return}let g=parseFloat(getComputedStyle(c).columnGap||`0`),_=0;for(let e of h)_+=e.offsetWidth;if(_+=Math.max(0,h.length-1)*g,_<=m){s(h.length);return}let v=m-a,y=0,b=0;for(let e=0;e<h.length;e++){let t=h[e].offsetWidth,n=e>0?g:0;if(y+n+t>v)break;y+=n+t,b++}s(Math.max(1,b))},u=requestAnimationFrame(l),d=new ResizeObserver(l);return d.observe(t),()=>{cancelAnimationFrame(u),d.disconnect()}},[e,n,r,i,a]),o}var cu=({item:e,isLoading:t,itemClass:r,labelClass:a})=>{if(e.visible===!1)return null;if(e.onRender)return e.onRender();let o=a?(0,n.jsx)(`span`,{className:a,children:e.label}):e.label,s=e.label?(0,n.jsx)(i.ToolbarButton,{className:r,"aria-label":e.ariaLabel||e.tooltip||e.label,icon:e.icon,onClick:e.onClick,disabled:e.disabled||t,appearance:e.appearance,children:o}):(0,n.jsx)(i.ToolbarButton,{className:r,"aria-label":e.ariaLabel||e.tooltip||e.key,icon:e.icon,onClick:e.onClick,disabled:e.disabled||t,appearance:e.appearance});return e.tooltip?(0,n.jsx)(i.Tooltip,{content:e.tooltip,relationship:`label`,children:s}):s};function lu(e){let t=new Map;for(let n of e){let e=n.group||`default`;t.has(e)||t.set(e,[]),t.get(e).push(n)}return t}function uu(e,t){let n=[],r=lu(e),i=Array.from(r.entries());for(let e=0;e<i.length;e++){let[,r]=i[e],a=e===i.length-1;for(let e of r)e.dividerBefore&&n.push({type:`divider`,key:`${e.key}-div-before`}),n.push({type:`item`,item:e,key:e.key}),e.dividerAfter&&n.push({type:`divider`,key:`${e.key}-div-after`});t&&!a&&n.push({type:`divider`,key:`group-div-${e}`})}return n}var du=({items:e,farItems:r=[],isLoading:a=!1,ariaLabel:o=`Toolbar`,totalCount:s,className:c,showGroupDividers:l=!0})=>{let u=iu(),f=t.useRef(null),p=t.useRef(null),m=t.useRef(null),h=t.useRef(null),g=t.useMemo(()=>e.filter(e=>!e.isFarItem&&e.visible!==!1),[e]),_=t.useMemo(()=>{let t=e.filter(e=>e.isFarItem&&e.visible!==!1),n=r.filter(e=>e.visible!==!1);return[...t,...n]},[e,r]),v=t.useMemo(()=>lu(_),[_]),y=t.useMemo(()=>uu(g,l),[g,l]),b=su(f,m,h,y.length),x=t.useMemo(()=>{let e=new Set;for(let t=0;t<b&&t<y.length;t++)y[t].type===`item`&&e.add(y[t].key);return e},[y,b]),S=t.useMemo(()=>g.filter(e=>!x.has(e.key)),[g,x]),C=S.length>0,w=(e,t,r)=>{let o=[];for(let t of e)t.dividerBefore&&o.push((0,n.jsx)(i.ToolbarDivider,{},`${t.key}-divider-before`)),o.push((0,n.jsx)(cu,{item:t,isLoading:a,itemClass:u.farItemButton,labelClass:u.farItemLabel},t.key)),t.dividerAfter&&o.push((0,n.jsx)(i.ToolbarDivider,{},`${t.key}-divider-after`));return l&&!r&&o.push((0,n.jsx)(i.ToolbarDivider,{},`group-divider-${t}`)),o};return(0,n.jsxs)(`div`,{ref:f,role:`toolbar`,"aria-label":o,className:`${u.toolbar} ${c||``}`,children:[(0,n.jsx)(`div`,{ref:h,className:u.measureSection,"aria-hidden":`true`,children:y.map(e=>e.type===`divider`?(0,n.jsx)(i.ToolbarDivider,{},e.key):(0,n.jsx)(cu,{item:e.item,isLoading:a,itemClass:u.toolbarItem},e.key))}),(0,n.jsxs)(`div`,{ref:p,className:u.leftSection,children:[y.map((e,t)=>t>=b?null:e.type===`divider`?(0,n.jsx)(i.ToolbarDivider,{},e.key):(0,n.jsx)(cu,{item:e.item,isLoading:a,itemClass:u.toolbarItem},e.key)),C&&(0,n.jsxs)(i.Menu,{children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.Tooltip,{content:`${S.length} more actions`,relationship:`label`,children:(0,n.jsx)(i.ToolbarButton,{className:u.overflowButton,icon:(0,n.jsx)(d.MoreHorizontalRegular,{}),"aria-label":`${S.length} more actions`})})}),(0,n.jsx)(i.MenuPopover,{children:(0,n.jsx)(i.MenuList,{children:S.map(e=>(0,n.jsx)(i.MenuItem,{icon:e.icon,disabled:e.disabled||a,onClick:e.onClick,children:e.label||e.tooltip||e.key},e.key))})})]}),s!==void 0&&s>0&&(0,n.jsx)(i.Badge,{appearance:`filled`,color:`informative`,className:u.countBadge,children:(0,n.jsxs)(i.Text,{size:200,children:[s,` items`]})})]}),(0,n.jsx)(`div`,{ref:m,className:u.rightGroup,children:_.length>0&&(0,n.jsx)(`div`,{className:u.farItemsContainer,children:Array.from(v.entries()).map(([e,t],n)=>w(t,n,n===v.size-1))})})]})},fu=()=>({root:(0,l.css)({display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignItems:`flex-start`,width:`fit-content`,gap:`10px`,"&[data-fui-focus-within]:focus-within::after":{borderWidth:`0px`}}),personContainer:(0,l.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,alignItems:`flex-start`,width:`100%`,maxWidth:`100%`,overflow:`hidden`,paddingBottom:`0px`}),textStyle:(0,l.css)({width:`100%`,maxWidth:`100%`,overflow:`hidden`,display:`-webkit-box`,WebkitLineClamp:`1`,WebkitBoxOrient:`vertical`,paddingBottom:`0px`,textAlign:`start`,wordBreak:`break-all`,textOverflow:`ellipsis`,textOverlay:`hidden`}),spinnerContainer:(0,l.css)({display:`flex`,flexDirection:`row`,justifyContent:`center`,alignItems:`center`,width:`100%`})}),pu=6e4,mu=new Map,hu=300*1e3,gu=120*1e3;setInterval(()=>{let e=Date.now(),t=[];mu.forEach((n,r)=>{e>n.expiresAt&&t.push(r)}),t.forEach(e=>mu.delete(e))},600*1e3);var _u=(n,r)=>{let i=ie(),a=(r||i)?.graphClient,{error:o,warn:s,verbose:c}=z(),[l,u]=(0,t.useState)(void 0),[d,f]=(0,t.useState)(!0),p=(0,t.useCallback)(async e=>{if(!a)return s(`Graph client not available`),null;try{return await a.get(`/users/${e}`)}catch(e){return o(`Error fetching user:`,e instanceof Error?e:void 0),null}},[a]),m=(0,t.useCallback)(async e=>{if(!a)return s(`Graph client not available`),null;try{return await a.get(`/users/${e}/presence`)}catch(e){return o(`Error fetching user presence:`,e instanceof Error?e:void 0),null}},[a]),h=(0,t.useCallback)(async e=>{if(!a){s(`Graph client not available`);return}try{let t=await a.getBlob(`/users/${e}/photo/$value`);return t?new Promise((e,n)=>{let r=new FileReader;r.onloadend=()=>e(r.result),r.onerror=n,r.readAsDataURL(t)}):void 0}catch{c(`No photo available for user:`,e);return}},[a]),g=(0,t.useCallback)(async()=>{if(!n){f(!1);return}let t=mu.get(n),r=Date.now();if(t&&r<t.expiresAt){u(t.data),f(!1);return}try{let t=await p(n);if(!t)return;let i={availability:`Offline`,activity:`Offline`},a;try{if(t.id){let e=await m(t.id);e&&(i=e)}}catch(n){n?.message?.toLowerCase().includes(`exceed`)?(o(`fetchUser: Exceeded resource error during presence check`,n,e.D.Error),i=t.presence||{availability:`Offline`,activity:`Offline`}):o(`fetchUser: Error fetching user presence`,n,e.D.Error)}try{t.id&&(a=await h(t.id))}catch(t){o(`fetchUser: Error fetching user photo`,t,e.D.Warning)}let s={...t,presence:i,userPhoto:a};mu.set(n,{data:s,timestamp:r,expiresAt:r+hu}),u(s)}catch(t){o(`fetchUser: Error fetching user`,t,e.D.Error)}finally{f(!1)}},[n,p,m,h,o]),_=(0,t.useCallback)(async()=>{if(!n||!l)return;let t=mu.get(n),r=Date.now();if(!(t&&t.data.presence&&r-t.timestamp<gu))try{let i={availability:`Offline`,activity:`Offline`};try{if(l.id){let e=await m(l.id);e&&(i=e)}}catch(t){t.message?.toLowerCase().includes(`exceed`)?(o(`checkUserPresence: Exceeded resource error during presence check`,t,e.D.Error),i=l.presence||{availability:`Offline`,activity:`Offline`}):o(`checkUserPresence: Error fetching user presence`,t,e.D.Error)}let a={...l,presence:i};mu.set(n,{data:a,timestamp:r,expiresAt:t?.expiresAt||r+hu}),u(a)}catch(t){o(`checkUserPresence: Error in checkUserPresence`,t,e.D.Error)}},[n,l,m,o]);(0,t.useEffect)(()=>{(async()=>{await g()})()},[g]);let{startPolling:v,stopPolling:y}=se(_,l?pu:pu*2,!1);return(0,t.useEffect)(()=>(l&&v(),()=>{y()}),[l,v,y]),{user:l,loading:d,refetch:g}},vu=t.default.memo(({userId:r,avatarSize:a=32,showHoverCard:o=!0,context:s,textPosition:c=`after`,className:l,avatarOnly:u=!1,secondaryText:d,tertiaryText:f,quaternaryText:p})=>{let m=fu(),{user:h}=_u(r,s),g=e.S(),_=(0,t.useMemo)(()=>{let e=h?.presence?.availability?.toLowerCase(),t=h?.presence?.activity?.toLowerCase();switch(e){case`available`:return{status:`available`,text:g.available};case`availableidle`:return{status:`available`,text:g.availableIdle};case`away`:return{status:`away`,text:g.away};case`busy`:return{status:`busy`,text:g.busy};case`busyidle`:return{status:`busy`,text:g.busyIdle};case`donotdisturb`:return{status:`do-not-disturb`,text:g.doNotDisturb};case`berighback`:return{status:`away`,text:g.beRightBack};case`invisible`:return{status:`offline`,text:g.appearOffline};case`presenceunknown`:return{status:`unknown`,text:g.unknown};case`offline`:return{status:`offline`,text:t===`outofoffice`?g.outOfOffice:g.offline,outOfOffice:t===`outofoffice`};default:return{status:`offline`,text:g.offline,outOfOffice:t===`outofoffice`}}},[h?.presence?.availability,h?.presence?.activity,g]);return(0,n.jsx)(ru,{upn:o&&h?.mail||``,template:(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(m.root,l),children:u?(0,n.jsx)(i.Avatar,{color:`colorful`,image:{src:h?.userPhoto,alt:h?.displayName||g.userAvatar},size:a,name:h?.displayName||r||g.unknownUser,badge:{status:_.status,outOfOffice:_.outOfOffice}}):(0,n.jsx)(i.Persona,{primaryText:(0,n.jsxs)(i.Body1Strong,{className:m.textStyle,children:[` `,h?.displayName||r||g.unknownUser]}),textPosition:c??`after`,presence:{status:_.status,outOfOffice:_.outOfOffice},secondaryText:d?.showSecondaryText?d.text?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`span`,{className:m.textStyle,children:d.text})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`span`,{className:m.textStyle,children:h?.jobTitle||`Unknown Job Title`})}):void 0,tertiaryText:f?.showTertiaryText?f.text?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`span`,{className:m.textStyle,children:f.text})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`span`,{className:m.textStyle,children:h?.mail||`Unknown Email`})}):void 0,quaternaryText:p?.showQuaternaryText?p.text?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`span`,{className:m.textStyle,children:p.text})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`span`,{className:m.textStyle,children:_.text})}):void 0,avatar:{color:`colorful`,image:{src:h?.userPhoto,alt:h?.displayName||g.userAvatar},size:a},textAlignment:`start`})})})},(e,t)=>e.userId===t.userId&&e.avatarSize===t.avatarSize&&e.showHoverCard===t.showHoverCard&&e.textPosition===t.textPosition&&e.avatarOnly===t.avatarOnly&&e.className===t.className&&JSON.stringify(e.secondaryText)===JSON.stringify(t.secondaryText)&&JSON.stringify(e.tertiaryText)===JSON.stringify(t.tertiaryText)&&JSON.stringify(e.quaternaryText)===JSON.stringify(t.quaternaryText)),yu=()=>({container:(0,l.css)({display:`flex`,alignItems:`center`,gap:`4px`}),stackLayout:(0,l.css)({"& > *:not(:first-child)":{marginLeft:`-8px`}}),spreadLayout:(0,l.css)({display:`flex`,flexDirection:`row`,gap:`8px`,"& > *":{marginLeft:`0`}}),userCardWrapper:(0,l.css)({position:`relative`,zIndex:1,transition:`transform 0.2s ease, z-index 0.2s ease`,"&:hover":{transform:`scale(1.1)`,zIndex:10}}),overflowButton:(0,l.css)({backgroundColor:i.tokens.colorNeutralBackground1,border:`2px solid ${i.tokens.colorNeutralStroke1}`,borderRadius:`50%`,color:i.tokens.colorNeutralForeground1,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:`12px`,fontWeight:600,minWidth:`32px`,minHeight:`32px`,position:`relative`,zIndex:1,transition:`all 0.2s ease`,"&:hover":{backgroundColor:i.tokens.colorNeutralBackground1Hover,zIndex:10}}),popover:(0,l.css)({maxWidth:`300px`,padding:`12px`}),popoverUserList:(0,l.css)({display:`flex`,flexDirection:`column`,gap:`8px`}),popoverUserCard:(0,l.css)({padding:`4px`,borderRadius:`4px`,transition:`background-color 0.2s ease`,"&:hover":{backgroundColor:i.tokens.colorNeutralBackground1Hover}})}),bu=({users:e,maxVisible:r=5,avatarSize:a=32,showHoverCard:o=!0,context:s,className:c,layout:l=`stack`,overflowText:u})=>{let d=yu(),{warn:f}=z(),{visibleUsers:p,overflowUsers:m}=(0,t.useMemo)(()=>!e||e.length===0?{visibleUsers:[],overflowUsers:[]}:{visibleUsers:e.slice(0,r),overflowUsers:e.slice(r)},[e,r]),h=(0,t.useMemo)(()=>u||`+${m.length}`,[u,m.length]);return!e||e.length===0?null:s?(0,n.jsxs)(H,{direction:`horizontal`,alignItems:`start`,gap:l===`stack`?`4px`:`12px`,className:`${l===`stack`?d.stackLayout:d.spreadLayout} ${c||``}`,children:[p.map((e,t)=>(0,n.jsx)(`div`,{className:d.userCardWrapper,children:(0,n.jsx)(vu,{userId:e.id,avatarSize:a,showHoverCard:o??!0,context:s,avatarOnly:!0})},`user-${e.id||t}`)),m.length>0&&(0,n.jsxs)(i.Popover,{withArrow:!0,children:[(0,n.jsx)(i.PopoverTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.Button,{className:d.overflowButton,"aria-label":`Show ${m.length} more users`,style:{width:`${a}px`,height:`${a}px`,fontSize:a>40?`14px`:`12px`},appearance:`subtle`,children:h})}),(0,n.jsx)(i.PopoverSurface,{className:d.popover,children:(0,n.jsx)(`div`,{className:d.popoverUserList,children:m.map((e,t)=>(0,n.jsx)(`div`,{className:d.popoverUserCard,children:(0,n.jsx)(vu,{userId:e.id,avatarSize:32,showHoverCard:o??!0,context:s,textPosition:`after`,avatarOnly:!1})},`overflow-user-${e.id||t}`))})})]})]}):(f(`StackedUsers: context is required to display user cards`),null)},xu=e=>{let n=ie(),r=(e||n)?.graphClient,{warn:i,error:a}=z();return{getItemActivities:(0,t.useCallback)(async(e,t,n)=>{if(!r)return i(`Graph client not available for SharePoint activities`),{activities:[]};try{let i=await r.get(`/sites/${e}/lists/${t}/items/${n}/getActivitiesByInterval(startDateTime='',endDateTime='',interval='')`);return i&&i.value?{activities:i.value.map(e=>({action:e.action||{},actor:e.actor||{},times:e.times||{}}))}:{activities:[]}}catch(e){throw a(`Error fetching SharePoint activities:`,e instanceof Error?e:void 0),e}},[r])}},Su={width:`20px`,height:`20px`,color:i.tokens.colorBrandBackground},Cu=[`access`,`comment`,`create`,`delete`,`edit`,`mention`,`move`,`rename`,`restore`,`share`,`version`],wu=new Map([]),Tu=({siteId:r,listId:i,itemId:a,currentUserEmail:o,strings:s,context:c})=>{let{getItemActivities:l}=xu(c),u=e.p(),{warn:f,error:p}=z(),m=new Map([[`access`,{message:s?.access||u.accessed||wu.get(`access`)?.message||``,icon:(0,n.jsx)(d.OpenRegular,{style:Su,"aria-hidden":`true`})}],[`comment`,{message:s?.comment||u.commented||wu.get(`comment`)?.message||``,icon:(0,n.jsx)(d.CommentRegular,{style:Su,"aria-hidden":`true`})}],[`create`,{message:s?.create||u.created||wu.get(`create`)?.message||``,icon:(0,n.jsx)(d.AddRegular,{style:Su,"aria-hidden":`true`})}],[`delete`,{message:s?.delete||u.deleted||wu.get(`delete`)?.message||``,icon:(0,n.jsx)(d.DeleteRegular,{style:Su,"aria-hidden":`true`})}],[`edit`,{message:s?.edit||u.edited||wu.get(`edit`)?.message||``,icon:(0,n.jsx)(d.EditRegular,{style:Su,"aria-hidden":`true`})}],[`mention`,{message:s?.mention||u.mentioned||wu.get(`mention`)?.message||``,icon:(0,n.jsx)(d.MentionRegular,{style:Su,"aria-hidden":`true`})}],[`move`,{message:s?.move||u.moved||wu.get(`move`)?.message||``,icon:(0,n.jsx)(d.ArrowMoveRegular,{style:Su,"aria-hidden":`true`})}],[`rename`,{message:s?.rename||u.renamed||wu.get(`rename`)?.message||``,icon:(0,n.jsx)(d.RenameRegular,{style:Su,"aria-hidden":`true`})}],[`restore`,{message:s?.restore||u.restored||wu.get(`restore`)?.message||``,icon:(0,n.jsx)(d.ArrowSyncRegular,{style:Su,"aria-hidden":`true`})}],[`share`,{message:s?.share||u.shared||wu.get(`share`)?.message||``,icon:(0,n.jsx)(d.PeopleRegular,{style:Su,"aria-hidden":`true`})}],[`version`,{message:s?.version||u.versioned||wu.get(`version`)?.message||``,icon:(0,n.jsx)(d.HistoryRegular,{style:Su,"aria-hidden":`true`})}]]),[h,g]=t.useState({message:``,icon:(0,n.jsx)(n.Fragment,{})}),[_,v]=t.useState(!0),y=t.useRef(void 0),b=t.useRef(void 0),[x]=t.useState(30),S=t.useCallback(e=>e.user.email===o,[o]),C=t.useCallback(e=>{if(!e)return{message:``,icon:(0,n.jsx)(n.Fragment,{})};let{action:t,actor:r}=e,{displayName:i}=r?.user||{displayName:``},a=Cu.find(e=>t[e]);if(a){let e=m.get(a);if(e)return{message:`${S(r)?u.you:i} ${e.message}`,icon:e.icon}}return{message:``,icon:(0,n.jsx)(n.Fragment,{})}},[m,S]);return t.useEffect(()=>{b.current?.setPlaybackRate(x/100)},[x,_]),t.useEffect(()=>{let e=!1,t=async(n=1e3)=>{if(r&&i&&a)try{let t=await l(r,i,a);if(e)return;let n=t.activities[0];(!y.current||JSON.stringify(y.current)!==JSON.stringify(n))&&(y.current=n,g(C(n)))}catch(e){if(e.status===429){let r=e.headers?.get(`Retry-After`),i=r?parseInt(r,10)*1e3:n;f(`Throttled. Retrying after ${i}ms`),setTimeout(()=>t(i*2),i);return}else p(`Activity Error`,e instanceof Error?e:void 0)}finally{e||v(!1)}},n=setTimeout(()=>{t()},1e3);return()=>{clearTimeout(n),e=!0}},[r,i,a,l,C]),(0,n.jsx)(L.Fade,{imperativeRef:b,visible:!_,children:(0,n.jsx)(`div`,{children:(0,n.jsxs)(B,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`center`,RowGap:4,columnGap:4,children:[h.icon,` `,h.message]})})})},Eu=e=>(0,n.jsxs)(`svg`,{width:`100`,height:`100`,viewBox:`0 0 100 100`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,role:`img`,"aria-label":`Business report`,...e,children:[(0,n.jsx)(`title`,{children:`Business report`}),(0,n.jsx)(`rect`,{x:`20`,y:`30`,width:`60`,height:`50`,fill:`#0078D4`,opacity:`0.1`}),(0,n.jsx)(`rect`,{x:`30`,y:`50`,width:`10`,height:`20`,fill:`#0078D4`}),(0,n.jsx)(`rect`,{x:`45`,y:`40`,width:`10`,height:`30`,fill:`#0078D4`}),(0,n.jsx)(`rect`,{x:`60`,y:`35`,width:`10`,height:`35`,fill:`#0078D4`})]}),Du=t=>{let{height:r}=t,a=e.i();return(0,n.jsxs)(`div`,{style:{height:r||`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`,flexDirection:`column`},children:[(0,n.jsx)(Eu,{width:200,height:200}),(0,n.jsx)(i.Text,{size:500,weight:`semibold`,children:a.noDashboardsAvailable})]})},Ou=()=>({gridContainer:l.css`
|
|
429
|
+
`}),ou=[{minWidth:1280,gap:100},{minWidth:1024,gap:60},{minWidth:768,gap:40},{minWidth:480,gap:24},{minWidth:0,gap:12}];function su(e){for(let t of ou)if(e>t.minWidth)return t.gap;return ou[ou.length-1].gap}function cu(e,n,r,i,a=48){let[o,s]=t.useState(i);return t.useEffect(()=>{let t=e.current,o=n.current,c=r.current;if(!t||!c)return;let l=()=>{let e=t.offsetWidth;if(e===0)return;let n=getComputedStyle(t),r=parseFloat(n.paddingLeft||`0`),l=parseFloat(n.paddingRight||`0`),u=parseFloat(n.columnGap||n.gap||`0`),d=su(e),f=o?o.offsetWidth:0,p=f>0?f+d+u:0,m=e-r-l-p;if(m<=0)return;let h=Array.from(c.children);if(h.length===0){s(i);return}let g=parseFloat(getComputedStyle(c).columnGap||`0`),_=0;for(let e of h)_+=e.offsetWidth;if(_+=Math.max(0,h.length-1)*g,_<=m){s(h.length);return}let v=m-a,y=0,b=0;for(let e=0;e<h.length;e++){let t=h[e].offsetWidth,n=e>0?g:0;if(y+n+t>v)break;y+=n+t,b++}s(Math.max(1,b))},u=requestAnimationFrame(l),d=new ResizeObserver(l);return d.observe(t),()=>{cancelAnimationFrame(u),d.disconnect()}},[e,n,r,i,a]),o}var lu=({item:e,isLoading:t,itemClass:r,labelClass:a})=>{if(e.visible===!1)return null;if(e.onRender)return e.onRender();let o=a?(0,n.jsx)(`span`,{className:a,children:e.label}):e.label,s=e.label?(0,n.jsx)(i.ToolbarButton,{className:r,"aria-label":e.ariaLabel||e.tooltip||e.label,icon:e.icon,onClick:e.onClick,disabled:e.disabled||t,appearance:e.appearance,children:o}):(0,n.jsx)(i.ToolbarButton,{className:r,"aria-label":e.ariaLabel||e.tooltip||e.key,icon:e.icon,onClick:e.onClick,disabled:e.disabled||t,appearance:e.appearance});return e.tooltip?(0,n.jsx)(i.Tooltip,{content:e.tooltip,relationship:`label`,children:s}):s};function uu(e){let t=new Map;for(let n of e){let e=n.group||`default`;t.has(e)||t.set(e,[]),t.get(e).push(n)}return t}function du(e,t){let n=[],r=uu(e),i=Array.from(r.entries());for(let e=0;e<i.length;e++){let[,r]=i[e],a=e===i.length-1;for(let e of r)e.dividerBefore&&n.push({type:`divider`,key:`${e.key}-div-before`}),n.push({type:`item`,item:e,key:e.key}),e.dividerAfter&&n.push({type:`divider`,key:`${e.key}-div-after`});t&&!a&&n.push({type:`divider`,key:`group-div-${e}`})}return n}var fu=({items:e,farItems:r=[],isLoading:a=!1,ariaLabel:o=`Toolbar`,totalCount:s,className:c,showGroupDividers:l=!0})=>{let u=au(),f=t.useRef(null),p=t.useRef(null),m=t.useRef(null),h=t.useRef(null),g=t.useMemo(()=>e.filter(e=>!e.isFarItem&&e.visible!==!1),[e]),_=t.useMemo(()=>{let t=e.filter(e=>e.isFarItem&&e.visible!==!1),n=r.filter(e=>e.visible!==!1);return[...t,...n]},[e,r]),v=t.useMemo(()=>uu(_),[_]),y=t.useMemo(()=>du(g,l),[g,l]),b=cu(f,m,h,y.length),x=t.useMemo(()=>{let e=new Set;for(let t=0;t<b&&t<y.length;t++)y[t].type===`item`&&e.add(y[t].key);return e},[y,b]),S=t.useMemo(()=>g.filter(e=>!x.has(e.key)),[g,x]),C=S.length>0,w=(e,t,r)=>{let o=[];for(let t of e)t.dividerBefore&&o.push((0,n.jsx)(i.ToolbarDivider,{},`${t.key}-divider-before`)),o.push((0,n.jsx)(lu,{item:t,isLoading:a,itemClass:u.farItemButton,labelClass:u.farItemLabel},t.key)),t.dividerAfter&&o.push((0,n.jsx)(i.ToolbarDivider,{},`${t.key}-divider-after`));return l&&!r&&o.push((0,n.jsx)(i.ToolbarDivider,{},`group-divider-${t}`)),o};return(0,n.jsxs)(`div`,{ref:f,role:`toolbar`,"aria-label":o,className:`${u.toolbar} ${c||``}`,children:[(0,n.jsx)(`div`,{ref:h,className:u.measureSection,"aria-hidden":`true`,children:y.map(e=>e.type===`divider`?(0,n.jsx)(i.ToolbarDivider,{},e.key):(0,n.jsx)(lu,{item:e.item,isLoading:a,itemClass:u.toolbarItem},e.key))}),(0,n.jsxs)(`div`,{ref:p,className:u.leftSection,children:[y.map((e,t)=>t>=b?null:e.type===`divider`?(0,n.jsx)(i.ToolbarDivider,{},e.key):(0,n.jsx)(lu,{item:e.item,isLoading:a,itemClass:u.toolbarItem},e.key)),C&&(0,n.jsxs)(i.Menu,{children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.Tooltip,{content:`${S.length} more actions`,relationship:`label`,children:(0,n.jsx)(i.ToolbarButton,{className:u.overflowButton,icon:(0,n.jsx)(d.MoreHorizontalRegular,{}),"aria-label":`${S.length} more actions`})})}),(0,n.jsx)(i.MenuPopover,{children:(0,n.jsx)(i.MenuList,{children:S.map(e=>(0,n.jsx)(i.MenuItem,{icon:e.icon,disabled:e.disabled||a,onClick:e.onClick,children:e.label||e.tooltip||e.key},e.key))})})]}),s!==void 0&&s>0&&(0,n.jsx)(i.Badge,{appearance:`filled`,color:`informative`,className:u.countBadge,children:(0,n.jsxs)(i.Text,{size:200,children:[s,` items`]})})]}),(0,n.jsx)(`div`,{ref:m,className:u.rightGroup,children:_.length>0&&(0,n.jsx)(`div`,{className:u.farItemsContainer,children:Array.from(v.entries()).map(([e,t],n)=>w(t,n,n===v.size-1))})})]})},pu=()=>({root:(0,l.css)({display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignItems:`flex-start`,width:`fit-content`,gap:`10px`,"&[data-fui-focus-within]:focus-within::after":{borderWidth:`0px`}}),personContainer:(0,l.css)({display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,alignItems:`flex-start`,width:`100%`,maxWidth:`100%`,overflow:`hidden`,paddingBottom:`0px`}),textStyle:(0,l.css)({width:`100%`,maxWidth:`100%`,overflow:`hidden`,display:`-webkit-box`,WebkitLineClamp:`1`,WebkitBoxOrient:`vertical`,paddingBottom:`0px`,textAlign:`start`,wordBreak:`break-all`,textOverflow:`ellipsis`,textOverlay:`hidden`}),spinnerContainer:(0,l.css)({display:`flex`,flexDirection:`row`,justifyContent:`center`,alignItems:`center`,width:`100%`})}),mu=6e4,hu=new Map,gu=300*1e3,_u=120*1e3;setInterval(()=>{let e=Date.now(),t=[];hu.forEach((n,r)=>{e>n.expiresAt&&t.push(r)}),t.forEach(e=>hu.delete(e))},600*1e3);var vu=(n,r)=>{let i=ie(),a=(r||i)?.graphClient,{error:o,warn:s,verbose:c}=z(),[l,u]=(0,t.useState)(void 0),[d,f]=(0,t.useState)(!0),p=(0,t.useCallback)(async e=>{if(!a)return s(`Graph client not available`),null;try{return await a.get(`/users/${e}`)}catch(e){return o(`Error fetching user:`,e instanceof Error?e:void 0),null}},[a]),m=(0,t.useCallback)(async e=>{if(!a)return s(`Graph client not available`),null;try{return await a.get(`/users/${e}/presence`)}catch(e){return o(`Error fetching user presence:`,e instanceof Error?e:void 0),null}},[a]),h=(0,t.useCallback)(async e=>{if(!a){s(`Graph client not available`);return}try{let t=await a.getBlob(`/users/${e}/photo/$value`);return t?new Promise((e,n)=>{let r=new FileReader;r.onloadend=()=>e(r.result),r.onerror=n,r.readAsDataURL(t)}):void 0}catch{c(`No photo available for user:`,e);return}},[a]),g=(0,t.useCallback)(async()=>{if(!n){f(!1);return}let t=hu.get(n),r=Date.now();if(t&&r<t.expiresAt){u(t.data),f(!1);return}try{let t=await p(n);if(!t)return;let i={availability:`Offline`,activity:`Offline`},a;try{if(t.id){let e=await m(t.id);e&&(i=e)}}catch(n){n?.message?.toLowerCase().includes(`exceed`)?(o(`fetchUser: Exceeded resource error during presence check`,n,e.D.Error),i=t.presence||{availability:`Offline`,activity:`Offline`}):o(`fetchUser: Error fetching user presence`,n,e.D.Error)}try{t.id&&(a=await h(t.id))}catch(t){o(`fetchUser: Error fetching user photo`,t,e.D.Warning)}let s={...t,presence:i,userPhoto:a};hu.set(n,{data:s,timestamp:r,expiresAt:r+gu}),u(s)}catch(t){o(`fetchUser: Error fetching user`,t,e.D.Error)}finally{f(!1)}},[n,p,m,h,o]),_=(0,t.useCallback)(async()=>{if(!n||!l)return;let t=hu.get(n),r=Date.now();if(!(t&&t.data.presence&&r-t.timestamp<_u))try{let i={availability:`Offline`,activity:`Offline`};try{if(l.id){let e=await m(l.id);e&&(i=e)}}catch(t){t.message?.toLowerCase().includes(`exceed`)?(o(`checkUserPresence: Exceeded resource error during presence check`,t,e.D.Error),i=l.presence||{availability:`Offline`,activity:`Offline`}):o(`checkUserPresence: Error fetching user presence`,t,e.D.Error)}let a={...l,presence:i};hu.set(n,{data:a,timestamp:r,expiresAt:t?.expiresAt||r+gu}),u(a)}catch(t){o(`checkUserPresence: Error in checkUserPresence`,t,e.D.Error)}},[n,l,m,o]);(0,t.useEffect)(()=>{(async()=>{await g()})()},[g]);let{startPolling:v,stopPolling:y}=se(_,l?mu:mu*2,!1);return(0,t.useEffect)(()=>(l&&v(),()=>{y()}),[l,v,y]),{user:l,loading:d,refetch:g}},yu=t.default.memo(({userId:r,avatarSize:a=32,showHoverCard:o=!0,context:s,textPosition:c=`after`,className:l,avatarOnly:u=!1,secondaryText:d,tertiaryText:f,quaternaryText:p})=>{let m=pu(),{user:h}=vu(r,s),g=e.S(),_=(0,t.useMemo)(()=>{let e=h?.presence?.availability?.toLowerCase(),t=h?.presence?.activity?.toLowerCase();switch(e){case`available`:return{status:`available`,text:g.available};case`availableidle`:return{status:`available`,text:g.availableIdle};case`away`:return{status:`away`,text:g.away};case`busy`:return{status:`busy`,text:g.busy};case`busyidle`:return{status:`busy`,text:g.busyIdle};case`donotdisturb`:return{status:`do-not-disturb`,text:g.doNotDisturb};case`berighback`:return{status:`away`,text:g.beRightBack};case`invisible`:return{status:`offline`,text:g.appearOffline};case`presenceunknown`:return{status:`unknown`,text:g.unknown};case`offline`:return{status:`offline`,text:t===`outofoffice`?g.outOfOffice:g.offline,outOfOffice:t===`outofoffice`};default:return{status:`offline`,text:g.offline,outOfOffice:t===`outofoffice`}}},[h?.presence?.availability,h?.presence?.activity,g]);return(0,n.jsx)(iu,{upn:o&&h?.mail||``,template:(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(m.root,l),children:u?(0,n.jsx)(i.Avatar,{color:`colorful`,image:{src:h?.userPhoto,alt:h?.displayName||g.userAvatar},size:a,name:h?.displayName||r||g.unknownUser,badge:{status:_.status,outOfOffice:_.outOfOffice}}):(0,n.jsx)(i.Persona,{primaryText:(0,n.jsxs)(i.Body1Strong,{className:m.textStyle,children:[` `,h?.displayName||r||g.unknownUser]}),textPosition:c??`after`,presence:{status:_.status,outOfOffice:_.outOfOffice},secondaryText:d?.showSecondaryText?d.text?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`span`,{className:m.textStyle,children:d.text})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`span`,{className:m.textStyle,children:h?.jobTitle||`Unknown Job Title`})}):void 0,tertiaryText:f?.showTertiaryText?f.text?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`span`,{className:m.textStyle,children:f.text})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`span`,{className:m.textStyle,children:h?.mail||`Unknown Email`})}):void 0,quaternaryText:p?.showQuaternaryText?p.text?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`span`,{className:m.textStyle,children:p.text})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`span`,{className:m.textStyle,children:_.text})}):void 0,avatar:{color:`colorful`,image:{src:h?.userPhoto,alt:h?.displayName||g.userAvatar},size:a},textAlignment:`start`})})})},(e,t)=>e.userId===t.userId&&e.avatarSize===t.avatarSize&&e.showHoverCard===t.showHoverCard&&e.textPosition===t.textPosition&&e.avatarOnly===t.avatarOnly&&e.className===t.className&&JSON.stringify(e.secondaryText)===JSON.stringify(t.secondaryText)&&JSON.stringify(e.tertiaryText)===JSON.stringify(t.tertiaryText)&&JSON.stringify(e.quaternaryText)===JSON.stringify(t.quaternaryText)),bu=()=>({container:(0,l.css)({display:`flex`,alignItems:`center`,gap:`4px`}),stackLayout:(0,l.css)({"& > *:not(:first-child)":{marginLeft:`-8px`}}),spreadLayout:(0,l.css)({display:`flex`,flexDirection:`row`,gap:`8px`,"& > *":{marginLeft:`0`}}),userCardWrapper:(0,l.css)({position:`relative`,zIndex:1,transition:`transform 0.2s ease, z-index 0.2s ease`,"&:hover":{transform:`scale(1.1)`,zIndex:10}}),overflowButton:(0,l.css)({backgroundColor:i.tokens.colorNeutralBackground1,border:`2px solid ${i.tokens.colorNeutralStroke1}`,borderRadius:`50%`,color:i.tokens.colorNeutralForeground1,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:`12px`,fontWeight:600,minWidth:`32px`,minHeight:`32px`,position:`relative`,zIndex:1,transition:`all 0.2s ease`,"&:hover":{backgroundColor:i.tokens.colorNeutralBackground1Hover,zIndex:10}}),popover:(0,l.css)({maxWidth:`300px`,padding:`12px`}),popoverUserList:(0,l.css)({display:`flex`,flexDirection:`column`,gap:`8px`}),popoverUserCard:(0,l.css)({padding:`4px`,borderRadius:`4px`,transition:`background-color 0.2s ease`,"&:hover":{backgroundColor:i.tokens.colorNeutralBackground1Hover}})}),xu=({users:e,maxVisible:r=5,avatarSize:a=32,showHoverCard:o=!0,context:s,className:c,layout:l=`stack`,overflowText:u})=>{let d=bu(),{warn:f}=z(),{visibleUsers:p,overflowUsers:m}=(0,t.useMemo)(()=>!e||e.length===0?{visibleUsers:[],overflowUsers:[]}:{visibleUsers:e.slice(0,r),overflowUsers:e.slice(r)},[e,r]),h=(0,t.useMemo)(()=>u||`+${m.length}`,[u,m.length]);return!e||e.length===0?null:s?(0,n.jsxs)(H,{direction:`horizontal`,alignItems:`start`,gap:l===`stack`?`4px`:`12px`,className:`${l===`stack`?d.stackLayout:d.spreadLayout} ${c||``}`,children:[p.map((e,t)=>(0,n.jsx)(`div`,{className:d.userCardWrapper,children:(0,n.jsx)(yu,{userId:e.id,avatarSize:a,showHoverCard:o??!0,context:s,avatarOnly:!0})},`user-${e.id||t}`)),m.length>0&&(0,n.jsxs)(i.Popover,{withArrow:!0,children:[(0,n.jsx)(i.PopoverTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.Button,{className:d.overflowButton,"aria-label":`Show ${m.length} more users`,style:{width:`${a}px`,height:`${a}px`,fontSize:a>40?`14px`:`12px`},appearance:`subtle`,children:h})}),(0,n.jsx)(i.PopoverSurface,{className:d.popover,children:(0,n.jsx)(`div`,{className:d.popoverUserList,children:m.map((e,t)=>(0,n.jsx)(`div`,{className:d.popoverUserCard,children:(0,n.jsx)(yu,{userId:e.id,avatarSize:32,showHoverCard:o??!0,context:s,textPosition:`after`,avatarOnly:!1})},`overflow-user-${e.id||t}`))})})]})]}):(f(`StackedUsers: context is required to display user cards`),null)},Su=e=>{let n=ie(),r=(e||n)?.graphClient,{warn:i,error:a}=z();return{getItemActivities:(0,t.useCallback)(async(e,t,n)=>{if(!r)return i(`Graph client not available for SharePoint activities`),{activities:[]};try{let i=await r.get(`/sites/${e}/lists/${t}/items/${n}/getActivitiesByInterval(startDateTime='',endDateTime='',interval='')`);return i&&i.value?{activities:i.value.map(e=>({action:e.action||{},actor:e.actor||{},times:e.times||{}}))}:{activities:[]}}catch(e){throw a(`Error fetching SharePoint activities:`,e instanceof Error?e:void 0),e}},[r])}},Cu={width:`20px`,height:`20px`,color:i.tokens.colorBrandBackground},wu=[`access`,`comment`,`create`,`delete`,`edit`,`mention`,`move`,`rename`,`restore`,`share`,`version`],Tu=new Map([]),Eu=({siteId:r,listId:i,itemId:a,currentUserEmail:o,strings:s,context:c})=>{let{getItemActivities:l}=Su(c),u=e.p(),{warn:f,error:p}=z(),m=new Map([[`access`,{message:s?.access||u.accessed||Tu.get(`access`)?.message||``,icon:(0,n.jsx)(d.OpenRegular,{style:Cu,"aria-hidden":`true`})}],[`comment`,{message:s?.comment||u.commented||Tu.get(`comment`)?.message||``,icon:(0,n.jsx)(d.CommentRegular,{style:Cu,"aria-hidden":`true`})}],[`create`,{message:s?.create||u.created||Tu.get(`create`)?.message||``,icon:(0,n.jsx)(d.AddRegular,{style:Cu,"aria-hidden":`true`})}],[`delete`,{message:s?.delete||u.deleted||Tu.get(`delete`)?.message||``,icon:(0,n.jsx)(d.DeleteRegular,{style:Cu,"aria-hidden":`true`})}],[`edit`,{message:s?.edit||u.edited||Tu.get(`edit`)?.message||``,icon:(0,n.jsx)(d.EditRegular,{style:Cu,"aria-hidden":`true`})}],[`mention`,{message:s?.mention||u.mentioned||Tu.get(`mention`)?.message||``,icon:(0,n.jsx)(d.MentionRegular,{style:Cu,"aria-hidden":`true`})}],[`move`,{message:s?.move||u.moved||Tu.get(`move`)?.message||``,icon:(0,n.jsx)(d.ArrowMoveRegular,{style:Cu,"aria-hidden":`true`})}],[`rename`,{message:s?.rename||u.renamed||Tu.get(`rename`)?.message||``,icon:(0,n.jsx)(d.RenameRegular,{style:Cu,"aria-hidden":`true`})}],[`restore`,{message:s?.restore||u.restored||Tu.get(`restore`)?.message||``,icon:(0,n.jsx)(d.ArrowSyncRegular,{style:Cu,"aria-hidden":`true`})}],[`share`,{message:s?.share||u.shared||Tu.get(`share`)?.message||``,icon:(0,n.jsx)(d.PeopleRegular,{style:Cu,"aria-hidden":`true`})}],[`version`,{message:s?.version||u.versioned||Tu.get(`version`)?.message||``,icon:(0,n.jsx)(d.HistoryRegular,{style:Cu,"aria-hidden":`true`})}]]),[h,g]=t.useState({message:``,icon:(0,n.jsx)(n.Fragment,{})}),[_,v]=t.useState(!0),y=t.useRef(void 0),b=t.useRef(void 0),[x]=t.useState(30),S=t.useCallback(e=>e.user.email===o,[o]),C=t.useCallback(e=>{if(!e)return{message:``,icon:(0,n.jsx)(n.Fragment,{})};let{action:t,actor:r}=e,{displayName:i}=r?.user||{displayName:``},a=wu.find(e=>t[e]);if(a){let e=m.get(a);if(e)return{message:`${S(r)?u.you:i} ${e.message}`,icon:e.icon}}return{message:``,icon:(0,n.jsx)(n.Fragment,{})}},[m,S]);return t.useEffect(()=>{b.current?.setPlaybackRate(x/100)},[x,_]),t.useEffect(()=>{let e=!1,t=async(n=1e3)=>{if(r&&i&&a)try{let t=await l(r,i,a);if(e)return;let n=t.activities[0];(!y.current||JSON.stringify(y.current)!==JSON.stringify(n))&&(y.current=n,g(C(n)))}catch(e){if(e.status===429){let r=e.headers?.get(`Retry-After`),i=r?parseInt(r,10)*1e3:n;f(`Throttled. Retrying after ${i}ms`),setTimeout(()=>t(i*2),i);return}else p(`Activity Error`,e instanceof Error?e:void 0)}finally{e||v(!1)}},n=setTimeout(()=>{t()},1e3);return()=>{clearTimeout(n),e=!0}},[r,i,a,l,C]),(0,n.jsx)(L.Fade,{imperativeRef:b,visible:!_,children:(0,n.jsx)(`div`,{children:(0,n.jsxs)(B,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`center`,RowGap:4,columnGap:4,children:[h.icon,` `,h.message]})})})},Du=e=>(0,n.jsxs)(`svg`,{width:`100`,height:`100`,viewBox:`0 0 100 100`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,role:`img`,"aria-label":`Business report`,...e,children:[(0,n.jsx)(`title`,{children:`Business report`}),(0,n.jsx)(`rect`,{x:`20`,y:`30`,width:`60`,height:`50`,fill:`#0078D4`,opacity:`0.1`}),(0,n.jsx)(`rect`,{x:`30`,y:`50`,width:`10`,height:`20`,fill:`#0078D4`}),(0,n.jsx)(`rect`,{x:`45`,y:`40`,width:`10`,height:`30`,fill:`#0078D4`}),(0,n.jsx)(`rect`,{x:`60`,y:`35`,width:`10`,height:`35`,fill:`#0078D4`})]}),Ou=t=>{let{height:r}=t,a=e.i();return(0,n.jsxs)(`div`,{style:{height:r||`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`,flexDirection:`column`},children:[(0,n.jsx)(Du,{width:200,height:200}),(0,n.jsx)(i.Text,{size:500,weight:`semibold`,children:a.noDashboardsAvailable})]})},ku=()=>({gridContainer:l.css`
|
|
430
430
|
display: grid;
|
|
431
431
|
gap: 4px;
|
|
432
432
|
padding: 8px;
|
|
@@ -449,11 +449,11 @@ import { AISearchIcon } from './AISearchIcon';
|
|
|
449
449
|
`,bottomText:l.css`
|
|
450
450
|
padding-left: 8px;
|
|
451
451
|
padding-right: 8px;
|
|
452
|
-
`,zoomContainer:(0,l.css)({display:`flex`,flexDirection:`row`,alignItems:`center`,gap:`6px`,width:`100%`,boxSizing:`border-box`,padding:`8px 0px`})}),
|
|
452
|
+
`,zoomContainer:(0,l.css)({display:`flex`,flexDirection:`row`,alignItems:`center`,gap:`6px`,width:`100%`,boxSizing:`border-box`,padding:`8px 0px`})}),Au=r=>{let{onChange:a,values:o,maxCols:s,maxRows:c}=r,l=(0,d.bundleIcon)(d.Settings20Filled,d.Settings20Regular),u=ku(),f=e.i(),[p,m]=t.useState(o),[h,g]=t.useState(null),[_,v]=t.useState(!1);t.useEffect(()=>{m(o)},[o]);let y=(e,t)=>{v(t.open),g(null)},b=(e,t)=>{let n={spanCols:t+1,spanRows:e+1};m(n),a?.(n),v(!1)},x=(e,t)=>{g({spanCols:t+1,spanRows:e+1})},S=()=>{g(null)},C=()=>{let e=[];for(let t=0;t<c;t++)for(let r=0;r<s;r++){let i=t<p.spanRows&&r<p.spanCols,a=h&&t<h.spanRows&&r<h.spanCols;e.push((0,n.jsx)(`div`,{role:`gridcell`,tabIndex:0,"aria-label":`Set span to ${r+1} columns by ${t+1} rows`,"aria-selected":i,className:`${u.cell} ${a?u.hoveredCell:``} ${i?u.selectedCell:``}`,onMouseEnter:()=>x(t,r),onClick:()=>b(t,r),onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),b(t,r))},onFocus:()=>x(t,r)},`${t}-${r}`))}return e},w=t.useMemo(()=>30*s+4*(s-1)+32,[s]);return(0,n.jsxs)(i.Menu,{open:_,onOpenChange:y,children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.Tooltip,{content:f.configure,relationship:`label`,children:(0,n.jsx)(i.MenuButton,{icon:(0,n.jsx)(l,{}),size:`small`,appearance:`transparent`})})}),(0,n.jsxs)(i.MenuPopover,{style:{width:`${w}px`,minWidth:`120px`,padding:8},children:[(0,n.jsx)(`div`,{className:u.zoomContainer,children:(0,n.jsx)(Ct,{label:`Span (${p.spanCols} × ${p.spanRows})`})}),(0,n.jsx)(`div`,{className:u.gridContainer,style:{gridTemplateColumns:`repeat(${s}, 30px)`,gridTemplateRows:`repeat(${c}, 30px)`},onMouseLeave:S,children:C()}),(0,n.jsx)(i.Caption1,{className:u.bottomText,children:f.clickToSetSpan})]})]})},ju=()=>({dashboardContainer:(0,l.css)({display:`grid`,padding:`20px`,gap:`16px`,backgroundColor:i.tokens.colorNeutralBackground2,gridTemplateColumns:`repeat(auto-fill, minmax(350px, 1fr))`,gridAutoRows:`350px`,overflowY:`auto`,overflowX:`hidden`,"::-webkit-scrollbar":{width:`5px`,height:`5px`},"::-webkit-scrollbar-track":{background:i.tokens.colorNeutralBackground4,borderRadius:`10px`},"::-webkit-scrollbar-thumb":{background:i.tokens.colorBrandStroke2Hover,borderRadius:`10px`},"::-webkit-scrollbar-thumb:hover":{background:i.tokens.colorNeutralStroke2},justifyContent:`center`,gridAutoFlow:`dense`}),cardBody:(0,l.css)({display:`flex`,flexDirection:`column`,height:`100%`,minHeight:`320px`}),chartContainer:(0,l.css)({flex:1,width:`100%`,minHeight:`280px`}),cardDescription:(0,l.css)({color:`${i.tokens.colorNeutralForeground2}`}),cardWrapper:(0,l.css)({position:`relative`,height:`100%`,minHeight:`300px`,borderRadius:i.tokens.borderRadiusMedium,transition:`all 0.2s ease`,"&:hover":{transform:`translateY(-2px)`,boxShadow:`${i.tokens.shadow16}`},"&:active":{transform:`translateY(0)`,boxShadow:`${i.tokens.shadow8}`}})}),Mu=600,Nu=4,Pu=`app-dashboard`,Fu=30,Iu=({cards:e,containerWidth:r,containerHeight:a=`100%`,maxSpanRows:o=Nu,enableDragAndDrop:s=!0,enableCache:c=!0,cacheKeyPrefix:l=Pu,onCardsReorder:u,onCardResize:d})=>{let{warn:f}=z(),p=ju(),m=`${l}-layout-settings`,h=`${l}-card-order`,{getCachedData:g,setCachedData:_}=oe(),v=(0,t.useCallback)(e=>g(e),[g]),y=(0,t.useCallback)((e,t)=>_(e,t,Fu*24*60),[_]),{getCachedData:b,setCachedData:x}=oe(),S=(0,t.useCallback)(e=>b(e),[b]),C=(0,t.useCallback)((e,t)=>x(e,t,Fu*24*60),[x]),[w,T]=(0,t.useState)([]),[E,D]=(0,t.useState)({}),O=(0,t.useRef)(null),k=(0,t.useRef)(null),A=(0,t.useRef)(null);(0,t.useEffect)(()=>{(async()=>{try{let t=e,n={};if(c){let[r,i]=await Promise.all([v(m),S(h)]);if(i&&i.length>0){let n=new Map(e.map(e=>[e.id,e])),r=i.filter(e=>n.has(e)),a=e.filter(e=>!i.includes(e.id));t=[...r.map(e=>n.get(e)),...a]}e.forEach(e=>{let t=r?.[e.id];n[e.id]={spanCols:t?.spanCols??e.defaultSpan?.spanCols??1,spanRows:t?.spanRows??e.defaultSpan?.spanRows??1}})}else e.forEach(e=>{n[e.id]={spanCols:e.defaultSpan?.spanCols??1,spanRows:e.defaultSpan?.spanRows??1}});T(t),D(n)}catch(t){f(`Failed to load dashboard data from cache:`,t),T(e);let n={};e.forEach(e=>{n[e.id]={spanCols:e.defaultSpan?.spanCols??1,spanRows:e.defaultSpan?.spanRows??1}}),D(n)}})()},[e,c,m,h,v,S]),(0,t.useEffect)(()=>{!c||Object.keys(E).length===0||(async()=>{try{await y(m,E)}catch(e){f(`Failed to save dashboard layout to cache:`,e)}})()},[E,c,m,y]),(0,t.useEffect)(()=>{!c||w.length===0||(async()=>{try{await C(h,w.map(e=>e.id))}catch(e){f(`Failed to save dashboard order to cache:`,e)}})()},[w,c,h,C]),(0,t.useEffect)(()=>{r<=Mu&&D(()=>{let e={};return w.forEach(t=>{e[t.id]={spanCols:1,spanRows:1}}),e})},[r,w]);let j=(0,t.useMemo)(()=>r>Mu,[r]),{minCardWidth:M,gridGap:N,containerPadding:ee}=(0,t.useMemo)(()=>({minCardWidth:350,gridGap:16,containerPadding:20}),[]),P=r-ee*2,F=(0,t.useMemo)(()=>Math.floor((P+N)/(M+N)),[P,N,M]),I=Math.max(F,1),L=(0,t.useCallback)(()=>{if(O.current!==null&&k.current!==null&&O.current!==k.current){let e=[...w],[t]=e.splice(O.current,1);e.splice(k.current,0,t),T(e),u&&u(e)}O.current=null,k.current=null},[w,u]),R=(0,t.useCallback)((e,t)=>{let n={spanCols:Math.min(Math.max(t.spanCols,1),I),spanRows:Math.min(Math.max(t.spanRows,1),o)};D(t=>({...t,[e]:n})),d&&d(e,n)},[I,o,d]),te=(0,t.useMemo)(()=>w.reduce((e,t)=>(e[t.id]={spanCols:Math.min(t.defaultSpan?.spanCols??1,F),spanRows:t.defaultSpan?.spanRows??1},e),{}),[w,F]),ne=(0,t.useMemo)(()=>w.map((e,t)=>{let r=e.showZoom!==!1&&j,c=e.headerAction||(r?(0,n.jsx)(Au,{values:E[e.id]||te[e.id]||{spanCols:1,spanRows:1},maxCols:I,maxRows:o,IsOpen:!1,onChange:t=>R(e.id,t)}):void 0);return(0,n.jsx)(`div`,{className:p.cardWrapper,tabIndex:s?0:void 0,role:s?`listitem`:void 0,"aria-label":s?`${e.cardTitle}, press Ctrl+Arrow keys to reorder`:void 0,draggable:s,onDragStart:()=>s&&(O.current=t),onDragEnter:()=>s&&(k.current=t),onDragOver:e=>s&&e.preventDefault(),onDragEnd:s?L:void 0,onKeyDown:s?e=>{!e.ctrlKey&&!e.metaKey||(e.key===`ArrowLeft`||e.key===`ArrowUp`?t>0&&(e.preventDefault(),O.current=t,k.current=t-1,L()):(e.key===`ArrowRight`||e.key===`ArrowDown`)&&t<w.length-1&&(e.preventDefault(),O.current=t,k.current=t+1,L()))}:void 0,style:{gridColumnEnd:E[e.id]?.spanCols?`span ${E[e.id].spanCols}`:`span ${te[e.id]?.spanCols||1}`,gridRowEnd:E[e.id]?.spanRows?`span ${E[e.id].spanRows}`:`span ${te[e.id]?.spanRows||1}`,cursor:s?`grab`:`default`},children:(0,n.jsxs)(i.Card,{className:`${p.cardBody} ${e.className||``}`,children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsxs)(H,{gap:`0px`,children:[(0,n.jsx)(i.Text,{as:`h3`,weight:`semibold`,size:400,children:e.cardTitle}),e.cardDescription&&(0,n.jsx)(i.Text,{className:p.cardDescription,size:200,children:e.cardDescription})]}),action:c}),(0,n.jsx)(`div`,{className:p.chartContainer,style:{height:a,...e.style},children:e.content})]})},e.id)}),[w,s,L,E,p.cardBody,p.cardDescription,p.chartContainer,p.cardWrapper,j,I,o,R,a,te]);return w.length===0?(0,n.jsx)(Ou,{}):(0,n.jsx)(`div`,{ref:A,className:p.dashboardContainer,style:{height:a},children:ne})},Lu=l.keyframes`
|
|
453
453
|
0%, 100% { transform: translateY(0px); }
|
|
454
454
|
50% { transform: translateY(-8px); }
|
|
455
|
-
`,
|
|
455
|
+
`,Ru=l.keyframes`
|
|
456
456
|
0% { background-position: -200% center; }
|
|
457
457
|
100% { background-position: 200% center; }
|
|
458
|
-
`,Ru=()=>({card:(0,l.css)({width:`100%`,height:`310px`,borderRadius:10,background:i.tokens.colorNeutralBackground1,border:`1px solid ${i.tokens.colorNeutralStroke1}`,boxShadow:i.tokens.shadow8,overflow:`visible`,position:`relative`,padding:`0px 15px !important`,transition:`transform 0.25s ease, box-shadow 0.25s ease`,"&:hover, &:focus-within":{zIndex:10,transform:`translateY(-2px)`,boxShadow:i.tokens.shadow16}}),description:(0,l.css)({fontSize:i.tokens.fontSizeBase300,color:i.tokens.colorNeutralForeground4,lineHeight:i.tokens.lineHeightBase400,position:`relative`,zIndex:1}),footerMetric:(0,l.css)({display:`flex`,flexDirection:`column`,alignItems:`center`,gap:i.tokens.spacingVerticalXXS}),footerIcon:(0,l.css)({color:i.tokens.colorNeutralForeground3,fontSize:i.tokens.fontSizeBase300}),footerLabel:(0,l.css)({fontSize:`${i.tokens.fontSizeBase100} !important`,color:i.tokens.colorNeutralForeground3,textTransform:`uppercase`,letterSpacing:`0.8px`,fontWeight:i.tokens.fontWeightMedium,textAlign:`center`}),footerValue:(0,l.css)({fontSize:`${i.tokens.fontSizeBase400} !important`,fontWeight:i.tokens.fontWeightSemibold,color:i.tokens.colorNeutralForeground2,textAlign:`center`}),footerDivider:(0,l.css)({height:`32px`,borderColor:i.tokens.colorNeutralStroke1}),glowBlob:(0,l.css)({position:`absolute`,top:`-60px`,right:`-60px`,width:`180px`,height:`180px`,borderRadius:`50%`,pointerEvents:`none`,zIndex:0,filter:`blur(40px)`}),glowBlobSuccess:(0,l.css)({position:`absolute`,top:`-40px`,right:`-40px`,width:`160px`,height:`160px`,borderRadius:`50%`,pointerEvents:`none`,zIndex:0,background:`radial-gradient(circle, ${i.tokens.colorPaletteLightGreenBackground2} 0%, transparent 70%)`,opacity:.7,filter:`blur(20px)`}),glowBlobError:(0,l.css)({position:`absolute`,top:`-40px`,right:`-40px`,width:`160px`,height:`160px`,borderRadius:`50%`,pointerEvents:`none`,zIndex:0,background:`radial-gradient(circle, ${i.tokens.colorPaletteRedBackground2} 0%, transparent 70%)`,opacity:.6,filter:`blur(20px)`}),headerActionBadge:(0,l.css)({minWidth:`32px`,height:`32px`,borderRadius:`50% !important`,background:`${i.tokens.colorNeutralBackground3} !important`,border:`none !important`,padding:`0 !important`,display:`flex`,alignItems:`center`,justifyContent:`center`}),kpiContainer:(0,l.css)({width:`100%`,backgroundColor:i.tokens.colorNeutralBackground2,borderRadius:8,display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(min(100%, 280px), 1fr))`,gap:16,padding:16}),iconContainer:(0,l.css)({width:48,height:48,borderRadius:8,display:`grid`,placeItems:`center`,background:i.tokens.colorNeutralBackgroundInverted}),noKpiCard:(0,l.css)({width:280,minHeight:160,display:`flex`,alignItems:`center`,justifyContent:`center`}),noKpiCardContainer:(0,l.css)({width:`100%`,minWidth:`280px`,minHeight:`280px`,borderRadius:`16px`,background:`linear-gradient(135deg, ${i.tokens.colorNeutralBackground1} 0%, ${i.tokens.colorNeutralBackground3} 100%)`,border:`1px solid ${i.tokens.colorNeutralStroke1}`,boxShadow:i.tokens.shadow16,overflow:`hidden`,position:`relative`,padding:`32px`,transition:`transform 0.3s ease, box-shadow 0.3s ease`,"&:hover":{transform:`translateY(-4px)`,boxShadow:i.tokens.shadow28}}),noKpiBackgroundOrb1:(0,l.css)({position:`absolute`,top:`0px`,right:`0px`,width:`180px`,height:`180px`,borderRadius:`50%`,background:`radial-gradient(circle, ${i.tokens.colorBrandBackground2} 0%, transparent 70%)`,opacity:.8,pointerEvents:`none`,filter:`blur(25px)`,transform:`translate(30%, -30%)`}),noKpiBackgroundOrb2:(0,l.css)({position:`absolute`,bottom:`-30px`,left:`-30px`,width:`120px`,height:`120px`,borderRadius:`50%`,background:`radial-gradient(circle, ${i.tokens.colorPaletteLavenderBackground2} 0%, transparent 70%)`,opacity:.5,pointerEvents:`none`,filter:`blur(20px)`}),noKpiIconContainer:(0,l.css)({width:`80px`,height:`80px`,borderRadius:`20px`,background:`linear-gradient(135deg, ${i.tokens.colorBrandBackground} 0%, ${i.tokens.colorBrandBackground2} 100%)`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:`0 8px 24px ${i.tokens.colorBrandBackground}40`,animation:`${Iu} 3s ease-in-out infinite`,position:`relative`,zIndex:1}),noKpiIcon:(0,l.css)({fontSize:`36px`,color:i.tokens.colorNeutralForegroundOnBrand}),noKpiSparkle1:(0,l.css)({position:`absolute`,top:`-8px`,right:`-8px`,color:i.tokens.colorPaletteYellowForeground1,fontSize:`20px`,animation:`${Iu} 2s ease-in-out infinite 0.5s`}),noKpiSparkle2:(0,l.css)({position:`absolute`,bottom:`-4px`,left:`-8px`,color:i.tokens.colorPaletteLavenderForeground2,fontSize:`16px`,animation:`${Iu} 2.5s ease-in-out infinite`}),noKpiTitle:(0,l.css)({fontSize:`22px`,fontWeight:i.tokens.fontWeightSemibold,color:i.tokens.colorNeutralForeground1,marginTop:`24px`,textAlign:`center`,position:`relative`,zIndex:1}),noKpiSubtitle:(0,l.css)({fontSize:`14px`,color:i.tokens.colorNeutralForeground3,textAlign:`center`,lineHeight:`1.6`,maxWidth:`320px`,marginTop:`8px`,position:`relative`,zIndex:1}),noKpiHighlight:(0,l.css)({background:`linear-gradient(90deg, ${i.tokens.colorBrandForeground1}, ${i.tokens.colorPaletteLavenderForeground2}, ${i.tokens.colorBrandForeground1})`,backgroundSize:`200% auto`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`,fontWeight:i.tokens.fontWeightSemibold,animation:`${Lu} 3s linear infinite`}),noKpiButtonContainer:(0,l.css)({marginTop:`24px`,position:`relative`,zIndex:1}),noKpiButton:(0,l.css)({borderRadius:`10px`,padding:`10px 20px`,fontWeight:i.tokens.fontWeightSemibold,transition:`transform 0.2s ease`,"&:hover":{transform:`scale(1.02)`}}),noKpiDecorativeLine:(0,l.css)({width:`60px`,height:`4px`,borderRadius:`2px`,background:`linear-gradient(90deg, ${i.tokens.colorBrandBackground}, ${i.tokens.colorPaletteLavenderBackground2})`,marginTop:`16px`,position:`relative`,zIndex:1}),footerGrid:(0,l.css)({width:`100%`,display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(80px, 1fr))`,alignItems:`center`})}),zu=function(e){return e[e.LOWER_IS_BETTER=1]=`LOWER_IS_BETTER`,e[e.HIGHER_IS_BETTER=2]=`HIGHER_IS_BETTER`,e}({}),Bu=r=>{let{dataCard:a}=r,o=Ru(),s=e.f(),[c,l]=t.useState(!1),u=t.useCallback(()=>{l(!1)},[]),f=t.useMemo(()=>a.goalMetric===zu.LOWER_IS_BETTER?a.currentValue<=a.goal:a.currentValue>=a.goal,[a.currentValue,a.goal,a.goalMetric]),p=t.useMemo(()=>f?`success`:`error`,[f]),m=t.useMemo(()=>a.goal.toLocaleString(),[a.goal]),h=t.useMemo(()=>a.currentValue/a.totalItems*100,[a.currentValue,a.totalItems]),g=t.useMemo(()=>f?i.tokens.colorPaletteLightGreenForeground2:i.tokens.colorPaletteRedForeground2,[f]),_=t.useMemo(()=>f?i.tokens.colorPaletteLightGreenBackground1:i.tokens.colorPaletteRedBackground1,[f]),v=t.useMemo(()=>f?i.tokens.colorPaletteLightGreenBorder1:i.tokens.colorPaletteRedBorder1,[f]),y=t.useMemo(()=>({background:_,border:`1px solid ${v}`,color:g,borderRadius:`20px`,padding:`12px 12px`,fontSize:i.tokens.fontSizeBase200,fontWeight:i.tokens.fontWeightSemibold,letterSpacing:`0.3px`,maxWidth:`fit-content`}),[_,v,g]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(i.Card,{className:o.card,onMouseLeave:u,"aria-label":`${a.title||s.defaultTitle}: ${a.currentValue} of ${a.goal} ${s.goal}, ${f?s.onTrack:s.exceedGoal}`,children:[(0,n.jsx)(`div`,{className:f?o.glowBlobSuccess:o.glowBlobError}),(0,n.jsxs)(H,{gap:`m`,padding:`m`,children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsxs)(H,{direction:`vertical`,gap:`2px`,children:[(0,n.jsx)(H,{direction:`horizontal`,alignItems:`center`,gap:`8px`,children:(0,n.jsx)(i.InfoLabel,{style:{zIndex:99999},infoButton:{popover:{open:c,onOpenChange:(e,t)=>l(t.open)}},info:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.Text,{size:300,color:`neutralSecondary`,children:a.description||s.noDescription})}),children:(0,n.jsx)(i.Text,{weight:`bold`,size:300,children:a.title?.toUpperCase()||s.defaultTitle})})}),(0,n.jsx)(i.Text,{size:200,style:{color:i.tokens.colorNeutralForeground3,fontStyle:`italic`},children:a.goalMetric===zu.LOWER_IS_BETTER?s.lowerIsBetter:s.higherIsBetter})]}),action:(0,n.jsx)(i.Tooltip,{content:f?`✓ ${s.withinGoalThreshold}`:`⚠ ${s.exceedsGoalThreshold}`,relationship:`description`,children:(0,n.jsx)(i.Badge,{className:o.headerActionBadge,appearance:`ghost`,size:`small`,icon:f?(0,n.jsx)(d.CheckmarkCircleRegular,{style:{color:g,fontSize:`22px`}}):(0,n.jsx)(d.AlertFilled,{style:{color:g,fontSize:`22px`}})})})}),(0,n.jsxs)(H,{gap:`s`,direction:`horizontal`,alignItems:`baseline`,paddingTop:`s`,children:[(0,n.jsxs)(i.Text,{weight:`bold`,size:900,children:[a.currentValue,` `,(0,n.jsx)(`br`,{})]}),(0,n.jsxs)(i.Text,{weight:`semibold`,size:300,color:`neutralSecondary`,children:[`/ `,a.goal,` `,s.goal]})]}),(0,n.jsxs)(H,{gap:`s`,children:[(0,n.jsxs)(H,{direction:`horizontal`,justifyContent:`space-between`,children:[(0,n.jsx)(i.Text,{size:300,color:`neutralSecondary`,children:s.progressGoal}),(0,n.jsxs)(i.Text,{size:300,color:`neutralSecondary`,weight:`bold`,children:[(a.currentValue/a.goal*100).toFixed(2),`%`]})]}),(0,n.jsx)(i.ProgressBar,{value:a.currentValue/a.goal,color:p,style:{height:`8px`},shape:`rounded`})]}),(0,n.jsxs)(i.CardFooter,{children:[(0,n.jsx)(i.Tooltip,{content:s.maxAllowedThreshold,relationship:`description`,children:(0,n.jsxs)(H,{alignItems:`center`,gap:i.tokens.spacingVerticalXXS,children:[(0,n.jsx)(d.TargetRegular,{className:o.footerIcon}),(0,n.jsx)(i.Text,{className:o.footerLabel,children:`Goal`}),(0,n.jsx)(i.Text,{className:o.footerValue,children:m})]})}),(0,n.jsx)(i.Divider,{vertical:!0,className:o.footerDivider}),(0,n.jsx)(i.Tooltip,{content:s.totalItemsInScope,relationship:`description`,children:(0,n.jsxs)(H,{alignItems:`center`,gap:i.tokens.spacingVerticalXXS,children:[(0,n.jsx)(d.DocumentRegular,{className:o.footerIcon}),(0,n.jsx)(i.Text,{className:o.footerLabel,children:s.totalItems}),(0,n.jsx)(i.Text,{className:o.footerValue,children:a.totalItems.toLocaleString()})]})}),(0,n.jsx)(i.Divider,{vertical:!0,className:o.footerDivider}),(0,n.jsx)(i.Tooltip,{content:s.currentValueAsPercent,relationship:`description`,children:(0,n.jsxs)(H,{alignItems:`center`,gap:i.tokens.spacingVerticalXXS,children:[(0,n.jsx)(d.CalculatorRegular,{className:o.footerIcon}),(0,n.jsx)(i.Text,{className:o.footerLabel,children:s.percentOfTotal}),(0,n.jsxs)(i.Text,{className:o.footerValue,children:[h.toFixed(2),`%`]})]})})]}),(0,n.jsx)(H,{children:(0,n.jsx)(i.Badge,{appearance:`outline`,size:`small`,style:y,icon:f?(0,n.jsx)(d.CheckmarkCircleRegular,{style:{fontSize:`14px`}}):(0,n.jsx)(d.AlertFilled,{style:{fontSize:`14px`}}),children:f?s.onTrack:s.exceedGoal})})]})]})})},Vu=()=>{let e=Ru(),t={headerTitle:(0,l.css)({width:`120px`,height:`16px`}),headerBadge:(0,l.css)({width:`32px`,height:`32px`,borderRadius:`50%`}),mainValue:(0,l.css)({width:`80px`,height:`42px`}),goalText:(0,l.css)({width:`70px`,height:`16px`}),progressLabel:(0,l.css)({width:`80px`,height:`12px`}),progressValue:(0,l.css)({width:`50px`,height:`12px`}),progressBar:(0,l.css)({width:`100%`,height:`8px`,borderRadius:`4px`}),footerIcon:(0,l.css)({width:`16px`,height:`16px`,borderRadius:`4px`}),footerLabel:(0,l.css)({width:`50px`,height:`10px`}),footerValue:(0,l.css)({width:`40px`,height:`14px`}),badge:(0,l.css)({width:`90px`,height:`32px`,borderRadius:`20px`})};return(0,n.jsx)(i.Card,{className:e.card,children:(0,n.jsx)(i.Skeleton,{animation:`pulse`,children:(0,n.jsxs)(H,{gap:`m`,padding:`m`,children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsx)(H,{direction:`horizontal`,alignItems:`center`,gap:`8px`,children:(0,n.jsx)(i.SkeletonItem,{className:t.headerTitle})}),action:(0,n.jsx)(i.SkeletonItem,{className:t.headerBadge,shape:`circle`})}),(0,n.jsxs)(H,{gap:`s`,direction:`horizontal`,alignItems:`baseline`,paddingTop:`s`,children:[(0,n.jsx)(i.SkeletonItem,{className:t.mainValue}),(0,n.jsx)(i.SkeletonItem,{className:t.goalText})]}),(0,n.jsxs)(H,{gap:`s`,children:[(0,n.jsxs)(H,{direction:`horizontal`,justifyContent:`space-between`,children:[(0,n.jsx)(i.SkeletonItem,{className:t.progressLabel}),(0,n.jsx)(i.SkeletonItem,{className:t.progressValue})]}),(0,n.jsx)(i.SkeletonItem,{className:t.progressBar})]}),(0,n.jsxs)(i.CardFooter,{children:[(0,n.jsxs)(H,{direction:`vertical`,alignItems:`center`,gap:`xs`,children:[(0,n.jsx)(i.SkeletonItem,{className:t.footerIcon}),(0,n.jsx)(i.SkeletonItem,{className:t.footerLabel}),(0,n.jsx)(i.SkeletonItem,{className:t.footerValue})]}),(0,n.jsx)(i.Divider,{vertical:!0,style:{height:`32px`,borderColor:i.tokens.colorNeutralStroke1}}),(0,n.jsxs)(H,{direction:`vertical`,alignItems:`center`,gap:`xs`,children:[(0,n.jsx)(i.SkeletonItem,{className:t.footerIcon}),(0,n.jsx)(i.SkeletonItem,{className:t.footerLabel}),(0,n.jsx)(i.SkeletonItem,{className:t.footerValue})]}),(0,n.jsx)(i.Divider,{vertical:!0,style:{height:`32px`,borderColor:i.tokens.colorNeutralStroke1}}),(0,n.jsxs)(H,{direction:`vertical`,alignItems:`center`,gap:`xs`,children:[(0,n.jsx)(i.SkeletonItem,{className:t.footerIcon}),(0,n.jsx)(i.SkeletonItem,{className:t.footerLabel}),(0,n.jsx)(i.SkeletonItem,{className:t.footerValue})]})]}),(0,n.jsx)(H,{children:(0,n.jsx)(i.SkeletonItem,{className:t.badge})})]})})})},Hu=`/sites/mock-site/Lists/Directory Status Config`,Uu=()=>{let r=Ru(),a=e._(),o=Hu,s=t.useCallback(()=>{let e=`${window.location.origin}${o}/AllItems.aspx`;window.open(e,`_blank`)},[o]);return(0,n.jsxs)(i.Card,{className:r.noKpiCardContainer,children:[(0,n.jsx)(`div`,{className:r.noKpiBackgroundOrb1}),(0,n.jsx)(`div`,{className:r.noKpiBackgroundOrb2}),(0,n.jsxs)(H,{alignItems:`center`,justifyContent:`center`,gap:`s`,children:[(0,n.jsxs)(`div`,{className:r.noKpiIconContainer,children:[(0,n.jsx)(d.DataBarVerticalStarRegular,{className:r.noKpiIcon}),(0,n.jsx)(d.SparkleRegular,{className:r.noKpiSparkle1}),(0,n.jsx)(d.SparkleRegular,{className:r.noKpiSparkle2})]}),(0,n.jsx)(i.Text,{className:r.noKpiTitle,children:a.title}),(0,n.jsx)(`div`,{className:r.noKpiDecorativeLine}),(0,n.jsxs)(i.Text,{className:r.noKpiSubtitle,children:[a.subtitle.split(`{highlight}`)[0],(0,n.jsx)(`span`,{className:r.noKpiHighlight,children:a.highlightText}),a.subtitle.split(`{highlight}`)[1]]}),(0,n.jsx)(`div`,{className:r.noKpiButtonContainer,children:(0,n.jsx)(i.Button,{appearance:`outline`,icon:(0,n.jsx)(d.SettingsRegular,{}),className:r.noKpiButton,onClick:s,children:a.configureButton})})]})]})},Wu=r=>{let{dataCard:a}=r,o=Ru(),s=e.f(),[c,l]=t.useState(!1),u=t.useCallback(()=>{l(!1)},[]),f=t.useMemo(()=>a.goalMetric===zu.LOWER_IS_BETTER?a.currentValue<=a.goal:a.currentValue>=a.goal,[a.currentValue,a.goal,a.goalMetric]),p=t.useMemo(()=>f?`success`:`error`,[f]),m=t.useMemo(()=>f?i.tokens.colorPaletteLightGreenForeground2:i.tokens.colorPaletteRedForeground2,[f]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(i.Card,{className:o.card,style:{height:`168px`},onMouseLeave:u,children:[(0,n.jsx)(`div`,{className:f?o.glowBlobSuccess:o.glowBlobError}),(0,n.jsxs)(H,{gap:`0px`,padding:`m`,children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsxs)(H,{direction:`vertical`,gap:`2px`,children:[(0,n.jsx)(H,{direction:`horizontal`,alignItems:`center`,gap:`8px`,children:(0,n.jsx)(i.InfoLabel,{infoButton:{popover:{open:c,onOpenChange:(e,t)=>l(t.open)}},info:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.Text,{size:300,color:`neutralSecondary`,children:a.description||s.noDescription})}),children:(0,n.jsx)(i.Text,{weight:`bold`,size:300,children:a.title?.toUpperCase()||s.defaultTitle})})}),(0,n.jsx)(i.Text,{size:200,style:{color:i.tokens.colorNeutralForeground3,fontStyle:`italic`},children:a.goalMetric===zu.LOWER_IS_BETTER?s.lowerIsBetter:s.higherIsBetter})]}),action:(0,n.jsx)(i.Tooltip,{content:f?`✓ ${s.withinGoalThreshold}`:`⚠ ${s.exceedsGoalThreshold}`,relationship:`inaccessible`,children:(0,n.jsx)(i.Badge,{className:o.headerActionBadge,appearance:`ghost`,size:`small`,icon:f?(0,n.jsx)(d.CheckmarkCircleRegular,{style:{color:m,fontSize:`22px`}}):(0,n.jsx)(d.AlertFilled,{style:{color:m,fontSize:`22px`}})})})}),(0,n.jsxs)(H,{gap:`s`,direction:`horizontal`,alignItems:`baseline`,children:[(0,n.jsxs)(i.Text,{weight:`bold`,size:900,children:[a.currentValue,` `,(0,n.jsx)(`br`,{})]}),(0,n.jsxs)(i.Text,{weight:`semibold`,size:300,color:`neutralSecondary`,children:[`/ `,a.goal,` `,s.goal]})]}),(0,n.jsxs)(H,{gap:`s`,children:[(0,n.jsxs)(H,{direction:`horizontal`,justifyContent:`space-between`,children:[(0,n.jsx)(i.Text,{size:300,color:`neutralSecondary`,children:s.progressGoal}),(0,n.jsxs)(i.Text,{size:300,color:`neutralSecondary`,weight:`bold`,children:[(a.currentValue/a.goal*100).toFixed(2),`%`]})]}),(0,n.jsx)(i.ProgressBar,{value:a.currentValue/a.goal,color:p,style:{height:`3px`},shape:`rounded`})]})]})]})})},Gu=[{identifier:`kpi-1`,title:`Sales Revenue`,currentValue:125,goal:150,totalItems:200,description:`This is a comprehensive description of the Total Sales Revenue KPI for Q1. This metric tracks all revenue generated from product sales, service contracts, and recurring subscriptions across all business units and geographic regions. The goal is set based on historical performance, market conditions, and strategic growth objectives. Performance is evaluated weekly with detailed breakdowns by product category, sales team, and customer segment. This KPI is critical for quarterly business reviews and investor reporting.`,goalMetric:2},{identifier:`kpi-2`,title:`Customer Satisfaction`,currentValue:87,goal:90,totalItems:100,description:`Customer satisfaction score`,goalMetric:1},{identifier:`kpi-3`,title:`Tasks Completed`,currentValue:42,goal:50,totalItems:60,description:`Number of tasks completed this month`,goalMetric:2},{identifier:`kpi-4`,title:`New Customers`,currentValue:156,goal:200,totalItems:250,description:`New customer acquisitions this quarter`,goalMetric:1},{identifier:`kpi-5`,title:`Response Time`,currentValue:2.5,goal:2,totalItems:5,description:`Average response time in hours`,goalMetric:2},{identifier:`kpi-6`,title:`Employee Engagement`,currentValue:78,goal:85,totalItems:100,description:`Employee engagement score percentage`,goalMetric:1}],Ku=e=>{let{skeletonCount:r=3,compact:i=!1}=e,a=Ru(),o=Gu;return t.useCallback(()=>Array.from({length:r}).map((e,t)=>(0,n.jsx)(Vu,{},`kpi-skeleton-${t}`)),[r]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(H,{gap:`l`,direction:`horizontal`,padding:`l`,paddingTop:`s`,children:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{className:a.kpiContainer,children:o.length>0?o.map(e=>i?(0,n.jsx)(Wu,{dataCard:e},e.identifier):(0,n.jsx)(Bu,{dataCard:e},e.identifier)):(0,n.jsx)(Uu,{})})})})})},qu=new Set([`p`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`li`,`td`,`th`]),Ju=(e,t)=>{let n=parseFloat(e.borderTopLeftRadius)||0,r=parseFloat(e.borderTopRightRadius)||0,i=parseFloat(e.borderBottomRightRadius)||0,a=parseFloat(e.borderBottomLeftRadius)||0;if(n===0&&r===0&&i===0&&a===0)return;let o=t?(()=>{let e=t.getBoundingClientRect();return e.width>0&&e.height>0&&Math.abs(e.width-e.height)<4})():!1;return e.borderRadius===`50%`?`50%`:Math.max(n,r,i,a)>9998?o?`50%`:9999:n===r&&r===i&&i===a?n===8?void 0:n:`${n}px ${r}px ${i}px ${a}px`},Yu=(e,t=`component`,n)=>{let r=e.getBoundingClientRect(),i=[],a=n?.leafTags?new Set([...qu,...n.leafTags]):qu,o=n?.captureRoundedBorders??!0,s=n?.excludeTags?new Set(n.excludeTags):null,c=n?.excludeSelectors??null,l=e=>{let t=getComputedStyle(e);if(t.display===`none`||t.visibility===`hidden`||t.opacity===`0`)return;let n=e.tagName.toLowerCase();if(s?.has(n)||c?.some(t=>e.matches(t)))return;let u=[...e.children].filter(e=>{let t=getComputedStyle(e);return t.display!==`none`&&t.visibility!==`hidden`&&t.opacity!==`0`}),d=n===`img`||n===`svg`||n===`video`||n===`canvas`,f=n===`input`||n===`button`||n===`textarea`||n===`select`,p=u.length===0||d||f||a.has(n),m=t.backgroundColor,h=m!==`rgba(0, 0, 0, 0)`&&m!==`transparent`,g=t.backgroundImage!==`none`,_=parseFloat(t.borderTopWidth)||0,v=o&&_>0&&t.borderTopColor!==`rgba(0, 0, 0, 0)`&&t.borderTopColor!==`transparent`,y=(parseFloat(t.borderTopLeftRadius)||0)>0,b=h||g||v&&y,x=n===`tr`||n===`td`||n===`th`||n===`thead`||n===`tbody`||n===`table`;if(p){let n=e.getBoundingClientRect();if(n.width<1||n.height<1)return;let a=d&&n.width>0&&n.height>0&&Math.abs(n.width-n.height)<4,o=x?0:a?`50%`:Ju(t,e)??8,s=r.width;i.push({x:s>0?+((n.left-r.left)/s*100).toFixed(4):0,y:Math.round(n.top-r.top),w:s>0?+(n.width/s*100).toFixed(4):0,h:Math.round(n.height),r:o});return}if(b){let n=e.getBoundingClientRect();if(n.width>=1&&n.height>=1){let a=x?0:Ju(t,e)??8,o=r.width;i.push({x:o>0?+((n.left-r.left)/o*100).toFixed(4):0,y:Math.round(n.top-r.top),w:o>0?+(n.width/o*100).toFixed(4):0,h:Math.round(n.height),r:a,c:!0})}}for(let e of u)l(e)};for(let t of e.children)l(t);return{name:t,viewportWidth:Math.round(r.width),width:Math.round(r.width),height:Math.round(r.height),bones:i}},Xu=(e,n,r,i,a)=>{let[o,s]=(0,t.useState)(null);return(0,t.useEffect)(()=>{if(!n||r||o)return;let t=e.current;if(!t)return;let c=requestAnimationFrame(()=>{let e=t.querySelector(`[data-skeleton-content]`);if(e&&e.children.length>0){let t=Yu(e,i??`auto`,a);t.bones.length>0&&s(t)}});return()=>cancelAnimationFrame(c)},[n,r,o,i,a,e]),o},Zu={angle:110,start:25,end:75,speed:`1.8s`},Qu={speed:`1.5s`},$u={bone:`var(--colorNeutralStencil1)`,shimmerHighlight:`var(--colorNeutralStencil2)`},ed=new Map,td=e=>{for(let[t,n]of Object.entries(e))ed.set(t,n)},nd=e=>ed.get(e),rd=()=>{typeof window<`u`&&window.__SKELETON_BUILD&&(window.__SKELETON_SNAPSHOT=Yu)},id=()=>typeof window<`u`&&window.__SKELETON_BUILD===!0,ad=(e,t)=>{if(!(`breakpoints`in e))return e;let n=Object.keys(e.breakpoints).map(Number).sort((e,t)=>e-t);if(n.length===0)return null;let r=[...n].reverse().find(e=>t>=e)??n[0];return e.breakpoints[r]??null},od=e=>Array.isArray(e)?{x:e[0],y:e[1],w:e[2],h:e[3],r:e[4],c:e[5]||void 0}:e,sd={},cd=e=>{sd={...sd,...e}},ld=()=>sd,ud=()=>(0,t.useMemo)(()=>({SHIMMER:Zu,PULSE:Qu,DEFAULTS:$u,getRegisteredBones:nd,isBuildMode:id,normalizeBone:od,resolveResponsive:ad,getGlobalConfig:ld}),[]),dd=(0,l.keyframes)({"0%, 100%":{opacity:1},"50%":{opacity:.4}}),fd=(0,l.keyframes)({"0%":{backgroundPosition:`200% 0`},"100%":{backgroundPosition:`-200% 0`}}),pd=(0,l.keyframes)({from:{opacity:0},to:{opacity:1}}),md=(0,l.css)({position:`relative`}),hd=(0,l.css)({position:`absolute`,inset:0,overflow:`hidden`}),gd=(0,l.css)({visibility:`hidden`,pointerEvents:`none`}),_d=(0,l.css)({position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`}),vd={position:`relative`,width:`100%`,height:`100%`},yd=()=>({container:md,overlay:hd,hiddenContent:gd,fallbackOverlay:_d});rd();var bd=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/,xd=e=>{let[n,r]=(0,t.useState)(!1),a=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(typeof window>`u`)return;let t=e.current;if(!t)return;let n=document.createElement(`span`);n.style.display=`none`,n.style.color=i.tokens.colorNeutralBackground1,t.appendChild(n),a.current=n;let o=()=>{let e=getComputedStyle(n).color.match(bd);if(e){r((parseInt(e[1],10)*299+parseInt(e[2],10)*587+parseInt(e[3],10)*114)/1e3<128);return}r(document.documentElement.classList.contains(`dark`)||!!t.closest(`.dark`))};o();let s=new MutationObserver(o);return s.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]}),()=>{s.disconnect(),n.parentNode&&n.parentNode.removeChild(n),a.current=null}},[e]),n},Sd=({loading:e,children:r,name:a,initialBones:o,color:s,darkColor:c,animate:l,stagger:u=!1,transition:d=!1,boneClass:f,className:p,style:m,fallback:h,fixture:g,snapshotConfig:_})=>{let v=yd(),{DEFAULTS:y,SHIMMER:b,PULSE:x,getRegisteredBones:S,isBuildMode:C,normalizeBone:w,resolveResponsive:T,getGlobalConfig:E}=ud(),D=(0,t.useRef)(null),[O,k]=(0,t.useState)(0),[A,j]=(0,t.useState)(0),M=xd(D),N=E(),ee=s??N.color,P=c??N.darkColor,F=!!(ee||P),I=F?M?P??ee:ee??y.bone:y.bone,L=l??N.animate??`pulse`,R=L===!0?`pulse`:L===!1?`solid`:L;(0,t.useEffect)(()=>{let e=D.current;if(!e)return;let t=new ResizeObserver(e=>{let t=e[0]?.contentRect;k(Math.round(t?.width??0)),t&&t.height>0&&j(Math.round(t.height))});t.observe(e);let n=e.getBoundingClientRect();return k(Math.round(n.width)),n.height>0&&j(Math.round(n.height)),()=>t.disconnect()},[]);let te=(0,t.useMemo)(()=>{let e={};return a&&(e[`data-skeleton`]=a,_&&(e[`data-skeleton-config`]=JSON.stringify(_))),e},[a,_]),[ne,re]=(0,t.useState)(!1);(0,t.useLayoutEffect)(()=>{re(!0)},[]);let ie=o??(a?S(a):void 0),z=ne&&typeof window<`u`?window.innerWidth:0,ae=O>0?O:z,oe=ie&&ae>0?T(ie,ae):null,se=Xu(D,e,oe,a,_),ce=oe??se,le=(0,t.useMemo)(()=>{let e=u??N.stagger;return e===!0?80:e===!1||!e?0:e},[u,N.stagger]),ue=(0,t.useMemo)(()=>{let e=d??N.transition;return e===!0?300:e===!1||!e?0:e},[d,N.transition]),[de,fe]=(0,t.useState)(!1),pe=(0,t.useRef)(e),me=(0,t.useRef)(null);(0,t.useEffect)(()=>(pe.current&&!e&&ue>0&&ce&&(me.current&&clearTimeout(me.current),fe(!0),me.current=setTimeout(()=>{fe(!1),me.current=null},ue)),pe.current=e,()=>{me.current&&clearTimeout(me.current)}),[e,ue,ce]);let he=(e||de)&&ce,ge=e&&!ce&&!de,_e=A>0?A:ce?.height??0,ve=ce?.height??0,ye=_e>0&&ve>0?_e/ve:1,be=(0,t.useMemo)(()=>ce?ce.bones.map(w).filter(e=>!e.c):[],[ce]),xe=(0,t.useCallback)((e,t)=>{let n=e.w/100*(ce?.width??0),r=e.r===`50%`&&Math.abs(n-e.h)<4,i=r?0:2,a=e.h*ye,o=Math.max(a-i*2,2),s={position:`absolute`,left:`${e.x}%`,top:e.y*ye+i,width:r?e.h*ye:`${e.w}%`,height:o,borderRadius:typeof e.r==`string`?e.r:`${e.r}px`},c=N.speed;if(R===`shimmer`){let e=F?M?N.darkShimmerColor??y.shimmerHighlight:N.shimmerColor??y.shimmerHighlight:y.shimmerHighlight;s.backgroundImage=`linear-gradient(${N.shimmerAngle??b.angle}deg, ${I} ${b.start}%, ${e} 50%, ${I} ${b.end}%)`,s.backgroundSize=`200% 100%`,s.animation=`${fd} ${c??b.speed} linear infinite`}else s.backgroundColor=I,R===`pulse`&&(s.animation=`${dd} ${c??x.speed} ease-in-out infinite`);return le>0&&(s.opacity=0,s.animation=`${s.animation?`${s.animation}, `:``}${pd} 0.3s ease-out ${t*le}ms forwards`),s},[ce,ye,R,I,F,M,N,le]);if(C())return(0,n.jsx)(`div`,{ref:D,className:(0,i.mergeClasses)(v.container,p),style:m,...te,children:(0,n.jsx)(`div`,{children:g??r})});let Se=e?{"aria-busy":`true`,"aria-label":`Loading content`}:{};return(0,n.jsxs)(`div`,{ref:D,className:(0,i.mergeClasses)(v.container,p),style:m,role:`status`,...Se,...te,children:[(0,n.jsx)(`div`,{"data-skeleton-content":`true`,className:he?v.hiddenContent:void 0,children:r}),ge&&h&&(0,n.jsx)(`div`,{className:v.fallbackOverlay,children:h}),he&&(0,n.jsx)(`div`,{"data-skeleton-overlay":`true`,className:v.overlay,"aria-hidden":`true`,style:{opacity:de?0:1,transition:ue>0?`opacity ${ue}ms ease-out`:void 0},children:(0,n.jsx)(`div`,{style:vd,children:be.map((e,t)=>(0,n.jsx)(`div`,{"data-skeleton-bone":`true`,className:f??N.boneClass,style:xe(e,t)},t))})})]})},Cd=()=>{let e=t.useRef(``);return e.current||=`fui-`+Math.random().toString(36).slice(2,9),e.current},wd=e=>{let t=Cd(),{theme:r=i.webLightTheme,applicationName:a=t,targetDocument:o=document,applyStylesToPortals:s=!0,className:c,styles:l,children:u}=e;return(0,n.jsx)(i.IdPrefixProvider,{value:a,children:(0,n.jsx)(i.FluentProvider,{theme:r,applyStylesToPortals:s,targetDocument:o,className:c,style:l,children:u})})};exports.AIAssistant=Qc,exports.AISearchControl=Mc,exports.AISearchIcon=Oc,exports.AISearchIconExample=Pc,exports.AdaptiveCardHost=xc,exports.AdaptiveCardHostThemeType=Us,exports.AlignCenterControl=Qi,exports.AlignJustifyControl=$i,exports.AlignLeftControl=Xi,exports.AlignRightControl=Zi,exports.AppDashboard=Fu,exports.AspectRatio=ct,exports.BackgroundImage=Dl,exports.Blockquote=pl,exports.BlockquoteControl=Yi,exports.BoldControl=Fi,exports.Breadcrumb=Nt,exports.BulletListControl=Vi,exports.ButtonMenu=kt,exports.CalendarControl=bn,exports.CalendarGrid=Cn,exports.CalendarHeader=wn,exports.CalendarMonth=on,exports.Card=Ze,exports.Carousel=vt,exports.Center=dt,exports.ChatInput=Ic,exports.ChatInputWithMensions=Vc,exports.ChatInputWithMensionsV1=$c,exports.ChatList=Yc,exports.ChromeInputType=Eo,exports.ClearFormattingControl=zi,exports.CodeBlockControl=ra,exports.CodeControl=na,exports.ColorPicker=X,exports.ColorPickerAlpha=ho,exports.ColorPickerBlock=Wo,exports.ColorPickerChrome=jo,exports.ColorPickerCircle=zo,exports.ColorPickerColorful=Mo,exports.ColorPickerCompact=Ho,exports.ColorPickerEditableInput=xo,exports.ColorPickerEditableInputHSLA=Co,exports.ColorPickerEditableInputRGBA=So,exports.ColorPickerHue=po,exports.ColorPickerInteractive=oo,exports.ColorPickerSaturation=co,exports.ColorPickerShadeSlider=_o,exports.ColorPickerSketch=To,exports.ColorPickerSlider=Ko,exports.ColorPickerSwatch=yo,exports.ColorPickerTheme=$o,exports.ColorPickerWheel=Io,exports.CompactCalendar=Fn,exports.CompactCalendarToolbar=Tn,exports.Container=pt,exports.ContentRenderer=Jc,exports.ContentType=He,exports.CustomControlBar=ys,exports.DataGrid=rs,exports.DataGridV2=os,exports.DropdownField=va,exports.Dropzone=Dr,exports.DropzoneAccept=Sr,exports.DropzoneFullScreen=Or,exports.DropzoneIdle=wr,exports.DropzoneProvider=yr,exports.DropzoneReject=Cr,exports.EBreakPoints=R,exports.ECalendarViews=W,exports.EGoalMetric=zu,exports.EMessageType=te,exports.EXE_MIME_TYPE=Fr,exports.ErrorType=e.D,exports.EventsList=En,exports.FluentUIProvider=wd,exports.GenericOverFlowMenu=Cs,exports.Grid=$e,exports.H1Control=Ui,exports.H2Control=Wi,exports.H3Control=Gi,exports.H4Control=Ki,exports.H5Control=qi,exports.H6Control=Ji,exports.HighlightControl=ia,exports.HrControl=aa,exports.IMAGE_MIME_TYPE=Ar,exports.IconButton=Pt,exports.InlineSVG=Yl,exports.InputField=ba,exports.ItalicControl=Ii,exports.ItemPicker=Na,exports.KPICard=Bu,exports.KPICardCompact=Wu,exports.KPICardSkeleton=Vu,exports.Kpis=Ku,exports.Layout=nt,exports.LayoutItem=rt,exports.Link=ha,exports.ListItemActivityMessage=Tu,exports.ListToolbar=du,exports.LivePersona=ru,exports.LocalizationProvider=e.t,exports.LogLevel=e.O,exports.MIME_TYPES=kr,exports.MS_EXCEL_MIME_TYPE=Nr,exports.MS_POWERPOINT_MIME_TYPE=Pr,exports.MS_WORD_MIME_TYPE=Mr,exports.MaplibreWorldMap=Hs,exports.MarkdownRenderer=Kc,exports.Marquee=xl,exports.Mensions=Rc,exports.MensionsExample=zc,exports.MermaidDiagram=il,exports.Navigation=ws,exports.NoKpisCard=Uu,exports.OTPField=nu,exports.OptionTime=ka,exports.OrderedListControl=Hi,exports.PDF_MIME_TYPE=jr,exports.Popup=xt,exports.RedoControl=ca,exports.RenderAdaptiveCard=Sc,exports.RenderDialog=ls,exports.RenderDrawer=us,exports.RenderHeader=ds,exports.RenderLabel=Ct,exports.RenderSpinner=Tt,exports.RichTextEditor=ma,exports.RichTextEditorColorControl=Ai,exports.RichTextEditorColorPickerControl=ji,exports.RichTextEditorContent=Vr,exports.RichTextEditorControl=Ur,exports.RichTextEditorControlBase=Wr,exports.RichTextEditorControlsGroup=Hr,exports.RichTextEditorFontFamilyControl=Pi,exports.RichTextEditorLinkControl=ki,exports.RichTextEditorSourceCodeControl=Mi,exports.RichTextEditorToolbar=Br,exports.SearchControl=rr,exports.SelectDay=nn,exports.SelectMonth=sn,exports.SelectTime=ja,exports.SelectView=xa,exports.SelectWeek=dn,exports.ShareDialog=ps,exports.ShowError=hs,exports.ShowMessage=_s,exports.SkeletonLoader=Sd,exports.Space=at,exports.SplitPane=bt,exports.Spoiler=wl,exports.Spotlight=_r,exports.SpotlightAction=or,exports.SpotlightActionsGroup=sr,exports.SpotlightActionsList=cr,exports.SpotlightEmpty=lr,exports.SpotlightFooter=ur,exports.SpotlightRoot=tr,exports.SpotlightSearch=ir,exports.Stack=B,exports.StackItem=st,exports.StackV2=H,exports.StackedUsers=bu,exports.Stepper=Rl,exports.StrikeThroughControl=Ri,exports.SubscriptControl=ea,exports.SuperscriptControl=ta,exports.TIME_RADIO_GROUP=wa,exports.TaskListControl=la,exports.TaskListLiftControl=da,exports.TaskListSinkControl=ua,exports.Timeline=Ml,exports.TypographyControl=Ot,exports.UnderlineControl=Li,exports.UndoControl=sa,exports.UniversalProvider=re,exports.UnlinkControl=Bi,exports.UnsetColorControl=oa,exports.UserCard=vu,exports.VideoPlayer=Ds,exports.clampHsva=io,exports.clearInlineSVGCache=Hl,exports.cloneDeep=je,exports.closeOnActionTriggerAtom=Vn,exports.closeSpotlight=Jn,exports.color=J,exports.configureSkeletonLoader=cd,exports.createControl=K,exports.createSpotlight=Xn,exports.createSpotlightStore=Un,exports.debounce=ke,exports.deepMerge=e.T,exports.defaultCalendarControlStrings=gn,exports.defaultCalendarMonthStrings=an,exports.defaultSelectWeekStrings=cn,exports.defaultSpotlightFilter=hr,exports.detectContentType=Je,exports.en=e.E,exports.equalColorObjects=no,exports.equalHex=ro,exports.every=Ve,exports.filter=ze,exports.formatTime=Ea,exports.get=Ne,exports.getContentType=Ye,exports.getContrastingColor=to,exports.getTaskListExtension=ga,exports.groupBy=Le,exports.hexToHsva=Ba,exports.hexToRgba=Ua,exports.hslaStringToHsva=Za,exports.hslaToHsva=za,exports.hsvaToHex=Va,exports.hsvaToHexa=Ha,exports.hsvaToHslString=Ka,exports.hsvaToHsla=Ra,exports.hsvaToHslaString=qa,exports.hsvaToRgbString=Ja,exports.hsvaToRgba=Ia,exports.hsvaToRgbaString=Ya,exports.isActionsGroup=fr,exports.isEmpty=Me,exports.limitActions=gr,exports.listIdAtom=Rn,exports.map=Re,exports.onQueryChangeCallbackAtom=Hn,exports.openSpotlight=qn,exports.openedAtom=In,exports.parseHue=Xa,exports.queryAtom=zn,exports.registerBones=td,exports.registeredActionsAtom=Bn,exports.resolveLocale=Mn,exports.rgbaStringToHsva=Qa,exports.rgbaToHex=Wa,exports.rgbaToHexa=Ga,exports.rgbaToHsva=La,exports.selectedAtom=Ln,exports.set=Pe,exports.snapshotBones=Yu,exports.some=Be,exports.spotlight=Kn,exports.spotlightActions=G,exports.spotlightStore=Wn,exports.throttle=Ae,exports.timeKey=Da,exports.toggleSpotlight=Yn,exports.uniq=Fe,exports.uniqBy=Ie,exports.useAIAssistantStrings=e.n,exports.useAISearchControlStrings=e.r,exports.useAppDashboardStrings=e.i,exports.useApplicationContext=ie,exports.useAspectRatioStyles=lt,exports.useBlockquoteStyles=ll,exports.useBrandCenterFonts=xe,exports.useCalendar=Yt,exports.useCalendarStrings=e.a,exports.useCalendarStyles=Ht,exports.useCenterStyles=ut,exports.useColorPickerStyles=Y,exports.useCommonStrings=e.o,exports.useCompactCalendarEvents=An,exports.useComponentStrings=e.c,exports.useComponentUtils=Se,exports.useDataGridStyles=ns,exports.useDateUtils=Te,exports.useDayViewStyles=Xt,exports.useDropzoneContext=br,exports.useDropzoneStyles=Tr,exports.useGraphAPI=ae,exports.useGridStyles=Qe,exports.useImageUtils=Oe,exports.useIndexedDBCache=oe,exports.useInputFieldStrings=e.u,exports.useItemPickerStrings=e.d,exports.useKpiStrings=e.f,exports.useLayoutStyles=et,exports.useListItemActivityStrings=e.p,exports.useLocalization=e.m,exports.useLogging=z,exports.useMarqueeStyles=gl,exports.useMensionsStrings=e.h,exports.useMensionsStyles=Lc,exports.useMermaidDiagramStrings=e.g,exports.useMermaidDiagramStyles=tl,exports.useNavigationStyles=Ts,exports.useNoKpiStrings=e._,exports.useOptionTimeStyles=Ca,exports.usePolling=se,exports.useRenderHeaderStyles=fs,exports.useSearchControlStrings=e.v,exports.useSelectTimeStyles=Sa,exports.useShareDialogStrings=e.y,exports.useShowErrorStyles=ms,exports.useShowMessageStyles=gs,exports.useSkeletonExtract=Xu,exports.useSpaceStyles=it,exports.useSplitPaneStyles=yt,exports.useSpotlight=Zn,exports.useSpotlightShortcut=$n,exports.useSpotlightStrings=e.b,exports.useStackStyles=ot,exports.useStrings=e.x,exports.useStyles=el,exports.useTimeZoneHelper=ce,exports.useUserCardStrings=e.S,exports.useUtils=It,exports.useVideoStyles=Es,exports.useWeekViewStyles=Gt,exports.useWorldMapStrings=e.C,exports.validHex=eo;
|
|
458
|
+
`,zu=()=>({card:(0,l.css)({width:`100%`,height:`310px`,borderRadius:10,background:i.tokens.colorNeutralBackground1,border:`1px solid ${i.tokens.colorNeutralStroke1}`,boxShadow:i.tokens.shadow8,overflow:`visible`,position:`relative`,padding:`0px 15px !important`,transition:`transform 0.25s ease, box-shadow 0.25s ease`,"&:hover, &:focus-within":{zIndex:10,transform:`translateY(-2px)`,boxShadow:i.tokens.shadow16}}),description:(0,l.css)({fontSize:i.tokens.fontSizeBase300,color:i.tokens.colorNeutralForeground4,lineHeight:i.tokens.lineHeightBase400,position:`relative`,zIndex:1}),footerMetric:(0,l.css)({display:`flex`,flexDirection:`column`,alignItems:`center`,gap:i.tokens.spacingVerticalXXS}),footerIcon:(0,l.css)({color:i.tokens.colorNeutralForeground3,fontSize:i.tokens.fontSizeBase300}),footerLabel:(0,l.css)({fontSize:`${i.tokens.fontSizeBase100} !important`,color:i.tokens.colorNeutralForeground3,textTransform:`uppercase`,letterSpacing:`0.8px`,fontWeight:i.tokens.fontWeightMedium,textAlign:`center`}),footerValue:(0,l.css)({fontSize:`${i.tokens.fontSizeBase400} !important`,fontWeight:i.tokens.fontWeightSemibold,color:i.tokens.colorNeutralForeground2,textAlign:`center`}),footerDivider:(0,l.css)({height:`32px`,borderColor:i.tokens.colorNeutralStroke1}),glowBlob:(0,l.css)({position:`absolute`,top:`-60px`,right:`-60px`,width:`180px`,height:`180px`,borderRadius:`50%`,pointerEvents:`none`,zIndex:0,filter:`blur(40px)`}),glowBlobSuccess:(0,l.css)({position:`absolute`,top:`-40px`,right:`-40px`,width:`160px`,height:`160px`,borderRadius:`50%`,pointerEvents:`none`,zIndex:0,background:`radial-gradient(circle, ${i.tokens.colorPaletteLightGreenBackground2} 0%, transparent 70%)`,opacity:.7,filter:`blur(20px)`}),glowBlobError:(0,l.css)({position:`absolute`,top:`-40px`,right:`-40px`,width:`160px`,height:`160px`,borderRadius:`50%`,pointerEvents:`none`,zIndex:0,background:`radial-gradient(circle, ${i.tokens.colorPaletteRedBackground2} 0%, transparent 70%)`,opacity:.6,filter:`blur(20px)`}),headerActionBadge:(0,l.css)({minWidth:`32px`,height:`32px`,borderRadius:`50% !important`,background:`${i.tokens.colorNeutralBackground3} !important`,border:`none !important`,padding:`0 !important`,display:`flex`,alignItems:`center`,justifyContent:`center`}),kpiContainer:(0,l.css)({width:`100%`,backgroundColor:i.tokens.colorNeutralBackground2,borderRadius:8,display:`grid`,gridTemplateColumns:`repeat(auto-fill, minmax(min(100%, 280px), 1fr))`,gap:16,padding:16}),iconContainer:(0,l.css)({width:48,height:48,borderRadius:8,display:`grid`,placeItems:`center`,background:i.tokens.colorNeutralBackgroundInverted}),noKpiCard:(0,l.css)({width:280,minHeight:160,display:`flex`,alignItems:`center`,justifyContent:`center`}),noKpiCardContainer:(0,l.css)({width:`100%`,minWidth:`280px`,minHeight:`280px`,borderRadius:`16px`,background:`linear-gradient(135deg, ${i.tokens.colorNeutralBackground1} 0%, ${i.tokens.colorNeutralBackground3} 100%)`,border:`1px solid ${i.tokens.colorNeutralStroke1}`,boxShadow:i.tokens.shadow16,overflow:`hidden`,position:`relative`,padding:`32px`,transition:`transform 0.3s ease, box-shadow 0.3s ease`,"&:hover":{transform:`translateY(-4px)`,boxShadow:i.tokens.shadow28}}),noKpiBackgroundOrb1:(0,l.css)({position:`absolute`,top:`0px`,right:`0px`,width:`180px`,height:`180px`,borderRadius:`50%`,background:`radial-gradient(circle, ${i.tokens.colorBrandBackground2} 0%, transparent 70%)`,opacity:.8,pointerEvents:`none`,filter:`blur(25px)`,transform:`translate(30%, -30%)`}),noKpiBackgroundOrb2:(0,l.css)({position:`absolute`,bottom:`-30px`,left:`-30px`,width:`120px`,height:`120px`,borderRadius:`50%`,background:`radial-gradient(circle, ${i.tokens.colorPaletteLavenderBackground2} 0%, transparent 70%)`,opacity:.5,pointerEvents:`none`,filter:`blur(20px)`}),noKpiIconContainer:(0,l.css)({width:`80px`,height:`80px`,borderRadius:`20px`,background:`linear-gradient(135deg, ${i.tokens.colorBrandBackground} 0%, ${i.tokens.colorBrandBackground2} 100%)`,display:`flex`,alignItems:`center`,justifyContent:`center`,boxShadow:`0 8px 24px ${i.tokens.colorBrandBackground}40`,animation:`${Lu} 3s ease-in-out infinite`,position:`relative`,zIndex:1}),noKpiIcon:(0,l.css)({fontSize:`36px`,color:i.tokens.colorNeutralForegroundOnBrand}),noKpiSparkle1:(0,l.css)({position:`absolute`,top:`-8px`,right:`-8px`,color:i.tokens.colorPaletteYellowForeground1,fontSize:`20px`,animation:`${Lu} 2s ease-in-out infinite 0.5s`}),noKpiSparkle2:(0,l.css)({position:`absolute`,bottom:`-4px`,left:`-8px`,color:i.tokens.colorPaletteLavenderForeground2,fontSize:`16px`,animation:`${Lu} 2.5s ease-in-out infinite`}),noKpiTitle:(0,l.css)({fontSize:`22px`,fontWeight:i.tokens.fontWeightSemibold,color:i.tokens.colorNeutralForeground1,marginTop:`24px`,textAlign:`center`,position:`relative`,zIndex:1}),noKpiSubtitle:(0,l.css)({fontSize:`14px`,color:i.tokens.colorNeutralForeground3,textAlign:`center`,lineHeight:`1.6`,maxWidth:`320px`,marginTop:`8px`,position:`relative`,zIndex:1}),noKpiHighlight:(0,l.css)({background:`linear-gradient(90deg, ${i.tokens.colorBrandForeground1}, ${i.tokens.colorPaletteLavenderForeground2}, ${i.tokens.colorBrandForeground1})`,backgroundSize:`200% auto`,WebkitBackgroundClip:`text`,WebkitTextFillColor:`transparent`,backgroundClip:`text`,fontWeight:i.tokens.fontWeightSemibold,animation:`${Ru} 3s linear infinite`}),noKpiButtonContainer:(0,l.css)({marginTop:`24px`,position:`relative`,zIndex:1}),noKpiButton:(0,l.css)({borderRadius:`10px`,padding:`10px 20px`,fontWeight:i.tokens.fontWeightSemibold,transition:`transform 0.2s ease`,"&:hover":{transform:`scale(1.02)`}}),noKpiDecorativeLine:(0,l.css)({width:`60px`,height:`4px`,borderRadius:`2px`,background:`linear-gradient(90deg, ${i.tokens.colorBrandBackground}, ${i.tokens.colorPaletteLavenderBackground2})`,marginTop:`16px`,position:`relative`,zIndex:1}),footerGrid:(0,l.css)({width:`100%`,display:`grid`,gridTemplateColumns:`repeat(auto-fit, minmax(80px, 1fr))`,alignItems:`center`})}),Bu=function(e){return e[e.LOWER_IS_BETTER=1]=`LOWER_IS_BETTER`,e[e.HIGHER_IS_BETTER=2]=`HIGHER_IS_BETTER`,e}({}),Vu=r=>{let{dataCard:a}=r,o=zu(),s=e.f(),[c,l]=t.useState(!1),u=t.useCallback(()=>{l(!1)},[]),f=t.useMemo(()=>a.goalMetric===Bu.LOWER_IS_BETTER?a.currentValue<=a.goal:a.currentValue>=a.goal,[a.currentValue,a.goal,a.goalMetric]),p=t.useMemo(()=>f?`success`:`error`,[f]),m=t.useMemo(()=>a.goal.toLocaleString(),[a.goal]),h=t.useMemo(()=>a.currentValue/a.totalItems*100,[a.currentValue,a.totalItems]),g=t.useMemo(()=>f?i.tokens.colorPaletteLightGreenForeground2:i.tokens.colorPaletteRedForeground2,[f]),_=t.useMemo(()=>f?i.tokens.colorPaletteLightGreenBackground1:i.tokens.colorPaletteRedBackground1,[f]),v=t.useMemo(()=>f?i.tokens.colorPaletteLightGreenBorder1:i.tokens.colorPaletteRedBorder1,[f]),y=t.useMemo(()=>({background:_,border:`1px solid ${v}`,color:g,borderRadius:`20px`,padding:`12px 12px`,fontSize:i.tokens.fontSizeBase200,fontWeight:i.tokens.fontWeightSemibold,letterSpacing:`0.3px`,maxWidth:`fit-content`}),[_,v,g]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(i.Card,{className:o.card,onMouseLeave:u,"aria-label":`${a.title||s.defaultTitle}: ${a.currentValue} of ${a.goal} ${s.goal}, ${f?s.onTrack:s.exceedGoal}`,children:[(0,n.jsx)(`div`,{className:f?o.glowBlobSuccess:o.glowBlobError}),(0,n.jsxs)(H,{gap:`m`,padding:`m`,children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsxs)(H,{direction:`vertical`,gap:`2px`,children:[(0,n.jsx)(H,{direction:`horizontal`,alignItems:`center`,gap:`8px`,children:(0,n.jsx)(i.InfoLabel,{style:{zIndex:99999},infoButton:{popover:{open:c,onOpenChange:(e,t)=>l(t.open)}},info:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.Text,{size:300,color:`neutralSecondary`,children:a.description||s.noDescription})}),children:(0,n.jsx)(i.Text,{weight:`bold`,size:300,children:a.title?.toUpperCase()||s.defaultTitle})})}),(0,n.jsx)(i.Text,{size:200,style:{color:i.tokens.colorNeutralForeground3,fontStyle:`italic`},children:a.goalMetric===Bu.LOWER_IS_BETTER?s.lowerIsBetter:s.higherIsBetter})]}),action:(0,n.jsx)(i.Tooltip,{content:f?`✓ ${s.withinGoalThreshold}`:`⚠ ${s.exceedsGoalThreshold}`,relationship:`description`,children:(0,n.jsx)(i.Badge,{className:o.headerActionBadge,appearance:`ghost`,size:`small`,icon:f?(0,n.jsx)(d.CheckmarkCircleRegular,{style:{color:g,fontSize:`22px`}}):(0,n.jsx)(d.AlertFilled,{style:{color:g,fontSize:`22px`}})})})}),(0,n.jsxs)(H,{gap:`s`,direction:`horizontal`,alignItems:`baseline`,paddingTop:`s`,children:[(0,n.jsxs)(i.Text,{weight:`bold`,size:900,children:[a.currentValue,` `,(0,n.jsx)(`br`,{})]}),(0,n.jsxs)(i.Text,{weight:`semibold`,size:300,color:`neutralSecondary`,children:[`/ `,a.goal,` `,s.goal]})]}),(0,n.jsxs)(H,{gap:`s`,children:[(0,n.jsxs)(H,{direction:`horizontal`,justifyContent:`space-between`,children:[(0,n.jsx)(i.Text,{size:300,color:`neutralSecondary`,children:s.progressGoal}),(0,n.jsxs)(i.Text,{size:300,color:`neutralSecondary`,weight:`bold`,children:[(a.currentValue/a.goal*100).toFixed(2),`%`]})]}),(0,n.jsx)(i.ProgressBar,{value:a.currentValue/a.goal,color:p,style:{height:`8px`},shape:`rounded`})]}),(0,n.jsxs)(i.CardFooter,{children:[(0,n.jsx)(i.Tooltip,{content:s.maxAllowedThreshold,relationship:`description`,children:(0,n.jsxs)(H,{alignItems:`center`,gap:i.tokens.spacingVerticalXXS,children:[(0,n.jsx)(d.TargetRegular,{className:o.footerIcon}),(0,n.jsx)(i.Text,{className:o.footerLabel,children:`Goal`}),(0,n.jsx)(i.Text,{className:o.footerValue,children:m})]})}),(0,n.jsx)(i.Divider,{vertical:!0,className:o.footerDivider}),(0,n.jsx)(i.Tooltip,{content:s.totalItemsInScope,relationship:`description`,children:(0,n.jsxs)(H,{alignItems:`center`,gap:i.tokens.spacingVerticalXXS,children:[(0,n.jsx)(d.DocumentRegular,{className:o.footerIcon}),(0,n.jsx)(i.Text,{className:o.footerLabel,children:s.totalItems}),(0,n.jsx)(i.Text,{className:o.footerValue,children:a.totalItems.toLocaleString()})]})}),(0,n.jsx)(i.Divider,{vertical:!0,className:o.footerDivider}),(0,n.jsx)(i.Tooltip,{content:s.currentValueAsPercent,relationship:`description`,children:(0,n.jsxs)(H,{alignItems:`center`,gap:i.tokens.spacingVerticalXXS,children:[(0,n.jsx)(d.CalculatorRegular,{className:o.footerIcon}),(0,n.jsx)(i.Text,{className:o.footerLabel,children:s.percentOfTotal}),(0,n.jsxs)(i.Text,{className:o.footerValue,children:[h.toFixed(2),`%`]})]})})]}),(0,n.jsx)(H,{children:(0,n.jsx)(i.Badge,{appearance:`outline`,size:`small`,style:y,icon:f?(0,n.jsx)(d.CheckmarkCircleRegular,{style:{fontSize:`14px`}}):(0,n.jsx)(d.AlertFilled,{style:{fontSize:`14px`}}),children:f?s.onTrack:s.exceedGoal})})]})]})})},Hu=()=>{let e=zu(),t={headerTitle:(0,l.css)({width:`120px`,height:`16px`}),headerBadge:(0,l.css)({width:`32px`,height:`32px`,borderRadius:`50%`}),mainValue:(0,l.css)({width:`80px`,height:`42px`}),goalText:(0,l.css)({width:`70px`,height:`16px`}),progressLabel:(0,l.css)({width:`80px`,height:`12px`}),progressValue:(0,l.css)({width:`50px`,height:`12px`}),progressBar:(0,l.css)({width:`100%`,height:`8px`,borderRadius:`4px`}),footerIcon:(0,l.css)({width:`16px`,height:`16px`,borderRadius:`4px`}),footerLabel:(0,l.css)({width:`50px`,height:`10px`}),footerValue:(0,l.css)({width:`40px`,height:`14px`}),badge:(0,l.css)({width:`90px`,height:`32px`,borderRadius:`20px`})};return(0,n.jsx)(i.Card,{className:e.card,children:(0,n.jsx)(i.Skeleton,{animation:`pulse`,children:(0,n.jsxs)(H,{gap:`m`,padding:`m`,children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsx)(H,{direction:`horizontal`,alignItems:`center`,gap:`8px`,children:(0,n.jsx)(i.SkeletonItem,{className:t.headerTitle})}),action:(0,n.jsx)(i.SkeletonItem,{className:t.headerBadge,shape:`circle`})}),(0,n.jsxs)(H,{gap:`s`,direction:`horizontal`,alignItems:`baseline`,paddingTop:`s`,children:[(0,n.jsx)(i.SkeletonItem,{className:t.mainValue}),(0,n.jsx)(i.SkeletonItem,{className:t.goalText})]}),(0,n.jsxs)(H,{gap:`s`,children:[(0,n.jsxs)(H,{direction:`horizontal`,justifyContent:`space-between`,children:[(0,n.jsx)(i.SkeletonItem,{className:t.progressLabel}),(0,n.jsx)(i.SkeletonItem,{className:t.progressValue})]}),(0,n.jsx)(i.SkeletonItem,{className:t.progressBar})]}),(0,n.jsxs)(i.CardFooter,{children:[(0,n.jsxs)(H,{direction:`vertical`,alignItems:`center`,gap:`xs`,children:[(0,n.jsx)(i.SkeletonItem,{className:t.footerIcon}),(0,n.jsx)(i.SkeletonItem,{className:t.footerLabel}),(0,n.jsx)(i.SkeletonItem,{className:t.footerValue})]}),(0,n.jsx)(i.Divider,{vertical:!0,style:{height:`32px`,borderColor:i.tokens.colorNeutralStroke1}}),(0,n.jsxs)(H,{direction:`vertical`,alignItems:`center`,gap:`xs`,children:[(0,n.jsx)(i.SkeletonItem,{className:t.footerIcon}),(0,n.jsx)(i.SkeletonItem,{className:t.footerLabel}),(0,n.jsx)(i.SkeletonItem,{className:t.footerValue})]}),(0,n.jsx)(i.Divider,{vertical:!0,style:{height:`32px`,borderColor:i.tokens.colorNeutralStroke1}}),(0,n.jsxs)(H,{direction:`vertical`,alignItems:`center`,gap:`xs`,children:[(0,n.jsx)(i.SkeletonItem,{className:t.footerIcon}),(0,n.jsx)(i.SkeletonItem,{className:t.footerLabel}),(0,n.jsx)(i.SkeletonItem,{className:t.footerValue})]})]}),(0,n.jsx)(H,{children:(0,n.jsx)(i.SkeletonItem,{className:t.badge})})]})})})},Uu=`/sites/mock-site/Lists/Directory Status Config`,Wu=()=>{let r=zu(),a=e._(),o=Uu,s=t.useCallback(()=>{let e=`${window.location.origin}${o}/AllItems.aspx`;window.open(e,`_blank`)},[o]);return(0,n.jsxs)(i.Card,{className:r.noKpiCardContainer,children:[(0,n.jsx)(`div`,{className:r.noKpiBackgroundOrb1}),(0,n.jsx)(`div`,{className:r.noKpiBackgroundOrb2}),(0,n.jsxs)(H,{alignItems:`center`,justifyContent:`center`,gap:`s`,children:[(0,n.jsxs)(`div`,{className:r.noKpiIconContainer,children:[(0,n.jsx)(d.DataBarVerticalStarRegular,{className:r.noKpiIcon}),(0,n.jsx)(d.SparkleRegular,{className:r.noKpiSparkle1}),(0,n.jsx)(d.SparkleRegular,{className:r.noKpiSparkle2})]}),(0,n.jsx)(i.Text,{className:r.noKpiTitle,children:a.title}),(0,n.jsx)(`div`,{className:r.noKpiDecorativeLine}),(0,n.jsxs)(i.Text,{className:r.noKpiSubtitle,children:[a.subtitle.split(`{highlight}`)[0],(0,n.jsx)(`span`,{className:r.noKpiHighlight,children:a.highlightText}),a.subtitle.split(`{highlight}`)[1]]}),(0,n.jsx)(`div`,{className:r.noKpiButtonContainer,children:(0,n.jsx)(i.Button,{appearance:`outline`,icon:(0,n.jsx)(d.SettingsRegular,{}),className:r.noKpiButton,onClick:s,children:a.configureButton})})]})]})},Gu=r=>{let{dataCard:a}=r,o=zu(),s=e.f(),[c,l]=t.useState(!1),u=t.useCallback(()=>{l(!1)},[]),f=t.useMemo(()=>a.goalMetric===Bu.LOWER_IS_BETTER?a.currentValue<=a.goal:a.currentValue>=a.goal,[a.currentValue,a.goal,a.goalMetric]),p=t.useMemo(()=>f?`success`:`error`,[f]),m=t.useMemo(()=>f?i.tokens.colorPaletteLightGreenForeground2:i.tokens.colorPaletteRedForeground2,[f]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(i.Card,{className:o.card,style:{height:`168px`},onMouseLeave:u,children:[(0,n.jsx)(`div`,{className:f?o.glowBlobSuccess:o.glowBlobError}),(0,n.jsxs)(H,{gap:`0px`,padding:`m`,children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsxs)(H,{direction:`vertical`,gap:`2px`,children:[(0,n.jsx)(H,{direction:`horizontal`,alignItems:`center`,gap:`8px`,children:(0,n.jsx)(i.InfoLabel,{infoButton:{popover:{open:c,onOpenChange:(e,t)=>l(t.open)}},info:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.Text,{size:300,color:`neutralSecondary`,children:a.description||s.noDescription})}),children:(0,n.jsx)(i.Text,{weight:`bold`,size:300,children:a.title?.toUpperCase()||s.defaultTitle})})}),(0,n.jsx)(i.Text,{size:200,style:{color:i.tokens.colorNeutralForeground3,fontStyle:`italic`},children:a.goalMetric===Bu.LOWER_IS_BETTER?s.lowerIsBetter:s.higherIsBetter})]}),action:(0,n.jsx)(i.Tooltip,{content:f?`✓ ${s.withinGoalThreshold}`:`⚠ ${s.exceedsGoalThreshold}`,relationship:`inaccessible`,children:(0,n.jsx)(i.Badge,{className:o.headerActionBadge,appearance:`ghost`,size:`small`,icon:f?(0,n.jsx)(d.CheckmarkCircleRegular,{style:{color:m,fontSize:`22px`}}):(0,n.jsx)(d.AlertFilled,{style:{color:m,fontSize:`22px`}})})})}),(0,n.jsxs)(H,{gap:`s`,direction:`horizontal`,alignItems:`baseline`,children:[(0,n.jsxs)(i.Text,{weight:`bold`,size:900,children:[a.currentValue,` `,(0,n.jsx)(`br`,{})]}),(0,n.jsxs)(i.Text,{weight:`semibold`,size:300,color:`neutralSecondary`,children:[`/ `,a.goal,` `,s.goal]})]}),(0,n.jsxs)(H,{gap:`s`,children:[(0,n.jsxs)(H,{direction:`horizontal`,justifyContent:`space-between`,children:[(0,n.jsx)(i.Text,{size:300,color:`neutralSecondary`,children:s.progressGoal}),(0,n.jsxs)(i.Text,{size:300,color:`neutralSecondary`,weight:`bold`,children:[(a.currentValue/a.goal*100).toFixed(2),`%`]})]}),(0,n.jsx)(i.ProgressBar,{value:a.currentValue/a.goal,color:p,style:{height:`3px`},shape:`rounded`})]})]})]})})},Ku=[{identifier:`kpi-1`,title:`Sales Revenue`,currentValue:125,goal:150,totalItems:200,description:`This is a comprehensive description of the Total Sales Revenue KPI for Q1. This metric tracks all revenue generated from product sales, service contracts, and recurring subscriptions across all business units and geographic regions. The goal is set based on historical performance, market conditions, and strategic growth objectives. Performance is evaluated weekly with detailed breakdowns by product category, sales team, and customer segment. This KPI is critical for quarterly business reviews and investor reporting.`,goalMetric:2},{identifier:`kpi-2`,title:`Customer Satisfaction`,currentValue:87,goal:90,totalItems:100,description:`Customer satisfaction score`,goalMetric:1},{identifier:`kpi-3`,title:`Tasks Completed`,currentValue:42,goal:50,totalItems:60,description:`Number of tasks completed this month`,goalMetric:2},{identifier:`kpi-4`,title:`New Customers`,currentValue:156,goal:200,totalItems:250,description:`New customer acquisitions this quarter`,goalMetric:1},{identifier:`kpi-5`,title:`Response Time`,currentValue:2.5,goal:2,totalItems:5,description:`Average response time in hours`,goalMetric:2},{identifier:`kpi-6`,title:`Employee Engagement`,currentValue:78,goal:85,totalItems:100,description:`Employee engagement score percentage`,goalMetric:1}],qu=e=>{let{skeletonCount:r=3,compact:i=!1}=e,a=zu(),o=Ku;return t.useCallback(()=>Array.from({length:r}).map((e,t)=>(0,n.jsx)(Hu,{},`kpi-skeleton-${t}`)),[r]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(H,{gap:`l`,direction:`horizontal`,padding:`l`,paddingTop:`s`,children:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{className:a.kpiContainer,children:o.length>0?o.map(e=>i?(0,n.jsx)(Gu,{dataCard:e},e.identifier):(0,n.jsx)(Vu,{dataCard:e},e.identifier)):(0,n.jsx)(Wu,{})})})})})},Ju=new Set([`p`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`li`,`td`,`th`]),Yu=(e,t)=>{let n=parseFloat(e.borderTopLeftRadius)||0,r=parseFloat(e.borderTopRightRadius)||0,i=parseFloat(e.borderBottomRightRadius)||0,a=parseFloat(e.borderBottomLeftRadius)||0;if(n===0&&r===0&&i===0&&a===0)return;let o=t?(()=>{let e=t.getBoundingClientRect();return e.width>0&&e.height>0&&Math.abs(e.width-e.height)<4})():!1;return e.borderRadius===`50%`?`50%`:Math.max(n,r,i,a)>9998?o?`50%`:9999:n===r&&r===i&&i===a?n===8?void 0:n:`${n}px ${r}px ${i}px ${a}px`},Xu=(e,t=`component`,n)=>{let r=e.getBoundingClientRect(),i=[],a=n?.leafTags?new Set([...Ju,...n.leafTags]):Ju,o=n?.captureRoundedBorders??!0,s=n?.excludeTags?new Set(n.excludeTags):null,c=n?.excludeSelectors??null,l=e=>{let t=getComputedStyle(e);if(t.display===`none`||t.visibility===`hidden`||t.opacity===`0`)return;let n=e.tagName.toLowerCase();if(s?.has(n)||c?.some(t=>e.matches(t)))return;let u=[...e.children].filter(e=>{let t=getComputedStyle(e);return t.display!==`none`&&t.visibility!==`hidden`&&t.opacity!==`0`}),d=n===`img`||n===`svg`||n===`video`||n===`canvas`,f=n===`input`||n===`button`||n===`textarea`||n===`select`,p=u.length===0||d||f||a.has(n),m=t.backgroundColor,h=m!==`rgba(0, 0, 0, 0)`&&m!==`transparent`,g=t.backgroundImage!==`none`,_=parseFloat(t.borderTopWidth)||0,v=o&&_>0&&t.borderTopColor!==`rgba(0, 0, 0, 0)`&&t.borderTopColor!==`transparent`,y=(parseFloat(t.borderTopLeftRadius)||0)>0,b=h||g||v&&y,x=n===`tr`||n===`td`||n===`th`||n===`thead`||n===`tbody`||n===`table`;if(p){let n=e.getBoundingClientRect();if(n.width<1||n.height<1)return;let a=d&&n.width>0&&n.height>0&&Math.abs(n.width-n.height)<4,o=x?0:a?`50%`:Yu(t,e)??8,s=r.width;i.push({x:s>0?+((n.left-r.left)/s*100).toFixed(4):0,y:Math.round(n.top-r.top),w:s>0?+(n.width/s*100).toFixed(4):0,h:Math.round(n.height),r:o});return}if(b){let n=e.getBoundingClientRect();if(n.width>=1&&n.height>=1){let a=x?0:Yu(t,e)??8,o=r.width;i.push({x:o>0?+((n.left-r.left)/o*100).toFixed(4):0,y:Math.round(n.top-r.top),w:o>0?+(n.width/o*100).toFixed(4):0,h:Math.round(n.height),r:a,c:!0})}}for(let e of u)l(e)};for(let t of e.children)l(t);return{name:t,viewportWidth:Math.round(r.width),width:Math.round(r.width),height:Math.round(r.height),bones:i}},Zu=(e,n,r,i,a)=>{let[o,s]=(0,t.useState)(null);return(0,t.useEffect)(()=>{if(!n||r||o)return;let t=e.current;if(!t)return;let c=requestAnimationFrame(()=>{let e=t.querySelector(`[data-skeleton-content]`);if(e&&e.children.length>0){let t=Xu(e,i??`auto`,a);t.bones.length>0&&s(t)}});return()=>cancelAnimationFrame(c)},[n,r,o,i,a,e]),o},Qu={angle:110,start:25,end:75,speed:`1.8s`},$u={speed:`1.5s`},ed={bone:`var(--colorNeutralStencil1)`,shimmerHighlight:`var(--colorNeutralStencil2)`},td=new Map,nd=e=>{for(let[t,n]of Object.entries(e))td.set(t,n)},rd=e=>td.get(e),id=()=>{typeof window<`u`&&window.__SKELETON_BUILD&&(window.__SKELETON_SNAPSHOT=Xu)},ad=()=>typeof window<`u`&&window.__SKELETON_BUILD===!0,od=(e,t)=>{if(!(`breakpoints`in e))return e;let n=Object.keys(e.breakpoints).map(Number).sort((e,t)=>e-t);if(n.length===0)return null;let r=[...n].reverse().find(e=>t>=e)??n[0];return e.breakpoints[r]??null},sd=e=>Array.isArray(e)?{x:e[0],y:e[1],w:e[2],h:e[3],r:e[4],c:e[5]||void 0}:e,cd={},ld=e=>{cd={...cd,...e}},ud=()=>cd,dd=()=>(0,t.useMemo)(()=>({SHIMMER:Qu,PULSE:$u,DEFAULTS:ed,getRegisteredBones:rd,isBuildMode:ad,normalizeBone:sd,resolveResponsive:od,getGlobalConfig:ud}),[]),fd=(0,l.keyframes)({"0%, 100%":{opacity:1},"50%":{opacity:.4}}),pd=(0,l.keyframes)({"0%":{backgroundPosition:`200% 0`},"100%":{backgroundPosition:`-200% 0`}}),md=(0,l.keyframes)({from:{opacity:0},to:{opacity:1}}),hd=(0,l.css)({position:`relative`}),gd=(0,l.css)({position:`absolute`,inset:0,overflow:`hidden`}),_d=(0,l.css)({visibility:`hidden`,pointerEvents:`none`}),vd=(0,l.css)({position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`}),yd={position:`relative`,width:`100%`,height:`100%`},bd=()=>({container:hd,overlay:gd,hiddenContent:_d,fallbackOverlay:vd});id();var xd=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/,Sd=e=>{let[n,r]=(0,t.useState)(!1),a=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(typeof window>`u`)return;let t=e.current;if(!t)return;let n=document.createElement(`span`);n.style.display=`none`,n.style.color=i.tokens.colorNeutralBackground1,t.appendChild(n),a.current=n;let o=()=>{let e=getComputedStyle(n).color.match(xd);if(e){r((parseInt(e[1],10)*299+parseInt(e[2],10)*587+parseInt(e[3],10)*114)/1e3<128);return}r(document.documentElement.classList.contains(`dark`)||!!t.closest(`.dark`))};o();let s=new MutationObserver(o);return s.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]}),()=>{s.disconnect(),n.parentNode&&n.parentNode.removeChild(n),a.current=null}},[e]),n},Cd=({loading:e,children:r,name:a,initialBones:o,color:s,darkColor:c,animate:l,stagger:u=!1,transition:d=!1,boneClass:f,className:p,style:m,fallback:h,fixture:g,snapshotConfig:_})=>{let v=bd(),{DEFAULTS:y,SHIMMER:b,PULSE:x,getRegisteredBones:S,isBuildMode:C,normalizeBone:w,resolveResponsive:T,getGlobalConfig:E}=dd(),D=(0,t.useRef)(null),[O,k]=(0,t.useState)(0),[A,j]=(0,t.useState)(0),M=Sd(D),N=E(),ee=s??N.color,P=c??N.darkColor,F=!!(ee||P),I=F?M?P??ee:ee??y.bone:y.bone,L=l??N.animate??`pulse`,R=L===!0?`pulse`:L===!1?`solid`:L;(0,t.useEffect)(()=>{let e=D.current;if(!e)return;let t=new ResizeObserver(e=>{let t=e[0]?.contentRect;k(Math.round(t?.width??0)),t&&t.height>0&&j(Math.round(t.height))});t.observe(e);let n=e.getBoundingClientRect();return k(Math.round(n.width)),n.height>0&&j(Math.round(n.height)),()=>t.disconnect()},[]);let te=(0,t.useMemo)(()=>{let e={};return a&&(e[`data-skeleton`]=a,_&&(e[`data-skeleton-config`]=JSON.stringify(_))),e},[a,_]),[ne,re]=(0,t.useState)(!1);(0,t.useLayoutEffect)(()=>{re(!0)},[]);let ie=o??(a?S(a):void 0),z=ne&&typeof window<`u`?window.innerWidth:0,ae=O>0?O:z,oe=ie&&ae>0?T(ie,ae):null,se=Zu(D,e,oe,a,_),ce=oe??se,le=(0,t.useMemo)(()=>{let e=u??N.stagger;return e===!0?80:e===!1||!e?0:e},[u,N.stagger]),ue=(0,t.useMemo)(()=>{let e=d??N.transition;return e===!0?300:e===!1||!e?0:e},[d,N.transition]),[de,fe]=(0,t.useState)(!1),pe=(0,t.useRef)(e),me=(0,t.useRef)(null);(0,t.useEffect)(()=>(pe.current&&!e&&ue>0&&ce&&(me.current&&clearTimeout(me.current),fe(!0),me.current=setTimeout(()=>{fe(!1),me.current=null},ue)),pe.current=e,()=>{me.current&&clearTimeout(me.current)}),[e,ue,ce]);let he=(e||de)&&ce,ge=e&&!ce&&!de,_e=A>0?A:ce?.height??0,ve=ce?.height??0,ye=_e>0&&ve>0?_e/ve:1,be=(0,t.useMemo)(()=>ce?ce.bones.map(w).filter(e=>!e.c):[],[ce]),xe=(0,t.useCallback)((e,t)=>{let n=e.w/100*(ce?.width??0),r=e.r===`50%`&&Math.abs(n-e.h)<4,i=r?0:2,a=e.h*ye,o=Math.max(a-i*2,2),s={position:`absolute`,left:`${e.x}%`,top:e.y*ye+i,width:r?e.h*ye:`${e.w}%`,height:o,borderRadius:typeof e.r==`string`?e.r:`${e.r}px`},c=N.speed;if(R===`shimmer`){let e=F?M?N.darkShimmerColor??y.shimmerHighlight:N.shimmerColor??y.shimmerHighlight:y.shimmerHighlight;s.backgroundImage=`linear-gradient(${N.shimmerAngle??b.angle}deg, ${I} ${b.start}%, ${e} 50%, ${I} ${b.end}%)`,s.backgroundSize=`200% 100%`,s.animation=`${pd} ${c??b.speed} linear infinite`}else s.backgroundColor=I,R===`pulse`&&(s.animation=`${fd} ${c??x.speed} ease-in-out infinite`);return le>0&&(s.opacity=0,s.animation=`${s.animation?`${s.animation}, `:``}${md} 0.3s ease-out ${t*le}ms forwards`),s},[ce,ye,R,I,F,M,N,le]);if(C())return(0,n.jsx)(`div`,{ref:D,className:(0,i.mergeClasses)(v.container,p),style:m,...te,children:(0,n.jsx)(`div`,{children:g??r})});let Se=e?{"aria-busy":`true`,"aria-label":`Loading content`}:{};return(0,n.jsxs)(`div`,{ref:D,className:(0,i.mergeClasses)(v.container,p),style:m,role:`status`,...Se,...te,children:[(0,n.jsx)(`div`,{"data-skeleton-content":`true`,className:he?v.hiddenContent:void 0,children:r}),ge&&h&&(0,n.jsx)(`div`,{className:v.fallbackOverlay,children:h}),he&&(0,n.jsx)(`div`,{"data-skeleton-overlay":`true`,className:v.overlay,"aria-hidden":`true`,style:{opacity:de?0:1,transition:ue>0?`opacity ${ue}ms ease-out`:void 0},children:(0,n.jsx)(`div`,{style:yd,children:be.map((e,t)=>(0,n.jsx)(`div`,{"data-skeleton-bone":`true`,className:f??N.boneClass,style:xe(e,t)},t))})})]})},wd=()=>{let e=t.useRef(``);return e.current||=`fui-`+Math.random().toString(36).slice(2,9),e.current},Td=e=>{let t=wd(),{theme:r=i.webLightTheme,applicationName:a=t,targetDocument:o=document,applyStylesToPortals:s=!0,className:c,styles:l,children:u}=e;return(0,n.jsx)(i.IdPrefixProvider,{value:a,children:(0,n.jsx)(i.FluentProvider,{theme:r,applyStylesToPortals:s,targetDocument:o,className:c,style:l,children:u})})};exports.AIAssistant=$c,exports.AISearchControl=Nc,exports.AISearchIcon=kc,exports.AISearchIconExample=Fc,exports.AdaptiveCardHost=Sc,exports.AdaptiveCardHostThemeType=Ws,exports.AlignCenterControl=$i,exports.AlignJustifyControl=ea,exports.AlignLeftControl=Zi,exports.AlignRightControl=Qi,exports.AppDashboard=Iu,exports.AspectRatio=ct,exports.BackgroundImage=Ol,exports.Blockquote=ml,exports.BlockquoteControl=Xi,exports.BoldControl=Ii,exports.Breadcrumb=Pt,exports.BulletListControl=Hi,exports.ButtonMenu=At,exports.CalendarControl=xn,exports.CalendarGrid=wn,exports.CalendarHeader=Tn,exports.CalendarMonth=sn,exports.Card=Ze,exports.Carousel=vt,exports.Center=dt,exports.ChatInput=Lc,exports.ChatInputWithMensions=Hc,exports.ChatInputWithMensionsV1=el,exports.ChatList=Xc,exports.ChromeInputType=Do,exports.ClearFormattingControl=Bi,exports.CodeBlockControl=ia,exports.CodeControl=ra,exports.ColorPicker=X,exports.ColorPickerAlpha=go,exports.ColorPickerBlock=Go,exports.ColorPickerChrome=Mo,exports.ColorPickerCircle=Bo,exports.ColorPickerColorful=No,exports.ColorPickerCompact=Uo,exports.ColorPickerEditableInput=So,exports.ColorPickerEditableInputHSLA=wo,exports.ColorPickerEditableInputRGBA=Co,exports.ColorPickerHue=mo,exports.ColorPickerInteractive=so,exports.ColorPickerSaturation=lo,exports.ColorPickerShadeSlider=vo,exports.ColorPickerSketch=Eo,exports.ColorPickerSlider=qo,exports.ColorPickerSwatch=bo,exports.ColorPickerTheme=es,exports.ColorPickerWheel=Lo,exports.CompactCalendar=In,exports.CompactCalendarToolbar=En,exports.Container=pt,exports.ContentRenderer=Yc,exports.ContentType=He,exports.CustomControlBar=bs,exports.DataGrid=is,exports.DataGridV2=ss,exports.DropdownField=ya,exports.Dropzone=Or,exports.DropzoneAccept=Cr,exports.DropzoneFullScreen=kr,exports.DropzoneIdle=Tr,exports.DropzoneProvider=br,exports.DropzoneReject=wr,exports.EBreakPoints=R,exports.ECalendarViews=W,exports.EGoalMetric=Bu,exports.EMessageType=te,exports.EXE_MIME_TYPE=Ir,exports.ErrorType=e.D,exports.EventsList=Dn,exports.FluentUIProvider=Td,exports.GenericOverFlowMenu=ws,exports.Grid=$e,exports.H1Control=Wi,exports.H2Control=Gi,exports.H3Control=Ki,exports.H4Control=qi,exports.H5Control=Ji,exports.H6Control=Yi,exports.HighlightControl=aa,exports.HrControl=oa,exports.IMAGE_MIME_TYPE=jr,exports.IconButton=Ft,exports.InlineSVG=Xl,exports.InputField=xa,exports.ItalicControl=Li,exports.ItemPicker=Pa,exports.KPICard=Vu,exports.KPICardCompact=Gu,exports.KPICardSkeleton=Hu,exports.Kpis=qu,exports.Layout=nt,exports.LayoutItem=rt,exports.Link=ga,exports.ListItemActivityMessage=Eu,exports.ListToolbar=fu,exports.LivePersona=iu,exports.LocalizationProvider=e.t,exports.LogLevel=e.O,exports.MIME_TYPES=Ar,exports.MS_EXCEL_MIME_TYPE=Pr,exports.MS_POWERPOINT_MIME_TYPE=Fr,exports.MS_WORD_MIME_TYPE=Nr,exports.MaplibreWorldMap=Us,exports.MarkdownRenderer=qc,exports.Marquee=Sl,exports.Mensions=zc,exports.MensionsExample=Bc,exports.MermaidDiagram=al,exports.Navigation=Ts,exports.NoKpisCard=Wu,exports.OTPField=ru,exports.OptionTime=Aa,exports.OrderedListControl=Ui,exports.PDF_MIME_TYPE=Mr,exports.Popup=xt,exports.RedoControl=la,exports.RenderAdaptiveCard=Cc,exports.RenderDialog=us,exports.RenderDrawer=ds,exports.RenderHeader=fs,exports.RenderLabel=Ct,exports.RenderSpinner=Tt,exports.RichTextEditor=ha,exports.RichTextEditorColorControl=ji,exports.RichTextEditorColorPickerControl=Mi,exports.RichTextEditorContent=Hr,exports.RichTextEditorControl=Wr,exports.RichTextEditorControlBase=Gr,exports.RichTextEditorControlsGroup=Ur,exports.RichTextEditorFontFamilyControl=Fi,exports.RichTextEditorLinkControl=Ai,exports.RichTextEditorSourceCodeControl=Ni,exports.RichTextEditorToolbar=Vr,exports.SearchControl=ir,exports.SelectDay=rn,exports.SelectMonth=cn,exports.SelectTime=Ma,exports.SelectView=Sa,exports.SelectWeek=fn,exports.ShareDialog=ms,exports.ShowError=gs,exports.ShowMessage=vs,exports.SkeletonLoader=Cd,exports.Space=at,exports.SplitPane=bt,exports.Spoiler=Tl,exports.Spotlight=vr,exports.SpotlightAction=sr,exports.SpotlightActionsGroup=cr,exports.SpotlightActionsList=lr,exports.SpotlightEmpty=ur,exports.SpotlightFooter=dr,exports.SpotlightRoot=nr,exports.SpotlightSearch=ar,exports.Stack=B,exports.StackItem=st,exports.StackV2=H,exports.StackedUsers=xu,exports.Stepper=zl,exports.StrikeThroughControl=zi,exports.SubscriptControl=ta,exports.SuperscriptControl=na,exports.TIME_RADIO_GROUP=Ta,exports.TaskListControl=ua,exports.TaskListLiftControl=fa,exports.TaskListSinkControl=da,exports.Timeline=Nl,exports.TypographyControl=Ot,exports.UnderlineControl=Ri,exports.UndoControl=ca,exports.UniversalProvider=re,exports.UnlinkControl=Vi,exports.UnsetColorControl=sa,exports.UserCard=yu,exports.VideoPlayer=Os,exports.clampHsva=ao,exports.clearInlineSVGCache=Ul,exports.cloneDeep=je,exports.closeOnActionTriggerAtom=Hn,exports.closeSpotlight=Yn,exports.color=J,exports.configureSkeletonLoader=ld,exports.createControl=K,exports.createSpotlight=Zn,exports.createSpotlightStore=Wn,exports.debounce=ke,exports.deepMerge=e.T,exports.defaultCalendarControlStrings=_n,exports.defaultCalendarMonthStrings=on,exports.defaultSelectWeekStrings=ln,exports.defaultSpotlightFilter=gr,exports.detectContentType=Je,exports.en=e.E,exports.equalColorObjects=ro,exports.equalHex=io,exports.every=Ve,exports.filter=ze,exports.formatTime=Da,exports.get=Ne,exports.getContentType=Ye,exports.getContrastingColor=no,exports.getTaskListExtension=_a,exports.groupBy=Le,exports.hexToHsva=Va,exports.hexToRgba=Wa,exports.hslaStringToHsva=Qa,exports.hslaToHsva=Ba,exports.hsvaToHex=Ha,exports.hsvaToHexa=Ua,exports.hsvaToHslString=qa,exports.hsvaToHsla=za,exports.hsvaToHslaString=Ja,exports.hsvaToRgbString=Ya,exports.hsvaToRgba=La,exports.hsvaToRgbaString=Xa,exports.isActionsGroup=pr,exports.isEmpty=Me,exports.limitActions=_r,exports.listIdAtom=zn,exports.map=Re,exports.onQueryChangeCallbackAtom=Un,exports.openSpotlight=Jn,exports.openedAtom=Ln,exports.parseHue=Za,exports.queryAtom=Bn,exports.registerBones=nd,exports.registeredActionsAtom=Vn,exports.resolveLocale=Nn,exports.rgbaStringToHsva=$a,exports.rgbaToHex=Ga,exports.rgbaToHexa=Ka,exports.rgbaToHsva=Ra,exports.selectedAtom=Rn,exports.set=Pe,exports.snapshotBones=Xu,exports.some=Be,exports.spotlight=qn,exports.spotlightActions=G,exports.spotlightStore=Gn,exports.throttle=Ae,exports.timeKey=Oa,exports.toggleSpotlight=Xn,exports.uniq=Fe,exports.uniqBy=Ie,exports.useAIAssistantStrings=e.n,exports.useAISearchControlStrings=e.r,exports.useAppDashboardStrings=e.i,exports.useApplicationContext=ie,exports.useAspectRatioStyles=lt,exports.useBlockquoteStyles=ul,exports.useBrandCenterFonts=xe,exports.useCalendar=Xt,exports.useCalendarStrings=e.a,exports.useCalendarStyles=Ut,exports.useCenterStyles=ut,exports.useColorPickerStyles=Y,exports.useCommonStrings=e.o,exports.useCompactCalendarEvents=jn,exports.useComponentStrings=e.c,exports.useComponentUtils=Se,exports.useDataGridStyles=rs,exports.useDateUtils=Te,exports.useDayViewStyles=Zt,exports.useDropzoneContext=xr,exports.useDropzoneStyles=Er,exports.useGraphAPI=ae,exports.useGridStyles=Qe,exports.useImageUtils=Oe,exports.useIndexedDBCache=oe,exports.useInputFieldStrings=e.u,exports.useItemPickerStrings=e.d,exports.useKpiStrings=e.f,exports.useLayoutStyles=et,exports.useListItemActivityStrings=e.p,exports.useLocalization=e.m,exports.useLogging=z,exports.useMarqueeStyles=_l,exports.useMensionsStrings=e.h,exports.useMensionsStyles=Rc,exports.useMermaidDiagramStrings=e.g,exports.useMermaidDiagramStyles=nl,exports.useNavigationStyles=Es,exports.useNoKpiStrings=e._,exports.useOptionTimeStyles=wa,exports.usePolling=se,exports.useRenderHeaderStyles=ps,exports.useSearchControlStrings=e.v,exports.useSelectTimeStyles=Ca,exports.useShareDialogStrings=e.y,exports.useShowErrorStyles=hs,exports.useShowMessageStyles=_s,exports.useSkeletonExtract=Zu,exports.useSpaceStyles=it,exports.useSplitPaneStyles=yt,exports.useSpotlight=Qn,exports.useSpotlightShortcut=er,exports.useSpotlightStrings=e.b,exports.useStackStyles=ot,exports.useStrings=e.x,exports.useStyles=tl,exports.useTimeZoneHelper=ce,exports.useUserCardStrings=e.S,exports.useUtils=Lt,exports.useVideoStyles=Ds,exports.useWeekViewStyles=Kt,exports.useWorldMapStrings=e.C,exports.validHex=to;
|
|
459
459
|
//# sourceMappingURL=index.cjs.map
|