documentation-hub 5.7.2

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 (271) hide show
  1. package/.eslintrc.json +43 -0
  2. package/.github/workflows/build.yml +64 -0
  3. package/.github/workflows/ci.yml +39 -0
  4. package/.vscode/extensions.json +3 -0
  5. package/Current.md +97 -0
  6. package/DocHub_Image.png +0 -0
  7. package/README.md +666 -0
  8. package/USER_GUIDE.md +1173 -0
  9. package/Updater.md +311 -0
  10. package/build/256x256.png +0 -0
  11. package/build/512x512.png +0 -0
  12. package/build/app-update.yml +4 -0
  13. package/build/create-icon.js +208 -0
  14. package/build/icon.ico +0 -0
  15. package/build/icon.png +0 -0
  16. package/build/icon_1024x1024.png +0 -0
  17. package/dist/assets/Analytics-BpsG9895.js +1 -0
  18. package/dist/assets/Card-IAZin8kp.js +1 -0
  19. package/dist/assets/CurrentSession-B-rFkHvf.js +12 -0
  20. package/dist/assets/Dashboard-C_5gMb0q.js +1 -0
  21. package/dist/assets/Documents-CqZ25axS.js +1 -0
  22. package/dist/assets/Input-l89xwXBi.js +1 -0
  23. package/dist/assets/Reporting-DqdHJY_a.js +1 -0
  24. package/dist/assets/Search-XNbu5z_3.js +1 -0
  25. package/dist/assets/SessionManager-lH9hZfzH.js +1 -0
  26. package/dist/assets/Sessions-ClZOPYNc.js +1 -0
  27. package/dist/assets/Settings-DUEHGURa.js +11 -0
  28. package/dist/assets/index-8xUe8ptc.js +24 -0
  29. package/dist/assets/index-RYyJqF7O.css +1 -0
  30. package/dist/assets/path-BkOl0AGO.js +1 -0
  31. package/dist/assets/promises-ID_B9S-h.js +1 -0
  32. package/dist/assets/urlHelpers-TvgahX0r.js +1 -0
  33. package/dist/assets/useToast-yRSO1dkm.js +1 -0
  34. package/dist/assets/vendor-charts-RkGK5ROP.js +36 -0
  35. package/dist/assets/vendor-db-l0sNRNKZ.js +1 -0
  36. package/dist/assets/vendor-react-BVZ_anCF.js +4 -0
  37. package/dist/assets/vendor-search-Dw8P0qyA.js +1 -0
  38. package/dist/assets/vendor-ui-BU7NfluV.js +53 -0
  39. package/dist/electron/PowerAutomateApiService-LfW09ZGr.js +147 -0
  40. package/dist/electron/main-CXkNtyv-.js +19789 -0
  41. package/dist/electron/main.js +5 -0
  42. package/dist/electron/preload.js +1 -0
  43. package/dist/icon.png +0 -0
  44. package/dist/index.html +27 -0
  45. package/docs/CODEBASE_ANALYSIS_REPORT.md +309 -0
  46. package/docs/DEBUG_LOGGING_GUIDE.md +244 -0
  47. package/docs/README.md +115 -0
  48. package/docs/TOC_WIRING_GUIDE.md +344 -0
  49. package/docs/analysis/Bullet_Symbol_Bug_Analysis.md +136 -0
  50. package/docs/analysis/DOCXMLATER_ANALYSIS_SUMMARY.txt +169 -0
  51. package/docs/analysis/Document_Processing_Issues_Analysis.md +704 -0
  52. package/docs/analysis/FIELD_PRESERVATION_ANALYSIS.md +1200 -0
  53. package/docs/analysis/INDENTATION_PRESERVE_ANALYSIS.md +181 -0
  54. package/docs/analysis/INDENTATION_PRESERVE_IMPLEMENTATION.md +207 -0
  55. package/docs/analysis/List_Implementation.md +206 -0
  56. package/docs/analysis/List_Implementation_Accuracy_Report.md +366 -0
  57. package/docs/analysis/PROCESSING_OPTIONS_UI_UPDATES.md +220 -0
  58. package/docs/analysis/RefactorStyles.md +852 -0
  59. package/docs/analysis/STYLE_PARAMETER_ENHANCEMENT.md +143 -0
  60. package/docs/analysis/docxmlater-comparison-todo-2025-11-13.md +636 -0
  61. package/docs/analysis/docxmlater-implementation-analysis-2025-11-13.md +340 -0
  62. package/docs/analysis/docxmlater-template_ui-integration-analysis.md +263 -0
  63. package/docs/analysis/github-issues-to-create.md +237 -0
  64. package/docs/api/API_README.md +538 -0
  65. package/docs/api/API_REFERENCE.md +751 -0
  66. package/docs/api/TYPE_DEFINITIONS.md +869 -0
  67. package/docs/architecture/FONT_EMBEDDING_GUIDE.md +318 -0
  68. package/docs/architecture/docxmlater-functions-and-structure.md +726 -0
  69. package/docs/docxmlater-readme.md +1341 -0
  70. package/docs/fixes/EXECUTION_LOG_TEST_BASE.md +573 -0
  71. package/docs/fixes/HYPERLINK_TEXT_SANITIZATION.md +253 -0
  72. package/docs/fixes/README.md +37 -0
  73. package/docs/github-issues/issue-1-body.md +125 -0
  74. package/docs/github-issues/issue-10-body.md +850 -0
  75. package/docs/github-issues/issue-2-body.md +200 -0
  76. package/docs/github-issues/issue-3-body.md +270 -0
  77. package/docs/github-issues/issue-4-body.md +169 -0
  78. package/docs/github-issues/issue-5-body.md +173 -0
  79. package/docs/github-issues/issue-6-body.md +158 -0
  80. package/docs/github-issues/issue-7-body.md +171 -0
  81. package/docs/github-issues/issue-8-body.md +407 -0
  82. package/docs/github-issues/issue-9-body.md +515 -0
  83. package/docs/github-issues/issue-tracker.md +274 -0
  84. package/docs/github-issues/predictive-analysis-2025-10-18.md +2131 -0
  85. package/docs/implementation/List_Framework_Refactor_Plan.md +336 -0
  86. package/docs/implementation/PRIMARY_TEXT_COLOR_FEATURE.md +217 -0
  87. package/docs/implementation/RELEASE_PLAN_v2.1.0.md +362 -0
  88. package/docs/implementation/RefactorStyles.md +588 -0
  89. package/docs/implementation/implement-plan.md +489 -0
  90. package/docs/implementation/missing-helpers-implementation.md +391 -0
  91. package/docs/implementation/refactor-plan.md +520 -0
  92. package/docs/implementation/session-implementation-complete.md +233 -0
  93. package/docs/implementation/session-management-plan.md +250 -0
  94. package/docs/setup-checklist.md +77 -0
  95. package/docs/versions/changelog.md +345 -0
  96. package/electron/customUpdater.ts +656 -0
  97. package/electron/main.ts +2441 -0
  98. package/electron/memoryConfig.ts +187 -0
  99. package/electron/preload.ts +394 -0
  100. package/electron/proxyConfig.ts +340 -0
  101. package/electron/services/BackupService.ts +452 -0
  102. package/electron/services/DictionaryService.ts +402 -0
  103. package/electron/services/LocalDictionaryLookupService.ts +147 -0
  104. package/electron/services/PowerAutomateApiService.ts +231 -0
  105. package/electron/services/SharePointSyncService.ts +474 -0
  106. package/electron/windowsCertStore.ts +427 -0
  107. package/electron/zscalerConfig.ts +381 -0
  108. package/eslint.config.js +92 -0
  109. package/jest.config.js +52 -0
  110. package/package.json +214 -0
  111. package/postcss.config.mjs +6 -0
  112. package/public/icon.png +0 -0
  113. package/publish-release.ps1 +5 -0
  114. package/renovate.json +30 -0
  115. package/src/App.tsx +216 -0
  116. package/src/__mocks__/p-limit.js +12 -0
  117. package/src/__mocks__/styleMock.js +1 -0
  118. package/src/components/common/BugReportButton.tsx +44 -0
  119. package/src/components/common/BugReportDialog.tsx +193 -0
  120. package/src/components/common/Button.tsx +153 -0
  121. package/src/components/common/Card.tsx +86 -0
  122. package/src/components/common/ColorPickerDialog.tsx +177 -0
  123. package/src/components/common/ConfirmDialog.tsx +96 -0
  124. package/src/components/common/DebugConsole.tsx +275 -0
  125. package/src/components/common/EmptyState.tsx +183 -0
  126. package/src/components/common/ErrorBoundary.tsx +98 -0
  127. package/src/components/common/ErrorDetailsDialog.tsx +153 -0
  128. package/src/components/common/ErrorFallback.tsx +218 -0
  129. package/src/components/common/Input.tsx +109 -0
  130. package/src/components/common/Skeleton.tsx +184 -0
  131. package/src/components/common/SplashScreen.tsx +81 -0
  132. package/src/components/common/Toast.tsx +155 -0
  133. package/src/components/common/Tooltip.tsx +79 -0
  134. package/src/components/common/UpdateNotification.tsx +320 -0
  135. package/src/components/comparison/ComparisonWindow.tsx +374 -0
  136. package/src/components/comparison/SideBySideDiff.tsx +486 -0
  137. package/src/components/comparison/index.ts +8 -0
  138. package/src/components/document/DocumentUploader.tsx +288 -0
  139. package/src/components/document/HyperlinkPreview.tsx +430 -0
  140. package/src/components/document/HyperlinkService.md +1484 -0
  141. package/src/components/document/Hyperlink_Technical_Documentation.md +496 -0
  142. package/src/components/document/InlineChangesView.tsx +707 -0
  143. package/src/components/document/ProcessingProgress.tsx +303 -0
  144. package/src/components/document/ProcessingResults.tsx +256 -0
  145. package/src/components/document/TrackedChangesDetail.tsx +530 -0
  146. package/src/components/document/TrackedChangesPanel.tsx +546 -0
  147. package/src/components/document/VirtualDocumentList.tsx +240 -0
  148. package/src/components/editor/DocumentEditor.tsx +723 -0
  149. package/src/components/editor/DocumentEditorModal.tsx +640 -0
  150. package/src/components/editor/EditorQuickActions.tsx +502 -0
  151. package/src/components/editor/EditorToolbar.tsx +312 -0
  152. package/src/components/editor/TableEditor.tsx +926 -0
  153. package/src/components/editor/index.ts +18 -0
  154. package/src/components/layout/Header.tsx +190 -0
  155. package/src/components/layout/Sidebar.tsx +313 -0
  156. package/src/components/layout/TitleBar.tsx +190 -0
  157. package/src/components/navigation/CommandPalette.tsx +233 -0
  158. package/src/components/navigation/KeyboardShortcutsModal.tsx +173 -0
  159. package/src/components/sessions/ChangeItem.tsx +408 -0
  160. package/src/components/sessions/ChangeViewer.tsx +1155 -0
  161. package/src/components/sessions/DocumentComparisonModal.tsx +314 -0
  162. package/src/components/sessions/ProcessingOptions.tsx +297 -0
  163. package/src/components/sessions/ReplacementsTab.tsx +438 -0
  164. package/src/components/sessions/RevisionHandlingOptions.tsx +87 -0
  165. package/src/components/sessions/SessionManager.tsx +188 -0
  166. package/src/components/sessions/StylesEditor.tsx +1335 -0
  167. package/src/components/sessions/TabContainer.tsx +151 -0
  168. package/src/components/sessions/VirtualSessionList.tsx +157 -0
  169. package/src/components/sessions/sessionToProcessorManager.tsx +420 -0
  170. package/src/components/settings/CertificateManager.tsx +410 -0
  171. package/src/components/settings/SegmentedControl.tsx +88 -0
  172. package/src/components/settings/SettingRow.tsx +52 -0
  173. package/src/contexts/GlobalStatsContext.tsx +396 -0
  174. package/src/contexts/SessionContext.tsx +2129 -0
  175. package/src/contexts/ThemeContext.tsx +428 -0
  176. package/src/contexts/UserSettingsContext.tsx +290 -0
  177. package/src/contexts/__tests__/GlobalStatsContext.test.tsx +390 -0
  178. package/src/global.d.ts +273 -0
  179. package/src/hooks/useDocumentQueue.tsx +210 -0
  180. package/src/hooks/useToast.tsx +55 -0
  181. package/src/main.tsx +10 -0
  182. package/src/pages/Analytics.tsx +386 -0
  183. package/src/pages/CurrentSession.tsx +1174 -0
  184. package/src/pages/Dashboard.tsx +319 -0
  185. package/src/pages/Documents.tsx +317 -0
  186. package/src/pages/Projects.tsx +250 -0
  187. package/src/pages/Reporting.tsx +386 -0
  188. package/src/pages/Search.tsx +349 -0
  189. package/src/pages/Sessions.tsx +285 -0
  190. package/src/pages/Settings.tsx +2662 -0
  191. package/src/services/HyperlinkService.ts +1085 -0
  192. package/src/services/document/DocXMLaterProcessor.ts +617 -0
  193. package/src/services/document/DocumentProcessingComparison.ts +856 -0
  194. package/src/services/document/DocumentSnapshotService.ts +575 -0
  195. package/src/services/document/WordDocumentProcessor.ts +10509 -0
  196. package/src/services/document/__tests__/DocXMLaterProcessor.hyperlinks.test.md +311 -0
  197. package/src/services/document/__tests__/WordDocumentProcessor.integration.test.ts +515 -0
  198. package/src/services/document/__tests__/WordDocumentProcessor.test.ts +812 -0
  199. package/src/services/document/blanklines/BlankLineManager.ts +658 -0
  200. package/src/services/document/blanklines/__tests__/paragraphChecks.test.ts +281 -0
  201. package/src/services/document/blanklines/helpers/blankLineInsertion.ts +87 -0
  202. package/src/services/document/blanklines/helpers/blankLineSnapshot.ts +251 -0
  203. package/src/services/document/blanklines/helpers/clearCustom.ts +121 -0
  204. package/src/services/document/blanklines/helpers/contextChecks.ts +117 -0
  205. package/src/services/document/blanklines/helpers/imageChecks.ts +51 -0
  206. package/src/services/document/blanklines/helpers/paragraphChecks.ts +236 -0
  207. package/src/services/document/blanklines/helpers/removeBlanksBetweenListItems.ts +91 -0
  208. package/src/services/document/blanklines/helpers/removeTrailingBlanks.ts +35 -0
  209. package/src/services/document/blanklines/helpers/tableGuards.ts +21 -0
  210. package/src/services/document/blanklines/index.ts +67 -0
  211. package/src/services/document/blanklines/rules/additionRules.ts +337 -0
  212. package/src/services/document/blanklines/rules/indentationRules.ts +317 -0
  213. package/src/services/document/blanklines/rules/removalRules.ts +362 -0
  214. package/src/services/document/blanklines/rules/ruleTypes.ts +92 -0
  215. package/src/services/document/blanklines/types.ts +29 -0
  216. package/src/services/document/helpers/ImageBorderCropper.ts +377 -0
  217. package/src/services/document/helpers/__tests__/whitespace.test.ts +272 -0
  218. package/src/services/document/helpers/whitespace.ts +117 -0
  219. package/src/services/document/list/ListNormalizer.ts +947 -0
  220. package/src/services/document/list/index.ts +45 -0
  221. package/src/services/document/list/list-detection.ts +275 -0
  222. package/src/services/document/list/list-types.ts +162 -0
  223. package/src/services/document/processors/HyperlinkProcessor.ts +370 -0
  224. package/src/services/document/processors/ListProcessor.ts +257 -0
  225. package/src/services/document/processors/StructureProcessor.ts +176 -0
  226. package/src/services/document/processors/StyleProcessor.ts +389 -0
  227. package/src/services/document/processors/TableProcessor.ts +2238 -0
  228. package/src/services/document/processors/__tests__/HyperlinkProcessor.test.ts +314 -0
  229. package/src/services/document/processors/__tests__/ListProcessor.test.ts +291 -0
  230. package/src/services/document/processors/__tests__/StructureProcessor.test.ts +257 -0
  231. package/src/services/document/processors/__tests__/TableProcessor.hlp-tips-bullets.test.ts +459 -0
  232. package/src/services/document/processors/__tests__/TableProcessor.test.ts +1604 -0
  233. package/src/services/document/processors/index.ts +28 -0
  234. package/src/services/document/types/docx-processing.ts +310 -0
  235. package/src/services/editor/EditorActionHandlers.ts +901 -0
  236. package/src/services/editor/index.ts +13 -0
  237. package/src/setupTests.ts +47 -0
  238. package/src/styles/global.css +782 -0
  239. package/src/types/backup.ts +132 -0
  240. package/src/types/dictionary.ts +125 -0
  241. package/src/types/document-processing.ts +331 -0
  242. package/src/types/docxmlater-augments.d.ts +142 -0
  243. package/src/types/editor.ts +280 -0
  244. package/src/types/electron.ts +340 -0
  245. package/src/types/globalStats.ts +155 -0
  246. package/src/types/hyperlink.ts +471 -0
  247. package/src/types/operations.ts +354 -0
  248. package/src/types/session.ts +427 -0
  249. package/src/types/settings.ts +112 -0
  250. package/src/utils/MemoryMonitor.ts +248 -0
  251. package/src/utils/cn.ts +6 -0
  252. package/src/utils/colorConvert.ts +306 -0
  253. package/src/utils/diffUtils.ts +347 -0
  254. package/src/utils/documentUtils.ts +202 -0
  255. package/src/utils/electronGuard.ts +62 -0
  256. package/src/utils/indexedDB.ts +915 -0
  257. package/src/utils/logger.ts +717 -0
  258. package/src/utils/pathSecurity.ts +232 -0
  259. package/src/utils/pathValidator.ts +236 -0
  260. package/src/utils/processingTimeEstimator.ts +153 -0
  261. package/src/utils/safeJsonParse.ts +62 -0
  262. package/src/utils/textSanitizer.ts +162 -0
  263. package/src/utils/urlHelpers.ts +304 -0
  264. package/src/utils/urlPatterns.ts +198 -0
  265. package/src/utils/urlSanitizer.ts +152 -0
  266. package/src/vite-env.d.ts +11 -0
  267. package/tsconfig.electron.json +19 -0
  268. package/tsconfig.json +36 -0
  269. package/tsconfig.node.json +12 -0
  270. package/typedoc.json +45 -0
  271. package/vite.config.ts +152 -0
