@tmorrow/cre8-wc 2.0.7 → 2.0.8

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 (319) hide show
  1. package/a2ui/catalog +5 -5
  2. package/a2ui/catalog-kg.json +156 -20
  3. package/a2ui/catalog.json +393 -34
  4. package/a2ui/catalog.svg +2445 -2445
  5. package/a2ui/examples/compound-families.json +298 -0
  6. package/a2ui/examples/llm-observability.json +678 -650
  7. package/a2ui/generate-catalog.mjs +116 -3
  8. package/a2ui/inert-props.json +32 -0
  9. package/a2ui/render-audit.mjs +294 -0
  10. package/a2ui/renderer.d.ts +2 -1
  11. package/a2ui/renderer.js +1 -1
  12. package/a2ui/renderer.ts +1 -1
  13. package/a2ui/smoke-test.mjs +3 -3
  14. package/a2ui/stream/diff-test.mjs +299 -0
  15. package/a2ui/stream/diff.d.ts +28 -0
  16. package/a2ui/stream/diff.js +130 -0
  17. package/a2ui/stream/diff.ts +145 -0
  18. package/a2ui/stream/index.d.ts +11 -0
  19. package/a2ui/stream/index.js +11 -0
  20. package/a2ui/stream/index.ts +43 -0
  21. package/a2ui/stream/model.d.ts +66 -0
  22. package/a2ui/stream/model.js +429 -0
  23. package/a2ui/stream/model.ts +472 -0
  24. package/a2ui/stream/pointer.d.ts +34 -0
  25. package/a2ui/stream/pointer.js +146 -0
  26. package/a2ui/stream/pointer.ts +147 -0
  27. package/a2ui/stream/renderer.d.ts +51 -0
  28. package/a2ui/stream/renderer.js +282 -0
  29. package/a2ui/stream/renderer.ts +291 -0
  30. package/a2ui/stream/stream-test.mjs +592 -0
  31. package/a2ui/stream/types.d.ts +173 -0
  32. package/a2ui/stream/types.js +17 -0
  33. package/a2ui/stream/types.ts +127 -0
  34. package/cdn/cre8-wc.esm.js +3527 -3226
  35. package/cdn/cre8-wc.esm.js.map +1 -1
  36. package/cdn/cre8-wc.min.js +289 -289
  37. package/cdn/cre8-wc.min.js.map +1 -1
  38. package/dist/assets/{Changelog-Documentation-BguNswiM.js → Changelog-Documentation-CeOetLxK.js} +1 -1
  39. package/dist/assets/{Code-Guidelines-BM3dZyzL.js → Code-Guidelines-BjdezAjj.js} +1 -1
  40. package/dist/assets/{Color-6AOWCN3U-C4AEGNk3.js → Color-6AOWCN3U-DPFGZitI.js} +1 -1
  41. package/dist/assets/{Contributing-Guidelines-DZURVehh.js → Contributing-Guidelines-B1M2V1hW.js} +1 -1
  42. package/dist/assets/{DocsRenderer-JROSPFPF-DeZmCI9u.js → DocsRenderer-JROSPFPF-BBy8KWNl.js} +1 -1
  43. package/dist/assets/{Tokens-Documentation-ZecGbtQg.js → Tokens-Documentation-CdTxFDLe.js} +1 -1
  44. package/dist/assets/{WithTooltip-7X4HQR7L-2Hfrkir-.js → WithTooltip-7X4HQR7L-DZzTNMQ7.js} +1 -1
  45. package/dist/assets/{accordion-item.stories-D-MjrX5G.js → accordion-item.stories-Bl26JlHp.js} +1 -9
  46. package/dist/assets/{accordion.stories-icgNa1dl.js → accordion.stories-DjoLApQw.js} +3 -11
  47. package/dist/assets/{alert.stories-BzDaXtj-.js → alert.stories-pO1y3YCQ.js} +15 -31
  48. package/dist/assets/{badge-C5wOWgyg.js → badge-BTxW3bN2.js} +3 -11
  49. package/dist/assets/{badge.stories-5GfB4jVI.js → badge.stories-vqh63RJ2.js} +1 -1
  50. package/dist/assets/{band.stories-DhXaP_kL.js → band.stories-CjKRppSb.js} +1 -9
  51. package/dist/assets/{blocks-DhUVut8Z.js → blocks-1be_-L6v.js} +5 -5
  52. package/dist/assets/{breadcrumbs.stories-CrPUBVk1.js → breadcrumbs.stories-Doyfy3V9.js} +2 -18
  53. package/dist/assets/{button-CJL8yzAT.js → button-CgaWukz0.js} +1 -9
  54. package/dist/assets/{button-group-BgwgtSFC.js → button-group-G7qN4MwM.js} +1 -9
  55. package/dist/assets/{button-group.stories-W-07gO63.js → button-group.stories-cL3Kay6M.js} +1 -1
  56. package/dist/assets/{button.stories-BPzJ-sCv.js → button.stories-C9HSpxWb.js} +6 -6
  57. package/dist/assets/{card.stories-mlFGY2Xn.js → card.stories-BbU8YymD.js} +3 -11
  58. package/dist/assets/{chart.stories-C8yuHHeK.js → chart.stories-BL4FxIA_.js} +1 -1
  59. package/dist/assets/{checkbox-field-item-iHcdmTNw.js → checkbox-field-item-DIMHcWM0.js} +1 -9
  60. package/dist/assets/{checkbox-field-item.stories-D1aVLDXn.js → checkbox-field-item.stories-XbB4x_lO.js} +1 -1
  61. package/dist/assets/{checkbox-field.stories-BoVB2jCx.js → checkbox-field.stories-YnqFUI4K.js} +2 -10
  62. package/dist/assets/{cre8-element-DfmMtHJO.js → cre8-element-B35i4Lyg.js} +1 -1
  63. package/dist/assets/{cre8-form-element-bQpK8UYN.js → cre8-form-element-Cfc5VeYV.js} +1 -1
  64. package/dist/assets/{danger-button.stories-Cb4ljnhQ.js → danger-button.stories-xh25hmfd.js} +1 -9
  65. package/dist/assets/{date-picker.stories-Cje3qk8D.js → date-picker.stories-DD_ctzEF.js} +1 -49
  66. package/dist/assets/{divider-B_PXBGWD.js → divider-xZ2KARHf.js} +2 -10
  67. package/dist/assets/{divider.stories-CtfeBqVV.js → divider.stories-Bk9oF-OV.js} +1 -1
  68. package/dist/assets/{dropdown-Cgwne34I.js → dropdown-BEP5x3CW.js} +6 -22
  69. package/dist/assets/{dropdown-item.stories-pXkDLRuv.js → dropdown-item.stories-Iaw_UrEP.js} +1 -1
  70. package/dist/assets/{dropdown.stories-DZnmHieY.js → dropdown.stories-B0OlKD7h.js} +1 -1
  71. package/dist/assets/{example-drug-card.stories-DTzLXTFx.js → example-drug-card.stories-Bp5JIeE_.js} +1 -1
  72. package/dist/assets/{f-po-C2WpbOFJ.js → f-po-BdPzDRD-.js} +1 -1
  73. package/dist/assets/{feature.stories-DffXdJch.js → feature.stories-DYE1Js70.js} +1 -9
  74. package/dist/assets/{field-DzYRqQb2.js → field-BpUYyRW1.js} +1 -9
  75. package/dist/assets/{field-note-DKXZiXLU.js → field-note-fccBckVl.js} +3 -11
  76. package/dist/assets/{field-note.stories-DS_0bQul.js → field-note.stories-BH9AZMbF.js} +1 -1
  77. package/dist/assets/{field.stories-BvXn0oG6.js → field.stories-BQPtmziK.js} +1 -1
  78. package/dist/assets/{footer.stories-C3ZibisU.js → footer.stories-DCWEciqD.js} +1 -9
  79. package/dist/assets/{form-example.stories-C-TuOeF2.js → form-example.stories-9IDC0AgX.js} +1 -1
  80. package/dist/assets/{formatter-L2YTDE3Q-CJVnxOUW.js → formatter-L2YTDE3Q-B9u1AOWn.js} +1 -1
  81. package/dist/assets/{global-nav-item-xQL7wVjY.js → global-nav-item-T4htN-yO.js} +6 -14
  82. package/dist/assets/{global-nav-item.stories-Dp9TE3aR.js → global-nav-item.stories-2dWRfCXv.js} +1 -1
  83. package/dist/assets/{global-nav.stories-B5Nk8JZ0.js → global-nav.stories-Fh1gScqg.js} +2 -10
  84. package/dist/assets/{grid-DYgnZBsd.js → grid-C5CKMXNe.js} +3 -19
  85. package/dist/assets/{grid.stories-BFiXTq2C.js → grid.stories-BLmCNdeA.js} +1 -1
  86. package/dist/assets/{header.stories-D1f7xhjV.js → header.stories-BkDrjJtj.js} +1 -9
  87. package/dist/assets/{heading-485Jz7JZ.js → heading-Dbka33DK.js} +2 -10
  88. package/dist/assets/{heading.stories-gPF_SmTc.js → heading.stories-Be40_bmG.js} +1 -1
  89. package/dist/assets/{hero.stories-BHlFNdvF.js → hero.stories-vRu7PZG9.js} +1 -9
  90. package/dist/assets/{icon-DeTLDzTS.js → icon-ChfRWXWy.js} +2 -10
  91. package/dist/assets/{icon-description-o-YaiEjK.js → icon-description-BBSwDykJ.js} +1 -1
  92. package/dist/assets/{icon-description.stories-BdPRvEwe.js → icon-description.stories-Cg6ekOme.js} +1 -1
  93. package/dist/assets/{icon.stories-BxWpqxT5.js → icon.stories-Cj4U7L5G.js} +1 -1
  94. package/dist/assets/if-defined-Bxnzk64Q.js +1 -0
  95. package/dist/assets/{iframe-dHvya7sk.js → iframe-BNJP6ovU.js} +35 -35
  96. package/dist/assets/{inline-alert.stories-FH0bQ0jh.js → inline-alert.stories-CygBYI02.js} +1 -9
  97. package/dist/assets/{layout-container.stories-D6Z6Kx78.js → layout-container.stories-TMyIJteJ.js} +2 -10
  98. package/dist/assets/{layout.stories-CNYuwC_r.js → layout.stories-ylRM-ANL.js} +7 -23
  99. package/dist/assets/{linelength-container.stories-pCRXZvxS.js → linelength-container.stories-Br2v8jXE.js} +1 -9
  100. package/dist/assets/{link-BpCiLxNW.js → link-CRE0Eqdo.js} +1 -9
  101. package/dist/assets/{link-list.stories-12vsAa1P.js → link-list.stories--y-urrVo.js} +7 -23
  102. package/dist/assets/{link.stories-DAoQtY4_.js → link.stories-C3WQOgkY.js} +2 -2
  103. package/dist/assets/{list.stories-D0N3yBIf.js → list.stories-Bd2bxkxn.js} +7 -23
  104. package/dist/assets/{loading-spinner-g6iJajXH.js → loading-spinner-C52KNq6y.js} +4 -12
  105. package/dist/assets/{loading-spinner.stories-B6_mgPxB.js → loading-spinner.stories-DPRGEeHT.js} +1 -1
  106. package/dist/assets/{logo.stories-BvMwN2qg.js → logo.stories-2LBqqraT.js} +1 -9
  107. package/dist/assets/{main.stories-pL4zefbs.js → main.stories-BQzD7iWD.js} +2 -10
  108. package/dist/assets/{medication-card.stories-DK1XGJic.js → medication-card.stories-Wc-hA0-s.js} +5 -5
  109. package/dist/assets/{medication-form.stories-Bj5dLp5S.js → medication-form.stories-DfFOCDaU.js} +1 -1
  110. package/dist/assets/{modal-CO0M4e_8.js → modal-CCfbY4fF.js} +1 -9
  111. package/dist/assets/{modal-BNu8xy08.js → modal-GglWRNJp.js} +1 -1
  112. package/dist/assets/{modal.stories-CHYBrq_E.js → modal.stories-CpybCs79.js} +1 -1
  113. package/dist/assets/{multi-select.stories-C9XXsWio.js → multi-select.stories-BhzEKRui.js} +1 -9
  114. package/dist/assets/{nav-container.stories-DU9fhvDu.js → nav-container.stories-Be1YlegP.js} +3 -11
  115. package/dist/assets/{page-header.stories-BrstKiEY.js → page-header.stories-BOVLQ0YF.js} +1 -9
  116. package/dist/assets/{pagination.stories-Bw2M2iOn.js → pagination.stories-D62sa_1K.js} +9 -25
  117. package/dist/assets/{percent-bar.stories-UQRXYUqd.js → percent-bar.stories-CYi4El7T.js} +1 -9
  118. package/dist/assets/{popover.stories-ZkwrRFpR.js → popover.stories-B9O8F4yv.js} +1 -9
  119. package/dist/assets/{primary-nav.stories-wqOKwgQn.js → primary-nav.stories-Bt-o7h45.js} +1 -17
  120. package/dist/assets/{progress-meter-TzASasu0.js → progress-meter-Dit59091.js} +1 -9
  121. package/dist/assets/{progress-meter.stories-qfJALZf8.js → progress-meter.stories-CYnOCmjo.js} +1 -1
  122. package/dist/assets/{progress-steps-item-KvW1d_7L.js → progress-steps-item-CWJsad0s.js} +1 -9
  123. package/dist/assets/{progress-steps-item.stories-uOn6tJ1W.js → progress-steps-item.stories-ePn_6bPn.js} +1 -1
  124. package/dist/assets/{progress-steps.stories-CKFPx8D0.js → progress-steps.stories-CblrEcXF.js} +1 -9
  125. package/dist/assets/{radio-field-item-CTaR50XR.js → radio-field-item-Bm-0RWPe.js} +5 -21
  126. package/dist/assets/{radio-field-item.stories-DQSLj8W1.js → radio-field-item.stories-y_TrTRIW.js} +1 -1
  127. package/dist/assets/{radio-field.stories-Btmc_Iep.js → radio-field.stories-CSWrbUrn.js} +1 -1
  128. package/dist/assets/{remove-tag-BSEZ7VT8.js → remove-tag-lCr57c5r.js} +1 -9
  129. package/dist/assets/{remove-tag.stories-diRKi7Ua.js → remove-tag.stories-CDfwCdvZ.js} +1 -1
  130. package/dist/assets/{request-prescription.stories-DQvra7ia.js → request-prescription.stories-O4zqokfb.js} +1 -1
  131. package/dist/assets/{sample-modal.stories-deE1EBfZ.js → sample-modal.stories-BZ4N2R2Z.js} +1 -1
  132. package/dist/assets/{section.stories-DF4mcy2O.js → section.stories-D_1InThX.js} +1 -9
  133. package/dist/assets/{select-tile-D-C8oSrm.js → select-tile-BqqB3ZtE.js} +2 -10
  134. package/dist/assets/{select-tile-list.stories-vsBQUIcl.js → select-tile-list.stories-Di4ILgV8.js} +1 -9
  135. package/dist/assets/{select-tile.stories-CqHzN5fc.js → select-tile.stories-D3h_6zlV.js} +6 -6
  136. package/dist/assets/{select.stories-8aOGxTtr.js → select.stories-BB2phP9A.js} +1 -9
  137. package/dist/assets/{skeleton-loader.stories-CwR2-aC5.js → skeleton-loader.stories-y4uml_kV.js} +5 -13
  138. package/dist/assets/{split-button.stories-CyfdrK4u.js → split-button.stories-C_82I4ME.js} +2 -10
  139. package/dist/assets/{spread-BPiNgQQF.js → spread-CnPic3C2.js} +1 -1
  140. package/dist/assets/state-DkQhleoO.js +1 -0
  141. package/dist/assets/{submenu.stories-CDhNzZzh.js → submenu.stories-UDtaREr1.js} +2 -18
  142. package/dist/assets/{syntaxhighlighter-T5IQBZDB-BzI6WxUR.js → syntaxhighlighter-T5IQBZDB-D-I_s_yD.js} +1 -1
  143. package/dist/assets/{table-header-CfcchoYz.js → table-header-2837i43H.js} +3 -51
  144. package/dist/assets/{table-object.stories-Bd5qdfMU.js → table-object.stories-D4KoI-wA.js} +1 -9
  145. package/dist/assets/{table.stories-DxuBe9dJ.js → table.stories-DUJDibEp.js} +1 -1
  146. package/dist/assets/{tabs.stories-Cpc3OHJx.js → tabs.stories-C06SngOF.js} +5 -29
  147. package/dist/assets/{tag-list.stories-BmyCmrTF.js → tag-list.stories-Du-IoYzu.js} +2 -10
  148. package/dist/assets/{tag-vQFuZneb.js → tag-oHGdclJl.js} +1 -9
  149. package/dist/assets/{tag.stories-DGzrNUbb.js → tag.stories-C5D5IbuK.js} +1 -1
  150. package/dist/assets/{tertiary-nav.stories-D4q5K-am.js → tertiary-nav.stories-B1GU8Zi4.js} +3 -19
  151. package/dist/assets/{text-link-4qLRIeJB.js → text-link-B3m3KEqY.js} +1 -9
  152. package/dist/assets/{text-link.stories-D6BRm2I5.js → text-link.stories-4O6qn82H.js} +1 -1
  153. package/dist/assets/{text-passage-DGaI5i2I.js → text-passage-xQVosjOr.js} +3 -19
  154. package/dist/assets/{text-passage.stories-DkmXVUhH.js → text-passage.stories-Da1nspwG.js} +1 -1
  155. package/dist/assets/{tooltip.stories-B7ADDq7o.js → tooltip.stories-DLKyyeKn.js} +6 -14
  156. package/dist/assets/{utility-nav.stories-ffXVvyLp.js → utility-nav.stories-B6xBFe7z.js} +5 -21
  157. package/dist/design-tokens/brands/cre8/css/tokens_brand.css +1 -1
  158. package/dist/design-tokens/core/scss/theming/component.css +1 -1
  159. package/dist/design-tokens/core/scss/theming/variables.css +1 -7
  160. package/dist/design-tokens/core/scss/theming/variables.scss +0 -11
  161. package/dist/icons/cre8-icons.svg +1 -1
  162. package/dist/iframe.html +1 -24
  163. package/dist/index.html +25 -77
  164. package/dist/project.json +1 -1
  165. package/lib/a2ui/renderer.d.ts +2 -1
  166. package/lib/a2ui/renderer.d.ts.map +1 -1
  167. package/lib/a2ui/renderer.js +1 -1
  168. package/lib/a2ui/renderer.js.map +1 -1
  169. package/lib/a2ui/stream/diff.d.ts +29 -0
  170. package/lib/a2ui/stream/diff.d.ts.map +1 -0
  171. package/lib/a2ui/stream/diff.js +131 -0
  172. package/lib/a2ui/stream/diff.js.map +1 -0
  173. package/lib/a2ui/stream/index.d.ts +12 -0
  174. package/lib/a2ui/stream/index.d.ts.map +1 -0
  175. package/lib/a2ui/stream/index.js +12 -0
  176. package/lib/a2ui/stream/index.js.map +1 -0
  177. package/lib/a2ui/stream/model.d.ts +67 -0
  178. package/lib/a2ui/stream/model.d.ts.map +1 -0
  179. package/lib/a2ui/stream/model.js +423 -0
  180. package/lib/a2ui/stream/model.js.map +1 -0
  181. package/lib/a2ui/stream/pointer.d.ts +35 -0
  182. package/lib/a2ui/stream/pointer.d.ts.map +1 -0
  183. package/lib/a2ui/stream/pointer.js +147 -0
  184. package/lib/a2ui/stream/pointer.js.map +1 -0
  185. package/lib/a2ui/stream/renderer.d.ts +52 -0
  186. package/lib/a2ui/stream/renderer.d.ts.map +1 -0
  187. package/lib/a2ui/stream/renderer.js +279 -0
  188. package/lib/a2ui/stream/renderer.js.map +1 -0
  189. package/lib/a2ui/stream/types.d.ts +174 -0
  190. package/lib/a2ui/stream/types.d.ts.map +1 -0
  191. package/lib/a2ui/stream/types.js +18 -0
  192. package/lib/a2ui/stream/types.js.map +1 -0
  193. package/lib/components/accordion/accordion.d.ts +15 -0
  194. package/lib/components/accordion/accordion.d.ts.map +1 -1
  195. package/lib/components/accordion/accordion.js +23 -0
  196. package/lib/components/accordion/accordion.js.map +1 -1
  197. package/lib/components/badge/badge.d.ts +4 -17
  198. package/lib/components/badge/badge.d.ts.map +1 -1
  199. package/lib/components/badge/badge.js +0 -15
  200. package/lib/components/badge/badge.js.map +1 -1
  201. package/lib/components/breadcrumbs/breadcrumbs.d.ts +14 -0
  202. package/lib/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  203. package/lib/components/breadcrumbs/breadcrumbs.js +21 -0
  204. package/lib/components/breadcrumbs/breadcrumbs.js.map +1 -1
  205. package/lib/components/chart/chart.d.ts +3 -3
  206. package/lib/components/chart/chart.js +6 -6
  207. package/lib/components/chart/chart.js.map +1 -1
  208. package/lib/components/checkbox-field/checkbox-field.d.ts +19 -0
  209. package/lib/components/checkbox-field/checkbox-field.d.ts.map +1 -1
  210. package/lib/components/checkbox-field/checkbox-field.js +28 -0
  211. package/lib/components/checkbox-field/checkbox-field.js.map +1 -1
  212. package/lib/components/cre8-element.d.ts +19 -0
  213. package/lib/components/cre8-element.d.ts.map +1 -1
  214. package/lib/components/cre8-element.js +51 -2
  215. package/lib/components/cre8-element.js.map +1 -1
  216. package/lib/components/divider/divider.d.ts +1 -1
  217. package/lib/components/divider/divider.d.ts.map +1 -1
  218. package/lib/components/divider/divider.js.map +1 -1
  219. package/lib/components/dropdown/dropdown.d.ts +13 -0
  220. package/lib/components/dropdown/dropdown.d.ts.map +1 -1
  221. package/lib/components/dropdown/dropdown.js +19 -0
  222. package/lib/components/dropdown/dropdown.js.map +1 -1
  223. package/lib/components/dropdown-item/dropdown-item.d.ts +1 -1
  224. package/lib/components/dropdown-item/dropdown-item.js +2 -2
  225. package/lib/components/dropdown-item/dropdown-item.js.map +1 -1
  226. package/lib/components/heading/heading.d.ts +3 -5
  227. package/lib/components/heading/heading.d.ts.map +1 -1
  228. package/lib/components/heading/heading.js +2 -4
  229. package/lib/components/heading/heading.js.map +1 -1
  230. package/lib/components/link-list/link-list.d.ts +19 -0
  231. package/lib/components/link-list/link-list.d.ts.map +1 -1
  232. package/lib/components/link-list/link-list.js +19 -0
  233. package/lib/components/link-list/link-list.js.map +1 -1
  234. package/lib/components/list/list.d.ts +13 -0
  235. package/lib/components/list/list.d.ts.map +1 -1
  236. package/lib/components/list/list.js +15 -0
  237. package/lib/components/list/list.js.map +1 -1
  238. package/lib/components/modal/modal.d.ts +2 -2
  239. package/lib/components/modal/modal.js +2 -2
  240. package/lib/components/modal/modal.js.map +1 -1
  241. package/lib/components/multi-select/multi-select.d.ts +2 -2
  242. package/lib/components/multi-select/multi-select.js +5 -5
  243. package/lib/components/multi-select/multi-select.js.map +1 -1
  244. package/lib/components/pagination/pagination.d.ts +1 -1
  245. package/lib/components/pagination/pagination.js +2 -2
  246. package/lib/components/pagination/pagination.js.map +1 -1
  247. package/lib/components/percent-bar/percent-bar.d.ts +2 -0
  248. package/lib/components/percent-bar/percent-bar.d.ts.map +1 -1
  249. package/lib/components/percent-bar/percent-bar.js +3 -1
  250. package/lib/components/percent-bar/percent-bar.js.map +1 -1
  251. package/lib/components/popover/popover.d.ts +6 -7
  252. package/lib/components/popover/popover.d.ts.map +1 -1
  253. package/lib/components/popover/popover.js +4 -4
  254. package/lib/components/popover/popover.js.map +1 -1
  255. package/lib/components/progress-meter/progress-meter.d.ts +0 -8
  256. package/lib/components/progress-meter/progress-meter.d.ts.map +1 -1
  257. package/lib/components/progress-meter/progress-meter.js +0 -7
  258. package/lib/components/progress-meter/progress-meter.js.map +1 -1
  259. package/lib/components/progress-steps/progress-steps.d.ts +16 -0
  260. package/lib/components/progress-steps/progress-steps.d.ts.map +1 -1
  261. package/lib/components/progress-steps/progress-steps.js +25 -0
  262. package/lib/components/progress-steps/progress-steps.js.map +1 -1
  263. package/lib/components/progress-steps-item/progress-steps-item.d.ts +1 -3
  264. package/lib/components/progress-steps-item/progress-steps-item.d.ts.map +1 -1
  265. package/lib/components/progress-steps-item/progress-steps-item.js +0 -1
  266. package/lib/components/progress-steps-item/progress-steps-item.js.map +1 -1
  267. package/lib/components/radio-field/radio-field.d.ts +33 -0
  268. package/lib/components/radio-field/radio-field.d.ts.map +1 -1
  269. package/lib/components/radio-field/radio-field.js +62 -0
  270. package/lib/components/radio-field/radio-field.js.map +1 -1
  271. package/lib/components/remove-tag/remove-tag.d.ts +1 -1
  272. package/lib/components/remove-tag/remove-tag.js +3 -3
  273. package/lib/components/remove-tag/remove-tag.js.map +1 -1
  274. package/lib/components/split-button/split-button.d.ts +3 -0
  275. package/lib/components/split-button/split-button.d.ts.map +1 -1
  276. package/lib/components/split-button/split-button.js +5 -2
  277. package/lib/components/split-button/split-button.js.map +1 -1
  278. package/lib/components/tab/tab.d.ts +1 -1
  279. package/lib/components/tab/tab.js +3 -3
  280. package/lib/components/tab/tab.js.map +1 -1
  281. package/lib/components/table/table.d.ts +36 -0
  282. package/lib/components/table/table.d.ts.map +1 -1
  283. package/lib/components/table/table.js +55 -0
  284. package/lib/components/table/table.js.map +1 -1
  285. package/lib/components/tabs/tabs.d.ts +20 -3
  286. package/lib/components/tabs/tabs.d.ts.map +1 -1
  287. package/lib/components/tabs/tabs.js +33 -5
  288. package/lib/components/tabs/tabs.js.map +1 -1
  289. package/lib/components/tag-list/tag-list.d.ts +17 -0
  290. package/lib/components/tag-list/tag-list.d.ts.map +1 -1
  291. package/lib/components/tag-list/tag-list.js +25 -0
  292. package/lib/components/tag-list/tag-list.js.map +1 -1
  293. package/lib/components/tooltip/tooltip.d.ts +2 -2
  294. package/lib/components/tooltip/tooltip.js +4 -4
  295. package/lib/components/tooltip/tooltip.js.map +1 -1
  296. package/lib/components/utils/light-children.d.ts +40 -0
  297. package/lib/components/utils/light-children.d.ts.map +1 -0
  298. package/lib/components/utils/light-children.js +100 -0
  299. package/lib/components/utils/light-children.js.map +1 -0
  300. package/lib/directives/if-truthy.d.ts +1 -1
  301. package/lib/light-children-TlEXev5S.js +39 -0
  302. package/lib/scripts/generate-react-wrappers.d.ts +8 -1
  303. package/lib/scripts/generate-react-wrappers.d.ts.map +1 -1
  304. package/lib/scripts/generate-react-wrappers.js +45 -1
  305. package/lib/scripts/generate-react-wrappers.js.map +1 -1
  306. package/mcp-manifest.json +162 -52
  307. package/package.json +11 -4
  308. package/react-manifest.json +153 -47
  309. package/dist/assets/if-defined-HKKhGupN.js +0 -1
  310. package/dist/assets/iframe-CWwoGI65.css +0 -1
  311. package/dist/assets/state-CfuknrX8.js +0 -1
  312. package/dist/fonts/PlusJakartaSans-Bold.woff2 +0 -0
  313. package/dist/fonts/PlusJakartaSans-Medium.woff2 +0 -0
  314. package/dist/fonts/PlusJakartaSans-Regular.woff2 +0 -0
  315. package/dist/fonts/PlusJakartaSans-SemiBold.woff2 +0 -0
  316. package/dist/logo.svg +0 -1
  317. package/dist/sb-addons/storybook-4/manager-bundle.js +0 -8
  318. /package/dist/icons/{express-scripts copy.svg → pharmacy copy.svg} +0 -0
  319. /package/dist/icons/{express-scripts.svg → pharmacy.svg} +0 -0
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-T5IQBZDB-BzI6WxUR.js","./iframe-dHvya7sk.js","./preload-helper-PPVm8Dsz.js","./iframe-CWwoGI65.css","./_commonjsHelpers-DaWZu8wl.js","./chunk-EUVGDK4H-rHCQfRxh.js","./formatter-L2YTDE3Q-CJVnxOUW.js","./WithTooltip-7X4HQR7L-2Hfrkir-.js","./Color-6AOWCN3U-C4AEGNk3.js"])))=>i.map(i=>d[i]);
2
- import{_ as Nr}from"./preload-helper-PPVm8Dsz.js";import{g as hf}from"./_commonjsHelpers-DaWZu8wl.js";import{h as Er,f as vt,l as Mi,m as Ve,d as Tt,n as Zt,p as Ba,q as zc,s as ja,v as Yo,w as S_,x as Ha,S as xh,y as x_,z as xs,B as $_,C as w_}from"./iframe-dHvya7sk.js";import{b as gf}from"./chunk-EUVGDK4H-rHCQfRxh.js";function C_(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function __(e,t){let r=e?.trim();return r?`${r}
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-T5IQBZDB-D-I_s_yD.js","./iframe-BNJP6ovU.js","./preload-helper-PPVm8Dsz.js","./_commonjsHelpers-DaWZu8wl.js","./chunk-EUVGDK4H-rHCQfRxh.js","./formatter-L2YTDE3Q-B9u1AOWn.js","./WithTooltip-7X4HQR7L-DZzTNMQ7.js","./Color-6AOWCN3U-DPFGZitI.js"])))=>i.map(i=>d[i]);
2
+ import{_ as Nr}from"./preload-helper-PPVm8Dsz.js";import{g as hf}from"./_commonjsHelpers-DaWZu8wl.js";import{h as Er,f as vt,l as Mi,m as Ve,d as Tt,n as Zt,p as Ba,q as zc,s as ja,v as Yo,w as S_,x as Ha,S as xh,y as x_,z as xs,B as $_,C as w_}from"./iframe-BNJP6ovU.js";import{b as gf}from"./chunk-EUVGDK4H-rHCQfRxh.js";function C_(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function __(e,t){let r=e?.trim();return r?`${r}
3
3
 
4
4
  ${t}`:t}function T_(e,t){return e?.stories[t]}function A_(e,t){let r=e?.stories[t];if(r?.snippet!==void 0)return __(e?.import,r.snippet)}function $h({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function wh(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set("ref","error"),t.toString()}catch{return e}}var $l=class Yb extends Error{constructor(t){super(Yb.getFullMessage(t),t.cause===void 0?void 0:{cause:t.cause}),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return $h({code:this.code,category:this.category})}get name(){let t=this._name||this.constructor.name;return`${this.fullErrorCode} (${t})`}set name(t){this._name=t}static getFullMessage({documentation:t,code:r,category:n,message:o}){let i;return t===!0?i=`https://storybook.js.org/error/${$h({code:r,category:n})}?ref=error`:typeof t=="string"?i=wh(t):Array.isArray(t)&&(i=`
5
5
  ${t.map(a=>` - ${wh(a)}`).join(`
@@ -648,7 +648,7 @@ Inner error message: ${n?.message}`))}}const{once:gR}=__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 A=s.versions&&Object.keys(s.versions).length?s.versions:m.versions;await i.setRef(u,{id:u,url:b.url,...m,...A?{versions:A}:{},type:m.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:s={}}=e.getState();return s},setRef:async(s,{storyIndex:u,setStoriesData:c,...d},p=!1)=>{if(r)return;let g,m,y,{filters:v}=e.getState(),{storyMapper:b=KE}=t.getConfig(),E=i.getRefs()[s];(u||c)&&(g=c?Q6(lL(c,E,{storyMapper:b})):u,y=tl(u,{provider:t,docsOptions:n,filters:v,allStatuses:{}}),m=tl(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),m&&(m=C0(m,E),m=_0(m,E?.storyUpdates)),y&&(y=C0(y,E),y=_0(y,E?.storyUpdates)),await i.updateRef(s,{...E,...d,index:m,filteredIndex:y,internal_index:g})},updateRef:async(s,u)=>{let{[s]:c,...d}=i.getRefs();d[s]={...c,...u};let p=Object.keys(l).reduce((g,m)=>(g[m]=d[m],g),{});await e.setState({refs:p})}},a=!r&&HE.REFS||{},l=a;return o&&new Promise(async s=>{for(let u of Object.values(a))await i.checkRef({...u,stories:{}});s(void 0)}),{api:i,state:{refs:l}}},yt=(e,t)=>{let{source:r,refId:n,type:o}=e,[i,a]=zE(r,n),l;(n||i==="external")&&(l=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(a));let s={source:r,sourceType:i,sourceLocation:a,refId:n,ref:l,type:o};switch(!0){case typeof n=="string":case i==="local":case i==="external":return s;default:return Y6.warn(`Received a ${o} frame that was not configured as a ref`),null}},uL=({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(a){r.channel?.emit(q6,{globals:a,options:{target:"storybook-preview-iframe"}})}},o={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},i=({globals:a,storyGlobals:l,userGlobals:s})=>{let{globals:u,userGlobals:c,storyGlobals:d}=e.getState();tr(a,u)||e.setState({globals:a}),tr(s,c)||e.setState({userGlobals:s}),tr(l,d)||e.setState({storyGlobals:l})};return r.channel?.on(W6,function({globals:a,storyGlobals:l,userGlobals:s}){let{ref:u}=yt(this,t);u?x0.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):i({globals:a,storyGlobals:l,userGlobals:s})}),r.channel?.on(V6,function({globals:a,globalTypes:l}){let{ref:s}=yt(this,t),u=e.getState()?.userGlobals;s?Object.keys(a).length>0&&x0.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:a,userGlobals:a,globalTypes:l}),u&&Object.keys(u).length!==0&&!tr(a,u)&&n.updateGlobals(u)}),{api:n,state:o}},vp={};Ve(vp,{ActiveTabs:()=>WE,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>rl,DEFAULT_NAV_SIZE:()=>ai,DEFAULT_RIGHT_PANEL_WIDTH:()=>nl,focusableUIElements:()=>Yt,getDefaultLayoutState:()=>VE,init:()=>pL,isPagesViewMode:()=>fL});const{SET_CONFIG:cL}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:dL}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:GE}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var{document:Qi}=dL,ju=e=>typeof e=="function",WE={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},fL=e=>e!==void 0&&e!=="story"&&e!=="docs"&&e!=="review",ai=300,rl=300,nl=400,VE=()=>({ui:{enableShortcuts:!0},layout:{initialActive:WE.CANVAS,navSize:ai,bottomPanelHeight:rl,rightPanelWidth:nl,recentVisibleSizes:{navSize:ai,bottomPanelHeight:rl,rightPanelWidth:nl},panelPosition:"bottom",showNav:!0,showPanel:!0,showTabs:!0,showToolbar:!0},layoutCustomisations:{showPanel:void 0,showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:hv()}),Yt={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"},Ta=e=>e.layout.navSize>0,_d=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},A0=e=>!Ta(e)&&!_d(e),Bn=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}),O0=(e,t,r)=>{let n=Object.keys(e),o=Yo(t,n);for(let u of Object.keys(o))GE(`Calling \`setConfig({ ${u}: ... })\` is deprecated. Please call \`setConfig({ layout: { ${u}: ... } })\` instead.`);let i=Ha(o,t.layout||{}),{showPanel:a,showNav:l}=i,s=Ha(e,Yo(i,n));return l===!1||r?(s.recentVisibleSizes=Bn(s),s.navSize=0):l===!0&&(s.navSize=s.recentVisibleSizes.navSize),a===!1?(s.recentVisibleSizes=Bn(s),s.bottomPanelHeight=0,s.rightPanelWidth=0):a===!0&&(s.bottomPanelHeight=s.recentVisibleSizes.bottomPanelHeight,s.rightPanelWidth=s.recentVisibleSizes.rightPanelWidth),s},R0=(e,t)=>{let r=Object.keys(e),n=Yo(t,r);for(let i of Object.keys(n))GE(`Calling \`setConfig({ ${i}: ... })\` is deprecated. Please call \`setConfig({ ui: { ${i}: ... } })\` instead.`);let o=r;return Ha(e,Yo(Ha(n,t.ui||{}),o))},pL=({store:e,provider:t,singleStory:r})=>{let n={toggleFullscreen(i){return e.setState(a=>{let l=A0(a),s=typeof i=="boolean"?i:!l;return s===l?{layout:a.layout}:s?{layout:{...a.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Bn(a.layout)}}:{layout:{...a.layout,navSize:a.singleStory?0:a.layout.recentVisibleSizes.navSize,bottomPanelHeight:a.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:a.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(i){return e.setState(a=>{let l=_d(a),s=typeof i=="boolean"?i:!l;return s===l?{layout:a.layout}:s?{layout:{...a.layout,bottomPanelHeight:a.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:a.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...a.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Bn(a.layout)}}},{persistence:"session"})},togglePanelPosition(i){return e.setState(a=>{let l=i||(a.layout.panelPosition==="right"?"bottom":"right");return{layout:{...a.layout,panelPosition:l,bottomPanelHeight:a.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:a.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(i){return e.setState(a=>{if(a.singleStory)return{layout:a.layout};let l=Ta(a),s=typeof i=="boolean"?i:!l;return s===l?{layout:a.layout}:s?{layout:{...a.layout,navSize:a.layout.recentVisibleSizes.navSize}}:{layout:{...a.layout,navSize:0,recentVisibleSizes:Bn(a.layout)}}},{persistence:"session"})},toggleToolbar(i){return e.setState(a=>{let l=typeof i<"u"?i:!a.layout.showToolbar;return{layout:{...a.layout,showToolbar:l}}},{persistence:"session"})},setSizes({navSize:i,bottomPanelHeight:a,rightPanelWidth:l}){return e.setState(s=>{let u={...s.layout,navSize:i??s.layout.navSize,bottomPanelHeight:a??s.layout.bottomPanelHeight,rightPanelWidth:l??s.layout.rightPanelWidth};return{layout:{...u,recentVisibleSizes:Bn(u)}}},{persistence:"session"})},focusOnUIElement(i,a){let{forceFocus:l=!1,select:s=!1,poll:u=!0}=typeof a=="boolean"?{select:a}:a??{};if(!i)return!1;let c=()=>{let d=Qi.getElementById(i);return!d||(d.focus(),d!==Qi.activeElement&&l&&d.getAttribute("tabindex")===null&&(d.setAttribute("tabindex","-1"),d.focus()),d!==Qi.activeElement&&d.id!==Qi.activeElement?.id)?!1:(s&&d.select?.(),!0)};return c()?!0:u?new Promise(d=>{let p=Date.now(),g=500,m=setInterval(()=>{let y=Date.now()-p;if(c()){clearInterval(m),d(!0);return}y>=g&&(clearInterval(m),d(!1))},50)}):!1},getInitialOptions(){let i=t.getConfig(),a=VE(),{theme:l,selectedPanel:s,layoutCustomisations:u}=i;return{...a,layout:O0(a.layout,i,!!r),layoutCustomisations:{...a.layoutCustomisations,...u??{}},ui:R0(a.ui,i),selectedPanel:s||a.selectedPanel,theme:l||a.theme}},getIsFullscreen(){return A0(e.getState())},getIsPanelShown(){return _d(e.getState())},getIsNavShown(){return Ta(e.getState())},getNavAvailability(){let i=e.getState();return nE(i.path,i.customQueryParams)?"unavailable":Ta(i)?"shown":"hidden"},getShowToolbarWithCustomisations(i){let a=e.getState();return ju(a.layoutCustomisations.showToolbar)?a.layoutCustomisations.showToolbar(a,i)??i:i},getShowPanelWithCustomisations(i){let a=e.getState();return ju(a.layoutCustomisations.showPanel)?a.layoutCustomisations.showPanel(a,i)??i:i},getNavSizeWithCustomisations(i){let a=e.getState();if(ju(a.layoutCustomisations.showSidebar)){let l=a.layoutCustomisations.showSidebar(a,i!==0);if(i===0&&l===!0)return a.layout.recentVisibleSizes.navSize;if(i!==0&&l===!1)return 0}return i},setOptions:i=>{let{layout:a,ui:l,selectedPanel:s,theme:u}=e.getState();if(!i)return;let c=O0(a,i,!!r),d=R0(l,i),p={...u,...i.theme},g={};Zt(l,d)||(g.ui=d),Zt(a,c)||(g.layout=c),i.selectedPanel&&!Zt(s,i.selectedPanel)&&(g.selectedPanel=i.selectedPanel),Object.keys(g).length&&e.setState(g,{persistence:"permanent"}),Zt(u,p)||e.setState({theme:p})}},o=Yo(e.getState(),["layout","selectedPanel"]);return t.channel?.on(cL,()=>{n.setOptions(pn(n.getInitialOptions(),o))}),{api:n,state:pn(n.getInitialOptions(),o)}},qE={};Ve(qE,{init:()=>hL});var hL=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=$m(r,i=>i.id===t.id);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:[...o,t]}})},clearNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=$m(r,i=>i.id===t);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:o}})}},state:{notifications:[]}}),YE={};Ve(YE,{init:()=>mL});const{OPEN_IN_EDITOR_REQUEST:gL,OPEN_IN_EDITOR_RESPONSE:Hu}=__STORYBOOK_MODULE_CORE_EVENTS__;var mL=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{let{file:o,line:i,column:a}=r,l=s=>{s.file===o&&s.line===i&&s.column===a&&(e.channel?.off(Hu,l),n(s))};e.channel?.on(Hu,l),e.channel?.emit(gL,r)})}},state:{notifications:[]},init:async()=>{let{color:r}=await Nr(async()=>{const{color:n}=await Promise.resolve().then(()=>ZP);return{color:n}},void 0,import.meta.url);e.channel?.on(Hu,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(V2,{color:r.negative}),duration:8e3})})}}),XE={};Ve(XE,{init:()=>yL});var yL=({provider:e})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{}}),JE={};Ve(JE,{init:()=>bL});var bL=({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}})}}}),ZE={};Ve(ZE,{controlOrMetaKey:()=>Fn,defaultShortcuts:()=>Ln,init:()=>IL,isMacLike:()=>eS,keys:()=>Td});var vL=vt(L6(),1);const{FORCE_REMOUNT:EL,PREVIEW_KEYDOWN:SL,STORIES_COLLAPSE_ALL:xL,STORIES_EXPAND_ALL:$L}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:QE}=__STORYBOOK_MODULE_GLOBAL__,{global:wL}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:Uu}=wL,CL=()=>Uu&&Uu.platform?!!Uu.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,_L=()=>CL()?"⌥":"alt",TL=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 i=e.key.toUpperCase(),a=o;a&&a.length===1&&a!==i?t.push([i,a]):t.push(i)}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},AL=(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]),OL=e=>e==="alt"?_L():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(),RL=e=>e.map(OL).join(" "),DL=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:zu,document:Ir}=QE;function D0(e){return Ir.activeElement&&e?.contains(Ir.activeElement)}var eS=()=>zu&&zu.platform?!!zu.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Fn=()=>eS()?"meta":"control";function Td(e){return Object.keys(e)}var Ln=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[Fn(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[Fn(),"shift",","],aboutPage:[Fn(),","],escape:["escape"],collapseAll:[Fn(),"shift","ArrowUp"],expandAll:[Fn(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],openInIsolation:["alt","shift","I"],copyStoryLink:["alt","shift","L"],goToPreviousLandmark:["shift","F6"],goToNextLandmark:["F6"]}),Ku={};function PL(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var IL=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...Ln,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return Ku},getAddonsShortcutLabels(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{label:s}])=>{a[l]=s}),a},getAddonsShortcutDefaults(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{defaultShortcut:s}])=>{a[l]=s}),a},async setShortcuts(a){let{shortcuts:l}=await e.setState(s=>({shortcuts:typeof a=="function"?a(s.shortcuts):a}),{persistence:"permanent"});return l},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(a,l){return await n.setShortcuts(s=>({...s,[a]:l})),l},async setAddonShortcut(a,l){return await n.setShortcuts(s=>({...s,[`${a}-${l.actionName}`]:l.defaultShortcut})),Ku[`${a}-${l.actionName}`]=l,l},async restoreDefaultShortcut(a){let l=n.getDefaultShortcuts()[a];return n.setShortcut(a,l)},handleKeydownEvent(a){let l=TL(a),s=n.getShortcutKeys(),u=Td(s).find(c=>AL(l,s[c]));u&&n.handleShortcutFeature(u,a)},handleShortcutFeature(a,l){let s=e.getState(),{ui:{enableShortcuts:u},storyId:c,refId:d,viewMode:p}=s;if(!u)return;let g=t.getNavAvailability()==="unavailable",m=["focusNav","search","toggleNav"].includes(a);if(!(g&&m))switch(l?.preventDefault&&l.preventDefault(),a){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(Yt.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(Yt.storySearchField,!0)},0);break}case"focusIframe":{let y=Ir.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(Yt.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=Ir.getElementById(Yt.addonPanel);t.togglePanel(),y&&D0(v)&&t.focusOnUIElement(Yt.showAddonPanel,{poll:!0}).then(b=>{b===!1&&Ir.body.focus()}),y||t.focusOnUIElement(Yt.addonPanel,{forceFocus:!0,poll:!0});break}case"toggleNav":{let y=t.getIsNavShown(),v=Ir.getElementById(Yt.sidebarRegion);t.toggleNav(),y&&D0(v)&&t.focusOnUIElement(Yt.showSidebar,{poll:!0}).then(b=>{b===!1&&Ir.body.focus()}),y||t.focusOnUIElement(Yt.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(xL);break}case"expandAll":{t.emit($L);break}case"remount":{t.emit(EL,{storyId:c});break}case"openInEditor":{QE.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"openInIsolation":{if(c&&p==="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,vL.default)(y)}break}default:Ku[a].action();break}}},{shortcuts:o=Ln}=e.getState(),i={shortcuts:Td(Ln).reduce((a,l)=>({...a,[l]:o[l]||Ln[l]}),Ln)};return{api:n,state:i,init:()=>{Ir.addEventListener("keydown",a=>{PL(a)||n.handleKeydownEvent(a)}),r.channel?.on(SL,a=>{n.handleKeydownEvent(a.event)})}}},tS={};Ve(tS,{init:()=>c8});const{logger:FL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:LL,CURRENT_STORY_WAS_SET:kL,DOCS_PREPARED:NL,PRELOAD_ENTRIES:ML,RESET_STORY_ARGS:BL,SELECT_STORY:jL,SET_CONFIG:HL,SET_CURRENT_STORY:UL,SET_FILTER:zL,SET_INDEX:KL,SET_STORIES:GL,SIDEBAR_FILTER_CHANGED:WL,STORY_ARGS_UPDATED:VL,STORY_CHANGED:qL,STORY_INDEX_INVALIDATED:YL,STORY_MISSING:XL,STORY_PREPARED:JL,STORY_SPECIFIED:ZL,UPDATE_STORY_ARGS:QL}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:rS}=__STORYBOOK_MODULE_GLOBAL__;var nS=(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("&")},oS=(e,t)=>{let r=f.useRef(t?t(e.getState()):e.getState()),n=f.useCallback(i=>e.onStateChange((a,l)=>{if(!t){r.current=a,i();return}let s=t(a),u=t(l);!Zt(s,u)&&(r.current=s,i())}),[e,t]),o=f.useCallback(()=>{let i=e.getState(),a=t?t(i):i;return Zt(a,r.current)||(r.current=a),r.current},[e,t]);return[f.useSyncExternalStore(n,o),e.setState]},e8=s3({universalStatusStore:Yf.create({...a3,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:oS,environment:"manager"}),{fullStatusStore:Aa}=e8,iS=(e,t)=>{if(!e)return{included:[],excluded:[]};let r=[],n=[];return e.split(";").forEach(o=>{if(!o)return;let i=o.startsWith("!"),a=t(i?o.slice(1):o);a!=null&&(i?n.push(a):r.push(a))}),{included:r,excluded:n}},t8=e=>iS(e,i3),r8=(e,t)=>{if(!e.length&&!t.length)return;let r=e.map(o=>hm(o)).sort(),n=t.map(o=>`!${hm(o)}`).sort();return[...r,...n].join(";")},Gu=(e,t)=>r=>{if(!e.length&&!t.length)return!0;let n=(Aa.getAll()??{})[r.id],o=n?Object.values(n).map(l=>l.value):[],i=!e.length||e.some(l=>o.includes(l)),a=!t.length||t.every(l=>!o.includes(l));return i&&a},n8=vt(Sn(),1),aS={$docs:"_docs",$play:"_play",$test:"_test"},o8=e=>iS(e,t=>aS[t]??t),i8=(e,t)=>{if(!e.length&&!t.length)return"";let r=Object.fromEntries(Object.entries(aS).map(([i,a])=>[a,i])),n=e.map(i=>r[i]??i).sort(),o=t.map(i=>`!${r[i]??i}`).sort();return[...n,...o].join(";")},a8=(0,n8.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)}}),P0=e=>{let t=Object.entries(e).reduce((r,n)=>{let[o,i]=n;return i.excludeFromSidebar&&(r[o]=!0),r},{});return r=>{let n=r.tags??[],o=r.type==="docs"&&!n.includes(kr.ATTACHED_MDX)&&!n.includes(kr.UNATTACHED_MDX);return(n.includes(kr.DEV)||o)&&n.filter(i=>t[i]).length===0}},Wu=(e,t)=>{let r=n=>Object.values(n.reduce((o,i)=>(Object.hasOwn(Wa,i)?o["built-in"].push(Wa[i]):o.user.push(aT(i)),o),{"built-in":[],user:[]})).filter(o=>o.length>0);return n=>{let o=r(e),i=r(t);return(!o.length||o.every(a=>a.some(l=>l(n,!1))))&&(!i.length||i.every(a=>a.every(l=>l(n,!0))))}},{fetch:l8}=rS,s8="./index.json",Vu="tags-filter",I0="static-filter",ea="status-filter",Dn=new Set(Object.keys(Wa)),u8=["enableShortcuts","theme","showRoots"];function qu(e){if(!e||typeof e=="string")return e;let t={...e};return u8.forEach(r=>{r in t&&delete t[r]}),t}var F0={tag:{included:"includedTagFilters",excluded:"excludedTagFilters"},status:{included:"includedStatusFilters",excluded:"excludedStatusFilters"}},c8=({fullAPI:e,store:t,navigate:r,provider:n,state:{location:o}={},storyId:i,viewMode:a,docsOptions:l={}})=>{let s=($,_)=>{let{customQueryParams:O}=t.getState();r(nS($,O??{}),_)},u=$=>t.setState($,{persistence:"url",serialize:_=>{let O=i8(_.includedTagFilters,_.excludedTagFilters),P=r8(_.includedStatusFilters,_.excludedStatusFilters);return{tags:O??null,statuses:P??null}}}),c=!1,d=async($,_,O)=>{let{included:P,excluded:k}=F0[$],B=t.getState(),N=new Set(B[P]),D=new Set(B[k]);for(let j of _){let[K,U]=O?[D,N]:[N,D];U.delete(j),K.add(j)}await u({[P]:Array.from(N),[k]:Array.from(D)})},p=async($,_)=>{let{included:O,excluded:P}=F0[$],k=t.getState(),B=new Set(_);await u({[O]:k[O].filter(N=>!B.has(N)),[P]:k[P].filter(N=>!B.has(N))})},g=($,_)=>{let O=t.getState(),P=(O.includedTagFilters??[]).filter(U=>Dn.has(U)),k=(O.excludedTagFilters??[]).filter(U=>Dn.has(U)),B=!!globalThis?.FEATURES?.changeDetection,N=B?O.includedStatusFilters??[]:[],D=B?O.excludedStatusFilters??[]:[],j={},K=O.internal_index?Object.values(O.internal_index.entries):[];for(let U of new Set([...P,...k])){let z=Wa[U];j[U]=K.filter(W=>z(W)).length}if(N.length>0||D.length>0){let U=l3(Aa.getAll());for(let z of new Set([...N,...D]))U[z]!==void 0&&(j[z]=U[z])}n.channel?.emit(WL,{trigger:$,changed:_,activeTagFilters:{included:P,excluded:k},activeStatusFilters:{included:N,excluded:D},storyCounts:j})},m={storyId:qi,getData:($,_)=>{let O=m.resolveStory($,_);if(O?.type==="story"||O?.type==="docs")return O},isPrepared:($,_)=>{let O=m.getData($,_);return O?O.type==="story"?O.prepared:!0:!1},resolveStory:($,_)=>{let{refs:O,index:P}=t.getState();if(!(_&&!O[_]))return _?O?.[_]?.index?.[$]??void 0:P?P[$]:void 0},getCurrentStoryData:()=>{let{storyId:$,refId:_}=t.getState();return m.getData($,_)},getIndex:()=>{let{internal_index:$}=t.getState();return $},getParameters:($,_)=>{let{storyId:O,refId:P}=typeof $=="string"?{storyId:$,refId:void 0}:$,k=m.getData(O,P);if(["story","docs"].includes(k?.type)){let{parameters:B}=k;if(B)return _?B[_]:B}return null},getCurrentParameter:$=>{let{storyId:_,refId:O}=t.getState();return m.getParameters({storyId:_,refId:O},$)||void 0},jumpToComponent:$=>{let{filteredIndex:_,storyId:O,refs:P,refId:k}=t.getState();if(!m.getData(O,k))return;let B=k?P[k].filteredIndex||{}:_;if(!B)return;let N=m.findSiblingStoryId(O,B,$,!0);N&&m.selectStory(N,void 0,{ref:k})},jumpToStory:$=>{let{filteredIndex:_,storyId:O,refs:P,refId:k}=t.getState(),B=m.getData(O,k);if(!B)return;let N=B.refId?P[B.refId].filteredIndex:_;if(!N)return;let D=m.findSiblingStoryId(O,N,$,!1);D&&m.selectStory(D,void 0,{ref:k})},selectFirstStory:()=>{let $=t.getState(),{filteredIndex:_}=$;if(_){let k=Object.keys(_).find(B=>_[B].type==="story");k&&m.selectStory(k);return}let{index:O}=$;if(!O)return;let P=Object.keys(O).find(k=>O[k].type==="story");if(P){m.selectStory(P);return}s("/")},selectStory:($=void 0,_=void 0,O={})=>{let{ref:P}=O,{storyId:k,index:B,filteredIndex:N,refs:D,settings:j}=t.getState(),K=G=>G?.type==="docs"||G?.type==="story"?(t.setState({settings:{...j,lastTrackedStoryId:G.id}}),s(`/${G.type}/${G.refId?`${G.refId}_${G.id}`:G.id}`),!0):!1,U=k?.split("--",2)[0],z=P?D[P].index:B,W=P?D[P].filteredIndex:N;if(!(!z||!W))if(_)if(!$)K(z[qi(U,_)]);else{let G=P?`${P}_${qi($,_)}`:qi($,_);if(z[G])K(z[G]);else{let X=z[qn($)];if(X?.type==="component"){let ie=X.children.find(Re=>z[Re].name===_);K(ie?z[ie]:void 0)}}}else{let G=$?z[$]||z[qn($)]:z[U];if(!G)throw new Error(`Unknown id or title: '${$}'`);K(G)||K(m.findLeafEntry(W,G.id))}},findLeafEntry($,_){let O=$[_];if(!O)return;if(O.type==="docs"||O.type==="story")return O;let P=O.children.find(k=>$[k]);return P?m.findLeafEntry($,P):void 0},findLeafStoryId($,_){return m.findLeafEntry($,_)?.id},findAllLeafStoryIds($){let{index:_}=t.getState();if(!_)return[];let O=(P,k=[])=>{let B=_[P];return B&&(B.type==="story"&&k.push(B.id),"children"in B&&B.children?.forEach(N=>O(N,k))),k};return O($,[])},findSiblingStoryId($,_,O,P){if(P){let N=nL(_),D=N.findIndex(j=>j.includes($));return D===N.length-1&&O>0||D===0&&O<0?void 0:N[D+O]?N[D+O][0]:void 0}let k=oL(_),B=k.indexOf($);if(!(B===k.length-1&&O>0)&&!(B===0&&O<0))return k[B+O]},updateStoryArgs:($,_)=>{let{id:O,refId:P}=$;n.channel?.emit(QL,{storyId:O,updatedArgs:_,options:{target:P}})},resetStoryArgs:($,_)=>{let{id:O,refId:P}=$;n.channel?.emit(BL,{storyId:O,argNames:_,options:{target:P}})},fetchIndex:async()=>{try{let $=await l8(s8);if($.status!==200)throw new Error(await $.text());let _=await $.json();if(_.v<3){FL.warn(`Skipping story index with version v${_.v}, awaiting SET_STORIES.`);return}await m.setIndex(_)}catch($){await t.setState({indexError:$})}},setIndex:async $=>{let{filteredIndex:_,index:O,filters:P}=t.getState(),k=Aa.getAll(),B=tl($,{provider:n,docsOptions:l,filters:P,allStatuses:k,statusFilterKey:ea}),N=tl($,{provider:n,docsOptions:l,filters:{},allStatuses:k});await t.setState({internal_index:$,filteredIndex:$0(B,_),index:$0(N,O),indexError:void 0})},updateStory:async($,_,O)=>{if(O){let{id:P,index:k,filteredIndex:B}=O,N={...O.storyUpdates,[$]:{...O.storyUpdates?.[$],..._}};k&&k[$]&&(k[$]={...k[$],..._}),B&&B[$]&&(B[$]={...B[$],..._}),await e.updateRef(P,{index:k,filteredIndex:B,storyUpdates:N})}else{let{index:P,filteredIndex:k}=t.getState();P&&P[$]&&(P[$]={...P[$],..._}),k&&k[$]&&(k[$]={...k[$],..._}),(P||k)&&await t.setState({index:P,filteredIndex:k})}},updateDocs:async($,_,O)=>{if(O){let{id:P,index:k,filteredIndex:B}=O,N={...O.storyUpdates,[$]:{...O.storyUpdates?.[$],..._}};k&&k[$]&&(k[$]={...k[$],..._}),B&&B[$]&&(B[$]={...B[$],..._}),await e.updateRef(P,{index:k,filteredIndex:B,storyUpdates:N})}else{let{index:P,filteredIndex:k}=t.getState();P&&(P[$]={...P[$],..._}),k&&(k[$]={...k[$],..._}),(P||k)&&await t.setState({index:P,filteredIndex:k})}},setPreviewInitialized:async $=>{$?e.updateRef($.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async($,_)=>{await t.setState(k=>({filters:{...k.filters,[$]:_}}));let{internal_index:O}=t.getState();if(!O)return;await m.setIndex(O);let P=await e.getRefs();for(let[k,{internal_index:B,...N}]of Object.entries(P))await e.setRef(k,{...N,storyIndex:B},!0);n.channel?.emit(zL,{id:$})},resetTagFilters:async()=>{await u($=>({includedTagFilters:$.defaultIncludedTagFilters,excludedTagFilters:$.defaultExcludedTagFilters})),await y()},setAllTagFilters:async($,_)=>{await u({includedTagFilters:$,excludedTagFilters:_}),await y()},addTagFilters:async($,_)=>{await d("tag",$,_),await y(),$.length===1&&Dn.has($[0])&&g("interaction",{filterType:"tag",filterId:$[0],action:_?"exclude":"include"})},removeTagFilters:async $=>{await p("tag",$),await y(),$.length===1&&Dn.has($[0])&&g("interaction",{filterType:"tag",filterId:$[0],action:"remove"})},resetStatusFilters:async()=>{await u({includedStatusFilters:[],excludedStatusFilters:[]}),await v()},setAllStatusFilters:async($,_)=>{let O=t.getState(),P=new Set(O.includedStatusFilters??[]),k=new Set(O.excludedStatusFilters??[]),B=new Set($),N=new Set(_);await u({includedStatusFilters:$,excludedStatusFilters:_}),await v();let D=new Set([...P,...k,...B,...N]);for(let j of D){let K=P.has(j),U=k.has(j),z=B.has(j),W=N.has(j);if(K===z&&U===W)continue;let G;z?G="include":W?G="exclude":G="remove",g("interaction",{filterType:"status",filterId:j,action:G})}},addStatusFilters:async($,_)=>{await d("status",$,_),await v(),$.length===1&&g("interaction",{filterType:"status",filterId:$[0],action:_?"exclude":"include"})},removeStatusFilters:async $=>{await p("status",$),await v(),$.length===1&&g("interaction",{filterType:"status",filterId:$[0],action:"remove"})}},y=()=>{let{includedTagFilters:$,excludedTagFilters:_}=t.getState();return m.experimental_setFilter(Vu,Wu($,_))},v=()=>{let{includedStatusFilters:$,excludedStatusFilters:_}=t.getState();return m.experimental_setFilter(ea,Gu($??[],_??[]))};n.channel?.on(ZL,function({storyId:$,viewMode:_}){let{sourceType:O}=yt(this,e);if(O==="local"){let P=t.getState(),k=!nE(P.path,P.customQueryParams)&&(P.path==="/"||P.viewMode==="story"||P.viewMode==="docs"),B=P.viewMode&&P.storyId,N=P.viewMode!==_||P.storyId!==$,{type:D}=P.index?.[P.storyId]||{},j=!(D==="root"||D==="component"||D==="group");if(k){let{filteredIndex:K}=P;if(K&&!B&&K[$]?.type!=="story"){let U=K?Object.keys(K).find(z=>{let W=K[z];return W.type==="story"||W.type==="docs"}):void 0;U&&s(`/${_}/${U}`);return}B&&N&&j?n.channel?.emit(UL,{storyId:P.storyId,viewMode:P.viewMode}):N&&s(`/${_}/${$}`)}}}),n.channel?.on(kL,function(){let{ref:$}=yt(this,e);m.setPreviewInitialized($)}),n.channel?.on(qL,function(){let{sourceType:$}=yt(this,e);if($==="local"){let _=m.getCurrentParameter("options");_&&e.setOptions(qu(_))}}),n.channel?.on(JL,function({id:$,..._}){let{ref:O,sourceType:P}=yt(this,e);if(m.updateStory($,{..._,prepared:!0},O),!O&&!t.getState().hasCalledSetOptions){let{options:k}=_.parameters;e.setOptions(qu(k)),t.setState({hasCalledSetOptions:!0})}if(P==="local"){let{storyId:k,index:B,refId:N}=t.getState();if(!B)return;let D=Array.from(new Set([m.findSiblingStoryId(k,B,1,!0),m.findSiblingStoryId(k,B,-1,!0)])).filter(Boolean);n.channel?.emit(ML,{ids:D,options:{target:N}})}}),n.channel?.on(NL,function({id:$,..._}){let{ref:O}=yt(this,e);m.updateStory($,{..._,prepared:!0},O)}),n.channel?.on(KL,function($){let{ref:_}=yt(this,e);if(_)e.setRef(_.id,{..._,storyIndex:$},!0);else{m.setIndex($);let O=m.getCurrentParameter("options");e.setOptions(qu(O))}}),n.channel?.on(GL,function($){let{ref:_}=yt(this,e),O=$.v?Z6($):$.stories;if(_)e.setRef(_.id,{..._,setStoriesData:O},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),n.channel?.on(jL,function({kind:$,title:_=$,story:O,name:P=O,storyId:k,...B}){let{ref:N}=yt(this,e);N?e.selectStory(k||_,P,{...B,ref:N.id}):e.selectStory(k||_,P,B)}),n.channel?.on(VL,function({storyId:$,args:_}){let{ref:O}=yt(this,e);m.updateStory($,{args:_},O)}),n.channel?.on(LL,function($){let{ref:_}=yt(this,e);m.setPreviewInitialized(_)}),n.channel?.on(XL,function($){let{ref:_}=yt(this,e);m.setPreviewInitialized(_)}),n.channel?.on(HL,()=>{let $=n.getConfig()?.sidebar?.filters||{},{includedTagFilters:_,excludedTagFilters:O,includedStatusFilters:P,excludedStatusFilters:k,tagPresets:B}=t.getState();t.setState(({filters:N})=>({filters:{...N,...$,[I0]:P0(B),[Vu]:Wu(_,O),[ea]:Gu(P,k)}}))}),Aa.onAllStatusChange(async()=>{v();let{internal_index:$}=t.getState();if(!$)return;await m.setIndex($);let _=await e.getRefs();Object.entries(_).forEach(([O,{internal_index:P,...k}])=>{e.setRef(O,{...k,storyIndex:P},!0)})});let b=n.getConfig()?.sidebar?.filters||{},E=rS.TAGS_OPTIONS||{},S=a8(E),{tags:x,statuses:A}=lp(o??{search:""}),w=o8(x),C=x!==void 0,R=C?w.included:S.included,L=C?w.excluded:S.excluded,I=t8(A),T=I.included,M=I.excluded,H={...b,[I0]:P0(E),[Vu]:Wu(R,L),[ea]:Gu(T,M)};return{api:m,state:{storyId:i,viewMode:a,hasCalledSetOptions:!1,previewInitialized:!1,filters:H,tagPresets:E,defaultIncludedTagFilters:S.included,defaultExcludedTagFilters:S.excluded,includedTagFilters:R,excludedTagFilters:L,includedStatusFilters:T,excludedStatusFilters:M},init:async()=>{if(n.channel?.on(YL,()=>m.fetchIndex()),await m.fetchIndex(),c)return;c=!0;let $=R.some(O=>Dn.has(O))||L.some(O=>Dn.has(O)),_=!!globalThis?.FEATURES?.changeDetection&&(T.length>0||M.length>0);($||_)&&g("url")}}},lS={};Ve(lS,{getCustomQueryParams:()=>Ep,init:()=>b8});const{GLOBALS_UPDATED:d8,NAVIGATE_URL:f8,SET_CURRENT_STORY:p8,STORY_ARGS_UPDATED:h8,UPDATE_QUERY_PARAMS:g8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Pn}=__STORYBOOK_MODULE_GLOBAL__;var Vr=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},L0=e=>Object.fromEntries(e.split(";").map(t=>t.split(":")).map(([t,r])=>[t,encodeURIComponent(r)]).filter(([t,r])=>t&&r)),k0=(e,t)=>{let r=L0(e),n=L0(t);return Object.entries({...r,...n}).map(([o,i])=>`${o}:${i}`).join(";")},m8=["full","panel","nav","shortcuts","addonPanel","tabs","path"],Ep=e=>zc(lp(e),m8),Yu,y8=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:o})=>{let{full:i,panel:a,nav:l,shortcuts:s,addonPanel:u,tabs:c}=lp(e),d,p,g;Vr(i)===!0?(d=0,p=0,g=0):Vr(i)===!1&&(d=ai,p=rl,g=nl),o||(Vr(l)===!0&&(d=ai),Vr(l)===!1&&(d=0)),Vr(a)===!1&&(p=0,g=0);let m={navSize:d,bottomPanelHeight:p,rightPanelWidth:g,panelPosition:["right","bottom"].includes(a)?a:void 0,showTabs:Vr(c)},y={enableShortcuts:Vr(s)},v=u||void 0,b=n,E=Ep(e),S=tr(Yu,E)?Yu:E;return Yu=S,{viewMode:r,layout:m,ui:y,selectedPanel:v,location:e,path:t,customQueryParams:S,storyId:b}},b8=e=>{let{store:t,navigate:r,provider:n,fullAPI:o}=e,i=(u,c={},d={})=>r(nS(u,c),d),a={getStoryHrefs(u,c={}){let{id:d,refId:p}=o.getCurrentStoryData()??{},g=u===d&&c.refId===p,{customQueryParams:m,location:y,refs:v}=t.getState(),{base:b,inheritArgs:E=g,inheritGlobals:S=!0,queryParams:x={},refId:A,viewMode:w="story",embed:C=!1,freeze:R=!1}=c;if(A&&!v[A])throw new Error(`Invalid refId: ${A}`);let L=y.pathname||"/",I=Pn.window.location.origin+L,T=Pn.STORYBOOK_NETWORK_ADDRESS??I,M=b==="origin"?I:b==="network"?T:L,H=A?v[A].url+"/iframe.html":Pn.PREVIEW_URL||`${M.replace(/\/[^/]*\.html$/,"").replace(/\/?$/,"/")}iframe.html`,$=A?`&refId=${encodeURIComponent(A)}`:"",{args:_="",globals:O="",...P}=x,k=E?k0(m?.args??"",_):_,B=S?k0(m?.globals??"",O):O,N=zc(P,["embed","freeze"]),D=zc(P,["id","viewMode","embed","freeze"]),j=Wc(N,{nesting:!0,nestingSyntax:"js"}),K=Wc(D,{nesting:!0,nestingSyntax:"js"});k=k&&`&args=${k}`,B=B&&`&globals=${B}`,j=j&&`&${j}`,K=K&&`&${K}`;let U=C?"&embed=true":"",z=R?"&freeze=finished":"";return{managerHref:`${M}?path=/${w}/${A?`${A}_`:""}${u}${k}${B}${j}`,previewHref:`${H}?id=${u}&viewMode=${w}${$}${k}${A?"":B}${K}${U}${z}`}},getQueryParam(u){let{customQueryParams:c}=t.getState();return c?c[u]:void 0},getUrlState(){let{location:u,path:c,customQueryParams:d,storyId:p,url:g,viewMode:m}=t.getState();return{path:c,hash:u?.hash??"",queryParams:d,storyId:p,url:g,viewMode:m}},setQueryParams(u){let{customQueryParams:c}=t.getState(),d={...c};for(let[p,g]of Object.entries(u))g==null?delete d[p]:d[p]=g;tr(c,d)||(t.setState({customQueryParams:d}),n.channel?.emit(g8,d))},applyQueryParams(u,c){let{path:d,hash:p="",queryParams:g}=a.getUrlState();i(`${d}${p}`,{...g,...u},c),a.setQueryParams(u)},navigateUrl(u,c){r(u,{plain:!0,...c})}},l=()=>{let{path:u,hash:c="",queryParams:d,viewMode:p}=a.getUrlState();if(p!=="story")return;let g=o.getCurrentStoryData();if(g?.type!=="story")return;let{args:m,initialArgs:y}=g,v=Cm(y,m);i(`${u}${c}`,{...d,args:v||null},{replace:!0}),a.setQueryParams({args:v||null})};n.channel?.on(p8,()=>l());let s;return n.channel?.on(h8,()=>{"requestIdleCallback"in Pn.window?(s&&Pn.window.cancelIdleCallback(s),s=Pn.window.requestIdleCallback(l,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(l,100))}),n.channel?.on(d8,({userGlobals:u,initialGlobals:c})=>{let{path:d,hash:p="",queryParams:g}=a.getUrlState(),m=Cm(c,pn(c,u));i(`${d}${p}`,{...g,globals:m||null},{replace:!0}),a.setQueryParams({globals:m||null})}),n.channel?.on(f8,(u,c)=>{a.navigateUrl(u,c)}),{api:a,state:y8(e),init:()=>{t.registerPersistenceHandler("url",(u,c)=>{if(c){let d=c(t.getState());a.applyQueryParams(d,{replace:!0})}})}}},sS={};Ve(sS,{init:()=>$8});var v8=vt(Sn(),1);const{global:Ad}=__STORYBOOK_MODULE_GLOBAL__;var E8="10.5.4",{VERSIONCHECK:S8}=Ad,N0=(0,v8.default)(1)(()=>{try{return{...JSON.parse(S8).data||{}}}catch{return{}}}),x8=e=>e.includes("vue")?"vue":e,$8=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:E8},...N0()},dismissedVersionNotification:t},n={getCurrentVersion:()=>{let{versions:{current:o}}=e.getState();return o},getLatestVersion:()=>{let{versions:{latest:o,next:i,current:a}}=e.getState();return a&&mt.prerelease(a.version)&&i?o&&mt.gt(o.version,i.version)?o:i:o},getDocsUrl:({asset:o,subpath:i=o,versioned:a,renderer:l,ref:s="ui"})=>{let{versions:u}=e.getState(),c=u.latest?.version,d=u.current?.version,p=d?.startsWith("0.0.0")&&c||d,g=`https://storybook.js.org/${o?"docs-assets":"docs"}/`;if(o&&p)g+=`${mt.major(p)}.${mt.minor(p)}/`;else if(a&&p&&c){let v=mt.diff(c,p);v==="patch"||v===null||(g+=`${mt.major(p)}.${mt.minor(p)}/`)}let[m,y]=i?.split("#")||[];if(m&&(g+=o?m:`${m}/`),l&&typeof Ad.STORYBOOK_RENDERER<"u"){let v=Ad.STORYBOOK_RENDERER;v&&(g+=`?renderer=${x8(v)}`)}return s&&(g+=`${g.includes("?")?"&":"?"}ref=${s}`),y&&(g+=`#${y}`),g},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),i=n.getCurrentVersion();if(o){if(!o.version||!i.version)return!0;let a=mt.prerelease(i.version)?`${mt.major(i.version)}.${mt.minor(i.version)}.${mt.patch(i.version)}`:i.version,l=mt.diff(a,o.version);return mt.gt(o.version,a)&&l!=="patch"&&!l.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=e.getState(),{latest:i,next:a}=N0();await e.setState({versions:{...o,latest:i,next:a}})},state:r,api:n}},uS={};Ve(uS,{init:()=>R8});const{REQUEST_WHATS_NEW_DATA:w8,RESULT_WHATS_NEW_DATA:C8,SET_WHATS_NEW_CACHE:_8,TOGGLE_WHATS_NEW_NOTIFICATIONS:T8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:A8}=__STORYBOOK_MODULE_GLOBAL__;var M0="whats-new",O8=({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})),R8=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function o(s){t.setState({whatsNewData:s}),n.whatsNewData=s}let i={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(M0))},toggleWhatsNewNotifications(){n.whatsNewData?.status==="SUCCESS"&&(o({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),r.channel?.emit(T8,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function a(){return r.channel?.emit(w8),new Promise(s=>r.channel?.once(C8,({data:u})=>s(u)))}function l(s){r.channel?.emit(_8,s)}return{init:async()=>{if(A8.CONFIG_TYPE!=="DEVELOPMENT")return;let s=await a();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:M0,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:h.createElement(O8,null),onClear({dismissed:p}){p&&l({lastDismissedPost:s.url})}})},state:n,api:i}},nn=vt(k6(),1),D8=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),pF(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?gF(n):r||n})};D8(nn.default._);var cS="@storybook/manager/store";function Oa(e){return e.get(cS)||{}}function dS(e,t){return e.set(cS,t)}function P8(e,t){let r=Oa(e);return dS(e,{...r,...t})}var I8=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[nn.default.local,nn.default.session]){let o=Oa(n);if("includedTagFilters"in o||"excludedTagFilters"in o){let{includedTagFilters:i,excludedTagFilters:a,...l}=o;dS(n,l)}}let t=Oa(nn.default.local),r=Oa(nn.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:i="none"}=o||{},a={},l={};typeof e=="function"?a=u=>(l=e(u),l):(a=e,l=a);let s=await new Promise(u=>{this.upstreamSetState(a,()=>{u(this.getState())})});if(i!=="none"&&this.upstreamPersistence)if(i==="url"){let u=this.persistenceHandlers.get("url");u&&await u(l,o?.serialize)}else{let u=i==="session"?nn.default.session:nn.default.local;await P8(u,l)}return n&&n(s),s}},{ActiveTabs:eZ}=vp,fS=N6({api:void 0,state:wd({})}),F8=(...e)=>M6({},...e),L8=class extends f.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:i,storyId:a,docsOptions:l,navigate:s}=e,u=new I8({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:i,storyId:a,refId:n},d={docsOptions:l};this.state=u.getInitialState(wd({...c,...d}));let p={navigate:s,store:u,provider:e.provider};this.modules=[XE,ME,NE,vp,qE,JE,ZE,tS,jE,BE,lS,sS,uS,YE].map(y=>y.init({...c,...d,...p,state:this.state,fullAPI:this.api}));let g=wd(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:Ep(e.location)}:null}shouldComponentUpdate(e,t){let r=this.props,n=this.state;return r.path!==e.path||!Zt(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return h.createElement(k8,{effect:this.initModules},h.createElement(fS.Provider,{value:t},h.createElement(M8,null,e)))}};L8.displayName="Manager";var k8=({children:e,effect:t})=>(h.useEffect(t,[]),e),N8=e=>e;function M8({filter:e=N8,children:t}){let r=f.useContext(fS),n=f.useRef(t),o=f.useRef(e);if(typeof n.current!="function")return h.createElement(f.Fragment,null,n.current);let i=o.current(r),a=f.useMemo(()=>[...Object.entries(i).reduce((l,s)=>l.concat(s),[])],[r.state]);return f.useMemo(()=>{let l=n.current;return h.createElement(l,{...i})},a)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:tZ}=__STORYBOOK_MODULE_CHANNELS__;var B8={id:"storybook/test-provider",leader:!0,initialState:{}};function j8({universalTestProviderStore:e,useUniversalStore:t}){let r={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:"settings-changed"})})},onRunAll:i=>e.subscribe("run-all",i),onClearAll:i=>e.subscribe("clear-all",i)},n={...r,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:i=>e.subscribe("settings-changed",i),runAll:async()=>{await e.untilReady(),e.send({type:"run-all"})},clearAll:async()=>{await e.untilReady(),e.send({type:"clear-all"})}},o=i=>{let a=()=>e.getState()[i]??"test-provider-state:pending",l=s=>{e.untilReady().then(()=>{e.setState(u=>({...u,[i]:s}))})};return{...r,testProviderId:i,getState:a,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:i=>t(e,i)[0]}:{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e}}j8({universalTestProviderStore:Yf.create({...B8,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:oS});var H8={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:{}},U8={id:"storybook/checklist",initialState:H8};Yf.create({...U8,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var Xu={exports:{}},Ju={},B0;function z8(){if(B0)return Ju;B0=1;var e=Ff();function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(d,p){var g=p(),m=n({inst:{value:g,getSnapshot:p}}),y=m[0].inst,v=m[1];return i(function(){y.value=g,y.getSnapshot=p,s(y)&&v({inst:y})},[d,g,p]),o(function(){return s(y)&&v({inst:y}),d(function(){s(y)&&v({inst:y})})},[d]),a(g),g}function s(d){var p=d.getSnapshot;d=d.value;try{var g=p();return!r(d,g)}catch{return!0}}function u(d,p){return p()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return Ju.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Ju}var j0;function K8(){return j0||(j0=1,Xu.exports=z8()),Xu.exports}var G8=K8(),$e=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},bo=({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"}}),Sr=({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)"}),_e=({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"}),Cn={margin:"16px 0"},Sp=F.div(_e),W8=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return h.createElement("a",{href:r,target:n,...t})},pS=F(W8)(({theme:e})=>({..._e({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"}}})),hS=F.blockquote(({theme:e})=>({..._e({theme:e}),...Cn,borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),hn=[],Qn=null,V8=f.lazy(async()=>{let{SyntaxHighlighter:e}=await Nr(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-T5IQBZDB-BzI6WxUR.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return hn.length>0&&(hn.forEach(t=>{e.registerLanguage(...t)}),hn=[]),Qn===null&&(Qn=e),{default:t=>h.createElement(e,{...t})}}),q8=f.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Nr(()=>import("./syntaxhighlighter-T5IQBZDB-BzI6WxUR.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),Nr(()=>import("./formatter-L2YTDE3Q-CJVnxOUW.js"),__vite__mapDeps([6,1,2,3,4,5]),import.meta.url)]);return hn.length>0&&(hn.forEach(r=>{e.registerLanguage(...r)}),hn=[]),Qn===null&&(Qn=e),{default:r=>h.createElement(e,{...r,formatter:t})}}),Ci=e=>h.createElement(f.Suspense,{fallback:h.createElement("div",null)},e.format!==!1?h.createElement(q8,{...e}):h.createElement(V8,{...e}));Ci.registerLanguage=(...e)=>{if(Qn!==null){Qn.registerLanguage(...e);return}hn.push(e)};var Y8=e=>typeof e=="string",X8=/[\n\r]/g,J8=F.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit",...Sr({theme:e})})),Z8=F(Ci)(({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"}})),xp=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=f.Children.toArray(t);return o.filter(Y8).some(i=>i.match(X8))?h.createElement(Z8,{bordered:!0,copyable:!0,language:n?.[1]??"text",format:!1,...r},t):h.createElement(J8,{...r,className:e},o)},gS=F.dl(({theme:e})=>({..._e({theme:e}),...Cn,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}})),mS=F.div(_e),yS=F.h1(({theme:e})=>({..._e({theme:e}),...bo({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),$p=F.h2(({theme:e})=>({..._e({theme:e}),...bo({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),wp=F.h3(({theme:e})=>({..._e({theme:e}),...bo({theme:e}),fontSize:`${e.typography.size.m1}px`})),bS=F.h4(({theme:e})=>({..._e({theme:e}),...bo({theme:e}),fontSize:`${e.typography.size.s3}px`})),vS=F.h5(({theme:e})=>({..._e({theme:e}),...bo({theme:e}),fontSize:`${e.typography.size.s2}px`})),ES=F.h6(({theme:e})=>({..._e({theme:e}),...bo({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),SS=F.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),xS=F.img({maxWidth:"100%"}),$S=F.li(({theme:e})=>({..._e({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":Sr({theme:e})})),Q8={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},wS=F.ol(({theme:e})=>({..._e({theme:e}),...Cn,...Q8,listStyle:"decimal"})),CS=F.p(({theme:e})=>({..._e({theme:e}),...Cn,fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":Sr({theme:e})})),_S=F.pre(({theme:e})=>({..._e({theme:e}),...Cn,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"}})),TS=F.span(({theme:e})=>({..._e({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"}}})),AS=F.title(Sr),OS=F.table(({theme:e})=>({..._e({theme:e}),...Cn,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}})),ek={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},RS=F.ul(({theme:e})=>({..._e({theme:e}),...Cn,...ek,listStyle:"disc"})),DS={h1:e=>h.createElement(yS,{...$e(e,"h1")}),h2:e=>h.createElement($p,{...$e(e,"h2")}),h3:e=>h.createElement(wp,{...$e(e,"h3")}),h4:e=>h.createElement(bS,{...$e(e,"h4")}),h5:e=>h.createElement(vS,{...$e(e,"h5")}),h6:e=>h.createElement(ES,{...$e(e,"h6")}),pre:e=>h.createElement(_S,{...$e(e,"pre")}),a:e=>h.createElement(pS,{...$e(e,"a")}),hr:e=>h.createElement(SS,{...$e(e,"hr")}),dl:e=>h.createElement(gS,{...$e(e,"dl")}),blockquote:e=>h.createElement(hS,{...$e(e,"blockquote")}),table:e=>h.createElement(OS,{...$e(e,"table")}),img:e=>h.createElement(xS,{...$e(e,"img")}),div:e=>h.createElement(mS,{...$e(e,"div")}),span:e=>h.createElement(TS,{...$e(e,"span")}),li:e=>h.createElement($S,{...$e(e,"li")}),ul:e=>h.createElement(RS,{...$e(e,"ul")}),ol:e=>h.createElement(wS,{...$e(e,"ol")}),p:e=>h.createElement(CS,{...$e(e,"p")}),code:e=>h.createElement(xp,{...$e(e,"code")}),tt:e=>h.createElement(AS,{...$e(e,"tt")}),resetwrapper:e=>h.createElement(Sp,{...$e(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 ${vr(.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"?Je(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${vr(.9,e.color.secondary)}`};default:return{}}});const{deprecate:tk}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var rk=0,nk=e=>e.button===rk&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,ok=(e,t)=>{nk(e)&&(e.preventDefault(),t(e))},ik=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}}:{}),ak=F.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Je(.07,e.color.secondary),"svg path:not([fill])":{fill:Je(.07,e.color.secondary)}},"&:active":{color:Je(.1,e.color.secondary),"svg path:not([fill])":{fill:Je(.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"}}:{}),_i=f.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:i=void 0,isButton:a=void 0,href:l,...s},u)=>(a!==void 0&&tk("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),h.createElement(ak,{as:l?"a":"button",href:l,...s,ref:u,isButton:!l||a===!0,onClick:r&&e?c=>ok(c,r):r,className:i},h.createElement(ik,{withArrow:n,containsIcon:o},t,n&&h.createElement(Qv,null)))));_i.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:lk}=__STORYBOOK_MODULE_GLOBAL__;var{document:Do,window:Od}=lk;async function sk(e){try{await Od.top?.navigator.clipboard.writeText(e)}catch{await Od.navigator.clipboard.writeText(e)}}async function uk(e){let t=Do.createElement("TEXTAREA"),r=Do.activeElement;t.value=e,Do.body.appendChild(t),t.select(),Do.execCommand("copy"),Do.body.removeChild(t),r.focus()}function ck(){return Od.navigator?.clipboard?sk:uk}const{deprecate:Rd}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function H0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dk(...e){return t=>{let r=!1,n=e.map(o=>{let i=H0(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){let i=n[o];typeof i=="function"?i():H0(e[o],null)}}}}var fk=Symbol.for("react.lazy"),ol=L5[" use ".trim().toString()];function pk(e){return typeof e=="object"&&e!==null&&"then"in e}function PS(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===fk&&"_payload"in e&&pk(e._payload)}function hk(e){let t=mk(e),r=f.forwardRef((n,o)=>{let{children:i,...a}=n;PS(i)&&typeof ol=="function"&&(i=ol(i._payload));let l=f.Children.toArray(i),s=l.find(bk);if(s){let u=s.props.children,c=l.map(d=>d===s?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:d);return le.jsx(t,{...a,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,c):null})}return le.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var gk=hk("Slot");function mk(e){let t=f.forwardRef((r,n)=>{let{children:o,...i}=r;if(PS(o)&&typeof ol=="function"&&(o=ol(o._payload)),f.isValidElement(o)){let a=Ek(o),l=vk(i,o.props);return o.type!==f.Fragment&&(l.ref=n?dk(n,a):a),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yk=Symbol("radix.slottable");function bk(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yk}function vk(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{let l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Ek(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 Sk=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)"})),IS=({note:e,...t})=>h.createElement(Sk,{...t},e);const{deprecate:xk}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var pe=typeof document<"u"?h.useLayoutEffect:()=>{};function $k(e){let[t,r]=f.useState(e),n=f.useRef(t),o=f.useRef(null),i=f.useRef(()=>{if(!o.current)return;let l=o.current.next();if(l.done){o.current=null;return}n.current===l.value?i.current():r(l.value)});pe(()=>{n.current=t,o.current&&i.current()});let a=f.useCallback(l=>{o.current=l(n.current),i.current()},[i]);return[t,a]}var FS={prefix:String(Math.round(Math.random()*1e10)),current:0},LS=h.createContext(FS),wk=h.createContext(!1),Zu=new WeakMap;function Ck(e=!1){let t=f.useContext(LS),r=f.useRef(null);if(r.current===null&&!e){var n,o;let i=(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(i){let a=Zu.get(i);a==null?Zu.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,Zu.delete(i))}r.current=++t.current}return r.current}function _k(e){let t=f.useContext(LS),r=Ck(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function Tk(e){let t=h.useId(),[r]=f.useState(_n()),n=r?"react-aria":`react-aria${FS.prefix}`;return e||`${n}-${t}`}var Ak=typeof h.useId=="function"?Tk:_k;function Ok(){return!1}function Rk(){return!0}function Dk(e){return()=>{}}function _n(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(Dk,Ok,Rk):f.useContext(wk)}var Pk=!!(typeof window<"u"&&window.document&&window.document.createElement),zn=new Map,Mo;typeof FinalizationRegistry<"u"&&(Mo=new FinalizationRegistry(e=>{zn.delete(e)}));function We(e){let[t,r]=f.useState(e),n=f.useRef(null),o=Ak(t),i=f.useRef(null);if(Mo&&Mo.register(i,o),Pk){let a=zn.get(o);a&&!a.includes(n)?a.push(n):zn.set(o,[n])}return pe(()=>{let a=o;return()=>{Mo&&Mo.unregister(i),zn.delete(a)}},[o]),f.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function Ik(e,t){if(e===t)return e;let r=zn.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=zn.get(t);return n?(n.forEach(o=>o.current=e),e):t}function Ra(e=[]){let t=We(),[r,n]=$k(t),o=f.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return pe(o,[t,o,...e]),r}function Ti(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var he=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},At=e=>e&&"window"in e&&e.window===e?e:he(e).defaultView||window;function Ct(e,t){return t&&e?e.contains(t):!1}var Be=(e=document)=>e.activeElement;function Oe(e){return e.target}function Fk(e,t,r,n){return e.createTreeWalker(t,r,n)}function kS(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=kS(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Lk(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=kS(e))&&(n&&(n+=" "),n+=t);return n}var kk=Lk;function re(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],a=n[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Ti(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=kk(i,a):o==="id"&&i&&a?t.id=Ik(i,a):t[o]=a!==void 0?a:i}}return t}function Cp(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(o=>{let i=U0(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():U0(e[i],null)})}}}function U0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var Nk=new Set(["id"]),Mk=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Bk=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),jk=new Set(["dir","lang","hidden","inert","translate"]),z0=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"]),Hk=/^(data-.*)$/;function Te(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:a}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(Nk.has(s)||r&&Mk.has(s)||n&&Bk.has(s)||o&&jk.has(s)||i&&(z0.has(s)||s.endsWith("Capture")&&z0.has(s.slice(0,-7)))||a?.has(s)||Hk.test(s))&&(l[s]=e[s]);return l}function ut(e){if(Uk())e.focus({preventScroll:!0});else{let t=zk(e);e.focus(),Kk(t)}}var ta=null;function Uk(){if(ta==null){ta=!1;try{document.createElement("div").focus({get preventScroll(){return ta=!0,!0}})}catch{}}return ta}function zk(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 Kk(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Jl(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 _p(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 xr(e){let t=null;return()=>(t==null&&(t=e()),t)}var bn=xr(function(){return _p(/^Mac/i)}),Gk=xr(function(){return _p(/^iPhone/i)}),NS=xr(function(){return _p(/^iPad/i)||bn()&&navigator.maxTouchPoints>1}),Zl=xr(function(){return Gk()||NS()}),Wk=xr(function(){return bn()||Zl()}),MS=xr(function(){return Jl(/AppleWebKit/i)&&!BS()}),BS=xr(function(){return Jl(/Chrome/i)}),Tp=xr(function(){return Jl(/Android/i)}),Vk=xr(function(){return Jl(/Firefox/i)}),qk=f.createContext({isNative:!0,open:Jk,useHref:e=>e});function Ql(){return f.useContext(qk)}function Yk(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 vn(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}=t;Vk()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(bn()?i=!0:a=!0);let u=MS()&&bn()&&!NS()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});vn.isOpening=r,ut(e),e.dispatchEvent(u),vn.isOpening=!1}vn.isOpening=!1;function Xk(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){Xk(e,r=>vn(r,t))}function jS(e){let t=Ql();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 Zk(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Yk(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Fr=new Map,Dd=new Set;function K0(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Fr.get(n.target);o||(o=new Set,Fr.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=Fr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Fr.delete(n.target)),Fr.size===0)){for(let i of Dd)i();Dd.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?K0():document.addEventListener("DOMContentLoaded",K0));function Qk(){for(let[e]of Fr)"isConnected"in e&&!e.isConnected&&Fr.delete(e)}function HS(e){requestAnimationFrame(()=>{Qk(),Fr.size===0?e():Dd.add(e)})}function es(){let e=f.useRef(new Map),t=f.useCallback((o,i,a,l)=>{let s=l?.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:s,options:l}),o.addEventListener(i,s,l)},[]),r=f.useCallback((o,i,a,l)=>{var s;let u=((s=e.current.get(a))===null||s===void 0?void 0:s.fn)||a;o.removeEventListener(i,u,l),e.current.delete(a)},[]),n=f.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function ts(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=We(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 Gt(e){let t=f.useRef(null),r=f.useRef(void 0),n=f.useCallback(o=>{if(typeof e=="function"){let i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return f.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,e7=(Qu=h.useInsertionEffect)!==null&&Qu!==void 0?Qu:pe;function Ue(e){let t=f.useRef(null);return e7(()=>{t.current=e},[e]),f.useCallback((...r)=>{let n=t.current;return n?.(...r)},[])}function G0(e,t){let r=f.useRef(!0),n=f.useRef(null);pe(()=>(r.current=!0,()=>{r.current=!1}),[]),pe(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function t7(){return typeof window.ResizeObserver<"u"}function il(e){let{ref:t,box:r,onResize:n}=e,o=Ue(n);f.useEffect(()=>{let i=t?.current;if(i)if(t7()){let a=new window.ResizeObserver(l=>{l.length&&o()});return a.observe(i,{box:r}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,r])}function Ap(e,t){pe(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function eo(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 US(e,t){let r=e;for(eo(r,t)&&(r=r.parentElement);r&&!eo(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function r7(e,t){let r=[];for(;e&&e!==document.documentElement;)eo(e,t)&&r.push(e),e=e.parentElement;return r}function kn(e){return bn()?e.metaKey:e.ctrlKey}var n7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ec(e){return e instanceof HTMLInputElement&&!n7.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var o7=0,tc=new Map;function i7(e){let[t,r]=f.useState();return pe(()=>{if(!e)return;let n=tc.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${o7++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},tc.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),tc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Bo(e,t,r,n){let o=Ue(r),i=r==null;f.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[e,t,n,i])}function zS(e,t){let r=W0(e,t,"left"),n=W0(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:p,scrollPaddingLeft:g}=getComputedStyle(e),m=a+parseInt(u,10),y=l+parseInt(s,10),v=m+e.clientWidth,b=y+e.clientHeight,E=parseInt(c,10)||0,S=parseInt(p,10)||0,x=parseInt(d,10)||0,A=parseInt(g,10)||0;r<=a+A?a=r-parseInt(u,10)-A:r+o>v-x&&(a+=r+o-v+x),n<=y+E?l=n-parseInt(s,10)-E:n+i>b-S&&(l+=n+i-b+S),e.scrollLeft=a,e.scrollTop=l}function W0(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 V0(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement,l=window.getComputedStyle(a).overflow==="hidden";if(l){let s=r7(e);l||s.push(a);for(let u of s)zS(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,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function KS(e){return e.pointerType===""&&e.isTrusted?!0:Tp()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function a7(e){return!Tp()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function q0(e){let t=f.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var l7="react-aria-clear-focus",s7="react-aria-focus";function GS(e,t=!0){let[r,n]=f.useState(!0),o=r&&t;return pe(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),VS(e,o,f.useCallback(()=>n(!1),[])),o}function WS(e,t){let[r,n]=f.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 VS(e,o,f.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function VS(e,t,r){pe(()=>{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(i=>i.finished)).then(()=>{o||vi.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}var u7=typeof Element<"u"&&"checkVisibility"in Element.prototype;function c7(e){let t=At(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:i}=e.ownerDocument.defaultView,{display:a,visibility:l}=i(e);o=a!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function d7(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 Op(e,t){return u7?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&c7(e)&&d7(e,t)&&(!e.parentElement||Op(e.parentElement,e))}var Rp=["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"],f7=Rp.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Rp.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var p7=Rp.join(':not([hidden]):not([tabindex="-1"]),');function qS(e){return e.matches(f7)&&Op(e)&&!YS(e)}function h7(e){return e.matches(p7)&&Op(e)&&!YS(e)}function YS(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var rc,g7=typeof document<"u"?(rc=h.useInsertionEffect)!==null&&rc!==void 0?rc:h.useLayoutEffect:()=>{};function rs(e,t,r){let[n,o]=f.useState(e||t),i=f.useRef(n),a=f.useRef(e!==void 0),l=e!==void 0;f.useEffect(()=>{a.current,a.current=l},[l]);let s=l?e:n;g7(()=>{i.current=s});let[,u]=f.useReducer(()=>({}),{}),c=f.useCallback((d,...p)=>{let g=typeof d=="function"?d(i.current):d;Object.is(i.current,g)||(i.current=g,o(g),u(),r?.(g,...p))},[r]);return[s,c]}function li(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Dp(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function XS(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function JS(e){let t=f.useRef({isFocused:!1,observer:null});pe(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=Ue(n=>{e?.(n)});return f.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,i=a=>{if(t.current.isFocused=!1,o.disabled){let l=Dp(a);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.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 al=!1;function m7(e){for(;e&&!qS(e);)e=e.parentElement;let t=At(e),r=t.document.activeElement;if(!r||r===e)return;al=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},i=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,ut(r),s()))},a=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,ut(r),s()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),al=!1,n=!1},u=requestAnimationFrame(s);return s}var jn="default",Pd="",Da=new WeakMap;function y7(e){if(Zl()){if(jn==="default"){let t=he(e);Pd=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}jn="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Da.set(e,e.style[t]),e.style[t]="none"}}function Y0(e){if(Zl()){if(jn!=="disabled")return;jn="restoring",setTimeout(()=>{HS(()=>{if(jn==="restoring"){let t=he(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Pd||""),Pd="",jn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Da.has(e)){let t=Da.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Da.delete(e)}}var si=h.createContext({register:()=>{}});si.displayName="PressResponderContext";function b7(e,t){return t.get?t.get.call(e):t.value}function ZS(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function v7(e,t){var r=ZS(e,t,"get");return b7(e,r)}function E7(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function S7(e,t,r){E7(e,t),t.set(e,r)}function x7(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 X0(e,t,r){var n=ZS(e,t,"set");return x7(e,n,r),r}function $7(e){let t=f.useContext(si);if(t){let{register:r,...n}=t;e=re(n,e),r()}return Ap(t,e.ref),e}var ra=new WeakMap,na=class{continuePropagation(){X0(this,ra,!1)}get shouldStopPropagation(){return v7(this,ra)}constructor(e,t,r,n){S7(this,ra,{writable:!0,value:void 0}),X0(this,ra,!0);var o;let i=(o=n?.target)!==null&&o!==void 0?o:r.currentTarget,a=i?.getBoundingClientRect(),l,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),a&&(u!=null&&c!=null?(l=u-a.left,s=c-a.top):(l=a.width/2,s=a.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"),Z0="react-aria-pressable-style",Q0="data-react-aria-pressable";function Ai(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:p,...g}=$7(e),[m,y]=f.useState(!1),v=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:E}=es(),S=Ue((T,M)=>{let H=v.current;if(l||H.didFirePressStart)return!1;let $=!0;if(H.isTriggeringEvent=!0,n){let _=new na("pressstart",M,T);n(_),$=_.shouldStopPropagation}return r&&r(!0),H.isTriggeringEvent=!1,H.didFirePressStart=!0,y(!0),$}),x=Ue((T,M,H=!0)=>{let $=v.current;if(!$.didFirePressStart)return!1;$.didFirePressStart=!1,$.isTriggeringEvent=!0;let _=!0;if(o){let O=new na("pressend",M,T);o(O),_=O.shouldStopPropagation}if(r&&r(!1),y(!1),t&&H&&!l){let O=new na("press",M,T);t(O),_&&(_=O.shouldStopPropagation)}return $.isTriggeringEvent=!1,_}),A=Ue((T,M)=>{let H=v.current;if(l)return!1;if(i){H.isTriggeringEvent=!0;let $=new na("pressup",M,T);return i($),H.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),w=Ue(T=>{let M=v.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&x(qr(M.target,T),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,E(),d||Y0(M.target);for(let H of M.disposables)H();M.disposables=[]}}),C=Ue(T=>{c&&w(T)}),R=Ue(T=>{l||a?.(T)}),L=Ue((T,M)=>{if(!l&&a){let H=new MouseEvent("click",T);XS(H,M),a(Dp(H))}}),I=f.useMemo(()=>{let T=v.current,M={onKeyDown($){if(nc($.nativeEvent,$.currentTarget)&&Ct($.currentTarget,Oe($.nativeEvent))){var _;ey(Oe($.nativeEvent),$.key)&&$.preventDefault();let O=!0;if(!T.isPressed&&!$.repeat){T.target=$.currentTarget,T.isPressed=!0,T.pointerType="keyboard",O=S($,"keyboard");let P=$.currentTarget,k=B=>{nc(B,P)&&!B.repeat&&Ct(P,Oe(B))&&T.target&&A(qr(T.target,B),"keyboard")};b(he($.currentTarget),"keyup",Ti(k,H),!0)}O&&$.stopPropagation(),$.metaKey&&bn()&&((_=T.metaKeyEvents)===null||_===void 0||_.set($.key,$.nativeEvent))}else $.key==="Meta"&&(T.metaKeyEvents=new Map)},onClick($){if(!($&&!Ct($.currentTarget,Oe($.nativeEvent)))&&$&&$.button===0&&!T.isTriggeringEvent&&!vn.isOpening){let _=!0;if(l&&$.preventDefault(),!T.ignoreEmulatedMouseEvents&&!T.isPressed&&(T.pointerType==="virtual"||KS($.nativeEvent))){let O=S($,"virtual"),P=A($,"virtual"),k=x($,"virtual");R($),_=O&&P&&k}else if(T.isPressed&&T.pointerType!=="keyboard"){let O=T.pointerType||$.nativeEvent.pointerType||"virtual",P=A(qr($.currentTarget,$),O),k=x(qr($.currentTarget,$),O,!0);_=P&&k,T.isOverTarget=!1,R($),w($)}T.ignoreEmulatedMouseEvents=!1,_&&$.stopPropagation()}}},H=$=>{var _;if(T.isPressed&&T.target&&nc($,T.target)){var O;ey(Oe($),$.key)&&$.preventDefault();let k=Oe($),B=Ct(T.target,Oe($));x(qr(T.target,$),"keyboard",B),B&&L($,T.target),E(),$.key!=="Enter"&&Pp(T.target)&&Ct(T.target,k)&&!$[J0]&&($[J0]=!0,vn(T.target,$,!1)),T.isPressed=!1,(O=T.metaKeyEvents)===null||O===void 0||O.delete($.key)}else if($.key==="Meta"&&!((_=T.metaKeyEvents)===null||_===void 0)&&_.size){var P;let k=T.metaKeyEvents;T.metaKeyEvents=void 0;for(let B of k.values())(P=T.target)===null||P===void 0||P.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){M.onPointerDown=O=>{if(O.button!==0||!Ct(O.currentTarget,Oe(O.nativeEvent)))return;if(a7(O.nativeEvent)){T.pointerType="virtual";return}T.pointerType=O.pointerType;let P=!0;if(!T.isPressed){T.isPressed=!0,T.isOverTarget=!0,T.activePointerId=O.pointerId,T.target=O.currentTarget,d||y7(T.target),P=S(O,T.pointerType);let k=Oe(O.nativeEvent);"releasePointerCapture"in k&&k.releasePointerCapture(O.pointerId),b(he(O.currentTarget),"pointerup",$,!1),b(he(O.currentTarget),"pointercancel",_,!1)}P&&O.stopPropagation()},M.onMouseDown=O=>{if(Ct(O.currentTarget,Oe(O.nativeEvent))&&O.button===0){if(u){let P=m7(O.target);P&&T.disposables.push(P)}O.stopPropagation()}},M.onPointerUp=O=>{!Ct(O.currentTarget,Oe(O.nativeEvent))||T.pointerType==="virtual"||O.button===0&&!T.isPressed&&A(O,T.pointerType||O.pointerType)},M.onPointerEnter=O=>{O.pointerId===T.activePointerId&&T.target&&!T.isOverTarget&&T.pointerType!=null&&(T.isOverTarget=!0,S(qr(T.target,O),T.pointerType))},M.onPointerLeave=O=>{O.pointerId===T.activePointerId&&T.target&&T.isOverTarget&&T.pointerType!=null&&(T.isOverTarget=!1,x(qr(T.target,O),T.pointerType,!1),C(O))};let $=O=>{if(O.pointerId===T.activePointerId&&T.isPressed&&O.button===0&&T.target){if(Ct(T.target,Oe(O))&&T.pointerType!=null){let P=!1,k=setTimeout(()=>{T.isPressed&&T.target instanceof HTMLElement&&(P?w(O):(ut(T.target),T.target.click()))},80);b(O.currentTarget,"click",()=>P=!0,!0),T.disposables.push(()=>clearTimeout(k))}else w(O);T.isOverTarget=!1}},_=O=>{w(O)};M.onDragStart=O=>{Ct(O.currentTarget,Oe(O.nativeEvent))&&w(O)}}return M},[b,l,u,E,d,w,C,x,S,A,R,L]);return f.useEffect(()=>{if(!p)return;let T=he(p.current);if(!T||!T.head||T.getElementById(Z0))return;let M=T.createElement("style");M.id=Z0,M.textContent=`
651
+ `});let A=s.versions&&Object.keys(s.versions).length?s.versions:m.versions;await i.setRef(u,{id:u,url:b.url,...m,...A?{versions:A}:{},type:m.storyIndex?"lazy":"auto-inject"})},getRefs:()=>{let{refs:s={}}=e.getState();return s},setRef:async(s,{storyIndex:u,setStoriesData:c,...d},p=!1)=>{if(r)return;let g,m,y,{filters:v}=e.getState(),{storyMapper:b=KE}=t.getConfig(),E=i.getRefs()[s];(u||c)&&(g=c?Q6(lL(c,E,{storyMapper:b})):u,y=tl(u,{provider:t,docsOptions:n,filters:v,allStatuses:{}}),m=tl(u,{provider:t,docsOptions:n,filters:{},allStatuses:{}})),m&&(m=C0(m,E),m=_0(m,E?.storyUpdates)),y&&(y=C0(y,E),y=_0(y,E?.storyUpdates)),await i.updateRef(s,{...E,...d,index:m,filteredIndex:y,internal_index:g})},updateRef:async(s,u)=>{let{[s]:c,...d}=i.getRefs();d[s]={...c,...u};let p=Object.keys(l).reduce((g,m)=>(g[m]=d[m],g),{});await e.setState({refs:p})}},a=!r&&HE.REFS||{},l=a;return o&&new Promise(async s=>{for(let u of Object.values(a))await i.checkRef({...u,stories:{}});s(void 0)}),{api:i,state:{refs:l}}},yt=(e,t)=>{let{source:r,refId:n,type:o}=e,[i,a]=zE(r,n),l;(n||i==="external")&&(l=n&&t.getRefs()[n]?t.getRefs()[n]:t.findRef(a));let s={source:r,sourceType:i,sourceLocation:a,refId:n,ref:l,type:o};switch(!0){case typeof n=="string":case i==="local":case i==="external":return s;default:return Y6.warn(`Received a ${o} frame that was not configured as a ref`),null}},uL=({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(a){r.channel?.emit(q6,{globals:a,options:{target:"storybook-preview-iframe"}})}},o={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},i=({globals:a,storyGlobals:l,userGlobals:s})=>{let{globals:u,userGlobals:c,storyGlobals:d}=e.getState();tr(a,u)||e.setState({globals:a}),tr(s,c)||e.setState({userGlobals:s}),tr(l,d)||e.setState({storyGlobals:l})};return r.channel?.on(W6,function({globals:a,storyGlobals:l,userGlobals:s}){let{ref:u}=yt(this,t);u?x0.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):i({globals:a,storyGlobals:l,userGlobals:s})}),r.channel?.on(V6,function({globals:a,globalTypes:l}){let{ref:s}=yt(this,t),u=e.getState()?.userGlobals;s?Object.keys(a).length>0&&x0.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:a,userGlobals:a,globalTypes:l}),u&&Object.keys(u).length!==0&&!tr(a,u)&&n.updateGlobals(u)}),{api:n,state:o}},vp={};Ve(vp,{ActiveTabs:()=>WE,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>rl,DEFAULT_NAV_SIZE:()=>ai,DEFAULT_RIGHT_PANEL_WIDTH:()=>nl,focusableUIElements:()=>Yt,getDefaultLayoutState:()=>VE,init:()=>pL,isPagesViewMode:()=>fL});const{SET_CONFIG:cL}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:dL}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:GE}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var{document:Qi}=dL,ju=e=>typeof e=="function",WE={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},fL=e=>e!==void 0&&e!=="story"&&e!=="docs"&&e!=="review",ai=300,rl=300,nl=400,VE=()=>({ui:{enableShortcuts:!0},layout:{initialActive:WE.CANVAS,navSize:ai,bottomPanelHeight:rl,rightPanelWidth:nl,recentVisibleSizes:{navSize:ai,bottomPanelHeight:rl,rightPanelWidth:nl},panelPosition:"bottom",showNav:!0,showPanel:!0,showTabs:!0,showToolbar:!0},layoutCustomisations:{showPanel:void 0,showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:hv()}),Yt={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"},Ta=e=>e.layout.navSize>0,_d=e=>{let{bottomPanelHeight:t,rightPanelWidth:r,panelPosition:n}=e.layout;return n==="bottom"&&t>0||n==="right"&&r>0},A0=e=>!Ta(e)&&!_d(e),Bn=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}),O0=(e,t,r)=>{let n=Object.keys(e),o=Yo(t,n);for(let u of Object.keys(o))GE(`Calling \`setConfig({ ${u}: ... })\` is deprecated. Please call \`setConfig({ layout: { ${u}: ... } })\` instead.`);let i=Ha(o,t.layout||{}),{showPanel:a,showNav:l}=i,s=Ha(e,Yo(i,n));return l===!1||r?(s.recentVisibleSizes=Bn(s),s.navSize=0):l===!0&&(s.navSize=s.recentVisibleSizes.navSize),a===!1?(s.recentVisibleSizes=Bn(s),s.bottomPanelHeight=0,s.rightPanelWidth=0):a===!0&&(s.bottomPanelHeight=s.recentVisibleSizes.bottomPanelHeight,s.rightPanelWidth=s.recentVisibleSizes.rightPanelWidth),s},R0=(e,t)=>{let r=Object.keys(e),n=Yo(t,r);for(let i of Object.keys(n))GE(`Calling \`setConfig({ ${i}: ... })\` is deprecated. Please call \`setConfig({ ui: { ${i}: ... } })\` instead.`);let o=r;return Ha(e,Yo(Ha(n,t.ui||{}),o))},pL=({store:e,provider:t,singleStory:r})=>{let n={toggleFullscreen(i){return e.setState(a=>{let l=A0(a),s=typeof i=="boolean"?i:!l;return s===l?{layout:a.layout}:s?{layout:{...a.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Bn(a.layout)}}:{layout:{...a.layout,navSize:a.singleStory?0:a.layout.recentVisibleSizes.navSize,bottomPanelHeight:a.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:a.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(i){return e.setState(a=>{let l=_d(a),s=typeof i=="boolean"?i:!l;return s===l?{layout:a.layout}:s?{layout:{...a.layout,bottomPanelHeight:a.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:a.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...a.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Bn(a.layout)}}},{persistence:"session"})},togglePanelPosition(i){return e.setState(a=>{let l=i||(a.layout.panelPosition==="right"?"bottom":"right");return{layout:{...a.layout,panelPosition:l,bottomPanelHeight:a.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:a.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(i){return e.setState(a=>{if(a.singleStory)return{layout:a.layout};let l=Ta(a),s=typeof i=="boolean"?i:!l;return s===l?{layout:a.layout}:s?{layout:{...a.layout,navSize:a.layout.recentVisibleSizes.navSize}}:{layout:{...a.layout,navSize:0,recentVisibleSizes:Bn(a.layout)}}},{persistence:"session"})},toggleToolbar(i){return e.setState(a=>{let l=typeof i<"u"?i:!a.layout.showToolbar;return{layout:{...a.layout,showToolbar:l}}},{persistence:"session"})},setSizes({navSize:i,bottomPanelHeight:a,rightPanelWidth:l}){return e.setState(s=>{let u={...s.layout,navSize:i??s.layout.navSize,bottomPanelHeight:a??s.layout.bottomPanelHeight,rightPanelWidth:l??s.layout.rightPanelWidth};return{layout:{...u,recentVisibleSizes:Bn(u)}}},{persistence:"session"})},focusOnUIElement(i,a){let{forceFocus:l=!1,select:s=!1,poll:u=!0}=typeof a=="boolean"?{select:a}:a??{};if(!i)return!1;let c=()=>{let d=Qi.getElementById(i);return!d||(d.focus(),d!==Qi.activeElement&&l&&d.getAttribute("tabindex")===null&&(d.setAttribute("tabindex","-1"),d.focus()),d!==Qi.activeElement&&d.id!==Qi.activeElement?.id)?!1:(s&&d.select?.(),!0)};return c()?!0:u?new Promise(d=>{let p=Date.now(),g=500,m=setInterval(()=>{let y=Date.now()-p;if(c()){clearInterval(m),d(!0);return}y>=g&&(clearInterval(m),d(!1))},50)}):!1},getInitialOptions(){let i=t.getConfig(),a=VE(),{theme:l,selectedPanel:s,layoutCustomisations:u}=i;return{...a,layout:O0(a.layout,i,!!r),layoutCustomisations:{...a.layoutCustomisations,...u??{}},ui:R0(a.ui,i),selectedPanel:s||a.selectedPanel,theme:l||a.theme}},getIsFullscreen(){return A0(e.getState())},getIsPanelShown(){return _d(e.getState())},getIsNavShown(){return Ta(e.getState())},getNavAvailability(){let i=e.getState();return nE(i.path,i.customQueryParams)?"unavailable":Ta(i)?"shown":"hidden"},getShowToolbarWithCustomisations(i){let a=e.getState();return ju(a.layoutCustomisations.showToolbar)?a.layoutCustomisations.showToolbar(a,i)??i:i},getShowPanelWithCustomisations(i){let a=e.getState();return ju(a.layoutCustomisations.showPanel)?a.layoutCustomisations.showPanel(a,i)??i:i},getNavSizeWithCustomisations(i){let a=e.getState();if(ju(a.layoutCustomisations.showSidebar)){let l=a.layoutCustomisations.showSidebar(a,i!==0);if(i===0&&l===!0)return a.layout.recentVisibleSizes.navSize;if(i!==0&&l===!1)return 0}return i},setOptions:i=>{let{layout:a,ui:l,selectedPanel:s,theme:u}=e.getState();if(!i)return;let c=O0(a,i,!!r),d=R0(l,i),p={...u,...i.theme},g={};Zt(l,d)||(g.ui=d),Zt(a,c)||(g.layout=c),i.selectedPanel&&!Zt(s,i.selectedPanel)&&(g.selectedPanel=i.selectedPanel),Object.keys(g).length&&e.setState(g,{persistence:"permanent"}),Zt(u,p)||e.setState({theme:p})}},o=Yo(e.getState(),["layout","selectedPanel"]);return t.channel?.on(cL,()=>{n.setOptions(pn(n.getInitialOptions(),o))}),{api:n,state:pn(n.getInitialOptions(),o)}},qE={};Ve(qE,{init:()=>hL});var hL=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=$m(r,i=>i.id===t.id);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:[...o,t]}})},clearNotification:t=>{e.setState(({notifications:r})=>{let[n,o]=$m(r,i=>i.id===t);return n.forEach(i=>{i.onClear&&i.onClear({dismissed:!1,timeout:!1})}),{notifications:o}})}},state:{notifications:[]}}),YE={};Ve(YE,{init:()=>mL});const{OPEN_IN_EDITOR_REQUEST:gL,OPEN_IN_EDITOR_RESPONSE:Hu}=__STORYBOOK_MODULE_CORE_EVENTS__;var mL=({provider:e,fullAPI:t})=>({api:{openInEditor(r){return new Promise(n=>{let{file:o,line:i,column:a}=r,l=s=>{s.file===o&&s.line===i&&s.column===a&&(e.channel?.off(Hu,l),n(s))};e.channel?.on(Hu,l),e.channel?.emit(gL,r)})}},state:{notifications:[]},init:async()=>{let{color:r}=await Nr(async()=>{const{color:n}=await Promise.resolve().then(()=>ZP);return{color:n}},void 0,import.meta.url);e.channel?.on(Hu,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(V2,{color:r.negative}),duration:8e3})})}}),XE={};Ve(XE,{init:()=>yL});var yL=({provider:e})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{}}),JE={};Ve(JE,{init:()=>bL});var bL=({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}})}}}),ZE={};Ve(ZE,{controlOrMetaKey:()=>Fn,defaultShortcuts:()=>Ln,init:()=>IL,isMacLike:()=>eS,keys:()=>Td});var vL=vt(L6(),1);const{FORCE_REMOUNT:EL,PREVIEW_KEYDOWN:SL,STORIES_COLLAPSE_ALL:xL,STORIES_EXPAND_ALL:$L}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:QE}=__STORYBOOK_MODULE_GLOBAL__,{global:wL}=__STORYBOOK_MODULE_GLOBAL__;var{navigator:Uu}=wL,CL=()=>Uu&&Uu.platform?!!Uu.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,_L=()=>CL()?"⌥":"alt",TL=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 i=e.key.toUpperCase(),a=o;a&&a.length===1&&a!==i?t.push([i,a]):t.push(i)}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},AL=(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]),OL=e=>e==="alt"?_L():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(),RL=e=>e.map(OL).join(" "),DL=e=>e.map(t=>t==="+"?"plus":t===" "?"space":t).join("+"),{navigator:zu,document:Ir}=QE;function D0(e){return Ir.activeElement&&e?.contains(Ir.activeElement)}var eS=()=>zu&&zu.platform?!!zu.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Fn=()=>eS()?"meta":"control";function Td(e){return Object.keys(e)}var Ln=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[Fn(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[Fn(),"shift",","],aboutPage:[Fn(),","],escape:["escape"],collapseAll:[Fn(),"shift","ArrowUp"],expandAll:[Fn(),"shift","ArrowDown"],remount:["alt","R"],openInEditor:["alt","shift","E"],openInIsolation:["alt","shift","I"],copyStoryLink:["alt","shift","L"],goToPreviousLandmark:["shift","F6"],goToNextLandmark:["F6"]}),Ku={};function PL(e){let t=e.target;return!!(/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null||t.closest("dialog[open]"))}var IL=({store:e,fullAPI:t,provider:r})=>{let n={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...Ln,...n.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return Ku},getAddonsShortcutLabels(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{label:s}])=>{a[l]=s}),a},getAddonsShortcutDefaults(){let a={};return Object.entries(n.getAddonsShortcuts()).forEach(([l,{defaultShortcut:s}])=>{a[l]=s}),a},async setShortcuts(a){let{shortcuts:l}=await e.setState(s=>({shortcuts:typeof a=="function"?a(s.shortcuts):a}),{persistence:"permanent"});return l},async restoreAllDefaultShortcuts(){return n.setShortcuts(n.getDefaultShortcuts())},async setShortcut(a,l){return await n.setShortcuts(s=>({...s,[a]:l})),l},async setAddonShortcut(a,l){return await n.setShortcuts(s=>({...s,[`${a}-${l.actionName}`]:l.defaultShortcut})),Ku[`${a}-${l.actionName}`]=l,l},async restoreDefaultShortcut(a){let l=n.getDefaultShortcuts()[a];return n.setShortcut(a,l)},handleKeydownEvent(a){let l=TL(a),s=n.getShortcutKeys(),u=Td(s).find(c=>AL(l,s[c]));u&&n.handleShortcutFeature(u,a)},handleShortcutFeature(a,l){let s=e.getState(),{ui:{enableShortcuts:u},storyId:c,refId:d,viewMode:p}=s;if(!u)return;let g=t.getNavAvailability()==="unavailable",m=["focusNav","search","toggleNav"].includes(a);if(!(g&&m))switch(l?.preventDefault&&l.preventDefault(),a){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(Yt.storyListMenu);break}case"search":{t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(Yt.storySearchField,!0)},0);break}case"focusIframe":{let y=Ir.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(Yt.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=Ir.getElementById(Yt.addonPanel);t.togglePanel(),y&&D0(v)&&t.focusOnUIElement(Yt.showAddonPanel,{poll:!0}).then(b=>{b===!1&&Ir.body.focus()}),y||t.focusOnUIElement(Yt.addonPanel,{forceFocus:!0,poll:!0});break}case"toggleNav":{let y=t.getIsNavShown(),v=Ir.getElementById(Yt.sidebarRegion);t.toggleNav(),y&&D0(v)&&t.focusOnUIElement(Yt.showSidebar,{poll:!0}).then(b=>{b===!1&&Ir.body.focus()}),y||t.focusOnUIElement(Yt.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(xL);break}case"expandAll":{t.emit($L);break}case"remount":{t.emit(EL,{storyId:c});break}case"openInEditor":{QE.CONFIG_TYPE==="DEVELOPMENT"&&t.openInEditor({file:t.getCurrentStoryData().importPath});break}case"openInIsolation":{if(c&&p==="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,vL.default)(y)}break}default:Ku[a].action();break}}},{shortcuts:o=Ln}=e.getState(),i={shortcuts:Td(Ln).reduce((a,l)=>({...a,[l]:o[l]||Ln[l]}),Ln)};return{api:n,state:i,init:()=>{Ir.addEventListener("keydown",a=>{PL(a)||n.handleKeydownEvent(a)}),r.channel?.on(SL,a=>{n.handleKeydownEvent(a.event)})}}},tS={};Ve(tS,{init:()=>c8});const{logger:FL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:LL,CURRENT_STORY_WAS_SET:kL,DOCS_PREPARED:NL,PRELOAD_ENTRIES:ML,RESET_STORY_ARGS:BL,SELECT_STORY:jL,SET_CONFIG:HL,SET_CURRENT_STORY:UL,SET_FILTER:zL,SET_INDEX:KL,SET_STORIES:GL,SIDEBAR_FILTER_CHANGED:WL,STORY_ARGS_UPDATED:VL,STORY_CHANGED:qL,STORY_INDEX_INVALIDATED:YL,STORY_MISSING:XL,STORY_PREPARED:JL,STORY_SPECIFIED:ZL,UPDATE_STORY_ARGS:QL}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:rS}=__STORYBOOK_MODULE_GLOBAL__;var nS=(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("&")},oS=(e,t)=>{let r=f.useRef(t?t(e.getState()):e.getState()),n=f.useCallback(i=>e.onStateChange((a,l)=>{if(!t){r.current=a,i();return}let s=t(a),u=t(l);!Zt(s,u)&&(r.current=s,i())}),[e,t]),o=f.useCallback(()=>{let i=e.getState(),a=t?t(i):i;return Zt(a,r.current)||(r.current=a),r.current},[e,t]);return[f.useSyncExternalStore(n,o),e.setState]},e8=s3({universalStatusStore:Yf.create({...a3,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:oS,environment:"manager"}),{fullStatusStore:Aa}=e8,iS=(e,t)=>{if(!e)return{included:[],excluded:[]};let r=[],n=[];return e.split(";").forEach(o=>{if(!o)return;let i=o.startsWith("!"),a=t(i?o.slice(1):o);a!=null&&(i?n.push(a):r.push(a))}),{included:r,excluded:n}},t8=e=>iS(e,i3),r8=(e,t)=>{if(!e.length&&!t.length)return;let r=e.map(o=>hm(o)).sort(),n=t.map(o=>`!${hm(o)}`).sort();return[...r,...n].join(";")},Gu=(e,t)=>r=>{if(!e.length&&!t.length)return!0;let n=(Aa.getAll()??{})[r.id],o=n?Object.values(n).map(l=>l.value):[],i=!e.length||e.some(l=>o.includes(l)),a=!t.length||t.every(l=>!o.includes(l));return i&&a},n8=vt(Sn(),1),aS={$docs:"_docs",$play:"_play",$test:"_test"},o8=e=>iS(e,t=>aS[t]??t),i8=(e,t)=>{if(!e.length&&!t.length)return"";let r=Object.fromEntries(Object.entries(aS).map(([i,a])=>[a,i])),n=e.map(i=>r[i]??i).sort(),o=t.map(i=>`!${r[i]??i}`).sort();return[...n,...o].join(";")},a8=(0,n8.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)}}),P0=e=>{let t=Object.entries(e).reduce((r,n)=>{let[o,i]=n;return i.excludeFromSidebar&&(r[o]=!0),r},{});return r=>{let n=r.tags??[],o=r.type==="docs"&&!n.includes(kr.ATTACHED_MDX)&&!n.includes(kr.UNATTACHED_MDX);return(n.includes(kr.DEV)||o)&&n.filter(i=>t[i]).length===0}},Wu=(e,t)=>{let r=n=>Object.values(n.reduce((o,i)=>(Object.hasOwn(Wa,i)?o["built-in"].push(Wa[i]):o.user.push(aT(i)),o),{"built-in":[],user:[]})).filter(o=>o.length>0);return n=>{let o=r(e),i=r(t);return(!o.length||o.every(a=>a.some(l=>l(n,!1))))&&(!i.length||i.every(a=>a.every(l=>l(n,!0))))}},{fetch:l8}=rS,s8="./index.json",Vu="tags-filter",I0="static-filter",ea="status-filter",Dn=new Set(Object.keys(Wa)),u8=["enableShortcuts","theme","showRoots"];function qu(e){if(!e||typeof e=="string")return e;let t={...e};return u8.forEach(r=>{r in t&&delete t[r]}),t}var F0={tag:{included:"includedTagFilters",excluded:"excludedTagFilters"},status:{included:"includedStatusFilters",excluded:"excludedStatusFilters"}},c8=({fullAPI:e,store:t,navigate:r,provider:n,state:{location:o}={},storyId:i,viewMode:a,docsOptions:l={}})=>{let s=($,_)=>{let{customQueryParams:O}=t.getState();r(nS($,O??{}),_)},u=$=>t.setState($,{persistence:"url",serialize:_=>{let O=i8(_.includedTagFilters,_.excludedTagFilters),P=r8(_.includedStatusFilters,_.excludedStatusFilters);return{tags:O??null,statuses:P??null}}}),c=!1,d=async($,_,O)=>{let{included:P,excluded:k}=F0[$],B=t.getState(),N=new Set(B[P]),D=new Set(B[k]);for(let j of _){let[K,U]=O?[D,N]:[N,D];U.delete(j),K.add(j)}await u({[P]:Array.from(N),[k]:Array.from(D)})},p=async($,_)=>{let{included:O,excluded:P}=F0[$],k=t.getState(),B=new Set(_);await u({[O]:k[O].filter(N=>!B.has(N)),[P]:k[P].filter(N=>!B.has(N))})},g=($,_)=>{let O=t.getState(),P=(O.includedTagFilters??[]).filter(U=>Dn.has(U)),k=(O.excludedTagFilters??[]).filter(U=>Dn.has(U)),B=!!globalThis?.FEATURES?.changeDetection,N=B?O.includedStatusFilters??[]:[],D=B?O.excludedStatusFilters??[]:[],j={},K=O.internal_index?Object.values(O.internal_index.entries):[];for(let U of new Set([...P,...k])){let z=Wa[U];j[U]=K.filter(W=>z(W)).length}if(N.length>0||D.length>0){let U=l3(Aa.getAll());for(let z of new Set([...N,...D]))U[z]!==void 0&&(j[z]=U[z])}n.channel?.emit(WL,{trigger:$,changed:_,activeTagFilters:{included:P,excluded:k},activeStatusFilters:{included:N,excluded:D},storyCounts:j})},m={storyId:qi,getData:($,_)=>{let O=m.resolveStory($,_);if(O?.type==="story"||O?.type==="docs")return O},isPrepared:($,_)=>{let O=m.getData($,_);return O?O.type==="story"?O.prepared:!0:!1},resolveStory:($,_)=>{let{refs:O,index:P}=t.getState();if(!(_&&!O[_]))return _?O?.[_]?.index?.[$]??void 0:P?P[$]:void 0},getCurrentStoryData:()=>{let{storyId:$,refId:_}=t.getState();return m.getData($,_)},getIndex:()=>{let{internal_index:$}=t.getState();return $},getParameters:($,_)=>{let{storyId:O,refId:P}=typeof $=="string"?{storyId:$,refId:void 0}:$,k=m.getData(O,P);if(["story","docs"].includes(k?.type)){let{parameters:B}=k;if(B)return _?B[_]:B}return null},getCurrentParameter:$=>{let{storyId:_,refId:O}=t.getState();return m.getParameters({storyId:_,refId:O},$)||void 0},jumpToComponent:$=>{let{filteredIndex:_,storyId:O,refs:P,refId:k}=t.getState();if(!m.getData(O,k))return;let B=k?P[k].filteredIndex||{}:_;if(!B)return;let N=m.findSiblingStoryId(O,B,$,!0);N&&m.selectStory(N,void 0,{ref:k})},jumpToStory:$=>{let{filteredIndex:_,storyId:O,refs:P,refId:k}=t.getState(),B=m.getData(O,k);if(!B)return;let N=B.refId?P[B.refId].filteredIndex:_;if(!N)return;let D=m.findSiblingStoryId(O,N,$,!1);D&&m.selectStory(D,void 0,{ref:k})},selectFirstStory:()=>{let $=t.getState(),{filteredIndex:_}=$;if(_){let k=Object.keys(_).find(B=>_[B].type==="story");k&&m.selectStory(k);return}let{index:O}=$;if(!O)return;let P=Object.keys(O).find(k=>O[k].type==="story");if(P){m.selectStory(P);return}s("/")},selectStory:($=void 0,_=void 0,O={})=>{let{ref:P}=O,{storyId:k,index:B,filteredIndex:N,refs:D,settings:j}=t.getState(),K=G=>G?.type==="docs"||G?.type==="story"?(t.setState({settings:{...j,lastTrackedStoryId:G.id}}),s(`/${G.type}/${G.refId?`${G.refId}_${G.id}`:G.id}`),!0):!1,U=k?.split("--",2)[0],z=P?D[P].index:B,W=P?D[P].filteredIndex:N;if(!(!z||!W))if(_)if(!$)K(z[qi(U,_)]);else{let G=P?`${P}_${qi($,_)}`:qi($,_);if(z[G])K(z[G]);else{let X=z[qn($)];if(X?.type==="component"){let ie=X.children.find(Re=>z[Re].name===_);K(ie?z[ie]:void 0)}}}else{let G=$?z[$]||z[qn($)]:z[U];if(!G)throw new Error(`Unknown id or title: '${$}'`);K(G)||K(m.findLeafEntry(W,G.id))}},findLeafEntry($,_){let O=$[_];if(!O)return;if(O.type==="docs"||O.type==="story")return O;let P=O.children.find(k=>$[k]);return P?m.findLeafEntry($,P):void 0},findLeafStoryId($,_){return m.findLeafEntry($,_)?.id},findAllLeafStoryIds($){let{index:_}=t.getState();if(!_)return[];let O=(P,k=[])=>{let B=_[P];return B&&(B.type==="story"&&k.push(B.id),"children"in B&&B.children?.forEach(N=>O(N,k))),k};return O($,[])},findSiblingStoryId($,_,O,P){if(P){let N=nL(_),D=N.findIndex(j=>j.includes($));return D===N.length-1&&O>0||D===0&&O<0?void 0:N[D+O]?N[D+O][0]:void 0}let k=oL(_),B=k.indexOf($);if(!(B===k.length-1&&O>0)&&!(B===0&&O<0))return k[B+O]},updateStoryArgs:($,_)=>{let{id:O,refId:P}=$;n.channel?.emit(QL,{storyId:O,updatedArgs:_,options:{target:P}})},resetStoryArgs:($,_)=>{let{id:O,refId:P}=$;n.channel?.emit(BL,{storyId:O,argNames:_,options:{target:P}})},fetchIndex:async()=>{try{let $=await l8(s8);if($.status!==200)throw new Error(await $.text());let _=await $.json();if(_.v<3){FL.warn(`Skipping story index with version v${_.v}, awaiting SET_STORIES.`);return}await m.setIndex(_)}catch($){await t.setState({indexError:$})}},setIndex:async $=>{let{filteredIndex:_,index:O,filters:P}=t.getState(),k=Aa.getAll(),B=tl($,{provider:n,docsOptions:l,filters:P,allStatuses:k,statusFilterKey:ea}),N=tl($,{provider:n,docsOptions:l,filters:{},allStatuses:k});await t.setState({internal_index:$,filteredIndex:$0(B,_),index:$0(N,O),indexError:void 0})},updateStory:async($,_,O)=>{if(O){let{id:P,index:k,filteredIndex:B}=O,N={...O.storyUpdates,[$]:{...O.storyUpdates?.[$],..._}};k&&k[$]&&(k[$]={...k[$],..._}),B&&B[$]&&(B[$]={...B[$],..._}),await e.updateRef(P,{index:k,filteredIndex:B,storyUpdates:N})}else{let{index:P,filteredIndex:k}=t.getState();P&&P[$]&&(P[$]={...P[$],..._}),k&&k[$]&&(k[$]={...k[$],..._}),(P||k)&&await t.setState({index:P,filteredIndex:k})}},updateDocs:async($,_,O)=>{if(O){let{id:P,index:k,filteredIndex:B}=O,N={...O.storyUpdates,[$]:{...O.storyUpdates?.[$],..._}};k&&k[$]&&(k[$]={...k[$],..._}),B&&B[$]&&(B[$]={...B[$],..._}),await e.updateRef(P,{index:k,filteredIndex:B,storyUpdates:N})}else{let{index:P,filteredIndex:k}=t.getState();P&&(P[$]={...P[$],..._}),k&&(k[$]={...k[$],..._}),(P||k)&&await t.setState({index:P,filteredIndex:k})}},setPreviewInitialized:async $=>{$?e.updateRef($.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async($,_)=>{await t.setState(k=>({filters:{...k.filters,[$]:_}}));let{internal_index:O}=t.getState();if(!O)return;await m.setIndex(O);let P=await e.getRefs();for(let[k,{internal_index:B,...N}]of Object.entries(P))await e.setRef(k,{...N,storyIndex:B},!0);n.channel?.emit(zL,{id:$})},resetTagFilters:async()=>{await u($=>({includedTagFilters:$.defaultIncludedTagFilters,excludedTagFilters:$.defaultExcludedTagFilters})),await y()},setAllTagFilters:async($,_)=>{await u({includedTagFilters:$,excludedTagFilters:_}),await y()},addTagFilters:async($,_)=>{await d("tag",$,_),await y(),$.length===1&&Dn.has($[0])&&g("interaction",{filterType:"tag",filterId:$[0],action:_?"exclude":"include"})},removeTagFilters:async $=>{await p("tag",$),await y(),$.length===1&&Dn.has($[0])&&g("interaction",{filterType:"tag",filterId:$[0],action:"remove"})},resetStatusFilters:async()=>{await u({includedStatusFilters:[],excludedStatusFilters:[]}),await v()},setAllStatusFilters:async($,_)=>{let O=t.getState(),P=new Set(O.includedStatusFilters??[]),k=new Set(O.excludedStatusFilters??[]),B=new Set($),N=new Set(_);await u({includedStatusFilters:$,excludedStatusFilters:_}),await v();let D=new Set([...P,...k,...B,...N]);for(let j of D){let K=P.has(j),U=k.has(j),z=B.has(j),W=N.has(j);if(K===z&&U===W)continue;let G;z?G="include":W?G="exclude":G="remove",g("interaction",{filterType:"status",filterId:j,action:G})}},addStatusFilters:async($,_)=>{await d("status",$,_),await v(),$.length===1&&g("interaction",{filterType:"status",filterId:$[0],action:_?"exclude":"include"})},removeStatusFilters:async $=>{await p("status",$),await v(),$.length===1&&g("interaction",{filterType:"status",filterId:$[0],action:"remove"})}},y=()=>{let{includedTagFilters:$,excludedTagFilters:_}=t.getState();return m.experimental_setFilter(Vu,Wu($,_))},v=()=>{let{includedStatusFilters:$,excludedStatusFilters:_}=t.getState();return m.experimental_setFilter(ea,Gu($??[],_??[]))};n.channel?.on(ZL,function({storyId:$,viewMode:_}){let{sourceType:O}=yt(this,e);if(O==="local"){let P=t.getState(),k=!nE(P.path,P.customQueryParams)&&(P.path==="/"||P.viewMode==="story"||P.viewMode==="docs"),B=P.viewMode&&P.storyId,N=P.viewMode!==_||P.storyId!==$,{type:D}=P.index?.[P.storyId]||{},j=!(D==="root"||D==="component"||D==="group");if(k){let{filteredIndex:K}=P;if(K&&!B&&K[$]?.type!=="story"){let U=K?Object.keys(K).find(z=>{let W=K[z];return W.type==="story"||W.type==="docs"}):void 0;U&&s(`/${_}/${U}`);return}B&&N&&j?n.channel?.emit(UL,{storyId:P.storyId,viewMode:P.viewMode}):N&&s(`/${_}/${$}`)}}}),n.channel?.on(kL,function(){let{ref:$}=yt(this,e);m.setPreviewInitialized($)}),n.channel?.on(qL,function(){let{sourceType:$}=yt(this,e);if($==="local"){let _=m.getCurrentParameter("options");_&&e.setOptions(qu(_))}}),n.channel?.on(JL,function({id:$,..._}){let{ref:O,sourceType:P}=yt(this,e);if(m.updateStory($,{..._,prepared:!0},O),!O&&!t.getState().hasCalledSetOptions){let{options:k}=_.parameters;e.setOptions(qu(k)),t.setState({hasCalledSetOptions:!0})}if(P==="local"){let{storyId:k,index:B,refId:N}=t.getState();if(!B)return;let D=Array.from(new Set([m.findSiblingStoryId(k,B,1,!0),m.findSiblingStoryId(k,B,-1,!0)])).filter(Boolean);n.channel?.emit(ML,{ids:D,options:{target:N}})}}),n.channel?.on(NL,function({id:$,..._}){let{ref:O}=yt(this,e);m.updateStory($,{..._,prepared:!0},O)}),n.channel?.on(KL,function($){let{ref:_}=yt(this,e);if(_)e.setRef(_.id,{..._,storyIndex:$},!0);else{m.setIndex($);let O=m.getCurrentParameter("options");e.setOptions(qu(O))}}),n.channel?.on(GL,function($){let{ref:_}=yt(this,e),O=$.v?Z6($):$.stories;if(_)e.setRef(_.id,{..._,setStoriesData:O},!0);else throw new Error("Cannot call SET_STORIES for local frame")}),n.channel?.on(jL,function({kind:$,title:_=$,story:O,name:P=O,storyId:k,...B}){let{ref:N}=yt(this,e);N?e.selectStory(k||_,P,{...B,ref:N.id}):e.selectStory(k||_,P,B)}),n.channel?.on(VL,function({storyId:$,args:_}){let{ref:O}=yt(this,e);m.updateStory($,{args:_},O)}),n.channel?.on(LL,function($){let{ref:_}=yt(this,e);m.setPreviewInitialized(_)}),n.channel?.on(XL,function($){let{ref:_}=yt(this,e);m.setPreviewInitialized(_)}),n.channel?.on(HL,()=>{let $=n.getConfig()?.sidebar?.filters||{},{includedTagFilters:_,excludedTagFilters:O,includedStatusFilters:P,excludedStatusFilters:k,tagPresets:B}=t.getState();t.setState(({filters:N})=>({filters:{...N,...$,[I0]:P0(B),[Vu]:Wu(_,O),[ea]:Gu(P,k)}}))}),Aa.onAllStatusChange(async()=>{v();let{internal_index:$}=t.getState();if(!$)return;await m.setIndex($);let _=await e.getRefs();Object.entries(_).forEach(([O,{internal_index:P,...k}])=>{e.setRef(O,{...k,storyIndex:P},!0)})});let b=n.getConfig()?.sidebar?.filters||{},E=rS.TAGS_OPTIONS||{},S=a8(E),{tags:x,statuses:A}=lp(o??{search:""}),w=o8(x),C=x!==void 0,R=C?w.included:S.included,L=C?w.excluded:S.excluded,I=t8(A),T=I.included,M=I.excluded,H={...b,[I0]:P0(E),[Vu]:Wu(R,L),[ea]:Gu(T,M)};return{api:m,state:{storyId:i,viewMode:a,hasCalledSetOptions:!1,previewInitialized:!1,filters:H,tagPresets:E,defaultIncludedTagFilters:S.included,defaultExcludedTagFilters:S.excluded,includedTagFilters:R,excludedTagFilters:L,includedStatusFilters:T,excludedStatusFilters:M},init:async()=>{if(n.channel?.on(YL,()=>m.fetchIndex()),await m.fetchIndex(),c)return;c=!0;let $=R.some(O=>Dn.has(O))||L.some(O=>Dn.has(O)),_=!!globalThis?.FEATURES?.changeDetection&&(T.length>0||M.length>0);($||_)&&g("url")}}},lS={};Ve(lS,{getCustomQueryParams:()=>Ep,init:()=>b8});const{GLOBALS_UPDATED:d8,NAVIGATE_URL:f8,SET_CURRENT_STORY:p8,STORY_ARGS_UPDATED:h8,UPDATE_QUERY_PARAMS:g8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Pn}=__STORYBOOK_MODULE_GLOBAL__;var Vr=e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},L0=e=>Object.fromEntries(e.split(";").map(t=>t.split(":")).map(([t,r])=>[t,encodeURIComponent(r)]).filter(([t,r])=>t&&r)),k0=(e,t)=>{let r=L0(e),n=L0(t);return Object.entries({...r,...n}).map(([o,i])=>`${o}:${i}`).join(";")},m8=["full","panel","nav","shortcuts","addonPanel","tabs","path"],Ep=e=>zc(lp(e),m8),Yu,y8=({state:{location:e,path:t,viewMode:r,storyId:n},singleStory:o})=>{let{full:i,panel:a,nav:l,shortcuts:s,addonPanel:u,tabs:c}=lp(e),d,p,g;Vr(i)===!0?(d=0,p=0,g=0):Vr(i)===!1&&(d=ai,p=rl,g=nl),o||(Vr(l)===!0&&(d=ai),Vr(l)===!1&&(d=0)),Vr(a)===!1&&(p=0,g=0);let m={navSize:d,bottomPanelHeight:p,rightPanelWidth:g,panelPosition:["right","bottom"].includes(a)?a:void 0,showTabs:Vr(c)},y={enableShortcuts:Vr(s)},v=u||void 0,b=n,E=Ep(e),S=tr(Yu,E)?Yu:E;return Yu=S,{viewMode:r,layout:m,ui:y,selectedPanel:v,location:e,path:t,customQueryParams:S,storyId:b}},b8=e=>{let{store:t,navigate:r,provider:n,fullAPI:o}=e,i=(u,c={},d={})=>r(nS(u,c),d),a={getStoryHrefs(u,c={}){let{id:d,refId:p}=o.getCurrentStoryData()??{},g=u===d&&c.refId===p,{customQueryParams:m,location:y,refs:v}=t.getState(),{base:b,inheritArgs:E=g,inheritGlobals:S=!0,queryParams:x={},refId:A,viewMode:w="story",embed:C=!1,freeze:R=!1}=c;if(A&&!v[A])throw new Error(`Invalid refId: ${A}`);let L=y.pathname||"/",I=Pn.window.location.origin+L,T=Pn.STORYBOOK_NETWORK_ADDRESS??I,M=b==="origin"?I:b==="network"?T:L,H=A?v[A].url+"/iframe.html":Pn.PREVIEW_URL||`${M.replace(/\/[^/]*\.html$/,"").replace(/\/?$/,"/")}iframe.html`,$=A?`&refId=${encodeURIComponent(A)}`:"",{args:_="",globals:O="",...P}=x,k=E?k0(m?.args??"",_):_,B=S?k0(m?.globals??"",O):O,N=zc(P,["embed","freeze"]),D=zc(P,["id","viewMode","embed","freeze"]),j=Wc(N,{nesting:!0,nestingSyntax:"js"}),K=Wc(D,{nesting:!0,nestingSyntax:"js"});k=k&&`&args=${k}`,B=B&&`&globals=${B}`,j=j&&`&${j}`,K=K&&`&${K}`;let U=C?"&embed=true":"",z=R?"&freeze=finished":"";return{managerHref:`${M}?path=/${w}/${A?`${A}_`:""}${u}${k}${B}${j}`,previewHref:`${H}?id=${u}&viewMode=${w}${$}${k}${A?"":B}${K}${U}${z}`}},getQueryParam(u){let{customQueryParams:c}=t.getState();return c?c[u]:void 0},getUrlState(){let{location:u,path:c,customQueryParams:d,storyId:p,url:g,viewMode:m}=t.getState();return{path:c,hash:u?.hash??"",queryParams:d,storyId:p,url:g,viewMode:m}},setQueryParams(u){let{customQueryParams:c}=t.getState(),d={...c};for(let[p,g]of Object.entries(u))g==null?delete d[p]:d[p]=g;tr(c,d)||(t.setState({customQueryParams:d}),n.channel?.emit(g8,d))},applyQueryParams(u,c){let{path:d,hash:p="",queryParams:g}=a.getUrlState();i(`${d}${p}`,{...g,...u},c),a.setQueryParams(u)},navigateUrl(u,c){r(u,{plain:!0,...c})}},l=()=>{let{path:u,hash:c="",queryParams:d,viewMode:p}=a.getUrlState();if(p!=="story")return;let g=o.getCurrentStoryData();if(g?.type!=="story")return;let{args:m,initialArgs:y}=g,v=Cm(y,m);i(`${u}${c}`,{...d,args:v||null},{replace:!0}),a.setQueryParams({args:v||null})};n.channel?.on(p8,()=>l());let s;return n.channel?.on(h8,()=>{"requestIdleCallback"in Pn.window?(s&&Pn.window.cancelIdleCallback(s),s=Pn.window.requestIdleCallback(l,{timeout:1e3})):(s&&clearTimeout(s),setTimeout(l,100))}),n.channel?.on(d8,({userGlobals:u,initialGlobals:c})=>{let{path:d,hash:p="",queryParams:g}=a.getUrlState(),m=Cm(c,pn(c,u));i(`${d}${p}`,{...g,globals:m||null},{replace:!0}),a.setQueryParams({globals:m||null})}),n.channel?.on(f8,(u,c)=>{a.navigateUrl(u,c)}),{api:a,state:y8(e),init:()=>{t.registerPersistenceHandler("url",(u,c)=>{if(c){let d=c(t.getState());a.applyQueryParams(d,{replace:!0})}})}}},sS={};Ve(sS,{init:()=>$8});var v8=vt(Sn(),1);const{global:Ad}=__STORYBOOK_MODULE_GLOBAL__;var E8="10.5.4",{VERSIONCHECK:S8}=Ad,N0=(0,v8.default)(1)(()=>{try{return{...JSON.parse(S8).data||{}}}catch{return{}}}),x8=e=>e.includes("vue")?"vue":e,$8=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),r={versions:{current:{version:E8},...N0()},dismissedVersionNotification:t},n={getCurrentVersion:()=>{let{versions:{current:o}}=e.getState();return o},getLatestVersion:()=>{let{versions:{latest:o,next:i,current:a}}=e.getState();return a&&mt.prerelease(a.version)&&i?o&&mt.gt(o.version,i.version)?o:i:o},getDocsUrl:({asset:o,subpath:i=o,versioned:a,renderer:l,ref:s="ui"})=>{let{versions:u}=e.getState(),c=u.latest?.version,d=u.current?.version,p=d?.startsWith("0.0.0")&&c||d,g=`https://storybook.js.org/${o?"docs-assets":"docs"}/`;if(o&&p)g+=`${mt.major(p)}.${mt.minor(p)}/`;else if(a&&p&&c){let v=mt.diff(c,p);v==="patch"||v===null||(g+=`${mt.major(p)}.${mt.minor(p)}/`)}let[m,y]=i?.split("#")||[];if(m&&(g+=o?m:`${m}/`),l&&typeof Ad.STORYBOOK_RENDERER<"u"){let v=Ad.STORYBOOK_RENDERER;v&&(g+=`?renderer=${x8(v)}`)}return s&&(g+=`${g.includes("?")?"&":"?"}ref=${s}`),y&&(g+=`#${y}`),g},versionUpdateAvailable:()=>{let o=n.getLatestVersion(),i=n.getCurrentVersion();if(o){if(!o.version||!i.version)return!0;let a=mt.prerelease(i.version)?`${mt.major(i.version)}.${mt.minor(i.version)}.${mt.patch(i.version)}`:i.version,l=mt.diff(a,o.version);return mt.gt(o.version,a)&&l!=="patch"&&!l.includes("pre")}return!1}};return{init:async()=>{let{versions:o={}}=e.getState(),{latest:i,next:a}=N0();await e.setState({versions:{...o,latest:i,next:a}})},state:r,api:n}},uS={};Ve(uS,{init:()=>R8});const{REQUEST_WHATS_NEW_DATA:w8,RESULT_WHATS_NEW_DATA:C8,SET_WHATS_NEW_CACHE:_8,TOGGLE_WHATS_NEW_NOTIFICATIONS:T8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:A8}=__STORYBOOK_MODULE_GLOBAL__;var M0="whats-new",O8=({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})),R8=({fullAPI:e,store:t,provider:r})=>{let n={whatsNewData:void 0};function o(s){t.setState({whatsNewData:s}),n.whatsNewData=s}let i={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(M0))},toggleWhatsNewNotifications(){n.whatsNewData?.status==="SUCCESS"&&(o({...n.whatsNewData,disableWhatsNewNotifications:!n.whatsNewData.disableWhatsNewNotifications}),r.channel?.emit(T8,{disableWhatsNewNotifications:n.whatsNewData.disableWhatsNewNotifications}))}};function a(){return r.channel?.emit(w8),new Promise(s=>r.channel?.once(C8,({data:u})=>s(u)))}function l(s){r.channel?.emit(_8,s)}return{init:async()=>{if(A8.CONFIG_TYPE!=="DEVELOPMENT")return;let s=await a();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:M0,link:"/settings/whats-new",content:{headline:s.title,subHeadline:"Learn what's new in Storybook"},icon:h.createElement(O8,null),onClear({dismissed:p}){p&&l({lastDismissedPost:s.url})}})},state:n,api:i}},nn=vt(k6(),1),D8=e=>{e.fn("set",function(t,r){return e.set(this._area,this._in(t),pF(r,{maxDepth:50}))}),e.fn("get",function(t,r){let n=e.get(this._area,this._in(t));return n!==null?gF(n):r||n})};D8(nn.default._);var cS="@storybook/manager/store";function Oa(e){return e.get(cS)||{}}function dS(e,t){return e.set(cS,t)}function P8(e,t){let r=Oa(e);return dS(e,{...r,...t})}var I8=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[nn.default.local,nn.default.session]){let o=Oa(n);if("includedTagFilters"in o||"excludedTagFilters"in o){let{includedTagFilters:i,excludedTagFilters:a,...l}=o;dS(n,l)}}let t=Oa(nn.default.local),r=Oa(nn.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:i="none"}=o||{},a={},l={};typeof e=="function"?a=u=>(l=e(u),l):(a=e,l=a);let s=await new Promise(u=>{this.upstreamSetState(a,()=>{u(this.getState())})});if(i!=="none"&&this.upstreamPersistence)if(i==="url"){let u=this.persistenceHandlers.get("url");u&&await u(l,o?.serialize)}else{let u=i==="session"?nn.default.session:nn.default.local;await P8(u,l)}return n&&n(s),s}},{ActiveTabs:eZ}=vp,fS=N6({api:void 0,state:wd({})}),F8=(...e)=>M6({},...e),L8=class extends f.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:i,storyId:a,docsOptions:l,navigate:s}=e,u=new I8({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:i,storyId:a,refId:n},d={docsOptions:l};this.state=u.getInitialState(wd({...c,...d}));let p={navigate:s,store:u,provider:e.provider};this.modules=[XE,ME,NE,vp,qE,JE,ZE,tS,jE,BE,lS,sS,uS,YE].map(y=>y.init({...c,...d,...p,state:this.state,fullAPI:this.api}));let g=wd(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:Ep(e.location)}:null}shouldComponentUpdate(e,t){let r=this.props,n=this.state;return r.path!==e.path||!Zt(n,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return h.createElement(k8,{effect:this.initModules},h.createElement(fS.Provider,{value:t},h.createElement(M8,null,e)))}};L8.displayName="Manager";var k8=({children:e,effect:t})=>(h.useEffect(t,[]),e),N8=e=>e;function M8({filter:e=N8,children:t}){let r=f.useContext(fS),n=f.useRef(t),o=f.useRef(e);if(typeof n.current!="function")return h.createElement(f.Fragment,null,n.current);let i=o.current(r),a=f.useMemo(()=>[...Object.entries(i).reduce((l,s)=>l.concat(s),[])],[r.state]);return f.useMemo(()=>{let l=n.current;return h.createElement(l,{...i})},a)}globalThis.STORYBOOK_ADDON_STATE={};const{Channel:tZ}=__STORYBOOK_MODULE_CHANNELS__;var B8={id:"storybook/test-provider",leader:!0,initialState:{}};function j8({universalTestProviderStore:e,useUniversalStore:t}){let r={settingsChanged:()=>{e.untilReady().then(()=>{e.send({type:"settings-changed"})})},onRunAll:i=>e.subscribe("run-all",i),onClearAll:i=>e.subscribe("clear-all",i)},n={...r,getFullState:e.getState,setFullState:e.setState,onSettingsChanged:i=>e.subscribe("settings-changed",i),runAll:async()=>{await e.untilReady(),e.send({type:"run-all"})},clearAll:async()=>{await e.untilReady(),e.send({type:"clear-all"})}},o=i=>{let a=()=>e.getState()[i]??"test-provider-state:pending",l=s=>{e.untilReady().then(()=>{e.setState(u=>({...u,[i]:s}))})};return{...r,testProviderId:i,getState:a,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:i=>t(e,i)[0]}:{getTestProviderStoreById:o,fullTestProviderStore:n,universalTestProviderStore:e}}j8({universalTestProviderStore:Yf.create({...B8,leader:globalThis.CONFIG_TYPE==="PRODUCTION"}),useUniversalStore:oS});var H8={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:{}},U8={id:"storybook/checklist",initialState:H8};Yf.create({...U8,leader:globalThis.CONFIG_TYPE==="PRODUCTION"});var Xu={exports:{}},Ju={},B0;function z8(){if(B0)return Ju;B0=1;var e=Ff();function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(d,p){var g=p(),m=n({inst:{value:g,getSnapshot:p}}),y=m[0].inst,v=m[1];return i(function(){y.value=g,y.getSnapshot=p,s(y)&&v({inst:y})},[d,g,p]),o(function(){return s(y)&&v({inst:y}),d(function(){s(y)&&v({inst:y})})},[d]),a(g),g}function s(d){var p=d.getSnapshot;d=d.value;try{var g=p();return!r(d,g)}catch{return!0}}function u(d,p){return p()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return Ju.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:c,Ju}var j0;function K8(){return j0||(j0=1,Xu.exports=z8()),Xu.exports}var G8=K8(),$e=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},bo=({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"}}),Sr=({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)"}),_e=({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"}),Cn={margin:"16px 0"},Sp=F.div(_e),W8=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return h.createElement("a",{href:r,target:n,...t})},pS=F(W8)(({theme:e})=>({..._e({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"}}})),hS=F.blockquote(({theme:e})=>({..._e({theme:e}),...Cn,borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),hn=[],Qn=null,V8=f.lazy(async()=>{let{SyntaxHighlighter:e}=await Nr(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-T5IQBZDB-D-I_s_yD.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3,4]),import.meta.url);return hn.length>0&&(hn.forEach(t=>{e.registerLanguage(...t)}),hn=[]),Qn===null&&(Qn=e),{default:t=>h.createElement(e,{...t})}}),q8=f.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Nr(()=>import("./syntaxhighlighter-T5IQBZDB-D-I_s_yD.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),Nr(()=>import("./formatter-L2YTDE3Q-B9u1AOWn.js"),__vite__mapDeps([5,1,2,3,4]),import.meta.url)]);return hn.length>0&&(hn.forEach(r=>{e.registerLanguage(...r)}),hn=[]),Qn===null&&(Qn=e),{default:r=>h.createElement(e,{...r,formatter:t})}}),Ci=e=>h.createElement(f.Suspense,{fallback:h.createElement("div",null)},e.format!==!1?h.createElement(q8,{...e}):h.createElement(V8,{...e}));Ci.registerLanguage=(...e)=>{if(Qn!==null){Qn.registerLanguage(...e);return}hn.push(e)};var Y8=e=>typeof e=="string",X8=/[\n\r]/g,J8=F.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit",...Sr({theme:e})})),Z8=F(Ci)(({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"}})),xp=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=f.Children.toArray(t);return o.filter(Y8).some(i=>i.match(X8))?h.createElement(Z8,{bordered:!0,copyable:!0,language:n?.[1]??"text",format:!1,...r},t):h.createElement(J8,{...r,className:e},o)},gS=F.dl(({theme:e})=>({..._e({theme:e}),...Cn,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}})),mS=F.div(_e),yS=F.h1(({theme:e})=>({..._e({theme:e}),...bo({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),$p=F.h2(({theme:e})=>({..._e({theme:e}),...bo({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),wp=F.h3(({theme:e})=>({..._e({theme:e}),...bo({theme:e}),fontSize:`${e.typography.size.m1}px`})),bS=F.h4(({theme:e})=>({..._e({theme:e}),...bo({theme:e}),fontSize:`${e.typography.size.s3}px`})),vS=F.h5(({theme:e})=>({..._e({theme:e}),...bo({theme:e}),fontSize:`${e.typography.size.s2}px`})),ES=F.h6(({theme:e})=>({..._e({theme:e}),...bo({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),SS=F.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),xS=F.img({maxWidth:"100%"}),$S=F.li(({theme:e})=>({..._e({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":Sr({theme:e})})),Q8={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},wS=F.ol(({theme:e})=>({..._e({theme:e}),...Cn,...Q8,listStyle:"decimal"})),CS=F.p(({theme:e})=>({..._e({theme:e}),...Cn,fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":Sr({theme:e})})),_S=F.pre(({theme:e})=>({..._e({theme:e}),...Cn,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"}})),TS=F.span(({theme:e})=>({..._e({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"}}})),AS=F.title(Sr),OS=F.table(({theme:e})=>({..._e({theme:e}),...Cn,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}})),ek={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},RS=F.ul(({theme:e})=>({..._e({theme:e}),...Cn,...ek,listStyle:"disc"})),DS={h1:e=>h.createElement(yS,{...$e(e,"h1")}),h2:e=>h.createElement($p,{...$e(e,"h2")}),h3:e=>h.createElement(wp,{...$e(e,"h3")}),h4:e=>h.createElement(bS,{...$e(e,"h4")}),h5:e=>h.createElement(vS,{...$e(e,"h5")}),h6:e=>h.createElement(ES,{...$e(e,"h6")}),pre:e=>h.createElement(_S,{...$e(e,"pre")}),a:e=>h.createElement(pS,{...$e(e,"a")}),hr:e=>h.createElement(SS,{...$e(e,"hr")}),dl:e=>h.createElement(gS,{...$e(e,"dl")}),blockquote:e=>h.createElement(hS,{...$e(e,"blockquote")}),table:e=>h.createElement(OS,{...$e(e,"table")}),img:e=>h.createElement(xS,{...$e(e,"img")}),div:e=>h.createElement(mS,{...$e(e,"div")}),span:e=>h.createElement(TS,{...$e(e,"span")}),li:e=>h.createElement($S,{...$e(e,"li")}),ul:e=>h.createElement(RS,{...$e(e,"ul")}),ol:e=>h.createElement(wS,{...$e(e,"ol")}),p:e=>h.createElement(CS,{...$e(e,"p")}),code:e=>h.createElement(xp,{...$e(e,"code")}),tt:e=>h.createElement(AS,{...$e(e,"tt")}),resetwrapper:e=>h.createElement(Sp,{...$e(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 ${vr(.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"?Je(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${vr(.9,e.color.secondary)}`};default:return{}}});const{deprecate:tk}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var rk=0,nk=e=>e.button===rk&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,ok=(e,t)=>{nk(e)&&(e.preventDefault(),t(e))},ik=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}}:{}),ak=F.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Je(.07,e.color.secondary),"svg path:not([fill])":{fill:Je(.07,e.color.secondary)}},"&:active":{color:Je(.1,e.color.secondary),"svg path:not([fill])":{fill:Je(.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"}}:{}),_i=f.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:i=void 0,isButton:a=void 0,href:l,...s},u)=>(a!==void 0&&tk("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),h.createElement(ak,{as:l?"a":"button",href:l,...s,ref:u,isButton:!l||a===!0,onClick:r&&e?c=>ok(c,r):r,className:i},h.createElement(ik,{withArrow:n,containsIcon:o},t,n&&h.createElement(Qv,null)))));_i.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:lk}=__STORYBOOK_MODULE_GLOBAL__;var{document:Do,window:Od}=lk;async function sk(e){try{await Od.top?.navigator.clipboard.writeText(e)}catch{await Od.navigator.clipboard.writeText(e)}}async function uk(e){let t=Do.createElement("TEXTAREA"),r=Do.activeElement;t.value=e,Do.body.appendChild(t),t.select(),Do.execCommand("copy"),Do.body.removeChild(t),r.focus()}function ck(){return Od.navigator?.clipboard?sk:uk}const{deprecate:Rd}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function H0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dk(...e){return t=>{let r=!1,n=e.map(o=>{let i=H0(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){let i=n[o];typeof i=="function"?i():H0(e[o],null)}}}}var fk=Symbol.for("react.lazy"),ol=L5[" use ".trim().toString()];function pk(e){return typeof e=="object"&&e!==null&&"then"in e}function PS(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===fk&&"_payload"in e&&pk(e._payload)}function hk(e){let t=mk(e),r=f.forwardRef((n,o)=>{let{children:i,...a}=n;PS(i)&&typeof ol=="function"&&(i=ol(i._payload));let l=f.Children.toArray(i),s=l.find(bk);if(s){let u=s.props.children,c=l.map(d=>d===s?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:d);return le.jsx(t,{...a,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,c):null})}return le.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var gk=hk("Slot");function mk(e){let t=f.forwardRef((r,n)=>{let{children:o,...i}=r;if(PS(o)&&typeof ol=="function"&&(o=ol(o._payload)),f.isValidElement(o)){let a=Ek(o),l=vk(i,o.props);return o.type!==f.Fragment&&(l.ref=n?dk(n,a):a),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yk=Symbol("radix.slottable");function bk(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yk}function vk(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{let l=i(...a);return o(...a),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Ek(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 Sk=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)"})),IS=({note:e,...t})=>h.createElement(Sk,{...t},e);const{deprecate:xk}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var pe=typeof document<"u"?h.useLayoutEffect:()=>{};function $k(e){let[t,r]=f.useState(e),n=f.useRef(t),o=f.useRef(null),i=f.useRef(()=>{if(!o.current)return;let l=o.current.next();if(l.done){o.current=null;return}n.current===l.value?i.current():r(l.value)});pe(()=>{n.current=t,o.current&&i.current()});let a=f.useCallback(l=>{o.current=l(n.current),i.current()},[i]);return[t,a]}var FS={prefix:String(Math.round(Math.random()*1e10)),current:0},LS=h.createContext(FS),wk=h.createContext(!1),Zu=new WeakMap;function Ck(e=!1){let t=f.useContext(LS),r=f.useRef(null);if(r.current===null&&!e){var n,o;let i=(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(i){let a=Zu.get(i);a==null?Zu.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,Zu.delete(i))}r.current=++t.current}return r.current}function _k(e){let t=f.useContext(LS),r=Ck(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function Tk(e){let t=h.useId(),[r]=f.useState(_n()),n=r?"react-aria":`react-aria${FS.prefix}`;return e||`${n}-${t}`}var Ak=typeof h.useId=="function"?Tk:_k;function Ok(){return!1}function Rk(){return!0}function Dk(e){return()=>{}}function _n(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(Dk,Ok,Rk):f.useContext(wk)}var Pk=!!(typeof window<"u"&&window.document&&window.document.createElement),zn=new Map,Mo;typeof FinalizationRegistry<"u"&&(Mo=new FinalizationRegistry(e=>{zn.delete(e)}));function We(e){let[t,r]=f.useState(e),n=f.useRef(null),o=Ak(t),i=f.useRef(null);if(Mo&&Mo.register(i,o),Pk){let a=zn.get(o);a&&!a.includes(n)?a.push(n):zn.set(o,[n])}return pe(()=>{let a=o;return()=>{Mo&&Mo.unregister(i),zn.delete(a)}},[o]),f.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function Ik(e,t){if(e===t)return e;let r=zn.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=zn.get(t);return n?(n.forEach(o=>o.current=e),e):t}function Ra(e=[]){let t=We(),[r,n]=$k(t),o=f.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return pe(o,[t,o,...e]),r}function Ti(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var he=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},At=e=>e&&"window"in e&&e.window===e?e:he(e).defaultView||window;function Ct(e,t){return t&&e?e.contains(t):!1}var Be=(e=document)=>e.activeElement;function Oe(e){return e.target}function Fk(e,t,r,n){return e.createTreeWalker(t,r,n)}function kS(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=kS(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Lk(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=kS(e))&&(n&&(n+=" "),n+=t);return n}var kk=Lk;function re(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],a=n[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Ti(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=kk(i,a):o==="id"&&i&&a?t.id=Ik(i,a):t[o]=a!==void 0?a:i}}return t}function Cp(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(o=>{let i=U0(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o():U0(e[i],null)})}}}function U0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var Nk=new Set(["id"]),Mk=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Bk=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),jk=new Set(["dir","lang","hidden","inert","translate"]),z0=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"]),Hk=/^(data-.*)$/;function Te(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:a}=t,l={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(Nk.has(s)||r&&Mk.has(s)||n&&Bk.has(s)||o&&jk.has(s)||i&&(z0.has(s)||s.endsWith("Capture")&&z0.has(s.slice(0,-7)))||a?.has(s)||Hk.test(s))&&(l[s]=e[s]);return l}function ut(e){if(Uk())e.focus({preventScroll:!0});else{let t=zk(e);e.focus(),Kk(t)}}var ta=null;function Uk(){if(ta==null){ta=!1;try{document.createElement("div").focus({get preventScroll(){return ta=!0,!0}})}catch{}}return ta}function zk(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 Kk(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Jl(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 _p(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 xr(e){let t=null;return()=>(t==null&&(t=e()),t)}var bn=xr(function(){return _p(/^Mac/i)}),Gk=xr(function(){return _p(/^iPhone/i)}),NS=xr(function(){return _p(/^iPad/i)||bn()&&navigator.maxTouchPoints>1}),Zl=xr(function(){return Gk()||NS()}),Wk=xr(function(){return bn()||Zl()}),MS=xr(function(){return Jl(/AppleWebKit/i)&&!BS()}),BS=xr(function(){return Jl(/Chrome/i)}),Tp=xr(function(){return Jl(/Android/i)}),Vk=xr(function(){return Jl(/Firefox/i)}),qk=f.createContext({isNative:!0,open:Jk,useHref:e=>e});function Ql(){return f.useContext(qk)}function Yk(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 vn(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}=t;Vk()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(bn()?i=!0:a=!0);let u=MS()&&bn()&&!NS()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});vn.isOpening=r,ut(e),e.dispatchEvent(u),vn.isOpening=!1}vn.isOpening=!1;function Xk(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){Xk(e,r=>vn(r,t))}function jS(e){let t=Ql();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 Zk(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&Yk(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Fr=new Map,Dd=new Set;function K0(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Fr.get(n.target);o||(o=new Set,Fr.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=Fr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Fr.delete(n.target)),Fr.size===0)){for(let i of Dd)i();Dd.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?K0():document.addEventListener("DOMContentLoaded",K0));function Qk(){for(let[e]of Fr)"isConnected"in e&&!e.isConnected&&Fr.delete(e)}function HS(e){requestAnimationFrame(()=>{Qk(),Fr.size===0?e():Dd.add(e)})}function es(){let e=f.useRef(new Map),t=f.useCallback((o,i,a,l)=>{let s=l?.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:s,options:l}),o.addEventListener(i,s,l)},[]),r=f.useCallback((o,i,a,l)=>{var s;let u=((s=e.current.get(a))===null||s===void 0?void 0:s.fn)||a;o.removeEventListener(i,u,l),e.current.delete(a)},[]),n=f.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function ts(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=We(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 Gt(e){let t=f.useRef(null),r=f.useRef(void 0),n=f.useCallback(o=>{if(typeof e=="function"){let i=e,a=i(o);return()=>{typeof a=="function"?a():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return f.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,e7=(Qu=h.useInsertionEffect)!==null&&Qu!==void 0?Qu:pe;function Ue(e){let t=f.useRef(null);return e7(()=>{t.current=e},[e]),f.useCallback((...r)=>{let n=t.current;return n?.(...r)},[])}function G0(e,t){let r=f.useRef(!0),n=f.useRef(null);pe(()=>(r.current=!0,()=>{r.current=!1}),[]),pe(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function t7(){return typeof window.ResizeObserver<"u"}function il(e){let{ref:t,box:r,onResize:n}=e,o=Ue(n);f.useEffect(()=>{let i=t?.current;if(i)if(t7()){let a=new window.ResizeObserver(l=>{l.length&&o()});return a.observe(i,{box:r}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",o,!1),()=>{window.removeEventListener("resize",o,!1)}},[t,r])}function Ap(e,t){pe(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function eo(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 US(e,t){let r=e;for(eo(r,t)&&(r=r.parentElement);r&&!eo(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function r7(e,t){let r=[];for(;e&&e!==document.documentElement;)eo(e,t)&&r.push(e),e=e.parentElement;return r}function kn(e){return bn()?e.metaKey:e.ctrlKey}var n7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ec(e){return e instanceof HTMLInputElement&&!n7.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var o7=0,tc=new Map;function i7(e){let[t,r]=f.useState();return pe(()=>{if(!e)return;let n=tc.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${o7++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},tc.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),tc.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Bo(e,t,r,n){let o=Ue(r),i=r==null;f.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[e,t,n,i])}function zS(e,t){let r=W0(e,t,"left"),n=W0(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:p,scrollPaddingLeft:g}=getComputedStyle(e),m=a+parseInt(u,10),y=l+parseInt(s,10),v=m+e.clientWidth,b=y+e.clientHeight,E=parseInt(c,10)||0,S=parseInt(p,10)||0,x=parseInt(d,10)||0,A=parseInt(g,10)||0;r<=a+A?a=r-parseInt(u,10)-A:r+o>v-x&&(a+=r+o-v+x),n<=y+E?l=n-parseInt(s,10)-E:n+i>b-S&&(l+=n+i-b+S),e.scrollLeft=a,e.scrollTop=l}function W0(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 V0(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement,l=window.getComputedStyle(a).overflow==="hidden";if(l){let s=r7(e);l||s.push(a);for(let u of s)zS(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,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function KS(e){return e.pointerType===""&&e.isTrusted?!0:Tp()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function a7(e){return!Tp()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function q0(e){let t=f.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var l7="react-aria-clear-focus",s7="react-aria-focus";function GS(e,t=!0){let[r,n]=f.useState(!0),o=r&&t;return pe(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),VS(e,o,f.useCallback(()=>n(!1),[])),o}function WS(e,t){let[r,n]=f.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 VS(e,o,f.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function VS(e,t,r){pe(()=>{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(i=>i.finished)).then(()=>{o||vi.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}var u7=typeof Element<"u"&&"checkVisibility"in Element.prototype;function c7(e){let t=At(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:i}=e.ownerDocument.defaultView,{display:a,visibility:l}=i(e);o=a!=="none"&&l!=="hidden"&&l!=="collapse"}return o}function d7(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 Op(e,t){return u7?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&c7(e)&&d7(e,t)&&(!e.parentElement||Op(e.parentElement,e))}var Rp=["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"],f7=Rp.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Rp.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var p7=Rp.join(':not([hidden]):not([tabindex="-1"]),');function qS(e){return e.matches(f7)&&Op(e)&&!YS(e)}function h7(e){return e.matches(p7)&&Op(e)&&!YS(e)}function YS(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var rc,g7=typeof document<"u"?(rc=h.useInsertionEffect)!==null&&rc!==void 0?rc:h.useLayoutEffect:()=>{};function rs(e,t,r){let[n,o]=f.useState(e||t),i=f.useRef(n),a=f.useRef(e!==void 0),l=e!==void 0;f.useEffect(()=>{a.current,a.current=l},[l]);let s=l?e:n;g7(()=>{i.current=s});let[,u]=f.useReducer(()=>({}),{}),c=f.useCallback((d,...p)=>{let g=typeof d=="function"?d(i.current):d;Object.is(i.current,g)||(i.current=g,o(g),u(),r?.(g,...p))},[r]);return[s,c]}function li(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Dp(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function XS(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function JS(e){let t=f.useRef({isFocused:!1,observer:null});pe(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=Ue(n=>{e?.(n)});return f.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,i=a=>{if(t.current.isFocused=!1,o.disabled){let l=Dp(a);r(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.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 al=!1;function m7(e){for(;e&&!qS(e);)e=e.parentElement;let t=At(e),r=t.document.activeElement;if(!r||r===e)return;al=!0;let n=!1,o=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},i=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,ut(r),s()))},a=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,ut(r),s()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),al=!1,n=!1},u=requestAnimationFrame(s);return s}var jn="default",Pd="",Da=new WeakMap;function y7(e){if(Zl()){if(jn==="default"){let t=he(e);Pd=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}jn="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Da.set(e,e.style[t]),e.style[t]="none"}}function Y0(e){if(Zl()){if(jn!=="disabled")return;jn="restoring",setTimeout(()=>{HS(()=>{if(jn==="restoring"){let t=he(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Pd||""),Pd="",jn="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Da.has(e)){let t=Da.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Da.delete(e)}}var si=h.createContext({register:()=>{}});si.displayName="PressResponderContext";function b7(e,t){return t.get?t.get.call(e):t.value}function ZS(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function v7(e,t){var r=ZS(e,t,"get");return b7(e,r)}function E7(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function S7(e,t,r){E7(e,t),t.set(e,r)}function x7(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 X0(e,t,r){var n=ZS(e,t,"set");return x7(e,n,r),r}function $7(e){let t=f.useContext(si);if(t){let{register:r,...n}=t;e=re(n,e),r()}return Ap(t,e.ref),e}var ra=new WeakMap,na=class{continuePropagation(){X0(this,ra,!1)}get shouldStopPropagation(){return v7(this,ra)}constructor(e,t,r,n){S7(this,ra,{writable:!0,value:void 0}),X0(this,ra,!0);var o;let i=(o=n?.target)!==null&&o!==void 0?o:r.currentTarget,a=i?.getBoundingClientRect(),l,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),a&&(u!=null&&c!=null?(l=u-a.left,s=c-a.top):(l=a.width/2,s=a.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"),Z0="react-aria-pressable-style",Q0="data-react-aria-pressable";function Ai(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:l,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:p,...g}=$7(e),[m,y]=f.useState(!1),v=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:E}=es(),S=Ue((T,M)=>{let H=v.current;if(l||H.didFirePressStart)return!1;let $=!0;if(H.isTriggeringEvent=!0,n){let _=new na("pressstart",M,T);n(_),$=_.shouldStopPropagation}return r&&r(!0),H.isTriggeringEvent=!1,H.didFirePressStart=!0,y(!0),$}),x=Ue((T,M,H=!0)=>{let $=v.current;if(!$.didFirePressStart)return!1;$.didFirePressStart=!1,$.isTriggeringEvent=!0;let _=!0;if(o){let O=new na("pressend",M,T);o(O),_=O.shouldStopPropagation}if(r&&r(!1),y(!1),t&&H&&!l){let O=new na("press",M,T);t(O),_&&(_=O.shouldStopPropagation)}return $.isTriggeringEvent=!1,_}),A=Ue((T,M)=>{let H=v.current;if(l)return!1;if(i){H.isTriggeringEvent=!0;let $=new na("pressup",M,T);return i($),H.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),w=Ue(T=>{let M=v.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&x(qr(M.target,T),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,E(),d||Y0(M.target);for(let H of M.disposables)H();M.disposables=[]}}),C=Ue(T=>{c&&w(T)}),R=Ue(T=>{l||a?.(T)}),L=Ue((T,M)=>{if(!l&&a){let H=new MouseEvent("click",T);XS(H,M),a(Dp(H))}}),I=f.useMemo(()=>{let T=v.current,M={onKeyDown($){if(nc($.nativeEvent,$.currentTarget)&&Ct($.currentTarget,Oe($.nativeEvent))){var _;ey(Oe($.nativeEvent),$.key)&&$.preventDefault();let O=!0;if(!T.isPressed&&!$.repeat){T.target=$.currentTarget,T.isPressed=!0,T.pointerType="keyboard",O=S($,"keyboard");let P=$.currentTarget,k=B=>{nc(B,P)&&!B.repeat&&Ct(P,Oe(B))&&T.target&&A(qr(T.target,B),"keyboard")};b(he($.currentTarget),"keyup",Ti(k,H),!0)}O&&$.stopPropagation(),$.metaKey&&bn()&&((_=T.metaKeyEvents)===null||_===void 0||_.set($.key,$.nativeEvent))}else $.key==="Meta"&&(T.metaKeyEvents=new Map)},onClick($){if(!($&&!Ct($.currentTarget,Oe($.nativeEvent)))&&$&&$.button===0&&!T.isTriggeringEvent&&!vn.isOpening){let _=!0;if(l&&$.preventDefault(),!T.ignoreEmulatedMouseEvents&&!T.isPressed&&(T.pointerType==="virtual"||KS($.nativeEvent))){let O=S($,"virtual"),P=A($,"virtual"),k=x($,"virtual");R($),_=O&&P&&k}else if(T.isPressed&&T.pointerType!=="keyboard"){let O=T.pointerType||$.nativeEvent.pointerType||"virtual",P=A(qr($.currentTarget,$),O),k=x(qr($.currentTarget,$),O,!0);_=P&&k,T.isOverTarget=!1,R($),w($)}T.ignoreEmulatedMouseEvents=!1,_&&$.stopPropagation()}}},H=$=>{var _;if(T.isPressed&&T.target&&nc($,T.target)){var O;ey(Oe($),$.key)&&$.preventDefault();let k=Oe($),B=Ct(T.target,Oe($));x(qr(T.target,$),"keyboard",B),B&&L($,T.target),E(),$.key!=="Enter"&&Pp(T.target)&&Ct(T.target,k)&&!$[J0]&&($[J0]=!0,vn(T.target,$,!1)),T.isPressed=!1,(O=T.metaKeyEvents)===null||O===void 0||O.delete($.key)}else if($.key==="Meta"&&!((_=T.metaKeyEvents)===null||_===void 0)&&_.size){var P;let k=T.metaKeyEvents;T.metaKeyEvents=void 0;for(let B of k.values())(P=T.target)===null||P===void 0||P.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){M.onPointerDown=O=>{if(O.button!==0||!Ct(O.currentTarget,Oe(O.nativeEvent)))return;if(a7(O.nativeEvent)){T.pointerType="virtual";return}T.pointerType=O.pointerType;let P=!0;if(!T.isPressed){T.isPressed=!0,T.isOverTarget=!0,T.activePointerId=O.pointerId,T.target=O.currentTarget,d||y7(T.target),P=S(O,T.pointerType);let k=Oe(O.nativeEvent);"releasePointerCapture"in k&&k.releasePointerCapture(O.pointerId),b(he(O.currentTarget),"pointerup",$,!1),b(he(O.currentTarget),"pointercancel",_,!1)}P&&O.stopPropagation()},M.onMouseDown=O=>{if(Ct(O.currentTarget,Oe(O.nativeEvent))&&O.button===0){if(u){let P=m7(O.target);P&&T.disposables.push(P)}O.stopPropagation()}},M.onPointerUp=O=>{!Ct(O.currentTarget,Oe(O.nativeEvent))||T.pointerType==="virtual"||O.button===0&&!T.isPressed&&A(O,T.pointerType||O.pointerType)},M.onPointerEnter=O=>{O.pointerId===T.activePointerId&&T.target&&!T.isOverTarget&&T.pointerType!=null&&(T.isOverTarget=!0,S(qr(T.target,O),T.pointerType))},M.onPointerLeave=O=>{O.pointerId===T.activePointerId&&T.target&&T.isOverTarget&&T.pointerType!=null&&(T.isOverTarget=!1,x(qr(T.target,O),T.pointerType,!1),C(O))};let $=O=>{if(O.pointerId===T.activePointerId&&T.isPressed&&O.button===0&&T.target){if(Ct(T.target,Oe(O))&&T.pointerType!=null){let P=!1,k=setTimeout(()=>{T.isPressed&&T.target instanceof HTMLElement&&(P?w(O):(ut(T.target),T.target.click()))},80);b(O.currentTarget,"click",()=>P=!0,!0),T.disposables.push(()=>clearTimeout(k))}else w(O);T.isOverTarget=!1}},_=O=>{w(O)};M.onDragStart=O=>{Ct(O.currentTarget,Oe(O.nativeEvent))&&w(O)}}return M},[b,l,u,E,d,w,C,x,S,A,R,L]);return f.useEffect(()=>{if(!p)return;let T=he(p.current);if(!T||!T.head||T.getElementById(Z0))return;let M=T.createElement("style");M.id=Z0,M.textContent=`
652
652
  @layer {
653
653
  [${Q0}] {
654
654
  touch-action: pan-x pan-y pinch-zoom;
@@ -669,7 +669,7 @@ ${t}`);let r=t.match(BM);if(!r)return h.createElement(f.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}}})),tB=({children:e,...t})=>h.createElement(eB,{...t},!oT()&&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)),rB=f.useLayoutEffect,nB=function(e){var t=h.useRef(e);return rB(function(){t.current=e}),t},ky=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},oB=function(e,t){var r=h.useRef();return h.useCallback(function(n){e.current=n,r.current&&ky(r.current,null),r.current=t,t&&ky(t,n)},[t])},Ny={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},iB=function(e){Object.keys(Ny).forEach(function(t){e.style.setProperty(t,Ny[t],"important")})},My=iB,ot=null,By=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function aB(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),ot||(ot=document.createElement("textarea"),ot.setAttribute("tabindex","-1"),ot.setAttribute("aria-hidden","true"),My(ot)),ot.parentNode===null&&document.body.appendChild(ot);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,l=a.boxSizing;Object.keys(a).forEach(function(p){var g=p;ot.style[g]=a[g]}),My(ot),ot.value=t;var s=By(ot,e);ot.value=t,s=By(ot,e),ot.value="x";var u=ot.scrollHeight-o,c=u*r;l==="border-box"&&(c=c+o+i),s=Math.max(c,s);var d=u*n;return l==="border-box"&&(d=d+o+i),s=Math.min(d,s),[s,u]}var jy=function(){},lB=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},sB=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],uB=!!document.documentElement.currentStyle,cB=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=lB(sB,t),n=r.boxSizing;if(n==="")return null;uB&&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),i=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:i}},dB=cB;function Wp(e,t,r){var n=nB(r);f.useLayoutEffect(function(){var o=function(i){return n.current(i)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var fB=function(e,t){Wp(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},pB=function(e){Wp(window,"resize",e)},hB=function(e){Wp(document.fonts,"loadingdone",e)},gB=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],mB=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,i=e.onChange,a=i===void 0?jy:i,l=e.onHeightChange,s=l===void 0?jy:l,u=N2(e,gB),c=u.value!==void 0,d=f.useRef(null),p=oB(d,t),g=f.useRef(0),m=f.useRef(),y=function(){var b=d.current,E=r&&m.current?m.current:dB(b);if(E){m.current=E;var S=aB(E,b.value||b.placeholder||"x",o,n),x=S[0],A=S[1];g.current!==x&&(g.current=x,b.style.setProperty("height",x+"px","important"),s(x,{rowHeight:A}))}},v=function(b){c||y(),a(b)};return f.useLayoutEffect(y),fB(d,function(){if(!c){var b=d.current.value;requestAnimationFrame(function(){var E=d.current;E&&b!==E.value&&y()})}}),pB(y),hB(y),f.createElement("textarea",Ge({},u,{onChange:v,ref:p}))},yB=f.forwardRef(mB),bB=Object.assign(F(f.forwardRef(function({size:e,valid:t,align:r,...n},o){return h.createElement(yB,{...n,ref:o})}))(Gp,Kp,z$,K$,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Tn=Object.assign(F.form({boxSizing:"border-box",width:"100%"}),{Field:VM,Input:JM,Select:tB,Textarea:bB,Button:Se,Checkbox:KM,Radio:QM}),vB=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"?Lf(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`]}),EB=F(Se)({position:"absolute",top:4,right:4}),Pi=f.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:o,padding:i=8,...a},l)=>h.createElement(vB,{bgColor:t,hasChrome:r,hasCloseButton:!!o,padding:i,ref:l,...a},e,o&&h.createElement(EB,{ariaLabel:n,onClick:o,padding:"small",variant:"ghost",size:"small"},h.createElement(W2,null))));Pi.displayName="Popover";var G$=({id:e,title:t,description:r,icon:n,aside:o,children:i,isSelected:a,isActive:l,onClick:s,onFocus:u,onKeyDown:c,shouldLookDisabled:d=!1,...p})=>h.createElement(Ia.Item,{...p,id:e,role:"option",tabIndex:l?0:-1,"aria-selected":a,"aria-disabled":d?!0:void 0,onClick:s,onFocus:u,onKeyDown:c},i??h.createElement(h.Fragment,null,n&&h.createElement(Ia.Icon,null,n),h.createElement(Ia.Text,null,h.createElement("p",null,t),r&&h.createElement("small",null,r)),o));G$.displayName="SelectOption";var ua=5,W$=Symbol.for("undefined");function SB(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function Xd(e){return{...e,type:"option",value:Fa(e.value)}}function bc(e){return"type"in e&&e.type==="reset"?e:Xd(e)}function Fo(e){if(e!==W$)return e}function Fa(e){return e===void 0?W$:e}var xB=F("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function Hy(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var $B=F.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function Uy(e,t){return t===void 0?[]:SB(t)?e.filter(r=>r.value===t).map(Xd):e.filter(r=>t.some(n=>r.value===n)).map(Xd)}var wB=F(Se)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:vr(.93,r.barSelectedColor),color:r.base==="light"?Je(.1,r.color.secondary):r.color.secondary}:{}),CB=F.div({position:"fixed",inset:0,zIndex:1e3}),_B=({children:e,handleClose:t,triggerRef:r})=>{let n=h.useRef(null);ix({ref:n,onInteractOutside:t}),f.useEffect(()=>{if(n.current)return as([n.current],{shouldUseInert:!0})},[]);let{overlayProps:o}=Bp({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:i,underlayProps:a}=Hp({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),l=Uf();return o.style={...o.style,overflow:"hidden auto",scrollbarColor:`${l.barTextColor} transparent`,scrollbarWidth:"thin"},h.createElement(hl,{disableFocusManagement:!0,...i},h.createElement(CB,{...a}),h.createElement(Pi,{hasChrome:!0,ref:n,padding:0,...o},e))},V$=f.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:o,multiSelect:i=!1,onReset:a,padding:l="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:p,ariaLabel:g,showSelectedOptionTitle:m=!0,...y},v)=>{let[b,E]=f.useState(y.defaultOpen||!1),[S,x]=f.useState(!1),A=Gt(v),w=f.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),C=`${w}-listbox`,R=f.useRef(null),L=Ri({isOpen:b&&!r,onOpenChange:E}),I=f.useCallback(()=>{E(!1),x(!0)},[]);f.useEffect(()=>{!L.isOpen&&S&&(A.current?.ownerDocument?.defaultView&&A.current.focus(),x(!1))},[L.isOpen,S,A]);let[T,M]=f.useState(Uy(n,o)),H=f.useCallback(U=>{U.type==="reset"?(d?.([]),a?.(),M([])):M(i?z=>{let W=[];return z?.some(G=>G.value===U.value)?(c?.(Fo(U.value)),W=z?.filter(G=>G.value!==U.value)??[]):(u?.(Fo(U.value)),W=[...z??[],U]),d?.(W.map(G=>Fo(G.value))),W}:z=>z.every(W=>W.value!==U.value)?(u?.(Fo(U.value)),d?.([Fo(U.value)]),[U]):z)},[i,d,u,c,a]),$=f.useMemo(()=>a?{type:"reset",value:void 0,title:s??"Reset selection",icon:h.createElement(r3,null),description:void 0,children:void 0}:void 0,[a,s]),_=f.useMemo(()=>$?[$,...n]:n,[n,$]);f.useEffect(()=>{o&&M(Uy(n,o))},[o,n]);let[O,P]=f.useState(void 0),k=f.useCallback((U,z=!0)=>{P(bc(U)),!i&&z&&H(bc(U))},[i,H]),B=f.useCallback((U=1)=>{if(!b||!O){k(_[U===1?0:Math.min(U,_.length-1)]);return}let z=_.findIndex(X=>O.type==="reset"?"type"in X&&X.type==="reset":Fa(X.value)===O.value),W=z+U,G;W>=_.length&&z===_.length-1?G=_[0]:G=_[Math.min(_.length-1,W)],k(G)},[b,O,k,_]),N=f.useCallback((U=1)=>{if(!b||!O){k(_[Math.max(0,_.length-U)]);return}let z=_.findIndex(X=>O.type==="reset"?"type"in X&&X.type==="reset":Fa(X.value)===O.value),W=z-U,G;W<0&&z===0?G=_[_.length-1]:G=_[Math.max(0,W)],k(G)},[b,O,k,_]),D=f.useCallback(U=>{let z=Re=>{U.preventDefault(),k(_[Re]),E(!0)},W=_.findIndex(Re=>T.some(Z=>Z.value===Fa(Re.value))),G=W!==-1,X=$&&!G?1:0,ie=_.length-1;U.key==="Enter"||U.key===" "?z(G?Math.min(W,ie):X):U.key==="ArrowDown"?z(G?Math.min(W+1,ie):X):U.key==="ArrowUp"?z(G?Math.max(W-1,X):ie):U.key==="Home"?z(X):U.key==="End"?z(ie):U.key==="PageDown"?z(Math.min((G?W:X)+ua,ie)):U.key==="PageUp"&&z(Math.max(0,(G?W:ie)-ua))},[_,$,k,T]),j=f.useCallback(U=>{U.key!=="Tab"?U.preventDefault():I(),U.key==="Escape"?I():U.key==="ArrowDown"?B():U.key==="ArrowUp"?N():U.key==="Home"?k(_[0]):U.key==="End"?k(_[_.length-1]):U.key==="PageDown"?B(ua):U.key==="PageUp"&&N(ua)},[I,B,N,_,k]);f.useEffect(()=>{if(b&&O){let U=document.getElementById(Hy(w,O));U&&(U.scrollIntoView({block:"nearest"}),U.focus())}else b&&R.current?.focus()},[b,O,w]);let K=f.useMemo(()=>T.length===1?`${g} ${T[0].title}`:T.length?`${g}, ${T.length} values selected`:g,[g,T]);return h.createElement(h.Fragment,null,h.createElement(wB,{...y,variant:"ghost",ariaLabel:K,tooltip:p??g,disableAllTooltips:b,id:w,ref:A,padding:l,$isOpen:b,$hasSelection:!!T.length,"aria-disabled":r,disabled:r,onClick:()=>{b?I():E(!0)},tabIndex:b?-1:0,onKeyDown:D,role:"button","aria-controls":b?C:void 0,"aria-expanded":b,"aria-haspopup":"listbox"},!i&&h.createElement(h.Fragment,null,t,m&&T[0]?.title||e),i&&h.createElement(h.Fragment,null,t,e,!!T.length&&h.createElement($B,{"aria-label":`${T.length} ${T.length>1?"items":"item"} selected`},T?.length))),L.isOpen&&h.createElement(_B,{handleClose:I,triggerRef:A},h.createElement(xB,{"aria-label":g,role:"listbox",id:C,ref:R,"aria-multiselectable":i,onKeyDown:j,tabIndex:b?0:-1},_.map(U=>({option:bc(U),externalOption:U})).map(({externalOption:U,option:z})=>{let W=T?.some(X=>X.value===z.value)&&z!==$,G=z===$;return h.createElement(G$,{key:z.value===void 0?"sb-reset":String(z.value),title:z.title,description:z.description,aside:z.aside,icon:!G&&i?h.createElement(Tn.Checkbox,{checked:W,hidden:!0,role:"presentation"}):z.icon,id:Hy(w,z),isActive:b&&O?.value===z.value,isSelected:W,onClick:()=>{H(z),i||I()},onFocus:()=>k(U,!1),shouldLookDisabled:G&&T.length===0&&i,onKeyDown:X=>{X.key==="Enter"||X.key===" "?(X.preventDefault(),H(z),i||I()):X.key==="Tab"&&(i||H(z),I())}},z.children)}))))});V$.displayName="Select";const{deprecate:TB}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var An=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}},q$=class extends An{filter(e,t,r){let[n,o]=Z$(e,t,this.firstChildKey,r),i=this.clone();return i.firstChildKey=n,i.lastChildKey=o,i}},Y$=class extends An{};Y$.type="header";var AB=class extends An{};AB.type="loader";var X$=class extends q${filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};X$.type="item";var J$=class extends q${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}};J$.type="section";var OB=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]=Z$(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 Z$(e,t,r,n){if(r==null)return[null,null];let o=null,i=null,a=e.getItem(r);for(;a!=null;){let u=a.filter(e,t,n);u!=null&&(u.nextKey=null,i&&(u.prevKey=i.key,i.nextKey=u.key),o==null&&(o=u),t.addNode(u),i=u),a=a.nextKey?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let u=i.prevKey;t.removeNode(i.key),u?(i=t.getItem(u),i.nextKey=null):i=null}var l,s;return[(l=o?.key)!==null&&l!==void 0?l:null,(s=i?.key)!==null&&s!==void 0?s:null]}var Q$=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}},vc=class Jd extends Q${get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof Jd?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,i,a,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 Jd&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var p;c.prevKey=(p=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&p!==void 0?p: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=(a=this.firstVisibleChild)===null||a===void 0||(i=a.node)===null||i===void 0?void 0:i.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,i){let a,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(a=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),c.ref=r,a.props=c,a.rendered=o,a.render=i,a.value=l,a.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(a.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,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let a=t.previousVisibleSibling,l=t.nextVisibleSibling;a&&t.ownerDocument.markDirty(a),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}},RB=class extends Q${get isConnected(){return this.isMounted}createElement(e){return new vc(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 a of this.dirtyNodes)a instanceof vc&&(!a.isConnected||a.isHidden)?this.removeNode(a):a.updateChildIndices();for(let a of this.dirtyNodes)a instanceof vc&&(a.isConnected&&!a.isHidden&&(a.updateNode(),this.addNode(a)),a.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,o,i;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,(i=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&i!==void 0?i: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 ew(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=e,a=f.useMemo(()=>new WeakMap,i);return f.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=a.get(c);if(!d){d=t(c);var l,s;let p=(s=(l=d.props.id)!==null&&l!==void 0?l:c.key)!==null&&s!==void 0?s:c.id;if(p==null)throw new Error("Could not determine key for item");n&&(p=n+":"+p),d=f.cloneElement(d,o?{key:p,id:p,value:c}:{key:p}),a.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,a,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 gl=f.createContext(!1);function DB(e){if(f.useContext(gl))return h.createElement(h.Fragment,null,e.children);let t=h.createElement(gl.Provider,{value:!0},e.children);return h.createElement("template",{"data-react-aria-hidden":!0},t)}function Vp(e){let t=(r,n)=>f.useContext(gl)?null:e(r,n);return t.displayName=e.displayName||e.name,f.forwardRef(t)}function PB(){return f.useContext(gl)}var tw=f.createContext(!1),pi=f.createContext(null);function rw(e){if(f.useContext(pi))return e.content;let{collection:t,document:r}=kB(e.createCollection);return h.createElement(h.Fragment,null,h.createElement(DB,null,h.createElement(pi.Provider,{value:r},e.content)),h.createElement(IB,{render:e.children,collection:t}))}function IB({collection:e,render:t}){return t(e)}function FB(e,t,r){let n=_n(),o=f.useRef(n);o.current=n;let i=f.useCallback(()=>o.current?r():t(),[t,r]);return G8.useSyncExternalStore(e,i)}var LB=typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore:FB;function kB(e){let[t]=f.useState(()=>new RB(e?.()||new OB)),r=f.useCallback(a=>t.subscribe(a),[t]),n=f.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=f.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),i=LB(r,n,o);return pe(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:i,document:t}}var Zd=f.createContext(null);function NB(e){var t;return t=class extends An{},t.type=e,t}function nw(e,t,r,n,o,i){typeof e=="string"&&(e=NB(e));let a=f.useCallback(s=>{s?.setProps(t,r,e,n,i)},[t,r,n,i,e]),l=f.useContext(Zd);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,i),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?h.createElement(Zd.Provider,{value:s},o):null}return h.createElement(e.type,{ref:a},o)}function ss(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=f.forwardRef((o,i)=>{let a=f.useContext(ul);if(!f.useContext(tw)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return nw(e,o,i,"children"in o?o.children:null,null,l=>h.createElement(ul.Provider,{value:a},h.createElement(r,{node:l})))});return n.displayName=t.name,n}function qp(e,t,r=ow){let n=({node:i})=>t(i.props,i.props.ref,i),o=f.forwardRef((i,a)=>{let l=r(i);var s;return(s=nw(e,i,a,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 ow(e){return ew({...e,addIdAndValue:!0})}var zy=f.createContext(null);function iw(e){let t=f.useContext(zy),r=(t?.dependencies||[]).concat(e.dependencies),n=e.idScope||t?.idScope,o=ow({...e,idScope:n,dependencies:r});return f.useContext(pi)&&(o=h.createElement(MB,null,o)),t=f.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),h.createElement(zy.Provider,{value:t},o)}function MB({children:e}){let t=f.useContext(pi),r=f.useMemo(()=>h.createElement(pi.Provider,{value:null},h.createElement(tw.Provider,{value:!0},e)),[e]);return _n()?h.createElement(Zd.Provider,{value:t},r):vi.createPortal(r,t)}var aw=f.createContext({});Vp(function(e,t){[e,t]=Qe(e,t,aw);let{elementType:r="label",...n}=e;return h.createElement(r,{className:"react-aria-Label",...n,ref:t})});function BB(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=We(t);let a=We(),l={};r&&(n=n?`${a} ${n}`:a,l={id:a,htmlFor:i==="label"?t:void 0});let s=ts({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function jB(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,l=Te(e,{labelable:!0}),{labelProps:s,fieldProps:u}=BB({...e,labelElementType:"span"});t=li(t,r,n);let c=(t-r)/(n-r),d=a9(a);if(!i&&!o){let p=a.style==="percent"?c:t;o=d.format(p)}return{progressBarProps:re(l,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:s}}var lw=f.createContext(null);f.forwardRef(function(e,t){[e,t]=Qe(e,t,lw);let{value:r=0,minValue:n=0,maxValue:o=100,isIndeterminate:i=!1}=e;r=li(r,n,o);let[a,l]=ax(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=jB({...e,label:l}),c=i?void 0:(r-n)/(o-n)*100,d=St({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:i}}),p=Te(e,{global:!0});return h.createElement("div",{...re(p,d,s),ref:t,slot:e.slot||void 0},h.createElement(aw.Provider,{value:{...u,ref:a,elementType:"span"}},d.children))});function HB(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:p,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?p: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}=Ai({onPressStart:i,onPressEnd:a,onPressChange:s,onPress:o,onPressUp:l,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:S}=Oi(e,t);c&&(S.tabIndex=n?-1:S.tabIndex);let x=re(S,b,Te(e,{labelable:!0}));return{isPressed:E,buttonProps:re(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 sw=f.createContext({});Vp(function(e,t){[e,t]=Qe(e,t,sw),e=UB(e);let r=e,{isPending:n}=r,{buttonProps:o,isPressed:i}=HB(e,t),{focusProps:a,isFocused:l,isFocusVisible:s}=is(e),{hoverProps:u,isHovered:c}=vo({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||i)&&!n,isFocused:l,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},p=St({...e,values:d,defaultClassName:"react-aria-Button"}),g=We(o.id),m=We(),y=o["aria-labelledby"];n&&(y?y=`${y} ${m}`:o["aria-label"]&&(y=`${g} ${m}`));let v=f.useRef(n);f.useEffect(()=>{let E={"aria-labelledby":y||g};(!v.current&&l&&n||v.current&&l&&!n)&&nd(E,"assertive"),v.current=n},[n,l,y,g]);let b=Te(e,{global:!0});return delete b.onClick,h.createElement("button",{...re(b,p,o,a,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(lw.Provider,{value:{id:m}},p.children))});function UB(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 Yp=f.createContext(null),Ky=f.createContext(null),zB=f.forwardRef(function(e,t){[e,t]=Qe(e,t,Yp);let r=f.useContext(cs),n=Ri(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,i=WS(t,o.isOpen)||e.isExiting||!1,a=PB(),{direction:l}=wr();if(a){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&&!i?null:h.createElement(KB,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i,dir:l})});function KB({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let i=f.useRef(null),a=f.useRef(null),l=f.useContext(Ky),s=l&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:p,placement:g,triggerAnchorPoint:m}=k9({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:i,groupRef:s?l:a},e),y=o.popoverRef,v=GS(y,!!g)||o.isEntering||!1,b=St({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:g,isEntering:v,isExiting:t}}),E=!o.isNonModal||o.trigger==="SubmenuTrigger",[S,x]=f.useState(!1);pe(()=>{y.current&&x(E&&!y.current.querySelector("[role=dialog]"))},[y,E]),f.useEffect(()=>{S&&o.trigger!=="SubmenuTrigger"&&y.current&&!y.current.contains(document.activeElement)&&Br(y.current)},[S,y,o.trigger]);let A=f.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]),w={...c.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...b.style},C=h.createElement("div",{...re(Te(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:w,dir:o.dir,"data-trigger":o.trigger,"data-placement":g,"data-entering":v||void 0,"data-exiting":t||void 0},!o.isNonModal&&h.createElement(Ay,{onDismiss:e.close}),h.createElement(Np.Provider,{value:{...p,placement:g,ref:i}},A),h.createElement(Ay,{onDismiss:e.close}));if(!s)return h.createElement(hl,{...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:a,style:{display:"contents"}},h.createElement(Ky.Provider,{value:a},C)));var R;return h.createElement(hl,{...o,shouldContainFocus:S,isExiting:t,portalContainer:(R=r??l?.current)!==null&&R!==void 0?R:void 0},C)}var uw=f.createContext(null);qp("section",(e,t,r)=>{let{name:n,render:o}=f.useContext(uw);return o(e,t,r,"react-aria-Section")});var cw={CollectionRoot({collection:e,renderDropIndicator:t}){return Gy(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Gy(e,t,r)}};function Gy(e,t,r){return ew({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,GB(e,n,r))}})}function GB(e,t,r){let n=t.key,o=e.getKeyAfter(n),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let l=[];if(a==null){let s=t;for(;s&&(!i||s.parentKey!==i.parentKey&&i.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});f.isValidElement(u)&&l.push(f.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var Ii=f.createContext(cw);function dw(e){return f.useMemo(()=>e!=null?new Set([e]):null,[e])}var Wy=f.createContext(null),WB=f.createContext(null),fw=f.createContext({});ss(Y$,function(e,t){return[e,t]=Qe(e,t,fw),h.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var pw=f.createContext({});f.forwardRef(function(e,t){return[e,t]=Qe(e,t,pw),h.createElement("kbd",{dir:"ltr",...e,ref:t})});function VB(e){let t=Te(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var hw=f.createContext({}),gw=class extends An{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}};gw.type="separator";ss(gw,function(e,t){[e,t]=Qe(e,t,hw);let{elementType:r,orientation:n,style:o,className:i,slot:a,...l}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=VB({...l,elementType:r,orientation:n}),c=Te(e,{global:!0});return h.createElement(s,{...re(c,u),style:o,className:i??"react-aria-Separator",ref:t,slot:a||void 0})});var mw=new WeakMap;function Qd(e){return Wk()?e.altKey:e.ctrlKey}function La(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}var yw=new WeakMap;function qB(e){let t=We();return yw.set(e,t),t}function YB(e){return yw.get(e)}var XB=1e3;function JB(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=f.useRef({search:"",timeout:void 0}).current,i=a=>{let l=ZB(a.key);if(!(!l||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||o.search.length===0&&l===" ")){if(l===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.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=""},XB)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function ZB(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function bw(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,isVirtualized:g,scrollRef:m=n,linkBehavior:y="action"}=e,{direction:v}=wr(),b=Ql(),E=P=>{var k;if(P.altKey&&P.key==="Tab"&&P.preventDefault(),!(!((k=n.current)===null||k===void 0)&&k.contains(P.target)))return;let B=(V,q)=>{if(V!=null){if(t.isLink(V)&&y==="selection"&&u&&!Qd(P)){vi.flushSync(()=>{t.setFocusedKey(V,q)});let te=La(n,V),ce=t.getItemProps(V);te&&b.open(te,P,ce.href,ce.routerOptions);return}if(t.setFocusedKey(V,q),t.isLink(V)&&y==="override")return;P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&!Qd(P)&&t.replaceSelection(V)}};switch(P.key){case"ArrowDown":if(r.getKeyBelow){var N,D,j;let V=t.focusedKey!=null?(N=r.getKeyBelow)===null||N===void 0?void 0:N.call(r,t.focusedKey):(D=r.getFirstKey)===null||D===void 0?void 0:D.call(r);V==null&&i&&(V=(j=r.getFirstKey)===null||j===void 0?void 0:j.call(r,t.focusedKey)),V!=null&&(P.preventDefault(),B(V))}break;case"ArrowUp":if(r.getKeyAbove){var K,U,z;let V=t.focusedKey!=null?(K=r.getKeyAbove)===null||K===void 0?void 0:K.call(r,t.focusedKey):(U=r.getLastKey)===null||U===void 0?void 0:U.call(r);V==null&&i&&(V=(z=r.getLastKey)===null||z===void 0?void 0:z.call(r,t.focusedKey)),V!=null&&(P.preventDefault(),B(V))}break;case"ArrowLeft":if(r.getKeyLeftOf){var W,G,X;let V=t.focusedKey!=null?(W=r.getKeyLeftOf)===null||W===void 0?void 0:W.call(r,t.focusedKey):null;V==null&&i&&(V=v==="rtl"?(G=r.getFirstKey)===null||G===void 0?void 0:G.call(r,t.focusedKey):(X=r.getLastKey)===null||X===void 0?void 0:X.call(r,t.focusedKey)),V!=null&&(P.preventDefault(),B(V,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var ie,Re,Z;let V=t.focusedKey!=null?(ie=r.getKeyRightOf)===null||ie===void 0?void 0:ie.call(r,t.focusedKey):null;V==null&&i&&(V=v==="rtl"?(Re=r.getLastKey)===null||Re===void 0?void 0:Re.call(r,t.focusedKey):(Z=r.getFirstKey)===null||Z===void 0?void 0:Z.call(r,t.focusedKey)),V!=null&&(P.preventDefault(),B(V,v==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&P.shiftKey)return;P.preventDefault();let V=r.getFirstKey(t.focusedKey,kn(P));t.setFocusedKey(V),V!=null&&(kn(P)&&P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&t.replaceSelection(V))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&P.shiftKey)return;P.preventDefault();let V=r.getLastKey(t.focusedKey,kn(P));t.setFocusedKey(V),V!=null&&(kn(P)&&P.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&&(P.preventDefault(),B(V))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let V=r.getKeyPageAbove(t.focusedKey);V!=null&&(P.preventDefault(),B(V))}break;case"a":kn(P)&&t.selectionMode==="multiple"&&l!==!0&&(P.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(P.stopPropagation(),P.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(P.shiftKey)n.current.focus();else{let V=dt(n.current,{tabbable:!0}),q,te;do te=V.lastChild(),te&&(q=te);while(te);q&&!q.contains(document.activeElement)&&ut(q)}break}}},S=f.useRef({top:0,left:0});Bo(m,"scroll",g?void 0:()=>{var P,k,B,N;S.current={top:(B=(P=m.current)===null||P===void 0?void 0:P.scrollTop)!==null&&B!==void 0?B:0,left:(N=(k=m.current)===null||k===void 0?void 0:k.scrollLeft)!==null&&N!==void 0?N:0}});let x=P=>{if(t.isFocused){P.currentTarget.contains(P.target)||t.setFocused(!1);return}if(P.currentTarget.contains(P.target)){if(t.setFocused(!0),t.focusedKey==null){var k,B;let j=U=>{U!=null&&(t.setFocusedKey(U),u&&!t.isSelected(U)&&t.replaceSelection(U))},K=P.relatedTarget;var N,D;K&&P.currentTarget.compareDocumentPosition(K)&Node.DOCUMENT_POSITION_FOLLOWING?j((N=t.lastSelectedKey)!==null&&N!==void 0?N:(k=r.getLastKey)===null||k===void 0?void 0:k.call(r)):j((D=t.firstSelectedKey)!==null&&D!==void 0?D:(B=r.getFirstKey)===null||B===void 0?void 0:B.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=La(n,t.focusedKey);j instanceof HTMLElement&&(!j.contains(document.activeElement)&&!d&&ut(j),di()==="keyboard"&&V0(j,{containingElement:n.current}))}}},A=P=>{P.currentTarget.contains(P.relatedTarget)||t.setFocused(!1)},w=f.useRef(!1);Bo(n,s7,d?P=>{let{detail:k}=P;P.stopPropagation(),t.setFocused(!0),k?.focusStrategy==="first"&&(w.current=!0)}:void 0);let C=Ue(()=>{var P,k;let B=(k=(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))!==null&&k!==void 0?k:null;if(B==null){let N=Be();Px(n.current),Ix(N,null),t.collection.size>0&&(w.current=!1)}else t.setFocusedKey(B),w.current=!1});G0(()=>{w.current&&C()},[t.collection,C]);let R=Ue(()=>{t.collection.size>0&&(w.current=!1)});G0(()=>{R()},[t.focusedKey,R]),Bo(n,l7,d?P=>{var k;P.stopPropagation(),t.setFocused(!1),!((k=P.detail)===null||k===void 0)&&k.clearFocusKey&&t.setFocusedKey(null)}:void 0);let L=f.useRef(o),I=f.useRef(!1);f.useEffect(()=>{if(L.current){var P,k;let D=null;var B;o==="first"&&(D=(B=(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))!==null&&B!==void 0?B:null);var N;o==="last"&&(D=(N=(k=r.getLastKey)===null||k===void 0?void 0:k.call(r))!==null&&N!==void 0?N:null);let j=t.selectedKeys;if(j.size){for(let K of j)if(t.canSelectItem(K)){D=K;break}}t.setFocused(!0),t.setFocusedKey(D),D==null&&!d&&n.current&&Br(n.current),t.collection.size>0&&(L.current=!1,I.current=!0)}});let T=f.useRef(t.focusedKey),M=f.useRef(null);f.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==T.current||I.current)&&m.current&&n.current){let P=di(),k=La(n,t.focusedKey);if(!(k instanceof HTMLElement))return;(P==="keyboard"||I.current)&&(M.current&&cancelAnimationFrame(M.current),M.current=requestAnimationFrame(()=>{m.current&&(zS(m.current,k),P!=="virtual"&&V0(k,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&T.current!=null&&n.current&&Br(n.current),T.current=t.focusedKey,I.current=!1}),f.useEffect(()=>()=>{M.current&&cancelAnimationFrame(M.current)},[]),Bo(n,"react-aria-focus-scope-restore",P=>{P.preventDefault(),t.setFocused(!0)});let H={onKeyDown:E,onFocus:x,onBlur:A,onMouseDown(P){m.current===P.target&&P.preventDefault()}},{typeSelectProps:$}=JB({keyboardDelegate:r,selectionManager:t});c||(H=re($,H));let _;d||(_=t.focusedKey==null?0:-1);let O=qB(t.collection);return{collectionProps:re(H,{tabIndex:_,"data-collection":O})}}function vw(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,p=Ql();t=We(t);let g=N=>{if(N.pointerType==="keyboard"&&Qd(N))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let D=r.getItemProps(n);p.open(o.current,N,D.href,D.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):N&&N.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||N&&(kn(N)||N.pointerType==="touch"||N.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};f.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(a?Px(o.current):l?l():document.activeElement!==o.current&&o.current&&Br(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),s=s||r.isDisabled(n);let m={};!a&&!s?m={tabIndex:n===r.focusedKey?0:-1,onFocus(N){N.target===o.current&&r.setFocusedKey(n)}}:s&&(m.onMouseDown=N=>{N.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),A=S&&E&&r.selectionBehavior==="replace",w=x||A,C=f.useRef(null),R=w&&E,L=f.useRef(!1),I=f.useRef(!1),T=r.getItemProps(n),M=N=>{if(u){var D;u(),(D=o.current)===null||D===void 0||D.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&p.open(o.current,N,T.href,T.routerOptions)},H={ref:o};if(i?(H.onPressStart=N=>{C.current=N.pointerType,L.current=R,N.pointerType==="keyboard"&&(!w||qy())&&g(N)},c?(H.onPressUp=x?void 0:N=>{N.pointerType==="mouse"&&E&&g(N)},H.onPress=x?M:N=>{N.pointerType!=="keyboard"&&N.pointerType!=="mouse"&&E&&g(N)}):H.onPress=N=>{if(x||A&&N.pointerType!=="mouse"){if(N.pointerType==="keyboard"&&!Vy())return;M(N)}else N.pointerType!=="keyboard"&&E&&g(N)}):(H.onPressStart=N=>{C.current=N.pointerType,L.current=R,I.current=x,E&&(N.pointerType==="mouse"&&!x||N.pointerType==="keyboard"&&(!S||qy()))&&g(N)},H.onPress=N=>{(N.pointerType==="touch"||N.pointerType==="pen"||N.pointerType==="virtual"||N.pointerType==="keyboard"&&w&&Vy()||N.pointerType==="mouse"&&I.current)&&(w?M(N):E&&g(N))}),m["data-collection"]=YB(r.collection),m["data-key"]=n,H.preventFocusOnPress=a,a&&(H=re(H,{onPressStart(N){N.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(N){N.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),T)for(let N of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])T[N]&&(H[N]=Ti(H[N],T[N]));let{pressProps:$,isPressed:_}=Ai(H),O=A?N=>{C.current==="mouse"&&(N.stopPropagation(),N.preventDefault(),M(N))}:void 0,{longPressProps:P}=U7({isDisabled:!R,onLongPress(N){N.pointerType==="touch"&&(g(N),r.setSelectionBehavior("toggle"))}}),k=N=>{C.current==="touch"&&L.current&&N.preventDefault()},B=d!=="none"&&r.isLink(n)?N=>{vn.isOpening||N.preventDefault()}:void 0;return{itemProps:re(m,E||x||a&&!s?$:{},R?P:{},{onDoubleClick:O,onDragStartCapture:k,onClick:B,id:t},a?{onMouseDown:N=>N.preventDefault()}:void 0),isPressed:_,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:E,hasAction:w}}function Vy(){return window.event?.key==="Enter"}function qy(){let e=window.event;return e?.key===" "||e?.code==="Space"}var Yy=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?La(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}},QB=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 i=o;do{if(n=t(n),n==null)break;o=this.layoutDelegate.getItemRect(n)}while(o&&r(i,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&&!eo(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&&!eo(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 i=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(i,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 Yy(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 Yy(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function ej(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,l=l9({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=f.useMemo(()=>i||new QB({collection:r,disabledKeys:n,disabledBehavior:s,ref:o,collator:l,layoutDelegate:a}),[i,a,r,n,o,l,s]),{collectionProps:c}=bw({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function tj(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let l=Te(e,{labelable:!0}),{listProps:s}=ej({...a,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return mw.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:re(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function Ew(e){return null}Ew.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:o}=e,i=e.title||e.children,a=e.textValue||(typeof i=="string"?i:"")||e["aria-label"]||"";!a&&t?.suppressTextValueWarning,yield{type:"item",props:e,rendered:i,textValue:a,"aria-label":e["aria-label"],hasChildNodes:rj(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 rj(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&h.Children.count(e.children)>0)}var nj=Ew,oj=class{build(e,t){return this.context=t,Xy(()=>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,i=>{i&&n.push(i)});let o=0;for(let i of n){let a=this.getFullNode({element:i,index:o},{});for(let l of a)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 i;let a=(i=o.key)!==null&&i!==void 0?i:o.id;if(a==null)throw new Error("No key found for item");return a}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 i=e.element;if(!i&&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}i=t.renderer(e.value)}if(h.isValidElement(i)){let y=i.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let S=i.type;throw new Error(`Unknown element <${S}> in collection.`)}let v=y.getCollectionNode(i.props,this.context);var a;let b=(a=e.index)!==null&&a!==void 0?a: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(i,e,t,r));let A=[...this.getFullNode({...S,key:x,index:b,wrapper:ij(e.wrapper,S.wrapper)},this.getChildState(t,S),r?`${r}${i.key}`:i.key,n)];for(let w of A){var s,u;w.value=(u=(s=S.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,w.value&&this.cache.set(w.value,w);var c;if(e.type&&w.type!==e.type)throw new Error(`Unsupported type <${Ec(w.type)}> in <${Ec((c=n?.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${Ec(e.type)}> is supported.`);b++,yield w}E=v.next(A)}return}if(e.key==null||e.type==null)return;let d=this;var p,g;let m={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(p=e.value)!==null&&p!==void 0?p: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:Xy(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 Xy(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 ij(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Ec(e){return e[0].toUpperCase()+e.slice(1)}function Sw(e,t,r){let n=f.useMemo(()=>new oj,[]),{children:o,items:i,collection:a}=e;return f.useMemo(()=>{if(a)return a;let l=n.build({children:o,items:i},r);return t(l)},[n,o,i,a,r,t])}function xw(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function aj(e){return lj(e)}function lj(e,t){for(let r of e)return r}function Sc(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...Jy(e,t),t],o=[...Jy(e,r),r],i=n.slice(0,o.length).findIndex((a,l)=>a!==o[l]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(a=>a===r)>=0?1:(o.findIndex(a=>a===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 Zy=new WeakMap;function sj(e){let t=Zy.get(e);if(t!=null)return t;let r=0,n=o=>{for(let i of o)i.type==="section"?n(xw(i,e)):i.type==="item"&&r++};return n(e),Zy.set(e,r),r}function uj(e,t,r){let{id:n,key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":l,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:p,onClick:g,onHoverStart:m,onHoverChange:y,onHoverEnd:v,onKeyDown:b,onKeyUp:E,onFocus:S,onFocusChange:x,onBlur:A,selectionManager:w=t.selectionManager}=e,C=!!l,R=C&&e["aria-expanded"]==="true";var L;let I=(L=e.isDisabled)!==null&&L!==void 0?L:w.isDisabled(o);var T;let M=(T=e.isSelected)!==null&&T!==void 0?T:w.isSelected(o),H=mw.get(t),$=t.collection.getItem(o),_=e.onClose||H.onClose,O=Ql(),P=()=>{var J;if(!C&&(!($==null||(J=$.props)===null||J===void 0)&&J.onAction?$.props.onAction():e.onAction&&e.onAction(o),H.onAction)){let nt=H.onAction;nt(o)}},k="menuitem";C||(w.selectionMode==="single"?k="menuitemradio":w.selectionMode==="multiple"&&(k="menuitemcheckbox"));let B=Ra(),N=Ra(),D=Ra(),j={id:n,"aria-disabled":I||void 0,role:k,"aria-label":e["aria-label"],"aria-labelledby":B,"aria-describedby":[N,D].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};w.selectionMode!=="none"&&!C&&(j["aria-checked"]=M),a&&(j["aria-posinset"]=$?.index,j["aria-setsize"]=sj(t.collection));let K=f.useRef(!1),U=J=>{d?.(J),K.current=J},z=f.useRef(null),W=J=>{J.pointerType!=="keyboard"&&(z.current={pointerType:J.pointerType}),J.pointerType==="mouse"&&(K.current||J.target.click()),u?.(J)},G=J=>{var nt,Pt;g?.(J),P(),Zk(J,O,$.props.href,$?.props.routerOptions);let gt=((nt=z.current)===null||nt===void 0?void 0:nt.pointerType)==="keyboard"?((Pt=z.current)===null||Pt===void 0?void 0:Pt.key)==="Enter"||w.selectionMode==="none"||w.isLink(o):w.selectionMode!=="multiple"||w.isLink(o);gt=i??gt,_&&!C&&gt&&_(),z.current=null},{itemProps:X,isFocused:ie}=vw({id:n,selectionManager:w,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:H.shouldUseVirtualFocus}),{pressProps:Re,isPressed:Z}=Ai({onPressStart:s,onPress:c,onPressUp:W,onPressChange:U,onPressEnd:p,isDisabled:I}),{hoverProps:V}=vo({isDisabled:I,onHoverStart(J){!ci()&&!(R&&l)&&(w.setFocused(!0),w.setFocusedKey(o)),m?.(J)},onHoverChange:y,onHoverEnd:v}),{keyboardProps:q}=ox({onKeyDown:J=>{if(J.repeat){J.continuePropagation();return}switch(J.key){case" ":z.current={pointerType:"keyboard",key:" "},J.target.click();break;case"Enter":z.current={pointerType:"keyboard",key:"Enter"},J.target.tagName!=="A"&&J.target.click();break;default:C||J.continuePropagation(),b?.(J);break}},onKeyUp:E}),{focusProps:te}=Fp({onBlur:A,onFocus:S,onFocusChange:x}),ce=Te($?.props);delete ce.id;let rt=jS($?.props);return{menuItemProps:{...j,...re(ce,rt,C?{onFocus:X.onFocus,"data-collection":X["data-collection"],"data-key":X["data-key"]}:X,Re,V,q,te,H.shouldUseVirtualFocus||C?{onMouseDown:J=>J.preventDefault()}:void 0,I?void 0:{onClick:G}),tabIndex:X.tabIndex!=null&&R&&!H.shouldUseVirtualFocus?-1:X.tabIndex},labelProps:{id:B},descriptionProps:{id:N},keyboardShortcutProps:{id:D},isFocused:ie,isFocusVisible:ie&&w.isFocused&&ci()&&!R,isSelected:M,isPressed:Z,isDisabled:I}}function cj(e){let{heading:t,"aria-label":r}=e,n=We();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var ca=2,dj=50,fj=1e3,Qy=Math.PI/12;function pj(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:o}=e,i=f.useRef(void 0),a=f.useRef(void 0),l=f.useRef(0),s=f.useRef(void 0),u=f.useRef(void 0),c=f.useRef(void 0),d=f.useRef(2),[p,g]=f.useState(!1);il({ref:r,onResize:()=>{r.current&&(a.current=r.current.getBoundingClientRect(),c.current=void 0)}});let m=()=>{g(!1),d.current=ca,i.current=void 0},y=O7(),v=Ue(b=>{p&&b.preventDefault()});f.useEffect(()=>{p&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,p]),f.useEffect(()=>{let b=r.current,E=t.current;if(o||!b||!n||y!=="pointer"||!E){m();return}a.current=b.getBoundingClientRect();let S=x=>{if(x.pointerType==="touch"||x.pointerType==="pen")return;let A=Date.now();if(A-l.current<dj)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:w,clientY:C}=x;if(!i.current){i.current={x:w,y:C};return}if(!a.current)return;if(c.current||(c.current=w>a.current.right?"left":"right"),w<E.getBoundingClientRect().left||w>E.getBoundingClientRect().right||C<E.getBoundingClientRect().top||C>E.getBoundingClientRect().bottom){m();return}let R=i.current.x,L=i.current.y,I=c.current==="right"?a.current.left-R:R-a.current.right,T=Math.atan2(L-a.current.top,I)+Qy,M=Math.atan2(L-a.current.bottom,I)-Qy,H=Math.atan2(L-C,c.current==="left"?-(w-R):w-R),$=H<T&&H>M;d.current=$?Math.min(d.current+1,ca):Math.max(d.current-1,0),d.current>=ca?g(!0):g(!1),l.current=A,i.current={x:w,y:C},$&&(s.current=setTimeout(()=>{m(),u.current=setTimeout(()=>{let _=document.elementFromPoint(w,C);_&&E.contains(_)&&_.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},fj))};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=ca}},[o,n,t,y,g,v,r])}function hj(e,t,r){let{parentMenuRef:n,submenuRef:o,type:i="menu",isDisabled:a,delay:l=200,shouldUseVirtualFocus:s}=e,u=We(),c=We(),{direction:d}=wr(),p=f.useRef(void 0),g=f.useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=void 0)},[p]),m=Ue(R=>{g(),t.open(R)}),y=Ue(()=>{g(),t.close()});pe(()=>()=>{g()},[g]);let v=R=>{if(R.currentTarget.contains(document.activeElement))switch(R.key){case"ArrowLeft":d==="ltr"&&R.currentTarget.contains(R.target)&&(R.preventDefault(),R.stopPropagation(),y(),!s&&r.current&&ut(r.current));break;case"ArrowRight":d==="rtl"&&R.currentTarget.contains(R.target)&&(R.preventDefault(),R.stopPropagation(),y(),!s&&r.current&&ut(r.current));break;case"Escape":var L;!((L=o.current)===null||L===void 0)&&L.contains(R.target)&&(R.stopPropagation(),y(),!s&&r.current&&ut(r.current));break}};var b;let E={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:(b=t.focusStrategy)!==null&&b!==void 0?b:void 0,onKeyDown:v}},S=R=>{switch(R.key){case"ArrowRight":a||(d==="ltr"?(R.preventDefault(),t.isOpen||m("first"),i==="menu"&&o?.current&&document.activeElement===r?.current&&ut(o.current)):t.isOpen?y():R.continuePropagation());break;case"ArrowLeft":a||(d==="rtl"?(R.preventDefault(),t.isOpen||m("first"),i==="menu"&&o?.current&&document.activeElement===r?.current&&ut(o.current)):t.isOpen?y():R.continuePropagation());break;default:R.continuePropagation();break}},x=R=>{!a&&(R.pointerType==="virtual"||R.pointerType==="keyboard")&&m("first")},A=R=>{!a&&(R.pointerType==="touch"||R.pointerType==="mouse")&&m()},w=R=>{a||(R&&!t.isOpen?p.current||(p.current=setTimeout(()=>{m()},l)):R||g())};Bo(n,"focusin",R=>{var L;t.isOpen&&!((L=n.current)===null||L===void 0)&&L.contains(R.target)&&R.target!==r.current&&y()});let C=R=>R!==r.current;return pj({menuRef:n,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:A,onHoverChange:w,onKeyDown:S,isOpen:t.isOpen},submenuProps:E,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:C}}}function $w(e){let t=Ri(e),[r,n]=f.useState(null),[o,i]=f.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(l=null){n(l),t.open()},toggle(l=null){n(l),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(l,s)=>{i(u=>s>u.length?u:[...u.slice(0,s),l])},closeSubmenu:(l,s)=>{i(u=>u[s]===l?u.slice(0,s):u)}}}function gj(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:i,close:a}=t,[l]=f.useState(n?.length),s=f.useMemo(()=>n[l]===r,[n,r,l]),[u,c]=f.useState(null),d=f.useCallback(m=>{c(m??null),o(r,l)},[o,l,r]),p=f.useCallback(()=>{c(null),i(r,l)},[i,l,r]),g=f.useCallback(m=>{c(m??null),s?p():d(m)},[p,d,s]);return f.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:p,closeAll:a,submenuLevel:l,setOpen:()=>{},toggle:g}),[s,d,p,a,u,g,l])}var mj=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=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||t.has(a.key)))for(let l of a.childNodes)r(l)};for(let a of e)r(a);let n=null,o=0;for(let[a,l]of this.keyMap)n?(n.nextKey=a,l.prevKey=n.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),n=l,n.nextKey=void 0;var i;this.lastKey=(i=n?.key)!==null&&i!==void 0?i:null}},gr=class ww extends Set{constructor(t,r,n){super(t),t instanceof ww?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function yj(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Xp(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=f.useRef(!1),[,l]=f.useState(!1),s=f.useRef(null),u=f.useRef(null),[,c]=f.useState(null),d=f.useMemo(()=>eb(e.selectedKeys),[e.selectedKeys]),p=f.useMemo(()=>eb(e.defaultSelectedKeys,new gr),[e.defaultSelectedKeys]),[g,m]=rs(d,p,e.onSelectionChange),y=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,b]=f.useState(o);o==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&b("replace");let E=f.useRef(o);return f.useEffect(()=>{o!==E.current&&(b(o),E.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:b,get isFocused(){return a.current},setFocused(S){a.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||!yj(S,g))&&m(S)},disabledKeys:y,disabledBehavior:i}}function eb(e,t){return e?e==="all"?"all":new gr(e):t}var Jp=class Cw{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&&Sc(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&&Sc(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 gr([r],r,r);else{let a=this.state.selectedKeys;var o;let l=(o=a.anchorKey)!==null&&o!==void 0?o:r;n=new gr(a,l,r);var i;for(let s of this.getKeyRange(l,(i=a.currentKey)!==null&&i!==void 0?i: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?Sc(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=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}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 gr(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 gr([r],r,r):new gr;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new gr;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 a=this.collection.getItem(n);a?.type==="item"&&t.push(n);var i;a?.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((i=(o=aj(xw(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i: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 gr)}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 Cw(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 bj(e){let{onExpandedChange:t}=e,[r,n]=rs(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Xp(e),i=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=Sw(e,f.useCallback(l=>new mj(l,{expandedKeys:r}),[r]),null);return f.useEffect(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:r,disabledKeys:i,toggleKey:l=>{n(vj(r,l))},setExpandedKeys:n,selectionManager:new Jp(a,o)}}function vj(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var _w=f.createContext(null),us=f.createContext(null),ml=f.createContext(null),yl=f.createContext(null),Tw=f.createContext(null),Aw=class extends An{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}};Aw.type="submenutrigger";qp(Aw,(e,t,r)=>{let{CollectionBranch:n}=f.useContext(Ii),o=f.useContext(us),i=f.useContext(ml),a=gj({triggerKey:r.key},i),l=f.useRef(null),s=Gt(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=f.useContext(Tw),{submenuTriggerProps:d,submenuProps:p,popoverProps:g}=hj({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},a,s);return h.createElement($r,{values:[[bl,{...d,onAction:void 0,ref:s}],[_w,{ref:l,...p}],[cs,a],[Yp,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":p["aria-labelledby"],...g}]]},h.createElement(n,{collection:o.collection,parent:r}),e.children[1])},e=>e.children[0]);f.forwardRef(function(e,t){return[e,t]=Qe(e,t,_w),h.createElement(rw,{content:h.createElement(iw,e)},r=>h.createElement(Ej,{props:e,collection:r,menuRef:t}))});function Ej({props:e,collection:t,menuRef:r}){[e,r]=Qe(e,r,Wy);let{filter:n,...o}=e,i=f.useMemo(()=>n?t.filter(n):t,[t,n]),a=bj({...e,collection:i,children:void 0}),l=f.useContext(ml),{isVirtualized:s,CollectionRoot:u}=f.useContext(Ii),{menuProps:c}=tj({...e,isVirtualized:s,onClose:e.onClose||l?.close},a,r),d=St({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:a.collection.size===0}}),p=null;a.collection.size===0&&e.renderEmptyState&&(p=h.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let g=Te(e,{global:!0});return h.createElement(jp,null,h.createElement("div",{...re(g,d,c),ref:r,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},h.createElement($r,{values:[[us,a],[hw,{elementType:"div"}],[uw,{name:"MenuSection",render:Ow}],[Tw,{parentMenuRef:r,shouldUseVirtualFocus:o?.shouldUseVirtualFocus}],[bl,null],[Wy,null],[WB,null],[yl,a.selectionManager],[ml,l??$w({})]]},h.createElement(u,{collection:a.collection,persistedKeys:dw(a.selectionManager.focusedKey),scrollRef:r})),p))}var Sj=class extends Jp{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 Ow(e,t,r,n="react-aria-MenuSection"){var o,i;let a=f.useContext(us),{CollectionBranch:l}=f.useContext(Ii),[s,u]=ax();var c;let{headingProps:d,groupProps:p}=cj({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),g=St({defaultClassName:n,className:(o=r.props)===null||o===void 0?void 0:o.className,style:(i=r.props)===null||i===void 0?void 0:i.style,values:{}}),m=f.useContext(yl),y=Xp(e),v=e.selectionMode!=null?new Sj(m,y):m,b=Te(e,{global:!0});return delete b.id,h.createElement("section",{...re(b,g,p),ref:t},h.createElement($r,{values:[[fw,{...d,ref:s}],[yl,v]]},h.createElement(l,{collection:a.collection,parent:r})))}qp(J$,Ow);var bl=f.createContext(null);ss(X$,function(e,t,r){var n;[e,t]=Qe(e,t,bl);let o=(n=kp(bl))===null||n===void 0?void 0:n.id,i=f.useContext(us),a=Gt(t),l=f.useContext(yl),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...p}=uj({...e,id:o,key:r.key,selectionManager:l},i,a),{hoverProps:g,isHovered:m}=vo({isDisabled:p.isDisabled}),y=St({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...p,isHovered:m,isFocusVisible:p.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),v=e.href?"a":"div",b=Te(e,{global:!0});return delete b.id,delete b.onClick,h.createElement(v,{...re(b,y,s,g),ref:a,"data-disabled":p.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-selected":p.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($r,{values:[[P$,{slots:{[cl]:u,label:u,description:c}}],[pw,d]]},y.children))});function xj(e,t){let{role:r="dialog"}=e,n=Ra();n=e["aria-label"]?void 0:n;let o=f.useRef(!1);return f.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Br(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Br(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),b$(),{dialogProps:{...Te(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}var Rw=f.createContext(null),cs=f.createContext(null);function $j(e){let t=$w(e),r=f.useRef(null),{triggerProps:n,overlayProps:o}=x9({},t,r),[i,a]=f.useState(null),l=f.useCallback(()=>{r.current&&a(r.current.offsetWidth+"px")},[r]);return il({ref:r,onResize:l}),n.id=We(),o["aria-labelledby"]=n.id,h.createElement($r,{values:[[cs,t],[ml,t],[Rw,o],[Yp,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},h.createElement(N7,{...n,ref:r,isPressed:t.isOpen},e.children))}f.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Qe(e,t,Rw);let{dialogProps:n,titleProps:o}=xj({...e,"aria-labelledby":r},t),i=f.useContext(cs);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let a=St({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:i?.close||(()=>{})}}),l=Te(e,{global:!0});return h.createElement("section",{...re(l,a,n),ref:t,slot:e.slot||void 0},h.createElement($r,{values:[[D$,{slots:{[cl]:{},title:{...o,level:2}}}],[sw,{slots:{[cl]:{},close:{onPress:()=>i?.close()}}}]]},a.children))});var Zp=({ariaLabel:e,placement:t="bottom-start",hasChrome:r=!0,hasCloseButton:n=!1,closeLabel:o,offset:i=8,padding:a,popover:l,children:s,defaultVisible:u,visible:c,onVisibleChange:d,...p})=>{e||TB("The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.");let g=zp(t),[m,y]=f.useState(u??!1),v=f.useCallback(E=>{y(E),d?.(E)},[d]),b=f.useCallback(()=>v(!1),[v]);return h.createElement($j,{defaultOpen:u,isOpen:c??m,onOpenChange:v,...p},h.createElement(k7,null,f.cloneElement(s,{"aria-haspopup":"dialog"})),h.createElement(zB,{"aria-label":e,placement:g,offset:i,style:{outline:"none"}},h.createElement(Pi,{hasChrome:r,hideLabel:o,onHide:n?b:void 0,padding:a},typeof l=="function"?l({onHide:b}):l)))},Dw=f.forwardRef((e,t)=>h.createElement(Pi,{ref:t,...e}));Dw.displayName="Tooltip";f.lazy(()=>Nr(()=>import("./WithTooltip-7X4HQR7L-2Hfrkir-.js"),__vite__mapDeps([7,1,2,3,4,5]),import.meta.url).then(e=>({default:e.WithTooltip})));f.lazy(()=>Nr(()=>import("./WithTooltip-7X4HQR7L-2Hfrkir-.js"),__vite__mapDeps([7,1,2,3,4,5]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:rZ}=__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:wj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Cj=vt(Sn(),1);const{deprecate:_j}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Tj=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}:{}),Aj=F.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),Oj=F.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),Rj=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}:{}),Dj=F.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),Pj=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"}),Ij=(0,Cj.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}}})),Pw=f.forwardRef((e,t)=>{let{loading:r=!1,title:n=h.createElement("span",null,"Loading state"),center:o=null,right:i=null,active:a=!1,disabled:l=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:p,LinkWrapper:g=void 0,...m}=e,y={active:a,disabled:l},v=Ij(e),b=d||p;return _j("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),h.createElement(Pj,{"data-deprecated":"ListItem",ref:t,...m,...y,...v},h.createElement(h.Fragment,null,b&&h.createElement(Dj,{...y},b),n||o?h.createElement(Oj,{isIndented:s&&!b},n&&h.createElement(Tj,{...y,loading:r},n),o&&h.createElement(Rj,{...y},o)):null,i&&h.createElement(Aj,{...y},i)))});Pw.displayName="ListItem";var Iw=Pw,Fj=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}:{}),Lj=F.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),kj=({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:i,href:a}=r,l=f.useCallback(s=>t?.(s,{id:e,active:n,disabled:o,title:i,href:a}),[t,e,n,o,i,a]);return h.createElement(Iw,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},Fw=({links:e,LinkWrapper:t,...r})=>{wj("`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(i=>i.some(a=>"icon"in a&&a.icon||"input"in a&&a.input));return h.createElement(Fj,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(i=>i.length).map((i,a)=>h.createElement(Lj,{key:i.map(l=>l.id).join(`~${a}~`)},i.map(l=>"content"in l?h.createElement(f.Fragment,{key:l.id},l.content):h.createElement(kj,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))};const{deprecate:ds}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:Nj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Mj=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})),Bj=F.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),Eo=f.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},o)=>h.createElement(Mj,{...n,ref:o,innerStyle:e?void 0:r,scrollable:e},e?h.createElement(Bj,{innerStyle:r},t):t));Eo.displayName="Bar";var ef=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}:{});ef.displayName="Side";var jj=F.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),Hj=F(Eo)({paddingInline:0}),Qp=({children:e,backgroundColor:t,className:r="",...n})=>{Nj('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[o,i]=f.Children.toArray(e);return h.createElement(Hj,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},h.createElement(jj,{bgColor:t},h.createElement(ef,{scrollable:n.scrollable,left:!0},o),i?h.createElement(ef,{right:!0},i):null))};Qp.displayName="FlexBar";const{deprecate:Uj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var zj=e=>typeof e.props.href=="string",Kj=e=>typeof e.props.href!="string";function Gj({children:e,...t},r){let n={props:t,ref:r};if(zj(n))return h.createElement("a",{ref:n.ref,...n.props},e);if(Kj(n))return h.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var Lw=f.forwardRef(Gj);Lw.displayName="ButtonOrLink";var Wj=F(Lw,{shouldForwardProp:Ml})({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}}),Fi=f.forwardRef((e,t)=>(Uj("The `TabButton` component is deprecated. Use `TabList` instead."),h.createElement(Wj,{"data-deprecated":"TabButton",ref:t,...e})));Fi.displayName="TabButton";var Vj=F.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),qj=F.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),Yj=F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),Xj=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})),Li=({title:e,description:t,footer:r})=>h.createElement(Vj,null,h.createElement(qj,null,h.createElement(Yj,null,e),t&&h.createElement(Jj,null,t)),r&&h.createElement(Xj,null,r));const{deprecate:Zj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var kw=F.div(({active:e})=>e?{display:"block"}:{display:"none"}),Qj=e=>(Zj("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),f.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let i=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof i=="function"?i:({active:a})=>h.createElement(kw,{active:a,role:"tabpanel"},i)}}));const{deprecate:eH}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var tH=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"})),rH=F(Fi)(({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"?Lf(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`]}),EB=F(Se)({position:"absolute",top:4,right:4}),Pi=f.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:o,padding:i=8,...a},l)=>h.createElement(vB,{bgColor:t,hasChrome:r,hasCloseButton:!!o,padding:i,ref:l,...a},e,o&&h.createElement(EB,{ariaLabel:n,onClick:o,padding:"small",variant:"ghost",size:"small"},h.createElement(W2,null))));Pi.displayName="Popover";var G$=({id:e,title:t,description:r,icon:n,aside:o,children:i,isSelected:a,isActive:l,onClick:s,onFocus:u,onKeyDown:c,shouldLookDisabled:d=!1,...p})=>h.createElement(Ia.Item,{...p,id:e,role:"option",tabIndex:l?0:-1,"aria-selected":a,"aria-disabled":d?!0:void 0,onClick:s,onFocus:u,onKeyDown:c},i??h.createElement(h.Fragment,null,n&&h.createElement(Ia.Icon,null,n),h.createElement(Ia.Text,null,h.createElement("p",null,t),r&&h.createElement("small",null,r)),o));G$.displayName="SelectOption";var ua=5,W$=Symbol.for("undefined");function SB(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function Xd(e){return{...e,type:"option",value:Fa(e.value)}}function bc(e){return"type"in e&&e.type==="reset"?e:Xd(e)}function Fo(e){if(e!==W$)return e}function Fa(e){return e===void 0?W$:e}var xB=F("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function Hy(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var $B=F.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function Uy(e,t){return t===void 0?[]:SB(t)?e.filter(r=>r.value===t).map(Xd):e.filter(r=>t.some(n=>r.value===n)).map(Xd)}var wB=F(Se)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:vr(.93,r.barSelectedColor),color:r.base==="light"?Je(.1,r.color.secondary):r.color.secondary}:{}),CB=F.div({position:"fixed",inset:0,zIndex:1e3}),_B=({children:e,handleClose:t,triggerRef:r})=>{let n=h.useRef(null);ix({ref:n,onInteractOutside:t}),f.useEffect(()=>{if(n.current)return as([n.current],{shouldUseInert:!0})},[]);let{overlayProps:o}=Bp({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:i,underlayProps:a}=Hp({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),l=Uf();return o.style={...o.style,overflow:"hidden auto",scrollbarColor:`${l.barTextColor} transparent`,scrollbarWidth:"thin"},h.createElement(hl,{disableFocusManagement:!0,...i},h.createElement(CB,{...a}),h.createElement(Pi,{hasChrome:!0,ref:n,padding:0,...o},e))},V$=f.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:o,multiSelect:i=!1,onReset:a,padding:l="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:p,ariaLabel:g,showSelectedOptionTitle:m=!0,...y},v)=>{let[b,E]=f.useState(y.defaultOpen||!1),[S,x]=f.useState(!1),A=Gt(v),w=f.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),C=`${w}-listbox`,R=f.useRef(null),L=Ri({isOpen:b&&!r,onOpenChange:E}),I=f.useCallback(()=>{E(!1),x(!0)},[]);f.useEffect(()=>{!L.isOpen&&S&&(A.current?.ownerDocument?.defaultView&&A.current.focus(),x(!1))},[L.isOpen,S,A]);let[T,M]=f.useState(Uy(n,o)),H=f.useCallback(U=>{U.type==="reset"?(d?.([]),a?.(),M([])):M(i?z=>{let W=[];return z?.some(G=>G.value===U.value)?(c?.(Fo(U.value)),W=z?.filter(G=>G.value!==U.value)??[]):(u?.(Fo(U.value)),W=[...z??[],U]),d?.(W.map(G=>Fo(G.value))),W}:z=>z.every(W=>W.value!==U.value)?(u?.(Fo(U.value)),d?.([Fo(U.value)]),[U]):z)},[i,d,u,c,a]),$=f.useMemo(()=>a?{type:"reset",value:void 0,title:s??"Reset selection",icon:h.createElement(r3,null),description:void 0,children:void 0}:void 0,[a,s]),_=f.useMemo(()=>$?[$,...n]:n,[n,$]);f.useEffect(()=>{o&&M(Uy(n,o))},[o,n]);let[O,P]=f.useState(void 0),k=f.useCallback((U,z=!0)=>{P(bc(U)),!i&&z&&H(bc(U))},[i,H]),B=f.useCallback((U=1)=>{if(!b||!O){k(_[U===1?0:Math.min(U,_.length-1)]);return}let z=_.findIndex(X=>O.type==="reset"?"type"in X&&X.type==="reset":Fa(X.value)===O.value),W=z+U,G;W>=_.length&&z===_.length-1?G=_[0]:G=_[Math.min(_.length-1,W)],k(G)},[b,O,k,_]),N=f.useCallback((U=1)=>{if(!b||!O){k(_[Math.max(0,_.length-U)]);return}let z=_.findIndex(X=>O.type==="reset"?"type"in X&&X.type==="reset":Fa(X.value)===O.value),W=z-U,G;W<0&&z===0?G=_[_.length-1]:G=_[Math.max(0,W)],k(G)},[b,O,k,_]),D=f.useCallback(U=>{let z=Re=>{U.preventDefault(),k(_[Re]),E(!0)},W=_.findIndex(Re=>T.some(Z=>Z.value===Fa(Re.value))),G=W!==-1,X=$&&!G?1:0,ie=_.length-1;U.key==="Enter"||U.key===" "?z(G?Math.min(W,ie):X):U.key==="ArrowDown"?z(G?Math.min(W+1,ie):X):U.key==="ArrowUp"?z(G?Math.max(W-1,X):ie):U.key==="Home"?z(X):U.key==="End"?z(ie):U.key==="PageDown"?z(Math.min((G?W:X)+ua,ie)):U.key==="PageUp"&&z(Math.max(0,(G?W:ie)-ua))},[_,$,k,T]),j=f.useCallback(U=>{U.key!=="Tab"?U.preventDefault():I(),U.key==="Escape"?I():U.key==="ArrowDown"?B():U.key==="ArrowUp"?N():U.key==="Home"?k(_[0]):U.key==="End"?k(_[_.length-1]):U.key==="PageDown"?B(ua):U.key==="PageUp"&&N(ua)},[I,B,N,_,k]);f.useEffect(()=>{if(b&&O){let U=document.getElementById(Hy(w,O));U&&(U.scrollIntoView({block:"nearest"}),U.focus())}else b&&R.current?.focus()},[b,O,w]);let K=f.useMemo(()=>T.length===1?`${g} ${T[0].title}`:T.length?`${g}, ${T.length} values selected`:g,[g,T]);return h.createElement(h.Fragment,null,h.createElement(wB,{...y,variant:"ghost",ariaLabel:K,tooltip:p??g,disableAllTooltips:b,id:w,ref:A,padding:l,$isOpen:b,$hasSelection:!!T.length,"aria-disabled":r,disabled:r,onClick:()=>{b?I():E(!0)},tabIndex:b?-1:0,onKeyDown:D,role:"button","aria-controls":b?C:void 0,"aria-expanded":b,"aria-haspopup":"listbox"},!i&&h.createElement(h.Fragment,null,t,m&&T[0]?.title||e),i&&h.createElement(h.Fragment,null,t,e,!!T.length&&h.createElement($B,{"aria-label":`${T.length} ${T.length>1?"items":"item"} selected`},T?.length))),L.isOpen&&h.createElement(_B,{handleClose:I,triggerRef:A},h.createElement(xB,{"aria-label":g,role:"listbox",id:C,ref:R,"aria-multiselectable":i,onKeyDown:j,tabIndex:b?0:-1},_.map(U=>({option:bc(U),externalOption:U})).map(({externalOption:U,option:z})=>{let W=T?.some(X=>X.value===z.value)&&z!==$,G=z===$;return h.createElement(G$,{key:z.value===void 0?"sb-reset":String(z.value),title:z.title,description:z.description,aside:z.aside,icon:!G&&i?h.createElement(Tn.Checkbox,{checked:W,hidden:!0,role:"presentation"}):z.icon,id:Hy(w,z),isActive:b&&O?.value===z.value,isSelected:W,onClick:()=>{H(z),i||I()},onFocus:()=>k(U,!1),shouldLookDisabled:G&&T.length===0&&i,onKeyDown:X=>{X.key==="Enter"||X.key===" "?(X.preventDefault(),H(z),i||I()):X.key==="Tab"&&(i||H(z),I())}},z.children)}))))});V$.displayName="Select";const{deprecate:TB}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var An=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}},q$=class extends An{filter(e,t,r){let[n,o]=Z$(e,t,this.firstChildKey,r),i=this.clone();return i.firstChildKey=n,i.lastChildKey=o,i}},Y$=class extends An{};Y$.type="header";var AB=class extends An{};AB.type="loader";var X$=class extends q${filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};X$.type="item";var J$=class extends q${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}};J$.type="section";var OB=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]=Z$(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 Z$(e,t,r,n){if(r==null)return[null,null];let o=null,i=null,a=e.getItem(r);for(;a!=null;){let u=a.filter(e,t,n);u!=null&&(u.nextKey=null,i&&(u.prevKey=i.key,i.nextKey=u.key),o==null&&(o=u),t.addNode(u),i=u),a=a.nextKey?e.getItem(a.nextKey):null}if(i&&i.type==="separator"){let u=i.prevKey;t.removeNode(i.key),u?(i=t.getItem(u),i.nextKey=null):i=null}var l,s;return[(l=o?.key)!==null&&l!==void 0?l:null,(s=i?.key)!==null&&s!==void 0?s:null]}var Q$=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}},vc=class Jd extends Q${get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof Jd?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,i,a,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 Jd&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var p;c.prevKey=(p=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&p!==void 0?p: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=(a=this.firstVisibleChild)===null||a===void 0||(i=a.node)===null||i===void 0?void 0:i.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,i){let a,{value:l,textValue:s,id:u,...c}=t;if(this.node==null?(a=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),c.ref=r,a.props=c,a.rendered=o,a.render=i,a.value=l,a.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==a.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(a.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,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let a=t.previousVisibleSibling,l=t.nextVisibleSibling;a&&t.ownerDocument.markDirty(a),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}},RB=class extends Q${get isConnected(){return this.isMounted}createElement(e){return new vc(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 a of this.dirtyNodes)a instanceof vc&&(!a.isConnected||a.isHidden)?this.removeNode(a):a.updateChildIndices();for(let a of this.dirtyNodes)a instanceof vc&&(a.isConnected&&!a.isHidden&&(a.updateNode(),this.addNode(a)),a.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,o,i;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,(i=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&i!==void 0?i: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 ew(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=e,a=f.useMemo(()=>new WeakMap,i);return f.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=a.get(c);if(!d){d=t(c);var l,s;let p=(s=(l=d.props.id)!==null&&l!==void 0?l:c.key)!==null&&s!==void 0?s:c.id;if(p==null)throw new Error("Could not determine key for item");n&&(p=n+":"+p),d=f.cloneElement(d,o?{key:p,id:p,value:c}:{key:p}),a.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,a,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 gl=f.createContext(!1);function DB(e){if(f.useContext(gl))return h.createElement(h.Fragment,null,e.children);let t=h.createElement(gl.Provider,{value:!0},e.children);return h.createElement("template",{"data-react-aria-hidden":!0},t)}function Vp(e){let t=(r,n)=>f.useContext(gl)?null:e(r,n);return t.displayName=e.displayName||e.name,f.forwardRef(t)}function PB(){return f.useContext(gl)}var tw=f.createContext(!1),pi=f.createContext(null);function rw(e){if(f.useContext(pi))return e.content;let{collection:t,document:r}=kB(e.createCollection);return h.createElement(h.Fragment,null,h.createElement(DB,null,h.createElement(pi.Provider,{value:r},e.content)),h.createElement(IB,{render:e.children,collection:t}))}function IB({collection:e,render:t}){return t(e)}function FB(e,t,r){let n=_n(),o=f.useRef(n);o.current=n;let i=f.useCallback(()=>o.current?r():t(),[t,r]);return G8.useSyncExternalStore(e,i)}var LB=typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore:FB;function kB(e){let[t]=f.useState(()=>new RB(e?.()||new OB)),r=f.useCallback(a=>t.subscribe(a),[t]),n=f.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=f.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),i=LB(r,n,o);return pe(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:i,document:t}}var Zd=f.createContext(null);function NB(e){var t;return t=class extends An{},t.type=e,t}function nw(e,t,r,n,o,i){typeof e=="string"&&(e=NB(e));let a=f.useCallback(s=>{s?.setProps(t,r,e,n,i)},[t,r,n,i,e]),l=f.useContext(Zd);if(l){let s=l.ownerDocument.nodesByProps.get(t);return s||(s=l.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,i),l.appendChild(s),l.ownerDocument.updateCollection(),l.ownerDocument.nodesByProps.set(t,s)),o?h.createElement(Zd.Provider,{value:s},o):null}return h.createElement(e.type,{ref:a},o)}function ss(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=f.forwardRef((o,i)=>{let a=f.useContext(ul);if(!f.useContext(tw)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return nw(e,o,i,"children"in o?o.children:null,null,l=>h.createElement(ul.Provider,{value:a},h.createElement(r,{node:l})))});return n.displayName=t.name,n}function qp(e,t,r=ow){let n=({node:i})=>t(i.props,i.props.ref,i),o=f.forwardRef((i,a)=>{let l=r(i);var s;return(s=nw(e,i,a,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 ow(e){return ew({...e,addIdAndValue:!0})}var zy=f.createContext(null);function iw(e){let t=f.useContext(zy),r=(t?.dependencies||[]).concat(e.dependencies),n=e.idScope||t?.idScope,o=ow({...e,idScope:n,dependencies:r});return f.useContext(pi)&&(o=h.createElement(MB,null,o)),t=f.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),h.createElement(zy.Provider,{value:t},o)}function MB({children:e}){let t=f.useContext(pi),r=f.useMemo(()=>h.createElement(pi.Provider,{value:null},h.createElement(tw.Provider,{value:!0},e)),[e]);return _n()?h.createElement(Zd.Provider,{value:t},r):vi.createPortal(r,t)}var aw=f.createContext({});Vp(function(e,t){[e,t]=Qe(e,t,aw);let{elementType:r="label",...n}=e;return h.createElement(r,{className:"react-aria-Label",...n,ref:t})});function BB(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=We(t);let a=We(),l={};r&&(n=n?`${a} ${n}`:a,l={id:a,htmlFor:i==="label"?t:void 0});let s=ts({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:l,fieldProps:s}}function jB(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,l=Te(e,{labelable:!0}),{labelProps:s,fieldProps:u}=BB({...e,labelElementType:"span"});t=li(t,r,n);let c=(t-r)/(n-r),d=a9(a);if(!i&&!o){let p=a.style==="percent"?c:t;o=d.format(p)}return{progressBarProps:re(l,{...u,"aria-valuenow":i?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:s}}var lw=f.createContext(null);f.forwardRef(function(e,t){[e,t]=Qe(e,t,lw);let{value:r=0,minValue:n=0,maxValue:o=100,isIndeterminate:i=!1}=e;r=li(r,n,o);let[a,l]=ax(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=jB({...e,label:l}),c=i?void 0:(r-n)/(o-n)*100,d=St({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:i}}),p=Te(e,{global:!0});return h.createElement("div",{...re(p,d,s),ref:t,slot:e.slot||void 0},h.createElement(aw.Provider,{value:{...u,ref:a,elementType:"span"}},d.children))});function HB(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:p,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?p: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}=Ai({onPressStart:i,onPressEnd:a,onPressChange:s,onPress:o,onPressUp:l,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:S}=Oi(e,t);c&&(S.tabIndex=n?-1:S.tabIndex);let x=re(S,b,Te(e,{labelable:!0}));return{isPressed:E,buttonProps:re(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 sw=f.createContext({});Vp(function(e,t){[e,t]=Qe(e,t,sw),e=UB(e);let r=e,{isPending:n}=r,{buttonProps:o,isPressed:i}=HB(e,t),{focusProps:a,isFocused:l,isFocusVisible:s}=is(e),{hoverProps:u,isHovered:c}=vo({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||i)&&!n,isFocused:l,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},p=St({...e,values:d,defaultClassName:"react-aria-Button"}),g=We(o.id),m=We(),y=o["aria-labelledby"];n&&(y?y=`${y} ${m}`:o["aria-label"]&&(y=`${g} ${m}`));let v=f.useRef(n);f.useEffect(()=>{let E={"aria-labelledby":y||g};(!v.current&&l&&n||v.current&&l&&!n)&&nd(E,"assertive"),v.current=n},[n,l,y,g]);let b=Te(e,{global:!0});return delete b.onClick,h.createElement("button",{...re(b,p,o,a,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(lw.Provider,{value:{id:m}},p.children))});function UB(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 Yp=f.createContext(null),Ky=f.createContext(null),zB=f.forwardRef(function(e,t){[e,t]=Qe(e,t,Yp);let r=f.useContext(cs),n=Ri(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,i=WS(t,o.isOpen)||e.isExiting||!1,a=PB(),{direction:l}=wr();if(a){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&&!i?null:h.createElement(KB,{...e,triggerRef:e.triggerRef,state:o,popoverRef:t,isExiting:i,dir:l})});function KB({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...o}){let i=f.useRef(null),a=f.useRef(null),l=f.useContext(Ky),s=l&&o.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:p,placement:g,triggerAnchorPoint:m}=k9({...o,offset:(u=o.offset)!==null&&u!==void 0?u:8,arrowRef:i,groupRef:s?l:a},e),y=o.popoverRef,v=GS(y,!!g)||o.isEntering||!1,b=St({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:g,isEntering:v,isExiting:t}}),E=!o.isNonModal||o.trigger==="SubmenuTrigger",[S,x]=f.useState(!1);pe(()=>{y.current&&x(E&&!y.current.querySelector("[role=dialog]"))},[y,E]),f.useEffect(()=>{S&&o.trigger!=="SubmenuTrigger"&&y.current&&!y.current.contains(document.activeElement)&&Br(y.current)},[S,y,o.trigger]);let A=f.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]),w={...c.style,"--trigger-anchor-point":m?`${m.x}px ${m.y}px`:void 0,...b.style},C=h.createElement("div",{...re(Te(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:w,dir:o.dir,"data-trigger":o.trigger,"data-placement":g,"data-entering":v||void 0,"data-exiting":t||void 0},!o.isNonModal&&h.createElement(Ay,{onDismiss:e.close}),h.createElement(Np.Provider,{value:{...p,placement:g,ref:i}},A),h.createElement(Ay,{onDismiss:e.close}));if(!s)return h.createElement(hl,{...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:a,style:{display:"contents"}},h.createElement(Ky.Provider,{value:a},C)));var R;return h.createElement(hl,{...o,shouldContainFocus:S,isExiting:t,portalContainer:(R=r??l?.current)!==null&&R!==void 0?R:void 0},C)}var uw=f.createContext(null);qp("section",(e,t,r)=>{let{name:n,render:o}=f.useContext(uw);return o(e,t,r,"react-aria-Section")});var cw={CollectionRoot({collection:e,renderDropIndicator:t}){return Gy(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Gy(e,t,r)}};function Gy(e,t,r){return ew({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,GB(e,n,r))}})}function GB(e,t,r){let n=t.key,o=e.getKeyAfter(n),i=o!=null?e.getItem(o):null;for(;i!=null&&i.type!=="item";)o=e.getKeyAfter(i.key),i=o!=null?e.getItem(o):null;let a=t.nextKey!=null?e.getItem(t.nextKey):null;for(;a!=null&&a.type!=="item";)a=a.nextKey!=null?e.getItem(a.nextKey):null;let l=[];if(a==null){let s=t;for(;s&&(!i||s.parentKey!==i.parentKey&&i.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});f.isValidElement(u)&&l.push(f.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return l}var Ii=f.createContext(cw);function dw(e){return f.useMemo(()=>e!=null?new Set([e]):null,[e])}var Wy=f.createContext(null),WB=f.createContext(null),fw=f.createContext({});ss(Y$,function(e,t){return[e,t]=Qe(e,t,fw),h.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var pw=f.createContext({});f.forwardRef(function(e,t){return[e,t]=Qe(e,t,pw),h.createElement("kbd",{dir:"ltr",...e,ref:t})});function VB(e){let t=Te(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var hw=f.createContext({}),gw=class extends An{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}};gw.type="separator";ss(gw,function(e,t){[e,t]=Qe(e,t,hw);let{elementType:r,orientation:n,style:o,className:i,slot:a,...l}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=VB({...l,elementType:r,orientation:n}),c=Te(e,{global:!0});return h.createElement(s,{...re(c,u),style:o,className:i??"react-aria-Separator",ref:t,slot:a||void 0})});var mw=new WeakMap;function Qd(e){return Wk()?e.altKey:e.ctrlKey}function La(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}var yw=new WeakMap;function qB(e){let t=We();return yw.set(e,t),t}function YB(e){return yw.get(e)}var XB=1e3;function JB(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=f.useRef({search:"",timeout:void 0}).current,i=a=>{let l=ZB(a.key);if(!(!l||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||o.search.length===0&&l===" ")){if(l===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.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=""},XB)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function ZB(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function bw(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,isVirtualized:g,scrollRef:m=n,linkBehavior:y="action"}=e,{direction:v}=wr(),b=Ql(),E=P=>{var k;if(P.altKey&&P.key==="Tab"&&P.preventDefault(),!(!((k=n.current)===null||k===void 0)&&k.contains(P.target)))return;let B=(V,q)=>{if(V!=null){if(t.isLink(V)&&y==="selection"&&u&&!Qd(P)){vi.flushSync(()=>{t.setFocusedKey(V,q)});let te=La(n,V),ce=t.getItemProps(V);te&&b.open(te,P,ce.href,ce.routerOptions);return}if(t.setFocusedKey(V,q),t.isLink(V)&&y==="override")return;P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&!Qd(P)&&t.replaceSelection(V)}};switch(P.key){case"ArrowDown":if(r.getKeyBelow){var N,D,j;let V=t.focusedKey!=null?(N=r.getKeyBelow)===null||N===void 0?void 0:N.call(r,t.focusedKey):(D=r.getFirstKey)===null||D===void 0?void 0:D.call(r);V==null&&i&&(V=(j=r.getFirstKey)===null||j===void 0?void 0:j.call(r,t.focusedKey)),V!=null&&(P.preventDefault(),B(V))}break;case"ArrowUp":if(r.getKeyAbove){var K,U,z;let V=t.focusedKey!=null?(K=r.getKeyAbove)===null||K===void 0?void 0:K.call(r,t.focusedKey):(U=r.getLastKey)===null||U===void 0?void 0:U.call(r);V==null&&i&&(V=(z=r.getLastKey)===null||z===void 0?void 0:z.call(r,t.focusedKey)),V!=null&&(P.preventDefault(),B(V))}break;case"ArrowLeft":if(r.getKeyLeftOf){var W,G,X;let V=t.focusedKey!=null?(W=r.getKeyLeftOf)===null||W===void 0?void 0:W.call(r,t.focusedKey):null;V==null&&i&&(V=v==="rtl"?(G=r.getFirstKey)===null||G===void 0?void 0:G.call(r,t.focusedKey):(X=r.getLastKey)===null||X===void 0?void 0:X.call(r,t.focusedKey)),V!=null&&(P.preventDefault(),B(V,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var ie,Re,Z;let V=t.focusedKey!=null?(ie=r.getKeyRightOf)===null||ie===void 0?void 0:ie.call(r,t.focusedKey):null;V==null&&i&&(V=v==="rtl"?(Re=r.getLastKey)===null||Re===void 0?void 0:Re.call(r,t.focusedKey):(Z=r.getFirstKey)===null||Z===void 0?void 0:Z.call(r,t.focusedKey)),V!=null&&(P.preventDefault(),B(V,v==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&P.shiftKey)return;P.preventDefault();let V=r.getFirstKey(t.focusedKey,kn(P));t.setFocusedKey(V),V!=null&&(kn(P)&&P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(V):u&&t.replaceSelection(V))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&P.shiftKey)return;P.preventDefault();let V=r.getLastKey(t.focusedKey,kn(P));t.setFocusedKey(V),V!=null&&(kn(P)&&P.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&&(P.preventDefault(),B(V))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let V=r.getKeyPageAbove(t.focusedKey);V!=null&&(P.preventDefault(),B(V))}break;case"a":kn(P)&&t.selectionMode==="multiple"&&l!==!0&&(P.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(P.stopPropagation(),P.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(P.shiftKey)n.current.focus();else{let V=dt(n.current,{tabbable:!0}),q,te;do te=V.lastChild(),te&&(q=te);while(te);q&&!q.contains(document.activeElement)&&ut(q)}break}}},S=f.useRef({top:0,left:0});Bo(m,"scroll",g?void 0:()=>{var P,k,B,N;S.current={top:(B=(P=m.current)===null||P===void 0?void 0:P.scrollTop)!==null&&B!==void 0?B:0,left:(N=(k=m.current)===null||k===void 0?void 0:k.scrollLeft)!==null&&N!==void 0?N:0}});let x=P=>{if(t.isFocused){P.currentTarget.contains(P.target)||t.setFocused(!1);return}if(P.currentTarget.contains(P.target)){if(t.setFocused(!0),t.focusedKey==null){var k,B;let j=U=>{U!=null&&(t.setFocusedKey(U),u&&!t.isSelected(U)&&t.replaceSelection(U))},K=P.relatedTarget;var N,D;K&&P.currentTarget.compareDocumentPosition(K)&Node.DOCUMENT_POSITION_FOLLOWING?j((N=t.lastSelectedKey)!==null&&N!==void 0?N:(k=r.getLastKey)===null||k===void 0?void 0:k.call(r)):j((D=t.firstSelectedKey)!==null&&D!==void 0?D:(B=r.getFirstKey)===null||B===void 0?void 0:B.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=La(n,t.focusedKey);j instanceof HTMLElement&&(!j.contains(document.activeElement)&&!d&&ut(j),di()==="keyboard"&&V0(j,{containingElement:n.current}))}}},A=P=>{P.currentTarget.contains(P.relatedTarget)||t.setFocused(!1)},w=f.useRef(!1);Bo(n,s7,d?P=>{let{detail:k}=P;P.stopPropagation(),t.setFocused(!0),k?.focusStrategy==="first"&&(w.current=!0)}:void 0);let C=Ue(()=>{var P,k;let B=(k=(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))!==null&&k!==void 0?k:null;if(B==null){let N=Be();Px(n.current),Ix(N,null),t.collection.size>0&&(w.current=!1)}else t.setFocusedKey(B),w.current=!1});G0(()=>{w.current&&C()},[t.collection,C]);let R=Ue(()=>{t.collection.size>0&&(w.current=!1)});G0(()=>{R()},[t.focusedKey,R]),Bo(n,l7,d?P=>{var k;P.stopPropagation(),t.setFocused(!1),!((k=P.detail)===null||k===void 0)&&k.clearFocusKey&&t.setFocusedKey(null)}:void 0);let L=f.useRef(o),I=f.useRef(!1);f.useEffect(()=>{if(L.current){var P,k;let D=null;var B;o==="first"&&(D=(B=(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))!==null&&B!==void 0?B:null);var N;o==="last"&&(D=(N=(k=r.getLastKey)===null||k===void 0?void 0:k.call(r))!==null&&N!==void 0?N:null);let j=t.selectedKeys;if(j.size){for(let K of j)if(t.canSelectItem(K)){D=K;break}}t.setFocused(!0),t.setFocusedKey(D),D==null&&!d&&n.current&&Br(n.current),t.collection.size>0&&(L.current=!1,I.current=!0)}});let T=f.useRef(t.focusedKey),M=f.useRef(null);f.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==T.current||I.current)&&m.current&&n.current){let P=di(),k=La(n,t.focusedKey);if(!(k instanceof HTMLElement))return;(P==="keyboard"||I.current)&&(M.current&&cancelAnimationFrame(M.current),M.current=requestAnimationFrame(()=>{m.current&&(zS(m.current,k),P!=="virtual"&&V0(k,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&T.current!=null&&n.current&&Br(n.current),T.current=t.focusedKey,I.current=!1}),f.useEffect(()=>()=>{M.current&&cancelAnimationFrame(M.current)},[]),Bo(n,"react-aria-focus-scope-restore",P=>{P.preventDefault(),t.setFocused(!0)});let H={onKeyDown:E,onFocus:x,onBlur:A,onMouseDown(P){m.current===P.target&&P.preventDefault()}},{typeSelectProps:$}=JB({keyboardDelegate:r,selectionManager:t});c||(H=re($,H));let _;d||(_=t.focusedKey==null?0:-1);let O=qB(t.collection);return{collectionProps:re(H,{tabIndex:_,"data-collection":O})}}function vw(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:l,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,p=Ql();t=We(t);let g=N=>{if(N.pointerType==="keyboard"&&Qd(N))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let D=r.getItemProps(n);p.open(o.current,N,D.href,D.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):N&&N.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||N&&(kn(N)||N.pointerType==="touch"||N.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};f.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(a?Px(o.current):l?l():document.activeElement!==o.current&&o.current&&Br(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),s=s||r.isDisabled(n);let m={};!a&&!s?m={tabIndex:n===r.focusedKey?0:-1,onFocus(N){N.target===o.current&&r.setFocusedKey(n)}}:s&&(m.onMouseDown=N=>{N.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),A=S&&E&&r.selectionBehavior==="replace",w=x||A,C=f.useRef(null),R=w&&E,L=f.useRef(!1),I=f.useRef(!1),T=r.getItemProps(n),M=N=>{if(u){var D;u(),(D=o.current)===null||D===void 0||D.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}b&&o.current&&p.open(o.current,N,T.href,T.routerOptions)},H={ref:o};if(i?(H.onPressStart=N=>{C.current=N.pointerType,L.current=R,N.pointerType==="keyboard"&&(!w||qy())&&g(N)},c?(H.onPressUp=x?void 0:N=>{N.pointerType==="mouse"&&E&&g(N)},H.onPress=x?M:N=>{N.pointerType!=="keyboard"&&N.pointerType!=="mouse"&&E&&g(N)}):H.onPress=N=>{if(x||A&&N.pointerType!=="mouse"){if(N.pointerType==="keyboard"&&!Vy())return;M(N)}else N.pointerType!=="keyboard"&&E&&g(N)}):(H.onPressStart=N=>{C.current=N.pointerType,L.current=R,I.current=x,E&&(N.pointerType==="mouse"&&!x||N.pointerType==="keyboard"&&(!S||qy()))&&g(N)},H.onPress=N=>{(N.pointerType==="touch"||N.pointerType==="pen"||N.pointerType==="virtual"||N.pointerType==="keyboard"&&w&&Vy()||N.pointerType==="mouse"&&I.current)&&(w?M(N):E&&g(N))}),m["data-collection"]=YB(r.collection),m["data-key"]=n,H.preventFocusOnPress=a,a&&(H=re(H,{onPressStart(N){N.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(N){N.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),T)for(let N of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])T[N]&&(H[N]=Ti(H[N],T[N]));let{pressProps:$,isPressed:_}=Ai(H),O=A?N=>{C.current==="mouse"&&(N.stopPropagation(),N.preventDefault(),M(N))}:void 0,{longPressProps:P}=U7({isDisabled:!R,onLongPress(N){N.pointerType==="touch"&&(g(N),r.setSelectionBehavior("toggle"))}}),k=N=>{C.current==="touch"&&L.current&&N.preventDefault()},B=d!=="none"&&r.isLink(n)?N=>{vn.isOpening||N.preventDefault()}:void 0;return{itemProps:re(m,E||x||a&&!s?$:{},R?P:{},{onDoubleClick:O,onDragStartCapture:k,onClick:B,id:t},a?{onMouseDown:N=>N.preventDefault()}:void 0),isPressed:_,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:E,hasAction:w}}function Vy(){return window.event?.key==="Enter"}function qy(){let e=window.event;return e?.key===" "||e?.code==="Space"}var Yy=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?La(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}},QB=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 i=o;do{if(n=t(n),n==null)break;o=this.layoutDelegate.getItemRect(n)}while(o&&r(i,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&&!eo(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&&!eo(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 i=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(i,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 Yy(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 Yy(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function ej(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,l=l9({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=f.useMemo(()=>i||new QB({collection:r,disabledKeys:n,disabledBehavior:s,ref:o,collator:l,layoutDelegate:a}),[i,a,r,n,o,l,s]),{collectionProps:c}=bw({...e,ref:o,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function tj(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:i,...a}=e;!e["aria-label"]&&e["aria-labelledby"];let l=Te(e,{labelable:!0}),{listProps:s}=ej({...a,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return mw.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:re(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function Ew(e){return null}Ew.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:o}=e,i=e.title||e.children,a=e.textValue||(typeof i=="string"?i:"")||e["aria-label"]||"";!a&&t?.suppressTextValueWarning,yield{type:"item",props:e,rendered:i,textValue:a,"aria-label":e["aria-label"],hasChildNodes:rj(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 rj(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&h.Children.count(e.children)>0)}var nj=Ew,oj=class{build(e,t){return this.context=t,Xy(()=>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,i=>{i&&n.push(i)});let o=0;for(let i of n){let a=this.getFullNode({element:i,index:o},{});for(let l of a)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 i;let a=(i=o.key)!==null&&i!==void 0?i:o.id;if(a==null)throw new Error("No key found for item");return a}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 i=e.element;if(!i&&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}i=t.renderer(e.value)}if(h.isValidElement(i)){let y=i.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let S=i.type;throw new Error(`Unknown element <${S}> in collection.`)}let v=y.getCollectionNode(i.props,this.context);var a;let b=(a=e.index)!==null&&a!==void 0?a: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(i,e,t,r));let A=[...this.getFullNode({...S,key:x,index:b,wrapper:ij(e.wrapper,S.wrapper)},this.getChildState(t,S),r?`${r}${i.key}`:i.key,n)];for(let w of A){var s,u;w.value=(u=(s=S.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,w.value&&this.cache.set(w.value,w);var c;if(e.type&&w.type!==e.type)throw new Error(`Unsupported type <${Ec(w.type)}> in <${Ec((c=n?.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${Ec(e.type)}> is supported.`);b++,yield w}E=v.next(A)}return}if(e.key==null||e.type==null)return;let d=this;var p,g;let m={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(p=e.value)!==null&&p!==void 0?p: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:Xy(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 Xy(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 ij(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Ec(e){return e[0].toUpperCase()+e.slice(1)}function Sw(e,t,r){let n=f.useMemo(()=>new oj,[]),{children:o,items:i,collection:a}=e;return f.useMemo(()=>{if(a)return a;let l=n.build({children:o,items:i},r);return t(l)},[n,o,i,a,r,t])}function xw(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function aj(e){return lj(e)}function lj(e,t){for(let r of e)return r}function Sc(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...Jy(e,t),t],o=[...Jy(e,r),r],i=n.slice(0,o.length).findIndex((a,l)=>a!==o[l]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(a=>a===r)>=0?1:(o.findIndex(a=>a===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 Zy=new WeakMap;function sj(e){let t=Zy.get(e);if(t!=null)return t;let r=0,n=o=>{for(let i of o)i.type==="section"?n(xw(i,e)):i.type==="item"&&r++};return n(e),Zy.set(e,r),r}function uj(e,t,r){let{id:n,key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":l,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:p,onClick:g,onHoverStart:m,onHoverChange:y,onHoverEnd:v,onKeyDown:b,onKeyUp:E,onFocus:S,onFocusChange:x,onBlur:A,selectionManager:w=t.selectionManager}=e,C=!!l,R=C&&e["aria-expanded"]==="true";var L;let I=(L=e.isDisabled)!==null&&L!==void 0?L:w.isDisabled(o);var T;let M=(T=e.isSelected)!==null&&T!==void 0?T:w.isSelected(o),H=mw.get(t),$=t.collection.getItem(o),_=e.onClose||H.onClose,O=Ql(),P=()=>{var J;if(!C&&(!($==null||(J=$.props)===null||J===void 0)&&J.onAction?$.props.onAction():e.onAction&&e.onAction(o),H.onAction)){let nt=H.onAction;nt(o)}},k="menuitem";C||(w.selectionMode==="single"?k="menuitemradio":w.selectionMode==="multiple"&&(k="menuitemcheckbox"));let B=Ra(),N=Ra(),D=Ra(),j={id:n,"aria-disabled":I||void 0,role:k,"aria-label":e["aria-label"],"aria-labelledby":B,"aria-describedby":[N,D].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};w.selectionMode!=="none"&&!C&&(j["aria-checked"]=M),a&&(j["aria-posinset"]=$?.index,j["aria-setsize"]=sj(t.collection));let K=f.useRef(!1),U=J=>{d?.(J),K.current=J},z=f.useRef(null),W=J=>{J.pointerType!=="keyboard"&&(z.current={pointerType:J.pointerType}),J.pointerType==="mouse"&&(K.current||J.target.click()),u?.(J)},G=J=>{var nt,Pt;g?.(J),P(),Zk(J,O,$.props.href,$?.props.routerOptions);let gt=((nt=z.current)===null||nt===void 0?void 0:nt.pointerType)==="keyboard"?((Pt=z.current)===null||Pt===void 0?void 0:Pt.key)==="Enter"||w.selectionMode==="none"||w.isLink(o):w.selectionMode!=="multiple"||w.isLink(o);gt=i??gt,_&&!C&&gt&&_(),z.current=null},{itemProps:X,isFocused:ie}=vw({id:n,selectionManager:w,key:o,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:H.shouldUseVirtualFocus}),{pressProps:Re,isPressed:Z}=Ai({onPressStart:s,onPress:c,onPressUp:W,onPressChange:U,onPressEnd:p,isDisabled:I}),{hoverProps:V}=vo({isDisabled:I,onHoverStart(J){!ci()&&!(R&&l)&&(w.setFocused(!0),w.setFocusedKey(o)),m?.(J)},onHoverChange:y,onHoverEnd:v}),{keyboardProps:q}=ox({onKeyDown:J=>{if(J.repeat){J.continuePropagation();return}switch(J.key){case" ":z.current={pointerType:"keyboard",key:" "},J.target.click();break;case"Enter":z.current={pointerType:"keyboard",key:"Enter"},J.target.tagName!=="A"&&J.target.click();break;default:C||J.continuePropagation(),b?.(J);break}},onKeyUp:E}),{focusProps:te}=Fp({onBlur:A,onFocus:S,onFocusChange:x}),ce=Te($?.props);delete ce.id;let rt=jS($?.props);return{menuItemProps:{...j,...re(ce,rt,C?{onFocus:X.onFocus,"data-collection":X["data-collection"],"data-key":X["data-key"]}:X,Re,V,q,te,H.shouldUseVirtualFocus||C?{onMouseDown:J=>J.preventDefault()}:void 0,I?void 0:{onClick:G}),tabIndex:X.tabIndex!=null&&R&&!H.shouldUseVirtualFocus?-1:X.tabIndex},labelProps:{id:B},descriptionProps:{id:N},keyboardShortcutProps:{id:D},isFocused:ie,isFocusVisible:ie&&w.isFocused&&ci()&&!R,isSelected:M,isPressed:Z,isDisabled:I}}function cj(e){let{heading:t,"aria-label":r}=e,n=We();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var ca=2,dj=50,fj=1e3,Qy=Math.PI/12;function pj(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:o}=e,i=f.useRef(void 0),a=f.useRef(void 0),l=f.useRef(0),s=f.useRef(void 0),u=f.useRef(void 0),c=f.useRef(void 0),d=f.useRef(2),[p,g]=f.useState(!1);il({ref:r,onResize:()=>{r.current&&(a.current=r.current.getBoundingClientRect(),c.current=void 0)}});let m=()=>{g(!1),d.current=ca,i.current=void 0},y=O7(),v=Ue(b=>{p&&b.preventDefault()});f.useEffect(()=>{p&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,p]),f.useEffect(()=>{let b=r.current,E=t.current;if(o||!b||!n||y!=="pointer"||!E){m();return}a.current=b.getBoundingClientRect();let S=x=>{if(x.pointerType==="touch"||x.pointerType==="pen")return;let A=Date.now();if(A-l.current<dj)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:w,clientY:C}=x;if(!i.current){i.current={x:w,y:C};return}if(!a.current)return;if(c.current||(c.current=w>a.current.right?"left":"right"),w<E.getBoundingClientRect().left||w>E.getBoundingClientRect().right||C<E.getBoundingClientRect().top||C>E.getBoundingClientRect().bottom){m();return}let R=i.current.x,L=i.current.y,I=c.current==="right"?a.current.left-R:R-a.current.right,T=Math.atan2(L-a.current.top,I)+Qy,M=Math.atan2(L-a.current.bottom,I)-Qy,H=Math.atan2(L-C,c.current==="left"?-(w-R):w-R),$=H<T&&H>M;d.current=$?Math.min(d.current+1,ca):Math.max(d.current-1,0),d.current>=ca?g(!0):g(!1),l.current=A,i.current={x:w,y:C},$&&(s.current=setTimeout(()=>{m(),u.current=setTimeout(()=>{let _=document.elementFromPoint(w,C);_&&E.contains(_)&&_.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},fj))};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=ca}},[o,n,t,y,g,v,r])}function hj(e,t,r){let{parentMenuRef:n,submenuRef:o,type:i="menu",isDisabled:a,delay:l=200,shouldUseVirtualFocus:s}=e,u=We(),c=We(),{direction:d}=wr(),p=f.useRef(void 0),g=f.useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=void 0)},[p]),m=Ue(R=>{g(),t.open(R)}),y=Ue(()=>{g(),t.close()});pe(()=>()=>{g()},[g]);let v=R=>{if(R.currentTarget.contains(document.activeElement))switch(R.key){case"ArrowLeft":d==="ltr"&&R.currentTarget.contains(R.target)&&(R.preventDefault(),R.stopPropagation(),y(),!s&&r.current&&ut(r.current));break;case"ArrowRight":d==="rtl"&&R.currentTarget.contains(R.target)&&(R.preventDefault(),R.stopPropagation(),y(),!s&&r.current&&ut(r.current));break;case"Escape":var L;!((L=o.current)===null||L===void 0)&&L.contains(R.target)&&(R.stopPropagation(),y(),!s&&r.current&&ut(r.current));break}};var b;let E={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...i==="menu"&&{onClose:t.closeAll,autoFocus:(b=t.focusStrategy)!==null&&b!==void 0?b:void 0,onKeyDown:v}},S=R=>{switch(R.key){case"ArrowRight":a||(d==="ltr"?(R.preventDefault(),t.isOpen||m("first"),i==="menu"&&o?.current&&document.activeElement===r?.current&&ut(o.current)):t.isOpen?y():R.continuePropagation());break;case"ArrowLeft":a||(d==="rtl"?(R.preventDefault(),t.isOpen||m("first"),i==="menu"&&o?.current&&document.activeElement===r?.current&&ut(o.current)):t.isOpen?y():R.continuePropagation());break;default:R.continuePropagation();break}},x=R=>{!a&&(R.pointerType==="virtual"||R.pointerType==="keyboard")&&m("first")},A=R=>{!a&&(R.pointerType==="touch"||R.pointerType==="mouse")&&m()},w=R=>{a||(R&&!t.isOpen?p.current||(p.current=setTimeout(()=>{m()},l)):R||g())};Bo(n,"focusin",R=>{var L;t.isOpen&&!((L=n.current)===null||L===void 0)&&L.contains(R.target)&&R.target!==r.current&&y()});let C=R=>R!==r.current;return pj({menuRef:n,submenuRef:o,isOpen:t.isOpen,isDisabled:a}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":a?void 0:i,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:A,onHoverChange:w,onKeyDown:S,isOpen:t.isOpen},submenuProps:E,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:C}}}function $w(e){let t=Ri(e),[r,n]=f.useState(null),[o,i]=f.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(l=null){n(l),t.open()},toggle(l=null){n(l),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(l,s)=>{i(u=>s>u.length?u:[...u.slice(0,s),l])},closeSubmenu:(l,s)=>{i(u=>u[s]===l?u.slice(0,s):u)}}}function gj(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:o,closeSubmenu:i,close:a}=t,[l]=f.useState(n?.length),s=f.useMemo(()=>n[l]===r,[n,r,l]),[u,c]=f.useState(null),d=f.useCallback(m=>{c(m??null),o(r,l)},[o,l,r]),p=f.useCallback(()=>{c(null),i(r,l)},[i,l,r]),g=f.useCallback(m=>{c(m??null),s?p():d(m)},[p,d,s]);return f.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:p,closeAll:a,submenuLevel:l,setOpen:()=>{},toggle:g}),[s,d,p,a,u,g,l])}var mj=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=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||t.has(a.key)))for(let l of a.childNodes)r(l)};for(let a of e)r(a);let n=null,o=0;for(let[a,l]of this.keyMap)n?(n.nextKey=a,l.prevKey=n.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),n=l,n.nextKey=void 0;var i;this.lastKey=(i=n?.key)!==null&&i!==void 0?i:null}},gr=class ww extends Set{constructor(t,r,n){super(t),t instanceof ww?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function yj(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Xp(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=f.useRef(!1),[,l]=f.useState(!1),s=f.useRef(null),u=f.useRef(null),[,c]=f.useState(null),d=f.useMemo(()=>eb(e.selectedKeys),[e.selectedKeys]),p=f.useMemo(()=>eb(e.defaultSelectedKeys,new gr),[e.defaultSelectedKeys]),[g,m]=rs(d,p,e.onSelectionChange),y=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,b]=f.useState(o);o==="replace"&&v==="toggle"&&typeof g=="object"&&g.size===0&&b("replace");let E=f.useRef(o);return f.useEffect(()=>{o!==E.current&&(b(o),E.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:b,get isFocused(){return a.current},setFocused(S){a.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||!yj(S,g))&&m(S)},disabledKeys:y,disabledBehavior:i}}function eb(e,t){return e?e==="all"?"all":new gr(e):t}var Jp=class Cw{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&&Sc(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&&Sc(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 gr([r],r,r);else{let a=this.state.selectedKeys;var o;let l=(o=a.anchorKey)!==null&&o!==void 0?o:r;n=new gr(a,l,r);var i;for(let s of this.getKeyRange(l,(i=a.currentKey)!==null&&i!==void 0?i: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?Sc(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=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}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 gr(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 gr([r],r,r):new gr;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new gr;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 a=this.collection.getItem(n);a?.type==="item"&&t.push(n);var i;a?.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((i=(o=aj(xw(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i: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 gr)}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 Cw(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 bj(e){let{onExpandedChange:t}=e,[r,n]=rs(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Xp(e),i=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=Sw(e,f.useCallback(l=>new mj(l,{expandedKeys:r}),[r]),null);return f.useEffect(()=>{o.focusedKey!=null&&!a.getItem(o.focusedKey)&&o.setFocusedKey(null)},[a,o.focusedKey]),{collection:a,expandedKeys:r,disabledKeys:i,toggleKey:l=>{n(vj(r,l))},setExpandedKeys:n,selectionManager:new Jp(a,o)}}function vj(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var _w=f.createContext(null),us=f.createContext(null),ml=f.createContext(null),yl=f.createContext(null),Tw=f.createContext(null),Aw=class extends An{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}};Aw.type="submenutrigger";qp(Aw,(e,t,r)=>{let{CollectionBranch:n}=f.useContext(Ii),o=f.useContext(us),i=f.useContext(ml),a=gj({triggerKey:r.key},i),l=f.useRef(null),s=Gt(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=f.useContext(Tw),{submenuTriggerProps:d,submenuProps:p,popoverProps:g}=hj({parentMenuRef:u,submenuRef:l,delay:e.delay,shouldUseVirtualFocus:c},a,s);return h.createElement($r,{values:[[bl,{...d,onAction:void 0,ref:s}],[_w,{ref:l,...p}],[cs,a],[Yp,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":p["aria-labelledby"],...g}]]},h.createElement(n,{collection:o.collection,parent:r}),e.children[1])},e=>e.children[0]);f.forwardRef(function(e,t){return[e,t]=Qe(e,t,_w),h.createElement(rw,{content:h.createElement(iw,e)},r=>h.createElement(Ej,{props:e,collection:r,menuRef:t}))});function Ej({props:e,collection:t,menuRef:r}){[e,r]=Qe(e,r,Wy);let{filter:n,...o}=e,i=f.useMemo(()=>n?t.filter(n):t,[t,n]),a=bj({...e,collection:i,children:void 0}),l=f.useContext(ml),{isVirtualized:s,CollectionRoot:u}=f.useContext(Ii),{menuProps:c}=tj({...e,isVirtualized:s,onClose:e.onClose||l?.close},a,r),d=St({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:a.collection.size===0}}),p=null;a.collection.size===0&&e.renderEmptyState&&(p=h.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let g=Te(e,{global:!0});return h.createElement(jp,null,h.createElement("div",{...re(g,d,c),ref:r,slot:e.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:e.onScroll},h.createElement($r,{values:[[us,a],[hw,{elementType:"div"}],[uw,{name:"MenuSection",render:Ow}],[Tw,{parentMenuRef:r,shouldUseVirtualFocus:o?.shouldUseVirtualFocus}],[bl,null],[Wy,null],[WB,null],[yl,a.selectionManager],[ml,l??$w({})]]},h.createElement(u,{collection:a.collection,persistedKeys:dw(a.selectionManager.focusedKey),scrollRef:r})),p))}var Sj=class extends Jp{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 Ow(e,t,r,n="react-aria-MenuSection"){var o,i;let a=f.useContext(us),{CollectionBranch:l}=f.useContext(Ii),[s,u]=ax();var c;let{headingProps:d,groupProps:p}=cj({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),g=St({defaultClassName:n,className:(o=r.props)===null||o===void 0?void 0:o.className,style:(i=r.props)===null||i===void 0?void 0:i.style,values:{}}),m=f.useContext(yl),y=Xp(e),v=e.selectionMode!=null?new Sj(m,y):m,b=Te(e,{global:!0});return delete b.id,h.createElement("section",{...re(b,g,p),ref:t},h.createElement($r,{values:[[fw,{...d,ref:s}],[yl,v]]},h.createElement(l,{collection:a.collection,parent:r})))}qp(J$,Ow);var bl=f.createContext(null);ss(X$,function(e,t,r){var n;[e,t]=Qe(e,t,bl);let o=(n=kp(bl))===null||n===void 0?void 0:n.id,i=f.useContext(us),a=Gt(t),l=f.useContext(yl),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...p}=uj({...e,id:o,key:r.key,selectionManager:l},i,a),{hoverProps:g,isHovered:m}=vo({isDisabled:p.isDisabled}),y=St({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...p,isHovered:m,isFocusVisible:p.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),v=e.href?"a":"div",b=Te(e,{global:!0});return delete b.id,delete b.onClick,h.createElement(v,{...re(b,y,s,g),ref:a,"data-disabled":p.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-selected":p.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($r,{values:[[P$,{slots:{[cl]:u,label:u,description:c}}],[pw,d]]},y.children))});function xj(e,t){let{role:r="dialog"}=e,n=Ra();n=e["aria-label"]?void 0:n;let o=f.useRef(!1);return f.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Br(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Br(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),b$(),{dialogProps:{...Te(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}var Rw=f.createContext(null),cs=f.createContext(null);function $j(e){let t=$w(e),r=f.useRef(null),{triggerProps:n,overlayProps:o}=x9({},t,r),[i,a]=f.useState(null),l=f.useCallback(()=>{r.current&&a(r.current.offsetWidth+"px")},[r]);return il({ref:r,onResize:l}),n.id=We(),o["aria-labelledby"]=n.id,h.createElement($r,{values:[[cs,t],[ml,t],[Rw,o],[Yp,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"],style:{"--trigger-width":i}}]]},h.createElement(N7,{...n,ref:r,isPressed:t.isOpen},e.children))}f.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Qe(e,t,Rw);let{dialogProps:n,titleProps:o}=xj({...e,"aria-labelledby":r},t),i=f.useContext(cs);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let a=St({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:i?.close||(()=>{})}}),l=Te(e,{global:!0});return h.createElement("section",{...re(l,a,n),ref:t,slot:e.slot||void 0},h.createElement($r,{values:[[D$,{slots:{[cl]:{},title:{...o,level:2}}}],[sw,{slots:{[cl]:{},close:{onPress:()=>i?.close()}}}]]},a.children))});var Zp=({ariaLabel:e,placement:t="bottom-start",hasChrome:r=!0,hasCloseButton:n=!1,closeLabel:o,offset:i=8,padding:a,popover:l,children:s,defaultVisible:u,visible:c,onVisibleChange:d,...p})=>{e||TB("The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.");let g=zp(t),[m,y]=f.useState(u??!1),v=f.useCallback(E=>{y(E),d?.(E)},[d]),b=f.useCallback(()=>v(!1),[v]);return h.createElement($j,{defaultOpen:u,isOpen:c??m,onOpenChange:v,...p},h.createElement(k7,null,f.cloneElement(s,{"aria-haspopup":"dialog"})),h.createElement(zB,{"aria-label":e,placement:g,offset:i,style:{outline:"none"}},h.createElement(Pi,{hasChrome:r,hideLabel:o,onHide:n?b:void 0,padding:a},typeof l=="function"?l({onHide:b}):l)))},Dw=f.forwardRef((e,t)=>h.createElement(Pi,{ref:t,...e}));Dw.displayName="Tooltip";f.lazy(()=>Nr(()=>import("./WithTooltip-7X4HQR7L-DZzTNMQ7.js"),__vite__mapDeps([6,1,2,3,4]),import.meta.url).then(e=>({default:e.WithTooltip})));f.lazy(()=>Nr(()=>import("./WithTooltip-7X4HQR7L-DZzTNMQ7.js"),__vite__mapDeps([6,1,2,3,4]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:rZ}=__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:wj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Cj=vt(Sn(),1);const{deprecate:_j}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Tj=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}:{}),Aj=F.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),Oj=F.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),Rj=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}:{}),Dj=F.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),Pj=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"}),Ij=(0,Cj.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}}})),Pw=f.forwardRef((e,t)=>{let{loading:r=!1,title:n=h.createElement("span",null,"Loading state"),center:o=null,right:i=null,active:a=!1,disabled:l=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:p,LinkWrapper:g=void 0,...m}=e,y={active:a,disabled:l},v=Ij(e),b=d||p;return _j("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),h.createElement(Pj,{"data-deprecated":"ListItem",ref:t,...m,...y,...v},h.createElement(h.Fragment,null,b&&h.createElement(Dj,{...y},b),n||o?h.createElement(Oj,{isIndented:s&&!b},n&&h.createElement(Tj,{...y,loading:r},n),o&&h.createElement(Rj,{...y},o)):null,i&&h.createElement(Aj,{...y},i)))});Pw.displayName="ListItem";var Iw=Pw,Fj=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}:{}),Lj=F.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),kj=({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:i,href:a}=r,l=f.useCallback(s=>t?.(s,{id:e,active:n,disabled:o,title:i,href:a}),[t,e,n,o,i,a]);return h.createElement(Iw,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},Fw=({links:e,LinkWrapper:t,...r})=>{wj("`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(i=>i.some(a=>"icon"in a&&a.icon||"input"in a&&a.input));return h.createElement(Fj,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(i=>i.length).map((i,a)=>h.createElement(Lj,{key:i.map(l=>l.id).join(`~${a}~`)},i.map(l=>"content"in l?h.createElement(f.Fragment,{key:l.id},l.content):h.createElement(kj,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))};const{deprecate:ds}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:Nj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Mj=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})),Bj=F.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),Eo=f.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},o)=>h.createElement(Mj,{...n,ref:o,innerStyle:e?void 0:r,scrollable:e},e?h.createElement(Bj,{innerStyle:r},t):t));Eo.displayName="Bar";var ef=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}:{});ef.displayName="Side";var jj=F.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),Hj=F(Eo)({paddingInline:0}),Qp=({children:e,backgroundColor:t,className:r="",...n})=>{Nj('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[o,i]=f.Children.toArray(e);return h.createElement(Hj,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},h.createElement(jj,{bgColor:t},h.createElement(ef,{scrollable:n.scrollable,left:!0},o),i?h.createElement(ef,{right:!0},i):null))};Qp.displayName="FlexBar";const{deprecate:Uj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var zj=e=>typeof e.props.href=="string",Kj=e=>typeof e.props.href!="string";function Gj({children:e,...t},r){let n={props:t,ref:r};if(zj(n))return h.createElement("a",{ref:n.ref,...n.props},e);if(Kj(n))return h.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var Lw=f.forwardRef(Gj);Lw.displayName="ButtonOrLink";var Wj=F(Lw,{shouldForwardProp:Ml})({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}}),Fi=f.forwardRef((e,t)=>(Uj("The `TabButton` component is deprecated. Use `TabList` instead."),h.createElement(Wj,{"data-deprecated":"TabButton",ref:t,...e})));Fi.displayName="TabButton";var Vj=F.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),qj=F.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),Yj=F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),Xj=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})),Li=({title:e,description:t,footer:r})=>h.createElement(Vj,null,h.createElement(qj,null,h.createElement(Yj,null,e),t&&h.createElement(Jj,null,t)),r&&h.createElement(Xj,null,r));const{deprecate:Zj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var kw=F.div(({active:e})=>e?{display:"block"}:{display:"none"}),Qj=e=>(Zj("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),f.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let i=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof i=="function"?i:({active:a})=>h.createElement(kw,{active:a,role:"tabpanel"},i)}}));const{deprecate:eH}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var tH=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"})),rH=F(Fi)(({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};
@@ -728,7 +728,7 @@ ${t}`);let r=t.match(BM);if(!r)return h.createElement(f.Fragment,null,t);let[,n,
728
728
  ${Wo(.02,e.input.background)} 100%)`:`linear-gradient(to right,
729
729
  ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
730
730
  ${af(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
731
- ${af(.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%"},a={borderColor:io(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 ${io(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${Wo(.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":i,"&::-moz-range-track":i,"&::-ms-track":{...i,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":a,"&::-moz-range-track":a,"&::-ms-track":a,"&::-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"}}}}),CC=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),aG=F(CC)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),lG=F.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function sG(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 uG=({name:e,storyId:t,controlsId:r,value:n,onChange:o,min:i=0,max:a=100,step:l=1,onBlur:s,onFocus:u,argType:c,required:d})=>{let p=b=>{o(EK(b.target.value))},g=n!==void 0,m=f.useMemo(()=>sG(l),[l]),y=!!c?.table?.readonly,v=Ut(e,t,r);return h.createElement(lG,{readOnly:y},h.createElement("label",{htmlFor:v,className:"sb-sr-only"},e),h.createElement(CC,null,i),h.createElement(iG,{id:v,type:"range",disabled:y,onChange:p,"aria-required":d||void 0,name:e,min:i,max:a,step:l,onFocus:u,onBlur:s,value:n??i}),h.createElement(aG,{numberOFDecimalsPlaces:m,max:a},g?n.toFixed(m):"--"," / ",a))},cG=F.label({display:"flex"}),dG=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),fG=({name:e,storyId:t,controlsId:r,value:n,onChange:o,onFocus:i,onBlur:a,maxLength:l,argType:s,required:u})=>{let c=v=>{o(v.target.value)},d=!!s?.table?.readonly,[p,g]=f.useState(!1),m=f.useCallback(()=>{o(""),g(!0)},[g]);if(n===void 0)return h.createElement(Se,{ariaLabel:!1,variant:"outline",size:"medium",disabled:d,id:Rl(e,t,r),onClick:m},"Set string");let y=typeof n=="string";return h.createElement(cG,null,h.createElement(Tn.Textarea,{id:Ut(e,t,r),maxLength:l,onChange:c,disabled:d,size:"flex",placeholder:"Edit string...",autoFocus:p,"aria-required":u||void 0,valid:y?void 0:"error",name:e,value:y?n:"",onFocus:i,onBlur:a}),l&&h.createElement(dG,{isMaxed:n?.length===l},n?.length??0," / ",l))},pG=F(Tn.Input)({padding:10});function hG(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var gG=({onChange:e,name:t,storyId:r,controlsId:n,accept:o="image/*",value:i,argType:a,required:l})=>{let s=f.useRef(null),u=a?.control?.readOnly;function c(p){if(!p.target.files)return;let g=Array.from(p.target.files).map(m=>URL.createObjectURL(m));e(g),hG(i||[])}f.useEffect(()=>{i==null&&s.current&&(s.current.value="")},[i,t]);let d=Ut(t,r,n);return h.createElement(h.Fragment,null,h.createElement("label",{htmlFor:d,className:"sb-sr-only"},t),h.createElement(pG,{ref:s,id:d,type:"file",name:t,multiple:!0,disabled:u,onChange:c,accept:o,"aria-required":l||void 0,size:"flex"}))},mG=f.lazy(()=>Nr(()=>import("./Color-6AOWCN3U-C4AEGNk3.js"),__vite__mapDeps([8,1,2,3,4,5]),import.meta.url)),yG=e=>h.createElement(f.Suspense,{fallback:h.createElement("div",null)},h.createElement(mG,{...e})),bG={array:Rb,object:Rb,boolean:fK,color:yG,date:bK,number:xK,check:In,"inline-check":In,radio:In,"inline-radio":In,select:In,"multi-select":In,range:uG,text:fG,file:gG},Ic=()=>h.createElement(h.Fragment,null,"-"),vG=({row:e,arg:t,updateArgs:r,isRequired:n,storyId:o,controlsId:i})=>{let{key:a,control:l}=e,[s,u]=f.useState(!1),[c,d]=f.useState({value:t});f.useEffect(()=>{s||d({value:t})},[s,t]);let p=f.useCallback(b=>(d({value:b}),r({[a]:b}),b),[r,a]),g=f.useCallback(()=>u(!1),[]),m=f.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(_i,{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(Ic,null))):h.createElement(Ic,null);let y={name:a,storyId:o,controlsId:i,argType:e,value:c.value,required:n,onChange:p,onBlur:g,onFocus:m},v=bG[l.type]||Ic;return h.createElement(v,{...y,...l,controlType:l.type})},EG=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:Sr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),SG=({tags:e})=>{let t=(e.params||[]).filter(i=>i.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(EG,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(i=>h.createElement("tr",{key:i.name},h.createElement("td",null,h.createElement("code",null,i.name)),h.createElement("td",null,i.description))),o&&h.createElement("tr",{key:"returns"},h.createElement("td",null,h.createElement("code",null,"Returns")),h.createElement("td",null,e.returns?.description)))))};function xG(e){return[...new Set(e)]}var Sl=8,Db=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),$G=F.details({display:"flex",flexDirection:"column",summary:{order:2},"summary::-webkit-details-marker":{display:"none"},"summary::marker":{content:"none"}}),wG=F.div({display:"flex",flexDirection:"column",flexWrap:"wrap",alignItems:"flex-start"}),CG=F.span(Sr,({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}})),_G=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"})),TG=F.button(Sr,({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"}})),AG=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"}})),OG=F(J2)({marginLeft:4}),RG=F(eE)({marginLeft:4}),DG=()=>h.createElement("span",null,"-"),ah=({text:e,simple:t})=>h.createElement(CG,{simple:t},e),PG=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return xG(t)},Pb=e=>e.slice(0,Sl).map(t=>h.createElement(ah,{key:t,text:t===""?'""':t})),IG=e=>e.slice(Sl).map(t=>h.createElement(ah,{key:t,text:t===""?'""':t})),FG=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,i]=f.useState(!1),[a,l]=f.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(ah,{text:s});let u=PG(s),c=u.length;return c>Sl?h.createElement(Db,{isExpanded:a},Pb(u),h.createElement($G,{open:a,onToggle:d=>l(d.currentTarget.open)},h.createElement(wG,null,IG(u)),h.createElement(_G,{role:"button"},a?"Show less...":`Show ${c-Sl} more...`))):h.createElement(Db,null,Pb(u))}return h.createElement(Zp,{ariaLabel:"Arg value details",placement:"bottom",visible:o,onVisibleChange:u=>{i(u)},hasCloseButton:!0,popover:h.createElement(AG,null,h.createElement(Ci,{language:"jsx",format:!1},n))},h.createElement(TG,{className:"sbdocs-expandable"},h.createElement("span",null,s),o?h.createElement(OG,null):h.createElement(RG,null)))},Fc=({value:e,initialExpandedArgs:t})=>e==null?h.createElement(DG,null):h.createElement(FG,{value:e,initialExpandedArgs:t}),LG=F.span({fontWeight:"bold"}),kG=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),NG=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Sr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),MG=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Ie(.1,e.color.defaultText):Ie(.2,e.color.defaultText),marginTop:t?4:0})),BG=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Ie(.1,e.color.defaultText):Ie(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),jG=F.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),HG=F.tr({"span.sbdocs-argcontrol-setup":{...ni},"&:hover, &:focus-within":{"span.sbdocs-argcontrol-setup":{...Ov},"span.sbdocs-argcontrol-placeholder":{...ni}}}),UG=e=>e&&{summary:typeof e=="string"?e:e.name},pa=e=>{let{row:t,updateArgs:r,compact:n,expandable:o,initialExpandedArgs:i,docsLang:a}=e,{name:l,description:s}=t,u=t.table||{},c=u.type||UG(t.type),d=u.defaultValue||t.defaultValue,p=t.type?.required,g=s!=null&&s!=="";return h.createElement(HG,null,h.createElement(jG,{expandable:o??!1},h.createElement(LG,null,l),p?h.createElement(kG,{"aria-hidden":!0,title:"Required"},"*"):null),n?null:h.createElement("td",null,g&&h.createElement(NG,{lang:a},h.createElement(fC,null,s)),u.jsDocTags!=null?h.createElement(h.Fragment,null,h.createElement(BG,{hasDescription:g},h.createElement(Fc,{value:c,initialExpandedArgs:i})),h.createElement(SG,{tags:u.jsDocTags})):h.createElement(MG,{hasDescription:g},h.createElement(Fc,{value:c,initialExpandedArgs:i}))),n?null:h.createElement("td",null,h.createElement(Fc,{value:d,initialExpandedArgs:i})),r?h.createElement("td",null,h.createElement(vG,{...e,isRequired:!!p})):null)},zG=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})),KG=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),GG=({inAddonPanel:e})=>{let[t,r]=f.useState(!0);return f.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:h.createElement(zG,{inAddonPanel:e},h.createElement(Li,{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(KG,null,h.createElement(_i,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},h.createElement(Jv,null)," Read docs"))}))},WG=F(X2)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Ie(.25,e.color.defaultText):Ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),VG=F(Qv)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Ie(.25,e.color.defaultText):Ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),qG=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),YG=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"?Ie(.4,e.color.defaultText):Ie(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),XG=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),JG=F.td({position:"relative"}),ZG=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${af(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Ib=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"}),Lc=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[i,a]=f.useState(n),l=e==="subsection"?XG:YG,s=r?.length||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${i?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return h.createElement(h.Fragment,null,h.createElement(ZG,{title:c},h.createElement(l,{colSpan:1},h.createElement(Ib,{onClick:d=>a(!i),tabIndex:0},c),h.createElement(qG,null,i?h.createElement(WG,null):h.createElement(VG,null),t)),h.createElement(JG,{colSpan:o-1},h.createElement(Ib,{onClick:d=>a(!i),tabIndex:-1,style:{outline:"none"}},c),i?null:u)),i?r:null)},QG=F.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),ha=F.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ye=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}}}),Le=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})),eW=()=>h.createElement(QG,null,h.createElement(ha,null,h.createElement(Ye,{position:"first"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"second"},h.createElement(Le,{width:"30%"})),h.createElement(Ye,{position:"third"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"last"},h.createElement(Le,{width:"60%"}))),h.createElement(ha,null,h.createElement(Ye,{position:"first"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"second"},h.createElement(Le,{width:"80%"}),h.createElement(Le,{width:"30%"})),h.createElement(Ye,{position:"third"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"last"},h.createElement(Le,{width:"60%"}))),h.createElement(ha,null,h.createElement(Ye,{position:"first"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"second"},h.createElement(Le,{width:"80%"}),h.createElement(Le,{width:"30%"})),h.createElement(Ye,{position:"third"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"last"},h.createElement(Le,{width:"60%"}))),h.createElement(ha,null,h.createElement(Ye,{position:"first"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"second"},h.createElement(Le,{width:"80%"}),h.createElement(Le,{width:"30%"})),h.createElement(Ye,{position:"third"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"last"},h.createElement(Le,{width:"60%"})))),tW=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"}}}}})),rW=F.div({position:"relative"}),nW=F.div({position:"absolute",right:22,top:10}),oW=F(Se)({margin:"-4px -12px -4px 0"}),iW={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||(e.name??"").localeCompare(t.name??""),none:null},aW=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([i,a])=>{let{category:l,subcategory:s}=a?.table||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:i,...a});else{let c=u.subsections[s]||[];c.push({key:i,...a}),u.subsections[s]=c}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:i,...a}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:i,...a})});let n=iW[t],o=i=>n?Object.keys(i).reduce((a,l)=>({...a,[l]:i[l].sort(n)}),{}):i;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((i,a)=>({...i,[a]:{ungrouped:n?r.sections[a].ungrouped.sort(n):r.sections[a].ungrouped,subsections:o(r.sections[a].subsections)}}),{})}},lW=(e,t,r)=>{try{return AR(e,t,r)}catch(n){return AU.warn(n.message),!1}},lo=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,inTabPanel:i,initialExpandedArgs:a,sort:l="none",isLoading:s,storyId:u,controlsId:c,docsLang:d}=e,{rows:p,args:g,globals:m}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},y=f.useRef(!1),[v,b]=f.useState(!1);f.useEffect(()=>{y.current=!1,b(!1)},[g]);let E=f.useCallback(()=>{!y.current&&r&&(y.current=!0,b(!0),r())},[r]);if("error"in e){let{error:I}=e;return h.createElement(nC,null,I," ",h.createElement(_i,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},h.createElement(Jv,null)," Read the docs"))}if(s)return h.createElement(eW,null);let S=aW(nz(p||{},I=>!I?.table?.disable&&lW(I,g||{},m||{})),l),x=S.ungrouped.length===0,A=Object.entries(S.sections).length===0,w=Object.entries(S.ungroupedSubsections).length===0;if(x&&A&&w)return h.createElement(GG,{inAddonPanel:o});let C=1;t&&(C+=1),n||(C+=2);let R=Object.keys(S.sections).length>0,L={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a,storyId:u,controlsId:c};return h.createElement(Sp,null,h.createElement(rW,null,t&&!s&&r&&h.createElement(nW,null,h.createElement(oW,{variant:"ghost",padding:"small",onClick:E,disabled:v,ariaLabel:v?"Resetting controls...":"Reset controls",lang:"en"},h.createElement(e3,null))),h.createElement(tW,{compact:n,inAddonPanel:o,inTabPanel:i,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(pa,{key:I.key,row:I,arg:g&&g[I.key],docsLang:d,...L})),Object.entries(S.ungroupedSubsections).map(([I,T])=>h.createElement(Lc,{key:I,label:I,level:"subsection",colSpan:C},T.map(M=>h.createElement(pa,{key:M.key,row:M,arg:g&&g[M.key],expandable:R,...L})))),Object.entries(S.sections).map(([I,T])=>h.createElement(Lc,{key:I,label:I,level:"section",colSpan:C},T.ungrouped.map(M=>h.createElement(pa,{key:M.key,row:M,arg:g&&g[M.key],...L})),Object.entries(T.subsections).map(([M,H])=>h.createElement(Lc,{key:M,label:M,level:"subsection",colSpan:C},H.map($=>h.createElement(pa,{key:$.key,row:$,arg:g&&g[$.key],expandable:R,...L}))))))))))},ke=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,lh=600,sW=F.h1(({theme:e})=>({..._e({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${lh}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),uW=F.h2(({theme:e})=>({..._e({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${lh}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:Ie(.25,e.color.defaultText)})),cW=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"?Ie(.1,e.color.defaultText):Ie(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,flex:1,[ke("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"}},[ke("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}},[ke("div")]:t,[ke("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}},[ke("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ke("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ke("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ke("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ke("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ke("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ke("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ke("img")]:{maxWidth:"100%"},[ke("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ke("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ke("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ke("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"}},[ke("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"}}},[ke("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}},[ke("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),dW=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: ${lh}px)`]:{}})),fW=({children:e,toc:t,lang:r="en"})=>h.createElement(dW,{className:"sbdocs sbdocs-wrapper"},t,h.createElement(cW,{className:"sbdocs sbdocs-content",lang:r},e));const{logger:pW}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var _C=typeof document<"u"?h.useLayoutEffect:()=>{},TC={prefix:String(Math.round(Math.random()*1e10)),current:0},AC=h.createContext(TC),hW=h.createContext(!1),kc=new WeakMap;function gW(e=!1){let t=f.useContext(AC),r=f.useRef(null);if(r.current===null&&!e){var n,o;let i=(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(i){let a=kc.get(i);a==null?kc.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,kc.delete(i))}r.current=++t.current}return r.current}function mW(e){let t=f.useContext(AC),r=gW(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function yW(e){let t=h.useId(),[r]=f.useState(xW()),n=r?"react-aria":`react-aria${TC.prefix}`;return e||`${n}-${t}`}var bW=typeof h.useId=="function"?yW:mW;function vW(){return!1}function EW(){return!0}function SW(e){return()=>{}}function xW(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(SW,vW,EW):f.useContext(hW)}var $W=!!(typeof window<"u"&&window.document&&window.document.createElement),Ma=new Map,Uo;typeof FinalizationRegistry<"u"&&(Uo=new FinalizationRegistry(e=>{Ma.delete(e)}));function OC(e){let[t,r]=f.useState(e),n=f.useRef(null),o=bW(t),i=f.useRef(null);if(Uo&&Uo.register(i,o),$W){let a=Ma.get(o);a&&!a.includes(n)?a.push(n):Ma.set(o,[n])}return _C(()=>{let a=o;return()=>{Uo&&Uo.unregister(i),Ma.delete(a)}},[o]),f.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function wW(e){if(CW())e.focus({preventScroll:!0});else{let t=_W(e);e.focus(),TW(t)}}var ga=null;function CW(){if(ga==null){ga=!1;try{document.createElement("div").focus({get preventScroll(){return ga=!0,!0}})}catch{}}return ga}function _W(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 TW(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function sh(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 RC(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 Ni(e){let t=null;return()=>(t==null&&(t=e()),t)}var uf=Ni(function(){return RC(/^Mac/i)}),AW=Ni(function(){return RC(/^iPad/i)||uf()&&navigator.maxTouchPoints>1}),OW=Ni(function(){return sh(/AppleWebKit/i)&&!RW()}),RW=Ni(function(){return sh(/Chrome/i)}),DW=Ni(function(){return sh(/Firefox/i)});f.createContext({isNative:!0,open:IW,useHref:e=>e});function xl(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}=t;DW()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(uf()?i=!0:a=!0);let u=OW()&&uf()&&!AW()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});xl.isOpening=r,wW(e),e.dispatchEvent(u),xl.isOpening=!1}xl.isOpening=!1;function PW(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 IW(e,t){PW(e,r=>xl(r,t))}var ko=new Map,Fb=new Set;function Lb(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=ko.get(n.target);o||(o=new Set,ko.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=ko.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),ko.delete(n.target)),ko.size===0)){for(let i of Fb)i();Fb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Lb():document.addEventListener("DOMContentLoaded",Lb));var Nc;Nc=h.useInsertionEffect;var Mc;typeof document<"u"&&((Mc=h.useInsertionEffect)!==null&&Mc!==void 0||h.useLayoutEffect);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=f.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var et=globalThis?globalThis.__DOCS_CONTEXT__:f.createContext(null);const{InvalidBlockOfPropError:FW}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;function LW(e,t){let r=kW([e],t);return r&&r[0]}function kW(e,t){let[r,n]=f.useState({});return f.useEffect(()=>{Promise.all(e.map(async o=>{let i=await t.loadStory(o);n(a=>a[o]===i?a:{...a,[o]:i})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return}})}var NW=Symbol("mdxWrappedBlock"),kb=h.createContext(null),tt=(e,t)=>{let r=n=>{let o=h.useContext(kb),i=uv()[e];if(o?.has(e)||i===r)return h.createElement(t,{...n});if(i){let a=new Set(o??[]);return a.add(e),h.createElement(kb.Provider,{value:a},h.createElement(i,{...n}))}return h.createElement(t,{...n})};return r.displayName=e,r[NW]=!0,r},DC=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new FW;return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},MW=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,i=o.story||{};if(o.disable)return null;if(e.inline??i.inline??!1){let l=e.height??i.height,s=e.autoplay??i.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let a=e.height??i.height??i.iframeHeight??"100px";return{story:t,inline:!1,height:a,primary:!!e.__primary}},BW=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=f.useContext(et),r=DC(e,t),n=LW(r,t);if(!n)return h.createElement(FC,null);let o=MW(e,n,t);return o?h.createElement(WW,{...o}):null},jW=tt("Story",BW),ms=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}`}),PC=(e,t={})=>{let r=globalThis.PREVIEW_URL||"iframe.html",[n,o]=r.split("?"),i=new URLSearchParams(o||"");return Object.entries(t).forEach(([a,l])=>{i.set(a,l)}),i.set("id",e),`${n}?${i.toString()}`},{window:HW}=globalThis,UW=class extends f.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=HW.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,...i}=this.props;return h.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...i})}},IC=f.createContext({scale:1}),cf=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,zW=e=>{let t=f.useRef(),[r,n]=f.useState(!0),[o,i]=f.useState(),{story:a,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return f.useEffect(()=>{if(!(a&&t.current))return()=>{};let d=t.current,p=c(a,d,{showMain:()=>{},showError:({title:g,description:m})=>i(new Error(`${g} - ${m}`)),showException:g=>i(g)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>p())}},[s,c,a]),o?h.createElement("pre",null,h.createElement(U$,{error:o})):h.createElement(h.Fragment,null,l?h.createElement("style",null,`#${cf(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&h.createElement(FC,null),h.createElement("div",{ref:t,id:`${cf(e)}-inner`,"data-name":a.name,lang:a.parameters?.htmlLang||"en"}))},KW=({story:e,height:t="500px"})=>h.createElement("div",{style:{width:"100%",height:t}},h.createElement(IC.Consumer,null,({scale:r})=>h.createElement(UW,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:PC(e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),GW=F.strong(({theme:e})=>({color:e.color.orange})),WW=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?h.createElement(GW,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:cf(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?h.createElement(zW,{...e}):h.createElement(KW,{...e}))},FC=()=>h.createElement(Jw,null),VW=F(jw)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),Bc=F.div({display:"flex",alignItems:"center",gap:4}),Nb=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`})),qW=({isLoading:e,storyId:t,zoom:r,resetZoom:n,onReloadStory:o,...i})=>h.createElement(VW,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},lang:"en",...i},h.createElement(Bc,{key:"left"},e?[1,2,3].map(a=>h.createElement(Nb,{key:a})):h.createElement(h.Fragment,null,o&&h.createElement(Se,{padding:"small",variant:"ghost",key:"reload",onClick:o,ariaLabel:"Reload story"},h.createElement(t3,null)),h.createElement(Se,{padding:"small",variant:"ghost",key:"zoomin",onClick:a=>{a.preventDefault(),r(.8)},ariaLabel:"Zoom in"},h.createElement(M2,null)),h.createElement(Se,{padding:"small",variant:"ghost",key:"zoomout",onClick:a=>{a.preventDefault(),r(1.25)},ariaLabel:"Zoom out"},h.createElement(B2,null)),h.createElement(Se,{padding:"small",variant:"ghost",key:"zoomreset",onClick:a=>{a.preventDefault(),n()},ariaLabel:"Reset zoom"},h.createElement(j2,null)))),e?h.createElement(Bc,{key:"right"},h.createElement(Nb,null)):t&&h.createElement(Bc,{key:"right"},h.createElement(Se,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},h.createElement("a",{href:PC(t),target:"_blank",rel:"noopener noreferrer"},h.createElement(Y2,null))))),YW=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)`}}:{}),XW=F(Eo)({marginTop:-40,marginBottom:40}),JW=F(ki)(({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)":Wo(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Wo(.05,e.background.content)}})),ZW=F.div(({theme:e})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...ms(e),"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40});function QW(e){if(f.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var eV=F(qW)({position:"absolute",top:0,left:0,right:0,height:40}),tV=2e3,LC=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:i=!1,isExpanded:a=!1,additionalActions:l,className:s,layout:u="padded",inline:c=!1,onReloadStory:d,...p})=>{let[g,m]=f.useState(a),[y,v]=f.useState(null),[b,E]=f.useState(1),S=f.useMemo(()=>l?[...l]:[],[l]),x=OC(),A=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),w=f.useContext(et),C=f.useCallback(async M=>{let{createCopyToClipboardFunction:H}=await Nr(async()=>{const{createCopyToClipboardFunction:$}=await Promise.resolve().then(()=>NH);return{createCopyToClipboardFunction:$}},void 0,import.meta.url);await H()(M)},[]),R=f.useCallback(async()=>{try{await C(o?.code??""),v("Copied!")}catch(M){pW.error(M),v("Copy error!")}globalThis.window.setTimeout(()=>v(null),tV)},[C,o?.code]),L=QW(n),I=!!(o&&o.error),T=!!(o&&!o.error);return h.createElement(h.Fragment,null,h.createElement(ZW,{withSource:o,withToolbar:i,...p,className:A.join(" ")},i&&h.createElement(eV,{isLoading:e,border:!0,zoom:M=>E(b*M),resetZoom:()=>E(1),storyId:!e&&L?DC(L,w):void 0,onReloadStory:d}),h.createElement(IC.Provider,{value:{scale:b}},h.createElement(YW,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c,className:"docs-story"},h.createElement(H$.Element,{centered:u==="centered",scale:c?b:1},Array.isArray(n)?n.map((M,H)=>h.createElement("div",{key:H},M)):h.createElement("div",null,n)))),T&&g&&h.createElement("div",{id:x},h.createElement(JW,{...o,dark:!0,copyable:!1}))),(o||S.length>0)&&h.createElement(XW,{className:"sbdocs sbdocs-preview-actions",innerStyle:{paddingInline:0}},I&&h.createElement(Se,{lang:"en",ariaLabel:!1,disabled:!0,variant:"ghost",className:"docblock-code-toggle docblock-code-toggle--disabled"},h.createElement(pm,null)," No code available"),T&&h.createElement(h.Fragment,null,h.createElement(Di,{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(pm,null)," ",g?"Hide code":"Show code"),h.createElement(Se,{lang:"en",ariaLabel:!1,variant:"ghost",onClick:R},h.createElement(U2,null)," ",y??"Copy code")),S.map(({title:M,ariaLabel:H,className:$,onClick:_,disabled:O},P)=>h.createElement(Se,{key:P,ariaLabel:H??!1,className:$,onClick:_,disabled:!!O,variant:"ghost"},M))))};F(LC)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var rV=F(Yw)({height:"fit-content"}),kC=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return h.createElement(lo,{...r[0][1],...t});let n=r.map(([o,i],a)=>{let l=a===0?t:{sort:t.sort,docsLang:t.docsLang};return{id:`prop_table_div_${o}`,title:o,children:h.createElement(lo,{inTabPanel:!0,...i,...l})}});return h.createElement(rV,{tabs:n})};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?Ie(.4,e.color.defaultText):Ie(.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(_e,({theme:e})=>({...ms(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:Ie(.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:Ie(.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})=>({...ms(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:Ie(.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})=>({...ms(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:nV}=__STORYBOOK_MODULE_CORE_EVENTS__;function oV(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",i,a=!0,l=0;function s(I,T){let M=T.appendChild(c(I));if(I.children.length){let H=d(I.isCollapsed);I.children.forEach($=>{s($,H)}),M.appendChild(H)}}function u(I,T){let M=d(!1);if(T.forEach(H=>{s(H,M)}),i=I||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),T.length===0?i:i.appendChild(M)}function c(I){let T=document.createElement("li"),M=document.createElement("a");return e.listItemClass&&T.setAttribute("class",e.listItemClass),e.onClick&&(M.onclick=e.onClick),e.includeTitleTags&&M.setAttribute("title",I.textContent),e.includeHtml&&I.childNodes.length?t.call(I.childNodes,H=>{M.appendChild(H.cloneNode(!0))}):M.textContent=I.textContent,M.setAttribute("href",`${e.basePath}#${I.id}`),M.setAttribute("class",`${e.linkClass+o}node-name--${I.nodeName}${o}${e.extraLinkClasses}`),T.appendChild(M),T}function d(I){let T=e.orderedList?"ol":"ul",M=document.createElement(T),H=e.listClass+o+e.extraListClasses;return I&&(H=H+o+e.collapsibleClass,H=H+o+e.isCollapsedClass),M.setAttribute("class",H),M}function p(){let I=C(),T=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=i.offsetTop),I>e.fixedSidebarOffset?T.className.indexOf(e.positionFixedClass)===-1&&(T.className+=o+e.positionFixedClass):T.className=T.className.replace(o+e.positionFixedClass,"")}function g(I){let T=0;return I!==null&&(T=I.offsetTop,e.hasInnerContainers&&(T+=g(I.offsetParent))),T}function m(I,T){return I&&I.className!==T&&(I.className=T),I}function y(I,T){e.positionFixedSelector&&p();let M=I,H=T?.target?.getAttribute?T?.target?.getAttribute("href"):null,$=H&&H.charAt(0)==="#"?x(H.replace("#","")):!1,_=a||$;if(T&&l<5&&l++,_&&i&&M.length>0){let O=R(M),P=i.querySelector(`.${e.activeLinkClass}`),k=O.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),B=window.location.hash.replace("#",""),N=k,D=A();H&&$?N=H.replace("#",""):B&&B!==k&&D&&(x(k)||l<=2)&&(N=B);let j=i.querySelector(`.${e.linkClass}[href="${e.basePath}#${N}"]`);if(P===j)return;let K=i.querySelectorAll(`.${e.linkClass}`);t.call(K,G=>{m(G,G.className.replace(o+e.activeLinkClass,""))});let U=i.querySelectorAll(`.${e.listItemClass}`);t.call(U,G=>{m(G,G.className.replace(o+e.activeListItemClass,""))}),j&&j.className.indexOf(e.activeLinkClass)===-1&&(j.className+=o+e.activeLinkClass);let z=j?.parentNode;z&&z.className.indexOf(e.activeListItemClass)===-1&&(z.className+=o+e.activeListItemClass);let W=i.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(W,G=>{G.className.indexOf(e.isCollapsedClass)===-1&&(G.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 T=I.target||I.srcElement;typeof T.className!="string"||T.className.indexOf(e.linkClass)===-1||(a=!1)}function E(){a=!0}function S(){return a}function x(I){let T=w();return(document?.getElementById(I)).offsetTop>T.offsetHeight-T.clientHeight*1.4-e.bottomModeThreshold}function A(){let I=w(),T=I.scrollHeight>I.clientHeight,M=C()+I.clientHeight>I.offsetHeight-e.bottomModeThreshold;return T&&M}function w(){let I;return e.scrollContainer&&document.querySelector(e.scrollContainer)?I=document.querySelector(e.scrollContainer):I=document.documentElement||n,I}function C(){return w()?.scrollTop||0}function R(I,T=C()){let M;return r.call(I,(H,$)=>{if(g(H)>T+e.headingsOffset+10){let _=$===0?$:$-1;return M=I[_],!0}if($===I.length-1)return M=I[I.length-1],!0}),M}function L(I){let T=C(),M=R(I,T),H=A();if((!M||T<5)&&!H)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(M&&!H){let $=`#${M.id}`;window.location.hash!==$&&window.history.pushState(null,null,$)}}return{enableTocAnimation:E,disableTocAnimation:b,render:u,updateToc:y,getCurrentlyHighlighting:S,getTopHeader:R,getScrollTop:C,updateUrlHashForHeader:L}}var iV={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 aV(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 i(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 a(u,c){let d=i(u),p=d.headingLevel,g=c,m=r(g),y=m?m.headingLevel:0,v=p-y;for(;v>0&&(m=r(g),!(m&&p===m.headingLevel));)m&&m.children!==void 0&&(g=m.children),v--;return p>=e.collapseDepth&&(d.isCollapsed=!0),g.push(d),g}function l(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(p){return`${p.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 p=i(d);return p&&a(p,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function lV(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?a(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!i(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||sV(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function i(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(a(s.href)===n||a(s.href)+"#"===n)}function a(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 sV(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("")+'"]'),i=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,a=typeof n.duration=="function"?n.duration(i):n.duration,l,s;requestAnimationFrame(function(p){l=p,u(p)});function u(p){s=p-l,window.scrollTo(0,n.easing(s,r,i,a)),s<a?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+i),typeof n.callback=="function"&&n.callback()}function d(p,g,m,y){return p/=y/2,p<1?m/2*p*p+g:(p--,-m/2*(p*(p-2)-1)+g)}}function uV(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 ae={},Ft,jc,Qr,kt,qo;function NC(e){let t=!1;ae=fV(iV,e||{}),ae.scrollSmooth&&(ae.duration=ae.scrollSmoothDuration,ae.offset=ae.scrollSmoothOffset,lV(ae)),Ft=oV(ae),jc=aV(ae),uh();let r=hV(ae);if(r===null)return;let n=MC(ae);if(n===null||(Qr=jc.selectHeadings(r,ae.headingSelector),Qr===null))return;let o=jc.nestHeadingsArray(Qr).nest;if(!ae.skipRendering)Ft.render(n,o);else return this;let i=!1,a=ae.scrollHandlerTimeout||ae.throttleTimeout;kt=((s,u)=>pV(s,u,ae.scrollHandlerType))(s=>{Ft.updateToc(Qr,s),!ae.disableTocScrollSync&&!i&&uV(ae),ae.enableUrlHashUpdateOnScroll&&t&&Ft.getCurrentlyHighlighting()&&Ft.updateUrlHashForHeader(Qr);let u=s?.target?.scrollingElement?.scrollTop===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(Ft.updateToc(Qr),ae.scrollEndCallback?.(s))},a),t||(kt(),t=!0),window.onhashchange=window.onscrollend=s=>{kt(s)},ae.scrollContainer&&document.querySelector(ae.scrollContainer)?(document.querySelector(ae.scrollContainer).addEventListener("scroll",kt,!1),document.querySelector(ae.scrollContainer).addEventListener("resize",kt,!1)):(document.addEventListener("scroll",kt,!1),document.addEventListener("resize",kt,!1));let l=null;qo=df(s=>{i=!0,ae.scrollSmooth&&Ft.disableTocAnimation(s),Ft.updateToc(Qr,s),l&&clearTimeout(l),l=setTimeout(()=>{Ft.enableTocAnimation()},ae.scrollSmoothDuration),setTimeout(()=>{i=!1},ae.scrollSmoothDuration+100)},ae.throttleTimeout),ae.scrollContainer&&document.querySelector(ae.scrollContainer)?document.querySelector(ae.scrollContainer).addEventListener("click",qo,!1):document.addEventListener("click",qo,!1)}function uh(){let e=MC(ae);e!==null&&(ae.skipRendering||e&&(e.innerHTML=""),ae.scrollContainer&&document.querySelector(ae.scrollContainer)?(document.querySelector(ae.scrollContainer).removeEventListener("scroll",kt,!1),document.querySelector(ae.scrollContainer).removeEventListener("resize",kt,!1),Ft&&document.querySelector(ae.scrollContainer).removeEventListener("click",qo,!1)):(document.removeEventListener("scroll",kt,!1),document.removeEventListener("resize",kt,!1),Ft&&document.removeEventListener("click",qo,!1)))}function cV(e){uh(),NC(e||ae)}var dV=Object.prototype.hasOwnProperty;function fV(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)dV.call(n,o)&&(t[o]=n[o])}return t}function df(e,t,r){t||(t=250);let n,o;return function(...i){let a=this,l=+new Date;n&&l<n+t?(clearTimeout(o),o=setTimeout(()=>{n=l,e.apply(a,i)},t)):(n=l,e.apply(a,i))}}function Mb(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function pV(e,t,r="auto"){switch(r){case"debounce":return Mb(e,t);case"throttle":return df(e,t);default:return t<334?Mb(e,t):df(e,t)}}function hV(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function MC(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var gV={destroy:uh,init:NC,refresh:cV},Bb=gV,mV=F.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),yV=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"}})),bV=F.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),vV=({headingId:e,title:t})=>typeof t=="string"||!t?h.createElement(bV,{as:"h2",id:e,className:t?"":"sb-sr-only",lang:t?void 0:"en"},t||"Table of contents"):h.createElement("div",{id:e},t),EV=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:i,channel:a,className:l})=>{f.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[,p]=d.currentTarget.href.split("#");p&&a.emit(nV,`#${p}`)}},...i},c=setTimeout(()=>Bb.init(u),100);return()=>{clearTimeout(c),Bb.destroy()}},[a,t,o,n,r,i]);let s="table-of-contents";return h.createElement(mV,{className:l},t?null:h.createElement(yV,{"aria-labelledby":s},h.createElement(vV,{headingId:s,title:e}),h.createElement("div",{className:"toc-wrapper"})))},SV=e=>`anchor--${e}`,BC=({storyId:e,children:t})=>h.createElement("div",{id:SV(e),className:"sb-anchor"},t);const{InvalidBlockOfPropError:xV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{filterArgTypes:jb}=__STORYBOOK_MODULE_PREVIEW_API__,{getService:$V}=__STORYBOOK_MODULE_PREVIEW_API__;function wV(e,t){let r=t(),[{inst:n},o]=f.useState({inst:{value:r,getSnapshot:t}});return f.useLayoutEffect(()=>{n.value=r,n.getSnapshot=t,Hc(n)&&o({inst:n})},[e,r,t]),f.useEffect(()=>(Hc(n)&&o({inst:n}),e(()=>{Hc(n)&&o({inst:n})})),[e]),r}function Hc(e){let t=e.getSnapshot,r=e.value;try{let n=t();return!Object.is(r,n)}catch{return!0}}function jC(e,t,r,n){let o=f.useRef(void 0);(o.current?.key!==e||o.current.selector!==n)&&(o.current={key:e,selector:n,state:n?_h(t,r,n):_h(t,r)});let i=f.useRef(r);i.current=r;let a=f.useCallback(s=>{let u=c=>{o.current={key:e,selector:n,state:c},s()};return n?t.subscribe(i.current,n,u):t.subscribe(i.current,u)},[t,e,n]),l=f.useCallback(()=>o.current.state,[]);return wV(a,l)}function HC(e){let t=$V("core/docgen");return jC(e,t.queries.docgen,{id:e})}function UC(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}function zC(e,t){return Object.fromEntries(Object.entries(e||{}).map(([r,n])=>[r,UC(n,t)]))}function KC({componentId:e,storyId:t,parameters:r,initialArgs:n,customArgTypes:o}){let{data:i,isInitialLoading:a}=HC(e);return i?{rows:{serviceComponentName:i.name,mainRows:w_({payload:i,storyId:t??e,parameters:r,initialArgs:n,customArgTypes:o}),subcomponentRows:$_(i)},isInitialLoading:a}:{rows:null,isInitialLoading:a}}var On=(e,t)=>f.useContext(et).resolveOf(e,t),CV=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),ys=e=>{if(e)return typeof e=="string"?e.includes("-")?CV(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function _V(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function GC(e){let{of:t}=e;if("of"in e&&t===void 0)throw new xV;let r=f.useContext(et),n=On(t||"meta"),o;if(n.type==="component"){let{component:a,projectAnnotations:{parameters:l}}=n;o={parameters:l,componentId:r.getComponentId(a),argTypes:UC(a,l),component:a}}else if(n.type==="meta"){let{id:a,argTypes:l,parameters:s,initialArgs:u,component:c,subcomponents:d}=n.preparedMeta;o={parameters:s,componentId:a.split("--")[0],initialArgs:u,argTypes:l,component:c,subcomponents:d}}else{let{id:a,argTypes:l,parameters:s,initialArgs:u,component:c,subcomponents:d}=n.story;o={parameters:s,componentId:a.split("--")[0],storyId:a,initialArgs:u,argTypes:l,component:c,subcomponents:d}}let i=o.parameters?.docs?.argTypes||{};return{...o,filterProps:{include:e.include??i.include,exclude:e.exclude??i.exclude,sort:e.sort??i.sort}}}function WC({mainName:e="Main",mainRows:t,subcomponentRows:r,include:n,exclude:o,sort:i,docsLang:a}){let l=jb(t,n,o);if(Object.keys(r).length===0)return h.createElement(lo,{rows:l,sort:i,docsLang:a});let s={[e]:{rows:l,sort:i},...Object.fromEntries(Object.entries(r).map(([u,c])=>[u,{rows:jb(c,n,o),sort:i}]))};return h.createElement(kC,{tabs:s,sort:i,docsLang:a})}var TV=e=>{let{argTypes:t,parameters:r,component:n,subcomponents:o,filterProps:i}=GC(e);return t?WC({mainName:ys(n),mainRows:t,subcomponentRows:zC(o,r),docsLang:r?.docs?.lang,...i}):null},AV=e=>{let{argTypes:t,parameters:r,componentId:n,storyId:o,initialArgs:i,filterProps:a,component:l}=GC(e),{rows:s,isInitialLoading:u}=KC({componentId:n,storyId:o,parameters:r,initialArgs:i,customArgTypes:t});return u?h.createElement(lo,{isLoading:!0}):s?WC({mainName:ys(l)??s.serviceComponentName,mainRows:s.mainRows,subcomponentRows:s.subcomponentRows,docsLang:r?.docs?.lang,...a}):null},OV=e=>globalThis.FEATURES?.experimentalDocgenServer?h.createElement(AV,{...e}):h.createElement(TV,{...e});tt("ArgTypes",OV);const{FORCE_REMOUNT:RV}=__STORYBOOK_MODULE_CORE_EVENTS__,{InvalidBlockOfPropError:DV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{InvalidBlockOfPropError:PV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var IV=Object.create,VC=Object.defineProperty,FV=Object.getOwnPropertyDescriptor,qC=Object.getOwnPropertyNames,LV=Object.getPrototypeOf,kV=Object.prototype.hasOwnProperty,oe=(e,t)=>function(){return t||(0,e[qC(e)[0]])((t={exports:{}}).exports,t),t.exports},NV=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of qC(t))!kV.call(e,o)&&o!==r&&VC(e,o,{get:()=>t[o],enumerable:!(n=FV(t,o))||n.enumerable});return e},ch=(e,t,r)=>(r=e!=null?IV(LV(e)):{},NV(!e||!e.__esModule?VC(r,"default",{value:e,enumerable:!0}):r,e)),MV=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],BV=["detail"];function jV(e){let t=MV.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of BV.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var YC=oe({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),HV=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),UV=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),zV=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),KV=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),GV=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),dh=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),WV=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),VV=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),qV=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),YV=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),XV=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),JV=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),ZV=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),QV=oe({"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}}}),eq=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=QV();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),tq=oe({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),fh=oe({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=tq();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),rq=oe({"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}}),XC=oe({"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 i=42;r[n]=i;for(var a 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!==i||s.enumerable!==!0)return!1}return!0}}}),JC=oe({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=XC();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),ZC=oe({"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}}),QC=oe({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=YC();t.exports=r.getPrototypeOf||null}}),nq=oe({"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,i="[object Function]",a=function(u,c){for(var d=[],p=0;p<u.length;p+=1)d[p]=u[p];for(var g=0;g<c.length;g+=1)d[g+u.length]=c[g];return d},l=function(u,c){for(var d=[],p=c,g=0;p<u.length;p+=1,g+=1)d[g]=u[p];return d},s=function(u,c){for(var d="",p=0;p<u.length;p+=1)d+=u[p],p+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==i)throw new TypeError(r+c);for(var d=l(arguments,1),p,g=function(){if(this instanceof p){var E=c.apply(this,a(d,arguments));return Object(E)===E?E:this}return c.apply(u,a(d,arguments))},m=o(0,c.length-d.length),y=[],v=0;v<m;v++)y[v]="$"+v;if(p=Function("binder","return function ("+s(y,",")+"){ return binder.apply(this,arguments); }")(g),c.prototype){var b=function(){};b.prototype=c.prototype,p.prototype=new b,b.prototype=null}return p}}}),bs=oe({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=nq();t.exports=Function.prototype.bind||r}}),ph=oe({"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}}),e_=oe({"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}}),oq=oe({"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}}),iq=oe({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=bs(),n=e_(),o=ph(),i=oq();t.exports=i||r.call(o,n)}}),t_=oe({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=bs(),n=dh(),o=ph(),i=iq();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),aq=oe({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=t_(),n=fh(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof l=="function"?(function(s){return l(s==null?s:a(s))}):!1}}),lq=oe({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=ZC(),n=QC(),o=aq();t.exports=r?function(i){return r(i)}:n?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return n(i)}:o?function(i){return o(i)}:null}}),r_=oe({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=bs();t.exports=o.call(r,n)}}),sq=oe({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=YC(),o=HV(),i=UV(),a=zV(),l=KV(),s=GV(),u=dh(),c=WV(),d=VV(),p=qV(),g=YV(),m=XV(),y=JV(),v=ZV(),b=eq(),E=Function,S=function(Z){try{return E('"use strict"; return ('+Z+").constructor;")()}catch{}},x=fh(),A=rq(),w=function(){throw new u},C=x?(function(){try{return arguments.callee,w}catch{try{return x(arguments,"callee").get}catch{return w}}})():w,R=JC()(),L=lq(),I=QC(),T=ZC(),M=e_(),H=ph(),$={},_=typeof Uint8Array>"u"||!L?r:L(Uint8Array),O={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":R&&L?L([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%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%":i,"%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%":$,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&L?L(L([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!R||!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%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!R||!L?r:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&L?L(""[Symbol.iterator]()):r,"%Symbol%":R?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":_,"%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%":H,"%Function.prototype.apply%":M,"%Object.defineProperty%":A,"%Object.getPrototypeOf%":I,"%Math.abs%":d,"%Math.floor%":p,"%Math.max%":g,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":v,"%Math.sign%":b,"%Reflect.getPrototypeOf%":T};if(L)try{null.error}catch(Z){P=L(L(Z)),O["%Error.prototype%"]=P}var P,k=function Z(V){var q;if(V==="%AsyncFunction%")q=S("async function () {}");else if(V==="%GeneratorFunction%")q=S("function* () {}");else if(V==="%AsyncGeneratorFunction%")q=S("async function* () {}");else if(V==="%AsyncGenerator%"){var te=Z("%AsyncGeneratorFunction%");te&&(q=te.prototype)}else if(V==="%AsyncIteratorPrototype%"){var ce=Z("%AsyncGenerator%");ce&&L&&(q=L(ce.prototype))}return O[V]=q,q},B={__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"]},N=bs(),D=r_(),j=N.call(H,Array.prototype.concat),K=N.call(M,Array.prototype.splice),U=N.call(H,String.prototype.replace),z=N.call(H,String.prototype.slice),W=N.call(H,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,ie=function(Z){var V=z(Z,0,1),q=z(Z,-1);if(V==="%"&&q!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(q==="%"&&V!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var te=[];return U(Z,G,function(ce,rt,J,nt){te[te.length]=J?U(nt,X,"$1"):rt||ce}),te},Re=function(Z,V){var q=Z,te;if(D(B,q)&&(te=B[q],q="%"+te[0]+"%"),D(O,q)){var ce=O[q];if(ce===$&&(ce=k(q)),typeof ce>"u"&&!V)throw new u("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:te,name:q,value:ce}}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(W(/^%?[^%]*%?$/,Z)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var q=ie(Z),te=q.length>0?q[0]:"",ce=Re("%"+te+"%",V),rt=ce.name,J=ce.value,nt=!1,Pt=ce.alias;Pt&&(te=Pt[0],K(q,j([0,1],Pt)));for(var gt=1,It=!0;gt<q.length;gt+=1){var Fe=q[gt],lr=z(Fe,0,1),sr=z(Fe,-1);if((lr==='"'||lr==="'"||lr==="`"||sr==='"'||sr==="'"||sr==="`")&&lr!==sr)throw new s("property names with quotes must have matching quotes");if((Fe==="constructor"||!It)&&(nt=!0),te+="."+Fe,rt="%"+te+"%",D(O,rt))J=O[rt];else if(J!=null){if(!(Fe in J)){if(!V)throw new u("base intrinsic for "+Z+" exists, but the property is not available.");return}if(x&&gt+1>=q.length){var ur=x(J,Fe);It=!!ur,It&&"get"in ur&&!("originalValue"in ur.get)?J=ur.get:J=J[Fe]}else It=D(J,Fe),J=J[Fe];It&&!nt&&(O[rt]=J)}}return J}}}),hh=oe({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=sq(),n=t_(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,a){var l=r(i,!!a);return typeof l=="function"&&o(i,".prototype.")>-1?n([l]):l}}}),uq=oe({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=XC();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),n_=oe({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=hh(),n=uq()(),o=r_(),i=fh(),a;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),a=function(g){if(!g||typeof g!="object")return!1;var m=i(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"),p="[object RegExp]",a=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:d(g)===p});var l,s,u,c,d,p;t.exports=a}}),cq=oe({"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 i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),dq=oe({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=hh(),n=n_(),o=r("RegExp.prototype.exec"),i=dh();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(l){return o(a,l)!==null}}}}),fq=oe({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=hh(),n=r("Object.prototype.toString"),o=JC()(),i=dq();o?(a=r("Symbol.prototype.toString"),l=i(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(a(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 a,l,s}}),pq=ch(n_()),hq=ch(cq()),gq=ch(fq());function mq(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var yq=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,bq=yq,vq=typeof self=="object"&&self&&self.Object===Object&&self,Eq=bq||vq||Function("return this")(),gh=Eq,Sq=gh.Symbol,so=Sq,o_=Object.prototype,xq=o_.hasOwnProperty,$q=o_.toString,No=so?so.toStringTag:void 0;function wq(e){var t=xq.call(e,No),r=e[No];try{e[No]=void 0;var n=!0}catch{}var o=$q.call(e);return n&&(t?e[No]=r:delete e[No]),o}var Cq=wq,_q=Object.prototype,Tq=_q.toString;function Aq(e){return Tq.call(e)}var Oq=Aq,Rq="[object Null]",Dq="[object Undefined]",Hb=so?so.toStringTag:void 0;function Pq(e){return e==null?e===void 0?Dq:Rq:Hb&&Hb in Object(e)?Cq(e):Oq(e)}var Iq=Pq,Ub=so?so.prototype:void 0;Ub&&Ub.toString;function Fq(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var i_=Fq,Lq="[object AsyncFunction]",kq="[object Function]",Nq="[object GeneratorFunction]",Mq="[object Proxy]";function Bq(e){if(!i_(e))return!1;var t=Iq(e);return t==kq||t==Nq||t==Lq||t==Mq}var jq=Bq,Hq=gh["__core-js_shared__"],Uc=Hq,zb=(function(){var e=/[^.]+$/.exec(Uc&&Uc.keys&&Uc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Uq(e){return!!zb&&zb in e}var zq=Uq,Kq=Function.prototype,Gq=Kq.toString;function Wq(e){if(e!=null){try{return Gq.call(e)}catch{}try{return e+""}catch{}}return""}var Vq=Wq,qq=/[\\^$.*+?()[\]{}|]/g,Yq=/^\[object .+?Constructor\]$/,Xq=Function.prototype,Jq=Object.prototype,Zq=Xq.toString,Qq=Jq.hasOwnProperty,eY=RegExp("^"+Zq.call(Qq).replace(qq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tY(e){if(!i_(e)||zq(e))return!1;var t=jq(e)?eY:Yq;return t.test(Vq(e))}var rY=tY;function nY(e,t){return e?.[t]}var oY=nY;function iY(e,t){var r=oY(e,t);return rY(r)?r:void 0}var a_=iY;function aY(e,t){return e===t||e!==e&&t!==t}var lY=aY,sY=a_(Object,"create"),gi=sY;function uY(){this.__data__=gi?gi(null):{},this.size=0}var cY=uY;function dY(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fY=dY,pY="__lodash_hash_undefined__",hY=Object.prototype,gY=hY.hasOwnProperty;function mY(e){var t=this.__data__;if(gi){var r=t[e];return r===pY?void 0:r}return gY.call(t,e)?t[e]:void 0}var yY=mY,bY=Object.prototype,vY=bY.hasOwnProperty;function EY(e){var t=this.__data__;return gi?t[e]!==void 0:vY.call(t,e)}var SY=EY,xY="__lodash_hash_undefined__";function $Y(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=gi&&t===void 0?xY:t,this}var wY=$Y;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=cY;xo.prototype.delete=fY;xo.prototype.get=yY;xo.prototype.has=SY;xo.prototype.set=wY;var Kb=xo;function CY(){this.__data__=[],this.size=0}var _Y=CY;function TY(e,t){for(var r=e.length;r--;)if(lY(e[r][0],t))return r;return-1}var vs=TY,AY=Array.prototype,OY=AY.splice;function RY(e){var t=this.__data__,r=vs(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():OY.call(t,r,1),--this.size,!0}var DY=RY;function PY(e){var t=this.__data__,r=vs(t,e);return r<0?void 0:t[r][1]}var IY=PY;function FY(e){return vs(this.__data__,e)>-1}var LY=FY;function kY(e,t){var r=this.__data__,n=vs(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var NY=kY;function $o(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])}}$o.prototype.clear=_Y;$o.prototype.delete=DY;$o.prototype.get=IY;$o.prototype.has=LY;$o.prototype.set=NY;var MY=$o,BY=a_(gh,"Map"),jY=BY;function HY(){this.size=0,this.__data__={hash:new Kb,map:new(jY||MY),string:new Kb}}var UY=HY;function zY(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var KY=zY;function GY(e,t){var r=e.__data__;return KY(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Es=GY;function WY(e){var t=Es(this,e).delete(e);return this.size-=t?1:0,t}var VY=WY;function qY(e){return Es(this,e).get(e)}var YY=qY;function XY(e){return Es(this,e).has(e)}var JY=XY;function ZY(e,t){var r=Es(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var QY=ZY;function wo(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])}}wo.prototype.clear=UY;wo.prototype.delete=VY;wo.prototype.get=YY;wo.prototype.has=JY;wo.prototype.set=QY;var l_=wo,eX="Expected a function";function mh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(eX);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(mh.Cache||l_),r}mh.Cache=l_;var tX=mh,rX=500;function nX(e){var t=tX(e,function(n){return r.size===rX&&r.clear(),n}),r=t.cache;return t}var oX=nX,iX=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aX=/\\(\\)?/g;oX(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(iX,function(r,n,o,i){t.push(o?i.replace(aX,"$1"):n||r)}),t});var lX=mq,sX=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function s_(e){if(!lX(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=jV(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 uX=function(e){let t,r,n,o;return function(i,a){try{if(i==="")return o=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof a=="boolean")return a;if(a===void 0)return e.allowUndefined?"_undefined_":void 0;if(a===null)return null;if(typeof a=="number")return a===Number.NEGATIVE_INFINITY?"_-Infinity_":a===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(a)?"_NaN_":a;if(typeof a=="bigint")return`_bigint_${a.toString()}`;if(typeof a=="string")return sX.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,pq.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,hq.default)(a))return;if((0,gq.default)(a)){if(!e.allowSymbol)return;let u=Symbol.keyFor(a);return u!==void 0?`_gsymbol_${u}`:`_symbol_${a.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(a)?`[Array(${a.length})]`:"[Object]";if(a===this)return`_duplicate_${JSON.stringify(o)}`;if(a instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...a.cause?{cause:a.cause}:{},...a,name:a.name,message:a.message,stack:a.stack,"_constructor-name_":a.constructor.name}};if(a?.constructor?.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let u=t.get(a);if(!u){let c={__isClassInstance__:!0,__className__:a.constructor.name,...Object.getOwnPropertyNames(a).reduce((d,p)=>{try{d[p]=a[p]}catch{}return d},{})};return o.push(i),n.unshift(c),t.set(a,JSON.stringify(o)),a!==c&&r.set(a,c),c}return`_duplicate_${u}`}let s=t.get(a);if(!s){let u=Array.isArray(a)?a:s_(a);return o.push(i),n.unshift(u),t.set(a,JSON.stringify(o)),a!==u&&r.set(a,u),u}return`_duplicate_${s}`}catch{return}}},cX={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},dX=(e,t={})=>{let r={...cX,...t};return JSON.stringify(s_(e),uX(r),t.space)};function u_(e){return dX(e,{maxDepth:50})}var yh=f.createContext({sources:{}}),c_="--unknown--",fX=({children:e,channel:t})=>{let[r,n]=f.useState({});return f.useEffect(()=>{let o=(i,a=null,l=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof i=="string"?{id:i,source:a,format:l}:i,p=u?u_(u):c_;n(g=>({...g,[s]:{...g[s],[p]:{code:c||"",format:d}}}))};return t.on(xh,o),()=>t.off(xh,o)},[]),h.createElement(yh.Provider,{value:{sources:r}},e)};const{getService:pX}=__STORYBOOK_MODULE_PREVIEW_API__;function d_(e,t){let r=e.split("--")[0],n=pX("core/story-docs"),o=f.useCallback(i=>t(i,e),[t,e]);return jC(e,n.queries.storyDocs,{id:r},o)}function hX(e){return d_(e,T_)}function gX(e){return d_(e,A_)}function mX(e,t,r){let[n,o]=f.useState("Transforming..."),i=t?t?.(e,r):e;return f.useEffect(()=>{async function a(){let l=await i;l!==n&&o(l)}a()}),typeof i=="object"&&typeof i.then=="function"?n:i}var yX={sources:{}},bX=(e,t,r)=>{let{sources:n}=r,o=n?.[e];return o?.[u_(t)]||o?.[c_]||{code:""}},vX=({snippet:e,serviceSnippet:t,storyContext:r,typeFromProps:n,transformFromProps:o})=>{let i=r.parameters??{},{__isArgsStory:a}=i,l=i.docs?.source||{},s=n||l.type||xs.AUTO,u=t||e,c=s===xs.DYNAMIC||s===xs.AUTO&&u&&a?u:l.originalSource||"",d=o??l.transform,p=d?mX(c,d,r):c;return l.code!==void 0?l.code:p},Ss=(e,t,r,n="")=>{let{of:o}=e,i=f.useMemo(()=>{if(o)return t.resolveOf(o,["story"]).story;try{return t.storyById()}catch{}},[t,o]),a=i?t.getStoryContext(i):{},l=e.__forceInitialArgs?a.initialArgs:a.unmappedArgs,s=i?bX(i.id,l,r):null,u=vX({snippet:s?s.code:"",serviceSnippet:n,storyContext:{...a,args:l},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&o===void 0)throw new PV;let c=i?.parameters?.docs?.source||{},d=e.format,p=e.language??c.language??"jsx",g=e.dark??c.dark??!1;return e.code===void 0&&!i?{error:"Oh no! The source is not available."}:e.code!==void 0?{code:e.code,format:d,language:p,dark:g}:(d=s?.format??!0,{code:u,format:d,language:p,dark:g})},EX=({storyId:e,docsContext:t,sourceContext:r,...n})=>{let o=gX(e).data??"",i=Ss(n,t,r,o);return h.createElement(ki,{...i})},SX=e=>{let{of:t}=e,r=f.useContext(yh),n=f.useContext(et),o=f.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(EX,{...e,docsContext:n,sourceContext:r,storyId:o.id});let i=Ss(e,n,r);return h.createElement(ki,{...i})},xX=e=>{let t=f.useContext(et),r=Ss(e,t,yX);return h.createElement(ki,{...r})},$X=e=>e.code!==void 0?h.createElement(xX,{...e}):h.createElement(SX,{...e});tt("Source",$X);var wX=e=>{let t=f.useContext(et),r=f.useContext(yh),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new DV;let{story:i}=On(n||"story",["story"]),a=Ss({...o,...n&&{of:n}},t,r),l=e.layout??i.parameters.layout??i.parameters.docs?.canvas?.layout??"padded",s=e.withToolbar??i.parameters.docs?.canvas?.withToolbar??!1,u=e.additionalActions??i.parameters.docs?.canvas?.additionalActions,c=e.sourceState??i.parameters.docs?.canvas?.sourceState??"hidden",d=e.className??i.parameters.docs?.canvas?.className,p=e.story?.inline??i.parameters?.docs?.story?.inline??!1,g=f.useCallback(()=>{t.channel.emit(RV,{storyId:i.id})},[t.channel,i.id]);return h.createElement(LC,{withSource:c==="none"?void 0:a,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:l,inline:p,onReloadStory:p?g:void 0},h.createElement(jW,{of:n||i.moduleExport,meta:e.meta,...e.story}))},CX=tt("Canvas",wX);const{filterArgTypes:Gb}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:_X,STORY_ARGS_UPDATED:Wb,UPDATE_STORY_ARGS:TX}=__STORYBOOK_MODULE_CORE_EVENTS__;var AX=(e,t)=>{let r=OX(e,t);if(!r)throw new Error("No result when story was defined");return r},OX=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,i]=f.useState(r.args);f.useEffect(()=>{let s=u=>{u.storyId===n&&i(u.args)};return t.channel.on(Wb,s),()=>t.channel.off(Wb,s)},[n,t.channel]);let a=f.useCallback(s=>t.channel.emit(TX,{storyId:n,updatedArgs:s}),[n,t.channel]),l=f.useCallback(s=>t.channel.emit(_X,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,a,l]};const{GLOBALS_UPDATED:Vb}=__STORYBOOK_MODULE_CORE_EVENTS__;var RX=(e,t)=>{let r=t.getStoryContext(e),[n,o]=f.useState(r.globals);return f.useEffect(()=>{let i=a=>{o(a.globals)};return t.channel.on(Vb,i),()=>t.channel.off(Vb,i)},[t.channel]),[n]};const{Tag:DX}=__STORYBOOK_MODULE_PREVIEW_API__;var f_=()=>{let e=f.useContext(et),t=e.componentStories();return e.filterByAutodocs===!1?t[0]:t.find(r=>r.tags.includes(DX.AUTODOCS))};function p_(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 h_(e,t){let r=OC(),[n,o,i]=AX(e,t),[a]=RX(e,t);return{controlsId:r,args:n,globals:a,updateArgs:o,resetArgs:i}}var g_=({mainName:e="Story",mainRows:t,subcomponentRows:r,include:n,exclude:o,sort:i,storyId:a,controlsId:l,args:s,globals:u,updateArgs:c,resetArgs:d,docsLang:p})=>{let g=Gb(t,n,o);if(Object.keys(r).length===0)return Object.keys(g).length>0||Object.keys(s).length>0?h.createElement(lo,{storyId:a,controlsId:l,rows:g,sort:i,args:s,globals:u,updateArgs:c,resetArgs:d,docsLang:p}):null;let m={[e]:{rows:g,sort:i},...Object.fromEntries(Object.entries(r).map(([y,v])=>[y,{rows:Gb(v,n,o),sort:i}]))};return h.createElement(kC,{tabs:m,sort:i,args:s,globals:u,updateArgs:c,resetArgs:d,storyId:a,controlsId:l,docsLang:p})},PX=({story:e,context:t,...r})=>{let{parameters:n,argTypes:o,component:i,subcomponents:a}=e,l=p_(e,r),s=h_(e,t);return o?h.createElement(g_,{mainName:ys(i)||"Story",mainRows:o,subcomponentRows:zC(a,n),...l,storyId:e.id,...s,docsLang:n?.docs?.lang}):null},IX=({story:e,context:t,...r})=>{let{parameters:n,argTypes:o,component:i}=e,a=p_(e,r),l=h_(e,t),{rows:s,isInitialLoading:u}=KC({componentId:e.id.split("--")[0],storyId:e.id,parameters:n,initialArgs:e.initialArgs,customArgTypes:o});return u?h.createElement(lo,{isLoading:!0}):s?h.createElement(g_,{mainName:ys(i)??s.serviceComponentName,mainRows:s.mainRows,subcomponentRows:s.subcomponentRows,...a,storyId:e.id,...l,docsLang:n?.docs?.lang}):null},FX=e=>{let{of:t}=e,r=f.useContext(et),n=f_(),o=t?r.resolveOf(t,["story"]).story:n;if(!o)return null;let i={...e,story:o,context:r};return globalThis.FEATURES?.experimentalDocgenServer?h.createElement(IX,{...i}):h.createElement(PX,{...i})},LX=tt("Controls",FX);const{InvalidBlockOfPropError:kX}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{NAVIGATE_URL:NX}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:m_}=globalThis,MX=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return h.createElement(xp,null,t);let n=e&&e.split("-");return h.createElement(ki,{language:n&&n[1]||"text",format:!1,code:t,...r})};function bh(e,t){e.channel.emit(NX,t)}var ff=Zw.a,BX=({hash:e,children:t})=>{let r=f.useContext(et);return h.createElement(ff,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);m_.getElementById(o)&&bh(r,e)}},t)},jX=e=>{let{href:t,target:r,children:n,...o}=e,i=f.useContext(et);return!t||r==="_blank"||/^https?:\/\//.test(t)?h.createElement(ff,{...e}):t.startsWith("#")?h.createElement(BX,{hash:t},n):h.createElement(ff,{href:t,onClick:a=>{a.button===0&&!a.altKey&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&(a.preventDefault(),bh(i,a.currentTarget.getAttribute("href")||""))},target:r,...o},n)},y_=["h1","h2","h3","h4","h5","h6"],HX=y_.reduce((e,t)=>({...e,[t]:F(t)({})}),{}),UX=F.span({display:"block",position:"relative","& svg":{visibility:"hidden"},"&:hover svg, &:focus-within svg":{visibility:"visible"}}),zX=F.span({position:"absolute",top:"50%",right:"100%",lineHeight:"inherit",paddingRight:"8px","&&":{marginTop:-14},color:"inherit","& a":{color:"inherit",textDecoration:"none"}});F.span({});var KX=({as:e,id:t,children:r,...n})=>{let o=f.useContext(et),i=HX[e],a=`#${t}`;return h.createElement(i,{id:t,...n},h.createElement(UX,{className:"sb-unstyled"},h.createElement(zX,null,h.createElement(Se,{asChild:!0,variant:"ghost",size:"small",padding:"small",ariaLabel:"Copy heading URL to address bar"},h.createElement("a",{href:a,target:"_self",onClick:l=>{l.preventDefault(),m_.getElementById(t)&&bh(o,a)}},h.createElement(q2,null)))),r))},vh=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return h.createElement(KX,{as:t,id:r,...o},n);let i=t,{as:a,...l}=e;return h.createElement(i,{...$e(l,t)})},GX=y_.reduce((e,t)=>({...e,[t]:r=>h.createElement(vh,{as:t,...r})}),{}),WX=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(x_`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
731
+ ${af(.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%"},a={borderColor:io(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 ${io(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${Wo(.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":i,"&::-moz-range-track":i,"&::-ms-track":{...i,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":a,"&::-moz-range-track":a,"&::-ms-track":a,"&::-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"}}}}),CC=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),aG=F(CC)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),lG=F.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function sG(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 uG=({name:e,storyId:t,controlsId:r,value:n,onChange:o,min:i=0,max:a=100,step:l=1,onBlur:s,onFocus:u,argType:c,required:d})=>{let p=b=>{o(EK(b.target.value))},g=n!==void 0,m=f.useMemo(()=>sG(l),[l]),y=!!c?.table?.readonly,v=Ut(e,t,r);return h.createElement(lG,{readOnly:y},h.createElement("label",{htmlFor:v,className:"sb-sr-only"},e),h.createElement(CC,null,i),h.createElement(iG,{id:v,type:"range",disabled:y,onChange:p,"aria-required":d||void 0,name:e,min:i,max:a,step:l,onFocus:u,onBlur:s,value:n??i}),h.createElement(aG,{numberOFDecimalsPlaces:m,max:a},g?n.toFixed(m):"--"," / ",a))},cG=F.label({display:"flex"}),dG=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),fG=({name:e,storyId:t,controlsId:r,value:n,onChange:o,onFocus:i,onBlur:a,maxLength:l,argType:s,required:u})=>{let c=v=>{o(v.target.value)},d=!!s?.table?.readonly,[p,g]=f.useState(!1),m=f.useCallback(()=>{o(""),g(!0)},[g]);if(n===void 0)return h.createElement(Se,{ariaLabel:!1,variant:"outline",size:"medium",disabled:d,id:Rl(e,t,r),onClick:m},"Set string");let y=typeof n=="string";return h.createElement(cG,null,h.createElement(Tn.Textarea,{id:Ut(e,t,r),maxLength:l,onChange:c,disabled:d,size:"flex",placeholder:"Edit string...",autoFocus:p,"aria-required":u||void 0,valid:y?void 0:"error",name:e,value:y?n:"",onFocus:i,onBlur:a}),l&&h.createElement(dG,{isMaxed:n?.length===l},n?.length??0," / ",l))},pG=F(Tn.Input)({padding:10});function hG(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var gG=({onChange:e,name:t,storyId:r,controlsId:n,accept:o="image/*",value:i,argType:a,required:l})=>{let s=f.useRef(null),u=a?.control?.readOnly;function c(p){if(!p.target.files)return;let g=Array.from(p.target.files).map(m=>URL.createObjectURL(m));e(g),hG(i||[])}f.useEffect(()=>{i==null&&s.current&&(s.current.value="")},[i,t]);let d=Ut(t,r,n);return h.createElement(h.Fragment,null,h.createElement("label",{htmlFor:d,className:"sb-sr-only"},t),h.createElement(pG,{ref:s,id:d,type:"file",name:t,multiple:!0,disabled:u,onChange:c,accept:o,"aria-required":l||void 0,size:"flex"}))},mG=f.lazy(()=>Nr(()=>import("./Color-6AOWCN3U-DPFGZitI.js"),__vite__mapDeps([7,1,2,3,4]),import.meta.url)),yG=e=>h.createElement(f.Suspense,{fallback:h.createElement("div",null)},h.createElement(mG,{...e})),bG={array:Rb,object:Rb,boolean:fK,color:yG,date:bK,number:xK,check:In,"inline-check":In,radio:In,"inline-radio":In,select:In,"multi-select":In,range:uG,text:fG,file:gG},Ic=()=>h.createElement(h.Fragment,null,"-"),vG=({row:e,arg:t,updateArgs:r,isRequired:n,storyId:o,controlsId:i})=>{let{key:a,control:l}=e,[s,u]=f.useState(!1),[c,d]=f.useState({value:t});f.useEffect(()=>{s||d({value:t})},[s,t]);let p=f.useCallback(b=>(d({value:b}),r({[a]:b}),b),[r,a]),g=f.useCallback(()=>u(!1),[]),m=f.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(_i,{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(Ic,null))):h.createElement(Ic,null);let y={name:a,storyId:o,controlsId:i,argType:e,value:c.value,required:n,onChange:p,onBlur:g,onFocus:m},v=bG[l.type]||Ic;return h.createElement(v,{...y,...l,controlType:l.type})},EG=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:Sr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),SG=({tags:e})=>{let t=(e.params||[]).filter(i=>i.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(EG,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(i=>h.createElement("tr",{key:i.name},h.createElement("td",null,h.createElement("code",null,i.name)),h.createElement("td",null,i.description))),o&&h.createElement("tr",{key:"returns"},h.createElement("td",null,h.createElement("code",null,"Returns")),h.createElement("td",null,e.returns?.description)))))};function xG(e){return[...new Set(e)]}var Sl=8,Db=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),$G=F.details({display:"flex",flexDirection:"column",summary:{order:2},"summary::-webkit-details-marker":{display:"none"},"summary::marker":{content:"none"}}),wG=F.div({display:"flex",flexDirection:"column",flexWrap:"wrap",alignItems:"flex-start"}),CG=F.span(Sr,({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}})),_G=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"})),TG=F.button(Sr,({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"}})),AG=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"}})),OG=F(J2)({marginLeft:4}),RG=F(eE)({marginLeft:4}),DG=()=>h.createElement("span",null,"-"),ah=({text:e,simple:t})=>h.createElement(CG,{simple:t},e),PG=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return xG(t)},Pb=e=>e.slice(0,Sl).map(t=>h.createElement(ah,{key:t,text:t===""?'""':t})),IG=e=>e.slice(Sl).map(t=>h.createElement(ah,{key:t,text:t===""?'""':t})),FG=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,i]=f.useState(!1),[a,l]=f.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(ah,{text:s});let u=PG(s),c=u.length;return c>Sl?h.createElement(Db,{isExpanded:a},Pb(u),h.createElement($G,{open:a,onToggle:d=>l(d.currentTarget.open)},h.createElement(wG,null,IG(u)),h.createElement(_G,{role:"button"},a?"Show less...":`Show ${c-Sl} more...`))):h.createElement(Db,null,Pb(u))}return h.createElement(Zp,{ariaLabel:"Arg value details",placement:"bottom",visible:o,onVisibleChange:u=>{i(u)},hasCloseButton:!0,popover:h.createElement(AG,null,h.createElement(Ci,{language:"jsx",format:!1},n))},h.createElement(TG,{className:"sbdocs-expandable"},h.createElement("span",null,s),o?h.createElement(OG,null):h.createElement(RG,null)))},Fc=({value:e,initialExpandedArgs:t})=>e==null?h.createElement(DG,null):h.createElement(FG,{value:e,initialExpandedArgs:t}),LG=F.span({fontWeight:"bold"}),kG=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),NG=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Sr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),MG=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Ie(.1,e.color.defaultText):Ie(.2,e.color.defaultText),marginTop:t?4:0})),BG=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Ie(.1,e.color.defaultText):Ie(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),jG=F.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),HG=F.tr({"span.sbdocs-argcontrol-setup":{...ni},"&:hover, &:focus-within":{"span.sbdocs-argcontrol-setup":{...Ov},"span.sbdocs-argcontrol-placeholder":{...ni}}}),UG=e=>e&&{summary:typeof e=="string"?e:e.name},pa=e=>{let{row:t,updateArgs:r,compact:n,expandable:o,initialExpandedArgs:i,docsLang:a}=e,{name:l,description:s}=t,u=t.table||{},c=u.type||UG(t.type),d=u.defaultValue||t.defaultValue,p=t.type?.required,g=s!=null&&s!=="";return h.createElement(HG,null,h.createElement(jG,{expandable:o??!1},h.createElement(LG,null,l),p?h.createElement(kG,{"aria-hidden":!0,title:"Required"},"*"):null),n?null:h.createElement("td",null,g&&h.createElement(NG,{lang:a},h.createElement(fC,null,s)),u.jsDocTags!=null?h.createElement(h.Fragment,null,h.createElement(BG,{hasDescription:g},h.createElement(Fc,{value:c,initialExpandedArgs:i})),h.createElement(SG,{tags:u.jsDocTags})):h.createElement(MG,{hasDescription:g},h.createElement(Fc,{value:c,initialExpandedArgs:i}))),n?null:h.createElement("td",null,h.createElement(Fc,{value:d,initialExpandedArgs:i})),r?h.createElement("td",null,h.createElement(vG,{...e,isRequired:!!p})):null)},zG=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})),KG=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),GG=({inAddonPanel:e})=>{let[t,r]=f.useState(!0);return f.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:h.createElement(zG,{inAddonPanel:e},h.createElement(Li,{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(KG,null,h.createElement(_i,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},h.createElement(Jv,null)," Read docs"))}))},WG=F(X2)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Ie(.25,e.color.defaultText):Ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),VG=F(Qv)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Ie(.25,e.color.defaultText):Ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),qG=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),YG=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"?Ie(.4,e.color.defaultText):Ie(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),XG=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),JG=F.td({position:"relative"}),ZG=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${af(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Ib=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"}),Lc=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[i,a]=f.useState(n),l=e==="subsection"?XG:YG,s=r?.length||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${i?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return h.createElement(h.Fragment,null,h.createElement(ZG,{title:c},h.createElement(l,{colSpan:1},h.createElement(Ib,{onClick:d=>a(!i),tabIndex:0},c),h.createElement(qG,null,i?h.createElement(WG,null):h.createElement(VG,null),t)),h.createElement(JG,{colSpan:o-1},h.createElement(Ib,{onClick:d=>a(!i),tabIndex:-1,style:{outline:"none"}},c),i?null:u)),i?r:null)},QG=F.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),ha=F.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ye=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}}}),Le=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})),eW=()=>h.createElement(QG,null,h.createElement(ha,null,h.createElement(Ye,{position:"first"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"second"},h.createElement(Le,{width:"30%"})),h.createElement(Ye,{position:"third"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"last"},h.createElement(Le,{width:"60%"}))),h.createElement(ha,null,h.createElement(Ye,{position:"first"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"second"},h.createElement(Le,{width:"80%"}),h.createElement(Le,{width:"30%"})),h.createElement(Ye,{position:"third"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"last"},h.createElement(Le,{width:"60%"}))),h.createElement(ha,null,h.createElement(Ye,{position:"first"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"second"},h.createElement(Le,{width:"80%"}),h.createElement(Le,{width:"30%"})),h.createElement(Ye,{position:"third"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"last"},h.createElement(Le,{width:"60%"}))),h.createElement(ha,null,h.createElement(Ye,{position:"first"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"second"},h.createElement(Le,{width:"80%"}),h.createElement(Le,{width:"30%"})),h.createElement(Ye,{position:"third"},h.createElement(Le,{width:"60%"})),h.createElement(Ye,{position:"last"},h.createElement(Le,{width:"60%"})))),tW=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"}}}}})),rW=F.div({position:"relative"}),nW=F.div({position:"absolute",right:22,top:10}),oW=F(Se)({margin:"-4px -12px -4px 0"}),iW={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||(e.name??"").localeCompare(t.name??""),none:null},aW=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([i,a])=>{let{category:l,subcategory:s}=a?.table||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:i,...a});else{let c=u.subsections[s]||[];c.push({key:i,...a}),u.subsections[s]=c}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:i,...a}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:i,...a})});let n=iW[t],o=i=>n?Object.keys(i).reduce((a,l)=>({...a,[l]:i[l].sort(n)}),{}):i;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((i,a)=>({...i,[a]:{ungrouped:n?r.sections[a].ungrouped.sort(n):r.sections[a].ungrouped,subsections:o(r.sections[a].subsections)}}),{})}},lW=(e,t,r)=>{try{return AR(e,t,r)}catch(n){return AU.warn(n.message),!1}},lo=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,inTabPanel:i,initialExpandedArgs:a,sort:l="none",isLoading:s,storyId:u,controlsId:c,docsLang:d}=e,{rows:p,args:g,globals:m}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},y=f.useRef(!1),[v,b]=f.useState(!1);f.useEffect(()=>{y.current=!1,b(!1)},[g]);let E=f.useCallback(()=>{!y.current&&r&&(y.current=!0,b(!0),r())},[r]);if("error"in e){let{error:I}=e;return h.createElement(nC,null,I," ",h.createElement(_i,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},h.createElement(Jv,null)," Read the docs"))}if(s)return h.createElement(eW,null);let S=aW(nz(p||{},I=>!I?.table?.disable&&lW(I,g||{},m||{})),l),x=S.ungrouped.length===0,A=Object.entries(S.sections).length===0,w=Object.entries(S.ungroupedSubsections).length===0;if(x&&A&&w)return h.createElement(GG,{inAddonPanel:o});let C=1;t&&(C+=1),n||(C+=2);let R=Object.keys(S.sections).length>0,L={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a,storyId:u,controlsId:c};return h.createElement(Sp,null,h.createElement(rW,null,t&&!s&&r&&h.createElement(nW,null,h.createElement(oW,{variant:"ghost",padding:"small",onClick:E,disabled:v,ariaLabel:v?"Resetting controls...":"Reset controls",lang:"en"},h.createElement(e3,null))),h.createElement(tW,{compact:n,inAddonPanel:o,inTabPanel:i,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(pa,{key:I.key,row:I,arg:g&&g[I.key],docsLang:d,...L})),Object.entries(S.ungroupedSubsections).map(([I,T])=>h.createElement(Lc,{key:I,label:I,level:"subsection",colSpan:C},T.map(M=>h.createElement(pa,{key:M.key,row:M,arg:g&&g[M.key],expandable:R,...L})))),Object.entries(S.sections).map(([I,T])=>h.createElement(Lc,{key:I,label:I,level:"section",colSpan:C},T.ungrouped.map(M=>h.createElement(pa,{key:M.key,row:M,arg:g&&g[M.key],...L})),Object.entries(T.subsections).map(([M,H])=>h.createElement(Lc,{key:M,label:M,level:"subsection",colSpan:C},H.map($=>h.createElement(pa,{key:$.key,row:$,arg:g&&g[$.key],expandable:R,...L}))))))))))},ke=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,lh=600,sW=F.h1(({theme:e})=>({..._e({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${lh}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),uW=F.h2(({theme:e})=>({..._e({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${lh}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:Ie(.25,e.color.defaultText)})),cW=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"?Ie(.1,e.color.defaultText):Ie(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,flex:1,[ke("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"}},[ke("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}},[ke("div")]:t,[ke("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}},[ke("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ke("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ke("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ke("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ke("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ke("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ke("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ke("img")]:{maxWidth:"100%"},[ke("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ke("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ke("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ke("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"}},[ke("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"}}},[ke("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}},[ke("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),dW=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: ${lh}px)`]:{}})),fW=({children:e,toc:t,lang:r="en"})=>h.createElement(dW,{className:"sbdocs sbdocs-wrapper"},t,h.createElement(cW,{className:"sbdocs sbdocs-content",lang:r},e));const{logger:pW}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var _C=typeof document<"u"?h.useLayoutEffect:()=>{},TC={prefix:String(Math.round(Math.random()*1e10)),current:0},AC=h.createContext(TC),hW=h.createContext(!1),kc=new WeakMap;function gW(e=!1){let t=f.useContext(AC),r=f.useRef(null);if(r.current===null&&!e){var n,o;let i=(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(i){let a=kc.get(i);a==null?kc.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,kc.delete(i))}r.current=++t.current}return r.current}function mW(e){let t=f.useContext(AC),r=gW(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function yW(e){let t=h.useId(),[r]=f.useState(xW()),n=r?"react-aria":`react-aria${TC.prefix}`;return e||`${n}-${t}`}var bW=typeof h.useId=="function"?yW:mW;function vW(){return!1}function EW(){return!0}function SW(e){return()=>{}}function xW(){return typeof h.useSyncExternalStore=="function"?h.useSyncExternalStore(SW,vW,EW):f.useContext(hW)}var $W=!!(typeof window<"u"&&window.document&&window.document.createElement),Ma=new Map,Uo;typeof FinalizationRegistry<"u"&&(Uo=new FinalizationRegistry(e=>{Ma.delete(e)}));function OC(e){let[t,r]=f.useState(e),n=f.useRef(null),o=bW(t),i=f.useRef(null);if(Uo&&Uo.register(i,o),$W){let a=Ma.get(o);a&&!a.includes(n)?a.push(n):Ma.set(o,[n])}return _C(()=>{let a=o;return()=>{Uo&&Uo.unregister(i),Ma.delete(a)}},[o]),f.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function wW(e){if(CW())e.focus({preventScroll:!0});else{let t=_W(e);e.focus(),TW(t)}}var ga=null;function CW(){if(ga==null){ga=!1;try{document.createElement("div").focus({get preventScroll(){return ga=!0,!0}})}catch{}}return ga}function _W(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 TW(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function sh(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 RC(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 Ni(e){let t=null;return()=>(t==null&&(t=e()),t)}var uf=Ni(function(){return RC(/^Mac/i)}),AW=Ni(function(){return RC(/^iPad/i)||uf()&&navigator.maxTouchPoints>1}),OW=Ni(function(){return sh(/AppleWebKit/i)&&!RW()}),RW=Ni(function(){return sh(/Chrome/i)}),DW=Ni(function(){return sh(/Firefox/i)});f.createContext({isNative:!0,open:IW,useHref:e=>e});function xl(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}=t;DW()&&!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(uf()?i=!0:a=!0);let u=OW()&&uf()&&!AW()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});xl.isOpening=r,wW(e),e.dispatchEvent(u),xl.isOpening=!1}xl.isOpening=!1;function PW(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 IW(e,t){PW(e,r=>xl(r,t))}var ko=new Map,Fb=new Set;function Lb(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=ko.get(n.target);o||(o=new Set,ko.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=ko.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),ko.delete(n.target)),ko.size===0)){for(let i of Fb)i();Fb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Lb():document.addEventListener("DOMContentLoaded",Lb));var Nc;Nc=h.useInsertionEffect;var Mc;typeof document<"u"&&((Mc=h.useInsertionEffect)!==null&&Mc!==void 0||h.useLayoutEffect);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=f.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var et=globalThis?globalThis.__DOCS_CONTEXT__:f.createContext(null);const{InvalidBlockOfPropError:FW}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;function LW(e,t){let r=kW([e],t);return r&&r[0]}function kW(e,t){let[r,n]=f.useState({});return f.useEffect(()=>{Promise.all(e.map(async o=>{let i=await t.loadStory(o);n(a=>a[o]===i?a:{...a,[o]:i})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return}})}var NW=Symbol("mdxWrappedBlock"),kb=h.createContext(null),tt=(e,t)=>{let r=n=>{let o=h.useContext(kb),i=uv()[e];if(o?.has(e)||i===r)return h.createElement(t,{...n});if(i){let a=new Set(o??[]);return a.add(e),h.createElement(kb.Provider,{value:a},h.createElement(i,{...n}))}return h.createElement(t,{...n})};return r.displayName=e,r[NW]=!0,r},DC=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new FW;return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},MW=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,i=o.story||{};if(o.disable)return null;if(e.inline??i.inline??!1){let l=e.height??i.height,s=e.autoplay??i.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let a=e.height??i.height??i.iframeHeight??"100px";return{story:t,inline:!1,height:a,primary:!!e.__primary}},BW=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=f.useContext(et),r=DC(e,t),n=LW(r,t);if(!n)return h.createElement(FC,null);let o=MW(e,n,t);return o?h.createElement(WW,{...o}):null},jW=tt("Story",BW),ms=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}`}),PC=(e,t={})=>{let r=globalThis.PREVIEW_URL||"iframe.html",[n,o]=r.split("?"),i=new URLSearchParams(o||"");return Object.entries(t).forEach(([a,l])=>{i.set(a,l)}),i.set("id",e),`${n}?${i.toString()}`},{window:HW}=globalThis,UW=class extends f.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=HW.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,...i}=this.props;return h.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...i})}},IC=f.createContext({scale:1}),cf=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,zW=e=>{let t=f.useRef(),[r,n]=f.useState(!0),[o,i]=f.useState(),{story:a,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return f.useEffect(()=>{if(!(a&&t.current))return()=>{};let d=t.current,p=c(a,d,{showMain:()=>{},showError:({title:g,description:m})=>i(new Error(`${g} - ${m}`)),showException:g=>i(g)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>p())}},[s,c,a]),o?h.createElement("pre",null,h.createElement(U$,{error:o})):h.createElement(h.Fragment,null,l?h.createElement("style",null,`#${cf(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&h.createElement(FC,null),h.createElement("div",{ref:t,id:`${cf(e)}-inner`,"data-name":a.name,lang:a.parameters?.htmlLang||"en"}))},KW=({story:e,height:t="500px"})=>h.createElement("div",{style:{width:"100%",height:t}},h.createElement(IC.Consumer,null,({scale:r})=>h.createElement(UW,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:PC(e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),GW=F.strong(({theme:e})=>({color:e.color.orange})),WW=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?h.createElement(GW,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:cf(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?h.createElement(zW,{...e}):h.createElement(KW,{...e}))},FC=()=>h.createElement(Jw,null),VW=F(jw)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),Bc=F.div({display:"flex",alignItems:"center",gap:4}),Nb=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`})),qW=({isLoading:e,storyId:t,zoom:r,resetZoom:n,onReloadStory:o,...i})=>h.createElement(VW,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},lang:"en",...i},h.createElement(Bc,{key:"left"},e?[1,2,3].map(a=>h.createElement(Nb,{key:a})):h.createElement(h.Fragment,null,o&&h.createElement(Se,{padding:"small",variant:"ghost",key:"reload",onClick:o,ariaLabel:"Reload story"},h.createElement(t3,null)),h.createElement(Se,{padding:"small",variant:"ghost",key:"zoomin",onClick:a=>{a.preventDefault(),r(.8)},ariaLabel:"Zoom in"},h.createElement(M2,null)),h.createElement(Se,{padding:"small",variant:"ghost",key:"zoomout",onClick:a=>{a.preventDefault(),r(1.25)},ariaLabel:"Zoom out"},h.createElement(B2,null)),h.createElement(Se,{padding:"small",variant:"ghost",key:"zoomreset",onClick:a=>{a.preventDefault(),n()},ariaLabel:"Reset zoom"},h.createElement(j2,null)))),e?h.createElement(Bc,{key:"right"},h.createElement(Nb,null)):t&&h.createElement(Bc,{key:"right"},h.createElement(Se,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},h.createElement("a",{href:PC(t),target:"_blank",rel:"noopener noreferrer"},h.createElement(Y2,null))))),YW=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)`}}:{}),XW=F(Eo)({marginTop:-40,marginBottom:40}),JW=F(ki)(({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)":Wo(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Wo(.05,e.background.content)}})),ZW=F.div(({theme:e})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...ms(e),"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40});function QW(e){if(f.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var eV=F(qW)({position:"absolute",top:0,left:0,right:0,height:40}),tV=2e3,LC=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:i=!1,isExpanded:a=!1,additionalActions:l,className:s,layout:u="padded",inline:c=!1,onReloadStory:d,...p})=>{let[g,m]=f.useState(a),[y,v]=f.useState(null),[b,E]=f.useState(1),S=f.useMemo(()=>l?[...l]:[],[l]),x=OC(),A=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),w=f.useContext(et),C=f.useCallback(async M=>{let{createCopyToClipboardFunction:H}=await Nr(async()=>{const{createCopyToClipboardFunction:$}=await Promise.resolve().then(()=>NH);return{createCopyToClipboardFunction:$}},void 0,import.meta.url);await H()(M)},[]),R=f.useCallback(async()=>{try{await C(o?.code??""),v("Copied!")}catch(M){pW.error(M),v("Copy error!")}globalThis.window.setTimeout(()=>v(null),tV)},[C,o?.code]),L=QW(n),I=!!(o&&o.error),T=!!(o&&!o.error);return h.createElement(h.Fragment,null,h.createElement(ZW,{withSource:o,withToolbar:i,...p,className:A.join(" ")},i&&h.createElement(eV,{isLoading:e,border:!0,zoom:M=>E(b*M),resetZoom:()=>E(1),storyId:!e&&L?DC(L,w):void 0,onReloadStory:d}),h.createElement(IC.Provider,{value:{scale:b}},h.createElement(YW,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c,className:"docs-story"},h.createElement(H$.Element,{centered:u==="centered",scale:c?b:1},Array.isArray(n)?n.map((M,H)=>h.createElement("div",{key:H},M)):h.createElement("div",null,n)))),T&&g&&h.createElement("div",{id:x},h.createElement(JW,{...o,dark:!0,copyable:!1}))),(o||S.length>0)&&h.createElement(XW,{className:"sbdocs sbdocs-preview-actions",innerStyle:{paddingInline:0}},I&&h.createElement(Se,{lang:"en",ariaLabel:!1,disabled:!0,variant:"ghost",className:"docblock-code-toggle docblock-code-toggle--disabled"},h.createElement(pm,null)," No code available"),T&&h.createElement(h.Fragment,null,h.createElement(Di,{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(pm,null)," ",g?"Hide code":"Show code"),h.createElement(Se,{lang:"en",ariaLabel:!1,variant:"ghost",onClick:R},h.createElement(U2,null)," ",y??"Copy code")),S.map(({title:M,ariaLabel:H,className:$,onClick:_,disabled:O},P)=>h.createElement(Se,{key:P,ariaLabel:H??!1,className:$,onClick:_,disabled:!!O,variant:"ghost"},M))))};F(LC)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var rV=F(Yw)({height:"fit-content"}),kC=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return h.createElement(lo,{...r[0][1],...t});let n=r.map(([o,i],a)=>{let l=a===0?t:{sort:t.sort,docsLang:t.docsLang};return{id:`prop_table_div_${o}`,title:o,children:h.createElement(lo,{inTabPanel:!0,...i,...l})}});return h.createElement(rV,{tabs:n})};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?Ie(.4,e.color.defaultText):Ie(.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(_e,({theme:e})=>({...ms(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:Ie(.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:Ie(.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})=>({...ms(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:Ie(.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})=>({...ms(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:nV}=__STORYBOOK_MODULE_CORE_EVENTS__;function oV(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",i,a=!0,l=0;function s(I,T){let M=T.appendChild(c(I));if(I.children.length){let H=d(I.isCollapsed);I.children.forEach($=>{s($,H)}),M.appendChild(H)}}function u(I,T){let M=d(!1);if(T.forEach(H=>{s(H,M)}),i=I||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),T.length===0?i:i.appendChild(M)}function c(I){let T=document.createElement("li"),M=document.createElement("a");return e.listItemClass&&T.setAttribute("class",e.listItemClass),e.onClick&&(M.onclick=e.onClick),e.includeTitleTags&&M.setAttribute("title",I.textContent),e.includeHtml&&I.childNodes.length?t.call(I.childNodes,H=>{M.appendChild(H.cloneNode(!0))}):M.textContent=I.textContent,M.setAttribute("href",`${e.basePath}#${I.id}`),M.setAttribute("class",`${e.linkClass+o}node-name--${I.nodeName}${o}${e.extraLinkClasses}`),T.appendChild(M),T}function d(I){let T=e.orderedList?"ol":"ul",M=document.createElement(T),H=e.listClass+o+e.extraListClasses;return I&&(H=H+o+e.collapsibleClass,H=H+o+e.isCollapsedClass),M.setAttribute("class",H),M}function p(){let I=C(),T=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=i.offsetTop),I>e.fixedSidebarOffset?T.className.indexOf(e.positionFixedClass)===-1&&(T.className+=o+e.positionFixedClass):T.className=T.className.replace(o+e.positionFixedClass,"")}function g(I){let T=0;return I!==null&&(T=I.offsetTop,e.hasInnerContainers&&(T+=g(I.offsetParent))),T}function m(I,T){return I&&I.className!==T&&(I.className=T),I}function y(I,T){e.positionFixedSelector&&p();let M=I,H=T?.target?.getAttribute?T?.target?.getAttribute("href"):null,$=H&&H.charAt(0)==="#"?x(H.replace("#","")):!1,_=a||$;if(T&&l<5&&l++,_&&i&&M.length>0){let O=R(M),P=i.querySelector(`.${e.activeLinkClass}`),k=O.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),B=window.location.hash.replace("#",""),N=k,D=A();H&&$?N=H.replace("#",""):B&&B!==k&&D&&(x(k)||l<=2)&&(N=B);let j=i.querySelector(`.${e.linkClass}[href="${e.basePath}#${N}"]`);if(P===j)return;let K=i.querySelectorAll(`.${e.linkClass}`);t.call(K,G=>{m(G,G.className.replace(o+e.activeLinkClass,""))});let U=i.querySelectorAll(`.${e.listItemClass}`);t.call(U,G=>{m(G,G.className.replace(o+e.activeListItemClass,""))}),j&&j.className.indexOf(e.activeLinkClass)===-1&&(j.className+=o+e.activeLinkClass);let z=j?.parentNode;z&&z.className.indexOf(e.activeListItemClass)===-1&&(z.className+=o+e.activeListItemClass);let W=i.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(W,G=>{G.className.indexOf(e.isCollapsedClass)===-1&&(G.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 T=I.target||I.srcElement;typeof T.className!="string"||T.className.indexOf(e.linkClass)===-1||(a=!1)}function E(){a=!0}function S(){return a}function x(I){let T=w();return(document?.getElementById(I)).offsetTop>T.offsetHeight-T.clientHeight*1.4-e.bottomModeThreshold}function A(){let I=w(),T=I.scrollHeight>I.clientHeight,M=C()+I.clientHeight>I.offsetHeight-e.bottomModeThreshold;return T&&M}function w(){let I;return e.scrollContainer&&document.querySelector(e.scrollContainer)?I=document.querySelector(e.scrollContainer):I=document.documentElement||n,I}function C(){return w()?.scrollTop||0}function R(I,T=C()){let M;return r.call(I,(H,$)=>{if(g(H)>T+e.headingsOffset+10){let _=$===0?$:$-1;return M=I[_],!0}if($===I.length-1)return M=I[I.length-1],!0}),M}function L(I){let T=C(),M=R(I,T),H=A();if((!M||T<5)&&!H)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(M&&!H){let $=`#${M.id}`;window.location.hash!==$&&window.history.pushState(null,null,$)}}return{enableTocAnimation:E,disableTocAnimation:b,render:u,updateToc:y,getCurrentlyHighlighting:S,getTopHeader:R,getScrollTop:C,updateUrlHashForHeader:L}}var iV={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 aV(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 i(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 a(u,c){let d=i(u),p=d.headingLevel,g=c,m=r(g),y=m?m.headingLevel:0,v=p-y;for(;v>0&&(m=r(g),!(m&&p===m.headingLevel));)m&&m.children!==void 0&&(g=m.children),v--;return p>=e.collapseDepth&&(d.isCollapsed=!0),g.push(d),g}function l(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(p){return`${p.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 p=i(d);return p&&a(p,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function lV(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?a(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!i(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||sV(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function i(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(a(s.href)===n||a(s.href)+"#"===n)}function a(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 sV(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("")+'"]'),i=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,a=typeof n.duration=="function"?n.duration(i):n.duration,l,s;requestAnimationFrame(function(p){l=p,u(p)});function u(p){s=p-l,window.scrollTo(0,n.easing(s,r,i,a)),s<a?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+i),typeof n.callback=="function"&&n.callback()}function d(p,g,m,y){return p/=y/2,p<1?m/2*p*p+g:(p--,-m/2*(p*(p-2)-1)+g)}}function uV(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 ae={},Ft,jc,Qr,kt,qo;function NC(e){let t=!1;ae=fV(iV,e||{}),ae.scrollSmooth&&(ae.duration=ae.scrollSmoothDuration,ae.offset=ae.scrollSmoothOffset,lV(ae)),Ft=oV(ae),jc=aV(ae),uh();let r=hV(ae);if(r===null)return;let n=MC(ae);if(n===null||(Qr=jc.selectHeadings(r,ae.headingSelector),Qr===null))return;let o=jc.nestHeadingsArray(Qr).nest;if(!ae.skipRendering)Ft.render(n,o);else return this;let i=!1,a=ae.scrollHandlerTimeout||ae.throttleTimeout;kt=((s,u)=>pV(s,u,ae.scrollHandlerType))(s=>{Ft.updateToc(Qr,s),!ae.disableTocScrollSync&&!i&&uV(ae),ae.enableUrlHashUpdateOnScroll&&t&&Ft.getCurrentlyHighlighting()&&Ft.updateUrlHashForHeader(Qr);let u=s?.target?.scrollingElement?.scrollTop===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(Ft.updateToc(Qr),ae.scrollEndCallback?.(s))},a),t||(kt(),t=!0),window.onhashchange=window.onscrollend=s=>{kt(s)},ae.scrollContainer&&document.querySelector(ae.scrollContainer)?(document.querySelector(ae.scrollContainer).addEventListener("scroll",kt,!1),document.querySelector(ae.scrollContainer).addEventListener("resize",kt,!1)):(document.addEventListener("scroll",kt,!1),document.addEventListener("resize",kt,!1));let l=null;qo=df(s=>{i=!0,ae.scrollSmooth&&Ft.disableTocAnimation(s),Ft.updateToc(Qr,s),l&&clearTimeout(l),l=setTimeout(()=>{Ft.enableTocAnimation()},ae.scrollSmoothDuration),setTimeout(()=>{i=!1},ae.scrollSmoothDuration+100)},ae.throttleTimeout),ae.scrollContainer&&document.querySelector(ae.scrollContainer)?document.querySelector(ae.scrollContainer).addEventListener("click",qo,!1):document.addEventListener("click",qo,!1)}function uh(){let e=MC(ae);e!==null&&(ae.skipRendering||e&&(e.innerHTML=""),ae.scrollContainer&&document.querySelector(ae.scrollContainer)?(document.querySelector(ae.scrollContainer).removeEventListener("scroll",kt,!1),document.querySelector(ae.scrollContainer).removeEventListener("resize",kt,!1),Ft&&document.querySelector(ae.scrollContainer).removeEventListener("click",qo,!1)):(document.removeEventListener("scroll",kt,!1),document.removeEventListener("resize",kt,!1),Ft&&document.removeEventListener("click",qo,!1)))}function cV(e){uh(),NC(e||ae)}var dV=Object.prototype.hasOwnProperty;function fV(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)dV.call(n,o)&&(t[o]=n[o])}return t}function df(e,t,r){t||(t=250);let n,o;return function(...i){let a=this,l=+new Date;n&&l<n+t?(clearTimeout(o),o=setTimeout(()=>{n=l,e.apply(a,i)},t)):(n=l,e.apply(a,i))}}function Mb(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function pV(e,t,r="auto"){switch(r){case"debounce":return Mb(e,t);case"throttle":return df(e,t);default:return t<334?Mb(e,t):df(e,t)}}function hV(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function MC(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var gV={destroy:uh,init:NC,refresh:cV},Bb=gV,mV=F.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),yV=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"}})),bV=F.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),vV=({headingId:e,title:t})=>typeof t=="string"||!t?h.createElement(bV,{as:"h2",id:e,className:t?"":"sb-sr-only",lang:t?void 0:"en"},t||"Table of contents"):h.createElement("div",{id:e},t),EV=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:i,channel:a,className:l})=>{f.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[,p]=d.currentTarget.href.split("#");p&&a.emit(nV,`#${p}`)}},...i},c=setTimeout(()=>Bb.init(u),100);return()=>{clearTimeout(c),Bb.destroy()}},[a,t,o,n,r,i]);let s="table-of-contents";return h.createElement(mV,{className:l},t?null:h.createElement(yV,{"aria-labelledby":s},h.createElement(vV,{headingId:s,title:e}),h.createElement("div",{className:"toc-wrapper"})))},SV=e=>`anchor--${e}`,BC=({storyId:e,children:t})=>h.createElement("div",{id:SV(e),className:"sb-anchor"},t);const{InvalidBlockOfPropError:xV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{filterArgTypes:jb}=__STORYBOOK_MODULE_PREVIEW_API__,{getService:$V}=__STORYBOOK_MODULE_PREVIEW_API__;function wV(e,t){let r=t(),[{inst:n},o]=f.useState({inst:{value:r,getSnapshot:t}});return f.useLayoutEffect(()=>{n.value=r,n.getSnapshot=t,Hc(n)&&o({inst:n})},[e,r,t]),f.useEffect(()=>(Hc(n)&&o({inst:n}),e(()=>{Hc(n)&&o({inst:n})})),[e]),r}function Hc(e){let t=e.getSnapshot,r=e.value;try{let n=t();return!Object.is(r,n)}catch{return!0}}function jC(e,t,r,n){let o=f.useRef(void 0);(o.current?.key!==e||o.current.selector!==n)&&(o.current={key:e,selector:n,state:n?_h(t,r,n):_h(t,r)});let i=f.useRef(r);i.current=r;let a=f.useCallback(s=>{let u=c=>{o.current={key:e,selector:n,state:c},s()};return n?t.subscribe(i.current,n,u):t.subscribe(i.current,u)},[t,e,n]),l=f.useCallback(()=>o.current.state,[]);return wV(a,l)}function HC(e){let t=$V("core/docgen");return jC(e,t.queries.docgen,{id:e})}function UC(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}function zC(e,t){return Object.fromEntries(Object.entries(e||{}).map(([r,n])=>[r,UC(n,t)]))}function KC({componentId:e,storyId:t,parameters:r,initialArgs:n,customArgTypes:o}){let{data:i,isInitialLoading:a}=HC(e);return i?{rows:{serviceComponentName:i.name,mainRows:w_({payload:i,storyId:t??e,parameters:r,initialArgs:n,customArgTypes:o}),subcomponentRows:$_(i)},isInitialLoading:a}:{rows:null,isInitialLoading:a}}var On=(e,t)=>f.useContext(et).resolveOf(e,t),CV=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),ys=e=>{if(e)return typeof e=="string"?e.includes("-")?CV(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function _V(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function GC(e){let{of:t}=e;if("of"in e&&t===void 0)throw new xV;let r=f.useContext(et),n=On(t||"meta"),o;if(n.type==="component"){let{component:a,projectAnnotations:{parameters:l}}=n;o={parameters:l,componentId:r.getComponentId(a),argTypes:UC(a,l),component:a}}else if(n.type==="meta"){let{id:a,argTypes:l,parameters:s,initialArgs:u,component:c,subcomponents:d}=n.preparedMeta;o={parameters:s,componentId:a.split("--")[0],initialArgs:u,argTypes:l,component:c,subcomponents:d}}else{let{id:a,argTypes:l,parameters:s,initialArgs:u,component:c,subcomponents:d}=n.story;o={parameters:s,componentId:a.split("--")[0],storyId:a,initialArgs:u,argTypes:l,component:c,subcomponents:d}}let i=o.parameters?.docs?.argTypes||{};return{...o,filterProps:{include:e.include??i.include,exclude:e.exclude??i.exclude,sort:e.sort??i.sort}}}function WC({mainName:e="Main",mainRows:t,subcomponentRows:r,include:n,exclude:o,sort:i,docsLang:a}){let l=jb(t,n,o);if(Object.keys(r).length===0)return h.createElement(lo,{rows:l,sort:i,docsLang:a});let s={[e]:{rows:l,sort:i},...Object.fromEntries(Object.entries(r).map(([u,c])=>[u,{rows:jb(c,n,o),sort:i}]))};return h.createElement(kC,{tabs:s,sort:i,docsLang:a})}var TV=e=>{let{argTypes:t,parameters:r,component:n,subcomponents:o,filterProps:i}=GC(e);return t?WC({mainName:ys(n),mainRows:t,subcomponentRows:zC(o,r),docsLang:r?.docs?.lang,...i}):null},AV=e=>{let{argTypes:t,parameters:r,componentId:n,storyId:o,initialArgs:i,filterProps:a,component:l}=GC(e),{rows:s,isInitialLoading:u}=KC({componentId:n,storyId:o,parameters:r,initialArgs:i,customArgTypes:t});return u?h.createElement(lo,{isLoading:!0}):s?WC({mainName:ys(l)??s.serviceComponentName,mainRows:s.mainRows,subcomponentRows:s.subcomponentRows,docsLang:r?.docs?.lang,...a}):null},OV=e=>globalThis.FEATURES?.experimentalDocgenServer?h.createElement(AV,{...e}):h.createElement(TV,{...e});tt("ArgTypes",OV);const{FORCE_REMOUNT:RV}=__STORYBOOK_MODULE_CORE_EVENTS__,{InvalidBlockOfPropError:DV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{InvalidBlockOfPropError:PV}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var IV=Object.create,VC=Object.defineProperty,FV=Object.getOwnPropertyDescriptor,qC=Object.getOwnPropertyNames,LV=Object.getPrototypeOf,kV=Object.prototype.hasOwnProperty,oe=(e,t)=>function(){return t||(0,e[qC(e)[0]])((t={exports:{}}).exports,t),t.exports},NV=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of qC(t))!kV.call(e,o)&&o!==r&&VC(e,o,{get:()=>t[o],enumerable:!(n=FV(t,o))||n.enumerable});return e},ch=(e,t,r)=>(r=e!=null?IV(LV(e)):{},NV(!e||!e.__esModule?VC(r,"default",{value:e,enumerable:!0}):r,e)),MV=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],BV=["detail"];function jV(e){let t=MV.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of BV.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var YC=oe({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),HV=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),UV=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),zV=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),KV=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),GV=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),dh=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),WV=oe({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),VV=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),qV=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),YV=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),XV=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),JV=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),ZV=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),QV=oe({"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}}}),eq=oe({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=QV();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),tq=oe({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),fh=oe({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=tq();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),rq=oe({"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}}),XC=oe({"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 i=42;r[n]=i;for(var a 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!==i||s.enumerable!==!0)return!1}return!0}}}),JC=oe({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=XC();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),ZC=oe({"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}}),QC=oe({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=YC();t.exports=r.getPrototypeOf||null}}),nq=oe({"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,i="[object Function]",a=function(u,c){for(var d=[],p=0;p<u.length;p+=1)d[p]=u[p];for(var g=0;g<c.length;g+=1)d[g+u.length]=c[g];return d},l=function(u,c){for(var d=[],p=c,g=0;p<u.length;p+=1,g+=1)d[g]=u[p];return d},s=function(u,c){for(var d="",p=0;p<u.length;p+=1)d+=u[p],p+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==i)throw new TypeError(r+c);for(var d=l(arguments,1),p,g=function(){if(this instanceof p){var E=c.apply(this,a(d,arguments));return Object(E)===E?E:this}return c.apply(u,a(d,arguments))},m=o(0,c.length-d.length),y=[],v=0;v<m;v++)y[v]="$"+v;if(p=Function("binder","return function ("+s(y,",")+"){ return binder.apply(this,arguments); }")(g),c.prototype){var b=function(){};b.prototype=c.prototype,p.prototype=new b,b.prototype=null}return p}}}),bs=oe({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=nq();t.exports=Function.prototype.bind||r}}),ph=oe({"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}}),e_=oe({"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}}),oq=oe({"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}}),iq=oe({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=bs(),n=e_(),o=ph(),i=oq();t.exports=i||r.call(o,n)}}),t_=oe({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=bs(),n=dh(),o=ph(),i=iq();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),aq=oe({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=t_(),n=fh(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var i=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,l=a.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof l=="function"?(function(s){return l(s==null?s:a(s))}):!1}}),lq=oe({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=ZC(),n=QC(),o=aq();t.exports=r?function(i){return r(i)}:n?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return n(i)}:o?function(i){return o(i)}:null}}),r_=oe({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=bs();t.exports=o.call(r,n)}}),sq=oe({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=YC(),o=HV(),i=UV(),a=zV(),l=KV(),s=GV(),u=dh(),c=WV(),d=VV(),p=qV(),g=YV(),m=XV(),y=JV(),v=ZV(),b=eq(),E=Function,S=function(Z){try{return E('"use strict"; return ('+Z+").constructor;")()}catch{}},x=fh(),A=rq(),w=function(){throw new u},C=x?(function(){try{return arguments.callee,w}catch{try{return x(arguments,"callee").get}catch{return w}}})():w,R=JC()(),L=lq(),I=QC(),T=ZC(),M=e_(),H=ph(),$={},_=typeof Uint8Array>"u"||!L?r:L(Uint8Array),O={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":R&&L?L([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%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%":i,"%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%":$,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":R&&L?L(L([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!R||!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%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!R||!L?r:L(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":R&&L?L(""[Symbol.iterator]()):r,"%Symbol%":R?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":_,"%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%":H,"%Function.prototype.apply%":M,"%Object.defineProperty%":A,"%Object.getPrototypeOf%":I,"%Math.abs%":d,"%Math.floor%":p,"%Math.max%":g,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":v,"%Math.sign%":b,"%Reflect.getPrototypeOf%":T};if(L)try{null.error}catch(Z){P=L(L(Z)),O["%Error.prototype%"]=P}var P,k=function Z(V){var q;if(V==="%AsyncFunction%")q=S("async function () {}");else if(V==="%GeneratorFunction%")q=S("function* () {}");else if(V==="%AsyncGeneratorFunction%")q=S("async function* () {}");else if(V==="%AsyncGenerator%"){var te=Z("%AsyncGeneratorFunction%");te&&(q=te.prototype)}else if(V==="%AsyncIteratorPrototype%"){var ce=Z("%AsyncGenerator%");ce&&L&&(q=L(ce.prototype))}return O[V]=q,q},B={__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"]},N=bs(),D=r_(),j=N.call(H,Array.prototype.concat),K=N.call(M,Array.prototype.splice),U=N.call(H,String.prototype.replace),z=N.call(H,String.prototype.slice),W=N.call(H,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,ie=function(Z){var V=z(Z,0,1),q=z(Z,-1);if(V==="%"&&q!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(q==="%"&&V!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var te=[];return U(Z,G,function(ce,rt,J,nt){te[te.length]=J?U(nt,X,"$1"):rt||ce}),te},Re=function(Z,V){var q=Z,te;if(D(B,q)&&(te=B[q],q="%"+te[0]+"%"),D(O,q)){var ce=O[q];if(ce===$&&(ce=k(q)),typeof ce>"u"&&!V)throw new u("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:te,name:q,value:ce}}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(W(/^%?[^%]*%?$/,Z)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var q=ie(Z),te=q.length>0?q[0]:"",ce=Re("%"+te+"%",V),rt=ce.name,J=ce.value,nt=!1,Pt=ce.alias;Pt&&(te=Pt[0],K(q,j([0,1],Pt)));for(var gt=1,It=!0;gt<q.length;gt+=1){var Fe=q[gt],lr=z(Fe,0,1),sr=z(Fe,-1);if((lr==='"'||lr==="'"||lr==="`"||sr==='"'||sr==="'"||sr==="`")&&lr!==sr)throw new s("property names with quotes must have matching quotes");if((Fe==="constructor"||!It)&&(nt=!0),te+="."+Fe,rt="%"+te+"%",D(O,rt))J=O[rt];else if(J!=null){if(!(Fe in J)){if(!V)throw new u("base intrinsic for "+Z+" exists, but the property is not available.");return}if(x&&gt+1>=q.length){var ur=x(J,Fe);It=!!ur,It&&"get"in ur&&!("originalValue"in ur.get)?J=ur.get:J=J[Fe]}else It=D(J,Fe),J=J[Fe];It&&!nt&&(O[rt]=J)}}return J}}}),hh=oe({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=sq(),n=t_(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,a){var l=r(i,!!a);return typeof l=="function"&&o(i,".prototype.")>-1?n([l]):l}}}),uq=oe({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=XC();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),n_=oe({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=hh(),n=uq()(),o=r_(),i=fh(),a;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),a=function(g){if(!g||typeof g!="object")return!1;var m=i(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"),p="[object RegExp]",a=function(g){return!g||typeof g!="object"&&typeof g!="function"?!1:d(g)===p});var l,s,u,c,d,p;t.exports=a}}),cq=oe({"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 i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),dq=oe({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=hh(),n=n_(),o=r("RegExp.prototype.exec"),i=dh();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(l){return o(a,l)!==null}}}}),fq=oe({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=hh(),n=r("Object.prototype.toString"),o=JC()(),i=dq();o?(a=r("Symbol.prototype.toString"),l=i(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(a(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 a,l,s}}),pq=ch(n_()),hq=ch(cq()),gq=ch(fq());function mq(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var yq=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,bq=yq,vq=typeof self=="object"&&self&&self.Object===Object&&self,Eq=bq||vq||Function("return this")(),gh=Eq,Sq=gh.Symbol,so=Sq,o_=Object.prototype,xq=o_.hasOwnProperty,$q=o_.toString,No=so?so.toStringTag:void 0;function wq(e){var t=xq.call(e,No),r=e[No];try{e[No]=void 0;var n=!0}catch{}var o=$q.call(e);return n&&(t?e[No]=r:delete e[No]),o}var Cq=wq,_q=Object.prototype,Tq=_q.toString;function Aq(e){return Tq.call(e)}var Oq=Aq,Rq="[object Null]",Dq="[object Undefined]",Hb=so?so.toStringTag:void 0;function Pq(e){return e==null?e===void 0?Dq:Rq:Hb&&Hb in Object(e)?Cq(e):Oq(e)}var Iq=Pq,Ub=so?so.prototype:void 0;Ub&&Ub.toString;function Fq(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var i_=Fq,Lq="[object AsyncFunction]",kq="[object Function]",Nq="[object GeneratorFunction]",Mq="[object Proxy]";function Bq(e){if(!i_(e))return!1;var t=Iq(e);return t==kq||t==Nq||t==Lq||t==Mq}var jq=Bq,Hq=gh["__core-js_shared__"],Uc=Hq,zb=(function(){var e=/[^.]+$/.exec(Uc&&Uc.keys&&Uc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Uq(e){return!!zb&&zb in e}var zq=Uq,Kq=Function.prototype,Gq=Kq.toString;function Wq(e){if(e!=null){try{return Gq.call(e)}catch{}try{return e+""}catch{}}return""}var Vq=Wq,qq=/[\\^$.*+?()[\]{}|]/g,Yq=/^\[object .+?Constructor\]$/,Xq=Function.prototype,Jq=Object.prototype,Zq=Xq.toString,Qq=Jq.hasOwnProperty,eY=RegExp("^"+Zq.call(Qq).replace(qq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tY(e){if(!i_(e)||zq(e))return!1;var t=jq(e)?eY:Yq;return t.test(Vq(e))}var rY=tY;function nY(e,t){return e?.[t]}var oY=nY;function iY(e,t){var r=oY(e,t);return rY(r)?r:void 0}var a_=iY;function aY(e,t){return e===t||e!==e&&t!==t}var lY=aY,sY=a_(Object,"create"),gi=sY;function uY(){this.__data__=gi?gi(null):{},this.size=0}var cY=uY;function dY(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fY=dY,pY="__lodash_hash_undefined__",hY=Object.prototype,gY=hY.hasOwnProperty;function mY(e){var t=this.__data__;if(gi){var r=t[e];return r===pY?void 0:r}return gY.call(t,e)?t[e]:void 0}var yY=mY,bY=Object.prototype,vY=bY.hasOwnProperty;function EY(e){var t=this.__data__;return gi?t[e]!==void 0:vY.call(t,e)}var SY=EY,xY="__lodash_hash_undefined__";function $Y(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=gi&&t===void 0?xY:t,this}var wY=$Y;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=cY;xo.prototype.delete=fY;xo.prototype.get=yY;xo.prototype.has=SY;xo.prototype.set=wY;var Kb=xo;function CY(){this.__data__=[],this.size=0}var _Y=CY;function TY(e,t){for(var r=e.length;r--;)if(lY(e[r][0],t))return r;return-1}var vs=TY,AY=Array.prototype,OY=AY.splice;function RY(e){var t=this.__data__,r=vs(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():OY.call(t,r,1),--this.size,!0}var DY=RY;function PY(e){var t=this.__data__,r=vs(t,e);return r<0?void 0:t[r][1]}var IY=PY;function FY(e){return vs(this.__data__,e)>-1}var LY=FY;function kY(e,t){var r=this.__data__,n=vs(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var NY=kY;function $o(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])}}$o.prototype.clear=_Y;$o.prototype.delete=DY;$o.prototype.get=IY;$o.prototype.has=LY;$o.prototype.set=NY;var MY=$o,BY=a_(gh,"Map"),jY=BY;function HY(){this.size=0,this.__data__={hash:new Kb,map:new(jY||MY),string:new Kb}}var UY=HY;function zY(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var KY=zY;function GY(e,t){var r=e.__data__;return KY(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Es=GY;function WY(e){var t=Es(this,e).delete(e);return this.size-=t?1:0,t}var VY=WY;function qY(e){return Es(this,e).get(e)}var YY=qY;function XY(e){return Es(this,e).has(e)}var JY=XY;function ZY(e,t){var r=Es(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var QY=ZY;function wo(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])}}wo.prototype.clear=UY;wo.prototype.delete=VY;wo.prototype.get=YY;wo.prototype.has=JY;wo.prototype.set=QY;var l_=wo,eX="Expected a function";function mh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(eX);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(mh.Cache||l_),r}mh.Cache=l_;var tX=mh,rX=500;function nX(e){var t=tX(e,function(n){return r.size===rX&&r.clear(),n}),r=t.cache;return t}var oX=nX,iX=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aX=/\\(\\)?/g;oX(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(iX,function(r,n,o,i){t.push(o?i.replace(aX,"$1"):n||r)}),t});var lX=mq,sX=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function s_(e){if(!lX(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=jV(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 uX=function(e){let t,r,n,o;return function(i,a){try{if(i==="")return o=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),o.pop();if(typeof a=="boolean")return a;if(a===void 0)return e.allowUndefined?"_undefined_":void 0;if(a===null)return null;if(typeof a=="number")return a===Number.NEGATIVE_INFINITY?"_-Infinity_":a===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(a)?"_NaN_":a;if(typeof a=="bigint")return`_bigint_${a.toString()}`;if(typeof a=="string")return sX.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,pq.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,hq.default)(a))return;if((0,gq.default)(a)){if(!e.allowSymbol)return;let u=Symbol.keyFor(a);return u!==void 0?`_gsymbol_${u}`:`_symbol_${a.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(a)?`[Array(${a.length})]`:"[Object]";if(a===this)return`_duplicate_${JSON.stringify(o)}`;if(a instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...a.cause?{cause:a.cause}:{},...a,name:a.name,message:a.message,stack:a.stack,"_constructor-name_":a.constructor.name}};if(a?.constructor?.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let u=t.get(a);if(!u){let c={__isClassInstance__:!0,__className__:a.constructor.name,...Object.getOwnPropertyNames(a).reduce((d,p)=>{try{d[p]=a[p]}catch{}return d},{})};return o.push(i),n.unshift(c),t.set(a,JSON.stringify(o)),a!==c&&r.set(a,c),c}return`_duplicate_${u}`}let s=t.get(a);if(!s){let u=Array.isArray(a)?a:s_(a);return o.push(i),n.unshift(u),t.set(a,JSON.stringify(o)),a!==u&&r.set(a,u),u}return`_duplicate_${s}`}catch{return}}},cX={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},dX=(e,t={})=>{let r={...cX,...t};return JSON.stringify(s_(e),uX(r),t.space)};function u_(e){return dX(e,{maxDepth:50})}var yh=f.createContext({sources:{}}),c_="--unknown--",fX=({children:e,channel:t})=>{let[r,n]=f.useState({});return f.useEffect(()=>{let o=(i,a=null,l=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof i=="string"?{id:i,source:a,format:l}:i,p=u?u_(u):c_;n(g=>({...g,[s]:{...g[s],[p]:{code:c||"",format:d}}}))};return t.on(xh,o),()=>t.off(xh,o)},[]),h.createElement(yh.Provider,{value:{sources:r}},e)};const{getService:pX}=__STORYBOOK_MODULE_PREVIEW_API__;function d_(e,t){let r=e.split("--")[0],n=pX("core/story-docs"),o=f.useCallback(i=>t(i,e),[t,e]);return jC(e,n.queries.storyDocs,{id:r},o)}function hX(e){return d_(e,T_)}function gX(e){return d_(e,A_)}function mX(e,t,r){let[n,o]=f.useState("Transforming..."),i=t?t?.(e,r):e;return f.useEffect(()=>{async function a(){let l=await i;l!==n&&o(l)}a()}),typeof i=="object"&&typeof i.then=="function"?n:i}var yX={sources:{}},bX=(e,t,r)=>{let{sources:n}=r,o=n?.[e];return o?.[u_(t)]||o?.[c_]||{code:""}},vX=({snippet:e,serviceSnippet:t,storyContext:r,typeFromProps:n,transformFromProps:o})=>{let i=r.parameters??{},{__isArgsStory:a}=i,l=i.docs?.source||{},s=n||l.type||xs.AUTO,u=t||e,c=s===xs.DYNAMIC||s===xs.AUTO&&u&&a?u:l.originalSource||"",d=o??l.transform,p=d?mX(c,d,r):c;return l.code!==void 0?l.code:p},Ss=(e,t,r,n="")=>{let{of:o}=e,i=f.useMemo(()=>{if(o)return t.resolveOf(o,["story"]).story;try{return t.storyById()}catch{}},[t,o]),a=i?t.getStoryContext(i):{},l=e.__forceInitialArgs?a.initialArgs:a.unmappedArgs,s=i?bX(i.id,l,r):null,u=vX({snippet:s?s.code:"",serviceSnippet:n,storyContext:{...a,args:l},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&o===void 0)throw new PV;let c=i?.parameters?.docs?.source||{},d=e.format,p=e.language??c.language??"jsx",g=e.dark??c.dark??!1;return e.code===void 0&&!i?{error:"Oh no! The source is not available."}:e.code!==void 0?{code:e.code,format:d,language:p,dark:g}:(d=s?.format??!0,{code:u,format:d,language:p,dark:g})},EX=({storyId:e,docsContext:t,sourceContext:r,...n})=>{let o=gX(e).data??"",i=Ss(n,t,r,o);return h.createElement(ki,{...i})},SX=e=>{let{of:t}=e,r=f.useContext(yh),n=f.useContext(et),o=f.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(EX,{...e,docsContext:n,sourceContext:r,storyId:o.id});let i=Ss(e,n,r);return h.createElement(ki,{...i})},xX=e=>{let t=f.useContext(et),r=Ss(e,t,yX);return h.createElement(ki,{...r})},$X=e=>e.code!==void 0?h.createElement(xX,{...e}):h.createElement(SX,{...e});tt("Source",$X);var wX=e=>{let t=f.useContext(et),r=f.useContext(yh),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new DV;let{story:i}=On(n||"story",["story"]),a=Ss({...o,...n&&{of:n}},t,r),l=e.layout??i.parameters.layout??i.parameters.docs?.canvas?.layout??"padded",s=e.withToolbar??i.parameters.docs?.canvas?.withToolbar??!1,u=e.additionalActions??i.parameters.docs?.canvas?.additionalActions,c=e.sourceState??i.parameters.docs?.canvas?.sourceState??"hidden",d=e.className??i.parameters.docs?.canvas?.className,p=e.story?.inline??i.parameters?.docs?.story?.inline??!1,g=f.useCallback(()=>{t.channel.emit(RV,{storyId:i.id})},[t.channel,i.id]);return h.createElement(LC,{withSource:c==="none"?void 0:a,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:l,inline:p,onReloadStory:p?g:void 0},h.createElement(jW,{of:n||i.moduleExport,meta:e.meta,...e.story}))},CX=tt("Canvas",wX);const{filterArgTypes:Gb}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:_X,STORY_ARGS_UPDATED:Wb,UPDATE_STORY_ARGS:TX}=__STORYBOOK_MODULE_CORE_EVENTS__;var AX=(e,t)=>{let r=OX(e,t);if(!r)throw new Error("No result when story was defined");return r},OX=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,i]=f.useState(r.args);f.useEffect(()=>{let s=u=>{u.storyId===n&&i(u.args)};return t.channel.on(Wb,s),()=>t.channel.off(Wb,s)},[n,t.channel]);let a=f.useCallback(s=>t.channel.emit(TX,{storyId:n,updatedArgs:s}),[n,t.channel]),l=f.useCallback(s=>t.channel.emit(_X,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,a,l]};const{GLOBALS_UPDATED:Vb}=__STORYBOOK_MODULE_CORE_EVENTS__;var RX=(e,t)=>{let r=t.getStoryContext(e),[n,o]=f.useState(r.globals);return f.useEffect(()=>{let i=a=>{o(a.globals)};return t.channel.on(Vb,i),()=>t.channel.off(Vb,i)},[t.channel]),[n]};const{Tag:DX}=__STORYBOOK_MODULE_PREVIEW_API__;var f_=()=>{let e=f.useContext(et),t=e.componentStories();return e.filterByAutodocs===!1?t[0]:t.find(r=>r.tags.includes(DX.AUTODOCS))};function p_(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 h_(e,t){let r=OC(),[n,o,i]=AX(e,t),[a]=RX(e,t);return{controlsId:r,args:n,globals:a,updateArgs:o,resetArgs:i}}var g_=({mainName:e="Story",mainRows:t,subcomponentRows:r,include:n,exclude:o,sort:i,storyId:a,controlsId:l,args:s,globals:u,updateArgs:c,resetArgs:d,docsLang:p})=>{let g=Gb(t,n,o);if(Object.keys(r).length===0)return Object.keys(g).length>0||Object.keys(s).length>0?h.createElement(lo,{storyId:a,controlsId:l,rows:g,sort:i,args:s,globals:u,updateArgs:c,resetArgs:d,docsLang:p}):null;let m={[e]:{rows:g,sort:i},...Object.fromEntries(Object.entries(r).map(([y,v])=>[y,{rows:Gb(v,n,o),sort:i}]))};return h.createElement(kC,{tabs:m,sort:i,args:s,globals:u,updateArgs:c,resetArgs:d,storyId:a,controlsId:l,docsLang:p})},PX=({story:e,context:t,...r})=>{let{parameters:n,argTypes:o,component:i,subcomponents:a}=e,l=p_(e,r),s=h_(e,t);return o?h.createElement(g_,{mainName:ys(i)||"Story",mainRows:o,subcomponentRows:zC(a,n),...l,storyId:e.id,...s,docsLang:n?.docs?.lang}):null},IX=({story:e,context:t,...r})=>{let{parameters:n,argTypes:o,component:i}=e,a=p_(e,r),l=h_(e,t),{rows:s,isInitialLoading:u}=KC({componentId:e.id.split("--")[0],storyId:e.id,parameters:n,initialArgs:e.initialArgs,customArgTypes:o});return u?h.createElement(lo,{isLoading:!0}):s?h.createElement(g_,{mainName:ys(i)??s.serviceComponentName,mainRows:s.mainRows,subcomponentRows:s.subcomponentRows,...a,storyId:e.id,...l,docsLang:n?.docs?.lang}):null},FX=e=>{let{of:t}=e,r=f.useContext(et),n=f_(),o=t?r.resolveOf(t,["story"]).story:n;if(!o)return null;let i={...e,story:o,context:r};return globalThis.FEATURES?.experimentalDocgenServer?h.createElement(IX,{...i}):h.createElement(PX,{...i})},LX=tt("Controls",FX);const{InvalidBlockOfPropError:kX}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{NAVIGATE_URL:NX}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:m_}=globalThis,MX=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return h.createElement(xp,null,t);let n=e&&e.split("-");return h.createElement(ki,{language:n&&n[1]||"text",format:!1,code:t,...r})};function bh(e,t){e.channel.emit(NX,t)}var ff=Zw.a,BX=({hash:e,children:t})=>{let r=f.useContext(et);return h.createElement(ff,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);m_.getElementById(o)&&bh(r,e)}},t)},jX=e=>{let{href:t,target:r,children:n,...o}=e,i=f.useContext(et);return!t||r==="_blank"||/^https?:\/\//.test(t)?h.createElement(ff,{...e}):t.startsWith("#")?h.createElement(BX,{hash:t},n):h.createElement(ff,{href:t,onClick:a=>{a.button===0&&!a.altKey&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&(a.preventDefault(),bh(i,a.currentTarget.getAttribute("href")||""))},target:r,...o},n)},y_=["h1","h2","h3","h4","h5","h6"],HX=y_.reduce((e,t)=>({...e,[t]:F(t)({})}),{}),UX=F.span({display:"block",position:"relative","& svg":{visibility:"hidden"},"&:hover svg, &:focus-within svg":{visibility:"visible"}}),zX=F.span({position:"absolute",top:"50%",right:"100%",lineHeight:"inherit",paddingRight:"8px","&&":{marginTop:-14},color:"inherit","& a":{color:"inherit",textDecoration:"none"}});F.span({});var KX=({as:e,id:t,children:r,...n})=>{let o=f.useContext(et),i=HX[e],a=`#${t}`;return h.createElement(i,{id:t,...n},h.createElement(UX,{className:"sb-unstyled"},h.createElement(zX,null,h.createElement(Se,{asChild:!0,variant:"ghost",size:"small",padding:"small",ariaLabel:"Copy heading URL to address bar"},h.createElement("a",{href:a,target:"_self",onClick:l=>{l.preventDefault(),m_.getElementById(t)&&bh(o,a)}},h.createElement(q2,null)))),r))},vh=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return h.createElement(KX,{as:t,id:r,...o},n);let i=t,{as:a,...l}=e;return h.createElement(i,{...$e(l,t)})},GX=y_.reduce((e,t)=>({...e,[t]:r=>h.createElement(vh,{as:t,...r})}),{}),WX=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(x_`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
732
732
  This is often caused by not wrapping the child in a template string.
733
733
 
734
734
  This is invalid: