@spteck/react-controls-v2 2.4.3 → 2.5.1

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.
Files changed (222) hide show
  1. package/dist/{LocalizationProvider-CvSHuk0e.js → LocalizationProvider-CBc0PcyH.js} +140 -48
  2. package/dist/LocalizationProvider-CJ2mjvH-.cjs +2 -0
  3. package/dist/{ar-BPzd6WER.js → ar-D78_ioot.js} +93 -1
  4. package/dist/{ar-CBSdRr5Q.cjs → ar-DbkaJtO2.cjs} +2 -2
  5. package/dist/{az-DoZjCfF0.cjs → az-Cf7y5UC1.cjs} +2 -2
  6. package/dist/{az-MWX-WDgc.js → az-OomGCL5f.js} +93 -1
  7. package/dist/{bg-CvRGS4sF.js → bg-OQDPULfM.js} +93 -1
  8. package/dist/{bg-DI8UD_HF.cjs → bg-nghgX11u.cjs} +2 -2
  9. package/dist/{bs-aXQgChJT.js → bs-BYdzDqQ_.js} +93 -1
  10. package/dist/{bs-DQhZlEEo.cjs → bs-CMdfvb33.cjs} +2 -2
  11. package/dist/{ca-BCXCXzgh.js → ca-9lGrM-T0.js} +93 -1
  12. package/dist/{ca-DSC32tOX.cjs → ca-C8cBXf9y.cjs} +2 -2
  13. package/dist/components/BackgroundImage/BackgroundImage.d.ts +4 -0
  14. package/dist/components/BackgroundImage/IBackgroundImageProps.d.ts +14 -0
  15. package/dist/components/BackgroundImage/index.d.ts +3 -0
  16. package/dist/components/BackgroundImage/useBackgroundImageStyles.d.ts +4 -0
  17. package/dist/components/Blockquote/Blockquote.d.ts +4 -0
  18. package/dist/components/Blockquote/IBlockquoteProps.d.ts +21 -0
  19. package/dist/components/Blockquote/index.d.ts +4 -0
  20. package/dist/components/Blockquote/useBlockquoteStyles.d.ts +6 -0
  21. package/dist/components/ColorPicker/ColorPicker.d.ts +51 -0
  22. package/dist/components/ColorPicker/ColorPickerAlpha.d.ts +4 -0
  23. package/dist/components/ColorPicker/ColorPickerBlock.d.ts +4 -0
  24. package/dist/components/ColorPicker/ColorPickerChrome.d.ts +4 -0
  25. package/dist/components/ColorPicker/ColorPickerCircle.d.ts +4 -0
  26. package/dist/components/ColorPicker/ColorPickerColorful.d.ts +4 -0
  27. package/dist/components/ColorPicker/ColorPickerCompact.d.ts +4 -0
  28. package/dist/components/ColorPicker/ColorPickerEditableInput.d.ts +4 -0
  29. package/dist/components/ColorPicker/ColorPickerEditableInputHSLA.d.ts +4 -0
  30. package/dist/components/ColorPicker/ColorPickerEditableInputRGBA.d.ts +4 -0
  31. package/dist/components/ColorPicker/ColorPickerHue.d.ts +4 -0
  32. package/dist/components/ColorPicker/ColorPickerInteractive.d.ts +6 -0
  33. package/dist/components/ColorPicker/ColorPickerSaturation.d.ts +4 -0
  34. package/dist/components/ColorPicker/ColorPickerShadeSlider.d.ts +4 -0
  35. package/dist/components/ColorPicker/ColorPickerSketch.d.ts +4 -0
  36. package/dist/components/ColorPicker/ColorPickerSlider.d.ts +4 -0
  37. package/dist/components/ColorPicker/ColorPickerSwatch.d.ts +4 -0
  38. package/dist/components/ColorPicker/ColorPickerTheme.d.ts +4 -0
  39. package/dist/components/ColorPicker/ColorPickerWheel.d.ts +4 -0
  40. package/dist/components/ColorPicker/IColorPickerProps.d.ts +297 -0
  41. package/dist/components/ColorPicker/colorConvert.d.ts +72 -0
  42. package/dist/components/ColorPicker/index.d.ts +25 -0
  43. package/dist/components/ColorPicker/useColorPickerStyles.d.ts +30 -0
  44. package/dist/components/CompactCalendar/CalendarGrid.d.ts +4 -0
  45. package/dist/components/CompactCalendar/CalendarHeader.d.ts +4 -0
  46. package/dist/components/CompactCalendar/CompactCalendar.d.ts +4 -0
  47. package/dist/components/CompactCalendar/EventsList.d.ts +4 -0
  48. package/dist/components/CompactCalendar/ICalendarGridProps.d.ts +32 -0
  49. package/dist/components/CompactCalendar/ICalendarHeaderProps.d.ts +15 -0
  50. package/dist/components/CompactCalendar/ICompactCalendarProps.d.ts +54 -0
  51. package/dist/components/CompactCalendar/IEventsListProps.d.ts +21 -0
  52. package/dist/components/CompactCalendar/index.d.ts +12 -0
  53. package/dist/components/CompactCalendar/resolveLocale.d.ts +12 -0
  54. package/dist/components/CompactCalendar/useCompactCalendarEvents.d.ts +12 -0
  55. package/dist/components/CompactCalendar/useCompactCalendarStyles.d.ts +26 -0
  56. package/dist/components/Dropzone/Dropzone.d.ts +31 -0
  57. package/dist/components/Dropzone/DropzoneContext.d.ts +20 -0
  58. package/dist/components/Dropzone/DropzoneFullScreen.d.ts +19 -0
  59. package/dist/components/Dropzone/DropzoneStatus.d.ts +9 -0
  60. package/dist/components/Dropzone/IDropzoneProps.d.ts +102 -0
  61. package/dist/components/Dropzone/index.d.ts +8 -0
  62. package/dist/components/Dropzone/mime-types.d.ts +39 -0
  63. package/dist/components/Dropzone/useDropzoneStyles.d.ts +12 -0
  64. package/dist/components/InlineSVG/IInlineSVGProps.d.ts +40 -0
  65. package/dist/components/InlineSVG/InlineSVG.d.ts +4 -0
  66. package/dist/components/InlineSVG/index.d.ts +5 -0
  67. package/dist/components/InlineSVG/useInlineSVG.d.ts +30 -0
  68. package/dist/components/InlineSVG/useInlineSVGStyles.d.ts +4 -0
  69. package/dist/components/Marquee/IMarqueeProps.d.ts +28 -0
  70. package/dist/components/Marquee/Marquee.d.ts +4 -0
  71. package/dist/components/Marquee/index.d.ts +4 -0
  72. package/dist/components/Marquee/useMarqueeStyles.d.ts +6 -0
  73. package/dist/components/OTPField/IOTPFieldProps.d.ts +49 -0
  74. package/dist/components/OTPField/OTPField.d.ts +8 -0
  75. package/dist/components/OTPField/index.d.ts +3 -0
  76. package/dist/components/OTPField/useOTPField.d.ts +25 -0
  77. package/dist/components/OTPField/useOTPFieldStyles.d.ts +23 -0
  78. package/dist/components/RichTextEditor/IRichTextEditorProps.d.ts +230 -0
  79. package/dist/components/RichTextEditor/Icons.d.ts +43 -0
  80. package/dist/components/RichTextEditor/RichTextEditor.d.ts +163 -0
  81. package/dist/components/RichTextEditor/RichTextEditorColorControl.d.ts +4 -0
  82. package/dist/components/RichTextEditor/RichTextEditorColorPickerControl.d.ts +4 -0
  83. package/dist/components/RichTextEditor/RichTextEditorContent.d.ts +4 -0
  84. package/dist/components/RichTextEditor/RichTextEditorContext.d.ts +20 -0
  85. package/dist/components/RichTextEditor/RichTextEditorControl.d.ts +22 -0
  86. package/dist/components/RichTextEditor/RichTextEditorControlsGroup.d.ts +4 -0
  87. package/dist/components/RichTextEditor/RichTextEditorFontFamilyControl.d.ts +4 -0
  88. package/dist/components/RichTextEditor/RichTextEditorLinkControl.d.ts +4 -0
  89. package/dist/components/RichTextEditor/RichTextEditorSourceCodeControl.d.ts +6 -0
  90. package/dist/components/RichTextEditor/RichTextEditorToolbar.d.ts +4 -0
  91. package/dist/components/RichTextEditor/controls.d.ts +125 -0
  92. package/dist/components/RichTextEditor/extensions.d.ts +12 -0
  93. package/dist/components/RichTextEditor/index.d.ts +15 -0
  94. package/dist/components/RichTextEditor/useRichTextEditorStyles.d.ts +28 -0
  95. package/dist/components/Skeleton/ISkeletonLoaderProps.d.ts +102 -0
  96. package/dist/components/Skeleton/SkeletonLoader.d.ts +4 -0
  97. package/dist/components/Skeleton/index.d.ts +5 -0
  98. package/dist/components/Skeleton/useSkeletonExtract.d.ts +4 -0
  99. package/dist/components/Skeleton/useSkeletonLoaderStyles.d.ts +11 -0
  100. package/dist/components/Skeleton/useSkeletonShared.d.ts +25 -0
  101. package/dist/components/Spoiler/ISpoilerProps.d.ts +30 -0
  102. package/dist/components/Spoiler/Spoiler.d.ts +4 -0
  103. package/dist/components/Spoiler/index.d.ts +3 -0
  104. package/dist/components/Spoiler/useSpoilerStyles.d.ts +13 -0
  105. package/dist/components/Spotlight/ISpotlightProps.d.ts +181 -0
  106. package/dist/components/Spotlight/Spotlight.d.ts +27 -0
  107. package/dist/components/Spotlight/SpotlightAction.d.ts +5 -0
  108. package/dist/components/Spotlight/SpotlightActionsGroup.d.ts +5 -0
  109. package/dist/components/Spotlight/SpotlightActionsList.d.ts +5 -0
  110. package/dist/components/Spotlight/SpotlightEmpty.d.ts +5 -0
  111. package/dist/components/Spotlight/SpotlightFooter.d.ts +5 -0
  112. package/dist/components/Spotlight/SpotlightRoot.d.ts +5 -0
  113. package/dist/components/Spotlight/SpotlightSearch.d.ts +5 -0
  114. package/dist/components/Spotlight/defaultSpotlightFilter.d.ts +9 -0
  115. package/dist/components/Spotlight/index.d.ts +12 -0
  116. package/dist/components/Spotlight/useSpotlight.d.ts +59 -0
  117. package/dist/components/Spotlight/useSpotlightStyles.d.ts +17 -0
  118. package/dist/components/Stepper/IStepperProps.d.ts +54 -0
  119. package/dist/components/Stepper/Stepper.d.ts +9 -0
  120. package/dist/components/Stepper/StepperCompleted.d.ts +9 -0
  121. package/dist/components/Stepper/StepperStep.d.ts +20 -0
  122. package/dist/components/Stepper/index.d.ts +3 -0
  123. package/dist/components/Stepper/useStepperStepStyles.d.ts +21 -0
  124. package/dist/components/Stepper/useStepperStyles.d.ts +11 -0
  125. package/dist/components/Timeline/ITimelineProps.d.ts +42 -0
  126. package/dist/components/Timeline/Timeline.d.ts +6 -0
  127. package/dist/components/Timeline/TimelineItem.d.ts +15 -0
  128. package/dist/components/Timeline/index.d.ts +3 -0
  129. package/dist/components/Timeline/useTimelineItemStyles.d.ts +19 -0
  130. package/dist/components/Timeline/useTimelineStyles.d.ts +9 -0
  131. package/dist/components/calendarControl/models/IAttendee.d.ts +5 -0
  132. package/dist/components/calendarControl/models/IEvents.d.ts +21 -0
  133. package/dist/{cs-B0C33FJt.cjs → cs-B_90ZpDL.cjs} +2 -2
  134. package/dist/{cs-VHWnqXwJ.js → cs-nVY__F1s.js} +93 -1
  135. package/dist/{cy-qF-aNCW-.js → cy-DcW2RMnM.js} +93 -1
  136. package/dist/{cy-BNabORao.cjs → cy-YdAkRgN7.cjs} +2 -2
  137. package/dist/{da-BmgXTEXm.cjs → da-3S6dCKx6.cjs} +2 -2
  138. package/dist/{da-rR5TnSBw.js → da-DlZaxKzd.js} +93 -1
  139. package/dist/{de-DbeDjRNp.js → de-DMQCCsxB.js} +93 -1
  140. package/dist/{de-B4w38-0d.cjs → de-cBD6cQjC.cjs} +2 -2
  141. package/dist/{el-Cgk6VsxL.cjs → el-C861pBjb.cjs} +2 -2
  142. package/dist/{el-DDeD6FiX.js → el-DWGl8fc0.js} +93 -1
  143. package/dist/{es-dvKffn6Q.js → es--B6susjn.js} +93 -1
  144. package/dist/{es-3ugMIZuA.cjs → es-7wJEQTAK.cjs} +2 -2
  145. package/dist/{et-CIIzxbat.cjs → et-BDQwGJeu.cjs} +2 -2
  146. package/dist/{et-DgZFBtK7.js → et-CNiq2LnL.js} +93 -1
  147. package/dist/{eu-C6r1_PRy.js → eu-B4UCvLGV.js} +93 -1
  148. package/dist/{eu-BUNUOJ7E.cjs → eu-Bis1mMYp.cjs} +2 -2
  149. package/dist/{fi-q6BFPHtt.cjs → fi-Bish9bFy.cjs} +2 -2
  150. package/dist/{fi-CzOKgmjK.js → fi-C1YgTvJp.js} +93 -1
  151. package/dist/{fr-D0cDkdbn.js → fr-Dn0f3XKj.js} +93 -1
  152. package/dist/{fr-BEnCZ733.cjs → fr-mNj_7F7p.cjs} +2 -2
  153. package/dist/{ga-BXyKTnJr.cjs → ga-DHGpUClX.cjs} +2 -2
  154. package/dist/{ga-0A7ndSzw.js → ga-lrKtfvqw.js} +93 -1
  155. package/dist/{gl-DR1C-hSi.cjs → gl-BaGwE_dH.cjs} +2 -2
  156. package/dist/{gl-BNwj4XAu.js → gl-Bcp6x2zx.js} +93 -1
  157. package/dist/{he-BPiZ6D5h.js → he-6cRlkGst.js} +93 -1
  158. package/dist/{he-OD1Ex2Fw.cjs → he-CyBuj0mX.cjs} +2 -2
  159. package/dist/{hi-Dt9FvBmh.cjs → hi-C9Y--qfd.cjs} +2 -2
  160. package/dist/{hi-CSgtp9Yg.js → hi-sWnw2IKq.js} +93 -1
  161. package/dist/hooks/useLocalizationStrings.d.ts +10 -0
  162. package/dist/{hr-CDSSj52Q.js → hr-DVYuTFrR.js} +93 -1
  163. package/dist/{hr-DMzwNhar.cjs → hr-_DB2jbdD.cjs} +2 -2
  164. package/dist/{hu-Bc-rChfV.cjs → hu-B6P_13vr.cjs} +2 -2
  165. package/dist/{hu-TDJYiDOB.js → hu-Ds35ELag.js} +93 -1
  166. package/dist/{id-CwndN9HH.cjs → id-CD6_OeAS.cjs} +2 -2
  167. package/dist/{id-B3IF5pnh.js → id-D3-zrJWX.js} +93 -1
  168. package/dist/index.cjs +48 -33
  169. package/dist/index.d.ts +14 -0
  170. package/dist/index.js +10631 -4137
  171. package/dist/{it-BLET318M.js → it-7v9Dp1d5.js} +93 -1
  172. package/dist/{it-DaYS5Vil.cjs → it-BqWJuJRG.cjs} +2 -2
  173. package/dist/{ja-NxwXLaKV.js → ja-HEhZtJlu.js} +93 -1
  174. package/dist/{ja-BYA2LXHy.cjs → ja-_IB67CHC.cjs} +2 -2
  175. package/dist/{kk-Ctrvuqlz.cjs → kk-1zP-M5hA.cjs} +2 -2
  176. package/dist/{kk-CceJcjtl.js → kk-vjMXRcfC.js} +93 -1
  177. package/dist/{ko-evIcpTG8.cjs → ko-Bh_npcwe.cjs} +2 -2
  178. package/dist/{ko-cS_OE967.js → ko-k4Pa7puV.js} +93 -1
  179. package/dist/localization/ILibraryStrings.d.ts +132 -0
  180. package/dist/localization/index.d.ts +2 -2
  181. package/dist/{lt-CYTLGgh6.cjs → lt-Bcs_RvUC.cjs} +2 -2
  182. package/dist/{lt-CZ-kk_5b.js → lt-DiJ0TBtG.js} +93 -1
  183. package/dist/{lv-COjitD3w.cjs → lv-DXbttzfD.cjs} +2 -2
  184. package/dist/{lv-BTvPpEjc.js → lv-Dsam0ieq.js} +93 -1
  185. package/dist/{mk-CSSyI3El.js → mk-6gVlhUMj.js} +93 -1
  186. package/dist/{mk-B-LF5gVL.cjs → mk-CwexdV8N.cjs} +2 -2
  187. package/dist/{ms-CzEvkib0.cjs → ms-DbohV4fa.cjs} +2 -2
  188. package/dist/{ms-Dz5JnKJ1.js → ms-LR8UEBWu.js} +93 -1
  189. package/dist/{nb-DkgTg1et.js → nb-BCuhLUFv.js} +93 -1
  190. package/dist/{nb-B1KWSX94.cjs → nb-XSnogBcy.cjs} +2 -2
  191. package/dist/{nl-knWqo2aX.cjs → nl-C3fB4nMe.cjs} +2 -2
  192. package/dist/{nl-CQ5eoxw2.js → nl-Cjbk_uDE.js} +93 -1
  193. package/dist/{pl-BQJfOizT.js → pl-3SZu8o4v.js} +93 -1
  194. package/dist/{pl-Ce6dq53t.cjs → pl-BJHabrpe.cjs} +2 -2
  195. package/dist/providers.cjs +1 -1
  196. package/dist/providers.js +1 -1
  197. package/dist/{pt-b0p7DoD0.js → pt-BRvCnjwa.js} +93 -1
  198. package/dist/{pt-BVqTnGkF.cjs → pt-BqRRasV7.cjs} +2 -2
  199. package/dist/{ro-sbBtUVJV.js → ro-B051tdWj.js} +93 -1
  200. package/dist/{ro-DqJMfhmX.cjs → ro-BCq9yIk8.cjs} +2 -2
  201. package/dist/{ru-Dm2NAQyK.cjs → ru-B-TiRA2D.cjs} +2 -2
  202. package/dist/{ru-ofzbka6D.js → ru-wGNmtZwA.js} +93 -1
  203. package/dist/{sk-BtpdNCPC.js → sk-BEUsTaCT.js} +93 -1
  204. package/dist/{sk-BNe6CHG-.cjs → sk-Btf7EoeH.cjs} +2 -2
  205. package/dist/{sl-BKmEUGyu.cjs → sl-Cs0S-Rru.cjs} +2 -2
  206. package/dist/{sl-B4GsKLu6.js → sl-Dt-Wix4R.js} +93 -1
  207. package/dist/{sr-C76YVpkQ.js → sr-Cj6FjoPV.js} +93 -1
  208. package/dist/{sr-Dwya5lwF.cjs → sr-Jxn52mZC.cjs} +2 -2
  209. package/dist/{sv-PesX57cX.js → sv-C5PBTvZZ.js} +93 -1
  210. package/dist/{sv-BGL2G9Vm.cjs → sv-DqwVwzYH.cjs} +2 -2
  211. package/dist/{th-DEv6shFI.cjs → th-CnqYsyp5.cjs} +2 -2
  212. package/dist/{th-CbCNOBnR.js → th-DEMLnNto.js} +93 -1
  213. package/dist/{tr-B0TPxXKS.js → tr-7wlGJ97W.js} +93 -1
  214. package/dist/{tr-BB-QonGE.cjs → tr-BiSE3U_v.cjs} +2 -2
  215. package/dist/{uk-_9cNoBNe.js → uk-B2JY5Ka3.js} +93 -1
  216. package/dist/{uk-B-3fLKpR.cjs → uk-YsR97h-O.cjs} +2 -2
  217. package/dist/{vi-Dx6pJ0ir.cjs → vi-BqlBS0CX.cjs} +2 -2
  218. package/dist/{vi-B8SfqLW6.js → vi-By1JUTa6.js} +93 -1
  219. package/dist/{zh-DD0ml2HG.cjs → zh-C3amwoRq.cjs} +2 -2
  220. package/dist/{zh-DqHnbp6B.js → zh-SZ0W4ZGV.js} +93 -1
  221. package/package.json +20 -1
  222. package/dist/LocalizationProvider-BbfcY9z3.cjs +0 -2
package/dist/index.cjs CHANGED
@@ -1,18 +1,18 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./LocalizationProvider-BbfcY9z3.cjs`);let t=require(`react`);t=e.E(t);let n=require(`react/jsx-runtime`),r=require(`date-fns-tz`),i=require(`@fluentui/react-components`),a=require(`date-fns`),o=require(`date-fns/locale`),s=require(`lodash`),c=require(`@juggle/resize-observer`),l=require(`@emotion/css`),u=require(`embla-carousel-react`);u=e.E(u);let d=require(`@fluentui/react-icons`),f=require(`react-dom`);f=e.E(f);let p=require(`@iconify/react`),m=require(`uuid`),h=require(`@fluentui/react-calendar-compat`),g=require(`@emotion/react`),_=require(`@emotion/react/jsx-runtime`),v=require(`@fluentui-contrib/react-data-grid-react-window`),y=require(`react-player`);y=e.E(y);let b=require(`react-map-gl/maplibre`);b=e.E(b);let x=require(`adaptivecards`);x=e.E(x);let S=require(`nano-css`),C=require(`markdown-it`);C=e.E(C);let w=require(`react-dom/client`),T=require(`adaptivecards/lib/card-elements`),E=require(`adaptivecards/lib/enums`),D=require(`@fluentui/react-datepicker-compat`),O=require(`@fluentui/react-timepicker-compat`),k=require(`adaptivecards-templating`),A=require(`textarea-caret`);A=e.E(A);let j=require(`@fluentui-contrib/react-chat`),M=require(`dompurify`);M=e.E(M);let N=require(`mermaid`);N=e.E(N);let ee=require(`@fluentui/react-motion-components-preview`);var P=function(e){return e[e.XXXLarge=1900]=`XXXLarge`,e[e.ExtraExtraLarge=1400]=`ExtraExtraLarge`,e[e.ExtraLarge=1200]=`ExtraLarge`,e[e.Large=992]=`Large`,e[e.Medium=768]=`Medium`,e[e.Small=576]=`Small`,e[e.ExtraSmall=320]=`ExtraSmall`,e}({}),F=function(e){return e.INFO=`info`,e.ERROR=`error`,e.SUCCESS=`success`,e}({}),I=(0,t.createContext)(void 0),L=({context:e,children:t})=>(0,n.jsx)(I.Provider,{value:e,children:t}),R=()=>(0,t.useContext)(I),z=()=>{let t=R()?.loggingProvider;return{log:(n,r=e.T.Info,i)=>{t?t.log(n,r,i):console.log(n,i)},error:(e,n,r)=>{t?t.error(e,n,r):console.error(e,n,r)},warn:(e,n)=>{t?t.warn(e,n):console.warn(e,n)},info:(e,n)=>{t?t.info(e,n):console.info(e,n)},verbose:(e,n)=>{t?t.verbose(e,n):console.debug(e,n)},LogLevel:e.T,ErrorType:e.w}},te=()=>{let e=R()?.graphClient,{warn:n,error:r}=z();return{getUser:(0,t.useCallback)(async t=>{if(!e)return n(`Graph client not available`),null;try{return await e.get(`/users/${t}`)}catch(e){return r(`Error fetching user:`,e instanceof Error?e:void 0),null}},[e]),getCurrentUser:(0,t.useCallback)(async()=>{if(!e)return n(`Graph client not available`),null;try{return await e.get(`/me`)}catch(e){return r(`Error fetching current user:`,e instanceof Error?e:void 0),null}},[e]),searchUsers:(0,t.useCallback)(async(t,i=10)=>{if(!e)return n(`Graph client not available`),[];try{return(await e.get(`/users?$search="displayName:${t}" OR "mail:${t}"&$top=${i}`)).value||[]}catch(e){return r(`Error searching users:`,e instanceof Error?e:void 0),[]}},[e]),getUserPhoto:(0,t.useCallback)(async t=>{if(!e)return n(`Graph client not available`),null;try{let n=await e.get(`/users/${t}/photo/$value`);return URL.createObjectURL(n)}catch(e){return r(`Error fetching user photo:`,e instanceof Error?e:void 0),null}},[e]),graphClient:e}},ne=()=>{let e=R()?.storageProvider,{warn:n,error:r}=z();return{getCachedData:(0,t.useCallback)(async t=>{if(!e){n(`Storage provider not available`);return}try{return await e.get(t)}catch(e){r(`Error reading from cache:`,e instanceof Error?e:void 0);return}},[e]),setCachedData:(0,t.useCallback)(async(t,i,a)=>{if(!e){n(`Storage provider not available`);return}try{await e.set(t,i,a)}catch(e){r(`Error writing to cache:`,e instanceof Error?e:void 0)}},[e]),removeCachedData:(0,t.useCallback)(async t=>{if(!e){n(`Storage provider not available`);return}try{await e.remove(t)}catch(e){r(`Error removing from cache:`,e instanceof Error?e:void 0)}},[e]),clearCache:(0,t.useCallback)(async()=>{if(!e){n(`Storage provider not available`);return}try{await e.clear()}catch(e){r(`Error clearing cache:`,e instanceof Error?e:void 0)}},[e])}},re=(e,n,r=!0)=>{let[i,a]=(0,t.useState)(!1),o=(0,t.useRef)(null),s=(0,t.useRef)(e);(0,t.useEffect)(()=>{s.current=e},[e]);let c=(0,t.useCallback)(()=>{o.current||=(a(!0),r&&s.current(),setInterval(()=>{s.current()},n))},[n,r]),l=(0,t.useCallback)(()=>{o.current&&(clearInterval(o.current),o.current=null,a(!1))},[]);return(0,t.useEffect)(()=>()=>{l()},[l]),{startPolling:c,stopPolling:l,isPolling:i}},ie=()=>{let e=R(),n=(0,t.useMemo)(()=>Intl.DateTimeFormat().resolvedOptions().timeZone,[]);return{timeZone:n,convertToUserTimeZone:(e,t)=>(0,r.toZonedTime)(e,t||n),convertFromUserTimeZone:(e,t)=>(0,r.fromZonedTime)(e,t||n),formatInTimeZone:(e,t,i)=>{let a=i||n;return(0,r.format)((0,r.toZonedTime)(e,a),t,{timeZone:a})},getUserTimeZone:()=>(e?.pageContext?.user?.preferUserTimeZone,n)}},ae=()=>{let{verbose:e,error:n}=z();return{parseSSEResponse:(0,t.useCallback)((t,r={})=>{let{stripMarkdown:i=!0,debug:a=!1}=r;if(!t||typeof t!=`string`)return{data:void 0,rawText:``,isJson:!1,error:`Invalid input: rawResponse must be a non-empty string`};try{a&&(e(`[useAIAssistantParser] Raw SSE input (full):`,t),e(`[useAIAssistantParser] Raw SSE length:`,t.length));let n=t.split(`
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./LocalizationProvider-CJ2mjvH-.cjs`);let t=require(`react`);t=e.k(t);let n=require(`react/jsx-runtime`),r=require(`date-fns-tz`),i=require(`@fluentui/react-components`),a=require(`date-fns`),o=require(`date-fns/locale`),s=require(`lodash`),c=require(`@juggle/resize-observer`),l=require(`@emotion/css`),u=require(`embla-carousel-react`);u=e.k(u);let d=require(`@fluentui/react-icons`),f=require(`react-dom`);f=e.k(f);let p=require(`@iconify/react`),m=require(`uuid`),h=require(`@fluentui/react-calendar-compat`),g=require(`jotai`),_=require(`@emotion/react`),v=require(`@emotion/react/jsx-runtime`),y=require(`react-dropzone`),b=require(`@tiptap/react`),x=require(`@tiptap/extension-link`);x=e.k(x);let S=require(`@fluentui-contrib/react-data-grid-react-window`),C=require(`react-player`);C=e.k(C);let w=require(`react-map-gl/maplibre`);w=e.k(w);let T=require(`adaptivecards`);T=e.k(T);let E=require(`nano-css`),D=require(`markdown-it`);D=e.k(D);let O=require(`react-dom/client`),k=require(`adaptivecards/lib/card-elements`),A=require(`adaptivecards/lib/enums`),j=require(`@fluentui/react-datepicker-compat`),M=require(`@fluentui/react-timepicker-compat`),N=require(`adaptivecards-templating`),P=require(`textarea-caret`);P=e.k(P);let F=require(`@fluentui-contrib/react-chat`),I=require(`dompurify`);I=e.k(I);let L=require(`mermaid`);L=e.k(L);let R=require(`@fluentui/react-motion-components-preview`);var z=function(e){return e[e.XXXLarge=1900]=`XXXLarge`,e[e.ExtraExtraLarge=1400]=`ExtraExtraLarge`,e[e.ExtraLarge=1200]=`ExtraLarge`,e[e.Large=992]=`Large`,e[e.Medium=768]=`Medium`,e[e.Small=576]=`Small`,e[e.ExtraSmall=320]=`ExtraSmall`,e}({}),ee=function(e){return e.INFO=`info`,e.ERROR=`error`,e.SUCCESS=`success`,e}({}),te=(0,t.createContext)(void 0),ne=({context:e,children:t})=>(0,n.jsx)(te.Provider,{value:e,children:t}),re=()=>(0,t.useContext)(te),B=()=>{let t=re()?.loggingProvider;return{log:(n,r=e.O.Info,i)=>{t?t.log(n,r,i):console.log(n,i)},error:(e,n,r)=>{t?t.error(e,n,r):console.error(e,n,r)},warn:(e,n)=>{t?t.warn(e,n):console.warn(e,n)},info:(e,n)=>{t?t.info(e,n):console.info(e,n)},verbose:(e,n)=>{t?t.verbose(e,n):console.debug(e,n)},LogLevel:e.O,ErrorType:e.D}},ie=()=>{let e=re()?.graphClient,{warn:n,error:r}=B();return{getUser:(0,t.useCallback)(async t=>{if(!e)return n(`Graph client not available`),null;try{return await e.get(`/users/${t}`)}catch(e){return r(`Error fetching user:`,e instanceof Error?e:void 0),null}},[e]),getCurrentUser:(0,t.useCallback)(async()=>{if(!e)return n(`Graph client not available`),null;try{return await e.get(`/me`)}catch(e){return r(`Error fetching current user:`,e instanceof Error?e:void 0),null}},[e]),searchUsers:(0,t.useCallback)(async(t,i=10)=>{if(!e)return n(`Graph client not available`),[];try{return(await e.get(`/users?$search="displayName:${t}" OR "mail:${t}"&$top=${i}`)).value||[]}catch(e){return r(`Error searching users:`,e instanceof Error?e:void 0),[]}},[e]),getUserPhoto:(0,t.useCallback)(async t=>{if(!e)return n(`Graph client not available`),null;try{let n=await e.get(`/users/${t}/photo/$value`);return URL.createObjectURL(n)}catch(e){return r(`Error fetching user photo:`,e instanceof Error?e:void 0),null}},[e]),graphClient:e}},ae=()=>{let e=re()?.storageProvider,{warn:n,error:r}=B();return{getCachedData:(0,t.useCallback)(async t=>{if(!e){n(`Storage provider not available`);return}try{return await e.get(t)}catch(e){r(`Error reading from cache:`,e instanceof Error?e:void 0);return}},[e]),setCachedData:(0,t.useCallback)(async(t,i,a)=>{if(!e){n(`Storage provider not available`);return}try{await e.set(t,i,a)}catch(e){r(`Error writing to cache:`,e instanceof Error?e:void 0)}},[e]),removeCachedData:(0,t.useCallback)(async t=>{if(!e){n(`Storage provider not available`);return}try{await e.remove(t)}catch(e){r(`Error removing from cache:`,e instanceof Error?e:void 0)}},[e]),clearCache:(0,t.useCallback)(async()=>{if(!e){n(`Storage provider not available`);return}try{await e.clear()}catch(e){r(`Error clearing cache:`,e instanceof Error?e:void 0)}},[e])}},oe=(e,n,r=!0)=>{let[i,a]=(0,t.useState)(!1),o=(0,t.useRef)(null),s=(0,t.useRef)(e);(0,t.useEffect)(()=>{s.current=e},[e]);let c=(0,t.useCallback)(()=>{o.current||=(a(!0),r&&s.current(),setInterval(()=>{s.current()},n))},[n,r]),l=(0,t.useCallback)(()=>{o.current&&(clearInterval(o.current),o.current=null,a(!1))},[]);return(0,t.useEffect)(()=>()=>{l()},[l]),{startPolling:c,stopPolling:l,isPolling:i}},se=()=>{let e=re(),n=(0,t.useMemo)(()=>Intl.DateTimeFormat().resolvedOptions().timeZone,[]);return{timeZone:n,convertToUserTimeZone:(e,t)=>(0,r.toZonedTime)(e,t||n),convertFromUserTimeZone:(e,t)=>(0,r.fromZonedTime)(e,t||n),formatInTimeZone:(e,t,i)=>{let a=i||n;return(0,r.format)((0,r.toZonedTime)(e,a),t,{timeZone:a})},getUserTimeZone:()=>(e?.pageContext?.user?.preferUserTimeZone,n)}},ce=()=>{let{verbose:e,error:n}=B();return{parseSSEResponse:(0,t.useCallback)((t,r={})=>{let{stripMarkdown:i=!0,debug:a=!1}=r;if(!t||typeof t!=`string`)return{data:void 0,rawText:``,isJson:!1,error:`Invalid input: rawResponse must be a non-empty string`};try{a&&(e(`[useAIAssistantParser] Raw SSE input (full):`,t),e(`[useAIAssistantParser] Raw SSE length:`,t.length));let n=t.split(`
2
2
  `),r=[],o=!1,s=``,c=!1;for(let t=0;t<n.length;t++){let i=n[t];if(a&&t<20&&e(`[useAIAssistantParser] Line ${t}:`,JSON.stringify(i)),i.startsWith(`event: done`)){s.trim()&&(r.push(s.trim()),s=``);break}if(i.startsWith(`event:`)&&!i.startsWith(`event: done`)){s.trim()&&(r.push(s.trim()),s=``),c=!1;continue}if(i.startsWith(`data: `)){let e=i.substring(6);o=!0,c&&s?s+=`
3
3
  `+e:(s=e,c=!0)}else if(i.trim()===``&&!c)continue;else if(c&&i.trim()!==``)s+=`
4
4
  `+i;else if(i.trim()===``&&c){let e=t+1;if(e<n.length){let t=n[e];t.startsWith(`event:`)||e===n.length-1||t.trim()===``?(s.trim()&&(r.push(s.trim()),s=``),c=!1):s+=`
5
5
  `}}}s.trim()&&r.push(s.trim()),a&&(e(`[useAIAssistantParser] Found ${r.length} data blocks`),r.forEach((t,n)=>{e(`[useAIAssistantParser] Block ${n} (length: ${t.length}):`,t)}));let l,u=[];for(let t of r){let n=t.trim();i&&(n=n.replace(/^```json\s*/i,``).replace(/```\s*$/,``),n=n.trim());try{let t=JSON.parse(n);if(typeof t==`object`&&t){let r=Object.keys(t),i=[`status`,`requestId`,`tokenCount`,`durationMs`];if(r.length>0&&r.every(e=>i.includes(e))){a&&e(`[useAIAssistantParser] Skipping metadata/status-only JSON block:`,n);continue}}l=t,a&&e(`[useAIAssistantParser] Successfully parsed data block as JSON`)}catch{n.match(/^\s*\{\s*["']?status["']?\s*:\s*["']?\w+["']?\s*\}\s*$/)?a&&e(`[useAIAssistantParser] Skipping status-like text block:`,n):(u.push(n),a&&e(`[useAIAssistantParser] Data block is text, adding to text blocks`))}}let d=u.filter(e=>e.trim().length>0).join(`
6
6
  `);return a&&(e(`[useAIAssistantParser] Text blocks collected:`,u.length),e(`[useAIAssistantParser] Filtered text blocks:`,u.filter(e=>e.trim().length>0).length),e(`[useAIAssistantParser] Final combined text length:`,d.length),e(`[useAIAssistantParser] Final combined text:`,d)),!o||r.length===0?{data:void 0,rawText:``,isJson:!1,error:`No data found in SSE response. The server may have returned only status messages without actual data.`}:l===void 0?d?(a&&e(`[useAIAssistantParser] No valid JSON found, returning as text`),{data:void 0,rawText:d,isJson:!1}):{data:void 0,rawText:r.join(`
7
- `),isJson:!1,error:`Could not parse any data blocks as valid JSON`}:(a&&e(`[useAIAssistantParser] Returning last valid JSON`),{data:l,rawText:d,isJson:!0})}catch(e){return a&&n(`[useAIAssistantParser] SSE parsing error:`,e instanceof Error?e:void 0),{data:void 0,rawText:t,isJson:!1,error:e instanceof Error?e.message:`Failed to parse SSE response`}}},[])}},oe=e=>{let[n,r]=(0,t.useState)(``),[i,a]=(0,t.useState)(!1),[o,s]=(0,t.useState)(null),c=(0,t.useRef)(null),{parseSSEResponse:l}=ae(),{warn:u}=z(),d=(0,t.useRef)(e.conversationId||crypto.randomUUID());return{response:n,isLoading:i,error:o,sendMessage:(0,t.useCallback)(async(t,n)=>{r(``),s(null),a(!0);let i=new AbortController;c.current=i;let o=e.endpoint||`http://localhost:7071/api/EventAssistant`;o.endsWith(`/`)&&(o=o.slice(0,-1));try{let a=t.input;t.history&&t.history.length>0&&(a=`${t.history.join(`
7
+ `),isJson:!1,error:`Could not parse any data blocks as valid JSON`}:(a&&e(`[useAIAssistantParser] Returning last valid JSON`),{data:l,rawText:d,isJson:!0})}catch(e){return a&&n(`[useAIAssistantParser] SSE parsing error:`,e instanceof Error?e:void 0),{data:void 0,rawText:t,isJson:!1,error:e instanceof Error?e.message:`Failed to parse SSE response`}}},[])}},le=e=>{let[n,r]=(0,t.useState)(``),[i,a]=(0,t.useState)(!1),[o,s]=(0,t.useState)(null),c=(0,t.useRef)(null),{parseSSEResponse:l}=ce(),{warn:u}=B(),d=(0,t.useRef)(e.conversationId||crypto.randomUUID());return{response:n,isLoading:i,error:o,sendMessage:(0,t.useCallback)(async(t,n)=>{r(``),s(null),a(!0);let i=new AbortController;c.current=i;let o=e.endpoint||`http://localhost:7071/api/EventAssistant`;o.endsWith(`/`)&&(o=o.slice(0,-1));try{let a=t.input;t.history&&t.history.length>0&&(a=`${t.history.join(`
8
8
 
9
- `)}\n\n${t.input}`);let s={input:a,instructions:t.instructions,mode:void 0,conversationId:d.current,mcpServers:t.mcpServers||e.mcpServers},c=await fetch(o,{method:`POST`,headers:{"Content-Type":`application/json`,Accept:`text/event-stream`,...e.requestHeaders&&Object.keys(e.requestHeaders).length>0?e.requestHeaders:{}},body:JSON.stringify(s),signal:i.signal});if(!c.ok){let e=``;try{let t=await c.text();t&&(e=` - ${t}`)}catch{}throw Error(`HTTP error! status: ${c.status}${e}`)}let f=c.body?.getReader();if(!f)throw Error(`No response body`);let p=new TextDecoder(`utf-8`),m=!1,h=``;for(;!m;){let{value:e,done:t}=await f.read();if(m=t,e){let t=p.decode(e,{stream:!0});h+=t}}let g=l(h),_=g.rawText||``;return r(_),n&&n(_),g.error&&u(`[useAIAssistant] Parser warning:`,g.error),_}catch(e){let t=`Error occurred while processing your request.`;throw e instanceof Error&&(t=e.name===`AbortError`?`Request was cancelled.`: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),s(t),Error(t)}finally{a(!1)}},[e.endpoint,e.mcpServers,l]),cancelRequest:(0,t.useCallback)(()=>{c.current&&c.current.abort()},[]),resetConversation:(0,t.useCallback)(()=>{d.current=crypto.randomUUID(),r(``),s(null)},[]),conversationId:d.current}},se=new Set;function ce(e){e.fontFaces.forEach(t=>{let n=`${e.name}|${t.fontWeight}|${t.fontStyle}`;if(se.has(n))return;let r=t.url.split(`.`).pop()?.split(`?`)[0]?.toLowerCase(),i=r&&{woff2:`woff2`,woff:`woff`,ttf:`truetype`,otf:`opentype`,eot:`embedded-opentype`}[r]||`woff2`,a=`@font-face {
9
+ `)}\n\n${t.input}`);let s={input:a,instructions:t.instructions,mode:void 0,conversationId:d.current,mcpServers:t.mcpServers||e.mcpServers},c=await fetch(o,{method:`POST`,headers:{"Content-Type":`application/json`,Accept:`text/event-stream`,...e.requestHeaders&&Object.keys(e.requestHeaders).length>0?e.requestHeaders:{}},body:JSON.stringify(s),signal:i.signal});if(!c.ok){let e=``;try{let t=await c.text();t&&(e=` - ${t}`)}catch{}throw Error(`HTTP error! status: ${c.status}${e}`)}let f=c.body?.getReader();if(!f)throw Error(`No response body`);let p=new TextDecoder(`utf-8`),m=!1,h=``;for(;!m;){let{value:e,done:t}=await f.read();if(m=t,e){let t=p.decode(e,{stream:!0});h+=t}}let g=l(h),_=g.rawText||``;return r(_),n&&n(_),g.error&&u(`[useAIAssistant] Parser warning:`,g.error),_}catch(e){let t=`Error occurred while processing your request.`;throw e instanceof Error&&(t=e.name===`AbortError`?`Request was cancelled.`: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),s(t),Error(t)}finally{a(!1)}},[e.endpoint,e.mcpServers,l]),cancelRequest:(0,t.useCallback)(()=>{c.current&&c.current.abort()},[]),resetConversation:(0,t.useCallback)(()=>{d.current=crypto.randomUUID(),r(``),s(null)},[]),conversationId:d.current}},ue=new Set;function de(e){e.fontFaces.forEach(t=>{let n=`${e.name}|${t.fontWeight}|${t.fontStyle}`;if(ue.has(n))return;let r=t.url.split(`.`).pop()?.split(`?`)[0]?.toLowerCase(),i=r&&{woff2:`woff2`,woff:`woff`,ttf:`truetype`,otf:`opentype`,eot:`embedded-opentype`}[r]||`woff2`,a=`@font-face {
10
10
  font-family: "${e.name}";
11
11
  src: url("${t.url}") format("${i}");
12
12
  font-weight: ${t.fontWeight};
13
13
  font-style: ${t.fontStyle};
14
14
  font-display: swap;
15
- }`,o=document.createElement(`style`);o.setAttribute(`data-brand-font`,e.name),o.textContent=a,document.head.appendChild(o),se.add(n)})}function le(e){if(e){if(e.d)return e.d;if(e.BrandFontLibraryUrl||e.SiteUrl)return e}}var ue=new Set([`woff2`,`woff`,`ttf`,`otf`,`eot`]),de={thin:100,hairline:100,extralight:200,ultralight:200,light:300,regular:400,normal:400,medium:500,semibold:600,demibold:600,bold:700,extrabold:800,ultrabold:800,black:900,heavy:900};function fe(e,t){let n=(e?.trim()||t.replace(/\.[^.]+$/,``)).toLowerCase(),r=n.includes(`italic`)||n.includes(`oblique`),i=n.replace(/italic|oblique/gi,``).trim().replace(/[\s_-]+/g,``),a=de[i]??400;if(a===400&&i!==`regular`&&i!==`normal`&&i!==``){for(let[e,t]of Object.entries(de))if(i.includes(e)){a=t;break}}return{fontWeight:a,fontStyle:r?`italic`:`normal`}}var pe=`_SPFontFamilyName`,me=`_SPFontFaces`,he=`_spFontVisible`,ge=[{id:`fluent-base`,name:`'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif`,isDefault:!0,fontFaces:[]},{id:`fluent-monospace`,name:`'Cascadia Code', 'Cascadia Mono', Consolas, 'Courier New', monospace`,isDefault:!1,fontFaces:[]},{id:`fluent-numeric`,name:`'Bahnschrift', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif`,isDefault:!1,fontFaces:[]}],_e=(e={})=>{let{siteUrl:n,disabled:r,fonts:i}=e,a=R(),{warn:o,error:s}=z(),[c,l]=(0,t.useState)(i??[]),[u,d]=(0,t.useState)(!r&&!i),[f,p]=(0,t.useState)(),[m,h]=(0,t.useState)(!1),g=(0,t.useRef)(!1),_=(0,t.useCallback)(async()=>{if(r)return;let e=n??a?.pageContext?.web?.absoluteUrl;if(!e){let e=`useBrandCenterFonts: no siteUrl provided and pageContext.web.absoluteUrl is not available.`;o(e),p(e),d(!1);return}d(!0),p(void 0);try{let t=`${e}/_api/SP.BrandCenter/Configuration`,n=async t=>{if(a?.graphClient)return a.graphClient.get(t);let n={Accept:`application/json;odata=nometadata`};a?.authProvider&&(n.Authorization=`Bearer ${await a.authProvider.getAccessToken([`${new URL(e).origin}/.default`])}`);let r=await fetch(t,{credentials:a?.authProvider?void 0:`include`,headers:n});if(!r.ok)throw Error(`SharePoint REST returned ${r.status}: ${t}`);return await r.json()},r=le(await n(t)),i=r?.BrandFontLibraryUrl,s=typeof i==`string`?i:i?.DecodedUrl,c=r?.IsBrandCenterSiteFeatureEnabled===!0||String(r?.IsBrandCenterSiteFeatureEnabled).toLowerCase()===`true`;if(!s||!c){o(`useBrandCenterFonts: Brand Center is not configured for this tenant — using Fluent UI 9 defaults.`),h(!1),l(ge),d(!1);return}let u=r?.SiteUrl,f=typeof u==`string`?u:u?.DecodedUrl??e,p=new URL(f).origin,m=s.startsWith(`http`)?new URL(s).pathname:s,g=await n(`${f}/_api/web/GetList('${encodeURIComponent(m)}')/items?$select=Id,FileLeafRef,FileRef,${pe},${me},${he},File/Name,File/ServerRelativeUrl&$expand=File&$top=5000`),_=g.d?.results??g.value??[],v=new Map;for(let e of _){let t=e.File?.Name??e.FileLeafRef??``,n=t.split(`.`).pop()?.toLowerCase()??``;if(!ue.has(n)||e[he]===!1)continue;let r=e[pe]??t.replace(/\.[^.]+$/,``).split(/[-_]/)[0]??t,i=v.get(r);i?i.items.push(e):v.set(r,{items:[e]})}let y=[];for(let[e,t]of v){let n=[];for(let e of t.items){let t=e.File?.Name??e.FileLeafRef??``,r=e.File?.ServerRelativeUrl??e.FileRef??``;if(!r)continue;let i=e[me],{fontWeight:a,fontStyle:o}=fe(i,t),s=`${p}${r}`;n.push({url:s,fontWeight:a,fontStyle:o})}n.length>0&&y.push({id:e,name:e,isDefault:!1,fontFaces:n})}y.length>0&&!y.some(e=>e.isDefault)&&(y[0].isDefault=!0),y.forEach(ce),l(y),h(!0)}catch(e){let t=e instanceof Error?e.message:String(e);s(`useBrandCenterFonts: failed to load fonts — falling back to Fluent UI 9 defaults`,e instanceof Error?e:void 0),p(t),h(!1),l(ge)}finally{d(!1)}},[r,n,a?.pageContext?.web?.absoluteUrl,a?.graphClient,a?.authProvider]);(0,t.useEffect)(()=>{if(i){i.forEach(ce);return}!g.current&&!r&&(g.current=!0,_())},[_,i,r]);let v=c.find(e=>e.isDefault);return{fonts:c,fontFamilyNames:c.map(e=>e.name),defaultFont:v,loading:u,error:f,isBrandCenterAvailable:m,refresh:_}},B=()=>{let e=t.useCallback((e,t)=>`${e}${t}`,[]),n=t.useCallback(e=>{if(!e)return!1;try{return!!new URL(e)}catch{return!1}},[]),r=e=>e.charAt(0)===`/`&&e.charAt(1)===`/`?e.substring(1,e.length):e,a=t.useCallback(e=>e?new RegExp(/^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$/).test(e)===!0:!1,[]),o=t.useCallback(e=>{if(!e)return``;let t=e.split(`/`);return t[t.length-1]},[]),s=t.useCallback(e=>{let t=window.location.hostname,n=`https://${t}`;if(e.indexOf(`${n}/sites/`)>-1||e.indexOf(`${n}/teams/`)>-1){let r=e.split(t)[1].split(`/`)[2],i=`https://${t}/sites/${r}`;return e.indexOf(`${n}/teams/`)>-1&&(i=`https://${t}/teams/${r}`),i}return n},[]),c=t.useCallback(e=>{let t=e.split(window.location.hostname)[1];return t=r(t),t},[]),l=t.useCallback(e=>encodeURIComponent(e.replace(/[%]/g,`%25`)).replace(/[']/g,`%27%27`).replace(/[&]/g,`%26`).replace(/[#]/g,`%23`).replace(/[?]/g,`%3F`).replace(/[/]/g,`%2F`).replace(/[+]/g,`%2B`),[]),u=t.useCallback(e=>e==null?!1:Object.prototype.hasOwnProperty.call(e,`extraSmall`)||Object.prototype.hasOwnProperty.call(e,`small`)||Object.prototype.hasOwnProperty.call(e,`medium`)||Object.prototype.hasOwnProperty.call(e,`large`)||Object.prototype.hasOwnProperty.call(e,`extraLarge`),[]),d=t.useCallback((e,t)=>e[t.toString().toLowerCase()],[]),f=t.useCallback(e=>e>=P.XXXLarge?`XXXLarge`:e>=P.ExtraExtraLarge?`ExtraExtraLarge`:e>=P.ExtraLarge?`ExtraLarge`:e>=Number(P.Large)?`Large`:e>=Number(P.Medium)?`Medium`:e>=Number(P.Small)?`Small`:`ExtraSmall`,[]),p=t.useCallback((e,t)=>{let n=f(t),r={ExtraSmall:`xs`,Small:`s`,Medium:`m`,Large:`l`,ExtraLarge:`xl`,ExtraExtraLarge:`xxl`},i=e;return u(e)&&(i=d(e,n??`Medium`)||r[n]),i},[f,u,d]),m=t.useCallback((e,t,n)=>{if(!e)return`none`;if(typeof e==`string`&&(/^\d+px$/.test(e)||/^\d+%$/.test(e)))return e;let r=n,a={padding:`spacingHorizontal`,vertical:`spacingVertical`,horizontal:`spacingHorizontal`};switch(p(e,t)){case`none`:return i.tokens[`${a[r]}None`];case`xxs`:return i.tokens[`${a[r]}XXS`];case`xs`:return i.tokens[`${a[r]}XS`];case`sNudge`:return i.tokens[`${a[r]}SNudge`];case`s`:return i.tokens[`${a[r]}S`];case`mNudge`:return i.tokens[`${a[r]}MNudge`];case`m`:return i.tokens[`${a[r]}M`];case`l`:return i.tokens[`${a[r]}L`];case`xl`:return i.tokens[`${a[r]}XL`];case`xxl`:return i.tokens[`${a[r]}XXL`];case`xxxl`:return i.tokens[`${a[r]}XXXL`];default:return i.tokens[`${a[r]}M`]}},[p]);return{getCacheKey:e,validateUrl:n,trimBeginDoubleSlash:r,isValidGUID:a,getPageNameFromUrl:o,getSPSiteAbsoluteUrl:s,getFileServerRelativeUrlFromAbsoluteUrl:c,encodeRestUrl:l,getSpacing:m,getCurrentDevice:f,getBaseStyles:t.useCallback((e,t,n)=>{let{verticalSpacing:r,horizontalSpacing:i,paddingLeft:a,paddingRight:o,paddingBottom:s,background:c,width:l,maxWidth:u,height:d,maxHeight:f,marginLeft:p,marginRight:h,marginTop:g,marginBottom:_,paddingTop:v,padding:y,margin:b,styles:x}=e,S=m(v,t,`padding`),C=m(a,t,`padding`),w=m(o,t,`padding`),T=m(s,t,`padding`),E=m(y,t,`padding`),D=m(p,t,`padding`),O=m(h,t,`padding`),k=m(g,t,`padding`),A=m(_,t,`padding`),j=m(b,t,`padding`);E&&(S=S===`none`?E:S,C=C===`none`?E:C,w=w===`none`?E:w,T=T===`none`?E:T),j&&(D=D===`none`?j:D,O=O===`none`?j:O,k=k===`none`?j:k,A=A===`none`?j:A);let M=`${m(r,t,`vertical`)} ${m(i,t,`horizontal`)}`,{padding:N,margin:ee,paddingTop:P,paddingLeft:F,paddingRight:I,paddingBottom:L,marginTop:R,marginLeft:z,marginRight:te,marginBottom:ne,...re}=x??{};return{...re,gap:M,paddingTop:S,paddingLeft:C,paddingRight:w,paddingBottom:T,marginLeft:D,marginRight:O,marginTop:k,marginBottom:A,background:c,width:l??void 0,height:d??void 0,maxWidth:u??void 0,maxHeight:f??void 0,overflow:`auto`}},[m]),getLayoutBreakPoint:t.useCallback((e,t)=>{let n=f(t),r=e;return u(e)&&(r=d(e,n??`Medium`)||``),r},[f,u,d])}},ve={"en-US":o.enUS,"es-ES":o.es,"fr-FR":o.fr,"de-DE":o.de,"it-IT":o.it,"pt-BR":o.pt,"pt-PT":o.pt,"ja-JP":o.ja,"ko-KR":o.ko,"zh-CN":o.zhCN},ye=(e,t)=>{let n=t&&ve[t]||o.enUS,{error:r}=z();return{getFormatRelative:e=>{try{return(0,a.formatDistanceToNow)(typeof e==`string`?(0,a.parseISO)(e):e,{addSuffix:!0,locale:n})}catch(e){return r(`Error formatting relative time:`,e instanceof Error?e:void 0),``}},convertDateToUTC:e=>{try{let t=typeof e==`string`?(0,a.parseISO)(e):e;return new Date(t.toUTCString())}catch(e){return r(`Error converting to UTC:`,e instanceof Error?e:void 0),new Date}},formatDate:(e,t=`PPpp`)=>{try{return(0,a.format)(typeof e==`string`?(0,a.parseISO)(e):e,t,{locale:n})}catch(e){return r(`Error formatting date:`,e instanceof Error?e:void 0),``}},getTimezoneOffset:()=>new Date().getTimezoneOffset(),convertToTimezone:(n,i)=>{try{let r=typeof n==`string`?(0,a.parseISO)(n):n,o=i||e||Intl.DateTimeFormat().resolvedOptions().timeZone;return r.toLocaleString(t||`en-US`,{timeZone:o})}catch(e){return r(`Error converting timezone:`,e instanceof Error?e:void 0),(typeof n==`string`?new Date(n):n).toString()}}}},be=(e,t,n)=>{let{getFormatRelative:r,formatDate:i}=ye(t,e);return{formatUtcDate:(e,t=`PP`)=>{let n=(0,a.differenceInDays)(new Date,(0,a.parseISO)(e)),o=``;return e!==void 0&&(o=n>7?i(e,t):r(e)),o},formatTime:n=>n.toLocaleTimeString(e,{timeZone:t}),convertDateToUTC:n=>{let r=typeof n==`string`?new Date(n):n,i=new Intl.DateTimeFormat(e,{timeZone:t,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}).formatToParts(r),a,o,s,c,l,u;for(let e of i)switch(e.type){case`year`:a=e.value;break;case`month`:o=e.value;break;case`day`:s=e.value;break;case`hour`:c=e.value;break;case`minute`:l=e.value;break;case`second`:u=e.value;break;default:break}let d=`${a}-${o}-${s}T${c}:${l}:${u}Z`;return new Date(d)}}},xe=process.env.NODE_ENV!==`production`,Se=`data:image/`,Ce=()=>{let{error:e}=z(),n=(0,t.useCallback)(async e=>{let t=await fetch(e).then(e=>e.text());return`data:image/svg+xml;base64,`+btoa(t)},[]),r=(0,t.useCallback)(async(t,n,r)=>new Promise((i,a)=>{let o=new Image;o.crossOrigin=`anonymous`,o.addEventListener(`load`,()=>{let t=document.createElement(`canvas`);t.width=n??o.width,t.height=r??o.height,t?.getContext(`2d`)?.drawImage(o,0,0,n??o.width,r??o.height);let s;try{s=t.toDataURL(`image/png`,1),i(s)}catch(t){xe&&e(`[ImageService.getBase64Image]: Err='${t.message}'`),a(t)}}),o.addEventListener(`error`,t=>{xe&&e(`[ImageService.getBase64Image]: Image load error='${t.message}'`),a(t)}),o.src=t}),[]),i=(0,t.useCallback)(e=>!(0,s.isEmpty)(e)&&e.indexOf(Se)>=0,[]);return{getBase64ImageFromDOMImg:(0,t.useCallback)(t=>{try{let e=document.getElementById(t),n=document.createElement(`canvas`);return n.width=e.width,n.height=e.height,n.getContext(`2d`)?.drawImage(e,0,0),n.toDataURL(`image/png`)}catch(t){xe&&e(`[getBase64ImageFromDOMImg]: Err='${t.message}'`);return}},[]),isBase64Image:i,getImageBase64:r,base64FromSVGUrl:n}};function we(e,t=0){let n=null;return function(...r){let i=this;n&&clearTimeout(n),n=setTimeout(()=>{e.apply(i,r)},t)}}function Te(e,t=0){let n=null,r=0;return function(...i){let a=this,o=Date.now();r||=o;let s=t-(o-r);s<=0||s>t?(n&&=(clearTimeout(n),null),r=o,e.apply(a,i)):n||=setTimeout(()=>{r=Date.now(),n=null,e.apply(a,i)},s)}}function Ee(e){if(typeof e!=`object`||!e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array)return e.map(e=>Ee(e));if(e instanceof Object){let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=Ee(e[n]));return t}return e}function De(e){return e==null?!0:typeof e==`string`||Array.isArray(e)?e.length===0:typeof e==`object`?Object.keys(e).length===0:!1}function Oe(e,t,n){let r=Array.isArray(t)?t:t.split(`.`),i=e;for(let e of r){if(i==null)return n;i=i[e]}return i===void 0?n:i}function ke(e,t,n){let r=Array.isArray(t)?t:t.split(`.`),i=r.pop();if(!i)return e;let a=e;for(let e of r)(!(e in a)||typeof a[e]!=`object`)&&(a[e]={}),a=a[e];return a[i]=n,e}function Ae(e){return Array.from(new Set(e))}function je(e,t){let n=new Set;return e.filter(e=>{let r=t(e);return n.has(r)?!1:(n.add(r),!0)})}function Me(e,t){return e.reduce((e,n)=>{let r=String(t(n));return e[r]||(e[r]=[]),e[r].push(n),e},{})}function Ne(e,t){return e.map(t)}function Pe(e,t){return e.filter(t)}function Fe(e,t){return e.some(t)}function Ie(e,t){return e.every(t)}var V=function(e){return e.HTML=`html`,e.MARKDOWN=`markdown`,e.ADAPTIVE_CARD=`adaptiveCard`,e.PLAIN_TEXT=`plainText`,e}({}),Le=e=>{try{let t=JSON.parse(e);return typeof t==`object`&&!!t}catch{return!1}},Re=e=>{try{let t=JSON.parse(e);return t&&typeof t==`object`&&(t.type===`AdaptiveCard`||t.$schema?.includes(`adaptivecards.io`))}catch{return!1}},ze=e=>{let t=e.trim(),n=[/^<!DOCTYPE\s+html/i,/^<html[\s>]/i,/^<\?xml/i,/<(div|span|p|h[1-6]|table|ul|ol|li|a|img|br|hr|strong|em|b|i)[\s>]/i],r=/<[^>]+>/.test(t),i=/^<[^>]+>/.test(t),a=(t.match(/<(?!\/)[^>]+>/g)||[]).length;return n.some(e=>e.test(t))||r&&i&&a>0},Be=e=>{let t=e.trim(),n=[/^#{1,6}\s+.+$/m,/\*\*.*?\*\*/,/\*.*?\*/,/__.*?__/,/_.*?_/,/\[.*?\]\(.*?\)/,/^\s*[-*+]\s+/m,/^\s*\d+\.\s+/m,/`[^`]+`/,/^```/m,/^\|.*\|.*\|$/m,/^>\s+/m,/^\s*---\s*$/m].some(e=>e.test(t)),r=/^<[^>]+>/.test(t);return n&&!r},Ve=(e,t,n=!1)=>{let r=t.filter(t=>t.test(e)).length/t.length;return n?1-r:r},He=e=>{if(typeof e==`object`&&e){let t=e;if(t.type===`AdaptiveCard`||t.$schema?.includes(`adaptivecards.io`))return{type:V.ADAPTIVE_CARD,content:e,confidence:1};e=JSON.stringify(e,null,2)}let t=e,n=t.trim();if(!n||n.length<3)return{type:V.PLAIN_TEXT,content:t,confidence:1};if(Le(n)&&Re(n))return{type:V.ADAPTIVE_CARD,content:JSON.parse(n),confidence:1};if(ze(n)){let e=Math.max(.7,Ve(n,[/^<!DOCTYPE\s+html/i,/^<html[\s>]/i,/<(div|span|p|h[1-6]|table|ul|ol|li)[\s>]/i]));return{type:V.HTML,content:t,confidence:e}}if(Be(n)){let e=Math.max(.6,Ve(n,[/^#{1,6}\s+.+$/m,/\*\*.*?\*\*/,/\[.*?\]\(.*?\)/,/^\s*[-*+]\s+/m,/`[^`]+`/,/^```/m,/^\|.*\|.*\|$/m]));return{type:V.MARKDOWN,content:t,confidence:e}}return{type:V.PLAIN_TEXT,content:t,confidence:.5}},Ue=e=>He(e).type,We=e=>{let{styles:n}=e,{getBaseStyles:r}=B();return{cardStyles:t.useCallback((t,i)=>({...r(e,t,i),...n}),[r,e,n]),bodyCardDefaultStyles:t.useMemo(()=>({display:`flex`,flexDirection:`column`,justifyContent:`start`,alignItems:`stretch`,overflow:`unset`}),[])}},Ge=e=>{let{className:r,cardBody:a,cardBodyClassName:o,cardHeader:s,cardHeaderClassName:l,cardHeaderImage:u,cardHeaderAction:d,cardHeaderDescription:f,cardFooterAction:p,cardFooterClassName:m,cardFooterContent:h,cardPreviewImage:g,cardPreviewLogo:_,cardPreviewPosition:v=`top`}=e,{cardStyles:y,bodyCardDefaultStyles:b}=We(e),x=t.useRef(null),[S,C]=t.useState(0),[w,T]=t.useState(0);return t.useEffect(()=>{let e;return x.current&&(e=new c.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;C(e),T(n)}}),e.observe(x.current)),()=>{e&&e.disconnect()}},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{ref:x,children:(0,n.jsxs)(i.Card,{className:r,style:y(S,w),...e,children:[g&&v===`top`&&(0,n.jsxs)(i.CardPreview,{logo:_,children:[g,` `]}),s&&(0,n.jsx)(i.CardHeader,{className:l,image:u,header:s,description:f,action:d}),g&&v===`afterHeader`&&(0,n.jsxs)(i.CardPreview,{logo:_,children:[g,` `]}),a&&(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(o),style:b,children:a}),g&&v===`bottom`&&(0,n.jsxs)(i.CardPreview,{logo:_,children:[g,` `]}),h&&(0,n.jsx)(i.CardFooter,{action:p,className:m,children:h})]})})})},Ke=e=>{let{cols:n,verticalSpacing:r,horizontalSpacing:a,styles:o,gridItemAutoFlow:s,minItemWidth:c,enableInfiniteScroll:u}=e,{getSpacing:d,getCurrentDevice:f,getBaseStyles:p}=B();return{gridStyles:t.useCallback((t,l)=>{let m=p(e,t,l),h=`${d(r,t,`vertical`)} ${d(a,t,`horizontal`)}`,g=f(t),_=`repeat(auto-${s??`fill`}, minmax(min(100%, ${c??250}px), 1fr))`;if(n&&n>0){let e=n??0;switch(g){case`ExtraSmall`:e=Math.min(n,1);break;case`Small`:e=Math.min(n,2);break;case`Medium`:e=Math.min(n,3);break;case`Large`:e=Math.min(n,4);break;case`ExtraLarge`:e=Math.min(n,4);break;case`ExtraExtraLarge`:e=Math.min(n,5);break;case`XXXLarge`:e=Math.min(n,6);break;default:e=0}_=`repeat(${e}, minmax(auto, 1fr))`}return{...m,display:`grid`,gridTemplateColumns:_,gap:h,overflow:`hidden`,overflowY:u?`auto`:`hidden`,...u?{scrollbarWidth:`thin`,scrollbarColor:`${i.tokens.colorBrandBackground} ${i.tokens.colorNeutralBackground3}`,paddingRight:`10px`}:{},...o}},[p,e,d,r,a,f,n,o,s,c,u]),scrollbarClassName:t.useMemo(()=>{if(u)return l.css`
15
+ }`,o=document.createElement(`style`);o.setAttribute(`data-brand-font`,e.name),o.textContent=a,document.head.appendChild(o),ue.add(n)})}function fe(e){if(e){if(e.d)return e.d;if(e.BrandFontLibraryUrl||e.SiteUrl)return e}}var pe=new Set([`woff2`,`woff`,`ttf`,`otf`,`eot`]),me={thin:100,hairline:100,extralight:200,ultralight:200,light:300,regular:400,normal:400,medium:500,semibold:600,demibold:600,bold:700,extrabold:800,ultrabold:800,black:900,heavy:900};function he(e,t){let n=(e?.trim()||t.replace(/\.[^.]+$/,``)).toLowerCase(),r=n.includes(`italic`)||n.includes(`oblique`),i=n.replace(/italic|oblique/gi,``).trim().replace(/[\s_-]+/g,``),a=me[i]??400;if(a===400&&i!==`regular`&&i!==`normal`&&i!==``){for(let[e,t]of Object.entries(me))if(i.includes(e)){a=t;break}}return{fontWeight:a,fontStyle:r?`italic`:`normal`}}var ge=`_SPFontFamilyName`,_e=`_SPFontFaces`,ve=`_spFontVisible`,ye=[{id:`fluent-base`,name:`'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif`,isDefault:!0,fontFaces:[]},{id:`fluent-monospace`,name:`'Cascadia Code', 'Cascadia Mono', Consolas, 'Courier New', monospace`,isDefault:!1,fontFaces:[]},{id:`fluent-numeric`,name:`'Bahnschrift', 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif`,isDefault:!1,fontFaces:[]}],be=(e={})=>{let{siteUrl:n,disabled:r,fonts:i}=e,a=re(),{warn:o,error:s}=B(),[c,l]=(0,t.useState)(i??[]),[u,d]=(0,t.useState)(!r&&!i),[f,p]=(0,t.useState)(),[m,h]=(0,t.useState)(!1),g=(0,t.useRef)(!1),_=(0,t.useCallback)(async()=>{if(r)return;let e=n??a?.pageContext?.web?.absoluteUrl;if(!e){let e=`useBrandCenterFonts: no siteUrl provided and pageContext.web.absoluteUrl is not available.`;o(e),p(e),d(!1);return}d(!0),p(void 0);try{let t=`${e}/_api/SP.BrandCenter/Configuration`,n=async t=>{if(a?.graphClient)return a.graphClient.get(t);let n={Accept:`application/json;odata=nometadata`};a?.authProvider&&(n.Authorization=`Bearer ${await a.authProvider.getAccessToken([`${new URL(e).origin}/.default`])}`);let r=await fetch(t,{credentials:a?.authProvider?void 0:`include`,headers:n});if(!r.ok)throw Error(`SharePoint REST returned ${r.status}: ${t}`);return await r.json()},r=fe(await n(t)),i=r?.BrandFontLibraryUrl,s=typeof i==`string`?i:i?.DecodedUrl,c=r?.IsBrandCenterSiteFeatureEnabled===!0||String(r?.IsBrandCenterSiteFeatureEnabled).toLowerCase()===`true`;if(!s||!c){o(`useBrandCenterFonts: Brand Center is not configured for this tenant — using Fluent UI 9 defaults.`),h(!1),l(ye),d(!1);return}let u=r?.SiteUrl,f=typeof u==`string`?u:u?.DecodedUrl??e,p=new URL(f).origin,m=s.startsWith(`http`)?new URL(s).pathname:s,g=await n(`${f}/_api/web/GetList('${encodeURIComponent(m)}')/items?$select=Id,FileLeafRef,FileRef,${ge},${_e},${ve},File/Name,File/ServerRelativeUrl&$expand=File&$top=5000`),_=g.d?.results??g.value??[],v=new Map;for(let e of _){let t=e.File?.Name??e.FileLeafRef??``,n=t.split(`.`).pop()?.toLowerCase()??``;if(!pe.has(n)||e[ve]===!1)continue;let r=e[ge]??t.replace(/\.[^.]+$/,``).split(/[-_]/)[0]??t,i=v.get(r);i?i.items.push(e):v.set(r,{items:[e]})}let y=[];for(let[e,t]of v){let n=[];for(let e of t.items){let t=e.File?.Name??e.FileLeafRef??``,r=e.File?.ServerRelativeUrl??e.FileRef??``;if(!r)continue;let i=e[_e],{fontWeight:a,fontStyle:o}=he(i,t),s=`${p}${r}`;n.push({url:s,fontWeight:a,fontStyle:o})}n.length>0&&y.push({id:e,name:e,isDefault:!1,fontFaces:n})}y.length>0&&!y.some(e=>e.isDefault)&&(y[0].isDefault=!0),y.forEach(de),l(y),h(!0)}catch(e){let t=e instanceof Error?e.message:String(e);s(`useBrandCenterFonts: failed to load fonts — falling back to Fluent UI 9 defaults`,e instanceof Error?e:void 0),p(t),h(!1),l(ye)}finally{d(!1)}},[r,n,a?.pageContext?.web?.absoluteUrl,a?.graphClient,a?.authProvider]);(0,t.useEffect)(()=>{if(i){i.forEach(de);return}!g.current&&!r&&(g.current=!0,_())},[_,i,r]);let v=c.find(e=>e.isDefault);return{fonts:c,fontFamilyNames:c.map(e=>e.name),defaultFont:v,loading:u,error:f,isBrandCenterAvailable:m,refresh:_}},xe=()=>{let e=t.useCallback((e,t)=>`${e}${t}`,[]),n=t.useCallback(e=>{if(!e)return!1;try{return!!new URL(e)}catch{return!1}},[]),r=e=>e.charAt(0)===`/`&&e.charAt(1)===`/`?e.substring(1,e.length):e,a=t.useCallback(e=>e?new RegExp(/^[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$/).test(e)===!0:!1,[]),o=t.useCallback(e=>{if(!e)return``;let t=e.split(`/`);return t[t.length-1]},[]),s=t.useCallback(e=>{let t=window.location.hostname,n=`https://${t}`;if(e.indexOf(`${n}/sites/`)>-1||e.indexOf(`${n}/teams/`)>-1){let r=e.split(t)[1].split(`/`)[2],i=`https://${t}/sites/${r}`;return e.indexOf(`${n}/teams/`)>-1&&(i=`https://${t}/teams/${r}`),i}return n},[]),c=t.useCallback(e=>{let t=e.split(window.location.hostname)[1];return t=r(t),t},[]),l=t.useCallback(e=>encodeURIComponent(e.replace(/[%]/g,`%25`)).replace(/[']/g,`%27%27`).replace(/[&]/g,`%26`).replace(/[#]/g,`%23`).replace(/[?]/g,`%3F`).replace(/[/]/g,`%2F`).replace(/[+]/g,`%2B`),[]),u=t.useCallback(e=>e==null?!1:Object.prototype.hasOwnProperty.call(e,`extraSmall`)||Object.prototype.hasOwnProperty.call(e,`small`)||Object.prototype.hasOwnProperty.call(e,`medium`)||Object.prototype.hasOwnProperty.call(e,`large`)||Object.prototype.hasOwnProperty.call(e,`extraLarge`),[]),d=t.useCallback((e,t)=>e[t.toString().toLowerCase()],[]),f=t.useCallback(e=>e>=z.XXXLarge?`XXXLarge`:e>=z.ExtraExtraLarge?`ExtraExtraLarge`:e>=z.ExtraLarge?`ExtraLarge`:e>=Number(z.Large)?`Large`:e>=Number(z.Medium)?`Medium`:e>=Number(z.Small)?`Small`:`ExtraSmall`,[]),p=t.useCallback((e,t)=>{let n=f(t),r={ExtraSmall:`xs`,Small:`s`,Medium:`m`,Large:`l`,ExtraLarge:`xl`,ExtraExtraLarge:`xxl`},i=e;return u(e)&&(i=d(e,n??`Medium`)||r[n]),i},[f,u,d]),m=t.useCallback((e,t,n)=>{if(!e)return`none`;if(typeof e==`string`&&(/^\d+px$/.test(e)||/^\d+%$/.test(e)))return e;let r=n,a={padding:`spacingHorizontal`,vertical:`spacingVertical`,horizontal:`spacingHorizontal`};switch(p(e,t)){case`none`:return i.tokens[`${a[r]}None`];case`xxs`:return i.tokens[`${a[r]}XXS`];case`xs`:return i.tokens[`${a[r]}XS`];case`sNudge`:return i.tokens[`${a[r]}SNudge`];case`s`:return i.tokens[`${a[r]}S`];case`mNudge`:return i.tokens[`${a[r]}MNudge`];case`m`:return i.tokens[`${a[r]}M`];case`l`:return i.tokens[`${a[r]}L`];case`xl`:return i.tokens[`${a[r]}XL`];case`xxl`:return i.tokens[`${a[r]}XXL`];case`xxxl`:return i.tokens[`${a[r]}XXXL`];default:return i.tokens[`${a[r]}M`]}},[p]);return{getCacheKey:e,validateUrl:n,trimBeginDoubleSlash:r,isValidGUID:a,getPageNameFromUrl:o,getSPSiteAbsoluteUrl:s,getFileServerRelativeUrlFromAbsoluteUrl:c,encodeRestUrl:l,getSpacing:m,getCurrentDevice:f,getBaseStyles:t.useCallback((e,t,n)=>{let{verticalSpacing:r,horizontalSpacing:i,paddingLeft:a,paddingRight:o,paddingBottom:s,background:c,width:l,maxWidth:u,height:d,maxHeight:f,marginLeft:p,marginRight:h,marginTop:g,marginBottom:_,paddingTop:v,padding:y,margin:b,styles:x}=e,S=m(v,t,`padding`),C=m(a,t,`padding`),w=m(o,t,`padding`),T=m(s,t,`padding`),E=m(y,t,`padding`),D=m(p,t,`padding`),O=m(h,t,`padding`),k=m(g,t,`padding`),A=m(_,t,`padding`),j=m(b,t,`padding`);E&&(S=S===`none`?E:S,C=C===`none`?E:C,w=w===`none`?E:w,T=T===`none`?E:T),j&&(D=D===`none`?j:D,O=O===`none`?j:O,k=k===`none`?j:k,A=A===`none`?j:A);let M=`${m(r,t,`vertical`)} ${m(i,t,`horizontal`)}`,{padding:N,margin:P,paddingTop:F,paddingLeft:I,paddingRight:L,paddingBottom:R,marginTop:z,marginLeft:ee,marginRight:te,marginBottom:ne,...re}=x??{};return{...re,gap:M,paddingTop:S,paddingLeft:C,paddingRight:w,paddingBottom:T,marginLeft:D,marginRight:O,marginTop:k,marginBottom:A,background:c,width:l??void 0,height:d??void 0,maxWidth:u??void 0,maxHeight:f??void 0,overflow:`auto`}},[m]),getLayoutBreakPoint:t.useCallback((e,t)=>{let n=f(t),r=e;return u(e)&&(r=d(e,n??`Medium`)||``),r},[f,u,d])}},Se={"en-US":o.enUS,"es-ES":o.es,"fr-FR":o.fr,"de-DE":o.de,"it-IT":o.it,"pt-BR":o.pt,"pt-PT":o.pt,"ja-JP":o.ja,"ko-KR":o.ko,"zh-CN":o.zhCN},Ce=(e,t)=>{let n=t&&Se[t]||o.enUS,{error:r}=B();return{getFormatRelative:e=>{try{return(0,a.formatDistanceToNow)(typeof e==`string`?(0,a.parseISO)(e):e,{addSuffix:!0,locale:n})}catch(e){return r(`Error formatting relative time:`,e instanceof Error?e:void 0),``}},convertDateToUTC:e=>{try{let t=typeof e==`string`?(0,a.parseISO)(e):e;return new Date(t.toUTCString())}catch(e){return r(`Error converting to UTC:`,e instanceof Error?e:void 0),new Date}},formatDate:(e,t=`PPpp`)=>{try{return(0,a.format)(typeof e==`string`?(0,a.parseISO)(e):e,t,{locale:n})}catch(e){return r(`Error formatting date:`,e instanceof Error?e:void 0),``}},getTimezoneOffset:()=>new Date().getTimezoneOffset(),convertToTimezone:(n,i)=>{try{let r=typeof n==`string`?(0,a.parseISO)(n):n,o=i||e||Intl.DateTimeFormat().resolvedOptions().timeZone;return r.toLocaleString(t||`en-US`,{timeZone:o})}catch(e){return r(`Error converting timezone:`,e instanceof Error?e:void 0),(typeof n==`string`?new Date(n):n).toString()}}}},we=(e,t,n)=>{let{getFormatRelative:r,formatDate:i}=Ce(t,e);return{formatUtcDate:(e,t=`PP`)=>{let n=(0,a.differenceInDays)(new Date,(0,a.parseISO)(e)),o=``;return e!==void 0&&(o=n>7?i(e,t):r(e)),o},formatTime:n=>n.toLocaleTimeString(e,{timeZone:t}),convertDateToUTC:n=>{let r=typeof n==`string`?new Date(n):n,i=new Intl.DateTimeFormat(e,{timeZone:t,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}).formatToParts(r),a,o,s,c,l,u;for(let e of i)switch(e.type){case`year`:a=e.value;break;case`month`:o=e.value;break;case`day`:s=e.value;break;case`hour`:c=e.value;break;case`minute`:l=e.value;break;case`second`:u=e.value;break;default:break}let d=`${a}-${o}-${s}T${c}:${l}:${u}Z`;return new Date(d)}}},Te=process.env.NODE_ENV!==`production`,Ee=`data:image/`,De=()=>{let{error:e}=B(),n=(0,t.useCallback)(async e=>{let t=await fetch(e).then(e=>e.text());return`data:image/svg+xml;base64,`+btoa(t)},[]),r=(0,t.useCallback)(async(t,n,r)=>new Promise((i,a)=>{let o=new Image;o.crossOrigin=`anonymous`,o.addEventListener(`load`,()=>{let t=document.createElement(`canvas`);t.width=n??o.width,t.height=r??o.height,t?.getContext(`2d`)?.drawImage(o,0,0,n??o.width,r??o.height);let s;try{s=t.toDataURL(`image/png`,1),i(s)}catch(t){Te&&e(`[ImageService.getBase64Image]: Err='${t.message}'`),a(t)}}),o.addEventListener(`error`,t=>{Te&&e(`[ImageService.getBase64Image]: Image load error='${t.message}'`),a(t)}),o.src=t}),[]),i=(0,t.useCallback)(e=>!(0,s.isEmpty)(e)&&e.indexOf(Ee)>=0,[]);return{getBase64ImageFromDOMImg:(0,t.useCallback)(t=>{try{let e=document.getElementById(t),n=document.createElement(`canvas`);return n.width=e.width,n.height=e.height,n.getContext(`2d`)?.drawImage(e,0,0),n.toDataURL(`image/png`)}catch(t){Te&&e(`[getBase64ImageFromDOMImg]: Err='${t.message}'`);return}},[]),isBase64Image:i,getImageBase64:r,base64FromSVGUrl:n}};function Oe(e,t=0){let n=null;return function(...r){let i=this;n&&clearTimeout(n),n=setTimeout(()=>{e.apply(i,r)},t)}}function ke(e,t=0){let n=null,r=0;return function(...i){let a=this,o=Date.now();r||=o;let s=t-(o-r);s<=0||s>t?(n&&=(clearTimeout(n),null),r=o,e.apply(a,i)):n||=setTimeout(()=>{r=Date.now(),n=null,e.apply(a,i)},s)}}function Ae(e){if(typeof e!=`object`||!e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array)return e.map(e=>Ae(e));if(e instanceof Object){let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=Ae(e[n]));return t}return e}function je(e){return e==null?!0:typeof e==`string`||Array.isArray(e)?e.length===0:typeof e==`object`?Object.keys(e).length===0:!1}function Me(e,t,n){let r=Array.isArray(t)?t:t.split(`.`),i=e;for(let e of r){if(i==null)return n;i=i[e]}return i===void 0?n:i}function Ne(e,t,n){let r=Array.isArray(t)?t:t.split(`.`),i=r.pop();if(!i)return e;let a=e;for(let e of r)(!(e in a)||typeof a[e]!=`object`)&&(a[e]={}),a=a[e];return a[i]=n,e}function Pe(e){return Array.from(new Set(e))}function Fe(e,t){let n=new Set;return e.filter(e=>{let r=t(e);return n.has(r)?!1:(n.add(r),!0)})}function Ie(e,t){return e.reduce((e,n)=>{let r=String(t(n));return e[r]||(e[r]=[]),e[r].push(n),e},{})}function Le(e,t){return e.map(t)}function Re(e,t){return e.filter(t)}function ze(e,t){return e.some(t)}function Be(e,t){return e.every(t)}var Ve=function(e){return e.HTML=`html`,e.MARKDOWN=`markdown`,e.ADAPTIVE_CARD=`adaptiveCard`,e.PLAIN_TEXT=`plainText`,e}({}),He=e=>{try{let t=JSON.parse(e);return typeof t==`object`&&!!t}catch{return!1}},Ue=e=>{try{let t=JSON.parse(e);return t&&typeof t==`object`&&(t.type===`AdaptiveCard`||t.$schema?.includes(`adaptivecards.io`))}catch{return!1}},We=e=>{let t=e.trim(),n=[/^<!DOCTYPE\s+html/i,/^<html[\s>]/i,/^<\?xml/i,/<(div|span|p|h[1-6]|table|ul|ol|li|a|img|br|hr|strong|em|b|i)[\s>]/i],r=/<[^>]+>/.test(t),i=/^<[^>]+>/.test(t),a=(t.match(/<(?!\/)[^>]+>/g)||[]).length;return n.some(e=>e.test(t))||r&&i&&a>0},Ge=e=>{let t=e.trim(),n=[/^#{1,6}\s+.+$/m,/\*\*.*?\*\*/,/\*.*?\*/,/__.*?__/,/_.*?_/,/\[.*?\]\(.*?\)/,/^\s*[-*+]\s+/m,/^\s*\d+\.\s+/m,/`[^`]+`/,/^```/m,/^\|.*\|.*\|$/m,/^>\s+/m,/^\s*---\s*$/m].some(e=>e.test(t)),r=/^<[^>]+>/.test(t);return n&&!r},Ke=(e,t,n=!1)=>{let r=t.filter(t=>t.test(e)).length/t.length;return n?1-r:r},qe=e=>{if(typeof e==`object`&&e){let t=e;if(t.type===`AdaptiveCard`||t.$schema?.includes(`adaptivecards.io`))return{type:Ve.ADAPTIVE_CARD,content:e,confidence:1};e=JSON.stringify(e,null,2)}let t=e,n=t.trim();if(!n||n.length<3)return{type:Ve.PLAIN_TEXT,content:t,confidence:1};if(He(n)&&Ue(n))return{type:Ve.ADAPTIVE_CARD,content:JSON.parse(n),confidence:1};if(We(n)){let e=Math.max(.7,Ke(n,[/^<!DOCTYPE\s+html/i,/^<html[\s>]/i,/<(div|span|p|h[1-6]|table|ul|ol|li)[\s>]/i]));return{type:Ve.HTML,content:t,confidence:e}}if(Ge(n)){let e=Math.max(.6,Ke(n,[/^#{1,6}\s+.+$/m,/\*\*.*?\*\*/,/\[.*?\]\(.*?\)/,/^\s*[-*+]\s+/m,/`[^`]+`/,/^```/m,/^\|.*\|.*\|$/m]));return{type:Ve.MARKDOWN,content:t,confidence:e}}return{type:Ve.PLAIN_TEXT,content:t,confidence:.5}},Je=e=>qe(e).type,Ye=e=>{let{styles:n}=e,{getBaseStyles:r}=xe();return{cardStyles:t.useCallback((t,i)=>({...r(e,t,i),...n}),[r,e,n]),bodyCardDefaultStyles:t.useMemo(()=>({display:`flex`,flexDirection:`column`,justifyContent:`start`,alignItems:`stretch`,overflow:`unset`}),[])}},Xe=e=>{let{className:r,cardBody:a,cardBodyClassName:o,cardHeader:s,cardHeaderClassName:l,cardHeaderImage:u,cardHeaderAction:d,cardHeaderDescription:f,cardFooterAction:p,cardFooterClassName:m,cardFooterContent:h,cardPreviewImage:g,cardPreviewLogo:_,cardPreviewPosition:v=`top`}=e,{cardStyles:y,bodyCardDefaultStyles:b}=Ye(e),x=t.useRef(null),[S,C]=t.useState(0),[w,T]=t.useState(0);return t.useEffect(()=>{let e;return x.current&&(e=new c.ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;C(e),T(n)}}),e.observe(x.current)),()=>{e&&e.disconnect()}},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{ref:x,children:(0,n.jsxs)(i.Card,{className:r,style:y(S,w),...e,children:[g&&v===`top`&&(0,n.jsxs)(i.CardPreview,{logo:_,children:[g,` `]}),s&&(0,n.jsx)(i.CardHeader,{className:l,image:u,header:s,description:f,action:d}),g&&v===`afterHeader`&&(0,n.jsxs)(i.CardPreview,{logo:_,children:[g,` `]}),a&&(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(o),style:b,children:a}),g&&v===`bottom`&&(0,n.jsxs)(i.CardPreview,{logo:_,children:[g,` `]}),h&&(0,n.jsx)(i.CardFooter,{action:p,className:m,children:h})]})})})},Ze=e=>{let{cols:n,verticalSpacing:r,horizontalSpacing:a,styles:o,gridItemAutoFlow:s,minItemWidth:c,enableInfiniteScroll:u}=e,{getSpacing:d,getCurrentDevice:f,getBaseStyles:p}=xe();return{gridStyles:t.useCallback((t,l)=>{let m=p(e,t,l),h=`${d(r,t,`vertical`)} ${d(a,t,`horizontal`)}`,g=f(t),_=`repeat(auto-${s??`fill`}, minmax(min(100%, ${c??250}px), 1fr))`;if(n&&n>0){let e=n??0;switch(g){case`ExtraSmall`:e=Math.min(n,1);break;case`Small`:e=Math.min(n,2);break;case`Medium`:e=Math.min(n,3);break;case`Large`:e=Math.min(n,4);break;case`ExtraLarge`:e=Math.min(n,4);break;case`ExtraExtraLarge`:e=Math.min(n,5);break;case`XXXLarge`:e=Math.min(n,6);break;default:e=0}_=`repeat(${e}, minmax(auto, 1fr))`}return{...m,display:`grid`,gridTemplateColumns:_,gap:h,overflow:`hidden`,overflowY:u?`auto`:`hidden`,...u?{scrollbarWidth:`thin`,scrollbarColor:`${i.tokens.colorBrandBackground} ${i.tokens.colorNeutralBackground3}`,paddingRight:`10px`}:{},...o}},[p,e,d,r,a,f,n,o,s,c,u]),scrollbarClassName:t.useMemo(()=>{if(u)return l.css`
16
16
  &::-webkit-scrollbar {
17
17
  width: 6px !important;
18
18
  height: 6px !important;
@@ -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])}},qe=e=>{let{children:r,className:i,onScroll:a}=e,{gridStyles:o,scrollbarClassName:s}=Ke(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})})},Je=e=>{let{maxWith:n}=e,{getBaseStyles:r}=B();return{rootStyles:t.useCallback((t,i)=>({...r(e,t,i),maxWidth:n}),[r,n,e]),layoutGridStyles:(0,l.css)({display:`grid`,overflow:`hidden`})}},Ye={areas:[`header header header`,`sidebar content sidebar`,`footer footer footer`],columns:`1fr 3fr 1fr`,rows:`auto 1fr auto`},Xe=e=>{let{className:r,children:a,layoutConfig:o=Ye}=e,s=t.useRef(null),[l,u]=t.useState(0),[d,f]=t.useState(0),{rootStyles:p,layoutGridStyles:m}=Je({...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)})},Ze=e=>{let{area:t,children:r}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{style:{gridArea:t},children:r})})},Qe=e=>{let{verticalSpacing:n,horizontalSpacing:r}=e,{getSpacing:i}=B();return{spaceStyles:t.useCallback(e=>e?r?{width:i(r,e,`horizontal`)}:n?{height:i(n,e,`vertical`)}:{}:{},[i,r,n])}},$e=e=>{let r=t.useRef(null),[i,a]=t.useState(0),{spaceStyles:o}=Qe(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})})},et=e=>{let{horizontal:n,horizontalAlign:r,verticalAlign:i,verticalFill:a,wrap:o,columnGap:s,RowGap:c}=e,{getBaseStyles:l}=B();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])}},H=e=>{let{children:r,className:i}=e,{stackStyles:a}=et(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})})},tt=e=>{let{children:r,grow:i,disableShrink:a,shrink:o,order:s,alignSelf:l,verticalFill:u}=e,{getBaseStyles:d}=B(),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})})},nt=({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})})},rt=e=>{let{styles:n}=e,{getBaseStyles:r}=B();return{aspectRatioStyles:t.useCallback((t,i)=>({...r(e,t,i),...n}),[r,e,n])}},it=e=>{let{styles:n}=e,{getBaseStyles:r}=B();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`})}},at=e=>{let{className:r,children:i}=e,a=t.useRef(null),[o,s]=t.useState(0),[l,u]=t.useState(0),{centerStyles:d}=it(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})},ot=e=>{let{maxWidth:n}=e,{getBaseStyles:r}=B();return{containerStyles:t.useCallback((t,i)=>!t||!i?{}:{...r(e,t,i),maxWidth:n},[r,n,e])}},st=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:_}=ot(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)(at,{children:i}):i})},ct=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}},lt=(e,n)=>{let{getCurrentDevice:r}=B(),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`})}},ut=e=>{let{styles:n}=e,{getBaseStyles:r}=B();return{carouselStyles:t.useCallback((t,i)=>({...r(e,t,i),...n}),[r,e,n])}},dt=()=>({titleStyles:(0,l.css)({display:`-webkit-box`,overflow:`hidden`,textOverflow:`ellipsis`,WebkitLineClamp:`1`,WebkitBoxOrient:`vertical`,textAlign:`start`})}),ft=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}=ut(e),[g,_]=(0,u.default)(),v=dt(),{enableControls:y,embla__slide:b,embla__container:x,embla__viewport:S,embla__buttons:C}=lt(e,l),{prevBtnDisabled:w,nextBtnDisabled:T,onPrevButtonClick:E,onNextButtonClick:D}=ct(_);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))})})]})})},pt=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})}},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},W=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&&U[a]?U[a]:a,columnGap:o&&U[o]?U[o]:o,rowGap:s&&U[s]?U[s]:s,margin:c&&U[c]?U[c]:c,padding:u&&U[u]?U[u]:u,marginTop:d&&U[d]?U[d]:d,marginBottom:f&&U[f]?U[f]:f,marginLeft:p&&U[p]?U[p]:p,marginRight:m&&U[m]?U[m]:m,paddingTop:h&&U[h]?U[h]:h,paddingBottom:g&&U[g]?U[g]:g,paddingLeft:_&&U[_]?U[_]:_,paddingRight:v&&U[v]?U[v]:v,width:y,height:b,overflow:T,flexWrap:x?`wrap`:`nowrap`,backgroundColor:E,...C})),children:S}))),mt=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=pt(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)(W,{ref:_,className:[h.root,p].filter(Boolean).join(` `),style:{height:`100%`,width:`100%`,...m},direction:g?`horizontal`:`vertical`,overflow:`hidden`,children:[(0,n.jsx)(W,{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)(W,{className:h.resizerGrip,direction:g?`vertical`:`horizontal`,alignItems:`center`,justifyContent:`center`,children:[(0,n.jsx)(W,{className:h.gripDot,children:``}),(0,n.jsx)(W,{className:h.gripDot,children:``}),(0,n.jsx)(W,{className:h.gripDot,children:``})]})}),(0,n.jsx)(W,{className:h.secondaryPane,style:{flex:1,minWidth:0,minHeight:0},children:f})]})},ht=({anchorPoint:e,isOpen:r,onClose:a,excludeRefs:o,children:s,theme:c})=>{let l=(0,t.useRef)(null),[u,d]=(0,t.useState)(null);(0,t.useLayoutEffect)(()=>{if(!r){d(null);return}if(l.current){let t=l.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),d({left:n,top:r})}},[e,r,s]);let p=t.default.useCallback(e=>{let t=e.target;if(l.current&&!l.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`,p)}),t=e=>{e.key===`Escape`&&a()};return document.addEventListener(`keydown`,t),()=>{cancelAnimationFrame(e),document.removeEventListener(`mousedown`,p),document.removeEventListener(`keydown`,t)}},[r,p,a]),!r)return null;let m=u||e;return f.default.createPortal(c?(0,n.jsx)(i.FluentProvider,{theme:c,children:(0,n.jsx)(i.Card,{ref:l,role:`dialog`,"aria-modal":`true`,style:{position:`fixed`,zIndex:1e3,top:m.top,left:m.left},children:s})}):(0,n.jsx)(i.Card,{ref:l,role:`dialog`,"aria-modal":`true`,style:{position:`fixed`,zIndex:1e3,top:m.top,left:m.left},children:s}),document.body)},gt=(0,i.makeStyles)({labelContainer:{display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignItems:`center`,...i.shorthands.gap(`6px`)},iconStyles:{width:`26px`},item:{paddingLeft:`15px`}}),_t=e=>{let{label:r,icon:a,isRequired:o}=e,s=gt();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?` *`:``})]})})},vt=(0,i.makeStyles)({root:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`,width:`100%`},spinner:{width:`100px`,height:`100px`}}),yt=e=>{let{size:t,label:r,labelPosition:a,style:o,className:s}=e,c=vt();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`})})},bt={xs:i.tokens.fontSizeBase200,s:i.tokens.fontSizeBase300,m:i.tokens.fontSizeBase400,l:i.tokens.fontSizeBase500,xl:i.tokens.fontSizeBase600,xxl:i.tokens.fontSizeHero700},G={xs:i.tokens.spacingHorizontalXS,s:i.tokens.spacingHorizontalS,m:i.tokens.spacingHorizontalM,l:i.tokens.spacingHorizontalL,xl:i.tokens.spacingHorizontalXL,xxl:i.tokens.spacingHorizontalXXL},xt={regular:i.tokens.fontWeightRegular,semibold:i.tokens.fontWeightSemibold,bold:i.tokens.fontWeightBold},St=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&&G[c]?G[c]:c,paddingTop:u&&G[u]?G[u]:u,paddingBottom:d&&G[d]?G[d]:d,paddingLeft:f&&G[f]?G[f]:f,paddingRight:p&&G[p]?G[p]:p,margin:m&&G[m]?G[m]:m,marginTop:h&&G[h]?G[h]:h,marginBottom:g&&G[g]?G[g]:g,marginLeft:_&&G[_]?G[_]:_,marginRight:v&&G[v]?G[v]:v}),D={...b,...r?{fontFamily:r}:{},...t?{fontSize:bt[t]?bt[t]:t}:{},...a?{fontWeight:xt[a]?xt[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})},Ct=e=>{let{onSelected:r,value:a,styles:o,options:s,apparence:c,shape:l,label:u}=e,d=t.useRef(),[f,p]=t.useState(a??s[0]),[m,h]=t.useState({option:[a?a?.key:s?.[0]?.key]}),g=t.useRef(null);t.useEffect(()=>{a!==void 0&&(p(a),h({option:[a.key]})),d.current=s.find(e=>e.key===(a?.key??s[0]?.key))?.icon},[a]);let[_,v]=t.useState(!1),y=t.useCallback((e,t)=>{v(t.open)},[]),b=t.useCallback(e=>e?.text??``,[]),x=t.useCallback((e,{name:t,checkedItems:n})=>{if(t===`option`){let e=n[0];p(s.find(t=>t.key===e)),h({option:n}),d.current=s.find(t=>t.key===e)?.icon,r(s.find(t=>t.key===e))}},[s,r]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.Field,{label:u,style:o,ref:g,children:(0,n.jsxs)(i.Menu,{open:_,onOpenChange:y,children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{shape:l??`circular`,icon:d.current,appearance:c??`secondary`,children:b(f)??`No data available`})}),(0,n.jsx)(i.MenuPopover,{children:(0,n.jsx)(i.MenuList,{onCheckedValueChange:x,checkedValues:m,style:{width:g.current?.offsetWidth},children:s.map(e=>(0,n.jsx)(i.MenuItemRadio,{name:`option`,value:e.key,icon:e.icon,disabled:e.disabled,children:b(e)},e.key))})})]})})})},wt=()=>({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`})}}}),Tt=({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}=wt();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)]})},Et=(e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}},Dt=({items:e,maxWidth:r=`100%`,styles:a,theme:o,size:s=`medium`,currentIndex:l=e.length-1,className:u})=>{let{styles:f,getStyles:p}=wt(),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=Et(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)(H,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`start`,children:[h.map((e,r)=>(0,n.jsxs)(t.default.Fragment,{children:[r===l?(0,n.jsxs)(H,{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)(Tt,{items:_,theme:o})]})})},Ot=({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}})})},kt=t.default.memo(Ot),At=()=>({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),[])}),jt={start:`Start`,end:`End`,location:`Location`,attendees:`Attendees`,details:`Details`},Mt=`32px`,Nt=e=>({styles:{banner:(0,l.css)({display:`flex`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,padding:`5px 10px 0px 10px`}),fieldContainer:(0,l.css)({paddingLeft:Mt}),title:(0,l.css)({lineClamp:2,overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,wordBreak:`break-word`,WebkitLineClamp:2})}}),Pt=({fieldLabel:e,fieldValue:t,icon:r})=>(0,n.jsxs)(H,{children:[(0,n.jsx)(_t,{label:e,icon:r}),(0,n.jsx)(H,{paddingLeft:Mt,children:(0,n.jsx)(i.Body1,{children:t})})]}),Ft=e=>{let{event:r,strings:a=jt}=e,{title:o,start:s,end:c,location:l,category:u,attendees:d,weblink:f}=r,{styles:p}=Nt(r),{formatDate:m}=At(),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)(H,{children:[(0,n.jsx)(_t,{label:a.attendees,icon:`ph:users-three`}),(0,n.jsx)(H,{paddingLeft:Mt,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)(Ge,{appearance:`subtle`,padding:`m`,paddingTop:`s`,width:`250px`,cardBody:(0,n.jsxs)(H,{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)(H,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:(0,n.jsx)(i.Badge,{appearance:`filled`,children:u})}),(0,n.jsx)(Pt,{fieldLabel:a.start,fieldValue:h,icon:`mingcute:time-line`}),(0,n.jsx)(Pt,{fieldLabel:a.end,fieldValue:g,icon:`mingcute:time-line`}),(0,n.jsx)(Pt,{fieldLabel:a.location,fieldValue:l,icon:`mingcute:location-line`}),(0,n.jsx)(y,{})]}),cardFooterContent:(0,n.jsx)(H,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:(0,n.jsx)(i.Button,{appearance:`subtle`,onClick:()=>{window.open(f,`_blank`)},children:a.details})})})})},It=()=>({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}})}),Lt=e=>{let r=(0,i.useId)(),{events:o,date:s,onCardHoverChange:c,columnHeight:l}=e,{styles:u,applyEventHouverColorClass:d}=It(),f=t.useRef(null),{getEventColors:p,getCalendarColors:m}=At(),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)(Ge,{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)(Ft,{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.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)})})},Rt=e=>{let{day:r,currentMonth:o,events:s,date:c,columnHeight:l,onDayClick:u}=e,{styles:d}=It(),f=new Date,[p,m]=t.useState(!1),h=t.useMemo(()=>(0,a.isSameDay)(c,f),[c,f]),g=t.useMemo(()=>(0,n.jsx)(H,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,paddingLeft:`m`,paddingRight:`m`,children:(0,n.jsxs)(i.Body2,{className:d.currentDayLabel,children:[r,` `,f.toLocaleString(`default`,{month:`short`})]})}),[r]),_=t.useCallback(e=>{m(e)},[]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Ge,{onClick:u?()=>u(c):void 0,className:(0,i.mergeClasses)(d.cardDay,o?``:d.otherMonthDay,h?d.currentDay:``,p?``:d.cardDayOnHover),cardHeader:h?g:(0,n.jsx)(H,{horizontal:!0,paddingLeft:`m`,paddingRight:`m`,children:(0,n.jsx)(i.Body2,{children:r})}),paddingTop:`m`,paddingBottom:`m`,paddingLeft:`0px`,paddingRight:`0px`,cardBody:(0,n.jsx)(Lt,{events:s,date:c,onCardHoverChange:_,columnHeight:l-60})})})},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}`}),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}),[])}),Bt={timeSeparator:` - `,hourSuffix:`H`},Vt=({event:e,colors:r,spanSlots:a,rowHeight:o,eventIndex:s,eventCount:c,strings:l=Bt})=>{let u=(0,i.useId)(),{styles:d,applyEventHouverColorClass:f,appyDynamicStyles:p}=zt(),m=t.useRef(null),{formatDate:h}=At(),g=t.useMemo(()=>(0,n.jsx)(`div`,{children:(0,n.jsxs)(H,{columnGap:4,verticalAlign:`center`,children:[(0,n.jsx)(i.Caption1Strong,{className:d.eventTitle,children:e.title}),(0,n.jsxs)(H,{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)(Ft,{event:e})})]}):g},e.id)},Ht=({event:e,eventCount:r,spanSlots:a,rowHeight:o,eventIndex:s,view:c})=>{let{styles:l,appyDynamicStyles:u}=zt(),{getEventColors:d,getCalendarColors:f}=At(),p=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)(Vt,{event:e,colors:p,spanSlots:a,rowHeight:o,eventIndex:s,eventCount:r},e.id)},Ut=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])}},Wt=()=>({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}})}),Gt={allDay:`All Day`},Kt=33,qt=e=>{let{events:r,currentDay:o,height:s,strings:c=Gt}=e,{styles:l}=Wt(),u=(0,t.useRef)(null),{getSpanSlots:d,getEventColors:f,getCalendarColors:p}=At(),m=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:h}=Ut(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)(Ht,{event:e,eventCount:r,spanSlots:a,rowHeight:Kt,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()]})})},K=function(e){return e.Day=`day`,e.Week=`week`,e.Month=`month`,e}({}),Jt={month:`Month`,week:`Week`,day:`Day`},Yt=e=>{let{onSelected:r,value:a,strings:o=Jt}=e,[s,c]=t.useState(a??K.Month),[l,u]=t.useState({view:[a??K.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 K.Month:return(0,n.jsx)(p,{});case K.Week:return(0,n.jsx)(m,{});case K.Day:return(0,n.jsx)(f,{});default:return(0,n.jsx)(p,{})}},[s]),y=t.useCallback(e=>{switch(e){case K.Month:return o.month;case K.Week:return o.week;case K.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:K.Day,children:o.day}),(0,n.jsx)(i.MenuItemRadio,{icon:(0,n.jsx)(m,{}),name:`view`,value:K.Week,children:o.week}),(0,n.jsx)(i.MenuItemRadio,{icon:(0,n.jsx)(p,{}),name:`view`,value:K.Month,children:o.month})]})})]})})},Xt=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})})})]})}),Zt=()=>({root:(0,l.css)({outline:`none`})}),Qt={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`},$t=e=>{let{onDateChange:r,defaultSelectedDate:i,onDismiss:a,strings:o=Qt}=e,s=Zt(),[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})})},en=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)($t,{onDateChange:m,defaultSelectedDate:c,onDismiss:()=>{f(!1)}})})})]})})},tn={selectWeekPlaceholder:`Select a week`},nn=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})}`},rn=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)}},an=t.memo(e=>{let{onSelected:r,value:a,strings:o=tn}=e,s=h.DateRangeType.Week,[c,l]=t.useState(a??new Date),[u,f]=t.useState(()=>{let e=a??new Date;return e?nn(rn(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=rn(e);f(nn(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})})})]})}),on={today:`Today`,previous:`Previous`,next:`Next`},sn=t.memo(({selectedView:e,onSelectedView:r,currentDate:a,setCurrentDate:o,onWeekChange:s,onMonthChange:c,onDayChange:l,strings:u=on})=>{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 K.Month:return(0,n.jsx)(en,{onSelected:h,value:a});case K.Week:return(0,n.jsx)(an,{onSelected:m,value:a});case K.Day:return(0,n.jsx)(Xt,{onSelected:g,value:a});default:return(0,n.jsx)(en,{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 K.Month:n.setMonth(n.getMonth()+t),c(n);break;case K.Week:n.setDate(n.getDate()+t*7),s(n);break;case K.Day:n.setDate(n.getDate()+t),l(n);break;default:break}o(n)},[a,e,c,s,l,o]);return(0,n.jsxs)(H,{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)(H,{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)(H,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,columnGap:10,children:(0,n.jsx)(Yt,{onSelected:r,value:e})})]})}),cn={allDay:`All Day`},ln=e=>{let{events:r,currentDay:o,height:s,strings:l=cn}=e,{styles:u}=zt(),[d]=(0,t.useState)(o),[f,p]=(0,t.useState)(32),m=(0,t.useRef)(null),{getSpanSlots:h,getEventColors:g,getCalendarColors:_,formatDate:v}=At(),y=(0,a.startOfWeek)(d,{weekStartsOn:0}),b=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:x}=Ut(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)(Ht,{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()]})})},un={daysOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},dn=({currentDate:e,rowHeight:t,getCalendarDays:r,getEventsForDay:a,styles:o,onDaySlotClick:s,height:c,calendarRef:l,strings:u})=>{let d=u?.daysOfWeek||un.daysOfWeek;return(0,n.jsx)(H,{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=>(0,n.jsx)(i.Body1,{className:o.dayHeader,role:`columnheader`,children:e},e)),r(e).map((e,r)=>{let{day:i,currentMonth:o}=e,c=o?a(e):[];return(0,n.jsx)(Rt,{day:i,date:e.date,currentMonth:e.currentMonth,events:c,columnHeight:t||0,onDayClick:s},r)})]})})},fn=t.memo(({events:e,currentDay:t,height:r,strings:i})=>(0,n.jsx)(ln,{events:e,currentDay:t,height:r,strings:i})),pn=t.memo(({events:e,currentDay:t,height:r,strings:i})=>(0,n.jsx)(qt,{currentDay:t,events:e,height:r,strings:i})),mn=({events:e,height:r=800,theme:o,onDayChange:s,onMonthChange:l,onWeekChange:u,onViewChange:d,onDaySlotClick:f,defaultView:p,strings:m})=>{let{styles:h}=It(),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??K.Month),{getMonthCalendar:w}=Ut(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||K.Month)},[p]);let M=t.useCallback(()=>{switch(S){case K.Month:return(0,n.jsx)(dn,{events:e,currentDate:b,rowHeight:_,getCalendarDays:T,getEventsForDay:A,styles:h,onDaySlotClick:f,height:r,calendarRef:g,strings:m?.calendarControl});case K.Week:return(0,n.jsx)(fn,{events:e,currentDay:b,height:r,strings:m?.weekView});case K.Day:return(0,n.jsx)(pn,{events:e,currentDay:b,height:r,strings:m?.dayView});default:return(0,n.jsx)(dn,{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)(H,{height:`100%`,verticalAlign:`start`,children:[(0,n.jsx)(sn,{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})})},hn=()=>({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`}})}),gn=({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=hn(),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)})})})},_n=()=>({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`}})}),vn=({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=_n(),k=e.c(),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})})},yn=()=>({searchBoxStyles:g.css`
31
+ `},[u])}},Qe=e=>{let{children:r,className:i,onScroll:a}=e,{gridStyles:o,scrollbarClassName:s}=Ze(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})})},$e=e=>{let{maxWith:n}=e,{getBaseStyles:r}=xe();return{rootStyles:t.useCallback((t,i)=>({...r(e,t,i),maxWidth:n}),[r,n,e]),layoutGridStyles:(0,l.css)({display:`grid`,overflow:`hidden`})}},et={areas:[`header header header`,`sidebar content sidebar`,`footer footer footer`],columns:`1fr 3fr 1fr`,rows:`auto 1fr auto`},tt=e=>{let{className:r,children:a,layoutConfig:o=et}=e,s=t.useRef(null),[l,u]=t.useState(0),[d,f]=t.useState(0),{rootStyles:p,layoutGridStyles:m}=$e({...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)})},nt=e=>{let{area:t,children:r}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(`div`,{style:{gridArea:t},children:r})})},rt=e=>{let{verticalSpacing:n,horizontalSpacing:r}=e,{getSpacing:i}=xe();return{spaceStyles:t.useCallback(e=>e?r?{width:i(r,e,`horizontal`)}:n?{height:i(n,e,`vertical`)}:{}:{},[i,r,n])}},it=e=>{let r=t.useRef(null),[i,a]=t.useState(0),{spaceStyles:o}=rt(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})})},at=e=>{let{horizontal:n,horizontalAlign:r,verticalAlign:i,verticalFill:a,wrap:o,columnGap:s,RowGap:c}=e,{getBaseStyles:l}=xe();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])}},V=e=>{let{children:r,className:i}=e,{stackStyles:a}=at(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})})},ot=e=>{let{children:r,grow:i,disableShrink:a,shrink:o,order:s,alignSelf:l,verticalFill:u}=e,{getBaseStyles:d}=xe(),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})})},st=({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})})},ct=e=>{let{styles:n}=e,{getBaseStyles:r}=xe();return{aspectRatioStyles:t.useCallback((t,i)=>({...r(e,t,i),...n}),[r,e,n])}},lt=e=>{let{styles:n}=e,{getBaseStyles:r}=xe();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`})}},ut=e=>{let{className:r,children:i}=e,a=t.useRef(null),[o,s]=t.useState(0),[l,u]=t.useState(0),{centerStyles:d}=lt(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})},dt=e=>{let{maxWidth:n}=e,{getBaseStyles:r}=xe();return{containerStyles:t.useCallback((t,i)=>!t||!i?{}:{...r(e,t,i),maxWidth:n},[r,n,e])}},ft=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:_}=dt(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)(ut,{children:i}):i})},pt=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}},mt=(e,n)=>{let{getCurrentDevice:r}=xe(),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`})}},ht=e=>{let{styles:n}=e,{getBaseStyles:r}=xe();return{carouselStyles:t.useCallback((t,i)=>({...r(e,t,i),...n}),[r,e,n])}},gt=()=>({titleStyles:(0,l.css)({display:`-webkit-box`,overflow:`hidden`,textOverflow:`ellipsis`,WebkitLineClamp:`1`,WebkitBoxOrient:`vertical`,textAlign:`start`})}),_t=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}=ht(e),[g,_]=(0,u.default)(),v=gt(),{enableControls:y,embla__slide:b,embla__container:x,embla__viewport:S,embla__buttons:C}=mt(e,l),{prevBtnDisabled:w,nextBtnDisabled:T,onPrevButtonClick:E,onNextButtonClick:D}=pt(_);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))})})]})})},vt=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})}},H={xs:i.tokens.spacingHorizontalXS,s:i.tokens.spacingHorizontalS,m:i.tokens.spacingHorizontalM,l:i.tokens.spacingHorizontalL,xl:i.tokens.spacingHorizontalXL,xxl:i.tokens.spacingHorizontalXXL},U=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&&H[a]?H[a]:a,columnGap:o&&H[o]?H[o]:o,rowGap:s&&H[s]?H[s]:s,margin:c&&H[c]?H[c]:c,padding:u&&H[u]?H[u]:u,marginTop:d&&H[d]?H[d]:d,marginBottom:f&&H[f]?H[f]:f,marginLeft:p&&H[p]?H[p]:p,marginRight:m&&H[m]?H[m]:m,paddingTop:h&&H[h]?H[h]:h,paddingBottom:g&&H[g]?H[g]:g,paddingLeft:_&&H[_]?H[_]:_,paddingRight:v&&H[v]?H[v]:v,width:y,height:b,overflow:T,flexWrap:x?`wrap`:`nowrap`,backgroundColor:E,...C})),children:S}))),yt=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=vt(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)(U,{ref:_,className:[h.root,p].filter(Boolean).join(` `),style:{height:`100%`,width:`100%`,...m},direction:g?`horizontal`:`vertical`,overflow:`hidden`,children:[(0,n.jsx)(U,{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)(U,{className:h.resizerGrip,direction:g?`vertical`:`horizontal`,alignItems:`center`,justifyContent:`center`,children:[(0,n.jsx)(U,{className:h.gripDot,children:``}),(0,n.jsx)(U,{className:h.gripDot,children:``}),(0,n.jsx)(U,{className:h.gripDot,children:``})]})}),(0,n.jsx)(U,{className:h.secondaryPane,style:{flex:1,minWidth:0,minHeight:0},children:f})]})},bt=({anchorPoint:e,isOpen:r,onClose:a,excludeRefs:o,children:s,theme:c})=>{let l=(0,t.useRef)(null),[u,d]=(0,t.useState)(null);(0,t.useLayoutEffect)(()=>{if(!r){d(null);return}if(l.current){let t=l.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),d({left:n,top:r})}},[e,r,s]);let p=t.default.useCallback(e=>{let t=e.target;if(l.current&&!l.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`,p)}),t=e=>{e.key===`Escape`&&a()};return document.addEventListener(`keydown`,t),()=>{cancelAnimationFrame(e),document.removeEventListener(`mousedown`,p),document.removeEventListener(`keydown`,t)}},[r,p,a]),!r)return null;let m=u||e;return f.default.createPortal(c?(0,n.jsx)(i.FluentProvider,{theme:c,children:(0,n.jsx)(i.Card,{ref:l,role:`dialog`,"aria-modal":`true`,style:{position:`fixed`,zIndex:1e3,top:m.top,left:m.left},children:s})}):(0,n.jsx)(i.Card,{ref:l,role:`dialog`,"aria-modal":`true`,style:{position:`fixed`,zIndex:1e3,top:m.top,left:m.left},children:s}),document.body)},xt=(0,i.makeStyles)({labelContainer:{display:`flex`,flexDirection:`row`,justifyContent:`flex-start`,alignItems:`center`,...i.shorthands.gap(`6px`)},iconStyles:{width:`26px`},item:{paddingLeft:`15px`}}),St=e=>{let{label:r,icon:a,isRequired:o}=e,s=xt();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?` *`:``})]})})},Ct=(0,i.makeStyles)({root:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`100%`,width:`100%`},spinner:{width:`100px`,height:`100px`}}),wt=e=>{let{size:t,label:r,labelPosition:a,style:o,className:s}=e,c=Ct();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`})})},Tt={xs:i.tokens.fontSizeBase200,s:i.tokens.fontSizeBase300,m:i.tokens.fontSizeBase400,l:i.tokens.fontSizeBase500,xl:i.tokens.fontSizeBase600,xxl:i.tokens.fontSizeHero700},W={xs:i.tokens.spacingHorizontalXS,s:i.tokens.spacingHorizontalS,m:i.tokens.spacingHorizontalM,l:i.tokens.spacingHorizontalL,xl:i.tokens.spacingHorizontalXL,xxl:i.tokens.spacingHorizontalXXL},Et={regular:i.tokens.fontWeightRegular,semibold:i.tokens.fontWeightSemibold,bold:i.tokens.fontWeightBold},Dt=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&&W[c]?W[c]:c,paddingTop:u&&W[u]?W[u]:u,paddingBottom:d&&W[d]?W[d]:d,paddingLeft:f&&W[f]?W[f]:f,paddingRight:p&&W[p]?W[p]:p,margin:m&&W[m]?W[m]:m,marginTop:h&&W[h]?W[h]:h,marginBottom:g&&W[g]?W[g]:g,marginLeft:_&&W[_]?W[_]:_,marginRight:v&&W[v]?W[v]:v}),D={...b,...r?{fontFamily:r}:{},...t?{fontSize:Tt[t]?Tt[t]:t}:{},...a?{fontWeight:Et[a]?Et[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})},Ot=e=>{let{onSelected:r,value:a,styles:o,options:s,apparence:c,shape:l,label:u}=e,d=t.useRef(),[f,p]=t.useState(a??s[0]),[m,h]=t.useState({option:[a?a?.key:s?.[0]?.key]}),g=t.useRef(null);t.useEffect(()=>{a!==void 0&&(p(a),h({option:[a.key]})),d.current=s.find(e=>e.key===(a?.key??s[0]?.key))?.icon},[a]);let[_,v]=t.useState(!1),y=t.useCallback((e,t)=>{v(t.open)},[]),b=t.useCallback(e=>e?.text??``,[]),x=t.useCallback((e,{name:t,checkedItems:n})=>{if(t===`option`){let e=n[0];p(s.find(t=>t.key===e)),h({option:n}),d.current=s.find(t=>t.key===e)?.icon,r(s.find(t=>t.key===e))}},[s,r]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(i.Field,{label:u,style:o,ref:g,children:(0,n.jsxs)(i.Menu,{open:_,onOpenChange:y,children:[(0,n.jsx)(i.MenuTrigger,{disableButtonEnhancement:!0,children:(0,n.jsx)(i.MenuButton,{shape:l??`circular`,icon:d.current,appearance:c??`secondary`,children:b(f)??`No data available`})}),(0,n.jsx)(i.MenuPopover,{children:(0,n.jsx)(i.MenuList,{onCheckedValueChange:x,checkedValues:m,style:{width:g.current?.offsetWidth},children:s.map(e=>(0,n.jsx)(i.MenuItemRadio,{name:`option`,value:e.key,icon:e.icon,disabled:e.disabled,children:b(e)},e.key))})})]})})})},kt=()=>({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`})}}}),At=({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}=kt();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)]})},jt=(e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}},Mt=({items:e,maxWidth:r=`100%`,styles:a,theme:o,size:s=`medium`,currentIndex:l=e.length-1,className:u})=>{let{styles:f,getStyles:p}=kt(),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=jt(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)(V,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`start`,children:[h.map((e,r)=>(0,n.jsxs)(t.default.Fragment,{children:[r===l?(0,n.jsxs)(V,{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)(At,{items:_,theme:o})]})})},Nt=({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}})})},Pt=t.default.memo(Nt),Ft=()=>({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),[])}),It={start:`Start`,end:`End`,location:`Location`,attendees:`Attendees`,details:`Details`},Lt=`32px`,Rt=e=>({styles:{banner:(0,l.css)({display:`flex`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,padding:`5px 10px 0px 10px`}),fieldContainer:(0,l.css)({paddingLeft:Lt}),title:(0,l.css)({lineClamp:2,overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,wordBreak:`break-word`,WebkitLineClamp:2})}}),zt=({fieldLabel:e,fieldValue:t,icon:r})=>(0,n.jsxs)(V,{children:[(0,n.jsx)(St,{label:e,icon:r}),(0,n.jsx)(V,{paddingLeft:Lt,children:(0,n.jsx)(i.Body1,{children:t})})]}),Bt=e=>{let{event:r,strings:a=It}=e,{title:o,start:s,end:c,location:l,category:u,attendees:d,weblink:f}=r,{styles:p}=Rt(r),{formatDate:m}=Ft(),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)(V,{children:[(0,n.jsx)(St,{label:a.attendees,icon:`ph:users-three`}),(0,n.jsx)(V,{paddingLeft:Lt,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)(Xe,{appearance:`subtle`,padding:`m`,paddingTop:`s`,width:`250px`,cardBody:(0,n.jsxs)(V,{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)(V,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:(0,n.jsx)(i.Badge,{appearance:`filled`,children:u})}),(0,n.jsx)(zt,{fieldLabel:a.start,fieldValue:h,icon:`mingcute:time-line`}),(0,n.jsx)(zt,{fieldLabel:a.end,fieldValue:g,icon:`mingcute:time-line`}),(0,n.jsx)(zt,{fieldLabel:a.location,fieldValue:l,icon:`mingcute:location-line`}),(0,n.jsx)(y,{})]}),cardFooterContent:(0,n.jsx)(V,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:(0,n.jsx)(i.Button,{appearance:`subtle`,onClick:()=>{window.open(f,`_blank`)},children:a.details})})})})},Vt=()=>({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}})}),Ht=e=>{let r=(0,i.useId)(),{events:o,date:s,onCardHoverChange:c,columnHeight:l}=e,{styles:u,applyEventHouverColorClass:d}=Vt(),f=t.useRef(null),{getEventColors:p,getCalendarColors:m}=Ft(),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)(Xe,{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)(Bt,{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.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)})})},Ut=e=>{let{day:r,currentMonth:o,events:s,date:c,columnHeight:l,onDayClick:u}=e,{styles:d}=Vt(),f=new Date,[p,m]=t.useState(!1),h=t.useMemo(()=>(0,a.isSameDay)(c,f),[c,f]),g=t.useMemo(()=>(0,n.jsx)(V,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,paddingLeft:`m`,paddingRight:`m`,children:(0,n.jsxs)(i.Body2,{className:d.currentDayLabel,children:[r,` `,f.toLocaleString(`default`,{month:`short`})]})}),[r]),_=t.useCallback(e=>{m(e)},[]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(Xe,{onClick:u?()=>u(c):void 0,className:(0,i.mergeClasses)(d.cardDay,o?``:d.otherMonthDay,h?d.currentDay:``,p?``:d.cardDayOnHover),cardHeader:h?g:(0,n.jsx)(V,{horizontal:!0,paddingLeft:`m`,paddingRight:`m`,children:(0,n.jsx)(i.Body2,{children:r})}),paddingTop:`m`,paddingBottom:`m`,paddingLeft:`0px`,paddingRight:`0px`,cardBody:(0,n.jsx)(Ht,{events:s,date:c,onCardHoverChange:_,columnHeight:l-60})})})},Wt=()=>({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}),[])}),Gt={timeSeparator:` - `,hourSuffix:`H`},Kt=({event:e,colors:r,spanSlots:a,rowHeight:o,eventIndex:s,eventCount:c,strings:l=Gt})=>{let u=(0,i.useId)(),{styles:d,applyEventHouverColorClass:f,appyDynamicStyles:p}=Wt(),m=t.useRef(null),{formatDate:h}=Ft(),g=t.useMemo(()=>(0,n.jsx)(`div`,{children:(0,n.jsxs)(V,{columnGap:4,verticalAlign:`center`,children:[(0,n.jsx)(i.Caption1Strong,{className:d.eventTitle,children:e.title}),(0,n.jsxs)(V,{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)(Bt,{event:e})})]}):g},e.id)},qt=({event:e,eventCount:r,spanSlots:a,rowHeight:o,eventIndex:s,view:c})=>{let{styles:l,appyDynamicStyles:u}=Wt(),{getEventColors:d,getCalendarColors:f}=Ft(),p=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)(Kt,{event:e,colors:p,spanSlots:a,rowHeight:o,eventIndex:s,eventCount:r},e.id)},Jt=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])}},Yt=()=>({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}})}),Xt={allDay:`All Day`},Zt=33,Qt=e=>{let{events:r,currentDay:o,height:s,strings:c=Xt}=e,{styles:l}=Yt(),u=(0,t.useRef)(null),{getSpanSlots:d,getEventColors:f,getCalendarColors:p}=Ft(),m=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:h}=Jt(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)(qt,{event:e,eventCount:r,spanSlots:a,rowHeight:Zt,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()]})})},G=function(e){return e.Day=`day`,e.Week=`week`,e.Month=`month`,e}({}),$t={month:`Month`,week:`Week`,day:`Day`},en=e=>{let{onSelected:r,value:a,strings:o=$t}=e,[s,c]=t.useState(a??G.Month),[l,u]=t.useState({view:[a??G.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 G.Month:return(0,n.jsx)(p,{});case G.Week:return(0,n.jsx)(m,{});case G.Day:return(0,n.jsx)(f,{});default:return(0,n.jsx)(p,{})}},[s]),y=t.useCallback(e=>{switch(e){case G.Month:return o.month;case G.Week:return o.week;case G.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:G.Day,children:o.day}),(0,n.jsx)(i.MenuItemRadio,{icon:(0,n.jsx)(m,{}),name:`view`,value:G.Week,children:o.week}),(0,n.jsx)(i.MenuItemRadio,{icon:(0,n.jsx)(p,{}),name:`view`,value:G.Month,children:o.month})]})})]})})},tn=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})})})]})}),nn=()=>({root:(0,l.css)({outline:`none`})}),rn={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`},an=e=>{let{onDateChange:r,defaultSelectedDate:i,onDismiss:a,strings:o=rn}=e,s=nn(),[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})})},on=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)(an,{onDateChange:m,defaultSelectedDate:c,onDismiss:()=>{f(!1)}})})})]})})},sn={selectWeekPlaceholder:`Select a week`},cn=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})}`},ln=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)}},un=t.memo(e=>{let{onSelected:r,value:a,strings:o=sn}=e,s=h.DateRangeType.Week,[c,l]=t.useState(a??new Date),[u,f]=t.useState(()=>{let e=a??new Date;return e?cn(ln(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=ln(e);f(cn(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})})})]})}),dn={today:`Today`,previous:`Previous`,next:`Next`},fn=t.memo(({selectedView:e,onSelectedView:r,currentDate:a,setCurrentDate:o,onWeekChange:s,onMonthChange:c,onDayChange:l,strings:u=dn})=>{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 G.Month:return(0,n.jsx)(on,{onSelected:h,value:a});case G.Week:return(0,n.jsx)(un,{onSelected:m,value:a});case G.Day:return(0,n.jsx)(tn,{onSelected:g,value:a});default:return(0,n.jsx)(on,{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 G.Month:n.setMonth(n.getMonth()+t),c(n);break;case G.Week:n.setDate(n.getDate()+t*7),s(n);break;case G.Day:n.setDate(n.getDate()+t),l(n);break;default:break}o(n)},[a,e,c,s,l,o]);return(0,n.jsxs)(V,{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)(V,{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)(V,{horizontal:!0,horizontalAlign:`start`,verticalAlign:`center`,columnGap:10,children:(0,n.jsx)(en,{onSelected:r,value:e})})]})}),pn={allDay:`All Day`},mn=e=>{let{events:r,currentDay:o,height:s,strings:l=pn}=e,{styles:u}=Wt(),[d]=(0,t.useState)(o),[f,p]=(0,t.useState)(32),m=(0,t.useRef)(null),{getSpanSlots:h,getEventColors:g,getCalendarColors:_,formatDate:v}=Ft(),y=(0,a.startOfWeek)(d,{weekStartsOn:0}),b=Intl.DateTimeFormat().resolvedOptions().timeZone,{getWeekEvents:x}=Jt(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)(qt,{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()]})})},hn={daysOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},gn=({currentDate:e,rowHeight:t,getCalendarDays:r,getEventsForDay:a,styles:o,onDaySlotClick:s,height:c,calendarRef:l,strings:u})=>{let d=u?.daysOfWeek||hn.daysOfWeek;return(0,n.jsx)(V,{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=>(0,n.jsx)(i.Body1,{className:o.dayHeader,role:`columnheader`,children:e},e)),r(e).map((e,r)=>{let{day:i,currentMonth:o}=e,c=o?a(e):[];return(0,n.jsx)(Ut,{day:i,date:e.date,currentMonth:e.currentMonth,events:c,columnHeight:t||0,onDayClick:s},r)})]})})},_n=t.memo(({events:e,currentDay:t,height:r,strings:i})=>(0,n.jsx)(mn,{events:e,currentDay:t,height:r,strings:i})),vn=t.memo(({events:e,currentDay:t,height:r,strings:i})=>(0,n.jsx)(Qt,{currentDay:t,events:e,height:r,strings:i})),yn=({events:e,height:r=800,theme:o,onDayChange:s,onMonthChange:l,onWeekChange:u,onViewChange:d,onDaySlotClick:f,defaultView:p,strings:m})=>{let{styles:h}=Vt(),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??G.Month),{getMonthCalendar:w}=Jt(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||G.Month)},[p]);let M=t.useCallback(()=>{switch(S){case G.Month:return(0,n.jsx)(gn,{events:e,currentDate:b,rowHeight:_,getCalendarDays:T,getEventsForDay:A,styles:h,onDaySlotClick:f,height:r,calendarRef:g,strings:m?.calendarControl});case G.Week:return(0,n.jsx)(_n,{events:e,currentDay:b,height:r,strings:m?.weekView});case G.Day:return(0,n.jsx)(vn,{events:e,currentDay:b,height:r,strings:m?.dayView});default:return(0,n.jsx)(gn,{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)(V,{height:`100%`,verticalAlign:`start`,children:[(0,n.jsx)(fn,{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})})},bn=()=>({styles:{root:(0,l.css)({containerType:`inline-size`}),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}`}),weekdaysCorner:(0,l.css)({flex:`0 0 32px`}),weekday:(0,l.css)({flex:`1 1 calc(100% / 7)`,textAlign:`center`,textTransform:`capitalize`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`default`,userSelect:`none`,paddingBlock:`4px`}),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`}),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}}),xn=e=>(0,a.getISOWeek)(e[0]),Sn=t.memo(e=>{let{weeks:r,date:o,selectedDate:s,today:c,orderedShortDays:l,groupedEvents:u,weekendDays:d,highlightToday:f,withOutsideDays:p,withWeekNumbers:m,onDayClick:h,getEventColor:g,locale:_}=e,{styles:v}=bn(),y=t.useRef([]),b=t.useRef(null);b.current=null;let x=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=y.current[r]?.[i];a&&a instanceof HTMLElement&&a.focus()},[]),S=t.useMemo(()=>(0,n.jsxs)(U,{direction:`horizontal`,marginBottom:i.tokens.spacingVerticalXS,children:[m&&(0,n.jsx)(`div`,{className:v.weekdaysCorner}),l.map((e,t)=>(0,n.jsx)(Dt,{as:`span`,fontSize:`clamp(6px, 3.5cqw, 22px)`,fontWeight:`semibold`,color:i.tokens.colorNeutralForeground3,className:v.weekday,children:e},t))]}),[l,m,v.weekdaysCorner,v.weekday]),C=t.useMemo(()=>r.map((e,t)=>{let r=e.map((e,r)=>{let l=!(0,a.isSameMonth)(e,o),m=d.includes((0,a.getDay)(e)),S=(0,a.isSameDay)(e,c)&&f,C=s?(0,a.isSameDay)(e,s):!1,w=u[(0,a.format)(e,`yyyy-MM-dd`)]||[],T=p||!l;T&&b.current===null&&(b.current={weekIndex:t,dayIndex:r});let E=b.current?.weekIndex===t&&b.current?.dayIndex===r,D=w.slice(0,3).map(e=>(0,n.jsx)(`div`,{className:v.dayIndicator,style:{backgroundColor:g(e)}},e.id));return(0,n.jsxs)(i.Button,{appearance:`transparent`,className:(0,i.mergeClasses)(v.day,!T&&v.dayHidden,l&&T&&!C&&!m&&v.dayOutside,m&&T&&!C&&v.dayWeekend,S&&!C&&v.dayToday,C&&v.daySelected),"aria-label":(0,a.format)(e,`MMMM d, yyyy`,{locale:_}),"aria-selected":C||void 0,tabIndex:T&&E?0:-1,onClick:T?()=>h(e):void 0,onKeyDown:T?e=>x(t,r,e):void 0,ref:e=>{y.current[t]||(y.current[t]=[]),y.current[t][r]=e},children:[T?e.getDate():null,T&&(0,n.jsx)(U,{direction:`horizontal`,justifyContent:`center`,className:v.dayIndicators,children:D})]},e.toISOString())}),l=xn(e);return(0,n.jsxs)(U,{direction:`horizontal`,children:[m&&(0,n.jsx)(Dt,{fontSize:`xs`,color:i.tokens.colorNeutralForeground3,className:v.weekNumber,children:l}),r]},t)}),[r,o,s,c,d,f,p,m,u,g,h,x,v,_]);return(0,n.jsxs)(U,{direction:`vertical`,padding:i.tokens.spacingVerticalS,className:v.calendar,children:[S,C]})}),Cn=t.memo(e=>{let{date:r,renderHeader:o,onYearClick:s,locale:c}=e,{styles:l}=bn(),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)(Dt,{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)(U,{direction:`horizontal`,alignItems:`center`,justifyContent:`space-between`,padding:i.tokens.spacingVerticalS,className:l.header,children:p})}),wn=e=>{let{events:r,header:o,allDayLabel:s,noEventsLabel:c,onEventClick:l,renderEvent:u,getEventColor:d,locale:f}=e,{styles:p}=bn(),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.jsx)(Xe,{className:p.event,onClick:t=>l?.(e,t),cardBody:(0,n.jsxs)(U,{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)(U,{direction:`vertical`,children:[(0,n.jsx)(Dt,{as:`span`,fontWeight:`semibold`,fontSize:`s`,children:e.title}),(0,n.jsx)(Dt,{as:`span`,fontSize:`xs`,color:p.eventTimeColor,children:o?s:`${t} – ${r}`})]})]})},e.id)},[s,d,l,p]);return(0,n.jsxs)(U,{direction:`vertical`,padding:i.tokens.spacingVerticalS,className:p.eventsList,children:[(0,n.jsx)(Dt,{as:`span`,fontWeight:`bold`,marginBottom:i.tokens.spacingVerticalS,className:p.eventsHeader,children:o}),(0,n.jsx)(U,{direction:`vertical`,gap:`s`,style:{backgroundColor:i.tokens.colorNeutralBackground2},padding:`s`,children:r.length>0?r.map(e=>u?u(e,m(e)):m(e)):(0,n.jsx)(Dt,{block:!0,color:i.tokens.colorNeutralForeground3,paddingTop:i.tokens.spacingVerticalXXL,paddingBottom:i.tokens.spacingVerticalXXL,style:{textAlign:`center`},children:c})})]})},Tn=e=>{let t=(0,a.startOfDay)(new Date(e.start)),n=(0,a.startOfDay)(new Date(e.end));return t.getTime()!==n.getTime()},En=(e,t)=>{if(Tn(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)},Dn=(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),En(i,n)}return n},On=(e,n)=>(0,t.useMemo)(()=>Dn(e,n),[e,n]),kn={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 An(e){return e?typeof e==`object`&&e?e:kn[e]||(kn[e.split(`-`)[0].toLowerCase()]??o.enUS):o.enUS}var jn=[0,6],Mn=(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},Nn=r=>{let{date:o,selectedDate:s,defaultSelectedDate:c,onSelectedDateChange:l,withWeekNumbers:u=!1,firstDayOfWeek:d=1,weekendDays:f=jn,consistentWeeks:p=!0,highlightToday:m=!0,withOutsideDays:h=!1,events:g,onDayClick:_,onEventClick:v,onYearClick:y,renderHeader:b,renderEvent:x,eventsHeaderFormat:S=`EEEE, MMMM d`,locale:C,height:w,className:T,strings:E}=r,{styles:D}=bn(),{getCalendarColors:O}=Ft(),k=e.s(),A=e.m(),j=t.useMemo(()=>An(C??A?.locale),[C,A?.locale]),[M,N]=t.useState(c??new Date),P=s===void 0?M:s,F=t.useCallback(e=>{s===void 0&&N(e),l?.(e)},[s,l]),I=t.useMemo(()=>new Date,[]),L=On(o,g),R=E?.shortDays??k.shortDays,z=t.useMemo(()=>{let e=[];for(let t=0;t<7;t++)e.push(R[(d+t)%7]);return e},[R,d]),ee=t.useMemo(()=>Mn(o,d,p),[o,d,p]),te=t.useCallback(e=>e.color?O(e.color).backgroundColor:O(`royal-blue`).backgroundColor,[O]),ne=t.useCallback(e=>{F(e),_?.(e)},[F,_]),re=P?(0,a.format)(P,`yyyy-MM-dd`):``,B=re?(L[re]||[]).sort((e,t)=>new Date(e.start).getTime()-new Date(t.start).getTime()):[],ie=P?(0,a.format)(P,S,{locale:j}):``;return(0,n.jsxs)(U,{direction:`vertical`,height:w??`100%`,className:(0,i.mergeClasses)(D.root,T),children:[(0,n.jsx)(Cn,{date:o,renderHeader:b,onYearClick:y,locale:j}),(0,n.jsx)(Sn,{weeks:ee,date:o,selectedDate:P,today:I,orderedShortDays:z,groupedEvents:L,weekendDays:f,highlightToday:m,withOutsideDays:h,withWeekNumbers:u,onDayClick:ne,getEventColor:te,locale:j}),(0,n.jsx)(wn,{events:B,header:ie,allDayLabel:E?.allDay??k.allDay,noEventsLabel:E?.noEvents??k.noEvents,onEventClick:v,renderEvent:x,getEventColor:te,locale:j})]})},Pn=(0,g.atom)(!1),Fn=(0,g.atom)(-1),In=(0,g.atom)(``),Ln=(0,g.atom)(``),Rn=(0,g.atom)(new Set),zn=(0,g.atom)(!0),Bn=(0,g.atom)(void 0);function Vn(){return(0,g.createStore)()}var Hn=Vn();function Un(e){return{opened:e.get(Pn),selected:e.get(Fn),listId:e.get(In),query:e.get(Ln),registeredActions:e.get(Rn)}}var K={open(e){e.set(Pn,!0),e.set(Fn,-1)},close(e){e.set(Pn,!1)},toggle(e){e.get(Pn)?e.set(Pn,!1):(e.set(Pn,!0),e.set(Fn,-1))},setQuery(e,t){t.get(Bn)?.(e),t.set(Ln,e),Promise.resolve().then(()=>{K.selectAction(0,t)})},setListId(e,t){t.set(In,e)},selectAction(e,t){let n=t.get(In),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(Fn,-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(Fn,s),s},selectNextAction(e){return K.selectAction(e.get(Fn)+1,e)},selectPreviousAction(e){return K.selectAction(e.get(Fn)-1,e)},triggerSelectedAction(e){let t=e.get(In);(t?document.querySelector(`#${t} [data-spotlight-selected]`):null)?.click()},clearState(e,t){t.set(Fn,-1),e.clearQuery&&t.set(Ln,``)}},Wn={open:()=>K.open(Hn),close:()=>K.close(Hn),toggle:()=>K.toggle(Hn)},Gn=Wn.open,Kn=Wn.close,qn=Wn.toggle;function Jn(){let e=Vn();return[e,{open:()=>K.open(e),close:()=>K.close(e),toggle:()=>K.toggle(e)}]}function Yn(e=Hn){let[n,r]=(0,t.useState)(()=>Un(e));return(0,t.useEffect)(()=>{let t=()=>r(Un(e)),n=[e.sub(Pn,t),e.sub(Fn,t),e.sub(In,t),e.sub(Ln,t),e.sub(Rn,t)];return t(),()=>n.forEach(e=>e())},[e]),n}function Xn(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 Zn(e,n=Hn,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=Xn(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(),K.toggle(n);return}}},[e,n,r]);(0,t.useEffect)(()=>{if(e)return document.addEventListener(`keydown`,i),()=>document.removeEventListener(`keydown`,i)},[e,i])}var Qn=()=>({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)`}})}),$n=({store:e=Hn,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=Qn(),{opened:S}=Yn(e),C=(0,t.useRef)(S);(0,t.useEffect)(()=>{e.set(zn,p)},[e,p]),(0,t.useEffect)(()=>{e.set(Bn,a)},[e,a]),(0,t.useEffect)(()=>{typeof r==`string`&&e.set(Ln,r)},[e,r]),Zn(s,e,c),(0,t.useEffect)(()=>{C.current!==S&&(C.current=S,S?u?.():(d?.(),o&&K.setQuery(``,e),K.clearState({clearQuery:o},e)))},[S,u,d,o,e]);let w=(0,t.useCallback)(()=>{K.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||K.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})})})]})})},er=()=>({searchBoxStyles:_.css`
32
32
  border: 1px solid ${i.tokens.colorNeutralStroke2};
33
33
  border-radius: 50px;
34
34
  background-color: ${i.tokens.colorNeutralBackground1};
@@ -82,7 +82,7 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
82
82
  box-shadow: none !important;
83
83
  }
84
84
  }
85
- `,searchBoxNormalStyles:g.css`
85
+ `,searchBoxNormalStyles:_.css`
86
86
  border: 1px solid ${i.tokens.colorNeutralStroke2};
87
87
  border-radius: ${i.tokens.borderRadiusMedium};
88
88
  background-color: ${i.tokens.colorNeutralBackground1};
@@ -136,12 +136,27 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
136
136
  box-shadow: none !important;
137
137
  }
138
138
  }
139
- `,iconWrapperStyles:g.css`
139
+ `,iconWrapperStyles:_.css`
140
140
  display: flex;
141
141
  align-items: center;
142
142
  padding: 2px;
143
143
  margin-right: 8px;
144
- `}),bn=({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)(``),v=(0,t.useRef)(null),{searchBoxStyles:y,searchBoxNormalStyles:b,iconWrapperStyles:x}=yn(),S=e.g(),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(``),v.current?.blur(),o?.(),r?.(``)},[w,o,r]),k=(0,t.useCallback)(e=>{e.key===`Enter`&&T.trim()?r?.(T.trim()):e.key===`Escape`&&(v.current?.blur(),w||g(``),o?.())},[T,w,r,o]);return(0,_.jsx)(i.SearchBox,{ref:v,css:E,className:c,style:{width:l},placeholder:C,value:T,onChange:D,onKeyDown:k,disabled:s,size:m,contentBefore:p??(0,_.jsx)(`span`,{css:x,children:(0,_.jsx)(d.SearchRegular,{})}),dismiss:{onClick:O}})},xn=({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)(W,{gap:`s`,children:[a&&(0,n.jsx)(i.Label,{children:a}),(0,n.jsx)(Ct,{options:l,onSelected:d,styles:s?{minWidth:s}:c??{}})]})},Sn=()=>({menuButton:(0,l.css)({minWidth:200}),popover:(0,l.css)({padding:i.tokens.spacingVerticalS,minWidth:200}),timePicker:(0,l.css)({width:`100%`})}),Cn=()=>({root:(0,l.css)({maxHeight:280,overflowY:`auto`,padding:`${i.tokens.spacingVerticalXS} 0`}),item:(0,l.css)({cursor:`pointer`})}),wn=`time`,Tn=(e,t,n)=>{let r=new Date(e);return r.setHours(t,n,0,0),r},En=(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)},Dn=e=>`${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`,On=(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(Tn(r,t,n))}return i},kn=t.memo(e=>{let{onTimeSelect:r,hourCycle:a,showSeconds:o=!1,startHour:s=0,endHour:c=24,increment:l=30,dateAnchor:u}=e,f=Cn(),p=t.useMemo(()=>u??new Date,[u]),m=t.useMemo(()=>On(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=En(e,a,o),r=Dn(e);return(0,n.jsx)(i.MenuItemRadio,{name:wn,value:r,onClick:h(e,t),icon:(0,n.jsx)(d.ClockRegular,{}),className:f.item,children:t},r)})})}),An=(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},jn=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=Sn(),h=t.useMemo(()=>An(f,p),[f,p]),g=a??h,[_,v]=t.useState(g),[y,b]=t.useState(()=>En(g,s,c)),[x,S]=t.useState(!1);t.useEffect(()=>{a&&(v(a),b(En(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(()=>_?{[wn]:[Dn(_)]}:{[wn]:[]},[_]),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)(kn,{value:_,onTimeSelect:E,hourCycle:s,showSeconds:c,startHour:l,endHour:u,increment:f,dateAnchor:p})})})]})}),Mn=()=>({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`}})}),Nn=({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=Mn(),b=e.l(),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})})]})})},q={xs:i.tokens.spacingHorizontalXS,s:i.tokens.spacingHorizontalS,m:i.tokens.spacingHorizontalM,l:i.tokens.spacingHorizontalL,xl:i.tokens.spacingHorizontalXL,xxl:i.tokens.spacingHorizontalXXL},Pn=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&&q[a]?q[a]:a,columnGap:o&&q[o]?q[o]:o,rowGap:s&&q[s]?q[s]:s,margin:c&&q[c]?q[c]:c,padding:u&&q[u]?q[u]:u,marginTop:d&&q[d]?q[d]:d,marginBottom:f&&q[f]?q[f]:f,marginLeft:p&&q[p]?q[p]:p,marginRight:m&&q[m]?q[m]:m,paddingTop:h&&q[h]?q[h]:h,paddingBottom:g&&q[g]?q[g]:g,paddingLeft:_&&q[_]?q[_]:_,paddingRight:v&&q[v]?q[v]:v,width:y,height:b,overflow:T,flexWrap:x?`wrap`:`nowrap`,backgroundColor:E,...C})),children:S})),Fn=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`}})}}),In=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}=Fn(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)(Pn,{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,{})]})})},Ln=(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 Rn(e,r){let a=Ln().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:y,isLoadingDataMessage:b,dataGridBodyClassName:x,dataGridBodyStyles:S,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 z=(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]))},te=(e,t)=>{m&&m(t)},[ne,re]=t.useState(null),ie=t.useMemo(()=>new Map(s.map((e,t)=>[e,t])),[s]);t.useEffect(()=>{u===`row`&&ne!=null&&ne>=s.length&&re(null)},[s,ne,u]),t.useEffect(()=>{C&&u===`row`&&re(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),re(null)},getSelectedRow:()=>ne!==null&&ne<s.length?{item:s[ne],index:ne}:null,setSelectedRow:e=>{let t=s.findIndex(t=>t===e);t!==-1&&(re(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:[y&&(0,n.jsx)(W,{alignItems:`center`,justifyContent:`center`,height:`${A}px`,children:t.isValidElement(b)?b:(0,n.jsxs)(i.Spinner,{size:`extra-tiny`,children:[` `,b??`Loading data...`,` `]})}),!y&&s.length?(0,n.jsxs)(v.DataGrid,{items:s,columns:ee,sortable:c,onSortChange:c?te:void 0,selectionMode:u===`none`||u===`row`?void 0:u===`multiple`?`multiselect`:u===`single`?`single`:void 0,selectedItems:F,onSelectionChange:z,defaultSortState:p,resizableColumns:l,columnSizingOptions:h,resizableColumnsOptions:g,focusMode:`cell`,className:(0,i.mergeClasses)(x,a),style:S,children:[(0,n.jsx)(v.DataGridHeader,{children:(0,n.jsx)(v.DataGridRow,{children:({renderHeaderCell:e})=>(0,n.jsx)(v.DataGridHeaderCell,{children:e()})})}),(0,n.jsx)(v.DataGridBody,{itemSize:j,height:A,width:`100%`,listProps:{onItemsRendered:de},className:a,children:(e,t)=>(()=>{let r=e.item,a=ie.get(r)??s.indexOf(r),o=u===`row`,c=o&&ne===a,l=e=>{re(a),d?.([r]),N?.(r,a)};return(0,n.jsx)(v.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)(v.DataGridCell,{children:e(r)})})})()})]},L):!y&&!s.length?(0,n.jsx)(`div`,{children:_}):null]})}var zn=t.forwardRef(Rn);zn.displayName=`DataGridV2`;var Bn=200,Vn=(0,i.makeStyles)({dialog:{overflow:`visible`},dialogBody:{overflow:`visible`}}),Hn=e=>{let{isOpen:t,dialogTitle:r,dialogActions:a,children:o,maxWidth:s,className:c,minHeight:l,minWidth:u,maxHeight:d}=e,f=Vn();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??Bn,...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,{})},Un=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})},Wn=e=>{let{onDismiss:r,title:a,description:o,icon:s,showCloseButton:c=!0}=e;return(0,n.jsxs)(W,{direction:`vertical`,width:`100%`,children:[(0,n.jsx)(W,{direction:`horizontal`,padding:`s`,gap:`l`,justifyContent:`space-between`,children:(0,n.jsxs)(W,{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)(W,{direction:`vertical`,justifyContent:`flex-start`,alignItems:`flex-start`,width:`100%`,children:[t.isValidElement(a)?a:(0,n.jsxs)(W,{direction:`horizontal`,justifyContent:`space-between`,gap:`l`,width:`100%`,children:[(0,n.jsx)(St,{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}})]})},Gn=()=>({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%`})}),Kn=({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)(Hn,{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`)})})},qn=()=>(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})}),[]),Jn=({title:e,message:t})=>{let r=qn();return(0,n.jsx)(i.Card,{className:r.container,role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`,children:(0,n.jsxs)(W,{gap:`l`,alignItems:`center`,children:[(0,n.jsx)(d.ErrorCircleRegular,{className:r.icon,"aria-hidden":`true`,focusable:!1}),(0,n.jsxs)(W,{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})]})]})})},Yn=(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%`}}),Xn=e=>{let{messageType:r,children:a,message:o}=e,s=Yn(),[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 F.SUCCESS:l((0,n.jsx)(d.CheckmarkCircle32Regular,{primaryFill:i.tokens.colorStatusSuccessForeground1}));break;case F.INFO:l((0,n.jsx)(d.Info32Regular,{primaryFill:i.tokens.colorStatusWarningForeground1}));break;default:break}},[r]),r===F.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]})})},Zn=()=>({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})}),Qn=({items:e,selectedItemId:r,onSelectedItem:a,renderControl:o,theme:s})=>{let c=Zn(),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)(er,{items:e,onSelectedItem:l,theme:s}),` `]})]})})},$n=({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),er=({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)($n,{item:e,onSelectedItem:r},e.id))})})]})})}):null},tr=({id:e,children:t})=>(0,i.useIsOverflowItemVisible)(e)?null:(0,n.jsx)(i.MenuItem,{children:t}),nr=({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)(tr,{id:r(e),children:t(e)},r(e)))})})]}):null},rr=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})]})});rr.displayName=`Navigation`;var ir=()=>({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`})}),ar=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`})}),or=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=ar(e);return(0,n.jsx)(`div`,{className:d.videoPlayerContainer,role:`region`,"aria-label":`Video player`,children:(0,n.jsx)(y.default,{url:r,controls:i,width:a,height:o,playing:l,loop:s,muted:c,onPause:()=>u(!1),onPlay:()=>u(!0),className:d.reactPlayer})})},sr=`.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}`,cr=`spteck-react-controls-maplibre-styles`,lr=e=>{let t=e??(typeof document<`u`?document:void 0);if(!t||t.getElementById(cr))return;let n=t.createElement(`style`);n.id=cr,n.textContent=sr,t.head.appendChild(n)},ur=l.css`
144
+ `}),tr=({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}=er(),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}})},nr=t.memo(function({placeholder:r,size:i=`large`,onKeyDown:a,onChange:o,className:s}){let c=(0,g.useStore)(),u=(0,g.useAtomValue)(Ln),d=Qn(),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=>{K.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(),K.selectNextAction(c)),e.key===`ArrowUp`&&(e.preventDefault(),K.selectPreviousAction(c)),e.key===`Enter`&&(e.preventDefault(),K.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)(U,{ref:h,className:`${d.search}${s?` ${s}`:``}`,children:(0,n.jsx)(tr,{value:u,onChange:y,placeholder:v,size:i,shape:`circular`,className:(0,l.css)({maxWidth:`100% !important`})})})});function rr({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 ir=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)(Ln),m=(0,g.useAtomValue)(zn),h=Qn(),_=(0,t.useMemo)(()=>e=>{u?.(e),(l??m)&&K.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)(Dt,{as:`span`,fontSize:`m`,fontWeight:`regular`,children:(0,n.jsx)(rr,{text:e,query:p,highlightClassName:h.highlight})}):(0,n.jsx)(Dt,{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)(U,{direction:`horizontal`,alignItems:`start`,justifyContent:`start`,className:h.actionSectionLeft,children:a}),(0,n.jsxs)(U,{direction:`vertical`,gap:`none`,className:h.actionBody,children:[y,r&&(0,n.jsx)(Dt,{as:`span`,fontSize:`xs`,color:`dimmed`,className:h.actionDescription,numberOfLines:1,children:r})]}),o&&(0,n.jsx)(U,{direction:`horizontal`,alignItems:`center`,justifyContent:`center`,className:h.actionSectionRight,children:o})]})})}),ar=t.memo(function({label:e,children:t,className:r}){let i=Qn();return(0,n.jsxs)(U,{direction:`vertical`,className:`${i.actionsGroup}${r?` ${r}`:``}`,children:[e&&(0,n.jsx)(Dt,{as:`span`,fontSize:`xs`,fontWeight:`bold`,color:`dimmed`,className:i.actionsGroupLabel,children:e}),t]})}),or=t.memo(function({children:e,className:r,id:i}){let a=(0,g.useStore)(),o=Qn(),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)(()=>(K.setListId(c,a),()=>K.setListId(``,a)),[c,a]),(0,n.jsx)(U,{ref:l,direction:`vertical`,padding:`xs`,className:`${o.actionsList}${r?` ${r}`:``}`,children:e})}),sr=t.memo(function({children:e,className:t}){return(0,n.jsx)(U,{direction:`vertical`,alignItems:`center`,justifyContent:`center`,padding:`l`,className:t,children:(0,n.jsx)(Dt,{as:`p`,fontSize:`s`,color:`dimmed`,children:e})})}),cr=t.memo(function({children:e,className:t}){let r=Qn();return(0,n.jsx)(U,{padding:`${i.tokens.spacingVerticalS} ${i.tokens.spacingHorizontalL}`,className:`${r.footer}${t?` ${t}`:``}`,children:e})}),lr=e=>Array.isArray(e)?e.map(e=>e.trim()).join(`,`).toLowerCase().trim():typeof e==`string`?e.toLowerCase().trim():``,ur=e=>e.group!==void 0&&Array.isArray(e.actions),dr=e=>e.reduce((e,t)=>ur(t)?[...e,...t.actions.map(e=>({...e,group:t.group}))]:[...e,t],[]),fr=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},pr=(e,t)=>{let n=(e??``).trim().toLowerCase();if(!n)return t;let r=[[],[]];return dr(t).forEach(e=>{e.label?.toLowerCase().includes(n)?r[0].push(e):(e.description?.toLowerCase().includes(n)||lr(e.keywords).includes(n))&&r[1].push(e)}),fr(r.flat())},mr=(e,t)=>{if(!Array.isArray(e))return[];let n=0;return e.reduce((e,r)=>{if(n>=t)return e;if(ur(r)){let i=mr(r.actions,t-n);e.push({group:r.group,actions:i}),n+=i.length}else e.push(r),n+=1;return e},[])},hr=({searchProps:r,actions:i,filter:a=pr,nothingFound:o,highlightQuery:s=!1,limit:c=1/0,query:l,onQueryChange:u,store:d=Hn,...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)(()=>mr(a(_,i),c),[_,i,a,c]),b=o??p.nothingFound,x=(0,t.useMemo)(()=>y.map(e=>{if(ur(e)){let t=e.actions.map(({id:e,...t})=>(0,n.jsx)(ir,{highlightQuery:s,...t},e));return(0,n.jsx)(ar,{label:e.group,children:t},e.group)}return(0,n.jsx)(ir,{highlightQuery:s,...e},e.id)}),[y,s]);return(0,n.jsxs)($n,{...f,store:d,query:_,onQueryChange:v,children:[(0,n.jsx)(nr,{...r}),x.length>0&&(0,n.jsx)(or,{children:x}),x.length===0&&b&&(0,n.jsx)(sr,{children:b})]})};hr.Root=$n,hr.Search=nr,hr.Action=ir,hr.ActionsGroup=ar,hr.ActionsList=or,hr.Empty=sr,hr.Footer=cr;var gr=(0,t.createContext)(null),_r=gr.Provider,vr=()=>{let e=(0,t.useContext)(gr);if(!e)throw Error(`useDropzoneContext must be used within a <Dropzone> component`);return e};function yr(e){let t=({children:t})=>vr()[e]?(0,n.jsx)(n.Fragment,{children:t}):null;return t.displayName=`Dropzone${e.charAt(0).toUpperCase()+e.slice(1)}`,t}var br=yr(`accept`),xr=yr(`reject`),Sr=yr(`idle`),Cr=(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})}},wr=(e,t)=>{typeof e==`function`?e(t):e&&typeof e==`object`&&`current`in e&&(e.current=t)},Tr=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:P,className:F,styles:I,children:L,"aria-label":R,...z}=t,ee=e.l(),te=Cr(N,P),ne=Array.isArray(c)?c.reduce((e,t)=>(e[t]=[],e),{}):c,{getRootProps:re,getInputProps:B,isDragActive:ie,isDragAccept:ae,isDragReject:oe,open:se}=(0,y.useDropzone)({onDrop:o,onDropAccepted:a,onDropRejected:s,disabled:p||m,accept:ne,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});wr(h,se);let ce=ie&&ae,le=ie&&oe,ue=!ce&&!le,de=(0,i.mergeClasses)(te.root,ce&&te.rootAccept,le&&te.rootReject,(p||m)&&te.rootDisabled,F),{verticalSpacing:fe,horizontalSpacing:pe,paddingLeft:me,paddingRight:he,paddingTop:ge,paddingBottom:_e,padding:ve,margin:ye,marginLeft:be,marginRight:xe,marginTop:Se,marginBottom:Ce,background:we,width:Te,height:Ee,maxWidth:De,maxHeight:Oe,...ke}=z;return(0,n.jsx)(_r,{value:{accept:ce,reject:le,idle:ue},children:(0,n.jsxs)(`div`,{...re({ref:r,className:de,style:I,role:`button`,tabIndex:0,"aria-label":R??ee.dropHere,"aria-disabled":p||m||void 0,...ke}),children:[m&&(0,n.jsx)(`div`,{className:te.loadingOverlay,children:(0,n.jsx)(i.Spinner,{size:`medium`,label:ee.loading,...j})}),(0,n.jsx)(`input`,{...B(M),name:f}),(0,n.jsx)(`div`,{className:te.inner,style:A?{pointerEvents:`auto`}:void 0,children:L})]})})}),{Accept:br,Reject:xr,Idle:Sr,displayName:`Dropzone`}),Er=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)(Tr,{...f,activateOnClick:!1,onDrop:_,onReject:v,className:b,children:u})})})});Er.displayName=`DropzoneFullScreen`;var Dr={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`},Or=[Dr.png,Dr.gif,Dr.jpeg,Dr.svg,Dr.webp,Dr.avif,Dr.heic,Dr.heif],kr=[Dr.pdf],Ar=[Dr.doc,Dr.docx],jr=[Dr.xls,Dr.xlsx],Mr=[Dr.ppt,Dr.pptx],Nr=[Dr.exe],Pr=(0,t.createContext)(null),Fr=Pr.Provider;function Ir(){let e=(0,t.useContext)(Pr);if(!e)throw Error(`RichTextEditor component was not found in tree`);return e}var Lr=(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}})}},Rr=({sticky:e=!1,stickyOffset:t=0,children:r,className:i,style:a})=>{let{variant:o}=Ir(),s=Lr(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})};Rr.displayName=`RichTextEditorToolbar`;var zr=({className:e,style:r})=>{let{editor:i,withTypographyStyles:a,variant:o,onContentChange:s,onFocus:c,onBlur:u,onCreate:d,onSelectionChange:f,fontFamily:p}=Ir(),m=Lr(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})})};zr.displayName=`RichTextEditorContent`;var Br=({children:e,className:t,style:r})=>{let{variant:i}=Ir();return(0,n.jsx)(`div`,{className:(0,l.cx)(Lr(i).controlsGroup,t),style:r,role:`group`,children:e})};Br.displayName=`RichTextEditorControlsGroup`;var Vr=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}=Ir(),m=Lr(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})});Vr.displayName=`RichTextEditorControl`;var Hr=t.forwardRef(({icon:e,className:t,...r},i)=>{let{variant:a}=Ir(),o=Lr(a),s=a===`subtle`?`16px`:`20px`;return(0,n.jsx)(Vr,{ref:i,className:t,...r,children:(0,n.jsx)(`span`,{className:o.controlIcon,children:(0,n.jsx)(e,{style:{width:s,height:s}})})})});Hr.displayName=`RichTextEditorControlBase`;function q({label:e,isActive:t,operation:r,icon:i,isDisabled:a}){let o=o=>{let{editor:s,labels:c}=Ir(),l=c[e],u=typeof l==`function`?``:l;return(0,n.jsx)(Hr,{"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 J(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 Ur(e){return(0,n.jsxs)(J,{...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 Wr(e){return(0,n.jsxs)(J,{...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 Gr(e){return(0,n.jsxs)(J,{...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 Kr(e){return(0,n.jsxs)(J,{...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 qr(e){return(0,n.jsxs)(J,{...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 Jr(e){return(0,n.jsxs)(J,{...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 Yr(e){return(0,n.jsxs)(J,{...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 Xr(e){return(0,n.jsxs)(J,{...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 Zr(e){return(0,n.jsxs)(J,{...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 Qr(e){return(0,n.jsxs)(J,{...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 $r(e){return(0,n.jsxs)(J,{...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 ei(e){return(0,n.jsxs)(J,{...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 ti(e){return(0,n.jsxs)(J,{...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 ni(e){return(0,n.jsxs)(J,{...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 ri(e){return(0,n.jsxs)(J,{...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 ii(e){return(0,n.jsxs)(J,{...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 ai(e){return(0,n.jsxs)(J,{...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 oi(e){return(0,n.jsxs)(J,{...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 si(e){return(0,n.jsxs)(J,{...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 ci(e){return(0,n.jsxs)(J,{...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 li(e){return(0,n.jsxs)(J,{...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 ui(e){return(0,n.jsxs)(J,{...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 di(e){return(0,n.jsxs)(J,{...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 fi(e){return(0,n.jsxs)(J,{...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 pi(e){return(0,n.jsxs)(J,{...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 mi(e){return(0,n.jsxs)(J,{...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 hi(e){return(0,n.jsxs)(J,{...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 gi(e){return(0,n.jsxs)(J,{...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 _i(e){return(0,n.jsxs)(J,{...e,children:[(0,n.jsx)(`path`,{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}),(0,n.jsx)(`path`,{d:`M5 12l5 5l10 -10`})]})}function vi(e){return(0,n.jsxs)(J,{...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 yi(e){return(0,n.jsxs)(J,{...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 bi(e){return(0,n.jsxs)(J,{...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 xi(e){return(0,n.jsxs)(J,{...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 Si(e){return(0,n.jsxs)(J,{...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 Ci(e){return(0,n.jsxs)(J,{...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 wi(e){return(0,n.jsxs)(J,{...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 Ti(e){return(0,n.jsxs)(J,{...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 Ei(e){return(0,n.jsxs)(J,{...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 Di=({disableTooltips:e=!1,initialExternal:r=!1,className:a,style:o,...s})=>{let{editor:c,labels:u,variant:d}=Ir(),f=Lr(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)(Hr,{icon:e=>(0,n.jsx)(vi,{...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)(yi,{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)(yi,{style:{width:14,height:14}})})}),(0,n.jsx)(i.Button,{size:`small`,appearance:`primary`,className:f.linkEditorSave,onClick:x,children:u.linkEditorSave})]})})]})};Di.displayName=`RichTextEditorLinkControl`;var Oi=({color:e,className:t,style:r})=>{let{editor:i,labels:a,variant:o}=Ir(),s=Lr(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}})})};Oi.displayName=`RichTextEditorColorControl`;var ki=({colors:e,className:r,style:a})=>{let{editor:o,labels:s,variant:c}=Ir(),l=Lr(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)(Hr,{icon:e=>(0,n.jsx)(mi,{...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)(hi,{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)(pi,{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)(mi,{style:{width:14,height:14}}):(0,n.jsx)(gi,{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)(_i,{style:{width:14,height:14}}),onClick:v,title:s.colorPickerSave,"aria-label":s.colorPickerSave})]})]})]})};ki.displayName=`RichTextEditorColorPickerControl`;var Ai=({className:e,style:r})=>{let{labels:i,editor:a}=Ir(),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)(Hr,{icon:e=>(0,n.jsx)(Ti,{...e}),"aria-label":i.sourceCodeControlLabel,title:i.sourceCodeControlLabel,onClick:o,className:e,style:r})};Ai.displayName=`RichTextEditorSourceCodeControl`;var ji=[`Arial`,`Verdana`,`Tahoma`,`Trebuchet MS`,`Georgia`,`Times New Roman`,`Courier New`,`Segoe UI`],Mi=({fontFamilies:e,className:r,style:a})=>{let{editor:o,labels:s,variant:c,fontFamilies:u}=Ir(),d=Lr(c),[f,p]=t.useState(!1),m=e??u??ji,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)(Hr,{icon:e=>(0,n.jsx)(Ei,{...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)})]})})]})};Mi.displayName=`RichTextEditorFontFamilyControl`;var Ni=q({label:`boldControlLabel`,icon:e=>(0,n.jsx)(Ur,{...e}),isActive:{name:`bold`},operation:{name:`toggleBold`}}),Pi=q({label:`italicControlLabel`,icon:e=>(0,n.jsx)(Wr,{...e}),isActive:{name:`italic`},operation:{name:`toggleItalic`}}),Fi=q({label:`underlineControlLabel`,icon:e=>(0,n.jsx)(Gr,{...e}),isActive:{name:`underline`},operation:{name:`toggleUnderline`}}),Ii=q({label:`strikeControlLabel`,icon:e=>(0,n.jsx)(Kr,{...e}),isActive:{name:`strike`},operation:{name:`toggleStrike`}}),Li=q({label:`clearFormattingControlLabel`,icon:e=>(0,n.jsx)(qr,{...e}),operation:{name:`unsetAllMarks`}}),Ri=q({label:`unlinkControlLabel`,icon:e=>(0,n.jsx)(ni,{...e}),operation:{name:`unsetLink`}}),zi=q({label:`bulletListControlLabel`,icon:e=>(0,n.jsx)(ei,{...e}),isActive:{name:`bulletList`},operation:{name:`toggleBulletList`}}),Bi=q({label:`orderedListControlLabel`,icon:e=>(0,n.jsx)(ti,{...e}),isActive:{name:`orderedList`},operation:{name:`toggleOrderedList`}}),Vi=q({label:`h1ControlLabel`,icon:e=>(0,n.jsx)(Jr,{...e}),isActive:{name:`heading`,attributes:{level:1}},operation:{name:`toggleHeading`,attributes:{level:1}}}),Hi=q({label:`h2ControlLabel`,icon:e=>(0,n.jsx)(Yr,{...e}),isActive:{name:`heading`,attributes:{level:2}},operation:{name:`toggleHeading`,attributes:{level:2}}}),Ui=q({label:`h3ControlLabel`,icon:e=>(0,n.jsx)(Xr,{...e}),isActive:{name:`heading`,attributes:{level:3}},operation:{name:`toggleHeading`,attributes:{level:3}}}),Wi=q({label:`h4ControlLabel`,icon:e=>(0,n.jsx)(Zr,{...e}),isActive:{name:`heading`,attributes:{level:4}},operation:{name:`toggleHeading`,attributes:{level:4}}}),Gi=q({label:`h5ControlLabel`,icon:e=>(0,n.jsx)(Qr,{...e}),isActive:{name:`heading`,attributes:{level:5}},operation:{name:`toggleHeading`,attributes:{level:5}}}),Ki=q({label:`h6ControlLabel`,icon:e=>(0,n.jsx)($r,{...e}),isActive:{name:`heading`,attributes:{level:6}},operation:{name:`toggleHeading`,attributes:{level:6}}}),qi=q({label:`blockquoteControlLabel`,icon:e=>(0,n.jsx)(ri,{...e}),isActive:{name:`blockquote`},operation:{name:`toggleBlockquote`}}),Ji=q({label:`alignLeftControlLabel`,icon:e=>(0,n.jsx)(ii,{...e}),operation:{name:`setTextAlign`,attributes:`left`}}),Yi=q({label:`alignRightControlLabel`,icon:e=>(0,n.jsx)(ai,{...e}),operation:{name:`setTextAlign`,attributes:`right`}}),Xi=q({label:`alignCenterControlLabel`,icon:e=>(0,n.jsx)(oi,{...e}),operation:{name:`setTextAlign`,attributes:`center`}}),Zi=q({label:`alignJustifyControlLabel`,icon:e=>(0,n.jsx)(si,{...e}),operation:{name:`setTextAlign`,attributes:`justify`}}),Qi=q({label:`subscriptControlLabel`,icon:e=>(0,n.jsx)(ci,{...e}),isActive:{name:`subscript`},operation:{name:`toggleSubscript`}}),$i=q({label:`superscriptControlLabel`,icon:e=>(0,n.jsx)(li,{...e}),isActive:{name:`superscript`},operation:{name:`toggleSuperscript`}}),ea=q({label:`codeControlLabel`,icon:e=>(0,n.jsx)(ui,{...e}),isActive:{name:`code`},operation:{name:`toggleCode`}}),ta=q({label:`codeBlockControlLabel`,icon:e=>(0,n.jsx)(ui,{...e}),isActive:{name:`codeBlock`},operation:{name:`toggleCodeBlock`}}),na=q({label:`highlightControlLabel`,icon:e=>(0,n.jsx)(di,{...e}),isActive:{name:`highlight`},operation:{name:`toggleHighlight`}}),ra=q({label:`hrControlLabel`,icon:e=>(0,n.jsx)(fi,{...e}),operation:{name:`setHorizontalRule`}}),ia=q({label:`unsetColorControlLabel`,icon:e=>(0,n.jsx)(pi,{...e}),operation:{name:`unsetColor`}}),aa=q({label:`undoControlLabel`,icon:e=>(0,n.jsx)(bi,{...e}),operation:{name:`undo`}}),oa=q({label:`redoControlLabel`,icon:e=>(0,n.jsx)(xi,{...e}),operation:{name:`redo`}}),sa=q({label:`tasksControlLabel`,icon:e=>(0,n.jsx)(Si,{...e}),isActive:{name:`taskList`},operation:{name:`toggleTaskList`}}),ca=q({label:`tasksSinkLabel`,icon:e=>(0,n.jsx)(Ci,{...e}),operation:{name:`sinkListItem`,attributes:`taskItem`},isDisabled:e=>!e?.can().sinkListItem(`taskItem`)}),la=q({label:`tasksLiftLabel`,icon:e=>(0,n.jsx)(wi,{...e}),operation:{name:`liftListItem`,attributes:`taskItem`},isDisabled:e=>!e?.can().liftListItem(`taskItem`)}),ua={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`},da=({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=Lr(o),b=t.useMemo(()=>({...ua,...a}),[a]);return(0,n.jsx)(Fr,{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})})};da.displayName=`RichTextEditor`;var fa=Object.assign(da,{Toolbar:Rr,Content:zr,ControlsGroup:Br,Control:Vr,ControlBase:Hr,Bold:Ni,Italic:Pi,Underline:Fi,Strikethrough:Ii,ClearFormatting:Li,H1:Vi,H2:Hi,H3:Ui,H4:Wi,H5:Gi,H6:Ki,BulletList:zi,OrderedList:Bi,Blockquote:qi,Link:Di,Unlink:Ri,AlignLeft:Ji,AlignRight:Yi,AlignCenter:Xi,AlignJustify:Zi,Code:ea,CodeBlock:ta,Subscript:Qi,Superscript:$i,Color:Oi,ColorPicker:ki,Highlight:na,UnsetColor:ia,Hr:ra,Undo:aa,Redo:oa,TaskList:sa,TaskListSink:ca,TaskListLift:la,SourceCode:Ai,FontFamily:Mi}),pa=x.default.extend({addKeyboardShortcuts(){return{"Mod-k":()=>(window.dispatchEvent(new Event(`edit-link`)),!0)}}});function ma(e){return e.extend({addKeyboardShortcuts(){return{"Mod-]":()=>this.editor.commands.sinkListItem?.(`taskItem`)??!1,"Mod-[":()=>this.editor.commands.liftListItem?.(`taskItem`)??!1}}})}var ha=()=>({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`}})}),ga=({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=ha(),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)})})})},_a=()=>({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`}})}),va=({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=_a(),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]),P=(0,t.useCallback)(()=>{D(M(j))},[M,j]),F=(0,t.useMemo)(()=>E?`error`:p===`warning`?`warning`:p===`info`?`success`:`none`,[E,p]),I=(0,t.useMemo)(()=>E||f,[E,f]),L=(0,t.useCallback)(()=>{switch(F){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}},[F]),R=o===`circular`?O.inputRoot:void 0;return(0,n.jsx)(i.Field,{label:l,required:m,validationMessage:I,validationMessageIcon:L(),size:h,hint:g,validationState:F,children:(0,n.jsx)(i.Input,{value:j,placeholder:u,onChange:N,onBlur:P,disabled:_,readOnly:v,type:`text`,inputMode:a===`number`?`decimal`:`text`,step:a===`number`?x:void 0,className:R,contentBefore:S,contentAfter:C})})},ya=({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)(U,{gap:`s`,children:[a&&(0,n.jsx)(i.Label,{children:a}),(0,n.jsx)(Ot,{options:l,onSelected:d,styles:s?{minWidth:s}:c??{}})]})},ba=()=>({menuButton:(0,l.css)({minWidth:200}),popover:(0,l.css)({padding:i.tokens.spacingVerticalS,minWidth:200}),timePicker:(0,l.css)({width:`100%`})}),xa=()=>({root:(0,l.css)({maxHeight:280,overflowY:`auto`,padding:`${i.tokens.spacingVerticalXS} 0`}),item:(0,l.css)({cursor:`pointer`})}),Sa=`time`,Ca=(e,t,n)=>{let r=new Date(e);return r.setHours(t,n,0,0),r},wa=(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)},Ta=e=>`${String(e.getHours()).padStart(2,`0`)}:${String(e.getMinutes()).padStart(2,`0`)}`,Ea=(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(Ca(r,t,n))}return i},Da=t.memo(e=>{let{onTimeSelect:r,hourCycle:a,showSeconds:o=!1,startHour:s=0,endHour:c=24,increment:l=30,dateAnchor:u}=e,f=xa(),p=t.useMemo(()=>u??new Date,[u]),m=t.useMemo(()=>Ea(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=wa(e,a,o),r=Ta(e);return(0,n.jsx)(i.MenuItemRadio,{name:Sa,value:r,onClick:h(e,t),icon:(0,n.jsx)(d.ClockRegular,{}),className:f.item,children:t},r)})})}),Oa=(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},ka=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=ba(),h=t.useMemo(()=>Oa(f,p),[f,p]),g=a??h,[_,v]=t.useState(g),[y,b]=t.useState(()=>wa(g,s,c)),[x,S]=t.useState(!1);t.useEffect(()=>{a&&(v(a),b(wa(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(()=>_?{[Sa]:[Ta(_)]}:{[Sa]:[]},[_]),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)(Da,{value:_,onTimeSelect:E,hourCycle:s,showSeconds:c,startHour:l,endHour:u,increment:f,dateAnchor:p})})})]})}),Aa=()=>({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`}})}),ja=({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=Aa(),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)),P=(0,t.useCallback)(e=>{E(e),D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{s?.(e)},v)},[s,v]),F=(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]),I=(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:I,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=>P(e.target.value),disabled:d})]}),(0,n.jsx)(i.TagPickerList,{ref:O,onScroll:F,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})})]})})},Ma=(e,t=0,n=10**t)=>Math.round(n*e)/n,Na=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Pa=({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:Ma(f*255),g:Ma(p*255),b:Ma(m*255),a:Ma(r,2)}},Fa=({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:Ma(60*(o<0?o+6:o)),s:Ma(i?a/i*100:0),v:Ma(i/255*100),a:r}},Ia=({h:e,s:t,v:n,a:r})=>{let i=(200-t)*n/100;return{h:Ma(e),s:Ma(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:Ma(i/2),a:Ma(r,2)}},La=({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}),Ra=e=>Fa(Va(e)),za=e=>Ha(Pa(e)),Ba=e=>{let t=Math.round(e.a*255).toString(16).padStart(2,`0`);return`${za(e)}${t}`},Va=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?Ma(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?Ma(parseInt(t.slice(6,8),16)/255,2):1}},Ha=({r:e,g:t,b:n})=>`#${[e,t,n].map(e=>e.toString(16).padStart(2,`0`)).join(``)}`,Ua=({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}`},Wa=e=>{let{h:t,s:n,l:r}=Ia(e);return`hsl(${t}, ${n}%, ${r}%)`},Ga=e=>{let{h:t,s:n,l:r,a:i}=Ia(e);return`hsla(${t}, ${n}%, ${r}%, ${i})`},Ka=e=>{let{r:t,g:n,b:r}=Pa(e);return`rgb(${t}, ${n}, ${r})`},qa=e=>{let{r:t,g:n,b:r,a:i}=Pa(e);return`rgba(${t}, ${n}, ${r}, ${i})`},Ja=(e,t=`deg`)=>Number(e.replace(RegExp(`${t}$`),``)),Ya=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?La({h:Ja(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}},Xa=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?Fa({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}},Za={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`},Y=e=>{let t;if(typeof e!=`string`)t=e;else{let n=e.trim().toLowerCase();t=n in Za?Ra(Za[n]):n.startsWith(`#`)?Ra(n):n.startsWith(`rgb`)?Xa(n):n.startsWith(`hsl`)?Ya(n):Ra(n)}let n=Pa(t),r=Ia(t);return{hsva:t,hsla:r,rgba:n,hex:Ha(n),hexa:Ua(n)}},Qa=e=>/^#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(e),$a=e=>{let{r:t,g:n,b:r}=Pa(typeof e==`string`?Y(e).hsva:e);return(.299*t+.587*n+.114*r)/255>.5?`#000000`:`#ffffff`},eo=(e,t)=>e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a,to=(e,t)=>{if(e===t)return!0;let n=e=>e.replace(`#`,``).toLowerCase();return n(e)===n(t)},no=e=>({h:Na(e.h,0,360),s:Na(e.s,0,100),v:Na(e.v,0,100),a:Na(e.a,0,1)}),X=()=>({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})}),ro=(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))}},io=({onMove:e,onDown:r,className:a,style:o,children:s})=>{let c=(0,t.useRef)(null),l=(0,t.useRef)(!1),u=X(),d=(0,t.useCallback)((t,n)=>{c.current&&e?.(ro(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=ro(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=ro(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})},ao=({color:e,left:t,top:r})=>(0,n.jsx)(`div`,{className:X().pointer,style:{left:`${(t??0)*100}%`,top:`${(r??0)*100}%`,backgroundColor:e}}),oo=({hsva:e,onChange:r,pointer:a=ao,radius:o=6,className:s,style:c})=>{let u=X(),d=(0,t.useCallback)(t=>{let n=no({h:e.h,s:t.left*100,v:(1-t.top)*100,a:e.a});r?.(Y(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?.(Y(no({...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)(io,{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:Y(e).hex,left:e.s/100,top:1-e.v/100})})})},so=`linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)`,co=`linear-gradient(to bottom, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000)`,lo=({color:e,left:t,top:r})=>(0,n.jsx)(`div`,{className:X().pointer,style:{left:`${(t??0)*100}%`,top:`${(r??0)*100}%`,backgroundColor:e}}),uo=({hsva:e,onChange:r,width:a=`100%`,height:o=12,direction:s=`horizontal`,pointer:c=lo,radius:u=6,className:d,style:f})=>{let p=X(),m=s===`horizontal`,h=(0,t.useCallback)(t=>{let n=m?t.left:t.top,i=no({...e,h:n*360});r?.(Y(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?.(Y(no({...e,h:n})))},[e,r,m]),_=(0,t.useMemo)(()=>(0,l.css)({width:a,height:o,backgroundImage:m?so:co,borderRadius:u,...f}),[a,o,m,u,f]),v=e.h/360;return(0,n.jsx)(io,{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})})})},fo=({color:e,left:t,top:r})=>(0,n.jsx)(`div`,{className:X().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=X(),m=s===`horizontal`,h=(0,t.useCallback)(t=>{let n=m?t.left:t.top,i=no({...e,a:Math.round(n*100)/100});r?.(Y(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?.(Y(no({...e,a:Math.round(n*100)/100})))},[e,r,m]),_=qa({...e,a:0}),v=qa({...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)(io,{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:qa(e),left:m?S:.5,top:m?.5:S})})]})})},mo=({color:e,left:t})=>(0,n.jsx)(`div`,{className:X().pointer,style:{left:`${(t??0)*100}%`,top:`50%`,backgroundColor:e}}),ho=({hsva:e,onChange:r,width:a=`100%`,height:o=12,pointer:s=mo,radius:c=6,className:u,style:d})=>{let f=X(),p=(0,t.useCallback)(t=>{let n=(1-t.left)*100,i=no({...e,v:n});r?.(Y(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?.(Y(no({...e,v:n})))},[e,r]),{h,s:g}=Ia(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)(io,{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:Y(e).hex,left:y})})})},go=e=>typeof e==`string`?{color:e}:e,_o=({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 _=X(),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:void 0,o,h),style:g,onClick:()=>v(e),role:`button`,"aria-pressed":t,tabIndex:0}):(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(_.swatch,t?_.swatchSelected:void 0,o,h),style:g,onClick:()=>v(e),role:`button`,"aria-pressed":t?`true`:void 0,"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}=go(e);return[t,za(Y(t).hsva)]})),[m]);return(0,n.jsxs)(U,{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}=go(t),u=y.get(a)||a,d=e?to(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:void 0,f),onClick:()=>v(a),role:`option`,"aria-selected":d?`true`:void 0,"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:$a(Ra(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]})},vo={width:`100%`,minWidth:0,textAlign:`center`},yo=({label:e,value:r,onChange:a,placeholder:o,className:s,style:c})=>{let l=X(),[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:vo}),e&&(0,n.jsx)(`span`,{className:l.editableInputLabel,children:e})]})},bo=({hsva:e,onChange:r,showAlpha:i=!0,className:a,style:o})=>{let s=Pa(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=Fa(i);r?.(Y(a))},[s,r]);return(0,n.jsxs)(U,{direction:`horizontal`,gap:`xs`,className:a,style:(0,t.useMemo)(()=>({flex:3,minWidth:0,...o}),[o]),children:[(0,n.jsx)(yo,{label:`R`,value:s.r,onChange:e=>c(`r`,e)}),(0,n.jsx)(yo,{label:`G`,value:s.g,onChange:e=>c(`g`,e)}),(0,n.jsx)(yo,{label:`B`,value:s.b,onChange:e=>c(`b`,e)}),i&&(0,n.jsx)(yo,{label:`A`,value:Math.round(s.a*100),onChange:e=>c(`a`,e)})]})},xo=({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)):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=La(i);r?.(Y(a))},[s,r]);return(0,n.jsxs)(U,{direction:`horizontal`,gap:`xs`,className:a,style:(0,t.useMemo)(()=>({flex:3,minWidth:0,...o}),[o]),children:[(0,n.jsx)(yo,{label:`H`,value:Math.round(s.h),onChange:e=>c(`h`,e)}),(0,n.jsx)(yo,{label:`S`,value:Math.round(s.s),onChange:e=>c(`s`,e)}),(0,n.jsx)(yo,{label:`L`,value:Math.round(s.l),onChange:e=>c(`l`,e)}),i&&(0,n.jsx)(yo,{label:`A`,value:Math.round(s.a*100),onChange:e=>c(`a`,e)})]})},So=[`#D0021B`,`#F5A623`,`#F8E71C`,`#8B572A`,`#7ED321`,`#417505`,`#BD10E0`,`#9013FE`,`#4A90D9`,`#50E3C2`,`#B8E986`,`#000000`,`#4A4A4A`,`#9B9B9B`,`#FFFFFF`],Co=({color:e,onChange:r,width:a=320,presetColors:o=So,editableDisable:s=!1,disableAlpha:c=!1,className:l,style:u})=>{let d=X(),f=e=>e?typeof e==`string`?Y(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(Qa(t)){let e=Y(t);m(e.hsva),r?.(e)}},[r]),_=(0,t.useCallback)(e=>{let t=Y(e);m(t.hsva),r?.(t)},[r]),v=za(p),y=(0,t.useMemo)(()=>({width:a,...u}),[a,u]);return(0,n.jsxs)(U,{direction:`vertical`,gap:`m`,className:(0,i.mergeClasses)(d.sketchContainer,l),style:y,children:[(0,n.jsx)(oo,{hsva:p,onChange:h}),(0,n.jsxs)(U,{direction:`vertical`,gap:`s`,children:[(0,n.jsx)(uo,{hsva:p,onChange:h}),!c&&(0,n.jsx)(po,{hsva:p,onChange:h})]}),!s&&(0,n.jsxs)(U,{direction:`horizontal`,gap:`xs`,alignItems:`flex-end`,children:[(0,n.jsx)(yo,{label:`Hex`,value:v.replace(`#`,``),onChange:g}),(0,n.jsx)(bo,{hsva:p,onChange:h,showAlpha:!c})]}),o.length>0&&(0,n.jsx)(_o,{colors:o,color:v,onClick:_,size:16,radius:3})]})},wo=function(e){return e.HEXA=`hexa`,e.RGBA=`rgba`,e.HSLA=`hsla`,e}({}),To={flex:1},Eo={flex:`none`},Do={minWidth:28,width:28,padding:0},Oo=[wo.HEXA,wo.RGBA,wo.HSLA],ko=({color:e,onChange:r,width:a=320,showAlpha:o=!0,showColorPreview:s=!0,showEditableInput:c=!0,showEyeDropper:l=!0,inputType:u=wo.HEXA,className:d,style:f})=>{let p=X(),m=e=>e?typeof e==`string`?Y(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(Qa(t)){let e=Y(t);g(e.hsva),r?.(e)}},[r]),x=(0,t.useCallback)(()=>{v(e=>Oo[(Oo.indexOf(e)+1)%Oo.length])},[]),S=(0,t.useCallback)(async()=>{if(`EyeDropper`in window)try{let e=await new window.EyeDropper().open();if(e?.sRGBHex){let t=Y(e.sRGBHex);g(t.hsva),r?.(t)}}catch{}},[r]),C=za(h),w=Ba(h),T=(0,t.useMemo)(()=>({width:a,...f}),[a,f]);return(0,n.jsxs)(U,{direction:`vertical`,gap:`m`,className:(0,i.mergeClasses)(p.chromeContainer,d),style:T,children:[(0,n.jsx)(oo,{hsva:h,onChange:y}),(0,n.jsxs)(U,{direction:`horizontal`,gap:`m`,alignItems:`center`,children:[s&&(0,n.jsx)(`div`,{className:p.chromePreview,style:{backgroundColor:qa(h)},"aria-label":`Selected color: ${C}`}),(0,n.jsxs)(U,{direction:`vertical`,gap:`xs`,style:To,children:[(0,n.jsx)(uo,{hsva:h,onChange:y}),o&&(0,n.jsx)(po,{hsva:h,onChange:y})]})]}),c&&(0,n.jsxs)(U,{direction:`horizontal`,gap:`xs`,alignItems:`flex-start`,children:[_===wo.HEXA&&(0,n.jsx)(yo,{label:`HEX`,value:o?w.replace(`#`,``):C.replace(`#`,``),onChange:b}),_===wo.RGBA&&(0,n.jsx)(bo,{hsva:h,onChange:y,showAlpha:o}),_===wo.HSLA&&(0,n.jsx)(xo,{hsva:h,onChange:y,showAlpha:o}),(0,n.jsxs)(U,{direction:`horizontal`,gap:`xs`,style:Eo,children:[(0,n.jsx)(i.Button,{appearance:`subtle`,size:`small`,icon:(0,n.jsx)(`span`,{children:`⇅`}),onClick:x,"aria-label":`Toggle color format`,style:Do}),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:Do})]})]})]})},Ao=({color:e,onChange:r,disableAlpha:a=!1,className:o,style:s})=>{let c=X(),l=e=>e?typeof e==`string`?Y(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)(U,{direction:`vertical`,gap:`m`,className:(0,i.mergeClasses)(c.colorfulContainer,o),style:s,children:[(0,n.jsx)(oo,{hsva:u,onChange:f}),(0,n.jsx)(uo,{hsva:u,onChange:f}),!a&&(0,n.jsx)(po,{hsva:u,onChange:f})]})},jo=({color:e,left:t,top:r})=>(0,n.jsx)(`div`,{className:X().pointer,style:{left:`${(t??0)*100}%`,top:`${(r??0)*100}%`,backgroundColor:e}}),Mo=(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)}},No=(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}},Po=({color:e,onChange:r,width:a=200,height:o,pointer:s=jo,className:c,style:u})=>{let d=X(),f=o??a,p=(0,t.useRef)(null),m=e=>e?typeof e==`string`?Y(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}=No(e.left*a,e.top*f,Math.min(a,f)),i=Y({h:t,s:n,v:h.v,a:h.a});g(i.hsva),r?.(i)},[a,f,h.v,h.a,r]),v=Mo(h,Math.min(a,f)),y=(0,t.useMemo)(()=>(0,l.css)({width:a,height:f,background:`conic-gradient(
145
+ from 90deg,
146
+ hsl(0, 100%, 50%),
147
+ hsl(30, 100%, 50%),
148
+ hsl(60, 100%, 50%),
149
+ hsl(90, 100%, 50%),
150
+ hsl(120, 100%, 50%),
151
+ hsl(150, 100%, 50%),
152
+ hsl(180, 100%, 50%),
153
+ hsl(210, 100%, 50%),
154
+ hsl(240, 100%, 50%),
155
+ hsl(270, 100%, 50%),
156
+ hsl(300, 100%, 50%),
157
+ hsl(330, 100%, 50%),
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)(io,{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:Y(h).hex,left:v.x/a,top:v.y/f})})})},Fo=[`#f44336`,`#e91e63`,`#9c27b0`,`#673ab7`,`#3f51b5`,`#2196f3`,`#03a9f4`,`#00bcd4`,`#009688`,`#4caf50`,`#8bc34a`,`#cddc39`,`#ffeb3b`,`#ffc107`,`#ff9800`,`#ff5722`,`#795548`,`#607d8b`],Io=t.default.memo(({hex:e,selected:r,size:a,onClick:o})=>{let s=X(),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:$a(e),d:`M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z`})})})}),Lo=({color:e,onChange:r,colors:a=Fo,pointSize:o=28,className:s,style:c})=>{let l=X(),u=e=>e?typeof e==`string`?Y(e).hex:za(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=Y(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)(U,{direction:`horizontal`,wrap:!0,gap:`s`,className:(0,i.mergeClasses)(l.circleContainer,s),style:h,children:m.map(e=>(0,n.jsx)(Io,{hex:e,selected:to(e,d),size:o,onClick:p},e))})},Ro=`#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(`.`),zo=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})]})}),Bo=({color:e,onChange:r,colors:a=Ro,className:o,style:s})=>{let c=X(),l=e=>e?typeof e==`string`?Y(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=za(u),p=(0,t.useCallback)(e=>{let t=Y(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=Y(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={...Pa(u),[e]:n},a=Y(`rgba(${i.r}, ${i.g}, ${i.b}, ${i.a})`);d(a.hsva),r?.(a)},[u,r]),g=Pa(u),_=(0,t.useMemo)(()=>a.map(e=>typeof e==`string`?e:e.color),[a]),v=(0,t.useMemo)(()=>new Map(_.map(e=>[e,za(Y(e).hsva)])),[_]),y=(0,t.useMemo)(()=>({width:240,gap:5}),[]),b=(0,t.useMemo)(()=>({paddingTop:4,width:240}),[]);return(0,n.jsxs)(U,{direction:`vertical`,gap:`xs`,className:(0,i.mergeClasses)(c.compactContainer,o),style:s,children:[(0,n.jsx)(U,{direction:`horizontal`,wrap:!0,style:y,children:_.map(e=>(0,n.jsx)(zo,{hex:e,selected:to(v.get(e)||e,f),onClick:p},e))}),(0,n.jsxs)(U,{direction:`horizontal`,gap:`xs`,style:b,children:[(0,n.jsx)(yo,{label:`#`,value:f.replace(`#`,``),onChange:m}),(0,n.jsx)(yo,{label:`R`,value:String(g.r),onChange:h(`r`)}),(0,n.jsx)(yo,{label:`G`,value:String(g.g),onChange:h(`g`)}),(0,n.jsx)(yo,{label:`B`,value:String(g.b),onChange:h(`b`)})]})]})},Vo=[`#D9E3F0`,`#F47373`,`#697689`,`#37D67A`,`#2CCCE4`,`#555555`,`#dce775`,`#ff8a65`,`#ba68c8`],Ho=({color:e,onChange:r,colors:a=Vo,showTriangle:o=!0,className:s,style:c})=>{let u=X(),d=e=>e?typeof e==`string`?Y(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=za(f),h=(0,t.useCallback)(e=>{let t=Y(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=Y(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:$a(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)(U,{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)(U,{direction:`vertical`,gap:`s`,style:C,children:[(0,n.jsx)(U,{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:to(e,m)&&(0,n.jsx)(`svg`,{width:12,height:12,viewBox:`0 0 24 24`,children:(0,n.jsx)(`path`,{fill:$a(e),d:`M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z`})})},e))}),(0,n.jsx)(yo,{label:`#`,value:m.replace(`#`,``),onChange:g})]})]})},Uo=12,Wo=({color:e,onChange:r,swatchCount:a=Uo,className:o,style:s})=>{let c=X(),u=e=>e?typeof e==`string`?Y(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=>to(za(e),za(t))?e:t)}},[e]);let h=Ia(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=Y(`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)(U,{direction:`vertical`,gap:`xs`,className:(0,i.mergeClasses)(c.sliderContainer,o),style:s,children:(0,n.jsx)(U,{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))})})},Go=[{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 Ko(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:Qo(i),title:r}})}));return t.removeChild(n),r}var qo=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:$a(e),d:`M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z`})})})),Jo=(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`}),Yo=(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}),Xo=(0,l.css)({display:`flex`,flexWrap:`wrap`,gap:i.tokens.spacingHorizontalXS}),Zo=({color:e,onChange:r,groups:a=Go,swatchSize:o=28,className:s,style:c})=>{let l=(0,t.useRef)(null),u=e=>e?typeof e==`string`?Y(e).hex:za(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(Ko(a,l.current))},[a]);let h=(0,t.useCallback)(e=>{f(e);let t=Y(e);r?.(t)},[r]);return(0,n.jsx)(U,{ref:l,direction:`vertical`,gap:`m`,className:(0,i.mergeClasses)(Jo,s),style:c,children:p.map(e=>(0,n.jsxs)(U,{direction:`vertical`,gap:`xs`,children:[(0,n.jsx)(`p`,{className:Yo,children:e.label}),(0,n.jsx)(`div`,{className:Xo,role:`group`,"aria-label":`${e.label} colors`,children:e.colors.map(t=>(0,n.jsx)(qo,{hex:t.hex,title:t.title,selected:to(t.hex,d),size:o,onClick:h},`${e.label}-${t.title}`))})]},e.label))})};function Qo(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 $o=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});$o.displayName=`ColorPicker`,$o.Saturation=oo,$o.Hue=uo,$o.Alpha=po,$o.ShadeSlider=ho,$o.Swatch=_o,$o.EditableInput=yo,$o.EditableInputRGBA=bo,$o.EditableInputHSLA=xo,$o.Interactive=io,$o.Sketch=Co,$o.Chrome=ko,$o.Colorful=Ao,$o.Wheel=Po,$o.Circle=Lo,$o.Compact=Bo,$o.Block=Ho,$o.Slider=Wo,$o.Theme=Zo;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},es=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})),ts=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`}})}}),ns=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}=ts(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)(es,{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,{})]})})},rs=(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 is(e,r){let a=rs().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,P=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]),F=t.useCallback(e=>s.findIndex(t=>t===e),[s]),[I,L]=t.useState(new Set(f.map(e=>F(e)))),[R,z]=t.useState(0);t.useEffect(()=>{f.length&&L(new Set(f.map(e=>F(e))))},[f,s,F]),t.useEffect(()=>{C&&L(new Set)},[C]);let ee=(e,t)=>{let n=new Set;t.selectedItems.forEach(e=>{let t=Number(e);isNaN(t)||n.add(t)}),L(n),d&&d(Array.from(n).map(e=>s[e]))},te=(e,t)=>{m&&m(t)},[ne,re]=t.useState(null),B=t.useMemo(()=>new Map(s.map((e,t)=>[e,t])),[s]);t.useEffect(()=>{u===`row`&&ne!=null&&ne>=s.length&&re(null)},[s,ne,u]),t.useEffect(()=>{C&&u===`row`&&re(null)},[C,u]);let ie=t.useRef(null),ae=t.useRef(s.length),oe=t.useRef(!1),se=t.useRef(!1),ce=t.useRef(!1);t.useImperativeHandle(r,()=>({scrollToIndex:(e,t=`auto`)=>{let n=ie.current;n&&`scrollToItem`in n&&n.scrollToItem(Math.max(0,e),t)},resetGrid:()=>{z(e=>e+1),ae.current=0,oe.current=!1,se.current=!1,ce.current=!1,le.current=-1,L(new Set),re(null)},getSelectedRow:()=>ne!==null&&ne<s.length?{item:s[ne],index:ne}:null,setSelectedRow:e=>{let t=s.findIndex(t=>t===e);t!==-1&&(re(t),d?.([e]))}})),t.useEffect(()=>{if(!oe.current&&typeof M==`number`&&ie.current){let e=ie.current;`scrollToItem`in e&&e.scrollToItem(Math.min(M,Math.max(s.length-1,0)),`start`),oe.current=!0}},[M,s.length]),t.useEffect(()=>{let e=ae.current,t=s.length,n=t>e;if(ae.current=t,!k||!n||e===0)return;let r=ie.current;r&&`scrollToItem`in r&&r.scrollToItem(Math.max(t-1,0),`end`)},[s.length,k]);let le=t.useRef(-1),ue=t.useCallback(({visibleStopIndex:e})=>{if(!w||!T||O||ce.current)return;if(!se.current){se.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&&le.current!==s.length&&(le.current=s.length,ce.current=!0,T())},[w,T,D,O,s.length,E]);return t.useEffect(()=>{ce.current&&s.length>le.current&&(ce.current=!1)},[s.length]),(0,n.jsxs)(`div`,{style:t.useMemo(()=>({overflowX:`auto`,overflowY:`hidden`,position:`relative`}),[]),className:a,children:[v&&(0,n.jsx)(U,{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:P,sortable:c,onSortChange:c?te:void 0,selectionMode:u===`none`||u===`row`?void 0:u===`multiple`?`multiselect`:u===`single`?`single`:void 0,selectedItems:I,onSelectionChange:ee,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:ue},className:a,children:(e,t)=>(()=>{let r=e.item,a=B.get(r)??s.indexOf(r),o=u===`row`,c=o&&ne===a,l=e=>{re(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)})})})()})]},R):!v&&!s.length?(0,n.jsx)(`div`,{children:_}):null]})}var as=t.forwardRef(is);as.displayName=`DataGridV2`;var os=200,ss=(0,i.makeStyles)({dialog:{overflow:`visible`},dialogBody:{overflow:`visible`}}),cs=e=>{let{isOpen:t,dialogTitle:r,dialogActions:a,children:o,maxWidth:s,className:c,minHeight:l,minWidth:u,maxHeight:d}=e,f=ss();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??os,...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,{})},ls=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})},us=e=>{let{onDismiss:r,title:a,description:o,icon:s,showCloseButton:c=!0}=e;return(0,n.jsxs)(U,{direction:`vertical`,width:`100%`,children:[(0,n.jsx)(U,{direction:`horizontal`,padding:`s`,gap:`l`,justifyContent:`space-between`,children:(0,n.jsxs)(U,{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)(U,{direction:`vertical`,justifyContent:`flex-start`,alignItems:`flex-start`,width:`100%`,children:[t.isValidElement(a)?a:(0,n.jsxs)(U,{direction:`horizontal`,justifyContent:`space-between`,gap:`l`,width:`100%`,children:[(0,n.jsx)(Dt,{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}})]})},ds=()=>({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%`})}),fs=({isOpen:e,options:r,onClose:i})=>{let{log:a}=B(),[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)(cs,{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`)})})},ps=()=>(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})}),[]),ms=({title:e,message:t})=>{let r=ps();return(0,n.jsx)(i.Card,{className:r.container,role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`,children:(0,n.jsxs)(U,{gap:`l`,alignItems:`center`,children:[(0,n.jsx)(d.ErrorCircleRegular,{className:r.icon,"aria-hidden":`true`,focusable:!1}),(0,n.jsxs)(U,{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})]})]})})},hs=(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%`}}),gs=e=>{let{messageType:r,children:a,message:o}=e,s=hs(),[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 ee.SUCCESS:l((0,n.jsx)(d.CheckmarkCircle32Regular,{primaryFill:i.tokens.colorStatusSuccessForeground1}));break;case ee.INFO:l((0,n.jsx)(d.Info32Regular,{primaryFill:i.tokens.colorStatusWarningForeground1}));break;default:break}},[r]),r===ee.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]})})},_s=()=>({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})}),vs=({items:e,selectedItemId:r,onSelectedItem:a,renderControl:o,theme:s})=>{let c=_s(),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)(bs,{items:e,onSelectedItem:l,theme:s}),` `]})]})})},ys=({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),bs=({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)(ys,{item:e,onSelectedItem:r},e.id))})})]})})}):null},xs=({id:e,children:t})=>(0,i.useIsOverflowItemVisible)(e)?null:(0,n.jsx)(i.MenuItem,{children:t}),Ss=({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)(xs,{id:r(e),children:t(e)},r(e)))})})]}):null},Cs=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})]})});Cs.displayName=`Navigation`;var ws=()=>({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`})}),Ts=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`})}),Es=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=Ts(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})})},Ds=`.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}`,Os=`spteck-react-controls-maplibre-styles`,ks=e=>{let t=e??(typeof document<`u`?document:void 0);if(!t||t.getElementById(Os))return;let n=t.createElement(`style`);n.id=Os,n.textContent=Ds,t.head.appendChild(n)},As=l.css`
145
160
  position: absolute;
146
161
  top: 16px;
147
162
  right: 16px;
@@ -152,13 +167,13 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
152
167
  padding: 4px;
153
168
  display: flex;
154
169
  gap: 8px;
155
- `,dr=l.css`
170
+ `,js=l.css`
156
171
  flex-direction: column;
157
- `,fr=l.css`
172
+ `,Ms=l.css`
158
173
  min-width: 32px;
159
174
  min-height: 32px;
160
175
  ${i.shorthands.padding(`4px`)}
161
- `,pr=({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.b();return(0,n.jsxs)(`div`,{className:o?`${ur} ${dr}`:ur,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:fr,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:fr,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:fr,onClick:l})})]})},mr=l.css`
176
+ `,Ns=({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?`${As} ${js}`:As,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:Ms,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:Ms,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:Ms,onClick:l})})]})},Ps=l.css`
162
177
  width: 32px;
163
178
  height: 20px;
164
179
  border-radius: 4px;
@@ -167,25 +182,25 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
167
182
  cursor: pointer;
168
183
  display: block;
169
184
  margin: 0 auto;
170
- `,hr=l.css`
185
+ `,Fs=l.css`
171
186
  padding: 12px;
172
187
  min-width: 120px;
173
188
  display: flex;
174
189
  flex-direction: column;
175
190
  align-items: center;
176
191
  gap: 6px;
177
- `,gr=l.css`
192
+ `,Is=l.css`
178
193
  font-weight: 600;
179
194
  text-align: center;
180
195
  margin-top: 6px;
181
- `,_r=({data:e,flagClass:t,onClick:r})=>(0,n.jsx)(i.Tooltip,{relationship:`label`,content:(0,n.jsxs)(i.Card,{className:hr,children:[(0,n.jsx)(`img`,{src:e.imageUrl,alt:e.name,className:mr}),(0,n.jsx)(i.Text,{className:gr,children:e.name})]}),withArrow:!0,positioning:`above`,children:(0,n.jsx)(`img`,{src:e.imageUrl,alt:e.name,className:t||mr,role:`button`,tabIndex:0,onClick:()=>r?.(e),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),r?.(e))}})}),vr=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},yr=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`}),[])}),br=`https://api.maptiler.com/maps/topo-v2/style.json?key=fYK99t1qjkKbINH0saMD`,xr=({data:r,onClick:a,mapStyleUrl:o=br,style:s,fitPadding:c=20})=>{lr();let l=(0,t.useRef)(null),u=vr(o),d=r,{defaultMapStyles:f,flagClass:p}=yr(),m=e.b();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)(b.default,{ref:l,initialViewState:{longitude:0,latitude:20,zoom:1},style:{...s??f},mapStyle:u,pixelRatio:window.devicePixelRatio,children:[(0,n.jsx)(pr,{mapRef:l,initialViewState:{longitude:0,latitude:20,zoom:1}}),d.map(e=>(0,n.jsx)(b.Marker,{longitude:e.coordinates[0],latitude:e.coordinates[1],anchor:`center`,children:(0,n.jsx)(_r,{data:e,onClick:a,flagClass:p})},e.id))]}):(0,n.jsx)(i.Text,{children:m.loadingMapStyle})},J=function(e){return e[e.SharePoint=0]=`SharePoint`,e[e.Teams=1]=`Teams`,e[e.TeamsDark=2]=`TeamsDark`,e[e.TeamsHighContrast=3]=`TeamsHighContrast`,e}({}),Sr=(e,t)=>{let n=(0,S.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})},Cr=e=>new x.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`}}),wr=`fluentUITheme`,Tr=(e,t)=>{e.hostCapabilities.setCustomProperty(wr,t)},Er=e=>{let t=e.hostCapabilities.getCustomProperty(wr);return t||=i.webLightTheme,t},Dr=(e,t)=>{let n;switch(e){case J.SharePoint:n={theme:t,hostConfig:Cr(t)};break;case J.Teams:n={theme:i.teamsLightTheme,hostConfig:Cr(i.teamsLightTheme)};break;case J.TeamsDark:n={theme:i.teamsDarkTheme,hostConfig:Cr(i.teamsDarkTheme)};break;case J.TeamsHighContrast:n={theme:i.teamsHighContrastTheme,hostConfig:Cr(i.teamsHighContrastTheme)};break;default:n={theme:t,hostConfig:Cr(t)};break}return n.hostConfig.cssClassNamePrefix=`ach${Math.random().toString().replace(/\./g,``)}`,Tr(n.hostConfig,n.theme),Sr(n.theme,n.hostConfig.cssClassNamePrefix),n},Or=e=>{x.AdaptiveCard.onProcessMarkdown||(x.AdaptiveCard.onProcessMarkdown=(t,n)=>{n.outputHtml=new C.default().render(t),n.didProcess=!0;try{n.outputHtml=new C.default().render(t),n.didProcess=!0}catch(t){e&&e(`AdaptiveCardHost: Error parsing Markdown`,t instanceof Error?t:void 0),n.didProcess=!1}})},kr=(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 Ar(e){return(0,w.createRoot)(e)}var jr=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===E.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===E.ActionIconPlacement.LeftOfTitle?4:0,marginBottom:e.iconPlacement===E.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},Mr=(e,t,r,a,o,s,c,l)=>{let u=document.createElement(`div`);u.className=`fluentUI`;let d=Ar(u);d.render((0,n.jsx)(i.IdPrefixProvider,{value:(0,x.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:l,children:(0,n.jsx)(jr,{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},Nr=class extends T.ExecuteAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(wr),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=Mr(this.title??``,this.iconUrl||``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},Pr=class extends T.OpenUrlAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(wr),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=Mr(this.title??``,this.iconUrl||``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},Fr=class extends T.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=Mr(this.title||`Default Title`,this.iconUrl||``,this.iconUrl??``,t.iconPlacement,t.iconSize,this.actionClickHandler,this.style)}},Ir=class extends T.SubmitAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(wr),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=Mr(this.title??``,this.iconUrl??``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},Lr=class extends T.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(wr),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=Mr(this.title??``,this.iconUrl??``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}};function Rr(e){e.register(`Action.Submit`,Ir),e.register(`Action.OpenUrl`,Pr),e.register(`Action.ShowCard`,Fr),e.register(`Action.ToggleVisibility`,Lr),e.register(`Action.Execute`,Nr)}var zr=e=>{let t=document.createElement(`div`);return Ar(t).render(e()),t};function Y(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function X(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 Z=class extends x.Input{static valueProperty=new x.StringProperty(x.Versions.v1_5,`value`);static choicesProperty=new x.SerializableObjectCollectionProperty(x.Versions.v1_5,`choices`,x.Choice);static styleProperty=new x.ValueSetProperty(x.Versions.v1_5,`style`,[{value:`compact`},{value:`expanded`},{value:`filtered`,targetVersion:x.Versions.v1_5}],`compact`);static isMultiSelectProperty=new x.BoolProperty(x.Versions.v1_5,`isMultiSelect`,!1);static placeholderProperty=new x.StringProperty(x.Versions.v1_5,`placeholder`);static wrapProperty=new x.BoolProperty(x.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=Er(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=zr(()=>(0,n.jsxs)(n.Fragment,{children:[!this.isMultiSelect&&this.style===`expanded`&&(0,n.jsx)(i.IdPrefixProvider,{value:(0,x.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,x.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,x.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,x.ValidationEvent.CollectionCantBeEmpty,x.Strings.errors.choiceSetMustHaveAtLeastOneChoice());for(let t of this.choices)(!t.title||!t.value)&&e.addFailure(this,x.ValidationEvent.PropertyCantBeNull,x.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)}};X([(0,x.property)(Z.valueProperty),Y(`design:type`,String)],Z.prototype,`defaultValue`,void 0),X([(0,x.property)(Z.styleProperty),Y(`design:type`,String)],Z.prototype,`style`,void 0),X([(0,x.property)(Z.isMultiSelectProperty),Y(`design:type`,Boolean)],Z.prototype,`isMultiSelect`,void 0),X([(0,x.property)(Z.placeholderProperty),Y(`design:type`,String)],Z.prototype,`placeholder`,void 0),X([(0,x.property)(Z.wrapProperty),Y(`design:type`,Boolean)],Z.prototype,`wrap`,void 0),X([(0,x.property)(Z.choicesProperty),Y(`design:type`,Array)],Z.prototype,`choices`,void 0);var Br=class extends x.Input{static valueProperty=new x.StringProperty(x.Versions.v1_5,`value`);static placeholderProperty=new x.StringProperty(x.Versions.v1_5,`placeholder`);static minProperty=new x.StringProperty(x.Versions.v1_0,`min`);static maxProperty=new x.StringProperty(x.Versions.v1_0,`max`);defaultValue;min;max;placeholder;_value;refControl;element;internalRender(){let e=Er(this.hostConfig);return this.element=zr(()=>(0,n.jsx)(i.IdPrefixProvider,{value:(0,x.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:e,children:(0,n.jsx)(D.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]}}};X([(0,x.property)(Br.valueProperty),Y(`design:type`,String)],Br.prototype,`defaultValue`,void 0),X([(0,x.property)(Br.minProperty),Y(`design:type`,String)],Br.prototype,`min`,void 0),X([(0,x.property)(Br.maxProperty),Y(`design:type`,String)],Br.prototype,`max`,void 0),X([(0,x.property)(Br.placeholderProperty),Y(`design:type`,String)],Br.prototype,`placeholder`,void 0);var Vr=class extends x.Input{static valueProperty=new x.NumProperty(x.Versions.v1_5,`value`);static placeholderProperty=new x.StringProperty(x.Versions.v1_5,`placeholder`);static minProperty=new x.NumProperty(x.Versions.v1_0,`min`);static maxProperty=new x.NumProperty(x.Versions.v1_0,`max`);defaultValue;min;max;placeholder;refControl=null;element;internalRender(){let e=Er(this.hostConfig);return this.element=zr(()=>(0,n.jsx)(i.IdPrefixProvider,{value:(0,x.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}};X([(0,x.property)(Vr.valueProperty),Y(`design:type`,Number)],Vr.prototype,`defaultValue`,void 0),X([(0,x.property)(Vr.minProperty),Y(`design:type`,Number)],Vr.prototype,`min`,void 0),X([(0,x.property)(Vr.maxProperty),Y(`design:type`,Number)],Vr.prototype,`max`,void 0),X([(0,x.property)(Vr.placeholderProperty),Y(`design:type`,String)],Vr.prototype,`placeholder`,void 0);var Hr=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`}})})},Ur={marginLeft:8},Wr,Gr,Q=class extends x.Input{static valueProperty=new x.StringProperty(x.Versions.v1_0,`value`);static maxLengthProperty=new x.NumProperty(x.Versions.v1_0,`maxLength`);static isMultilineProperty=new x.BoolProperty(x.Versions.v1_0,`isMultiline`,!1);static placeholderProperty=new x.StringProperty(x.Versions.v1_0,`placeholder`);static styleProperty=new x.EnumProperty(x.Versions.v1_0,`style`,x.InputTextStyle,x.InputTextStyle.Text);static inlineActionProperty=new x.ActionProperty(x.Versions.v1_0,`inlineAction`,[`Action.ShowCard`]);static regexProperty=new x.StringProperty(x.Versions.v1_3,`regex`,!0);defaultValue;maxLength;isMultiline=!1;placeholder;style=x.InputTextStyle.Text;inlineAction;regex;refControl=null;element;_value=this.defaultValue||``;internalRender(){let e=Er(this.hostConfig);return this.element=zr(()=>(0,n.jsx)(i.IdPrefixProvider,{value:(0,x.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:x.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=()=>zr(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(wr),children:(0,n.jsx)(Hr,{ariaLabel:this.inlineAction?.title||`Inline action`,className:this.hostConfig.makeCssClassName(`ac-inlineActionButton`,`iconOnly`),iconProps:{src:this.inlineAction?.iconUrl??``},onClick:this.inlineActionClickHandler,styles:Ur})});buildTextOnlyInlineActionActionButton=()=>{let e=this.hostConfig.hostCapabilities.getCustomProperty(wr);return(0,n.jsx)(i.IdPrefixProvider,{value:(0,x.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:Ur,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}};X([(0,x.property)(Q.valueProperty),Y(`design:type`,String)],Q.prototype,`defaultValue`,void 0),X([(0,x.property)(Q.maxLengthProperty),Y(`design:type`,Number)],Q.prototype,`maxLength`,void 0),X([(0,x.property)(Q.isMultilineProperty),Y(`design:type`,Boolean)],Q.prototype,`isMultiline`,void 0),X([(0,x.property)(Q.placeholderProperty),Y(`design:type`,String)],Q.prototype,`placeholder`,void 0),X([(0,x.property)(Q.styleProperty),Y(`design:type`,typeof(Wr=x.InputTextStyle!==void 0&&x.InputTextStyle)==`function`?Wr:Object)],Q.prototype,`style`,void 0),X([(0,x.property)(Q.inlineActionProperty),Y(`design:type`,typeof(Gr=x.Action!==void 0&&x.Action)==`function`?Gr:Object)],Q.prototype,`inlineAction`,void 0),X([(0,x.property)(Q.regexProperty),Y(`design:type`,String)],Q.prototype,`regex`,void 0);var Kr=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,O.formatDateToTimeString)(a??new Date):``);return(0,n.jsx)(i.IdPrefixProvider,{value:r,children:(0,n.jsx)(i.FluentProvider,{theme:l,children:(0,n.jsx)(O.TimePicker,{style:{width:`100%`},expandIcon:(0,n.jsx)(d.ClockRegular,{}),id:r,freeform:!0,min:o?(0,O.formatDateToTimeString)(o):void 0,max:s?(0,O.formatDateToTimeString)(s):void 0,placeholder:c,value:f?(0,O.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)}})})})},qr=class e extends x.Input{static convertTimeStringToDate(e){return new Date(`1973-09-04T`+e+`:00Z`)}static valueProperty=new x.TimeProperty(x.Versions.v1_0,`value`);static placeholderProperty=new x.StringProperty(x.Versions.v1_0,`placeholder`);static minProperty=new x.TimeProperty(x.Versions.v1_0,`min`);static maxProperty=new x.TimeProperty(x.Versions.v1_0,`max`);defaultValue;min;max;placeholder;_time;element;internalRender(){let t=Er(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=zr(()=>(0,n.jsx)(Kr,{id:(0,x.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,O.formatDateToTimeString)(this._time):void 0}};X([(0,x.property)(qr.valueProperty),Y(`design:type`,String)],qr.prototype,`defaultValue`,void 0),X([(0,x.property)(qr.minProperty),Y(`design:type`,String)],qr.prototype,`min`,void 0),X([(0,x.property)(qr.maxProperty),Y(`design:type`,String)],qr.prototype,`max`,void 0),X([(0,x.property)(qr.placeholderProperty),Y(`design:type`,String)],qr.prototype,`placeholder`,void 0);var Jr=class extends x.Input{static valueProperty=new x.StringProperty(x.Versions.v1_5,`value`);static titleProperty=new x.StringProperty(x.Versions.v1_5,`title`);static valueOnProperty=new x.StringProperty(x.Versions.v1_5,`valueOn`,!0,void 0,`true`,e=>`true`);static valueOffProperty=new x.StringProperty(x.Versions.v1_5,`valueOff`,!0,void 0,`false`,e=>`false`);static wrapProperty=new x.BoolProperty(x.Versions.v1_2,`wrap`,!1);defaultValue;title;valueOn=`true`;valueOff=`false`;wrap=!1;_value;refControl=null;element;internalRender(){let e=Er(this.hostConfig);return this.element=zr(()=>(0,n.jsx)(i.IdPrefixProvider,{value:(0,x.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}};X([(0,x.property)(Jr.valueProperty),Y(`design:type`,String)],Jr.prototype,`defaultValue`,void 0),X([(0,x.property)(Jr.titleProperty),Y(`design:type`,String)],Jr.prototype,`title`,void 0),X([(0,x.property)(Jr.valueOnProperty),Y(`design:type`,String)],Jr.prototype,`valueOn`,void 0),X([(0,x.property)(Jr.valueOffProperty),Y(`design:type`,String)],Jr.prototype,`valueOff`,void 0),X([(0,x.property)(Jr.wrapProperty),Y(`design:type`,Boolean)],Jr.prototype,`wrap`,void 0);function Yr(e){e.register(`Input.Text`,Q),e.register(`Input.Number`,Vr),e.register(`Input.Time`,qr),e.register(`Input.Date`,Br),e.register(`Input.Toggle`,Jr),e.register(`Input.ChoiceSet`,Z)}var Xr=e=>{switch(e){case J.SharePoint:return i.webLightTheme;case J.Teams:return i.teamsLightTheme;case J.TeamsDark:return i.teamsDarkTheme;case J.TeamsHighContrast:return i.teamsHighContrastTheme;default:return i.webLightTheme}},Zr=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)(()=>{Or((e,t)=>o(e,t))},[]),(0,t.useEffect)(()=>{c.current=null,c.current=new x.AdaptiveCard,l.current=new x.SerializationContext},[e]);let d=(0,t.useCallback)(t=>{if(e.onInvokeAction){let n={type:``,title:``},r=t.getJsonTypeName();switch(r){case x.OpenUrlAction.JsonTypeName:{let e=t;n={type:r,title:e.title,url:e.url}}break;case x.SubmitAction.JsonTypeName:{let e=t;n={type:r,title:e.title,data:e.data}}break;case x.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||=J.SharePoint,t=e.theme?e.theme:Xr(n);let r=Dr(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 x.CardObjectRegistry,n=new x.CardObjectRegistry;x.GlobalRegistry.populateWithDefaultElements(t),x.GlobalRegistry.populateWithDefaultActions(n),Yr(t),Rr(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 k.Template(e.card),i=kr(e.data??{$root:{}},Xr(e.themeType??J.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,Xr]),(0,n.jsx)(i.IdPrefixProvider,{value:`adaptiveCardHost`,children:(0,n.jsx)(i.FluentProvider,{theme:u.current?u.current:Xr(e.themeType??J.SharePoint),children:(0,n.jsx)(`div`,{ref:r,className:`${e.className?e.className:``}`,style:e.style})})})},Qr=({card:e,data:r})=>{let i=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(!i.current)return;i.current.innerHTML=``;let t=new k.Template(e).expand({$root:r}),n=new x.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`})},$r=g.css`
196
+ `,Ls=({data:e,flagClass:t,onClick:r})=>(0,n.jsx)(i.Tooltip,{relationship:`label`,content:(0,n.jsxs)(i.Card,{className:Fs,children:[(0,n.jsx)(`img`,{src:e.imageUrl,alt:e.name,className:Ps}),(0,n.jsx)(i.Text,{className:Is,children:e.name})]}),withArrow:!0,positioning:`above`,children:(0,n.jsx)(`img`,{src:e.imageUrl,alt:e.name,className:t||Ps,role:`button`,tabIndex:0,onClick:()=>r?.(e),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),r?.(e))}})}),Rs=e=>{let[n,r]=(0,t.useState)(void 0),{error:i}=B();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},zs=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`}),[])}),Bs=`https://api.maptiler.com/maps/topo-v2/style.json?key=fYK99t1qjkKbINH0saMD`,Vs=({data:r,onClick:a,mapStyleUrl:o=Bs,style:s,fitPadding:c=20})=>{ks();let l=(0,t.useRef)(null),u=Rs(o),d=r,{defaultMapStyles:f,flagClass:p}=zs(),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)(Ns,{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)(Ls,{data:e,onClick:a,flagClass:p})},e.id))]}):(0,n.jsx)(i.Text,{children:m.loadingMapStyle})},Hs=function(e){return e[e.SharePoint=0]=`SharePoint`,e[e.Teams=1]=`Teams`,e[e.TeamsDark=2]=`TeamsDark`,e[e.TeamsHighContrast=3]=`TeamsHighContrast`,e}({}),Us=(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})},Ws=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`}}),Gs=`fluentUITheme`,Ks=(e,t)=>{e.hostCapabilities.setCustomProperty(Gs,t)},qs=e=>{let t=e.hostCapabilities.getCustomProperty(Gs);return t||=i.webLightTheme,t},Js=(e,t)=>{let n;switch(e){case Hs.SharePoint:n={theme:t,hostConfig:Ws(t)};break;case Hs.Teams:n={theme:i.teamsLightTheme,hostConfig:Ws(i.teamsLightTheme)};break;case Hs.TeamsDark:n={theme:i.teamsDarkTheme,hostConfig:Ws(i.teamsDarkTheme)};break;case Hs.TeamsHighContrast:n={theme:i.teamsHighContrastTheme,hostConfig:Ws(i.teamsHighContrastTheme)};break;default:n={theme:t,hostConfig:Ws(t)};break}return n.hostConfig.cssClassNamePrefix=`ach${Math.random().toString().replace(/\./g,``)}`,Ks(n.hostConfig,n.theme),Us(n.theme,n.hostConfig.cssClassNamePrefix),n},Ys=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}})},Xs=(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 Zs(e){return(0,O.createRoot)(e)}var Qs=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},$s=(e,t,r,a,o,s,c,l)=>{let u=document.createElement(`div`);u.className=`fluentUI`;let d=Zs(u);d.render((0,n.jsx)(i.IdPrefixProvider,{value:(0,T.generateUniqueId)(),children:(0,n.jsx)(i.FluentProvider,{theme:l,children:(0,n.jsx)(Qs,{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},ec=class extends k.ExecuteAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Gs),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=$s(this.title??``,this.iconUrl||``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},tc=class extends k.OpenUrlAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Gs),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=$s(this.title??``,this.iconUrl||``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},nc=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=$s(this.title||`Default Title`,this.iconUrl||``,this.iconUrl??``,t.iconPlacement,t.iconSize,this.actionClickHandler,this.style)}},rc=class extends k.SubmitAction{updateCssClasses(){}actionClickHandler=e=>{e.stopPropagation(),e.preventDefault(),this.execute()};render(e){let t=this.hostConfig.hostCapabilities.getCustomProperty(Gs),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=$s(this.title??``,this.iconUrl??``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}},ic=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(Gs),n=this.parent?.hostConfig?.actions??{iconPlacement:`left`,iconSize:24};this._renderedElement=$s(this.title??``,this.iconUrl??``,e||``,n.iconPlacement,n.iconSize,this.actionClickHandler,this.style,t)}};function ac(e){e.register(`Action.Submit`,rc),e.register(`Action.OpenUrl`,tc),e.register(`Action.ShowCard`,nc),e.register(`Action.ToggleVisibility`,ic),e.register(`Action.Execute`,ec)}var oc=e=>{let t=document.createElement(`div`);return Zs(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 sc=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=qs(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=oc(()=>(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)(sc.valueProperty),Q(`design:type`,String)],sc.prototype,`defaultValue`,void 0),$([(0,T.property)(sc.styleProperty),Q(`design:type`,String)],sc.prototype,`style`,void 0),$([(0,T.property)(sc.isMultiSelectProperty),Q(`design:type`,Boolean)],sc.prototype,`isMultiSelect`,void 0),$([(0,T.property)(sc.placeholderProperty),Q(`design:type`,String)],sc.prototype,`placeholder`,void 0),$([(0,T.property)(sc.wrapProperty),Q(`design:type`,Boolean)],sc.prototype,`wrap`,void 0),$([(0,T.property)(sc.choicesProperty),Q(`design:type`,Array)],sc.prototype,`choices`,void 0);var cc=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=qs(this.hostConfig);return this.element=oc(()=>(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)(cc.valueProperty),Q(`design:type`,String)],cc.prototype,`defaultValue`,void 0),$([(0,T.property)(cc.minProperty),Q(`design:type`,String)],cc.prototype,`min`,void 0),$([(0,T.property)(cc.maxProperty),Q(`design:type`,String)],cc.prototype,`max`,void 0),$([(0,T.property)(cc.placeholderProperty),Q(`design:type`,String)],cc.prototype,`placeholder`,void 0);var lc=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=qs(this.hostConfig);return this.element=oc(()=>(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)(lc.valueProperty),Q(`design:type`,Number)],lc.prototype,`defaultValue`,void 0),$([(0,T.property)(lc.minProperty),Q(`design:type`,Number)],lc.prototype,`min`,void 0),$([(0,T.property)(lc.maxProperty),Q(`design:type`,Number)],lc.prototype,`max`,void 0),$([(0,T.property)(lc.placeholderProperty),Q(`design:type`,String)],lc.prototype,`placeholder`,void 0);var uc=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`}})})},dc={marginLeft:8},fc,pc,mc=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=qs(this.hostConfig);return this.element=oc(()=>(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=()=>oc(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(Gs),children:(0,n.jsx)(uc,{ariaLabel:this.inlineAction?.title||`Inline action`,className:this.hostConfig.makeCssClassName(`ac-inlineActionButton`,`iconOnly`),iconProps:{src:this.inlineAction?.iconUrl??``},onClick:this.inlineActionClickHandler,styles:dc})});buildTextOnlyInlineActionActionButton=()=>{let e=this.hostConfig.hostCapabilities.getCustomProperty(Gs);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:dc,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)(mc.valueProperty),Q(`design:type`,String)],mc.prototype,`defaultValue`,void 0),$([(0,T.property)(mc.maxLengthProperty),Q(`design:type`,Number)],mc.prototype,`maxLength`,void 0),$([(0,T.property)(mc.isMultilineProperty),Q(`design:type`,Boolean)],mc.prototype,`isMultiline`,void 0),$([(0,T.property)(mc.placeholderProperty),Q(`design:type`,String)],mc.prototype,`placeholder`,void 0),$([(0,T.property)(mc.styleProperty),Q(`design:type`,typeof(fc=T.InputTextStyle!==void 0&&T.InputTextStyle)==`function`?fc:Object)],mc.prototype,`style`,void 0),$([(0,T.property)(mc.inlineActionProperty),Q(`design:type`,typeof(pc=T.Action!==void 0&&T.Action)==`function`?pc:Object)],mc.prototype,`inlineAction`,void 0),$([(0,T.property)(mc.regexProperty),Q(`design:type`,String)],mc.prototype,`regex`,void 0);var hc=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)}})})})},gc=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=qs(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=oc(()=>(0,n.jsx)(hc,{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)(gc.valueProperty),Q(`design:type`,String)],gc.prototype,`defaultValue`,void 0),$([(0,T.property)(gc.minProperty),Q(`design:type`,String)],gc.prototype,`min`,void 0),$([(0,T.property)(gc.maxProperty),Q(`design:type`,String)],gc.prototype,`max`,void 0),$([(0,T.property)(gc.placeholderProperty),Q(`design:type`,String)],gc.prototype,`placeholder`,void 0);var _c=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=qs(this.hostConfig);return this.element=oc(()=>(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)(_c.valueProperty),Q(`design:type`,String)],_c.prototype,`defaultValue`,void 0),$([(0,T.property)(_c.titleProperty),Q(`design:type`,String)],_c.prototype,`title`,void 0),$([(0,T.property)(_c.valueOnProperty),Q(`design:type`,String)],_c.prototype,`valueOn`,void 0),$([(0,T.property)(_c.valueOffProperty),Q(`design:type`,String)],_c.prototype,`valueOff`,void 0),$([(0,T.property)(_c.wrapProperty),Q(`design:type`,Boolean)],_c.prototype,`wrap`,void 0);function vc(e){e.register(`Input.Text`,mc),e.register(`Input.Number`,lc),e.register(`Input.Time`,gc),e.register(`Input.Date`,cc),e.register(`Input.Toggle`,_c),e.register(`Input.ChoiceSet`,sc)}var yc=e=>{switch(e){case Hs.SharePoint:return i.webLightTheme;case Hs.Teams:return i.teamsLightTheme;case Hs.TeamsDark:return i.teamsDarkTheme;case Hs.TeamsHighContrast:return i.teamsHighContrastTheme;default:return i.webLightTheme}},bc=e=>{let r=(0,t.useRef)(null),{log:a,error:o,LogLevel:s}=B(),c=(0,t.useRef)(null),l=(0,t.useRef)(null),u=(0,t.useRef)(null);(0,t.useEffect)(()=>{Ys((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||=Hs.SharePoint,t=e.theme?e.theme:yc(n);let r=Js(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),vc(t),ac(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=Xs(e.data??{$root:{}},yc(e.themeType??Hs.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,yc]),(0,n.jsx)(i.IdPrefixProvider,{value:`adaptiveCardHost`,children:(0,n.jsx)(i.FluentProvider,{theme:u.current?u.current:yc(e.themeType??Hs.SharePoint),children:(0,n.jsx)(`div`,{ref:r,className:`${e.className?e.className:``}`,style:e.style})})})},xc=({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`})},Sc=_.css`
182
197
  position: relative;
183
198
  display: inline-block;
184
199
  line-height: 0;
185
200
 
186
- `,ei=g.css`
201
+ `,Cc=_.css`
187
202
  display: block;
188
- `,ti=g.css`
203
+ `,wc=_.css`
189
204
  position: absolute;
190
205
  top: -1px;
191
206
  right: -6px;
@@ -209,32 +224,32 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
209
224
  box-shadow: ${i.tokens.shadow8};
210
225
  background: ${i.tokens.colorBrandBackgroundHover};
211
226
  }
212
- `,ni=g.css`
213
- ${ti};
227
+ `,Tc=_.css`
228
+ ${wc};
214
229
  font-size: 9px;
215
230
  padding: 2px 4px;
216
231
  border-radius: 8px;
217
232
  top: -2px;
218
233
  right: -7px;
219
- `,ri=g.css`
220
- ${ti};
234
+ `,Ec=_.css`
235
+ ${wc};
221
236
  font-size: 6px;
222
237
  padding: 1px 2px;
223
238
  border-radius: 4px;
224
239
  top: 0px;
225
240
  right: -4px;
226
241
  letter-spacing: 0.1px;
227
- `,ii=({size:e=20,className:t,color:n,aiIndicatorColor:r})=>{let i=g.css`
228
- ${e>=24?ni:e<=16?ri:ti};
242
+ `,Dc=({size:e=20,className:t,color:n,aiIndicatorColor:r})=>{let i=_.css`
243
+ ${e>=24?Tc:e<=16?Ec:wc};
229
244
  ${r?`
230
245
  background: ${r};
231
246
  border-color: ${r};
232
247
  `:``}
233
- `,a=g.css`
234
- ${ei};
248
+ `,a=_.css`
249
+ ${Cc};
235
250
  font-size: ${e}px;
236
251
  ${n?`color: ${n};`:`color: inherit;`}
237
- `;return(0,_.jsxs)(`span`,{css:[$r,t&&g.css`${t}`],children:[(0,_.jsx)(d.SearchRegular,{css:a}),(0,_.jsx)(`span`,{css:i,children:`AI`})]})},ai=()=>({searchBoxStyles:g.css`
252
+ `;return(0,v.jsxs)(`span`,{css:[Sc,t&&_.css`${t}`],children:[(0,v.jsx)(d.SearchRegular,{css:a}),(0,v.jsx)(`span`,{css:i,children:`AI`})]})},Oc=()=>({searchBoxStyles:_.css`
238
253
  border: 1px solid ${i.tokens.colorNeutralStroke2};
239
254
  border-radius: 50px; /* Fully circular/pill shape */
240
255
  background-color: ${i.tokens.colorNeutralBackground1};
@@ -293,12 +308,12 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=requi
293
308
  box-shadow: none !important;
294
309
  }
295
310
  }
296
- `,iconWrapperStyles:g.css`
311
+ `,iconWrapperStyles:_.css`
297
312
  display: flex;
298
313
  align-items: center;
299
314
  padding: 2px;
300
315
  margin-right: 8px;
301
- `}),oi=e=>({generateText:async(e,t)=>`Azure OpenAI not configured - please provide configuration`,isConfigured:!1}),si=e=>JSON.stringify(e),ci=({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}=oi({config:r}),[v,y]=(0,t.useState)(!1),[b,x]=(0,t.useState)(``),S=(0,t.useRef)(null),{searchBoxStyles:C,iconWrapperStyles:w}=ai(),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: `+si({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`&&!v&&b.trim()?T(b).catch(e=>{f(`Error in handleAISearch:`,e)}):e.key===`Escape`&&(S.current?.blur(),x(``),o?.(``,``))},[T,v,b,o]);return(0,_.jsx)(i.SearchBox,{ref:S,css:C,className:u,style:{width:d},placeholder:m,value:b,onChange:E,onKeyDown:O,disabled:l||v,contentBefore:(0,_.jsx)(`span`,{css:w,children:(0,_.jsx)(ii,{size:20})}),dismiss:{onClick:D}})},li=(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}`}}),ui=()=>{let e=li();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)(ii,{size:16})]}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Medium (20px):`}),(0,n.jsx)(ii,{size:20})]}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Large (24px):`}),(0,n.jsx)(ii,{size:24})]}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Extra Large (32px):`}),(0,n.jsx)(ii,{size:32})]}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Custom Colors:`}),(0,n.jsx)(ii,{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)(ii,{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)(ii,{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)(ii,{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
316
+ `}),kc=e=>({generateText:async(e,t)=>`Azure OpenAI not configured - please provide configuration`,isConfigured:!1}),Ac=e=>JSON.stringify(e),jc=({systemPromptTemplate:n,azureOpenAIConfig:r,placeholder:a,onSearchQueryGenerated:o,onSearchStart:s,onSearchError:c,disabled:l=!1,className:u,width:d})=>{let{error:f}=B(),p=e.r(),m=a||p.placeholder,{generateText:h,isConfigured:g}=kc({config:r}),[_,y]=(0,t.useState)(!1),[b,x]=(0,t.useState)(``),S=(0,t.useRef)(null),{searchBoxStyles:C,iconWrapperStyles:w}=Oc(),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: `+Ac({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)(Dc,{size:20})}),dismiss:{onClick:D}})},Mc=(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}`}}),Nc=()=>{let e=Mc();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)(Dc,{size:16})]}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Medium (20px):`}),(0,n.jsx)(Dc,{size:20})]}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Large (24px):`}),(0,n.jsx)(Dc,{size:24})]}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Extra Large (32px):`}),(0,n.jsx)(Dc,{size:32})]}),(0,n.jsxs)(`div`,{className:e.iconRow,children:[(0,n.jsx)(`span`,{className:e.label,children:`Custom Colors:`}),(0,n.jsx)(Dc,{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)(Dc,{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)(Dc,{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)(Dc,{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
302
317
  import { AISearchIcon } from './AISearchIcon';
303
318
 
304
319
  // Standard icon with AI badge
@@ -317,7 +332,7 @@ import { AISearchIcon } from './AISearchIcon';
317
332
  icon={<AISearchIcon size={16} />}
318
333
  >
319
334
  AI Search
320
- </Button>`})]})]})},di=()=>({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`})}),fi=t.forwardRef(({value:r,onChange:i,onSend:a,placeholder:o,isRunning:s,onAbort:c},l)=>{let u=di(),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)(H,{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)(H,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:s?(0,n.jsx)(kt,{icon:(0,n.jsx)(d.RecordStopRegular,{}),hoverIcon:(0,n.jsx)(d.RecordStopFilled,{}),width:32,height:32,onClick:c,ariaLabel:`Stop generating`}):(0,n.jsx)(kt,{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`})})]})}),pi=()=>({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})}),mi=({context:r,inputValue:a,parentRef:o,mentionChars:s,onUserSelect:c,theme:l,suggestionsHeader:u,maxSuggestions:d=100,userFilter:f})=>{let p=R(),m=r||p,h=m?.graphClient,g=m?.pageContext?.web?.absoluteUrl||``,_=e.p(),v=e.y(),{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)(``),[j,M]=(0,t.useState)(``),N=(0,t.useRef)({}),ee=pi(),P=(0,t.useCallback)(async e=>{if(!h)return b(`Graph client not available`),[];let t=`${e}_${d}`;if(N.current[t])return N.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),N.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)(we(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),M(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,A.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([])},te=(0,t.useCallback)(({users:e})=>(0,n.jsxs)(`div`,{className:ee.listContainer,role:`listbox`,"aria-label":`User suggestions`,children:[e.length===0&&(0,n.jsxs)(i.Caption1,{className:ee.noResults,children:[_.noResults,` "`,j,`"`]}),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))]}),[ee,j,L]);return(0,n.jsxs)(ht,{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:ee.suggestionsHeader,children:u})}),(0,n.jsx)(i.Divider,{}),(0,n.jsx)(te,{users:E})]})},hi=({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)(H,{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)(mi,{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)(mi,{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)})]})]})},gi=()=>({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})}),_i=({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=gi();return(0,t.useEffect)(()=>{p.current?.focus(),f(a||``)},[a]),(0,n.jsxs)(H,{horizontal:!0,width:`100%`,className:m.inputContainer,children:[(0,n.jsx)(fi,{ref:p,onSend:s,value:d,onChange:e=>{f(e),r&&r(e)},theme:c,placeholder:o,isRunning:l,onAbort:u}),(0,n.jsx)(mi,{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})]})},vi=()=>{let e=i.tokens.colorBrandBackground,t=l.keyframes`
335
+ </Button>`})]})]})},Pc=()=>({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`})}),Fc=t.forwardRef(({value:r,onChange:i,onSend:a,placeholder:o,isRunning:s,onAbort:c},l)=>{let u=Pc(),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)(V,{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)(V,{horizontal:!0,horizontalAlign:`end`,width:`100%`,children:s?(0,n.jsx)(Pt,{icon:(0,n.jsx)(d.RecordStopRegular,{}),hoverIcon:(0,n.jsx)(d.RecordStopFilled,{}),width:32,height:32,onClick:c,ariaLabel:`Stop generating`}):(0,n.jsx)(Pt,{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`})})]})}),Ic=()=>({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})}),Lc=({context:r,inputValue:a,parentRef:o,mentionChars:s,onUserSelect:c,theme:l,suggestionsHeader:u,maxSuggestions:d=100,userFilter:f})=>{let p=re(),m=r||p,h=m?.graphClient,g=m?.pageContext?.web?.absoluteUrl||``,_=e.h(),v=e.S(),{verbose:y,warn:b,error:x}=B(),[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=Ic(),F=(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]),I=(0,t.useCallback)(Oe(async(e,t)=>{y(`[debouncedFetch]: Fetching users for query:`,e);let n=await F(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,F]),L=e=>{let t=o.current;if(!t)return{top:0,left:0};if(t.tagName===`TEXTAREA`){let n=t,r=(0,P.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=L(n);y(`[Mensions]: Menu position:`,i),T(i),I(r,t);break}}}e||(y(`[Mensions]: No mention found, hiding menu`),C(!1))},[a,s,o,I]);let R=e=>{c(e,O),C(!1),D([])},z=(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:()=>R(e),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),R(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,R]);return(0,n.jsxs)(bt,{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)(z,{users:E})]})},Rc=({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)(V,{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)(Lc,{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)(Lc,{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)})]})]})},zc=()=>({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})}),Bc=({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=zc();return(0,t.useEffect)(()=>{p.current?.focus(),f(a||``)},[a]),(0,n.jsxs)(V,{horizontal:!0,width:`100%`,className:m.inputContainer,children:[(0,n.jsx)(Fc,{ref:p,onSend:s,value:d,onChange:e=>{f(e),r&&r(e)},theme:c,placeholder:o,isRunning:l,onAbort:u}),(0,n.jsx)(Lc,{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})]})},Vc=()=>{let e=i.tokens.colorBrandBackground,t=l.keyframes`
321
336
  0%, 80%, 100% {
322
337
  opacity: 0;
323
338
  transform: scale(0.8);
@@ -345,7 +360,7 @@ import { AISearchIcon } from './AISearchIcon';
345
360
  animation-delay: 0.2s;
346
361
  `,dot3:l.css`
347
362
  animation-delay: 0.4s;
348
- `}},yi=()=>{let e=vi();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}`})]})},bi=(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}},xi=()=>({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}})}),Si=({content:e,className:r})=>{let i=xi(),[a,o]=t.useState(``);return t.useEffect(()=>{o(new C.default({html:!1,linkify:!0,typographer:!0,breaks:!0}).render(e))},[e]),(0,n.jsx)(`div`,{className:`${i.markdown} ${r||``}`,dangerouslySetInnerHTML:{__html:M.default.sanitize(a)}})},Ci=(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}},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%`}}),wi=({content:e,forceType:r,onTypeDetected:i,context:a,theme:o=J.SharePoint,fluentTheme:s,onAdaptiveCardAction:c,className:l,debug:u=!1})=>{let d=Ci(),{error:f}=z(),[p,m]=t.useState(null);if(t.useEffect(()=>{if(t.isValidElement(e)||typeof e!=`string`&&typeof e!=`object`)return;let n=He(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 V.MARKDOWN:return(0,n.jsx)(Si,{content:g,className:l});case V.HTML:return(0,n.jsx)(`div`,{className:` ${l||``}`,dangerouslySetInnerHTML:{__html:M.default.sanitize(g)}});case V.ADAPTIVE_CARD:return(0,n.jsx)(`div`,{className:`${d.adaptiveCardWrapper} ${l||``}`,children:(0,n.jsx)(Zr,{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 V.PLAIN_TEXT:default:return(0,n.jsx)(`div`,{className:`${d.plainText} ${l||``}`,children:g})}})()]})},Ti=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)(j.Chat,{className:u,children:a.map((e,t)=>e.senderName===`User`?(0,n.jsx)(j.ChatMyMessage,{status:e.status,author:e.senderName,children:s(e.message)},t):(0,n.jsx)(j.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)(wi,{content:s(e.message),context:o})},t))})})});Ti.displayName=`ChatList`;var Ei=()=>({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`})}),Di=(e,t)=>{let{getFormatRelative:n}=ye(e,t);return n(new Date)},Oi=r=>{let{instrutions:a,timezone:o,locale:s,onResponse:c,openAIConfig:l,theme:u,placeholder:d,context:f}=r,[p,m]=t.useReducer(bi,{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=Ei(),C=e.n(),{error:w}=z(),{sendMessage:T,cancelRequest:E}=oe({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:Di(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:Di(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)(yi,{}),senderName:`Assistant`,timeStamp:Di(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)(Xn,{message:C.processingError,messageType:F.INFO}):(0,n.jsxs)(`div`,{className:S.aiAssistantContainer,children:[(0,n.jsx)(Ti,{ref:x,messages:h,context:f}),(0,n.jsx)(`div`,{className:S.aiAssistantInputContainer,children:(0,n.jsx)(_i,{context:f,value:g,onChange:k,placeholder:d,onSend:O,onAbort:E,theme:u,isRunning:y})})]})},ki=({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=gi(),{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)(we(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,A.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()},j=(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)(H,{horizontal:!0,width:`100%`,className:C.inputContainer,children:[(0,n.jsx)(fi,{ref:g,onSend:c,value:f,onChange:O,theme:l,placeholder:s,isRunning:u,onAbort:d}),(0,n.jsxs)(ht,{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)(j,{users:b})]})]})},Ai=()=>({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})}),ji=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})}},Mi=0,Ni=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},Pi=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=ji(r),_=t.useRef(null),v=t.useRef(null),y=Ni(_),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.m();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-${++Mi}`;return N.default.initialize({startOnLoad:!1,theme:b,securityLevel:`loose`,fontFamily:i.tokens.fontFamilyBase,suppressErrorRendering:!0}),N.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,ee]=t.useState(1),[P,I]=t.useState({x:0,y:0}),L=t.useRef(!1),R=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;ee(e=>Math.min(Math.max(e+t,.25),4))},n=e=>{L.current=!0,R.current={x:e.clientX,y:e.clientY}},r=e=>{if(!L.current)return;let t=e.clientX-R.current.x,n=e.clientY-R.current.y;R.current={x:e.clientX,y:e.clientY},I(e=>({x:e.x+t,y:e.y+n}))},i=()=>{L.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(()=>{ee(1),I({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 z=[g.root,l].filter(Boolean).join(` `);if(T)return(0,n.jsx)(W,{className:z,style:u,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:c,children:(0,n.jsx)(W,{className:g.loading,alignItems:`center`,justifyContent:`center`,padding:`xxl`,children:m??(0,n.jsx)(yt,{size:`small`,label:k})})});if(C)return(0,n.jsx)(W,{className:z,style:u,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:c,children:h?h(C):(0,n.jsx)(Xn,{message:A,messageType:F.ERROR})});if(!x)return(0,n.jsx)(W,{className:z,style:u,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:c,children:(0,n.jsx)(W,{className:g.loading,alignItems:`center`,justifyContent:`center`,padding:`xxl`,children:(0,n.jsx)(i.Text,{children:j})})});let te=d?{transform:`translate(${P.x}px, ${P.y}px) scale(${M})`,transformOrigin:`center center`}:void 0;return(0,n.jsx)(W,{ref:_,className:z,style:u,alignItems:`center`,justifyContent:`center`,overflow:d?`auto`:`hidden`,background:c,children:(0,n.jsx)(W,{ref:v,className:g.svgContainer,alignItems:`center`,justifyContent:`center`,style:te,children:(0,n.jsx)(n.Fragment,{})})})},Fi=e=>{let{template:t}=e;return(0,n.jsx)(n.Fragment,{children:t})},Ii=()=>({toolbar:l.css`
363
+ `}},Hc=()=>{let e=Vc();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}`})]})},Uc=(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}},Wc=()=>({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}})}),Gc=({content:e,className:r})=>{let i=Wc(),[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:I.default.sanitize(a)}})},Kc=(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}},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%`}}),qc=({content:e,forceType:r,onTypeDetected:i,context:a,theme:o=Hs.SharePoint,fluentTheme:s,onAdaptiveCardAction:c,className:l,debug:u=!1})=>{let d=Kc(),{error:f}=B(),[p,m]=t.useState(null);if(t.useEffect(()=>{if(t.isValidElement(e)||typeof e!=`string`&&typeof e!=`object`)return;let n=qe(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 Ve.MARKDOWN:return(0,n.jsx)(Gc,{content:g,className:l});case Ve.HTML:return(0,n.jsx)(`div`,{className:` ${l||``}`,dangerouslySetInnerHTML:{__html:I.default.sanitize(g)}});case Ve.ADAPTIVE_CARD:return(0,n.jsx)(`div`,{className:`${d.adaptiveCardWrapper} ${l||``}`,children:(0,n.jsx)(bc,{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 Ve.PLAIN_TEXT:default:return(0,n.jsx)(`div`,{className:`${d.plainText} ${l||``}`,children:g})}})()]})},Jc=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)(F.Chat,{className:u,children:a.map((e,t)=>e.senderName===`User`?(0,n.jsx)(F.ChatMyMessage,{status:e.status,author:e.senderName,children:s(e.message)},t):(0,n.jsx)(F.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)(qc,{content:s(e.message),context:o})},t))})})});Jc.displayName=`ChatList`;var Yc=()=>({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`})}),Xc=(e,t)=>{let{getFormatRelative:n}=Ce(e,t);return n(new Date)},Zc=r=>{let{instrutions:a,timezone:o,locale:s,onResponse:c,openAIConfig:l,theme:u,placeholder:d,context:f}=r,[p,m]=t.useReducer(Uc,{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=Yc(),C=e.n(),{error:w}=B(),{sendMessage:T,cancelRequest:E}=le({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:Xc(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:Xc(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)(Hc,{}),senderName:`Assistant`,timeStamp:Xc(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)(gs,{message:C.processingError,messageType:ee.INFO}):(0,n.jsxs)(`div`,{className:S.aiAssistantContainer,children:[(0,n.jsx)(Jc,{ref:x,messages:h,context:f}),(0,n.jsx)(`div`,{className:S.aiAssistantInputContainer,children:(0,n.jsx)(Bc,{context:f,value:g,onChange:k,placeholder:d,onSend:O,onAbort:E,theme:u,isRunning:y})})]})},Qc=({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=zc(),{warn:w,error:T}=B();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)(Oe(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,P.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)(V,{horizontal:!0,width:`100%`,className:C.inputContainer,children:[(0,n.jsx)(Fc,{ref:g,onSend:c,value:f,onChange:O,theme:l,placeholder:s,isRunning:u,onAbort:d}),(0,n.jsxs)(bt,{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})]})]})},$c=()=>({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})}),el=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})}},tl=0,nl=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},rl=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=el(r),_=t.useRef(null),v=t.useRef(null),y=nl(_),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-${++tl}`;return L.default.initialize({startOnLoad:!1,theme:b,securityLevel:`loose`,fontFamily:i.tokens.fontFamilyBase,suppressErrorRendering:!0}),L.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),[P,F]=t.useState({x:0,y:0}),I=t.useRef(!1),R=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=>{I.current=!0,R.current={x:e.clientX,y:e.clientY}},r=e=>{if(!I.current)return;let t=e.clientX-R.current.x,n=e.clientY-R.current.y;R.current={x:e.clientX,y:e.clientY},F(e=>({x:e.x+t,y:e.y+n}))},i=()=>{I.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),F({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 z=[g.root,l].filter(Boolean).join(` `);if(T)return(0,n.jsx)(U,{className:z,style:u,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:c,children:(0,n.jsx)(U,{className:g.loading,alignItems:`center`,justifyContent:`center`,padding:`xxl`,children:m??(0,n.jsx)(wt,{size:`small`,label:k})})});if(C)return(0,n.jsx)(U,{className:z,style:u,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:c,children:h?h(C):(0,n.jsx)(gs,{message:A,messageType:ee.ERROR})});if(!x)return(0,n.jsx)(U,{className:z,style:u,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,background:c,children:(0,n.jsx)(U,{className:g.loading,alignItems:`center`,justifyContent:`center`,padding:`xxl`,children:(0,n.jsx)(i.Text,{children:j})})});let te=d?{transform:`translate(${P.x}px, ${P.y}px) scale(${M})`,transformOrigin:`center center`}:void 0;return(0,n.jsx)(U,{ref:_,className:z,style:u,alignItems:`center`,justifyContent:`center`,overflow:d?`auto`:`hidden`,background:c,children:(0,n.jsx)(U,{ref:v,className:g.svgContainer,alignItems:`center`,justifyContent:`center`,style:te,children:(0,n.jsx)(n.Fragment,{})})})},il={small:i.tokens.borderRadiusSmall,medium:i.tokens.borderRadiusMedium,large:i.tokens.borderRadiusLarge,xLarge:i.tokens.borderRadiusXLarge},al={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}},ol=e=>al[e]??{border:e,bg:`transparent`},sl=e=>il[e]??e,cl=(e,n,r)=>{let{border:a,bg:o}=ol(e),s=sl(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`}),[])}},ll=48,ul=`brand`,dl=`medium`,fl=(0,t.memo)(({icon:e,iconSize:t=ll,color:r=ul,radius:a=dl,cite:o,className:s,style:c,children:l})=>{let u=cl(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})]})});fl.displayName=`Blockquote`;var pl={spacingHorizontalXS:i.tokens.spacingHorizontalXS,spacingHorizontalS:i.tokens.spacingHorizontalS,spacingHorizontalM:i.tokens.spacingHorizontalM,spacingHorizontalL:i.tokens.spacingHorizontalL,spacingHorizontalXL:i.tokens.spacingHorizontalXL,spacingHorizontalXXL:i.tokens.spacingHorizontalXXL},ml=e=>pl[e]??e,hl=(e,n,r,i,a,o,s,c,u)=>{let d=ml(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])}},gl=4,_l=1e5,vl=`spacingHorizontalM`,yl=`5%`,bl=(0,t.memo)(({children:e,orientation:r=`horizontal`,reverse:a=!1,pauseOnHover:o=!1,repeat:s=gl,duration:c=_l,gap:l=vl,fadeEdges:u=!0,fadeEdgeColor:d=i.tokens.colorNeutralBackground1,fadeEdgeSize:f=yl,className:p,style:m})=>{let h=hl(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})})});bl.displayName=`Marquee`;var xl=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])},Sl=()=>{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}},Cl=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}=Sl(),b=c!==void 0,[x,S]=(0,t.useState)(s),C=b?c:x,w=r<y,T=xl({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})})]})});Cl.displayName=`Spoiler`;var wl={none:`0`,small:i.tokens.borderRadiusSmall,medium:i.tokens.borderRadiusMedium,large:i.tokens.borderRadiusLarge,xLarge:i.tokens.borderRadiusXLarge,circular:i.tokens.borderRadiusCircular},Tl=(e,n)=>(0,t.useMemo)(()=>{let t=wl[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]),El=t.default.memo(({src:e,children:t,radius:r=`none`,className:a,style:o})=>(0,n.jsx)(`div`,{className:(0,i.mergeClasses)(Tl(e,r).root,a),style:o,role:`img`,"aria-label":e,children:t}));El.displayName=`BackgroundImage`;var Dl=({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]),Ol=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])},kl=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=Ol({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]})]})});kl.displayName=`TimelineItem`;var Al=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=Dl({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})});Al.displayName=`Timeline`;var jl=Object.assign(Al,{Item:kl}),Ml=({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]),Nl=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])},Pl=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=Nl({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})]})]})});Pl.displayName=`StepperStep`;var Fl=e=>null;Fl.displayName=`StepperCompleted`;var Il=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=Ml({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})]})});Il.displayName=`Stepper`;var Ll=Object.assign(Il,{Step:Pl,Completed:Fl}),Rl={content:``,isCached:!1,status:`idle`},zl=()=>(0,g.atom)(Rl),Bl=new Map,Vl=()=>{Bl.clear()},Hl=({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)(zl()),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&&Bl.has(e)){l({content:Bl.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&&Bl.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},Ul=e=>{let t=``;for(let n=0;n<e;n++)t+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`.charAt(Math.floor(Math.random()*62));return t},Wl=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)},Gl=(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)}},Kl=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(Wl(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&&Gl(f,o||Ul(8),s),new XMLSerializer().serializeToString(f)},ql=()=>(0,t.useMemo)(()=>({root:(0,l.css)({display:`inline-flex`,lineHeight:0,"& svg":{display:`block`}})}),[]),Jl=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=ql(),S=(0,t.useRef)(null),C=(0,t.useRef)(h);C.current=h;let{content:w,status:T,isCached:E}=Hl({src:e,cacheRequests:r,fetchOptions:d,onError:g}),D=(0,t.useMemo)(()=>w?Kl({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}})});Jl.displayName=`InlineSVG`;var Yl={numeric:/[^\d]/g,alpha:/[^a-zA-Z]/g,alphanumeric:/[^a-zA-Z0-9]/g},Xl={numeric:`numeric`,alpha:`text`,alphanumeric:`text`,none:`text`},Zl=(e,t,n,r)=>{let i=e.replace(/\s/g,``);return n===`none`?r&&(i=r(i)):i=i.replace(Yl[n],``),i.slice(0,t)},Ql=e=>(0,g.atom)({value:e,focusedIndex:-1}),$l=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)(Ql(Zl(i,n,a,o))),h=(0,g.useAtomValue)(m.current),_=(0,g.useSetAtom)(m.current),v=d?Zl(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=Zl(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=Zl(r,n,a,o);if(i===``){x(v.slice(0,e)+v.slice(e+1));return}x(Zl(`${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=Zl(t.clipboardData?.getData(`text/plain`)??``,n,a,o);if(!r)return;x(Zl(`${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)(()=>Xl[a],[a]);return{value:v,focusedIndex:h.focusedIndex,inputRefs:y,inputMode:D,handleChange:S,handleKeyDown:C,handlePaste:w,handleFocus:T,handleBlur:E,focusSlot:b}},eu=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]),tu=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=eu(y),{value:E,focusedIndex:D,inputRefs:O,inputMode:k,handleChange:A,handleKeyDown:j,handlePaste:M,handleFocus:N,handleBlur:P}=$l({length:e,value:r,defaultValue:a,validationType:c,sanitizeValue:l,onChange:o,onComplete:s,disabled:f,readOnly:p}),F=(0,t.useMemo)(()=>new Set(b??[]),[b]),I=v===`small`?T.inputSmall:v===`large`?T.inputLarge:T.inputMedium,L=g?T[`message${g.charAt(0).toUpperCase()}${g.slice(1)}`]:T.messageInfo,R=g===`error`?T.inputError:g===`success`?T.inputSuccess:g===`warning`?T.inputWarning:void 0,z=(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,I,s&&T.inputFilled,o&&T.inputActive,f&&T.inputDisabled,R),onChange:e=>A(r,e),onKeyDown:e=>j(r,e),onPaste:e=>M(r,e),onFocus:()=>N(r),onBlur:P},r)),F.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,I,R,F,x,A,j,M,N,P,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:z}),h&&(0,n.jsx)(`span`,{className:(0,i.mergeClasses)(T.message,L),role:`status`,children:h})]})});tu.displayName=`OTPField`;var nu=e=>{let{template:t}=e;return(0,n.jsx)(n.Fragment,{children:t})},ru=()=>({toolbar:l.css`
349
364
  display: flex !important;
350
365
  flex-wrap: nowrap !important;
351
366
  align-items: center !important;
@@ -411,7 +426,7 @@ import { AISearchIcon } from './AISearchIcon';
411
426
  @media (max-width: 768px) {
412
427
  display: none;
413
428
  }
414
- `}),Li=[{minWidth:1280,gap:100},{minWidth:1024,gap:60},{minWidth:768,gap:40},{minWidth:480,gap:24},{minWidth:0,gap:12}];function Ri(e){for(let t of Li)if(e>t.minWidth)return t.gap;return Li[Li.length-1].gap}function zi(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=Ri(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 Bi=({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 Vi(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 Hi(e,t){let n=[],r=Vi(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 Ui=({items:e,farItems:r=[],isLoading:a=!1,ariaLabel:o=`Toolbar`,totalCount:s,className:c,showGroupDividers:l=!0})=>{let u=Ii(),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(()=>Vi(_),[_]),y=t.useMemo(()=>Hi(g,l),[g,l]),b=zi(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)(Bi,{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)(Bi,{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)(Bi,{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))})})]})},Wi=()=>({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%`})}),Gi=6e4,Ki=new Map,qi=300*1e3,Ji=120*1e3;setInterval(()=>{let e=Date.now(),t=[];Ki.forEach((n,r)=>{e>n.expiresAt&&t.push(r)}),t.forEach(e=>Ki.delete(e))},600*1e3);var Yi=(n,r)=>{let i=R(),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=Ki.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.w.Error),i=t.presence||{availability:`Offline`,activity:`Offline`}):o(`fetchUser: Error fetching user presence`,n,e.w.Error)}try{t.id&&(a=await h(t.id))}catch(t){o(`fetchUser: Error fetching user photo`,t,e.w.Warning)}let s={...t,presence:i,userPhoto:a};Ki.set(n,{data:s,timestamp:r,expiresAt:r+qi}),u(s)}catch(t){o(`fetchUser: Error fetching user`,t,e.w.Error)}finally{f(!1)}},[n,p,m,h,o]),_=(0,t.useCallback)(async()=>{if(!n||!l)return;let t=Ki.get(n),r=Date.now();if(!(t&&t.data.presence&&r-t.timestamp<Ji))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.w.Error),i=l.presence||{availability:`Offline`,activity:`Offline`}):o(`checkUserPresence: Error fetching user presence`,t,e.w.Error)}let a={...l,presence:i};Ki.set(n,{data:a,timestamp:r,expiresAt:t?.expiresAt||r+qi}),u(a)}catch(t){o(`checkUserPresence: Error in checkUserPresence`,t,e.w.Error)}},[n,l,m,o]);(0,t.useEffect)(()=>{(async()=>{await g()})()},[g]);let{startPolling:v,stopPolling:y}=re(_,l?Gi:Gi*2,!1);return(0,t.useEffect)(()=>(l&&v(),()=>{y()}),[l,v,y]),{user:l,loading:d,refetch:g}},Xi=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=Wi(),{user:h}=Yi(r,s),g=e.y(),_=(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)(Fi,{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)),Zi=()=>({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}})}),Qi=({users:e,maxVisible:r=5,avatarSize:a=32,showHoverCard:o=!0,context:s,className:c,layout:l=`stack`,overflowText:u})=>{let d=Zi(),{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)(W,{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)(Xi,{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)(Xi,{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)},$i=e=>{let n=R(),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])}},ea={width:`20px`,height:`20px`,color:i.tokens.colorBrandBackground},ta=[`access`,`comment`,`create`,`delete`,`edit`,`mention`,`move`,`rename`,`restore`,`share`,`version`],$=new Map([]),na=({siteId:r,listId:i,itemId:a,currentUserEmail:o,strings:s,context:c})=>{let{getItemActivities:l}=$i(c),u=e.d(),{warn:f,error:p}=z(),m=new Map([[`access`,{message:s?.access||u.accessed||$.get(`access`)?.message||``,icon:(0,n.jsx)(d.OpenRegular,{style:ea,"aria-hidden":`true`})}],[`comment`,{message:s?.comment||u.commented||$.get(`comment`)?.message||``,icon:(0,n.jsx)(d.CommentRegular,{style:ea,"aria-hidden":`true`})}],[`create`,{message:s?.create||u.created||$.get(`create`)?.message||``,icon:(0,n.jsx)(d.AddRegular,{style:ea,"aria-hidden":`true`})}],[`delete`,{message:s?.delete||u.deleted||$.get(`delete`)?.message||``,icon:(0,n.jsx)(d.DeleteRegular,{style:ea,"aria-hidden":`true`})}],[`edit`,{message:s?.edit||u.edited||$.get(`edit`)?.message||``,icon:(0,n.jsx)(d.EditRegular,{style:ea,"aria-hidden":`true`})}],[`mention`,{message:s?.mention||u.mentioned||$.get(`mention`)?.message||``,icon:(0,n.jsx)(d.MentionRegular,{style:ea,"aria-hidden":`true`})}],[`move`,{message:s?.move||u.moved||$.get(`move`)?.message||``,icon:(0,n.jsx)(d.ArrowMoveRegular,{style:ea,"aria-hidden":`true`})}],[`rename`,{message:s?.rename||u.renamed||$.get(`rename`)?.message||``,icon:(0,n.jsx)(d.RenameRegular,{style:ea,"aria-hidden":`true`})}],[`restore`,{message:s?.restore||u.restored||$.get(`restore`)?.message||``,icon:(0,n.jsx)(d.ArrowSyncRegular,{style:ea,"aria-hidden":`true`})}],[`share`,{message:s?.share||u.shared||$.get(`share`)?.message||``,icon:(0,n.jsx)(d.PeopleRegular,{style:ea,"aria-hidden":`true`})}],[`version`,{message:s?.version||u.versioned||$.get(`version`)?.message||``,icon:(0,n.jsx)(d.HistoryRegular,{style:ea,"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=ta.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)(ee.Fade,{imperativeRef:b,visible:!_,children:(0,n.jsx)(`div`,{children:(0,n.jsxs)(H,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`center`,RowGap:4,columnGap:4,children:[h.icon,` `,h.message]})})})},ra=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`})]}),ia=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)(ra,{width:200,height:200}),(0,n.jsx)(i.Text,{size:500,weight:`semibold`,children:a.noDashboardsAvailable})]})},aa=()=>({gridContainer:l.css`
429
+ `}),iu=[{minWidth:1280,gap:100},{minWidth:1024,gap:60},{minWidth:768,gap:40},{minWidth:480,gap:24},{minWidth:0,gap:12}];function au(e){for(let t of iu)if(e>t.minWidth)return t.gap;return iu[iu.length-1].gap}function ou(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=au(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 su=({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 cu(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 lu(e,t){let n=[],r=cu(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 uu=({items:e,farItems:r=[],isLoading:a=!1,ariaLabel:o=`Toolbar`,totalCount:s,className:c,showGroupDividers:l=!0})=>{let u=ru(),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(()=>cu(_),[_]),y=t.useMemo(()=>lu(g,l),[g,l]),b=ou(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)(su,{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)(su,{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)(su,{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))})})]})},du=()=>({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%`})}),fu=6e4,pu=new Map,mu=300*1e3,hu=120*1e3;setInterval(()=>{let e=Date.now(),t=[];pu.forEach((n,r)=>{e>n.expiresAt&&t.push(r)}),t.forEach(e=>pu.delete(e))},600*1e3);var gu=(n,r)=>{let i=re(),a=(r||i)?.graphClient,{error:o,warn:s,verbose:c}=B(),[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=pu.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};pu.set(n,{data:s,timestamp:r,expiresAt:r+mu}),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=pu.get(n),r=Date.now();if(!(t&&t.data.presence&&r-t.timestamp<hu))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};pu.set(n,{data:a,timestamp:r,expiresAt:t?.expiresAt||r+mu}),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}=oe(_,l?fu:fu*2,!1);return(0,t.useEffect)(()=>(l&&v(),()=>{y()}),[l,v,y]),{user:l,loading:d,refetch:g}},_u=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=du(),{user:h}=gu(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)(nu,{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)),vu=()=>({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}})}),yu=({users:e,maxVisible:r=5,avatarSize:a=32,showHoverCard:o=!0,context:s,className:c,layout:l=`stack`,overflowText:u})=>{let d=vu(),{warn:f}=B(),{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)(U,{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)(_u,{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)(_u,{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)},bu=e=>{let n=re(),r=(e||n)?.graphClient,{warn:i,error:a}=B();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])}},xu={width:`20px`,height:`20px`,color:i.tokens.colorBrandBackground},Su=[`access`,`comment`,`create`,`delete`,`edit`,`mention`,`move`,`rename`,`restore`,`share`,`version`],Cu=new Map([]),wu=({siteId:r,listId:i,itemId:a,currentUserEmail:o,strings:s,context:c})=>{let{getItemActivities:l}=bu(c),u=e.p(),{warn:f,error:p}=B(),m=new Map([[`access`,{message:s?.access||u.accessed||Cu.get(`access`)?.message||``,icon:(0,n.jsx)(d.OpenRegular,{style:xu,"aria-hidden":`true`})}],[`comment`,{message:s?.comment||u.commented||Cu.get(`comment`)?.message||``,icon:(0,n.jsx)(d.CommentRegular,{style:xu,"aria-hidden":`true`})}],[`create`,{message:s?.create||u.created||Cu.get(`create`)?.message||``,icon:(0,n.jsx)(d.AddRegular,{style:xu,"aria-hidden":`true`})}],[`delete`,{message:s?.delete||u.deleted||Cu.get(`delete`)?.message||``,icon:(0,n.jsx)(d.DeleteRegular,{style:xu,"aria-hidden":`true`})}],[`edit`,{message:s?.edit||u.edited||Cu.get(`edit`)?.message||``,icon:(0,n.jsx)(d.EditRegular,{style:xu,"aria-hidden":`true`})}],[`mention`,{message:s?.mention||u.mentioned||Cu.get(`mention`)?.message||``,icon:(0,n.jsx)(d.MentionRegular,{style:xu,"aria-hidden":`true`})}],[`move`,{message:s?.move||u.moved||Cu.get(`move`)?.message||``,icon:(0,n.jsx)(d.ArrowMoveRegular,{style:xu,"aria-hidden":`true`})}],[`rename`,{message:s?.rename||u.renamed||Cu.get(`rename`)?.message||``,icon:(0,n.jsx)(d.RenameRegular,{style:xu,"aria-hidden":`true`})}],[`restore`,{message:s?.restore||u.restored||Cu.get(`restore`)?.message||``,icon:(0,n.jsx)(d.ArrowSyncRegular,{style:xu,"aria-hidden":`true`})}],[`share`,{message:s?.share||u.shared||Cu.get(`share`)?.message||``,icon:(0,n.jsx)(d.PeopleRegular,{style:xu,"aria-hidden":`true`})}],[`version`,{message:s?.version||u.versioned||Cu.get(`version`)?.message||``,icon:(0,n.jsx)(d.HistoryRegular,{style:xu,"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=Su.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)(R.Fade,{imperativeRef:b,visible:!_,children:(0,n.jsx)(`div`,{children:(0,n.jsxs)(V,{horizontal:!0,verticalAlign:`center`,horizontalAlign:`center`,RowGap:4,columnGap:4,children:[h.icon,` `,h.message]})})})},Tu=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`})]}),Eu=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)(Tu,{width:200,height:200}),(0,n.jsx)(i.Text,{size:500,weight:`semibold`,children:a.noDashboardsAvailable})]})},Du=()=>({gridContainer:l.css`
415
430
  display: grid;
416
431
  gap: 4px;
417
432
  padding: 8px;
@@ -434,11 +449,11 @@ import { AISearchIcon } from './AISearchIcon';
434
449
  `,bottomText:l.css`
435
450
  padding-left: 8px;
436
451
  padding-right: 8px;
437
- `,zoomContainer:(0,l.css)({display:`flex`,flexDirection:`row`,alignItems:`center`,gap:`6px`,width:`100%`,boxSizing:`border-box`,padding:`8px 0px`})}),oa=r=>{let{onChange:a,values:o,maxCols:s,maxRows:c}=r,l=(0,d.bundleIcon)(d.Settings20Filled,d.Settings20Regular),u=aa(),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)(_t,{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})]})]})},sa=()=>({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}`}})}),ca=600,la=4,ua=`app-dashboard`,da=30,fa=({cards:e,containerWidth:r,containerHeight:a=`100%`,maxSpanRows:o=la,enableDragAndDrop:s=!0,enableCache:c=!0,cacheKeyPrefix:l=ua,onCardsReorder:u,onCardResize:d})=>{let{warn:f}=z(),p=sa(),m=`${l}-layout-settings`,h=`${l}-card-order`,{getCachedData:g,setCachedData:_}=ne(),v=(0,t.useCallback)(e=>g(e),[g]),y=(0,t.useCallback)((e,t)=>_(e,t,da*24*60),[_]),{getCachedData:b,setCachedData:x}=ne(),S=(0,t.useCallback)(e=>b(e),[b]),C=(0,t.useCallback)((e,t)=>x(e,t,da*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<=ca&&D(()=>{let e={};return w.forEach(t=>{e[t.id]={spanCols:1,spanRows:1}}),e})},[r,w]);let j=(0,t.useMemo)(()=>r>ca,[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]),re=(0,t.useMemo)(()=>w.map((e,t)=>{let r=e.showZoom!==!1&&j,c=e.headerAction||(r?(0,n.jsx)(oa,{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)(W,{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)(ia,{}):(0,n.jsx)(`div`,{ref:A,className:p.dashboardContainer,style:{height:a},children:re})},pa=l.keyframes`
452
+ `,zoomContainer:(0,l.css)({display:`flex`,flexDirection:`row`,alignItems:`center`,gap:`6px`,width:`100%`,boxSizing:`border-box`,padding:`8px 0px`})}),Ou=r=>{let{onChange:a,values:o,maxCols:s,maxRows:c}=r,l=(0,d.bundleIcon)(d.Settings20Filled,d.Settings20Regular),u=Du(),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)(St,{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})]})]})},ku=()=>({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}`}})}),Au=600,ju=4,Mu=`app-dashboard`,Nu=30,Pu=({cards:e,containerWidth:r,containerHeight:a=`100%`,maxSpanRows:o=ju,enableDragAndDrop:s=!0,enableCache:c=!0,cacheKeyPrefix:l=Mu,onCardsReorder:u,onCardResize:d})=>{let{warn:f}=B(),p=ku(),m=`${l}-layout-settings`,h=`${l}-card-order`,{getCachedData:g,setCachedData:_}=ae(),v=(0,t.useCallback)(e=>g(e),[g]),y=(0,t.useCallback)((e,t)=>_(e,t,Nu*24*60),[_]),{getCachedData:b,setCachedData:x}=ae(),S=(0,t.useCallback)(e=>b(e),[b]),C=(0,t.useCallback)((e,t)=>x(e,t,Nu*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<=Au&&D(()=>{let e={};return w.forEach(t=>{e[t.id]={spanCols:1,spanRows:1}}),e})},[r,w]);let j=(0,t.useMemo)(()=>r>Au,[r]),{minCardWidth:M,gridGap:N,containerPadding:P}=(0,t.useMemo)(()=>({minCardWidth:350,gridGap:16,containerPadding:20}),[]),F=r-P*2,I=(0,t.useMemo)(()=>Math.floor((F+N)/(M+N)),[F,N,M]),L=Math.max(I,1),R=(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]),z=(0,t.useCallback)((e,t)=>{let n={spanCols:Math.min(Math.max(t.spanCols,1),L),spanRows:Math.min(Math.max(t.spanRows,1),o)};D(t=>({...t,[e]:n})),d&&d(e,n)},[L,o,d]),ee=(0,t.useMemo)(()=>w.reduce((e,t)=>(e[t.id]={spanCols:Math.min(t.defaultSpan?.spanCols??1,I),spanRows:t.defaultSpan?.spanRows??1},e),{}),[w,I]),te=(0,t.useMemo)(()=>w.map((e,t)=>{let r=e.showZoom!==!1&&j,c=e.headerAction||(r?(0,n.jsx)(Ou,{values:E[e.id]||ee[e.id]||{spanCols:1,spanRows:1},maxCols:L,maxRows:o,IsOpen:!1,onChange:t=>z(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?R: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,R()):(e.key===`ArrowRight`||e.key===`ArrowDown`)&&t<w.length-1&&(e.preventDefault(),O.current=t,k.current=t+1,R()))}:void 0,style:{gridColumnEnd:E[e.id]?.spanCols?`span ${E[e.id].spanCols}`:`span ${ee[e.id]?.spanCols||1}`,gridRowEnd:E[e.id]?.spanRows?`span ${E[e.id].spanRows}`:`span ${ee[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)(U,{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,R,E,p.cardBody,p.cardDescription,p.chartContainer,p.cardWrapper,j,L,o,z,a,ee]);return w.length===0?(0,n.jsx)(Eu,{}):(0,n.jsx)(`div`,{ref:A,className:p.dashboardContainer,style:{height:a},children:te})},Fu=l.keyframes`
438
453
  0%, 100% { transform: translateY(0px); }
439
454
  50% { transform: translateY(-8px); }
440
- `,ma=l.keyframes`
455
+ `,Iu=l.keyframes`
441
456
  0% { background-position: -200% center; }
442
457
  100% { background-position: 200% center; }
443
- `,ha=()=>({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:`${pa} 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:`${pa} 2s ease-in-out infinite 0.5s`}),noKpiSparkle2:(0,l.css)({position:`absolute`,bottom:`-4px`,left:`-8px`,color:i.tokens.colorPaletteLavenderForeground2,fontSize:`16px`,animation:`${pa} 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:`${ma} 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`})}),ga=function(e){return e[e.LOWER_IS_BETTER=1]=`LOWER_IS_BETTER`,e[e.HIGHER_IS_BETTER=2]=`HIGHER_IS_BETTER`,e}({}),_a=r=>{let{dataCard:a}=r,o=ha(),s=e.u(),[c,l]=t.useState(!1),u=t.useCallback(()=>{l(!1)},[]),f=t.useMemo(()=>a.goalMetric===ga.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)(W,{gap:`m`,padding:`m`,children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsxs)(W,{direction:`vertical`,gap:`2px`,children:[(0,n.jsx)(W,{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===ga.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)(W,{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)(W,{gap:`s`,children:[(0,n.jsxs)(W,{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)(W,{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)(W,{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)(W,{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)(W,{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})})]})]})})},va=()=>{let e=ha(),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)(W,{gap:`m`,padding:`m`,children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsx)(W,{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)(W,{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)(W,{gap:`s`,children:[(0,n.jsxs)(W,{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)(W,{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)(W,{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)(W,{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)(W,{children:(0,n.jsx)(i.SkeletonItem,{className:t.badge})})]})})})},ya=`/sites/mock-site/Lists/Directory Status Config`,ba=()=>{let r=ha(),a=e.h(),o=ya,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)(W,{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})})]})]})},xa=r=>{let{dataCard:a}=r,o=ha(),s=e.u(),[c,l]=t.useState(!1),u=t.useCallback(()=>{l(!1)},[]),f=t.useMemo(()=>a.goalMetric===ga.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)(W,{gap:`0px`,padding:`m`,children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsxs)(W,{direction:`vertical`,gap:`2px`,children:[(0,n.jsx)(W,{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===ga.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)(W,{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)(W,{gap:`s`,children:[(0,n.jsxs)(W,{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`})]})]})]})})},Sa=[{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}],Ca=e=>{let{skeletonCount:r=3,compact:i=!1}=e,a=ha(),o=Sa;return t.useCallback(()=>Array.from({length:r}).map((e,t)=>(0,n.jsx)(va,{},`kpi-skeleton-${t}`)),[r]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(W,{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)(xa,{dataCard:e},e.identifier):(0,n.jsx)(_a,{dataCard:e},e.identifier)):(0,n.jsx)(ba,{})})})})})},wa=()=>{let e=t.useRef(``);return e.current||=`fui-`+Math.random().toString(36).slice(2,9),e.current},Ta=e=>{let t=wa(),{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=Oi,exports.AISearchControl=ci,exports.AISearchIcon=ii,exports.AISearchIconExample=ui,exports.AdaptiveCardHost=Zr,exports.AdaptiveCardHostThemeType=J,exports.AppDashboard=fa,exports.AspectRatio=nt,exports.Breadcrumb=Dt,exports.ButtonMenu=Ct,exports.CalendarControl=mn,exports.CalendarMonth=$t,exports.Card=Ge,exports.Carousel=ft,exports.Center=at,exports.ChatInput=fi,exports.ChatInputWithMensions=_i,exports.ChatInputWithMensionsV1=ki,exports.ChatList=Ti,exports.Container=st,exports.ContentRenderer=wi,exports.ContentType=V,exports.CustomControlBar=Qn,exports.DataGrid=In,exports.DataGridV2=zn,exports.DropdownField=gn,exports.EBreakPoints=P,exports.ECalendarViews=K,exports.EGoalMetric=ga,exports.EMessageType=F,exports.ErrorType=e.w,exports.FluentUIProvider=Ta,exports.GenericOverFlowMenu=nr,exports.Grid=qe,exports.IconButton=Ot,exports.InputField=vn,exports.ItemPicker=Nn,exports.KPICard=_a,exports.KPICardCompact=xa,exports.KPICardSkeleton=va,exports.Kpis=Ca,exports.Layout=Xe,exports.LayoutItem=Ze,exports.ListItemActivityMessage=na,exports.ListToolbar=Ui,exports.LivePersona=Fi,exports.LocalizationProvider=e.t,exports.LogLevel=e.T,exports.MaplibreWorldMap=xr,exports.MarkdownRenderer=Si,exports.Mensions=mi,exports.MensionsExample=hi,exports.MermaidDiagram=Pi,exports.Navigation=rr,exports.NoKpisCard=ba,exports.OptionTime=kn,exports.Popup=ht,exports.RenderAdaptiveCard=Qr,exports.RenderDialog=Hn,exports.RenderDrawer=Un,exports.RenderHeader=Wn,exports.RenderLabel=_t,exports.RenderSpinner=yt,exports.SearchControl=bn,exports.SelectDay=Xt,exports.SelectMonth=en,exports.SelectTime=jn,exports.SelectView=xn,exports.SelectWeek=an,exports.ShareDialog=Kn,exports.ShowError=Jn,exports.ShowMessage=Xn,exports.Space=$e,exports.SplitPane=mt,exports.Stack=H,exports.StackItem=tt,exports.StackV2=W,exports.StackedUsers=Qi,exports.TIME_RADIO_GROUP=wn,exports.TypographyControl=St,exports.UniversalProvider=L,exports.UserCard=Xi,exports.VideoPlayer=or,exports.cloneDeep=Ee,exports.debounce=we,exports.deepMerge=e.S,exports.defaultCalendarControlStrings=un,exports.defaultCalendarMonthStrings=Qt,exports.defaultSelectWeekStrings=tn,exports.detectContentType=He,exports.en=e.C,exports.every=Ie,exports.filter=Pe,exports.formatTime=En,exports.get=Oe,exports.getContentType=Ue,exports.groupBy=Me,exports.isEmpty=De,exports.map=Ne,exports.set=ke,exports.some=Fe,exports.throttle=Te,exports.timeKey=Dn,exports.uniq=Ae,exports.uniqBy=je,exports.useAIAssistantStrings=e.n,exports.useAISearchControlStrings=e.r,exports.useAppDashboardStrings=e.i,exports.useApplicationContext=R,exports.useAspectRatioStyles=rt,exports.useBrandCenterFonts=_e,exports.useCalendar=Ut,exports.useCalendarStrings=e.a,exports.useCalendarStyles=It,exports.useCenterStyles=it,exports.useCommonStrings=e.o,exports.useComponentStrings=e.s,exports.useComponentUtils=B,exports.useDataGridStyles=Fn,exports.useDateUtils=be,exports.useDayViewStyles=Wt,exports.useGraphAPI=te,exports.useGridStyles=Ke,exports.useImageUtils=Ce,exports.useIndexedDBCache=ne,exports.useInputFieldStrings=e.c,exports.useItemPickerStrings=e.l,exports.useKpiStrings=e.u,exports.useLayoutStyles=Je,exports.useListItemActivityStrings=e.d,exports.useLocalization=e.f,exports.useLogging=z,exports.useMensionsStrings=e.p,exports.useMensionsStyles=pi,exports.useMermaidDiagramStrings=e.m,exports.useMermaidDiagramStyles=ji,exports.useNavigationStyles=ir,exports.useNoKpiStrings=e.h,exports.useOptionTimeStyles=Cn,exports.usePolling=re,exports.useRenderHeaderStyles=Gn,exports.useSearchControlStrings=e.g,exports.useSelectTimeStyles=Sn,exports.useShareDialogStrings=e._,exports.useShowErrorStyles=qn,exports.useShowMessageStyles=Yn,exports.useSpaceStyles=Qe,exports.useSplitPaneStyles=pt,exports.useStackStyles=et,exports.useStrings=e.v,exports.useStyles=Ai,exports.useTimeZoneHelper=ie,exports.useUserCardStrings=e.y,exports.useUtils=At,exports.useVideoStyles=ar,exports.useWeekViewStyles=zt,exports.useWorldMapStrings=e.b;
458
+ `,Lu=()=>({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:`${Fu} 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:`${Fu} 2s ease-in-out infinite 0.5s`}),noKpiSparkle2:(0,l.css)({position:`absolute`,bottom:`-4px`,left:`-8px`,color:i.tokens.colorPaletteLavenderForeground2,fontSize:`16px`,animation:`${Fu} 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:`${Iu} 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`})}),Ru=function(e){return e[e.LOWER_IS_BETTER=1]=`LOWER_IS_BETTER`,e[e.HIGHER_IS_BETTER=2]=`HIGHER_IS_BETTER`,e}({}),zu=r=>{let{dataCard:a}=r,o=Lu(),s=e.f(),[c,l]=t.useState(!1),u=t.useCallback(()=>{l(!1)},[]),f=t.useMemo(()=>a.goalMetric===Ru.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)(U,{gap:`m`,padding:`m`,children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsxs)(U,{direction:`vertical`,gap:`2px`,children:[(0,n.jsx)(U,{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===Ru.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)(U,{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)(U,{gap:`s`,children:[(0,n.jsxs)(U,{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)(U,{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)(U,{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)(U,{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)(U,{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})})]})]})})},Bu=()=>{let e=Lu(),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)(U,{gap:`m`,padding:`m`,children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsx)(U,{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)(U,{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)(U,{gap:`s`,children:[(0,n.jsxs)(U,{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)(U,{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)(U,{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)(U,{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)(U,{children:(0,n.jsx)(i.SkeletonItem,{className:t.badge})})]})})})},Vu=`/sites/mock-site/Lists/Directory Status Config`,Hu=()=>{let r=Lu(),a=e._(),o=Vu,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)(U,{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})})]})]})},Uu=r=>{let{dataCard:a}=r,o=Lu(),s=e.f(),[c,l]=t.useState(!1),u=t.useCallback(()=>{l(!1)},[]),f=t.useMemo(()=>a.goalMetric===Ru.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)(U,{gap:`0px`,padding:`m`,children:[(0,n.jsx)(i.CardHeader,{header:(0,n.jsxs)(U,{direction:`vertical`,gap:`2px`,children:[(0,n.jsx)(U,{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===Ru.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)(U,{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)(U,{gap:`s`,children:[(0,n.jsxs)(U,{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`})]})]})]})})},Wu=[{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}],Gu=e=>{let{skeletonCount:r=3,compact:i=!1}=e,a=Lu(),o=Wu;return t.useCallback(()=>Array.from({length:r}).map((e,t)=>(0,n.jsx)(Bu,{},`kpi-skeleton-${t}`)),[r]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(U,{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)(Uu,{dataCard:e},e.identifier):(0,n.jsx)(zu,{dataCard:e},e.identifier)):(0,n.jsx)(Hu,{})})})})})},Ku=new Set([`p`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`li`,`td`,`th`]),qu=(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`},Ju=(e,t=`component`,n)=>{let r=e.getBoundingClientRect(),i=[],a=n?.leafTags?new Set([...Ku,...n.leafTags]):Ku,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%`:qu(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:qu(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}},Yu=(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=Ju(e,i??`auto`,a);t.bones.length>0&&s(t)}});return()=>cancelAnimationFrame(c)},[n,r,o,i,a,e]),o},Xu={angle:110,start:25,end:75,speed:`1.8s`},Zu={speed:`1.5s`},Qu={bone:`var(--colorNeutralStencil1)`,shimmerHighlight:`var(--colorNeutralStencil2)`},$u=new Map,ed=e=>{for(let[t,n]of Object.entries(e))$u.set(t,n)},td=e=>$u.get(e),nd=()=>{typeof window<`u`&&window.__SKELETON_BUILD&&(window.__SKELETON_SNAPSHOT=Ju)},rd=()=>typeof window<`u`&&window.__SKELETON_BUILD===!0,id=(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},ad=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,od={},sd=e=>{od={...od,...e}},cd=()=>od,ld=()=>(0,t.useMemo)(()=>({SHIMMER:Xu,PULSE:Zu,DEFAULTS:Qu,getRegisteredBones:td,isBuildMode:rd,normalizeBone:ad,resolveResponsive:id,getGlobalConfig:cd}),[]),ud=(0,l.keyframes)({"0%, 100%":{opacity:1},"50%":{opacity:.4}}),dd=(0,l.keyframes)({"0%":{backgroundPosition:`200% 0`},"100%":{backgroundPosition:`-200% 0`}}),fd=(0,l.keyframes)({from:{opacity:0},to:{opacity:1}}),pd=(0,l.css)({position:`relative`}),md=(0,l.css)({position:`absolute`,inset:0,overflow:`hidden`}),hd=(0,l.css)({visibility:`hidden`,pointerEvents:`none`}),gd=(0,l.css)({position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`}),_d={position:`relative`,width:`100%`,height:`100%`},vd=()=>({container:pd,overlay:md,hiddenContent:hd,fallbackOverlay:gd});nd();var yd=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/,bd=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(yd);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},xd=({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=vd(),{DEFAULTS:y,SHIMMER:b,PULSE:x,getRegisteredBones:S,isBuildMode:C,normalizeBone:w,resolveResponsive:T,getGlobalConfig:E}=ld(),D=(0,t.useRef)(null),[O,k]=(0,t.useState)(0),[A,j]=(0,t.useState)(0),M=bd(D),N=E(),P=s??N.color,F=c??N.darkColor,I=!!(P||F),L=I?M?F??P:P??y.bone:y.bone,R=l??N.animate??`pulse`,z=R===!0?`pulse`:R===!1?`solid`:R;(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 ee=(0,t.useMemo)(()=>{let e={};return a&&(e[`data-skeleton`]=a,_&&(e[`data-skeleton-config`]=JSON.stringify(_))),e},[a,_]),[te,ne]=(0,t.useState)(!1);(0,t.useLayoutEffect)(()=>{ne(!0)},[]);let re=o??(a?S(a):void 0),B=te&&typeof window<`u`?window.innerWidth:0,ie=O>0?O:B,ae=re&&ie>0?T(re,ie):null,oe=Yu(D,e,ae,a,_),se=ae??oe,ce=(0,t.useMemo)(()=>{let e=u??N.stagger;return e===!0?80:e===!1||!e?0:e},[u,N.stagger]),le=(0,t.useMemo)(()=>{let e=d??N.transition;return e===!0?300:e===!1||!e?0:e},[d,N.transition]),[ue,de]=(0,t.useState)(!1),fe=(0,t.useRef)(e),pe=(0,t.useRef)(null);(0,t.useEffect)(()=>(fe.current&&!e&&le>0&&se&&(pe.current&&clearTimeout(pe.current),de(!0),pe.current=setTimeout(()=>{de(!1),pe.current=null},le)),fe.current=e,()=>{pe.current&&clearTimeout(pe.current)}),[e,le,se]);let me=(e||ue)&&se,he=e&&!se&&!ue,ge=A>0?A:se?.height??0,_e=se?.height??0,ve=ge>0&&_e>0?ge/_e:1,ye=(0,t.useMemo)(()=>se?se.bones.map(w).filter(e=>!e.c):[],[se]),be=(0,t.useCallback)((e,t)=>{let n=e.w/100*(se?.width??0),r=e.r===`50%`&&Math.abs(n-e.h)<4,i=r?0:2,a=e.h*ve,o=Math.max(a-i*2,2),s={position:`absolute`,left:`${e.x}%`,top:e.y*ve+i,width:r?e.h*ve:`${e.w}%`,height:o,borderRadius:typeof e.r==`string`?e.r:`${e.r}px`},c=N.speed;if(z===`shimmer`){let e=I?M?N.darkShimmerColor??y.shimmerHighlight:N.shimmerColor??y.shimmerHighlight:y.shimmerHighlight;s.backgroundImage=`linear-gradient(${N.shimmerAngle??b.angle}deg, ${L} ${b.start}%, ${e} 50%, ${L} ${b.end}%)`,s.backgroundSize=`200% 100%`,s.animation=`${dd} ${c??b.speed} linear infinite`}else s.backgroundColor=L,z===`pulse`&&(s.animation=`${ud} ${c??x.speed} ease-in-out infinite`);return ce>0&&(s.opacity=0,s.animation=`${s.animation?`${s.animation}, `:``}${fd} 0.3s ease-out ${t*ce}ms forwards`),s},[se,ve,z,L,I,M,N,ce]);if(C())return(0,n.jsx)(`div`,{ref:D,className:(0,i.mergeClasses)(v.container,p),style:m,...ee,children:(0,n.jsx)(`div`,{children:g??r})});let xe=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`,...xe,...ee,children:[(0,n.jsx)(`div`,{"data-skeleton-content":`true`,className:me?v.hiddenContent:void 0,children:r}),he&&h&&(0,n.jsx)(`div`,{className:v.fallbackOverlay,children:h}),me&&(0,n.jsx)(`div`,{"data-skeleton-overlay":`true`,className:v.overlay,"aria-hidden":`true`,style:{opacity:ue?0:1,transition:le>0?`opacity ${le}ms ease-out`:void 0},children:(0,n.jsx)(`div`,{style:_d,children:ye.map((e,t)=>(0,n.jsx)(`div`,{"data-skeleton-bone":`true`,className:f??N.boneClass,style:be(e,t)},t))})})]})},Sd=()=>{let e=t.useRef(``);return e.current||=`fui-`+Math.random().toString(36).slice(2,9),e.current},Cd=e=>{let t=Sd(),{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=Zc,exports.AISearchControl=jc,exports.AISearchIcon=Dc,exports.AISearchIconExample=Nc,exports.AdaptiveCardHost=bc,exports.AdaptiveCardHostThemeType=Hs,exports.AlignCenterControl=Xi,exports.AlignJustifyControl=Zi,exports.AlignLeftControl=Ji,exports.AlignRightControl=Yi,exports.AppDashboard=Pu,exports.AspectRatio=st,exports.BackgroundImage=El,exports.Blockquote=fl,exports.BlockquoteControl=qi,exports.BoldControl=Ni,exports.Breadcrumb=Mt,exports.BulletListControl=zi,exports.ButtonMenu=Ot,exports.CalendarControl=yn,exports.CalendarGrid=Sn,exports.CalendarHeader=Cn,exports.CalendarMonth=an,exports.Card=Xe,exports.Carousel=_t,exports.Center=ut,exports.ChatInput=Fc,exports.ChatInputWithMensions=Bc,exports.ChatInputWithMensionsV1=Qc,exports.ChatList=Jc,exports.ChromeInputType=wo,exports.ClearFormattingControl=Li,exports.CodeBlockControl=ta,exports.CodeControl=ea,exports.ColorPicker=$o,exports.ColorPickerAlpha=po,exports.ColorPickerBlock=Ho,exports.ColorPickerChrome=ko,exports.ColorPickerCircle=Lo,exports.ColorPickerColorful=Ao,exports.ColorPickerCompact=Bo,exports.ColorPickerEditableInput=yo,exports.ColorPickerEditableInputHSLA=xo,exports.ColorPickerEditableInputRGBA=bo,exports.ColorPickerHue=uo,exports.ColorPickerInteractive=io,exports.ColorPickerSaturation=oo,exports.ColorPickerShadeSlider=ho,exports.ColorPickerSketch=Co,exports.ColorPickerSlider=Wo,exports.ColorPickerSwatch=_o,exports.ColorPickerTheme=Zo,exports.ColorPickerWheel=Po,exports.CompactCalendar=Nn,exports.Container=ft,exports.ContentRenderer=qc,exports.ContentType=Ve,exports.CustomControlBar=vs,exports.DataGrid=ns,exports.DataGridV2=as,exports.DropdownField=ga,exports.Dropzone=Tr,exports.DropzoneAccept=br,exports.DropzoneFullScreen=Er,exports.DropzoneIdle=Sr,exports.DropzoneProvider=_r,exports.DropzoneReject=xr,exports.EBreakPoints=z,exports.ECalendarViews=G,exports.EGoalMetric=Ru,exports.EMessageType=ee,exports.EXE_MIME_TYPE=Nr,exports.ErrorType=e.D,exports.EventsList=wn,exports.FluentUIProvider=Cd,exports.GenericOverFlowMenu=Ss,exports.Grid=Qe,exports.H1Control=Vi,exports.H2Control=Hi,exports.H3Control=Ui,exports.H4Control=Wi,exports.H5Control=Gi,exports.H6Control=Ki,exports.HighlightControl=na,exports.HrControl=ra,exports.IMAGE_MIME_TYPE=Or,exports.IconButton=Nt,exports.InlineSVG=Jl,exports.InputField=va,exports.ItalicControl=Pi,exports.ItemPicker=ja,exports.KPICard=zu,exports.KPICardCompact=Uu,exports.KPICardSkeleton=Bu,exports.Kpis=Gu,exports.Layout=tt,exports.LayoutItem=nt,exports.Link=pa,exports.ListItemActivityMessage=wu,exports.ListToolbar=uu,exports.LivePersona=nu,exports.LocalizationProvider=e.t,exports.LogLevel=e.O,exports.MIME_TYPES=Dr,exports.MS_EXCEL_MIME_TYPE=jr,exports.MS_POWERPOINT_MIME_TYPE=Mr,exports.MS_WORD_MIME_TYPE=Ar,exports.MaplibreWorldMap=Vs,exports.MarkdownRenderer=Gc,exports.Marquee=bl,exports.Mensions=Lc,exports.MensionsExample=Rc,exports.MermaidDiagram=rl,exports.Navigation=Cs,exports.NoKpisCard=Hu,exports.OTPField=tu,exports.OptionTime=Da,exports.OrderedListControl=Bi,exports.PDF_MIME_TYPE=kr,exports.Popup=bt,exports.RedoControl=oa,exports.RenderAdaptiveCard=xc,exports.RenderDialog=cs,exports.RenderDrawer=ls,exports.RenderHeader=us,exports.RenderLabel=St,exports.RenderSpinner=wt,exports.RichTextEditor=fa,exports.RichTextEditorColorControl=Oi,exports.RichTextEditorColorPickerControl=ki,exports.RichTextEditorContent=zr,exports.RichTextEditorControl=Vr,exports.RichTextEditorControlBase=Hr,exports.RichTextEditorControlsGroup=Br,exports.RichTextEditorFontFamilyControl=Mi,exports.RichTextEditorLinkControl=Di,exports.RichTextEditorSourceCodeControl=Ai,exports.RichTextEditorToolbar=Rr,exports.SearchControl=tr,exports.SelectDay=tn,exports.SelectMonth=on,exports.SelectTime=ka,exports.SelectView=ya,exports.SelectWeek=un,exports.ShareDialog=fs,exports.ShowError=ms,exports.ShowMessage=gs,exports.SkeletonLoader=xd,exports.Space=it,exports.SplitPane=yt,exports.Spoiler=Cl,exports.Spotlight=hr,exports.SpotlightAction=ir,exports.SpotlightActionsGroup=ar,exports.SpotlightActionsList=or,exports.SpotlightEmpty=sr,exports.SpotlightFooter=cr,exports.SpotlightRoot=$n,exports.SpotlightSearch=nr,exports.Stack=V,exports.StackItem=ot,exports.StackV2=U,exports.StackedUsers=yu,exports.Stepper=Ll,exports.StrikeThroughControl=Ii,exports.SubscriptControl=Qi,exports.SuperscriptControl=$i,exports.TIME_RADIO_GROUP=Sa,exports.TaskListControl=sa,exports.TaskListLiftControl=la,exports.TaskListSinkControl=ca,exports.Timeline=jl,exports.TypographyControl=Dt,exports.UnderlineControl=Fi,exports.UndoControl=aa,exports.UniversalProvider=ne,exports.UnlinkControl=Ri,exports.UnsetColorControl=ia,exports.UserCard=_u,exports.VideoPlayer=Es,exports.clampHsva=no,exports.clearInlineSVGCache=Vl,exports.cloneDeep=Ae,exports.closeOnActionTriggerAtom=zn,exports.closeSpotlight=Kn,exports.color=Y,exports.configureSkeletonLoader=sd,exports.createControl=q,exports.createSpotlight=Jn,exports.createSpotlightStore=Vn,exports.debounce=Oe,exports.deepMerge=e.T,exports.defaultCalendarControlStrings=hn,exports.defaultCalendarMonthStrings=rn,exports.defaultSelectWeekStrings=sn,exports.defaultSpotlightFilter=pr,exports.detectContentType=qe,exports.en=e.E,exports.equalColorObjects=eo,exports.equalHex=to,exports.every=Be,exports.filter=Re,exports.formatTime=wa,exports.get=Me,exports.getContentType=Je,exports.getContrastingColor=$a,exports.getTaskListExtension=ma,exports.groupBy=Ie,exports.hexToHsva=Ra,exports.hexToRgba=Va,exports.hslaStringToHsva=Ya,exports.hslaToHsva=La,exports.hsvaToHex=za,exports.hsvaToHexa=Ba,exports.hsvaToHslString=Wa,exports.hsvaToHsla=Ia,exports.hsvaToHslaString=Ga,exports.hsvaToRgbString=Ka,exports.hsvaToRgba=Pa,exports.hsvaToRgbaString=qa,exports.isActionsGroup=ur,exports.isEmpty=je,exports.limitActions=mr,exports.listIdAtom=In,exports.map=Le,exports.onQueryChangeCallbackAtom=Bn,exports.openSpotlight=Gn,exports.openedAtom=Pn,exports.parseHue=Ja,exports.queryAtom=Ln,exports.registerBones=ed,exports.registeredActionsAtom=Rn,exports.resolveLocale=An,exports.rgbaStringToHsva=Xa,exports.rgbaToHex=Ha,exports.rgbaToHexa=Ua,exports.rgbaToHsva=Fa,exports.selectedAtom=Fn,exports.set=Ne,exports.snapshotBones=Ju,exports.some=ze,exports.spotlight=Wn,exports.spotlightActions=K,exports.spotlightStore=Hn,exports.throttle=ke,exports.timeKey=Ta,exports.toggleSpotlight=qn,exports.uniq=Pe,exports.uniqBy=Fe,exports.useAIAssistantStrings=e.n,exports.useAISearchControlStrings=e.r,exports.useAppDashboardStrings=e.i,exports.useApplicationContext=re,exports.useAspectRatioStyles=ct,exports.useBlockquoteStyles=cl,exports.useBrandCenterFonts=be,exports.useCalendar=Jt,exports.useCalendarStrings=e.a,exports.useCalendarStyles=Vt,exports.useCenterStyles=lt,exports.useColorPickerStyles=X,exports.useCommonStrings=e.o,exports.useCompactCalendarEvents=On,exports.useComponentStrings=e.c,exports.useComponentUtils=xe,exports.useDataGridStyles=ts,exports.useDateUtils=we,exports.useDayViewStyles=Yt,exports.useDropzoneContext=vr,exports.useDropzoneStyles=Cr,exports.useGraphAPI=ie,exports.useGridStyles=Ze,exports.useImageUtils=De,exports.useIndexedDBCache=ae,exports.useInputFieldStrings=e.u,exports.useItemPickerStrings=e.d,exports.useKpiStrings=e.f,exports.useLayoutStyles=$e,exports.useListItemActivityStrings=e.p,exports.useLocalization=e.m,exports.useLogging=B,exports.useMarqueeStyles=hl,exports.useMensionsStrings=e.h,exports.useMensionsStyles=Ic,exports.useMermaidDiagramStrings=e.g,exports.useMermaidDiagramStyles=el,exports.useNavigationStyles=ws,exports.useNoKpiStrings=e._,exports.useOptionTimeStyles=xa,exports.usePolling=oe,exports.useRenderHeaderStyles=ds,exports.useSearchControlStrings=e.v,exports.useSelectTimeStyles=ba,exports.useShareDialogStrings=e.y,exports.useShowErrorStyles=ps,exports.useShowMessageStyles=hs,exports.useSkeletonExtract=Yu,exports.useSpaceStyles=rt,exports.useSplitPaneStyles=vt,exports.useSpotlight=Yn,exports.useSpotlightShortcut=Zn,exports.useSpotlightStrings=e.b,exports.useStackStyles=at,exports.useStrings=e.x,exports.useStyles=$c,exports.useTimeZoneHelper=se,exports.useUserCardStrings=e.S,exports.useUtils=Ft,exports.useVideoStyles=Ts,exports.useWeekViewStyles=Wt,exports.useWorldMapStrings=e.C,exports.validHex=Qa;
444
459
  //# sourceMappingURL=index.cjs.map