@tmorrow/cre8-wc 2.0.5 → 2.0.7

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 (622) hide show
  1. package/a2ui/catalog.json +3 -3
  2. package/cdn/cre8-wc.esm.js +744 -2
  3. package/cdn/cre8-wc.esm.js.map +1 -1
  4. package/cdn/cre8-wc.min.js +738 -2
  5. package/cdn/cre8-wc.min.js.map +1 -1
  6. package/dist/assets/Changelog-Documentation-BguNswiM.js +3 -0
  7. package/dist/assets/Code-Guidelines-BM3dZyzL.js +3 -0
  8. package/dist/assets/Color-6AOWCN3U-C4AEGNk3.js +1 -0
  9. package/dist/assets/Contributing-Guidelines-DZURVehh.js +3 -0
  10. package/dist/assets/DocsRenderer-JROSPFPF-DeZmCI9u.js +9 -0
  11. package/dist/assets/{Tokens-Documentation-BTECbmvD.js → Tokens-Documentation-ZecGbtQg.js} +2 -2
  12. package/dist/assets/WithTooltip-7X4HQR7L-2Hfrkir-.js +9 -0
  13. package/dist/assets/{accordion-item.stories-BlkiLvzN.js → accordion-item.stories-D-MjrX5G.js} +15 -4
  14. package/dist/assets/{accordion.stories-BoGuSGR9.js → accordion.stories-icgNa1dl.js} +14 -6
  15. package/dist/assets/{alert.stories-C1OPoi5g.js → alert.stories-BzDaXtj-.js} +65 -34
  16. package/dist/assets/{badge-BPOQ_yGY.js → badge-C5wOWgyg.js} +11 -3
  17. package/dist/assets/{badge.stories-Ds_PNI0F.js → badge.stories-5GfB4jVI.js} +3 -3
  18. package/dist/assets/{band.stories-Bpfe4d4r.js → band.stories-DhXaP_kL.js} +10 -2
  19. package/dist/assets/blocks-DhUVut8Z.js +747 -0
  20. package/dist/assets/{breadcrumbs.stories-CsjTwIH7.js → breadcrumbs.stories-CrPUBVk1.js} +26 -7
  21. package/dist/assets/button-CJL8yzAT.js +1503 -0
  22. package/dist/assets/{button-group-B9g_-lYt.js → button-group-BgwgtSFC.js} +23 -3
  23. package/dist/assets/{button-group.stories-T9-IozlI.js → button-group.stories-W-07gO63.js} +2 -2
  24. package/dist/assets/{button.stories-DzIYNMgW.js → button.stories-BPzJ-sCv.js} +23 -20
  25. package/dist/assets/{card.stories-BiF0PkzJ.js → card.stories-mlFGY2Xn.js} +20 -4
  26. package/dist/assets/{chart.stories-D2iRuVl9.js → chart.stories-C8yuHHeK.js} +1 -1
  27. package/dist/assets/{checkbox-field-item-BVUOuGTx.js → checkbox-field-item-iHcdmTNw.js} +16 -5
  28. package/dist/assets/checkbox-field-item.stories-D1aVLDXn.js +54 -0
  29. package/dist/assets/{checkbox-field.stories-DXiB_L3d.js → checkbox-field.stories-BoVB2jCx.js} +12 -4
  30. package/dist/assets/chunk-EUVGDK4H-rHCQfRxh.js +1 -0
  31. package/dist/assets/{cre8-element-gkCuLp-W.js → cre8-element-DfmMtHJO.js} +1 -1
  32. package/dist/assets/{cre8-form-element-DsXhvnkn.js → cre8-form-element-bQpK8UYN.js} +1 -1
  33. package/dist/assets/{danger-button.stories-lawCg7hs.js → danger-button.stories-Cb4ljnhQ.js} +31 -17
  34. package/dist/assets/{date-picker.stories-_Fdnd7NY.js → date-picker.stories-Cje3qk8D.js} +1050 -48
  35. package/dist/assets/decorator-iVSD-Llo.js +1 -0
  36. package/dist/assets/{divider-CHWbAsrs.js → divider-B_PXBGWD.js} +10 -2
  37. package/dist/assets/{divider.stories-D4Yc8m3t.js → divider.stories-CtfeBqVV.js} +2 -2
  38. package/dist/assets/{dropdown-DZE-lVYN.js → dropdown-Cgwne34I.js} +27 -8
  39. package/dist/assets/dropdown-item.stories-pXkDLRuv.js +26 -0
  40. package/dist/assets/{dropdown.stories-CnT5F5fB.js → dropdown.stories-DZnmHieY.js} +2 -2
  41. package/dist/assets/{example-drug-card.stories-BAMNAi8y.js → example-drug-card.stories-DTzLXTFx.js} +2 -2
  42. package/dist/assets/{f-po-CZL6lsXP.js → f-po-C2WpbOFJ.js} +2 -2
  43. package/dist/assets/{feature.stories-D3m47wf9.js → feature.stories-DffXdJch.js} +14 -6
  44. package/dist/assets/{field-Ce_Kp3W1.js → field-DzYRqQb2.js} +10 -1
  45. package/dist/assets/{field-note-txmyzeNl.js → field-note-DKXZiXLU.js} +19 -5
  46. package/dist/assets/field-note.stories-DS_0bQul.js +27 -0
  47. package/dist/assets/{field.stories-BEt-6RAF.js → field.stories-BvXn0oG6.js} +6 -6
  48. package/dist/assets/{footer.stories-Dzn7N8hL.js → footer.stories-C3ZibisU.js} +11 -3
  49. package/dist/assets/{form-example.stories-BeAfCsBJ.js → form-example.stories-C-TuOeF2.js} +4 -4
  50. package/dist/assets/formatter-L2YTDE3Q-CJVnxOUW.js +1 -0
  51. package/dist/assets/{global-nav-item-C_P64qZX.js → global-nav-item-xQL7wVjY.js} +14 -6
  52. package/dist/assets/global-nav-item.stories-Dp9TE3aR.js +1 -0
  53. package/dist/assets/{global-nav.stories-BCBaOucz.js → global-nav.stories-B5Nk8JZ0.js} +11 -3
  54. package/dist/assets/{grid-DItOBpBm.js → grid-DYgnZBsd.js} +19 -3
  55. package/dist/assets/{grid.stories-DwGB81iK.js → grid.stories-BFiXTq2C.js} +2 -2
  56. package/dist/assets/{header.stories--yZLIN_d.js → header.stories-D1f7xhjV.js} +11 -3
  57. package/dist/assets/{heading-BgO3jH9M.js → heading-485Jz7JZ.js} +10 -2
  58. package/dist/assets/{heading.stories-CQ4muIzf.js → heading.stories-gPF_SmTc.js} +2 -2
  59. package/dist/assets/{hero.stories-VyLQwa--.js → hero.stories-BHlFNdvF.js} +24 -3
  60. package/dist/assets/{icon-DYiIK7a4.js → icon-DeTLDzTS.js} +190 -176
  61. package/dist/assets/{icon-description-P810XJAK.js → icon-description-o-YaiEjK.js} +1 -1
  62. package/dist/assets/icon-description.stories-BdPRvEwe.js +3 -0
  63. package/dist/assets/icon.stories-BxWpqxT5.js +14 -0
  64. package/dist/assets/if-defined-HKKhGupN.js +1 -0
  65. package/dist/assets/iframe-CWwoGI65.css +1 -0
  66. package/dist/assets/iframe-dHvya7sk.js +5737 -0
  67. package/dist/assets/{inline-alert.stories-Ju8Sktdo.js → inline-alert.stories-FH0bQ0jh.js} +36 -16
  68. package/dist/assets/{layout-container.stories-6lsQLqZx.js → layout-container.stories-D6Z6Kx78.js} +11 -3
  69. package/dist/assets/{layout.stories-C3b4Xkca.js → layout.stories-CNYuwC_r.js} +23 -7
  70. package/dist/assets/{linelength-container.stories-CHBg8Th9.js → linelength-container.stories-pCRXZvxS.js} +11 -3
  71. package/dist/assets/{link-B_CPLQjt.js → link-BpCiLxNW.js} +15 -7
  72. package/dist/assets/{link-list.stories-Cp5Lb5OS.js → link-list.stories-12vsAa1P.js} +24 -8
  73. package/dist/assets/link.stories-DAoQtY4_.js +100 -0
  74. package/dist/assets/{list.stories-BBfDQunh.js → list.stories-D0N3yBIf.js} +23 -7
  75. package/dist/assets/{loading-spinner-Ced-hKjz.js → loading-spinner-g6iJajXH.js} +12 -4
  76. package/dist/assets/{loading-spinner.stories-p_zh8eXu.js → loading-spinner.stories-B6_mgPxB.js} +1 -1
  77. package/dist/assets/{logo.stories-CDQUWgS1.js → logo.stories-BvMwN2qg.js} +10 -2
  78. package/dist/assets/{main.stories-Blat-0eW.js → main.stories-pL4zefbs.js} +10 -2
  79. package/dist/assets/matchers-JIUQ3HVY-HJu_DfWo.js +14 -0
  80. package/dist/assets/{medication-card.stories-CO-0X-KQ.js → medication-card.stories-DK1XGJic.js} +3 -3
  81. package/dist/assets/{medication-form.stories-C_exfVaQ.js → medication-form.stories-Bj5dLp5S.js} +3 -3
  82. package/dist/assets/{modal-ne1a4Rdj.js → modal-BNu8xy08.js} +2 -2
  83. package/dist/assets/{modal-Oja4WhiR.js → modal-CO0M4e_8.js} +32 -6
  84. package/dist/assets/{modal.stories-BxO2ifui.js → modal.stories-CHYBrq_E.js} +1 -1
  85. package/dist/assets/{multi-select.stories-DUMN4A9Y.js → multi-select.stories-C9XXsWio.js} +22 -15
  86. package/dist/assets/{nav-container.stories-D6ByjniX.js → nav-container.stories-DU9fhvDu.js} +11 -3
  87. package/dist/assets/{page-header.stories-Dq8ASgx8.js → page-header.stories-BrstKiEY.js} +14 -6
  88. package/dist/assets/{pagination.stories-DSfWODQ2.js → pagination.stories-Bw2M2iOn.js} +51 -37
  89. package/dist/assets/{percent-bar.stories-BmE9NprW.js → percent-bar.stories-UQRXYUqd.js} +17 -5
  90. package/dist/assets/{popover.stories-CPg1Hoan.js → popover.stories-ZkwrRFpR.js} +14 -6
  91. package/dist/assets/{primary-nav.stories-DVO9CYF0.js → primary-nav.stories-wqOKwgQn.js} +19 -3
  92. package/dist/assets/{progress-meter-DRI7Arug.js → progress-meter-TzASasu0.js} +9 -1
  93. package/dist/assets/{progress-meter.stories-CAJFb7Bk.js → progress-meter.stories-qfJALZf8.js} +2 -2
  94. package/dist/assets/{progress-steps-item-Veau6WlI.js → progress-steps-item-KvW1d_7L.js} +9 -1
  95. package/dist/assets/progress-steps-item.stories-uOn6tJ1W.js +65 -0
  96. package/dist/assets/{progress-steps.stories-Bh6m7ZkV.js → progress-steps.stories-CKFPx8D0.js} +31 -14
  97. package/dist/assets/{radio-field-item-CLITSt3i.js → radio-field-item-CTaR50XR.js} +21 -5
  98. package/dist/assets/{radio-field-item.stories-CCEbiAJJ.js → radio-field-item.stories-DQSLj8W1.js} +6 -6
  99. package/dist/assets/{radio-field.stories-puh_Qz-F.js → radio-field.stories-Btmc_Iep.js} +5 -5
  100. package/dist/assets/{remove-tag-etggj_MH.js → remove-tag-BSEZ7VT8.js} +16 -5
  101. package/dist/assets/{remove-tag.stories-CJWEWuAZ.js → remove-tag.stories-diRKi7Ua.js} +2 -2
  102. package/dist/assets/{request-prescription.stories-DyRzO_jr.js → request-prescription.stories-DQvra7ia.js} +3 -3
  103. package/dist/assets/{sample-modal.stories-Do1Rji07.js → sample-modal.stories-deE1EBfZ.js} +1 -1
  104. package/dist/assets/{section.stories-BrnN5Hih.js → section.stories-DF4mcy2O.js} +13 -5
  105. package/dist/assets/select-tile-D-C8oSrm.js +1112 -0
  106. package/dist/assets/{select-tile-list.stories-CD5E8DL-.js → select-tile-list.stories-vsBQUIcl.js} +16 -33
  107. package/dist/assets/{select-tile.stories-Bg7iogzn.js → select-tile.stories-CqHzN5fc.js} +8 -5
  108. package/dist/assets/{select.stories-B6iFE5PV.js → select.stories-8aOGxTtr.js} +20 -9
  109. package/dist/assets/{skeleton-loader.stories-DGnU16J7.js → skeleton-loader.stories-CwR2-aC5.js} +13 -5
  110. package/dist/assets/{split-button.stories-G1N_NP0K.js → split-button.stories-CyfdrK4u.js} +12 -4
  111. package/dist/assets/spread-BPiNgQQF.js +1 -0
  112. package/dist/assets/state-CfuknrX8.js +1 -0
  113. package/dist/assets/story-helpers-BFn_kBYw.js +38 -0
  114. package/dist/assets/{submenu.stories-D-RepJR2.js → submenu.stories-CDhNzZzh.js} +20 -4
  115. package/dist/assets/syntaxhighlighter-T5IQBZDB-BzI6WxUR.js +6 -0
  116. package/dist/assets/{table-header-sXsVygtW.js → table-header-CfcchoYz.js} +63 -12
  117. package/dist/assets/{table-object.stories-DJ8roUlW.js → table-object.stories-Bd5qdfMU.js} +11 -3
  118. package/dist/assets/{table.stories-UwEyO3jA.js → table.stories-DxuBe9dJ.js} +2 -2
  119. package/dist/assets/{tabs.stories-CsbG6PFQ.js → tabs.stories-Cpc3OHJx.js} +31 -7
  120. package/dist/assets/{tag-list.stories-FGvdHvhI.js → tag-list.stories-BmyCmrTF.js} +12 -4
  121. package/dist/assets/{tag-CqRtd4HZ.js → tag-vQFuZneb.js} +15 -4
  122. package/dist/assets/{tag.stories-CyRYkvcm.js → tag.stories-DGzrNUbb.js} +5 -5
  123. package/dist/assets/{tertiary-nav.stories-DVHnc6aS.js → tertiary-nav.stories-D4q5K-am.js} +22 -6
  124. package/dist/assets/{text-link-Dg8E1dhI.js → text-link-4qLRIeJB.js} +9 -1
  125. package/dist/assets/text-link.stories-D6BRm2I5.js +1 -0
  126. package/dist/assets/{text-passage-Dw-BWzip.js → text-passage-DGaI5i2I.js} +19 -3
  127. package/dist/assets/{text-passage.stories-CzfR1z4-.js → text-passage.stories-DkmXVUhH.js} +2 -2
  128. package/dist/assets/{tooltip.stories-CVPX_J3l.js → tooltip.stories-B7ADDq7o.js} +21 -10
  129. package/dist/assets/{utility-nav.stories-BVyQKpR1.js → utility-nav.stories-ffXVvyLp.js} +22 -6
  130. package/dist/cre8-logo.png +0 -0
  131. package/dist/design-tokens/assets/fonts/Aeonik-Bold.woff +0 -0
  132. package/dist/design-tokens/assets/fonts/Aeonik-Bold.woff2 +0 -0
  133. package/dist/design-tokens/assets/fonts/Aeonik-Light.woff +0 -0
  134. package/dist/design-tokens/assets/fonts/Aeonik-Light.woff2 +0 -0
  135. package/dist/design-tokens/assets/fonts/Aeonik-Regular.woff +0 -0
  136. package/dist/design-tokens/assets/fonts/Aeonik-Regular.woff2 +0 -0
  137. package/dist/design-tokens/assets/fonts/Inter-Bold.woff +0 -0
  138. package/dist/design-tokens/assets/fonts/Inter-Bold.woff2 +0 -0
  139. package/dist/design-tokens/assets/fonts/Inter-Medium.woff +0 -0
  140. package/dist/design-tokens/assets/fonts/Inter-Medium.woff2 +0 -0
  141. package/dist/design-tokens/assets/fonts/Inter-Regular.woff +0 -0
  142. package/dist/design-tokens/assets/fonts/Inter-Regular.woff2 +0 -0
  143. package/dist/design-tokens/assets/fonts/Inter-SemiBold.woff +0 -0
  144. package/dist/design-tokens/assets/fonts/Inter-SemiBold.woff2 +0 -0
  145. package/dist/design-tokens/assets/fonts/NB Akademie-Bold.woff +0 -0
  146. package/dist/design-tokens/assets/fonts/NB Akademie-Bold.woff2 +0 -0
  147. package/dist/design-tokens/assets/fonts/NB Akademie-Medium.woff +0 -0
  148. package/dist/design-tokens/assets/fonts/NB Akademie-Medium.woff2 +0 -0
  149. package/dist/design-tokens/assets/fonts/NB Akademie-Regular.woff +0 -0
  150. package/dist/design-tokens/assets/fonts/NB Akademie-Regular.woff2 +0 -0
  151. package/dist/design-tokens/assets/fonts/PlusJakartaSans-Bold.ttf +0 -0
  152. package/dist/design-tokens/assets/fonts/PlusJakartaSans-Medium.ttf +0 -0
  153. package/dist/design-tokens/assets/fonts/PlusJakartaSans-Regular.ttf +0 -0
  154. package/dist/design-tokens/brands/blue/assets/fonts/ValueSans-Bold-Pro.woff2 +0 -0
  155. package/dist/design-tokens/brands/blue/assets/fonts/ValueSans-Medium-Pro.woff2 +0 -0
  156. package/dist/design-tokens/brands/blue/assets/fonts/ValueSansRegular-Pro.woff2 +0 -0
  157. package/dist/design-tokens/brands/blue/assets/fonts/ValueSerif-Bold-Pro.woff2 +0 -0
  158. package/dist/design-tokens/brands/claude-terracotta/css/tokens_brand.css +85 -0
  159. package/dist/design-tokens/brands/claude-terracotta/css/tokens_claude-terracotta.css +1 -0
  160. package/dist/design-tokens/brands/cre8-a2ui/css/assets/fonts/PlusJakartaSans-Bold.woff2 +0 -0
  161. package/dist/design-tokens/brands/cre8-a2ui/css/assets/fonts/PlusJakartaSans-LatinExt.woff2 +0 -0
  162. package/dist/design-tokens/brands/cre8-a2ui/css/assets/fonts/PlusJakartaSans-Medium.woff2 +0 -0
  163. package/dist/design-tokens/brands/cre8-a2ui/css/assets/fonts/PlusJakartaSans-Regular.woff2 +0 -0
  164. package/dist/design-tokens/brands/cre8-a2ui/css/assets/fonts/PlusJakartaSans-SemiBold.woff2 +0 -0
  165. package/dist/design-tokens/brands/cre8-a2ui/css/fonts.css +4 -8
  166. package/dist/design-tokens/brands/cre8-a2ui/css/tokens_brand.css +1 -0
  167. package/dist/design-tokens/brands/cre8-legacy/assets/fonts/Montserrat-Bold.ttf +0 -0
  168. package/dist/design-tokens/brands/cre8-legacy/assets/fonts/Montserrat-Regular.ttf +0 -0
  169. package/dist/design-tokens/brands/cre8-legacy/assets/fonts/Montserrat-SemiBold.ttf +0 -0
  170. package/dist/design-tokens/brands/cre8-legacy/assets/fonts/OpenSans-Bold.ttf +0 -0
  171. package/dist/design-tokens/brands/cre8-legacy/assets/fonts/OpenSans-Regular.ttf +0 -0
  172. package/dist/design-tokens/brands/cre8-legacy/assets/fonts/OpenSans-SemiBold.ttf +0 -0
  173. package/dist/design-tokens/brands/cre8-teal/css/tokens_brand.css +87 -0
  174. package/dist/design-tokens/brands/cre8-teal/css/tokens_cre8-teal.css +1 -0
  175. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-Bold.woff +0 -0
  176. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-Bold.woff2 +0 -0
  177. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-Medium.woff +0 -0
  178. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-Medium.woff2 +0 -0
  179. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-Regular.woff +0 -0
  180. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-Regular.woff2 +0 -0
  181. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-SemiBold.woff +0 -0
  182. package/dist/design-tokens/brands/femmecubator/assets/fonts/Inter-SemiBold.woff2 +0 -0
  183. package/dist/design-tokens/brands/femmecubator/assets/fonts/NB Akademie-Bold.woff +0 -0
  184. package/dist/design-tokens/brands/femmecubator/assets/fonts/NB Akademie-Bold.woff2 +0 -0
  185. package/dist/design-tokens/brands/femmecubator/assets/fonts/NB Akademie-Medium.woff +0 -0
  186. package/dist/design-tokens/brands/femmecubator/assets/fonts/NB Akademie-Medium.woff2 +0 -0
  187. package/dist/design-tokens/brands/femmecubator/assets/fonts/NB Akademie-Regular.woff +0 -0
  188. package/dist/design-tokens/brands/femmecubator/assets/fonts/NB Akademie-Regular.woff2 +0 -0
  189. package/dist/design-tokens/brands/legacy/assets/fonts/rubik-v4-latin-300.woff +0 -0
  190. package/dist/design-tokens/brands/legacy/assets/fonts/rubik-v4-latin-300.woff2 +0 -0
  191. package/dist/design-tokens/brands/legacy/assets/fonts/rubik-v4-latin-500.woff +0 -0
  192. package/dist/design-tokens/brands/legacy/assets/fonts/rubik-v4-latin-500.woff2 +0 -0
  193. package/dist/design-tokens/brands/legacy/assets/fonts/rubik-v4-latin-regular.woff +0 -0
  194. package/dist/design-tokens/brands/legacy/assets/fonts/rubik-v4-latin-regular.woff2 +0 -0
  195. package/dist/design-tokens/brands/marketing/assets/fonts/Montserrat-Bold.ttf +0 -0
  196. package/dist/design-tokens/brands/marketing/assets/fonts/Montserrat-Medium.ttf +0 -0
  197. package/dist/design-tokens/brands/marketing/assets/fonts/Montserrat-Regular.ttf +0 -0
  198. package/dist/design-tokens/brands/marketing/assets/fonts/Montserrat-SemiBold.ttf +0 -0
  199. package/dist/design-tokens/brands/minimalist/assets/fonts/Aeonik-Bold.woff +0 -0
  200. package/dist/design-tokens/brands/minimalist/assets/fonts/Aeonik-Bold.woff2 +0 -0
  201. package/dist/design-tokens/brands/minimalist/assets/fonts/Aeonik-Light.woff +0 -0
  202. package/dist/design-tokens/brands/minimalist/assets/fonts/Aeonik-Light.woff2 +0 -0
  203. package/dist/design-tokens/brands/minimalist/assets/fonts/Aeonik-Regular.woff +0 -0
  204. package/dist/design-tokens/brands/minimalist/assets/fonts/Aeonik-Regular.woff2 +0 -0
  205. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-Bold.woff +0 -0
  206. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-Bold.woff2 +0 -0
  207. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-Medium.woff +0 -0
  208. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-Medium.woff2 +0 -0
  209. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-Regular.woff +0 -0
  210. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-Regular.woff2 +0 -0
  211. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-SemiBold.woff +0 -0
  212. package/dist/design-tokens/brands/starbucks/assets/fonts/Inter-SemiBold.woff2 +0 -0
  213. package/dist/design-tokens/brands/starbucks/assets/fonts/NB Akademie-Bold.woff +0 -0
  214. package/dist/design-tokens/brands/starbucks/assets/fonts/NB Akademie-Bold.woff2 +0 -0
  215. package/dist/design-tokens/brands/starbucks/assets/fonts/NB Akademie-Medium.woff +0 -0
  216. package/dist/design-tokens/brands/starbucks/assets/fonts/NB Akademie-Medium.woff2 +0 -0
  217. package/dist/design-tokens/brands/starbucks/assets/fonts/NB Akademie-Regular.woff +0 -0
  218. package/dist/design-tokens/brands/starbucks/assets/fonts/NB Akademie-Regular.woff2 +0 -0
  219. package/dist/design-tokens/core/scss/theming/component.css +1 -1
  220. package/dist/design-tokens/core/scss/theming/variables.css +7 -1
  221. package/dist/design-tokens/core/scss/theming/variables.scss +11 -0
  222. package/dist/fonts/PlusJakartaSans-Bold.woff2 +0 -0
  223. package/dist/fonts/PlusJakartaSans-Medium.woff2 +0 -0
  224. package/dist/fonts/PlusJakartaSans-Regular.woff2 +0 -0
  225. package/dist/fonts/PlusJakartaSans-SemiBold.woff2 +0 -0
  226. package/dist/icons/Account.svg +3 -0
  227. package/dist/icons/Account_Filled.svg +3 -0
  228. package/dist/icons/Arrow_-_Left.svg +3 -0
  229. package/dist/icons/Arrow_-_Left_Filled.svg +3 -0
  230. package/dist/icons/Caret_Double_Left.svg +3 -0
  231. package/dist/icons/Caret_Double_Right.svg +3 -0
  232. package/dist/icons/Caret_Down.svg +3 -0
  233. package/dist/{assets/Caret_Down-Bmqq8eNW.js → icons/Caret_Down_Filled.svg} +1 -2
  234. package/dist/{assets/Caret_Left-CIObD6Xy.js → icons/Caret_Left.svg} +1 -2
  235. package/dist/{assets/Caret_Right-BhO63VKn.js → icons/Caret_Right.svg} +1 -2
  236. package/dist/icons/Caret_Up.svg +3 -0
  237. package/dist/icons/Cart.svg +3 -0
  238. package/dist/icons/Chat_Default.svg +3 -0
  239. package/dist/icons/Check.svg +3 -0
  240. package/dist/icons/Check_Filled.svg +3 -0
  241. package/dist/icons/Clear_X.svg +3 -0
  242. package/dist/icons/Close.svg +3 -0
  243. package/dist/icons/Download.svg +3 -0
  244. package/dist/icons/Edit.svg +3 -0
  245. package/dist/icons/Ellipsis.svg +3 -0
  246. package/dist/icons/Ellipsis_Filled.svg +3 -0
  247. package/dist/icons/Error.svg +3 -0
  248. package/dist/{assets/Error-X6enME_5.js → icons/Error_Filled.svg} +1 -2
  249. package/dist/icons/External_Link.svg +3 -0
  250. package/dist/icons/Globe.svg +3 -0
  251. package/dist/icons/Help.svg +3 -0
  252. package/dist/icons/Help_Filled.svg +3 -0
  253. package/dist/icons/Info.svg +3 -0
  254. package/dist/icons/Lightbulb.svg +3 -0
  255. package/dist/icons/Lightbulb_Filled.svg +3 -0
  256. package/dist/icons/Location.svg +3 -0
  257. package/dist/icons/Medication.svg +3 -0
  258. package/dist/icons/Menu.svg +3 -0
  259. package/dist/icons/Message_Unread.svg +3 -0
  260. package/dist/icons/Message_Unread_Filled.svg +3 -0
  261. package/dist/icons/Minus.svg +3 -0
  262. package/dist/icons/Notification.svg +3 -0
  263. package/dist/icons/Play_Arrow.svg +3 -0
  264. package/dist/icons/Play_Circle.svg +3 -0
  265. package/dist/icons/Rectangle.svg +1 -0
  266. package/dist/icons/Refill.svg +4 -0
  267. package/dist/icons/Search.svg +3 -0
  268. package/dist/icons/Spinner_75.svg +3 -0
  269. package/dist/icons/Undo.svg +3 -0
  270. package/dist/icons/Vaccinations.svg +5 -0
  271. package/dist/icons/Warning.svg +3 -0
  272. package/dist/icons/add.svg +2 -2
  273. package/dist/icons/calendar.svg +2 -4
  274. package/dist/icons/wellness.svg +2 -6
  275. package/dist/iframe.html +104 -77
  276. package/dist/index.html +91 -32
  277. package/dist/index.json +1 -1
  278. package/dist/logo.svg +1 -0
  279. package/dist/project.json +1 -1
  280. package/dist/sb-addons/a11y-3/manager-bundle.js +55 -3
  281. package/dist/sb-addons/docs-1/manager-bundle.js +16 -1
  282. package/dist/sb-addons/storybook-4/manager-bundle.js +8 -0
  283. package/dist/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +102 -100
  284. package/dist/sb-addons/themes-2/manager-bundle.js +1 -1
  285. package/dist/sb-manager/globals-runtime.js +16334 -13685
  286. package/dist/sb-manager/globals.js +1 -1
  287. package/dist/sb-manager/manager-stores.js +1 -1
  288. package/dist/sb-manager/runtime.js +3175 -1000
  289. package/lib/components/accordion/accordion.styles.d.ts.map +1 -1
  290. package/lib/components/accordion/accordion.styles.js +8 -0
  291. package/lib/components/accordion/accordion.styles.js.map +1 -1
  292. package/lib/components/accordion-item/accordion-item.styles.d.ts.map +1 -1
  293. package/lib/components/accordion-item/accordion-item.styles.js +8 -0
  294. package/lib/components/accordion-item/accordion-item.styles.js.map +1 -1
  295. package/lib/components/alert/alert.styles.d.ts.map +1 -1
  296. package/lib/components/alert/alert.styles.js +16 -0
  297. package/lib/components/alert/alert.styles.js.map +1 -1
  298. package/lib/components/badge/badge.d.ts +1 -1
  299. package/lib/components/badge/badge.js.map +1 -1
  300. package/lib/components/badge/badge.styles.d.ts.map +1 -1
  301. package/lib/components/badge/badge.styles.js +8 -0
  302. package/lib/components/badge/badge.styles.js.map +1 -1
  303. package/lib/components/band/band.styles.d.ts.map +1 -1
  304. package/lib/components/band/band.styles.js +8 -0
  305. package/lib/components/band/band.styles.js.map +1 -1
  306. package/lib/components/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
  307. package/lib/components/breadcrumbs/breadcrumbs.styles.js +8 -0
  308. package/lib/components/breadcrumbs/breadcrumbs.styles.js.map +1 -1
  309. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.d.ts.map +1 -1
  310. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js +8 -0
  311. package/lib/components/breadcrumbs-item/breadcrumbs-item.styles.js.map +1 -1
  312. package/lib/components/button/button.styles.d.ts.map +1 -1
  313. package/lib/components/button/button.styles.js +8 -0
  314. package/lib/components/button/button.styles.js.map +1 -1
  315. package/lib/components/button-group/button-group.styles.d.ts.map +1 -1
  316. package/lib/components/button-group/button-group.styles.js +8 -0
  317. package/lib/components/button-group/button-group.styles.js.map +1 -1
  318. package/lib/components/card/card.styles.d.ts.map +1 -1
  319. package/lib/components/card/card.styles.js +8 -0
  320. package/lib/components/card/card.styles.js.map +1 -1
  321. package/lib/components/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
  322. package/lib/components/checkbox-field/checkbox-field.styles.js +8 -0
  323. package/lib/components/checkbox-field/checkbox-field.styles.js.map +1 -1
  324. package/lib/components/checkbox-field-item/checkbox-field-item.styles.d.ts.map +1 -1
  325. package/lib/components/checkbox-field-item/checkbox-field-item.styles.js +8 -0
  326. package/lib/components/checkbox-field-item/checkbox-field-item.styles.js.map +1 -1
  327. package/lib/components/danger-button/danger-button.styles.d.ts.map +1 -1
  328. package/lib/components/danger-button/danger-button.styles.js +8 -0
  329. package/lib/components/danger-button/danger-button.styles.js.map +1 -1
  330. package/lib/components/date-picker/calendar/calendar.styles.d.ts.map +1 -1
  331. package/lib/components/date-picker/calendar/calendar.styles.js +8 -0
  332. package/lib/components/date-picker/calendar/calendar.styles.js.map +1 -1
  333. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.d.ts.map +1 -1
  334. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.js +8 -0
  335. package/lib/components/date-picker/calendar-month-modal/calendar-month-modal.styles.js.map +1 -1
  336. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.d.ts.map +1 -1
  337. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.js +8 -0
  338. package/lib/components/date-picker/calendar-navigation/calendar-navigation.styles.js.map +1 -1
  339. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.d.ts.map +1 -1
  340. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js +8 -0
  341. package/lib/components/date-picker/calendar-year-modal/calendar-year-modal.styles.js.map +1 -1
  342. package/lib/components/date-picker/date-picker.styles.d.ts.map +1 -1
  343. package/lib/components/date-picker/date-picker.styles.js +16 -0
  344. package/lib/components/date-picker/date-picker.styles.js.map +1 -1
  345. package/lib/components/divider/divider.styles.d.ts.map +1 -1
  346. package/lib/components/divider/divider.styles.js +8 -0
  347. package/lib/components/divider/divider.styles.js.map +1 -1
  348. package/lib/components/dropdown/dropdown.styles.d.ts.map +1 -1
  349. package/lib/components/dropdown/dropdown.styles.js +8 -0
  350. package/lib/components/dropdown/dropdown.styles.js.map +1 -1
  351. package/lib/components/dropdown-item/dropdown-item.styles.d.ts.map +1 -1
  352. package/lib/components/dropdown-item/dropdown-item.styles.js +8 -0
  353. package/lib/components/dropdown-item/dropdown-item.styles.js.map +1 -1
  354. package/lib/components/feature/feature.styles.d.ts.map +1 -1
  355. package/lib/components/feature/feature.styles.js +8 -0
  356. package/lib/components/feature/feature.styles.js.map +1 -1
  357. package/lib/components/field/field.styles.d.ts.map +1 -1
  358. package/lib/components/field/field.styles.js +8 -0
  359. package/lib/components/field/field.styles.js.map +1 -1
  360. package/lib/components/field-note/field-note.styles.d.ts.map +1 -1
  361. package/lib/components/field-note/field-note.styles.js +8 -0
  362. package/lib/components/field-note/field-note.styles.js.map +1 -1
  363. package/lib/components/footer/footer.styles.d.ts.map +1 -1
  364. package/lib/components/footer/footer.styles.js +8 -0
  365. package/lib/components/footer/footer.styles.js.map +1 -1
  366. package/lib/components/global-nav/global-nav.styles.d.ts.map +1 -1
  367. package/lib/components/global-nav/global-nav.styles.js +8 -0
  368. package/lib/components/global-nav/global-nav.styles.js.map +1 -1
  369. package/lib/components/global-nav-item/global-nav-item.styles.d.ts.map +1 -1
  370. package/lib/components/global-nav-item/global-nav-item.styles.js +8 -0
  371. package/lib/components/global-nav-item/global-nav-item.styles.js.map +1 -1
  372. package/lib/components/grid/grid.styles.d.ts.map +1 -1
  373. package/lib/components/grid/grid.styles.js +8 -0
  374. package/lib/components/grid/grid.styles.js.map +1 -1
  375. package/lib/components/grid-item/grid-item.styles.d.ts.map +1 -1
  376. package/lib/components/grid-item/grid-item.styles.js +8 -0
  377. package/lib/components/grid-item/grid-item.styles.js.map +1 -1
  378. package/lib/components/header/header.styles.d.ts.map +1 -1
  379. package/lib/components/header/header.styles.js +8 -0
  380. package/lib/components/header/header.styles.js.map +1 -1
  381. package/lib/components/heading/heading.d.ts.map +1 -1
  382. package/lib/components/heading/heading.js +7 -1
  383. package/lib/components/heading/heading.js.map +1 -1
  384. package/lib/components/heading/heading.styles.d.ts.map +1 -1
  385. package/lib/components/heading/heading.styles.js +8 -0
  386. package/lib/components/heading/heading.styles.js.map +1 -1
  387. package/lib/components/hero/hero.styles.d.ts.map +1 -1
  388. package/lib/components/hero/hero.styles.js +8 -0
  389. package/lib/components/hero/hero.styles.js.map +1 -1
  390. package/lib/components/icon/icon.d.ts +4 -4
  391. package/lib/components/icon/icon.js +6 -6
  392. package/lib/components/icon/icon.js.map +1 -1
  393. package/lib/components/icon/icon.styles.d.ts.map +1 -1
  394. package/lib/components/icon/icon.styles.js +8 -0
  395. package/lib/components/icon/icon.styles.js.map +1 -1
  396. package/lib/components/inline-alert/inline-alert.styles.d.ts.map +1 -1
  397. package/lib/components/inline-alert/inline-alert.styles.js +8 -0
  398. package/lib/components/inline-alert/inline-alert.styles.js.map +1 -1
  399. package/lib/components/layout/layout.styles.d.ts.map +1 -1
  400. package/lib/components/layout/layout.styles.js +8 -0
  401. package/lib/components/layout/layout.styles.js.map +1 -1
  402. package/lib/components/layout-container/layout-container.styles.d.ts.map +1 -1
  403. package/lib/components/layout-container/layout-container.styles.js +8 -0
  404. package/lib/components/layout-container/layout-container.styles.js.map +1 -1
  405. package/lib/components/layout-section/layout-section.styles.d.ts.map +1 -1
  406. package/lib/components/layout-section/layout-section.styles.js +8 -0
  407. package/lib/components/layout-section/layout-section.styles.js.map +1 -1
  408. package/lib/components/linelength-container/linelength-container.styles.d.ts.map +1 -1
  409. package/lib/components/linelength-container/linelength-container.styles.js +8 -0
  410. package/lib/components/linelength-container/linelength-container.styles.js.map +1 -1
  411. package/lib/components/link/link.styles.d.ts.map +1 -1
  412. package/lib/components/link/link.styles.js +8 -0
  413. package/lib/components/link/link.styles.js.map +1 -1
  414. package/lib/components/link-list/link-list.styles.d.ts.map +1 -1
  415. package/lib/components/link-list/link-list.styles.js +8 -0
  416. package/lib/components/link-list/link-list.styles.js.map +1 -1
  417. package/lib/components/link-list-item/link-list-item.styles.d.ts.map +1 -1
  418. package/lib/components/link-list-item/link-list-item.styles.js +8 -0
  419. package/lib/components/link-list-item/link-list-item.styles.js.map +1 -1
  420. package/lib/components/list/list.styles.d.ts.map +1 -1
  421. package/lib/components/list/list.styles.js +8 -0
  422. package/lib/components/list/list.styles.js.map +1 -1
  423. package/lib/components/list-item/list-item.styles.d.ts.map +1 -1
  424. package/lib/components/list-item/list-item.styles.js +8 -0
  425. package/lib/components/list-item/list-item.styles.js.map +1 -1
  426. package/lib/components/loading-spinner/loading-spinner.styles.d.ts.map +1 -1
  427. package/lib/components/loading-spinner/loading-spinner.styles.js +8 -0
  428. package/lib/components/loading-spinner/loading-spinner.styles.js.map +1 -1
  429. package/lib/components/logo/logo.styles.d.ts.map +1 -1
  430. package/lib/components/logo/logo.styles.js +8 -0
  431. package/lib/components/logo/logo.styles.js.map +1 -1
  432. package/lib/components/main/main.styles.d.ts.map +1 -1
  433. package/lib/components/main/main.styles.js +8 -0
  434. package/lib/components/main/main.styles.js.map +1 -1
  435. package/lib/components/modal/modal.styles.d.ts.map +1 -1
  436. package/lib/components/modal/modal.styles.js +8 -0
  437. package/lib/components/modal/modal.styles.js.map +1 -1
  438. package/lib/components/multi-select/multi-select.styles.d.ts.map +1 -1
  439. package/lib/components/multi-select/multi-select.styles.js +8 -0
  440. package/lib/components/multi-select/multi-select.styles.js.map +1 -1
  441. package/lib/components/nav-container/nav-container.styles.d.ts.map +1 -1
  442. package/lib/components/nav-container/nav-container.styles.js +8 -0
  443. package/lib/components/nav-container/nav-container.styles.js.map +1 -1
  444. package/lib/components/page-header/page-header.styles.d.ts.map +1 -1
  445. package/lib/components/page-header/page-header.styles.js +8 -0
  446. package/lib/components/page-header/page-header.styles.js.map +1 -1
  447. package/lib/components/pagination/page-counter/page-counter.styles.d.ts.map +1 -1
  448. package/lib/components/pagination/page-counter/page-counter.styles.js +8 -0
  449. package/lib/components/pagination/page-counter/page-counter.styles.js.map +1 -1
  450. package/lib/components/pagination/pagination.styles.d.ts.map +1 -1
  451. package/lib/components/pagination/pagination.styles.js +8 -0
  452. package/lib/components/pagination/pagination.styles.js.map +1 -1
  453. package/lib/components/percent-bar/percent-bar.styles.d.ts.map +1 -1
  454. package/lib/components/percent-bar/percent-bar.styles.js +8 -0
  455. package/lib/components/percent-bar/percent-bar.styles.js.map +1 -1
  456. package/lib/components/popover/popover.styles.d.ts.map +1 -1
  457. package/lib/components/popover/popover.styles.js +8 -0
  458. package/lib/components/popover/popover.styles.js.map +1 -1
  459. package/lib/components/primary-nav/primary-nav.styles.d.ts.map +1 -1
  460. package/lib/components/primary-nav/primary-nav.styles.js +8 -0
  461. package/lib/components/primary-nav/primary-nav.styles.js.map +1 -1
  462. package/lib/components/primary-nav-item/primary-nav-item.styles.d.ts.map +1 -1
  463. package/lib/components/primary-nav-item/primary-nav-item.styles.js +8 -0
  464. package/lib/components/primary-nav-item/primary-nav-item.styles.js.map +1 -1
  465. package/lib/components/progress-meter/progress-meter.styles.d.ts.map +1 -1
  466. package/lib/components/progress-meter/progress-meter.styles.js +8 -0
  467. package/lib/components/progress-meter/progress-meter.styles.js.map +1 -1
  468. package/lib/components/progress-steps/progress-steps.styles.d.ts.map +1 -1
  469. package/lib/components/progress-steps/progress-steps.styles.js +8 -0
  470. package/lib/components/progress-steps/progress-steps.styles.js.map +1 -1
  471. package/lib/components/progress-steps-item/progress-steps-item.styles.d.ts.map +1 -1
  472. package/lib/components/progress-steps-item/progress-steps-item.styles.js +8 -0
  473. package/lib/components/progress-steps-item/progress-steps-item.styles.js.map +1 -1
  474. package/lib/components/radio-field/radio-field.styles.d.ts.map +1 -1
  475. package/lib/components/radio-field/radio-field.styles.js +8 -0
  476. package/lib/components/radio-field/radio-field.styles.js.map +1 -1
  477. package/lib/components/radio-field-item/radio-field-item.styles.d.ts.map +1 -1
  478. package/lib/components/radio-field-item/radio-field-item.styles.js +8 -0
  479. package/lib/components/radio-field-item/radio-field-item.styles.js.map +1 -1
  480. package/lib/components/remove-tag/remove-tag.styles.d.ts.map +1 -1
  481. package/lib/components/remove-tag/remove-tag.styles.js +8 -0
  482. package/lib/components/remove-tag/remove-tag.styles.js.map +1 -1
  483. package/lib/components/section/section.styles.d.ts.map +1 -1
  484. package/lib/components/section/section.styles.js +8 -0
  485. package/lib/components/section/section.styles.js.map +1 -1
  486. package/lib/components/select/select.styles.d.ts.map +1 -1
  487. package/lib/components/select/select.styles.js +8 -0
  488. package/lib/components/select/select.styles.js.map +1 -1
  489. package/lib/components/select-tile/select-tile.styles.d.ts.map +1 -1
  490. package/lib/components/select-tile/select-tile.styles.js +8 -0
  491. package/lib/components/select-tile/select-tile.styles.js.map +1 -1
  492. package/lib/components/select-tile-list/select-tile-list.styles.d.ts.map +1 -1
  493. package/lib/components/select-tile-list/select-tile-list.styles.js +8 -0
  494. package/lib/components/select-tile-list/select-tile-list.styles.js.map +1 -1
  495. package/lib/components/skeleton-loader/skeleton-loader.styles.d.ts.map +1 -1
  496. package/lib/components/skeleton-loader/skeleton-loader.styles.js +8 -0
  497. package/lib/components/skeleton-loader/skeleton-loader.styles.js.map +1 -1
  498. package/lib/components/split-button/split-button.styles.d.ts.map +1 -1
  499. package/lib/components/split-button/split-button.styles.js +8 -0
  500. package/lib/components/split-button/split-button.styles.js.map +1 -1
  501. package/lib/components/submenu/submenu.styles.d.ts.map +1 -1
  502. package/lib/components/submenu/submenu.styles.js +8 -0
  503. package/lib/components/submenu/submenu.styles.js.map +1 -1
  504. package/lib/components/submenu-item/submenu-item.styles.d.ts.map +1 -1
  505. package/lib/components/submenu-item/submenu-item.styles.js +8 -0
  506. package/lib/components/submenu-item/submenu-item.styles.js.map +1 -1
  507. package/lib/components/tab/tab.styles.d.ts.map +1 -1
  508. package/lib/components/tab/tab.styles.js +8 -0
  509. package/lib/components/tab/tab.styles.js.map +1 -1
  510. package/lib/components/tab-panel/tab-panel.styles.d.ts.map +1 -1
  511. package/lib/components/tab-panel/tab-panel.styles.js +8 -0
  512. package/lib/components/tab-panel/tab-panel.styles.js.map +1 -1
  513. package/lib/components/table/table.styles.d.ts.map +1 -1
  514. package/lib/components/table/table.styles.js +8 -0
  515. package/lib/components/table/table.styles.js.map +1 -1
  516. package/lib/components/table-body/table-body.styles.d.ts.map +1 -1
  517. package/lib/components/table-body/table-body.styles.js +8 -0
  518. package/lib/components/table-body/table-body.styles.js.map +1 -1
  519. package/lib/components/table-cell/table-cell.styles.d.ts.map +1 -1
  520. package/lib/components/table-cell/table-cell.styles.js +8 -0
  521. package/lib/components/table-cell/table-cell.styles.js.map +1 -1
  522. package/lib/components/table-header/table-header.styles.d.ts.map +1 -1
  523. package/lib/components/table-header/table-header.styles.js +8 -0
  524. package/lib/components/table-header/table-header.styles.js.map +1 -1
  525. package/lib/components/table-header-cell/table-header-cell.styles.d.ts.map +1 -1
  526. package/lib/components/table-header-cell/table-header-cell.styles.js +8 -0
  527. package/lib/components/table-header-cell/table-header-cell.styles.js.map +1 -1
  528. package/lib/components/table-object/table-object.styles.d.ts.map +1 -1
  529. package/lib/components/table-object/table-object.styles.js +8 -0
  530. package/lib/components/table-object/table-object.styles.js.map +1 -1
  531. package/lib/components/table-row/table-row.styles.d.ts.map +1 -1
  532. package/lib/components/table-row/table-row.styles.js +8 -0
  533. package/lib/components/table-row/table-row.styles.js.map +1 -1
  534. package/lib/components/tabs/tabs.styles.d.ts.map +1 -1
  535. package/lib/components/tabs/tabs.styles.js +8 -0
  536. package/lib/components/tabs/tabs.styles.js.map +1 -1
  537. package/lib/components/tag/tag.styles.d.ts.map +1 -1
  538. package/lib/components/tag/tag.styles.js +8 -0
  539. package/lib/components/tag/tag.styles.js.map +1 -1
  540. package/lib/components/tag-list/tag-list.styles.d.ts.map +1 -1
  541. package/lib/components/tag-list/tag-list.styles.js +8 -0
  542. package/lib/components/tag-list/tag-list.styles.js.map +1 -1
  543. package/lib/components/tertiary-nav/tertiary-nav.styles.d.ts.map +1 -1
  544. package/lib/components/tertiary-nav/tertiary-nav.styles.js +8 -0
  545. package/lib/components/tertiary-nav/tertiary-nav.styles.js.map +1 -1
  546. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.d.ts.map +1 -1
  547. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js +8 -0
  548. package/lib/components/tertiary-nav-item/tertiary-nav-item.styles.js.map +1 -1
  549. package/lib/components/text-link/text-link.styles.d.ts.map +1 -1
  550. package/lib/components/text-link/text-link.styles.js +8 -0
  551. package/lib/components/text-link/text-link.styles.js.map +1 -1
  552. package/lib/components/text-passage/text-passage-light-dom.styles.d.ts.map +1 -1
  553. package/lib/components/text-passage/text-passage-light-dom.styles.js +8 -0
  554. package/lib/components/text-passage/text-passage-light-dom.styles.js.map +1 -1
  555. package/lib/components/text-passage/text-passage.styles.d.ts.map +1 -1
  556. package/lib/components/text-passage/text-passage.styles.js +8 -0
  557. package/lib/components/text-passage/text-passage.styles.js.map +1 -1
  558. package/lib/components/tooltip/tooltip.styles.d.ts.map +1 -1
  559. package/lib/components/tooltip/tooltip.styles.js +8 -0
  560. package/lib/components/tooltip/tooltip.styles.js.map +1 -1
  561. package/lib/components/utility-nav/utility-nav.styles.d.ts.map +1 -1
  562. package/lib/components/utility-nav/utility-nav.styles.js +8 -0
  563. package/lib/components/utility-nav/utility-nav.styles.js.map +1 -1
  564. package/lib/components/utility-nav-item/utility-nav-item.styles.d.ts.map +1 -1
  565. package/lib/components/utility-nav-item/utility-nav-item.styles.js +8 -0
  566. package/lib/components/utility-nav-item/utility-nav-item.styles.js.map +1 -1
  567. package/lib/design-tokens/brands/cre8/css/tokens_brand.css +1 -1
  568. package/lib/design-tokens/core/scss/theming/component.css +1 -1
  569. package/lib/design-tokens/core/scss/theming/variables.css +7 -1
  570. package/lib/design-tokens/core/scss/theming/variables.scss +11 -0
  571. package/lib/icons/cre8-icons.svg +1 -1
  572. package/mcp-manifest.json +2 -2
  573. package/package.json +14 -12
  574. package/react-manifest.json +3 -3
  575. package/dist/Image.png +0 -0
  576. package/dist/assets/Changelog-Documentation-CblO0Xot.js +0 -3
  577. package/dist/assets/Code-Guidelines-BRHT7M6Y.js +0 -3
  578. package/dist/assets/Color-64QXVMR3-CVvl9AcC.js +0 -1
  579. package/dist/assets/Contributing-Guidelines-Q4jfpqq1.js +0 -3
  580. package/dist/assets/DocsRenderer-HT7GNKAR-Bc0l7s_g.js +0 -10
  581. package/dist/assets/Warning-CawqmTvB.js +0 -7
  582. package/dist/assets/WithTooltip-65CFNBJE-D4JJPWih.js +0 -9
  583. package/dist/assets/blocks-B_WQ1U89.js +0 -761
  584. package/dist/assets/button-Bt9tRB7v.js +0 -932
  585. package/dist/assets/checkbox-field-item.stories-Wbkn0aOb.js +0 -39
  586. package/dist/assets/directive-b18f_ppQ.js +0 -1
  587. package/dist/assets/dropdown-item.stories-Dxn0MeE8.js +0 -26
  588. package/dist/assets/field-note.stories-CT0_DymI.js +0 -27
  589. package/dist/assets/formatter-EIJCOSYU-CYrt3ugJ.js +0 -1
  590. package/dist/assets/global-nav-item.stories-C_7FzIWj.js +0 -1
  591. package/dist/assets/icon-description.stories-BF370oI5.js +0 -3
  592. package/dist/assets/icon.stories-C73dxBRO.js +0 -11
  593. package/dist/assets/if-defined-sxEueMHN.js +0 -1
  594. package/dist/assets/iframe-CdWmiVXf.js +0 -9693
  595. package/dist/assets/iframe-vZZLtGTk.css +0 -1
  596. package/dist/assets/index-DSuzaFN1.js +0 -1
  597. package/dist/assets/link.stories-tvwExHzK.js +0 -88
  598. package/dist/assets/matchers-ZRZBO4XZ-ItTrJwDz.js +0 -14
  599. package/dist/assets/progress-steps-item.stories-y3zQoQgv.js +0 -56
  600. package/dist/assets/select-tile-etSpH07h.js +0 -47
  601. package/dist/assets/spread-BOaHI3Dl.js +0 -1
  602. package/dist/assets/state-BQD-SkUn.js +0 -1
  603. package/dist/assets/story-helpers-BJLZYDac.js +0 -38
  604. package/dist/assets/syntaxhighlighter-OH4MV7E3-ByMlOdlq.js +0 -6
  605. package/dist/assets/text-link.stories-D0m86xl-.js +0 -1
  606. package/dist/assets/unsafe-html-BLUBm7l3.js +0 -1
  607. package/dist/cre8.png +0 -0
  608. package/dist/icons/check.svg +0 -3
  609. package/dist/icons/close.svg +0 -3
  610. package/dist/icons/download.svg +0 -5
  611. package/dist/icons/edit.svg +0 -5
  612. package/dist/icons/ellipsis.svg +0 -3
  613. package/dist/icons/error.svg +0 -3
  614. package/dist/icons/globe.svg +0 -3
  615. package/dist/icons/help.svg +0 -3
  616. package/dist/icons/info.svg +0 -3
  617. package/dist/icons/menu.svg +0 -5
  618. package/dist/icons/minus.svg +0 -6
  619. package/dist/icons/search.svg +0 -10
  620. package/dist/icons/warning.svg +0 -3
  621. /package/lib/icons/{express-scripts copy.svg → pharmacy copy.svg} +0 -0
  622. /package/lib/icons/{express-scripts.svg → pharmacy.svg} +0 -0
@@ -0,0 +1,747 @@
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}
3
+
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
+ ${t.map(a=>` - ${wh(a)}`).join(`
6
+ `)}`),`${o}${i!=null?`
7
+
8
+ More info: ${i}
9
+ `:""}`}},O_=Er({"../../node_modules/picocolors/picocolors.browser.js"(e,t){var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n}});vt(O_(),1);var R_=class extends $l{constructor(t){super({name:"StatusTypeIdMismatchError",category:"CORE-SERVER",code:16,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}};function Ch(e,t){let r=t.status==="pending",n=t.loadStatus==="loading";return{data:e,error:t.error,status:t.status,loadStatus:t.loadStatus,isPending:r,isSuccess:t.status==="success",isError:t.status==="error",isLoading:n,isInitialLoading:r&&n&&e===void 0,isRefreshing:n&&!r}}function D_(e){return e instanceof Error?e:new Error(String(e))}function _h(e,t,r){try{let n=e.get(t);return Ch(r?r(n):n,{status:"pending",error:void 0,loadStatus:"loading"})}catch(n){return Ch(void 0,{status:"error",error:D_(n),loadStatus:"idle"})}}var P_=e=>e.transports!==void 0,I_=()=>Math.random().toString(16).slice(2),Xb=class{constructor(t={}){this.sender=I_(),this.events={},this.data={},this.transports=[],this.isAsync=t.async||!1,P_(t)?(this.transports=t.transports||[],this.transports.forEach(r=>{r.setHandler(n=>this.handleEvent(n))})):this.transports=t.transport?[t.transport]:[],this.transports.forEach(r=>{r.setHandler(n=>this.handleEvent(n))})}get hasTransport(){return this.transports.length>0}addListener(t,r){this.events[t]=this.events[t]||[],this.events[t].push(r)}emit(t,...r){let n={type:t,args:r,from:this.sender},o={};r.length>=1&&r[0]&&r[0].options&&(o=r[0].options);let i=()=>{this.transports.forEach(a=>{a.send(n,o)}),this.handleEvent(n)};this.isAsync?setImmediate(i):i()}last(t){return this.data[t]}eventNames(){return Object.keys(this.events)}listenerCount(t){let r=this.listeners(t);return r?r.length:0}listeners(t){return this.events[t]||void 0}once(t,r){let n=this.onceListener(t,r);this.addListener(t,n)}removeAllListeners(t){t?this.events[t]&&delete this.events[t]:this.events={}}removeListener(t,r){let n=this.listeners(t);n&&(this.events[t]=n.filter(o=>o!==r))}on(t,r){this.addListener(t,r)}off(t,r){this.removeListener(t,r)}handleEvent(t){let r=this.listeners(t.type);r&&r.length&&r.forEach(n=>{n.apply(t,t.args)}),this.data[t.type]=t.args}onceListener(t,r){let n=(...o)=>(this.removeListener(t,n),r(...o));return n}},Ua;function F_(e){globalThis.__STORYBOOK_ADDONS_CHANNEL__=e}function Kc(){let e=globalThis.__STORYBOOK_ADDONS_CHANNEL__;return e&&(Ua=e),Ua??null}function Jb(e){Ua=e??void 0,F_(Ua)}function L_(){Jb(new Xb({}))}function k_(){Kc()||L_()}typeof window>"u"&&k_();var N_=class extends $l{constructor(t){super({name:"StatusTypeIdMismatchError",category:"MANAGER_API",code:1,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}},M_=class extends $l{constructor(e){super({name:"UniversalStoreFollowerTimeoutError",category:"MANAGER_UNIVERSAL-STORE",code:1,message:`Timed out waiting for leader state for UniversalStore follower with id: '${e}'. Ensure a leader with the same id exists and is reachable before creating a follower.`})}},Bi,B_={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function j_(e){return!e&&!Bi?B_:{lang:e?.lang??Bi?.lang,message:e?.message,abortEarly:e?.abortEarly??Bi?.abortEarly,abortPipeEarly:e?.abortPipeEarly??Bi?.abortPipeEarly}}var H_;function U_(e){return H_?.get(e)}var z_;function K_(e){return z_?.get(e)}var G_;function W_(e,t){return G_?.get(e)?.get(t)}function Gc(e){let t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":t}function jt(e,t,r,n,o){let i=o&&"input"in o?o.input:r.value,a=o?.expected??e.expects??null,l=o?.received??Gc(i),s={kind:e.kind,type:e.type,input:i,expected:a,received:l,message:`Invalid ${t}: ${a?`Expected ${a} but r`:"R"}eceived ${l}`,requirement:e.requirement,path:o?.path,issues:o?.issues,lang:n.lang,abortEarly:n.abortEarly,abortPipeEarly:n.abortPipeEarly},u=e.kind==="schema",c=o?.message??e.message??W_(e.reference,s.lang)??(u?K_(s.lang):null)??n.message??U_(s.lang);c!==void 0&&(s.message=typeof c=="function"?c(s):c),u&&(r.typed=!1),r.issues?r.issues.push(s):r.issues=[s]}var Th=new WeakMap;function ir(e){let t=Th.get(e);return t||(t={version:1,vendor:"valibot",validate(r){return e["~run"]({value:r},j_())}},Th.set(e,t)),t}function Zb(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function Qb(e,t){return{kind:"validation",type:"min_value",reference:Qb,async:!1,expects:`>=${e instanceof Date?e.toJSON():Gc(e)}`,requirement:e,message:t,"~run"(r,n){return r.typed&&!(r.value>=this.requirement)&&jt(this,"value",r,n,{received:r.value instanceof Date?r.value.toJSON():Gc(r.value)}),r}}}function e1(e){return{kind:"validation",type:"safe_integer",reference:e1,async:!1,expects:null,requirement:Number.isSafeInteger,message:e,"~run"(t,r){return t.typed&&!this.requirement(t.value)&&jt(this,"safe integer",t,r),t}}}function t1(e,t,r){return typeof e.fallback=="function"?e.fallback(t,r):e.fallback}function mf(e,t,r){return typeof e.default=="function"?e.default(t,r):e.default}function r1(e,t){return{kind:"schema",type:"array",reference:r1,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return ir(this)},"~run"(r,n){let o=r.value;if(Array.isArray(o)){r.typed=!0,r.value=[];for(let i=0;i<o.length;i++){let a=o[i],l=this.item["~run"]({value:a},n);if(l.issues){let s={type:"array",origin:"value",input:o,key:i,value:a};for(let u of l.issues)u.path?u.path.unshift(s):u.path=[s],r.issues?.push(u);if(r.issues||(r.issues=l.issues),n.abortEarly){r.typed=!1;break}}l.typed||(r.typed=!1),r.value.push(l.value)}}else jt(this,"type",r,n);return r}}}function yf(e,t){return{kind:"schema",type:"custom",reference:yf,expects:"unknown",async:!1,check:e,message:t,get"~standard"(){return ir(this)},"~run"(r,n){return this.check(r.value)?r.typed=!0:jt(this,"type",r,n),r}}}function bf(e,t){return{kind:"schema",type:"loose_object",reference:bf,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return ir(this)},"~run"(r,n){let o=r.value;if(o&&typeof o=="object"){r.typed=!0,r.value={};for(let i in this.entries){let a=this.entries[i];if(i in o||(a.type==="exact_optional"||a.type==="optional"||a.type==="nullish")&&a.default!==void 0){let l=i in o?o[i]:mf(a),s=a["~run"]({value:l},n);if(s.issues){let u={type:"object",origin:"value",input:o,key:i,value:l};for(let c of s.issues)c.path?c.path.unshift(u):c.path=[u],r.issues?.push(c);if(r.issues||(r.issues=s.issues),n.abortEarly){r.typed=!1;break}}s.typed||(r.typed=!1),r.value[i]=s.value}else if(a.fallback!==void 0)r.value[i]=t1(a);else if(a.type!=="exact_optional"&&a.type!=="optional"&&a.type!=="nullish"&&(jt(this,"key",r,n,{input:void 0,expected:`"${i}"`,path:[{type:"object",origin:"key",input:o,key:i,value:o[i]}]}),n.abortEarly))break}if(!r.issues||!n.abortEarly)for(let i in o)Zb(o,i)&&!(i in this.entries)&&(r.value[i]=o[i])}else jt(this,"type",r,n);return r}}}function n1(e){return{kind:"schema",type:"number",reference:n1,expects:"number",async:!1,message:e,get"~standard"(){return ir(this)},"~run"(t,r){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:jt(this,"type",t,r),t}}}function jr(e,t){return{kind:"schema",type:"object",reference:jr,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return ir(this)},"~run"(r,n){let o=r.value;if(o&&typeof o=="object"){r.typed=!0,r.value={};for(let i in this.entries){let a=this.entries[i];if(i in o||(a.type==="exact_optional"||a.type==="optional"||a.type==="nullish")&&a.default!==void 0){let l=i in o?o[i]:mf(a),s=a["~run"]({value:l},n);if(s.issues){let u={type:"object",origin:"value",input:o,key:i,value:l};for(let c of s.issues)c.path?c.path.unshift(u):c.path=[u],r.issues?.push(c);if(r.issues||(r.issues=s.issues),n.abortEarly){r.typed=!1;break}}s.typed||(r.typed=!1),r.value[i]=s.value}else if(a.fallback!==void 0)r.value[i]=t1(a);else if(a.type!=="exact_optional"&&a.type!=="optional"&&a.type!=="nullish"&&(jt(this,"key",r,n,{input:void 0,expected:`"${i}"`,path:[{type:"object",origin:"key",input:o,key:i,value:o[i]}]}),n.abortEarly))break}}else jt(this,"type",r,n);return r}}}function ze(e,t){return{kind:"schema",type:"optional",reference:ze,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return ir(this)},"~run"(r,n){return r.value===void 0&&(this.default!==void 0&&(r.value=mf(this,r,n)),r.value===void 0)?(r.typed=!0,r):this.wrapped["~run"](r,n)}}}function wl(e,t,r){return{kind:"schema",type:"record",reference:wl,expects:"Object",async:!1,key:e,value:t,message:r,get"~standard"(){return ir(this)},"~run"(n,o){let i=n.value;if(i&&typeof i=="object"){n.typed=!0,n.value={};for(let a in i)if(Zb(i,a)){let l=i[a],s=this.key["~run"]({value:a},o);if(s.issues){let c={type:"object",origin:"key",input:i,key:a,value:l};for(let d of s.issues)d.path=[c],n.issues?.push(d);if(n.issues||(n.issues=s.issues),o.abortEarly){n.typed=!1;break}}let u=this.value["~run"]({value:l},o);if(u.issues){let c={type:"object",origin:"value",input:i,key:a,value:l};for(let d of u.issues)d.path?d.path.unshift(c):d.path=[c],n.issues?.push(d);if(n.issues||(n.issues=u.issues),o.abortEarly){n.typed=!1;break}}(!s.typed||!u.typed)&&(n.typed=!1),s.typed&&(n.value[s.value]=u.value)}}else jt(this,"type",n,o);return n}}}function de(e){return{kind:"schema",type:"string",reference:de,expects:"string",async:!1,message:e,get"~standard"(){return ir(this)},"~run"(t,r){return typeof t.value=="string"?t.typed=!0:jt(this,"type",t,r),t}}}function vf(){return{kind:"schema",type:"unknown",reference:vf,expects:"unknown",async:!1,get"~standard"(){return ir(this)},"~run"(e){return e.typed=!0,e}}}function V_(...e){return{...e[0],pipe:e,get"~standard"(){return ir(this)},"~run"(t,r){for(let n of e)if(n.kind!=="metadata"){if(t.issues&&(n.kind==="schema"||n.kind==="transformation")){t.typed=!1;break}(!t.issues||!r.abortEarly&&!r.abortPipeEarly)&&(t=n["~run"](t,r))}return t}}}var q_=yf(e=>typeof e=="object"&&e!==null&&!Array.isArray(e));jr({serviceId:de(),state:q_,version:V_(n1(),e1(),Qb(0)),clientId:de()});jr({serviceId:de(),commandName:de(),input:ze(vf()),callId:de(),clientId:de()});jr({serviceId:de(),callId:de(),result:ze(vf()),clientId:de()});var Y_=Symbol.for("preact-signals");function Ef(){if(cn>1)cn--;else{var e,t=!1;for((function(){var o=Ka;for(Ka=void 0;o!==void 0;)o.S.v===o.v&&(o.S.i=o.i),o=o.o})();zo!==void 0;){var r=zo;for(zo=void 0,za++;r!==void 0;){var n=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&i1(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(za=0,cn--,t)throw e}}var ve=void 0;function Sf(e){var t=ve;ve=void 0;try{return e()}finally{ve=t}}var zo=void 0,cn=0,za=0,Ah=0,Ka=void 0,Ga=0;function o1(e){if(ve!==void 0){var t=e.n;if(t===void 0||t.t!==ve)return t={i:0,S:e,p:ve.s,n:void 0,t:ve,e:void 0,x:void 0,r:t},ve.s!==void 0&&(ve.s.n=t),ve.s=t,e.n=t,32&ve.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ve.s,t.n=void 0,ve.s.n=t,ve.s=t),t}}function ht(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}ht.prototype.brand=Y_;ht.prototype.h=function(){return!0};ht.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:Sf(function(){var n;(n=t.W)==null||n.call(t)}))};ht.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&Sf(function(){var o;(o=t.Z)==null||o.call(t)}))}};ht.prototype.subscribe=function(e){var t=this;return J_(function(){var r=t.value,n=ve;ve=void 0;try{e(r)}finally{ve=n}},{name:"sub"})};ht.prototype.valueOf=function(){return this.value};ht.prototype.toString=function(){return this.value+""};ht.prototype.toJSON=function(){return this.value};ht.prototype.peek=function(){var e=this;return Sf(function(){return e.value})};Object.defineProperty(ht.prototype,"value",{get:function(){var e=o1(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(za>100)throw new Error("Cycle detected");(function(r){cn!==0&&za===0&&r.l!==Ah&&(r.l=Ah,Ka={S:r,v:r.v,i:r.i,o:Ka})})(this),this.v=e,this.i++,Ga++,cn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ef()}}}});function i1(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function a1(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function l1(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function uo(e,t){ht.call(this,void 0),this.x=e,this.s=void 0,this.g=Ga-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}uo.prototype=new ht;uo.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ga))return!0;if(this.g=Ga,this.f|=1,this.i>0&&!i1(this))return this.f&=-2,!0;var e=ve;try{a1(this),ve=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ve=e,l1(this),this.f&=-2,!0};uo.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}ht.prototype.S.call(this,e)};uo.prototype.U=function(e){if(this.t!==void 0&&(ht.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};uo.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(uo.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=o1(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function s1(e){var t=e.m;if(e.m=void 0,typeof t=="function"){cn++;var r=ve;ve=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,xf(e),n}finally{ve=r,Ef()}}}function xf(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,s1(e)}function X_(e){if(ve!==this)throw new Error("Out-of-order effect");l1(this),ve=e,this.f&=-2,8&this.f&&xf(this),Ef()}function co(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name}co.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.m=t)}finally{e()}};co.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,s1(this),a1(this),cn++;var e=ve;return ve=this,X_.bind(this,e)};co.prototype.N=function(){2&this.f||(this.f|=2,this.u=zo,zo=this)};co.prototype.d=function(){this.f|=8,1&this.f||xf(this)};co.prototype.dispose=function(){this.d()};function J_(e,t){var r=new co(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}new Set(Object.getOwnPropertyNames(Symbol).map(function(e){return Symbol[e]}).filter(function(e){return typeof e=="symbol"}));var Oh="outline",Z_=yf(e=>typeof e=="object"&&e!==null&&!Array.isArray(e)),Q_=jr({name:de(),message:de()}),eT=wl(de(),r1(de())),u1={name:de(),path:de(),description:ze(de()),summary:ze(de()),jsDocTags:eT,argTypes:ze(Z_),error:ze(Q_)},tT={...u1,import:ze(de())},rT=bf(tT),nT=bf({id:de(),...u1,subcomponents:ze(wl(de(),rT))});ze(nT);function oT(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}function iT(){return new Xb({transport:{setHandler:()=>{},send:()=>{}}})}var kr={ATTACHED_MDX:"attached-mdx",UNATTACHED_MDX:"unattached-mdx",PLAY_FN:"play-fn",DEV:"dev",TEST:"test"},Wa={_docs:(e,t)=>t?e.type!=="docs":e.type==="docs",_play:(e,t)=>t?e.type!=="story"||!e.tags?.includes(kr.PLAY_FN):e.type==="story"&&!!e.tags?.includes(kr.PLAY_FN),_test:(e,t)=>t?e.type!=="story"||e.subtype!=="test":e.type==="story"&&e.subtype==="test"},aT=e=>(t,r)=>r?!t.tags?.includes(e):!!t.tags?.includes(e),Wt=Array.from({length:256},(e,t)=>"%"+((t<16?"0":"")+t.toString(16)).toUpperCase()),lT=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function ma(e){let t=e.length;if(t===0)return"";let r="",n=0,o=0;e:for(;o<t;o++){let i=e.charCodeAt(o);for(;i<128;){if(lT[i]!==1&&(n<o&&(r+=e.slice(n,o)),n=o+1,r+=Wt[i]),++o===t)break e;i=e.charCodeAt(o)}if(n<o&&(r+=e.slice(n,o)),i<2048){n=o+1,r+=Wt[192|i>>6]+Wt[128|i&63];continue}if(i<55296||i>=57344){n=o+1,r+=Wt[224|i>>12]+Wt[128|i>>6&63]+Wt[128|i&63];continue}if(++o,o>=t)throw new Error("URI malformed");let a=e.charCodeAt(o)&1023;n=o+1,i=65536+((i&1023)<<10|a),r+=Wt[240|i>>18]+Wt[128|i>>12&63]+Wt[128|i>>6&63]+Wt[128|i&63]}return n===0?e:n<t?r+e.slice(n):r}var sT=e=>{switch(typeof e){case"string":return ma(e);case"bigint":case"boolean":return""+e;case"number":if(Number.isFinite(e))return e<1e21?""+e:ma(""+e);break}return e instanceof Date?ma(e.toISOString()):""},uT=e=>e instanceof Date,Rh=e=>e,st={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:Rh,valueSerializer:sT,keyDeserializer:Rh,shouldSerializeObject:uT};function cT(e){return e==="__proto__"||e==="constructor"||e==="prototype"}function ji(e,t,r,n,o){if(cT(t))return e;let i=e[t];return typeof i=="object"&&i!==null?i:!n&&(o||typeof r=="number"||typeof r=="string"&&r*0===0&&r.indexOf(".")===-1)?e[t]=[]:e[t]={}}var dT=20,fT="[]",pT="[",hT="]",gT=".";function c1(e,t,r=0,n,o){let{nestingSyntax:i=st.nestingSyntax,arrayRepeat:a=st.arrayRepeat,arrayRepeatSyntax:l=st.arrayRepeatSyntax,nesting:s=st.nesting,delimiter:u=st.delimiter,valueSerializer:c=st.valueSerializer,shouldSerializeObject:d=st.shouldSerializeObject}=t,p=typeof u=="number"?String.fromCharCode(u):u,g=o===!0&&a,m=i==="dot"||i==="js"&&!o;if(r>dT)return"";let y="",v=!0,b=!1;for(let E in e){let S=e[E];if(S===void 0)continue;let x;n?(x=n,g?l==="bracket"&&(x+=fT):m?(x+=gT,x+=E):(x+=pT,x+=E,x+=hT)):x=E,v||(y+=p),typeof S=="object"&&S!==null&&!d(S)?(b=S.pop!==void 0,(s||a&&b)&&(y+=c1(S,t,r+1,x,b))):(y+=ma(x),y+="=",y+=c(S,E)),v&&(v=!1)}return y}var $s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function d1(e){let t=e.indexOf("%");if(t===-1)return e;let r=e.length,n="",o=0,i=0,a=t,l=12;for(;t>-1&&t<r;){let s=Dh(e[t+1],4),u=Dh(e[t+2],0),c=s|u,d=$s[c];if(l=$s[256+l+d],i=i<<6|c&$s[364+d],l===12)n+=e.slice(o,a),n+=i<=65535?String.fromCharCode(i):String.fromCharCode(55232+(i>>10),56320+(i&1023)),i=0,o=t+3,t=a=e.indexOf("%",o);else{if(l===0)return null;if(t+=3,t<r&&e.charCodeAt(t)===37)continue;return null}}return n+e.slice(o)}var mT={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function Dh(e,t){let r=mT[e];return r===void 0?255:r<<t}var f1=/\+/g,p1=function(){};p1.prototype=Object.create(null);function Hi(e,t,r,n,o){let i=e.substring(t,r);return n&&(i=i.replace(f1," ")),o&&(i=d1(i)||i),i}function yT(e,t){let{valueDeserializer:r=st.valueDeserializer,keyDeserializer:n=st.keyDeserializer,arrayRepeatSyntax:o=st.arrayRepeatSyntax,nesting:i=st.nesting,arrayRepeat:a=st.arrayRepeat,nestingSyntax:l=st.nestingSyntax,delimiter:s=st.delimiter}={},u=typeof s=="string"?s.charCodeAt(0):s,c=l==="js",d=new p1;if(typeof e!="string")return d;let p=e.length,g="",m=-1,y=-1,v=-1,b=d,E,S="",x="",A=!1,w=!1,C=!1,R=!1,L=!1,I=!1,T=0,M=-1,H=-1,$=-1;for(let _=0;_<p+1;_++){if(T=_!==p?e.charCodeAt(_):u,T===u){if(I=y>m,I||(y=_),v!==y-1&&(x=Hi(e,v+1,M>-1?M:y,C,A),S=n(x),E!==void 0&&(b=ji(b,E,S,c&&L,void 0))),I||S!==""){I&&(g=e.slice(y+1,_),R&&(g=g.replace(f1," ")),w&&(g=d1(g)||g));let O=r(g,S);if(a){let P=b[S];P===void 0?M>-1?b[S]=[O]:b[S]=O:P.pop?P.push(O):b[S]=[P,O]}else b[S]=O}g="",m=_,y=_,A=!1,w=!1,C=!1,R=!1,L=!1,M=-1,v=_,b=d,E=void 0,S=""}else T===93?(a&&o==="bracket"&&$===91&&(M=H),i&&(l==="index"||c)&&y<=m&&(v!==H&&(x=Hi(e,v+1,_,C,A),S=n(x),E!==void 0&&(b=ji(b,E,S,void 0,void 0)),E=S,C=!1,A=!1),v=_,L=!1)):T===46?i&&(l==="dot"||c)&&y<=m&&(v!==H&&(x=Hi(e,v+1,_,C,A),S=n(x),E!==void 0&&(b=ji(b,E,S,c)),E=S,C=!1,A=!1),L=!0,v=_):T===91?i&&(l==="index"||c)&&y<=m&&(v!==H&&(x=Hi(e,v+1,_,C,A),S=n(x),c&&E!==void 0&&(b=ji(b,E,S,c)),E=S,C=!1,A=!1,L=!1),v=_):T===61?y<=m?y=_:w=!0:T===43?y>m?R=!0:C=!0:T===37&&(y>m?w=!0:A=!0);H=_,$=T}return d}function Wc(e,t){return e===null||typeof e!="object"?"":c1(e,t??{})}var Sn=Er({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof globalThis<"u"?n=globalThis:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return(function r(n,o,i){function a(u,c){if(!o[u]){if(!n[u]){var d=typeof Mi=="function"&&Mi;if(!c&&d)return d(u,!0);if(l)return l(u,!0);var p=new Error("Cannot find module '"+u+"'");throw p.code="MODULE_NOT_FOUND",p}var g=o[u]={exports:{}};n[u][0].call(g.exports,function(m){var y=n[u][1][m];return a(y||m)},g,g.exports,r,n,o,i)}return o[u].exports}for(var l=typeof Mi=="function"&&Mi,s=0;s<i.length;s++)a(i[s]);return a})({1:[function(r,n,o){n.exports=function(i){if(typeof Map!="function"||i){var a=r("./similar");return new a}else return new Map}},{"./similar":2}],2:[function(r,n,o){function i(){return this.list=[],this.lastItem=void 0,this.size=0,this}i.prototype.get=function(a){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,a))return this.lastItem.val;if(l=this.indexOf(a),l>=0)return this.lastItem=this.list[l],this.list[l].val},i.prototype.set=function(a,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=l,this):(s=this.indexOf(a),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:a,val:l},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(a){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),l=this.indexOf(a),l>=0)return this.size--,this.list.splice(l,1)[0]},i.prototype.has=function(a){var l;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(l=this.indexOf(a),l>=0?(this.lastItem=this.list[l],!0):!1)},i.prototype.forEach=function(a,l){var s;for(s=0;s<this.size;s++)a.call(l||this,this.list[s].val,this.list[s].key,this)},i.prototype.indexOf=function(a){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,a))return l;return-1},i.prototype.isEqual=function(a,l){return a===l||a!==a&&l!==l},n.exports=i},{}],3:[function(r,n,o){var i=r("map-or-similar");n.exports=function(u){var c=new i(!1),d=[];return function(p){var g=function(){var m=c,y,v,b=arguments.length-1,E=Array(b+1),S=!0,x;if((g.numArgs||g.numArgs===0)&&g.numArgs!==b+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<b;x++){if(E[x]={cacheItem:m,arg:arguments[x]},m.has(arguments[x])){m=m.get(arguments[x]);continue}S=!1,y=new i(!1),m.set(arguments[x],y),m=y}return S&&(m.has(arguments[b])?v=m.get(arguments[b]):S=!1),S||(v=p.apply(null,arguments),m.set(arguments[b],v)),u>0&&(E[b]={cacheItem:m,arg:arguments[b]},S?a(d,E):d.push(E),d.length>u&&l(d.shift())),g.wasMemoized=S,g.numArgs=b+1,v};return g.limit=u,g.wasMemoized=!1,g.cache=c,g.lru=d,g}};function a(u,c){var d=u.length,p=c.length,g,m,y;for(m=0;m<d;m++){for(g=!0,y=0;y<p;y++)if(!s(u[m][y].arg,c[y].arg)){g=!1;break}if(g)break}u.push(u.splice(m,1)[0])}function l(u){var c=u.length,d=u[c-1],p,g;for(d.cacheItem.delete(d.arg),g=c-2;g>=0&&(d=u[g],p=d.cacheItem.get(d.arg),!p||!p.size);g--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}}),bT="Invariant failed";function Vc(e,t){if(!e)throw new Error(bT)}var Cl="storybook/highlight",vT=`${Cl}/add`,ET=`${Cl}/remove`,ST=`${Cl}/reset`,xT=`${Cl}/scroll-into-view`,Ph=2147483647,Or=28,Ih="backgrounds",$T={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},cr={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},wT={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},h1=Object.entries(wT);function _l(e){return String(e)}_l.open="";_l.close="";h1.reduce((e,[t])=>(e[t]=_l,e),{isColorSupported:!1});function CT(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function _T(e=!1){let t=CT(e),r=(a,l,s,u)=>{let c="",d=0;do c+=a.substring(d,u)+s,d=u+l.length,u=a.indexOf(l,d);while(~u);return c+a.substring(d)},n=(a,l,s=a)=>{let u=c=>{let d=String(c),p=d.indexOf(l,a.length);return~p?a+r(d,l,s,p)+l:a+d+l};return u.open=a,u.close=l,u},o={isColorSupported:t},i=a=>`\x1B[${a}m`;for(let[a,l]of h1)o[a]=t?n(i(l[0]),i(l[1]),l[2]):_l;return o}var mr=_T();function g1(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function TT(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function mi(e,t,r,n,o,i,a=": "){let l="",s=0,u=e.next();if(!u.done){l+=t.spacingOuter;let c=r+t.indent;for(;!u.done;){if(l+=c,s++===t.maxWidth){l+="…";break}let d=i(u.value[0],t,c,n,o),p=i(u.value[1],t,c,n,o);l+=d+a+p,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}function $f(e,t,r,n,o,i){let a="",l=0,s=e.next();if(!s.done){a+=t.spacingOuter;let u=r+t.indent;for(;!s.done;){if(a+=u,l++===t.maxWidth){a+="…";break}a+=i(s.value,t,u,n,o),s=e.next(),s.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function Va(e,t,r,n,o,i){let a="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=u=>u instanceof DataView,s=l(e)?e.byteLength:e.length;if(s>0){a+=t.spacingOuter;let u=r+t.indent;for(let c=0;c<s;c++){if(a+=u,c===t.maxWidth){a+="…";break}(l(e)||c in e)&&(a+=i(l(e)?e.getInt8(c):e[c],t,u,n,o)),c<s-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}function wf(e,t,r,n,o,i){let a="",l=TT(e,t.compareKeys);if(l.length>0){a+=t.spacingOuter;let s=r+t.indent;for(let u=0;u<l.length;u++){let c=l[u],d=i(c,t,s,n,o),p=i(e[c],t,s,n,o);a+=`${s+d}: ${p}`,u<l.length-1?a+=`,${t.spacingInner}`:t.min||(a+=",")}a+=t.spacingOuter+r}return a}var AT=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,ws=" ",OT=(e,t,r,n,o,i)=>{let a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+ws}[${Va(e.sample,t,r,n,o,i)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+ws}{${wf(e.sample,t,r,n,o,i)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+ws+i(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},RT=e=>e&&e.$$typeof===AT,DT={serialize:OT,test:RT},PT=" ",m1=new Set(["DOMStringMap","NamedNodeMap"]),IT=/^(?:HTML\w*Collection|NodeList)$/;function FT(e){return m1.has(e)||IT.test(e)}var LT=e=>e&&e.constructor&&!!e.constructor.name&&FT(e.constructor.name);function kT(e){return e.constructor.name==="NamedNodeMap"}var NT=(e,t,r,n,o,i)=>{let a=e.constructor.name;return++n>t.maxDepth?`[${a}]`:(t.min?"":a+PT)+(m1.has(a)?`{${wf(kT(e)?[...e].reduce((l,s)=>(l[s.name]=s.value,l),{}):{...e},t,r,n,o,i)}}`:`[${Va([...e],t,r,n,o,i)}]`)},MT={serialize:NT,test:LT};function y1(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function Cf(e,t,r,n,o,i,a){let l=n+r.indent,s=r.colors;return e.map(u=>{let c=t[u],d=a(c,r,l,o,i);return typeof c!="string"&&(d.includes(`
10
+ `)&&(d=r.spacingOuter+l+d+r.spacingOuter+n),d=`{${d}}`),`${r.spacingInner+n+s.prop.open+u+s.prop.close}=${s.value.open}${d}${s.value.close}`}).join("")}function _f(e,t,r,n,o,i){return e.map(a=>t.spacingOuter+r+(typeof a=="string"?b1(a,t):i(a,t,r,n,o))).join("")}function b1(e,t){let r=t.colors.content;return r.open+y1(e)+r.close}function BT(e,t){let r=t.colors.comment;return`${r.open}<!--${y1(e)}-->${r.close}`}function Tf(e,t,r,n,o){let i=n.colors.tag;return`${i.open}<${e}${t&&i.close+t+n.spacingOuter+o+i.open}${r?`>${i.close}${r}${n.spacingOuter}${o}${i.open}</${e}`:`${t&&!n.min?"":" "}/`}>${i.close}`}function Af(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var jT=1,v1=3,E1=8,S1=11,HT=/^(?:(?:HTML|SVG)\w*)?Element$/;function UT(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function zT(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||UT(e);return r===jT&&(HT.test(t)||o)||r===v1&&t==="Text"||r===E1&&t==="Comment"||r===S1&&t==="DocumentFragment"}var KT=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&zT(e)};function GT(e){return e.nodeType===v1}function WT(e){return e.nodeType===E1}function Cs(e){return e.nodeType===S1}var VT=(e,t,r,n,o,i)=>{if(GT(e))return b1(e.data,t);if(WT(e))return BT(e.data,t);let a=Cs(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?Af(a,t):Tf(a,Cf(Cs(e)?[]:Array.from(e.attributes,l=>l.name).sort(),Cs(e)?{}:[...e.attributes].reduce((l,s)=>(l[s.name]=s.value,l),{}),t,r+t.indent,n,o,i),_f(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},qT={serialize:VT,test:KT},YT="@@__IMMUTABLE_ITERABLE__@@",XT="@@__IMMUTABLE_LIST__@@",JT="@@__IMMUTABLE_KEYED__@@",ZT="@@__IMMUTABLE_MAP__@@",Fh="@@__IMMUTABLE_ORDERED__@@",QT="@@__IMMUTABLE_RECORD__@@",eA="@@__IMMUTABLE_SEQ__@@",tA="@@__IMMUTABLE_SET__@@",rA="@@__IMMUTABLE_STACK__@@",Wn=e=>`Immutable.${e}`,Tl=e=>`[${e}]`,Xo=" ",Lh="…";function nA(e,t,r,n,o,i,a){return++n>t.maxDepth?Tl(Wn(a)):`${Wn(a)+Xo}{${mi(e.entries(),t,r,n,o,i)}}`}function oA(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function iA(e,t,r,n,o,i){let a=Wn(e._name||"Record");return++n>t.maxDepth?Tl(a):`${a+Xo}{${mi(oA(e),t,r,n,o,i)}}`}function aA(e,t,r,n,o,i){let a=Wn("Seq");return++n>t.maxDepth?Tl(a):e[JT]?`${a+Xo}{${e._iter||e._object?mi(e.entries(),t,r,n,o,i):Lh}}`:`${a+Xo}[${e._iter||e._array||e._collection||e._iterable?$f(e.values(),t,r,n,o,i):Lh}]`}function _s(e,t,r,n,o,i,a){return++n>t.maxDepth?Tl(Wn(a)):`${Wn(a)+Xo}[${$f(e.values(),t,r,n,o,i)}]`}var lA=(e,t,r,n,o,i)=>e[ZT]?nA(e,t,r,n,o,i,e[Fh]?"OrderedMap":"Map"):e[XT]?_s(e,t,r,n,o,i,"List"):e[tA]?_s(e,t,r,n,o,i,e[Fh]?"OrderedSet":"Set"):e[rA]?_s(e,t,r,n,o,i,"Stack"):e[eA]?aA(e,t,r,n,o,i):iA(e,t,r,n,o,i),sA=e=>e&&(e[YT]===!0||e[QT]===!0),uA={serialize:lA,test:sA};function x1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kh={exports:{}},be={},Nh;function cA(){if(Nh)return be;Nh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function m(y){if(typeof y=="object"&&y!==null){var v=y.$$typeof;switch(v){case e:switch(y=y.type,y){case r:case o:case n:case s:case u:case p:return y;default:switch(y=y&&y.$$typeof,y){case a:case l:case d:case c:return y;case i:return y;default:return v}}case t:return v}}}return be.ContextConsumer=i,be.ContextProvider=a,be.Element=e,be.ForwardRef=l,be.Fragment=r,be.Lazy=d,be.Memo=c,be.Portal=t,be.Profiler=o,be.StrictMode=n,be.Suspense=s,be.SuspenseList=u,be.isContextConsumer=function(y){return m(y)===i},be.isContextProvider=function(y){return m(y)===a},be.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},be.isForwardRef=function(y){return m(y)===l},be.isFragment=function(y){return m(y)===r},be.isLazy=function(y){return m(y)===d},be.isMemo=function(y){return m(y)===c},be.isPortal=function(y){return m(y)===t},be.isProfiler=function(y){return m(y)===o},be.isStrictMode=function(y){return m(y)===n},be.isSuspense=function(y){return m(y)===s},be.isSuspenseList=function(y){return m(y)===u},be.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===s||y===u||typeof y=="object"&&y!==null&&(y.$$typeof===d||y.$$typeof===c||y.$$typeof===a||y.$$typeof===i||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},be.typeOf=m,be}var Mh;function dA(){return Mh||(Mh=1,kh.exports=cA()),kh.exports}var $1=dA(),fA=x1($1),pA=g1({__proto__:null,default:fA},[$1]),Bh={exports:{}},ye={},jh;function hA(){if(jh)return ye;jh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function y(v){if(typeof v=="object"&&v!==null){var b=v.$$typeof;switch(b){case e:switch(v=v.type,v){case r:case o:case n:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case l:case a:case s:case p:case d:case i:return v;default:return b}}case t:return b}}}return ye.ContextConsumer=a,ye.ContextProvider=i,ye.Element=e,ye.ForwardRef=s,ye.Fragment=r,ye.Lazy=p,ye.Memo=d,ye.Portal=t,ye.Profiler=o,ye.StrictMode=n,ye.Suspense=u,ye.SuspenseList=c,ye.isAsyncMode=function(){return!1},ye.isConcurrentMode=function(){return!1},ye.isContextConsumer=function(v){return y(v)===a},ye.isContextProvider=function(v){return y(v)===i},ye.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},ye.isForwardRef=function(v){return y(v)===s},ye.isFragment=function(v){return y(v)===r},ye.isLazy=function(v){return y(v)===p},ye.isMemo=function(v){return y(v)===d},ye.isPortal=function(v){return y(v)===t},ye.isProfiler=function(v){return y(v)===o},ye.isStrictMode=function(v){return y(v)===n},ye.isSuspense=function(v){return y(v)===u},ye.isSuspenseList=function(v){return y(v)===c},ye.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===o||v===n||v===u||v===c||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===d||v.$$typeof===i||v.$$typeof===a||v.$$typeof===s||v.$$typeof===m||v.getModuleId!==void 0)},ye.typeOf=y,ye}var Hh;function gA(){return Hh||(Hh=1,Bh.exports=hA()),Bh.exports}var w1=gA(),mA=x1(w1),yA=g1({__proto__:null,default:mA},[w1]),bA=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],en=Object.fromEntries(bA.map(e=>[e,t=>yA[e](t)||pA[e](t)]));function C1(e,t=[]){if(Array.isArray(e))for(let r of e)C1(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Uh(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(en.isFragment(e))return"React.Fragment";if(en.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(en.isContextProvider(e))return"Context.Provider";if(en.isContextConsumer(e))return"Context.Consumer";if(en.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(en.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function vA(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var EA=(e,t,r,n,o,i)=>++n>t.maxDepth?Af(Uh(e),t):Tf(Uh(e),Cf(vA(e),e.props,t,r+t.indent,n,o,i),_f(C1(e.props.children),t,r+t.indent,n,o,i),t,r),SA=e=>e!=null&&en.isElement(e),xA={serialize:EA,test:SA},$A=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function wA(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var CA=(e,t,r,n,o,i)=>++n>t.maxDepth?Af(e.type,t):Tf(e.type,e.props?Cf(wA(e),e.props,t,r+t.indent,n,o,i):"",e.children?_f(e.children,t,r+t.indent,n,o,i):"",t,r),_A=e=>e&&e.$$typeof===$A,TA={serialize:CA,test:_A},_1=Object.prototype.toString,AA=Date.prototype.toISOString,OA=Error.prototype.toString,zh=RegExp.prototype.toString;function ya(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function RA(e){return typeof window<"u"&&e===window}var DA=/^Symbol\((.*)\)(.*)$/,PA=/\n/g,T1=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function IA(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function FA(e){return Object.is(e,-0)?"-0":String(e)}function LA(e){return`${e}n`}function Kh(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Gh(e){return String(e).replace(DA,"Symbol($1)")}function Wh(e){return`[${OA.call(e)}]`}function A1(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return FA(e);if(o==="bigint")return LA(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Kh(e,t);if(o==="symbol")return Gh(e);let i=_1.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?Kh(e,t):i==="[object Symbol]"?Gh(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":AA.call(e):i==="[object Error]"?Wh(e):i==="[object RegExp]"?r?zh.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):zh.call(e):e instanceof Error?Wh(e):null}function O1(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let a=++n>t.maxDepth,l=t.min;if(t.callToJSON&&!a&&e.toJSON&&typeof e.toJSON=="function"&&!i)return Rr(e.toJSON(),t,r,n,o,!0);let s=_1.call(e);return s==="[object Arguments]"?a?"[Arguments]":`${l?"":"Arguments "}[${Va(e,t,r,n,o,Rr)}]`:IA(s)?a?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Va(e,t,r,n,o,Rr)}]`:s==="[object Map]"?a?"[Map]":`Map {${mi(e.entries(),t,r,n,o,Rr," => ")}}`:s==="[object Set]"?a?"[Set]":`Set {${$f(e.values(),t,r,n,o,Rr)}}`:a||RA(e)?`[${ya(e)}]`:`${l||!t.printBasicPrototype&&ya(e)==="Object"?"":`${ya(e)} `}{${wf(e,t,r,n,o,Rr)}}`}var kA={test:e=>e&&e instanceof Error,serialize(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o,e];let a=++n>t.maxDepth,{message:l,cause:s,...u}=e,c={message:l,...typeof s<"u"?{cause:s}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},d=e.name!=="Error"?e.name:ya(e);return a?`[${d}]`:`${d} {${mi(Object.entries(c).values(),t,r,n,o,i)}}`}};function NA(e){return e.serialize!=null}function R1(e,t,r,n,o,i){let a;try{a=NA(e)?e.serialize(t,r,n,o,i,Rr):e.print(t,l=>Rr(l,r,n,o,i),l=>{let s=n+r.indent;return s+l.replaceAll(PA,`
11
+ ${s}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new T1(l.message,l.stack)}if(typeof a!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof a}".`);return a}function D1(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new T1(n.message,n.stack)}return null}function Rr(e,t,r,n,o,i){let a=D1(t.plugins,e);if(a!==null)return R1(a,e,t,r,n,o);let l=A1(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:O1(e,t,r,n,o,i)}var Of={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},P1=Object.keys(Of),Lt={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Of};function MA(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Lt,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function BA(){return P1.reduce((e,t)=>{let r=Of[t],n=r&&mr[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function jA(){return P1.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function I1(e){return e?.printFunctionName??Lt.printFunctionName}function F1(e){return e?.escapeRegex??Lt.escapeRegex}function L1(e){return e?.escapeString??Lt.escapeString}function Vh(e){return{callToJSON:e?.callToJSON??Lt.callToJSON,colors:e?.highlight?BA():jA(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Lt.compareKeys,escapeRegex:F1(e),escapeString:L1(e),indent:e?.min?"":HA(e?.indent??Lt.indent),maxDepth:e?.maxDepth??Lt.maxDepth,maxWidth:e?.maxWidth??Lt.maxWidth,min:e?.min??Lt.min,plugins:e?.plugins??Lt.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:I1(e),spacingInner:e?.min?" ":`
12
+ `,spacingOuter:e?.min?"":`
13
+ `}}function HA(e){return Array.from({length:e+1}).join(" ")}function Qt(e,t){if(t&&(MA(t),t.plugins)){let n=D1(t.plugins,e);if(n!==null)return R1(n,e,Vh(t),"",0,[])}let r=A1(e,I1(t),F1(t),L1(t));return r!==null?r:O1(e,Vh(t),"",0,[])}var Rf={AsymmetricMatcher:DT,DOMCollection:MT,DOMElement:qT,Immutable:uA,ReactElement:xA,ReactTestComponent:TA,Error:kA},qh={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},UA={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Vn="…";function zA(e,t){let r=qh[UA[t]]||qh[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function KA({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:a=1/0,seen:l=[],truncate:s=1/0,stylize:u=String}={},c){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(a),truncate:Number(s),seen:l,inspect:c,stylize:u};return d.colors&&(d.stylize=zA),d}function GA(e){return e>="\uD800"&&e<="\uDBFF"}function Hr(e,t,r=Vn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&GA(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function Ht(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,a="",l="",s="";for(let u=0;u<o;u+=1){let c=u+1===e.length,d=u+2===e.length;s=`${Vn}(${e.length-u})`;let p=e[u];t.truncate=i-a.length-(c?0:n.length);let g=l||r(p,t)+(c?"":n),m=a.length+g.length,y=m+s.length;if(c&&m>i&&a.length+s.length<=i||!c&&!d&&y>i||(l=c?"":r(e[u+1],t)+(d?"":n),!c&&d&&y>i&&m+l.length>i))break;if(a+=g,!c&&!d&&m+l.length>=i){s=`${Vn}(${e.length-u-1})`;break}s=""}return`${a}${s}`}function WA(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Jo([e,t],r){return r.truncate-=2,typeof e=="string"?e=WA(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function VA(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Ht(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Ht(r.map(i=>[i,e[i]]),t,Jo)),`[ ${n}${o?`, ${o}`:""} ]`}var qA=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function dr(e,t){let r=qA(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let a=0;a<e.length;a++){let l=`${t.stylize(Hr(e[a],t.truncate),"number")}${a===e.length-1?"":", "}`;if(t.truncate-=l.length,e[a]!==e.length&&t.truncate<=3){o+=`${Vn}(${e.length-e[a]+1})`;break}o+=l}let i="";return n.length&&(i=Ht(n.map(a=>[a,e[a]]),t,Jo)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function YA(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${Hr(n[1],t.truncate-o.length-1)}`,"date")}function Yh(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Hr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function XA([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function JA(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function ZA(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Ht(JA(e),t,XA)} }`)}var QA=Number.isNaN||(e=>e!==e);function Xh(e,t){return QA(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Hr(String(e),t.truncate),"number")}function Jh(e,t){let r=Hr(e.toString(),t.truncate-1);return r!==Vn&&(r+="n"),t.stylize(r,"bigint")}function eO(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Hr(o,n)}/${r}`,"regexp")}function tO(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function rO(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Ht(tO(e),t)} }`)}var Zh=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),nO={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},oO=16;function iO(e){return nO[e]||`\\u${`0000${e.charCodeAt(0).toString(oO)}`.slice(-4)}`}function Qh(e,t){return Zh.test(e)&&(e=e.replace(Zh,iO)),t.stylize(`'${Hr(e,t.truncate-2)}'`,"string")}function eg(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var k1=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(k1=(n,o)=>{let[i,a]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(a,o)}}`})}catch{}var aO=k1;function ba(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=Ht(r.map(l=>[l,e[l]]),t,Jo),i=Ht(n.map(l=>[l,e[l]]),t,Jo);t.seen.pop();let a="";return o&&i&&(a=", "),`{ ${o}${a}${i} }`}var Ts=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function lO(e,t){let r="";return Ts&&Ts in e&&(r=e[Ts]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${ba(e,t)}`}function sO(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Ht(e,t)} ]`)}var uO=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function cO(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>uO.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Hr(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=Ht(r.map(a=>[a,e[a]]),t,Jo);return`${n}${o}${i?` { ${i} }`:""}`}function dO([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function qc(e,t){return Ht(e,t,fO,`
14
+ `)}function fO(e,t){switch(e.nodeType){case 1:return N1(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function N1(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),a=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=Ht(r.map(c=>[c,e.getAttribute(c)]),t,dO," ")),t.truncate-=l.length;let s=t.truncate,u=qc(e.children,t);return u&&u.length>s&&(u=`${Vn}(${e.children.length})`),`${o}${l}${i}${u}${a}`}var pO=typeof Symbol=="function"&&typeof Symbol.for=="function",As=pO?Symbol.for("chai/inspect"):"@@chai/inspect",Os=Symbol.for("nodejs.util.inspect.custom"),tg=new WeakMap,rg={},ng={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Xh,Number:Xh,bigint:Jh,BigInt:Jh,string:Qh,String:Qh,function:Yh,Function:Yh,symbol:eg,Symbol:eg,Array:VA,Date:YA,Map:ZA,Set:rO,RegExp:eO,Promise:aO,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:sO,Int8Array:dr,Uint8Array:dr,Uint8ClampedArray:dr,Int16Array:dr,Uint16Array:dr,Int32Array:dr,Uint32Array:dr,Float32Array:dr,Float64Array:dr,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:cO,HTMLCollection:qc,NodeList:qc},hO=(e,t,r)=>As in e&&typeof e[As]=="function"?e[As](t):Os in e&&typeof e[Os]=="function"?e[Os](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&tg.has(e.constructor)?tg.get(e.constructor)(e,t):rg[r]?rg[r](e,t):"",gO=Object.prototype.toString;function Yc(e,t={}){let r=KA(t,Yc),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=gO.call(e).slice(8,-1)),o in ng)return ng[o](e,r);if(n&&e){let a=hO(e,r,o);if(a)return typeof a=="string"?a:Yc(a,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?ba(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?N1(e,r):"constructor"in e?e.constructor!==Object?lO(e,r):ba(e,r):e===Object(e)?ba(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:mO,DOMCollection:yO,DOMElement:bO,Immutable:vO,ReactElement:EO,ReactTestComponent:SO}=Rf,og=[SO,EO,bO,yO,vO,mO];function Zo(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,i;try{i=Qt(e,{maxDepth:t,escapeString:!1,plugins:og,...n})}catch{i=Qt(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:og,...n})}return i.length>=o&&t>1?Zo(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):i}var xO=/%[sdjifoOc%]/g;function $O(...e){if(typeof e[0]!="string"){let i=[];for(let a=0;a<e.length;a++)i.push(Co(e[a],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(xO,i=>{if(i==="%%")return"%";if(r>=t)return i;switch(i){case"%s":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:typeof a=="number"&&a===0&&1/a<0?"-0":typeof a=="object"&&a!==null?typeof a.toString=="function"&&a.toString!==Object.prototype.toString?a.toString():Co(a,{depth:0,colors:!1}):String(a)}case"%d":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number(a).toString()}case"%i":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number.parseInt(String(a)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Co(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Co(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(a){let l=a.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw a}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${Co(i)}`;return o}function Co(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Yc(e,t)}function wO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function CO(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Xc(e){return Object.prototype.toString.apply(e).slice(8,-1)}function _O(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function M1(e){let t=new Set;return CO(e)?[]:(_O(e,t),Array.from(t))}var B1={forceWritable:!1};function ig(e,t=B1){return Jc(e,new WeakMap,t)}function Jc(e,t,r=B1){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=Jc(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=M1(e);for(let a of i){let l=Object.getOwnPropertyDescriptor(e,a);if(!l)continue;let s=Jc(e[a],t,r);r.forceWritable?Object.defineProperty(o,a,{enumerable:l.enumerable,configurable:!0,writable:!0,value:s}):"get"in l?Object.defineProperty(o,a,{...l,get(){return s}}):Object.defineProperty(o,a,{...l,value:s})}return o}return e}var Ze=-1,Ke=1,Ae=0,Ce=class{constructor(e,t){this[0]=e,this[1]=t}};function TO(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function j1(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function ag(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let i=0,a=1;for(;;){let l=e.substring(o-a),s=t.indexOf(l);if(s===-1)return i;a+=s,(s===0||e.substring(o-a)===t.substring(0,a))&&(i=a,a++)}}function AO(e){let t=!1,r=[],n=0,o=null,i=0,a=0,l=0,s=0,u=0;for(;i<e.length;)e[i][0]===Ae?(r[n++]=i,a=s,l=u,s=0,u=0,o=e[i][1]):(e[i][0]===Ke?s+=e[i][1].length:u+=e[i][1].length,o&&o.length<=Math.max(a,l)&&o.length<=Math.max(s,u)&&(e.splice(r[n-1],0,new Ce(Ze,o)),e[r[n-1]+1][0]=Ke,n--,n--,i=n>0?r[n-1]:-1,a=0,l=0,s=0,u=0,o=null,t=!0)),i++;for(t&&H1(e),DO(e),i=1;i<e.length;){if(e[i-1][0]===Ze&&e[i][0]===Ke){let c=e[i-1][1],d=e[i][1],p=ag(c,d),g=ag(d,c);p>=g?(p>=c.length/2||p>=d.length/2)&&(e.splice(i,0,new Ce(Ae,d.substring(0,p))),e[i-1][1]=c.substring(0,c.length-p),e[i+1][1]=d.substring(p),i++):(g>=c.length/2||g>=d.length/2)&&(e.splice(i,0,new Ce(Ae,c.substring(0,g))),e[i-1][0]=Ke,e[i-1][1]=d.substring(0,d.length-g),e[i+1][0]=Ze,e[i+1][1]=c.substring(g),i++),i++}i++}}var lg=/[^a-z0-9]/i,sg=/\s/,ug=/[\r\n]/,OO=/\n\r?\n$/,RO=/^\r?\n\r?\n/;function DO(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Ae&&e[t+1][0]===Ae){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],i=j1(r,n);if(i){let c=n.substring(n.length-i);r=r.substring(0,r.length-i),n=c+n.substring(0,n.length-i),o=c+o}let a=r,l=n,s=o,u=Ui(r,n)+Ui(n,o);for(;n.charAt(0)===o.charAt(0);){r+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);let c=Ui(r,n)+Ui(n,o);c>=u&&(u=c,a=r,l=n,s=o)}e[t-1][1]!==a&&(a?e[t-1][1]=a:(e.splice(t-1,1),t--),e[t][1]=l,s?e[t+1][1]=s:(e.splice(t+1,1),t--))}t++}}function H1(e){e.push(new Ce(Ae,""));let t=0,r=0,n=0,o="",i="",a;for(;t<e.length;)switch(e[t][0]){case Ke:n++,i+=e[t][1],t++;break;case Ze:r++,o+=e[t][1],t++;break;case Ae:r+n>1?(r!==0&&n!==0&&(a=TO(i,o),a!==0&&(t-r-n>0&&e[t-r-n-1][0]===Ae?e[t-r-n-1][1]+=i.substring(0,a):(e.splice(0,0,new Ce(Ae,i.substring(0,a))),t++),i=i.substring(a),o=o.substring(a)),a=j1(i,o),a!==0&&(e[t][1]=i.substring(i.length-a)+e[t][1],i=i.substring(0,i.length-a),o=o.substring(0,o.length-a))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Ce(Ze,o)),t++),i.length&&(e.splice(t,0,new Ce(Ke,i)),t++),t++):t!==0&&e[t-1][0]===Ae?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===Ae&&e[t+1][0]===Ae&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),l=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),l=!0)),t++;l&&H1(e)}function Ui(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(lg),i=n.match(lg),a=o&&r.match(sg),l=i&&n.match(sg),s=a&&r.match(ug),u=l&&n.match(ug),c=s&&e.match(OO),d=u&&t.match(RO);return c||d?5:s||u?4:o&&!a&&l?3:a||l?2:o||i?1:0}var U1="Compared values have no visual difference.",PO="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",zi={},cg;function IO(){if(cg)return zi;cg=1,Object.defineProperty(zi,"__esModule",{value:!0}),zi.default=p;let e="diff-sequences",t=0,r=(g,m,y,v,b)=>{let E=0;for(;g<m&&y<v&&b(g,y);)g+=1,y+=1,E+=1;return E},n=(g,m,y,v,b)=>{let E=0;for(;g<=m&&y<=v&&b(m,v);)m-=1,v-=1,E+=1;return E},o=(g,m,y,v,b,E,S)=>{let x=0,A=-g,w=E[x],C=w;E[x]+=r(w+1,m,v+w-A+1,y,b);let R=g<S?g:S;for(x+=1,A+=2;x<=R;x+=1,A+=2){if(x!==g&&C<E[x])w=E[x];else if(w=C+1,m<=w)return x-1;C=E[x],E[x]=w+r(w+1,m,v+w-A+1,y,b)}return S},i=(g,m,y,v,b,E,S)=>{let x=0,A=g,w=E[x],C=w;E[x]-=n(m,w-1,y,v+w-A-1,b);let R=g<S?g:S;for(x+=1,A-=2;x<=R;x+=1,A-=2){if(x!==g&&E[x]<C)w=E[x];else if(w=C-1,w<m)return x-1;C=E[x],E[x]=w-n(m,w-1,y,v+w-A-1,b)}return S},a=(g,m,y,v,b,E,S,x,A,w,C)=>{let R=v-m,L=y-m,I=b-v-L,T=-I-(g-1),M=-I+(g-1),H=t,$=g<x?g:x;for(let _=0,O=-g;_<=$;_+=1,O+=2){let P=_===0||_!==g&&H<S[_],k=P?S[_]:H,B=P?k:k+1,N=R+B-O,D=r(B+1,y,N+1,b,E),j=B+D;if(H=S[_],S[_]=j,T<=O&&O<=M){let K=(g-1-(O+I))/2;if(K<=w&&A[K]-1<=j){let U=R+k-(P?O+1:O-1),z=n(m,k,v,U,E),W=k-z,G=U-z,X=W+1,ie=G+1;C.nChangePreceding=g-1,g-1===X+ie-m-v?(C.aEndPreceding=m,C.bEndPreceding=v):(C.aEndPreceding=X,C.bEndPreceding=ie),C.nCommonPreceding=z,z!==0&&(C.aCommonPreceding=X,C.bCommonPreceding=ie),C.nCommonFollowing=D,D!==0&&(C.aCommonFollowing=B+1,C.bCommonFollowing=N+1);let Re=j+1,Z=N+D+1;return C.nChangeFollowing=g-1,g-1===y+b-Re-Z?(C.aStartFollowing=y,C.bStartFollowing=b):(C.aStartFollowing=Re,C.bStartFollowing=Z),!0}}}return!1},l=(g,m,y,v,b,E,S,x,A,w,C)=>{let R=b-y,L=y-m,I=b-v-L,T=I-g,M=I+g,H=t,$=g<w?g:w;for(let _=0,O=g;_<=$;_+=1,O-=2){let P=_===0||_!==g&&A[_]<H,k=P?A[_]:H,B=P?k:k-1,N=R+B-O,D=n(m,B-1,v,N-1,E),j=B-D;if(H=A[_],A[_]=j,T<=O&&O<=M){let K=(g+(O-I))/2;if(K<=x&&j-1<=S[K]){let U=N-D;if(C.nChangePreceding=g,g===j+U-m-v?(C.aEndPreceding=m,C.bEndPreceding=v):(C.aEndPreceding=j,C.bEndPreceding=U),C.nCommonPreceding=D,D!==0&&(C.aCommonPreceding=j,C.bCommonPreceding=U),C.nChangeFollowing=g-1,g===1)C.nCommonFollowing=0,C.aStartFollowing=y,C.bStartFollowing=b;else{let z=R+k-(P?O-1:O+1),W=r(k,y,z,b,E);C.nCommonFollowing=W,W!==0&&(C.aCommonFollowing=k,C.bCommonFollowing=z);let G=k+W,X=z+W;g-1===y+b-G-X?(C.aStartFollowing=y,C.bStartFollowing=b):(C.aStartFollowing=G,C.bStartFollowing=X)}return!0}}}return!1},s=(g,m,y,v,b,E,S,x,A)=>{let w=v-m,C=b-y,R=y-m,L=b-v,I=L-R,T=R,M=R;if(S[0]=m-1,x[0]=y,I%2===0){let H=(g||I)/2,$=(R+L)/2;for(let _=1;_<=$;_+=1)if(T=o(_,y,b,w,E,S,T),_<H)M=i(_,m,v,C,E,x,M);else if(l(_,m,y,v,b,E,S,T,x,M,A))return}else{let H=((g||I)+1)/2,$=(R+L+1)/2,_=1;for(T=o(_,y,b,w,E,S,T),_+=1;_<=$;_+=1)if(M=i(_-1,m,v,C,E,x,M),_<H)T=o(_,y,b,w,E,S,T);else if(a(_,m,y,v,b,E,S,T,x,M,A))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${y} bStart=${v} bEnd=${b}`)},u=(g,m,y,v,b,E,S,x,A,w)=>{if(b-v<y-m){if(E=!E,E&&S.length===1){let{foundSubsequence:K,isCommon:U}=S[0];S[1]={foundSubsequence:(z,W,G)=>{K(z,G,W)},isCommon:(z,W)=>U(W,z)}}let D=m,j=y;m=v,y=b,v=D,b=j}let{foundSubsequence:C,isCommon:R}=S[E?1:0];s(g,m,y,v,b,R,x,A,w);let{nChangePreceding:L,aEndPreceding:I,bEndPreceding:T,nCommonPreceding:M,aCommonPreceding:H,bCommonPreceding:$,nCommonFollowing:_,aCommonFollowing:O,bCommonFollowing:P,nChangeFollowing:k,aStartFollowing:B,bStartFollowing:N}=w;m<I&&v<T&&u(L,m,I,v,T,E,S,x,A,w),M!==0&&C(M,H,$),_!==0&&C(_,O,P),B<y&&N<b&&u(k,B,y,N,b,E,S,x,A,w)},c=(g,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${g} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${g} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${g} value ${m} is a negative integer`)},d=(g,m)=>{let y=typeof m;if(y!=="function")throw new TypeError(`${e}: ${g} typeof ${y} is not a function`)};function p(g,m,y,v){c("aLength",g),c("bLength",m),d("isCommon",y),d("foundSubsequence",v);let b=r(0,g,0,m,y);if(b!==0&&v(b,0,0),g!==b||m!==b){let E=b,S=b,x=n(E,g-1,S,m-1,y),A=g-x,w=m-x,C=b+x;g!==C&&m!==C&&u(0,E,A,S,w,!1,[{foundSubsequence:v,isCommon:y}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),x!==0&&v(x,A,w)}}return zi}var FO=IO(),z1=wO(FO);function LO(e,t){return e.replace(/\s+$/,r=>t(r))}function Df(e,t,r,n,o,i){return e.length!==0?r(`${n} ${LO(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}function K1(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Df(e,t,r,n,o,i)}function G1(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Df(e,t,r,n,o,i)}function W1(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Df(e,t,r,n,o,i)}function dg(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function kO(e,t){let r=e.length,n=t.contextLines,o=n+n,i=r,a=!1,l=0,s=0;for(;s!==r;){let x=s;for(;s!==r&&e[s][0]===Ae;)s+=1;if(x!==s)if(x===0)s>n&&(i-=s-n,a=!0);else if(s===r){let A=s-x;A>n&&(i-=A-n,a=!0)}else{let A=s-x;A>o&&(i-=A-o,l+=1)}for(;s!==r&&e[s][0]!==Ae;)s+=1}let u=l!==0||a;l!==0?i+=l+1:a&&(i+=1);let c=i-1,d=[],p=0;u&&d.push("");let g=0,m=0,y=0,v=0,b=x=>{let A=d.length;d.push(W1(x,A===0||A===c,t)),y+=1,v+=1},E=x=>{let A=d.length;d.push(K1(x,A===0||A===c,t)),y+=1},S=x=>{let A=d.length;d.push(G1(x,A===0||A===c,t)),v+=1};for(s=0;s!==r;){let x=s;for(;s!==r&&e[s][0]===Ae;)s+=1;if(x!==s)if(x===0){s>n&&(x=s-n,g=x,m=x,y=g,v=m);for(let A=x;A!==s;A+=1)b(e[A][1])}else if(s===r){let A=s-x>n?x+n:s;for(let w=x;w!==A;w+=1)b(e[w][1])}else{let A=s-x;if(A>o){let w=x+n;for(let R=x;R!==w;R+=1)b(e[R][1]);d[p]=dg(g,y,m,v,t),p=d.length,d.push("");let C=A-o;g=y+C,m=v+C,y=g,v=m;for(let R=s-n;R!==s;R+=1)b(e[R][1])}else for(let w=x;w!==s;w+=1)b(e[w][1])}for(;s!==r&&e[s][0]===Ze;)E(e[s][1]),s+=1;for(;s!==r&&e[s][0]===Ke;)S(e[s][1]),s+=1}return u&&(d[p]=dg(g,y,m,v,t)),d.join(`
15
+ `)}function NO(e,t){return e.map((r,n,o)=>{let i=r[1],a=n===0||n===o.length-1;switch(r[0]){case Ze:return K1(i,a,t);case Ke:return G1(i,a,t);default:return W1(i,a,t)}}).join(`
16
+ `)}var Rs=e=>e,V1=5,MO=0;function BO(){return{aAnnotation:"Expected",aColor:mr.green,aIndicator:"-",bAnnotation:"Received",bColor:mr.red,bIndicator:"+",changeColor:mr.inverse,changeLineTrailingSpaceColor:Rs,commonColor:mr.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Rs,compareKeys:void 0,contextLines:V1,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:mr.yellow,printBasicPrototype:!1,truncateThreshold:MO,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Rs}}function jO(e){return e&&typeof e=="function"?e:void 0}function HO(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:V1}function xn(e={}){return{...BO(),...e,compareKeys:jO(e.compareKeys),contextLines:HO(e.contextLines)}}function Nn(e){return e.length===1&&e[0].length===0}function UO(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Ze:t+=1;break;case Ke:r+=1;break}}),{a:t,b:r}}function zO({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:a,omitAnnotationLines:l},s){if(l)return"";let u="",c="";if(a){let g=String(s.a),m=String(s.b),y=n.length-e.length,v=" ".repeat(Math.max(0,y)),b=" ".repeat(Math.max(0,-y)),E=m.length-g.length,S=" ".repeat(Math.max(0,E)),x=" ".repeat(Math.max(0,-E));u=`${v} ${r} ${S}${g}`,c=`${b} ${i} ${x}${m}`}let d=`${r} ${e}${u}`,p=`${i} ${n}${c}`;return`${t(d)}
17
+ ${o(p)}
18
+
19
+ `}function Pf(e,t,r){return zO(r,UO(e))+(r.expand?NO(e,r):kO(e,r))+(t?r.truncateAnnotationColor(`
20
+ ${r.truncateAnnotation}`):"")}function Al(e,t,r){let n=xn(r),[o,i]=q1(Nn(e)?[]:e,Nn(t)?[]:t,n);return Pf(o,i,n)}function KO(e,t,r,n,o){if(Nn(e)&&Nn(r)&&(e=[],r=[]),Nn(t)&&Nn(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return Al(e,t,o);let[i,a]=q1(r,n,o),l=0,s=0;return i.forEach(u=>{switch(u[0]){case Ze:u[1]=e[l],l+=1;break;case Ke:u[1]=t[s],s+=1;break;default:u[1]=t[s],l+=1,s+=1}}),Pf(i,a,xn(o))}function q1(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=n?Math.min(e.length,o):e.length,a=n?Math.min(t.length,o):t.length,l=i!==e.length||a!==t.length,s=(p,g)=>e[p]===t[g],u=[],c=0,d=0;for(z1(i,a,s,(p,g,m)=>{for(;c!==g;c+=1)u.push(new Ce(Ze,e[c]));for(;d!==m;d+=1)u.push(new Ce(Ke,t[d]));for(;p!==0;p-=1,c+=1,d+=1)u.push(new Ce(Ae,t[d]))});c!==i;c+=1)u.push(new Ce(Ze,e[c]));for(;d!==a;d+=1)u.push(new Ce(Ke,t[d]));return[u,l]}function fg(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}function pg(e){return e.includes(`\r
21
+ `)?`\r
22
+ `:`
23
+ `}function GO(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=e.length,a=t.length;if(n){let p=e.includes(`
24
+ `),g=t.includes(`
25
+ `),m=pg(e),y=pg(t),v=p?`${e.split(m,o).join(m)}
26
+ `:e,b=g?`${t.split(y,o).join(y)}
27
+ `:t;i=v.length,a=b.length}let l=i!==e.length||a!==t.length,s=(p,g)=>e[p]===t[g],u=0,c=0,d=[];return z1(i,a,s,(p,g,m)=>{u!==g&&d.push(new Ce(Ze,e.slice(u,g))),c!==m&&d.push(new Ce(Ke,t.slice(c,m))),u=g+p,c=m+p,d.push(new Ce(Ae,t.slice(m,c)))}),u!==i&&d.push(new Ce(Ze,e.slice(u))),c!==a&&d.push(new Ce(Ke,t.slice(c))),[d,l]}function WO(e,t,r){return t.reduce((n,o)=>n+(o[0]===Ae?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var hg=class{constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Ce(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new Ce(this.op,WO(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Ce(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(`
28
+ `)){let r=t.split(`
29
+ `),n=r.length-1;r.forEach((o,i)=>{i<n?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}},VO=class{constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=e[1].length===0;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],r=e[1];if(r.includes(`
30
+ `)){let n=r.split(`
31
+ `),o=n.length-1;n.forEach((i,a)=>{if(a===0){let l=new Ce(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else a<o?this.pushDiffCommonLine(new Ce(t,i)):i.length!==0&&this.pushDiffChangeLines(new Ce(t,i))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}};function qO(e,t){let r=new hg(Ze,t),n=new hg(Ke,t),o=new VO(r,n);return e.forEach(i=>{switch(i[0]){case Ze:r.align(i);break;case Ke:n.align(i);break;default:o.align(i)}}),o.getLines()}function YO(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Ae&&(o!==r||n[1]!==`
32
+ `))}return e.some(r=>r[0]===Ae)}function XO(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
33
+ `)||t.includes(`
34
+ `),[o,i]=Y1(n?`${e}
35
+ `:e,n?`${t}
36
+ `:t,!0,r);if(YO(o,n)){let a=xn(r),l=qO(o,a.changeColor);return Pf(l,i,a)}}return Al(e.split(`
37
+ `),t.split(`
38
+ `),r)}function Y1(e,t,r,n){let[o,i]=GO(e,t,n);return AO(o),[o,i]}function Zc(e,t){let{commonColor:r}=xn(t);return r(e)}var{AsymmetricMatcher:JO,DOMCollection:ZO,DOMElement:QO,Immutable:eR,ReactElement:tR,ReactTestComponent:rR}=Rf,X1=[rR,tR,QO,ZO,eR,JO,Rf.Error],Qc={maxDepth:20,plugins:X1},J1={callToJSON:!1,maxDepth:8,plugins:X1};function nR(e,t,r){if(Object.is(e,t))return"";let n=fg(e),o=n,i=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string"}if(o!==fg(t)){let a=function(S){return S.length<=v?S:`${S.slice(0,v)}...`},{aAnnotation:l,aColor:s,aIndicator:u,bAnnotation:c,bColor:d,bIndicator:p}=xn(r),g=ed(J1,r),m=Qt(e,g),y=Qt(t,g),v=1e5;m=a(m),y=a(y);let b=`${s(`${u} ${l}:`)}
39
+ ${m}`,E=`${d(`${p} ${c}:`)}
40
+ ${y}`;return`${b}
41
+
42
+ ${E}`}if(!i)switch(n){case"string":return Al(e.split(`
43
+ `),t.split(`
44
+ `),r);case"boolean":case"number":return oR(e,t,r);case"map":return Ds(gg(e),gg(t),r);case"set":return Ds(mg(e),mg(t),r);default:return Ds(e,t,r)}}function oR(e,t,r){let n=Qt(e,Qc),o=Qt(t,Qc);return n===o?"":Al(n.split(`
45
+ `),o.split(`
46
+ `),r)}function gg(e){return new Map(Array.from(e.entries()).sort())}function mg(e){return new Set(Array.from(e.values()).sort())}function Ds(e,t,r){let n,o=!1;try{let a=ed(Qc,r);n=yg(e,t,a,r)}catch{o=!0}let i=Zc(U1,r);if(n===void 0||n===i){let a=ed(J1,r);n=yg(e,t,a,r),n!==i&&!o&&(n=`${Zc(PO,r)}
47
+
48
+ ${n}`)}return n}function ed(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=xn(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}function yg(e,t,r,n){let o={...r,indent:0},i=Qt(e,o),a=Qt(t,o);if(i===a)return Zc(U1,n);{let l=Qt(e,r),s=Qt(t,r);return KO(l.split(`
49
+ `),s.split(`
50
+ `),i.split(`
51
+ `),a.split(`
52
+ `),n)}}var bg=2e4;function vg(e){return Xc(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Eg(e,t){let r=Xc(e),n=Xc(t);return r===n&&(r==="Object"||r==="Array")}function iR(e,t,r){let{aAnnotation:n,bAnnotation:o}=xn(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=bg&&e.length<=bg&&t!==e){if(t.includes(`
53
+ `)||e.includes(`
54
+ `))return XO(t,e,r);let[u]=Y1(t,e),c=u.some(m=>m[0]===Ae),d=aR(n,o),p=d(n)+uR(Sg(u,Ze,c)),g=d(o)+sR(Sg(u,Ke,c));return`${p}
55
+ ${g}`}let i=ig(t,{forceWritable:!0}),a=ig(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:s}=Z1(a,i);return nR(l,s,r)}function Z1(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Eg(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),M1(t).forEach(o=>{let i=t[o],a=e[o];if(vg(i))i.asymmetricMatch(a)&&(e[o]=i);else if(vg(a))a.asymmetricMatch(i)&&(t[o]=a);else if(Eg(a,i)){let l=Z1(a,i,r,n);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function aR(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var lR="·";function Q1(e){return e.replace(/\s+$/gm,t=>lR.repeat(t.length))}function sR(e){return mr.red(Q1(Zo(e)))}function uR(e){return mr.green(Q1(Zo(e)))}function Sg(e,t,r){return e.reduce((n,o)=>n+(o[0]===Ae?o[1]:o[0]===t?r?mr.inverse(o[1]):o[1]:""),"")}var cR="@@__IMMUTABLE_RECORD__@@",dR="@@__IMMUTABLE_ITERABLE__@@";function fR(e){return e&&(e[dR]||e[cR])}var pR=Object.getPrototypeOf({});function xg(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function Dr(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&Ki(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&Ki(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&Ki(()=>r.name??(r.name=e.name)),e.cause!=null&&Ki(()=>r.cause??(r.cause=Dr(e.cause,t)))),Dr(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(fR(e))return Dr(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${$O(e.sample)}`;if(typeof e.toJSON=="function")return Dr(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=Dr(n,t)}catch(i){r[o]=xg(i)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==pR;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=Dr(e[o],t)}catch(i){delete r[o],r[o]=xg(i)}}),n=Object.getPrototypeOf(n);return r}}function Ki(e){try{return e()}catch{}}function hR(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function ev(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=iR(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Zo(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Zo(n.actual,10));try{typeof n.message=="string"&&(n.message=hR(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=ev(n.cause,t,r))}catch{}try{return Dr(n)}catch(o){return Dr(new Error(`Failed to fully serialize error: ${o?.message}
56
+ Inner error message: ${n?.message}`))}}const{once:gR}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:$g,SET_CURRENT_STORY:mR,STORY_RENDER_PHASE_CHANGED:yR}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:_t}=__STORYBOOK_MODULE_GLOBAL__;var Ps=globalThis.__STORYBOOK_ADDONS_PREVIEW,bR=new Error("This function ran after the play function completed. Did you forget to `await` it?"),wg=e=>Object.prototype.toString.call(e)==="[object Object]",vR=e=>Object.prototype.toString.call(e)==="[object Module]",ER=e=>{if(!wg(e)&&!vR(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!wg(t)},SR=e=>{try{return new e.constructor}catch{return{}}},Is=()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),Cg=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},xR=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{try{this.state=_t.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{_t.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:l,renderPhase:s,isPlaying:u=!0,isDebugging:c=!1})=>{let d=this.getState(l);this.setState(l,{...Is(),...Cg(d,c),renderPhase:s||d.renderPhase,shadowCalls:c?d.shadowCalls:[],chainedCallIds:c?d.chainedCallIds:new Set,playUntil:c?d.playUntil:void 0,isPlaying:u,isDebugging:c}),this.sync(l)},t=l=>({storyId:s,playUntil:u})=>{this.getState(s).isDebugging||this.setState(s,({calls:d})=>({calls:[],shadowCalls:d.map(p=>({...p,status:"waiting"})),isDebugging:!0}));let c=this.getLog(s);this.setState(s,({shadowCalls:d})=>{if(u||!c.length)return{playUntil:u};let p=d.findIndex(g=>g.id===c[0].callId);return{playUntil:d.slice(0,p).filter(g=>g.interceptable&&!g.ancestors?.length).slice(-1)[0]?.id}}),l.emit($g,{storyId:s,isDebugging:!0})},r=l=>({storyId:s})=>{let u=this.getLog(s).filter(d=>!d.ancestors?.length),c=u.reduceRight((d,p,g)=>d>=0||p.status==="waiting"?d:g,-1);t(l)({storyId:s,playUntil:u[c-1]?.callId})},n=l=>({storyId:s,callId:u})=>{let{calls:c,shadowCalls:d,resolvers:p}=this.getState(s),g=c.find(({id:y})=>y===u),m=d.find(({id:y})=>y===u);if(!g&&m&&Object.values(p).length>0){let y=this.getLog(s).find(v=>v.status==="waiting")?.callId;m.id!==y&&this.setState(s,{playUntil:m.id}),Object.values(p).forEach(v=>v())}else t(l)({storyId:s,playUntil:u})},o=l=>({storyId:s})=>{let{resolvers:u}=this.getState(s);if(Object.values(u).length>0)Object.values(u).forEach(c=>c());else{let c=this.getLog(s).find(d=>d.status==="waiting")?.callId;c?t(l)({storyId:s,playUntil:c}):i({storyId:s})}},i=({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(s=>s())},a=({storyId:l,newPhase:s})=>{let{isDebugging:u}=this.getState(l);if(s==="preparing"&&u)return e({storyId:l,renderPhase:s,isDebugging:u});if(s==="playing")return e({storyId:l,renderPhase:s,isDebugging:u});s==="played"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1,isDebugging:!1}):s==="errored"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1}):s==="aborted"?this.setState(l,{renderPhase:s,isLocked:!0,isPlaying:!1}):this.setState(l,{renderPhase:s}),this.sync(l)};Ps&&Ps.ready().then(()=>{this.channel=Ps.getChannel(),this.channel.on($g,e),this.channel.on(yR,a),this.channel.on(mR,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(cr.START,t(this.channel)),this.channel.on(cr.BACK,r(this.channel)),this.channel.on(cr.GOTO,n(this.channel)),this.channel.on(cr.NEXT,o(this.channel)),this.channel.on(cr.END,i)})}getState(e){return this.state[e]||Is()}setState(e,t){if(e){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((t,[r,n])=>{let o=Cg(n);return o&&(t[r]=Object.assign(Is(),o)),t},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(cr.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((i,a)=>{n[a]=i});let o=new Set;return n.reduceRight((i,a)=>(a.args.forEach(l=>{l?.__callId__&&o.add(l.__callId__)}),a.path.forEach(l=>{l.__callId__&&o.add(l.__callId__)}),(a.interceptable||a.exception)&&!o.has(a.id)&&(i.unshift({callId:a.id,status:a.status,ancestors:a.ancestors}),o.add(a.id)),i),[])}instrument(e,t,r=0){if(!ER(e))return e;let{mutate:n=!1,path:o=[]}=t,i=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,i.reduce((a,l)=>{let s=wR(e,l);if(typeof s?.get=="function"){if(s.configurable){let c=()=>s?.get?.bind(e)?.();Object.defineProperty(a,l,{get:()=>this.instrument(c(),{...t,path:o.concat(l)},r)})}return a}let u=e[l];return typeof u!="function"?(a[l]=this.instrument(u,{...t,path:o.concat(l)},r),a):"__originalFn__"in u&&typeof u.__originalFn__=="function"?(a[l]=u,a):(a[l]=(...c)=>this.track(l,u,e,c,t),a[l].__originalFn__=u,Object.defineProperty(a[l],"name",{value:l,writable:!1}),Object.keys(u).length>0&&Object.assign(a[l],this.instrument({...u},{...t,path:o.concat(l)},r)),a)},n?e:SR(e))}track(e,t,r,n,o){let i=n?.[0]?.__storyId__||_t.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:a,ancestors:l}=this.getState(i);this.setState(i,{cursor:a+1});let s=`${l.slice(-1)[0]||i} [${a}] ${e}`,{path:u=[],intercept:c=!1,retain:d=!1}=o,p=typeof c=="function"?c(e,u):c,g={id:s,cursor:a,storyId:i,ancestors:l,path:u,method:e,args:n,interceptable:p,retain:d},m=(p&&!l.length?this.intercept:this.invoke).call(this,t,r,g,o);return this.instrument(m,{...o,mutate:!0,path:[{__callId__:g.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:i,playUntil:a}=this.getState(r.storyId),l=o.has(r.id);return!i||l||a?(a===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(s=>{this.setState(r.storyId,({resolvers:u})=>({isLocked:!1,resolvers:{...u,[r.id]:s}}))}).then(()=>(this.setState(r.storyId,s=>{let{[r.id]:u,...c}=s.resolvers;return{isLocked:!0,resolvers:c}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:i}=this.getState(r.storyId),a=25,l=(c,d,p)=>{if(p.includes(c))return"[Circular]";if(p=[...p,c],d>a)return"...";if(o.has(c))return o.get(c);if(c instanceof Array)return c.map(g=>l(g,++d,p));if(c instanceof Date)return{__date__:{value:c.toISOString()}};if(c instanceof Error){let{name:g,message:m,stack:y}=c;return{__error__:{name:g,message:m,stack:y}}}if(c instanceof RegExp){let{flags:g,source:m}=c;return{__regexp__:{flags:g,source:m}}}if(c instanceof _t.window?.HTMLElement){let{prefix:g,localName:m,id:y,classList:v,innerText:b}=c,E=Array.from(v);return{__element__:{prefix:g,localName:m,id:y,classNames:E,innerText:b}}}return typeof c=="function"?{__function__:{name:"getMockName"in c?c.getMockName():c.name}}:typeof c=="symbol"?{__symbol__:{description:c.description}}:typeof c=="object"&&c?.constructor?.name&&c?.constructor?.name!=="Object"?{__class__:{name:c.constructor.name}}:Object.prototype.toString.call(c)==="[object Object]"?Object.fromEntries(Object.entries(c).map(([g,m])=>[g,l(m,++d,p)])):c},s={...r,args:r.args.map(c=>l(c,0,[]))};r.path.forEach(c=>{c?.__callId__&&this.setState(r.storyId,({chainedCallIds:d})=>({chainedCallIds:new Set(Array.from(d).concat(c.__callId__))}))});let u=c=>{if(c instanceof Error){let{name:d,message:p,stack:g,callId:m=r.id}=c,{showDiff:y=void 0,diff:v=void 0,actual:b=void 0,expected:E=void 0}=c.name==="AssertionError"?ev(c):c,S={name:d,message:p,stack:g,callId:m,showDiff:y,diff:v,actual:b,expected:E};if(this.update({...s,status:"error",exception:S}),this.setState(r.storyId,x=>({callRefsByResult:new Map([...Array.from(x.callRefsByResult.entries()),[c,{__callId__:r.id,retain:r.retain}]])})),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(c,"callId")||Object.defineProperty(c,"callId",{value:r.id}),c}throw c};try{if(i==="played"&&!r.retain)throw bR;let c=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(p=>typeof p!="function"||CR(p)||Object.keys(p).length?p:(...g)=>{let{cursor:m,ancestors:y}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...y,r.id]});let v=()=>this.setState(r.storyId,{cursor:m,ancestors:y}),b=!1;try{let E=p(...g);return E instanceof Promise?(b=!0,E.finally(v)):E}finally{b||v()}}),d=e.apply(t,c);return d&&["object","function","symbol"].includes(typeof d)&&this.setState(r.storyId,p=>({callRefsByResult:new Map([...Array.from(p.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),this.update({...s,status:d instanceof Promise?"active":"done"}),d instanceof Promise?d.then(p=>(this.update({...s,status:"done"}),p),u):d}catch(c){return u(c)}}update(e){this.channel?.emit(cr.CALL,e),this.setState(e.storyId,({calls:t})=>{let r=t.concat(e).reduce((n,o)=>Object.assign(n,{[o.id]:o}),{});return{calls:Object.values(r).sort((n,o)=>n.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{let{isLocked:r,isPlaying:n}=this.getState(e),o=this.getLog(e),i=o.filter(({ancestors:u})=>!u.length).find(u=>u.status==="waiting")?.callId,a=o.some(u=>u.status==="active");if(this.detached||r||a||o.length===0){let u={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};this.channel?.emit(cr.SYNC,u);return}let l=o.some(u=>u.status==="done"||u.status==="error"),s={controlStates:{detached:this.detached,start:l,back:l,goto:!0,next:n,end:n},logItems:o,pausedAt:i};this.channel?.emit(cr.SYNC,s)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function $R(e,t={}){try{let r=!1,n=!1;return _t.window?.location?.search?.includes("instrument=true")?r=!0:_t.window?.location?.search?.includes("instrument=false")&&(n=!0),_t.window?.parent===_t.window&&!r||n?e:(_t.window&&!_t.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(_t.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new xR),(_t.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return gR.warn(r),e}}function wR(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function CR(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var _R=Er({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,i){return(function a(l,s,u){var c,d,p,g=t.call(l),m=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(u.indexOf(l)>-1&&u.indexOf(s)>-1)return!0;if(u.push(l,s),g!=m||(c=n(l),d=n(s),c.length!=d.length||c.some(function(y){return!a(l[y],s[y],u)})))return!1;switch(g.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":c=l.entries(),d=s.entries();do if(!a((p=c.next()).value,d.next().value,u))return!1;while(!p.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=s.length)return!1;for(p=0;p<l.length;p++)if((p in l||p in s)&&(p in l!=p in s||!a(l[p],s[p],u)))return!1;return!0;case"Object":return a(r(l),r(s),u);default:return!1}})(o,i,[])}})()}}),_g=vt(_R(),1),tv=e=>e.map(t=>typeof t<"u").filter(Boolean).length,TR=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:i}=e;if(tv([r,n,o,i])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,_g.isEqual)(t,n);if(typeof o<"u")return!(0,_g.isEqual)(t,o);if(typeof r<"u"){let a=typeof t<"u";return r?a:!a}return typeof i>"u"||i?!!t:!t},AR=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(tv([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let i=n?t[n]:r[o];return TR(e.if,i)},OR={};Ve(OR,{argsEnhancers:()=>PR});var rv=(e,t)=>typeof t[e]>"u"&&!(e in t),RR=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let i=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([a])=>!!i.test(a)).reduce((a,[l,s])=>(rv(l,t)&&(a[l]=gf(l,{implicit:!0,id:n})),a),{})},DR=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([o,i])=>!!i.action).reduce((o,[i,a])=>(rv(i,t)&&(o[i]=gf(typeof a.action=="string"?a.action:i)),o),{})},PR=[DR,RR],IR={};Ve(IR,{loaders:()=>kR});const{onMockCall:FR}=__STORYBOOK_MODULE_TEST__;var Tg=!1,LR=e=>{let{parameters:t}=e;t?.actions?.disable||Tg||(FR((r,n)=>{let o=r.getMockName();o!=="spy"&&o!=="vi.fn()"&&(!/^next\/.*::/.test(o)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/link::Link","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(i=>o.startsWith(i)))&&gf(o)(n)}),Tg=!0)},kR=[LR];const{useEffect:Ag}=__STORYBOOK_MODULE_PREVIEW_API__;var{document:Mt}=globalThis,NR=()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,Og=e=>{(Array.isArray(e)?e:[e]).forEach(MR)},MR=e=>{if(!Mt)return;let t=Mt.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},BR=(e,t)=>{if(!Mt)return;let r=Mt.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Mt.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Mt.head.appendChild(n)}},jR=(e,t,r)=>{if(!Mt)return;let n=Mt.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let o=Mt.createElement("style");o.setAttribute("id",e),o.innerHTML=t;let i=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,a=Mt.getElementById(i);a?a.parentElement?.insertBefore(o,a):Mt.head.appendChild(o)}},HR={cellSize:100,cellAmount:10,opacity:.8},Rg="addon-backgrounds",Dg="addon-backgrounds-grid",UR=NR()?"":"transition: background-color 0.3s;",zR=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:i}=t,{options:a=$T,disable:l,grid:s=HR}=n[Ih]||{},u=r[Ih]||{},c=typeof u=="string"?u:u?.value,d=c?a[c]:void 0,p=typeof d=="string"?d:d?.value||"transparent",g=typeof u=="string"?!1:u.grid||!1,m=!!d&&!l,y=o==="docs"?`#anchor--${i} .docs-story, #anchor--primary--${i} .docs-story`:".sb-show-main",v=o==="docs"?`#anchor--${i} .docs-story, #anchor--primary--${i} .docs-story`:".sb-show-main",b=n.layout===void 0||n.layout==="padded",E=o==="docs"?20:b?16:0,{cellAmount:S,cellSize:x,opacity:A,offsetX:w=E,offsetY:C=E}=s,R=o==="docs"?`${Rg}-docs-${i}`:`${Rg}-color`,L=o==="docs"?i:null;Ag(()=>{let T=`
57
+ ${y} {
58
+ background: ${p} !important;
59
+ ${UR}
60
+ }`;if(!m){Og(R);return}jR(R,T,L)},[y,R,L,m,p]);let I=o==="docs"?`${Dg}-docs-${i}`:`${Dg}`;return Ag(()=>{if(!g){Og(I);return}let T=[`${x*S}px ${x*S}px`,`${x*S}px ${x*S}px`,`${x}px ${x}px`,`${x}px ${x}px`].join(", "),M=`
61
+ ${v} {
62
+ background-size: ${T} !important;
63
+ background-position: ${w}px ${C}px, ${w}px ${C}px, ${w}px ${C}px, ${w}px ${C}px !important;
64
+ background-blend-mode: difference !important;
65
+ background-image: linear-gradient(rgba(130, 130, 130, ${A}) 1px, transparent 1px),
66
+ linear-gradient(90deg, rgba(130, 130, 130, ${A}) 1px, transparent 1px),
67
+ linear-gradient(rgba(130, 130, 130, ${A/2}) 1px, transparent 1px),
68
+ linear-gradient(90deg, rgba(130, 130, 130, ${A/2}) 1px, transparent 1px) !important;
69
+ }
70
+ `;BR(I,M)},[S,x,v,I,g,w,C,A]),e()};globalThis.FEATURES?.backgrounds;var{step:LJ}=$R({step:async(e,t,r)=>t(r)},{intercept:!0});const{addons:Pg}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:KR}=__STORYBOOK_MODULE_CORE_EVENTS__;var Ig={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},GR="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),Ne=(e,t={},r)=>{let n=GR.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,i])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",i),n.addEventListener("keydown",a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),i())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",i),o==="onMouseLeave"&&n.addEventListener("mouseleave",i)):n.setAttribute(o,i)}),r?.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},Gi=e=>Ig[e]&&Ne("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},Ig[e].map(t=>Ne("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),WR=e=>{if("elements"in e){let{elements:n,color:o,style:i}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${i} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},VR=e=>e instanceof Function,_o=new Map,Wr=new Map,Wi=new Map,fr=e=>{let t=Symbol();return Wr.set(t,[]),_o.set(t,e),{get:()=>_o.get(t),set:r=>{let n=_o.get(t),o=VR(r)?r(n):r;o!==n&&(_o.set(t,o),Wr.get(t)?.forEach(i=>{Wi.get(i)?.(),Wi.set(i,i(o))}))},subscribe:r=>(Wr.get(t)?.push(r),()=>{let n=Wr.get(t);n&&Wr.set(t,n.filter(o=>o!==r))}),teardown:()=>{Wr.get(t)?.forEach(r=>{Wi.get(r)?.(),Wi.delete(r)}),Wr.delete(t),_o.delete(t)}}},Fg=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let i of n.selectors){let a=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(i)||[]];for(let l of a){let s=r.get(l);(!s||s.priority<=o)&&r.set(l,{...n,priority:o,selectors:Array.from(new Set((s?.selectors||[]).concat(i)))})}}}return r},qR=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a}])=>{let{top:l,left:s,width:u,height:c}=t.getBoundingClientRect(),{position:d}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a,top:d==="fixed"?l:l+window.scrollY,left:d==="fixed"?s:s+window.scrollX,width:u,height:c}}).sort((t,r)=>r.width*r.height-t.width*t.height),Lg=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},kg=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:i,height:a}=e;a<Or&&(o=o-Math.round((Or-a)/2),a=Or),i<Or&&(n=n-Math.round((Or-i)/2),i=Or),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:l,y:s}=r;return l>=n&&l<=n+i&&s>=o&&s<=o+a},YR=(e,t,r={})=>{let{x:n,y:o}=t,{margin:i=5,topOffset:a=0,centered:l=!1}=r,{scrollX:s,scrollY:u,innerHeight:c,innerWidth:d}=window,p=Math.min(e.style.position==="fixed"?o-u:o,c-e.clientHeight-i-a+u),g=l?e.clientWidth/2:0,m=e.style.position==="fixed"?Math.max(Math.min(n-s,d-g-i),g+i):Math.max(Math.min(n,d-g-i+s),g+i+s);Object.assign(e.style,{...m!==n&&{left:`${m}px`},...p!==o&&{top:`${p}px`}})},Ng=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},XR=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},JR=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),xe="storybook-highlights-menu",Mg="storybook-highlights-root",ZR="storybook-root",QR=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=fr([]),n=fr(new Map),o=fr([]),i=fr(),a=fr(),l=fr([]),s=fr([]),u=fr(),c=fr(),d=t.getElementById(Mg);r.subscribe(()=>{d||(d=Ne("div",{id:Mg}),t.body.appendChild(d))}),r.subscribe(C=>{let R=t.getElementById(ZR);if(!R)return;n.set(Fg(C));let L=new MutationObserver(()=>n.set(Fg(C)));return L.observe(R,{subtree:!0,childList:!0}),()=>{L.disconnect()}}),n.subscribe(C=>{let R=()=>requestAnimationFrame(()=>o.set(qR(C))),L=new ResizeObserver(R);L.observe(t.body),Array.from(C.keys()).forEach(T=>L.observe(T));let I=Array.from(t.body.querySelectorAll("*")).filter(T=>{let{overflow:M,overflowX:H,overflowY:$}=window.getComputedStyle(T);return["auto","scroll"].some(_=>[M,H,$].includes(_))});return I.forEach(T=>T.addEventListener("scroll",R)),()=>{L.disconnect(),I.forEach(T=>T.removeEventListener("scroll",R))}}),n.subscribe(C=>{let R=Array.from(C.keys()).filter(({style:I})=>I.position==="sticky"),L=()=>requestAnimationFrame(()=>{o.set(I=>I.map(T=>{if(R.includes(T.element)){let{top:M,left:H}=T.element.getBoundingClientRect();return{...T,top:M+window.scrollY,left:H+window.scrollX}}return T}))});return t.addEventListener("scroll",L),()=>t.removeEventListener("scroll",L)}),n.subscribe(C=>{l.set(R=>R.filter(({element:L})=>C.has(L)))}),l.subscribe(C=>{C.length?(c.set(R=>C.some(L=>L.element===R?.element)?R:void 0),u.set(R=>C.some(L=>L.element===R?.element)?R:void 0)):(c.set(void 0),u.set(void 0),i.set(void 0))});let p=new Map(new Map);r.subscribe(C=>{C.forEach(({keyframes:R})=>{if(R){let L=p.get(R);L||(L=t.createElement("style"),L.setAttribute("data-highlight","keyframes"),p.set(R,L),t.head.appendChild(L)),L.innerHTML=R}}),p.forEach((R,L)=>{C.some(I=>I.keyframes===L)||(R.remove(),p.delete(L))})});let g=new Map(new Map);o.subscribe(C=>{C.forEach(R=>{let L=g.get(R.element);if(d&&!L){let I={popover:"manual","data-highlight-dimensions":`w${R.width.toFixed(0)}h${R.height.toFixed(0)}`,"data-highlight-coordinates":`x${R.left.toFixed(0)}y${R.top.toFixed(0)}`};L=d.appendChild(Ne("div",I,[Ne("div")])),g.set(R.element,L)}}),g.forEach((R,L)=>{C.some(({element:I})=>I===L)||(R.remove(),g.delete(L))})}),o.subscribe(C=>{let R=C.filter(I=>I.menu);if(!R.length)return;let L=I=>{requestAnimationFrame(()=>{let T=t.getElementById(xe),M={x:I.pageX,y:I.pageY};if(T&&!Lg(T,M)){let H=R.filter($=>{let _=g.get($.element);return kg($,_,M)});i.set(H.length?M:void 0),l.set(H)}})};return t.addEventListener("click",L),()=>t.removeEventListener("click",L)});let m=()=>{let C=t.getElementById(xe),R=a.get();!R||C&&Lg(C,R)||s.set(L=>{let I=o.get().filter($=>{let _=g.get($.element);return kg($,_,R)}),T=L.filter($=>I.includes($)),M=I.filter($=>!L.includes($)),H=L.length-T.length;return M.length||H?[...T,...M]:L})};a.subscribe(m),o.subscribe(m);let y=()=>{let C=c.get(),R=C?[C]:l.get(),L=R.length===1?R[0]:u.get(),I=i.get()!==void 0;o.get().forEach(T=>{let M=g.get(T.element);if(M){let H=L===T,$=I?L?H:R.includes(T):s.get()?.includes(T);Object.assign(M.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...T.styles,...$?T.hoverStyles:{},...H?T.focusStyles:{},position:getComputedStyle(T.element).position==="fixed"?"fixed":"absolute",zIndex:Ph-10,top:`${T.top}px`,left:`${T.left}px`,width:`${T.width}px`,height:`${T.height}px`,margin:0,padding:0,cursor:T.menu&&$?"pointer":"default",pointerEvents:T.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(M.children[0].style,{width:"100%",height:"100%",minHeight:`${Or}px`,minWidth:`${Or}px`,boxSizing:"content-box",padding:M.style.outlineWidth||"0px"}),Ng(M)}})};o.subscribe(y),l.subscribe(y),s.subscribe(y),u.subscribe(y),c.subscribe(y);let v=()=>{if(!d)return;let C=t.getElementById(xe);if(C)C.innerHTML="";else{let T={id:xe,popover:"manual"};C=d.appendChild(Ne("div",T)),d.appendChild(Ne("style",{},[`
71
+ #${xe} {
72
+ position: absolute;
73
+ z-index: ${Ph};
74
+ width: 300px;
75
+ padding: 0px;
76
+ margin: 15px 0 0 0;
77
+ transform: translateX(-50%);
78
+ font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
79
+ font-size: 12px;
80
+ background: white;
81
+ border: none;
82
+ border-radius: 6px;
83
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
84
+ color: #2E3438;
85
+ }
86
+ #${xe} ul {
87
+ list-style: none;
88
+ margin: 0;
89
+ padding: 0;
90
+ }
91
+ #${xe} > ul {
92
+ max-height: 300px;
93
+ overflow-y: auto;
94
+ padding: 4px 0;
95
+ }
96
+ #${xe} li {
97
+ padding: 0 4px;
98
+ margin: 0;
99
+ }
100
+ #${xe} li > :not(ul) {
101
+ display: flex;
102
+ padding: 8px;
103
+ margin: 0;
104
+ align-items: center;
105
+ gap: 8px;
106
+ border-radius: 4px;
107
+ }
108
+ #${xe} button {
109
+ width: 100%;
110
+ border: 0;
111
+ background: transparent;
112
+ color: inherit;
113
+ text-align: left;
114
+ font-family: inherit;
115
+ font-size: inherit;
116
+ }
117
+ #${xe} button:focus-visible {
118
+ outline-color: #029CFD;
119
+ }
120
+ #${xe} button:hover {
121
+ background: rgba(2, 156, 253, 0.07);
122
+ color: #029CFD;
123
+ cursor: pointer;
124
+ }
125
+ #${xe} li code {
126
+ white-space: nowrap;
127
+ overflow: hidden;
128
+ text-overflow: ellipsis;
129
+ line-height: 16px;
130
+ font-size: 11px;
131
+ }
132
+ #${xe} li svg {
133
+ flex-shrink: 0;
134
+ margin: 1px;
135
+ color: #73828C;
136
+ }
137
+ #${xe} li > button:hover svg, #${xe} li > button:focus-visible svg {
138
+ color: #029CFD;
139
+ }
140
+ #${xe} .element-list li svg {
141
+ display: none;
142
+ }
143
+ #${xe} li.selectable svg, #${xe} li.selected svg {
144
+ display: block;
145
+ }
146
+ #${xe} .menu-list {
147
+ border-top: 1px solid rgba(38, 85, 115, 0.15);
148
+ }
149
+ #${xe} .menu-list > li:not(:last-child) {
150
+ padding-bottom: 4px;
151
+ margin-bottom: 4px;
152
+ border-bottom: 1px solid rgba(38, 85, 115, 0.15);
153
+ }
154
+ #${xe} .menu-items, #${xe} .menu-items li {
155
+ padding: 0;
156
+ }
157
+ #${xe} .menu-item {
158
+ display: flex;
159
+ }
160
+ #${xe} .menu-item-content {
161
+ display: flex;
162
+ flex-direction: column;
163
+ flex-grow: 1;
164
+ }
165
+ `]))}let R=c.get(),L=R?[R]:l.get();if(L.length&&(C.style.position=getComputedStyle(L[0].element).position==="fixed"?"fixed":"absolute",C.appendChild(Ne("ul",{class:"element-list"},L.map(T=>{let M=L.length>1&&!!T.menu?.some(_=>_.some(O=>!O.selectors||O.selectors.some(P=>T.selectors.includes(P)))),H=M?{class:"selectable",onClick:()=>c.set(T),onMouseEnter:()=>u.set(T),onMouseLeave:()=>u.set(void 0)}:R?{class:"selected",onClick:()=>c.set(void 0)}:{},$=M||R;return Ne("li",H,[Ne($?"button":"div",$?{type:"button"}:{},[R?Gi("chevronLeft"):null,Ne("code",{},[T.element.outerHTML]),M?Gi("chevronRight"):null])])})))),c.get()||l.get().length===1){let T=c.get()||l.get()[0],M=T.menu?.filter(H=>H.some($=>!$.selectors||$.selectors.some(_=>T.selectors.includes(_))));M?.length&&C.appendChild(Ne("ul",{class:"menu-list"},M.map(H=>Ne("li",{},[Ne("ul",{class:"menu-items"},H.map(({id:$,title:_,description:O,iconLeft:P,iconRight:k,clickEvent:B})=>{let N=B&&(()=>e.emit(B,$,JR(T)));return Ne("li",{},[Ne(N?"button":"div",N?{class:"menu-item",type:"button",onClick:N}:{class:"menu-item"},[P?Gi(P):null,Ne("div",{class:"menu-item-content"},[Ne(O?"strong":"span",{},[_]),O&&Ne("span",{},[O])]),k?Gi(k):null])])}))]))))}let I=i.get();I?(Object.assign(C.style,{display:"block",left:`${C.style.position==="fixed"?I.x-window.scrollX:I.x}px`,top:`${C.style.position==="fixed"?I.y-window.scrollY:I.y}px`}),Ng(C),requestAnimationFrame(()=>YR(C,I,{topOffset:15,centered:!0}))):(XR(C),Object.assign(C.style,{display:"none"}))};l.subscribe(v),c.subscribe(v);let b=C=>{let R=WR(C);r.set(L=>{let I=R.id?L.filter(T=>T.id!==R.id):L;return R.selectors?.length?[...I,R]:I})},E=C=>{C&&r.set(R=>R.filter(L=>L.id!==C))},S=()=>{r.set([]),n.set(new Map),o.set([]),i.set(void 0),a.set(void 0),l.set([]),s.set([]),u.set(void 0),c.set(void 0)},x,A=(C,R)=>{let L="scrollIntoView-highlight";clearTimeout(x),E(L);let I=t.querySelector(C);if(!I){console.warn(`Cannot scroll into view: ${C} not found`);return}I.scrollIntoView({behavior:"smooth",block:"center",...R});let T=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(M=>[...M,{id:L,priority:1e3,selectors:[C],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${T} 3s linear forwards`},keyframes:`@keyframes ${T} {
166
+ 0% { outline: 2px solid #1EA7FD; }
167
+ 20% { outline: 2px solid #1EA7FD00; }
168
+ 40% { outline: 2px solid #1EA7FD; }
169
+ 60% { outline: 2px solid #1EA7FD00; }
170
+ 80% { outline: 2px solid #1EA7FD; }
171
+ 100% { outline: 2px solid #1EA7FD00; }
172
+ }`}]),x=setTimeout(()=>E(L),3500)},w=C=>{requestAnimationFrame(()=>a.set({x:C.pageX,y:C.pageY}))};t.body.addEventListener("mousemove",w),e.on(vT,b),e.on(ET,E),e.on(ST,S),e.on(xT,A),e.on(KR,({newPhase:C})=>{C==="loading"&&S()})};globalThis?.FEATURES?.highlight&&Pg?.ready&&Pg.ready().then(QR);const{useEffect:Bg}=__STORYBOOK_MODULE_PREVIEW_API__,{global:qa}=__STORYBOOK_MODULE_GLOBAL__;function nv(){let e=qa.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function e5(){let e=qa.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");Vc(t!=null);let{width:r,height:n}=nv();return td(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",qa.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function td(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=qa.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var Me={};function t5(){Me.canvas||(Me=e5())}function ov(){Me.context&&Me.context.clearRect(0,0,Me.width??0,Me.height??0)}function r5(e){ov(),e(Me.context)}function n5(){Vc(Me.canvas),Vc(Me.context),td(Me.canvas,Me.context,{width:0,height:0});let{width:e,height:t}=nv();td(Me.canvas,Me.context,{width:e,height:t}),Me.width=e,Me.height=t}function o5(){Me.canvas&&(ov(),Me.canvas.parentNode?.removeChild(Me.canvas),Me={})}const{global:Nt}=__STORYBOOK_MODULE_GLOBAL__;var Rn={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},br=6;function jg(e,{x:t,y:r,w:n,h:o,r:i}){t=t-n/2,r=r-o/2,n<2*i&&(i=n/2),o<2*i&&(i=o/2),e.beginPath(),e.moveTo(t+i,r),e.arcTo(t+n,r,t+n,r+o,i),e.arcTo(t+n,r+o,t,r+o,i),e.arcTo(t,r+o,t,r,i),e.arcTo(t,r,t+n,r,i),e.closePath()}function i5(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom,u=a+r.left+t.left,c=i+r.top+t.top;return e==="top"?u+=l/2:e==="right"?(u+=l,c+=s/2):e==="bottom"?(u+=l/2,c+=s):e==="left"?c+=s/2:e==="center"&&(u+=l/2,c+=s/2),{x:u,y:c}}function a5(e,t,{margin:r,border:n,padding:o},i,a){let l=p=>0,s=0,u=0,c=a?1:.5,d=a?i*2:0;return e==="padding"?l=p=>o[p]*c+d:e==="border"?l=p=>o[p]+n[p]*c+d:e==="margin"&&(l=p=>o[p]+n[p]+r[p]*c+d),t==="top"?u=-l("top"):t==="right"?s=l("right"):t==="bottom"?u=l("bottom"):t==="left"&&(s=-l("left")),{offsetX:s,offsetY:u}}function l5(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function s5(e,t,r){return e==="top"?t.y=r.y-r.h-br:e==="right"?t.x=r.x+r.w/2+br+t.w/2:e==="bottom"?t.y=r.y+r.h+br:e==="left"&&(t.x=r.x-r.w/2-br-t.w/2),{x:t.x,y:t.y}}function iv(e,t,{x:r,y:n,w:o,h:i},a){return jg(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Rn[t]}dd`,e.fill(),e.strokeStyle=Rn[t],e.stroke(),e.fillStyle=Rn.text,e.fillText(a,r,n),jg(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Rn[t]}dd`,e.fill(),e.strokeStyle=Rn[t],e.stroke(),e.fillStyle=Rn.text,e.fillText(a,r,n),{x:r,y:n,w:o,h:i}}function av(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,o=r.width+br*2,i=n+br*2;return{w:o,h:i}}function u5(e,t,{type:r,position:n="center",text:o},i,a=!1){let{x:l,y:s}=i5(n,t),{offsetX:u,offsetY:c}=a5(r,n,t,br+1,a);l+=u,s+=c;let{w:d,h:p}=av(e,o);if(i&&l5({x:l,y:s,w:d,h:p},i)){let g=s5(n,{x:l,y:s,w:d},i);l=g.x,s=g.y}return iv(e,r,{x:l,y:s,w:d,h:p},o)}function c5(e,{w:t,h:r}){let n=t*.5+br,o=r*.5+br;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}function d5(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:i}=t,a=i[o.x],l=i[o.y],{w:s,h:u}=av(e,n),{offsetX:c,offsetY:d}=c5(o,{w:s,h:u});return a+=c,l+=d,iv(e,r,{x:a,y:l,w:s,h:u},n)}function To(e,t,r,n){let o=[];r.forEach((i,a)=>{let l=n&&i.position==="center"?d5(e,t,i):u5(e,t,i,o[a-1],n);o[a]=l})}function f5(e,t,r,n){let o=r.reduce((i,a)=>(Object.prototype.hasOwnProperty.call(i,a.position)||(i[a.position]=[]),i[a.position]?.push(a),i),{});o.top&&To(e,t,o.top,n),o.right&&To(e,t,o.right,n),o.bottom&&To(e,t,o.bottom,n),o.left&&To(e,t,o.left,n),o.center&&To(e,t,o.center,n)}var Ol={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},Hg=30;function $t(e){return parseInt(e.replace("px",""),10)}function Mn(e){return Number.isInteger(e)?e:e.toFixed(2)}function If(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function p5(e){let t={top:Nt.window.scrollY,bottom:Nt.window.scrollY+Nt.window.innerHeight,left:Nt.window.scrollX,right:Nt.window.scrollX+Nt.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}function h5(e){let t=Nt.getComputedStyle(e),{top:r,left:n,right:o,bottom:i,width:a,height:l}=e.getBoundingClientRect(),{marginTop:s,marginBottom:u,marginLeft:c,marginRight:d,paddingTop:p,paddingBottom:g,paddingLeft:m,paddingRight:y,borderBottomWidth:v,borderTopWidth:b,borderLeftWidth:E,borderRightWidth:S}=t;r=r+Nt.window.scrollY,n=n+Nt.window.scrollX,i=i+Nt.window.scrollY,o=o+Nt.window.scrollX;let x={top:$t(s),bottom:$t(u),left:$t(c),right:$t(d)},A={top:$t(p),bottom:$t(g),left:$t(m),right:$t(y)},w={top:$t(b),bottom:$t(v),left:$t(E),right:$t(S)},C={top:r-x.top,bottom:i+x.bottom,left:n-x.left,right:o+x.right};return{margin:x,padding:A,border:w,top:r,left:n,bottom:i,right:o,width:a,height:l,extremities:C,floatingAlignment:p5(C)}}function g5(e,{margin:t,width:r,height:n,top:o,left:i,bottom:a,right:l}){let s=n+t.bottom+t.top;e.fillStyle=Ol.margin,e.fillRect(i,o-t.top,r,t.top),e.fillRect(l,o-t.top,t.right,s),e.fillRect(i,a,r,t.bottom),e.fillRect(i-t.left,o-t.top,t.left,s);let u=[{type:"margin",text:Mn(t.top),position:"top"},{type:"margin",text:Mn(t.right),position:"right"},{type:"margin",text:Mn(t.bottom),position:"bottom"},{type:"margin",text:Mn(t.left),position:"left"}];return If(u)}function m5(e,{padding:t,border:r,width:n,height:o,top:i,left:a,bottom:l,right:s}){let u=n-r.left-r.right,c=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=Ol.padding,e.fillRect(a+r.left,i+r.top,u,t.top),e.fillRect(s-t.right-r.right,i+t.top+r.top,t.right,c),e.fillRect(a+r.left,l-t.bottom-r.bottom,u,t.bottom),e.fillRect(a+r.left,i+t.top+r.top,t.left,c);let d=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return If(d)}function y5(e,{border:t,width:r,height:n,top:o,left:i,bottom:a,right:l}){let s=n-t.top-t.bottom;e.fillStyle=Ol.border,e.fillRect(i,o,r,t.top),e.fillRect(i,a-t.bottom,r,t.bottom),e.fillRect(i,o+t.top,t.left,s),e.fillRect(l-t.right,o+t.top,t.right,s);let u=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return If(u)}function b5(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=Ol.content,e.fillRect(a+r.left+t.left,i+r.top+t.top,l,s),[{type:"content",position:"center",text:`${Mn(l)} x ${Mn(s)}`}]}function v5(e){return t=>{if(e&&t){let r=h5(e),n=g5(t,r),o=m5(t,r),i=y5(t,r),a=b5(t,r),l=r.width<=Hg*3||r.height<=Hg;f5(t,r,[...a,...o,...i,...n],l)}}}function E5(e){r5(v5(e))}const{global:S5}=__STORYBOOK_MODULE_GLOBAL__;var x5=(e,t)=>{let r=S5.document.elementFromPoint(e,t),n=o=>{if(o&&o.shadowRoot){let i=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(i)?o:i.shadowRoot?n(i):i}return o};return n(r)||r},Ug,Vi={x:0,y:0};function zg(e,t){Ug=x5(e,t),E5(Ug)}var $5=(e,t)=>{let{measureEnabled:r}=t.globals||{},n=r&&!t.parameters?.measure?.disable;return Bg(()=>{if(typeof globalThis.document>"u")return;let o=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),Vi.x=i.clientX,Vi.y=i.clientY})};return globalThis.document.addEventListener("pointermove",o),()=>{globalThis.document.removeEventListener("pointermove",o)}},[]),Bg(()=>{let o=a=>{window.requestAnimationFrame(()=>{a.stopPropagation(),zg(a.clientX,a.clientY)})},i=()=>{window.requestAnimationFrame(()=>{n5()})};return t.viewMode==="story"&&n&&(globalThis.document.addEventListener("pointerover",o),t5(),globalThis.window.addEventListener("resize",i),zg(Vi.x,Vi.y)),()=>{globalThis.window.removeEventListener("resize",i),o5()}},[n,t.viewMode]),e()};globalThis.FEATURES?.measure;const{useEffect:w5,useMemo:C5}=__STORYBOOK_MODULE_PREVIEW_API__,{global:va}=__STORYBOOK_MODULE_GLOBAL__;var Kg=e=>{(Array.isArray(e)?e:[e]).forEach(_5)},_5=e=>{let t=typeof e=="string"?e:e.join(""),r=va.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},T5=(e,t)=>{let r=va.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=va.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,va.document.head.appendChild(n)}};function A5(e){return Tt`
173
+ ${e} body {
174
+ outline: 1px solid #2980b9 !important;
175
+ }
176
+
177
+ ${e} article {
178
+ outline: 1px solid #3498db !important;
179
+ }
180
+
181
+ ${e} nav {
182
+ outline: 1px solid #0088c3 !important;
183
+ }
184
+
185
+ ${e} aside {
186
+ outline: 1px solid #33a0ce !important;
187
+ }
188
+
189
+ ${e} section {
190
+ outline: 1px solid #66b8da !important;
191
+ }
192
+
193
+ ${e} header {
194
+ outline: 1px solid #99cfe7 !important;
195
+ }
196
+
197
+ ${e} footer {
198
+ outline: 1px solid #cce7f3 !important;
199
+ }
200
+
201
+ ${e} h1 {
202
+ outline: 1px solid #162544 !important;
203
+ }
204
+
205
+ ${e} h2 {
206
+ outline: 1px solid #314e6e !important;
207
+ }
208
+
209
+ ${e} h3 {
210
+ outline: 1px solid #3e5e85 !important;
211
+ }
212
+
213
+ ${e} h4 {
214
+ outline: 1px solid #449baf !important;
215
+ }
216
+
217
+ ${e} h5 {
218
+ outline: 1px solid #c7d1cb !important;
219
+ }
220
+
221
+ ${e} h6 {
222
+ outline: 1px solid #4371d0 !important;
223
+ }
224
+
225
+ ${e} main {
226
+ outline: 1px solid #2f4f90 !important;
227
+ }
228
+
229
+ ${e} address {
230
+ outline: 1px solid #1a2c51 !important;
231
+ }
232
+
233
+ ${e} div {
234
+ outline: 1px solid #036cdb !important;
235
+ }
236
+
237
+ ${e} p {
238
+ outline: 1px solid #ac050b !important;
239
+ }
240
+
241
+ ${e} hr {
242
+ outline: 1px solid #ff063f !important;
243
+ }
244
+
245
+ ${e} pre {
246
+ outline: 1px solid #850440 !important;
247
+ }
248
+
249
+ ${e} blockquote {
250
+ outline: 1px solid #f1b8e7 !important;
251
+ }
252
+
253
+ ${e} ol {
254
+ outline: 1px solid #ff050c !important;
255
+ }
256
+
257
+ ${e} ul {
258
+ outline: 1px solid #d90416 !important;
259
+ }
260
+
261
+ ${e} li {
262
+ outline: 1px solid #d90416 !important;
263
+ }
264
+
265
+ ${e} dl {
266
+ outline: 1px solid #fd3427 !important;
267
+ }
268
+
269
+ ${e} dt {
270
+ outline: 1px solid #ff0043 !important;
271
+ }
272
+
273
+ ${e} dd {
274
+ outline: 1px solid #e80174 !important;
275
+ }
276
+
277
+ ${e} figure {
278
+ outline: 1px solid #ff00bb !important;
279
+ }
280
+
281
+ ${e} figcaption {
282
+ outline: 1px solid #bf0032 !important;
283
+ }
284
+
285
+ ${e} table {
286
+ outline: 1px solid #00cc99 !important;
287
+ }
288
+
289
+ ${e} caption {
290
+ outline: 1px solid #37ffc4 !important;
291
+ }
292
+
293
+ ${e} thead {
294
+ outline: 1px solid #98daca !important;
295
+ }
296
+
297
+ ${e} tbody {
298
+ outline: 1px solid #64a7a0 !important;
299
+ }
300
+
301
+ ${e} tfoot {
302
+ outline: 1px solid #22746b !important;
303
+ }
304
+
305
+ ${e} tr {
306
+ outline: 1px solid #86c0b2 !important;
307
+ }
308
+
309
+ ${e} th {
310
+ outline: 1px solid #a1e7d6 !important;
311
+ }
312
+
313
+ ${e} td {
314
+ outline: 1px solid #3f5a54 !important;
315
+ }
316
+
317
+ ${e} col {
318
+ outline: 1px solid #6c9a8f !important;
319
+ }
320
+
321
+ ${e} colgroup {
322
+ outline: 1px solid #6c9a9d !important;
323
+ }
324
+
325
+ ${e} button {
326
+ outline: 1px solid #da8301 !important;
327
+ }
328
+
329
+ ${e} datalist {
330
+ outline: 1px solid #c06000 !important;
331
+ }
332
+
333
+ ${e} fieldset {
334
+ outline: 1px solid #d95100 !important;
335
+ }
336
+
337
+ ${e} form {
338
+ outline: 1px solid #d23600 !important;
339
+ }
340
+
341
+ ${e} input {
342
+ outline: 1px solid #fca600 !important;
343
+ }
344
+
345
+ ${e} keygen {
346
+ outline: 1px solid #b31e00 !important;
347
+ }
348
+
349
+ ${e} label {
350
+ outline: 1px solid #ee8900 !important;
351
+ }
352
+
353
+ ${e} legend {
354
+ outline: 1px solid #de6d00 !important;
355
+ }
356
+
357
+ ${e} meter {
358
+ outline: 1px solid #e8630c !important;
359
+ }
360
+
361
+ ${e} optgroup {
362
+ outline: 1px solid #b33600 !important;
363
+ }
364
+
365
+ ${e} option {
366
+ outline: 1px solid #ff8a00 !important;
367
+ }
368
+
369
+ ${e} output {
370
+ outline: 1px solid #ff9619 !important;
371
+ }
372
+
373
+ ${e} progress {
374
+ outline: 1px solid #e57c00 !important;
375
+ }
376
+
377
+ ${e} select {
378
+ outline: 1px solid #e26e0f !important;
379
+ }
380
+
381
+ ${e} textarea {
382
+ outline: 1px solid #cc5400 !important;
383
+ }
384
+
385
+ ${e} details {
386
+ outline: 1px solid #33848f !important;
387
+ }
388
+
389
+ ${e} summary {
390
+ outline: 1px solid #60a1a6 !important;
391
+ }
392
+
393
+ ${e} command {
394
+ outline: 1px solid #438da1 !important;
395
+ }
396
+
397
+ ${e} menu {
398
+ outline: 1px solid #449da6 !important;
399
+ }
400
+
401
+ ${e} del {
402
+ outline: 1px solid #bf0000 !important;
403
+ }
404
+
405
+ ${e} ins {
406
+ outline: 1px solid #400000 !important;
407
+ }
408
+
409
+ ${e} img {
410
+ outline: 1px solid #22746b !important;
411
+ }
412
+
413
+ ${e} iframe {
414
+ outline: 1px solid #64a7a0 !important;
415
+ }
416
+
417
+ ${e} embed {
418
+ outline: 1px solid #98daca !important;
419
+ }
420
+
421
+ ${e} object {
422
+ outline: 1px solid #00cc99 !important;
423
+ }
424
+
425
+ ${e} param {
426
+ outline: 1px solid #37ffc4 !important;
427
+ }
428
+
429
+ ${e} video {
430
+ outline: 1px solid #6ee866 !important;
431
+ }
432
+
433
+ ${e} audio {
434
+ outline: 1px solid #027353 !important;
435
+ }
436
+
437
+ ${e} source {
438
+ outline: 1px solid #012426 !important;
439
+ }
440
+
441
+ ${e} canvas {
442
+ outline: 1px solid #a2f570 !important;
443
+ }
444
+
445
+ ${e} track {
446
+ outline: 1px solid #59a600 !important;
447
+ }
448
+
449
+ ${e} map {
450
+ outline: 1px solid #7be500 !important;
451
+ }
452
+
453
+ ${e} area {
454
+ outline: 1px solid #305900 !important;
455
+ }
456
+
457
+ ${e} a {
458
+ outline: 1px solid #ff62ab !important;
459
+ }
460
+
461
+ ${e} em {
462
+ outline: 1px solid #800b41 !important;
463
+ }
464
+
465
+ ${e} strong {
466
+ outline: 1px solid #ff1583 !important;
467
+ }
468
+
469
+ ${e} i {
470
+ outline: 1px solid #803156 !important;
471
+ }
472
+
473
+ ${e} b {
474
+ outline: 1px solid #cc1169 !important;
475
+ }
476
+
477
+ ${e} u {
478
+ outline: 1px solid #ff0430 !important;
479
+ }
480
+
481
+ ${e} s {
482
+ outline: 1px solid #f805e3 !important;
483
+ }
484
+
485
+ ${e} small {
486
+ outline: 1px solid #d107b2 !important;
487
+ }
488
+
489
+ ${e} abbr {
490
+ outline: 1px solid #4a0263 !important;
491
+ }
492
+
493
+ ${e} q {
494
+ outline: 1px solid #240018 !important;
495
+ }
496
+
497
+ ${e} cite {
498
+ outline: 1px solid #64003c !important;
499
+ }
500
+
501
+ ${e} dfn {
502
+ outline: 1px solid #b4005a !important;
503
+ }
504
+
505
+ ${e} sub {
506
+ outline: 1px solid #dba0c8 !important;
507
+ }
508
+
509
+ ${e} sup {
510
+ outline: 1px solid #cc0256 !important;
511
+ }
512
+
513
+ ${e} time {
514
+ outline: 1px solid #d6606d !important;
515
+ }
516
+
517
+ ${e} code {
518
+ outline: 1px solid #e04251 !important;
519
+ }
520
+
521
+ ${e} kbd {
522
+ outline: 1px solid #5e001f !important;
523
+ }
524
+
525
+ ${e} samp {
526
+ outline: 1px solid #9c0033 !important;
527
+ }
528
+
529
+ ${e} var {
530
+ outline: 1px solid #d90047 !important;
531
+ }
532
+
533
+ ${e} mark {
534
+ outline: 1px solid #ff0053 !important;
535
+ }
536
+
537
+ ${e} bdi {
538
+ outline: 1px solid #bf3668 !important;
539
+ }
540
+
541
+ ${e} bdo {
542
+ outline: 1px solid #6f1400 !important;
543
+ }
544
+
545
+ ${e} ruby {
546
+ outline: 1px solid #ff7b93 !important;
547
+ }
548
+
549
+ ${e} rt {
550
+ outline: 1px solid #ff2f54 !important;
551
+ }
552
+
553
+ ${e} rp {
554
+ outline: 1px solid #803e49 !important;
555
+ }
556
+
557
+ ${e} span {
558
+ outline: 1px solid #cc2643 !important;
559
+ }
560
+
561
+ ${e} br {
562
+ outline: 1px solid #db687d !important;
563
+ }
564
+
565
+ ${e} wbr {
566
+ outline: 1px solid #db175b !important;
567
+ }`}var O5=(e,t)=>{let r=t.globals||{},n=!t.parameters?.[Oh]?.disable&&[!0,"true"].includes(r[Oh]),o=t.viewMode==="docs",i=C5(()=>A5(o?'[data-story-block="true"]':".sb-show-main"),[t]);return w5(()=>{let a=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?T5(a,i):Kg(a),()=>{Kg(a)}},[n,i,t]),e()};globalThis.FEATURES?.outline;var lv=jr({name:de(),message:de()}),R5=jr({id:de(),name:de(),snippet:ze(de()),description:ze(de()),summary:ze(de()),error:ze(lv)}),D5=jr({id:de(),name:de(),path:de(),import:ze(de()),stories:wl(de(),R5),error:ze(lv)});ze(D5);const{emitTransformCode:kJ,getService:NJ}=__STORYBOOK_MODULE_PREVIEW_API__,{clearAllMocks:MJ,fn:BJ,isMockFunction:jJ,resetAllMocks:HJ,restoreAllMocks:UJ,uninstrumentedUserEvent:zJ,within:KJ}=__STORYBOOK_MODULE_TEST__;var qn=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),Gg=(e,t)=>{let r=qn(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},qi=(e,t)=>`${Gg(e,"kind")}${t?`--${Gg(t,"name")}`:""}`,Fs={exports:{}},Ao={},Wg;function P5(){if(Wg)return Ao;Wg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var l in o)l!=="key"&&(i[l]=o[l])}else i=o;return o=i.ref,{$$typeof:e,type:n,key:a,ref:o!==void 0?o:null,props:i}}return Ao.Fragment=t,Ao.jsx=r,Ao.jsxs=r,Ao}var Vg;function I5(){return Vg||(Vg=1,Fs.exports=P5()),Fs.exports}var le=I5(),Ls={exports:{}},Q={},qg;function F5(){if(qg)return Q;qg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),p=Symbol.iterator;function g(D){return D===null||typeof D!="object"?null:(D=p&&D[p]||D["@@iterator"],typeof D=="function"?D:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,v={};function b(D,j,K){this.props=D,this.context=j,this.refs=v,this.updater=K||m}b.prototype.isReactComponent={},b.prototype.setState=function(D,j){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,j,"setState")},b.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function E(){}E.prototype=b.prototype;function S(D,j,K){this.props=D,this.context=j,this.refs=v,this.updater=K||m}var x=S.prototype=new E;x.constructor=S,y(x,b.prototype),x.isPureReactComponent=!0;var A=Array.isArray;function w(){}var C={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function L(D,j,K){var U=K.ref;return{$$typeof:e,type:D,key:j,ref:U!==void 0?U:null,props:K}}function I(D,j){return L(D.type,j,D.props)}function T(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function M(D){var j={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(K){return j[K]})}var H=/\/+/g;function $(D,j){return typeof D=="object"&&D!==null&&D.key!=null?M(""+D.key):j.toString(36)}function _(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(w,w):(D.status="pending",D.then(function(j){D.status==="pending"&&(D.status="fulfilled",D.value=j)},function(j){D.status==="pending"&&(D.status="rejected",D.reason=j)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function O(D,j,K,U,z){var W=typeof D;(W==="undefined"||W==="boolean")&&(D=null);var G=!1;if(D===null)G=!0;else switch(W){case"bigint":case"string":case"number":G=!0;break;case"object":switch(D.$$typeof){case e:case t:G=!0;break;case c:return G=D._init,O(G(D._payload),j,K,U,z)}}if(G)return z=z(D),G=U===""?"."+$(D,0):U,A(z)?(K="",G!=null&&(K=G.replace(H,"$&/")+"/"),O(z,j,K,"",function(Re){return Re})):z!=null&&(T(z)&&(z=I(z,K+(z.key==null||D&&D.key===z.key?"":(""+z.key).replace(H,"$&/")+"/")+G)),j.push(z)),1;G=0;var X=U===""?".":U+":";if(A(D))for(var ie=0;ie<D.length;ie++)U=D[ie],W=X+$(U,ie),G+=O(U,j,K,W,z);else if(ie=g(D),typeof ie=="function")for(D=ie.call(D),ie=0;!(U=D.next()).done;)U=U.value,W=X+$(U,ie++),G+=O(U,j,K,W,z);else if(W==="object"){if(typeof D.then=="function")return O(_(D),j,K,U,z);throw j=String(D),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return G}function P(D,j,K){if(D==null)return D;var U=[],z=0;return O(D,U,"","",function(W){return j.call(K,W,z++)}),U}function k(D){if(D._status===-1){var j=D._result;j=j(),j.then(function(K){(D._status===0||D._status===-1)&&(D._status=1,D._result=K)},function(K){(D._status===0||D._status===-1)&&(D._status=2,D._result=K)}),D._status===-1&&(D._status=0,D._result=j)}if(D._status===1)return D._result.default;throw D._result}var B=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},N={map:P,forEach:function(D,j,K){P(D,function(){j.apply(this,arguments)},K)},count:function(D){var j=0;return P(D,function(){j++}),j},toArray:function(D){return P(D,function(j){return j})||[]},only:function(D){if(!T(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Q.Activity=d,Q.Children=N,Q.Component=b,Q.Fragment=r,Q.Profiler=o,Q.PureComponent=S,Q.StrictMode=n,Q.Suspense=s,Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,Q.__COMPILER_RUNTIME={__proto__:null,c:function(D){return C.H.useMemoCache(D)}},Q.cache=function(D){return function(){return D.apply(null,arguments)}},Q.cacheSignal=function(){return null},Q.cloneElement=function(D,j,K){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var U=y({},D.props),z=D.key;if(j!=null)for(W in j.key!==void 0&&(z=""+j.key),j)!R.call(j,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&j.ref===void 0||(U[W]=j[W]);var W=arguments.length-2;if(W===1)U.children=K;else if(1<W){for(var G=Array(W),X=0;X<W;X++)G[X]=arguments[X+2];U.children=G}return L(D.type,z,U)},Q.createContext=function(D){return D={$$typeof:a,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:i,_context:D},D},Q.createElement=function(D,j,K){var U,z={},W=null;if(j!=null)for(U in j.key!==void 0&&(W=""+j.key),j)R.call(j,U)&&U!=="key"&&U!=="__self"&&U!=="__source"&&(z[U]=j[U]);var G=arguments.length-2;if(G===1)z.children=K;else if(1<G){for(var X=Array(G),ie=0;ie<G;ie++)X[ie]=arguments[ie+2];z.children=X}if(D&&D.defaultProps)for(U in G=D.defaultProps,G)z[U]===void 0&&(z[U]=G[U]);return L(D,W,z)},Q.createRef=function(){return{current:null}},Q.forwardRef=function(D){return{$$typeof:l,render:D}},Q.isValidElement=T,Q.lazy=function(D){return{$$typeof:c,_payload:{_status:-1,_result:D},_init:k}},Q.memo=function(D,j){return{$$typeof:u,type:D,compare:j===void 0?null:j}},Q.startTransition=function(D){var j=C.T,K={};C.T=K;try{var U=D(),z=C.S;z!==null&&z(K,U),typeof U=="object"&&U!==null&&typeof U.then=="function"&&U.then(w,B)}catch(W){B(W)}finally{j!==null&&K.types!==null&&(j.types=K.types),C.T=j}},Q.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},Q.use=function(D){return C.H.use(D)},Q.useActionState=function(D,j,K){return C.H.useActionState(D,j,K)},Q.useCallback=function(D,j){return C.H.useCallback(D,j)},Q.useContext=function(D){return C.H.useContext(D)},Q.useDebugValue=function(){},Q.useDeferredValue=function(D,j){return C.H.useDeferredValue(D,j)},Q.useEffect=function(D,j){return C.H.useEffect(D,j)},Q.useEffectEvent=function(D){return C.H.useEffectEvent(D)},Q.useId=function(){return C.H.useId()},Q.useImperativeHandle=function(D,j,K){return C.H.useImperativeHandle(D,j,K)},Q.useInsertionEffect=function(D,j){return C.H.useInsertionEffect(D,j)},Q.useLayoutEffect=function(D,j){return C.H.useLayoutEffect(D,j)},Q.useMemo=function(D,j){return C.H.useMemo(D,j)},Q.useOptimistic=function(D,j){return C.H.useOptimistic(D,j)},Q.useReducer=function(D,j,K){return C.H.useReducer(D,j,K)},Q.useRef=function(D){return C.H.useRef(D)},Q.useState=function(D){return C.H.useState(D)},Q.useSyncExternalStore=function(D,j,K){return C.H.useSyncExternalStore(D,j,K)},Q.useTransition=function(){return C.H.useTransition()},Q.version="19.2.5",Q}var Yg;function Ff(){return Yg||(Yg=1,Ls.exports=F5()),Ls.exports}var f=Ff();const h=hf(f),L5=C_({__proto__:null,default:h},[f]),rd={},sv=h.createContext(rd);function uv(e){const t=h.useContext(sv);return h.useMemo(function(){return typeof e=="function"?e(t):{...t,...e}},[t,e])}function GJ(e){let t;return e.disableParentContext?t=typeof e.components=="function"?e.components(rd):e.components||rd:t=uv(e.components),h.createElement(sv.Provider,{value:t},e.children)}var Ut=(e,t,r)=>{let n=e.replace(/\s+/g,"-"),o=["control"];return r&&o.push(r),t&&o.push(t),o.push(n),o.join("-")},Rl=(e,t,r)=>{let n=e.replace(/\s+/g,"-"),o=["set"];return r&&o.push(r),t&&o.push(t),o.push(n),o.join("-")},Pr=null;function nd(e,t="assertive",r=7e3){Pr?Pr.announce(e,t,r):(Pr=new N5,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Pr.announce(e,t,r):setTimeout(()=>{Pr?.isAttached()&&Pr?.announce(e,t,r)},100))}function k5(e){Pr&&Pr.clear(e)}var N5=class{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){var n,o;if(!this.node)return;let i=document.createElement("div");typeof e=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(i):(o=this.politeLog)===null||o===void 0||o.appendChild(i),e!==""&&setTimeout(()=>{i.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ge.apply(null,arguments)}function M5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qo(e,t){return Qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Qo(e,t)}function B5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qo(e,t)}function od(e){return od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},od(e)}function j5(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function cv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cv=function(){return!!e})()}function H5(e,t,r){if(cv())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Qo(o,r.prototype),o}function id(e){var t=typeof Map=="function"?new Map:void 0;return id=function(r){if(r===null||!j5(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return H5(r,arguments,od(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Qo(n,r)},id(e)}var er=(function(e){B5(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,M5(n)}return t})(id(Error));function ks(e){return Math.round(e*255)}function U5(e,t,r){return ks(e)+","+ks(t)+","+ks(r)}function Ya(e,t,r,n){if(n===void 0&&(n=U5),t===0)return n(r,r,r);var o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,a=i*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);var c=r-i/2,d=l+c,p=s+c,g=u+c;return n(d,p,g)}var Xg={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function z5(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Xg[t]?"#"+Xg[t]:e}var K5=/^#[a-fA-F0-9]{6}$/,G5=/^#[a-fA-F0-9]{8}$/,W5=/^#[a-fA-F0-9]{3}$/,V5=/^#[a-fA-F0-9]{4}$/,Ns=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,q5=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Y5=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,X5=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Yn(e){if(typeof e!="string")throw new er(3);var t=z5(e);if(t.match(K5))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(G5)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(W5))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(V5)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=Ns.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=q5.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=Y5.exec(t);if(a){var l=parseInt(""+a[1],10),s=parseInt(""+a[2],10)/100,u=parseInt(""+a[3],10)/100,c="rgb("+Ya(l,s,u)+")",d=Ns.exec(c);if(!d)throw new er(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var p=X5.exec(t.substring(0,50));if(p){var g=parseInt(""+p[1],10),m=parseInt(""+p[2],10)/100,y=parseInt(""+p[3],10)/100,v="rgb("+Ya(g,m,y)+")",b=Ns.exec(v);if(!b)throw new er(4,t,v);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+p[4])>1?parseFloat(""+p[4])/100:parseFloat(""+p[4])}}throw new er(5)}function J5(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),i=Math.min(t,r,n),a=(o+i)/2;if(o===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:a,alpha:e.alpha}:{hue:0,saturation:0,lightness:a};var l,s=o-i,u=a>.5?s/(2-o-i):s/(o+i);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:a,alpha:e.alpha}:{hue:l,saturation:u,lightness:a}}function Ur(e){return J5(Yn(e))}var Z5=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},ad=Z5;function tn(e){var t=e.toString(16);return t.length===1?"0"+t:t}function Ms(e){return tn(Math.round(e*255))}function Q5(e,t,r){return ad("#"+Ms(e)+Ms(t)+Ms(r))}function dv(e,t,r){return Ya(e,t,r,Q5)}function eD(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return dv(e.hue,e.saturation,e.lightness);throw new er(1)}function tD(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?dv(e.hue,e.saturation,e.lightness):"rgba("+Ya(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new er(2)}function ld(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return ad("#"+tn(e)+tn(t)+tn(r));if(typeof e=="object"&&t===void 0&&r===void 0)return ad("#"+tn(e.red)+tn(e.green)+tn(e.blue));throw new er(6)}function gn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Yn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?ld(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?ld(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new er(7)}var rD=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},nD=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},oD=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},iD=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function zr(e){if(typeof e!="object")throw new er(8);if(nD(e))return gn(e);if(rD(e))return ld(e);if(iD(e))return tD(e);if(oD(e))return eD(e);throw new er(8)}function fv(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):fv(e,t,n)}}function Et(e){return fv(e,e.length,[])}function aD(e,t){if(t==="transparent")return t;var r=Ur(t);return zr(Ge({},r,{hue:r.hue+parseFloat(e)}))}Et(aD);function fo(e,t,r){return Math.max(e,Math.min(t,r))}function lD(e,t){if(t==="transparent")return t;var r=Ur(t);return zr(Ge({},r,{lightness:fo(0,1,r.lightness-parseFloat(e))}))}var sD=Et(lD),Je=sD;function uD(e,t){if(t==="transparent")return t;var r=Ur(t);return zr(Ge({},r,{saturation:fo(0,1,r.saturation-parseFloat(e))}))}Et(uD);function cD(e,t){if(t==="transparent")return t;var r=Ur(t);return zr(Ge({},r,{lightness:fo(0,1,r.lightness+parseFloat(e))}))}var dD=Et(cD),Ea=dD;function fD(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Yn(t),o=Ge({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=Yn(r),a=Ge({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),l=o.alpha-a.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,p=1-d,g={red:Math.floor(o.red*d+a.red*p),green:Math.floor(o.green*d+a.green*p),blue:Math.floor(o.blue*d+a.blue*p),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))};return gn(g)}var pD=Et(fD),pv=pD;function hD(e,t){if(t==="transparent")return t;var r=Yn(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ge({},r,{alpha:fo(0,1,(n*100+parseFloat(e)*100)/100)});return gn(o)}var gD=Et(hD),mD=gD;function yD(e,t){if(t==="transparent")return t;var r=Ur(t);return zr(Ge({},r,{saturation:fo(0,1,r.saturation+parseFloat(e))}))}Et(yD);function bD(e,t){return t==="transparent"?t:zr(Ge({},Ur(t),{hue:parseFloat(e)}))}Et(bD);function vD(e,t){return t==="transparent"?t:zr(Ge({},Ur(t),{lightness:parseFloat(e)}))}Et(vD);function ED(e,t){return t==="transparent"?t:zr(Ge({},Ur(t),{saturation:parseFloat(e)}))}Et(ED);function SD(e,t){return t==="transparent"?t:pv(parseFloat(e),"rgb(0, 0, 0)",t)}Et(SD);function xD(e,t){return t==="transparent"?t:pv(parseFloat(e),"rgb(255, 255, 255)",t)}Et(xD);function $D(e,t){if(t==="transparent")return t;var r=Yn(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ge({},r,{alpha:fo(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return gn(o)}var wD=Et($D),vr=wD,Y={primary:"#FF4785",secondary:"#006DEB",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F6F9FC",light:"#EEF2F6",mediumlight:"#ECF2F9",medium:"#D9E5F2",mediumdark:"#737F8C",dark:"#5C6570",darker:"#454C54",darkest:"#2E3338",border:"hsl(212 50% 30% / 0.15)",positive:"#66BF3C",warning:"#E69D00",negative:"#FF4400",critical:"#FFFFFF",defaultText:"#2E3338",inverseText:"#FFFFFF",positiveText:"#427C27",warningText:"#955B1E",negativeText:"#C23400"},yr={app:"#F6F9FC",bar:Y.lightest,content:Y.lightest,preview:Y.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},Bt={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},sd={light:{fgColor:{default:Y.darkest,muted:Y.dark,accent:Y.secondary,inverse:Y.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF",agentic:"#723aa6"},bgColor:{default:Y.lightest,muted:yr.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800",agentic:"#f5f0fa"},borderColor:{default:Y.border,muted:"hsl(0 0% 0% / 0.1)",inverse:"hsl(0 0% 100% / 0.1)",positive:"#BFE7AC",warning:"#FFCE85",negative:"#FFC3AD",critical:"hsl(16 100% 100% / 0)",agentic:"#e1d2ef"}},dark:{fgColor:{default:"#C9CCCF",muted:"#95999D",accent:"#479DFF",inverse:"#1B1C1D",positive:"#86CE64",warning:"#FFAD33",negative:"#FF6933",critical:"#FF6933",agentic:"#b07fdc"},bgColor:{default:"#222325",muted:"#1B1C1D",positive:"hsl(101 100% 100% / 0)",warning:"hsl(101 100% 100% / 0)",negative:"hsl(101 100% 100% / 0)",critical:"hsl(101 100% 100% / 0)",agentic:"rgba(114,58,166,0.15)"},borderColor:{default:"hsl(0 0% 100% / 0.1)",muted:"hsl(0 0% 100% / 0.5)",inverse:"hsl(0 0% 0% / 0.1)",positive:"hsl(101 52% 64% / 0.15)",warning:"hsl(36 100% 64% / 0.15)",negative:"hsl(16 100% 64% / 0.15)",critical:"#FF6933",agentic:"rgba(114,58,166,0.35)"}}},CD={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:Y.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:Bt.fonts.base,fontCode:Bt.fonts.mono,textColor:"#C9CCCF",textInverseColor:"#1B1C1D",textMutedColor:"#95999D",barTextColor:"#95999D",barHoverColor:"#70B3FF",barSelectedColor:"#479DFF",barBg:"#222325",buttonBg:"#1B1C1D",buttonBorder:"hsl(0 0% 100% / 0.1)",booleanBg:"#1B1C1D",booleanSelectedBg:"#292B2E",inputBg:"#1B1C1D",inputBorder:"hsl(0 0% 100% / 0.1)",inputTextColor:"#C9CCCF",inputBorderRadius:4},_D=CD,TD={base:"light",colorPrimary:Y.primary,colorSecondary:Y.secondary,appBg:yr.app,appContentBg:Y.lightest,appHoverBg:"#DBECFF",appPreviewBg:Y.lightest,appBorderColor:Y.border,appBorderRadius:4,fontBase:Bt.fonts.base,fontCode:Bt.fonts.mono,textColor:Y.darkest,textInverseColor:Y.lightest,textMutedColor:Y.dark,barTextColor:Y.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:Y.lightest,buttonBg:yr.app,buttonBorder:Y.medium,booleanBg:Y.mediumlight,booleanSelectedBg:Y.lightest,inputBg:Y.lightest,inputBorder:Y.border,inputTextColor:Y.darkest,inputBorderRadius:4},ud=TD;const{logger:AD}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:OD}=__STORYBOOK_MODULE_GLOBAL__;var{window:Bs}=OD,RD=e=>({color:e}),DD=e=>typeof e!="string"?(AD.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,PD=e=>!/(gradient|var|calc)/.test(e),ID=(e,t)=>e==="darken"?gn(`${Je(1,t)}`,.95):e==="lighten"?gn(`${Ea(1,t)}`,.95):t,FD=e=>t=>{if(!DD(t)||!PD(t))return t;try{return ID(e,t)}catch{return t}},Lf=FD("lighten"),kf=()=>!Bs||!Bs.matchMedia?"light":Bs.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Jg={light:ud,dark:_D},Sa=kf(),dn={...Jg,normal:Jg[Sa]},hv=(e={base:Sa},t)=>{let r={...dn[Sa],...dn[e.base]||{},...e,base:dn[e.base]?e.base:Sa};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}},LD=Er({"../../node_modules/react-is/cjs/react-is.production.min.js"(e){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function x(w){if(typeof w=="object"&&w!==null){var C=w.$$typeof;switch(C){case r:switch(w=w.type,w){case u:case c:case o:case a:case i:case p:return w;default:switch(w=w&&w.$$typeof,w){case s:case d:case y:case m:case l:return w;default:return C}}case n:return C}}}function A(w){return x(w)===c}e.AsyncMode=u,e.ConcurrentMode=c,e.ContextConsumer=s,e.ContextProvider=l,e.Element=r,e.ForwardRef=d,e.Fragment=o,e.Lazy=y,e.Memo=m,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=p,e.isAsyncMode=function(w){return A(w)||x(w)===u},e.isConcurrentMode=A,e.isContextConsumer=function(w){return x(w)===s},e.isContextProvider=function(w){return x(w)===l},e.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===r},e.isForwardRef=function(w){return x(w)===d},e.isFragment=function(w){return x(w)===o},e.isLazy=function(w){return x(w)===y},e.isMemo=function(w){return x(w)===m},e.isPortal=function(w){return x(w)===n},e.isProfiler=function(w){return x(w)===a},e.isStrictMode=function(w){return x(w)===i},e.isSuspense=function(w){return x(w)===p},e.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===o||w===c||w===a||w===i||w===p||w===g||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===m||w.$$typeof===l||w.$$typeof===s||w.$$typeof===d||w.$$typeof===b||w.$$typeof===E||w.$$typeof===S||w.$$typeof===v)},e.typeOf=x}}),kD=Er({"../../node_modules/react-is/index.js"(e,t){t.exports=LD()}}),gv=Er({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=kD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=i,l[r.Memo]=a;function s(v){return r.isMemo(v)?a:l[v.$$typeof]||n}var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,m=Object.prototype;function y(v,b,E){if(typeof b!="string"){if(m){var S=g(b);S&&S!==m&&y(v,S,E)}var x=c(b);d&&(x=x.concat(d(b)));for(var A=s(v),w=s(b),C=0;C<x.length;++C){var R=x[C];if(!o[R]&&!(E&&E[R])&&!(w&&w[R])&&!(A&&A[R])){var L=p(b,R);try{u(v,R,L)}catch{}}}}return v}t.exports=y}});function ND(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function MD(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var BD=(function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(MD(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=ND(n);try{o.insertRule(r,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Xe="-ms-",Xa="-moz-",ge="-webkit-",mv="comm",Nf="rule",Mf="decl",jD="@import",yv="@keyframes",HD="@layer",UD=Math.abs,Dl=String.fromCharCode,zD=Object.assign;function KD(e,t){return He(e,0)^45?(((t<<2^He(e,0))<<2^He(e,1))<<2^He(e,2))<<2^He(e,3):0}function bv(e){return e.trim()}function GD(e,t){return(e=t.exec(e))?e[0]:e}function me(e,t,r){return e.replace(t,r)}function cd(e,t){return e.indexOf(t)}function He(e,t){return e.charCodeAt(t)|0}function ei(e,t,r){return e.slice(t,r)}function Xt(e){return e.length}function Bf(e){return e.length}function Yi(e,t){return t.push(e),e}function WD(e,t){return e.map(t).join("")}var Pl=1,Xn=1,vv=0,ft=0,Pe=0,po="";function Il(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Pl,column:Xn,length:a,return:""}}function Oo(e,t){return zD(Il("",null,null,"",null,null,0),e,{length:-e.length},t)}function VD(){return Pe}function qD(){return Pe=ft>0?He(po,--ft):0,Xn--,Pe===10&&(Xn=1,Pl--),Pe}function bt(){return Pe=ft<vv?He(po,ft++):0,Xn++,Pe===10&&(Xn=1,Pl++),Pe}function or(){return He(po,ft)}function xa(){return ft}function yi(e,t){return ei(po,e,t)}function ti(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ev(e){return Pl=Xn=1,vv=Xt(po=e),ft=0,[]}function Sv(e){return po="",e}function $a(e){return bv(yi(ft-1,dd(e===91?e+2:e===40?e+1:e)))}function YD(e){for(;(Pe=or())&&Pe<33;)bt();return ti(e)>2||ti(Pe)>3?"":" "}function XD(e,t){for(;--t&&bt()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return yi(e,xa()+(t<6&&or()==32&&bt()==32))}function dd(e){for(;bt();)switch(Pe){case e:return ft;case 34:case 39:e!==34&&e!==39&&dd(Pe);break;case 40:e===41&&dd(e);break;case 92:bt();break}return ft}function JD(e,t){for(;bt()&&e+Pe!==57&&!(e+Pe===84&&or()===47););return"/*"+yi(t,ft-1)+"*"+Dl(e===47?e:bt())}function ZD(e){for(;!ti(or());)bt();return yi(e,ft)}function QD(e){return Sv(wa("",null,null,null,[""],e=Ev(e),0,[0],e))}function wa(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,g=0,m=0,y=1,v=1,b=1,E=0,S="",x=o,A=i,w=n,C=S;v;)switch(m=E,E=bt()){case 40:if(m!=108&&He(C,d-1)==58){cd(C+=me($a(E),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=$a(E);break;case 9:case 10:case 13:case 32:C+=YD(m);break;case 92:C+=XD(xa()-1,7);continue;case 47:switch(or()){case 42:case 47:Yi(eP(JD(bt(),xa()),t,r),s);break;default:C+="/"}break;case 123*y:l[u++]=Xt(C)*b;case 125*y:case 59:case 0:switch(E){case 0:case 125:v=0;case 59+c:b==-1&&(C=me(C,/\f/g,"")),g>0&&Xt(C)-d&&Yi(g>32?Qg(C+";",n,r,d-1):Qg(me(C," ","")+";",n,r,d-2),s);break;case 59:C+=";";default:if(Yi(w=Zg(C,t,r,u,c,o,l,S,x=[],A=[],d),i),E===123)if(c===0)wa(C,t,w,w,x,i,d,l,A);else switch(p===99&&He(C,3)===110?100:p){case 100:case 108:case 109:case 115:wa(e,w,w,n&&Yi(Zg(e,w,w,0,0,o,l,S,o,x=[],d),A),o,A,d,l,n?x:A);break;default:wa(C,w,w,w,[""],A,0,l,A)}}u=c=g=0,y=b=1,S=C="",d=a;break;case 58:d=1+Xt(C),g=m;default:if(y<1){if(E==123)--y;else if(E==125&&y++==0&&qD()==125)continue}switch(C+=Dl(E),E*y){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Xt(C)-1)*b,b=1;break;case 64:or()===45&&(C+=$a(bt())),p=or(),c=d=Xt(S=C+=ZD(xa())),E++;break;case 45:m===45&&Xt(C)==2&&(y=0)}}return i}function Zg(e,t,r,n,o,i,a,l,s,u,c){for(var d=o-1,p=o===0?i:[""],g=Bf(p),m=0,y=0,v=0;m<n;++m)for(var b=0,E=ei(e,d+1,d=UD(y=a[m])),S=e;b<g;++b)(S=bv(y>0?p[b]+" "+E:me(E,/&\f/g,p[b])))&&(s[v++]=S);return Il(e,t,r,o===0?Nf:l,s,u,c)}function eP(e,t,r){return Il(e,t,r,mv,Dl(VD()),ei(e,2,-2),0)}function Qg(e,t,r,n){return Il(e,t,r,Mf,ei(e,0,n),ei(e,n+1,-1),n)}function Un(e,t){for(var r="",n=Bf(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function tP(e,t,r,n){switch(e.type){case HD:if(e.children.length)break;case jD:case Mf:return e.return=e.return||e.value;case mv:return"";case yv:return e.return=e.value+"{"+Un(e.children,n)+"}";case Nf:e.value=e.props.join(",")}return Xt(r=Un(e.children,n))?e.return=e.value+"{"+r+"}":""}function rP(e){var t=Bf(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}function nP(e){return function(t){t.root||(t=t.return)&&e(t)}}var em=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};function xv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var oP=function(e,t,r){for(var n=0,o=0;n=o,o=or(),n===38&&o===12&&(t[r]=1),!ti(o);)bt();return yi(e,ft)},iP=function(e,t){var r=-1,n=44;do switch(ti(n)){case 0:n===38&&or()===12&&(t[r]=1),e[r]+=oP(ft-1,t,r);break;case 2:e[r]+=$a(n);break;case 4:if(n===44){e[++r]=or()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Dl(n)}while(n=bt());return e},aP=function(e,t){return Sv(iP(Ev(e),t))},tm=new WeakMap,lP=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!tm.get(r))&&!n){tm.set(e,!0);for(var o=[],i=aP(t,o),a=r.props,l=0,s=0;l<i.length;l++)for(var u=0;u<a.length;u++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[u]):a[u]+" "+i[l]}}},sP=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function $v(e,t){switch(KD(e,t)){case 5103:return ge+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ge+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ge+e+Xa+e+Xe+e+e;case 6828:case 4268:return ge+e+Xe+e+e;case 6165:return ge+e+Xe+"flex-"+e+e;case 5187:return ge+e+me(e,/(\w+).+(:[^]+)/,ge+"box-$1$2"+Xe+"flex-$1$2")+e;case 5443:return ge+e+Xe+"flex-item-"+me(e,/flex-|-self/,"")+e;case 4675:return ge+e+Xe+"flex-line-pack"+me(e,/align-content|flex-|-self/,"")+e;case 5548:return ge+e+Xe+me(e,"shrink","negative")+e;case 5292:return ge+e+Xe+me(e,"basis","preferred-size")+e;case 6060:return ge+"box-"+me(e,"-grow","")+ge+e+Xe+me(e,"grow","positive")+e;case 4554:return ge+me(e,/([^-])(transform)/g,"$1"+ge+"$2")+e;case 6187:return me(me(me(e,/(zoom-|grab)/,ge+"$1"),/(image-set)/,ge+"$1"),e,"")+e;case 5495:case 3959:return me(e,/(image-set\([^]*)/,ge+"$1$`$1");case 4968:return me(me(e,/(.+:)(flex-)?(.*)/,ge+"box-pack:$3"+Xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ge+e+e;case 4095:case 3583:case 4068:case 2532:return me(e,/(.+)-inline(.+)/,ge+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xt(e)-1-t>6)switch(He(e,t+1)){case 109:if(He(e,t+4)!==45)break;case 102:return me(e,/(.+:)(.+)-([^]+)/,"$1"+ge+"$2-$3$1"+Xa+(He(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cd(e,"stretch")?$v(me(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(He(e,t+1)!==115)break;case 6444:switch(He(e,Xt(e)-3-(~cd(e,"!important")&&10))){case 107:return me(e,":",":"+ge)+e;case 101:return me(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ge+(He(e,14)===45?"inline-":"")+"box$3$1"+ge+"$2$3$1"+Xe+"$2box$3")+e}break;case 5936:switch(He(e,t+11)){case 114:return ge+e+Xe+me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ge+e+Xe+me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ge+e+Xe+me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ge+e+Xe+e+e}return e}var uP=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Mf:e.return=$v(e.value,e.length);break;case yv:return Un([Oo(e,{value:me(e.value,"@","@"+ge)})],n);case Nf:if(e.length)return WD(e.props,function(o){switch(GD(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Un([Oo(e,{props:[me(o,/:(read-\w+)/,":"+Xa+"$1")]})],n);case"::placeholder":return Un([Oo(e,{props:[me(o,/:(plac\w+)/,":"+ge+"input-$1")]}),Oo(e,{props:[me(o,/:(plac\w+)/,":"+Xa+"$1")]}),Oo(e,{props:[me(o,/:(plac\w+)/,Xe+"input-$1")]})],n)}return""})}},cP=[uP],wv=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||cP,o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var y=m.getAttribute("data-emotion").split(" "),v=1;v<y.length;v++)o[y[v]]=!0;a.push(m)});var l,s=[lP,sP];{var u,c=[tP,nP(function(m){u.insert(m)})],d=rP(s.concat(n,c)),p=function(m){return Un(QD(m),d)};l=function(m,y,v,b){u=v,p(m?m+"{"+y.styles+"}":y.styles),b&&(g.inserted[y.name]=!0)}}var g={key:t,sheet:new BD({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(a),g};vt(gv());var dP=!0;function jf(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Fl=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||dP===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Ll=function(e,t,r){Fl(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function fP(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var pP={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hP=/[A-Z]|^ms/g,gP=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cv=function(e){return e.charCodeAt(1)===45},rm=function(e){return e!=null&&typeof e!="boolean"},js=xv(function(e){return Cv(e)?e:e.replace(hP,"-$&").toLowerCase()}),nm=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(gP,function(r,n,o){return Jt={name:n,styles:o,next:Jt},n})}return pP[e]!==1&&!Cv(e)&&typeof t=="number"&&t!==0?t+"px":t};function ri(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Jt={name:o.name,styles:o.styles,next:Jt},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Jt={name:a.name,styles:a.styles,next:Jt},a=a.next;var l=i.styles+";";return l}return mP(e,t,r)}case"function":{if(e!==void 0){var s=Jt,u=r(e);return Jt=s,ri(e,t,u)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function mP(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=ri(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?n+=i+"{"+t[l]+"}":rm(l)&&(n+=js(i)+":"+nm(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)rm(a[s])&&(n+=js(i)+":"+nm(i,a[s])+";");else{var u=ri(e,t,a);switch(i){case"animation":case"animationName":{n+=js(i)+":"+u+";";break}default:n+=i+"{"+u+"}"}}}return n}var om=/label:\s*([^\s;{]+)\s*(;|$)/g,Jt;function bi(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Jt=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=ri(r,t,i);else{var a=i;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=ri(r,t,e[l]),n){var s=i;o+=s[l]}om.lastIndex=0;for(var u="",c;(c=om.exec(o))!==null;)u+="-"+c[1];var d=fP(o)+u;return{name:d,styles:o,next:Jt}}var yP=function(e){return e()},_v=f.useInsertionEffect?f.useInsertionEffect:!1,Hf=_v||yP,im=_v||f.useLayoutEffect,Tv=f.createContext(typeof HTMLElement<"u"?wv({key:"css"}):null);Tv.Provider;var kl=function(e){return f.forwardRef(function(t,r){var n=f.useContext(Tv);return e(t,n,r)})},mn=f.createContext({}),Uf=function(){return f.useContext(mn)},bP=function(e,t){if(typeof t=="function"){var r=t(e);return r}return Ge({},e,t)},vP=em(function(e){return em(function(t){return bP(e,t)})}),zf=function(e){var t=f.useContext(mn);return e.theme!==t&&(t=vP(t)(e.theme)),f.createElement(mn.Provider,{value:t},e.children)},Kf={}.hasOwnProperty,fd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",EP=function(e,t){var r={};for(var n in t)Kf.call(t,n)&&(r[n]=t[n]);return r[fd]=e,r},SP=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Fl(t,r,n),Hf(function(){return Ll(t,r,n)}),null},xP=kl(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[fd],i=[n],a="";typeof e.className=="string"?a=jf(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=bi(i,void 0,f.useContext(mn));a+=t.key+"-"+l.name;var s={};for(var u in e)Kf.call(e,u)&&u!=="css"&&u!==fd&&(s[u]=e[u]);return s.className=a,r&&(s.ref=r),f.createElement(f.Fragment,null,f.createElement(SP,{cache:t,serialized:l,isStringTag:typeof o=="string"}),f.createElement(o,s))}),$P=xP;vt(gv());var pd=function(e,t){var r=arguments;if(t==null||!Kf.call(t,"css"))return f.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=$P,o[1]=EP(e,t);for(var i=2;i<n;i++)o[i]=r[i];return f.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(pd||(pd={}));kl(function(e,t){var r=e.styles,n=bi([r],void 0,f.useContext(mn)),o=f.useRef();return im(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,s=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),s!==null&&(l=!0,s.setAttribute("data-emotion",i),a.hydrate([s])),o.current=[a,l],function(){a.flush()}},[t]),im(function(){var i=o.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(n.next!==void 0&&Ll(t,n.next,!0),a.tags.length){var s=a.tags[a.tags.length-1].nextElementSibling;a.before=s,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function Nl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return bi(t)}function je(){var e=Nl.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var wP=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var i=t[n];if(i!=null){var a=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))a=e(i);else{a="";for(var l in i)i[l]&&l&&(a&&(a+=" "),a+=l)}break}default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function CP(e,t,r){var n=[],o=jf(e,n,r);return n.length<2?r:o+t(n)}var _P=function(e){var t=e.cache,r=e.serializedArr;return Hf(function(){for(var n=0;n<r.length;n++)Ll(t,r[n],!1)}),null};kl(function(e,t){var r=[],n=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var c=bi(s,t.registered);return r.push(c),Fl(t,c,!1),t.key+"-"+c.name},o=function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return CP(t.registered,n,wP(s))},i={css:n,cx:o,theme:f.useContext(mn)},a=e.children(i);return f.createElement(f.Fragment,null,f.createElement(_P,{cache:t,serializedArr:r}),a)});var TP=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ml=xv(function(e){return TP.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),AP=Ml,OP=function(e){return e!=="theme"},am=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?AP:OP},lm=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(i){return e.__emotion_forwardProp(i)&&o(i)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},RP=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Fl(t,r,n),Hf(function(){return Ll(t,r,n)}),null},DP=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var l=lm(t,r,n),s=l||am(o),u=!s("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var p=c[0];d.push(p[0]);for(var g=c.length,m=1;m<g;m++)d.push(c[m],p[m])}var y=kl(function(v,b,E){var S=u&&v.as||o,x="",A=[],w=v;if(v.theme==null){w={};for(var C in v)w[C]=v[C];w.theme=f.useContext(mn)}typeof v.className=="string"?x=jf(b.registered,A,v.className):v.className!=null&&(x=v.className+" ");var R=bi(d.concat(A),b.registered,w);x+=b.key+"-"+R.name,a!==void 0&&(x+=" "+a);var L=u&&l===void 0?am(S):s,I={};for(var T in v)u&&T==="as"||L(T)&&(I[T]=v[T]);return I.className=x,E&&(I.ref=E),f.createElement(f.Fragment,null,f.createElement(RP,{cache:b,serialized:R,isStringTag:typeof S=="string"}),f.createElement(S,I))});return y.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=o,y.__emotion_styles=d,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+a}}),y.withComponent=function(v,b){var E=e(v,Ge({},r,b,{shouldForwardProp:lm(y,b,!0)}));return E.apply(void 0,d)},y}},PP=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],F=DP.bind(null);PP.forEach(function(e){F[e]=F(e)});var Av=vt(Sn(),1),ni={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",border:0},Ov={position:"unset",width:"unset",height:"unset",padding:"unset",margin:"unset",overflow:"unset",whiteSpace:"unset",clip:"unset",clipPath:"unset",border:"unset"},Rv=(0,Av.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,Av.default)(1)(({color:e,background:t,typography:r})=>{let n=Rv({typography:r});return{...n,body:{...n.body,position:"fixed",width:"100vw",height:"100vh",overflow:"hidden",color:e.defaultText,background:t.app},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":ni,".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1},"[data-sb-landmark]":{position:"relative"},"[data-sb-landmark]:focus-visible":{outline:"none"},"[data-sb-landmark]:focus-visible::after":{outline:`2px solid ${e.primary}`,outlineOffset:"-2px"},"[data-sb-landmark]::after":{content:"''",position:"absolute",inset:0,pointerEvents:"none"},".react-aria-Popover:focus-visible":{outline:"none"}}});var IP={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},FP=je`
568
+ from {
569
+ transform: rotate(0deg);
570
+ }
571
+ to {
572
+ transform: rotate(360deg);
573
+ }
574
+ `,Dv=je`
575
+ 0%, 100% { opacity: 1; }
576
+ 50% { opacity: .4; }
577
+ `,LP=je`
578
+ 0% { transform: translateY(1px); }
579
+ 25% { transform: translateY(0px); }
580
+ 50% { transform: translateY(-3px); }
581
+ 100% { transform: translateY(1px); }
582
+ `,kP=je`
583
+ 0%, 100% { transform:translate3d(0,0,0); }
584
+ 12.5%, 62.5% { transform:translate3d(-4px,0,0); }
585
+ 37.5%, 87.5% { transform: translate3d(4px,0,0); }
586
+ `,NP=Nl`
587
+ animation: ${Dv} 1.5s ease-in-out infinite;
588
+ color: transparent;
589
+ cursor: progress;
590
+ `,MP=Nl`
591
+ transition: all 150ms ease-out;
592
+ transform: translate3d(0, 0, 0);
593
+
594
+ &:hover {
595
+ transform: translate3d(0, -2px, 0);
596
+ }
597
+
598
+ &:active {
599
+ transform: translate3d(0, 0, 0);
600
+ }
601
+ `,BP={rotate360:FP,glow:Dv,float:LP,jiggle:kP,inlineGlow:NP,hoverable:MP},jP={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},HP={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},UP=e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:RD(n)}),{}),zP=({colors:e,mono:t})=>{let r=UP(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},KP={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#eb0000",gray1:"#393A34",cyan1:"#008380",cyan2:"#007ca0",blue1:"#0000ff",blue2:"#00009f"},GP={green1:"#95999D",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},WP=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:Y.tertiary,ancillary:Y.ancillary,orange:Y.orange,gold:Y.gold,green:Y.green,seafoam:Y.seafoam,purple:Y.purple,ultraviolet:Y.ultraviolet,lightest:Y.lightest,lighter:Y.lighter,light:Y.light,mediumlight:Y.mediumlight,medium:Y.medium,mediumdark:Y.mediumdark,dark:Y.dark,darker:Y.darker,darkest:Y.darkest,border:Y.border,positive:Y.positive,negative:Y.negative,warning:Y.warning,critical:Y.critical,defaultText:e.textColor||Y.darkest,inverseText:e.textInverseColor||Y.lightest,positiveText:Y.positiveText,negativeText:Y.negativeText,warningText:Y.warningText}),Ja=(e=dn[kf()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:o,appContentBg:i,appHoverBg:a,appPreviewBg:l,appBorderColor:s,appBorderRadius:u,fontBase:c,fontCode:d,textColor:p,textInverseColor:g,barTextColor:m,barHoverColor:y,barSelectedColor:v,barBg:b,buttonBg:E,buttonBorder:S,booleanBg:x,booleanSelectedBg:A,inputBg:w,inputBorder:C,inputTextColor:R,inputBorderRadius:L,brandTitle:I,brandUrl:T,brandImage:M,brandTarget:H,gridCellSize:$,..._}=e;return{..._,base:t,...t==="dark"?sd.dark:sd.light,color:WP(e),background:{app:o,bar:b,content:i,preview:l,gridCellSize:$||yr.gridCellSize,hoverable:a,positive:yr.positive,negative:yr.negative,warning:yr.warning,critical:yr.critical},typography:{fonts:{base:c,mono:d},weight:Bt.weight,size:Bt.size},animation:BP,easing:IP,input:{background:w,border:C,borderRadius:L,color:R},button:{background:E||w,border:S||C},boolean:{background:x||C,selectedBackground:A||w},layoutMargin:10,appBorderColor:s,appBorderRadius:u,barTextColor:m,barHoverColor:y||n,barSelectedColor:v||n,barBg:b,brand:{title:I,url:T,image:M||(I?null:void 0),target:H},code:zP({colors:t==="dark"?GP:KP,mono:d}),addonActionsTheme:{...t==="dark"?jP:HP,BASE_FONT_FAMILY:d,BASE_FONT_SIZE:Bt.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:p,ARROW_COLOR:mD(.2,s),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:d,TREENODE_FONT_SIZE:Bt.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}};const{logger:VP}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var qP=e=>Object.keys(e).length===0,Hs=e=>e!=null&&typeof e=="object",YP=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),XP=()=>Object.create(null),Pv=(e,t)=>e===t||!Hs(e)||!Hs(t)?{}:Object.keys(e).reduce((r,n)=>{if(YP(t,n)){let o=Pv(e[n],t[n]);return Hs(o)&&qP(o)||(r[n]=o),r}return r[n]=void 0,r},XP()),JP=Pv,Iv=e=>{if(!e)return Ja(ud);let t=JP(ud,e);return Object.keys(t).length&&VP.warn(Tt`
602
+ Your theme is missing properties, you should update your theme!
603
+
604
+ theme-data missing:
605
+ `,t),Ja(e)},Za="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";const ZP=Object.freeze(Object.defineProperty({__proto__:null,ThemeProvider:zf,background:yr,color:Y,convert:Ja,create:hv,createCache:wv,createReset:Rv,css:Nl,ensure:Iv,getPreferredColorScheme:kf,ignoreSsrWarning:Za,isPropValid:Ml,get jsx(){return pd},keyframes:je,lighten:Lf,srOnlyStyles:ni,srOnlyUnsetStyles:Ov,styled:F,themes:dn,tokens:sd,typography:Bt,useTheme:Uf},Symbol.toStringTag,{value:"Module"}));var Us={exports:{}},qe={},sm;function QP(){if(sm)return qe;sm=1;var e=Ff();function t(s){var u="https://react.dev/errors/"+s;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)u+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+s+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function i(s,u,c){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:d==null?null:""+d,children:s,containerInfo:u,implementation:c}}var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(s,u){if(s==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return qe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,qe.createPortal=function(s,u){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return i(s,u,null,c)},qe.flushSync=function(s){var u=a.T,c=n.p;try{if(a.T=null,n.p=2,s)return s()}finally{a.T=u,n.p=c,n.d.f()}},qe.preconnect=function(s,u){typeof s=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,n.d.C(s,u))},qe.prefetchDNS=function(s){typeof s=="string"&&n.d.D(s)},qe.preinit=function(s,u){if(typeof s=="string"&&u&&typeof u.as=="string"){var c=u.as,d=l(c,u.crossOrigin),p=typeof u.integrity=="string"?u.integrity:void 0,g=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;c==="style"?n.d.S(s,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:d,integrity:p,fetchPriority:g}):c==="script"&&n.d.X(s,{crossOrigin:d,integrity:p,fetchPriority:g,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},qe.preinitModule=function(s,u){if(typeof s=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var c=l(u.as,u.crossOrigin);n.d.M(s,{crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&n.d.M(s)},qe.preload=function(s,u){if(typeof s=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var c=u.as,d=l(c,u.crossOrigin);n.d.L(s,c,{crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},qe.preloadModule=function(s,u){if(typeof s=="string")if(u){var c=l(u.as,u.crossOrigin);n.d.m(s,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else n.d.m(s)},qe.requestFormReset=function(s){n.d.r(s)},qe.unstable_batchedUpdates=function(s,u){return s(u)},qe.useFormState=function(s,u,c){return a.H.useFormState(s,u,c)},qe.useFormStatus=function(){return a.H.useHostTransitionStatus()},qe.version="19.2.5",qe}var um;function e2(){if(um)return Us.exports;um=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Us.exports=QP(),Us.exports}var vi=e2();const Fv=hf(vi);var t2=F.div(({theme:e,$flexLayout:t=!1})=>[{background:e.background.content},t?{display:"inline-flex",marginInlineStart:"auto",alignSelf:"flex-end"}:{position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",zIndex:1}]),Lv=F.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none","@media (forced-colors: active)":{outline:"2px solid ButtonBorder",outlineOffset:"2px"}}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});Lv.displayName="ActionButton";var r2=({actionItems:e,flexLayout:t=!1,...r})=>h.createElement(t2,{...r,$flexLayout:t},e.map(({title:n,ariaLabel:o,className:i,onClick:a,disabled:l},s)=>h.createElement(Lv,{key:s,"aria-label":o,className:i,onClick:a,disabled:!!l},n)));function n2(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function kv(...e){return t=>e.forEach(r=>n2(r,t))}function $n(...e){return f.useCallback(kv(...e),e)}var Nv=f.forwardRef((e,t)=>{let{children:r,...n}=e,o=f.Children.toArray(r),i=o.find(i2);if(i){let a=i.props.children,l=o.map(s=>s===i?f.Children.count(a)>1?f.Children.only(null):f.isValidElement(a)?a.props.children:null:s);return le.jsx(hd,{...n,ref:t,children:f.isValidElement(a)?f.cloneElement(a,void 0,l):null})}return le.jsx(hd,{...n,ref:t,children:r})});Nv.displayName="Slot";var hd=f.forwardRef((e,t)=>{let{children:r,...n}=e;if(f.isValidElement(r)){let o=l2(r);return f.cloneElement(r,{...a2(n,r.props),ref:t?kv(t,o):o})}return f.Children.count(r)>1?f.Children.only(null):null});hd.displayName="SlotClone";var o2=({children:e})=>le.jsx(le.Fragment,{children:e});function i2(e){return f.isValidElement(e)&&e.type===o2}function a2(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)=>{i(...a),o(...a)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function l2(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 s2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ei=s2.reduce((e,t)=>{let r=f.forwardRef((n,o)=>{let{asChild:i,...a}=n,l=i?Nv:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),le.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),gd=globalThis?.document?f.useLayoutEffect:()=>{};function u2(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Si=e=>{let{present:t,children:r}=e,n=c2(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),i=$n(n.ref,d2(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:i}):null};Si.displayName="Presence";function c2(e){let[t,r]=f.useState(),n=f.useRef({}),o=f.useRef(e),i=f.useRef("none"),a=e?"mounted":"unmounted",[l,s]=u2(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{let u=Xi(n.current);i.current=l==="mounted"?u:"none"},[l]),gd(()=>{let u=n.current,c=o.current;if(c!==e){let d=i.current,p=Xi(u);e?s("MOUNT"):p==="none"||u?.display==="none"?s("UNMOUNT"):s(c&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),gd(()=>{if(t){let u=d=>{let p=Xi(n.current).includes(d.animationName);d.target===t&&p&&vi.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(i.current=Xi(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:f.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Xi(e){return e?.animationName||"none"}function d2(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)}function f2(e,t=[]){let r=[];function n(i,a){let l=f.createContext(a),s=r.length;r=[...r,a];function u(d){let{scope:p,children:g,...m}=d,y=p?.[e][s]||l,v=f.useMemo(()=>m,Object.values(m));return le.jsx(y.Provider,{value:v,children:g})}function c(d,p){let g=p?.[e][s]||l,m=f.useContext(g);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}let o=()=>{let i=r.map(a=>f.createContext(a));return function(a){let l=a?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[n,p2(o,...t)]}function p2(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){let i=n.reduce((a,{useScope:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function an(e){let t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>t.current?.(...r),[])}var h2=f.createContext(void 0);function g2(e){let t=f.useContext(h2);return e||t||"ltr"}function m2(e,[t,r]){return Math.min(r,Math.max(t,e))}function fn(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function y2(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Gf="ScrollArea",[Mv]=f2(Gf),[b2,Dt]=Mv(Gf),Bv=f.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...a}=e,[l,s]=f.useState(null),[u,c]=f.useState(null),[d,p]=f.useState(null),[g,m]=f.useState(null),[y,v]=f.useState(null),[b,E]=f.useState(0),[S,x]=f.useState(0),[A,w]=f.useState(!1),[C,R]=f.useState(!1),L=$n(t,T=>s(T)),I=g2(o);return le.jsx(b2,{scope:r,type:n,dir:I,scrollHideDelay:i,scrollArea:l,viewport:u,onViewportChange:c,content:d,onContentChange:p,scrollbarX:g,onScrollbarXChange:m,scrollbarXEnabled:A,onScrollbarXEnabledChange:w,scrollbarY:y,onScrollbarYChange:v,scrollbarYEnabled:C,onScrollbarYEnabledChange:R,onCornerWidthChange:E,onCornerHeightChange:x,children:le.jsx(Ei.div,{dir:I,...a,ref:L,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});Bv.displayName=Gf;var jv="ScrollAreaViewport",Hv=f.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:i,...a}=e,l=Dt(jv,r),s=f.useRef(null),u=$n(t,s,l.onViewportChange);return le.jsxs(le.Fragment,{children:[le.jsx("style",{dangerouslySetInnerHTML:{__html:`
606
+ [data-radix-scroll-area-viewport] {
607
+ scrollbar-width: none;
608
+ -ms-overflow-style: none;
609
+ -webkit-overflow-scrolling: touch;
610
+ }
611
+ [data-radix-scroll-area-viewport]::-webkit-scrollbar {
612
+ display: none;
613
+ }
614
+ :where([data-radix-scroll-area-viewport]) {
615
+ display: flex;
616
+ flex-direction: column;
617
+ align-items: stretch;
618
+ }
619
+ :where([data-radix-scroll-area-content]) {
620
+ flex-grow: 1;
621
+ }
622
+ `},nonce:i}),le.jsx(Ei.div,{"data-radix-scroll-area-viewport":"",...a,asChild:o,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:A2({asChild:o,children:n},c=>le.jsx("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:c}))})]})});Hv.displayName=jv;var ar="ScrollAreaScrollbar",Uv=f.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Dt(ar,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,l=e.orientation==="horizontal";return f.useEffect(()=>(l?i(!0):a(!0),()=>{l?i(!1):a(!1)}),[l,i,a]),o.type==="hover"?le.jsx(v2,{...n,ref:t,forceMount:r}):o.type==="scroll"?le.jsx(E2,{...n,ref:t,forceMount:r}):o.type==="auto"?le.jsx(zv,{...n,ref:t,forceMount:r}):o.type==="always"?le.jsx(Wf,{...n,ref:t}):null});Uv.displayName=ar;var v2=f.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Dt(ar,e.__scopeScrollArea),[i,a]=f.useState(!1);return f.useEffect(()=>{let l=o.scrollArea,s=0;if(l){let u=()=>{window.clearTimeout(s),a(!0)},c=()=>{s=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),le.jsx(Si,{present:r||i,children:le.jsx(zv,{"data-state":i?"visible":"hidden",...n,ref:t})})}),E2=f.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Dt(ar,e.__scopeScrollArea),i=e.orientation==="horizontal",a=jl(()=>s("SCROLL_END"),100),[l,s]=y2("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return f.useEffect(()=>{if(l==="idle"){let u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,s]),f.useEffect(()=>{let u=o.viewport,c=i?"scrollLeft":"scrollTop";if(u){let d=u[c],p=()=>{let g=u[c];d!==g&&(s("SCROLL"),a()),d=g};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[o.viewport,i,s,a]),le.jsx(Si,{present:r||l!=="hidden",children:le.jsx(Wf,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:fn(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:fn(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),zv=f.forwardRef((e,t)=>{let r=Dt(ar,e.__scopeScrollArea),{forceMount:n,...o}=e,[i,a]=f.useState(!1),l=e.orientation==="horizontal",s=jl(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;a(l?u:c)}},10);return Jn(r.viewport,s),Jn(r.content,s),le.jsx(Si,{present:n||i,children:le.jsx(Wf,{"data-state":i?"visible":"hidden",...o,ref:t})})}),Wf=f.forwardRef((e,t)=>{let{orientation:r="vertical",...n}=e,o=Dt(ar,e.__scopeScrollArea),i=f.useRef(null),a=f.useRef(0),[l,s]=f.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=qv(l.viewport,l.content),c={...n,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:p=>i.current=p,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:p=>a.current=p};function d(p,g){return _2(p,a.current,l,g)}return r==="horizontal"?le.jsx(S2,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){let p=o.viewport.scrollLeft,g=cm(p,l,o.dir);i.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollLeft=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollLeft=d(p,o.dir))}}):r==="vertical"?le.jsx(x2,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){let p=o.viewport.scrollTop,g=cm(p,l);i.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:p=>{o.viewport&&(o.viewport.scrollTop=p)},onDragScroll:p=>{o.viewport&&(o.viewport.scrollTop=d(p))}}):null}),S2=f.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=Dt(ar,e.__scopeScrollArea),[a,l]=f.useState(),s=f.useRef(null),u=$n(t,s,i.onScrollbarXChange);return f.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),le.jsx(Gv,{"data-orientation":"horizontal",...o,ref:u,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Bl(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(i.viewport){let p=i.viewport.scrollLeft+c.deltaX;e.onWheelScroll(p),Xv(p,d)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&a&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:el(a.paddingLeft),paddingEnd:el(a.paddingRight)}})}})}),x2=f.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=Dt(ar,e.__scopeScrollArea),[a,l]=f.useState(),s=f.useRef(null),u=$n(t,s,i.onScrollbarYChange);return f.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),le.jsx(Gv,{"data-orientation":"vertical",...o,ref:u,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Bl(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(i.viewport){let p=i.viewport.scrollTop+c.deltaY;e.onWheelScroll(p),Xv(p,d)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&a&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:el(a.paddingTop),paddingEnd:el(a.paddingBottom)}})}})}),[$2,Kv]=Mv(ar),Gv=f.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d,...p}=e,g=Dt(ar,r),[m,y]=f.useState(null),v=$n(t,L=>y(L)),b=f.useRef(null),E=f.useRef(""),S=g.viewport,x=n.content-n.viewport,A=an(c),w=an(s),C=jl(d,10);function R(L){if(b.current){let I=L.clientX-b.current.left,T=L.clientY-b.current.top;u({x:I,y:T})}}return f.useEffect(()=>{let L=I=>{let T=I.target;m?.contains(T)&&A(I,x)};return document.addEventListener("wheel",L,{passive:!1}),()=>document.removeEventListener("wheel",L,{passive:!1})},[S,m,x,A]),f.useEffect(w,[n,w]),Jn(m,C),Jn(g.content,C),le.jsx($2,{scope:r,scrollbar:m,hasThumb:o,onThumbChange:an(i),onThumbPointerUp:an(a),onThumbPositionChange:w,onThumbPointerDown:an(l),children:le.jsx(Ei.div,{...p,ref:v,style:{position:"absolute",...p.style},onPointerDown:fn(e.onPointerDown,L=>{L.button===0&&(L.target.setPointerCapture(L.pointerId),b.current=m.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),R(L))}),onPointerMove:fn(e.onPointerMove,R),onPointerUp:fn(e.onPointerUp,L=>{let I=L.target;I.hasPointerCapture(L.pointerId)&&I.releasePointerCapture(L.pointerId),document.body.style.webkitUserSelect=E.current,g.viewport&&(g.viewport.style.scrollBehavior=""),b.current=null})})})}),Qa="ScrollAreaThumb",Wv=f.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Kv(Qa,e.__scopeScrollArea);return le.jsx(Si,{present:r||o.hasThumb,children:le.jsx(w2,{ref:t,...n})})}),w2=f.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,i=Dt(Qa,r),a=Kv(Qa,r),{onThumbPositionChange:l}=a,s=$n(t,d=>a.onThumbChange(d)),u=f.useRef(),c=jl(()=>{u.current&&(u.current(),u.current=void 0)},100);return f.useEffect(()=>{let d=i.viewport;if(d){let p=()=>{if(c(),!u.current){let g=T2(d,l);u.current=g,l()}};return l(),d.addEventListener("scroll",p),()=>d.removeEventListener("scroll",p)}},[i.viewport,c,l]),le.jsx(Ei.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:fn(e.onPointerDownCapture,d=>{let p=d.target.getBoundingClientRect(),g=d.clientX-p.left,m=d.clientY-p.top;a.onThumbPointerDown({x:g,y:m})}),onPointerUp:fn(e.onPointerUp,a.onThumbPointerUp)})});Wv.displayName=Qa;var Vf="ScrollAreaCorner",Vv=f.forwardRef((e,t)=>{let r=Dt(Vf,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?le.jsx(C2,{...e,ref:t}):null});Vv.displayName=Vf;var C2=f.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=Dt(Vf,r),[i,a]=f.useState(0),[l,s]=f.useState(0),u=!!(i&&l);return Jn(o.scrollbarX,()=>{let c=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(c),s(c)}),Jn(o.scrollbarY,()=>{let c=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(c),a(c)}),u?le.jsx(Ei.div,{...n,ref:t,style:{width:i,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function el(e){return e?parseInt(e,10):0}function qv(e,t){let r=e/t;return isNaN(r)?0:r}function Bl(e){let t=qv(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function _2(e,t,r,n="ltr"){let o=Bl(r),i=o/2,a=t||i,l=o-a,s=r.scrollbar.paddingStart+a,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,c=r.content-r.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return Yv([s,u],d)(e)}function cm(e,t,r="ltr"){let n=Bl(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,l=i-n,s=r==="ltr"?[0,a]:[a*-1,0],u=m2(e,s);return Yv([0,a],[0,l])(u)}function Yv(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Xv(e,t){return e>0&&e<t}var T2=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function o(){let i={left:e.scrollLeft,top:e.scrollTop},a=r.left!==i.left,l=r.top!==i.top;(a||l)&&t(),r=i,n=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(n)};function jl(e,t){let r=an(e),n=f.useRef(0);return f.useEffect(()=>()=>window.clearTimeout(n.current),[]),f.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Jn(e,t){let r=an(t);gd(()=>{let n=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function A2(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let o=f.Children.only(n);return f.cloneElement(o,{children:typeof t=="function"?t(o.props.children):t})}var O2=Bv,R2=Hv,D2=Uv,P2=Wv,I2=Vv,F2=F(O2)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),L2=F(R2)(({focusable:e,theme:t})=>({width:"100%",height:"100%","&:focus":e?{outline:`2px solid ${t.color.secondary}`,outlineOffset:-2}:{}})),dm=F(D2)(({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",zIndex:1,'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:t==="true"&&r==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&r==="true"?0:e}})),fm=F(P2)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out",zIndex:1,"&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),qf=f.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,scrollPadding:i=0,className:a,focusable:l=!1},s)=>h.createElement(F2,{scrollbarsize:o,offset:n,className:a},h.createElement(L2,{ref:s,style:{scrollPadding:i},tabIndex:l?0:void 0,focusable:l},e),t&&h.createElement(dm,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},h.createElement(fm,null)),r&&h.createElement(dm,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},h.createElement(fm,null)),t&&r&&h.createElement(I2,null)));qf.displayName="ScrollArea";function k2({children:e="Copy",childrenOnCopy:t="Copied!",content:r,onCopy:n,ariaLabel:o=!1,ariaLabelOnCopy:i=!1,duration:a=3e3}){let[l,s]=f.useState(!1),u=f.useRef(null);f.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);let c=f.useCallback(d=>{u.current&&clearTimeout(u.current);let p=typeof i=="string"?i:"Copied to clipboard";navigator.clipboard?.writeText(r).then(()=>{n?.(d),s(!0),nd(p,"polite"),u.current=setTimeout(()=>{s(!1),k5("polite"),u.current=null},a)})},[r,n,i,a]);return{children:l?t:e,buttonProps:f.useMemo(()=>({onClick:c,ariaLabel:l?i:o}),[c,l,i,o])}}function N2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var M2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),B2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),j2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),H2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),Jv=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),U2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z",fill:e}))),pm=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),z2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z",fill:e}))),Zv=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M11.146 2.146a.5.5 0 11.707.707L7.708 7l4.147 4.146a.5.5 0 11-.707.707L7 7.708l-4.146 4.147a.5.5 0 01-.707-.708L6.293 7 2.147 2.853a.5.5 0 11.707-.707L7 6.293l4.146-4.147z",fill:e}))),K2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),G2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),W2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}),f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),V2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}))),q2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),f.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),Y2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",fill:e}),f.createElement("path",{d:"M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z",fill:e}))),X2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),Qv=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),J2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),eE=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),Z2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z",fill:e}))),Q2=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z",fill:e}))),e3=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e}))),t3=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z",fill:e}))),r3=f.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>f.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},f.createElement("path",{d:"M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z",fill:e}))),n3=class extends $l{constructor(e){super({name:"StatusTypeIdMismatchError",category:"PREVIEW_API",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},tE="status-value:",o3=["status-value:pending","status-value:success","status-value:new","status-value:modified","status-value:affected","status-value:reviewing","status-value:warning","status-value:error","status-value:unknown"],i3=e=>{if(e==="related")return"status-value:affected";let t=`${tE}${e}`;return o3.includes(t)?t:void 0},hm=e=>e==="status-value:affected"?"related":e.slice(tE.length),a3={id:"storybook/status",leader:!0,initialState:{}},zs={SELECT:"select"};function l3(e){let t={};for(let r of Object.values(e))for(let n of Object.values(r))t[n.value]=(t[n.value]??0)+1;return t}function s3({universalStatusStore:e,useUniversalStore:t,environment:r}){let n={getAll(){return e.getState()},set(i){e.setState(a=>{let l={...a};for(let s of i){let{storyId:u,typeId:c}=s;l[u]={...l[u]??{},[c]:s}}return l})},onAllStatusChange(i){return e.onStateChange((a,l)=>{i(a,l)})},onSelect(i){return e.subscribe(zs.SELECT,a=>{i(a.payload)})},selectStatuses:i=>{e.send({type:zs.SELECT,payload:i})},unset(i){if(!i){e.setState({});return}e.setState(a=>{let l={...a};for(let s of i)delete l[s];return l})},typeId:void 0},o=i=>({getAll:n.getAll,set(a){e.setState(l=>{let s={...l};for(let u of a){let{storyId:c}=u;if(u.typeId!==i)switch(r){case"server":throw new R_({status:u,typeId:i});case"manager":throw new N_({status:u,typeId:i});default:throw new n3({status:u,typeId:i})}s[c]={...s[c]??{},[i]:u}}return s})},onAllStatusChange:n.onAllStatusChange,onSelect(a){return e.subscribe(zs.SELECT,l=>{l.payload.some(s=>s.typeId===i)&&a(l.payload)})},unset(a){e.setState(l=>{let s={...l};for(let u in s)if(s[u]?.[i]&&(!a||a?.includes(u))){let{[i]:c,...d}=s[u];s[u]=d}return s})},typeId:i});return t?{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e,useStatusStore:i=>t(e,i)[0]}:{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e}}var u3="collection",rE=e=>e==="/review/"||e==="/review",c3=(e,t)=>!!e&&e.startsWith("/story/")&&t?.[u3]!==void 0,nE=(e,t)=>!!e&&(rE(e)||e.startsWith("/review/")||c3(e,t)),gm=new Map,d3="UNIVERSAL_STORE:",wt={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},rn=class ee{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=()=>(this.debug("getState",{state:this.state}),this.state),this.subscribe=(n,o)=>{let i=typeof n=="function",a=i?"*":n,l=i?n:o;if(this.debug("subscribe",{eventType:a,listener:l}),!l)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(a)||this.listeners.set(a,new Set),this.listeners.get(a).add(l),()=>{this.debug("unsubscribe",{eventType:a,listener:l}),this.listeners.has(a)&&(this.listeners.get(a).delete(l),this.listeners.get(a)?.size===0&&this.listeners.delete(a))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==ee.Status.READY)throw new TypeError(Tt`Cannot send event before store is ready. You can get the current status with store.status,
623
+ or await store.readyPromise to wait for the store to be ready before sending events.
624
+ ${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},this.debugging=t.debug??!1,!ee.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(ee.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?ee.ActorType.LEADER:ee.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${d3}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===ee.ActorType.LEADER)this.syncing={state:wt.RESOLVED,promise:Promise.resolve()};else{let n,o,i=new Promise((a,l)=>{n=()=>{this.syncing.state===wt.PENDING&&(this.syncing.state=wt.RESOLVED,a())},o=s=>{this.syncing.state===wt.PENDING&&(this.syncing.state=wt.REJECTED,l(s))}});this.syncing={state:wt.PENDING,promise:i,resolve:n,reject:o}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=r?.channel??ee.preparation.channel,this.environment=r?.environment??ee.preparation.environment,this.channel&&this.environment?(r||ee.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):ee.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,i)=>{t=a=>{o(a)},r=(...a)=>{i(a)}});ee.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??ee.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return ee.Status.UNPREPARED;switch(this.syncing?.state){case wt.PENDING:case void 0:return ee.Status.SYNCING;case wt.REJECTED:return ee.Status.ERROR;case wt.RESOLVED:default:return ee.Status.READY}}untilReady(){let t=this.channel&&this.environment?Promise.resolve():ee.preparation.promise;return Promise.all([t,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(Tt`[UniversalStore]
625
+ create`,{options:t});let r=gm.get(t.id);if(r)return console.warn(Tt`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
626
+ You should reuse the existing instance instead of trying to create a new one.`),r;ee.isInternalConstructing=!0;let n=new ee(t);return gm.set(t.id,n),n}static __prepare(t,r){ee.preparation.channel=t,ee.preparation.environment=r,ee.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==ee.Status.READY)throw new TypeError(Tt`Cannot set state before store is ready. You can get the current status with store.status,
627
+ or await store.readyPromise to wait for the store to be ready before sending events.
628
+ ${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:ee.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(ee.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),this.channel?.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:!!t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===ee.ActorType.LEADER?this.emitToChannel({type:ee.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:ee.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:ee.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new M_(this.id))},1e3))}emitToListeners(t,r){let n=this.listeners.get(t.type),o=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:o}),[...n??[],...o??[]].forEach(i=>i(t,r))}handleChannelEvents(t){let{event:r,eventInfo:n}=t;if([n.actor.id,n.forwardingActor?.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(this.syncing?.state===wt.PENDING&&r.type!==ee.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===ee.ActorType.LEADER){let o=!0;switch(r.type){case ee.InternalEventType.EXISTING_STATE_REQUEST:o=!1;let i={type:ee.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:i}),this.emitToChannel(i,{actor:this.actor}),this.emitToListeners(i,{actor:this.actor});break;case ee.InternalEventType.LEADER_CREATED:o=!1,this.syncing.state=wt.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(Tt`Detected multiple UniversalStore leaders created with the same id "${this.id}".
629
+ Only one leader can exists at a time, your stores are now in an invalid state.
630
+ Leaders detected:
631
+ this: ${JSON.stringify(this.actor,null,2)}
632
+ other: ${JSON.stringify(n.actor,null,2)}`);break}o&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===ee.ActorType.FOLLOWER)switch(r.type){case ee.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==wt.PENDING)break;this.syncing.resolve?.();let o={type:ee.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(o,n);break}r.type===ee.InternalEventType.SET_STATE&&(this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state),this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(Tt`[UniversalStore::${this.id}::${this.environment??ee.Environment.UNKNOWN}]
633
+ ${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){ee.preparation.reject(new Error("reset")),ee.setupPreparationPromise(),ee.isInternalConstructing=!1}};rn.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},rn.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},rn.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},rn.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},rn.isInternalConstructing=!1,rn.setupPreparationPromise();var Yf=rn,f3=Object.create,oE=Object.defineProperty,p3=Object.getOwnPropertyDescriptor,iE=Object.getOwnPropertyNames,h3=Object.getPrototypeOf,g3=Object.prototype.hasOwnProperty,ne=(e,t)=>function(){return t||(0,e[iE(e)[0]])((t={exports:{}}).exports,t),t.exports},m3=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of iE(t))!g3.call(e,o)&&o!==r&&oE(e,o,{get:()=>t[o],enumerable:!(n=p3(t,o))||n.enumerable});return e},Xf=(e,t,r)=>(r=e!=null?f3(h3(e)):{},m3(!e||!e.__esModule?oE(r,"default",{value:e,enumerable:!0}):r,e)),y3=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],b3=["detail"];function v3(e){let t=y3.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of b3.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var aE=ne({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),E3=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),S3=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),x3=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),$3=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),w3=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Jf=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),C3=ne({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),_3=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),T3=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),A3=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),O3=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),R3=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),D3=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),P3=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),I3=ne({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=P3();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),F3=ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Zf=ne({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=F3();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),L3=ne({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),lE=ne({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var 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}}}),sE=ne({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=lE();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),uE=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),cE=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=aE();t.exports=r.getPrototypeOf||null}}),k3=ne({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,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}}}),Hl=ne({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=k3();t.exports=Function.prototype.bind||r}}),Qf=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),dE=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),N3=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),M3=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Hl(),n=dE(),o=Qf(),i=N3();t.exports=i||r.call(o,n)}}),fE=ne({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Hl(),n=Jf(),o=Qf(),i=M3();t.exports=function(a){if(a.length<1||typeof a[0]!="function")throw new n("a function is required");return i(r,o,a)}}}),B3=ne({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=fE(),n=Zf(),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}}),j3=ne({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=uE(),n=cE(),o=B3();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}}),pE=ne({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Hl();t.exports=o.call(r,n)}}),H3=ne({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=aE(),o=E3(),i=S3(),a=x3(),l=$3(),s=w3(),u=Jf(),c=C3(),d=_3(),p=T3(),g=A3(),m=O3(),y=R3(),v=D3(),b=I3(),E=Function,S=function(Z){try{return E('"use strict"; return ('+Z+").constructor;")()}catch{}},x=Zf(),A=L3(),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=sE()(),L=j3(),I=cE(),T=uE(),M=dE(),H=Qf(),$={},_=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=Hl(),D=pE(),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}}}),ep=ne({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=H3(),n=fE(),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}}}),U3=ne({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=lE();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),hE=ne({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=ep(),n=U3()(),o=pE(),i=Zf(),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}}),z3=ne({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var 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)}}}),K3=ne({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=ep(),n=hE(),o=r("RegExp.prototype.exec"),i=Jf();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(l){return o(a,l)!==null}}}}),G3=ne({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=ep(),n=r("Object.prototype.toString"),o=sE()(),i=K3();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}}),W3=Xf(hE()),V3=Xf(z3()),q3=Xf(G3());function Y3(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var X3=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,J3=X3,Z3=typeof self=="object"&&self&&self.Object===Object&&self,Q3=J3||Z3||Function("return this")(),tp=Q3,eI=tp.Symbol,Zn=eI,gE=Object.prototype,tI=gE.hasOwnProperty,rI=gE.toString,Ro=Zn?Zn.toStringTag:void 0;function nI(e){var t=tI.call(e,Ro),r=e[Ro];try{e[Ro]=void 0;var n=!0}catch{}var o=rI.call(e);return n&&(t?e[Ro]=r:delete e[Ro]),o}var oI=nI,iI=Object.prototype,aI=iI.toString;function lI(e){return aI.call(e)}var sI=lI,uI="[object Null]",cI="[object Undefined]",mm=Zn?Zn.toStringTag:void 0;function dI(e){return e==null?e===void 0?cI:uI:mm&&mm in Object(e)?oI(e):sI(e)}var mE=dI;function fI(e){return e!=null&&typeof e=="object"}var pI=fI,hI="[object Symbol]";function gI(e){return typeof e=="symbol"||pI(e)&&mE(e)==hI}var rp=gI;function mI(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var yI=mI,bI=Array.isArray,np=bI,ym=Zn?Zn.prototype:void 0,bm=ym?ym.toString:void 0;function yE(e){if(typeof e=="string")return e;if(np(e))return yI(e,yE)+"";if(rp(e))return bm?bm.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var vI=yE;function EI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bE=EI,SI="[object AsyncFunction]",xI="[object Function]",$I="[object GeneratorFunction]",wI="[object Proxy]";function CI(e){if(!bE(e))return!1;var t=mE(e);return t==xI||t==$I||t==SI||t==wI}var _I=CI,TI=tp["__core-js_shared__"],Ks=TI,vm=(function(){var e=/[^.]+$/.exec(Ks&&Ks.keys&&Ks.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function AI(e){return!!vm&&vm in e}var OI=AI,RI=Function.prototype,DI=RI.toString;function PI(e){if(e!=null){try{return DI.call(e)}catch{}try{return e+""}catch{}}return""}var II=PI,FI=/[\\^$.*+?()[\]{}|]/g,LI=/^\[object .+?Constructor\]$/,kI=Function.prototype,NI=Object.prototype,MI=kI.toString,BI=NI.hasOwnProperty,jI=RegExp("^"+MI.call(BI).replace(FI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function HI(e){if(!bE(e)||OI(e))return!1;var t=_I(e)?jI:LI;return t.test(II(e))}var UI=HI;function zI(e,t){return e?.[t]}var KI=zI;function GI(e,t){var r=KI(e,t);return UI(r)?r:void 0}var vE=GI;function WI(e,t){return e===t||e!==e&&t!==t}var VI=WI,qI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YI=/^\w*$/;function XI(e,t){if(np(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||rp(e)?!0:YI.test(e)||!qI.test(e)||t!=null&&e in Object(t)}var JI=XI,ZI=vE(Object,"create"),oi=ZI;function QI(){this.__data__=oi?oi(null):{},this.size=0}var e4=QI;function t4(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var r4=t4,n4="__lodash_hash_undefined__",o4=Object.prototype,i4=o4.hasOwnProperty;function a4(e){var t=this.__data__;if(oi){var r=t[e];return r===n4?void 0:r}return i4.call(t,e)?t[e]:void 0}var l4=a4,s4=Object.prototype,u4=s4.hasOwnProperty;function c4(e){var t=this.__data__;return oi?t[e]!==void 0:u4.call(t,e)}var d4=c4,f4="__lodash_hash_undefined__";function p4(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=oi&&t===void 0?f4:t,this}var h4=p4;function ho(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])}}ho.prototype.clear=e4;ho.prototype.delete=r4;ho.prototype.get=l4;ho.prototype.has=d4;ho.prototype.set=h4;var Em=ho;function g4(){this.__data__=[],this.size=0}var m4=g4;function y4(e,t){for(var r=e.length;r--;)if(VI(e[r][0],t))return r;return-1}var Ul=y4,b4=Array.prototype,v4=b4.splice;function E4(e){var t=this.__data__,r=Ul(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():v4.call(t,r,1),--this.size,!0}var S4=E4;function x4(e){var t=this.__data__,r=Ul(t,e);return r<0?void 0:t[r][1]}var $4=x4;function w4(e){return Ul(this.__data__,e)>-1}var C4=w4;function _4(e,t){var r=this.__data__,n=Ul(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var T4=_4;function go(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])}}go.prototype.clear=m4;go.prototype.delete=S4;go.prototype.get=$4;go.prototype.has=C4;go.prototype.set=T4;var A4=go,O4=vE(tp,"Map"),R4=O4;function D4(){this.size=0,this.__data__={hash:new Em,map:new(R4||A4),string:new Em}}var P4=D4;function I4(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var F4=I4;function L4(e,t){var r=e.__data__;return F4(t)?r[typeof t=="string"?"string":"hash"]:r.map}var zl=L4;function k4(e){var t=zl(this,e).delete(e);return this.size-=t?1:0,t}var N4=k4;function M4(e){return zl(this,e).get(e)}var B4=M4;function j4(e){return zl(this,e).has(e)}var H4=j4;function U4(e,t){var r=zl(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var z4=U4;function mo(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])}}mo.prototype.clear=P4;mo.prototype.delete=N4;mo.prototype.get=B4;mo.prototype.has=H4;mo.prototype.set=z4;var EE=mo,K4="Expected a function";function op(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(K4);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(op.Cache||EE),r}op.Cache=EE;var G4=op,W4=500;function V4(e){var t=G4(e,function(n){return r.size===W4&&r.clear(),n}),r=t.cache;return t}var q4=V4,Y4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,X4=/\\(\\)?/g,J4=q4(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Y4,function(r,n,o,i){t.push(o?i.replace(X4,"$1"):n||r)}),t}),Z4=J4;function Q4(e){return e==null?"":vI(e)}var eF=Q4;function tF(e,t){return np(e)?e:JI(e,t)?[e]:Z4(eF(e))}var rF=tF;function nF(e){if(typeof e=="string"||rp(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var oF=nF;function iF(e,t){t=rF(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[oF(t[r++])];return r&&r==n?e:void 0}var aF=iF;function lF(e,t,r){var n=e==null?void 0:aF(e,t);return n===void 0?r:n}var sF=lF,ip=Y3,uF=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,cF=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function SE(e){if(!ip(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=v3(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 dF=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 uF.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,W3.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,V3.default)(a))return;if((0,q3.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:SE(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}}},fF=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:i,container:a,replacement:l})=>{let s=cF(l)?JSON.parse(l):l.split(".");s.length===0?a[i]=r:a[i]=sF(r,s)})),n==="_constructor-name_")return o;if(ip(o)&&o.__isConvertedError__){let{message:i,...a}=o.errorProperties,l=new Error(i);return Object.assign(l,a),l}if(typeof o=="string"&&o.startsWith("_regexp_")&&e.allowRegExp){let[,i,a]=o.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(a,i)}return typeof o=="string"&&o.startsWith("_date_")&&e.allowDate?new Date(o.replace("_date_","")):typeof o=="string"&&o.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:o.replace(/^_duplicate_/,"")}),null):typeof o=="string"&&o.startsWith("_symbol_")&&e.allowSymbol?Symbol(o.replace("_symbol_","")):typeof o=="string"&&o.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(o.replace("_gsymbol_","")):typeof o=="string"&&o==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof o=="string"&&o==="_Infinity_"?Number.POSITIVE_INFINITY:typeof o=="string"&&o==="_NaN_"?Number.NaN:typeof o=="string"&&o.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(o.replace("_bigint_","")):o}},xE={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},pF=(e,t={})=>{let r={...xE,...t};return JSON.stringify(SE(e),dF(r),t.space)},hF=()=>{let e=new Map;return function t(r){ip(r)&&Object.entries(r).forEach(([n,o])=>{o==="_undefined_"?r[n]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((n,o)=>{n==="_undefined_"?(e.set(n,!0),r[o]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},gF=(e,t={})=>{let r={...xE,...t},n=JSON.parse(e,fF(r));return hF()(n),n},Sm=Object.prototype.hasOwnProperty;function xm(e,t,r){for(r of e.keys())if(tr(r,t))return r}function tr(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&tr(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=xm(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=xm(t,o),!o)||!tr(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Sm.call(e,r)&&++n&&!Sm.call(t,r)||!(r in t)||!tr(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function $m(e,t){let r=[],n=[];for(let o=0;o<e.length;o++){let i=e[o];t(i)?r.push(i):n.push(i)}return[r,n]}function mF(e,t){let r={};for(let n=0;n<e.length;n++){let o=e[n],i=t(o);r[i]=(r[i]??0)+1}return r}const{once:yF}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ap=vt(Sn(),1),bF=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/;(0,ap.default)(1e3)(e=>{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,r,n,o]=e.toLowerCase().match(bF)||[];r?Object.assign(t,{viewMode:r,storyId:o,refId:n}):rE(e)&&(t.viewMode="review")}return t});var Ca=Symbol("Deeply equal"),md=(e,t)=>{if(typeof e!=typeof t)return t;if(Zt(e,t))return Ca;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,i)=>{let a=md(e[i],o);return a!==Ca&&(n[i]=a),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Ba(e)&&Ba(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=md(e?.[n],t?.[n]);return o===Ca?r:Object.assign(r,{[n]:o})},{}):t},wm=/^[a-zA-Z0-9 _-]*$/,vF=/^-?[0-9]+(\.[0-9]+)?$/,$E=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,wE=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,yd=(e="",t)=>e===null||e===""||!wm.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?wm.test(t)||vF.test(t)||$E.test(t)||wE.test(t):Array.isArray(t)?t.every(r=>yd(e,r)):Ba(t)?Object.entries(t).every(([r,n])=>yd(r,n)):!1,bd=e=>e===void 0?"!undefined":e===null?"!null":typeof e=="string"?$E.test(e)?`!hex(${e.slice(1)})`:wE.test(e)?`!${e.replace(/[\s%]/g,"")}`:e:typeof e=="boolean"?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(bd):Ba(e)?Object.entries(e).reduce((t,[r,n])=>Object.assign(t,{[r]:bd(n)}),{}):e,EF=e=>{switch(e){case"%20":return"+";case"%5B":return"[";case"%5D":return"]";case"%2C":return",";case"%3A":return":"}return e},SF=/%[0-9A-F]{2}/g,Cm=(e,t)=>{let r=md(e,t);if(!r||r===Ca)return"";let n=Object.entries(r).reduce((o,[i,a])=>yd(i,a)?Object.assign(o,{[i]:a}):(yF.warn(Tt`
634
+ Omitted potentially unsafe URL args.
635
+
636
+ More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url
637
+ `),o),{});return Wc(bd(n),{delimiter:";",nesting:!0,nestingSyntax:"js"}).replace(SF,EF).split(";").map(o=>o.replace("=",":")).join(";")},xF=(0,ap.default)(1e3)(e=>e!==void 0?yT(e):{}),lp=e=>xF(e?.search?e.search.slice(1):"");(0,ap.default)(1e3)((e,t,r=!0)=>{if(r){if(typeof t!="string")throw new Error("startsWith only works with string targets");return e&&e.startsWith(t)?{path:e}:null}let n=typeof t=="string"&&e===t,o=e&&t&&e.match(t);return n||o?{path:e}:null});const{global:$F}=__STORYBOOK_MODULE_GLOBAL__;function vd(){return vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vd.apply(this,arguments)}var _m;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(_m||(_m={}));function Ot(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ed(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function CE(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var Tm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Tm||(Tm={}));function Sd(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function wF(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?CE(e):e;return{pathname:r?r.startsWith("/")?r:CF(r,t):t,search:_F(n),hash:TF(o)}}function CF(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function Gs(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function _E(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function TE(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=CE(e):(o=vd({},e),Ot(!o.pathname||!o.pathname.includes("?"),Gs("?","pathname","search",o)),Ot(!o.pathname||!o.pathname.includes("#"),Gs("#","pathname","hash",o)),Ot(!o.search||!o.search.includes("#"),Gs("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(n||a==null)l=r;else{let d=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;o.pathname=p.join("/")}l=d>=0?t[d]:"/"}let s=wF(o,l),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var sp=e=>e.join("/").replace(/\/\/+/g,"/"),_F=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function AF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var AE=["post","put","patch","delete"];new Set(AE);var OF=["get",...AE];new Set(OF);function xd(){return xd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xd.apply(this,arguments)}var up=f.createContext(null),OE=f.createContext(null);f.createContext(null);var wn=f.createContext(null),RE=f.createContext(null),xi=f.createContext({outlet:null,matches:[],isDataRoute:!1}),RF=f.createContext(null);function DF(e,t){let{relative:r}=t===void 0?{}:t;cp()||Ot(!1);let{basename:n,navigator:o}=f.useContext(wn),{hash:i,pathname:a,search:l}=Kl(e,{relative:r}),s=a;return n!=="/"&&(s=a==="/"?n:sp([n,a])),o.createHref({pathname:s,search:l,hash:i})}function cp(){return f.useContext(RE)!=null}function $i(){return cp()||Ot(!1),f.useContext(RE).location}function DE(e){f.useContext(wn).static||f.useLayoutEffect(e)}function PF(){let{isDataRoute:e}=f.useContext(xi);return e?jF():IF()}function IF(){cp()||Ot(!1);let e=f.useContext(up),{basename:t,navigator:r}=f.useContext(wn),{matches:n}=f.useContext(xi),{pathname:o}=$i(),i=JSON.stringify(_E(n).map(l=>l.pathnameBase)),a=f.useRef(!1);return DE(()=>{a.current=!0}),f.useCallback(function(l,s){if(s===void 0&&(s={}),!a.current)return;if(typeof l=="number"){r.go(l);return}let u=TE(l,JSON.parse(i),o,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:sp([t,u.pathname])),(s.replace?r.replace:r.push)(u,s.state,s)},[t,r,i,o,e])}f.createContext(null);function Kl(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=f.useContext(xi),{pathname:o}=$i(),i=JSON.stringify(_E(n).map(a=>a.pathnameBase));return f.useMemo(()=>TE(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function FF(){let e=BF(),t=AF(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),r?f.createElement("pre",{style:o},r):null,null)}f.createElement(FF,null);var PE=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(PE||{}),ii=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(ii||{});function LF(e){let t=f.useContext(up);return t||Ot(!1),t}function kF(e){let t=f.useContext(OE);return t||Ot(!1),t}function NF(e){let t=f.useContext(xi);return t||Ot(!1),t}function dp(e){let t=NF(),r=t.matches[t.matches.length-1];return r.route.id||Ot(!1),r.route.id}function MF(){return dp(ii.UseRouteId)}function BF(){var e;let t=f.useContext(RF),r=kF(ii.UseRouteError),n=dp(ii.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function jF(){let{router:e}=LF(PE.UseNavigateStable),t=dp(ii.UseNavigateStable),r=f.useRef(!1);return DE(()=>{r.current=!0}),f.useCallback(function(n,o){o===void 0&&(o={}),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,xd({fromRouteId:t},o)))},[e,t])}var HF=(function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e})(HF||{});new Promise(()=>{});function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yn.apply(this,arguments)}function fp(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var _a="get",Ws="application/x-www-form-urlencoded";function Gl(e){return e!=null&&typeof e.tagName=="string"}function UF(e){return Gl(e)&&e.tagName.toLowerCase()==="button"}function zF(e){return Gl(e)&&e.tagName.toLowerCase()==="form"}function KF(e){return Gl(e)&&e.tagName.toLowerCase()==="input"}function GF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function WF(e,t){return e.button===0&&(!t||t==="_self")&&!GF(e)}var Ji=null;function VF(){if(Ji===null)try{new FormData(document.createElement("form"),0),Ji=!1}catch{Ji=!0}return Ji}var qF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vs(e){return e!=null&&!qF.has(e)?null:e}function YF(e,t){let r,n,o,i,a;if(zF(e)){let l=e.getAttribute("action");n=l?Sd(l,t):null,r=e.getAttribute("method")||_a,o=Vs(e.getAttribute("enctype"))||Ws,i=new FormData(e)}else if(UF(e)||KF(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(n=s?Sd(s,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||_a,o=Vs(e.getAttribute("formenctype"))||Vs(l.getAttribute("enctype"))||Ws,i=new FormData(l,e),!VF()){let{name:u,type:c,value:d}=e;if(c==="image"){let p=u?u+".":"";i.append(p+"x","0"),i.append(p+"y","0")}else u&&i.append(u,d)}}else{if(Gl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=_a,n=null,o=Ws,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:a}}var XF=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],JF=["aria-current","caseSensitive","className","end","style","to","children"],ZF=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"],QF=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",e6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,t6=f.forwardRef(function(e,t){let{onClick:r,relative:n,reloadDocument:o,replace:i,state:a,target:l,to:s,preventScrollReset:u}=e,c=fp(e,XF),{basename:d}=f.useContext(wn),p,g=!1;if(typeof s=="string"&&e6.test(s)&&(p=s,QF))try{let b=new URL(window.location.href),E=s.startsWith("//")?new URL(b.protocol+s):new URL(s),S=Sd(E.pathname,d);E.origin===b.origin&&S!=null?s=S+E.search+E.hash:g=!0}catch{}let m=DF(s,{relative:n}),y=o6(s,{replace:i,state:a,target:l,preventScrollReset:u,relative:n});function v(b){r&&r(b),b.defaultPrevented||y(b)}return f.createElement("a",yn({},c,{href:p||m,onClick:g||o?r:v,ref:t,target:l}))});f.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:o="",end:i=!1,style:a,to:l,children:s}=e,u=fp(e,JF),c=Kl(l,{relative:u.relative}),d=$i(),p=f.useContext(OE),{navigator:g}=f.useContext(wn),m=g.encodeLocation?g.encodeLocation(c).pathname:c.pathname,y=d.pathname,v=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(y=y.toLowerCase(),v=v?v.toLowerCase():null,m=m.toLowerCase());let b=y===m||!i&&y.startsWith(m)&&y.charAt(m.length)==="/",E=v!=null&&(v===m||!i&&v.startsWith(m)&&v.charAt(m.length)==="/"),S=b?r:void 0,x;typeof o=="function"?x=o({isActive:b,isPending:E}):x=[o,b?"active":null,E?"pending":null].filter(Boolean).join(" ");let A=typeof a=="function"?a({isActive:b,isPending:E}):a;return f.createElement(t6,yn({},u,{"aria-current":S,className:x,ref:t,style:A,to:l}),typeof s=="function"?s({isActive:b,isPending:E}):s)});f.forwardRef((e,t)=>{let r=a6();return f.createElement(r6,yn({},e,{submit:r,ref:t}))});var r6=f.forwardRef((e,t)=>{let{reloadDocument:r,replace:n,state:o,method:i=_a,action:a,onSubmit:l,submit:s,relative:u,preventScrollReset:c}=e,d=fp(e,ZF),p=i.toLowerCase()==="get"?"get":"post",g=l6(a,{relative:u});return f.createElement("form",yn({ref:t,method:p,action:g,onSubmit:r?l:m=>{if(l&&l(m),m.defaultPrevented)return;m.preventDefault();let y=m.nativeEvent.submitter,v=y?.getAttribute("formmethod")||i;s(y||m.currentTarget,{method:v,replace:n,state:o,relative:u,preventScrollReset:c})}},d))}),$d;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})($d||($d={}));var Am;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Am||(Am={}));function n6(e){let t=f.useContext(up);return t||Ot(!1),t}function o6(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,l=PF(),s=$i(),u=Kl(e,{relative:a});return f.useCallback(c=>{if(WF(c,r)){c.preventDefault();let d=n!==void 0?n:Ed(s)===Ed(u);l(e,{replace:d,state:o,preventScrollReset:i,relative:a})}},[s,l,u,n,o,r,e,i,a])}function i6(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function a6(){let{router:e}=n6($d.UseSubmit),{basename:t}=f.useContext(wn),r=MF();return f.useCallback(function(n,o){o===void 0&&(o={}),i6();let{action:i,method:a,encType:l,formData:s,body:u}=YF(n,t);e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:s,body:u,formMethod:o.method||a,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:r})},[e,t,r])}function l6(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=f.useContext(wn),o=f.useContext(xi);o||Ot(!1);let[i]=o.matches.slice(-1),a=yn({},Kl(e||".",{relative:r})),l=$i();if(e==null&&(a.search=l.search,i.route.index)){let s=new URLSearchParams(a.search);s.delete("index"),a.search=s.toString()?"?"+s.toString():""}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:sp([n,a.pathname])),Ed(a)}var{document:WJ}=$F,Zi={exports:{}},qs,Om;function Wl(){if(Om)return qs;Om=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,o=t-6;return qs={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},qs}var Ys,Rm;function Vl(){if(Rm)return Ys;Rm=1;var e={};return Ys=typeof process=="object"&&e&&e.NODE_DEBUG&&/\bsemver\b/i.test(e.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},Ys}var Dm;function wi(){return Dm||(Dm=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=Wl(),i=Vl();t=e.exports={};const a=t.re=[],l=t.safeRe=[],s=t.src=[],u=t.safeSrc=[],c=t.t={};let d=0;const p="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",o],[p,n]],m=v=>{for(const[b,E]of g)v=v.split(`${b}*`).join(`${b}{0,${E}}`).split(`${b}+`).join(`${b}{1,${E}}`);return v},y=(v,b,E)=>{const S=m(b),x=d++;i(v,x,b),c[v]=x,s[x]=b,u[x]=S,a[x]=new RegExp(b,E?"g":void 0),l[x]=new RegExp(S,E?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),y("MAINVERSION",`(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})\\.(${s[c.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})\\.(${s[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${s[c.NONNUMERICIDENTIFIER]}|${s[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${s[c.PRERELEASEIDENTIFIER]}(?:\\.${s[c.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${s[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[c.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${p}+`),y("BUILD",`(?:\\+(${s[c.BUILDIDENTIFIER]}(?:\\.${s[c.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${s[c.MAINVERSION]}${s[c.PRERELEASE]}?${s[c.BUILD]}?`),y("FULL",`^${s[c.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${s[c.MAINVERSIONLOOSE]}${s[c.PRERELEASELOOSE]}?${s[c.BUILD]}?`),y("LOOSE",`^${s[c.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${s[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${s[c.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:\\.(${s[c.XRANGEIDENTIFIER]})(?:${s[c.PRERELEASE]})?${s[c.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[c.XRANGEIDENTIFIERLOOSE]})(?:${s[c.PRERELEASELOOSE]})?${s[c.BUILD]}?)?)?`),y("XRANGE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${s[c.GTLT]}\\s*${s[c.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),y("COERCE",`${s[c.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",s[c.COERCEPLAIN]+`(?:${s[c.PRERELEASE]})?(?:${s[c.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",s[c.COERCE],!0),y("COERCERTLFULL",s[c.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${s[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",y("TILDE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${s[c.LONETILDE]}${s[c.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${s[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",y("CARET",`^${s[c.LONECARET]}${s[c.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${s[c.LONECARET]}${s[c.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${s[c.GTLT]}\\s*(${s[c.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${s[c.GTLT]}\\s*(${s[c.LOOSEPLAIN]}|${s[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${s[c.XRANGEPLAIN]})\\s+-\\s+(${s[c.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${s[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[c.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Zi,Zi.exports)),Zi.exports}var Xs,Pm;function pp(){if(Pm)return Xs;Pm=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Xs=n=>n?typeof n!="object"?e:n:t,Xs}var Js,Im;function IE(){if(Im)return Js;Im=1;const e=/^[0-9]+$/,t=(n,o)=>{if(typeof n=="number"&&typeof o=="number")return n===o?0:n<o?-1:1;const i=e.test(n),a=e.test(o);return i&&a&&(n=+n,o=+o),n===o?0:i&&!a?-1:a&&!i?1:n<o?-1:1};return Js={compareIdentifiers:t,rcompareIdentifiers:(n,o)=>t(o,n)},Js}var Zs,Fm;function at(){if(Fm)return Zs;Fm=1;const e=Vl(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=Wl(),{safeRe:n,t:o}=wi(),i=pp(),{compareIdentifiers:a}=IE();class l{constructor(u,c){if(c=i(c),u instanceof l){if(u.loose===!!c.loose&&u.includePrerelease===!!c.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",u,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const d=u.trim().match(c.loose?n[o.LOOSE]:n[o.FULL]);if(!d)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(p=>{if(/^[0-9]+$/.test(p)){const g=+p;if(g>=0&&g<r)return g}return p}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(u){if(e("SemVer.compare",this.version,this.options,u),!(u instanceof l)){if(typeof u=="string"&&u===this.version)return 0;u=new l(u,this.options)}return u.version===this.version?0:this.compareMain(u)||this.comparePre(u)}compareMain(u){return u instanceof l||(u=new l(u,this.options)),this.major<u.major?-1:this.major>u.major?1:this.minor<u.minor?-1:this.minor>u.minor?1:this.patch<u.patch?-1:this.patch>u.patch?1:0}comparePre(u){if(u instanceof l||(u=new l(u,this.options)),this.prerelease.length&&!u.prerelease.length)return-1;if(!this.prerelease.length&&u.prerelease.length)return 1;if(!this.prerelease.length&&!u.prerelease.length)return 0;let c=0;do{const d=this.prerelease[c],p=u.prerelease[c];if(e("prerelease compare",c,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return a(d,p)}while(++c)}compareBuild(u){u instanceof l||(u=new l(u,this.options));let c=0;do{const d=this.build[c],p=u.build[c];if(e("build compare",c,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return a(d,p)}while(++c)}inc(u,c,d){if(u.startsWith("pre")){if(!c&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(c){const p=`-${c}`.match(this.options.loose?n[o.PRERELEASELOOSE]:n[o.PRERELEASE]);if(!p||p[1]!==c)throw new Error(`invalid identifier: ${c}`)}}switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",c,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",c,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",c,d),this.inc("pre",c,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",c,d),this.inc("pre",c,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const p=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[p];else{let g=this.prerelease.length;for(;--g>=0;)typeof this.prerelease[g]=="number"&&(this.prerelease[g]++,g=-2);if(g===-1){if(c===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(p)}}if(c){let g=[c,p];d===!1&&(g=[c]),a(this.prerelease[0],c)===0?isNaN(this.prerelease[1])&&(this.prerelease=g):this.prerelease=g}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Zs=l,Zs}var Qs,Lm;function yo(){if(Lm)return Qs;Lm=1;const e=at();return Qs=(r,n,o=!1)=>{if(r instanceof e)return r;try{return new e(r,n)}catch(i){if(!o)return null;throw i}},Qs}var eu,km;function s6(){if(km)return eu;km=1;const e=yo();return eu=(r,n)=>{const o=e(r,n);return o?o.version:null},eu}var tu,Nm;function u6(){if(Nm)return tu;Nm=1;const e=yo();return tu=(r,n)=>{const o=e(r.trim().replace(/^[=v]+/,""),n);return o?o.version:null},tu}var ru,Mm;function c6(){if(Mm)return ru;Mm=1;const e=at();return ru=(r,n,o,i,a)=>{typeof o=="string"&&(a=i,i=o,o=void 0);try{return new e(r instanceof e?r.version:r,o).inc(n,i,a).version}catch{return null}},ru}var nu,Bm;function d6(){if(Bm)return nu;Bm=1;const e=yo();return nu=(r,n)=>{const o=e(r,null,!0),i=e(n,null,!0),a=o.compare(i);if(a===0)return null;const l=a>0,s=l?o:i,u=l?i:o,c=!!s.prerelease.length;if(!!u.prerelease.length&&!c){if(!u.patch&&!u.minor)return"major";if(u.compareMain(s)===0)return u.minor&&!u.patch?"minor":"patch"}const p=c?"pre":"";return o.major!==i.major?p+"major":o.minor!==i.minor?p+"minor":o.patch!==i.patch?p+"patch":"prerelease"},nu}var ou,jm;function f6(){if(jm)return ou;jm=1;const e=at();return ou=(r,n)=>new e(r,n).major,ou}var iu,Hm;function p6(){if(Hm)return iu;Hm=1;const e=at();return iu=(r,n)=>new e(r,n).minor,iu}var au,Um;function h6(){if(Um)return au;Um=1;const e=at();return au=(r,n)=>new e(r,n).patch,au}var lu,zm;function g6(){if(zm)return lu;zm=1;const e=yo();return lu=(r,n)=>{const o=e(r,n);return o&&o.prerelease.length?o.prerelease:null},lu}var su,Km;function zt(){if(Km)return su;Km=1;const e=at();return su=(r,n,o)=>new e(r,o).compare(new e(n,o)),su}var uu,Gm;function m6(){if(Gm)return uu;Gm=1;const e=zt();return uu=(r,n,o)=>e(n,r,o),uu}var cu,Wm;function y6(){if(Wm)return cu;Wm=1;const e=zt();return cu=(r,n)=>e(r,n,!0),cu}var du,Vm;function hp(){if(Vm)return du;Vm=1;const e=at();return du=(r,n,o)=>{const i=new e(r,o),a=new e(n,o);return i.compare(a)||i.compareBuild(a)},du}var fu,qm;function b6(){if(qm)return fu;qm=1;const e=hp();return fu=(r,n)=>r.sort((o,i)=>e(o,i,n)),fu}var pu,Ym;function v6(){if(Ym)return pu;Ym=1;const e=hp();return pu=(r,n)=>r.sort((o,i)=>e(i,o,n)),pu}var hu,Xm;function ql(){if(Xm)return hu;Xm=1;const e=zt();return hu=(r,n,o)=>e(r,n,o)>0,hu}var gu,Jm;function gp(){if(Jm)return gu;Jm=1;const e=zt();return gu=(r,n,o)=>e(r,n,o)<0,gu}var mu,Zm;function FE(){if(Zm)return mu;Zm=1;const e=zt();return mu=(r,n,o)=>e(r,n,o)===0,mu}var yu,Qm;function LE(){if(Qm)return yu;Qm=1;const e=zt();return yu=(r,n,o)=>e(r,n,o)!==0,yu}var bu,e0;function mp(){if(e0)return bu;e0=1;const e=zt();return bu=(r,n,o)=>e(r,n,o)>=0,bu}var vu,t0;function yp(){if(t0)return vu;t0=1;const e=zt();return vu=(r,n,o)=>e(r,n,o)<=0,vu}var Eu,r0;function kE(){if(r0)return Eu;r0=1;const e=FE(),t=LE(),r=ql(),n=mp(),o=gp(),i=yp();return Eu=(l,s,u,c)=>{switch(s){case"===":return typeof l=="object"&&(l=l.version),typeof u=="object"&&(u=u.version),l===u;case"!==":return typeof l=="object"&&(l=l.version),typeof u=="object"&&(u=u.version),l!==u;case"":case"=":case"==":return e(l,u,c);case"!=":return t(l,u,c);case">":return r(l,u,c);case">=":return n(l,u,c);case"<":return o(l,u,c);case"<=":return i(l,u,c);default:throw new TypeError(`Invalid operator: ${s}`)}},Eu}var Su,n0;function E6(){if(n0)return Su;n0=1;const e=at(),t=yo(),{safeRe:r,t:n}=wi();return Su=(i,a)=>{if(i instanceof e)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;a=a||{};let l=null;if(!a.rtl)l=i.match(a.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const g=a.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let m;for(;(m=g.exec(i))&&(!l||l.index+l[0].length!==i.length);)(!l||m.index+m[0].length!==l.index+l[0].length)&&(l=m),g.lastIndex=m.index+m[1].length+m[2].length;g.lastIndex=-1}if(l===null)return null;const s=l[2],u=l[3]||"0",c=l[4]||"0",d=a.includePrerelease&&l[5]?`-${l[5]}`:"",p=a.includePrerelease&&l[6]?`+${l[6]}`:"";return t(`${s}.${u}.${c}${d}${p}`,a)},Su}var xu,o0;function S6(){if(o0)return xu;o0=1;class e{constructor(){this.max=1e3,this.map=new Map}get(r){const n=this.map.get(r);if(n!==void 0)return this.map.delete(r),this.map.set(r,n),n}delete(r){return this.map.delete(r)}set(r,n){if(!this.delete(r)&&n!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(r,n)}return this}}return xu=e,xu}var $u,i0;function Kt(){if(i0)return $u;i0=1;const e=/\s+/g;class t{constructor(_,O){if(O=o(O),_ instanceof t)return _.loose===!!O.loose&&_.includePrerelease===!!O.includePrerelease?_:new t(_.raw,O);if(_ instanceof i)return this.raw=_.value,this.set=[[_]],this.formatted=void 0,this;if(this.options=O,this.loose=!!O.loose,this.includePrerelease=!!O.includePrerelease,this.raw=_.trim().replace(e," "),this.set=this.raw.split("||").map(P=>this.parseRange(P.trim())).filter(P=>P.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const P=this.set[0];if(this.set=this.set.filter(k=>!y(k[0])),this.set.length===0)this.set=[P];else if(this.set.length>1){for(const k of this.set)if(k.length===1&&v(k[0])){this.set=[k];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let _=0;_<this.set.length;_++){_>0&&(this.formatted+="||");const O=this.set[_];for(let P=0;P<O.length;P++)P>0&&(this.formatted+=" "),this.formatted+=O[P].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(_){const P=((this.options.includePrerelease&&g)|(this.options.loose&&m))+":"+_,k=n.get(P);if(k)return k;const B=this.options.loose,N=B?s[u.HYPHENRANGELOOSE]:s[u.HYPHENRANGE];_=_.replace(N,M(this.options.includePrerelease)),a("hyphen replace",_),_=_.replace(s[u.COMPARATORTRIM],c),a("comparator trim",_),_=_.replace(s[u.TILDETRIM],d),a("tilde trim",_),_=_.replace(s[u.CARETTRIM],p),a("caret trim",_);let D=_.split(" ").map(z=>E(z,this.options)).join(" ").split(/\s+/).map(z=>T(z,this.options));B&&(D=D.filter(z=>(a("loose invalid filter",z,this.options),!!z.match(s[u.COMPARATORLOOSE])))),a("range list",D);const j=new Map,K=D.map(z=>new i(z,this.options));for(const z of K){if(y(z))return[z];j.set(z.value,z)}j.size>1&&j.has("")&&j.delete("");const U=[...j.values()];return n.set(P,U),U}intersects(_,O){if(!(_ instanceof t))throw new TypeError("a Range is required");return this.set.some(P=>b(P,O)&&_.set.some(k=>b(k,O)&&P.every(B=>k.every(N=>B.intersects(N,O)))))}test(_){if(!_)return!1;if(typeof _=="string")try{_=new l(_,this.options)}catch{return!1}for(let O=0;O<this.set.length;O++)if(H(this.set[O],_,this.options))return!0;return!1}}$u=t;const r=S6(),n=new r,o=pp(),i=Yl(),a=Vl(),l=at(),{safeRe:s,t:u,comparatorTrimReplace:c,tildeTrimReplace:d,caretTrimReplace:p}=wi(),{FLAG_INCLUDE_PRERELEASE:g,FLAG_LOOSE:m}=Wl(),y=$=>$.value==="<0.0.0-0",v=$=>$.value==="",b=($,_)=>{let O=!0;const P=$.slice();let k=P.pop();for(;O&&P.length;)O=P.every(B=>k.intersects(B,_)),k=P.pop();return O},E=($,_)=>($=$.replace(s[u.BUILD],""),a("comp",$,_),$=w($,_),a("caret",$),$=x($,_),a("tildes",$),$=R($,_),a("xrange",$),$=I($,_),a("stars",$),$),S=$=>!$||$.toLowerCase()==="x"||$==="*",x=($,_)=>$.trim().split(/\s+/).map(O=>A(O,_)).join(" "),A=($,_)=>{const O=_.loose?s[u.TILDELOOSE]:s[u.TILDE];return $.replace(O,(P,k,B,N,D)=>{a("tilde",$,P,k,B,N,D);let j;return S(k)?j="":S(B)?j=`>=${k}.0.0 <${+k+1}.0.0-0`:S(N)?j=`>=${k}.${B}.0 <${k}.${+B+1}.0-0`:D?(a("replaceTilde pr",D),j=`>=${k}.${B}.${N}-${D} <${k}.${+B+1}.0-0`):j=`>=${k}.${B}.${N} <${k}.${+B+1}.0-0`,a("tilde return",j),j})},w=($,_)=>$.trim().split(/\s+/).map(O=>C(O,_)).join(" "),C=($,_)=>{a("caret",$,_);const O=_.loose?s[u.CARETLOOSE]:s[u.CARET],P=_.includePrerelease?"-0":"";return $.replace(O,(k,B,N,D,j)=>{a("caret",$,k,B,N,D,j);let K;return S(B)?K="":S(N)?K=`>=${B}.0.0${P} <${+B+1}.0.0-0`:S(D)?B==="0"?K=`>=${B}.${N}.0${P} <${B}.${+N+1}.0-0`:K=`>=${B}.${N}.0${P} <${+B+1}.0.0-0`:j?(a("replaceCaret pr",j),B==="0"?N==="0"?K=`>=${B}.${N}.${D}-${j} <${B}.${N}.${+D+1}-0`:K=`>=${B}.${N}.${D}-${j} <${B}.${+N+1}.0-0`:K=`>=${B}.${N}.${D}-${j} <${+B+1}.0.0-0`):(a("no pr"),B==="0"?N==="0"?K=`>=${B}.${N}.${D}${P} <${B}.${N}.${+D+1}-0`:K=`>=${B}.${N}.${D}${P} <${B}.${+N+1}.0-0`:K=`>=${B}.${N}.${D} <${+B+1}.0.0-0`),a("caret return",K),K})},R=($,_)=>(a("replaceXRanges",$,_),$.split(/\s+/).map(O=>L(O,_)).join(" ")),L=($,_)=>{$=$.trim();const O=_.loose?s[u.XRANGELOOSE]:s[u.XRANGE];return $.replace(O,(P,k,B,N,D,j)=>{a("xRange",$,P,k,B,N,D,j);const K=S(B),U=K||S(N),z=U||S(D),W=z;return k==="="&&W&&(k=""),j=_.includePrerelease?"-0":"",K?k===">"||k==="<"?P="<0.0.0-0":P="*":k&&W?(U&&(N=0),D=0,k===">"?(k=">=",U?(B=+B+1,N=0,D=0):(N=+N+1,D=0)):k==="<="&&(k="<",U?B=+B+1:N=+N+1),k==="<"&&(j="-0"),P=`${k+B}.${N}.${D}${j}`):U?P=`>=${B}.0.0${j} <${+B+1}.0.0-0`:z&&(P=`>=${B}.${N}.0${j} <${B}.${+N+1}.0-0`),a("xRange return",P),P})},I=($,_)=>(a("replaceStars",$,_),$.trim().replace(s[u.STAR],"")),T=($,_)=>(a("replaceGTE0",$,_),$.trim().replace(s[_.includePrerelease?u.GTE0PRE:u.GTE0],"")),M=$=>(_,O,P,k,B,N,D,j,K,U,z,W)=>(S(P)?O="":S(k)?O=`>=${P}.0.0${$?"-0":""}`:S(B)?O=`>=${P}.${k}.0${$?"-0":""}`:N?O=`>=${O}`:O=`>=${O}${$?"-0":""}`,S(K)?j="":S(U)?j=`<${+K+1}.0.0-0`:S(z)?j=`<${K}.${+U+1}.0-0`:W?j=`<=${K}.${U}.${z}-${W}`:$?j=`<${K}.${U}.${+z+1}-0`:j=`<=${j}`,`${O} ${j}`.trim()),H=($,_,O)=>{for(let P=0;P<$.length;P++)if(!$[P].test(_))return!1;if(_.prerelease.length&&!O.includePrerelease){for(let P=0;P<$.length;P++)if(a($[P].semver),$[P].semver!==i.ANY&&$[P].semver.prerelease.length>0){const k=$[P].semver;if(k.major===_.major&&k.minor===_.minor&&k.patch===_.patch)return!0}return!1}return!0};return $u}var wu,a0;function Yl(){if(a0)return wu;a0=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=r(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),a("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(c){const d=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],p=c.match(d);if(!p)throw new TypeError(`Invalid comparator: ${c}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new l(p[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(a("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new l(c,this.options)}catch{return!1}return i(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new s(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new s(this.value,d).test(c.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||i(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||i(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}wu=t;const r=pp(),{safeRe:n,t:o}=wi(),i=kE(),a=Vl(),l=at(),s=Kt();return wu}var Cu,l0;function Xl(){if(l0)return Cu;l0=1;const e=Kt();return Cu=(r,n,o)=>{try{n=new e(n,o)}catch{return!1}return n.test(r)},Cu}var _u,s0;function x6(){if(s0)return _u;s0=1;const e=Kt();return _u=(r,n)=>new e(r,n).set.map(o=>o.map(i=>i.value).join(" ").trim().split(" ")),_u}var Tu,u0;function $6(){if(u0)return Tu;u0=1;const e=at(),t=Kt();return Tu=(n,o,i)=>{let a=null,l=null,s=null;try{s=new t(o,i)}catch{return null}return n.forEach(u=>{s.test(u)&&(!a||l.compare(u)===-1)&&(a=u,l=new e(a,i))}),a},Tu}var Au,c0;function w6(){if(c0)return Au;c0=1;const e=at(),t=Kt();return Au=(n,o,i)=>{let a=null,l=null,s=null;try{s=new t(o,i)}catch{return null}return n.forEach(u=>{s.test(u)&&(!a||l.compare(u)===1)&&(a=u,l=new e(a,i))}),a},Au}var Ou,d0;function C6(){if(d0)return Ou;d0=1;const e=at(),t=Kt(),r=ql();return Ou=(o,i)=>{o=new t(o,i);let a=new e("0.0.0");if(o.test(a)||(a=new e("0.0.0-0"),o.test(a)))return a;a=null;for(let l=0;l<o.set.length;++l){const s=o.set[l];let u=null;s.forEach(c=>{const d=new e(c.semver.version);switch(c.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!u||r(d,u))&&(u=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),u&&(!a||r(a,u))&&(a=u)}return a&&o.test(a)?a:null},Ou}var Ru,f0;function _6(){if(f0)return Ru;f0=1;const e=Kt();return Ru=(r,n)=>{try{return new e(r,n).range||"*"}catch{return null}},Ru}var Du,p0;function bp(){if(p0)return Du;p0=1;const e=at(),t=Yl(),{ANY:r}=t,n=Kt(),o=Xl(),i=ql(),a=gp(),l=yp(),s=mp();return Du=(c,d,p,g)=>{c=new e(c,g),d=new n(d,g);let m,y,v,b,E;switch(p){case">":m=i,y=l,v=a,b=">",E=">=";break;case"<":m=a,y=s,v=i,b="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(c,d,g))return!1;for(let S=0;S<d.set.length;++S){const x=d.set[S];let A=null,w=null;if(x.forEach(C=>{C.semver===r&&(C=new t(">=0.0.0")),A=A||C,w=w||C,m(C.semver,A.semver,g)?A=C:v(C.semver,w.semver,g)&&(w=C)}),A.operator===b||A.operator===E||(!w.operator||w.operator===b)&&y(c,w.semver))return!1;if(w.operator===E&&v(c,w.semver))return!1}return!0},Du}var Pu,h0;function T6(){if(h0)return Pu;h0=1;const e=bp();return Pu=(r,n,o)=>e(r,n,">",o),Pu}var Iu,g0;function A6(){if(g0)return Iu;g0=1;const e=bp();return Iu=(r,n,o)=>e(r,n,"<",o),Iu}var Fu,m0;function O6(){if(m0)return Fu;m0=1;const e=Kt();return Fu=(r,n,o)=>(r=new e(r,o),n=new e(n,o),r.intersects(n,o)),Fu}var Lu,y0;function R6(){if(y0)return Lu;y0=1;const e=Xl(),t=zt();return Lu=(r,n,o)=>{const i=[];let a=null,l=null;const s=r.sort((p,g)=>t(p,g,o));for(const p of s)e(p,n,o)?(l=p,a||(a=p)):(l&&i.push([a,l]),l=null,a=null);a&&i.push([a,null]);const u=[];for(const[p,g]of i)p===g?u.push(p):!g&&p===s[0]?u.push("*"):g?p===s[0]?u.push(`<=${g}`):u.push(`${p} - ${g}`):u.push(`>=${p}`);const c=u.join(" || "),d=typeof n.raw=="string"?n.raw:String(n);return c.length<d.length?c:n},Lu}var ku,b0;function D6(){if(b0)return ku;b0=1;const e=Kt(),t=Yl(),{ANY:r}=t,n=Xl(),o=zt(),i=(d,p,g={})=>{if(d===p)return!0;d=new e(d,g),p=new e(p,g);let m=!1;e:for(const y of d.set){for(const v of p.set){const b=s(y,v,g);if(m=m||b!==null,b)continue e}if(m)return!1}return!0},a=[new t(">=0.0.0-0")],l=[new t(">=0.0.0")],s=(d,p,g)=>{if(d===p)return!0;if(d.length===1&&d[0].semver===r){if(p.length===1&&p[0].semver===r)return!0;g.includePrerelease?d=a:d=l}if(p.length===1&&p[0].semver===r){if(g.includePrerelease)return!0;p=l}const m=new Set;let y,v;for(const R of d)R.operator===">"||R.operator===">="?y=u(y,R,g):R.operator==="<"||R.operator==="<="?v=c(v,R,g):m.add(R.semver);if(m.size>1)return null;let b;if(y&&v){if(b=o(y.semver,v.semver,g),b>0)return null;if(b===0&&(y.operator!==">="||v.operator!=="<="))return null}for(const R of m){if(y&&!n(R,String(y),g)||v&&!n(R,String(v),g))return null;for(const L of p)if(!n(R,String(L),g))return!1;return!0}let E,S,x,A,w=v&&!g.includePrerelease&&v.semver.prerelease.length?v.semver:!1,C=y&&!g.includePrerelease&&y.semver.prerelease.length?y.semver:!1;w&&w.prerelease.length===1&&v.operator==="<"&&w.prerelease[0]===0&&(w=!1);for(const R of p){if(A=A||R.operator===">"||R.operator===">=",x=x||R.operator==="<"||R.operator==="<=",y){if(C&&R.semver.prerelease&&R.semver.prerelease.length&&R.semver.major===C.major&&R.semver.minor===C.minor&&R.semver.patch===C.patch&&(C=!1),R.operator===">"||R.operator===">="){if(E=u(y,R,g),E===R&&E!==y)return!1}else if(y.operator===">="&&!n(y.semver,String(R),g))return!1}if(v){if(w&&R.semver.prerelease&&R.semver.prerelease.length&&R.semver.major===w.major&&R.semver.minor===w.minor&&R.semver.patch===w.patch&&(w=!1),R.operator==="<"||R.operator==="<="){if(S=c(v,R,g),S===R&&S!==v)return!1}else if(v.operator==="<="&&!n(v.semver,String(R),g))return!1}if(!R.operator&&(v||y)&&b!==0)return!1}return!(y&&x&&!v&&b!==0||v&&A&&!y&&b!==0||C||w)},u=(d,p,g)=>{if(!d)return p;const m=o(d.semver,p.semver,g);return m>0?d:m<0||p.operator===">"&&d.operator===">="?p:d},c=(d,p,g)=>{if(!d)return p;const m=o(d.semver,p.semver,g);return m<0?d:m>0||p.operator==="<"&&d.operator==="<="?p:d};return ku=i,ku}var Nu,v0;function P6(){if(v0)return Nu;v0=1;const e=wi(),t=Wl(),r=at(),n=IE(),o=yo(),i=s6(),a=u6(),l=c6(),s=d6(),u=f6(),c=p6(),d=h6(),p=g6(),g=zt(),m=m6(),y=y6(),v=hp(),b=b6(),E=v6(),S=ql(),x=gp(),A=FE(),w=LE(),C=mp(),R=yp(),L=kE(),I=E6(),T=Yl(),M=Kt(),H=Xl(),$=x6(),_=$6(),O=w6(),P=C6(),k=_6(),B=bp(),N=T6(),D=A6(),j=O6(),K=R6(),U=D6();return Nu={parse:o,valid:i,clean:a,inc:l,diff:s,major:u,minor:c,patch:d,prerelease:p,compare:g,rcompare:m,compareLoose:y,compareBuild:v,sort:b,rsort:E,gt:S,lt:x,eq:A,neq:w,gte:C,lte:R,cmp:L,coerce:I,Comparator:T,Range:M,satisfies:H,toComparators:$,maxSatisfying:_,minSatisfying:O,minVersion:P,validRange:k,outside:B,gtr:N,ltr:D,intersects:j,simplifyRange:K,subset:U,SemVer:r,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},Nu}var I6=P6();const mt=hf(I6);var F6=Er({"../../node_modules/toggle-selection/index.js"(e,t){t.exports=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var n=document.activeElement,o=[],i=0;i<r.rangeCount;i++)o.push(r.getRangeAt(i));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null;break}return r.removeAllRanges(),function(){r.type==="Caret"&&r.removeAllRanges(),r.rangeCount||o.forEach(function(a){r.addRange(a)}),n&&n.focus()}}}}),L6=Er({"../../node_modules/copy-to-clipboard/index.js"(e,t){var r=F6(),n={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function i(l){var s=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,s)}function a(l,s){var u,c,d,p,g,m,y=!1;s||(s={}),u=s.debug||!1;try{d=r(),p=document.createRange(),g=document.getSelection(),m=document.createElement("span"),m.textContent=l,m.ariaHidden="true",m.style.all="unset",m.style.position="fixed",m.style.top=0,m.style.clip="rect(0, 0, 0, 0)",m.style.whiteSpace="pre",m.style.webkitUserSelect="text",m.style.MozUserSelect="text",m.style.msUserSelect="text",m.style.userSelect="text",m.addEventListener("copy",function(b){if(b.stopPropagation(),s.format)if(b.preventDefault(),typeof b.clipboardData>"u"){u&&console.warn("unable to use e.clipboardData"),u&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var E=n[s.format]||n.default;window.clipboardData.setData(E,l)}else b.clipboardData.clearData(),b.clipboardData.setData(s.format,l);s.onCopy&&(b.preventDefault(),s.onCopy(b.clipboardData))}),document.body.appendChild(m),p.selectNodeContents(m),g.addRange(p);var v=document.execCommand("copy");if(!v)throw new Error("copy command was unsuccessful");y=!0}catch(b){u&&console.error("unable to copy using execCommand: ",b),u&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(s.format||"text",l),s.onCopy&&s.onCopy(window.clipboardData),y=!0}catch(E){u&&console.error("unable to copy using clipboardData: ",E),u&&console.error("falling back to prompt"),c=i("message"in s?s.message:o),window.prompt(c,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(p):g.removeAllRanges()),m&&document.body.removeChild(m),d()}return y}t.exports=a}}),k6=Er({"../../node_modules/store2/dist/store2.js"(e,t){(function(r,n){var o={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(a,l){for(var s in a)l.hasOwnProperty(s)||Object.defineProperty(l,s,Object.getOwnPropertyDescriptor(a,s));return l},stringify:function(a,l){return a===void 0||typeof a=="function"?a+"":JSON.stringify(a,l||o.replace)},parse:function(a,l){try{return JSON.parse(a,l||o.revive)}catch{return a}},fn:function(a,l){o.storeAPI[a]=l;for(var s in o.apis)o.apis[s][a]=l},get:function(a,l){return a.getItem(l)},set:function(a,l,s){a.setItem(l,s)},remove:function(a,l){a.removeItem(l)},key:function(a,l){return a.key(l)},length:function(a){return a.length},clear:function(a){a.clear()},Store:function(a,l,s){var u=o.inherit(o.storeAPI,function(d,p,g){return arguments.length===0?u.getAll():typeof p=="function"?u.transact(d,p,g):p!==void 0?u.set(d,p,g):typeof d=="string"||typeof d=="number"?u.get(d):typeof d=="function"?u.each(d):d?u.setAll(d,p):u.clear()});u._id=a;try{var c="__store2_test";l.setItem(c,"ok"),u._area=l,l.removeItem(c)}catch{u._area=o.storage("fake")}return u._ns=s||"",o.areas[a]||(o.areas[a]=u._area),o.apis[u._ns+u._id]||(o.apis[u._ns+u._id]=u),u},storeAPI:{area:function(a,l){var s=this[a];return(!s||!s.area)&&(s=o.Store(a,l,this._ns),this[a]||(this[a]=s)),s},namespace:function(a,l,s){if(s=s||this._delim||o.nsdelim,!a)return this._ns?this._ns.substring(0,this._ns.length-s.length):"";var u=a,c=this[u];if((!c||!c.namespace)&&(c=o.Store(this._id,this._area,this._ns+u+s),c._delim=s,this[u]||(this[u]=c),!l))for(var d in o.areas)c.area(d,o.areas[d]);return c},isFake:function(a){return a?(this._real=this._area,this._area=o.storage("fake")):a===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(a){return this._area.has?this._area.has(this._in(a)):this._in(a)in this._area},size:function(){return this.keys().length},each:function(a,l){for(var s=0,u=o.length(this._area);s<u;s++){var c=this._out(o.key(this._area,s));if(c!==void 0&&a.call(this,c,this.get(c),l)===!1)break;u>o.length(this._area)&&(u--,s--)}return l||this},keys:function(a){return this.each(function(l,s,u){u.push(l)},a||[])},get:function(a,l){var s=o.get(this._area,this._in(a)),u;return typeof l=="function"&&(u=l,l=null),s!==null?o.parse(s,u):l??s},getAll:function(a){return this.each(function(l,s,u){u[l]=s},a||{})},transact:function(a,l,s){var u=this.get(a,s),c=l(u);return this.set(a,c===void 0?u:c),this},set:function(a,l,s){var u=this.get(a),c;return u!=null&&s===!1?l:(typeof s=="function"&&(c=s,s=void 0),o.set(this._area,this._in(a),o.stringify(l,c),s)||u)},setAll:function(a,l){var s,u;for(var c in a)u=a[c],this.set(c,u,l)!==u&&(s=!0);return s},add:function(a,l,s){var u=this.get(a);if(u instanceof Array)l=u.concat(l);else if(u!==null){var c=typeof u;if(c===typeof l&&c==="object"){for(var d in l)u[d]=l[d];l=u}else l=u+l}return o.set(this._area,this._in(a),o.stringify(l,s)),l},remove:function(a,l){var s=this.get(a,l);return o.remove(this._area,this._in(a)),s},clear:function(){return this._ns?this.each(function(a){o.remove(this._area,this._in(a))},1):o.clear(this._area),this},clearAll:function(){var a=this._area;for(var l in o.areas)o.areas.hasOwnProperty(l)&&(this._area=o.areas[l],this.clear());return this._area=a,this},_in:function(a){return typeof a!="string"&&(a=o.stringify(a)),this._ns?this._ns+a:a},_out:function(a){return this._ns?a&&a.indexOf(this._ns)===0?a.substring(this._ns.length):void 0:a}},storage:function(a){return o.inherit(o.storageAPI,{items:{},name:a})},storageAPI:{length:0,has:function(a){return this.items.hasOwnProperty(a)},key:function(a){var l=0;for(var s in this.items)if(this.has(s)&&a===l++)return s},setItem:function(a,l){this.has(a)||this.length++,this.items[a]=l},removeItem:function(a){this.has(a)&&(delete this.items[a],this.length--)},getItem:function(a){return this.has(a)?this.items[a]:null},clear:function(){for(var a in this.items)this.removeItem(a)}}},i=o.Store("local",(function(){try{return localStorage}catch{}})());i.local=i,i._=o,i.area("session",(function(){try{return sessionStorage}catch{}})()),i.area("page",o.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return i}):typeof t<"u"&&t.exports?t.exports=i:(r.store&&(o.conflict=r.store),r.store=i)})(e,e&&e.define)}});const{DOCS_PREPARED:VJ,SET_STORIES:qJ,SHARED_STATE_CHANGED:YJ,SHARED_STATE_SET:XJ,STORY_CHANGED:JJ,STORY_PREPARED:ZJ}=__STORYBOOK_MODULE_CORE_EVENTS__;var N6=({api:e,state:t})=>f.createContext({api:e,state:t});const{logger:E0}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var pn=(e,...t)=>{let r={};r=ja({},e,(n,o)=>{if(Array.isArray(o)&&Array.isArray(n))return o.forEach(i=>{n.find(a=>a===i||Zt(a,i))||n.push(i)}),n;if(Array.isArray(n))return E0.log(["the types mismatch, picking",n]),n});for(let n of t)r=ja(r,n,(o,i)=>{if(Array.isArray(i)&&Array.isArray(o))return i.forEach(a=>{o.find(l=>l===a||Zt(l,a))||o.push(a)}),o;if(Array.isArray(o))return E0.log(["the types mismatch, picking",o]),o});return r},M6=(e,...t)=>{let r={};r=ja({},e,(n,o)=>{if(Array.isArray(o))return o});for(let n of t)r=ja(r,n,(o,i)=>{if(Array.isArray(i))return i});return r},B6=(...e)=>e.reduce((t,r)=>pn(t,r),{}),wd=B6;const{logger:j6}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{SET_CONFIG:S0}=__STORYBOOK_MODULE_CORE_EVENTS__,{Addon_TypesEnum:QJ}=__STORYBOOK_MODULE_TYPES__;var H6=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=()=>{if(this.channel)return this.channel;let e=Kc();return e?(this.channel=e,this.resolve(),this.channel):iT()},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel||!!Kc(),this.setChannel=e=>{this.channel=e,Jb(e),this.resolve()},this.setConfig=e=>{Object.assign(this.config,e),this.hasChannel()?this.getChannel().emit(S0,this.config):this.ready().then(t=>{t.emit(S0,this.config)})},this.getConfig=()=>this.config,this.register=(e,t)=>{this.loaders[e]&&j6.warn(`${e} was loaded twice, this could have bad side-effects`),this.loaders[e]=t},this.loadAddons=e=>{Object.values(this.loaders).forEach(t=>t(e))},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}getElements(e){return this.elements[e]||(this.elements[e]={}),this.elements[e]}add(e,t){let{type:r}=t,n=this.getElements(r);n[e]={...t,id:e}}experimental_getRegisteredAddons(e){return Object.keys(e?this.getElements(e):this.loaders)}},Mu="__STORYBOOK_ADDONS_MANAGER";function U6(){return globalThis[Mu]||(globalThis[Mu]=new H6),globalThis[Mu]}U6();var NE={};Ve(NE,{ensurePanel:()=>Cd,init:()=>K6});const{logger:z6}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{Addon_TypesEnum:Bu}=__STORYBOOK_MODULE_TYPES__;function Cd(e,t,r){let n=Object.keys(e??{});return n.indexOf(t)>=0?t:n.length?n[0]:r}var K6=({provider:e,store:t,fullAPI:r})=>{let n={getElements:o=>e.getElements(o),clearStatuses:()=>{let o=n.getElements(Bu.experimental_TEST_PROVIDER);Object.values(o).forEach(i=>{try{i.clear?.()}catch(a){try{z6.warn(`Failed to clear test provider "${i.id}":`,a)}catch{}}})},getSelectedPanel:()=>{let{selectedPanel:o}=t.getState();return Cd(n.getElements(Bu.PANEL),o,o)},setSelectedPanel:o=>{t.setState({selectedPanel:o},{persistence:"session"})},setAddonState(o,i,a){let l=typeof i=="function"?i:()=>i;return t.setState(s=>({...s,addons:{...s.addons,[o]:l(s.addons[o])}}),a).then(()=>n.getAddonState(o))},getAddonState:o=>t.getState().addons[o]||globalThis?.STORYBOOK_ADDON_STATE[o]};return{api:n,state:{selectedPanel:Cd(n.getElements(Bu.PANEL),t.getState().selectedPanel),addons:{}}}},ME={};Ve(ME,{init:()=>G6});var G6=({provider:e})=>({api:{getChannel:()=>e.channel,on:(t,r)=>(e.channel?.on(t,r),()=>e.channel?.off(t,r)),off:(t,r)=>e.channel?.off(t,r),once:(t,r)=>e.channel?.once(t,r),emit:(t,r,...n)=>{r?.options?.target&&r.options.target!=="storybook-preview-iframe"&&!r.options.target.startsWith("storybook-ref-")&&(r.options.target=r.options.target!=="storybook_internal"?`storybook-ref-${r.options.target}`:"storybook-preview-iframe"),e.channel?.emit(t,r,...n)}},state:{}}),BE={};Ve(BE,{init:()=>uL});const{logger:x0}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{GLOBALS_UPDATED:W6,SET_GLOBALS:V6,UPDATE_GLOBALS:q6}=__STORYBOOK_MODULE_CORE_EVENTS__,{logger:Y6}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var jE={};Ve(jE,{defaultStoryMapper:()=>KE,getSourceType:()=>zE,init:()=>sL});const{global:HE}=__STORYBOOK_MODULE_GLOBAL__;var UE=vt(Sn(),1),X6=(e,t)=>!Array.isArray(e)||!Array.isArray(t)||!e.length||!t.length?[]:e.reduce((r,n)=>(t.includes(n)&&r.push(n),r),[]),J6=/\s*\/\s*/,Z6=({globalParameters:e,kindParameters:t,stories:r})=>S_(r,n=>({...n,parameters:F8(e,t[n.kind],n.parameters)})),Q6=e=>({v:5,entries:Object.entries(e).reduce((t,[r,n])=>{if(!n)return t;let{docsOnly:o,fileName:i,...a}=n.parameters,l={title:n.kind,id:r,name:n.name,importPath:i};if(o)t[r]={type:"docs",tags:["stories-mdx"],storiesImports:[],...l};else{let{argTypes:s,args:u,initialArgs:c}=n;t[r]={type:"story",subtype:"story",...l,parameters:a,argTypes:s,args:u,initialArgs:c}}return t},{})}),eL=e=>({v:3,stories:Object.values(e.stories).reduce((t,r)=>(t[r.id]={...r,title:r.kind,name:r.name||r.story,importPath:r.parameters.fileName||""},t),{})}),tL=e=>{let t=mF(Object.values(e.stories),r=>r.title);return{v:4,entries:Object.values(e.stories).reduce((r,n)=>{let o="story";return(n.parameters?.docsOnly||n.name==="Page"&&t[n.title]===1)&&(o="docs"),r[n.id]={type:o,...o==="docs"&&{tags:["stories-mdx"],storiesImports:[]},...n},delete r[n.id].story,delete r[n.id].kind,r},{})}},rL=e=>({v:5,entries:Object.values(e.entries).reduce((t,r)=>(t[r.id]={...r,tags:r.tags?[kr.DEV,kr.TEST,...r.tags]:[kr.DEV]},t),{})}),tl=(e,{provider:t,docsOptions:r,filters:n,allStatuses:o,statusFilterKey:i})=>{if(!e.v)throw new Error("Composition: Missing stories.json version");let a=e;a=a.v===2?eL(a):a,a=a.v===3?tL(a):a,a=a.v===4?rL(a):a,a=a;let l=Object.values(a.entries),s=Object.values(n),u=i?n[i]:void 0,c=l.filter(S=>{let x=o[S.id]??{};return u&&!u({...S,statuses:x})&&!l.filter(A=>"parent"in A&&A.parent===S.id).some(A=>u({...A,statuses:o[A.id]??{}}))?!1:Object.values(x).some(({value:A})=>A==="status-value:error")||s.every(A=>A({...S,statuses:x}))?!0:l.filter(A=>"parent"in A&&A.parent===S.id).some(A=>s.every(w=>w({...A,statuses:x})))}),{sidebar:d={}}=t.getConfig(),{showRoots:p,collapsedRoots:g=[],renderLabel:m}=d,y=typeof p<"u",v=c.reduce((S,x)=>{if(r.docsMode&&x.type!=="docs")return S;let{title:A}=x,w=A.trim().split(J6),C=(!y||p)&&w.length>1?[w.shift()]:[],R=[...C,...w],L=R.reduce((I,T,M)=>{let H=M>0&&I[M-1],$=qn(H?`${H}-${T}`:T);if(T.trim()==="")throw new Error(Tt`Invalid title ${A} ending in slash.`);if(H===$)throw new Error(Tt`
638
+ Invalid part '${T}', leading to id === parentId ('${$}'), inside title '${A}'
639
+
640
+ Did you create a path that uses the separator char accidentally, such as 'Vue <docs/>' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128
641
+ `);return I.push($),I},[]);return L.forEach((I,T)=>{let M=L[T+1]||x.id;C.length&&T===0?S[I]=pn(S[I]||{},{type:"root",id:I,name:R[T],tags:[],depth:T,renderLabel:m,startCollapsed:g.includes(I),children:[M]}):(!S[I]||S[I].type==="component")&&T===L.length-1?S[I]=pn(S[I]||{},{type:"component",id:I,name:R[T],tags:[],parent:L[T-1],depth:T,renderLabel:m,...M&&{children:[M]}}):S[I]=pn(S[I]||{},{type:"group",id:I,name:R[T],tags:[],parent:L[T-1],depth:T,renderLabel:m,...M&&{children:[M]}})}),S[x.id]={tags:[],...x,depth:L.length,parent:"parent"in x?x.parent:L[L.length-1],renderLabel:m,prepared:!!x.parameters},S},{});function b(S,x){if(S[x.id]||(S[x.id]=x,"children"in x&&x.children&&(x.children.forEach(A=>b(S,v[A])),x.tags=x.children.reduce((A,w)=>A===null?S[w].tags:X6(A,S[w].tags),null)||[])),x.type==="component"){let A=S[x.children[0]];A&&"importPath"in A&&(x.importPath=A.importPath)}return S}let E=Object.values(v).filter(S=>S.type!=="root"&&!S.parent).reduce((S,x)=>b(S,x),{});return E=Object.values(v).filter(S=>S.type==="root").reduce(b,E),E=Object.values(E).reduce((S,x)=>{if(x.type==="story"&&x.subtype==="test"){let A=S[x.parent],w=S[A.parent];S[w.id]={...w,children:w.children&&w.children.filter(C=>C!==x.id)},S[A.id]={...A,children:(A.children||[]).concat(x.id)},S[x.id]={...x,depth:x.depth+1}}else S[x.id]=x;return S},{}),E},$0=(e,t)=>t?Object.fromEntries(Object.entries(e).map(([r,n])=>{let o=t[r];return n.type==="story"&&o?.type==="story"&&o.prepared?("children"in o&&delete o.children,[r,{...o,...n,prepared:!0}]):[r,n]})):e,nL=(0,UE.default)(1)(e=>Object.entries(e).reduce((t,r)=>{let n=r[1];return n.type==="component"&&t.push([...n.children]),t},[])),oL=(0,UE.default)(1)(e=>Object.keys(e).filter(t=>["story","docs"].includes(e[t].type))),{location:iL,fetch:w0}=HE,zE=(e,t)=>{let{origin:r,pathname:n}=iL,{origin:o,pathname:i}=new URL(e),a=`${r+n}`.replace(/\/[^\/]*$/,""),l=`${o+i}`.replace(/\/[^\/]*$/,"");return a===l?["local",l]:t||e?["external",l]:[null,null]},KE=(e,t)=>({...t,kind:t.kind.replace("|","/")}),C0=(e,t)=>Object.entries(e).reduce((r,[n,o])=>({...r,[n]:{...o,refId:t.id}}),{}),_0=(e,t)=>(t&&Object.entries(t).forEach(([r,n])=>{let o=e[r];o&&(o.type==="story"||o.type==="docs")&&(e[r]={...o,...n})}),e);async function T0(e){if(!e)return{};try{let t=await e;if(t===!1||t===!0)throw new Error("Unexpected boolean response");if(!t.ok){if(t.status===401)try{let n=await t.json();if(n.loginUrl)return{loginUrl:n.loginUrl}}catch{}throw new Error(`Unexpected response not OK: ${t.statusText}`)}let r=await t.json();return r.entries||r.stories?{storyIndex:r}:r}catch(t){return{indexError:t}}}var aL=e=>{let t=/https?:\/\/(.+:.+)@/,r=e,n,[,o]=e.match(t)||[];return o&&(r=e.replace(`${o}@`,""),n=btoa(`${o}`)),{url:r,authorization:n}},lL=(e,t,r)=>{let{storyMapper:n}=r;return n?Object.entries(e).reduce((o,[i,a])=>({...o,[i]:n(t,a)}),{}):e},sL=({store:e,provider:t,singleStory:r,docsOptions:n={}},{runCheck:o=!0}={})=>{let i={findRef:s=>{let u=i.getRefs();return Object.values(u).find(({url:c})=>c.match(s))},changeRefVersion:async(s,u)=>{let{versions:c,title:d}=i.getRefs()[s],p={id:s,url:u,versions:c,title:d,index:{},filteredIndex:{},expanded:!0};await i.setRef(s,{...p,type:"unknown"},!1),await i.checkRef(p)},changeRefState:(s,u)=>{let{[s]:c,...d}=i.getRefs();d[s]={...c,previewInitialized:u},e.setState({refs:d})},checkRef:async s=>{let{id:u,url:c,version:d,type:p}=s,g=p==="server-checked",m={},y=d?`?version=${d}`:"",v=g?"omit":"include",b=aL(c),E={Accept:"application/json"};b.authorization&&Object.assign(E,{Authorization:`Basic ${b.authorization}`});let[S,x]=await Promise.all(["index.json","stories.json"].map(async w=>T0(w0(`${b.url}/${w}${y}`,{headers:E,credentials:v}))));if(!S.indexError||!x.indexError){let w=await T0(w0(`${b.url}/metadata.json${y}`,{headers:E,credentials:v,cache:"no-cache"}).catch(()=>!1));Object.assign(m,{...S.indexError?x:S,...!w.indexError&&w})}else g||(m.indexError={message:Tt`
642
+ Error: Loading of ref failed
643
+ at fetch (lib/api/src/modules/refs.ts)
644
+
645
+ URL: ${b.url}
646
+
647
+ We weren't able to load the above URL,
648
+ it's possible a CORS error happened.
649
+
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=`
652
+ @layer {
653
+ [${Q0}] {
654
+ touch-action: pan-x pan-y pinch-zoom;
655
+ }
656
+ }
657
+ `.trim(),T.head.prepend(M)},[p]),f.useEffect(()=>{let T=v.current;return()=>{var M;d||Y0((M=T.target)!==null&&M!==void 0?M:void 0);for(let H of T.disposables)H();T.disposables=[]}},[d]),{isPressed:s||m,pressProps:re(g,I,{[Q0]:!0})}}function Pp(e){return e.tagName==="A"&&e.hasAttribute("href")}function nc(e,t){let{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof At(o).HTMLInputElement&&!QS(o,r)||o instanceof At(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Pp(o))&&r!=="Enter")}function qr(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function w7(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Pp(e)}function ey(e,t){return e instanceof HTMLInputElement?!QS(e,t):w7(e)}var C7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function QS(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":C7.has(e.type)}var Mr=null,ui=new Set,Ko=new Map,En=!1,Id=!1,_7={Tab:!0,Escape:!0};function Ip(e,t){for(let r of ui)r(e,t)}function T7(e){return!(e.metaKey||!bn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ll(e){En=!0,T7(e)&&(Mr="keyboard",Ip("keyboard",e))}function Kn(e){Mr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(En=!0,Ip("pointer",e))}function ex(e){KS(e)&&(En=!0,Mr="virtual")}function tx(e){e.target===window||e.target===document||al||!e.isTrusted||(!En&&!Id&&(Mr="virtual",Ip("virtual",e)),En=!1,Id=!1)}function rx(){al||(En=!1,Id=!0)}function sl(e){if(typeof window>"u"||typeof document>"u"||Ko.get(At(e)))return;let t=At(e),r=he(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){En=!0,n.apply(this,arguments)},r.addEventListener("keydown",ll,!0),r.addEventListener("keyup",ll,!0),r.addEventListener("click",ex,!0),t.addEventListener("focus",tx,!0),t.addEventListener("blur",rx,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",Kn,!0),r.addEventListener("pointermove",Kn,!0),r.addEventListener("pointerup",Kn,!0)),t.addEventListener("beforeunload",()=>{nx(e)},{once:!0}),Ko.set(t,{focus:n})}var nx=(e,t)=>{let r=At(e),n=he(e);t&&n.removeEventListener("DOMContentLoaded",t),Ko.has(r)&&(r.HTMLElement.prototype.focus=Ko.get(r).focus,n.removeEventListener("keydown",ll,!0),n.removeEventListener("keyup",ll,!0),n.removeEventListener("click",ex,!0),r.removeEventListener("focus",tx,!0),r.removeEventListener("blur",rx,!1),typeof PointerEvent<"u"&&(n.removeEventListener("pointerdown",Kn,!0),n.removeEventListener("pointermove",Kn,!0),n.removeEventListener("pointerup",Kn,!0)),Ko.delete(r))};function A7(e){let t=he(e),r;return t.readyState!=="loading"?sl(e):(r=()=>{sl(e)},t.addEventListener("DOMContentLoaded",r)),()=>nx(e,r)}typeof document<"u"&&A7();function ci(){return Mr!=="pointer"}function di(){return Mr}function O7(){sl();let[e,t]=f.useState(Mr);return f.useEffect(()=>{let r=()=>{t(Mr)};return ui.add(r),()=>{ui.delete(r)}},[]),_n()?null:e}var R7=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function D7(e,t,r){let n=he(r?.target),o=typeof window<"u"?At(r?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?At(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?At(r?.target).HTMLElement:HTMLElement,l=typeof window<"u"?At(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!R7.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof a&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof l&&!_7[r.key])}function P7(e,t,r){sl(),f.useEffect(()=>{let n=(o,i)=>{D7(!!r?.isTextInput,o,i)&&e(ci())};return ui.add(n),()=>{ui.delete(n)}},t)}function Br(e){let t=he(e),r=Be(t);if(di()==="virtual"){let n=r;HS(()=>{Be(t)===n&&e.isConnected&&ut(e)})}else ut(e)}function Fp(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e,i=f.useCallback(s=>{if(s.target===s.currentTarget)return n&&n(s),o&&o(!1),!0},[n,o]),a=JS(i),l=f.useCallback(s=>{let u=he(s.target),c=u?Be(u):Be();s.target===s.currentTarget&&c===Oe(s.nativeEvent)&&(r&&r(s),o&&o(!0),a(s))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?l:void 0,onBlur:!t&&(n||o)?i:void 0}}}function ty(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function ox(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ty(e.onKeyDown),onKeyUp:ty(e.onKeyUp)}}}var ul=h.createContext(null);function I7(e){let t=f.useContext(ul)||{};Ap(t,e);let{ref:r,...n}=t;return n}var F7=h.forwardRef(function(e,t){let{children:r,...n}=e,o=Gt(t),i={...n,ref:o};return h.createElement(ul.Provider,{value:i},r)});function Oi(e,t){let{focusProps:r}=Fp(e),{keyboardProps:n}=ox(e),o=re(r,n),i=I7(t),a=e.isDisabled?{}:i,l=f.useRef(e.autoFocus);f.useEffect(()=>{l.current&&t.current&&Br(t.current),l.current=!1},[t]);let s=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(s=void 0),{focusableProps:re({...o,tabIndex:s},a)}}var L7=f.forwardRef(({children:e,...t},r)=>{r=Gt(r);let{focusableProps:n}=Oi(t,r),o=h.Children.only(e);f.useEffect(()=>{},[r,t.isDisabled]);let i=parseInt(h.version,10)<19?o.ref:o.props.ref;return h.cloneElement(o,{...re(n,o.props),ref:Cp(i,r)})}),k7=h.forwardRef(({children:e,...t},r)=>{r=Gt(r);let{pressProps:n}=Ai({...t,ref:r}),{focusableProps:o}=Oi(t,r),i=h.Children.only(e);f.useEffect(()=>{},[r,t.isDisabled]);let a=parseInt(h.version,10)<19?i.ref:i.props.ref;return h.cloneElement(i,{...re(n,o,i.props),ref:Cp(a,r)})}),N7=h.forwardRef(({children:e,...t},r)=>{let n=f.useRef(!1),o=f.useContext(si);r=Gt(r||o?.ref);let i=re(o||{},{...t,ref:r,register(){n.current=!0,o&&o.register()}});return Ap(o,r),f.useEffect(()=>{n.current||(n.current=!0)},[]),h.createElement(si.Provider,{value:i},e)});function M7({children:e}){let t=f.useMemo(()=>({register:()=>{}}),[]);return h.createElement(si.Provider,{value:t},e)}function Lp(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=f.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:l}=es(),s=f.useCallback(d=>{d.currentTarget.contains(d.target)&&i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,l(),r&&r(d),o&&o(!1))},[r,o,i,l]),u=JS(s),c=f.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;let p=he(d.target),g=Be(p);if(!i.current.isFocusWithin&&g===Oe(d.nativeEvent)){n&&n(d),o&&o(!0),i.current.isFocusWithin=!0,u(d);let m=d.currentTarget;a(p,"focus",y=>{if(i.current.isFocusWithin&&!Ct(m,y.target)){let v=new p.defaultView.FocusEvent("blur",{relatedTarget:y.target});XS(v,m);let b=Dp(v);s(b)}},{capture:!0})}},[n,o,u,a,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:s}}}var Fd=!1,oa=0;function B7(){Fd=!0,setTimeout(()=>{Fd=!1},50)}function ry(e){e.pointerType==="touch"&&B7()}function j7(){if(!(typeof document>"u"))return oa===0&&(typeof PointerEvent<"u"&&document.addEventListener("pointerup",ry)),oa++,()=>{oa--,!(oa>0)&&(typeof PointerEvent<"u"&&document.removeEventListener("pointerup",ry))}}function vo(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,a]=f.useState(!1),l=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(j7,[]);let{addGlobalListener:s,removeAllGlobalListeners:u}=es(),{hoverProps:c,triggerHoverEnd:d}=f.useMemo(()=>{let p=(y,v)=>{if(l.pointerType=v,o||v==="touch"||l.isHovered||!y.currentTarget.contains(y.target))return;l.isHovered=!0;let b=y.currentTarget;l.target=b,s(he(y.target),"pointerover",E=>{l.isHovered&&l.target&&!Ct(l.target,E.target)&&g(E,E.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:b,pointerType:v}),r&&r(!0),a(!0)},g=(y,v)=>{let b=l.target;l.pointerType="",l.target=null,!(v==="touch"||!l.isHovered||!b)&&(l.isHovered=!1,u(),n&&n({type:"hoverend",target:b,pointerType:v}),r&&r(!1),a(!1))},m={};return typeof PointerEvent<"u"&&(m.onPointerEnter=y=>{Fd&&y.pointerType==="mouse"||p(y,y.pointerType)},m.onPointerLeave=y=>{!o&&y.currentTarget.contains(y.target)&&g(y,y.pointerType)}),{hoverProps:m,triggerHoverEnd:g}},[t,r,n,o,l,s,u]);return f.useEffect(()=>{o&&d({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:c,isHovered:i}}function ix(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=f.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Ue(s=>{r&&ny(s,t)&&(o&&o(s),i.current.isPointerDown=!0)}),l=Ue(s=>{r&&r(s)});f.useEffect(()=>{let s=i.current;if(n)return;let u=t.current,c=he(u);if(typeof PointerEvent<"u"){let d=p=>{s.isPointerDown&&ny(p,t)&&l(p),s.isPointerDown=!1};return c.addEventListener("pointerdown",a,!0),c.addEventListener("click",d,!0),()=>{c.removeEventListener("pointerdown",a,!0),c.removeEventListener("click",d,!0)}}},[t,n,a,l])}function ny(e,t){if(e.button>0)return!1;if(e.target){let r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}var H7=500;function U7(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=H7,accessibilityDescription:a}=e,l=f.useRef(void 0),{addGlobalListener:s,removeGlobalListener:u}=es(),{pressProps:c}=Ai({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(r&&r({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),he(p.target).activeElement!==p.target&&ut(p.target),o&&o({...p,type:"longpress"}),l.current=void 0},i),p.pointerType==="touch")){let g=m=>{m.preventDefault()};s(p.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){l.current&&clearTimeout(l.current),n&&(p.pointerType==="mouse"||p.pointerType==="touch")&&n({...p,type:"longpressend"})}}),d=i7(o&&!t?a:void 0);return{longPressProps:re(c,d)}}var cl=Symbol("default");function $r({values:e,children:t}){for(let[r,n]of e)t=h.createElement(r.Provider,{value:n},t);return t}function St(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:l}=e;return f.useMemo(()=>{let s,u,c;return typeof t=="function"?s=t({...l,defaultClassName:o}):s=t,typeof r=="function"?u=r({...l,defaultStyle:a||{}}):u=r,typeof n=="function"?c=n({...l,defaultChildren:i}):n==null?c=i:c=n,{className:s??o,style:u||a?{...a,...u}:void 0,children:c??i,"data-rac":""}},[t,r,n,o,i,a,l])}function kp(e,t){let r=f.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||cl;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function Qe(e,t,r){let n=kp(r,e.slot)||{},{ref:o,...i}=n,a=Gt(f.useMemo(()=>Cp(t,o),[t,o])),l=re(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?l.style=s=>{let u=typeof i.style=="function"?i.style(s):i.style,c={...s.defaultStyle,...u},d=typeof e.style=="function"?e.style({...s,defaultStyle:c}):e.style;return{...c,...d}}:l.style={...i.style,...e.style}),[l,a]}function ax(e=!0){let[t,r]=f.useState(e),n=f.useRef(!1),o=f.useCallback(i=>{n.current=!0,r(!!i)},[]);return pe(()=>{n.current||r(!1)},[]),[o,t]}var Np=f.createContext({placement:"bottom"});f.forwardRef(function(e,t){[e,t]=Qe(e,t,Np);let r=e.placement,n={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(n[r]="100%");let o=St({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});o.style&&Object.keys(o.style).forEach(a=>o.style[a]===void 0&&delete o.style[a]);let i=Te(e);return h.createElement("div",{...i,...o,style:{...n,...o.style},ref:t,"data-placement":r})});function z7(e,t){let r=Te(e,{labelable:!0}),{hoverProps:n}=vo({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:re(r,n,{role:"tooltip"})}}function K7(e,t,r){let{isDisabled:n,trigger:o}=e,i=We(),a=f.useRef(!1),l=f.useRef(!1),s=()=>{(a.current||l.current)&&t.open(l.current)},u=b=>{!a.current&&!l.current&&t.close(b)};f.useEffect(()=>{let b=E=>{r&&r.current&&E.key==="Escape"&&(E.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",b,!0),()=>{document.removeEventListener("keydown",b,!0)}},[r,t]);let c=()=>{o!=="focus"&&(di()==="pointer"?a.current=!0:a.current=!1,s())},d=()=>{o!=="focus"&&(l.current=!1,a.current=!1,u())},p=()=>{l.current=!1,a.current=!1,u(!0)},g=()=>{ci()&&(l.current=!0,s())},m=()=>{l.current=!1,a.current=!1,u(!0)},{hoverProps:y}=vo({isDisabled:n,onHoverStart:c,onHoverEnd:d}),{focusableProps:v}=Oi({isDisabled:n,onFocus:g,onBlur:m},r);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...re(v,y,{onPointerDown:p,onKeyDown:p}),tabIndex:void 0},tooltipProps:{id:i}}}var rr={top:"top",bottom:"top",left:"left",right:"left"},dl={top:"bottom",bottom:"top",left:"right",right:"left"},G7={top:"left",left:"top"},Ld={top:"height",left:"width"},lx={width:"totalWidth",height:"totalHeight"},ia={},Cr=typeof document<"u"?window.visualViewport:null;function oy(e){let t=0,r=0,n=0,o=0,i=0,a=0,l={};var s;let u=((s=Cr?.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"){let m=document.documentElement;n=m.clientWidth,o=m.clientHeight;var c;t=(c=Cr?.width)!==null&&c!==void 0?c:n;var d;r=(d=Cr?.height)!==null&&d!==void 0?d:o,l.top=m.scrollTop||e.scrollTop,l.left=m.scrollLeft||e.scrollLeft,Cr&&(i=Cr.offsetTop,a=Cr.offsetLeft)}else({width:t,height:r,top:i,left:a}=Gn(e,!1)),l.top=e.scrollTop,l.left=e.scrollLeft,n=t,o=r;if(MS()&&(e.tagName==="BODY"||e.tagName==="HTML")&&u){l.top=0,l.left=0;var p;i=(p=Cr?.pageTop)!==null&&p!==void 0?p:0;var g;a=(g=Cr?.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:l,top:i,left:a}}function W7(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function iy(e,t,r,n,o,i,a){var l;let s=(l=o.scroll[e])!==null&&l!==void 0?l:0,u=n[Ld[e]],c=n.scroll[rr[e]]+i,d=u+n.scroll[rr[e]]-i,p=t-s+a[e]-n[rr[e]],g=t-s+r+a[e]-n[rr[e]];return p<c?c-p:g>d?Math.max(d-g,c-p):0}function V7(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function ay(e){if(ia[e])return ia[e];let[t,r]=e.split(" "),n=rr[t]||"right",o=G7[n];rr[r]||(r="center");let i=Ld[n],a=Ld[o];return ia[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:a},ia[e]}function oc(e,t,r,n,o,i,a,l,s,u){let{placement:c,crossPlacement:d,axis:p,crossAxis:g,size:m,crossSize:y}=n,v={};var b;v[g]=(b=e[g])!==null&&b!==void 0?b:0;var E,S,x,A;d==="center"?v[g]+=(((E=e[y])!==null&&E!==void 0?E:0)-((S=r[y])!==null&&S!==void 0?S:0))/2:d!==g&&(v[g]+=((x=e[y])!==null&&x!==void 0?x:0)-((A=r[y])!==null&&A!==void 0?A:0)),v[g]+=i;let w=e[g]-r[y]+s+u,C=e[g]+e[y]-s-u;if(v[g]=li(v[g],w,C),c===p){let R=l?a[m]:t[lx[m]];v[dl[p]]=Math.floor(R-e[p]+o)}else v[p]=Math.floor(e[p]+e[m]+o);return v}function q7(e,t,r,n,o,i,a,l){let s=n?r.height:t[lx.height];var u;let c=e.top!=null?r.top+e.top:r.top+(s-((u=e.bottom)!==null&&u!==void 0?u:0)-a);var d,p,g,m,y,v;let b=l!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-c-(((p=o.top)!==null&&p!==void 0?p:0)+((g=o.bottom)!==null&&g!==void 0?g:0)+i)):Math.max(0,c+a-(t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0))-(((y=o.top)!==null&&y!==void 0?y:0)+((v=o.bottom)!==null&&v!==void 0?v:0)+i));return Math.min(t.height-i*2,b)}function ly(e,t,r,n,o,i){let{placement:a,axis:l,size:s}=i;var u,c;if(a===l)return Math.max(0,r[l]-e[l]-((u=e.scroll[l])!==null&&u!==void 0?u:0)+t[l]-((c=n[l])!==null&&c!==void 0?c:0)-n[dl[l]]-o);var d;return Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-r[l]-r[s]-((d=n[l])!==null&&d!==void 0?d:0)-n[dl[l]]-o)}function Y7(e,t,r,n,o,i,a,l,s,u,c,d,p,g,m,y){let v=ay(e),{size:b,crossAxis:E,crossSize:S,placement:x,crossPlacement:A}=v,w=oc(t,l,r,v,c,d,u,p,m,y),C=c,R=ly(l,u,t,o,i+c,v);if(a&&n[b]>R){let G=ay(`${dl[x]} ${A}`),X=oc(t,l,r,G,c,d,u,p,m,y);ly(l,u,t,o,i+c,G)>R&&(v=G,w=X,C=c)}let L="bottom";v.axis==="top"?v.placement==="top"?L="top":v.placement==="bottom"&&(L="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?L="bottom":v.crossPlacement==="bottom"&&(L="top"));let I=iy(E,w[E],r[S],l,s,i,u);w[E]+=I;let T=q7(w,l,u,p,o,i,r.height,L);g&&g<T&&(T=g),r.height=Math.min(r.height,T),w=oc(t,l,r,v,C,d,u,p,m,y),I=iy(E,w[E],r[S],l,s,i,u),w[E]+=I;let M={},H=t[E]-w[E]-o[rr[E]],$=H+.5*t[S],_=m/2+y;var O,P,k,B;let N=rr[E]==="left"?((O=o.left)!==null&&O!==void 0?O:0)+((P=o.right)!==null&&P!==void 0?P:0):((k=o.top)!==null&&k!==void 0?k:0)+((B=o.bottom)!==null&&B!==void 0?B:0),D=r[S]-N-m/2-y,j=t[E]+m/2-(w[E]+o[rr[E]]),K=t[E]+t[S]-m/2-(w[E]+o[rr[E]]),U=li($,j,K);M[E]=li(U,_,D),{placement:x,crossPlacement:A}=v,m?H=M[E]:A==="right"?H+=t[S]:A==="center"&&(H+=t[S]/2);let z=x==="left"||x==="top"?r[b]:0,W={x:x==="top"||x==="bottom"?H:z,y:x==="left"||x==="right"?H:z};return{position:w,maxHeight:T,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:x,triggerAnchorPoint:W}}function X7(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:l,offset:s,crossOffset:u,maxHeight:c,arrowSize:d=0,arrowBoundaryOffset:p=0}=e,g=n instanceof HTMLElement?J7(n):document.documentElement,m=g===document.documentElement,y=window.getComputedStyle(g).position,v=!!y&&y!=="static",b=m?Gn(r,!1):sy(r,g,!1);if(!m){let{marginTop:M,marginLeft:H}=window.getComputedStyle(r);b.top+=parseInt(M,10)||0,b.left+=parseInt(H,10)||0}let E=Gn(n,!0),S=V7(n);var x,A;E.width+=((x=S.left)!==null&&x!==void 0?x:0)+((A=S.right)!==null&&A!==void 0?A:0);var w,C;E.height+=((w=S.top)!==null&&w!==void 0?w:0)+((C=S.bottom)!==null&&C!==void 0?C:0);let R=W7(o),L=oy(l),I=oy(g),T=l.tagName==="BODY"?Gn(g,!1):sy(g,l,!1);return g.tagName==="HTML"&&l.tagName==="BODY"&&(I.scroll.top=0,I.scroll.left=0),Y7(t,b,E,R,S,i,a,L,I,T,s,u,v,c,d,p)}function Mp(e,t){let{top:r,left:n,width:o,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,i=e.offsetHeight),{top:r,left:n,width:o,height:i}}function Gn(e,t){let{top:r,left:n,width:o,height:i}=Mp(e,t),{scrollTop:a,scrollLeft:l,clientTop:s,clientLeft:u}=document.documentElement;return{top:r+a-s,left:n+l-u,width:o,height:i}}function sy(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=Mp(e,r);else{o=Gn(e,r);let i=Gn(t,r),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=i.top,o.left-=i.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function J7(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!uy(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!uy(t);)t=t.parentElement;return t||document.documentElement}function uy(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}var sx=new WeakMap;function Z7(e){let{triggerRef:t,isOpen:r,onClose:n}=e;f.useEffect(()=>{if(!r||n===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let l=n||sx.get(t.current);l&&l()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}var Q7=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),eN=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function tN(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return Q7.has(r.script)}let t=e.split("-")[0];return eN.has(t)}var rN=Symbol.for("react-aria.i18n.locale");function ux(){let e=typeof window<"u"&&window[rN]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:tN(e)?"rtl":"ltr"}}var kd=ux(),jo=new Set;function cy(){kd=ux();for(let e of jo)e(kd)}function nN(){let e=_n(),[t,r]=f.useState(kd);return f.useEffect(()=>(jo.size===0&&window.addEventListener("languagechange",cy),jo.add(r),()=>{jo.delete(r),jo.size===0&&window.removeEventListener("languagechange",cy)}),[]),e?{locale:"en-US",direction:"ltr"}:t}var oN=h.createContext(null);function wr(){let e=nN();return f.useContext(oN)||e}var Nd=function(e,t){return Nd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Nd(e,t)};function ns(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Nd(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var fe=function(){return fe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fe.apply(this,arguments)};function iN(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function ic(e,t,r){if(arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function ac(e,t){var r=t&&t.cache?t.cache:fN,n=t&&t.serializer?t.serializer:cN,o=t&&t.strategy?t.strategy:sN;return o(e,{cache:r,serializer:n})}function aN(e){return e==null||typeof e=="number"||typeof e=="boolean"}function lN(e,t,r,n){var o=aN(n)?n:r(n),i=t.get(o);return typeof i>"u"&&(i=e.call(this,n),t.set(o,i)),i}function cx(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,n),t.set(o,i)),i}function dx(e,t,r,n,o){return r.bind(t,e,n,o)}function sN(e,t){var r=e.length===1?lN:cx;return dx(e,this,r,t.cache.create(),t.serializer)}function uN(e,t){return dx(e,this,cx,t.cache.create(),t.serializer)}var cN=function(){return JSON.stringify(arguments)},dN=(function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e})(),fN={create:function(){return new dN}},lc={variadic:uN},se;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(se||(se={}));var we;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(we||(we={}));var to;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(to||(to={}));function dy(e){return e.type===we.literal}function pN(e){return e.type===we.argument}function fx(e){return e.type===we.number}function px(e){return e.type===we.date}function hx(e){return e.type===we.time}function gx(e){return e.type===we.select}function mx(e){return e.type===we.plural}function hN(e){return e.type===we.pound}function yx(e){return e.type===we.tag}function bx(e){return!!(e&&typeof e=="object"&&e.type===to.number)}function Md(e){return!!(e&&typeof e=="object"&&e.type===to.dateTime)}var vx=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,gN=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function mN(e){var t={};return e.replace(gN,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var yN=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function bN(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(yN).filter(function(p){return p.length>0}),r=[],n=0,o=t;n<o.length;n++){var i=o[n],a=i.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var l=a[0],s=a.slice(1),u=0,c=s;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:s})}return r}function vN(e){return e.replace(/^(.*?)-/,"")}var fy=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ex=/^(@+)?(\+|#+)?[rs]?$/g,EN=/(\*)(0+)|(#+)(0+)|(0+)/g,Sx=/^(0+)$/;function py(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ex,function(r,n,o){return typeof o!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):o==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof o=="string"?o.length:0)),""}),t}function xx(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function SN(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Sx.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function hy(e){var t={},r=xx(e);return r||t}function xN(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=vN(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=fe(fe(fe({},t),{notation:"scientific"}),o.options.reduce(function(s,u){return fe(fe({},s),hy(u))},{}));continue;case"engineering":t=fe(fe(fe({},t),{notation:"engineering"}),o.options.reduce(function(s,u){return fe(fe({},s),hy(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(EN,function(s,u,c,d,p,g){if(u)t.minimumIntegerDigits=c.length;else{if(d&&p)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Sx.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(fy.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(fy,function(s,u,c,d,p,g){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:p&&g?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+g.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=o.options[0];i==="w"?t=fe(fe({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=fe(fe({},t),py(i)));continue}if(Ex.test(o.stem)){t=fe(fe({},t),py(o.stem));continue}var a=xx(o.stem);a&&(t=fe(fe({},t),a));var l=SN(o.stem);l&&(t=fe(fe({},t),l))}return t}var aa={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function $N(e,t){for(var r="",n=0;n<e.length;n++){var o=e.charAt(n);if(o==="j"){for(var i=0;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;var a=1+(i&1),l=i<2?1:3+(i>>1),s="a",u=wN(t);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=s;for(;a-- >0;)r=u+r}else o==="J"?r+="H":r+=o}return r}function wN(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var o=aa[n||""]||aa[r||""]||aa["".concat(r,"-001")]||aa["001"];return o[0]}var sc,CN=new RegExp("^".concat(vx.source,"*")),_N=new RegExp("".concat(vx.source,"*$"));function ue(e,t){return{start:e,end:t}}var TN=!!String.prototype.startsWith&&"_a".startsWith("a",1),AN=!!String.fromCodePoint,ON=!!Object.fromEntries,RN=!!String.prototype.codePointAt,DN=!!String.prototype.trimStart,PN=!!String.prototype.trimEnd,IN=!!Number.isSafeInteger,FN=IN?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Bd=!0;try{gy=wx("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Bd=((sc=gy.exec("a"))===null||sc===void 0?void 0:sc[0])==="a"}catch{Bd=!1}var gy,my=TN?(function(e,t,r){return e.startsWith(t,r)}):(function(e,t,r){return e.slice(r,r+t.length)===t}),jd=AN?String.fromCodePoint:(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",n=e.length,o=0,i;n>o;){if(i=e[o++],i>1114111)throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return r}),yy=ON?Object.fromEntries:(function(e){for(var t={},r=0,n=e;r<n.length;r++){var o=n[r],i=o[0],a=o[1];t[i]=a}return t}),$x=RN?(function(e,t){return e.codePointAt(t)}):(function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t),o;return n<55296||n>56319||t+1===r||(o=e.charCodeAt(t+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}}),LN=DN?(function(e){return e.trimStart()}):(function(e){return e.replace(CN,"")}),kN=PN?(function(e){return e.trimEnd()}):(function(e){return e.replace(_N,"")});function wx(e,t){return new RegExp(e,t)}var Hd;Bd?(uc=wx("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),Hd=function(e,t){var r;uc.lastIndex=t;var n=uc.exec(e);return(r=n[1])!==null&&r!==void 0?r:""}):Hd=function(e,t){for(var r=[];;){var n=$x(e,t);if(n===void 0||Cx(n)||jN(n))break;r.push(n),t+=n>=65536?2:1}return jd.apply(void 0,r)};var uc,NN=(function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,n);if(a.err)return a;o.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),o.push({type:we.pound,location:ue(l,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(se.UNMATCHED_CLOSING_TAG,ue(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Ud(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:we.literal,value:"<".concat(o,"/>"),location:ue(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var a=i.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ud(this.char()))return this.error(se.INVALID_TAG,ue(l,this.clonePosition()));var s=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(se.UNMATCHED_CLOSING_TAG,ue(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:we.tag,value:o,children:a,location:ue(n,this.clonePosition())},err:null}:this.error(se.INVALID_TAG,ue(l,this.clonePosition())))}else return this.error(se.UNCLOSED_TAG,ue(n,this.clonePosition()))}else return this.error(se.INVALID_TAG,ue(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&BN(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var i=this.tryParseQuote(r);if(i){o+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){o+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){o+=l;continue}break}var s=ue(n,this.clonePosition());return{val:{type:we.literal,value:o,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!MN(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return jd.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),jd(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,ue(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(se.EMPTY_ARGUMENT,ue(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(se.MALFORMED_ARGUMENT,ue(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,ue(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:we.argument,value:o,location:ue(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,ue(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(se.MALFORMED_ARGUMENT,ue(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Hd(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),a=ue(t,i);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(l){case"":return this.error(se.EXPECT_ARGUMENT_TYPE,ue(a,s));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var p=kN(d.val);if(p.length===0)return this.error(se.EXPECT_ARGUMENT_STYLE,ue(this.clonePosition(),this.clonePosition()));var g=ue(c,this.clonePosition());u={style:p,styleLocation:g}}var m=this.tryParseArgumentClose(o);if(m.err)return m;var y=ue(o,this.clonePosition());if(u&&my(u?.style,"::",0)){var v=LN(u.style.slice(2));if(l==="number"){var d=this.parseNumberSkeletonFromString(v,u.styleLocation);return d.err?d:{val:{type:we.number,value:n,location:y,style:d.val},err:null}}else{if(v.length===0)return this.error(se.EXPECT_DATE_TIME_SKELETON,y);var b=v;this.locale&&(b=$N(v,this.locale));var p={type:to.dateTime,pattern:b,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?mN(b):{}},E=l==="date"?we.date:we.time;return{val:{type:E,value:n,location:y,style:p},err:null}}}return{val:{type:l==="number"?we.number:l==="date"?we.date:we.time,value:n,location:y,style:(i=u?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(se.EXPECT_SELECT_ARGUMENT_OPTIONS,ue(S,fe({},S)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),A=0;if(l!=="select"&&x.value==="offset"){if(!this.bumpIf(":"))return this.error(se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ue(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(se.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,se.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),x=this.parseIdentifierIfPossible(),A=d.val}var w=this.tryParsePluralOrSelectOptions(t,l,r,x);if(w.err)return w;var m=this.tryParseArgumentClose(o);if(m.err)return m;var C=ue(o,this.clonePosition());return l==="select"?{val:{type:we.select,value:n,options:yy(w.val),location:C},err:null}:{val:{type:we.plural,value:n,options:yy(w.val),offset:A,pluralType:l==="plural"?"cardinal":"ordinal",location:C},err:null}}default:return this.error(se.INVALID_ARGUMENT_TYPE,ue(a,s))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(se.EXPECT_ARGUMENT_CLOSING_BRACE,ue(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(se.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ue(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=bN(t)}catch{return this.error(se.INVALID_NUMBER_SKELETON,r)}return{val:{type:to.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?xN(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,a=!1,l=[],s=new Set,u=o.value,c=o.location;;){if(u.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(se.EXPECT_PLURAL_ARGUMENT_SELECTOR,se.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=ue(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(s.has(u))return this.error(r==="select"?se.DUPLICATE_SELECT_ARGUMENT_SELECTOR:se.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(a=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?se.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:se.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ue(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,r,n);if(m.err)return m;var y=this.tryParseArgumentClose(g);if(y.err)return y;l.push([u,{value:m.val,location:ue(g,this.clonePosition())}]),s.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,c=i.location}return l.length===0?this.error(r==="select"?se.EXPECT_SELECT_ARGUMENT_SELECTOR:se.EXPECT_PLURAL_ARGUMENT_SELECTOR,ue(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(se.MISSING_OTHER_CLAUSE,ue(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)i=!0,a=a*10+(l-48),this.bump();else break}var s=ue(o,this.clonePosition());return i?(a*=n,FN(a)?{val:a,err:null}:this.error(r,s)):this.error(t,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=$x(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(my(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Cx(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e})();function Ud(e){return e>=97&&e<=122||e>=65&&e<=90}function MN(e){return Ud(e)||e===47}function BN(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Cx(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function jN(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function zd(e){e.forEach(function(t){if(delete t.location,gx(t)||mx(t))for(var r in t.options)delete t.options[r].location,zd(t.options[r].value);else fx(t)&&bx(t.style)||(px(t)||hx(t))&&Md(t.style)?delete t.style.location:yx(t)&&zd(t.children)})}function HN(e,t){t===void 0&&(t={}),t=fe({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new NN(e,t).parse();if(r.err){var n=SyntaxError(se[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||zd(r.val),r.val}var ro;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ro||(ro={}));var os=(function(e){ns(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),by=(function(e){ns(t,e);function t(r,n,o,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),ro.INVALID_VALUE,i)||this}return t})(os),UN=(function(e){ns(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),ro.INVALID_VALUE,o)||this}return t})(os),zN=(function(e){ns(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),ro.MISSING_VALUE,n)||this}return t})(os),it;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(it||(it={}));function KN(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==it.literal||r.type!==it.literal?t.push(r):n.value+=r.value,t},[])}function GN(e){return typeof e=="function"}function Pa(e,t,r,n,o,i,a){if(e.length===1&&dy(e[0]))return[{type:it.literal,value:e[0].value}];for(var l=[],s=0,u=e;s<u.length;s++){var c=u[s];if(dy(c)){l.push({type:it.literal,value:c.value});continue}if(hN(c)){typeof i=="number"&&l.push({type:it.literal,value:r.getNumberFormat(t).format(i)});continue}var d=c.value;if(!(o&&d in o))throw new zN(d,a);var p=o[d];if(pN(c)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),l.push({type:typeof p=="string"?it.literal:it.object,value:p});continue}if(px(c)){var g=typeof c.style=="string"?n.date[c.style]:Md(c.style)?c.style.parsedOptions:void 0;l.push({type:it.literal,value:r.getDateTimeFormat(t,g).format(p)});continue}if(hx(c)){var g=typeof c.style=="string"?n.time[c.style]:Md(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:it.literal,value:r.getDateTimeFormat(t,g).format(p)});continue}if(fx(c)){var g=typeof c.style=="string"?n.number[c.style]:bx(c.style)?c.style.parsedOptions:void 0;g&&g.scale&&(p=p*(g.scale||1)),l.push({type:it.literal,value:r.getNumberFormat(t,g).format(p)});continue}if(yx(c)){var m=c.children,y=c.value,v=o[y];if(!GN(v))throw new UN(y,"function",a);var b=Pa(m,t,r,n,o,i),E=v(b.map(function(A){return A.value}));Array.isArray(E)||(E=[E]),l.push.apply(l,E.map(function(A){return{type:typeof A=="string"?it.literal:it.object,value:A}}))}if(gx(c)){var S=c.options[p]||c.options.other;if(!S)throw new by(c.value,p,Object.keys(c.options),a);l.push.apply(l,Pa(S.value,t,r,n,o));continue}if(mx(c)){var S=c.options["=".concat(p)];if(!S){if(!Intl.PluralRules)throw new os(`Intl.PluralRules is not available in this environment.
658
+ Try polyfilling it using "@formatjs/intl-pluralrules"
659
+ `,ro.MISSING_INTL_API,a);var x=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));S=c.options[x]||c.options.other}if(!S)throw new by(c.value,p,Object.keys(c.options),a);l.push.apply(l,Pa(S.value,t,r,n,o,p-(c.offset||0)));continue}}return KN(l)}function WN(e,t){return t?fe(fe(fe({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=fe(fe({},e[n]),t[n]||{}),r},{})):e}function VN(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=WN(e[n],t[n]),r},fe({},e)):e}function cc(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function qN(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ac(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,ic([void 0],r,!1)))},{cache:cc(e.number),strategy:lc.variadic}),getDateTimeFormat:ac(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,ic([void 0],r,!1)))},{cache:cc(e.dateTime),strategy:lc.variadic}),getPluralRules:ac(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,ic([void 0],r,!1)))},{cache:cc(e.pluralRules),strategy:lc.variadic})}}(function(){function e(t,r,n,o){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(s){var u=i.formatToParts(s);if(u.length===1)return u[0].value;var c=u.reduce(function(d,p){return!d.length||p.type!==it.literal||typeof d[d.length-1]!="string"?d.push(p.value):d[d.length-1]+=p.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(s){return Pa(i.ast,i.locales,i.formatters,i.formats,s,void 0,i.message)},this.resolvedOptions=function(){var s;return{locale:((s=i.resolvedLocale)===null||s===void 0?void 0:s.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=o||{};a.formatters;var l=iN(a,["formatters"]);this.ast=e.__parse(t,fe(fe({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=VN(e.formats,n),this.formatters=o&&o.formatters||qN(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=HN,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})();var YN=Symbol.for("react-aria.i18n.locale"),XN=Symbol.for("react-aria.i18n.strings"),la,_x=class Tx{getStringForLocale(t,r){let n=this.getStringsForLocale(r)[t];if(!n)throw new Error(`Could not find intl message ${t} in ${r} locale`);return n}getStringsForLocale(t){let r=this.strings[t];return r||(r=JN(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[YN];if(la===void 0){let o=window[XN];if(!o)return null;la={};for(let i in o)la[i]=new Tx({[r]:o[i]},r)}let n=la?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}};function JN(e,t,r="en-US"){if(t[e])return t[e];let n=ZN(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function ZN(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}var vy=new Map,Ey=new Map,QN=class{format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return typeof r=="function"?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return typeof n=="function"?n():n;let o=this.locale+":"+r,i=vy.get(o);i||(i=new Intl.PluralRules(this.locale,{type:r}),vy.set(o,i));let a=i.select(e);return n=t[a]||t.other,typeof n=="function"?n():n}number(e){let t=Ey.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),Ey.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return typeof r=="function"?r():r}constructor(e,t){this.locale=e,this.strings=t}},Sy=new WeakMap;function e9(e){let t=Sy.get(e);return t||(t=new _x(e),Sy.set(e,t)),t}function t9(e,t){return _x.getGlobalDictionaryForPackage(t)||e9(e)}function r9(e,t){let{locale:r}=wr(),n=t9(e,t);return f.useMemo(()=>new QN(r,n),[r,n])}var dc=new Map,Kd=!1;try{Kd=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}var fl=!1;try{fl=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}var Ax={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}},n9=class{format(e){let t="";if(!Kd&&this.options.signDisplay!=null?t=i9(this.numberFormatter,this.options.signDisplay,e):t=this.numberFormatter.format(e),this.options.style==="unit"&&!fl){var r;let{unit:n,unitDisplay:o="short",locale:i}=this.resolvedOptions();if(!n)return t;let a=(r=Ax[n])===null||r===void 0?void 0:r[o];t+=a[i]||a.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!Kd&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!fl&&this.options.style==="unit"&&(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=o9(e,t),this.options=t}};function o9(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!fl){var n;let{unit:a,unitDisplay:l="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Ax[a])===null||n===void 0)&&n[l]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,l)=>a[0]<l[0]?-1:1).join():"");if(dc.has(o))return dc.get(o);let i=new Intl.NumberFormat(e,t);return dc.set(o,i),i}function i9(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(r)}}function a9(e={}){let{locale:t}=wr();return f.useMemo(()=>new n9(t,e),[t,e])}var fc=new Map;function l9(e){let{locale:t}=wr(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(fc.has(r))return fc.get(r);let n=new Intl.Collator(t,e);return fc.set(r,n),n}var Yr=typeof document<"u"?window.visualViewport:null;function Bp(e){let{direction:t}=wr(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:i,scrollRef:a=o,placement:l="bottom",containerPadding:s=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:p=0,shouldUpdatePosition:g=!0,isOpen:m=!0,onClose:y,maxHeight:v,arrowBoundaryOffset:b=0}=e,[E,S]=f.useState(null),x=[g,l,o.current,n.current,i?.current,a.current,s,u,c,d,p,m,t,v,b,r],A=f.useRef(Yr?.scale);f.useEffect(()=>{m&&(A.current=Yr?.scale)},[m]);let w=f.useCallback(()=>{if(g===!1||!m||!o.current||!n.current||!c||Yr?.scale!==A.current)return;let M=null;if(a.current&&a.current.contains(document.activeElement)){var H;let N=(H=document.activeElement)===null||H===void 0?void 0:H.getBoundingClientRect(),D=a.current.getBoundingClientRect();var $;if(M={type:"top",offset:(($=N?.top)!==null&&$!==void 0?$:0)-D.top},M.offset>D.height/2){M.type="bottom";var _;M.offset=((_=N?.bottom)!==null&&_!==void 0?_:0)-D.bottom}}let O=o.current;if(!v&&o.current){var P;O.style.top="0px",O.style.bottom="";var k;O.style.maxHeight=((k=(P=window.visualViewport)===null||P===void 0?void 0:P.height)!==null&&k!==void 0?k:window.innerHeight)+"px"}let B=X7({placement:u9(l,t),overlayNode:o.current,targetNode:n.current,scrollNode:a.current||o.current,padding:s,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:p,maxHeight:v,arrowSize:r??(i?.current?Mp(i.current,!0).width:0),arrowBoundaryOffset:b});if(B.position){if(O.style.top="",O.style.bottom="",O.style.left="",O.style.right="",Object.keys(B.position).forEach(N=>O.style[N]=B.position[N]+"px"),O.style.maxHeight=B.maxHeight!=null?B.maxHeight+"px":"",M&&document.activeElement&&a.current){let N=document.activeElement.getBoundingClientRect(),D=a.current.getBoundingClientRect(),j=N[M.type]-D[M.type];a.current.scrollTop+=j-M.offset}S(B)}},x);pe(w,x),s9(w),il({ref:o,onResize:w}),il({ref:n,onResize:w});let C=f.useRef(!1);pe(()=>{let M,H=()=>{C.current=!0,clearTimeout(M),M=setTimeout(()=>{C.current=!1},500),w()},$=()=>{C.current&&H()};return Yr?.addEventListener("resize",H),Yr?.addEventListener("scroll",$),()=>{Yr?.removeEventListener("resize",H),Yr?.removeEventListener("scroll",$)}},[w]);let R=f.useCallback(()=>{C.current||y?.()},[y,C]);Z7({triggerRef:n,isOpen:m,onClose:y&&R});var L,I,T;return{overlayProps:{style:{position:E?"absolute":"fixed",top:E?void 0:0,left:E?void 0:0,zIndex:1e5,...E?.position,maxHeight:(L=E?.maxHeight)!==null&&L!==void 0?L:"100vh"}},placement:(I=E?.placement)!==null&&I!==void 0?I:null,triggerAnchorPoint:(T=E?.triggerAnchorPoint)!==null&&T!==void 0?T:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:E?.arrowOffsetLeft,top:E?.arrowOffsetTop}},updatePosition:w}}function s9(e){pe(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function u9(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}var xy=h.createContext(null),Gd="react-aria-focus-scope-restore",Ee=null;function jp(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=f.useRef(null),a=f.useRef(null),l=f.useRef([]),{parentNode:s}=f.useContext(xy)||{},u=f.useMemo(()=>new Vd({scopeRef:l}),[l]);pe(()=>{let p=s||De.root;if(De.getTreeNode(p.scopeRef)&&Ee&&!pl(Ee,p.scopeRef)){let g=De.getTreeNode(Ee);g&&(p=g)}p.addChild(u),De.addNode(u)},[u,s]),pe(()=>{let p=De.getTreeNode(l);p&&(p.contain=!!r)},[r]),pe(()=>{var p;let g=(p=i.current)===null||p===void 0?void 0:p.nextSibling,m=[],y=v=>v.stopPropagation();for(;g&&g!==a.current;)m.push(g),g.addEventListener(Gd,y),g=g.nextSibling;return l.current=m,()=>{for(let v of m)v.removeEventListener(Gd,y)}},[t]),g9(l,n,r),f9(l,r),m9(l,n,r),h9(l,o),f.useEffect(()=>{let p=Be(he(l.current?l.current[0]:void 0)),g=null;if(Rt(p,l.current)){for(let m of De.traverse())m.scopeRef&&Rt(p,m.scopeRef.current)&&(g=m);g===De.getTreeNode(l)&&(Ee=g.scopeRef)}},[l]),pe(()=>()=>{var p,g,m;let y=(m=(g=De.getTreeNode(l))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&m!==void 0?m:null;(l===Ee||pl(l,Ee))&&(!y||De.getTreeNode(y))&&(Ee=y),De.removeTreeNode(l)},[l]);let c=f.useMemo(()=>c9(l),[]),d=f.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return h.createElement(xy.Provider,{value:d},h.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,h.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function c9(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t;var l;let s=n||Be(he((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[0].previousElementSibling,c=sn(r),d=dt(c,{tabbable:o,accept:a},r);d.currentNode=Rt(s,r)?s:u;let p=d.nextNode();return!p&&i&&(d.currentNode=u,p=d.nextNode()),p&&ct(p,!0),p},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t;var l;let s=n||Be(he((l=r[0])!==null&&l!==void 0?l:void 0)),u=r[r.length-1].nextElementSibling,c=sn(r),d=dt(c,{tabbable:o,accept:a},r);d.currentNode=Rt(s,r)?s:u;let p=d.previousNode();return!p&&i&&(d.currentNode=u,p=d.previousNode()),p&&ct(p,!0),p},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=sn(r),a=dt(i,{tabbable:n,accept:o},r);a.currentNode=r[0].previousElementSibling;let l=a.nextNode();return l&&ct(l,!0),l},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=sn(r),a=dt(i,{tabbable:n,accept:o},r);a.currentNode=r[r.length-1].nextElementSibling;let l=a.previousNode();return l&&ct(l,!0),l}}}function sn(e){return e[0].parentElement}function Ho(e){let t=De.getTreeNode(Ee);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function d9(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...he(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(o=>!o.form);else{var r,n;t=[...((n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name))??[]]}return t?!t.some(o=>o.checked):!1}function f9(e,t){let r=f.useRef(void 0),n=f.useRef(void 0);pe(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let i=he(o?o[0]:void 0),a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Ho(e)||u.isComposing)return;let c=Be(i),d=e.current;if(!d||!Rt(c,d))return;let p=sn(d),g=dt(p,{tabbable:!0},d);if(!c)return;g.currentNode=c;let m=u.shiftKey?g.previousNode():g.nextNode();m||(g.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,m=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),m&&ct(m,!0)},l=u=>{(!Ee||pl(Ee,e))&&Rt(Oe(u),e.current)?(Ee=e,r.current=Oe(u)):Ho(e)&&!Lr(Oe(u),e)?r.current?r.current.focus():Ee&&Ee.current&&Wd(Ee.current):Ho(e)&&(r.current=Oe(u))},s=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let c=di(),d=(c==="virtual"||c===null)&&Tp()&&BS(),p=Be(i);if(!d&&p&&Ho(e)&&!Lr(p,e)){Ee=e;let m=Oe(u);if(m&&m.isConnected){var g;r.current=m,(g=r.current)===null||g===void 0||g.focus()}else Ee.current&&Wd(Ee.current)}})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",l,!1),o?.forEach(u=>u.addEventListener("focusin",l,!1)),o?.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",l,!1),o?.forEach(u=>u.removeEventListener("focusin",l,!1)),o?.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),pe(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function Ox(e){return Lr(e)}function Rt(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Lr(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of De.traverse(De.getTreeNode(t)))if(r&&Rt(e,r.current))return!0;return!1}function p9(e){return Lr(e,Ee)}function pl(e,t){var r;let n=(r=De.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function ct(e,t=!1){if(e!=null&&!t)try{Br(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Rx(e,t=!0){let r=e[0].previousElementSibling,n=sn(e),o=dt(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=sn(e),o=dt(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function Wd(e,t=!0){ct(Rx(e,t))}function h9(e,t){let r=h.useRef(t);f.useEffect(()=>{if(r.current){Ee=e;let n=he(e.current?e.current[0]:void 0);!Rt(Be(n),Ee.current)&&e.current&&Wd(e.current)}r.current=!1},[e])}function g9(e,t,r){pe(()=>{if(t||r)return;let n=e.current,o=he(n?n[0]:void 0),i=a=>{let l=Oe(a);Rt(l,e.current)?Ee=e:Ox(l)||(Ee=null)};return o.addEventListener("focusin",i,!1),n?.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n?.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,r])}function $y(e){let t=De.getTreeNode(Ee);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function m9(e,t,r){let n=f.useRef(typeof document<"u"?Be(he(e.current?e.current[0]:void 0)):null);pe(()=>{let o=e.current,i=he(o?o[0]:void 0);if(!t||r)return;let a=()=>{(!Ee||pl(Ee,e))&&Rt(Be(i),e.current)&&(Ee=e)};return i.addEventListener("focusin",a,!1),o?.forEach(l=>l.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o?.forEach(l=>l.removeEventListener("focusin",a,!1))}},[e,r]),pe(()=>{let o=he(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Ho(e)||a.isComposing)return;let l=o.activeElement;if(!Lr(l,e)||!$y(e))return;let s=De.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=dt(o.body,{tabbable:!0});c.currentNode=l;let d=a.shiftKey?c.previousNode():c.nextNode();if((!u||!u.isConnected||u===o.body)&&(u=void 0,s.nodeToRestore=void 0),(!d||!Lr(d,e))&&u){c.currentNode=u;do d=a.shiftKey?c.previousNode():c.nextNode();while(Lr(d,e));a.preventDefault(),a.stopPropagation(),d?ct(d,!0):Ox(u)?ct(u,!0):l.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),pe(()=>{let o=he(e.current?e.current[0]:void 0);if(!t)return;let i=De.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=n.current)!==null&&a!==void 0?a:void 0,()=>{let l=De.getTreeNode(e);if(!l)return;let s=l.nodeToRestore,u=Be(o);if(t&&s&&(u&&Lr(u,e)||u===o.body&&$y(e))){let c=De.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=c.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){wy(d.nodeToRestore);return}d=d.parent}for(d=c.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&De.getTreeNode(d.scopeRef)){let p=Rx(d.scopeRef.current,!0);wy(p);return}d=d.parent}}})}}}},[e,t])}function wy(e){e.dispatchEvent(new CustomEvent(Gd,{bubbles:!0,cancelable:!0}))&&ct(e)}function dt(e,t,r){let n=t?.tabbable?h7:qS,o=e?.nodeType===Node.ELEMENT_NODE?e:null,i=he(o),a=Fk(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(l){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(l)||t?.tabbable&&l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(!d9(l)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===l.name)?NodeFilter.FILTER_REJECT:n(l)&&(!r||Rt(l,r))&&(!t?.accept||t.accept(l))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(a.currentNode=t.from),a}function y9(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=r,s=o||Be(he(n)),u=dt(n,{tabbable:i,accept:l});n.contains(s)&&(u.currentNode=s);let c=u.nextNode();return!c&&a&&(u.currentNode=n,c=u.nextNode()),c&&ct(c,!0),c},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=r,s=o||Be(he(n)),u=dt(n,{tabbable:i,accept:l});if(n.contains(s))u.currentNode=s;else{let d=pc(u);return d&&ct(d,!0),d??null}let c=u.previousNode();if(!c&&a){u.currentNode=n;let d=pc(u);if(!d)return null;c=d}return c&&ct(c,!0),c??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,a=dt(n,{tabbable:o,accept:i}).nextNode();return a&&ct(a,!0),a},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,a=dt(n,{tabbable:o,accept:i}),l=pc(a);return l&&ct(l,!0),l??null}}}function pc(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}var b9=class Dx{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new Vd({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Rt(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new Dx;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Vd({scopeRef:null}),this.fastMap.set(null,this.root)}},Vd=class{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}},De=new b9;function is(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||ci()}),[i,a]=f.useState(!1),[l,s]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=f.useCallback(()=>s(o.current.isFocused&&o.current.isFocusVisible),[]),c=f.useCallback(g=>{o.current.isFocused=g,a(g),u()},[u]);P7(g=>{o.current.isFocusVisible=g,u()},[],{isTextInput:r});let{focusProps:d}=Fp({isDisabled:n,onFocusChange:c}),{focusWithinProps:p}=Lp({isDisabled:!n,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:l,focusProps:n?p:d}}function v9(e,t){let[r,n]=f.useState(!1);return pe(()=>{if(e?.current){let o=()=>{if(e.current){let a=dt(e.current,{tabbable:!0});n(!!a.nextNode())}};o();let i=new MutationObserver(o);return i.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{i.disconnect()}}}),r}function Px(e){let t=S9(he(e));t!==e&&(t&&E9(t,e),e&&Ix(e,t))}function E9(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function Ix(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function S9(e){let t=Be(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}var Vt=[];function Hp(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:l}=e;f.useEffect(()=>{if(o&&!Vt.includes(t))return Vt.push(t),()=>{let m=Vt.indexOf(t);m>=0&&Vt.splice(m,1)}},[o,t]);let s=()=>{Vt[Vt.length-1]===t&&r&&r()},u=m=>{(!l||l(m.target))&&Vt[Vt.length-1]===t&&(m.stopPropagation(),m.preventDefault())},c=m=>{(!l||l(m.target))&&(Vt[Vt.length-1]===t&&(m.stopPropagation(),m.preventDefault()),s())},d=m=>{m.key==="Escape"&&!a&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),s())};ix({ref:t,onInteractOutside:i&&o?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=Lp({isDisabled:!n,onBlurWithin:m=>{!m.relatedTarget||p9(m.relatedTarget)||(!l||l(m.relatedTarget))&&r?.()}}),g=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:d,...p},underlayProps:{onPointerDown:g}}}function x9(e,t,r){let{isOpen:n}=t;f.useEffect(()=>{r&&r.current&&sx.set(r.current,t.close)});let o,i=We();return{triggerProps:{"aria-haspopup":o,"aria-expanded":n,"aria-controls":n?i:void 0,onPress:t.toggle},overlayProps:{id:i}}}var Go=typeof document<"u"&&window.visualViewport,sa=0,hc;function Fx(e={}){let{isDisabled:t}=e;pe(()=>{if(!t)return sa++,sa===1&&(Zl()?hc=w9():hc=$9()),()=>{sa--,sa===0&&hc()}},[t])}function $9(){let e=window.innerWidth-document.documentElement.clientWidth;return Ti(e>0&&("scrollbarGutter"in document.documentElement.style?gc(document.documentElement,"scrollbarGutter","stable"):gc(document.documentElement,"paddingRight",`${e}px`)),gc(document.documentElement,"overflow","hidden"))}function w9(){let e,t=!1,r=s=>{let u=s.target;e=eo(u)?u:US(u,!0),t=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(t=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(t=!0)},n=document.createElement("style");n.textContent=`
660
+ @layer {
661
+ * {
662
+ overscroll-behavior: contain;
663
+ }
664
+ }`.trim(),document.head.prepend(n);let o=s=>{if(!(s.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){s.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&s.preventDefault()}},i=s=>{let u=s.target,c=s.relatedTarget;if(c&&ec(c))c.focus({preventScroll:!0}),Cy(c,ec(u));else if(!c){var d;((d=u.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]"))?.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let u=document.activeElement!=null&&ec(document.activeElement);a.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&Cy(this,u)};let l=Ti(mc(document,"touchstart",r,{passive:!1,capture:!0}),mc(document,"touchmove",o,{passive:!1,capture:!0}),mc(document,"blur",i,!0));return()=>{l(),n.remove(),HTMLElement.prototype.focus=a}}function gc(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function mc(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function Cy(e,t){t||!Go?_y(e):Go.addEventListener("resize",()=>_y(e),{once:!0})}function _y(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=US(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(i.top<o.top||i.bottom>o.top+r.clientHeight){let a=o.bottom;Go&&(a=Math.min(a,Go.offsetTop+Go.height));let l=i.top-o.top-((a-o.top)/2-i.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+l)),behavior:"smooth"})}}r=n.parentElement}}var C9=f.createContext({});function Lx(){var e;return(e=f.useContext(C9))!==null&&e!==void 0?e:{}}var qd=h.createContext(null);function _9(e){let{children:t}=e,r=f.useContext(qd),[n,o]=f.useState(0),i=f.useMemo(()=>({parent:r,modalCount:n,addModal(){o(a=>a+1),r&&r.addModal()},removeModal(){o(a=>a-1),r&&r.removeModal()}}),[r,n]);return h.createElement(qd.Provider,{value:i},t)}function T9(){let e=f.useContext(qd);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function A9(e){let{modalProviderProps:t}=T9();return h.createElement("div",{"data-overlay-container":!0,...e,...t})}function O9(e){return h.createElement(_9,null,h.createElement(A9,e))}function R9(e){let t=_n(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=Lx();if(!e.portalContainer&&o&&(r=o()),h.useEffect(()=>{if(r?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let i=h.createElement(O9,n);return Fv.createPortal(i,r)}var kx={};kx={dismiss:"تجاهل"};var Nx={};Nx={dismiss:"Отхвърляне"};var Mx={};Mx={dismiss:"Odstranit"};var Bx={};Bx={dismiss:"Luk"};var jx={};jx={dismiss:"Schließen"};var Hx={};Hx={dismiss:"Απόρριψη"};var Ux={};Ux={dismiss:"Dismiss"};var zx={};zx={dismiss:"Descartar"};var Kx={};Kx={dismiss:"Lõpeta"};var Gx={};Gx={dismiss:"Hylkää"};var Wx={};Wx={dismiss:"Rejeter"};var Vx={};Vx={dismiss:"התעלם"};var qx={};qx={dismiss:"Odbaci"};var Yx={};Yx={dismiss:"Elutasítás"};var Xx={};Xx={dismiss:"Ignora"};var Jx={};Jx={dismiss:"閉じる"};var Zx={};Zx={dismiss:"무시"};var Qx={};Qx={dismiss:"Atmesti"};var e$={};e$={dismiss:"Nerādīt"};var t$={};t$={dismiss:"Lukk"};var r$={};r$={dismiss:"Negeren"};var n$={};n$={dismiss:"Zignoruj"};var o$={};o$={dismiss:"Descartar"};var i$={};i$={dismiss:"Dispensar"};var a$={};a$={dismiss:"Revocare"};var l$={};l$={dismiss:"Пропустить"};var s$={};s$={dismiss:"Zrušiť"};var u$={};u$={dismiss:"Opusti"};var c$={};c$={dismiss:"Odbaci"};var d$={};d$={dismiss:"Avvisa"};var f$={};f$={dismiss:"Kapat"};var p$={};p$={dismiss:"Скасувати"};var h$={};h$={dismiss:"取消"};var g$={};g$={dismiss:"關閉"};var m$={};m$={"ar-AE":kx,"bg-BG":Nx,"cs-CZ":Mx,"da-DK":Bx,"de-DE":jx,"el-GR":Hx,"en-US":Ux,"es-ES":zx,"et-EE":Kx,"fi-FI":Gx,"fr-FR":Wx,"he-IL":Vx,"hr-HR":qx,"hu-HU":Yx,"it-IT":Xx,"ja-JP":Jx,"ko-KR":Zx,"lt-LT":Qx,"lv-LV":e$,"nb-NO":t$,"nl-NL":r$,"pl-PL":n$,"pt-BR":o$,"pt-PT":i$,"ro-RO":a$,"ru-RU":l$,"sk-SK":s$,"sl-SI":u$,"sr-SP":c$,"sv-SE":d$,"tr-TR":f$,"uk-UA":p$,"zh-CN":h$,"zh-TW":g$};var Ty={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function D9(e={}){let{style:t,isFocusable:r}=e,[n,o]=f.useState(!1),{focusWithinProps:i}=Lp({isDisabled:!r,onFocusWithinChange:l=>o(l)}),a=f.useMemo(()=>n?t:t?{...Ty,...t}:Ty,[n]);return{visuallyHiddenProps:{...i,style:a}}}function P9(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:a}=D9(e);return h.createElement(r,re(i,a),t)}function I9(e){return e&&e.__esModule?e.default:e}function Ay(e){let{onDismiss:t,...r}=e,n=r9(I9(m$),"@react-aria/overlays"),o=ts(r,n.format("dismiss")),i=()=>{t&&t()};return h.createElement(P9,null,h.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}var F9=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,Po=new WeakMap,lt=[];function as(e,t){let r=At(e?.[0]),n=t instanceof r.Element?{root:t}:t;var o;let i=(o=n?.root)!==null&&o!==void 0?o:document.body,a=n?.shouldUseInert&&F9,l=new Set(e),s=new Set,u=y=>a&&y instanceof r.HTMLElement?y.inert:y.getAttribute("aria-hidden")==="true",c=(y,v)=>{a&&y instanceof r.HTMLElement?y.inert=v:v?y.setAttribute("aria-hidden","true"):(y.removeAttribute("aria-hidden"),y instanceof r.HTMLElement&&(y.inert=!1))},d=y=>{for(let S of y.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))l.add(S);let v=S=>{if(s.has(S)||l.has(S)||S.parentElement&&s.has(S.parentElement)&&S.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let x of l)if(S.contains(x))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},b=document.createTreeWalker(y,NodeFilter.SHOW_ELEMENT,{acceptNode:v}),E=v(y);if(E===NodeFilter.FILTER_ACCEPT&&p(y),E!==NodeFilter.FILTER_REJECT){let S=b.nextNode();for(;S!=null;)p(S),S=b.nextNode()}},p=y=>{var v;let b=(v=Po.get(y))!==null&&v!==void 0?v:0;u(y)&&b===0||(b===0&&c(y,!0),s.add(y),Po.set(y,b+1))};lt.length&&lt[lt.length-1].disconnect(),d(i);let g=new MutationObserver(y=>{for(let v of y)if(v.type==="childList"&&![...l,...s].some(b=>b.contains(v.target)))for(let b of v.addedNodes)(b instanceof HTMLElement||b instanceof SVGElement)&&(b.dataset.liveAnnouncer==="true"||b.dataset.reactAriaTopLayer==="true")?l.add(b):b instanceof Element&&d(b)});g.observe(i,{childList:!0,subtree:!0});let m={visibleNodes:l,hiddenNodes:s,observe(){g.observe(i,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return lt.push(m),()=>{g.disconnect();for(let y of s){let v=Po.get(y);v!=null&&(v===1?(c(y,!1),Po.delete(y)):Po.set(y,v-1))}m===lt[lt.length-1]?(lt.pop(),lt.length&&lt[lt.length-1].observe()):lt.splice(lt.indexOf(m),1)}}function L9(e){let t=lt[lt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function k9(e,t){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l,...s}=e,u=s.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:d}=Hp({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:l},o??n),{overlayProps:p,arrowProps:g,placement:m,triggerAnchorPoint:y}=Bp({...s,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:i&&!u?t.close:null});return Fx({isDisabled:i||!t.isOpen}),f.useEffect(()=>{if(t.isOpen&&n.current){var v,b;return i?L9((v=o?.current)!==null&&v!==void 0?v:n.current):as([(b=o?.current)!==null&&b!==void 0?b:n.current],{shouldUseInert:!0})}},[i,t.isOpen,n,o]),{popoverProps:re(c,p),arrowProps:g,underlayProps:d,placement:m,triggerAnchorPoint:y}}var y$=h.createContext(null);function hl(e){let t=_n(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,i]=f.useState(!1),a=f.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:l}=Lx();if(!e.portalContainer&&l&&(r=l()),!r)return null;let s=e.children;return e.disableFocusManagement||(s=h.createElement(jp,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},s)),s=h.createElement(y$.Provider,{value:a},h.createElement(M7,null,s)),Fv.createPortal(s,r)}function b$(){let e=f.useContext(y$),t=e?.setContain;pe(()=>{t?.(!0)},[t])}function N9(e,t,r){let{overlayProps:n,underlayProps:o}=Hp({...e,isOpen:t.isOpen,onClose:t.close},r);return Fx({isDisabled:!t.isOpen}),b$(),f.useEffect(()=>{if(t.isOpen&&r.current)return as([r.current],{shouldUseInert:!0})},[t.isOpen,r]),{modalProps:re(n),underlayProps:o}}function Ri(e){let[t,r]=rs(e.isOpen,e.defaultOpen||!1,e.onOpenChange),n=f.useCallback(()=>{r(!0)},[r]),o=f.useCallback(()=>{r(!1)},[r]),i=f.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:i}}var M9=1500,Oy=500,Xr={},B9=0,Io=!1,pr=null,Jr=null;function v$(e={}){let{delay:t=M9,closeDelay:r=Oy}=e,{isOpen:n,open:o,close:i}=Ri(e),a=f.useMemo(()=>`${++B9}`,[]),l=f.useRef(null),s=f.useRef(i),u=()=>{Xr[a]=p},c=()=>{for(let m in Xr)m!==a&&(Xr[m](!0),delete Xr[m])},d=()=>{l.current&&clearTimeout(l.current),l.current=null,c(),u(),Io=!0,o(),pr&&(clearTimeout(pr),pr=null),Jr&&(clearTimeout(Jr),Jr=null)},p=m=>{m||r<=0?(l.current&&clearTimeout(l.current),l.current=null,s.current()):l.current||(l.current=setTimeout(()=>{l.current=null,s.current()},r)),pr&&(clearTimeout(pr),pr=null),Io&&(Jr&&clearTimeout(Jr),Jr=setTimeout(()=>{delete Xr[a],Jr=null,Io=!1},Math.max(Oy,r)))},g=()=>{c(),u(),!n&&!pr&&!Io?pr=setTimeout(()=>{pr=null,Io=!0,d()},t):n||d()};return f.useEffect(()=>{s.current=i},[i]),f.useEffect(()=>()=>{l.current&&clearTimeout(l.current),Xr[a]&&delete Xr[a]},[a]),{isOpen:n,open:m=>{!m&&t>0&&!l.current?g():d()},close:p}}var Up=f.createContext(null),E$=f.createContext(null);function j9(e){let t=v$(e),r=f.useRef(null),{triggerProps:n,tooltipProps:o}=K7(e,t,r);return h.createElement($r,{values:[[Up,t],[E$,{...o,triggerRef:r}]]},h.createElement(F7,{...n,ref:r},e.children))}var H9=f.forwardRef(function({UNSTABLE_portalContainer:e,...t},r){[t,r]=Qe(t,r,E$);let n=f.useContext(Up),o=v$(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?o:n,a=WS(r,i.isOpen)||t.isExiting||!1;return!i.isOpen&&!a?null:h.createElement(R9,{portalContainer:e},h.createElement(U9,{...t,tooltipRef:r,isExiting:a}))});function U9(e){let t=f.useContext(Up),r=f.useRef(null),{overlayProps:n,arrowProps:o,placement:i,triggerAnchorPoint:a}=Bp({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:r,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),l=GS(e.tooltipRef,!!i)||e.isEntering||!1,s=St({...e,defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:l,isExiting:e.isExiting,state:t}});e=re(e,n);let{tooltipProps:u}=z7(e,t),c=Te(e,{global:!0});return h.createElement("div",{...re(c,s,u),ref:e.tooltipRef,style:{...n.style,"--trigger-anchor-point":a?`${a.x}px ${a.y}px`:void 0,...s.style},"data-placement":i??void 0,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},h.createElement(Np.Provider,{value:{...o,placement:i,ref:r}},s.children))}var z9=vt(Sn(),1),zp=(0,z9.default)(1e3)(e=>e==="left-end"?"left bottom":e==="right-end"?"right bottom":e==="left-start"?"left top":e==="right-start"?"right top":e.replace("-"," "));F.div({width:500,height:500,paddingTop:100,overflowY:"scroll",background:"#eee",position:"relative"});var K9=f.forwardRef((e,t)=>h.createElement("button",{...e,ref:t,style:{width:120,height:50,margin:10}}));K9.displayName="Trigger";var S$=({triggerOnFocusOnly:e=!1,placement:t="top",offset:r=8,tooltip:n,children:o,defaultVisible:i,startOpen:a,delayShow:l=400,delayHide:s=200,visible:u,onVisibleChange:c,...d})=>{let p=zp(t),g=h.Children.only(o);a!==void 0&&xk("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[m,y]=f.useState(i??a??!1),v=f.useCallback(b=>{y(b),c?.(b)},[c]);return h.createElement(j9,{delay:l,closeDelay:s,isOpen:u??m,onOpenChange:v,trigger:e?"focus":void 0,...d},h.createElement(L7,null,h.cloneElement(g,{"aria-describedby":null})),h.createElement(H9,{"data-testid":"tooltip",placement:p,offset:r,onOpenChange:v,style:{outline:"none"},...d},n))},x$=({children:e,disableAllTooltips:t,shortcut:r,tooltip:n})=>{let o=f.useMemo(()=>{let i=document?.body?.getAttribute("data-shortcuts-enabled")!=="false";if(!(!n&&(!r||!i)))return[n,r&&i&&`[${RL(r)}]`].filter(Boolean).join(" ")},[r,n]);return o?h.createElement(S$,{placement:"top",tooltip:h.createElement(IS,{note:o}),visible:t?!1:void 0},e):h.createElement(h.Fragment,null,e)};x$.displayName="InteractiveTooltipWrapper";function G9(e=""){let t=e.toLowerCase().trim().replace(/\s+/g,"-");return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?h.createElement("span",{id:t,hidden:!0},e):null}}var Se=f.forwardRef(({as:e="button",asChild:t=!1,animation:r="none",size:n="small",appearance:o="default",variant:i="outline",padding:a="medium",disabled:l=!1,readOnly:s=!1,active:u,onClick:c,ariaLabel:d,ariaDescription:p=void 0,tooltip:g=void 0,shortcut:m=void 0,disableAllTooltips:y=!1,...v},b)=>{let E=t?gk:e,S;!s&&(d===void 0||d==="")&&(S="ariaLabel",Rd(`The 'ariaLabel' prop on 'Button' will become mandatory in Storybook 11. Buttons with text content should set 'ariaLabel={false}' to indicate that they are accessible as-is. Buttons without text content must provide a meaningful 'ariaLabel' for accessibility. The button content is: ${v.children}.`)),u!==void 0&&(S="active",Rd("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:x,AriaDescription:A}=G9(p),w=f.useMemo(()=>m?DL(m):void 0,[m]),[C,R]=f.useState(!1),L=I=>{c&&c(I),r!=="none"&&R(!0)};return f.useEffect(()=>{let I=setTimeout(()=>{C&&R(!1)},1e3);return()=>clearTimeout(I)},[C]),h.createElement(h.Fragment,null,h.createElement(x$,{disableAllTooltips:y,shortcut:m,tooltip:g||(d!==!1?d:void 0)},h.createElement(W9,{"data-deprecated":S,as:E,ref:b,appearance:o,variant:i,size:n,padding:a,$disabled:l||s,"aria-disabled":l||s?"true":void 0,readOnly:s,active:u,animating:C,animation:r,onClick:l||s?void 0:L,"aria-label":!s&&d!==!1?d:void 0,"aria-keyshortcuts":s?void 0:w,...s?{}:x,...v})),h.createElement(A,null))});Se.displayName="Button";var W9=F("button",{shouldForwardProp:e=>Ml(e)})(({theme:e,appearance:t,variant:r,size:n,$disabled:o,readOnly:i,active:a,animating:l,animation:s="none",padding:u})=>{let c=t==="agentic"?{foreground:e.fgColor.agentic,background:e.bgColor.agentic,outline:e.borderColor.agentic}:{foreground:e.color.secondary,background:e.button.background,outline:e.button.border};return{border:0,cursor:i?"inherit":o?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:u==="none"?0:u==="small"&&n==="small"?"0 7px":u==="small"&&n==="medium"?"0 9px":n==="small"?"0 10px":n==="medium"?"0 12px":0,height:n==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:o&&!i?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:r==="solid"?e.base==="light"?c.foreground:Je(.18,c.foreground):r==="outline"?c.background:r==="ghost"&&a?vr(.93,t==="agentic"?e.bgColor.agentic:e.barSelectedColor):"transparent",color:r==="solid"?e.color.lightest:r==="outline"?t==="agentic"?e.fgColor.agentic:e.input.color:r==="ghost"&&a?e.base==="light"?Je(.1,c.foreground):c.foreground:r==="ghost"?e.textMutedColor:e.input.color,boxShadow:r==="outline"?`${c.outline} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,...!i&&{"&:hover":{color:r==="ghost"?c.foreground:void 0,background:(()=>{let d=c.foreground;return r==="solid"&&(d=e.base==="light"?Ea(.1,c.foreground):Je(.3,c.foreground)),r==="outline"&&(d=c.background),r==="ghost"?vr(.86,c.foreground):e.base==="light"?Je(.02,d):Ea(.03,d)})()},"&:active":{color:r==="ghost"?c.foreground:void 0,background:(()=>{let d=c.foreground;return r==="solid"&&(d=c.foreground),r==="outline"&&(d=c.background),r==="ghost"?t==="agentic"?e.bgColor.agentic:e.background.hoverable:e.base==="light"?Je(.02,d):Ea(.03,d)})()},"&:focus-visible":{outline:`2px solid ${gn(c.foreground,1)}`,outlineOffset:2,zIndex:"1"},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}},"> svg":{flex:"0 0 auto",animation:l&&s!=="none"?`${e.animation[s]} 1000ms ease-out`:""}}}),$$=f.forwardRef((e,t)=>(Rd("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),h.createElement(Se,{ref:t,...e,"data-deprecated":"IconButton"})));$$.displayName="IconButton";var Di=f.forwardRef(({pressed:e,...t},r)=>h.createElement(V9,{role:"switch","aria-checked":e,ref:r,pressed:e,...t}));Di.displayName="ToggleButton";var V9=F(Se)(({theme:e,variant:t="outline",pressed:r})=>({...r?{...t==="solid"?{background:e.base==="lighten"?Je(.1,e.color.secondary):Je(.2,e.color.secondary)}:{},...t==="outline"?{background:vr(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t==="ghost"?{background:vr(.93,e.barSelectedColor),color:e.base==="light"?Je(.1,e.color.secondary):e.color.secondary}:{}}:{}})),w$=F.li(({active:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",flex:"0 0 auto",overflow:"hidden",minHeight:32,gap:4,fontSize:t.typography.size.s1,fontWeight:e?t.typography.weight.bold:t.typography.weight.regular,color:e?"var(--listbox-item-active-color)":t.color.defaultText,"--listbox-item-active-color":t.base==="light"?Je(.1,t.color.secondary):t.color.secondary,"--listbox-item-muted-color":e?"var(--listbox-item-active-color)":t.color.mediumdark,'&[aria-disabled="true"]':{opacity:.5,cursor:"not-allowed"},'&[aria-selected="true"]':{color:"var(--listbox-item-active-color)",fontWeight:t.typography.weight.bold,"--listbox-item-muted-color":"var(--listbox-item-active-color)"},"&:not(:hover, :has(:focus-visible)) :not(input) + input":{position:"absolute",opacity:0},'&[role="option"]':{cursor:"pointer",borderRadius:t.input.borderRadius,outlineOffset:-2,padding:"0 9px",gap:8,"&:hover":{background:vr(.86,t.color.secondary)},"&:focus-visible":{outline:`2px solid ${t.color.secondary}`}},"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transitionBehavior:"allow-discrete",transitionDuration:"var(--transition-duration, 0.2s)",transitionProperty:"opacity, block-size, content-visibility"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}}),({transitionStatus:e})=>{switch(e){case"preEnter":case"exiting":case"exited":return{opacity:0,blockSize:0,contentVisibility:"hidden"};default:return{opacity:1,blockSize:"auto",contentVisibility:"visible"}}}),q9=F(w$)(({targetId:e})=>({gap:0,[`& [data-target-id="${e}"]`]:{inlineSize:"auto",marginLeft:4,opacity:1,"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transitionProperty:"inline-size, margin-left, opacity, padding-inline",transitionDuration:"var(--transition-duration, 0.2s)"}},[`&:not(:hover, :has(:focus-visible)) [data-target-id="${e}"]`]:{inlineSize:0,marginLeft:0,opacity:0,paddingInline:0}})),Y9=F(Se)(({size:e})=>({gap:e==="small"?6:8,"&:focus-visible":{outlineOffset:-2}})),X9=F(Di)({"&:focus-visible":{outlineOffset:-2}}),C$=f.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return h.createElement(Y9,{...n,variant:r,padding:e,size:t,ref:o})}),J9=f.forwardRef(function({padding:e="small",size:t="medium",variant:r="ghost",...n},o){return h.createElement(X9,{...n,variant:r,padding:e,size:t,ref:o})}),_$=F(C$)(({theme:e})=>({height:"auto",minHeight:32,flex:"0 1 100%",textAlign:"start",justifyContent:"space-between",fontWeight:"inherit",color:"inherit","&:hover":{color:"inherit"},"& input:enabled:focus-visible":{outline:"none"},"&:has(input:focus-visible)":{outline:`2px solid ${e.color.secondary}`,outlineOffset:-2}})),Z9=e=>h.createElement(_$,{as:"a",...e}),Q9=F.div(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"center",flexGrow:1,minWidth:0,padding:"8px 0",lineHeight:"16px","& > *":{margin:0,whiteSpace:"normal"},"& > span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& small":{fontSize:"inherit",color:e.textMutedColor},"&:first-child":{paddingLeft:8},"&:last-child":{paddingRight:8},'button > &:first-child, [role="option"] > &:first-child':{paddingLeft:0},'button > &:last-child, [role="option"] > &:last-child':{paddingRight:0}})),eM=F.div({display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 14px",width:14,height:14,color:"var(--listbox-item-muted-color)"}),Ia=Object.assign(F.ul(({theme:e,onClick:t})=>({listStyle:"none",margin:0,padding:4,cursor:t?"pointer":"default","& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:w$,HoverItem:q9,Button:C$,Toggle:J9,Action:_$,Link:Z9,Text:Q9,Icon:eM}),Ry=F.div(({collapsed:e=!1})=>({blockSize:e?0:"auto",contentVisibility:e?"hidden":"visible",transform:e?"translateY(-10px)":"translateY(0)",opacity:e?0:1,overflow:"hidden","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s)",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"none"}}));Object.assign(function({children:e,summary:t,collapsed:r,disabled:n,initialCollapsed:o,storageKey:i,state:a,...l}){let s=rM({collapsed:r,disabled:n,initialCollapsed:o,storageKey:i}),u=a||s;return h.createElement(h.Fragment,null,typeof t=="function"?t(u):t,h.createElement(Ry,{...l,id:u.contentId,collapsed:u.isCollapsed,"aria-hidden":u.isCollapsed},typeof e=="function"?e(u):e))},{Content:Ry});var tM=(e,t)=>{let[r,n]=f.useState(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return f.useEffect(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(r))}catch{}},[e,r]),[r,n]},rM=({collapsed:e,disabled:t,initialCollapsed:r=e,storageKey:n})=>{let[o,i]=tM(n&&`useCollapsible:${n}`,!!r);f.useEffect(()=>{e!==void 0&&i(e)},[e,i]);let a=f.useCallback(s=>{s?.stopPropagation(),t||i(u=>!u)},[t,i]),l=We();return{contentId:l,isCollapsed:o,isDisabled:!!t,setCollapsed:i,toggleCollapsed:a,toggleProps:{disabled:t,onClick:a,"aria-controls":l,"aria-expanded":!o}}},fi=(e,t)=>t&&t in e?e[t]:void 0,nM=(e,t)=>fi(e.fgColor,t)??fi(e.color,t),oM=(e,t,r)=>fi(e.borderColor,t)??fi(e.color,r),T$=(e,t)=>fi(e.bgColor,t)??e.background.content,iM=(e,t)=>{let r=T$(e,t);return`linear-gradient(${r}, ${r}), ${e.background.content}`},aM=je({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),lM=je({"0%":{transform:"rotate(0deg)"},"10%":{transform:"rotate(20deg)"},"40%":{transform:"rotate(170deg)"},"50%":{transform:"rotate(180deg)"},"60%":{transform:"rotate(190deg)"},"90%":{transform:"rotate(340deg)"},"100%":{transform:"rotate(360deg)"}}),sM=je({to:{backgroundPositionX:"36%"}}),Dy=F.div(({color:e,theme:t})=>({color:nM(t,e),borderRadius:t.appBorderRadius,background:iM(t,e),position:"relative"})),Py=F.div(({animation:e="none",color:t,outlineColor:r=t,theme:n})=>({position:"relative",width:"100%",padding:1,overflow:"hidden",backgroundColor:T$(n,t),borderRadius:n.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e==="none"&&oM(n,t,r)||n.appBorderColor}, var(--card-box-shadow, transparent 0 0)`,transition:"box-shadow 1s","@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords",transition:"all var(--transition-duration, 0.2s), box-shadow 1s",transitionBehavior:"allow-discrete"},"@media (prefers-reduced-motion: reduce)":{transition:"box-shadow 1s"},"&:before":{content:'""',display:e==="none"?"none":"block",position:"absolute",left:0,top:0,width:"100%",height:"100%",opacity:1,...e==="rainbow"&&{animation:`${sM} 10s infinite linear, ${aM} 60s infinite linear`,backgroundImage:"linear-gradient(45deg,rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181), rgb(234, 0, 0),rgb(255, 157, 0),rgb(255, 208, 0),rgb(0, 172, 0),rgb(0, 166, 255),rgb(181, 0, 181))",backgroundSize:"1000%",backgroundPositionX:"100%"},...e==="spin"&&{left:"50%",top:"50%",marginLeft:"calc(max(100vw, 100vh) * -0.5)",marginTop:"calc(max(100vw, 100vh) * -0.5)",height:"max(100vw, 100vh)",width:"max(100vw, 100vh)",animation:`${lM} 5s linear infinite`,backgroundImage:r==="negative"?"conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)":r==="agentic"?n.base==="dark"?"conic-gradient(transparent 90deg, rgba(114,58,166,0.65) 150deg, rgba(157,98,214,0.6) 210deg, transparent 270deg)":"conic-gradient(transparent 90deg, #b6a7ff 150deg, #d8aeff 210deg, transparent 270deg)":"conic-gradient(transparent 90deg, #029CFD 150deg, #37D5D3 210deg, transparent 270deg)"}}}));Object.assign(f.forwardRef(function({outlineAnimation:e="none",color:t,outlineColor:r,outlineAttrs:n={},...o},i){return h.createElement(Py,{animation:e,color:t,outlineColor:r,ref:i,...n},h.createElement(Dy,{color:t,...o}))}),{Content:Dy,Outline:Py});const{deprecate:yc}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var uM=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],A$=e=>({_s:e,status:uM[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),Yd=e=>e?6:5,cM=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return Yd(t)}},dM=e=>typeof e=="object"?[e.enter,e.exit]:[e,e],fM=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),Iy=(e,t,r,n,o)=>{clearTimeout(n.current);let i=A$(e);t(i),r.current=i,o&&o({current:i})},pM=({enter:e=!0,exit:t=!0,preEnter:r,preExit:n,timeout:o,initialEntered:i,mountOnEnter:a,unmountOnExit:l,onStateChange:s}={})=>{let[u,c]=f.useState(()=>A$(i?2:Yd(a))),d=f.useRef(u),p=f.useRef(),[g,m]=dM(o),y=f.useCallback(()=>{let b=cM(d.current._s,l);b&&Iy(b,c,d,p,s)},[s,l]),v=f.useCallback(b=>{let E=x=>{switch(Iy(x,c,d,p,s),x){case 1:g>=0&&(p.current=setTimeout(y,g));break;case 4:m>=0&&(p.current=setTimeout(y,m));break;case 0:case 3:p.current=fM(E,x);break}},S=d.current.isEnter;typeof b!="boolean"&&(b=!S),b?!S&&E(e?r?0:1:2):S&&E(t?n?3:4:Yd(l))},[y,s,e,t,r,n,g,m,l]);return[u,v,y]};function hM(e){let t=i=>typeof window<"u"?window.matchMedia(i).matches:!1,[r,n]=f.useState(t(e));function o(){n(t(e))}return f.useEffect(()=>{let i=window.matchMedia(e);return o(),i.addEventListener("change",o),()=>{i.removeEventListener("change",o)}},[e]),r}var O$={};Ve(O$,{Actions:()=>OM,Close:()=>ls,CloseButton:()=>wM,Col:()=>N$,Container:()=>L$,Content:()=>CM,Description:()=>AM,Dialog:()=>$M,Error:()=>RM,ErrorWrapper:()=>M$,Header:()=>_M,Overlay:()=>F$,Row:()=>k$,Title:()=>TM});const{deprecate:R$}=__STORYBOOK_MODULE_CLIENT_LOGGER__;f.createContext(null);f.createContext(null);f.createContext(null);f.createContext(null);f.createContext(null);var D$=f.createContext({}),gM=f.forwardRef(function(e,t){[e,t]=Qe(e,t,D$);let{children:r,level:n=3,className:o,...i}=e,a=`h${n}`;return h.createElement(a,{...i,ref:t,className:o??"react-aria-Heading"},r)}),P$=f.createContext({}),mM=f.forwardRef(function(e,t){[e,t]=Qe(e,t,P$);let{elementType:r="span",...n}=e;return h.createElement(r,{className:"react-aria-Text",...n,ref:t})}),I$=je({from:{opacity:0},to:{opacity:1}}),yM=je({from:{opacity:1},to:{opacity:0}}),bM=je({from:{maxHeight:0},to:{}}),vM=je({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),EM=je({from:{opacity:1,transform:"translate(-50%, -50%) scale(1)"},to:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"}}),SM=je({from:{opacity:0,maxHeight:"0px"},to:{opacity:1,maxHeight:"80vh"}}),xM=je({from:{opacity:1,maxHeight:"80vh"},to:{opacity:0,maxHeight:"0px"}}),F$=F.div(({$status:e,$transitionDuration:t})=>({backdropFilter:"blur(24px)",background:"rgba(0, 0, 0, 0.4)",position:"absolute",inset:0,width:"100%",height:"100%",zIndex:1e5,"@media (prefers-reduced-motion: no-preference)":{animation:e==="exiting"||e==="preExit"?`${yM} ${t}ms`:`${I$} ${t}ms`,animationFillMode:"forwards"}})),L$=F.div(({theme:e})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"0px 4px 67px 0px #00000040",position:"absolute",overflow:"auto",zIndex:1e5,"&:focus-visible":{outline:"none"}}),({theme:e,width:t,height:r,$variant:n,$status:o,$transitionDuration:i})=>n==="dialog"?{top:"50%",left:"50%",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh","@media (prefers-reduced-motion: no-preference)":{willChange:"transform, opacity",animationTimingFunction:"cubic-bezier(0.32, 0.72, 0, 1)",animation:o==="exiting"||o==="preExit"?`${EM} ${i}ms`:`${vM} ${i}ms`,animationFillMode:"forwards !important"},"@media (prefers-reduced-motion: reduce)":{transform:"translate(-50%, -50%) scale(1)"}}:{bottom:"0",left:"0",right:"0",borderRadius:"10px 10px 0 0",overflow:"hidden",width:t??"100%",height:r??"80%",maxWidth:"100%",background:e.background.content,"@supports (interpolate-size: allow-keywords)":{interpolateSize:"allow-keywords"},"@media (prefers-reduced-motion: no-preference)":{animationTimingFunction:"cubic-bezier(.9,.16,.77,.64)",animation:o==="exiting"||o==="preExit"?`${xM} ${i}ms`:`${SM} ${i}ms`,animationFillMode:"forwards !important"}}),ls=({asChild:e,children:t,onClick:r,...n})=>{let{close:o}=f.useContext(B$);if(e&&h.isValidElement(t)){let i=a=>{r?.(a),t.props.onClick?.(a),o?.()};return h.cloneElement(t,{...n,onClick:i})}return h.createElement(Se,{type:"button",padding:"small",ariaLabel:"Close modal",variant:"ghost",shortcut:["Escape"],onClick:o},h.createElement(Zv,null))},$M={Close:()=>(R$("Modal.Dialog.Close is deprecated, please use Modal.Close instead."),h.createElement(ls,{"data-deprecated":"Modal.Dialog.Close"}))},wM=({ariaLabel:e,...t})=>(R$("Modal.CloseButton is deprecated, please use Modal.Close instead."),h.createElement(ls,{asChild:!0},h.createElement(Se,{ariaLabel:e||"Close","data-deprecated":"Modal.CloseButton",...t},h.createElement(Zv,null)))),CM=F.div({display:"flex",flexDirection:"column",margin:16,gap:16}),k$=F.div({display:"flex",justifyContent:"space-between",gap:16}),N$=F.div({display:"flex",flexDirection:"column",gap:4}),_M=({hasClose:e=!0,onClose:t,...r})=>h.createElement(k$,null,h.createElement(N$,{...r}),e&&h.createElement(ls,{onClick:t})),TM=F(e=>h.createElement(gM,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),AM=F(mM)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),OM=F.div({display:"flex",flexDirection:"row-reverse",gap:8}),M$=F.div(({theme:e})=>({maxHeight:100,overflow:"auto","@media (prefers-reduced-motion: no-preference)":{animation:`${bM} 300ms, ${I$} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),RM=({children:e,...t})=>h.createElement(M$,{...t},h.createElement("div",null,e)),B$=f.createContext({});function DM({container:e,portalSelector:t,children:r,width:n,height:o,ariaLabel:i,dismissOnClickOutside:a=!0,dismissOnEscape:l=!0,className:s,open:u,onEscapeKeyDown:c,onInteractOutside:d,onOpenChange:p,defaultOpen:g,transitionDuration:m=200,variant:y="dialog",...v}){let b;(i===void 0||i==="")&&(b="ariaLabel",yc("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),c!==void 0&&(b="onEscapeKeyDown",yc("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(b="onInteractOutside",yc("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let E=f.useRef(null),S=hM("(prefers-reduced-motion: reduce)"),[{status:x,isMounted:A},w]=pM({timeout:S?0:m,mountOnEnter:!0,unmountOnExit:!0}),C=Ri({isOpen:u||A,defaultOpen:g,onOpenChange:H=>{w(H),p?.(H)}}),R=()=>{C.close()},{modalProps:L,underlayProps:I}=N9({isDismissable:a,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?H=>{let $=new MouseEvent("click",{bubbles:!0,cancelable:!0,relatedTarget:H});return d($),!$.defaultPrevented}:void 0},C,E);if(f.useEffect(()=>{let H=u??g??!1;H&&!A?w(!0):!H&&A&&w(!1)},[u,g,A,w]),f.useEffect(()=>{A&&(u||g)&&p?.(!0)},[A]),f.useEffect(()=>{if(A&&(u||g)&&E.current)return as([E.current],{shouldUseInert:!0})},[A,u,g,E]),!A||x==="exited"||x==="unmounted")return null;let T=re(L,{onKeyDown:H=>{H.key!=="Escape"?L.onKeyDown?.(H):l&&(c?.(H.nativeEvent),H.nativeEvent.defaultPrevented||R())}}),M=e??(t?document.querySelector(t):void 0);return h.createElement(hl,{disableFocusManagement:!0,portalContainer:M||void 0},h.createElement(jp,{restoreFocus:!0,contain:!0,autoFocus:!0},h.createElement(F$,{$status:x,$transitionDuration:m,...I}),h.createElement("div",{role:"dialog","aria-label":i,ref:E,...T},h.createElement(B$.Provider,{value:{close:R}},h.createElement("div",{tabIndex:-1},h.createElement(L$,{"data-deprecated":b,$variant:y,$status:x,$transitionDuration:m,className:s,width:n,height:o,...v},r))))))}Object.assign(DM,O$);F.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Za}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Za}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}});F.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));F.div();F.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1}));function PM(e,t){var r=f.useRef(null),n=f.useRef(null);n.current=t;var o=f.useRef(null);f.useEffect(function(){i()});var i=f.useCallback(function(){var a=o.current,l=n.current,s=a||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return f.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),f.useCallback(function(a){o.current=a,i()},[i])}function Fy(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function j$(e){e===void 0&&(e={});var t=e.onResize,r=f.useRef(void 0);r.current=t;var n=e.round||Math.round,o=f.useRef(),i=f.useState({width:void 0,height:void 0}),a=i[0],l=i[1],s=f.useRef(!1);f.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=f.useRef({width:void 0,height:void 0}),c=PM(f.useCallback(function(d){return(!o.current||o.current.box!==e.box||o.current.round!==n)&&(o.current={box:e.box,round:n,instance:new ResizeObserver(function(p){var g=p[0],m=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",y=Fy(g,m,"inlineSize"),v=Fy(g,m,"blockSize"),b=y?n(y):void 0,E=v?n(v):void 0;if(u.current.width!==b||u.current.height!==E){var S={width:b,height:E};u.current.width=b,u.current.height=E,r.current?r.current(S):s.current||l(S)}})}),o.current.instance.observe(d,{box:e.box}),function(){o.current&&o.current.instance.unobserve(d)}},[e.box,n]),e.ref);return f.useMemo(function(){return{ref:c,width:a.width,height:a.height}},[c,a.width,a.height])}var IM=F.div(({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));function FM({centered:e,scale:t,children:r}){let n=f.useRef(null),[o,i]=f.useState(0),a=f.useCallback(({height:l})=>{l&&i(l/t)},[t]);return f.useEffect(()=>{n.current&&i(n.current.getBoundingClientRect().height)},[t]),j$({ref:n,onResize:a}),h.createElement(IM,{centered:e,scale:t,elementHeight:o},h.createElement("div",{ref:n,className:"innerZoomElementWrapper"},r))}var H$={Element:FM};const{global:LM}=__STORYBOOK_MODULE_GLOBAL__;var{document:kM}=LM,NM=F.strong(({theme:e})=>({color:e.color.orange})),MM=F.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),Ly=F.em(({theme:e})=>({color:e.textMutedColor})),BM=/(Error): (.*)\n/,jM=/at (?:(.*) )?\(?(.+)\)?/,HM=/([^@]+)?(?:\/<)?@(.+)?/,UM=/([^@]+)?@(.+)?/,U$=({error:e})=>{if(!e)return h.createElement(f.Fragment,null,"This error has no stack or message");if(!e.stack)return h.createElement(f.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
665
+
666
+ ${t}`);let r=t.match(BM);if(!r)return h.createElement(f.Fragment,null,t);let[,n,o]=r,i=t.split(/\n/).slice(1),[,...a]=i.map(l=>{let s=l.match(jM)||l.match(HM)||l.match(UM);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(kM.location.origin,"")}:null}).filter(Boolean);return h.createElement(f.Fragment,null,h.createElement("span",null,n),": ",h.createElement(NM,null,o),h.createElement("br",null),a.map((l,s)=>l?.name?h.createElement(f.Fragment,{key:s}," ","at ",h.createElement(MM,null,l.name)," (",h.createElement(Ly,null,l.location),")",h.createElement("br",null)):h.createElement(f.Fragment,{key:s}," ","at ",h.createElement(Ly,null,l?.location),h.createElement("br",null))))},zM=F.input(({theme:e})=>({appearance:"none",backgroundColor:e.input.background,border:`1px solid ${e.base==="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,borderRadius:2,display:"grid",flexShrink:0,height:14,margin:0,placeContent:"center",transition:"background-color 0.1s",width:14,"&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:"transparent",borderColor:e.input.border},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:e.base==="dark"?Y.dark:e.color.mediumdark},"&:checked, &:indeterminate":{border:"none",backgroundColor:Y.secondary},"&:checked::before":{content:'""',width:14,height:14,background:`no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`},"&:indeterminate::before":{content:'""',width:8,height:2,background:"white"},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),KM=e=>h.createElement(zM,{...e,type:"checkbox"}),GM=F.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),WM=F.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),VM=({label:e,children:t,...r})=>h.createElement(GM,{...r},e?h.createElement(WM,null,h.createElement("span",null,e)):null,t),Kp=(({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}}),z$=(({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}}),K$=(({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};default:return{}}}),qM={appearance:"none",border:"0 none",boxSizing:"inherit",display:"block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Gp=(({theme:e})=>({...qM,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none","@media (forced-colors: active)":{outline:"1px solid highlight"}},'&[disabled], &[aria-disabled="true"]':{background:e.base==="light"?e.color.lighter:"transparent",cursor:"not-allowed"},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}})),YM=F.div({position:"relative",width:"100%"}),XM=F.div(({theme:e})=>({position:"absolute",left:0,right:0,top:0,bottom:0,display:"flex",alignItems:"center",pointerEvents:"none",overflow:"hidden",color:e.textMutedColor,"span:first-of-type":{opacity:0}}),e=>{let{fontSize:t,lineHeight:r,padding:n}=Gp(e);return{fontSize:t,lineHeight:r,padding:n}}),JM=Object.assign(F(f.forwardRef(function({size:e,valid:t,align:r,value:n,suffix:o,...i},a){let l=We();return h.createElement(YM,null,h.createElement("input",{...i,value:n,ref:a,"aria-describedby":o?l:void 0}),o&&h.createElement(XM,{"aria-hidden":!0},h.createElement("span",null,n),h.createElement("span",{id:l},o)))}))(Gp,Kp,z$,K$,{minHeight:32,width:"100%"}),{displayName:"Input"}),ZM=F.input(({theme:e})=>({appearance:"none",backgroundColor:e.input.background,border:`1px solid ${e.base==="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,borderRadius:8,display:"grid",flexShrink:0,height:16,margin:-1,placeContent:"center",transition:"background-color 0.1s",width:16,"&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:"transparent",borderColor:e.input.border},"&:disabled:checked":{backgroundColor:e.base==="dark"?Y.dark:e.color.mediumdark,borderColor:e.base==="dark"?Y.dark:e.color.mediumdark},"&:checked":{backgroundColor:Y.secondary,borderColor:Y.secondary,boxShadow:`inset 0 0 0 2px ${e.input.background}`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),QM=e=>h.createElement(ZM,{...e,type:"radio"}),eB=F.select(Kp,({theme:e})=>({appearance:"none",background:`calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`,backgroundSize:10,padding:"6px 30px 6px 10px","@supports (appearance: base-select)":{appearance:"base-select",background:e.input.background,padding:"6px 10px"},transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",boxSizing:"border-box",border:"none",cursor:"pointer","& > button":{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:8,"& > svg":{width:14,height:14,color:e.textMutedColor}},"&:has(option:not([hidden]):checked)":{color:e.color.defaultText},"&:focus-visible, &:focus-within":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset`},"&::picker-icon":{display:"none"},"&::picker(select)":{appearance:"base-select",border:`1px solid ${e.input.border}`,padding:4,marginTop:4,background:e.base==="light"?Lf(e.background.app):e.background.app,filter:`
667
+ drop-shadow(0 5px 5px rgba(0,0,0,0.05))
668
+ drop-shadow(0 0 3px rgba(0,0,0,0.1))
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
+ drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
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})=>`
673
+ color: ${r||e?t.barSelectedColor:t.barTextColor};
674
+ .addon-collapsible-icon {
675
+ color: ${r||e?t.barSelectedColor:t.barTextColor};
676
+ }
677
+ &:hover {
678
+ color: ${t.barHoverColor};
679
+ .addon-collapsible-icon {
680
+ color: ${t.barHoverColor};
681
+ }
682
+ }
683
+ `);function nH(e){eH("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=f.useRef(),r=f.useRef(),n=f.useRef(new Map),{width:o=1}=j$({ref:t}),[i,a]=f.useState(e),[l,s]=f.useState([]),u=f.useRef(e),c=f.useCallback(({menuName:p,actions:g})=>{let m=l.some(({active:b})=>b),[y,v]=f.useState(!1);return h.createElement(h.Fragment,null,h.createElement(Zp,{ariaLabel:"Additional tabs",visible:y,onVisibleChange:v,placement:"bottom",popover:h.createElement(Fw,{links:l.map(({title:b,id:E,color:S,active:x})=>({id:E,title:b,color:S,active:x,onClick:A=>{A.preventDefault(),g.onSelect(E)}}))})},h.createElement(rH,{id:"addons-menu-button",ref:r,active:m,preActive:y,style:{visibility:l.length?"visible":"hidden"},"aria-hidden":!l.length,className:"tabbutton",type:"button",role:"tab"},p,h.createElement(tH,{className:"addon-collapsible-icon",isActive:m||y}))),l.map(({title:b,id:E,color:S},x)=>{let A=`index-${x}`;return h.createElement(Fi,{id:`tabbutton-${qn(E)??A}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:w=>{n.current.set(E,w)},className:"tabbutton",type:"button",key:E,textColor:S,role:"tab"},b)}))},[l]),d=f.useCallback(()=>{if(!t.current||!r.current)return;let{x:p,width:g}=t.current.getBoundingClientRect(),{width:m}=r.current.getBoundingClientRect(),y=l.length?p+g-m:p+g,v=[],b=0,E=e.filter(S=>{let{id:x}=S,A=n.current.get(x),{width:w=0}=A?.getBoundingClientRect()||{},C=p+b+w>y;return(!C||!A)&&v.push(S),b+=w,C});(v.length!==i.length||u.current!==e)&&(a(v),s(E),u.current=e)},[l.length,e,i]);return f.useLayoutEffect(d,[d,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:i,invisibleList:l,AddonTab:c}}var oH="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",iH=F.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),aH=F.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1}),eh=f.forwardRef((e,t)=>(ds("The `TabBar` component is deprecated. Use `TabsView` instead."),h.createElement(aH,{"data-deprecated":"TabBar",...e,ref:t})));eh.displayName="TabBar";var lH=F.div({display:"block",position:"relative",container:"tab-content / inline-size"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${oH}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),Nw=f.forwardRef(({active:e,render:t,children:r},n)=>(ds("The `TabWrapper` component is deprecated. Use `TabsView` instead."),h.createElement(kw,{"data-deprecated":"TabWrapper",ref:n,active:e},t?t():r)));Nw.displayName="TabWrapper";var sH=class extends f.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("Error rendering addon panel"),console.error(e),console.error(t.componentStack)}render(){return this.state.hasError&&this.props.active?h.createElement(Li,{title:"This addon has errors",description:"Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook."}):this.props.children}},th=f.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:o=!1,tools:i=null,backgroundColor:a,id:l=null,menuName:s="Tabs",emptyState:u,showToolsWhenEmpty:c})=>{ds("The `Tabs` component is deprecated. Use `TabsView` instead.");let d=f.useMemo(()=>Qj(e).map((b,E)=>({...b,active:t?b.id===t:E===0})),[e,t]),{visibleList:p,tabBarRef:g,tabRefs:m,AddonTab:y}=nH(d),v=u??h.createElement(Li,{title:"Nothing found"});return!c&&d.length===0?v:h.createElement(iH,{"data-deprecated":"Tabs",absolute:n,bordered:o,id:l},h.createElement(Qp,{scrollable:!1,border:!0,backgroundColor:a},h.createElement(eh,{style:{whiteSpace:"normal"},ref:g,role:"tablist"},p.map(({title:b,id:E,active:S,color:x},A)=>{let w=`index-${A}`;return h.createElement(Fi,{id:`tabbutton-${qn(E)??w}`,ref:C=>{m.current.set(E,C)},className:`tabbutton ${S?"tabbutton-active":""}`,type:"button",key:E,active:S,textColor:x,onClick:C=>{C.preventDefault(),r.onSelect(E)},role:"tab","aria-selected":S},typeof b=="function"?h.createElement("title",null):b)}),h.createElement(y,{menuName:s,actions:r})),i),h.createElement(lH,{id:"panel-tab-content",bordered:o,absolute:n},d.length?d.map(({id:b,active:E,render:S})=>h.createElement(sH,{key:b,active:E},h.createElement(S,{active:E},null))):v))});th.displayName="Tabs";var Mw=class extends f.Component{constructor(e){super(e),this.handlers={onSelect:t=>this.setState({selected:t})},ds("The `TabsState` class is deprecated. Use `TabsView` instead."),this.state={selected:e.initial}}render(){let{bordered:e=!1,absolute:t=!1,children:r,backgroundColor:n,menuName:o}=this.props,{selected:i}=this.state;return h.createElement(th,{bordered:e,absolute:t,selected:i,backgroundColor:n,menuName:o,actions:this.handlers},r)}};Mw.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var Bw=F.span(({theme:e})=>({display:"inline-block",width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});Bw.displayName="Separator";F.div(({theme:e})=>({fontSize:e.typography.size.s2-1,height:"100%"}));function uH(e,t){let{"aria-label":r,"aria-labelledby":n,orientation:o="horizontal"}=e,[i,a]=f.useState(!1);pe(()=>{var m;a(!!(t.current&&!((m=t.current.parentElement)===null||m===void 0)&&m.closest('[role="toolbar"]')))});let{direction:l}=wr(),s=l==="rtl"&&o==="horizontal",u=y9(t),c=m=>{if(m.currentTarget.contains(m.target)){if(o==="horizontal"&&m.key==="ArrowRight"||o==="vertical"&&m.key==="ArrowDown")s?u.focusPrevious():u.focusNext();else if(o==="horizontal"&&m.key==="ArrowLeft"||o==="vertical"&&m.key==="ArrowUp")s?u.focusNext():u.focusPrevious();else if(m.key==="Tab"){m.stopPropagation(),d.current=document.activeElement,m.shiftKey?u.focusFirst():u.focusLast();return}else return;m.stopPropagation(),m.preventDefault()}},d=f.useRef(null),p=m=>{!m.currentTarget.contains(m.relatedTarget)&&!d.current&&(d.current=m.target)},g=m=>{var y;if(d.current&&!m.currentTarget.contains(m.relatedTarget)&&!((y=t.current)===null||y===void 0)&&y.contains(m.target)){var v;(v=d.current)===null||v===void 0||v.focus(),d.current=null}};return{toolbarProps:{...Te(e,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:i?void 0:c,onFocusCapture:i?void 0:g,onBlurCapture:i?void 0:p}}}var jw=({"aria-label":e,"aria-labelledby":t,...r})=>{let n=f.useRef(null),{toolbarProps:o}=uH({"aria-label":e,"aria-labelledby":t,orientation:"horizontal"},n);return h.createElement(Eo,{ref:n,...o,...r})},Hw=new WeakMap;function vl(e,t,r){return e?(typeof t=="string"&&(t=t.replace(/\s+/g,"")),`${Hw.get(e)}-${r}-${t}`):""}function Uw(e,t,r){let{key:n,isDisabled:o,shouldSelectOnPressUp:i}=e,{selectionManager:a,selectedKey:l}=t,s=n===l,u=o||t.isDisabled||t.selectionManager.isDisabled(n),{itemProps:c,isPressed:d}=vw({selectionManager:a,key:n,ref:r,isDisabled:u,shouldSelectOnPressUp:i,linkBehavior:"selection"}),p=vl(t,n,"tab"),g=vl(t,n,"tabpanel"),{tabIndex:m}=c,y=t.collection.getItem(n),v=Te(y?.props,{labelable:!0});delete v.id;let b=jS(y?.props),{focusableProps:E}=Oi({isDisabled:u},r);return{tabProps:re(v,E,b,c,{id:p,"aria-selected":s,"aria-disabled":u||void 0,"aria-controls":s?g:void 0,tabIndex:u?void 0:m,role:"tab"}),isSelected:s,isDisabled:u,isPressed:d}}function zw(e,t,r){let n=v9(r)?void 0:0;var o;let i=vl(t,(o=e.id)!==null&&o!==void 0?o:t?.selectedKey,"tabpanel"),a=ts({...e,id:i,"aria-labelledby":vl(t,t?.selectedKey,"tab")});return{tabPanelProps:re(a,{tabIndex:n,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}var cH=class{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,r;return this.disabledKeys.has(e)||!!(!((r=this.collection.getItem(e))===null||r===void 0||(t=r.props)===null||t===void 0)&&t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do t=this.collection.getKeyAfter(t),t==null&&(t=this.collection.getFirstKey());while(t!=null&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do t=this.collection.getKeyBefore(t),t==null&&(t=this.collection.getLastKey());while(t!=null&&this.isDisabled(t));return t}constructor(e,t,r,n=new Set){this.collection=e,this.flipDirection=t==="rtl"&&r==="horizontal",this.disabledKeys=n,this.tabDirection=r==="horizontal"}};function Kw(e,t,r){let{orientation:n="horizontal",keyboardActivation:o="automatic"}=e,{collection:i,selectionManager:a,disabledKeys:l}=t,{direction:s}=wr(),u=f.useMemo(()=>new cH(i,s,n,l),[i,l,n,s]),{collectionProps:c}=bw({ref:r,selectionManager:a,keyboardDelegate:u,selectOnFocus:o==="automatic",disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),d=We();Hw.set(t,d);let p=ts({...e,id:d});return{tabListProps:{...re(c,p),role:"tablist","aria-orientation":n,tabIndex:void 0}}}var dH=F.button({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none",scrollSnapAlign:"start","&: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-visible":{outline:"0 none",boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`}}),({isSelected:e,theme:t})=>e?{color:t.barSelectedColor,borderBottomColor:t.barSelectedColor}:{color:t.barTextColor,borderBottomColor:"transparent","&:hover":{color:t.barHoverColor}}),fH=F.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"}),pH=F.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}}),hH=F.div({display:"flex",flexShrink:0}),tb=28,rb=F.div(({$showStartBorder:e,$showEndBorder:t,theme:r})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",padding:6,boxShadow:e?`inset 1px 0 0 ${r.appBorderColor}`:t?`inset -1px 0 0 ${r.appBorderColor}`:"none"})),nb=F(Se)({flexShrink:0,paddingInline:0,width:16}),gH=({item:e,state:t})=>{let{rendered:r}=e,n=h.useRef(null),o=t,{tabProps:i,isDisabled:a,isPressed:l,isSelected:s}=Uw(e,o,n);return h.createElement(dH,{...i,isDisabled:a,isPressed:l,isSelected:s,className:`tabbutton ${s?"tabbutton-active":""}`,ref:n},r)},Gw=({state:e,...t})=>{let r=f.useRef(null),n=f.useRef(null),o=f.useRef(null),{tabListProps:i}=Kw({orientation:"horizontal"},e,o),[a,l]=f.useState(!1),[s,u]=f.useState(!1),[c,d]=f.useState(!1),p=f.useCallback(()=>{let b=n.current,E=r.current;if(!b||!E)return;let{scrollLeft:S,scrollWidth:x,clientWidth:A}=b,w=E.clientWidth-(a?tb*2:0),C=x>w;l(C),C?(u(S>0),d(S<x-A)):(u(!1),d(!1))},[a]),g=f.useCallback(()=>{p()},[p]);f.useEffect(()=>{let b=n.current;if(!b||typeof window>"u")return;b.addEventListener("scroll",g,{passive:!0});let E=null;typeof ResizeObserver<"u"&&(E=new ResizeObserver(g),E.observe(b));let S=setTimeout(g,0);return()=>{clearTimeout(S),b.removeEventListener("scroll",g),E&&E.disconnect()}},[g]);let m=f.useCallback(b=>{let E=n.current,S=r.current;if(!E||!S||typeof window>"u")return;let x=S.clientWidth-tb*2,A=b==="backward"?-x:x;typeof E.scrollBy=="function"?E.scrollBy({left:A,behavior:"smooth"}):E.scrollLeft+=A},[]),y=f.useCallback(()=>m("backward"),[m]),v=f.useCallback(()=>m("forward"),[m]);return h.createElement(fH,{...t,ref:r,"data-show-scroll-buttons":a},a&&h.createElement(rb,{$showEndBorder:s},h.createElement(nb,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll backward",disabled:!s,onClick:y,tabIndex:-1},h.createElement(Z2,null))),h.createElement(pH,{ref:n},h.createElement(hH,{ref:o,...i},[...e.collection].map(b=>h.createElement(gH,{key:b.key,item:b,state:e})))),a&&h.createElement(rb,{$showStartBorder:c},h.createElement(nb,{variant:"ghost",padding:"small",size:"small",ariaLabel:"Scroll forward",disabled:!c,onClick:v,tabIndex:-1},h.createElement(Q2,null))))},mH=F.div({overflowY:"hidden",height:"100%"}),Ww=({hasScrollbar:e=!0,renderAllChildren:t=!1,state:r})=>{let n=f.useRef(null),o=r,{tabPanelProps:i}=zw(o.selectedItem??{},o,n);return(t?[...o.collection]:[o.selectedItem]).filter(a=>!!a).map(a=>{let l=o.selectedKey===a.key;return h.createElement(mH,{key:a.key,ref:l?n:void 0,...l?i:{},id:l?`${i.id}`.replace(/null$/,`${a.key}`):void 0,hidden:l?void 0:!0},e?h.createElement(qf,{vertical:!0},a.props.children):a.props.children)})},ob=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this._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])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let l of a.childNodes)t(l)};for(let a of e)t(a);let r=null,n=0,o=0;for(let[a,l]of this.keyMap)r?(r.nextKey=a,l.prevKey=r.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=n++),(l.type==="section"||l.type==="item")&&o++,r=l,r.nextKey=void 0;this._size=o;var i;this.lastKey=(i=r?.key)!==null&&i!==void 0?i:null}};function yH(e){let{filter:t,layoutDelegate:r}=e,n=Xp(e),o=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=f.useCallback(u=>t?new ob(t(u)):new ob(u),[t]),a=f.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=Sw(e,i,a),s=f.useMemo(()=>new Jp(l,n,{layoutDelegate:r}),[l,n,r]);return bH(l,s),{collection:l,disabledKeys:o,selectionManager:s}}function bH(e,t){let r=f.useRef(null);f.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){let c=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(b=>{let E=r.current.getItem(b);return E?.type==="item"?E:null}).filter(b=>b!==null),p=[...e.getKeys()].map(b=>{let E=e.getItem(b);return E?.type==="item"?E:null}).filter(b=>b!==null);var n,o;let g=((n=d?.length)!==null&&n!==void 0?n:0)-((o=p?.length)!==null&&o!==void 0?o:0);var i,a,l;let m=Math.min(g>1?Math.max(((i=c?.index)!==null&&i!==void 0?i:0)-g+1,0):(a=c?.index)!==null&&a!==void 0?a:0,((l=p?.length)!==null&&l!==void 0?l:0)-1),y=null,v=!1;for(;m>=0;){if(!t.isDisabled(p[m].key)){y=p[m];break}if(m<p.length-1&&!v)m++;else{v=!0;var s,u;m>((s=c?.index)!==null&&s!==void 0?s:0)&&(m=(u=c?.index)!==null&&u!==void 0?u:0),m--}}t.setFocusedKey(y?y.key:null)}r.current=e},[e,t])}function vH(e){var t;let[r,n]=rs(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=f.useMemo(()=>r!=null?[r]:[],[r]),{collection:i,disabledKeys:a,selectionManager:l}=yH({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{if(u==="all")return;var c;let d=(c=u.values().next().value)!==null&&c!==void 0?c:null;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),s=r!=null?i.getItem(r):null;return{collection:i,disabledKeys:a,selectionManager:l,selectedKey:r,setSelectedKey:n,selectedItem:s}}function Vw(e){var t,r;let n=vH({...e,onSelectionChange:e.onSelectionChange?s=>{var u;s!=null&&((u=e.onSelectionChange)===null||u===void 0||u.call(e,s))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:(r=(t=e.defaultSelectedKey)!==null&&t!==void 0?t:ib(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set))!==null&&r!==void 0?r:void 0}),{selectionManager:o,collection:i,selectedKey:a}=n,l=f.useRef(a);return f.useEffect(()=>{let s=a;e.selectedKey==null&&(o.isEmpty||s==null||!i.getItem(s))&&(s=ib(i,n.disabledKeys),s!=null&&o.setSelectedKeys([s])),(s!=null&&o.focusedKey==null||!o.isFocused&&s!==l.current)&&o.setFocusedKey(s),l.current=s}),{...n,isDisabled:e.isDisabled||!1}}function ib(e,t){let r=null;if(e){var n,o,i,a;for(r=e.getFirstKey();r!=null&&(t.has(r)||!((o=e.getItem(r))===null||o===void 0||(n=o.props)===null||n===void 0)&&n.isDisabled)&&r!==e.getLastKey();)r=e.getKeyAfter(r);r!=null&&(t.has(r)||!((a=e.getItem(r))===null||a===void 0||(i=a.props)===null||i===void 0)&&i.isDisabled)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}var qw=({defaultSelected:e,onSelectionChange:t,selected:r,tabs:n})=>Vw({children:n.map(({children:o,id:i,"aria-label":a,title:l})=>h.createElement(nj,{key:i,"aria-label":a,title:typeof l=="function"?h.createElement(l,null):l},typeof o=="function"?h.createElement(o,null):o)),disabledKeys:n.filter(({isDisabled:o})=>o).map(({id:o})=>o),defaultSelectedKey:e,onSelectionChange:o=>t?.(`${o}`),selectedKey:r}),EH=F.div({display:"flex",flexDirection:"column",height:"100%"}),SH=F(Ww)(()=>({flex:1})),xH=F(Gw)(({$simulatedGap:e})=>({flex:"1 1 0%",'&[data-show-scroll-buttons="true"]':{marginInlineEnd:e}})),Yw=({backgroundColor:e,barInnerStyle:t,defaultSelected:r,emptyState:n,onSelectionChange:o,panelProps:i={},selected:a,showToolsWhenEmpty:l,tabs:s,tools:u,...c})=>{let d=qw({defaultSelected:r,onSelectionChange:o,selected:a,tabs:s}),p=n??h.createElement(Li,{title:"Nothing found"}),g=s.length>0;return!l&&!g?p:h.createElement(EH,{...c},h.createElement(Eo,{scrollable:!1,border:!0,backgroundColor:e,innerStyle:{display:"flex",justifyContent:"space-between",paddingInlineStart:0,paddingInlineEnd:10,"> *:not(:last-child)":{order:2},"> *":{flexShrink:0},...t,gap:0}},u,g?h.createElement(xH,{state:d,$simulatedGap:t?.gap??6}):h.createElement("div",null)),g?h.createElement(SH,{state:d,...i}):p)},fs=f.createContext(null),no=f.createContext(null),$H=f.forwardRef(function(e,t){[e,t]=Qe(e,t,fs);let{children:r,orientation:n="horizontal"}=e;return r=f.useMemo(()=>typeof r=="function"?r({orientation:n,defaultChildren:null}):r,[r,n]),h.createElement(rw,{content:r},o=>h.createElement(wH,{props:e,collection:o,tabsRef:t}))});function wH({props:e,tabsRef:t,collection:r}){let{orientation:n="horizontal"}=e,o=Vw({...e,collection:r,children:void 0}),{focusProps:i,isFocused:a,isFocusVisible:l}=is({within:!0}),s=f.useMemo(()=>({orientation:n,isFocusWithin:a,isFocusVisible:l}),[n,a,l]),u=St({...e,defaultClassName:"react-aria-Tabs",values:s}),c=Te(e,{global:!0});return h.createElement("div",{...re(c,u,i),ref:t,slot:e.slot||void 0,"data-focused":a||void 0,"data-orientation":n,"data-focus-visible":l||void 0,"data-disabled":o.isDisabled||void 0},h.createElement($r,{values:[[fs,e],[no,o]]},u.children))}var CH=f.forwardRef(function(e,t){return f.useContext(no)?h.createElement(_H,{props:e,forwardedRef:t}):h.createElement(iw,e)});function _H({props:e,forwardedRef:t}){let r=f.useContext(no),{CollectionRoot:n}=f.useContext(Ii),{orientation:o="horizontal",keyboardActivation:i="automatic"}=kp(fs),a=Gt(t),{tabListProps:l}=Kw({...e,orientation:o,keyboardActivation:i},r,a),s=St({...e,children:null,defaultClassName:"react-aria-TabList",values:{orientation:o,state:r}}),u=Te(e,{global:!0});return delete u.id,h.createElement("div",{...re(u,s,l),ref:a,"data-orientation":o||void 0},h.createElement(n,{collection:r.collection,persistedKeys:dw(r.selectionManager.focusedKey)}))}var Xw=class extends An{};Xw.type="item";var TH=ss(Xw,(e,t,r)=>{let n=f.useContext(no),o=Gt(t),{tabProps:i,isSelected:a,isDisabled:l,isPressed:s}=Uw({key:r.key,...e},n,o),{focusProps:u,isFocused:c,isFocusVisible:d}=is(),{hoverProps:p,isHovered:g}=vo({isDisabled:l,onHoverStart:e.onHoverStart,onHoverEnd:e.onHoverEnd,onHoverChange:e.onHoverChange}),m=St({...e,children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:a,isDisabled:l,isFocused:c,isFocusVisible:d,isPressed:s,isHovered:g}}),y=r.props.href?"a":"div",v=Te(e,{global:!0});return delete v.id,delete v.onClick,h.createElement(y,{...re(v,m,i,u,p),ref:o,"data-selected":a||void 0,"data-disabled":l||void 0,"data-focused":c||void 0,"data-focus-visible":d||void 0,"data-pressed":s||void 0,"data-hovered":g||void 0},m.children)}),AH=Vp(function(e,t){let r=f.useContext(no),n=Gt(t),{id:o,...i}=e,{tabPanelProps:a}=zw(e,r,n),{focusProps:l,isFocused:s,isFocusVisible:u}=is(),c=r.selectedKey===e.id,d=St({...e,defaultClassName:"react-aria-TabPanel",values:{isFocused:s,isFocusVisible:u,isInert:q0(!c),state:r}});if(!c&&!e.shouldForceMount)return null;let p=Te(i,{global:!0});delete p.id;let g=c?re(p,a,l,d):d;return h.createElement("div",{...g,ref:n,"data-focused":s||void 0,"data-focus-visible":u||void 0,inert:q0(!c||e.inert),"data-inert":c?void 0:"true"},h.createElement($r,{values:[[fs,null],[no,null]]},h.createElement(Ii.Provider,{value:cw},d.children)))});F.div({display:"flex",alignItems:"center",flexShrink:0,position:"relative",overflow:"hidden"});F.div({display:"flex",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none",WebkitScrollbar:"none",scrollSnapType:"x mandatory",flex:1,"&::-webkit-scrollbar":{display:"none"}});F(CH)({display:"flex",flexShrink:0});F.div(({$showStartBorder:e,$showEndBorder:t,theme:r})=>({flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",padding:6,boxShadow:e?`inset 1px 0 0 ${r.appBorderColor}`:t?`inset -1px 0 0 ${r.appBorderColor}`:"none"}));F(Se)({flexShrink:0,paddingInline:0,width:16});F(AH)({overflowY:"hidden",height:"100%",display:"block",'&[inert="true"]':{display:"none"}});F($H)(({$simulatedGap:e})=>({display:"flex",flexDirection:"column",height:"100%",".tablist":{flex:"1 1 100%"},".tablist.tablist-has-scroll":{marginInlineEnd:e},"& > :not(:first-child)":{flex:1}}));F(TH)(({theme:e})=>({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none",scrollSnapAlign:"start","&:empty":{display:"none"},"&[hidden]":{display:"none"},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-visible":{outline:"0 none",boxShadow:`inset 0 0 0 2px ${e.barSelectedColor}`},color:e.barTextColor,borderBottomColor:"transparent","&:hover":{color:e.barHoverColor},"&[data-selected]":{color:e.barSelectedColor,borderBottomColor:e.barSelectedColor}}));var OH=je`
684
+ from {
685
+ transform: rotate(0deg);
686
+ }
687
+ to {
688
+ transform: rotate(360deg);
689
+ }
690
+ `,RH=F.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${OH} 0.7s linear infinite`,mixBlendMode:"difference"})),ab=F.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),DH=F.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:vr(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),PH=F.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),lb=F.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),IH=F(H2)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),FH=je`
691
+ from { content: "..." }
692
+ 33% { content: "." }
693
+ 66% { content: ".." }
694
+ to { content: "..." }
695
+ `,LH=F.span({"&::after":{content:"'...'",animation:`${FH} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),Jw=({progress:e,error:t,size:r,...n})=>{if(t)return h.createElement(ab,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},h.createElement(IH,null),h.createElement(lb,null,t.message));if(e){let{value:o,modules:i}=e,{message:a}=e;return i&&(a+=` ${i.complete} / ${i.total} modules`),h.createElement(ab,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o*100,"aria-valuetext":a,role:"progressbar",...n},h.createElement(DH,null,h.createElement(PH,{style:{width:`${o*100}%`}})),h.createElement(lb,null,a,o<1&&h.createElement(LH,{key:a})))}return h.createElement(RH,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},kH=je({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});F.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e}));F.svg(({size:e,width:t})=>({position:"absolute",width:`${e}px!important`,height:`${e}px!important`,transform:"rotate(-90deg)",circle:{r:(e-Math.ceil(t))/2,cx:e/2,cy:e/2,opacity:.15,fill:"transparent",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:Math.PI*(e-Math.ceil(t))}}),({progress:e})=>e&&{circle:{opacity:.75}},({spinner:e})=>e&&{animation:`${kH} 1s linear infinite`,circle:{opacity:.25}});const{deprecate:nZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;F.pre`
696
+ line-height: 18px;
697
+ padding: 11px 1rem;
698
+ white-space: pre-wrap;
699
+ background: rgba(0, 0, 0, 0.05);
700
+ color: ${Y.darkest};
701
+ border-radius: 3px;
702
+ margin: 1rem 0;
703
+ width: 100%;
704
+ display: block;
705
+ overflow: hidden;
706
+ font-family: ${Bt.fonts.mono};
707
+ font-size: ${Bt.size.s2-1}px;
708
+ `;var Zw=DS;Object.keys(DS).forEach(e=>{f.forwardRef((t,r)=>f.createElement(e,{...t,ref:r}))});const NH=Object.freeze(Object.defineProperty({__proto__:null,A:pS,ActionBar:r2,ActionList:Ia,Bar:Eo,Blockquote:hS,Button:Se,Code:xp,DL:gS,Div:mS,EmptyTabContent:Li,ErrorFormatter:U$,FlexBar:Qp,Form:Tn,H1:yS,H2:$p,H3:wp,H4:bS,H5:vS,H6:ES,HR:SS,IconButton:$$,Img:xS,LI:$S,Link:_i,ListItem:Iw,Loader:Jw,OL:wS,P:CS,Popover:Pi,PopoverProvider:Zp,Pre:_S,ResetWrapper:Sp,ScrollArea:qf,Select:V$,Separator:Bw,Span:TS,SyntaxHighlighter:Ci,TT:AS,TabBar:eh,TabButton:Fi,TabList:Gw,TabPanel:Ww,TabWrapper:Nw,Table:OS,Tabs:th,TabsState:Mw,TabsView:Yw,ToggleButton:Di,Toolbar:jw,Tooltip:Dw,TooltipLinkList:Fw,TooltipNote:IS,TooltipProvider:S$,UL:RS,Zoom:H$,codeCommon:Sr,components:Zw,convertToReactAriaPlacement:zp,createCopyToClipboardFunction:ck,nameSpaceClassNames:$e,useCopyButton:k2,useTabsState:qw,withReset:_e},Symbol.toStringTag,{value:"Module"}));function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pt.apply(null,arguments)}function MH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hi(e,t){return hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},hi(e,t)}function BH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hi(e,t)}function tf(e){return tf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tf(e)}function jH(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Qw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qw=function(){return!!e})()}function HH(e,t,r){if(Qw())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&hi(o,r.prototype),o}function rf(e){var t=typeof Map=="function"?new Map:void 0;return rf=function(r){if(r===null||!jH(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return HH(r,arguments,tf(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),hi(n,r)},rf(e)}var nr=(function(e){BH(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,MH(n)}return t})(rf(Error));function xc(e){return Math.round(e*255)}function UH(e,t,r){return xc(e)+","+xc(t)+","+xc(r)}function El(e,t,r,n){if(n===void 0&&(n=UH),t===0)return n(r,r,r);var o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,a=i*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);var c=r-i/2,d=l+c,p=s+c,g=u+c;return n(d,p,g)}var sb={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function zH(e){if(typeof e!="string")return e;var t=e.toLowerCase();return sb[t]?"#"+sb[t]:e}var KH=/^#[a-fA-F0-9]{6}$/,GH=/^#[a-fA-F0-9]{8}$/,WH=/^#[a-fA-F0-9]{3}$/,VH=/^#[a-fA-F0-9]{4}$/,$c=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,qH=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,YH=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,XH=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function oo(e){if(typeof e!="string")throw new nr(3);var t=zH(e);if(t.match(KH))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(GH)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(WH))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(VH)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=$c.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=qH.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=YH.exec(t);if(a){var l=parseInt(""+a[1],10),s=parseInt(""+a[2],10)/100,u=parseInt(""+a[3],10)/100,c="rgb("+El(l,s,u)+")",d=$c.exec(c);if(!d)throw new nr(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var p=XH.exec(t.substring(0,50));if(p){var g=parseInt(""+p[1],10),m=parseInt(""+p[2],10)/100,y=parseInt(""+p[3],10)/100,v="rgb("+El(g,m,y)+")",b=$c.exec(v);if(!b)throw new nr(4,t,v);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+p[4])>1?parseFloat(""+p[4])/100:parseFloat(""+p[4])}}throw new nr(5)}function JH(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),i=Math.min(t,r,n),a=(o+i)/2;if(o===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:a,alpha:e.alpha}:{hue:0,saturation:0,lightness:a};var l,s=o-i,u=a>.5?s/(2-o-i):s/(o+i);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:a,alpha:e.alpha}:{hue:l,saturation:u,lightness:a}}function Kr(e){return JH(oo(e))}var ZH=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},nf=ZH;function on(e){var t=e.toString(16);return t.length===1?"0"+t:t}function wc(e){return on(Math.round(e*255))}function QH(e,t,r){return nf("#"+wc(e)+wc(t)+wc(r))}function eC(e,t,r){return El(e,t,r,QH)}function eU(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return eC(e.hue,e.saturation,e.lightness);throw new nr(1)}function tU(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?eC(e.hue,e.saturation,e.lightness):"rgba("+El(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new nr(2)}function of(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return nf("#"+on(e)+on(t)+on(r));if(typeof e=="object"&&t===void 0&&r===void 0)return nf("#"+on(e.red)+on(e.green)+on(e.blue));throw new nr(6)}function io(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=oo(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?of(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?of(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new nr(7)}var rU=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},nU=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},oU=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},iU=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Gr(e){if(typeof e!="object")throw new nr(8);if(nU(e))return io(e);if(rU(e))return of(e);if(iU(e))return tU(e);if(oU(e))return eU(e);throw new nr(8)}function tC(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):tC(e,t,n)}}function xt(e){return tC(e,e.length,[])}function aU(e,t){if(t==="transparent")return t;var r=Kr(t);return Gr(pt({},r,{hue:r.hue+parseFloat(e)}))}xt(aU);function So(e,t,r){return Math.max(e,Math.min(t,r))}function lU(e,t){if(t==="transparent")return t;var r=Kr(t);return Gr(pt({},r,{lightness:So(0,1,r.lightness-parseFloat(e))}))}var sU=xt(lU),Wo=sU;function uU(e,t){if(t==="transparent")return t;var r=Kr(t);return Gr(pt({},r,{saturation:So(0,1,r.saturation-parseFloat(e))}))}xt(uU);function cU(e,t){if(t==="transparent")return t;var r=Kr(t);return Gr(pt({},r,{lightness:So(0,1,r.lightness+parseFloat(e))}))}var dU=xt(cU),af=dU;function fU(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=oo(t),o=pt({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=oo(r),a=pt({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),l=o.alpha-a.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,p=1-d,g={red:Math.floor(o.red*d+a.red*p),green:Math.floor(o.green*d+a.green*p),blue:Math.floor(o.blue*d+a.blue*p),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))};return io(g)}var pU=xt(fU),rC=pU;function hU(e,t){if(t==="transparent")return t;var r=oo(t),n=typeof r.alpha=="number"?r.alpha:1,o=pt({},r,{alpha:So(0,1,(n*100+parseFloat(e)*100)/100)});return io(o)}var gU=xt(hU),Cc=gU;function mU(e,t){if(t==="transparent")return t;var r=Kr(t);return Gr(pt({},r,{saturation:So(0,1,r.saturation+parseFloat(e))}))}xt(mU);function yU(e,t){return t==="transparent"?t:Gr(pt({},Kr(t),{hue:parseFloat(e)}))}xt(yU);function bU(e,t){return t==="transparent"?t:Gr(pt({},Kr(t),{lightness:parseFloat(e)}))}xt(bU);function vU(e,t){return t==="transparent"?t:Gr(pt({},Kr(t),{saturation:parseFloat(e)}))}xt(vU);function EU(e,t){return t==="transparent"?t:rC(parseFloat(e),"rgb(0, 0, 0)",t)}xt(EU);function SU(e,t){return t==="transparent"?t:rC(parseFloat(e),"rgb(255, 255, 255)",t)}xt(SU);function xU(e,t){if(t==="transparent")return t;var r=oo(t),n=typeof r.alpha=="number"?r.alpha:1,o=pt({},r,{alpha:So(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return io(o)}var $U=xt(xU),Ie=$U,wU=F.div(_e,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:Ie(.3,e.color.defaultText),fontSize:e.typography.size.s2})),nC=e=>h.createElement(wU,{...e,className:"docblock-emptyblock sb-unstyled"}),CU=F(Ci)(({theme:e})=>({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"}})),_U=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),da=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Za}`]:{margin:0}})),TU=()=>h.createElement(_U,null,h.createElement(da,null),h.createElement(da,{style:{width:"80%"}}),h.createElement(da,{style:{width:"30%"}}),h.createElement(da,{style:{width:"80%"}})),ki=({isLoading:e,error:t,language:r,code:n,dark:o,format:i=!0,copyable:a=!0,...l})=>{let{typography:s}=Uf();if(e)return h.createElement(TU,null);if(t)return h.createElement(nC,null,t);let u=h.createElement(CU,{bordered:!0,copyable:a,format:i,language:r??"jsx",className:"docblock-source sb-unstyled",...l},n);if(typeof o>"u")return u;let c=o?dn.dark:dn.light;return h.createElement(zf,{theme:Ja({...c,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)};const{once:AU}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function OU(e){return e==null||typeof e!="object"&&typeof e!="function"}function RU(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function DU(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function PU(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var IU="[object RegExp]",FU="[object String]",LU="[object Number]",kU="[object Boolean]",NU="[object Arguments]",MU="[object Symbol]",BU="[object Date]",jU="[object Map]",HU="[object Set]",UU="[object Array]",zU="[object ArrayBuffer]",KU="[object Object]",GU="[object DataView]",WU="[object Uint8Array]",VU="[object Uint8ClampedArray]",qU="[object Uint16Array]",YU="[object Uint32Array]",XU="[object Int8Array]",JU="[object Int16Array]",ZU="[object Int32Array]",QU="[object Float32Array]",ez="[object Float64Array]";function Hn(e,t,r,n=new Map,o=void 0){let i=o?.(e,t,r,n);if(i!==void 0)return i;if(OU(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let a=new Array(e.length);n.set(e,a);for(let l=0;l<e.length;l++)a[l]=Hn(e[l],l,r,n,o);return Object.hasOwn(e,"index")&&(a.index=e.index),Object.hasOwn(e,"input")&&(a.input=e.input),a}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let a=new RegExp(e.source,e.flags);return a.lastIndex=e.lastIndex,a}if(e instanceof Map){let a=new Map;n.set(e,a);for(let[l,s]of e)a.set(l,Hn(s,l,r,n,o));return a}if(e instanceof Set){let a=new Set;n.set(e,a);for(let l of e)a.add(Hn(l,void 0,r,n,o));return a}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(RU(e)){let a=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,a);for(let l=0;l<e.length;l++)a[l]=Hn(e[l],l,r,n,o);return a}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let a=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,a),_r(a,e,r,n,o),a}if(typeof File<"u"&&e instanceof File){let a=new File([e],e.name,{type:e.type});return n.set(e,a),_r(a,e,r,n,o),a}if(typeof Blob<"u"&&e instanceof Blob){let a=new Blob([e],{type:e.type});return n.set(e,a),_r(a,e,r,n,o),a}if(e instanceof Error){let a=new e.constructor;return n.set(e,a),a.message=e.message,a.name=e.name,a.stack=e.stack,a.cause=e.cause,_r(a,e,r,n,o),a}if(e instanceof Boolean){let a=new Boolean(e.valueOf());return n.set(e,a),_r(a,e,r,n,o),a}if(e instanceof Number){let a=new Number(e.valueOf());return n.set(e,a),_r(a,e,r,n,o),a}if(e instanceof String){let a=new String(e.valueOf());return n.set(e,a),_r(a,e,r,n,o),a}if(typeof e=="object"&&tz(e)){let a=Object.create(Object.getPrototypeOf(e));return n.set(e,a),_r(a,e,r,n,o),a}return e}function _r(e,t,r=e,n,o){let i=[...Object.keys(t),...DU(t)];for(let a=0;a<i.length;a++){let l=i[a],s=Object.getOwnPropertyDescriptor(e,l);(s==null||s.writable)&&(e[l]=Hn(t[l],l,r,n,o))}}function tz(e){switch(PU(e)){case NU:case UU:case zU:case GU:case kU:case BU:case QU:case ez:case XU:case JU:case ZU:case jU:case LU:case KU:case IU:case HU:case FU:case MU:case WU:case VU:case qU:case YU:return!0;default:return!1}}function rz(e){return Hn(e,void 0,e,new Map,void 0)}function nz(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],a=e[i];t(a,i)&&(r[i]=a)}return r}function ln(){return ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ln.apply(this,arguments)}var oz=["children","options"],ub=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),cb={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},iz=["style","script","pre"],az=["src","href","data","formAction","srcDoc","action"],lz=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,sz=/\n{2,}$/,db=/^(\s*>[\s\S]*?)(?=\n\n|$)/,uz=/^ *> ?/gm,cz=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,dz=/^ {2,}\n/,fz=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,fb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,pb=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,pz=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,hz=/^(?:\n *)*\n/,gz=/\r\n?/g,mz=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,yz=/^\[\^([^\]]+)]/,bz=/\f/g,vz=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Ez=/^\s*?\[(x|\s)\]/,hb=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,gb=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,mb=/^([^\n]+)\n *(=|-)\2{2,} *\n/,_c=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Sz=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,yb=/^<!--[\s\S]*?(?:-->)/,xz=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Tc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,$z=/^\{.*\}$/,wz=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Cz=/^<([^ >]+[:@\/][^ >]+)>/,_z=/-([a-z])?/gi,bb=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Tz=/^[^\n]+(?: \n|\n{2,})/,Az=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Oz=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Rz=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Dz=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Pz=/\t/g,Iz=/(^ *\||\| *$)/g,Fz=/^ *:-+: *$/,Lz=/^ *:-+ *$/,kz=/^ *-+: *$/,ps=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,hs="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Nz=RegExp(`^([*_])\\1${ps(1)}${hs}\\1\\1(?!\\1)`),Mz=RegExp(`^([*_])${ps(0)}${hs}\\1(?!\\1)`),Bz=RegExp(`^(==)${ps(0)}${hs}\\1`),jz=RegExp(`^(~~)${ps(0)}${hs}\\1`),Hz=/^(:[a-zA-Z0-9-_]+:)/,Uz=/^\\([^0-9A-Za-z\s])/,zz=/\\([^0-9A-Za-z\s])/g,Kz=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,Gz=/^\n+/,Wz=/^([ \t]*)/,Vz=/(?:^|\n)( *)$/,rh="(?:\\d+\\.)",nh="(?:[*+-])";function oC(e){return"( *)("+(e===1?rh:nh)+") +"}var iC=oC(1),aC=oC(2);function lC(e){return RegExp("^"+(e===1?iC:aC))}var qz=lC(1),Yz=lC(2);function sC(e){return RegExp("^"+(e===1?iC:aC)+"[^\\n]*(?:\\n(?!\\1"+(e===1?rh:nh)+" )[^\\n]*)*(\\n|$)","gm")}var Xz=sC(1),Jz=sC(2);function uC(e){let t=e===1?rh:nh;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var cC=uC(1),dC=uC(2);function vb(e,t){let r=t===1,n=r?cC:dC,o=r?Xz:Jz,i=r?qz:Yz;return{t:a=>i.test(a),o:ao(function(a,l){let s=Vz.exec(l.prevCapture);return s&&(l.list||!l.inline&&!l.simple)?n.exec(a=s[1]+a):null}),i:1,u(a,l,s){let u=r?+a[2]:void 0,c=a[0].replace(sz,`
709
+ `).match(o),d=!1;return{items:c.map(function(p,g){let m=i.exec(p)[0].length,y=RegExp("^ {1,"+m+"}","gm"),v=p.replace(y,"").replace(i,""),b=g===c.length-1,E=v.indexOf(`
710
+
711
+ `)!==-1||b&&d;d=E;let S=s.inline,x=s.list,A;s.list=!0,E?(s.inline=!1,A=Vo(v)+`
712
+
713
+ `):(s.inline=!0,A=Vo(v));let w=l(A,s);return s.inline=S,s.list=x,w}),ordered:r,start:u}},l:(a,l,s)=>e(a.ordered?"ol":"ul",{key:s.key,start:a.type==="20"?a.start:void 0},a.items.map(function(u,c){return e("li",{key:c},l(u,s))}))}}var Zz=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Qz=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Eb(e){return typeof e=="string"}function Vo(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function ka(e,t){return e.startsWith(t)}function eK(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(ka(e,r[n]))return!0;return!1}return r(e,t)}function Lo(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function tK(e){return kz.test(e)?"right":Fz.test(e)?"center":Lz.test(e)?"left":null}function Sb(e,t,r,n){let o=r.inTable;r.inTable=!0;let i=[[]],a="";function l(){if(!a)return;let s=i[i.length-1];s.push.apply(s,t(a,r)),a=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((s,u,c)=>{s.trim()==="|"&&(l(),n)?u!==0&&u!==c.length-1&&i.push([]):a+=s}),l(),r.inTable=o,i}function rK(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(Iz,"").split("|").map(tK):[],o=e[3]?(function(a,l,s){return a.trim().split(`
714
+ `).map(function(u){return Sb(u,l,s,!0)})})(e[3],t,r):[],i=Sb(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:i,type:"25"}:{children:i,type:"21"}}function xb(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function ao(e){return e.inline=1,e}function Zr(e){return ao(function(t,r){return r.inline?e.exec(t):null})}function Tr(e){return ao(function(t,r){return r.inline||r.simple?e.exec(t):null})}function hr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function fa(e){return ao(function(t){return e.exec(t)})}var nK=/(javascript|vbscript|data(?!:image)):/i;function oK(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(nK.test(t))return null}catch{return null}return e}function qt(e){return e&&e.replace(zz,"$1")}function Na(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let i=e(t,r);return r.inline=n,r.simple=o,i}function iK(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let i=e(t,r);return r.inline=n,r.simple=o,i}function aK(e,t,r){let n=r.inline||!1;r.inline=!1;let o=e(t,r);return r.inline=n,o}var Ac=(e,t,r)=>({children:Na(t,e[2],r)});function Oc(){return{}}function Rc(){return null}function lK(...e){return e.filter(Boolean).join(" ")}function Dc(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function sK(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?ln({},cb,t.namedCodesToUnicode):cb;let r=t.slugify||Lo,n=t.sanitizer||oK,o=t.createElement||f.createElement,i=[db,fb,pb,t.enforceAtxHeadings?gb:hb,mb,bb,cC,dC],a=[...i,Tz,_c,yb,Tc];function l(b,E){for(let S=0;S<b.length;S++)if(b[S].test(E))return!0;return!1}function s(b,E,...S){let x=Dc(t.overrides,b+".props",{});return o((function(A,w){let C=Dc(w,A);return C?typeof C=="function"||typeof C=="object"&&"render"in C?C:Dc(w,A+".component",A):A})(b,t.overrides),ln({},E,x,{className:lK(E?.className,x.className)||void 0}),...S)}function u(b){b=b.replace(vz,"");let E=!1;t.forceInline?E=!0:t.forceBlock||(E=Dz.test(b)===!1);let S=y(m(E?b:Vo(b).replace(Gz,"")+`
715
+
716
+ `,{inline:E}));for(;Eb(S[S.length-1])&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;let x=t.wrapper||(E?"span":"div"),A;if(S.length>1||t.forceWrapper)A=S;else{if(S.length===1)return A=S[0],typeof A=="string"?s("span",{key:"outer"},A):A;A=null}return o(x,{key:"outer"},A)}function c(b,E){if(!E||!E.trim())return null;let S=E.match(lz);return S?S.reduce(function(x,A){let w=A.indexOf("=");if(w!==-1){let C=(function(T){return T.indexOf("-")!==-1&&T.match(xz)===null&&(T=T.replace(_z,function(M,H){return H.toUpperCase()})),T})(A.slice(0,w)).trim(),R=(function(T){let M=T[0];return(M==='"'||M==="'")&&T.length>=2&&T[T.length-1]===M?T.slice(1,-1):T})(A.slice(w+1).trim()),L=ub[C]||C;if(L==="ref")return x;let I=x[L]=(function(T,M,H,$){return M==="style"?(function(_){let O=[],P="",k=!1,B=!1,N="";if(!_)return O;for(let j=0;j<_.length;j++){let K=_[j];if(K!=='"'&&K!=="'"||k||(B?K===N&&(B=!1,N=""):(B=!0,N=K)),K==="("&&P.endsWith("url")?k=!0:K===")"&&k&&(k=!1),K!==";"||B||k)P+=K;else{let U=P.trim();if(U){let z=U.indexOf(":");if(z>0){let W=U.slice(0,z).trim(),G=U.slice(z+1).trim();O.push([W,G])}}P=""}}let D=P.trim();if(D){let j=D.indexOf(":");if(j>0){let K=D.slice(0,j).trim(),U=D.slice(j+1).trim();O.push([K,U])}}return O})(H).reduce(function(_,[O,P]){return _[O.replace(/(-[a-z])/g,k=>k[1].toUpperCase())]=$(P,T,O),_},{}):az.indexOf(M)!==-1?$(qt(H),T,M):(H.match($z)&&(H=qt(H.slice(1,H.length-1))),H==="true"||H!=="false"&&H)})(b,C,R,n);typeof I=="string"&&(_c.test(I)||Tc.test(I))&&(x[L]=u(I.trim()))}else A!=="style"&&(x[ub[A]||A]=!0);return x},{}):null}let d=[],p={},g={0:{t:[">"],o:hr(db),i:1,u(b,E,S){let[,x,A]=b[0].replace(uz,"").match(cz);return{alert:x,children:E(A,S)}},l(b,E,S){let x={key:S.key};return b.alert&&(x.className="markdown-alert-"+r(b.alert.toLowerCase(),Lo),b.children.unshift({attrs:{},children:[{type:"27",text:b.alert}],noInnerParse:!0,type:"11",tag:"header"})),s("blockquote",x,E(b.children,S))}},1:{t:[" "],o:fa(dz),i:1,u:Oc,l:(b,E,S)=>s("br",{key:S.key})},2:{t:["--","__","**","- ","* ","_ "],o:hr(fz),i:1,u:Oc,l:(b,E,S)=>s("hr",{key:S.key})},3:{t:[" "],o:hr(pb),i:0,u:b=>({lang:void 0,text:qt(Vo(b[0].replace(/^ {4}/gm,"")))}),l:(b,E,S)=>s("pre",{key:S.key},s("code",ln({},b.attrs,{className:b.lang?"lang-"+b.lang:""}),b.text))},4:{t:["```","~~~"],o:hr(fb),i:0,u:b=>({attrs:c("code",b[3]||""),lang:b[2]||void 0,text:b[4],type:"3"})},5:{t:["`"],o:Tr(pz),i:3,u:b=>({text:qt(b[2])}),l:(b,E,S)=>s("code",{key:S.key},b.text)},6:{t:["[^"],o:hr(mz),i:0,u:b=>(d.push({footnote:b[2],identifier:b[1]}),{}),l:Rc},7:{t:["[^"],o:Zr(yz),i:1,u:b=>({target:"#"+r(b[1],Lo),text:b[1]}),l:(b,E,S)=>s("a",{key:S.key,href:n(b.target,"a","href")},s("sup",{key:S.key},b.text))},8:{t:["[ ]","[x]"],o:Zr(Ez),i:1,u:b=>({completed:b[1].toLowerCase()==="x"}),l:(b,E,S)=>s("input",{checked:b.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:hr(t.enforceAtxHeadings?gb:hb),i:1,u:(b,E,S)=>({children:Na(E,b[2],S),id:r(b[2],Lo),level:b[1].length}),l:(b,E,S)=>s("h"+b.level,{id:b.id,key:S.key},E(b.children,S))},10:{t:b=>{let E=b.indexOf(`
717
+ `);return E>0&&E<b.length-1&&(b[E+1]==="="||b[E+1]==="-")},o:hr(mb),i:1,u:(b,E,S)=>({children:Na(E,b[1],S),level:b[2]==="="?1:2,type:"9"})},11:{t:["<"],o:fa(_c),i:1,u(b,E,S){let[,x]=b[3].match(Wz),A=RegExp("^"+x,"gm"),w=b[3].replace(A,""),C=l(a,w)?aK:Na,R=b[1].toLowerCase(),L=iz.indexOf(R)!==-1,I=(L?R:b[1]).trim(),T={attrs:c(I,b[2]),noInnerParse:L,tag:I};if(S.inAnchor=S.inAnchor||R==="a",L)T.text=b[3];else{let M=S.inHTML;S.inHTML=!0,T.children=C(E,w,S),S.inHTML=M}return S.inAnchor=!1,T},l:(b,E,S)=>s(b.tag,ln({key:S.key},b.attrs),b.text||(b.children?E(b.children,S):""))},13:{t:["<"],o:fa(Tc),i:1,u(b){let E=b[1].trim();return{attrs:c(E,b[2]||""),tag:E}},l:(b,E,S)=>s(b.tag,ln({},b.attrs,{key:S.key}))},12:{t:["<!--"],o:fa(yb),i:1,u:()=>({}),l:Rc},14:{t:["!["],o:Tr(Qz),i:1,u:b=>({alt:qt(b[1]),target:qt(b[2]),title:qt(b[3])}),l:(b,E,S)=>s("img",{key:S.key,alt:b.alt||void 0,title:b.title||void 0,src:n(b.target,"img","src")})},15:{t:["["],o:Zr(Zz),i:3,u:(b,E,S)=>({children:iK(E,b[1],S),target:qt(b[2]),title:qt(b[3])}),l:(b,E,S)=>s("a",{key:S.key,href:n(b.target,"a","href"),title:b.title},E(b.children,S))},16:{t:["<"],o:Zr(Cz),i:0,u(b){let E=b[1],S=!1;return E.indexOf("@")!==-1&&E.indexOf("//")===-1&&(S=!0,E=E.replace("mailto:","")),{children:[{text:E,type:"27"}],target:S?"mailto:"+E:E,type:"15"}}},17:{t:(b,E)=>!E.inAnchor&&!t.disableAutoLink&&(ka(b,"http://")||ka(b,"https://")),o:Zr(wz),i:0,u:b=>({children:[{text:b[1],type:"27"}],target:b[1],title:void 0,type:"15"})},20:vb(s,1),33:vb(s,2),19:{t:[`
718
+ `],o:hr(hz),i:3,u:Oc,l:()=>`
719
+ `},21:{o:ao(function(b,E){if(E.inline||E.simple||E.inHTML&&b.indexOf(`
720
+
721
+ `)===-1&&E.prevCapture.indexOf(`
722
+
723
+ `)===-1)return null;let S="",x=0;for(;;){let w=b.indexOf(`
724
+ `,x),C=b.slice(x,w===-1?void 0:w+1);if(l(i,C)||(S+=C,w===-1||!C.trim()))break;x=w+1}let A=Vo(S);return A===""?null:[S,,A]}),i:3,u:Ac,l:(b,E,S)=>s("p",{key:S.key},E(b.children,S))},22:{t:["["],o:Zr(Az),i:0,u:b=>(p[b[1]]={target:b[2],title:b[4]},{}),l:Rc},23:{t:["!["],o:Tr(Oz),i:0,u:b=>({alt:b[1]?qt(b[1]):void 0,ref:b[2]}),l:(b,E,S)=>p[b.ref]?s("img",{key:S.key,alt:b.alt,src:n(p[b.ref].target,"img","src"),title:p[b.ref].title}):null},24:{t:b=>b[0]==="["&&b.indexOf("](")===-1,o:Zr(Rz),i:0,u:(b,E,S)=>({children:E(b[1],S),fallbackChildren:b[0],ref:b[2]}),l:(b,E,S)=>p[b.ref]?s("a",{key:S.key,href:n(p[b.ref].target,"a","href"),title:p[b.ref].title},E(b.children,S)):s("span",{key:S.key},b.fallbackChildren)},25:{t:["|"],o:hr(bb),i:1,u:rK,l(b,E,S){let x=b;return s("table",{key:S.key},s("thead",null,s("tr",null,x.header.map(function(A,w){return s("th",{key:w,style:xb(x,w)},E(A,S))}))),s("tbody",null,x.cells.map(function(A,w){return s("tr",{key:w},A.map(function(C,R){return s("td",{key:R,style:xb(x,R)},E(C,S))}))})))}},27:{o:ao(function(b,E){let S;return ka(b,":")&&(S=Hz.exec(b)),S||Kz.exec(b)}),i:4,u(b){let E=b[0];return{text:E.indexOf("&")===-1?E:E.replace(Sz,(S,x)=>t.namedCodesToUnicode[x]||S)}},l:b=>b.text},28:{t:["**","__"],o:Tr(Nz),i:2,u:(b,E,S)=>({children:E(b[2],S)}),l:(b,E,S)=>s("strong",{key:S.key},E(b.children,S))},29:{t:b=>{let E=b[0];return(E==="*"||E==="_")&&b[1]!==E},o:Tr(Mz),i:3,u:(b,E,S)=>({children:E(b[2],S)}),l:(b,E,S)=>s("em",{key:S.key},E(b.children,S))},30:{t:["\\"],o:Tr(Uz),i:1,u:b=>({text:b[1],type:"27"})},31:{t:["=="],o:Tr(Bz),i:3,u:Ac,l:(b,E,S)=>s("mark",{key:S.key},E(b.children,S))},32:{t:["~~"],o:Tr(jz),i:3,u:Ac,l:(b,E,S)=>s("del",{key:S.key},E(b.children,S))}};t.disableParsingRawHTML===!0&&(delete g[11],delete g[13]);let m=(function(b){var E=Object.keys(b);function S(x,A){var w=[];if(A.prevCapture=A.prevCapture||"",x.trim())for(;x;)for(var C=0;C<E.length;){var R=E[C],L=b[R];if(!L.t||eK(x,A,L.t)){var I=L.o(x,A);if(I&&I[0]){x=x.substring(I[0].length);var T=L.u(I,S,A);A.prevCapture+=I[0],T.type||(T.type=R),w.push(T);break}C++}else C++}return A.prevCapture="",w}return E.sort(function(x,A){return b[x].i-b[A].i||(x<A?-1:1)}),function(x,A){return S((function(w){return w.replace(gz,`
725
+ `).replace(bz,"").replace(Pz," ")})(x),A)}})(g),y=(function(b,E){return function S(x,A={}){if(Array.isArray(x)){let w=A.key,C=[],R=!1;for(let L=0;L<x.length;L++){A.key=L;let I=S(x[L],A),T=Eb(I);T&&R?C[C.length-1]+=I:I!==null&&C.push(I),R=T}return A.key=w,C}return(function(w,C,R){let L=b[w.type].l;return E?E(()=>L(w,C,R),w,C,R):L(w,C,R)})(x,S,A)}})(g,t.renderRule),v=u(e);return d.length?s("div",null,v,s("footer",{key:"footer"},d.map(function(b){return s("div",{id:r(b.identifier,Lo),key:b.identifier},b.identifier,y(m(b.footnote,{inline:!0})))}))):v}var fC=e=>{let{children:t,options:r}=e,n=(function(o,i){if(o==null)return{};var a,l,s={},u=Object.keys(o);for(l=0;l<u.length;l++)i.indexOf(a=u[l])>=0||(s[a]=o[a]);return s})(e,oz);return f.cloneElement(sK(t??"",r),n)},uK=e=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},"@media (forced-colors: active)":{background:"ButtonFace",outline:"1px solid ButtonText"},"&:focus-within":{outline:`1px solid ${e.color.secondary}`,outlineOffset:1,"@media (forced-colors: active)":{outline:"1px solid Highlight",outlineOffset:1}},input:{...ni,appearance:"none",left:0,top:0,background:"transparent",cursor:"pointer",borderRadius:"3em"},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:Ie(.5,e.color.defaultText),background:"transparent","&:active":{boxShadow:`${Cc(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Cc(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8},"@media (forced-colors: active)":{color:"ButtonText",boxShadow:"none"}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Cc(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px","@media (forced-colors: active)":{forcedColorAdjust:"none",background:"Highlight",color:"HighlightText",boxShadow:"none",outline:"1px solid ButtonText"}}}),cK=F.label(({theme:e})=>uK(e)),dK=e=>e==="true",fK=({name:e,storyId:t,controlsId:r,value:n,onChange:o,onBlur:i,onFocus:a,argType:l,required:s})=>{let u=f.useCallback(()=>o(!1),[o]),c=!!l?.table?.readonly;if(n===void 0)return h.createElement(Se,{ariaLabel:!1,variant:"outline",size:"medium",id:Rl(e,t,r),onClick:u,disabled:c},"Set boolean");let d=Ut(e,t,r),p=typeof n=="string"?dK(n):n;return h.createElement(cK,{"aria-disabled":c,htmlFor:d,"aria-label":e},h.createElement("input",{id:d,type:"checkbox",onChange:g=>o(g.target.checked),checked:p,role:"switch",disabled:c,"aria-required":s||void 0,name:e,onBlur:i,onFocus:a}),h.createElement("span",{"aria-hidden":"true"},"False"),h.createElement("span",{"aria-hidden":"true"},"True"))},pK=e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},hK=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},gK=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},mK=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},$b=F(Tn.Input)(({theme:e})=>({"&[readonly]":{background:e.base==="light"?e.color.lighter:"transparent"},"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}})),yK=F.fieldset({flex:1,display:"flex",border:0,marginInline:0,padding:0,gap:10,"div:first-of-type":{flex:4},"div:last-of-type":{flex:3}}),bK=({name:e,storyId:t,controlsId:r,value:n,onChange:o,onFocus:i,onBlur:a,argType:l,required:s})=>{let[u,c]=f.useState(!0),d=f.useRef(),p=f.useRef(),g=!!l?.table?.readonly;f.useEffect(()=>{u!==!1&&(d&&d.current&&(d.current.value=n?gK(n):""),p&&p.current&&(p.current.value=n?mK(n):""))},[n]);let m=b=>{if(!b.target.value)return o();let E=pK(b.target.value),S=new Date(n??"");S.setFullYear(E.getFullYear(),E.getMonth(),E.getDate());let x=S.getTime();x&&o(x),c(!!x)},y=b=>{if(!b.target.value)return o();let E=hK(b.target.value),S=new Date(n??"");S.setHours(E.getHours()),S.setMinutes(E.getMinutes());let x=S.getTime();x&&o(x),c(!!x)},v=Ut(e,t,r);return h.createElement(yK,null,h.createElement("legend",{className:"sb-sr-only"},e),h.createElement("label",{htmlFor:`${v}-date`,className:"sb-sr-only"},"Date"),h.createElement($b,{type:"date",max:"9999-12-31",ref:d,id:`${v}-date`,name:`${v}-date`,readOnly:g,"aria-required":s||void 0,onChange:m,onFocus:i,onBlur:a}),h.createElement("label",{htmlFor:`${v}-time`,className:"sb-sr-only"},"Time"),h.createElement($b,{type:"time",id:`${v}-time`,name:`${v}-time`,ref:p,onChange:y,readOnly:g,"aria-required":s||void 0,onFocus:i,onBlur:a}),u?null:h.createElement("div",null,"invalid"))},vK=F.label({display:"flex"}),EK=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},SK=F(Tn.Input)(({theme:e})=>({background:e.base==="light"?e.color.lighter:"transparent"})),xK=({name:e,storyId:t,controlsId:r,value:n,onChange:o,min:i,max:a,step:l,onBlur:s,onFocus:u,argType:c,required:d})=>{let[p,g]=f.useState(typeof n=="number"?n:""),[m,y]=f.useState(!1),[v,b]=f.useState(null),E=!!c?.table?.readonly,S=f.useCallback(w=>{g(w.target.value);let C=parseFloat(w.target.value);if(Number.isNaN(C))b(new Error(`'${w.target.value}' is not a number`));else{let R=C;typeof i=="number"&&R<i&&(R=i),typeof a=="number"&&R>a&&(R=a),o(R),b(null),R!==C&&g(String(R))}},[o,b,i,a]),x=f.useCallback(()=>{g("0"),o(0),y(!0)},[y]),A=f.useRef(null);return f.useEffect(()=>{m&&A.current&&A.current.select()},[m]),f.useEffect(()=>{let w=typeof n=="number"?n:"";p!==w&&g(w)},[n]),n===void 0?h.createElement(Se,{ariaLabel:!1,variant:"outline",size:"medium",id:Rl(e,t,r),onClick:x,disabled:E},"Set number"):h.createElement(vK,null,h.createElement(SK,{ref:A,id:Ut(e,t,r),type:"number",onChange:S,size:"flex",placeholder:"Edit number...",value:p,valid:v?"error":void 0,autoFocus:m,"aria-required":d||void 0,readOnly:E,name:e,min:i,max:a,step:l,onFocus:u,onBlur:s}))};const{logger:$K}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var pC=(e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},lf=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],hC=(e,t)=>e&&t&&e.map(r=>t[r]),wK=F.fieldset({border:"none",marginInline:0,padding:0,display:"flex",alignItems:"flex-start"},({$isInline:e})=>e?{flexWrap:"wrap",gap:15,label:{display:"inline-flex"}}:{flexDirection:"column",gap:8,label:{display:"flex"}}),CK=F.span(({$readOnly:e})=>({opacity:e?.5:1})),_K=F.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),wb=({name:e,storyId:t,controlsId:r,options:n,value:o,onChange:i,isInline:a,argType:l,required:s})=>{if(!n)return $K.warn(`Checkbox with no options: ${e}`),h.createElement(h.Fragment,null,"-");let u=lf(o||[],n),[c,d]=f.useState(u),p=!!l?.table?.readonly,g=y=>{let v=y.target.value,b=[...c];b.includes(v)?b.splice(b.indexOf(v),1):b.push(v),i(hC(b,n)),d(b)};f.useEffect(()=>{d(lf(o||[],n))},[o]);let m=Ut(e,t,r);return h.createElement(wK,{$isInline:a},h.createElement("legend",{className:"sb-sr-only"},e,s?" (required)":""),Object.keys(n).map((y,v)=>{let b=`${m}-${v}`;return h.createElement(_K,{key:b,htmlFor:b,$readOnly:p},h.createElement("input",{type:"checkbox",disabled:p,id:b,name:b,value:y,onChange:g,checked:c?.includes(y)}),h.createElement(CK,{$readOnly:p},y))}))};const{logger:TK}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var AK=F.fieldset({border:"none",marginInline:0,padding:0,display:"flex",alignItems:"flex-start"},({isInline:e})=>e?{flexWrap:"wrap",gap:15,label:{display:"inline-flex"}}:{flexDirection:"column",gap:8,label:{display:"flex"}}),OK=F.span(({$readOnly:e})=>({opacity:e?.5:1})),RK=F.label(({$readOnly:e})=>({lineHeight:"20px",alignItems:"center",cursor:e?"not-allowed":"pointer",input:{cursor:e?"not-allowed":"pointer",margin:0,marginRight:6}})),Cb=({name:e,storyId:t,controlsId:r,options:n,value:o,onChange:i,isInline:a,argType:l,required:s})=>{if(!n)return TK.warn(`Radio with no options: ${e}`),h.createElement(h.Fragment,null,"-");let u=pC(o,n),c=Ut(e,t,r),d=!!l?.table?.readonly;return h.createElement(AK,{isInline:a},h.createElement("legend",{className:"sb-sr-only"},e,s?" (required)":""),Object.keys(n).map((p,g)=>{let m=`${c}-${g}`;return h.createElement(RK,{key:m,htmlFor:m,$readOnly:d},h.createElement("input",{type:"radio",id:m,name:c,disabled:d,value:p,onChange:y=>i(n[y.currentTarget.value]),checked:p===u}),h.createElement(OK,{$readOnly:d},p))}))};const{logger:DK}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var PK={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},gC=F.select(PK,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1,"&:hover":{background:e.background.hoverable},"&:checked":{background:"transparent",color:e.color.secondary,fontWeight:e.typography.weight.bold}}}})),mC=F.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),Pc="Choose option...",IK=({name:e,storyId:t,controlsId:r,value:n,options:o,onChange:i,argType:a,required:l})=>{let s=p=>{i(o[p.currentTarget.value])},u=pC(n,o)||Pc,c=Ut(e,t,r),d=!!a?.table?.readonly;return h.createElement(mC,null,h.createElement(eE,null),h.createElement("label",{htmlFor:c,className:"sb-sr-only"},e),h.createElement(gC,{disabled:d,id:c,value:u,onChange:s,"aria-required":l||void 0},h.createElement("option",{disabled:u===Pc,key:"no-selection"},Pc),Object.keys(o).map(p=>h.createElement("option",{key:p,value:p},p))))},FK=({name:e,storyId:t,controlsId:r,value:n,options:o,onChange:i,argType:a,required:l})=>{let s=p=>{let g=Array.from(p.currentTarget.options).filter(m=>m.selected).map(m=>m.value);i(hC(g,o))},u=lf(n,o),c=Ut(e,t,r),d=!!a?.table?.readonly;return h.createElement(mC,null,h.createElement("label",{htmlFor:c,className:"sb-sr-only"},e),h.createElement(gC,{disabled:d,id:c,multiple:!0,value:u,onChange:s,"aria-required":l||void 0},Object.keys(o).map(p=>h.createElement("option",{key:p,value:p},p))))},_b=e=>{let{name:t,options:r}=e;return r?e.isMulti?h.createElement(FK,{...e}):h.createElement(IK,{...e}):(DK.warn(`Select with no options: ${t}`),h.createElement(h.Fragment,null,"-"))},LK=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>{let o=t!=null&&!Array.isArray(t)&&typeof t[n]=="string"?t[n]:String(n);return r[o]=n,r},{}):e,kK={check:wb,"inline-check":wb,radio:Cb,"inline-radio":Cb,select:_b,"multi-select":_b},In=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?LK(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},i=kK[t];if(i)return h.createElement(i,{...o});throw new Error(`Unknown options type: ${t}`)},NK=F.div(({theme:e})=>({position:"relative",":hover":{"& > .rejt-accordion-button::after":{background:e.color.secondary},"& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)":{opacity:1}}})),MK=F.button(({theme:e})=>({padding:0,background:"transparent",border:"none",marginRight:"3px",lineHeight:"22px",color:e.color.secondary,"::after":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",height:"22px",background:"transparent",borderRadius:4,transition:"background 0.2s",opacity:.1,paddingRight:"20px"},"::before":{content:'""',position:"absolute"},'&[aria-expanded="true"]::before':{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},'&[aria-expanded="false"]::before':{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"}})),BK=F.div({display:"inline"});function yC({children:e,name:t,collapsed:r,keyPath:n,deep:o,...i}){let a=`${n.at(-1)??"root"}-${t}-${o}`,l={trigger:`${a}-trigger`,region:`${a}-region`},s=n.length>0?"li":"div";return h.createElement(NK,{as:s},h.createElement(MK,{type:"button","aria-expanded":!r,id:l.trigger,"aria-controls":l.region,className:"rejt-accordion-button",...i},t," :"),h.createElement(BK,{role:"group",id:l.region,"aria-labelledby":l.trigger,className:"rejt-accordion-region"},e))}var jK="Error",HK="Object",UK="Array",zK="String",KK="Number",GK="Boolean",WK="Date",VK="Null",qK="Undefined",YK="Function",XK="Symbol",bC="ADD_DELTA_TYPE",vC="REMOVE_DELTA_TYPE",EC="UPDATE_DELTA_TYPE",oh="value";function un(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function SC(e,t){let r=un(e),n=un(t);return(r==="Function"||n==="Function")&&n!==r}var ih=class extends f.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus()}onKeydown(e){if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat)return;let{inputRefKey:t,inputRefValue:r}=this.state,{addButtonElement:n,handleCancel:o}=this.props;[t,r,n].some(i=>i===e.target)&&((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),o()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:o}=this.props,{inputRefKey:i,inputRefValue:a}=this.state,l={};if(!t){if(!i.value)return;l.key=i.value}l.newValue=r(!1,n,o,l.key,a.value),e(l)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:i,deep:a}=this.props,l=r&&f.cloneElement(r,{onClick:this.onSubmit}),s=n&&f.cloneElement(n,{onClick:e}),u=o(oh,i,a),c=f.cloneElement(u,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown}),d=null;if(!t){let p=o("key",i,a);d=f.cloneElement(p,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return h.createElement("span",{className:"rejt-add-value-node"},d,c,l,s)}};ih.defaultProps={onlyValue:!1,addButtonElement:h.createElement("button",null,"+"),cancelButtonElement:h.createElement("button",null,"c")};var xC=class extends f.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={data:e.data,name:e.name,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,i=n.length;o(n[i-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:i}=this.state,a=n[e];(t||Promise.resolve.bind(Promise))(e,o,i,a).then(()=>{let l={keyPath:o,deep:i,key:e,oldValue:a,type:vC};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r=[],nextDeep:n}=this.state,{beforeAddAction:o,logger:i}=this.props,a=t.length;(o||Promise.resolve.bind(Promise))(a,r,n,e).then(()=>{t[a]=e,this.setState({data:t}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(r[r.length-1],t),s({type:bC,keyPath:r,deep:n,key:a,newValue:e})}).catch(i.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:i,keyPath:a,nextDeep:l}=this.state,s=i[e];(o||Promise.resolve.bind(Promise))(e,a,l,s,t).then(()=>{i[e]=t,this.setState({data:i});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(a[a.length-1],i),c({type:EC,keyPath:a,deep:l,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:i,dataType:a,minusMenuElement:l}=this.props,s=i(e,t,r,n,a),u=l&&f.cloneElement(l,{onClick:o,className:"rejt-minus-menu","aria-label":`remove the array '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-collapsed-value"},"[...] ",t.length," ",t.length===1?"item":"items"),!s&&u)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:i}=this.state,{isCollapsed:a,handleRemove:l,onDeltaUpdate:s,readOnly:u,dataType:c,addButtonElement:d,cancelButtonElement:p,inputElementGenerator:g,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:v,beforeRemoveAction:b,beforeAddAction:E,beforeUpdateAction:S,logger:x,onSubmitValueParser:A}=this.props,w=u(e,t,r,n,c),C=v&&f.cloneElement(v,{onClick:this.handleAddMode,className:"rejt-plus-menu","aria-label":`add a new item to the '${String(e)}' array`}),R=y&&f.cloneElement(y,{onClick:l,className:"rejt-minus-menu","aria-label":`remove the array '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-not-collapsed-delimiter"},"["),!o&&C,h.createElement("ul",{className:"rejt-not-collapsed-list"},t.map((L,I)=>h.createElement(gs,{key:I,name:I.toString(),data:L,keyPath:r,deep:i,isCollapsed:a,handleRemove:this.handleRemoveItem(I),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,addButtonElement:d,cancelButtonElement:p,inputElementGenerator:g,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:v,beforeRemoveAction:b,beforeAddAction:E,beforeUpdateAction:S,logger:x,onSubmitValueParser:A}))),!w&&o&&h.createElement("div",{className:"rejt-add-form"},h.createElement(ih,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:d,cancelButtonElement:p,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:A})),h.createElement("span",{className:"rejt-not-collapsed-delimiter"},"]"),!w&&R)}render(){let{name:e,collapsed:t,keyPath:r,deep:n}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return h.createElement(yC,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};xC.defaultProps={keyPath:[],deep:0,minusMenuElement:h.createElement("span",null," - "),plusMenuElement:h.createElement("span",null," + ")};var $C=class extends f.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:i}=this.state,{readOnly:a,dataType:l}=this.props,s=a(r,n,o,i,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:i,name:a,deep:l}=this.state;if(!i)return;let s=n(!0,o,l,a,i.value),u={value:s,key:a};(e||Promise.resolve.bind(Promise))(u).then(()=>{SC(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:i,originalValue:a,readOnly:l,dataType:s,textareaElementGenerator:u,minusMenuElement:c,keyPath:d=[]}=this.props,p=null,g=null,m=l(e,a,n,o,s);if(r&&!m){let y=u(oh,d,o,e,a,s),v=f.cloneElement(y,{ref:this.refInput,defaultValue:t,onKeyDown:this.onKeydown});p=h.createElement("span",{className:"rejt-edit-form"},v),g=null}else{p=h.createElement("span",{className:"rejt-value",onClick:m?void 0:this.handleEditMode},t);let y=d.at(-1),v=c&&f.cloneElement(c,{onClick:i,className:"rejt-minus-menu","aria-label":`remove the function '${String(e)}'${String(y)?` from '${String(y)}'`:""}`});g=m?null:v}return h.createElement("li",{className:"rejt-value-node"},h.createElement("span",{className:"rejt-name"},e," : "),p,g)}};$C.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},cancelButtonElement:h.createElement("button",null,"c"),minusMenuElement:h.createElement("span",null," - ")};var gs=class extends f.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath??[],deep:e.deep??0}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:i,handleUpdateValue:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:p,textareaElementGenerator:g,minusMenuElement:m,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:b,beforeUpdateAction:E,logger:S,onSubmitValueParser:x}=this.props,A=()=>!0,w=un(e);switch(w){case jK:return h.createElement(sf,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:i,onUpdate:l,onDeltaUpdate:s,readOnly:A,dataType:w,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:p,textareaElementGenerator:g,minusMenuElement:m,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:b,beforeUpdateAction:E,logger:S,onSubmitValueParser:x});case HK:return h.createElement(sf,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:w,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:p,textareaElementGenerator:g,minusMenuElement:m,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:b,beforeUpdateAction:E,logger:S,onSubmitValueParser:x});case UK:return h.createElement(xC,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:w,addButtonElement:c,cancelButtonElement:d,inputElementGenerator:p,textareaElementGenerator:g,minusMenuElement:m,plusMenuElement:y,beforeRemoveAction:v,beforeAddAction:b,beforeUpdateAction:E,logger:S,onSubmitValueParser:x});case zK:return h.createElement(Ar,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,cancelButtonElement:d,inputElementGenerator:p,minusMenuElement:m,logger:S,onSubmitValueParser:x});case KK:return h.createElement(Ar,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,cancelButtonElement:d,inputElementGenerator:p,minusMenuElement:m,logger:S,onSubmitValueParser:x});case GK:return h.createElement(Ar,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,cancelButtonElement:d,inputElementGenerator:p,minusMenuElement:m,logger:S,onSubmitValueParser:x});case WK:return h.createElement(Ar,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:A,dataType:w,cancelButtonElement:d,inputElementGenerator:p,minusMenuElement:m,logger:S,onSubmitValueParser:x});case VK:return h.createElement(Ar,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,cancelButtonElement:d,inputElementGenerator:p,minusMenuElement:m,logger:S,onSubmitValueParser:x});case qK:return h.createElement(Ar,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,cancelButtonElement:d,inputElementGenerator:p,minusMenuElement:m,logger:S,onSubmitValueParser:x});case YK:return h.createElement($C,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:u,dataType:w,cancelButtonElement:d,textareaElementGenerator:g,minusMenuElement:m,logger:S,onSubmitValueParser:x});case XK:return h.createElement(Ar,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:i,handleUpdateValue:a,readOnly:A,dataType:w,cancelButtonElement:d,inputElementGenerator:p,minusMenuElement:m,logger:S,onSubmitValueParser:x});default:return null}}};gs.defaultProps={keyPath:[],deep:0};var sf=class extends f.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath||[],e.name];this.state={name:e.name,data:e.data,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,i=n.length;o(n[i-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:o}=this.state,{beforeAddAction:i,logger:a}=this.props;(i||Promise.resolve.bind(Promise))(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:bC,keyPath:n,deep:o,key:e,newValue:t})}).catch(a.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o=[],nextDeep:i}=this.state,a=n[e];(t||Promise.resolve.bind(Promise))(e,o,i,a).then(()=>{let l={keyPath:o,deep:i,key:e,oldValue:a,type:vC};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:i,keyPath:a=[],nextDeep:l}=this.state,s=i[e];(o||Promise.resolve.bind(Promise))(e,a,l,s,t).then(()=>{i[e]=t,this.setState({data:i});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(a[a.length-1],i),c({type:EC,keyPath:a,deep:l,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:i,dataType:a,minusMenuElement:l}=this.props,s=Object.getOwnPropertyNames(n),u=i(e,n,t,r,a),c=l&&f.cloneElement(l,{onClick:o,className:"rejt-minus-menu","aria-label":`remove the object '${String(e)}'`});return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-collapsed-value"},"{...}"," ",s.length," ",s.length===1?"key":"keys"),!u&&c)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:i}=this.state,{isCollapsed:a,handleRemove:l,onDeltaUpdate:s,readOnly:u,dataType:c,addButtonElement:d,cancelButtonElement:p,inputElementGenerator:g,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:v,beforeRemoveAction:b,beforeAddAction:E,beforeUpdateAction:S,logger:x,onSubmitValueParser:A}=this.props,w=Object.getOwnPropertyNames(t),C=u(e,t,r,n,c),R=v&&f.cloneElement(v,{onClick:this.handleAddMode,className:"rejt-plus-menu","aria-label":`add a new property to the object '${String(e)}'`}),L=y&&f.cloneElement(y,{onClick:l,className:"rejt-minus-menu","aria-label":`remove the object '${String(e)}'`}),I=w.map(T=>h.createElement(gs,{key:T,name:T,data:t[T],keyPath:r,deep:o,isCollapsed:a,handleRemove:this.handleRemoveValue(T),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,addButtonElement:d,cancelButtonElement:p,inputElementGenerator:g,textareaElementGenerator:m,minusMenuElement:y,plusMenuElement:v,beforeRemoveAction:b,beforeAddAction:E,beforeUpdateAction:S,logger:x,onSubmitValueParser:A}));return h.createElement(h.Fragment,null,h.createElement("span",{className:"rejt-not-collapsed-delimiter"},"{"),!C&&R,h.createElement("ul",{className:"rejt-not-collapsed-list"},I),!C&&i&&h.createElement("div",{className:"rejt-add-form"},h.createElement(ih,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:d,cancelButtonElement:p,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:A})),h.createElement("span",{className:"rejt-not-collapsed-delimiter"},"}"),!C&&L)}render(){let{name:e,collapsed:t,keyPath:r,deep:n=0}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return h.createElement(yC,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};sf.defaultProps={keyPath:[],deep:0,minusMenuElement:h.createElement("span",null," - "),plusMenuElement:h.createElement("span",null," + ")};var Ar=class extends f.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:i}=this.state,{readOnly:a,dataType:l}=this.props,s=a(r,n,o,i,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:i,name:a,deep:l}=this.state;if(!i)return;let s=n(!0,o,l,a,i.value),u={value:s,key:a};(e||Promise.resolve.bind(Promise))(u).then(()=>{SC(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:i,originalValue:a,readOnly:l,dataType:s,inputElementGenerator:u,minusMenuElement:c,keyPath:d}=this.props,p=l(e,a,n,o,s),g=r&&!p,m=u(oh,d,o,e,a,s),y=f.cloneElement(m,{ref:this.refInput,defaultValue:JSON.stringify(a),onKeyDown:this.onKeydown}),v=n.at(-2),b=c&&f.cloneElement(c,{onClick:i,className:"rejt-minus-menu","aria-label":`remove the property '${String(e)}' with value '${String(a)}'${String(v)?` from '${String(v)}'`:""}`});return h.createElement("li",{className:"rejt-value-node"},h.createElement("span",{className:"rejt-name"},e," : "),g?h.createElement("span",{className:"rejt-edit-form"},y):h.createElement("span",{className:"rejt-value",onClick:p?void 0:this.handleEditMode},String(t)),!p&&!g&&b)}};Ar.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),cancelButtonElement:h.createElement("button",null,"c"),minusMenuElement:h.createElement("span",null," - ")};function JK(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var wC=class extends f.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate?.(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,addButtonElement:i,cancelButtonElement:a,inputElement:l,textareaElement:s,minusMenuElement:u,plusMenuElement:c,beforeRemoveAction:d,beforeAddAction:p,beforeUpdateAction:g,logger:m,onSubmitValueParser:y,fallback:v=null}=this.props,b=un(e),E=o;un(o)==="Boolean"&&(E=()=>o);let S=l;l&&un(l)!=="Function"&&(S=()=>l);let x=s;return s&&un(s)!=="Function"&&(x=()=>s),b==="Object"||b==="Array"?h.createElement("div",{className:"rejt-tree"},h.createElement(gs,{data:e,name:t||"root",deep:-1,isCollapsed:r??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:n??(()=>{}),readOnly:E,addButtonElement:i,cancelButtonElement:a,inputElementGenerator:S,textareaElementGenerator:x,minusMenuElement:u,plusMenuElement:c,handleRemove:this.removeRoot,beforeRemoveAction:d,beforeAddAction:p,beforeUpdateAction:g,logger:m??{},onSubmitValueParser:y??(A=>A)})):v}};wC.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,o)=>JK(o),inputElement:()=>h.createElement("input",null),textareaElement:()=>h.createElement("textarea",null),fallback:null};var{window:ZK}=globalThis,QK=F.div(({theme:e})=>({position:"relative",display:"flex",isolation:"isolate",gap:8,".rejt-tree":{flex:1,marginLeft:"1rem",fontSize:"13px",listStyleType:"none"},".rejt-value-node:hover":{"& > button":{opacity:1}},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{color:e.color.secondary,lineHeight:"22px"},".rejt-not-collapsed-list":{listStyle:"none",margin:"0 0 0 1rem",padding:0},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.base==="light"?e.color.lighter:"hsl(0 0 100 / 0.02)",borderColor:e.appBorderColor},".rejt-collapsed-value":{color:e.color.defaultText}})),Tb=F.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer"})),Ab=F.button(({theme:e})=>({background:"none",border:0,display:"inline-flex",verticalAlign:"middle",padding:3,marginLeft:5,color:e.textMutedColor,opacity:0,transition:"opacity 0.2s",cursor:"pointer",position:"relative",svg:{width:9,height:9},":disabled":{cursor:"not-allowed"},":hover, :focus-visible":{opacity:1},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"&.rejt-plus-menu":{color:e.color.ancillary},"&.rejt-minus-menu":{color:e.color.negative}}})),Ob=F.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),eG=F(Di)({alignSelf:"flex-start",order:2,marginRight:-10}),tG=F(Tn.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),rG={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},nG=e=>{e.currentTarget.dispatchEvent(new ZK.KeyboardEvent("keydown",rG))},oG=e=>{e.currentTarget.select()},Rb=({name:e,storyId:t,controlsId:r,value:n,onChange:o,argType:i,required:a})=>{let l=f.useMemo(()=>n&&rz(n),[n]),s=l!=null,[u,c]=f.useState(!s),d=f.useRef(s),[p,g]=f.useState(null),m=!!i?.table?.readonly,y=f.useCallback(R=>{try{R&&o(JSON.parse(R)),g(null)}catch(L){g(L)}},[o]),[v,b]=f.useState(!1),E=f.useCallback(()=>{o({}),b(!0)},[o,b]);f.useEffect(()=>{!d.current&&s&&u&&!v&&c(!1),d.current=s},[v,s,u]);let S=f.useRef(null);f.useEffect(()=>{v&&S.current&&S.current.select()},[v]);let x=f.useMemo(()=>JSON.stringify(l??"",null,2),[l]);if(!s)return h.createElement(Se,{ariaLabel:!1,disabled:m,id:Rl(e,t,r),onClick:E},"Set object");let A=Ut(e,t,r),w=h.createElement(h.Fragment,null,h.createElement("label",{htmlFor:A,className:"sb-sr-only"},"Edit ",e," as JSON"),h.createElement(tG,{ref:S,id:A,minRows:3,name:e,key:x,defaultValue:x,onBlur:R=>y(R.target.value),placeholder:"Edit JSON string...",autoFocus:v,valid:p?"error":void 0,readOnly:m,"aria-required":a||void 0})),C=Array.isArray(n)||typeof n=="object"&&n?.constructor===Object;return h.createElement(QK,null,C&&h.createElement(eG,{disabled:m,pressed:u,ariaLabel:`Edit ${e} as JSON`,onClick:R=>{R.preventDefault(),c(L=>!L)},variant:"ghost",padding:"small",size:"small"},h.createElement(z2,null)),u?w:h.createElement(wC,{readOnly:m||!C,isCollapsed:C?void 0:()=>!0,data:l,rootName:e,onFullyUpdate:o,cancelButtonElement:h.createElement(Tb,{type:"button"},"Cancel"),addButtonElement:h.createElement(Tb,{type:"submit",primary:!0},"Save"),plusMenuElement:h.createElement(Ab,{type:"button"},h.createElement(K2,null)),minusMenuElement:h.createElement(Ab,{type:"button"},h.createElement(G2,null)),inputElement:(R,L,I,T)=>T?h.createElement(Ob,{onFocus:oG,onBlur:nG}):h.createElement(Ob,null),fallback:w}))},iG=F.input(({theme:e,min:t,max:r,value:n,disabled:o})=>{let i={background:e.base==="light"?`linear-gradient(to right,
726
+ ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
727
+ ${Wo(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
728
+ ${Wo(.02,e.input.background)} 100%)`:`linear-gradient(to right,
729
+ ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
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}'
732
+ This is often caused by not wrapping the child in a template string.
733
+
734
+ This is invalid:
735
+ <Markdown>
736
+ # Some heading
737
+ A paragraph
738
+ </Markdown>
739
+
740
+ Instead do:
741
+ <Markdown>
742
+ {\`
743
+ # Some heading
744
+ A paragraph
745
+ \`}
746
+ </Markdown>
747
+ `);return h.createElement(fC,{...e,options:{forceBlock:!0,overrides:{code:MX,a:jX,...GX,...e?.options?.overrides},...e?.options}})},VX=tt("Markdown",WX),qX=(e,t,r)=>{switch(e.type){case"story":{let n=e.story.parameters.docs?.description?.story;return n!==void 0?n:r??null}case"meta":{let{parameters:n,component:o}=e.preparedMeta;return n.docs?.description?.component||n.docs?.extractComponentDescription?.(o,{component:o,parameters:n})||t||null}case"component":{let{component:n,projectAnnotations:{parameters:o}}=e;return o?.docs?.extractComponentDescription?.(n,{component:n,parameters:o})||t||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},Eh=({resolvedOf:e,serviceComponentDescription:t,lang:r,storyDocsDescription:n})=>{let o=qX(e,t,n);return o?h.createElement(VX,{lang:r},o):null},YX=({resolvedOf:e})=>{let t=hX(e.story.id).data?.description,r=e.story.parameters.docs?.lang||"en";return h.createElement(Eh,{resolvedOf:e,storyDocsDescription:t,lang:r})},XX=({resolvedOf:e,componentId:t})=>{let r=HC(t).data?.description||void 0,n=e.type==="meta"?e.preparedMeta.parameters.docs?.lang||"en":e.projectAnnotations.parameters?.docs?.lang||"en";return h.createElement(Eh,{resolvedOf:e,serviceComponentDescription:r,lang:n})},JX=e=>{let{of:t}=e,r=f.useContext(et);if("of"in e&&t===void 0)throw new kX;let n=On(t||"meta");if(globalThis.FEATURES?.experimentalDocgenServer){if(n.type==="story")return h.createElement(YX,{resolvedOf:n});let i=n.type==="meta"?n.preparedMeta.componentId:r.getComponentId(n.component);if(i)return h.createElement(XX,{resolvedOf:n,componentId:i})}let o=(n.type==="story"?n.story.parameters:n.type==="meta"?n.preparedMeta.parameters:n.projectAnnotations.parameters)?.docs?.lang||"en";return h.createElement(Eh,{resolvedOf:n,lang:o})},pf=tt("Description",JX),ZX=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,QX=Object.hasOwnProperty,b_=class{constructor(){this.occurrences,this.reset()}slug(e,t){let r=this,n=eJ(e,t===!0),o=n;for(;QX.call(r.occurrences,n);)r.occurrences[o]++,n=o+"-"+r.occurrences[o];return r.occurrences[n]=0,n}reset(){this.occurrences=Object.create(null)}};function eJ(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(ZX,"").replace(/ /g,"-"))}var tJ=()=>new b_,Sh=f.createContext(null),{document:rJ,window:nJ}=globalThis,oJ=({context:e,theme:t,children:r})=>{let n=f.useMemo(()=>tJ(),[]),o,i;try{let a=e.resolveOf("meta",["meta"]).preparedMeta.parameters;o=a?.docs?.toc,i=a?.docs?.lang||"en"}catch{o=e?.projectAnnotations?.parameters?.docs?.toc,i=e?.projectAnnotations?.parameters?.docs?.lang||"en"}return f.useEffect(()=>{let a;try{if(a=new URL(nJ.parent.location.toString()),a.hash){let l=rJ.getElementById(decodeURIComponent(a.hash.substring(1)));l&&setTimeout(()=>{_V(l)},200)}}catch{}}),h.createElement(Sh.Provider,{value:n},h.createElement(et.Provider,{value:e},h.createElement(fX,{channel:e.channel},h.createElement(zf,{theme:Iv(t)},h.createElement(fW,{lang:i,toc:o?h.createElement(EV,{className:"sbdocs sbdocs-toc--custom",channel:e.channel,...o}):null},r)))))},v_=new b_,iJ=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return h.createElement($p,null,e);let n=(h.useContext(Sh)??v_).slug(e.toLowerCase());return h.createElement(vh,{as:"h2",id:n,...r},e)},aJ=tt("Heading",iJ),lJ=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return h.createElement(wp,null,e);let r=(h.useContext(Sh)??v_).slug(e.toLowerCase());return h.createElement(vh,{as:"h3",id:r},e)},sJ=tt("Subheading",lJ),uJ=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:o=!1})=>{let{story:i}=On(e||"story",["story"]),a=i.parameters.docs?.canvas?.withToolbar??r;return h.createElement(BC,{storyId:o?`primary--${i.id}`:i.id},t&&h.createElement(h.Fragment,null,h.createElement(sJ,null,i.name),h.createElement(pf,{of:e})),h.createElement(CX,{of:e,withToolbar:a,story:{__forceInitialArgs:n,__primary:o},source:{__forceInitialArgs:n}}))},E_=tt("DocsStory",uJ),cJ=()=>{let e=f_();return e?h.createElement(E_,{of:e.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},dJ=tt("Primary",cJ);const{Tag:qb}=__STORYBOOK_MODULE_PREVIEW_API__;var fJ=F(aJ)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),pJ=({title:e="Stories",includePrimary:t=!0})=>{let{componentStories:r,projectAnnotations:n,getStoryContext:o}=f.useContext(et),i=r(),a=n.parameters?.docs?.stories?.filter;return a&&(i=i.filter(l=>a(l,o(l)))),i.some(l=>l.tags?.includes(qb.AUTODOCS))&&(i=i.filter(l=>l.tags?.includes(qb.AUTODOCS)&&!l.usesMount)),t||(i=i.slice(1)),!i||i.length===0?null:h.createElement(h.Fragment,null,typeof e=="string"?h.createElement(fJ,null,e):e,i.map(l=>l&&h.createElement(E_,{key:l.id,of:l.moduleExport,expanded:!0,__forceInitialArgs:!0})))},hJ=tt("Stories",pJ);const{deprecate:gJ}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{InvalidBlockOfPropError:mJ}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var yJ="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",bJ=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new mJ;let n;try{n=On(t||"meta",["meta"]).preparedMeta}catch(l){if(r&&!l.message.includes("did you forget to use <Meta of={} />?"))throw l}let{componentSubtitle:o,docs:i}=n?.parameters||{};o&&gJ(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${yJ}`);let a=r||i?.subtitle||o;return a?h.createElement(uW,{className:"sbdocs-subtitle sb-unstyled"},a):null},vJ=tt("Subtitle",bJ);const{InvalidBlockOfPropError:EJ}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var SJ=/\s*\/\s*/,xJ=e=>{let t=e.trim().split(SJ);return t?.[t?.length-1]||e},$J=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new EJ;let n;try{n=On(r||"meta",["meta"]).preparedMeta}catch(i){if(t&&i instanceof Error&&!i.message.includes("did you forget to use <Meta of={} />?"))throw i}let o=t||xJ(n?.title||"");return o?h.createElement(sW,{className:"sbdocs-title sb-unstyled"},o):null},wJ=tt("Title",$J),CJ=()=>{let e=On("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return h.createElement(h.Fragment,null,h.createElement(wJ,null),h.createElement(vJ,null),h.createElement(pf,{of:"meta"}),r?h.createElement(pf,{of:"story"}):null,h.createElement(dJ,null),h.createElement(LX,null),r?null:h.createElement(hJ,null))};function oZ({context:e,docsParameter:t}){let r=t.container||oJ,n=t.page||CJ;return h.createElement(r,{context:e,theme:t.theme},h.createElement(n,null))}const{deprecate:iZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{composeConfigs:aZ}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:lZ}=__STORYBOOK_MODULE_CHANNELS__,{Preview:sZ,composeConfigs:uZ}=__STORYBOOK_MODULE_PREVIEW_API__,{DocsContext:cZ}=__STORYBOOK_MODULE_PREVIEW_API__,{deprecate:dZ}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var fZ=({of:e})=>{let t=f.useContext(et);e&&t.referenceMeta(e,!0);try{let r=t.storyById();return h.createElement(BC,{storyId:r.id})}catch{return null}},_J=e=>h.createElement("div",{...e,className:"sb-unstyled"});tt("Unstyled",_J);var TJ=({children:e})=>h.createElement("div",{style:{fontFamily:"sans-serif"}},e);tt("Wrapper",TJ);export{r2 as A,Se as B,LX as C,oZ as D,Tn as F,GX as H,fZ as M,Zp as P,h as R,jW as S,Ge as _,pm as a,Sn as b,Fv as c,N2 as d,vi as e,k2 as f,Ut as g,qf as h,GJ as i,le as j,Ff as k,Lf as l,e2 as m,jX as n,MX as o,f as r,F as s,uv as u};