@sis-cc/dotstatsuite-visions 15.0.2 → 15.3.0

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 (164) hide show
  1. package/dist/DynamicDrawer/DynamicDrawer.js +60 -16
  2. package/dist/DynamicDrawer/DynamicDrawer.js.map +1 -1
  3. package/dist/assets/{Alert-B12AyyFP.js → Alert-wimb2tJH.js} +1 -1
  4. package/dist/assets/Alert.stories-DzYIZm49.js +3 -0
  5. package/dist/assets/{ApiQueries.stories-CIgEeTml.js → ApiQueries.stories-CEJ_osx7.js} +1 -1
  6. package/dist/assets/ArrowForward-C4P-9gJ-.js +1 -0
  7. package/dist/assets/{Asterisk-CwKGqCwy.js → Asterisk-CH4kwcxv.js} +1 -1
  8. package/dist/assets/{AuthDialog.stories-Eb30Z69O.js → AuthDialog.stories-DwhfnQlE.js} +1 -1
  9. package/dist/assets/{Breadcrumbs.stories-DZCvGKEa.js → Breadcrumbs.stories-wZ3hCfev.js} +1 -1
  10. package/dist/assets/{Button-BXsN-a9m.js → Button-8dfSrKp-.js} +1 -1
  11. package/dist/assets/{Button-DJ7E6YnJ.js → Button-b8tZLURW.js} +1 -1
  12. package/dist/assets/{Button.stories-BScXx6U0.js → Button.stories-D6GXhk2n.js} +1 -1
  13. package/dist/assets/{ButtonBase-D7h0-Xr-.js → ButtonBase-DMDOmkj3.js} +1 -1
  14. package/dist/assets/{CardContent-C-WyX3nW.js → CardContent-CB0t9_Or.js} +1 -1
  15. package/dist/assets/{ChartsConfig.stories-CcjLXCjd.js → ChartsConfig.stories-CgxA_mdU.js} +1 -1
  16. package/dist/assets/{Checkbox-vrwoKp01.js → Checkbox-Cd78wVae.js} +1 -1
  17. package/dist/assets/{Chips.stories-B3Ifas9M.js → Chips.stories-B8XbsHgK.js} +1 -1
  18. package/dist/assets/{CircularProgress-1zPPs5fW.js → CircularProgress-CGulUrrN.js} +1 -1
  19. package/dist/assets/Close-DJLPkll4.js +1 -0
  20. package/dist/assets/{Collapse-dfV5TSGZ.js → Collapse-D3LlmMLj.js} +1 -1
  21. package/dist/assets/{CollapseButtons.stories-B9QLscNZ.js → CollapseButtons.stories-BUXU-c4H.js} +1 -1
  22. package/dist/assets/{CollapsibleTree.stories-_VAlrqf6.js → CollapsibleTree.stories-BbuuqKUN.js} +1 -1
  23. package/dist/assets/{Color-6AOWCN3U-DO132-Hp.js → Color-6AOWCN3U-Bk0kE9HD.js} +1 -1
  24. package/dist/assets/{Contact.stories-COCocrah.js → Contact.stories-BIjHQTe0.js} +1 -1
  25. package/dist/assets/{Container-CNOPexpB.js → Container-Cn50A3ei.js} +1 -1
  26. package/dist/assets/{Cross-B_PbrjmQ.js → Cross-rRsGSPN0.js} +1 -1
  27. package/dist/assets/{CustomChip-C3fcvszb.js → CustomChip-CIJf2JRM.js} +1 -1
  28. package/dist/assets/{DataEdit-G4M8s-l_.js → DataEdit-BgDPftAd.js} +1 -1
  29. package/dist/assets/DataEdit.stories-CE1wOYJk.js +1 -0
  30. package/dist/assets/{DataFooter.stories-CSVhYclj.js → DataFooter.stories-BK4ouGYy.js} +1 -1
  31. package/dist/assets/{DataHeader.stories-YAyo_31a.js → DataHeader.stories-BhN9s2qP.js} +1 -1
  32. package/dist/assets/{Dataflow.stories-BbtxDMOb.js → Dataflow.stories-C0t0uK8g.js} +1 -1
  33. package/dist/assets/{DeleteAllChip.stories-CPx154-O.js → DeleteAllChip.stories-DtZGtlcb.js} +1 -1
  34. package/dist/assets/{Dialog-D_Cbn3SQ.js → Dialog-BM219kIn.js} +1 -1
  35. package/dist/assets/{Divider-36JH9M0x.js → Divider-D7397PEg.js} +1 -1
  36. package/dist/assets/{DocsRenderer-JROSPFPF-CK4KoVSj.js → DocsRenderer-JROSPFPF-_umAyE7u.js} +5 -5
  37. package/dist/assets/Done-CIoepzEw.js +1 -0
  38. package/dist/assets/DynamicDrawer.stories-C4vL5LvP.js +5 -0
  39. package/dist/assets/{EmojiObjects-0FnzZx1m.js → EmojiObjects-BUcr3EHe.js} +1 -1
  40. package/dist/assets/ExpandLess-6Cz4u0Nt.js +1 -0
  41. package/dist/assets/ExpandMore-ByvumyiN.js +1 -0
  42. package/dist/assets/{ExpansionPanel-B555F3s1.js → ExpansionPanel-BTLdoz4F.js} +1 -1
  43. package/dist/assets/ExpansionPanel.stories-CX-m96CP.js +1 -0
  44. package/dist/assets/{FormControlLabel-BXK1lPB6.js → FormControlLabel-DkEOB1w-.js} +1 -1
  45. package/dist/assets/{Grid-CnrW0eiQ.js → Grid-Cp6VJJvm.js} +1 -1
  46. package/dist/assets/{GroupedChips.stories-CJURuQl-.js → GroupedChips.stories-DJK6BHiV.js} +1 -1
  47. package/dist/assets/{Grow-DVY8VE8H.js → Grow-BrpLFwQJ.js} +1 -1
  48. package/dist/assets/{HierarchicalFilter.stories-CnDqRS9z.js → HierarchicalFilter.stories-BTYM2VWp.js} +1 -1
  49. package/dist/assets/{IconButton-C80jyEwr.js → IconButton-DvN4zygm.js} +1 -1
  50. package/dist/assets/Info-DtYJYhBL.js +1 -0
  51. package/dist/assets/{Input-DR8ACGhR.js → Input-D0dFoJCR.js} +1 -1
  52. package/dist/assets/Input.stories-pfnK5Vvt.js +1 -0
  53. package/dist/assets/{InputAdornment-BGccf1OF.js → InputAdornment-V9-Ojnd3.js} +1 -1
  54. package/dist/assets/{InputNumber.stories-B9xNG0MB.js → InputNumber.stories-BKism4Ol.js} +1 -1
  55. package/dist/assets/{KeyboardArrowUp-DOw02bay.js → KeyboardArrowUp-C8xvKA6C.js} +1 -1
  56. package/dist/assets/{LabelDivider.stories-Bn66W-t0.js → LabelDivider.stories-DnST0otn.js} +1 -1
  57. package/dist/assets/Lens-CPIZFy-H.js +1 -0
  58. package/dist/assets/{Link-DQOLeyN4.js → Link-BJLGKJfY.js} +1 -1
  59. package/dist/assets/ListContext-BojgVICu.js +1 -0
  60. package/dist/assets/{Loading.stories-CJOak667.js → Loading.stories-CtlSvlhY.js} +1 -1
  61. package/dist/assets/{Logo.stories-AhYOKNDj.js → Logo.stories-DRnZ1SVg.js} +1 -1
  62. package/dist/assets/{MenuItem-CzVCkhVE.js → MenuItem-Bi-sVS3o.js} +1 -1
  63. package/dist/assets/{Mode-D5rTrH_N.js → Mode-DkaGesoV.js} +1 -1
  64. package/dist/assets/Mode.stories-DaMSysRf.js +1 -0
  65. package/dist/assets/{NoData-CASLYVON.js → NoData-CJLVyMBg.js} +1 -1
  66. package/dist/assets/NoData.stories-CZIeN9rh.js +1 -0
  67. package/dist/assets/{Pagination.stories-DzeQADXN.js → Pagination.stories-DYKM-k2W.js} +1 -1
  68. package/dist/assets/{Paper-rwPr6yAe.js → Paper-B5rIxLX0.js} +1 -1
  69. package/dist/assets/{PeriodPicker.stories-DpE7_UAO.js → PeriodPicker.stories-DLjenMFH.js} +1 -1
  70. package/dist/assets/{Popover-Bvp9TzdX.js → Popover-PeROg1Py.js} +1 -1
  71. package/dist/assets/{RadioGroup-BnVDL4a_.js → RadioGroup-D74xrNfW.js} +1 -1
  72. package/dist/assets/{Select-Cje2eHJT.js → Select-DU7HWoIe.js} +1 -1
  73. package/dist/assets/{Select-j5IP9Sdd.js → Select-DqS_ehPo.js} +1 -1
  74. package/dist/assets/Select.stories-B3nRfjtE.js +1 -0
  75. package/dist/assets/{Share.stories-D9bbBHOG.js → Share.stories-BRu2HEye.js} +1 -1
  76. package/dist/assets/{ShortUrls.stories-sm8Qixwp.js → ShortUrls.stories-_cQ7A63J.js} +1 -1
  77. package/dist/assets/{SisccFooter.stories-ngAVS2fW.js → SisccFooter.stories-4D6NzHh9.js} +1 -1
  78. package/dist/assets/{Spotlight-Dv0tXo8R.js → Spotlight-CunY9Wlw.js} +1 -1
  79. package/dist/assets/Spotlight.stories-C6kCw7Zj.js +1 -0
  80. package/dist/assets/{SvgIcon-C5CDMsWi.js → SvgIcon-BvNKNRsy.js} +1 -1
  81. package/dist/assets/{SwitchBase-cEE7knxp.js → SwitchBase-hphNuSP7.js} +1 -1
  82. package/dist/assets/{TableFooter.stories-CW06vD_N.js → TableFooter.stories-CbtoDt9L.js} +1 -1
  83. package/dist/assets/{TableHeader.stories-bwk5vNhl.js → TableHeader.stories-C9uhyMFd.js} +1 -1
  84. package/dist/assets/{TableHtml5.stories-DnpJhH0w.js → TableHtml5.stories-DfZPECvk.js} +1 -1
  85. package/dist/assets/{TableLayout.stories-bJkFobe7.js → TableLayout.stories-seHgGmCc.js} +1 -1
  86. package/dist/assets/{TablePreview-BG5Krxfy.js → TablePreview-vTa8u7FB.js} +1 -1
  87. package/dist/assets/{TablePreview.stories-Bt22boqe.js → TablePreview.stories-E5nHu6E1.js} +1 -1
  88. package/dist/assets/{TableRow-BIRBe8Dg.js → TableRow-DPtXaoT6.js} +1 -1
  89. package/dist/assets/{Tabs-DIkUmUsU.js → Tabs-kXxeQsWO.js} +1 -1
  90. package/dist/assets/{Tag-DPT3g8V4.js → Tag-GQr-EEXe.js} +1 -1
  91. package/dist/assets/{Tag.stories-MIcTzyOo.js → Tag.stories-DvrNY4SI.js} +1 -1
  92. package/dist/assets/{TextField-BdrB0uvQ.js → TextField-D-fzvlRq.js} +1 -1
  93. package/dist/assets/{TextareaAutosize-nlG2H8N3.js → TextareaAutosize-DUwxARXH.js} +1 -1
  94. package/dist/assets/{ToggleButton-BQ15V_NI.js → ToggleButton-BxLVV5QS.js} +1 -1
  95. package/dist/assets/ToggleButton.stories-B6LuK6Yh.js +1 -0
  96. package/dist/assets/{Tooltip-C6C4HoiG.js → Tooltip-BK38SsMu.js} +1 -1
  97. package/dist/assets/{Tooltip-BwGUiapZ.js → Tooltip-T6OeUQPP.js} +1 -1
  98. package/dist/assets/Tooltip.stories-CQLTNntE.js +1 -0
  99. package/dist/assets/{TransitionGroupContext-BIq-0m_o.js → TransitionGroupContext-B9YNppiq.js} +1 -1
  100. package/dist/assets/{Typography-CLwyJSFO.js → Typography-D2EaSAlt.js} +1 -1
  101. package/dist/assets/{UserRightForm.stories-C73DToeh.js → UserRightForm.stories-BMCTkr6j.js} +1 -1
  102. package/dist/assets/{VerticalButton-lwk08zEU.js → VerticalButton-CiZZwHPq.js} +1 -1
  103. package/dist/assets/VerticalButton.stories-TV8tj3e4.js +1 -0
  104. package/dist/assets/{VirtualizedTree-6ijD_iLl.js → VirtualizedTree-CgIo97xg.js} +1 -1
  105. package/dist/assets/{VirtualizedTree.stories-B5CXip4T.js → VirtualizedTree.stories-CazUEPj_.js} +1 -1
  106. package/dist/assets/{Warning-CgXSLqXm.js → Warning-bRpCSCwl.js} +1 -1
  107. package/dist/assets/{WithTooltip-7X4HQR7L-CRl8dvYc.js → WithTooltip-7X4HQR7L-BWbhTf0L.js} +1 -1
  108. package/dist/assets/{axe-BCVQpbcP.js → axe-D4-kGytp.js} +1 -1
  109. package/dist/assets/{client-CiXGemvF.js → client-stwQBlN6.js} +1 -1
  110. package/dist/assets/{createSvgIcon-Bt67gNw3.js → createSvgIcon-CljDJNRs.js} +1 -1
  111. package/dist/assets/{dividerClasses-DTn-0CfR.js → dividerClasses-Cw2O4YMA.js} +1 -1
  112. package/dist/assets/{formControlState-DNpgDiki.js → formControlState-B1HWqPHY.js} +1 -1
  113. package/dist/assets/formatter-L2YTDE3Q-MFVZMzss.js +1 -0
  114. package/dist/assets/{getThemeProps-DCMTcyXO.js → getThemeProps-Ucr-hQd1.js} +1 -1
  115. package/dist/assets/{iframe-BQjKj6F_.js → iframe-BChTFv2E.js} +3 -3
  116. package/dist/assets/{index-BxQFHsyq.js → index-BHK5vcJo.js} +1 -1
  117. package/dist/assets/{index-Ck0I-MZW.js → index-BzWmM-Ic.js} +1 -1
  118. package/dist/assets/index-Crconquk.js +1 -0
  119. package/dist/assets/{index-DEYRbzMR.js → index-DNrsnh5y.js} +1 -1
  120. package/dist/assets/{index-UHAYd7c2.js → index-nV5jTrln.js} +1 -1
  121. package/dist/assets/{isMuiElement-ADO0aM5S.js → isMuiElement-CM3cRieD.js} +1 -1
  122. package/dist/assets/{listItemTextClasses-C3ixun4o.js → listItemTextClasses-B-Xc90sL.js} +1 -1
  123. package/dist/assets/{makeStyles-CRflPB-y.js → makeStyles-_Yha3N4h.js} +1 -1
  124. package/dist/assets/{react-18-a6ySAxHI.js → react-18-BU0UKVMC.js} +1 -1
  125. package/dist/assets/{styled-C56gzAmQ.js → styled-DjMMZo2c.js} +1 -1
  126. package/dist/assets/{syntaxhighlighter-YFXUGROL-CGesurt7.js → syntaxhighlighter-YFXUGROL-CPw6HVhd.js} +1 -1
  127. package/dist/assets/{useControlled-Bj6cj-Ig.js → useControlled-vebIUmSu.js} +1 -1
  128. package/dist/assets/{useKeybordEscapeHandler-DsdvHI_h.js → useKeybordEscapeHandler-i-nL2RGn.js} +1 -1
  129. package/dist/assets/{useMediaQuery-1qbUbEPg.js → useMediaQuery-BHneWrHr.js} +1 -1
  130. package/dist/assets/{useSlotProps-Cok4v8LG.js → useSlotProps-l_B1k9bn.js} +1 -1
  131. package/dist/assets/useTheme-sBWMgSZT.js +1 -0
  132. package/dist/assets/{useThemeProps-D8uqi6JO.js → useThemeProps-D1h6moAU.js} +1 -1
  133. package/dist/assets/{utils-DLYNTdtA.js → utils-Brs7bsU1.js} +1 -1
  134. package/dist/assets/{utils-Djr-myBd.js → utils-DjyKg0Xe.js} +1 -1
  135. package/dist/assets/{with-input-Ciw5XqDI.js → with-input-BSL2zc3J.js} +1 -1
  136. package/dist/assets/{withSpotlight-Bg7rQ96n.js → withSpotlight-DQzw8mN9.js} +1 -1
  137. package/dist/iframe.html +1 -1
  138. package/dist/manifests/components.html +1 -1
  139. package/dist/manifests/components.json +1 -1
  140. package/dist/project.json +1 -1
  141. package/package.json +1 -1
  142. package/dist/assets/Alert.stories-COLALm18.js +0 -3
  143. package/dist/assets/ArrowForward-CNahVM6p.js +0 -1
  144. package/dist/assets/Close-B4eGqyR1.js +0 -1
  145. package/dist/assets/DataEdit.stories-C_Kp3cBc.js +0 -1
  146. package/dist/assets/Done-k-cANTj3.js +0 -1
  147. package/dist/assets/DynamicDrawer.stories-CqdvCXoD.js +0 -5
  148. package/dist/assets/ExpandLess-fnTNXnUr.js +0 -1
  149. package/dist/assets/ExpandMore-DO_2gcUA.js +0 -1
  150. package/dist/assets/ExpansionPanel.stories-fGTQ_lMJ.js +0 -1
  151. package/dist/assets/Info-DF2F7Q-Q.js +0 -1
  152. package/dist/assets/Input.stories-DOaE3IiS.js +0 -1
  153. package/dist/assets/Lens-B3LqaKm9.js +0 -1
  154. package/dist/assets/ListContext-DRS6Raq7.js +0 -1
  155. package/dist/assets/Mode.stories-BNbcV47G.js +0 -1
  156. package/dist/assets/NoData.stories-BQ7A1Em2.js +0 -1
  157. package/dist/assets/Select.stories-DwTRCbmS.js +0 -1
  158. package/dist/assets/Spotlight.stories-Bj9Lx2TK.js +0 -1
  159. package/dist/assets/ToggleButton.stories-DlptoWsC.js +0 -1
  160. package/dist/assets/Tooltip.stories-CQLaQUlp.js +0 -1
  161. package/dist/assets/VerticalButton.stories-DRiqLTOq.js +0 -1
  162. package/dist/assets/formatter-L2YTDE3Q-CRWGDuLM.js +0 -1
  163. package/dist/assets/index-QwDeDwoS.js +0 -1
  164. package/dist/assets/useTheme-DInZHCfp.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-YFXUGROL-CGesurt7.js","./iframe-BQjKj6F_.js","./preload-helper-PPVm8Dsz.js","./client-CiXGemvF.js","./index-Ck0I-MZW.js","./index-QwDeDwoS.js","./formatter-L2YTDE3Q-CRWGDuLM.js","./WithTooltip-7X4HQR7L-CRl8dvYc.js","./Color-6AOWCN3U-DO132-Hp.js"])))=>i.map(i=>d[i]);
2
- import{_ as yr}from"./preload-helper-PPVm8Dsz.js";import{r as p,n as vr,a4 as La,l as Ct,m as yt,R as h,j as ae,a5 as We,a6 as p_,a7 as h_,a8 as g_,a9 as m_,aa as mh,ab as Or,ac as Xt,ad as ki,g as y_,ae as Mc,af as Ni,ag as Wo,ah as b_,ai as Mi,Q as v_,aj as E_,ak as yh,al as S_,am as x_,an as vs}from"./iframe-BQjKj6F_.js";import{c as $_}from"./client-CiXGemvF.js";import{r as Sl,R as Bb}from"./index-QwDeDwoS.js";var Bi=new Map;function w_(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var C_=({callback:e,children:t})=>{let r=p.useRef();return p.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}});var __=async(e,t,r)=>{let n=await O_(t,r);if(w_()){n.render(e);return}let{promise:o,resolve:a}=Promise.withResolvers();return n.render(p.createElement(C_,{callback:a},e)),o},T_=(e,t)=>{let r=Bi.get(e);r&&(r.unmount(),Bi.delete(e))},O_=async(e,t)=>{let r=Bi.get(e);return r||(r=$_.createRoot(e,t),Bi.set(e,r)),r},jt=(e,t,r)=>{let n=e.replace(/\s+/g,"-"),o=["control"];return r&&o.push(r),t&&o.push(t),o.push(n),o.join("-")},xl=(e,t,r)=>{let n=e.replace(/\s+/g,"-"),o=["set"];return r&&o.push(r),t&&o.push(t),o.push(n),o.join("-")},Ar=null;function Bc(e,t="assertive",r=7e3){Ar?Ar.announce(e,t,r):(Ar=new R_,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ar.announce(e,t,r):setTimeout(()=>{Ar?.isAttached()&&Ar?.announce(e,t,r)},100))}function A_(e){Ar&&Ar.clear(e)}var R_=class{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){var n,o;if(!this.node)return;let a=document.createElement("div");typeof e=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",e["aria-labelledby"])):a.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),e!==""&&setTimeout(()=>{a.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ze.apply(null,arguments)}function D_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vo(e,t){return Vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Vo(e,t)}function P_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vo(e,t)}function jc(e){return jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jc(e)}function I_(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function jb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jb=function(){return!!e})()}function F_(e,t,r){if(jb())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Vo(o,r.prototype),o}function Hc(e){var t=typeof Map=="function"?new Map:void 0;return Hc=function(r){if(r===null||!I_(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return F_(r,arguments,jc(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Vo(n,r)},Hc(e)}var Jt=(function(e){P_(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,D_(n)}return t})(Hc(Error));function Es(e){return Math.round(e*255)}function L_(e,t,r){return Es(e)+","+Es(t)+","+Es(r)}function ji(e,t,r,n){if(n===void 0&&(n=L_),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var c=r-a/2,d=l+c,f=s+c,g=u+c;return n(d,f,g)}var bh={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"639",red:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function k_(e){if(typeof e!="string")return e;var t=e.toLowerCase();return bh[t]?"#"+bh[t]:e}var N_=/^#[a-fA-F0-9]{6}$/,M_=/^#[a-fA-F0-9]{8}$/,B_=/^#[a-fA-F0-9]{3}$/,j_=/^#[a-fA-F0-9]{4}$/,Ss=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,H_=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,U_=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,K_=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Gn(e){if(typeof e!="string")throw new Jt(3);var t=k_(e);if(t.match(N_))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(M_)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(B_))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(j_)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=Ss.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=H_.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=U_.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+ji(l,s,u)+")",d=Ss.exec(c);if(!d)throw new Jt(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=K_.exec(t.substring(0,50));if(f){var g=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,v="rgb("+ji(g,m,y)+")",b=Ss.exec(v);if(!b)throw new Jt(4,t,v);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new Jt(5)}function z_(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}function Mr(e){return z_(Gn(e))}var G_=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},Uc=G_;function Zr(e){var t=e.toString(16);return t.length===1?"0"+t:t}function xs(e){return Zr(Math.round(e*255))}function W_(e,t,r){return Uc("#"+xs(e)+xs(t)+xs(r))}function Hb(e,t,r){return ji(e,t,r,W_)}function V_(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return Hb(e.hue,e.saturation,e.lightness);throw new Jt(1)}function q_(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Hb(e.hue,e.saturation,e.lightness):"rgba("+ji(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Jt(2)}function Kc(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Uc("#"+Zr(e)+Zr(t)+Zr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Uc("#"+Zr(e.red)+Zr(e.green)+Zr(e.blue));throw new Jt(6)}function pn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Gn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Kc(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Kc(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Jt(7)}var Y_=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},X_=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},J_=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Z_=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Br(e){if(typeof e!="object")throw new Jt(8);if(X_(e))return pn(e);if(Y_(e))return Kc(e);if(Z_(e))return q_(e);if(J_(e))return V_(e);throw new Jt(8)}function Ub(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Ub(e,t,n)}}function bt(e){return Ub(e,e.length,[])}function Q_(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{hue:r.hue+parseFloat(e)}))}bt(Q_);function so(e,t,r){return Math.max(e,Math.min(t,r))}function eT(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{lightness:so(0,1,r.lightness-parseFloat(e))}))}var tT=bt(eT),Ye=tT;function rT(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{saturation:so(0,1,r.saturation-parseFloat(e))}))}bt(rT);function nT(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{lightness:so(0,1,r.lightness+parseFloat(e))}))}var oT=bt(nT),pi=oT;function aT(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Gn(t),o=ze({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=Gn(r),i=ze({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,f=1-d,g={red:Math.floor(o.red*d+i.red*f),green:Math.floor(o.green*d+i.green*f),blue:Math.floor(o.blue*d+i.blue*f),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return pn(g)}var iT=bt(aT),Kb=iT;function lT(e,t){if(t==="transparent")return t;var r=Gn(t),n=typeof r.alpha=="number"?r.alpha:1,o=ze({},r,{alpha:so(0,1,(n*100+parseFloat(e)*100)/100)});return pn(o)}var sT=bt(lT),uT=sT;function cT(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{saturation:so(0,1,r.saturation+parseFloat(e))}))}bt(cT);function dT(e,t){return t==="transparent"?t:Br(ze({},Mr(t),{hue:parseFloat(e)}))}bt(dT);function fT(e,t){return t==="transparent"?t:Br(ze({},Mr(t),{lightness:parseFloat(e)}))}bt(fT);function pT(e,t){return t==="transparent"?t:Br(ze({},Mr(t),{saturation:parseFloat(e)}))}bt(pT);function hT(e,t){return t==="transparent"?t:Kb(parseFloat(e),"rgb(0, 0, 0)",t)}bt(hT);function gT(e,t){return t==="transparent"?t:Kb(parseFloat(e),"rgb(255, 255, 255)",t)}bt(gT);function mT(e,t){if(t==="transparent")return t;var r=Gn(t),n=typeof r.alpha=="number"?r.alpha:1,o=ze({},r,{alpha:so(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return pn(o)}var yT=bt(mT),br=yT,X={primary:"#FF4785",secondary:"#006DEB",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F6F9FC",light:"#EEF2F6",mediumlight:"#ECF2F9",medium:"#D9E5F2",mediumdark:"#737F8C",dark:"#5C6570",darker:"#454C54",darkest:"#2E3338",border:"hsl(212 50% 30% / 0.15)",positive:"#66BF3C",warning:"#E69D00",negative:"#FF4400",critical:"#FFFFFF",defaultText:"#2E3338",inverseText:"#FFFFFF",positiveText:"#427C27",warningText:"#955B1E",negativeText:"#C23400"},hr={app:"#F6F9FC",bar:X.lightest,content:X.lightest,preview:X.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},Nt={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},zc={light:{fgColor:{default:X.darkest,muted:X.dark,accent:X.secondary,inverse:X.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF",agentic:"#723aa6"},bgColor:{default:X.lightest,muted:hr.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800",agentic:"#f5f0fa"},borderColor:{default:X.border,muted:"hsl(0 0% 0% / 0.1)",inverse:"hsl(0 0% 100% / 0.1)",positive:"#BFE7AC",warning:"#FFCE85",negative:"#FFC3AD",critical:"hsl(16 100% 100% / 0)",agentic:"#e1d2ef"}},dark:{fgColor:{default:"#C9CCCF",muted:"#95999D",accent:"#479DFF",inverse:"#1B1C1D",positive:"#86CE64",warning:"#FFAD33",negative:"#FF6933",critical:"#FF6933",agentic:"#b07fdc"},bgColor:{default:"#222325",muted:"#1B1C1D",positive:"hsl(101 100% 100% / 0)",warning:"hsl(101 100% 100% / 0)",negative:"hsl(101 100% 100% / 0)",critical:"hsl(101 100% 100% / 0)",agentic:"rgba(114,58,166,0.15)"},borderColor:{default:"hsl(0 0% 100% / 0.1)",muted:"hsl(0 0% 100% / 0.5)",inverse:"hsl(0 0% 0% / 0.1)",positive:"hsl(101 52% 64% / 0.15)",warning:"hsl(36 100% 64% / 0.15)",negative:"hsl(16 100% 64% / 0.15)",critical:"#FF6933",agentic:"rgba(114,58,166,0.35)"}}},bT={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:X.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:Nt.fonts.base,fontCode:Nt.fonts.mono,textColor:"#C9CCCF",textInverseColor:"#1B1C1D",textMutedColor:"#95999D",barTextColor:"#95999D",barHoverColor:"#70B3FF",barSelectedColor:"#479DFF",barBg:"#222325",buttonBg:"#1B1C1D",buttonBorder:"hsl(0 0% 100% / 0.1)",booleanBg:"#1B1C1D",booleanSelectedBg:"#292B2E",inputBg:"#1B1C1D",inputBorder:"hsl(0 0% 100% / 0.1)",inputTextColor:"#C9CCCF",inputBorderRadius:4},vT=bT,ET={base:"light",colorPrimary:X.primary,colorSecondary:X.secondary,appBg:hr.app,appContentBg:X.lightest,appHoverBg:"#DBECFF",appPreviewBg:X.lightest,appBorderColor:X.border,appBorderRadius:4,fontBase:Nt.fonts.base,fontCode:Nt.fonts.mono,textColor:X.darkest,textInverseColor:X.lightest,textMutedColor:X.dark,barTextColor:X.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:X.lightest,buttonBg:hr.app,buttonBorder:X.medium,booleanBg:X.mediumlight,booleanSelectedBg:X.lightest,inputBg:X.lightest,inputBorder:X.border,inputTextColor:X.darkest,inputBorderRadius:4},Gc=ET;const{logger:ST}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:xT}=__STORYBOOK_MODULE_GLOBAL__;var{window:$s}=xT,$T=e=>({color:e}),wT=e=>typeof e!="string"?(ST.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,CT=e=>!/(gradient|var|calc)/.test(e),_T=(e,t)=>e==="darken"?pn(`${Ye(1,t)}`,.95):e==="lighten"?pn(`${pi(1,t)}`,.95):t,TT=e=>t=>{if(!wT(t)||!CT(t))return t;try{return _T(e,t)}catch{return t}},uf=TT("lighten"),cf=()=>!$s||!$s.matchMedia?"light":$s.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",vh={light:Gc,dark:vT},hi=cf(),sn={...vh,normal:vh[hi]},zb=(e={base:hi},t)=>{let r={...sn[hi],...sn[e.base]||{},...e,base:sn[e.base]?e.base:hi};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}},vn=vr({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return(function r(n,o,a){function i(u,c){if(!o[u]){if(!n[u]){var d=typeof La=="function"&&La;if(!c&&d)return d(u,!0);if(l)return l(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var g=o[u]={exports:{}};n[u][0].call(g.exports,function(m){var y=n[u][1][m];return i(y||m)},g,g.exports,r,n,o,a)}return o[u].exports}for(var l=typeof La=="function"&&La,s=0;s<a.length;s++)i(a[s]);return i})({1:[function(r,n,o){n.exports=function(a){if(typeof Map!="function"||a){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,o){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}a.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},a.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},a.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},a.prototype.forEach=function(i,l){var s;for(s=0;s<this.size;s++)i.call(l||this,this.list[s].val,this.list[s].key,this)},a.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},a.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=a},{}],3:[function(r,n,o){var a=r("map-or-similar");n.exports=function(u){var c=new a(!1),d=[];return function(f){var g=function(){var m=c,y,v,b=arguments.length-1,E=Array(b+1),S=!0,x;if((g.numArgs||g.numArgs===0)&&g.numArgs!==b+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<b;x++){if(E[x]={cacheItem:m,arg:arguments[x]},m.has(arguments[x])){m=m.get(arguments[x]);continue}S=!1,y=new a(!1),m.set(arguments[x],y),m=y}return S&&(m.has(arguments[b])?v=m.get(arguments[b]):S=!1),S||(v=f.apply(null,arguments),m.set(arguments[b],v)),u>0&&(E[b]={cacheItem:m,arg:arguments[b]},S?i(d,E):d.push(E),d.length>u&&l(d.shift())),g.wasMemoized=S,g.numArgs=b+1,v};return g.limit=u,g.wasMemoized=!1,g.cache=c,g.lru=d,g}};function i(u,c){var d=u.length,f=c.length,g,m,y;for(m=0;m<d;m++){for(g=!0,y=0;y<f;y++)if(!s(u[m][y].arg,c[y].arg)){g=!1;break}if(g)break}u.push(u.splice(m,1)[0])}function l(u){var c=u.length,d=u[c-1],f,g;for(d.cacheItem.delete(d.arg),g=c-2;g>=0&&(d=u[g],f=d.cacheItem.get(d.arg),!f||!f.size);g--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}}),OT=vr({"../../node_modules/react-is/cjs/react-is.production.min.js"(e){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function x($){if(typeof $=="object"&&$!==null){var T=$.$$typeof;switch(T){case r:switch($=$.type,$){case u:case c:case o:case i:case a:case f:return $;default:switch($=$&&$.$$typeof,$){case s:case d:case y:case m:case l:return $;default:return T}}case n:return T}}}function C($){return x($)===c}e.AsyncMode=u,e.ConcurrentMode=c,e.ContextConsumer=s,e.ContextProvider=l,e.Element=r,e.ForwardRef=d,e.Fragment=o,e.Lazy=y,e.Memo=m,e.Portal=n,e.Profiler=i,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function($){return C($)||x($)===u},e.isConcurrentMode=C,e.isContextConsumer=function($){return x($)===s},e.isContextProvider=function($){return x($)===l},e.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===r},e.isForwardRef=function($){return x($)===d},e.isFragment=function($){return x($)===o},e.isLazy=function($){return x($)===y},e.isMemo=function($){return x($)===m},e.isPortal=function($){return x($)===n},e.isProfiler=function($){return x($)===i},e.isStrictMode=function($){return x($)===a},e.isSuspense=function($){return x($)===f},e.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===o||$===c||$===i||$===a||$===f||$===g||typeof $=="object"&&$!==null&&($.$$typeof===y||$.$$typeof===m||$.$$typeof===l||$.$$typeof===s||$.$$typeof===d||$.$$typeof===b||$.$$typeof===E||$.$$typeof===S||$.$$typeof===v)},e.typeOf=x}}),AT=vr({"../../node_modules/react-is/index.js"(e,t){t.exports=OT()}}),Gb=vr({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=AT(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=a,l[r.Memo]=i;function s(v){return r.isMemo(v)?i:l[v.$$typeof]||n}var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,m=Object.prototype;function y(v,b,E){if(typeof b!="string"){if(m){var S=g(b);S&&S!==m&&y(v,S,E)}var x=c(b);d&&(x=x.concat(d(b)));for(var C=s(v),$=s(b),T=0;T<x.length;++T){var O=x[T];if(!o[O]&&!(E&&E[O])&&!($&&$[O])&&!(C&&C[O])){var L=f(b,O);try{u(v,O,L)}catch{}}}}return v}t.exports=y}});function RT(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function DT(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var PT=(function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(DT(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=RT(n);try{o.insertRule(r,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e})(),qe="-ms-",Hi="-moz-",pe="-webkit-",Wb="comm",df="rule",ff="decl",IT="@import",Vb="@keyframes",FT="@layer",LT=Math.abs,$l=String.fromCharCode,kT=Object.assign;function NT(e,t){return je(e,0)^45?(((t<<2^je(e,0))<<2^je(e,1))<<2^je(e,2))<<2^je(e,3):0}function qb(e){return e.trim()}function MT(e,t){return(e=t.exec(e))?e[0]:e}function he(e,t,r){return e.replace(t,r)}function Wc(e,t){return e.indexOf(t)}function je(e,t){return e.charCodeAt(t)|0}function qo(e,t,r){return e.slice(t,r)}function qt(e){return e.length}function pf(e){return e.length}function ka(e,t){return t.push(e),e}function BT(e,t){return e.map(t).join("")}var wl=1,Wn=1,Yb=0,ct=0,Re=0,uo="";function Cl(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:wl,column:Wn,length:i,return:""}}function $o(e,t){return kT(Cl("",null,null,"",null,null,0),e,{length:-e.length},t)}function jT(){return Re}function HT(){return Re=ct>0?je(uo,--ct):0,Wn--,Re===10&&(Wn=1,wl--),Re}function mt(){return Re=ct<Yb?je(uo,ct++):0,Wn++,Re===10&&(Wn=1,wl++),Re}function rr(){return je(uo,ct)}function gi(){return ct}function pa(e,t){return qo(uo,e,t)}function Yo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Xb(e){return wl=Wn=1,Yb=qt(uo=e),ct=0,[]}function Jb(e){return uo="",e}function mi(e){return qb(pa(ct-1,Vc(e===91?e+2:e===40?e+1:e)))}function UT(e){for(;(Re=rr())&&Re<33;)mt();return Yo(e)>2||Yo(Re)>3?"":" "}function KT(e,t){for(;--t&&mt()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return pa(e,gi()+(t<6&&rr()==32&&mt()==32))}function Vc(e){for(;mt();)switch(Re){case e:return ct;case 34:case 39:e!==34&&e!==39&&Vc(Re);break;case 40:e===41&&Vc(e);break;case 92:mt();break}return ct}function zT(e,t){for(;mt()&&e+Re!==57&&!(e+Re===84&&rr()===47););return"/*"+pa(t,ct-1)+"*"+$l(e===47?e:mt())}function GT(e){for(;!Yo(rr());)mt();return pa(e,ct)}function WT(e){return Jb(yi("",null,null,null,[""],e=Xb(e),0,[0],e))}function yi(e,t,r,n,o,a,i,l,s){for(var u=0,c=0,d=i,f=0,g=0,m=0,y=1,v=1,b=1,E=0,S="",x=o,C=a,$=n,T=S;v;)switch(m=E,E=mt()){case 40:if(m!=108&&je(T,d-1)==58){Wc(T+=he(mi(E),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=mi(E);break;case 9:case 10:case 13:case 32:T+=UT(m);break;case 92:T+=KT(gi()-1,7);continue;case 47:switch(rr()){case 42:case 47:ka(VT(zT(mt(),gi()),t,r),s);break;default:T+="/"}break;case 123*y:l[u++]=qt(T)*b;case 125*y:case 59:case 0:switch(E){case 0:case 125:v=0;case 59+c:b==-1&&(T=he(T,/\f/g,"")),g>0&&qt(T)-d&&ka(g>32?Sh(T+";",n,r,d-1):Sh(he(T," ","")+";",n,r,d-2),s);break;case 59:T+=";";default:if(ka($=Eh(T,t,r,u,c,o,l,S,x=[],C=[],d),a),E===123)if(c===0)yi(T,t,$,$,x,a,d,l,C);else switch(f===99&&je(T,3)===110?100:f){case 100:case 108:case 109:case 115:yi(e,$,$,n&&ka(Eh(e,$,$,0,0,o,l,S,o,x=[],d),C),o,C,d,l,n?x:C);break;default:yi(T,$,$,$,[""],C,0,l,C)}}u=c=g=0,y=b=1,S=T="",d=i;break;case 58:d=1+qt(T),g=m;default:if(y<1){if(E==123)--y;else if(E==125&&y++==0&&HT()==125)continue}switch(T+=$l(E),E*y){case 38:b=c>0?1:(T+="\f",-1);break;case 44:l[u++]=(qt(T)-1)*b,b=1;break;case 64:rr()===45&&(T+=mi(mt())),f=rr(),c=d=qt(S=T+=GT(gi())),E++;break;case 45:m===45&&qt(T)==2&&(y=0)}}return a}function Eh(e,t,r,n,o,a,i,l,s,u,c){for(var d=o-1,f=o===0?a:[""],g=pf(f),m=0,y=0,v=0;m<n;++m)for(var b=0,E=qo(e,d+1,d=LT(y=i[m])),S=e;b<g;++b)(S=qb(y>0?f[b]+" "+E:he(E,/&\f/g,f[b])))&&(s[v++]=S);return Cl(e,t,r,o===0?df:l,s,u,c)}function VT(e,t,r){return Cl(e,t,r,Wb,$l(jT()),qo(e,2,-2),0)}function Sh(e,t,r,n){return Cl(e,t,r,ff,qo(e,0,n),qo(e,n+1,-1),n)}function Hn(e,t){for(var r="",n=pf(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function qT(e,t,r,n){switch(e.type){case FT:if(e.children.length)break;case IT:case ff:return e.return=e.return||e.value;case Wb:return"";case Vb:return e.return=e.value+"{"+Hn(e.children,n)+"}";case df:e.value=e.props.join(",")}return qt(r=Hn(e.children,n))?e.return=e.value+"{"+r+"}":""}function YT(e){var t=pf(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}function XT(e){return function(t){t.root||(t=t.return)&&e(t)}}var xh=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};function Zb(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var JT=function(e,t,r){for(var n=0,o=0;n=o,o=rr(),n===38&&o===12&&(t[r]=1),!Yo(o);)mt();return pa(e,ct)},ZT=function(e,t){var r=-1,n=44;do switch(Yo(n)){case 0:n===38&&rr()===12&&(t[r]=1),e[r]+=JT(ct-1,t,r);break;case 2:e[r]+=mi(n);break;case 4:if(n===44){e[++r]=rr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=$l(n)}while(n=mt());return e},QT=function(e,t){return Jb(ZT(Xb(e),t))},$h=new WeakMap,eO=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!$h.get(r))&&!n){$h.set(e,!0);for(var o=[],a=QT(t,o),i=r.props,l=0,s=0;l<a.length;l++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[u]):i[u]+" "+a[l]}}},tO=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Qb(e,t){switch(NT(e,t)){case 5103:return pe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pe+e+Hi+e+qe+e+e;case 6828:case 4268:return pe+e+qe+e+e;case 6165:return pe+e+qe+"flex-"+e+e;case 5187:return pe+e+he(e,/(\w+).+(:[^]+)/,pe+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return pe+e+qe+"flex-item-"+he(e,/flex-|-self/,"")+e;case 4675:return pe+e+qe+"flex-line-pack"+he(e,/align-content|flex-|-self/,"")+e;case 5548:return pe+e+qe+he(e,"shrink","negative")+e;case 5292:return pe+e+qe+he(e,"basis","preferred-size")+e;case 6060:return pe+"box-"+he(e,"-grow","")+pe+e+qe+he(e,"grow","positive")+e;case 4554:return pe+he(e,/([^-])(transform)/g,"$1"+pe+"$2")+e;case 6187:return he(he(he(e,/(zoom-|grab)/,pe+"$1"),/(image-set)/,pe+"$1"),e,"")+e;case 5495:case 3959:return he(e,/(image-set\([^]*)/,pe+"$1$`$1");case 4968:return he(he(e,/(.+:)(flex-)?(.*)/,pe+"box-pack:$3"+qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pe+e+e;case 4095:case 3583:case 4068:case 2532:return he(e,/(.+)-inline(.+)/,pe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qt(e)-1-t>6)switch(je(e,t+1)){case 109:if(je(e,t+4)!==45)break;case 102:return he(e,/(.+:)(.+)-([^]+)/,"$1"+pe+"$2-$3$1"+Hi+(je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wc(e,"stretch")?Qb(he(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(je(e,t+1)!==115)break;case 6444:switch(je(e,qt(e)-3-(~Wc(e,"!important")&&10))){case 107:return he(e,":",":"+pe)+e;case 101:return he(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pe+(je(e,14)===45?"inline-":"")+"box$3$1"+pe+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(je(e,t+11)){case 114:return pe+e+qe+he(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+qe+he(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+qe+he(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pe+e+qe+e+e}return e}var rO=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ff:e.return=Qb(e.value,e.length);break;case Vb:return Hn([$o(e,{value:he(e.value,"@","@"+pe)})],n);case df:if(e.length)return BT(e.props,function(o){switch(MT(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hn([$o(e,{props:[he(o,/:(read-\w+)/,":"+Hi+"$1")]})],n);case"::placeholder":return Hn([$o(e,{props:[he(o,/:(plac\w+)/,":"+pe+"input-$1")]}),$o(e,{props:[he(o,/:(plac\w+)/,":"+Hi+"$1")]}),$o(e,{props:[he(o,/:(plac\w+)/,qe+"input-$1")]})],n)}return""})}},nO=[rO],e1=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||nO,o={},a,i=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var y=m.getAttribute("data-emotion").split(" "),v=1;v<y.length;v++)o[y[v]]=!0;i.push(m)});var l,s=[eO,tO];{var u,c=[qT,XT(function(m){u.insert(m)})],d=YT(s.concat(n,c)),f=function(m){return Hn(WT(m),d)};l=function(m,y,v,b){u=v,f(m?m+"{"+y.styles+"}":y.styles),b&&(g.inserted[y.name]=!0)}}var g={key:t,sheet:new PT({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(i),g};yt(Gb());var oO=!0;function hf(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var _l=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||oO===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Tl=function(e,t,r){_l(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function aO(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var iO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lO=/[A-Z]|^ms/g,sO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,t1=function(e){return e.charCodeAt(1)===45},wh=function(e){return e!=null&&typeof e!="boolean"},ws=Zb(function(e){return t1(e)?e:e.replace(lO,"-$&").toLowerCase()}),Ch=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(sO,function(r,n,o){return Yt={name:n,styles:o,next:Yt},n})}return iO[e]!==1&&!t1(e)&&typeof t=="number"&&t!==0?t+"px":t};function Xo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Yt={name:o.name,styles:o.styles,next:Yt},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Yt={name:i.name,styles:i.styles,next:Yt},i=i.next;var l=a.styles+";";return l}return uO(e,t,r)}case"function":{if(e!==void 0){var s=Yt,u=r(e);return Yt=s,Xo(e,t,u)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function uO(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Xo(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var l=i;t!=null&&t[l]!==void 0?n+=a+"{"+t[l]+"}":wh(l)&&(n+=ws(a)+":"+Ch(a,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)wh(i[s])&&(n+=ws(a)+":"+Ch(a,i[s])+";");else{var u=Xo(e,t,i);switch(a){case"animation":case"animationName":{n+=ws(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}var _h=/label:\s*([^\s;{]+)\s*(;|$)/g,Yt;function ha(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Yt=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Xo(r,t,a);else{var i=a;o+=i[0]}for(var l=1;l<e.length;l++)if(o+=Xo(r,t,e[l]),n){var s=a;o+=s[l]}_h.lastIndex=0;for(var u="",c;(c=_h.exec(o))!==null;)u+="-"+c[1];var d=aO(o)+u;return{name:d,styles:o,next:Yt}}var cO=function(e){return e()},r1=p.useInsertionEffect?p.useInsertionEffect:!1,gf=r1||cO,Th=r1||p.useLayoutEffect,n1=p.createContext(typeof HTMLElement<"u"?e1({key:"css"}):null);n1.Provider;var Ol=function(e){return p.forwardRef(function(t,r){var n=p.useContext(n1);return e(t,n,r)})},hn=p.createContext({}),mf=function(){return p.useContext(hn)},dO=function(e,t){if(typeof t=="function"){var r=t(e);return r}return ze({},e,t)},fO=xh(function(e){return xh(function(t){return dO(e,t)})}),yf=function(e){var t=p.useContext(hn);return e.theme!==t&&(t=fO(t)(e.theme)),p.createElement(hn.Provider,{value:t},e.children)},bf={}.hasOwnProperty,qc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pO=function(e,t){var r={};for(var n in t)bf.call(t,n)&&(r[n]=t[n]);return r[qc]=e,r},hO=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return _l(t,r,n),gf(function(){return Tl(t,r,n)}),null},gO=Ol(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[qc],a=[n],i="";typeof e.className=="string"?i=hf(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var l=ha(a,void 0,p.useContext(hn));i+=t.key+"-"+l.name;var s={};for(var u in e)bf.call(e,u)&&u!=="css"&&u!==qc&&(s[u]=e[u]);return s.className=i,r&&(s.ref=r),p.createElement(p.Fragment,null,p.createElement(hO,{cache:t,serialized:l,isStringTag:typeof o=="string"}),p.createElement(o,s))}),mO=gO;yt(Gb());var Yc=function(e,t){var r=arguments;if(t==null||!bf.call(t,"css"))return p.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=mO,o[1]=pO(e,t);for(var a=2;a<n;a++)o[a]=r[a];return p.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Yc||(Yc={}));Ol(function(e,t){var r=e.styles,n=ha([r],void 0,p.useContext(hn)),o=p.useRef();return Th(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,s=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),s!==null&&(l=!0,s.setAttribute("data-emotion",a),i.hydrate([s])),o.current=[i,l],function(){i.flush()}},[t]),Th(function(){var a=o.current,i=a[0],l=a[1];if(l){a[1]=!1;return}if(n.next!==void 0&&Tl(t,n.next,!0),i.tags.length){var s=i.tags[i.tags.length-1].nextElementSibling;i.before=s,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function Al(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ha(t)}function Be(){var e=Al.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var yO=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var a=t[n];if(a!=null){var i=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))i=e(a);else{i="";for(var l in a)a[l]&&l&&(i&&(i+=" "),i+=l)}break}default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function bO(e,t,r){var n=[],o=hf(e,n,r);return n.length<2?r:o+t(n)}var vO=function(e){var t=e.cache,r=e.serializedArr;return gf(function(){for(var n=0;n<r.length;n++)Tl(t,r[n],!1)}),null};Ol(function(e,t){var r=[],n=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var c=ha(s,t.registered);return r.push(c),_l(t,c,!1),t.key+"-"+c.name},o=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return bO(t.registered,n,yO(s))},a={css:n,cx:o,theme:p.useContext(hn)},i=e.children(a);return p.createElement(p.Fragment,null,p.createElement(vO,{cache:t,serializedArr:r}),i)});var EO=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Rl=Zb(function(e){return EO.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),SO=Rl,xO=function(e){return e!=="theme"},Oh=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?SO:xO},Ah=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(a){return e.__emotion_forwardProp(a)&&o(a)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},$O=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return _l(t,r,n),gf(function(){return Tl(t,r,n)}),null},wO=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var l=Ah(t,r,n),s=l||Oh(o),u=!s("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var g=c.length,m=1;m<g;m++)d.push(c[m],f[m])}var y=Ol(function(v,b,E){var S=u&&v.as||o,x="",C=[],$=v;if(v.theme==null){$={};for(var T in v)$[T]=v[T];$.theme=p.useContext(hn)}typeof v.className=="string"?x=hf(b.registered,C,v.className):v.className!=null&&(x=v.className+" ");var O=ha(d.concat(C),b.registered,$);x+=b.key+"-"+O.name,i!==void 0&&(x+=" "+i);var L=u&&l===void 0?Oh(S):s,I={};for(var _ in v)u&&_==="as"||L(_)&&(I[_]=v[_]);return I.className=x,E&&(I.ref=E),p.createElement(p.Fragment,null,p.createElement($O,{cache:b,serialized:O,isStringTag:typeof S=="string"}),p.createElement(S,I))});return y.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=d,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+i}}),y.withComponent=function(v,b){var E=e(v,ze({},r,b,{shouldForwardProp:Ah(y,b,!0)}));return E.apply(void 0,d)},y}},CO=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],F=wO.bind(null);CO.forEach(function(e){F[e]=F(e)});var o1=yt(vn(),1),Jo={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",border:0},a1={position:"unset",width:"unset",height:"unset",padding:"unset",margin:"unset",overflow:"unset",whiteSpace:"unset",clip:"unset",clipPath:"unset",border:"unset"},i1=(0,o1.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,o1.default)(1)(({color:e,background:t,typography:r})=>{let n=i1({typography:r});return{...n,body:{...n.body,position:"fixed",width:"100vw",height:"100vh",overflow:"hidden",color:e.defaultText,background:t.app},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":Jo,".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1},"[data-sb-landmark]":{position:"relative"},"[data-sb-landmark]:focus-visible":{outline:"none"},"[data-sb-landmark]:focus-visible::after":{outline:`2px solid ${e.primary}`,outlineOffset:"-2px"},"[data-sb-landmark]::after":{content:"''",position:"absolute",inset:0,pointerEvents:"none"},".react-aria-Popover:focus-visible":{outline:"none"}}});var _O={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},TO=Be`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-YFXUGROL-CPw6HVhd.js","./iframe-BChTFv2E.js","./preload-helper-PPVm8Dsz.js","./client-stwQBlN6.js","./index-BzWmM-Ic.js","./index-Crconquk.js","./formatter-L2YTDE3Q-MFVZMzss.js","./WithTooltip-7X4HQR7L-BWbhTf0L.js","./Color-6AOWCN3U-Bk0kE9HD.js"])))=>i.map(i=>d[i]);
2
+ import{_ as yr}from"./preload-helper-PPVm8Dsz.js";import{r as p,n as vr,a4 as La,l as Ct,m as yt,R as h,j as ae,a5 as We,a6 as p_,a7 as h_,a8 as g_,a9 as m_,aa as mh,ab as Or,ac as Xt,ad as ki,g as y_,ae as Mc,af as Ni,ag as Wo,ah as b_,ai as Mi,Q as v_,aj as E_,ak as yh,al as S_,am as x_,an as vs}from"./iframe-BChTFv2E.js";import{c as $_}from"./client-stwQBlN6.js";import{r as Sl,R as Bb}from"./index-Crconquk.js";var Bi=new Map;function w_(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var C_=({callback:e,children:t})=>{let r=p.useRef();return p.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}});var __=async(e,t,r)=>{let n=await O_(t,r);if(w_()){n.render(e);return}let{promise:o,resolve:a}=Promise.withResolvers();return n.render(p.createElement(C_,{callback:a},e)),o},T_=(e,t)=>{let r=Bi.get(e);r&&(r.unmount(),Bi.delete(e))},O_=async(e,t)=>{let r=Bi.get(e);return r||(r=$_.createRoot(e,t),Bi.set(e,r)),r},jt=(e,t,r)=>{let n=e.replace(/\s+/g,"-"),o=["control"];return r&&o.push(r),t&&o.push(t),o.push(n),o.join("-")},xl=(e,t,r)=>{let n=e.replace(/\s+/g,"-"),o=["set"];return r&&o.push(r),t&&o.push(t),o.push(n),o.join("-")},Ar=null;function Bc(e,t="assertive",r=7e3){Ar?Ar.announce(e,t,r):(Ar=new R_,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ar.announce(e,t,r):setTimeout(()=>{Ar?.isAttached()&&Ar?.announce(e,t,r)},100))}function A_(e){Ar&&Ar.clear(e)}var R_=class{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){var n,o;if(!this.node)return;let a=document.createElement("div");typeof e=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",e["aria-labelledby"])):a.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),e!==""&&setTimeout(()=>{a.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ze.apply(null,arguments)}function D_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vo(e,t){return Vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Vo(e,t)}function P_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vo(e,t)}function jc(e){return jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jc(e)}function I_(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function jb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jb=function(){return!!e})()}function F_(e,t,r){if(jb())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Vo(o,r.prototype),o}function Hc(e){var t=typeof Map=="function"?new Map:void 0;return Hc=function(r){if(r===null||!I_(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return F_(r,arguments,jc(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Vo(n,r)},Hc(e)}var Jt=(function(e){P_(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,D_(n)}return t})(Hc(Error));function Es(e){return Math.round(e*255)}function L_(e,t,r){return Es(e)+","+Es(t)+","+Es(r)}function ji(e,t,r,n){if(n===void 0&&(n=L_),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var c=r-a/2,d=l+c,f=s+c,g=u+c;return n(d,f,g)}var bh={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"639",red:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function k_(e){if(typeof e!="string")return e;var t=e.toLowerCase();return bh[t]?"#"+bh[t]:e}var N_=/^#[a-fA-F0-9]{6}$/,M_=/^#[a-fA-F0-9]{8}$/,B_=/^#[a-fA-F0-9]{3}$/,j_=/^#[a-fA-F0-9]{4}$/,Ss=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,H_=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,U_=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,K_=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Gn(e){if(typeof e!="string")throw new Jt(3);var t=k_(e);if(t.match(N_))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(M_)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(B_))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(j_)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=Ss.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=H_.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=U_.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+ji(l,s,u)+")",d=Ss.exec(c);if(!d)throw new Jt(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=K_.exec(t.substring(0,50));if(f){var g=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,v="rgb("+ji(g,m,y)+")",b=Ss.exec(v);if(!b)throw new Jt(4,t,v);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new Jt(5)}function z_(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}function Mr(e){return z_(Gn(e))}var G_=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},Uc=G_;function Zr(e){var t=e.toString(16);return t.length===1?"0"+t:t}function xs(e){return Zr(Math.round(e*255))}function W_(e,t,r){return Uc("#"+xs(e)+xs(t)+xs(r))}function Hb(e,t,r){return ji(e,t,r,W_)}function V_(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return Hb(e.hue,e.saturation,e.lightness);throw new Jt(1)}function q_(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Hb(e.hue,e.saturation,e.lightness):"rgba("+ji(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Jt(2)}function Kc(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Uc("#"+Zr(e)+Zr(t)+Zr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Uc("#"+Zr(e.red)+Zr(e.green)+Zr(e.blue));throw new Jt(6)}function pn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Gn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Kc(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Kc(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Jt(7)}var Y_=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},X_=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},J_=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Z_=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Br(e){if(typeof e!="object")throw new Jt(8);if(X_(e))return pn(e);if(Y_(e))return Kc(e);if(Z_(e))return q_(e);if(J_(e))return V_(e);throw new Jt(8)}function Ub(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Ub(e,t,n)}}function bt(e){return Ub(e,e.length,[])}function Q_(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{hue:r.hue+parseFloat(e)}))}bt(Q_);function so(e,t,r){return Math.max(e,Math.min(t,r))}function eT(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{lightness:so(0,1,r.lightness-parseFloat(e))}))}var tT=bt(eT),Ye=tT;function rT(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{saturation:so(0,1,r.saturation-parseFloat(e))}))}bt(rT);function nT(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{lightness:so(0,1,r.lightness+parseFloat(e))}))}var oT=bt(nT),pi=oT;function aT(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Gn(t),o=ze({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=Gn(r),i=ze({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,f=1-d,g={red:Math.floor(o.red*d+i.red*f),green:Math.floor(o.green*d+i.green*f),blue:Math.floor(o.blue*d+i.blue*f),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return pn(g)}var iT=bt(aT),Kb=iT;function lT(e,t){if(t==="transparent")return t;var r=Gn(t),n=typeof r.alpha=="number"?r.alpha:1,o=ze({},r,{alpha:so(0,1,(n*100+parseFloat(e)*100)/100)});return pn(o)}var sT=bt(lT),uT=sT;function cT(e,t){if(t==="transparent")return t;var r=Mr(t);return Br(ze({},r,{saturation:so(0,1,r.saturation+parseFloat(e))}))}bt(cT);function dT(e,t){return t==="transparent"?t:Br(ze({},Mr(t),{hue:parseFloat(e)}))}bt(dT);function fT(e,t){return t==="transparent"?t:Br(ze({},Mr(t),{lightness:parseFloat(e)}))}bt(fT);function pT(e,t){return t==="transparent"?t:Br(ze({},Mr(t),{saturation:parseFloat(e)}))}bt(pT);function hT(e,t){return t==="transparent"?t:Kb(parseFloat(e),"rgb(0, 0, 0)",t)}bt(hT);function gT(e,t){return t==="transparent"?t:Kb(parseFloat(e),"rgb(255, 255, 255)",t)}bt(gT);function mT(e,t){if(t==="transparent")return t;var r=Gn(t),n=typeof r.alpha=="number"?r.alpha:1,o=ze({},r,{alpha:so(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return pn(o)}var yT=bt(mT),br=yT,X={primary:"#FF4785",secondary:"#006DEB",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F6F9FC",light:"#EEF2F6",mediumlight:"#ECF2F9",medium:"#D9E5F2",mediumdark:"#737F8C",dark:"#5C6570",darker:"#454C54",darkest:"#2E3338",border:"hsl(212 50% 30% / 0.15)",positive:"#66BF3C",warning:"#E69D00",negative:"#FF4400",critical:"#FFFFFF",defaultText:"#2E3338",inverseText:"#FFFFFF",positiveText:"#427C27",warningText:"#955B1E",negativeText:"#C23400"},hr={app:"#F6F9FC",bar:X.lightest,content:X.lightest,preview:X.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},Nt={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},zc={light:{fgColor:{default:X.darkest,muted:X.dark,accent:X.secondary,inverse:X.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF",agentic:"#723aa6"},bgColor:{default:X.lightest,muted:hr.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800",agentic:"#f5f0fa"},borderColor:{default:X.border,muted:"hsl(0 0% 0% / 0.1)",inverse:"hsl(0 0% 100% / 0.1)",positive:"#BFE7AC",warning:"#FFCE85",negative:"#FFC3AD",critical:"hsl(16 100% 100% / 0)",agentic:"#e1d2ef"}},dark:{fgColor:{default:"#C9CCCF",muted:"#95999D",accent:"#479DFF",inverse:"#1B1C1D",positive:"#86CE64",warning:"#FFAD33",negative:"#FF6933",critical:"#FF6933",agentic:"#b07fdc"},bgColor:{default:"#222325",muted:"#1B1C1D",positive:"hsl(101 100% 100% / 0)",warning:"hsl(101 100% 100% / 0)",negative:"hsl(101 100% 100% / 0)",critical:"hsl(101 100% 100% / 0)",agentic:"rgba(114,58,166,0.15)"},borderColor:{default:"hsl(0 0% 100% / 0.1)",muted:"hsl(0 0% 100% / 0.5)",inverse:"hsl(0 0% 0% / 0.1)",positive:"hsl(101 52% 64% / 0.15)",warning:"hsl(36 100% 64% / 0.15)",negative:"hsl(16 100% 64% / 0.15)",critical:"#FF6933",agentic:"rgba(114,58,166,0.35)"}}},bT={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:X.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:Nt.fonts.base,fontCode:Nt.fonts.mono,textColor:"#C9CCCF",textInverseColor:"#1B1C1D",textMutedColor:"#95999D",barTextColor:"#95999D",barHoverColor:"#70B3FF",barSelectedColor:"#479DFF",barBg:"#222325",buttonBg:"#1B1C1D",buttonBorder:"hsl(0 0% 100% / 0.1)",booleanBg:"#1B1C1D",booleanSelectedBg:"#292B2E",inputBg:"#1B1C1D",inputBorder:"hsl(0 0% 100% / 0.1)",inputTextColor:"#C9CCCF",inputBorderRadius:4},vT=bT,ET={base:"light",colorPrimary:X.primary,colorSecondary:X.secondary,appBg:hr.app,appContentBg:X.lightest,appHoverBg:"#DBECFF",appPreviewBg:X.lightest,appBorderColor:X.border,appBorderRadius:4,fontBase:Nt.fonts.base,fontCode:Nt.fonts.mono,textColor:X.darkest,textInverseColor:X.lightest,textMutedColor:X.dark,barTextColor:X.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:X.lightest,buttonBg:hr.app,buttonBorder:X.medium,booleanBg:X.mediumlight,booleanSelectedBg:X.lightest,inputBg:X.lightest,inputBorder:X.border,inputTextColor:X.darkest,inputBorderRadius:4},Gc=ET;const{logger:ST}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:xT}=__STORYBOOK_MODULE_GLOBAL__;var{window:$s}=xT,$T=e=>({color:e}),wT=e=>typeof e!="string"?(ST.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,CT=e=>!/(gradient|var|calc)/.test(e),_T=(e,t)=>e==="darken"?pn(`${Ye(1,t)}`,.95):e==="lighten"?pn(`${pi(1,t)}`,.95):t,TT=e=>t=>{if(!wT(t)||!CT(t))return t;try{return _T(e,t)}catch{return t}},uf=TT("lighten"),cf=()=>!$s||!$s.matchMedia?"light":$s.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",vh={light:Gc,dark:vT},hi=cf(),sn={...vh,normal:vh[hi]},zb=(e={base:hi},t)=>{let r={...sn[hi],...sn[e.base]||{},...e,base:sn[e.base]?e.base:hi};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}},vn=vr({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return(function r(n,o,a){function i(u,c){if(!o[u]){if(!n[u]){var d=typeof La=="function"&&La;if(!c&&d)return d(u,!0);if(l)return l(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var g=o[u]={exports:{}};n[u][0].call(g.exports,function(m){var y=n[u][1][m];return i(y||m)},g,g.exports,r,n,o,a)}return o[u].exports}for(var l=typeof La=="function"&&La,s=0;s<a.length;s++)i(a[s]);return i})({1:[function(r,n,o){n.exports=function(a){if(typeof Map!="function"||a){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,o){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}a.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},a.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},a.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},a.prototype.forEach=function(i,l){var s;for(s=0;s<this.size;s++)i.call(l||this,this.list[s].val,this.list[s].key,this)},a.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},a.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=a},{}],3:[function(r,n,o){var a=r("map-or-similar");n.exports=function(u){var c=new a(!1),d=[];return function(f){var g=function(){var m=c,y,v,b=arguments.length-1,E=Array(b+1),S=!0,x;if((g.numArgs||g.numArgs===0)&&g.numArgs!==b+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<b;x++){if(E[x]={cacheItem:m,arg:arguments[x]},m.has(arguments[x])){m=m.get(arguments[x]);continue}S=!1,y=new a(!1),m.set(arguments[x],y),m=y}return S&&(m.has(arguments[b])?v=m.get(arguments[b]):S=!1),S||(v=f.apply(null,arguments),m.set(arguments[b],v)),u>0&&(E[b]={cacheItem:m,arg:arguments[b]},S?i(d,E):d.push(E),d.length>u&&l(d.shift())),g.wasMemoized=S,g.numArgs=b+1,v};return g.limit=u,g.wasMemoized=!1,g.cache=c,g.lru=d,g}};function i(u,c){var d=u.length,f=c.length,g,m,y;for(m=0;m<d;m++){for(g=!0,y=0;y<f;y++)if(!s(u[m][y].arg,c[y].arg)){g=!1;break}if(g)break}u.push(u.splice(m,1)[0])}function l(u){var c=u.length,d=u[c-1],f,g;for(d.cacheItem.delete(d.arg),g=c-2;g>=0&&(d=u[g],f=d.cacheItem.get(d.arg),!f||!f.size);g--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}}),OT=vr({"../../node_modules/react-is/cjs/react-is.production.min.js"(e){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function x($){if(typeof $=="object"&&$!==null){var T=$.$$typeof;switch(T){case r:switch($=$.type,$){case u:case c:case o:case i:case a:case f:return $;default:switch($=$&&$.$$typeof,$){case s:case d:case y:case m:case l:return $;default:return T}}case n:return T}}}function C($){return x($)===c}e.AsyncMode=u,e.ConcurrentMode=c,e.ContextConsumer=s,e.ContextProvider=l,e.Element=r,e.ForwardRef=d,e.Fragment=o,e.Lazy=y,e.Memo=m,e.Portal=n,e.Profiler=i,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function($){return C($)||x($)===u},e.isConcurrentMode=C,e.isContextConsumer=function($){return x($)===s},e.isContextProvider=function($){return x($)===l},e.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===r},e.isForwardRef=function($){return x($)===d},e.isFragment=function($){return x($)===o},e.isLazy=function($){return x($)===y},e.isMemo=function($){return x($)===m},e.isPortal=function($){return x($)===n},e.isProfiler=function($){return x($)===i},e.isStrictMode=function($){return x($)===a},e.isSuspense=function($){return x($)===f},e.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===o||$===c||$===i||$===a||$===f||$===g||typeof $=="object"&&$!==null&&($.$$typeof===y||$.$$typeof===m||$.$$typeof===l||$.$$typeof===s||$.$$typeof===d||$.$$typeof===b||$.$$typeof===E||$.$$typeof===S||$.$$typeof===v)},e.typeOf=x}}),AT=vr({"../../node_modules/react-is/index.js"(e,t){t.exports=OT()}}),Gb=vr({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=AT(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=a,l[r.Memo]=i;function s(v){return r.isMemo(v)?i:l[v.$$typeof]||n}var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,m=Object.prototype;function y(v,b,E){if(typeof b!="string"){if(m){var S=g(b);S&&S!==m&&y(v,S,E)}var x=c(b);d&&(x=x.concat(d(b)));for(var C=s(v),$=s(b),T=0;T<x.length;++T){var O=x[T];if(!o[O]&&!(E&&E[O])&&!($&&$[O])&&!(C&&C[O])){var L=f(b,O);try{u(v,O,L)}catch{}}}}return v}t.exports=y}});function RT(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function DT(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var PT=(function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(DT(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=RT(n);try{o.insertRule(r,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e})(),qe="-ms-",Hi="-moz-",pe="-webkit-",Wb="comm",df="rule",ff="decl",IT="@import",Vb="@keyframes",FT="@layer",LT=Math.abs,$l=String.fromCharCode,kT=Object.assign;function NT(e,t){return je(e,0)^45?(((t<<2^je(e,0))<<2^je(e,1))<<2^je(e,2))<<2^je(e,3):0}function qb(e){return e.trim()}function MT(e,t){return(e=t.exec(e))?e[0]:e}function he(e,t,r){return e.replace(t,r)}function Wc(e,t){return e.indexOf(t)}function je(e,t){return e.charCodeAt(t)|0}function qo(e,t,r){return e.slice(t,r)}function qt(e){return e.length}function pf(e){return e.length}function ka(e,t){return t.push(e),e}function BT(e,t){return e.map(t).join("")}var wl=1,Wn=1,Yb=0,ct=0,Re=0,uo="";function Cl(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:wl,column:Wn,length:i,return:""}}function $o(e,t){return kT(Cl("",null,null,"",null,null,0),e,{length:-e.length},t)}function jT(){return Re}function HT(){return Re=ct>0?je(uo,--ct):0,Wn--,Re===10&&(Wn=1,wl--),Re}function mt(){return Re=ct<Yb?je(uo,ct++):0,Wn++,Re===10&&(Wn=1,wl++),Re}function rr(){return je(uo,ct)}function gi(){return ct}function pa(e,t){return qo(uo,e,t)}function Yo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Xb(e){return wl=Wn=1,Yb=qt(uo=e),ct=0,[]}function Jb(e){return uo="",e}function mi(e){return qb(pa(ct-1,Vc(e===91?e+2:e===40?e+1:e)))}function UT(e){for(;(Re=rr())&&Re<33;)mt();return Yo(e)>2||Yo(Re)>3?"":" "}function KT(e,t){for(;--t&&mt()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return pa(e,gi()+(t<6&&rr()==32&&mt()==32))}function Vc(e){for(;mt();)switch(Re){case e:return ct;case 34:case 39:e!==34&&e!==39&&Vc(Re);break;case 40:e===41&&Vc(e);break;case 92:mt();break}return ct}function zT(e,t){for(;mt()&&e+Re!==57&&!(e+Re===84&&rr()===47););return"/*"+pa(t,ct-1)+"*"+$l(e===47?e:mt())}function GT(e){for(;!Yo(rr());)mt();return pa(e,ct)}function WT(e){return Jb(yi("",null,null,null,[""],e=Xb(e),0,[0],e))}function yi(e,t,r,n,o,a,i,l,s){for(var u=0,c=0,d=i,f=0,g=0,m=0,y=1,v=1,b=1,E=0,S="",x=o,C=a,$=n,T=S;v;)switch(m=E,E=mt()){case 40:if(m!=108&&je(T,d-1)==58){Wc(T+=he(mi(E),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=mi(E);break;case 9:case 10:case 13:case 32:T+=UT(m);break;case 92:T+=KT(gi()-1,7);continue;case 47:switch(rr()){case 42:case 47:ka(VT(zT(mt(),gi()),t,r),s);break;default:T+="/"}break;case 123*y:l[u++]=qt(T)*b;case 125*y:case 59:case 0:switch(E){case 0:case 125:v=0;case 59+c:b==-1&&(T=he(T,/\f/g,"")),g>0&&qt(T)-d&&ka(g>32?Sh(T+";",n,r,d-1):Sh(he(T," ","")+";",n,r,d-2),s);break;case 59:T+=";";default:if(ka($=Eh(T,t,r,u,c,o,l,S,x=[],C=[],d),a),E===123)if(c===0)yi(T,t,$,$,x,a,d,l,C);else switch(f===99&&je(T,3)===110?100:f){case 100:case 108:case 109:case 115:yi(e,$,$,n&&ka(Eh(e,$,$,0,0,o,l,S,o,x=[],d),C),o,C,d,l,n?x:C);break;default:yi(T,$,$,$,[""],C,0,l,C)}}u=c=g=0,y=b=1,S=T="",d=i;break;case 58:d=1+qt(T),g=m;default:if(y<1){if(E==123)--y;else if(E==125&&y++==0&&HT()==125)continue}switch(T+=$l(E),E*y){case 38:b=c>0?1:(T+="\f",-1);break;case 44:l[u++]=(qt(T)-1)*b,b=1;break;case 64:rr()===45&&(T+=mi(mt())),f=rr(),c=d=qt(S=T+=GT(gi())),E++;break;case 45:m===45&&qt(T)==2&&(y=0)}}return a}function Eh(e,t,r,n,o,a,i,l,s,u,c){for(var d=o-1,f=o===0?a:[""],g=pf(f),m=0,y=0,v=0;m<n;++m)for(var b=0,E=qo(e,d+1,d=LT(y=i[m])),S=e;b<g;++b)(S=qb(y>0?f[b]+" "+E:he(E,/&\f/g,f[b])))&&(s[v++]=S);return Cl(e,t,r,o===0?df:l,s,u,c)}function VT(e,t,r){return Cl(e,t,r,Wb,$l(jT()),qo(e,2,-2),0)}function Sh(e,t,r,n){return Cl(e,t,r,ff,qo(e,0,n),qo(e,n+1,-1),n)}function Hn(e,t){for(var r="",n=pf(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function qT(e,t,r,n){switch(e.type){case FT:if(e.children.length)break;case IT:case ff:return e.return=e.return||e.value;case Wb:return"";case Vb:return e.return=e.value+"{"+Hn(e.children,n)+"}";case df:e.value=e.props.join(",")}return qt(r=Hn(e.children,n))?e.return=e.value+"{"+r+"}":""}function YT(e){var t=pf(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}function XT(e){return function(t){t.root||(t=t.return)&&e(t)}}var xh=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};function Zb(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var JT=function(e,t,r){for(var n=0,o=0;n=o,o=rr(),n===38&&o===12&&(t[r]=1),!Yo(o);)mt();return pa(e,ct)},ZT=function(e,t){var r=-1,n=44;do switch(Yo(n)){case 0:n===38&&rr()===12&&(t[r]=1),e[r]+=JT(ct-1,t,r);break;case 2:e[r]+=mi(n);break;case 4:if(n===44){e[++r]=rr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=$l(n)}while(n=mt());return e},QT=function(e,t){return Jb(ZT(Xb(e),t))},$h=new WeakMap,eO=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!$h.get(r))&&!n){$h.set(e,!0);for(var o=[],a=QT(t,o),i=r.props,l=0,s=0;l<a.length;l++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[u]):i[u]+" "+a[l]}}},tO=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Qb(e,t){switch(NT(e,t)){case 5103:return pe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pe+e+Hi+e+qe+e+e;case 6828:case 4268:return pe+e+qe+e+e;case 6165:return pe+e+qe+"flex-"+e+e;case 5187:return pe+e+he(e,/(\w+).+(:[^]+)/,pe+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return pe+e+qe+"flex-item-"+he(e,/flex-|-self/,"")+e;case 4675:return pe+e+qe+"flex-line-pack"+he(e,/align-content|flex-|-self/,"")+e;case 5548:return pe+e+qe+he(e,"shrink","negative")+e;case 5292:return pe+e+qe+he(e,"basis","preferred-size")+e;case 6060:return pe+"box-"+he(e,"-grow","")+pe+e+qe+he(e,"grow","positive")+e;case 4554:return pe+he(e,/([^-])(transform)/g,"$1"+pe+"$2")+e;case 6187:return he(he(he(e,/(zoom-|grab)/,pe+"$1"),/(image-set)/,pe+"$1"),e,"")+e;case 5495:case 3959:return he(e,/(image-set\([^]*)/,pe+"$1$`$1");case 4968:return he(he(e,/(.+:)(flex-)?(.*)/,pe+"box-pack:$3"+qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pe+e+e;case 4095:case 3583:case 4068:case 2532:return he(e,/(.+)-inline(.+)/,pe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qt(e)-1-t>6)switch(je(e,t+1)){case 109:if(je(e,t+4)!==45)break;case 102:return he(e,/(.+:)(.+)-([^]+)/,"$1"+pe+"$2-$3$1"+Hi+(je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wc(e,"stretch")?Qb(he(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(je(e,t+1)!==115)break;case 6444:switch(je(e,qt(e)-3-(~Wc(e,"!important")&&10))){case 107:return he(e,":",":"+pe)+e;case 101:return he(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pe+(je(e,14)===45?"inline-":"")+"box$3$1"+pe+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(je(e,t+11)){case 114:return pe+e+qe+he(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+qe+he(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+qe+he(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pe+e+qe+e+e}return e}var rO=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ff:e.return=Qb(e.value,e.length);break;case Vb:return Hn([$o(e,{value:he(e.value,"@","@"+pe)})],n);case df:if(e.length)return BT(e.props,function(o){switch(MT(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hn([$o(e,{props:[he(o,/:(read-\w+)/,":"+Hi+"$1")]})],n);case"::placeholder":return Hn([$o(e,{props:[he(o,/:(plac\w+)/,":"+pe+"input-$1")]}),$o(e,{props:[he(o,/:(plac\w+)/,":"+Hi+"$1")]}),$o(e,{props:[he(o,/:(plac\w+)/,qe+"input-$1")]})],n)}return""})}},nO=[rO],e1=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||nO,o={},a,i=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var y=m.getAttribute("data-emotion").split(" "),v=1;v<y.length;v++)o[y[v]]=!0;i.push(m)});var l,s=[eO,tO];{var u,c=[qT,XT(function(m){u.insert(m)})],d=YT(s.concat(n,c)),f=function(m){return Hn(WT(m),d)};l=function(m,y,v,b){u=v,f(m?m+"{"+y.styles+"}":y.styles),b&&(g.inserted[y.name]=!0)}}var g={key:t,sheet:new PT({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(i),g};yt(Gb());var oO=!0;function hf(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var _l=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||oO===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Tl=function(e,t,r){_l(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function aO(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var iO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lO=/[A-Z]|^ms/g,sO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,t1=function(e){return e.charCodeAt(1)===45},wh=function(e){return e!=null&&typeof e!="boolean"},ws=Zb(function(e){return t1(e)?e:e.replace(lO,"-$&").toLowerCase()}),Ch=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(sO,function(r,n,o){return Yt={name:n,styles:o,next:Yt},n})}return iO[e]!==1&&!t1(e)&&typeof t=="number"&&t!==0?t+"px":t};function Xo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Yt={name:o.name,styles:o.styles,next:Yt},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Yt={name:i.name,styles:i.styles,next:Yt},i=i.next;var l=a.styles+";";return l}return uO(e,t,r)}case"function":{if(e!==void 0){var s=Yt,u=r(e);return Yt=s,Xo(e,t,u)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function uO(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Xo(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var l=i;t!=null&&t[l]!==void 0?n+=a+"{"+t[l]+"}":wh(l)&&(n+=ws(a)+":"+Ch(a,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)wh(i[s])&&(n+=ws(a)+":"+Ch(a,i[s])+";");else{var u=Xo(e,t,i);switch(a){case"animation":case"animationName":{n+=ws(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}var _h=/label:\s*([^\s;{]+)\s*(;|$)/g,Yt;function ha(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Yt=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Xo(r,t,a);else{var i=a;o+=i[0]}for(var l=1;l<e.length;l++)if(o+=Xo(r,t,e[l]),n){var s=a;o+=s[l]}_h.lastIndex=0;for(var u="",c;(c=_h.exec(o))!==null;)u+="-"+c[1];var d=aO(o)+u;return{name:d,styles:o,next:Yt}}var cO=function(e){return e()},r1=p.useInsertionEffect?p.useInsertionEffect:!1,gf=r1||cO,Th=r1||p.useLayoutEffect,n1=p.createContext(typeof HTMLElement<"u"?e1({key:"css"}):null);n1.Provider;var Ol=function(e){return p.forwardRef(function(t,r){var n=p.useContext(n1);return e(t,n,r)})},hn=p.createContext({}),mf=function(){return p.useContext(hn)},dO=function(e,t){if(typeof t=="function"){var r=t(e);return r}return ze({},e,t)},fO=xh(function(e){return xh(function(t){return dO(e,t)})}),yf=function(e){var t=p.useContext(hn);return e.theme!==t&&(t=fO(t)(e.theme)),p.createElement(hn.Provider,{value:t},e.children)},bf={}.hasOwnProperty,qc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pO=function(e,t){var r={};for(var n in t)bf.call(t,n)&&(r[n]=t[n]);return r[qc]=e,r},hO=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return _l(t,r,n),gf(function(){return Tl(t,r,n)}),null},gO=Ol(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[qc],a=[n],i="";typeof e.className=="string"?i=hf(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var l=ha(a,void 0,p.useContext(hn));i+=t.key+"-"+l.name;var s={};for(var u in e)bf.call(e,u)&&u!=="css"&&u!==qc&&(s[u]=e[u]);return s.className=i,r&&(s.ref=r),p.createElement(p.Fragment,null,p.createElement(hO,{cache:t,serialized:l,isStringTag:typeof o=="string"}),p.createElement(o,s))}),mO=gO;yt(Gb());var Yc=function(e,t){var r=arguments;if(t==null||!bf.call(t,"css"))return p.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=mO,o[1]=pO(e,t);for(var a=2;a<n;a++)o[a]=r[a];return p.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Yc||(Yc={}));Ol(function(e,t){var r=e.styles,n=ha([r],void 0,p.useContext(hn)),o=p.useRef();return Th(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,s=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),s!==null&&(l=!0,s.setAttribute("data-emotion",a),i.hydrate([s])),o.current=[i,l],function(){i.flush()}},[t]),Th(function(){var a=o.current,i=a[0],l=a[1];if(l){a[1]=!1;return}if(n.next!==void 0&&Tl(t,n.next,!0),i.tags.length){var s=i.tags[i.tags.length-1].nextElementSibling;i.before=s,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function Al(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ha(t)}function Be(){var e=Al.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var yO=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var a=t[n];if(a!=null){var i=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))i=e(a);else{i="";for(var l in a)a[l]&&l&&(i&&(i+=" "),i+=l)}break}default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function bO(e,t,r){var n=[],o=hf(e,n,r);return n.length<2?r:o+t(n)}var vO=function(e){var t=e.cache,r=e.serializedArr;return gf(function(){for(var n=0;n<r.length;n++)Tl(t,r[n],!1)}),null};Ol(function(e,t){var r=[],n=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var c=ha(s,t.registered);return r.push(c),_l(t,c,!1),t.key+"-"+c.name},o=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return bO(t.registered,n,yO(s))},a={css:n,cx:o,theme:p.useContext(hn)},i=e.children(a);return p.createElement(p.Fragment,null,p.createElement(vO,{cache:t,serializedArr:r}),i)});var EO=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Rl=Zb(function(e){return EO.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),SO=Rl,xO=function(e){return e!=="theme"},Oh=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?SO:xO},Ah=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(a){return e.__emotion_forwardProp(a)&&o(a)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},$O=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return _l(t,r,n),gf(function(){return Tl(t,r,n)}),null},wO=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var l=Ah(t,r,n),s=l||Oh(o),u=!s("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var g=c.length,m=1;m<g;m++)d.push(c[m],f[m])}var y=Ol(function(v,b,E){var S=u&&v.as||o,x="",C=[],$=v;if(v.theme==null){$={};for(var T in v)$[T]=v[T];$.theme=p.useContext(hn)}typeof v.className=="string"?x=hf(b.registered,C,v.className):v.className!=null&&(x=v.className+" ");var O=ha(d.concat(C),b.registered,$);x+=b.key+"-"+O.name,i!==void 0&&(x+=" "+i);var L=u&&l===void 0?Oh(S):s,I={};for(var _ in v)u&&_==="as"||L(_)&&(I[_]=v[_]);return I.className=x,E&&(I.ref=E),p.createElement(p.Fragment,null,p.createElement($O,{cache:b,serialized:O,isStringTag:typeof S=="string"}),p.createElement(S,I))});return y.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=d,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+i}}),y.withComponent=function(v,b){var E=e(v,ze({},r,b,{shouldForwardProp:Ah(y,b,!0)}));return E.apply(void 0,d)},y}},CO=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],F=wO.bind(null);CO.forEach(function(e){F[e]=F(e)});var o1=yt(vn(),1),Jo={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",border:0},a1={position:"unset",width:"unset",height:"unset",padding:"unset",margin:"unset",overflow:"unset",whiteSpace:"unset",clip:"unset",clipPath:"unset",border:"unset"},i1=(0,o1.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,o1.default)(1)(({color:e,background:t,typography:r})=>{let n=i1({typography:r});return{...n,body:{...n.body,position:"fixed",width:"100vw",height:"100vh",overflow:"hidden",color:e.defaultText,background:t.app},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":Jo,".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1},"[data-sb-landmark]":{position:"relative"},"[data-sb-landmark]:focus-visible":{outline:"none"},"[data-sb-landmark]:focus-visible::after":{outline:`2px solid ${e.primary}`,outlineOffset:"-2px"},"[data-sb-landmark]::after":{content:"''",position:"absolute",inset:0,pointerEvents:"none"},".react-aria-Popover:focus-visible":{outline:"none"}}});var _O={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},TO=Be`
3
3
  from {
4
4
  transform: rotate(0deg);
5
5
  }
@@ -648,7 +648,7 @@ Inner error message: ${n?.message}`))}}const{once:UI}=__STORYBOOK_MODULE_CLIENT_
648
648
  it's possible a CORS error happened.
649
649
 
650
650
  Please check your dev-tools network tab.
651
- `});let C=s.versions&&Object.keys(s.versions).length?s.versions:m.versions;await a.setRef(u,{id:u,url:b.url,...m,...C?{versions:C}:{},type:m.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:s={}}=e.getState();return s},setRef:async(s,{storyIndex:u,setStoriesData:c,...d},f=!1)=>{if(r)return;let g,m,y,{filters:v}=e.getState(),{storyMapper:b=RE}=t.getConfig(),E=a.getRefs()[s];(u||c)&&(g=c?U6(X6(c,E,{storyMapper:b})):u,y=Qi(u,{provider:t,docsOptions:n,filters:v,allStatuses:{}}),m=Qi(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),m&&(m=h0(m,E),m=g0(m,E?.storyUpdates)),y&&(y=h0(y,E),y=g0(y,E?.storyUpdates)),await a.updateRef(s,{...E,...d,index:m,filteredIndex:y,internal_index:g})},updateRef:async(s,u)=>{let{[s]:c,...d}=a.getRefs();d[s]={...c,...u};let f=Object.keys(l).reduce((g,m)=>(g[m]=d[m],g),{});await e.setState({refs:f})}},i=!r&&TE.REFS||{},l=i;return o&&new Promise(async s=>{for(let u of Object.values(i))await a.checkRef({...u,stories:{}});s(void 0)}),{api:a,state:{refs:l}}},gt=(e,t)=>{let{source:r,refId:n,type:o}=e,[a,i]=AE(r,n),l;(n||a==="external")&&(l=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(i));let s={source:r,sourceType:a,sourceLocation:i,refId:n,ref:l,type:o};switch(!0){case typeof n=="string":case a==="local":case a==="external":return s;default:return M6.warn(`Received a ${o} frame that was not configured as a ref`),null}},Z6=({store:e,fullAPI:t,provider:r})=>{let n={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(i){r.channel?.emit(N6,{globals:i,options:{target:"storybook-preview-iframe"}})}},o={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},a=({globals:i,storyGlobals:l,userGlobals:s})=>{let{globals:u,userGlobals:c,storyGlobals:d}=e.getState();Zt(i,u)||e.setState({globals:i}),Zt(s,c)||e.setState({userGlobals:s}),Zt(l,d)||e.setState({storyGlobals:l})};return r.channel?.on(L6,function({globals:i,storyGlobals:l,userGlobals:s}){let{ref:u}=gt(this,t);u?d0.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):a({globals:i,storyGlobals:l,userGlobals:s})}),r.channel?.on(k6,function({globals:i,globalTypes:l}){let{ref:s}=gt(this,t),u=e.getState()?.userGlobals;s?Object.keys(i).length>0&&d0.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:i,userGlobals:i,globalTypes:l}),u&&Object.keys(u).length!==0&&!Zt(i,u)&&n.updateGlobals(u)}),{api:n,state:o}},fp={};We(fp,{ActiveTabs:()=>PE,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>el,DEFAULT_NAV_SIZE:()=>na,DEFAULT_RIGHT_PANEL_WIDTH:()=>tl,focusableUIElements:()=>Vt,getDefaultLayoutState:()=>IE,init:()=>r8,isPagesViewMode:()=>t8});const{SET_CONFIG:Q6}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:e8}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:DE}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var{document:Xa}=e8,Lu=e=>typeof e=="function",PE={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},t8=e=>e!==void 0&&e!=="story"&&e!=="docs"&&e!=="review",na=300,el=300,tl=400,IE=()=>({ui:{enableShortcuts:!0},layout:{initialActive:PE.CANVAS,navSize:na,bottomPanelHeight:el,rightPanelWidth:tl,recentVisibleSizes:{navSize:na,bottomPanelHeight:el,rightPanelWidth:tl},panelPosition:"bottom",showNav:!0,showPanel:!0,showTabs:!0,showToolbar:!0},layoutCustomisations:{showPanel:void 0,showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:zb()}),Vt={addonPanel:"storybook-panel-region",storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root",showAddonPanel:"storybook-show-addon-panel",sidebarRegion:"storybook-sidebar-region",showSidebar:"storybook-show-sidebar"},wi=e=>e.layout.navSize>0,Ed=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},y0=e=>!wi(e)&&!Ed(e),Mn=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),b0=(e,t,r)=>{let n=Object.keys(e),o=Wo(t,n);for(let u of Object.keys(o))DE(`Calling \`setConfig({ ${u}: ... })\` is deprecated. Please call \`setConfig({ layout: { ${u}: ... } })\` instead.`);let a=Mi(o,t.layout||{}),{showPanel:i,showNav:l}=a,s=Mi(e,Wo(a,n));return l===!1||r?(s.recentVisibleSizes=Mn(s),s.navSize=0):l===!0&&(s.navSize=s.recentVisibleSizes.navSize),i===!1?(s.recentVisibleSizes=Mn(s),s.bottomPanelHeight=0,s.rightPanelWidth=0):i===!0&&(s.bottomPanelHeight=s.recentVisibleSizes.bottomPanelHeight,s.rightPanelWidth=s.recentVisibleSizes.rightPanelWidth),s},v0=(e,t)=>{let r=Object.keys(e),n=Wo(t,r);for(let a of Object.keys(n))DE(`Calling \`setConfig({ ${a}: ... })\` is deprecated. Please call \`setConfig({ ui: { ${a}: ... } })\` instead.`);let o=r;return Mi(e,Wo(Mi(n,t.ui||{}),o))},r8=({store:e,provider:t,singleStory:r})=>{let n={toggleFullscreen(a){return e.setState(i=>{let l=y0(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Mn(i.layout)}}:{layout:{...i.layout,navSize:i.singleStory?0:i.layout.recentVisibleSizes.navSize,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(a){return e.setState(i=>{let l=Ed(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...i.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Mn(i.layout)}}},{persistence:"session"})},togglePanelPosition(a){return e.setState(i=>{let l=a||(i.layout.panelPosition==="right"?"bottom":"right");return{layout:{...i.layout,panelPosition:l,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(a){return e.setState(i=>{if(i.singleStory)return{layout:i.layout};let l=wi(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,navSize:i.layout.recentVisibleSizes.navSize}}:{layout:{...i.layout,navSize:0,recentVisibleSizes:Mn(i.layout)}}},{persistence:"session"})},toggleToolbar(a){return e.setState(i=>{let l=typeof a<"u"?a:!i.layout.showToolbar;return{layout:{...i.layout,showToolbar:l}}},{persistence:"session"})},setSizes({navSize:a,bottomPanelHeight:i,rightPanelWidth:l}){return e.setState(s=>{let u={...s.layout,navSize:a??s.layout.navSize,bottomPanelHeight:i??s.layout.bottomPanelHeight,rightPanelWidth:l??s.layout.rightPanelWidth};return{layout:{...u,recentVisibleSizes:Mn(u)}}},{persistence:"session"})},focusOnUIElement(a,i){let{forceFocus:l=!1,select:s=!1,poll:u=!0}=typeof i=="boolean"?{select:i}:i??{};if(!a)return!1;let c=()=>{let d=Xa.getElementById(a);return!d||(d.focus(),d!==Xa.activeElement&&l&&d.getAttribute("tabindex")===null&&(d.setAttribute("tabindex","-1"),d.focus()),d!==Xa.activeElement&&d.id!==Xa.activeElement?.id)?!1:(s&&d.select?.(),!0)};return c()?!0:u?new Promise(d=>{let f=Date.now(),g=500,m=setInterval(()=>{let y=Date.now()-f;if(c()){clearInterval(m),d(!0);return}y>=g&&(clearInterval(m),d(!1))},50)}):!1},getInitialOptions(){let a=t.getConfig(),i=IE(),{theme:l,selectedPanel:s,layoutCustomisations:u}=a;return{...i,layout:b0(i.layout,a,!!r),layoutCustomisations:{...i.layoutCustomisations,...u??{}},ui:v0(i.ui,a),selectedPanel:s||i.selectedPanel,theme:l||i.theme}},getIsFullscreen(){return y0(e.getState())},getIsPanelShown(){return Ed(e.getState())},getIsNavShown(){return wi(e.getState())},getNavAvailability(){let a=e.getState();return R1(a.path,a.customQueryParams)?"unavailable":wi(a)?"shown":"hidden"},getShowToolbarWithCustomisations(a){let i=e.getState();return Lu(i.layoutCustomisations.showToolbar)?i.layoutCustomisations.showToolbar(i,a)??a:a},getShowPanelWithCustomisations(a){let i=e.getState();return Lu(i.layoutCustomisations.showPanel)?i.layoutCustomisations.showPanel(i,a)??a:a},getNavSizeWithCustomisations(a){let i=e.getState();if(Lu(i.layoutCustomisations.showSidebar)){let l=i.layoutCustomisations.showSidebar(i,a!==0);if(a===0&&l===!0)return i.layout.recentVisibleSizes.navSize;if(a!==0&&l===!1)return 0}return a},setOptions:a=>{let{layout:i,ui:l,selectedPanel:s,theme:u}=e.getState();if(!a)return;let c=b0(i,a,!!r),d=v0(l,a),f={...u,...a.theme},g={};Xt(l,d)||(g.ui=d),Xt(i,c)||(g.layout=c),a.selectedPanel&&!Xt(s,a.selectedPanel)&&(g.selectedPanel=a.selectedPanel),Object.keys(g).length&&e.setState(g,{persistence:"permanent"}),Xt(u,f)||e.setState({theme:f})}},o=Wo(e.getState(),["layout","selectedPanel"]);return t.channel?.on(Q6,()=>{n.setOptions(dn(n.getInitialOptions(),o))}),{api:n,state:dn(n.getInitialOptions(),o)}},FE={};We(FE,{init:()=>n8});var n8=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=qh(r,a=>a.id===t.id);return n.forEach(a=>{a.onClear&&a.onClear({dismissed:!1,timeout:!1})}),{notifications:[...o,t]}})},clearNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=qh(r,a=>a.id===t);return n.forEach(a=>{a.onClear&&a.onClear({dismissed:!1,timeout:!1})}),{notifications:o}})}},state:{notifications:[]}}),LE={};We(LE,{init:()=>a8});const{OPEN_IN_EDITOR_REQUEST:o8,OPEN_IN_EDITOR_RESPONSE:ku}=__STORYBOOK_MODULE_CORE_EVENTS__;var a8=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{let{file:o,line:a,column:i}=r,l=s=>{s.file===o&&s.line===a&&s.column===i&&(e.channel?.off(ku,l),n(s))};e.channel?.on(ku,l),e.channel?.emit(o8,r)})}},state:{notifications:[]},init:async()=>{let{color:r}=await yr(async()=>{const{color:n}=await Promise.resolve().then(()=>GO);return{color:n}},void 0,import.meta.url);e.channel?.on(ku,n=>{n.error!==null&&t.addNotification({id:"open-in-editor-error",content:{headline:"Failed to open in editor",subHeadline:n.error||"Check the Storybook process on the command line for more details."},icon:h.createElement(PA,{color:r.negative}),duration:8e3})})}}),kE={};We(kE,{init:()=>i8});var i8=({provider:e})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{}}),NE={};We(NE,{init:()=>l8});var l8=({store:e,navigate:t,fullAPI:r})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:n}}=e.getState();n?r.selectStory(n):r.selectFirstStory()},changeSettingsTab:n=>{t(`/settings/${n}`)},isSettingsScreenActive:()=>{let{path:n}=r.getUrlState();return!!(n||"").match(/^\/settings/)},retrieveSelection(){let{settings:n}=e.getState();return n.lastTrackedStoryId},storeSelection:async()=>{let{storyId:n,settings:o}=e.getState();await e.setState({settings:{...o,lastTrackedStoryId:n}})}}}),ME={};We(ME,{controlOrMetaKey:()=>In,defaultShortcuts:()=>Fn,init:()=>x8,isMacLike:()=>jE,keys:()=>Sd});var s8=yt(w6(),1);const{FORCE_REMOUNT:u8,PREVIEW_KEYDOWN:c8,STORIES_COLLAPSE_ALL:d8,STORIES_EXPAND_ALL:f8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:BE}=__STORYBOOK_MODULE_GLOBAL__,{global:p8}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:Nu}=p8,h8=()=>Nu&&Nu.platform?!!Nu.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,g8=()=>h8()?"⌥":"alt",m8=e=>{if(["Meta","Alt","Control","Shift","Tab"].includes(e.key))return null;let t=[];e.altKey&&t.push("alt"),e.ctrlKey&&t.push("control"),e.metaKey&&t.push("meta"),e.shiftKey&&t.push("shift");let r=e.code?.toUpperCase(),n={MINUS:"-",EQUAL:"=",BRACKETLEFT:"[",BRACKETRIGHT:"]",BACKSLASH:"\\",SEMICOLON:";",QUOTE:"'",BACKQUOTE:"`",COMMA:",",PERIOD:".",SLASH:"/"},o=r?r.startsWith("KEY")&&r.length===4?r.replace("KEY",""):r.startsWith("DIGIT")?r.replace("DIGIT",""):n[r]:void 0;if(e.key&&e.key.length===1&&e.key!==" "){let a=e.key.toUpperCase(),i=o;i&&i.length===1&&i!==a?t.push([a,i]):t.push(a)}else e.key==="Dead"&&o&&t.push(o);return e.key===" "&&t.push("space"),e.key==="Escape"&&t.push("escape"),e.key==="ArrowRight"&&t.push("ArrowRight"),e.key==="ArrowDown"&&t.push("ArrowDown"),e.key==="ArrowUp"&&t.push("ArrowUp"),e.key==="ArrowLeft"&&t.push("ArrowLeft"),t.length>0?t:null},y8=(e,t)=>!e||!t||(e.join("").startsWith("shift/")&&e.shift(),e.length!==t.length)?!1:!e.find((r,n)=>Array.isArray(r)?!r.includes(t[n]):r!==t[n]),b8=e=>e==="alt"?g8():e==="control"?"⌃":e==="meta"?"⌘":e==="shift"?"⇧​":e==="Enter"||e==="Backspace"||e==="Esc"||e==="escape"?"":e===" "?"SPACE":e==="ArrowUp"?"↑":e==="ArrowDown"?"↓":e==="ArrowLeft"?"←":e==="ArrowRight"?"→":e?.toUpperCase(),v8=e=>e.map(b8).join(" "),E8=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:Mu,document:Pr}=BE;function E0(e){return Pr.activeElement&&e?.contains(Pr.activeElement)}var jE=()=>Mu&&Mu.platform?!!Mu.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,In=()=>jE()?"meta":"control";function Sd(e){return Object.keys(e)}var Fn=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[In(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[In(),"shift",","],aboutPage:[In(),","],escape:["escape"],collapseAll:[In(),"shift","ArrowUp"],expandAll:[In(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],openInIsolation:["alt","shift","I"],copyStoryLink:["alt","shift","L"],goToPreviousLandmark:["shift","F6"],goToNextLandmark:["F6"]}),Bu={};function S8(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var x8=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...Fn,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return Bu},getAddonsShortcutLabels(){let i={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{label:s}])=>{i[l]=s}),i},getAddonsShortcutDefaults(){let i={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{defaultShortcut:s}])=>{i[l]=s}),i},async setShortcuts(i){let{shortcuts:l}=await e.setState(s=>({shortcuts:typeof i=="function"?i(s.shortcuts):i}),{persistence:"permanent"});return l},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(i,l){return await n.setShortcuts(s=>({...s,[i]:l})),l},async setAddonShortcut(i,l){return await n.setShortcuts(s=>({...s,[`${i}-${l.actionName}`]:l.defaultShortcut})),Bu[`${i}-${l.actionName}`]=l,l},async restoreDefaultShortcut(i){let l=n.getDefaultShortcuts()[i];return n.setShortcut(i,l)},handleKeydownEvent(i){let l=m8(i),s=n.getShortcutKeys(),u=Sd(s).find(c=>y8(l,s[c]));u&&n.handleShortcutFeature(u,i)},handleShortcutFeature(i,l){let s=e.getState(),{ui:{enableShortcuts:u},storyId:c,refId:d,viewMode:f}=s;if(!u)return;let g=t.getNavAvailability()==="unavailable",m=["focusNav","search","toggleNav"].includes(i);if(!(g&&m))switch(l?.preventDefault&&l.preventDefault(),i){case"escape":{t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break}case"goToNextLandmark":case"goToPreviousLandmark":break;case"focusNav":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(Vt.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(Vt.storySearchField,!0)},0);break}case"focusIframe":{let y=Pr.getElementById("storybook-preview-iframe");if(y)try{y.contentWindow.focus()}catch{}break}case"focusPanel":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(Vt.storyPanelRoot);break}case"nextStory":{t.jumpToStory(1);break}case"prevStory":{t.jumpToStory(-1);break}case"nextComponent":{t.jumpToComponent(1);break}case"prevComponent":{t.jumpToComponent(-1);break}case"fullScreen":{t.toggleFullscreen();break}case"togglePanel":{let y=t.getIsPanelShown(),v=Pr.getElementById(Vt.addonPanel);t.togglePanel(),y&&E0(v)&&t.focusOnUIElement(Vt.showAddonPanel,{poll:!0}).then(b=>{b===!1&&Pr.body.focus()}),y||t.focusOnUIElement(Vt.addonPanel,{forceFocus:!0,poll:!0});break}case"toggleNav":{let y=t.getIsNavShown(),v=Pr.getElementById(Vt.sidebarRegion);t.toggleNav(),y&&E0(v)&&t.focusOnUIElement(Vt.showSidebar,{poll:!0}).then(b=>{b===!1&&Pr.body.focus()}),y||t.focusOnUIElement(Vt.sidebarRegion,{forceFocus:!0,poll:!0});break}case"toolbar":{t.toggleToolbar();break}case"panelPosition":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break}case"aboutPage":{t.navigate("/settings/about");break}case"shortcutsPage":{t.navigate("/settings/shortcuts");break}case"collapseAll":{t.emit(d8);break}case"expandAll":{t.emit(f8);break}case"remount":{t.emit(u8,{storyId:c});break}case"openInEditor":{BE.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"openInIsolation":{if(c&&f==="story"){let{previewHref:y}=t.getStoryHrefs(c,{refId:d});window.open(y,"_blank","noopener,noreferrer")}break}case"copyStoryLink":{if(c){let{managerHref:y}=t.getStoryHrefs(c,{refId:d});(0,s8.default)(y)}break}default:Bu[i].action();break}}},{shortcuts:o=Fn}=e.getState(),a={shortcuts:Sd(Fn).reduce((i,l)=>({...i,[l]:o[l]||Fn[l]}),Fn)};return{api:n,state:a,init:()=>{Pr.addEventListener("keydown",i=>{S8(i)||n.handleKeydownEvent(i)}),r.channel?.on(c8,i=>{n.handleKeydownEvent(i.event)})}}},HE={};We(HE,{init:()=>Q8});const{logger:$8}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:w8,CURRENT_STORY_WAS_SET:C8,DOCS_PREPARED:_8,PRELOAD_ENTRIES:T8,RESET_STORY_ARGS:O8,SELECT_STORY:A8,SET_CONFIG:R8,SET_CURRENT_STORY:D8,SET_FILTER:P8,SET_INDEX:I8,SET_STORIES:F8,SIDEBAR_FILTER_CHANGED:L8,STORY_ARGS_UPDATED:k8,STORY_CHANGED:N8,STORY_INDEX_INVALIDATED:M8,STORY_MISSING:B8,STORY_PREPARED:j8,STORY_SPECIFIED:H8,UPDATE_STORY_ARGS:U8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:UE}=__STORYBOOK_MODULE_GLOBAL__;var KE=(e,t={})=>{let r=Object.entries(t).filter(([n,o])=>n!=="path"&&o!==null&&o!==void 0).sort(([n],[o])=>n<o?-1:1).map(([n,o])=>`${n}=${o}`);return[e,...r].join("&")},zE=(e,t)=>{let r=p.useRef(t?t(e.getState()):e.getState()),n=p.useCallback(a=>e.onStateChange((i,l)=>{if(!t){r.current=i,a();return}let s=t(i),u=t(l);!Xt(s,u)&&(r.current=s,a())}),[e,t]),o=p.useCallback(()=>{let a=e.getState(),i=t?t(a):a;return Xt(i,r.current)||(r.current=i),r.current},[e,t]);return[p.useSyncExternalStore(n,o),e.setState]},K8=WA({universalStatusStore:$f.create({...zA,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:zE,environment:"manager"}),{fullStatusStore:Ci}=K8,GE=(e,t)=>{if(!e)return{included:[],excluded:[]};let r=[],n=[];return e.split(";").forEach(o=>{if(!o)return;let a=o.startsWith("!"),i=t(a?o.slice(1):o);i!=null&&(a?n.push(i):r.push(i))}),{included:r,excluded:n}},z8=e=>GE(e,KA),G8=(e,t)=>{if(!e.length&&!t.length)return;let r=e.map(o=>Lh(o)).sort(),n=t.map(o=>`!${Lh(o)}`).sort();return[...r,...n].join(";")},ju=(e,t)=>r=>{if(!e.length&&!t.length)return!0;let n=(Ci.getAll()??{})[r.id],o=n?Object.values(n).map(l=>l.value):[],a=!e.length||e.some(l=>o.includes(l)),i=!t.length||t.every(l=>!o.includes(l));return a&&i},W8=yt(vn(),1),WE={$docs:"_docs",$play:"_play",$test:"_test"},V8=e=>GE(e,t=>WE[t]??t),q8=(e,t)=>{if(!e.length&&!t.length)return"";let r=Object.fromEntries(Object.entries(WE).map(([a,i])=>[i,a])),n=e.map(a=>r[a]??a).sort(),o=t.map(a=>`!${r[a]??a}`).sort();return[...n,...o].join(";")},Y8=(0,W8.default)(1)(e=>{let t=Object.entries(e);return{included:t.filter(([,r])=>r.defaultFilterSelection==="include").map(([r])=>r),excluded:t.filter(([,r])=>r.defaultFilterSelection==="exclude").map(([r])=>r)}}),S0=e=>{let t=Object.entries(e).reduce((r,n)=>{let[o,a]=n;return a.excludeFromSidebar&&(r[o]=!0),r},{});return r=>{let n=r.tags??[],o=r.type==="docs"&&!n.includes(Lr.ATTACHED_MDX)&&!n.includes(Lr.UNATTACHED_MDX);return(n.includes(Lr.DEV)||o)&&n.filter(a=>t[a]).length===0}},Hu=(e,t)=>{let r=n=>Object.values(n.reduce((o,a)=>(Object.hasOwn(Xi,a)?o["built-in"].push(Xi[a]):o.user.push(S2(a)),o),{"built-in":[],user:[]})).filter(o=>o.length>0);return n=>{let o=r(e),a=r(t);return(!o.length||o.every(i=>i.some(l=>l(n,!1))))&&(!a.length||a.every(i=>i.every(l=>l(n,!0))))}},{fetch:X8}=UE,J8="./index.json",Uu="tags-filter",x0="static-filter",Ja="status-filter",Rn=new Set(Object.keys(Xi)),Z8=["enableShortcuts","theme","showRoots"];function Ku(e){if(!e||typeof e=="string")return e;let t={...e};return Z8.forEach(r=>{r in t&&delete t[r]}),t}var $0={tag:{included:"includedTagFilters",excluded:"excludedTagFilters"},status:{included:"includedStatusFilters",excluded:"excludedStatusFilters"}},Q8=({fullAPI:e,store:t,navigate:r,provider:n,state:{location:o}={},storyId:a,viewMode:i,docsOptions:l={}})=>{let s=(w,R)=>{let{customQueryParams:P}=t.getState();r(KE(w,P??{}),R)},u=w=>t.setState(w,{persistence:"url",serialize:R=>{let P=q8(R.includedTagFilters,R.excludedTagFilters),A=G8(R.includedStatusFilters,R.excludedStatusFilters);return{tags:P??null,statuses:A??null}}}),c=!1,d=async(w,R,P)=>{let{included:A,excluded:D}=$0[w],M=t.getState(),k=new Set(M[A]),K=new Set(M[D]);for(let j of R){let[z,U]=P?[K,k]:[k,K];U.delete(j),z.add(j)}await u({[A]:Array.from(k),[D]:Array.from(K)})},f=async(w,R)=>{let{included:P,excluded:A}=$0[w],D=t.getState(),M=new Set(R);await u({[P]:D[P].filter(k=>!M.has(k)),[A]:D[A].filter(k=>!M.has(k))})},g=(w,R)=>{let P=t.getState(),A=(P.includedTagFilters??[]).filter(U=>Rn.has(U)),D=(P.excludedTagFilters??[]).filter(U=>Rn.has(U)),M=!!globalThis?.FEATURES?.changeDetection,k=M?P.includedStatusFilters??[]:[],K=M?P.excludedStatusFilters??[]:[],j={},z=P.internal_index?Object.values(P.internal_index.entries):[];for(let U of new Set([...A,...D])){let H=Xi[U];j[U]=z.filter(G=>H(G)).length}if(k.length>0||K.length>0){let U=GA(Ci.getAll());for(let H of new Set([...k,...K]))U[H]!==void 0&&(j[H]=U[H])}n.channel?.emit(L8,{trigger:w,changed:R,activeTagFilters:{included:A,excluded:D},activeStatusFilters:{included:k,excluded:K},storyCounts:j})},m={storyId:Va,getData:(w,R)=>{let P=m.resolveStory(w,R);if(P?.type==="story"||P?.type==="docs")return P},isPrepared:(w,R)=>{let P=m.getData(w,R);return P?P.type==="story"?P.prepared:!0:!1},resolveStory:(w,R)=>{let{refs:P,index:A}=t.getState();if(!(R&&!P[R]))return R?P?.[R]?.index?.[w]??void 0:A?A[w]:void 0},getCurrentStoryData:()=>{let{storyId:w,refId:R}=t.getState();return m.getData(w,R)},getIndex:()=>{let{internal_index:w}=t.getState();return w},getParameters:(w,R)=>{let{storyId:P,refId:A}=typeof w=="string"?{storyId:w,refId:void 0}:w,D=m.getData(P,A);if(["story","docs"].includes(D?.type)){let{parameters:M}=D;if(M)return R?M[R]:M}return null},getCurrentParameter:w=>{let{storyId:R,refId:P}=t.getState();return m.getParameters({storyId:R,refId:P},w)||void 0},jumpToComponent:w=>{let{filteredIndex:R,storyId:P,refs:A,refId:D}=t.getState();if(!m.getData(P,D))return;let M=D?A[D].filteredIndex||{}:R;if(!M)return;let k=m.findSiblingStoryId(P,M,w,!0);k&&m.selectStory(k,void 0,{ref:D})},jumpToStory:w=>{let{filteredIndex:R,storyId:P,refs:A,refId:D}=t.getState(),M=m.getData(P,D);if(!M)return;let k=M.refId?A[M.refId].filteredIndex:R;if(!k)return;let K=m.findSiblingStoryId(P,k,w,!1);K&&m.selectStory(K,void 0,{ref:D})},selectFirstStory:()=>{let w=t.getState(),{filteredIndex:R}=w;if(R){let D=Object.keys(R).find(M=>R[M].type==="story");D&&m.selectStory(D);return}let{index:P}=w;if(!P)return;let A=Object.keys(P).find(D=>P[D].type==="story");if(A){m.selectStory(A);return}s("/")},selectStory:(w=void 0,R=void 0,P={})=>{let{ref:A}=P,{storyId:D,index:M,filteredIndex:k,refs:K,settings:j}=t.getState(),z=W=>W?.type==="docs"||W?.type==="story"?(t.setState({settings:{...j,lastTrackedStoryId:W.id}}),s(`/${W.type}/${W.refId?`${W.refId}_${W.id}`:W.id}`),!0):!1,U=D?.split("--",2)[0],H=A?K[A].index:M,G=A?K[A].filteredIndex:k;if(!(!H||!G))if(R)if(!w)z(H[Va(U,R)]);else{let W=A?`${A}_${Va(w,R)}`:Va(w,R);if(H[W])z(H[W]);else{let q=H[Jn(w)];if(q?.type==="component"){let ge=q.children.find(Ne=>H[Ne].name===R);z(ge?H[ge]:void 0)}}}else{let W=w?H[w]||H[Jn(w)]:H[U];if(!W)throw new Error(`Unknown id or title: '${w}'`);z(W)||z(m.findLeafEntry(G,W.id))}},findLeafEntry(w,R){let P=w[R];if(!P)return;if(P.type==="docs"||P.type==="story")return P;let A=P.children.find(D=>w[D]);return A?m.findLeafEntry(w,A):void 0},findLeafStoryId(w,R){return m.findLeafEntry(w,R)?.id},findAllLeafStoryIds(w){let{index:R}=t.getState();if(!R)return[];let P=(A,D=[])=>{let M=R[A];return M&&(M.type==="story"&&D.push(M.id),"children"in M&&M.children?.forEach(k=>P(k,D))),D};return P(w,[])},findSiblingStoryId(w,R,P,A){if(A){let k=W6(R),K=k.findIndex(j=>j.includes(w));return K===k.length-1&&P>0||K===0&&P<0?void 0:k[K+P]?k[K+P][0]:void 0}let D=V6(R),M=D.indexOf(w);if(!(M===D.length-1&&P>0)&&!(M===0&&P<0))return D[M+P]},updateStoryArgs:(w,R)=>{let{id:P,refId:A}=w;n.channel?.emit(U8,{storyId:P,updatedArgs:R,options:{target:A}})},resetStoryArgs:(w,R)=>{let{id:P,refId:A}=w;n.channel?.emit(O8,{storyId:P,argNames:R,options:{target:A}})},fetchIndex:async()=>{try{let w=await X8(J8);if(w.status!==200)throw new Error(await w.text());let R=await w.json();if(R.v<3){$8.warn(`Skipping story index with version v${R.v}, awaiting SET_STORIES.`);return}await m.setIndex(R)}catch(w){await t.setState({indexError:w})}},setIndex:async w=>{let{filteredIndex:R,index:P,filters:A}=t.getState(),D=Ci.getAll(),M=Qi(w,{provider:n,docsOptions:l,filters:A,allStatuses:D,statusFilterKey:Ja}),k=Qi(w,{provider:n,docsOptions:l,filters:{},allStatuses:D});await t.setState({internal_index:w,filteredIndex:f0(M,R),index:f0(k,P),indexError:void 0})},updateStory:async(w,R,P)=>{if(P){let{id:A,index:D,filteredIndex:M}=P,k={...P.storyUpdates,[w]:{...P.storyUpdates?.[w],...R}};D&&D[w]&&(D[w]={...D[w],...R}),M&&M[w]&&(M[w]={...M[w],...R}),await e.updateRef(A,{index:D,filteredIndex:M,storyUpdates:k})}else{let{index:A,filteredIndex:D}=t.getState();A&&A[w]&&(A[w]={...A[w],...R}),D&&D[w]&&(D[w]={...D[w],...R}),(A||D)&&await t.setState({index:A,filteredIndex:D})}},updateDocs:async(w,R,P)=>{if(P){let{id:A,index:D,filteredIndex:M}=P,k={...P.storyUpdates,[w]:{...P.storyUpdates?.[w],...R}};D&&D[w]&&(D[w]={...D[w],...R}),M&&M[w]&&(M[w]={...M[w],...R}),await e.updateRef(A,{index:D,filteredIndex:M,storyUpdates:k})}else{let{index:A,filteredIndex:D}=t.getState();A&&(A[w]={...A[w],...R}),D&&(D[w]={...D[w],...R}),(A||D)&&await t.setState({index:A,filteredIndex:D})}},setPreviewInitialized:async w=>{w?e.updateRef(w.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(w,R)=>{await t.setState(D=>({filters:{...D.filters,[w]:R}}));let{internal_index:P}=t.getState();if(!P)return;await m.setIndex(P);let A=await e.getRefs();for(let[D,{internal_index:M,...k}]of Object.entries(A))await e.setRef(D,{...k,storyIndex:M},!0);n.channel?.emit(P8,{id:w})},resetTagFilters:async()=>{await u(w=>({includedTagFilters:w.defaultIncludedTagFilters,excludedTagFilters:w.defaultExcludedTagFilters})),await y()},setAllTagFilters:async(w,R)=>{await u({includedTagFilters:w,excludedTagFilters:R}),await y()},addTagFilters:async(w,R)=>{await d("tag",w,R),await y(),w.length===1&&Rn.has(w[0])&&g("interaction",{filterType:"tag",filterId:w[0],action:R?"exclude":"include"})},removeTagFilters:async w=>{await f("tag",w),await y(),w.length===1&&Rn.has(w[0])&&g("interaction",{filterType:"tag",filterId:w[0],action:"remove"})},resetStatusFilters:async()=>{await u({includedStatusFilters:[],excludedStatusFilters:[]}),await v()},setAllStatusFilters:async(w,R)=>{let P=t.getState(),A=new Set(P.includedStatusFilters??[]),D=new Set(P.excludedStatusFilters??[]),M=new Set(w),k=new Set(R);await u({includedStatusFilters:w,excludedStatusFilters:R}),await v();let K=new Set([...A,...D,...M,...k]);for(let j of K){let z=A.has(j),U=D.has(j),H=M.has(j),G=k.has(j);if(z===H&&U===G)continue;let W;H?W="include":G?W="exclude":W="remove",g("interaction",{filterType:"status",filterId:j,action:W})}},addStatusFilters:async(w,R)=>{await d("status",w,R),await v(),w.length===1&&g("interaction",{filterType:"status",filterId:w[0],action:R?"exclude":"include"})},removeStatusFilters:async w=>{await f("status",w),await v(),w.length===1&&g("interaction",{filterType:"status",filterId:w[0],action:"remove"})}},y=()=>{let{includedTagFilters:w,excludedTagFilters:R}=t.getState();return m.experimental_setFilter(Uu,Hu(w,R))},v=()=>{let{includedStatusFilters:w,excludedStatusFilters:R}=t.getState();return m.experimental_setFilter(Ja,ju(w??[],R??[]))};n.channel?.on(H8,function({storyId:w,viewMode:R}){let{sourceType:P}=gt(this,e);if(P==="local"){let A=t.getState(),D=!R1(A.path,A.customQueryParams)&&(A.path==="/"||A.viewMode==="story"||A.viewMode==="docs"),M=A.viewMode&&A.storyId,k=A.viewMode!==R||A.storyId!==w,{type:K}=A.index?.[A.storyId]||{},j=!(K==="root"||K==="component"||K==="group");if(D){let{filteredIndex:z}=A;if(z&&!M&&z[w]?.type!=="story"){let U=z?Object.keys(z).find(H=>{let G=z[H];return G.type==="story"||G.type==="docs"}):void 0;U&&s(`/${R}/${U}`);return}M&&k&&j?n.channel?.emit(D8,{storyId:A.storyId,viewMode:A.viewMode}):k&&s(`/${R}/${w}`)}}}),n.channel?.on(C8,function(){let{ref:w}=gt(this,e);m.setPreviewInitialized(w)}),n.channel?.on(N8,function(){let{sourceType:w}=gt(this,e);if(w==="local"){let R=m.getCurrentParameter("options");R&&e.setOptions(Ku(R))}}),n.channel?.on(j8,function({id:w,...R}){let{ref:P,sourceType:A}=gt(this,e);if(m.updateStory(w,{...R,prepared:!0},P),!P&&!t.getState().hasCalledSetOptions){let{options:D}=R.parameters;e.setOptions(Ku(D)),t.setState({hasCalledSetOptions:!0})}if(A==="local"){let{storyId:D,index:M,refId:k}=t.getState();if(!M)return;let K=Array.from(new Set([m.findSiblingStoryId(D,M,1,!0),m.findSiblingStoryId(D,M,-1,!0)])).filter(Boolean);n.channel?.emit(T8,{ids:K,options:{target:k}})}}),n.channel?.on(_8,function({id:w,...R}){let{ref:P}=gt(this,e);m.updateStory(w,{...R,prepared:!0},P)}),n.channel?.on(I8,function(w){let{ref:R}=gt(this,e);if(R)e.setRef(R.id,{...R,storyIndex:w},!0);else{m.setIndex(w);let P=m.getCurrentParameter("options");e.setOptions(Ku(P))}}),n.channel?.on(F8,function(w){let{ref:R}=gt(this,e),P=w.v?H6(w):w.stories;if(R)e.setRef(R.id,{...R,setStoriesData:P},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),n.channel?.on(A8,function({kind:w,title:R=w,story:P,name:A=P,storyId:D,...M}){let{ref:k}=gt(this,e);k?e.selectStory(D||R,A,{...M,ref:k.id}):e.selectStory(D||R,A,M)}),n.channel?.on(k8,function({storyId:w,args:R}){let{ref:P}=gt(this,e);m.updateStory(w,{args:R},P)}),n.channel?.on(w8,function(w){let{ref:R}=gt(this,e);m.setPreviewInitialized(R)}),n.channel?.on(B8,function(w){let{ref:R}=gt(this,e);m.setPreviewInitialized(R)}),n.channel?.on(R8,()=>{let w=n.getConfig()?.sidebar?.filters||{},{includedTagFilters:R,excludedTagFilters:P,includedStatusFilters:A,excludedStatusFilters:D,tagPresets:M}=t.getState();t.setState(({filters:k})=>({filters:{...k,...w,[x0]:S0(M),[Uu]:Hu(R,P),[Ja]:ju(A,D)}}))}),Ci.onAllStatusChange(async()=>{v();let{internal_index:w}=t.getState();if(!w)return;await m.setIndex(w);let R=await e.getRefs();Object.entries(R).forEach(([P,{internal_index:A,...D}])=>{e.setRef(P,{...D,storyIndex:A},!0)})});let b=n.getConfig()?.sidebar?.filters||{},E=UE.TAGS_OPTIONS||{},S=Y8(E),{tags:x,statuses:C}=ep(o??{search:""}),$=V8(x),T=x!==void 0,O=T?$.included:S.included,L=T?$.excluded:S.excluded,I=z8(C),_=I.included,N=I.excluded,B={...b,[x0]:S0(E),[Uu]:Hu(O,L),[Ja]:ju(_,N)};return{api:m,state:{storyId:a,viewMode:i,hasCalledSetOptions:!1,previewInitialized:!1,filters:B,tagPresets:E,defaultIncludedTagFilters:S.included,defaultExcludedTagFilters:S.excluded,includedTagFilters:O,excludedTagFilters:L,includedStatusFilters:_,excludedStatusFilters:N},init:async()=>{if(n.channel?.on(M8,()=>m.fetchIndex()),await m.fetchIndex(),c)return;c=!0;let w=O.some(P=>Rn.has(P))||L.some(P=>Rn.has(P)),R=!!globalThis?.FEATURES?.changeDetection&&(_.length>0||N.length>0);(w||R)&&g("url")}}},VE={};We(VE,{getCustomQueryParams:()=>pp,init:()=>lL});const{GLOBALS_UPDATED:eL,NAVIGATE_URL:tL,SET_CURRENT_STORY:rL,STORY_ARGS_UPDATED:nL,UPDATE_QUERY_PARAMS:oL}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Dn}=__STORYBOOK_MODULE_GLOBAL__;var Gr=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},w0=e=>Object.fromEntries(e.split(";").map(t=>t.split(":")).map(([t,r])=>[t,encodeURIComponent(r)]).filter(([t,r])=>t&&r)),C0=(e,t)=>{let r=w0(e),n=w0(t);return Object.entries({...r,...n}).map(([o,a])=>`${o}:${a}`).join(";")},aL=["full","panel","nav","shortcuts","addonPanel","tabs","path"],pp=e=>Mc(ep(e),aL),zu,iL=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:o})=>{let{full:a,panel:i,nav:l,shortcuts:s,addonPanel:u,tabs:c}=ep(e),d,f,g;Gr(a)===!0?(d=0,f=0,g=0):Gr(a)===!1&&(d=na,f=el,g=tl),o||(Gr(l)===!0&&(d=na),Gr(l)===!1&&(d=0)),Gr(i)===!1&&(f=0,g=0);let m={navSize:d,bottomPanelHeight:f,rightPanelWidth:g,panelPosition:["right","bottom"].includes(i)?i:void 0,showTabs:Gr(c)},y={enableShortcuts:Gr(s)},v=u||void 0,b=n,E=pp(e),S=Zt(zu,E)?zu:E;return zu=S,{viewMode:r,layout:m,ui:y,selectedPanel:v,location:e,path:t,customQueryParams:S,storyId:b}},lL=e=>{let{store:t,navigate:r,provider:n,fullAPI:o}=e,a=(u,c={},d={})=>r(KE(u,c),d),i={getStoryHrefs(u,c={}){let{id:d,refId:f}=o.getCurrentStoryData()??{},g=u===d&&c.refId===f,{customQueryParams:m,location:y,refs:v}=t.getState(),{base:b,inheritArgs:E=g,inheritGlobals:S=!0,queryParams:x={},refId:C,viewMode:$="story",embed:T=!1,freeze:O=!1}=c;if(C&&!v[C])throw new Error(`Invalid refId: ${C}`);let L=y.pathname||"/",I=Dn.window.location.origin+L,_=Dn.STORYBOOK_NETWORK_ADDRESS??I,N=b==="origin"?I:b==="network"?_:L,B=C?v[C].url+"/iframe.html":Dn.PREVIEW_URL||`${N.replace(/\/[^/]*\.html$/,"").replace(/\/?$/,"/")}iframe.html`,w=C?`&refId=${encodeURIComponent(C)}`:"",{args:R="",globals:P="",...A}=x,D=E?C0(m?.args??"",R):R,M=S?C0(m?.globals??"",P):P,k=Mc(A,["embed","freeze"]),K=Mc(A,["id","viewMode","embed","freeze"]),j=ed(k,{nesting:!0,nestingSyntax:"js"}),z=ed(K,{nesting:!0,nestingSyntax:"js"});D=D&&`&args=${D}`,M=M&&`&globals=${M}`,j=j&&`&${j}`,z=z&&`&${z}`;let U=T?"&embed=true":"",H=O?"&freeze=finished":"";return{managerHref:`${N}?path=/${$}/${C?`${C}_`:""}${u}${D}${M}${j}`,previewHref:`${B}?id=${u}&viewMode=${$}${w}${D}${C?"":M}${z}${U}${H}`}},getQueryParam(u){let{customQueryParams:c}=t.getState();return c?c[u]:void 0},getUrlState(){let{location:u,path:c,customQueryParams:d,storyId:f,url:g,viewMode:m}=t.getState();return{path:c,hash:u?.hash??"",queryParams:d,storyId:f,url:g,viewMode:m}},setQueryParams(u){let{customQueryParams:c}=t.getState(),d={...c};for(let[f,g]of Object.entries(u))g==null?delete d[f]:d[f]=g;Zt(c,d)||(t.setState({customQueryParams:d}),n.channel?.emit(oL,d))},applyQueryParams(u,c){let{path:d,hash:f="",queryParams:g}=i.getUrlState();a(`${d}${f}`,{...g,...u},c),i.setQueryParams(u)},navigateUrl(u,c){r(u,{plain:!0,...c})}},l=()=>{let{path:u,hash:c="",queryParams:d,viewMode:f}=i.getUrlState();if(f!=="story")return;let g=o.getCurrentStoryData();if(g?.type!=="story")return;let{args:m,initialArgs:y}=g,v=pm(y,m);a(`${u}${c}`,{...d,args:v||null},{replace:!0}),i.setQueryParams({args:v||null})};n.channel?.on(rL,()=>l());let s;return n.channel?.on(nL,()=>{"requestIdleCallback"in Dn.window?(s&&Dn.window.cancelIdleCallback(s),s=Dn.window.requestIdleCallback(l,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(l,100))}),n.channel?.on(eL,({userGlobals:u,initialGlobals:c})=>{let{path:d,hash:f="",queryParams:g}=i.getUrlState(),m=pm(c,dn(c,u));a(`${d}${f}`,{...g,globals:m||null},{replace:!0}),i.setQueryParams({globals:m||null})}),n.channel?.on(tL,(u,c)=>{i.navigateUrl(u,c)}),{api:i,state:iL(e),init:()=>{t.registerPersistenceHandler("url",(u,c)=>{if(c){let d=c(t.getState());i.applyQueryParams(d,{replace:!0})}})}}},qE={};We(qE,{init:()=>fL});var sL=yt(vn(),1);const{global:xd}=__STORYBOOK_MODULE_GLOBAL__;var uL="10.5.0",{VERSIONCHECK:cL}=xd,_0=(0,sL.default)(1)(()=>{try{return{...JSON.parse(cL).data||{}}}catch{return{}}}),dL=e=>e.includes("vue")?"vue":e,fL=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:uL},..._0()},dismissedVersionNotification:t},n={getCurrentVersion:()=>{let{versions:{current:o}}=e.getState();return o},getLatestVersion:()=>{let{versions:{latest:o,next:a,current:i}}=e.getState();return i&&ht.prerelease(i.version)&&a?o&&ht.gt(o.version,a.version)?o:a:o},getDocsUrl:({asset:o,subpath:a=o,versioned:i,renderer:l,ref:s="ui"})=>{let{versions:u}=e.getState(),c=u.latest?.version,d=u.current?.version,f=d?.startsWith("0.0.0")&&c||d,g=`https://storybook.js.org/${o?"docs-assets":"docs"}/`;if(o&&f)g+=`${ht.major(f)}.${ht.minor(f)}/`;else if(i&&f&&c){let v=ht.diff(c,f);v==="patch"||v===null||(g+=`${ht.major(f)}.${ht.minor(f)}/`)}let[m,y]=a?.split("#")||[];if(m&&(g+=o?m:`${m}/`),l&&typeof xd.STORYBOOK_RENDERER<"u"){let v=xd.STORYBOOK_RENDERER;v&&(g+=`?renderer=${dL(v)}`)}return s&&(g+=`${g.includes("?")?"&":"?"}ref=${s}`),y&&(g+=`#${y}`),g},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),a=n.getCurrentVersion();if(o){if(!o.version||!a.version)return!0;let i=ht.prerelease(a.version)?`${ht.major(a.version)}.${ht.minor(a.version)}.${ht.patch(a.version)}`:a.version,l=ht.diff(i,o.version);return ht.gt(o.version,i)&&l!=="patch"&&!l.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=e.getState(),{latest:a,next:i}=_0();await e.setState({versions:{...o,latest:a,next:i}})},state:r,api:n}},YE={};We(YE,{init:()=>vL});const{REQUEST_WHATS_NEW_DATA:pL,RESULT_WHATS_NEW_DATA:hL,SET_WHATS_NEW_CACHE:gL,TOGGLE_WHATS_NEW_NOTIFICATIONS:mL}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:yL}=__STORYBOOK_MODULE_GLOBAL__;var T0="whats-new",bL=({color:e="currentColor",size:t=14})=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e})),vL=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function o(s){t.setState({whatsNewData:s}),n.whatsNewData=s}let a={isWhatsNewUnread(){return n.whatsNewData?.status==="SUCCESS"&&!n.whatsNewData.postIsRead},whatsNewHasBeenRead(){n.whatsNewData?.status==="SUCCESS"&&(l({lastReadPost:n.whatsNewData.url}),o({...n.whatsNewData,postIsRead:!0}),e.clearNotification(T0))},toggleWhatsNewNotifications(){n.whatsNewData?.status==="SUCCESS"&&(o({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),r.channel?.emit(mL,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function i(){return r.channel?.emit(pL),new Promise(s=>r.channel?.once(hL,({data:u})=>s(u)))}function l(s){r.channel?.emit(gL,s)}return{init:async()=>{if(yL.CONFIG_TYPE!=="DEVELOPMENT")return;let s=await i();o(s);let u=e.getUrlState(),c=u?.path==="/onboarding"||u.queryParams?.onboarding==="true",d=u?.path==="/review/"||u?.path==="/review"||u?.path?.startsWith("/review/");!c&&!d&&s.status==="SUCCESS"&&!s.disableWhatsNewNotifications&&s.showNotification&&e.addNotification({id:T0,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:h.createElement(bL,null),onClear({dismissed:f}){f&&l({lastDismissedPost:s.url})}})},state:n,api:a}},tn=yt(C6(),1),EL=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),JD(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?QD(n):r||n})};EL(tn.default._);var XE="@storybook/manager/store";function _i(e){return e.get(XE)||{}}function JE(e,t){return e.set(XE,t)}function SL(e,t){let r=_i(e);return JE(e,{...r,...t})}var xL=class{constructor({allowPersistence:e,setState:t,getState:r}){this.persistenceHandlers=new Map,this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=r}registerPersistenceHandler(e,t){this.persistenceHandlers.set(e,t)}getInitialState(e){for(let n of[tn.default.local,tn.default.session]){let o=_i(n);if("includedTagFilters"in o||"excludedTagFilters"in o){let{includedTagFilters:a,excludedTagFilters:i,...l}=o;JE(n,l)}}let t=_i(tn.default.local),r=_i(tn.default.session);return{...e,...t,...r}}getState(){return this.upstreamGetState()}async setState(e,t,r){let n,o;typeof t=="function"?(n=t,o=r):o=t;let{persistence:a="none"}=o||{},i={},l={};typeof e=="function"?i=u=>(l=e(u),l):(i=e,l=i);let s=await new Promise(u=>{this.upstreamSetState(i,()=>{u(this.getState())})});if(a!=="none"&&this.upstreamPersistence)if(a==="url"){let u=this.persistenceHandlers.get("url");u&&await u(l,o?.serialize)}else{let u=a==="session"?tn.default.session:tn.default.local;await SL(u,l)}return n&&n(s),s}},{ActiveTabs:iZ}=fp,ZE=_6({api:void 0,state:bd({})}),$L=(...e)=>T6({},...e),wL=class extends p.Component{constructor(e){super(e),this.api={},this.mounted=!1,this.initModules=()=>{this.modules.forEach(y=>{"init"in y&&y.init()})};let{location:t,path:r,refId:n,viewMode:o=e.docsOptions.docsMode?"docs":e.viewMode,singleStory:a,storyId:i,docsOptions:l,navigate:s}=e,u=new xL({getState:()=>this.state,setState:(y,v)=>{if(!this.mounted){let b=typeof y=="function"?y(this.state):y;return this.state={...this.state,...b},v?.(this.state),this.state}return this.setState(y,()=>v(this.state)),this.state}}),c={location:t,path:r,viewMode:o,singleStory:a,storyId:i,refId:n},d={docsOptions:l};this.state=u.getInitialState(bd({...c,...d}));let f={navigate:s,store:u,provider:e.provider};this.modules=[kE,wE,$E,fp,FE,NE,ME,HE,_E,CE,VE,qE,YE,LE].map(y=>y.init({...c,...d,...f,state:this.state,fullAPI:this.api}));let g=bd(this.state,...this.modules.map(y=>y.state)),m=Object.assign(this.api,{navigate:s},...this.modules.map(y=>y.api));this.state=g,this.api=m,e.provider.handleAPI(this.api)}componentDidMount(){this.mounted=!0}static getDerivedStateFromProps(e,t){let r=t.location?.search!==e.location?.search;return t.path!==e.path||r?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId,customQueryParams:pp(e.location)}:null}shouldComponentUpdate(e,t){let r=this.props,n=this.state;return r.path!==e.path||!Xt(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return h.createElement(CL,{effect:this.initModules},h.createElement(ZE.Provider,{value:t},h.createElement(TL,null,e)))}};wL.displayName="Manager";var CL=({children:e,effect:t})=>(h.useEffect(t,[]),e),_L=e=>e;function TL({filter:e=_L,children:t}){let r=p.useContext(ZE),n=p.useRef(t),o=p.useRef(e);if(typeof n.current!="function")return h.createElement(p.Fragment,null,n.current);let a=o.current(r),i=p.useMemo(()=>[...Object.entries(a).reduce((l,s)=>l.concat(s),[])],[r.state]);return p.useMemo(()=>{let l=n.current;return h.createElement(l,{...a})},i)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:lZ}=__STORYBOOK_MODULE_CHANNELS__;var OL={id:"storybook/test-provider",leader:!0,initialState:{}};function AL({universalTestProviderStore:e,useUniversalStore:t}){let r={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:"settings-changed"})})},onRunAll:a=>e.subscribe("run-all",a),onClearAll:a=>e.subscribe("clear-all",a)},n={...r,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:a=>e.subscribe("settings-changed",a),runAll:async()=>{await e.untilReady(),e.send({type:"run-all"})},clearAll:async()=>{await e.untilReady(),e.send({type:"clear-all"})}},o=a=>{let i=()=>e.getState()[a]??"test-provider-state:pending",l=s=>{e.untilReady().then(()=>{e.setState(u=>({...u,[a]:s}))})};return{...r,testProviderId:a,getState:i,setState:l,runWithState:async s=>{l("test-provider-state:running");try{await s(),l("test-provider-state:succeeded")}catch{l("test-provider-state:crashed")}}}};return t?{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e,useTestProviderStore:a=>t(e,a)[0]}:{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e}}AL({universalTestProviderStore:$f.create({...OL,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:zE});var RL={items:{accessibilityTests:{status:"open"},aiSetup:{status:"open"},autodocs:{status:"open"},ciTests:{status:"open"},controls:{status:"open"},coverage:{status:"open"},guidedTour:{status:"open"},installA11y:{status:"open"},installChromatic:{status:"open"},installDocs:{status:"open"},installVitest:{status:"open"},mdxDocs:{status:"open"},moreComponents:{status:"open"},moreStories:{status:"open"},onboardingSurvey:{status:"open"},organizeStories:{status:"open"},renderComponent:{status:"open"},runTests:{status:"open"},publishStorybook:{status:"open"},shareStorybook:{status:"open"},viewports:{status:"open"},visualTests:{status:"open"},whatsNewStorybook10:{status:"open"},writeInteractions:{status:"open"}},widget:{}},DL={id:"storybook/checklist",initialState:RL};$f.create({...DL,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var Gu={exports:{}},Wu={};var O0;function PL(){if(O0)return Wu;O0=1;var e=v_();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function l(d,f){var g=f(),m=n({inst:{value:g,getSnapshot:f}}),y=m[0].inst,v=m[1];return a(function(){y.value=g,y.getSnapshot=f,s(y)&&v({inst:y})},[d,g,f]),o(function(){return s(y)&&v({inst:y}),d(function(){s(y)&&v({inst:y})})},[d]),i(g),g}function s(d){var f=d.getSnapshot;d=d.value;try{var g=f();return!r(d,g)}catch{return!0}}function u(d,f){return f()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return Wu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Wu}var A0;function IL(){return A0||(A0=1,Gu.exports=PL()),Gu.exports}var FL=IL(),xe=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},mo=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),Er=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?"1px solid hsl(0 0 0 / 0.05)":"1px solid hsl(0 0 100 / 0.05)",color:e.color.defaultText,backgroundColor:e.base==="light"?"hsl(0 0 0 / 0.01)":"hsl(0 0 100 / 0.02)"}),Ce=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),wn={margin:"16px 0"},hp=F.div(Ce),LL=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return h.createElement("a",{href:r,target:n,...t})},QE=F(LL)(({theme:e})=>({...Ce({theme:e}),fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"},"& code":{color:"inherit",textDecoration:"underline",textDecorationThickness:"0.03125rem",paddingLeft:0,paddingRight:0,"&::before":{content:'"\\00a0"',fontSize:"0.5em"},"&::after":{content:'"\\00a0"',fontSize:"0.5em"}}})),eS=F.blockquote(({theme:e})=>({...Ce({theme:e}),...wn,borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),fn=[],Zn=null,kL=p.lazy(async()=>{let{SyntaxHighlighter:e}=await yr(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-YFXUGROL-CGesurt7.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return fn.length>0&&(fn.forEach(t=>{e.registerLanguage(...t)}),fn=[]),Zn===null&&(Zn=e),{default:t=>h.createElement(e,{...t})}}),NL=p.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([yr(()=>import("./syntaxhighlighter-YFXUGROL-CGesurt7.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),yr(()=>import("./formatter-L2YTDE3Q-CRWGDuLM.js"),__vite__mapDeps([6,1,2,3,4,5]),import.meta.url)]);return fn.length>0&&(fn.forEach(r=>{e.registerLanguage(...r)}),fn=[]),Zn===null&&(Zn=e),{default:r=>h.createElement(e,{...r,formatter:t})}}),xa=e=>h.createElement(p.Suspense,{fallback:h.createElement("div",null)},e.format!==!1?h.createElement(NL,{...e}):h.createElement(kL,{...e}));xa.registerLanguage=(...e)=>{if(Zn!==null){Zn.registerLanguage(...e);return}fn.push(e)};var ML=e=>typeof e=="string",BL=/[\n\r]/g,jL=F.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit",...Er({theme:e})})),HL=F(xa)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),gp=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=p.Children.toArray(t);return o.filter(ML).some(a=>a.match(BL))?h.createElement(HL,{bordered:!0,copyable:!0,language:n?.[1]??"text",format:!1,...r},t):h.createElement(jL,{...r,className:e},o)},tS=F.dl(({theme:e})=>({...Ce({theme:e}),...wn,padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),rS=F.div(Ce),nS=F.h1(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),mp=F.h2(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),yp=F.h3(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.m1}px`})),oS=F.h4(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.s3}px`})),aS=F.h5(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.s2}px`})),iS=F.h6(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),lS=F.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),sS=F.img({maxWidth:"100%"}),uS=F.li(({theme:e})=>({...Ce({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":Er({theme:e})})),UL={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},cS=F.ol(({theme:e})=>({...Ce({theme:e}),...wn,...UL,listStyle:"decimal"})),dS=F.p(({theme:e})=>({...Ce({theme:e}),...wn,fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":Er({theme:e})})),fS=F.pre(({theme:e})=>({...Ce({theme:e}),...wn,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),pS=F.span(({theme:e})=>({...Ce({theme:e}),"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),hS=F.title(Er),gS=F.table(({theme:e})=>({...Ce({theme:e}),...wn,fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),KL={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},mS=F.ul(({theme:e})=>({...Ce({theme:e}),...wn,...KL,listStyle:"disc"})),yS={h1:e=>h.createElement(nS,{...xe(e,"h1")}),h2:e=>h.createElement(mp,{...xe(e,"h2")}),h3:e=>h.createElement(yp,{...xe(e,"h3")}),h4:e=>h.createElement(oS,{...xe(e,"h4")}),h5:e=>h.createElement(aS,{...xe(e,"h5")}),h6:e=>h.createElement(iS,{...xe(e,"h6")}),pre:e=>h.createElement(fS,{...xe(e,"pre")}),a:e=>h.createElement(QE,{...xe(e,"a")}),hr:e=>h.createElement(lS,{...xe(e,"hr")}),dl:e=>h.createElement(tS,{...xe(e,"dl")}),blockquote:e=>h.createElement(eS,{...xe(e,"blockquote")}),table:e=>h.createElement(gS,{...xe(e,"table")}),img:e=>h.createElement(sS,{...xe(e,"img")}),div:e=>h.createElement(rS,{...xe(e,"div")}),span:e=>h.createElement(pS,{...xe(e,"span")}),li:e=>h.createElement(uS,{...xe(e,"li")}),ul:e=>h.createElement(mS,{...xe(e,"ul")}),ol:e=>h.createElement(cS,{...xe(e,"ol")}),p:e=>h.createElement(dS,{...xe(e,"p")}),code:e=>h.createElement(gp,{...xe(e,"code")}),tt:e=>h.createElement(hS,{...xe(e,"tt")}),resetwrapper:e=>h.createElement(hp,{...xe(e,"resetwrapper")})};F.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case"negative":return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case"warning":return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case"neutral":return{color:e.fgColor.muted,background:e.base==="dark"?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${br(.8,e.textMutedColor)}`};case"positive":return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case"active":return{color:e.base==="light"?Ye(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${br(.9,e.color.secondary)}`};default:return{}}});const{deprecate:zL}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var GL=0,WL=e=>e.button===GL&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,VL=(e,t)=>{WL(e)&&(e.preventDefault(),t(e))},qL=F.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),YL=F.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Ye(.07,e.color.secondary),"svg path:not([fill])":{fill:Ye(.07,e.color.secondary)}},"&:active":{color:Ye(.1,e.color.secondary),"svg path:not([fill])":{fill:Ye(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.secondary,e.color.secondary]),r&&(n=[e.color.dark,e.color.secondary,e.color.secondary]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e,theme:t})=>e?{border:0,borderRadius:t.input.borderRadius,background:"none",padding:0,fontSize:"inherit",lineHeight:"inherit","&:focus-visible":{outline:`2px solid ${t.color.secondary}`,outlineOffset:2,zIndex:"1"}}:{}),$a=p.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:a=void 0,isButton:i=void 0,href:l,...s},u)=>(i!==void 0&&zL("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),h.createElement(YL,{as:l?"a":"button",href:l,...s,ref:u,isButton:!l||i===!0,onClick:r&&e?c=>VL(c,r):r,className:a},h.createElement(qL,{withArrow:n,containsIcon:o},t,n&&h.createElement(IA,null)))));$a.displayName="Link";F.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","& code":{color:"inherit",textDecoration:"underline",textDecorationThickness:"0.03125rem",paddingLeft:0,paddingRight:0,"&::before":{content:'"\\00a0"',fontSize:"0.5em"},"&::after":{content:'"\\00a0"',fontSize:"0.5em"}}},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}}));const{global:XL}=__STORYBOOK_MODULE_GLOBAL__;var{document:Oo,window:$d}=XL;async function JL(e){try{await $d.top?.navigator.clipboard.writeText(e)}catch{await $d.navigator.clipboard.writeText(e)}}async function ZL(e){let t=Oo.createElement("TEXTAREA"),r=Oo.activeElement;t.value=e,Oo.body.appendChild(t),t.select(),Oo.execCommand("copy"),Oo.body.removeChild(t),r.focus()}function QL(){return $d.navigator?.clipboard?JL:ZL}const{deprecate:wd}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function R0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ek(...e){return t=>{let r=!1,n=e.map(o=>{let a=R0(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){let a=n[o];typeof a=="function"?a():R0(e[o],null)}}}}var tk=Symbol.for("react.lazy"),rl=E_[" use ".trim().toString()];function rk(e){return typeof e=="object"&&e!==null&&"then"in e}function bS(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===tk&&"_payload"in e&&rk(e._payload)}function nk(e){let t=ak(e),r=p.forwardRef((n,o)=>{let{children:a,...i}=n;bS(a)&&typeof rl=="function"&&(a=rl(a._payload));let l=p.Children.toArray(a),s=l.find(lk);if(s){let u=s.props.children,c=l.map(d=>d===s?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:d);return ae.jsx(t,{...i,ref:o,children:p.isValidElement(u)?p.cloneElement(u,void 0,c):null})}return ae.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var ok=nk("Slot");function ak(e){let t=p.forwardRef((r,n)=>{let{children:o,...a}=r;if(bS(o)&&typeof rl=="function"&&(o=rl(o._payload)),p.isValidElement(o)){let i=uk(o),l=sk(a,o.props);return o.type!==p.Fragment&&(l.ref=n?ek(n,i):i),p.cloneElement(o,l)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ik=Symbol("radix.slottable");function lk(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ik}function sk(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{let l=a(...i);return o(...i),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function uk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ck=F.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)"})),vS=({note:e,...t})=>h.createElement(ck,{...t},e);const{deprecate:dk}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var de=typeof document<"u"?h.useLayoutEffect:()=>{};function fk(e){let[t,r]=p.useState(e),n=p.useRef(t),o=p.useRef(null),a=p.useRef(()=>{if(!o.current)return;let l=o.current.next();if(l.done){o.current=null;return}n.current===l.value?a.current():r(l.value)});de(()=>{n.current=t,o.current&&a.current()});let i=p.useCallback(l=>{o.current=l(n.current),a.current()},[a]);return[t,i]}var ES={prefix:String(Math.round(Math.random()*1e10)),current:0},SS=h.createContext(ES),pk=h.createContext(!1),Vu=new WeakMap;function hk(e=!1){let t=p.useContext(SS),r=p.useRef(null);if(r.current===null&&!e){var n,o;let a=(o=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let i=Vu.get(a);i==null?Vu.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,Vu.delete(a))}r.current=++t.current}return r.current}function gk(e){let t=p.useContext(SS),r=hk(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function mk(e){let t=h.useId(),[r]=p.useState(Cn()),n=r?"react-aria":`react-aria${ES.prefix}`;return e||`${n}-${t}`}var yk=typeof h.useId=="function"?mk:gk;function bk(){return!1}function vk(){return!0}function Ek(e){return()=>{}}function Cn(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(Ek,bk,vk):p.useContext(pk)}var Sk=!!(typeof window<"u"&&window.document&&window.document.createElement),Un=new Map,Lo;typeof FinalizationRegistry<"u"&&(Lo=new FinalizationRegistry(e=>{Un.delete(e)}));function Ge(e){let[t,r]=p.useState(e),n=p.useRef(null),o=yk(t),a=p.useRef(null);if(Lo&&Lo.register(a,o),Sk){let i=Un.get(o);i&&!i.includes(n)?i.push(n):Un.set(o,[n])}return de(()=>{let i=o;return()=>{Lo&&Lo.unregister(a),Un.delete(i)}},[o]),p.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),o}function xk(e,t){if(e===t)return e;let r=Un.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=Un.get(t);return n?(n.forEach(o=>o.current=e),e):t}function Ti(e=[]){let t=Ge(),[r,n]=fk(t),o=p.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return de(o,[t,o,...e]),r}function wa(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var fe=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},_t=e=>e&&"window"in e&&e.window===e?e:fe(e).defaultView||window;function $t(e,t){return t&&e?e.contains(t):!1}var Me=(e=document)=>e.activeElement;function Oe(e){return e.target}function $k(e,t,r,n){return e.createTreeWalker(t,r,n)}function xS(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=xS(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wk(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=xS(e))&&(n&&(n+=" "),n+=t);return n}var Ck=wk;function te(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let a=t[o],i=n[o];typeof a=="function"&&typeof i=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=wa(a,i):(o==="className"||o==="UNSAFE_className")&&typeof a=="string"&&typeof i=="string"?t[o]=Ck(a,i):o==="id"&&a&&i?t.id=xk(a,i):t[o]=i!==void 0?i:a}}return t}function bp(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(o=>{let a=D0(o,t);return r||(r=typeof a=="function"),a});if(r)return()=>{n.forEach((o,a)=>{typeof o=="function"?o():D0(e[a],null)})}}}function D0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var _k=new Set(["id"]),Tk=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ok=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Ak=new Set(["dir","lang","hidden","inert","translate"]),P0=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Rk=/^(data-.*)$/;function _e(e,t={}){let{labelable:r,isLink:n,global:o,events:a=o,propNames:i}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(_k.has(s)||r&&Tk.has(s)||n&&Ok.has(s)||o&&Ak.has(s)||a&&(P0.has(s)||s.endsWith("Capture")&&P0.has(s.slice(0,-7)))||i?.has(s)||Rk.test(s))&&(l[s]=e[s]);return l}function lt(e){if(Dk())e.focus({preventScroll:!0});else{let t=Pk(e);e.focus(),Ik(t)}}var Za=null;function Dk(){if(Za==null){Za=!1;try{document.createElement("div").focus({get preventScroll(){return Za=!0,!0}})}catch{}}return Za}function Pk(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function Ik(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function ql(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function vp(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Sr(e){let t=null;return()=>(t==null&&(t=e()),t)}var mn=Sr(function(){return vp(/^Mac/i)}),Fk=Sr(function(){return vp(/^iPhone/i)}),$S=Sr(function(){return vp(/^iPad/i)||mn()&&navigator.maxTouchPoints>1}),Yl=Sr(function(){return Fk()||$S()}),Lk=Sr(function(){return mn()||Yl()}),wS=Sr(function(){return ql(/AppleWebKit/i)&&!CS()}),CS=Sr(function(){return ql(/Chrome/i)}),Ep=Sr(function(){return ql(/Android/i)}),kk=Sr(function(){return ql(/Firefox/i)}),Nk=p.createContext({isNative:!0,open:jk,useHref:e=>e});function Xl(){return p.useContext(Nk)}function Mk(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function yn(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}=t;kk()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(mn()?a=!0:i=!0);let u=wS()&&mn()&&!$S()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});yn.isOpening=r,lt(e),e.dispatchEvent(u),yn.isOpening=!1}yn.isOpening=!1;function Bk(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function jk(e,t){Bk(e,r=>yn(r,t))}function _S(e){let t=Xl();var r;let n=t.useHref((r=e?.href)!==null&&r!==void 0?r:"");return{href:e?.href?n:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function Hk(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Mk(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Ir=new Map,Cd=new Set;function I0(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Ir.get(n.target);o||(o=new Set,Ir.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Ir.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Ir.delete(n.target)),Ir.size===0)){for(let a of Cd)a();Cd.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?I0():document.addEventListener("DOMContentLoaded",I0));function Uk(){for(let[e]of Ir)"isConnected"in e&&!e.isConnected&&Ir.delete(e)}function TS(e){requestAnimationFrame(()=>{Uk(),Ir.size===0?e():Cd.add(e)})}function Jl(){let e=p.useRef(new Map),t=p.useCallback((o,a,i,l)=>{let s=l?.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:a,eventTarget:o,fn:s,options:l}),o.addEventListener(a,s,l)},[]),r=p.useCallback((o,a,i,l)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;o.removeEventListener(a,u,l),e.current.delete(i)},[]),n=p.useCallback(()=>{e.current.forEach((o,a)=>{r(o.eventTarget,o.type,a,o.options)})},[r]);return p.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Zl(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Ge(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function Kt(e){let t=p.useRef(null),r=p.useRef(void 0),n=p.useCallback(o=>{if(typeof e=="function"){let a=e,i=a(o);return()=>{typeof i=="function"?i():a(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return p.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}var qu,Kk=(qu=h.useInsertionEffect)!==null&&qu!==void 0?qu:de;function He(e){let t=p.useRef(null);return Kk(()=>{t.current=e},[e]),p.useCallback((...r)=>{let n=t.current;return n?.(...r)},[])}function F0(e,t){let r=p.useRef(!0),n=p.useRef(null);de(()=>(r.current=!0,()=>{r.current=!1}),[]),de(()=>{r.current?r.current=!1:(!n.current||t.some((o,a)=>!Object.is(o,n[a])))&&e(),n.current=t},t)}function zk(){return typeof window.ResizeObserver<"u"}function nl(e){let{ref:t,box:r,onResize:n}=e,o=He(n);p.useEffect(()=>{let a=t?.current;if(a)if(zk()){let i=new window.ResizeObserver(l=>{l.length&&o()});return i.observe(a,{box:r}),()=>{a&&i.unobserve(a)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,r])}function Sp(e,t){de(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Qn(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function OS(e,t){let r=e;for(Qn(r,t)&&(r=r.parentElement);r&&!Qn(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Gk(e,t){let r=[];for(;e&&e!==document.documentElement;)Qn(e,t)&&r.push(e),e=e.parentElement;return r}function Ln(e){return mn()?e.metaKey:e.ctrlKey}var Wk=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Yu(e){return e instanceof HTMLInputElement&&!Wk.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var Vk=0,Xu=new Map;function qk(e){let[t,r]=p.useState();return de(()=>{if(!e)return;let n=Xu.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${Vk++}`;r(o);let a=document.createElement("div");a.id=o,a.style.display="none",a.textContent=e,document.body.appendChild(a),n={refCount:0,element:a},Xu.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Xu.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function ko(e,t,r,n){let o=He(r),a=r==null;p.useEffect(()=>{if(a||!e.current)return;let i=e.current;return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[e,t,n,a])}function AS(e,t){let r=L0(e,t,"left"),n=L0(e,t,"top"),o=t.offsetWidth,a=t.offsetHeight,i=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:g}=getComputedStyle(e),m=i+parseInt(u,10),y=l+parseInt(s,10),v=m+e.clientWidth,b=y+e.clientHeight,E=parseInt(c,10)||0,S=parseInt(f,10)||0,x=parseInt(d,10)||0,C=parseInt(g,10)||0;r<=i+C?i=r-parseInt(u,10)-C:r+o>v-x&&(i+=r+o-v+x),n<=y+E?l=n-parseInt(s,10)-E:n+a>b-S&&(l+=n+a-b+S),e.scrollLeft=i,e.scrollTop=l}function L0(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function k0(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement,l=window.getComputedStyle(i).overflow==="hidden";if(l){let s=Gk(e);l||s.push(i);for(let u of s)AS(u,e)}else{var r;let{left:s,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-d)>1){var n,o,a;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function RS(e){return e.pointerType===""&&e.isTrusted?!0:Ep()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Yk(e){return!Ep()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function N0(e){let t=p.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var Xk="react-aria-clear-focus",Jk="react-aria-focus";function DS(e,t=!0){let[r,n]=p.useState(!0),o=r&&t;return de(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let a of e.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[e,o]),IS(e,o,p.useCallback(()=>n(!1),[])),o}function PS(e,t){let[r,n]=p.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let o=r==="exiting";return IS(e,o,p.useCallback(()=>{n(a=>a==="exiting"?"closed":a)},[])),o}function IS(e,t,r){de(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(a=>a.finished)).then(()=>{o||Sl.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}var Zk=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Qk(e){let t=_t(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){let{getComputedStyle:a}=e.ownerDocument.defaultView,{display:i,visibility:l}=a(e);o=i!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function e7(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function xp(e,t){return Zk?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Qk(e)&&e7(e,t)&&(!e.parentElement||xp(e.parentElement,e))}var $p=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],t7=$p.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";$p.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var r7=$p.join(':not([hidden]):not([tabindex="-1"]),');function FS(e){return e.matches(t7)&&xp(e)&&!LS(e)}function n7(e){return e.matches(r7)&&xp(e)&&!LS(e)}function LS(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var Ju,o7=typeof document<"u"?(Ju=h.useInsertionEffect)!==null&&Ju!==void 0?Ju:h.useLayoutEffect:()=>{};function Ql(e,t,r){let[n,o]=p.useState(e||t),a=p.useRef(n),i=p.useRef(e!==void 0),l=e!==void 0;p.useEffect(()=>{i.current,i.current=l},[l]);let s=l?e:n;o7(()=>{a.current=s});let[,u]=p.useReducer(()=>({}),{}),c=p.useCallback((d,...f)=>{let g=typeof d=="function"?d(a.current):d;Object.is(a.current,g)||(a.current=g,o(g),u(),r?.(g,...f))},[r]);return[s,c]}function oa(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function wp(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function kS(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function NS(e){let t=p.useRef({isFocused:!1,observer:null});de(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=He(n=>{e?.(n)});return p.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,a=i=>{if(t.current.isFocused=!1,o.disabled){let l=wp(i);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}var ol=!1;function a7(e){for(;e&&!FS(e);)e=e.parentElement;let t=_t(e),r=t.document.activeElement;if(!r||r===e)return;ol=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},a=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,lt(r),s()))},i=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,lt(r),s()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",i,!0),ol=!1,n=!1},u=requestAnimationFrame(s);return s}var Bn="default",_d="",Oi=new WeakMap;function i7(e){if(Yl()){if(Bn==="default"){let t=fe(e);_d=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Bn="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Oi.set(e,e.style[t]),e.style[t]="none"}}function M0(e){if(Yl()){if(Bn!=="disabled")return;Bn="restoring",setTimeout(()=>{TS(()=>{if(Bn==="restoring"){let t=fe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=_d||""),_d="",Bn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Oi.has(e)){let t=Oi.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Oi.delete(e)}}var aa=h.createContext({register:()=>{}});aa.displayName="PressResponderContext";function l7(e,t){return t.get?t.get.call(e):t.value}function MS(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function s7(e,t){var r=MS(e,t,"get");return l7(e,r)}function u7(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c7(e,t,r){u7(e,t),t.set(e,r)}function d7(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function B0(e,t,r){var n=MS(e,t,"set");return d7(e,n,r),r}function f7(e){let t=p.useContext(aa);if(t){let{register:r,...n}=t;e=te(n,e),r()}return Sp(t,e.ref),e}var Qa=new WeakMap,ei=class{continuePropagation(){B0(this,Qa,!1)}get shouldStopPropagation(){return s7(this,Qa)}constructor(e,t,r,n){c7(this,Qa,{writable:!0,value:void 0}),B0(this,Qa,!0);var o;let a=(o=n?.target)!==null&&o!==void 0?o:r.currentTarget,i=a?.getBoundingClientRect(),l,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),i&&(u!=null&&c!=null?(l=u-i.left,s=c-i.top):(l=i.width/2,s=i.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=s}},j0=Symbol("linkClicked"),H0="react-aria-pressable-style",U0="data-react-aria-pressable";function Ca(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:a,onClick:i,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...g}=f7(e),[m,y]=p.useState(!1),v=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:E}=Jl(),S=He((_,N)=>{let B=v.current;if(l||B.didFirePressStart)return!1;let w=!0;if(B.isTriggeringEvent=!0,n){let R=new ei("pressstart",N,_);n(R),w=R.shouldStopPropagation}return r&&r(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,y(!0),w}),x=He((_,N,B=!0)=>{let w=v.current;if(!w.didFirePressStart)return!1;w.didFirePressStart=!1,w.isTriggeringEvent=!0;let R=!0;if(o){let P=new ei("pressend",N,_);o(P),R=P.shouldStopPropagation}if(r&&r(!1),y(!1),t&&B&&!l){let P=new ei("press",N,_);t(P),R&&(R=P.shouldStopPropagation)}return w.isTriggeringEvent=!1,R}),C=He((_,N)=>{let B=v.current;if(l)return!1;if(a){B.isTriggeringEvent=!0;let w=new ei("pressup",N,_);return a(w),B.isTriggeringEvent=!1,w.shouldStopPropagation}return!0}),$=He(_=>{let N=v.current;if(N.isPressed&&N.target){N.didFirePressStart&&N.pointerType!=null&&x(Wr(N.target,_),N.pointerType,!1),N.isPressed=!1,N.isOverTarget=!1,N.activePointerId=null,N.pointerType=null,E(),d||M0(N.target);for(let B of N.disposables)B();N.disposables=[]}}),T=He(_=>{c&&$(_)}),O=He(_=>{l||i?.(_)}),L=He((_,N)=>{if(!l&&i){let B=new MouseEvent("click",_);kS(B,N),i(wp(B))}}),I=p.useMemo(()=>{let _=v.current,N={onKeyDown(w){if(Zu(w.nativeEvent,w.currentTarget)&&$t(w.currentTarget,Oe(w.nativeEvent))){var R;K0(Oe(w.nativeEvent),w.key)&&w.preventDefault();let P=!0;if(!_.isPressed&&!w.repeat){_.target=w.currentTarget,_.isPressed=!0,_.pointerType="keyboard",P=S(w,"keyboard");let A=w.currentTarget,D=M=>{Zu(M,A)&&!M.repeat&&$t(A,Oe(M))&&_.target&&C(Wr(_.target,M),"keyboard")};b(fe(w.currentTarget),"keyup",wa(D,B),!0)}P&&w.stopPropagation(),w.metaKey&&mn()&&((R=_.metaKeyEvents)===null||R===void 0||R.set(w.key,w.nativeEvent))}else w.key==="Meta"&&(_.metaKeyEvents=new Map)},onClick(w){if(!(w&&!$t(w.currentTarget,Oe(w.nativeEvent)))&&w&&w.button===0&&!_.isTriggeringEvent&&!yn.isOpening){let R=!0;if(l&&w.preventDefault(),!_.ignoreEmulatedMouseEvents&&!_.isPressed&&(_.pointerType==="virtual"||RS(w.nativeEvent))){let P=S(w,"virtual"),A=C(w,"virtual"),D=x(w,"virtual");O(w),R=P&&A&&D}else if(_.isPressed&&_.pointerType!=="keyboard"){let P=_.pointerType||w.nativeEvent.pointerType||"virtual",A=C(Wr(w.currentTarget,w),P),D=x(Wr(w.currentTarget,w),P,!0);R=A&&D,_.isOverTarget=!1,O(w),$(w)}_.ignoreEmulatedMouseEvents=!1,R&&w.stopPropagation()}}},B=w=>{var R;if(_.isPressed&&_.target&&Zu(w,_.target)){var P;K0(Oe(w),w.key)&&w.preventDefault();let D=Oe(w),M=$t(_.target,Oe(w));x(Wr(_.target,w),"keyboard",M),M&&L(w,_.target),E(),w.key!=="Enter"&&Cp(_.target)&&$t(_.target,D)&&!w[j0]&&(w[j0]=!0,yn(_.target,w,!1)),_.isPressed=!1,(P=_.metaKeyEvents)===null||P===void 0||P.delete(w.key)}else if(w.key==="Meta"&&!((R=_.metaKeyEvents)===null||R===void 0)&&R.size){var A;let D=_.metaKeyEvents;_.metaKeyEvents=void 0;for(let M of D.values())(A=_.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",M))}};if(typeof PointerEvent<"u"){N.onPointerDown=P=>{if(P.button!==0||!$t(P.currentTarget,Oe(P.nativeEvent)))return;if(Yk(P.nativeEvent)){_.pointerType="virtual";return}_.pointerType=P.pointerType;let A=!0;if(!_.isPressed){_.isPressed=!0,_.isOverTarget=!0,_.activePointerId=P.pointerId,_.target=P.currentTarget,d||i7(_.target),A=S(P,_.pointerType);let D=Oe(P.nativeEvent);"releasePointerCapture"in D&&D.releasePointerCapture(P.pointerId),b(fe(P.currentTarget),"pointerup",w,!1),b(fe(P.currentTarget),"pointercancel",R,!1)}A&&P.stopPropagation()},N.onMouseDown=P=>{if($t(P.currentTarget,Oe(P.nativeEvent))&&P.button===0){if(u){let A=a7(P.target);A&&_.disposables.push(A)}P.stopPropagation()}},N.onPointerUp=P=>{!$t(P.currentTarget,Oe(P.nativeEvent))||_.pointerType==="virtual"||P.button===0&&!_.isPressed&&C(P,_.pointerType||P.pointerType)},N.onPointerEnter=P=>{P.pointerId===_.activePointerId&&_.target&&!_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!0,S(Wr(_.target,P),_.pointerType))},N.onPointerLeave=P=>{P.pointerId===_.activePointerId&&_.target&&_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!1,x(Wr(_.target,P),_.pointerType,!1),T(P))};let w=P=>{if(P.pointerId===_.activePointerId&&_.isPressed&&P.button===0&&_.target){if($t(_.target,Oe(P))&&_.pointerType!=null){let A=!1,D=setTimeout(()=>{_.isPressed&&_.target instanceof HTMLElement&&(A?$(P):(lt(_.target),_.target.click()))},80);b(P.currentTarget,"click",()=>A=!0,!0),_.disposables.push(()=>clearTimeout(D))}else $(P);_.isOverTarget=!1}},R=P=>{$(P)};N.onDragStart=P=>{$t(P.currentTarget,Oe(P.nativeEvent))&&$(P)}}return N},[b,l,u,E,d,$,T,x,S,C,O,L]);return p.useEffect(()=>{if(!f)return;let _=fe(f.current);if(!_||!_.head||_.getElementById(H0))return;let N=_.createElement("style");N.id=H0,N.textContent=`
651
+ `});let C=s.versions&&Object.keys(s.versions).length?s.versions:m.versions;await a.setRef(u,{id:u,url:b.url,...m,...C?{versions:C}:{},type:m.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:s={}}=e.getState();return s},setRef:async(s,{storyIndex:u,setStoriesData:c,...d},f=!1)=>{if(r)return;let g,m,y,{filters:v}=e.getState(),{storyMapper:b=RE}=t.getConfig(),E=a.getRefs()[s];(u||c)&&(g=c?U6(X6(c,E,{storyMapper:b})):u,y=Qi(u,{provider:t,docsOptions:n,filters:v,allStatuses:{}}),m=Qi(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),m&&(m=h0(m,E),m=g0(m,E?.storyUpdates)),y&&(y=h0(y,E),y=g0(y,E?.storyUpdates)),await a.updateRef(s,{...E,...d,index:m,filteredIndex:y,internal_index:g})},updateRef:async(s,u)=>{let{[s]:c,...d}=a.getRefs();d[s]={...c,...u};let f=Object.keys(l).reduce((g,m)=>(g[m]=d[m],g),{});await e.setState({refs:f})}},i=!r&&TE.REFS||{},l=i;return o&&new Promise(async s=>{for(let u of Object.values(i))await a.checkRef({...u,stories:{}});s(void 0)}),{api:a,state:{refs:l}}},gt=(e,t)=>{let{source:r,refId:n,type:o}=e,[a,i]=AE(r,n),l;(n||a==="external")&&(l=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(i));let s={source:r,sourceType:a,sourceLocation:i,refId:n,ref:l,type:o};switch(!0){case typeof n=="string":case a==="local":case a==="external":return s;default:return M6.warn(`Received a ${o} frame that was not configured as a ref`),null}},Z6=({store:e,fullAPI:t,provider:r})=>{let n={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(i){r.channel?.emit(N6,{globals:i,options:{target:"storybook-preview-iframe"}})}},o={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},a=({globals:i,storyGlobals:l,userGlobals:s})=>{let{globals:u,userGlobals:c,storyGlobals:d}=e.getState();Zt(i,u)||e.setState({globals:i}),Zt(s,c)||e.setState({userGlobals:s}),Zt(l,d)||e.setState({storyGlobals:l})};return r.channel?.on(L6,function({globals:i,storyGlobals:l,userGlobals:s}){let{ref:u}=gt(this,t);u?d0.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):a({globals:i,storyGlobals:l,userGlobals:s})}),r.channel?.on(k6,function({globals:i,globalTypes:l}){let{ref:s}=gt(this,t),u=e.getState()?.userGlobals;s?Object.keys(i).length>0&&d0.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:i,userGlobals:i,globalTypes:l}),u&&Object.keys(u).length!==0&&!Zt(i,u)&&n.updateGlobals(u)}),{api:n,state:o}},fp={};We(fp,{ActiveTabs:()=>PE,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>el,DEFAULT_NAV_SIZE:()=>na,DEFAULT_RIGHT_PANEL_WIDTH:()=>tl,focusableUIElements:()=>Vt,getDefaultLayoutState:()=>IE,init:()=>r8,isPagesViewMode:()=>t8});const{SET_CONFIG:Q6}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:e8}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:DE}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var{document:Xa}=e8,Lu=e=>typeof e=="function",PE={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},t8=e=>e!==void 0&&e!=="story"&&e!=="docs"&&e!=="review",na=300,el=300,tl=400,IE=()=>({ui:{enableShortcuts:!0},layout:{initialActive:PE.CANVAS,navSize:na,bottomPanelHeight:el,rightPanelWidth:tl,recentVisibleSizes:{navSize:na,bottomPanelHeight:el,rightPanelWidth:tl},panelPosition:"bottom",showNav:!0,showPanel:!0,showTabs:!0,showToolbar:!0},layoutCustomisations:{showPanel:void 0,showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:zb()}),Vt={addonPanel:"storybook-panel-region",storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root",showAddonPanel:"storybook-show-addon-panel",sidebarRegion:"storybook-sidebar-region",showSidebar:"storybook-show-sidebar"},wi=e=>e.layout.navSize>0,Ed=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},y0=e=>!wi(e)&&!Ed(e),Mn=e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),b0=(e,t,r)=>{let n=Object.keys(e),o=Wo(t,n);for(let u of Object.keys(o))DE(`Calling \`setConfig({ ${u}: ... })\` is deprecated. Please call \`setConfig({ layout: { ${u}: ... } })\` instead.`);let a=Mi(o,t.layout||{}),{showPanel:i,showNav:l}=a,s=Mi(e,Wo(a,n));return l===!1||r?(s.recentVisibleSizes=Mn(s),s.navSize=0):l===!0&&(s.navSize=s.recentVisibleSizes.navSize),i===!1?(s.recentVisibleSizes=Mn(s),s.bottomPanelHeight=0,s.rightPanelWidth=0):i===!0&&(s.bottomPanelHeight=s.recentVisibleSizes.bottomPanelHeight,s.rightPanelWidth=s.recentVisibleSizes.rightPanelWidth),s},v0=(e,t)=>{let r=Object.keys(e),n=Wo(t,r);for(let a of Object.keys(n))DE(`Calling \`setConfig({ ${a}: ... })\` is deprecated. Please call \`setConfig({ ui: { ${a}: ... } })\` instead.`);let o=r;return Mi(e,Wo(Mi(n,t.ui||{}),o))},r8=({store:e,provider:t,singleStory:r})=>{let n={toggleFullscreen(a){return e.setState(i=>{let l=y0(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Mn(i.layout)}}:{layout:{...i.layout,navSize:i.singleStory?0:i.layout.recentVisibleSizes.navSize,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(a){return e.setState(i=>{let l=Ed(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...i.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Mn(i.layout)}}},{persistence:"session"})},togglePanelPosition(a){return e.setState(i=>{let l=a||(i.layout.panelPosition==="right"?"bottom":"right");return{layout:{...i.layout,panelPosition:l,bottomPanelHeight:i.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:i.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(a){return e.setState(i=>{if(i.singleStory)return{layout:i.layout};let l=wi(i),s=typeof a=="boolean"?a:!l;return s===l?{layout:i.layout}:s?{layout:{...i.layout,navSize:i.layout.recentVisibleSizes.navSize}}:{layout:{...i.layout,navSize:0,recentVisibleSizes:Mn(i.layout)}}},{persistence:"session"})},toggleToolbar(a){return e.setState(i=>{let l=typeof a<"u"?a:!i.layout.showToolbar;return{layout:{...i.layout,showToolbar:l}}},{persistence:"session"})},setSizes({navSize:a,bottomPanelHeight:i,rightPanelWidth:l}){return e.setState(s=>{let u={...s.layout,navSize:a??s.layout.navSize,bottomPanelHeight:i??s.layout.bottomPanelHeight,rightPanelWidth:l??s.layout.rightPanelWidth};return{layout:{...u,recentVisibleSizes:Mn(u)}}},{persistence:"session"})},focusOnUIElement(a,i){let{forceFocus:l=!1,select:s=!1,poll:u=!0}=typeof i=="boolean"?{select:i}:i??{};if(!a)return!1;let c=()=>{let d=Xa.getElementById(a);return!d||(d.focus(),d!==Xa.activeElement&&l&&d.getAttribute("tabindex")===null&&(d.setAttribute("tabindex","-1"),d.focus()),d!==Xa.activeElement&&d.id!==Xa.activeElement?.id)?!1:(s&&d.select?.(),!0)};return c()?!0:u?new Promise(d=>{let f=Date.now(),g=500,m=setInterval(()=>{let y=Date.now()-f;if(c()){clearInterval(m),d(!0);return}y>=g&&(clearInterval(m),d(!1))},50)}):!1},getInitialOptions(){let a=t.getConfig(),i=IE(),{theme:l,selectedPanel:s,layoutCustomisations:u}=a;return{...i,layout:b0(i.layout,a,!!r),layoutCustomisations:{...i.layoutCustomisations,...u??{}},ui:v0(i.ui,a),selectedPanel:s||i.selectedPanel,theme:l||i.theme}},getIsFullscreen(){return y0(e.getState())},getIsPanelShown(){return Ed(e.getState())},getIsNavShown(){return wi(e.getState())},getNavAvailability(){let a=e.getState();return R1(a.path,a.customQueryParams)?"unavailable":wi(a)?"shown":"hidden"},getShowToolbarWithCustomisations(a){let i=e.getState();return Lu(i.layoutCustomisations.showToolbar)?i.layoutCustomisations.showToolbar(i,a)??a:a},getShowPanelWithCustomisations(a){let i=e.getState();return Lu(i.layoutCustomisations.showPanel)?i.layoutCustomisations.showPanel(i,a)??a:a},getNavSizeWithCustomisations(a){let i=e.getState();if(Lu(i.layoutCustomisations.showSidebar)){let l=i.layoutCustomisations.showSidebar(i,a!==0);if(a===0&&l===!0)return i.layout.recentVisibleSizes.navSize;if(a!==0&&l===!1)return 0}return a},setOptions:a=>{let{layout:i,ui:l,selectedPanel:s,theme:u}=e.getState();if(!a)return;let c=b0(i,a,!!r),d=v0(l,a),f={...u,...a.theme},g={};Xt(l,d)||(g.ui=d),Xt(i,c)||(g.layout=c),a.selectedPanel&&!Xt(s,a.selectedPanel)&&(g.selectedPanel=a.selectedPanel),Object.keys(g).length&&e.setState(g,{persistence:"permanent"}),Xt(u,f)||e.setState({theme:f})}},o=Wo(e.getState(),["layout","selectedPanel"]);return t.channel?.on(Q6,()=>{n.setOptions(dn(n.getInitialOptions(),o))}),{api:n,state:dn(n.getInitialOptions(),o)}},FE={};We(FE,{init:()=>n8});var n8=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=qh(r,a=>a.id===t.id);return n.forEach(a=>{a.onClear&&a.onClear({dismissed:!1,timeout:!1})}),{notifications:[...o,t]}})},clearNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=qh(r,a=>a.id===t);return n.forEach(a=>{a.onClear&&a.onClear({dismissed:!1,timeout:!1})}),{notifications:o}})}},state:{notifications:[]}}),LE={};We(LE,{init:()=>a8});const{OPEN_IN_EDITOR_REQUEST:o8,OPEN_IN_EDITOR_RESPONSE:ku}=__STORYBOOK_MODULE_CORE_EVENTS__;var a8=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{let{file:o,line:a,column:i}=r,l=s=>{s.file===o&&s.line===a&&s.column===i&&(e.channel?.off(ku,l),n(s))};e.channel?.on(ku,l),e.channel?.emit(o8,r)})}},state:{notifications:[]},init:async()=>{let{color:r}=await yr(async()=>{const{color:n}=await Promise.resolve().then(()=>GO);return{color:n}},void 0,import.meta.url);e.channel?.on(ku,n=>{n.error!==null&&t.addNotification({id:"open-in-editor-error",content:{headline:"Failed to open in editor",subHeadline:n.error||"Check the Storybook process on the command line for more details."},icon:h.createElement(PA,{color:r.negative}),duration:8e3})})}}),kE={};We(kE,{init:()=>i8});var i8=({provider:e})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{}}),NE={};We(NE,{init:()=>l8});var l8=({store:e,navigate:t,fullAPI:r})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:n}}=e.getState();n?r.selectStory(n):r.selectFirstStory()},changeSettingsTab:n=>{t(`/settings/${n}`)},isSettingsScreenActive:()=>{let{path:n}=r.getUrlState();return!!(n||"").match(/^\/settings/)},retrieveSelection(){let{settings:n}=e.getState();return n.lastTrackedStoryId},storeSelection:async()=>{let{storyId:n,settings:o}=e.getState();await e.setState({settings:{...o,lastTrackedStoryId:n}})}}}),ME={};We(ME,{controlOrMetaKey:()=>In,defaultShortcuts:()=>Fn,init:()=>x8,isMacLike:()=>jE,keys:()=>Sd});var s8=yt(w6(),1);const{FORCE_REMOUNT:u8,PREVIEW_KEYDOWN:c8,STORIES_COLLAPSE_ALL:d8,STORIES_EXPAND_ALL:f8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:BE}=__STORYBOOK_MODULE_GLOBAL__,{global:p8}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:Nu}=p8,h8=()=>Nu&&Nu.platform?!!Nu.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,g8=()=>h8()?"⌥":"alt",m8=e=>{if(["Meta","Alt","Control","Shift","Tab"].includes(e.key))return null;let t=[];e.altKey&&t.push("alt"),e.ctrlKey&&t.push("control"),e.metaKey&&t.push("meta"),e.shiftKey&&t.push("shift");let r=e.code?.toUpperCase(),n={MINUS:"-",EQUAL:"=",BRACKETLEFT:"[",BRACKETRIGHT:"]",BACKSLASH:"\\",SEMICOLON:";",QUOTE:"'",BACKQUOTE:"`",COMMA:",",PERIOD:".",SLASH:"/"},o=r?r.startsWith("KEY")&&r.length===4?r.replace("KEY",""):r.startsWith("DIGIT")?r.replace("DIGIT",""):n[r]:void 0;if(e.key&&e.key.length===1&&e.key!==" "){let a=e.key.toUpperCase(),i=o;i&&i.length===1&&i!==a?t.push([a,i]):t.push(a)}else e.key==="Dead"&&o&&t.push(o);return e.key===" "&&t.push("space"),e.key==="Escape"&&t.push("escape"),e.key==="ArrowRight"&&t.push("ArrowRight"),e.key==="ArrowDown"&&t.push("ArrowDown"),e.key==="ArrowUp"&&t.push("ArrowUp"),e.key==="ArrowLeft"&&t.push("ArrowLeft"),t.length>0?t:null},y8=(e,t)=>!e||!t||(e.join("").startsWith("shift/")&&e.shift(),e.length!==t.length)?!1:!e.find((r,n)=>Array.isArray(r)?!r.includes(t[n]):r!==t[n]),b8=e=>e==="alt"?g8():e==="control"?"⌃":e==="meta"?"⌘":e==="shift"?"⇧​":e==="Enter"||e==="Backspace"||e==="Esc"||e==="escape"?"":e===" "?"SPACE":e==="ArrowUp"?"↑":e==="ArrowDown"?"↓":e==="ArrowLeft"?"←":e==="ArrowRight"?"→":e?.toUpperCase(),v8=e=>e.map(b8).join(" "),E8=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:Mu,document:Pr}=BE;function E0(e){return Pr.activeElement&&e?.contains(Pr.activeElement)}var jE=()=>Mu&&Mu.platform?!!Mu.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,In=()=>jE()?"meta":"control";function Sd(e){return Object.keys(e)}var Fn=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[In(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[In(),"shift",","],aboutPage:[In(),","],escape:["escape"],collapseAll:[In(),"shift","ArrowUp"],expandAll:[In(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],openInIsolation:["alt","shift","I"],copyStoryLink:["alt","shift","L"],goToPreviousLandmark:["shift","F6"],goToNextLandmark:["F6"]}),Bu={};function S8(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var x8=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...Fn,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return Bu},getAddonsShortcutLabels(){let i={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{label:s}])=>{i[l]=s}),i},getAddonsShortcutDefaults(){let i={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{defaultShortcut:s}])=>{i[l]=s}),i},async setShortcuts(i){let{shortcuts:l}=await e.setState(s=>({shortcuts:typeof i=="function"?i(s.shortcuts):i}),{persistence:"permanent"});return l},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(i,l){return await n.setShortcuts(s=>({...s,[i]:l})),l},async setAddonShortcut(i,l){return await n.setShortcuts(s=>({...s,[`${i}-${l.actionName}`]:l.defaultShortcut})),Bu[`${i}-${l.actionName}`]=l,l},async restoreDefaultShortcut(i){let l=n.getDefaultShortcuts()[i];return n.setShortcut(i,l)},handleKeydownEvent(i){let l=m8(i),s=n.getShortcutKeys(),u=Sd(s).find(c=>y8(l,s[c]));u&&n.handleShortcutFeature(u,i)},handleShortcutFeature(i,l){let s=e.getState(),{ui:{enableShortcuts:u},storyId:c,refId:d,viewMode:f}=s;if(!u)return;let g=t.getNavAvailability()==="unavailable",m=["focusNav","search","toggleNav"].includes(i);if(!(g&&m))switch(l?.preventDefault&&l.preventDefault(),i){case"escape":{t.getIsFullscreen()?t.toggleFullscreen(!1):t.getIsNavShown()&&t.toggleNav(!0);break}case"goToNextLandmark":case"goToPreviousLandmark":break;case"focusNav":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),t.focusOnUIElement(Vt.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(Vt.storySearchField,!0)},0);break}case"focusIframe":{let y=Pr.getElementById("storybook-preview-iframe");if(y)try{y.contentWindow.focus()}catch{}break}case"focusPanel":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(Vt.storyPanelRoot);break}case"nextStory":{t.jumpToStory(1);break}case"prevStory":{t.jumpToStory(-1);break}case"nextComponent":{t.jumpToComponent(1);break}case"prevComponent":{t.jumpToComponent(-1);break}case"fullScreen":{t.toggleFullscreen();break}case"togglePanel":{let y=t.getIsPanelShown(),v=Pr.getElementById(Vt.addonPanel);t.togglePanel(),y&&E0(v)&&t.focusOnUIElement(Vt.showAddonPanel,{poll:!0}).then(b=>{b===!1&&Pr.body.focus()}),y||t.focusOnUIElement(Vt.addonPanel,{forceFocus:!0,poll:!0});break}case"toggleNav":{let y=t.getIsNavShown(),v=Pr.getElementById(Vt.sidebarRegion);t.toggleNav(),y&&E0(v)&&t.focusOnUIElement(Vt.showSidebar,{poll:!0}).then(b=>{b===!1&&Pr.body.focus()}),y||t.focusOnUIElement(Vt.sidebarRegion,{forceFocus:!0,poll:!0});break}case"toolbar":{t.toggleToolbar();break}case"panelPosition":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.togglePanelPosition();break}case"aboutPage":{t.navigate("/settings/about");break}case"shortcutsPage":{t.navigate("/settings/shortcuts");break}case"collapseAll":{t.emit(d8);break}case"expandAll":{t.emit(f8);break}case"remount":{t.emit(u8,{storyId:c});break}case"openInEditor":{BE.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"openInIsolation":{if(c&&f==="story"){let{previewHref:y}=t.getStoryHrefs(c,{refId:d});window.open(y,"_blank","noopener,noreferrer")}break}case"copyStoryLink":{if(c){let{managerHref:y}=t.getStoryHrefs(c,{refId:d});(0,s8.default)(y)}break}default:Bu[i].action();break}}},{shortcuts:o=Fn}=e.getState(),a={shortcuts:Sd(Fn).reduce((i,l)=>({...i,[l]:o[l]||Fn[l]}),Fn)};return{api:n,state:a,init:()=>{Pr.addEventListener("keydown",i=>{S8(i)||n.handleKeydownEvent(i)}),r.channel?.on(c8,i=>{n.handleKeydownEvent(i.event)})}}},HE={};We(HE,{init:()=>Q8});const{logger:$8}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:w8,CURRENT_STORY_WAS_SET:C8,DOCS_PREPARED:_8,PRELOAD_ENTRIES:T8,RESET_STORY_ARGS:O8,SELECT_STORY:A8,SET_CONFIG:R8,SET_CURRENT_STORY:D8,SET_FILTER:P8,SET_INDEX:I8,SET_STORIES:F8,SIDEBAR_FILTER_CHANGED:L8,STORY_ARGS_UPDATED:k8,STORY_CHANGED:N8,STORY_INDEX_INVALIDATED:M8,STORY_MISSING:B8,STORY_PREPARED:j8,STORY_SPECIFIED:H8,UPDATE_STORY_ARGS:U8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:UE}=__STORYBOOK_MODULE_GLOBAL__;var KE=(e,t={})=>{let r=Object.entries(t).filter(([n,o])=>n!=="path"&&o!==null&&o!==void 0).sort(([n],[o])=>n<o?-1:1).map(([n,o])=>`${n}=${o}`);return[e,...r].join("&")},zE=(e,t)=>{let r=p.useRef(t?t(e.getState()):e.getState()),n=p.useCallback(a=>e.onStateChange((i,l)=>{if(!t){r.current=i,a();return}let s=t(i),u=t(l);!Xt(s,u)&&(r.current=s,a())}),[e,t]),o=p.useCallback(()=>{let a=e.getState(),i=t?t(a):a;return Xt(i,r.current)||(r.current=i),r.current},[e,t]);return[p.useSyncExternalStore(n,o),e.setState]},K8=WA({universalStatusStore:$f.create({...zA,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:zE,environment:"manager"}),{fullStatusStore:Ci}=K8,GE=(e,t)=>{if(!e)return{included:[],excluded:[]};let r=[],n=[];return e.split(";").forEach(o=>{if(!o)return;let a=o.startsWith("!"),i=t(a?o.slice(1):o);i!=null&&(a?n.push(i):r.push(i))}),{included:r,excluded:n}},z8=e=>GE(e,KA),G8=(e,t)=>{if(!e.length&&!t.length)return;let r=e.map(o=>Lh(o)).sort(),n=t.map(o=>`!${Lh(o)}`).sort();return[...r,...n].join(";")},ju=(e,t)=>r=>{if(!e.length&&!t.length)return!0;let n=(Ci.getAll()??{})[r.id],o=n?Object.values(n).map(l=>l.value):[],a=!e.length||e.some(l=>o.includes(l)),i=!t.length||t.every(l=>!o.includes(l));return a&&i},W8=yt(vn(),1),WE={$docs:"_docs",$play:"_play",$test:"_test"},V8=e=>GE(e,t=>WE[t]??t),q8=(e,t)=>{if(!e.length&&!t.length)return"";let r=Object.fromEntries(Object.entries(WE).map(([a,i])=>[i,a])),n=e.map(a=>r[a]??a).sort(),o=t.map(a=>`!${r[a]??a}`).sort();return[...n,...o].join(";")},Y8=(0,W8.default)(1)(e=>{let t=Object.entries(e);return{included:t.filter(([,r])=>r.defaultFilterSelection==="include").map(([r])=>r),excluded:t.filter(([,r])=>r.defaultFilterSelection==="exclude").map(([r])=>r)}}),S0=e=>{let t=Object.entries(e).reduce((r,n)=>{let[o,a]=n;return a.excludeFromSidebar&&(r[o]=!0),r},{});return r=>{let n=r.tags??[],o=r.type==="docs"&&!n.includes(Lr.ATTACHED_MDX)&&!n.includes(Lr.UNATTACHED_MDX);return(n.includes(Lr.DEV)||o)&&n.filter(a=>t[a]).length===0}},Hu=(e,t)=>{let r=n=>Object.values(n.reduce((o,a)=>(Object.hasOwn(Xi,a)?o["built-in"].push(Xi[a]):o.user.push(S2(a)),o),{"built-in":[],user:[]})).filter(o=>o.length>0);return n=>{let o=r(e),a=r(t);return(!o.length||o.every(i=>i.some(l=>l(n,!1))))&&(!a.length||a.every(i=>i.every(l=>l(n,!0))))}},{fetch:X8}=UE,J8="./index.json",Uu="tags-filter",x0="static-filter",Ja="status-filter",Rn=new Set(Object.keys(Xi)),Z8=["enableShortcuts","theme","showRoots"];function Ku(e){if(!e||typeof e=="string")return e;let t={...e};return Z8.forEach(r=>{r in t&&delete t[r]}),t}var $0={tag:{included:"includedTagFilters",excluded:"excludedTagFilters"},status:{included:"includedStatusFilters",excluded:"excludedStatusFilters"}},Q8=({fullAPI:e,store:t,navigate:r,provider:n,state:{location:o}={},storyId:a,viewMode:i,docsOptions:l={}})=>{let s=(w,R)=>{let{customQueryParams:P}=t.getState();r(KE(w,P??{}),R)},u=w=>t.setState(w,{persistence:"url",serialize:R=>{let P=q8(R.includedTagFilters,R.excludedTagFilters),A=G8(R.includedStatusFilters,R.excludedStatusFilters);return{tags:P??null,statuses:A??null}}}),c=!1,d=async(w,R,P)=>{let{included:A,excluded:D}=$0[w],M=t.getState(),k=new Set(M[A]),K=new Set(M[D]);for(let j of R){let[z,U]=P?[K,k]:[k,K];U.delete(j),z.add(j)}await u({[A]:Array.from(k),[D]:Array.from(K)})},f=async(w,R)=>{let{included:P,excluded:A}=$0[w],D=t.getState(),M=new Set(R);await u({[P]:D[P].filter(k=>!M.has(k)),[A]:D[A].filter(k=>!M.has(k))})},g=(w,R)=>{let P=t.getState(),A=(P.includedTagFilters??[]).filter(U=>Rn.has(U)),D=(P.excludedTagFilters??[]).filter(U=>Rn.has(U)),M=!!globalThis?.FEATURES?.changeDetection,k=M?P.includedStatusFilters??[]:[],K=M?P.excludedStatusFilters??[]:[],j={},z=P.internal_index?Object.values(P.internal_index.entries):[];for(let U of new Set([...A,...D])){let H=Xi[U];j[U]=z.filter(G=>H(G)).length}if(k.length>0||K.length>0){let U=GA(Ci.getAll());for(let H of new Set([...k,...K]))U[H]!==void 0&&(j[H]=U[H])}n.channel?.emit(L8,{trigger:w,changed:R,activeTagFilters:{included:A,excluded:D},activeStatusFilters:{included:k,excluded:K},storyCounts:j})},m={storyId:Va,getData:(w,R)=>{let P=m.resolveStory(w,R);if(P?.type==="story"||P?.type==="docs")return P},isPrepared:(w,R)=>{let P=m.getData(w,R);return P?P.type==="story"?P.prepared:!0:!1},resolveStory:(w,R)=>{let{refs:P,index:A}=t.getState();if(!(R&&!P[R]))return R?P?.[R]?.index?.[w]??void 0:A?A[w]:void 0},getCurrentStoryData:()=>{let{storyId:w,refId:R}=t.getState();return m.getData(w,R)},getIndex:()=>{let{internal_index:w}=t.getState();return w},getParameters:(w,R)=>{let{storyId:P,refId:A}=typeof w=="string"?{storyId:w,refId:void 0}:w,D=m.getData(P,A);if(["story","docs"].includes(D?.type)){let{parameters:M}=D;if(M)return R?M[R]:M}return null},getCurrentParameter:w=>{let{storyId:R,refId:P}=t.getState();return m.getParameters({storyId:R,refId:P},w)||void 0},jumpToComponent:w=>{let{filteredIndex:R,storyId:P,refs:A,refId:D}=t.getState();if(!m.getData(P,D))return;let M=D?A[D].filteredIndex||{}:R;if(!M)return;let k=m.findSiblingStoryId(P,M,w,!0);k&&m.selectStory(k,void 0,{ref:D})},jumpToStory:w=>{let{filteredIndex:R,storyId:P,refs:A,refId:D}=t.getState(),M=m.getData(P,D);if(!M)return;let k=M.refId?A[M.refId].filteredIndex:R;if(!k)return;let K=m.findSiblingStoryId(P,k,w,!1);K&&m.selectStory(K,void 0,{ref:D})},selectFirstStory:()=>{let w=t.getState(),{filteredIndex:R}=w;if(R){let D=Object.keys(R).find(M=>R[M].type==="story");D&&m.selectStory(D);return}let{index:P}=w;if(!P)return;let A=Object.keys(P).find(D=>P[D].type==="story");if(A){m.selectStory(A);return}s("/")},selectStory:(w=void 0,R=void 0,P={})=>{let{ref:A}=P,{storyId:D,index:M,filteredIndex:k,refs:K,settings:j}=t.getState(),z=W=>W?.type==="docs"||W?.type==="story"?(t.setState({settings:{...j,lastTrackedStoryId:W.id}}),s(`/${W.type}/${W.refId?`${W.refId}_${W.id}`:W.id}`),!0):!1,U=D?.split("--",2)[0],H=A?K[A].index:M,G=A?K[A].filteredIndex:k;if(!(!H||!G))if(R)if(!w)z(H[Va(U,R)]);else{let W=A?`${A}_${Va(w,R)}`:Va(w,R);if(H[W])z(H[W]);else{let q=H[Jn(w)];if(q?.type==="component"){let ge=q.children.find(Ne=>H[Ne].name===R);z(ge?H[ge]:void 0)}}}else{let W=w?H[w]||H[Jn(w)]:H[U];if(!W)throw new Error(`Unknown id or title: '${w}'`);z(W)||z(m.findLeafEntry(G,W.id))}},findLeafEntry(w,R){let P=w[R];if(!P)return;if(P.type==="docs"||P.type==="story")return P;let A=P.children.find(D=>w[D]);return A?m.findLeafEntry(w,A):void 0},findLeafStoryId(w,R){return m.findLeafEntry(w,R)?.id},findAllLeafStoryIds(w){let{index:R}=t.getState();if(!R)return[];let P=(A,D=[])=>{let M=R[A];return M&&(M.type==="story"&&D.push(M.id),"children"in M&&M.children?.forEach(k=>P(k,D))),D};return P(w,[])},findSiblingStoryId(w,R,P,A){if(A){let k=W6(R),K=k.findIndex(j=>j.includes(w));return K===k.length-1&&P>0||K===0&&P<0?void 0:k[K+P]?k[K+P][0]:void 0}let D=V6(R),M=D.indexOf(w);if(!(M===D.length-1&&P>0)&&!(M===0&&P<0))return D[M+P]},updateStoryArgs:(w,R)=>{let{id:P,refId:A}=w;n.channel?.emit(U8,{storyId:P,updatedArgs:R,options:{target:A}})},resetStoryArgs:(w,R)=>{let{id:P,refId:A}=w;n.channel?.emit(O8,{storyId:P,argNames:R,options:{target:A}})},fetchIndex:async()=>{try{let w=await X8(J8);if(w.status!==200)throw new Error(await w.text());let R=await w.json();if(R.v<3){$8.warn(`Skipping story index with version v${R.v}, awaiting SET_STORIES.`);return}await m.setIndex(R)}catch(w){await t.setState({indexError:w})}},setIndex:async w=>{let{filteredIndex:R,index:P,filters:A}=t.getState(),D=Ci.getAll(),M=Qi(w,{provider:n,docsOptions:l,filters:A,allStatuses:D,statusFilterKey:Ja}),k=Qi(w,{provider:n,docsOptions:l,filters:{},allStatuses:D});await t.setState({internal_index:w,filteredIndex:f0(M,R),index:f0(k,P),indexError:void 0})},updateStory:async(w,R,P)=>{if(P){let{id:A,index:D,filteredIndex:M}=P,k={...P.storyUpdates,[w]:{...P.storyUpdates?.[w],...R}};D&&D[w]&&(D[w]={...D[w],...R}),M&&M[w]&&(M[w]={...M[w],...R}),await e.updateRef(A,{index:D,filteredIndex:M,storyUpdates:k})}else{let{index:A,filteredIndex:D}=t.getState();A&&A[w]&&(A[w]={...A[w],...R}),D&&D[w]&&(D[w]={...D[w],...R}),(A||D)&&await t.setState({index:A,filteredIndex:D})}},updateDocs:async(w,R,P)=>{if(P){let{id:A,index:D,filteredIndex:M}=P,k={...P.storyUpdates,[w]:{...P.storyUpdates?.[w],...R}};D&&D[w]&&(D[w]={...D[w],...R}),M&&M[w]&&(M[w]={...M[w],...R}),await e.updateRef(A,{index:D,filteredIndex:M,storyUpdates:k})}else{let{index:A,filteredIndex:D}=t.getState();A&&(A[w]={...A[w],...R}),D&&(D[w]={...D[w],...R}),(A||D)&&await t.setState({index:A,filteredIndex:D})}},setPreviewInitialized:async w=>{w?e.updateRef(w.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(w,R)=>{await t.setState(D=>({filters:{...D.filters,[w]:R}}));let{internal_index:P}=t.getState();if(!P)return;await m.setIndex(P);let A=await e.getRefs();for(let[D,{internal_index:M,...k}]of Object.entries(A))await e.setRef(D,{...k,storyIndex:M},!0);n.channel?.emit(P8,{id:w})},resetTagFilters:async()=>{await u(w=>({includedTagFilters:w.defaultIncludedTagFilters,excludedTagFilters:w.defaultExcludedTagFilters})),await y()},setAllTagFilters:async(w,R)=>{await u({includedTagFilters:w,excludedTagFilters:R}),await y()},addTagFilters:async(w,R)=>{await d("tag",w,R),await y(),w.length===1&&Rn.has(w[0])&&g("interaction",{filterType:"tag",filterId:w[0],action:R?"exclude":"include"})},removeTagFilters:async w=>{await f("tag",w),await y(),w.length===1&&Rn.has(w[0])&&g("interaction",{filterType:"tag",filterId:w[0],action:"remove"})},resetStatusFilters:async()=>{await u({includedStatusFilters:[],excludedStatusFilters:[]}),await v()},setAllStatusFilters:async(w,R)=>{let P=t.getState(),A=new Set(P.includedStatusFilters??[]),D=new Set(P.excludedStatusFilters??[]),M=new Set(w),k=new Set(R);await u({includedStatusFilters:w,excludedStatusFilters:R}),await v();let K=new Set([...A,...D,...M,...k]);for(let j of K){let z=A.has(j),U=D.has(j),H=M.has(j),G=k.has(j);if(z===H&&U===G)continue;let W;H?W="include":G?W="exclude":W="remove",g("interaction",{filterType:"status",filterId:j,action:W})}},addStatusFilters:async(w,R)=>{await d("status",w,R),await v(),w.length===1&&g("interaction",{filterType:"status",filterId:w[0],action:R?"exclude":"include"})},removeStatusFilters:async w=>{await f("status",w),await v(),w.length===1&&g("interaction",{filterType:"status",filterId:w[0],action:"remove"})}},y=()=>{let{includedTagFilters:w,excludedTagFilters:R}=t.getState();return m.experimental_setFilter(Uu,Hu(w,R))},v=()=>{let{includedStatusFilters:w,excludedStatusFilters:R}=t.getState();return m.experimental_setFilter(Ja,ju(w??[],R??[]))};n.channel?.on(H8,function({storyId:w,viewMode:R}){let{sourceType:P}=gt(this,e);if(P==="local"){let A=t.getState(),D=!R1(A.path,A.customQueryParams)&&(A.path==="/"||A.viewMode==="story"||A.viewMode==="docs"),M=A.viewMode&&A.storyId,k=A.viewMode!==R||A.storyId!==w,{type:K}=A.index?.[A.storyId]||{},j=!(K==="root"||K==="component"||K==="group");if(D){let{filteredIndex:z}=A;if(z&&!M&&z[w]?.type!=="story"){let U=z?Object.keys(z).find(H=>{let G=z[H];return G.type==="story"||G.type==="docs"}):void 0;U&&s(`/${R}/${U}`);return}M&&k&&j?n.channel?.emit(D8,{storyId:A.storyId,viewMode:A.viewMode}):k&&s(`/${R}/${w}`)}}}),n.channel?.on(C8,function(){let{ref:w}=gt(this,e);m.setPreviewInitialized(w)}),n.channel?.on(N8,function(){let{sourceType:w}=gt(this,e);if(w==="local"){let R=m.getCurrentParameter("options");R&&e.setOptions(Ku(R))}}),n.channel?.on(j8,function({id:w,...R}){let{ref:P,sourceType:A}=gt(this,e);if(m.updateStory(w,{...R,prepared:!0},P),!P&&!t.getState().hasCalledSetOptions){let{options:D}=R.parameters;e.setOptions(Ku(D)),t.setState({hasCalledSetOptions:!0})}if(A==="local"){let{storyId:D,index:M,refId:k}=t.getState();if(!M)return;let K=Array.from(new Set([m.findSiblingStoryId(D,M,1,!0),m.findSiblingStoryId(D,M,-1,!0)])).filter(Boolean);n.channel?.emit(T8,{ids:K,options:{target:k}})}}),n.channel?.on(_8,function({id:w,...R}){let{ref:P}=gt(this,e);m.updateStory(w,{...R,prepared:!0},P)}),n.channel?.on(I8,function(w){let{ref:R}=gt(this,e);if(R)e.setRef(R.id,{...R,storyIndex:w},!0);else{m.setIndex(w);let P=m.getCurrentParameter("options");e.setOptions(Ku(P))}}),n.channel?.on(F8,function(w){let{ref:R}=gt(this,e),P=w.v?H6(w):w.stories;if(R)e.setRef(R.id,{...R,setStoriesData:P},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),n.channel?.on(A8,function({kind:w,title:R=w,story:P,name:A=P,storyId:D,...M}){let{ref:k}=gt(this,e);k?e.selectStory(D||R,A,{...M,ref:k.id}):e.selectStory(D||R,A,M)}),n.channel?.on(k8,function({storyId:w,args:R}){let{ref:P}=gt(this,e);m.updateStory(w,{args:R},P)}),n.channel?.on(w8,function(w){let{ref:R}=gt(this,e);m.setPreviewInitialized(R)}),n.channel?.on(B8,function(w){let{ref:R}=gt(this,e);m.setPreviewInitialized(R)}),n.channel?.on(R8,()=>{let w=n.getConfig()?.sidebar?.filters||{},{includedTagFilters:R,excludedTagFilters:P,includedStatusFilters:A,excludedStatusFilters:D,tagPresets:M}=t.getState();t.setState(({filters:k})=>({filters:{...k,...w,[x0]:S0(M),[Uu]:Hu(R,P),[Ja]:ju(A,D)}}))}),Ci.onAllStatusChange(async()=>{v();let{internal_index:w}=t.getState();if(!w)return;await m.setIndex(w);let R=await e.getRefs();Object.entries(R).forEach(([P,{internal_index:A,...D}])=>{e.setRef(P,{...D,storyIndex:A},!0)})});let b=n.getConfig()?.sidebar?.filters||{},E=UE.TAGS_OPTIONS||{},S=Y8(E),{tags:x,statuses:C}=ep(o??{search:""}),$=V8(x),T=x!==void 0,O=T?$.included:S.included,L=T?$.excluded:S.excluded,I=z8(C),_=I.included,N=I.excluded,B={...b,[x0]:S0(E),[Uu]:Hu(O,L),[Ja]:ju(_,N)};return{api:m,state:{storyId:a,viewMode:i,hasCalledSetOptions:!1,previewInitialized:!1,filters:B,tagPresets:E,defaultIncludedTagFilters:S.included,defaultExcludedTagFilters:S.excluded,includedTagFilters:O,excludedTagFilters:L,includedStatusFilters:_,excludedStatusFilters:N},init:async()=>{if(n.channel?.on(M8,()=>m.fetchIndex()),await m.fetchIndex(),c)return;c=!0;let w=O.some(P=>Rn.has(P))||L.some(P=>Rn.has(P)),R=!!globalThis?.FEATURES?.changeDetection&&(_.length>0||N.length>0);(w||R)&&g("url")}}},VE={};We(VE,{getCustomQueryParams:()=>pp,init:()=>lL});const{GLOBALS_UPDATED:eL,NAVIGATE_URL:tL,SET_CURRENT_STORY:rL,STORY_ARGS_UPDATED:nL,UPDATE_QUERY_PARAMS:oL}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Dn}=__STORYBOOK_MODULE_GLOBAL__;var Gr=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},w0=e=>Object.fromEntries(e.split(";").map(t=>t.split(":")).map(([t,r])=>[t,encodeURIComponent(r)]).filter(([t,r])=>t&&r)),C0=(e,t)=>{let r=w0(e),n=w0(t);return Object.entries({...r,...n}).map(([o,a])=>`${o}:${a}`).join(";")},aL=["full","panel","nav","shortcuts","addonPanel","tabs","path"],pp=e=>Mc(ep(e),aL),zu,iL=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:o})=>{let{full:a,panel:i,nav:l,shortcuts:s,addonPanel:u,tabs:c}=ep(e),d,f,g;Gr(a)===!0?(d=0,f=0,g=0):Gr(a)===!1&&(d=na,f=el,g=tl),o||(Gr(l)===!0&&(d=na),Gr(l)===!1&&(d=0)),Gr(i)===!1&&(f=0,g=0);let m={navSize:d,bottomPanelHeight:f,rightPanelWidth:g,panelPosition:["right","bottom"].includes(i)?i:void 0,showTabs:Gr(c)},y={enableShortcuts:Gr(s)},v=u||void 0,b=n,E=pp(e),S=Zt(zu,E)?zu:E;return zu=S,{viewMode:r,layout:m,ui:y,selectedPanel:v,location:e,path:t,customQueryParams:S,storyId:b}},lL=e=>{let{store:t,navigate:r,provider:n,fullAPI:o}=e,a=(u,c={},d={})=>r(KE(u,c),d),i={getStoryHrefs(u,c={}){let{id:d,refId:f}=o.getCurrentStoryData()??{},g=u===d&&c.refId===f,{customQueryParams:m,location:y,refs:v}=t.getState(),{base:b,inheritArgs:E=g,inheritGlobals:S=!0,queryParams:x={},refId:C,viewMode:$="story",embed:T=!1,freeze:O=!1}=c;if(C&&!v[C])throw new Error(`Invalid refId: ${C}`);let L=y.pathname||"/",I=Dn.window.location.origin+L,_=Dn.STORYBOOK_NETWORK_ADDRESS??I,N=b==="origin"?I:b==="network"?_:L,B=C?v[C].url+"/iframe.html":Dn.PREVIEW_URL||`${N.replace(/\/[^/]*\.html$/,"").replace(/\/?$/,"/")}iframe.html`,w=C?`&refId=${encodeURIComponent(C)}`:"",{args:R="",globals:P="",...A}=x,D=E?C0(m?.args??"",R):R,M=S?C0(m?.globals??"",P):P,k=Mc(A,["embed","freeze"]),K=Mc(A,["id","viewMode","embed","freeze"]),j=ed(k,{nesting:!0,nestingSyntax:"js"}),z=ed(K,{nesting:!0,nestingSyntax:"js"});D=D&&`&args=${D}`,M=M&&`&globals=${M}`,j=j&&`&${j}`,z=z&&`&${z}`;let U=T?"&embed=true":"",H=O?"&freeze=finished":"";return{managerHref:`${N}?path=/${$}/${C?`${C}_`:""}${u}${D}${M}${j}`,previewHref:`${B}?id=${u}&viewMode=${$}${w}${D}${C?"":M}${z}${U}${H}`}},getQueryParam(u){let{customQueryParams:c}=t.getState();return c?c[u]:void 0},getUrlState(){let{location:u,path:c,customQueryParams:d,storyId:f,url:g,viewMode:m}=t.getState();return{path:c,hash:u?.hash??"",queryParams:d,storyId:f,url:g,viewMode:m}},setQueryParams(u){let{customQueryParams:c}=t.getState(),d={...c};for(let[f,g]of Object.entries(u))g==null?delete d[f]:d[f]=g;Zt(c,d)||(t.setState({customQueryParams:d}),n.channel?.emit(oL,d))},applyQueryParams(u,c){let{path:d,hash:f="",queryParams:g}=i.getUrlState();a(`${d}${f}`,{...g,...u},c),i.setQueryParams(u)},navigateUrl(u,c){r(u,{plain:!0,...c})}},l=()=>{let{path:u,hash:c="",queryParams:d,viewMode:f}=i.getUrlState();if(f!=="story")return;let g=o.getCurrentStoryData();if(g?.type!=="story")return;let{args:m,initialArgs:y}=g,v=pm(y,m);a(`${u}${c}`,{...d,args:v||null},{replace:!0}),i.setQueryParams({args:v||null})};n.channel?.on(rL,()=>l());let s;return n.channel?.on(nL,()=>{"requestIdleCallback"in Dn.window?(s&&Dn.window.cancelIdleCallback(s),s=Dn.window.requestIdleCallback(l,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(l,100))}),n.channel?.on(eL,({userGlobals:u,initialGlobals:c})=>{let{path:d,hash:f="",queryParams:g}=i.getUrlState(),m=pm(c,dn(c,u));a(`${d}${f}`,{...g,globals:m||null},{replace:!0}),i.setQueryParams({globals:m||null})}),n.channel?.on(tL,(u,c)=>{i.navigateUrl(u,c)}),{api:i,state:iL(e),init:()=>{t.registerPersistenceHandler("url",(u,c)=>{if(c){let d=c(t.getState());i.applyQueryParams(d,{replace:!0})}})}}},qE={};We(qE,{init:()=>fL});var sL=yt(vn(),1);const{global:xd}=__STORYBOOK_MODULE_GLOBAL__;var uL="10.5.0",{VERSIONCHECK:cL}=xd,_0=(0,sL.default)(1)(()=>{try{return{...JSON.parse(cL).data||{}}}catch{return{}}}),dL=e=>e.includes("vue")?"vue":e,fL=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:uL},..._0()},dismissedVersionNotification:t},n={getCurrentVersion:()=>{let{versions:{current:o}}=e.getState();return o},getLatestVersion:()=>{let{versions:{latest:o,next:a,current:i}}=e.getState();return i&&ht.prerelease(i.version)&&a?o&&ht.gt(o.version,a.version)?o:a:o},getDocsUrl:({asset:o,subpath:a=o,versioned:i,renderer:l,ref:s="ui"})=>{let{versions:u}=e.getState(),c=u.latest?.version,d=u.current?.version,f=d?.startsWith("0.0.0")&&c||d,g=`https://storybook.js.org/${o?"docs-assets":"docs"}/`;if(o&&f)g+=`${ht.major(f)}.${ht.minor(f)}/`;else if(i&&f&&c){let v=ht.diff(c,f);v==="patch"||v===null||(g+=`${ht.major(f)}.${ht.minor(f)}/`)}let[m,y]=a?.split("#")||[];if(m&&(g+=o?m:`${m}/`),l&&typeof xd.STORYBOOK_RENDERER<"u"){let v=xd.STORYBOOK_RENDERER;v&&(g+=`?renderer=${dL(v)}`)}return s&&(g+=`${g.includes("?")?"&":"?"}ref=${s}`),y&&(g+=`#${y}`),g},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),a=n.getCurrentVersion();if(o){if(!o.version||!a.version)return!0;let i=ht.prerelease(a.version)?`${ht.major(a.version)}.${ht.minor(a.version)}.${ht.patch(a.version)}`:a.version,l=ht.diff(i,o.version);return ht.gt(o.version,i)&&l!=="patch"&&!l.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=e.getState(),{latest:a,next:i}=_0();await e.setState({versions:{...o,latest:a,next:i}})},state:r,api:n}},YE={};We(YE,{init:()=>vL});const{REQUEST_WHATS_NEW_DATA:pL,RESULT_WHATS_NEW_DATA:hL,SET_WHATS_NEW_CACHE:gL,TOGGLE_WHATS_NEW_NOTIFICATIONS:mL}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:yL}=__STORYBOOK_MODULE_GLOBAL__;var T0="whats-new",bL=({color:e="currentColor",size:t=14})=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e})),vL=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function o(s){t.setState({whatsNewData:s}),n.whatsNewData=s}let a={isWhatsNewUnread(){return n.whatsNewData?.status==="SUCCESS"&&!n.whatsNewData.postIsRead},whatsNewHasBeenRead(){n.whatsNewData?.status==="SUCCESS"&&(l({lastReadPost:n.whatsNewData.url}),o({...n.whatsNewData,postIsRead:!0}),e.clearNotification(T0))},toggleWhatsNewNotifications(){n.whatsNewData?.status==="SUCCESS"&&(o({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),r.channel?.emit(mL,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function i(){return r.channel?.emit(pL),new Promise(s=>r.channel?.once(hL,({data:u})=>s(u)))}function l(s){r.channel?.emit(gL,s)}return{init:async()=>{if(yL.CONFIG_TYPE!=="DEVELOPMENT")return;let s=await i();o(s);let u=e.getUrlState(),c=u?.path==="/onboarding"||u.queryParams?.onboarding==="true",d=u?.path==="/review/"||u?.path==="/review"||u?.path?.startsWith("/review/");!c&&!d&&s.status==="SUCCESS"&&!s.disableWhatsNewNotifications&&s.showNotification&&e.addNotification({id:T0,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:h.createElement(bL,null),onClear({dismissed:f}){f&&l({lastDismissedPost:s.url})}})},state:n,api:a}},tn=yt(C6(),1),EL=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),JD(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?QD(n):r||n})};EL(tn.default._);var XE="@storybook/manager/store";function _i(e){return e.get(XE)||{}}function JE(e,t){return e.set(XE,t)}function SL(e,t){let r=_i(e);return JE(e,{...r,...t})}var xL=class{constructor({allowPersistence:e,setState:t,getState:r}){this.persistenceHandlers=new Map,this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=r}registerPersistenceHandler(e,t){this.persistenceHandlers.set(e,t)}getInitialState(e){for(let n of[tn.default.local,tn.default.session]){let o=_i(n);if("includedTagFilters"in o||"excludedTagFilters"in o){let{includedTagFilters:a,excludedTagFilters:i,...l}=o;JE(n,l)}}let t=_i(tn.default.local),r=_i(tn.default.session);return{...e,...t,...r}}getState(){return this.upstreamGetState()}async setState(e,t,r){let n,o;typeof t=="function"?(n=t,o=r):o=t;let{persistence:a="none"}=o||{},i={},l={};typeof e=="function"?i=u=>(l=e(u),l):(i=e,l=i);let s=await new Promise(u=>{this.upstreamSetState(i,()=>{u(this.getState())})});if(a!=="none"&&this.upstreamPersistence)if(a==="url"){let u=this.persistenceHandlers.get("url");u&&await u(l,o?.serialize)}else{let u=a==="session"?tn.default.session:tn.default.local;await SL(u,l)}return n&&n(s),s}},{ActiveTabs:iZ}=fp,ZE=_6({api:void 0,state:bd({})}),$L=(...e)=>T6({},...e),wL=class extends p.Component{constructor(e){super(e),this.api={},this.mounted=!1,this.initModules=()=>{this.modules.forEach(y=>{"init"in y&&y.init()})};let{location:t,path:r,refId:n,viewMode:o=e.docsOptions.docsMode?"docs":e.viewMode,singleStory:a,storyId:i,docsOptions:l,navigate:s}=e,u=new xL({getState:()=>this.state,setState:(y,v)=>{if(!this.mounted){let b=typeof y=="function"?y(this.state):y;return this.state={...this.state,...b},v?.(this.state),this.state}return this.setState(y,()=>v(this.state)),this.state}}),c={location:t,path:r,viewMode:o,singleStory:a,storyId:i,refId:n},d={docsOptions:l};this.state=u.getInitialState(bd({...c,...d}));let f={navigate:s,store:u,provider:e.provider};this.modules=[kE,wE,$E,fp,FE,NE,ME,HE,_E,CE,VE,qE,YE,LE].map(y=>y.init({...c,...d,...f,state:this.state,fullAPI:this.api}));let g=bd(this.state,...this.modules.map(y=>y.state)),m=Object.assign(this.api,{navigate:s},...this.modules.map(y=>y.api));this.state=g,this.api=m,e.provider.handleAPI(this.api)}componentDidMount(){this.mounted=!0}static getDerivedStateFromProps(e,t){let r=t.location?.search!==e.location?.search;return t.path!==e.path||r?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId,customQueryParams:pp(e.location)}:null}shouldComponentUpdate(e,t){let r=this.props,n=this.state;return r.path!==e.path||!Xt(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return h.createElement(CL,{effect:this.initModules},h.createElement(ZE.Provider,{value:t},h.createElement(TL,null,e)))}};wL.displayName="Manager";var CL=({children:e,effect:t})=>(h.useEffect(t,[]),e),_L=e=>e;function TL({filter:e=_L,children:t}){let r=p.useContext(ZE),n=p.useRef(t),o=p.useRef(e);if(typeof n.current!="function")return h.createElement(p.Fragment,null,n.current);let a=o.current(r),i=p.useMemo(()=>[...Object.entries(a).reduce((l,s)=>l.concat(s),[])],[r.state]);return p.useMemo(()=>{let l=n.current;return h.createElement(l,{...a})},i)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:lZ}=__STORYBOOK_MODULE_CHANNELS__;var OL={id:"storybook/test-provider",leader:!0,initialState:{}};function AL({universalTestProviderStore:e,useUniversalStore:t}){let r={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:"settings-changed"})})},onRunAll:a=>e.subscribe("run-all",a),onClearAll:a=>e.subscribe("clear-all",a)},n={...r,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:a=>e.subscribe("settings-changed",a),runAll:async()=>{await e.untilReady(),e.send({type:"run-all"})},clearAll:async()=>{await e.untilReady(),e.send({type:"clear-all"})}},o=a=>{let i=()=>e.getState()[a]??"test-provider-state:pending",l=s=>{e.untilReady().then(()=>{e.setState(u=>({...u,[a]:s}))})};return{...r,testProviderId:a,getState:i,setState:l,runWithState:async s=>{l("test-provider-state:running");try{await s(),l("test-provider-state:succeeded")}catch{l("test-provider-state:crashed")}}}};return t?{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e,useTestProviderStore:a=>t(e,a)[0]}:{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e}}AL({universalTestProviderStore:$f.create({...OL,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:zE});var RL={items:{accessibilityTests:{status:"open"},aiSetup:{status:"open"},autodocs:{status:"open"},ciTests:{status:"open"},controls:{status:"open"},coverage:{status:"open"},guidedTour:{status:"open"},installA11y:{status:"open"},installChromatic:{status:"open"},installDocs:{status:"open"},installVitest:{status:"open"},mdxDocs:{status:"open"},moreComponents:{status:"open"},moreStories:{status:"open"},onboardingSurvey:{status:"open"},organizeStories:{status:"open"},renderComponent:{status:"open"},runTests:{status:"open"},publishStorybook:{status:"open"},shareStorybook:{status:"open"},viewports:{status:"open"},visualTests:{status:"open"},whatsNewStorybook10:{status:"open"},writeInteractions:{status:"open"}},widget:{}},DL={id:"storybook/checklist",initialState:RL};$f.create({...DL,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var Gu={exports:{}},Wu={};var O0;function PL(){if(O0)return Wu;O0=1;var e=v_();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function l(d,f){var g=f(),m=n({inst:{value:g,getSnapshot:f}}),y=m[0].inst,v=m[1];return a(function(){y.value=g,y.getSnapshot=f,s(y)&&v({inst:y})},[d,g,f]),o(function(){return s(y)&&v({inst:y}),d(function(){s(y)&&v({inst:y})})},[d]),i(g),g}function s(d){var f=d.getSnapshot;d=d.value;try{var g=f();return!r(d,g)}catch{return!0}}function u(d,f){return f()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return Wu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Wu}var A0;function IL(){return A0||(A0=1,Gu.exports=PL()),Gu.exports}var FL=IL(),xe=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},mo=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),Er=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?"1px solid hsl(0 0 0 / 0.05)":"1px solid hsl(0 0 100 / 0.05)",color:e.color.defaultText,backgroundColor:e.base==="light"?"hsl(0 0 0 / 0.01)":"hsl(0 0 100 / 0.02)"}),Ce=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),wn={margin:"16px 0"},hp=F.div(Ce),LL=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return h.createElement("a",{href:r,target:n,...t})},QE=F(LL)(({theme:e})=>({...Ce({theme:e}),fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"},"& code":{color:"inherit",textDecoration:"underline",textDecorationThickness:"0.03125rem",paddingLeft:0,paddingRight:0,"&::before":{content:'"\\00a0"',fontSize:"0.5em"},"&::after":{content:'"\\00a0"',fontSize:"0.5em"}}})),eS=F.blockquote(({theme:e})=>({...Ce({theme:e}),...wn,borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),fn=[],Zn=null,kL=p.lazy(async()=>{let{SyntaxHighlighter:e}=await yr(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-YFXUGROL-CPw6HVhd.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return fn.length>0&&(fn.forEach(t=>{e.registerLanguage(...t)}),fn=[]),Zn===null&&(Zn=e),{default:t=>h.createElement(e,{...t})}}),NL=p.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([yr(()=>import("./syntaxhighlighter-YFXUGROL-CPw6HVhd.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),yr(()=>import("./formatter-L2YTDE3Q-MFVZMzss.js"),__vite__mapDeps([6,1,2,3,4,5]),import.meta.url)]);return fn.length>0&&(fn.forEach(r=>{e.registerLanguage(...r)}),fn=[]),Zn===null&&(Zn=e),{default:r=>h.createElement(e,{...r,formatter:t})}}),xa=e=>h.createElement(p.Suspense,{fallback:h.createElement("div",null)},e.format!==!1?h.createElement(NL,{...e}):h.createElement(kL,{...e}));xa.registerLanguage=(...e)=>{if(Zn!==null){Zn.registerLanguage(...e);return}fn.push(e)};var ML=e=>typeof e=="string",BL=/[\n\r]/g,jL=F.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit",...Er({theme:e})})),HL=F(xa)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),gp=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=p.Children.toArray(t);return o.filter(ML).some(a=>a.match(BL))?h.createElement(HL,{bordered:!0,copyable:!0,language:n?.[1]??"text",format:!1,...r},t):h.createElement(jL,{...r,className:e},o)},tS=F.dl(({theme:e})=>({...Ce({theme:e}),...wn,padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),rS=F.div(Ce),nS=F.h1(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),mp=F.h2(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),yp=F.h3(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.m1}px`})),oS=F.h4(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.s3}px`})),aS=F.h5(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.s2}px`})),iS=F.h6(({theme:e})=>({...Ce({theme:e}),...mo({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),lS=F.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),sS=F.img({maxWidth:"100%"}),uS=F.li(({theme:e})=>({...Ce({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":Er({theme:e})})),UL={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},cS=F.ol(({theme:e})=>({...Ce({theme:e}),...wn,...UL,listStyle:"decimal"})),dS=F.p(({theme:e})=>({...Ce({theme:e}),...wn,fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":Er({theme:e})})),fS=F.pre(({theme:e})=>({...Ce({theme:e}),...wn,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),pS=F.span(({theme:e})=>({...Ce({theme:e}),"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),hS=F.title(Er),gS=F.table(({theme:e})=>({...Ce({theme:e}),...wn,fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),KL={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},mS=F.ul(({theme:e})=>({...Ce({theme:e}),...wn,...KL,listStyle:"disc"})),yS={h1:e=>h.createElement(nS,{...xe(e,"h1")}),h2:e=>h.createElement(mp,{...xe(e,"h2")}),h3:e=>h.createElement(yp,{...xe(e,"h3")}),h4:e=>h.createElement(oS,{...xe(e,"h4")}),h5:e=>h.createElement(aS,{...xe(e,"h5")}),h6:e=>h.createElement(iS,{...xe(e,"h6")}),pre:e=>h.createElement(fS,{...xe(e,"pre")}),a:e=>h.createElement(QE,{...xe(e,"a")}),hr:e=>h.createElement(lS,{...xe(e,"hr")}),dl:e=>h.createElement(tS,{...xe(e,"dl")}),blockquote:e=>h.createElement(eS,{...xe(e,"blockquote")}),table:e=>h.createElement(gS,{...xe(e,"table")}),img:e=>h.createElement(sS,{...xe(e,"img")}),div:e=>h.createElement(rS,{...xe(e,"div")}),span:e=>h.createElement(pS,{...xe(e,"span")}),li:e=>h.createElement(uS,{...xe(e,"li")}),ul:e=>h.createElement(mS,{...xe(e,"ul")}),ol:e=>h.createElement(cS,{...xe(e,"ol")}),p:e=>h.createElement(dS,{...xe(e,"p")}),code:e=>h.createElement(gp,{...xe(e,"code")}),tt:e=>h.createElement(hS,{...xe(e,"tt")}),resetwrapper:e=>h.createElement(hp,{...xe(e,"resetwrapper")})};F.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case"negative":return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case"warning":return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case"neutral":return{color:e.fgColor.muted,background:e.base==="dark"?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${br(.8,e.textMutedColor)}`};case"positive":return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case"active":return{color:e.base==="light"?Ye(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${br(.9,e.color.secondary)}`};default:return{}}});const{deprecate:zL}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var GL=0,WL=e=>e.button===GL&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,VL=(e,t)=>{WL(e)&&(e.preventDefault(),t(e))},qL=F.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),YL=F.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Ye(.07,e.color.secondary),"svg path:not([fill])":{fill:Ye(.07,e.color.secondary)}},"&:active":{color:Ye(.1,e.color.secondary),"svg path:not([fill])":{fill:Ye(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.secondary,e.color.secondary]),r&&(n=[e.color.dark,e.color.secondary,e.color.secondary]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e,theme:t})=>e?{border:0,borderRadius:t.input.borderRadius,background:"none",padding:0,fontSize:"inherit",lineHeight:"inherit","&:focus-visible":{outline:`2px solid ${t.color.secondary}`,outlineOffset:2,zIndex:"1"}}:{}),$a=p.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:a=void 0,isButton:i=void 0,href:l,...s},u)=>(i!==void 0&&zL("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),h.createElement(YL,{as:l?"a":"button",href:l,...s,ref:u,isButton:!l||i===!0,onClick:r&&e?c=>VL(c,r):r,className:a},h.createElement(qL,{withArrow:n,containsIcon:o},t,n&&h.createElement(IA,null)))));$a.displayName="Link";F.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","& code":{color:"inherit",textDecoration:"underline",textDecorationThickness:"0.03125rem",paddingLeft:0,paddingRight:0,"&::before":{content:'"\\00a0"',fontSize:"0.5em"},"&::after":{content:'"\\00a0"',fontSize:"0.5em"}}},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}}));const{global:XL}=__STORYBOOK_MODULE_GLOBAL__;var{document:Oo,window:$d}=XL;async function JL(e){try{await $d.top?.navigator.clipboard.writeText(e)}catch{await $d.navigator.clipboard.writeText(e)}}async function ZL(e){let t=Oo.createElement("TEXTAREA"),r=Oo.activeElement;t.value=e,Oo.body.appendChild(t),t.select(),Oo.execCommand("copy"),Oo.body.removeChild(t),r.focus()}function QL(){return $d.navigator?.clipboard?JL:ZL}const{deprecate:wd}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function R0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ek(...e){return t=>{let r=!1,n=e.map(o=>{let a=R0(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){let a=n[o];typeof a=="function"?a():R0(e[o],null)}}}}var tk=Symbol.for("react.lazy"),rl=E_[" use ".trim().toString()];function rk(e){return typeof e=="object"&&e!==null&&"then"in e}function bS(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===tk&&"_payload"in e&&rk(e._payload)}function nk(e){let t=ak(e),r=p.forwardRef((n,o)=>{let{children:a,...i}=n;bS(a)&&typeof rl=="function"&&(a=rl(a._payload));let l=p.Children.toArray(a),s=l.find(lk);if(s){let u=s.props.children,c=l.map(d=>d===s?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:d);return ae.jsx(t,{...i,ref:o,children:p.isValidElement(u)?p.cloneElement(u,void 0,c):null})}return ae.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var ok=nk("Slot");function ak(e){let t=p.forwardRef((r,n)=>{let{children:o,...a}=r;if(bS(o)&&typeof rl=="function"&&(o=rl(o._payload)),p.isValidElement(o)){let i=uk(o),l=sk(a,o.props);return o.type!==p.Fragment&&(l.ref=n?ek(n,i):i),p.cloneElement(o,l)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ik=Symbol("radix.slottable");function lk(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ik}function sk(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{let l=a(...i);return o(...i),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function uk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ck=F.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)"})),vS=({note:e,...t})=>h.createElement(ck,{...t},e);const{deprecate:dk}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var de=typeof document<"u"?h.useLayoutEffect:()=>{};function fk(e){let[t,r]=p.useState(e),n=p.useRef(t),o=p.useRef(null),a=p.useRef(()=>{if(!o.current)return;let l=o.current.next();if(l.done){o.current=null;return}n.current===l.value?a.current():r(l.value)});de(()=>{n.current=t,o.current&&a.current()});let i=p.useCallback(l=>{o.current=l(n.current),a.current()},[a]);return[t,i]}var ES={prefix:String(Math.round(Math.random()*1e10)),current:0},SS=h.createContext(ES),pk=h.createContext(!1),Vu=new WeakMap;function hk(e=!1){let t=p.useContext(SS),r=p.useRef(null);if(r.current===null&&!e){var n,o;let a=(o=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let i=Vu.get(a);i==null?Vu.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,Vu.delete(a))}r.current=++t.current}return r.current}function gk(e){let t=p.useContext(SS),r=hk(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function mk(e){let t=h.useId(),[r]=p.useState(Cn()),n=r?"react-aria":`react-aria${ES.prefix}`;return e||`${n}-${t}`}var yk=typeof h.useId=="function"?mk:gk;function bk(){return!1}function vk(){return!0}function Ek(e){return()=>{}}function Cn(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(Ek,bk,vk):p.useContext(pk)}var Sk=!!(typeof window<"u"&&window.document&&window.document.createElement),Un=new Map,Lo;typeof FinalizationRegistry<"u"&&(Lo=new FinalizationRegistry(e=>{Un.delete(e)}));function Ge(e){let[t,r]=p.useState(e),n=p.useRef(null),o=yk(t),a=p.useRef(null);if(Lo&&Lo.register(a,o),Sk){let i=Un.get(o);i&&!i.includes(n)?i.push(n):Un.set(o,[n])}return de(()=>{let i=o;return()=>{Lo&&Lo.unregister(a),Un.delete(i)}},[o]),p.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),o}function xk(e,t){if(e===t)return e;let r=Un.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=Un.get(t);return n?(n.forEach(o=>o.current=e),e):t}function Ti(e=[]){let t=Ge(),[r,n]=fk(t),o=p.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return de(o,[t,o,...e]),r}function wa(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var fe=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},_t=e=>e&&"window"in e&&e.window===e?e:fe(e).defaultView||window;function $t(e,t){return t&&e?e.contains(t):!1}var Me=(e=document)=>e.activeElement;function Oe(e){return e.target}function $k(e,t,r,n){return e.createTreeWalker(t,r,n)}function xS(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=xS(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wk(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=xS(e))&&(n&&(n+=" "),n+=t);return n}var Ck=wk;function te(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let a=t[o],i=n[o];typeof a=="function"&&typeof i=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=wa(a,i):(o==="className"||o==="UNSAFE_className")&&typeof a=="string"&&typeof i=="string"?t[o]=Ck(a,i):o==="id"&&a&&i?t.id=xk(a,i):t[o]=i!==void 0?i:a}}return t}function bp(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(o=>{let a=D0(o,t);return r||(r=typeof a=="function"),a});if(r)return()=>{n.forEach((o,a)=>{typeof o=="function"?o():D0(e[a],null)})}}}function D0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var _k=new Set(["id"]),Tk=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ok=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Ak=new Set(["dir","lang","hidden","inert","translate"]),P0=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Rk=/^(data-.*)$/;function _e(e,t={}){let{labelable:r,isLink:n,global:o,events:a=o,propNames:i}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(_k.has(s)||r&&Tk.has(s)||n&&Ok.has(s)||o&&Ak.has(s)||a&&(P0.has(s)||s.endsWith("Capture")&&P0.has(s.slice(0,-7)))||i?.has(s)||Rk.test(s))&&(l[s]=e[s]);return l}function lt(e){if(Dk())e.focus({preventScroll:!0});else{let t=Pk(e);e.focus(),Ik(t)}}var Za=null;function Dk(){if(Za==null){Za=!1;try{document.createElement("div").focus({get preventScroll(){return Za=!0,!0}})}catch{}}return Za}function Pk(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function Ik(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function ql(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function vp(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Sr(e){let t=null;return()=>(t==null&&(t=e()),t)}var mn=Sr(function(){return vp(/^Mac/i)}),Fk=Sr(function(){return vp(/^iPhone/i)}),$S=Sr(function(){return vp(/^iPad/i)||mn()&&navigator.maxTouchPoints>1}),Yl=Sr(function(){return Fk()||$S()}),Lk=Sr(function(){return mn()||Yl()}),wS=Sr(function(){return ql(/AppleWebKit/i)&&!CS()}),CS=Sr(function(){return ql(/Chrome/i)}),Ep=Sr(function(){return ql(/Android/i)}),kk=Sr(function(){return ql(/Firefox/i)}),Nk=p.createContext({isNative:!0,open:jk,useHref:e=>e});function Xl(){return p.useContext(Nk)}function Mk(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function yn(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}=t;kk()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(mn()?a=!0:i=!0);let u=wS()&&mn()&&!$S()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});yn.isOpening=r,lt(e),e.dispatchEvent(u),yn.isOpening=!1}yn.isOpening=!1;function Bk(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function jk(e,t){Bk(e,r=>yn(r,t))}function _S(e){let t=Xl();var r;let n=t.useHref((r=e?.href)!==null&&r!==void 0?r:"");return{href:e?.href?n:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function Hk(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Mk(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Ir=new Map,Cd=new Set;function I0(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Ir.get(n.target);o||(o=new Set,Ir.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Ir.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Ir.delete(n.target)),Ir.size===0)){for(let a of Cd)a();Cd.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?I0():document.addEventListener("DOMContentLoaded",I0));function Uk(){for(let[e]of Ir)"isConnected"in e&&!e.isConnected&&Ir.delete(e)}function TS(e){requestAnimationFrame(()=>{Uk(),Ir.size===0?e():Cd.add(e)})}function Jl(){let e=p.useRef(new Map),t=p.useCallback((o,a,i,l)=>{let s=l?.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:a,eventTarget:o,fn:s,options:l}),o.addEventListener(a,s,l)},[]),r=p.useCallback((o,a,i,l)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;o.removeEventListener(a,u,l),e.current.delete(i)},[]),n=p.useCallback(()=>{e.current.forEach((o,a)=>{r(o.eventTarget,o.type,a,o.options)})},[r]);return p.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Zl(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Ge(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function Kt(e){let t=p.useRef(null),r=p.useRef(void 0),n=p.useCallback(o=>{if(typeof e=="function"){let a=e,i=a(o);return()=>{typeof i=="function"?i():a(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return p.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}var qu,Kk=(qu=h.useInsertionEffect)!==null&&qu!==void 0?qu:de;function He(e){let t=p.useRef(null);return Kk(()=>{t.current=e},[e]),p.useCallback((...r)=>{let n=t.current;return n?.(...r)},[])}function F0(e,t){let r=p.useRef(!0),n=p.useRef(null);de(()=>(r.current=!0,()=>{r.current=!1}),[]),de(()=>{r.current?r.current=!1:(!n.current||t.some((o,a)=>!Object.is(o,n[a])))&&e(),n.current=t},t)}function zk(){return typeof window.ResizeObserver<"u"}function nl(e){let{ref:t,box:r,onResize:n}=e,o=He(n);p.useEffect(()=>{let a=t?.current;if(a)if(zk()){let i=new window.ResizeObserver(l=>{l.length&&o()});return i.observe(a,{box:r}),()=>{a&&i.unobserve(a)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,r])}function Sp(e,t){de(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Qn(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function OS(e,t){let r=e;for(Qn(r,t)&&(r=r.parentElement);r&&!Qn(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Gk(e,t){let r=[];for(;e&&e!==document.documentElement;)Qn(e,t)&&r.push(e),e=e.parentElement;return r}function Ln(e){return mn()?e.metaKey:e.ctrlKey}var Wk=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Yu(e){return e instanceof HTMLInputElement&&!Wk.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var Vk=0,Xu=new Map;function qk(e){let[t,r]=p.useState();return de(()=>{if(!e)return;let n=Xu.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${Vk++}`;r(o);let a=document.createElement("div");a.id=o,a.style.display="none",a.textContent=e,document.body.appendChild(a),n={refCount:0,element:a},Xu.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Xu.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function ko(e,t,r,n){let o=He(r),a=r==null;p.useEffect(()=>{if(a||!e.current)return;let i=e.current;return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[e,t,n,a])}function AS(e,t){let r=L0(e,t,"left"),n=L0(e,t,"top"),o=t.offsetWidth,a=t.offsetHeight,i=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:g}=getComputedStyle(e),m=i+parseInt(u,10),y=l+parseInt(s,10),v=m+e.clientWidth,b=y+e.clientHeight,E=parseInt(c,10)||0,S=parseInt(f,10)||0,x=parseInt(d,10)||0,C=parseInt(g,10)||0;r<=i+C?i=r-parseInt(u,10)-C:r+o>v-x&&(i+=r+o-v+x),n<=y+E?l=n-parseInt(s,10)-E:n+a>b-S&&(l+=n+a-b+S),e.scrollLeft=i,e.scrollTop=l}function L0(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function k0(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement,l=window.getComputedStyle(i).overflow==="hidden";if(l){let s=Gk(e);l||s.push(i);for(let u of s)AS(u,e)}else{var r;let{left:s,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-d)>1){var n,o,a;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function RS(e){return e.pointerType===""&&e.isTrusted?!0:Ep()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Yk(e){return!Ep()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function N0(e){let t=p.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var Xk="react-aria-clear-focus",Jk="react-aria-focus";function DS(e,t=!0){let[r,n]=p.useState(!0),o=r&&t;return de(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let a of e.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[e,o]),IS(e,o,p.useCallback(()=>n(!1),[])),o}function PS(e,t){let[r,n]=p.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let o=r==="exiting";return IS(e,o,p.useCallback(()=>{n(a=>a==="exiting"?"closed":a)},[])),o}function IS(e,t,r){de(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(a=>a.finished)).then(()=>{o||Sl.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}var Zk=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Qk(e){let t=_t(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){let{getComputedStyle:a}=e.ownerDocument.defaultView,{display:i,visibility:l}=a(e);o=i!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function e7(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function xp(e,t){return Zk?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Qk(e)&&e7(e,t)&&(!e.parentElement||xp(e.parentElement,e))}var $p=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],t7=$p.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";$p.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var r7=$p.join(':not([hidden]):not([tabindex="-1"]),');function FS(e){return e.matches(t7)&&xp(e)&&!LS(e)}function n7(e){return e.matches(r7)&&xp(e)&&!LS(e)}function LS(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var Ju,o7=typeof document<"u"?(Ju=h.useInsertionEffect)!==null&&Ju!==void 0?Ju:h.useLayoutEffect:()=>{};function Ql(e,t,r){let[n,o]=p.useState(e||t),a=p.useRef(n),i=p.useRef(e!==void 0),l=e!==void 0;p.useEffect(()=>{i.current,i.current=l},[l]);let s=l?e:n;o7(()=>{a.current=s});let[,u]=p.useReducer(()=>({}),{}),c=p.useCallback((d,...f)=>{let g=typeof d=="function"?d(a.current):d;Object.is(a.current,g)||(a.current=g,o(g),u(),r?.(g,...f))},[r]);return[s,c]}function oa(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function wp(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function kS(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function NS(e){let t=p.useRef({isFocused:!1,observer:null});de(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=He(n=>{e?.(n)});return p.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,a=i=>{if(t.current.isFocused=!1,o.disabled){let l=wp(i);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let l=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}var ol=!1;function a7(e){for(;e&&!FS(e);)e=e.parentElement;let t=_t(e),r=t.document.activeElement;if(!r||r===e)return;ol=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},a=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,lt(r),s()))},i=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,lt(r),s()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",i,!0),ol=!1,n=!1},u=requestAnimationFrame(s);return s}var Bn="default",_d="",Oi=new WeakMap;function i7(e){if(Yl()){if(Bn==="default"){let t=fe(e);_d=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Bn="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Oi.set(e,e.style[t]),e.style[t]="none"}}function M0(e){if(Yl()){if(Bn!=="disabled")return;Bn="restoring",setTimeout(()=>{TS(()=>{if(Bn==="restoring"){let t=fe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=_d||""),_d="",Bn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Oi.has(e)){let t=Oi.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Oi.delete(e)}}var aa=h.createContext({register:()=>{}});aa.displayName="PressResponderContext";function l7(e,t){return t.get?t.get.call(e):t.value}function MS(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function s7(e,t){var r=MS(e,t,"get");return l7(e,r)}function u7(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c7(e,t,r){u7(e,t),t.set(e,r)}function d7(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function B0(e,t,r){var n=MS(e,t,"set");return d7(e,n,r),r}function f7(e){let t=p.useContext(aa);if(t){let{register:r,...n}=t;e=te(n,e),r()}return Sp(t,e.ref),e}var Qa=new WeakMap,ei=class{continuePropagation(){B0(this,Qa,!1)}get shouldStopPropagation(){return s7(this,Qa)}constructor(e,t,r,n){c7(this,Qa,{writable:!0,value:void 0}),B0(this,Qa,!0);var o;let a=(o=n?.target)!==null&&o!==void 0?o:r.currentTarget,i=a?.getBoundingClientRect(),l,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),i&&(u!=null&&c!=null?(l=u-i.left,s=c-i.top):(l=i.width/2,s=i.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=s}},j0=Symbol("linkClicked"),H0="react-aria-pressable-style",U0="data-react-aria-pressable";function Ca(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:a,onClick:i,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...g}=f7(e),[m,y]=p.useState(!1),v=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:E}=Jl(),S=He((_,N)=>{let B=v.current;if(l||B.didFirePressStart)return!1;let w=!0;if(B.isTriggeringEvent=!0,n){let R=new ei("pressstart",N,_);n(R),w=R.shouldStopPropagation}return r&&r(!0),B.isTriggeringEvent=!1,B.didFirePressStart=!0,y(!0),w}),x=He((_,N,B=!0)=>{let w=v.current;if(!w.didFirePressStart)return!1;w.didFirePressStart=!1,w.isTriggeringEvent=!0;let R=!0;if(o){let P=new ei("pressend",N,_);o(P),R=P.shouldStopPropagation}if(r&&r(!1),y(!1),t&&B&&!l){let P=new ei("press",N,_);t(P),R&&(R=P.shouldStopPropagation)}return w.isTriggeringEvent=!1,R}),C=He((_,N)=>{let B=v.current;if(l)return!1;if(a){B.isTriggeringEvent=!0;let w=new ei("pressup",N,_);return a(w),B.isTriggeringEvent=!1,w.shouldStopPropagation}return!0}),$=He(_=>{let N=v.current;if(N.isPressed&&N.target){N.didFirePressStart&&N.pointerType!=null&&x(Wr(N.target,_),N.pointerType,!1),N.isPressed=!1,N.isOverTarget=!1,N.activePointerId=null,N.pointerType=null,E(),d||M0(N.target);for(let B of N.disposables)B();N.disposables=[]}}),T=He(_=>{c&&$(_)}),O=He(_=>{l||i?.(_)}),L=He((_,N)=>{if(!l&&i){let B=new MouseEvent("click",_);kS(B,N),i(wp(B))}}),I=p.useMemo(()=>{let _=v.current,N={onKeyDown(w){if(Zu(w.nativeEvent,w.currentTarget)&&$t(w.currentTarget,Oe(w.nativeEvent))){var R;K0(Oe(w.nativeEvent),w.key)&&w.preventDefault();let P=!0;if(!_.isPressed&&!w.repeat){_.target=w.currentTarget,_.isPressed=!0,_.pointerType="keyboard",P=S(w,"keyboard");let A=w.currentTarget,D=M=>{Zu(M,A)&&!M.repeat&&$t(A,Oe(M))&&_.target&&C(Wr(_.target,M),"keyboard")};b(fe(w.currentTarget),"keyup",wa(D,B),!0)}P&&w.stopPropagation(),w.metaKey&&mn()&&((R=_.metaKeyEvents)===null||R===void 0||R.set(w.key,w.nativeEvent))}else w.key==="Meta"&&(_.metaKeyEvents=new Map)},onClick(w){if(!(w&&!$t(w.currentTarget,Oe(w.nativeEvent)))&&w&&w.button===0&&!_.isTriggeringEvent&&!yn.isOpening){let R=!0;if(l&&w.preventDefault(),!_.ignoreEmulatedMouseEvents&&!_.isPressed&&(_.pointerType==="virtual"||RS(w.nativeEvent))){let P=S(w,"virtual"),A=C(w,"virtual"),D=x(w,"virtual");O(w),R=P&&A&&D}else if(_.isPressed&&_.pointerType!=="keyboard"){let P=_.pointerType||w.nativeEvent.pointerType||"virtual",A=C(Wr(w.currentTarget,w),P),D=x(Wr(w.currentTarget,w),P,!0);R=A&&D,_.isOverTarget=!1,O(w),$(w)}_.ignoreEmulatedMouseEvents=!1,R&&w.stopPropagation()}}},B=w=>{var R;if(_.isPressed&&_.target&&Zu(w,_.target)){var P;K0(Oe(w),w.key)&&w.preventDefault();let D=Oe(w),M=$t(_.target,Oe(w));x(Wr(_.target,w),"keyboard",M),M&&L(w,_.target),E(),w.key!=="Enter"&&Cp(_.target)&&$t(_.target,D)&&!w[j0]&&(w[j0]=!0,yn(_.target,w,!1)),_.isPressed=!1,(P=_.metaKeyEvents)===null||P===void 0||P.delete(w.key)}else if(w.key==="Meta"&&!((R=_.metaKeyEvents)===null||R===void 0)&&R.size){var A;let D=_.metaKeyEvents;_.metaKeyEvents=void 0;for(let M of D.values())(A=_.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",M))}};if(typeof PointerEvent<"u"){N.onPointerDown=P=>{if(P.button!==0||!$t(P.currentTarget,Oe(P.nativeEvent)))return;if(Yk(P.nativeEvent)){_.pointerType="virtual";return}_.pointerType=P.pointerType;let A=!0;if(!_.isPressed){_.isPressed=!0,_.isOverTarget=!0,_.activePointerId=P.pointerId,_.target=P.currentTarget,d||i7(_.target),A=S(P,_.pointerType);let D=Oe(P.nativeEvent);"releasePointerCapture"in D&&D.releasePointerCapture(P.pointerId),b(fe(P.currentTarget),"pointerup",w,!1),b(fe(P.currentTarget),"pointercancel",R,!1)}A&&P.stopPropagation()},N.onMouseDown=P=>{if($t(P.currentTarget,Oe(P.nativeEvent))&&P.button===0){if(u){let A=a7(P.target);A&&_.disposables.push(A)}P.stopPropagation()}},N.onPointerUp=P=>{!$t(P.currentTarget,Oe(P.nativeEvent))||_.pointerType==="virtual"||P.button===0&&!_.isPressed&&C(P,_.pointerType||P.pointerType)},N.onPointerEnter=P=>{P.pointerId===_.activePointerId&&_.target&&!_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!0,S(Wr(_.target,P),_.pointerType))},N.onPointerLeave=P=>{P.pointerId===_.activePointerId&&_.target&&_.isOverTarget&&_.pointerType!=null&&(_.isOverTarget=!1,x(Wr(_.target,P),_.pointerType,!1),T(P))};let w=P=>{if(P.pointerId===_.activePointerId&&_.isPressed&&P.button===0&&_.target){if($t(_.target,Oe(P))&&_.pointerType!=null){let A=!1,D=setTimeout(()=>{_.isPressed&&_.target instanceof HTMLElement&&(A?$(P):(lt(_.target),_.target.click()))},80);b(P.currentTarget,"click",()=>A=!0,!0),_.disposables.push(()=>clearTimeout(D))}else $(P);_.isOverTarget=!1}},R=P=>{$(P)};N.onDragStart=P=>{$t(P.currentTarget,Oe(P.nativeEvent))&&$(P)}}return N},[b,l,u,E,d,$,T,x,S,C,O,L]);return p.useEffect(()=>{if(!f)return;let _=fe(f.current);if(!_||!_.head||_.getElementById(H0))return;let N=_.createElement("style");N.id=H0,N.textContent=`
652
652
  @layer {
653
653
  [${U0}] {
654
654
  touch-action: pan-x pan-y pinch-zoom;
@@ -669,7 +669,7 @@ ${t}`);let r=t.match(OM);if(!r)return h.createElement(p.Fragment,null,t);let[,n,
669
669
  `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1,cursor:"default",transition:"opacity 100ms ease-in-out, transform 100ms ease-in-out",transformOrigin:"top",transform:"translateY(0)",opacity:1,"@starting-style":{transform:"translateY(-0.25rem) scale(0.95)",opacity:0}},"& optgroup label":{display:"block",padding:"3px 6px"},"& option":{lineHeight:"18px",padding:"7px 10px",borderRadius:4,outline:"none",cursor:"pointer",color:e.color.defaultText,"&::checkmark":{display:"none"},"&:hover, &:focus-visible":{backgroundColor:e.background.hoverable},"&:checked":{color:e.color.secondary,fontWeight:e.typography.weight.bold},"&:disabled":{backgroundColor:"transparent",cursor:"default",color:e.color.defaultText}}})),zM=({children:e,...t})=>h.createElement(KM,{...t},!AA()&&h.createElement("button",null,h.createElement("selectedcontent",null),h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},h.createElement("path",{d:"m6 9 6 6 6-6"}))),h.createElement("optgroup",null,e)),GM=p.useLayoutEffect,WM=function(e){var t=h.useRef(e);return GM(function(){t.current=e}),t},Cy=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},VM=function(e,t){var r=h.useRef();return h.useCallback(function(n){e.current=n,r.current&&Cy(r.current,null),r.current=t,t&&Cy(t,n)},[t])},_y={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},qM=function(e){Object.keys(_y).forEach(function(t){e.style.setProperty(t,_y[t],"important")})},Ty=qM,rt=null,Oy=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function YM(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),rt||(rt=document.createElement("textarea"),rt.setAttribute("tabindex","-1"),rt.setAttribute("aria-hidden","true"),Ty(rt)),rt.parentNode===null&&document.body.appendChild(rt);var o=e.paddingSize,a=e.borderSize,i=e.sizingStyle,l=i.boxSizing;Object.keys(i).forEach(function(f){var g=f;rt.style[g]=i[g]}),Ty(rt),rt.value=t;var s=Oy(rt,e);rt.value=t,s=Oy(rt,e),rt.value="x";var u=rt.scrollHeight-o,c=u*r;l==="border-box"&&(c=c+o+a),s=Math.max(c,s);var d=u*n;return l==="border-box"&&(d=d+o+a),s=Math.min(d,s),[s,u]}var Ay=function(){},XM=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},JM=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],ZM=!!document.documentElement.currentStyle,QM=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=XM(JM,t),n=r.boxSizing;if(n==="")return null;ZM&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),a=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:a}},eB=QM;function Bp(e,t,r){var n=WM(r);p.useLayoutEffect(function(){var o=function(a){return n.current(a)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var tB=function(e,t){Bp(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},rB=function(e){Bp(window,"resize",e)},nB=function(e){Bp(document.fonts,"loadingdone",e)},oB=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],aB=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,a=e.onChange,i=a===void 0?Ay:a,l=e.onHeightChange,s=l===void 0?Ay:l,u=OA(e,oB),c=u.value!==void 0,d=p.useRef(null),f=VM(d,t),g=p.useRef(0),m=p.useRef(),y=function(){var b=d.current,E=r&&m.current?m.current:eB(b);if(E){m.current=E;var S=YM(E,b.value||b.placeholder||"x",o,n),x=S[0],C=S[1];g.current!==x&&(g.current=x,b.style.setProperty("height",x+"px","important"),s(x,{rowHeight:C}))}},v=function(b){c||y(),i(b)};return p.useLayoutEffect(y),tB(d,function(){if(!c){var b=d.current.value;requestAnimationFrame(function(){var E=d.current;E&&b!==E.value&&y()})}}),rB(y),nB(y),p.createElement("textarea",ze({},u,{onChange:v,ref:f}))},iB=p.forwardRef(aB),lB=Object.assign(F(p.forwardRef(function({size:e,valid:t,align:r,...n},o){return h.createElement(iB,{...n,ref:o})}))(Mp,Np,A$,R$,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),_n=Object.assign(F.form({boxSizing:"border-box",width:"100%"}),{Field:kM,Input:jM,Select:zM,Textarea:lB,Button:Ee,Checkbox:IM,Radio:UM}),sB=F.div(({hasCloseButton:e,padding:t})=>({display:"inline-block",position:"relative",minHeight:e?36:void 0,zIndex:2147483647,colorScheme:"light dark",padding:t}),({theme:e,hasChrome:t})=>t?{filter:`
670
670
  drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
671
671
  drop-shadow(0 1px 3px rgba(0,0,0,0.1))
672
- `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?uf(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t==="inverse"&&{background:e.base==="light"?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t==="positive"||t==="negative"||t==="warning")&&{background:e.background[t],color:e.color[`${t}Text`]}),uB=F(Ee)({position:"absolute",top:4,right:4}),Aa=p.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:o,padding:a=8,...i},l)=>h.createElement(sB,{bgColor:t,hasChrome:r,hasCloseButton:!!o,padding:a,ref:l,...i},e,o&&h.createElement(uB,{ariaLabel:n,onClick:o,padding:"small",variant:"ghost",size:"small"},h.createElement(DA,null))));Aa.displayName="Popover";var D$=({id:e,title:t,description:r,icon:n,aside:o,children:a,isSelected:i,isActive:l,onClick:s,onFocus:u,onKeyDown:c,shouldLookDisabled:d=!1,...f})=>h.createElement(Ri.Item,{...f,id:e,role:"option",tabIndex:l?0:-1,"aria-selected":i,"aria-disabled":d?!0:void 0,onClick:s,onFocus:u,onKeyDown:c},a??h.createElement(h.Fragment,null,n&&h.createElement(Ri.Icon,null,n),h.createElement(Ri.Text,null,h.createElement("p",null,t),r&&h.createElement("small",null,r)),o));D$.displayName="SelectOption";var ii=5,P$=Symbol.for("undefined");function cB(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function zd(e){return{...e,type:"option",value:Di(e.value)}}function pc(e){return"type"in e&&e.type==="reset"?e:zd(e)}function Do(e){if(e!==P$)return e}function Di(e){return e===void 0?P$:e}var dB=F("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function Ry(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var fB=F.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function Dy(e,t){return t===void 0?[]:cB(t)?e.filter(r=>r.value===t).map(zd):e.filter(r=>t.some(n=>r.value===n)).map(zd)}var pB=F(Ee)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:br(.93,r.barSelectedColor),color:r.base==="light"?Ye(.1,r.color.secondary):r.color.secondary}:{}),hB=F.div({position:"fixed",inset:0,zIndex:1e3}),gB=({children:e,handleClose:t,triggerRef:r})=>{let n=h.useRef(null);GS({ref:n,onInteractOutside:t}),p.useEffect(()=>{if(n.current)return ns([n.current],{shouldUseInert:!0})},[]);let{overlayProps:o}=Pp({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:i}=Fp({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),l=mf();return o.style={...o.style,overflow:"hidden auto",scrollbarColor:`${l.barTextColor} transparent`,scrollbarWidth:"thin"},h.createElement(fl,{disableFocusManagement:!0,...a},h.createElement(hB,{...i}),h.createElement(Aa,{hasChrome:!0,ref:n,padding:0,...o},e))},I$=p.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:o,multiSelect:a=!1,onReset:i,padding:l="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:f,ariaLabel:g,showSelectedOptionTitle:m=!0,...y},v)=>{let[b,E]=p.useState(y.defaultOpen||!1),[S,x]=p.useState(!1),C=Kt(v),$=p.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),T=`${$}-listbox`,O=p.useRef(null),L=Ta({isOpen:b&&!r,onOpenChange:E}),I=p.useCallback(()=>{E(!1),x(!0)},[]);p.useEffect(()=>{!L.isOpen&&S&&(C.current?.ownerDocument?.defaultView&&C.current.focus(),x(!1))},[L.isOpen,S,C]);let[_,N]=p.useState(Dy(n,o)),B=p.useCallback(U=>{U.type==="reset"?(d?.([]),i?.(),N([])):N(a?H=>{let G=[];return H?.some(W=>W.value===U.value)?(c?.(Do(U.value)),G=H?.filter(W=>W.value!==U.value)??[]):(u?.(Do(U.value)),G=[...H??[],U]),d?.(G.map(W=>Do(W.value))),G}:H=>H.every(G=>G.value!==U.value)?(u?.(Do(U.value)),d?.([Do(U.value)]),[U]):H)},[a,d,u,c,i]),w=p.useMemo(()=>i?{type:"reset",value:void 0,title:s??"Reset selection",icon:h.createElement(kA,null),description:void 0,children:void 0}:void 0,[i,s]),R=p.useMemo(()=>w?[w,...n]:n,[n,w]);p.useEffect(()=>{o&&N(Dy(n,o))},[o,n]);let[P,A]=p.useState(void 0),D=p.useCallback((U,H=!0)=>{A(pc(U)),!a&&H&&B(pc(U))},[a,B]),M=p.useCallback((U=1)=>{if(!b||!P){D(R[U===1?0:Math.min(U,R.length-1)]);return}let H=R.findIndex(q=>P.type==="reset"?"type"in q&&q.type==="reset":Di(q.value)===P.value),G=H+U,W;G>=R.length&&H===R.length-1?W=R[0]:W=R[Math.min(R.length-1,G)],D(W)},[b,P,D,R]),k=p.useCallback((U=1)=>{if(!b||!P){D(R[Math.max(0,R.length-U)]);return}let H=R.findIndex(q=>P.type==="reset"?"type"in q&&q.type==="reset":Di(q.value)===P.value),G=H-U,W;G<0&&H===0?W=R[R.length-1]:W=R[Math.max(0,G)],D(W)},[b,P,D,R]),K=p.useCallback(U=>{let H=Ne=>{U.preventDefault(),D(R[Ne]),E(!0)},G=R.findIndex(Ne=>_.some(Z=>Z.value===Di(Ne.value))),W=G!==-1,q=w&&!W?1:0,ge=R.length-1;U.key==="Enter"||U.key===" "?H(W?Math.min(G,ge):q):U.key==="ArrowDown"?H(W?Math.min(G+1,ge):q):U.key==="ArrowUp"?H(W?Math.max(G-1,q):ge):U.key==="Home"?H(q):U.key==="End"?H(ge):U.key==="PageDown"?H(Math.min((W?G:q)+ii,ge)):U.key==="PageUp"&&H(Math.max(0,(W?G:ge)-ii))},[R,w,D,_]),j=p.useCallback(U=>{U.key!=="Tab"?U.preventDefault():I(),U.key==="Escape"?I():U.key==="ArrowDown"?M():U.key==="ArrowUp"?k():U.key==="Home"?D(R[0]):U.key==="End"?D(R[R.length-1]):U.key==="PageDown"?M(ii):U.key==="PageUp"&&k(ii)},[I,M,k,R,D]);p.useEffect(()=>{if(b&&P){let U=document.getElementById(Ry($,P));U&&(U.scrollIntoView({block:"nearest"}),U.focus())}else b&&O.current?.focus()},[b,P,$]);let z=p.useMemo(()=>_.length===1?`${g} ${_[0].title}`:_.length?`${g}, ${_.length} values selected`:g,[g,_]);return h.createElement(h.Fragment,null,h.createElement(pB,{...y,variant:"ghost",ariaLabel:z,tooltip:f??g,disableAllTooltips:b,id:$,ref:C,padding:l,$isOpen:b,$hasSelection:!!_.length,"aria-disabled":r,disabled:r,onClick:()=>{b?I():E(!0)},tabIndex:b?-1:0,onKeyDown:K,role:"button","aria-controls":b?T:void 0,"aria-expanded":b,"aria-haspopup":"listbox"},!a&&h.createElement(h.Fragment,null,t,m&&_[0]?.title||e),a&&h.createElement(h.Fragment,null,t,e,!!_.length&&h.createElement(fB,{"aria-label":`${_.length} ${_.length>1?"items":"item"} selected`},_?.length))),L.isOpen&&h.createElement(gB,{handleClose:I,triggerRef:C},h.createElement(dB,{"aria-label":g,role:"listbox",id:T,ref:O,"aria-multiselectable":a,onKeyDown:j,tabIndex:b?0:-1},R.map(U=>({option:pc(U),externalOption:U})).map(({externalOption:U,option:H})=>{let G=_?.some(q=>q.value===H.value)&&H!==w,W=H===w;return h.createElement(D$,{key:H.value===void 0?"sb-reset":String(H.value),title:H.title,description:H.description,aside:H.aside,icon:!W&&a?h.createElement(_n.Checkbox,{checked:G,hidden:!0,role:"presentation"}):H.icon,id:Ry($,H),isActive:b&&P?.value===H.value,isSelected:G,onClick:()=>{B(H),a||I()},onFocus:()=>D(U,!1),shouldLookDisabled:W&&_.length===0&&a,onKeyDown:q=>{q.key==="Enter"||q.key===" "?(q.preventDefault(),B(H),a||I()):q.key==="Tab"&&(a||B(H),I())}},H.children)}))))});I$.displayName="Select";const{deprecate:mB}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Tn=class{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,r){let n=this.clone();return t.addDescendants(n,e),n}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},F$=class extends Tn{filter(e,t,r){let[n,o]=M$(e,t,this.firstChildKey,r),a=this.clone();return a.firstChildKey=n,a.lastChildKey=o,a}},L$=class extends Tn{};L$.type="header";var yB=class extends Tn{};yB.type="loader";var k$=class extends F${filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};k$.type="item";var N$=class extends F${filter(e,t,r){let n=super.filter(e,t,r);if(n&&n.lastChildKey!==null){let o=e.getItem(n.lastChildKey);if(o&&o.type!=="header")return n}return null}};N$.type="section";var bB=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),n=r?.firstChildKey!=null?t.get(r.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t?.key)!==null&&r!==void 0?r:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e?.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let r=t.getChildren(e.key);for(let n of r)this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}filter(e){let t=new this.constructor,[r,n]=M$(this,t,this.firstKey,e);return t?.commit(r,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function M$(e,t,r,n){if(r==null)return[null,null];let o=null,a=null,i=e.getItem(r);for(;i!=null;){let u=i.filter(e,t,n);u!=null&&(u.nextKey=null,a&&(u.prevKey=a.key,a.nextKey=u.key),o==null&&(o=u),t.addNode(u),a=u),i=i.nextKey?e.getItem(i.nextKey):null}if(a&&a.type==="separator"){let u=a.prevKey;t.removeNode(a.key),u?(a=t.getItem(u),a.nextKey=null):a=null}var l,s;return[(l=o?.key)!==null&&l!==void 0?l:null,(s=a?.key)!==null&&s!==void 0?s:null]}var B$=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},hc=class Gd extends B${get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof Gd?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,o,a,i,l,s;let u=this.nextVisibleSibling,c=this.getMutableNode();if(c!=null){c.index=this.index,c.level=this.level;var d;c.parentKey=this.parentNode instanceof Gd&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var f;c.prevKey=(f=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&f!==void 0?f:null;var g;c.nextKey=(g=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&g!==void 0?g:null,c.hasChildNodes=!!this.firstChild;var m;c.firstChildKey=(m=(i=this.firstVisibleChild)===null||i===void 0||(a=i.node)===null||a===void 0?void 0:a.key)!==null&&m!==void 0?m:null;var y;if(c.lastChildKey=(y=(s=this.lastVisibleChild)===null||s===void 0||(l=s.node)===null||l===void 0?void 0:l.key)!==null&&y!==void 0?y:null,(c.colSpan!=null||c.colIndex!=null)&&u){var v,b;let E=((v=c.colIndex)!==null&&v!==void 0?v:c.index)+((b=c.colSpan)!==null&&b!==void 0?b:1);if(u.node!=null&&E!==u.node.colIndex){let S=u.getMutableNode();S.colIndex=E}}}}setProps(t,r,n,o,a){let i,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(i=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=i):i=this.getMutableNode(),c.ref=r,i.props=c,i.rendered=o,i.render=a,i.value=l,i.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==i.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(i.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var o,a;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((a=t.parentNode)===null||a===void 0?void 0:a.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,l=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),l&&t.ownerDocument.markDirty(l),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},vB=class extends B${get isConnected(){return this.isMounted}createElement(e){return new hc(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let r of e)this.addNode(r);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof hc&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof hc&&(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,o,a;this.nextCollection.commit((o=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(a=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&a!==void 0?a:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function j$(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:a=[]}=e,i=p.useMemo(()=>new WeakMap,a);return p.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=i.get(c);if(!d){d=t(c);var l,s;let f=(s=(l=d.props.id)!==null&&l!==void 0?l:c.key)!==null&&s!==void 0?s:c.id;if(f==null)throw new Error("Could not determine key for item");n&&(f=n+":"+f),d=p.cloneElement(d,o?{key:f,id:f,value:c}:{key:f}),i.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,i,n,o])}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var pl=p.createContext(!1);function EB(e){if(p.useContext(pl))return h.createElement(h.Fragment,null,e.children);let t=h.createElement(pl.Provider,{value:!0},e.children);return h.createElement("template",{"data-react-aria-hidden":!0},t)}function jp(e){let t=(r,n)=>p.useContext(pl)?null:e(r,n);return t.displayName=e.displayName||e.name,p.forwardRef(t)}function SB(){return p.useContext(pl)}var H$=p.createContext(!1),ca=p.createContext(null);function U$(e){if(p.useContext(ca))return e.content;let{collection:t,document:r}=CB(e.createCollection);return h.createElement(h.Fragment,null,h.createElement(EB,null,h.createElement(ca.Provider,{value:r},e.content)),h.createElement(xB,{render:e.children,collection:t}))}function xB({collection:e,render:t}){return t(e)}function $B(e,t,r){let n=Cn(),o=p.useRef(n);o.current=n;let a=p.useCallback(()=>o.current?r():t(),[t,r]);return FL.useSyncExternalStore(e,a)}var wB=typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore:$B;function CB(e){let[t]=p.useState(()=>new vB(e?.()||new bB)),r=p.useCallback(i=>t.subscribe(i),[t]),n=p.useCallback(()=>{let i=t.getCollection();return t.isSSR&&t.resetAfterSSR(),i},[t]),o=p.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),a=wB(r,n,o);return de(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:a,document:t}}var Wd=p.createContext(null);function _B(e){var t;return t=class extends Tn{},t.type=e,t}function K$(e,t,r,n,o,a){typeof e=="string"&&(e=_B(e));let i=p.useCallback(s=>{s?.setProps(t,r,e,n,a)},[t,r,n,a,e]),l=p.useContext(Wd);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,a),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?h.createElement(Wd.Provider,{value:s},o):null}return h.createElement(e.type,{ref:i},o)}function as(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=p.forwardRef((o,a)=>{let i=p.useContext(ll);if(!p.useContext(H$)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,a)}return K$(e,o,a,"children"in o?o.children:null,null,l=>h.createElement(ll.Provider,{value:i},h.createElement(r,{node:l})))});return n.displayName=t.name,n}function Hp(e,t,r=z$){let n=({node:a})=>t(a.props,a.props.ref,a),o=p.forwardRef((a,i)=>{let l=r(a);var s;return(s=K$(e,a,i,null,l,u=>h.createElement(n,{node:u})))!==null&&s!==void 0?s:h.createElement(h.Fragment,null)});return o.displayName=t.name,o}function z$(e){return j$({...e,addIdAndValue:!0})}var Py=p.createContext(null);function G$(e){let t=p.useContext(Py),r=(t?.dependencies||[]).concat(e.dependencies),n=e.idScope||t?.idScope,o=z$({...e,idScope:n,dependencies:r});return p.useContext(ca)&&(o=h.createElement(TB,null,o)),t=p.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),h.createElement(Py.Provider,{value:t},o)}function TB({children:e}){let t=p.useContext(ca),r=p.useMemo(()=>h.createElement(ca.Provider,{value:null},h.createElement(H$.Provider,{value:!0},e)),[e]);return Cn()?h.createElement(Wd.Provider,{value:t},r):Sl.createPortal(r,t)}var W$=p.createContext({});jp(function(e,t){[e,t]=Ze(e,t,W$);let{elementType:r="label",...n}=e;return h.createElement(r,{className:"react-aria-Label",...n,ref:t})});function OB(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:a="label"}=e;t=Ge(t);let i=Ge(),l={};r&&(n=n?`${i} ${n}`:i,l={id:i,htmlFor:a==="label"?t:void 0});let s=Zl({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function AB(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:a,formatOptions:i={style:"percent"}}=e,l=_e(e,{labelable:!0}),{labelProps:s,fieldProps:u}=OB({...e,labelElementType:"span"});t=oa(t,r,n);let c=(t-r)/(n-r),d=YN(i);if(!a&&!o){let f=i.style==="percent"?c:t;o=d.format(f)}return{progressBarProps:te(l,{...u,"aria-valuenow":a?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":a?void 0:o,role:"progressbar"}),labelProps:s}}var V$=p.createContext(null);p.forwardRef(function(e,t){[e,t]=Ze(e,t,V$);let{value:r=0,minValue:n=0,maxValue:o=100,isIndeterminate:a=!1}=e;r=oa(r,n,o);let[i,l]=WS(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=AB({...e,label:l}),c=a?void 0:(r-n)/(o-n)*100,d=vt({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:a}}),f=_e(e,{global:!0});return h.createElement("div",{...te(f,d,s),ref:t,slot:e.slot||void 0},h.createElement(W$.Provider,{value:{...u,ref:i,elementType:"span"}},d.children))});function RB(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:a,onPressEnd:i,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:g,rel:m,type:y="button"}=e,v;r==="button"?v={type:y,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:v={role:"button",href:r==="a"&&!n?f:void 0,target:r==="a"?g:void 0,type:r==="input"?y:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?m:void 0};let{pressProps:b,isPressed:E}=Ca({onPressStart:a,onPressEnd:i,onPressChange:s,onPress:o,onPressUp:l,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:S}=_a(e,t);c&&(S.tabIndex=n?-1:S.tabIndex);let x=te(S,b,_e(e,{labelable:!0}));return{isPressed:E,buttonProps:te(v,x,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}var q$=p.createContext({});jp(function(e,t){[e,t]=Ze(e,t,q$),e=DB(e);let r=e,{isPending:n}=r,{buttonProps:o,isPressed:a}=RB(e,t),{focusProps:i,isFocused:l,isFocusVisible:s}=rs(e),{hoverProps:u,isHovered:c}=yo({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||a)&&!n,isFocused:l,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},f=vt({...e,values:d,defaultClassName:"react-aria-Button"}),g=Ge(o.id),m=Ge(),y=o["aria-labelledby"];n&&(y?y=`${y} ${m}`:o["aria-label"]&&(y=`${g} ${m}`));let v=p.useRef(n);p.useEffect(()=>{let E={"aria-labelledby":y||g};(!v.current&&l&&n||v.current&&l&&!n)&&Bc(E,"assertive"),v.current=n},[n,l,y,g]);let b=_e(e,{global:!0});return delete b.onClick,h.createElement("button",{...te(b,f,o,i,u),type:o.type==="submit"&&n?"button":o.type,id:g,ref:t,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":n?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-pending":n||void 0,"data-focus-visible":s||void 0},h.createElement(V$.Provider,{value:{id:m}},f.children))});function DB(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var Up=p.createContext(null),Iy=p.createContext(null),PB=p.forwardRef(function(e,t){[e,t]=Ze(e,t,Up);let r=p.useContext(ls),n=Ta(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,a=PS(t,o.isOpen)||e.isExiting||!1,i=SB(),{direction:l}=$r();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),h.createElement(h.Fragment,null,s)}return o&&!o.isOpen&&!a?null:h.createElement(IB,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:a,dir:l})});function IB({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let a=p.useRef(null),i=p.useRef(null),l=p.useContext(Iy),s=l&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:f,placement:g,triggerAnchorPoint:m}=C9({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:a,groupRef:s?l:i},e),y=o.popoverRef,v=DS(y,!!g)||o.isEntering||!1,b=vt({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:g,isEntering:v,isExiting:t}}),E=!o.isNonModal||o.trigger==="SubmenuTrigger",[S,x]=p.useState(!1);de(()=>{y.current&&x(E&&!y.current.querySelector("[role=dialog]"))},[y,E]),p.useEffect(()=>{S&&o.trigger!=="SubmenuTrigger"&&y.current&&!y.current.contains(document.activeElement)&&Nr(y.current)},[S,y,o.trigger]);let C=p.useMemo(()=>{let L=b.children;if(n)for(let I of n)L=h.createElement(I.Provider,{value:null},L);return L},[b.children,n]),$={...c.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...b.style},T=h.createElement("div",{...te(_e(o,{global:!0}),c),...b,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:y,slot:o.slot||void 0,style:$,dir:o.dir,"data-trigger":o.trigger,"data-placement":g,"data-entering":v||void 0,"data-exiting":t||void 0},!o.isNonModal&&h.createElement(yy,{onDismiss:e.close}),h.createElement(Rp.Provider,{value:{...f,placement:g,ref:a}},C),h.createElement(yy,{onDismiss:e.close}));if(!s)return h.createElement(fl,{...o,shouldContainFocus:S,isExiting:t,portalContainer:r},!o.isNonModal&&e.isOpen&&h.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),h.createElement("div",{ref:i,style:{display:"contents"}},h.createElement(Iy.Provider,{value:i},T)));var O;return h.createElement(fl,{...o,shouldContainFocus:S,isExiting:t,portalContainer:(O=r??l?.current)!==null&&O!==void 0?O:void 0},T)}var Y$=p.createContext(null);Hp("section",(e,t,r)=>{let{name:n,render:o}=p.useContext(Y$);return o(e,t,r,"react-aria-Section")});var X$={CollectionRoot({collection:e,renderDropIndicator:t}){return Fy(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Fy(e,t,r)}};function Fy(e,t,r){return j$({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let o=n.render(n);return!r||n.type!=="item"?o:h.createElement(h.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,FB(e,n,r))}})}function FB(e,t,r){let n=t.key,o=e.getKeyAfter(n),a=o!=null?e.getItem(o):null;for(;a!=null&&a.type!=="item";)o=e.getKeyAfter(a.key),a=o!=null?e.getItem(o):null;let i=t.nextKey!=null?e.getItem(t.nextKey):null;for(;i!=null&&i.type!=="item";)i=i.nextKey!=null?e.getItem(i.nextKey):null;let l=[];if(i==null){let s=t;for(;s&&(!a||s.parentKey!==a.parentKey&&a.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});p.isValidElement(u)&&l.push(p.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var Ra=p.createContext(X$);function J$(e){return p.useMemo(()=>e!=null?new Set([e]):null,[e])}var Ly=p.createContext(null),LB=p.createContext(null),Z$=p.createContext({});as(L$,function(e,t){return[e,t]=Ze(e,t,Z$),h.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var Q$=p.createContext({});p.forwardRef(function(e,t){return[e,t]=Ze(e,t,Q$),h.createElement("kbd",{dir:"ltr",...e,ref:t})});function kB(e){let t=_e(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var ew=p.createContext({}),tw=class extends Tn{filter(e,t){let r=t.getItem(this.prevKey);if(r&&r.type!=="separator"){let n=this.clone();return t.addDescendants(n,e),n}return null}};tw.type="separator";as(tw,function(e,t){[e,t]=Ze(e,t,ew);let{elementType:r,orientation:n,style:o,className:a,slot:i,...l}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=kB({...l,elementType:r,orientation:n}),c=_e(e,{global:!0});return h.createElement(s,{...te(c,u),style:o,className:a??"react-aria-Separator",ref:t,slot:i||void 0})});var rw=new WeakMap;function Vd(e){return Lk()?e.altKey:e.ctrlKey}function Pi(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,a=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return a&&(o=`[data-collection="${CSS.escape(a)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}var nw=new WeakMap;function NB(e){let t=Ge();return nw.set(e,t),t}function MB(e){return nw.get(e)}var BB=1e3;function jB(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=p.useRef({search:"",timeout:void 0}).current,a=i=>{let l=HB(i.key);if(!(!l||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||o.search.length===0&&l===" ")){if(l===" "&&o.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),o.search+=l,t.getKeyForSearch!=null){let s=t.getKeyForSearch(o.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(o.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},BB)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function HB(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function ow(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:a=!1,disallowEmptySelection:i=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:g,scrollRef:m=n,linkBehavior:y="action"}=e,{direction:v}=$r(),b=Xl(),E=A=>{var D;if(A.altKey&&A.key==="Tab"&&A.preventDefault(),!(!((D=n.current)===null||D===void 0)&&D.contains(A.target)))return;let M=(V,Y)=>{if(V!=null){if(t.isLink(V)&&y==="selection"&&u&&!Vd(A)){Sl.flushSync(()=>{t.setFocusedKey(V,Y)});let ee=Pi(n,V),se=t.getItemProps(V);ee&&b.open(ee,A,se.href,se.routerOptions);return}if(t.setFocusedKey(V,Y),t.isLink(V)&&y==="override")return;A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&!Vd(A)&&t.replaceSelection(V)}};switch(A.key){case"ArrowDown":if(r.getKeyBelow){var k,K,j;let V=t.focusedKey!=null?(k=r.getKeyBelow)===null||k===void 0?void 0:k.call(r,t.focusedKey):(K=r.getFirstKey)===null||K===void 0?void 0:K.call(r);V==null&&a&&(V=(j=r.getFirstKey)===null||j===void 0?void 0:j.call(r,t.focusedKey)),V!=null&&(A.preventDefault(),M(V))}break;case"ArrowUp":if(r.getKeyAbove){var z,U,H;let V=t.focusedKey!=null?(z=r.getKeyAbove)===null||z===void 0?void 0:z.call(r,t.focusedKey):(U=r.getLastKey)===null||U===void 0?void 0:U.call(r);V==null&&a&&(V=(H=r.getLastKey)===null||H===void 0?void 0:H.call(r,t.focusedKey)),V!=null&&(A.preventDefault(),M(V))}break;case"ArrowLeft":if(r.getKeyLeftOf){var G,W,q;let V=t.focusedKey!=null?(G=r.getKeyLeftOf)===null||G===void 0?void 0:G.call(r,t.focusedKey):null;V==null&&a&&(V=v==="rtl"?(W=r.getFirstKey)===null||W===void 0?void 0:W.call(r,t.focusedKey):(q=r.getLastKey)===null||q===void 0?void 0:q.call(r,t.focusedKey)),V!=null&&(A.preventDefault(),M(V,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var ge,Ne,Z;let V=t.focusedKey!=null?(ge=r.getKeyRightOf)===null||ge===void 0?void 0:ge.call(r,t.focusedKey):null;V==null&&a&&(V=v==="rtl"?(Ne=r.getLastKey)===null||Ne===void 0?void 0:Ne.call(r,t.focusedKey):(Z=r.getFirstKey)===null||Z===void 0?void 0:Z.call(r,t.focusedKey)),V!=null&&(A.preventDefault(),M(V,v==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&A.shiftKey)return;A.preventDefault();let V=r.getFirstKey(t.focusedKey,Ln(A));t.setFocusedKey(V),V!=null&&(Ln(A)&&A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&t.replaceSelection(V))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&A.shiftKey)return;A.preventDefault();let V=r.getLastKey(t.focusedKey,Ln(A));t.setFocusedKey(V),V!=null&&(Ln(A)&&A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&t.replaceSelection(V))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let V=r.getKeyPageBelow(t.focusedKey);V!=null&&(A.preventDefault(),M(V))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let V=r.getKeyPageAbove(t.focusedKey);V!=null&&(A.preventDefault(),M(V))}break;case"a":Ln(A)&&t.selectionMode==="multiple"&&l!==!0&&(A.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(A.stopPropagation(),A.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(A.shiftKey)n.current.focus();else{let V=ut(n.current,{tabbable:!0}),Y,ee;do ee=V.lastChild(),ee&&(Y=ee);while(ee);Y&&!Y.contains(document.activeElement)&&lt(Y)}break}}},S=p.useRef({top:0,left:0});ko(m,"scroll",g?void 0:()=>{var A,D,M,k;S.current={top:(M=(A=m.current)===null||A===void 0?void 0:A.scrollTop)!==null&&M!==void 0?M:0,left:(k=(D=m.current)===null||D===void 0?void 0:D.scrollLeft)!==null&&k!==void 0?k:0}});let x=A=>{if(t.isFocused){A.currentTarget.contains(A.target)||t.setFocused(!1);return}if(A.currentTarget.contains(A.target)){if(t.setFocused(!0),t.focusedKey==null){var D,M;let j=U=>{U!=null&&(t.setFocusedKey(U),u&&!t.isSelected(U)&&t.replaceSelection(U))},z=A.relatedTarget;var k,K;z&&A.currentTarget.compareDocumentPosition(z)&Node.DOCUMENT_POSITION_FOLLOWING?j((k=t.lastSelectedKey)!==null&&k!==void 0?k:(D=r.getLastKey)===null||D===void 0?void 0:D.call(r)):j((K=t.firstSelectedKey)!==null&&K!==void 0?K:(M=r.getFirstKey)===null||M===void 0?void 0:M.call(r))}else!g&&m.current&&(m.current.scrollTop=S.current.top,m.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&m.current){let j=Pi(n,t.focusedKey);j instanceof HTMLElement&&(!j.contains(document.activeElement)&&!d&&lt(j),sa()==="keyboard"&&k0(j,{containingElement:n.current}))}}},C=A=>{A.currentTarget.contains(A.relatedTarget)||t.setFocused(!1)},$=p.useRef(!1);ko(n,Jk,d?A=>{let{detail:D}=A;A.stopPropagation(),t.setFocused(!0),D?.focusStrategy==="first"&&($.current=!0)}:void 0);let T=He(()=>{var A,D;let M=(D=(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))!==null&&D!==void 0?D:null;if(M==null){let k=Me();bx(n.current),vx(k,null),t.collection.size>0&&($.current=!1)}else t.setFocusedKey(M),$.current=!1});F0(()=>{$.current&&T()},[t.collection,T]);let O=He(()=>{t.collection.size>0&&($.current=!1)});F0(()=>{O()},[t.focusedKey,O]),ko(n,Xk,d?A=>{var D;A.stopPropagation(),t.setFocused(!1),!((D=A.detail)===null||D===void 0)&&D.clearFocusKey&&t.setFocusedKey(null)}:void 0);let L=p.useRef(o),I=p.useRef(!1);p.useEffect(()=>{if(L.current){var A,D;let K=null;var M;o==="first"&&(K=(M=(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))!==null&&M!==void 0?M:null);var k;o==="last"&&(K=(k=(D=r.getLastKey)===null||D===void 0?void 0:D.call(r))!==null&&k!==void 0?k:null);let j=t.selectedKeys;if(j.size){for(let z of j)if(t.canSelectItem(z)){K=z;break}}t.setFocused(!0),t.setFocusedKey(K),K==null&&!d&&n.current&&Nr(n.current),t.collection.size>0&&(L.current=!1,I.current=!0)}});let _=p.useRef(t.focusedKey),N=p.useRef(null);p.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==_.current||I.current)&&m.current&&n.current){let A=sa(),D=Pi(n,t.focusedKey);if(!(D instanceof HTMLElement))return;(A==="keyboard"||I.current)&&(N.current&&cancelAnimationFrame(N.current),N.current=requestAnimationFrame(()=>{m.current&&(AS(m.current,D),A!=="virtual"&&k0(D,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&_.current!=null&&n.current&&Nr(n.current),_.current=t.focusedKey,I.current=!1}),p.useEffect(()=>()=>{N.current&&cancelAnimationFrame(N.current)},[]),ko(n,"react-aria-focus-scope-restore",A=>{A.preventDefault(),t.setFocused(!0)});let B={onKeyDown:E,onFocus:x,onBlur:C,onMouseDown(A){m.current===A.target&&A.preventDefault()}},{typeSelectProps:w}=jB({keyboardDelegate:r,selectionManager:t});c||(B=te(w,B));let R;d||(R=t.focusedKey==null?0:-1);let P=NB(t.collection);return{collectionProps:te(B,{tabIndex:R,"data-collection":P})}}function aw(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:a,shouldUseVirtualFocus:i,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=Xl();t=Ge(t);let g=k=>{if(k.pointerType==="keyboard"&&Vd(k))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let K=r.getItemProps(n);f.open(o.current,k,K.href,K.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):k&&k.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||k&&(Ln(k)||k.pointerType==="touch"||k.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};p.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(i?bx(o.current):l?l():document.activeElement!==o.current&&o.current&&Nr(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,i]),s=s||r.isDisabled(n);let m={};!i&&!s?m={tabIndex:n===r.focusedKey?0:-1,onFocus(k){k.target===o.current&&r.setFocusedKey(n)}}:s&&(m.onMouseDown=k=>{k.preventDefault()});let y=r.isLink(n)&&d==="override",v=u&&e.UNSTABLE_itemBehavior==="action",b=r.isLink(n)&&d!=="selection"&&d!=="none",E=!s&&r.canSelectItem(n)&&!y&&!v,S=(u||b)&&!s,x=S&&(r.selectionBehavior==="replace"?!E:!E||r.isEmpty),C=S&&E&&r.selectionBehavior==="replace",$=x||C,T=p.useRef(null),O=$&&E,L=p.useRef(!1),I=p.useRef(!1),_=r.getItemProps(n),N=k=>{if(u){var K;u(),(K=o.current)===null||K===void 0||K.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&f.open(o.current,k,_.href,_.routerOptions)},B={ref:o};if(a?(B.onPressStart=k=>{T.current=k.pointerType,L.current=O,k.pointerType==="keyboard"&&(!$||Ny())&&g(k)},c?(B.onPressUp=x?void 0:k=>{k.pointerType==="mouse"&&E&&g(k)},B.onPress=x?N:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&E&&g(k)}):B.onPress=k=>{if(x||C&&k.pointerType!=="mouse"){if(k.pointerType==="keyboard"&&!ky())return;N(k)}else k.pointerType!=="keyboard"&&E&&g(k)}):(B.onPressStart=k=>{T.current=k.pointerType,L.current=O,I.current=x,E&&(k.pointerType==="mouse"&&!x||k.pointerType==="keyboard"&&(!S||Ny()))&&g(k)},B.onPress=k=>{(k.pointerType==="touch"||k.pointerType==="pen"||k.pointerType==="virtual"||k.pointerType==="keyboard"&&$&&ky()||k.pointerType==="mouse"&&I.current)&&($?N(k):E&&g(k))}),m["data-collection"]=MB(r.collection),m["data-key"]=n,B.preventFocusOnPress=i,i&&(B=te(B,{onPressStart(k){k.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(k){k.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),_)for(let k of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])_[k]&&(B[k]=wa(B[k],_[k]));let{pressProps:w,isPressed:R}=Ca(B),P=C?k=>{T.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),N(k))}:void 0,{longPressProps:A}=D7({isDisabled:!O,onLongPress(k){k.pointerType==="touch"&&(g(k),r.setSelectionBehavior("toggle"))}}),D=k=>{T.current==="touch"&&L.current&&k.preventDefault()},M=d!=="none"&&r.isLink(n)?k=>{yn.isOpening||k.preventDefault()}:void 0;return{itemProps:te(m,E||x||i&&!s?w:{},O?A:{},{onDoubleClick:P,onDragStartCapture:D,onClick:M,id:t},i?{onMouseDown:k=>k.preventDefault()}:void 0),isPressed:R,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:E,hasAction:$}}function ky(){return window.event?.key==="Enter"}function Ny(){let e=window.event;return e?.key===" "||e?.code==="Space"}var My=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?Pi(this.ref,e):null;if(!r)return null;let n=t.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-n.left-t.clientLeft+t.scrollLeft,y:o.top-n.top-t.clientTop+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var t,r;return{width:(t=e?.scrollWidth)!==null&&t!==void 0?t:0,height:(r=e?.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var t,r,n,o;return{x:(t=e?.scrollLeft)!==null&&t!==void 0?t:0,y:(r=e?.scrollTop)!==null&&r!==void 0?r:0,width:(n=e?.clientWidth)!==null&&n!==void 0?n:0,height:(o=e?.clientHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}},UB=class{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;r!=null;){let n=this.collection.getItem(r);if(n?.type==="item"&&!this.isDisabled(n))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}findKey(e,t,r){let n=e,o=this.layoutDelegate.getItemRect(n);if(!o||n==null)return null;let a=o;do{if(n=t(n),n==null)break;o=this.layoutDelegate.getItemRect(n)}while(o&&r(a,o)&&n!=null);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Qn(t))return this.getFirstKey();let n=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Qn(t))return this.getLastKey();let n=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;n!=null;){let o=r.getItem(n);if(!o)return null;let a=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(a,e)===0)return n;n=this.getNextKey(n)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new My(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new My(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function KB(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:a,layoutDelegate:i}=e,l=XN({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=p.useMemo(()=>a||new UB({collection:r,disabledKeys:n,disabledBehavior:s,ref:o,collator:l,layoutDelegate:i}),[a,i,r,n,o,l,s]),{collectionProps:c}=ow({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function zB(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:a,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let l=_e(e,{labelable:!0}),{listProps:s}=KB({...i,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return rw.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:te(l,{onKeyDown:o,onKeyUp:a},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function iw(e){return null}iw.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:o}=e,a=e.title||e.children,i=e.textValue||(typeof a=="string"?a:"")||e["aria-label"]||"";!i&&t?.suppressTextValueWarning,yield{type:"item",props:e,rendered:a,textValue:i,"aria-label":e["aria-label"],hasChildNodes:GB(e),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(n){let l=[];h.Children.forEach(o,s=>{l.push({type:"item",element:s})}),yield*l}}}};function GB(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&h.Children.count(e.children)>0)}var WB=iw,VB=class{build(e,t){return this.context=t,By(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(h.isValidElement(t)&&t.type===h.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if(typeof t=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let n=0;for(let o of r)yield*this.getFullNode({value:o,index:n},{renderer:t}),n++}else{let n=[];h.Children.forEach(t,a=>{a&&n.push(a)});let o=0;for(let a of n){let i=this.getFullNode({element:a,index:o},{});for(let l of i)o++,yield l}}}getKey(e,t,r,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let o=t.value;if(o!=null){var a;let i=(a=o.key)!==null&&a!==void 0?a:o.id;if(i==null)throw new Error("No key found for item");return i}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,n){if(h.isValidElement(e.element)&&e.element.type===h.Fragment){let y=[];h.Children.forEach(e.element.props.children,b=>{y.push(b)});var o;let v=(o=e.index)!==null&&o!==void 0?o:0;for(let b of y)yield*this.getFullNode({element:b,index:v++},t,r,n);return}let a=e.element;if(!a&&e.value&&t&&t.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=n?n.key:null,yield y;return}a=t.renderer(e.value)}if(h.isValidElement(a)){let y=a.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let S=a.type;throw new Error(`Unknown element <${S}> in collection.`)}let v=y.getCollectionNode(a.props,this.context);var i;let b=(i=e.index)!==null&&i!==void 0?i:0,E=v.next();for(;!E.done&&E.value;){let S=E.value;e.index=b;var l;let x=(l=S.key)!==null&&l!==void 0?l:null;x==null&&(x=S.element?null:this.getKey(a,e,t,r));let C=[...this.getFullNode({...S,key:x,index:b,wrapper:qB(e.wrapper,S.wrapper)},this.getChildState(t,S),r?`${r}${a.key}`:a.key,n)];for(let $ of C){var s,u;$.value=(u=(s=S.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,$.value&&this.cache.set($.value,$);var c;if(e.type&&$.type!==e.type)throw new Error(`Unsupported type <${gc($.type)}> in <${gc((c=n?.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${gc(e.type)}> is supported.`);b++,yield $}E=v.next(C)}return}if(e.key==null||e.type==null)return;let d=this;var f,g;let m={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(f=e.value)!==null&&f!==void 0?f:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(g=e.textValue)!==null&&g!==void 0?g:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:By(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let v of e.childNodes()){v.key!=null&&(v.key=`${m.key}${v.key}`);let b=d.getFullNode({...v,index:y},d.getChildState(t,v),m.key,m);for(let E of b)y++,yield E}})};yield m}constructor(){this.cache=new WeakMap}};function By(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function qB(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function gc(e){return e[0].toUpperCase()+e.slice(1)}function lw(e,t,r){let n=p.useMemo(()=>new VB,[]),{children:o,items:a,collection:i}=e;return p.useMemo(()=>{if(i)return i;let l=n.build({children:o,items:a},r);return t(l)},[n,o,a,i,r,t])}function sw(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function YB(e){return XB(e)}function XB(e,t){for(let r of e)return r}function mc(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...jy(e,t),t],o=[...jy(e,r),r],a=n.slice(0,o.length).findIndex((i,l)=>i!==o[l]);return a!==-1?(t=n[a],r=o[a],t.index-r.index):n.findIndex(i=>i===r)>=0?1:(o.findIndex(i=>i===t)>=0,-1)}function jy(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var Hy=new WeakMap;function JB(e){let t=Hy.get(e);if(t!=null)return t;let r=0,n=o=>{for(let a of o)a.type==="section"?n(sw(a,e)):a.type==="item"&&r++};return n(e),Hy.set(e,r),r}function ZB(e,t,r){let{id:n,key:o,closeOnSelect:a,isVirtualized:i,"aria-haspopup":l,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:f,onClick:g,onHoverStart:m,onHoverChange:y,onHoverEnd:v,onKeyDown:b,onKeyUp:E,onFocus:S,onFocusChange:x,onBlur:C,selectionManager:$=t.selectionManager}=e,T=!!l,O=T&&e["aria-expanded"]==="true";var L;let I=(L=e.isDisabled)!==null&&L!==void 0?L:$.isDisabled(o);var _;let N=(_=e.isSelected)!==null&&_!==void 0?_:$.isSelected(o),B=rw.get(t),w=t.collection.getItem(o),R=e.onClose||B.onClose,P=Xl(),A=()=>{var J;if(!T&&(!(w==null||(J=w.props)===null||J===void 0)&&J.onAction?w.props.onAction():e.onAction&&e.onAction(o),B.onAction)){let tt=B.onAction;tt(o)}},D="menuitem";T||($.selectionMode==="single"?D="menuitemradio":$.selectionMode==="multiple"&&(D="menuitemcheckbox"));let M=Ti(),k=Ti(),K=Ti(),j={id:n,"aria-disabled":I||void 0,role:D,"aria-label":e["aria-label"],"aria-labelledby":M,"aria-describedby":[k,K].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};$.selectionMode!=="none"&&!T&&(j["aria-checked"]=N),i&&(j["aria-posinset"]=w?.index,j["aria-setsize"]=JB(t.collection));let z=p.useRef(!1),U=J=>{d?.(J),z.current=J},H=p.useRef(null),G=J=>{J.pointerType!=="keyboard"&&(H.current={pointerType:J.pointerType}),J.pointerType==="mouse"&&(z.current||J.target.click()),u?.(J)},W=J=>{var tt,Rt;g?.(J),A(),Hk(J,P,w.props.href,w?.props.routerOptions);let pt=((tt=H.current)===null||tt===void 0?void 0:tt.pointerType)==="keyboard"?((Rt=H.current)===null||Rt===void 0?void 0:Rt.key)==="Enter"||$.selectionMode==="none"||$.isLink(o):$.selectionMode!=="multiple"||$.isLink(o);pt=a??pt,R&&!T&&pt&&R(),H.current=null},{itemProps:q,isFocused:ge}=aw({id:n,selectionManager:$,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:B.shouldUseVirtualFocus}),{pressProps:Ne,isPressed:Z}=Ca({onPressStart:s,onPress:c,onPressUp:G,onPressChange:U,onPressEnd:f,isDisabled:I}),{hoverProps:V}=yo({isDisabled:I,onHoverStart(J){!la()&&!(O&&l)&&($.setFocused(!0),$.setFocusedKey(o)),m?.(J)},onHoverChange:y,onHoverEnd:v}),{keyboardProps:Y}=zS({onKeyDown:J=>{if(J.repeat){J.continuePropagation();return}switch(J.key){case" ":H.current={pointerType:"keyboard",key:" "},J.target.click();break;case"Enter":H.current={pointerType:"keyboard",key:"Enter"},J.target.tagName!=="A"&&J.target.click();break;default:T||J.continuePropagation(),b?.(J);break}},onKeyUp:E}),{focusProps:ee}=Tp({onBlur:C,onFocus:S,onFocusChange:x}),se=_e(w?.props);delete se.id;let et=_S(w?.props);return{menuItemProps:{...j,...te(se,et,T?{onFocus:q.onFocus,"data-collection":q["data-collection"],"data-key":q["data-key"]}:q,Ne,V,Y,ee,B.shouldUseVirtualFocus||T?{onMouseDown:J=>J.preventDefault()}:void 0,I?void 0:{onClick:W}),tabIndex:q.tabIndex!=null&&O&&!B.shouldUseVirtualFocus?-1:q.tabIndex},labelProps:{id:M},descriptionProps:{id:k},keyboardShortcutProps:{id:K},isFocused:ge,isFocusVisible:ge&&$.isFocused&&la()&&!O,isSelected:N,isPressed:Z,isDisabled:I}}function QB(e){let{heading:t,"aria-label":r}=e,n=Ge();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var li=2,ej=50,tj=1e3,Uy=Math.PI/12;function rj(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:o}=e,a=p.useRef(void 0),i=p.useRef(void 0),l=p.useRef(0),s=p.useRef(void 0),u=p.useRef(void 0),c=p.useRef(void 0),d=p.useRef(2),[f,g]=p.useState(!1);nl({ref:r,onResize:()=>{r.current&&(i.current=r.current.getBoundingClientRect(),c.current=void 0)}});let m=()=>{g(!1),d.current=li,a.current=void 0},y=b7(),v=He(b=>{f&&b.preventDefault()});p.useEffect(()=>{f&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,f]),p.useEffect(()=>{let b=r.current,E=t.current;if(o||!b||!n||y!=="pointer"||!E){m();return}i.current=b.getBoundingClientRect();let S=x=>{if(x.pointerType==="touch"||x.pointerType==="pen")return;let C=Date.now();if(C-l.current<ej)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:$,clientY:T}=x;if(!a.current){a.current={x:$,y:T};return}if(!i.current)return;if(c.current||(c.current=$>i.current.right?"left":"right"),$<E.getBoundingClientRect().left||$>E.getBoundingClientRect().right||T<E.getBoundingClientRect().top||T>E.getBoundingClientRect().bottom){m();return}let O=a.current.x,L=a.current.y,I=c.current==="right"?i.current.left-O:O-i.current.right,_=Math.atan2(L-i.current.top,I)+Uy,N=Math.atan2(L-i.current.bottom,I)-Uy,B=Math.atan2(L-T,c.current==="left"?-($-O):$-O),w=B<_&&B>N;d.current=w?Math.min(d.current+1,li):Math.max(d.current-1,0),d.current>=li?g(!0):g(!1),l.current=C,a.current={x:$,y:T},w&&(s.current=setTimeout(()=>{m(),u.current=setTimeout(()=>{let R=document.elementFromPoint($,T);R&&E.contains(R)&&R.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},tj))};return window.addEventListener("pointermove",S),window.addEventListener("pointerdown",v,!0),()=>{window.removeEventListener("pointermove",S),window.removeEventListener("pointerdown",v,!0),clearTimeout(s.current),clearTimeout(u.current),d.current=li}},[o,n,t,y,g,v,r])}function nj(e,t,r){let{parentMenuRef:n,submenuRef:o,type:a="menu",isDisabled:i,delay:l=200,shouldUseVirtualFocus:s}=e,u=Ge(),c=Ge(),{direction:d}=$r(),f=p.useRef(void 0),g=p.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0)},[f]),m=He(O=>{g(),t.open(O)}),y=He(()=>{g(),t.close()});de(()=>()=>{g()},[g]);let v=O=>{if(O.currentTarget.contains(document.activeElement))switch(O.key){case"ArrowLeft":d==="ltr"&&O.currentTarget.contains(O.target)&&(O.preventDefault(),O.stopPropagation(),y(),!s&&r.current&&lt(r.current));break;case"ArrowRight":d==="rtl"&&O.currentTarget.contains(O.target)&&(O.preventDefault(),O.stopPropagation(),y(),!s&&r.current&&lt(r.current));break;case"Escape":var L;!((L=o.current)===null||L===void 0)&&L.contains(O.target)&&(O.stopPropagation(),y(),!s&&r.current&&lt(r.current));break}};var b;let E={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...a==="menu"&&{onClose:t.closeAll,autoFocus:(b=t.focusStrategy)!==null&&b!==void 0?b:void 0,onKeyDown:v}},S=O=>{switch(O.key){case"ArrowRight":i||(d==="ltr"?(O.preventDefault(),t.isOpen||m("first"),a==="menu"&&o?.current&&document.activeElement===r?.current&&lt(o.current)):t.isOpen?y():O.continuePropagation());break;case"ArrowLeft":i||(d==="rtl"?(O.preventDefault(),t.isOpen||m("first"),a==="menu"&&o?.current&&document.activeElement===r?.current&&lt(o.current)):t.isOpen?y():O.continuePropagation());break;default:O.continuePropagation();break}},x=O=>{!i&&(O.pointerType==="virtual"||O.pointerType==="keyboard")&&m("first")},C=O=>{!i&&(O.pointerType==="touch"||O.pointerType==="mouse")&&m()},$=O=>{i||(O&&!t.isOpen?f.current||(f.current=setTimeout(()=>{m()},l)):O||g())};ko(n,"focusin",O=>{var L;t.isOpen&&!((L=n.current)===null||L===void 0)&&L.contains(O.target)&&O.target!==r.current&&y()});let T=O=>O!==r.current;return rj({menuRef:n,submenuRef:o,isOpen:t.isOpen,isDisabled:i}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":i?void 0:a,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:C,onHoverChange:$,onKeyDown:S,isOpen:t.isOpen},submenuProps:E,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:T}}}function uw(e){let t=Ta(e),[r,n]=p.useState(null),[o,a]=p.useState([]),i=()=>{a([]),t.close()};return{focusStrategy:r,...t,open(l=null){n(l),t.open()},toggle(l=null){n(l),t.toggle()},close(){i()},expandedKeysStack:o,openSubmenu:(l,s)=>{a(u=>s>u.length?u:[...u.slice(0,s),l])},closeSubmenu:(l,s)=>{a(u=>u[s]===l?u.slice(0,s):u)}}}function oj(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:a,close:i}=t,[l]=p.useState(n?.length),s=p.useMemo(()=>n[l]===r,[n,r,l]),[u,c]=p.useState(null),d=p.useCallback(m=>{c(m??null),o(r,l)},[o,l,r]),f=p.useCallback(()=>{c(null),a(r,l)},[a,l,r]),g=p.useCallback(m=>{c(m??null),s?f():d(m)},[f,d,s]);return p.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:f,closeAll:i,submenuLevel:l,setOpen:()=>{},toggle:g}),[s,d,f,i,u,g,l])}var aj=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let r=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&(i.type==="section"||t.has(i.key)))for(let l of i.childNodes)r(l)};for(let i of e)r(i);let n=null,o=0;for(let[i,l]of this.keyMap)n?(n.nextKey=i,l.prevKey=n.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=o++),n=l,n.nextKey=void 0;var a;this.lastKey=(a=n?.key)!==null&&a!==void 0?a:null}},pr=class cw extends Set{constructor(t,r,n){super(t),t instanceof cw?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function ij(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Kp(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:a="all"}=e,i=p.useRef(!1),[,l]=p.useState(!1),s=p.useRef(null),u=p.useRef(null),[,c]=p.useState(null),d=p.useMemo(()=>Ky(e.selectedKeys),[e.selectedKeys]),f=p.useMemo(()=>Ky(e.defaultSelectedKeys,new pr),[e.defaultSelectedKeys]),[g,m]=Ql(d,f,e.onSelectionChange),y=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,b]=p.useState(o);o==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&b("replace");let E=p.useRef(o);return p.useEffect(()=>{o!==E.current&&(b(o),E.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:b,get isFocused(){return i.current},setFocused(S){i.current=S,l(S)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(S,x="first"){s.current=S,u.current=x,c(S)},selectedKeys:g,setSelectedKeys(S){(n||!ij(S,g))&&m(S)},disabledKeys:y,disabledBehavior:a}}function Ky(e,t){return e?e==="all"?"all":new pr(e):t}var zp=class dw{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&mc(this.collection,o,t)<0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&mc(this.collection,o,t)>0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new pr([r],r,r);else{let i=this.state.selectedKeys;var o;let l=(o=i.anchorKey)!==null&&o!==void 0?o:r;n=new pr(i,l,r);var a;for(let s of this.getKeyRange(l,(a=i.currentKey)!==null&&a!==void 0?a:r))n.delete(s);for(let s of this.getKeyRange(r,l))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?mc(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],a=t;for(;a!=null;){let i=this.collection.getItem(a);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&o.push(a),a===r)return o;a=this.collection.getKeyAfter(a)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new pr(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new pr([r],r,r):new pr;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new pr;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let i=this.collection.getItem(n);i?.type==="item"&&t.push(n);var a;i?.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&r((a=(o=YB(sw(i,this.collection)))===null||o===void 0?void 0:o.key)!==null&&a!==void 0?a:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new pr)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new dw(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}};function lj(e){let{onExpandedChange:t}=e,[r,n]=Ql(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Kp(e),a=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=lw(e,p.useCallback(l=>new aj(l,{expandedKeys:r}),[r]),null);return p.useEffect(()=>{o.focusedKey!=null&&!i.getItem(o.focusedKey)&&o.setFocusedKey(null)},[i,o.focusedKey]),{collection:i,expandedKeys:r,disabledKeys:a,toggleKey:l=>{n(sj(r,l))},setExpandedKeys:n,selectionManager:new zp(i,o)}}function sj(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var fw=p.createContext(null),is=p.createContext(null),hl=p.createContext(null),gl=p.createContext(null),pw=p.createContext(null),hw=class extends Tn{filter(e,t,r){let n=e.getItem(this.firstChildKey);if(n&&r(n.textValue,this)){let o=this.clone();return t.addDescendants(o,e),o}return null}};hw.type="submenutrigger";Hp(hw,(e,t,r)=>{let{CollectionBranch:n}=p.useContext(Ra),o=p.useContext(is),a=p.useContext(hl),i=oj({triggerKey:r.key},a),l=p.useRef(null),s=Kt(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=p.useContext(pw),{submenuTriggerProps:d,submenuProps:f,popoverProps:g}=nj({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},i,s);return h.createElement(xr,{values:[[ml,{...d,onAction:void 0,ref:s}],[fw,{ref:l,...f}],[ls,i],[Up,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":f["aria-labelledby"],...g}]]},h.createElement(n,{collection:o.collection,parent:r}),e.children[1])},e=>e.children[0]);p.forwardRef(function(e,t){return[e,t]=Ze(e,t,fw),h.createElement(U$,{content:h.createElement(G$,e)},r=>h.createElement(uj,{props:e,collection:r,menuRef:t}))});function uj({props:e,collection:t,menuRef:r}){[e,r]=Ze(e,r,Ly);let{filter:n,...o}=e,a=p.useMemo(()=>n?t.filter(n):t,[t,n]),i=lj({...e,collection:a,children:void 0}),l=p.useContext(hl),{isVirtualized:s,CollectionRoot:u}=p.useContext(Ra),{menuProps:c}=zB({...e,isVirtualized:s,onClose:e.onClose||l?.close},i,r),d=vt({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:i.collection.size===0}}),f=null;i.collection.size===0&&e.renderEmptyState&&(f=h.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let g=_e(e,{global:!0});return h.createElement(Ip,null,h.createElement("div",{...te(g,d,c),ref:r,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},h.createElement(xr,{values:[[is,i],[ew,{elementType:"div"}],[Y$,{name:"MenuSection",render:gw}],[pw,{parentMenuRef:r,shouldUseVirtualFocus:o?.shouldUseVirtualFocus}],[ml,null],[Ly,null],[LB,null],[gl,i.selectionManager],[hl,l??uw({})]]},h.createElement(u,{collection:i.collection,persistedKeys:J$(i.selectionManager.focusedKey),scrollRef:r})),f))}var cj=class extends zp{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function gw(e,t,r,n="react-aria-MenuSection"){var o,a;let i=p.useContext(is),{CollectionBranch:l}=p.useContext(Ra),[s,u]=WS();var c;let{headingProps:d,groupProps:f}=QB({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),g=vt({defaultClassName:n,className:(o=r.props)===null||o===void 0?void 0:o.className,style:(a=r.props)===null||a===void 0?void 0:a.style,values:{}}),m=p.useContext(gl),y=Kp(e),v=e.selectionMode!=null?new cj(m,y):m,b=_e(e,{global:!0});return delete b.id,h.createElement("section",{...te(b,g,f),ref:t},h.createElement(xr,{values:[[Z$,{...d,ref:s}],[gl,v]]},h.createElement(l,{collection:i.collection,parent:r})))}Hp(N$,gw);var ml=p.createContext(null);as(k$,function(e,t,r){var n;[e,t]=Ze(e,t,ml);let o=(n=Ap(ml))===null||n===void 0?void 0:n.id,a=p.useContext(is),i=Kt(t),l=p.useContext(gl),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...f}=ZB({...e,id:o,key:r.key,selectionManager:l},a,i),{hoverProps:g,isHovered:m}=yo({isDisabled:f.isDisabled}),y=vt({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),v=e.href?"a":"div",b=_e(e,{global:!0});return delete b.id,delete b.onClick,h.createElement(v,{...te(b,y,s,g),ref:i,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},h.createElement(xr,{values:[[b$,{slots:{[sl]:u,label:u,description:c}}],[Q$,d]]},y.children))});function dj(e,t){let{role:r="dialog"}=e,n=Ti();n=e["aria-label"]?void 0:n;let o=p.useRef(!1);return p.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Nr(t.current);let a=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Nr(t.current)),o.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),o$(),{dialogProps:{..._e(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:a=>{o.current&&a.stopPropagation()}},titleProps:{id:n}}}var mw=p.createContext(null),ls=p.createContext(null);function fj(e){let t=uw(e),r=p.useRef(null),{triggerProps:n,overlayProps:o}=d9({},t,r),[a,i]=p.useState(null),l=p.useCallback(()=>{r.current&&i(r.current.offsetWidth+"px")},[r]);return nl({ref:r,onResize:l}),n.id=Ge(),o["aria-labelledby"]=n.id,h.createElement(xr,{values:[[ls,t],[hl,t],[mw,o],[Up,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":a}}]]},h.createElement(_7,{...n,ref:r,isPressed:t.isOpen},e.children))}p.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Ze(e,t,mw);let{dialogProps:n,titleProps:o}=dj({...e,"aria-labelledby":r},t),a=p.useContext(ls);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let i=vt({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),l=_e(e,{global:!0});return h.createElement("section",{...te(l,i,n),ref:t,slot:e.slot||void 0},h.createElement(xr,{values:[[y$,{slots:{[sl]:{},title:{...o,level:2}}}],[q$,{slots:{[sl]:{},close:{onPress:()=>a?.close()}}}]]},i.children))});var Gp=({ariaLabel:e,placement:t="bottom-start",hasChrome:r=!0,hasCloseButton:n=!1,closeLabel:o,offset:a=8,padding:i,popover:l,children:s,defaultVisible:u,visible:c,onVisibleChange:d,...f})=>{e||mB("The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.");let g=kp(t),[m,y]=p.useState(u??!1),v=p.useCallback(E=>{y(E),d?.(E)},[d]),b=p.useCallback(()=>v(!1),[v]);return h.createElement(fj,{defaultOpen:u,isOpen:c??m,onOpenChange:v,...f},h.createElement(C7,null,p.cloneElement(s,{"aria-haspopup":"dialog"})),h.createElement(PB,{"aria-label":e,placement:g,offset:a,style:{outline:"none"}},h.createElement(Aa,{hasChrome:r,hideLabel:o,onHide:n?b:void 0,padding:i},typeof l=="function"?l({onHide:b}):l)))},yw=p.forwardRef((e,t)=>h.createElement(Aa,{ref:t,...e}));yw.displayName="Tooltip";p.lazy(()=>yr(()=>import("./WithTooltip-7X4HQR7L-CRl8dvYc.js"),__vite__mapDeps([7,1,2,5,4,3]),import.meta.url).then(e=>({default:e.WithTooltip})));p.lazy(()=>yr(()=>import("./WithTooltip-7X4HQR7L-CRl8dvYc.js"),__vite__mapDeps([7,1,2,5,4,3]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:sZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;F.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));F.span();F.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));F.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));F.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:pj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var hj=yt(vn(),1);const{deprecate:gj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var mj=F(({active:e,loading:t,disabled:r,...n})=>h.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),yj=F.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),bj=F.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),vj=F.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),Ej=F.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),Sj=F.button(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"background 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),xj=(0,hj.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",role:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",role:"link",href:r,...n&&{as:n,to:r}}})),bw=p.forwardRef((e,t)=>{let{loading:r=!1,title:n=h.createElement("span",null,"Loading state"),center:o=null,right:a=null,active:i=!1,disabled:l=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:f,LinkWrapper:g=void 0,...m}=e,y={active:i,disabled:l},v=xj(e),b=d||f;return gj("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),h.createElement(Sj,{"data-deprecated":"ListItem",ref:t,...m,...y,...v},h.createElement(h.Fragment,null,b&&h.createElement(Ej,{...y},b),n||o?h.createElement(bj,{isIndented:s&&!b},n&&h.createElement(mj,{...y,loading:r},n),o&&h.createElement(vj,{...y},o)):null,a&&h.createElement(yj,{...y},a)))});bw.displayName="ListItem";var vw=bw,$j=F.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),wj=F.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),Cj=({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:a,href:i}=r,l=p.useCallback(s=>t?.(s,{id:e,active:n,disabled:o,title:a,href:i}),[t,e,n,o,a,i]);return h.createElement(vw,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},Ew=({links:e,LinkWrapper:t,...r})=>{pj("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let n=Array.isArray(e[0])?e:[e],o=n.some(a=>a.some(i=>"icon"in i&&i.icon||"input"in i&&i.input));return h.createElement($j,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(a=>a.length).map((a,i)=>h.createElement(wj,{key:a.map(l=>l.id).join(`~${i}~`)},a.map(l=>"content"in l?h.createElement(p.Fragment,{key:l.id},l.content):h.createElement(Cj,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))};const{deprecate:ss}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:_j}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Tj=F.div(({backgroundColor:e,border:t=!1,innerStyle:r={},scrollable:n,theme:o})=>({color:o.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${o.barTextColor} ${t?e||o.barBg:"transparent"}`,scrollbarWidth:"thin",overflow:n?"auto":"hidden",overflowY:"hidden",display:"flex",alignItems:"center",gap:n?0:6,paddingInline:n?0:6,...t?{boxShadow:`${o.appBorderColor} 0 -1px 0 0 inset`,background:e||o.barBg}:{},...r})),Oj=F.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),bo=p.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},o)=>h.createElement(Tj,{...n,ref:o,innerStyle:e?void 0:r,scrollable:e},e?h.createElement(Oj,{innerStyle:r},t):t));bo.displayName="Bar";var qd=F.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});qd.displayName="Side";var Aj=F.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),Rj=F(bo)({paddingInline:0}),Wp=({children:e,backgroundColor:t,className:r="",...n})=>{_j('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[o,a]=p.Children.toArray(e);return h.createElement(Rj,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},h.createElement(Aj,{bgColor:t},h.createElement(qd,{scrollable:n.scrollable,left:!0},o),a?h.createElement(qd,{right:!0},a):null))};Wp.displayName="FlexBar";const{deprecate:Dj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Pj=e=>typeof e.props.href=="string",Ij=e=>typeof e.props.href!="string";function Fj({children:e,...t},r){let n={props:t,ref:r};if(Pj(n))return h.createElement("a",{ref:n.ref,...n.props},e);if(Ij(n))return h.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var Sw=p.forwardRef(Fj);Sw.displayName="ButtonOrLink";var Lj=F(Sw,{shouldForwardProp:Rl})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}}),Da=p.forwardRef((e,t)=>(Dj("The `TabButton` component is deprecated. Use `TabList` instead."),h.createElement(Lj,{"data-deprecated":"TabButton",ref:t,...e})));Da.displayName="TabButton";var kj=F.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),Nj=F.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),Mj=F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),Bj=F.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),jj=F.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Pa=({title:e,description:t,footer:r})=>h.createElement(kj,null,h.createElement(Nj,null,h.createElement(Mj,null,e),t&&h.createElement(jj,null,t)),r&&h.createElement(Bj,null,r));const{deprecate:Hj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var xw=F.div(({active:e})=>e?{display:"block"}:{display:"none"}),Uj=e=>(Hj("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),p.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let a=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof a=="function"?a:({active:i})=>h.createElement(xw,{active:i,role:"tabpanel"},a)}}));const{deprecate:Kj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var zj=F.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),Gj=F(Da)(({active:e,theme:t,preActive:r})=>`
672
+ `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?uf(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t==="inverse"&&{background:e.base==="light"?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t==="positive"||t==="negative"||t==="warning")&&{background:e.background[t],color:e.color[`${t}Text`]}),uB=F(Ee)({position:"absolute",top:4,right:4}),Aa=p.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:o,padding:a=8,...i},l)=>h.createElement(sB,{bgColor:t,hasChrome:r,hasCloseButton:!!o,padding:a,ref:l,...i},e,o&&h.createElement(uB,{ariaLabel:n,onClick:o,padding:"small",variant:"ghost",size:"small"},h.createElement(DA,null))));Aa.displayName="Popover";var D$=({id:e,title:t,description:r,icon:n,aside:o,children:a,isSelected:i,isActive:l,onClick:s,onFocus:u,onKeyDown:c,shouldLookDisabled:d=!1,...f})=>h.createElement(Ri.Item,{...f,id:e,role:"option",tabIndex:l?0:-1,"aria-selected":i,"aria-disabled":d?!0:void 0,onClick:s,onFocus:u,onKeyDown:c},a??h.createElement(h.Fragment,null,n&&h.createElement(Ri.Icon,null,n),h.createElement(Ri.Text,null,h.createElement("p",null,t),r&&h.createElement("small",null,r)),o));D$.displayName="SelectOption";var ii=5,P$=Symbol.for("undefined");function cB(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function zd(e){return{...e,type:"option",value:Di(e.value)}}function pc(e){return"type"in e&&e.type==="reset"?e:zd(e)}function Do(e){if(e!==P$)return e}function Di(e){return e===void 0?P$:e}var dB=F("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function Ry(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var fB=F.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function Dy(e,t){return t===void 0?[]:cB(t)?e.filter(r=>r.value===t).map(zd):e.filter(r=>t.some(n=>r.value===n)).map(zd)}var pB=F(Ee)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:br(.93,r.barSelectedColor),color:r.base==="light"?Ye(.1,r.color.secondary):r.color.secondary}:{}),hB=F.div({position:"fixed",inset:0,zIndex:1e3}),gB=({children:e,handleClose:t,triggerRef:r})=>{let n=h.useRef(null);GS({ref:n,onInteractOutside:t}),p.useEffect(()=>{if(n.current)return ns([n.current],{shouldUseInert:!0})},[]);let{overlayProps:o}=Pp({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:i}=Fp({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),l=mf();return o.style={...o.style,overflow:"hidden auto",scrollbarColor:`${l.barTextColor} transparent`,scrollbarWidth:"thin"},h.createElement(fl,{disableFocusManagement:!0,...a},h.createElement(hB,{...i}),h.createElement(Aa,{hasChrome:!0,ref:n,padding:0,...o},e))},I$=p.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:o,multiSelect:a=!1,onReset:i,padding:l="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:f,ariaLabel:g,showSelectedOptionTitle:m=!0,...y},v)=>{let[b,E]=p.useState(y.defaultOpen||!1),[S,x]=p.useState(!1),C=Kt(v),$=p.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),T=`${$}-listbox`,O=p.useRef(null),L=Ta({isOpen:b&&!r,onOpenChange:E}),I=p.useCallback(()=>{E(!1),x(!0)},[]);p.useEffect(()=>{!L.isOpen&&S&&(C.current?.ownerDocument?.defaultView&&C.current.focus(),x(!1))},[L.isOpen,S,C]);let[_,N]=p.useState(Dy(n,o)),B=p.useCallback(U=>{U.type==="reset"?(d?.([]),i?.(),N([])):N(a?H=>{let G=[];return H?.some(W=>W.value===U.value)?(c?.(Do(U.value)),G=H?.filter(W=>W.value!==U.value)??[]):(u?.(Do(U.value)),G=[...H??[],U]),d?.(G.map(W=>Do(W.value))),G}:H=>H.every(G=>G.value!==U.value)?(u?.(Do(U.value)),d?.([Do(U.value)]),[U]):H)},[a,d,u,c,i]),w=p.useMemo(()=>i?{type:"reset",value:void 0,title:s??"Reset selection",icon:h.createElement(kA,null),description:void 0,children:void 0}:void 0,[i,s]),R=p.useMemo(()=>w?[w,...n]:n,[n,w]);p.useEffect(()=>{o&&N(Dy(n,o))},[o,n]);let[P,A]=p.useState(void 0),D=p.useCallback((U,H=!0)=>{A(pc(U)),!a&&H&&B(pc(U))},[a,B]),M=p.useCallback((U=1)=>{if(!b||!P){D(R[U===1?0:Math.min(U,R.length-1)]);return}let H=R.findIndex(q=>P.type==="reset"?"type"in q&&q.type==="reset":Di(q.value)===P.value),G=H+U,W;G>=R.length&&H===R.length-1?W=R[0]:W=R[Math.min(R.length-1,G)],D(W)},[b,P,D,R]),k=p.useCallback((U=1)=>{if(!b||!P){D(R[Math.max(0,R.length-U)]);return}let H=R.findIndex(q=>P.type==="reset"?"type"in q&&q.type==="reset":Di(q.value)===P.value),G=H-U,W;G<0&&H===0?W=R[R.length-1]:W=R[Math.max(0,G)],D(W)},[b,P,D,R]),K=p.useCallback(U=>{let H=Ne=>{U.preventDefault(),D(R[Ne]),E(!0)},G=R.findIndex(Ne=>_.some(Z=>Z.value===Di(Ne.value))),W=G!==-1,q=w&&!W?1:0,ge=R.length-1;U.key==="Enter"||U.key===" "?H(W?Math.min(G,ge):q):U.key==="ArrowDown"?H(W?Math.min(G+1,ge):q):U.key==="ArrowUp"?H(W?Math.max(G-1,q):ge):U.key==="Home"?H(q):U.key==="End"?H(ge):U.key==="PageDown"?H(Math.min((W?G:q)+ii,ge)):U.key==="PageUp"&&H(Math.max(0,(W?G:ge)-ii))},[R,w,D,_]),j=p.useCallback(U=>{U.key!=="Tab"?U.preventDefault():I(),U.key==="Escape"?I():U.key==="ArrowDown"?M():U.key==="ArrowUp"?k():U.key==="Home"?D(R[0]):U.key==="End"?D(R[R.length-1]):U.key==="PageDown"?M(ii):U.key==="PageUp"&&k(ii)},[I,M,k,R,D]);p.useEffect(()=>{if(b&&P){let U=document.getElementById(Ry($,P));U&&(U.scrollIntoView({block:"nearest"}),U.focus())}else b&&O.current?.focus()},[b,P,$]);let z=p.useMemo(()=>_.length===1?`${g} ${_[0].title}`:_.length?`${g}, ${_.length} values selected`:g,[g,_]);return h.createElement(h.Fragment,null,h.createElement(pB,{...y,variant:"ghost",ariaLabel:z,tooltip:f??g,disableAllTooltips:b,id:$,ref:C,padding:l,$isOpen:b,$hasSelection:!!_.length,"aria-disabled":r,disabled:r,onClick:()=>{b?I():E(!0)},tabIndex:b?-1:0,onKeyDown:K,role:"button","aria-controls":b?T:void 0,"aria-expanded":b,"aria-haspopup":"listbox"},!a&&h.createElement(h.Fragment,null,t,m&&_[0]?.title||e),a&&h.createElement(h.Fragment,null,t,e,!!_.length&&h.createElement(fB,{"aria-label":`${_.length} ${_.length>1?"items":"item"} selected`},_?.length))),L.isOpen&&h.createElement(gB,{handleClose:I,triggerRef:C},h.createElement(dB,{"aria-label":g,role:"listbox",id:T,ref:O,"aria-multiselectable":a,onKeyDown:j,tabIndex:b?0:-1},R.map(U=>({option:pc(U),externalOption:U})).map(({externalOption:U,option:H})=>{let G=_?.some(q=>q.value===H.value)&&H!==w,W=H===w;return h.createElement(D$,{key:H.value===void 0?"sb-reset":String(H.value),title:H.title,description:H.description,aside:H.aside,icon:!W&&a?h.createElement(_n.Checkbox,{checked:G,hidden:!0,role:"presentation"}):H.icon,id:Ry($,H),isActive:b&&P?.value===H.value,isSelected:G,onClick:()=>{B(H),a||I()},onFocus:()=>D(U,!1),shouldLookDisabled:W&&_.length===0&&a,onKeyDown:q=>{q.key==="Enter"||q.key===" "?(q.preventDefault(),B(H),a||I()):q.key==="Tab"&&(a||B(H),I())}},H.children)}))))});I$.displayName="Select";const{deprecate:mB}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Tn=class{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,r){let n=this.clone();return t.addDescendants(n,e),n}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},F$=class extends Tn{filter(e,t,r){let[n,o]=M$(e,t,this.firstChildKey,r),a=this.clone();return a.firstChildKey=n,a.lastChildKey=o,a}},L$=class extends Tn{};L$.type="header";var yB=class extends Tn{};yB.type="loader";var k$=class extends F${filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};k$.type="item";var N$=class extends F${filter(e,t,r){let n=super.filter(e,t,r);if(n&&n.lastChildKey!==null){let o=e.getItem(n.lastChildKey);if(o&&o.type!=="header")return n}return null}};N$.type="section";var bB=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),n=r?.firstChildKey!=null?t.get(r.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t?.key)!==null&&r!==void 0?r:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e?.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let r=t.getChildren(e.key);for(let n of r)this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}filter(e){let t=new this.constructor,[r,n]=M$(this,t,this.firstKey,e);return t?.commit(r,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function M$(e,t,r,n){if(r==null)return[null,null];let o=null,a=null,i=e.getItem(r);for(;i!=null;){let u=i.filter(e,t,n);u!=null&&(u.nextKey=null,a&&(u.prevKey=a.key,a.nextKey=u.key),o==null&&(o=u),t.addNode(u),a=u),i=i.nextKey?e.getItem(i.nextKey):null}if(a&&a.type==="separator"){let u=a.prevKey;t.removeNode(a.key),u?(a=t.getItem(u),a.nextKey=null):a=null}var l,s;return[(l=o?.key)!==null&&l!==void 0?l:null,(s=a?.key)!==null&&s!==void 0?s:null]}var B$=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},hc=class Gd extends B${get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof Gd?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,o,a,i,l,s;let u=this.nextVisibleSibling,c=this.getMutableNode();if(c!=null){c.index=this.index,c.level=this.level;var d;c.parentKey=this.parentNode instanceof Gd&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var f;c.prevKey=(f=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&f!==void 0?f:null;var g;c.nextKey=(g=u==null||(o=u.node)===null||o===void 0?void 0:o.key)!==null&&g!==void 0?g:null,c.hasChildNodes=!!this.firstChild;var m;c.firstChildKey=(m=(i=this.firstVisibleChild)===null||i===void 0||(a=i.node)===null||a===void 0?void 0:a.key)!==null&&m!==void 0?m:null;var y;if(c.lastChildKey=(y=(s=this.lastVisibleChild)===null||s===void 0||(l=s.node)===null||l===void 0?void 0:l.key)!==null&&y!==void 0?y:null,(c.colSpan!=null||c.colIndex!=null)&&u){var v,b;let E=((v=c.colIndex)!==null&&v!==void 0?v:c.index)+((b=c.colSpan)!==null&&b!==void 0?b:1);if(u.node!=null&&E!==u.node.colIndex){let S=u.getMutableNode();S.colIndex=E}}}}setProps(t,r,n,o,a){let i,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(i=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=i):i=this.getMutableNode(),c.ref=r,i.props=c,i.rendered=o,i.render=a,i.value=l,i.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==i.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(i.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var o,a;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((a=t.parentNode)===null||a===void 0?void 0:a.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,l=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),l&&t.ownerDocument.markDirty(l),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},vB=class extends B${get isConnected(){return this.isMounted}createElement(e){return new hc(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let r of e)this.addNode(r);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof hc&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof hc&&(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,o,a;this.nextCollection.commit((o=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&o!==void 0?o:null,(a=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&a!==void 0?a:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function j$(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:a=[]}=e,i=p.useMemo(()=>new WeakMap,a);return p.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=i.get(c);if(!d){d=t(c);var l,s;let f=(s=(l=d.props.id)!==null&&l!==void 0?l:c.key)!==null&&s!==void 0?s:c.id;if(f==null)throw new Error("Could not determine key for item");n&&(f=n+":"+f),d=p.cloneElement(d,o?{key:f,id:f,value:c}:{key:f}),i.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,i,n,o])}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var pl=p.createContext(!1);function EB(e){if(p.useContext(pl))return h.createElement(h.Fragment,null,e.children);let t=h.createElement(pl.Provider,{value:!0},e.children);return h.createElement("template",{"data-react-aria-hidden":!0},t)}function jp(e){let t=(r,n)=>p.useContext(pl)?null:e(r,n);return t.displayName=e.displayName||e.name,p.forwardRef(t)}function SB(){return p.useContext(pl)}var H$=p.createContext(!1),ca=p.createContext(null);function U$(e){if(p.useContext(ca))return e.content;let{collection:t,document:r}=CB(e.createCollection);return h.createElement(h.Fragment,null,h.createElement(EB,null,h.createElement(ca.Provider,{value:r},e.content)),h.createElement(xB,{render:e.children,collection:t}))}function xB({collection:e,render:t}){return t(e)}function $B(e,t,r){let n=Cn(),o=p.useRef(n);o.current=n;let a=p.useCallback(()=>o.current?r():t(),[t,r]);return FL.useSyncExternalStore(e,a)}var wB=typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore:$B;function CB(e){let[t]=p.useState(()=>new vB(e?.()||new bB)),r=p.useCallback(i=>t.subscribe(i),[t]),n=p.useCallback(()=>{let i=t.getCollection();return t.isSSR&&t.resetAfterSSR(),i},[t]),o=p.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),a=wB(r,n,o);return de(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:a,document:t}}var Wd=p.createContext(null);function _B(e){var t;return t=class extends Tn{},t.type=e,t}function K$(e,t,r,n,o,a){typeof e=="string"&&(e=_B(e));let i=p.useCallback(s=>{s?.setProps(t,r,e,n,a)},[t,r,n,a,e]),l=p.useContext(Wd);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,a),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?h.createElement(Wd.Provider,{value:s},o):null}return h.createElement(e.type,{ref:i},o)}function as(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=p.forwardRef((o,a)=>{let i=p.useContext(ll);if(!p.useContext(H$)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,a)}return K$(e,o,a,"children"in o?o.children:null,null,l=>h.createElement(ll.Provider,{value:i},h.createElement(r,{node:l})))});return n.displayName=t.name,n}function Hp(e,t,r=z$){let n=({node:a})=>t(a.props,a.props.ref,a),o=p.forwardRef((a,i)=>{let l=r(a);var s;return(s=K$(e,a,i,null,l,u=>h.createElement(n,{node:u})))!==null&&s!==void 0?s:h.createElement(h.Fragment,null)});return o.displayName=t.name,o}function z$(e){return j$({...e,addIdAndValue:!0})}var Py=p.createContext(null);function G$(e){let t=p.useContext(Py),r=(t?.dependencies||[]).concat(e.dependencies),n=e.idScope||t?.idScope,o=z$({...e,idScope:n,dependencies:r});return p.useContext(ca)&&(o=h.createElement(TB,null,o)),t=p.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),h.createElement(Py.Provider,{value:t},o)}function TB({children:e}){let t=p.useContext(ca),r=p.useMemo(()=>h.createElement(ca.Provider,{value:null},h.createElement(H$.Provider,{value:!0},e)),[e]);return Cn()?h.createElement(Wd.Provider,{value:t},r):Sl.createPortal(r,t)}var W$=p.createContext({});jp(function(e,t){[e,t]=Ze(e,t,W$);let{elementType:r="label",...n}=e;return h.createElement(r,{className:"react-aria-Label",...n,ref:t})});function OB(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:a="label"}=e;t=Ge(t);let i=Ge(),l={};r&&(n=n?`${i} ${n}`:i,l={id:i,htmlFor:a==="label"?t:void 0});let s=Zl({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function AB(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:a,formatOptions:i={style:"percent"}}=e,l=_e(e,{labelable:!0}),{labelProps:s,fieldProps:u}=OB({...e,labelElementType:"span"});t=oa(t,r,n);let c=(t-r)/(n-r),d=YN(i);if(!a&&!o){let f=i.style==="percent"?c:t;o=d.format(f)}return{progressBarProps:te(l,{...u,"aria-valuenow":a?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":a?void 0:o,role:"progressbar"}),labelProps:s}}var V$=p.createContext(null);p.forwardRef(function(e,t){[e,t]=Ze(e,t,V$);let{value:r=0,minValue:n=0,maxValue:o=100,isIndeterminate:a=!1}=e;r=oa(r,n,o);let[i,l]=WS(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=AB({...e,label:l}),c=a?void 0:(r-n)/(o-n)*100,d=vt({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:a}}),f=_e(e,{global:!0});return h.createElement("div",{...te(f,d,s),ref:t,slot:e.slot||void 0},h.createElement(W$.Provider,{value:{...u,ref:i,elementType:"span"}},d.children))});function RB(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:a,onPressEnd:i,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:g,rel:m,type:y="button"}=e,v;r==="button"?v={type:y,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:v={role:"button",href:r==="a"&&!n?f:void 0,target:r==="a"?g:void 0,type:r==="input"?y:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?m:void 0};let{pressProps:b,isPressed:E}=Ca({onPressStart:a,onPressEnd:i,onPressChange:s,onPress:o,onPressUp:l,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:S}=_a(e,t);c&&(S.tabIndex=n?-1:S.tabIndex);let x=te(S,b,_e(e,{labelable:!0}));return{isPressed:E,buttonProps:te(v,x,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}var q$=p.createContext({});jp(function(e,t){[e,t]=Ze(e,t,q$),e=DB(e);let r=e,{isPending:n}=r,{buttonProps:o,isPressed:a}=RB(e,t),{focusProps:i,isFocused:l,isFocusVisible:s}=rs(e),{hoverProps:u,isHovered:c}=yo({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||a)&&!n,isFocused:l,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},f=vt({...e,values:d,defaultClassName:"react-aria-Button"}),g=Ge(o.id),m=Ge(),y=o["aria-labelledby"];n&&(y?y=`${y} ${m}`:o["aria-label"]&&(y=`${g} ${m}`));let v=p.useRef(n);p.useEffect(()=>{let E={"aria-labelledby":y||g};(!v.current&&l&&n||v.current&&l&&!n)&&Bc(E,"assertive"),v.current=n},[n,l,y,g]);let b=_e(e,{global:!0});return delete b.onClick,h.createElement("button",{...te(b,f,o,i,u),type:o.type==="submit"&&n?"button":o.type,id:g,ref:t,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":n?"true":o["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":l||void 0,"data-pending":n||void 0,"data-focus-visible":s||void 0},h.createElement(V$.Provider,{value:{id:m}},f.children))});function DB(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var Up=p.createContext(null),Iy=p.createContext(null),PB=p.forwardRef(function(e,t){[e,t]=Ze(e,t,Up);let r=p.useContext(ls),n=Ta(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,a=PS(t,o.isOpen)||e.isExiting||!1,i=SB(),{direction:l}=$r();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),h.createElement(h.Fragment,null,s)}return o&&!o.isOpen&&!a?null:h.createElement(IB,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:a,dir:l})});function IB({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let a=p.useRef(null),i=p.useRef(null),l=p.useContext(Iy),s=l&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:f,placement:g,triggerAnchorPoint:m}=C9({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:a,groupRef:s?l:i},e),y=o.popoverRef,v=DS(y,!!g)||o.isEntering||!1,b=vt({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:g,isEntering:v,isExiting:t}}),E=!o.isNonModal||o.trigger==="SubmenuTrigger",[S,x]=p.useState(!1);de(()=>{y.current&&x(E&&!y.current.querySelector("[role=dialog]"))},[y,E]),p.useEffect(()=>{S&&o.trigger!=="SubmenuTrigger"&&y.current&&!y.current.contains(document.activeElement)&&Nr(y.current)},[S,y,o.trigger]);let C=p.useMemo(()=>{let L=b.children;if(n)for(let I of n)L=h.createElement(I.Provider,{value:null},L);return L},[b.children,n]),$={...c.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...b.style},T=h.createElement("div",{...te(_e(o,{global:!0}),c),...b,role:S?"dialog":void 0,tabIndex:S?-1:void 0,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],ref:y,slot:o.slot||void 0,style:$,dir:o.dir,"data-trigger":o.trigger,"data-placement":g,"data-entering":v||void 0,"data-exiting":t||void 0},!o.isNonModal&&h.createElement(yy,{onDismiss:e.close}),h.createElement(Rp.Provider,{value:{...f,placement:g,ref:a}},C),h.createElement(yy,{onDismiss:e.close}));if(!s)return h.createElement(fl,{...o,shouldContainFocus:S,isExiting:t,portalContainer:r},!o.isNonModal&&e.isOpen&&h.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),h.createElement("div",{ref:i,style:{display:"contents"}},h.createElement(Iy.Provider,{value:i},T)));var O;return h.createElement(fl,{...o,shouldContainFocus:S,isExiting:t,portalContainer:(O=r??l?.current)!==null&&O!==void 0?O:void 0},T)}var Y$=p.createContext(null);Hp("section",(e,t,r)=>{let{name:n,render:o}=p.useContext(Y$);return o(e,t,r,"react-aria-Section")});var X$={CollectionRoot({collection:e,renderDropIndicator:t}){return Fy(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Fy(e,t,r)}};function Fy(e,t,r){return j$({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let o=n.render(n);return!r||n.type!=="item"?o:h.createElement(h.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),o,FB(e,n,r))}})}function FB(e,t,r){let n=t.key,o=e.getKeyAfter(n),a=o!=null?e.getItem(o):null;for(;a!=null&&a.type!=="item";)o=e.getKeyAfter(a.key),a=o!=null?e.getItem(o):null;let i=t.nextKey!=null?e.getItem(t.nextKey):null;for(;i!=null&&i.type!=="item";)i=i.nextKey!=null?e.getItem(i.nextKey):null;let l=[];if(i==null){let s=t;for(;s&&(!a||s.parentKey!==a.parentKey&&a.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});p.isValidElement(u)&&l.push(p.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var Ra=p.createContext(X$);function J$(e){return p.useMemo(()=>e!=null?new Set([e]):null,[e])}var Ly=p.createContext(null),LB=p.createContext(null),Z$=p.createContext({});as(L$,function(e,t){return[e,t]=Ze(e,t,Z$),h.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var Q$=p.createContext({});p.forwardRef(function(e,t){return[e,t]=Ze(e,t,Q$),h.createElement("kbd",{dir:"ltr",...e,ref:t})});function kB(e){let t=_e(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var ew=p.createContext({}),tw=class extends Tn{filter(e,t){let r=t.getItem(this.prevKey);if(r&&r.type!=="separator"){let n=this.clone();return t.addDescendants(n,e),n}return null}};tw.type="separator";as(tw,function(e,t){[e,t]=Ze(e,t,ew);let{elementType:r,orientation:n,style:o,className:a,slot:i,...l}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=kB({...l,elementType:r,orientation:n}),c=_e(e,{global:!0});return h.createElement(s,{...te(c,u),style:o,className:a??"react-aria-Separator",ref:t,slot:i||void 0})});var rw=new WeakMap;function Vd(e){return Lk()?e.altKey:e.ctrlKey}function Pi(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,a=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return a&&(o=`[data-collection="${CSS.escape(a)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}var nw=new WeakMap;function NB(e){let t=Ge();return nw.set(e,t),t}function MB(e){return nw.get(e)}var BB=1e3;function jB(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=p.useRef({search:"",timeout:void 0}).current,a=i=>{let l=HB(i.key);if(!(!l||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||o.search.length===0&&l===" ")){if(l===" "&&o.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),o.search+=l,t.getKeyForSearch!=null){let s=t.getKeyForSearch(o.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(o.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},BB)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function HB(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function ow(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:a=!1,disallowEmptySelection:i=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:g,scrollRef:m=n,linkBehavior:y="action"}=e,{direction:v}=$r(),b=Xl(),E=A=>{var D;if(A.altKey&&A.key==="Tab"&&A.preventDefault(),!(!((D=n.current)===null||D===void 0)&&D.contains(A.target)))return;let M=(V,Y)=>{if(V!=null){if(t.isLink(V)&&y==="selection"&&u&&!Vd(A)){Sl.flushSync(()=>{t.setFocusedKey(V,Y)});let ee=Pi(n,V),se=t.getItemProps(V);ee&&b.open(ee,A,se.href,se.routerOptions);return}if(t.setFocusedKey(V,Y),t.isLink(V)&&y==="override")return;A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&!Vd(A)&&t.replaceSelection(V)}};switch(A.key){case"ArrowDown":if(r.getKeyBelow){var k,K,j;let V=t.focusedKey!=null?(k=r.getKeyBelow)===null||k===void 0?void 0:k.call(r,t.focusedKey):(K=r.getFirstKey)===null||K===void 0?void 0:K.call(r);V==null&&a&&(V=(j=r.getFirstKey)===null||j===void 0?void 0:j.call(r,t.focusedKey)),V!=null&&(A.preventDefault(),M(V))}break;case"ArrowUp":if(r.getKeyAbove){var z,U,H;let V=t.focusedKey!=null?(z=r.getKeyAbove)===null||z===void 0?void 0:z.call(r,t.focusedKey):(U=r.getLastKey)===null||U===void 0?void 0:U.call(r);V==null&&a&&(V=(H=r.getLastKey)===null||H===void 0?void 0:H.call(r,t.focusedKey)),V!=null&&(A.preventDefault(),M(V))}break;case"ArrowLeft":if(r.getKeyLeftOf){var G,W,q;let V=t.focusedKey!=null?(G=r.getKeyLeftOf)===null||G===void 0?void 0:G.call(r,t.focusedKey):null;V==null&&a&&(V=v==="rtl"?(W=r.getFirstKey)===null||W===void 0?void 0:W.call(r,t.focusedKey):(q=r.getLastKey)===null||q===void 0?void 0:q.call(r,t.focusedKey)),V!=null&&(A.preventDefault(),M(V,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var ge,Ne,Z;let V=t.focusedKey!=null?(ge=r.getKeyRightOf)===null||ge===void 0?void 0:ge.call(r,t.focusedKey):null;V==null&&a&&(V=v==="rtl"?(Ne=r.getLastKey)===null||Ne===void 0?void 0:Ne.call(r,t.focusedKey):(Z=r.getFirstKey)===null||Z===void 0?void 0:Z.call(r,t.focusedKey)),V!=null&&(A.preventDefault(),M(V,v==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&A.shiftKey)return;A.preventDefault();let V=r.getFirstKey(t.focusedKey,Ln(A));t.setFocusedKey(V),V!=null&&(Ln(A)&&A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&t.replaceSelection(V))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&A.shiftKey)return;A.preventDefault();let V=r.getLastKey(t.focusedKey,Ln(A));t.setFocusedKey(V),V!=null&&(Ln(A)&&A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&t.replaceSelection(V))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let V=r.getKeyPageBelow(t.focusedKey);V!=null&&(A.preventDefault(),M(V))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let V=r.getKeyPageAbove(t.focusedKey);V!=null&&(A.preventDefault(),M(V))}break;case"a":Ln(A)&&t.selectionMode==="multiple"&&l!==!0&&(A.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(A.stopPropagation(),A.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(A.shiftKey)n.current.focus();else{let V=ut(n.current,{tabbable:!0}),Y,ee;do ee=V.lastChild(),ee&&(Y=ee);while(ee);Y&&!Y.contains(document.activeElement)&&lt(Y)}break}}},S=p.useRef({top:0,left:0});ko(m,"scroll",g?void 0:()=>{var A,D,M,k;S.current={top:(M=(A=m.current)===null||A===void 0?void 0:A.scrollTop)!==null&&M!==void 0?M:0,left:(k=(D=m.current)===null||D===void 0?void 0:D.scrollLeft)!==null&&k!==void 0?k:0}});let x=A=>{if(t.isFocused){A.currentTarget.contains(A.target)||t.setFocused(!1);return}if(A.currentTarget.contains(A.target)){if(t.setFocused(!0),t.focusedKey==null){var D,M;let j=U=>{U!=null&&(t.setFocusedKey(U),u&&!t.isSelected(U)&&t.replaceSelection(U))},z=A.relatedTarget;var k,K;z&&A.currentTarget.compareDocumentPosition(z)&Node.DOCUMENT_POSITION_FOLLOWING?j((k=t.lastSelectedKey)!==null&&k!==void 0?k:(D=r.getLastKey)===null||D===void 0?void 0:D.call(r)):j((K=t.firstSelectedKey)!==null&&K!==void 0?K:(M=r.getFirstKey)===null||M===void 0?void 0:M.call(r))}else!g&&m.current&&(m.current.scrollTop=S.current.top,m.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&m.current){let j=Pi(n,t.focusedKey);j instanceof HTMLElement&&(!j.contains(document.activeElement)&&!d&&lt(j),sa()==="keyboard"&&k0(j,{containingElement:n.current}))}}},C=A=>{A.currentTarget.contains(A.relatedTarget)||t.setFocused(!1)},$=p.useRef(!1);ko(n,Jk,d?A=>{let{detail:D}=A;A.stopPropagation(),t.setFocused(!0),D?.focusStrategy==="first"&&($.current=!0)}:void 0);let T=He(()=>{var A,D;let M=(D=(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))!==null&&D!==void 0?D:null;if(M==null){let k=Me();bx(n.current),vx(k,null),t.collection.size>0&&($.current=!1)}else t.setFocusedKey(M),$.current=!1});F0(()=>{$.current&&T()},[t.collection,T]);let O=He(()=>{t.collection.size>0&&($.current=!1)});F0(()=>{O()},[t.focusedKey,O]),ko(n,Xk,d?A=>{var D;A.stopPropagation(),t.setFocused(!1),!((D=A.detail)===null||D===void 0)&&D.clearFocusKey&&t.setFocusedKey(null)}:void 0);let L=p.useRef(o),I=p.useRef(!1);p.useEffect(()=>{if(L.current){var A,D;let K=null;var M;o==="first"&&(K=(M=(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))!==null&&M!==void 0?M:null);var k;o==="last"&&(K=(k=(D=r.getLastKey)===null||D===void 0?void 0:D.call(r))!==null&&k!==void 0?k:null);let j=t.selectedKeys;if(j.size){for(let z of j)if(t.canSelectItem(z)){K=z;break}}t.setFocused(!0),t.setFocusedKey(K),K==null&&!d&&n.current&&Nr(n.current),t.collection.size>0&&(L.current=!1,I.current=!0)}});let _=p.useRef(t.focusedKey),N=p.useRef(null);p.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==_.current||I.current)&&m.current&&n.current){let A=sa(),D=Pi(n,t.focusedKey);if(!(D instanceof HTMLElement))return;(A==="keyboard"||I.current)&&(N.current&&cancelAnimationFrame(N.current),N.current=requestAnimationFrame(()=>{m.current&&(AS(m.current,D),A!=="virtual"&&k0(D,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&_.current!=null&&n.current&&Nr(n.current),_.current=t.focusedKey,I.current=!1}),p.useEffect(()=>()=>{N.current&&cancelAnimationFrame(N.current)},[]),ko(n,"react-aria-focus-scope-restore",A=>{A.preventDefault(),t.setFocused(!0)});let B={onKeyDown:E,onFocus:x,onBlur:C,onMouseDown(A){m.current===A.target&&A.preventDefault()}},{typeSelectProps:w}=jB({keyboardDelegate:r,selectionManager:t});c||(B=te(w,B));let R;d||(R=t.focusedKey==null?0:-1);let P=NB(t.collection);return{collectionProps:te(B,{tabIndex:R,"data-collection":P})}}function aw(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:a,shouldUseVirtualFocus:i,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=Xl();t=Ge(t);let g=k=>{if(k.pointerType==="keyboard"&&Vd(k))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let K=r.getItemProps(n);f.open(o.current,k,K.href,K.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):k&&k.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||k&&(Ln(k)||k.pointerType==="touch"||k.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};p.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(i?bx(o.current):l?l():document.activeElement!==o.current&&o.current&&Nr(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,i]),s=s||r.isDisabled(n);let m={};!i&&!s?m={tabIndex:n===r.focusedKey?0:-1,onFocus(k){k.target===o.current&&r.setFocusedKey(n)}}:s&&(m.onMouseDown=k=>{k.preventDefault()});let y=r.isLink(n)&&d==="override",v=u&&e.UNSTABLE_itemBehavior==="action",b=r.isLink(n)&&d!=="selection"&&d!=="none",E=!s&&r.canSelectItem(n)&&!y&&!v,S=(u||b)&&!s,x=S&&(r.selectionBehavior==="replace"?!E:!E||r.isEmpty),C=S&&E&&r.selectionBehavior==="replace",$=x||C,T=p.useRef(null),O=$&&E,L=p.useRef(!1),I=p.useRef(!1),_=r.getItemProps(n),N=k=>{if(u){var K;u(),(K=o.current)===null||K===void 0||K.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&f.open(o.current,k,_.href,_.routerOptions)},B={ref:o};if(a?(B.onPressStart=k=>{T.current=k.pointerType,L.current=O,k.pointerType==="keyboard"&&(!$||Ny())&&g(k)},c?(B.onPressUp=x?void 0:k=>{k.pointerType==="mouse"&&E&&g(k)},B.onPress=x?N:k=>{k.pointerType!=="keyboard"&&k.pointerType!=="mouse"&&E&&g(k)}):B.onPress=k=>{if(x||C&&k.pointerType!=="mouse"){if(k.pointerType==="keyboard"&&!ky())return;N(k)}else k.pointerType!=="keyboard"&&E&&g(k)}):(B.onPressStart=k=>{T.current=k.pointerType,L.current=O,I.current=x,E&&(k.pointerType==="mouse"&&!x||k.pointerType==="keyboard"&&(!S||Ny()))&&g(k)},B.onPress=k=>{(k.pointerType==="touch"||k.pointerType==="pen"||k.pointerType==="virtual"||k.pointerType==="keyboard"&&$&&ky()||k.pointerType==="mouse"&&I.current)&&($?N(k):E&&g(k))}),m["data-collection"]=MB(r.collection),m["data-key"]=n,B.preventFocusOnPress=i,i&&(B=te(B,{onPressStart(k){k.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(k){k.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),_)for(let k of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])_[k]&&(B[k]=wa(B[k],_[k]));let{pressProps:w,isPressed:R}=Ca(B),P=C?k=>{T.current==="mouse"&&(k.stopPropagation(),k.preventDefault(),N(k))}:void 0,{longPressProps:A}=D7({isDisabled:!O,onLongPress(k){k.pointerType==="touch"&&(g(k),r.setSelectionBehavior("toggle"))}}),D=k=>{T.current==="touch"&&L.current&&k.preventDefault()},M=d!=="none"&&r.isLink(n)?k=>{yn.isOpening||k.preventDefault()}:void 0;return{itemProps:te(m,E||x||i&&!s?w:{},O?A:{},{onDoubleClick:P,onDragStartCapture:D,onClick:M,id:t},i?{onMouseDown:k=>k.preventDefault()}:void 0),isPressed:R,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:E,hasAction:$}}function ky(){return window.event?.key==="Enter"}function Ny(){let e=window.event;return e?.key===" "||e?.code==="Space"}var My=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?Pi(this.ref,e):null;if(!r)return null;let n=t.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-n.left-t.clientLeft+t.scrollLeft,y:o.top-n.top-t.clientTop+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var t,r;return{width:(t=e?.scrollWidth)!==null&&t!==void 0?t:0,height:(r=e?.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var t,r,n,o;return{x:(t=e?.scrollLeft)!==null&&t!==void 0?t:0,y:(r=e?.scrollTop)!==null&&r!==void 0?r:0,width:(n=e?.clientWidth)!==null&&n!==void 0?n:0,height:(o=e?.clientHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}},UB=class{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;r!=null;){let n=this.collection.getItem(r);if(n?.type==="item"&&!this.isDisabled(n))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}findKey(e,t,r){let n=e,o=this.layoutDelegate.getItemRect(n);if(!o||n==null)return null;let a=o;do{if(n=t(n),n==null)break;o=this.layoutDelegate.getItemRect(n)}while(o&&r(a,o)&&n!=null);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Qn(t))return this.getFirstKey();let n=e;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!Qn(t))return this.getLastKey();let n=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;n!=null;){let o=r.getItem(n);if(!o)return null;let a=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(a,e)===0)return n;n=this.getNextKey(n)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new My(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new My(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function KB(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:a,layoutDelegate:i}=e,l=XN({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=p.useMemo(()=>a||new UB({collection:r,disabledKeys:n,disabledBehavior:s,ref:o,collator:l,layoutDelegate:i}),[a,i,r,n,o,l,s]),{collectionProps:c}=ow({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function zB(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:a,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let l=_e(e,{labelable:!0}),{listProps:s}=KB({...i,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return rw.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:te(l,{onKeyDown:o,onKeyUp:a},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function iw(e){return null}iw.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:o}=e,a=e.title||e.children,i=e.textValue||(typeof a=="string"?a:"")||e["aria-label"]||"";!i&&t?.suppressTextValueWarning,yield{type:"item",props:e,rendered:a,textValue:i,"aria-label":e["aria-label"],hasChildNodes:GB(e),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(n){let l=[];h.Children.forEach(o,s=>{l.push({type:"item",element:s})}),yield*l}}}};function GB(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&h.Children.count(e.children)>0)}var WB=iw,VB=class{build(e,t){return this.context=t,By(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(h.isValidElement(t)&&t.type===h.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if(typeof t=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let n=0;for(let o of r)yield*this.getFullNode({value:o,index:n},{renderer:t}),n++}else{let n=[];h.Children.forEach(t,a=>{a&&n.push(a)});let o=0;for(let a of n){let i=this.getFullNode({element:a,index:o},{});for(let l of i)o++,yield l}}}getKey(e,t,r,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let o=t.value;if(o!=null){var a;let i=(a=o.key)!==null&&a!==void 0?a:o.id;if(i==null)throw new Error("No key found for item");return i}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,n){if(h.isValidElement(e.element)&&e.element.type===h.Fragment){let y=[];h.Children.forEach(e.element.props.children,b=>{y.push(b)});var o;let v=(o=e.index)!==null&&o!==void 0?o:0;for(let b of y)yield*this.getFullNode({element:b,index:v++},t,r,n);return}let a=e.element;if(!a&&e.value&&t&&t.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=n?n.key:null,yield y;return}a=t.renderer(e.value)}if(h.isValidElement(a)){let y=a.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let S=a.type;throw new Error(`Unknown element <${S}> in collection.`)}let v=y.getCollectionNode(a.props,this.context);var i;let b=(i=e.index)!==null&&i!==void 0?i:0,E=v.next();for(;!E.done&&E.value;){let S=E.value;e.index=b;var l;let x=(l=S.key)!==null&&l!==void 0?l:null;x==null&&(x=S.element?null:this.getKey(a,e,t,r));let C=[...this.getFullNode({...S,key:x,index:b,wrapper:qB(e.wrapper,S.wrapper)},this.getChildState(t,S),r?`${r}${a.key}`:a.key,n)];for(let $ of C){var s,u;$.value=(u=(s=S.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,$.value&&this.cache.set($.value,$);var c;if(e.type&&$.type!==e.type)throw new Error(`Unsupported type <${gc($.type)}> in <${gc((c=n?.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${gc(e.type)}> is supported.`);b++,yield $}E=v.next(C)}return}if(e.key==null||e.type==null)return;let d=this;var f,g;let m={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(f=e.value)!==null&&f!==void 0?f:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(g=e.textValue)!==null&&g!==void 0?g:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:By(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let v of e.childNodes()){v.key!=null&&(v.key=`${m.key}${v.key}`);let b=d.getFullNode({...v,index:y},d.getChildState(t,v),m.key,m);for(let E of b)y++,yield E}})};yield m}constructor(){this.cache=new WeakMap}};function By(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function qB(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function gc(e){return e[0].toUpperCase()+e.slice(1)}function lw(e,t,r){let n=p.useMemo(()=>new VB,[]),{children:o,items:a,collection:i}=e;return p.useMemo(()=>{if(i)return i;let l=n.build({children:o,items:a},r);return t(l)},[n,o,a,i,r,t])}function sw(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function YB(e){return XB(e)}function XB(e,t){for(let r of e)return r}function mc(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...jy(e,t),t],o=[...jy(e,r),r],a=n.slice(0,o.length).findIndex((i,l)=>i!==o[l]);return a!==-1?(t=n[a],r=o[a],t.index-r.index):n.findIndex(i=>i===r)>=0?1:(o.findIndex(i=>i===t)>=0,-1)}function jy(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var Hy=new WeakMap;function JB(e){let t=Hy.get(e);if(t!=null)return t;let r=0,n=o=>{for(let a of o)a.type==="section"?n(sw(a,e)):a.type==="item"&&r++};return n(e),Hy.set(e,r),r}function ZB(e,t,r){let{id:n,key:o,closeOnSelect:a,isVirtualized:i,"aria-haspopup":l,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:f,onClick:g,onHoverStart:m,onHoverChange:y,onHoverEnd:v,onKeyDown:b,onKeyUp:E,onFocus:S,onFocusChange:x,onBlur:C,selectionManager:$=t.selectionManager}=e,T=!!l,O=T&&e["aria-expanded"]==="true";var L;let I=(L=e.isDisabled)!==null&&L!==void 0?L:$.isDisabled(o);var _;let N=(_=e.isSelected)!==null&&_!==void 0?_:$.isSelected(o),B=rw.get(t),w=t.collection.getItem(o),R=e.onClose||B.onClose,P=Xl(),A=()=>{var J;if(!T&&(!(w==null||(J=w.props)===null||J===void 0)&&J.onAction?w.props.onAction():e.onAction&&e.onAction(o),B.onAction)){let tt=B.onAction;tt(o)}},D="menuitem";T||($.selectionMode==="single"?D="menuitemradio":$.selectionMode==="multiple"&&(D="menuitemcheckbox"));let M=Ti(),k=Ti(),K=Ti(),j={id:n,"aria-disabled":I||void 0,role:D,"aria-label":e["aria-label"],"aria-labelledby":M,"aria-describedby":[k,K].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};$.selectionMode!=="none"&&!T&&(j["aria-checked"]=N),i&&(j["aria-posinset"]=w?.index,j["aria-setsize"]=JB(t.collection));let z=p.useRef(!1),U=J=>{d?.(J),z.current=J},H=p.useRef(null),G=J=>{J.pointerType!=="keyboard"&&(H.current={pointerType:J.pointerType}),J.pointerType==="mouse"&&(z.current||J.target.click()),u?.(J)},W=J=>{var tt,Rt;g?.(J),A(),Hk(J,P,w.props.href,w?.props.routerOptions);let pt=((tt=H.current)===null||tt===void 0?void 0:tt.pointerType)==="keyboard"?((Rt=H.current)===null||Rt===void 0?void 0:Rt.key)==="Enter"||$.selectionMode==="none"||$.isLink(o):$.selectionMode!=="multiple"||$.isLink(o);pt=a??pt,R&&!T&&pt&&R(),H.current=null},{itemProps:q,isFocused:ge}=aw({id:n,selectionManager:$,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:B.shouldUseVirtualFocus}),{pressProps:Ne,isPressed:Z}=Ca({onPressStart:s,onPress:c,onPressUp:G,onPressChange:U,onPressEnd:f,isDisabled:I}),{hoverProps:V}=yo({isDisabled:I,onHoverStart(J){!la()&&!(O&&l)&&($.setFocused(!0),$.setFocusedKey(o)),m?.(J)},onHoverChange:y,onHoverEnd:v}),{keyboardProps:Y}=zS({onKeyDown:J=>{if(J.repeat){J.continuePropagation();return}switch(J.key){case" ":H.current={pointerType:"keyboard",key:" "},J.target.click();break;case"Enter":H.current={pointerType:"keyboard",key:"Enter"},J.target.tagName!=="A"&&J.target.click();break;default:T||J.continuePropagation(),b?.(J);break}},onKeyUp:E}),{focusProps:ee}=Tp({onBlur:C,onFocus:S,onFocusChange:x}),se=_e(w?.props);delete se.id;let et=_S(w?.props);return{menuItemProps:{...j,...te(se,et,T?{onFocus:q.onFocus,"data-collection":q["data-collection"],"data-key":q["data-key"]}:q,Ne,V,Y,ee,B.shouldUseVirtualFocus||T?{onMouseDown:J=>J.preventDefault()}:void 0,I?void 0:{onClick:W}),tabIndex:q.tabIndex!=null&&O&&!B.shouldUseVirtualFocus?-1:q.tabIndex},labelProps:{id:M},descriptionProps:{id:k},keyboardShortcutProps:{id:K},isFocused:ge,isFocusVisible:ge&&$.isFocused&&la()&&!O,isSelected:N,isPressed:Z,isDisabled:I}}function QB(e){let{heading:t,"aria-label":r}=e,n=Ge();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var li=2,ej=50,tj=1e3,Uy=Math.PI/12;function rj(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:o}=e,a=p.useRef(void 0),i=p.useRef(void 0),l=p.useRef(0),s=p.useRef(void 0),u=p.useRef(void 0),c=p.useRef(void 0),d=p.useRef(2),[f,g]=p.useState(!1);nl({ref:r,onResize:()=>{r.current&&(i.current=r.current.getBoundingClientRect(),c.current=void 0)}});let m=()=>{g(!1),d.current=li,a.current=void 0},y=b7(),v=He(b=>{f&&b.preventDefault()});p.useEffect(()=>{f&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,f]),p.useEffect(()=>{let b=r.current,E=t.current;if(o||!b||!n||y!=="pointer"||!E){m();return}i.current=b.getBoundingClientRect();let S=x=>{if(x.pointerType==="touch"||x.pointerType==="pen")return;let C=Date.now();if(C-l.current<ej)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:$,clientY:T}=x;if(!a.current){a.current={x:$,y:T};return}if(!i.current)return;if(c.current||(c.current=$>i.current.right?"left":"right"),$<E.getBoundingClientRect().left||$>E.getBoundingClientRect().right||T<E.getBoundingClientRect().top||T>E.getBoundingClientRect().bottom){m();return}let O=a.current.x,L=a.current.y,I=c.current==="right"?i.current.left-O:O-i.current.right,_=Math.atan2(L-i.current.top,I)+Uy,N=Math.atan2(L-i.current.bottom,I)-Uy,B=Math.atan2(L-T,c.current==="left"?-($-O):$-O),w=B<_&&B>N;d.current=w?Math.min(d.current+1,li):Math.max(d.current-1,0),d.current>=li?g(!0):g(!1),l.current=C,a.current={x:$,y:T},w&&(s.current=setTimeout(()=>{m(),u.current=setTimeout(()=>{let R=document.elementFromPoint($,T);R&&E.contains(R)&&R.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},tj))};return window.addEventListener("pointermove",S),window.addEventListener("pointerdown",v,!0),()=>{window.removeEventListener("pointermove",S),window.removeEventListener("pointerdown",v,!0),clearTimeout(s.current),clearTimeout(u.current),d.current=li}},[o,n,t,y,g,v,r])}function nj(e,t,r){let{parentMenuRef:n,submenuRef:o,type:a="menu",isDisabled:i,delay:l=200,shouldUseVirtualFocus:s}=e,u=Ge(),c=Ge(),{direction:d}=$r(),f=p.useRef(void 0),g=p.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0)},[f]),m=He(O=>{g(),t.open(O)}),y=He(()=>{g(),t.close()});de(()=>()=>{g()},[g]);let v=O=>{if(O.currentTarget.contains(document.activeElement))switch(O.key){case"ArrowLeft":d==="ltr"&&O.currentTarget.contains(O.target)&&(O.preventDefault(),O.stopPropagation(),y(),!s&&r.current&&lt(r.current));break;case"ArrowRight":d==="rtl"&&O.currentTarget.contains(O.target)&&(O.preventDefault(),O.stopPropagation(),y(),!s&&r.current&&lt(r.current));break;case"Escape":var L;!((L=o.current)===null||L===void 0)&&L.contains(O.target)&&(O.stopPropagation(),y(),!s&&r.current&&lt(r.current));break}};var b;let E={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...a==="menu"&&{onClose:t.closeAll,autoFocus:(b=t.focusStrategy)!==null&&b!==void 0?b:void 0,onKeyDown:v}},S=O=>{switch(O.key){case"ArrowRight":i||(d==="ltr"?(O.preventDefault(),t.isOpen||m("first"),a==="menu"&&o?.current&&document.activeElement===r?.current&&lt(o.current)):t.isOpen?y():O.continuePropagation());break;case"ArrowLeft":i||(d==="rtl"?(O.preventDefault(),t.isOpen||m("first"),a==="menu"&&o?.current&&document.activeElement===r?.current&&lt(o.current)):t.isOpen?y():O.continuePropagation());break;default:O.continuePropagation();break}},x=O=>{!i&&(O.pointerType==="virtual"||O.pointerType==="keyboard")&&m("first")},C=O=>{!i&&(O.pointerType==="touch"||O.pointerType==="mouse")&&m()},$=O=>{i||(O&&!t.isOpen?f.current||(f.current=setTimeout(()=>{m()},l)):O||g())};ko(n,"focusin",O=>{var L;t.isOpen&&!((L=n.current)===null||L===void 0)&&L.contains(O.target)&&O.target!==r.current&&y()});let T=O=>O!==r.current;return rj({menuRef:n,submenuRef:o,isOpen:t.isOpen,isDisabled:i}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":i?void 0:a,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:C,onHoverChange:$,onKeyDown:S,isOpen:t.isOpen},submenuProps:E,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:T}}}function uw(e){let t=Ta(e),[r,n]=p.useState(null),[o,a]=p.useState([]),i=()=>{a([]),t.close()};return{focusStrategy:r,...t,open(l=null){n(l),t.open()},toggle(l=null){n(l),t.toggle()},close(){i()},expandedKeysStack:o,openSubmenu:(l,s)=>{a(u=>s>u.length?u:[...u.slice(0,s),l])},closeSubmenu:(l,s)=>{a(u=>u[s]===l?u.slice(0,s):u)}}}function oj(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:a,close:i}=t,[l]=p.useState(n?.length),s=p.useMemo(()=>n[l]===r,[n,r,l]),[u,c]=p.useState(null),d=p.useCallback(m=>{c(m??null),o(r,l)},[o,l,r]),f=p.useCallback(()=>{c(null),a(r,l)},[a,l,r]),g=p.useCallback(m=>{c(m??null),s?f():d(m)},[f,d,s]);return p.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:f,closeAll:i,submenuLevel:l,setOpen:()=>{},toggle:g}),[s,d,f,i,u,g,l])}var aj=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let r=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&(i.type==="section"||t.has(i.key)))for(let l of i.childNodes)r(l)};for(let i of e)r(i);let n=null,o=0;for(let[i,l]of this.keyMap)n?(n.nextKey=i,l.prevKey=n.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=o++),n=l,n.nextKey=void 0;var a;this.lastKey=(a=n?.key)!==null&&a!==void 0?a:null}},pr=class cw extends Set{constructor(t,r,n){super(t),t instanceof cw?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function ij(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Kp(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:a="all"}=e,i=p.useRef(!1),[,l]=p.useState(!1),s=p.useRef(null),u=p.useRef(null),[,c]=p.useState(null),d=p.useMemo(()=>Ky(e.selectedKeys),[e.selectedKeys]),f=p.useMemo(()=>Ky(e.defaultSelectedKeys,new pr),[e.defaultSelectedKeys]),[g,m]=Ql(d,f,e.onSelectionChange),y=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,b]=p.useState(o);o==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&b("replace");let E=p.useRef(o);return p.useEffect(()=>{o!==E.current&&(b(o),E.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:b,get isFocused(){return i.current},setFocused(S){i.current=S,l(S)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(S,x="first"){s.current=S,u.current=x,c(S)},selectedKeys:g,setSelectedKeys(S){(n||!ij(S,g))&&m(S)},disabledKeys:y,disabledBehavior:a}}function Ky(e,t){return e?e==="all"?"all":new pr(e):t}var zp=class dw{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&mc(this.collection,o,t)<0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&mc(this.collection,o,t)>0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new pr([r],r,r);else{let i=this.state.selectedKeys;var o;let l=(o=i.anchorKey)!==null&&o!==void 0?o:r;n=new pr(i,l,r);var a;for(let s of this.getKeyRange(l,(a=i.currentKey)!==null&&a!==void 0?a:r))n.delete(s);for(let s of this.getKeyRange(r,l))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?mc(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],a=t;for(;a!=null;){let i=this.collection.getItem(a);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&o.push(a),a===r)return o;a=this.collection.getKeyAfter(a)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new pr(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new pr([r],r,r):new pr;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new pr;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let i=this.collection.getItem(n);i?.type==="item"&&t.push(n);var a;i?.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&r((a=(o=YB(sw(i,this.collection)))===null||o===void 0?void 0:o.key)!==null&&a!==void 0?a:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new pr)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new dw(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}};function lj(e){let{onExpandedChange:t}=e,[r,n]=Ql(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Kp(e),a=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=lw(e,p.useCallback(l=>new aj(l,{expandedKeys:r}),[r]),null);return p.useEffect(()=>{o.focusedKey!=null&&!i.getItem(o.focusedKey)&&o.setFocusedKey(null)},[i,o.focusedKey]),{collection:i,expandedKeys:r,disabledKeys:a,toggleKey:l=>{n(sj(r,l))},setExpandedKeys:n,selectionManager:new zp(i,o)}}function sj(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var fw=p.createContext(null),is=p.createContext(null),hl=p.createContext(null),gl=p.createContext(null),pw=p.createContext(null),hw=class extends Tn{filter(e,t,r){let n=e.getItem(this.firstChildKey);if(n&&r(n.textValue,this)){let o=this.clone();return t.addDescendants(o,e),o}return null}};hw.type="submenutrigger";Hp(hw,(e,t,r)=>{let{CollectionBranch:n}=p.useContext(Ra),o=p.useContext(is),a=p.useContext(hl),i=oj({triggerKey:r.key},a),l=p.useRef(null),s=Kt(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=p.useContext(pw),{submenuTriggerProps:d,submenuProps:f,popoverProps:g}=nj({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},i,s);return h.createElement(xr,{values:[[ml,{...d,onAction:void 0,ref:s}],[fw,{ref:l,...f}],[ls,i],[Up,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":f["aria-labelledby"],...g}]]},h.createElement(n,{collection:o.collection,parent:r}),e.children[1])},e=>e.children[0]);p.forwardRef(function(e,t){return[e,t]=Ze(e,t,fw),h.createElement(U$,{content:h.createElement(G$,e)},r=>h.createElement(uj,{props:e,collection:r,menuRef:t}))});function uj({props:e,collection:t,menuRef:r}){[e,r]=Ze(e,r,Ly);let{filter:n,...o}=e,a=p.useMemo(()=>n?t.filter(n):t,[t,n]),i=lj({...e,collection:a,children:void 0}),l=p.useContext(hl),{isVirtualized:s,CollectionRoot:u}=p.useContext(Ra),{menuProps:c}=zB({...e,isVirtualized:s,onClose:e.onClose||l?.close},i,r),d=vt({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:i.collection.size===0}}),f=null;i.collection.size===0&&e.renderEmptyState&&(f=h.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let g=_e(e,{global:!0});return h.createElement(Ip,null,h.createElement("div",{...te(g,d,c),ref:r,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},h.createElement(xr,{values:[[is,i],[ew,{elementType:"div"}],[Y$,{name:"MenuSection",render:gw}],[pw,{parentMenuRef:r,shouldUseVirtualFocus:o?.shouldUseVirtualFocus}],[ml,null],[Ly,null],[LB,null],[gl,i.selectionManager],[hl,l??uw({})]]},h.createElement(u,{collection:i.collection,persistedKeys:J$(i.selectionManager.focusedKey),scrollRef:r})),f))}var cj=class extends zp{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function gw(e,t,r,n="react-aria-MenuSection"){var o,a;let i=p.useContext(is),{CollectionBranch:l}=p.useContext(Ra),[s,u]=WS();var c;let{headingProps:d,groupProps:f}=QB({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),g=vt({defaultClassName:n,className:(o=r.props)===null||o===void 0?void 0:o.className,style:(a=r.props)===null||a===void 0?void 0:a.style,values:{}}),m=p.useContext(gl),y=Kp(e),v=e.selectionMode!=null?new cj(m,y):m,b=_e(e,{global:!0});return delete b.id,h.createElement("section",{...te(b,g,f),ref:t},h.createElement(xr,{values:[[Z$,{...d,ref:s}],[gl,v]]},h.createElement(l,{collection:i.collection,parent:r})))}Hp(N$,gw);var ml=p.createContext(null);as(k$,function(e,t,r){var n;[e,t]=Ze(e,t,ml);let o=(n=Ap(ml))===null||n===void 0?void 0:n.id,a=p.useContext(is),i=Kt(t),l=p.useContext(gl),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...f}=ZB({...e,id:o,key:r.key,selectionManager:l},a,i),{hoverProps:g,isHovered:m}=yo({isDisabled:f.isDisabled}),y=vt({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:m,isFocusVisible:f.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),v=e.href?"a":"div",b=_e(e,{global:!0});return delete b.id,delete b.onClick,h.createElement(v,{...te(b,y,s,g),ref:i,"data-disabled":f.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},h.createElement(xr,{values:[[b$,{slots:{[sl]:u,label:u,description:c}}],[Q$,d]]},y.children))});function dj(e,t){let{role:r="dialog"}=e,n=Ti();n=e["aria-label"]?void 0:n;let o=p.useRef(!1);return p.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Nr(t.current);let a=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Nr(t.current)),o.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),o$(),{dialogProps:{..._e(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:a=>{o.current&&a.stopPropagation()}},titleProps:{id:n}}}var mw=p.createContext(null),ls=p.createContext(null);function fj(e){let t=uw(e),r=p.useRef(null),{triggerProps:n,overlayProps:o}=d9({},t,r),[a,i]=p.useState(null),l=p.useCallback(()=>{r.current&&i(r.current.offsetWidth+"px")},[r]);return nl({ref:r,onResize:l}),n.id=Ge(),o["aria-labelledby"]=n.id,h.createElement(xr,{values:[[ls,t],[hl,t],[mw,o],[Up,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":a}}]]},h.createElement(_7,{...n,ref:r,isPressed:t.isOpen},e.children))}p.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Ze(e,t,mw);let{dialogProps:n,titleProps:o}=dj({...e,"aria-labelledby":r},t),a=p.useContext(ls);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let i=vt({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),l=_e(e,{global:!0});return h.createElement("section",{...te(l,i,n),ref:t,slot:e.slot||void 0},h.createElement(xr,{values:[[y$,{slots:{[sl]:{},title:{...o,level:2}}}],[q$,{slots:{[sl]:{},close:{onPress:()=>a?.close()}}}]]},i.children))});var Gp=({ariaLabel:e,placement:t="bottom-start",hasChrome:r=!0,hasCloseButton:n=!1,closeLabel:o,offset:a=8,padding:i,popover:l,children:s,defaultVisible:u,visible:c,onVisibleChange:d,...f})=>{e||mB("The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.");let g=kp(t),[m,y]=p.useState(u??!1),v=p.useCallback(E=>{y(E),d?.(E)},[d]),b=p.useCallback(()=>v(!1),[v]);return h.createElement(fj,{defaultOpen:u,isOpen:c??m,onOpenChange:v,...f},h.createElement(C7,null,p.cloneElement(s,{"aria-haspopup":"dialog"})),h.createElement(PB,{"aria-label":e,placement:g,offset:a,style:{outline:"none"}},h.createElement(Aa,{hasChrome:r,hideLabel:o,onHide:n?b:void 0,padding:i},typeof l=="function"?l({onHide:b}):l)))},yw=p.forwardRef((e,t)=>h.createElement(Aa,{ref:t,...e}));yw.displayName="Tooltip";p.lazy(()=>yr(()=>import("./WithTooltip-7X4HQR7L-BWbhTf0L.js"),__vite__mapDeps([7,1,2,5,4,3]),import.meta.url).then(e=>({default:e.WithTooltip})));p.lazy(()=>yr(()=>import("./WithTooltip-7X4HQR7L-BWbhTf0L.js"),__vite__mapDeps([7,1,2,5,4,3]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:sZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;F.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));F.span();F.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));F.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));F.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:pj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var hj=yt(vn(),1);const{deprecate:gj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var mj=F(({active:e,loading:t,disabled:r,...n})=>h.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),yj=F.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),bj=F.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),vj=F.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),Ej=F.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),Sj=F.button(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"background 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),xj=(0,hj.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",role:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",role:"link",href:r,...n&&{as:n,to:r}}})),bw=p.forwardRef((e,t)=>{let{loading:r=!1,title:n=h.createElement("span",null,"Loading state"),center:o=null,right:a=null,active:i=!1,disabled:l=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:f,LinkWrapper:g=void 0,...m}=e,y={active:i,disabled:l},v=xj(e),b=d||f;return gj("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),h.createElement(Sj,{"data-deprecated":"ListItem",ref:t,...m,...y,...v},h.createElement(h.Fragment,null,b&&h.createElement(Ej,{...y},b),n||o?h.createElement(bj,{isIndented:s&&!b},n&&h.createElement(mj,{...y,loading:r},n),o&&h.createElement(vj,{...y},o)):null,a&&h.createElement(yj,{...y},a)))});bw.displayName="ListItem";var vw=bw,$j=F.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),wj=F.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),Cj=({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:a,href:i}=r,l=p.useCallback(s=>t?.(s,{id:e,active:n,disabled:o,title:a,href:i}),[t,e,n,o,a,i]);return h.createElement(vw,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},Ew=({links:e,LinkWrapper:t,...r})=>{pj("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let n=Array.isArray(e[0])?e:[e],o=n.some(a=>a.some(i=>"icon"in i&&i.icon||"input"in i&&i.input));return h.createElement($j,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(a=>a.length).map((a,i)=>h.createElement(wj,{key:a.map(l=>l.id).join(`~${i}~`)},a.map(l=>"content"in l?h.createElement(p.Fragment,{key:l.id},l.content):h.createElement(Cj,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))};const{deprecate:ss}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:_j}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Tj=F.div(({backgroundColor:e,border:t=!1,innerStyle:r={},scrollable:n,theme:o})=>({color:o.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${o.barTextColor} ${t?e||o.barBg:"transparent"}`,scrollbarWidth:"thin",overflow:n?"auto":"hidden",overflowY:"hidden",display:"flex",alignItems:"center",gap:n?0:6,paddingInline:n?0:6,...t?{boxShadow:`${o.appBorderColor} 0 -1px 0 0 inset`,background:e||o.barBg}:{},...r})),Oj=F.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),bo=p.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},o)=>h.createElement(Tj,{...n,ref:o,innerStyle:e?void 0:r,scrollable:e},e?h.createElement(Oj,{innerStyle:r},t):t));bo.displayName="Bar";var qd=F.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});qd.displayName="Side";var Aj=F.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),Rj=F(bo)({paddingInline:0}),Wp=({children:e,backgroundColor:t,className:r="",...n})=>{_j('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[o,a]=p.Children.toArray(e);return h.createElement(Rj,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},h.createElement(Aj,{bgColor:t},h.createElement(qd,{scrollable:n.scrollable,left:!0},o),a?h.createElement(qd,{right:!0},a):null))};Wp.displayName="FlexBar";const{deprecate:Dj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Pj=e=>typeof e.props.href=="string",Ij=e=>typeof e.props.href!="string";function Fj({children:e,...t},r){let n={props:t,ref:r};if(Pj(n))return h.createElement("a",{ref:n.ref,...n.props},e);if(Ij(n))return h.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var Sw=p.forwardRef(Fj);Sw.displayName="ButtonOrLink";var Lj=F(Sw,{shouldForwardProp:Rl})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}}),Da=p.forwardRef((e,t)=>(Dj("The `TabButton` component is deprecated. Use `TabList` instead."),h.createElement(Lj,{"data-deprecated":"TabButton",ref:t,...e})));Da.displayName="TabButton";var kj=F.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),Nj=F.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),Mj=F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),Bj=F.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),jj=F.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Pa=({title:e,description:t,footer:r})=>h.createElement(kj,null,h.createElement(Nj,null,h.createElement(Mj,null,e),t&&h.createElement(jj,null,t)),r&&h.createElement(Bj,null,r));const{deprecate:Hj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var xw=F.div(({active:e})=>e?{display:"block"}:{display:"none"}),Uj=e=>(Hj("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),p.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let a=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof a=="function"?a:({active:i})=>h.createElement(xw,{active:i,role:"tabpanel"},a)}}));const{deprecate:Kj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var zj=F.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),Gj=F(Da)(({active:e,theme:t,preActive:r})=>`
673
673
  color: ${r||e?t.barSelectedColor:t.barTextColor};
674
674
  .addon-collapsible-icon {
675
675
  color: ${r||e?t.barSelectedColor:t.barTextColor};
@@ -733,7 +733,7 @@ ${t}`);let r=t.match(OM);if(!r)return h.createElement(p.Fragment,null,t);let[,n,
733
733
  ${Ko(.02,e.input.background)} 100%)`:`linear-gradient(to right,
734
734
  ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
735
735
  ${Qd(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
736
- ${Qd(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"} 0 0 0 1px inset`,cursor:o?"not-allowed":"pointer",height:6,width:"100%"},i={borderColor:oo(e.color.secondary,.4)},l={width:16,height:16,borderRadius:50,cursor:o?"not-allowed":"grab",background:e.input.background,border:`1px solid ${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,boxShadow:e.base==="light"?`0 1px 3px 0px ${oo(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${Ko(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},u={background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)"},c={borderColor:e.color.secondary,boxShadow:e.base==="light"?`0 0px 5px 0px ${e.color.secondary}`:"unset"};return{appearance:"none",backgroundColor:"transparent",width:"100%","&::-webkit-slider-runnable-track":a,"&::-moz-range-track":a,"&::-ms-track":{...a,color:"transparent"},"&::-moz-range-thumb":{...l,"&:hover":s,"&:active":u},"&::-webkit-slider-thumb":{...l,marginTop:"-6px",appearance:"none","&:hover":s,"&:active":u},"&::-ms-thumb":{...l,marginTop:0,"&:hover":s,"&:active":u},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":i,"&::-moz-range-track":i,"&::-ms-track":i,"&::-webkit-slider-thumb":c,"&::-moz-range-thumb":c,"&::-ms-thumb":c},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),hC=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),fG=F(hC)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),pG=F.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function hG(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var gG=({name:e,storyId:t,controlsId:r,value:n,onChange:o,min:a=0,max:i=100,step:l=1,onBlur:s,onFocus:u,argType:c,required:d})=>{let f=b=>{o(_z(b.target.value))},g=n!==void 0,m=p.useMemo(()=>hG(l),[l]),y=!!c?.table?.readonly,v=jt(e,t,r);return h.createElement(pG,{readOnly:y},h.createElement("label",{htmlFor:v,className:"sb-sr-only"},e),h.createElement(hC,null,a),h.createElement(dG,{id:v,type:"range",disabled:y,onChange:f,"aria-required":d||void 0,name:e,min:a,max:i,step:l,onFocus:u,onBlur:s,value:n??a}),h.createElement(fG,{numberOFDecimalsPlaces:m,max:i},g?n.toFixed(m):"--"," / ",i))},mG=F.label({display:"flex"}),yG=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),bG=({name:e,storyId:t,controlsId:r,value:n,onChange:o,onFocus:a,onBlur:i,maxLength:l,argType:s,required:u})=>{let c=v=>{o(v.target.value)},d=!!s?.table?.readonly,[f,g]=p.useState(!1),m=p.useCallback(()=>{o(""),g(!0)},[g]);if(n===void 0)return h.createElement(Ee,{ariaLabel:!1,variant:"outline",size:"medium",disabled:d,id:xl(e,t,r),onClick:m},"Set string");let y=typeof n=="string";return h.createElement(mG,null,h.createElement(_n.Textarea,{id:jt(e,t,r),maxLength:l,onChange:c,disabled:d,size:"flex",placeholder:"Edit string...",autoFocus:f,"aria-required":u||void 0,valid:y?void 0:"error",name:e,value:y?n:"",onFocus:a,onBlur:i}),l&&h.createElement(yG,{isMaxed:n?.length===l},n?.length??0," / ",l))},vG=F(_n.Input)({padding:10});function EG(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var SG=({onChange:e,name:t,storyId:r,controlsId:n,accept:o="image/*",value:a,argType:i,required:l})=>{let s=p.useRef(null),u=i?.control?.readOnly;function c(f){if(!f.target.files)return;let g=Array.from(f.target.files).map(m=>URL.createObjectURL(m));e(g),EG(a||[])}p.useEffect(()=>{a==null&&s.current&&(s.current.value="")},[a,t]);let d=jt(t,r,n);return h.createElement(h.Fragment,null,h.createElement("label",{htmlFor:d,className:"sb-sr-only"},t),h.createElement(vG,{ref:s,id:d,type:"file",name:t,multiple:!0,disabled:u,onChange:c,accept:o,"aria-required":l||void 0,size:"flex"}))},xG=p.lazy(()=>yr(()=>import("./Color-6AOWCN3U-DO132-Hp.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url)),$G=e=>h.createElement(p.Suspense,{fallback:h.createElement("div",null)},h.createElement(xG,{...e})),wG={array:Eb,object:Eb,boolean:bz,color:$G,date:wz,number:Oz,check:Pn,"inline-check":Pn,radio:Pn,"inline-radio":Pn,select:Pn,"multi-select":Pn,range:gG,text:bG,file:SG},Oc=()=>h.createElement(h.Fragment,null,"-"),CG=({row:e,arg:t,updateArgs:r,isRequired:n,storyId:o,controlsId:a})=>{let{key:i,control:l}=e,[s,u]=p.useState(!1),[c,d]=p.useState({value:t});p.useEffect(()=>{s||d({value:t})},[s,t]);let f=p.useCallback(b=>(d({value:b}),r({[i]:b}),b),[r,i]),g=p.useCallback(()=>u(!1),[]),m=p.useCallback(()=>u(!0),[]);if(!l||l.disable)return l?.disable!==!0&&e?.type?.name!=="function"?h.createElement(h.Fragment,null,h.createElement("span",{className:"sbdocs sbdocs-argcontrol-setup"},h.createElement($a,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls")),h.createElement("span",{className:"sbdocs sbdocs-argcontrol-placeholder"},h.createElement(Oc,null))):h.createElement(Oc,null);let y={name:i,storyId:o,controlsId:a,argType:e,value:c.value,required:n,onChange:f,onBlur:g,onFocus:m},v=wG[l.type]||Oc;return h.createElement(v,{...y,...l,controlType:l.type})},_G=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Er({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),TG=({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:h.createElement(h.Fragment,null,h.createElement(_G,null,h.createElement("tbody",null,n&&h.createElement("tr",{key:"deprecated"},h.createElement("td",{colSpan:2},h.createElement("strong",null,"Deprecated"),": ",e.deprecated?.toString())),r&&t.map(a=>h.createElement("tr",{key:a.name},h.createElement("td",null,h.createElement("code",null,a.name)),h.createElement("td",null,a.description))),o&&h.createElement("tr",{key:"returns"},h.createElement("td",null,h.createElement("code",null,"Returns")),h.createElement("td",null,e.returns?.description)))))};function OG(e){return[...new Set(e)]}var vl=8,Sb=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),AG=F.details({display:"flex",flexDirection:"column",summary:{order:2},"summary::-webkit-details-marker":{display:"none"},"summary::marker":{content:"none"}}),RG=F.div({display:"flex",flexDirection:"column",flexWrap:"wrap",alignItems:"flex-start"}),DG=F.span(Er,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),PG=F.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:"pointer",lineHeight:"normal",margin:"0 0 4px",padding:"1px 6px",background:"none",border:"none"})),IG=F.button(Er,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center",cursor:"pointer","&:hover":{border:e.base==="light"?"1px solid hsl(0 0 0 / 0.15)":"1px solid hsl(0 0 100 / 0.15)"},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:"2px"}})),FG=F.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),LG=F(OU)({marginLeft:4}),kG=F(Gw)({marginLeft:4}),NG=()=>h.createElement("span",null,"-"),eh=({text:e,simple:t})=>h.createElement(DG,{simple:t},e),MG=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return OG(t)},xb=e=>e.slice(0,vl).map(t=>h.createElement(eh,{key:t,text:t===""?'""':t})),BG=e=>e.slice(vl).map(t=>h.createElement(eh,{key:t,text:t===""?'""':t})),jG=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=p.useState(!1),[i,l]=p.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return h.createElement(eh,{text:s});let u=MG(s),c=u.length;return c>vl?h.createElement(Sb,{isExpanded:i},xb(u),h.createElement(AG,{open:i,onToggle:d=>l(d.currentTarget.open)},h.createElement(RG,null,BG(u)),h.createElement(PG,{role:"button"},i?"Show less...":`Show ${c-vl} more...`))):h.createElement(Sb,null,xb(u))}return h.createElement(Gp,{ariaLabel:"Arg value details",placement:"bottom",visible:o,onVisibleChange:u=>{a(u)},hasCloseButton:!0,popover:h.createElement(FG,null,h.createElement(xa,{language:"jsx",format:!1},n))},h.createElement(IG,{className:"sbdocs-expandable"},h.createElement("span",null,s),o?h.createElement(LG,null):h.createElement(kG,null)))},Ac=({value:e,initialExpandedArgs:t})=>e==null?h.createElement(NG,null):h.createElement(jG,{value:e,initialExpandedArgs:t}),HG=F.span({fontWeight:"bold"}),UG=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),KG=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Er({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),zG=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?De(.1,e.color.defaultText):De(.2,e.color.defaultText),marginTop:t?4:0})),GG=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?De(.1,e.color.defaultText):De(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),WG=F.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),VG=F.tr({"span.sbdocs-argcontrol-setup":{...Jo},"&:hover, &:focus-within":{"span.sbdocs-argcontrol-setup":{...a1},"span.sbdocs-argcontrol-placeholder":{...Jo}}}),qG=e=>e&&{summary:typeof e=="string"?e:e.name},ci=e=>{let{row:t,updateArgs:r,compact:n,expandable:o,initialExpandedArgs:a,docsLang:i}=e,{name:l,description:s}=t,u=t.table||{},c=u.type||qG(t.type),d=u.defaultValue||t.defaultValue,f=t.type?.required,g=s!=null&&s!=="";return h.createElement(VG,null,h.createElement(WG,{expandable:o??!1},h.createElement(HG,null,l),f?h.createElement(UG,{"aria-hidden":!0,title:"Required"},"*"):null),n?null:h.createElement("td",null,g&&h.createElement(KG,{lang:i},h.createElement(tC,null,s)),u.jsDocTags!=null?h.createElement(h.Fragment,null,h.createElement(GG,{hasDescription:g},h.createElement(Ac,{value:c,initialExpandedArgs:a})),h.createElement(TG,{tags:u.jsDocTags})):h.createElement(zG,{hasDescription:g},h.createElement(Ac,{value:c,initialExpandedArgs:a}))),n?null:h.createElement("td",null,h.createElement(Ac,{value:d,initialExpandedArgs:a})),r?h.createElement("td",null,h.createElement(CG,{...e,isRequired:!!f})):null)},YG=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),XG=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),JG=({inAddonPanel:e})=>{let[t,r]=p.useState(!0);return p.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:h.createElement(YG,{inAddonPanel:e},h.createElement(Pa,{title:"This story has no controls",description:h.createElement(h.Fragment,null,"Storybook couldn't find or generate any controls for this story. Define"," ",h.createElement("code",null,"args")," or ",h.createElement("code",null,"argTypes"),", or configure docgen to let Storybook generate controls automatically."),footer:h.createElement(XG,null,h.createElement($a,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},h.createElement(zw,null)," Read docs"))}))},ZG=F(_U)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?De(.25,e.color.defaultText):De(.3,e.color.defaultText),border:"none",display:"inline-block"})),QG=F(TU)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?De(.25,e.color.defaultText):De(.3,e.color.defaultText),border:"none",display:"inline-block"})),eW=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),tW=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?De(.4,e.color.defaultText):De(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),rW=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),nW=F.td({position:"relative"}),oW=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Qd(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),$b=F.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),Rc=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=p.useState(n),l=e==="subsection"?rW:tW,s=r?.length||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${a?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return h.createElement(h.Fragment,null,h.createElement(oW,{title:c},h.createElement(l,{colSpan:1},h.createElement($b,{onClick:d=>i(!a),tabIndex:0},c),h.createElement(eW,null,a?h.createElement(ZG,null):h.createElement(QG,null),t)),h.createElement(nW,{colSpan:o-1},h.createElement($b,{onClick:d=>i(!a),tabIndex:-1,style:{outline:"none"}},c),a?null:u)),a?r:null)},aW=F.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),di=F.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ve=F.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),Ie=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),iW=()=>h.createElement(aW,null,h.createElement(di,null,h.createElement(Ve,{position:"first"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"second"},h.createElement(Ie,{width:"30%"})),h.createElement(Ve,{position:"third"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"last"},h.createElement(Ie,{width:"60%"}))),h.createElement(di,null,h.createElement(Ve,{position:"first"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"second"},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Ve,{position:"third"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"last"},h.createElement(Ie,{width:"60%"}))),h.createElement(di,null,h.createElement(Ve,{position:"first"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"second"},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Ve,{position:"third"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"last"},h.createElement(Ie,{width:"60%"}))),h.createElement(di,null,h.createElement(Ve,{position:"first"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"second"},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Ve,{position:"third"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"last"},h.createElement(Ie,{width:"60%"})))),lW=F.table(({theme:e,compact:t,inAddonPanel:r,inTabPanel:n})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"19px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:r||n?0:1,paddingInline:n?3:0,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}},"@media (forced-colors: active)":{tbody:{filter:"none","> tr > *":{borderColor:"CanvasText"}}}}})),sW=F.div({position:"relative"}),uW=F.div({position:"absolute",right:22,top:10}),cW=F(Ee)({margin:"-4px -12px -4px 0"}),dW={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||(e.name??"").localeCompare(t.name??""),none:null},fW=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:l,subcategory:s}=i?.table||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:a,...i});else{let c=u.subsections[s]||[];c.push({key:a,...i}),u.subsections[s]=c}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:a,...i}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:a,...i})});let n=dW[t],o=a=>n?Object.keys(a).reduce((i,l)=>({...i,[l]:a[l].sort(n)}),{}):a;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>({...a,[i]:{ungrouped:n?r.sections[i].ungrouped.sort(n):r.sections[i].ungrouped,subsections:o(r.sections[i].subsections)}}),{})}},pW=(e,t,r)=>{try{return t4(e,t,r)}catch(n){return FU.warn(n.message),!1}},io=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,inTabPanel:a,initialExpandedArgs:i,sort:l="none",isLoading:s,storyId:u,controlsId:c,docsLang:d}=e,{rows:f,args:g,globals:m}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},y=p.useRef(!1),[v,b]=p.useState(!1);p.useEffect(()=>{y.current=!1,b(!1)},[g]);let E=p.useCallback(()=>{!y.current&&r&&(y.current=!0,b(!0),r())},[r]);if("error"in e){let{error:I}=e;return h.createElement(Kw,null,I," ",h.createElement($a,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},h.createElement(zw,null)," Read the docs"))}if(s)return h.createElement(iW,null);let S=fW(uK(f||{},I=>!I?.table?.disable&&pW(I,g||{},m||{})),l),x=S.ungrouped.length===0,C=Object.entries(S.sections).length===0,$=Object.entries(S.ungroupedSubsections).length===0;if(x&&C&&$)return h.createElement(JG,{inAddonPanel:o});let T=1;t&&(T+=1),n||(T+=2);let O=Object.keys(S.sections).length>0,L={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:i,storyId:u,controlsId:c};return h.createElement(hp,null,h.createElement(sW,null,t&&!s&&r&&h.createElement(uW,null,h.createElement(cW,{variant:"ghost",padding:"small",onClick:E,disabled:v,ariaLabel:v?"Resetting controls...":"Reset controls",lang:"en"},h.createElement(AU,null))),h.createElement(lW,{compact:n,inAddonPanel:o,inTabPanel:a,className:"docblock-argstable sb-unstyled",lang:"en"},h.createElement("thead",{className:"docblock-argstable-head"},h.createElement("tr",null,h.createElement("th",null,h.createElement("span",null,"Name")),n?null:h.createElement("th",null,h.createElement("span",null,"Description")),n?null:h.createElement("th",null,h.createElement("span",null,"Default")),t?h.createElement("th",null,h.createElement("span",null,"Control")):null)),h.createElement("tbody",{className:"docblock-argstable-body"},S.ungrouped.map(I=>h.createElement(ci,{key:I.key,row:I,arg:g&&g[I.key],docsLang:d,...L})),Object.entries(S.ungroupedSubsections).map(([I,_])=>h.createElement(Rc,{key:I,label:I,level:"subsection",colSpan:T},_.map(N=>h.createElement(ci,{key:N.key,row:N,arg:g&&g[N.key],expandable:O,...L})))),Object.entries(S.sections).map(([I,_])=>h.createElement(Rc,{key:I,label:I,level:"section",colSpan:T},_.ungrouped.map(N=>h.createElement(ci,{key:N.key,row:N,arg:g&&g[N.key],...L})),Object.entries(_.subsections).map(([N,B])=>h.createElement(Rc,{key:N,label:N,level:"subsection",colSpan:T},B.map(w=>h.createElement(ci,{key:w.key,row:w,arg:g&&g[w.key],expandable:O,...L}))))))))))},Fe=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,th=600,hW=F.h1(({theme:e})=>({...Ce({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${th}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),gW=F.h2(({theme:e})=>({...Ce({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${th}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:De(.25,e.color.defaultText)})),mW=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?De(.1,e.color.defaultText):De(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,flex:1,[Fe("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"}},[Fe("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[Fe("div")]:t,[Fe("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[Fe("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[Fe("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[Fe("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[Fe("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[Fe("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[Fe("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[Fe("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[Fe("img")]:{maxWidth:"100%"},[Fe("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[Fe("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Fe("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[Fe("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[Fe("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[Fe("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[Fe("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),yW=F.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 40px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${th}px)`]:{}})),bW=({children:e,toc:t,lang:r="en"})=>h.createElement(yW,{className:"sbdocs sbdocs-wrapper"},t,h.createElement(mW,{className:"sbdocs sbdocs-content",lang:r},e));const{logger:vW}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var gC=typeof document<"u"?h.useLayoutEffect:()=>{},mC={prefix:String(Math.round(Math.random()*1e10)),current:0},yC=h.createContext(mC),EW=h.createContext(!1),Dc=new WeakMap;function SW(e=!1){let t=p.useContext(yC),r=p.useRef(null);if(r.current===null&&!e){var n,o;let a=(o=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let i=Dc.get(a);i==null?Dc.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,Dc.delete(a))}r.current=++t.current}return r.current}function xW(e){let t=p.useContext(yC),r=SW(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function $W(e){let t=h.useId(),[r]=p.useState(OW()),n=r?"react-aria":`react-aria${mC.prefix}`;return e||`${n}-${t}`}var wW=typeof h.useId=="function"?$W:xW;function CW(){return!1}function _W(){return!0}function TW(e){return()=>{}}function OW(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(TW,CW,_W):p.useContext(EW)}var AW=!!(typeof window<"u"&&window.document&&window.document.createElement),Li=new Map,Bo;typeof FinalizationRegistry<"u"&&(Bo=new FinalizationRegistry(e=>{Li.delete(e)}));function bC(e){let[t,r]=p.useState(e),n=p.useRef(null),o=wW(t),a=p.useRef(null);if(Bo&&Bo.register(a,o),AW){let i=Li.get(o);i&&!i.includes(n)?i.push(n):Li.set(o,[n])}return gC(()=>{let i=o;return()=>{Bo&&Bo.unregister(a),Li.delete(i)}},[o]),p.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),o}function RW(e){if(DW())e.focus({preventScroll:!0});else{let t=PW(e);e.focus(),IW(t)}}var fi=null;function DW(){if(fi==null){fi=!1;try{document.createElement("div").focus({get preventScroll(){return fi=!0,!0}})}catch{}}return fi}function PW(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function IW(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function rh(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function vC(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Fa(e){let t=null;return()=>(t==null&&(t=e()),t)}var nf=Fa(function(){return vC(/^Mac/i)}),FW=Fa(function(){return vC(/^iPad/i)||nf()&&navigator.maxTouchPoints>1}),LW=Fa(function(){return rh(/AppleWebKit/i)&&!kW()}),kW=Fa(function(){return rh(/Chrome/i)}),NW=Fa(function(){return rh(/Firefox/i)});p.createContext({isNative:!0,open:BW,useHref:e=>e});function El(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}=t;NW()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(nf()?a=!0:i=!0);let u=LW()&&nf()&&!FW()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});El.isOpening=r,RW(e),e.dispatchEvent(u),El.isOpening=!1}El.isOpening=!1;function MW(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function BW(e,t){MW(e,r=>El(r,t))}var Io=new Map,wb=new Set;function Cb(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Io.get(n.target);o||(o=new Set,Io.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Io.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Io.delete(n.target)),Io.size===0)){for(let a of wb)a();wb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Cb():document.addEventListener("DOMContentLoaded",Cb));var Pc;Pc=h.useInsertionEffect;var Ic;typeof document<"u"&&((Ic=h.useInsertionEffect)!==null&&Ic!==void 0||h.useLayoutEffect);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=p.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var ot=globalThis?globalThis.__DOCS_CONTEXT__:p.createContext(null);const{InvalidBlockOfPropError:jW}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;function HW(e,t){let r=UW([e],t);return r&&r[0]}function UW(e,t){let[r,n]=p.useState({});return p.useEffect(()=>{Promise.all(e.map(async o=>{let a=await t.loadStory(o);n(i=>i[o]===a?i:{...i,[o]:a})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return}})}var KW=Symbol("mdxWrappedBlock"),_b=h.createContext(null),Qe=(e,t)=>{let r=n=>{let o=h.useContext(_b),a=Yp()[e];if(o?.has(e)||a===r)return h.createElement(t,{...n});if(a){let i=new Set(o??[]);return i.add(e),h.createElement(_b.Provider,{value:i},h.createElement(a,{...n}))}return h.createElement(t,{...n})};return r.displayName=e,r[KW]=!0,r},EC=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new jW;return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},zW=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,a=o.story||{};if(o.disable)return null;if(e.inline??a.inline??!1){let l=e.height??a.height,s=e.autoplay??a.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??a.height??a.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},GW=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=p.useContext(ot),r=EC(e,t),n=HW(r,t);if(!n)return h.createElement($C,null);let o=zW(e,n,t);return o?h.createElement(ZW,{...o}):null},WW=Qe("Story",GW),ps=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),SC=(e,t={})=>{let r=globalThis.PREVIEW_URL||"iframe.html",[n,o]=r.split("?"),a=new URLSearchParams(o||"");return Object.entries(t).forEach(([i,l])=>{a.set(i,l)}),a.set("id",e),`${n}?${a.toString()}`},{window:VW}=globalThis,qW=class extends p.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=VW.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...a}=this.props;return h.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...a})}},xC=p.createContext({scale:1}),of=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,YW=e=>{let t=p.useRef(),[r,n]=p.useState(!0),[o,a]=p.useState(),{story:i,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return p.useEffect(()=>{if(!(i&&t.current))return()=>{};let d=t.current,f=c(i,d,{showMain:()=>{},showError:({title:g,description:m})=>a(new Error(`${g} - ${m}`)),showException:g=>a(g)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>f())}},[s,c,i]),o?h.createElement("pre",null,h.createElement(O$,{error:o})):h.createElement(h.Fragment,null,l?h.createElement("style",null,`#${of(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&h.createElement($C,null),h.createElement("div",{ref:t,id:`${of(e)}-inner`,"data-name":i.name,lang:i.parameters?.htmlLang||"en"}))},XW=({story:e,height:t="500px"})=>h.createElement("div",{style:{width:"100%",height:t}},h.createElement(xC.Consumer,null,({scale:r})=>h.createElement(qW,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:SC(e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),JW=F.strong(({theme:e})=>({color:e.color.orange})),ZW=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?h.createElement(JW,null,"This story mounts inside of play. Set"," ",h.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):h.createElement("div",{id:of(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?h.createElement(YW,{...e}):h.createElement(XW,{...e}))},$C=()=>h.createElement(Nw,null),QW=F(_w)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),Fc=F.div({display:"flex",alignItems:"center",gap:4}),Tb=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),eV=({isLoading:e,storyId:t,zoom:r,resetZoom:n,onReloadStory:o,...a})=>h.createElement(QW,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},lang:"en",...a},h.createElement(Fc,{key:"left"},e?[1,2,3].map(i=>h.createElement(Tb,{key:i})):h.createElement(h.Fragment,null,o&&h.createElement(Ee,{padding:"small",variant:"ghost",key:"reload",onClick:o,ariaLabel:"Reload story"},h.createElement(RU,null)),h.createElement(Ee,{padding:"small",variant:"ghost",key:"zoomin",onClick:i=>{i.preventDefault(),r(.8)},ariaLabel:"Zoom in"},h.createElement(yU,null)),h.createElement(Ee,{padding:"small",variant:"ghost",key:"zoomout",onClick:i=>{i.preventDefault(),r(1.25)},ariaLabel:"Zoom out"},h.createElement(bU,null)),h.createElement(Ee,{padding:"small",variant:"ghost",key:"zoomreset",onClick:i=>{i.preventDefault(),n()},ariaLabel:"Reset zoom"},h.createElement(vU,null)))),e?h.createElement(Fc,{key:"right"},h.createElement(Tb,null)):t&&h.createElement(Fc,{key:"right"},h.createElement(Ee,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},h.createElement("a",{href:SC(t),target:"_blank",rel:"noopener noreferrer"},h.createElement(CU,null))))),tV=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),rV=F(bo)({marginTop:-40,marginBottom:40}),nV=F(Ia)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ko(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ko(.05,e.background.content)}})),oV=F.div(({theme:e})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...ps(e),"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40});function aV(e){if(p.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var iV=F(eV)({position:"absolute",top:0,left:0,right:0,height:40}),lV=2e3,wC=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:i=!1,additionalActions:l,className:s,layout:u="padded",inline:c=!1,onReloadStory:d,...f})=>{let[g,m]=p.useState(i),[y,v]=p.useState(null),[b,E]=p.useState(1),S=p.useMemo(()=>l?[...l]:[],[l]),x=bC(),C=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),$=p.useContext(ot),T=p.useCallback(async N=>{let{createCopyToClipboardFunction:B}=await yr(async()=>{const{createCopyToClipboardFunction:w}=await Promise.resolve().then(()=>_H);return{createCopyToClipboardFunction:w}},void 0,import.meta.url);await B()(N)},[]),O=p.useCallback(async()=>{try{await T(o?.code??""),v("Copied!")}catch(N){vW.error(N),v("Copy error!")}globalThis.window.setTimeout(()=>v(null),lV)},[T,o?.code]),L=aV(n),I=!!(o&&o.error),_=!!(o&&!o.error);return h.createElement(h.Fragment,null,h.createElement(oV,{withSource:o,withToolbar:a,...f,className:C.join(" ")},a&&h.createElement(iV,{isLoading:e,border:!0,zoom:N=>E(b*N),resetZoom:()=>E(1),storyId:!e&&L?EC(L,$):void 0,onReloadStory:d}),h.createElement(xC.Provider,{value:{scale:b}},h.createElement(tV,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c,className:"docs-story"},h.createElement(T$.Element,{centered:u==="centered",scale:c?b:1},Array.isArray(n)?n.map((N,B)=>h.createElement("div",{key:B},N)):h.createElement("div",null,n)))),_&&g&&h.createElement("div",{id:x},h.createElement(nV,{...o,dark:!0,copyable:!1}))),(o||S.length>0)&&h.createElement(rV,{className:"sbdocs sbdocs-preview-actions",innerStyle:{paddingInline:0}},I&&h.createElement(Ee,{lang:"en",ariaLabel:!1,disabled:!0,variant:"ghost",className:"docblock-code-toggle docblock-code-toggle--disabled"},h.createElement(Zy,null)," No code available"),_&&h.createElement(h.Fragment,null,h.createElement(Oa,{lang:"en",ariaLabel:!1,pressed:g,"aria-expanded":g,"aria-controls":x,onClick:()=>m(!g),variant:"ghost",className:`docblock-code-toggle${g?" docblock-code-toggle--expanded":""}`},h.createElement(Zy,null)," ",g?"Hide code":"Show code"),h.createElement(Ee,{lang:"en",ariaLabel:!1,variant:"ghost",onClick:O},h.createElement(EU,null)," ",y??"Copy code")),S.map(({title:N,ariaLabel:B,className:w,onClick:R,disabled:P},A)=>h.createElement(Ee,{key:A,ariaLabel:B??!1,className:w,onClick:R,disabled:!!P,variant:"ghost"},N))))};F(wC)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var sV=F(Lw)({height:"fit-content"}),CC=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return h.createElement(io,{...r[0][1],...t});let n=r.map(([o,a],i)=>{let l=i===0?t:{sort:t.sort,docsLang:t.docsLang};return{id:`prop_table_div_${o}`,title:o,children:h.createElement(io,{inTabPanel:!0,...a,...l})}});return h.createElement(sV,{tabs:n})};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?De(.4,e.color.defaultText):De(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(Ce,({theme:e})=>({...ps(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:De(.3,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:De(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...ps(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:De(.3,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));F.div(({theme:e})=>({...ps(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});F.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:uV}=__STORYBOOK_MODULE_CORE_EVENTS__;function cV(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",a,i=!0,l=0;function s(I,_){let N=_.appendChild(c(I));if(I.children.length){let B=d(I.isCollapsed);I.children.forEach(w=>{s(w,B)}),N.appendChild(B)}}function u(I,_){let N=d(!1);if(_.forEach(B=>{s(B,N)}),a=I||a,a!==null)return a.firstChild&&a.removeChild(a.firstChild),_.length===0?a:a.appendChild(N)}function c(I){let _=document.createElement("li"),N=document.createElement("a");return e.listItemClass&&_.setAttribute("class",e.listItemClass),e.onClick&&(N.onclick=e.onClick),e.includeTitleTags&&N.setAttribute("title",I.textContent),e.includeHtml&&I.childNodes.length?t.call(I.childNodes,B=>{N.appendChild(B.cloneNode(!0))}):N.textContent=I.textContent,N.setAttribute("href",`${e.basePath}#${I.id}`),N.setAttribute("class",`${e.linkClass+o}node-name--${I.nodeName}${o}${e.extraLinkClasses}`),_.appendChild(N),_}function d(I){let _=e.orderedList?"ol":"ul",N=document.createElement(_),B=e.listClass+o+e.extraListClasses;return I&&(B=B+o+e.collapsibleClass,B=B+o+e.isCollapsedClass),N.setAttribute("class",B),N}function f(){let I=T(),_=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=a.offsetTop),I>e.fixedSidebarOffset?_.className.indexOf(e.positionFixedClass)===-1&&(_.className+=o+e.positionFixedClass):_.className=_.className.replace(o+e.positionFixedClass,"")}function g(I){let _=0;return I!==null&&(_=I.offsetTop,e.hasInnerContainers&&(_+=g(I.offsetParent))),_}function m(I,_){return I&&I.className!==_&&(I.className=_),I}function y(I,_){e.positionFixedSelector&&f();let N=I,B=_?.target?.getAttribute?_?.target?.getAttribute("href"):null,w=B&&B.charAt(0)==="#"?x(B.replace("#","")):!1,R=i||w;if(_&&l<5&&l++,R&&a&&N.length>0){let P=O(N),A=a.querySelector(`.${e.activeLinkClass}`),D=P.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),M=window.location.hash.replace("#",""),k=D,K=C();B&&w?k=B.replace("#",""):M&&M!==D&&K&&(x(D)||l<=2)&&(k=M);let j=a.querySelector(`.${e.linkClass}[href="${e.basePath}#${k}"]`);if(A===j)return;let z=a.querySelectorAll(`.${e.linkClass}`);t.call(z,W=>{m(W,W.className.replace(o+e.activeLinkClass,""))});let U=a.querySelectorAll(`.${e.listItemClass}`);t.call(U,W=>{m(W,W.className.replace(o+e.activeListItemClass,""))}),j&&j.className.indexOf(e.activeLinkClass)===-1&&(j.className+=o+e.activeLinkClass);let H=j?.parentNode;H&&H.className.indexOf(e.activeListItemClass)===-1&&(H.className+=o+e.activeListItemClass);let G=a.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(G,W=>{W.className.indexOf(e.isCollapsedClass)===-1&&(W.className+=o+e.isCollapsedClass)}),j?.nextSibling&&j.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&m(j.nextSibling,j.nextSibling.className.replace(o+e.isCollapsedClass,"")),v(j?.parentNode.parentNode)}}function v(I){return I&&I.className.indexOf(e.collapsibleClass)!==-1&&I.className.indexOf(e.isCollapsedClass)!==-1?(m(I,I.className.replace(o+e.isCollapsedClass,"")),v(I.parentNode.parentNode)):I}function b(I){let _=I.target||I.srcElement;typeof _.className!="string"||_.className.indexOf(e.linkClass)===-1||(i=!1)}function E(){i=!0}function S(){return i}function x(I){let _=$();return(document?.getElementById(I)).offsetTop>_.offsetHeight-_.clientHeight*1.4-e.bottomModeThreshold}function C(){let I=$(),_=I.scrollHeight>I.clientHeight,N=T()+I.clientHeight>I.offsetHeight-e.bottomModeThreshold;return _&&N}function $(){let I;return e.scrollContainer&&document.querySelector(e.scrollContainer)?I=document.querySelector(e.scrollContainer):I=document.documentElement||n,I}function T(){return $()?.scrollTop||0}function O(I,_=T()){let N;return r.call(I,(B,w)=>{if(g(B)>_+e.headingsOffset+10){let R=w===0?w:w-1;return N=I[R],!0}if(w===I.length-1)return N=I[I.length-1],!0}),N}function L(I){let _=T(),N=O(I,_),B=C();if((!N||_<5)&&!B)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(N&&!B){let w=`#${N.id}`;window.location.hash!==w&&window.history.pushState(null,null,w)}}return{enableTocAnimation:E,disableTocAnimation:b,render:u,updateToc:y,getCurrentlyHighlighting:S,getTopHeader:O,getScrollTop:T,updateUrlHashForHeader:L}}var dV={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function fV(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function o(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function a(u){if(!o(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let c=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),d={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:c};return e.includeHtml&&(d.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(d,u):d}function i(u,c){let d=a(u),f=d.headingLevel,g=c,m=r(g),y=m?m.headingLevel:0,v=f-y;for(;v>0&&(m=r(g),!(m&&f===m.headingLevel));)m&&m.children!==void 0&&(g=m.children),v--;return f>=e.collapseDepth&&(d.isCollapsed=!0),g.push(d),g}function l(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(f){return`${f.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(d)}catch{return console.warn(`Headers not found with selector: ${d}`),null}}function s(u){return t.call(u,function(c,d){let f=a(d);return f&&i(f,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function pV(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?i(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!a(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||hV(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function a(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(s){return s.slice(0,s.lastIndexOf("#"))}function l(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function hV(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},o=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),a=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(a):n.duration,l,s;requestAnimationFrame(function(f){l=f,u(f)});function u(f){s=f-l,window.scrollTo(0,n.easing(s,r,a,i)),s<i?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+a),typeof n.callback=="function"&&n.callback()}function d(f,g,m,y){return f/=y/2,f<1?m/2*f*f+g:(f--,-m/2*(f*(f-2)-1)+g)}}function gV(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var oe={},Pt,Lc,Jr,Ft,Go;function _C(e){let t=!1;oe=bV(dV,e||{}),oe.scrollSmooth&&(oe.duration=oe.scrollSmoothDuration,oe.offset=oe.scrollSmoothOffset,pV(oe)),Pt=cV(oe),Lc=fV(oe),nh();let r=EV(oe);if(r===null)return;let n=TC(oe);if(n===null||(Jr=Lc.selectHeadings(r,oe.headingSelector),Jr===null))return;let o=Lc.nestHeadingsArray(Jr).nest;if(!oe.skipRendering)Pt.render(n,o);else return this;let a=!1,i=oe.scrollHandlerTimeout||oe.throttleTimeout;Ft=((s,u)=>vV(s,u,oe.scrollHandlerType))(s=>{Pt.updateToc(Jr,s),!oe.disableTocScrollSync&&!a&&gV(oe),oe.enableUrlHashUpdateOnScroll&&t&&Pt.getCurrentlyHighlighting()&&Pt.updateUrlHashForHeader(Jr);let u=s?.target?.scrollingElement?.scrollTop===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(Pt.updateToc(Jr),oe.scrollEndCallback?.(s))},i),t||(Ft(),t=!0),window.onhashchange=window.onscrollend=s=>{Ft(s)},oe.scrollContainer&&document.querySelector(oe.scrollContainer)?(document.querySelector(oe.scrollContainer).addEventListener("scroll",Ft,!1),document.querySelector(oe.scrollContainer).addEventListener("resize",Ft,!1)):(document.addEventListener("scroll",Ft,!1),document.addEventListener("resize",Ft,!1));let l=null;Go=af(s=>{a=!0,oe.scrollSmooth&&Pt.disableTocAnimation(s),Pt.updateToc(Jr,s),l&&clearTimeout(l),l=setTimeout(()=>{Pt.enableTocAnimation()},oe.scrollSmoothDuration),setTimeout(()=>{a=!1},oe.scrollSmoothDuration+100)},oe.throttleTimeout),oe.scrollContainer&&document.querySelector(oe.scrollContainer)?document.querySelector(oe.scrollContainer).addEventListener("click",Go,!1):document.addEventListener("click",Go,!1)}function nh(){let e=TC(oe);e!==null&&(oe.skipRendering||e&&(e.innerHTML=""),oe.scrollContainer&&document.querySelector(oe.scrollContainer)?(document.querySelector(oe.scrollContainer).removeEventListener("scroll",Ft,!1),document.querySelector(oe.scrollContainer).removeEventListener("resize",Ft,!1),Pt&&document.querySelector(oe.scrollContainer).removeEventListener("click",Go,!1)):(document.removeEventListener("scroll",Ft,!1),document.removeEventListener("resize",Ft,!1),Pt&&document.removeEventListener("click",Go,!1)))}function mV(e){nh(),_C(e||oe)}var yV=Object.prototype.hasOwnProperty;function bV(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)yV.call(n,o)&&(t[o]=n[o])}return t}function af(e,t,r){t||(t=250);let n,o;return function(...a){let i=this,l=+new Date;n&&l<n+t?(clearTimeout(o),o=setTimeout(()=>{n=l,e.apply(i,a)},t)):(n=l,e.apply(i,a))}}function Ob(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function vV(e,t,r="auto"){switch(r){case"debounce":return Ob(e,t);case"throttle":return af(e,t);default:return t<334?Ob(e,t):af(e,t)}}function EV(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function TC(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var SV={destroy:nh,init:_C,refresh:mV},Ab=SV,xV=F.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),$V=F.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),wV=F.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),CV=({headingId:e,title:t})=>typeof t=="string"||!t?h.createElement(wV,{as:"h2",id:e,className:t?"":"sb-sr-only",lang:t?void 0:"en"},t||"Table of contents"):h.createElement("div",{id:e},t),_V=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:a,channel:i,className:l})=>{p.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:o??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){let[,f]=d.currentTarget.href.split("#");f&&i.emit(uV,`#${f}`)}},...a},c=setTimeout(()=>Ab.init(u),100);return()=>{clearTimeout(c),Ab.destroy()}},[i,t,o,n,r,a]);let s="table-of-contents";return h.createElement(xV,{className:l},t?null:h.createElement($V,{"aria-labelledby":s},h.createElement(CV,{headingId:s,title:e}),h.createElement("div",{className:"toc-wrapper"})))},TV=e=>`anchor--${e}`,OV=({storyId:e,children:t})=>h.createElement("div",{id:TV(e),className:"sb-anchor"},t);const{InvalidBlockOfPropError:AV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{filterArgTypes:Rb}=__STORYBOOK_MODULE_PREVIEW_API__,{getService:RV}=__STORYBOOK_MODULE_PREVIEW_API__;function DV(e,t){let r=t(),[{inst:n},o]=p.useState({inst:{value:r,getSnapshot:t}});return p.useLayoutEffect(()=>{n.value=r,n.getSnapshot=t,kc(n)&&o({inst:n})},[e,r,t]),p.useEffect(()=>(kc(n)&&o({inst:n}),e(()=>{kc(n)&&o({inst:n})})),[e]),r}function kc(e){let t=e.getSnapshot,r=e.value;try{let n=t();return!Object.is(r,n)}catch{return!0}}function OC(e,t,r,n){let o=p.useRef(void 0);(o.current?.key!==e||o.current.selector!==n)&&(o.current={key:e,selector:n,state:n?Kh(t,r,n):Kh(t,r)});let a=p.useRef(r);a.current=r;let i=p.useCallback(s=>{let u=c=>{o.current={key:e,selector:n,state:c},s()};return n?t.subscribe(a.current,n,u):t.subscribe(a.current,u)},[t,e,n]),l=p.useCallback(()=>o.current.state,[]);return DV(i,l)}function AC(e){let t=RV("core/docgen");return OC(e,t.queries.docgen,{id:e})}function RC(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}function DC(e,t){return Object.fromEntries(Object.entries(e||{}).map(([r,n])=>[r,RC(n,t)]))}function PC({componentId:e,storyId:t,parameters:r,initialArgs:n,customArgTypes:o}){let{data:a,isInitialLoading:i}=AC(e);return a?{rows:{serviceComponentName:a.name,mainRows:x_({payload:a,storyId:t??e,parameters:r,initialArgs:n,customArgTypes:o}),subcomponentRows:S_(a)},isInitialLoading:i}:{rows:null,isInitialLoading:i}}var On=(e,t)=>p.useContext(ot).resolveOf(e,t),PV=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),hs=e=>{if(e)return typeof e=="string"?e.includes("-")?PV(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function IV(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function IC(e){let{of:t}=e;if("of"in e&&t===void 0)throw new AV;let r=p.useContext(ot),n=On(t||"meta"),o;if(n.type==="component"){let{component:i,projectAnnotations:{parameters:l}}=n;o={parameters:l,componentId:r.getComponentId(i),argTypes:RC(i,l),component:i}}else if(n.type==="meta"){let{id:i,argTypes:l,parameters:s,initialArgs:u,component:c,subcomponents:d}=n.preparedMeta;o={parameters:s,componentId:i.split("--")[0],initialArgs:u,argTypes:l,component:c,subcomponents:d}}else{let{id:i,argTypes:l,parameters:s,initialArgs:u,component:c,subcomponents:d}=n.story;o={parameters:s,componentId:i.split("--")[0],storyId:i,initialArgs:u,argTypes:l,component:c,subcomponents:d}}let a=o.parameters?.docs?.argTypes||{};return{...o,filterProps:{include:e.include??a.include,exclude:e.exclude??a.exclude,sort:e.sort??a.sort}}}function FC({mainName:e="Main",mainRows:t,subcomponentRows:r,include:n,exclude:o,sort:a,docsLang:i}){let l=Rb(t,n,o);if(Object.keys(r).length===0)return h.createElement(io,{rows:l,sort:a,docsLang:i});let s={[e]:{rows:l,sort:a},...Object.fromEntries(Object.entries(r).map(([u,c])=>[u,{rows:Rb(c,n,o),sort:a}]))};return h.createElement(CC,{tabs:s,sort:a,docsLang:i})}var FV=e=>{let{argTypes:t,parameters:r,component:n,subcomponents:o,filterProps:a}=IC(e);return t?FC({mainName:hs(n),mainRows:t,subcomponentRows:DC(o,r),docsLang:r?.docs?.lang,...a}):null},LV=e=>{let{argTypes:t,parameters:r,componentId:n,storyId:o,initialArgs:a,filterProps:i,component:l}=IC(e),{rows:s,isInitialLoading:u}=PC({componentId:n,storyId:o,parameters:r,initialArgs:a,customArgTypes:t});return u?h.createElement(io,{isLoading:!0}):s?FC({mainName:hs(l)??s.serviceComponentName,mainRows:s.mainRows,subcomponentRows:s.subcomponentRows,docsLang:r?.docs?.lang,...i}):null},kV=e=>globalThis.FEATURES?.experimentalDocgenServer?h.createElement(LV,{...e}):h.createElement(FV,{...e});Qe("ArgTypes",kV);const{FORCE_REMOUNT:NV}=__STORYBOOK_MODULE_CORE_EVENTS__,{InvalidBlockOfPropError:MV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{InvalidBlockOfPropError:BV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var jV=Object.create,LC=Object.defineProperty,HV=Object.getOwnPropertyDescriptor,kC=Object.getOwnPropertyNames,UV=Object.getPrototypeOf,KV=Object.prototype.hasOwnProperty,ne=(e,t)=>function(){return t||(0,e[kC(e)[0]])((t={exports:{}}).exports,t),t.exports},zV=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of kC(t))!KV.call(e,o)&&o!==r&&LC(e,o,{get:()=>t[o],enumerable:!(n=HV(t,o))||n.enumerable});return e},oh=(e,t,r)=>(r=e!=null?jV(UV(e)):{},zV(!e||!e.__esModule?LC(r,"default",{value:e,enumerable:!0}):r,e)),GV=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],WV=["detail"];function VV(e){let t=GV.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of WV.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var NC=ne({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),qV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),YV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),XV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),JV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),ZV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),ah=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),QV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),eq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),tq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),rq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),nq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),oq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),aq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),iq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),lq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=iq();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),sq=ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),ih=ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=sq();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),uq=ne({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),MC=ne({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0}}}),BC=ne({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=MC();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),jC=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),HC=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=NC();t.exports=r.getPrototypeOf||null}}),cq=ne({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,a="[object Function]",i=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var g=0;g<c.length;g+=1)d[g+u.length]=c[g];return d},l=function(u,c){for(var d=[],f=c,g=0;f<u.length;f+=1,g+=1)d[g]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==a)throw new TypeError(r+c);for(var d=l(arguments,1),f,g=function(){if(this instanceof f){var E=c.apply(this,i(d,arguments));return Object(E)===E?E:this}return c.apply(u,i(d,arguments))},m=o(0,c.length-d.length),y=[],v=0;v<m;v++)y[v]="$"+v;if(f=Function("binder","return function ("+s(y,",")+"){ return binder.apply(this,arguments); }")(g),c.prototype){var b=function(){};b.prototype=c.prototype,f.prototype=new b,b.prototype=null}return f}}}),gs=ne({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=cq();t.exports=Function.prototype.bind||r}}),lh=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),UC=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),dq=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),fq=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=gs(),n=UC(),o=lh(),a=dq();t.exports=a||r.call(o,n)}}),KC=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=gs(),n=ah(),o=lh(),a=fq();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return a(r,o,i)}}}),pq=ne({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=KC(),n=ih(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var a=!!o&&n&&n(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;t.exports=a&&typeof a.get=="function"?r([a.get]):typeof l=="function"?(function(s){return l(s==null?s:i(s))}):!1}}),hq=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=jC(),n=HC(),o=pq();t.exports=r?function(a){return r(a)}:n?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)}:o?function(a){return o(a)}:null}}),zC=ne({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=gs();t.exports=o.call(r,n)}}),gq=ne({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=NC(),o=qV(),a=YV(),i=XV(),l=JV(),s=ZV(),u=ah(),c=QV(),d=eq(),f=tq(),g=rq(),m=nq(),y=oq(),v=aq(),b=lq(),E=Function,S=function(Z){try{return E('"use strict"; return ('+Z+").constructor;")()}catch{}},x=ih(),C=uq(),$=function(){throw new u},T=x?(function(){try{return arguments.callee,$}catch{try{return x(arguments,"callee").get}catch{return $}}})():$,O=BC()(),L=hq(),I=HC(),_=jC(),N=UC(),B=lh(),w={},R=typeof Uint8Array>"u"||!L?r:L(Uint8Array),P={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":O&&L?L([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":E,"%GeneratorFunction%":w,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&L?L(L([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!L?r:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!L?r:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&L?L(""[Symbol.iterator]()):r,"%Symbol%":O?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":T,"%TypedArray%":R,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":B,"%Function.prototype.apply%":N,"%Object.defineProperty%":C,"%Object.getPrototypeOf%":I,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":v,"%Math.sign%":b,"%Reflect.getPrototypeOf%":_};if(L)try{null.error}catch(Z){A=L(L(Z)),P["%Error.prototype%"]=A}var A,D=function Z(V){var Y;if(V==="%AsyncFunction%")Y=S("async function () {}");else if(V==="%GeneratorFunction%")Y=S("function* () {}");else if(V==="%AsyncGeneratorFunction%")Y=S("async function* () {}");else if(V==="%AsyncGenerator%"){var ee=Z("%AsyncGeneratorFunction%");ee&&(Y=ee.prototype)}else if(V==="%AsyncIteratorPrototype%"){var se=Z("%AsyncGenerator%");se&&L&&(Y=L(se.prototype))}return P[V]=Y,Y},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=gs(),K=zC(),j=k.call(B,Array.prototype.concat),z=k.call(N,Array.prototype.splice),U=k.call(B,String.prototype.replace),H=k.call(B,String.prototype.slice),G=k.call(B,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,ge=function(Z){var V=H(Z,0,1),Y=H(Z,-1);if(V==="%"&&Y!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Y==="%"&&V!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var ee=[];return U(Z,W,function(se,et,J,tt){ee[ee.length]=J?U(tt,q,"$1"):et||se}),ee},Ne=function(Z,V){var Y=Z,ee;if(K(M,Y)&&(ee=M[Y],Y="%"+ee[0]+"%"),K(P,Y)){var se=P[Y];if(se===w&&(se=D(Y)),typeof se>"u"&&!V)throw new u("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:ee,name:Y,value:se}}throw new s("intrinsic "+Z+" does not exist!")};t.exports=function(Z,V){if(typeof Z!="string"||Z.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof V!="boolean")throw new u('"allowMissing" argument must be a boolean');if(G(/^%?[^%]*%?$/,Z)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y=ge(Z),ee=Y.length>0?Y[0]:"",se=Ne("%"+ee+"%",V),et=se.name,J=se.value,tt=!1,Rt=se.alias;Rt&&(ee=Rt[0],z(Y,j([0,1],Rt)));for(var pt=1,Dt=!0;pt<Y.length;pt+=1){var Pe=Y[pt],ar=H(Pe,0,1),ir=H(Pe,-1);if((ar==='"'||ar==="'"||ar==="`"||ir==='"'||ir==="'"||ir==="`")&&ar!==ir)throw new s("property names with quotes must have matching quotes");if((Pe==="constructor"||!Dt)&&(tt=!0),ee+="."+Pe,et="%"+ee+"%",K(P,et))J=P[et];else if(J!=null){if(!(Pe in J)){if(!V)throw new u("base intrinsic for "+Z+" exists, but the property is not available.");return}if(x&&pt+1>=Y.length){var lr=x(J,Pe);Dt=!!lr,Dt&&"get"in lr&&!("originalValue"in lr.get)?J=lr.get:J=J[Pe]}else Dt=K(J,Pe),J=J[Pe];Dt&&!tt&&(P[et]=J)}}return J}}}),sh=ne({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=gq(),n=KC(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(a,i){var l=r(a,!!i);return typeof l=="function"&&o(a,".prototype.")>-1?n([l]):l}}}),mq=ne({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=MC();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),GC=ne({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=sh(),n=mq()(),o=zC(),a=ih(),i;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),i=function(g){if(!g||typeof g!="object")return!1;var m=a(g,"lastIndex"),y=m&&o(m,"value");if(!y)return!1;try{l(g,c)}catch(v){return v===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",i=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:d(g)===f});var l,s,u,c,d,f;t.exports=i}}),yq=ne({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),bq=ne({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=sh(),n=GC(),o=r("RegExp.prototype.exec"),a=ah();t.exports=function(i){if(!n(i))throw new a("`regex` must be a RegExp");return function(l){return o(i,l)!==null}}}}),vq=ne({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=sh(),n=r("Object.prototype.toString"),o=BC()(),a=bq();o?(i=r("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,l,s}}),Eq=oh(GC()),Sq=oh(yq()),xq=oh(vq());function $q(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var wq=typeof global=="object"&&global&&global.Object===Object&&global,Cq=wq,_q=typeof self=="object"&&self&&self.Object===Object&&self,Tq=Cq||_q||Function("return this")(),uh=Tq,Oq=uh.Symbol,lo=Oq,WC=Object.prototype,Aq=WC.hasOwnProperty,Rq=WC.toString,Fo=lo?lo.toStringTag:void 0;function Dq(e){var t=Aq.call(e,Fo),r=e[Fo];try{e[Fo]=void 0;var n=!0}catch{}var o=Rq.call(e);return n&&(t?e[Fo]=r:delete e[Fo]),o}var Pq=Dq,Iq=Object.prototype,Fq=Iq.toString;function Lq(e){return Fq.call(e)}var kq=Lq,Nq="[object Null]",Mq="[object Undefined]",Db=lo?lo.toStringTag:void 0;function Bq(e){return e==null?e===void 0?Mq:Nq:Db&&Db in Object(e)?Pq(e):kq(e)}var jq=Bq,Pb=lo?lo.prototype:void 0;Pb&&Pb.toString;function Hq(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var VC=Hq,Uq="[object AsyncFunction]",Kq="[object Function]",zq="[object GeneratorFunction]",Gq="[object Proxy]";function Wq(e){if(!VC(e))return!1;var t=jq(e);return t==Kq||t==zq||t==Uq||t==Gq}var Vq=Wq,qq=uh["__core-js_shared__"],Nc=qq,Ib=(function(){var e=/[^.]+$/.exec(Nc&&Nc.keys&&Nc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Yq(e){return!!Ib&&Ib in e}var Xq=Yq,Jq=Function.prototype,Zq=Jq.toString;function Qq(e){if(e!=null){try{return Zq.call(e)}catch{}try{return e+""}catch{}}return""}var eY=Qq,tY=/[\\^$.*+?()[\]{}|]/g,rY=/^\[object .+?Constructor\]$/,nY=Function.prototype,oY=Object.prototype,aY=nY.toString,iY=oY.hasOwnProperty,lY=RegExp("^"+aY.call(iY).replace(tY,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sY(e){if(!VC(e)||Xq(e))return!1;var t=Vq(e)?lY:rY;return t.test(eY(e))}var uY=sY;function cY(e,t){return e?.[t]}var dY=cY;function fY(e,t){var r=dY(e,t);return uY(r)?r:void 0}var qC=fY;function pY(e,t){return e===t||e!==e&&t!==t}var hY=pY,gY=qC(Object,"create"),fa=gY;function mY(){this.__data__=fa?fa(null):{},this.size=0}var yY=mY;function bY(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var vY=bY,EY="__lodash_hash_undefined__",SY=Object.prototype,xY=SY.hasOwnProperty;function $Y(e){var t=this.__data__;if(fa){var r=t[e];return r===EY?void 0:r}return xY.call(t,e)?t[e]:void 0}var wY=$Y,CY=Object.prototype,_Y=CY.hasOwnProperty;function TY(e){var t=this.__data__;return fa?t[e]!==void 0:_Y.call(t,e)}var OY=TY,AY="__lodash_hash_undefined__";function RY(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fa&&t===void 0?AY:t,this}var DY=RY;function Eo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Eo.prototype.clear=yY;Eo.prototype.delete=vY;Eo.prototype.get=wY;Eo.prototype.has=OY;Eo.prototype.set=DY;var Fb=Eo;function PY(){this.__data__=[],this.size=0}var IY=PY;function FY(e,t){for(var r=e.length;r--;)if(hY(e[r][0],t))return r;return-1}var ms=FY,LY=Array.prototype,kY=LY.splice;function NY(e){var t=this.__data__,r=ms(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():kY.call(t,r,1),--this.size,!0}var MY=NY;function BY(e){var t=this.__data__,r=ms(t,e);return r<0?void 0:t[r][1]}var jY=BY;function HY(e){return ms(this.__data__,e)>-1}var UY=HY;function KY(e,t){var r=this.__data__,n=ms(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var zY=KY;function So(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}So.prototype.clear=IY;So.prototype.delete=MY;So.prototype.get=jY;So.prototype.has=UY;So.prototype.set=zY;var GY=So,WY=qC(uh,"Map"),VY=WY;function qY(){this.size=0,this.__data__={hash:new Fb,map:new(VY||GY),string:new Fb}}var YY=qY;function XY(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var JY=XY;function ZY(e,t){var r=e.__data__;return JY(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ys=ZY;function QY(e){var t=ys(this,e).delete(e);return this.size-=t?1:0,t}var eX=QY;function tX(e){return ys(this,e).get(e)}var rX=tX;function nX(e){return ys(this,e).has(e)}var oX=nX;function aX(e,t){var r=ys(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var iX=aX;function xo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xo.prototype.clear=YY;xo.prototype.delete=eX;xo.prototype.get=rX;xo.prototype.has=oX;xo.prototype.set=iX;var YC=xo,lX="Expected a function";function ch(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(lX);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(ch.Cache||YC),r}ch.Cache=YC;var sX=ch,uX=500;function cX(e){var t=sX(e,function(n){return r.size===uX&&r.clear(),n}),r=t.cache;return t}var dX=cX,fX=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pX=/\\(\\)?/g;dX(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(fX,function(r,n,o,a){t.push(o?a.replace(pX,"$1"):n||r)}),t});var hX=$q,gX=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function XC(e){if(!hX(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=VV(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var mX=function(e){let t,r,n,o;return function(a,i){try{if(a==="")return o=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return gX.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,Eq.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,Sq.default)(i))return;if((0,xq.default)(i)){if(!e.allowSymbol)return;let u=Symbol.keyFor(i);return u!==void 0?`_gsymbol_${u}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(o)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i?.constructor?.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let u=t.get(i);if(!u){let c={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((d,f)=>{try{d[f]=i[f]}catch{}return d},{})};return o.push(a),n.unshift(c),t.set(i,JSON.stringify(o)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}let s=t.get(i);if(!s){let u=Array.isArray(i)?i:XC(i);return o.push(a),n.unshift(u),t.set(i,JSON.stringify(o)),i!==u&&r.set(i,u),u}return`_duplicate_${s}`}catch{return}}},yX={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},bX=(e,t={})=>{let r={...yX,...t};return JSON.stringify(XC(e),mX(r),t.space)};function JC(e){return bX(e,{maxDepth:50})}var dh=p.createContext({sources:{}}),ZC="--unknown--",vX=({children:e,channel:t})=>{let[r,n]=p.useState({});return p.useEffect(()=>{let o=(a,i=null,l=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof a=="string"?{id:a,source:i,format:l}:a,f=u?JC(u):ZC;n(g=>({...g,[s]:{...g[s],[f]:{code:c||"",format:d}}}))};return t.on(yh,o),()=>t.off(yh,o)},[]),h.createElement(dh.Provider,{value:{sources:r}},e)};const{getService:EX}=__STORYBOOK_MODULE_PREVIEW_API__;function QC(e,t){let r=e.split("--")[0],n=EX("core/story-docs"),o=p.useCallback(a=>t(a,e),[t,e]);return OC(e,n.queries.storyDocs,{id:r},o)}function SX(e){return QC(e,F2)}function xX(e){return QC(e,L2)}function $X(e,t,r){let[n,o]=p.useState("Transforming..."),a=t?t?.(e,r):e;return p.useEffect(()=>{async function i(){let l=await a;l!==n&&o(l)}i()}),typeof a=="object"&&typeof a.then=="function"?n:a}var wX={sources:{}},CX=(e,t,r)=>{let{sources:n}=r,o=n?.[e];return o?.[JC(t)]||o?.[ZC]||{code:""}},_X=({snippet:e,serviceSnippet:t,storyContext:r,typeFromProps:n,transformFromProps:o})=>{let a=r.parameters??{},{__isArgsStory:i}=a,l=a.docs?.source||{},s=n||l.type||vs.AUTO,u=t||e,c=s===vs.DYNAMIC||s===vs.AUTO&&u&&i?u:l.originalSource||"",d=o??l.transform,f=d?$X(c,d,r):c;return l.code!==void 0?l.code:f},bs=(e,t,r,n="")=>{let{of:o}=e,a=p.useMemo(()=>{if(o)return t.resolveOf(o,["story"]).story;try{return t.storyById()}catch{}},[t,o]),i=a?t.getStoryContext(a):{},l=e.__forceInitialArgs?i.initialArgs:i.unmappedArgs,s=a?CX(a.id,l,r):null,u=_X({snippet:s?s.code:"",serviceSnippet:n,storyContext:{...i,args:l},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&o===void 0)throw new BV;let c=a?.parameters?.docs?.source||{},d=e.format,f=e.language??c.language??"jsx",g=e.dark??c.dark??!1;return e.code===void 0&&!a?{error:"Oh no! The source is not available."}:e.code!==void 0?{code:e.code,format:d,language:f,dark:g}:(d=s?.format??!0,{code:u,format:d,language:f,dark:g})},TX=({storyId:e,docsContext:t,sourceContext:r,...n})=>{let o=xX(e).data??"",a=bs(n,t,r,o);return h.createElement(Ia,{...a})},OX=e=>{let{of:t}=e,r=p.useContext(dh),n=p.useContext(ot),o=p.useMemo(()=>{if(t)return n.resolveOf(t,["story"]).story;try{return n.storyById()}catch{}},[n,t]);if(globalThis.FEATURES?.experimentalDocgenServer&&o?.id)return h.createElement(TX,{...e,docsContext:n,sourceContext:r,storyId:o.id});let a=bs(e,n,r);return h.createElement(Ia,{...a})},AX=e=>{let t=p.useContext(ot),r=bs(e,t,wX);return h.createElement(Ia,{...r})},RX=e=>e.code!==void 0?h.createElement(AX,{...e}):h.createElement(OX,{...e});Qe("Source",RX);var DX=e=>{let t=p.useContext(ot),r=p.useContext(dh),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new MV;let{story:a}=On(n||"story",["story"]),i=bs({...o,...n&&{of:n}},t,r),l=e.layout??a.parameters.layout??a.parameters.docs?.canvas?.layout??"padded",s=e.withToolbar??a.parameters.docs?.canvas?.withToolbar??!1,u=e.additionalActions??a.parameters.docs?.canvas?.additionalActions,c=e.sourceState??a.parameters.docs?.canvas?.sourceState??"hidden",d=e.className??a.parameters.docs?.canvas?.className,f=e.story?.inline??a.parameters?.docs?.story?.inline??!1,g=p.useCallback(()=>{t.channel.emit(NV,{storyId:a.id})},[t.channel,a.id]);return h.createElement(wC,{withSource:c==="none"?void 0:i,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:l,inline:f,onReloadStory:f?g:void 0},h.createElement(WW,{of:n||a.moduleExport,meta:e.meta,...e.story}))},PX=Qe("Canvas",DX);const{filterArgTypes:Lb}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:IX,STORY_ARGS_UPDATED:kb,UPDATE_STORY_ARGS:FX}=__STORYBOOK_MODULE_CORE_EVENTS__;var LX=(e,t)=>{let r=kX(e,t);if(!r)throw new Error("No result when story was defined");return r},kX=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,a]=p.useState(r.args);p.useEffect(()=>{let s=u=>{u.storyId===n&&a(u.args)};return t.channel.on(kb,s),()=>t.channel.off(kb,s)},[n,t.channel]);let i=p.useCallback(s=>t.channel.emit(FX,{storyId:n,updatedArgs:s}),[n,t.channel]),l=p.useCallback(s=>t.channel.emit(IX,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,i,l]};const{GLOBALS_UPDATED:Nb}=__STORYBOOK_MODULE_CORE_EVENTS__;var NX=(e,t)=>{let r=t.getStoryContext(e),[n,o]=p.useState(r.globals);return p.useEffect(()=>{let a=i=>{o(i.globals)};return t.channel.on(Nb,a),()=>t.channel.off(Nb,a)},[t.channel]),[n]};const{Tag:MX}=__STORYBOOK_MODULE_PREVIEW_API__;var e_=()=>{let e=p.useContext(ot),t=e.componentStories();return e.filterByAutodocs===!1?t[0]:t.find(r=>r.tags.includes(MX.AUTODOCS))};function t_(e,t){let r=e.parameters.docs?.controls||{};return{include:t.include??r.include,exclude:t.exclude??r.exclude,sort:t.sort??r.sort}}function r_(e,t){let r=bC(),[n,o,a]=LX(e,t),[i]=NX(e,t);return{controlsId:r,args:n,globals:i,updateArgs:o,resetArgs:a}}var n_=({mainName:e="Story",mainRows:t,subcomponentRows:r,include:n,exclude:o,sort:a,storyId:i,controlsId:l,args:s,globals:u,updateArgs:c,resetArgs:d,docsLang:f})=>{let g=Lb(t,n,o);if(Object.keys(r).length===0)return Object.keys(g).length>0||Object.keys(s).length>0?h.createElement(io,{storyId:i,controlsId:l,rows:g,sort:a,args:s,globals:u,updateArgs:c,resetArgs:d,docsLang:f}):null;let m={[e]:{rows:g,sort:a},...Object.fromEntries(Object.entries(r).map(([y,v])=>[y,{rows:Lb(v,n,o),sort:a}]))};return h.createElement(CC,{tabs:m,sort:a,args:s,globals:u,updateArgs:c,resetArgs:d,storyId:i,controlsId:l,docsLang:f})},BX=({story:e,context:t,...r})=>{let{parameters:n,argTypes:o,component:a,subcomponents:i}=e,l=t_(e,r),s=r_(e,t);return o?h.createElement(n_,{mainName:hs(a)||"Story",mainRows:o,subcomponentRows:DC(i,n),...l,storyId:e.id,...s,docsLang:n?.docs?.lang}):null},jX=({story:e,context:t,...r})=>{let{parameters:n,argTypes:o,component:a}=e,i=t_(e,r),l=r_(e,t),{rows:s,isInitialLoading:u}=PC({componentId:e.id.split("--")[0],storyId:e.id,parameters:n,initialArgs:e.initialArgs,customArgTypes:o});return u?h.createElement(io,{isLoading:!0}):s?h.createElement(n_,{mainName:hs(a)??s.serviceComponentName,mainRows:s.mainRows,subcomponentRows:s.subcomponentRows,...i,storyId:e.id,...l,docsLang:n?.docs?.lang}):null},HX=e=>{let{of:t}=e,r=p.useContext(ot),n=e_(),o=t?r.resolveOf(t,["story"]).story:n;if(!o)return null;let a={...e,story:o,context:r};return globalThis.FEATURES?.experimentalDocgenServer?h.createElement(jX,{...a}):h.createElement(BX,{...a})},UX=Qe("Controls",HX);const{InvalidBlockOfPropError:KX}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{NAVIGATE_URL:zX}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:o_}=globalThis,a_=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return h.createElement(gp,null,t);let n=e&&e.split("-");return h.createElement(Ia,{language:n&&n[1]||"text",format:!1,code:t,...r})};function fh(e,t){e.channel.emit(zX,t)}var lf=Mw.a,GX=({hash:e,children:t})=>{let r=p.useContext(ot);return h.createElement(lf,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);o_.getElementById(o)&&fh(r,e)}},t)},i_=e=>{let{href:t,target:r,children:n,...o}=e,a=p.useContext(ot);return!t||r==="_blank"||/^https?:\/\//.test(t)?h.createElement(lf,{...e}):t.startsWith("#")?h.createElement(GX,{hash:t},n):h.createElement(lf,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),fh(a,i.currentTarget.getAttribute("href")||""))},target:r,...o},n)},l_=["h1","h2","h3","h4","h5","h6"],WX=l_.reduce((e,t)=>({...e,[t]:F(t)({})}),{}),VX=F.span({display:"block",position:"relative","& svg":{visibility:"hidden"},"&:hover svg, &:focus-within svg":{visibility:"visible"}}),qX=F.span({position:"absolute",top:"50%",right:"100%",lineHeight:"inherit",paddingRight:"8px","&&":{marginTop:-14},color:"inherit","& a":{color:"inherit",textDecoration:"none"}});F.span({});var YX=({as:e,id:t,children:r,...n})=>{let o=p.useContext(ot),a=WX[e],i=`#${t}`;return h.createElement(a,{id:t,...n},h.createElement(VX,{className:"sb-unstyled"},h.createElement(qX,null,h.createElement(Ee,{asChild:!0,variant:"ghost",size:"small",padding:"small",ariaLabel:"Copy heading URL to address bar"},h.createElement("a",{href:i,target:"_self",onClick:l=>{l.preventDefault(),o_.getElementById(t)&&fh(o,i)}},h.createElement(wU,null)))),r))},ph=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return h.createElement(YX,{as:t,id:r,...o},n);let a=t,{as:i,...l}=e;return h.createElement(a,{...xe(l,t)})},s_=l_.reduce((e,t)=>({...e,[t]:r=>h.createElement(ph,{as:t,...r})}),{}),XX=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(IU`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
736
+ ${Qd(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"} 0 0 0 1px inset`,cursor:o?"not-allowed":"pointer",height:6,width:"100%"},i={borderColor:oo(e.color.secondary,.4)},l={width:16,height:16,borderRadius:50,cursor:o?"not-allowed":"grab",background:e.input.background,border:`1px solid ${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,boxShadow:e.base==="light"?`0 1px 3px 0px ${oo(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${Ko(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},u={background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)"},c={borderColor:e.color.secondary,boxShadow:e.base==="light"?`0 0px 5px 0px ${e.color.secondary}`:"unset"};return{appearance:"none",backgroundColor:"transparent",width:"100%","&::-webkit-slider-runnable-track":a,"&::-moz-range-track":a,"&::-ms-track":{...a,color:"transparent"},"&::-moz-range-thumb":{...l,"&:hover":s,"&:active":u},"&::-webkit-slider-thumb":{...l,marginTop:"-6px",appearance:"none","&:hover":s,"&:active":u},"&::-ms-thumb":{...l,marginTop:0,"&:hover":s,"&:active":u},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":i,"&::-moz-range-track":i,"&::-ms-track":i,"&::-webkit-slider-thumb":c,"&::-moz-range-thumb":c,"&::-ms-thumb":c},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),hC=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),fG=F(hC)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),pG=F.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function hG(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var gG=({name:e,storyId:t,controlsId:r,value:n,onChange:o,min:a=0,max:i=100,step:l=1,onBlur:s,onFocus:u,argType:c,required:d})=>{let f=b=>{o(_z(b.target.value))},g=n!==void 0,m=p.useMemo(()=>hG(l),[l]),y=!!c?.table?.readonly,v=jt(e,t,r);return h.createElement(pG,{readOnly:y},h.createElement("label",{htmlFor:v,className:"sb-sr-only"},e),h.createElement(hC,null,a),h.createElement(dG,{id:v,type:"range",disabled:y,onChange:f,"aria-required":d||void 0,name:e,min:a,max:i,step:l,onFocus:u,onBlur:s,value:n??a}),h.createElement(fG,{numberOFDecimalsPlaces:m,max:i},g?n.toFixed(m):"--"," / ",i))},mG=F.label({display:"flex"}),yG=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),bG=({name:e,storyId:t,controlsId:r,value:n,onChange:o,onFocus:a,onBlur:i,maxLength:l,argType:s,required:u})=>{let c=v=>{o(v.target.value)},d=!!s?.table?.readonly,[f,g]=p.useState(!1),m=p.useCallback(()=>{o(""),g(!0)},[g]);if(n===void 0)return h.createElement(Ee,{ariaLabel:!1,variant:"outline",size:"medium",disabled:d,id:xl(e,t,r),onClick:m},"Set string");let y=typeof n=="string";return h.createElement(mG,null,h.createElement(_n.Textarea,{id:jt(e,t,r),maxLength:l,onChange:c,disabled:d,size:"flex",placeholder:"Edit string...",autoFocus:f,"aria-required":u||void 0,valid:y?void 0:"error",name:e,value:y?n:"",onFocus:a,onBlur:i}),l&&h.createElement(yG,{isMaxed:n?.length===l},n?.length??0," / ",l))},vG=F(_n.Input)({padding:10});function EG(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var SG=({onChange:e,name:t,storyId:r,controlsId:n,accept:o="image/*",value:a,argType:i,required:l})=>{let s=p.useRef(null),u=i?.control?.readOnly;function c(f){if(!f.target.files)return;let g=Array.from(f.target.files).map(m=>URL.createObjectURL(m));e(g),EG(a||[])}p.useEffect(()=>{a==null&&s.current&&(s.current.value="")},[a,t]);let d=jt(t,r,n);return h.createElement(h.Fragment,null,h.createElement("label",{htmlFor:d,className:"sb-sr-only"},t),h.createElement(vG,{ref:s,id:d,type:"file",name:t,multiple:!0,disabled:u,onChange:c,accept:o,"aria-required":l||void 0,size:"flex"}))},xG=p.lazy(()=>yr(()=>import("./Color-6AOWCN3U-Bk0kE9HD.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url)),$G=e=>h.createElement(p.Suspense,{fallback:h.createElement("div",null)},h.createElement(xG,{...e})),wG={array:Eb,object:Eb,boolean:bz,color:$G,date:wz,number:Oz,check:Pn,"inline-check":Pn,radio:Pn,"inline-radio":Pn,select:Pn,"multi-select":Pn,range:gG,text:bG,file:SG},Oc=()=>h.createElement(h.Fragment,null,"-"),CG=({row:e,arg:t,updateArgs:r,isRequired:n,storyId:o,controlsId:a})=>{let{key:i,control:l}=e,[s,u]=p.useState(!1),[c,d]=p.useState({value:t});p.useEffect(()=>{s||d({value:t})},[s,t]);let f=p.useCallback(b=>(d({value:b}),r({[i]:b}),b),[r,i]),g=p.useCallback(()=>u(!1),[]),m=p.useCallback(()=>u(!0),[]);if(!l||l.disable)return l?.disable!==!0&&e?.type?.name!=="function"?h.createElement(h.Fragment,null,h.createElement("span",{className:"sbdocs sbdocs-argcontrol-setup"},h.createElement($a,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls")),h.createElement("span",{className:"sbdocs sbdocs-argcontrol-placeholder"},h.createElement(Oc,null))):h.createElement(Oc,null);let y={name:i,storyId:o,controlsId:a,argType:e,value:c.value,required:n,onChange:f,onBlur:g,onFocus:m},v=wG[l.type]||Oc;return h.createElement(v,{...y,...l,controlType:l.type})},_G=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Er({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),TG=({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:h.createElement(h.Fragment,null,h.createElement(_G,null,h.createElement("tbody",null,n&&h.createElement("tr",{key:"deprecated"},h.createElement("td",{colSpan:2},h.createElement("strong",null,"Deprecated"),": ",e.deprecated?.toString())),r&&t.map(a=>h.createElement("tr",{key:a.name},h.createElement("td",null,h.createElement("code",null,a.name)),h.createElement("td",null,a.description))),o&&h.createElement("tr",{key:"returns"},h.createElement("td",null,h.createElement("code",null,"Returns")),h.createElement("td",null,e.returns?.description)))))};function OG(e){return[...new Set(e)]}var vl=8,Sb=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),AG=F.details({display:"flex",flexDirection:"column",summary:{order:2},"summary::-webkit-details-marker":{display:"none"},"summary::marker":{content:"none"}}),RG=F.div({display:"flex",flexDirection:"column",flexWrap:"wrap",alignItems:"flex-start"}),DG=F.span(Er,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),PG=F.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:"pointer",lineHeight:"normal",margin:"0 0 4px",padding:"1px 6px",background:"none",border:"none"})),IG=F.button(Er,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center",cursor:"pointer","&:hover":{border:e.base==="light"?"1px solid hsl(0 0 0 / 0.15)":"1px solid hsl(0 0 100 / 0.15)"},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:"2px"}})),FG=F.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),LG=F(OU)({marginLeft:4}),kG=F(Gw)({marginLeft:4}),NG=()=>h.createElement("span",null,"-"),eh=({text:e,simple:t})=>h.createElement(DG,{simple:t},e),MG=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return OG(t)},xb=e=>e.slice(0,vl).map(t=>h.createElement(eh,{key:t,text:t===""?'""':t})),BG=e=>e.slice(vl).map(t=>h.createElement(eh,{key:t,text:t===""?'""':t})),jG=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=p.useState(!1),[i,l]=p.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return h.createElement(eh,{text:s});let u=MG(s),c=u.length;return c>vl?h.createElement(Sb,{isExpanded:i},xb(u),h.createElement(AG,{open:i,onToggle:d=>l(d.currentTarget.open)},h.createElement(RG,null,BG(u)),h.createElement(PG,{role:"button"},i?"Show less...":`Show ${c-vl} more...`))):h.createElement(Sb,null,xb(u))}return h.createElement(Gp,{ariaLabel:"Arg value details",placement:"bottom",visible:o,onVisibleChange:u=>{a(u)},hasCloseButton:!0,popover:h.createElement(FG,null,h.createElement(xa,{language:"jsx",format:!1},n))},h.createElement(IG,{className:"sbdocs-expandable"},h.createElement("span",null,s),o?h.createElement(LG,null):h.createElement(kG,null)))},Ac=({value:e,initialExpandedArgs:t})=>e==null?h.createElement(NG,null):h.createElement(jG,{value:e,initialExpandedArgs:t}),HG=F.span({fontWeight:"bold"}),UG=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),KG=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Er({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),zG=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?De(.1,e.color.defaultText):De(.2,e.color.defaultText),marginTop:t?4:0})),GG=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?De(.1,e.color.defaultText):De(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),WG=F.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),VG=F.tr({"span.sbdocs-argcontrol-setup":{...Jo},"&:hover, &:focus-within":{"span.sbdocs-argcontrol-setup":{...a1},"span.sbdocs-argcontrol-placeholder":{...Jo}}}),qG=e=>e&&{summary:typeof e=="string"?e:e.name},ci=e=>{let{row:t,updateArgs:r,compact:n,expandable:o,initialExpandedArgs:a,docsLang:i}=e,{name:l,description:s}=t,u=t.table||{},c=u.type||qG(t.type),d=u.defaultValue||t.defaultValue,f=t.type?.required,g=s!=null&&s!=="";return h.createElement(VG,null,h.createElement(WG,{expandable:o??!1},h.createElement(HG,null,l),f?h.createElement(UG,{"aria-hidden":!0,title:"Required"},"*"):null),n?null:h.createElement("td",null,g&&h.createElement(KG,{lang:i},h.createElement(tC,null,s)),u.jsDocTags!=null?h.createElement(h.Fragment,null,h.createElement(GG,{hasDescription:g},h.createElement(Ac,{value:c,initialExpandedArgs:a})),h.createElement(TG,{tags:u.jsDocTags})):h.createElement(zG,{hasDescription:g},h.createElement(Ac,{value:c,initialExpandedArgs:a}))),n?null:h.createElement("td",null,h.createElement(Ac,{value:d,initialExpandedArgs:a})),r?h.createElement("td",null,h.createElement(CG,{...e,isRequired:!!f})):null)},YG=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),XG=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),JG=({inAddonPanel:e})=>{let[t,r]=p.useState(!0);return p.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:h.createElement(YG,{inAddonPanel:e},h.createElement(Pa,{title:"This story has no controls",description:h.createElement(h.Fragment,null,"Storybook couldn't find or generate any controls for this story. Define"," ",h.createElement("code",null,"args")," or ",h.createElement("code",null,"argTypes"),", or configure docgen to let Storybook generate controls automatically."),footer:h.createElement(XG,null,h.createElement($a,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},h.createElement(zw,null)," Read docs"))}))},ZG=F(_U)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?De(.25,e.color.defaultText):De(.3,e.color.defaultText),border:"none",display:"inline-block"})),QG=F(TU)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?De(.25,e.color.defaultText):De(.3,e.color.defaultText),border:"none",display:"inline-block"})),eW=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),tW=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?De(.4,e.color.defaultText):De(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),rW=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),nW=F.td({position:"relative"}),oW=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Qd(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),$b=F.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),Rc=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=p.useState(n),l=e==="subsection"?rW:tW,s=r?.length||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${a?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return h.createElement(h.Fragment,null,h.createElement(oW,{title:c},h.createElement(l,{colSpan:1},h.createElement($b,{onClick:d=>i(!a),tabIndex:0},c),h.createElement(eW,null,a?h.createElement(ZG,null):h.createElement(QG,null),t)),h.createElement(nW,{colSpan:o-1},h.createElement($b,{onClick:d=>i(!a),tabIndex:-1,style:{outline:"none"}},c),a?null:u)),a?r:null)},aW=F.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),di=F.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ve=F.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),Ie=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),iW=()=>h.createElement(aW,null,h.createElement(di,null,h.createElement(Ve,{position:"first"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"second"},h.createElement(Ie,{width:"30%"})),h.createElement(Ve,{position:"third"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"last"},h.createElement(Ie,{width:"60%"}))),h.createElement(di,null,h.createElement(Ve,{position:"first"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"second"},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Ve,{position:"third"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"last"},h.createElement(Ie,{width:"60%"}))),h.createElement(di,null,h.createElement(Ve,{position:"first"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"second"},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Ve,{position:"third"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"last"},h.createElement(Ie,{width:"60%"}))),h.createElement(di,null,h.createElement(Ve,{position:"first"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"second"},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Ve,{position:"third"},h.createElement(Ie,{width:"60%"})),h.createElement(Ve,{position:"last"},h.createElement(Ie,{width:"60%"})))),lW=F.table(({theme:e,compact:t,inAddonPanel:r,inTabPanel:n})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"19px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:r||n?0:1,paddingInline:n?3:0,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}},"@media (forced-colors: active)":{tbody:{filter:"none","> tr > *":{borderColor:"CanvasText"}}}}})),sW=F.div({position:"relative"}),uW=F.div({position:"absolute",right:22,top:10}),cW=F(Ee)({margin:"-4px -12px -4px 0"}),dW={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||(e.name??"").localeCompare(t.name??""),none:null},fW=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:l,subcategory:s}=i?.table||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:a,...i});else{let c=u.subsections[s]||[];c.push({key:a,...i}),u.subsections[s]=c}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:a,...i}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:a,...i})});let n=dW[t],o=a=>n?Object.keys(a).reduce((i,l)=>({...i,[l]:a[l].sort(n)}),{}):a;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>({...a,[i]:{ungrouped:n?r.sections[i].ungrouped.sort(n):r.sections[i].ungrouped,subsections:o(r.sections[i].subsections)}}),{})}},pW=(e,t,r)=>{try{return t4(e,t,r)}catch(n){return FU.warn(n.message),!1}},io=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,inTabPanel:a,initialExpandedArgs:i,sort:l="none",isLoading:s,storyId:u,controlsId:c,docsLang:d}=e,{rows:f,args:g,globals:m}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},y=p.useRef(!1),[v,b]=p.useState(!1);p.useEffect(()=>{y.current=!1,b(!1)},[g]);let E=p.useCallback(()=>{!y.current&&r&&(y.current=!0,b(!0),r())},[r]);if("error"in e){let{error:I}=e;return h.createElement(Kw,null,I," ",h.createElement($a,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},h.createElement(zw,null)," Read the docs"))}if(s)return h.createElement(iW,null);let S=fW(uK(f||{},I=>!I?.table?.disable&&pW(I,g||{},m||{})),l),x=S.ungrouped.length===0,C=Object.entries(S.sections).length===0,$=Object.entries(S.ungroupedSubsections).length===0;if(x&&C&&$)return h.createElement(JG,{inAddonPanel:o});let T=1;t&&(T+=1),n||(T+=2);let O=Object.keys(S.sections).length>0,L={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:i,storyId:u,controlsId:c};return h.createElement(hp,null,h.createElement(sW,null,t&&!s&&r&&h.createElement(uW,null,h.createElement(cW,{variant:"ghost",padding:"small",onClick:E,disabled:v,ariaLabel:v?"Resetting controls...":"Reset controls",lang:"en"},h.createElement(AU,null))),h.createElement(lW,{compact:n,inAddonPanel:o,inTabPanel:a,className:"docblock-argstable sb-unstyled",lang:"en"},h.createElement("thead",{className:"docblock-argstable-head"},h.createElement("tr",null,h.createElement("th",null,h.createElement("span",null,"Name")),n?null:h.createElement("th",null,h.createElement("span",null,"Description")),n?null:h.createElement("th",null,h.createElement("span",null,"Default")),t?h.createElement("th",null,h.createElement("span",null,"Control")):null)),h.createElement("tbody",{className:"docblock-argstable-body"},S.ungrouped.map(I=>h.createElement(ci,{key:I.key,row:I,arg:g&&g[I.key],docsLang:d,...L})),Object.entries(S.ungroupedSubsections).map(([I,_])=>h.createElement(Rc,{key:I,label:I,level:"subsection",colSpan:T},_.map(N=>h.createElement(ci,{key:N.key,row:N,arg:g&&g[N.key],expandable:O,...L})))),Object.entries(S.sections).map(([I,_])=>h.createElement(Rc,{key:I,label:I,level:"section",colSpan:T},_.ungrouped.map(N=>h.createElement(ci,{key:N.key,row:N,arg:g&&g[N.key],...L})),Object.entries(_.subsections).map(([N,B])=>h.createElement(Rc,{key:N,label:N,level:"subsection",colSpan:T},B.map(w=>h.createElement(ci,{key:w.key,row:w,arg:g&&g[w.key],expandable:O,...L}))))))))))},Fe=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,th=600,hW=F.h1(({theme:e})=>({...Ce({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${th}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),gW=F.h2(({theme:e})=>({...Ce({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${th}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:De(.25,e.color.defaultText)})),mW=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?De(.1,e.color.defaultText):De(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,flex:1,[Fe("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"}},[Fe("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[Fe("div")]:t,[Fe("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[Fe("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[Fe("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[Fe("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[Fe("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[Fe("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[Fe("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[Fe("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[Fe("img")]:{maxWidth:"100%"},[Fe("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[Fe("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Fe("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[Fe("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[Fe("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[Fe("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[Fe("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),yW=F.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 40px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${th}px)`]:{}})),bW=({children:e,toc:t,lang:r="en"})=>h.createElement(yW,{className:"sbdocs sbdocs-wrapper"},t,h.createElement(mW,{className:"sbdocs sbdocs-content",lang:r},e));const{logger:vW}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var gC=typeof document<"u"?h.useLayoutEffect:()=>{},mC={prefix:String(Math.round(Math.random()*1e10)),current:0},yC=h.createContext(mC),EW=h.createContext(!1),Dc=new WeakMap;function SW(e=!1){let t=p.useContext(yC),r=p.useRef(null);if(r.current===null&&!e){var n,o;let a=(o=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(a){let i=Dc.get(a);i==null?Dc.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==i.state&&(t.current=i.id,Dc.delete(a))}r.current=++t.current}return r.current}function xW(e){let t=p.useContext(yC),r=SW(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function $W(e){let t=h.useId(),[r]=p.useState(OW()),n=r?"react-aria":`react-aria${mC.prefix}`;return e||`${n}-${t}`}var wW=typeof h.useId=="function"?$W:xW;function CW(){return!1}function _W(){return!0}function TW(e){return()=>{}}function OW(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(TW,CW,_W):p.useContext(EW)}var AW=!!(typeof window<"u"&&window.document&&window.document.createElement),Li=new Map,Bo;typeof FinalizationRegistry<"u"&&(Bo=new FinalizationRegistry(e=>{Li.delete(e)}));function bC(e){let[t,r]=p.useState(e),n=p.useRef(null),o=wW(t),a=p.useRef(null);if(Bo&&Bo.register(a,o),AW){let i=Li.get(o);i&&!i.includes(n)?i.push(n):Li.set(o,[n])}return gC(()=>{let i=o;return()=>{Bo&&Bo.unregister(a),Li.delete(i)}},[o]),p.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),o}function RW(e){if(DW())e.focus({preventScroll:!0});else{let t=PW(e);e.focus(),IW(t)}}var fi=null;function DW(){if(fi==null){fi=!1;try{document.createElement("div").focus({get preventScroll(){return fi=!0,!0}})}catch{}}return fi}function PW(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function IW(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function rh(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function vC(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Fa(e){let t=null;return()=>(t==null&&(t=e()),t)}var nf=Fa(function(){return vC(/^Mac/i)}),FW=Fa(function(){return vC(/^iPad/i)||nf()&&navigator.maxTouchPoints>1}),LW=Fa(function(){return rh(/AppleWebKit/i)&&!kW()}),kW=Fa(function(){return rh(/Chrome/i)}),NW=Fa(function(){return rh(/Firefox/i)});p.createContext({isNative:!0,open:BW,useHref:e=>e});function El(e,t,r=!0){var n,o;let{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}=t;NW()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(nf()?a=!0:i=!0);let u=LW()&&nf()&&!FW()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:i,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:a,ctrlKey:i,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});El.isOpening=r,RW(e),e.dispatchEvent(u),El.isOpening=!1}El.isOpening=!1;function MW(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function BW(e,t){MW(e,r=>El(r,t))}var Io=new Map,wb=new Set;function Cb(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Io.get(n.target);o||(o=new Set,Io.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Io.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Io.delete(n.target)),Io.size===0)){for(let a of wb)a();wb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Cb():document.addEventListener("DOMContentLoaded",Cb));var Pc;Pc=h.useInsertionEffect;var Ic;typeof document<"u"&&((Ic=h.useInsertionEffect)!==null&&Ic!==void 0||h.useLayoutEffect);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=p.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var ot=globalThis?globalThis.__DOCS_CONTEXT__:p.createContext(null);const{InvalidBlockOfPropError:jW}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;function HW(e,t){let r=UW([e],t);return r&&r[0]}function UW(e,t){let[r,n]=p.useState({});return p.useEffect(()=>{Promise.all(e.map(async o=>{let a=await t.loadStory(o);n(i=>i[o]===a?i:{...i,[o]:a})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return}})}var KW=Symbol("mdxWrappedBlock"),_b=h.createContext(null),Qe=(e,t)=>{let r=n=>{let o=h.useContext(_b),a=Yp()[e];if(o?.has(e)||a===r)return h.createElement(t,{...n});if(a){let i=new Set(o??[]);return i.add(e),h.createElement(_b.Provider,{value:i},h.createElement(a,{...n}))}return h.createElement(t,{...n})};return r.displayName=e,r[KW]=!0,r},EC=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new jW;return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},zW=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,a=o.story||{};if(o.disable)return null;if(e.inline??a.inline??!1){let l=e.height??a.height,s=e.autoplay??a.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??a.height??a.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},GW=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=p.useContext(ot),r=EC(e,t),n=HW(r,t);if(!n)return h.createElement($C,null);let o=zW(e,n,t);return o?h.createElement(ZW,{...o}):null},WW=Qe("Story",GW),ps=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),SC=(e,t={})=>{let r=globalThis.PREVIEW_URL||"iframe.html",[n,o]=r.split("?"),a=new URLSearchParams(o||"");return Object.entries(t).forEach(([i,l])=>{a.set(i,l)}),a.set("id",e),`${n}?${a.toString()}`},{window:VW}=globalThis,qW=class extends p.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=VW.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...a}=this.props;return h.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...a})}},xC=p.createContext({scale:1}),of=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,YW=e=>{let t=p.useRef(),[r,n]=p.useState(!0),[o,a]=p.useState(),{story:i,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return p.useEffect(()=>{if(!(i&&t.current))return()=>{};let d=t.current,f=c(i,d,{showMain:()=>{},showError:({title:g,description:m})=>a(new Error(`${g} - ${m}`)),showException:g=>a(g)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>f())}},[s,c,i]),o?h.createElement("pre",null,h.createElement(O$,{error:o})):h.createElement(h.Fragment,null,l?h.createElement("style",null,`#${of(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&h.createElement($C,null),h.createElement("div",{ref:t,id:`${of(e)}-inner`,"data-name":i.name,lang:i.parameters?.htmlLang||"en"}))},XW=({story:e,height:t="500px"})=>h.createElement("div",{style:{width:"100%",height:t}},h.createElement(xC.Consumer,null,({scale:r})=>h.createElement(qW,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:SC(e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),JW=F.strong(({theme:e})=>({color:e.color.orange})),ZW=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?h.createElement(JW,null,"This story mounts inside of play. Set"," ",h.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):h.createElement("div",{id:of(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?h.createElement(YW,{...e}):h.createElement(XW,{...e}))},$C=()=>h.createElement(Nw,null),QW=F(_w)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),Fc=F.div({display:"flex",alignItems:"center",gap:4}),Tb=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),eV=({isLoading:e,storyId:t,zoom:r,resetZoom:n,onReloadStory:o,...a})=>h.createElement(QW,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},lang:"en",...a},h.createElement(Fc,{key:"left"},e?[1,2,3].map(i=>h.createElement(Tb,{key:i})):h.createElement(h.Fragment,null,o&&h.createElement(Ee,{padding:"small",variant:"ghost",key:"reload",onClick:o,ariaLabel:"Reload story"},h.createElement(RU,null)),h.createElement(Ee,{padding:"small",variant:"ghost",key:"zoomin",onClick:i=>{i.preventDefault(),r(.8)},ariaLabel:"Zoom in"},h.createElement(yU,null)),h.createElement(Ee,{padding:"small",variant:"ghost",key:"zoomout",onClick:i=>{i.preventDefault(),r(1.25)},ariaLabel:"Zoom out"},h.createElement(bU,null)),h.createElement(Ee,{padding:"small",variant:"ghost",key:"zoomreset",onClick:i=>{i.preventDefault(),n()},ariaLabel:"Reset zoom"},h.createElement(vU,null)))),e?h.createElement(Fc,{key:"right"},h.createElement(Tb,null)):t&&h.createElement(Fc,{key:"right"},h.createElement(Ee,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},h.createElement("a",{href:SC(t),target:"_blank",rel:"noopener noreferrer"},h.createElement(CU,null))))),tV=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),rV=F(bo)({marginTop:-40,marginBottom:40}),nV=F(Ia)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ko(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Ko(.05,e.background.content)}})),oV=F.div(({theme:e})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...ps(e),"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40});function aV(e){if(p.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var iV=F(eV)({position:"absolute",top:0,left:0,right:0,height:40}),lV=2e3,wC=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:i=!1,additionalActions:l,className:s,layout:u="padded",inline:c=!1,onReloadStory:d,...f})=>{let[g,m]=p.useState(i),[y,v]=p.useState(null),[b,E]=p.useState(1),S=p.useMemo(()=>l?[...l]:[],[l]),x=bC(),C=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),$=p.useContext(ot),T=p.useCallback(async N=>{let{createCopyToClipboardFunction:B}=await yr(async()=>{const{createCopyToClipboardFunction:w}=await Promise.resolve().then(()=>_H);return{createCopyToClipboardFunction:w}},void 0,import.meta.url);await B()(N)},[]),O=p.useCallback(async()=>{try{await T(o?.code??""),v("Copied!")}catch(N){vW.error(N),v("Copy error!")}globalThis.window.setTimeout(()=>v(null),lV)},[T,o?.code]),L=aV(n),I=!!(o&&o.error),_=!!(o&&!o.error);return h.createElement(h.Fragment,null,h.createElement(oV,{withSource:o,withToolbar:a,...f,className:C.join(" ")},a&&h.createElement(iV,{isLoading:e,border:!0,zoom:N=>E(b*N),resetZoom:()=>E(1),storyId:!e&&L?EC(L,$):void 0,onReloadStory:d}),h.createElement(xC.Provider,{value:{scale:b}},h.createElement(tV,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c,className:"docs-story"},h.createElement(T$.Element,{centered:u==="centered",scale:c?b:1},Array.isArray(n)?n.map((N,B)=>h.createElement("div",{key:B},N)):h.createElement("div",null,n)))),_&&g&&h.createElement("div",{id:x},h.createElement(nV,{...o,dark:!0,copyable:!1}))),(o||S.length>0)&&h.createElement(rV,{className:"sbdocs sbdocs-preview-actions",innerStyle:{paddingInline:0}},I&&h.createElement(Ee,{lang:"en",ariaLabel:!1,disabled:!0,variant:"ghost",className:"docblock-code-toggle docblock-code-toggle--disabled"},h.createElement(Zy,null)," No code available"),_&&h.createElement(h.Fragment,null,h.createElement(Oa,{lang:"en",ariaLabel:!1,pressed:g,"aria-expanded":g,"aria-controls":x,onClick:()=>m(!g),variant:"ghost",className:`docblock-code-toggle${g?" docblock-code-toggle--expanded":""}`},h.createElement(Zy,null)," ",g?"Hide code":"Show code"),h.createElement(Ee,{lang:"en",ariaLabel:!1,variant:"ghost",onClick:O},h.createElement(EU,null)," ",y??"Copy code")),S.map(({title:N,ariaLabel:B,className:w,onClick:R,disabled:P},A)=>h.createElement(Ee,{key:A,ariaLabel:B??!1,className:w,onClick:R,disabled:!!P,variant:"ghost"},N))))};F(wC)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var sV=F(Lw)({height:"fit-content"}),CC=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return h.createElement(io,{...r[0][1],...t});let n=r.map(([o,a],i)=>{let l=i===0?t:{sort:t.sort,docsLang:t.docsLang};return{id:`prop_table_div_${o}`,title:o,children:h.createElement(io,{inTabPanel:!0,...a,...l})}});return h.createElement(sV,{tabs:n})};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?De(.4,e.color.defaultText):De(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(Ce,({theme:e})=>({...ps(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:De(.3,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:De(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...ps(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:De(.3,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));F.div(({theme:e})=>({...ps(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});F.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:uV}=__STORYBOOK_MODULE_CORE_EVENTS__;function cV(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",a,i=!0,l=0;function s(I,_){let N=_.appendChild(c(I));if(I.children.length){let B=d(I.isCollapsed);I.children.forEach(w=>{s(w,B)}),N.appendChild(B)}}function u(I,_){let N=d(!1);if(_.forEach(B=>{s(B,N)}),a=I||a,a!==null)return a.firstChild&&a.removeChild(a.firstChild),_.length===0?a:a.appendChild(N)}function c(I){let _=document.createElement("li"),N=document.createElement("a");return e.listItemClass&&_.setAttribute("class",e.listItemClass),e.onClick&&(N.onclick=e.onClick),e.includeTitleTags&&N.setAttribute("title",I.textContent),e.includeHtml&&I.childNodes.length?t.call(I.childNodes,B=>{N.appendChild(B.cloneNode(!0))}):N.textContent=I.textContent,N.setAttribute("href",`${e.basePath}#${I.id}`),N.setAttribute("class",`${e.linkClass+o}node-name--${I.nodeName}${o}${e.extraLinkClasses}`),_.appendChild(N),_}function d(I){let _=e.orderedList?"ol":"ul",N=document.createElement(_),B=e.listClass+o+e.extraListClasses;return I&&(B=B+o+e.collapsibleClass,B=B+o+e.isCollapsedClass),N.setAttribute("class",B),N}function f(){let I=T(),_=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=a.offsetTop),I>e.fixedSidebarOffset?_.className.indexOf(e.positionFixedClass)===-1&&(_.className+=o+e.positionFixedClass):_.className=_.className.replace(o+e.positionFixedClass,"")}function g(I){let _=0;return I!==null&&(_=I.offsetTop,e.hasInnerContainers&&(_+=g(I.offsetParent))),_}function m(I,_){return I&&I.className!==_&&(I.className=_),I}function y(I,_){e.positionFixedSelector&&f();let N=I,B=_?.target?.getAttribute?_?.target?.getAttribute("href"):null,w=B&&B.charAt(0)==="#"?x(B.replace("#","")):!1,R=i||w;if(_&&l<5&&l++,R&&a&&N.length>0){let P=O(N),A=a.querySelector(`.${e.activeLinkClass}`),D=P.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),M=window.location.hash.replace("#",""),k=D,K=C();B&&w?k=B.replace("#",""):M&&M!==D&&K&&(x(D)||l<=2)&&(k=M);let j=a.querySelector(`.${e.linkClass}[href="${e.basePath}#${k}"]`);if(A===j)return;let z=a.querySelectorAll(`.${e.linkClass}`);t.call(z,W=>{m(W,W.className.replace(o+e.activeLinkClass,""))});let U=a.querySelectorAll(`.${e.listItemClass}`);t.call(U,W=>{m(W,W.className.replace(o+e.activeListItemClass,""))}),j&&j.className.indexOf(e.activeLinkClass)===-1&&(j.className+=o+e.activeLinkClass);let H=j?.parentNode;H&&H.className.indexOf(e.activeListItemClass)===-1&&(H.className+=o+e.activeListItemClass);let G=a.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(G,W=>{W.className.indexOf(e.isCollapsedClass)===-1&&(W.className+=o+e.isCollapsedClass)}),j?.nextSibling&&j.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&m(j.nextSibling,j.nextSibling.className.replace(o+e.isCollapsedClass,"")),v(j?.parentNode.parentNode)}}function v(I){return I&&I.className.indexOf(e.collapsibleClass)!==-1&&I.className.indexOf(e.isCollapsedClass)!==-1?(m(I,I.className.replace(o+e.isCollapsedClass,"")),v(I.parentNode.parentNode)):I}function b(I){let _=I.target||I.srcElement;typeof _.className!="string"||_.className.indexOf(e.linkClass)===-1||(i=!1)}function E(){i=!0}function S(){return i}function x(I){let _=$();return(document?.getElementById(I)).offsetTop>_.offsetHeight-_.clientHeight*1.4-e.bottomModeThreshold}function C(){let I=$(),_=I.scrollHeight>I.clientHeight,N=T()+I.clientHeight>I.offsetHeight-e.bottomModeThreshold;return _&&N}function $(){let I;return e.scrollContainer&&document.querySelector(e.scrollContainer)?I=document.querySelector(e.scrollContainer):I=document.documentElement||n,I}function T(){return $()?.scrollTop||0}function O(I,_=T()){let N;return r.call(I,(B,w)=>{if(g(B)>_+e.headingsOffset+10){let R=w===0?w:w-1;return N=I[R],!0}if(w===I.length-1)return N=I[I.length-1],!0}),N}function L(I){let _=T(),N=O(I,_),B=C();if((!N||_<5)&&!B)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(N&&!B){let w=`#${N.id}`;window.location.hash!==w&&window.history.pushState(null,null,w)}}return{enableTocAnimation:E,disableTocAnimation:b,render:u,updateToc:y,getCurrentlyHighlighting:S,getTopHeader:O,getScrollTop:T,updateUrlHashForHeader:L}}var dV={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function fV(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function o(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function a(u){if(!o(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let c=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),d={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:c};return e.includeHtml&&(d.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(d,u):d}function i(u,c){let d=a(u),f=d.headingLevel,g=c,m=r(g),y=m?m.headingLevel:0,v=f-y;for(;v>0&&(m=r(g),!(m&&f===m.headingLevel));)m&&m.children!==void 0&&(g=m.children),v--;return f>=e.collapseDepth&&(d.isCollapsed=!0),g.push(d),g}function l(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(f){return`${f.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(d)}catch{return console.warn(`Headers not found with selector: ${d}`),null}}function s(u){return t.call(u,function(c,d){let f=a(d);return f&&i(f,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function pV(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?i(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!a(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||hV(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function a(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(s){return s.slice(0,s.lastIndexOf("#"))}function l(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function hV(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},o=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),a=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(a):n.duration,l,s;requestAnimationFrame(function(f){l=f,u(f)});function u(f){s=f-l,window.scrollTo(0,n.easing(s,r,a,i)),s<i?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+a),typeof n.callback=="function"&&n.callback()}function d(f,g,m,y){return f/=y/2,f<1?m/2*f*f+g:(f--,-m/2*(f*(f-2)-1)+g)}}function gV(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var oe={},Pt,Lc,Jr,Ft,Go;function _C(e){let t=!1;oe=bV(dV,e||{}),oe.scrollSmooth&&(oe.duration=oe.scrollSmoothDuration,oe.offset=oe.scrollSmoothOffset,pV(oe)),Pt=cV(oe),Lc=fV(oe),nh();let r=EV(oe);if(r===null)return;let n=TC(oe);if(n===null||(Jr=Lc.selectHeadings(r,oe.headingSelector),Jr===null))return;let o=Lc.nestHeadingsArray(Jr).nest;if(!oe.skipRendering)Pt.render(n,o);else return this;let a=!1,i=oe.scrollHandlerTimeout||oe.throttleTimeout;Ft=((s,u)=>vV(s,u,oe.scrollHandlerType))(s=>{Pt.updateToc(Jr,s),!oe.disableTocScrollSync&&!a&&gV(oe),oe.enableUrlHashUpdateOnScroll&&t&&Pt.getCurrentlyHighlighting()&&Pt.updateUrlHashForHeader(Jr);let u=s?.target?.scrollingElement?.scrollTop===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(Pt.updateToc(Jr),oe.scrollEndCallback?.(s))},i),t||(Ft(),t=!0),window.onhashchange=window.onscrollend=s=>{Ft(s)},oe.scrollContainer&&document.querySelector(oe.scrollContainer)?(document.querySelector(oe.scrollContainer).addEventListener("scroll",Ft,!1),document.querySelector(oe.scrollContainer).addEventListener("resize",Ft,!1)):(document.addEventListener("scroll",Ft,!1),document.addEventListener("resize",Ft,!1));let l=null;Go=af(s=>{a=!0,oe.scrollSmooth&&Pt.disableTocAnimation(s),Pt.updateToc(Jr,s),l&&clearTimeout(l),l=setTimeout(()=>{Pt.enableTocAnimation()},oe.scrollSmoothDuration),setTimeout(()=>{a=!1},oe.scrollSmoothDuration+100)},oe.throttleTimeout),oe.scrollContainer&&document.querySelector(oe.scrollContainer)?document.querySelector(oe.scrollContainer).addEventListener("click",Go,!1):document.addEventListener("click",Go,!1)}function nh(){let e=TC(oe);e!==null&&(oe.skipRendering||e&&(e.innerHTML=""),oe.scrollContainer&&document.querySelector(oe.scrollContainer)?(document.querySelector(oe.scrollContainer).removeEventListener("scroll",Ft,!1),document.querySelector(oe.scrollContainer).removeEventListener("resize",Ft,!1),Pt&&document.querySelector(oe.scrollContainer).removeEventListener("click",Go,!1)):(document.removeEventListener("scroll",Ft,!1),document.removeEventListener("resize",Ft,!1),Pt&&document.removeEventListener("click",Go,!1)))}function mV(e){nh(),_C(e||oe)}var yV=Object.prototype.hasOwnProperty;function bV(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)yV.call(n,o)&&(t[o]=n[o])}return t}function af(e,t,r){t||(t=250);let n,o;return function(...a){let i=this,l=+new Date;n&&l<n+t?(clearTimeout(o),o=setTimeout(()=>{n=l,e.apply(i,a)},t)):(n=l,e.apply(i,a))}}function Ob(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function vV(e,t,r="auto"){switch(r){case"debounce":return Ob(e,t);case"throttle":return af(e,t);default:return t<334?Ob(e,t):af(e,t)}}function EV(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function TC(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var SV={destroy:nh,init:_C,refresh:mV},Ab=SV,xV=F.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),$V=F.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),wV=F.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),CV=({headingId:e,title:t})=>typeof t=="string"||!t?h.createElement(wV,{as:"h2",id:e,className:t?"":"sb-sr-only",lang:t?void 0:"en"},t||"Table of contents"):h.createElement("div",{id:e},t),_V=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:a,channel:i,className:l})=>{p.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:o??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){let[,f]=d.currentTarget.href.split("#");f&&i.emit(uV,`#${f}`)}},...a},c=setTimeout(()=>Ab.init(u),100);return()=>{clearTimeout(c),Ab.destroy()}},[i,t,o,n,r,a]);let s="table-of-contents";return h.createElement(xV,{className:l},t?null:h.createElement($V,{"aria-labelledby":s},h.createElement(CV,{headingId:s,title:e}),h.createElement("div",{className:"toc-wrapper"})))},TV=e=>`anchor--${e}`,OV=({storyId:e,children:t})=>h.createElement("div",{id:TV(e),className:"sb-anchor"},t);const{InvalidBlockOfPropError:AV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{filterArgTypes:Rb}=__STORYBOOK_MODULE_PREVIEW_API__,{getService:RV}=__STORYBOOK_MODULE_PREVIEW_API__;function DV(e,t){let r=t(),[{inst:n},o]=p.useState({inst:{value:r,getSnapshot:t}});return p.useLayoutEffect(()=>{n.value=r,n.getSnapshot=t,kc(n)&&o({inst:n})},[e,r,t]),p.useEffect(()=>(kc(n)&&o({inst:n}),e(()=>{kc(n)&&o({inst:n})})),[e]),r}function kc(e){let t=e.getSnapshot,r=e.value;try{let n=t();return!Object.is(r,n)}catch{return!0}}function OC(e,t,r,n){let o=p.useRef(void 0);(o.current?.key!==e||o.current.selector!==n)&&(o.current={key:e,selector:n,state:n?Kh(t,r,n):Kh(t,r)});let a=p.useRef(r);a.current=r;let i=p.useCallback(s=>{let u=c=>{o.current={key:e,selector:n,state:c},s()};return n?t.subscribe(a.current,n,u):t.subscribe(a.current,u)},[t,e,n]),l=p.useCallback(()=>o.current.state,[]);return DV(i,l)}function AC(e){let t=RV("core/docgen");return OC(e,t.queries.docgen,{id:e})}function RC(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}function DC(e,t){return Object.fromEntries(Object.entries(e||{}).map(([r,n])=>[r,RC(n,t)]))}function PC({componentId:e,storyId:t,parameters:r,initialArgs:n,customArgTypes:o}){let{data:a,isInitialLoading:i}=AC(e);return a?{rows:{serviceComponentName:a.name,mainRows:x_({payload:a,storyId:t??e,parameters:r,initialArgs:n,customArgTypes:o}),subcomponentRows:S_(a)},isInitialLoading:i}:{rows:null,isInitialLoading:i}}var On=(e,t)=>p.useContext(ot).resolveOf(e,t),PV=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),hs=e=>{if(e)return typeof e=="string"?e.includes("-")?PV(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function IV(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function IC(e){let{of:t}=e;if("of"in e&&t===void 0)throw new AV;let r=p.useContext(ot),n=On(t||"meta"),o;if(n.type==="component"){let{component:i,projectAnnotations:{parameters:l}}=n;o={parameters:l,componentId:r.getComponentId(i),argTypes:RC(i,l),component:i}}else if(n.type==="meta"){let{id:i,argTypes:l,parameters:s,initialArgs:u,component:c,subcomponents:d}=n.preparedMeta;o={parameters:s,componentId:i.split("--")[0],initialArgs:u,argTypes:l,component:c,subcomponents:d}}else{let{id:i,argTypes:l,parameters:s,initialArgs:u,component:c,subcomponents:d}=n.story;o={parameters:s,componentId:i.split("--")[0],storyId:i,initialArgs:u,argTypes:l,component:c,subcomponents:d}}let a=o.parameters?.docs?.argTypes||{};return{...o,filterProps:{include:e.include??a.include,exclude:e.exclude??a.exclude,sort:e.sort??a.sort}}}function FC({mainName:e="Main",mainRows:t,subcomponentRows:r,include:n,exclude:o,sort:a,docsLang:i}){let l=Rb(t,n,o);if(Object.keys(r).length===0)return h.createElement(io,{rows:l,sort:a,docsLang:i});let s={[e]:{rows:l,sort:a},...Object.fromEntries(Object.entries(r).map(([u,c])=>[u,{rows:Rb(c,n,o),sort:a}]))};return h.createElement(CC,{tabs:s,sort:a,docsLang:i})}var FV=e=>{let{argTypes:t,parameters:r,component:n,subcomponents:o,filterProps:a}=IC(e);return t?FC({mainName:hs(n),mainRows:t,subcomponentRows:DC(o,r),docsLang:r?.docs?.lang,...a}):null},LV=e=>{let{argTypes:t,parameters:r,componentId:n,storyId:o,initialArgs:a,filterProps:i,component:l}=IC(e),{rows:s,isInitialLoading:u}=PC({componentId:n,storyId:o,parameters:r,initialArgs:a,customArgTypes:t});return u?h.createElement(io,{isLoading:!0}):s?FC({mainName:hs(l)??s.serviceComponentName,mainRows:s.mainRows,subcomponentRows:s.subcomponentRows,docsLang:r?.docs?.lang,...i}):null},kV=e=>globalThis.FEATURES?.experimentalDocgenServer?h.createElement(LV,{...e}):h.createElement(FV,{...e});Qe("ArgTypes",kV);const{FORCE_REMOUNT:NV}=__STORYBOOK_MODULE_CORE_EVENTS__,{InvalidBlockOfPropError:MV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{InvalidBlockOfPropError:BV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var jV=Object.create,LC=Object.defineProperty,HV=Object.getOwnPropertyDescriptor,kC=Object.getOwnPropertyNames,UV=Object.getPrototypeOf,KV=Object.prototype.hasOwnProperty,ne=(e,t)=>function(){return t||(0,e[kC(e)[0]])((t={exports:{}}).exports,t),t.exports},zV=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of kC(t))!KV.call(e,o)&&o!==r&&LC(e,o,{get:()=>t[o],enumerable:!(n=HV(t,o))||n.enumerable});return e},oh=(e,t,r)=>(r=e!=null?jV(UV(e)):{},zV(!e||!e.__esModule?LC(r,"default",{value:e,enumerable:!0}):r,e)),GV=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],WV=["detail"];function VV(e){let t=GV.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of WV.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var NC=ne({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),qV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),YV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),XV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),JV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),ZV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),ah=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),QV=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),eq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),tq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),rq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),nq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),oq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),aq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),iq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),lq=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=iq();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),sq=ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),ih=ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=sq();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),uq=ne({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),MC=ne({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0}}}),BC=ne({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=MC();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),jC=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),HC=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=NC();t.exports=r.getPrototypeOf||null}}),cq=ne({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,a="[object Function]",i=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var g=0;g<c.length;g+=1)d[g+u.length]=c[g];return d},l=function(u,c){for(var d=[],f=c,g=0;f<u.length;f+=1,g+=1)d[g]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==a)throw new TypeError(r+c);for(var d=l(arguments,1),f,g=function(){if(this instanceof f){var E=c.apply(this,i(d,arguments));return Object(E)===E?E:this}return c.apply(u,i(d,arguments))},m=o(0,c.length-d.length),y=[],v=0;v<m;v++)y[v]="$"+v;if(f=Function("binder","return function ("+s(y,",")+"){ return binder.apply(this,arguments); }")(g),c.prototype){var b=function(){};b.prototype=c.prototype,f.prototype=new b,b.prototype=null}return f}}}),gs=ne({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=cq();t.exports=Function.prototype.bind||r}}),lh=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),UC=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),dq=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),fq=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=gs(),n=UC(),o=lh(),a=dq();t.exports=a||r.call(o,n)}}),KC=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=gs(),n=ah(),o=lh(),a=fq();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return a(r,o,i)}}}),pq=ne({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=KC(),n=ih(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var a=!!o&&n&&n(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;t.exports=a&&typeof a.get=="function"?r([a.get]):typeof l=="function"?(function(s){return l(s==null?s:i(s))}):!1}}),hq=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=jC(),n=HC(),o=pq();t.exports=r?function(a){return r(a)}:n?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)}:o?function(a){return o(a)}:null}}),zC=ne({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=gs();t.exports=o.call(r,n)}}),gq=ne({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=NC(),o=qV(),a=YV(),i=XV(),l=JV(),s=ZV(),u=ah(),c=QV(),d=eq(),f=tq(),g=rq(),m=nq(),y=oq(),v=aq(),b=lq(),E=Function,S=function(Z){try{return E('"use strict"; return ('+Z+").constructor;")()}catch{}},x=ih(),C=uq(),$=function(){throw new u},T=x?(function(){try{return arguments.callee,$}catch{try{return x(arguments,"callee").get}catch{return $}}})():$,O=BC()(),L=hq(),I=HC(),_=jC(),N=UC(),B=lh(),w={},R=typeof Uint8Array>"u"||!L?r:L(Uint8Array),P={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":O&&L?L([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":E,"%GeneratorFunction%":w,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&L?L(L([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!L?r:L(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!L?r:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&L?L(""[Symbol.iterator]()):r,"%Symbol%":O?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":T,"%TypedArray%":R,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":B,"%Function.prototype.apply%":N,"%Object.defineProperty%":C,"%Object.getPrototypeOf%":I,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":g,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":v,"%Math.sign%":b,"%Reflect.getPrototypeOf%":_};if(L)try{null.error}catch(Z){A=L(L(Z)),P["%Error.prototype%"]=A}var A,D=function Z(V){var Y;if(V==="%AsyncFunction%")Y=S("async function () {}");else if(V==="%GeneratorFunction%")Y=S("function* () {}");else if(V==="%AsyncGeneratorFunction%")Y=S("async function* () {}");else if(V==="%AsyncGenerator%"){var ee=Z("%AsyncGeneratorFunction%");ee&&(Y=ee.prototype)}else if(V==="%AsyncIteratorPrototype%"){var se=Z("%AsyncGenerator%");se&&L&&(Y=L(se.prototype))}return P[V]=Y,Y},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=gs(),K=zC(),j=k.call(B,Array.prototype.concat),z=k.call(N,Array.prototype.splice),U=k.call(B,String.prototype.replace),H=k.call(B,String.prototype.slice),G=k.call(B,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,ge=function(Z){var V=H(Z,0,1),Y=H(Z,-1);if(V==="%"&&Y!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Y==="%"&&V!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var ee=[];return U(Z,W,function(se,et,J,tt){ee[ee.length]=J?U(tt,q,"$1"):et||se}),ee},Ne=function(Z,V){var Y=Z,ee;if(K(M,Y)&&(ee=M[Y],Y="%"+ee[0]+"%"),K(P,Y)){var se=P[Y];if(se===w&&(se=D(Y)),typeof se>"u"&&!V)throw new u("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:ee,name:Y,value:se}}throw new s("intrinsic "+Z+" does not exist!")};t.exports=function(Z,V){if(typeof Z!="string"||Z.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof V!="boolean")throw new u('"allowMissing" argument must be a boolean');if(G(/^%?[^%]*%?$/,Z)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y=ge(Z),ee=Y.length>0?Y[0]:"",se=Ne("%"+ee+"%",V),et=se.name,J=se.value,tt=!1,Rt=se.alias;Rt&&(ee=Rt[0],z(Y,j([0,1],Rt)));for(var pt=1,Dt=!0;pt<Y.length;pt+=1){var Pe=Y[pt],ar=H(Pe,0,1),ir=H(Pe,-1);if((ar==='"'||ar==="'"||ar==="`"||ir==='"'||ir==="'"||ir==="`")&&ar!==ir)throw new s("property names with quotes must have matching quotes");if((Pe==="constructor"||!Dt)&&(tt=!0),ee+="."+Pe,et="%"+ee+"%",K(P,et))J=P[et];else if(J!=null){if(!(Pe in J)){if(!V)throw new u("base intrinsic for "+Z+" exists, but the property is not available.");return}if(x&&pt+1>=Y.length){var lr=x(J,Pe);Dt=!!lr,Dt&&"get"in lr&&!("originalValue"in lr.get)?J=lr.get:J=J[Pe]}else Dt=K(J,Pe),J=J[Pe];Dt&&!tt&&(P[et]=J)}}return J}}}),sh=ne({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=gq(),n=KC(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(a,i){var l=r(a,!!i);return typeof l=="function"&&o(a,".prototype.")>-1?n([l]):l}}}),mq=ne({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=MC();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),GC=ne({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=sh(),n=mq()(),o=zC(),a=ih(),i;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),i=function(g){if(!g||typeof g!="object")return!1;var m=a(g,"lastIndex"),y=m&&o(m,"value");if(!y)return!1;try{l(g,c)}catch(v){return v===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",i=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:d(g)===f});var l,s,u,c,d,f;t.exports=i}}),yq=ne({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),bq=ne({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=sh(),n=GC(),o=r("RegExp.prototype.exec"),a=ah();t.exports=function(i){if(!n(i))throw new a("`regex` must be a RegExp");return function(l){return o(i,l)!==null}}}}),vq=ne({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=sh(),n=r("Object.prototype.toString"),o=BC()(),a=bq();o?(i=r("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,l,s}}),Eq=oh(GC()),Sq=oh(yq()),xq=oh(vq());function $q(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var wq=typeof global=="object"&&global&&global.Object===Object&&global,Cq=wq,_q=typeof self=="object"&&self&&self.Object===Object&&self,Tq=Cq||_q||Function("return this")(),uh=Tq,Oq=uh.Symbol,lo=Oq,WC=Object.prototype,Aq=WC.hasOwnProperty,Rq=WC.toString,Fo=lo?lo.toStringTag:void 0;function Dq(e){var t=Aq.call(e,Fo),r=e[Fo];try{e[Fo]=void 0;var n=!0}catch{}var o=Rq.call(e);return n&&(t?e[Fo]=r:delete e[Fo]),o}var Pq=Dq,Iq=Object.prototype,Fq=Iq.toString;function Lq(e){return Fq.call(e)}var kq=Lq,Nq="[object Null]",Mq="[object Undefined]",Db=lo?lo.toStringTag:void 0;function Bq(e){return e==null?e===void 0?Mq:Nq:Db&&Db in Object(e)?Pq(e):kq(e)}var jq=Bq,Pb=lo?lo.prototype:void 0;Pb&&Pb.toString;function Hq(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var VC=Hq,Uq="[object AsyncFunction]",Kq="[object Function]",zq="[object GeneratorFunction]",Gq="[object Proxy]";function Wq(e){if(!VC(e))return!1;var t=jq(e);return t==Kq||t==zq||t==Uq||t==Gq}var Vq=Wq,qq=uh["__core-js_shared__"],Nc=qq,Ib=(function(){var e=/[^.]+$/.exec(Nc&&Nc.keys&&Nc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Yq(e){return!!Ib&&Ib in e}var Xq=Yq,Jq=Function.prototype,Zq=Jq.toString;function Qq(e){if(e!=null){try{return Zq.call(e)}catch{}try{return e+""}catch{}}return""}var eY=Qq,tY=/[\\^$.*+?()[\]{}|]/g,rY=/^\[object .+?Constructor\]$/,nY=Function.prototype,oY=Object.prototype,aY=nY.toString,iY=oY.hasOwnProperty,lY=RegExp("^"+aY.call(iY).replace(tY,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sY(e){if(!VC(e)||Xq(e))return!1;var t=Vq(e)?lY:rY;return t.test(eY(e))}var uY=sY;function cY(e,t){return e?.[t]}var dY=cY;function fY(e,t){var r=dY(e,t);return uY(r)?r:void 0}var qC=fY;function pY(e,t){return e===t||e!==e&&t!==t}var hY=pY,gY=qC(Object,"create"),fa=gY;function mY(){this.__data__=fa?fa(null):{},this.size=0}var yY=mY;function bY(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var vY=bY,EY="__lodash_hash_undefined__",SY=Object.prototype,xY=SY.hasOwnProperty;function $Y(e){var t=this.__data__;if(fa){var r=t[e];return r===EY?void 0:r}return xY.call(t,e)?t[e]:void 0}var wY=$Y,CY=Object.prototype,_Y=CY.hasOwnProperty;function TY(e){var t=this.__data__;return fa?t[e]!==void 0:_Y.call(t,e)}var OY=TY,AY="__lodash_hash_undefined__";function RY(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fa&&t===void 0?AY:t,this}var DY=RY;function Eo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Eo.prototype.clear=yY;Eo.prototype.delete=vY;Eo.prototype.get=wY;Eo.prototype.has=OY;Eo.prototype.set=DY;var Fb=Eo;function PY(){this.__data__=[],this.size=0}var IY=PY;function FY(e,t){for(var r=e.length;r--;)if(hY(e[r][0],t))return r;return-1}var ms=FY,LY=Array.prototype,kY=LY.splice;function NY(e){var t=this.__data__,r=ms(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():kY.call(t,r,1),--this.size,!0}var MY=NY;function BY(e){var t=this.__data__,r=ms(t,e);return r<0?void 0:t[r][1]}var jY=BY;function HY(e){return ms(this.__data__,e)>-1}var UY=HY;function KY(e,t){var r=this.__data__,n=ms(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var zY=KY;function So(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}So.prototype.clear=IY;So.prototype.delete=MY;So.prototype.get=jY;So.prototype.has=UY;So.prototype.set=zY;var GY=So,WY=qC(uh,"Map"),VY=WY;function qY(){this.size=0,this.__data__={hash:new Fb,map:new(VY||GY),string:new Fb}}var YY=qY;function XY(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var JY=XY;function ZY(e,t){var r=e.__data__;return JY(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ys=ZY;function QY(e){var t=ys(this,e).delete(e);return this.size-=t?1:0,t}var eX=QY;function tX(e){return ys(this,e).get(e)}var rX=tX;function nX(e){return ys(this,e).has(e)}var oX=nX;function aX(e,t){var r=ys(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var iX=aX;function xo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xo.prototype.clear=YY;xo.prototype.delete=eX;xo.prototype.get=rX;xo.prototype.has=oX;xo.prototype.set=iX;var YC=xo,lX="Expected a function";function ch(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(lX);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(ch.Cache||YC),r}ch.Cache=YC;var sX=ch,uX=500;function cX(e){var t=sX(e,function(n){return r.size===uX&&r.clear(),n}),r=t.cache;return t}var dX=cX,fX=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pX=/\\(\\)?/g;dX(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(fX,function(r,n,o,a){t.push(o?a.replace(pX,"$1"):n||r)}),t});var hX=$q,gX=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function XC(e){if(!hX(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=VV(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var mX=function(e){let t,r,n,o;return function(a,i){try{if(a==="")return o=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return gX.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,Eq.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,Sq.default)(i))return;if((0,xq.default)(i)){if(!e.allowSymbol)return;let u=Symbol.keyFor(i);return u!==void 0?`_gsymbol_${u}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(o)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i?.constructor?.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let u=t.get(i);if(!u){let c={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((d,f)=>{try{d[f]=i[f]}catch{}return d},{})};return o.push(a),n.unshift(c),t.set(i,JSON.stringify(o)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}let s=t.get(i);if(!s){let u=Array.isArray(i)?i:XC(i);return o.push(a),n.unshift(u),t.set(i,JSON.stringify(o)),i!==u&&r.set(i,u),u}return`_duplicate_${s}`}catch{return}}},yX={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},bX=(e,t={})=>{let r={...yX,...t};return JSON.stringify(XC(e),mX(r),t.space)};function JC(e){return bX(e,{maxDepth:50})}var dh=p.createContext({sources:{}}),ZC="--unknown--",vX=({children:e,channel:t})=>{let[r,n]=p.useState({});return p.useEffect(()=>{let o=(a,i=null,l=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof a=="string"?{id:a,source:i,format:l}:a,f=u?JC(u):ZC;n(g=>({...g,[s]:{...g[s],[f]:{code:c||"",format:d}}}))};return t.on(yh,o),()=>t.off(yh,o)},[]),h.createElement(dh.Provider,{value:{sources:r}},e)};const{getService:EX}=__STORYBOOK_MODULE_PREVIEW_API__;function QC(e,t){let r=e.split("--")[0],n=EX("core/story-docs"),o=p.useCallback(a=>t(a,e),[t,e]);return OC(e,n.queries.storyDocs,{id:r},o)}function SX(e){return QC(e,F2)}function xX(e){return QC(e,L2)}function $X(e,t,r){let[n,o]=p.useState("Transforming..."),a=t?t?.(e,r):e;return p.useEffect(()=>{async function i(){let l=await a;l!==n&&o(l)}i()}),typeof a=="object"&&typeof a.then=="function"?n:a}var wX={sources:{}},CX=(e,t,r)=>{let{sources:n}=r,o=n?.[e];return o?.[JC(t)]||o?.[ZC]||{code:""}},_X=({snippet:e,serviceSnippet:t,storyContext:r,typeFromProps:n,transformFromProps:o})=>{let a=r.parameters??{},{__isArgsStory:i}=a,l=a.docs?.source||{},s=n||l.type||vs.AUTO,u=t||e,c=s===vs.DYNAMIC||s===vs.AUTO&&u&&i?u:l.originalSource||"",d=o??l.transform,f=d?$X(c,d,r):c;return l.code!==void 0?l.code:f},bs=(e,t,r,n="")=>{let{of:o}=e,a=p.useMemo(()=>{if(o)return t.resolveOf(o,["story"]).story;try{return t.storyById()}catch{}},[t,o]),i=a?t.getStoryContext(a):{},l=e.__forceInitialArgs?i.initialArgs:i.unmappedArgs,s=a?CX(a.id,l,r):null,u=_X({snippet:s?s.code:"",serviceSnippet:n,storyContext:{...i,args:l},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&o===void 0)throw new BV;let c=a?.parameters?.docs?.source||{},d=e.format,f=e.language??c.language??"jsx",g=e.dark??c.dark??!1;return e.code===void 0&&!a?{error:"Oh no! The source is not available."}:e.code!==void 0?{code:e.code,format:d,language:f,dark:g}:(d=s?.format??!0,{code:u,format:d,language:f,dark:g})},TX=({storyId:e,docsContext:t,sourceContext:r,...n})=>{let o=xX(e).data??"",a=bs(n,t,r,o);return h.createElement(Ia,{...a})},OX=e=>{let{of:t}=e,r=p.useContext(dh),n=p.useContext(ot),o=p.useMemo(()=>{if(t)return n.resolveOf(t,["story"]).story;try{return n.storyById()}catch{}},[n,t]);if(globalThis.FEATURES?.experimentalDocgenServer&&o?.id)return h.createElement(TX,{...e,docsContext:n,sourceContext:r,storyId:o.id});let a=bs(e,n,r);return h.createElement(Ia,{...a})},AX=e=>{let t=p.useContext(ot),r=bs(e,t,wX);return h.createElement(Ia,{...r})},RX=e=>e.code!==void 0?h.createElement(AX,{...e}):h.createElement(OX,{...e});Qe("Source",RX);var DX=e=>{let t=p.useContext(ot),r=p.useContext(dh),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new MV;let{story:a}=On(n||"story",["story"]),i=bs({...o,...n&&{of:n}},t,r),l=e.layout??a.parameters.layout??a.parameters.docs?.canvas?.layout??"padded",s=e.withToolbar??a.parameters.docs?.canvas?.withToolbar??!1,u=e.additionalActions??a.parameters.docs?.canvas?.additionalActions,c=e.sourceState??a.parameters.docs?.canvas?.sourceState??"hidden",d=e.className??a.parameters.docs?.canvas?.className,f=e.story?.inline??a.parameters?.docs?.story?.inline??!1,g=p.useCallback(()=>{t.channel.emit(NV,{storyId:a.id})},[t.channel,a.id]);return h.createElement(wC,{withSource:c==="none"?void 0:i,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:l,inline:f,onReloadStory:f?g:void 0},h.createElement(WW,{of:n||a.moduleExport,meta:e.meta,...e.story}))},PX=Qe("Canvas",DX);const{filterArgTypes:Lb}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:IX,STORY_ARGS_UPDATED:kb,UPDATE_STORY_ARGS:FX}=__STORYBOOK_MODULE_CORE_EVENTS__;var LX=(e,t)=>{let r=kX(e,t);if(!r)throw new Error("No result when story was defined");return r},kX=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,a]=p.useState(r.args);p.useEffect(()=>{let s=u=>{u.storyId===n&&a(u.args)};return t.channel.on(kb,s),()=>t.channel.off(kb,s)},[n,t.channel]);let i=p.useCallback(s=>t.channel.emit(FX,{storyId:n,updatedArgs:s}),[n,t.channel]),l=p.useCallback(s=>t.channel.emit(IX,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,i,l]};const{GLOBALS_UPDATED:Nb}=__STORYBOOK_MODULE_CORE_EVENTS__;var NX=(e,t)=>{let r=t.getStoryContext(e),[n,o]=p.useState(r.globals);return p.useEffect(()=>{let a=i=>{o(i.globals)};return t.channel.on(Nb,a),()=>t.channel.off(Nb,a)},[t.channel]),[n]};const{Tag:MX}=__STORYBOOK_MODULE_PREVIEW_API__;var e_=()=>{let e=p.useContext(ot),t=e.componentStories();return e.filterByAutodocs===!1?t[0]:t.find(r=>r.tags.includes(MX.AUTODOCS))};function t_(e,t){let r=e.parameters.docs?.controls||{};return{include:t.include??r.include,exclude:t.exclude??r.exclude,sort:t.sort??r.sort}}function r_(e,t){let r=bC(),[n,o,a]=LX(e,t),[i]=NX(e,t);return{controlsId:r,args:n,globals:i,updateArgs:o,resetArgs:a}}var n_=({mainName:e="Story",mainRows:t,subcomponentRows:r,include:n,exclude:o,sort:a,storyId:i,controlsId:l,args:s,globals:u,updateArgs:c,resetArgs:d,docsLang:f})=>{let g=Lb(t,n,o);if(Object.keys(r).length===0)return Object.keys(g).length>0||Object.keys(s).length>0?h.createElement(io,{storyId:i,controlsId:l,rows:g,sort:a,args:s,globals:u,updateArgs:c,resetArgs:d,docsLang:f}):null;let m={[e]:{rows:g,sort:a},...Object.fromEntries(Object.entries(r).map(([y,v])=>[y,{rows:Lb(v,n,o),sort:a}]))};return h.createElement(CC,{tabs:m,sort:a,args:s,globals:u,updateArgs:c,resetArgs:d,storyId:i,controlsId:l,docsLang:f})},BX=({story:e,context:t,...r})=>{let{parameters:n,argTypes:o,component:a,subcomponents:i}=e,l=t_(e,r),s=r_(e,t);return o?h.createElement(n_,{mainName:hs(a)||"Story",mainRows:o,subcomponentRows:DC(i,n),...l,storyId:e.id,...s,docsLang:n?.docs?.lang}):null},jX=({story:e,context:t,...r})=>{let{parameters:n,argTypes:o,component:a}=e,i=t_(e,r),l=r_(e,t),{rows:s,isInitialLoading:u}=PC({componentId:e.id.split("--")[0],storyId:e.id,parameters:n,initialArgs:e.initialArgs,customArgTypes:o});return u?h.createElement(io,{isLoading:!0}):s?h.createElement(n_,{mainName:hs(a)??s.serviceComponentName,mainRows:s.mainRows,subcomponentRows:s.subcomponentRows,...i,storyId:e.id,...l,docsLang:n?.docs?.lang}):null},HX=e=>{let{of:t}=e,r=p.useContext(ot),n=e_(),o=t?r.resolveOf(t,["story"]).story:n;if(!o)return null;let a={...e,story:o,context:r};return globalThis.FEATURES?.experimentalDocgenServer?h.createElement(jX,{...a}):h.createElement(BX,{...a})},UX=Qe("Controls",HX);const{InvalidBlockOfPropError:KX}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{NAVIGATE_URL:zX}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:o_}=globalThis,a_=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return h.createElement(gp,null,t);let n=e&&e.split("-");return h.createElement(Ia,{language:n&&n[1]||"text",format:!1,code:t,...r})};function fh(e,t){e.channel.emit(zX,t)}var lf=Mw.a,GX=({hash:e,children:t})=>{let r=p.useContext(ot);return h.createElement(lf,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);o_.getElementById(o)&&fh(r,e)}},t)},i_=e=>{let{href:t,target:r,children:n,...o}=e,a=p.useContext(ot);return!t||r==="_blank"||/^https?:\/\//.test(t)?h.createElement(lf,{...e}):t.startsWith("#")?h.createElement(GX,{hash:t},n):h.createElement(lf,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),fh(a,i.currentTarget.getAttribute("href")||""))},target:r,...o},n)},l_=["h1","h2","h3","h4","h5","h6"],WX=l_.reduce((e,t)=>({...e,[t]:F(t)({})}),{}),VX=F.span({display:"block",position:"relative","& svg":{visibility:"hidden"},"&:hover svg, &:focus-within svg":{visibility:"visible"}}),qX=F.span({position:"absolute",top:"50%",right:"100%",lineHeight:"inherit",paddingRight:"8px","&&":{marginTop:-14},color:"inherit","& a":{color:"inherit",textDecoration:"none"}});F.span({});var YX=({as:e,id:t,children:r,...n})=>{let o=p.useContext(ot),a=WX[e],i=`#${t}`;return h.createElement(a,{id:t,...n},h.createElement(VX,{className:"sb-unstyled"},h.createElement(qX,null,h.createElement(Ee,{asChild:!0,variant:"ghost",size:"small",padding:"small",ariaLabel:"Copy heading URL to address bar"},h.createElement("a",{href:i,target:"_self",onClick:l=>{l.preventDefault(),o_.getElementById(t)&&fh(o,i)}},h.createElement(wU,null)))),r))},ph=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return h.createElement(YX,{as:t,id:r,...o},n);let a=t,{as:i,...l}=e;return h.createElement(a,{...xe(l,t)})},s_=l_.reduce((e,t)=>({...e,[t]:r=>h.createElement(ph,{as:t,...r})}),{}),XX=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(IU`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
737
737
  This is often caused by not wrapping the child in a template string.
738
738
 
739
739
  This is invalid: