@zaip-ai/cli 3.4.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/services/adapters.d.ts +1 -1
  2. package/dist/services/adapters.js +1 -1
  3. package/dist/services/stack-install.d.ts.map +1 -1
  4. package/dist/services/stack-install.js +19 -9
  5. package/dist/services/stack-install.js.map +1 -1
  6. package/dist/services/stack-node.d.ts.map +1 -1
  7. package/dist/services/stack-node.js +1 -1
  8. package/dist/services/stack-node.js.map +1 -1
  9. package/package.json +1 -1
  10. package/templates/.agents/config/agents/discovery.json +1 -1
  11. package/templates/.agents/dashboard/.zaip-managed.json +95 -51
  12. package/templates/.agents/dashboard/apps/frontend/dist/assets/DashboardHelpDialog-BDQR0U4a.js +2938 -0
  13. package/templates/.agents/dashboard/apps/frontend/dist/assets/DashboardHelpDialog-DRI_XwUf.css +1 -0
  14. package/templates/.agents/dashboard/apps/frontend/dist/assets/{ProjectSettingsPage-B9GWkEyN.css → ProjectSettingsPage-CQMhvzvJ.css} +1 -1
  15. package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-D46WWIKr.js +3 -0
  16. package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-OulA4CoX.js +3 -0
  17. package/templates/.agents/dashboard/apps/frontend/dist/assets/{TraceabilityWorkspace-CqK3Psfy.js → TraceabilityWorkspace-BKBpJyLh.js} +1 -1
  18. package/templates/.agents/dashboard/apps/frontend/dist/assets/TraceabilityWorkspace-Ckxk_izu.js +1 -0
  19. package/templates/.agents/dashboard/apps/frontend/dist/assets/{index-Cl5EWx8R.js → index-Bas2TVju.js} +2 -2
  20. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-CqfSgtk9.js +2 -0
  21. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-CxrG_wRI.css +1 -0
  22. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-OBJXZOwe.css +1 -0
  23. package/templates/.agents/dashboard/apps/frontend/dist/index.html +2 -2
  24. package/templates/.agents/dashboard/apps/frontend/package.json +1 -1
  25. package/templates/.agents/dashboard/apps/frontend/src/AppDashboardContent.tsx +0 -2
  26. package/templates/.agents/dashboard/apps/frontend/src/DashboardGlobalSettings.tsx +7 -0
  27. package/templates/.agents/dashboard/apps/frontend/src/ProjectSettingsCard.tsx +18 -0
  28. package/templates/.agents/dashboard/apps/frontend/src/ProjectSettingsField.tsx +21 -0
  29. package/templates/.agents/dashboard/apps/frontend/src/ProjectSettingsPage.dom.test.ts +12 -1
  30. package/templates/.agents/dashboard/apps/frontend/src/ProjectSettingsPage.tsx +16 -28
  31. package/templates/.agents/dashboard/apps/frontend/src/ProjectStackEditor.tsx +25 -4
  32. package/templates/.agents/dashboard/apps/frontend/src/WorkspaceStatus.test.tsx +26 -8
  33. package/templates/.agents/dashboard/apps/frontend/src/WorkspaceStatus.tsx +9 -28
  34. package/templates/.agents/dashboard/apps/frontend/src/cost-calculation-guide.css +1 -1
  35. package/templates/.agents/dashboard/apps/frontend/src/dashboard-help-dialog.css +2 -2
  36. package/templates/.agents/dashboard/apps/frontend/src/operations-entity-page-projection.ts +4 -1
  37. package/templates/.agents/dashboard/apps/frontend/src/operations-period-contract.test.ts +20 -9
  38. package/templates/.agents/dashboard/apps/frontend/src/pricing-settings-dialog.css +5 -5
  39. package/templates/.agents/dashboard/apps/frontend/src/project-settings-copy.ts +13 -4
  40. package/templates/.agents/dashboard/apps/frontend/src/project-settings-model.ts +25 -1
  41. package/templates/.agents/dashboard/apps/frontend/src/project-settings-workspace.css +28 -0
  42. package/templates/.agents/dashboard/apps/frontend/src/project-settings.test.ts +39 -0
  43. package/templates/.agents/dashboard/apps/frontend/src/use-app-work-board.test.ts +1 -1
  44. package/templates/.agents/dashboard/apps/frontend/src/workspace-status.css +1 -14
  45. package/templates/.agents/dashboard/modules/cost-monitor/package.json +1 -1
  46. package/templates/.agents/dashboard/modules/operations/package.json +1 -1
  47. package/templates/.agents/dashboard/modules/operations/src/react/OperationsEntityFilters.tsx +1 -1
  48. package/templates/.agents/dashboard/modules/operations/src/react/PagedWorkList.tsx +2 -2
  49. package/templates/.agents/dashboard/modules/traceability/package.json +1 -1
  50. package/templates/.agents/dashboard/packages/branding/package.json +1 -1
  51. package/templates/.agents/dashboard/packages/contracts/package.json +1 -1
  52. package/templates/.agents/dashboard/packages/data-export/package.json +1 -1
  53. package/templates/.agents/dashboard/packages/local-runtime/dist/server.cjs +2 -2
  54. package/templates/.agents/dashboard/packages/local-runtime/dist/sqlite-read-model.cjs +73 -73
  55. package/templates/.agents/dashboard/packages/local-runtime/package.json +1 -1
  56. package/templates/.agents/dashboard/packages/local-runtime/scripts/validate-sqlite-read-model.mjs +38 -6
  57. package/templates/.agents/dashboard/packages/local-runtime/server.mjs +2 -2
  58. package/templates/.agents/dashboard/packages/local-runtime/src/project-settings.test.ts +3 -4
  59. package/templates/.agents/dashboard/packages/local-runtime/src/project-settings.ts +1 -1
  60. package/templates/.agents/dashboard/packages/local-runtime/src/server-snapshot-refresh.test.ts +2 -2
  61. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-filter-matrix.test.ts +1 -1
  62. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-pricing-provenance.test.ts +75 -0
  63. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-canonical.ts +2 -2
  64. package/templates/.agents/dashboard/packages/ui/package.json +1 -1
  65. package/templates/.agents/dashboard/tests/e2e/package.json +1 -1
  66. package/templates/.agents/dashboard/tests/e2e/specs/dashboard.spec.ts +4 -6
  67. package/templates/.agents/dashboard/tests/e2e/specs/work-board-hydration.ts +38 -0
  68. package/templates/.agents/design/.zaip-managed.json +83 -51
  69. package/templates/.agents/design/apps/catalog/dist/assets/index-Cv4VfxTQ.js +72 -0
  70. package/templates/.agents/design/apps/catalog/dist/assets/index-D1JaPXfV.css +1 -0
  71. package/templates/.agents/design/apps/catalog/dist/assets/index-D2miO4-O.js +72 -0
  72. package/templates/.agents/design/apps/catalog/dist/assets/index-mvD5mwcC.js +72 -0
  73. package/templates/.agents/design/apps/catalog/dist/index.html +2 -2
  74. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{CatalogShell-CvaciY0C.js → CatalogShell-BJ8b4xZr.js} +1 -1
  75. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{Color-6AOWCN3U-DwBV1A1Y.js → Color-6AOWCN3U-CQLHzznn.js} +1 -1
  76. package/templates/.agents/design/apps/catalog/dist/storybook/assets/Components.stories-kxWwSKin.js +146 -0
  77. package/templates/.agents/design/apps/catalog/dist/storybook/assets/DashboardFilters.stories-Chm_dXV7.js +9 -0
  78. package/templates/.agents/design/apps/catalog/dist/storybook/assets/DashboardFiltersSpecimen-9CaCbGIZ.js +1 -0
  79. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{DesignSystem.stories-2OCgtT0I.js → DesignSystem.stories-ED52wFjY.js} +1 -1
  80. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{DocsRenderer-JROSPFPF-CODg0rSl.js → DocsRenderer-JROSPFPF-BcLgM80v.js} +4 -4
  81. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{Primitives-BmeKjJW4.js → Primitives-DV6Bpudf.js} +1 -1
  82. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{WithTooltip-7X4HQR7L-C5MI-3uZ.js → WithTooltip-7X4HQR7L-BKNiAz_E.js} +1 -1
  83. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{WorkspaceStatus.stories-Tb_iQqVK.js → WorkspaceStatus.stories-BL19HGOo.js} +2 -2
  84. package/templates/.agents/design/apps/catalog/dist/storybook/assets/WorkspaceStatusSpecimen-DQnSS6s9.js +1 -0
  85. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{chunk-DRQKCCAG-KSn75jcy.js → chunk-DRQKCCAG-DZBcXL-p.js} +1 -1
  86. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{chunk-W22LQPXL-C4LS1Thf.js → chunk-W22LQPXL-CF3y2mfo.js} +1 -1
  87. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{components-DV1BRgMY.js → components-BVjxMRGq.js} +5 -5
  88. package/templates/.agents/design/apps/catalog/dist/storybook/assets/formatter-L2YTDE3Q-Do9sjqiW.js +1 -0
  89. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{iframe-CBbPFx5G.js → iframe-CTWGZcEe.js} +4 -4
  90. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{react-18-C9IPGXtb.js → react-18-B9_a4mHb.js} +1 -1
  91. package/templates/.agents/design/apps/catalog/dist/storybook/assets/react-NrUxok8K.js +1 -0
  92. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{syntaxhighlighter-YFXUGROL-ZgDQjyWI.js → syntaxhighlighter-YFXUGROL-F_p8E2xc.js} +1 -1
  93. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{theming-Cx9-gH6l.js → theming-fbSD9ZLF.js} +1 -1
  94. package/templates/.agents/design/apps/catalog/dist/storybook/iframe.html +1 -1
  95. package/templates/.agents/design/apps/catalog/dist/storybook/index.json +1 -1
  96. package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/a11y-2/manager-bundle.js +3 -3
  97. package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/docs-1/manager-bundle.js +4 -4
  98. package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +60 -60
  99. package/templates/.agents/design/apps/catalog/package.json +1 -1
  100. package/templates/.agents/design/apps/catalog/src/components/DashboardFiltersSpecimen.tsx +26 -21
  101. package/templates/.agents/design/apps/catalog/src/components/StackVersionFieldSpecimen.tsx +66 -0
  102. package/templates/.agents/design/apps/catalog/src/components/WorkspaceStatusSpecimen.tsx +23 -7
  103. package/templates/.agents/design/apps/catalog/src/pages/ComponentsPage.tsx +20 -6
  104. package/templates/.agents/design/apps/catalog/src/stories/Components.stories.tsx +14 -0
  105. package/templates/.agents/design/apps/catalog/src/stories/WorkspaceStatus.stories.tsx +5 -2
  106. package/templates/.agents/design/apps/catalog/src/styles/components.css +1 -1
  107. package/templates/.agents/design/apps/catalog/src/styles/stack-version-field.css +79 -0
  108. package/templates/.agents/design/packages/local-runtime/package.json +1 -1
  109. package/templates/.agents/requirements/autonomous-assurance.md +1 -1
  110. package/templates/.agents/requirements/cloud-hostinger-autonomy.md +1 -1
  111. package/templates/.agents/requirements/comparative-audit.md +1 -1
  112. package/templates/.agents/requirements/context-engine.md +1 -1
  113. package/templates/.agents/requirements/cost-observability.md +1 -1
  114. package/templates/.agents/requirements/dashboard-launch.md +1 -1
  115. package/templates/.agents/requirements/data-export.md +1 -1
  116. package/templates/.agents/requirements/design-system.md +1 -1
  117. package/templates/.agents/requirements/execution-engine.md +1 -1
  118. package/templates/.agents/requirements/kanban-dashboard.md +1 -1
  119. package/templates/.agents/requirements/model-orchestration.md +1 -1
  120. package/templates/.agents/requirements/public-distribution.md +1 -1
  121. package/templates/.agents/requirements/software-architecture.md +1 -1
  122. package/templates/.agents/requirements/strategic-improvements.md +1 -1
  123. package/templates/.agents/requirements/work-lifecycle.md +1 -1
  124. package/templates/.agents/requirements/zaip-strategic-95.md +1 -1
  125. package/templates/.agents/rules/workflow.md +1 -1
  126. package/templates/.agents/runtime/VERSION +1 -1
  127. package/templates/.agents/runtime/bin/zaip.mjs +46 -15
  128. package/templates/.agents/runtime/checksums.sha256 +5 -5
  129. package/templates/.agents/runtime/manifest.json +1 -1
  130. package/templates/.agents/runtime/provenance.json +4 -4
  131. package/templates/.agents/runtime/sbom.cdx.json +1 -1
  132. package/templates/.agents/skills/zaip-skill-execution/SKILL.md +1 -0
  133. package/templates/.agents/skills/zaip-skill-github-deploy/SKILL.md +5 -4
  134. package/templates/.agents/skills/zaip-skill-github-deploy/agents/openai.yaml +1 -1
  135. package/templates/.agents/skills/zaip-skill-github-deploy/references/deployment-workflow.md +7 -7
  136. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/consumer-release-preparation.mjs +1 -2
  137. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/consumer-release-preparation.test.mjs +9 -1
  138. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/github-deploy-contract.test.mjs +25 -0
  139. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/preflight.mjs +2 -6
  140. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/preflight.test.mjs +15 -1
  141. package/templates/.agents/zaip-aios/VERSION +1 -1
  142. package/templates/template-manifest.json +216 -140
  143. package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-DVCPPV75.js +0 -3
  144. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-Cwylbh_N.css +0 -1
  145. package/templates/.agents/design/apps/catalog/dist/storybook/assets/Components.stories-3dqK5g3e.js +0 -142
  146. package/templates/.agents/design/apps/catalog/dist/storybook/assets/WorkspaceStatusSpecimen-CD54pw0-.js +0 -1
  147. package/templates/.agents/design/apps/catalog/dist/storybook/assets/formatter-L2YTDE3Q-BU_68im1.js +0 -1
  148. package/templates/.agents/design/apps/catalog/dist/storybook/assets/react-CEv2qkJT.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./theming-Cx9-gH6l.js","./preload-helper-BdFrVu1K.js","./iframe-CBbPFx5G.js","./iframe-0W0Gj_Gs.css","./chunk-DRQKCCAG-KSn75jcy.js","./syntaxhighlighter-YFXUGROL-ZgDQjyWI.js","./chunk-W22LQPXL-C4LS1Thf.js","./jsx-runtime-f3rHp9ZU.js","./react-18-C9IPGXtb.js","./chunk-242VQQM5-DB2JSNUA.js","./formatter-L2YTDE3Q-BU_68im1.js","./WithTooltip-7X4HQR7L-C5MI-3uZ.js"])))=>i.map(i=>d[i]);
2
- import{a as e,i as t,n,r,s as i,t as a}from"./preload-helper-BdFrVu1K.js";import{C as o,D as s,E as c,S as l,T as u,_ as d,b as f,c as p,d as m,f as h,g,l as _,v,w as y,x as b,y as x}from"./iframe-CBbPFx5G.js";import{t as S}from"./jsx-runtime-f3rHp9ZU.js";import{a as C,n as w,o as T,r as E}from"./chunk-W22LQPXL-C4LS1Thf.js";import{C as D,S as O,T as k,a as ee,b as A,f as j,g as te,h as ne,i as re,m as ie,o as ae,p as oe,s as se,u as M,v as ce,w as le,x as ue,y as de}from"./theming-Cx9-gH6l.js";import{n as fe,t as pe}from"./chunk-DRQKCCAG-KSn75jcy.js";import{a as me}from"./react-18-C9IPGXtb.js";import{n as he,t as ge}from"./chunk-242VQQM5-DB2JSNUA.js";function _e(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}var ve=t((()=>{})),N,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue=t((()=>{N=i(s(),1),ye=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}),N.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}))),be=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z`,fill:e}),N.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}))),xe=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Se=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Ce=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}),N.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}))),we=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Te=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Ee=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),De=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Oe=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}),N.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}))),ke=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z`,fill:e}),N.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}))),Ae=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}),N.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}))),je=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Me=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}),N.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}))),Ne=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}),N.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}))),Pe=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Fe=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Ie=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Le=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Re=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),ze=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Be=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Ve=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),He=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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})))}));function We({code:e,category:t}){return`SB_${t}_${String(e).padStart(4,`0`)}`}function Ge(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 Ke,qe=t((()=>{Ke=class e extends Error{constructor(t){super(e.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 We({code:this.code,category:this.category})}get name(){let e=this._name||this.constructor.name;return`${this.fullErrorCode} (${e})`}set name(e){this._name=e}static getFullMessage({documentation:e,code:t,category:n,message:r}){let i;return e===!0?i=`https://storybook.js.org/error/${We({code:t,category:n})}?ref=error`:typeof e==`string`?i=Ge(e):Array.isArray(e)&&(i=`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./theming-fbSD9ZLF.js","./preload-helper-BdFrVu1K.js","./iframe-CTWGZcEe.js","./iframe-0W0Gj_Gs.css","./chunk-DRQKCCAG-DZBcXL-p.js","./syntaxhighlighter-YFXUGROL-F_p8E2xc.js","./chunk-W22LQPXL-CF3y2mfo.js","./jsx-runtime-f3rHp9ZU.js","./react-18-B9_a4mHb.js","./chunk-242VQQM5-DB2JSNUA.js","./formatter-L2YTDE3Q-Do9sjqiW.js","./WithTooltip-7X4HQR7L-BKNiAz_E.js"])))=>i.map(i=>d[i]);
2
+ import{a as e,i as t,n,r,s as i,t as a}from"./preload-helper-BdFrVu1K.js";import{C as o,D as s,E as c,S as l,T as u,_ as d,b as f,c as p,d as m,f as h,g,l as _,v,w as y,x as b,y as x}from"./iframe-CTWGZcEe.js";import{t as S}from"./jsx-runtime-f3rHp9ZU.js";import{a as C,n as w,o as T,r as E}from"./chunk-W22LQPXL-CF3y2mfo.js";import{C as D,S as O,T as k,a as ee,b as A,f as j,g as te,h as ne,i as re,m as ie,o as ae,p as oe,s as se,u as M,v as ce,w as le,x as ue,y as de}from"./theming-fbSD9ZLF.js";import{n as fe,t as pe}from"./chunk-DRQKCCAG-DZBcXL-p.js";import{a as me}from"./react-18-B9_a4mHb.js";import{n as he,t as ge}from"./chunk-242VQQM5-DB2JSNUA.js";function _e(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}var ve=t((()=>{})),N,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue=t((()=>{N=i(s(),1),ye=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}),N.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}))),be=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z`,fill:e}),N.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}))),xe=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Se=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Ce=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}),N.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}))),we=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Te=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Ee=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),De=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Oe=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}),N.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}))),ke=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.createElement(`path`,{d:`M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z`,fill:e}),N.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}))),Ae=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}),N.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}))),je=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Me=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}),N.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}))),Ne=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}),N.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}))),Pe=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Fe=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Ie=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Le=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Re=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),ze=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Be=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),Ve=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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}))),He=N.forwardRef(({color:e=`currentColor`,size:t=14,...n},r)=>N.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:r,...n},N.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})))}));function We({code:e,category:t}){return`SB_${t}_${String(e).padStart(4,`0`)}`}function Ge(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 Ke,qe=t((()=>{Ke=class e extends Error{constructor(t){super(e.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 We({code:this.code,category:this.category})}get name(){let e=this._name||this.constructor.name;return`${this.fullErrorCode} (${e})`}set name(e){this._name=e}static getFullMessage({documentation:e,code:t,category:n,message:r}){let i;return e===!0?i=`https://storybook.js.org/error/${We({code:t,category:n})}?ref=error`:typeof e==`string`?i=Ge(e):Array.isArray(e)&&(i=`
3
3
  ${e.map(e=>` - ${Ge(e)}`).join(`
4
4
  `)}`),`${r}${i==null?``:`
5
5
 
@@ -184,7 +184,7 @@ Inner error message: ${r?.message}`))}}var rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,h
184
184
  it's possible a CORS error happened.
185
185
 
186
186
  Please check your dev-tools network tab.
187
- `});let m=e.versions&&Object.keys(e.versions).length?e.versions:s.versions;await a.setRef(t,{id:t,url:u.url,...s,...m?{versions:m}:{},type:s.storyIndex?`lazy`:`auto-inject`})},getRefs:()=>{let{refs:t={}}=e.getState();return t},setRef:async(i,{storyIndex:o,setStoriesData:s,...c},l=!1)=>{if(n)return;let u,d,f,{filters:p}=e.getState(),{storyMapper:m=ny}=t.getConfig(),h=a.getRefs()[i];(o||s)&&(u=s?Gv(oy(s,h,{storyMapper:m})):o,f=Yv(o,{provider:t,docsOptions:r,filters:p,allStatuses:{}}),d=Yv(o,{provider:t,docsOptions:r,filters:{},allStatuses:{}})),d&&=(d=ry(d,h),iy(d,h?.storyUpdates)),f&&=(f=ry(f,h),iy(f,h?.storyUpdates)),await a.updateRef(i,{...h,...c,index:d,filteredIndex:f,internal_index:u})},updateRef:async(t,n)=>{let{[t]:r,...i}=a.getRefs();i[t]={...r,...n};let o=Object.keys(s).reduce((e,t)=>(e[t]=i[t],e),{});await e.setState({refs:o})}},o=!n&&Bv.REFS||{},s=o;return i&&new Promise(async e=>{for(let e of Object.values(o))await a.checkRef({...e,stories:{}});e(void 0)}),{api:a,state:{refs:s}}},cy=(e,t)=>{let{source:n,refId:r,type:i}=e,[a,o]=ty(n,r),s;(r||a===`external`)&&(s=r&&t.getRefs()[r]?t.getRefs()[r]:t.findRef(o));let c={source:n,sourceType:a,sourceLocation:o,refId:r,ref:s,type:i};switch(!0){case typeof r==`string`:case a===`local`:case a===`external`:return c;default:return Rv.warn(`Received a ${i} frame that was not configured as a ref`),null}},ly=({store:e,fullAPI:t,provider:n})=>{let r={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(e){n.channel?.emit(Lv,{globals:e,options:{target:`storybook-preview-iframe`}})}},i={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},a=({globals:t,storyGlobals:n,userGlobals:r})=>{let{globals:i,userGlobals:a,storyGlobals:o}=e.getState();Ro(t,i)||e.setState({globals:t}),Ro(r,a)||e.setState({userGlobals:r}),Ro(n,o)||e.setState({storyGlobals:n})};return n.channel?.on(Fv,function({globals:e,storyGlobals:n,userGlobals:r}){let{ref:i}=cy(this,t);i?Pv.warn(`received a GLOBALS_UPDATED from a non-local ref. This is not currently supported.`):a({globals:e,storyGlobals:n,userGlobals:r})}),n.channel?.on(Iv,function({globals:n,globalTypes:i}){let{ref:a}=cy(this,t),o=e.getState()?.userGlobals;a?Object.keys(n).length>0&&Pv.warn(`received globals from a non-local ref. This is not currently supported.`):e.setState({globals:n,userGlobals:n,globalTypes:i}),o&&Object.keys(o).length!==0&&!Ro(n,o)&&r.updateGlobals(o)}),{api:r,state:i}},uy={},_(uy,{ActiveTabs:()=>gy,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>yy,DEFAULT_NAV_SIZE:()=>vy,DEFAULT_RIGHT_PANEL_WIDTH:()=>by,focusableUIElements:()=>Sy,getDefaultLayoutState:()=>xy,init:()=>ky,isPagesViewMode:()=>_y}),{SET_CONFIG:dy}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:fy}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:py}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{document:my}=fy,hy=e=>typeof e==`function`,gy={SIDEBAR:`sidebar`,CANVAS:`canvas`,ADDONS:`addons`},_y=e=>e!==void 0&&e!==`story`&&e!==`docs`&&e!==`review`,vy=300,yy=300,by=400,xy=()=>({ui:{enableShortcuts:!0},layout:{initialActive:gy.CANVAS,navSize:vy,bottomPanelHeight:yy,rightPanelWidth:by,recentVisibleSizes:{navSize:vy,bottomPanelHeight:yy,rightPanelWidth:by},panelPosition:`bottom`,showNav:!0,showPanel:!0,showTabs:!0,showToolbar:!0},layoutCustomisations:{showPanel:void 0,showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:ie()}),Sy={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`},Cy=e=>e.layout.navSize>0,wy=e=>{let{bottomPanelHeight:t,rightPanelWidth:n,panelPosition:r}=e.layout;return r===`bottom`&&t>0||r===`right`&&n>0},Ty=e=>!Cy(e)&&!wy(e),Ey=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}),Dy=(e,t,n)=>{let r=Object.keys(e),i=l(t,r);for(let e of Object.keys(i))py(`Calling \`setConfig({ ${e}: ... })\` is deprecated. Please call \`setConfig({ layout: { ${e}: ... } })\` instead.`);let a=o(i,t.layout||{}),{showPanel:s,showNav:c}=a,u=o(e,l(a,r));return c===!1||n?(u.recentVisibleSizes=Ey(u),u.navSize=0):c===!0&&(u.navSize=u.recentVisibleSizes.navSize),s===!1?(u.recentVisibleSizes=Ey(u),u.bottomPanelHeight=0,u.rightPanelWidth=0):s===!0&&(u.bottomPanelHeight=u.recentVisibleSizes.bottomPanelHeight,u.rightPanelWidth=u.recentVisibleSizes.rightPanelWidth),u},Oy=(e,t)=>{let n=Object.keys(e),r=l(t,n);for(let e of Object.keys(r))py(`Calling \`setConfig({ ${e}: ... })\` is deprecated. Please call \`setConfig({ ui: { ${e}: ... } })\` instead.`);let i=n;return o(e,l(o(r,t.ui||{}),i))},ky=({store:e,provider:t,singleStory:n})=>{let r={toggleFullscreen(t){return e.setState(e=>{let n=Ty(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Ey(e.layout)}}:{layout:{...e.layout,navSize:e.singleStory?0:e.layout.recentVisibleSizes.navSize,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`session`})},togglePanel(t){return e.setState(e=>{let n=wy(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...e.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Ey(e.layout)}}},{persistence:`session`})},togglePanelPosition(t){return e.setState(e=>{let n=t||(e.layout.panelPosition===`right`?`bottom`:`right`);return{layout:{...e.layout,panelPosition:n,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`permanent`})},toggleNav(t){return e.setState(e=>{if(e.singleStory)return{layout:e.layout};let n=Cy(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:e.layout.recentVisibleSizes.navSize}}:{layout:{...e.layout,navSize:0,recentVisibleSizes:Ey(e.layout)}}},{persistence:`session`})},toggleToolbar(t){return e.setState(e=>{let n=typeof t<`u`?t:!e.layout.showToolbar;return{layout:{...e.layout,showToolbar:n}}},{persistence:`session`})},setSizes({navSize:t,bottomPanelHeight:n,rightPanelWidth:r}){return e.setState(e=>{let i={...e.layout,navSize:t??e.layout.navSize,bottomPanelHeight:n??e.layout.bottomPanelHeight,rightPanelWidth:r??e.layout.rightPanelWidth};return{layout:{...i,recentVisibleSizes:Ey(i)}}},{persistence:`session`})},focusOnUIElement(e,t){let{forceFocus:n=!1,select:r=!1,poll:i=!0}=typeof t==`boolean`?{select:t}:t??{};if(!e)return!1;let a=()=>{let t=my.getElementById(e);return!t||(t.focus(),t!==my.activeElement&&n&&t.getAttribute(`tabindex`)===null&&(t.setAttribute(`tabindex`,`-1`),t.focus()),t!==my.activeElement&&t.id!==my.activeElement?.id)?!1:(r&&t.select?.(),!0)};return a()?!0:i?new Promise(e=>{let t=Date.now(),n=setInterval(()=>{let r=Date.now()-t;if(a()){clearInterval(n),e(!0);return}r>=500&&(clearInterval(n),e(!1))},50)}):!1},getInitialOptions(){let e=t.getConfig(),r=xy(),{theme:i,selectedPanel:a,layoutCustomisations:o}=e;return{...r,layout:Dy(r.layout,e,!!n),layoutCustomisations:{...r.layoutCustomisations,...o??{}},ui:Oy(r.ui,e),selectedPanel:a||r.selectedPanel,theme:i||r.theme}},getIsFullscreen(){return Ty(e.getState())},getIsPanelShown(){return wy(e.getState())},getIsNavShown(){return Cy(e.getState())},getNavAvailability(){let t=e.getState();return ht(t.path,t.customQueryParams)?`unavailable`:Cy(t)?`shown`:`hidden`},getShowToolbarWithCustomisations(t){let n=e.getState();return hy(n.layoutCustomisations.showToolbar)?n.layoutCustomisations.showToolbar(n,t)??t:t},getShowPanelWithCustomisations(t){let n=e.getState();return hy(n.layoutCustomisations.showPanel)?n.layoutCustomisations.showPanel(n,t)??t:t},getNavSizeWithCustomisations(t){let n=e.getState();if(hy(n.layoutCustomisations.showSidebar)){let e=n.layoutCustomisations.showSidebar(n,t!==0);if(t===0&&e===!0)return n.layout.recentVisibleSizes.navSize;if(t!==0&&e===!1)return 0}return t},setOptions:t=>{let{layout:r,ui:i,selectedPanel:a,theme:o}=e.getState();if(!t)return;let s=Dy(r,t,!!n),c=Oy(i,t),l={...o,...t.theme},d={};u(i,c)||(d.ui=c),u(r,s)||(d.layout=s),t.selectedPanel&&!u(a,t.selectedPanel)&&(d.selectedPanel=t.selectedPanel),Object.keys(d).length&&e.setState(d,{persistence:`permanent`}),u(o,l)||e.setState({theme:l})}},i=l(e.getState(),[`layout`,`selectedPanel`]);return t.channel?.on(dy,()=>{r.setOptions(vv(r.getInitialOptions(),i))}),{api:r,state:vv(r.getInitialOptions(),i)}},Ay={},_(Ay,{init:()=>jy}),jy=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=zo(e,e=>e.id===t.id);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:[...r,t]}})},clearNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=zo(e,e=>e.id===t);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:r}})}},state:{notifications:[]}}),My={},_(My,{init:()=>Fy}),{OPEN_IN_EDITOR_REQUEST:Ny,OPEN_IN_EDITOR_RESPONSE:Py}=__STORYBOOK_MODULE_CORE_EVENTS__,Fy=({provider:e,fullAPI:t})=>({api:{openInEditor(t){return new Promise(n=>{let{file:r,line:i,column:a}=t,o=t=>{t.file===r&&t.line===i&&t.column===a&&(e.channel?.off(Py,o),n(t))};e.channel?.on(Py,o),e.channel?.emit(Ny,t)})}},state:{notifications:[]},init:async()=>{let{color:n}=await a(async()=>{let{color:e}=await import(`./theming-Cx9-gH6l.js`).then(e=>(e.a(),e.d));return{color:e}},__vite__mapDeps([0,1,2,3,4]),import.meta.url);e.channel?.on(Py,e=>{e.error!==null&&t.addNotification({id:`open-in-editor-error`,content:{headline:`Failed to open in editor`,subHeadline:e.error||`Check the Storybook process on the command line for more details.`},icon:rv.createElement(je,{color:n.negative}),duration:8e3})})}}),Iy={},_(Iy,{init:()=>Ly}),Ly=({provider:e})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{}}),Ry={},_(Ry,{init:()=>zy}),zy=({store:e,navigate:t,fullAPI:n})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:t}}=e.getState();t?n.selectStory(t):n.selectFirstStory()},changeSettingsTab:e=>{t(`/settings/${e}`)},isSettingsScreenActive:()=>{let{path:e}=n.getUrlState();return!!(e||``).match(/^\/settings/)},retrieveSelection(){let{settings:t}=e.getState();return t.lastTrackedStoryId},storeSelection:async()=>{let{storyId:t,settings:n}=e.getState();await e.setState({settings:{...n,lastTrackedStoryId:t}})}}}),By={},_(By,{controlOrMetaKey:()=>ab,defaultShortcuts:()=>ob,init:()=>cb,isMacLike:()=>ib,keys:()=>q_}),Vy=m(cv(),1),{FORCE_REMOUNT:Hy,PREVIEW_KEYDOWN:Uy,STORIES_COLLAPSE_ALL:Wy,STORIES_EXPAND_ALL:Gy}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Ky}=__STORYBOOK_MODULE_GLOBAL__,{global:qy}=__STORYBOOK_MODULE_GLOBAL__,{navigator:Jy}=qy,Yy=()=>Jy&&Jy.platform?!!Jy.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Xy=()=>Yy()?`⌥`:`alt`,Zy=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 n=e.code?.toUpperCase(),r=n?n.startsWith(`KEY`)&&n.length===4?n.replace(`KEY`,``):n.startsWith(`DIGIT`)?n.replace(`DIGIT`,``):{MINUS:`-`,EQUAL:`=`,BRACKETLEFT:`[`,BRACKETRIGHT:`]`,BACKSLASH:`\\`,SEMICOLON:`;`,QUOTE:`'`,BACKQUOTE:"`",COMMA:`,`,PERIOD:`.`,SLASH:`/`}[n]:void 0;if(e.key&&e.key.length===1&&e.key!==` `){let n=e.key.toUpperCase(),i=r;i&&i.length===1&&i!==n?t.push([n,i]):t.push(n)}else e.key===`Dead`&&r&&t.push(r);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},Qy=(e,t)=>!e||!t||(e.join(``).startsWith(`shift/`)&&e.shift(),e.length!==t.length)?!1:!e.find((e,n)=>Array.isArray(e)?!e.includes(t[n]):e!==t[n]),$y=e=>e===`alt`?Xy():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(),eb=e=>e.map($y).join(` `),tb=e=>e.map(e=>e===`+`?`plus`:e===` `?`space`:e).join(`+`),{navigator:nb,document:rb}=Ky,ib=()=>nb&&nb.platform?!!nb.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,ab=()=>ib()?`meta`:`control`,ob=Object.freeze({fullScreen:[`alt`,`F`],togglePanel:[`alt`,`A`],panelPosition:[`alt`,`D`],toggleNav:[`alt`,`S`],toolbar:[`alt`,`T`],search:[ab(),`K`],focusNav:[`1`],focusIframe:[`2`],focusPanel:[`3`],prevComponent:[`alt`,`ArrowUp`],nextComponent:[`alt`,`ArrowDown`],prevStory:[`alt`,`ArrowLeft`],nextStory:[`alt`,`ArrowRight`],shortcutsPage:[ab(),`shift`,`,`],aboutPage:[ab(),`,`],escape:[`escape`],collapseAll:[ab(),`shift`,`ArrowUp`],expandAll:[ab(),`shift`,`ArrowDown`],remount:[`alt`,`R`],openInEditor:[`alt`,`shift`,`E`],openInIsolation:[`alt`,`shift`,`I`],copyStoryLink:[`alt`,`shift`,`L`],goToPreviousLandmark:[`shift`,`F6`],goToNextLandmark:[`F6`]}),sb={},cb=({store:e,fullAPI:t,provider:n})=>{let r={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...ob,...r.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return sb},getAddonsShortcutLabels(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{label:n}])=>{e[t]=n}),e},getAddonsShortcutDefaults(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{defaultShortcut:n}])=>{e[t]=n}),e},async setShortcuts(t){let{shortcuts:n}=await e.setState(e=>({shortcuts:typeof t==`function`?t(e.shortcuts):t}),{persistence:`permanent`});return n},async restoreAllDefaultShortcuts(){return r.setShortcuts(r.getDefaultShortcuts())},async setShortcut(e,t){return await r.setShortcuts(n=>({...n,[e]:t})),t},async setAddonShortcut(e,t){return await r.setShortcuts(n=>({...n,[`${e}-${t.actionName}`]:t.defaultShortcut})),sb[`${e}-${t.actionName}`]=t,t},async restoreDefaultShortcut(e){let t=r.getDefaultShortcuts()[e];return r.setShortcut(e,t)},handleKeydownEvent(e){let t=Zy(e),n=r.getShortcutKeys(),i=q_(n).find(e=>Qy(t,n[e]));i&&r.handleShortcutFeature(i,e)},handleShortcutFeature(n,r){let{ui:{enableShortcuts:i},storyId:a,refId:o,viewMode:s}=e.getState();if(!i)return;let c=t.getNavAvailability()===`unavailable`,l=[`focusNav`,`search`,`toggleNav`].includes(n);if(!(c&&l))switch(r?.preventDefault&&r.preventDefault(),n){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(Sy.storyListMenu);break;case`search`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(Sy.storySearchField,!0)},0);break;case`focusIframe`:{let e=rb.getElementById(`storybook-preview-iframe`);if(e)try{e.contentWindow.focus()}catch{}break}case`focusPanel`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(Sy.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 e=t.getIsPanelShown(),n=rb.getElementById(Sy.addonPanel);t.togglePanel(),e&&K_(n)&&t.focusOnUIElement(Sy.showAddonPanel,{poll:!0}).then(e=>{e===!1&&rb.body.focus()}),e||t.focusOnUIElement(Sy.addonPanel,{forceFocus:!0,poll:!0});break}case`toggleNav`:{let e=t.getIsNavShown(),n=rb.getElementById(Sy.sidebarRegion);t.toggleNav(),e&&K_(n)&&t.focusOnUIElement(Sy.showSidebar,{poll:!0}).then(e=>{e===!1&&rb.body.focus()}),e||t.focusOnUIElement(Sy.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(Wy);break;case`expandAll`:t.emit(Gy);break;case`remount`:t.emit(Hy,{storyId:a});break;case`openInEditor`:Ky.CONFIG_TYPE===`DEVELOPMENT`&&t.openInEditor({file:t.getCurrentStoryData().importPath});break;case`openInIsolation`:if(a&&s===`story`){let{previewHref:e}=t.getStoryHrefs(a,{refId:o});window.open(e,`_blank`,`noopener,noreferrer`)}break;case`copyStoryLink`:if(a){let{managerHref:e}=t.getStoryHrefs(a,{refId:o});(0,Vy.default)(e)}break;default:sb[n].action();break}}},{shortcuts:i=ob}=e.getState();return{api:r,state:{shortcuts:q_(ob).reduce((e,t)=>({...e,[t]:i[t]||ob[t]}),ob)},init:()=>{rb.addEventListener(`keydown`,e=>{J_(e)||r.handleKeydownEvent(e)}),n.channel?.on(Uy,e=>{r.handleKeydownEvent(e.event)})}}},lb={},_(lb,{init:()=>nx}),{logger:ub}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:db,CURRENT_STORY_WAS_SET:fb,DOCS_PREPARED:pb,PRELOAD_ENTRIES:mb,RESET_STORY_ARGS:hb,SELECT_STORY:gb,SET_CONFIG:_b,SET_CURRENT_STORY:vb,SET_FILTER:yb,SET_INDEX:bb,SET_STORIES:xb,SIDEBAR_FILTER_CHANGED:Sb,STORY_ARGS_UPDATED:Cb,STORY_CHANGED:wb,STORY_INDEX_INVALIDATED:Tb,STORY_MISSING:Eb,STORY_PREPARED:Db,STORY_SPECIFIED:Ob,UPDATE_STORY_ARGS:kb}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Ab}=__STORYBOOK_MODULE_GLOBAL__,jb=(e,t={})=>[e,...Object.entries(t).filter(([e,t])=>e!==`path`&&t!=null).sort(([e],[t])=>e<t?-1:1).map(([e,t])=>`${e}=${t}`)].join(`&`),Mb=(e,t)=>{let n=iv.useRef(t?t(e.getState()):e.getState()),r=iv.useCallback(r=>e.onStateChange((e,i)=>{if(!t){n.current=e,r();return}let a=t(e);!u(a,t(i))&&(n.current=a,r())}),[e,t]),i=iv.useCallback(()=>{let r=e.getState(),i=t?t(r):r;return u(i,n.current)||(n.current=i),n.current},[e,t]);return[iv.useSyncExternalStore(r,i),e.setState]},{fullStatusStore:Nb,getStatusStoreByTypeId:Pb,useStatusStore:Fb,universalStatusStore:Ib}=it({universalStatusStore:hn.create({...lt,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:Mb,environment:`manager`}),Lb=(e,t)=>{if(!e)return{included:[],excluded:[]};let n=[],r=[];return e.split(`;`).forEach(e=>{if(!e)return;let i=e.startsWith(`!`),a=t(i?e.slice(1):e);a!=null&&(i?r.push(a):n.push(a))}),{included:n,excluded:r}},Rb=e=>Lb(e,st),zb=(e,t)=>{if(!e.length&&!t.length)return;let n=e.map(e=>ct(e)).sort(),r=t.map(e=>`!${ct(e)}`).sort();return[...n,...r].join(`;`)},Bb=(e,t)=>n=>{if(!e.length&&!t.length)return!0;let r=(Nb.getAll()??{})[n.id],i=r?Object.values(r).map(e=>e.value):[],a=!e.length||e.some(e=>i.includes(e)),o=!t.length||t.every(e=>!i.includes(e));return a&&o},Vb=m(fe(),1),Hb={$docs:`_docs`,$play:`_play`,$test:`_test`},Ub=e=>Lb(e,e=>Hb[e]??e),Wb=(e,t)=>{if(!e.length&&!t.length)return``;let n=Object.fromEntries(Object.entries(Hb).map(([e,t])=>[t,e])),r=e.map(e=>n[e]??e).sort(),i=t.map(e=>`!${n[e]??e}`).sort();return[...r,...i].join(`;`)},Gb=(0,Vb.default)(1)(e=>{let t=Object.entries(e);return{included:t.filter(([,e])=>e.defaultFilterSelection===`include`).map(([e])=>e),excluded:t.filter(([,e])=>e.defaultFilterSelection===`exclude`).map(([e])=>e)}}),Kb=e=>{let t=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return r.excludeFromSidebar&&(e[n]=!0),e},{});return e=>{let n=e.tags??[],r=e.type===`docs`&&!n.includes(Wo.ATTACHED_MDX)&&!n.includes(Wo.UNATTACHED_MDX);return(n.includes(Wo.DEV)||r)&&n.filter(e=>t[e]).length===0}},qb=(e,t)=>{let n=e=>Object.values(e.reduce((e,t)=>(Object.hasOwn(Go,t)?e[`built-in`].push(Go[t]):e.user.push(Ko(t)),e),{"built-in":[],user:[]})).filter(e=>e.length>0);return r=>{let i=n(e),a=n(t);return(!i.length||i.every(e=>e.some(e=>e(r,!1))))&&(!a.length||a.every(e=>e.every(e=>e(r,!0))))}},{fetch:Jb}=Ab,Yb=`./index.json`,Xb=`tags-filter`,Zb=`static-filter`,Qb=`status-filter`,$b=new Set(Object.keys(Go)),ex=[`enableShortcuts`,`theme`,`showRoots`],tx={tag:{included:`includedTagFilters`,excluded:`excludedTagFilters`},status:{included:`includedStatusFilters`,excluded:`excludedStatusFilters`}},nx=({fullAPI:e,store:t,navigate:n,provider:r,state:{location:i}={},storyId:a,viewMode:o,docsOptions:s={}})=>{let c=(e,r)=>{let{customQueryParams:i}=t.getState();n(jb(e,i??{}),r)},l=e=>t.setState(e,{persistence:`url`,serialize:e=>{let t=Wb(e.includedTagFilters,e.excludedTagFilters),n=zb(e.includedStatusFilters,e.excludedStatusFilters);return{tags:t??null,statuses:n??null}}}),u=!1,d=async(e,n,r)=>{let{included:i,excluded:a}=tx[e],o=t.getState(),s=new Set(o[i]),c=new Set(o[a]);for(let e of n){let[t,n]=r?[c,s]:[s,c];n.delete(e),t.add(e)}await l({[i]:Array.from(s),[a]:Array.from(c)})},f=async(e,n)=>{let{included:r,excluded:i}=tx[e],a=t.getState(),o=new Set(n);await l({[r]:a[r].filter(e=>!o.has(e)),[i]:a[i].filter(e=>!o.has(e))})},p=(e,n)=>{let i=t.getState(),a=(i.includedTagFilters??[]).filter(e=>$b.has(e)),o=(i.excludedTagFilters??[]).filter(e=>$b.has(e)),s=!!globalThis?.FEATURES?.changeDetection,c=s?i.includedStatusFilters??[]:[],l=s?i.excludedStatusFilters??[]:[],u={},d=i.internal_index?Object.values(i.internal_index.entries):[];for(let e of new Set([...a,...o])){let t=Go[e];u[e]=d.filter(e=>t(e)).length}if(c.length>0||l.length>0){let e=rt(Nb.getAll());for(let t of new Set([...c,...l]))e[t]!==void 0&&(u[t]=e[t])}r.channel?.emit(Sb,{trigger:e,changed:n,activeTagFilters:{included:a,excluded:o},activeStatusFilters:{included:c,excluded:l},storyCounts:u})},m={storyId:nh,getData:(e,t)=>{let n=m.resolveStory(e,t);if(n?.type===`story`||n?.type===`docs`)return n},isPrepared:(e,t)=>{let n=m.getData(e,t);return n?n.type!==`story`||n.prepared:!1},resolveStory:(e,n)=>{let{refs:r,index:i}=t.getState();if(!(n&&!r[n]))return n?r?.[n]?.index?.[e]??void 0:i?i[e]:void 0},getCurrentStoryData:()=>{let{storyId:e,refId:n}=t.getState();return m.getData(e,n)},getIndex:()=>{let{internal_index:e}=t.getState();return e},getParameters:(e,t)=>{let{storyId:n,refId:r}=typeof e==`string`?{storyId:e,refId:void 0}:e,i=m.getData(n,r);if([`story`,`docs`].includes(i?.type)){let{parameters:e}=i;if(e)return t?e[t]:e}return null},getCurrentParameter:e=>{let{storyId:n,refId:r}=t.getState();return m.getParameters({storyId:n,refId:r},e)||void 0},jumpToComponent:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState();if(!m.getData(r,a))return;let o=a?i[a].filteredIndex||{}:n;if(!o)return;let s=m.findSiblingStoryId(r,o,e,!0);s&&m.selectStory(s,void 0,{ref:a})},jumpToStory:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState(),o=m.getData(r,a);if(!o)return;let s=o.refId?i[o.refId].filteredIndex:n;if(!s)return;let c=m.findSiblingStoryId(r,s,e,!1);c&&m.selectStory(c,void 0,{ref:a})},selectFirstStory:()=>{let e=t.getState(),{filteredIndex:n}=e;if(n){let e=Object.keys(n).find(e=>n[e].type===`story`);e&&m.selectStory(e);return}let{index:r}=e;if(!r)return;let i=Object.keys(r).find(e=>r[e].type===`story`);if(i){m.selectStory(i);return}c(`/`)},selectStory:(e=void 0,n=void 0,r={})=>{let{ref:i}=r,{storyId:a,index:o,filteredIndex:s,refs:l,settings:u}=t.getState(),d=e=>e?.type===`docs`||e?.type===`story`?(t.setState({settings:{...u,lastTrackedStoryId:e.id}}),c(`/${e.type}/${e.refId?`${e.refId}_${e.id}`:e.id}`),!0):!1,f=a?.split(`--`,2)[0],p=i?l[i].index:o,h=i?l[i].filteredIndex:s;if(!(!p||!h))if(n)if(!e)d(p[nh(f,n)]);else{let t=i?`${i}_${nh(e,n)}`:nh(e,n);if(p[t])d(p[t]);else{let t=p[eh(e)];if(t?.type===`component`){let e=t.children.find(e=>p[e].name===n);d(e?p[e]:void 0)}}}else{let t=e?p[e]||p[eh(e)]:p[f];if(!t)throw Error(`Unknown id or title: '${e}'`);d(t)||d(m.findLeafEntry(h,t.id))}},findLeafEntry(e,t){let n=e[t];if(!n)return;if(n.type===`docs`||n.type===`story`)return n;let r=n.children.find(t=>e[t]);return r?m.findLeafEntry(e,r):void 0},findLeafStoryId(e,t){return m.findLeafEntry(e,t)?.id},findAllLeafStoryIds(e){let{index:n}=t.getState();if(!n)return[];let r=(e,t=[])=>{let i=n[e];return i&&(i.type===`story`&&t.push(i.id),`children`in i&&i.children?.forEach(e=>r(e,t))),t};return r(e,[])},findSiblingStoryId(e,t,n,r){if(r){let r=Zv(t),i=r.findIndex(t=>t.includes(e));return i===r.length-1&&n>0||i===0&&n<0?void 0:r[i+n]?r[i+n][0]:void 0}let i=Qv(t),a=i.indexOf(e);if(!(a===i.length-1&&n>0)&&!(a===0&&n<0))return i[a+n]},updateStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(kb,{storyId:n,updatedArgs:t,options:{target:i}})},resetStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(hb,{storyId:n,argNames:t,options:{target:i}})},fetchIndex:async()=>{try{let e=await Jb(Yb);if(e.status!==200)throw Error(await e.text());let t=await e.json();if(t.v<3){ub.warn(`Skipping story index with version v${t.v}, awaiting SET_STORIES.`);return}await m.setIndex(t)}catch(e){await t.setState({indexError:e})}},setIndex:async e=>{let{filteredIndex:n,index:i,filters:a}=t.getState(),o=Nb.getAll(),c=Yv(e,{provider:r,docsOptions:s,filters:a,allStatuses:o,statusFilterKey:Qb}),l=Yv(e,{provider:r,docsOptions:s,filters:{},allStatuses:o});await t.setState({internal_index:e,filteredIndex:Xv(c,n),index:Xv(l,i),indexError:void 0})},updateStory:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i,s={...i.storyUpdates,[n]:{...i.storyUpdates?.[n],...r}};a&&a[n]&&(a[n]={...a[n],...r}),o&&o[n]&&(o[n]={...o[n],...r}),await e.updateRef(t,{index:a,filteredIndex:o,storyUpdates:s})}else{let{index:e,filteredIndex:i}=t.getState();e&&e[n]&&(e[n]={...e[n],...r}),i&&i[n]&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},updateDocs:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i,s={...i.storyUpdates,[n]:{...i.storyUpdates?.[n],...r}};a&&a[n]&&(a[n]={...a[n],...r}),o&&o[n]&&(o[n]={...o[n],...r}),await e.updateRef(t,{index:a,filteredIndex:o,storyUpdates:s})}else{let{index:e,filteredIndex:i}=t.getState();e&&(e[n]={...e[n],...r}),i&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},setPreviewInitialized:async n=>{n?e.updateRef(n.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(n,i)=>{await t.setState(e=>({filters:{...e.filters,[n]:i}}));let{internal_index:a}=t.getState();if(!a)return;await m.setIndex(a);let o=await e.getRefs();for(let[t,{internal_index:n,...r}]of Object.entries(o))await e.setRef(t,{...r,storyIndex:n},!0);r.channel?.emit(yb,{id:n})},resetTagFilters:async()=>{await l(e=>({includedTagFilters:e.defaultIncludedTagFilters,excludedTagFilters:e.defaultExcludedTagFilters})),await h()},setAllTagFilters:async(e,t)=>{await l({includedTagFilters:e,excludedTagFilters:t}),await h()},addTagFilters:async(e,t)=>{await d(`tag`,e,t),await h(),e.length===1&&$b.has(e[0])&&p(`interaction`,{filterType:`tag`,filterId:e[0],action:t?`exclude`:`include`})},removeTagFilters:async e=>{await f(`tag`,e),await h(),e.length===1&&$b.has(e[0])&&p(`interaction`,{filterType:`tag`,filterId:e[0],action:`remove`})},resetStatusFilters:async()=>{await l({includedStatusFilters:[],excludedStatusFilters:[]}),await g()},setAllStatusFilters:async(e,n)=>{let r=t.getState(),i=new Set(r.includedStatusFilters??[]),a=new Set(r.excludedStatusFilters??[]),o=new Set(e),s=new Set(n);await l({includedStatusFilters:e,excludedStatusFilters:n}),await g();let c=new Set([...i,...a,...o,...s]);for(let e of c){let t=i.has(e),n=a.has(e),r=o.has(e),c=s.has(e);if(t===r&&n===c)continue;let l;l=r?`include`:c?`exclude`:`remove`,p(`interaction`,{filterType:`status`,filterId:e,action:l})}},addStatusFilters:async(e,t)=>{await d(`status`,e,t),await g(),e.length===1&&p(`interaction`,{filterType:`status`,filterId:e[0],action:t?`exclude`:`include`})},removeStatusFilters:async e=>{await f(`status`,e),await g(),e.length===1&&p(`interaction`,{filterType:`status`,filterId:e[0],action:`remove`})}},h=()=>{let{includedTagFilters:e,excludedTagFilters:n}=t.getState();return m.experimental_setFilter(Xb,qb(e,n))},g=()=>{let{includedStatusFilters:e,excludedStatusFilters:n}=t.getState();return m.experimental_setFilter(Qb,Bb(e??[],n??[]))};r.channel?.on(Ob,function({storyId:n,viewMode:i}){let{sourceType:a}=cy(this,e);if(a===`local`){let e=t.getState(),a=!ht(e.path,e.customQueryParams)&&(e.path===`/`||e.viewMode===`story`||e.viewMode===`docs`),o=e.viewMode&&e.storyId,s=e.viewMode!==i||e.storyId!==n,{type:l}=e.index?.[e.storyId]||{},u=!(l===`root`||l===`component`||l===`group`);if(a){let{filteredIndex:t}=e;if(t&&!o&&t[n]?.type!==`story`){let e=t?Object.keys(t).find(e=>{let n=t[e];return n.type===`story`||n.type===`docs`}):void 0;e&&c(`/${i}/${e}`);return}o&&s&&u?r.channel?.emit(vb,{storyId:e.storyId,viewMode:e.viewMode}):s&&c(`/${i}/${n}`)}}}),r.channel?.on(fb,function(){let{ref:t}=cy(this,e);m.setPreviewInitialized(t)}),r.channel?.on(wb,function(){let{sourceType:t}=cy(this,e);if(t===`local`){let t=m.getCurrentParameter(`options`);t&&e.setOptions(Y_(t))}}),r.channel?.on(Db,function({id:n,...i}){let{ref:a,sourceType:o}=cy(this,e);if(m.updateStory(n,{...i,prepared:!0},a),!a&&!t.getState().hasCalledSetOptions){let{options:n}=i.parameters;e.setOptions(Y_(n)),t.setState({hasCalledSetOptions:!0})}if(o===`local`){let{storyId:e,index:n,refId:i}=t.getState();if(!n)return;let a=Array.from(new Set([m.findSiblingStoryId(e,n,1,!0),m.findSiblingStoryId(e,n,-1,!0)])).filter(Boolean);r.channel?.emit(mb,{ids:a,options:{target:i}})}}),r.channel?.on(pb,function({id:t,...n}){let{ref:r}=cy(this,e);m.updateStory(t,{...n,prepared:!0},r)}),r.channel?.on(bb,function(t){let{ref:n}=cy(this,e);if(n)e.setRef(n.id,{...n,storyIndex:t},!0);else{m.setIndex(t);let n=m.getCurrentParameter(`options`);e.setOptions(Y_(n))}}),r.channel?.on(xb,function(t){let{ref:n}=cy(this,e),r=t.v?Wv(t):t.stories;if(n)e.setRef(n.id,{...n,setStoriesData:r},!0);else throw Error(`Cannot call SET_STORIES for local frame`)}),r.channel?.on(gb,function({kind:t,title:n=t,story:r,name:i=r,storyId:a,...o}){let{ref:s}=cy(this,e);s?e.selectStory(a||n,i,{...o,ref:s.id}):e.selectStory(a||n,i,o)}),r.channel?.on(Cb,function({storyId:t,args:n}){let{ref:r}=cy(this,e);m.updateStory(t,{args:n},r)}),r.channel?.on(db,function(t){let{ref:n}=cy(this,e);m.setPreviewInitialized(n)}),r.channel?.on(Eb,function(t){let{ref:n}=cy(this,e);m.setPreviewInitialized(n)}),r.channel?.on(_b,()=>{let e=r.getConfig()?.sidebar?.filters||{},{includedTagFilters:n,excludedTagFilters:i,includedStatusFilters:a,excludedStatusFilters:o,tagPresets:s}=t.getState();t.setState(({filters:t})=>({filters:{...t,...e,[Zb]:Kb(s),[Xb]:qb(n,i),[Qb]:Bb(a,o)}}))}),Nb.onAllStatusChange(async()=>{g();let{internal_index:n}=t.getState();if(!n)return;await m.setIndex(n);let r=await e.getRefs();Object.entries(r).forEach(([t,{internal_index:n,...r}])=>{e.setRef(t,{...r,storyIndex:n},!0)})});let _=r.getConfig()?.sidebar?.filters||{},v=Ab.TAGS_OPTIONS||{},y=Gb(v),{tags:b,statuses:x}=mg(i??{search:``}),S=Ub(b),C=b!==void 0,w=C?S.included:y.included,T=C?S.excluded:y.excluded,E=Rb(x),D=E.included,O=E.excluded;return{api:m,state:{storyId:a,viewMode:o,hasCalledSetOptions:!1,previewInitialized:!1,filters:{..._,[Zb]:Kb(v),[Xb]:qb(w,T),[Qb]:Bb(D,O)},tagPresets:v,defaultIncludedTagFilters:y.included,defaultExcludedTagFilters:y.excluded,includedTagFilters:w,excludedTagFilters:T,includedStatusFilters:D,excludedStatusFilters:O},init:async()=>{if(r.channel?.on(Tb,()=>m.fetchIndex()),await m.fetchIndex(),u)return;u=!0;let e=w.some(e=>$b.has(e))||T.some(e=>$b.has(e)),t=!!globalThis?.FEATURES?.changeDetection&&(D.length>0||O.length>0);(e||t)&&p(`url`)}}},rx={},_(rx,{getCustomQueryParams:()=>mx,init:()=>_x}),{GLOBALS_UPDATED:ix,NAVIGATE_URL:ax,SET_CURRENT_STORY:ox,STORY_ARGS_UPDATED:sx,UPDATE_QUERY_PARAMS:cx}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:lx}=__STORYBOOK_MODULE_GLOBAL__,ux=e=>{if(e===`true`||e===`1`)return!0;if(e===`false`||e===`0`)return!1},dx=e=>Object.fromEntries(e.split(`;`).map(e=>e.split(`:`)).map(([e,t])=>[e,encodeURIComponent(t)]).filter(([e,t])=>e&&t)),fx=(e,t)=>{let n=dx(e),r=dx(t);return Object.entries({...n,...r}).map(([e,t])=>`${e}:${t}`).join(`;`)},px=[`full`,`panel`,`nav`,`shortcuts`,`addonPanel`,`tabs`,`path`],mx=e=>b(mg(e),px),gx=({state:{location:e,path:t,viewMode:n,storyId:r},singleStory:i})=>{let{full:a,panel:o,nav:s,shortcuts:c,addonPanel:l,tabs:u}=mg(e),d,f,p;ux(a)===!0?(d=0,f=0,p=0):ux(a)===!1&&(d=vy,f=yy,p=by),i||(ux(s)===!0&&(d=vy),ux(s)===!1&&(d=0)),ux(o)===!1&&(f=0,p=0);let m={navSize:d,bottomPanelHeight:f,rightPanelWidth:p,panelPosition:[`right`,`bottom`].includes(o)?o:void 0,showTabs:ux(u)},h={enableShortcuts:ux(c)},g=l||void 0,_=r,v=mx(e),y=Ro(hx,v)?hx:v;return hx=y,{viewMode:n,layout:m,ui:h,selectedPanel:g,location:e,path:t,customQueryParams:y,storyId:_}},_x=e=>{let{store:t,navigate:n,provider:r,fullAPI:i}=e,a=(e,t={},r={})=>n(jb(e,t),r),o={getStoryHrefs(e,n={}){let{id:r,refId:a}=i.getCurrentStoryData()??{},o=e===r&&n.refId===a,{customQueryParams:s,location:c,refs:l}=t.getState(),{base:u,inheritArgs:d=o,inheritGlobals:f=!0,queryParams:p={},refId:m,viewMode:h=`story`,embed:g=!1,freeze:_=!1}=n;if(m&&!l[m])throw Error(`Invalid refId: ${m}`);let v=c.pathname||`/`,y=lx.window.location.origin+v,x=lx.STORYBOOK_NETWORK_ADDRESS??y,S=u===`origin`?y:u===`network`?x:v,C=m?l[m].url+`/iframe.html`:lx.PREVIEW_URL||`${S.replace(/\/[^/]*\.html$/,``).replace(/\/?$/,`/`)}iframe.html`,w=m?`&refId=${encodeURIComponent(m)}`:``,{args:T=``,globals:E=``,...D}=p,O=d?fx(s?.args??``,T):T,k=f?fx(s?.globals??``,E):E,ee=b(D,[`embed`,`freeze`]),A=b(D,[`id`,`viewMode`,`embed`,`freeze`]),j=ns(ee,{nesting:!0,nestingSyntax:`js`}),te=ns(A,{nesting:!0,nestingSyntax:`js`});O&&=`&args=${O}`,k&&=`&globals=${k}`,j&&=`&${j}`,te&&=`&${te}`;let ne=g?`&embed=true`:``,re=_?`&freeze=finished`:``;return{managerHref:`${S}?path=/${h}/${m?`${m}_`:``}${e}${O}${k}${j}`,previewHref:`${C}?id=${e}&viewMode=${h}${w}${O}${m?``:k}${te}${ne}${re}`}},getQueryParam(e){let{customQueryParams:n}=t.getState();return n?n[e]:void 0},getUrlState(){let{location:e,path:n,customQueryParams:r,storyId:i,url:a,viewMode:o}=t.getState();return{path:n,hash:e?.hash??``,queryParams:r,storyId:i,url:a,viewMode:o}},setQueryParams(e){let{customQueryParams:n}=t.getState(),i={...n};for(let[t,n]of Object.entries(e))n==null?delete i[t]:i[t]=n;Ro(n,i)||(t.setState({customQueryParams:i}),r.channel?.emit(cx,i))},applyQueryParams(e,t){let{path:n,hash:r=``,queryParams:i}=o.getUrlState();a(`${n}${r}`,{...i,...e},t),o.setQueryParams(e)},navigateUrl(e,t){n(e,{plain:!0,...t})}},s=()=>{let{path:e,hash:t=``,queryParams:n,viewMode:r}=o.getUrlState();if(r!==`story`)return;let s=i.getCurrentStoryData();if(s?.type!==`story`)return;let{args:c,initialArgs:l}=s,u=fg(l,c);a(`${e}${t}`,{...n,args:u||null},{replace:!0}),o.setQueryParams({args:u||null})};r.channel?.on(ox,()=>s());let c;return r.channel?.on(sx,()=>{`requestIdleCallback`in lx.window?(c&&lx.window.cancelIdleCallback(c),c=lx.window.requestIdleCallback(s,{timeout:1e3})):(c&&clearTimeout(c),setTimeout(s,100))}),r.channel?.on(ix,({userGlobals:e,initialGlobals:t})=>{let{path:n,hash:r=``,queryParams:i}=o.getUrlState(),s=fg(t,vv(t,e));a(`${n}${r}`,{...i,globals:s||null},{replace:!0}),o.setQueryParams({globals:s||null})}),r.channel?.on(ax,(e,t)=>{o.navigateUrl(e,t)}),{api:o,state:gx(e),init:()=>{t.registerPersistenceHandler(`url`,(e,n)=>{if(n){let e=n(t.getState());o.applyQueryParams(e,{replace:!0})}})}}},vx={},_(vx,{init:()=>Tx}),yx=m(fe(),1),{global:bx}=__STORYBOOK_MODULE_GLOBAL__,xx=`10.5.0`,{VERSIONCHECK:Sx}=bx,Cx=(0,yx.default)(1)(()=>{try{return{...JSON.parse(Sx).data||{}}}catch{return{}}}),wx=e=>e.includes(`vue`)?`vue`:e,Tx=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),n={versions:{current:{version:xx},...Cx()},dismissedVersionNotification:t},r={getCurrentVersion:()=>{let{versions:{current:t}}=e.getState();return t},getLatestVersion:()=>{let{versions:{latest:t,next:n,current:r}}=e.getState();return r&&av.default.prerelease(r.version)&&n?t&&av.default.gt(t.version,n.version)?t:n:t},getDocsUrl:({asset:t,subpath:n=t,versioned:r,renderer:i,ref:a=`ui`})=>{let{versions:o}=e.getState(),s=o.latest?.version,c=o.current?.version,l=c?.startsWith(`0.0.0`)&&s||c,u=`https://storybook.js.org/${t?`docs-assets`:`docs`}/`;if(t&&l)u+=`${av.default.major(l)}.${av.default.minor(l)}/`;else if(r&&l&&s){let e=av.default.diff(s,l);e===`patch`||e===null||(u+=`${av.default.major(l)}.${av.default.minor(l)}/`)}let[d,f]=n?.split(`#`)||[];if(d&&(u+=t?d:`${d}/`),i&&typeof bx.STORYBOOK_RENDERER<`u`){let e=bx.STORYBOOK_RENDERER;e&&(u+=`?renderer=${wx(e)}`)}return a&&(u+=`${u.includes(`?`)?`&`:`?`}ref=${a}`),f&&(u+=`#${f}`),u},versionUpdateAvailable:()=>{let e=r.getLatestVersion(),t=r.getCurrentVersion();if(e){if(!e.version||!t.version)return!0;let n=av.default.prerelease(t.version)?`${av.default.major(t.version)}.${av.default.minor(t.version)}.${av.default.patch(t.version)}`:t.version,r=av.default.diff(n,e.version);return av.default.gt(e.version,n)&&r!==`patch`&&!r.includes(`pre`)}return!1}};return{init:async()=>{let{versions:t={}}=e.getState(),{latest:n,next:r}=Cx();await e.setState({versions:{...t,latest:n,next:r}})},state:n,api:r}},Ex={},_(Ex,{init:()=>Px}),{REQUEST_WHATS_NEW_DATA:Dx,RESULT_WHATS_NEW_DATA:Ox,SET_WHATS_NEW_CACHE:kx,TOGGLE_WHATS_NEW_NOTIFICATIONS:Ax}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:jx}=__STORYBOOK_MODULE_GLOBAL__,Mx=`whats-new`,Nx=({color:e=`currentColor`,size:t=14})=>ov.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},ov.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})),Px=({fullAPI:e,store:t,provider:n})=>{let r={whatsNewData:void 0};function i(e){t.setState({whatsNewData:e}),r.whatsNewData=e}let a={isWhatsNewUnread(){return r.whatsNewData?.status===`SUCCESS`&&!r.whatsNewData.postIsRead},whatsNewHasBeenRead(){r.whatsNewData?.status===`SUCCESS`&&(s({lastReadPost:r.whatsNewData.url}),i({...r.whatsNewData,postIsRead:!0}),e.clearNotification(Mx))},toggleWhatsNewNotifications(){r.whatsNewData?.status===`SUCCESS`&&(i({...r.whatsNewData,disableWhatsNewNotifications:!r.whatsNewData.disableWhatsNewNotifications}),n.channel?.emit(Ax,{disableWhatsNewNotifications:r.whatsNewData.disableWhatsNewNotifications}))}};function o(){return n.channel?.emit(Dx),new Promise(e=>n.channel?.once(Ox,({data:t})=>e(t)))}function s(e){n.channel?.emit(kx,e)}return{init:async()=>{if(jx.CONFIG_TYPE!==`DEVELOPMENT`)return;let t=await o();i(t);let n=e.getUrlState(),r=n?.path===`/onboarding`||n.queryParams?.onboarding===`true`,a=n?.path===`/review/`||n?.path===`/review`||n?.path?.startsWith(`/review/`);!r&&!a&&t.status===`SUCCESS`&&!t.disableWhatsNewNotifications&&t.showNotification&&e.addNotification({id:Mx,link:`/settings/whats-new`,content:{headline:t.title,subHeadline:`Learn what's new in Storybook`},icon:ov.createElement(Nx,null),onClear({dismissed:e}){e&&s({lastDismissedPost:t.url})}})},state:r,api:a}},Fx=m(lv(),1),Ix=e=>{e.fn(`set`,function(t,n){return e.set(this._area,this._in(t),ra(n,{maxDepth:50}))}),e.fn(`get`,function(t,n){let r=e.get(this._area,this._in(t));return r===null?n||r:aa(r)})},Ix(Fx.default._),Lx=`@storybook/manager/store`,Rx=class{constructor({allowPersistence:e,setState:t,getState:n}){this.persistenceHandlers=new Map,this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=n}registerPersistenceHandler(e,t){this.persistenceHandlers.set(e,t)}getInitialState(e){for(let e of[Fx.default.local,Fx.default.session]){let t=X_(e);if(`includedTagFilters`in t||`excludedTagFilters`in t){let{includedTagFilters:n,excludedTagFilters:r,...i}=t;Z_(e,i)}}let t=X_(Fx.default.local),n=X_(Fx.default.session);return{...e,...t,...n}}getState(){return this.upstreamGetState()}async setState(e,t,n){let r,i;typeof t==`function`?(r=t,i=n):i=t;let{persistence:a=`none`}=i||{},o={},s={};typeof e==`function`?o=t=>(s=e(t),s):(o=e,s=o);let c=await new Promise(e=>{this.upstreamSetState(o,()=>{e(this.getState())})});if(a!==`none`&&this.upstreamPersistence)if(a===`url`){let e=this.persistenceHandlers.get(`url`);e&&await e(s,i?.serialize)}else await Q_(a===`session`?Fx.default.session:Fx.default.local,s);return r&&r(c),c}},{ActiveTabs:zx}=uy,Bx=gv({api:void 0,state:xv({})}),Vx=(...e)=>yv({},...e),Hx=class extends tv.Component{constructor(e){super(e),this.api={},this.mounted=!1,this.initModules=()=>{this.modules.forEach(e=>{`init`in e&&e.init()})};let{location:t,path:n,refId:r,viewMode:i=e.docsOptions.docsMode?`docs`:e.viewMode,singleStory:a,storyId:o,docsOptions:s,navigate:c}=e,l=new Rx({getState:()=>this.state,setState:(e,t)=>{if(!this.mounted){let n=typeof e==`function`?e(this.state):e;return this.state={...this.state,...n},t?.(this.state),this.state}return this.setState(e,()=>t(this.state)),this.state}}),u={location:t,path:n,viewMode:i,singleStory:a,storyId:o,refId:r},d={docsOptions:s};this.state=l.getInitialState(xv({...u,...d}));let f={navigate:c,store:l,provider:e.provider};this.modules=[Iy,jv,Dv,uy,Ay,Ry,By,lb,zv,Nv,rx,vx,Ex,My].map(e=>e.init({...u,...d,...f,state:this.state,fullAPI:this.api}));let p=xv(this.state,...this.modules.map(e=>e.state)),m=Object.assign(this.api,{navigate:c},...this.modules.map(e=>e.api));this.state=p,this.api=m,e.provider.handleAPI(this.api)}componentDidMount(){this.mounted=!0}static getDerivedStateFromProps(e,t){let n=t.location?.search!==e.location?.search;return t.path!==e.path||n?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId,customQueryParams:mx(e.location)}:null}shouldComponentUpdate(e,t){let n=this.props,r=this.state;return n.path!==e.path||!u(r,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return tv.createElement(Ux,{effect:this.initModules},tv.createElement(Bx.Provider,{value:t},tv.createElement($_,null,e)))}},Hx.displayName=`Manager`,Ux=({children:e,effect:t})=>(tv.useEffect(t,[]),e),Wx=e=>e,globalThis.STORYBOOK_ADDON_STATE={},{STORYBOOK_ADDON_STATE:Gx}=globalThis,{Channel:Kx}=__STORYBOOK_MODULE_CHANNELS__,qx={id:`storybook/test-provider`,leader:!0,initialState:{}},{fullTestProviderStore:Jx,getTestProviderStoreById:Yx,useTestProviderStore:Xx,universalTestProviderStore:Zx}=ev({universalTestProviderStore:hn.create({...qx,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:Mb}),Qx={id:`storybook/checklist`,initialState:{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:{}}},$x=e=>({getValue:t=>e.getState().items[t]??{status:`open`,mutedAt:void 0},accept:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`accepted`}}}))},done:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`done`}}}))},skip:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`skipped`}}}))},reset:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`open`}}}))},mute:t=>{e.setState(e=>({...e,items:t.reduce((t,n)=>({...t,[n]:{...e.items[n],mutedAt:Date.now()}}),e.items)}))},disable:t=>{e.setState(e=>({...e,widget:{...e.widget,disable:t},items:Object.entries(e.items).reduce((e,[t,n])=>({...e,[t]:{...n,mutedAt:void 0}}),e.items)}))}}),eS=hn.create({...Qx,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),$x(eS)})),nS=r((e=>{var t=s();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),s=r[0].inst,l=r[1];return o(function(){s.value=n,s.getSnapshot=t,u(s)&&l({inst:s})},[e,n,t]),a(function(){return u(s)&&l({inst:s}),e(function(){u(s)&&l({inst:s})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),rS=r(((e,t)=>{t.exports=nS()})),iS=e({A:()=>Kj,ActionList:()=>eL,Bar:()=>PB,Blockquote:()=>qj,Button:()=>zI,Code:()=>rM,DL:()=>iM,Div:()=>aM,EmptyTabContent:()=>XB,ErrorFormatter:()=>lR,FlexBar:()=>RB,Form:()=>YR,H1:()=>oM,H2:()=>sM,H3:()=>cM,H4:()=>lM,H5:()=>uM,H6:()=>dM,HR:()=>fM,IconButton:()=>VI,Img:()=>pM,LI:()=>mM,Link:()=>jM,ListItem:()=>TB,Loader:()=>YV,OL:()=>gM,P:()=>_M,Popover:()=>QR,PopoverProvider:()=>dB,Pre:()=>vM,ResetWrapper:()=>Wj,ScrollArea:()=>w,Select:()=>sz,Separator:()=>fV,Span:()=>yM,SyntaxHighlighter:()=>Qj,TT:()=>bM,TabBar:()=>oV,TabButton:()=>WB,TabList:()=>wV,TabPanel:()=>EV,TabWrapper:()=>cV,Table:()=>xM,Tabs:()=>uV,TabsState:()=>dV,TabsView:()=>MV,ToggleButton:()=>HI,Toolbar:()=>pV,Tooltip:()=>fB,TooltipLinkList:()=>kB,TooltipNote:()=>VM,TooltipProvider:()=>LI,UL:()=>CM,Zoom:()=>$L,codeCommon:()=>Vj,components:()=>QV,convertToReactAriaPlacement:()=>FI,createCopyToClipboardFunction:()=>sS,nameSpaceClassNames:()=>J,resetComponents:()=>$V,useTabsState:()=>OV,withReset:()=>Hj});async function aS(e){try{await PM.top?.navigator.clipboard.writeText(e)}catch{await PM.navigator.clipboard.writeText(e)}}async function oS(e){let t=NM.createElement(`TEXTAREA`),n=NM.activeElement;t.value=e,NM.body.appendChild(t),t.select(),NM.execCommand(`copy`),NM.body.removeChild(t),n.focus()}function sS(){return PM.navigator?.clipboard?aS:oS}function cS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function lS(...e){return t=>{let n=!1,r=e.map(e=>{let r=cS(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():cS(e[t],null)}}}}function uS(e){return typeof e==`object`&&!!e&&`then`in e}function dS(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===IM&&`_payload`in e&&uS(e._payload)}function fS(e){let t=pS(e),n=lk.forwardRef((e,n)=>{let{children:r,...i}=e;dS(r)&&typeof LM==`function`&&(r=LM(r._payload));let a=lk.Children.toArray(r),o=a.find(hS);if(o){let e=o.props.children,r=a.map(t=>t===o?lk.Children.count(e)>1?lk.Children.only(null):lk.isValidElement(e)?e.props.children:null:t);return(0,uk.jsx)(t,{...i,ref:n,children:lk.isValidElement(e)?lk.cloneElement(e,void 0,r):null})}return(0,uk.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function pS(e){let t=lk.forwardRef((e,t)=>{let{children:n,...r}=e;if(dS(n)&&typeof LM==`function`&&(n=LM(n._payload)),lk.isValidElement(n)){let e=_S(n),i=gS(r,n.props);return n.type!==lk.Fragment&&(i.ref=t?lS(t,e):e),lk.cloneElement(n,i)}return lk.Children.count(n)>1?lk.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}function mS(e){let t=({children:e})=>(0,uk.jsx)(uk.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=zM,t}function hS(e){return lk.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===zM}function gS(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function _S(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function vS(e){let[t,n]=(0,hk.useState)(e),r=(0,hk.useRef)(t),i=(0,hk.useRef)(null),a=(0,hk.useRef)(()=>{if(!i.current)return;let e=i.current.next();if(e.done){i.current=null;return}r.current===e.value?a.current():n(e.value)});return Y(()=>{r.current=t,i.current&&a.current()}),[t,(0,hk.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}function yS(e=!1){let t=(0,_k.useContext)(WM),n=(0,_k.useRef)(null);if(n.current===null&&!e){var r,i;let e=(i=_k.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null||(r=i.ReactCurrentOwner)==null?void 0:r.current;if(e){let n=KM.get(e);n==null?KM.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,KM.delete(e))}n.current=++t.current}return n.current}function bS(e){let t=(0,_k.useContext)(WM),n=yS(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function xS(e){let t=_k.useId(),[n]=(0,_k.useState)(TS()),r=n?`react-aria`:`react-aria${UM.prefix}`;return e||`${r}-${t}`}function SS(){return!1}function CS(){return!0}function wS(e){return()=>{}}function TS(){return typeof _k.useSyncExternalStore==`function`?_k.useSyncExternalStore(wS,SS,CS):(0,_k.useContext)(GM)}function ES(e){let[t,n]=(0,gk.useState)(e),r=(0,gk.useRef)(null),i=qM(t),a=(0,gk.useRef)(null);if(XM&&XM.register(a,i),JM){let e=YM.get(i);e&&!e.includes(r)?e.push(r):YM.set(i,[r])}return Y(()=>{let e=i;return()=>{XM&&XM.unregister(a),YM.delete(e)}},[i]),(0,gk.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function DS(e,t){if(e===t)return e;let n=YM.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=YM.get(t);return r?(r.forEach(t=>t.current=e),e):t}function OS(e=[]){let t=ES(),[n,r]=vS(t),i=(0,gk.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Y(i,[t,i,...e]),n}function kS(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function AS(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function jS(e){return AS(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}function MS(){return QM}function NS(e,t){if(!MS())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName===`SLOT`&&n.assignedSlot?n.assignedSlot.parentNode:jS(n)?n.host:n.parentNode}return!1}function PS(e){return MS()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function FS(e,t,n,r){return MS()?new eN(e,t,n,r):e.createTreeWalker(t,n,r)}function IS(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=IS(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function LS(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=IS(e))&&(r&&(r+=` `),r+=t);return r}function V(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=kS(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=tN(n,i):e===`id`&&n&&i?t.id=DS(n,i):t[e]=i===void 0?n:i}}return t}function RS(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=zS(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():zS(e[n],null)})}}}function zS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function BS(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(nN.has(t)||n&&rN.has(t)||r&&iN.has(t)||i&&aN.has(t)||a&&(oN.has(t)||t.endsWith(`Capture`)&&oN.has(t.slice(0,-7)))||o?.has(t)||sN.test(t))&&(s[t]=e[t]);return s}function VS(e){if(HS())e.focus({preventScroll:!0});else{let t=US(e);e.focus(),WS(t)}}function HS(){if(cN==null){cN=!1;try{document.createElement(`div`).focus({get preventScroll(){return cN=!0,!0}})}catch{}}return cN}function US(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function WS(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function GS(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function KS(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function qS(e){let t=null;return()=>(t??=e(),t)}function JS(){return(0,vk.useContext)(vN)}function YS(e,t){let n=e.getAttribute(`target`);return(!n||n===`_self`)&&e.origin===location.origin&&!e.hasAttribute(`download`)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function XS(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}=t;_N()&&!((i=window.event)==null||(r=i.type)==null)&&r.startsWith(`key`)&&e.target===`_blank`&&(lN()?a=!0:o=!0);let l=mN()&&lN()&&!dN()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}):new MouseEvent(`click`,{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});XS.isOpening=n,VS(e),e.dispatchEvent(l),XS.isOpening=!1}function ZS(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function QS(e,t){ZS(e,e=>XS(e,t))}function $S(e){let t=JS().useHref(e?.href??``);return{href:e?.href?t:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function eC(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&YS(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}function tC(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{if(!e(t)||!t.target)return;let r=yN.get(t.target);r||(r=new Set,yN.set(t.target,r),t.target.addEventListener(`transitioncancel`,n,{once:!0})),r.add(t.propertyName)},n=t=>{if(!e(t)||!t.target)return;let r=yN.get(t.target);if(r&&(r.delete(t.propertyName),r.size===0&&(t.target.removeEventListener(`transitioncancel`,n),yN.delete(t.target)),yN.size===0)){for(let e of bN)e();bN.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}function nC(){for(let[e]of yN)`isConnected`in e&&!e.isConnected&&yN.delete(e)}function rC(e){requestAnimationFrame(()=>{nC(),yN.size===0?e():bN.add(e)})}function iC(){let e=(0,yk.useRef)(new Map),t=(0,yk.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,yk.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,yk.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,yk.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function aC(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=ES(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&=i.trim().split(/\s+/).join(` `),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function oC(e){let t=(0,bk.useRef)(null),n=(0,bk.useRef)(void 0),r=(0,bk.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}else if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,bk.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))}}),[r])}function sC(e){let t=(0,xk.useRef)(null);return xN(()=>{t.current=e},[e]),(0,xk.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function cC(e,t){let n=(0,Sk.useRef)(!0),r=(0,Sk.useRef)(null);Y(()=>(n.current=!0,()=>{n.current=!1}),[]),Y(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function lC(){return typeof window.ResizeObserver<`u`}function uC(e){let{ref:t,box:n,onResize:r}=e,i=sC(r);(0,Ck.useEffect)(()=>{let e=t?.current;if(e)if(lC()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}else return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}},[t,n])}function dC(e,t){Y(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function fC(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function pC(e,t){let n=e;for(fC(n,t)&&(n=n.parentElement);n&&!fC(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function mC(e,t){let n=[];for(;e&&e!==document.documentElement;)fC(e,t)&&n.push(e),e=e.parentElement;return n}function hC(e){return lN()?e.metaKey:e.ctrlKey}function gC(e){return e instanceof HTMLInputElement&&!SN.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function _C(e){let[t,n]=(0,wk.useState)();return Y(()=>{if(!e)return;let t=wN.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${CN++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},wN.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),wN.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function vC(e,t,n,r){let i=sC(n),a=n==null;(0,Tk.useEffect)(()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}},[e,t,r,a])}function yC(e,t){let n=bC(e,t,`left`),r=bC(e,t,`top`),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:c,borderLeftWidth:l,scrollPaddingTop:u,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),m=o+parseInt(l,10),h=s+parseInt(c,10),g=m+e.clientWidth,_=h+e.clientHeight,v=parseInt(u,10)||0,y=parseInt(f,10)||0,b=parseInt(d,10)||0,x=parseInt(p,10)||0;n<=o+x?o=n-parseInt(l,10)-x:n+i>g-b&&(o+=n+i-g+b),r<=h+v?s=r-parseInt(c,10)-v:r+a>_-y&&(s+=r+a-_+y),e.scrollLeft=o,e.scrollTop=s}function bC(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function xC(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement,s=window.getComputedStyle(o).overflow===`hidden`;if(s){let t=mC(e);s||t.push(o);for(let n of t)yC(n,e)}else{var n;let{left:o,top:s}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)==null||n.call(e,{block:`nearest`});let{left:c,top:l}=e.getBoundingClientRect();if(Math.abs(o-c)>1||Math.abs(s-l)>1){var r,i,a;t==null||(i=t.containingElement)==null||(r=i.scrollIntoView)==null||r.call(i,{block:`center`,inline:`center`}),(a=e.scrollIntoView)==null||a.call(e,{block:`nearest`})}}}}function SC(e){return e.pointerType===``&&e.isTrusted?!0:gN()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function CC(e){return!gN()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}function wC(e){let t=Ek.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}function TC(e,t=!0){let[n,r]=(0,Ok.useState)(!0),i=n&&t;return Y(()=>{if(i&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),DC(e,i,(0,Ok.useCallback)(()=>r(!1),[])),i}function EC(e,t){let[n,r]=(0,Ok.useState)(t?`open`:`closed`);switch(n){case`open`:t||r(`exiting`);break;case`closed`:case`exiting`:t&&r(`open`);break}let i=n===`exiting`;return DC(e,i,(0,Ok.useCallback)(()=>{r(e=>e===`exiting`?`closed`:e)},[])),i}function DC(e,t,n){Y(()=>{if(t&&e.current){if(!(`getAnimations`in e.current)){n();return}let t=e.current.getAnimations();if(t.length===0){n();return}let r=!1;return Promise.all(t.map(e=>e.finished)).then(()=>{r||(0,Dk.flushSync)(()=>{n()})}).catch(()=>{}),()=>{r=!0}}},[e,t,n])}function OC(e){let t=ZM(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function kC(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 AC(e,t){return DN?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&OC(e)&&kC(e,t)&&(!e.parentElement||AC(e.parentElement,e))}function jC(e){return e.matches(kN)&&AC(e)&&!NC(e)}function MC(e){return e.matches(AN)&&AC(e)&&!NC(e)}function NC(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function PC(e,t,n){let[r,i]=(0,kk.useState)(e||t),a=(0,kk.useRef)(r),o=(0,kk.useRef)(e!==void 0),s=e!==void 0;(0,kk.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;jN(()=>{a.current=c});let[,l]=(0,kk.useReducer)(()=>({}),{});return[c,(0,kk.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),l(),n?.(r,...t))},[n])]}function FC(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function IC(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function LC(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function RC(e){let t=(0,Ak.useRef)({isFocused:!1,observer:null});Y(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]);let n=sC(t=>{e?.(t)});return(0,Ak.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener(`focusout`,e=>{if(t.current.isFocused=!1,r.disabled){let t=IC(e);n(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;(e=t.current.observer)==null||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:n})),r.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:[`disabled`]})}},[n])}function zC(e){for(;e&&!jC(e);)e=e.parentElement;let t=ZM(e),n=t.document.activeElement;if(!n||n===e)return;MN=!0;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},a=t=>{(t.target===n||r)&&(t.stopImmediatePropagation(),!e&&!r&&(r=!0,VS(n),c()))},o=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,VS(n),c()))};t.addEventListener(`blur`,i,!0),t.addEventListener(`focusout`,a,!0),t.addEventListener(`focusin`,s,!0),t.addEventListener(`focus`,o,!0);let c=()=>{cancelAnimationFrame(l),t.removeEventListener(`blur`,i,!0),t.removeEventListener(`focusout`,a,!0),t.removeEventListener(`focusin`,s,!0),t.removeEventListener(`focus`,o,!0),MN=!1,r=!1},l=requestAnimationFrame(c);return c}function BC(e){if(fN()){if(NN==="default"){let t=X(e);PN=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}NN=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;FN.set(e,e.style[t]),e.style[t]=`none`}}function VC(e){if(fN()){if(NN!==`disabled`)return;NN=`restoring`,setTimeout(()=>{rC(()=>{if(NN===`restoring`){let t=X(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=PN||``),PN=``,NN=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&FN.has(e)){let t=FN.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),FN.delete(e)}}function HC(e,t){return t.get?t.get.call(e):t.value}function UC(e,t,n){if(!t.has(e))throw TypeError(`attempted to `+n+` private field on non-instance`);return t.get(e)}function WC(e,t){return HC(e,UC(e,t,`get`))}function GC(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function KC(e,t,n){GC(e,t),t.set(e,n)}function qC(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError(`attempted to set read only private field`);t.value=n}}function JC(e,t,n){return qC(e,UC(e,t,`set`),n),n}function YC(e){let t=(0,Mk.useContext)(IN);if(t){let{register:n,...r}=t;e=V(r,e),n()}return dC(t,e.ref),e}function XC(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...p}=YC(e),[m,h]=(0,Mk.useState)(!1),g=(0,Mk.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:v}=iC(),y=sC((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new RN(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a}),b=sC((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new RN(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new RN(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c}),x=sC((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new RN(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),S=sC(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&b($C(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||VC(t.target);for(let e of t.disposables)e();t.disposables=[]}}),C=sC(e=>{u&&S(e)}),w=sC(e=>{s||o?.(e)}),T=sC((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);LC(n,t),o(IC(n))}}),E=(0,Mk.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(QC(t.nativeEvent,t.currentTarget)&&NS(t.currentTarget,PS(t.nativeEvent))){var r;tw(PS(t.nativeEvent),t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,i=y(t,`keyboard`);let r=t.currentTarget;_(X(t.currentTarget),`keyup`,kS(t=>{QC(t,r)&&!t.repeat&&NS(r,PS(t))&&e.target&&x($C(e.target,t),`keyboard`)},n),!0)}i&&t.stopPropagation(),t.metaKey&&lN()&&((r=e.metaKeyEvents)==null||r.set(t.key,t.nativeEvent))}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if(!(t&&!NS(t.currentTarget,PS(t.nativeEvent)))&&t&&t.button===0&&!e.isTriggeringEvent&&!XS.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||SC(t.nativeEvent))){let e=y(t,`virtual`),r=x(t,`virtual`),i=b(t,`virtual`);w(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=x($C(t.currentTarget,t),r),a=b($C(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,w(t),S(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&QC(t,e.target)){var r;tw(PS(t),t.key)&&t.preventDefault();let n=PS(t),i=NS(e.target,PS(t));b($C(e.target,t),`keyboard`,i),i&&T(t,e.target),v(),t.key!==`Enter`&&ZC(e.target)&&NS(e.target,n)&&!t[zN]&&(t[zN]=!0,XS(e.target,t,!1)),e.isPressed=!1,(r=e.metaKeyEvents)==null||r.delete(t.key)}else if(t.key===`Meta`&&(n=e.metaKeyEvents)!=null&&n.size){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())(i=e.target)==null||i.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!NS(t.currentTarget,PS(t.nativeEvent)))return;if(CC(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||BC(e.target),i=y(t,e.pointerType);let a=PS(t.nativeEvent);`releasePointerCapture`in a&&a.releasePointerCapture(t.pointerId),_(X(t.currentTarget),`pointerup`,n,!1),_(X(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(NS(t.currentTarget,PS(t.nativeEvent))&&t.button===0){if(l){let n=zC(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{!NS(t.currentTarget,PS(t.nativeEvent))||e.pointerType===`virtual`||t.button===0&&!e.isPressed&&x(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,y($C(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,b($C(e.target,t),e.pointerType,!1),C(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(NS(e.target,PS(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?S(t):(VS(e.target),e.target.click()))},80);_(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else S(t);e.isOverTarget=!1}},r=e=>{S(e)};t.onDragStart=e=>{NS(e.currentTarget,PS(e.nativeEvent))&&S(e)}}return t},[_,s,l,v,d,S,C,b,y,x,w,T]);return(0,Mk.useEffect)(()=>{if(!f)return;let e=X(f.current);if(!e||!e.head||e.getElementById(BN))return;let t=e.createElement(`style`);t.id=BN,t.textContent=`
187
+ `});let m=e.versions&&Object.keys(e.versions).length?e.versions:s.versions;await a.setRef(t,{id:t,url:u.url,...s,...m?{versions:m}:{},type:s.storyIndex?`lazy`:`auto-inject`})},getRefs:()=>{let{refs:t={}}=e.getState();return t},setRef:async(i,{storyIndex:o,setStoriesData:s,...c},l=!1)=>{if(n)return;let u,d,f,{filters:p}=e.getState(),{storyMapper:m=ny}=t.getConfig(),h=a.getRefs()[i];(o||s)&&(u=s?Gv(oy(s,h,{storyMapper:m})):o,f=Yv(o,{provider:t,docsOptions:r,filters:p,allStatuses:{}}),d=Yv(o,{provider:t,docsOptions:r,filters:{},allStatuses:{}})),d&&=(d=ry(d,h),iy(d,h?.storyUpdates)),f&&=(f=ry(f,h),iy(f,h?.storyUpdates)),await a.updateRef(i,{...h,...c,index:d,filteredIndex:f,internal_index:u})},updateRef:async(t,n)=>{let{[t]:r,...i}=a.getRefs();i[t]={...r,...n};let o=Object.keys(s).reduce((e,t)=>(e[t]=i[t],e),{});await e.setState({refs:o})}},o=!n&&Bv.REFS||{},s=o;return i&&new Promise(async e=>{for(let e of Object.values(o))await a.checkRef({...e,stories:{}});e(void 0)}),{api:a,state:{refs:s}}},cy=(e,t)=>{let{source:n,refId:r,type:i}=e,[a,o]=ty(n,r),s;(r||a===`external`)&&(s=r&&t.getRefs()[r]?t.getRefs()[r]:t.findRef(o));let c={source:n,sourceType:a,sourceLocation:o,refId:r,ref:s,type:i};switch(!0){case typeof r==`string`:case a===`local`:case a===`external`:return c;default:return Rv.warn(`Received a ${i} frame that was not configured as a ref`),null}},ly=({store:e,fullAPI:t,provider:n})=>{let r={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(e){n.channel?.emit(Lv,{globals:e,options:{target:`storybook-preview-iframe`}})}},i={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},a=({globals:t,storyGlobals:n,userGlobals:r})=>{let{globals:i,userGlobals:a,storyGlobals:o}=e.getState();Ro(t,i)||e.setState({globals:t}),Ro(r,a)||e.setState({userGlobals:r}),Ro(n,o)||e.setState({storyGlobals:n})};return n.channel?.on(Fv,function({globals:e,storyGlobals:n,userGlobals:r}){let{ref:i}=cy(this,t);i?Pv.warn(`received a GLOBALS_UPDATED from a non-local ref. This is not currently supported.`):a({globals:e,storyGlobals:n,userGlobals:r})}),n.channel?.on(Iv,function({globals:n,globalTypes:i}){let{ref:a}=cy(this,t),o=e.getState()?.userGlobals;a?Object.keys(n).length>0&&Pv.warn(`received globals from a non-local ref. This is not currently supported.`):e.setState({globals:n,userGlobals:n,globalTypes:i}),o&&Object.keys(o).length!==0&&!Ro(n,o)&&r.updateGlobals(o)}),{api:r,state:i}},uy={},_(uy,{ActiveTabs:()=>gy,DEFAULT_BOTTOM_PANEL_HEIGHT:()=>yy,DEFAULT_NAV_SIZE:()=>vy,DEFAULT_RIGHT_PANEL_WIDTH:()=>by,focusableUIElements:()=>Sy,getDefaultLayoutState:()=>xy,init:()=>ky,isPagesViewMode:()=>_y}),{SET_CONFIG:dy}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:fy}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:py}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{document:my}=fy,hy=e=>typeof e==`function`,gy={SIDEBAR:`sidebar`,CANVAS:`canvas`,ADDONS:`addons`},_y=e=>e!==void 0&&e!==`story`&&e!==`docs`&&e!==`review`,vy=300,yy=300,by=400,xy=()=>({ui:{enableShortcuts:!0},layout:{initialActive:gy.CANVAS,navSize:vy,bottomPanelHeight:yy,rightPanelWidth:by,recentVisibleSizes:{navSize:vy,bottomPanelHeight:yy,rightPanelWidth:by},panelPosition:`bottom`,showNav:!0,showPanel:!0,showTabs:!0,showToolbar:!0},layoutCustomisations:{showPanel:void 0,showSidebar:void 0,showToolbar:void 0},selectedPanel:void 0,theme:ie()}),Sy={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`},Cy=e=>e.layout.navSize>0,wy=e=>{let{bottomPanelHeight:t,rightPanelWidth:n,panelPosition:r}=e.layout;return r===`bottom`&&t>0||r===`right`&&n>0},Ty=e=>!Cy(e)&&!wy(e),Ey=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}),Dy=(e,t,n)=>{let r=Object.keys(e),i=l(t,r);for(let e of Object.keys(i))py(`Calling \`setConfig({ ${e}: ... })\` is deprecated. Please call \`setConfig({ layout: { ${e}: ... } })\` instead.`);let a=o(i,t.layout||{}),{showPanel:s,showNav:c}=a,u=o(e,l(a,r));return c===!1||n?(u.recentVisibleSizes=Ey(u),u.navSize=0):c===!0&&(u.navSize=u.recentVisibleSizes.navSize),s===!1?(u.recentVisibleSizes=Ey(u),u.bottomPanelHeight=0,u.rightPanelWidth=0):s===!0&&(u.bottomPanelHeight=u.recentVisibleSizes.bottomPanelHeight,u.rightPanelWidth=u.recentVisibleSizes.rightPanelWidth),u},Oy=(e,t)=>{let n=Object.keys(e),r=l(t,n);for(let e of Object.keys(r))py(`Calling \`setConfig({ ${e}: ... })\` is deprecated. Please call \`setConfig({ ui: { ${e}: ... } })\` instead.`);let i=n;return o(e,l(o(r,t.ui||{}),i))},ky=({store:e,provider:t,singleStory:n})=>{let r={toggleFullscreen(t){return e.setState(e=>{let n=Ty(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Ey(e.layout)}}:{layout:{...e.layout,navSize:e.singleStory?0:e.layout.recentVisibleSizes.navSize,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`session`})},togglePanel(t){return e.setState(e=>{let n=wy(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...e.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Ey(e.layout)}}},{persistence:`session`})},togglePanelPosition(t){return e.setState(e=>{let n=t||(e.layout.panelPosition===`right`?`bottom`:`right`);return{layout:{...e.layout,panelPosition:n,bottomPanelHeight:e.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:`permanent`})},toggleNav(t){return e.setState(e=>{if(e.singleStory)return{layout:e.layout};let n=Cy(e),r=typeof t==`boolean`?t:!n;return r===n?{layout:e.layout}:r?{layout:{...e.layout,navSize:e.layout.recentVisibleSizes.navSize}}:{layout:{...e.layout,navSize:0,recentVisibleSizes:Ey(e.layout)}}},{persistence:`session`})},toggleToolbar(t){return e.setState(e=>{let n=typeof t<`u`?t:!e.layout.showToolbar;return{layout:{...e.layout,showToolbar:n}}},{persistence:`session`})},setSizes({navSize:t,bottomPanelHeight:n,rightPanelWidth:r}){return e.setState(e=>{let i={...e.layout,navSize:t??e.layout.navSize,bottomPanelHeight:n??e.layout.bottomPanelHeight,rightPanelWidth:r??e.layout.rightPanelWidth};return{layout:{...i,recentVisibleSizes:Ey(i)}}},{persistence:`session`})},focusOnUIElement(e,t){let{forceFocus:n=!1,select:r=!1,poll:i=!0}=typeof t==`boolean`?{select:t}:t??{};if(!e)return!1;let a=()=>{let t=my.getElementById(e);return!t||(t.focus(),t!==my.activeElement&&n&&t.getAttribute(`tabindex`)===null&&(t.setAttribute(`tabindex`,`-1`),t.focus()),t!==my.activeElement&&t.id!==my.activeElement?.id)?!1:(r&&t.select?.(),!0)};return a()?!0:i?new Promise(e=>{let t=Date.now(),n=setInterval(()=>{let r=Date.now()-t;if(a()){clearInterval(n),e(!0);return}r>=500&&(clearInterval(n),e(!1))},50)}):!1},getInitialOptions(){let e=t.getConfig(),r=xy(),{theme:i,selectedPanel:a,layoutCustomisations:o}=e;return{...r,layout:Dy(r.layout,e,!!n),layoutCustomisations:{...r.layoutCustomisations,...o??{}},ui:Oy(r.ui,e),selectedPanel:a||r.selectedPanel,theme:i||r.theme}},getIsFullscreen(){return Ty(e.getState())},getIsPanelShown(){return wy(e.getState())},getIsNavShown(){return Cy(e.getState())},getNavAvailability(){let t=e.getState();return ht(t.path,t.customQueryParams)?`unavailable`:Cy(t)?`shown`:`hidden`},getShowToolbarWithCustomisations(t){let n=e.getState();return hy(n.layoutCustomisations.showToolbar)?n.layoutCustomisations.showToolbar(n,t)??t:t},getShowPanelWithCustomisations(t){let n=e.getState();return hy(n.layoutCustomisations.showPanel)?n.layoutCustomisations.showPanel(n,t)??t:t},getNavSizeWithCustomisations(t){let n=e.getState();if(hy(n.layoutCustomisations.showSidebar)){let e=n.layoutCustomisations.showSidebar(n,t!==0);if(t===0&&e===!0)return n.layout.recentVisibleSizes.navSize;if(t!==0&&e===!1)return 0}return t},setOptions:t=>{let{layout:r,ui:i,selectedPanel:a,theme:o}=e.getState();if(!t)return;let s=Dy(r,t,!!n),c=Oy(i,t),l={...o,...t.theme},d={};u(i,c)||(d.ui=c),u(r,s)||(d.layout=s),t.selectedPanel&&!u(a,t.selectedPanel)&&(d.selectedPanel=t.selectedPanel),Object.keys(d).length&&e.setState(d,{persistence:`permanent`}),u(o,l)||e.setState({theme:l})}},i=l(e.getState(),[`layout`,`selectedPanel`]);return t.channel?.on(dy,()=>{r.setOptions(vv(r.getInitialOptions(),i))}),{api:r,state:vv(r.getInitialOptions(),i)}},Ay={},_(Ay,{init:()=>jy}),jy=({store:e})=>({api:{addNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=zo(e,e=>e.id===t.id);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:[...r,t]}})},clearNotification:t=>{e.setState(({notifications:e})=>{let[n,r]=zo(e,e=>e.id===t);return n.forEach(e=>{e.onClear&&e.onClear({dismissed:!1,timeout:!1})}),{notifications:r}})}},state:{notifications:[]}}),My={},_(My,{init:()=>Fy}),{OPEN_IN_EDITOR_REQUEST:Ny,OPEN_IN_EDITOR_RESPONSE:Py}=__STORYBOOK_MODULE_CORE_EVENTS__,Fy=({provider:e,fullAPI:t})=>({api:{openInEditor(t){return new Promise(n=>{let{file:r,line:i,column:a}=t,o=t=>{t.file===r&&t.line===i&&t.column===a&&(e.channel?.off(Py,o),n(t))};e.channel?.on(Py,o),e.channel?.emit(Ny,t)})}},state:{notifications:[]},init:async()=>{let{color:n}=await a(async()=>{let{color:e}=await import(`./theming-fbSD9ZLF.js`).then(e=>(e.a(),e.d));return{color:e}},__vite__mapDeps([0,1,2,3,4]),import.meta.url);e.channel?.on(Py,e=>{e.error!==null&&t.addNotification({id:`open-in-editor-error`,content:{headline:`Failed to open in editor`,subHeadline:e.error||`Check the Storybook process on the command line for more details.`},icon:rv.createElement(je,{color:n.negative}),duration:8e3})})}}),Iy={},_(Iy,{init:()=>Ly}),Ly=({provider:e})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{}}),Ry={},_(Ry,{init:()=>zy}),zy=({store:e,navigate:t,fullAPI:n})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:()=>{let{settings:{lastTrackedStoryId:t}}=e.getState();t?n.selectStory(t):n.selectFirstStory()},changeSettingsTab:e=>{t(`/settings/${e}`)},isSettingsScreenActive:()=>{let{path:e}=n.getUrlState();return!!(e||``).match(/^\/settings/)},retrieveSelection(){let{settings:t}=e.getState();return t.lastTrackedStoryId},storeSelection:async()=>{let{storyId:t,settings:n}=e.getState();await e.setState({settings:{...n,lastTrackedStoryId:t}})}}}),By={},_(By,{controlOrMetaKey:()=>ab,defaultShortcuts:()=>ob,init:()=>cb,isMacLike:()=>ib,keys:()=>q_}),Vy=m(cv(),1),{FORCE_REMOUNT:Hy,PREVIEW_KEYDOWN:Uy,STORIES_COLLAPSE_ALL:Wy,STORIES_EXPAND_ALL:Gy}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Ky}=__STORYBOOK_MODULE_GLOBAL__,{global:qy}=__STORYBOOK_MODULE_GLOBAL__,{navigator:Jy}=qy,Yy=()=>Jy&&Jy.platform?!!Jy.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,Xy=()=>Yy()?`⌥`:`alt`,Zy=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 n=e.code?.toUpperCase(),r=n?n.startsWith(`KEY`)&&n.length===4?n.replace(`KEY`,``):n.startsWith(`DIGIT`)?n.replace(`DIGIT`,``):{MINUS:`-`,EQUAL:`=`,BRACKETLEFT:`[`,BRACKETRIGHT:`]`,BACKSLASH:`\\`,SEMICOLON:`;`,QUOTE:`'`,BACKQUOTE:"`",COMMA:`,`,PERIOD:`.`,SLASH:`/`}[n]:void 0;if(e.key&&e.key.length===1&&e.key!==` `){let n=e.key.toUpperCase(),i=r;i&&i.length===1&&i!==n?t.push([n,i]):t.push(n)}else e.key===`Dead`&&r&&t.push(r);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},Qy=(e,t)=>!e||!t||(e.join(``).startsWith(`shift/`)&&e.shift(),e.length!==t.length)?!1:!e.find((e,n)=>Array.isArray(e)?!e.includes(t[n]):e!==t[n]),$y=e=>e===`alt`?Xy():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(),eb=e=>e.map($y).join(` `),tb=e=>e.map(e=>e===`+`?`plus`:e===` `?`space`:e).join(`+`),{navigator:nb,document:rb}=Ky,ib=()=>nb&&nb.platform?!!nb.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,ab=()=>ib()?`meta`:`control`,ob=Object.freeze({fullScreen:[`alt`,`F`],togglePanel:[`alt`,`A`],panelPosition:[`alt`,`D`],toggleNav:[`alt`,`S`],toolbar:[`alt`,`T`],search:[ab(),`K`],focusNav:[`1`],focusIframe:[`2`],focusPanel:[`3`],prevComponent:[`alt`,`ArrowUp`],nextComponent:[`alt`,`ArrowDown`],prevStory:[`alt`,`ArrowLeft`],nextStory:[`alt`,`ArrowRight`],shortcutsPage:[ab(),`shift`,`,`],aboutPage:[ab(),`,`],escape:[`escape`],collapseAll:[ab(),`shift`,`ArrowUp`],expandAll:[ab(),`shift`,`ArrowDown`],remount:[`alt`,`R`],openInEditor:[`alt`,`shift`,`E`],openInIsolation:[`alt`,`shift`,`I`],copyStoryLink:[`alt`,`shift`,`L`],goToPreviousLandmark:[`shift`,`F6`],goToNextLandmark:[`F6`]}),sb={},cb=({store:e,fullAPI:t,provider:n})=>{let r={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...ob,...r.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return sb},getAddonsShortcutLabels(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{label:n}])=>{e[t]=n}),e},getAddonsShortcutDefaults(){let e={};return Object.entries(r.getAddonsShortcuts()).forEach(([t,{defaultShortcut:n}])=>{e[t]=n}),e},async setShortcuts(t){let{shortcuts:n}=await e.setState(e=>({shortcuts:typeof t==`function`?t(e.shortcuts):t}),{persistence:`permanent`});return n},async restoreAllDefaultShortcuts(){return r.setShortcuts(r.getDefaultShortcuts())},async setShortcut(e,t){return await r.setShortcuts(n=>({...n,[e]:t})),t},async setAddonShortcut(e,t){return await r.setShortcuts(n=>({...n,[`${e}-${t.actionName}`]:t.defaultShortcut})),sb[`${e}-${t.actionName}`]=t,t},async restoreDefaultShortcut(e){let t=r.getDefaultShortcuts()[e];return r.setShortcut(e,t)},handleKeydownEvent(e){let t=Zy(e),n=r.getShortcutKeys(),i=q_(n).find(e=>Qy(t,n[e]));i&&r.handleShortcutFeature(i,e)},handleShortcutFeature(n,r){let{ui:{enableShortcuts:i},storyId:a,refId:o,viewMode:s}=e.getState();if(!i)return;let c=t.getNavAvailability()===`unavailable`,l=[`focusNav`,`search`,`toggleNav`].includes(n);if(!(c&&l))switch(r?.preventDefault&&r.preventDefault(),n){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(Sy.storyListMenu);break;case`search`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsNavShown()||t.toggleNav(!0),setTimeout(()=>{t.focusOnUIElement(Sy.storySearchField,!0)},0);break;case`focusIframe`:{let e=rb.getElementById(`storybook-preview-iframe`);if(e)try{e.contentWindow.focus()}catch{}break}case`focusPanel`:t.getIsFullscreen()&&t.toggleFullscreen(!1),t.getIsPanelShown()||t.togglePanel(!0),t.focusOnUIElement(Sy.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 e=t.getIsPanelShown(),n=rb.getElementById(Sy.addonPanel);t.togglePanel(),e&&K_(n)&&t.focusOnUIElement(Sy.showAddonPanel,{poll:!0}).then(e=>{e===!1&&rb.body.focus()}),e||t.focusOnUIElement(Sy.addonPanel,{forceFocus:!0,poll:!0});break}case`toggleNav`:{let e=t.getIsNavShown(),n=rb.getElementById(Sy.sidebarRegion);t.toggleNav(),e&&K_(n)&&t.focusOnUIElement(Sy.showSidebar,{poll:!0}).then(e=>{e===!1&&rb.body.focus()}),e||t.focusOnUIElement(Sy.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(Wy);break;case`expandAll`:t.emit(Gy);break;case`remount`:t.emit(Hy,{storyId:a});break;case`openInEditor`:Ky.CONFIG_TYPE===`DEVELOPMENT`&&t.openInEditor({file:t.getCurrentStoryData().importPath});break;case`openInIsolation`:if(a&&s===`story`){let{previewHref:e}=t.getStoryHrefs(a,{refId:o});window.open(e,`_blank`,`noopener,noreferrer`)}break;case`copyStoryLink`:if(a){let{managerHref:e}=t.getStoryHrefs(a,{refId:o});(0,Vy.default)(e)}break;default:sb[n].action();break}}},{shortcuts:i=ob}=e.getState();return{api:r,state:{shortcuts:q_(ob).reduce((e,t)=>({...e,[t]:i[t]||ob[t]}),ob)},init:()=>{rb.addEventListener(`keydown`,e=>{J_(e)||r.handleKeydownEvent(e)}),n.channel?.on(Uy,e=>{r.handleKeydownEvent(e.event)})}}},lb={},_(lb,{init:()=>nx}),{logger:ub}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:db,CURRENT_STORY_WAS_SET:fb,DOCS_PREPARED:pb,PRELOAD_ENTRIES:mb,RESET_STORY_ARGS:hb,SELECT_STORY:gb,SET_CONFIG:_b,SET_CURRENT_STORY:vb,SET_FILTER:yb,SET_INDEX:bb,SET_STORIES:xb,SIDEBAR_FILTER_CHANGED:Sb,STORY_ARGS_UPDATED:Cb,STORY_CHANGED:wb,STORY_INDEX_INVALIDATED:Tb,STORY_MISSING:Eb,STORY_PREPARED:Db,STORY_SPECIFIED:Ob,UPDATE_STORY_ARGS:kb}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Ab}=__STORYBOOK_MODULE_GLOBAL__,jb=(e,t={})=>[e,...Object.entries(t).filter(([e,t])=>e!==`path`&&t!=null).sort(([e],[t])=>e<t?-1:1).map(([e,t])=>`${e}=${t}`)].join(`&`),Mb=(e,t)=>{let n=iv.useRef(t?t(e.getState()):e.getState()),r=iv.useCallback(r=>e.onStateChange((e,i)=>{if(!t){n.current=e,r();return}let a=t(e);!u(a,t(i))&&(n.current=a,r())}),[e,t]),i=iv.useCallback(()=>{let r=e.getState(),i=t?t(r):r;return u(i,n.current)||(n.current=i),n.current},[e,t]);return[iv.useSyncExternalStore(r,i),e.setState]},{fullStatusStore:Nb,getStatusStoreByTypeId:Pb,useStatusStore:Fb,universalStatusStore:Ib}=it({universalStatusStore:hn.create({...lt,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:Mb,environment:`manager`}),Lb=(e,t)=>{if(!e)return{included:[],excluded:[]};let n=[],r=[];return e.split(`;`).forEach(e=>{if(!e)return;let i=e.startsWith(`!`),a=t(i?e.slice(1):e);a!=null&&(i?r.push(a):n.push(a))}),{included:n,excluded:r}},Rb=e=>Lb(e,st),zb=(e,t)=>{if(!e.length&&!t.length)return;let n=e.map(e=>ct(e)).sort(),r=t.map(e=>`!${ct(e)}`).sort();return[...n,...r].join(`;`)},Bb=(e,t)=>n=>{if(!e.length&&!t.length)return!0;let r=(Nb.getAll()??{})[n.id],i=r?Object.values(r).map(e=>e.value):[],a=!e.length||e.some(e=>i.includes(e)),o=!t.length||t.every(e=>!i.includes(e));return a&&o},Vb=m(fe(),1),Hb={$docs:`_docs`,$play:`_play`,$test:`_test`},Ub=e=>Lb(e,e=>Hb[e]??e),Wb=(e,t)=>{if(!e.length&&!t.length)return``;let n=Object.fromEntries(Object.entries(Hb).map(([e,t])=>[t,e])),r=e.map(e=>n[e]??e).sort(),i=t.map(e=>`!${n[e]??e}`).sort();return[...r,...i].join(`;`)},Gb=(0,Vb.default)(1)(e=>{let t=Object.entries(e);return{included:t.filter(([,e])=>e.defaultFilterSelection===`include`).map(([e])=>e),excluded:t.filter(([,e])=>e.defaultFilterSelection===`exclude`).map(([e])=>e)}}),Kb=e=>{let t=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return r.excludeFromSidebar&&(e[n]=!0),e},{});return e=>{let n=e.tags??[],r=e.type===`docs`&&!n.includes(Wo.ATTACHED_MDX)&&!n.includes(Wo.UNATTACHED_MDX);return(n.includes(Wo.DEV)||r)&&n.filter(e=>t[e]).length===0}},qb=(e,t)=>{let n=e=>Object.values(e.reduce((e,t)=>(Object.hasOwn(Go,t)?e[`built-in`].push(Go[t]):e.user.push(Ko(t)),e),{"built-in":[],user:[]})).filter(e=>e.length>0);return r=>{let i=n(e),a=n(t);return(!i.length||i.every(e=>e.some(e=>e(r,!1))))&&(!a.length||a.every(e=>e.every(e=>e(r,!0))))}},{fetch:Jb}=Ab,Yb=`./index.json`,Xb=`tags-filter`,Zb=`static-filter`,Qb=`status-filter`,$b=new Set(Object.keys(Go)),ex=[`enableShortcuts`,`theme`,`showRoots`],tx={tag:{included:`includedTagFilters`,excluded:`excludedTagFilters`},status:{included:`includedStatusFilters`,excluded:`excludedStatusFilters`}},nx=({fullAPI:e,store:t,navigate:n,provider:r,state:{location:i}={},storyId:a,viewMode:o,docsOptions:s={}})=>{let c=(e,r)=>{let{customQueryParams:i}=t.getState();n(jb(e,i??{}),r)},l=e=>t.setState(e,{persistence:`url`,serialize:e=>{let t=Wb(e.includedTagFilters,e.excludedTagFilters),n=zb(e.includedStatusFilters,e.excludedStatusFilters);return{tags:t??null,statuses:n??null}}}),u=!1,d=async(e,n,r)=>{let{included:i,excluded:a}=tx[e],o=t.getState(),s=new Set(o[i]),c=new Set(o[a]);for(let e of n){let[t,n]=r?[c,s]:[s,c];n.delete(e),t.add(e)}await l({[i]:Array.from(s),[a]:Array.from(c)})},f=async(e,n)=>{let{included:r,excluded:i}=tx[e],a=t.getState(),o=new Set(n);await l({[r]:a[r].filter(e=>!o.has(e)),[i]:a[i].filter(e=>!o.has(e))})},p=(e,n)=>{let i=t.getState(),a=(i.includedTagFilters??[]).filter(e=>$b.has(e)),o=(i.excludedTagFilters??[]).filter(e=>$b.has(e)),s=!!globalThis?.FEATURES?.changeDetection,c=s?i.includedStatusFilters??[]:[],l=s?i.excludedStatusFilters??[]:[],u={},d=i.internal_index?Object.values(i.internal_index.entries):[];for(let e of new Set([...a,...o])){let t=Go[e];u[e]=d.filter(e=>t(e)).length}if(c.length>0||l.length>0){let e=rt(Nb.getAll());for(let t of new Set([...c,...l]))e[t]!==void 0&&(u[t]=e[t])}r.channel?.emit(Sb,{trigger:e,changed:n,activeTagFilters:{included:a,excluded:o},activeStatusFilters:{included:c,excluded:l},storyCounts:u})},m={storyId:nh,getData:(e,t)=>{let n=m.resolveStory(e,t);if(n?.type===`story`||n?.type===`docs`)return n},isPrepared:(e,t)=>{let n=m.getData(e,t);return n?n.type!==`story`||n.prepared:!1},resolveStory:(e,n)=>{let{refs:r,index:i}=t.getState();if(!(n&&!r[n]))return n?r?.[n]?.index?.[e]??void 0:i?i[e]:void 0},getCurrentStoryData:()=>{let{storyId:e,refId:n}=t.getState();return m.getData(e,n)},getIndex:()=>{let{internal_index:e}=t.getState();return e},getParameters:(e,t)=>{let{storyId:n,refId:r}=typeof e==`string`?{storyId:e,refId:void 0}:e,i=m.getData(n,r);if([`story`,`docs`].includes(i?.type)){let{parameters:e}=i;if(e)return t?e[t]:e}return null},getCurrentParameter:e=>{let{storyId:n,refId:r}=t.getState();return m.getParameters({storyId:n,refId:r},e)||void 0},jumpToComponent:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState();if(!m.getData(r,a))return;let o=a?i[a].filteredIndex||{}:n;if(!o)return;let s=m.findSiblingStoryId(r,o,e,!0);s&&m.selectStory(s,void 0,{ref:a})},jumpToStory:e=>{let{filteredIndex:n,storyId:r,refs:i,refId:a}=t.getState(),o=m.getData(r,a);if(!o)return;let s=o.refId?i[o.refId].filteredIndex:n;if(!s)return;let c=m.findSiblingStoryId(r,s,e,!1);c&&m.selectStory(c,void 0,{ref:a})},selectFirstStory:()=>{let e=t.getState(),{filteredIndex:n}=e;if(n){let e=Object.keys(n).find(e=>n[e].type===`story`);e&&m.selectStory(e);return}let{index:r}=e;if(!r)return;let i=Object.keys(r).find(e=>r[e].type===`story`);if(i){m.selectStory(i);return}c(`/`)},selectStory:(e=void 0,n=void 0,r={})=>{let{ref:i}=r,{storyId:a,index:o,filteredIndex:s,refs:l,settings:u}=t.getState(),d=e=>e?.type===`docs`||e?.type===`story`?(t.setState({settings:{...u,lastTrackedStoryId:e.id}}),c(`/${e.type}/${e.refId?`${e.refId}_${e.id}`:e.id}`),!0):!1,f=a?.split(`--`,2)[0],p=i?l[i].index:o,h=i?l[i].filteredIndex:s;if(!(!p||!h))if(n)if(!e)d(p[nh(f,n)]);else{let t=i?`${i}_${nh(e,n)}`:nh(e,n);if(p[t])d(p[t]);else{let t=p[eh(e)];if(t?.type===`component`){let e=t.children.find(e=>p[e].name===n);d(e?p[e]:void 0)}}}else{let t=e?p[e]||p[eh(e)]:p[f];if(!t)throw Error(`Unknown id or title: '${e}'`);d(t)||d(m.findLeafEntry(h,t.id))}},findLeafEntry(e,t){let n=e[t];if(!n)return;if(n.type===`docs`||n.type===`story`)return n;let r=n.children.find(t=>e[t]);return r?m.findLeafEntry(e,r):void 0},findLeafStoryId(e,t){return m.findLeafEntry(e,t)?.id},findAllLeafStoryIds(e){let{index:n}=t.getState();if(!n)return[];let r=(e,t=[])=>{let i=n[e];return i&&(i.type===`story`&&t.push(i.id),`children`in i&&i.children?.forEach(e=>r(e,t))),t};return r(e,[])},findSiblingStoryId(e,t,n,r){if(r){let r=Zv(t),i=r.findIndex(t=>t.includes(e));return i===r.length-1&&n>0||i===0&&n<0?void 0:r[i+n]?r[i+n][0]:void 0}let i=Qv(t),a=i.indexOf(e);if(!(a===i.length-1&&n>0)&&!(a===0&&n<0))return i[a+n]},updateStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(kb,{storyId:n,updatedArgs:t,options:{target:i}})},resetStoryArgs:(e,t)=>{let{id:n,refId:i}=e;r.channel?.emit(hb,{storyId:n,argNames:t,options:{target:i}})},fetchIndex:async()=>{try{let e=await Jb(Yb);if(e.status!==200)throw Error(await e.text());let t=await e.json();if(t.v<3){ub.warn(`Skipping story index with version v${t.v}, awaiting SET_STORIES.`);return}await m.setIndex(t)}catch(e){await t.setState({indexError:e})}},setIndex:async e=>{let{filteredIndex:n,index:i,filters:a}=t.getState(),o=Nb.getAll(),c=Yv(e,{provider:r,docsOptions:s,filters:a,allStatuses:o,statusFilterKey:Qb}),l=Yv(e,{provider:r,docsOptions:s,filters:{},allStatuses:o});await t.setState({internal_index:e,filteredIndex:Xv(c,n),index:Xv(l,i),indexError:void 0})},updateStory:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i,s={...i.storyUpdates,[n]:{...i.storyUpdates?.[n],...r}};a&&a[n]&&(a[n]={...a[n],...r}),o&&o[n]&&(o[n]={...o[n],...r}),await e.updateRef(t,{index:a,filteredIndex:o,storyUpdates:s})}else{let{index:e,filteredIndex:i}=t.getState();e&&e[n]&&(e[n]={...e[n],...r}),i&&i[n]&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},updateDocs:async(n,r,i)=>{if(i){let{id:t,index:a,filteredIndex:o}=i,s={...i.storyUpdates,[n]:{...i.storyUpdates?.[n],...r}};a&&a[n]&&(a[n]={...a[n],...r}),o&&o[n]&&(o[n]={...o[n],...r}),await e.updateRef(t,{index:a,filteredIndex:o,storyUpdates:s})}else{let{index:e,filteredIndex:i}=t.getState();e&&(e[n]={...e[n],...r}),i&&(i[n]={...i[n],...r}),(e||i)&&await t.setState({index:e,filteredIndex:i})}},setPreviewInitialized:async n=>{n?e.updateRef(n.id,{previewInitialized:!0}):t.setState({previewInitialized:!0})},experimental_setFilter:async(n,i)=>{await t.setState(e=>({filters:{...e.filters,[n]:i}}));let{internal_index:a}=t.getState();if(!a)return;await m.setIndex(a);let o=await e.getRefs();for(let[t,{internal_index:n,...r}]of Object.entries(o))await e.setRef(t,{...r,storyIndex:n},!0);r.channel?.emit(yb,{id:n})},resetTagFilters:async()=>{await l(e=>({includedTagFilters:e.defaultIncludedTagFilters,excludedTagFilters:e.defaultExcludedTagFilters})),await h()},setAllTagFilters:async(e,t)=>{await l({includedTagFilters:e,excludedTagFilters:t}),await h()},addTagFilters:async(e,t)=>{await d(`tag`,e,t),await h(),e.length===1&&$b.has(e[0])&&p(`interaction`,{filterType:`tag`,filterId:e[0],action:t?`exclude`:`include`})},removeTagFilters:async e=>{await f(`tag`,e),await h(),e.length===1&&$b.has(e[0])&&p(`interaction`,{filterType:`tag`,filterId:e[0],action:`remove`})},resetStatusFilters:async()=>{await l({includedStatusFilters:[],excludedStatusFilters:[]}),await g()},setAllStatusFilters:async(e,n)=>{let r=t.getState(),i=new Set(r.includedStatusFilters??[]),a=new Set(r.excludedStatusFilters??[]),o=new Set(e),s=new Set(n);await l({includedStatusFilters:e,excludedStatusFilters:n}),await g();let c=new Set([...i,...a,...o,...s]);for(let e of c){let t=i.has(e),n=a.has(e),r=o.has(e),c=s.has(e);if(t===r&&n===c)continue;let l;l=r?`include`:c?`exclude`:`remove`,p(`interaction`,{filterType:`status`,filterId:e,action:l})}},addStatusFilters:async(e,t)=>{await d(`status`,e,t),await g(),e.length===1&&p(`interaction`,{filterType:`status`,filterId:e[0],action:t?`exclude`:`include`})},removeStatusFilters:async e=>{await f(`status`,e),await g(),e.length===1&&p(`interaction`,{filterType:`status`,filterId:e[0],action:`remove`})}},h=()=>{let{includedTagFilters:e,excludedTagFilters:n}=t.getState();return m.experimental_setFilter(Xb,qb(e,n))},g=()=>{let{includedStatusFilters:e,excludedStatusFilters:n}=t.getState();return m.experimental_setFilter(Qb,Bb(e??[],n??[]))};r.channel?.on(Ob,function({storyId:n,viewMode:i}){let{sourceType:a}=cy(this,e);if(a===`local`){let e=t.getState(),a=!ht(e.path,e.customQueryParams)&&(e.path===`/`||e.viewMode===`story`||e.viewMode===`docs`),o=e.viewMode&&e.storyId,s=e.viewMode!==i||e.storyId!==n,{type:l}=e.index?.[e.storyId]||{},u=!(l===`root`||l===`component`||l===`group`);if(a){let{filteredIndex:t}=e;if(t&&!o&&t[n]?.type!==`story`){let e=t?Object.keys(t).find(e=>{let n=t[e];return n.type===`story`||n.type===`docs`}):void 0;e&&c(`/${i}/${e}`);return}o&&s&&u?r.channel?.emit(vb,{storyId:e.storyId,viewMode:e.viewMode}):s&&c(`/${i}/${n}`)}}}),r.channel?.on(fb,function(){let{ref:t}=cy(this,e);m.setPreviewInitialized(t)}),r.channel?.on(wb,function(){let{sourceType:t}=cy(this,e);if(t===`local`){let t=m.getCurrentParameter(`options`);t&&e.setOptions(Y_(t))}}),r.channel?.on(Db,function({id:n,...i}){let{ref:a,sourceType:o}=cy(this,e);if(m.updateStory(n,{...i,prepared:!0},a),!a&&!t.getState().hasCalledSetOptions){let{options:n}=i.parameters;e.setOptions(Y_(n)),t.setState({hasCalledSetOptions:!0})}if(o===`local`){let{storyId:e,index:n,refId:i}=t.getState();if(!n)return;let a=Array.from(new Set([m.findSiblingStoryId(e,n,1,!0),m.findSiblingStoryId(e,n,-1,!0)])).filter(Boolean);r.channel?.emit(mb,{ids:a,options:{target:i}})}}),r.channel?.on(pb,function({id:t,...n}){let{ref:r}=cy(this,e);m.updateStory(t,{...n,prepared:!0},r)}),r.channel?.on(bb,function(t){let{ref:n}=cy(this,e);if(n)e.setRef(n.id,{...n,storyIndex:t},!0);else{m.setIndex(t);let n=m.getCurrentParameter(`options`);e.setOptions(Y_(n))}}),r.channel?.on(xb,function(t){let{ref:n}=cy(this,e),r=t.v?Wv(t):t.stories;if(n)e.setRef(n.id,{...n,setStoriesData:r},!0);else throw Error(`Cannot call SET_STORIES for local frame`)}),r.channel?.on(gb,function({kind:t,title:n=t,story:r,name:i=r,storyId:a,...o}){let{ref:s}=cy(this,e);s?e.selectStory(a||n,i,{...o,ref:s.id}):e.selectStory(a||n,i,o)}),r.channel?.on(Cb,function({storyId:t,args:n}){let{ref:r}=cy(this,e);m.updateStory(t,{args:n},r)}),r.channel?.on(db,function(t){let{ref:n}=cy(this,e);m.setPreviewInitialized(n)}),r.channel?.on(Eb,function(t){let{ref:n}=cy(this,e);m.setPreviewInitialized(n)}),r.channel?.on(_b,()=>{let e=r.getConfig()?.sidebar?.filters||{},{includedTagFilters:n,excludedTagFilters:i,includedStatusFilters:a,excludedStatusFilters:o,tagPresets:s}=t.getState();t.setState(({filters:t})=>({filters:{...t,...e,[Zb]:Kb(s),[Xb]:qb(n,i),[Qb]:Bb(a,o)}}))}),Nb.onAllStatusChange(async()=>{g();let{internal_index:n}=t.getState();if(!n)return;await m.setIndex(n);let r=await e.getRefs();Object.entries(r).forEach(([t,{internal_index:n,...r}])=>{e.setRef(t,{...r,storyIndex:n},!0)})});let _=r.getConfig()?.sidebar?.filters||{},v=Ab.TAGS_OPTIONS||{},y=Gb(v),{tags:b,statuses:x}=mg(i??{search:``}),S=Ub(b),C=b!==void 0,w=C?S.included:y.included,T=C?S.excluded:y.excluded,E=Rb(x),D=E.included,O=E.excluded;return{api:m,state:{storyId:a,viewMode:o,hasCalledSetOptions:!1,previewInitialized:!1,filters:{..._,[Zb]:Kb(v),[Xb]:qb(w,T),[Qb]:Bb(D,O)},tagPresets:v,defaultIncludedTagFilters:y.included,defaultExcludedTagFilters:y.excluded,includedTagFilters:w,excludedTagFilters:T,includedStatusFilters:D,excludedStatusFilters:O},init:async()=>{if(r.channel?.on(Tb,()=>m.fetchIndex()),await m.fetchIndex(),u)return;u=!0;let e=w.some(e=>$b.has(e))||T.some(e=>$b.has(e)),t=!!globalThis?.FEATURES?.changeDetection&&(D.length>0||O.length>0);(e||t)&&p(`url`)}}},rx={},_(rx,{getCustomQueryParams:()=>mx,init:()=>_x}),{GLOBALS_UPDATED:ix,NAVIGATE_URL:ax,SET_CURRENT_STORY:ox,STORY_ARGS_UPDATED:sx,UPDATE_QUERY_PARAMS:cx}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:lx}=__STORYBOOK_MODULE_GLOBAL__,ux=e=>{if(e===`true`||e===`1`)return!0;if(e===`false`||e===`0`)return!1},dx=e=>Object.fromEntries(e.split(`;`).map(e=>e.split(`:`)).map(([e,t])=>[e,encodeURIComponent(t)]).filter(([e,t])=>e&&t)),fx=(e,t)=>{let n=dx(e),r=dx(t);return Object.entries({...n,...r}).map(([e,t])=>`${e}:${t}`).join(`;`)},px=[`full`,`panel`,`nav`,`shortcuts`,`addonPanel`,`tabs`,`path`],mx=e=>b(mg(e),px),gx=({state:{location:e,path:t,viewMode:n,storyId:r},singleStory:i})=>{let{full:a,panel:o,nav:s,shortcuts:c,addonPanel:l,tabs:u}=mg(e),d,f,p;ux(a)===!0?(d=0,f=0,p=0):ux(a)===!1&&(d=vy,f=yy,p=by),i||(ux(s)===!0&&(d=vy),ux(s)===!1&&(d=0)),ux(o)===!1&&(f=0,p=0);let m={navSize:d,bottomPanelHeight:f,rightPanelWidth:p,panelPosition:[`right`,`bottom`].includes(o)?o:void 0,showTabs:ux(u)},h={enableShortcuts:ux(c)},g=l||void 0,_=r,v=mx(e),y=Ro(hx,v)?hx:v;return hx=y,{viewMode:n,layout:m,ui:h,selectedPanel:g,location:e,path:t,customQueryParams:y,storyId:_}},_x=e=>{let{store:t,navigate:n,provider:r,fullAPI:i}=e,a=(e,t={},r={})=>n(jb(e,t),r),o={getStoryHrefs(e,n={}){let{id:r,refId:a}=i.getCurrentStoryData()??{},o=e===r&&n.refId===a,{customQueryParams:s,location:c,refs:l}=t.getState(),{base:u,inheritArgs:d=o,inheritGlobals:f=!0,queryParams:p={},refId:m,viewMode:h=`story`,embed:g=!1,freeze:_=!1}=n;if(m&&!l[m])throw Error(`Invalid refId: ${m}`);let v=c.pathname||`/`,y=lx.window.location.origin+v,x=lx.STORYBOOK_NETWORK_ADDRESS??y,S=u===`origin`?y:u===`network`?x:v,C=m?l[m].url+`/iframe.html`:lx.PREVIEW_URL||`${S.replace(/\/[^/]*\.html$/,``).replace(/\/?$/,`/`)}iframe.html`,w=m?`&refId=${encodeURIComponent(m)}`:``,{args:T=``,globals:E=``,...D}=p,O=d?fx(s?.args??``,T):T,k=f?fx(s?.globals??``,E):E,ee=b(D,[`embed`,`freeze`]),A=b(D,[`id`,`viewMode`,`embed`,`freeze`]),j=ns(ee,{nesting:!0,nestingSyntax:`js`}),te=ns(A,{nesting:!0,nestingSyntax:`js`});O&&=`&args=${O}`,k&&=`&globals=${k}`,j&&=`&${j}`,te&&=`&${te}`;let ne=g?`&embed=true`:``,re=_?`&freeze=finished`:``;return{managerHref:`${S}?path=/${h}/${m?`${m}_`:``}${e}${O}${k}${j}`,previewHref:`${C}?id=${e}&viewMode=${h}${w}${O}${m?``:k}${te}${ne}${re}`}},getQueryParam(e){let{customQueryParams:n}=t.getState();return n?n[e]:void 0},getUrlState(){let{location:e,path:n,customQueryParams:r,storyId:i,url:a,viewMode:o}=t.getState();return{path:n,hash:e?.hash??``,queryParams:r,storyId:i,url:a,viewMode:o}},setQueryParams(e){let{customQueryParams:n}=t.getState(),i={...n};for(let[t,n]of Object.entries(e))n==null?delete i[t]:i[t]=n;Ro(n,i)||(t.setState({customQueryParams:i}),r.channel?.emit(cx,i))},applyQueryParams(e,t){let{path:n,hash:r=``,queryParams:i}=o.getUrlState();a(`${n}${r}`,{...i,...e},t),o.setQueryParams(e)},navigateUrl(e,t){n(e,{plain:!0,...t})}},s=()=>{let{path:e,hash:t=``,queryParams:n,viewMode:r}=o.getUrlState();if(r!==`story`)return;let s=i.getCurrentStoryData();if(s?.type!==`story`)return;let{args:c,initialArgs:l}=s,u=fg(l,c);a(`${e}${t}`,{...n,args:u||null},{replace:!0}),o.setQueryParams({args:u||null})};r.channel?.on(ox,()=>s());let c;return r.channel?.on(sx,()=>{`requestIdleCallback`in lx.window?(c&&lx.window.cancelIdleCallback(c),c=lx.window.requestIdleCallback(s,{timeout:1e3})):(c&&clearTimeout(c),setTimeout(s,100))}),r.channel?.on(ix,({userGlobals:e,initialGlobals:t})=>{let{path:n,hash:r=``,queryParams:i}=o.getUrlState(),s=fg(t,vv(t,e));a(`${n}${r}`,{...i,globals:s||null},{replace:!0}),o.setQueryParams({globals:s||null})}),r.channel?.on(ax,(e,t)=>{o.navigateUrl(e,t)}),{api:o,state:gx(e),init:()=>{t.registerPersistenceHandler(`url`,(e,n)=>{if(n){let e=n(t.getState());o.applyQueryParams(e,{replace:!0})}})}}},vx={},_(vx,{init:()=>Tx}),yx=m(fe(),1),{global:bx}=__STORYBOOK_MODULE_GLOBAL__,xx=`10.5.0`,{VERSIONCHECK:Sx}=bx,Cx=(0,yx.default)(1)(()=>{try{return{...JSON.parse(Sx).data||{}}}catch{return{}}}),wx=e=>e.includes(`vue`)?`vue`:e,Tx=({store:e})=>{let{dismissedVersionNotification:t}=e.getState(),n={versions:{current:{version:xx},...Cx()},dismissedVersionNotification:t},r={getCurrentVersion:()=>{let{versions:{current:t}}=e.getState();return t},getLatestVersion:()=>{let{versions:{latest:t,next:n,current:r}}=e.getState();return r&&av.default.prerelease(r.version)&&n?t&&av.default.gt(t.version,n.version)?t:n:t},getDocsUrl:({asset:t,subpath:n=t,versioned:r,renderer:i,ref:a=`ui`})=>{let{versions:o}=e.getState(),s=o.latest?.version,c=o.current?.version,l=c?.startsWith(`0.0.0`)&&s||c,u=`https://storybook.js.org/${t?`docs-assets`:`docs`}/`;if(t&&l)u+=`${av.default.major(l)}.${av.default.minor(l)}/`;else if(r&&l&&s){let e=av.default.diff(s,l);e===`patch`||e===null||(u+=`${av.default.major(l)}.${av.default.minor(l)}/`)}let[d,f]=n?.split(`#`)||[];if(d&&(u+=t?d:`${d}/`),i&&typeof bx.STORYBOOK_RENDERER<`u`){let e=bx.STORYBOOK_RENDERER;e&&(u+=`?renderer=${wx(e)}`)}return a&&(u+=`${u.includes(`?`)?`&`:`?`}ref=${a}`),f&&(u+=`#${f}`),u},versionUpdateAvailable:()=>{let e=r.getLatestVersion(),t=r.getCurrentVersion();if(e){if(!e.version||!t.version)return!0;let n=av.default.prerelease(t.version)?`${av.default.major(t.version)}.${av.default.minor(t.version)}.${av.default.patch(t.version)}`:t.version,r=av.default.diff(n,e.version);return av.default.gt(e.version,n)&&r!==`patch`&&!r.includes(`pre`)}return!1}};return{init:async()=>{let{versions:t={}}=e.getState(),{latest:n,next:r}=Cx();await e.setState({versions:{...t,latest:n,next:r}})},state:n,api:r}},Ex={},_(Ex,{init:()=>Px}),{REQUEST_WHATS_NEW_DATA:Dx,RESULT_WHATS_NEW_DATA:Ox,SET_WHATS_NEW_CACHE:kx,TOGGLE_WHATS_NEW_NOTIFICATIONS:Ax}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:jx}=__STORYBOOK_MODULE_GLOBAL__,Mx=`whats-new`,Nx=({color:e=`currentColor`,size:t=14})=>ov.createElement(`svg`,{width:t,height:t,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},ov.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})),Px=({fullAPI:e,store:t,provider:n})=>{let r={whatsNewData:void 0};function i(e){t.setState({whatsNewData:e}),r.whatsNewData=e}let a={isWhatsNewUnread(){return r.whatsNewData?.status===`SUCCESS`&&!r.whatsNewData.postIsRead},whatsNewHasBeenRead(){r.whatsNewData?.status===`SUCCESS`&&(s({lastReadPost:r.whatsNewData.url}),i({...r.whatsNewData,postIsRead:!0}),e.clearNotification(Mx))},toggleWhatsNewNotifications(){r.whatsNewData?.status===`SUCCESS`&&(i({...r.whatsNewData,disableWhatsNewNotifications:!r.whatsNewData.disableWhatsNewNotifications}),n.channel?.emit(Ax,{disableWhatsNewNotifications:r.whatsNewData.disableWhatsNewNotifications}))}};function o(){return n.channel?.emit(Dx),new Promise(e=>n.channel?.once(Ox,({data:t})=>e(t)))}function s(e){n.channel?.emit(kx,e)}return{init:async()=>{if(jx.CONFIG_TYPE!==`DEVELOPMENT`)return;let t=await o();i(t);let n=e.getUrlState(),r=n?.path===`/onboarding`||n.queryParams?.onboarding===`true`,a=n?.path===`/review/`||n?.path===`/review`||n?.path?.startsWith(`/review/`);!r&&!a&&t.status===`SUCCESS`&&!t.disableWhatsNewNotifications&&t.showNotification&&e.addNotification({id:Mx,link:`/settings/whats-new`,content:{headline:t.title,subHeadline:`Learn what's new in Storybook`},icon:ov.createElement(Nx,null),onClear({dismissed:e}){e&&s({lastDismissedPost:t.url})}})},state:r,api:a}},Fx=m(lv(),1),Ix=e=>{e.fn(`set`,function(t,n){return e.set(this._area,this._in(t),ra(n,{maxDepth:50}))}),e.fn(`get`,function(t,n){let r=e.get(this._area,this._in(t));return r===null?n||r:aa(r)})},Ix(Fx.default._),Lx=`@storybook/manager/store`,Rx=class{constructor({allowPersistence:e,setState:t,getState:n}){this.persistenceHandlers=new Map,this.upstreamPersistence=e??!0,this.upstreamSetState=t,this.upstreamGetState=n}registerPersistenceHandler(e,t){this.persistenceHandlers.set(e,t)}getInitialState(e){for(let e of[Fx.default.local,Fx.default.session]){let t=X_(e);if(`includedTagFilters`in t||`excludedTagFilters`in t){let{includedTagFilters:n,excludedTagFilters:r,...i}=t;Z_(e,i)}}let t=X_(Fx.default.local),n=X_(Fx.default.session);return{...e,...t,...n}}getState(){return this.upstreamGetState()}async setState(e,t,n){let r,i;typeof t==`function`?(r=t,i=n):i=t;let{persistence:a=`none`}=i||{},o={},s={};typeof e==`function`?o=t=>(s=e(t),s):(o=e,s=o);let c=await new Promise(e=>{this.upstreamSetState(o,()=>{e(this.getState())})});if(a!==`none`&&this.upstreamPersistence)if(a===`url`){let e=this.persistenceHandlers.get(`url`);e&&await e(s,i?.serialize)}else await Q_(a===`session`?Fx.default.session:Fx.default.local,s);return r&&r(c),c}},{ActiveTabs:zx}=uy,Bx=gv({api:void 0,state:xv({})}),Vx=(...e)=>yv({},...e),Hx=class extends tv.Component{constructor(e){super(e),this.api={},this.mounted=!1,this.initModules=()=>{this.modules.forEach(e=>{`init`in e&&e.init()})};let{location:t,path:n,refId:r,viewMode:i=e.docsOptions.docsMode?`docs`:e.viewMode,singleStory:a,storyId:o,docsOptions:s,navigate:c}=e,l=new Rx({getState:()=>this.state,setState:(e,t)=>{if(!this.mounted){let n=typeof e==`function`?e(this.state):e;return this.state={...this.state,...n},t?.(this.state),this.state}return this.setState(e,()=>t(this.state)),this.state}}),u={location:t,path:n,viewMode:i,singleStory:a,storyId:o,refId:r},d={docsOptions:s};this.state=l.getInitialState(xv({...u,...d}));let f={navigate:c,store:l,provider:e.provider};this.modules=[Iy,jv,Dv,uy,Ay,Ry,By,lb,zv,Nv,rx,vx,Ex,My].map(e=>e.init({...u,...d,...f,state:this.state,fullAPI:this.api}));let p=xv(this.state,...this.modules.map(e=>e.state)),m=Object.assign(this.api,{navigate:c},...this.modules.map(e=>e.api));this.state=p,this.api=m,e.provider.handleAPI(this.api)}componentDidMount(){this.mounted=!0}static getDerivedStateFromProps(e,t){let n=t.location?.search!==e.location?.search;return t.path!==e.path||n?{...t,location:e.location,path:e.path,refId:e.refId,viewMode:e.viewMode,storyId:e.storyId,customQueryParams:mx(e.location)}:null}shouldComponentUpdate(e,t){let n=this.props,r=this.state;return n.path!==e.path||!u(r,t)}render(){let{children:e}=this.props,t={state:this.state,api:this.api};return tv.createElement(Ux,{effect:this.initModules},tv.createElement(Bx.Provider,{value:t},tv.createElement($_,null,e)))}},Hx.displayName=`Manager`,Ux=({children:e,effect:t})=>(tv.useEffect(t,[]),e),Wx=e=>e,globalThis.STORYBOOK_ADDON_STATE={},{STORYBOOK_ADDON_STATE:Gx}=globalThis,{Channel:Kx}=__STORYBOOK_MODULE_CHANNELS__,qx={id:`storybook/test-provider`,leader:!0,initialState:{}},{fullTestProviderStore:Jx,getTestProviderStoreById:Yx,useTestProviderStore:Xx,universalTestProviderStore:Zx}=ev({universalTestProviderStore:hn.create({...qx,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),useUniversalStore:Mb}),Qx={id:`storybook/checklist`,initialState:{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:{}}},$x=e=>({getValue:t=>e.getState().items[t]??{status:`open`,mutedAt:void 0},accept:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`accepted`}}}))},done:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`done`}}}))},skip:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`skipped`}}}))},reset:t=>{e.setState(e=>({...e,items:{...e.items,[t]:{...e.items[t],status:`open`}}}))},mute:t=>{e.setState(e=>({...e,items:t.reduce((t,n)=>({...t,[n]:{...e.items[n],mutedAt:Date.now()}}),e.items)}))},disable:t=>{e.setState(e=>({...e,widget:{...e.widget,disable:t},items:Object.entries(e.items).reduce((e,[t,n])=>({...e,[t]:{...n,mutedAt:void 0}}),e.items)}))}}),eS=hn.create({...Qx,leader:globalThis.CONFIG_TYPE===`PRODUCTION`}),$x(eS)})),nS=r((e=>{var t=s();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),s=r[0].inst,l=r[1];return o(function(){s.value=n,s.getSnapshot=t,u(s)&&l({inst:s})},[e,n,t]),a(function(){return u(s)&&l({inst:s}),e(function(){u(s)&&l({inst:s})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),rS=r(((e,t)=>{t.exports=nS()})),iS=e({A:()=>Kj,ActionList:()=>eL,Bar:()=>PB,Blockquote:()=>qj,Button:()=>zI,Code:()=>rM,DL:()=>iM,Div:()=>aM,EmptyTabContent:()=>XB,ErrorFormatter:()=>lR,FlexBar:()=>RB,Form:()=>YR,H1:()=>oM,H2:()=>sM,H3:()=>cM,H4:()=>lM,H5:()=>uM,H6:()=>dM,HR:()=>fM,IconButton:()=>VI,Img:()=>pM,LI:()=>mM,Link:()=>jM,ListItem:()=>TB,Loader:()=>YV,OL:()=>gM,P:()=>_M,Popover:()=>QR,PopoverProvider:()=>dB,Pre:()=>vM,ResetWrapper:()=>Wj,ScrollArea:()=>w,Select:()=>sz,Separator:()=>fV,Span:()=>yM,SyntaxHighlighter:()=>Qj,TT:()=>bM,TabBar:()=>oV,TabButton:()=>WB,TabList:()=>wV,TabPanel:()=>EV,TabWrapper:()=>cV,Table:()=>xM,Tabs:()=>uV,TabsState:()=>dV,TabsView:()=>MV,ToggleButton:()=>HI,Toolbar:()=>pV,Tooltip:()=>fB,TooltipLinkList:()=>kB,TooltipNote:()=>VM,TooltipProvider:()=>LI,UL:()=>CM,Zoom:()=>$L,codeCommon:()=>Vj,components:()=>QV,convertToReactAriaPlacement:()=>FI,createCopyToClipboardFunction:()=>sS,nameSpaceClassNames:()=>J,resetComponents:()=>$V,useTabsState:()=>OV,withReset:()=>Hj});async function aS(e){try{await PM.top?.navigator.clipboard.writeText(e)}catch{await PM.navigator.clipboard.writeText(e)}}async function oS(e){let t=NM.createElement(`TEXTAREA`),n=NM.activeElement;t.value=e,NM.body.appendChild(t),t.select(),NM.execCommand(`copy`),NM.body.removeChild(t),n.focus()}function sS(){return PM.navigator?.clipboard?aS:oS}function cS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function lS(...e){return t=>{let n=!1,r=e.map(e=>{let r=cS(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():cS(e[t],null)}}}}function uS(e){return typeof e==`object`&&!!e&&`then`in e}function dS(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===IM&&`_payload`in e&&uS(e._payload)}function fS(e){let t=pS(e),n=lk.forwardRef((e,n)=>{let{children:r,...i}=e;dS(r)&&typeof LM==`function`&&(r=LM(r._payload));let a=lk.Children.toArray(r),o=a.find(hS);if(o){let e=o.props.children,r=a.map(t=>t===o?lk.Children.count(e)>1?lk.Children.only(null):lk.isValidElement(e)?e.props.children:null:t);return(0,uk.jsx)(t,{...i,ref:n,children:lk.isValidElement(e)?lk.cloneElement(e,void 0,r):null})}return(0,uk.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function pS(e){let t=lk.forwardRef((e,t)=>{let{children:n,...r}=e;if(dS(n)&&typeof LM==`function`&&(n=LM(n._payload)),lk.isValidElement(n)){let e=_S(n),i=gS(r,n.props);return n.type!==lk.Fragment&&(i.ref=t?lS(t,e):e),lk.cloneElement(n,i)}return lk.Children.count(n)>1?lk.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}function mS(e){let t=({children:e})=>(0,uk.jsx)(uk.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=zM,t}function hS(e){return lk.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===zM}function gS(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function _S(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function vS(e){let[t,n]=(0,hk.useState)(e),r=(0,hk.useRef)(t),i=(0,hk.useRef)(null),a=(0,hk.useRef)(()=>{if(!i.current)return;let e=i.current.next();if(e.done){i.current=null;return}r.current===e.value?a.current():n(e.value)});return Y(()=>{r.current=t,i.current&&a.current()}),[t,(0,hk.useCallback)(e=>{i.current=e(r.current),a.current()},[a])]}function yS(e=!1){let t=(0,_k.useContext)(WM),n=(0,_k.useRef)(null);if(n.current===null&&!e){var r,i;let e=(i=_k.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)==null||(r=i.ReactCurrentOwner)==null?void 0:r.current;if(e){let n=KM.get(e);n==null?KM.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,KM.delete(e))}n.current=++t.current}return n.current}function bS(e){let t=(0,_k.useContext)(WM),n=yS(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function xS(e){let t=_k.useId(),[n]=(0,_k.useState)(TS()),r=n?`react-aria`:`react-aria${UM.prefix}`;return e||`${r}-${t}`}function SS(){return!1}function CS(){return!0}function wS(e){return()=>{}}function TS(){return typeof _k.useSyncExternalStore==`function`?_k.useSyncExternalStore(wS,SS,CS):(0,_k.useContext)(GM)}function ES(e){let[t,n]=(0,gk.useState)(e),r=(0,gk.useRef)(null),i=qM(t),a=(0,gk.useRef)(null);if(XM&&XM.register(a,i),JM){let e=YM.get(i);e&&!e.includes(r)?e.push(r):YM.set(i,[r])}return Y(()=>{let e=i;return()=>{XM&&XM.unregister(a),YM.delete(e)}},[i]),(0,gk.useEffect)(()=>{let e=r.current;return e&&n(e),()=>{e&&(r.current=null)}}),i}function DS(e,t){if(e===t)return e;let n=YM.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=YM.get(t);return r?(r.forEach(t=>t.current=e),e):t}function OS(e=[]){let t=ES(),[n,r]=vS(t),i=(0,gk.useCallback)(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Y(i,[t,i,...e]),n}function kS(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function AS(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function jS(e){return AS(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&`host`in e}function MS(){return QM}function NS(e,t){if(!MS())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n=n.tagName===`SLOT`&&n.assignedSlot?n.assignedSlot.parentNode:jS(n)?n.host:n.parentNode}return!1}function PS(e){return MS()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function FS(e,t,n,r){return MS()?new eN(e,t,n,r):e.createTreeWalker(t,n,r)}function IS(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=IS(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function LS(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=IS(e))&&(r&&(r+=` `),r+=t);return r}function V(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];typeof n==`function`&&typeof i==`function`&&e[0]===`o`&&e[1]===`n`&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=kS(n,i):(e===`className`||e===`UNSAFE_className`)&&typeof n==`string`&&typeof i==`string`?t[e]=tN(n,i):e===`id`&&n&&i?t.id=DS(n,i):t[e]=i===void 0?n:i}}return t}function RS(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=zS(e,t);return n||=typeof r==`function`,r});if(n)return()=>{r.forEach((t,n)=>{typeof t==`function`?t():zS(e[n],null)})}}}function zS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function BS(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(nN.has(t)||n&&rN.has(t)||r&&iN.has(t)||i&&aN.has(t)||a&&(oN.has(t)||t.endsWith(`Capture`)&&oN.has(t.slice(0,-7)))||o?.has(t)||sN.test(t))&&(s[t]=e[t]);return s}function VS(e){if(HS())e.focus({preventScroll:!0});else{let t=US(e);e.focus(),WS(t)}}function HS(){if(cN==null){cN=!1;try{document.createElement(`div`).focus({get preventScroll(){return cN=!0,!0}})}catch{}}return cN}function US(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function WS(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function GS(e){if(typeof window>`u`||window.navigator==null)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function KS(e){return typeof window<`u`&&window.navigator!=null&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function qS(e){let t=null;return()=>(t??=e(),t)}function JS(){return(0,vk.useContext)(vN)}function YS(e,t){let n=e.getAttribute(`target`);return(!n||n===`_self`)&&e.origin===location.origin&&!e.hasAttribute(`download`)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function XS(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}=t;_N()&&!((i=window.event)==null||(r=i.type)==null)&&r.startsWith(`key`)&&e.target===`_blank`&&(lN()?a=!0:o=!0);let l=mN()&&lN()&&!dN()?new KeyboardEvent(`keydown`,{keyIdentifier:`Enter`,metaKey:a,ctrlKey:o,altKey:s,shiftKey:c}):new MouseEvent(`click`,{metaKey:a,ctrlKey:o,altKey:s,shiftKey:c,detail:1,bubbles:!0,cancelable:!0});XS.isOpening=n,VS(e),e.dispatchEvent(l),XS.isOpening=!1}function ZS(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute(`data-href`)){let n=document.createElement(`a`);n.href=e.getAttribute(`data-href`),e.hasAttribute(`data-target`)&&(n.target=e.getAttribute(`data-target`)),e.hasAttribute(`data-rel`)&&(n.rel=e.getAttribute(`data-rel`)),e.hasAttribute(`data-download`)&&(n.download=e.getAttribute(`data-download`)),e.hasAttribute(`data-ping`)&&(n.ping=e.getAttribute(`data-ping`)),e.hasAttribute(`data-referrer-policy`)&&(n.referrerPolicy=e.getAttribute(`data-referrer-policy`)),e.appendChild(n),t(n),e.removeChild(n)}}function QS(e,t){ZS(e,e=>XS(e,t))}function $S(e){let t=JS().useHref(e?.href??``);return{href:e?.href?t:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}function eC(e,t,n,r){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&YS(e.currentTarget,e)&&n&&(e.preventDefault(),t.open(e.currentTarget,e,n,r))}function tC(){if(typeof window>`u`)return;function e(e){return`propertyName`in e}let t=t=>{if(!e(t)||!t.target)return;let r=yN.get(t.target);r||(r=new Set,yN.set(t.target,r),t.target.addEventListener(`transitioncancel`,n,{once:!0})),r.add(t.propertyName)},n=t=>{if(!e(t)||!t.target)return;let r=yN.get(t.target);if(r&&(r.delete(t.propertyName),r.size===0&&(t.target.removeEventListener(`transitioncancel`,n),yN.delete(t.target)),yN.size===0)){for(let e of bN)e();bN.clear()}};document.body.addEventListener(`transitionrun`,t),document.body.addEventListener(`transitionend`,n)}function nC(){for(let[e]of yN)`isConnected`in e&&!e.isConnected&&yN.delete(e)}function rC(e){requestAnimationFrame(()=>{nC(),yN.size===0?e():bN.add(e)})}function iC(){let e=(0,yk.useRef)(new Map),t=(0,yk.useCallback)((t,n,r,i)=>{let a=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:i}),t.addEventListener(n,a,i)},[]),n=(0,yk.useCallback)((t,n,r,i)=>{let a=e.current.get(r)?.fn||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,yk.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,yk.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function aC(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=ES(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(` `):i&&=i.trim().split(/\s+/).join(` `),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function oC(e){let t=(0,bk.useRef)(null),n=(0,bk.useRef)(void 0),r=(0,bk.useCallback)(t=>{if(typeof e==`function`){let n=e,r=n(t);return()=>{typeof r==`function`?r():n(null)}}else if(e)return e.current=t,()=>{e.current=null}},[e]);return(0,bk.useMemo)(()=>({get current(){return t.current},set current(e){t.current=e,n.current&&=(n.current(),void 0),e!=null&&(n.current=r(e))}}),[r])}function sC(e){let t=(0,xk.useRef)(null);return xN(()=>{t.current=e},[e]),(0,xk.useCallback)((...e)=>{let n=t.current;return n?.(...e)},[])}function cC(e,t){let n=(0,Sk.useRef)(!0),r=(0,Sk.useRef)(null);Y(()=>(n.current=!0,()=>{n.current=!1}),[]),Y(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}function lC(){return typeof window.ResizeObserver<`u`}function uC(e){let{ref:t,box:n,onResize:r}=e,i=sC(r);(0,Ck.useEffect)(()=>{let e=t?.current;if(e)if(lC()){let t=new window.ResizeObserver(e=>{e.length&&i()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}else return window.addEventListener(`resize`,i,!1),()=>{window.removeEventListener(`resize`,i,!1)}},[t,n])}function dC(e,t){Y(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function fC(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function pC(e,t){let n=e;for(fC(n,t)&&(n=n.parentElement);n&&!fC(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function mC(e,t){let n=[];for(;e&&e!==document.documentElement;)fC(e,t)&&n.push(e),e=e.parentElement;return n}function hC(e){return lN()?e.metaKey:e.ctrlKey}function gC(e){return e instanceof HTMLInputElement&&!SN.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function _C(e){let[t,n]=(0,wk.useState)();return Y(()=>{if(!e)return;let t=wN.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${CN++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},wN.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),wN.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function vC(e,t,n,r){let i=sC(n),a=n==null;(0,Tk.useEffect)(()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,i,r),()=>{n.removeEventListener(t,i,r)}},[e,t,r,a])}function yC(e,t){let n=bC(e,t,`left`),r=bC(e,t,`top`),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:c,borderLeftWidth:l,scrollPaddingTop:u,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),m=o+parseInt(l,10),h=s+parseInt(c,10),g=m+e.clientWidth,_=h+e.clientHeight,v=parseInt(u,10)||0,y=parseInt(f,10)||0,b=parseInt(d,10)||0,x=parseInt(p,10)||0;n<=o+x?o=n-parseInt(l,10)-x:n+i>g-b&&(o+=n+i-g+b),r<=h+v?s=r-parseInt(c,10)-v:r+a>_-y&&(s+=r+a-_+y),e.scrollLeft=o,e.scrollTop=s}function bC(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function xC(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement,s=window.getComputedStyle(o).overflow===`hidden`;if(s){let t=mC(e);s||t.push(o);for(let n of t)yC(n,e)}else{var n;let{left:o,top:s}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)==null||n.call(e,{block:`nearest`});let{left:c,top:l}=e.getBoundingClientRect();if(Math.abs(o-c)>1||Math.abs(s-l)>1){var r,i,a;t==null||(i=t.containingElement)==null||(r=i.scrollIntoView)==null||r.call(i,{block:`center`,inline:`center`}),(a=e.scrollIntoView)==null||a.call(e,{block:`nearest`})}}}}function SC(e){return e.pointerType===``&&e.isTrusted?!0:gN()&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function CC(e){return!gN()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`}function wC(e){let t=Ek.version.split(`.`);return parseInt(t[0],10)>=19?e:e?`true`:void 0}function TC(e,t=!0){let[n,r]=(0,Ok.useState)(!0),i=n&&t;return Y(()=>{if(i&&e.current&&`getAnimations`in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),DC(e,i,(0,Ok.useCallback)(()=>r(!1),[])),i}function EC(e,t){let[n,r]=(0,Ok.useState)(t?`open`:`closed`);switch(n){case`open`:t||r(`exiting`);break;case`closed`:case`exiting`:t&&r(`open`);break}let i=n===`exiting`;return DC(e,i,(0,Ok.useCallback)(()=>{r(e=>e===`exiting`?`closed`:e)},[])),i}function DC(e,t,n){Y(()=>{if(t&&e.current){if(!(`getAnimations`in e.current)){n();return}let t=e.current.getAnimations();if(t.length===0){n();return}let r=!1;return Promise.all(t.map(e=>e.finished)).then(()=>{r||(0,Dk.flushSync)(()=>{n()})}).catch(()=>{}),()=>{r=!0}}},[e,t,n])}function OC(e){let t=ZM(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!==`none`&&r!==`hidden`&&r!==`collapse`;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);i=n!==`none`&&r!==`hidden`&&r!==`collapse`}return i}function kC(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 AC(e,t){return DN?e.checkVisibility({visibilityProperty:!0})&&!e.closest(`[data-react-aria-prevent-focus]`):e.nodeName!==`#comment`&&OC(e)&&kC(e,t)&&(!e.parentElement||AC(e.parentElement,e))}function jC(e){return e.matches(kN)&&AC(e)&&!NC(e)}function MC(e){return e.matches(AN)&&AC(e)&&!NC(e)}function NC(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function PC(e,t,n){let[r,i]=(0,kk.useState)(e||t),a=(0,kk.useRef)(r),o=(0,kk.useRef)(e!==void 0),s=e!==void 0;(0,kk.useEffect)(()=>{o.current,o.current=s},[s]);let c=s?e:r;jN(()=>{a.current=c});let[,l]=(0,kk.useReducer)(()=>({}),{});return[c,(0,kk.useCallback)((e,...t)=>{let r=typeof e==`function`?e(a.current):e;Object.is(a.current,r)||(a.current=r,i(r),l(),n?.(r,...t))},[n])]}function FC(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function IC(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function LC(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function RC(e){let t=(0,Ak.useRef)({isFocused:!1,observer:null});Y(()=>{let e=t.current;return()=>{e.observer&&=(e.observer.disconnect(),null)}},[]);let n=sC(t=>{e?.(t)});return(0,Ak.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener(`focusout`,e=>{if(t.current.isFocused=!1,r.disabled){let t=IC(e);n(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;(e=t.current.observer)==null||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent(`blur`,{relatedTarget:n})),r.dispatchEvent(new FocusEvent(`focusout`,{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:[`disabled`]})}},[n])}function zC(e){for(;e&&!jC(e);)e=e.parentElement;let t=ZM(e),n=t.document.activeElement;if(!n||n===e)return;MN=!0;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},a=t=>{(t.target===n||r)&&(t.stopImmediatePropagation(),!e&&!r&&(r=!0,VS(n),c()))},o=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,VS(n),c()))};t.addEventListener(`blur`,i,!0),t.addEventListener(`focusout`,a,!0),t.addEventListener(`focusin`,s,!0),t.addEventListener(`focus`,o,!0);let c=()=>{cancelAnimationFrame(l),t.removeEventListener(`blur`,i,!0),t.removeEventListener(`focusout`,a,!0),t.removeEventListener(`focusin`,s,!0),t.removeEventListener(`focus`,o,!0),MN=!1,r=!1},l=requestAnimationFrame(c);return c}function BC(e){if(fN()){if(NN==="default"){let t=X(e);PN=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect=`none`}NN=`disabled`}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;FN.set(e,e.style[t]),e.style[t]=`none`}}function VC(e){if(fN()){if(NN!==`disabled`)return;NN=`restoring`,setTimeout(()=>{rC(()=>{if(NN===`restoring`){let t=X(e);t.documentElement.style.webkitUserSelect===`none`&&(t.documentElement.style.webkitUserSelect=PN||``),PN=``,NN=`default`}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&FN.has(e)){let t=FN.get(e),n=`userSelect`in e.style?`userSelect`:`webkitUserSelect`;e.style[n]===`none`&&(e.style[n]=t),e.getAttribute(`style`)===``&&e.removeAttribute(`style`),FN.delete(e)}}function HC(e,t){return t.get?t.get.call(e):t.value}function UC(e,t,n){if(!t.has(e))throw TypeError(`attempted to `+n+` private field on non-instance`);return t.get(e)}function WC(e,t){return HC(e,UC(e,t,`get`))}function GC(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function KC(e,t,n){GC(e,t),t.set(e,n)}function qC(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError(`attempted to set read only private field`);t.value=n}}function JC(e,t,n){return qC(e,UC(e,t,`set`),n),n}function YC(e){let t=(0,Mk.useContext)(IN);if(t){let{register:n,...r}=t;e=V(r,e),n()}return dC(t,e.ref),e}function XC(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:c,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:f,...p}=YC(e),[m,h]=(0,Mk.useState)(!1),g=(0,Mk.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:_,removeAllGlobalListeners:v}=iC(),y=sC((e,t)=>{let i=g.current;if(s||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,r){let n=new RN(`pressstart`,t,e);r(n),a=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,h(!0),a}),b=sC((e,r,a=!0)=>{let o=g.current;if(!o.didFirePressStart)return!1;o.didFirePressStart=!1,o.isTriggeringEvent=!0;let c=!0;if(i){let t=new RN(`pressend`,r,e);i(t),c=t.shouldStopPropagation}if(n&&n(!1),h(!1),t&&a&&!s){let n=new RN(`press`,r,e);t(n),c&&=n.shouldStopPropagation}return o.isTriggeringEvent=!1,c}),x=sC((e,t)=>{let n=g.current;if(s)return!1;if(a){n.isTriggeringEvent=!0;let r=new RN(`pressup`,t,e);return a(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0}),S=sC(e=>{let t=g.current;if(t.isPressed&&t.target){t.didFirePressStart&&t.pointerType!=null&&b($C(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,v(),d||VC(t.target);for(let e of t.disposables)e();t.disposables=[]}}),C=sC(e=>{u&&S(e)}),w=sC(e=>{s||o?.(e)}),T=sC((e,t)=>{if(!s&&o){let n=new MouseEvent(`click`,e);LC(n,t),o(IC(n))}}),E=(0,Mk.useMemo)(()=>{let e=g.current,t={onKeyDown(t){if(QC(t.nativeEvent,t.currentTarget)&&NS(t.currentTarget,PS(t.nativeEvent))){var r;tw(PS(t.nativeEvent),t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType=`keyboard`,i=y(t,`keyboard`);let r=t.currentTarget;_(X(t.currentTarget),`keyup`,kS(t=>{QC(t,r)&&!t.repeat&&NS(r,PS(t))&&e.target&&x($C(e.target,t),`keyboard`)},n),!0)}i&&t.stopPropagation(),t.metaKey&&lN()&&((r=e.metaKeyEvents)==null||r.set(t.key,t.nativeEvent))}else t.key===`Meta`&&(e.metaKeyEvents=new Map)},onClick(t){if(!(t&&!NS(t.currentTarget,PS(t.nativeEvent)))&&t&&t.button===0&&!e.isTriggeringEvent&&!XS.isOpening){let n=!0;if(s&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&(e.pointerType===`virtual`||SC(t.nativeEvent))){let e=y(t,`virtual`),r=x(t,`virtual`),i=b(t,`virtual`);w(t),n=e&&r&&i}else if(e.isPressed&&e.pointerType!==`keyboard`){let r=e.pointerType||t.nativeEvent.pointerType||`virtual`,i=x($C(t.currentTarget,t),r),a=b($C(t.currentTarget,t),r,!0);n=i&&a,e.isOverTarget=!1,w(t),S(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&QC(t,e.target)){var r;tw(PS(t),t.key)&&t.preventDefault();let n=PS(t),i=NS(e.target,PS(t));b($C(e.target,t),`keyboard`,i),i&&T(t,e.target),v(),t.key!==`Enter`&&ZC(e.target)&&NS(e.target,n)&&!t[zN]&&(t[zN]=!0,XS(e.target,t,!1)),e.isPressed=!1,(r=e.metaKeyEvents)==null||r.delete(t.key)}else if(t.key===`Meta`&&(n=e.metaKeyEvents)!=null&&n.size){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())(i=e.target)==null||i.dispatchEvent(new KeyboardEvent(`keyup`,n))}};if(typeof PointerEvent<`u`){t.onPointerDown=t=>{if(t.button!==0||!NS(t.currentTarget,PS(t.nativeEvent)))return;if(CC(t.nativeEvent)){e.pointerType=`virtual`;return}e.pointerType=t.pointerType;let i=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,d||BC(e.target),i=y(t,e.pointerType);let a=PS(t.nativeEvent);`releasePointerCapture`in a&&a.releasePointerCapture(t.pointerId),_(X(t.currentTarget),`pointerup`,n,!1),_(X(t.currentTarget),`pointercancel`,r,!1)}i&&t.stopPropagation()},t.onMouseDown=t=>{if(NS(t.currentTarget,PS(t.nativeEvent))&&t.button===0){if(l){let n=zC(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{!NS(t.currentTarget,PS(t.nativeEvent))||e.pointerType===`virtual`||t.button===0&&!e.isPressed&&x(t,e.pointerType||t.pointerType)},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!0,y($C(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&e.pointerType!=null&&(e.isOverTarget=!1,b($C(e.target,t),e.pointerType,!1),C(t))};let n=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0&&e.target){if(NS(e.target,PS(t))&&e.pointerType!=null){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?S(t):(VS(e.target),e.target.click()))},80);_(t.currentTarget,`click`,()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else S(t);e.isOverTarget=!1}},r=e=>{S(e)};t.onDragStart=e=>{NS(e.currentTarget,PS(e.nativeEvent))&&S(e)}}return t},[_,s,l,v,d,S,C,b,y,x,w,T]);return(0,Mk.useEffect)(()=>{if(!f)return;let e=X(f.current);if(!e||!e.head||e.getElementById(BN))return;let t=e.createElement(`style`);t.id=BN,t.textContent=`
188
188
  @layer {
189
189
  [${VN}] {
190
190
  touch-action: pan-x pan-y pinch-zoom;
@@ -196,7 +196,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
196
196
  * {
197
197
  overscroll-behavior: contain;
198
198
  }
199
- }`,document.head.prepend(r);let i=n=>{if(!(n.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&n.preventDefault()}},a=e=>{let t=e.target,n=e.relatedTarget;n&&gC(n)?(n.focus({preventScroll:!0}),KE(n,gC(t))):n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},o=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(e){let t=document.activeElement!=null&&gC(document.activeElement);o.call(this,{...e,preventScroll:!0}),(!e||!e.preventScroll)&&KE(this,t)};let s=kS(GE(document,`touchstart`,n,{passive:!1,capture:!0}),GE(document,`touchmove`,i,{passive:!1,capture:!0}),GE(document,`blur`,a,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=o}}function WE(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function GE(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function KE(e,t){t||!NF?qE(e):NF.addEventListener(`resize`,()=>qE(e),{once:!0})}function qE(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=pC(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;NF&&(n=Math.min(n,NF.offsetTop+NF.height));let i=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:`smooth`})}}n=e.parentElement}}function JE(){return(0,nA.useContext)(IF)??{}}function YE(e){let{children:t}=e,n=(0,rA.useContext)(LF),[r,i]=(0,rA.useState)(0),a=(0,rA.useMemo)(()=>({parent:n,modalCount:r,addModal(){i(e=>e+1),n&&n.addModal()},removeModal(){i(e=>e-1),n&&n.removeModal()}}),[n,r]);return rA.createElement(LF.Provider,{value:a},t)}function XE(){let e=(0,rA.useContext)(LF);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function ZE(e){let{modalProviderProps:t}=XE();return rA.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function QE(e){return rA.createElement(YE,null,rA.createElement(ZE,e))}function $E(e){let t=TS(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=JE();if(!e.portalContainer&&i&&(n=i()),rA.useEffect(()=>{if(n?.closest(`[data-overlay-container]`))throw Error(`An OverlayContainer must not be inside another container. Please change the portalContainer prop.`)},[n]),!n)return null;let a=rA.createElement(QE,r);return iA.createPortal(a,n)}function eD(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,oA.useState)(!1),{focusWithinProps:a}=ww({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,oA.useMemo)(()=>r?t:t?{...yI,...t}:yI,[r]);return{visuallyHiddenProps:{...a,style:o}}}function tD(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=eD(e);return oA.createElement(n,V(a,o),t)}function nD(e){return e&&e.__esModule?e.default:e}function rD(e){let{onDismiss:t,...n}=e,r=aC(n,rE(nD(vI),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return aA.createElement(tD,null,aA.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}function iD(e,t){let n=ZM(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&bI,o=new Set(e),s=new Set,c=e=>a&&e instanceof n.HTMLElement?e.inert:e.getAttribute(`aria-hidden`)===`true`,l=(e,t)=>{a&&e instanceof n.HTMLElement?e.inert=t:t?e.setAttribute(`aria-hidden`,`true`):(e.removeAttribute(`aria-hidden`),e instanceof n.HTMLElement&&(e.inert=!1))},u=e=>{for(let t of e.querySelectorAll(`[data-live-announcer], [data-react-aria-top-layer]`))o.add(t);let t=e=>{if(s.has(e)||o.has(e)||e.parentElement&&s.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of o)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&d(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;e!=null;)d(e),e=n.nextNode()}},d=e=>{let t=xI.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),xI.set(e,t+1))};SI.length&&SI[SI.length-1].disconnect(),u(i);let f=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`&&![...o,...s].some(e=>e.contains(t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&(e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer===`true`)?o.add(e):e instanceof Element&&u(e)});f.observe(i,{childList:!0,subtree:!0});let p={visibleNodes:o,hiddenNodes:s,observe(){f.observe(i,{childList:!0,subtree:!0})},disconnect(){f.disconnect()}};return SI.push(p),()=>{f.disconnect();for(let e of s){let t=xI.get(e);t!=null&&(t===1?(l(e,!1),xI.delete(e)):xI.set(e,t-1))}p===SI[SI.length-1]?(SI.pop(),SI.length&&SI[SI.length-1].observe()):SI.splice(SI.indexOf(p),1)}}function aD(e){let t=SI[SI.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function oD(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...c}=e,l=c.trigger===`SubmenuTrigger`,{overlayProps:u,underlayProps:d}=zE({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||l,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=cE({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null});return VE({isDisabled:a||!t.isOpen}),(0,sA.useEffect)(()=>{if(t.isOpen&&r.current)return a?aD(i?.current??r.current):iD([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]),{popoverProps:V(u,f),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}function sD(e){let t=TS(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,cA.useState)(!1),o=(0,cA.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=JE();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=cA.createElement(dE,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=cA.createElement(CI.Provider,{value:o},cA.createElement(Cw,null,c)),lA.createPortal(c,n)}function cD(){let e=(0,cA.useContext)(CI)?.setContain;Y(()=>{e?.(!0)},[e])}function lD(e,t,n){let{overlayProps:r,underlayProps:i}=zE({...e,isOpen:t.isOpen,onClose:t.close},n);return VE({isDisabled:!t.isOpen}),cD(),(0,uA.useEffect)(()=>{if(t.isOpen&&n.current)return iD([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:V(r),underlayProps:i}}function uD(e){let[t,n]=PC(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,setOpen:n,open:(0,fA.useCallback)(()=>{n(!0)},[n]),close:(0,fA.useCallback)(()=>{n(!1)},[n]),toggle:(0,fA.useCallback)(()=>{n(!t)},[n,t])}}function dD(e={}){let{delay:t=wI,closeDelay:n=TI}=e,{isOpen:r,open:i,close:a}=uD(e),o=(0,dA.useMemo)(()=>`${++DI}`,[]),s=(0,dA.useRef)(null),c=(0,dA.useRef)(a),l=()=>{EI[o]=f},u=()=>{for(let e in EI)e!==o&&(EI[e](!0),delete EI[e])},d=()=>{s.current&&clearTimeout(s.current),s.current=null,u(),l(),OI=!0,i(),kI&&=(clearTimeout(kI),null),AI&&=(clearTimeout(AI),null)},f=e=>{e||n<=0?(s.current&&clearTimeout(s.current),s.current=null,c.current()):s.current||=setTimeout(()=>{s.current=null,c.current()},n),kI&&=(clearTimeout(kI),null),OI&&(AI&&clearTimeout(AI),AI=setTimeout(()=>{delete EI[o],AI=null,OI=!1},Math.max(TI,n)))},p=()=>{u(),l(),!r&&!kI&&!OI?kI=setTimeout(()=>{kI=null,OI=!0,d()},t):r||d()};return(0,dA.useEffect)(()=>{c.current=a},[a]),(0,dA.useEffect)(()=>()=>{s.current&&clearTimeout(s.current),EI[o]&&delete EI[o]},[o]),{isOpen:r,open:e=>{!e&&t>0&&!s.current?p():d()},close:f}}function fD(e){let t=dD(e),n=(0,pA.useRef)(null),{triggerProps:r,tooltipProps:i}=Rw(e,t,n);return pA.createElement(Mw,{values:[[jI,t],[MI,{...i,triggerRef:n}]]},pA.createElement(QN,{...r,ref:n},e.children))}function pD(e){let t=(0,pA.useContext)(jI),n=(0,pA.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=cE({placement:e.placement||`top`,targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=TC(e.tooltipRef,!!a)||e.isEntering||!1,c=Nw({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:s,isExiting:e.isExiting,state:t}});e=V(e,r);let{tooltipProps:l}=Lw(e,t),u=BS(e,{global:!0});return pA.createElement(`div`,{...V(u,c,l),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...c.style},"data-placement":a??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},pA.createElement(oP.Provider,{value:{...i,placement:a,ref:n}},c.children))}function mD(e=``){let t=e.toLowerCase().trim().replace(/\s+/g,`-`);return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?hA.createElement(`span`,{id:t,hidden:!0},e):null}}function hD(e){let t=e=>typeof window<`u`&&window.matchMedia(e).matches,[n,r]=(0,xA.useState)(t(e));function i(){r(t(e))}return(0,xA.useEffect)(()=>{let t=window.matchMedia(e);return i(),t.addEventListener(`change`,i),()=>{t.removeEventListener(`change`,i)}},[e]),n}function gD({container:e,portalSelector:t,children:n,width:r,height:i,ariaLabel:a,dismissOnClickOutside:o=!0,dismissOnEscape:s=!0,className:c,open:l,onEscapeKeyDown:u,onInteractOutside:d,onOpenChange:f,defaultOpen:p,transitionDuration:m=200,variant:h=`dialog`,...g}){let _;(a===void 0||a===``)&&(_=`ariaLabel`,mL("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),u!==void 0&&(_=`onEscapeKeyDown`,mL("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(_=`onInteractOutside`,mL("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let v=(0,yA.useRef)(null),[{status:y,isMounted:b},x]=SL({timeout:hD(`(prefers-reduced-motion: reduce)`)?0:m,mountOnEnter:!0,unmountOnExit:!0}),S=uD({isOpen:l||b,defaultOpen:p,onOpenChange:e=>{x(e),f?.(e)}}),C=()=>{S.close()},{modalProps:w,underlayProps:T}=lD({isDismissable:o,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?e=>{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,relatedTarget:e});return d(t),!t.defaultPrevented}:void 0},S,v);if((0,yA.useEffect)(()=>{let e=l??p??!1;e&&!b?x(!0):!e&&b&&x(!1)},[l,p,b,x]),(0,yA.useEffect)(()=>{b&&(l||p)&&f?.(!0)},[b]),(0,yA.useEffect)(()=>{if(b&&(l||p)&&v.current)return iD([v.current],{shouldUseInert:!0})},[b,l,p,v]),!b||y===`exited`||y===`unmounted`)return null;let E=V(w,{onKeyDown:e=>{e.key===`Escape`?s&&(u?.(e.nativeEvent),e.nativeEvent.defaultPrevented||C()):w.onKeyDown?.(e)}}),D=e??(t?document.querySelector(t):void 0);return yA.createElement(sD,{disableFocusManagement:!0,portalContainer:D||void 0},yA.createElement(dE,{restoreFocus:!0,contain:!0,autoFocus:!0},yA.createElement(IL,{$status:y,$transitionDuration:m,...T}),yA.createElement(`div`,{role:`dialog`,"aria-label":a,ref:v,...E},yA.createElement(XL.Provider,{value:{close:C}},yA.createElement(`div`,{tabIndex:-1},yA.createElement(LL,{"data-deprecated":_,$variant:h,$status:y,$transitionDuration:m,className:c,width:r,height:i,...g},n))))))}function _D(e,t){var n=(0,DA.useRef)(null),r=(0,DA.useRef)(null);r.current=t;var i=(0,DA.useRef)(null);(0,DA.useEffect)(function(){a()});var a=(0,DA.useCallback)(function(){var t=i.current,a=r.current,o=t||(a?a instanceof Element?a:a.current:null);n.current&&n.current.element===o&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:o,subscriber:e,cleanup:o?e(o):void 0})},[e]);return(0,DA.useEffect)(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),(0,DA.useCallback)(function(e){i.current=e,a()},[a])}function vD(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t===`contentBoxSize`?e.contentRect[n===`inlineSize`?`width`:`height`]:void 0}function yD(e){e===void 0&&(e={});var t=e.onResize,n=(0,DA.useRef)(void 0);n.current=t;var r=e.round||Math.round,i=(0,DA.useRef)(),a=(0,DA.useState)({width:void 0,height:void 0}),o=a[0],s=a[1],c=(0,DA.useRef)(!1);(0,DA.useEffect)(function(){return c.current=!1,function(){c.current=!0}},[]);var l=(0,DA.useRef)({width:void 0,height:void 0}),u=_D((0,DA.useCallback)(function(t){return(!i.current||i.current.box!==e.box||i.current.round!==r)&&(i.current={box:e.box,round:r,instance:new ResizeObserver(function(t){var i=t[0],a=e.box===`border-box`?`borderBoxSize`:e.box===`device-pixel-content-box`?`devicePixelContentBoxSize`:`contentBoxSize`,o=vD(i,a,`inlineSize`),u=vD(i,a,`blockSize`),d=o?r(o):void 0,f=u?r(u):void 0;if(l.current.width!==d||l.current.height!==f){var p={width:d,height:f};l.current.width=d,l.current.height=f,n.current?n.current(p):c.current||s(p)}})}),i.current.instance.observe(t,{box:e.box}),function(){i.current&&i.current.instance.unobserve(t)}},[e.box,r]),e.ref);return(0,DA.useMemo)(function(){return{ref:u,width:o.width,height:o.height}},[u,o.width,o.height])}function bD({centered:e,scale:t,children:n}){let r=(0,EA.useRef)(null),[i,a]=(0,EA.useState)(0),o=(0,EA.useCallback)(({height:e})=>{e&&a(e/t)},[t]);return(0,EA.useEffect)(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[t]),yD({ref:r,onResize:o}),EA.createElement(ZL,{centered:e,scale:t,elementHeight:i},EA.createElement(`div`,{ref:r,className:`innerZoomElementWrapper`},n))}function xD(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),PR||(PR=document.createElement(`textarea`),PR.setAttribute(`tabindex`,`-1`),PR.setAttribute(`aria-hidden`,`true`),NR(PR)),PR.parentNode===null&&document.body.appendChild(PR);var i=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach(function(e){var t=e;PR.style[t]=o[t]}),NR(PR),PR.value=t;var c=FR(PR,e);PR.value=t,c=FR(PR,e),PR.value=`x`;var l=PR.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);var d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function SD(e,t,n){var r=OR(n);LA.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}function CD(e){return e==null||typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`}function wD(e){return{...e,type:`option`,value:DD(e.value)}}function TD(e){return`type`in e&&e.type===`reset`?e:wD(e)}function ED(e){if(e!==tz)return e}function DD(e){return e===void 0?tz:e}function OD(e,{value:t}){return`${e}-opt-${String(t)??`sb-reset`}`}function kD(e,t){return t===void 0?[]:CD(t)?e.filter(e=>e.value===t).map(wD):e.filter(e=>t.some(t=>e.value===t)).map(wD)}function AD(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}function jD(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,WA.useMemo)(()=>new WeakMap,a);return(0,WA.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=o.get(a);if(!n){n=t(a);let e=n.props.id??a.key??a.id;if(e==null)throw Error(`Could not determine key for item`);r&&(e=r+`:`+e),n=(0,WA.cloneElement)(n,i?{key:e,id:e,value:a}:{key:e}),o.set(a,n)}e.push(n)}return e}else if(typeof t!=`function`)return t},[t,n,o,r,i])}function MD(e){if((0,GA.useContext)(yz))return GA.createElement(GA.Fragment,null,e.children);let t=GA.createElement(yz.Provider,{value:!0},e.children);return GA.createElement(`template`,{"data-react-aria-hidden":!0},t)}function ND(e){let t=(t,n)=>(0,GA.useContext)(yz)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,GA.forwardRef)(t)}function PD(){return(0,GA.useContext)(yz)}function FD(e){if((0,W.useContext)(xz))return e.content;let{collection:t,document:n}=RD(e.createCollection);return W.createElement(W.Fragment,null,W.createElement(MD,null,W.createElement(xz.Provider,{value:n},e.content)),W.createElement(ID,{render:e.children,collection:t}))}function ID({collection:e,render:t}){return t(e)}function LD(e,t,n){let r=TS(),i=(0,W.useRef)(r);return i.current=r,(0,qA.useSyncExternalStore)(e,(0,W.useCallback)(()=>i.current?n():t(),[t,n]))}function RD(e){let[t]=(0,W.useState)(()=>new vz(e?.()||new hz)),n=Sz((0,W.useCallback)(e=>t.subscribe(e),[t]),(0,W.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,W.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]));return Y(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:n,document:t}}function zD(e){var t;return t=class extends lz{},t.type=e,t}function BD(e,t,n,r,i,a){typeof e==`string`&&(e=zD(e));let o=(0,W.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,W.useContext)(Cz);if(s){let o=s.ownerDocument.nodesByProps.get(t);return o||(o=s.ownerDocument.createElement(e.type),o.setProps(t,n,e,r,a),s.appendChild(o),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,o)),i?W.createElement(Cz.Provider,{value:o},i):null}return W.createElement(e.type,{ref:o},i)}function VD(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,W.forwardRef)((r,i)=>{let a=(0,W.useContext)(ZN);if(!(0,W.useContext)(bz)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return BD(e,r,i,`children`in r?r.children:null,null,e=>W.createElement(ZN.Provider,{value:a},W.createElement(n,{node:e})))});return r.displayName=t.name,r}function HD(e,t,n=UD){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,W.forwardRef)((t,i)=>BD(e,t,i,null,n(t),e=>W.createElement(r,{node:e}))??W.createElement(W.Fragment,null));return i.displayName=t.name,i}function UD(e){return jD({...e,addIdAndValue:!0})}function WD(e){let t=(0,W.useContext)(wz),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope||t?.idScope,i=UD({...e,idScope:r,dependencies:n});return(0,W.useContext)(xz)&&(i=W.createElement(GD,null,i)),t=(0,W.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),W.createElement(wz.Provider,{value:t},i)}function GD({children:e}){let t=(0,W.useContext)(xz),n=(0,W.useMemo)(()=>W.createElement(xz.Provider,{value:null},W.createElement(bz.Provider,{value:!0},e)),[e]);return TS()?W.createElement(Cz.Provider,{value:t},n):(0,KA.createPortal)(n,t)}function KD(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=ES(t);let o=ES(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=aC({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}function qD(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:o={style:`percent`}}=e,s=BS(e,{labelable:!0}),{labelProps:c,fieldProps:l}=KD({...e,labelElementType:`span`});t=FC(t,n,r);let u=(t-n)/(r-n),d=oE(o);if(!a&&!i){let e=o.style===`percent`?u:t;i=d.format(e)}return{progressBarProps:V(s,{...l,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:`progressbar`}),labelProps:c}}function JD(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:d,href:f,target:p,rel:m,type:h=`button`}=e,g;g=n===`button`?{type:h,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?f:void 0,target:n===`a`?p:void 0,type:n===`input`?h:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?m:void 0};let{pressProps:_,isPressed:v}=XC({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=Sw(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=V(y,_,BS(e,{labelable:!0}));return{isPressed:v,buttonProps:V(g,b,{"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`]})}}function YD(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}function XD({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,ZA.useRef)(null),o=(0,ZA.useRef)(null),s=(0,ZA.useContext)(kz),c=s&&i.trigger===`SubmenuTrigger`,{popoverProps:l,underlayProps:u,arrowProps:d,placement:f,triggerAnchorPoint:p}=oD({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),m=i.popoverRef,h=TC(m,!!f)||i.isEntering||!1,g=Nw({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:f,isEntering:h,isExiting:t}}),_=!i.isNonModal||i.trigger===`SubmenuTrigger`,[v,y]=(0,ZA.useState)(!1);Y(()=>{m.current&&y(_&&!m.current.querySelector(`[role=dialog]`))},[m,_]),(0,ZA.useEffect)(()=>{v&&i.trigger!==`SubmenuTrigger`&&m.current&&!m.current.contains(document.activeElement)&&_w(m.current)},[v,m,i.trigger]);let b=(0,ZA.useMemo)(()=>{let e=g.children;if(r)for(let t of r)e=ZA.createElement(t.Provider,{value:null},e);return e},[g.children,r]),x={...l.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,...g.style},S=ZA.createElement(`div`,{...V(BS(i,{global:!0}),l),...g,role:v?`dialog`:void 0,tabIndex:v?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:m,slot:i.slot||void 0,style:x,dir:i.dir,"data-trigger":i.trigger,"data-placement":f,"data-entering":h||void 0,"data-exiting":t||void 0},!i.isNonModal&&ZA.createElement(rD,{onDismiss:e.close}),ZA.createElement(oP.Provider,{value:{...d,placement:f,ref:a}},b),ZA.createElement(rD,{onDismiss:e.close}));return c?ZA.createElement(sD,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n??s?.current??void 0},S):ZA.createElement(sD,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&ZA.createElement(`div`,{"data-testid":`underlay`,...u,style:{position:`fixed`,inset:0}}),ZA.createElement(`div`,{ref:o,style:{display:`contents`}},ZA.createElement(kz.Provider,{value:o},S)))}function ZD(e,t,n){return jD({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){let r=t.render(t);return!n||t.type!==`item`?r:QA.createElement(QA.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,QD(e,t,n))}})}function QD(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i==null?null:e.getItem(i);for(;a!=null&&a.type!==`item`;)i=e.getKeyAfter(a.key),a=i==null?null:e.getItem(i);let o=t.nextKey==null?null:e.getItem(t.nextKey);for(;o!=null&&o.type!==`item`;)o=o.nextKey==null?null:e.getItem(o.nextKey);let s=[];if(o==null){let r=t;for(;r&&(!a||r.parentKey!==a.parentKey&&a.level<r.level);){let t=n({type:`item`,key:r.key,dropPosition:`after`});(0,QA.isValidElement)(t)&&s.push((0,QA.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}function $D(e){return(0,QA.useMemo)(()=>e==null?null:new Set([e]),[e])}function eO(e){let t=BS(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}function tO(e){return pN()?e.altKey:e.ctrlKey}function nO(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}function rO(e){let t=ES();return Vz.set(e,t),t}function iO(e){return Vz.get(e)}function aO(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,rj.useRef)({search:``,timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let a=oO(e.key);if(!(!a||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target)||i.search.length===0&&a===` `)){if(a===` `&&i.search.trim().length>0&&(e.preventDefault(),`continuePropagation`in e||e.stopPropagation()),i.search+=a,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.search,n.focusedKey);e??=t.getKeyForSearch(i.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=``},Hz)}}:void 0}}}function oO(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function sO(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c=`clearSelection`,selectOnFocus:l=t.selectionBehavior===`replace`,disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:m=r,linkBehavior:h=`action`}=e,{direction:g}=aT(),_=JS(),v=e=>{var i;if(e.altKey&&e.key===`Tab`&&e.preventDefault(),!((i=r.current)!=null&&i.contains(e.target)))return;let u=(n,i)=>{if(n!=null){if(t.isLink(n)&&h===`selection`&&l&&!tO(e)){(0,ij.flushSync)(()=>{t.setFocusedKey(n,i)});let a=nO(r,n),o=t.getItemProps(n);a&&_.open(a,e,o.href,o.routerOptions);return}if(t.setFocusedKey(n,i),t.isLink(n)&&h===`override`)return;e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(n):l&&!tO(e)&&t.replaceSelection(n)}};switch(e.key){case`ArrowDown`:if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.call(n):n.getKeyBelow?.call(n,t.focusedKey);r==null&&a&&(r=n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowUp`:if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.call(n):n.getKeyAbove?.call(n,t.focusedKey);r==null&&a&&(r=n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowLeft`:if(n.getKeyLeftOf){let r=t.focusedKey==null?null:n.getKeyLeftOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getFirstKey?.call(n,t.focusedKey):n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`first`:`last`))}break;case`ArrowRight`:if(n.getKeyRightOf){let r=t.focusedKey==null?null:n.getKeyRightOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getLastKey?.call(n,t.focusedKey):n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`last`:`first`))}break;case`Home`:if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getFirstKey(t.focusedKey,hC(e));t.setFocusedKey(r),r!=null&&(hC(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`End`:if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getLastKey(t.focusedKey,hC(e));t.setFocusedKey(r),r!=null&&(hC(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`PageDown`:if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`PageUp`:if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`a`:hC(e)&&t.selectionMode===`multiple`&&s!==!0&&(e.preventDefault(),t.selectAll());break;case`Escape`:c===`clearSelection`&&!o&&t.selectedKeys.size!==0&&(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case`Tab`:if(!f){if(e.shiftKey)r.current.focus();else{let e=AE(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);t&&!t.contains(document.activeElement)&&VS(t)}break}}},y=(0,aj.useRef)({top:0,left:0});vC(m,`scroll`,p?void 0:()=>{y.current={top:m.current?.scrollTop??0,left:m.current?.scrollLeft??0}});let b=e=>{if(t.isFocused){e.currentTarget.contains(e.target)||t.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),t.focusedKey==null){let r=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))},i=e.relatedTarget;i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?r(t.lastSelectedKey??n.getLastKey?.call(n)):r(t.firstSelectedKey??n.getFirstKey?.call(n))}else!p&&m.current&&(m.current.scrollTop=y.current.top,m.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&m.current){let e=nO(r,t.focusedKey);e instanceof HTMLElement&&(!e.contains(document.activeElement)&&!d&&VS(e),pw()===`keyboard`&&xC(e,{containingElement:r.current}))}}},x=e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},S=(0,aj.useRef)(!1);vC(r,EN,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(S.current=!0)}:void 0);let C=sC(()=>{let e=n.getFirstKey?.call(n)??null;if(e==null){let e=$M();FE(r.current),LE(e,null),t.collection.size>0&&(S.current=!1)}else t.setFocusedKey(e),S.current=!1});cC(()=>{S.current&&C()},[t.collection,C]);let w=sC(()=>{t.collection.size>0&&(S.current=!1)});cC(()=>{w()},[t.focusedKey,w]),vC(r,TN,d?e=>{var n;e.stopPropagation(),t.setFocused(!1),(n=e.detail)!=null&&n.clearFocusKey&&t.setFocusedKey(null)}:void 0);let T=(0,aj.useRef)(i),E=(0,aj.useRef)(!1);(0,aj.useEffect)(()=>{if(T.current){let e=null;i===`first`&&(e=n.getFirstKey?.call(n)??null),i===`last`&&(e=n.getLastKey?.call(n)??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e==null&&!d&&r.current&&_w(r.current),t.collection.size>0&&(T.current=!1,E.current=!0)}});let D=(0,aj.useRef)(t.focusedKey),O=(0,aj.useRef)(null);(0,aj.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==D.current||E.current)&&m.current&&r.current){let e=pw(),n=nO(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||E.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{m.current&&(yC(m.current,n),e!==`virtual`&&xC(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&D.current!=null&&r.current&&_w(r.current),D.current=t.focusedKey,E.current=!1}),(0,aj.useEffect)(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),vC(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let k={onKeyDown:v,onFocus:b,onBlur:x,onMouseDown(e){m.current===e.target&&e.preventDefault()}},{typeSelectProps:ee}=aO({keyboardDelegate:n,selectionManager:t});u||(k=V(ee,k));let A;d||(A=t.focusedKey==null?0:-1);let j=rO(t.collection);return{collectionProps:V(k,{tabIndex:A,"data-collection":j})}}function cO(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:c,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d=`action`}=e,f=JS();t=ES(t);let p=e=>{if(e.pointerType===`keyboard`&&tO(e))n.toggleSelection(r);else{if(n.selectionMode===`none`)return;if(n.isLink(r)){if(d===`selection`&&i.current){let t=n.getItemProps(r);f.open(i.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(d===`override`||d===`none`)return}n.selectionMode===`single`?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):n.selectionBehavior===`toggle`||e&&(hC(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,oj.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?FE(i.current):s?s():document.activeElement!==i.current&&i.current&&_w(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),c||=n.isDisabled(r);let m={};!o&&!c?m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){e.target===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()});let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,_=n.isLink(r)&&d!==`selection`&&d!==`none`,v=!c&&n.canSelectItem(r)&&!h&&!g,y=(l||_)&&!c,b=y&&(n.selectionBehavior===`replace`?!v:!v||n.isEmpty),x=y&&v&&n.selectionBehavior===`replace`,S=b||x,C=(0,oj.useRef)(null),w=S&&v,T=(0,oj.useRef)(!1),E=(0,oj.useRef)(!1),D=n.getItemProps(r),O=e=>{if(l){var t;l(),(t=i.current)==null||t.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))}_&&i.current&&f.open(i.current,e,D.href,D.routerOptions)},k={ref:i};if(a?(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,e.pointerType===`keyboard`&&(!S||uO())&&p(e)},u?(k.onPressUp=b?void 0:e=>{e.pointerType===`mouse`&&v&&p(e)},k.onPress=b?O:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&v&&p(e)}):k.onPress=e=>{if(b||x&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!lO())return;O(e)}else e.pointerType!==`keyboard`&&v&&p(e)}):(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,E.current=b,v&&(e.pointerType===`mouse`&&!b||e.pointerType===`keyboard`&&(!y||uO()))&&p(e)},k.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&S&&lO()||e.pointerType===`mouse`&&E.current)&&(S?O(e):v&&p(e))}),m[`data-collection`]=iO(n.collection),m[`data-key`]=r,k.preventFocusOnPress=o,o&&(k=V(k,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),D)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])D[e]&&(k[e]=kS(k[e],D[e]));let{pressProps:ee,isPressed:A}=XC(k),j=x?e=>{C.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),O(e))}:void 0,{longPressProps:te}=jw({isDisabled:!w,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),ne=e=>{C.current===`touch`&&T.current&&e.preventDefault()},re=d!==`none`&&n.isLink(r)?e=>{XS.isOpening||e.preventDefault()}:void 0;return{itemProps:V(m,v||b||o&&!c?ee:{},w?te:{},{onDoubleClick:j,onDragStartCapture:ne,onClick:re,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:A,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:v,hasAction:S}}function lO(){return window.event?.key===`Enter`}function uO(){let e=window.event;return e?.key===` `||e?.code===`Space`}function dO(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,s=sE({usage:`search`,sensitivity:`base`}),c=t.disabledBehavior,l=(0,sj.useMemo)(()=>a||new Wz({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:s,layoutDelegate:o}),[a,o,n,r,i,s,c]),{collectionProps:u}=sO({...e,ref:i,selectionManager:t,keyboardDelegate:l});return{listProps:u}}function fO(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e[`aria-label`]&&e[`aria-labelledby`];let s=BS(e,{labelable:!0}),{listProps:c}=dO({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return Bz.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:V(s,{onKeyDown:i,onKeyUp:a},{role:`menu`,...c,onKeyDown:t=>{var n;(t.key!==`Escape`||e.shouldUseVirtualFocus)&&((n=c.onKeyDown)==null||n.call(c,t))}})}}function pO(e){return null}function mO(e){return e.hasChildItems==null?!!(e.childItems||e.title&&cj.Children.count(e.children)>0):e.hasChildItems}function hO(e){return null}function gO(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||=e();for(let e of n)t.push(e),yield e}}}function _O(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function vO(e){return e[0].toUpperCase()+e.slice(1)}function yO(e,t,n){let r=(0,dj.useMemo)(()=>new Kz,[]),{children:i,items:a,collection:o}=e;return(0,dj.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function bO(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function xO(e){return SO(e,0)}function SO(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function CO(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...wO(e,t),t],i=[...wO(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function wO(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}function TO(e){let t=qz.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(bO(i,e)):i.type===`item`&&n++};return r(e),qz.set(e,n),n}function EO(e,t,n){let{id:r,key:i,closeOnSelect:a,isVirtualized:o,"aria-haspopup":s,onPressStart:c,onPressUp:l,onPress:u,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:m,onHoverChange:h,onHoverEnd:g,onKeyDown:_,onKeyUp:v,onFocus:y,onFocusChange:b,onBlur:x,selectionManager:S=t.selectionManager}=e,C=!!s,w=C&&e[`aria-expanded`]===`true`,T=e.isDisabled??S.isDisabled(i),E=e.isSelected??S.isSelected(i),D=Bz.get(t),O=t.collection.getItem(i),k=e.onClose||D.onClose,ee=JS(),A=()=>{var t;if(!C&&(!(O==null||(t=O.props)==null)&&t.onAction?O.props.onAction():e.onAction&&e.onAction(i),D.onAction)){let e=D.onAction;e(i)}},j=`menuitem`;C||(S.selectionMode===`single`?j=`menuitemradio`:S.selectionMode===`multiple`&&(j=`menuitemcheckbox`));let te=OS(),ne=OS(),re=OS(),ie={id:r,"aria-disabled":T||void 0,role:j,"aria-label":e[`aria-label`],"aria-labelledby":te,"aria-describedby":[ne,re].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":s,"aria-expanded":e[`aria-expanded`]};S.selectionMode!==`none`&&!C&&(ie[`aria-checked`]=E),o&&(ie[`aria-posinset`]=O?.index,ie[`aria-setsize`]=TO(t.collection));let ae=(0,fj.useRef)(!1),oe=e=>{d?.(e),ae.current=e},se=(0,fj.useRef)(null),M=e=>{e.pointerType!==`keyboard`&&(se.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(ae.current||e.target.click()),l?.(e)},ce=e=>{p?.(e),A(),eC(e,ee,O.props.href,O?.props.routerOptions);let t=se.current?.pointerType===`keyboard`?se.current?.key===`Enter`||S.selectionMode===`none`||S.isLink(i):S.selectionMode!==`multiple`||S.isLink(i);t=a??t,k&&!C&&t&&k(),se.current=null},{itemProps:le,isFocused:ue}=cO({id:r,selectionManager:S,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:D.shouldUseVirtualFocus}),{pressProps:de,isPressed:fe}=XC({onPressStart:c,onPress:u,onPressUp:M,onPressChange:oe,onPressEnd:f,isDisabled:T}),{hoverProps:pe}=Ow({isDisabled:T,onHoverStart(e){!fw()&&!(w&&s)&&(S.setFocused(!0),S.setFocusedKey(i)),m?.(e)},onHoverChange:h,onHoverEnd:g}),{keyboardProps:me}=bw({onKeyDown:e=>{if(e.repeat){e.continuePropagation();return}switch(e.key){case` `:se.current={pointerType:`keyboard`,key:` `},e.target.click();break;case`Enter`:se.current={pointerType:`keyboard`,key:`Enter`},e.target.tagName!==`A`&&e.target.click();break;default:C||e.continuePropagation(),_?.(e);break}},onKeyUp:v}),{focusProps:he}=vw({onBlur:x,onFocus:y,onFocusChange:b}),ge=BS(O?.props);delete ge.id;let _e=$S(O?.props);return{menuItemProps:{...ie,...V(ge,_e,C?{onFocus:le.onFocus,"data-collection":le[`data-collection`],"data-key":le[`data-key`]}:le,de,pe,me,he,D.shouldUseVirtualFocus||C?{onMouseDown:e=>e.preventDefault()}:void 0,T?void 0:{onClick:ce}),tabIndex:le.tabIndex!=null&&w&&!D.shouldUseVirtualFocus?-1:le.tabIndex},labelProps:{id:te},descriptionProps:{id:ne},keyboardShortcutProps:{id:re},isFocused:ue,isFocusVisible:ue&&S.isFocused&&fw()&&!w,isSelected:E,isPressed:fe,isDisabled:T}}function DO(e){let{heading:t,"aria-label":n}=e,r=ES();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function OO(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:i}=e,a=(0,pj.useRef)(void 0),o=(0,pj.useRef)(void 0),s=(0,pj.useRef)(0),c=(0,pj.useRef)(void 0),l=(0,pj.useRef)(void 0),u=(0,pj.useRef)(void 0),d=(0,pj.useRef)(2),[f,p]=(0,pj.useState)(!1);uC({ref:n,onResize:()=>{n.current&&(o.current=n.current.getBoundingClientRect(),u.current=void 0)}});let m=()=>{p(!1),d.current=Jz,a.current=void 0},h=mw(),g=sC(e=>{f&&e.preventDefault()});(0,pj.useEffect)(()=>{f&&t.current?t.current.style.pointerEvents=`none`:t.current.style.pointerEvents=``},[t,f]),(0,pj.useEffect)(()=>{let e=n.current,f=t.current;if(i||!e||!r||h!==`pointer`||!f){m();return}o.current=e.getBoundingClientRect();let _=e=>{if(e.pointerType===`touch`||e.pointerType===`pen`)return;let t=Date.now();if(t-s.current<Yz)return;clearTimeout(c.current),clearTimeout(l.current);let{clientX:n,clientY:r}=e;if(!a.current){a.current={x:n,y:r};return}if(!o.current)return;if(u.current||=n>o.current.right?`left`:`right`,n<f.getBoundingClientRect().left||n>f.getBoundingClientRect().right||r<f.getBoundingClientRect().top||r>f.getBoundingClientRect().bottom){m();return}let i=a.current.x,h=a.current.y,g=u.current===`right`?o.current.left-i:i-o.current.right,_=Math.atan2(h-o.current.top,g)+Zz,v=Math.atan2(h-o.current.bottom,g)-Zz,y=Math.atan2(h-r,u.current===`left`?-(n-i):n-i),b=y<_&&y>v;d.current=b?Math.min(d.current+1,Jz):Math.max(d.current-1,0),d.current>=Jz?p(!0):p(!1),s.current=t,a.current={x:n,y:r},b&&(c.current=setTimeout(()=>{m(),l.current=setTimeout(()=>{let e=document.elementFromPoint(n,r);e&&f.contains(e)&&e.dispatchEvent(new PointerEvent(`pointerover`,{bubbles:!0,cancelable:!0}))},100)},Xz))};return window.addEventListener(`pointermove`,_),window.addEventListener(`pointerdown`,g,!0),()=>{window.removeEventListener(`pointermove`,_),window.removeEventListener(`pointerdown`,g,!0),clearTimeout(c.current),clearTimeout(l.current),d.current=Jz}},[i,r,t,h,p,g,n])}function kO(e,t,n){let{parentMenuRef:r,submenuRef:i,type:a=`menu`,isDisabled:o,delay:s=200,shouldUseVirtualFocus:c}=e,l=ES(),u=ES(),{direction:d}=aT(),f=(0,mj.useRef)(void 0),p=(0,mj.useCallback)(()=>{f.current&&=(clearTimeout(f.current),void 0)},[f]),m=sC(e=>{p(),t.open(e)}),h=sC(()=>{p(),t.close()});Y(()=>()=>{p()},[p]);let g={id:u,"aria-labelledby":l,submenuLevel:t.submenuLevel,...a===`menu`&&{onClose:t.closeAll,autoFocus:t.focusStrategy??void 0,onKeyDown:e=>{if(e.currentTarget.contains(document.activeElement))switch(e.key){case`ArrowLeft`:d===`ltr`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&VS(n.current));break;case`ArrowRight`:d===`rtl`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&VS(n.current));break;case`Escape`:var t;(t=i.current)!=null&&t.contains(e.target)&&(e.stopPropagation(),h(),!c&&n.current&&VS(n.current));break}}}};return vC(r,`focusin`,e=>{var i;t.isOpen&&(i=r.current)!=null&&i.contains(e.target)&&e.target!==n.current&&h()}),OO({menuRef:r,submenuRef:i,isOpen:t.isOpen,isDisabled:o}),{submenuTriggerProps:{id:l,"aria-controls":t.isOpen?u:void 0,"aria-haspopup":o?void 0:a,"aria-expanded":t.isOpen?`true`:`false`,onPressStart:e=>{!o&&(e.pointerType===`virtual`||e.pointerType===`keyboard`)&&m(`first`)},onPress:e=>{!o&&(e.pointerType===`touch`||e.pointerType===`mouse`)&&m()},onHoverChange:e=>{o||(e&&!t.isOpen?f.current||=setTimeout(()=>{m()},s):e||p())},onKeyDown:e=>{switch(e.key){case`ArrowRight`:o||(d===`ltr`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&VS(i.current)):t.isOpen?h():e.continuePropagation());break;case`ArrowLeft`:o||(d===`rtl`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&VS(i.current)):t.isOpen?h():e.continuePropagation());break;default:e.continuePropagation();break}},isOpen:t.isOpen},submenuProps:g,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:e=>e!==n.current}}}function AO(e){let t=uD(e),[n,r]=(0,hj.useState)(null),[i,a]=(0,hj.useState)([]),o=()=>{a([]),t.close()};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},closeSubmenu:(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)}}}function jO(e,t){let{triggerKey:n}=e,{expandedKeysStack:r,openSubmenu:i,closeSubmenu:a,close:o}=t,[s]=(0,gj.useState)(r?.length),c=(0,gj.useMemo)(()=>r[s]===n,[r,n,s]),[l,u]=(0,gj.useState)(null),d=(0,gj.useCallback)(e=>{u(e??null),i(n,s)},[i,s,n]),f=(0,gj.useCallback)(()=>{u(null),a(n,s)},[a,s,n]),p=(0,gj.useCallback)(e=>{u(e??null),c?f():d(e)},[f,d,c]);return(0,gj.useMemo)(()=>({focusStrategy:l,isOpen:c,open:d,close:f,closeAll:o,submenuLevel:s,setOpen:()=>{},toggle:p}),[c,d,f,o,l,p,s])}function MO(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function NO(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,_j.useRef)(!1),[,s]=(0,_j.useState)(!1),c=(0,_j.useRef)(null),l=(0,_j.useRef)(null),[,u]=(0,_j.useState)(null),[d,f]=PC((0,_j.useMemo)(()=>PO(e.selectedKeys),[e.selectedKeys]),(0,_j.useMemo)(()=>PO(e.defaultSelectedKeys,new $z),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,_j.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,_j.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,_j.useRef)(i);return(0,_j.useEffect)(()=>{i!==g.current&&(h(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:h,get isFocused(){return o.current},setFocused(e){o.current=e,s(e)},get focusedKey(){return c.current},get childFocusStrategy(){return l.current},setFocusedKey(e,t=`first`){c.current=e,l.current=t,u(e)},selectedKeys:d,setSelectedKeys(e){(r||!MO(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function PO(e,t){return e?e===`all`?`all`:new $z(e):t}function FO(e){let{onExpandedChange:t}=e,[n,r]=PC(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=NO(e),a=(0,vj.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=yO(e,(0,vj.useCallback)(e=>new Qz(e,{expandedKeys:n}),[n]),null);return(0,vj.useEffect)(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(IO(n,e))},setExpandedKeys:r,selectionManager:new eB(o,i)}}function IO(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function LO({props:e,collection:t,menuRef:n}){[e,n]=Fw(e,n,Pz);let{filter:r,...i}=e,a=(0,G.useMemo)(()=>r?t.filter(r):t,[t,r]),o=FO({...e,collection:a,children:void 0}),s=(0,G.useContext)(rB),{isVirtualized:c,CollectionRoot:l}=(0,G.useContext)(Nz),{menuProps:u}=fO({...e,isVirtualized:c,onClose:e.onClose||s?.close},o,n),d=Nw({defaultClassName:`react-aria-Menu`,className:e.className,style:e.style,values:{isEmpty:o.collection.size===0}}),f=null;o.collection.size===0&&e.renderEmptyState&&(f=G.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let p=BS(e,{global:!0});return G.createElement(dE,null,G.createElement(`div`,{...V(p,d,u),ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},G.createElement(Mw,{values:[[nB,o],[Rz,{elementType:`div`}],[jz,{name:`MenuSection`,render:RO}],[aB,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[cB,null],[Pz,null],[Fz,null],[iB,o.selectionManager],[rB,s??AO({})]]},G.createElement(l,{collection:o.collection,persistedKeys:$D(o.selectionManager.focusedKey),scrollRef:n})),f))}function RO(e,t,n,r=`react-aria-MenuSection`){let i=(0,G.useContext)(nB),{CollectionBranch:a}=(0,G.useContext)(Nz),[o,s]=Iw(),{headingProps:c,groupProps:l}=DO({heading:s,"aria-label":n.props[`aria-label`]??void 0}),u=Nw({defaultClassName:r,className:n.props?.className,style:n.props?.style,values:{}}),d=(0,G.useContext)(iB),f=NO(e),p=e.selectionMode==null?d:new sB(d,f),m=BS(e,{global:!0});return delete m.id,G.createElement(`section`,{...V(m,u,l),ref:t},G.createElement(Mw,{values:[[Iz,{...c,ref:o}],[iB,p]]},G.createElement(a,{collection:i.collection,parent:n})))}function zO(e,t){let{role:n=`dialog`}=e,r=OS();r=e[`aria-label`]?void 0:r;let i=(0,yj.useRef)(!1);return(0,yj.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){_w(t.current);let e=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),_w(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),cD(),{dialogProps:{...BS(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}function BO(e){let t=AO(e),n=(0,bj.useRef)(null),{triggerProps:r,overlayProps:i}=BE({type:`dialog`},t,n),[a,o]=(0,bj.useState)(null);return uC({ref:n,onResize:(0,bj.useCallback)(()=>{n.current&&o(n.current.offsetWidth+`px`)},[n])}),r.id=ES(),i[`aria-labelledby`]=r.id,bj.createElement(Mw,{values:[[uB,t],[rB,t],[lB,i],[Oz,{trigger:`DialogTrigger`,triggerRef:n,"aria-labelledby":i[`aria-labelledby`],style:{"--trigger-width":a}}]]},bj.createElement(tP,{...r,ref:n,isPressed:t.isOpen},e.children))}function VO({children:e,...t},n){let r={props:t,ref:n};if(BB(r))return Dj.createElement(`a`,{ref:r.ref,...r.props},e);if(VB(r))return Dj.createElement(`button`,{ref:r.ref,type:`button`,...r.props},e);throw Error(`invalid props`)}function HO(e){eV("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=(0,Aj.useRef)(),n=(0,Aj.useRef)(),r=(0,Aj.useRef)(new Map),{width:i=1}=yD({ref:t}),[a,o]=(0,Aj.useState)(e),[s,c]=(0,Aj.useState)([]),l=(0,Aj.useRef)(e),u=(0,Aj.useCallback)(({menuName:e,actions:t})=>{let i=s.some(({active:e})=>e),[a,o]=(0,Aj.useState)(!1);return Aj.createElement(Aj.Fragment,null,Aj.createElement(dB,{ariaLabel:`Additional tabs`,visible:a,onVisibleChange:o,placement:`bottom`,popover:Aj.createElement(kB,{links:s.map(({title:e,id:n,color:r,active:i})=>({id:n,title:e,color:r,active:i,onClick:e=>{e.preventDefault(),t.onSelect(n)}}))})},Aj.createElement(nV,{id:`addons-menu-button`,ref:n,active:i,preActive:a,style:{visibility:s.length?`visible`:`hidden`},"aria-hidden":!s.length,className:`tabbutton`,type:`button`,role:`tab`},e,Aj.createElement(tV,{className:`addon-collapsible-icon`,isActive:i||a}))),s.map(({title:e,id:t,color:n},i)=>{let a=`index-${i}`;return Aj.createElement(WB,{id:`tabbutton-${eh(t)??a}`,style:{visibility:`hidden`},"aria-hidden":!0,tabIndex:-1,ref:e=>{r.current.set(t,e)},className:`tabbutton`,type:`button`,key:t,textColor:n,role:`tab`},e)}))},[s]),d=(0,Aj.useCallback)(()=>{if(!t.current||!n.current)return;let{x:i,width:u}=t.current.getBoundingClientRect(),{width:d}=n.current.getBoundingClientRect(),f=s.length?i+u-d:i+u,p=[],m=0,h=e.filter(e=>{let{id:t}=e,n=r.current.get(t),{width:a=0}=n?.getBoundingClientRect()||{},o=i+m+a>f;return(!o||!n)&&p.push(e),m+=a,o});(p.length!==a.length||l.current!==e)&&(o(p),c(h),l.current=e)},[s.length,e,a]);return(0,Aj.useLayoutEffect)(d,[d,i]),{tabRefs:r,addonsRef:n,tabBarRef:t,visibleList:a,invisibleList:s,AddonTab:u}}function UO(e,t){let{"aria-label":n,"aria-labelledby":r,orientation:i=`horizontal`}=e,[a,o]=(0,Mj.useState)(!1);Y(()=>{var e;o(!!(t.current&&(e=t.current.parentElement)!=null&&e.closest(`[role="toolbar"]`)))});let{direction:s}=aT(),c=s===`rtl`&&i===`horizontal`,l=jE(t),u=e=>{if(e.currentTarget.contains(e.target)){if(i===`horizontal`&&e.key===`ArrowRight`||i===`vertical`&&e.key===`ArrowDown`)c?l.focusPrevious():l.focusNext();else if(i===`horizontal`&&e.key===`ArrowLeft`||i===`vertical`&&e.key===`ArrowUp`)c?l.focusNext():l.focusPrevious();else if(e.key===`Tab`){e.stopPropagation(),d.current=document.activeElement,e.shiftKey?l.focusFirst():l.focusLast();return}else return;e.stopPropagation(),e.preventDefault()}},d=(0,Mj.useRef)(null),f=e=>{!e.currentTarget.contains(e.relatedTarget)&&!d.current&&(d.current=e.target)},p=e=>{var n;if(d.current&&!e.currentTarget.contains(e.relatedTarget)&&(n=t.current)!=null&&n.contains(e.target)){var r;(r=d.current)==null||r.focus(),d.current=null}};return{toolbarProps:{...BS(e,{labelable:!0}),role:a?`group`:`toolbar`,"aria-orientation":i,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:a?void 0:u,onFocusCapture:a?void 0:p,onBlurCapture:a?void 0:f}}}function WO(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${mV.get(e)}-${n}-${t}`):``}function GO(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:s}=t,c=r===s,l=i||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:u,isPressed:d}=cO({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a,linkBehavior:`selection`}),f=WO(t,r,`tab`),p=WO(t,r,`tabpanel`),{tabIndex:m}=u,h=t.collection.getItem(r),g=BS(h?.props,{labelable:!0});delete g.id;let _=$S(h?.props),{focusableProps:v}=Sw({isDisabled:l},n);return{tabProps:V(g,v,_,u,{id:f,"aria-selected":c,"aria-disabled":l||void 0,"aria-controls":c?p:void 0,tabIndex:l?void 0:m,role:`tab`}),isSelected:c,isDisabled:l,isPressed:d}}function KO(e,t,n){let r=PE(n)?void 0:0,i=WO(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:V(aC({...e,id:i,"aria-labelledby":WO(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}function qO(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:o,disabledKeys:s}=t,{direction:c}=aT(),{collectionProps:l}=sO({ref:n,selectionManager:o,keyboardDelegate:(0,Nj.useMemo)(()=>new hV(a,c,r,s),[a,s,r,c]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),u=ES();return mV.set(t,u),{tabListProps:{...V(l,aC({...e,id:u})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function JO(e){let{filter:t,layoutDelegate:n}=e,r=NO(e),i=(0,Ij.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=yO(e,(0,Ij.useCallback)(e=>t?new DV(t(e)):new DV(e),[t]),(0,Ij.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,Ij.useMemo)(()=>new eB(a,r,{layoutDelegate:n}),[a,r,n]);return YO(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function YO(e,t){let n=(0,Ij.useRef)(null);(0,Ij.useEffect)(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getItem(t.focusedKey),i=[...n.current.getKeys()].map(e=>{let t=n.current.getItem(e);return t?.type===`item`?t:null}).filter(e=>e!==null),a=[...e.getKeys()].map(t=>{let n=e.getItem(t);return n?.type===`item`?n:null}).filter(e=>e!==null),o=(i?.length??0)-(a?.length??0),s=Math.min(o>1?Math.max((r?.index??0)-o+1,0):r?.index??0,(a?.length??0)-1),c=null,l=!1;for(;s>=0;){if(!t.isDisabled(a[s].key)){c=a[s];break}s<a.length-1&&!l?s++:(l=!0,s>(r?.index??0)&&(s=r?.index??0),s--)}t.setFocusedKey(c?c.key:null)}n.current=e},[e,t])}function XO(e){let[t,n]=PC(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,Lj.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:o}=JO({...e,selectionMode:`single`,disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:r=>{if(r===`all`)return;let i=r.values().next().value??null;i===t&&e.onSelectionChange&&e.onSelectionChange(i),n(i)}});return{collection:i,disabledKeys:a,selectionManager:o,selectedKey:t,setSelectedKey:n,selectedItem:t==null?null:i.getItem(t)}}function ZO(e){let t=XO({...e,onSelectionChange:e.onSelectionChange?t=>{var n;t!=null&&((n=e.onSelectionChange)==null||n.call(e,t))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??QO(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=(0,Rj.useRef)(i);return(0,Rj.useEffect)(()=>{let o=i;e.selectedKey==null&&(n.isEmpty||o==null||!r.getItem(o))&&(o=QO(r,t.disabledKeys),o!=null&&n.setSelectedKeys([o])),(o!=null&&n.focusedKey==null||!n.isFocused&&o!==a.current)&&n.setFocusedKey(o),a.current=o}),{...t,isDisabled:e.isDisabled||!1}}function QO(e,t){let n=null;if(e){var r,i,a,o;for(n=e.getFirstKey();n!=null&&(t.has(n)||!((i=e.getItem(n))==null||(r=i.props)==null)&&r.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||!((o=e.getItem(n))==null||(a=o.props)==null)&&a.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}function $O({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=ZO({...e,collection:n,children:void 0}),{focusProps:a,isFocused:o,isFocusVisible:s}=NE({within:!0}),c=(0,q.useMemo)(()=>({orientation:r,isFocusWithin:o,isFocusVisible:s}),[r,o,s]),l=Nw({...e,defaultClassName:`react-aria-Tabs`,values:c}),u=BS(e,{global:!0});return q.createElement(`div`,{...V(u,l,a),ref:t,slot:e.slot||void 0,"data-focused":o||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},q.createElement(Mw,{values:[[NV,e],[PV,i]]},l.children))}function ek({props:e,forwardedRef:t}){let n=(0,q.useContext)(PV),{CollectionRoot:r}=(0,q.useContext)(Nz),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=Pw(NV),o=oC(t),{tabListProps:s}=qO({...e,orientation:i,keyboardActivation:a},n,o),c=Nw({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),l=BS(e,{global:!0});return delete l.id,q.createElement(`div`,{...V(l,c,s),ref:o,"data-orientation":i||void 0},q.createElement(r,{collection:n.collection,persistedKeys:$D(n.selectionManager.focusedKey)}))}var tk,nk,rk,ik,ak,ok,sk,ck,lk,uk,dk,fk,pk,mk,hk,gk,_k,vk,yk,bk,xk,Sk,Ck,wk,Tk,Ek,Dk,Ok,kk,Ak,jk,Mk,Nk,Pk,Fk,Ik,Lk,Rk,zk,Bk,Vk,Hk,Uk,Wk,Gk,Kk,qk,Jk,Yk,Xk,Zk,Qk,$k,eA,tA,nA,rA,iA,aA,oA,sA,cA,lA,uA,dA,fA,pA,mA,hA,gA,_A,vA,yA,bA,xA,SA,CA,wA,TA,EA,DA,OA,kA,U,AA,jA,MA,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,WA,GA,KA,W,qA,JA,YA,XA,ZA,QA,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,pj,mj,hj,gj,_j,vj,G,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,K,Nj,Pj,Fj,Ij,Lj,Rj,q,zj,J,Bj,Vj,Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM,nM,rM,iM,aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM,xM,SM,CM,wM,TM,EM,DM,OM,kM,AM,jM,MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,Y,UM,WM,GM,KM,qM,JM,YM,XM,X,ZM,QM,$M,eN,tN,nN,rN,iN,aN,oN,sN,cN,lN,uN,dN,fN,pN,mN,hN,gN,_N,vN,yN,bN,xN,SN,CN,wN,TN,EN,DN,ON,kN,AN,jN,MN,NN,PN,FN,IN,LN,RN,zN,BN,VN,HN,UN,WN,GN,KN,qN,JN,YN,XN,ZN,QN,$N,eP,tP,nP,rP,iP,aP,oP,sP,cP,lP,uP,dP,fP,pP,mP,hP,gP,_P,vP,yP,bP,xP,Z,SP,CP,wP,TP,Q,EP,DP,OP,kP,AP,jP,MP,NP,PP,FP,IP,LP,RP,zP,BP,VP,HP,UP,WP,GP,KP,qP,JP,YP,XP,ZP,QP,$P,eF,tF,nF,rF,iF,aF,oF,sF,cF,lF,uF,dF,fF,pF,mF,hF,gF,_F,vF,yF,bF,xF,SF,CF,wF,TF,EF,DF,OF,$,kF,AF,jF,MF,NF,PF,FF,IF,LF,RF,zF,BF,VF,HF,UF,WF,GF,KF,qF,JF,YF,XF,ZF,QF,$F,eI,tI,nI,rI,iI,aI,oI,sI,cI,lI,uI,dI,fI,pI,mI,hI,gI,_I,vI,yI,bI,xI,SI,CI,wI,TI,EI,DI,OI,kI,AI,jI,MI,NI,PI,FI,II,LI,RI,zI,BI,VI,HI,UI,WI,GI,KI,qI,JI,YI,XI,ZI,QI,$I,eL,tL,nL,rL,iL,aL,oL,sL,cL,lL,uL,dL,fL,pL,mL,hL,gL,_L,vL,yL,bL,xL,SL,CL,wL,TL,EL,DL,OL,kL,AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,BL,VL,HL,UL,WL,GL,KL,qL,JL,YL,XL,ZL,QL,$L,eR,tR,nR,rR,iR,aR,oR,sR,cR,lR,uR,dR,fR,pR,mR,hR,gR,_R,vR,yR,bR,xR,SR,CR,wR,TR,ER,DR,OR,kR,AR,jR,MR,NR,PR,FR,IR,LR,RR,zR,BR,VR,HR,UR,WR,GR,KR,qR,JR,YR,XR,ZR,QR,$R,ez,tz,nz,rz,iz,az,oz,sz,cz,lz,uz,dz,fz,pz,mz,hz,gz,_z,vz,yz,bz,xz,Sz,Cz,wz,Tz,Ez,Dz,Oz,kz,Az,jz,Mz,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz,Uz,Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz,Qz,$z,eB,tB,nB,rB,iB,aB,oB,sB,cB,lB,uB,dB,fB,pB,mB,hB,gB,_B,vB,yB,bB,xB,SB,CB,wB,TB,EB,DB,OB,kB,AB,jB,MB,NB,PB,FB,IB,LB,RB,zB,BB,VB,HB,UB,WB,GB,KB,qB,JB,YB,XB,ZB,QB,$B,eV,tV,nV,rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV,_V,vV,yV,bV,xV,SV,CV,wV,TV,EV,DV,OV,kV,AV,jV,MV,NV,PV,FV,IV,LV,RV,zV,BV,VV,HV,UV,WV,GV,KV,qV,JV,YV,XV,ZV,QV,$V,eH=t((()=>{E(),T(),he(),O(),k(),ve(),pe(),h(),tk=i(s(),1),nk=i(s(),1),ee(),rk=i(s(),1),ik=i(s(),1),ak=i(s(),1),s(),ok=i(s(),1),Ue(),sk=i(s(),1),ck=i(s(),1),lk=i(s(),1),s(),uk=S(),tS(),dk=i(s(),1),fk=i(s(),1),pk=i(s(),1),mk=i(s(),1),hk=i(s(),1),gk=i(s(),1),_k=i(s(),1),vk=i(s(),1),s(),yk=i(s(),1),bk=i(s(),1),xk=i(s(),1),s(),Sk=i(s(),1),Ck=i(s(),1),s(),wk=i(s(),1),Tk=i(s(),1),s(),s(),s(),s(),Ek=i(s(),1),Dk=i(me(),1),Ok=i(s(),1),kk=i(s(),1),Ak=i(s(),1),jk=i(s(),1),me(),Mk=i(s(),1),Nk=i(s(),1),Pk=i(s(),1),Fk=i(s(),1),Ik=i(s(),1),Lk=i(s(),1),Rk=i(s(),1),zk=i(s(),1),Bk=i(s(),1),s(),s(),Vk=i(s(),1),Hk=i(s(),1),Uk=i(s(),1),Wk=i(s(),1),Gk=i(s(),1),Kk=i(s(),1),qk=i(s(),1),Jk=i(s(),1),s(),Yk=i(s(),1),s(),s(),Xk=i(s(),1),s(),Zk=i(s(),1),Qk=i(s(),1),s(),$k=i(s(),1),eA=i(s(),1),tA=i(s(),1),nA=i(s(),1),rA=i(s(),1),iA=i(me(),1),aA=i(s(),1),oA=i(s(),1),sA=i(s(),1),cA=i(s(),1),lA=i(me(),1),uA=i(s(),1),dA=i(s(),1),fA=i(s(),1),pA=i(s(),1),mA=i(s(),1),hA=i(s(),1),gA=i(s(),1),_A=i(s(),1),vA=i(s(),1),yA=i(s(),1),bA=i(s(),1),s(),xA=i(s(),1),SA=i(s(),1),CA=i(s(),1),wA=i(s(),1),TA=i(s(),1),s(),s(),EA=i(s(),1),DA=i(s(),1),OA=i(s(),1),kA=i(s(),1),U=i(s(),1),AA=i(s(),1),jA=i(s(),1),MA=i(s(),1),NA=i(s(),1),PA=i(s(),1),FA=i(s(),1),IA=i(s(),1),LA=i(s(),1),RA=i(s(),1),zA=i(s(),1),BA=i(s(),1),VA=i(s(),1),HA=i(s(),1),UA=i(s(),1),WA=i(s(),1),GA=i(s(),1),KA=i(me(),1),W=i(s(),1),qA=rS(),JA=i(s(),1),YA=i(s(),1),s(),XA=i(s(),1),ZA=i(s(),1),QA=i(s(),1),$A=i(s(),1),ej=i(s(),1),tj=i(s(),1),nj=i(s(),1),rj=i(s(),1),ij=i(me(),1),aj=i(s(),1),oj=i(s(),1),sj=i(s(),1),cj=i(s(),1),lj=i(s(),1),uj=i(s(),1),dj=i(s(),1),fj=i(s(),1),pj=i(s(),1),mj=i(s(),1),hj=i(s(),1),gj=i(s(),1),_j=i(s(),1),vj=i(s(),1),G=i(s(),1),yj=i(s(),1),bj=i(s(),1),xj=i(s(),1),Sj=i(s(),1),s(),Cj=i(s(),1),wj=i(s(),1),Tj=i(s(),1),rh(),Ej=i(s(),1),Dj=i(s(),1),Oj=i(s(),1),kj=i(s(),1),Aj=i(s(),1),s(),s(),jj=i(s(),1),Mj=i(s(),1),K=i(s(),1),Nj=i(s(),1),Pj=i(s(),1),Fj=i(s(),1),Ij=i(s(),1),Lj=i(s(),1),Rj=i(s(),1),s(),q=i(s(),1),s(),s(),s(),s(),s(),zj=i(s(),1),s(),s(),n(),J=({...e},t)=>{let n=[e.class,e.className];return delete e.class,e.className=[`sbdocs`,`sbdocs-${t}`,...n].filter(Boolean).join(` `),e},Bj=({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`}}),Vj=({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)`}),Hj=({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`}),Uj={margin:`16px 0`},Wj=M.div(Hj),Gj=({href:e=``,...t})=>{let n=/^\//.test(e)?`./?path=${e}`:e,r=/^#.*/.test(e)?`_self`:`_top`;return rk.createElement(`a`,{href:n,target:r,...t})},Kj=M(Gj)(({theme:e})=>({...Hj({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`}}})),qj=M.blockquote(({theme:e})=>({...Hj({theme:e}),...Uj,borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Jj=[],Yj=null,Xj=(0,ak.lazy)(async()=>{let{SyntaxHighlighter:e}=await a(async()=>{let{SyntaxHighlighter:e}=await import(`./syntaxhighlighter-YFXUGROL-ZgDQjyWI.js`);return{SyntaxHighlighter:e}},__vite__mapDeps([5,1,2,3,6,7,0,4,8,9]),import.meta.url);return Jj.length>0&&(Jj.forEach(t=>{e.registerLanguage(...t)}),Jj=[]),Yj===null&&(Yj=e),{default:t=>ak.createElement(e,{...t})}}),Zj=(0,ak.lazy)(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([a(()=>import(`./syntaxhighlighter-YFXUGROL-ZgDQjyWI.js`),__vite__mapDeps([5,1,2,3,6,7,0,4,8,9]),import.meta.url),a(()=>import(`./formatter-L2YTDE3Q-BU_68im1.js`),__vite__mapDeps([10,1,2,3,4]),import.meta.url)]);return Jj.length>0&&(Jj.forEach(t=>{e.registerLanguage(...t)}),Jj=[]),Yj===null&&(Yj=e),{default:n=>ak.createElement(e,{...n,formatter:t})}}),Qj=e=>ak.createElement(ak.Suspense,{fallback:ak.createElement(`div`,null)},e.format===!1?ak.createElement(Xj,{...e}):ak.createElement(Zj,{...e})),Qj.registerLanguage=(...e)=>{if(Yj!==null){Yj.registerLanguage(...e);return}Jj.push(e)},$j=e=>typeof e==`string`,eM=/[\n\r]/g,tM=M.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,display:`inline-block`,paddingLeft:2,paddingRight:2,verticalAlign:`baseline`,color:`inherit`,...Vj({theme:e})})),nM=M(Qj)(({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`}})),rM=({className:e,children:t,...n})=>{let r=(e||``).match(/lang-(\S+)/),i=ik.Children.toArray(t);return i.filter($j).some(e=>e.match(eM))?ik.createElement(nM,{bordered:!0,copyable:!0,language:r?.[1]??`text`,format:!1,...n},t):ik.createElement(tM,{...n,className:e},i)},iM=M.dl(({theme:e})=>({...Hj({theme:e}),...Uj,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}})),aM=M.div(Hj),oM=M.h1(({theme:e})=>({...Hj({theme:e}),...Bj({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),sM=M.h2(({theme:e})=>({...Hj({theme:e}),...Bj({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),cM=M.h3(({theme:e})=>({...Hj({theme:e}),...Bj({theme:e}),fontSize:`${e.typography.size.m1}px`})),lM=M.h4(({theme:e})=>({...Hj({theme:e}),...Bj({theme:e}),fontSize:`${e.typography.size.s3}px`})),uM=M.h5(({theme:e})=>({...Hj({theme:e}),...Bj({theme:e}),fontSize:`${e.typography.size.s2}px`})),dM=M.h6(({theme:e})=>({...Hj({theme:e}),...Bj({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),fM=M.hr(({theme:e})=>({border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),pM=M.img({maxWidth:`100%`}),mM=M.li(({theme:e})=>({...Hj({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":Vj({theme:e})})),hM={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},gM=M.ol(({theme:e})=>({...Hj({theme:e}),...Uj,...hM,listStyle:`decimal`})),_M=M.p(({theme:e})=>({...Hj({theme:e}),...Uj,fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":Vj({theme:e})})),vM=M.pre(({theme:e})=>({...Hj({theme:e}),...Uj,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`}})),yM=M.span(({theme:e})=>({...Hj({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`}}})),bM=M.title(Vj),xM=M.table(({theme:e})=>({...Hj({theme:e}),...Uj,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}})),SM={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},CM=M.ul(({theme:e})=>({...Hj({theme:e}),...Uj,...SM,listStyle:`disc`})),wM={h1:e=>nk.createElement(oM,{...J(e,`h1`)}),h2:e=>nk.createElement(sM,{...J(e,`h2`)}),h3:e=>nk.createElement(cM,{...J(e,`h3`)}),h4:e=>nk.createElement(lM,{...J(e,`h4`)}),h5:e=>nk.createElement(uM,{...J(e,`h5`)}),h6:e=>nk.createElement(dM,{...J(e,`h6`)}),pre:e=>nk.createElement(vM,{...J(e,`pre`)}),a:e=>nk.createElement(Kj,{...J(e,`a`)}),hr:e=>nk.createElement(fM,{...J(e,`hr`)}),dl:e=>nk.createElement(iM,{...J(e,`dl`)}),blockquote:e=>nk.createElement(qj,{...J(e,`blockquote`)}),table:e=>nk.createElement(xM,{...J(e,`table`)}),img:e=>nk.createElement(pM,{...J(e,`img`)}),div:e=>nk.createElement(aM,{...J(e,`div`)}),span:e=>nk.createElement(yM,{...J(e,`span`)}),li:e=>nk.createElement(mM,{...J(e,`li`)}),ul:e=>nk.createElement(CM,{...J(e,`ul`)}),ol:e=>nk.createElement(gM,{...J(e,`ol`)}),p:e=>nk.createElement(_M,{...J(e,`p`)}),code:e=>nk.createElement(rM,{...J(e,`code`)}),tt:e=>nk.createElement(bM,{...J(e,`tt`)}),resetwrapper:e=>nk.createElement(Wj,{...J(e,`resetwrapper`)})},M.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 ${ue(.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`?de(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${ue(.9,e.color.secondary)}`};default:return{}}}),{deprecate:TM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,EM=0,DM=e=>e.button===EM&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,OM=(e,t)=>{DM(e)&&(e.preventDefault(),t(e))},kM=M.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}}:{}),AM=M.a(({theme:e})=>({display:`inline-block`,transition:`all 150ms ease-out`,textDecoration:`none`,color:e.color.secondary,"&:hover, &:focus":{cursor:`pointer`,color:de(.07,e.color.secondary),"svg path:not([fill])":{fill:de(.07,e.color.secondary)}},"&:active":{color:de(.1,e.color.secondary),"svg path:not([fill])":{fill:de(.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:n})=>{let r;return t&&(r=[e.textMutedColor,e.color.secondary,e.color.secondary]),n&&(r=[e.color.dark,e.color.secondary,e.color.secondary]),r?{color:r[0],"svg path:not([fill])":{fill:r[0]},"&:hover":{color:r[1],"svg path:not([fill])":{fill:r[1]}},"&:active":{color:r[2],"svg path:not([fill])":{fill:r[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`}}:{}),jM=(0,ok.forwardRef)(({cancel:e=!0,children:t,onClick:n=void 0,withArrow:r=!1,containsIcon:i=!1,className:a=void 0,isButton:o=void 0,href:s,...c},l)=>(o!==void 0&&TM("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),ok.createElement(AM,{as:s?`a`:`button`,href:s,...c,ref:l,isButton:!s||o===!0,onClick:n&&e?e=>OM(e,n):n,className:a},ok.createElement(kM,{withArrow:r,containsIcon:i},t,r&&ok.createElement(Fe,null))))),jM.displayName=`Link`,M.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}})),{global:MM}=__STORYBOOK_MODULE_GLOBAL__,{document:NM,window:PM}=MM,{deprecate:FM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,IM=Symbol.for(`react.lazy`),LM=lk.use,RM=fS(`Slot`),zM=Symbol(`radix.slottable`),mS(`Slottable`),BM=M.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)`})),VM=({note:e,...t})=>fk.createElement(BM,{...t},e),{deprecate:HM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,Y=typeof document<`u`?mk.useLayoutEffect:()=>{},UM={prefix:String(Math.round(Math.random()*1e10)),current:0},WM=_k.createContext(UM),GM=_k.createContext(!1),typeof window<`u`&&window.document&&window.document.createElement,KM=new WeakMap,qM=typeof _k.useId==`function`?xS:bS,JM=!!(typeof window<`u`&&window.document&&window.document.createElement),YM=new Map,typeof FinalizationRegistry<`u`&&(XM=new FinalizationRegistry(e=>{YM.delete(e)})),X=e=>e?.ownerDocument??document,ZM=e=>e&&`window`in e&&e.window===e?e:X(e).defaultView||window,QM=!1,$M=(e=document)=>{var t;if(!MS())return e.activeElement;let n=e.activeElement;for(;n&&`shadowRoot`in n&&(t=n.shadowRoot)!=null&&t.activeElement;)n=n.shadowRoot.activeElement;return n},eN=class{get currentNode(){return this._currentNode}set currentNode(e){if(!NS(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return NS(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let n;if(typeof this.filter==`function`?n=this.filter(e):(t=this.filter)!=null&&t.acceptNode&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}else return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null;return null}let t=e.previousNode();if(t){if(t.shadowRoot){var n;let e;if(typeof this.filter==`function`?e=this.filter(t):(n=this.filter)!=null&&n.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let r=this.lastChild();return r&&(this.currentNode=r),r}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let n=e.shadowRoot;if(n){let e=this._doc.createTreeWalker(n,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}else{var t;if(typeof this.filter==`function`)return this.filter(e);if((t=this.filter)!=null&&t.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}},tN=LS,nN=new Set([`id`]),rN=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),iN=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),aN=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`]),oN=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`.split(`.`)),sN=/^(data-.*)$/,cN=null,lN=qS(function(){return KS(/^Mac/i)}),uN=qS(function(){return KS(/^iPhone/i)}),dN=qS(function(){return KS(/^iPad/i)||lN()&&navigator.maxTouchPoints>1}),fN=qS(function(){return uN()||dN()}),pN=qS(function(){return lN()||fN()}),mN=qS(function(){return GS(/AppleWebKit/i)&&!hN()}),hN=qS(function(){return GS(/Chrome/i)}),gN=qS(function(){return GS(/Android/i)}),_N=qS(function(){return GS(/Firefox/i)}),vN=(0,vk.createContext)({isNative:!0,open:QS,useHref:e=>e}),XS.isOpening=!1,yN=new Map,bN=new Set,typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,tC):tC()),xN=xk.useInsertionEffect??Y,SN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),typeof document<`u`&&window.visualViewport,CN=0,wN=new Map,TN=`react-aria-clear-focus`,EN=`react-aria-focus`,DN=typeof Element<`u`&&`checkVisibility`in Element.prototype,ON=[`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`],kN=ON.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`,ON.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`),AN=ON.join(`:not([hidden]):not([tabindex="-1"]),`),jN=typeof document<`u`?kk.useInsertionEffect??kk.useLayoutEffect:()=>{},MN=!1,NN=`default`,PN=``,FN=new WeakMap,IN=jk.createContext({register:()=>{}}),IN.displayName=`PressResponderContext`,LN=new WeakMap,RN=class{continuePropagation(){JC(this,LN,!1)}get shouldStopPropagation(){return WC(this,LN)}constructor(e,t,n,r){KC(this,LN,{writable:!0,value:void 0}),JC(this,LN,!0);let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o}},zN=Symbol(`linkClicked`),BN=`react-aria-pressable-style`,VN=`data-react-aria-pressable`,HN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),UN=null,WN=new Set,GN=new Map,KN=!1,qN=!1,JN={Tab:!0,Escape:!0},YN=(e,t)=>{let n=ZM(e),r=X(e);t&&r.removeEventListener(`DOMContentLoaded`,t),GN.has(n)&&(n.HTMLElement.prototype.focus=GN.get(n).focus,r.removeEventListener(`keydown`,aw,!0),r.removeEventListener(`keyup`,aw,!0),r.removeEventListener(`click`,sw,!0),n.removeEventListener(`focus`,cw,!0),n.removeEventListener(`blur`,lw,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,ow,!0),r.removeEventListener(`pointermove`,ow,!0),r.removeEventListener(`pointerup`,ow,!0)),GN.delete(n))},typeof document<`u`&&dw(),XN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),ZN=Fk.createContext(null),QN=Fk.forwardRef(function(e,t){let{children:n,...r}=e,i=oC(t),a={...r,ref:i};return Fk.createElement(ZN.Provider,{value:a},n)}),$N=(0,Fk.forwardRef)(({children:e,...t},n)=>{n=oC(n);let{focusableProps:r}=Sw(t,n),i=Fk.Children.only(e);(0,Fk.useEffect)(()=>{},[n,t.isDisabled]);let a=i.props.ref;return Fk.cloneElement(i,{...V(r,i.props),ref:RS(a,n)})}),eP=Ik.forwardRef(({children:e,...t},n)=>{n=oC(n);let{pressProps:r}=XC({...t,ref:n}),{focusableProps:i}=Sw(t,n),a=Ik.Children.only(e);(0,Ik.useEffect)(()=>{},[n,t.isDisabled]);let o=a.props.ref;return Ik.cloneElement(a,{...V(r,i,a.props),ref:RS(o,n)})}),tP=Lk.forwardRef(({children:e,...t},n)=>{let r=(0,Lk.useRef)(!1),i=(0,Lk.useContext)(IN);n=oC(n||i?.ref);let a=V(i||{},{...t,ref:n,register(){r.current=!0,i&&i.register()}});return dC(i,n),(0,Lk.useEffect)(()=>{r.current||=!0},[]),Lk.createElement(IN.Provider,{value:a},e)}),nP=!1,rP=0,iP=500,aP=Symbol(`default`),oP=(0,Uk.createContext)({placement:`bottom`}),(0,Uk.forwardRef)(function(e,t){[e,t]=Fw(e,t,oP);let n=e.placement,r={position:`absolute`,transform:n===`top`||n===`bottom`?`translateX(-50%)`:`translateY(-50%)`};n!=null&&(r[n]=`100%`);let i=Nw({...e,defaultClassName:`react-aria-OverlayArrow`,values:{placement:n}});i.style&&Object.keys(i.style).forEach(e=>i.style[e]===void 0&&delete i.style[e]);let a=BS(e);return Uk.createElement(`div`,{...a,...i,style:{...r,...i.style},ref:t,"data-placement":n})}),sP={top:`top`,bottom:`top`,left:`left`,right:`left`},cP={top:`bottom`,bottom:`top`,left:`right`,right:`left`},lP={top:`left`,left:`top`},uP={top:`height`,left:`width`},dP={width:`totalWidth`,height:`totalHeight`},fP={},pP=typeof document<`u`?window.visualViewport:null,mP=new WeakMap,hP=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),gP=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),_P=Symbol.for(`react-aria.i18n.locale`),vP=nT(),yP=new Set,bP=Jk.createContext(null),xP=function(e,t){return xP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},xP(e,t)},Z=function(){return Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Z.apply(this,arguments)},SP=function(){return JSON.stringify(arguments)},CP=(function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e})(),wP={create:function(){return new CP}},TP={variadic:hT,monadic:gT},(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`})(Q||={}),(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`})(EP||={}),(function(e){e[e.number=0]=`number`,e[e.dateTime=1]=`dateTime`})(DP||={}),OP=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,kP=/(?:[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,AP=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,jP=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,MP=/^(@+)?(\+|#+)?[rs]?$/g,NP=/(\*)(0+)|(#+)(0+)|(0+)/g,PP=/^(0+)$/,FP={"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`]},IP=RegExp(`^${OP.source}*`),LP=RegExp(`${OP.source}*\$`),RP=!!String.prototype.startsWith&&`_a`.startsWith(`a`,1),zP=!!String.fromCodePoint,BP=!!Object.fromEntries,VP=!!String.prototype.codePointAt,HP=!!String.prototype.trimStart,UP=!!String.prototype.trimEnd,WP=Number.isSafeInteger?Number.isSafeInteger:function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},GP=!0;try{KP=RT(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),GP=KP.exec(`a`)?.[0]===`a`}catch{GP=!1}qP=RP?(function(e,t,n){return e.startsWith(t,n)}):(function(e,t,n){return e.slice(n,n+t.length)===t}),JP=zP?String.fromCodePoint:(function(){for(var e=[...arguments],t=``,n=e.length,r=0,i;n>r;){if(i=e[r++],i>1114111)throw RangeError(i+` is not a valid code point`);t+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return t}),YP=BP?Object.fromEntries:(function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0];t[a]=i[1]}return t}),XP=VP?(function(e,t){return e.codePointAt(t)}):(function(e,t){var n=e.length;if(!(t<0||t>=n)){var r=e.charCodeAt(t),i;return r<55296||r>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?r:(r-55296<<10)+(i-56320)+65536}}),ZP=HP?(function(e){return e.trimStart()}):(function(e){return e.replace(IP,``)}),QP=UP?(function(e){return e.trimEnd()}):(function(e){return e.replace(LP,``)}),GP?(eF=RT(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),$P=function(e,t){return eF.lastIndex=t,eF.exec(e)[1]??``}):$P=function(e,t){for(var n=[];;){var r=XP(e,t);if(r===void 0||HT(r)||UT(r))break;n.push(r),t+=r>=65536?2:1}return JP.apply(void 0,n)},tF=(function(){function e(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.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(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else{if(i===125&&e>0)break;if(i===35&&(t===`plural`||t===`selectordinal`)){var o=this.clonePosition();this.bump(),r.push({type:EP.pound,location:H(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Q.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&zT(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:EP.literal,value:`<${r}/>`,location:H(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!zT(this.char()))return this.error(Q.INVALID_TAG,H(o,this.clonePosition()));var s=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:EP.tag,value:r,children:a,location:H(n,this.clonePosition())},err:null}:this.error(Q.INVALID_TAG,H(o,this.clonePosition()))):this.error(Q.UNMATCHED_CLOSING_TAG,H(s,this.clonePosition()))}else return this.error(Q.UNCLOSED_TAG,H(n,this.clonePosition()))}else return this.error(Q.INVALID_TAG,H(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&VT(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r=``;;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=H(n,this.clonePosition());return{val:{type:EP.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!BT(this.peek()||0))?(this.bump(),`<`):null},e.prototype.tryParseQuote=function(e){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(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(n);this.bump()}return JP.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),JP(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Q.EMPTY_ARGUMENT,H(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Q.MALFORMED_ARGUMENT,H(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:EP.argument,value:r,location:H(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Q.MALFORMED_ARGUMENT,H(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=$P(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:H(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(Q.EXPECT_ARGUMENT_TYPE,H(i,o));case`number`:case`date`:case`time`:this.bumpSpace();var s=null;if(this.bumpIf(`,`)){this.bumpSpace();var c=this.clonePosition(),l=this.parseSimpleArgStyleIfPossible();if(l.err)return l;var u=QP(l.val);if(u.length===0)return this.error(Q.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));s={style:u,styleLocation:H(c,this.clonePosition())}}var d=this.tryParseArgumentClose(r);if(d.err)return d;var f=H(r,this.clonePosition());if(s&&qP(s?.style,`::`,0)){var p=ZP(s.style.slice(2));if(a===`number`){var l=this.parseNumberSkeletonFromString(p,s.styleLocation);return l.err?l:{val:{type:EP.number,value:n,location:f,style:l.val},err:null}}else{if(p.length===0)return this.error(Q.EXPECT_DATE_TIME_SKELETON,f);var m=p;this.locale&&(m=IT(p,this.locale));var u={type:DP.dateTime,pattern:m,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?OT(m):{}};return{val:{type:a===`date`?EP.date:EP.time,value:n,location:f,style:u},err:null}}}return{val:{type:a===`number`?EP.number:a===`date`?EP.date:EP.time,value:n,location:f,style:s?.style??null},err:null};case`plural`:case`selectordinal`:case`select`:var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(Q.EXPECT_SELECT_ARGUMENT_OPTIONS,H(h,Z({},h)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),_=0;if(a!==`select`&&g.value===`offset`){if(!this.bumpIf(`:`))return this.error(Q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));this.bumpSpace();var l=this.tryParseDecimalInteger(Q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Q.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(l.err)return l;this.bumpSpace(),g=this.parseIdentifierIfPossible(),_=l.val}var v=this.tryParsePluralOrSelectOptions(e,a,t,g);if(v.err)return v;var d=this.tryParseArgumentClose(r);if(d.err)return d;var y=H(r,this.clonePosition());return a===`select`?{val:{type:EP.select,value:n,options:YP(v.val),location:y},err:null}:{val:{type:EP.plural,value:n,options:YP(v.val),offset:_,pluralType:a===`plural`?`cardinal`:`ordinal`,location:y},err:null};default:return this.error(Q.INVALID_ARGUMENT_TYPE,H(i,o))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(Q.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump();break}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=kT(e)}catch{return this.error(Q.INVALID_NUMBER_SKELETON,t)}return{val:{type:DP.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?FT(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,c=r.value,l=r.location;;){if(c.length===0){var u=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){var d=this.tryParseDecimalInteger(Q.EXPECT_PLURAL_ARGUMENT_SELECTOR,Q.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=H(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}else break}if(s.has(c))return this.error(t===`select`?Q.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Q.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c===`other`&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?Q.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Q.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;o.push([c,{value:p.val,location:H(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,l=i.location}return o.length===0?this.error(t===`select`?Q.EXPECT_SELECT_ARGUMENT_SELECTOR:Q.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Q.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=a*10+(o-48),this.bump();else break}var s=H(r,this.clonePosition());return i?(a*=n,WP(a)?{val:a,err:null}:this.error(t,s)):this.error(e,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 e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);var t=XP(this.message,e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(qP(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&HT(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null},e})(),(function(e){e.MISSING_VALUE=`MISSING_VALUE`,e.INVALID_VALUE=`INVALID_VALUE`,e.MISSING_INTL_API=`MISSING_INTL_API`})(nF||={}),rF=(function(e){oT(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return t.prototype.toString=function(){return`[formatjs Error: ${this.code}] ${this.message}`},t})(Error),iF=(function(e){oT(t,e);function t(t,n,r,i){return e.call(this,`Invalid values for "${t}": "${n}". Options are "${Object.keys(r).join(`", "`)}"`,nF.INVALID_VALUE,i)||this}return t})(rF),aF=(function(e){oT(t,e);function t(t,n,r){return e.call(this,`Value for "${t}" must be of type ${n}`,nF.INVALID_VALUE,r)||this}return t})(rF),oF=(function(e){oT(t,e);function t(t,n){return e.call(this,`The intl string context variable "${t}" was not provided to the string "${n}"`,nF.MISSING_VALUE,n)||this}return t})(rF),(function(e){e[e.literal=0]=`literal`,e[e.object=1]=`object`})(sF||={}),(function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(t.length===1)return t[0].value;var n=t.reduce(function(e,t){return!e.length||t.type!==sF.literal||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e},[]);return n.length<=1?n[0]||``:n},this.formatToParts=function(e){return JT(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var s=sT(o,[`formatters`]);this.ast=e.__parse(t,Z(Z({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=XT(e.formats,r),this.formatters=i&&i.formatters||QT(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(!(typeof Intl.Locale>`u`)){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}},e.__parse=GT,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})(),cF=Symbol.for(`react-aria.i18n.locale`),lF=Symbol.for(`react-aria.i18n.strings`),dF=class e{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=$T(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[cF];if(uF===void 0){let t=window[lF];if(!t)return null;uF={};for(let r in t)uF[r]=new e({[n]:t[r]},n)}let r=uF?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}},fF=new Map,pF=new Map,mF=class{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=fF.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),fF.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=pF.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),pF.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}constructor(e,t){this.locale=e,this.strings=t}},hF=new WeakMap,gF=1080,_F=24*gF,vF=29,yF=12*gF+793,vF*_F+yF,bF=new Map,xF=!1;try{xF=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}SF=!1;try{SF=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`degree`}).resolvedOptions().style===`unit`}catch{}if(CF={degree:{narrow:{default:`°`,"ja-JP":` 度`,"zh-TW":`度`,"sl-SI":` °`}}},wF=class{format(e){let t=``;if(t=!xF&&this.options.signDisplay!=null?aE(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),this.options.style===`unit`&&!SF){let{unit:e,unitDisplay:n=`short`,locale:r}=this.resolvedOptions();if(!e)return t;let i=CF[e]?.[n];t+=i[r]||i.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 RangeError(`End date must be >= start date`);return`${this.format(e)} \u2013 ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!xF&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!SF&&this.options.style===`unit`&&(e={...e,style:`unit`,unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=iE(e,t),this.options=t}},TF=new Map,EF=typeof document<`u`?window.visualViewport:null,DF=Zk.createContext(null),OF=`react-aria-focus-scope-restore`,$=null,kF=class e{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new AF({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&vE(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new AF({scopeRef:null}),this.fastMap.set(null,this.root)}},AF=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}},jF=new kF,MF=[],NF=typeof document<`u`&&window.visualViewport,PF=0,IF=(0,nA.createContext)({}),LF=rA.createContext(null),RF={},RF={dismiss:`تجاهل`},zF={},zF={dismiss:`Отхвърляне`},BF={},BF={dismiss:`Odstranit`},VF={},VF={dismiss:`Luk`},HF={},HF={dismiss:`Schließen`},UF={},UF={dismiss:`Απόρριψη`},WF={},WF={dismiss:`Dismiss`},GF={},GF={dismiss:`Descartar`},KF={},KF={dismiss:`Lõpeta`},qF={},qF={dismiss:`Hylkää`},JF={},JF={dismiss:`Rejeter`},YF={},YF={dismiss:`התעלם`},XF={},XF={dismiss:`Odbaci`},ZF={},ZF={dismiss:`Elutasítás`},QF={},QF={dismiss:`Ignora`},$F={},$F={dismiss:`閉じる`},eI={},eI={dismiss:`무시`},tI={},tI={dismiss:`Atmesti`},nI={},nI={dismiss:`Nerādīt`},rI={},rI={dismiss:`Lukk`},iI={},iI={dismiss:`Negeren`},aI={},aI={dismiss:`Zignoruj`},oI={},oI={dismiss:`Descartar`},sI={},sI={dismiss:`Dispensar`},cI={},cI={dismiss:`Revocare`},lI={},lI={dismiss:`Пропустить`},uI={},uI={dismiss:`Zrušiť`},dI={},dI={dismiss:`Opusti`},fI={},fI={dismiss:`Odbaci`},pI={},pI={dismiss:`Avvisa`},mI={},mI={dismiss:`Kapat`},hI={},hI={dismiss:`Скасувати`},gI={},gI={dismiss:`取消`},_I={},_I={dismiss:`關閉`},vI={},vI={"ar-AE":RF,"bg-BG":zF,"cs-CZ":BF,"da-DK":VF,"de-DE":HF,"el-GR":UF,"en-US":WF,"es-ES":GF,"et-EE":KF,"fi-FI":qF,"fr-FR":JF,"he-IL":YF,"hr-HR":XF,"hu-HU":ZF,"it-IT":QF,"ja-JP":$F,"ko-KR":eI,"lt-LT":tI,"lv-LV":nI,"nb-NO":rI,"nl-NL":iI,"pl-PL":aI,"pt-BR":oI,"pt-PT":sI,"ro-RO":cI,"ru-RU":lI,"sk-SK":uI,"sl-SI":dI,"sr-SP":fI,"sv-SE":pI,"tr-TR":mI,"uk-UA":hI,"zh-CN":gI,"zh-TW":_I},yI={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`},bI=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype,xI=new WeakMap,SI=[],CI=cA.createContext(null),wI=1500,TI=500,EI={},DI=0,OI=!1,kI=null,AI=null,jI=(0,pA.createContext)(null),MI=(0,pA.createContext)(null),NI=(0,pA.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=Fw(t,n,MI);let r=(0,pA.useContext)(jI),i=dD(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=EC(n,a.isOpen)||t.isExiting||!1;return!a.isOpen&&!o?null:pA.createElement($E,{portalContainer:e},pA.createElement(pD,{...t,tooltipRef:n,isExiting:o}))}),PI=m(fe(),1),FI=(0,PI.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(`-`,` `)),M.div({width:500,height:500,paddingTop:100,overflowY:`scroll`,background:`#eee`,position:`relative`}),II=(0,mA.forwardRef)((e,t)=>mA.createElement(`button`,{...e,ref:t,style:{width:120,height:50,margin:10}})),II.displayName=`Trigger`,LI=({triggerOnFocusOnly:e=!1,placement:t=`top`,offset:n=8,tooltip:r,children:i,defaultVisible:a,startOpen:o,delayShow:s=400,delayHide:c=200,visible:l,onVisibleChange:u,...d})=>{let f=FI(t),p=pk.Children.only(i);o!==void 0&&HM("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[m,h]=(0,pk.useState)(a??o??!1),g=(0,pk.useCallback)(e=>{h(e),u?.(e)},[u]);return pk.createElement(fD,{delay:s,closeDelay:c,isOpen:l??m,onOpenChange:g,trigger:e?`focus`:void 0,...d},pk.createElement($N,null,pk.cloneElement(p,{"aria-describedby":null})),pk.createElement(NI,{"data-testid":`tooltip`,placement:f,offset:n,onOpenChange:g,style:{outline:`none`},...d},r))},RI=({children:e,disableAllTooltips:t,shortcut:n,tooltip:r})=>{let i=(0,dk.useMemo)(()=>{let e=document?.body?.getAttribute(`data-shortcuts-enabled`)!==`false`;if(!(!r&&(!n||!e)))return[r,n&&e&&`[${eb(n)}]`].filter(Boolean).join(` `)},[n,r]);return i?dk.createElement(LI,{placement:`top`,tooltip:dk.createElement(VM,{note:i}),visible:!t&&void 0},e):dk.createElement(dk.Fragment,null,e)},RI.displayName=`InteractiveTooltipWrapper`,zI=(0,ck.forwardRef)(({as:e=`button`,asChild:t=!1,animation:n=`none`,size:r=`small`,appearance:i=`default`,variant:a=`outline`,padding:o=`medium`,disabled:s=!1,readOnly:c=!1,active:l,onClick:u,ariaLabel:d,ariaDescription:f=void 0,tooltip:p=void 0,shortcut:m=void 0,disableAllTooltips:h=!1,...g},_)=>{let v=t?RM:e,y;!c&&(d===void 0||d===``)&&(y=`ariaLabel`,FM(`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: ${g.children}.`)),l!==void 0&&(y=`active`,FM("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:b,AriaDescription:x}=mD(f),S=(0,ck.useMemo)(()=>m?tb(m):void 0,[m]),[C,w]=(0,ck.useState)(!1);return(0,ck.useEffect)(()=>{let e=setTimeout(()=>{C&&w(!1)},1e3);return()=>clearTimeout(e)},[C]),ck.createElement(ck.Fragment,null,ck.createElement(RI,{disableAllTooltips:h,shortcut:m,tooltip:p||(d===!1?void 0:d)},ck.createElement(BI,{"data-deprecated":y,as:v,ref:_,appearance:i,variant:a,size:r,padding:o,$disabled:s||c,"aria-disabled":s||c?`true`:void 0,readOnly:c,active:l,animating:C,animation:n,onClick:s||c?void 0:e=>{u&&u(e),n!==`none`&&w(!0)},"aria-label":!c&&d!==!1?d:void 0,"aria-keyshortcuts":c?void 0:S,...c?{}:b,...g})),ck.createElement(x,null))}),zI.displayName=`Button`,BI=M(`button`,{shouldForwardProp:e=>ae(e)})(({theme:e,appearance:t,variant:n,size:r,$disabled:i,readOnly:a,active:o,animating:s,animation:c=`none`,padding:l})=>{let u=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:a?`inherit`:i?`not-allowed`:`pointer`,display:`inline-flex`,gap:`6px`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,padding:l===`none`?0:l===`small`&&r===`small`?`0 7px`:l===`small`&&r===`medium`?`0 9px`:r===`small`?`0 10px`:r===`medium`?`0 12px`:0,height:r===`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:i&&!a?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:`1`,background:n===`solid`?e.base===`light`?u.foreground:de(.18,u.foreground):n===`outline`?u.background:n===`ghost`&&o?ue(.93,t===`agentic`?e.bgColor.agentic:e.barSelectedColor):`transparent`,color:n===`solid`?e.color.lightest:n===`outline`?t===`agentic`?e.fgColor.agentic:e.input.color:n===`ghost`&&o?e.base===`light`?de(.1,u.foreground):u.foreground:n===`ghost`?e.textMutedColor:e.input.color,boxShadow:n===`outline`?`${u.outline} 0 0 0 1px inset`:`none`,borderRadius:e.input.borderRadius,flexShrink:0,...!a&&{"&:hover":{color:n===`ghost`?u.foreground:void 0,background:(()=>{let t=u.foreground;return n===`solid`&&(t=e.base===`light`?A(.1,u.foreground):de(.3,u.foreground)),n===`outline`&&(t=u.background),n===`ghost`?ue(.86,u.foreground):e.base===`light`?de(.02,t):A(.03,t)})()},"&:active":{color:n===`ghost`?u.foreground:void 0,background:(()=>{let r=u.foreground;return n===`solid`&&(r=u.foreground),n===`outline`&&(r=u.background),n===`ghost`?t===`agentic`?e.bgColor.agentic:e.background.hoverable:e.base===`light`?de(.02,r):A(.03,r)})()},"&:focus-visible":{outline:`2px solid ${D(u.foreground,1)}`,outlineOffset:2,zIndex:`1`},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}},"> svg":{flex:`0 0 auto`,animation:s&&c!==`none`?`${e.animation[c]} 1000ms ease-out`:``}}}),VI=(0,ck.forwardRef)((e,t)=>(FM("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),ck.createElement(zI,{ref:t,...e,"data-deprecated":`IconButton`}))),VI.displayName=`IconButton`,HI=(0,gA.forwardRef)(({pressed:e,...t},n)=>gA.createElement(UI,{role:`switch`,"aria-checked":e,ref:n,pressed:e,...t})),HI.displayName=`ToggleButton`,UI=M(zI)(({theme:e,variant:t=`outline`,pressed:n})=>({...n?{...t===`solid`?{background:e.base===`lighten`?de(.1,e.color.secondary):de(.2,e.color.secondary)}:{},...t===`outline`?{background:ue(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t===`ghost`?{background:ue(.93,e.barSelectedColor),color:e.base===`light`?de(.1,e.color.secondary):e.color.secondary}:{}}:{}})),WI=M.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`?de(.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:ue(.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`}}}),GI=M(WI)(({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}})),KI=M(zI)(({size:e})=>({gap:e===`small`?6:8,"&:focus-visible":{outlineOffset:-2}})),qI=M(HI)({"&:focus-visible":{outlineOffset:-2}}),JI=(0,sk.forwardRef)(function({padding:e=`small`,size:t=`medium`,variant:n=`ghost`,...r},i){return sk.createElement(KI,{...r,variant:n,padding:e,size:t,ref:i})}),YI=(0,sk.forwardRef)(function({padding:e=`small`,size:t=`medium`,variant:n=`ghost`,...r},i){return sk.createElement(qI,{...r,variant:n,padding:e,size:t,ref:i})}),XI=M(JI)(({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}})),ZI=e=>sk.createElement(XI,{as:`a`,...e}),QI=M.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}})),$I=M.div({display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`0 0 14px`,width:14,height:14,color:`var(--listbox-item-muted-color)`}),eL=Object.assign(M.ul(({theme:e,onClick:t})=>({listStyle:`none`,margin:0,padding:4,cursor:t?`pointer`:`default`,"& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:WI,HoverItem:GI,Button:JI,Toggle:YI,Action:XI,Link:ZI,Text:QI,Icon:$I}),tL=M.div(({collapsed:e=!1})=>({blockSize:e?0:`auto`,contentVisibility:e?`hidden`:`visible`,transform:e?`translateY(-10px)`:`translateY(0)`,opacity:+!e,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:n,disabled:r,initialCollapsed:i,storageKey:a,state:o,...s}){let c=rL({collapsed:n,disabled:r,initialCollapsed:i,storageKey:a}),l=o||c;return _A.createElement(_A.Fragment,null,typeof t==`function`?t(l):t,_A.createElement(tL,{...s,id:l.contentId,collapsed:l.isCollapsed,"aria-hidden":l.isCollapsed},typeof e==`function`?e(l):e))},{Content:tL}),nL=(e,t)=>{let[n,r]=(0,_A.useState)(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return(0,_A.useEffect)(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(n))}catch{}},[e,n]),[n,r]},rL=({collapsed:e,disabled:t,initialCollapsed:n=e,storageKey:r})=>{let[i,a]=nL(r&&`useCollapsible:${r}`,!!n);(0,_A.useEffect)(()=>{e!==void 0&&a(e)},[e,a]);let o=(0,_A.useCallback)(e=>{e?.stopPropagation(),t||a(e=>!e)},[t,a]),s=ES();return{contentId:s,isCollapsed:i,isDisabled:!!t,setCollapsed:a,toggleCollapsed:o,toggleProps:{disabled:t,onClick:o,"aria-controls":s,"aria-expanded":!i}}},iL=(e,t)=>t&&t in e?e[t]:void 0,aL=(e,t)=>iL(e.fgColor,t)??iL(e.color,t),oL=(e,t,n)=>iL(e.borderColor,t)??iL(e.color,n),sL=(e,t)=>iL(e.bgColor,t)??e.background.content,cL=(e,t)=>{let n=sL(e,t);return`linear-gradient(${n}, ${n}), ${e.background.content}`},lL=se({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),uL=se({"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)`}}),dL=se({to:{backgroundPositionX:`36%`}}),fL=M.div(({color:e,theme:t})=>({color:aL(t,e),borderRadius:t.appBorderRadius,background:cL(t,e),position:`relative`})),pL=M.div(({animation:e=`none`,color:t,outlineColor:n=t,theme:r})=>({position:`relative`,width:`100%`,padding:1,overflow:`hidden`,backgroundColor:sL(r,t),borderRadius:r.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e===`none`&&oL(r,t,n)||r.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:`${dL} 10s infinite linear, ${lL} 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:`${uL} 5s linear infinite`,backgroundImage:n===`negative`?`conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)`:n===`agentic`?r.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((0,vA.forwardRef)(function({outlineAnimation:e=`none`,color:t,outlineColor:n,outlineAttrs:r={},...i},a){return vA.createElement(pL,{animation:e,color:t,outlineColor:n,ref:a,...r},vA.createElement(fL,{color:t,...i}))}),{Content:fL,Outline:pL}),{deprecate:mL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,hL=[`preEnter`,`entering`,`entered`,`preExit`,`exiting`,`exited`,`unmounted`],gL=e=>({_s:e,status:hL[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),_L=e=>e?6:5,vL=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return _L(t)}},yL=e=>typeof e==`object`?[e.enter,e.exit]:[e,e],bL=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),xL=(e,t,n,r,i)=>{clearTimeout(r.current);let a=gL(e);t(a),n.current=a,i&&i({current:a})},SL=({enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:i,initialEntered:a,mountOnEnter:o,unmountOnExit:s,onStateChange:c}={})=>{let[l,u]=(0,bA.useState)(()=>gL(a?2:_L(o))),d=(0,bA.useRef)(l),f=(0,bA.useRef)(),[p,m]=yL(i),h=(0,bA.useCallback)(()=>{let e=vL(d.current._s,s);e&&xL(e,u,d,f,c)},[c,s]);return[l,(0,bA.useCallback)(i=>{let a=e=>{switch(xL(e,u,d,f,c),e){case 1:p>=0&&(f.current=setTimeout(h,p));break;case 4:m>=0&&(f.current=setTimeout(h,m));break;case 0:case 3:f.current=bL(a,e);break}},o=d.current.isEnter;typeof i!=`boolean`&&(i=!o),i?!o&&a(e?+!n:2):o&&a(t?r?3:4:_L(s))},[h,c,e,t,n,r,p,m,s]),h]},CL={},_(CL,{Actions:()=>qL,Close:()=>RL,CloseButton:()=>BL,Col:()=>UL,Container:()=>LL,Content:()=>VL,Description:()=>KL,Dialog:()=>zL,Error:()=>YL,ErrorWrapper:()=>JL,Header:()=>WL,Overlay:()=>IL,Row:()=>HL,Title:()=>GL}),{deprecate:wL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,(0,CA.createContext)(null),(0,CA.createContext)(null),(0,CA.createContext)(null),(0,CA.createContext)(null),(0,CA.createContext)(null),TL=(0,CA.createContext)({}),EL=(0,wA.forwardRef)(function(e,t){[e,t]=Fw(e,t,TL);let{children:n,level:r=3,className:i,...a}=e,o=`h${r}`;return wA.createElement(o,{...a,ref:t,className:i??`react-aria-Heading`},n)}),DL=(0,TA.createContext)({}),OL=(0,TA.forwardRef)(function(e,t){[e,t]=Fw(e,t,DL);let{elementType:n=`span`,...r}=e;return TA.createElement(n,{className:`react-aria-Text`,...r,ref:t})}),kL=se({from:{opacity:0},to:{opacity:1}}),AL=se({from:{opacity:1},to:{opacity:0}}),jL=se({from:{maxHeight:0},to:{}}),ML=se({from:{opacity:0,transform:`translate(-50%, -50%) scale(0.9)`},to:{opacity:1,transform:`translate(-50%, -50%) scale(1)`}}),NL=se({from:{opacity:1,transform:`translate(-50%, -50%) scale(1)`},to:{opacity:0,transform:`translate(-50%, -50%) scale(0.9)`}}),PL=se({from:{opacity:0,maxHeight:`0px`},to:{opacity:1,maxHeight:`80vh`}}),FL=se({from:{opacity:1,maxHeight:`80vh`},to:{opacity:0,maxHeight:`0px`}}),IL=M.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`?`${AL} ${t}ms`:`${kL} ${t}ms`,animationFillMode:`forwards`}})),LL=M.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:n,$variant:r,$status:i,$transitionDuration:a})=>r===`dialog`?{top:`50%`,left:`50%`,width:t??740,height:n??`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:i===`exiting`||i===`preExit`?`${NL} ${a}ms`:`${ML} ${a}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:n??`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:i===`exiting`||i===`preExit`?`${FL} ${a}ms`:`${PL} ${a}ms`,animationFillMode:`forwards !important`}}),RL=({asChild:e,children:t,onClick:n,...r})=>{let{close:i}=(0,SA.useContext)(XL);if(e&&SA.isValidElement(t)){let e=e=>{n?.(e),t.props.onClick?.(e),i?.()};return SA.cloneElement(t,{...r,onClick:e})}return SA.createElement(zI,{type:`button`,padding:`small`,ariaLabel:`Close modal`,variant:`ghost`,shortcut:[`Escape`],onClick:i},SA.createElement(De,null))},zL={Close:()=>(wL(`Modal.Dialog.Close is deprecated, please use Modal.Close instead.`),SA.createElement(RL,{"data-deprecated":`Modal.Dialog.Close`}))},BL=({ariaLabel:e,...t})=>(wL(`Modal.CloseButton is deprecated, please use Modal.Close instead.`),SA.createElement(RL,{asChild:!0},SA.createElement(zI,{ariaLabel:e||`Close`,"data-deprecated":`Modal.CloseButton`,...t},SA.createElement(De,null)))),VL=M.div({display:`flex`,flexDirection:`column`,margin:16,gap:16}),HL=M.div({display:`flex`,justifyContent:`space-between`,gap:16}),UL=M.div({display:`flex`,flexDirection:`column`,gap:4}),WL=({hasClose:e=!0,onClose:t,...n})=>SA.createElement(HL,null,SA.createElement(UL,{...n}),e&&SA.createElement(RL,{onClick:t})),GL=M(e=>SA.createElement(EL,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),KL=M(OL)(({theme:e})=>({position:`relative`,zIndex:1,margin:0,fontSize:e.typography.size.s2})),qL=M.div({display:`flex`,flexDirection:`row-reverse`,gap:8}),JL=M.div(({theme:e})=>({maxHeight:100,overflow:`auto`,"@media (prefers-reduced-motion: no-preference)":{animation:`${jL} 300ms, ${kL} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:`relative`,padding:`8px 16px`}})),YL=({children:e,...t})=>SA.createElement(JL,{...t},SA.createElement(`div`,null,e)),XL=(0,yA.createContext)({}),Object.assign(gD,CL),M.div(({theme:e,col:t,row:n=1})=>t?{display:`inline-block`,verticalAlign:`inherit`,"& > *":{marginLeft:t*e.layoutMargin,verticalAlign:`inherit`},[`& > *:first-child${re}`]:{marginLeft:0}}:{"& > *":{marginTop:n*e.layoutMargin},[`& > *:first-child${re}`]:{marginTop:0}},({theme:e,outer:t,col:n,row:r})=>{switch(!0){case!!(t&&n):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&r):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),M.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),M.div(),M.div(({theme:e})=>({padding:30,textAlign:`center`,color:e.color.defaultText,fontSize:e.typography.size.s2-1})),ZL=M.div(({centered:e=!1,scale:t=1,elementHeight:n})=>({height:n||`auto`,transformOrigin:e?`center top`:`left top`,transform:`scale(${1/t})`})),QL=class extends OA.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:n}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),n!==e.active&&this.iframe.setAttribute(`data-is-storybook`,e.active?`true`:`false`),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${1/e*100}%`,height:`${1/e*100}%`,transform:`scale(${e})`,transformOrigin:`top left`})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${1/e*100}%`,height:`${1/e*100}%`,transform:`scale(${e})`,transformOrigin:`top left`})}render(){let{children:e}=this.props;return OA.createElement(OA.Fragment,null,e)}},$L={Element:bD,IFrame:QL},{global:eR}=__STORYBOOK_MODULE_GLOBAL__,{document:tR}=eR,nR=M.strong(({theme:e})=>({color:e.color.orange})),rR=M.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:`underline`})),iR=M.em(({theme:e})=>({color:e.textMutedColor})),aR=/(Error): (.*)\n/,oR=/at (?:(.*) )?\(?(.+)\)?/,sR=/([^@]+)?(?:\/<)?@(.+)?/,cR=/([^@]+)?@(.+)?/,lR=({error:e})=>{if(!e)return kA.createElement(kA.Fragment,null,`This error has no stack or message`);if(!e.stack)return kA.createElement(kA.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}
199
+ }`,document.head.prepend(r);let i=n=>{if(!(n.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&n.preventDefault()}},a=e=>{let t=e.target,n=e.relatedTarget;n&&gC(n)?(n.focus({preventScroll:!0}),KE(n,gC(t))):n||(t.parentElement?.closest(`[tabindex]`))?.focus({preventScroll:!0})},o=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(e){let t=document.activeElement!=null&&gC(document.activeElement);o.call(this,{...e,preventScroll:!0}),(!e||!e.preventScroll)&&KE(this,t)};let s=kS(GE(document,`touchstart`,n,{passive:!1,capture:!0}),GE(document,`touchmove`,i,{passive:!1,capture:!0}),GE(document,`blur`,a,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=o}}function WE(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function GE(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function KE(e,t){t||!NF?qE(e):NF.addEventListener(`resize`,()=>qE(e),{once:!0})}function qE(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=pC(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;NF&&(n=Math.min(n,NF.offsetTop+NF.height));let i=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:`smooth`})}}n=e.parentElement}}function JE(){return(0,nA.useContext)(IF)??{}}function YE(e){let{children:t}=e,n=(0,rA.useContext)(LF),[r,i]=(0,rA.useState)(0),a=(0,rA.useMemo)(()=>({parent:n,modalCount:r,addModal(){i(e=>e+1),n&&n.addModal()},removeModal(){i(e=>e-1),n&&n.removeModal()}}),[n,r]);return rA.createElement(LF.Provider,{value:a},t)}function XE(){let e=(0,rA.useContext)(LF);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function ZE(e){let{modalProviderProps:t}=XE();return rA.createElement(`div`,{"data-overlay-container":!0,...e,...t})}function QE(e){return rA.createElement(YE,null,rA.createElement(ZE,e))}function $E(e){let t=TS(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=JE();if(!e.portalContainer&&i&&(n=i()),rA.useEffect(()=>{if(n?.closest(`[data-overlay-container]`))throw Error(`An OverlayContainer must not be inside another container. Please change the portalContainer prop.`)},[n]),!n)return null;let a=rA.createElement(QE,r);return iA.createPortal(a,n)}function eD(e={}){let{style:t,isFocusable:n}=e,[r,i]=(0,oA.useState)(!1),{focusWithinProps:a}=ww({isDisabled:!n,onFocusWithinChange:e=>i(e)}),o=(0,oA.useMemo)(()=>r?t:t?{...yI,...t}:yI,[r]);return{visuallyHiddenProps:{...a,style:o}}}function tD(e){let{children:t,elementType:n=`div`,isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=eD(e);return oA.createElement(n,V(a,o),t)}function nD(e){return e&&e.__esModule?e.default:e}function rD(e){let{onDismiss:t,...n}=e,r=aC(n,rE(nD(vI),`@react-aria/overlays`).format(`dismiss`)),i=()=>{t&&t()};return aA.createElement(tD,null,aA.createElement(`button`,{...r,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}function iD(e,t){let n=ZM(e?.[0]),r=t instanceof n.Element?{root:t}:t,i=r?.root??document.body,a=r?.shouldUseInert&&bI,o=new Set(e),s=new Set,c=e=>a&&e instanceof n.HTMLElement?e.inert:e.getAttribute(`aria-hidden`)===`true`,l=(e,t)=>{a&&e instanceof n.HTMLElement?e.inert=t:t?e.setAttribute(`aria-hidden`,`true`):(e.removeAttribute(`aria-hidden`),e instanceof n.HTMLElement&&(e.inert=!1))},u=e=>{for(let t of e.querySelectorAll(`[data-live-announcer], [data-react-aria-top-layer]`))o.add(t);let t=e=>{if(s.has(e)||o.has(e)||e.parentElement&&s.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of o)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&d(e),r!==NodeFilter.FILTER_REJECT){let e=n.nextNode();for(;e!=null;)d(e),e=n.nextNode()}},d=e=>{let t=xI.get(e)??0;c(e)&&t===0||(t===0&&l(e,!0),s.add(e),xI.set(e,t+1))};SI.length&&SI[SI.length-1].disconnect(),u(i);let f=new MutationObserver(e=>{for(let t of e)if(t.type===`childList`&&![...o,...s].some(e=>e.contains(t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&(e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer===`true`)?o.add(e):e instanceof Element&&u(e)});f.observe(i,{childList:!0,subtree:!0});let p={visibleNodes:o,hiddenNodes:s,observe(){f.observe(i,{childList:!0,subtree:!0})},disconnect(){f.disconnect()}};return SI.push(p),()=>{f.disconnect();for(let e of s){let t=xI.get(e);t!=null&&(t===1?(l(e,!1),xI.delete(e)):xI.set(e,t-1))}p===SI[SI.length-1]?(SI.pop(),SI.length&&SI[SI.length-1].observe()):SI.splice(SI.indexOf(p),1)}}function aD(e){let t=SI[SI.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function oD(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...c}=e,l=c.trigger===`SubmenuTrigger`,{overlayProps:u,underlayProps:d}=zE({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||l,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:f,arrowProps:p,placement:m,triggerAnchorPoint:h}=cE({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!l?t.close:null});return VE({isDisabled:a||!t.isOpen}),(0,sA.useEffect)(()=>{if(t.isOpen&&r.current)return a?aD(i?.current??r.current):iD([i?.current??r.current],{shouldUseInert:!0})},[a,t.isOpen,r,i]),{popoverProps:V(u,f),arrowProps:p,underlayProps:d,placement:m,triggerAnchorPoint:h}}function sD(e){let t=TS(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=(0,cA.useState)(!1),o=(0,cA.useMemo)(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=JE();if(!e.portalContainer&&s&&(n=s()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=cA.createElement(dE,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},c)),c=cA.createElement(CI.Provider,{value:o},cA.createElement(Cw,null,c)),lA.createPortal(c,n)}function cD(){let e=(0,cA.useContext)(CI)?.setContain;Y(()=>{e?.(!0)},[e])}function lD(e,t,n){let{overlayProps:r,underlayProps:i}=zE({...e,isOpen:t.isOpen,onClose:t.close},n);return VE({isDisabled:!t.isOpen}),cD(),(0,uA.useEffect)(()=>{if(t.isOpen&&n.current)return iD([n.current],{shouldUseInert:!0})},[t.isOpen,n]),{modalProps:V(r),underlayProps:i}}function uD(e){let[t,n]=PC(e.isOpen,e.defaultOpen||!1,e.onOpenChange);return{isOpen:t,setOpen:n,open:(0,fA.useCallback)(()=>{n(!0)},[n]),close:(0,fA.useCallback)(()=>{n(!1)},[n]),toggle:(0,fA.useCallback)(()=>{n(!t)},[n,t])}}function dD(e={}){let{delay:t=wI,closeDelay:n=TI}=e,{isOpen:r,open:i,close:a}=uD(e),o=(0,dA.useMemo)(()=>`${++DI}`,[]),s=(0,dA.useRef)(null),c=(0,dA.useRef)(a),l=()=>{EI[o]=f},u=()=>{for(let e in EI)e!==o&&(EI[e](!0),delete EI[e])},d=()=>{s.current&&clearTimeout(s.current),s.current=null,u(),l(),OI=!0,i(),kI&&=(clearTimeout(kI),null),AI&&=(clearTimeout(AI),null)},f=e=>{e||n<=0?(s.current&&clearTimeout(s.current),s.current=null,c.current()):s.current||=setTimeout(()=>{s.current=null,c.current()},n),kI&&=(clearTimeout(kI),null),OI&&(AI&&clearTimeout(AI),AI=setTimeout(()=>{delete EI[o],AI=null,OI=!1},Math.max(TI,n)))},p=()=>{u(),l(),!r&&!kI&&!OI?kI=setTimeout(()=>{kI=null,OI=!0,d()},t):r||d()};return(0,dA.useEffect)(()=>{c.current=a},[a]),(0,dA.useEffect)(()=>()=>{s.current&&clearTimeout(s.current),EI[o]&&delete EI[o]},[o]),{isOpen:r,open:e=>{!e&&t>0&&!s.current?p():d()},close:f}}function fD(e){let t=dD(e),n=(0,pA.useRef)(null),{triggerProps:r,tooltipProps:i}=Rw(e,t,n);return pA.createElement(Mw,{values:[[jI,t],[MI,{...i,triggerRef:n}]]},pA.createElement(QN,{...r,ref:n},e.children))}function pD(e){let t=(0,pA.useContext)(jI),n=(0,pA.useRef)(null),{overlayProps:r,arrowProps:i,placement:a,triggerAnchorPoint:o}=cE({placement:e.placement||`top`,targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:n,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),s=TC(e.tooltipRef,!!a)||e.isEntering||!1,c=Nw({...e,defaultClassName:`react-aria-Tooltip`,values:{placement:a,isEntering:s,isExiting:e.isExiting,state:t}});e=V(e,r);let{tooltipProps:l}=Lw(e,t),u=BS(e,{global:!0});return pA.createElement(`div`,{...V(u,c,l),ref:e.tooltipRef,style:{...r.style,"--trigger-anchor-point":o?`${o.x}px ${o.y}px`:void 0,...c.style},"data-placement":a??void 0,"data-entering":s||void 0,"data-exiting":e.isExiting||void 0},pA.createElement(oP.Provider,{value:{...i,placement:a,ref:n}},c.children))}function mD(e=``){let t=e.toLowerCase().trim().replace(/\s+/g,`-`);return{ariaDescriptionAttrs:{"aria-describedby":e?t:void 0},AriaDescription:()=>e?hA.createElement(`span`,{id:t,hidden:!0},e):null}}function hD(e){let t=e=>typeof window<`u`&&window.matchMedia(e).matches,[n,r]=(0,xA.useState)(t(e));function i(){r(t(e))}return(0,xA.useEffect)(()=>{let t=window.matchMedia(e);return i(),t.addEventListener(`change`,i),()=>{t.removeEventListener(`change`,i)}},[e]),n}function gD({container:e,portalSelector:t,children:n,width:r,height:i,ariaLabel:a,dismissOnClickOutside:o=!0,dismissOnEscape:s=!0,className:c,open:l,onEscapeKeyDown:u,onInteractOutside:d,onOpenChange:f,defaultOpen:p,transitionDuration:m=200,variant:h=`dialog`,...g}){let _;(a===void 0||a===``)&&(_=`ariaLabel`,mL("The `ariaLabel` prop on `Modal` will become mandatory in Storybook 11.")),u!==void 0&&(_=`onEscapeKeyDown`,mL("The `onEscapeKeyDown` prop is deprecated and will be removed in Storybook 11. Use `dismissOnEscape` instead.")),d!==void 0&&(_=`onInteractOutside`,mL("The `onInteractOutside` prop is deprecated and will be removed in Storybook 11. Use `dismissOnInteractOutside` instead."));let v=(0,yA.useRef)(null),[{status:y,isMounted:b},x]=SL({timeout:hD(`(prefers-reduced-motion: reduce)`)?0:m,mountOnEnter:!0,unmountOnExit:!0}),S=uD({isOpen:l||b,defaultOpen:p,onOpenChange:e=>{x(e),f?.(e)}}),C=()=>{S.close()},{modalProps:w,underlayProps:T}=lD({isDismissable:o,isKeyboardDismissDisabled:!0,shouldCloseOnInteractOutside:d?e=>{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,relatedTarget:e});return d(t),!t.defaultPrevented}:void 0},S,v);if((0,yA.useEffect)(()=>{let e=l??p??!1;e&&!b?x(!0):!e&&b&&x(!1)},[l,p,b,x]),(0,yA.useEffect)(()=>{b&&(l||p)&&f?.(!0)},[b]),(0,yA.useEffect)(()=>{if(b&&(l||p)&&v.current)return iD([v.current],{shouldUseInert:!0})},[b,l,p,v]),!b||y===`exited`||y===`unmounted`)return null;let E=V(w,{onKeyDown:e=>{e.key===`Escape`?s&&(u?.(e.nativeEvent),e.nativeEvent.defaultPrevented||C()):w.onKeyDown?.(e)}}),D=e??(t?document.querySelector(t):void 0);return yA.createElement(sD,{disableFocusManagement:!0,portalContainer:D||void 0},yA.createElement(dE,{restoreFocus:!0,contain:!0,autoFocus:!0},yA.createElement(IL,{$status:y,$transitionDuration:m,...T}),yA.createElement(`div`,{role:`dialog`,"aria-label":a,ref:v,...E},yA.createElement(XL.Provider,{value:{close:C}},yA.createElement(`div`,{tabIndex:-1},yA.createElement(LL,{"data-deprecated":_,$variant:h,$status:y,$transitionDuration:m,className:c,width:r,height:i,...g},n))))))}function _D(e,t){var n=(0,DA.useRef)(null),r=(0,DA.useRef)(null);r.current=t;var i=(0,DA.useRef)(null);(0,DA.useEffect)(function(){a()});var a=(0,DA.useCallback)(function(){var t=i.current,a=r.current,o=t||(a?a instanceof Element?a:a.current:null);n.current&&n.current.element===o&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:o,subscriber:e,cleanup:o?e(o):void 0})},[e]);return(0,DA.useEffect)(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),(0,DA.useCallback)(function(e){i.current=e,a()},[a])}function vD(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t===`contentBoxSize`?e.contentRect[n===`inlineSize`?`width`:`height`]:void 0}function yD(e){e===void 0&&(e={});var t=e.onResize,n=(0,DA.useRef)(void 0);n.current=t;var r=e.round||Math.round,i=(0,DA.useRef)(),a=(0,DA.useState)({width:void 0,height:void 0}),o=a[0],s=a[1],c=(0,DA.useRef)(!1);(0,DA.useEffect)(function(){return c.current=!1,function(){c.current=!0}},[]);var l=(0,DA.useRef)({width:void 0,height:void 0}),u=_D((0,DA.useCallback)(function(t){return(!i.current||i.current.box!==e.box||i.current.round!==r)&&(i.current={box:e.box,round:r,instance:new ResizeObserver(function(t){var i=t[0],a=e.box===`border-box`?`borderBoxSize`:e.box===`device-pixel-content-box`?`devicePixelContentBoxSize`:`contentBoxSize`,o=vD(i,a,`inlineSize`),u=vD(i,a,`blockSize`),d=o?r(o):void 0,f=u?r(u):void 0;if(l.current.width!==d||l.current.height!==f){var p={width:d,height:f};l.current.width=d,l.current.height=f,n.current?n.current(p):c.current||s(p)}})}),i.current.instance.observe(t,{box:e.box}),function(){i.current&&i.current.instance.unobserve(t)}},[e.box,r]),e.ref);return(0,DA.useMemo)(function(){return{ref:u,width:o.width,height:o.height}},[u,o.width,o.height])}function bD({centered:e,scale:t,children:n}){let r=(0,EA.useRef)(null),[i,a]=(0,EA.useState)(0),o=(0,EA.useCallback)(({height:e})=>{e&&a(e/t)},[t]);return(0,EA.useEffect)(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[t]),yD({ref:r,onResize:o}),EA.createElement(ZL,{centered:e,scale:t,elementHeight:i},EA.createElement(`div`,{ref:r,className:`innerZoomElementWrapper`},n))}function xD(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),PR||(PR=document.createElement(`textarea`),PR.setAttribute(`tabindex`,`-1`),PR.setAttribute(`aria-hidden`,`true`),NR(PR)),PR.parentNode===null&&document.body.appendChild(PR);var i=e.paddingSize,a=e.borderSize,o=e.sizingStyle,s=o.boxSizing;Object.keys(o).forEach(function(e){var t=e;PR.style[t]=o[t]}),NR(PR),PR.value=t;var c=FR(PR,e);PR.value=t,c=FR(PR,e),PR.value=`x`;var l=PR.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);var d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function SD(e,t,n){var r=OR(n);LA.useLayoutEffect(function(){var n=function(e){return r.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}function CD(e){return e==null||typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`}function wD(e){return{...e,type:`option`,value:DD(e.value)}}function TD(e){return`type`in e&&e.type===`reset`?e:wD(e)}function ED(e){if(e!==tz)return e}function DD(e){return e===void 0?tz:e}function OD(e,{value:t}){return`${e}-opt-${String(t)??`sb-reset`}`}function kD(e,t){return t===void 0?[]:CD(t)?e.filter(e=>e.value===t).map(wD):e.filter(e=>t.some(t=>e.value===t)).map(wD)}function AD(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}function jD(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:a=[]}=e,o=(0,WA.useMemo)(()=>new WeakMap,a);return(0,WA.useMemo)(()=>{if(n&&typeof t==`function`){let e=[];for(let a of n){let n=o.get(a);if(!n){n=t(a);let e=n.props.id??a.key??a.id;if(e==null)throw Error(`Could not determine key for item`);r&&(e=r+`:`+e),n=(0,WA.cloneElement)(n,i?{key:e,id:e,value:a}:{key:e}),o.set(a,n)}e.push(n)}return e}else if(typeof t!=`function`)return t},[t,n,o,r,i])}function MD(e){if((0,GA.useContext)(yz))return GA.createElement(GA.Fragment,null,e.children);let t=GA.createElement(yz.Provider,{value:!0},e.children);return GA.createElement(`template`,{"data-react-aria-hidden":!0},t)}function ND(e){let t=(t,n)=>(0,GA.useContext)(yz)?null:e(t,n);return t.displayName=e.displayName||e.name,(0,GA.forwardRef)(t)}function PD(){return(0,GA.useContext)(yz)}function FD(e){if((0,W.useContext)(xz))return e.content;let{collection:t,document:n}=RD(e.createCollection);return W.createElement(W.Fragment,null,W.createElement(MD,null,W.createElement(xz.Provider,{value:n},e.content)),W.createElement(ID,{render:e.children,collection:t}))}function ID({collection:e,render:t}){return t(e)}function LD(e,t,n){let r=TS(),i=(0,W.useRef)(r);return i.current=r,(0,qA.useSyncExternalStore)(e,(0,W.useCallback)(()=>i.current?n():t(),[t,n]))}function RD(e){let[t]=(0,W.useState)(()=>new vz(e?.()||new hz)),n=Sz((0,W.useCallback)(e=>t.subscribe(e),[t]),(0,W.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,W.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]));return Y(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:n,document:t}}function zD(e){var t;return t=class extends lz{},t.type=e,t}function BD(e,t,n,r,i,a){typeof e==`string`&&(e=zD(e));let o=(0,W.useCallback)(i=>{i?.setProps(t,n,e,r,a)},[t,n,r,a,e]),s=(0,W.useContext)(Cz);if(s){let o=s.ownerDocument.nodesByProps.get(t);return o||(o=s.ownerDocument.createElement(e.type),o.setProps(t,n,e,r,a),s.appendChild(o),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,o)),i?W.createElement(Cz.Provider,{value:o},i):null}return W.createElement(e.type,{ref:o},i)}function VD(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,W.forwardRef)((r,i)=>{let a=(0,W.useContext)(ZN);if(!(0,W.useContext)(bz)){if(t.length>=3)throw Error(t.name+` cannot be rendered outside a collection.`);return t(r,i)}return BD(e,r,i,`children`in r?r.children:null,null,e=>W.createElement(ZN.Provider,{value:a},W.createElement(n,{node:e})))});return r.displayName=t.name,r}function HD(e,t,n=UD){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,W.forwardRef)((t,i)=>BD(e,t,i,null,n(t),e=>W.createElement(r,{node:e}))??W.createElement(W.Fragment,null));return i.displayName=t.name,i}function UD(e){return jD({...e,addIdAndValue:!0})}function WD(e){let t=(0,W.useContext)(wz),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope||t?.idScope,i=UD({...e,idScope:r,dependencies:n});return(0,W.useContext)(xz)&&(i=W.createElement(GD,null,i)),t=(0,W.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),W.createElement(wz.Provider,{value:t},i)}function GD({children:e}){let t=(0,W.useContext)(xz),n=(0,W.useMemo)(()=>W.createElement(xz.Provider,{value:null},W.createElement(bz.Provider,{value:!0},e)),[e]);return TS()?W.createElement(Cz.Provider,{value:t},n):(0,KA.createPortal)(n,t)}function KD(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a=`label`}=e;t=ES(t);let o=ES(),s={};n&&(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a===`label`?t:void 0});let c=aC({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:c}}function qD(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:o={style:`percent`}}=e,s=BS(e,{labelable:!0}),{labelProps:c,fieldProps:l}=KD({...e,labelElementType:`span`});t=FC(t,n,r);let u=(t-n)/(r-n),d=oE(o);if(!a&&!i){let e=o.style===`percent`?u:t;i=d.format(e)}return{progressBarProps:V(s,{...l,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:`progressbar`}),labelProps:c}}function JD(e,t){let{elementType:n=`button`,isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:c,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:d,href:f,target:p,rel:m,type:h=`button`}=e,g;g=n===`button`?{type:h,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:{role:`button`,href:n===`a`&&!r?f:void 0,target:n===`a`?p:void 0,type:n===`input`?h:void 0,disabled:n===`input`?r:void 0,"aria-disabled":!r||n===`input`?void 0:r,rel:n===`a`?m:void 0};let{pressProps:_,isPressed:v}=XC({onPressStart:a,onPressEnd:o,onPressChange:c,onPress:i,onPressUp:s,onClick:d,isDisabled:r,preventFocusOnPress:l,ref:t}),{focusableProps:y}=Sw(e,t);u&&(y.tabIndex=r?-1:y.tabIndex);let b=V(y,_,BS(e,{labelable:!0}));return{isPressed:v,buttonProps:V(g,b,{"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`]})}}function YD(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}function XD({state:e,isExiting:t,UNSTABLE_portalContainer:n,clearContexts:r,...i}){let a=(0,ZA.useRef)(null),o=(0,ZA.useRef)(null),s=(0,ZA.useContext)(kz),c=s&&i.trigger===`SubmenuTrigger`,{popoverProps:l,underlayProps:u,arrowProps:d,placement:f,triggerAnchorPoint:p}=oD({...i,offset:i.offset??8,arrowRef:a,groupRef:c?s:o},e),m=i.popoverRef,h=TC(m,!!f)||i.isEntering||!1,g=Nw({...i,defaultClassName:`react-aria-Popover`,values:{trigger:i.trigger||null,placement:f,isEntering:h,isExiting:t}}),_=!i.isNonModal||i.trigger===`SubmenuTrigger`,[v,y]=(0,ZA.useState)(!1);Y(()=>{m.current&&y(_&&!m.current.querySelector(`[role=dialog]`))},[m,_]),(0,ZA.useEffect)(()=>{v&&i.trigger!==`SubmenuTrigger`&&m.current&&!m.current.contains(document.activeElement)&&_w(m.current)},[v,m,i.trigger]);let b=(0,ZA.useMemo)(()=>{let e=g.children;if(r)for(let t of r)e=ZA.createElement(t.Provider,{value:null},e);return e},[g.children,r]),x={...l.style,"--trigger-anchor-point":p?`${p.x}px ${p.y}px`:void 0,...g.style},S=ZA.createElement(`div`,{...V(BS(i,{global:!0}),l),...g,role:v?`dialog`:void 0,tabIndex:v?-1:void 0,"aria-label":i[`aria-label`],"aria-labelledby":i[`aria-labelledby`],ref:m,slot:i.slot||void 0,style:x,dir:i.dir,"data-trigger":i.trigger,"data-placement":f,"data-entering":h||void 0,"data-exiting":t||void 0},!i.isNonModal&&ZA.createElement(rD,{onDismiss:e.close}),ZA.createElement(oP.Provider,{value:{...d,placement:f,ref:a}},b),ZA.createElement(rD,{onDismiss:e.close}));return c?ZA.createElement(sD,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n??s?.current??void 0},S):ZA.createElement(sD,{...i,shouldContainFocus:v,isExiting:t,portalContainer:n},!i.isNonModal&&e.isOpen&&ZA.createElement(`div`,{"data-testid":`underlay`,...u,style:{position:`fixed`,inset:0}}),ZA.createElement(`div`,{ref:o,style:{display:`contents`}},ZA.createElement(kz.Provider,{value:o},S)))}function ZD(e,t,n){return jD({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){let r=t.render(t);return!n||t.type!==`item`?r:QA.createElement(QA.Fragment,null,n({type:`item`,key:t.key,dropPosition:`before`}),r,QD(e,t,n))}})}function QD(e,t,n){let r=t.key,i=e.getKeyAfter(r),a=i==null?null:e.getItem(i);for(;a!=null&&a.type!==`item`;)i=e.getKeyAfter(a.key),a=i==null?null:e.getItem(i);let o=t.nextKey==null?null:e.getItem(t.nextKey);for(;o!=null&&o.type!==`item`;)o=o.nextKey==null?null:e.getItem(o.nextKey);let s=[];if(o==null){let r=t;for(;r&&(!a||r.parentKey!==a.parentKey&&a.level<r.level);){let t=n({type:`item`,key:r.key,dropPosition:`after`});(0,QA.isValidElement)(t)&&s.push((0,QA.cloneElement)(t,{key:`${r.key}-after`})),r=r.parentKey==null?null:e.getItem(r.parentKey)}}return s}function $D(e){return(0,QA.useMemo)(()=>e==null?null:new Set([e]),[e])}function eO(e){let t=BS(e,{labelable:!0}),n;return e.orientation===`vertical`&&(n=`vertical`),e.elementType===`hr`?{separatorProps:t}:{separatorProps:{...t,role:`separator`,"aria-orientation":n}}}function tO(e){return pN()?e.altKey:e.ctrlKey}function nO(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)}function rO(e){let t=ES();return Vz.set(e,t),t}function iO(e){return Vz.get(e)}function aO(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,rj.useRef)({search:``,timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let a=oO(e.key);if(!(!a||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target)||i.search.length===0&&a===` `)){if(a===` `&&i.search.trim().length>0&&(e.preventDefault(),`continuePropagation`in e||e.stopPropagation()),i.search+=a,t.getKeyForSearch!=null){let e=t.getKeyForSearch(i.search,n.focusedKey);e??=t.getKeyForSearch(i.search),e!=null&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=``},Hz)}}:void 0}}}function oO(e){return e.length===1||!/^[A-Z]/i.test(e)?e:``}function sO(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:c=`clearSelection`,selectOnFocus:l=t.selectionBehavior===`replace`,disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:m=r,linkBehavior:h=`action`}=e,{direction:g}=aT(),_=JS(),v=e=>{var i;if(e.altKey&&e.key===`Tab`&&e.preventDefault(),!((i=r.current)!=null&&i.contains(e.target)))return;let u=(n,i)=>{if(n!=null){if(t.isLink(n)&&h===`selection`&&l&&!tO(e)){(0,ij.flushSync)(()=>{t.setFocusedKey(n,i)});let a=nO(r,n),o=t.getItemProps(n);a&&_.open(a,e,o.href,o.routerOptions);return}if(t.setFocusedKey(n,i),t.isLink(n)&&h===`override`)return;e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(n):l&&!tO(e)&&t.replaceSelection(n)}};switch(e.key){case`ArrowDown`:if(n.getKeyBelow){let r=t.focusedKey==null?n.getFirstKey?.call(n):n.getKeyBelow?.call(n,t.focusedKey);r==null&&a&&(r=n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowUp`:if(n.getKeyAbove){let r=t.focusedKey==null?n.getLastKey?.call(n):n.getKeyAbove?.call(n,t.focusedKey);r==null&&a&&(r=n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r))}break;case`ArrowLeft`:if(n.getKeyLeftOf){let r=t.focusedKey==null?null:n.getKeyLeftOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getFirstKey?.call(n,t.focusedKey):n.getLastKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`first`:`last`))}break;case`ArrowRight`:if(n.getKeyRightOf){let r=t.focusedKey==null?null:n.getKeyRightOf?.call(n,t.focusedKey);r==null&&a&&(r=g===`rtl`?n.getLastKey?.call(n,t.focusedKey):n.getFirstKey?.call(n,t.focusedKey)),r!=null&&(e.preventDefault(),u(r,g===`rtl`?`last`:`first`))}break;case`Home`:if(n.getFirstKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getFirstKey(t.focusedKey,hC(e));t.setFocusedKey(r),r!=null&&(hC(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`End`:if(n.getLastKey){if(t.focusedKey===null&&e.shiftKey)return;e.preventDefault();let r=n.getLastKey(t.focusedKey,hC(e));t.setFocusedKey(r),r!=null&&(hC(e)&&e.shiftKey&&t.selectionMode===`multiple`?t.extendSelection(r):l&&t.replaceSelection(r))}break;case`PageDown`:if(n.getKeyPageBelow&&t.focusedKey!=null){let r=n.getKeyPageBelow(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`PageUp`:if(n.getKeyPageAbove&&t.focusedKey!=null){let r=n.getKeyPageAbove(t.focusedKey);r!=null&&(e.preventDefault(),u(r))}break;case`a`:hC(e)&&t.selectionMode===`multiple`&&s!==!0&&(e.preventDefault(),t.selectAll());break;case`Escape`:c===`clearSelection`&&!o&&t.selectedKeys.size!==0&&(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case`Tab`:if(!f){if(e.shiftKey)r.current.focus();else{let e=AE(r.current,{tabbable:!0}),t,n;do n=e.lastChild(),n&&(t=n);while(n);t&&!t.contains(document.activeElement)&&VS(t)}break}}},y=(0,aj.useRef)({top:0,left:0});vC(m,`scroll`,p?void 0:()=>{y.current={top:m.current?.scrollTop??0,left:m.current?.scrollLeft??0}});let b=e=>{if(t.isFocused){e.currentTarget.contains(e.target)||t.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),t.focusedKey==null){let r=e=>{e!=null&&(t.setFocusedKey(e),l&&!t.isSelected(e)&&t.replaceSelection(e))},i=e.relatedTarget;i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?r(t.lastSelectedKey??n.getLastKey?.call(n)):r(t.firstSelectedKey??n.getFirstKey?.call(n))}else!p&&m.current&&(m.current.scrollTop=y.current.top,m.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&m.current){let e=nO(r,t.focusedKey);e instanceof HTMLElement&&(!e.contains(document.activeElement)&&!d&&VS(e),pw()===`keyboard`&&xC(e,{containingElement:r.current}))}}},x=e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},S=(0,aj.useRef)(!1);vC(r,EN,d?e=>{let{detail:n}=e;e.stopPropagation(),t.setFocused(!0),n?.focusStrategy===`first`&&(S.current=!0)}:void 0);let C=sC(()=>{let e=n.getFirstKey?.call(n)??null;if(e==null){let e=$M();FE(r.current),LE(e,null),t.collection.size>0&&(S.current=!1)}else t.setFocusedKey(e),S.current=!1});cC(()=>{S.current&&C()},[t.collection,C]);let w=sC(()=>{t.collection.size>0&&(S.current=!1)});cC(()=>{w()},[t.focusedKey,w]),vC(r,TN,d?e=>{var n;e.stopPropagation(),t.setFocused(!1),(n=e.detail)!=null&&n.clearFocusKey&&t.setFocusedKey(null)}:void 0);let T=(0,aj.useRef)(i),E=(0,aj.useRef)(!1);(0,aj.useEffect)(()=>{if(T.current){let e=null;i===`first`&&(e=n.getFirstKey?.call(n)??null),i===`last`&&(e=n.getLastKey?.call(n)??null);let a=t.selectedKeys;if(a.size){for(let n of a)if(t.canSelectItem(n)){e=n;break}}t.setFocused(!0),t.setFocusedKey(e),e==null&&!d&&r.current&&_w(r.current),t.collection.size>0&&(T.current=!1,E.current=!0)}});let D=(0,aj.useRef)(t.focusedKey),O=(0,aj.useRef)(null);(0,aj.useEffect)(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==D.current||E.current)&&m.current&&r.current){let e=pw(),n=nO(r,t.focusedKey);if(!(n instanceof HTMLElement))return;(e===`keyboard`||E.current)&&(O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(()=>{m.current&&(yC(m.current,n),e!==`virtual`&&xC(n,{containingElement:r.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&D.current!=null&&r.current&&_w(r.current),D.current=t.focusedKey,E.current=!1}),(0,aj.useEffect)(()=>()=>{O.current&&cancelAnimationFrame(O.current)},[]),vC(r,`react-aria-focus-scope-restore`,e=>{e.preventDefault(),t.setFocused(!0)});let k={onKeyDown:v,onFocus:b,onBlur:x,onMouseDown(e){m.current===e.target&&e.preventDefault()}},{typeSelectProps:ee}=aO({keyboardDelegate:n,selectionManager:t});u||(k=V(ee,k));let A;d||(A=t.focusedKey==null?0:-1);let j=rO(t.collection);return{collectionProps:V(k,{tabIndex:A,"data-collection":j})}}function cO(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:c,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:d=`action`}=e,f=JS();t=ES(t);let p=e=>{if(e.pointerType===`keyboard`&&tO(e))n.toggleSelection(r);else{if(n.selectionMode===`none`)return;if(n.isLink(r)){if(d===`selection`&&i.current){let t=n.getItemProps(r);f.open(i.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(d===`override`||d===`none`)return}n.selectionMode===`single`?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):e&&e.shiftKey?n.extendSelection(r):n.selectionBehavior===`toggle`||e&&(hC(e)||e.pointerType===`touch`||e.pointerType===`virtual`)?n.toggleSelection(r):n.replaceSelection(r)}};(0,oj.useEffect)(()=>{r===n.focusedKey&&n.isFocused&&(o?FE(i.current):s?s():document.activeElement!==i.current&&i.current&&_w(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),c||=n.isDisabled(r);let m={};!o&&!c?m={tabIndex:r===n.focusedKey?0:-1,onFocus(e){e.target===i.current&&n.setFocusedKey(r)}}:c&&(m.onMouseDown=e=>{e.preventDefault()});let h=n.isLink(r)&&d===`override`,g=l&&e.UNSTABLE_itemBehavior===`action`,_=n.isLink(r)&&d!==`selection`&&d!==`none`,v=!c&&n.canSelectItem(r)&&!h&&!g,y=(l||_)&&!c,b=y&&(n.selectionBehavior===`replace`?!v:!v||n.isEmpty),x=y&&v&&n.selectionBehavior===`replace`,S=b||x,C=(0,oj.useRef)(null),w=S&&v,T=(0,oj.useRef)(!1),E=(0,oj.useRef)(!1),D=n.getItemProps(r),O=e=>{if(l){var t;l(),(t=i.current)==null||t.dispatchEvent(new CustomEvent(`react-aria-item-action`,{bubbles:!0}))}_&&i.current&&f.open(i.current,e,D.href,D.routerOptions)},k={ref:i};if(a?(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,e.pointerType===`keyboard`&&(!S||uO())&&p(e)},u?(k.onPressUp=b?void 0:e=>{e.pointerType===`mouse`&&v&&p(e)},k.onPress=b?O:e=>{e.pointerType!==`keyboard`&&e.pointerType!==`mouse`&&v&&p(e)}):k.onPress=e=>{if(b||x&&e.pointerType!==`mouse`){if(e.pointerType===`keyboard`&&!lO())return;O(e)}else e.pointerType!==`keyboard`&&v&&p(e)}):(k.onPressStart=e=>{C.current=e.pointerType,T.current=w,E.current=b,v&&(e.pointerType===`mouse`&&!b||e.pointerType===`keyboard`&&(!y||uO()))&&p(e)},k.onPress=e=>{(e.pointerType===`touch`||e.pointerType===`pen`||e.pointerType===`virtual`||e.pointerType===`keyboard`&&S&&lO()||e.pointerType===`mouse`&&E.current)&&(S?O(e):v&&p(e))}),m[`data-collection`]=iO(n.collection),m[`data-key`]=r,k.preventFocusOnPress=o,o&&(k=V(k,{onPressStart(e){e.pointerType!==`touch`&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(e){e.pointerType===`touch`&&(n.setFocused(!0),n.setFocusedKey(r))}})),D)for(let e of[`onPressStart`,`onPressEnd`,`onPressChange`,`onPress`,`onPressUp`,`onClick`])D[e]&&(k[e]=kS(k[e],D[e]));let{pressProps:ee,isPressed:A}=XC(k),j=x?e=>{C.current===`mouse`&&(e.stopPropagation(),e.preventDefault(),O(e))}:void 0,{longPressProps:te}=jw({isDisabled:!w,onLongPress(e){e.pointerType===`touch`&&(p(e),n.setSelectionBehavior(`toggle`))}}),ne=e=>{C.current===`touch`&&T.current&&e.preventDefault()},re=d!==`none`&&n.isLink(r)?e=>{XS.isOpening||e.preventDefault()}:void 0;return{itemProps:V(m,v||b||o&&!c?ee:{},w?te:{},{onDoubleClick:j,onDragStartCapture:ne,onClick:re,id:t},o?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:A,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:v,hasAction:S}}function lO(){return window.event?.key===`Enter`}function uO(){let e=window.event;return e?.key===` `||e?.code===`Space`}function dO(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,s=sE({usage:`search`,sensitivity:`base`}),c=t.disabledBehavior,l=(0,sj.useMemo)(()=>a||new Wz({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:s,layoutDelegate:o}),[a,o,n,r,i,s,c]),{collectionProps:u}=sO({...e,ref:i,selectionManager:t,keyboardDelegate:l});return{listProps:u}}function fO(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e[`aria-label`]&&e[`aria-labelledby`];let s=BS(e,{labelable:!0}),{listProps:c}=dO({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:`override`});return Bz.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:V(s,{onKeyDown:i,onKeyUp:a},{role:`menu`,...c,onKeyDown:t=>{var n;(t.key!==`Escape`||e.shouldUseVirtualFocus)&&((n=c.onKeyDown)==null||n.call(c,t))}})}}function pO(e){return null}function mO(e){return e.hasChildItems==null?!!(e.childItems||e.title&&cj.Children.count(e.children)>0):e.hasChildItems}function hO(e){return null}function gO(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||=e();for(let e of n)t.push(e),yield e}}}function _O(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function vO(e){return e[0].toUpperCase()+e.slice(1)}function yO(e,t,n){let r=(0,dj.useMemo)(()=>new Kz,[]),{children:i,items:a,collection:o}=e;return(0,dj.useMemo)(()=>o||t(r.build({children:i,items:a},n)),[r,i,a,o,n,t])}function bO(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function xO(e){return SO(e,0)}function SO(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function CO(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...wO(e,t),t],i=[...wO(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function wO(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}function TO(e){let t=qz.get(e);if(t!=null)return t;let n=0,r=t=>{for(let i of t)i.type===`section`?r(bO(i,e)):i.type===`item`&&n++};return r(e),qz.set(e,n),n}function EO(e,t,n){let{id:r,key:i,closeOnSelect:a,isVirtualized:o,"aria-haspopup":s,onPressStart:c,onPressUp:l,onPress:u,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:m,onHoverChange:h,onHoverEnd:g,onKeyDown:_,onKeyUp:v,onFocus:y,onFocusChange:b,onBlur:x,selectionManager:S=t.selectionManager}=e,C=!!s,w=C&&e[`aria-expanded`]===`true`,T=e.isDisabled??S.isDisabled(i),E=e.isSelected??S.isSelected(i),D=Bz.get(t),O=t.collection.getItem(i),k=e.onClose||D.onClose,ee=JS(),A=()=>{var t;if(!C&&(!(O==null||(t=O.props)==null)&&t.onAction?O.props.onAction():e.onAction&&e.onAction(i),D.onAction)){let e=D.onAction;e(i)}},j=`menuitem`;C||(S.selectionMode===`single`?j=`menuitemradio`:S.selectionMode===`multiple`&&(j=`menuitemcheckbox`));let te=OS(),ne=OS(),re=OS(),ie={id:r,"aria-disabled":T||void 0,role:j,"aria-label":e[`aria-label`],"aria-labelledby":te,"aria-describedby":[ne,re].filter(Boolean).join(` `)||void 0,"aria-controls":e[`aria-controls`],"aria-haspopup":s,"aria-expanded":e[`aria-expanded`]};S.selectionMode!==`none`&&!C&&(ie[`aria-checked`]=E),o&&(ie[`aria-posinset`]=O?.index,ie[`aria-setsize`]=TO(t.collection));let ae=(0,fj.useRef)(!1),oe=e=>{d?.(e),ae.current=e},se=(0,fj.useRef)(null),M=e=>{e.pointerType!==`keyboard`&&(se.current={pointerType:e.pointerType}),e.pointerType===`mouse`&&(ae.current||e.target.click()),l?.(e)},ce=e=>{p?.(e),A(),eC(e,ee,O.props.href,O?.props.routerOptions);let t=se.current?.pointerType===`keyboard`?se.current?.key===`Enter`||S.selectionMode===`none`||S.isLink(i):S.selectionMode!==`multiple`||S.isLink(i);t=a??t,k&&!C&&t&&k(),se.current=null},{itemProps:le,isFocused:ue}=cO({id:r,selectionManager:S,key:i,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:`none`,shouldUseVirtualFocus:D.shouldUseVirtualFocus}),{pressProps:de,isPressed:fe}=XC({onPressStart:c,onPress:u,onPressUp:M,onPressChange:oe,onPressEnd:f,isDisabled:T}),{hoverProps:pe}=Ow({isDisabled:T,onHoverStart(e){!fw()&&!(w&&s)&&(S.setFocused(!0),S.setFocusedKey(i)),m?.(e)},onHoverChange:h,onHoverEnd:g}),{keyboardProps:me}=bw({onKeyDown:e=>{if(e.repeat){e.continuePropagation();return}switch(e.key){case` `:se.current={pointerType:`keyboard`,key:` `},e.target.click();break;case`Enter`:se.current={pointerType:`keyboard`,key:`Enter`},e.target.tagName!==`A`&&e.target.click();break;default:C||e.continuePropagation(),_?.(e);break}},onKeyUp:v}),{focusProps:he}=vw({onBlur:x,onFocus:y,onFocusChange:b}),ge=BS(O?.props);delete ge.id;let _e=$S(O?.props);return{menuItemProps:{...ie,...V(ge,_e,C?{onFocus:le.onFocus,"data-collection":le[`data-collection`],"data-key":le[`data-key`]}:le,de,pe,me,he,D.shouldUseVirtualFocus||C?{onMouseDown:e=>e.preventDefault()}:void 0,T?void 0:{onClick:ce}),tabIndex:le.tabIndex!=null&&w&&!D.shouldUseVirtualFocus?-1:le.tabIndex},labelProps:{id:te},descriptionProps:{id:ne},keyboardShortcutProps:{id:re},isFocused:ue,isFocusVisible:ue&&S.isFocused&&fw()&&!w,isSelected:E,isPressed:fe,isDisabled:T}}function DO(e){let{heading:t,"aria-label":n}=e,r=ES();return{itemProps:{role:`presentation`},headingProps:t?{id:r,role:`presentation`}:{},groupProps:{role:`group`,"aria-label":n,"aria-labelledby":t?r:void 0}}}function OO(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:i}=e,a=(0,pj.useRef)(void 0),o=(0,pj.useRef)(void 0),s=(0,pj.useRef)(0),c=(0,pj.useRef)(void 0),l=(0,pj.useRef)(void 0),u=(0,pj.useRef)(void 0),d=(0,pj.useRef)(2),[f,p]=(0,pj.useState)(!1);uC({ref:n,onResize:()=>{n.current&&(o.current=n.current.getBoundingClientRect(),u.current=void 0)}});let m=()=>{p(!1),d.current=Jz,a.current=void 0},h=mw(),g=sC(e=>{f&&e.preventDefault()});(0,pj.useEffect)(()=>{f&&t.current?t.current.style.pointerEvents=`none`:t.current.style.pointerEvents=``},[t,f]),(0,pj.useEffect)(()=>{let e=n.current,f=t.current;if(i||!e||!r||h!==`pointer`||!f){m();return}o.current=e.getBoundingClientRect();let _=e=>{if(e.pointerType===`touch`||e.pointerType===`pen`)return;let t=Date.now();if(t-s.current<Yz)return;clearTimeout(c.current),clearTimeout(l.current);let{clientX:n,clientY:r}=e;if(!a.current){a.current={x:n,y:r};return}if(!o.current)return;if(u.current||=n>o.current.right?`left`:`right`,n<f.getBoundingClientRect().left||n>f.getBoundingClientRect().right||r<f.getBoundingClientRect().top||r>f.getBoundingClientRect().bottom){m();return}let i=a.current.x,h=a.current.y,g=u.current===`right`?o.current.left-i:i-o.current.right,_=Math.atan2(h-o.current.top,g)+Zz,v=Math.atan2(h-o.current.bottom,g)-Zz,y=Math.atan2(h-r,u.current===`left`?-(n-i):n-i),b=y<_&&y>v;d.current=b?Math.min(d.current+1,Jz):Math.max(d.current-1,0),d.current>=Jz?p(!0):p(!1),s.current=t,a.current={x:n,y:r},b&&(c.current=setTimeout(()=>{m(),l.current=setTimeout(()=>{let e=document.elementFromPoint(n,r);e&&f.contains(e)&&e.dispatchEvent(new PointerEvent(`pointerover`,{bubbles:!0,cancelable:!0}))},100)},Xz))};return window.addEventListener(`pointermove`,_),window.addEventListener(`pointerdown`,g,!0),()=>{window.removeEventListener(`pointermove`,_),window.removeEventListener(`pointerdown`,g,!0),clearTimeout(c.current),clearTimeout(l.current),d.current=Jz}},[i,r,t,h,p,g,n])}function kO(e,t,n){let{parentMenuRef:r,submenuRef:i,type:a=`menu`,isDisabled:o,delay:s=200,shouldUseVirtualFocus:c}=e,l=ES(),u=ES(),{direction:d}=aT(),f=(0,mj.useRef)(void 0),p=(0,mj.useCallback)(()=>{f.current&&=(clearTimeout(f.current),void 0)},[f]),m=sC(e=>{p(),t.open(e)}),h=sC(()=>{p(),t.close()});Y(()=>()=>{p()},[p]);let g={id:u,"aria-labelledby":l,submenuLevel:t.submenuLevel,...a===`menu`&&{onClose:t.closeAll,autoFocus:t.focusStrategy??void 0,onKeyDown:e=>{if(e.currentTarget.contains(document.activeElement))switch(e.key){case`ArrowLeft`:d===`ltr`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&VS(n.current));break;case`ArrowRight`:d===`rtl`&&e.currentTarget.contains(e.target)&&(e.preventDefault(),e.stopPropagation(),h(),!c&&n.current&&VS(n.current));break;case`Escape`:var t;(t=i.current)!=null&&t.contains(e.target)&&(e.stopPropagation(),h(),!c&&n.current&&VS(n.current));break}}}};return vC(r,`focusin`,e=>{var i;t.isOpen&&(i=r.current)!=null&&i.contains(e.target)&&e.target!==n.current&&h()}),OO({menuRef:r,submenuRef:i,isOpen:t.isOpen,isDisabled:o}),{submenuTriggerProps:{id:l,"aria-controls":t.isOpen?u:void 0,"aria-haspopup":o?void 0:a,"aria-expanded":t.isOpen?`true`:`false`,onPressStart:e=>{!o&&(e.pointerType===`virtual`||e.pointerType===`keyboard`)&&m(`first`)},onPress:e=>{!o&&(e.pointerType===`touch`||e.pointerType===`mouse`)&&m()},onHoverChange:e=>{o||(e&&!t.isOpen?f.current||=setTimeout(()=>{m()},s):e||p())},onKeyDown:e=>{switch(e.key){case`ArrowRight`:o||(d===`ltr`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&VS(i.current)):t.isOpen?h():e.continuePropagation());break;case`ArrowLeft`:o||(d===`rtl`?(e.preventDefault(),t.isOpen||m(`first`),a===`menu`&&i?.current&&document.activeElement===n?.current&&VS(i.current)):t.isOpen?h():e.continuePropagation());break;default:e.continuePropagation();break}},isOpen:t.isOpen},submenuProps:g,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:e=>e!==n.current}}}function AO(e){let t=uD(e),[n,r]=(0,hj.useState)(null),[i,a]=(0,hj.useState)([]),o=()=>{a([]),t.close()};return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:(e,t)=>{a(n=>t>n.length?n:[...n.slice(0,t),e])},closeSubmenu:(e,t)=>{a(n=>n[t]===e?n.slice(0,t):n)}}}function jO(e,t){let{triggerKey:n}=e,{expandedKeysStack:r,openSubmenu:i,closeSubmenu:a,close:o}=t,[s]=(0,gj.useState)(r?.length),c=(0,gj.useMemo)(()=>r[s]===n,[r,n,s]),[l,u]=(0,gj.useState)(null),d=(0,gj.useCallback)(e=>{u(e??null),i(n,s)},[i,s,n]),f=(0,gj.useCallback)(()=>{u(null),a(n,s)},[a,s,n]),p=(0,gj.useCallback)(e=>{u(e??null),c?f():d(e)},[f,d,c]);return(0,gj.useMemo)(()=>({focusStrategy:l,isOpen:c,open:d,close:f,closeAll:o,submenuLevel:s,setOpen:()=>{},toggle:p}),[c,d,f,o,l,p,s])}function MO(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function NO(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=(0,_j.useRef)(!1),[,s]=(0,_j.useState)(!1),c=(0,_j.useRef)(null),l=(0,_j.useRef)(null),[,u]=(0,_j.useState)(null),[d,f]=PC((0,_j.useMemo)(()=>PO(e.selectedKeys),[e.selectedKeys]),(0,_j.useMemo)(()=>PO(e.defaultSelectedKeys,new $z),[e.defaultSelectedKeys]),e.onSelectionChange),p=(0,_j.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,h]=(0,_j.useState)(i);i===`replace`&&m===`toggle`&&typeof d==`object`&&d.size===0&&h(`replace`);let g=(0,_j.useRef)(i);return(0,_j.useEffect)(()=>{i!==g.current&&(h(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:m,setSelectionBehavior:h,get isFocused(){return o.current},setFocused(e){o.current=e,s(e)},get focusedKey(){return c.current},get childFocusStrategy(){return l.current},setFocusedKey(e,t=`first`){c.current=e,l.current=t,u(e)},selectedKeys:d,setSelectedKeys(e){(r||!MO(e,d))&&f(e)},disabledKeys:p,disabledBehavior:a}}function PO(e,t){return e?e===`all`?`all`:new $z(e):t}function FO(e){let{onExpandedChange:t}=e,[n,r]=PC(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=NO(e),a=(0,vj.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=yO(e,(0,vj.useCallback)(e=>new Qz(e,{expandedKeys:n}),[n]),null);return(0,vj.useEffect)(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(IO(n,e))},setExpandedKeys:r,selectionManager:new eB(o,i)}}function IO(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function LO({props:e,collection:t,menuRef:n}){[e,n]=Fw(e,n,Pz);let{filter:r,...i}=e,a=(0,G.useMemo)(()=>r?t.filter(r):t,[t,r]),o=FO({...e,collection:a,children:void 0}),s=(0,G.useContext)(rB),{isVirtualized:c,CollectionRoot:l}=(0,G.useContext)(Nz),{menuProps:u}=fO({...e,isVirtualized:c,onClose:e.onClose||s?.close},o,n),d=Nw({defaultClassName:`react-aria-Menu`,className:e.className,style:e.style,values:{isEmpty:o.collection.size===0}}),f=null;o.collection.size===0&&e.renderEmptyState&&(f=G.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},e.renderEmptyState()));let p=BS(e,{global:!0});return G.createElement(dE,null,G.createElement(`div`,{...V(p,d,u),ref:n,slot:e.slot||void 0,"data-empty":o.collection.size===0||void 0,onScroll:e.onScroll},G.createElement(Mw,{values:[[nB,o],[Rz,{elementType:`div`}],[jz,{name:`MenuSection`,render:RO}],[aB,{parentMenuRef:n,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[cB,null],[Pz,null],[Fz,null],[iB,o.selectionManager],[rB,s??AO({})]]},G.createElement(l,{collection:o.collection,persistedKeys:$D(o.selectionManager.focusedKey),scrollRef:n})),f))}function RO(e,t,n,r=`react-aria-MenuSection`){let i=(0,G.useContext)(nB),{CollectionBranch:a}=(0,G.useContext)(Nz),[o,s]=Iw(),{headingProps:c,groupProps:l}=DO({heading:s,"aria-label":n.props[`aria-label`]??void 0}),u=Nw({defaultClassName:r,className:n.props?.className,style:n.props?.style,values:{}}),d=(0,G.useContext)(iB),f=NO(e),p=e.selectionMode==null?d:new sB(d,f),m=BS(e,{global:!0});return delete m.id,G.createElement(`section`,{...V(m,u,l),ref:t},G.createElement(Mw,{values:[[Iz,{...c,ref:o}],[iB,p]]},G.createElement(a,{collection:i.collection,parent:n})))}function zO(e,t){let{role:n=`dialog`}=e,r=OS();r=e[`aria-label`]?void 0:r;let i=(0,yj.useRef)(!1);return(0,yj.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){_w(t.current);let e=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),_w(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),cD(),{dialogProps:{...BS(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e[`aria-labelledby`]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}function BO(e){let t=AO(e),n=(0,bj.useRef)(null),{triggerProps:r,overlayProps:i}=BE({type:`dialog`},t,n),[a,o]=(0,bj.useState)(null);return uC({ref:n,onResize:(0,bj.useCallback)(()=>{n.current&&o(n.current.offsetWidth+`px`)},[n])}),r.id=ES(),i[`aria-labelledby`]=r.id,bj.createElement(Mw,{values:[[uB,t],[rB,t],[lB,i],[Oz,{trigger:`DialogTrigger`,triggerRef:n,"aria-labelledby":i[`aria-labelledby`],style:{"--trigger-width":a}}]]},bj.createElement(tP,{...r,ref:n,isPressed:t.isOpen},e.children))}function VO({children:e,...t},n){let r={props:t,ref:n};if(BB(r))return Dj.createElement(`a`,{ref:r.ref,...r.props},e);if(VB(r))return Dj.createElement(`button`,{ref:r.ref,type:`button`,...r.props},e);throw Error(`invalid props`)}function HO(e){eV("The `useList` tabs hook is deprecated. Use `TabsView` instead.");let t=(0,Aj.useRef)(),n=(0,Aj.useRef)(),r=(0,Aj.useRef)(new Map),{width:i=1}=yD({ref:t}),[a,o]=(0,Aj.useState)(e),[s,c]=(0,Aj.useState)([]),l=(0,Aj.useRef)(e),u=(0,Aj.useCallback)(({menuName:e,actions:t})=>{let i=s.some(({active:e})=>e),[a,o]=(0,Aj.useState)(!1);return Aj.createElement(Aj.Fragment,null,Aj.createElement(dB,{ariaLabel:`Additional tabs`,visible:a,onVisibleChange:o,placement:`bottom`,popover:Aj.createElement(kB,{links:s.map(({title:e,id:n,color:r,active:i})=>({id:n,title:e,color:r,active:i,onClick:e=>{e.preventDefault(),t.onSelect(n)}}))})},Aj.createElement(nV,{id:`addons-menu-button`,ref:n,active:i,preActive:a,style:{visibility:s.length?`visible`:`hidden`},"aria-hidden":!s.length,className:`tabbutton`,type:`button`,role:`tab`},e,Aj.createElement(tV,{className:`addon-collapsible-icon`,isActive:i||a}))),s.map(({title:e,id:t,color:n},i)=>{let a=`index-${i}`;return Aj.createElement(WB,{id:`tabbutton-${eh(t)??a}`,style:{visibility:`hidden`},"aria-hidden":!0,tabIndex:-1,ref:e=>{r.current.set(t,e)},className:`tabbutton`,type:`button`,key:t,textColor:n,role:`tab`},e)}))},[s]),d=(0,Aj.useCallback)(()=>{if(!t.current||!n.current)return;let{x:i,width:u}=t.current.getBoundingClientRect(),{width:d}=n.current.getBoundingClientRect(),f=s.length?i+u-d:i+u,p=[],m=0,h=e.filter(e=>{let{id:t}=e,n=r.current.get(t),{width:a=0}=n?.getBoundingClientRect()||{},o=i+m+a>f;return(!o||!n)&&p.push(e),m+=a,o});(p.length!==a.length||l.current!==e)&&(o(p),c(h),l.current=e)},[s.length,e,a]);return(0,Aj.useLayoutEffect)(d,[d,i]),{tabRefs:r,addonsRef:n,tabBarRef:t,visibleList:a,invisibleList:s,AddonTab:u}}function UO(e,t){let{"aria-label":n,"aria-labelledby":r,orientation:i=`horizontal`}=e,[a,o]=(0,Mj.useState)(!1);Y(()=>{var e;o(!!(t.current&&(e=t.current.parentElement)!=null&&e.closest(`[role="toolbar"]`)))});let{direction:s}=aT(),c=s===`rtl`&&i===`horizontal`,l=jE(t),u=e=>{if(e.currentTarget.contains(e.target)){if(i===`horizontal`&&e.key===`ArrowRight`||i===`vertical`&&e.key===`ArrowDown`)c?l.focusPrevious():l.focusNext();else if(i===`horizontal`&&e.key===`ArrowLeft`||i===`vertical`&&e.key===`ArrowUp`)c?l.focusNext():l.focusPrevious();else if(e.key===`Tab`){e.stopPropagation(),d.current=document.activeElement,e.shiftKey?l.focusFirst():l.focusLast();return}else return;e.stopPropagation(),e.preventDefault()}},d=(0,Mj.useRef)(null),f=e=>{!e.currentTarget.contains(e.relatedTarget)&&!d.current&&(d.current=e.target)},p=e=>{var n;if(d.current&&!e.currentTarget.contains(e.relatedTarget)&&(n=t.current)!=null&&n.contains(e.target)){var r;(r=d.current)==null||r.focus(),d.current=null}};return{toolbarProps:{...BS(e,{labelable:!0}),role:a?`group`:`toolbar`,"aria-orientation":i,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:a?void 0:u,onFocusCapture:a?void 0:p,onBlurCapture:a?void 0:f}}}function WO(e,t,n){return e?(typeof t==`string`&&(t=t.replace(/\s+/g,``)),`${mV.get(e)}-${n}-${t}`):``}function GO(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:s}=t,c=r===s,l=i||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:u,isPressed:d}=cO({selectionManager:o,key:r,ref:n,isDisabled:l,shouldSelectOnPressUp:a,linkBehavior:`selection`}),f=WO(t,r,`tab`),p=WO(t,r,`tabpanel`),{tabIndex:m}=u,h=t.collection.getItem(r),g=BS(h?.props,{labelable:!0});delete g.id;let _=$S(h?.props),{focusableProps:v}=Sw({isDisabled:l},n);return{tabProps:V(g,v,_,u,{id:f,"aria-selected":c,"aria-disabled":l||void 0,"aria-controls":c?p:void 0,tabIndex:l?void 0:m,role:`tab`}),isSelected:c,isDisabled:l,isPressed:d}}function KO(e,t,n){let r=PE(n)?void 0:0,i=WO(t,e.id??t?.selectedKey,`tabpanel`);return{tabPanelProps:V(aC({...e,id:i,"aria-labelledby":WO(t,t?.selectedKey,`tab`)}),{tabIndex:r,role:`tabpanel`,"aria-describedby":e[`aria-describedby`],"aria-details":e[`aria-details`]})}}function qO(e,t,n){let{orientation:r=`horizontal`,keyboardActivation:i=`automatic`}=e,{collection:a,selectionManager:o,disabledKeys:s}=t,{direction:c}=aT(),{collectionProps:l}=sO({ref:n,selectionManager:o,keyboardDelegate:(0,Nj.useMemo)(()=>new hV(a,c,r,s),[a,s,r,c]),selectOnFocus:i===`automatic`,disallowEmptySelection:!0,scrollRef:n,linkBehavior:`selection`}),u=ES();return mV.set(t,u),{tabListProps:{...V(l,aC({...e,id:u})),role:`tablist`,"aria-orientation":r,tabIndex:void 0}}}function JO(e){let{filter:t,layoutDelegate:n}=e,r=NO(e),i=(0,Ij.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=yO(e,(0,Ij.useCallback)(e=>t?new DV(t(e)):new DV(e),[t]),(0,Ij.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning])),o=(0,Ij.useMemo)(()=>new eB(a,r,{layoutDelegate:n}),[a,r,n]);return YO(a,o),{collection:a,disabledKeys:i,selectionManager:o}}function YO(e,t){let n=(0,Ij.useRef)(null);(0,Ij.useEffect)(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){let r=n.current.getItem(t.focusedKey),i=[...n.current.getKeys()].map(e=>{let t=n.current.getItem(e);return t?.type===`item`?t:null}).filter(e=>e!==null),a=[...e.getKeys()].map(t=>{let n=e.getItem(t);return n?.type===`item`?n:null}).filter(e=>e!==null),o=(i?.length??0)-(a?.length??0),s=Math.min(o>1?Math.max((r?.index??0)-o+1,0):r?.index??0,(a?.length??0)-1),c=null,l=!1;for(;s>=0;){if(!t.isDisabled(a[s].key)){c=a[s];break}s<a.length-1&&!l?s++:(l=!0,s>(r?.index??0)&&(s=r?.index??0),s--)}t.setFocusedKey(c?c.key:null)}n.current=e},[e,t])}function XO(e){let[t,n]=PC(e.selectedKey,e.defaultSelectedKey??null,e.onSelectionChange),r=(0,Lj.useMemo)(()=>t==null?[]:[t],[t]),{collection:i,disabledKeys:a,selectionManager:o}=JO({...e,selectionMode:`single`,disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:r=>{if(r===`all`)return;let i=r.values().next().value??null;i===t&&e.onSelectionChange&&e.onSelectionChange(i),n(i)}});return{collection:i,disabledKeys:a,selectionManager:o,selectedKey:t,setSelectedKey:n,selectedItem:t==null?null:i.getItem(t)}}function ZO(e){let t=XO({...e,onSelectionChange:e.onSelectionChange?t=>{var n;t!=null&&((n=e.onSelectionChange)==null||n.call(e,t))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:e.defaultSelectedKey??QO(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)??void 0}),{selectionManager:n,collection:r,selectedKey:i}=t,a=(0,Rj.useRef)(i);return(0,Rj.useEffect)(()=>{let o=i;e.selectedKey==null&&(n.isEmpty||o==null||!r.getItem(o))&&(o=QO(r,t.disabledKeys),o!=null&&n.setSelectedKeys([o])),(o!=null&&n.focusedKey==null||!n.isFocused&&o!==a.current)&&n.setFocusedKey(o),a.current=o}),{...t,isDisabled:e.isDisabled||!1}}function QO(e,t){let n=null;if(e){var r,i,a,o;for(n=e.getFirstKey();n!=null&&(t.has(n)||!((i=e.getItem(n))==null||(r=i.props)==null)&&r.isDisabled)&&n!==e.getLastKey();)n=e.getKeyAfter(n);n!=null&&(t.has(n)||!((o=e.getItem(n))==null||(a=o.props)==null)&&a.isDisabled)&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}function $O({props:e,tabsRef:t,collection:n}){let{orientation:r=`horizontal`}=e,i=ZO({...e,collection:n,children:void 0}),{focusProps:a,isFocused:o,isFocusVisible:s}=NE({within:!0}),c=(0,q.useMemo)(()=>({orientation:r,isFocusWithin:o,isFocusVisible:s}),[r,o,s]),l=Nw({...e,defaultClassName:`react-aria-Tabs`,values:c}),u=BS(e,{global:!0});return q.createElement(`div`,{...V(u,l,a),ref:t,slot:e.slot||void 0,"data-focused":o||void 0,"data-orientation":r,"data-focus-visible":s||void 0,"data-disabled":i.isDisabled||void 0},q.createElement(Mw,{values:[[NV,e],[PV,i]]},l.children))}function ek({props:e,forwardedRef:t}){let n=(0,q.useContext)(PV),{CollectionRoot:r}=(0,q.useContext)(Nz),{orientation:i=`horizontal`,keyboardActivation:a=`automatic`}=Pw(NV),o=oC(t),{tabListProps:s}=qO({...e,orientation:i,keyboardActivation:a},n,o),c=Nw({...e,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:i,state:n}}),l=BS(e,{global:!0});return delete l.id,q.createElement(`div`,{...V(l,c,s),ref:o,"data-orientation":i||void 0},q.createElement(r,{collection:n.collection,persistedKeys:$D(n.selectionManager.focusedKey)}))}var tk,nk,rk,ik,ak,ok,sk,ck,lk,uk,dk,fk,pk,mk,hk,gk,_k,vk,yk,bk,xk,Sk,Ck,wk,Tk,Ek,Dk,Ok,kk,Ak,jk,Mk,Nk,Pk,Fk,Ik,Lk,Rk,zk,Bk,Vk,Hk,Uk,Wk,Gk,Kk,qk,Jk,Yk,Xk,Zk,Qk,$k,eA,tA,nA,rA,iA,aA,oA,sA,cA,lA,uA,dA,fA,pA,mA,hA,gA,_A,vA,yA,bA,xA,SA,CA,wA,TA,EA,DA,OA,kA,U,AA,jA,MA,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,WA,GA,KA,W,qA,JA,YA,XA,ZA,QA,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,pj,mj,hj,gj,_j,vj,G,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,K,Nj,Pj,Fj,Ij,Lj,Rj,q,zj,J,Bj,Vj,Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM,nM,rM,iM,aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM,xM,SM,CM,wM,TM,EM,DM,OM,kM,AM,jM,MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,Y,UM,WM,GM,KM,qM,JM,YM,XM,X,ZM,QM,$M,eN,tN,nN,rN,iN,aN,oN,sN,cN,lN,uN,dN,fN,pN,mN,hN,gN,_N,vN,yN,bN,xN,SN,CN,wN,TN,EN,DN,ON,kN,AN,jN,MN,NN,PN,FN,IN,LN,RN,zN,BN,VN,HN,UN,WN,GN,KN,qN,JN,YN,XN,ZN,QN,$N,eP,tP,nP,rP,iP,aP,oP,sP,cP,lP,uP,dP,fP,pP,mP,hP,gP,_P,vP,yP,bP,xP,Z,SP,CP,wP,TP,Q,EP,DP,OP,kP,AP,jP,MP,NP,PP,FP,IP,LP,RP,zP,BP,VP,HP,UP,WP,GP,KP,qP,JP,YP,XP,ZP,QP,$P,eF,tF,nF,rF,iF,aF,oF,sF,cF,lF,uF,dF,fF,pF,mF,hF,gF,_F,vF,yF,bF,xF,SF,CF,wF,TF,EF,DF,OF,$,kF,AF,jF,MF,NF,PF,FF,IF,LF,RF,zF,BF,VF,HF,UF,WF,GF,KF,qF,JF,YF,XF,ZF,QF,$F,eI,tI,nI,rI,iI,aI,oI,sI,cI,lI,uI,dI,fI,pI,mI,hI,gI,_I,vI,yI,bI,xI,SI,CI,wI,TI,EI,DI,OI,kI,AI,jI,MI,NI,PI,FI,II,LI,RI,zI,BI,VI,HI,UI,WI,GI,KI,qI,JI,YI,XI,ZI,QI,$I,eL,tL,nL,rL,iL,aL,oL,sL,cL,lL,uL,dL,fL,pL,mL,hL,gL,_L,vL,yL,bL,xL,SL,CL,wL,TL,EL,DL,OL,kL,AL,jL,ML,NL,PL,FL,IL,LL,RL,zL,BL,VL,HL,UL,WL,GL,KL,qL,JL,YL,XL,ZL,QL,$L,eR,tR,nR,rR,iR,aR,oR,sR,cR,lR,uR,dR,fR,pR,mR,hR,gR,_R,vR,yR,bR,xR,SR,CR,wR,TR,ER,DR,OR,kR,AR,jR,MR,NR,PR,FR,IR,LR,RR,zR,BR,VR,HR,UR,WR,GR,KR,qR,JR,YR,XR,ZR,QR,$R,ez,tz,nz,rz,iz,az,oz,sz,cz,lz,uz,dz,fz,pz,mz,hz,gz,_z,vz,yz,bz,xz,Sz,Cz,wz,Tz,Ez,Dz,Oz,kz,Az,jz,Mz,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz,Uz,Wz,Gz,Kz,qz,Jz,Yz,Xz,Zz,Qz,$z,eB,tB,nB,rB,iB,aB,oB,sB,cB,lB,uB,dB,fB,pB,mB,hB,gB,_B,vB,yB,bB,xB,SB,CB,wB,TB,EB,DB,OB,kB,AB,jB,MB,NB,PB,FB,IB,LB,RB,zB,BB,VB,HB,UB,WB,GB,KB,qB,JB,YB,XB,ZB,QB,$B,eV,tV,nV,rV,iV,aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV,_V,vV,yV,bV,xV,SV,CV,wV,TV,EV,DV,OV,kV,AV,jV,MV,NV,PV,FV,IV,LV,RV,zV,BV,VV,HV,UV,WV,GV,KV,qV,JV,YV,XV,ZV,QV,$V,eH=t((()=>{E(),T(),he(),O(),k(),ve(),pe(),h(),tk=i(s(),1),nk=i(s(),1),ee(),rk=i(s(),1),ik=i(s(),1),ak=i(s(),1),s(),ok=i(s(),1),Ue(),sk=i(s(),1),ck=i(s(),1),lk=i(s(),1),s(),uk=S(),tS(),dk=i(s(),1),fk=i(s(),1),pk=i(s(),1),mk=i(s(),1),hk=i(s(),1),gk=i(s(),1),_k=i(s(),1),vk=i(s(),1),s(),yk=i(s(),1),bk=i(s(),1),xk=i(s(),1),s(),Sk=i(s(),1),Ck=i(s(),1),s(),wk=i(s(),1),Tk=i(s(),1),s(),s(),s(),s(),Ek=i(s(),1),Dk=i(me(),1),Ok=i(s(),1),kk=i(s(),1),Ak=i(s(),1),jk=i(s(),1),me(),Mk=i(s(),1),Nk=i(s(),1),Pk=i(s(),1),Fk=i(s(),1),Ik=i(s(),1),Lk=i(s(),1),Rk=i(s(),1),zk=i(s(),1),Bk=i(s(),1),s(),s(),Vk=i(s(),1),Hk=i(s(),1),Uk=i(s(),1),Wk=i(s(),1),Gk=i(s(),1),Kk=i(s(),1),qk=i(s(),1),Jk=i(s(),1),s(),Yk=i(s(),1),s(),s(),Xk=i(s(),1),s(),Zk=i(s(),1),Qk=i(s(),1),s(),$k=i(s(),1),eA=i(s(),1),tA=i(s(),1),nA=i(s(),1),rA=i(s(),1),iA=i(me(),1),aA=i(s(),1),oA=i(s(),1),sA=i(s(),1),cA=i(s(),1),lA=i(me(),1),uA=i(s(),1),dA=i(s(),1),fA=i(s(),1),pA=i(s(),1),mA=i(s(),1),hA=i(s(),1),gA=i(s(),1),_A=i(s(),1),vA=i(s(),1),yA=i(s(),1),bA=i(s(),1),s(),xA=i(s(),1),SA=i(s(),1),CA=i(s(),1),wA=i(s(),1),TA=i(s(),1),s(),s(),EA=i(s(),1),DA=i(s(),1),OA=i(s(),1),kA=i(s(),1),U=i(s(),1),AA=i(s(),1),jA=i(s(),1),MA=i(s(),1),NA=i(s(),1),PA=i(s(),1),FA=i(s(),1),IA=i(s(),1),LA=i(s(),1),RA=i(s(),1),zA=i(s(),1),BA=i(s(),1),VA=i(s(),1),HA=i(s(),1),UA=i(s(),1),WA=i(s(),1),GA=i(s(),1),KA=i(me(),1),W=i(s(),1),qA=rS(),JA=i(s(),1),YA=i(s(),1),s(),XA=i(s(),1),ZA=i(s(),1),QA=i(s(),1),$A=i(s(),1),ej=i(s(),1),tj=i(s(),1),nj=i(s(),1),rj=i(s(),1),ij=i(me(),1),aj=i(s(),1),oj=i(s(),1),sj=i(s(),1),cj=i(s(),1),lj=i(s(),1),uj=i(s(),1),dj=i(s(),1),fj=i(s(),1),pj=i(s(),1),mj=i(s(),1),hj=i(s(),1),gj=i(s(),1),_j=i(s(),1),vj=i(s(),1),G=i(s(),1),yj=i(s(),1),bj=i(s(),1),xj=i(s(),1),Sj=i(s(),1),s(),Cj=i(s(),1),wj=i(s(),1),Tj=i(s(),1),rh(),Ej=i(s(),1),Dj=i(s(),1),Oj=i(s(),1),kj=i(s(),1),Aj=i(s(),1),s(),s(),jj=i(s(),1),Mj=i(s(),1),K=i(s(),1),Nj=i(s(),1),Pj=i(s(),1),Fj=i(s(),1),Ij=i(s(),1),Lj=i(s(),1),Rj=i(s(),1),s(),q=i(s(),1),s(),s(),s(),s(),s(),zj=i(s(),1),s(),s(),n(),J=({...e},t)=>{let n=[e.class,e.className];return delete e.class,e.className=[`sbdocs`,`sbdocs-${t}`,...n].filter(Boolean).join(` `),e},Bj=({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`}}),Vj=({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)`}),Hj=({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`}),Uj={margin:`16px 0`},Wj=M.div(Hj),Gj=({href:e=``,...t})=>{let n=/^\//.test(e)?`./?path=${e}`:e,r=/^#.*/.test(e)?`_self`:`_top`;return rk.createElement(`a`,{href:n,target:r,...t})},Kj=M(Gj)(({theme:e})=>({...Hj({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`}}})),qj=M.blockquote(({theme:e})=>({...Hj({theme:e}),...Uj,borderLeft:`4px solid ${e.color.medium}`,padding:`0 15px`,color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Jj=[],Yj=null,Xj=(0,ak.lazy)(async()=>{let{SyntaxHighlighter:e}=await a(async()=>{let{SyntaxHighlighter:e}=await import(`./syntaxhighlighter-YFXUGROL-F_p8E2xc.js`);return{SyntaxHighlighter:e}},__vite__mapDeps([5,1,2,3,6,7,0,4,8,9]),import.meta.url);return Jj.length>0&&(Jj.forEach(t=>{e.registerLanguage(...t)}),Jj=[]),Yj===null&&(Yj=e),{default:t=>ak.createElement(e,{...t})}}),Zj=(0,ak.lazy)(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([a(()=>import(`./syntaxhighlighter-YFXUGROL-F_p8E2xc.js`),__vite__mapDeps([5,1,2,3,6,7,0,4,8,9]),import.meta.url),a(()=>import(`./formatter-L2YTDE3Q-Do9sjqiW.js`),__vite__mapDeps([10,1,2,3,4]),import.meta.url)]);return Jj.length>0&&(Jj.forEach(t=>{e.registerLanguage(...t)}),Jj=[]),Yj===null&&(Yj=e),{default:n=>ak.createElement(e,{...n,formatter:t})}}),Qj=e=>ak.createElement(ak.Suspense,{fallback:ak.createElement(`div`,null)},e.format===!1?ak.createElement(Xj,{...e}):ak.createElement(Zj,{...e})),Qj.registerLanguage=(...e)=>{if(Yj!==null){Yj.registerLanguage(...e);return}Jj.push(e)},$j=e=>typeof e==`string`,eM=/[\n\r]/g,tM=M.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,display:`inline-block`,paddingLeft:2,paddingRight:2,verticalAlign:`baseline`,color:`inherit`,...Vj({theme:e})})),nM=M(Qj)(({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`}})),rM=({className:e,children:t,...n})=>{let r=(e||``).match(/lang-(\S+)/),i=ik.Children.toArray(t);return i.filter($j).some(e=>e.match(eM))?ik.createElement(nM,{bordered:!0,copyable:!0,language:r?.[1]??`text`,format:!1,...n},t):ik.createElement(tM,{...n,className:e},i)},iM=M.dl(({theme:e})=>({...Hj({theme:e}),...Uj,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}})),aM=M.div(Hj),oM=M.h1(({theme:e})=>({...Hj({theme:e}),...Bj({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),sM=M.h2(({theme:e})=>({...Hj({theme:e}),...Bj({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),cM=M.h3(({theme:e})=>({...Hj({theme:e}),...Bj({theme:e}),fontSize:`${e.typography.size.m1}px`})),lM=M.h4(({theme:e})=>({...Hj({theme:e}),...Bj({theme:e}),fontSize:`${e.typography.size.s3}px`})),uM=M.h5(({theme:e})=>({...Hj({theme:e}),...Bj({theme:e}),fontSize:`${e.typography.size.s2}px`})),dM=M.h6(({theme:e})=>({...Hj({theme:e}),...Bj({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),fM=M.hr(({theme:e})=>({border:`0 none`,borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),pM=M.img({maxWidth:`100%`}),mM=M.li(({theme:e})=>({...Hj({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:`24px`,"& + li":{marginTop:`.25em`},"& ul, & ol":{marginTop:`.25em`,marginBottom:0},"& code":Vj({theme:e})})),hM={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},gM=M.ol(({theme:e})=>({...Hj({theme:e}),...Uj,...hM,listStyle:`decimal`})),_M=M.p(({theme:e})=>({...Hj({theme:e}),...Uj,fontSize:e.typography.size.s2,lineHeight:`24px`,color:e.color.defaultText,"& code":Vj({theme:e})})),vM=M.pre(({theme:e})=>({...Hj({theme:e}),...Uj,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`}})),yM=M.span(({theme:e})=>({...Hj({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`}}})),bM=M.title(Vj),xM=M.table(({theme:e})=>({...Hj({theme:e}),...Uj,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}})),SM={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},CM=M.ul(({theme:e})=>({...Hj({theme:e}),...Uj,...SM,listStyle:`disc`})),wM={h1:e=>nk.createElement(oM,{...J(e,`h1`)}),h2:e=>nk.createElement(sM,{...J(e,`h2`)}),h3:e=>nk.createElement(cM,{...J(e,`h3`)}),h4:e=>nk.createElement(lM,{...J(e,`h4`)}),h5:e=>nk.createElement(uM,{...J(e,`h5`)}),h6:e=>nk.createElement(dM,{...J(e,`h6`)}),pre:e=>nk.createElement(vM,{...J(e,`pre`)}),a:e=>nk.createElement(Kj,{...J(e,`a`)}),hr:e=>nk.createElement(fM,{...J(e,`hr`)}),dl:e=>nk.createElement(iM,{...J(e,`dl`)}),blockquote:e=>nk.createElement(qj,{...J(e,`blockquote`)}),table:e=>nk.createElement(xM,{...J(e,`table`)}),img:e=>nk.createElement(pM,{...J(e,`img`)}),div:e=>nk.createElement(aM,{...J(e,`div`)}),span:e=>nk.createElement(yM,{...J(e,`span`)}),li:e=>nk.createElement(mM,{...J(e,`li`)}),ul:e=>nk.createElement(CM,{...J(e,`ul`)}),ol:e=>nk.createElement(gM,{...J(e,`ol`)}),p:e=>nk.createElement(_M,{...J(e,`p`)}),code:e=>nk.createElement(rM,{...J(e,`code`)}),tt:e=>nk.createElement(bM,{...J(e,`tt`)}),resetwrapper:e=>nk.createElement(Wj,{...J(e,`resetwrapper`)})},M.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 ${ue(.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`?de(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${ue(.9,e.color.secondary)}`};default:return{}}}),{deprecate:TM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,EM=0,DM=e=>e.button===EM&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,OM=(e,t)=>{DM(e)&&(e.preventDefault(),t(e))},kM=M.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}}:{}),AM=M.a(({theme:e})=>({display:`inline-block`,transition:`all 150ms ease-out`,textDecoration:`none`,color:e.color.secondary,"&:hover, &:focus":{cursor:`pointer`,color:de(.07,e.color.secondary),"svg path:not([fill])":{fill:de(.07,e.color.secondary)}},"&:active":{color:de(.1,e.color.secondary),"svg path:not([fill])":{fill:de(.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:n})=>{let r;return t&&(r=[e.textMutedColor,e.color.secondary,e.color.secondary]),n&&(r=[e.color.dark,e.color.secondary,e.color.secondary]),r?{color:r[0],"svg path:not([fill])":{fill:r[0]},"&:hover":{color:r[1],"svg path:not([fill])":{fill:r[1]}},"&:active":{color:r[2],"svg path:not([fill])":{fill:r[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`}}:{}),jM=(0,ok.forwardRef)(({cancel:e=!0,children:t,onClick:n=void 0,withArrow:r=!1,containsIcon:i=!1,className:a=void 0,isButton:o=void 0,href:s,...c},l)=>(o!==void 0&&TM("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),ok.createElement(AM,{as:s?`a`:`button`,href:s,...c,ref:l,isButton:!s||o===!0,onClick:n&&e?e=>OM(e,n):n,className:a},ok.createElement(kM,{withArrow:r,containsIcon:i},t,r&&ok.createElement(Fe,null))))),jM.displayName=`Link`,M.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}})),{global:MM}=__STORYBOOK_MODULE_GLOBAL__,{document:NM,window:PM}=MM,{deprecate:FM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,IM=Symbol.for(`react.lazy`),LM=lk.use,RM=fS(`Slot`),zM=Symbol(`radix.slottable`),mS(`Slottable`),BM=M.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)`})),VM=({note:e,...t})=>fk.createElement(BM,{...t},e),{deprecate:HM}=__STORYBOOK_MODULE_CLIENT_LOGGER__,Y=typeof document<`u`?mk.useLayoutEffect:()=>{},UM={prefix:String(Math.round(Math.random()*1e10)),current:0},WM=_k.createContext(UM),GM=_k.createContext(!1),typeof window<`u`&&window.document&&window.document.createElement,KM=new WeakMap,qM=typeof _k.useId==`function`?xS:bS,JM=!!(typeof window<`u`&&window.document&&window.document.createElement),YM=new Map,typeof FinalizationRegistry<`u`&&(XM=new FinalizationRegistry(e=>{YM.delete(e)})),X=e=>e?.ownerDocument??document,ZM=e=>e&&`window`in e&&e.window===e?e:X(e).defaultView||window,QM=!1,$M=(e=document)=>{var t;if(!MS())return e.activeElement;let n=e.activeElement;for(;n&&`shadowRoot`in n&&(t=n.shadowRoot)!=null&&t.activeElement;)n=n.shadowRoot.activeElement;return n},eN=class{get currentNode(){return this._currentNode}set currentNode(e){if(!NS(this.root,e))throw Error(`Cannot set currentNode to a node that is not contained by the root node.`);let t=[],n=e,r=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),n=r=e.host}else n=n.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=r,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return NS(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let n;if(typeof this.filter==`function`?n=this.filter(e):(t=this.filter)!=null&&t.acceptNode&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}else return null}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e))if(this._currentSetFor.delete(e),this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null;return null}let t=e.previousNode();if(t){if(t.shadowRoot){var n;let e;if(typeof this.filter==`function`?e=this.filter(t):(n=this.filter)!=null&&n.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let r=this.lastChild();return r&&(this.currentNode=r),r}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let n=e.shadowRoot;if(n){let e=this._doc.createTreeWalker(n,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}else{var t;if(typeof this.filter==`function`)return this.filter(e);if((t=this.filter)!=null&&t.acceptNode)return this.filter.acceptNode(e);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}},tN=LS,nN=new Set([`id`]),rN=new Set([`aria-label`,`aria-labelledby`,`aria-describedby`,`aria-details`]),iN=new Set([`href`,`hrefLang`,`target`,`rel`,`download`,`ping`,`referrerPolicy`]),aN=new Set([`dir`,`lang`,`hidden`,`inert`,`translate`]),oN=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`.split(`.`)),sN=/^(data-.*)$/,cN=null,lN=qS(function(){return KS(/^Mac/i)}),uN=qS(function(){return KS(/^iPhone/i)}),dN=qS(function(){return KS(/^iPad/i)||lN()&&navigator.maxTouchPoints>1}),fN=qS(function(){return uN()||dN()}),pN=qS(function(){return lN()||fN()}),mN=qS(function(){return GS(/AppleWebKit/i)&&!hN()}),hN=qS(function(){return GS(/Chrome/i)}),gN=qS(function(){return GS(/Android/i)}),_N=qS(function(){return GS(/Firefox/i)}),vN=(0,vk.createContext)({isNative:!0,open:QS,useHref:e=>e}),XS.isOpening=!1,yN=new Map,bN=new Set,typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,tC):tC()),xN=xk.useInsertionEffect??Y,SN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),typeof document<`u`&&window.visualViewport,CN=0,wN=new Map,TN=`react-aria-clear-focus`,EN=`react-aria-focus`,DN=typeof Element<`u`&&`checkVisibility`in Element.prototype,ON=[`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`],kN=ON.join(`:not([hidden]),`)+`,[tabindex]:not([disabled]):not([hidden])`,ON.push(`[tabindex]:not([tabindex="-1"]):not([disabled])`),AN=ON.join(`:not([hidden]):not([tabindex="-1"]),`),jN=typeof document<`u`?kk.useInsertionEffect??kk.useLayoutEffect:()=>{},MN=!1,NN=`default`,PN=``,FN=new WeakMap,IN=jk.createContext({register:()=>{}}),IN.displayName=`PressResponderContext`,LN=new WeakMap,RN=class{continuePropagation(){JC(this,LN,!1)}get shouldStopPropagation(){return WC(this,LN)}constructor(e,t,n,r){KC(this,LN,{writable:!0,value:void 0}),JC(this,LN,!0);let i=(r?.target??n.currentTarget)?.getBoundingClientRect(),a,o=0,s,c=null;n.clientX!=null&&n.clientY!=null&&(s=n.clientX,c=n.clientY),i&&(s!=null&&c!=null?(a=s-i.left,o=c-i.top):(a=i.width/2,o=i.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=a,this.y=o}},zN=Symbol(`linkClicked`),BN=`react-aria-pressable-style`,VN=`data-react-aria-pressable`,HN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),UN=null,WN=new Set,GN=new Map,KN=!1,qN=!1,JN={Tab:!0,Escape:!0},YN=(e,t)=>{let n=ZM(e),r=X(e);t&&r.removeEventListener(`DOMContentLoaded`,t),GN.has(n)&&(n.HTMLElement.prototype.focus=GN.get(n).focus,r.removeEventListener(`keydown`,aw,!0),r.removeEventListener(`keyup`,aw,!0),r.removeEventListener(`click`,sw,!0),n.removeEventListener(`focus`,cw,!0),n.removeEventListener(`blur`,lw,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,ow,!0),r.removeEventListener(`pointermove`,ow,!0),r.removeEventListener(`pointerup`,ow,!0)),GN.delete(n))},typeof document<`u`&&dw(),XN=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),ZN=Fk.createContext(null),QN=Fk.forwardRef(function(e,t){let{children:n,...r}=e,i=oC(t),a={...r,ref:i};return Fk.createElement(ZN.Provider,{value:a},n)}),$N=(0,Fk.forwardRef)(({children:e,...t},n)=>{n=oC(n);let{focusableProps:r}=Sw(t,n),i=Fk.Children.only(e);(0,Fk.useEffect)(()=>{},[n,t.isDisabled]);let a=i.props.ref;return Fk.cloneElement(i,{...V(r,i.props),ref:RS(a,n)})}),eP=Ik.forwardRef(({children:e,...t},n)=>{n=oC(n);let{pressProps:r}=XC({...t,ref:n}),{focusableProps:i}=Sw(t,n),a=Ik.Children.only(e);(0,Ik.useEffect)(()=>{},[n,t.isDisabled]);let o=a.props.ref;return Ik.cloneElement(a,{...V(r,i,a.props),ref:RS(o,n)})}),tP=Lk.forwardRef(({children:e,...t},n)=>{let r=(0,Lk.useRef)(!1),i=(0,Lk.useContext)(IN);n=oC(n||i?.ref);let a=V(i||{},{...t,ref:n,register(){r.current=!0,i&&i.register()}});return dC(i,n),(0,Lk.useEffect)(()=>{r.current||=!0},[]),Lk.createElement(IN.Provider,{value:a},e)}),nP=!1,rP=0,iP=500,aP=Symbol(`default`),oP=(0,Uk.createContext)({placement:`bottom`}),(0,Uk.forwardRef)(function(e,t){[e,t]=Fw(e,t,oP);let n=e.placement,r={position:`absolute`,transform:n===`top`||n===`bottom`?`translateX(-50%)`:`translateY(-50%)`};n!=null&&(r[n]=`100%`);let i=Nw({...e,defaultClassName:`react-aria-OverlayArrow`,values:{placement:n}});i.style&&Object.keys(i.style).forEach(e=>i.style[e]===void 0&&delete i.style[e]);let a=BS(e);return Uk.createElement(`div`,{...a,...i,style:{...r,...i.style},ref:t,"data-placement":n})}),sP={top:`top`,bottom:`top`,left:`left`,right:`left`},cP={top:`bottom`,bottom:`top`,left:`right`,right:`left`},lP={top:`left`,left:`top`},uP={top:`height`,left:`width`},dP={width:`totalWidth`,height:`totalHeight`},fP={},pP=typeof document<`u`?window.visualViewport:null,mP=new WeakMap,hP=new Set([`Arab`,`Syrc`,`Samr`,`Mand`,`Thaa`,`Mend`,`Nkoo`,`Adlm`,`Rohg`,`Hebr`]),gP=new Set([`ae`,`ar`,`arc`,`bcc`,`bqi`,`ckb`,`dv`,`fa`,`glk`,`he`,`ku`,`mzn`,`nqo`,`pnb`,`ps`,`sd`,`ug`,`ur`,`yi`]),_P=Symbol.for(`react-aria.i18n.locale`),vP=nT(),yP=new Set,bP=Jk.createContext(null),xP=function(e,t){return xP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},xP(e,t)},Z=function(){return Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Z.apply(this,arguments)},SP=function(){return JSON.stringify(arguments)},CP=(function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e})(),wP={create:function(){return new CP}},TP={variadic:hT,monadic:gT},(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`})(Q||={}),(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`})(EP||={}),(function(e){e[e.number=0]=`number`,e[e.dateTime=1]=`dateTime`})(DP||={}),OP=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,kP=/(?:[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,AP=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,jP=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,MP=/^(@+)?(\+|#+)?[rs]?$/g,NP=/(\*)(0+)|(#+)(0+)|(0+)/g,PP=/^(0+)$/,FP={"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`]},IP=RegExp(`^${OP.source}*`),LP=RegExp(`${OP.source}*\$`),RP=!!String.prototype.startsWith&&`_a`.startsWith(`a`,1),zP=!!String.fromCodePoint,BP=!!Object.fromEntries,VP=!!String.prototype.codePointAt,HP=!!String.prototype.trimStart,UP=!!String.prototype.trimEnd,WP=Number.isSafeInteger?Number.isSafeInteger:function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},GP=!0;try{KP=RT(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),GP=KP.exec(`a`)?.[0]===`a`}catch{GP=!1}qP=RP?(function(e,t,n){return e.startsWith(t,n)}):(function(e,t,n){return e.slice(n,n+t.length)===t}),JP=zP?String.fromCodePoint:(function(){for(var e=[...arguments],t=``,n=e.length,r=0,i;n>r;){if(i=e[r++],i>1114111)throw RangeError(i+` is not a valid code point`);t+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return t}),YP=BP?Object.fromEntries:(function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0];t[a]=i[1]}return t}),XP=VP?(function(e,t){return e.codePointAt(t)}):(function(e,t){var n=e.length;if(!(t<0||t>=n)){var r=e.charCodeAt(t),i;return r<55296||r>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?r:(r-55296<<10)+(i-56320)+65536}}),ZP=HP?(function(e){return e.trimStart()}):(function(e){return e.replace(IP,``)}),QP=UP?(function(e){return e.trimEnd()}):(function(e){return e.replace(LP,``)}),GP?(eF=RT(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),$P=function(e,t){return eF.lastIndex=t,eF.exec(e)[1]??``}):$P=function(e,t){for(var n=[];;){var r=XP(e,t);if(r===void 0||HT(r)||UT(r))break;n.push(r),t+=r>=65536?2:1}return JP.apply(void 0,n)},tF=(function(){function e(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.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(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else{if(i===125&&e>0)break;if(i===35&&(t===`plural`||t===`selectordinal`)){var o=this.clonePosition();this.bump(),r.push({type:EP.pound,location:H(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Q.UNMATCHED_CLOSING_TAG,H(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&zT(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:EP.literal,value:`<${r}/>`,location:H(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!zT(this.char()))return this.error(Q.INVALID_TAG,H(o,this.clonePosition()));var s=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:EP.tag,value:r,children:a,location:H(n,this.clonePosition())},err:null}:this.error(Q.INVALID_TAG,H(o,this.clonePosition()))):this.error(Q.UNMATCHED_CLOSING_TAG,H(s,this.clonePosition()))}else return this.error(Q.UNCLOSED_TAG,H(n,this.clonePosition()))}else return this.error(Q.INVALID_TAG,H(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&VT(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r=``;;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=H(n,this.clonePosition());return{val:{type:EP.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!BT(this.peek()||0))?(this.bump(),`<`):null},e.prototype.tryParseQuote=function(e){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(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(n);this.bump()}return JP.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),JP(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Q.EMPTY_ARGUMENT,H(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Q.MALFORMED_ARGUMENT,H(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:EP.argument,value:r,location:H(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(Q.MALFORMED_ARGUMENT,H(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=$P(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:H(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(Q.EXPECT_ARGUMENT_TYPE,H(i,o));case`number`:case`date`:case`time`:this.bumpSpace();var s=null;if(this.bumpIf(`,`)){this.bumpSpace();var c=this.clonePosition(),l=this.parseSimpleArgStyleIfPossible();if(l.err)return l;var u=QP(l.val);if(u.length===0)return this.error(Q.EXPECT_ARGUMENT_STYLE,H(this.clonePosition(),this.clonePosition()));s={style:u,styleLocation:H(c,this.clonePosition())}}var d=this.tryParseArgumentClose(r);if(d.err)return d;var f=H(r,this.clonePosition());if(s&&qP(s?.style,`::`,0)){var p=ZP(s.style.slice(2));if(a===`number`){var l=this.parseNumberSkeletonFromString(p,s.styleLocation);return l.err?l:{val:{type:EP.number,value:n,location:f,style:l.val},err:null}}else{if(p.length===0)return this.error(Q.EXPECT_DATE_TIME_SKELETON,f);var m=p;this.locale&&(m=IT(p,this.locale));var u={type:DP.dateTime,pattern:m,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?OT(m):{}};return{val:{type:a===`date`?EP.date:EP.time,value:n,location:f,style:u},err:null}}}return{val:{type:a===`number`?EP.number:a===`date`?EP.date:EP.time,value:n,location:f,style:s?.style??null},err:null};case`plural`:case`selectordinal`:case`select`:var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(Q.EXPECT_SELECT_ARGUMENT_OPTIONS,H(h,Z({},h)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),_=0;if(a!==`select`&&g.value===`offset`){if(!this.bumpIf(`:`))return this.error(Q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,H(this.clonePosition(),this.clonePosition()));this.bumpSpace();var l=this.tryParseDecimalInteger(Q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Q.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(l.err)return l;this.bumpSpace(),g=this.parseIdentifierIfPossible(),_=l.val}var v=this.tryParsePluralOrSelectOptions(e,a,t,g);if(v.err)return v;var d=this.tryParseArgumentClose(r);if(d.err)return d;var y=H(r,this.clonePosition());return a===`select`?{val:{type:EP.select,value:n,options:YP(v.val),location:y},err:null}:{val:{type:EP.plural,value:n,options:YP(v.val),offset:_,pluralType:a===`plural`?`cardinal`:`ordinal`,location:y},err:null};default:return this.error(Q.INVALID_ARGUMENT_TYPE,H(i,o))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,H(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(Q.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,H(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump();break}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=kT(e)}catch{return this.error(Q.INVALID_NUMBER_SKELETON,t)}return{val:{type:DP.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?FT(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,c=r.value,l=r.location;;){if(c.length===0){var u=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){var d=this.tryParseDecimalInteger(Q.EXPECT_PLURAL_ARGUMENT_SELECTOR,Q.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=H(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}else break}if(s.has(c))return this.error(t===`select`?Q.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Q.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c===`other`&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?Q.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Q.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,H(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;o.push([c,{value:p.val,location:H(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,l=i.location}return o.length===0?this.error(t===`select`?Q.EXPECT_SELECT_ARGUMENT_SELECTOR:Q.EXPECT_PLURAL_ARGUMENT_SELECTOR,H(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(Q.MISSING_OTHER_CLAUSE,H(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=a*10+(o-48),this.bump();else break}var s=H(r,this.clonePosition());return i?(a*=n,WP(a)?{val:a,err:null}:this.error(t,s)):this.error(e,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 e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);var t=XP(this.message,e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(qP(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&HT(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null},e})(),(function(e){e.MISSING_VALUE=`MISSING_VALUE`,e.INVALID_VALUE=`INVALID_VALUE`,e.MISSING_INTL_API=`MISSING_INTL_API`})(nF||={}),rF=(function(e){oT(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return t.prototype.toString=function(){return`[formatjs Error: ${this.code}] ${this.message}`},t})(Error),iF=(function(e){oT(t,e);function t(t,n,r,i){return e.call(this,`Invalid values for "${t}": "${n}". Options are "${Object.keys(r).join(`", "`)}"`,nF.INVALID_VALUE,i)||this}return t})(rF),aF=(function(e){oT(t,e);function t(t,n,r){return e.call(this,`Value for "${t}" must be of type ${n}`,nF.INVALID_VALUE,r)||this}return t})(rF),oF=(function(e){oT(t,e);function t(t,n){return e.call(this,`The intl string context variable "${t}" was not provided to the string "${n}"`,nF.MISSING_VALUE,n)||this}return t})(rF),(function(e){e[e.literal=0]=`literal`,e[e.object=1]=`object`})(sF||={}),(function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(t.length===1)return t[0].value;var n=t.reduce(function(e,t){return!e.length||t.type!==sF.literal||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e},[]);return n.length<=1?n[0]||``:n},this.formatToParts=function(e){return JT(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=i||{};o.formatters;var s=sT(o,[`formatters`]);this.ast=e.__parse(t,Z(Z({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=XT(e.formats,r),this.formatters=i&&i.formatters||QT(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(!(typeof Intl.Locale>`u`)){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}},e.__parse=GT,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})(),cF=Symbol.for(`react-aria.i18n.locale`),lF=Symbol.for(`react-aria.i18n.strings`),dF=class e{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=$T(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[cF];if(uF===void 0){let t=window[lF];if(!t)return null;uF={};for(let r in t)uF[r]=new e({[n]:t[r]},n)}let r=uF?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}},fF=new Map,pF=new Map,mF=class{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=fF.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),fF.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=pF.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),pF.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}constructor(e,t){this.locale=e,this.strings=t}},hF=new WeakMap,gF=1080,_F=24*gF,vF=29,yF=12*gF+793,vF*_F+yF,bF=new Map,xF=!1;try{xF=new Intl.NumberFormat(`de-DE`,{signDisplay:`exceptZero`}).resolvedOptions().signDisplay===`exceptZero`}catch{}SF=!1;try{SF=new Intl.NumberFormat(`de-DE`,{style:`unit`,unit:`degree`}).resolvedOptions().style===`unit`}catch{}if(CF={degree:{narrow:{default:`°`,"ja-JP":` 度`,"zh-TW":`度`,"sl-SI":` °`}}},wF=class{format(e){let t=``;if(t=!xF&&this.options.signDisplay!=null?aE(this.numberFormatter,this.options.signDisplay,e):this.numberFormatter.format(e),this.options.style===`unit`&&!SF){let{unit:e,unitDisplay:n=`short`,locale:r}=this.resolvedOptions();if(!e)return t;let i=CF[e]?.[n];t+=i[r]||i.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 RangeError(`End date must be >= start date`);return`${this.format(e)} \u2013 ${this.format(t)}`}formatRangeToParts(e,t){if(typeof this.numberFormatter.formatRangeToParts==`function`)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` – `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!xF&&this.options.signDisplay!=null&&(e={...e,signDisplay:this.options.signDisplay}),!SF&&this.options.style===`unit`&&(e={...e,style:`unit`,unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=iE(e,t),this.options=t}},TF=new Map,EF=typeof document<`u`?window.visualViewport:null,DF=Zk.createContext(null),OF=`react-aria-focus-scope-restore`,$=null,kF=class e{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new AF({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&vE(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new AF({scopeRef:null}),this.fastMap.set(null,this.root)}},AF=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}},jF=new kF,MF=[],NF=typeof document<`u`&&window.visualViewport,PF=0,IF=(0,nA.createContext)({}),LF=rA.createContext(null),RF={},RF={dismiss:`تجاهل`},zF={},zF={dismiss:`Отхвърляне`},BF={},BF={dismiss:`Odstranit`},VF={},VF={dismiss:`Luk`},HF={},HF={dismiss:`Schließen`},UF={},UF={dismiss:`Απόρριψη`},WF={},WF={dismiss:`Dismiss`},GF={},GF={dismiss:`Descartar`},KF={},KF={dismiss:`Lõpeta`},qF={},qF={dismiss:`Hylkää`},JF={},JF={dismiss:`Rejeter`},YF={},YF={dismiss:`התעלם`},XF={},XF={dismiss:`Odbaci`},ZF={},ZF={dismiss:`Elutasítás`},QF={},QF={dismiss:`Ignora`},$F={},$F={dismiss:`閉じる`},eI={},eI={dismiss:`무시`},tI={},tI={dismiss:`Atmesti`},nI={},nI={dismiss:`Nerādīt`},rI={},rI={dismiss:`Lukk`},iI={},iI={dismiss:`Negeren`},aI={},aI={dismiss:`Zignoruj`},oI={},oI={dismiss:`Descartar`},sI={},sI={dismiss:`Dispensar`},cI={},cI={dismiss:`Revocare`},lI={},lI={dismiss:`Пропустить`},uI={},uI={dismiss:`Zrušiť`},dI={},dI={dismiss:`Opusti`},fI={},fI={dismiss:`Odbaci`},pI={},pI={dismiss:`Avvisa`},mI={},mI={dismiss:`Kapat`},hI={},hI={dismiss:`Скасувати`},gI={},gI={dismiss:`取消`},_I={},_I={dismiss:`關閉`},vI={},vI={"ar-AE":RF,"bg-BG":zF,"cs-CZ":BF,"da-DK":VF,"de-DE":HF,"el-GR":UF,"en-US":WF,"es-ES":GF,"et-EE":KF,"fi-FI":qF,"fr-FR":JF,"he-IL":YF,"hr-HR":XF,"hu-HU":ZF,"it-IT":QF,"ja-JP":$F,"ko-KR":eI,"lt-LT":tI,"lv-LV":nI,"nb-NO":rI,"nl-NL":iI,"pl-PL":aI,"pt-BR":oI,"pt-PT":sI,"ro-RO":cI,"ru-RU":lI,"sk-SK":uI,"sl-SI":dI,"sr-SP":fI,"sv-SE":pI,"tr-TR":mI,"uk-UA":hI,"zh-CN":gI,"zh-TW":_I},yI={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`},bI=typeof HTMLElement<`u`&&`inert`in HTMLElement.prototype,xI=new WeakMap,SI=[],CI=cA.createContext(null),wI=1500,TI=500,EI={},DI=0,OI=!1,kI=null,AI=null,jI=(0,pA.createContext)(null),MI=(0,pA.createContext)(null),NI=(0,pA.forwardRef)(function({UNSTABLE_portalContainer:e,...t},n){[t,n]=Fw(t,n,MI);let r=(0,pA.useContext)(jI),i=dD(t),a=t.isOpen!=null||t.defaultOpen!=null||!r?i:r,o=EC(n,a.isOpen)||t.isExiting||!1;return!a.isOpen&&!o?null:pA.createElement($E,{portalContainer:e},pA.createElement(pD,{...t,tooltipRef:n,isExiting:o}))}),PI=m(fe(),1),FI=(0,PI.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(`-`,` `)),M.div({width:500,height:500,paddingTop:100,overflowY:`scroll`,background:`#eee`,position:`relative`}),II=(0,mA.forwardRef)((e,t)=>mA.createElement(`button`,{...e,ref:t,style:{width:120,height:50,margin:10}})),II.displayName=`Trigger`,LI=({triggerOnFocusOnly:e=!1,placement:t=`top`,offset:n=8,tooltip:r,children:i,defaultVisible:a,startOpen:o,delayShow:s=400,delayHide:c=200,visible:l,onVisibleChange:u,...d})=>{let f=FI(t),p=pk.Children.only(i);o!==void 0&&HM("The `startOpen` prop is deprecated. Please use `defaultVisible` instead.");let[m,h]=(0,pk.useState)(a??o??!1),g=(0,pk.useCallback)(e=>{h(e),u?.(e)},[u]);return pk.createElement(fD,{delay:s,closeDelay:c,isOpen:l??m,onOpenChange:g,trigger:e?`focus`:void 0,...d},pk.createElement($N,null,pk.cloneElement(p,{"aria-describedby":null})),pk.createElement(NI,{"data-testid":`tooltip`,placement:f,offset:n,onOpenChange:g,style:{outline:`none`},...d},r))},RI=({children:e,disableAllTooltips:t,shortcut:n,tooltip:r})=>{let i=(0,dk.useMemo)(()=>{let e=document?.body?.getAttribute(`data-shortcuts-enabled`)!==`false`;if(!(!r&&(!n||!e)))return[r,n&&e&&`[${eb(n)}]`].filter(Boolean).join(` `)},[n,r]);return i?dk.createElement(LI,{placement:`top`,tooltip:dk.createElement(VM,{note:i}),visible:!t&&void 0},e):dk.createElement(dk.Fragment,null,e)},RI.displayName=`InteractiveTooltipWrapper`,zI=(0,ck.forwardRef)(({as:e=`button`,asChild:t=!1,animation:n=`none`,size:r=`small`,appearance:i=`default`,variant:a=`outline`,padding:o=`medium`,disabled:s=!1,readOnly:c=!1,active:l,onClick:u,ariaLabel:d,ariaDescription:f=void 0,tooltip:p=void 0,shortcut:m=void 0,disableAllTooltips:h=!1,...g},_)=>{let v=t?RM:e,y;!c&&(d===void 0||d===``)&&(y=`ariaLabel`,FM(`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: ${g.children}.`)),l!==void 0&&(y=`active`,FM("The `active` prop on `Button` is deprecated and will be removed in Storybook 11. Use specialized components like `ToggleButton` or `Select` instead."));let{ariaDescriptionAttrs:b,AriaDescription:x}=mD(f),S=(0,ck.useMemo)(()=>m?tb(m):void 0,[m]),[C,w]=(0,ck.useState)(!1);return(0,ck.useEffect)(()=>{let e=setTimeout(()=>{C&&w(!1)},1e3);return()=>clearTimeout(e)},[C]),ck.createElement(ck.Fragment,null,ck.createElement(RI,{disableAllTooltips:h,shortcut:m,tooltip:p||(d===!1?void 0:d)},ck.createElement(BI,{"data-deprecated":y,as:v,ref:_,appearance:i,variant:a,size:r,padding:o,$disabled:s||c,"aria-disabled":s||c?`true`:void 0,readOnly:c,active:l,animating:C,animation:n,onClick:s||c?void 0:e=>{u&&u(e),n!==`none`&&w(!0)},"aria-label":!c&&d!==!1?d:void 0,"aria-keyshortcuts":c?void 0:S,...c?{}:b,...g})),ck.createElement(x,null))}),zI.displayName=`Button`,BI=M(`button`,{shouldForwardProp:e=>ae(e)})(({theme:e,appearance:t,variant:n,size:r,$disabled:i,readOnly:a,active:o,animating:s,animation:c=`none`,padding:l})=>{let u=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:a?`inherit`:i?`not-allowed`:`pointer`,display:`inline-flex`,gap:`6px`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,padding:l===`none`?0:l===`small`&&r===`small`?`0 7px`:l===`small`&&r===`medium`?`0 9px`:r===`small`?`0 10px`:r===`medium`?`0 12px`:0,height:r===`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:i&&!a?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:`1`,background:n===`solid`?e.base===`light`?u.foreground:de(.18,u.foreground):n===`outline`?u.background:n===`ghost`&&o?ue(.93,t===`agentic`?e.bgColor.agentic:e.barSelectedColor):`transparent`,color:n===`solid`?e.color.lightest:n===`outline`?t===`agentic`?e.fgColor.agentic:e.input.color:n===`ghost`&&o?e.base===`light`?de(.1,u.foreground):u.foreground:n===`ghost`?e.textMutedColor:e.input.color,boxShadow:n===`outline`?`${u.outline} 0 0 0 1px inset`:`none`,borderRadius:e.input.borderRadius,flexShrink:0,...!a&&{"&:hover":{color:n===`ghost`?u.foreground:void 0,background:(()=>{let t=u.foreground;return n===`solid`&&(t=e.base===`light`?A(.1,u.foreground):de(.3,u.foreground)),n===`outline`&&(t=u.background),n===`ghost`?ue(.86,u.foreground):e.base===`light`?de(.02,t):A(.03,t)})()},"&:active":{color:n===`ghost`?u.foreground:void 0,background:(()=>{let r=u.foreground;return n===`solid`&&(r=u.foreground),n===`outline`&&(r=u.background),n===`ghost`?t===`agentic`?e.bgColor.agentic:e.background.hoverable:e.base===`light`?de(.02,r):A(.03,r)})()},"&:focus-visible":{outline:`2px solid ${D(u.foreground,1)}`,outlineOffset:2,zIndex:`1`},".sb-bar &:focus-visible, .sb-list &:focus-visible":{outlineOffset:0}},"> svg":{flex:`0 0 auto`,animation:s&&c!==`none`?`${e.animation[c]} 1000ms ease-out`:``}}}),VI=(0,ck.forwardRef)((e,t)=>(FM("`IconButton` is deprecated and will be removed in Storybook 11, use `Button` instead."),ck.createElement(zI,{ref:t,...e,"data-deprecated":`IconButton`}))),VI.displayName=`IconButton`,HI=(0,gA.forwardRef)(({pressed:e,...t},n)=>gA.createElement(UI,{role:`switch`,"aria-checked":e,ref:n,pressed:e,...t})),HI.displayName=`ToggleButton`,UI=M(zI)(({theme:e,variant:t=`outline`,pressed:n})=>({...n?{...t===`solid`?{background:e.base===`lighten`?de(.1,e.color.secondary):de(.2,e.color.secondary)}:{},...t===`outline`?{background:ue(.94,e.barSelectedColor),boxShadow:`${e.barSelectedColor} 0 0 0 1px inset`,color:e.barSelectedColor}:{},...t===`ghost`?{background:ue(.93,e.barSelectedColor),color:e.base===`light`?de(.1,e.color.secondary):e.color.secondary}:{}}:{}})),WI=M.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`?de(.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:ue(.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`}}}),GI=M(WI)(({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}})),KI=M(zI)(({size:e})=>({gap:e===`small`?6:8,"&:focus-visible":{outlineOffset:-2}})),qI=M(HI)({"&:focus-visible":{outlineOffset:-2}}),JI=(0,sk.forwardRef)(function({padding:e=`small`,size:t=`medium`,variant:n=`ghost`,...r},i){return sk.createElement(KI,{...r,variant:n,padding:e,size:t,ref:i})}),YI=(0,sk.forwardRef)(function({padding:e=`small`,size:t=`medium`,variant:n=`ghost`,...r},i){return sk.createElement(qI,{...r,variant:n,padding:e,size:t,ref:i})}),XI=M(JI)(({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}})),ZI=e=>sk.createElement(XI,{as:`a`,...e}),QI=M.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}})),$I=M.div({display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`0 0 14px`,width:14,height:14,color:`var(--listbox-item-muted-color)`}),eL=Object.assign(M.ul(({theme:e,onClick:t})=>({listStyle:`none`,margin:0,padding:4,cursor:t?`pointer`:`default`,"& + *":{borderTop:`1px solid ${e.appBorderColor}`}})),{Item:WI,HoverItem:GI,Button:JI,Toggle:YI,Action:XI,Link:ZI,Text:QI,Icon:$I}),tL=M.div(({collapsed:e=!1})=>({blockSize:e?0:`auto`,contentVisibility:e?`hidden`:`visible`,transform:e?`translateY(-10px)`:`translateY(0)`,opacity:+!e,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:n,disabled:r,initialCollapsed:i,storageKey:a,state:o,...s}){let c=rL({collapsed:n,disabled:r,initialCollapsed:i,storageKey:a}),l=o||c;return _A.createElement(_A.Fragment,null,typeof t==`function`?t(l):t,_A.createElement(tL,{...s,id:l.contentId,collapsed:l.isCollapsed,"aria-hidden":l.isCollapsed},typeof e==`function`?e(l):e))},{Content:tL}),nL=(e,t)=>{let[n,r]=(0,_A.useState)(()=>{try{return JSON.parse(sessionStorage.getItem(e))??t}catch{return t}});return(0,_A.useEffect)(()=>{try{e&&sessionStorage.setItem(e,JSON.stringify(n))}catch{}},[e,n]),[n,r]},rL=({collapsed:e,disabled:t,initialCollapsed:n=e,storageKey:r})=>{let[i,a]=nL(r&&`useCollapsible:${r}`,!!n);(0,_A.useEffect)(()=>{e!==void 0&&a(e)},[e,a]);let o=(0,_A.useCallback)(e=>{e?.stopPropagation(),t||a(e=>!e)},[t,a]),s=ES();return{contentId:s,isCollapsed:i,isDisabled:!!t,setCollapsed:a,toggleCollapsed:o,toggleProps:{disabled:t,onClick:o,"aria-controls":s,"aria-expanded":!i}}},iL=(e,t)=>t&&t in e?e[t]:void 0,aL=(e,t)=>iL(e.fgColor,t)??iL(e.color,t),oL=(e,t,n)=>iL(e.borderColor,t)??iL(e.color,n),sL=(e,t)=>iL(e.bgColor,t)??e.background.content,cL=(e,t)=>{let n=sL(e,t);return`linear-gradient(${n}, ${n}), ${e.background.content}`},lL=se({"0%":{opacity:0},"5%":{opacity:1},"25%":{opacity:1},"30%":{opacity:0}}),uL=se({"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)`}}),dL=se({to:{backgroundPositionX:`36%`}}),fL=M.div(({color:e,theme:t})=>({color:aL(t,e),borderRadius:t.appBorderRadius,background:cL(t,e),position:`relative`})),pL=M.div(({animation:e=`none`,color:t,outlineColor:n=t,theme:r})=>({position:`relative`,width:`100%`,padding:1,overflow:`hidden`,backgroundColor:sL(r,t),borderRadius:r.appBorderRadius+1,boxShadow:`inset 0 0 0 1px ${e===`none`&&oL(r,t,n)||r.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:`${dL} 10s infinite linear, ${lL} 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:`${uL} 5s linear infinite`,backgroundImage:n===`negative`?`conic-gradient(transparent 90deg, #FC521F 150deg, #FFAE00 210deg, transparent 270deg)`:n===`agentic`?r.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((0,vA.forwardRef)(function({outlineAnimation:e=`none`,color:t,outlineColor:n,outlineAttrs:r={},...i},a){return vA.createElement(pL,{animation:e,color:t,outlineColor:n,ref:a,...r},vA.createElement(fL,{color:t,...i}))}),{Content:fL,Outline:pL}),{deprecate:mL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,hL=[`preEnter`,`entering`,`entered`,`preExit`,`exiting`,`exited`,`unmounted`],gL=e=>({_s:e,status:hL[e],isEnter:e<3,isMounted:e!==6,isResolved:e===2||e>4}),_L=e=>e?6:5,vL=(e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return _L(t)}},yL=e=>typeof e==`object`?[e.enter,e.exit]:[e,e],bL=(e,t)=>setTimeout(()=>{isNaN(document.body.offsetTop)||e(t+1)},0),xL=(e,t,n,r,i)=>{clearTimeout(r.current);let a=gL(e);t(a),n.current=a,i&&i({current:a})},SL=({enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:i,initialEntered:a,mountOnEnter:o,unmountOnExit:s,onStateChange:c}={})=>{let[l,u]=(0,bA.useState)(()=>gL(a?2:_L(o))),d=(0,bA.useRef)(l),f=(0,bA.useRef)(),[p,m]=yL(i),h=(0,bA.useCallback)(()=>{let e=vL(d.current._s,s);e&&xL(e,u,d,f,c)},[c,s]);return[l,(0,bA.useCallback)(i=>{let a=e=>{switch(xL(e,u,d,f,c),e){case 1:p>=0&&(f.current=setTimeout(h,p));break;case 4:m>=0&&(f.current=setTimeout(h,m));break;case 0:case 3:f.current=bL(a,e);break}},o=d.current.isEnter;typeof i!=`boolean`&&(i=!o),i?!o&&a(e?+!n:2):o&&a(t?r?3:4:_L(s))},[h,c,e,t,n,r,p,m,s]),h]},CL={},_(CL,{Actions:()=>qL,Close:()=>RL,CloseButton:()=>BL,Col:()=>UL,Container:()=>LL,Content:()=>VL,Description:()=>KL,Dialog:()=>zL,Error:()=>YL,ErrorWrapper:()=>JL,Header:()=>WL,Overlay:()=>IL,Row:()=>HL,Title:()=>GL}),{deprecate:wL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,(0,CA.createContext)(null),(0,CA.createContext)(null),(0,CA.createContext)(null),(0,CA.createContext)(null),(0,CA.createContext)(null),TL=(0,CA.createContext)({}),EL=(0,wA.forwardRef)(function(e,t){[e,t]=Fw(e,t,TL);let{children:n,level:r=3,className:i,...a}=e,o=`h${r}`;return wA.createElement(o,{...a,ref:t,className:i??`react-aria-Heading`},n)}),DL=(0,TA.createContext)({}),OL=(0,TA.forwardRef)(function(e,t){[e,t]=Fw(e,t,DL);let{elementType:n=`span`,...r}=e;return TA.createElement(n,{className:`react-aria-Text`,...r,ref:t})}),kL=se({from:{opacity:0},to:{opacity:1}}),AL=se({from:{opacity:1},to:{opacity:0}}),jL=se({from:{maxHeight:0},to:{}}),ML=se({from:{opacity:0,transform:`translate(-50%, -50%) scale(0.9)`},to:{opacity:1,transform:`translate(-50%, -50%) scale(1)`}}),NL=se({from:{opacity:1,transform:`translate(-50%, -50%) scale(1)`},to:{opacity:0,transform:`translate(-50%, -50%) scale(0.9)`}}),PL=se({from:{opacity:0,maxHeight:`0px`},to:{opacity:1,maxHeight:`80vh`}}),FL=se({from:{opacity:1,maxHeight:`80vh`},to:{opacity:0,maxHeight:`0px`}}),IL=M.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`?`${AL} ${t}ms`:`${kL} ${t}ms`,animationFillMode:`forwards`}})),LL=M.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:n,$variant:r,$status:i,$transitionDuration:a})=>r===`dialog`?{top:`50%`,left:`50%`,width:t??740,height:n??`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:i===`exiting`||i===`preExit`?`${NL} ${a}ms`:`${ML} ${a}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:n??`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:i===`exiting`||i===`preExit`?`${FL} ${a}ms`:`${PL} ${a}ms`,animationFillMode:`forwards !important`}}),RL=({asChild:e,children:t,onClick:n,...r})=>{let{close:i}=(0,SA.useContext)(XL);if(e&&SA.isValidElement(t)){let e=e=>{n?.(e),t.props.onClick?.(e),i?.()};return SA.cloneElement(t,{...r,onClick:e})}return SA.createElement(zI,{type:`button`,padding:`small`,ariaLabel:`Close modal`,variant:`ghost`,shortcut:[`Escape`],onClick:i},SA.createElement(De,null))},zL={Close:()=>(wL(`Modal.Dialog.Close is deprecated, please use Modal.Close instead.`),SA.createElement(RL,{"data-deprecated":`Modal.Dialog.Close`}))},BL=({ariaLabel:e,...t})=>(wL(`Modal.CloseButton is deprecated, please use Modal.Close instead.`),SA.createElement(RL,{asChild:!0},SA.createElement(zI,{ariaLabel:e||`Close`,"data-deprecated":`Modal.CloseButton`,...t},SA.createElement(De,null)))),VL=M.div({display:`flex`,flexDirection:`column`,margin:16,gap:16}),HL=M.div({display:`flex`,justifyContent:`space-between`,gap:16}),UL=M.div({display:`flex`,flexDirection:`column`,gap:4}),WL=({hasClose:e=!0,onClose:t,...n})=>SA.createElement(HL,null,SA.createElement(UL,{...n}),e&&SA.createElement(RL,{onClick:t})),GL=M(e=>SA.createElement(EL,{level:2,...e}))(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),KL=M(OL)(({theme:e})=>({position:`relative`,zIndex:1,margin:0,fontSize:e.typography.size.s2})),qL=M.div({display:`flex`,flexDirection:`row-reverse`,gap:8}),JL=M.div(({theme:e})=>({maxHeight:100,overflow:`auto`,"@media (prefers-reduced-motion: no-preference)":{animation:`${jL} 300ms, ${kL} 300ms`},backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:`relative`,padding:`8px 16px`}})),YL=({children:e,...t})=>SA.createElement(JL,{...t},SA.createElement(`div`,null,e)),XL=(0,yA.createContext)({}),Object.assign(gD,CL),M.div(({theme:e,col:t,row:n=1})=>t?{display:`inline-block`,verticalAlign:`inherit`,"& > *":{marginLeft:t*e.layoutMargin,verticalAlign:`inherit`},[`& > *:first-child${re}`]:{marginLeft:0}}:{"& > *":{marginTop:n*e.layoutMargin},[`& > *:first-child${re}`]:{marginTop:0}},({theme:e,outer:t,col:n,row:r})=>{switch(!0){case!!(t&&n):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&r):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),M.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),M.div(),M.div(({theme:e})=>({padding:30,textAlign:`center`,color:e.color.defaultText,fontSize:e.typography.size.s2-1})),ZL=M.div(({centered:e=!1,scale:t=1,elementHeight:n})=>({height:n||`auto`,transformOrigin:e?`center top`:`left top`,transform:`scale(${1/t})`})),QL=class extends OA.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:n}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),n!==e.active&&this.iframe.setAttribute(`data-is-storybook`,e.active?`true`:`false`),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${1/e*100}%`,height:`${1/e*100}%`,transform:`scale(${e})`,transformOrigin:`top left`})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${1/e*100}%`,height:`${1/e*100}%`,transform:`scale(${e})`,transformOrigin:`top left`})}render(){let{children:e}=this.props;return OA.createElement(OA.Fragment,null,e)}},$L={Element:bD,IFrame:QL},{global:eR}=__STORYBOOK_MODULE_GLOBAL__,{document:tR}=eR,nR=M.strong(({theme:e})=>({color:e.color.orange})),rR=M.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:`underline`})),iR=M.em(({theme:e})=>({color:e.textMutedColor})),aR=/(Error): (.*)\n/,oR=/at (?:(.*) )?\(?(.+)\)?/,sR=/([^@]+)?(?:\/<)?@(.+)?/,cR=/([^@]+)?@(.+)?/,lR=({error:e})=>{if(!e)return kA.createElement(kA.Fragment,null,`This error has no stack or message`);if(!e.stack)return kA.createElement(kA.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}
200
200
 
201
201
  ${t}`);let n=t.match(aR);if(!n)return kA.createElement(kA.Fragment,null,t);let[,r,i]=n,[,...a]=t.split(/\n/).slice(1).map(e=>{let t=e.match(oR)||e.match(sR)||e.match(cR);return t?{name:(t[1]||``).replace(`/<`,``),location:t[2].replace(tR.location.origin,``)}:null}).filter(Boolean);return kA.createElement(kA.Fragment,null,kA.createElement(`span`,null,r),`: `,kA.createElement(nR,null,i),kA.createElement(`br`,null),a.map((e,t)=>e?.name?kA.createElement(kA.Fragment,{key:t},` `,`at `,kA.createElement(rR,null,e.name),` (`,kA.createElement(iR,null,e.location),`)`,kA.createElement(`br`,null)):kA.createElement(kA.Fragment,{key:t},` `,`at `,kA.createElement(iR,null,e?.location),kA.createElement(`br`,null))))},uR=M.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`?oe.dark:e.color.mediumdark},"&:checked, &:indeterminate":{border:`none`,backgroundColor:oe.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}})),dR=e=>AA.createElement(uR,{...e,type:`checkbox`}),fR=M.label(({theme:e})=>({display:`flex`,borderBottom:`1px solid ${e.appBorderColor}`,margin:`0 15px`,padding:`8px 0`,"&:last-child":{marginBottom:`3rem`}})),pR=M.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,lineHeight:`16px`})),mR=({label:e,children:t,...n})=>jA.createElement(fR,{...n},e?jA.createElement(pR,null,jA.createElement(`span`,null,e)):null,t),hR=(({size:e})=>{switch(e){case`100%`:return{width:`100%`};case`flex`:return{flex:1};default:return{display:`inline`}}}),gR=(({align:e})=>{switch(e){case`end`:return{textAlign:`right`};case`center`:return{textAlign:`center`};default:return{textAlign:`left`}}}),_R=(({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{}}}),vR={appearance:`none`,border:`0 none`,boxSizing:`inherit`,display:`block`,margin:` 0`,background:`transparent`,padding:0,fontSize:`inherit`,position:`relative`},yR=(({theme:e})=>({...vR,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}})),bR=M.div({position:`relative`,width:`100%`}),xR=M.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:n,padding:r}=yR(e);return{fontSize:t,lineHeight:n,padding:r}}),SR=Object.assign(M((0,NA.forwardRef)(function({size:e,valid:t,align:n,value:r,suffix:i,...a},o){let s=ES();return MA.createElement(bR,null,MA.createElement(`input`,{...a,value:r,ref:o,"aria-describedby":i?s:void 0}),i&&MA.createElement(xR,{"aria-hidden":!0},MA.createElement(`span`,null,r),MA.createElement(`span`,{id:s},i)))}))(yR,hR,gR,_R,{minHeight:32,width:`100%`}),{displayName:`Input`}),CR=M.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`?oe.dark:e.color.mediumdark,borderColor:e.base===`dark`?oe.dark:e.color.mediumdark},"&:checked":{backgroundColor:oe.secondary,borderColor:oe.secondary,boxShadow:`inset 0 0 0 2px ${e.input.background}`},"&:enabled:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:2}})),wR=e=>PA.createElement(CR,{...e,type:`radio`}),TR=M.select(hR,({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`?te(e.background.app):e.background.app,filter:`
202
202
  drop-shadow(0 5px 5px rgba(0,0,0,0.05))
@@ -204,7 +204,7 @@ ${t}`);let n=t.match(aR);if(!n)return kA.createElement(kA.Fragment,null,t);let[,
204
204
  `,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}}})),ER=({children:e,...t})=>FA.createElement(TR,{...t},!_e()&&FA.createElement(`button`,null,FA.createElement(`selectedcontent`,null),FA.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`},FA.createElement(`path`,{d:`m6 9 6 6 6-6`}))),FA.createElement(`optgroup`,null,e)),DR=zA.useLayoutEffect,OR=function(e){var t=RA.useRef(e);return DR(function(){t.current=e}),t},kR=function(e,t){if(typeof e==`function`){e(t);return}e.current=t},AR=function(e,t){var n=BA.useRef();return BA.useCallback(function(r){e.current=r,n.current&&kR(n.current,null),n.current=t,t&&kR(t,r)},[t])},jR={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`},MR=function(e){Object.keys(jR).forEach(function(t){e.style.setProperty(t,jR[t],`important`)})},NR=MR,PR=null,FR=function(e,t){var n=e.scrollHeight;return t.sizingStyle.boxSizing===`border-box`?n+t.borderSize:n-t.paddingSize},IR=function(){},LR=function(e,t){return e.reduce(function(e,n){return e[n]=t[n],e},{})},RR=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],zR=!!document.documentElement.currentStyle,BR=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var n=LR(RR,t),r=n.boxSizing;return r===``?null:(zR&&r===`border-box`&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+`px`),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})},VR=BR,HR=function(e,t){SD(document.body,`reset`,function(n){e.current.form===n.target&&t(n)})},UR=function(e){SD(window,`resize`,e)},WR=function(e){SD(document.fonts,`loadingdone`,e)},GR=[`cacheMeasurements`,`maxRows`,`minRows`,`onChange`,`onHeightChange`],KR=function(e,t){var n=e.cacheMeasurements,r=e.maxRows,i=e.minRows,a=e.onChange,o=a===void 0?IR:a,s=e.onHeightChange,c=s===void 0?IR:s,l=ge(e,GR),u=l.value!==void 0,d=LA.useRef(null),f=AR(d,t),p=LA.useRef(0),m=LA.useRef(),h=function(){var e=d.current,t=n&&m.current?m.current:VR(e);if(t){m.current=t;var a=xD(t,e.value||e.placeholder||`x`,i,r),o=a[0],s=a[1];p.current!==o&&(p.current=o,e.style.setProperty(`height`,o+`px`,`important`),c(o,{rowHeight:s}))}};return LA.useLayoutEffect(h),HR(d,function(){if(!u){var e=d.current.value;requestAnimationFrame(function(){var t=d.current;t&&e!==t.value&&h()})}}),UR(h),WR(h),LA.createElement(`textarea`,le({},l,{onChange:function(e){u||h(),o(e)},ref:f}))},qR=LA.forwardRef(KR),JR=Object.assign(M((0,IA.forwardRef)(function({size:e,valid:t,align:n,...r},i){return IA.createElement(qR,{...r,ref:i})}))(yR,hR,gR,_R,({height:e=400})=>({overflow:`visible`,maxHeight:e})),{displayName:`Textarea`}),YR=Object.assign(M.form({boxSizing:`border-box`,width:`100%`}),{Field:mR,Input:SR,Select:ER,Textarea:JR,Button:zI,Checkbox:dR,Radio:wR}),XR=M.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:`
205
205
  drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
206
206
  drop-shadow(0 1px 3px rgba(0,0,0,0.1))
207
- `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base===`light`?te(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`]}),ZR=M(zI)({position:`absolute`,top:4,right:4}),QR=(0,VA.forwardRef)(({children:e,color:t=`default`,hasChrome:n=!0,hideLabel:r=`Close`,onHide:i,padding:a=8,...o},s)=>VA.createElement(XR,{bgColor:t,hasChrome:n,hasCloseButton:!!i,padding:a,ref:s,...o},e,i&&VA.createElement(ZR,{ariaLabel:r,onClick:i,padding:`small`,variant:`ghost`,size:`small`},VA.createElement(Ae,null)))),QR.displayName=`Popover`,$R=({id:e,title:t,description:n,icon:r,aside:i,children:a,isSelected:o,isActive:s,onClick:c,onFocus:l,onKeyDown:u,shouldLookDisabled:d=!1,...f})=>HA.createElement(eL.Item,{...f,id:e,role:`option`,tabIndex:s?0:-1,"aria-selected":o,"aria-disabled":d?!0:void 0,onClick:c,onFocus:l,onKeyDown:u},a??HA.createElement(HA.Fragment,null,r&&HA.createElement(eL.Icon,null,r),HA.createElement(eL.Text,null,HA.createElement(`p`,null,t),n&&HA.createElement(`small`,null,n)),i)),$R.displayName=`SelectOption`,ez=5,tz=Symbol.for(`undefined`),nz=M(`ul`)({minWidth:180,height:`100%`,borderRadius:6,overflow:`hidden auto`,listStyle:`none`,margin:0,padding:4}),rz=M.span(({theme:e})=>({appearance:`none`,color:e.textMutedColor,fontSize:12})),iz=M(zI)(({$isOpen:e,$hasSelection:t,theme:n})=>e||t?{boxShadow:`none`,background:ue(.93,n.barSelectedColor),color:n.base===`light`?de(.1,n.color.secondary):n.color.secondary}:{}),az=M.div({position:`fixed`,inset:0,zIndex:1e3}),oz=({children:e,handleClose:t,triggerRef:n})=>{let r=U.useRef(null);kw({ref:r,onInteractOutside:t}),(0,U.useEffect)(()=>{if(r.current)return iD([r.current],{shouldUseInert:!0})},[]);let{overlayProps:i}=cE({targetRef:n,overlayRef:r,placement:`bottom start`,offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:o}=zE({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},r),s=j();return i.style={...i.style,overflow:`hidden auto`,scrollbarColor:`${s.barTextColor} transparent`,scrollbarWidth:`thin`},U.createElement(sD,{disableFocusManagement:!0,...a},U.createElement(az,{...o}),U.createElement(QR,{hasChrome:!0,ref:r,padding:0,...i},e))},sz=(0,U.forwardRef)(({children:e,icon:t,disabled:n=!1,options:r,defaultOptions:i,multiSelect:a=!1,onReset:o,padding:s=`small`,resetLabel:c,onSelect:l,onDeselect:u,onChange:d,tooltip:f,ariaLabel:p,showSelectedOptionTitle:m=!0,...h},g)=>{let[_,v]=(0,U.useState)(h.defaultOpen||!1),[y,b]=(0,U.useState)(!1),x=oC(g),S=(0,U.useMemo)(()=>`select-`+Math.random().toString(36).substring(2,15),[]),C=`${S}-listbox`,w=(0,U.useRef)(null),T=uD({isOpen:_&&!n,onOpenChange:v}),E=(0,U.useCallback)(()=>{v(!1),b(!0)},[]);(0,U.useEffect)(()=>{!T.isOpen&&y&&(x.current?.ownerDocument?.defaultView&&x.current.focus(),b(!1))},[T.isOpen,y,x]);let[D,O]=(0,U.useState)(kD(r,i)),k=(0,U.useCallback)(e=>{e.type===`reset`?(d?.([]),o?.(),O([])):O(a?t=>{let n=[];return t?.some(t=>t.value===e.value)?(u?.(ED(e.value)),n=t?.filter(t=>t.value!==e.value)??[]):(l?.(ED(e.value)),n=[...t??[],e]),d?.(n.map(e=>ED(e.value))),n}:t=>t.every(t=>t.value!==e.value)?(l?.(ED(e.value)),d?.([ED(e.value)]),[e]):t)},[a,d,l,u,o]),ee=(0,U.useMemo)(()=>o?{type:`reset`,value:void 0,title:c??`Reset selection`,icon:U.createElement(He,null),description:void 0,children:void 0}:void 0,[o,c]),A=(0,U.useMemo)(()=>ee?[ee,...r]:r,[r,ee]);(0,U.useEffect)(()=>{i&&O(kD(r,i))},[i,r]);let[j,te]=(0,U.useState)(void 0),ne=(0,U.useCallback)((e,t=!0)=>{te(TD(e)),!a&&t&&k(TD(e))},[a,k]),re=(0,U.useCallback)((e=1)=>{if(!_||!j){ne(A[e===1?0:Math.min(e,A.length-1)]);return}let t=A.findIndex(e=>j.type===`reset`?`type`in e&&e.type===`reset`:DD(e.value)===j.value),n=t+e,r;r=n>=A.length&&t===A.length-1?A[0]:A[Math.min(A.length-1,n)],ne(r)},[_,j,ne,A]),ie=(0,U.useCallback)((e=1)=>{if(!_||!j){ne(A[Math.max(0,A.length-e)]);return}let t=A.findIndex(e=>j.type===`reset`?`type`in e&&e.type===`reset`:DD(e.value)===j.value),n=t-e,r;r=n<0&&t===0?A[A.length-1]:A[Math.max(0,n)],ne(r)},[_,j,ne,A]),ae=(0,U.useCallback)(e=>{let t=t=>{e.preventDefault(),ne(A[t]),v(!0)},n=A.findIndex(e=>D.some(t=>t.value===DD(e.value))),r=n!==-1,i=ee&&!r?1:0,a=A.length-1;e.key===`Enter`||e.key===` `?t(r?Math.min(n,a):i):e.key===`ArrowDown`?t(r?Math.min(n+1,a):i):e.key===`ArrowUp`?t(r?Math.max(n-1,i):a):e.key===`Home`?t(i):e.key===`End`?t(a):e.key===`PageDown`?t(Math.min((r?n:i)+ez,a)):e.key===`PageUp`&&t(Math.max(0,(r?n:a)-ez))},[A,ee,ne,D]),oe=(0,U.useCallback)(e=>{e.key===`Tab`?E():e.preventDefault(),e.key===`Escape`?E():e.key===`ArrowDown`?re():e.key===`ArrowUp`?ie():e.key===`Home`?ne(A[0]):e.key===`End`?ne(A[A.length-1]):e.key===`PageDown`?re(ez):e.key===`PageUp`&&ie(ez)},[E,re,ie,A,ne]);(0,U.useEffect)(()=>{if(_&&j){let e=document.getElementById(OD(S,j));e&&(e.scrollIntoView({block:`nearest`}),e.focus())}else _&&w.current?.focus()},[_,j,S]);let se=(0,U.useMemo)(()=>D.length===1?`${p} ${D[0].title}`:D.length?`${p}, ${D.length} values selected`:p,[p,D]);return U.createElement(U.Fragment,null,U.createElement(iz,{...h,variant:`ghost`,ariaLabel:se,tooltip:f??p,disableAllTooltips:_,id:S,ref:x,padding:s,$isOpen:_,$hasSelection:!!D.length,"aria-disabled":n,disabled:n,onClick:()=>{_?E():v(!0)},tabIndex:_?-1:0,onKeyDown:ae,role:`button`,"aria-controls":_?C:void 0,"aria-expanded":_,"aria-haspopup":`listbox`},!a&&U.createElement(U.Fragment,null,t,m&&D[0]?.title||e),a&&U.createElement(U.Fragment,null,t,e,!!D.length&&U.createElement(rz,{"aria-label":`${D.length} ${D.length>1?`items`:`item`} selected`},D?.length))),T.isOpen&&U.createElement(oz,{handleClose:E,triggerRef:x},U.createElement(nz,{"aria-label":p,role:`listbox`,id:C,ref:w,"aria-multiselectable":a,onKeyDown:oe,tabIndex:_?0:-1},A.map(e=>({option:TD(e),externalOption:e})).map(({externalOption:e,option:t})=>{let n=D?.some(e=>e.value===t.value)&&t!==ee,r=t===ee;return U.createElement($R,{key:t.value===void 0?`sb-reset`:String(t.value),title:t.title,description:t.description,aside:t.aside,icon:!r&&a?U.createElement(YR.Checkbox,{checked:n,hidden:!0,role:`presentation`}):t.icon,id:OD(S,t),isActive:_&&j?.value===t.value,isSelected:n,onClick:()=>{k(t),a||E()},onFocus:()=>ne(e,!1),shouldLookDisabled:r&&D.length===0&&a,onKeyDown:e=>{e.key===`Enter`||e.key===` `?(e.preventDefault(),k(t),a||E()):e.key===`Tab`&&(a||k(t),E())}},t.children)}))))}),sz.displayName=`Select`,{deprecate:cz}=__STORYBOOK_MODULE_CLIENT_LOGGER__,lz=class{get childNodes(){throw 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,n){let r=this.clone();return t.addDescendants(r,e),r}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}},uz=class extends lz{filter(e,t,n){let[r,i]=AD(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},dz=class extends lz{},dz.type=`header`,fz=class extends lz{},fz.type=`loader`,pz=class extends uz{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},pz.type=`item`,mz=class extends uz{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}},mz.type=`section`,hz=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}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);return t?.key??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?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw 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 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 n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw 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,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=AD(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}},gz=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(){return this.parentNode?.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??=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}},_z=class e extends gz{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,i,a,o,s;let c=this.nextVisibleSibling,l=this.getMutableNode();if(l!=null){l.index=this.index,l.level=this.level;var u;if(l.parentKey=this.parentNode instanceof e&&(u=this.parentNode.node?.key)!=null?u:null,l.prevKey=((n=this.previousVisibleSibling)==null||(t=n.node)==null?void 0:t.key)??null,l.nextKey=(c==null||(r=c.node)==null?void 0:r.key)??null,l.hasChildNodes=!!this.firstChild,l.firstChildKey=((a=this.firstVisibleChild)==null||(i=a.node)==null?void 0:i.key)??null,l.lastChildKey=((s=this.lastVisibleChild)==null||(o=s.node)==null?void 0:o.key)??null,(l.colSpan!=null||l.colIndex!=null)&&c){let e=(l.colIndex??l.index)+(l.colSpan??1);if(c.node!=null&&e!==c.node.colIndex){let t=c.getMutableNode();t.colIndex=e}}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},vz=class extends gz{get isConnected(){return this.isMounted}createElement(e){return new _z(e,this)}getMutableCollection(){return 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 t of e)this.addNode(t);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 e of this.dirtyNodes)e instanceof _z&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof _z&&(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,n,r;this.nextCollection.commit(((t=this.firstVisibleChild)==null||(e=t.node)==null?void 0:e.key)??null,((r=this.lastVisibleChild)==null||(n=r.node)==null?void 0:n.key)??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}},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)}})}yz=(0,GA.createContext)(!1),bz=(0,W.createContext)(!1),xz=(0,W.createContext)(null),Sz=typeof W.useSyncExternalStore==`function`?W.useSyncExternalStore:LD,Cz=(0,W.createContext)(null),wz=(0,W.createContext)(null),Tz=(0,JA.createContext)({}),ND(function(e,t){[e,t]=Fw(e,t,Tz);let{elementType:n=`label`,...r}=e;return JA.createElement(n,{className:`react-aria-Label`,...r,ref:t})}),Ez=(0,YA.createContext)(null),(0,YA.forwardRef)(function(e,t){[e,t]=Fw(e,t,Ez);let{value:n=0,minValue:r=0,maxValue:i=100,isIndeterminate:a=!1}=e;n=FC(n,r,i);let[o,s]=Iw(!e[`aria-label`]&&!e[`aria-labelledby`]),{progressBarProps:c,labelProps:l}=qD({...e,label:s}),u=a?void 0:(n-r)/(i-r)*100,d=Nw({...e,defaultClassName:`react-aria-ProgressBar`,values:{percentage:u,valueText:c[`aria-valuetext`],isIndeterminate:a}}),f=BS(e,{global:!0});return YA.createElement(`div`,{...V(f,d,c),ref:t,slot:e.slot||void 0},YA.createElement(Tz.Provider,{value:{...l,ref:o,elementType:`span`}},d.children))}),Dz=(0,XA.createContext)({}),ND(function(e,t){[e,t]=Fw(e,t,Dz),e=YD(e);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=JD(e,t),{focusProps:o,isFocused:s,isFocusVisible:c}=NE(e),{hoverProps:l,isHovered:u}=Ow({...e,isDisabled:e.isDisabled||r}),d={isHovered:u,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},f=Nw({...e,values:d,defaultClassName:`react-aria-Button`}),p=ES(i.id),m=ES(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,XA.useRef)(r);(0,XA.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&C(e,`assertive`),g.current=r},[r,s,h,p]);let _=BS(e,{global:!0});return delete _.onClick,XA.createElement(`button`,{...V(_,f,i,o,l),type:i.type===`submit`&&r?`button`:i.type,id:p,ref:t,"aria-labelledby":h,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":u||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},XA.createElement(Ez.Provider,{value:{id:m}},f.children))}),Oz=(0,ZA.createContext)(null),kz=(0,ZA.createContext)(null),Az=(0,ZA.forwardRef)(function(e,t){[e,t]=Fw(e,t,Oz);let n=(0,ZA.useContext)(uB),r=uD(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=EC(t,i.isOpen)||e.isExiting||!1,o=PD(),{direction:s}=aT();if(o){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),ZA.createElement(ZA.Fragment,null,t)}return i&&!i.isOpen&&!a?null:ZA.createElement(XD,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:a,dir:s})}),jz=(0,QA.createContext)(null),HD(`section`,(e,t,n)=>{let{name:r,render:i}=(0,QA.useContext)(jz);return i(e,t,n,`react-aria-Section`)}),Mz={CollectionRoot({collection:e,renderDropIndicator:t}){return ZD(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return ZD(e,t,n)}},Nz=(0,QA.createContext)(Mz),Pz=(0,$A.createContext)(null),Fz=(0,$A.createContext)(null),Iz=(0,ej.createContext)({}),VD(dz,function(e,t){return[e,t]=Fw(e,t,Iz),ej.createElement(`header`,{className:`react-aria-Header`,...e,ref:t},e.children)}),Lz=(0,tj.createContext)({}),(0,tj.forwardRef)(function(e,t){return[e,t]=Fw(e,t,Lz),tj.createElement(`kbd`,{dir:`ltr`,...e,ref:t})}),Rz=(0,nj.createContext)({}),zz=class extends lz{filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}},zz.type=`separator`,VD(zz,function(e,t){[e,t]=Fw(e,t,Rz);let{elementType:n,orientation:r,style:i,className:a,slot:o,...s}=e,c=n||`hr`;c===`hr`&&r===`vertical`&&(c=`div`);let{separatorProps:l}=eO({...s,elementType:n,orientation:r}),u=BS(e,{global:!0});return nj.createElement(c,{...V(u,l),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),Bz=new WeakMap,Vz=new WeakMap,Hz=1e3,Uz=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:nO(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}constructor(e){this.ref=e}},Wz=class{isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let n=e;for(;n!=null;){let e=this.collection.getItem(n);if(e?.type===`item`&&!this.isDisabled(e))return n;n=t(n)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}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,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e),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,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`):this.findKey(e,e=>this.getNextColumn(e,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,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`):this.findKey(e,e=>this.getNextColumn(e,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,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!fC(t))return this.getFirstKey();let r=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!fC(t))return this.getLastKey();let r=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}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 Uz(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 Uz(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}},pO.getCollectionNode=function*(e,t){let{childItems:n,title:r,children:i}=e,a=e.title||e.children,o=e.textValue||(typeof a==`string`?a:``)||e[`aria-label`]||``;!o&&t?.suppressTextValueWarning,yield{type:`item`,props:e,rendered:a,textValue:o,"aria-label":e[`aria-label`],hasChildNodes:mO(e),*childNodes(){if(n)for(let e of n)yield{type:`item`,value:e};else if(r){let e=[];cj.Children.forEach(i,t=>{e.push({type:`item`,element:t})}),yield*e}}}},Gz=pO,hO.getCollectionNode=function*(e){let{children:t,title:n,items:r}=e;yield{type:`section`,props:e,hasChildNodes:!0,rendered:n,"aria-label":e[`aria-label`],*childNodes(){if(typeof t==`function`){if(!r)throw Error(`props.children was a function but props.items is missing`);for(let e of r)yield{type:`item`,value:e,renderer:t}}else{let e=[];lj.Children.forEach(t,t=>{e.push({type:`item`,element:t})}),yield*e}}}},Kz=class{build(e,t){return this.context=t,gO(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(uj.isValidElement(t)&&t.type===uj.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t==`function`){if(!n)throw Error(`props.children was a function but props.items is missing`);let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];uj.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type===`cell`&&t.key!=null)return`${r}${t.key}`;let i=t.value;if(i!=null){let e=i.key??i.id;if(e==null)throw Error(`No key found for item`);return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(uj.isValidElement(e.element)&&e.element.type===uj.Fragment){let i=[];uj.Children.forEach(e.element.props.children,e=>{i.push(e)});let a=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=r?r.key:null,yield n;return}i=t.renderer(e.value)}if(uj.isValidElement(i)){let a=i.type;if(typeof a!=`function`&&typeof a.getCollectionNode!=`function`){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let o=a.getCollectionNode(i.props,this.context),s=e.index??0,c=o.next();for(;!c.done&&c.value;){let a=c.value;e.index=s;let l=a.key??null;l??=a.element?null:this.getKey(i,e,t,n);let u=[...this.getFullNode({...a,key:l,index:s,wrapper:_O(e.wrapper,a.wrapper)},this.getChildState(t,a),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=a.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${vO(t.type)}> in <${vO(r?.type??`unknown parent type`)}>. Only <${vO(e.type)}> is supported.`);s++,yield t}c=o.next(u)}return}if(e.key==null||e.type==null)return;let a=this,o={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue??``,"aria-label":e[`aria-label`],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:gO(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){r.key!=null&&(r.key=`${o.key}${r.key}`);let e=a.getFullNode({...r,index:n},a.getChildState(t,r),o.key,o);for(let t of e)n++,yield t}})};yield o}constructor(){this.cache=new WeakMap}},qz=new WeakMap,Jz=2,Yz=50,Xz=1e3,Zz=Math.PI/12,Qz=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 n;return t&&(n=t.prevKey)!=null?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&(n=t.nextKey)!=null?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??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||=new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&(e.type===`section`||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=i++),r=t,r.nextKey=void 0;this.lastKey=r?.key??null}},$z=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}},eB=class e{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}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 e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&CO(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&CO(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new $z([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new $z(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?CO(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if((n=this.layoutDelegate)!=null&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],i=e;for(;i!=null;){let e=this.collection.getItem(i);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&r.push(i),i===t)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new $z(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new $z([t],t,t):new $z;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new $z;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);r?.type===`item`&&e.push(n),r?.hasChildNodes&&(this.allowsCellSelection||r.type!==`item`)&&t(xO(bO(r,this.collection))?.key??null)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}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 $z)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||!(n==null||(t=n.props)==null)&&t.isDisabled||n.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){var t,n;return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))==null||(t=n.props)==null)&&t.isDisabled))}isLink(e){var t,n;return!!(!((n=this.collection.getItem(e))==null||(t=n.props)==null)&&t.href)}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}},tB=(0,G.createContext)(null),nB=(0,G.createContext)(null),rB=(0,G.createContext)(null),iB=(0,G.createContext)(null),aB=(0,G.createContext)(null),oB=class extends lz{filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},oB.type=`submenutrigger`,HD(oB,(e,t,n)=>{let{CollectionBranch:r}=(0,G.useContext)(Nz),i=(0,G.useContext)(nB),a=(0,G.useContext)(rB),o=jO({triggerKey:n.key},a),s=(0,G.useRef)(null),c=oC(t),{parentMenuRef:l,shouldUseVirtualFocus:u}=(0,G.useContext)(aB),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=kO({parentMenuRef:l,submenuRef:s,delay:e.delay,shouldUseVirtualFocus:u},o,c);return G.createElement(Mw,{values:[[cB,{...d,onAction:void 0,ref:c}],[tB,{ref:s,...f}],[uB,o],[Oz,{trigger:`SubmenuTrigger`,triggerRef:c,placement:`end top`,"aria-labelledby":f[`aria-labelledby`],...p}]]},G.createElement(r,{collection:i.collection,parent:n}),e.children[1])},e=>e.children[0]),(0,G.forwardRef)(function(e,t){return[e,t]=Fw(e,t,tB),G.createElement(FD,{content:G.createElement(WD,e)},n=>G.createElement(LO,{props:e,collection:n,menuRef:t}))}),sB=class extends eB{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}},HD(mz,RO),cB=(0,G.createContext)(null),VD(pz,function(e,t,n){[e,t]=Fw(e,t,cB);let r=Pw(cB)?.id,i=(0,G.useContext)(nB),a=oC(t),o=(0,G.useContext)(iB),{menuItemProps:s,labelProps:c,descriptionProps:l,keyboardShortcutProps:u,...d}=EO({...e,id:r,key:n.key,selectionManager:o},i,a),{hoverProps:f,isHovered:p}=Ow({isDisabled:d.isDisabled}),m=Nw({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuItem`,values:{...d,isHovered:p,isFocusVisible:d.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e[`aria-haspopup`],isOpen:e[`aria-expanded`]===`true`}}),h=e.href?`a`:`div`,g=BS(e,{global:!0});return delete g.id,delete g.onClick,G.createElement(h,{...V(g,m,s,f),ref:a,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-selected":d.isSelected||void 0,"data-selection-mode":o.selectionMode===`none`?void 0:o.selectionMode,"data-has-submenu":!!e[`aria-haspopup`]||void 0,"data-open":e[`aria-expanded`]===`true`||void 0},G.createElement(Mw,{values:[[DL,{slots:{[aP]:c,label:c,description:l}}],[Lz,u]]},m.children))}),lB=(0,bj.createContext)(null),uB=(0,bj.createContext)(null),(0,bj.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=Fw(e,t,lB);let{dialogProps:r,titleProps:i}=zO({...e,"aria-labelledby":n},t),a=(0,bj.useContext)(uB);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let o=Nw({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),s=BS(e,{global:!0});return bj.createElement(`section`,{...V(s,o,r),ref:t,slot:e.slot||void 0},bj.createElement(Mw,{values:[[TL,{slots:{[aP]:{},title:{...i,level:2}}}],[Dz,{slots:{[aP]:{},close:{onPress:()=>a?.close()}}}]]},o.children))}),dB=({ariaLabel:e,placement:t=`bottom-start`,hasChrome:n=!0,hasCloseButton:r=!1,closeLabel:i,offset:a=8,padding:o,popover:s,children:c,defaultVisible:l,visible:u,onVisibleChange:d,...f})=>{e||cz(`The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.`);let p=FI(t),[m,h]=(0,UA.useState)(l??!1),g=(0,UA.useCallback)(e=>{h(e),d?.(e)},[d]),_=(0,UA.useCallback)(()=>g(!1),[g]);return UA.createElement(BO,{defaultOpen:l,isOpen:u??m,onOpenChange:g,...f},UA.createElement(eP,null,(0,UA.cloneElement)(c,{"aria-haspopup":`dialog`})),UA.createElement(Az,{"aria-label":e,placement:p,offset:a,style:{outline:`none`}},UA.createElement(QR,{hasChrome:n,hideLabel:i,onHide:r?_:void 0,padding:o},typeof s==`function`?s({onHide:_}):s)))},fB=(0,xj.forwardRef)((e,t)=>xj.createElement(QR,{ref:t,...e})),fB.displayName=`Tooltip`,(0,Sj.lazy)(()=>a(()=>import(`./WithTooltip-7X4HQR7L-C5MI-3uZ.js`).then(e=>({default:e.WithTooltip})),__vite__mapDeps([11,1,2,3,0,4,8,9]),import.meta.url)),(0,Sj.lazy)(()=>a(()=>import(`./WithTooltip-7X4HQR7L-C5MI-3uZ.js`).then(e=>({default:e.WithTooltipPure})),__vite__mapDeps([11,1,2,3,0,4,8,9]),import.meta.url)),{deprecate:pB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,M.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),M.span(),M.div(({theme:e})=>({marginTop:8,textAlign:`center`,"> *":{margin:`0 8px`,fontWeight:e.typography.weight.bold}})),M.div(({theme:e})=>({color:e.color.defaultText,lineHeight:`18px`})),M.div({padding:15,width:280,boxSizing:`border-box`}),{deprecate:mB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,hB=m(fe(),1),{deprecate:gB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,_B=M(({active:e,loading:t,disabled:n,...r})=>wj.createElement(`span`,{...r}))(({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}:{}),vB=M.span({display:`flex`,"& svg":{height:12,width:12,margin:`3px 0`,verticalAlign:`top`}}),yB=M.span({flex:1,textAlign:`left`,display:`flex`,flexDirection:`column`,minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),bB=M.span(({theme:e})=>({fontSize:`11px`,lineHeight:`14px`}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),xB=M.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:`flex`,maxWidth:14})),SB=M.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:n})=>(t||n)&&{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`}),CB=(0,hB.default)(100)(({onClick:e,input:t,href:n,LinkWrapper:r})=>({...e&&{as:`button`,role:`button`,onClick:e},...t&&{as:`label`},...n&&{as:`a`,role:`link`,href:n,...r&&{as:r,to:n}}})),wB=(0,wj.forwardRef)((e,t)=>{let{loading:n=!1,title:r=wj.createElement(`span`,null,`Loading state`),center:i=null,right:a=null,active:o=!1,disabled:s=!1,isIndented:c=!1,href:l=void 0,onClick:u=void 0,icon:d,input:f,LinkWrapper:p=void 0,...m}=e,h={active:o,disabled:s},g=CB(e),_=d||f;return gB("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),wj.createElement(SB,{"data-deprecated":`ListItem`,ref:t,...m,...h,...g},wj.createElement(wj.Fragment,null,_&&wj.createElement(xB,{...h},_),r||i?wj.createElement(yB,{isIndented:c&&!_},r&&wj.createElement(_B,{...h,loading:n},r),i&&wj.createElement(bB,{...h},i)):null,a&&wj.createElement(vB,{...h},a)))}),wB.displayName=`ListItem`,TB=wB,EB=M.div({minWidth:180,overflow:`hidden`,overflowY:`auto`,maxHeight:504},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base===`dark`?{background:e.background.content}:{}),DB=M.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),OB=({id:e,onClick:t,...n})=>{let{active:r,disabled:i,title:a,href:o}=n,s=(0,Cj.useCallback)(n=>t?.(n,{id:e,active:r,disabled:i,title:a,href:o}),[t,e,r,i,a,o]);return Cj.createElement(TB,{id:`list-item-${e}`,...n,...t&&{onClick:s}})},kB=({links:e,LinkWrapper:t,...n})=>{mB("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let r=Array.isArray(e[0])?e:[e],i=r.some(e=>e.some(e=>`icon`in e&&e.icon||`input`in e&&e.input));return Cj.createElement(EB,{"data-deprecated":`TooltipLinkList`,...n,className:`sb-list`},r.filter(e=>e.length).map((e,n)=>Cj.createElement(DB,{key:e.map(e=>e.id).join(`~${n}~`)},e.map(e=>`content`in e?Cj.createElement(Cj.Fragment,{key:e.id},e.content):Cj.createElement(OB,{key:e.id,isIndented:i,LinkWrapper:t,...e})))))},{deprecate:AB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:jB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,MB=M.div(({backgroundColor:e,border:t=!1,innerStyle:n={},scrollable:r,theme:i})=>({color:i.barTextColor,width:`100%`,minHeight:40,flexShrink:0,scrollbarColor:`${i.barTextColor} ${t?e||i.barBg:`transparent`}`,scrollbarWidth:`thin`,overflow:r?`auto`:`hidden`,overflowY:`hidden`,display:`flex`,alignItems:`center`,gap:r?0:6,paddingInline:r?0:6,...t?{boxShadow:`${i.appBorderColor} 0 -1px 0 0 inset`,background:e||i.barBg}:{},...n})),NB=M.div(({innerStyle:e})=>({minHeight:40,display:`flex`,alignItems:`center`,width:`100%`,gap:6,paddingInline:6,...e})),PB=(0,Ej.forwardRef)(({scrollable:e=!0,children:t,innerStyle:n,...r},i)=>Ej.createElement(MB,{...r,ref:i,innerStyle:e?void 0:n,scrollable:e},e?Ej.createElement(NB,{innerStyle:n},t):t)),PB.displayName=`Bar`,FB=M.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}:{}),FB.displayName=`Side`,IB=M.div(({bgColor:e})=>({display:`flex`,justifyContent:`space-between`,position:`relative`,flexWrap:`nowrap`,flexShrink:0,height:40,width:`100%`,backgroundColor:e||``})),LB=M(PB)({paddingInline:0}),RB=({children:e,backgroundColor:t,className:n=``,...r})=>{jB(`FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.`);let[i,a]=Ej.Children.toArray(e);return Ej.createElement(LB,{"data-deprecated":`FlexBar`,backgroundColor:t,className:`sb-bar ${n}`,...r},Ej.createElement(IB,{bgColor:t},Ej.createElement(FB,{scrollable:r.scrollable,left:!0},i),a?Ej.createElement(FB,{right:!0},a):null))},RB.displayName=`FlexBar`,{deprecate:zB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,BB=e=>typeof e.props.href==`string`,VB=e=>typeof e.props.href!=`string`,HB=(0,Dj.forwardRef)(VO),HB.displayName=`ButtonOrLink`,UB=M(HB,{shouldForwardProp:ae})({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:n})=>e?{color:t||n.barSelectedColor,borderBottomColor:n.barSelectedColor}:{color:t||n.barTextColor,borderBottomColor:`transparent`,"&:hover":{color:n.barHoverColor}}),WB=(0,Dj.forwardRef)((e,t)=>(zB("The `TabButton` component is deprecated. Use `TabList` instead."),Dj.createElement(UB,{"data-deprecated":`TabButton`,ref:t,...e}))),WB.displayName=`TabButton`,GB=M.div(({theme:e})=>({height:`100%`,display:`flex`,padding:30,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:15,background:e.background.content})),KB=M.div({display:`flex`,flexDirection:`column`,gap:4,maxWidth:415}),qB=M.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.color.defaultText})),JB=M.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),YB=M.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.textMutedColor})),XB=({title:e,description:t,footer:n})=>Oj.createElement(GB,null,Oj.createElement(KB,null,Oj.createElement(qB,null,e),t&&Oj.createElement(YB,null,t)),n&&Oj.createElement(JB,null,n)),{deprecate:ZB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,QB=M.div(({active:e})=>e?{display:`block`}:{display:`none`}),$B=e=>(ZB("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),kj.Children.toArray(e).map(({props:{title:e,id:t,color:n,children:r}})=>{let i=Array.isArray(r)?r[0]:r;return{title:e,id:t,...n?{color:n}:{},render:typeof i==`function`?i:({active:e})=>kj.createElement(QB,{active:e,role:`tabpanel`},i)}})),{deprecate:eV}=__STORYBOOK_MODULE_CLIENT_LOGGER__,tV=M.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`})),nV=M(WB)(({active:e,theme:t,preActive:n})=>`
207
+ `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base===`light`?te(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`]}),ZR=M(zI)({position:`absolute`,top:4,right:4}),QR=(0,VA.forwardRef)(({children:e,color:t=`default`,hasChrome:n=!0,hideLabel:r=`Close`,onHide:i,padding:a=8,...o},s)=>VA.createElement(XR,{bgColor:t,hasChrome:n,hasCloseButton:!!i,padding:a,ref:s,...o},e,i&&VA.createElement(ZR,{ariaLabel:r,onClick:i,padding:`small`,variant:`ghost`,size:`small`},VA.createElement(Ae,null)))),QR.displayName=`Popover`,$R=({id:e,title:t,description:n,icon:r,aside:i,children:a,isSelected:o,isActive:s,onClick:c,onFocus:l,onKeyDown:u,shouldLookDisabled:d=!1,...f})=>HA.createElement(eL.Item,{...f,id:e,role:`option`,tabIndex:s?0:-1,"aria-selected":o,"aria-disabled":d?!0:void 0,onClick:c,onFocus:l,onKeyDown:u},a??HA.createElement(HA.Fragment,null,r&&HA.createElement(eL.Icon,null,r),HA.createElement(eL.Text,null,HA.createElement(`p`,null,t),n&&HA.createElement(`small`,null,n)),i)),$R.displayName=`SelectOption`,ez=5,tz=Symbol.for(`undefined`),nz=M(`ul`)({minWidth:180,height:`100%`,borderRadius:6,overflow:`hidden auto`,listStyle:`none`,margin:0,padding:4}),rz=M.span(({theme:e})=>({appearance:`none`,color:e.textMutedColor,fontSize:12})),iz=M(zI)(({$isOpen:e,$hasSelection:t,theme:n})=>e||t?{boxShadow:`none`,background:ue(.93,n.barSelectedColor),color:n.base===`light`?de(.1,n.color.secondary):n.color.secondary}:{}),az=M.div({position:`fixed`,inset:0,zIndex:1e3}),oz=({children:e,handleClose:t,triggerRef:n})=>{let r=U.useRef(null);kw({ref:r,onInteractOutside:t}),(0,U.useEffect)(()=>{if(r.current)return iD([r.current],{shouldUseInert:!0})},[]);let{overlayProps:i}=cE({targetRef:n,overlayRef:r,placement:`bottom start`,offset:8,maxHeight:504,isOpen:!0}),{overlayProps:a,underlayProps:o}=zE({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},r),s=j();return i.style={...i.style,overflow:`hidden auto`,scrollbarColor:`${s.barTextColor} transparent`,scrollbarWidth:`thin`},U.createElement(sD,{disableFocusManagement:!0,...a},U.createElement(az,{...o}),U.createElement(QR,{hasChrome:!0,ref:r,padding:0,...i},e))},sz=(0,U.forwardRef)(({children:e,icon:t,disabled:n=!1,options:r,defaultOptions:i,multiSelect:a=!1,onReset:o,padding:s=`small`,resetLabel:c,onSelect:l,onDeselect:u,onChange:d,tooltip:f,ariaLabel:p,showSelectedOptionTitle:m=!0,...h},g)=>{let[_,v]=(0,U.useState)(h.defaultOpen||!1),[y,b]=(0,U.useState)(!1),x=oC(g),S=(0,U.useMemo)(()=>`select-`+Math.random().toString(36).substring(2,15),[]),C=`${S}-listbox`,w=(0,U.useRef)(null),T=uD({isOpen:_&&!n,onOpenChange:v}),E=(0,U.useCallback)(()=>{v(!1),b(!0)},[]);(0,U.useEffect)(()=>{!T.isOpen&&y&&(x.current?.ownerDocument?.defaultView&&x.current.focus(),b(!1))},[T.isOpen,y,x]);let[D,O]=(0,U.useState)(kD(r,i)),k=(0,U.useCallback)(e=>{e.type===`reset`?(d?.([]),o?.(),O([])):O(a?t=>{let n=[];return t?.some(t=>t.value===e.value)?(u?.(ED(e.value)),n=t?.filter(t=>t.value!==e.value)??[]):(l?.(ED(e.value)),n=[...t??[],e]),d?.(n.map(e=>ED(e.value))),n}:t=>t.every(t=>t.value!==e.value)?(l?.(ED(e.value)),d?.([ED(e.value)]),[e]):t)},[a,d,l,u,o]),ee=(0,U.useMemo)(()=>o?{type:`reset`,value:void 0,title:c??`Reset selection`,icon:U.createElement(He,null),description:void 0,children:void 0}:void 0,[o,c]),A=(0,U.useMemo)(()=>ee?[ee,...r]:r,[r,ee]);(0,U.useEffect)(()=>{i&&O(kD(r,i))},[i,r]);let[j,te]=(0,U.useState)(void 0),ne=(0,U.useCallback)((e,t=!0)=>{te(TD(e)),!a&&t&&k(TD(e))},[a,k]),re=(0,U.useCallback)((e=1)=>{if(!_||!j){ne(A[e===1?0:Math.min(e,A.length-1)]);return}let t=A.findIndex(e=>j.type===`reset`?`type`in e&&e.type===`reset`:DD(e.value)===j.value),n=t+e,r;r=n>=A.length&&t===A.length-1?A[0]:A[Math.min(A.length-1,n)],ne(r)},[_,j,ne,A]),ie=(0,U.useCallback)((e=1)=>{if(!_||!j){ne(A[Math.max(0,A.length-e)]);return}let t=A.findIndex(e=>j.type===`reset`?`type`in e&&e.type===`reset`:DD(e.value)===j.value),n=t-e,r;r=n<0&&t===0?A[A.length-1]:A[Math.max(0,n)],ne(r)},[_,j,ne,A]),ae=(0,U.useCallback)(e=>{let t=t=>{e.preventDefault(),ne(A[t]),v(!0)},n=A.findIndex(e=>D.some(t=>t.value===DD(e.value))),r=n!==-1,i=ee&&!r?1:0,a=A.length-1;e.key===`Enter`||e.key===` `?t(r?Math.min(n,a):i):e.key===`ArrowDown`?t(r?Math.min(n+1,a):i):e.key===`ArrowUp`?t(r?Math.max(n-1,i):a):e.key===`Home`?t(i):e.key===`End`?t(a):e.key===`PageDown`?t(Math.min((r?n:i)+ez,a)):e.key===`PageUp`&&t(Math.max(0,(r?n:a)-ez))},[A,ee,ne,D]),oe=(0,U.useCallback)(e=>{e.key===`Tab`?E():e.preventDefault(),e.key===`Escape`?E():e.key===`ArrowDown`?re():e.key===`ArrowUp`?ie():e.key===`Home`?ne(A[0]):e.key===`End`?ne(A[A.length-1]):e.key===`PageDown`?re(ez):e.key===`PageUp`&&ie(ez)},[E,re,ie,A,ne]);(0,U.useEffect)(()=>{if(_&&j){let e=document.getElementById(OD(S,j));e&&(e.scrollIntoView({block:`nearest`}),e.focus())}else _&&w.current?.focus()},[_,j,S]);let se=(0,U.useMemo)(()=>D.length===1?`${p} ${D[0].title}`:D.length?`${p}, ${D.length} values selected`:p,[p,D]);return U.createElement(U.Fragment,null,U.createElement(iz,{...h,variant:`ghost`,ariaLabel:se,tooltip:f??p,disableAllTooltips:_,id:S,ref:x,padding:s,$isOpen:_,$hasSelection:!!D.length,"aria-disabled":n,disabled:n,onClick:()=>{_?E():v(!0)},tabIndex:_?-1:0,onKeyDown:ae,role:`button`,"aria-controls":_?C:void 0,"aria-expanded":_,"aria-haspopup":`listbox`},!a&&U.createElement(U.Fragment,null,t,m&&D[0]?.title||e),a&&U.createElement(U.Fragment,null,t,e,!!D.length&&U.createElement(rz,{"aria-label":`${D.length} ${D.length>1?`items`:`item`} selected`},D?.length))),T.isOpen&&U.createElement(oz,{handleClose:E,triggerRef:x},U.createElement(nz,{"aria-label":p,role:`listbox`,id:C,ref:w,"aria-multiselectable":a,onKeyDown:oe,tabIndex:_?0:-1},A.map(e=>({option:TD(e),externalOption:e})).map(({externalOption:e,option:t})=>{let n=D?.some(e=>e.value===t.value)&&t!==ee,r=t===ee;return U.createElement($R,{key:t.value===void 0?`sb-reset`:String(t.value),title:t.title,description:t.description,aside:t.aside,icon:!r&&a?U.createElement(YR.Checkbox,{checked:n,hidden:!0,role:`presentation`}):t.icon,id:OD(S,t),isActive:_&&j?.value===t.value,isSelected:n,onClick:()=>{k(t),a||E()},onFocus:()=>ne(e,!1),shouldLookDisabled:r&&D.length===0&&a,onKeyDown:e=>{e.key===`Enter`||e.key===` `?(e.preventDefault(),k(t),a||E()):e.key===`Tab`&&(a||k(t),E())}},t.children)}))))}),sz.displayName=`Select`,{deprecate:cz}=__STORYBOOK_MODULE_CLIENT_LOGGER__,lz=class{get childNodes(){throw 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,n){let r=this.clone();return t.addDescendants(r,e),r}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}},uz=class extends lz{filter(e,t,n){let[r,i]=AD(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},dz=class extends lz{},dz.type=`header`,fz=class extends lz{},fz.type=`loader`,pz=class extends uz{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},pz.type=`item`,mz=class extends uz{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}},mz.type=`section`,hz=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}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);return t?.key??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?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw 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 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 n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw 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,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=AD(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}},gz=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(){return this.parentNode?.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??=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}},_z=class e extends gz{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,n,r,i,a,o,s;let c=this.nextVisibleSibling,l=this.getMutableNode();if(l!=null){l.index=this.index,l.level=this.level;var u;if(l.parentKey=this.parentNode instanceof e&&(u=this.parentNode.node?.key)!=null?u:null,l.prevKey=((n=this.previousVisibleSibling)==null||(t=n.node)==null?void 0:t.key)??null,l.nextKey=(c==null||(r=c.node)==null?void 0:r.key)??null,l.hasChildNodes=!!this.firstChild,l.firstChildKey=((a=this.firstVisibleChild)==null||(i=a.node)==null?void 0:i.key)??null,l.lastChildKey=((s=this.lastVisibleChild)==null||(o=s.node)==null?void 0:o.key)??null,(l.colSpan!=null||l.colIndex!=null)&&c){let e=(l.colIndex??l.index)+(l.colSpan??1);if(c.node!=null&&e!==c.node.colIndex){let t=c.getMutableNode();t.colIndex=e}}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},vz=class extends gz{get isConnected(){return this.isMounted}createElement(e){return new _z(e,this)}getMutableCollection(){return 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 t of e)this.addNode(t);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 e of this.dirtyNodes)e instanceof _z&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof _z&&(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,n,r;this.nextCollection.commit(((t=this.firstVisibleChild)==null||(e=t.node)==null?void 0:e.key)??null,((r=this.lastVisibleChild)==null||(n=r.node)==null?void 0:n.key)??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}},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)}})}yz=(0,GA.createContext)(!1),bz=(0,W.createContext)(!1),xz=(0,W.createContext)(null),Sz=typeof W.useSyncExternalStore==`function`?W.useSyncExternalStore:LD,Cz=(0,W.createContext)(null),wz=(0,W.createContext)(null),Tz=(0,JA.createContext)({}),ND(function(e,t){[e,t]=Fw(e,t,Tz);let{elementType:n=`label`,...r}=e;return JA.createElement(n,{className:`react-aria-Label`,...r,ref:t})}),Ez=(0,YA.createContext)(null),(0,YA.forwardRef)(function(e,t){[e,t]=Fw(e,t,Ez);let{value:n=0,minValue:r=0,maxValue:i=100,isIndeterminate:a=!1}=e;n=FC(n,r,i);let[o,s]=Iw(!e[`aria-label`]&&!e[`aria-labelledby`]),{progressBarProps:c,labelProps:l}=qD({...e,label:s}),u=a?void 0:(n-r)/(i-r)*100,d=Nw({...e,defaultClassName:`react-aria-ProgressBar`,values:{percentage:u,valueText:c[`aria-valuetext`],isIndeterminate:a}}),f=BS(e,{global:!0});return YA.createElement(`div`,{...V(f,d,c),ref:t,slot:e.slot||void 0},YA.createElement(Tz.Provider,{value:{...l,ref:o,elementType:`span`}},d.children))}),Dz=(0,XA.createContext)({}),ND(function(e,t){[e,t]=Fw(e,t,Dz),e=YD(e);let n=e,{isPending:r}=n,{buttonProps:i,isPressed:a}=JD(e,t),{focusProps:o,isFocused:s,isFocusVisible:c}=NE(e),{hoverProps:l,isHovered:u}=Ow({...e,isDisabled:e.isDisabled||r}),d={isHovered:u,isPressed:(n.isPressed||a)&&!r,isFocused:s,isFocusVisible:c,isDisabled:e.isDisabled||!1,isPending:r??!1},f=Nw({...e,values:d,defaultClassName:`react-aria-Button`}),p=ES(i.id),m=ES(),h=i[`aria-labelledby`];r&&(h?h=`${h} ${m}`:i[`aria-label`]&&(h=`${p} ${m}`));let g=(0,XA.useRef)(r);(0,XA.useEffect)(()=>{let e={"aria-labelledby":h||p};(!g.current&&s&&r||g.current&&s&&!r)&&C(e,`assertive`),g.current=r},[r,s,h,p]);let _=BS(e,{global:!0});return delete _.onClick,XA.createElement(`button`,{...V(_,f,i,o,l),type:i.type===`submit`&&r?`button`:i.type,id:p,ref:t,"aria-labelledby":h,slot:e.slot||void 0,"aria-disabled":r?`true`:i[`aria-disabled`],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":u||void 0,"data-focused":s||void 0,"data-pending":r||void 0,"data-focus-visible":c||void 0},XA.createElement(Ez.Provider,{value:{id:m}},f.children))}),Oz=(0,ZA.createContext)(null),kz=(0,ZA.createContext)(null),Az=(0,ZA.forwardRef)(function(e,t){[e,t]=Fw(e,t,Oz);let n=(0,ZA.useContext)(uB),r=uD(e),i=e.isOpen!=null||e.defaultOpen!=null||!n?r:n,a=EC(t,i.isOpen)||e.isExiting||!1,o=PD(),{direction:s}=aT();if(o){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),ZA.createElement(ZA.Fragment,null,t)}return i&&!i.isOpen&&!a?null:ZA.createElement(XD,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:a,dir:s})}),jz=(0,QA.createContext)(null),HD(`section`,(e,t,n)=>{let{name:r,render:i}=(0,QA.useContext)(jz);return i(e,t,n,`react-aria-Section`)}),Mz={CollectionRoot({collection:e,renderDropIndicator:t}){return ZD(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return ZD(e,t,n)}},Nz=(0,QA.createContext)(Mz),Pz=(0,$A.createContext)(null),Fz=(0,$A.createContext)(null),Iz=(0,ej.createContext)({}),VD(dz,function(e,t){return[e,t]=Fw(e,t,Iz),ej.createElement(`header`,{className:`react-aria-Header`,...e,ref:t},e.children)}),Lz=(0,tj.createContext)({}),(0,tj.forwardRef)(function(e,t){return[e,t]=Fw(e,t,Lz),tj.createElement(`kbd`,{dir:`ltr`,...e,ref:t})}),Rz=(0,nj.createContext)({}),zz=class extends lz{filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}},zz.type=`separator`,VD(zz,function(e,t){[e,t]=Fw(e,t,Rz);let{elementType:n,orientation:r,style:i,className:a,slot:o,...s}=e,c=n||`hr`;c===`hr`&&r===`vertical`&&(c=`div`);let{separatorProps:l}=eO({...s,elementType:n,orientation:r}),u=BS(e,{global:!0});return nj.createElement(c,{...V(u,l),style:i,className:a??`react-aria-Separator`,ref:t,slot:o||void 0})}),Bz=new WeakMap,Vz=new WeakMap,Hz=1e3,Uz=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let n=e==null?null:nO(this.ref,e);if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}constructor(e){this.ref=e}},Wz=class{isDisabled(e){return this.disabledBehavior===`all`&&(e.props?.isDisabled||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let n=e;for(;n!=null;){let e=this.collection.getItem(n);if(e?.type===`item`&&!this.isDisabled(e))return n;n=t(n)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||r==null)return null;let a=i;do{if(r=t(r),r==null)break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(a,i)&&r!=null);return r}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,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout===`grid`&&this.orientation===`vertical`?this.findKey(e,e=>this.getPreviousKey(e),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,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`rtl`):this.findKey(e,e=>this.getNextColumn(e,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,e=>this.layoutDelegate[t](e))):this.layout===`grid`?this.orientation===`vertical`?this.getNextColumn(e,this.direction===`ltr`):this.findKey(e,e=>this.getNextColumn(e,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,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!fC(t))return this.getFirstKey();let r=e;if(this.orientation===`horizontal`){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>e&&r!=null;)r=this.getKeyAbove(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!fC(t))return this.getLastKey();let r=e;if(this.orientation===`horizontal`){let e=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&r!=null;)r=this.getKeyBelow(r),n=r==null?null:this.layoutDelegate.getItemRect(r)}return r??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;r!=null;){let t=n.getItem(r);if(!t)return null;let i=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(i,e)===0)return r;r=this.getNextKey(r)}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 Uz(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 Uz(this.ref);this.layout===`stack`&&this.orientation===`vertical`&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}},pO.getCollectionNode=function*(e,t){let{childItems:n,title:r,children:i}=e,a=e.title||e.children,o=e.textValue||(typeof a==`string`?a:``)||e[`aria-label`]||``;!o&&t?.suppressTextValueWarning,yield{type:`item`,props:e,rendered:a,textValue:o,"aria-label":e[`aria-label`],hasChildNodes:mO(e),*childNodes(){if(n)for(let e of n)yield{type:`item`,value:e};else if(r){let e=[];cj.Children.forEach(i,t=>{e.push({type:`item`,element:t})}),yield*e}}}},Gz=pO,hO.getCollectionNode=function*(e){let{children:t,title:n,items:r}=e;yield{type:`section`,props:e,hasChildNodes:!0,rendered:n,"aria-label":e[`aria-label`],*childNodes(){if(typeof t==`function`){if(!r)throw Error(`props.children was a function but props.items is missing`);for(let e of r)yield{type:`item`,value:e,renderer:t}}else{let e=[];lj.Children.forEach(t,t=>{e.push({type:`item`,element:t})}),yield*e}}}},Kz=class{build(e,t){return this.context=t,gO(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(uj.isValidElement(t)&&t.type===uj.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if(typeof t==`function`){if(!n)throw Error(`props.children was a function but props.items is missing`);let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];uj.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type===`cell`&&t.key!=null)return`${r}${t.key}`;let i=t.value;if(i!=null){let e=i.key??i.id;if(e==null)throw Error(`No key found for item`);return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(uj.isValidElement(e.element)&&e.element.type===uj.Fragment){let i=[];uj.Children.forEach(e.element.props.children,e=>{i.push(e)});let a=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=r?r.key:null,yield n;return}i=t.renderer(e.value)}if(uj.isValidElement(i)){let a=i.type;if(typeof a!=`function`&&typeof a.getCollectionNode!=`function`){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let o=a.getCollectionNode(i.props,this.context),s=e.index??0,c=o.next();for(;!c.done&&c.value;){let a=c.value;e.index=s;let l=a.key??null;l??=a.element?null:this.getKey(i,e,t,n);let u=[...this.getFullNode({...a,key:l,index:s,wrapper:_O(e.wrapper,a.wrapper)},this.getChildState(t,a),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=a.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${vO(t.type)}> in <${vO(r?.type??`unknown parent type`)}>. Only <${vO(e.type)}> is supported.`);s++,yield t}c=o.next(u)}return}if(e.key==null||e.type==null)return;let a=this,o={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value??null,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue??``,"aria-label":e[`aria-label`],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:gO(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes()){r.key!=null&&(r.key=`${o.key}${r.key}`);let e=a.getFullNode({...r,index:n},a.getChildState(t,r),o.key,o);for(let t of e)n++,yield t}})};yield o}constructor(){this.cache=new WeakMap}},qz=new WeakMap,Jz=2,Yz=50,Xz=1e3,Zz=Math.PI/12,Qz=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 n;return t&&(n=t.prevKey)!=null?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&(n=t.nextKey)!=null?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??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||=new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&(e.type===`section`||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),t.type===`item`&&(t.index=i++),r=t,r.nextKey=void 0;this.lastKey=r?.key??null}},$z=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}},eB=class e{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}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 e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&CO(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&CO(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new $z([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new $z(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?CO(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if((n=this.layoutDelegate)!=null&&n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],i=e;for(;i!=null;){let e=this.collection.getItem(i);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&r.push(i),i===t)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new $z(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new $z([t],t,t):new $z;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new $z;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);r?.type===`item`&&e.push(n),r?.hasChildNodes&&(this.allowsCellSelection||r.type!==`item`)&&t(xO(bO(r,this.collection))?.key??null)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}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 $z)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||!(n==null||(t=n.props)==null)&&t.isDisabled||n.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){var t,n;return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!(!((n=this.collection.getItem(e))==null||(t=n.props)==null)&&t.isDisabled))}isLink(e){var t,n;return!!(!((n=this.collection.getItem(e))==null||(t=n.props)==null)&&t.href)}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}},tB=(0,G.createContext)(null),nB=(0,G.createContext)(null),rB=(0,G.createContext)(null),iB=(0,G.createContext)(null),aB=(0,G.createContext)(null),oB=class extends lz{filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}},oB.type=`submenutrigger`,HD(oB,(e,t,n)=>{let{CollectionBranch:r}=(0,G.useContext)(Nz),i=(0,G.useContext)(nB),a=(0,G.useContext)(rB),o=jO({triggerKey:n.key},a),s=(0,G.useRef)(null),c=oC(t),{parentMenuRef:l,shouldUseVirtualFocus:u}=(0,G.useContext)(aB),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=kO({parentMenuRef:l,submenuRef:s,delay:e.delay,shouldUseVirtualFocus:u},o,c);return G.createElement(Mw,{values:[[cB,{...d,onAction:void 0,ref:c}],[tB,{ref:s,...f}],[uB,o],[Oz,{trigger:`SubmenuTrigger`,triggerRef:c,placement:`end top`,"aria-labelledby":f[`aria-labelledby`],...p}]]},G.createElement(r,{collection:i.collection,parent:n}),e.children[1])},e=>e.children[0]),(0,G.forwardRef)(function(e,t){return[e,t]=Fw(e,t,tB),G.createElement(FD,{content:G.createElement(WD,e)},n=>G.createElement(LO,{props:e,collection:n,menuRef:t}))}),sB=class extends eB{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}},HD(mz,RO),cB=(0,G.createContext)(null),VD(pz,function(e,t,n){[e,t]=Fw(e,t,cB);let r=Pw(cB)?.id,i=(0,G.useContext)(nB),a=oC(t),o=(0,G.useContext)(iB),{menuItemProps:s,labelProps:c,descriptionProps:l,keyboardShortcutProps:u,...d}=EO({...e,id:r,key:n.key,selectionManager:o},i,a),{hoverProps:f,isHovered:p}=Ow({isDisabled:d.isDisabled}),m=Nw({...e,id:void 0,children:n.rendered,defaultClassName:`react-aria-MenuItem`,values:{...d,isHovered:p,isFocusVisible:d.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e[`aria-haspopup`],isOpen:e[`aria-expanded`]===`true`}}),h=e.href?`a`:`div`,g=BS(e,{global:!0});return delete g.id,delete g.onClick,G.createElement(h,{...V(g,m,s,f),ref:a,"data-disabled":d.isDisabled||void 0,"data-hovered":p||void 0,"data-focused":d.isFocused||void 0,"data-focus-visible":d.isFocusVisible||void 0,"data-pressed":d.isPressed||void 0,"data-selected":d.isSelected||void 0,"data-selection-mode":o.selectionMode===`none`?void 0:o.selectionMode,"data-has-submenu":!!e[`aria-haspopup`]||void 0,"data-open":e[`aria-expanded`]===`true`||void 0},G.createElement(Mw,{values:[[DL,{slots:{[aP]:c,label:c,description:l}}],[Lz,u]]},m.children))}),lB=(0,bj.createContext)(null),uB=(0,bj.createContext)(null),(0,bj.forwardRef)(function(e,t){let n=e[`aria-labelledby`];[e,t]=Fw(e,t,lB);let{dialogProps:r,titleProps:i}=zO({...e,"aria-labelledby":n},t),a=(0,bj.useContext)(uB);!r[`aria-label`]&&!r[`aria-labelledby`]&&e[`aria-labelledby`]&&(r[`aria-labelledby`]=e[`aria-labelledby`]);let o=Nw({defaultClassName:`react-aria-Dialog`,className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),s=BS(e,{global:!0});return bj.createElement(`section`,{...V(s,o,r),ref:t,slot:e.slot||void 0},bj.createElement(Mw,{values:[[TL,{slots:{[aP]:{},title:{...i,level:2}}}],[Dz,{slots:{[aP]:{},close:{onPress:()=>a?.close()}}}]]},o.children))}),dB=({ariaLabel:e,placement:t=`bottom-start`,hasChrome:n=!0,hasCloseButton:r=!1,closeLabel:i,offset:a=8,padding:o,popover:s,children:c,defaultVisible:l,visible:u,onVisibleChange:d,...f})=>{e||cz(`The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.`);let p=FI(t),[m,h]=(0,UA.useState)(l??!1),g=(0,UA.useCallback)(e=>{h(e),d?.(e)},[d]),_=(0,UA.useCallback)(()=>g(!1),[g]);return UA.createElement(BO,{defaultOpen:l,isOpen:u??m,onOpenChange:g,...f},UA.createElement(eP,null,(0,UA.cloneElement)(c,{"aria-haspopup":`dialog`})),UA.createElement(Az,{"aria-label":e,placement:p,offset:a,style:{outline:`none`}},UA.createElement(QR,{hasChrome:n,hideLabel:i,onHide:r?_:void 0,padding:o},typeof s==`function`?s({onHide:_}):s)))},fB=(0,xj.forwardRef)((e,t)=>xj.createElement(QR,{ref:t,...e})),fB.displayName=`Tooltip`,(0,Sj.lazy)(()=>a(()=>import(`./WithTooltip-7X4HQR7L-BKNiAz_E.js`).then(e=>({default:e.WithTooltip})),__vite__mapDeps([11,1,2,3,0,4,8,9]),import.meta.url)),(0,Sj.lazy)(()=>a(()=>import(`./WithTooltip-7X4HQR7L-BKNiAz_E.js`).then(e=>({default:e.WithTooltipPure})),__vite__mapDeps([11,1,2,3,0,4,8,9]),import.meta.url)),{deprecate:pB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,M.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),M.span(),M.div(({theme:e})=>({marginTop:8,textAlign:`center`,"> *":{margin:`0 8px`,fontWeight:e.typography.weight.bold}})),M.div(({theme:e})=>({color:e.color.defaultText,lineHeight:`18px`})),M.div({padding:15,width:280,boxSizing:`border-box`}),{deprecate:mB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,hB=m(fe(),1),{deprecate:gB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,_B=M(({active:e,loading:t,disabled:n,...r})=>wj.createElement(`span`,{...r}))(({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}:{}),vB=M.span({display:`flex`,"& svg":{height:12,width:12,margin:`3px 0`,verticalAlign:`top`}}),yB=M.span({flex:1,textAlign:`left`,display:`flex`,flexDirection:`column`,minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),bB=M.span(({theme:e})=>({fontSize:`11px`,lineHeight:`14px`}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),xB=M.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:`flex`,maxWidth:14})),SB=M.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:n})=>(t||n)&&{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`}),CB=(0,hB.default)(100)(({onClick:e,input:t,href:n,LinkWrapper:r})=>({...e&&{as:`button`,role:`button`,onClick:e},...t&&{as:`label`},...n&&{as:`a`,role:`link`,href:n,...r&&{as:r,to:n}}})),wB=(0,wj.forwardRef)((e,t)=>{let{loading:n=!1,title:r=wj.createElement(`span`,null,`Loading state`),center:i=null,right:a=null,active:o=!1,disabled:s=!1,isIndented:c=!1,href:l=void 0,onClick:u=void 0,icon:d,input:f,LinkWrapper:p=void 0,...m}=e,h={active:o,disabled:s},g=CB(e),_=d||f;return gB("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),wj.createElement(SB,{"data-deprecated":`ListItem`,ref:t,...m,...h,...g},wj.createElement(wj.Fragment,null,_&&wj.createElement(xB,{...h},_),r||i?wj.createElement(yB,{isIndented:c&&!_},r&&wj.createElement(_B,{...h,loading:n},r),i&&wj.createElement(bB,{...h},i)):null,a&&wj.createElement(vB,{...h},a)))}),wB.displayName=`ListItem`,TB=wB,EB=M.div({minWidth:180,overflow:`hidden`,overflowY:`auto`,maxHeight:504},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base===`dark`?{background:e.background.content}:{}),DB=M.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),OB=({id:e,onClick:t,...n})=>{let{active:r,disabled:i,title:a,href:o}=n,s=(0,Cj.useCallback)(n=>t?.(n,{id:e,active:r,disabled:i,title:a,href:o}),[t,e,r,i,a,o]);return Cj.createElement(TB,{id:`list-item-${e}`,...n,...t&&{onClick:s}})},kB=({links:e,LinkWrapper:t,...n})=>{mB("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let r=Array.isArray(e[0])?e:[e],i=r.some(e=>e.some(e=>`icon`in e&&e.icon||`input`in e&&e.input));return Cj.createElement(EB,{"data-deprecated":`TooltipLinkList`,...n,className:`sb-list`},r.filter(e=>e.length).map((e,n)=>Cj.createElement(DB,{key:e.map(e=>e.id).join(`~${n}~`)},e.map(e=>`content`in e?Cj.createElement(Cj.Fragment,{key:e.id},e.content):Cj.createElement(OB,{key:e.id,isIndented:i,LinkWrapper:t,...e})))))},{deprecate:AB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:jB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,MB=M.div(({backgroundColor:e,border:t=!1,innerStyle:n={},scrollable:r,theme:i})=>({color:i.barTextColor,width:`100%`,minHeight:40,flexShrink:0,scrollbarColor:`${i.barTextColor} ${t?e||i.barBg:`transparent`}`,scrollbarWidth:`thin`,overflow:r?`auto`:`hidden`,overflowY:`hidden`,display:`flex`,alignItems:`center`,gap:r?0:6,paddingInline:r?0:6,...t?{boxShadow:`${i.appBorderColor} 0 -1px 0 0 inset`,background:e||i.barBg}:{},...n})),NB=M.div(({innerStyle:e})=>({minHeight:40,display:`flex`,alignItems:`center`,width:`100%`,gap:6,paddingInline:6,...e})),PB=(0,Ej.forwardRef)(({scrollable:e=!0,children:t,innerStyle:n,...r},i)=>Ej.createElement(MB,{...r,ref:i,innerStyle:e?void 0:n,scrollable:e},e?Ej.createElement(NB,{innerStyle:n},t):t)),PB.displayName=`Bar`,FB=M.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}:{}),FB.displayName=`Side`,IB=M.div(({bgColor:e})=>({display:`flex`,justifyContent:`space-between`,position:`relative`,flexWrap:`nowrap`,flexShrink:0,height:40,width:`100%`,backgroundColor:e||``})),LB=M(PB)({paddingInline:0}),RB=({children:e,backgroundColor:t,className:n=``,...r})=>{jB(`FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.`);let[i,a]=Ej.Children.toArray(e);return Ej.createElement(LB,{"data-deprecated":`FlexBar`,backgroundColor:t,className:`sb-bar ${n}`,...r},Ej.createElement(IB,{bgColor:t},Ej.createElement(FB,{scrollable:r.scrollable,left:!0},i),a?Ej.createElement(FB,{right:!0},a):null))},RB.displayName=`FlexBar`,{deprecate:zB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,BB=e=>typeof e.props.href==`string`,VB=e=>typeof e.props.href!=`string`,HB=(0,Dj.forwardRef)(VO),HB.displayName=`ButtonOrLink`,UB=M(HB,{shouldForwardProp:ae})({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:n})=>e?{color:t||n.barSelectedColor,borderBottomColor:n.barSelectedColor}:{color:t||n.barTextColor,borderBottomColor:`transparent`,"&:hover":{color:n.barHoverColor}}),WB=(0,Dj.forwardRef)((e,t)=>(zB("The `TabButton` component is deprecated. Use `TabList` instead."),Dj.createElement(UB,{"data-deprecated":`TabButton`,ref:t,...e}))),WB.displayName=`TabButton`,GB=M.div(({theme:e})=>({height:`100%`,display:`flex`,padding:30,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,gap:15,background:e.background.content})),KB=M.div({display:`flex`,flexDirection:`column`,gap:4,maxWidth:415}),qB=M.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.color.defaultText})),JB=M.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),YB=M.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:`center`,color:e.textMutedColor})),XB=({title:e,description:t,footer:n})=>Oj.createElement(GB,null,Oj.createElement(KB,null,Oj.createElement(qB,null,e),t&&Oj.createElement(YB,null,t)),n&&Oj.createElement(JB,null,n)),{deprecate:ZB}=__STORYBOOK_MODULE_CLIENT_LOGGER__,QB=M.div(({active:e})=>e?{display:`block`}:{display:`none`}),$B=e=>(ZB("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),kj.Children.toArray(e).map(({props:{title:e,id:t,color:n,children:r}})=>{let i=Array.isArray(r)?r[0]:r;return{title:e,id:t,...n?{color:n}:{},render:typeof i==`function`?i:({active:e})=>kj.createElement(QB,{active:e,role:`tabpanel`},i)}})),{deprecate:eV}=__STORYBOOK_MODULE_CLIENT_LOGGER__,tV=M.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`})),nV=M(WB)(({active:e,theme:t,preActive:n})=>`
208
208
  color: ${n||e?t.barSelectedColor:t.barTextColor};
209
209
  .addon-collapsible-icon {
210
210
  color: ${n||e?t.barSelectedColor:t.barTextColor};