@@ -0,0 +1,53 @@
1
+ import{r as h,a as Ia,R as fr,b as Oa}from"./vendor-react-BVZ_anCF.js";var Xe={exports:{}},Gt={};var Ns;function Fa(){if(Ns)return Gt;Ns=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(s,i,r){var o=null;if(r!==void 0&&(o=""+r),i.key!==void 0&&(o=""+i.key),"key"in i){r={};for(var a in i)a!=="key"&&(r[a]=i[a])}else r=i;return i=r.ref,{$$typeof:t,type:s,key:o,ref:i!==void 0?i:null,props:r}}return Gt.Fragment=e,Gt.jsx=n,Gt.jsxs=n,Gt}var Ls;function ja(){return Ls||(Ls=1,Xe.exports=Fa()),Xe.exports}var R=ja();const pr=(...t)=>t.filter((e,n,s)=>!!e&&e.trim()!==""&&s.indexOf(e)===n).join(" ").trim();const Ba=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const $a=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,s)=>s?s.toUpperCase():n.toLowerCase());const _s=t=>{const e=$a(t);return e.charAt(0).toUpperCase()+e.slice(1)};var Wa={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ua=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};const za=h.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:i="",children:r,iconNode:o,...a},c)=>h.createElement("svg",{ref:c,...Wa,width:e,height:e,stroke:t,strokeWidth:s?Number(n)*24/Number(e):n,className:pr("lucide",i),...!r&&!Ua(a)&&{"aria-hidden":"true"},...a},[...o.map(([l,u])=>h.createElement(l,u)),...Array.isArray(r)?r:[r]]));const b=(t,e)=>{const n=h.forwardRef(({className:s,...i},r)=>h.createElement(za,{ref:r,iconNode:e,className:pr(`lucide-${Ba(_s(t))}`,`lucide-${t}`,s),...i}));return n.displayName=_s(t),n};const Ha=[["circle",{cx:"16",cy:"4",r:"1",key:"1grugj"}],["path",{d:"m18 19 1-7-6 1",key:"r0i19z"}],["path",{d:"m5 8 3-3 5.5 3-2.36 3.5",key:"9ptxx2"}],["path",{d:"M4.24 14.5a5 5 0 0 0 6.88 6",key:"10kmtu"}],["path",{d:"M13.76 17.5a5 5 0 0 0-6.88-6",key:"2qq6rc"}]],Ry=b("accessibility",Ha);const Ka=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],Dy=b("archive",Ka);const qa=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Vy=b("arrow-right",qa);const Ga=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Ny=b("arrow-up-right",Ga);const Xa=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],Ly=b("bold",Xa);const Ya=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],_y=b("bookmark",Ya);const Za=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],Iy=b("box",Za);const Ja=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],Oy=b("bug",Ja);const Qa=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Fy=b("calendar-days",Qa);const tc=[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M17 14h-6",key:"bkmgh3"}],["path",{d:"M13 18H7",key:"bb0bb7"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 18h.01",key:"1bdyru"}]],jy=b("calendar-range",tc);const ec=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],By=b("calendar",ec);const nc=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],$y=b("chart-column",nc);const sc=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Wy=b("check",sc);const ic=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Uy=b("chevron-down",ic);const rc=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],zy=b("chevron-left",rc);const oc=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Hy=b("chevron-right",oc);const ac=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Ky=b("circle-alert",ac);const cc=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],qy=b("circle-check-big",cc);const lc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Gy=b("circle-check",lc);const uc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Xy=b("circle-x",uc);const dc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Yy=b("circle",dc);const hc=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]],Zy=b("clipboard-copy",hc);const fc=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Jy=b("clock",fc);const pc=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],Qy=b("cloud",pc);const mc=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],t1=b("copy",mc);const yc=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],e1=b("download",yc);const gc=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],n1=b("external-link",gc);const vc=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],s1=b("eye-off",vc);const xc=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],i1=b("eye",xc);const bc=[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],r1=b("file-archive",bc);const wc=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]],o1=b("file-check",wc);const kc=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],a1=b("file-text",kc);const Sc=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],c1=b("folder-open",Sc);const Mc=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],l1=b("funnel",Mc);const Tc=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]],u1=b("git-compare",Tc);const Cc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],d1=b("globe",Cc);const Ec=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],h1=b("grid-3x3",Ec);const Pc=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],f1=b("hard-drive",Pc);const Ac=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],p1=b("hash",Ac);const Rc=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],m1=b("history",Rc);const Dc=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],y1=b("house",Dc);const Vc=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],g1=b("image",Vc);const Nc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],v1=b("info",Nc);const Lc=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],x1=b("italic",Lc);const _c=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],b1=b("keyboard",_c);const Ic=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],w1=b("laptop",Ic);const Oc=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],k1=b("lightbulb",Oc);const Fc=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],S1=b("link-2",Fc);const jc=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],M1=b("link",jc);const Bc=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],T1=b("list",Bc);const $c=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],C1=b("loader-circle",$c);const Wc=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],E1=b("lock",Wc);const Uc=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],P1=b("log-out",Uc);const zc=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],A1=b("mail",zc);const Hc=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],R1=b("message-circle",Hc);const Kc=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],D1=b("message-square",Kc);const qc=[["path",{d:"M5 12h14",key:"1ays0h"}]],V1=b("minus",qc);const Gc=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],N1=b("monitor",Gc);const Xc=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],L1=b("moon",Xc);const Yc=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],_1=b("network",Yc);const Zc=[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]],I1=b("paintbrush",Zc);const Jc=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],O1=b("palette",Jc);const Qc=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],F1=b("pen",Qc);const tl=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],j1=b("pin-off",tl);const el=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],B1=b("pin",el);const nl=[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]],$1=b("pipette",nl);const sl=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],W1=b("play",sl);const il=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],U1=b("plug",il);const rl=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],z1=b("plus",rl);const ol=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],H1=b("refresh-cw",ol);const al=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],K1=b("rotate-ccw",al);const cl=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],q1=b("save",cl);const ll=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],G1=b("search",ll);const ul=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],X1=b("send",ul);const dl=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Y1=b("settings",dl);const hl=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Z1=b("shield",hl);const fl=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],J1=b("sparkles",fl);const pl=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Q1=b("square",pl);const ml=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],t0=b("sun",ml);const yl=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],e0=b("table",yl);const gl=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],n0=b("terminal",gl);const vl=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]],s0=b("text-align-center",vl);const xl=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 19H7",key:"4cu937"}]],i0=b("text-align-end",xl);const bl=[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]],r0=b("text-align-justify",bl);const wl=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],o0=b("text-align-start",wl);const kl=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],a0=b("thumbs-up",kl);const Sl=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],c0=b("timer",Sl);const Ml=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],l0=b("trash-2",Ml);const Tl=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],u0=b("trending-down",Tl);const Cl=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],d0=b("trending-up",Cl);const El=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],h0=b("triangle-alert",El);const Pl=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],f0=b("type",Pl);const Al=[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]],p0=b("underline",Al);const Rl=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],m0=b("upload",Rl);const Dl=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],y0=b("user",Dl);const Vl=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],g0=b("wifi",Vl);const Nl=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],v0=b("x",Nl);const Ll=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],x0=b("zap",Ll),Yn=h.createContext({});function Zn(t){const e=h.useRef(null);return e.current===null&&(e.current=t()),e.current}const mr=typeof window<"u",yr=mr?h.useLayoutEffect:h.useEffect,$e=h.createContext(null);function Jn(t,e){t.indexOf(e)===-1&&t.push(e)}function Qn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ct=(t,e,n)=>n>e?e:n<t?t:n;let ts=()=>{};const ft={},gr=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function vr(t){return typeof t=="object"&&t!==null}const xr=t=>/^0[^.\s]+$/u.test(t);function es(t){let e;return()=>(e===void 0&&(e=t()),e)}const et=t=>t,_l=(t,e)=>n=>e(t(n)),ue=(...t)=>t.reduce(_l),se=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class ns{constructor(){this.subscriptions=[]}add(e){return Jn(this.subscriptions,e),()=>Qn(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const dt=t=>t*1e3,tt=t=>t/1e3;function br(t,e){return e?t*(1e3/e):0}const wr=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Il=1e-7,Ol=12;function Fl(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=wr(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Il&&++a<Ol);return o}function de(t,e,n,s){if(t===e&&n===s)return et;const i=r=>Fl(r,0,1,t,n);return r=>r===0||r===1?r:wr(i(r),e,s)}const kr=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Sr=t=>e=>1-t(1-e),Mr=de(.33,1.53,.69,.99),ss=Sr(Mr),Tr=kr(ss),Cr=t=>(t*=2)<1?.5*ss(t):.5*(2-Math.pow(2,-10*(t-1))),is=t=>1-Math.sin(Math.acos(t)),Er=Sr(is),Pr=kr(is),jl=de(.42,0,1,1),Bl=de(0,0,.58,1),Ar=de(.42,0,.58,1),$l=t=>Array.isArray(t)&&typeof t[0]!="number",Rr=t=>Array.isArray(t)&&typeof t[0]=="number",Wl={linear:et,easeIn:jl,easeInOut:Ar,easeOut:Bl,circIn:is,circInOut:Pr,circOut:Er,backIn:ss,backInOut:Tr,backOut:Mr,anticipate:Cr},Ul=t=>typeof t=="string",Is=t=>{if(Rr(t)){ts(t.length===4);const[e,n,s,i]=t;return de(e,n,s,i)}else if(Ul(t))return Wl[t];return t},ve=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function zl(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){o.has(u)&&(l.schedule(u),t()),u(a)}const l={schedule:(u,d=!1,f=!1)=>{const y=f&&i?n:s;return d&&o.add(u),y.has(u)||y.add(u),u},cancel:u=>{s.delete(u),o.delete(u)},process:u=>{if(a=u,i){r=!0;return}i=!0,[n,s]=[s,n],n.forEach(c),n.clear(),i=!1,r&&(r=!1,l.process(u))}};return l}const Hl=40;function Dr(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=ve.reduce((x,M)=>(x[M]=zl(r),x),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:y}=o,m=()=>{const x=ft.useManualTiming?i.timestamp:performance.now();n=!1,ft.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(x-i.timestamp,Hl),1)),i.timestamp=x,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),y.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(m))},g=()=>{n=!0,s=!0,i.isProcessing||t(m)};return{schedule:ve.reduce((x,M)=>{const S=o[M];return x[M]=(E,T=!1,P=!1)=>(n||g(),S.schedule(E,T,P)),x},{}),cancel:x=>{for(let M=0;M<ve.length;M++)o[ve[M]].cancel(x)},state:i,steps:o}}const{schedule:I,cancel:xt,state:z,steps:Ye}=Dr(typeof requestAnimationFrame<"u"?requestAnimationFrame:et,!0);let Ee;function Kl(){Ee=void 0}const X={now:()=>(Ee===void 0&&X.set(z.isProcessing||ft.useManualTiming?z.timestamp:performance.now()),Ee),set:t=>{Ee=t,queueMicrotask(Kl)}},Vr=t=>e=>typeof e=="string"&&e.startsWith(t),Nr=Vr("--"),ql=Vr("var(--"),rs=t=>ql(t)?Gl.test(t.split("/*")[0].trim()):!1,Gl=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Os(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Ht={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ie={...Ht,transform:t=>ct(0,1,t)},xe={...Ht,default:1},Qt=t=>Math.round(t*1e5)/1e5,os=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Xl(t){return t==null}const Yl=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,as=(t,e)=>n=>!!(typeof n=="string"&&Yl.test(n)&&n.startsWith(t)||e&&!Xl(n)&&Object.prototype.hasOwnProperty.call(n,e)),Lr=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(os);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Zl=t=>ct(0,255,t),Ze={...Ht,transform:t=>Math.round(Zl(t))},Ct={test:as("rgb","red"),parse:Lr("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Ze.transform(t)+", "+Ze.transform(e)+", "+Ze.transform(n)+", "+Qt(ie.transform(s))+")"};function Jl(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Sn={test:as("#"),parse:Jl,transform:Ct.transform},he=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),mt=he("deg"),at=he("%"),C=he("px"),Ql=he("vh"),tu=he("vw"),Fs={...at,parse:t=>at.parse(t)/100,transform:t=>at.transform(t*100)},Ft={test:as("hsl","hue"),parse:Lr("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+at.transform(Qt(e))+", "+at.transform(Qt(n))+", "+Qt(ie.transform(s))+")"},$={test:t=>Ct.test(t)||Sn.test(t)||Ft.test(t),parse:t=>Ct.test(t)?Ct.parse(t):Ft.test(t)?Ft.parse(t):Sn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Ct.transform(t):Ft.transform(t),getAnimatableNone:t=>{const e=$.parse(t);return e.alpha=0,$.transform(e)}},eu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nu(t){return isNaN(t)&&typeof t=="string"&&(t.match(os)?.length||0)+(t.match(eu)?.length||0)>0}const _r="number",Ir="color",su="var",iu="var(",js="${}",ru=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function re(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(ru,c=>($.test(c)?(s.color.push(r),i.push(Ir),n.push($.parse(c))):c.startsWith(iu)?(s.var.push(r),i.push(su),n.push(c)):(s.number.push(r),i.push(_r),n.push(parseFloat(c))),++r,js)).split(js);return{values:n,split:a,indexes:s,types:i}}function Or(t){return re(t).values}function Fr(t){const{split:e,types:n}=re(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===_r?r+=Qt(i[o]):a===Ir?r+=$.transform(i[o]):r+=i[o]}return r}}const ou=t=>typeof t=="number"?0:$.test(t)?$.getAnimatableNone(t):t;function au(t){const e=Or(t);return Fr(t)(e.map(ou))}const bt={test:nu,parse:Or,createTransformer:Fr,getAnimatableNone:au};function Je(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function cu({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=Je(c,a,t+1/3),r=Je(c,a,t),o=Je(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Ne(t,e){return n=>n>0?e:t}const F=(t,e,n)=>t+(e-t)*n,Qe=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},lu=[Sn,Ct,Ft],uu=t=>lu.find(e=>e.test(t));function Bs(t){const e=uu(t);if(!e)return!1;let n=e.parse(t);return e===Ft&&(n=cu(n)),n}const $s=(t,e)=>{const n=Bs(t),s=Bs(e);if(!n||!s)return Ne(t,e);const i={...n};return r=>(i.red=Qe(n.red,s.red,r),i.green=Qe(n.green,s.green,r),i.blue=Qe(n.blue,s.blue,r),i.alpha=F(n.alpha,s.alpha,r),Ct.transform(i))},Mn=new Set(["none","hidden"]);function du(t,e){return Mn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function hu(t,e){return n=>F(t,e,n)}function cs(t){return typeof t=="number"?hu:typeof t=="string"?rs(t)?Ne:$.test(t)?$s:mu:Array.isArray(t)?jr:typeof t=="object"?$.test(t)?$s:fu:Ne}function jr(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>cs(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function fu(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=cs(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function pu(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const mu=(t,e)=>{const n=bt.createTransformer(e),s=re(t),i=re(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Mn.has(t)&&!i.values.length||Mn.has(e)&&!s.values.length?du(t,e):ue(jr(pu(s,i),i.values),n):Ne(t,e)};function Br(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?F(t,e,n):cs(t)(t,e)}const yu=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>I.update(e,n),stop:()=>xt(e),now:()=>z.isProcessing?z.timestamp:X.now()}},$r=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Le=2e4;function ls(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Le;)e+=n,s=t.next(e);return e>=Le?1/0:e}function gu(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(ls(s),Le);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:tt(i)}}const vu=5;function Wr(t,e,n){const s=Math.max(e-vu,0);return br(n-t(s),e-s)}const j={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},tn=.001;function xu({duration:t=j.duration,bounce:e=j.bounce,velocity:n=j.velocity,mass:s=j.mass}){let i,r,o=1-e;o=ct(j.minDamping,j.maxDamping,o),t=ct(j.minDuration,j.maxDuration,tt(t)),o<1?(i=l=>{const u=l*o,d=u*t,f=u-n,p=Tn(l,o),y=Math.exp(-d);return tn-f/p*y},r=l=>{const d=l*o*t,f=d*n+n,p=Math.pow(o,2)*Math.pow(l,2)*t,y=Math.exp(-d),m=Tn(Math.pow(l,2),o);return(-i(l)+tn>0?-1:1)*((f-p)*y)/m}):(i=l=>{const u=Math.exp(-l*t),d=(l-n)*t+1;return-tn+u*d},r=l=>{const u=Math.exp(-l*t),d=(n-l)*(t*t);return u*d});const a=5/t,c=wu(i,r,a);if(t=dt(t),isNaN(c))return{stiffness:j.stiffness,damping:j.damping,duration:t};{const l=Math.pow(c,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:t}}}const bu=12;function wu(t,e,n){let s=n;for(let i=1;i<bu;i++)s=s-t(s)/e(s);return s}function Tn(t,e){return t*Math.sqrt(1-e*e)}const ku=["duration","bounce"],Su=["stiffness","damping","mass"];function Ws(t,e){return e.some(n=>t[n]!==void 0)}function Mu(t){let e={velocity:j.velocity,stiffness:j.stiffness,damping:j.damping,mass:j.mass,isResolvedFromDuration:!1,...t};if(!Ws(t,Su)&&Ws(t,ku))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*ct(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:j.mass,stiffness:i,damping:r}}else{const n=xu(t);e={...e,...n,mass:j.mass},e.isResolvedFromDuration=!0}return e}function _e(t=j.visualDuration,e=j.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Mu({...n,velocity:-tt(n.velocity||0)}),y=f||0,m=l/(2*Math.sqrt(c*u)),g=o-r,v=tt(Math.sqrt(c/u)),k=Math.abs(g)<5;s||(s=k?j.restSpeed.granular:j.restSpeed.default),i||(i=k?j.restDelta.granular:j.restDelta.default);let x;if(m<1){const S=Tn(v,m);x=E=>{const T=Math.exp(-m*v*E);return o-T*((y+m*v*g)/S*Math.sin(S*E)+g*Math.cos(S*E))}}else if(m===1)x=S=>o-Math.exp(-v*S)*(g+(y+v*g)*S);else{const S=v*Math.sqrt(m*m-1);x=E=>{const T=Math.exp(-m*v*E),P=Math.min(S*E,300);return o-T*((y+m*v*g)*Math.sinh(P)+S*g*Math.cosh(P))/S}}const M={calculatedDuration:p&&d||null,next:S=>{const E=x(S);if(p)a.done=S>=d;else{let T=S===0?y:0;m<1&&(T=S===0?dt(y):Wr(x,S,E));const P=Math.abs(T)<=s,D=Math.abs(o-E)<=i;a.done=P&&D}return a.value=a.done?o:E,a},toString:()=>{const S=Math.min(ls(M),Le),E=$r(T=>M.next(S*T).value,S,30);return S+"ms "+E},toTransition:()=>{}};return M}_e.applyToOptions=t=>{const e=gu(t,100,_e);return t.ease=e.ease,t.duration=dt(e.duration),t.type="keyframes",t};function Cn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=t[0],f={done:!1,value:d},p=P=>a!==void 0&&P<a||c!==void 0&&P>c,y=P=>a===void 0?c:c===void 0||Math.abs(a-P)<Math.abs(c-P)?a:c;let m=n*e;const g=d+m,v=o===void 0?g:o(g);v!==g&&(m=v-d);const k=P=>-m*Math.exp(-P/s),x=P=>v+k(P),M=P=>{const D=k(P),L=x(P);f.done=Math.abs(D)<=l,f.value=f.done?v:L};let S,E;const T=P=>{p(f.value)&&(S=P,E=_e({keyframes:[f.value,y(f.value)],velocity:Wr(x,P,f.value),damping:i,stiffness:r,restDelta:l,restSpeed:u}))};return T(0),{calculatedDuration:null,next:P=>{let D=!1;return!E&&S===void 0&&(D=!0,M(P),T(P)),S!==void 0&&P>=S?E.next(P-S):(!D&&M(P),f)}}}function Tu(t,e,n){const s=[],i=n||ft.mix||Br,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||et:e;a=ue(c,a)}s.push(a)}return s}function Cu(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(ts(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Tu(e,s,i),c=a.length,l=u=>{if(o&&u<t[0])return e[0];let d=0;if(c>1)for(;d<t.length-2&&!(u<t[d+1]);d++);const f=se(t[d],t[d+1],u);return a[d](f)};return n?u=>l(ct(t[0],t[r-1],u)):l}function Eu(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=se(0,e,s);t.push(F(n,1,i))}}function Pu(t){const e=[0];return Eu(e,t.length-1),e}function Au(t,e){return t.map(n=>n*e)}function Ru(t,e){return t.map(()=>e||Ar).splice(0,t.length-1)}function te({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=$l(s)?s.map(Is):Is(s),r={done:!1,value:e[0]},o=Au(n&&n.length===e.length?n:Pu(e),t),a=Cu(o,e,{ease:Array.isArray(i)?i:Ru(e,i)});return{calculatedDuration:t,next:c=>(r.value=a(c),r.done=c>=t,r)}}const Du=t=>t!==null;function us(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(Du),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Vu={decay:Cn,inertia:Cn,tween:te,keyframes:te,spring:_e};function Ur(t){typeof t.type=="string"&&(t.type=Vu[t.type])}class ds{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Nu=t=>t/100;class hs extends ds{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==X.now()&&this.tick(X.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Ur(e);const{type:n=te,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const c=n||te;c!==te&&typeof a[0]!="number"&&(this.mixKeyframes=ue(Nu,Br(a[0],a[1])),a=[0,100]);const l=c({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=ls(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:y,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,M=s;if(d){const P=Math.min(this.currentTime,i)/a;let D=Math.floor(P),L=P%1;!L&&P>=1&&(L=1),L===1&&D--,D=Math.min(D,d+1),D%2&&(f==="reverse"?(L=1-L,p&&(L-=p/a)):f==="mirror"&&(M=o)),x=ct(0,1,L)*a}const S=k?{done:!1,value:u[0]}:M.next(x);r&&(S.value=r(S.value));let{done:E}=S;!k&&c!==null&&(E=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return T&&y!==Cn&&(S.value=us(u,this.options,g,this.speed)),m&&m(S.value),T&&this.finish(),S}then(e,n){return this.finished.then(e,n)}get duration(){return tt(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+tt(e)}get time(){return tt(this.currentTime)}set time(e){e=dt(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(X.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=tt(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=yu,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(X.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Lu(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Et=t=>t*180/Math.PI,En=t=>{const e=Et(Math.atan2(t[1],t[0]));return Pn(e)},_u={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:En,rotateZ:En,skewX:t=>Et(Math.atan(t[1])),skewY:t=>Et(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Pn=t=>(t=t%360,t<0&&(t+=360),t),Us=En,zs=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Hs=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Iu={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zs,scaleY:Hs,scale:t=>(zs(t)+Hs(t))/2,rotateX:t=>Pn(Et(Math.atan2(t[6],t[5]))),rotateY:t=>Pn(Et(Math.atan2(-t[2],t[0]))),rotateZ:Us,rotate:Us,skewX:t=>Et(Math.atan(t[4])),skewY:t=>Et(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function An(t){return t.includes("scale")?1:0}function Rn(t,e){if(!t||t==="none")return An(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Iu,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=_u,i=a}if(!i)return An(e);const r=s[e],o=i[1].split(",").map(Fu);return typeof r=="function"?r(o):o[r]}const Ou=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Rn(n,e)};function Fu(t){return parseFloat(t.trim())}const Kt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qt=new Set(Kt),Ks=t=>t===Ht||t===C,ju=new Set(["x","y","z"]),Bu=Kt.filter(t=>!ju.has(t));function $u(t){const e=[];return Bu.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const gt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Rn(e,"x"),y:(t,{transform:e})=>Rn(e,"y")};gt.translateX=gt.x;gt.translateY=gt.y;const Pt=new Set;let Dn=!1,Vn=!1,Nn=!1;function zr(){if(Vn){const t=Array.from(Pt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=$u(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Vn=!1,Dn=!1,Pt.forEach(t=>t.complete(Nn)),Pt.clear()}function Hr(){Pt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Vn=!0)})}function Wu(){Nn=!0,Hr(),zr(),Nn=!1}class fs{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Pt.add(this),Dn||(Dn=!0,I.read(Hr),I.resolveKeyframes(zr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}Lu(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Pt.delete(this)}cancel(){this.state==="scheduled"&&(Pt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Uu=t=>t.startsWith("--");function zu(t,e,n){Uu(e)?t.style.setProperty(e,n):t.style[e]=n}const Hu=es(()=>window.ScrollTimeline!==void 0),Ku={};function qu(t,e){const n=es(t);return()=>Ku[e]??n()}const Kr=qu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Zt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,qs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zt([0,.65,.55,1]),circOut:Zt([.55,0,1,.45]),backIn:Zt([.31,.01,.66,-.59]),backOut:Zt([.33,1.53,.69,.99])};function qr(t,e){if(t)return typeof t=="function"?Kr()?$r(t,e):"ease-out":Rr(t)?Zt(t):Array.isArray(t)?t.map(n=>qr(n,e)||qs.easeOut):qs[t]}function Gu(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[e]:n};c&&(u.offset=c);const d=qr(a,i);Array.isArray(d)&&(u.easing=d);const f={delay:s,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return l&&(f.pseudoElement=l),t.animate(u,f)}function Gr(t){return typeof t=="function"&&"applyToOptions"in t}function Xu({type:t,...e}){return Gr(t)&&Kr()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Yu extends ds{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,ts(typeof e.type!="string");const l=Xu(e);this.animation=Gu(n,s,i,l,r),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=us(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):zu(n,s,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return tt(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+tt(e)}get time(){return tt(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=dt(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Hu()?(this.animation.timeline=e,et):n(this)}}const Xr={anticipate:Cr,backInOut:Tr,circInOut:Pr};function Zu(t){return t in Xr}function Ju(t){typeof t.ease=="string"&&Zu(t.ease)&&(t.ease=Xr[t.ease])}const en=10;class Qu extends Yu{constructor(e){Ju(e),Ur(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new hs({...o,autoplay:!1}),c=Math.max(en,X.now()-this.startTime),l=ct(0,en,c-en);n.setWithVelocity(a.sample(Math.max(0,c-l)).value,a.sample(c).value,l),a.stop()}}const Gs=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(bt.test(t)||t==="0")&&!t.startsWith("url("));function td(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ed(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Gs(i,e),a=Gs(r,e);return!o||!a?!1:td(t)||(n==="spring"||Gr(n))&&s}function Ln(t){t.duration=0,t.type="keyframes"}const nd=new Set(["opacity","clipPath","filter","transform"]),sd=es(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function id(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=e.owner.getProps();return sd()&&n&&nd.has(n)&&(n!=="transform"||!l)&&!c&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const rd=40;class od extends ds{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:c,motionValue:l,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=X.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:c,motionValue:l,element:u,...d},p=u?.KeyframeResolver||fs;this.keyframeResolver=new p(a,(y,m,g)=>this.onKeyframesResolved(y,m,f,!g),c,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:c,isHandoff:l,onUpdate:u}=s;this.resolvedAt=X.now(),ed(e,r,o,a)||((ft.instantAnimations||!c)&&u?.(us(e,s,n)),e[0]=e[e.length-1],Ln(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>rd?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},p=!l&&id(f),y=f.motionValue?.owner?.current,m=p?new Qu({...f,element:y}):new hs(f);m.finished.then(()=>{this.notifyFinished()}).catch(et),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Wu()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Yr(t,e,n,s=0,i=1){const r=Array.from(t).sort((l,u)=>l.sortNodePosition(u)).indexOf(e),o=t.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const ad=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cd(t){const e=ad.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Zr(t,e,n=1){const[s,i]=cd(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return gr(o)?parseFloat(o):o}return rs(i)?Zr(i,e,n+1):i}const ld={type:"spring",stiffness:500,damping:25,restSpeed:10},ud=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),dd={type:"keyframes",duration:.8},hd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fd=(t,{keyframes:e})=>e.length>2?dd:qt.has(t)?t.startsWith("scale")?ud(e[1]):ld:hd,pd=t=>t!==null;function md(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(pd),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[r]}function ps(t,e){return t?.[e]??t?.default??t}function yd({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const ms=(t,e,n,s={},i,r)=>o=>{const a=ps(s,t)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-dt(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};yd(a)||Object.assign(u,fd(t,u)),u.duration&&(u.duration=dt(u.duration)),u.repeatDelay&&(u.repeatDelay=dt(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ln(u),u.delay===0&&(d=!0)),(ft.instantAnimations||ft.skipAnimations)&&(d=!0,Ln(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!r&&e.get()!==void 0){const f=md(u.keyframes,a);if(f!==void 0){I.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new hs(u):new od(u)};function Xs(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function ys(t,e,n,s){if(typeof e=="function"){const[i,r]=Xs(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=Xs(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function Wt(t,e,n){const s=t.getProps();return ys(s,e,n!==void 0?n:s.custom,t)}const Jr=new Set(["width","height","top","left","right","bottom",...Kt]),Ys=30,gd=t=>!isNaN(parseFloat(t));class vd{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=X.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=X.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=gd(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ns);const s=this.events[e].add(n);return e==="change"?()=>{s(),I.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=X.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ys)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ys);return br(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zt(t,e){return new vd(t,e)}const _n=t=>Array.isArray(t);function xd(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,zt(n))}function bd(t){return _n(t)?t[t.length-1]||0:t}function wd(t,e){const n=Wt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=bd(r[o]);xd(t,o,a)}}const K=t=>!!(t&&t.getVelocity);function kd(t){return!!(K(t)&&t.add)}function In(t,e){const n=t.getValue("willChange");if(kd(n))return n.add(e);if(!n&&ft.WillChange){const s=new ft.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function gs(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Sd="framerAppearId",Qr="data-"+gs(Sd);function to(t){return t.props[Qr]}function Md({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function eo(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;const c=r?.reduceMotion;s&&(r=s);const l=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const d in a){const f=t.getValue(d,t.latestValues[d]??null),p=a[d];if(p===void 0||u&&Md(u,d))continue;const y={delay:n,...ps(r||{},d)},m=f.get();if(m!==void 0&&!f.isAnimating&&!Array.isArray(p)&&p===m&&!y.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const x=to(t);if(x){const M=window.MotionHandoffAnimation(x,d,I);M!==null&&(y.startTime=M,g=!0)}}In(t,d);const v=c??t.shouldReduceMotion;f.start(ms(d,f,p,v&&Jr.has(d)?{type:!1}:y,t,g));const k=f.animation;k&&l.push(k)}return o&&Promise.all(l).then(()=>{I.update(()=>{o&&wd(t,o)})}),l}function On(t,e,n={}){const s=Wt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(eo(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:d}=i;return Td(t,e,c,l,u,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,l]=a==="beforeChildren"?[r,o]:[o,r];return c().then(()=>l())}else return Promise.all([r(),o(n.delay)])}function Td(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(On(c,e,{...o,delay:n+(typeof s=="function"?0:s)+Yr(t.variantChildren,c,s,i,r)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function Cd(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>On(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=On(t,e,n);else{const i=typeof e=="function"?Wt(t,e,n.custom):e;s=Promise.all(eo(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Ed={test:t=>t==="auto",parse:t=>t},no=t=>e=>e.test(t),so=[Ht,C,at,mt,tu,Ql,Ed],Zs=t=>so.find(no(t));function Pd(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||xr(t):!0}const Ad=new Set(["brightness","contrast","saturate","opacity"]);function Rd(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(os)||[];if(!s)return t;const i=n.replace(s,"");let r=Ad.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Dd=/\b([a-z-]*)\(.*?\)/gu,Fn={...bt,getAnimatableNone:t=>{const e=t.match(Dd);return e?e.map(Rd).join(" "):t}},Js={...Ht,transform:Math.round},Vd={rotate:mt,rotateX:mt,rotateY:mt,rotateZ:mt,scale:xe,scaleX:xe,scaleY:xe,scaleZ:xe,skew:mt,skewX:mt,skewY:mt,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:ie,originX:Fs,originY:Fs,originZ:C},vs={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,top:C,right:C,bottom:C,left:C,inset:C,insetBlock:C,insetBlockStart:C,insetBlockEnd:C,insetInline:C,insetInlineStart:C,insetInlineEnd:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,paddingBlock:C,paddingBlockStart:C,paddingBlockEnd:C,paddingInline:C,paddingInlineStart:C,paddingInlineEnd:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,marginBlock:C,marginBlockStart:C,marginBlockEnd:C,marginInline:C,marginInlineStart:C,marginInlineEnd:C,fontSize:C,backgroundPositionX:C,backgroundPositionY:C,...Vd,zIndex:Js,fillOpacity:ie,strokeOpacity:ie,numOctaves:Js},Nd={...vs,color:$,backgroundColor:$,outlineColor:$,fill:$,stroke:$,borderColor:$,borderTopColor:$,borderRightColor:$,borderBottomColor:$,borderLeftColor:$,filter:Fn,WebkitFilter:Fn},io=t=>Nd[t];function ro(t,e){let n=io(t);return n!==Fn&&(n=bt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ld=new Set(["auto","none","0"]);function _d(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!Ld.has(r)&&re(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=ro(n,i)}class Id extends fs{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let d=e[u];if(typeof d=="string"&&(d=d.trim(),rs(d))){const f=Zr(d,n.current);f!==void 0&&(e[u]=f),u===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Jr.has(s)||e.length!==2)return;const[i,r]=e,o=Zs(i),a=Zs(r),c=Os(i),l=Os(r);if(c!==l&&gt[s]){this.needsMeasurement=!0;return}if(o!==a)if(Ks(o)&&Ks(a))for(let u=0;u<e.length;u++){const d=e[u];typeof d=="string"&&(e[u]=parseFloat(d))}else gt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Pd(e[i]))&&s.push(i);s.length&&_d(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=gt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=gt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function Od(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const oo=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function jn(t){return vr(t)&&"offsetHeight"in t}const{schedule:xs}=Dr(queueMicrotask,!1),st={x:!1,y:!1};function ao(){return st.x||st.y}function Fd(t){return t==="x"||t==="y"?st[t]?null:(st[t]=!0,()=>{st[t]=!1}):st.x||st.y?null:(st.x=st.y=!0,()=>{st.x=st.y=!1})}function co(t,e){const n=Od(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Qs(t){return!(t.pointerType==="touch"||ao())}function jd(t,e,n={}){const[s,i,r]=co(t,n),o=a=>{if(!Qs(a))return;const{target:c}=a,l=e(c,a);if(typeof l!="function"||!c)return;const u=d=>{Qs(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,i)};return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}const lo=(t,e)=>e?t===e?!0:lo(t,e.parentElement):!1,bs=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Bd=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function uo(t){return Bd.has(t.tagName)||t.isContentEditable===!0}const Pe=new WeakSet;function ti(t){return e=>{e.key==="Enter"&&t(e)}}function nn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const $d=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=ti(()=>{if(Pe.has(n))return;nn(n,"down");const i=ti(()=>{nn(n,"up")}),r=()=>nn(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function ei(t){return bs(t)&&!ao()}function Wd(t,e,n={}){const[s,i,r]=co(t,n),o=a=>{const c=a.currentTarget;if(!ei(a))return;Pe.add(c);const l=e(c,a),u=(p,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Pe.has(c)&&Pe.delete(c),ei(p)&&typeof l=="function"&&l(p,{success:y})},d=p=>{u(p,c===window||c===document||n.useGlobalTarget||lo(c,p.target))},f=p=>{u(p,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),jn(a)&&(a.addEventListener("focus",l=>$d(l,i)),!uo(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function ho(t){return vr(t)&&"ownerSVGElement"in t}function Ud(t){return ho(t)&&t.tagName==="svg"}const zd=[...so,$,bt],Hd=t=>zd.find(no(t)),ni=()=>({translate:0,scale:1,origin:0,originPoint:0}),jt=()=>({x:ni(),y:ni()}),si=()=>({min:0,max:0}),U=()=>({x:si(),y:si()}),Bn={current:null},fo={current:!1},Kd=typeof window<"u";function qd(){if(fo.current=!0,!!Kd)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Bn.current=t.matches;t.addEventListener("change",e),e()}else Bn.current=!1}const Gd=new WeakMap;function We(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function oe(t){return typeof t=="string"||Array.isArray(t)}const ws=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ks=["initial",...ws];function Ue(t){return We(t.animate)||ks.some(e=>oe(t[e]))}function po(t){return!!(Ue(t)||t.variants)}function Xd(t,e,n){for(const s in e){const i=e[s],r=n[s];if(K(i))t.addValue(s,i);else if(K(r))t.addValue(s,zt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,zt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ii=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ie={};function mo(t){Ie=t}function Yd(){return Ie}class Zd{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=fs,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=X.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,I.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=Ue(n),this.isVariantNode=po(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];c[f]!==void 0&&K(p)&&p.set(c[f])}}mount(e){this.current=e,Gd.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(fo.current||qd(),this.shouldReduceMotion=Bn.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),xt(this.notifyUpdate),xt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=qt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&I.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Ie){const n=Ie[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):U()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ii.length;s++){const i=ii[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Xd(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=zt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(gr(s)||xr(s))?s=parseFloat(s):!Hd(s)&&bt.test(n)&&(s=ro(e,n)),this.setBaseTarget(e,K(s)?s.get():s)),K(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=ys(this.props,n,this.presenceContext?.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!K(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ns),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){xs.render(this.render)}}class yo extends Zd{constructor(){super(...arguments),this.KeyframeResolver=Id}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;K(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class St{constructor(e){this.isMounted=!1,this.node=e}update(){}}function go({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Jd({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Qd(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function sn(t){return t===void 0||t===1}function $n({scale:t,scaleX:e,scaleY:n}){return!sn(t)||!sn(e)||!sn(n)}function Tt(t){return $n(t)||vo(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function vo(t){return ri(t.x)||ri(t.y)}function ri(t){return t&&t!=="0%"}function Oe(t,e,n){const s=t-n,i=e*s;return n+i}function oi(t,e,n,s,i){return i!==void 0&&(t=Oe(t,i,s)),Oe(t,n,s)+e}function Wn(t,e=0,n=1,s,i){t.min=oi(t.min,e,n,s,i),t.max=oi(t.max,e,n,s,i)}function xo(t,{x:e,y:n}){Wn(t.x,e.translate,e.scale,e.originPoint),Wn(t.y,n.translate,n.scale,n.originPoint)}const ai=.999999999999,ci=1.0000000000001;function th(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:c}=r.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&$t(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,xo(t,o)),s&&Tt(r.latestValues)&&$t(t,r.latestValues))}e.x<ci&&e.x>ai&&(e.x=1),e.y<ci&&e.y>ai&&(e.y=1)}function Bt(t,e){t.min=t.min+e,t.max=t.max+e}function li(t,e,n,s,i=.5){const r=F(t.min,t.max,i);Wn(t,e,n,r,s)}function $t(t,e){li(t.x,e.x,e.scaleX,e.scale,e.originX),li(t.y,e.y,e.scaleY,e.scale,e.originY)}function bo(t,e){return go(Qd(t.getBoundingClientRect(),e))}function eh(t,e,n){const s=bo(t,n),{scroll:i}=e;return i&&(Bt(s.x,i.offset.x),Bt(s.y,i.offset.y)),s}const nh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sh=Kt.length;function ih(t,e,n){let s="",i=!0;for(let r=0;r<sh;r++){const o=Kt[r],a=t[o];if(a===void 0)continue;let c=!0;if(typeof a=="number")c=a===(o.startsWith("scale")?1:0);else{const l=parseFloat(a);c=o.startsWith("scale")?l===1:l===0}if(!c||n){const l=oo(a,vs[o]);if(!c){i=!1;const u=nh[o]||o;s+=`${u}(${l}) `}n&&(e[o]=l)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Ss(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const c in e){const l=e[c];if(qt.has(c)){o=!0;continue}else if(Nr(c)){i[c]=l;continue}else{const u=oo(l,vs[c]);c.startsWith("origin")?(a=!0,r[c]=u):s[c]=u}}if(e.transform||(o||n?s.transform=ih(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=r;s.transformOrigin=`${c} ${l} ${u}`}}function wo(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function ui(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Xt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;const n=ui(t,e.target.x),s=ui(t,e.target.y);return`${n}% ${s}%`}},rh={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=bt.parse(t);if(i.length>5)return s;const r=bt.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=c;const l=F(a,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),r(i)}},Un={borderRadius:{...Xt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Xt,borderTopRightRadius:Xt,borderBottomLeftRadius:Xt,borderBottomRightRadius:Xt,boxShadow:rh};function ko(t,{layout:e,layoutId:n}){return qt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Un[t]||t==="opacity")}function Ms(t,e,n){const s=t.style,i=e?.style,r={};if(!s)return r;for(const o in s)(K(s[o])||i&&K(i[o])||ko(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=s[o]);return r}function oh(t){return window.getComputedStyle(t)}class ah extends yo{constructor(){super(...arguments),this.type="html",this.renderInstance=wo}readValueFromInstance(e,n){if(qt.has(n))return this.projection?.isProjecting?An(n):Ou(e,n);{const s=oh(e),i=(Nr(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return bo(e,n)}build(e,n,s){Ss(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Ms(e,n,s)}}const ch={offset:"stroke-dashoffset",array:"stroke-dasharray"},lh={offset:"strokeDashoffset",array:"strokeDasharray"};function uh(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?ch:lh;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const dh=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function So(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},c,l,u){if(Ss(t,a,l),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:f}=t;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete d.transformBox);for(const p of dh)d[p]!==void 0&&(f[p]=d[p],delete d[p]);e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),i!==void 0&&uh(d,i,r,o,!1)}const Mo=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),To=t=>typeof t=="string"&&t.toLowerCase()==="svg";function hh(t,e,n,s){wo(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Mo.has(i)?i:gs(i),e.attrs[i])}function Co(t,e,n){const s=Ms(t,e,n);for(const i in t)if(K(t[i])||K(e[i])){const r=Kt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class fh extends yo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=U}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(qt.has(n)){const s=io(n);return s&&s.default||0}return n=Mo.has(n)?n:gs(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Co(e,n,s)}build(e,n,s){So(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){hh(e,n,s,i)}mount(e){this.isSVGTag=To(e.tagName),super.mount(e)}}const ph=ks.length;function Eo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Eo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<ph;n++){const s=ks[n],i=t.props[s];(oe(i)||i===!1)&&(e[s]=i)}return e}function Po(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const mh=[...ws].reverse(),yh=ws.length;function gh(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Cd(t,n,s)))}function vh(t){let e=gh(t),n=di(),s=!0;const i=c=>(l,u)=>{const d=Wt(t,u,c==="exit"?t.presenceContext?.custom:void 0);if(d){const{transition:f,transitionEnd:p,...y}=d;l={...l,...y,...p}}return l};function r(c){e=c(t)}function o(c){const{props:l}=t,u=Eo(t.parent)||{},d=[],f=new Set;let p={},y=1/0;for(let g=0;g<yh;g++){const v=mh[g],k=n[v],x=l[v]!==void 0?l[v]:u[v],M=oe(x),S=v===c?k.isActive:null;S===!1&&(y=g);let E=x===u[v]&&x!==l[v]&&M;if(E&&s&&t.manuallyAnimateOnMount&&(E=!1),k.protectedKeys={...p},!k.isActive&&S===null||!x&&!k.prevProp||We(x)||typeof x=="boolean")continue;const T=xh(k.prevProp,x);let P=T||v===c&&k.isActive&&!E&&M||g>y&&M,D=!1;const L=Array.isArray(x)?x:[x];let W=L.reduce(i(v),{});S===!1&&(W={});const{prevResolvedValues:J={}}=k,Vt={...J,...W},lt=B=>{P=!0,f.has(B)&&(D=!0,f.delete(B)),k.needsAnimating[B]=!0;const q=t.getValue(B);q&&(q.liveStyle=!1)};for(const B in Vt){const q=W[B],rt=J[B];if(p.hasOwnProperty(B))continue;let ut=!1;_n(q)&&_n(rt)?ut=!Po(q,rt):ut=q!==rt,ut?q!=null?lt(B):f.add(B):q!==void 0&&f.has(B)?lt(B):k.protectedKeys[B]=!0}k.prevProp=x,k.prevResolvedValues=W,k.isActive&&(p={...p,...W}),s&&t.blockInitialAnimation&&(P=!1);const pt=E&&T;P&&(!pt||D)&&d.push(...L.map(B=>{const q={type:v};if(typeof B=="string"&&s&&!pt&&t.manuallyAnimateOnMount&&t.parent){const{parent:rt}=t,ut=Wt(rt,B);if(rt.enteringChildren&&ut){const{delayChildren:ye}=ut.transition||{};q.delay=Yr(rt.enteringChildren,t,ye)}}return{animation:B,options:q}}))}if(f.size){const g={};if(typeof l.initial!="boolean"){const v=Wt(t,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(g.transition=v.transition)}f.forEach(v=>{const k=t.getBaseTarget(v),x=t.getValue(v);x&&(x.liveStyle=!0),g[v]=k??null}),d.push({animation:g})}let m=!!d.length;return s&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(d):Promise.resolve()}function a(c,l){if(n[c].isActive===l)return Promise.resolve();t.variantChildren?.forEach(d=>d.animationState?.setActive(c,l)),n[c].isActive=l;const u=o(c);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=di()}}}function xh(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Po(e,t):!1}function Mt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function di(){return{animate:Mt(!0),whileInView:Mt(),whileHover:Mt(),whileTap:Mt(),whileDrag:Mt(),whileFocus:Mt(),exit:Mt()}}function hi(t,e){t.min=e.min,t.max=e.max}function nt(t,e){hi(t.x,e.x),hi(t.y,e.y)}function fi(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Ao=1e-4,bh=1-Ao,wh=1+Ao,Ro=.01,kh=0-Ro,Sh=0+Ro;function Y(t){return t.max-t.min}function Mh(t,e,n){return Math.abs(t-e)<=n}function pi(t,e,n,s=.5){t.origin=s,t.originPoint=F(e.min,e.max,t.origin),t.scale=Y(n)/Y(e),t.translate=F(n.min,n.max,t.origin)-t.originPoint,(t.scale>=bh&&t.scale<=wh||isNaN(t.scale))&&(t.scale=1),(t.translate>=kh&&t.translate<=Sh||isNaN(t.translate))&&(t.translate=0)}function ee(t,e,n,s){pi(t.x,e.x,n.x,s?s.originX:void 0),pi(t.y,e.y,n.y,s?s.originY:void 0)}function mi(t,e,n){t.min=n.min+e.min,t.max=t.min+Y(e)}function Th(t,e,n){mi(t.x,e.x,n.x),mi(t.y,e.y,n.y)}function yi(t,e,n){t.min=e.min-n.min,t.max=t.min+Y(e)}function Fe(t,e,n){yi(t.x,e.x,n.x),yi(t.y,e.y,n.y)}function gi(t,e,n,s,i){return t-=e,t=Oe(t,1/n,s),i!==void 0&&(t=Oe(t,1/i,s)),t}function Ch(t,e=0,n=1,s=.5,i,r=t,o=t){if(at.test(e)&&(e=parseFloat(e),e=F(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=F(r.min,r.max,s);t===r&&(a-=e),t.min=gi(t.min,e,n,a,i),t.max=gi(t.max,e,n,a,i)}function vi(t,e,[n,s,i],r,o){Ch(t,e[n],e[s],e[i],e.scale,r,o)}const Eh=["x","scaleX","originX"],Ph=["y","scaleY","originY"];function xi(t,e,n,s){vi(t.x,e,Eh,n?n.x:void 0,s?s.x:void 0),vi(t.y,e,Ph,n?n.y:void 0,s?s.y:void 0)}function bi(t){return t.translate===0&&t.scale===1}function Do(t){return bi(t.x)&&bi(t.y)}function wi(t,e){return t.min===e.min&&t.max===e.max}function Ah(t,e){return wi(t.x,e.x)&&wi(t.y,e.y)}function ki(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Vo(t,e){return ki(t.x,e.x)&&ki(t.y,e.y)}function Si(t){return Y(t.x)/Y(t.y)}function Mi(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Q(t){return[t("x"),t("y")]}function Rh(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=n?.z||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:f,skewX:p,skewY:y}=n;l&&(s=`perspective(${l}px) ${s}`),u&&(s+=`rotate(${u}deg) `),d&&(s+=`rotateX(${d}deg) `),f&&(s+=`rotateY(${f}deg) `),p&&(s+=`skewX(${p}deg) `),y&&(s+=`skewY(${y}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const No=["TopLeft","TopRight","BottomLeft","BottomRight"],Dh=No.length,Ti=t=>typeof t=="string"?parseFloat(t):t,Ci=t=>typeof t=="number"||C.test(t);function Vh(t,e,n,s,i,r){i?(t.opacity=F(0,n.opacity??1,Nh(s)),t.opacityExit=F(e.opacity??1,0,Lh(s))):r&&(t.opacity=F(e.opacity??1,n.opacity??1,s));for(let o=0;o<Dh;o++){const a=`border${No[o]}Radius`;let c=Ei(e,a),l=Ei(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||Ci(c)===Ci(l)?(t[a]=Math.max(F(Ti(c),Ti(l),s),0),(at.test(l)||at.test(c))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=F(e.rotate||0,n.rotate||0,s))}function Ei(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Nh=Lo(0,.5,Er),Lh=Lo(.5,.95,et);function Lo(t,e,n){return s=>s<t?0:s>e?1:n(se(t,e,s))}function _h(t,e,n){const s=K(t)?t:zt(t);return s.start(ms("",s,e,n)),s.animation}function ae(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Ih=(t,e)=>t.depth-e.depth;class Oh{constructor(){this.children=[],this.isDirty=!1}add(e){Jn(this.children,e),this.isDirty=!0}remove(e){Qn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ih),this.isDirty=!1,this.children.forEach(e)}}function Fh(t,e){const n=X.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(xt(s),t(r-e))};return I.setup(s,!0),()=>xt(s)}function Ae(t){return K(t)?t.get():t}class jh{constructor(){this.members=[]}add(e){Jn(this.members,e),e.scheduleRender()}remove(e){if(Qn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){s=r;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender();const i=s.options.layoutDependency,r=e.options.layoutDependency;i!==void 0&&r!==void 0&&i===r||(e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0));const{crossfade:a}=e.options;a===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Re={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rn=["","X","Y","Z"],Bh=1e3;let $h=0;function on(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function _o(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=to(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",I,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&_o(s)}function Io({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e?.()){this.id=$h++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(zh),this.nodes.forEach(Gh),this.nodes.forEach(Xh),this.nodes.forEach(Hh)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Oh)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ns),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=ho(o)&&!Ud(o),this.instance=o;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;I.read(()=>{d=window.innerWidth}),t(o,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=Fh(f,250),Re.hasAnimatedSinceResize&&(Re.hasAnimatedSinceResize=!1,this.nodes.forEach(Ri)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||l.getDefaultTransition()||tf,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=l.getProps(),v=!this.targetLayout||!Vo(this.targetLayout,p),k=!d&&f;if(this.options.layoutRoot||this.resumeFrom||k||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...ps(y,"layout"),onPlay:m,onComplete:g};(l.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,k)}else d||Ri(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),xt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Yh),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_o(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Pi);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ai);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(qh),this.nodes.forEach(Wh),this.nodes.forEach(Uh)):this.nodes.forEach(Ai),this.clearAllSnapshots();const a=X.now();z.delta=ct(0,1e3/60,a-z.timestamp),z.timestamp=a,z.isProcessing=!0,Ye.update.process(z),Ye.preRender.process(z),Ye.render.process(z),z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Kh),this.sharedNodes.forEach(Zh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,I.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){I.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Y(this.snapshot.measuredBox.x)&&!Y(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=U(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Do(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;o&&this.instance&&(a||Tt(this.latestValues)||u)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),ef(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return U();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(nf))){const{scroll:l}=this.root;l&&(Bt(a.x,l.offset.x),Bt(a.y,l.offset.y))}return a}removeElementScroll(o){const a=U();if(nt(a,o),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:u,options:d}=l;l!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&nt(a,o),Bt(a.x,u.offset.x),Bt(a.y,u.offset.y))}return a}applyTransform(o,a=!1){const c=U();nt(c,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&$t(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Tt(u.latestValues)&&$t(c,u.latestValues)}return Tt(this.latestValues)&&$t(c,this.latestValues),c}removeTransform(o){const a=U();nt(a,o);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Tt(l.latestValues))continue;$n(l.latestValues)&&l.updateSnapshot();const u=U(),d=l.measurePageBox();nt(u,d),xi(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Tt(this.latestValues)&&xi(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=z.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=U(),this.targetWithTransforms=U()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Th(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nt(this.target,this.layout.layoutBox),xo(this.target,this.targetDelta)):nt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||$n(this.parent.latestValues)||vo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,c){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=U(),this.relativeTargetOrigin=U(),Fe(this.relativeTargetOrigin,a,c),nt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===z.timestamp&&(c=!1),c)return;const{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;nt(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;th(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=U());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(fi(this.prevProjectionDelta.x,this.projectionDelta.x),fi(this.prevProjectionDelta.y,this.projectionDelta.y)),ee(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!Mi(this.projectionDelta.x,this.prevProjectionDelta.x)||!Mi(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=jt(),this.projectionDelta=jt(),this.projectionDeltaWithTransform=jt()}setAnimationOrigin(o,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},d=jt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=U(),p=c?c.source:void 0,y=this.layout?this.layout.source:void 0,m=p!==y,g=this.getStack(),v=!g||g.members.length<=1,k=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some(Qh));this.animationProgress=0;let x;this.mixTargetDelta=M=>{const S=M/1e3;Di(d.x,o.x,S),Di(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fe(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Jh(this.relativeTarget,this.relativeTargetOrigin,f,S),x&&Ah(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=U()),nt(x,this.relativeTarget)),m&&(this.animationValues=u,Vh(u,l,this.latestValues,S,k,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(xt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=I.update(()=>{Re.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zt(0)),this.currentAnimation=_h(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Bh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&Oo(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||U();const d=Y(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const f=Y(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}nt(a,c),$t(a,u),ee(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new jh),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&on("z",o,l,this.animationValues);for(let u=0;u<rn.length;u++)on(`rotate${rn[u]}`,o,l,this.animationValues),on(`skew${rn[u]}`,o,l,this.animationValues);o.render();for(const u in l)o.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Ae(a?.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Ae(a?.pointerEvents)||""),this.hasProjected&&!Tt(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let d=Rh(this.projectionDeltaWithTransform,this.treeScale,u);c&&(d=c(u,d)),o.transform=d;const{x:f,y:p}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,l.animationValues?o.opacity=l===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const y in Un){if(u[y]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:v}=Un[y],k=d==="none"?u[y]:m(u[y],l);if(g){const x=g.length;for(let M=0;M<x;M++)o[g[M]]=k}else v?this.options.visualElement.renderState.vars[y]=k:o[y]=k}this.options.layoutId&&(o.pointerEvents=l===this?Ae(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(Pi),this.root.sharedNodes.clear()}}}function Wh(t){t.updateLayout()}function Uh(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,r=e.source!==t.layout.source;i==="size"?Q(u=>{const d=r?e.measuredBox[u]:e.layoutBox[u],f=Y(d);d.min=n[u].min,d.max=d.min+f}):Oo(i,e.layoutBox,n)&&Q(u=>{const d=r?e.measuredBox[u]:e.layoutBox[u],f=Y(n[u]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+f)});const o=jt();ee(o,n,e.layoutBox);const a=jt();r?ee(a,t.applyTransform(s,!0),e.measuredBox):ee(a,n,e.layoutBox);const c=!Do(o);let l=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:f}=u;if(d&&f){const p=U();Fe(p,e.layoutBox,d.layoutBox);const y=U();Fe(y,n,f.layoutBox),Vo(p,y)||(l=!0),u.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=p,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function zh(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Hh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Kh(t){t.clearSnapshot()}function Pi(t){t.clearMeasurements()}function Ai(t){t.isLayoutDirty=!1}function qh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ri(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Gh(t){t.resolveTargetDelta()}function Xh(t){t.calcProjection()}function Yh(t){t.resetSkewAndRotation()}function Zh(t){t.removeLeadSnapshot()}function Di(t,e,n){t.translate=F(e.translate,0,n),t.scale=F(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Vi(t,e,n,s){t.min=F(e.min,n.min,s),t.max=F(e.max,n.max,s)}function Jh(t,e,n,s){Vi(t.x,e.x,n.x,s),Vi(t.y,e.y,n.y,s)}function Qh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const tf={duration:.45,ease:[.4,0,.1,1]},Ni=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Li=Ni("applewebkit/")&&!Ni("chrome/")?Math.round:et;function _i(t){t.min=Li(t.min),t.max=Li(t.max)}function ef(t){_i(t.x),_i(t.y)}function Oo(t,e,n){return t==="position"||t==="preserve-aspect"&&!Mh(Si(e),Si(n),.2)}function nf(t){return t!==t.root&&t.scroll?.wasRoot}const sf=Io({attachResizeListener:(t,e)=>ae(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),an={current:void 0},Fo=Io({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!an.current){const t=new sf({});t.mount(window),t.setOptions({layoutScroll:!0}),an.current=t}return an.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Ts=h.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Ii(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function rf(...t){return e=>{let n=!1;const s=t.map(i=>{const r=Ii(i,e);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<s.length;i++){const r=s[i];typeof r=="function"?r():Ii(t[i],null)}}}}function of(...t){return h.useCallback(rf(...t),t)}class af extends h.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=jn(s)&&s.offsetWidth||0,r=jn(s)&&s.offsetHeight||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left,o.bottom=r-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function cf({children:t,isPresent:e,anchorX:n,anchorY:s,root:i}){const r=h.useId(),o=h.useRef(null),a=h.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=h.useContext(Ts),l=t.props?.ref??t?.ref,u=of(o,l);return h.useInsertionEffect(()=>{const{width:d,height:f,top:p,left:y,right:m,bottom:g}=a.current;if(e||!o.current||!d||!f)return;const v=n==="left"?`left: ${y}`:`right: ${m}`,k=s==="bottom"?`bottom: ${g}`:`top: ${p}`;o.current.dataset.motionPopId=r;const x=document.createElement("style");c&&(x.nonce=c);const M=i??document.head;return M.appendChild(x),x.sheet&&x.sheet.insertRule(`
2
+ [data-motion-pop-id="${r}"] {
3
+ position: absolute !important;
4
+ width: ${d}px !important;
5
+ height: ${f}px !important;
6
+ ${v}px !important;
7
+ ${k}px !important;
8
+ }
9
+ `),()=>{M.contains(x)&&M.removeChild(x)}},[e]),R.jsx(af,{isPresent:e,childRef:o,sizeRef:a,children:h.cloneElement(t,{ref:u})})}const lf=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:r,mode:o,anchorX:a,anchorY:c,root:l})=>{const u=Zn(uf),d=h.useId();let f=!0,p=h.useMemo(()=>(f=!1,{id:d,initial:e,isPresent:n,custom:i,onExitComplete:y=>{u.set(y,!0);for(const m of u.values())if(!m)return;s&&s()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,s]);return r&&f&&(p={...p}),h.useMemo(()=>{u.forEach((y,m)=>u.set(m,!1))},[n]),h.useEffect(()=>{!n&&!u.size&&s&&s()},[n]),o==="popLayout"&&(t=R.jsx(cf,{isPresent:n,anchorX:a,anchorY:c,root:l,children:t})),R.jsx($e.Provider,{value:p,children:t})};function uf(){return new Map}function jo(t=!0){const e=h.useContext($e);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,r=h.useId();h.useEffect(()=>{if(t)return i(r)},[t]);const o=h.useCallback(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,o]:[!0]}const be=t=>t.key||"";function Oi(t){const e=[];return h.Children.forEach(t,n=>{h.isValidElement(n)&&e.push(n)}),e}const w0=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:r="sync",propagate:o=!1,anchorX:a="left",anchorY:c="top",root:l})=>{const[u,d]=jo(o),f=h.useMemo(()=>Oi(t),[t]),p=o&&!u?[]:f.map(be),y=h.useRef(!0),m=h.useRef(f),g=Zn(()=>new Map),v=h.useRef(new Set),[k,x]=h.useState(f),[M,S]=h.useState(f);yr(()=>{y.current=!1,m.current=f;for(let P=0;P<M.length;P++){const D=be(M[P]);p.includes(D)?(g.delete(D),v.current.delete(D)):g.get(D)!==!0&&g.set(D,!1)}},[M,p.length,p.join("-")]);const E=[];if(f!==k){let P=[...f];for(let D=0;D<M.length;D++){const L=M[D],W=be(L);p.includes(W)||(P.splice(D,0,L),E.push(L))}return r==="wait"&&E.length&&(P=E),S(Oi(P)),x(f),null}const{forceRender:T}=h.useContext(Yn);return R.jsx(R.Fragment,{children:M.map(P=>{const D=be(P),L=o&&!u?!1:f===M||p.includes(D),W=()=>{if(v.current.has(D))return;if(v.current.add(D),g.has(D))g.set(D,!0);else return;let J=!0;g.forEach(Vt=>{Vt||(J=!1)}),J&&(T?.(),S(m.current),o&&d?.(),s&&s())};return R.jsx(lf,{isPresent:L,initial:!y.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:r,root:l,onExitComplete:L?void 0:W,anchorX:a,anchorY:c,children:P},D)})})},Bo=h.createContext({strict:!1}),Fi={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let ji=!1;function df(){if(ji)return;const t={};for(const e in Fi)t[e]={isEnabled:n=>Fi[e].some(s=>!!n[s])};mo(t),ji=!0}function $o(){return df(),Yd()}function hf(t){const e=$o();for(const n in t)e[n]={...e[n],...t[n]};mo(e)}const ff=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function je(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ff.has(t)}let Wo=t=>!je(t);function pf(t){typeof t=="function"&&(Wo=e=>e.startsWith("on")?!je(e):t(e))}try{pf(require("@emotion/is-prop-valid").default)}catch{}function mf(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Wo(i)||n===!0&&je(i)||!e&&!je(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const ze=h.createContext({});function yf(t,e){if(Ue(t)){const{initial:n,animate:s}=t;return{initial:n===!1||oe(n)?n:void 0,animate:oe(s)?s:void 0}}return t.inherit!==!1?e:{}}function gf(t){const{initial:e,animate:n}=yf(t,h.useContext(ze));return h.useMemo(()=>({initial:e,animate:n}),[Bi(e),Bi(n)])}function Bi(t){return Array.isArray(t)?t.join(" "):t}const Cs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uo(t,e,n){for(const s in e)!K(e[s])&&!ko(s,n)&&(t[s]=e[s])}function vf({transformTemplate:t},e){return h.useMemo(()=>{const n=Cs();return Ss(n,e,t),Object.assign({},n.vars,n.style)},[e])}function xf(t,e){const n=t.style||{},s={};return Uo(s,n,t),Object.assign(s,vf(t,e)),s}function bf(t,e){const n={},s=xf(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const zo=()=>({...Cs(),attrs:{}});function wf(t,e,n,s){const i=h.useMemo(()=>{const r=zo();return So(r,e,To(s),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Uo(r,t.style,t),i.style={...r,...i.style}}return i}const kf=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Es(t){return typeof t!="string"||t.includes("-")?!1:!!(kf.indexOf(t)>-1||/[A-Z]/u.test(t))}function Sf(t,e,n,{latestValues:s},i,r=!1,o){const c=(o??Es(t)?wf:bf)(e,s,i,t),l=mf(e,typeof t=="string",r),u=t!==h.Fragment?{...l,...c,ref:n}:{},{children:d}=e,f=h.useMemo(()=>K(d)?d.get():d,[d]);return h.createElement(t,{...u,children:f})}function Mf({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Tf(n,s,i,t),renderState:e()}}function Tf(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=Ae(r[f]);let{initial:o,animate:a}=t;const c=Ue(t),l=po(t);e&&l&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!We(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const y=ys(t,f[p]);if(y){const{transitionEnd:m,transition:g,...v}=y;for(const k in v){let x=v[k];if(Array.isArray(x)){const M=u?x.length-1:0;x=x[M]}x!==null&&(i[k]=x)}for(const k in m)i[k]=m[k]}}}return i}const Ho=t=>(e,n)=>{const s=h.useContext(ze),i=h.useContext($e),r=()=>Mf(t,e,s,i);return n?r():Zn(r)},Cf=Ho({scrapeMotionValuesFromProps:Ms,createRenderState:Cs}),Ef=Ho({scrapeMotionValuesFromProps:Co,createRenderState:zo}),Pf=Symbol.for("motionComponentSymbol");function Af(t,e,n){const s=h.useRef(n);h.useInsertionEffect(()=>{s.current=n});const i=h.useRef(null);return h.useCallback(r=>{r&&t.onMount?.(r),e&&(r?e.mount(r):e.unmount());const o=s.current;if(typeof o=="function")if(r){const a=o(r);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r)},[e])}const Ko=h.createContext({});function Jt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Rf(t,e,n,s,i,r){const{visualElement:o}=h.useContext(ze),a=h.useContext(Bo),c=h.useContext($e),l=h.useContext(Ts).reducedMotion,u=h.useRef(null),d=h.useRef(!1);s=s||a.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:l,isSVG:r}),d.current&&u.current&&(u.current.manuallyAnimateOnMount=!0));const f=u.current,p=h.useContext(Ko);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Df(u.current,n,i,p);const y=h.useRef(!1);h.useInsertionEffect(()=>{f&&y.current&&f.update(n,c)});const m=n[Qr],g=h.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return yr(()=>{d.current=!0,f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),g.current&&f.animationState&&f.animationState.animateChanges())}),h.useEffect(()=>{f&&(!g.current&&f.animationState&&f.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),g.current=!1),f.enteringChildren=void 0)}),f}function Df(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:qo(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&Jt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:c,layoutRoot:l})}function qo(t){if(t)return t.options.allowProjection!==!1?t.projection:qo(t.parent)}function cn(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&hf(s);const r=n?n==="svg":Es(t),o=r?Ef:Cf;function a(l,u){let d;const f={...h.useContext(Ts),...l,layoutId:Vf(l)},{isStatic:p}=f,y=gf(l),m=o(l,p);if(!p&&mr){Nf();const g=Lf(f);d=g.MeasureLayout,y.visualElement=Rf(t,m,f,i,g.ProjectionNode,r)}return R.jsxs(ze.Provider,{value:y,children:[d&&y.visualElement?R.jsx(d,{visualElement:y.visualElement,...f}):null,Sf(t,l,Af(m,y.visualElement,u),m,p,e,r)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=h.forwardRef(a);return c[Pf]=t,c}function Vf({layoutId:t}){const e=h.useContext(Yn).id;return e&&t!==void 0?e+"-"+t:t}function Nf(t,e){h.useContext(Bo).strict}function Lf(t){const e=$o(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function _f(t,e){if(typeof Proxy>"u")return cn;const n=new Map,s=(r,o)=>cn(r,o,t,e),i=(r,o)=>s(r,o);return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,cn(o,void 0,t,e)),n.get(o))})}const If=(t,e)=>e.isSVG??Es(t)?new fh(e):new ah(e,{allowProjection:t!==h.Fragment});class Of extends St{constructor(e){super(e),e.animationState||(e.animationState=vh(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();We(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Ff=0;class jf extends St{constructor(){super(...arguments),this.id=Ff++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Bf={animation:{Feature:Of},exit:{Feature:jf}};function fe(t){return{point:{x:t.pageX,y:t.pageY}}}const $f=t=>e=>bs(e)&&t(e,fe(e));function ne(t,e,n,s){return ae(t,e,$f(n),s)}const Go=({current:t})=>t?t.ownerDocument.defaultView:null,$i=(t,e)=>Math.abs(t-e);function Wf(t,e){const n=$i(t.x,e.x),s=$i(t.y,e.y);return Math.sqrt(n**2+s**2)}const Wi=new Set(["auto","scroll"]);class Xo{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=un(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,m=Wf(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!m)return;const{point:g}=p,{timestamp:v}=z;this.history.push({...g,timestamp:v});const{onStart:k,onMove:x}=this.handlers;y||(k&&k(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,y)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=ln(y,this.transformPagePoint),I.update(this.updatePoint,!0)},this.handlePointerUp=(p,y)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=un(p.type==="pointercancel"?this.lastMoveEventInfo:ln(y,this.transformPagePoint),this.history);this.startEvent&&m&&m(p,k),g&&g(p,k)},!bs(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=i||window;const c=fe(e),l=ln(c,this.transformPagePoint),{point:u}=l,{timestamp:d}=z;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(e,un(l,this.history)),this.removeListeners=ue(ne(this.contextWindow,"pointermove",this.handlePointerMove),ne(this.contextWindow,"pointerup",this.handlePointerUp),ne(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Wi.has(s.overflowX)||Wi.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-n.x,y:i.y-n.y};r.x===0&&r.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),I.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),xt(this.updatePoint)}}function ln(t,e){return e?{point:e(t.point)}:t}function Ui(t,e){return{x:t.x-e.x,y:t.y-e.y}}function un({point:t},e){return{point:t,delta:Ui(t,Yo(e)),offset:Ui(t,Uf(e)),velocity:zf(e,.1)}}function Uf(t){return t[0]}function Yo(t){return t[t.length-1]}function zf(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Yo(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>dt(e)));)n--;if(!s)return{x:0,y:0};const r=tt(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Hf(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?F(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?F(n,t,s.max):Math.min(t,n)),t}function zi(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Kf(t,{top:e,left:n,bottom:s,right:i}){return{x:zi(t.x,n,i),y:zi(t.y,e,s)}}function Hi(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function qf(t,e){return{x:Hi(t.x,e.x),y:Hi(t.y,e.y)}}function Gf(t,e){let n=.5;const s=Y(t),i=Y(e);return i>s?n=se(e.min,e.max-s,t.min):s>i&&(n=se(t.min,t.max-i,e.min)),ct(0,1,n)}function Xf(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const zn=.35;function Yf(t=zn){return t===!1?t=0:t===!0&&(t=zn),{x:Ki(t,"left","right"),y:Ki(t,"top","bottom")}}function Ki(t,e,n){return{min:qi(t,e),max:qi(t,n)}}function qi(t,e){return typeof t=="number"?t:t[e]||0}const Zf=new WeakMap;class Jf{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=U(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=d=>{n?(this.stopAnimation(),this.snapToCursor(fe(d).point)):this.pauseAnimation()},o=(d,f)=>{this.stopAnimation();const{drag:p,dragPropagation:y,onDragStart:m}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Fd(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Q(v=>{let k=this.getAxisMotionValue(v).get()||0;if(at.test(k)){const{projection:x}=this.visualElement;if(x&&x.layout){const M=x.layout.layoutBox[v];M&&(k=Y(M)*(parseFloat(k)/100))}}this.originPoint[v]=k}),m&&I.postRender(()=>m(d,f)),In(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:m,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:v}=f;if(y&&this.currentDirection===null){this.currentDirection=Qf(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),g&&g(d,f)},c=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>Q(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Xo(e,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Go(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!s)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&I.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!we(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=Hf(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&Jt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Kf(s.layoutBox,e):this.constraints=!1,this.elastic=Yf(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Q(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=Xf(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Jt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=eh(s,i.root,this.visualElement.getTransformPagePoint());let o=qf(i.layout.layoutBox,r);if(n){const a=n(Jd(o));this.hasMutatedConstraints=!!a,a&&(o=go(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Q(u=>{if(!we(u,n,this.currentDirection))return;let d=c&&c[u]||{};o&&(d={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,y={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...r,...d};return this.startAxisValueAnimation(u,y)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return In(this.visualElement,e),s.start(ms(e,s,0,n,this.visualElement,!1))}stopAnimation(){Q(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Q(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){Q(n=>{const{drag:s}=this.getProps();if(!we(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],c=r.get()||0;r.set(e[n]-F(o,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Jt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Q(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();i[o]=Gf({min:c,max:c},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Q(o=>{if(!we(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(F(c,l,i[o]))})}addListeners(){if(!this.visualElement.current)return;Zf.set(this.visualElement,this);const e=this.visualElement.current,n=ne(e,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps(),d=c.target,f=d!==e&&uo(d);l&&u&&!f&&this.start(c)}),s=()=>{const{dragConstraints:c}=this.getProps();Jt(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),I.read(s);const o=ae(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(Q(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())}));return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=zn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function we(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Qf(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class tp extends St{constructor(e){super(e),this.removeGroupControls=et,this.removeListeners=et,this.controls=new Jf(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||et}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Gi=t=>(e,n)=>{t&&I.postRender(()=>t(e,n))};class ep extends St{constructor(){super(...arguments),this.removePointerDownListener=et}onPointerDown(e){this.session=new Xo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Go(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Gi(e),onStart:Gi(n),onMove:s,onEnd:(r,o)=>{delete this.session,i&&I.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=ne(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let dn=!1;class np extends h.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),dn&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Re.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,{projection:o}=s;return o&&(o.isPresent=r,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),dn=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||I.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),xs.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;dn=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Zo(t){const[e,n]=jo(),s=h.useContext(Yn);return R.jsx(np,{...t,layoutGroup:s,switchLayoutGroup:h.useContext(Ko),isPresent:e,safeToRemove:n})}const sp={pan:{Feature:ep},drag:{Feature:tp,ProjectionNode:Fo,MeasureLayout:Zo}};function Xi(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&I.postRender(()=>r(e,fe(e)))}class ip extends St{mount(){const{current:e}=this.node;e&&(this.unmount=jd(e,(n,s)=>(Xi(this.node,s,"Start"),i=>Xi(this.node,i,"End"))))}unmount(){}}class rp extends St{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ue(ae(this.node.current,"focus",()=>this.onFocus()),ae(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Yi(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&I.postRender(()=>r(e,fe(e)))}class op extends St{mount(){const{current:e}=this.node;e&&(this.unmount=Wd(e,(n,s)=>(Yi(this.node,s,"Start"),(i,{success:r})=>Yi(this.node,i,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Hn=new WeakMap,hn=new WeakMap,ap=t=>{const e=Hn.get(t.target);e&&e(t)},cp=t=>{t.forEach(ap)};function lp({root:t,...e}){const n=t||document;hn.has(n)||hn.set(n,{});const s=hn.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(cp,{root:t,...e})),s[i]}function up(t,e,n){const s=lp(e);return Hn.set(t,n),s.observe(t),()=>{Hn.delete(t),s.unobserve(t)}}const dp={some:0,all:1};class hp extends St{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:dp[i]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,r&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=l?u:d;f&&f(c)};return up(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(fp(e,n))&&this.startObserver()}unmount(){}}function fp({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const pp={inView:{Feature:hp},tap:{Feature:op},focus:{Feature:rp},hover:{Feature:ip}},mp={layout:{ProjectionNode:Fo,MeasureLayout:Zo}},yp={...Bf,...pp,...sp,...mp},k0=_f(yp,If);function vt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t?.(i),n===!1||!i.defaultPrevented)return e?.(i)}}function Zi(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function wt(...t){return e=>{let n=!1;const s=t.map(i=>{const r=Zi(i,e);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<s.length;i++){const r=s[i];typeof r=="function"?r():Zi(t[i],null)}}}}function Dt(...t){return h.useCallback(wt(...t),t)}function gp(t,e){const n=h.createContext(e),s=r=>{const{children:o,...a}=r,c=h.useMemo(()=>a,Object.values(a));return R.jsx(n.Provider,{value:c,children:o})};s.displayName=t+"Provider";function i(r){const o=h.useContext(n);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${r}\` must be used within \`${t}\``)}return[s,i]}function vp(t,e=[]){let n=[];function s(r,o){const a=h.createContext(o),c=n.length;n=[...n,o];const l=d=>{const{scope:f,children:p,...y}=d,m=f?.[t]?.[c]||a,g=h.useMemo(()=>y,Object.values(y));return R.jsx(m.Provider,{value:g,children:p})};l.displayName=r+"Provider";function u(d,f){const p=f?.[t]?.[c]||a,y=h.useContext(p);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${r}\``)}return[l,u]}const i=()=>{const r=n.map(o=>h.createContext(o));return function(a){const c=a?.[t]||r;return h.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])}};return i.scopeName=t,[s,xp(i,...e)]}function xp(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const s=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const o=s.reduce((a,{useScope:c,scopeName:l})=>{const d=c(r)[`__scope${l}`];return{...a,...d}},{});return h.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}function bp(t){const e=wp(t),n=h.forwardRef((s,i)=>{const{children:r,...o}=s,a=h.Children.toArray(r),c=a.find(Sp);if(c){const l=c.props.children,u=a.map(d=>d===c?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:d);return R.jsx(e,{...o,ref:i,children:h.isValidElement(l)?h.cloneElement(l,void 0,u):null})}return R.jsx(e,{...o,ref:i,children:r})});return n.displayName=`${t}.Slot`,n}function wp(t){const e=h.forwardRef((n,s)=>{const{children:i,...r}=n;if(h.isValidElement(i)){const o=Tp(i),a=Mp(r,i.props);return i.type!==h.Fragment&&(a.ref=s?wt(s,o):o),h.cloneElement(i,a)}return h.Children.count(i)>1?h.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var kp=Symbol("radix.slottable");function Sp(t){return h.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===kp}function Mp(t,e){const n={...e};for(const s in e){const i=t[s],r=e[s];/^on[A-Z]/.test(s)?i&&r?n[s]=(...a)=>{const c=r(...a);return i(...a),c}:i&&(n[s]=i):s==="style"?n[s]={...i,...r}:s==="className"&&(n[s]=[i,r].filter(Boolean).join(" "))}return{...t,...n}}function Tp(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var Cp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],H=Cp.reduce((t,e)=>{const n=bp(`Primitive.${e}`),s=h.forwardRef((i,r)=>{const{asChild:o,...a}=i,c=o?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(c,{...a,ref:r})});return s.displayName=`Primitive.${e}`,{...t,[e]:s}},{});function Ep(t,e){t&&Ia.flushSync(()=>t.dispatchEvent(e))}function ce(t){const e=h.useRef(t);return h.useEffect(()=>{e.current=t}),h.useMemo(()=>(...n)=>e.current?.(...n),[])}function Pp(t,e=globalThis?.document){const n=ce(t);h.useEffect(()=>{const s=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",s,{capture:!0}),()=>e.removeEventListener("keydown",s,{capture:!0})},[n,e])}var Ap="DismissableLayer",Kn="dismissableLayer.update",Rp="dismissableLayer.pointerDownOutside",Dp="dismissableLayer.focusOutside",Ji,Jo=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ps=h.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:r,onInteractOutside:o,onDismiss:a,...c}=t,l=h.useContext(Jo),[u,d]=h.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=h.useState({}),y=Dt(e,T=>d(T)),m=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(g),k=u?m.indexOf(u):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,M=k>=v,S=Np(T=>{const P=T.target,D=[...l.branches].some(L=>L.contains(P));!M||D||(i?.(T),o?.(T),T.defaultPrevented||a?.())},f),E=Lp(T=>{const P=T.target;[...l.branches].some(L=>L.contains(P))||(r?.(T),o?.(T),T.defaultPrevented||a?.())},f);return Pp(T=>{k===l.layers.size-1&&(s?.(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},f),h.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ji=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Qi(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Ji)}},[u,f,n,l]),h.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Qi())},[u,l]),h.useEffect(()=>{const T=()=>p({});return document.addEventListener(Kn,T),()=>document.removeEventListener(Kn,T)},[]),R.jsx(H.div,{...c,ref:y,style:{pointerEvents:x?M?"auto":"none":void 0,...t.style},onFocusCapture:vt(t.onFocusCapture,E.onFocusCapture),onBlurCapture:vt(t.onBlurCapture,E.onBlurCapture),onPointerDownCapture:vt(t.onPointerDownCapture,S.onPointerDownCapture)})});Ps.displayName=Ap;var Vp="DismissableLayerBranch",Qo=h.forwardRef((t,e)=>{const n=h.useContext(Jo),s=h.useRef(null),i=Dt(e,s);return h.useEffect(()=>{const r=s.current;if(r)return n.branches.add(r),()=>{n.branches.delete(r)}},[n.branches]),R.jsx(H.div,{...t,ref:i})});Qo.displayName=Vp;function Np(t,e=globalThis?.document){const n=ce(t),s=h.useRef(!1),i=h.useRef(()=>{});return h.useEffect(()=>{const r=a=>{if(a.target&&!s.current){let c=function(){ta(Rp,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=c,e.addEventListener("click",i.current,{once:!0})):c()}else e.removeEventListener("click",i.current);s.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",r)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",r),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>s.current=!0}}function Lp(t,e=globalThis?.document){const n=ce(t),s=h.useRef(!1);return h.useEffect(()=>{const i=r=>{r.target&&!s.current&&ta(Dp,n,{originalEvent:r},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Qi(){const t=new CustomEvent(Kn);document.dispatchEvent(t)}function ta(t,e,n,{discrete:s}){const i=n.originalEvent.target,r=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),s?Ep(i,r):i.dispatchEvent(r)}var S0=Ps,M0=Qo,le=globalThis?.document?h.useLayoutEffect:()=>{},_p=fr[" useId ".trim().toString()]||(()=>{}),Ip=0;function ht(t){const[e,n]=h.useState(_p());return le(()=>{n(s=>s??String(Ip++))},[t]),e?`radix-${e}`:""}var Op="Portal",ea=h.forwardRef((t,e)=>{const{container:n,...s}=t,[i,r]=h.useState(!1);le(()=>r(!0),[]);const o=n||i&&globalThis?.document?.body;return o?Oa.createPortal(R.jsx(H.div,{...s,ref:e}),o):null});ea.displayName=Op;function Fp(t,e){return h.useReducer((n,s)=>e[n][s]??n,t)}var He=t=>{const{present:e,children:n}=t,s=jp(e),i=typeof n=="function"?n({present:s.isPresent}):h.Children.only(n),r=Dt(s.ref,Bp(i));return typeof n=="function"||s.isPresent?h.cloneElement(i,{ref:r}):null};He.displayName="Presence";function jp(t){const[e,n]=h.useState(),s=h.useRef(null),i=h.useRef(t),r=h.useRef("none"),o=t?"mounted":"unmounted",[a,c]=Fp(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const l=ke(s.current);r.current=a==="mounted"?l:"none"},[a]),le(()=>{const l=s.current,u=i.current;if(u!==t){const f=r.current,p=ke(l);t?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,c]),le(()=>{if(e){let l;const u=e.ownerDocument.defaultView??window,d=p=>{const m=ke(s.current).includes(CSS.escape(p.animationName));if(p.target===e&&m&&(c("ANIMATION_END"),!i.current)){const g=e.style.animationFillMode;e.style.animationFillMode="forwards",l=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=g)})}},f=p=>{p.target===e&&(r.current=ke(s.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{u.clearTimeout(l),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:h.useCallback(l=>{s.current=l?getComputedStyle(l):null,n(l)},[])}}function ke(t){return t?.animationName||"none"}function Bp(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var $p=fr[" useInsertionEffect ".trim().toString()]||le;function Wp({prop:t,defaultProp:e,onChange:n=()=>{},caller:s}){const[i,r,o]=Up({defaultProp:e,onChange:n}),a=t!==void 0,c=a?t:i;{const u=h.useRef(t!==void 0);h.useEffect(()=>{const d=u.current;d!==a&&console.warn(`${s} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,s])}const l=h.useCallback(u=>{if(a){const d=zp(u)?u(t):u;d!==t&&o.current?.(d)}else r(u)},[a,t,r,o]);return[c,l]}function Up({defaultProp:t,onChange:e}){const[n,s]=h.useState(t),i=h.useRef(n),r=h.useRef(e);return $p(()=>{r.current=e},[e]),h.useEffect(()=>{i.current!==n&&(r.current?.(n),i.current=n)},[n,i]),[n,s,r]}function zp(t){return typeof t=="function"}var tr=1,Hp=.9,Kp=.8,qp=.17,fn=.1,pn=.999,Gp=.9999,Xp=.99,Yp=/[\\\/_+.#"@\[\(\{&]/,Zp=/[\\\/_+.#"@\[\(\{&]/g,Jp=/[\s-]/,na=/[\s-]/g;function qn(t,e,n,s,i,r,o){if(r===e.length)return i===t.length?tr:Xp;var a=`${i},${r}`;if(o[a]!==void 0)return o[a];for(var c=s.charAt(r),l=n.indexOf(c,i),u=0,d,f,p,y;l>=0;)d=qn(t,e,n,s,l+1,r+1,o),d>u&&(l===i?d*=tr:Yp.test(t.charAt(l-1))?(d*=Kp,p=t.slice(i,l-1).match(Zp),p&&i>0&&(d*=Math.pow(pn,p.length))):Jp.test(t.charAt(l-1))?(d*=Hp,y=t.slice(i,l-1).match(na),y&&i>0&&(d*=Math.pow(pn,y.length))):(d*=qp,i>0&&(d*=Math.pow(pn,l-i))),t.charAt(l)!==e.charAt(r)&&(d*=Gp)),(d<fn&&n.charAt(l-1)===s.charAt(r+1)||s.charAt(r+1)===s.charAt(r)&&n.charAt(l-1)!==s.charAt(r))&&(f=qn(t,e,n,s,l+1,r+2,o),f*fn>d&&(d=f*fn)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[a]=u,u}function er(t){return t.toLowerCase().replace(na," ")}function Qp(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,qn(t,e,er(t),er(e),0,0,{})}var mn="focusScope.autoFocusOnMount",yn="focusScope.autoFocusOnUnmount",nr={bubbles:!1,cancelable:!0},tm="FocusScope",sa=h.forwardRef((t,e)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:i,onUnmountAutoFocus:r,...o}=t,[a,c]=h.useState(null),l=ce(i),u=ce(r),d=h.useRef(null),f=Dt(e,m=>c(m)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(s){let m=function(x){if(p.paused||!a)return;const M=x.target;a.contains(M)?d.current=M:yt(d.current,{select:!0})},g=function(x){if(p.paused||!a)return;const M=x.relatedTarget;M!==null&&(a.contains(M)||yt(d.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&yt(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const k=new MutationObserver(v);return a&&k.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),k.disconnect()}}},[s,a,p.paused]),h.useEffect(()=>{if(a){ir.add(p);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(mn,nr);a.addEventListener(mn,l),a.dispatchEvent(v),v.defaultPrevented||(em(om(ia(a)),{select:!0}),document.activeElement===m&&yt(a))}return()=>{a.removeEventListener(mn,l),setTimeout(()=>{const v=new CustomEvent(yn,nr);a.addEventListener(yn,u),a.dispatchEvent(v),v.defaultPrevented||yt(m??document.body,{select:!0}),a.removeEventListener(yn,u),ir.remove(p)},0)}}},[a,l,u,p]);const y=h.useCallback(m=>{if(!n&&!s||p.paused)return;const g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(g&&v){const k=m.currentTarget,[x,M]=nm(k);x&&M?!m.shiftKey&&v===M?(m.preventDefault(),n&&yt(x,{select:!0})):m.shiftKey&&v===x&&(m.preventDefault(),n&&yt(M,{select:!0})):v===k&&m.preventDefault()}},[n,s,p.paused]);return R.jsx(H.div,{tabIndex:-1,...o,ref:f,onKeyDown:y})});sa.displayName=tm;function em(t,{select:e=!1}={}){const n=document.activeElement;for(const s of t)if(yt(s,{select:e}),document.activeElement!==n)return}function nm(t){const e=ia(t),n=sr(e,t),s=sr(e.reverse(),t);return[n,s]}function ia(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const i=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||i?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function sr(t,e){for(const n of t)if(!sm(n,{upTo:e}))return n}function sm(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function im(t){return t instanceof HTMLInputElement&&"select"in t}function yt(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&im(t)&&e&&t.select()}}var ir=rm();function rm(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=rr(t,e),t.unshift(e)},remove(e){t=rr(t,e),t[0]?.resume()}}}function rr(t,e){const n=[...t],s=n.indexOf(e);return s!==-1&&n.splice(s,1),n}function om(t){return t.filter(e=>e.tagName!=="A")}var gn=0;function am(){h.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??or()),document.body.insertAdjacentElement("beforeend",t[1]??or()),gn++,()=>{gn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),gn--}},[])}function or(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var ot=function(){return ot=Object.assign||function(e){for(var n,s=1,i=arguments.length;s<i;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ot.apply(this,arguments)};function ra(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(t);i<s.length;i++)e.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(t,s[i])&&(n[s[i]]=t[s[i]]);return n}function cm(t,e,n){if(n||arguments.length===2)for(var s=0,i=e.length,r;s<i;s++)(r||!(s in e))&&(r||(r=Array.prototype.slice.call(e,0,s)),r[s]=e[s]);return t.concat(r||Array.prototype.slice.call(e))}var De="right-scroll-bar-position",Ve="width-before-scroll-bar",lm="with-scroll-bars-hidden",um="--removed-body-scroll-bar-size";function vn(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function dm(t,e){var n=h.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(s){var i=n.value;i!==s&&(n.value=s,n.callback(s,i))}}}})[0];return n.callback=e,n.facade}var hm=typeof window<"u"?h.useLayoutEffect:h.useEffect,ar=new WeakMap;function fm(t,e){var n=dm(null,function(s){return t.forEach(function(i){return vn(i,s)})});return hm(function(){var s=ar.get(n);if(s){var i=new Set(s),r=new Set(t),o=n.current;i.forEach(function(a){r.has(a)||vn(a,null)}),r.forEach(function(a){i.has(a)||vn(a,o)})}ar.set(n,t)},[t]),n}function pm(t){return t}function mm(t,e){e===void 0&&(e=pm);var n=[],s=!1,i={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(r){var o=e(r,s);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(r){for(s=!0;n.length;){var o=n;n=[],o.forEach(r)}n={push:function(a){return r(a)},filter:function(){return n}}},assignMedium:function(r){s=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(r),o=n}var c=function(){var u=o;o=[],u.forEach(r)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){o.push(u),l()},filter:function(u){return o=o.filter(u),n}}}};return i}function ym(t){t===void 0&&(t={});var e=mm(null);return e.options=ot({async:!0,ssr:!1},t),e}var oa=function(t){var e=t.sideCar,n=ra(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=e.read();if(!s)throw new Error("Sidecar medium not found");return h.createElement(s,ot({},n))};oa.isSideCarExport=!0;function gm(t,e){return t.useMedium(e),oa}var aa=ym(),xn=function(){},Ke=h.forwardRef(function(t,e){var n=h.useRef(null),s=h.useState({onScrollCapture:xn,onWheelCapture:xn,onTouchMoveCapture:xn}),i=s[0],r=s[1],o=t.forwardProps,a=t.children,c=t.className,l=t.removeScrollBar,u=t.enabled,d=t.shards,f=t.sideCar,p=t.noRelative,y=t.noIsolation,m=t.inert,g=t.allowPinchZoom,v=t.as,k=v===void 0?"div":v,x=t.gapMode,M=ra(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,E=fm([n,e]),T=ot(ot({},M),i);return h.createElement(h.Fragment,null,u&&h.createElement(S,{sideCar:aa,removeScrollBar:l,shards:d,noRelative:p,noIsolation:y,inert:m,setCallbacks:r,allowPinchZoom:!!g,lockRef:n,gapMode:x}),o?h.cloneElement(h.Children.only(a),ot(ot({},T),{ref:E})):h.createElement(k,ot({},T,{className:c,ref:E}),a))});Ke.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ke.classNames={fullWidth:Ve,zeroRight:De};var vm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xm(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=vm();return e&&t.setAttribute("nonce",e),t}function bm(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function wm(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var km=function(){var t=0,e=null;return{add:function(n){t==0&&(e=xm())&&(bm(e,n),wm(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Sm=function(){var t=km();return function(e,n){h.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},ca=function(){var t=Sm(),e=function(n){var s=n.styles,i=n.dynamic;return t(s,i),null};return e},Mm={left:0,top:0,right:0,gap:0},bn=function(t){return parseInt(t||"",10)||0},Tm=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],s=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[bn(n),bn(s),bn(i)]},Cm=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return Mm;var e=Tm(t),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,s-n+e[2]-e[0])}},Em=ca(),Ut="data-scroll-locked",Pm=function(t,e,n,s){var i=t.left,r=t.top,o=t.right,a=t.gap;return n===void 0&&(n="margin"),`
10
+ .`.concat(lm,` {
11
+ overflow: hidden `).concat(s,`;
12
+ padding-right: `).concat(a,"px ").concat(s,`;
13
+ }
14
+ body[`).concat(Ut,`] {
15
+ overflow: hidden `).concat(s,`;
16
+ overscroll-behavior: contain;
17
+ `).concat([e&&"position: relative ".concat(s,";"),n==="margin"&&`
18
+ padding-left: `.concat(i,`px;
19
+ padding-top: `).concat(r,`px;
20
+ padding-right: `).concat(o,`px;
21
+ margin-left:0;
22
+ margin-top:0;
23
+ margin-right: `).concat(a,"px ").concat(s,`;
24
+ `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(s,";")].filter(Boolean).join(""),`
25
+ }
26
+
27
+ .`).concat(De,` {
28
+ right: `).concat(a,"px ").concat(s,`;
29
+ }
30
+
31
+ .`).concat(Ve,` {
32
+ margin-right: `).concat(a,"px ").concat(s,`;
33
+ }
34
+
35
+ .`).concat(De," .").concat(De,` {
36
+ right: 0 `).concat(s,`;
37
+ }
38
+
39
+ .`).concat(Ve," .").concat(Ve,` {
40
+ margin-right: 0 `).concat(s,`;
41
+ }
42
+
43
+ body[`).concat(Ut,`] {
44
+ `).concat(um,": ").concat(a,`px;
45
+ }
46
+ `)},cr=function(){var t=parseInt(document.body.getAttribute(Ut)||"0",10);return isFinite(t)?t:0},Am=function(){h.useEffect(function(){return document.body.setAttribute(Ut,(cr()+1).toString()),function(){var t=cr()-1;t<=0?document.body.removeAttribute(Ut):document.body.setAttribute(Ut,t.toString())}},[])},Rm=function(t){var e=t.noRelative,n=t.noImportant,s=t.gapMode,i=s===void 0?"margin":s;Am();var r=h.useMemo(function(){return Cm(i)},[i]);return h.createElement(Em,{styles:Pm(r,!e,i,n?"":"!important")})},Gn=!1;if(typeof window<"u")try{var Se=Object.defineProperty({},"passive",{get:function(){return Gn=!0,!0}});window.addEventListener("test",Se,Se),window.removeEventListener("test",Se,Se)}catch{Gn=!1}var Nt=Gn?{passive:!1}:!1,Dm=function(t){return t.tagName==="TEXTAREA"},la=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!Dm(t)&&n[e]==="visible")},Vm=function(t){return la(t,"overflowY")},Nm=function(t){return la(t,"overflowX")},lr=function(t,e){var n=e.ownerDocument,s=e;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var i=ua(t,s);if(i){var r=da(t,s),o=r[1],a=r[2];if(o>a)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},Lm=function(t){var e=t.scrollTop,n=t.scrollHeight,s=t.clientHeight;return[e,n,s]},_m=function(t){var e=t.scrollLeft,n=t.scrollWidth,s=t.clientWidth;return[e,n,s]},ua=function(t,e){return t==="v"?Vm(e):Nm(e)},da=function(t,e){return t==="v"?Lm(e):_m(e)},Im=function(t,e){return t==="h"&&e==="rtl"?-1:1},Om=function(t,e,n,s,i){var r=Im(t,window.getComputedStyle(e).direction),o=r*s,a=n.target,c=e.contains(a),l=!1,u=o>0,d=0,f=0;do{if(!a)break;var p=da(t,a),y=p[0],m=p[1],g=p[2],v=m-g-r*y;(y||v)&&ua(t,a)&&(d+=v,f+=y);var k=a.parentNode;a=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!c&&a!==document.body||c&&(e.contains(a)||e===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},Me=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},ur=function(t){return[t.deltaX,t.deltaY]},dr=function(t){return t&&"current"in t?t.current:t},Fm=function(t,e){return t[0]===e[0]&&t[1]===e[1]},jm=function(t){return`
47
+ .block-interactivity-`.concat(t,` {pointer-events: none;}
48
+ .allow-interactivity-`).concat(t,` {pointer-events: all;}
49
+ `)},Bm=0,Lt=[];function $m(t){var e=h.useRef([]),n=h.useRef([0,0]),s=h.useRef(),i=h.useState(Bm++)[0],r=h.useState(ca)[0],o=h.useRef(t);h.useEffect(function(){o.current=t},[t]),h.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var m=cm([t.lockRef.current],(t.shards||[]).map(dr),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=h.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var v=Me(m),k=n.current,x="deltaX"in m?m.deltaX:k[0]-v[0],M="deltaY"in m?m.deltaY:k[1]-v[1],S,E=m.target,T=Math.abs(x)>Math.abs(M)?"h":"v";if("touches"in m&&T==="h"&&E.type==="range")return!1;var P=window.getSelection(),D=P&&P.anchorNode,L=D?D===E||D.contains(E):!1;if(L)return!1;var W=lr(T,E);if(!W)return!0;if(W?S=T:(S=T==="v"?"h":"v",W=lr(T,E)),!W)return!1;if(!s.current&&"changedTouches"in m&&(x||M)&&(s.current=S),!S)return!0;var J=s.current||S;return Om(J,g,m,J==="h"?x:M)},[]),c=h.useCallback(function(m){var g=m;if(!(!Lt.length||Lt[Lt.length-1]!==r)){var v="deltaY"in g?ur(g):Me(g),k=e.current.filter(function(S){return S.name===g.type&&(S.target===g.target||g.target===S.shadowParent)&&Fm(S.delta,v)})[0];if(k&&k.should){g.cancelable&&g.preventDefault();return}if(!k){var x=(o.current.shards||[]).map(dr).filter(Boolean).filter(function(S){return S.contains(g.target)}),M=x.length>0?a(g,x[0]):!o.current.noIsolation;M&&g.cancelable&&g.preventDefault()}}},[]),l=h.useCallback(function(m,g,v,k){var x={name:m,delta:g,target:v,should:k,shadowParent:Wm(v)};e.current.push(x),setTimeout(function(){e.current=e.current.filter(function(M){return M!==x})},1)},[]),u=h.useCallback(function(m){n.current=Me(m),s.current=void 0},[]),d=h.useCallback(function(m){l(m.type,ur(m),m.target,a(m,t.lockRef.current))},[]),f=h.useCallback(function(m){l(m.type,Me(m),m.target,a(m,t.lockRef.current))},[]);h.useEffect(function(){return Lt.push(r),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Nt),document.addEventListener("touchmove",c,Nt),document.addEventListener("touchstart",u,Nt),function(){Lt=Lt.filter(function(m){return m!==r}),document.removeEventListener("wheel",c,Nt),document.removeEventListener("touchmove",c,Nt),document.removeEventListener("touchstart",u,Nt)}},[]);var p=t.removeScrollBar,y=t.inert;return h.createElement(h.Fragment,null,y?h.createElement(r,{styles:jm(i)}):null,p?h.createElement(Rm,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Wm(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const Um=gm(aa,$m);var ha=h.forwardRef(function(t,e){return h.createElement(Ke,ot({},t,{ref:e,sideCar:Um}))});ha.classNames=Ke.classNames;var zm=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},_t=new WeakMap,Te=new WeakMap,Ce={},wn=0,fa=function(t){return t&&(t.host||fa(t.parentNode))},Hm=function(t,e){return e.map(function(n){if(t.contains(n))return n;var s=fa(n);return s&&t.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},Km=function(t,e,n,s){var i=Hm(e,Array.isArray(t)?t:[t]);Ce[n]||(Ce[n]=new WeakMap);var r=Ce[n],o=[],a=new Set,c=new Set(i),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};i.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var p=f.getAttribute(s),y=p!==null&&p!=="false",m=(_t.get(f)||0)+1,g=(r.get(f)||0)+1;_t.set(f,m),r.set(f,g),o.push(f),m===1&&y&&Te.set(f,!0),g===1&&f.setAttribute(n,"true"),y||f.setAttribute(s,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(e),a.clear(),wn++,function(){o.forEach(function(d){var f=_t.get(d)-1,p=r.get(d)-1;_t.set(d,f),r.set(d,p),f||(Te.has(d)||d.removeAttribute(s),Te.delete(d)),p||d.removeAttribute(n)}),wn--,wn||(_t=new WeakMap,_t=new WeakMap,Te=new WeakMap,Ce={})}},qm=function(t,e,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(t)?t:[t]),i=zm(t);return i?(s.push.apply(s,Array.from(i.querySelectorAll("[aria-live], script"))),Km(s,i,n,"aria-hidden")):function(){return null}};function Gm(t){const e=Xm(t),n=h.forwardRef((s,i)=>{const{children:r,...o}=s,a=h.Children.toArray(r),c=a.find(Zm);if(c){const l=c.props.children,u=a.map(d=>d===c?h.Children.count(l)>1?h.Children.only(null):h.isValidElement(l)?l.props.children:null:d);return R.jsx(e,{...o,ref:i,children:h.isValidElement(l)?h.cloneElement(l,void 0,u):null})}return R.jsx(e,{...o,ref:i,children:r})});return n.displayName=`${t}.Slot`,n}function Xm(t){const e=h.forwardRef((n,s)=>{const{children:i,...r}=n;if(h.isValidElement(i)){const o=Qm(i),a=Jm(r,i.props);return i.type!==h.Fragment&&(a.ref=s?wt(s,o):o),h.cloneElement(i,a)}return h.Children.count(i)>1?h.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Ym=Symbol("radix.slottable");function Zm(t){return h.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Ym}function Jm(t,e){const n={...e};for(const s in e){const i=t[s],r=e[s];/^on[A-Z]/.test(s)?i&&r?n[s]=(...a)=>{const c=r(...a);return i(...a),c}:i&&(n[s]=i):s==="style"?n[s]={...i,...r}:s==="className"&&(n[s]=[i,r].filter(Boolean).join(" "))}return{...t,...n}}function Qm(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var qe="Dialog",[pa]=vp(qe),[ty,it]=pa(qe),ma=t=>{const{__scopeDialog:e,children:n,open:s,defaultOpen:i,onOpenChange:r,modal:o=!0}=t,a=h.useRef(null),c=h.useRef(null),[l,u]=Wp({prop:s,defaultProp:i??!1,onChange:r,caller:qe});return R.jsx(ty,{scope:e,triggerRef:a,contentRef:c,contentId:ht(),titleId:ht(),descriptionId:ht(),open:l,onOpenChange:u,onOpenToggle:h.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};ma.displayName=qe;var ya="DialogTrigger",ey=h.forwardRef((t,e)=>{const{__scopeDialog:n,...s}=t,i=it(ya,n),r=Dt(e,i.triggerRef);return R.jsx(H.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Ds(i.open),...s,ref:r,onClick:vt(t.onClick,i.onOpenToggle)})});ey.displayName=ya;var As="DialogPortal",[ny,ga]=pa(As,{forceMount:void 0}),va=t=>{const{__scopeDialog:e,forceMount:n,children:s,container:i}=t,r=it(As,e);return R.jsx(ny,{scope:e,forceMount:n,children:h.Children.map(s,o=>R.jsx(He,{present:n||r.open,children:R.jsx(ea,{asChild:!0,container:i,children:o})}))})};va.displayName=As;var Be="DialogOverlay",xa=h.forwardRef((t,e)=>{const n=ga(Be,t.__scopeDialog),{forceMount:s=n.forceMount,...i}=t,r=it(Be,t.__scopeDialog);return r.modal?R.jsx(He,{present:s||r.open,children:R.jsx(iy,{...i,ref:e})}):null});xa.displayName=Be;var sy=Gm("DialogOverlay.RemoveScroll"),iy=h.forwardRef((t,e)=>{const{__scopeDialog:n,...s}=t,i=it(Be,n);return R.jsx(ha,{as:sy,allowPinchZoom:!0,shards:[i.contentRef],children:R.jsx(H.div,{"data-state":Ds(i.open),...s,ref:e,style:{pointerEvents:"auto",...s.style}})})}),At="DialogContent",ba=h.forwardRef((t,e)=>{const n=ga(At,t.__scopeDialog),{forceMount:s=n.forceMount,...i}=t,r=it(At,t.__scopeDialog);return R.jsx(He,{present:s||r.open,children:r.modal?R.jsx(ry,{...i,ref:e}):R.jsx(oy,{...i,ref:e})})});ba.displayName=At;var ry=h.forwardRef((t,e)=>{const n=it(At,t.__scopeDialog),s=h.useRef(null),i=Dt(e,n.contentRef,s);return h.useEffect(()=>{const r=s.current;if(r)return qm(r)},[]),R.jsx(wa,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:vt(t.onCloseAutoFocus,r=>{r.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:vt(t.onPointerDownOutside,r=>{const o=r.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&r.preventDefault()}),onFocusOutside:vt(t.onFocusOutside,r=>r.preventDefault())})}),oy=h.forwardRef((t,e)=>{const n=it(At,t.__scopeDialog),s=h.useRef(!1),i=h.useRef(!1);return R.jsx(wa,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{t.onCloseAutoFocus?.(r),r.defaultPrevented||(s.current||n.triggerRef.current?.focus(),r.preventDefault()),s.current=!1,i.current=!1},onInteractOutside:r=>{t.onInteractOutside?.(r),r.defaultPrevented||(s.current=!0,r.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=r.target;n.triggerRef.current?.contains(o)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&i.current&&r.preventDefault()}})}),wa=h.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:r,...o}=t,a=it(At,n),c=h.useRef(null),l=Dt(e,c);return am(),R.jsxs(R.Fragment,{children:[R.jsx(sa,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:i,onUnmountAutoFocus:r,children:R.jsx(Ps,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Ds(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),R.jsxs(R.Fragment,{children:[R.jsx(ay,{titleId:a.titleId}),R.jsx(ly,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Rs="DialogTitle",ka=h.forwardRef((t,e)=>{const{__scopeDialog:n,...s}=t,i=it(Rs,n);return R.jsx(H.h2,{id:i.titleId,...s,ref:e})});ka.displayName=Rs;var Sa="DialogDescription",Ma=h.forwardRef((t,e)=>{const{__scopeDialog:n,...s}=t,i=it(Sa,n);return R.jsx(H.p,{id:i.descriptionId,...s,ref:e})});Ma.displayName=Sa;var Ta="DialogClose",Ca=h.forwardRef((t,e)=>{const{__scopeDialog:n,...s}=t,i=it(Ta,n);return R.jsx(H.button,{type:"button",...s,ref:e,onClick:vt(t.onClick,()=>i.onOpenChange(!1))})});Ca.displayName=Ta;function Ds(t){return t?"open":"closed"}var Ea="DialogTitleWarning",[T0,Pa]=gp(Ea,{contentName:At,titleName:Rs,docsSlug:"dialog"}),ay=({titleId:t})=>{const e=Pa(Ea),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
50
+
51
+ If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
52
+
53
+ For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return h.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},cy="DialogDescriptionWarning",ly=({contentRef:t,descriptionId:e})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pa(cy).contentName}}.`;return h.useEffect(()=>{const i=t.current?.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(s))},[s,t,e]),null},uy=ma,dy=va,hy=xa,fy=ba,C0=ka,E0=Ma,P0=Ca,Yt='[cmdk-group=""]',kn='[cmdk-group-items=""]',py='[cmdk-group-heading=""]',Aa='[cmdk-item=""]',hr=`${Aa}:not([aria-disabled="true"])`,Xn="cmdk-item-select",It="data-value",my=(t,e,n)=>Qp(t,e,n),Ra=h.createContext(void 0),pe=()=>h.useContext(Ra),Da=h.createContext(void 0),Vs=()=>h.useContext(Da),Va=h.createContext(void 0),Na=h.forwardRef((t,e)=>{let n=Ot(()=>{var w,V;return{search:"",value:(V=(w=t.value)!=null?w:t.defaultValue)!=null?V:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),s=Ot(()=>new Set),i=Ot(()=>new Map),r=Ot(()=>new Map),o=Ot(()=>new Set),a=La(t),{label:c,children:l,value:u,onValueChange:d,filter:f,shouldFilter:p,loop:y,disablePointerSelection:m=!1,vimBindings:g=!0,...v}=t,k=ht(),x=ht(),M=ht(),S=h.useRef(null),E=Cy();Rt(()=>{if(u!==void 0){let w=u.trim();n.current.value=w,T.emit()}},[u]),Rt(()=>{E(6,Vt)},[]);let T=h.useMemo(()=>({subscribe:w=>(o.current.add(w),()=>o.current.delete(w)),snapshot:()=>n.current,setState:(w,V,N)=>{var A,_,O,Z;if(!Object.is(n.current[w],V)){if(n.current[w]=V,w==="search")J(),L(),E(1,W);else if(w==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let G=document.getElementById(M);G?G.focus():(A=document.getElementById(k))==null||A.focus()}if(E(7,()=>{var G;n.current.selectedItemId=(G=lt())==null?void 0:G.id,T.emit()}),N||E(5,Vt),((_=a.current)==null?void 0:_.value)!==void 0){let G=V??"";(Z=(O=a.current).onValueChange)==null||Z.call(O,G);return}}T.emit()}},emit:()=>{o.current.forEach(w=>w())}}),[]),P=h.useMemo(()=>({value:(w,V,N)=>{var A;V!==((A=r.current.get(w))==null?void 0:A.value)&&(r.current.set(w,{value:V,keywords:N}),n.current.filtered.items.set(w,D(V,N)),E(2,()=>{L(),T.emit()}))},item:(w,V)=>(s.current.add(w),V&&(i.current.has(V)?i.current.get(V).add(w):i.current.set(V,new Set([w]))),E(3,()=>{J(),L(),n.current.value||W(),T.emit()}),()=>{r.current.delete(w),s.current.delete(w),n.current.filtered.items.delete(w);let N=lt();E(4,()=>{J(),N?.getAttribute("id")===w&&W(),T.emit()})}),group:w=>(i.current.has(w)||i.current.set(w,new Set),()=>{r.current.delete(w),i.current.delete(w)}),filter:()=>a.current.shouldFilter,label:c||t["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:k,inputId:M,labelId:x,listInnerRef:S}),[]);function D(w,V){var N,A;let _=(A=(N=a.current)==null?void 0:N.filter)!=null?A:my;return w?_(w,n.current.search,V):0}function L(){if(!n.current.search||a.current.shouldFilter===!1)return;let w=n.current.filtered.items,V=[];n.current.filtered.groups.forEach(A=>{let _=i.current.get(A),O=0;_.forEach(Z=>{let G=w.get(Z);O=Math.max(G,O)}),V.push([A,O])});let N=S.current;pt().sort((A,_)=>{var O,Z;let G=A.getAttribute("id"),ge=_.getAttribute("id");return((O=w.get(ge))!=null?O:0)-((Z=w.get(G))!=null?Z:0)}).forEach(A=>{let _=A.closest(kn);_?_.appendChild(A.parentElement===_?A:A.closest(`${kn} > *`)):N.appendChild(A.parentElement===N?A:A.closest(`${kn} > *`))}),V.sort((A,_)=>_[1]-A[1]).forEach(A=>{var _;let O=(_=S.current)==null?void 0:_.querySelector(`${Yt}[${It}="${encodeURIComponent(A[0])}"]`);O?.parentElement.appendChild(O)})}function W(){let w=pt().find(N=>N.getAttribute("aria-disabled")!=="true"),V=w?.getAttribute(It);T.setState("value",V||void 0)}function J(){var w,V,N,A;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=s.current.size;return}n.current.filtered.groups=new Set;let _=0;for(let O of s.current){let Z=(V=(w=r.current.get(O))==null?void 0:w.value)!=null?V:"",G=(A=(N=r.current.get(O))==null?void 0:N.keywords)!=null?A:[],ge=D(Z,G);n.current.filtered.items.set(O,ge),ge>0&&_++}for(let[O,Z]of i.current)for(let G of Z)if(n.current.filtered.items.get(G)>0){n.current.filtered.groups.add(O);break}n.current.filtered.count=_}function Vt(){var w,V,N;let A=lt();A&&(((w=A.parentElement)==null?void 0:w.firstChild)===A&&((N=(V=A.closest(Yt))==null?void 0:V.querySelector(py))==null||N.scrollIntoView({block:"nearest"})),A.scrollIntoView({block:"nearest"}))}function lt(){var w;return(w=S.current)==null?void 0:w.querySelector(`${Aa}[aria-selected="true"]`)}function pt(){var w;return Array.from(((w=S.current)==null?void 0:w.querySelectorAll(hr))||[])}function me(w){let V=pt()[w];V&&T.setState("value",V.getAttribute(It))}function B(w){var V;let N=lt(),A=pt(),_=A.findIndex(Z=>Z===N),O=A[_+w];(V=a.current)!=null&&V.loop&&(O=_+w<0?A[A.length-1]:_+w===A.length?A[0]:A[_+w]),O&&T.setState("value",O.getAttribute(It))}function q(w){let V=lt(),N=V?.closest(Yt),A;for(;N&&!A;)N=w>0?My(N,Yt):Ty(N,Yt),A=N?.querySelector(hr);A?T.setState("value",A.getAttribute(It)):B(w)}let rt=()=>me(pt().length-1),ut=w=>{w.preventDefault(),w.metaKey?rt():w.altKey?q(1):B(1)},ye=w=>{w.preventDefault(),w.metaKey?me(0):w.altKey?q(-1):B(-1)};return h.createElement(H.div,{ref:e,tabIndex:-1,...v,"cmdk-root":"",onKeyDown:w=>{var V;(V=v.onKeyDown)==null||V.call(v,w);let N=w.nativeEvent.isComposing||w.keyCode===229;if(!(w.defaultPrevented||N))switch(w.key){case"n":case"j":{g&&w.ctrlKey&&ut(w);break}case"ArrowDown":{ut(w);break}case"p":case"k":{g&&w.ctrlKey&&ye(w);break}case"ArrowUp":{ye(w);break}case"Home":{w.preventDefault(),me(0);break}case"End":{w.preventDefault(),rt();break}case"Enter":{w.preventDefault();let A=lt();if(A){let _=new Event(Xn);A.dispatchEvent(_)}}}}},h.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:Py},c),Ge(t,w=>h.createElement(Da.Provider,{value:T},h.createElement(Ra.Provider,{value:P},w))))}),yy=h.forwardRef((t,e)=>{var n,s;let i=ht(),r=h.useRef(null),o=h.useContext(Va),a=pe(),c=La(t),l=(s=(n=c.current)==null?void 0:n.forceMount)!=null?s:o?.forceMount;Rt(()=>{if(!l)return a.item(i,o?.id)},[l]);let u=_a(i,r,[t.value,t.children,r],t.keywords),d=Vs(),f=kt(E=>E.value&&E.value===u.current),p=kt(E=>l||a.filter()===!1?!0:E.search?E.filtered.items.get(i)>0:!0);h.useEffect(()=>{let E=r.current;if(!(!E||t.disabled))return E.addEventListener(Xn,y),()=>E.removeEventListener(Xn,y)},[p,t.onSelect,t.disabled]);function y(){var E,T;m(),(T=(E=c.current).onSelect)==null||T.call(E,u.current)}function m(){d.setState("value",u.current,!0)}if(!p)return null;let{disabled:g,value:v,onSelect:k,forceMount:x,keywords:M,...S}=t;return h.createElement(H.div,{ref:wt(r,e),...S,id:i,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||a.getDisablePointerSelection()?void 0:m,onClick:g?void 0:y},t.children)}),gy=h.forwardRef((t,e)=>{let{heading:n,children:s,forceMount:i,...r}=t,o=ht(),a=h.useRef(null),c=h.useRef(null),l=ht(),u=pe(),d=kt(p=>i||u.filter()===!1?!0:p.search?p.filtered.groups.has(o):!0);Rt(()=>u.group(o),[]),_a(o,a,[t.value,t.heading,c]);let f=h.useMemo(()=>({id:o,forceMount:i}),[i]);return h.createElement(H.div,{ref:wt(a,e),...r,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&h.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:l},n),Ge(t,p=>h.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?l:void 0},h.createElement(Va.Provider,{value:f},p))))}),vy=h.forwardRef((t,e)=>{let{alwaysRender:n,...s}=t,i=h.useRef(null),r=kt(o=>!o.search);return!n&&!r?null:h.createElement(H.div,{ref:wt(i,e),...s,"cmdk-separator":"",role:"separator"})}),xy=h.forwardRef((t,e)=>{let{onValueChange:n,...s}=t,i=t.value!=null,r=Vs(),o=kt(l=>l.search),a=kt(l=>l.selectedItemId),c=pe();return h.useEffect(()=>{t.value!=null&&r.setState("search",t.value)},[t.value]),h.createElement(H.input,{ref:e,...s,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":a,id:c.inputId,type:"text",value:i?t.value:o,onChange:l=>{i||r.setState("search",l.target.value),n?.(l.target.value)}})}),by=h.forwardRef((t,e)=>{let{children:n,label:s="Suggestions",...i}=t,r=h.useRef(null),o=h.useRef(null),a=kt(l=>l.selectedItemId),c=pe();return h.useEffect(()=>{if(o.current&&r.current){let l=o.current,u=r.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let p=l.offsetHeight;u.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return f.observe(l),()=>{cancelAnimationFrame(d),f.unobserve(l)}}},[]),h.createElement(H.div,{ref:wt(r,e),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":s,id:c.listId},Ge(t,l=>h.createElement("div",{ref:wt(o,c.listInnerRef),"cmdk-list-sizer":""},l)))}),wy=h.forwardRef((t,e)=>{let{open:n,onOpenChange:s,overlayClassName:i,contentClassName:r,container:o,...a}=t;return h.createElement(uy,{open:n,onOpenChange:s},h.createElement(dy,{container:o},h.createElement(hy,{"cmdk-overlay":"",className:i}),h.createElement(fy,{"aria-label":t.label,"cmdk-dialog":"",className:r},h.createElement(Na,{ref:e,...a}))))}),ky=h.forwardRef((t,e)=>kt(n=>n.filtered.count===0)?h.createElement(H.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),Sy=h.forwardRef((t,e)=>{let{progress:n,children:s,label:i="Loading...",...r}=t;return h.createElement(H.div,{ref:e,...r,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},Ge(t,o=>h.createElement("div",{"aria-hidden":!0},o)))}),A0=Object.assign(Na,{List:by,Item:yy,Input:xy,Group:gy,Separator:vy,Dialog:wy,Empty:ky,Loading:Sy});function My(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function Ty(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function La(t){let e=h.useRef(t);return Rt(()=>{e.current=t}),e}var Rt=typeof window>"u"?h.useEffect:h.useLayoutEffect;function Ot(t){let e=h.useRef();return e.current===void 0&&(e.current=t()),e}function kt(t){let e=Vs(),n=()=>t(e.snapshot());return h.useSyncExternalStore(e.subscribe,n,n)}function _a(t,e,n,s=[]){let i=h.useRef(),r=pe();return Rt(()=>{var o;let a=(()=>{var l;for(let u of n){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(l=u.current.textContent)==null?void 0:l.trim():i.current}})(),c=s.map(l=>l.trim());r.value(t,a,c),(o=e.current)==null||o.setAttribute(It,a),i.current=a}),i}var Cy=()=>{let[t,e]=h.useState(),n=Ot(()=>new Map);return Rt(()=>{n.current.forEach(s=>s()),n.current=new Map},[t]),(s,i)=>{n.current.set(s,i),e({})}};function Ey(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function Ge({asChild:t,children:e},n){return t&&h.isValidElement(e)?h.cloneElement(Ey(e),{ref:e.ref},n(e.props.children)):n(e)}var Py={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{n0 as $,w0 as A,fy as B,Yy as C,Ps as D,E0 as E,c1 as F,P0 as G,y1 as H,Oy as I,X1 as J,b1 as K,r1 as L,V1 as M,Ky as N,hy as O,H as P,v1 as Q,uy as R,Q1 as S,C0 as T,y0 as U,e1 as V,h0 as W,v0 as X,n1 as Y,x0 as Z,A0 as _,Dt as a,wt as a$,t1 as a0,l0 as a1,Z1 as a2,_1 as a3,H1 as a4,C1 as a5,o1 as a6,M1 as a7,D1 as a8,z1 as a9,p1 as aA,g1 as aB,e0 as aC,I1 as aD,Zy as aE,l1 as aF,m1 as aG,T1 as aH,Ly as aI,x1 as aJ,p0 as aK,E1 as aL,o0 as aM,s0 as aN,i0 as aO,r0 as aP,zy as aQ,c0 as aR,m0 as aS,W1 as aT,u1 as aU,F1 as aV,qy as aW,h1 as aX,Fy as aY,jy as aZ,a0 as a_,Ny as aa,d0 as ab,u0 as ac,By as ad,$1 as ae,O1 as af,Wy as ag,f0 as ah,d1 as ai,S1 as aj,f1 as ak,Dy as al,k1 as am,q1 as an,K1 as ao,w1 as ap,J1 as aq,Uy as ar,Ry as as,Qy as at,P1 as au,Gy as av,g0 as aw,Iy as ax,_y as ay,R1 as az,ce as b,M0 as b0,S0 as b1,Ep as b2,Xy as b3,s1 as b4,i1 as b5,vp as c,He as d,ea as e,ht as f,Wp as g,vt as h,j1 as i,R as j,B1 as k,$y as l,k0 as m,a1 as n,A1 as o,Y1 as p,Hy as q,Jy as r,t0 as s,L1 as t,le as u,N1 as v,U1 as w,G1 as x,Vy as y,dy as z};